#raspberry-pi #pac #bcm2835

no-std bcm2835-lpa

Peripheral access crate for BCM2835 found in the Raspberry Pi 1 and Zero

7 releases (4 breaking)

0.5.0 Jan 21, 2025
0.4.0 Dec 31, 2023
0.3.0 Nov 24, 2023
0.2.2 Nov 20, 2023
0.1.0 Mar 18, 2023

#229 in Embedded development

Download history 1/week @ 2024-10-29 1/week @ 2024-12-03 9/week @ 2024-12-10 102/week @ 2025-01-21 4/week @ 2025-01-28 16/week @ 2025-02-04

122 downloads per month

Unlicense

2MB
47K SLoC

bcm2835-lpa

crates.io docs.rs

Peripheral access crate for BCM2835 found in the Raspberry Pi 1 and Zero.

This PAC is generated by svd2rust from the SVD file in adafruit/broadcom-peripherals@d3a6b50. save that a patch is applied to add the missing tags required by svd2rust.

A Note on Virtual Memory

This PAC expects the memory-mapped registers of the peripherals to be present on their physical addresses; therefore, this PAC integrates poorly with virtual memory. If the register files are offset-mapped to a different base address, it is advised to generate the PAC by yourself from our patched SVD file and using the --base-address-shift option of svd2rust. See the repository-level README for more information on generating PACs.

Feature Flags

  • atomic: Extends the register API with operations to atomically set, clear, and toggle specific bits.
  • defmt: Include defmt::Format implementations.

Dependencies

~6–440KB