2016-09-23 21:13:13 +08:00
|
|
|
CONFIG_ARM=y
|
2018-03-19 20:51:25 +08:00
|
|
|
CONFIG_SOC_FAMILY_NRF=y
|
2016-09-23 21:13:13 +08:00
|
|
|
CONFIG_SOC_SERIES_NRF51X=y
|
|
|
|
CONFIG_SOC_NRF51822_QFAC=y
|
|
|
|
CONFIG_BOARD_96B_CARBON_NRF51=y
|
|
|
|
|
|
|
|
# enable uart driver
|
|
|
|
CONFIG_SERIAL=y
|
|
|
|
CONFIG_UART_NRF5=y
|
|
|
|
CONFIG_UART_NRF5_GPIO_TX_PIN=29
|
|
|
|
CONFIG_UART_NRF5_GPIO_RX_PIN=11
|
|
|
|
|
|
|
|
# enable console
|
|
|
|
CONFIG_CONSOLE=y
|
|
|
|
CONFIG_UART_CONSOLE=y
|
|
|
|
|
|
|
|
# bluetooth
|
2017-08-09 14:21:11 +08:00
|
|
|
CONFIG_BT=y
|
2017-08-14 19:45:13 +08:00
|
|
|
CONFIG_BT_CTLR=y
|
2017-08-09 22:13:10 +08:00
|
|
|
CONFIG_BT_CTLR_TO_HOST_SPI_DEV_NAME="SPI_1"
|
|
|
|
CONFIG_BT_CTLR_TO_HOST_SPI_IRQ_DEV_NAME="GPIO_0"
|
|
|
|
CONFIG_BT_CTLR_TO_HOST_SPI_IRQ_PIN=28
|
2016-09-23 21:13:13 +08:00
|
|
|
|
|
|
|
# spi
|
|
|
|
CONFIG_SPI=y
|
|
|
|
CONFIG_SPI_1=y
|
|
|
|
CONFIG_SPI_1_NAME="SPI_1"
|
|
|
|
CONFIG_SPI_1_IRQ_PRI=1
|
|
|
|
CONFIG_SPI_NRF5=y
|
|
|
|
CONFIG_SPIS1_NRF5=y
|
|
|
|
CONFIG_SPIS1_NRF5_GPIO_SCK_PIN=7
|
|
|
|
CONFIG_SPIS1_NRF5_GPIO_MOSI_PIN=0
|
|
|
|
CONFIG_SPIS1_NRF5_GPIO_MISO_PIN=30
|
|
|
|
CONFIG_SPIS1_NRF5_GPIO_CSN_PIN=25
|