diff --git a/host/bbb/data.go b/host/bbb/data.go index ce394c6..d8930c5 100644 --- a/host/bbb/data.go +++ b/host/bbb/data.go @@ -4,7 +4,7 @@ import ( "github.com/kidoman/embd/host/generic/linux/gpio" ) -var Pins = gpio.PinMap{ +var pins = gpio.PinMap{ &gpio.PinDesc{66, []string{"P8_07", "GPIO_66", "TIMER4"}, gpio.Normal | gpio.GPMC}, &gpio.PinDesc{67, []string{"P8_08", "GPIO_67", "TIMER7"}, gpio.Normal | gpio.GPMC}, &gpio.PinDesc{69, []string{"P8_09", "GPIO_69", "TIMER5"}, gpio.Normal | gpio.GPMC}, diff --git a/host/bbb/descriptor.go b/host/bbb/descriptor.go index 188c5e3..a7261f5 100644 --- a/host/bbb/descriptor.go +++ b/host/bbb/descriptor.go @@ -11,7 +11,7 @@ type descriptor struct { } func (d *descriptor) GPIO() gpio.GPIO { - return lgpio.New(Pins) + return lgpio.New(pins) } func (d *descriptor) I2C() i2c.I2C {