smaller tweaks and docs API unification
Some checks failed
ci / Check build (push) Has been cancelled
ci / Check formatting (push) Has been cancelled
ci / Check Documentation Build (push) Has been cancelled
ci / Clippy (push) Has been cancelled
ci / Check build (pull_request) Has been cancelled
ci / Check formatting (pull_request) Has been cancelled
ci / Check Documentation Build (pull_request) Has been cancelled
ci / Clippy (pull_request) Has been cancelled
Some checks failed
ci / Check build (push) Has been cancelled
ci / Check formatting (push) Has been cancelled
ci / Check Documentation Build (push) Has been cancelled
ci / Clippy (push) Has been cancelled
ci / Check build (pull_request) Has been cancelled
ci / Check formatting (pull_request) Has been cancelled
ci / Check Documentation Build (pull_request) Has been cancelled
ci / Clippy (pull_request) Has been cancelled
This commit is contained in:
@@ -111,7 +111,7 @@ target = "armv7a-none-eabihf"
|
|||||||
You can build the blinky example app using
|
You can build the blinky example app using
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cargo build --example simple
|
cargo build --example 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
|
//! Dedicated shared crate for Zynq7000 MMU abstractions which can be used by Zynq
|
||||||
//! runtime crates, PACs and HALs.
|
//! runtime crates, PACs and HALs.
|
||||||
|
|||||||
@@ -725,6 +725,7 @@ pub mod regs {
|
|||||||
|
|
||||||
use regs::*;
|
use regs::*;
|
||||||
|
|
||||||
|
/// DDR controller register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct DdrController {
|
pub struct DdrController {
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ pub struct Status {
|
|||||||
efuse_jtag_disabled: bool,
|
efuse_jtag_disabled: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Device configuration register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct DevCfg {
|
pub struct DevCfg {
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ pub struct MatchRegister {
|
|||||||
type_id: u16,
|
type_id: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gigabit Ethernet Controller (GEM) registers for Zynq-7000
|
/// Gigabit Ethernet Controller (GEM) register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Ethernet {
|
pub struct Ethernet {
|
||||||
@@ -477,7 +477,7 @@ pub struct Ethernet {
|
|||||||
|
|
||||||
static_assertions::const_assert_eq!(core::mem::size_of::<Ethernet>(), 0x294);
|
static_assertions::const_assert_eq!(core::mem::size_of::<Ethernet>(), 0x294);
|
||||||
|
|
||||||
/// GEM statistics registers
|
/// Ethernet statistics registers
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Statistics {
|
pub struct Statistics {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ pub struct BankControl {
|
|||||||
int_any: u32,
|
int_any: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// GPIO register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Gpio {
|
pub struct Gpio {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ pub struct InterruptStatus {
|
|||||||
event_flag: bool,
|
event_flag: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Global timer counter.
|
/// Global timer counter register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct GlobalTimerCounter {
|
pub struct GlobalTimerCounter {
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ pub struct TransferSize {
|
|||||||
size: u8,
|
size: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// I2C register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct I2c {
|
pub struct I2c {
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ pub struct InterruptControl {
|
|||||||
event_counter_overflow_increment: bool,
|
event_counter_overflow_increment: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// L2 Cache register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct L2Cache {
|
pub struct L2Cache {
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ impl SnoopControlUnit {
|
|||||||
|
|
||||||
const_assert_eq!(core::mem::size_of::<SnoopControlUnit>(), 0x58);
|
const_assert_eq!(core::mem::size_of::<SnoopControlUnit>(), 0x58);
|
||||||
|
|
||||||
|
/// MP Core register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct MpCore {
|
pub struct MpCore {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ pub struct InterruptStatus {
|
|||||||
event_flag: bool,
|
event_flag: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// CPU private timer register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct CpuPrivateTimer {
|
pub struct CpuPrivateTimer {
|
||||||
|
|||||||
@@ -220,6 +220,7 @@ pub struct LinearQspiStatus {
|
|||||||
axi_write_command_received: bool,
|
axi_write_command_received: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// QSPI register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Qspi {
|
pub struct Qspi {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ pub struct LevelShifterRegister {
|
|||||||
user_lvl_shftr_en: Option<LevelShifterConfig>,
|
user_lvl_shftr_en: Option<LevelShifterConfig>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// System Level Control Registers
|
/// System Level Control Registers access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Slcr {
|
pub struct Slcr {
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ pub struct DelayControl {
|
|||||||
cs_to_first_bit: u8,
|
cs_to_first_bit: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Register block specification for both PS SPIs.
|
/// SPI register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Spi {
|
pub struct Spi {
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ pub struct EventCount {
|
|||||||
count: u16,
|
count: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Triple-timer counter
|
/// Triple-timer counter register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Ttc {
|
pub struct Ttc {
|
||||||
|
|||||||
@@ -278,6 +278,7 @@ impl InterruptStatus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// UART register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Uart {
|
pub struct Uart {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
pub const XADC_BASE_ADDR: usize = 0xF8007100;
|
pub const XADC_BASE_ADDR: usize = 0xF8007100;
|
||||||
|
|
||||||
|
/// XADC register access.
|
||||||
#[derive(derive_mmio::Mmio)]
|
#[derive(derive_mmio::Mmio)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct XAdc {
|
pub struct XAdc {
|
||||||
|
|||||||
Reference in New Issue
Block a user