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>
This commit is contained in:
parent
3b1cf79f62
commit
33f6b76110
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue