Skip to content

Commit

Permalink
doc: amend smhc module documents, add missing documents
Browse files Browse the repository at this point in the history
Signed-off-by: Zhouqi Jiang <luojia@hust.edu.cn>
luojia65 committed Oct 6, 2024
1 parent 22d229a commit a25cc70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/smhc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! SD/MMC Host Controller peripheral.
use volatile_register::{RO, RW};

/// SD/MMC Host Controller registers.
#[repr(C)]
pub struct RegisterBlock {
/// 0x00 - SMC Global Control Register.
@@ -536,7 +538,7 @@ impl Argument {
#[repr(transparent)]
pub struct InterruptMask(u32);

/// Interrupt register.
/// Interrupt type.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Interrupt {
CardRemoved,
@@ -924,6 +926,7 @@ impl NewTimingSet {
}
}

/// Drive Delay Control register.
#[derive(Clone, Copy)]
#[repr(transparent)]
pub struct DriveDelayControl(u32);

0 comments on commit a25cc70

Please sign in to comment.