1 /**********************************************************************
\r
2 * $Id$ lpc18xx_pwr.h 2011-06-02
\r
4 * @file lpc18xx_pwr.h
\r
5 * @brief Contains all macro definitions and function prototypes
\r
6 * support for Power Control firmware library on LPC18xx
\r
8 * @date 02. June. 2011
\r
9 * @author NXP MCU SW Application Team
\r
11 * Copyright(C) 2011, NXP Semiconductor
\r
12 * All rights reserved.
\r
14 ***********************************************************************
\r
15 * Software that is described herein is for illustrative purposes only
\r
16 * which provides customers with programming information regarding the
\r
17 * products. This software is supplied "AS IS" without any warranties.
\r
18 * NXP Semiconductors assumes no responsibility or liability for the
\r
19 * use of the software, conveys no license or title under any patent,
\r
20 * copyright, or mask work right to the product. NXP Semiconductors
\r
21 * reserves the right to make changes in the software without
\r
22 * notification. NXP Semiconductors also make no representation or
\r
23 * warranty that such application will be suitable for the specified
\r
24 * use without further testing or modification.
\r
25 **********************************************************************/
\r
27 /* Peripheral group ----------------------------------------------------------- */
\r
28 /** @defgroup PWR PWR (Power Control)
\r
29 * @ingroup LPC1800CMSIS_FwLib_Drivers
\r
33 #ifndef LPC18XX_PWR_H_
\r
34 #define LPC18XX_PWR_H_
\r
36 /* Includes ------------------------------------------------------------------- */
\r
37 #include "LPC18xx.h"
\r
38 #include "lpc_types.h"
\r
45 /* Public Macros -------------------------------------------------------------- */
\r
46 /** @defgroup PWR_Private_Macros PWR Private Macros
\r
49 #define PWR_SLEEP_MODE_DEEP_SLEEP 0x3F00AA
\r
50 #define PWR_SLEEP_MODE_POWER_DOWN 0x30FCBA
\r
51 #define PWR_SLEEP_MODE_DEEP_POWER_DOWN 0x3FFF7F
\r
58 /* Public Functions ----------------------------------------------------------- */
\r
59 /** @defgroup PWR_Public_Functions PWR Public Functions
\r
62 /* Clock Generator */
\r
63 void PWR_Sleep(void);
\r
64 void PWR_DeepSleep(void);
\r
65 void PWR_PowerDown(void);
\r
66 void PWR_DeepPowerDown(void);
\r
77 #endif /* LPC18XX_PWR_H_ */
\r
83 /* --------------------------------- End Of File ------------------------------ */
\r