Commit Graph

44 Commits

Author SHA1 Message Date
wdfk-prog db3e261bc4 添加判断当前使用定时器是否可配置为主从定时器模式 2022-12-06 00:07:57 -05:00
liYony 575fe18ea0 some errors 2022-12-06 10:37:15 +08:00
liYony 7a49f8d920 tim_clock_get 2022-12-06 10:37:15 +08:00
wdfk-prog aaf1abf25f [fix][stm32]修复输出高电平异常的问题 2022-12-05 20:49:28 -05:00
Man, Jianting (Meco) a24f527990
[stm32][tim/pwm] 抽出公共代码,防止日后演进出现分歧 (#6575)
* [stm32][tim/pwm] 抽出公共代码,防止日后演进出现分歧

* Update drv_tim.c
2022-11-06 22:58:39 -05:00
linshire 315c25883c [bsp] fix the return of the function(drv_pwm_control) in stm32 drv_pwm 2022-10-30 02:17:02 -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
linshire e01776ea76 将驱动文件中判断RT_USING_XXX改为BSP_USING_XXX,解决了部分框架层与驱动层的混用 2022-10-27 18:30:08 -04:00
Meco Man 97c483fe35 [rtduino][readme] change title 2022-09-28 02:11:35 -04:00
Man, Jianting (Meco) c7a9481831
[rtduino] 对接STM32F412 NUCLEO (#6461) 2022-09-25 22:38:35 -04:00
liYangYang d25bf469fa
[rt_drv_pwm]完善PWM框架互补输出部分代码 (#6338)
* [pwm]Improve the code

* 将与bsp无关的代码移植到框架部分

* 添加注释
2022-09-01 00:59:44 -04:00
Meco Man 74a802b445 [stm32] 合并获取定时器时钟频率公共部分
防止后续维护出现没有全面修改的问题
2022-07-04 16:23:21 +08:00
BreederBai b2bc0dcd16
[rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数 (#6130)
* [rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数
2022-07-04 10:40:42 +08:00
BreederBai 78faea4b8d
[bsp/stm32]优化功能(drv_pwm):设置PWM频率和脉宽时不破坏上一个PWM周期 (#6129)
* [bsp/stm32]优化功能(drv_pwm):设置PWM频率和脉宽时不破坏上一个PWM周期
2022-07-04 10:26:33 +08:00
Man, Jianting (Meco) 7b47e8d052
[stm32f401-nucleo] arduino support (#5842)
* [stm32f401-nucleo] arduino support
* 增加application arduino main文件
* 调整目录结构
2022-04-20 09:09:58 +08:00
zuozuojia 04971a96fe [bsp/stm32] fix the bug of uart that not define pwm10 and pwm11 2022-04-11 15:02:12 +08:00
Man, Jianting (Meco) 81e5fa061f
[stm32f072 nucleo] support pwm for arduino (#5693) 2022-03-21 22:04:37 +08:00
YJIE_1998 b98f631580 【添加】stm32f3xx 库文件 2021-07-30 11:38:25 +08:00
Meco Man fc04d828ee [stm32][driver] auto formatted 2021-03-08 22:40:39 +08:00
Bernard Xiong 21ebf93e20
Merge pull request #4270 from greedyhao/stm32-pwm-fix
[bsp][stm32] fix PWMN_CMD_DISABLE config
2021-02-08 09:53:01 +08:00
greedyhao c339386c07 [bsp][stm32] fix PWMN_CMD_DISABLE config 2021-01-27 15:03:55 +08:00
thread-liu 552c55681e [PWM] Fix the timer clock frequency doubling problem. 2021-01-23 11:54:23 +08:00
Bernard Xiong 7ed63ef52b
Merge pull request #4250 from Trisuborn/master
为stm32的PWM驱动添加对STM32H7的支持、添加互补PWM功能的支持,补全pwm_get命令等
2021-01-21 11:58:52 +08:00
Trisuborn 68e5c6f511 Logical error 2021-01-21 06:37:42 +08:00
Trisuborn 55402e19db 优化互补PWM输出功能的实现逻辑,兼容原本API,增加互补PWM使能/失能命令 2021-01-20 23:47:18 +08:00
Trisuborn 63239801d9 修改无意义代码 2021-01-20 11:24:00 +08:00
Trisuborn aed3cc162f 为stm32的PWM驱动添加对STM32H7的支持、添加互补PWM功能的支持,补全pwm_get命令 2021-01-19 17:14:32 +08:00
Zhaoxing Li bda4b68a80 [bsp][stm32] Add HAL_TIM_Base_Init 2021-01-19 14:02:31 +08:00
thread-liu 2fcd940b57 [update] add drivers for stm32mp1. 2020-06-23 11:26:11 +08:00
xieyangrun d2a857e13a [STM32/drv_pwm.c]fixed PWM timer init. 2020-01-15 13:45:30 +08:00
z14git d3f8b9b9c1 修复pwm初始化时,相应的时钟没有使能的问题 2019-10-27 17:16:06 +08:00
a1012112796 60bda424eb [bsp][stm32] 更新stm32f427-robomaster-a外设驱动配置
1.增加串口1,7,8配置,经实机测试无误
2.增加PWM4 CH1 -- 4, PWM12(BUZZER)配置,因条件有限,仅测试了TIM12 CH1
3.经测试,CAN通信无法正常使用,原因尚未找出,故暂时删去此配置
测试所用编译器: mdk5, IAR
2019-09-10 19:17:38 +08:00
Wu Han 2e90a7e5b2 [stm32][driver] switch HAL_TIM_PWM_Init with HAL_TIM_Base_Init for new CubeMX 2019-08-15 13:38:44 +08:00
Wu Han 6a1e12f178 [stm32][driver] pwm enable clock 2019-08-15 11:21:14 +08:00
MurphyZhao e3a0773520 [bsp][stm32] fix drv_pwm.c device register usefault
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-08-07 14:30:15 +08:00
misonyo aae6274ef1 [bsp/stm32]add stm32f2xx template 2019-06-18 18:26:49 +08:00
yangjie11 e0345397f8
Update drv_pwm.c 2019-04-23 19:36:28 +08:00
yangjie e92a4263b4 [bsp][stm32/libraries]support PWM1 2019-04-23 19:17:21 +08:00
guozhanxin 8a9e1caebe [bsp][stm32]更新pwm驱动 2019-03-08 10:58:45 +08:00
guanwenliang 7b53218720 完善STM32G071的BSP 2019-02-15 10:43:09 +08:00
SummerGift 4d6d16fc98 [bsp][stm32] update drivers 2018-12-26 18:16:26 +08:00
SummerGift c6be644157 [bsp][stm32] update stm32 mul-series drivers 2018-12-26 10:43:46 +08:00
SummerGift 71751eb6f1 [bsp][stm32] add sdio, hw_timer and pwm drivers 2018-12-17 10:38:38 +08:00