<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/bsp/hc32/libraries/hc32_drivers/drv_spi.c, branch copilot/remove-vbus-code-implementation</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_spi.c?h=copilot%2Fremove-vbus-code-implementation</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/bsp/hc32/libraries/hc32_drivers/drv_spi.c?h=copilot%2Fremove-vbus-code-implementation'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-08-22T10:42:44Z</updated>
<entry>
<title>Update bsp drivers for F334.</title>
<updated>2025-08-22T10:42:44Z</updated>
<author>
<name>JamieTx</name>
<email>juicebro@126.com</email>
</author>
<published>2025-08-18T06:12:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5f4319a6ca96f598cc4ba44271c3efdfb3da2479'/>
<id>urn:sha1:5f4319a6ca96f598cc4ba44271c3efdfb3da2479</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add ev_hc32f334_lqfp64 board and update package relation. #10522</title>
<updated>2025-07-18T07:50:00Z</updated>
<author>
<name>Jamie</name>
<email>48308473+JamieTx@users.noreply.github.com</email>
</author>
<published>2025-07-18T07:50:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=4423c6f01f9ee55e6a9e793a4020d9f8c0029f43'/>
<id>urn:sha1:4423c6f01f9ee55e6a9e793a4020d9f8c0029f43</id>
<content type='text'>
</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>fix - 1 优化中断中打印日志问题；2 优化SPI写外部FLASH慢的问题 (#10009)</title>
<updated>2025-02-24T01:25:15Z</updated>
<author>
<name>JOONH0o</name>
<email>105910755+JOONH0o@users.noreply.github.com</email>
</author>
<published>2025-02-24T01:25:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3fdb94096794be237e52abff0fb4ee150efeee79'/>
<id>urn:sha1:3fdb94096794be237e52abff0fb4ee150efeee79</id>
<content type='text'>
* 1. 优化中断中打印日志问题；2 优化SPI写外部FLASH慢的问题
* 2. 在spi驱动中有在中断中打印调试信息的问题，增加ISR log判断进行
* 3. spi+DMA 写外部flash，由于spi速度很快，不进行delay就可以；同时，仿照Linux的驱动框架进行优化，数据小不使用DMA
</content>
</entry>
<entry>
<title>[bsp][hc32][spi]update rt_hw_spi_device_attach</title>
<updated>2024-12-04T08:37:40Z</updated>
<author>
<name>yangpeng</name>
<email>yangpengya@qq.com</email>
</author>
<published>2024-12-04T02:16:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=0947a446582e17694255aff31542aaa1145af2c4'/>
<id>urn:sha1:0947a446582e17694255aff31542aaa1145af2c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp][hc32] 修复SPI驱动的片选脚获取方式</title>
<updated>2024-10-28T04:30:35Z</updated>
<author>
<name>Kai</name>
<email>60053077+kaidegit@users.noreply.github.com</email>
</author>
<published>2024-10-28T02:51:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=91eca8d573547a68706ac5435c1a99b03d9c950c'/>
<id>urn:sha1:91eca8d573547a68706ac5435c1a99b03d9c950c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[HC32] support HC32F472 &amp; remove residual files</title>
<updated>2024-04-29T21:48:47Z</updated>
<author>
<name>chengy2</name>
<email>31397594+chengy2@users.noreply.github.com</email>
</author>
<published>2024-04-29T21:48:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=2aa66b1b4ebdefa7facf8c28cde49b039eb0d3cf'/>
<id>urn:sha1:2aa66b1b4ebdefa7facf8c28cde49b039eb0d3cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp][hc32] support hc32f448</title>
<updated>2024-02-22T17:34:35Z</updated>
<author>
<name>skllii</name>
<email>48580851+skllii@users.noreply.github.com</email>
</author>
<published>2024-02-22T17:34:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6fe69d7431ed54fcea863ed68d7c4f9746e771b0'/>
<id>urn:sha1:6fe69d7431ed54fcea863ed68d7c4f9746e771b0</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>
</feed>
