hal_mcu.h
来自「cc2x30_sw_examples: 适用于SmartRF05EB 支持CC」· C头文件 代码 · 共 65 行
H
65 行
/*******************************************************************************
Filename: hal_mcu.h
Description: hal mcu library header file
*******************************************************************************/
#ifndef HAL_MCU_H
#define HAL_MCU_H
#ifdef __cplusplus
extern "C" {
#endif
/*******************************************************************************
* INCLUDES
*/
#include <hal_types.h>
/*******************************************************************************
* CONSTANTS AND DEFINES
*/
enum { // Input values to halMcuSetLowPowerMode()
HAL_MCU_LPM_0,
HAL_MCU_LPM_1,
HAL_MCU_LPM_2,
HAL_MCU_LPM_3,
HAL_MCU_LPM_4
};
enum { // Return values of halMcuGetResetCause()
HAL_MCU_RESET_CAUSE_POR,
HAL_MCU_RESET_CAUSE_EXTERNAL,
HAL_MCU_RESET_CAUSE_WATCHDOG
};
/*******************************************************************************
* GLOBAL FUNCTIONS
*/
void halMcuInit(void);
void halMcuWaitUs(uint16 usec);
void halMcuWaitMs(uint16 msec);
void halMcuSetLowPowerMode(uint8 mode);
void halMcuReset(void);
uint8 halMcuGetResetCause(void);
#ifdef __cplusplus
}
#endif
/*********************************************************************************/
#endif
/*------------------------------------------------------------------------------
0ooo
ooo0 ( )
( ) ) /
\ ( (_/
\_) Modify By:cuiqingwei [gary]
------------------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?