1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef bexus_gps_h
- #define bexus_gps_h
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "stm32f4xx_hal.h"
- //#include "cmsis_os.h"
- //#include "FreeRTOS.h"
- #include "main.h"
- #include "usart.h"
- #include <stdbool.h>
- #include <string.h>
- #include "TinyGPS-13/TinyGPS.h"
- #include "bexus_sysclock.h"
- #include "bexus_variables.h"
- void Gps_Init(void);
- int Gps_Receive(void);
-
- extern uint8_t aRxBuffer[1];
- extern volatile bool newData;
- #ifdef __cplusplus
- }
- #endif
- #endif
- /*
- #define PMTK_SET_NMEA_UPDATE_5HZ "$PMTK220,200*2C"
- #define PMTK_API_SET_FIX_CTL_5HZ "$PMTK300,200,0,0,0,0*2F"
- #define PMTK_SET_BAUD_57600 "$PMTK251,57600*2C"
- // turn on only the second sentence (GPRMC)
- #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"
- // turn on GPRMC and GGA
- #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"
- // turn on ALL THE DATA
- #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"
- // turn off output
- #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"
- */
|