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_i2c.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_i2c.c')
-rw-r--r-- | watch-library/watch/watch_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/watch-library/watch/watch_i2c.c b/watch-library/watch/watch_i2c.c index d2cf474b..ff20afc6 100644 --- a/watch-library/watch/watch_i2c.c +++ b/watch-library/watch/watch_i2c.c @@ -26,13 +26,13 @@ struct io_descriptor *I2C_0_io; -void watch_enable_i2c() { +void watch_enable_i2c(void) { I2C_0_init(); i2c_m_sync_get_io_descriptor(&I2C_0, &I2C_0_io); i2c_m_sync_enable(&I2C_0); } -void watch_disable_i2c() { +void watch_disable_i2c(void) { i2c_m_sync_disable(&I2C_0); hri_mclk_clear_APBCMASK_SERCOM1_bit(MCLK); } |