rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
kinetis_dma.h
Go to the documentation of this file.
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
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.h
19 * @brief DMA helper driver header.
20 * @author andreika <prometheus.pcb@gmail.com>
21 * @note This driver uses the new naming convention used for the KINETIS
22 * so the "DMA channels" are referred as "DMA streams".
23 *
24 * @addtogroup KINETIS_DMA
25 * @{
26 */
27
28#ifndef KINETIS_DMA_H
29#define KINETIS_DMA_H
30
31/*===========================================================================*/
32/* Driver constants. */
33/*===========================================================================*/
34
35#define KINETIS_DMA_STREAM_UART0_RX 1
36#define KINETIS_DMA_STREAM_UART0_TX 2
37
38#define KINETIS_DMA_STREAM_UART1_RX 3
39#define KINETIS_DMA_STREAM_UART1_TX 4
40
41#define KINETIS_DMA_STREAM_SPI_RX 5
42#define KINETIS_DMA_STREAM_SPI_TX 6
43
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48 void dmaInit(void);
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* KINETIS_DMA_H */
54
55/** @} */
void dmaInit(void)
Definition kinetis_dma.c:31