summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/thermistor/thermistor_driver.c
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-12-05 23:49:26 -0600
committerJoey Castillo <joeycastillo@utexas.edu>2021-12-10 12:00:26 -0500
commit762af872d2f2c977e51d6e51b8c3ad622485cc05 (patch)
tree0fd44fe4996b04a82c5c0cc46178b5893d3ae1c0 /movement/watch_faces/thermistor/thermistor_driver.c
parent316e1f292c603885f2af3dcd69ce797d64776425 (diff)
downloadSensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.tar.gz
Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.tar.bz2
Sensor-Watch-762af872d2f2c977e51d6e51b8c3ad622485cc05.zip
fix missing prototype warnings
Diffstat (limited to 'movement/watch_faces/thermistor/thermistor_driver.c')
-rw-r--r--movement/watch_faces/thermistor/thermistor_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/movement/watch_faces/thermistor/thermistor_driver.c b/movement/watch_faces/thermistor/thermistor_driver.c
index 37b5ba3f..5659c281 100644
--- a/movement/watch_faces/thermistor/thermistor_driver.c
+++ b/movement/watch_faces/thermistor/thermistor_driver.c
@@ -2,7 +2,7 @@
#include "watch.h"
#include "watch_utility.h"
-void thermistor_driver_enable() {
+void thermistor_driver_enable(void) {
// Enable the ADC peripheral, which we'll use to read the thermistor value.
watch_enable_adc();
// Enable analog circuitry on the sense pin, which is tied to the thermistor resistor divider.
@@ -13,7 +13,7 @@ void thermistor_driver_enable() {
watch_set_pin_level(THERMISTOR_ENABLE_PIN, !THERMISTOR_ENABLE_VALUE);
}
-void thermistor_driver_disable() {
+void thermistor_driver_disable(void) {
// Disable the ADC peripheral.
watch_disable_adc();
// Disable analog circuitry on the sense pin to save power.
@@ -22,7 +22,7 @@ void thermistor_driver_disable() {
watch_disable_digital_output(THERMISTOR_ENABLE_PIN);
}
-float thermistor_driver_get_temperature() {
+float thermistor_driver_get_temperature(void) {
// set the enable pin to the level that powers the thermistor circuit.
watch_set_pin_level(THERMISTOR_ENABLE_PIN, THERMISTOR_ENABLE_VALUE);
// get the sense pin level