Registry / embedded / rp2040-hal

rp2040-hal

JSON →
library0.12.0rscratesunverified

Provides a Rust Embedded-HAL implementation for the RP2040 microcontroller used in Raspberry Pi Pico.

# Cargo.toml [dependencies] rp2040-hal = "0.12.0"
INSTALL
IMPORT
SIG · RP2040-HAL
R
rp2040-hal
embeddedrustv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pac
use rp2040_hal::pac;

Access RP2040 peripherals using the HAL.

use rp2040_hal::pac; fn main() -> ! { let mut peripherals = pac::Peripherals::take().unwrap(); loop {} }
Debug
Known issues
gotchaRequires specific target and linker script for RP2040.
fix
Use the correct target (thumbv6m-none-eabi) and include memory.x linker script.
affects: >=0.12.0
Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
Resources
rp2040-hal — cargo add rp2040-hal · libregistry