From 3b9ab338057a3ed528a90323dfdbf7267eb32293 Mon Sep 17 00:00:00 2001 From: Peter Harper Date: Wed, 5 Mar 2025 16:31:17 +0000 Subject: [PATCH] Include hardware/timer.h If you include sleep.h first you get a compile error as hardware_alarm_callback_t is not defined. Fix this by including the appropriate header. Fixes #89 --- src/rp2_common/pico_sleep/include/pico/sleep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/pico_sleep/include/pico/sleep.h b/src/rp2_common/pico_sleep/include/pico/sleep.h index e061182..65cecc6 100755 --- a/src/rp2_common/pico_sleep/include/pico/sleep.h +++ b/src/rp2_common/pico_sleep/include/pico/sleep.h @@ -9,7 +9,7 @@ #include "pico.h" #include "hardware/rosc.h" - +#include "hardware/timer.h" #include "pico/aon_timer.h" #ifdef __cplusplus