kopia lustrzana https://github.com/espressif/esp-idf
44 wiersze
1.3 KiB
C
44 wiersze
1.3 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @brief The contents defined in this file are common for both AXI-DMA and AHB-DMA
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define GDMA_LL_CHANNEL_MAX_PRIORITY 5 // supported priority levels: [0,5]
|
|
|
|
#define GDMA_LL_RX_EVENT_MASK (0x1F)
|
|
#define GDMA_LL_TX_EVENT_MASK (0x0F)
|
|
|
|
#define GDMA_LL_EVENT_TX_TOTAL_EOF (1<<3)
|
|
#define GDMA_LL_EVENT_TX_DESC_ERROR (1<<2)
|
|
#define GDMA_LL_EVENT_TX_EOF (1<<1)
|
|
#define GDMA_LL_EVENT_TX_DONE (1<<0)
|
|
|
|
#define GDMA_LL_EVENT_RX_DESC_EMPTY (1<<4)
|
|
#define GDMA_LL_EVENT_RX_DESC_ERROR (1<<3)
|
|
#define GDMA_LL_EVENT_RX_ERR_EOF (1<<2)
|
|
#define GDMA_LL_EVENT_RX_SUC_EOF (1<<1)
|
|
#define GDMA_LL_EVENT_RX_DONE (1<<0)
|
|
|
|
#define GDMA_LL_AHB_GROUP_START_ID 0 // AHB GDMA group ID starts from 0
|
|
#define GDMA_LL_AHB_NUM_GROUPS 1 // Number of AHB GDMA groups
|
|
#define GDMA_LL_AHB_PAIRS_PER_GROUP 3 // Number of GDMA pairs in each AHB group
|
|
|
|
#define GDMA_LL_AXI_GROUP_START_ID 1 // AXI GDMA group ID starts from 1
|
|
#define GDMA_LL_AXI_NUM_GROUPS 1 // Number of AXI GDMA groups
|
|
#define GDMA_LL_AXI_PAIRS_PER_GROUP 3 // Number of GDMA pairs in each AXI group
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|