Code cleanup

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-02-25 12:49:42 +01:00
parent 310277fb5c
commit b9de9d473c
5 changed files with 41 additions and 20 deletions
+9 -4
View File
@@ -12,6 +12,9 @@ extern const unsigned char tuner_init_tab4000[] PROGMEM;
extern const unsigned char tuner_init_tab12000[] PROGMEM;
extern const unsigned char tuner_init_tab55000[] PROGMEM;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
enum RDS_GROUPS {
RDS_GROUP_0A, RDS_GROUP_0B, RDS_GROUP_1A, RDS_GROUP_1B, RDS_GROUP_2A, RDS_GROUP_2B, RDS_GROUP_3A, RDS_GROUP_3B,
RDS_GROUP_4A, RDS_GROUP_4B, RDS_GROUP_5A, RDS_GROUP_5B, RDS_GROUP_6A, RDS_GROUP_6B, RDS_GROUP_7A, RDS_GROUP_7B,
@@ -19,6 +22,10 @@ enum RDS_GROUPS {
RDS_GROUP_12A, RDS_GROUP_12B, RDS_GROUP_13A, RDS_GROUP_13B, RDS_GROUP_14A, RDS_GROUP_14B, RDS_GROUP_15A, RDS_GROUP_15B
};
// Fixed PI/callsign combinations for Canada
static const uint16_t fixedPI[] = {0x4C10, 0x4C11, 0x4C12};
static const char* fixedCalls[] = {"CBLA", "CBFM", "CBOT"};
static const char* const PTY_EU[] {
"None",
"News",
@@ -91,10 +98,6 @@ static const char* const PTY_USA[] {
" "
};
// Fixed PI/callsign combinations for Canada
inline const uint16_t fixedPI[] = {0x4C10, 0x4C11, 0x4C12};
inline const char* fixedCalls[] = {"CBLA", "CBFM", "CBOT"};
static const uint16_t oda_app_ids[] {
0x0000, 0x0093, 0x0BCB, 0x0C24, 0x0CC1, 0x0D45, 0x0D8B, 0x0E2C, 0x0E31, 0x0F87,
0x125F, 0x1BDA, 0x1C5E, 0x1C68, 0x1CB1, 0x1D47, 0x1DC2, 0x1DC5, 0x1E8F, 0x4400,
@@ -564,6 +567,8 @@ const DABFrequencyLabel DABfrequencyTable[] = {
{1490624, "LW"}
};
#pragma GCC diagnostic pop
typedef struct _rds_ {
byte region;
byte stationTypeCode;