Skip to content

Commit 919f008

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

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
@@ -136,6 +136,7 @@ SRC_HAL_IMX_C += \
136136
$(MCUX_SDK_DIR)/drivers/lpi2c/fsl_lpi2c.c \
137137
$(MCUX_SDK_DIR)/drivers/lpspi/fsl_lpspi.c \
138138
$(MCUX_SDK_DIR)/drivers/lpspi/fsl_lpspi_edma.c \
139+
$(MCUX_SDK_DIR)/drivers/lpuart/fsl_lpuart.c \
139140
$(MCUX_SDK_DIR)/drivers/pit/fsl_pit.c \
140141
$(MCUX_SDK_DIR)/drivers/pwm/fsl_pwm.c \
141142
$(MCUX_SDK_DIR)/drivers/sai/fsl_sai.c \
@@ -151,6 +152,8 @@ else
151152
SRC_HAL_IMX_C += $(MCU_DIR)/xip/fsl_flexspi_nor_boot.c
152153
endif
153154

155+
LDFLAGS += --wrap=LPUART_TransferHandleIRQ
156+
154157
INC_HAL_IMX += \
155158
-I$(TOP)/$(MCU_DIR) \
156159
-I$(TOP)/$(MCU_DIR)/drivers \
@@ -243,7 +246,6 @@ SRC_C += \
243246
eth.c \
244247
fatfs_port.c \
245248
flash.c \
246-
hal/fsl_lpuart.c \
247249
hal/pwm_backport.c \
248250
help.c \
249251
led.c \
@@ -489,7 +491,8 @@ LDFLAGS += \
489491
--cref \
490492
--gc-sections \
491493
--print-memory-usage \
492-
-Map=$@.map
494+
-Map=$@.map \
495+
--wrap=LPUART_TransferHandleIRQ
493496

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

0 commit comments

Comments
 (0)