mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-22 02:08:48 +00:00
BYP/RAW removed by default, can be enabled by compile option
This commit is contained in:
parent
21535c9ca0
commit
b0a01cd8cf
4
Makefile
4
Makefile
@ -36,6 +36,7 @@ ENABLE_AUDIO_BAR := 1
|
|||||||
ENABLE_COPY_CHAN_TO_VFO := 1
|
ENABLE_COPY_CHAN_TO_VFO := 1
|
||||||
ENABLE_SPECTRUM := 1
|
ENABLE_SPECTRUM := 1
|
||||||
ENABLE_REDUCE_LOW_MID_TX_POWER:= 0
|
ENABLE_REDUCE_LOW_MID_TX_POWER:= 0
|
||||||
|
ENABLE_BYP_RAW_DEMODULATORS := 0
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
@ -320,6 +321,9 @@ endif
|
|||||||
ifeq ($(ENABLE_REDUCE_LOW_MID_TX_POWER),1)
|
ifeq ($(ENABLE_REDUCE_LOW_MID_TX_POWER),1)
|
||||||
CFLAGS += -DENABLE_REDUCE_LOW_MID_TX_POWER
|
CFLAGS += -DENABLE_REDUCE_LOW_MID_TX_POWER
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(ENABLE_BYP_RAW_DEMODULATORS),1)
|
||||||
|
CFLAGS += -DENABLE_BYP_RAW_DEMODULATORS
|
||||||
|
endif
|
||||||
|
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
ifeq ($(ENABLE_CLANG),0)
|
ifeq ($(ENABLE_CLANG),0)
|
||||||
|
6
radio.c
6
radio.c
@ -49,8 +49,11 @@ const char gModulationStr[][4] =
|
|||||||
"FM",
|
"FM",
|
||||||
"AM",
|
"AM",
|
||||||
"USB",
|
"USB",
|
||||||
|
|
||||||
|
#ifdef ENABLE_BYP_RAW_DEMODULATORS
|
||||||
"BYP",
|
"BYP",
|
||||||
"RAW"
|
"RAW"
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
bool RADIO_CheckValidChannel(uint16_t Channel, bool bCheckScanList, uint8_t VFO)
|
bool RADIO_CheckValidChannel(uint16_t Channel, bool bCheckScanList, uint8_t VFO)
|
||||||
@ -929,12 +932,15 @@ void RADIO_SetModulation(ModulationMode_t modulation)
|
|||||||
case MODULATION_USB:
|
case MODULATION_USB:
|
||||||
mod = BK4819_AF_BASEBAND2;
|
mod = BK4819_AF_BASEBAND2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef ENABLE_BYP_RAW_DEMODULATORS
|
||||||
case MODULATION_BYP:
|
case MODULATION_BYP:
|
||||||
mod = BK4819_AF_UNKNOWN3;
|
mod = BK4819_AF_UNKNOWN3;
|
||||||
break;
|
break;
|
||||||
case MODULATION_RAW:
|
case MODULATION_RAW:
|
||||||
mod = BK4819_AF_BASEBAND1;
|
mod = BK4819_AF_BASEBAND1;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
BK4819_SetAF(mod);
|
BK4819_SetAF(mod);
|
||||||
|
6
radio.h
6
radio.h
@ -65,12 +65,16 @@ typedef enum {
|
|||||||
MODULATION_FM,
|
MODULATION_FM,
|
||||||
MODULATION_AM,
|
MODULATION_AM,
|
||||||
MODULATION_USB,
|
MODULATION_USB,
|
||||||
|
|
||||||
|
#ifdef ENABLE_BYP_RAW_DEMODULATORS
|
||||||
MODULATION_BYP,
|
MODULATION_BYP,
|
||||||
MODULATION_RAW,
|
MODULATION_RAW,
|
||||||
|
#endif
|
||||||
|
|
||||||
MODULATION_UKNOWN
|
MODULATION_UKNOWN
|
||||||
} ModulationMode_t;
|
} ModulationMode_t;
|
||||||
|
|
||||||
extern const char gModulationStr[5][4];
|
extern const char gModulationStr[MODULATION_UKNOWN][4];
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user