smaller tweaks and docs API unification #16
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -725,6 +725,7 @@ pub mod regs {
|
||||
|
||||
use regs::*;
|
||||
|
||||
/// DDR controller register access.
|
||||
#[derive(derive_mmio::Mmio)]
|
||||
#[repr(C)]
|
||||
pub struct DdrController {
|
||||
|
||||
@@ -257,6 +257,7 @@ pub struct Status {
|
||||
efuse_jtag_disabled: bool,
|
||||
}
|
||||
|
||||
/// Device configuration register access.
|
||||
#[derive(derive_mmio::Mmio)]
|
||||
#[repr(C)]
|
||||
pub struct DevCfg {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -35,6 +35,7 @@ pub struct BankControl {
|
||||
int_any: u32,
|
||||
}
|
||||
|
||||
/// GPIO register access.
|
||||
#[derive(derive_mmio::Mmio)]
|
||||
#[repr(C)]
|
||||
pub struct Gpio {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -156,6 +156,7 @@ pub struct TransferSize {
|
||||
size: u8,
|
||||
}
|
||||
|
||||
/// I2C register access.
|
||||
#[derive(derive_mmio::Mmio)]
|
||||
#[repr(C)]
|
||||
pub struct I2c {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -21,6 +21,7 @@ pub struct InterruptStatus {
|
||||
event_flag: bool,
|
||||
}
|
||||
|
||||
/// CPU private timer register access.
|
||||
#[derive(derive_mmio::Mmio)]
|
||||
#[repr(C)]
|
||||
pub struct CpuPrivateTimer {
|
||||
|
||||
@@ -220,6 +220,7 @@ pub struct LinearQspiStatus {
|
||||
axi_write_command_received: bool,
|
||||
}
|
||||
|
||||
/// QSPI register access.
|
||||
#[derive(derive_mmio::Mmio)]
|
||||
#[repr(C)]
|
||||
pub struct Qspi {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -278,6 +278,7 @@ impl InterruptStatus {
|
||||
}
|
||||
}
|
||||
|
||||
/// UART register access.
|
||||
#[derive(derive_mmio::Mmio)]
|
||||
#[repr(C)]
|
||||
pub struct Uart {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
pub const XADC_BASE_ADDR: usize = 0xF8007100;
|
||||
|
||||
/// XADC register access.
|
||||
#[derive(derive_mmio::Mmio)]
|
||||
#[repr(C)]
|
||||
pub struct XAdc {
|
||||
|
||||
Reference in New Issue
Block a user