Commit Graph

32 Commits

Author SHA1 Message Date
Meco Man 7ecba50ff6 format stm32 drivers 2023-01-08 22:52:13 -05:00
wdfk-prog 569e2ae1e8
[CAN]update struct can_filter_item and rt_can_msg (#6556)
* 修改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-11-21 21:45:51 -05:00
wdfk-prog e59b6c7ab4
FIX: [bsp][stm32]CAN从ACK错误恢复后发送异常 (#6511)
* 修改ry命令,已便于自定义保存路径

* modified:   components/utilities/ymodem/ry_sy.c

* 修复从被动错误恢复后发送返回异常

* 修复在自动重传模式下,ACK异常阻塞线程
- 删除TX中断函数else分支。仅当RQCP位 置一才进入该中断
- 添加SCE中断函数中关于ACK_ERR的else判断。自动重传模式下会进入该判断,打断自动重传释放完成量。

* 增加对于CAN1与CAN2的SCE中断和TX中断的公共处理函数

* formatting格式化代码
2022-10-23 22:37:19 -04:00
myshowtogo 4637eb16dc Modified bsp/stm32/libraries/HAL_Drivers/drv_can.c
修复字符串比较错误
2022-09-16 08:36:48 -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
zuozuojia ecb69f56ac Update drv_can.c
删除多余注释,另外确定了对于其他型号单片机的适应性
2022-04-14 11:50:22 +08:00
zuozuojia ff36a39d32 [bsp/stm32] fix the bug of can filter conflict 2022-04-14 11:50:22 +08:00
zuozuojia ba1b8b4bfa delete the code be commented out 2022-04-11 15:02:12 +08:00
zuozuojia a282faf26c [bsp/stm32] fix the bug of 'can' being stucked when short cricuit the canH and canL, change some wrong annotations 2022-04-11 15:02:12 +08:00
zuozuojia 10b71175eb [stm32F4] adapt 168M frequency of 1M can baud, remember to add the define of BSP_USING_CAN168M in kconfig while using 168M frequency 2022-04-11 15:02:12 +08:00
svchao 7053bd7a58 [fix] The baud rate is configured according to the different APB1 frequencies. f4-series only. 2021-08-25 08:37:49 +08:00
YJIE_1998 53a4074f0b i# This is a combination of 3 commits.
【修改】format
2021-08-10 13:06:10 +08:00
Bernard Xiong 259144b2e6
Merge branch 'master' into master 2021-03-31 14:15:21 +08:00
cosmo 28ec21671c 删除了注释中从can.h拷贝的rt_can_filter_item 2021-03-22 14:24:05 +08:00
Meco Man fc04d828ee [stm32][driver] auto formatted 2021-03-08 22:40:39 +08:00
cosmo 55ea496431 格式修正 2021-02-02 14:28:32 +08:00
cosmo 9c811b19ba 修复滤波设置问题,根据标志帧和扩展帧判别所需位移,根据滤波模式判别CAN_FxR2[3:0]设置。 2021-02-02 14:23:56 +08:00
cosmo 69a347fa7b 修复 应用层设置hdr = -1时,驱动层没有正确识别问题,默认按照滤波表顺序设置FilterBank 2021-02-02 14:10:57 +08:00
zhuyunfan 6dd5af4fa6 [bsp][stm32]add can support for stm32l4 2020-08-28 12:30:33 +08:00
GaoJie c4eed718e8 [BSP] [STM32] drv_can.c CANx_SCE_IRQHandler() 的 RT_CAN_BUS_ACK_ERR 处理3个邮箱的 TXOK标志 2020-05-13 10:05:23 +08:00
GaoJie 1e94742a0e [BSP] In bsp of stm32, Change drv_can1 to drv_can2 in function CAN2_SCE_IRQHandler() of drv_can.c 2020-05-13 09:35:30 +08:00
tyustli 51d1ec80a4 fix docs link err 2019-09-03 11:41:22 +08:00
tyustli 3730df2411 1、[bsp] [imxrt] rename docs imxrt -> i.MX RT
2、[bsp] [stm32] fix drv_can assert bug
2019-08-27 15:35:58 +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
tyustli a08f767a42 fix 429 uart2/3 hardware init and add can1 2019-08-02 10:42:37 +08:00
杨连钊 b1f4e192ad [drv_can.c]fix 3 warings 2019-06-28 10:57:37 +08:00
杨连钊 9e74077928 [bsp][stm32][libraries][HAL_Drivers] update drv_can.c
adapt to new HAL_lib
2019-06-24 13:06:26 +08:00
zhangjun1996 778199f876 如果开启了RT_CAN_USING_HDR,则提示该驱动不支持硬件过滤器,请取消RT_CAN_USING_HDR。 2019-06-17 02:46:36 +08:00
zhangjun1996 3e7580dc7d 重新配置CAN之前,关闭CAN,配置完再打开。 2019-06-15 18:08:00 +08:00
zhangjun1996 537c2376f9 1,修复由于stm32系列的hal库升级导致stm32f1和stm32f4平台的can驱动编译错误
2,关闭components/drivers/Kconfig中默认打开的can硬件滤波器选项
3,为了让can波特率设置匹配stm32f429的时钟,给stm32f429增加波特率表
4,以上修复在stm32f103-fire-arbitrary,stm32f407-atk-explorer,stm32f429-atk-apollo三个bsp中测试通过
2019-06-15 11:52:11 +08:00
杨连钊 5795a34d18 [bsp][stm32] add can driver. 2019-02-19 13:53:09 +08:00