2016-11-02 16:22:29 +08:00
|
|
|
# Kconfig - nRF51 BBC_MICROBIT board configuration
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Nordic Semiconductor ASA
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-11-02 16:22:29 +08:00
|
|
|
|
|
|
|
if BOARD_BBC_MICROBIT
|
|
|
|
|
|
|
|
config BOARD
|
|
|
|
default bbc_microbit
|
|
|
|
|
2016-12-08 23:03:44 +08:00
|
|
|
if GPIO_NRF5
|
2016-11-02 16:22:29 +08:00
|
|
|
|
2016-12-08 23:03:44 +08:00
|
|
|
config GPIO_NRF5_P0
|
2016-11-02 16:22:29 +08:00
|
|
|
default y
|
|
|
|
|
2016-12-08 23:03:44 +08:00
|
|
|
endif # GPIO_NRF5
|
2016-11-02 16:22:29 +08:00
|
|
|
|
2016-12-08 23:03:44 +08:00
|
|
|
if UART_NRF5
|
2016-11-02 16:22:29 +08:00
|
|
|
|
|
|
|
config UART_NRF5_GPIO_TX_PIN
|
|
|
|
default 24
|
|
|
|
|
|
|
|
config UART_NRF5_GPIO_RX_PIN
|
|
|
|
default 25
|
|
|
|
|
|
|
|
endif # UART_NRF5
|
|
|
|
|
2017-01-23 20:43:14 +08:00
|
|
|
if I2C
|
|
|
|
|
|
|
|
config I2C_NRF5
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
config I2C_0
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # I2C
|
|
|
|
|
|
|
|
if I2C_NRF5
|
|
|
|
|
2018-02-01 17:19:43 +08:00
|
|
|
config I2C_NRF5_0_GPIO_SCL_PIN
|
2017-01-23 20:43:14 +08:00
|
|
|
default 0
|
|
|
|
|
2018-02-01 17:19:43 +08:00
|
|
|
config I2C_NRF5_0_GPIO_SDA_PIN
|
2017-01-23 20:43:14 +08:00
|
|
|
default 30
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2016-11-02 16:22:29 +08:00
|
|
|
endif # BOARD_BBC_MICROBIT
|