Skip to content

Commit eaf5587

Browse files
committed
seperation and cross compatibility
1 parent 9defbb3 commit eaf5587

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

bricks/_common/common.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,16 @@ PY_EXTRA_SRC_C += $(addprefix bricks/_common/,\
304304
mphalport.c \
305305
)
306306

307+
# --- CUSTOM ODOMETRY ENGINE ROUTING ---
308+
# Inside bricks/_common/common.mk
309+
PY_EXTRA_SRC_C += pybricks/experimental/pb_module_experimental.c
310+
311+
ifeq ($(PLATFORM),prime_hub)
312+
PY_EXTRA_SRC_C += pybricks/experimental/odometry_cortexm4.c
313+
else
314+
PY_EXTRA_SRC_C += pybricks/experimental/odometry_arm9.c
315+
endif
316+
307317
# Not all MCUs support thumb2 instructions.
308318
ifeq ($(PB_MCU_FAMILY),native)
309319
SRC_S +=

0 commit comments

Comments
 (0)