ISSDK  1.8
IoT Sensing Software Development Kit
RTE_Device.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 #ifndef __RTE_DEVICE_H
9 #define __RTE_DEVICE_H
10 
11 /*I2C Driver name mapping*/
12 #define RTE_I2C4 1
13 #define RTE_I2C4_DMA_EN 0
14 
15 /*USART Driver name mapping. */
16 #define RTE_USART0 1
17 #define RTE_USART0_DMA_EN 0
18 #define RTE_USART1 0
19 #define RTE_USART1_DMA_EN 0
20 #define RTE_USART2 0
21 #define RTE_USART2_DMA_EN 0
22 #define RTE_USART3 0
23 #define RTE_USART3_DMA_EN 0
24 #define RTE_USART4 0
25 #define RTE_USART4_DMA_EN 0
26 #define RTE_USART5 0
27 #define RTE_USART5_DMA_EN 0
28 #define RTE_USART6 0
29 #define RTE_USART6_DMA_EN 0
30 #define RTE_USART7 0
31 #define RTE_USART7_DMA_EN 0
32 
33 /*SPI Driver name mapping*/
34 #define RTE_SPI0 0
35 #define RTE_SPI0_DMA_EN 0
36 #define RTE_SPI1 0
37 #define RTE_SPI1_DMA_EN 0
38 #define RTE_SPI2 0
39 #define RTE_SPI2_DMA_EN 0
40 #define RTE_SPI3 0
41 #define RTE_SPI3_DMA_EN 0
42 #define RTE_SPI4 0
43 #define RTE_SPI4_DMA_EN 0
44 #define RTE_SPI5 0
45 #define RTE_SPI5_DMA_EN 0
46 #define RTE_SPI6 0
47 #define RTE_SPI6_DMA_EN 0
48 #define RTE_SPI7 1
49 #define RTE_SPI7_DMA_EN 0
50 
51 /*I2C configuration*/
52 #define RTE_I2C4_Master_DMA_BASE DMA0
53 #define RTE_I2C4_Master_DMA_CH 21
54 
55 /* USART configuration. */
56 #define USART_RX_BUFFER_LEN 64
57 #define USART0_RX_BUFFER_ENABLE 1
58 #define USART1_RX_BUFFER_ENABLE 0
59 #define USART2_RX_BUFFER_ENABLE 0
60 #define USART3_RX_BUFFER_ENABLE 0
61 #define USART4_RX_BUFFER_ENABLE 0
62 #define USART5_RX_BUFFER_ENABLE 0
63 #define USART6_RX_BUFFER_ENABLE 0
64 #define USART7_RX_BUFFER_ENABLE 0
65 
66 #define RTE_USART0_DMA_TX_CH 5
67 #define RTE_USART0_DMA_TX_DMA_BASE DMA0
68 #define RTE_USART0_DMA_RX_CH 4
69 #define RTE_USART0_DMA_RX_DMA_BASE DMA0
70 
71 #define RTE_USART1_DMA_TX_CH 7
72 #define RTE_USART1_DMA_TX_DMA_BASE DMA0
73 #define RTE_USART1_DMA_RX_CH 6
74 #define RTE_USART1_DMA_RX_DMA_BASE DMA0
75 
76 #define RTE_USART2_DMA_TX_CH 8
77 #define RTE_USART2_DMA_TX_DMA_BASE DMA0
78 #define RTE_USART2_DMA_RX_CH 9
79 #define RTE_USART2_DMA_RX_DMA_BASE DMA0
80 
81 #define RTE_USART3_DMA_TX_CH 10
82 #define RTE_USART3_DMA_TX_DMA_BASE DMA0
83 #define RTE_USART3_DMA_RX_CH 11
84 #define RTE_USART3_DMA_RX_DMA_BASE DMA0
85 
86 #define RTE_USART4_DMA_TX_CH 13
87 #define RTE_USART4_DMA_TX_DMA_BASE DMA0
88 #define RTE_USART4_DMA_RX_CH 12
89 #define RTE_USART4_DMA_RX_DMA_BASE DMA0
90 
91 #define RTE_USART5_DMA_TX_CH 15
92 #define RTE_USART5_DMA_TX_DMA_BASE DMA0
93 #define RTE_USART5_DMA_RX_CH 14
94 #define RTE_USART5_DMA_RX_DMA_BASE DMA0
95 
96 #define RTE_USART6_DMA_TX_CH 17
97 #define RTE_USART6_DMA_TX_DMA_BASE DMA0
98 #define RTE_USART6_DMA_RX_CH 16
99 #define RTE_USART6_DMA_RX_DMA_BASE DMA0
100 
101 #define RTE_USART7_DMA_TX_CH 19
102 #define RTE_USART7_DMA_TX_DMA_BASE DMA0
103 #define RTE_USART7_DMA_RX_CH 18
104 #define RTE_USART7_DMA_RX_DMA_BASE DMA0
105 
106 /* SPI configuration. */
107 #define RTE_SPI0_SSEL_NUM kSPI_Ssel0
108 #define RTE_SPI0_DMA_TX_CH 5
109 #define RTE_SPI0_DMA_TX_DMA_BASE DMA0
110 #define RTE_SPI0_DMA_RX_CH 4
111 #define RTE_SPI0_DMA_RX_DMA_BASE DMA0
112 
113 #define RTE_SPI1_SSEL_NUM kSPI_Ssel0
114 #define RTE_SPI1_DMA_TX_CH 7
115 #define RTE_SPI1_DMA_TX_DMA_BASE DMA0
116 #define RTE_SPI1_DMA_RX_CH 6
117 #define RTE_SPI1_DMA_RX_DMA_BASE DMA0
118 
119 #define RTE_SPI2_SSEL_NUM kSPI_Ssel0
120 #define RTE_SPI2_DMA_TX_CH 9
121 #define RTE_SPI2_DMA_TX_DMA_BASE DMA0
122 #define RTE_SPI2_DMA_RX_CH 8
123 #define RTE_SPI2_DMA_RX_DMA_BASE DMA0
124 
125 #define RTE_SPI3_SSEL_NUM kSPI_Ssel0
126 #define RTE_SPI3_DMA_TX_CH 11
127 #define RTE_SPI3_DMA_TX_DMA_BASE DMA0
128 #define RTE_SPI3_DMA_RX_CH 10
129 #define RTE_SPI3_DMA_RX_DMA_BASE DMA0
130 
131 #define RTE_SPI4_SSEL_NUM kSPI_Ssel0
132 #define RTE_SPI4_DMA_TX_CH 13
133 #define RTE_SPI4_DMA_TX_DMA_BASE DMA0
134 #define RTE_SPI4_DMA_RX_CH 12
135 #define RTE_SPI4_DMA_RX_DMA_BASE DMA0
136 
137 #define RTE_SPI5_SSEL_NUM kSPI_Ssel0
138 #define RTE_SPI5_DMA_TX_CH 15
139 #define RTE_SPI5_DMA_TX_DMA_BASE DMA0
140 #define RTE_SPI5_DMA_RX_CH 14
141 #define RTE_SPI5_DMA_RX_DMA_BASE DMA0
142 
143 #define RTE_SPI6_SSEL_NUM kSPI_Ssel0
144 #define RTE_SPI6_DMA_TX_CH 17
145 #define RTE_SPI6_DMA_TX_DMA_BASE DMA0
146 #define RTE_SPI6_DMA_RX_CH 16
147 #define RTE_SPI6_DMA_RX_DMA_BASE DMA0
148 
149 #define RTE_SPI7_SSEL_NUM kSPI_Ssel1
150 #define RTE_SPI7_DMA_TX_CH 19
151 #define RTE_SPI7_DMA_TX_DMA_BASE DMA0
152 #define RTE_SPI7_DMA_RX_CH 18
153 #define RTE_SPI7_DMA_RX_DMA_BASE DMA0
154 #endif /* __RTE_DEVICE_H */
155 
156