From 4e805a21fb42932c37ba43d6ee62216fbbd508d5 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Sat, 19 Apr 2014 19:59:51 -0700 Subject: [PATCH] Forgot to add Windows loader script. --- LoadFile/winload | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 LoadFile/winload diff --git a/LoadFile/winload b/LoadFile/winload new file mode 100755 index 0000000..569e91c --- /dev/null +++ b/LoadFile/winload @@ -0,0 +1,17 @@ +#!/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 -G "Unix Makefiles" @CMAKE_SOURCE_DIR@/LoadFile + make + cd - +fi + +#| Loads the hex file onto the teensy +teensy-loader-cli/teensy-loader-cli -mmcu=@MCU@ -w @TARGET_HEX@ + +exit 0 +