refactor(sdmmc): Allow sdmmc_host_init to be called multiple times

Along with slight refactor for sdmmc_host.c
This commit is contained in:
Adam Múdry
2025-05-05 18:58:58 +08:00
committed by BOT
parent 7d3abe2c8c
commit c81c37fe1e
2 changed files with 66 additions and 42 deletions
@@ -62,8 +62,7 @@ typedef struct {
* @note This function is not thread safe
*
* @return
* - ESP_OK on success
* - ESP_ERR_INVALID_STATE if sdmmc_host_init was already called
* - ESP_OK on success or if sdmmc_host_init was already initialized with this function
* - ESP_ERR_NO_MEM if memory can not be allocated
*/
esp_err_t sdmmc_host_init(void);