bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
617 stars 188 forks source link

Add NetBSD support #178

Open picohive opened 3 months ago

picohive commented 3 months ago

Test with arduino-cli 0.35.3:

picohive: {/home/rxg} uname -a NetBSD picohive 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64 picohive: {/home/rxg} arduino-cli board list Port Protocol Type Board Name FQBN Core /dev/dty00 serial Serial Port Unknown /dev/dty01 serial Serial Port Unknown /dev/dty02 serial Serial Port Unknown /dev/dty03 serial Serial Port Unknown /dev/dtyU0 serial Serial Port (USB) Unknown /dev/dtyU1 serial Serial Port (USB) Unknown /dev/dtyU2 serial Serial Port (USB) Unknown /dev/dtyU3 serial Serial Port (USB) Unknown /dev/dtyU4 serial Serial Port (USB) Unknown /dev/dtyU5 serial Serial Port (USB) Unknown /dev/dtyU6 serial Serial Port (USB) Unknown /dev/dtyU7 serial Serial Port (USB) Unknown /dev/tty00 serial Serial Port Unknown /dev/tty01 serial Serial Port Unknown /dev/tty02 serial Serial Port Unknown /dev/tty03 serial Serial Port Unknown /dev/ttyU0 serial Serial Port (USB) Unknown /dev/ttyU1 serial Serial Port (USB) Unknown /dev/ttyU2 serial Serial Port (USB) Unknown /dev/ttyU3 serial Serial Port (USB) Unknown /dev/ttyU4 serial Serial Port (USB) Unknown /dev/ttyU5 serial Serial Port (USB) Unknown /dev/ttyU6 serial Serial Port (USB) Unknown /dev/ttyU7 serial Serial Port (USB) Unknown

picohive: {/home/rxg} arduino-cli monitor -p /dev/ttyU0 -c baudrate=115200 Monitor port settings: baudrate=115200 Connected to /dev/ttyU0! Press CTRL-C to exit. Bpm:0,SPO2:90.00 Bpm:0,SPO2:90.00 Bpm:0,SPO2:90.00