fix(spi_slave): correct param check for trans APIs

This commit is contained in:
wanlei
2023-11-27 12:29:45 +08:00
committed by BOT
parent 3e22e0b750
commit 25c17da4bb
3 changed files with 28 additions and 17 deletions

View File

@@ -122,6 +122,8 @@ esp_err_t spi_slave_free(spi_host_device_t host);
/**
* @brief Queue a SPI transaction for execution
*
* @note On esp32, if trans length not WORD aligned, the rx buffer last word memory will still overwritten by DMA HW
*
* Queues a SPI transaction to be executed by this slave device. (The transaction queue size was specified when the slave
* device was initialised via spi_slave_initialize.) This function may block if the queue is full (depending on the
* ticks_to_wait parameter). No SPI operation is directly initiated by this function, the next queued transaction