Documentation ¶
Overview ¶
Package gpio implements helpers for GPIO configuration on NXP SoCs.
This package is only meant to be used with `GOOS=tamago GOARCH=arm` as supported by the TamaGo framework for bare metal Go on ARM SoCs, see https://github.com/usbarmory/tamago.
Index ¶
Constants ¶
View Source
const ( GPIO_DR = 0x00 GPIO_GDIR = 0x04 )
GPIO registers
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPIO ¶
type GPIO struct { // Controller index Index int // Base register Base uint32 // Clock gate register CCGR uint32 // Clock gate CG int // contains filtered or unexported fields }
GPIO controller instance
Click to show internal directories.
Click to hide internal directories.