mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2025-02-11 17:41:11 +08:00
Renamed *CxCSS to resolve conflicts in Ghidra.
This commit is contained in:
parent
419c4f640c
commit
6ebac5a634
@ -200,7 +200,7 @@ void BK4819_ToggleGpioOut(BK4819_GPIO_PIN_t Pin, bool bSet)
|
||||
BK4819_WriteRegister(BK4819_REG_33, gBK4819_GpioOutState);
|
||||
}
|
||||
|
||||
void BK4819_EnableCDCSS(uint32_t CodeWord)
|
||||
void BK4819_SetCDCSSCodeWord(uint32_t CodeWord)
|
||||
{
|
||||
// Enable CDCSS
|
||||
// Transmit positive CDCSS code
|
||||
@ -230,7 +230,7 @@ void BK4819_EnableCDCSS(uint32_t CodeWord)
|
||||
BK4819_WriteRegister(BK4819_REG_08, 0x8000 | ((CodeWord >> 12) & 0xFFF));
|
||||
}
|
||||
|
||||
void BK4819_EnableCTCSS(uint32_t BaudRate)
|
||||
void BK4819_SetCTCSSBaudRate(uint32_t BaudRate)
|
||||
{
|
||||
uint16_t Config;
|
||||
|
||||
|
@ -42,8 +42,8 @@ void BK4819_SetAGC(uint8_t Value);
|
||||
|
||||
void BK4819_ToggleGpioOut(BK4819_GPIO_PIN_t Pin, bool bSet);
|
||||
|
||||
void BK4819_EnableCDCSS(uint32_t CodeWord);
|
||||
void BK4819_EnableCTCSS(uint32_t BaudRate);
|
||||
void BK4819_SetCDCSSCodeWord(uint32_t CodeWord);
|
||||
void BK4819_SetCTCSSBaudRate(uint32_t BaudRate);
|
||||
void BK4819_Set55HzTailDetection(void);
|
||||
void BK4819_EnableVox(uint16_t Vox1Threshold, uint16_t Vox0Threshold);
|
||||
void BK4819_SetFilterBandwidth(uint8_t Bandwidth);
|
||||
|
8
radio.c
8
radio.c
@ -516,18 +516,18 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0)
|
||||
switch (CodeType) {
|
||||
case CODE_TYPE_DIGITAL:
|
||||
case CODE_TYPE_REVERSE_DIGITAL:
|
||||
BK4819_EnableCDCSS(DCS_GetGolayCodeWord(CodeType, CodeWord));
|
||||
BK4819_SetCDCSSCodeWord(DCS_GetGolayCodeWord(CodeType, CodeWord));
|
||||
// SQUELCH_LOST SQUELCH_FOUND CDCSS_LOST CDCSS_FOUND CTCSS/CDCSS_TAIL_FOUND
|
||||
InterruptMask = 0x070C;
|
||||
break;
|
||||
case CODE_TYPE_CONTINUOUS_TONE:
|
||||
BK4819_EnableCTCSS(CTCSS_Options[CodeWord]);
|
||||
BK4819_SetCTCSSBaudRate(CTCSS_Options[CodeWord]);
|
||||
BK4819_Set55HzTailDetection();
|
||||
// SQUELCH_LOST SQUELCH_FOUND CTCSS_LOST CTCSS_FOUND CTCSS/CDCSS_TAIL_FOUND
|
||||
InterruptMask = 0x04CC;
|
||||
break;
|
||||
default:
|
||||
BK4819_EnableCTCSS(670);
|
||||
BK4819_SetCTCSSBaudRate(670);
|
||||
BK4819_Set55HzTailDetection();
|
||||
// SQUELCH_LOST SQUELCH_FOUND CTCSS/CDCSS_TAIL_FOUND
|
||||
InterruptMask = 0x040C;
|
||||
@ -540,7 +540,7 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
BK4819_EnableCTCSS(2625);
|
||||
BK4819_SetCTCSSBaudRate(2625);
|
||||
// SQUELCH_LOST SQUELCH_FOUND CTCSS_LOST CTCSS_FOUND
|
||||
InterruptMask = 0x00CC;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user