Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
d4bdeb03
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d4bdeb03
编写于
10月 17, 2018
作者:
X
XXXXzzzz000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][stm32f10x-HAL] add pwm driver.
上级
94422074
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
964 addition
and
0 deletion
+964
-0
bsp/stm32f10x-HAL/Kconfig
bsp/stm32f10x-HAL/Kconfig
+119
-0
bsp/stm32f10x-HAL/drivers/SConscript
bsp/stm32f10x-HAL/drivers/SConscript
+3
-0
bsp/stm32f10x-HAL/drivers/drv_pwm.c
bsp/stm32f10x-HAL/drivers/drv_pwm.c
+842
-0
未找到文件。
bsp/stm32f10x-HAL/Kconfig
浏览文件 @
d4bdeb03
...
...
@@ -206,3 +206,122 @@ if RT_USING_DEVICE_IPC && (STM32F103RC || STM32F103RD || STM32F103RE || STM32F10
default n
depends on RT_USING_SDCARD
endif
menuconfig BSP_USING_PWM1
bool "Using PWM1"
select RT_USING_PWM
default n
if BSP_USING_PWM1
config BSP_USING_PWM1_CH1
bool "Enable Channel 1 (PE9)"
default n
config BSP_USING_PWM1_CH2
bool "Enable Channel 2 (PE11)"
default n
endif
menuconfig BSP_USING_PWM2
bool "Using PWM2"
select RT_USING_PWM
default n
if BSP_USING_PWM2
config BSP_USING_PWM2_CH1
bool "Enable Channel 1 (PB10)"
default n
config BSP_USING_PWM2_CH2
bool "Enable Channel 2 (PB11)"
default n
config BSP_USING_PWM2_CH3
bool "Enable Channel 3 (PA15)"
default n
config BSP_USING_PWM2_CH4
bool "Enable Channel 4 (PB3)"
default n
endif
menuconfig BSP_USING_PWM3
bool "Using PWM3"
select RT_USING_PWM
default n
if BSP_USING_PWM3
config BSP_USING_PWM3_CH1
bool "Enable Channel 1 (PA6)"
default n
config BSP_USING_PWM3_CH2
bool "Enable Channel 2 (PA7)"
default n
config BSP_USING_PWM3_CH3
bool "Enable Channel 3 (PB0)"
default n
config BSP_USING_PWM3_CH4
bool "Enable Channel 4 (PB1)"
default n
endif
menuconfig BSP_USING_PWM4
bool "Using PWM4"
select RT_USING_PWM
default n
if BSP_USING_PWM4
config BSP_USING_PWM4_CH1
bool "Enable Channel 1 (PD12)"
default n
config BSP_USING_PWM4_CH2
bool "Enable Channel 2 (PD13)"
default n
config BSP_USING_PWM4_CH3
bool "Enable Channel 3 (PD14)"
default n
config BSP_USING_PWM4_CH4
bool "Enable Channel 4 (PD15)"
default n
endif
menuconfig BSP_USING_PWM5
bool "Using PWM5"
select RT_USING_PWM
default n
if BSP_USING_PWM5
config BSP_USING_PWM5_CH1
bool "Enable Channel 1 (PA0)"
default n
config BSP_USING_PWM5_CH2
bool "Enable Channel 2 (PA1)"
default n
config BSP_USING_PWM5_CH3
bool "Enable Channel 3 (PA2)"
default n
config BSP_USING_PWM5_CH4
bool "Enable Channel 4 (PA3)"
default n
endif
menuconfig BSP_USING_PWM8
bool "Using PWM8"
select RT_USING_PWM
default n
if BSP_USING_PWM8
config BSP_USING_PWM8_CH1
bool "Enable Channel 1 (PC6)"
default n
config BSP_USING_PWM8_CH2
bool "Enable Channel 2 (PC7)"
default n
config BSP_USING_PWM8_CH3
bool "Enable Channel 3 (PC8)"
default n
config BSP_USING_PWM8_CH4
bool "Enable Channel 4 (PC9)"
default n
endif
bsp/stm32f10x-HAL/drivers/SConscript
浏览文件 @
d4bdeb03
...
...
@@ -26,6 +26,9 @@ if GetDepend(['RT_USING_I2C', 'RT_USING_I2C_BITOPS']):
if
GetDepend
([
'RT_USING_WDT'
]):
src
+=
[
'drv_iwg.c'
]
if
GetDepend
([
'RT_USING_PWM'
]):
src
+=
[
'drv_pwm.c'
]
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
src
+=
[
'gcc_startup.s'
]
...
...
bsp/stm32f10x-HAL/drivers/drv_pwm.c
0 → 100644
浏览文件 @
d4bdeb03
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录