diff options
| author | 梁生 <[email protected]> | 2023-11-14 22:18:32 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-14 09:18:32 -0500 |
| commit | 7a56058c612ba86e1d0403490029b916efe87b87 (patch) | |
| tree | 57f907c9dfae9e9c6d0b3a2627e5f7b69a4ad736 /components/libc/compilers/SConscript | |
| parent | 6d7e393ce9d30388c4edba2fa0306b9ac1cf230a (diff) | |
[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指令支持。
Diffstat (limited to 'components/libc/compilers/SConscript')
0 files changed, 0 insertions, 0 deletions
