Los Putacos / Mbed OS WearableDevice_Nucleo

Dependencies:   MPU9250_SPI SDFileSystem XBeeLib

Revision:
7:ebaaff27840b
Parent:
6:939df52d75c9
Child:
8:ba93a973f967
diff -r 939df52d75c9 -r ebaaff27840b main.cpp
--- a/main.cpp	Thu Oct 12 13:26:59 2017 +0000
+++ b/main.cpp	Thu Oct 12 14:32:34 2017 +0000
@@ -20,20 +20,13 @@
 #include "mbed_events.h"
 
 #include "configuration.h"
+#include "event.h"
+#include "pin.h"
 #include "MPU9250.h"
 //-----------------------------------------------------------------
 
 //-----------------------------------------------------------------
 // Declarations
-
-//Analog Input
-
-AnalogIn   micro(A0);
-
-//Digital Input
-
-DigitalOut led1(LED1);
-
 Timer t; //Timer µS time-stamp
 
 EventQueue queue(32 * EVENTS_EVENT_SIZE); //Event
@@ -49,7 +42,7 @@
 //-----------------------------------------------------------------
 
 //-----------------------------------------------------------------
-void Setup(){
+void setup(){
     
     // PC Serial (Debug) baudrate
     pc.baud(9600);
@@ -58,7 +51,8 @@
     // Task queue
     int task1_id = queue.call_every(1000, printf, "called every 1 seconds\n");
     int task2_id = queue.call_every(2500, printf, "called every 2.5 seconds\n");
-    int task3_id = queue.call_every(3000, print_thread, (void *)"called every 3 seconds\n");
+    //int task3_id = queue.call_every(3000, print_event, (void *)"called every 3 seconds\n");
+    //int task4_id = queue.call_every(50, blink_event, led1);
 }
 //-----------------------------------------------------------------
 
@@ -76,7 +70,7 @@
 //-----------------------------------------------------------------
 int main()
 {
-    Setup(); // Initial setups
+    setup(); // Initial setups
     
     
     //Reading the analog input (Microphone)  array = micro.read_u16();