aconno gnss simple example for U-blox gnss dev board.

Fork of gnss by u-blox

Revision:
2:b10ca4aa2e5e
Parent:
1:ef70a58a6c98
Child:
3:2a1cd49ead85
--- a/gnss.h	Mon Apr 10 11:28:24 2017 +0100
+++ b/gnss.h	Thu Apr 13 14:45:17 2017 +0000
@@ -27,9 +27,9 @@
 #include "serial_pipe.h"
 
 #ifdef TARGET_UBLOX_C030
- #define GNSS_IF(onboard, shield) onboard
+# define GNSS_IF(onboard, shield) onboard
 #else
- #define GNSS_IF(onboard, shield) shield
+# define GNSS_IF(onboard, shield) shield
 #endif
 
 /** basic GNSS parser class
@@ -204,8 +204,8 @@
         \param rxSize the size of the serial rx buffer
         \param txSize the size of the serial tx buffer
     */
-    GnssSerial(PinName tx    GNSS_IF( = GNSSTXD, /* = D8 */), // resistor on shield not populated
-               PinName rx    GNSS_IF( = GNSSRXD, /* = D9 */), // resistor on shield not populated
+    GnssSerial(PinName tx    GNSS_IF( = GNSSTXD, = D8 /* = D8 */), // resistor on shield not populated
+               PinName rx    GNSS_IF( = GNSSRXD, = D9 /* = D9 */), // resistor on shield not populated
                int baudrate  GNSS_IF( = GNSSBAUD, = 9600 ),
                int rxSize    = 256 ,
                int txSize    = 128 );
@@ -244,10 +244,10 @@
         \param adr the I2C address of the GNSS set to (66<<1)
         \param rxSize the size of the serial rx buffer
     */
-    GnssI2C(PinName sda         GNSS_IF( = NC, = D16 ),
-           PinName scl          GNSS_IF( = NC, = D17 ),
-           unsigned char i2cAdr GNSS_IF( = (66<<1), = (66<<1) ),
-           int rxSize           = 256 );
+    GnssI2C(PinName sda          GNSS_IF( = NC, = /* D16 TODO */ NC ),
+            PinName scl          GNSS_IF( = NC, = /* D17 TODO */ NC ),
+            unsigned char i2cAdr GNSS_IF( = (66<<1), = (66<<1) ),
+            int rxSize           = 256 );
     //! Destructor
     virtual ~GnssI2C(void);