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
- Committer:
- Inscape_ao
- Date:
- 2019-05-22
- Revision:
- 12:a45a9c65dc03
- Parent:
- 7:9ab8809f9693
- Child:
- 13:7cda5bef6390
File content as of revision 12:a45a9c65dc03:
#ifndef _GLOBAL_H_
#define _GLOBAL_H_
#include "UartReceiver.h"
#include "CommandParser.h"
#include "TimeManager.h"
#include "SDDataStore.h"
#include "DeviceRepeater.h"
/* DEBUG = ON/OFF */
#define _DEBUG_PRINTF_
/*********************************************/
/* Controllors */
/*********************************************/
extern TimeManager *pTM;
extern CommandParser *pCP;
extern UartReceiver *pUR;
extern SDDataStore *pSds;
extern DeviceRepeater *pDevRept;
/*********************************************/
/* Drivers */
/*********************************************/
/* define command rules */
extern CmdParseRule rules[];
extern int getNumOfRules;
/*********************************************/
/* Debugging */
/*********************************************/
#ifdef _DEBUG_PRINTF_
extern Serial dbg;
#endif /* _DEBUG_PRINTF_ */
#ifdef _DEBUG_PRINTF_
#define dbgprintf(f_, ...) dbg.printf((f_), ##__VA_ARGS__)
#else
#define dbgprintf(f_, ...) while(0){}
#endif /* _DEBUG_PRINTF_ */
#endif /* _GLOBAL_H_ */