zephyr/drivers/i2c/Kconfig.nrf5

59 lines
946 B
Plaintext

# Kconfig.nrf5 - NRF5 I2C configuration options
#
#
# Copyright (c) 2018 Aapo Vienamo
#
# SPDX-License-Identifier: Apache-2.0
#
config I2C_NRF5
bool "NRF5 I2C driver"
depends on SOC_FAMILY_NRF
select GPIO
select HAS_DTS_I2C
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