Skip to content

Commit

Permalink
Merge branch 'improve-spi-peripheral-documentation' of github.com:ith…
Browse files Browse the repository at this point in the history
…inuel/rp-hal into ithinuel-improve-spi-peripheral-documentation
  • Loading branch information
jannic committed Oct 24, 2023
2 parents 5706ea2 + 955034d commit 6a3da17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rp2040-hal/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ impl<S: State, D: SpiDevice, P: ValidSpiPinout<D>, const DS: u8> Spi<S, D, P, DS
impl<D: SpiDevice, P: ValidSpiPinout<D>, const DS: u8> Spi<Disabled, D, P, DS> {
/// Create new not initialized Spi bus. Initialize it with [`.init`][Self::init]
/// or [`.init_slave`][Self::init_slave].
///
/// Valid pin sets are in the form of `(Tx, Sck)` or `(Tx, Rx, Sck)`
///
/// If you pins are dynamically identified (`Pin<DynPinId, _, _>`) they will first need to pass
/// validation using their corresponding [`ValidatedPinXX`](ValidatedPinTx).
pub fn new(device: D, pins: P) -> Spi<Disabled, D, P, DS> {
Spi {
device,
Expand Down

0 comments on commit 6a3da17

Please sign in to comment.