修复BOOT丢帧问题,优化标志位的存储
This commit is contained in:
@@ -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(); // 通信检查
|
||||
|
||||
Reference in New Issue
Block a user