Browse Source

add ADC, WDT, PWM to Kconfig

chenyingchun0312 4 years ago
parent
commit
10a9c12175
1 changed files with 28 additions and 4 deletions
  1. 28 4
      bsp/nrf5x/nrf52832/board/Kconfig

+ 28 - 4
bsp/nrf5x/nrf52832/board/Kconfig

@@ -26,6 +26,15 @@ menu "On-chip Peripheral Drivers"
         bool "Enable GPIO"
         bool "Enable GPIO"
         select RT_USING_PIN
         select RT_USING_PIN
         default y
         default y
+    config BSP_USING_SAADC
+        bool "Enable SAADC"
+        select RT_USING_ADC
+        default n
+        if BSP_USING_SAADC
+                config NRFX_SAADC_ENABLED
+                int 
+                default 1  
+        endif
     menuconfig BSP_USING_PWM
     menuconfig BSP_USING_PWM
         bool "Enable PWM"
         bool "Enable PWM"
         select RT_USING_PWM
         select RT_USING_PWM
@@ -44,19 +53,19 @@ menu "On-chip Peripheral Drivers"
                     config BSP_USING_PWM0_CH0
                     config BSP_USING_PWM0_CH0
                         int "PWM0 channel 0 pin number set"
                         int "PWM0 channel 0 pin number set"
                         range 0 47
                         range 0 47
-                        default 13
+                        default 17
                     config BSP_USING_PWM0_CH1
                     config BSP_USING_PWM0_CH1
                         int "PWM0 channel 1 pin number set"
                         int "PWM0 channel 1 pin number set"
                         range 0 47
                         range 0 47
-                        default 14
+                        default 18
                     config BSP_USING_PWM0_CH2
                     config BSP_USING_PWM0_CH2
                         int "PWM0 channel 2 pin number set"
                         int "PWM0 channel 2 pin number set"
                         range 0 47
                         range 0 47
-                        default 15
+                        default 19
                     config BSP_USING_PWM0_CH3
                     config BSP_USING_PWM0_CH3
                         int "PWM0 channel 3 pin number set"
                         int "PWM0 channel 3 pin number set"
                         range 0 47
                         range 0 47
-                        default 16
+                        default 20
                 endif
                 endif
                 config BSP_USING_PWM1
                 config BSP_USING_PWM1
                     bool "Enable PWM1 bus"
                     bool "Enable PWM1 bus"
@@ -289,6 +298,21 @@ endif
             range 0x1000 0x1000
             range 0x1000 0x1000
             default 0x1000
             default 0x1000
 	endmenu
 	endmenu
+    config BSP_USING_WDT
+        bool "Enable WDT"
+        select RT_USING_WDT
+        default n
+    if BSP_USING_WDT
+        config NRFX_WDT_ENABLED
+        int
+        default 1
+        config NRFX_WDT0_ENABLED
+        int
+        default 1
+        config NRFX_WDT_CONFIG_NO_IRQ
+        int
+        default 1
+    endif
 endmenu
 endmenu
 
 
 endmenu
 endmenu