定时器输入捕获驱动实现

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2023-01-17 11:00:29 +08:00
parent 9ebd4970a0
commit b2d3238dc2
15 changed files with 860 additions and 167 deletions

View File

@@ -194,7 +194,7 @@ menu "On-chip Peripheral Drivers"
depends on BSP_USING_SPI2
select BSP_SPI2_TX_USING_DMA
default n
endif
menuconfig BSP_USING_I2C1
@@ -275,6 +275,50 @@ menu "On-chip Peripheral Drivers"
endif
endif
menuconfig BSP_USING_CAPTURE
bool "Enable input capture"
default n
select RT_USING_INPUT_CAPTURE
if BSP_USING_CAPTURE
menuconfig BSP_USING_CAPTURE1
bool "Enable capture1"
default n
if BSP_USING_CAPTURE1
config BSP_USING_CAPTURE1_CH1
bool "Enable capture1 channel1"
default n
config BSP_USING_CAPTURE1_CH2
bool "Enable capture1 channel2"
default n
config BSP_USING_CAPTURE1_CH3
bool "Enable capture1 channel3"
default n
config BSP_USING_CAPTURE1_CH4
bool "Enable capture1 channel4"
default n
endif
menuconfig BSP_USING_CAPTURE2
bool "Enable capture2"
default n
if BSP_USING_CAPTURE2
config BSP_USING_CAPTURE2_CH1
bool "Enable capture2 channel1"
default n
config BSP_USING_CAPTURE2_CH2
bool "Enable capture2 channel2"
default n
config BSP_USING_CAPTURE2_CH3
bool "Enable capture2 channel3"
default n
config BSP_USING_CAPTURE2_CH4
bool "Enable capture2 channel4"
default n
endif
endif
menuconfig BSP_USING_ADC
bool "Enable ADC"
default n