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_private.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_private.c')
-rw-r--r-- | watch-library/watch/watch_private.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/watch-library/watch/watch_private.c b/watch-library/watch/watch_private.c index e652b271..b52c8e4c 100644 --- a/watch-library/watch/watch_private.c +++ b/watch-library/watch/watch_private.c @@ -25,7 +25,7 @@ #include "watch_private.h" #include "tusb.h" -void _watch_init() { +void _watch_init(void) { // disable the LED pin (it may have been enabled by the bootloader) watch_disable_digital_output(RED); @@ -97,7 +97,7 @@ int getentropy(void *buf, size_t buflen) { return 0; } -void _watch_enable_tcc() { +void _watch_enable_tcc(void) { // clock TCC0 with the main clock (8 MHz) and enable the peripheral clock. hri_gclk_write_PCHCTRL_reg(GCLK, TCC0_GCLK_ID, GCLK_PCHCTRL_GEN_GCLK0_Val | GCLK_PCHCTRL_CHEN); hri_mclk_set_APBCMASK_TCC0_bit(MCLK); @@ -143,7 +143,7 @@ void _watch_enable_tcc() { gpio_set_pin_function(GREEN, WATCH_GREEN_TCC_PINMUX); } -void _watch_disable_tcc() { +void _watch_disable_tcc(void) { // disable all PWM pins gpio_set_pin_direction(BUZZER, GPIO_DIRECTION_OFF); gpio_set_pin_function(BUZZER, GPIO_PIN_FUNCTION_OFF); @@ -157,7 +157,7 @@ void _watch_disable_tcc() { hri_mclk_clear_APBCMASK_TCC0_bit(MCLK); } -void _watch_enable_usb() { +void _watch_enable_usb(void) { // disable USB, just in case. hri_usb_clear_CTRLA_ENABLE_bit(USB); @@ -241,7 +241,7 @@ int _write(int file, char *ptr, int len) { } // this method could be overridden to read stuff from the USB console? but no need rn. -int _read() { +int _read(void) { return 0; } |