soc: nrf52811: add missing instance 3 check
spi1 and i2c0 share peripheral ID number 3. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no> Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
824f7224d5
commit
c8e8d1d109
1 changed files with 7 additions and 0 deletions
|
@ -50,3 +50,10 @@ BUILD_ASSERT(CHECK(0), MSG(0));
|
|||
BUILD_ASSERT(CHECK(1), MSG(1));
|
||||
BUILD_ASSERT(CHECK(2), MSG(2));
|
||||
BUILD_ASSERT(CHECK(3), MSG(3));
|
||||
|
||||
#if IS_ENABLED(CONFIG_SOC_NRF52811)
|
||||
BUILD_ASSERT(!(SPI_ENABLED(1) && I2C_ENABLED(0)),
|
||||
"Only one of the following peripherals can be enabled: "
|
||||
"SPI1, SPIM1, SPIS1, TWI0, TWIM0, TWIS0. "
|
||||
"Check nodes with status \"okay\" in zephyr.dts.");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue