mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2025-12-06 07:12:08 +01:00
Add new SRV LED options by Aleksander S56AL
This commit is contained in:
parent
12ec1b78e4
commit
5f7b628417
5
Config.h
5
Config.h
|
|
@ -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
14
IO.cpp
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue