Csr location class shows location and satellite information, which supports H13467 + ST F103RB/NXP LCP1549 boards now.
Dependents: CsrLocationDemo CsrLocationDemo
Fork of CsrLocation by
Revision 6:aed3c66b39d9, committed 2014-08-04
- Comitter:
- zhjcpi
- Date:
- Mon Aug 04 10:15:22 2014 +0000
- Parent:
- 5:219dfc2905dc
- Child:
- 7:1fde78f27d5b
- Commit message:
- Adjust the IO interface pin map for H13467V1 LED1/LED2.
Changed in this revision
| CsrLocation.cpp | Show annotated file Show diff for this revision Revisions of this file |
| CsrLocation.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/CsrLocation.cpp Fri Aug 01 08:13:04 2014 +0000
+++ b/CsrLocation.cpp Mon Aug 04 10:15:22 2014 +0000
@@ -1043,15 +1043,15 @@
void CsrLocation::_CsrLocHwOnoff(void)
{
csrLocInst.pPinOnoff->write(1);
- wait_ms(10);
+ wait_ms(100);
csrLocInst.pPinOnoff->write(0);
CSR_LOG_INFO("Onoff pulse given.\r\n");
}
void CsrLocation::_CsrLocHwReset(void)
{
+ csrLocInst.pPinReset->write(0);
+ wait_ms(100);
csrLocInst.pPinReset->write(1);
- wait_ms(10);
- csrLocInst.pPinReset->write(0);
CSR_LOG_INFO("Reset pulse given.\r\n");
}
--- a/CsrLocation.h Fri Aug 01 08:13:04 2014 +0000 +++ b/CsrLocation.h Mon Aug 04 10:15:22 2014 +0000 @@ -30,12 +30,11 @@ #define PINMAP_UART_DEBUG_RX D0 #define PINMAP_UART_LOC_TX D8 #define PINMAP_UART_LOC_RX D2 -//#define PINMAP_GPIO_LOC_ONOFF D3 #define PINMAP_GPIO_LOC_ONOFF D9 #define PINMAP_GPIO_LOC_WAKEUP D3 #define PINMAP_GPIO_LOC_RESET D4 -#define LOC_LED1 LED1 -#define LOC_LED2 LED2 +#define LOC_LED1 D7 +#define LOC_LED2 D5 #define DBG_SERIAL_TYPE Serial #define LOC_SERIAL_TYPE RawSerial #endif

GPS mbed Shield