Crate zynq7000_hal

Crate zynq7000_hal 

Source
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§

BootMode
Config

Enums§

BootDevice
This enumeration encodes the various boot sources.
InitError
InteruptConfig
LevelShifterConfig
PeriphSelect

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.