rt-thread/bsp/stm32/libraries
100ask-Alen a4eb5a5399
提交stm32 bsp drv_pwm.c里面的一个小建议 (#6517)
在使用stm32的pwm驱动时,发现其初始化channel的时候是根据device->channel这个值去初始化的,device->channel这个值是在pwm_configh.h里面定义设置的,又根据rtt的pwm例程,和常规习惯,应该大多数人会更喜欢设置channel=1/2/3/4,而不是在pwm_configh.h中将channel设置为TIM_CHANNEL_1/2/3/4,因此建议drv_pwm.c做出PR中的修改。

在实际开发中,因pwm_configh.h的示例均是.channel=0,又没有做出解释说明要让.channel=TIM_CHANNEL_1/2/3/4的值,容易误操作导致没有成功输出PWM,这是我在实际开发中遇到的现实问题,因而提出此建议。
2022-10-28 18:38:17 -04:00
..
HAL_Drivers 提交stm32 bsp drv_pwm.c里面的一个小建议 (#6517) 2022-10-28 18:38:17 -04:00
STM32F0xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32F1xx_HAL [stm32f103-fire-arbitrary] support nandflash K9F1G08U0E && LPM init && partition create && partition read/write 2022-10-20 00:28:52 -04:00
STM32F2xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32F3xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32F4xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32F7xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32G0xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32G4xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32H7xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32L0xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32L1xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32L4xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32L5xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32MPxx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32U5xx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32WBxx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
STM32WLxx_HAL [stm32] move CMSIS hearder files to common folder (#5998) 2022-06-04 17:05:37 +08:00
templates [bsp][applications][sconscript] 整理统一sconscript格式 (#6481) 2022-10-03 10:43:08 -04:00
.ignore_format.yml [update] ignore_format.yml 2021-11-15 15:31:51 +08:00
Kconfig [update] add stm32u575-st-nucleo bsp. 2021-11-15 11:23:12 +08:00