/** * @file power.h * @brief Power management: DC/DC regulator, GPIOTE wakeup, SYSTEM_ON sleep. */ #pragma once /** @brief Enable the DC/DC converter and configure GPIOTE wakeup on the PTT button. */ void power_init(void); /** * @brief Enter SYSTEM_ON low-power sleep and return on the next GPIOTE event. * * Sets TASKS_LOWPWR then executes WFI. The CPU wakes when the GPIOTE * interrupt fires (button press) and resumes from here. */ void power_sleep_until_button(void);