Skip to content

Commit 9defbb3

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

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Always compile the shared Python wrapper
2+
PYBRICKS_SRC_C += pybricks/experimental/pb_module_experimental.c
3+
4+
# Routing logic based on PLATFORM
5+
ifeq ($(PLATFORM), $(filter $(PLATFORM), prime_hub essential_hub technic_hub))
6+
PYBRICKS_SRC_C += pybricks/experimental/odometry_cortexm4.c
7+
else ifeq ($(PLATFORM), ev3dev)
8+
PYBRICKS_SRC_C += pybricks/experimental/odometry_arm9.c
9+
endif

pybricks/experimental/odometry.h

Whitespace-only changes.

pybricks/experimental/odometry_arm9.c

Whitespace-only changes.

pybricks/experimental/odometry_cortexm4.c

Whitespace-only changes.

0 commit comments

Comments
 (0)