Crate pico_xs

Crate pico_xs 

Source
Expand description

§Pico XS - Hardware Abstraction Layer (HAL) for the RP2040

Pico XS provides a low-level abstraction over the RP2040 microcontroller, facilitating bare-metal programming with Rust. This HAL includes initial boot configurations, setup and management of peripherals.

§Features

  • Completely Independent: From the bootloader to peripherals and protocols, everything is designed from the ground up to be self-contained, ensuring full control without reliance on external software.
  • Minimalistic: Simple and lightweight abstractions; facilitating direct and portable access to the underlying hardware code.

§Example

cargo run –example blinky

§Usage

Include pico_xs in your Cargo.toml and refer to the example code for initial setup and usage.

Modules§

gpio
GPIO module for general-purpose input/output functionalities. Provides GPIO (General Purpose Input/Output) functionalities for the RP2040 microcontroller.
registers
Hardware register modules, providing low-level access to system registers.
vector_table
Interrupt vector handling for the RP2040.
xs
Extended support and utility functions.

Statics§

BOOT2_FIRMWARE

Functions§

clear_spinlocks
Clears all hardware spinlocks at a predefined base address, ensuring that all peripherals are accessible and not locked by default.
entry
System entry point, called on by the reset handler on microcontroller reset. Initializes hardware by clearing spinlocks and jumping to the user-defined main function.
main