gbcwbz
84fe80fbf9
[DeviceDriver] Fix can infinite loop when can driver send error
...
- 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 23:07:43 -04:00
Fan Yang
666af5e29d
[DeviceDriver] Add CANFD support and correct typos ( #5912 )
...
* 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 <fan.yang@hpmicro.com>
* update
Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
Co-authored-by: Meco Man <920369182@qq.com>
2022-08-13 22:59:28 -04:00
Meco Man
e18d44940f
[finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题
2021-09-05 01:57:26 -04:00
Meco Man
3c05a4e719
[compoenets] auto & manual formatted
2021-03-08 18:19:04 +08:00
Wayne Lin
5bddcd378e
Get stuck issue after open-close-open CAN device.
...
Signed-off-by: Wayne Lin <wosayttn@gmail.com>
2020-04-27 16:01:05 +08:00
tyustli
363c9b1460
[bsp] [stm32] fix drv_can.c and can.c bug
2019-08-23 20:40:09 +08:00
tyustli
c81eebcd5d
[bsp] [stm32] fix drv_can.c
2019-08-16 12:14:30 +08:00
yaomo718
b67a8152a5
[components][drivers][can] can.c bug修复:
...
在RT_CAN_USING_HDR宏关闭的时候,接收数据大小的计算应该是:已使用链表数*sizeof(struct rt_can_msg)。
2019-04-25 11:18:28 +08:00
杨连钊
afe802733f
[components][drivers][can] can.c fix bug.
2019-03-14 17:12:27 +08:00
Noe Xu
52729bb62d
Fix rtthread CAN driver issue.
...
Reset rx tx handler when closing CAN device, Or it will not work after
reopening.
Change-Id: I43482c21263a989322f8df2ac9349128f7cb630a
2019-01-13 23:37:15 -08:00
Bernard Xiong
2c0640a178
[license] Change license to Apache.
2018-10-14 19:37:18 +08:00
Bernard Xiong
884fb70fe9
[Kernel] Add device ops feature.
2018-06-10 17:59:17 +08:00
Bernard Xiong
8b2919aff1
[DeviceDrivers] change the type of cmd to 'int'
2017-11-01 13:39:36 +08:00
Aubr.Cool
44bac92a93
[Components]drivers can change txcompletion to sem
2017-08-30 08:00:36 +08:00
aozima
3ad3066c4b
fixed rt_can_close issues.
2015-07-21 17:04:22 +08:00
Aubr.Cool
7051f01f48
[DeviceDriver]can add bus_hook
2015-07-07 12:06:24 +08:00
Aubr.Cool
5f860e8f94
[DeviceDriver]add missing hdr define
2015-07-07 12:01:56 +08:00
Aubr.Cool
0f20bf12fd
[DeviceDriver]correct can critical problems
2015-07-07 11:50:39 +08:00
BernardXiong
2ca3ceab70
[DeviceDrivers] code cleanup for CAN
2015-07-06 18:24:56 +08:00
BernardXiong
91d866d81a
[DeviceDrivers] Use mutex to lock can_open/close
2015-07-06 18:11:46 +08:00
BernardXiong
1488568801
[DeviceDrivers] code cleanup for CAN driver and fix some critical issue
2015-07-06 10:38:07 +08:00
Aubr.Cool
b3f0737a99
correct can compiler error and warnings
2015-06-30 14:12:30 +08:00
Aubr.Cool
c3e4fd079c
correct can hdr read error
2015-06-16 08:49:25 +08:00
Aubr.Cool
8e29e3d98b
add author information
2015-05-15 07:58:21 +08:00
Aubr.Cool
eb56b832ef
Add Can Drv
2015-05-14 16:52:48 +08:00