Function esp_idf_svc::sys::spi_bus_free
source · pub unsafe extern "C" fn spi_bus_free(host_id: u32) -> i32
Expand description
@brief Free a SPI bus
@warning In order for this to succeed, all devices have to be removed first.
@param host_id SPI peripheral to free @return - ESP_ERR_INVALID_ARG if parameter is invalid - ESP_ERR_INVALID_STATE if bus hasn’t been initialized before, or not all devices on the bus are freed - ESP_OK on success