Skip to content

Commit

Permalink
Rename unchecked constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Jan 3, 2024
1 parent bb8a9fd commit a965f1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rp2040-hal/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,10 @@ macro_rules! hal {

$crate::paste::paste! {
/// Configures the I2C peripheral to work in master mode
/// This function can be called without the pull-ups on the I2C pins.
pub fn [<$i2cX _unchecked>]<F, SystemF>(
///
/// This function can be called without activating internal pull-ups on the I2C pins.
/// It should only be used if external pull-ups are provided.
pub fn [<$i2cX _with_external_pull_up>]<F, SystemF>(
i2c: $I2CX,
sda_pin: Sda,
scl_pin: Scl,
Expand Down

0 comments on commit a965f1c

Please sign in to comment.