📄 hal_mcu.h
字号:
/*******************************************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -