61 #include "../inc/hw_types.h" 62 #include "../inc/hw_memmap.h" 63 #include "../inc/hw_pmctl.h" 65 #include "../cmsis/cc23x0r5.h" 66 #include "../cmsis/core/core_cm0plus.h" 79 #define PMCTL_RESET_SHUTDOWN_IO (PMCTL_RSTSTA_SDDET | PMCTL_RSTSTA_IOWUSD) 80 #define PMCTL_RESET_SHUTDOWN_SWD PMCTL_RSTSTA_SDDET 82 #define PMCTL_RESET_WATCHDOG (PMCTL_RSTSTA_SYSSRC_WDTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) 84 #define PMCTL_RESET_SYSTEM (PMCTL_RSTSTA_SYSSRC_SYSRSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) 86 #define PMCTL_RESET_CPU (PMCTL_RSTSTA_SYSSRC_CPURSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) 88 #define PMCTL_RESET_LOCKUP (PMCTL_RSTSTA_SYSSRC_LOCKUPEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) 90 #define PMCTL_RESET_SWD (PMCTL_RSTSTA_SYSSRC_SWDRSTEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) 92 #define PMCTL_RESET_LFXT (PMCTL_RSTSTA_SYSSRC_LFLOSSEV | PMCTL_RSTSTA_RESETSRC_SYSRESET) 94 #define PMCTL_RESET_TSD (PMCTL_RSTSTA_TSDEV | PMCTL_RSTSTA_RESETSRC_PINRESET) 96 #define PMCTL_RESET_VDDR PMCTL_RSTSTA_RESETSRC_VDDRLOSS 98 #define PMCTL_RESET_VDDS PMCTL_RSTSTA_RESETSRC_VDDSLOSS 100 #define PMCTL_RESET_PIN PMCTL_RSTSTA_RESETSRC_PINRESET 102 #define PMCTL_RESET_POR PMCTL_RSTSTA_RESETSRC_PWRON 111 #define PMCTL_VOLTAGE_REGULATOR_DCDC PMCTL_VDDRCTL_SELECT_DCDC 112 #define PMCTL_VOLTAGE_REGULATOR_GLDO PMCTL_VDDRCTL_SELECT_GLDO 219 #endif // __PMCTL_H__ #define PMCTL_O_RSTCTL
Definition: hw_pmctl.h:70
__STATIC_INLINE void PMCTLResetSystem(void)
Issue a system reset.
Definition: pmctl.h:152
#define HWREG(x)
Definition: hw_types.h:79
#define __STATIC_INLINE
Definition: hw_types.h:58
#define PMCTL_VDDRCTL_SELECT_M
Definition: hw_pmctl.h:303
__STATIC_INLINE uint32_t PMCTLGetVoltageRegulator(void)
Get the current VDDR regulator.
Definition: pmctl.h:197
__STATIC_FORCEINLINE void __disable_irq(void)
Disable IRQ Interrupts.
Definition: cmsis_gcc.h:207
__STATIC_INLINE void PMCTLSetVoltageRegulator(uint32_t regulator)
Set the VDDR regulator.
Definition: pmctl.h:178
#define PMCTL_BASE
Definition: hw_memmap.h:48
#define PMCTL_O_VDDRCTL
Definition: hw_pmctl.h:58
__STATIC_INLINE uint32_t PMCTLGetResetReason(void)
Get the reason for the system reset.
Definition: pmctl.h:137
#define PMCTL_O_RSTSTA
Definition: hw_pmctl.h:73
#define PMCTL_RSTCTL_SYSRST_SET
Definition: hw_pmctl.h:483