forked from mirror/uv-k5-firmware
Renames from Andrej.
This commit is contained in:
parent
bceb390999
commit
57c0ae3a46
@ -349,7 +349,7 @@ void BK4819_RX_TurnOn(void)
|
||||
BK4819_WriteRegister(BK4819_REG_30_VARIOUS_ENABLE_BITS, 0xBFF1);
|
||||
}
|
||||
|
||||
void BK4819_Configure_GPIO2_PIN30_GPIO3_PIN31(uint32_t Frequency)
|
||||
void BK4819_PickRXFilterPathBasedOnFrequency(uint32_t Frequency)
|
||||
{
|
||||
if (Frequency < 28000000) {
|
||||
BK4819_ToggleGpioOut(BK4819_GPIO2_PIN30, true);
|
||||
|
@ -41,7 +41,7 @@ void BK4819_SetFrequency(uint32_t Frequency);
|
||||
void BK4819_SetupSquelch(uint8_t SQ0, uint8_t SQ1, uint8_t SQ2, uint8_t SQ3, uint8_t SQ4, uint8_t SQ5);
|
||||
void BK4819_SetAF(uint8_t AF);
|
||||
void BK4819_RX_TurnOn(void);
|
||||
void BK4819_Configure_GPIO2_PIN30_GPIO3_PIN31(uint32_t Frequency);
|
||||
void BK4819_PickRXFilterPathBasedOnFrequency(uint32_t Frequency);
|
||||
void BK4819_DisableScramble(void);
|
||||
void BK4819_EnableScramble(uint8_t Type);
|
||||
void BK4819_DisableVox(void);
|
||||
|
6
radio.c
6
radio.c
@ -309,7 +309,7 @@ void RADIO_ConfigureChannel(uint8_t RadioNum, uint32_t Arg)
|
||||
Frequency = FREQUENCY_FloorToStep(gEeprom.RadioInfo[RadioNum].FREQUENCY_OF_DEVIATION, gEeprom.RadioInfo[RadioNum].StepFrequency, 0);
|
||||
gEeprom.RadioInfo[RadioNum].FREQUENCY_OF_DEVIATION = Frequency;
|
||||
}
|
||||
RADIO_ApplyDeviation(pRadio);
|
||||
RADIO_ApplyOffset(pRadio);
|
||||
memset(gEeprom.RadioInfo[RadioNum].Name, 0, sizeof(gEeprom.RadioInfo[RadioNum].Name));
|
||||
if (ChNum < 200) {
|
||||
// 16 bytes allocated but only 12 used
|
||||
@ -394,7 +394,7 @@ void RADIO_ConfigureSquelchAndOutputPower(RADIO_Info_t *pInfo)
|
||||
pInfo->pDCS_Reverse->Frequency);
|
||||
}
|
||||
|
||||
void RADIO_ApplyDeviation(RADIO_Info_t *pInfo)
|
||||
void RADIO_ApplyOffset(RADIO_Info_t *pInfo)
|
||||
{
|
||||
uint32_t Frequency;
|
||||
|
||||
@ -492,7 +492,7 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0)
|
||||
}
|
||||
BK4819_SetFrequency(Frequency);
|
||||
BK4819_SetupSquelch(gRxRadioInfo->SQ0, gRxRadioInfo->SQ1, gRxRadioInfo->SQ2, gRxRadioInfo->SQ3, gRxRadioInfo->SQ4, gRxRadioInfo->SQ5);
|
||||
BK4819_Configure_GPIO2_PIN30_GPIO3_PIN31(Frequency);
|
||||
BK4819_PickRXFilterPathBasedOnFrequency(Frequency);
|
||||
BK4819_ToggleGpioOut(BK4819_GPIO6_PIN2, true);
|
||||
BK4819_WriteRegister(BK4819_REG_48_AF_RF_GAIN_DAC_GAIN, 0xB3A8);
|
||||
|
||||
|
2
radio.h
2
radio.h
@ -78,7 +78,7 @@ uint8_t RADIO_FindNextChannel(uint8_t ChNum, uint8_t Direction, bool bCheckScanL
|
||||
void RADIO_InitInfo(RADIO_Info_t *pInfo, uint8_t ChannelSave, uint8_t ChIndex, uint32_t Frequency);
|
||||
void RADIO_ConfigureChannel(uint8_t RadioNum, uint32_t Arg);
|
||||
void RADIO_ConfigureSquelchAndOutputPower(RADIO_Info_t *pInfo);
|
||||
void RADIO_ApplyDeviation(RADIO_Info_t *pInfo);
|
||||
void RADIO_ApplyOffset(RADIO_Info_t *pInfo);
|
||||
void RADIO_ConfigureTX(void);
|
||||
void RADIO_ConfigureCrossTX(void);
|
||||
void RADIO_SetupRegisters(bool bSwitchToFunction0);
|
||||
|
Loading…
Reference in New Issue
Block a user