generated from microbit-foundation/micropython-cpp-module-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move out mlrunner files into a different repo added as a submodule.
This is to be able to share the common code with MakeCode. As PXT extensions cannot use submodules the mlrunner lib code lives in the pxt extension and that repository is included here as a sumodule.
- Loading branch information
1 parent
3d9bfaf
commit 8027eef
Showing
14 changed files
with
121 additions
and
2,309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "micropython-microbit-v2"] | ||
path = micropython-microbit-v2 | ||
url = https://github.com/microbit-foundation/micropython-microbit-v2.git | ||
[submodule "ml-module/pxt-ml-runner-poc"] | ||
path = ml-module/pxt-ml-runner-poc | ||
url = https://github.com/microbit-foundation/pxt-ml-runner-poc.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
CPPEXAMPLE_MOD_DIR := $(USERMOD_DIR) | ||
|
||
SRC_USERMOD += \ | ||
$(CPPEXAMPLE_MOD_DIR)/ml-runner/model-example/model_example.c \ | ||
$(CPPEXAMPLE_MOD_DIR)/ml-runner/ml4f/ml4f.c \ | ||
$(CPPEXAMPLE_MOD_DIR)/pxt-ml-runner-poc/mlrunner/ml4f.c \ | ||
$(CPPEXAMPLE_MOD_DIR)/pxt-ml-runner-poc/mlrunner/mlrunner.c \ | ||
$(CPPEXAMPLE_MOD_DIR)/pxt-ml-runner-poc/mlrunner/mldataprocessor.c \ | ||
$(CPPEXAMPLE_MOD_DIR)/pxt-ml-runner-poc/mlrunner/example_dataprocessor.c \ | ||
$(CPPEXAMPLE_MOD_DIR)/src/mlinterface.c \ | ||
$(CPPEXAMPLE_MOD_DIR)/src/mlmodule.c | ||
|
||
SRC_USERMOD_CXX += $(CPPEXAMPLE_MOD_DIR)/ml-runner/mlrunner.cpp | ||
# SRC_USERMOD_CXX += $(CPPEXAMPLE_MOD_DIR)/ml-runner/mlrunner.cpp | ||
|
||
CFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR)/ml-runner | ||
COMMON_FLAGS = \ | ||
-I$(CPPEXAMPLE_MOD_DIR)/src \ | ||
-I$(CPPEXAMPLE_MOD_DIR)/pxt-ml-runner-poc/mlrunner \ | ||
-DDEVICE_MLRUNNER_USE_EXAMPLE_MODEL=2 \ | ||
-DML_DEBUG_PRINT=1 | ||
|
||
CXXFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR)/ml-runner -std=c++11 | ||
CFLAGS_USERMOD += $(COMMON_FLAGS) | ||
|
||
CXXFLAGS_USERMOD += $(COMMON_FLAGS) -std=c++11 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.