init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Committer:
pathfindr
Date:
Sat Oct 27 23:08:33 2018 +0000
Revision:
0:94b743e06998
Child:
2:fd554f01abdf
init

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pathfindr 0:94b743e06998 1 /*
pathfindr 0:94b743e06998 2 ================================================================================
pathfindr 0:94b743e06998 3 Project: MTU Tracker
pathfindr 0:94b743e06998 4 Module: ---
pathfindr 0:94b743e06998 5 Status: Development
pathfindr 0:94b743e06998 6 Type: .h header file
pathfindr 0:94b743e06998 7 Copyright (c) 2018 Pathfindr Ltd
pathfindr 0:94b743e06998 8 All Rights Reserved.
pathfindr 0:94b743e06998 9 ================================================================================
pathfindr 0:94b743e06998 10 Notes:
pathfindr 0:94b743e06998 11
pathfindr 0:94b743e06998 12 ================================================================================
pathfindr 0:94b743e06998 13 */
pathfindr 0:94b743e06998 14
pathfindr 0:94b743e06998 15 #ifndef MAIN_INTERFACE_H_
pathfindr 0:94b743e06998 16 #define MAIN_INTERFACE_H_
pathfindr 0:94b743e06998 17
pathfindr 0:94b743e06998 18 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 19 //mbed Libraries
pathfindr 0:94b743e06998 20 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 21 #include "mbed.h"
pathfindr 0:94b743e06998 22 #include "ATCmdParser.h"
pathfindr 0:94b743e06998 23 #include "UARTSerial.h"
pathfindr 0:94b743e06998 24 #include "ble/BLE.h"
pathfindr 0:94b743e06998 25 #include "nvstore.h"
pathfindr 0:94b743e06998 26
pathfindr 0:94b743e06998 27 // Block devices
pathfindr 0:94b743e06998 28 //#include "SPIFBlockDevice.h"
pathfindr 0:94b743e06998 29
pathfindr 0:94b743e06998 30 // File systems
pathfindr 0:94b743e06998 31 //#include "LittleFileSystem.h"
pathfindr 0:94b743e06998 32 //#include "FATFileSystem.h"
pathfindr 0:94b743e06998 33
pathfindr 0:94b743e06998 34
pathfindr 0:94b743e06998 35 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 36 //custom Libraries
pathfindr 0:94b743e06998 37 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 38 #include "LIS3DH.h"
pathfindr 0:94b743e06998 39
pathfindr 0:94b743e06998 40
pathfindr 0:94b743e06998 41 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 42 //C Standard Libraries
pathfindr 0:94b743e06998 43 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 44 #include <ctype.h>
pathfindr 0:94b743e06998 45 #include <errno.h>
pathfindr 0:94b743e06998 46 #include <stddef.h>
pathfindr 0:94b743e06998 47 #include <math.h>
pathfindr 0:94b743e06998 48 #include <stdarg.h>
pathfindr 0:94b743e06998 49 #include <stdlib.h>
pathfindr 0:94b743e06998 50 #include <stdio.h>
pathfindr 0:94b743e06998 51 #include <ctype.h>
pathfindr 0:94b743e06998 52 #include <string.h>
pathfindr 0:94b743e06998 53 #include <stdbool.h>
pathfindr 0:94b743e06998 54 #include <stdint.h>
pathfindr 0:94b743e06998 55 #include <string>
pathfindr 0:94b743e06998 56 using std::string;
pathfindr 0:94b743e06998 57
pathfindr 0:94b743e06998 58 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 59 //SEGGER Debugger Libraries
pathfindr 0:94b743e06998 60 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 61 #include "SEGGER_RTT/SEGGER_RTT.h"
pathfindr 0:94b743e06998 62 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 63 //Application headers
pathfindr 0:94b743e06998 64 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 65 #include "modes.h"
pathfindr 0:94b743e06998 66 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 67 //Global macros
pathfindr 0:94b743e06998 68 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 69 #define lowByte(w) ((uint8_t) ((w) & 0xff))
pathfindr 0:94b743e06998 70 #define highByte(w) ((uint8_t) ((w) >> 8))
pathfindr 0:94b743e06998 71
pathfindr 0:94b743e06998 72 #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. */
pathfindr 0:94b743e06998 73 #if NEED_CONSOLE_OUTPUT
pathfindr 0:94b743e06998 74 #define DEBUG(...) { uart.printf(__VA_ARGS__); }
pathfindr 0:94b743e06998 75 #else
pathfindr 0:94b743e06998 76 #define DEBUG(...) /* nothing */
pathfindr 0:94b743e06998 77 #endif /* #if NEED_CONSOLE_OUTPUT */
pathfindr 0:94b743e06998 78
pathfindr 0:94b743e06998 79 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 80 //Global data structures
pathfindr 0:94b743e06998 81 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 82 //NONE
pathfindr 0:94b743e06998 83
pathfindr 0:94b743e06998 84
pathfindr 0:94b743e06998 85
pathfindr 0:94b743e06998 86 #endif