Изменения на новые настройки пинов и устройств
This commit is contained in:
parent
ec61abc208
commit
e20766eec0
|
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue