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.
Dependents: example-ublox-at-cellular-interface-ext example-low-power-sleep example-C030-out-of-box-demo example-C030-out-of-box-demo ... more
Revision 5:af4baf3c67f3, committed 2017-06-11
- Comitter:
- RobMeades
- Date:
- Sun Jun 11 13:45:56 2017 +0000
- Parent:
- 4:82308d600690
- Child:
- 6:56eda66d585b
- Commit message:
- Make library work for C027.
Changed in this revision
| gnss.cpp | Show annotated file Show diff for this revision Revisions of this file |
| gnss.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/gnss.cpp Tue Jun 06 21:05:08 2017 +0100
+++ b/gnss.cpp Sun Jun 11 13:45:56 2017 +0000
@@ -30,8 +30,8 @@
#ifdef TARGET_UBLOX_C030
_gnssEnable = new DigitalInOut(GNSSEN, PIN_OUTPUT, PushPullNoPull, 0);
-#elif TARGET_UBLOX_C027
- _gnssEnable = new DigitalOut(GNSSEN, 0);
+#else
+ _gnssEnable = new DigitalInOut(GNSSEN, PIN_OUTPUT, PullNone, 1);
#endif
}
--- a/gnss.h Tue Jun 06 21:05:08 2017 +0100 +++ b/gnss.h Sun Jun 11 13:45:56 2017 +0000 @@ -32,6 +32,13 @@ # define GNSS_IF(onboard, shield) shield #endif +#ifdef TARGET_UBLOX_C027 +#define GNSSEN GPSEN +#define GNSSTXD GPSTXD +#define GNSSRXD GPSRXD +#define GNSSBAUD GPSBAUD +#endif + /** Basic GNSS parser class. */ class GnssParser