mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-02 22:17:49 +00:00
06dd60fba2
* Add wifi driver comboat for Elecrow W5 rp2040 and rp2350 devices Combo-AT driver uses AT command set to talk to onboard rtl8720d wifi device. The driver supports UDP/TCP/TLS clients in Wifi STA mode. Support for UDP/TCP servers is not supported, currently. https://aithinker-combo-guide.readthedocs.io/en/latest/docs/instruction/index.html https://aithinker-combo-guide.readthedocs.io/en/latest/docs/command-set/index.html https://aithinker-combo-guide.readthedocs.io/en/latest/docs/command-examples/index.html * Add wifi driver comboat for Elecrow W5 rp2040 and rp2350 devices Combo-AT driver uses AT command set to talk to onboard rtl8720d wifi device. The driver supports UDP/TCP/TLS clients in Wifi STA mode. Support for UDP/TCP servers is not supported, currently. https://aithinker-combo-guide.readthedocs.io/en/latest/docs/instruction/index.html https://aithinker-combo-guide.readthedocs.io/en/latest/docs/command-set/index.html https://aithinker-combo-guide.readthedocs.io/en/latest/docs/command-examples/index.html * switch to comboat_fw build tag for examples/net's that work with comboat driver
27 lines
436 B
Go
27 lines
436 B
Go
//go:build comboat_fw
|
|
|
|
package probe
|
|
|
|
import (
|
|
"machine"
|
|
|
|
"tinygo.org/x/drivers/comboat"
|
|
"tinygo.org/x/drivers/netdev"
|
|
"tinygo.org/x/drivers/netlink"
|
|
)
|
|
|
|
func Probe() (netlink.Netlinker, netdev.Netdever) {
|
|
|
|
cfg := comboat.Config{
|
|
BaudRate: 115200,
|
|
Uart: machine.UART1,
|
|
Tx: machine.UART1_TX_PIN,
|
|
Rx: machine.UART1_RX_PIN,
|
|
}
|
|
|
|
combo := comboat.NewDevice(&cfg)
|
|
netdev.UseNetdev(combo)
|
|
|
|
return combo, combo
|
|
}
|