view LoadFile/load @ 129:0bad1499ec19

Adding teensy-loader-cli so it's not required. - This is a patched version to work with Teensy 3.1 (current version on the website doesn't work) - "Should" work with OS's other than Linux, but hasn't been tested
author Jacob Alexander <haata@kiibohd.com>
date Sat, 12 Apr 2014 20:52:32 -0700
parents
children 945565653607
line wrap: on
line source

#!/bin/bash

#| First check to see teensy-loader-cli has been compiled
if [ ! -e teensy-loader-cli/teensy-loader-cli ]; then
	# Compile teensy-loader-cli
	mkdir -p teensy-loader-cli
	cd teensy-loader-cli
	cmake @CMAKE_SOURCE_DIR@/LoadFile
	make
fi

#| Loads the hex file onto the teensy
sudo teensy-loader-cli/teensy-loader-cli -mmcu=@MCU@ -w @TARGET_HEX@

exit 0