diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-05 23:49:26 -0600 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-10 12:00:26 -0500 |
commit | 762af872d2f2c977e51d6e51b8c3ad622485cc05 (patch) | |
tree | 0fd44fe4996b04a82c5c0cc46178b5893d3ae1c0 /watch-library/watch/watch_extint.c | |
parent | 316e1f292c603885f2af3dcd69ce797d64776425 (diff) | |
download | Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.tar.gz Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.tar.bz2 Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.zip |
fix missing prototype warnings
Diffstat (limited to 'watch-library/watch/watch_extint.c')
-rw-r--r-- | watch-library/watch/watch_extint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/watch-library/watch/watch_extint.c b/watch-library/watch/watch_extint.c index d6ad5b60..5924b646 100644 --- a/watch-library/watch/watch_extint.c +++ b/watch-library/watch/watch_extint.c @@ -24,7 +24,7 @@ #include "watch_extint.h" -void watch_enable_external_interrupts() { +void watch_enable_external_interrupts(void) { // Configure EIC to use GCLK3 (the 32.768 kHz crystal) hri_gclk_write_PCHCTRL_reg(GCLK, EIC_GCLK_ID, GCLK_PCHCTRL_GEN_GCLK3_Val | (1 << GCLK_PCHCTRL_CHEN_Pos)); // Enable AHB clock for the EIC @@ -33,7 +33,7 @@ void watch_enable_external_interrupts() { ext_irq_init(); } -void watch_disable_external_interrupts() { +void watch_disable_external_interrupts(void) { ext_irq_deinit(); hri_mclk_clear_APBAMASK_EIC_bit(MCLK); } @@ -106,6 +106,6 @@ inline void watch_register_button_callback(const uint8_t pin, ext_irq_cb_t callb watch_register_interrupt_callback(pin, callback, INTERRUPT_TRIGGER_RISING); } -inline void watch_enable_buttons() { +inline void watch_enable_buttons(void) { watch_enable_external_interrupts(); } |