Skip to content

Commit

Permalink
Fixed example code in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiyukiOkayasu committed Feb 25, 2024
1 parent f4da9b6 commit 0ad090e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rp2040-hal/src/vreg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
//! ## Usage
//! ```no_run
//! use rp2040_hal::pac::vreg_and_chip_reset::vreg::VSEL_A;
//! use rp2040_hal::{vreg::vreg_set_voltage, pac};
//! use rp2040_hal::{vreg::set_voltage, pac};
//! let mut pac = pac::Peripherals::take().unwrap();
//! // Set voltage to 1.20V
//! vreg_set_voltage(&mut pac.VREG_AND_CHIP_RESET, VSEL_A::VOLTAGE1_20);
//! set_voltage(&mut pac.VREG_AND_CHIP_RESET, VSEL_A::VOLTAGE1_20);
//! ```

use crate::pac::vreg_and_chip_reset::vreg::VSEL_A;
Expand Down

0 comments on commit 0ad090e

Please sign in to comment.