18 #if CONFIG_HAL_BOARD == HAL_BOARD_SITL    22 #if defined(__CYGWIN__) || defined(__CYGWIN64__) || defined(__APPLE__)    29 #include <asm/termbits.h>    35 #include <sys/types.h>    45     cfsetspeed(&t, speed);
    46     tcsetattr(
_fd, TCSANOW, &t);
    49     memset(&tc, 0, 
sizeof(tc));
    50     if (ioctl(
_fd, TCGETS2, &tc) == -1) {
    59     if (ioctl(
_fd, TCSETS2, &tc) == -1) {
    62     if (ioctl(
_fd, TCFLSH, TCIOFLUSH) == -1) {
    81     memset(&t, 0, 
sizeof(t));
    82     if (ioctl(
_fd, TCGETS2, &t) == -1) {
   101     tcsetattr(
_fd, TCSANOW, &t);
   103     ioctl(
_fd, TCSETS2, &t);
   118     memset(&t, 0, 
sizeof(t));
   119     if (ioctl(
_fd, TCGETS2, &t) == -1) {
   127         t.c_cflag &= ~CSTOPB;
   131     tcsetattr(
_fd, TCSANOW, &t);
   133     ioctl(
_fd, TCSETS2, &t);
 
bool set_speed(int speed)
 
void configure_parity(uint8_t v) override
 
void set_stop_bits(int n) override