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 *(
volatile uint32_t *)u32tmpAddr |= u32tmpVal;
194 u32tmpVal = ~(1UL << (u32ModuleIndex & 0x00ffffffUL));
195 *(
volatile uint32_t *)u32tmpAddr &= u32tmpVal;
222 SYS->BODCTL = (
SYS->BODCTL & ~SYS_BODCTL_BODRSTEN_Msk) | (uint32_t)i32Mode;
225 SYS->BODCTL = (
SYS->BODCTL & ~SYS_BODCTL_BODVL_Msk) | u32BODLevel;
237 SYS->BODCTL &= ~SYS_BODCTL_BODEN_Msk;
252 SYS->PLCTL = (
SYS->PLCTL & (~SYS_PLCTL_PLSEL_Msk)) | (u32PowerLevel);
271 SYS->VREFCTL = (
SYS->VREFCTL & (~SYS_VREFCTL_VREFCTL_Msk)) | (u32VRefCTL);
NuMicro peripheral access layer header file.
#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
void SYS_ResetCPU(void)
Reset chip with CPU reset.
uint32_t SYS_GetBODStatus(void)
Get Brown-out detector output status.
void SYS_SetVRef(uint32_t u32VRefCTL)
Set Reference Voltage.
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_SetPowerLevel(uint32_t u32PowerLevel)
Set Power Level.
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.