- ESP_OK on success - ESP_ERR_INVALID_ARG if sdspi_host_init_device has invalid arguments - ESP_ERR_NO_MEM if memory can not be allocated - other errors from the underlying spi_master and gpio drivers
Notes
This function is not thread safe Initialize the SPI bus by `spi_bus_initialize()` before calling this function. The SDIO over sdspi needs an extra interrupt line. Call ``gpio_install_isr_service()`` before this function.
Examples
sdspi_host_init_device() is referenced by 1 libraries and example projects: