summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-11-27 02:42:52 +0800
committerGitHub <[email protected]>2021-11-27 02:42:52 +0800
commit05e1fdc8e596f38ad956d61cfb4302d45bb8e7fb (patch)
treebc2162f49959f3304a6f919ebf38b15a386bdeca /bsp
parent7f194865e056bb39efe54de577b14aa6a63d414e (diff)
parent43aefc9c431812538acbf846084f43144226cdeb (diff)
Merge pull request #5306 from chenyingchun0312/fea_nrf5x_tinyusb
[bsp/nrf5x] add hwtimer config & tinyusb config
Diffstat (limited to 'bsp')
-rw-r--r--bsp/nrf5x/nrf52840/board/Kconfig58
1 files changed, 58 insertions, 0 deletions
diff --git a/bsp/nrf5x/nrf52840/board/Kconfig b/bsp/nrf5x/nrf52840/board/Kconfig
index 528bf981e4..12c921fc7f 100644
--- a/bsp/nrf5x/nrf52840/board/Kconfig
+++ b/bsp/nrf5x/nrf52840/board/Kconfig
@@ -405,6 +405,64 @@ menu "On-chip Peripheral Drivers"
hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000"
default 0x1000
endmenu
+
+ config BSP_USING_TIM
+ bool "Enable TIMER"
+ select RT_USING_HWTIMER
+ default n
+ if BSP_USING_TIM
+ config NRFX_TIMER_ENABLED
+ int
+ default 1
+ config BSP_USING_TIM0
+ bool "Enable TIMER0"
+ default n
+ if BSP_USING_TIM0
+ config NRFX_TIMER0_ENABLED
+ int
+ default 1
+ endif
+ config BSP_USING_TIM1
+ bool "Enable TIMER1"
+ default n
+ if BSP_USING_TIM1
+ config NRFX_TIMER1_ENABLED
+ int
+ default 1
+ endif
+ config BSP_USING_TIM2
+ bool "Enable TIMER2"
+ default n
+ if BSP_USING_TIM2
+ config NRFX_TIMER2_ENABLED
+ int
+ default 1
+ endif
+ config BSP_USING_TIM3
+ bool "Enable TIMER3"
+ default n
+ if BSP_USING_TIM3
+ config NRFX_TIMER3_ENABLED
+ int
+ default 1
+ endif
+
+ config BSP_USING_TIM4
+ bool "Enable TIMER4"
+ default n
+ if BSP_USING_TIM4
+ config NRFX_TIMER4_ENABLED
+ int
+ default 1
+ endif
+ endif
+
+
+ if PKG_USING_TINYUSB
+ config NRFX_POWER_ENABLED
+ int
+ default 1
+ endif
endmenu