Function riot_sys::spi_init_pins

source ·
pub unsafe extern "C" fn spi_init_pins(bus: spi_t)
Expand description

@brief Initialize the used SPI bus pins, i.e. MISO, MOSI, and CLK

After calling spi_init, the pins must be initialized (i.e. spi_init is calling this function internally). In normal cases, this function will not be used. But there are some devices (e.g. CC110x), that use SPI bus lines also for other purposes and need the option to dynamically re-configure one or more of the used pins. So they can take control over certain pins and return control back to the SPI driver using this function.

This function must be called after @ref spi_deinit_pins to return the pins to SPI operation.

The pins used are configured in the board’s periph_conf.h.

@param[in] bus SPI device the pins are configure for