ISSDK
1.8
IoT Sensing Software Development Kit
boardkit
mek-mimx8qm
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
/* LPI2C instance mapping */
12
#define LPI2C0 CM4_0__LPI2C
13
#define LPI2C1 CM4_1__LPI2C
14
#define LPI2C2 DMA__LPI2C0
15
#define LPI2C3 DMA__LPI2C1
16
#define LPI2C4 DMA__LPI2C2
17
#define LPI2C5 DMA__LPI2C3
18
#define LPI2C6 DMA__LPI2C4
19
20
/* Driver name mapping. */
21
#define RTE_I2C0 0
22
#define RTE_I2C0_DMA_EN 0
23
#define RTE_I2C1 0
24
#define RTE_I2C1_DMA_EN 0
25
#define RTE_I2C2 1
26
#define RTE_I2C2_DMA_EN 0
27
#define RTE_I2C3 0
28
#define RTE_I2C3_DMA_EN 0
29
#define RTE_I2C4 0
30
#define RTE_I2C4_DMA_EN 0
31
#define RTE_I2C5 0
32
#define RTE_I2C5_DMA_EN 0
33
#define RTE_I2C6 0
34
#define RTE_I2C6_DMA_EN 0
35
36
/* SPI instance name mapping */
37
#define LPSPI0 DMA__LPSPI0
38
#define LPSPI1 DMA__LPSPI1
39
#define LPSPI2 DMA__LPSPI2
40
#define LPSPI3 DMA__LPSPI3
41
42
/* Driver name mapping. */
43
#define RTE_SPI0 0
44
#define RTE_SPI0_DMA_EN 0
45
#define RTE_SPI1 0
46
#define RTE_SPI1_DMA_EN 0
47
#define RTE_SPI2 1
48
#define RTE_SPI2_DMA_EN 0
49
#define RTE_SPI3 0
50
#define RTE_SPI3_DMA_EN 0
51
52
/* USART instance mapping */
53
#define LPUART0 CM4_0__LPUART
54
#define LPUART1 CM4_1__LPUART
55
#define LPUART2 DMA__LPUART0
56
#define LPUART3 DMA__LPUART1
57
#define LPUART4 DMA__LPUART2
58
#define LPUART5 DMA__LPUART3
59
#define LPUART6 DMA__LPUART4
60
61
/* Driver name mapping. */
62
#define RTE_USART0 0
63
#define RTE_USART0_DMA_EN 0
64
#define RTE_USART1 0
65
#define RTE_USART1_DMA_EN 0
66
#define RTE_USART2 0
67
#define RTE_USART2_DMA_EN 0
68
#define RTE_USART3 0
69
#define RTE_USART3_DMA_EN 0
70
#define RTE_USART4 1
71
#define RTE_USART4_DMA_EN 0
72
#define RTE_USART5 0
73
#define RTE_USART5_DMA_EN 0
74
#define RTE_USART6 0
75
#define RTE_USART6_DMA_EN 0
76
77
/* LPI2C configuration. */
78
/*Note: LPI2C0 and LPI2C1 not support DMA */
79
#define RTE_I2C2_DMA_TX_CH 1
80
#define RTE_I2C2_DMA_TX_PERI_SEL 1
81
#define RTE_I2C2_DMA_TX_DMA_BASE DMA__DMA1
82
#define RTE_I2C2_DMA_RX_CH 0
83
#define RTE_I2C2_DMA_RX_PERI_SEL 0
84
#define RTE_I2C2_DMA_RX_DMA_BASE DMA__DMA1
85
86
#define RTE_I2C3_DMA_TX_CH 3
87
#define RTE_I2C3_DMA_TX_PERI_SEL 3
88
#define RTE_I2C3_DMA_TX_DMA_BASE DMA__DMA1
89
#define RTE_I2C3_DMA_RX_CH 2
90
#define RTE_I2C3_DMA_RX_PERI_SEL 2
91
#define RTE_I2C3_DMA_RX_DMA_BASE DMA__DMA1
92
93
#define RTE_I2C4_DMA_TX_CH 5
94
#define RTE_I2C4_DMA_TX_PERI_SEL 5
95
#define RTE_I2C4_DMA_TX_DMA_BASE DMA__DMA1
96
#define RTE_I2C4_DMA_RX_CH 4
97
#define RTE_I2C4_DMA_RX_PERI_SEL 4
98
#define RTE_I2C4_DMA_RX_DMA_BASE DMA__DMA1
99
100
#define RTE_I2C5_DMA_TX_CH 7
101
#define RTE_I2C5_DMA_TX_PERI_SEL 7
102
#define RTE_I2C5_DMA_TX_DMA_BASE DMA__DMA1
103
#define RTE_I2C5_DMA_RX_CH 6
104
#define RTE_I2C5_DMA_RX_PERI_SEL 6
105
#define RTE_I2C5_DMA_RX_DMA_BASE DMA__DMA1
106
107
#define RTE_I2C6_DMA_TX_CH 9
108
#define RTE_I2C6_DMA_TX_PERI_SEL 9
109
#define RTE_I2C6_DMA_TX_DMA_BASE DMA__DMA1
110
#define RTE_I2C6_DMA_RX_CH 8
111
#define RTE_I2C6_DMA_RX_PERI_SEL 8
112
#define RTE_I2C6_DMA_RX_DMA_BASE DMA__DMA1
113
114
/* UART configuration. */
115
#define USART_RX_BUFFER_LEN 64
116
#define USART4_RX_BUFFER_ENABLE 1
117
118
/* Note: LPUART0, LPUART1 not support DMA mode */
119
#define RTE_USART2_DMA_TX_CH 13
120
#define RTE_USART2_DMA_TX_PERI_SEL 13
121
#define RTE_USART2_DMA_TX_DMA_BASE DMA__DMA0
122
#define RTE_USART2_DMA_RX_CH 12
123
#define RTE_USART2_DMA_RX_PERI_SEL 12
124
#define RTE_USART2_DMA_RX_DMA_BASE DMA__DMA0
125
126
#define RTE_USART3_DMA_TX_CH 15
127
#define RTE_USART3_DMA_TX_PERI_SEL 15
128
#define RTE_USART3_DMA_TX_DMA_BASE DMA__DMA0
129
#define RTE_USART3_DMA_RX_CH 14
130
#define RTE_USART3_DMA_RX_PERI_SEL 14
131
#define RTE_USART3_DMA_RX_DMA_BASE DMA__DMA0
132
133
#define RTE_USART4_DMA_TX_CH 17
134
#define RTE_USART4_DMA_TX_PERI_SEL 17
135
#define RTE_USART4_DMA_TX_DMA_BASE DMA__DMA0
136
#define RTE_USART4_DMA_RX_CH 16
137
#define RTE_USART4_DMA_RX_PERI_SEL 16
138
#define RTE_USART4_DMA_RX_DMA_BASE DMA__DMA0
139
140
#define RTE_USART5_DMA_TX_CH 19
141
#define RTE_USART5_DMA_TX_PERI_SEL 19
142
#define RTE_USART5_DMA_TX_DMA_BASE DMA__DMA0
143
#define RTE_USART5_DMA_RX_CH 18
144
#define RTE_USART5_DMA_RX_PERI_SEL 18
145
#define RTE_USART5_DMA_RX_DMA_BASE DMA__DMA0
146
147
#define RTE_USART6_DMA_TX_CH 21
148
#define RTE_USART6_DMA_TX_PERI_SEL 21
149
#define RTE_USART6_DMA_TX_DMA_BASE DMA__DMA0
150
#define RTE_USART6_DMA_RX_CH 20
151
#define RTE_USART6_DMA_RX_PERI_SEL 20
152
#define RTE_USART6_DMA_RX_DMA_BASE DMA__DMA0
153
154
#endif
/* __RTE_DEVICE_H */
© Copyright 2016-2020 NXP. All Rights Reserved.