S32 SDK
edma_common.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
3  * Copyright 2016 NXP
4  * All rights reserved.
5  *
6  * THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
7  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
8  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
9  * IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
10  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
11  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
13  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
14  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
15  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
16  * THE POSSIBILITY OF SUCH DAMAGE.
17  */
18 
41 #include <stdint.h>
42 #include "device_registers.h"
43 #include "clock_manager.h"
44 #include "edma_driver.h"
45 
46 /* Array of base addresses for DMA instances. */
48 
49 /* Array of base addresses for DMAMUX instances. */
51 
52 /* Array of default DMA channel interrupt handlers. */
54 
55 /* Array of default DMA error interrupt handlers. */
56 #if defined FEATURE_EDMA_HAS_ERROR_IRQ
58 #endif
59 
63 
64 /*******************************************************************************
65 * EOF
66 ******************************************************************************/
67 
#define DMAMUX_INSTANCE_COUNT
Definition: S32K144.h:3115
#define DMA_INSTANCE_COUNT
Definition: S32K144.h:2298
DMAMUX_Type *const g_dmamuxBase[DMAMUX_INSTANCE_COUNT]
Array for DMAMUX module register base address.
Definition: edma_common.c:50
IRQn_Type
Defines the Interrupt Numbers definitions.
Definition: S32K144.h:269
const clock_names_t g_edmaClockNames[DMA_INSTANCE_COUNT]
Array for eDMA clock sources.
Definition: edma_common.c:61
#define DMA_BASE_PTRS
Definition: S32K144.h:2309
const IRQn_Type g_edmaIrqId[FEATURE_CHANNEL_INTERRUPT_LINES]
Array for eDMA channel interrupt vector number.
Definition: edma_common.c:53
#define EDMA_CLOCK_NAMES
#define FEATURE_CHANNEL_INTERRUPT_LINES
#define DMAMUX_BASE_PTRS
Definition: S32K144.h:3126
const IRQn_Type g_edmaErrIrqId[FEATURE_ERROR_INTERRUPT_LINES]
Array for eDMA module's error interrupt vector number.
Definition: edma_common.c:57
clock_names_t
Clock names.
#define FEATURE_ERROR_INTERRUPT_LINES
DMA_Type *const g_edmaBase[DMA_INSTANCE_COUNT]
Array for the eDMA module register base address.
Definition: edma_common.c:47
#define DMA_CHN_IRQS
Definition: S32K144.h:2317
#define DMA_ERROR_IRQS
Definition: S32K144.h:2318
#define DMAMUX_CLOCK_NAMES
const clock_names_t g_dmamuxClockNames[DMAMUX_INSTANCE_COUNT]
Definition: edma_common.c:62