Add new SRV LED options by Aleksander S56AL

This commit is contained in:
Andy CA6JAU 2018-07-15 19:12:09 -04:00
parent 12ec1b78e4
commit 5f7b628417
15 changed files with 68 additions and 15 deletions

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

14
IO.cpp
View file

@ -119,6 +119,20 @@ void CIO::process()
#if defined(CONSTANT_SRV_LED) #if defined(CONSTANT_SRV_LED)
LED_pin(HIGH); LED_pin(HIGH);
#elif defined(CONSTANT_SRV_LED_INVERTED)
LED_pin(LOW);
#elif defined(DISCREET_SRV_LED)
if (m_ledCount == 10000U) LED_pin(LOW);
if (m_ledCount >= 480000U) {
m_ledCount = 0U;
LED_pin(HIGH);
};
#elif defined(DISCREET_SRV_LED_INVERTED)
if (m_ledCount == 10000U) LED_pin(HIGH);
if (m_ledCount >= 480000U) {
m_ledCount = 0U;
LED_pin(LOW);
};
#else #else
if (m_ledCount >= 24000U) { if (m_ledCount >= 24000U) {
m_ledCount = 0U; m_ledCount = 0U;

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
#define QUIET_MODE_LEDS #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -67,8 +67,11 @@
// Disable mode LEDs blink during scan mode: // Disable mode LEDs blink during scan mode:
// #define QUIET_MODE_LEDS // #define QUIET_MODE_LEDS
// Constant Service LED once repeater is running // Engage a constant or descreet Service LED mode once repeater is running
// #define CONSTANT_SRV_LED // #define CONSTANT_SRV_LED
// #define CONSTANT_SRV_LED_INVERTED
// #define DISCREET_SRV_LED
// #define DISCREET_SRV_LED_INVERTED
// Use the YSF and P25 LEDs for NXDN // Use the YSF and P25 LEDs for NXDN
// #define USE_ALTERNATE_NXDN_LEDS // #define USE_ALTERNATE_NXDN_LEDS

View file

@ -24,8 +24,8 @@
#define VER_MAJOR "1" #define VER_MAJOR "1"
#define VER_MINOR "4" #define VER_MINOR "4"
#define VER_REV "1" #define VER_REV "2"
#define VERSION_DATE "20180709" #define VERSION_DATE "20180715"
#if defined(ZUMSPOT_ADF7021) #if defined(ZUMSPOT_ADF7021)
#define BOARD_INFO "ZUMspot" #define BOARD_INFO "ZUMspot"