C027_SupportTest_xively_locationで使用しているC027用ライブラリ

Fork of C027_Support by u-blox

下記のプログラムC027_SupportTest_xively_locationで使用しているC027用ライブラリです。

Import programC027_SupportTest_xively_location

インターフェース2014年10月号のu-blox C027で3G通信する記事で使用したプログラム。   CQ publishing Interface 2014.10 issue, C027 3G test program.

オリジナルのライブラリは下記を参照してください。

Import libraryC027_Support

support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.

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);
 }