soc: nrf52811: fix enabled instance 0 check

Similar fix to that for the 52805.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-05-03 10:14:01 -07:00 committed by Ioannis Glaropoulos
commit 824f7224d5

View file

@ -21,8 +21,10 @@
* In most Nordic SoCs, SPI and TWI peripherals with the same instance number
* share certain resources and therefore cannot be used at the same time (in
* nRF53 and nRF91 Series this limitation concerns UART peripherals as well).
* In nRF52810 though, there are only single instances of these peripherals
* and they are arranged in a different way, so this limitation does not apply.
*
* In some SoCs, like nRF52810, there are only single instances of
* these peripherals and they are arranged in a different way, so this
* limitation does not apply.
*
* The build assertions below check if conflicting peripheral instances are not
* enabled simultaneously.
@ -40,7 +42,9 @@
IF_ENABLED(CONFIG_SOC_SERIES_NRF91X, (", UARTE"#idx)) \
". Check nodes with status \"okay\" in zephyr.dts."
#if !IS_ENABLED(CONFIG_SOC_NRF52810) && !IS_ENABLED(CONFIG_SOC_NRF52805)
#if (!IS_ENABLED(CONFIG_SOC_NRF52810) && \
!IS_ENABLED(CONFIG_SOC_NRF52805) && \
!IS_ENABLED(CONFIG_SOC_NRF52811))
BUILD_ASSERT(CHECK(0), MSG(0));
#endif
BUILD_ASSERT(CHECK(1), MSG(1));