Re-export drivers and update dependencies
If the peripheral access crate and a project uses different versions of
the same drivers, it causes build time a conflict. In order to avoid
this, the PAC exports the drivers so projects can use them without
adding the drivers as project dependencies.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I10b53053962e751d5e7c86dddd26b8ab07a18dc9
diff --git a/src/lib.rs b/src/lib.rs
index f1d02d9..185ab21 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: Copyright 2023-2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
+// SPDX-FileCopyrightText: Copyright 2023-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
// SPDX-License-Identifier: MIT OR Apache-2.0
//! # Peripheral Access Crate fro Arm Fixed Virtual Platform
@@ -7,12 +7,16 @@
#![no_std]
-use core::fmt::Debug;
+// Re-export peripheral drivers and common safe-mmio types
+pub use arm_gic;
+pub use arm_pl011_uart;
+pub use arm_sp805;
+pub use safe_mmio::{PhysicalInstance, UniqueMmioPointer};
use arm_gic::GICDRegisters;
use arm_pl011_uart::PL011Registers;
use arm_sp805::SP805Registers;
-pub use safe_mmio::PhysicalInstance;
+use core::fmt::Debug;
use spin::mutex::Mutex;
static PERIPHERALS_TAKEN: Mutex<bool> = Mutex::new(false);