Function metro_m0::spi_master
source · pub fn spi_master(
clocks: &mut GenericClockController,
baud: Hertz,
sercom4: SERCOM4,
pm: &mut PM,
sclk: impl Into<Sclk>,
mosi: impl Into<Mosi>,
miso: impl Into<Miso>
) -> Spi
Expand description
Convenience for setting up the 2x3 header block for SPI.
This powers up SERCOM4 and configures it for use as an
SPI Master in SPI Mode 0.
Unlike the flash_spi_master
function, this
one does not accept a CS pin; configuring a pin for CS
is the responsibility of the caller, because it could be
any OutputPin, or even a pulled up line on the slave.