diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-09-23 17:27:41 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-09-23 17:27:41 -0400 |
commit | 7945f4c4a33b5fdfffe1ab8305e57df091371fbb (patch) | |
tree | 6e387abffc1de3f2bcad26f5907db6b1675639e8 | |
parent | a23901f8433149ae1d29167f0b59e0df954e838f (diff) | |
download | Sensor-Watch-7945f4c4a33b5fdfffe1ab8305e57df091371fbb.tar.gz Sensor-Watch-7945f4c4a33b5fdfffe1ab8305e57df091371fbb.tar.bz2 Sensor-Watch-7945f4c4a33b5fdfffe1ab8305e57df091371fbb.zip |
add warning about external wake on old board rev
-rw-r--r-- | watch-library/watch/watch_deepsleep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/watch-library/watch/watch_deepsleep.c b/watch-library/watch/watch_deepsleep.c index 89d66ee7..dda428f5 100644 --- a/watch-library/watch/watch_deepsleep.c +++ b/watch-library/watch/watch_deepsleep.c @@ -22,6 +22,13 @@ * SOFTWARE. */ +// this warning only appears when you `make BOARD=OSO-SWAT-A1-02`. it's annoying, +// but i'd rather have it warn us at build-time than fail silently at run-time. +// besides, no one but me really has any of these boards anyway. +#warning This board revision does not support external wake on BTN_ALARM, so watch_register_extwake_callback will not work with it. Use watch_register_interrupt_callback instead. +#if BTN_ALARM != GPIO(GPIO_PORTA, 2) +#endif + static void extwake_callback(uint8_t reason); ext_irq_cb_t btn_alarm_callback; ext_irq_cb_t a2_callback; |