Add PMR compile flag ENABLE_FEAT_F4HWN_PMR

This commit is contained in:
Armel FAUVEAU
2024-05-27 16:27:28 +02:00
parent cb2419cbe8
commit 5bae297e5f
4 changed files with 7 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ ENABLE_SCAN_RANGES ?= 1
ENABLE_FEAT_F4HWN ?= 1
ENABLE_FEAT_F4HWN_FIXED_PWR ?= 0
ENABLE_FEAT_F4HWN_SCREENSHOT ?= 0
ENABLE_FEAT_F4HWN_PMR ?= 1
# ---- DEBUGGING ----
ENABLE_AM_FIX_SHOW_DATA ?= 0
@@ -407,6 +408,9 @@ endif
ifeq ($(ENABLE_FEAT_F4HWN_SCREENSHOT),1)
CFLAGS += -DENABLE_FEAT_F4HWN_SCREENSHOT
endif
ifeq ($(ENABLE_FEAT_F4HWN_PMR),1)
CFLAGS += -DENABLE_FEAT_F4HWN_PMR
endif
LDFLAGS =
LDFLAGS += -z noexecstack -mcpu=cortex-m0 -nostartfiles -Wl,-T,firmware.ld -Wl,--gc-sections

View File

@@ -222,7 +222,7 @@ int32_t TX_freq_check(const uint32_t Frequency)
return 0;
break;
#ifdef ENABLE_FEAT_F4HWN
#ifdef ENABLE_FEAT_F4HWN_PMR
case F_LOCK_PMR:
if (Frequency >= 44600625 && Frequency <= 44619375)
return 0;

View File

@@ -45,7 +45,7 @@ enum TxLockModes_t {
F_LOCK_GB,
F_LOCK_430,
F_LOCK_438,
#ifdef ENABLE_FEAT_F4HWN
#ifdef ENABLE_FEAT_F4HWN_PMR
F_LOCK_PMR,
#endif
F_LOCK_ALL, // disable TX on all frequencies

View File

@@ -290,7 +290,7 @@ const char * const gSubMenu_F_LOCK[] =
"GB HAM\n144-148\n430-440",
"137-174\n400-430",
"137-174\n400-438",
#ifdef ENABLE_FEAT_F4HWN
#ifdef ENABLE_FEAT_F4HWN_PMR
"PMR 446",
#endif
"DISABLE\nALL",