smaller tweaks and docs API unification #16

Merged
muellerr merged 1 commits from smaller-updates into main 2025-10-09 10:58:18 +02:00
17 changed files with 19 additions and 8 deletions

View File

@@ -111,7 +111,8 @@ target = "armv7a-none-eabihf"
You can build the blinky example app using
```sh
cargo build --example simple
cd zynq
cargo build --bin blinky
```

View File

@@ -1,4 +1,4 @@
//! # Zynq7000 Memory Management Unit (MMU)
//! # Zynq7000 Memory Management Unit (MMU)
//!
//! Dedicated shared crate for Zynq7000 MMU abstractions which can be used by Zynq
//! runtime crates, PACs and HALs.

View File

@@ -725,6 +725,7 @@ pub mod regs {
use regs::*;
/// DDR controller register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct DdrController {

View File

@@ -257,6 +257,7 @@ pub struct Status {
efuse_jtag_disabled: bool,
}
/// Device configuration register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct DevCfg {

View File

@@ -418,7 +418,7 @@ pub struct MatchRegister {
type_id: u16,
}
/// Gigabit Ethernet Controller (GEM) registers for Zynq-7000
/// Gigabit Ethernet Controller (GEM) register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct Ethernet {
@@ -477,7 +477,7 @@ pub struct Ethernet {
static_assertions::const_assert_eq!(core::mem::size_of::<Ethernet>(), 0x294);
/// GEM statistics registers
/// Ethernet statistics registers
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct Statistics {

View File

@@ -35,6 +35,7 @@ pub struct BankControl {
int_any: u32,
}
/// GPIO register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct Gpio {

View File

@@ -22,7 +22,7 @@ pub struct InterruptStatus {
event_flag: bool,
}
/// Global timer counter.
/// Global timer counter register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct GlobalTimerCounter {

View File

@@ -156,6 +156,7 @@ pub struct TransferSize {
size: u8,
}
/// I2C register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct I2c {

View File

@@ -184,6 +184,7 @@ pub struct InterruptControl {
event_counter_overflow_increment: bool,
}
/// L2 Cache register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct L2Cache {

View File

@@ -44,6 +44,7 @@ impl SnoopControlUnit {
const_assert_eq!(core::mem::size_of::<SnoopControlUnit>(), 0x58);
/// MP Core register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct MpCore {

View File

@@ -21,6 +21,7 @@ pub struct InterruptStatus {
event_flag: bool,
}
/// CPU private timer register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct CpuPrivateTimer {

View File

@@ -220,6 +220,7 @@ pub struct LinearQspiStatus {
axi_write_command_received: bool,
}
/// QSPI register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct Qspi {

View File

@@ -91,7 +91,7 @@ pub struct LevelShifterRegister {
user_lvl_shftr_en: Option<LevelShifterConfig>,
}
/// System Level Control Registers
/// System Level Control Registers access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct Slcr {

View File

@@ -178,7 +178,7 @@ pub struct DelayControl {
cs_to_first_bit: u8,
}
/// Register block specification for both PS SPIs.
/// SPI register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct Spi {

View File

@@ -142,7 +142,7 @@ pub struct EventCount {
count: u16,
}
/// Triple-timer counter
/// Triple-timer counter register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct Ttc {

View File

@@ -278,6 +278,7 @@ impl InterruptStatus {
}
}
/// UART register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct Uart {

View File

@@ -1,5 +1,6 @@
pub const XADC_BASE_ADDR: usize = 0xF8007100;
/// XADC register access.
#[derive(derive_mmio::Mmio)]
#[repr(C)]
pub struct XAdc {