diff options
| author | Selene ToyKeeper | 2018-11-03 16:41:45 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-11-03 16:41:45 -0600 |
| commit | 1756b0beae04f04b6072fcfd2bbe10fb2b4dd116 (patch) | |
| tree | 116e21b8e75fb1479e9f6fe1f6dbf5a94ea9967c /bin/flash.sh | |
| parent | Reduced duplication across build scripts, replaced per-MCU scripts with a tin... (diff) | |
| download | anduril-1756b0beae04f04b6072fcfd2bbe10fb2b4dd116.tar.gz anduril-1756b0beae04f04b6072fcfd2bbe10fb2b4dd116.tar.bz2 anduril-1756b0beae04f04b6072fcfd2bbe10fb2b4dd116.zip | |
added a wrapper to flash fuses and firmware at the same time, like the old scripts did
Diffstat (limited to '')
| -rwxr-xr-x | bin/flash.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/flash.sh b/bin/flash.sh new file mode 100755 index 0000000..019631a --- /dev/null +++ b/bin/flash.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Flashes both fuses and firmware. + +set -e + +BASEDIR=$(dirname "$0") +export ATTINY=$1 ; shift +export PROGRAM=$1 ; shift +if [ ! -f "$PROGRAM" ]; then PROGRAM="$PROGRAM".hex ; fi +$BASEDIR/flash-tiny"$ATTINY"-fuses.sh +$BASEDIR/flash-tiny"$ATTINY".sh "$PROGRAM" |
