28 lines
626 B
C
28 lines
626 B
C
|
/*
|
||
|
* 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 */
|
||
|
extern uint8_t U2_Rx_buf[UART_BF_SIZE]; // UART buff
|
||
|
|
||
|
/* define var */
|
||
|
extern uint8_t ST_IMU_INT, TDK_IMU_INT; // IMU INT flag
|
||
|
|
||
|
#endif /* INC_GLOBAL_VAR_H_ */
|