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