Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SDFileSystem
include/global.h@19:36072b9b79f3, 2019-07-05 (annotated)
- Committer:
- Inscape_ao
- Date:
- Fri Jul 05 01:26:19 2019 +0000
- Revision:
- 19:36072b9b79f3
- Parent:
- 13:7cda5bef6390
add LICENSE.txt
Who changed what in which revision?
| User | Revision | Line number | New 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_ */ |