0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

added 68~108MHz FM radio compile option

This commit is contained in:
OneOfEleven 2023-10-20 15:22:10 +01:00
parent 02e16efc02
commit 275b2d248a
5 changed files with 10 additions and 1 deletions

View File

@ -19,6 +19,7 @@ ENABLE_AIRCOPY_REMEMBER_FREQ := 1
ENABLE_AIRCOPY_RX_REBOOT := 0
# FM Radio 4.2 kB
ENABLE_FMRADIO := 1
ENABLE_FMRADIO_64_108 := 0
# NOAA 1.2 kB
ENABLE_NOAA := 0
# Voice 1.7 kB
@ -280,6 +281,9 @@ endif
ifeq ($(ENABLE_FMRADIO),1)
CFLAGS += -DENABLE_FMRADIO
endif
ifeq ($(ENABLE_FMRADIO_64_108),1)
CFLAGS += -DENABLE_FMRADIO_64_108
endif
ifeq ($(ENABLE_UART),1)
CFLAGS += -DENABLE_UART
endif

View File

@ -44,6 +44,7 @@ ENABLE_AIRCOPY := 1 clone radio-to-radio via RF
ENABLE_AIRCOPY_REMEMBER_FREQ := 1 remember the aircopy frequency
ENABLE_AIRCOPY_RX_REBOOT := 0 auto reboot on an aircopy successful RX completion
ENABLE_FMRADIO := 1 WBFM VHF broadcast band receiver
ENABLE_FMRADIO_64_108 := 0 '1' = ENABLE FM radio chips full range
ENABLE_NOAA := 0 everything NOAA (only of any use in the USA)
ENABLE_VOICE := 0 want to hear voices ?
ENABLE_MUTE_RADIO_FOR_VOICE := 1 mute the radios audio when a voice is playing

Binary file not shown.

Binary file not shown.

View File

@ -23,7 +23,11 @@
uint32_t g_aircopy_freq = 41002500;
// FM broadcast band lower/upper limit
const freq_band_table_t FM_RADIO_BAND = {880, 1080};
#ifdef ENABLE_FMRADIO_64_108
const freq_band_table_t FM_RADIO_BAND = {680, 1080};
#else
const freq_band_table_t FM_RADIO_BAND = {880, 1080};
#endif
// the BK4819 has 2 bands it covers, 18MHz ~ 630MHz and 760MHz ~ 1300MHz
const freq_band_table_t BX4819_BAND1 = { 1800000, 63000000};