fix(hw_support): spi buslock fix unregister dev api issue

This commit is contained in:
wanckl
2026-08-04 10:59:07 +08:00
parent 7a911c980d
commit d43de5fa7e
6 changed files with 29 additions and 4 deletions
@@ -63,7 +63,9 @@ esp_err_t esp_flash_init_os_functions(esp_flash_t *chip, int host_id, spi_bus_lo
* @param chip The chip to deinit os functions
* @param out_dev_handle The SPI bus lock passed from `esp_flash_init_os_functions`. The caller should deinitialize
* the lock.
* @return always ESP_OK.
* @return
* - ESP_ERR_INVALID_STATE: the chip is still acquiring the SPI bus lock.
* - ESP_OK: success.
*/
esp_err_t esp_flash_deinit_os_functions(esp_flash_t* chip, spi_bus_lock_dev_handle_t* out_dev_handle);
@@ -51,6 +51,7 @@ esp_err_t spi_bus_add_flash_device(esp_flash_t **out_chip, const esp_flash_spi_d
*
* @return
* - ESP_ERR_INVALID_ARG: The chip is invalid.
* - ESP_ERR_INVALID_STATE: The chip is still acquiring the SPI bus lock.
* - ESP_OK: success.
*/
esp_err_t spi_bus_remove_flash_device(esp_flash_t *chip);