Browse Source

drivers: i2c: i2c_dw: only includ cmsis_core on ARM platforms

Only include cmsis_core.h on ARM platforms, including it unconditionally
as it is now causes a build failure on all other platforms, namely x86
on the weekly build run.

Tested with:

west build -p -b up_squared/apollo_lake tests/drivers/build_all/led
(and others)

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
pull/91396/head
Fabio Baltieri 4 weeks ago committed by Benjamin Cabé
parent
commit
33f6b76110
  1. 2
      drivers/i2c/i2c_dw.c

2
drivers/i2c/i2c_dw.c

@ -8,7 +8,9 @@ @@ -8,7 +8,9 @@
*/
#include <zephyr/arch/cpu.h>
#ifdef CONFIG_CPU_CORTEX_M
#include <cmsis_core.h>
#endif
#include <soc.h>
#include <stddef.h>

Loading…
Cancel
Save