mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-13 12:55:20 +00:00
Previously, configuring the GDMA was limited to a single descriptor, restricting memory transfers to a maximum of 4kB. This update introduces support for multiple descriptors, enabling users to define multiple dma_blocks. The maximum number of descriptors can be configured via the CONFIG_DMA_ESP32_DESCRIPTOR_NUM option. Additionally, the dma_get_status() function now reports the index of the currently processed descriptor through the status.read_position and status.write_position fields. Signed-off-by: Armin Kessler <ake@espros.com>
16 lines
424 B
Plaintext
16 lines
424 B
Plaintext
# Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config DMA_ESP32
|
|
bool "ESP32 General Purpose DMA driver"
|
|
depends on DT_HAS_ESPRESSIF_ESP32_GDMA_ENABLED
|
|
default y
|
|
help
|
|
General Purpose DMA for ESP32 series.
|
|
|
|
config DMA_ESP32_MAX_DESCRIPTOR_NUM
|
|
int "Maximal number of available DMA descriptors"
|
|
default 16
|
|
help
|
|
Reserves memory for a maximal number of descriptors
|