Обновление
This commit is contained in:
parent
29a4da8f0a
commit
31a2da39eb
|
|
@ -2,6 +2,7 @@
|
|||
// Created by CFIF on 25.03.24.
|
||||
//
|
||||
#include "SerialPorts.h"
|
||||
#include "CanPorts.h"
|
||||
|
||||
tSerialPorts SERIAL_PORTS;
|
||||
|
||||
|
|
@ -130,6 +131,17 @@ void SerialPorts_Init() {
|
|||
SerialPortP2p_Init(&env->cliVirtualPort, 3 * 1024, 1024);
|
||||
env->cliVirtualInIo = SerialPortP2p_GetIoFirst(&env->cliVirtualPort);
|
||||
env->cliVirtualOutIo = SerialPortP2p_GetIoSecond(&env->cliVirtualPort);
|
||||
|
||||
|
||||
tCanPorts *envCan = &CAN_PORTS;
|
||||
|
||||
vSerialPortCanInit(&env->serialPortCan,
|
||||
&envCan->Can0_IO,
|
||||
0x77,
|
||||
256);
|
||||
|
||||
env->serialPortCanIO = vSerialPortCanGetIo(&env->serialPortCan);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,12 +7,16 @@
|
|||
|
||||
#include "SerialPortFlagchip.h"
|
||||
#include "SerialPortP2p.h"
|
||||
#include "SerialPortCan.h"
|
||||
|
||||
typedef struct {
|
||||
tSerialPortFlagchip Lin;
|
||||
tSerialPortIO Lin_IO;
|
||||
tSerialPortIO Lin_snif_IO;
|
||||
|
||||
tSerialPortCan serialPortCan;
|
||||
tSerialPortIO serialPortCanIO;
|
||||
|
||||
tSerialPortP2p cliVirtualPort;
|
||||
tSerialPortIO cliVirtualInIo;
|
||||
tSerialPortIO cliVirtualOutIo;
|
||||
|
|
|
|||
Loading…
Reference in New Issue