梁生
|
7a56058c61
|
[bsp][hc32]优化can驱动和pwm驱动 (#8217)
**为什么提交这份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指令支持。
|
2023-11-14 09:18:32 -05:00 |
Meco Man
|
0f461e870c
|
[errno code][-RT_ERROR] fix that use RT_ERROR without -
|
2023-03-20 00:06:16 -04:00 |
cmbjxxiao
|
c8d92d7529
|
fix bugs of hc32 driver adc and can (#6077)
* fix bugs of hc32 driver adc and can
|
2022-06-15 10:37:27 +08:00 |
xiaoxiaolisunny
|
5ccf6a0fa8
|
添加HC32F460系列ADC外设驱动支持 (#6067)
* 添加HC32F460系列ADC外设驱动支持
|
2022-06-13 21:13:51 +08:00 |
levizhxl
|
1d6347796d
|
Hc32 pr (#6003)
* HC32F460 supported
Co-authored-by: JamieTx <yangjp24@126.com>
Co-authored-by: Jamie <48308473+JamieTx@users.noreply.github.com>
|
2022-05-31 11:53:56 +08:00 |
Jamie
|
db27095da6
|
Unified management interrupt vector table. (#5925)
* Unified management interrupt vector table.
|
2022-05-15 20:57:35 +08:00 |
Jamie
|
28b551bfe3
|
Add the BSP of HC32 series. (#5905)
* Add the BSP of HC32 series.
|
2022-05-06 09:28:21 +08:00 |