12345678910111213141516171819202122232425262728293031 |
- /**********************************************************************************
- *Modem.h
- *
- ***********************************************************************************/
- #ifndef __GPS_H
- #define __GPS_H
- /***********************************************************************************/
- #if 0
- #define GPS_PWREN_PIN GPIO_Pin_12
- #define GPS_PWREN_PORT GPIOB
- #define GPS_PWREN_HIGH GPS_PWREN_PORT->BSRR = GPS_PWREN_PIN
- #define GPS_PWREN_LOW GPS_PWREN_PORT->BRR = GPS_PWREN_PIN
- #else
- #define GPS_PWREN_PIN GPIO_Pin_0//0---9
- #define GPS_PWREN_PORT GPIOC
- #define GPS_PWREN_HIGH GPS_PWREN_PORT->BSRR = GPS_PWREN_PIN
- #define GPS_PWREN_LOW GPS_PWREN_PORT->BRR = GPS_PWREN_PIN
- #endif
- char* GPSGetGPRMC(char *msg);
- #define GPS_DATA_SOCKET 1 //GPSÒµÎñʹÓõÄÄ£¿ésocketºÅ
- int GPSInit(void);
- #endif
- /***********************************************************************************/
|