Added void pointer to hwInfo_t for storing custom device information

pull/264/head
Morgan Diepart 2024-01-17 23:00:45 +01:00 zatwierdzone przez silseva
rodzic 71b35985ce
commit 85a0c49769
7 zmienionych plików z 13 dodań i 5 usunięć

Wyświetl plik

@ -72,6 +72,8 @@ typedef struct
uint16_t vhf_maxFreq; /* Upper bound for VHF band, in MHz. */
uint16_t vhf_minFreq; /* Lower bound for VHF band, in MHz. */
void *other; /* Void pointer to device-specific data structure */
} hwInfo_t;

Wyświetl plik

@ -43,7 +43,8 @@ static const hwInfo_t hwInfo =
.uhf_minFreq = 400,
.uhf_band = 1,
.hw_version = 0,
.name = "DM-1801"
.name = "DM-1801",
.other = NULL,
};
void platform_init()

Wyświetl plik

@ -43,7 +43,8 @@ static const hwInfo_t hwInfo =
.uhf_minFreq = 400,
.uhf_band = 1,
.hw_version = 0,
.name = "GD-77"
.name = "GD-77",
.other = NULL,
};
void platform_init()

Wyświetl plik

@ -42,7 +42,8 @@ static const hwInfo_t hwInfo =
.uhf_minFreq = 400,
.uhf_band = 1,
.hw_version = 0,
.name = "MD-9600"
.name = "MD-9600",
.other = NULL,
};
void platform_init()

Wyświetl plik

@ -41,7 +41,8 @@ static hwInfo_t hwInfo =
.uhf_minFreq = 0,
.uhf_band = 0,
.hw_version = 0,
.name = "Module17"
.name = "Module17",
.other = NULL,
};
void platform_init()

Wyświetl plik

@ -39,7 +39,8 @@ static const hwInfo_t hwInfo =
.uhf_minFreq = 400,
.uhf_band = 1,
.name = "Linux",
.hw_version = 1
.hw_version = 1,
.other = NULL,
};

Wyświetl plik

@ -47,6 +47,7 @@ static hwInfo_t hwInfo =
.uhf_minFreq = 0,
.vhf_maxFreq = 0,
.vhf_minFreq = 0,
.other = NULL,
};
// RGB led color data