37 #if defined(RMU_COUNT) && (RMU_COUNT > 0)
63 #if defined(_RMU_CTRL_PINRMODE_MASK)
64 rmuResetModeDisabled = _RMU_CTRL_PINRMODE_DISABLED,
65 rmuResetModeLimited = _RMU_CTRL_PINRMODE_LIMITED,
66 rmuResetModeExtended = _RMU_CTRL_PINRMODE_EXTENDED,
67 rmuResetModeFull = _RMU_CTRL_PINRMODE_FULL,
69 rmuResetModeClear = 0,
77 #if defined(RMU_CTRL_BURSTEN)
78 rmuResetBU = _RMU_CTRL_BURSTEN_MASK,
80 #if defined(RMU_CTRL_LOCKUPRDIS)
82 #elif defined(_RMU_CTRL_LOCKUPRMODE_MASK)
85 #if defined(_RMU_CTRL_WDOGRMODE_MASK)
86 rmuResetWdog = _RMU_CTRL_WDOGRMODE_MASK,
88 #if defined(_RMU_CTRL_LOCKUPRMODE_MASK)
89 rmuResetCoreLockup = _RMU_CTRL_LOCKUPRMODE_MASK,
91 #if defined(_RMU_CTRL_SYSRMODE_MASK)
92 rmuResetSys = _RMU_CTRL_SYSRMODE_MASK,
94 #if defined(_RMU_CTRL_PINRMODE_MASK)
95 rmuResetPin = _RMU_CTRL_PINRMODE_MASK,
104 #define RMU_LockupResetDisable(A) RMU_ResetControl(rmuResetLockUp, A)
110 #if defined(_RMU_CTRL_RESETSTATE_MASK)
118 __STATIC_INLINE
void RMU_UserResetStateSet(uint32_t userState)
120 EFM_ASSERT(!(userState
121 & ~(_RMU_CTRL_RESETSTATE_MASK >> _RMU_CTRL_RESETSTATE_SHIFT)));
122 RMU->CTRL = (
RMU->CTRL & ~_RMU_CTRL_RESETSTATE_MASK)
123 | (userState << _RMU_CTRL_RESETSTATE_SHIFT);
134 __STATIC_INLINE uint32_t RMU_UserResetStateGet(
void)
136 uint32_t userState = (
RMU->CTRL & _RMU_CTRL_RESETSTATE_MASK)
137 >> _RMU_CTRL_RESETSTATE_SHIFT;
uint32_t RMU_ResetCauseGet(void)
Get the cause of the last reset.
Emlib peripheral API "assert" implementation.
#define _RMU_CTRL_LOCKUPRDIS_MASK
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
void RMU_ResetControl(RMU_Reset_TypeDef reset, RMU_ResetMode_TypeDef mode)
Disable/enable reset for various peripherals and signal sources.
void RMU_ResetCauseClear(void)
Clear the reset cause register.