This commit is contained in:
2025-04-16 14:59:23 +02:00
parent 5c1f05fb32
commit feac144302
5 changed files with 67 additions and 0 deletions

View File

@ -1,4 +1,17 @@
//! GPIO support module.
//!
//! Contains abstractions to use the pins provided by the [crate::pins] module as GPIO or
//! IO peripheral pins.
//!
//! The core data structures provided for this are the
//!
//! - [Output] for push-pull output pins.
//! - [Input] for input pins.
//! - [Flex] for pins with flexible configuration requirements.
//! - [IoPeriphPin] for IO peripheral pins.
//!
//! The [crate::pins] module exposes singletons to access the [Pin]s required by this module
//! in a type-safe way.
pub use vorago_shared_periphs::gpio::*;
pub use vorago_shared_periphs::gpio::asynch;

View File

@ -1,3 +1,8 @@
//! Pin resource management singletons.
//!
//! This module contains the pin singletons. It allows creating those singletons
//! to access the [Pin] structures of individual ports in a safe way with checked ownership
//! rules.
use vorago_shared_periphs::sysconfig::reset_peripheral_for_cycles;
pub use crate::gpio::{Pin, PinId, PinIdProvider, Port};