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:
parent
8765a6b041
commit
824f7224d5
1 changed files with 7 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue