diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-04-30 09:52:09 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-04-30 09:52:09 -0400 |
commit | 68bada3006a627e704680c0161f597e585b37e7f (patch) | |
tree | f6a24e31423dba951657fde0ddaa6cec126a22af /Smol Watch Project/My Project/watch-library/watch.c | |
parent | a17d64bd1117929451495f141c63c215ba6cb4aa (diff) | |
download | Sensor-Watch-68bada3006a627e704680c0161f597e585b37e7f.tar.gz Sensor-Watch-68bada3006a627e704680c0161f597e585b37e7f.tar.bz2 Sensor-Watch-68bada3006a627e704680c0161f597e585b37e7f.zip |
interrupts, clock demo with interrupts
Diffstat (limited to 'Smol Watch Project/My Project/watch-library/watch.c')
-rw-r--r-- | Smol Watch Project/My Project/watch-library/watch.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Smol Watch Project/My Project/watch-library/watch.c b/Smol Watch Project/My Project/watch-library/watch.c index ad4e7632..73d67c35 100644 --- a/Smol Watch Project/My Project/watch-library/watch.c +++ b/Smol Watch Project/My Project/watch-library/watch.c @@ -173,6 +173,14 @@ void watch_display_string(Watch *watch, char *string, uint8_t position) { } } +void watch_enable_interrupts(Watch *watch) { + EXTERNAL_IRQ_0_init(); +} +
+void watch_register_interrupt_callback(Watch *watch, const uint32_t pin, ext_irq_cb_t callback) { + ext_irq_register(pin, callback); +} +
void watch_enable_led(Watch *watch) {
if (watch->led_enabled) return;
|