Course project for LE484 at Thammasat University, class of 2016

Revision:
7:d702abfe51e3
Parent:
6:da3c4393efee
Child:
10:25704cab4585
diff -r da3c4393efee -r d702abfe51e3 main.cpp
--- a/main.cpp	Mon May 08 04:16:10 2017 +0000
+++ b/main.cpp	Mon May 08 04:42:04 2017 +0000
@@ -8,6 +8,9 @@
 #include "platform.h"
 
 
+Thread sensor;
+
+
 RawSerial pc(USBTX, USBRX);  // use USB-serial for testing purpose
 Mail<char, 2> mbx;  // use Mail API to forward data
 
@@ -25,7 +28,8 @@
 * @brief        Main code: initial serial RX handler, then wait for detected frame 
 */
 int main() {
-    pc.attach(rxHandler);    
+    pc.attach(rxHandler);
+    sensor.start(sensorIn);    
     while (true) {
         osEvent evt = mbx.get();
         if (evt.status == osEventMail) {