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: BufferedSerial
Dependents: ThinkSpeak_Test roam_v1 roam_v2 finalv3
Fork of GPRSInterface by
Diff: GPRS/modem/modem.h
- Revision:
- 12:47488369a980
- Parent:
- 10:652c23d73373
- Child:
- 13:379ce1d51b88
--- a/GPRS/modem/modem.h Tue Mar 10 03:04:27 2015 +0000
+++ b/GPRS/modem/modem.h Tue Mar 10 03:11:38 2015 +0000
@@ -23,7 +23,11 @@
#ifndef __MODEM_H__
#define __MODEM_H__
+#if defined(LPC11UXX) || defined (LPC176X)
#include "BufferedSerial.h"
+#else
+#include "mbed.h"
+#endif
#define DEFAULT_TIMEOUT 5
@@ -47,8 +51,13 @@
Modem(PinName tx, PinName rx, int baudRate) : serialModem(tx, rx) {
serialModem.baud(baudRate);
};
+
+#if defined(LPC11UXX) || defined (LPC176X)
+ BufferedSerial serialModem;
+#else
+ Serial serialModem;
+#endif
- BufferedSerial serialModem;
protected:
/** Power on Modem
*/
