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: A_TeseoLocationNEW A_TeseoLocation
Revision 3:2d568ec8da14, committed 2019-02-14
- Comitter:
- apalmieri
- Date:
- Thu Feb 14 11:10:26 2019 +0000
- Parent:
- 2:a1564d9fe38e
- Child:
- 4:9d0addf682f0
- Commit message:
- Minor fix (coding style); Update .json file
Changed in this revision
--- a/Components/Teseo/Teseo.cpp Mon Nov 12 13:43:59 2018 +0000
+++ b/Components/Teseo/Teseo.cpp Thu Feb 14 11:10:26 2019 +0000
@@ -142,9 +142,10 @@
void
Teseo::_ResetFast(Serial *serialDebug)
{
- if (serialDebug)
+ if (serialDebug) {
serialDebug->printf("%s: Resetting...", TESEO_NAME);
-
+ }
+
_reset.write(0);
wait_ms(5);
@@ -153,15 +154,17 @@
wait_ms(70);
- if (serialDebug)
+ if (serialDebug) {
serialDebug->printf("Done...\n\r");
+ }
}
void
Teseo::_Reset(Serial *serialDebug)
{
- if (serialDebug)
+ if (serialDebug) {
serialDebug->printf("%s: Resetting...", TESEO_NAME);
+ }
//_pps.output();
//_pps.write(0);
@@ -179,8 +182,9 @@
_reset.write(1);
- if (serialDebug)
+ if (serialDebug) {
serialDebug->printf("Done...\n\r");
+ }
//_pps.write(1);
@@ -257,25 +261,6 @@
_SendString(crc, 5);
}
-/** TBC */
-int
-Teseo::_CheckI2C()
-{
- if (!_i2c)
- return -1;
-
- _i2c->start();
- int res = _i2c->write((TESEO_I2C_ADDRESS << 1) | 1);
- _i2c->stop();
- /*
- * @returns
- * '0' - NAK was received
- * '1' - ACK was received,
- * '2' - timeout
- */
- return res == 1 ? 0 : -1;
-}
-
void
Teseo::ReadSentence(Teseo::eMsg msg)
{
@@ -731,19 +716,6 @@
}
}
-uint32_t
-Teseo::ioctl(uint32_t command, void *arg)
-{
- /* TBI */
- return 0;
-}
-
-void
-Teseo::lpmGetImmediateLocation(void)
-{
- /* TBI */
-}
-
const GPSProvider::LocationUpdateParams_t *
Teseo::getLastLocation(void) const
{
@@ -802,7 +774,6 @@
return GPS_ERROR_NONE;
}
-//FIXME!
gps_provider_error_t
Teseo::cfgGeofenceCircle(void)
{
--- a/Components/Teseo/Teseo.h Mon Nov 12 13:43:59 2018 +0000
+++ b/Components/Teseo/Teseo.h Thu Feb 14 11:10:26 2019 +0000
@@ -293,8 +293,6 @@
virtual void start(void);
virtual void stop(void);
virtual void process(void);
- virtual uint32_t ioctl(uint32_t command, void *arg);
- virtual void lpmGetImmediateLocation(void);
virtual void reset(void);
virtual const GPSProvider::LocationUpdateParams_t *getLastLocation(void) const;
@@ -334,7 +332,7 @@
void _SendString(char *buf, int len);
int _WakeUp();
int _CRC(char *buf, int size);
- int _CheckI2C();
+
/**
* @brief This function gets a chunck of NMEA messages
* @param msg NMEA message to search for
--- a/TeseoConfig.h Mon Nov 12 13:43:59 2018 +0000 +++ b/TeseoConfig.h Thu Feb 14 11:10:26 2019 +0000 @@ -40,8 +40,6 @@ #ifndef __TESEO_CONFIG_H__ #define __TESEO_CONFIG_H__ -/* I2C. */ - /* TESEO PINs. */ #define TESEO_PIN_RESET D7 #define TESEO_PIN_WAKEUP D13
--- a/module.json Mon Nov 12 13:43:59 2018 +0000
+++ b/module.json Thu Feb 14 11:10:26 2019 +0000
@@ -14,10 +14,10 @@
],
"author": "Andrea Palmieri",
"repository": {
- "url": "https://github.com/apalmieriGH/Teseo-LIV3F.git",
- "type": "git"
+ "url": "os.mbed.com/teams/ST/code/X_NUCLEO_GNSS1A1/",
+ "type": "hg"
},
- "homepage": "https://github.com/apalmieriGH/Teseo-LIV3F",
+ "homepage": "https://os.mbed.com/teams/ST/code/X_NUCLEO_GNSS1A1/",
"licenses": [
{
"url": "https://spdx.org/licenses/Apache-2.0",