46 SYS->RSTSTS |= u32Src;
81 return SYS->REGLCTL & 1UL ? 0UL : 1UL;
186 uint32_t u32tmpVal = 0UL, u32tmpAddr = 0UL;
189 u32tmpVal = (1UL << (u32ModuleIndex & 0x00ffffffUL));
190 u32tmpAddr = (uint32_t)&
SYS->IPRST0 + ((u32ModuleIndex >> 24UL));
191 *(uint32_t *)u32tmpAddr |= u32tmpVal;
194 u32tmpVal = ~(1UL << (u32ModuleIndex & 0x00ffffffUL));
195 *(uint32_t *)u32tmpAddr &= u32tmpVal;
#define SYS_IPRST0_CPURST_Msk
#define SYS_VREFCTL_VREFCTL_Msk
uint32_t SYS_GetBODStatus(void)
Get Brown-out detector output status.
void SYS_SetVRef(uint32_t u32VRefCTL)
Set Reference Voltage.
#define SYS_PLCTL_PLSEL_Msk
#define SYS_BODCTL_BODEN_Msk
void SYS_ResetChip(void)
Reset chip with chip reset.
#define SYS_BODCTL_BODOUT_Pos
void SYS_ResetModule(uint32_t u32ModuleIndex)
Reset selected module.
uint32_t SYS_GetResetSrc(void)
Get reset status register value.
#define SYS_IPRST0_CHIPRST_Msk
void SYS_DisableBOD(void)
Disable Brown-out detector function.
NuMicro peripheral access layer header file.
uint32_t SYS_ReadPDID(void)
Get product ID.
#define SYS_BODCTL_BODOUT_Msk
uint32_t SYS_IsRegLocked(void)
Check if register is locked nor not.
void SYS_ResetCPU(void)
Reset chip with CPU reset.
#define SYS_BODCTL_BODRSTEN_Msk
void SYS_SetPowerLevel(uint32_t u32PowerLevel)
Set Power Level.
void SYS_ClearResetSrc(uint32_t u32Src)
Clear reset source.
void SYS_EnableBOD(int32_t i32Mode, uint32_t u32BODLevel)
Enable and configure Brown-out detector function.
#define SYS_BODCTL_BODVL_Msk