Skip to content

Commit

Permalink
hal: add sysctl peripheral, doc hidden for default
Browse files Browse the repository at this point in the history
Signed-off-by: Zhouqi Jiang <[email protected]>
  • Loading branch information
luojia65 committed Oct 18, 2024
1 parent 57b2411 commit 655d1f7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ pub mod gpio;
pub mod phy;
pub mod smhc;
pub mod spi;
#[doc(hidden)]
pub mod sysctl;
#[macro_use]
pub mod uart;

Expand Down
20 changes: 20 additions & 0 deletions src/sysctl.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//! System power, LDO and calibration controller.
use volatile_register::{RO, RW};

/// System power, LDO and calibration controller registers.
#[repr(C)]
pub struct RegisterBlock {
/// System LDO Control Register.
// TODO: offset = 0x150
pub ldo_control: RW<u32>,
/// Resistor Calibration Control register.
// TODO: offset = 0x160
pub zq_resistor_control: RW<u32>,
/// 240-Ohm Resistor Manual Control register.
// TODO: offset = 0x168
pub zq_resistor_240_control: RW<u32>,
/// Resistor Calibration Status register.
// TODO: offset = 0x16C
pub zq_resistor_state: RO<u32>,
}

0 comments on commit 655d1f7

Please sign in to comment.