Home
last modified time | relevance | path

Searched refs:alloc_tx_channel (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-latest/components/esp_hw_support/dma/
Dgdma.c69 gdma_tx_channel_t *alloc_tx_channel = NULL; in gdma_new_channel() local
81 alloc_tx_channel = heap_caps_calloc(1, sizeof(gdma_tx_channel_t), GDMA_MEM_ALLOC_CAPS); in gdma_new_channel()
82 ESP_GOTO_ON_FALSE(alloc_tx_channel, ESP_ERR_NO_MEM, err, TAG, "no mem for gdma tx channel"); in gdma_new_channel()
126 if (alloc_tx_channel) { in gdma_new_channel()
127 pair->tx_chan = alloc_tx_channel; in gdma_new_channel()
128 alloc_tx_channel->base.pair = pair; in gdma_new_channel()
129 alloc_tx_channel->base.direction = GDMA_CHANNEL_DIRECTION_TX; in gdma_new_channel()
130 alloc_tx_channel->base.periph_id = GDMA_INVALID_PERIPH_TRIG; in gdma_new_channel()
131 alloc_tx_channel->base.del = gdma_del_tx_channel; // set channel deletion function in gdma_new_channel()
132 *ret_chan = &alloc_tx_channel->base; // return the installed channel in gdma_new_channel()
[all …]