Not all I2C controllers that support dual roles allow a controller to be used in both modes without reconfiguration: for some, registering a slave device prevents use in master mode. Refactor so that dual-role operation is opt-in, and select it for the ST devices currently in the allow list. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
13 lines
266 B
YAML
13 lines
266 B
YAML
common:
|
|
depends_on: i2c
|
|
tags: drivers i2c
|
|
harness: ztest
|
|
harness_config:
|
|
fixture: i2c_bus_short
|
|
|
|
tests:
|
|
drivers.i2c_slave.dual_role:
|
|
platform_allow: nucleo_f091rc stm32f072b_disco nucleo_g071rb
|
|
extra_configs:
|
|
- CONFIG_APP_DUAL_ROLE_I2C=y
|