Add a bunch of APNs
Fork of C027_Support by
Diff: MDM.cpp
- Revision:
- 19:2b5d097ca15d
- Parent:
- 18:e5697801df29
- Child:
- 21:c4d64830bf02
--- a/MDM.cpp Fri Mar 14 13:07:48 2014 +0000 +++ b/MDM.cpp Mon Mar 24 07:38:05 2014 +0000 @@ -71,16 +71,17 @@ // Serial Implementation // ---------------------------------------------------------------- -MDMSerial::MDMSerial(PinName tx /*= MDMTXD*/, PinName rx /*= MDMRXD*/, int baudrate /*= MDMBAUD*/, +MDMSerial::MDMSerial(PinName tx /*= MDMTXD*/, PinName rx /*= MDMRXD*/, + int baudrate /*= MDMBAUD*/, +#if DEVICE_SERIAL_FC + PinName rts /*= MDMRTS*/, PinName cts /*= MDMCTS*/, +#endif int rxSize /*= 256*/, int txSize /*= 128*/) : +#if DEVICE_SERIAL_FC + SerialPipe(tx, rx, rts, cts, rxSize, txSize) +#else SerialPipe(tx, rx, rxSize, txSize) -{ - baud(baudrate); -} - -MDMSerial::MDMSerial(PinName tx /*= MDMTXD*/, PinName rx /*= MDMRXD*/, int baudrate /*= MDMBAUD*/, - PinName rts /*= MDMRTS*/, PinName cts /*= MDMCTS*/, int rxSize /*= 256*/, int txSize /*= 128*/) : - SerialPipe(tx, rx, rts, cts, rxSize, txSize) +#endif { baud(baudrate); }