Fixed name of BK1080 enable flag.

This commit is contained in:
Dual Tachyon 2023-10-30 12:08:52 +00:00
parent 5ce6099a1a
commit 6f8afac886
2 changed files with 3 additions and 3 deletions

View File

@ -38,11 +38,11 @@ static bool gIsInitBK1080;
uint16_t BK1080_BaseFrequency; uint16_t BK1080_BaseFrequency;
uint16_t BK1080_FrequencyDeviation; uint16_t BK1080_FrequencyDeviation;
void BK1080_Init(uint16_t Frequency, bool bDoScan) void BK1080_Init(uint16_t Frequency, bool bEnable)
{ {
uint8_t i; uint8_t i;
if (bDoScan) { if (bEnable) {
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BK1080); GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BK1080);
if (!gIsInitBK1080) { if (!gIsInitBK1080) {

View File

@ -24,7 +24,7 @@
extern uint16_t BK1080_BaseFrequency; extern uint16_t BK1080_BaseFrequency;
extern uint16_t BK1080_FrequencyDeviation; extern uint16_t BK1080_FrequencyDeviation;
void BK1080_Init(uint16_t Frequency, bool bDoScan); void BK1080_Init(uint16_t Frequency, bool bEnable);
uint16_t BK1080_ReadRegister(BK1080_Register_t Register); uint16_t BK1080_ReadRegister(BK1080_Register_t Register);
void BK1080_WriteRegister(BK1080_Register_t Register, uint16_t Value); void BK1080_WriteRegister(BK1080_Register_t Register, uint16_t Value);
void BK1080_Mute(bool Mute); void BK1080_Mute(bool Mute);