|
|
@ -44,21 +44,6 @@ find_device_port() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reset_device_cmd() {
|
|
|
|
|
|
|
|
if [ -z ${NO_RESET} ]; then
|
|
|
|
|
|
|
|
if [ "${uname_S}" = "Darwin" ]; then
|
|
|
|
|
|
|
|
/bin/stty -f ${DEVICE_PORT} 1200
|
|
|
|
|
|
|
|
elif [ "${uname_S}" = "FreeBSD" ]; then
|
|
|
|
|
|
|
|
/bin/stty -f ${DEVICE_PORT} 1200
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif [ "${uname_O}" = "Cygwin" ]; then
|
|
|
|
|
|
|
|
cmd /c mode ${DEVICE_COM_PORT} baud=1200
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
stty -F ${DEVICE_PORT} 1200 hupcl
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_bootloader_ports() {
|
|
|
|
find_bootloader_ports() {
|
|
|
|
if [ -n "${DEVICE_PORT_BOOTLOADER}" ]; then
|
|
|
|
if [ -n "${DEVICE_PORT_BOOTLOADER}" ]; then
|
|
|
|
echo "DEVICE_PORT_BOOTLOADER=\"${DEVICE_PORT_BOOTLOADER}\" predefined."
|
|
|
|
echo "DEVICE_PORT_BOOTLOADER=\"${DEVICE_PORT_BOOTLOADER}\" predefined."
|
|
|
|