mimxrt: Fix the build for boards without ROM API.
This commit is contained in:
parent
bde222ce84
commit
0acc73344a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user