sungrow/vendor/github.com/goburrow/serial/termios_linux.go

16 lines
253 B
Go
Raw Normal View History

2021-01-10 15:20:11 +11:00
// +build !mips,!mipsle,!mips64,!mips64le
package serial
import (
"syscall"
)
func cfSetIspeed(termios *syscall.Termios, speed uint32) {
termios.Ispeed = speed
}
func cfSetOspeed(termios *syscall.Termios, speed uint32) {
termios.Ospeed = speed
}