rt-thread-official/bsp/hc32/libraries/hc32_drivers
梁生 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
..
Kconfig format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
SConscript format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
drv_adc.c [bsp][hc32]优化can驱动和pwm驱动 (#8217) 2023-11-14 09:18:32 -05:00
drv_adc.h Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_can.c [bsp][hc32]优化can驱动和pwm驱动 (#8217) 2023-11-14 09:18:32 -05:00
drv_can.h Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_dma.h Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_eth.c [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -04:00
drv_eth.h Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_gpio.c [bsp] fix mismatched function types in rt_pin_ops for all drv_gpio.c (#7457) 2023-05-08 23:35:27 -04:00
drv_gpio.h Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_irq.c Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_irq.h Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_log.h Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_pwm_tmra.c [bsp][hc32]优化can驱动和pwm驱动 (#8217) 2023-11-14 09:18:32 -05:00
drv_rtc.c 添加HC32F460系列RTC外设驱动 (#6069) 2022-06-15 10:38:35 +08:00
drv_soft_i2c.c Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_soft_i2c.h [bsp][hc32]添加HC32F460系列模拟I2C外设驱动支持 2022-06-13 11:33:48 +08:00
drv_spi.c [bsp][hc32]优化can驱动和pwm驱动 (#8217) 2023-11-14 09:18:32 -05:00
drv_spi.h Hc32 pr (#6003) 2022-05-31 11:53:56 +08:00
drv_usart.c rt_device_write/read return data type as rt_ssize_t 2023-02-07 21:43:57 -05:00
drv_usart.h 修复多串口的描述符被覆盖的问题 (#6051) 2022-06-09 14:32:37 +08:00
drv_wdt.c [bsp][hc32]添加hc32f460系列WDT外设驱动 (#6158) 2022-08-02 22:46:35 -04:00