Skip to content

Commit 69c88eb

Browse files
committed
mimxrt10xx: Add fsl_flexcan driver source only if supported
For instance, i.MX RT1011 and 1015 don't have CAN interfaces
1 parent 6979e96 commit 69c88eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ports/mimxrt10xx/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,16 @@ SRC_SDK := \
120120
drivers/snvs_hp/fsl_snvs_hp.c \
121121
drivers/snvs_lp/fsl_snvs_lp.c \
122122
drivers/trng/fsl_trng.c \
123-
drivers/flexcan/fsl_flexcan.c \
124123

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

129+
ifeq ($(CIRCUITPY_CANIO), 1)
130+
SRC_SDK += drivers/flexcan/fsl_flexcan.c
131+
endif
132+
130133
ifeq ($(CHIP_FAMILY), MIMXRT1176)
131134
SRC_SDK += devices/$(CHIP_FAMILY)/drivers/fsl_anatop_ai.c \
132135
devices/$(CHIP_FAMILY)/drivers/fsl_dcdc.c \

0 commit comments

Comments
 (0)