mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
feat(gdma): strategy_config_t add eof_mode support
This commit is contained in:
@@ -404,7 +404,7 @@ esp_err_t gdma_apply_strategy(gdma_channel_handle_t dma_chan, const gdma_strateg
|
||||
gdma_group_t *group = pair->group;
|
||||
gdma_hal_context_t *hal = &group->hal;
|
||||
|
||||
gdma_hal_set_strategy(hal, pair->pair_id, dma_chan->direction, config->owner_check, config->auto_update_desc);
|
||||
gdma_hal_set_strategy(hal, pair->pair_id, dma_chan->direction, config->owner_check, config->auto_update_desc, config->eof_till_data_popped);
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
|
@@ -122,6 +122,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
bool owner_check; /*!< If set / clear, DMA channel enables / disables checking owner validity */
|
||||
bool auto_update_desc; /*!< If set / clear, DMA channel enables / disables hardware to update descriptor automatically (TX channel only) */
|
||||
bool eof_till_data_popped; /*!< If set / clear, DMA channel out_eof event is triggered on out / in DMA hardware fifo */
|
||||
} gdma_strategy_config_t;
|
||||
|
||||
/** @cond */
|
||||
|
Reference in New Issue
Block a user