Documentation ¶
Overview ¶
Package iomuxc implements helpers for IOMUX 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 ( SW_PAD_CTL_HYS = 16 SW_PAD_CTL_PUS = 14 SW_PAD_CTL_PUS_PULL_DOWN_100K = 0b00 SW_PAD_CTL_PUS_PULL_UP_47K = 0b01 SW_PAD_CTL_PUS_PULL_UP_100K = 0b10 SW_PAD_CTL_PUS_PULL_UP_22K = 0b11 SW_PAD_CTL_PUE = 13 SW_PAD_CTL_PKE = 12 SW_PAD_CTL_ODE = 11 SW_PAD_CTL_SPEED = 6 SW_PAD_CTL_SPEED_50MHZ = 0b00 SW_PAD_CTL_SPEED_100MHZ = 0b10 SW_PAD_CTL_SPEED_200MHZ = 0b11 SW_PAD_CTL_DSE = 3 SW_PAD_CTL_DSE_OUTPUT_DRIVER_DISABLED = 0b000 SW_PAD_CTL_DSE_2_R0_2 = 0b010 SW_PAD_CTL_DSE_2_R0_3 = 0b011 SW_PAD_CTL_DSE_2_R0_4 = 0b100 SW_PAD_CTL_DSE_2_R0_5 = 0b101 SW_PAD_CTL_DSE_2_R0_6 = 0b110 SW_PAD_CTL_DSE_2_R0_7 = 0b111 SW_PAD_CTL_SRE = 0 SW_MUX_CTL_SION = 4 SW_MUX_CTL_MUX_MODE = 0 )
IOMUXC registers
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pad ¶
type Pad struct { // Mux register (e.g. IOMUXC_SW_MUX_CTL_PAD_*) Mux uint32 // Pad register (e.g. IOMUXC_SW_PAD_CTL_PAD_*) Pad uint32 // Daisy register (e.g. IOMUXC_*_SELECT_INPUT) Daisy uint32 }
Pad instance.
func (*Pad) SoftwareInput ¶
SoftwareInput configures the pad SION bit.
Click to show internal directories.
Click to hide internal directories.