chore: add CPU details to hwdefs files (#7136)
Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
@@ -214,6 +214,15 @@ const int BoardJson::getCapability(const Board::Capability capability) const
|
|||||||
case Board::InputSwitches:
|
case Board::InputSwitches:
|
||||||
return m_inputCnt.switches;
|
return m_inputCnt.switches;
|
||||||
|
|
||||||
|
case Board::IsF4:
|
||||||
|
return m_hardware.cpu_type == "STM32F4";
|
||||||
|
|
||||||
|
case Board::IsH5:
|
||||||
|
return m_hardware.cpu_type == "STM32H5";
|
||||||
|
|
||||||
|
case Board::IsH7:
|
||||||
|
return m_hardware.cpu_type == "STM32H7";
|
||||||
|
|
||||||
case Board::JoystickAxes:
|
case Board::JoystickAxes:
|
||||||
return m_inputCnt.flexJoystickAxes;
|
return m_inputCnt.flexJoystickAxes;
|
||||||
|
|
||||||
@@ -1247,6 +1256,8 @@ bool BoardJson::loadFile(Board::Type board, QString hwdefn, InputsTable * inputs
|
|||||||
hardware.has_int_module_support = o.value("has_int_module_support").toInt();
|
hardware.has_int_module_support = o.value("has_int_module_support").toInt();
|
||||||
hardware.sport_max_baudrate = o.value("sport_max_baudrate").toInt();
|
hardware.sport_max_baudrate = o.value("sport_max_baudrate").toInt();
|
||||||
hardware.surface = o.value("surface").toInt();
|
hardware.surface = o.value("surface").toInt();
|
||||||
|
hardware.cpu = o.value("cpu").toString().toStdString();
|
||||||
|
hardware.cpu_type = o.value("cpu_type").toString().toStdString();
|
||||||
}
|
}
|
||||||
|
|
||||||
delete json;
|
delete json;
|
||||||
@@ -1290,3 +1301,15 @@ void BoardJson::setSwitchCounts(const SwitchesTable * switches, SwitchCounts & s
|
|||||||
switchCounts.func++;
|
switchCounts.func++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const QString BoardJson::getCapabilityStr(const Board::Capability capability) const
|
||||||
|
{
|
||||||
|
switch (capability) {
|
||||||
|
case Board::CPU:
|
||||||
|
return m_hardware.cpu.c_str();
|
||||||
|
case Board::CPUType:
|
||||||
|
return m_hardware.cpu_type.c_str();
|
||||||
|
default:
|
||||||
|
return QString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -123,6 +123,8 @@ class BoardJson
|
|||||||
int has_int_module_support = 0;
|
int has_int_module_support = 0;
|
||||||
int sport_max_baudrate = 0;
|
int sport_max_baudrate = 0;
|
||||||
int surface = 0;
|
int surface = 0;
|
||||||
|
std::string cpu = "";
|
||||||
|
std::string cpu_type = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector<TrimDefn> TrimsTable;
|
typedef std::vector<TrimDefn> TrimsTable;
|
||||||
@@ -136,6 +138,7 @@ class BoardJson
|
|||||||
bool loadDefinition();
|
bool loadDefinition();
|
||||||
|
|
||||||
const int getCapability(const Board::Capability capability) const;
|
const int getCapability(const Board::Capability capability) const;
|
||||||
|
const QString getCapabilityStr(const Board::Capability capability) const;
|
||||||
const int getInputsCalibrated() const;
|
const int getInputsCalibrated() const;
|
||||||
|
|
||||||
const int getInputIndex(const QString val, Board::LookupValueType lvt) const;
|
const int getInputIndex(const QString val, Board::LookupValueType lvt) const;
|
||||||
|
|||||||
@@ -1182,3 +1182,8 @@ void Boards::tests()
|
|||||||
{
|
{
|
||||||
qDebug() << "**** Board checks ****";
|
qDebug() << "**** Board checks ****";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Boards::getCapabilityStr(Board::Type board, Board::Capability capability)
|
||||||
|
{
|
||||||
|
return getBoardJson(board)->getCapabilityStr(capability);
|
||||||
|
}
|
||||||
@@ -213,6 +213,8 @@ namespace Board {
|
|||||||
enum Capability {
|
enum Capability {
|
||||||
Air,
|
Air,
|
||||||
BacklightLevelMin,
|
BacklightLevelMin,
|
||||||
|
CPU,
|
||||||
|
CPUType,
|
||||||
FlexInputs,
|
FlexInputs,
|
||||||
FlexSwitches,
|
FlexSwitches,
|
||||||
FunctionSwitchColors,
|
FunctionSwitchColors,
|
||||||
@@ -241,6 +243,9 @@ namespace Board {
|
|||||||
HasVCPSerialMode,
|
HasVCPSerialMode,
|
||||||
Inputs,
|
Inputs,
|
||||||
InputSwitches,
|
InputSwitches,
|
||||||
|
IsF4,
|
||||||
|
IsH5,
|
||||||
|
IsH7,
|
||||||
JoystickAxes,
|
JoystickAxes,
|
||||||
Joysticks,
|
Joysticks,
|
||||||
Keys,
|
Keys,
|
||||||
@@ -401,12 +406,14 @@ class Boards
|
|||||||
const int getEEpromSize() const { return getEEpromSize(m_boardType); }
|
const int getEEpromSize() const { return getEEpromSize(m_boardType); }
|
||||||
const int getFlashSize() const { return getFlashSize(m_boardType); }
|
const int getFlashSize() const { return getFlashSize(m_boardType); }
|
||||||
const int getCapability(Board::Capability capability) const { return getCapability(m_boardType, capability); }
|
const int getCapability(Board::Capability capability) const { return getCapability(m_boardType, capability); }
|
||||||
|
const QString getCapabilityStr(Board::Capability capability) const { return getCapabilityStr(m_boardType, capability); }
|
||||||
const bool isBoardCompatible(Board::Type board2) const { return isBoardCompatible(m_boardType, board2); }
|
const bool isBoardCompatible(Board::Type board2) const { return isBoardCompatible(m_boardType, board2); }
|
||||||
|
|
||||||
static uint32_t getFourCC(Board::Type board);
|
static uint32_t getFourCC(Board::Type board);
|
||||||
static int getEEpromSize(Board::Type board);
|
static int getEEpromSize(Board::Type board);
|
||||||
static int getFlashSize(Board::Type board);
|
static int getFlashSize(Board::Type board);
|
||||||
static int getCapability(Board::Type board, Board::Capability capability);
|
static int getCapability(Board::Type board, Board::Capability capability);
|
||||||
|
static QString getCapabilityStr(Board::Type board, Board::Capability capability);
|
||||||
static QString getAxisName(int index);
|
static QString getAxisName(int index);
|
||||||
static bool isBoardCompatible(Board::Type board1, Board::Type board2);
|
static bool isBoardCompatible(Board::Type board1, Board::Type board2);
|
||||||
static QString getBoardName(Board::Type board);
|
static QString getBoardName(Board::Type board);
|
||||||
@@ -816,17 +823,6 @@ inline bool IS_FAMILY_HORUS_OR_T16(Board::Type board)
|
|||||||
IS_FLYSKY_PA01(board)/*generally*/ || IS_FLYSKY_NB4P(board)/*generally*/;
|
IS_FLYSKY_PA01(board)/*generally*/ || IS_FLYSKY_NB4P(board)/*generally*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool IS_STM32(Board::Type board)
|
|
||||||
{
|
|
||||||
return IS_TARANIS(board) || IS_FAMILY_HORUS_OR_T16(board) ||
|
|
||||||
IS_FLYSKY_NV14(board) || IS_FLYSKY_EL18(board) || IS_FAMILY_PL18(board) || IS_FLYSKY_ST16(board);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool IS_ARM(Board::Type board)
|
|
||||||
{
|
|
||||||
return IS_STM32(board);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool HAS_LARGE_LCD(Board::Type board)
|
inline bool HAS_LARGE_LCD(Board::Type board)
|
||||||
{
|
{
|
||||||
return IS_FAMILY_HORUS_OR_T16(board) || IS_TARANIS_X9(board);
|
return IS_FAMILY_HORUS_OR_T16(board) || IS_TARANIS_X9(board);
|
||||||
@@ -854,27 +850,3 @@ inline bool IS_ACCESS_RADIO(Board::Type board, const QString & id)
|
|||||||
return IS_ACCESS_RADIO(board) ||
|
return IS_ACCESS_RADIO(board) ||
|
||||||
(IS_FAMILY_HORUS_OR_T16(board) && id.contains("internalaccess"));
|
(IS_FAMILY_HORUS_OR_T16(board) && id.contains("internalaccess"));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool HAS_EEPROM_YAML(Board::Type board)
|
|
||||||
{
|
|
||||||
return IS_FAMILY_HORUS_OR_T16(board);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool IS_STM32H5(Board::Type board)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool IS_STM32H7(Board::Type board)
|
|
||||||
{
|
|
||||||
return IS_FLYSKY_PA01(board) ||
|
|
||||||
IS_FLYSKY_ST16(board) ||
|
|
||||||
IS_JUMPER_T15PRO(board) ||
|
|
||||||
IS_RADIOMASTER_TX15(board) ||
|
|
||||||
IS_RADIOMASTER_TX16SMK3(board);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool IS_STM32F2F4(Board::Type board)
|
|
||||||
{
|
|
||||||
return (!IS_STM32H5(board) && !IS_STM32H7(board));
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1509,7 +1509,7 @@ bool convert<ModelData>::decode(const Node& node, ModelData& rhs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// v2.12 CRSF limit external module to 3.75M for older boards
|
// v2.12 CRSF limit external module to 3.75M for older boards
|
||||||
if (IS_STM32F2F4(board) &&
|
if (Boards::getCapability((Board::Type)board, Board::IsF4) &&
|
||||||
rhs.moduleData[1].protocol == PULSES_CROSSFIRE &&
|
rhs.moduleData[1].protocol == PULSES_CROSSFIRE &&
|
||||||
rhs.moduleData[1].crsf.telemetryBaudrate > 4)
|
rhs.moduleData[1].crsf.telemetryBaudrate > 4)
|
||||||
rhs.moduleData[1].crsf.telemetryBaudrate = 4;
|
rhs.moduleData[1].crsf.telemetryBaudrate = 4;
|
||||||
|
|||||||
@@ -611,7 +611,8 @@ AbstractStaticItemModel * ModuleData::telemetryBaudrateItemModel(unsigned int pr
|
|||||||
for (int i = 0; i < moduleBaudratesList.size(); i++) {
|
for (int i = 0; i < moduleBaudratesList.size(); i++) {
|
||||||
// CRSF limit external module to 3.75M for older boards
|
// CRSF limit external module to 3.75M for older boards
|
||||||
if (protocol == PULSES_CROSSFIRE && moduleIdx == 1 &&
|
if (protocol == PULSES_CROSSFIRE && moduleIdx == 1 &&
|
||||||
IS_STM32F2F4((Board::Type)board) && i > 4) break;
|
Boards::getCapability((Board::Type)board, Board::IsF4) &&
|
||||||
|
i > 4) break;
|
||||||
|
|
||||||
if (protocol == PULSES_GHOST && i >= 2) break;
|
if (protocol == PULSES_GHOST && i >= 2) break;
|
||||||
mdl->appendToItemList(moduleBaudratesList.at(i), i);
|
mdl->appendToItemList(moduleBaudratesList.at(i), i);
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ int OpenTxFirmware::getCapability(::Capability capability)
|
|||||||
case GlobalFunctions:
|
case GlobalFunctions:
|
||||||
return CPN_MAX_SPECIAL_FUNCTIONS;
|
return CPN_MAX_SPECIAL_FUNCTIONS;
|
||||||
case Gvars:
|
case Gvars:
|
||||||
return id.contains("nogvars") ? 0 : (IS_STM32H7(board) || IS_STM32H5(board) ? CPN_MAX_GVARS : 9);
|
return id.contains("nogvars") ? 0 : (Boards::getCapability((Board::Type)board, Board::IsF4) ? 9 : CPN_MAX_GVARS);
|
||||||
case GvarsName:
|
case GvarsName:
|
||||||
return 3;
|
return 3;
|
||||||
case Haptic: // TODO remove with X9D
|
case Haptic: // TODO remove with X9D
|
||||||
@@ -189,7 +189,7 @@ int OpenTxFirmware::getCapability(::Capability capability)
|
|||||||
case SafetyChannelCustomFunction:
|
case SafetyChannelCustomFunction:
|
||||||
return id.contains("nooverridech") ? 0 : 1;
|
return id.contains("nooverridech") ? 0 : 1;
|
||||||
case Sensors:
|
case Sensors:
|
||||||
if (IS_STM32H7(board))
|
if (Boards::getCapability((Board::Type)board, Board::IsH7))
|
||||||
return CPN_MAX_SENSORS;
|
return CPN_MAX_SENSORS;
|
||||||
else if (IS_FAMILY_HORUS_OR_T16(board) || IS_TARANIS_X9(board))
|
else if (IS_FAMILY_HORUS_OR_T16(board) || IS_TARANIS_X9(board))
|
||||||
return 60;
|
return 60;
|
||||||
|
|||||||
@@ -94,14 +94,7 @@ ui(new Ui::GeneralSetup)
|
|||||||
ui->gpsFormatCB->setCurrentIndex(generalSettings.gpsFormat);
|
ui->gpsFormatCB->setCurrentIndex(generalSettings.gpsFormat);
|
||||||
ui->timezoneLE->setTime((generalSettings.timezone * 3600) + (generalSettings.timezoneMinutes/*quarter hours*/ * 15 * 60));
|
ui->timezoneLE->setTime((generalSettings.timezone * 3600) + (generalSettings.timezoneMinutes/*quarter hours*/ * 15 * 60));
|
||||||
ui->adjustRTC->setChecked(generalSettings.adjustRTC);
|
ui->adjustRTC->setChecked(generalSettings.adjustRTC);
|
||||||
|
ui->usbModeCB->setCurrentIndex(generalSettings.usbMode);
|
||||||
if (IS_STM32(board)) {
|
|
||||||
ui->usbModeCB->setCurrentIndex(generalSettings.usbMode);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ui->usbModeLabel->hide();
|
|
||||||
ui->usbModeCB->hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IS_FLYSKY_EL18(board) || IS_FLYSKY_NV14(board) || IS_FAMILY_PL18(board)) {
|
if (IS_FLYSKY_EL18(board) || IS_FLYSKY_NV14(board) || IS_FAMILY_PL18(board)) {
|
||||||
ui->hatsModeCB->setModel(panelFilteredModels->getItemModel(FIM_HATSMODE));
|
ui->hatsModeCB->setModel(panelFilteredModels->getItemModel(FIM_HATSMODE));
|
||||||
|
|||||||
@@ -85,26 +85,22 @@ CustomFunctionsPanel::CustomFunctionsPanel(QWidget * parent, ModelData * model,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_STM32(firmware->getBoard())) {
|
scriptsSet = getFilesSet(g.profile[g.id()].sdPath() + "/SCRIPTS/FUNCTIONS", QStringList() << "*.lua", firmware->getCapability(VoicesMaxLength));
|
||||||
scriptsSet = getFilesSet(g.profile[g.id()].sdPath() + "/SCRIPTS/FUNCTIONS", QStringList() << "*.lua", firmware->getCapability(VoicesMaxLength));
|
for (int i = 0; i < fswCapability; i++) {
|
||||||
for (int i = 0; i < fswCapability; i++) {
|
if (functions[i].func == FuncPlayScript) {
|
||||||
if (functions[i].func == FuncPlayScript) {
|
QString temp = functions[i].paramarm;
|
||||||
QString temp = functions[i].paramarm;
|
if (!temp.isEmpty()) {
|
||||||
if (!temp.isEmpty()) {
|
scriptsSet.insert(temp);
|
||||||
scriptsSet.insert(temp);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_STM32(firmware->getBoard())) {
|
scriptsSetRGB = getFilesSet(g.profile[g.id()].sdPath() + "/SCRIPTS/RGBLED", QStringList() << "*.lua", firmware->getCapability(VoicesMaxLength));
|
||||||
scriptsSetRGB = getFilesSet(g.profile[g.id()].sdPath() + "/SCRIPTS/RGBLED", QStringList() << "*.lua", firmware->getCapability(VoicesMaxLength));
|
for (int i = 0; i < fswCapability; i++) {
|
||||||
for (int i = 0; i < fswCapability; i++) {
|
if (functions[i].func == FuncRGBLed) {
|
||||||
if (functions[i].func == FuncRGBLed) {
|
QString temp = functions[i].paramarm;
|
||||||
QString temp = functions[i].paramarm;
|
if (!temp.isEmpty()) {
|
||||||
if (!temp.isEmpty()) {
|
scriptsSetRGB.insert(temp);
|
||||||
scriptsSetRGB.insert(temp);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,10 @@ string(CONCAT RADIO_NAME "RADIO_" ${RADIO_NAME})
|
|||||||
add_definitions(-D${RADIO_NAME})
|
add_definitions(-D${RADIO_NAME})
|
||||||
set(${RADIO_NAME} YES)
|
set(${RADIO_NAME} YES)
|
||||||
|
|
||||||
|
add_definitions(
|
||||||
|
-DCPU_TYPE=${CPU_TYPE} -DCPU_TYPE_FULL=${CPU_TYPE_FULL}
|
||||||
|
)
|
||||||
|
|
||||||
set(HW_DESC_JSON ${FLAVOUR}.json)
|
set(HW_DESC_JSON ${FLAVOUR}.json)
|
||||||
AddHardwareDefTarget(${HW_DESC_JSON})
|
AddHardwareDefTarget(${HW_DESC_JSON})
|
||||||
|
|
||||||
|
|||||||
@@ -326,6 +326,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -395,6 +395,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -275,6 +275,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -340,6 +340,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -434,6 +434,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -436,6 +436,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -255,6 +255,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -304,6 +304,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 1
|
"surface": 1,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,6 +167,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -340,6 +340,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -303,6 +303,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32H750xB",
|
||||||
|
"cpu_type": "STM32H7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -311,6 +311,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -355,6 +355,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -326,6 +326,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -289,6 +289,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -403,6 +403,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32H750xB",
|
||||||
|
"cpu_type": "STM32H7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -331,6 +331,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -289,6 +289,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -289,6 +289,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -369,6 +369,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -373,6 +373,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32H750xB",
|
||||||
|
"cpu_type": "STM32H7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -448,6 +448,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -450,6 +450,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -528,6 +528,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -528,6 +528,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -271,6 +271,8 @@
|
|||||||
"has_ext_module_support": 0,
|
"has_ext_module_support": 0,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -255,6 +255,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -361,6 +361,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -289,6 +289,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -389,6 +389,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -341,6 +341,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,6 +318,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -343,6 +343,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32H750xB",
|
||||||
|
"cpu_type": "STM32H7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -456,6 +456,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -457,6 +457,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32H750xB",
|
||||||
|
"cpu_type": "STM32H7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -352,6 +352,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -352,6 +352,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xG",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -454,6 +454,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -454,6 +454,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 250000,
|
"sport_max_baudrate": 250000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -454,6 +454,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 250000,
|
"sport_max_baudrate": 250000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -447,6 +447,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 250000,
|
"sport_max_baudrate": 250000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F429xI",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -321,6 +321,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 250000,
|
"sport_max_baudrate": 250000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -307,6 +307,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -374,6 +374,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 0,
|
"has_int_module_support": 0,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -362,6 +362,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 0,
|
"has_int_module_support": 0,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -363,6 +363,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 0,
|
"has_int_module_support": 0,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -566,6 +566,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 0,
|
"has_int_module_support": 0,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -266,6 +266,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 250000,
|
"sport_max_baudrate": 250000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -294,6 +294,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 250000,
|
"sport_max_baudrate": 250000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -272,6 +272,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 250000,
|
"sport_max_baudrate": 250000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -300,6 +300,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 250000,
|
"sport_max_baudrate": 250000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F205xE",
|
||||||
|
"cpu_type": "STM32F2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -342,6 +342,8 @@
|
|||||||
"has_ext_module_support": 1,
|
"has_ext_module_support": 1,
|
||||||
"has_int_module_support": 1,
|
"has_int_module_support": 1,
|
||||||
"sport_max_baudrate": 400000,
|
"sport_max_baudrate": 400000,
|
||||||
"surface": 0
|
"surface": 0,
|
||||||
|
"cpu": "STM32F407xE",
|
||||||
|
"cpu_type": "STM32F4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
|
|
||||||
class Misc:
|
class Misc:
|
||||||
|
|
||||||
def __init__(self, has_audio_mute, has_bling_leds, has_ext_module_support, has_int_module_support, sport_max_baudrate, surface):
|
def __init__(self, has_audio_mute, has_bling_leds, has_ext_module_support, has_int_module_support, sport_max_baudrate, surface, cpu, cpu_type):
|
||||||
self.has_audio_mute = has_audio_mute
|
self.has_audio_mute = has_audio_mute
|
||||||
self.has_bling_leds = has_bling_leds
|
self.has_bling_leds = has_bling_leds
|
||||||
self.has_ext_module_support = has_ext_module_support
|
self.has_ext_module_support = has_ext_module_support
|
||||||
self.has_int_module_support = has_int_module_support
|
self.has_int_module_support = has_int_module_support
|
||||||
self.sport_max_baudrate = sport_max_baudrate
|
self.sport_max_baudrate = sport_max_baudrate
|
||||||
self.surface = surface
|
self.surface = surface
|
||||||
|
self.cpu = cpu
|
||||||
|
self.cpu_type = cpu_type
|
||||||
|
|
||||||
def parse_misc(hw_defs):
|
def parse_misc(hw_defs):
|
||||||
|
|
||||||
@@ -41,4 +43,14 @@ def parse_misc(hw_defs):
|
|||||||
else:
|
else:
|
||||||
has_int_module_support = 1
|
has_int_module_support = 1
|
||||||
|
|
||||||
return Misc(has_audio_mute, has_bling_leds, has_ext_module_support, has_int_module_support, sport_max_baudrate, surface)
|
if f'CPU_TYPE_FULL' in hw_defs:
|
||||||
|
cpu = hw_defs[f'CPU_TYPE_FULL']
|
||||||
|
else:
|
||||||
|
cpu = f'Unknown'
|
||||||
|
|
||||||
|
if f'CPU_TYPE' in hw_defs:
|
||||||
|
cpu_type = hw_defs[f'CPU_TYPE']
|
||||||
|
else:
|
||||||
|
cpu_type = f'Unknown'
|
||||||
|
|
||||||
|
return Misc(has_audio_mute, has_bling_leds, has_ext_module_support, has_int_module_support, sport_max_baudrate, surface, cpu, cpu_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user