pub unsafe extern "C" fn spi_init_with_gpio_mode(
    bus: spi_t,
    mode: *const spi_gpio_mode_t
) -> c_int
Expand description

@brief Initialize MOSI/MISO/SCLK pins with adapted GPIO modes

@param[in] bus SPI device that is used with the given CS line @param[in] mode a pointer to a struct containing the 3 modes to use on each pin

@retval 0 success @retval <0 error