summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-09-04 08:47:11 +0800
committerGitHub <[email protected]>2020-09-04 08:47:11 +0800
commitb0418f6cbf7a7ad8c87b3db6175287630a520b3a (patch)
treea0b36d882b4737d1952f487b0dea3f47a21629fd /bsp
parent5c1fd3ed397b70eb6d5517e896b69ce2f31ecfab (diff)
parent421dea8fdbe49bd8abfa837c7d31a12b0f74dfa4 (diff)
Merge pull request #3878 from supperthomas/supperthomas
[bsp/nrf5x]add the sample of softdevice config
Diffstat (limited to 'bsp')
-rw-r--r--bsp/nrf5x/nrf52840/board/Kconfig73
1 files changed, 73 insertions, 0 deletions
diff --git a/bsp/nrf5x/nrf52840/board/Kconfig b/bsp/nrf5x/nrf52840/board/Kconfig
index b16565f77a..09ec92dff4 100644
--- a/bsp/nrf5x/nrf52840/board/Kconfig
+++ b/bsp/nrf5x/nrf52840/board/Kconfig
@@ -25,6 +25,9 @@ menu "Onboard Peripheral Drivers"
default n
if BSP_USING_QSPI_FLASH
+ config NRFX_QSPI_ENABLED
+ int
+ default 1
config BSP_QSPI_SCK_PIN
int "QSPI SCK pin number"
range 0 31
@@ -204,7 +207,77 @@ if BSP_USING_SOFTDEVICE
config NRF_SDH_SOC_ENABLED
int
default 1
+ config NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
+ int
+ default 1
+ config BLE_ADVERTISING_ENABLED
+ int
+ default 1
+ config NRF_BLE_QWR_ENABLED
+ int
+ default 1
+ config NRF_SDH_BLE_VS_UUID_COUNT
+ int
+ default 1
+ config NRF_BLE_CONN_PARAMS_ENABLED
+ int
+ default 1
+ config NRF_BLE_CONN_PARAMS_MAX_SLAVE_LATENCY_DEVIATION
+ int
+ default 499
+ config NRF_BLE_CONN_PARAMS_MAX_SUPERVISION_TIMEOUT_DEVIATION
+ int
+ default 65535
+ config NRF_BLE_GATT_ENABLED
+ int
+ default 1
+
+ choice
+ prompt "sample(softdevice)"
+ default SD_BLE_APP_BEACON
+
+ config SD_BLE_APP_BEACON
+ bool "ble_app_beacon"
+ default n
+
+ config SD_BLE_APP_BLINKY
+ bool "ble_app_blinky"
+ default n
+ if SD_BLE_APP_BLINKY
+ config BLE_LBS_ENABLED
+ int
+ default 1
+ endif
+
+ config SD_BLE_APP_UART
+ bool "ble_app_uart"
+ default n
+ if SD_BLE_APP_UART
+ config BLE_NUS_ENABLED
+ int
+ default 1
+ config NRF_SDH_BLE_GATT_MAX_MTU_SIZE
+ int
+ default 247
+ endif
+
+ config SD_BLE_APP_HRS
+ bool "ble_app_hrs"
+ default n
+ if SD_BLE_APP_HRS
+ config BLE_HRS_ENABLED
+ int
+ default 1
+ config NRF_SDH_BLE_GATT_MAX_MTU_SIZE
+ int
+ default 247
+ endif
+ config SD_BLE_APP_HIDS_MOUSE
+ bool "ble_app_hids_mouse"
+ default n
+ endchoice
endif
+
menuconfig BSP_USING_UART
bool "Enable UART"
default y