rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
kinetis_dma.c
Go to the documentation of this file.
1/*
2 ChibiOS - Copyright (C) 2014-2015 Fabio Utzig
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17/**
18 * @file DMAv1/kinetis_dma.c
19 * @brief DMA subsystem low level driver.
20 * @author andreika <prometheus.pcb@gmail.com>
21 *
22 * @addtogroup PAL
23 * @{
24 */
25
26#include "osal.h"
27#include "hal.h"
28#include "fsl_edma.h"
29#include "fsl_dmamux.h"
30
31void dmaInit(void) {
32 DMAMUX_Init(DMAMUX);
33
34 edma_config_t eConfig;
35 EDMA_GetDefaultConfig(&eConfig);
36 eConfig.enableHaltOnError = false;
37 //eConfig.enableDebugMode = false;
38 EDMA_Init(DMA0, &eConfig);
39}
void dmaInit(void)
Definition kinetis_dma.c:31
void DMAMUX_Init(DMAMUX_Type *base)
Initializes the DMAMUX peripheral.
Definition fsl_dmamux.c:73
bool enableHaltOnError
Definition fsl_edma.h:157
void EDMA_GetDefaultConfig(edma_config_t *config)
Gets the eDMA default configuration structure.
Definition fsl_edma.c:165
void EDMA_Init(DMA_Type *base, const edma_config_t *config)
Initializes the eDMA peripheral.
Definition fsl_edma.c:113
eDMA global configuration structure.
Definition fsl_edma.h:153