Module rp2040_hal::sio

source ·
Expand description

Single Cycle Input and Output (SIO)

To be able to partition parts of the SIO block to other modules:

use rp2040_hal::{gpio::Pins, pac, sio::Sio};

let mut peripherals = pac::Peripherals::take().unwrap();
let sio = Sio::new(peripherals.SIO);

And then for example

let pins = Pins::new(peripherals.IO_BANK0, peripherals.PADS_BANK0, sio.gpio_bank0, &mut peripherals.RESETS);

Structs§

Enums§

Traits§

  • Trait representing the functionality of an interpolator.
  • Trait representing the functionality of a single lane of an interpolator.
  • This type is just used to limit us to Spinlocks 0..=31

Functions§

  • Free all spinlocks, regardless of their current status
  • Returns the current state of the spinlocks. Each index corresponds to the associated spinlock, e.g. if index 5 is set to true, it means that Spinlock5 is currently locked.

Type Aliases§