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.
Diff: global.h
- Revision:
- 0:3d4b4cf5f0e3
- Child:
- 1:940070f92554
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/global.h Wed Nov 13 22:08:48 2019 +0000 @@ -0,0 +1,23 @@ +#ifndef GLOBAL_H_INCLUDED +#define GLOBAL_H_INCLUDED +#include "mbed.h" + + static Serial pcSerial(USBTX,USBRX,115200); + static Serial modemSerial(PC_6, PC_7); + void get_response(uint16_t timeout,bool is_multiline); +#define DEBUG_PRINTLN(...) \ + {\ + do{\ + pcSerial.printf(__VA_ARGS__);\ + pcSerial.printf("\n\r");\ + }while(0);\ + } + + #define MODEM_PRINTLN(...)\ + {\ + do{\ + modemSerial.printf(__VA_ARGS__);\ + modemSerial.printf("\n\r");\ + }while(0);\ + } + #endif \ No newline at end of file