mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
feat(dw_gdma): initial low level driver
feat(dw_gdma): initial low level driver
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
#endif
|
||||
|
||||
#if SOC_GDMA_SUPPORTED
|
||||
#include "soc/gdma_struct.h"
|
||||
#include "hal/gdma_ll.h"
|
||||
#endif
|
||||
|
||||
|
||||
46
components/hal/include/hal/dw_gdma_hal.h
Normal file
46
components/hal/include/hal/dw_gdma_hal.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief DW_GDMA SOC layer representation
|
||||
*/
|
||||
typedef struct dw_gdma_dev_t *dw_gdma_soc_handle_t;
|
||||
|
||||
/**
|
||||
* @brief DW_GDMA HAL driver context
|
||||
*/
|
||||
typedef struct {
|
||||
dw_gdma_soc_handle_t dev; /*!< Pointer to the DW_GDMA registers */
|
||||
} dw_gdma_hal_context_t;
|
||||
|
||||
/**
|
||||
* @brief DW_GDMA HAL driver configuration
|
||||
*/
|
||||
typedef struct {
|
||||
} dw_gdma_hal_config_t;
|
||||
|
||||
/**
|
||||
* @brief DW_GDMA HAL driver initialization
|
||||
*
|
||||
* @note Caller should malloc the memory for the hal context
|
||||
*
|
||||
* @param hal Pointer to the HAL driver context
|
||||
* @param config Pointer to the HAL driver configuration
|
||||
*/
|
||||
void dw_gdma_hal_init(dw_gdma_hal_context_t *hal, const dw_gdma_hal_config_t *config);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user