[−][src]Function metro_m0::spi_master
pub fn spi_master<F: Into<Hertz>>(
clocks: &mut GenericClockController,
bus_speed: F,
sercom4: SERCOM4,
pm: &mut PM,
sck: Pb11<Input<Floating>>,
mosi: Pb10<Input<Floating>>,
miso: Pa12<Input<Floating>>,
port: &mut Port
) -> SPIMaster4
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.