Commit Graph

26 Commits

Author SHA1 Message Date
Yuqiang Wang 7fbe8bbd49
[bsp][stm32] 完善STM32系列 pwm_config.h文件 (#7196) 2023-04-08 01:03:22 -04:00
Meco Man 7ecba50ff6 format stm32 drivers 2023-01-08 22:52:13 -05:00
linshire 1fc558e6f8 删除对pwm_config的判断,并初始化channel 为RT_NULL 2022-10-30 13:04:07 -04:00
linshire 14722a4853 Revert "提交stm32 bsp drv_pwm.c里面的一个小建议 (#6517)"
This reverts commit a4eb5a5399.
2022-10-28 21:07:39 -04:00
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
Yang sheng 542195559b
[bsp][stm32] Add support with pwm6 to pwm13 (#5620) 2022-03-07 01:20:05 +08:00
wanghaijing 5b7dac8c8e [add] spi config increases irq_type 2021-04-23 09:55:31 +08:00
Meco Man fc04d828ee [stm32][driver] auto formatted 2021-03-08 22:40:39 +08:00
z14git 5fa0656a9a add PWM1_CONFIG 2020-04-13 15:28:12 +08:00
guozhanxin 40d6055849 [bsp][stm32]Enable interrupt in drive.|在驱动里使能中断,不需要在cubemx里配置中断了。 2019-10-30 23:53:13 +08:00
guozhanxin f50f38745b Perfect usb driver compatible with HS.|完善usb驱动兼容 HS 2019-10-27 21:06:58 +08:00
tangweikang c11686751e [bsp][stm32][driver][drv_pulse_encoder.c] code style 2019-09-24 14:27:40 +08:00
tangweikang b76d3dac8a [components][drivers] change name: encoder -> pulse_encoder 2019-08-30 15:58:52 +08:00
tangweikang 05b1dff094 [bsp][stm32] add drv_encoder.c to stm32f103-atk-warshipv3 2019-08-27 09:31:41 +08:00
Chinese66 6f7749bb07 添加f1的usbd驱动 2019-07-29 21:37:35 +08:00
SummerGift 9e26010948 【修复】由于添加串口 DMA 发送对串口 DMA 接收配置造成的影响 2019-05-24 20:53:43 +08:00
zhouchuanfu b844496ac9 增加F1系列的uart的dma支持。 2019-05-04 18:44:36 +08:00
SummerGift 289b4316af [bsp][stm32] add extern "C" for header file 2019-01-09 10:12:35 +08:00
SummerGift 0d025a69e6 [bsp][stm32] fix bug in dma config && clean up the dma config code 2019-01-08 18:20:17 +08:00
SummerGift 574492a282 [bsp][stm32] Modify the DMA implementation 2019-01-08 11:59:27 +08:00
SummerGift d023fb47ba [bsp][stm32] add all series dma_config files 2019-01-08 11:58:46 +08:00
SummerGift d486ac5fed [bsp][stm32] add sdio_config.h 2018-12-26 18:03:21 +08:00
SummerGift 71751eb6f1 [bsp][stm32] add sdio, hw_timer and pwm drivers 2018-12-17 10:38:38 +08:00
SummerGift d509db834b [bsp][stm32] add more drivers for stm32 bsp 2018-12-10 09:48:10 +08:00
SummerGift 5cbe222196 [bsp][STM32] update stm32 bsp 2018-11-30 18:29:59 +08:00
SummerGift 739b2ba51c [bsp][STM32] Add bsp based on new framework 2018-11-29 17:06:06 +08:00