Struct teensy4_bsp::Peripherals [−][src]
pub struct Peripherals {Show 17 fields
pub adc: Unclocked,
pub iomuxc: Pads,
pub ccm: CCM,
pub pit: UnclockedPIT,
pub dcdc: DCDC,
pub pwm1: Unclocked<UInt<UTerm, B1>>,
pub pwm2: Unclocked<UInt<UInt<UTerm, B1>, B0>>,
pub pwm3: Unclocked<UInt<UInt<UTerm, B1>, B1>>,
pub pwm4: Unclocked<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>,
pub i2c: Unclocked,
pub uart: Unclocked,
pub spi: Unclocked,
pub gpt1: Unclocked,
pub gpt2: Unclocked,
pub dma: Unclocked,
pub srtc: Unclocked,
pub trng: Unclocked,
}
Fields
adc: Unclocked
iomuxc: Pads
ccm: CCM
pit: UnclockedPIT
dcdc: DCDC
pwm1: Unclocked<UInt<UTerm, B1>>
pwm2: Unclocked<UInt<UInt<UTerm, B1>, B0>>
pwm3: Unclocked<UInt<UInt<UTerm, B1>, B1>>
pwm4: Unclocked<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>
i2c: Unclocked
uart: Unclocked
spi: Unclocked
gpt1: Unclocked
gpt2: Unclocked
dma: Unclocked
srtc: Unclocked
trng: Unclocked
Implementations
Take the HAL’s peripherals
If the peripherals were already taken, take()
returns None
. Consider calling take()
near the start of your program.