mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
21 lines
475 B
Go
21 lines
475 B
Go
//go:build !linux && !darwin && !windows
|
|
|
|
package hardwaretools
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func serialListPorts() ([]serialPortInfo, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func serialRead(cfg serialConfig, length int, timeout time.Duration) ([]byte, error) {
|
|
return nil, fmt.Errorf("serial is not supported on this platform")
|
|
}
|
|
|
|
func serialWrite(cfg serialConfig, data []byte, timeout time.Duration) (int, error) {
|
|
return 0, fmt.Errorf("serial is not supported on this platform")
|
|
}
|