abt8601 / raspi-pacs

Peripheral access crates for the Broadcom microprocessors used in the Raspberry Pi boards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raspi-pacs

crates.io docs.rs

crates.io docs.rs

crates.io docs.rs

Peripheral access crates for the Broadcom microprocessors used in the Raspberry Pi boards.

This repository contains the PACs for the following MCUs:

These crates are generated by svd2rust from the SVD files in abt8601/broadcom-peripherals, which are based on those in adafruit/broadcom-peripherals. (The SVD files in these two repositories are identical, save that those in the former has the missing tags required by svd2rust.)

Generating the Crates

Prerequisites

  • Rust toolchain with cargo and rustfmt
  • svd2rust
  • form (≥ 0.11 is required for the generated crates to be compilable on Windows.)

Also, the submodule peripherals must be checked out.

Generating

To generate the PAC for a particular MCU, run:

./gen.sh <mcu_name>

where <mcu_name> is one of bcm2835, bcm2837, or bcm2711.

About

Peripheral access crates for the Broadcom microprocessors used in the Raspberry Pi boards

License:The Unlicense


Languages

Language:Rust 100.0%Language:Shell 0.0%