0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-07-09 15:20:26 +03:00

M fix revert - for now

This commit is contained in:
OneOfEleven
2023-09-23 17:23:21 +01:00
parent 6fbcbef960
commit 9626dbb40e
12 changed files with 300 additions and 166 deletions

View File

@ -10,28 +10,6 @@ extern const uint8_t orig_mixer;
extern const uint8_t orig_pga;
#ifdef ENABLE_AM_FIX
extern const int8_t lna_short_dB[4];
extern const int8_t lna_dB[8];
extern const int8_t mixer_dB[4];
extern const int8_t pga_dB[8];
typedef struct
{
#if 1
// bitfields take less flash bytes
uint8_t lna_short:2; // 0 ~ 3
uint8_t lna:3; // 0 ~ 7
uint8_t mixer:2; // 0 ~ 3
uint8_t pga:3; // 0 ~ 7
#else
uint8_t lna_short; // 0 ~ 3
uint8_t lna; // 0 ~ 7
uint8_t mixer; // 0 ~ 3
uint8_t pga; // 0 ~ 7
#endif
} t_am_fix_gain_table;
// } __attribute__((packed)) t_am_fix_gain_table;
extern int16_t rssi_db_gain_diff;
void AM_fix_reset(void);