mirror of https://github.com/kidoman/embd
add doc to exported functions
This commit is contained in:
parent
ea3cee04d8
commit
af70e0095f
1
gpio.go
1
gpio.go
|
@ -151,6 +151,7 @@ type GPIODriver interface {
|
|||
var gpioDriverInitialized bool
|
||||
var gpioDriverInstance GPIODriver
|
||||
|
||||
// SetGpioDriver should be used only for testing purpose.It makes possible to unit test embd gpio functionality
|
||||
func SetGpioDriver(drv GPIODriver, initialized bool) {
|
||||
gpioDriverInstance = drv
|
||||
gpioDriverInitialized = initialized
|
||||
|
|
1
i2c.go
1
i2c.go
|
@ -43,6 +43,7 @@ type I2CDriver interface {
|
|||
var i2cDriverInitialized bool
|
||||
var i2cDriverInstance I2CDriver
|
||||
|
||||
// SetI2cDriver should be used only for testing purpose.It makes possible to unit test embd i2c functionality
|
||||
func SetI2cDriver(drv I2CDriver, initialized bool) {
|
||||
i2cDriverInstance = drv
|
||||
i2cDriverInitialized = initialized
|
||||
|
|
Loading…
Reference in New Issue