Module rtc_io

Source
Available on crate feature unstable only.
Expand description

RTC IO

§Overview

The hardware provides a couple of GPIO pins with low power (LP) capabilities and analog functions.

§Configuration

These pins can be controlled by either IO MUX or RTC IO.

If controlled by RTC IO, these pins will bypass IO MUX and GPIO matrix for the use by ULP and peripherals in RTC system.

When configured as RTC GPIOs, the pins can still be controlled by ULP or the peripherals in RTC system during chip Deep-sleep, and wake up the chip from Deep-sleep.

§Examples

§Configure a ULP Pin as Output

// configure GPIO 1 as ULP output pin
let lp_pin = LowPowerOutput::<'static, 1>::new(peripherals.GPIO1);

Structs§

LowPowerInput
A GPIO input pin configured for low power operation
LowPowerOutput
A GPIO output pin configured for low power operation
LowPowerOutputOpenDrain
A GPIO open-drain output pin configured for low power operation