EIVE upstream #29

Merged
muellerr merged 693 commits from use-eive-upstream into develop 2023-06-30 15:44:39 +02:00
Showing only changes of commit 9a0cc64be3 - Show all commits

View File

@ -31,8 +31,7 @@ void uart::setBaudrate(struct termios& options, UartBaudRate baud) {
cfsetspeed(&options, B150); cfsetspeed(&options, B150);
break; break;
case UartBaudRate::RATE_200: case UartBaudRate::RATE_200:
cfsetispeed(&options, B200); cfsetspeed(&options, B200);
cfsetospeed(&options, B200);
break; break;
case UartBaudRate::RATE_300: case UartBaudRate::RATE_300:
cfsetspeed(&options, B300); cfsetspeed(&options, B300);
@ -53,8 +52,7 @@ void uart::setBaudrate(struct termios& options, UartBaudRate baud) {
cfsetspeed(&options, B4800); cfsetspeed(&options, B4800);
break; break;
case UartBaudRate::RATE_9600: case UartBaudRate::RATE_9600:
cfsetispeed(&options, B9600); cfsetspeed(&options, B9600);
cfsetospeed(&options, B9600);
break; break;
case UartBaudRate::RATE_19200: case UartBaudRate::RATE_19200:
cfsetspeed(&options, B19200); cfsetspeed(&options, B19200);
@ -79,8 +77,7 @@ void uart::setBaudrate(struct termios& options, UartBaudRate baud) {
cfsetspeed(&options, B500000); cfsetspeed(&options, B500000);
break; break;
case UartBaudRate::RATE_576000: case UartBaudRate::RATE_576000:
cfsetispeed(&options, B576000); cfsetspeed(&options, B576000);
cfsetospeed(&options, B576000);
break; break;
case UartBaudRate::RATE_921600: case UartBaudRate::RATE_921600:
cfsetspeed(&options, B921600); cfsetspeed(&options, B921600);
@ -101,8 +98,7 @@ void uart::setBaudrate(struct termios& options, UartBaudRate baud) {
cfsetspeed(&options, B2500000); cfsetspeed(&options, B2500000);
break; break;
case UartBaudRate::RATE_3000000: case UartBaudRate::RATE_3000000:
cfsetispeed(&options, B3000000); cfsetspeed(&options, B3000000);
cfsetospeed(&options, B3000000);
break; break;
case UartBaudRate::RATE_3500000: case UartBaudRate::RATE_3500000:
cfsetspeed(&options, B3500000); cfsetspeed(&options, B3500000);