16 lines
244 B
Go
16 lines
244 B
Go
|
// +build freebsd openbsd netbsd
|
||
|
|
||
|
package serial
|
||
|
|
||
|
import (
|
||
|
"syscall"
|
||
|
)
|
||
|
|
||
|
func cfSetIspeed(termios *syscall.Termios, speed uint32) {
|
||
|
termios.Ispeed = speed
|
||
|
}
|
||
|
|
||
|
func cfSetOspeed(termios *syscall.Termios, speed uint32) {
|
||
|
termios.Ospeed = speed
|
||
|
}
|