diff options
| author | Alessandro Gatti <a.gatti@frob.it> | 2025-01-15 16:25:55 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-05-13 10:36:47 +1000 |
| commit | f47e214cdcf11c2067936cb4b4e4f9deab73f6fc (patch) | |
| tree | 952d3ba600015817cd445f875c3072437951528d /ports/stm32/powerctrl.h | |
| parent | 69993daa5c2eae6055f0b3b2330e95e78d6e3738 (diff) | |
all: Rename the "NORETURN" macro to "MP_NORETURN".
This commit renames the NORETURN macro, indicating to the compiler
that a function does not return, into MP_NORETURN to maintain the same
naming convention of other similar macros.
To maintain compaitiblity with existing code NORETURN is aliased to
MP_NORETURN, but it is also deprecated for MicroPython v2.
This changeset was created using a similar process to
decf8e6a8bb940d5829ca3296790631fcece7b21 ("all: Remove the "STATIC"
macro and just use "static" instead."), with no documentation or python
scripts to change to reflect the new macro name.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'ports/stm32/powerctrl.h')
| -rw-r--r-- | ports/stm32/powerctrl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/stm32/powerctrl.h b/ports/stm32/powerctrl.h index 5b9240561..05a70e52c 100644 --- a/ports/stm32/powerctrl.h +++ b/ports/stm32/powerctrl.h @@ -39,14 +39,14 @@ static inline void stm32_system_init(void) { void SystemClock_Config(void); -NORETURN void powerctrl_mcu_reset(void); -NORETURN void powerctrl_enter_bootloader(uint32_t r0, uint32_t bl_addr); +MP_NORETURN void powerctrl_mcu_reset(void); +MP_NORETURN void powerctrl_enter_bootloader(uint32_t r0, uint32_t bl_addr); void powerctrl_check_enter_bootloader(void); void powerctrl_config_systick(void); int powerctrl_rcc_clock_config_pll(RCC_ClkInitTypeDef *rcc_init, uint32_t sysclk_mhz, bool need_pllsai); int powerctrl_set_sysclk(uint32_t sysclk, uint32_t ahb, uint32_t apb1, uint32_t apb2); void powerctrl_enter_stop_mode(void); -NORETURN void powerctrl_enter_standby_mode(void); +MP_NORETURN void powerctrl_enter_standby_mode(void); #endif // MICROPY_INCLUDED_STM32_POWERCTRL_H |
