mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feature(driver_spi): slave driver support psram transfer
This commit is contained in:
@@ -172,6 +172,23 @@ void spi_slave_hal_user_start(const spi_slave_hal_context_t *hal);
|
||||
*/
|
||||
bool spi_slave_hal_usr_is_done(spi_slave_hal_context_t* hal);
|
||||
|
||||
/**
|
||||
* Get SPI interrupt bits status by mask
|
||||
*
|
||||
* @param hal Context of the HAL layer.
|
||||
* @param mask Mask of the interrupt bits to check.
|
||||
* @return True if the masked interrupts are set, false otherwise.
|
||||
*/
|
||||
bool spi_slave_hal_get_intr_status(spi_slave_hal_context_t *hal, uint32_t mask);
|
||||
|
||||
/**
|
||||
* Clear SPI interrupt bits by mask
|
||||
*
|
||||
* @param hal Context of the HAL layer.
|
||||
* @param mask Mask of the interrupt bits to clear.
|
||||
*/
|
||||
void spi_slave_hal_clear_intr_status(spi_slave_hal_context_t *hal, uint32_t mask);
|
||||
|
||||
/**
|
||||
* Post transaction operations, fetch data from the buffer and recorded the length.
|
||||
*
|
||||
|
||||
@@ -99,3 +99,15 @@ bool spi_slave_hal_dma_need_reset(const spi_slave_hal_context_t *hal)
|
||||
#endif // SPI_LL_SLAVE_NEEDS_RESET_WORKAROUND
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if SOC_SPI_SUPPORT_SLAVE_HD_VER2
|
||||
bool spi_slave_hal_get_intr_status(spi_slave_hal_context_t *hal, uint32_t mask)
|
||||
{
|
||||
return spi_ll_get_intr(hal->hw, mask);
|
||||
}
|
||||
|
||||
void spi_slave_hal_clear_intr_status(spi_slave_hal_context_t *hal, uint32_t mask)
|
||||
{
|
||||
spi_ll_clear_intr(hal->hw, mask);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user