<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/bsp/hc32, branch v5.1.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?h=v5.1.0</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/bsp/hc32?h=v5.1.0'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2024-04-20T05:23:36Z</updated>
<entry>
<title>[bsp] update projects</title>
<updated>2024-04-20T05:23:36Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2024-04-20T05:23:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e58ecd9e5439be8dfe920f6ab355101b1704acec'/>
<id>urn:sha1:e58ecd9e5439be8dfe920f6ab355101b1704acec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp][drv_gpio] fix the error code return when pin number is illegal</title>
<updated>2024-04-17T02:29:45Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2024-03-24T01:04:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1dc436feca761deb303cf7525e3faa53a63a6199'/>
<id>urn:sha1:1dc436feca761deb303cf7525e3faa53a63a6199</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[pin] pin_read/write rt_uint8_t to rt_ssize_t</title>
<updated>2024-04-17T02:29:45Z</updated>
<author>
<name>kk</name>
<email>zhkag@foxmail.com</email>
</author>
<published>2024-03-23T18:50:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3f335619bd9fdaf1f502fd02fa4902245c761300'/>
<id>urn:sha1:3f335619bd9fdaf1f502fd02fa4902245c761300</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[bsp] update projects</title>
<updated>2024-03-21T03:23:29Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2024-03-21T03:05:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3f26998f9c653702ad8c9f958a3ae38f3a8ef6d6'/>
<id>urn:sha1:3f26998f9c653702ad8c9f958a3ae38f3a8ef6d6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[BSP][HC32] drv_usart.c fix macro switch error</title>
<updated>2024-03-08T01:26:14Z</updated>
<author>
<name>sp-cai</name>
<email>70000077+sp-cai@users.noreply.github.com</email>
</author>
<published>2024-03-08T01:15:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cddab69d7798fee9b8e5a4778264947c02a2fc9f'/>
<id>urn:sha1:cddab69d7798fee9b8e5a4778264947c02a2fc9f</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>[bsp][hc32]更正pin和usart初始化顺序(bug fix)</title>
<updated>2024-01-15T17:00:09Z</updated>
<author>
<name>yangpengya</name>
<email>53293497+yangpengya@users.noreply.github.com</email>
</author>
<published>2024-01-15T17:00:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=2a68f70094326ba8bd05d0361171df565f08225a'/>
<id>urn:sha1:2a68f70094326ba8bd05d0361171df565f08225a</id>
<content type='text'>
#8480
#8458</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]更正pin和usart初始化顺序</title>
<updated>2024-01-02T11:06:13Z</updated>
<author>
<name>yangpeng</name>
<email>yangpengya@qq.com</email>
</author>
<published>2024-01-02T07:03:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7c07a974792b0f6dc60375eb54095c903e250091'/>
<id>urn:sha1:7c07a974792b0f6dc60375eb54095c903e250091</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>
