1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/pttu: Replace tabs by spaces

This commit is contained in:
Joakim Gebart 2015-05-19 12:25:10 +02:00
parent 36849276b3
commit 6f59d41335

View File

@ -1,30 +1,30 @@
#/bin/bash
if [ $# -le 0 ]; then
echo "usage: $0 [openocd interface name] [openocd args]" >&2
echo " common interfaces: olimex-arm-usb-ocd olimex-jtag-tiny olimex-jtag-tiny-a"
echo ""
echo "using default olimex-jtag-tiny-a"
INTERFACE=olimex-jtag-tiny-a
echo "usage: $0 [openocd interface name] [openocd args]" >&2
echo " common interfaces: olimex-arm-usb-ocd olimex-jtag-tiny olimex-jtag-tiny-a"
echo ""
echo "using default olimex-jtag-tiny-a"
INTERFACE=olimex-jtag-tiny-a
else
INTERFACE=$1
shift
INTERFACE=$1
shift
fi
if [ $# -ge 1 ]; then
COMMAND=$@
COMMAND=$@
else
COMMAND="debug_level 1"
COMMAND="debug_level 1"
fi
if [ "${OS}" = "Windows_NT" ]; then
WINDOWS=1
WINDOWS=1
fi
if [ "x${WINDOWS}x" = "xx" ]; then
xterm -e "openocd -s ../../.. -f interface/${INTERFACE}.cfg -f board/pttu/tools/openocd-pttu.cfg -c \"${COMMAND}\"|| read" &
xterm -e "openocd -s ../../.. -f interface/${INTERFACE}.cfg -f board/pttu/tools/openocd-pttu.cfg -c \"${COMMAND}\"|| read" &
else
echo ${COMMAND}
#cmd /C start "OpenOCD PTTU using ${INTERFACE}"
openocd-ftd2xx.exe -s ../../.. -f interface/${INTERFACE}.cfg -f board/pttu/tools/openocd-pttu.cfg -c "${COMMAND}"
echo ${COMMAND}
#cmd /C start "OpenOCD PTTU using ${INTERFACE}"
openocd-ftd2xx.exe -s ../../.. -f interface/${INTERFACE}.cfg -f board/pttu/tools/openocd-pttu.cfg -c "${COMMAND}"
fi