2018-02-01 17:19:43 +08:00
|
|
|
# Kconfig.nrf5 - NRF5 I2C configuration options
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Aapo Vienamo
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
config I2C_NRF5
|
|
|
|
bool "NRF5 I2C driver"
|
2018-03-19 20:51:25 +08:00
|
|
|
depends on SOC_FAMILY_NRF
|
2018-02-01 17:19:43 +08:00
|
|
|
select GPIO
|
2018-03-03 23:44:49 +08:00
|
|
|
select HAS_DTS_I2C
|
2018-02-01 17:19:43 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables the I2C driver for Nordic Semiconductor nRF5
|
|
|
|
family processors.
|
|
|
|
|
|
|
|
if I2C_NRF5
|
|
|
|
|
|
|
|
if I2C_0
|
|
|
|
|
|
|
|
config I2C_NRF5_0_GPIO_SDA_PIN
|
|
|
|
int "Port 0 SDA Pin Number"
|
|
|
|
range 0 31
|
|
|
|
depends on I2C_NRF5
|
|
|
|
help
|
|
|
|
The GPIO pin to use for SDA.
|
|
|
|
|
|
|
|
config I2C_NRF5_0_GPIO_SCL_PIN
|
|
|
|
int "Port 0 SCL Pin Number"
|
|
|
|
range 0 31
|
|
|
|
depends on I2C_NRF5
|
|
|
|
help
|
|
|
|
The GPIO pin to use for SCL.
|
|
|
|
|
|
|
|
endif # I2C_0
|
|
|
|
|
|
|
|
if I2C_1
|
|
|
|
|
|
|
|
config I2C_NRF5_1_GPIO_SDA_PIN
|
|
|
|
int "Port 1 SDA Pin Number"
|
|
|
|
range 0 31
|
|
|
|
depends on I2C_NRF5
|
|
|
|
help
|
|
|
|
The GPIO pin to use for SDA.
|
|
|
|
|
|
|
|
config I2C_NRF5_1_GPIO_SCL_PIN
|
|
|
|
int "Port 1 SCL Pin Number"
|
|
|
|
range 0 31
|
|
|
|
depends on I2C_NRF5
|
|
|
|
help
|
|
|
|
The GPIO pin to use for SCL.
|
|
|
|
|
|
|
|
endif # I2C_1
|
|
|
|
|
|
|
|
endif # I2C_NRF5
|