2019-11-01 20:45:29 +08:00
|
|
|
# nrfx I2C support
|
|
|
|
|
2018-05-23 15:26:53 +08:00
|
|
|
# Copyright (c) 2018, Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig I2C_NRFX
|
|
|
|
bool "nRF TWI nrfx drivers"
|
2018-12-11 21:22:57 +08:00
|
|
|
default y
|
2018-05-23 15:26:53 +08:00
|
|
|
depends on SOC_FAMILY_NRF
|
|
|
|
help
|
|
|
|
Enable support for nrfx TWI drivers for nRF MCU series.
|
|
|
|
|
|
|
|
if I2C_NRFX
|
|
|
|
|
2020-03-25 22:25:30 +08:00
|
|
|
# Workaround for not being able to have commas in macro arguments
|
|
|
|
DT_COMPAT_NORDIC_NRF_TWI := nordic,nrf-twi
|
|
|
|
DT_COMPAT_NORDIC_NRF_TWIM := nordic,nrf-twim
|
|
|
|
|
2018-05-23 15:26:53 +08:00
|
|
|
config I2C_0_NRF_TWI
|
2020-03-25 22:25:30 +08:00
|
|
|
def_bool $(dt_nodelabel_has_compat,i2c0,$(DT_COMPAT_NORDIC_NRF_TWI))
|
2019-09-03 14:47:23 +08:00
|
|
|
select NRFX_TWI0
|
2018-05-23 15:26:53 +08:00
|
|
|
help
|
|
|
|
Enable nRF TWI Master without EasyDMA on port 0.
|
|
|
|
|
|
|
|
config I2C_0_NRF_TWIM
|
2020-03-25 22:25:30 +08:00
|
|
|
def_bool $(dt_nodelabel_has_compat,i2c0,$(DT_COMPAT_NORDIC_NRF_TWIM))
|
2019-09-03 14:47:23 +08:00
|
|
|
select NRFX_TWIM0
|
2018-05-23 15:26:53 +08:00
|
|
|
help
|
|
|
|
Enable nRF TWI Master with EasyDMA on port 0.
|
|
|
|
This peripheral accepts transfers from RAM only,
|
|
|
|
if provided buffer is placed in flash, transfer will fail.
|
|
|
|
|
|
|
|
config I2C_1_NRF_TWI
|
2020-03-25 22:25:30 +08:00
|
|
|
def_bool $(dt_nodelabel_has_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWI))
|
2019-09-03 14:47:23 +08:00
|
|
|
select NRFX_TWI1
|
2018-05-23 15:26:53 +08:00
|
|
|
help
|
|
|
|
Enable nRF TWI Master without EasyDMA on port 1.
|
|
|
|
|
|
|
|
config I2C_1_NRF_TWIM
|
2020-03-25 22:25:30 +08:00
|
|
|
def_bool $(dt_nodelabel_has_compat,i2c1,$(DT_COMPAT_NORDIC_NRF_TWIM))
|
2019-09-03 14:47:23 +08:00
|
|
|
select NRFX_TWIM1
|
2018-05-23 15:26:53 +08:00
|
|
|
help
|
|
|
|
Enable nRF TWI Master with EasyDMA on port 1.
|
|
|
|
This peripheral accepts transfers from RAM only,
|
|
|
|
if provided buffer is placed in flash, transfer will fail.
|
|
|
|
|
2019-01-15 19:47:53 +08:00
|
|
|
config I2C_2_NRF_TWIM
|
2020-03-25 22:25:30 +08:00
|
|
|
def_bool $(dt_nodelabel_has_compat,i2c2,$(DT_COMPAT_NORDIC_NRF_TWIM))
|
2019-09-03 14:47:23 +08:00
|
|
|
select NRFX_TWIM2
|
2019-01-15 19:47:53 +08:00
|
|
|
help
|
|
|
|
Enable nRF TWI Master with EasyDMA on port 2.
|
|
|
|
This peripheral accepts transfers from RAM only,
|
|
|
|
if provided buffer is placed in flash, transfer will fail.
|
|
|
|
|
|
|
|
config I2C_3_NRF_TWIM
|
2020-03-25 22:25:30 +08:00
|
|
|
def_bool $(dt_nodelabel_has_compat,i2c3,$(DT_COMPAT_NORDIC_NRF_TWIM))
|
2019-09-03 14:47:23 +08:00
|
|
|
select NRFX_TWIM3
|
2019-01-15 19:47:53 +08:00
|
|
|
help
|
|
|
|
Enable nRF TWI Master with EasyDMA on port 3.
|
|
|
|
This peripheral accepts transfers from RAM only,
|
|
|
|
if provided buffer is placed in flash, transfer will fail.
|
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
endif # I2C_NRFX
|