BRN-POCSAG: 171 channels, 26 x 40 char messages, make toggles
EEPROM layout (settings.h), replacing the broken 24 byte layout from
85fb527 (200 x 24 B channels overran the VFOs, attributes and settings;
names were saved at ch*24 but read at ch*20):
- 32 byte channel records with the 10 char name and the 16 bit scrambler
inside, 171 channels in two areas (0x0000, 0x11E0); VFOs at 0x1020 with
the same record; attributes moved to 0x0F50.
- Message store from 0x1900: 26 messages of 40 characters.
- Reset VFO no longer wipes the memory channels and messages.
- Static asserts that no area overlaps another or the calibration.
Identity: reports "BRN-POCSAG v4.0" to CHIRP and in the packed image, so
stock / egzumer / F4HWN drivers do not accept the new layout; the name is
shown on the welcome screen.
Make toggles: ENABLE_POCSAG, ENABLE_POCSAG_DEBUG, ENABLE_POCSAG_DEV_TUNING,
ENABLE_OOK_SENDER (POCSAG code and the OOK sender compile out completely).
Fonts: removed the unused big font, big digits and small digits; the 3x5
font is only built with the spectrum.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
No files matched your search
@@ -21,11 +21,17 @@ ENABLE_FLASHLIGHT ?= 1
|
||||
ifeq ($(BANDSCOPE),1)
|
||||
ENABLE_SPECTRUM := 1
|
||||
ENABLE_FMRADIO := 0
|
||||
EXTRA_CFLAGS += -DPOCSAG_DEBUG_UART=0 -finline-limit=1
|
||||
ENABLE_POCSAG_DEBUG := 0
|
||||
EXTRA_CFLAGS += -finline-limit=1
|
||||
endif
|
||||
|
||||
# ---- CUSTOM MODS ----
|
||||
ENABLE_SPECTRUM ?= 0
|
||||
# ---- BRN-POCSAG components ----
|
||||
ENABLE_POCSAG ?= 1
|
||||
ENABLE_POCSAG_DEBUG ?= 1
|
||||
ENABLE_POCSAG_DEV_TUNING ?= 0
|
||||
ENABLE_OOK_SENDER ?= 1
|
||||
ENABLE_BIG_FREQ ?= 0
|
||||
ENABLE_SMALL_BOLD ?= 0
|
||||
ENABLE_CUSTOM_MENU_LAYOUT ?= 1
|
||||
@@ -146,9 +152,13 @@ OBJS += app/chFrScanner.o
|
||||
OBJS += app/common.o
|
||||
OBJS += app/dtmf.o
|
||||
OBJS += app/fskmodem.o
|
||||
OBJS += app/pocsag.o
|
||||
ifeq ($(ENABLE_POCSAG),1)
|
||||
OBJS += app/pocsag.o
|
||||
endif
|
||||
OBJS += app/messages.o
|
||||
OBJS += app/ooksender.o
|
||||
ifeq ($(ENABLE_OOK_SENDER),1)
|
||||
OBJS += app/ooksender.o
|
||||
endif
|
||||
ifeq ($(ENABLE_REGA),1)
|
||||
OBJS += app/rega.o
|
||||
endif
|
||||
@@ -188,7 +198,9 @@ ifeq ($(ENABLE_AIRCOPY),1)
|
||||
OBJS += ui/aircopy.o
|
||||
endif
|
||||
OBJS += ui/messages.o
|
||||
OBJS += ui/ooksender.o
|
||||
ifeq ($(ENABLE_OOK_SENDER),1)
|
||||
OBJS += ui/ooksender.o
|
||||
endif
|
||||
OBJS += ui/battery.o
|
||||
ifeq ($(ENABLE_FMRADIO),1)
|
||||
OBJS += ui/fmradio.o
|
||||
@@ -247,7 +259,7 @@ ifeq ($(ENABLE_FEAT_F4HWN),1)
|
||||
|
||||
EDITION_STRING ?= Custom
|
||||
|
||||
AUTHOR_STRING ?= $(AUTHOR_STRING_1)+$(AUTHOR_STRING_2)
|
||||
AUTHOR_STRING ?= BRN-POCSAG
|
||||
VERSION_STRING ?= $(VERSION_STRING_2)
|
||||
|
||||
SQL_TONE ?= 550 # For SA818, use 600 and python3 sa818.py --port /dev/ttyS2 radio --frequency 434.975 --ctcss 71.9 --tail Open
|
||||
@@ -421,6 +433,13 @@ endif
|
||||
ifeq ($(ENABLE_AGC_SHOW_DATA),1)
|
||||
CFLAGS += -DENABLE_AGC_SHOW_DATA
|
||||
endif
|
||||
ifeq ($(ENABLE_POCSAG),1)
|
||||
CFLAGS += -DENABLE_POCSAG
|
||||
endif
|
||||
CFLAGS += -DPOCSAG_DEBUG_UART=$(ENABLE_POCSAG_DEBUG) -DPOCSAG_DEVIATION_TUNING=$(ENABLE_POCSAG_DEV_TUNING)
|
||||
ifeq ($(ENABLE_OOK_SENDER),1)
|
||||
CFLAGS += -DENABLE_OOK_SENDER
|
||||
endif
|
||||
ifeq ($(ENABLE_FLASHLIGHT),1)
|
||||
CFLAGS += -DENABLE_FLASHLIGHT
|
||||
endif
|
||||
@@ -533,7 +552,7 @@ else ifneq (,$(HAS_CRCMOD))
|
||||
$(info )
|
||||
else
|
||||
ifeq ($(ENABLE_FEAT_F4HWN),1)
|
||||
-$(MY_PYTHON) fw-pack.py $<.bin $(AUTHOR_STRING_2) $(VERSION_STRING_2) $<.packed.bin
|
||||
-$(MY_PYTHON) fw-pack.py $<.bin BRN-POCSAG $(VERSION_STRING_2) $<.packed.bin
|
||||
else
|
||||
-$(MY_PYTHON) fw-pack.py $<.bin $(AUTHOR_STRING) $(VERSION_STRING) $<.packed.bin
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user