feat(canfd): 修复CAN发送问题。实现CANFD发送完成中断处理和通道健康检查
- 添加CANFD发送完成中断处理函数,确保只有MTFNERR置位时才计数发送成功 - 新增通道健康检查功能,防止病态通道被持续重发的测试帧反复推回BUS_OFF - 重构CANFD配置结构体,添加TX中断配置项并修正GPIO映射设置 - 移除原有的软件发送队列机制,改为直接硬件发送模式 - 更新项目配置文件中的CANFD源文件路径命名 fix(canfd): 修复CANFD发送计数和错误处理逻辑 - 修正发送计数只在硬件MTFNERR确认后增加,而非请求进入邮箱时 - 改进错误日志输出,添加详细的错误类型和通道状态信息 - 优化总线恢复机制,通过收发器静默-唤醒协助硬件自动恢复 - 添加条件编译开关控制启动时自检和回环测试功能
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# A project translates into one executable or library.
|
||||
# A project translates into one executable or library.
|
||||
project:
|
||||
|
||||
groups:
|
||||
@@ -25,7 +25,7 @@ project:
|
||||
- file: ./device/adc.h
|
||||
- file: ./device/adc.cpp
|
||||
- file: ./device/canfd.h
|
||||
- file: ./device/canfd.cpp
|
||||
- file: ./device/CANFD.cpp
|
||||
- file: ./device/timer.h
|
||||
- file: ./device/timer.cpp
|
||||
- file: ./device/usart0.h
|
||||
|
||||
Reference in New Issue
Block a user