Skip to content

Commit aa2c58a

Browse files
mstasiaknordicrlubos
authored andcommitted
[nrf fromlist] tests: boards: nrf: i2c_slave: allow more instances
Allow more TWIS instances to be tested. Upstream PR #: 91402 Signed-off-by: Michał Stasiak <[email protected]> (cherry picked from commit bcf554e)
1 parent abdea27 commit aa2c58a

File tree

1 file changed

+6
-0
lines changed
  • tests/boards/nrf/i2c/i2c_slave/src

1 file changed

+6
-0
lines changed

tests/boards/nrf/i2c/i2c_slave/src/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@
2121
#define I2C_S_INSTANCE 1
2222
#elif CONFIG_NRFX_TWIS2
2323
#define I2C_S_INSTANCE 2
24+
#elif CONFIG_NRFX_TWIS20
25+
#define I2C_S_INSTANCE 20
26+
#elif CONFIG_NRFX_TWIS21
27+
#define I2C_S_INSTANCE 21
2428
#elif CONFIG_NRFX_TWIS22
2529
#define I2C_S_INSTANCE 22
30+
#elif CONFIG_NRFX_TWIS30
31+
#define I2C_S_INSTANCE 30
2632
#elif CONFIG_NRFX_TWIS131
2733
#define I2C_S_INSTANCE 131
2834
#else

0 commit comments

Comments
 (0)