diff --git a/Config.h b/Config.h index c8e78a1..baad81d 100644 --- a/Config.h +++ b/Config.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015,2016,2017 by Jonathan Naylor G4KLX + * Copyright (C) 2015,2016,2017,2018 by Jonathan Naylor G4KLX * * 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 @@ -39,7 +39,7 @@ // #define USE_COS_AS_LOCKOUT // Use pins to output the current mode -// #define ARDUINO_MODE_PINS +// #define MODE_PINS // For the original Arduino Due pin layout // #define ARDUINO_DUE_PAPA diff --git a/IO.cpp b/IO.cpp index 96b0128..8e718ab 100644 --- a/IO.cpp +++ b/IO.cpp @@ -137,7 +137,7 @@ void CIO::selfTest() // We exclude PTT to avoid trigger the transmitter setLEDInt(ledValue); setCOSInt(ledValue); -#if defined(ARDUINO_MODE_PINS) +#if defined(MODE_PINS) setDStarInt(ledValue); setDMRInt(ledValue); setYSFInt(ledValue); @@ -148,7 +148,7 @@ void CIO::selfTest() delayInt(250); } -#if defined(ARDUINO_MODE_PINS) +#if defined(MODE_PINS) setDStarInt(true); setDMRInt(false); setYSFInt(false); @@ -546,7 +546,7 @@ void CIO::setADCDetection(bool detect) void CIO::setMode() { -#if defined(ARDUINO_MODE_PINS) +#if defined(MODE_PINS) setDStarInt(m_modemState == STATE_DSTAR); setDMRInt(m_modemState == STATE_DMR); setYSFInt(m_modemState == STATE_YSF); diff --git a/IODue.cpp b/IODue.cpp index e5fa88b..8b5fff1 100644 --- a/IODue.cpp +++ b/IODue.cpp @@ -92,7 +92,7 @@ void CIO::initInt() pinMode(PIN_LED, OUTPUT); pinMode(PIN_COS, INPUT); -#if defined(ARDUINO_MODE_PINS) +#if defined(MODE_PINS) // Set up the mode output pins pinMode(PIN_DSTAR, OUTPUT); pinMode(PIN_DMR, OUTPUT); diff --git a/IOSTM.cpp b/IOSTM.cpp index d8d84cc..bb5a1d3 100644 --- a/IOSTM.cpp +++ b/IOSTM.cpp @@ -812,7 +812,7 @@ void CIO::initInt() GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN; GPIO_Init(PORT_COS, &GPIO_InitStruct); -#if defined(ARDUINO_MODE_PINS) +#if defined(MODE_PINS) // DSTAR pin RCC_AHB1PeriphClockCmd(RCC_Per_DSTAR, ENABLE); GPIO_InitStruct.GPIO_Pin = PIN_DSTAR; diff --git a/IOTeensy.cpp b/IOTeensy.cpp index b1091c0..3b74c99 100644 --- a/IOTeensy.cpp +++ b/IOTeensy.cpp @@ -62,7 +62,7 @@ void CIO::initInt() pinMode(PIN_LED, OUTPUT); pinMode(PIN_COS, INPUT); -#if defined(ARDUINO_MODE_PINS) +#if defined(MODE_PINS) // Set up the mode output pins pinMode(PIN_DSTAR, OUTPUT); pinMode(PIN_DMR, OUTPUT); diff --git a/MMDVM_STM32F4xx.coproj b/MMDVM_STM32F4xx.coproj index 6bfeefe..d269fbd 100644 --- a/MMDVM_STM32F4xx.coproj +++ b/MMDVM_STM32F4xx.coproj @@ -97,7 +97,7 @@ - + diff --git a/mmdvmmenu.sh b/mmdvmmenu.sh index b5f5ded..014e32b 100755 --- a/mmdvmmenu.sh +++ b/mmdvmmenu.sh @@ -83,7 +83,7 @@ EOF "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";; + "6") sed -e 's/\/\/ #define MODE_PINS/#define 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";;