From 93936780d32d6b9bd44569f8dc7d8e5740737576 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 8 Oct 2025 20:54:32 +0200 Subject: [PATCH] prepare first releases --- justfile | 17 +++++++++++++---- zynq/zynq7000/src/lib.rs | 6 +++--- zynq/zynq7000/src/qspi.rs | 2 +- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/justfile b/justfile index fe226d9..7a21afb 100644 --- a/justfile +++ b/justfile @@ -24,12 +24,21 @@ fmt target: clippy target: cd {{target}} && cargo clippy -- -D warnings -[working-directory: 'zynq'] -docs-zynq: - RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p zynq7000 - RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p zynq7000-hal --features alloc +docs-zynq: docs-pac docs-hal RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p zynq7000-mmu RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p zynq7000-rt +[working-directory: 'zynq'] +docs-pac: + RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p zynq7000 +[working-directory: 'zynq'] +docs-pac-html: + RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p zynq7000 --open +[working-directory: 'zynq'] +docs-hal: + RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p zynq7000-hal --features alloc +[working-directory: 'zynq'] +docs-hal-html: + RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p zynq7000-hal --features alloc --open [working-directory: 'zynq-boot-image/staging'] bootgen: diff --git a/zynq/zynq7000/src/lib.rs b/zynq/zynq7000/src/lib.rs index 7c11337..fa7d9a9 100644 --- a/zynq/zynq7000/src/lib.rs +++ b/zynq/zynq7000/src/lib.rs @@ -6,7 +6,7 @@ //! //! This crate is purposely kept low-level to allow building higher level abstractions like HALs //! on top of it. -//! [The Zynq7000 HAL library](https://egit.irs.uni-stuttgart.de/rust/zynq7000-rs/src/branch/main/zynq7000-hal) +//! [The Zynq7000 HAL library](https://egit.irs.uni-stuttgart.de/rust/zynq7000-rs/src/branch/main/zynq/zynq7000-hal) //! contains such a HAL which builds on this PAC. #![no_std] #![cfg_attr(docsrs, feature(doc_cfg))] @@ -37,9 +37,9 @@ pub mod xadc; static PERIPHERALS_TAKEN: AtomicBool = AtomicBool::new(false); -/// This is a collection of all the processing peripherals. +/// This is a collection of processing system peripherals. /// -/// It is a singleton which exposes all peripherals supported by this crate. +/// It is a singleton which exposes peripherals supported by this crate. /// The [`svd2rust` documentation](https://docs.rs/svd2rust/latest/svd2rust/#peripheral-api) /// provides some more information about this. pub struct Peripherals { diff --git a/zynq/zynq7000/src/qspi.rs b/zynq/zynq7000/src/qspi.rs index d963991..f032b17 100644 --- a/zynq/zynq7000/src/qspi.rs +++ b/zynq/zynq7000/src/qspi.rs @@ -2,7 +2,7 @@ use arbitrary_int::{u2, u3}; pub use crate::{SpiClockPhase, SpiClockPolarity}; -const QSPI_BASE_ADDR: usize = 0xE000D000; +pub const QSPI_BASE_ADDR: usize = 0xE000D000; #[bitbybit::bitenum(u1, exhaustive = true)] #[derive(Debug, PartialEq, Eq)] -- 2.43.0