From edeb31f7892d17c0ec09ef929e66cc4d8593346b Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sat, 13 Nov 2021 07:44:17 -0600 Subject: [PATCH] Fix remaining builds --- ports/mimxrt10xx/Makefile | 2 +- ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/clocks.c | 2 ++ ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/clocks.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ports/mimxrt10xx/Makefile b/ports/mimxrt10xx/Makefile index 8e83fb53b8..dd691a12e9 100644 --- a/ports/mimxrt10xx/Makefile +++ b/ports/mimxrt10xx/Makefile @@ -148,7 +148,7 @@ SRC_SDK := \ system_$(CHIP_FAMILY).c \ SRC_SDK := $(addprefix sdk/devices/$(CHIP_FAMILY)/, $(SRC_SDK)) -$(addprefix $(BUILD)/, $(SRC_SDK:.c=.o)): CFLAGS += -Wno-undef -Wno-missing-prototypes +$(addprefix $(BUILD)/, $(SRC_SDK:.c=.o)): CFLAGS += -Wno-undef -Wno-missing-prototypes -Wno-cast-align SRC_C += \ background.c \ diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/clocks.c b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/clocks.c index fb4d04b992..198f85110e 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/clocks.c +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/clocks.c @@ -36,6 +36,8 @@ #include "fsl_clock.h" #include "fsl_iomuxc.h" +#include "clocks.h" + // These values are pulled from the SDK's devices/MIMXRT1021/project_template/clock_config.* files. #define BOARD_XTAL0_CLK_HZ 24000000U /*!< Board xtal0 frequency in Hz */ diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/clocks.c b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/clocks.c index 1d67956f84..46d1eccb20 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/clocks.c +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/clocks.c @@ -35,6 +35,8 @@ #include "fsl_clock.h" #include "fsl_iomuxc.h" +#include "clocks.h" + #define BOARD_XTAL0_CLK_HZ 24000000U /*!< Board xtal0 frequency in Hz */ #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32k frequency in Hz */ #define BOARD_BOOTCLOCKRUN_CORE_CLOCK 600000000U /*!< Core clock frequency: 600000000Hz */