kopia lustrzana https://github.com/OpenRTX/OpenRTX
Added void pointer to hwInfo_t for storing custom device information
rodzic
71b35985ce
commit
85a0c49769
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ static hwInfo_t hwInfo =
|
|||
.uhf_minFreq = 0,
|
||||
.vhf_maxFreq = 0,
|
||||
.vhf_minFreq = 0,
|
||||
.other = NULL,
|
||||
};
|
||||
|
||||
// RGB led color data
|
||||
|
|
Ładowanie…
Reference in New Issue