feat(driver_spi): support esp32h4 spi driver

This commit is contained in:
wanckl
2025-07-28 21:59:17 +08:00
committed by Wan Lei
parent 72cb973022
commit 37c6608ab3
54 changed files with 1716 additions and 231 deletions

View File

@@ -80,6 +80,23 @@ typedef struct {
/// Destructor called when a bus is deinitialized.
typedef esp_err_t (*spi_destroy_func_t)(void*);
/**
* @brief Allocate a SPI bus
*
* @param host_id SPI host ID
* @param name Name of the bus
* @return ESP_OK on success, ESP_ERR_NO_MEM if no memory is available
*/
esp_err_t spicommon_bus_alloc(spi_host_device_t host_id, const char *name);
/**
* @brief Free a SPI bus
*
* @param host_id SPI host ID
* @return ESP_OK on success, ESP_ERR_INVALID_STATE if the bus is not allocated
*/
esp_err_t spicommon_bus_free(spi_host_device_t host_id);
/**
* @brief Alloc DMA channel for SPI
*