Начало
This commit is contained in:
parent
7cd34e0d9e
commit
716b9df410
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
tSerialPorts SERIAL_PORTS;
|
||||
|
||||
uint8_t buf_USART3_DMA[3200];
|
||||
uint8_t buf_USART3_DMA[256];
|
||||
|
||||
// IDLE прерывание
|
||||
void USART3_IRQHandler() {
|
||||
|
|
@ -44,7 +44,7 @@ static void vSerialPort_InitUSART3(tSerialPortArtery *env) {
|
|||
1, 3, 1, 4,
|
||||
false, 0xFF,
|
||||
buf_USART3_DMA, sizeof(buf_USART3_DMA),
|
||||
3200, 3200
|
||||
256, 256
|
||||
);
|
||||
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@ static void vSerialPort_InitUSART3(tSerialPortArtery *env) {
|
|||
|
||||
|
||||
|
||||
uint8_t buf_USART5_DMA[3200];
|
||||
uint8_t buf_USART5_DMA[256];
|
||||
|
||||
// IDLE прерывание
|
||||
void UART5_IRQHandler() {
|
||||
|
|
@ -98,7 +98,7 @@ static void vSerialPort_InitUSART5(tSerialPortArtery *env) {
|
|||
1, 1, 1, 2,
|
||||
false, 0xFF,
|
||||
buf_USART5_DMA, sizeof(buf_USART5_DMA),
|
||||
3200, 3200
|
||||
256, 256
|
||||
);
|
||||
|
||||
}
|
||||
|
|
@ -498,7 +498,7 @@ void SerialPorts_Init(tRs485DirectionPins *directionPins) {
|
|||
vSerialPort_InitUSART6(&env->ComInt);
|
||||
SERIAL_PORTS.ComIntIO = vSerialPortGetIo(&SERIAL_PORTS.ComInt);
|
||||
*/
|
||||
SerialPortP2p_Init(&env->cliVirtualPort, 5 * 1024, 1024);
|
||||
SerialPortP2p_Init(&env->cliVirtualPort, 1024, 1024);
|
||||
env->cliVirtualInIo = SerialPortP2p_GetIoFirst(&env->cliVirtualPort);
|
||||
env->cliVirtualOutIo = SerialPortP2p_GetIoSecond(&env->cliVirtualPort);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue