|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 2017,2018 by Andy Uribe CA6JAU, Florian Wolters DF2ET
|
|
|
|
|
# Copyright (C) 2017,2018,2019 by Andy Uribe CA6JAU, Florian Wolters DF2ET
|
|
|
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
@ -18,9 +18,6 @@
|
|
|
|
|
|
|
|
|
|
# Configure latest version
|
|
|
|
|
FW_VERSION="v1.4.17"
|
|
|
|
|
|
|
|
|
|
# Change USB-serial port name ONLY in macOS
|
|
|
|
|
MAC_DEV_USB_SER="/dev/cu.usbmodem14401"
|
|
|
|
|
|
|
|
|
|
# Download latest firmware for MMDVM_HS_Hat with 12.288 MHz TCXO
|
|
|
|
|
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_hat_fw-12mhz.bin
|
|
|
|
|
@ -32,7 +29,6 @@ fi
|
|
|
|
|
|
|
|
|
|
# Configure vars depending on OS
|
|
|
|
|
if [ $(uname -s) == "Linux" ]; then
|
|
|
|
|
DEV_USB_SER="/dev/ttyACM0"
|
|
|
|
|
if [ $(uname -m) == "x86_64" ]; then
|
|
|
|
|
echo "Linux 64-bit detected"
|
|
|
|
|
DFU_RST="./STM32F10X_Lib/utils/linux64/upload-reset"
|
|
|
|
|
@ -62,7 +58,6 @@ fi
|
|
|
|
|
|
|
|
|
|
if [ $(uname -s) == "Darwin" ]; then
|
|
|
|
|
echo "macOS detected"
|
|
|
|
|
DEV_USB_SER=$MAC_DEV_USB_SER
|
|
|
|
|
DFU_RST="./STM32F10X_Lib/utils/macosx/upload-reset"
|
|
|
|
|
DFU_UTIL="./STM32F10X_Lib/utils/macosx/dfu-util"
|
|
|
|
|
ST_FLASH="./STM32F10X_Lib/utils/macosx/st-flash"
|
|
|
|
|
|