梁生
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
..
2023-10-08 11:21:00 +08:00
2023-10-29 13:13:59 -04:00
2023-11-02 20:16:02 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-11-09 16:38:19 +08:00
2023-10-08 11:21:00 +08:00
2023-10-24 09:53:48 -04:00
2023-10-08 11:21:00 +08:00
2023-01-12 22:47:23 -05:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-11-01 12:02:53 -04:00
2023-10-08 11:21:00 +08:00
2023-07-22 10:36:42 +08:00
2023-11-10 17:49:45 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-18 20:50:30 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-11-14 09:18:32 -05:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-21 20:14:45 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-12 08:33:13 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-18 20:50:30 +08:00
2023-10-08 11:21:00 +08:00
2023-04-16 22:37:16 -04:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-02-07 21:43:57 -05:00
2023-10-08 11:21:00 +08:00
2023-01-12 22:47:23 -05:00
2023-10-09 09:28:12 +08:00
2023-10-08 11:21:00 +08:00
2023-03-23 01:55:21 -04:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-15 20:33:20 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-29 13:15:05 -04:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-02-07 21:43:57 -05:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-11 12:01:20 -04:00
2023-04-22 19:22:19 +01:00
2023-10-08 11:21:00 +08:00
2023-02-07 21:43:57 -05:00
2023-10-21 20:14:45 +08:00
2023-10-25 20:31:25 +08:00
2023-10-21 20:14:45 +08:00
2023-10-18 20:50:30 +08:00
2023-11-06 23:27:14 -05:00
2023-11-01 06:07:46 +08:00
2023-10-08 13:28:17 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-03-20 00:06:16 -04:00
2023-10-08 11:21:00 +08:00
2023-03-20 00:06:16 -04:00
2023-07-09 00:19:29 -04:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-30 08:24:55 -04:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-04-04 09:06:27 -04:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-01-12 22:47:23 -05:00
2023-02-07 21:43:57 -05:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-01-12 22:47:23 -05:00
2023-11-06 06:23:09 -05:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-10-08 11:21:00 +08:00
2023-07-17 20:39:12 -04:00