#raspberry-pi #pac #bcm2837

no-std bcm2837-lpa

Peripheral access crate for BCM2837 found in the Raspberry Pi 3 and Zero 2W

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

#435 in Embedded development

Download history 4/week @ 2024-11-02 7/week @ 2024-12-07 1/week @ 2024-12-14 1/week @ 2024-12-28 93/week @ 2025-01-18 10/week @ 2025-01-25 11/week @ 2025-02-01

114 downloads per month

Unlicense

2MB
47K SLoC

bcm2837-lpa

crates.io docs.rs

Peripheral access crate for BCM2837 found in the Raspberry Pi 3 and Zero 2W.

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