-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hal: add sysctl peripheral, doc hidden for default
Signed-off-by: Zhouqi Jiang <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>, | ||
} |