2022-12-13 20:15:11 +08:00
|
|
|
/*
|
|
|
|
* global_var.h
|
|
|
|
*
|
|
|
|
* Created on: Dec 13, 2022
|
|
|
|
* Author: Winston Qu
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INC_GLOBAL_VAR_H_
|
|
|
|
#define INC_GLOBAL_VAR_H_
|
|
|
|
|
|
|
|
#include "stm32f1xx_hal.h"
|
|
|
|
#include "rtklib.h"
|
|
|
|
|
|
|
|
#define UART_BF_SIZE 256
|
|
|
|
|
|
|
|
/* def typedef */
|
|
|
|
extern nmea_t nmea_rmc; // typedef name RMC get time
|
|
|
|
extern IMU_mng_t IMU_mng_ST; // typedef IMU from ST
|
|
|
|
extern IMU_mng_t IMU_mng_TDK; // typedef IMU from TDK
|
|
|
|
extern sys_time_t SYS_TIME; // typedef TIME from system
|
|
|
|
/* def buffer */
|
2022-12-19 17:11:15 +08:00
|
|
|
extern uint8_t U2_Rx_buf[UART_BF_SIZE]; // UART2 RX buff
|
|
|
|
extern uint8_t U1_TX_buf[UART_BF_SIZE]; // UART1 TX buff
|
2022-12-13 20:15:11 +08:00
|
|
|
/* define var */
|
|
|
|
extern uint8_t ST_IMU_INT, TDK_IMU_INT; // IMU INT flag
|
2022-12-19 17:11:15 +08:00
|
|
|
extern uint8_t U1_DMA_BUSY;
|
2022-12-13 20:15:11 +08:00
|
|
|
#endif /* INC_GLOBAL_VAR_H_ */
|