Skip to content

Commit

Permalink
Begin laying out and prepping for new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KenwoodFox committed Nov 28, 2023
1 parent 3c51919 commit 308c6e6
Show file tree
Hide file tree
Showing 5 changed files with 7,424 additions and 6,053 deletions.
46 changes: 46 additions & 0 deletions Firmware/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# A very simple makefile full of shortcuts

# What port the arduino is on
ifndef SERIAL_DEV
ifneq (,$(wildcard /dev/ttyUSB0))
SERIAL_DEV = /dev/ttyUSB0
else ifneq (,$(wildcard /dev/ttyACM0))
SERIAL_DEV = /dev/ttyACM0
else
SERIAL_DEV = unknown
endif
endif

.PHONY: help

help: ## Prints this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

build: ## Invokes pio run
pio run

# For CI
binaries: ## Builds the binaries
pio run
pio run -t .pio/build/uno328/firmware.hex

flash: ## Flashes the code to the processor
pio run -t upload

deep: ## Flashes the code to processor with fresh EEPROM values
pio run -t uploadeep

clean: ## Cleans the repo of artefacts
pio run -t clean
git clean -fdx

lint: ## De-lints the repo
pio check

test: ## Run automated tests
pio test --upload-port $(SERIAL_DEV)

debug: flash monitor ## Flashes then Monitors

monitor: ## Monitors the device serial
pio device monitor --filter=direct --filter=time
Binary file modified Hardware/BackPlane/CAD/Rails.FCStd
Binary file not shown.
Loading

0 comments on commit 308c6e6

Please sign in to comment.