xrocusOS_ADXL355 version
Dependencies: mbed SDFileSystem
global.h
00001 #ifndef _GLOBAL_H_ 00002 #define _GLOBAL_H_ 00003 00004 #include "UartReceiver.h" 00005 #include "CommandParser.h" 00006 #include "TimeManager.h" 00007 #include "SDDataStore.h" 00008 #include "DeviceRepeater.h" 00009 00010 /* DEBUG = ON/OFF */ 00011 #define _DEBUG_PRINTF_ 00012 00013 /*********************************************/ 00014 /* Controllors */ 00015 /*********************************************/ 00016 extern TimeManager *pTM; 00017 extern CommandParser *pCP; 00018 extern UartReceiver *pUR; 00019 extern SDDataStore *pSds; 00020 extern DeviceRepeater *pDevRept; 00021 00022 /*********************************************/ 00023 /* Drivers */ 00024 /*********************************************/ 00025 /* define command rules */ 00026 extern CmdParseRule rules[]; 00027 extern int getNumOfRules; 00028 00029 /*********************************************/ 00030 /* Debugging */ 00031 /*********************************************/ 00032 #ifdef _DEBUG_PRINTF_ 00033 extern Serial dbg; 00034 extern Serial uartStream; 00035 extern bool uartOn; 00036 #endif /* _DEBUG_PRINTF_ */ 00037 00038 #ifdef _DEBUG_PRINTF_ 00039 #define dbgprintf(f_, ...) dbg.printf((f_), ##__VA_ARGS__) 00040 #else 00041 #define dbgprintf(f_, ...) while(0){} 00042 #endif /* _DEBUG_PRINTF_ */ 00043 #define uprintf(f_, ...) while(uartOn){uartStream.printf((f_), ##__VA_ARGS__);break;} 00044 00045 #endif /* _GLOBAL_H_ */
Generated on Sun Jul 17 2022 15:09:45 by 1.7.2