Csr location class shows location and satellite information, which supports H13467 + ST F103RB/NXP LCP1549 boards now.

Dependents:   CsrLocationDemo CsrLocationDemo

Fork of CsrLocation by jie zhao

Revision:
8:fa29f8455134
Parent:
7:1fde78f27d5b
Child:
9:e6f22b1a7797
--- a/CsrLocation.h	Tue Aug 05 06:22:16 2014 +0000
+++ b/CsrLocation.h	Mon Aug 11 03:23:23 2014 +0000
@@ -318,6 +318,8 @@
     DigitalOut      *pPinOnoff;
     /** GPIO pin to control location chip reset, low level will keep location chip in hibernation state and high level will permit location chip to be activated */
     DigitalOut      *pPinReset;
+    /** GPIO pin to detect if the chip is still wakeup */
+    DigitalIn       *pWakeup;
 }tCsrLocConfig;
 
 /* General OSP mesasge format */
@@ -355,6 +357,7 @@
     LOC_SERIAL_TYPE *pSerialLoc;
     DigitalOut      *pPinOnoff;
     DigitalOut      *pPinReset;
+    DigitalIn       *pWakeup;
 
     uint8_t         serialBuf[MAX_SERIAL_BUF_LEN]; /* buffer the serial data from uart callback function */
     uint8_t         serialPkt[MAX_SERIAL_PKT_LEN]; /* decoded osp data */
@@ -461,6 +464,10 @@
 
     /* Trigger a reset on the reset pin */
     void _CsrLocHwReset(void);
+
+    /* Detect wakeup status on the wakeup pin */
+    bool _CsrLocIsWakeup(void);
+
 };