bexus_gps.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef bexus_gps_h
  2. #define bexus_gps_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "stm32f4xx_hal.h"
  7. //#include "cmsis_os.h"
  8. //#include "FreeRTOS.h"
  9. #include "main.h"
  10. #include "usart.h"
  11. #include <stdbool.h>
  12. #include <string.h>
  13. #include "TinyGPS-13/TinyGPS.h"
  14. #include "bexus_sysclock.h"
  15. #include "bexus_variables.h"
  16. void Gps_Init(void);
  17. int Gps_Receive(void);
  18. extern uint8_t aRxBuffer[1];
  19. extern volatile bool newData;
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif
  24. /*
  25. #define PMTK_SET_NMEA_UPDATE_5HZ "$PMTK220,200*2C"
  26. #define PMTK_API_SET_FIX_CTL_5HZ "$PMTK300,200,0,0,0,0*2F"
  27. #define PMTK_SET_BAUD_57600 "$PMTK251,57600*2C"
  28. // turn on only the second sentence (GPRMC)
  29. #define PMTK_SET_NMEA_OUTPUT_RMCONLY "$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
  30. // turn on GPRMC and GGA
  31. #define PMTK_SET_NMEA_OUTPUT_RMCGGA "$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
  32. // turn on ALL THE DATA
  33. #define PMTK_SET_NMEA_OUTPUT_ALLDATA "$PMTK314,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
  34. // turn off output
  35. #define PMTK_SET_NMEA_OUTPUT_OFF "$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
  36. */