24 lines
604 B
C
24 lines
604 B
C
//
|
|
// Created by CFIF on 13.11.22.
|
|
//
|
|
|
|
#ifndef UVEOS_ON_NATION_SERIALPORTP2P_H
|
|
#define UVEOS_ON_NATION_SERIALPORTP2P_H
|
|
|
|
#include <cmsis_os.h>
|
|
#include <SerialPortIO.h>
|
|
#include <SystemDelayInterface.h>
|
|
|
|
typedef struct {
|
|
osMessageQueueId_t firstToSecondQueue;
|
|
osMessageQueueId_t secondToFirstQueue;
|
|
} tSerialPortP2p;
|
|
|
|
void SerialPortP2p_Init(tSerialPortP2p *env, uint16_t firstToSecondBufferLen, uint16_t secondToFirstBufferLen);
|
|
|
|
tSerialPortIO SerialPortP2p_GetIoFirst(tSerialPortP2p *env);
|
|
|
|
tSerialPortIO SerialPortP2p_GetIoSecond(tSerialPortP2p *env);
|
|
|
|
#endif //UVEOS_ON_NATION_SERIALPORTP2P_H
|