From 8765a6b04189f4181bfa934f01af457df97ad3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Tue, 20 Apr 2021 11:31:56 -0700 Subject: [PATCH] soc: nrf52805: fix enabled instance 0 check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UART0, TWI0, and SPI0 have different peripheral IDs (2, 3, and 4 respectively) on this SoC and therefore should not be mutually exclusive to use. Signed-off-by: Martí Bolívar --- soc/arm/nordic_nrf/validate_enabled_instances.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/arm/nordic_nrf/validate_enabled_instances.c b/soc/arm/nordic_nrf/validate_enabled_instances.c index d8f94406df8..4a8cfeeed99 100644 --- a/soc/arm/nordic_nrf/validate_enabled_instances.c +++ b/soc/arm/nordic_nrf/validate_enabled_instances.c @@ -40,7 +40,7 @@ IF_ENABLED(CONFIG_SOC_SERIES_NRF91X, (", UARTE"#idx)) \ ". Check nodes with status \"okay\" in zephyr.dts." -#if !IS_ENABLED(CONFIG_SOC_NRF52810) +#if !IS_ENABLED(CONFIG_SOC_NRF52810) && !IS_ENABLED(CONFIG_SOC_NRF52805) BUILD_ASSERT(CHECK(0), MSG(0)); #endif BUILD_ASSERT(CHECK(1), MSG(1));