Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dgr6878
rt-thread
提交
94c358b1
R
rt-thread
项目概览
dgr6878
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
94c358b1
编写于
10月 26, 2018
作者:
B
Bernard Xiong
提交者:
GitHub
10月 26, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1911 from XXXXzzzz000/add_pwm_driver
[driver][pwm] add pwm driver.
上级
bbd7f4c6
d4bdeb03
变更
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
浏览文件 @
94c358b1
...
@@ -211,3 +211,122 @@ if RT_USING_DEVICE_IPC && (STM32F103RC || STM32F103RD || STM32F103RE || STM32F10
...
@@ -211,3 +211,122 @@ if RT_USING_DEVICE_IPC && (STM32F103RC || STM32F103RD || STM32F103RE || STM32F10
default n
default n
depends on RT_USING_SDCARD
depends on RT_USING_SDCARD
endif
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
浏览文件 @
94c358b1
...
@@ -29,6 +29,9 @@ if GetDepend(['RT_USING_WDT']):
...
@@ -29,6 +29,9 @@ if GetDepend(['RT_USING_WDT']):
if
GetDepend
([
'RT_USING_RTC'
]):
if
GetDepend
([
'RT_USING_RTC'
]):
src
+=
[
'drv_rtc.c'
]
src
+=
[
'drv_rtc.c'
]
if
GetDepend
([
'RT_USING_PWM'
]):
src
+=
[
'drv_pwm.c'
]
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
src
+=
[
'gcc_startup.s'
]
src
+=
[
'gcc_startup.s'
]
...
...
bsp/stm32f10x-HAL/drivers/drv_pwm.c
0 → 100644
浏览文件 @
94c358b1
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录