@@ -6,7 +6,17 @@ config SOC_NRF52840
66 select RT_USING_COMPONENTS_INIT
77 select RT_USING_USER_MAIN
88 default y
9+ config NRFX_CLOCK_ENABLED
10+ int
11+ default 1
12+ config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
13+ int
14+ default 7
15+ config NRFX_CLOCK_CONFIG_LF_SRC
16+ int
17+ default 1
918
19+
1020config SOC_NORDIC
1121 bool
1222 config SOC_NORDIC
@@ -63,6 +73,11 @@ menu "On-chip Peripheral Drivers"
6373 bool "Enable GPIO"
6474 select RT_USING_PIN
6575 default y
76+ if BSP_USING_GPIO
77+ config NRFX_GPIOTE_ENABLED
78+ int
79+ default 1
80+ endif
6681 config BSP_USING_SAADC
6782 bool "Enable SAADC"
6883 select RT_USING_ADC
@@ -177,117 +192,25 @@ menu "On-chip Peripheral Drivers"
177192 default 16
178193 endif
179194 endif
180- menuconfig BSP_USING_SOFTDEVICE
181- bool "Enable NRF SOFTDEVICE"
182- select PKG_USING_NRF5X_SDK
183- select NRFX_CLOCK_ENABLED
184- default n
185- if BSP_USING_SOFTDEVICE
186- config NRFX_CLOCK_ENABLED
187- int
188- default 1
189- config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
190- int
191- default 7
192- config NRFX_RTC_ENABLED
193- int
194- default 1
195- config NRFX_RTC1_ENABLED
196- int
197- default 1
198- config NRF_CLOCK_ENABLED
199- int
200- default 1
201- config NRF_SDH_BLE_ENABLED
202- int
203- default 1
204- config NRF_SDH_ENABLED
205- int
206- default 1
207- config NRF_SDH_SOC_ENABLED
208- int
209- default 1
210- config NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
211- int
212- default 1
213- config BLE_ADVERTISING_ENABLED
214- int
215- default 1
216- config NRF_BLE_QWR_ENABLED
217- int
218- default 1
219- config NRF_SDH_BLE_VS_UUID_COUNT
220- int
221- default 1
222- config NRF_BLE_CONN_PARAMS_ENABLED
223- int
224- default 1
225- config NRF_BLE_CONN_PARAMS_MAX_SLAVE_LATENCY_DEVIATION
226- int
227- default 499
228- config NRF_BLE_CONN_PARAMS_MAX_SUPERVISION_TIMEOUT_DEVIATION
229- int
230- default 65535
231- config NRF_BLE_GATT_ENABLED
232- int
233- default 1
234-
235- choice
236- prompt "sample(softdevice)"
237- default SD_BLE_APP_BEACON
238-
239- config SD_BLE_APP_BEACON
240- bool "ble_app_beacon"
241- default n
242-
243- config SD_BLE_APP_BLINKY
244- bool "ble_app_blinky"
245- default n
246- if SD_BLE_APP_BLINKY
247- config BLE_LBS_ENABLED
248- int
249- default 1
250- endif
251195
252- config SD_BLE_APP_UART
253- bool "ble_app_uart"
254- default n
255- if SD_BLE_APP_UART
256- config BLE_NUS_ENABLED
257- int
258- default 1
259- config NRF_SDH_BLE_GATT_MAX_MTU_SIZE
260- int
261- default 247
262- endif
263-
264- config SD_BLE_APP_HRS
265- bool "ble_app_hrs"
266- default n
267- if SD_BLE_APP_HRS
268- config BLE_HRS_ENABLED
269- int
270- default 1
271- config NRF_SDH_BLE_GATT_MAX_MTU_SIZE
272- int
273- default 247
274- endif
275- config SD_BLE_APP_HIDS_MOUSE
276- bool "ble_app_hids_mouse"
277- default n
278- endchoice
279- endif
280196
281197 menuconfig BSP_USING_UART
282198 bool "Enable UART"
283199 default y
284200 select RT_USING_SERIAL
285201
286202 if BSP_USING_UART
203+ config NRFX_UART_ENABLED
204+ int
205+ default 1
206+
287207 config BSP_USING_UART0
288208 bool "Enable UART0"
289209 default y
290210 if BSP_USING_UART0
211+ config NRFX_UART0_ENABLED
212+ int
213+ default 1
291214 config BSP_UART0_RX_PIN
292215 int "uart0 rx pin number"
293216 range 0 31
@@ -308,6 +231,9 @@ endif
308231 default y
309232
310233 if BSP_USING_SPI
234+ config NRFX_SPI_ENABLED
235+ int
236+ default 1
311237 config BSP_USING_SPI0
312238 bool "Enable SPI0 bus"
313239 default y
@@ -422,4 +348,27 @@ endif
422348 endif
423349endmenu
424350
351+
352+ choice
353+ prompt "BLE STACK"
354+ default BLE_STACK_USING_NULL
355+ help
356+ Select the ble stack
357+
358+ config BLE_STACK_USING_NULL
359+ bool "not use the ble stack"
360+
361+ config BSP_USING_SOFTDEVICE
362+ select PKG_USING_NRF5X_SDK
363+ bool "Nordic softdevice(perpheral)"
364+
365+ config BSP_USING_NIMBLE
366+ select PKG_USING_NIMBLE
367+ select PKG_NIMBLE_BSP_NRF52840
368+ bool "use nimble stack(iot)"
369+ endchoice
370+
371+
425372endmenu
373+
374+
0 commit comments