1 /* 2 * Copyright (c) 2024 STMicroelectronics 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file SoC configuration macros for the STM32WB0 family processors. 9 * 10 */ 11 12 13 #ifndef _STM32WB0_SOC_H_ 14 #define _STM32WB0_SOC_H_ 15 16 #ifndef _ASMLANGUAGE 17 18 #include <stm32wb0x.h> 19 20 /** SMPS modes */ 21 #define STM32WB0_SMPS_MODE_OFF 0 22 #define STM32WB0_SMPS_MODE_PRECHARGE 1 23 #define STM32WB0_SMPS_MODE_RUN 2 24 25 /** Active SMPS mode (provided here for usage in drivers) */ 26 #define SMPS_MODE _CONCAT(STM32WB0_SMPS_MODE_, \ 27 DT_STRING_UNQUOTED( \ 28 DT_INST(0, st_stm32wb0_pwr), \ 29 smps_mode)) 30 31 #endif /* !_ASMLANGUAGE */ 32 33 #endif /* _STM32WB0_SOC_H_ */ 34