mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
89 lines
2.6 KiB
C
89 lines
2.6 KiB
C
/**********************************************************************
|
||
* $Id$ lpc43xx_pwr.h 2011-06-02
|
||
*//**
|
||
* @file lpc43xx_pwr.h
|
||
* @brief Contains all macro definitions and function prototypes
|
||
* support for Power Control firmware library on lpc43xx
|
||
* @version 1.0
|
||
* @date 02. June. 2011
|
||
* @author NXP MCU SW Application Team
|
||
*
|
||
* Copyright(C) 2011, NXP Semiconductor
|
||
* All rights reserved.
|
||
*
|
||
***********************************************************************
|
||
* Software that is described herein is for illustrative purposes only
|
||
* which provides customers with programming information regarding the
|
||
* products. This software is supplied "AS IS" without any warranties.
|
||
* NXP Semiconductors assumes no responsibility or liability for the
|
||
* use of the software, conveys no license or title under any patent,
|
||
* copyright, or mask work right to the product. NXP Semiconductors
|
||
* reserves the right to make changes in the software without
|
||
* notification. NXP Semiconductors also make no representation or
|
||
* warranty that such application will be suitable for the specified
|
||
* use without further testing or modification.
|
||
* Permission to use, copy, modify, and distribute this software and its
|
||
* documentation is hereby granted, under NXP Semiconductors<72>
|
||
* relevant copyright in the software, without fee, provided that it
|
||
* is used in conjunction with NXP Semiconductors microcontrollers. This
|
||
* copyright, permission, and disclaimer notice must appear in all copies of
|
||
* this code.
|
||
**********************************************************************/
|
||
|
||
/* Peripheral group ----------------------------------------------------------- */
|
||
/** @defgroup PWR PWR (Power Control)
|
||
* @ingroup LPC4300CMSIS_FwLib_Drivers
|
||
* @{
|
||
*/
|
||
|
||
#ifndef lpc43xx_PWR_H_
|
||
#define lpc43xx_PWR_H_
|
||
|
||
/* Includes ------------------------------------------------------------------- */
|
||
#include "LPC43xx.h"
|
||
#include "lpc_types.h"
|
||
|
||
#ifdef __cplusplus
|
||
extern "C"
|
||
{
|
||
#endif
|
||
|
||
/* Public Macros -------------------------------------------------------------- */
|
||
/** @defgroup PWR_Private_Macros PWR Private Macros
|
||
* @{
|
||
*/
|
||
#define PWR_SLEEP_MODE_DEEP_SLEEP 0x3F00AA
|
||
#define PWR_SLEEP_MODE_POWER_DOWN 0x3FFCBA
|
||
#define PWR_SLEEP_MODE_DEEP_POWER_DOWN 0x3FFF7F
|
||
|
||
/**
|
||
* @}
|
||
*/
|
||
|
||
|
||
/* Public Functions ----------------------------------------------------------- */
|
||
/** @defgroup PWR_Public_Functions PWR Public Functions
|
||
* @{
|
||
*/
|
||
/* Clock Generator */
|
||
void PWR_Sleep(void);
|
||
void PWR_DeepSleep(void);
|
||
void PWR_PowerDown(void);
|
||
void PWR_DeepPowerDown(void);
|
||
|
||
/**
|
||
* @}
|
||
*/
|
||
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|
||
|
||
#endif /* lpc43xx_PWR_H_ */
|
||
|
||
/**
|
||
* @}
|
||
*/
|
||
|