Skip to content

Commit 8ac7e3d

Browse files
committed
mimxrt/fsl_lpuart: Use a wrapper function to handle IRQ Idle support.
Signed-off-by: Andrew Leech <[email protected]>
1 parent 96adb2f commit 8ac7e3d

File tree

3 files changed

+29
-2014
lines changed

3 files changed

+29
-2014
lines changed

ports/mimxrt/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ SRC_HAL_IMX_C += \
134134
$(MCUX_SDK_DIR)/drivers/lpi2c/fsl_lpi2c.c \
135135
$(MCUX_SDK_DIR)/drivers/lpspi/fsl_lpspi.c \
136136
$(MCUX_SDK_DIR)/drivers/lpspi/fsl_lpspi_edma.c \
137+
$(MCUX_SDK_DIR)/drivers/lpuart/fsl_lpuart.c \
137138
$(MCUX_SDK_DIR)/drivers/pit/fsl_pit.c \
138139
$(MCUX_SDK_DIR)/drivers/pwm/fsl_pwm.c \
139140
$(MCUX_SDK_DIR)/drivers/sai/fsl_sai.c \
@@ -149,6 +150,8 @@ else
149150
SRC_HAL_IMX_C += $(MCU_DIR)/xip/fsl_flexspi_nor_boot.c
150151
endif
151152

153+
LDFLAGS += --wrap=LPUART_TransferHandleIRQ
154+
152155
INC_HAL_IMX += \
153156
-I$(TOP)/$(MCU_DIR) \
154157
-I$(TOP)/$(MCU_DIR)/drivers \
@@ -234,7 +237,6 @@ SRC_C += \
234237
eth.c \
235238
fatfs_port.c \
236239
flash.c \
237-
hal/fsl_lpuart.c \
238240
hal/pwm_backport.c \
239241
help.c \
240242
led.c \

0 commit comments

Comments
 (0)