Skip to content

Commit 33f6b76

Browse files
fabiobaltierikartben
authored andcommitted
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>
1 parent 3b1cf79 commit 33f6b76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/i2c/i2c_dw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
*/
99

1010
#include <zephyr/arch/cpu.h>
11+
#ifdef CONFIG_CPU_CORTEX_M
1112
#include <cmsis_core.h>
13+
#endif
1214
#include <soc.h>
1315

1416
#include <stddef.h>

0 commit comments

Comments
 (0)