#ifndef _HART_H_ #define _HART_H_ #include "main.h" #include #include "usart.h" #include "tim.h" #define MAX_BUF_SIZE 1024 extern int rx_flag; extern int tx_flag; void hart_init(void); void usart2_rx_cb(void); void usart4_rx_cb(void); void hart_tim_cb(void); #endif