init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Committer:
pathfindr
Date:
Thu Nov 08 15:08:47 2018 +0000
Revision:
2:fd554f01abdf
Parent:
0:94b743e06998
Child:
4:8d8e9bfa82e4
tetw

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 "ble/BLE.h"
pathfindr 2:fd554f01abdf 23 //#include "nvstore.h"
pathfindr 2:fd554f01abdf 24 //#include "ATCmdParser.h"
pathfindr 2:fd554f01abdf 25 //#include "UARTSerial.h"
pathfindr 2:fd554f01abdf 26
pathfindr 0:94b743e06998 27
pathfindr 0:94b743e06998 28 // Block devices
pathfindr 0:94b743e06998 29 //#include "SPIFBlockDevice.h"
pathfindr 0:94b743e06998 30
pathfindr 0:94b743e06998 31 // File systems
pathfindr 0:94b743e06998 32 //#include "LittleFileSystem.h"
pathfindr 0:94b743e06998 33 //#include "FATFileSystem.h"
pathfindr 0:94b743e06998 34
pathfindr 0:94b743e06998 35
pathfindr 0:94b743e06998 36 //------------------------------------------------------------------------------
pathfindr 2:fd554f01abdf 37 //peripheral Libraries
pathfindr 0:94b743e06998 38 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 39 #include "LIS3DH.h"
pathfindr 0:94b743e06998 40
pathfindr 0:94b743e06998 41
pathfindr 0:94b743e06998 42 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 43 //C Standard Libraries
pathfindr 0:94b743e06998 44 //------------------------------------------------------------------------------
pathfindr 2:fd554f01abdf 45 /*
pathfindr 0:94b743e06998 46 #include <ctype.h>
pathfindr 0:94b743e06998 47 #include <errno.h>
pathfindr 0:94b743e06998 48 #include <stddef.h>
pathfindr 0:94b743e06998 49 #include <math.h>
pathfindr 0:94b743e06998 50 #include <stdarg.h>
pathfindr 0:94b743e06998 51 #include <stdlib.h>
pathfindr 0:94b743e06998 52 #include <stdio.h>
pathfindr 0:94b743e06998 53 #include <ctype.h>
pathfindr 0:94b743e06998 54 #include <string.h>
pathfindr 0:94b743e06998 55 #include <stdbool.h>
pathfindr 0:94b743e06998 56 #include <stdint.h>
pathfindr 2:fd554f01abdf 57 */
pathfindr 2:fd554f01abdf 58 //include <string> // dont use - causes 2ma sleep
pathfindr 2:fd554f01abdf 59 //using std::string;
pathfindr 2:fd554f01abdf 60
pathfindr 0:94b743e06998 61
pathfindr 0:94b743e06998 62 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 63 //SEGGER Debugger Libraries
pathfindr 0:94b743e06998 64 //------------------------------------------------------------------------------
pathfindr 2:fd554f01abdf 65 //#include "SEGGER_RTT/SEGGER_RTT.h"
pathfindr 0:94b743e06998 66 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 67 //Application headers
pathfindr 0:94b743e06998 68 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 69 #include "modes.h"
pathfindr 0:94b743e06998 70 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 71 //Global macros
pathfindr 0:94b743e06998 72 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 73 #define lowByte(w) ((uint8_t) ((w) & 0xff))
pathfindr 0:94b743e06998 74 #define highByte(w) ((uint8_t) ((w) >> 8))
pathfindr 0:94b743e06998 75
pathfindr 2:fd554f01abdf 76 #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. */
pathfindr 0:94b743e06998 77 #if NEED_CONSOLE_OUTPUT
pathfindr 0:94b743e06998 78 #define DEBUG(...) { uart.printf(__VA_ARGS__); }
pathfindr 0:94b743e06998 79 #else
pathfindr 0:94b743e06998 80 #define DEBUG(...) /* nothing */
pathfindr 0:94b743e06998 81 #endif /* #if NEED_CONSOLE_OUTPUT */
pathfindr 0:94b743e06998 82
pathfindr 0:94b743e06998 83 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 84 //Global data structures
pathfindr 0:94b743e06998 85 //------------------------------------------------------------------------------
pathfindr 0:94b743e06998 86 //NONE
pathfindr 0:94b743e06998 87
pathfindr 0:94b743e06998 88
pathfindr 0:94b743e06998 89
pathfindr 0:94b743e06998 90 #endif