1menu "Hardware Drivers Config"
2
3config SOC_NRF52833
4    bool
5    select RT_USING_COMPONENTS_INIT
6    select RT_USING_USER_MAIN
7    default y
8
9config SOC_NORDIC
10    bool
11    default y
12
13choice
14    prompt "Select BSP board "
15    default BSP_BOARD_PCA_10100
16
17    config BSP_BOARD_PCA_10100
18        bool "NRF52833 pca10100"
19
20endchoice
21
22menu "On-chip Peripheral Drivers"
23    config BSP_USING_UART
24        bool "Enable UART"
25        default y
26        select RT_USING_SERIAL
27            config BSP_USING_UART0
28                bool "Enable UART0"
29                default y
30                depends on BSP_USING_UART
31
32                config BSP_UART0_RX_PIN
33                    depends on BSP_USING_UART0
34                    int "uart0 rx pin number"
35                    default 8 if BSP_BOARD_PCA_10100
36
37                config BSP_UART0_TX_PIN
38                    depends on BSP_USING_UART0
39                    int "uart0 tx pin number"
40                    default 6 if BSP_BOARD_PCA_10100
41
42    menu "On-chip flash config"
43
44        config MCU_FLASH_START_ADDRESS
45            hex "MCU FLASH START ADDRESS"
46            default 0x00000000
47
48        config MCU_FLASH_SIZE_KB
49            int "MCU FLASH SIZE, MAX size 1024 KB"
50            default 1024
51
52        config MCU_SRAM_START_ADDRESS
53            hex "MCU RAM START ADDRESS"
54            default 0x20000000
55
56        config MCU_SRAM_SIZE_KB
57            int "MCU RAM SIZE"
58            default 256
59
60        config MCU_FLASH_PAGE_SIZE
61            hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000"
62            default 0x1000
63    endmenu
64
65endmenu
66
67if SOC_NORDIC
68    config NRFX_CLOCK_ENABLED
69    int
70    default 1
71    config    NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY
72    int
73    default 7
74    config NRFX_CLOCK_CONFIG_LF_SRC
75    int
76    default 1
77endif
78
79if BSP_USING_UART
80    config NRFX_USING_UART
81    bool
82    default y
83
84    config NRFX_UART_ENABLED
85    int
86    default 1
87
88    config NRFX_UART0_ENABLED
89    int
90    default 1
91    depends on BSP_USING_UART0
92endif
93
94choice
95prompt "BLE STACK"
96default BLE_STACK_USING_NULL
97help
98    Select the ble stack
99
100config BLE_STACK_USING_NULL
101    bool "not use the ble stack"
102
103config  BSP_USING_SOFTDEVICE
104    select PKG_USING_NRF5X_SDK
105    bool "Nordic softdevice(perpheral)"
106
107config BSP_USING_NIMBLE
108    select PKG_USING_NIMBLE
109    select PKG_NIMBLE_BSP_NRF52840
110    bool "use nimble stack(iot)"
111endchoice
112
113
114endmenu
115
116
117