mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-19 22:23:58 +00:00
Add network device driver model, netdev
This commit is contained in:
+15
-3
@@ -1,5 +1,17 @@
|
||||
//go:build wifidebug
|
||||
|
||||
package wifinina
|
||||
|
||||
var _debug = true
|
||||
type debug uint8
|
||||
|
||||
const (
|
||||
debugBasic debug = 1 << iota // show fw version, mac addr, etc
|
||||
debugNetdev // show netdev entry points
|
||||
debugCmd // show non-chatty wifinina cmds
|
||||
debugDetail // show chatty wifinina cmds
|
||||
|
||||
debugOff = 0
|
||||
debugAll = debugBasic | debugNetdev | debugCmd | debugDetail
|
||||
)
|
||||
|
||||
func debugging(want debug) bool {
|
||||
return (_debug & want) != 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user