Skip to content

Commit

Permalink
mimxrt/fsl_lpuart: Use a wrapper function to handle IRQ Idle support.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leech <[email protected]>
  • Loading branch information
pi-anl committed Dec 17, 2024
1 parent 1cdb872 commit 19ff7ef
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2,015 deletions.
7 changes: 5 additions & 2 deletions ports/mimxrt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ SRC_HAL_IMX_C += \
$(MCUX_SDK_DIR)/drivers/lpi2c/fsl_lpi2c.c \
$(MCUX_SDK_DIR)/drivers/lpspi/fsl_lpspi.c \
$(MCUX_SDK_DIR)/drivers/lpspi/fsl_lpspi_edma.c \
$(MCUX_SDK_DIR)/drivers/lpuart/fsl_lpuart.c \
$(MCUX_SDK_DIR)/drivers/pit/fsl_pit.c \
$(MCUX_SDK_DIR)/drivers/pwm/fsl_pwm.c \
$(MCUX_SDK_DIR)/drivers/sai/fsl_sai.c \
Expand All @@ -150,6 +151,8 @@ else
SRC_HAL_IMX_C += $(MCU_DIR)/xip/fsl_flexspi_nor_boot.c
endif

LDFLAGS += --wrap=LPUART_TransferHandleIRQ

INC_HAL_IMX += \
-I$(TOP)/$(MCU_DIR) \
-I$(TOP)/$(MCU_DIR)/drivers \
Expand Down Expand Up @@ -235,7 +238,6 @@ SRC_C += \
eth.c \
fatfs_port.c \
flash.c \
hal/fsl_lpuart.c \
hal/pwm_backport.c \
help.c \
led.c \
Expand Down Expand Up @@ -467,7 +469,8 @@ LDFLAGS += \
--cref \
--gc-sections \
--print-memory-usage \
-Map=$@.map
-Map=$@.map \
--wrap=LPUART_TransferHandleIRQ

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

0 comments on commit 19ff7ef

Please sign in to comment.