 
     public func configure(_ cfg: inout termios) {
         switch self {
+        case .S2400:
+            cfsetispeed(&cfg, speed_t(B2400))
+            cfsetospeed(&cfg, speed_t(B2400))
+        case .S4800:
+            cfsetispeed(&cfg, speed_t(B4800))
+            cfsetospeed(&cfg, speed_t(B4800))
         case .S9600:
             cfsetispeed(&cfg, speed_t(B9600))
             cfsetospeed(&cfg, speed_t(B9600))

}

public enum UARTSpeed {
    case S9600
    case S19200
    case S38400

        case .RaspberryPiPlusZero:
            fallthrough
        case .RaspberryPi2:
            return [SysFSUART("serial0")!]
        case .RaspberryPi3:
            return [SysFSUART("serial0")!,
                    SysFSUART("serial1")!]
        default:
            return nil
        }
