Skip to content

Commit

Permalink
adding IDF setup to build as well as a working clean target
Browse files Browse the repository at this point in the history
  • Loading branch information
TooDissing committed Aug 9, 2022
1 parent 56489d7 commit d3ea85a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion software/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
config/euphonium/scripts/configuration/wifi.config.json
config/euphonium/scripts/configuration/*.json
future-config
13 changes: 12 additions & 1 deletion software/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
JTAG_PORT ?= "/dev/ttyUSB0"
COPY_FLAGS := -v -R
CMAKE_BUILD_ARGS := -DHTTP_SERVER_PORT=8080
IDF_HOME ?= ${HOME}/esp/esp-idf

ifeq ($(OS),Windows_NT)
#??
Expand All @@ -20,8 +21,13 @@ copy-config:
@echo "Copying local cofig"
cp ${COPY_FLAGS} config/* euphonium/

ifeq ($(origin IDF_PATH),undefined)
esp32: copy-config
bash -c "source ${IDF_HOME}/export.sh; cd euphonium/targets/esp32; sh generate_full_build.sh;"
else
esp32: copy-config
cd euphonium/targets/esp32; sh generate_full_build.sh;
endif

cli: copy-config
cd euphonium/targets/cli/build; cmake ${CMAKE_BUILD_ARGS} ..;
Expand All @@ -37,4 +43,9 @@ clean-cli:
@$(MAKE) -C euphonium/targets/cli/build clean

clean-esp32:
cd euphonium/targets/esp32; idf.py fullclean;
rm -fr euphonium/targets/esp32/build euphonium/targets/esp32/app/build; rm -f euphonium/targets/esp32/app/managed_components/joltwallet__littlefs/.component_hash;

monitor:
cd euphonium/targets/esp32; sh monitor.sh ${JTAG_PORT};

flash-and-monitor: flash-all monitor
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class MA12070P : DACDriver
# Set Amp to Left-justified format
i2c.write(ADDR, 53, 8)


## Setting power profile 2 as active
# i2c.write(ADDR, 0x1D, 0x02)

Expand Down

0 comments on commit d3ea85a

Please sign in to comment.