aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-05 21:32:07 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-05 21:32:07 +0200
commitce53fa9f958f0160eeb91a9282e66cb2c59827a8 (patch)
treea738353c251c0305633aea96fbdd7b74276a67c5 /src/common
parent310c2837836d24e1335eafed4fda2701570c1760 (diff)
downloadglutte-o-matic-ce53fa9f958f0160eeb91a9282e66cb2c59827a8.tar.gz
glutte-o-matic-ce53fa9f958f0160eeb91a9282e66cb2c59827a8.tar.bz2
glutte-o-matic-ce53fa9f958f0160eeb91a9282e66cb2c59827a8.zip
Make objects for common/ leds temperature
Diffstat (limited to 'src/common')
-rw-r--r--src/common/includes/GPIO/temperature.h8
-rw-r--r--src/common/sourcelist.txt1
-rw-r--r--src/common/src/GPIO/leds.c1
-rw-r--r--src/common/src/GPIO/temperature.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/src/common/includes/GPIO/temperature.h b/src/common/includes/GPIO/temperature.h
index a054fab..a67d16b 100644
--- a/src/common/includes/GPIO/temperature.h
+++ b/src/common/includes/GPIO/temperature.h
@@ -22,11 +22,11 @@
* SOFTWARE.
*/
+#pragma once
#include <stdint.h>
-#ifndef __TEMPERATURE_H
-#define __TEMPERATURE_H
-
+extern float _temperature_last_value;
+extern int _temperature_valid;
// Setup communication and temperature
void temperature_init();
@@ -37,5 +37,3 @@ int temperature_valid();
// Get current temperature
float temperature_get();
-#endif // __TEMPERATURE_H
-
diff --git a/src/common/sourcelist.txt b/src/common/sourcelist.txt
index 350c037..0abc086 100644
--- a/src/common/sourcelist.txt
+++ b/src/common/sourcelist.txt
@@ -1,4 +1,5 @@
src/GPIO/usart.c
+src/GPIO/temperature.c
src/GPS/gps.c
src/GPS/minmea.c
src/Core/common.c
diff --git a/src/common/src/GPIO/leds.c b/src/common/src/GPIO/leds.c
deleted file mode 100644
index df2adea..0000000
--- a/src/common/src/GPIO/leds.c
+++ /dev/null
@@ -1 +0,0 @@
-#include "../../../common/includes/GPIO/leds.h"
diff --git a/src/common/src/GPIO/temperature.c b/src/common/src/GPIO/temperature.c
index 21cb9f8..f9e43cb 100644
--- a/src/common/src/GPIO/temperature.c
+++ b/src/common/src/GPIO/temperature.c
@@ -33,7 +33,7 @@ float _temperature_last_value;
int _temperature_valid;
-static void temperature_task(void *pvParameters);
+void temperature_task(void *pvParameters);
void temperature_init() {