xrocusOS_ADXL355 version

Dependencies:   mbed SDFileSystem

Committer:
APS_Lab
Date:
Fri Jul 05 02:09:06 2019 +0000
Revision:
20:2f2687580ecb
Parent:
13:7cda5bef6390
Ver0.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Inscape_ao 0:c347f602596d 1 #ifndef _GLOBAL_H_
Inscape_ao 0:c347f602596d 2 #define _GLOBAL_H_
Inscape_ao 0:c347f602596d 3
Inscape_ao 0:c347f602596d 4 #include "UartReceiver.h"
Inscape_ao 0:c347f602596d 5 #include "CommandParser.h"
Inscape_ao 2:a694440145e9 6 #include "TimeManager.h"
Inscape_ao 5:a37e3a15444b 7 #include "SDDataStore.h"
Inscape_ao 7:9ab8809f9693 8 #include "DeviceRepeater.h"
Inscape_ao 0:c347f602596d 9
Inscape_ao 12:a45a9c65dc03 10 /* DEBUG = ON/OFF */
Inscape_ao 12:a45a9c65dc03 11 #define _DEBUG_PRINTF_
Inscape_ao 12:a45a9c65dc03 12
Inscape_ao 12:a45a9c65dc03 13 /*********************************************/
Inscape_ao 12:a45a9c65dc03 14 /* Controllors */
Inscape_ao 12:a45a9c65dc03 15 /*********************************************/
Inscape_ao 2:a694440145e9 16 extern TimeManager *pTM;
Inscape_ao 0:c347f602596d 17 extern CommandParser *pCP;
Inscape_ao 0:c347f602596d 18 extern UartReceiver *pUR;
Inscape_ao 5:a37e3a15444b 19 extern SDDataStore *pSds;
Inscape_ao 7:9ab8809f9693 20 extern DeviceRepeater *pDevRept;
Inscape_ao 0:c347f602596d 21
Inscape_ao 12:a45a9c65dc03 22 /*********************************************/
Inscape_ao 12:a45a9c65dc03 23 /* Drivers */
Inscape_ao 12:a45a9c65dc03 24 /*********************************************/
Inscape_ao 2:a694440145e9 25 /* define command rules */
Inscape_ao 2:a694440145e9 26 extern CmdParseRule rules[];
Inscape_ao 2:a694440145e9 27 extern int getNumOfRules;
Inscape_ao 2:a694440145e9 28
Inscape_ao 12:a45a9c65dc03 29 /*********************************************/
Inscape_ao 12:a45a9c65dc03 30 /* Debugging */
Inscape_ao 12:a45a9c65dc03 31 /*********************************************/
Inscape_ao 12:a45a9c65dc03 32 #ifdef _DEBUG_PRINTF_
Inscape_ao 12:a45a9c65dc03 33 extern Serial dbg;
Inscape_ao 13:7cda5bef6390 34 extern Serial uartStream;
Inscape_ao 13:7cda5bef6390 35 extern bool uartOn;
Inscape_ao 12:a45a9c65dc03 36 #endif /* _DEBUG_PRINTF_ */
Inscape_ao 12:a45a9c65dc03 37
Inscape_ao 12:a45a9c65dc03 38 #ifdef _DEBUG_PRINTF_
Inscape_ao 12:a45a9c65dc03 39 #define dbgprintf(f_, ...) dbg.printf((f_), ##__VA_ARGS__)
Inscape_ao 12:a45a9c65dc03 40 #else
Inscape_ao 12:a45a9c65dc03 41 #define dbgprintf(f_, ...) while(0){}
Inscape_ao 12:a45a9c65dc03 42 #endif /* _DEBUG_PRINTF_ */
Inscape_ao 13:7cda5bef6390 43 #define uprintf(f_, ...) while(uartOn){uartStream.printf((f_), ##__VA_ARGS__);break;}
Inscape_ao 12:a45a9c65dc03 44
Inscape_ao 0:c347f602596d 45 #endif /* _GLOBAL_H_ */