mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-13 19:33:39 +00:00
Add network device driver model, netdev
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package rtl8720dn
|
||||
|
||||
type debug uint8
|
||||
|
||||
const (
|
||||
debugBasic debug = 1 << iota // show fw version, mac addr, etc
|
||||
debugNetdev // show netdev entry points
|
||||
debugRpc // show rtl8720dn cmds
|
||||
|
||||
debugOff = 0
|
||||
debugAll = debugBasic | debugNetdev | debugRpc
|
||||
)
|
||||
|
||||
func debugging(want debug) bool {
|
||||
return (_debug & want) != 0
|
||||
}
|
||||
Reference in New Issue
Block a user