init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Revision:
2:fd554f01abdf
Parent:
0:94b743e06998
Child:
4:8d8e9bfa82e4
diff -r 14515b5bbb9a -r fd554f01abdf main.h
--- a/main.h	Sat Oct 27 23:09:30 2018 +0000
+++ b/main.h	Thu Nov 08 15:08:47 2018 +0000
@@ -19,10 +19,11 @@
 //mbed Libraries
 //------------------------------------------------------------------------------
 #include "mbed.h"
-#include "ATCmdParser.h"
-#include "UARTSerial.h"
 #include "ble/BLE.h"
-#include "nvstore.h"
+//#include "nvstore.h"
+//#include "ATCmdParser.h"
+//#include "UARTSerial.h"
+
 
 // Block devices
 //#include "SPIFBlockDevice.h"
@@ -33,7 +34,7 @@
 
 
 //------------------------------------------------------------------------------
-//custom Libraries
+//peripheral Libraries
 //------------------------------------------------------------------------------
 #include "LIS3DH.h"
 
@@ -41,6 +42,7 @@
 //------------------------------------------------------------------------------
 //C Standard Libraries
 //------------------------------------------------------------------------------
+/*
 #include <ctype.h>
 #include <errno.h>
 #include <stddef.h>
@@ -52,13 +54,15 @@
 #include <string.h>
 #include <stdbool.h>
 #include <stdint.h>
-#include <string>
-using std::string;
+*/
+//include <string>  // dont use - causes 2ma sleep
+//using std::string;
+
 
 //------------------------------------------------------------------------------
 //SEGGER Debugger Libraries
 //------------------------------------------------------------------------------
-#include "SEGGER_RTT/SEGGER_RTT.h"
+//#include "SEGGER_RTT/SEGGER_RTT.h"
 //------------------------------------------------------------------------------
 //Application headers
 //------------------------------------------------------------------------------
@@ -69,7 +73,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