Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TerkinData: Adjust compatibility for AVR, Espressif, and ARM
- Loading branch information
Showing
14 changed files
with
292 additions
and
88 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
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
Submodule ArduinoSTL
deleted from
80d70d
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
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,24 +1,32 @@ | ||
all: csv urlencoded json | ||
$(eval venvpath := $(PWD)/.venv) | ||
$(eval python := $(venvpath)/bin/python) | ||
$(eval pip := $(venvpath)/bin/pip) | ||
$(eval pio := $(venvpath)/bin/pio) | ||
|
||
run: | ||
@./csv_basic | ||
@./json_basic | ||
@./urlencoded_basic | ||
export PLATFORMIO_WORKSPACE_DIR := $(PWD)/.pio | ||
|
||
csv: | ||
@./build csv_basic.cpp | ||
@./csv_basic | ||
build: setup-virtualenv | ||
cd json; $(pio) run --project-conf=../platformio.ini # --verbose | ||
cd csv; $(pio) run --project-conf=../platformio.ini # --verbose | ||
cd urlencoded; $(pio) run --project-conf=../platformio.ini # --verbose | ||
|
||
json: | ||
@./build json_basic.cpp | ||
@./json_basic | ||
upload: setup-virtualenv | ||
$(pio) run --target upload --upload-port=${MCU_PORT} | ||
|
||
urlencoded: | ||
@./build urlencoded_basic.cpp | ||
@./urlencoded_basic | ||
run: | ||
mkdir -p build | ||
./compile csv/csv_basic.cpp | ||
./compile json/json_basic.cpp | ||
./compile urlencoded/urlencoded_basic.cpp | ||
@echo | ||
|
||
clean: | ||
rm csv_basic | ||
rm json_basic | ||
rm urlencoded_basic | ||
./build/csv_basic | ||
@echo | ||
./build/json_basic | ||
@echo | ||
./build/urlencoded_basic | ||
@echo | ||
|
||
setup-virtualenv: | ||
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath) | ||
$(pip) install platformio |
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
Oops, something went wrong.