Expand description
§HAL for the AMD Zynq 7000 SoC family
This repository contains the Hardware Abstraction Layer (HAL), which is an additional hardware abstraction on top of the peripheral access API.
It is the result of reading the datasheet for the device and encoding a type-safe layer over the raw PAC. This crate also implements traits specified by the embedded-hal project, making it compatible with various drivers in the embedded rust ecosystem.
§Examples
All exaples can be found inside the examples folder of the project
Re-exports§
pub use zynq7000 as pac;
Modules§
- cache
- Cache management module
- clocks
- Clock module
- ddr
- DDR module
- devcfg
- Device Configuration Module
- eth
- Ethernet module
- gic
- Global Interrupt Controller (GIC) module
- gpio
- GPIO module
- gtc
- Global timer counter driver module
- i2c
- I2C module
- l2_
cache - L2 cache module
- log
- Simple logging providers
- prelude
- Prelude
- priv_
tim - CPU private timer module
- qspi
- QSPI module
- slcr
- System Level Control Register (SLCR) module
- spi
- SPI module
- time
- Time units
- ttc
- Triple-timer counter (TTC) high-level driver
- uart
- UART module
Structs§
Enums§
- Boot
Device - This enumeration encodes the various boot sources.
- Init
Error - Interupt
Config - Level
Shifter Config - Periph
Select
Functions§
- configure_
level_ shifter - This configures the level shifters between the programmable logic (PL) and the processing system (PS).
- disable_
amba_ periph_ clk - Disable the AMBA peripheral clock, which is required to read the registers of a peripheral block.
- enable_
amba_ peripheral_ clock - Enable the AMBA peripheral clock, which is required to read the registers of a peripheral block.
- init
- Utility function to perform common initialization steps.