31 #ifndef CHIBIOS_MCU_ARCH_H
32 #define CHIBIOS_MCU_ARCH_H
36 #define mcu_int_enable() {}
37 #define mcu_int_disable() {}
41 #if USE_HARD_FAULT_RECOVERY
42 extern bool recovering_from_hard_fault;
59 PWR->CR &= ~(PWR_CR_PDDS | PWR_CR_LPDS);
61 PWR->CR |= (PWR_CR_LPDS | PWR_CR_CSBF | PWR_CR_CWUF);
64 PWR->CR1 &= ~(PWR_CR1_PDDS | PWR_CR1_LPDS);
66 PWR->CR1 |= (PWR_CR1_LPDS | PWR_CR1_CSBF);
70 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
81 SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk;
static void __enable_irq(void)
static void __disable_irq(void)
static void mcu_reset(void)
Request a software reset of the MCU.
static void mcu_deep_sleep(void)
Put MCU into deep sleep mode.