Skip to content

Commit 8b30707

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

File tree

3 files changed

+32
-2015
lines changed

3 files changed

+32
-2015
lines changed

ports/mimxrt/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ SRC_HAL_IMX_C += \
135135
$(MCUX_SDK_DIR)/drivers/lpi2c/fsl_lpi2c.c \
136136
$(MCUX_SDK_DIR)/drivers/lpspi/fsl_lpspi.c \
137137
$(MCUX_SDK_DIR)/drivers/lpspi/fsl_lpspi_edma.c \
138+
$(MCUX_SDK_DIR)/drivers/lpuart/fsl_lpuart.c \
138139
$(MCUX_SDK_DIR)/drivers/pit/fsl_pit.c \
139140
$(MCUX_SDK_DIR)/drivers/pwm/fsl_pwm.c \
140141
$(MCUX_SDK_DIR)/drivers/sai/fsl_sai.c \
@@ -150,6 +151,8 @@ else
150151
SRC_HAL_IMX_C += $(MCU_DIR)/xip/fsl_flexspi_nor_boot.c
151152
endif
152153

154+
LDFLAGS += --wrap=LPUART_TransferHandleIRQ
155+
153156
INC_HAL_IMX += \
154157
-I$(TOP)/$(MCU_DIR) \
155158
-I$(TOP)/$(MCU_DIR)/drivers \
@@ -235,7 +238,6 @@ SRC_C += \
235238
eth.c \
236239
fatfs_port.c \
237240
flash.c \
238-
hal/fsl_lpuart.c \
239241
hal/pwm_backport.c \
240242
help.c \
241243
led.c \
@@ -467,7 +469,8 @@ LDFLAGS += \
467469
--cref \
468470
--gc-sections \
469471
--print-memory-usage \
470-
-Map=$@.map
472+
-Map=$@.map \
473+
--wrap=LPUART_TransferHandleIRQ
471474

472475
# LDDEFINES are used for link time adaptation of linker scripts, utilizing
473476
# the C preprocessor. Therefore keep LDDEFINES separated from LDFLAGS!

0 commit comments

Comments
 (0)