init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Committer:
pathfindr
Date:
Wed Nov 14 16:08:28 2018 +0000
Revision:
6:388d3c7efdd9
Parent:
5:8f8951127724
Child:
7:e9a19750700d
update

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