diff --git a/firmware/hw_layer/ports/stm32/stm32f4/cfg/chconf.h b/firmware/hw_layer/ports/stm32/stm32f4/cfg/chconf.h index ecdf2293d3..aec61a843f 100644 --- a/firmware/hw_layer/ports/stm32/stm32f4/cfg/chconf.h +++ b/firmware/hw_layer/ports/stm32/stm32f4/cfg/chconf.h @@ -750,6 +750,12 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ +/** + * @brief Sleep at idle. + * @details This option enables call to __WFI() from idle thread to save power. + */ +#define CORTEX_ENABLE_WFI_IDLE TRUE + #endif /* CHCONF_H */ /** @} */ diff --git a/firmware/hw_layer/ports/stm32/stm32f7/cfg/chconf.h b/firmware/hw_layer/ports/stm32/stm32f7/cfg/chconf.h index dfe7360ac6..b554f671f5 100644 --- a/firmware/hw_layer/ports/stm32/stm32f7/cfg/chconf.h +++ b/firmware/hw_layer/ports/stm32/stm32f7/cfg/chconf.h @@ -752,6 +752,12 @@ #define CORTEX_VTOR_INIT 0x00200000U +/** + * @brief Sleep at idle. + * @details This option enables call to __WFI() from idle thread to save power. + */ +#define CORTEX_ENABLE_WFI_IDLE TRUE + #endif /* CHCONF_H */ /** @} */ diff --git a/firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h b/firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h index 6912341719..3ab100d152 100644 --- a/firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h +++ b/firmware/hw_layer/ports/stm32/stm32h7/cfg/chconf.h @@ -713,6 +713,12 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ +/** + * @brief Sleep at idle. + * @details This option enables call to __WFI() from idle thread to save power. + */ +#define CORTEX_ENABLE_WFI_IDLE TRUE + #endif /* CHCONF_H */ /** @} */