summaryrefslogtreecommitdiff
path: root/components/drivers/can
AgeCommit message (Collapse)Author
2025-12-04[DM/CAN] Update CAN for DMGuEe-GUI
1. Kconfig import wtih DM 2. Add DM API for Drivers Signed-off-by: GuEe-GUI <[email protected]>
2025-11-08fix(can): Resolve potential race condition in message transmissionwdfk-prog
Setting the send status flag `sndchange` after calling the can->ops->sendmsg function could lead to a race condition if a transmission timeout occurs, resulting in incorrect state handling. This patch moves the operation of setting the `sndchange` flag to before the call to can->ops->sendmsg. This ensures that the mailbox's status is correctly marked as "sending" before the hardware begins transmission, making the driver's state management more robust and reliable, especially in handling exceptions like timeouts. Additionally, new macros for CAN filter modes have been added in dev_can.h.
2025-09-28feat[can]: Implement non-blocking send mechanism and enhance CAN driver ↵wdfk-prog
functionality - Added support for non-blocking mode CAN message sending, including software ring buffer management and dynamic memory allocation options. - Improved related comments and error handling. - Updated example code to demonstrate the usage of both blocking and non-blocking sending modes, and corrected some structure field naming and macro definitions.
2025-07-29[Fix] <components>:drivers/can/dev_can.c ↵liuyucai
修复CAN底层无法工作时导致调用 _can_int_tx 的线程一直挂起的问题 Solution: 使用 can->status.sndchange 的bit位来表示某个发送邮箱超时 如果超时 底层驱动再通知tx_done或者tx_fail事件时不予处理 Signed-off-by: Yucai Liu <[email protected]>
2024-11-13fix:[CAN][STM32]open时立刻启动can_start,还未完成其他配置,可能 ↵wdfk-prog
导致异常
2024-08-23[device] add dev_ prefix for file namesCXSforHPU
2024-07-09[components][driver][can]Fix possible memory overflow caused by RXwdfk-prog
修复RX可能导致的内存溢出情况 #8634
2024-06-16[components] [drivers ] [Kconfig] 整理 components/drivers 的 Kconfig (#9054)sp-cai
整理 components/drivers 的 Kconfig
2024-04-15[components][drivers]close can irq before release fifozms123456
原来的CAN close中先释放fifo后关闭CAN中断,可能导致释放fifo后且关闭CAN中断前来CAN中断,此时rt_hw_can_isr可能在RT_ASSERT(tx/rx_fifo != RT_NULL)断言失败
2024-04-12[components][drivers][can]fix can warning in 64bit cpu (#8772)zms123456
fix can warning
2024-04-09[components][drivers]fix compile warning in 64 bits arch cpu (#8739)zms123456
fix compile warning in 64 bits arch
2023-08-18[components][drivers][can]Init can tx completion flag before txcmbjxxiao
2023-04-17[HUST CSE] Fix many abnormal symbols in annotations and format code7YZ7
2023-02-07rt_device_write/read return data type as rt_ssize_tMeco Man
rt_ssize_t can give negative error code, which follows the unix style correctly
2022-11-21[CAN]update struct can_filter_item and rt_can_msg (#6556)wdfk-prog
* 修改ry命令,已便于自定义保存路径 * modified: components/utilities/ymodem/ry_sy.c * 修复从被动错误恢复后发送返回异常 * 修复在自动重传模式下,ACK异常阻塞线程 - 删除TX中断函数else分支。仅当RQCP位 置一才进入该中断 - 添加SCE中断函数中关于ACK_ERR的else判断。自动重传模式下会进入该判断,打断自动重传释放完成量。 * 增加对于CAN1与CAN2的SCE中断和TX中断的公共处理函数 * formatting格式化代码 * update struct can_filter_item and rt_can_msg 1. 对过滤器号和索引号结构体定义中同一名称hdr进行重命名hdr_bank和hdr_index, 以便准确区分.采用宏定义兼容以前变量名. 2. 添加接收标识rxfifo,已指明是哪个RXFIFO. * 更正42M下的波特率 * 修复接收获取索引号错误 * 添加接收标识 * 更新注释 * 取消CANFD限制 * update struct can_filter_item and rt_can_msg
2022-08-13[DeviceDriver] Fix can infinite loop when can driver send errorgbcwbz
- in _can_int_tx if can driver sendmsg do not return RT_EOK, it will repeat until sendmsg return RT_EOK - if error occur on can bus(wire broken or EMI), all threads that have lower priority will not be executed - we should let application layer to determine if resend is appropriate when send fail, besides in data link layer, can already implemented auto resend in hardware
2022-08-13[DeviceDriver] Add CANFD support and correct typos (#5912)Fan Yang
* Add CANFD support and correct typos - Added CANFD required fields to can.h - Fixed typos in can.h and can.c - Corrected all the projects affected by the typo - Fixed wrong line-ending in some affected can driver files Signed-off-by: Fan YANG <[email protected]> * update Signed-off-by: Fan YANG <[email protected]> Co-authored-by: Meco Man <[email protected]>
2021-09-05[finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题Meco Man
2021-03-08[compoenets] auto & manual formattedMeco Man
2020-04-27Get stuck issue after open-close-open CAN device.Wayne Lin
Signed-off-by: Wayne Lin <[email protected]>
2019-08-23[bsp] [stm32] fix drv_can.c and can.c bugtyustli
2019-08-16[bsp] [stm32] fix drv_can.ctyustli
2019-04-25[components][drivers][can] can.c bug修复:yaomo718
在RT_CAN_USING_HDR宏关闭的时候,接收数据大小的计算应该是:已使用链表数*sizeof(struct rt_can_msg)。
2019-03-14[components][drivers][can] can.c fix bug.杨连钊
2019-01-13Fix rtthread CAN driver issue.Noe Xu
Reset rx tx handler when closing CAN device, Or it will not work after reopening. Change-Id: I43482c21263a989322f8df2ac9349128f7cb630a
2018-10-14[license] Change license to Apache.Bernard Xiong
2018-06-10[Kernel] Add device ops feature.Bernard Xiong
2017-11-01[DeviceDrivers] change the type of cmd to 'int'Bernard Xiong
2017-08-30[Components]drivers can change txcompletion to semAubr.Cool
2015-07-21fixed rt_can_close issues.aozima
2015-07-07[DeviceDriver]can add bus_hookAubr.Cool
2015-07-07[DeviceDriver]add missing hdr defineAubr.Cool
2015-07-07[DeviceDriver]correct can critical problemsAubr.Cool
2015-07-06[DeviceDrivers] code cleanup for CANBernardXiong
2015-07-06[DeviceDrivers] Use mutex to lock can_open/closeBernardXiong
2015-07-06[DeviceDrivers] code cleanup for CAN driver and fix some critical issueBernardXiong
2015-06-30correct can compiler error and warningsAubr.Cool
2015-06-16correct can hdr read errorAubr.Cool
2015-05-15Add can driver docAubr.Cool
2015-05-15Add SConscript for canAubr.Cool
2015-05-15add author informationAubr.Cool
2015-05-14Add Can DrvAubr.Cool