Skip to content

Commit

Permalink
Mark with_sio0/1 unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Jan 17, 2025
1 parent 6eb23c7 commit 5f16261
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esp-hal/src/spi/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ where
/// The pin is configured to open-drain mode.
///
/// Note: You do not need to call [Self::with_mosi] when this is used.
#[instability::unstable]
pub fn with_sio0<MOSI: PeripheralOutput>(self, mosi: impl Peripheral<P = MOSI> + 'd) -> Self {
crate::into_mapped_ref!(mosi);
mosi.enable_output(true);
Expand Down Expand Up @@ -699,6 +700,7 @@ where
/// The pin is configured to open-drain mode.
///
/// Note: You do not need to call [Self::with_miso] when this is used.
#[instability::unstable]
pub fn with_sio1<SIO1: PeripheralOutput>(self, miso: impl Peripheral<P = SIO1> + 'd) -> Self {
crate::into_mapped_ref!(miso);
miso.enable_input(true);
Expand Down

0 comments on commit 5f16261

Please sign in to comment.