Skip to content

Commit

Permalink
mimxrt10xx: Add fsl_flexcan driver source only if supported
Browse files Browse the repository at this point in the history
For instance, i.MX RT1011 and 1015 don't have CAN interfaces
  • Loading branch information
SamantazFox committed Jan 20, 2025
1 parent 6979e96 commit 69c88eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ports/mimxrt10xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,16 @@ SRC_SDK := \
drivers/snvs_hp/fsl_snvs_hp.c \
drivers/snvs_lp/fsl_snvs_lp.c \
drivers/trng/fsl_trng.c \
drivers/flexcan/fsl_flexcan.c \

ifeq ($(CIRCUITPY_ANALOGIO), 1)
SRC_SDK += drivers/adc_12b1msps_sar/fsl_adc.c \
drivers/tempmon/fsl_tempmon.c
endif

ifeq ($(CIRCUITPY_CANIO), 1)
SRC_SDK += drivers/flexcan/fsl_flexcan.c
endif

ifeq ($(CHIP_FAMILY), MIMXRT1176)
SRC_SDK += devices/$(CHIP_FAMILY)/drivers/fsl_anatop_ai.c \
devices/$(CHIP_FAMILY)/drivers/fsl_dcdc.c \
Expand Down

0 comments on commit 69c88eb

Please sign in to comment.