aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/flash-usb.sh
blob: 08546076b0da2abd5ddc278dd87c11ff2ce88ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# Flash hex files via remote control USB interface.
#

basedir="$(dirname "$0")"
[ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"

flashtool="$basedir/../remote/simplepwm"

exec "$flashtool" \
	--write-flash "$basedir/simplepwm.hex" \
	--write-eeprom "$basedir/simplepwm.eep.hex" \
	"$@"
bues.ch cgit interface