tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
599 stars 188 forks source link

rtl8720dn: add Rpc_tcpip_adapter_init_with_timeout() #445

Open sago35 opened 2 years ago

sago35 commented 2 years ago

For example, if the firmware of the RTL8720 is out of date, no response will be returned. This PR defines functions that can time out in such cases.

The reason for not updating Rpc_tcpip_adapter_init directly is that Rpc_tcpip_adapter_init is automatically generated.

scottfeldman commented 7 months ago

An alternative to this PR would be to check the fw version before calling tcpip_adapter_init(), and error out if fw version is too old. I confirmed we can get fw version before calling tcpip_adapter_init(). Current fw version I have on my wioterminal is:

RTL8720 firmware version : 2.1.2