init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Revision:
7:e9a19750700d
Parent:
6:388d3c7efdd9
Child:
11:60eb0ff945f2
diff -r 388d3c7efdd9 -r e9a19750700d main.h
--- a/main.h	Wed Nov 14 16:08:28 2018 +0000
+++ b/main.h	Tue Dec 11 22:18:24 2018 +0000
@@ -19,15 +19,10 @@
 //mbed Libraries
 //------------------------------------------------------------------------------
 #include "mbed.h"
+#include "board.h"
 #include "WatchdogTimer.h"
 #include "ble/BLE.h"
-#include "nvstore.h"
-//#include "ATCmdParser.h"
-//#include "UARTSerial.h"
-
-
-// Block devices
-//#include "SPIFBlockDevice.h"
+//#include "nvstore.h"
 
 
 //------------------------------------------------------------------------------
@@ -55,16 +50,13 @@
 //include <string>  // dont use - causes 2ma sleep
 //using std::string;
 
-
-//------------------------------------------------------------------------------
-//SEGGER Debugger Libraries
-//------------------------------------------------------------------------------
-//#include "SEGGER_RTT/SEGGER_RTT.h"
-
 //------------------------------------------------------------------------------
 //Application headers
 //------------------------------------------------------------------------------
 #include "modes.h"
+#include "common.h"
+#include "sensors.h"
+#include "modem.h"
 
 //------------------------------------------------------------------------------
 //Global macros
@@ -72,7 +64,7 @@
 #define lowByte(w) ((uint8_t) ((w) & 0xff))
 #define highByte(w) ((uint8_t) ((w) >> 8))
 
-#define NEED_CONSOLE_OUTPUT 1 /* Set this if you need debug messages on the console; * it will have an impact on code-size and power consumption. */
+#define NEED_CONSOLE_OUTPUT 0 /* Set this if you need debug messages on the console; * it will have an impact on code-size and power consumption. */
 #if NEED_CONSOLE_OUTPUT
 #define DEBUG(...) { uart.printf(__VA_ARGS__); }
 #else
@@ -82,8 +74,8 @@
 //------------------------------------------------------------------------------
 //Global data structures
 //------------------------------------------------------------------------------
-//NONE
 
-    
+//VARS
+extern bool requireSoftReset;
 
 #endif