From 6f33cfdf4f0729a09f5ae473648e4966d2e44527 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 10 Nov 2016 11:33:02 +0000 Subject: [PATCH 1/3] Reinstate the original config options. --- Config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config.h b/Config.h index 3eb0ed4..156e850 100644 --- a/Config.h +++ b/Config.h @@ -27,7 +27,7 @@ // Frequencies such as 10.0 Mhz (48000 * 208.333) or 20 Mhz (48000 * 416.666) are not suitable. // // For 12 MHz -// #define EXTERNAL_OSC 12000000 +#define EXTERNAL_OSC 12000000 // For 12.288 MHz // #define EXTERNAL_OSC 12288000 // For 14.4 MHz From 5f26a6c67d161dd807ad89be3f0e04b282549c2c Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 10 Nov 2016 16:44:29 +0100 Subject: [PATCH 2/3] Some minor corrections --- mmdvmmenu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mmdvmmenu.sh b/mmdvmmenu.sh index 5ed9413..9031f5e 100755 --- a/mmdvmmenu.sh +++ b/mmdvmmenu.sh @@ -23,9 +23,9 @@ ############################################################################### # # On a Linux based system, such as a Raspberry Pi, this script will perform -# Modafacation to the Config.c file for most options. It makes a Back up when -# you staet the script if none is present. You must recompile and load firmwhare -# on Due if changes are made. +# Modification of the Config.h file for most options. It makes a Back up when +# you start the script if none is present. You must recompile and load firmware +# onto the Arduino Due if changes are made. # ############################################################################### # From 150ea24a83d6d5de403b89ca4174331110f95c03 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 10 Nov 2016 16:48:52 +0100 Subject: [PATCH 3/3] Add 12.288MHz TCXO to mmdvmmenu.sh --- mmdvmmenu.sh | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/mmdvmmenu.sh b/mmdvmmenu.sh index 9031f5e..b5f5ded 100755 --- a/mmdvmmenu.sh +++ b/mmdvmmenu.sh @@ -61,15 +61,16 @@ do -------------------------------------------------------------- Please enter your choice: - (1) Enable 12.0 MHZ Clock - (2) Enable 14.4 MHz Clock - (3) Enable 19.2 MHz Clock - (4) Use the COS to lockout the modem - (5) Use pins to output the current mode - (6) Use layout for the PAPA board - (7) Use layout for ZUM V1.0 and V1.0.1 boards - (8) Use layout for SP8NTH board - (9) Use modem as display driver + (1) Enable 12.000 MHZ Clock + (2) Enable 12.288 MHZ Clock + (3) Enable 14.400 MHz Clock + (4) Enable 19.200 MHz Clock + (5) Use the COS to lockout the modem + (6) Use pins to output the current mode + (7) Use layout for the PAPA board + (8) Use layout for ZUM V1.0 and V1.0.1 boards + (9) Use layout for SP8NTH board + (0) Use modem as display driver (A) Return to Default (Q)uit @@ -77,15 +78,16 @@ do EOF read -n1 -s case "$REPLY" in - "1") sed -e 's/\/\/ #define EXTERNAL_OSC 12000000/#define EXTERNAL_OSC 12000000/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "12.0 MHz clock enabled";; - "2") sed -e 's/\/\/ #define EXTERNAL_OSC 14400000/#define EXTERNAL_OSC 14400000/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "14.4 MHz clock enabled";; - "3") sed -e 's/\/\/ #define EXTERNAL_OSC 19200000/#define EXTERNAL_OSC 19200000/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "19.2 MHz clock enabled";; - "4") sed -e 's/\/\/ #define USE_COS_AS_LOCKOUT /#define USE_COS_AS_LOCKOUT/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "COS as Lockout enabled";; - "5") sed -e 's/\/\/ #define ARDUINO_MODE_PINS/#define ARDUINO_MODE_PINS/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Mode pins Enabled";; - "6") sed -e 's/\/\/ #define ARDUINO_DUE_PAPA/#define ARDUINO_DUE_PAPA/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Layout for the PAPA board enabled";; - "7") sed -e 's/\/\/ #define ARDUINO_DUE_ZUM_V10/#define ARDUINO_DUE_ZUM_V10/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Layout for ZUM V1.0 and V1.0.1 boards enabled";; - "8") sed -e 's/\/\/ #define ARDUINO_DUE_NTH/#define ARDUINO_DUE_NTH/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Layout for SP8NTH board enabled";; - "9") sed -e 's/\/\/ #define SERIAL_REPEATER/#define SERIAL_REPEATER/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Modem display driver enabled";; + "1") sed -e 's/\/\/ #define EXTERNAL_OSC 12000000/#define EXTERNAL_OSC 12000000/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "12.000 MHz clock enabled";; + "2") sed -e 's/\/\/ #define EXTERNAL_OSC 12288000/#define EXTERNAL_OSC 12288000/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "12.288 MHz clock enabled";; + "3") sed -e 's/\/\/ #define EXTERNAL_OSC 14400000/#define EXTERNAL_OSC 14400000/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "14.400 MHz clock enabled";; + "4") sed -e 's/\/\/ #define EXTERNAL_OSC 19200000/#define EXTERNAL_OSC 19200000/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "19.200 MHz clock enabled";; + "5") sed -e 's/\/\/ #define USE_COS_AS_LOCKOUT /#define USE_COS_AS_LOCKOUT/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "COS as Lockout enabled";; + "6") sed -e 's/\/\/ #define ARDUINO_MODE_PINS/#define ARDUINO_MODE_PINS/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Mode pins enabled";; + "7") sed -e 's/\/\/ #define ARDUINO_DUE_PAPA/#define ARDUINO_DUE_PAPA/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Layout for the PAPA board enabled";; + "8") sed -e 's/\/\/ #define ARDUINO_DUE_ZUM_V10/#define ARDUINO_DUE_ZUM_V10/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Layout for ZUM V1.0 and V1.0.1 boards enabled";; + "9") sed -e 's/\/\/ #define ARDUINO_DUE_NTH/#define ARDUINO_DUE_NTH/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Layout for SP8NTH board enabled";; + "0") sed -e 's/\/\/ #define SERIAL_REPEATER/#define SERIAL_REPEATER/' $conf > $conf.tmp && mv -f $conf.tmp $conf && echo "Modem display driver enabled";; "A") mv -f $confbak $conf ;; "a") mv -f $confbak $conf ;; "Q") echo "If any changes are made you need to (re-)upload the firmware to MMDVM" && exit;;