修复BOOT丢帧问题,优化标志位的存储

This commit is contained in:
cbb
2026-03-08 01:08:27 +08:00
parent 1e6d47ddae
commit 26cf5af14f
65 changed files with 2290 additions and 2174 deletions
+2 -3
View File
@@ -1,13 +1,12 @@
#ifndef _CAN_H
#define _CAN_H
#include <stdint.h>
#include "cstdint"
#ifdef __cplusplus
extern "C" {
#endif
#include "gd32c10x_can.h"
#include "stdint.h"
#include <stdio.h>
u8 can_gpio_init(void); // CAN引脚初始化
@@ -32,7 +31,7 @@ class CAN_transmiter {
u8 init(void);
can_receive_message_struct receive_message; // 接收消息结构体
FlagStatus can0_receive_flag; // CAN0接收标志
u8 can0_receive_count; // CAN0待处理消息计数器
FlagStatus can0_send_flag; // CAN0发送标志
void communication_check(); // 通信检查