mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-18 14:19:49 +03:00
fixed key lock compile bug
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
#ifndef BK1080_REGS_H
|
||||
#define BK1080_REGS_H
|
||||
|
||||
enum BK1080_Register_t {
|
||||
enum BK1080_register_e {
|
||||
BK1080_REG_00 = 0x00U,
|
||||
BK1080_REG_02_POWER_CONFIGURATION = 0x02U,
|
||||
BK1080_REG_03_CHANNEL = 0x03U,
|
||||
@ -26,8 +26,7 @@ enum BK1080_Register_t {
|
||||
BK1080_REG_10 = 0x0AU,
|
||||
BK1080_REG_25_INTERNAL = 0x19U,
|
||||
};
|
||||
|
||||
typedef enum BK1080_Register_t BK1080_Register_t;
|
||||
typedef enum BK1080_register_e BK1080_register_t;
|
||||
|
||||
// REG 07
|
||||
|
||||
|
@ -179,7 +179,7 @@ void BK1080_Init(const uint16_t frequency, const bool initialise)
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t BK1080_ReadRegister(BK1080_Register_t Register)
|
||||
uint16_t BK1080_ReadRegister(BK1080_register_t Register)
|
||||
{
|
||||
uint8_t Value[2];
|
||||
I2C_Start();
|
||||
@ -190,7 +190,7 @@ uint16_t BK1080_ReadRegister(BK1080_Register_t Register)
|
||||
return (Value[0] << 8) | Value[1];
|
||||
}
|
||||
|
||||
void BK1080_WriteRegister(BK1080_Register_t Register, uint16_t Value)
|
||||
void BK1080_WriteRegister(BK1080_register_t Register, uint16_t Value)
|
||||
{
|
||||
I2C_Start();
|
||||
I2C_Write(0x80);
|
||||
|
@ -28,8 +28,8 @@ extern uint16_t BK1080_freq_base;
|
||||
extern int16_t BK1080_freq_offset;
|
||||
|
||||
void BK1080_Init(const uint16_t frequency, const bool initialise);
|
||||
uint16_t BK1080_ReadRegister(BK1080_Register_t Register);
|
||||
void BK1080_WriteRegister(BK1080_Register_t Register, uint16_t Value);
|
||||
uint16_t BK1080_ReadRegister(BK1080_register_t Register);
|
||||
void BK1080_WriteRegister(BK1080_register_t Register, uint16_t Value);
|
||||
void BK1080_Mute(const bool Mute);
|
||||
void BK1080_SetFrequency(uint16_t Frequency);
|
||||
int16_t BK1080_get_freq_offset(const uint16_t Frequency);
|
||||
|
Reference in New Issue
Block a user