GPS.h 896 B

1234567891011121314151617181920212223242526272829
  1. /**********************************************************************************
  2. *Modem.h
  3. *
  4. ***********************************************************************************/
  5. #ifndef __GPS_H
  6. #define __GPS_H
  7. /***********************************************************************************/
  8. #if 0
  9. #define GPS_PWREN_PIN GPIO_Pin_12
  10. #define GPS_PWREN_PORT GPIOB
  11. #define GPS_PWREN_HIGH GPS_PWREN_PORT->BSRR = GPS_PWREN_PIN
  12. #define GPS_PWREN_LOW GPS_PWREN_PORT->BRR = GPS_PWREN_PIN
  13. #else
  14. #define GPS_PWREN_PIN GPIO_Pin_9
  15. #define GPS_PWREN_PORT GPIOC
  16. #define GPS_PWREN_HIGH GPS_PWREN_PORT->BRR = GPS_PWREN_PIN
  17. #define GPS_PWREN_LOW GPS_PWREN_PORT->BSRR = GPS_PWREN_PIN
  18. #endif
  19. char* GPSGetGPRMC(char *msg);
  20. #define GPS_DATA_SOCKET 1 //GPSÒµÎñʹÓõÄÄ£¿ésocketºÅ
  21. int GPSInit(void);
  22. #endif
  23. /***********************************************************************************/