init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Revision:
0:94b743e06998
Child:
2:fd554f01abdf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Sat Oct 27 23:08:33 2018 +0000
@@ -0,0 +1,86 @@
+/*
+================================================================================
+Project:    MTU Tracker
+Module:     ---
+Status:     Development
+Type:       .h header file
+Copyright (c) 2018 Pathfindr Ltd
+All Rights Reserved.
+================================================================================
+Notes:
+
+================================================================================
+*/
+
+#ifndef MAIN_INTERFACE_H_
+#define MAIN_INTERFACE_H_
+
+//------------------------------------------------------------------------------
+//mbed Libraries
+//------------------------------------------------------------------------------
+#include "mbed.h"
+#include "ATCmdParser.h"
+#include "UARTSerial.h"
+#include "ble/BLE.h"
+#include "nvstore.h"
+
+// Block devices
+//#include "SPIFBlockDevice.h"
+
+// File systems
+//#include "LittleFileSystem.h"
+//#include "FATFileSystem.h"
+
+
+//------------------------------------------------------------------------------
+//custom Libraries
+//------------------------------------------------------------------------------
+#include "LIS3DH.h"
+
+
+//------------------------------------------------------------------------------
+//C Standard Libraries
+//------------------------------------------------------------------------------
+#include <ctype.h>
+#include <errno.h>
+#include <stddef.h>
+#include <math.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <ctype.h>
+#include <string.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <string>
+using std::string;
+
+//------------------------------------------------------------------------------
+//SEGGER Debugger Libraries
+//------------------------------------------------------------------------------
+#include "SEGGER_RTT/SEGGER_RTT.h"
+//------------------------------------------------------------------------------
+//Application headers
+//------------------------------------------------------------------------------
+#include "modes.h"
+//------------------------------------------------------------------------------
+//Global macros
+//------------------------------------------------------------------------------
+#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. */
+#if NEED_CONSOLE_OUTPUT
+#define DEBUG(...) { uart.printf(__VA_ARGS__); }
+#else
+#define DEBUG(...) /* nothing */
+#endif /* #if NEED_CONSOLE_OUTPUT */
+
+//------------------------------------------------------------------------------
+//Global data structures
+//------------------------------------------------------------------------------
+//NONE
+
+    
+
+#endif