Изменения на новые настройки пинов и устройств

This commit is contained in:
cfif 2025-05-28 15:16:06 +03:00
parent ec61abc208
commit e20766eec0
2 changed files with 5 additions and 2 deletions

View File

@ -52,6 +52,7 @@ void ComInt_Init(
// tDeviceStorage *store, // tDeviceStorage *store,
// tDeviceTestsTable *tests, // tDeviceTestsTable *tests,
tSerialPortIO *gsmIo, tSerialPortIO *gsmIo,
tSerialPortIO *gnssIo,
tSerialPortIO *cliIo, tSerialPortIO *cliIo,
tStringLink *currentModeName tStringLink *currentModeName
); );

View File

@ -49,9 +49,10 @@ static void ComIntInitVersions(tComInt *env, tString16 *deviceId) {
); );
} }
static void ComIntInitSerialBridges(tComInt *env, tSerialPortIO *gsmIo, tSerialPortIO *cliIo) { static void ComIntInitSerialBridges(tComInt *env, tSerialPortIO *gsmIo, tSerialPortIO *gnssIo, tSerialPortIO *cliIo) {
SerialBridges_InitStatic(&env->serialBridges, env->memAlloc.serialBridge); SerialBridges_InitStatic(&env->serialBridges, env->memAlloc.serialBridge);
SerialBridges_AddStatic(&env->serialBridges, "AT_GSM", gsmIo); SerialBridges_AddStatic(&env->serialBridges, "AT_GSM", gsmIo);
SerialBridges_AddStatic(&env->serialBridges, "GNSS", gnssIo);
SerialBridges_AddStatic(&env->serialBridges, "CLI", cliIo); SerialBridges_AddStatic(&env->serialBridges, "CLI", cliIo);
} }
@ -61,6 +62,7 @@ void ComInt_Init(
// tDeviceStorage *store, // tDeviceStorage *store,
// tDeviceTestsTable *tests, // tDeviceTestsTable *tests,
tSerialPortIO *gsmIo, tSerialPortIO *gsmIo,
tSerialPortIO *gnssIo,
tSerialPortIO *cliIo, tSerialPortIO *cliIo,
tStringLink *currentModeName tStringLink *currentModeName
) { ) {
@ -71,7 +73,7 @@ void ComInt_Init(
if (gsmIo != NULL) if (gsmIo != NULL)
ComIntInitSerialBridges(env, gsmIo, cliIo); ComIntInitSerialBridges(env, gsmIo, gnssIo, cliIo);
//Добавляем обработчики комманд //Добавляем обработчики комманд
XfcProtMethodsAdd_Mandatory(&env->table, &env->ping, &env->table); XfcProtMethodsAdd_Mandatory(&env->table, &env->ping, &env->table);