6#if defined(ARDUINO_ARCH_RP2040)
12#include "hardware/rtc.h"
13#include "hardware/clocks.h"
46void sleep_run_from_dormant_source(dormant_source_t dormant_source);
51static inline void sleep_run_from_xosc(
void) {
52 sleep_run_from_dormant_source(DORMANT_SOURCE_XOSC);
58static inline void sleep_run_from_rosc(
void) {
59 sleep_run_from_dormant_source(DORMANT_SOURCE_ROSC);
70void sleep_goto_sleep_until(datetime_t *t, rtc_callback_t callback);
81void sleep_goto_dormant_until_pin(uint gpio_pin,
bool edge,
bool high);
90static inline void sleep_goto_dormant_until_edge_high(uint gpio_pin) {
91 sleep_goto_dormant_until_pin(gpio_pin,
true,
true);
101static inline void sleep_goto_dormant_until_level_high(uint gpio_pin) {
102 sleep_goto_dormant_until_pin(gpio_pin,
false,
true);