/* * Copyright (c) 2023 Nordic Semiconductor ASA * Copyright (c) 2024 STMicroelectronics * Copyright (c) 2025 Tomas Jurena * * SPDX-License-Identifier: Apache-2.0 */ #include #include #include #include #include #include void z_sys_poweroff(void) { #ifdef CONFIG_STM32_WKUP_PINS LL_PWR_ClearFlag_WU(); #endif /* CONFIG_STM32_WKUP_PINS */ LL_PWR_SetPowerMode(LL_PWR_MODE_STANDBY); LL_LPM_EnableDeepSleep(); k_cpu_idle(); CODE_UNREACHABLE; }