44 SYS->RSTSTS |= u32Src;
79 return !(
SYS->REGLCTL & 0x1);
147 *(
volatile uint32_t *)((uint32_t)&
SYS->IPRST0 + (u32ModuleIndex >> 24)) |= 1 << (u32ModuleIndex & 0x00ffffff);
150 *(
volatile uint32_t *)((uint32_t)&
SYS->IPRST0 + (u32ModuleIndex >> 24)) &= ~(1 << (u32ModuleIndex & 0x00ffffff));
173 SYS->BODCTL = (
SYS->BODCTL & ~SYS_BODCTL_BODRSTEN_Msk) | i32Mode;
176 SYS->BODCTL = (
SYS->BODCTL & ~SYS_BODCTL_BODVL_Msk) | u32BODLevel;
188 SYS->BODCTL &= ~SYS_BODCTL_BODEN_Msk;
#define SYS_IPRST0_CPURST_Msk
#define SYS_BODCTL_BODEN_Msk
#define SYS_IPRST0_CHIPRST_Msk
#define SYS_BODCTL_BODOUT_Pos
#define SYS_BODCTL_BODOUT_Msk
NuMicro peripheral access layer header file.
void SYS_ResetCPU(void)
Reset chip with CPU reset.
uint32_t SYS_GetBODStatus(void)
Get Brown-out detector output status.
uint32_t SYS_GetResetSrc(void)
Get reset status register value.
void SYS_EnableBOD(int32_t i32Mode, uint32_t u32BODLevel)
Enable and configure Brown-out detector function.
void SYS_ResetModule(uint32_t u32ModuleIndex)
Reset selected module.
uint32_t SYS_ReadPDID(void)
Get product ID.
void SYS_DisableBOD(void)
Disable Brown-out detector function.
uint32_t SYS_IsRegLocked(void)
Check if register is locked nor not.
void SYS_ClearResetSrc(uint32_t u32Src)
Clear reset source.
void SYS_ResetChip(void)
Reset chip with chip reset.