init
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
main.h@4:8d8e9bfa82e4, 2018-11-11 (annotated)
- Committer:
- pathfindr
- Date:
- Sun Nov 11 20:52:22 2018 +0000
- Revision:
- 4:8d8e9bfa82e4
- Parent:
- 2:fd554f01abdf
- Child:
- 5:8f8951127724
udate
Who changed what in which revision?
User | Revision | Line number | New 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 | 2:fd554f01abdf | 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 | // File systems |
pathfindr | 0:94b743e06998 | 33 | //#include "LittleFileSystem.h" |
pathfindr | 0:94b743e06998 | 34 | //#include "FATFileSystem.h" |
pathfindr | 0:94b743e06998 | 35 | |
pathfindr | 0:94b743e06998 | 36 | |
pathfindr | 0:94b743e06998 | 37 | //------------------------------------------------------------------------------ |
pathfindr | 2:fd554f01abdf | 38 | //peripheral Libraries |
pathfindr | 0:94b743e06998 | 39 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 40 | #include "LIS3DH.h" |
pathfindr | 0:94b743e06998 | 41 | |
pathfindr | 0:94b743e06998 | 42 | |
pathfindr | 0:94b743e06998 | 43 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 44 | //C Standard Libraries |
pathfindr | 0:94b743e06998 | 45 | //------------------------------------------------------------------------------ |
pathfindr | 2:fd554f01abdf | 46 | /* |
pathfindr | 0:94b743e06998 | 47 | #include <ctype.h> |
pathfindr | 0:94b743e06998 | 48 | #include <errno.h> |
pathfindr | 0:94b743e06998 | 49 | #include <stddef.h> |
pathfindr | 0:94b743e06998 | 50 | #include <math.h> |
pathfindr | 0:94b743e06998 | 51 | #include <stdarg.h> |
pathfindr | 0:94b743e06998 | 52 | #include <stdlib.h> |
pathfindr | 0:94b743e06998 | 53 | #include <stdio.h> |
pathfindr | 0:94b743e06998 | 54 | #include <ctype.h> |
pathfindr | 0:94b743e06998 | 55 | #include <string.h> |
pathfindr | 0:94b743e06998 | 56 | #include <stdbool.h> |
pathfindr | 0:94b743e06998 | 57 | #include <stdint.h> |
pathfindr | 2:fd554f01abdf | 58 | */ |
pathfindr | 2:fd554f01abdf | 59 | //include <string> // dont use - causes 2ma sleep |
pathfindr | 2:fd554f01abdf | 60 | //using std::string; |
pathfindr | 2:fd554f01abdf | 61 | |
pathfindr | 0:94b743e06998 | 62 | |
pathfindr | 0:94b743e06998 | 63 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 64 | //SEGGER Debugger Libraries |
pathfindr | 0:94b743e06998 | 65 | //------------------------------------------------------------------------------ |
pathfindr | 2:fd554f01abdf | 66 | //#include "SEGGER_RTT/SEGGER_RTT.h" |
pathfindr | 0:94b743e06998 | 67 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 68 | //Application headers |
pathfindr | 0:94b743e06998 | 69 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 70 | #include "modes.h" |
pathfindr | 0:94b743e06998 | 71 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 72 | //Global macros |
pathfindr | 0:94b743e06998 | 73 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 74 | #define lowByte(w) ((uint8_t) ((w) & 0xff)) |
pathfindr | 0:94b743e06998 | 75 | #define highByte(w) ((uint8_t) ((w) >> 8)) |
pathfindr | 0:94b743e06998 | 76 | |
pathfindr | 2:fd554f01abdf | 77 | #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 | 78 | #if NEED_CONSOLE_OUTPUT |
pathfindr | 0:94b743e06998 | 79 | #define DEBUG(...) { uart.printf(__VA_ARGS__); } |
pathfindr | 0:94b743e06998 | 80 | #else |
pathfindr | 0:94b743e06998 | 81 | #define DEBUG(...) /* nothing */ |
pathfindr | 0:94b743e06998 | 82 | #endif /* #if NEED_CONSOLE_OUTPUT */ |
pathfindr | 0:94b743e06998 | 83 | |
pathfindr | 0:94b743e06998 | 84 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 85 | //Global data structures |
pathfindr | 0:94b743e06998 | 86 | //------------------------------------------------------------------------------ |
pathfindr | 0:94b743e06998 | 87 | //NONE |
pathfindr | 0:94b743e06998 | 88 | |
pathfindr | 0:94b743e06998 | 89 | |
pathfindr | 0:94b743e06998 | 90 | |
pathfindr | 0:94b743e06998 | 91 | #endif |