Commit 0acc7334 authored by iabdalkader's avatar iabdalkader

mimxrt: Fix the build for boards without ROM API.

parent bde222ce
......@@ -136,7 +136,6 @@ SRC_HAL_IMX_C += \
$(MCU_DIR)/drivers/fsl_lpuart.c \
$(MCU_DIR)/drivers/fsl_pit.c \
$(MCU_DIR)/drivers/fsl_pwm.c \
$(MCU_DIR)/drivers/fsl_romapi.c \
$(MCU_DIR)/drivers/fsl_sai.c \
$(MCU_DIR)/drivers/fsl_snvs_lp.c \
$(MCU_DIR)/drivers/fsl_wdog.c \
......@@ -153,7 +152,8 @@ endif
ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES), MIMXRT1015 MIMXRT1021 MIMXRT1052 MIMXRT1062 MIMXRT1064 MIMXRT1176))
SRC_HAL_IMX_C += \
$(MCU_DIR)/drivers/fsl_qtmr.c
$(MCU_DIR)/drivers/fsl_qtmr.c \
$(MCU_DIR)/drivers/fsl_romapi.c
endif
ifeq ($(MCU_SERIES), MIMXRT1176)
......
......@@ -38,7 +38,9 @@
#include "pin.h"
#include "modmachine.h"
#include "fsl_wdog.h"
#if FSL_FEATURE_BOOT_ROM_HAS_ROMAPI
#include "fsl_romapi.h"
#endif
#if MICROPY_PY_MACHINE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment