<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/bsp/hc32/libraries/hc32_drivers/drv_can.c, branch v5.3.0</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/bsp/hc32/libraries/hc32_drivers/drv_can.c?h=v5.3.0</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/bsp/hc32/libraries/hc32_drivers/drv_can.c?h=v5.3.0'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-07-14T11:55:12Z</updated>
<entry>
<title>[HC32] Format files by newer clang-format.</title>
<updated>2026-07-14T11:55:12Z</updated>
<author>
<name>Leeto1970</name>
<email>821522988@qq.com</email>
</author>
<published>2026-07-14T07:12:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=aff47231e665d142667e5de73b199d30b6a56097'/>
<id>urn:sha1:aff47231e665d142667e5de73b199d30b6a56097</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[HC32] Add HC32F4A2/HC32F467 BSP support</title>
<updated>2026-07-14T11:55:12Z</updated>
<author>
<name>Leeto1970</name>
<email>821522988@qq.com</email>
</author>
<published>2026-07-07T02:34:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d513da02db889d1925edd8a579e90bca382c85cc'/>
<id>urn:sha1:d513da02db889d1925edd8a579e90bca382c85cc</id>
<content type='text'>
 - Add chip macro for driver
 - Modify 'IDLE_THREAD_STACK_SIZE' to 512
 - Modify 'HWTIMER' to 'CLOCK_TIMER'
 - Use 'clang-format' format driver and BSP code
 - Fix SPI clock division configuration
</content>
</entry>
<entry>
<title>[hc32] Add the ev_hc32f4a8_lqfp176 board and modify some bsp drivers. (#10233)</title>
<updated>2025-04-29T06:23:01Z</updated>
<author>
<name>Jamie</name>
<email>48308473+JamieTx@users.noreply.github.com</email>
</author>
<published>2025-04-29T06:23:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=928e47395d649cc3448bd4962489758c7175f08b'/>
<id>urn:sha1:928e47395d649cc3448bd4962489758c7175f08b</id>
<content type='text'>
* [hc32] Add the ev_hc32f4a8_lqfp176 board and modify some bsp drivers.
</content>
</entry>
<entry>
<title>[BSP] add some bsp drivers for F448, F472 and add bsp test codes</title>
<updated>2025-01-20T03:13:22Z</updated>
<author>
<name>Jamie</name>
<email>48308473+JamieTx@users.noreply.github.com</email>
</author>
<published>2025-01-20T03:13:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=77e95594db92ba4beac83b39e7b0920f0edd39cf'/>
<id>urn:sha1:77e95594db92ba4beac83b39e7b0920f0edd39cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp/hc32]hc32f460 doesn't support CAN-FD, hc32_ll_can.h has no some definations.</title>
<updated>2024-12-21T18:10:47Z</updated>
<author>
<name>Lin-Chengqiu</name>
<email>1124266916@qq.com</email>
</author>
<published>2024-12-19T15:31:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=16093369b28374cfd81bd2128c9d70aba637bc12'/>
<id>urn:sha1:16093369b28374cfd81bd2128c9d70aba637bc12</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[hc32] Add some bsp drivers. (#8480)</title>
<updated>2024-01-09T13:56:37Z</updated>
<author>
<name>Jamie</name>
<email>48308473+JamieTx@users.noreply.github.com</email>
</author>
<published>2024-01-09T13:56:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=48244f25f88c72907119f9778789bb3c773d8b52'/>
<id>urn:sha1:48244f25f88c72907119f9778789bb3c773d8b52</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp][hc32]优化can驱动和pwm驱动 (#8217)</title>
<updated>2023-11-14T14:18:32Z</updated>
<author>
<name>梁生</name>
<email>37073099+lianghongquan@users.noreply.github.com</email>
</author>
<published>2023-11-14T14:18:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7a56058c612ba86e1d0403490029b916efe87b87'/>
<id>urn:sha1:7a56058c612ba86e1d0403490029b916efe87b87</id>
<content type='text'>
**为什么提交这份PR (why to submit this PR)**
1. hc32驱动函数和rtt函数声明之间的参数类型不一致，在mdk编译时产生警告。
2. hc32的can设备，在注册时就把can中断使能了。导致can设备在打开前，就会产生中断。
3. hc32的pwm驱动，不支持PWM_CMD_SET_PERIOD和PWM_CMD_SET_PULSE指令，导致rt_pwm_set_pulse()函数返回失败。
**你的解决方案是什么 (what is your solution)**
1. 修改hc32驱动函数参数类型和声明一致。
2. 注册can设备时主动禁止can中断，因为打开设备时会主动打开中断。
3. 修改pwm驱动，增加PWM_CMD_SET_PERIOD和PWM_CMD_SET_PULSE指令支持。</content>
</entry>
<entry>
<title>[errno code][-RT_ERROR] fix that use RT_ERROR without -</title>
<updated>2023-03-20T04:06:16Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2023-03-17T04:12:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=0f461e870c481a24ce2690cca1949706bb80f9e7'/>
<id>urn:sha1:0f461e870c481a24ce2690cca1949706bb80f9e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[errno code][-RT_EINVAL] fix that use RT_EINVAL without -</title>
<updated>2023-03-17T00:21:43Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2023-03-16T04:44:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=dfddd79b2453ab13d12b69c7db14e2f685175af7'/>
<id>urn:sha1:dfddd79b2453ab13d12b69c7db14e2f685175af7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[CAN]update struct can_filter_item and rt_can_msg (#6556)</title>
<updated>2022-11-22T02:45:51Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2022-11-22T02:45:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=569e2ae1e8671bdb17b3fa7b4197fdff6ad5cf1d'/>
<id>urn:sha1:569e2ae1e8671bdb17b3fa7b4197fdff6ad5cf1d</id>
<content type='text'>
* 修改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</content>
</entry>
</feed>
