ptt-fhss
Bare-metal PTT firmware for nRF52840 with FHSS
Loading...
Searching...
No Matches
power.h
Go to the documentation of this file.
1
5#pragma once
6#include <stdbool.h>
7
9void power_init(void);
10
18
23bool power_button_pressed(void);
void power_init(void)
Enable the DC/DC converter, configure GPIO input and GPIOTE wakeup on the PTT button.
Definition power.c:16
void power_sleep_until_button(void)
Enter SYSTEM_ON low-power sleep and return on the next GPIOTE event.
Definition power.c:42
bool power_button_pressed(void)
Return the current state of the PTT button.
Definition power.c:48