ISSDK
1.8
IoT Sensing Software Development Kit
boardkit
evk-mimxrt685
RTE_Device.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016, Freescale Semiconductor, Inc.
3
* Copyright 2016-2017 NXP
4
* All rights reserved.
5
*
6
*
7
* SPDX-License-Identifier: BSD-3-Clause
8
*/
9
#ifndef __RTE_DEVICE_H
10
#define __RTE_DEVICE_H
11
12
/*Driver name mapping*/
13
#define RTE_I2C2 1
14
#define RTE_I2C2_DMA_EN 0
15
16
/*I2C configuration*/
17
#define RTE_I2C4_Master_DMA_BASE DMA0
18
#define RTE_I2C4_Master_DMA_CH 9
19
20
/* Driver name mapping. */
21
#define RTE_USART0 1
22
#define RTE_USART0_DMA_EN 0
23
#define RTE_USART1 0
24
#define RTE_USART1_DMA_EN 0
25
#define RTE_USART2 0
26
#define RTE_USART2_DMA_EN 0
27
#define RTE_USART3 0
28
#define RTE_USART3_DMA_EN 0
29
#define RTE_USART4 0
30
#define RTE_USART4_DMA_EN 0
31
#define RTE_USART5 0
32
#define RTE_USART5_DMA_EN 0
33
34
/* USART configuration. */
35
#define USART_RX_BUFFER_LEN 64
36
#define USART0_RX_BUFFER_ENABLE 1
37
#define USART1_RX_BUFFER_ENABLE 0
38
#define USART2_RX_BUFFER_ENABLE 0
39
#define USART3_RX_BUFFER_ENABLE 0
40
#define USART4_RX_BUFFER_ENABLE 0
41
#define USART5_RX_BUFFER_ENABLE 0
42
43
#define RTE_USART0_DMA_TX_CH 1
44
#define RTE_USART0_DMA_TX_DMA_BASE DMA0
45
#define RTE_USART0_DMA_RX_CH 0
46
#define RTE_USART0_DMA_RX_DMA_BASE DMA0
47
48
#define RTE_USART1_DMA_TX_CH 3
49
#define RTE_USART1_DMA_TX_DMA_BASE DMA0
50
#define RTE_USART1_DMA_RX_CH 2
51
#define RTE_USART1_DMA_RX_DMA_BASE DMA0
52
53
#define RTE_USART2_DMA_TX_CH 5
54
#define RTE_USART2_DMA_TX_DMA_BASE DMA0
55
#define RTE_USART2_DMA_RX_CH 4
56
#define RTE_USART2_DMA_RX_DMA_BASE DMA0
57
58
#define RTE_USART3_DMA_TX_CH 7
59
#define RTE_USART3_DMA_TX_DMA_BASE DMA0
60
#define RTE_USART3_DMA_RX_CH 6
61
#define RTE_USART3_DMA_RX_DMA_BASE DMA0
62
63
#define RTE_USART4_DMA_TX_CH 9
64
#define RTE_USART4_DMA_TX_DMA_BASE DMA0
65
#define RTE_USART4_DMA_RX_CH 8
66
#define RTE_USART4_DMA_RX_DMA_BASE DMA0
67
68
#define RTE_USART5_DMA_TX_CH 11
69
#define RTE_USART5_DMA_TX_DMA_BASE DMA0
70
#define RTE_USART5_DMA_RX_CH 10
71
#define RTE_USART5_DMA_RX_DMA_BASE DMA0
72
73
/*Driver name mapping*/
74
#define RTE_SPI0 0
75
#define RTE_SPI0_DMA_EN 0
76
#define RTE_SPI1 0
77
#define RTE_SPI1_DMA_EN 0
78
#define RTE_SPI2 0
79
#define RTE_SPI2_DMA_EN 0
80
#define RTE_SPI3 0
81
#define RTE_SPI3_DMA_EN 0
82
#define RTE_SPI4 0
83
#define RTE_SPI4_DMA_EN 0
84
#define RTE_SPI5 1
85
#define RTE_SPI5_DMA_EN 0
86
#define RTE_SPI14 0
87
#define RTE_SPI14_DMA_EN 0
88
89
/* SPI configuration. */
90
#define RTE_SPI0_SSEL_NUM kSPI_Ssel0
91
#define RTE_SPI0_DMA_TX_CH 1
92
#define RTE_SPI0_DMA_TX_DMA_BASE DMA0
93
#define RTE_SPI0_DMA_RX_CH 0
94
#define RTE_SPI0_DMA_RX_DMA_BASE DMA0
95
96
#define RTE_SPI1_SSEL_NUM kSPI_Ssel0
97
#define RTE_SPI1_DMA_TX_CH 3
98
#define RTE_SPI1_DMA_TX_DMA_BASE DMA0
99
#define RTE_SPI1_DMA_RX_CH 2
100
#define RTE_SPI1_DMA_RX_DMA_BASE DMA0
101
102
#define RTE_SPI2_SSEL_NUM kSPI_Ssel0
103
#define RTE_SPI2_DMA_TX_CH 5
104
#define RTE_SPI2_DMA_TX_DMA_BASE DMA0
105
#define RTE_SPI2_DMA_RX_CH 4
106
#define RTE_SPI2_DMA_RX_DMA_BASE DMA0
107
108
#define RTE_SPI3_SSEL_NUM kSPI_Ssel0
109
#define RTE_SPI3_DMA_TX_CH 7
110
#define RTE_SPI3_DMA_TX_DMA_BASE DMA0
111
#define RTE_SPI3_DMA_RX_CH 6
112
#define RTE_SPI3_DMA_RX_DMA_BASE DMA0
113
114
#define RTE_SPI4_SSEL_NUM kSPI_Ssel0
115
#define RTE_SPI4_DMA_TX_CH 9
116
#define RTE_SPI4_DMA_TX_DMA_BASE DMA0
117
#define RTE_SPI4_DMA_RX_CH 8
118
#define RTE_SPI4_DMA_RX_DMA_BASE DMA0
119
120
#define RTE_SPI5_SSEL_NUM kSPI_Ssel0
121
#define RTE_SPI5_DMA_TX_CH 11
122
#define RTE_SPI5_DMA_TX_DMA_BASE DMA0
123
#define RTE_SPI5_DMA_RX_CH 10
124
#define RTE_SPI5_DMA_RX_DMA_BASE DMA0
125
126
#define RTE_SPI14_SSEL_NUM kSPI_Ssel0
127
#define RTE_SPI14_DMA_TX_CH 27
128
#define RTE_SPI14_DMA_TX_DMA_BASE DMA0
129
#define RTE_SPI14_DMA_RX_CH 26
130
#define RTE_SPI14_DMA_RX_DMA_BASE DMA0
131
132
#endif
/* __RTE_DEVICE_H */
© Copyright 2016-2020 NXP. All Rights Reserved.