![]() |
NUC029FAE_BSP V3.01.004
The Board Support Package for NUC029FAE MCU
|
Macros | |
#define | SYS_CLEAR_BOD_INT_FLAG() (SYS->BODCR |= SYS_BODCR_BOD_INTF_Msk) |
#define | SYS_CLEAR_BOD_LPM() (SYS->BODCR &= ~SYS_BODCR_BOD_LPM_Msk) |
#define | SYS_DISABLE_BOD() (SYS->BODCR |= SYS_BODCR_BOD_DISABLE) |
#define | SYS_ENABLE_BOD() (SYS->BODCR = (SYS->BODCR & ~SYS_BODCR_BOD_VL_Msk) | SYS_BODCR_BOD_VL_3_7V) |
#define | SYS_GET_BOD_INT_FLAG() (SYS->BODCR & SYS_BODCR_BOD_INTF_Msk) |
#define | SYS_GET_BOD_OUTPUT() (SYS->BODCR & SYS_BODCR_BOD_OUT_Msk) |
#define | SYS_DISABLE_BOD_RST() (SYS->BODCR &= ~SYS_BODCR_BOD_RSTEN_Msk) |
#define | SYS_ENABLE_BOD_RST() (SYS->BODCR |= SYS_BODCR_BOD_RSTEN_Msk) |
#define | SYS_SET_BOD_LPM() (SYS->BODCR |= SYS_BODCR_BOD_LPM_Msk) |
#define | SYS_SET_BOD_LEVEL(u32Level) (SYS->BODCR = (SYS->BODCR & ~SYS_BODCR_BOD_VL_Msk) | u32Level) |
#define | SYS_IS_BOD_RST() (SYS->RSTSRC & SYS_RSTSRC_RSTS_BOD_Msk) |
#define | SYS_IS_CPU_RST() (SYS->RSTSRC & SYS_RSTSRC_RSTS_CPU_Msk) |
#define | SYS_IS_POR_RST() (SYS->RSTSRC & SYS_RSTSRC_RSTS_POR_Msk) |
#define | SYS_IS_RSTPIN_RST() (SYS->RSTSRC & SYS_RSTSRC_RSTS_RESET_Msk) |
#define | SYS_IS_SYSTEM_RST() (SYS->RSTSRC & SYS_RSTSRC_RSTS_MCU_Msk) |
#define | SYS_IS_WDT_RST() (SYS->RSTSRC & SYS_RSTSRC_RSTS_WDT_Msk) |
#define | SYS_DISABLE_POR() (SYS->PORCR = 0x5AA5) |
#define | SYS_ENABLE_POR() (SYS->PORCR = 0) |
#define | SYS_CLEAR_RST_SOURCE(u32RstSrc) (SYS->RSTSRC | u32RstSrc ) |
Functions | |
void | SYS_ClearResetSrc (uint32_t u32Src) |
This function clear the selected system reset source. More... | |
uint32_t | SYS_GetBODStatus (void) |
This function get Brown-out detector output status. More... | |
uint32_t | SYS_GetResetSrc (void) |
This function get the system reset source register value. More... | |
uint32_t | SYS_IsRegLocked (void) |
This function check register write-protection bit setting. More... | |
void | SYS_LockReg (void) |
This function enable register write-protection function. More... | |
void | SYS_UnlockReg (void) |
This function disable register write-protection function. More... | |
uint32_t | SYS_ReadPDID (void) |
This function get product ID. More... | |
void | SYS_ResetChip (void) |
This function reset chip. More... | |
void | SYS_ResetCPU (void) |
This function reset CPU. More... | |
void | SYS_ResetModule (uint32_t u32ModuleIndex) |
This function reset selected modules. More... | |
void | SYS_EnableBOD (int32_t i32Mode, uint32_t u32BODLevel) |
This function configure BOD function. Configure BOD reset or interrupt mode and set Brown-out voltage level. Enable Brown-out function. More... | |
void | SYS_DisableBOD (void) |
This function disable BOD function. More... | |
#define SYS_CLEAR_BOD_INT_FLAG | ( | ) | (SYS->BODCR |= SYS_BODCR_BOD_INTF_Msk) |
#define SYS_CLEAR_BOD_LPM | ( | ) | (SYS->BODCR &= ~SYS_BODCR_BOD_LPM_Msk) |
#define SYS_CLEAR_RST_SOURCE | ( | u32RstSrc | ) | (SYS->RSTSRC | u32RstSrc ) |
#define SYS_DISABLE_BOD | ( | ) | (SYS->BODCR |= SYS_BODCR_BOD_DISABLE) |
#define SYS_DISABLE_BOD_RST | ( | ) | (SYS->BODCR &= ~SYS_BODCR_BOD_RSTEN_Msk) |
#define SYS_DISABLE_POR | ( | ) | (SYS->PORCR = 0x5AA5) |
#define SYS_ENABLE_BOD | ( | ) | (SYS->BODCR = (SYS->BODCR & ~SYS_BODCR_BOD_VL_Msk) | SYS_BODCR_BOD_VL_3_7V) |
#define SYS_ENABLE_BOD_RST | ( | ) | (SYS->BODCR |= SYS_BODCR_BOD_RSTEN_Msk) |
#define SYS_ENABLE_POR | ( | ) | (SYS->PORCR = 0) |
#define SYS_GET_BOD_INT_FLAG | ( | ) | (SYS->BODCR & SYS_BODCR_BOD_INTF_Msk) |
#define SYS_GET_BOD_OUTPUT | ( | ) | (SYS->BODCR & SYS_BODCR_BOD_OUT_Msk) |
#define SYS_IS_BOD_RST | ( | ) | (SYS->RSTSRC & SYS_RSTSRC_RSTS_BOD_Msk) |
#define SYS_IS_CPU_RST | ( | ) | (SYS->RSTSRC & SYS_RSTSRC_RSTS_CPU_Msk) |
#define SYS_IS_POR_RST | ( | ) | (SYS->RSTSRC & SYS_RSTSRC_RSTS_POR_Msk) |
#define SYS_IS_RSTPIN_RST | ( | ) | (SYS->RSTSRC & SYS_RSTSRC_RSTS_RESET_Msk) |
#define SYS_IS_SYSTEM_RST | ( | ) | (SYS->RSTSRC & SYS_RSTSRC_RSTS_MCU_Msk) |
#define SYS_IS_WDT_RST | ( | ) | (SYS->RSTSRC & SYS_RSTSRC_RSTS_WDT_Msk) |
#define SYS_SET_BOD_LPM | ( | ) | (SYS->BODCR |= SYS_BODCR_BOD_LPM_Msk) |
void SYS_ClearResetSrc | ( | uint32_t | u32Src | ) |
void SYS_DisableBOD | ( | void | ) |
void SYS_EnableBOD | ( | int32_t | i32Mode, |
uint32_t | u32BODLevel | ||
) |
This function configure BOD function. Configure BOD reset or interrupt mode and set Brown-out voltage level. Enable Brown-out function.
i32Mode | is reset or interrupt mode. Including : |
u32BODLevel | is Brown-out voltage level. Including : |
uint32_t SYS_GetBODStatus | ( | void | ) |
uint32_t SYS_GetResetSrc | ( | void | ) |
uint32_t SYS_IsRegLocked | ( | void | ) |
void SYS_LockReg | ( | void | ) |
uint32_t SYS_ReadPDID | ( | void | ) |
void SYS_ResetChip | ( | void | ) |
void SYS_ResetCPU | ( | void | ) |
void SYS_ResetModule | ( | uint32_t | u32ModuleIndex | ) |