Crate riscv_peripheral

source ·
Expand description

Standard RISC-V peripherals for embedded systems written in Rust.

§Features

  • aclint-hal-async: enables the hal_async::delay::DelayNs implementation for the ACLINT peripheral. This feature relies on external functions that must be provided by the user. See hal_async::aclint for more information.

Re-exports§

Modules§

  • Devices for the Core Local Interruptor (CLINT) and Advanced CLINT (ACLINT) peripherals.
  • Common definitions for all the peripheral registers.
  • trait implementations for embedded-hal
  • async trait implementations for embedded-hal
  • Utility macros for generating standard peripherals-related code in RISC-V PACs.
  • Platform-Level Interrupt Controller (PLIC) peripheral.

Macros§

  • Macro to create interfaces to CLINT peripherals in PACs. The resulting struct will be named CLINT, and will provide safe access to the CLINT registers.
  • Macro to create interfaces to PLIC peripherals in PACs.