ISSDK
1.7
IoT Sensing Software Development Kit
boardkit
frdm-k64f
RTE_Device.h
Go to the documentation of this file.
1
/*
2
* The Clear BSD License
3
* Copyright (c) 2016, Freescale Semiconductor, Inc.
4
* Copyright 2016-2017 NXP
5
* All rights reserved.
6
*
7
* Redistribution and use in source and binary forms, with or without modification,
8
* are permitted (subject to the limitations in the disclaimer below) provided
9
* that the following conditions are met:
10
*
11
* o Redistributions of source code must retain the above copyright notice, this list
12
* of conditions and the following disclaimer.
13
*
14
* o Redistributions in binary form must reproduce the above copyright notice, this
15
* list of conditions and the following disclaimer in the documentation and/or
16
* other materials provided with the distribution.
17
*
18
* o Neither the name of the copyright holder nor the names of its
19
* contributors may be used to endorse or promote products derived from this
20
* software without specific prior written permission.
21
*
22
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
23
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
*/
34
#ifndef __RTE_DEVICE_H
35
#define __RTE_DEVICE_H
36
37
/*Driver name mapping*/
38
#define RTE_I2C0 1
39
#define RTE_I2C0_DMA_EN 0
40
#define RTE_I2C1 1
41
#define RTE_I2C1_DMA_EN 0
42
43
#define RTE_SPI0 1
44
#define RTE_SPI0_DMA_EN 0
45
#define RTE_SPI1 0
46
#define RTE_SPI1_DMA_EN 0
47
48
#define RTE_USART0 1
49
#define RTE_USART0_DMA_EN 0
50
#define RTE_USART1 0
51
#define RTE_USART1_DMA_EN 0
52
#define RTE_USART2 0
53
#define RTE_USART2_DMA_EN 0
54
#define RTE_USART3 1
55
#define RTE_USART3_DMA_EN 0
56
57
/* UART configuration. */
58
#define USART_RX_BUFFER_LEN 64
59
#define USART0_RX_BUFFER_ENABLE 1
60
#define USART3_RX_BUFFER_ENABLE 1
61
62
/* I2C configuration */
63
#define RTE_I2C0_Master_DMA_BASE DMA0
64
#define RTE_I2C0_Master_DMA_CH 0
65
#define RTE_I2C0_Master_DMAMUX_BASE DMAMUX0
66
#define RTE_I2C0_Master_PERI_SEL kDmaRequestMux0I2C0
67
68
#define RTE_I2C1_Master_DMA_BASE DMA0
69
#define RTE_I2C1_Master_DMA_CH 1
70
#define RTE_I2C1_Master_DMAMUX_BASE DMAMUX0
71
#define RTE_I2C1_Master_PERI_SEL kDmaRequestMux0I2C1
72
73
#define RTE_I2C2_Master_DMA_BASE DMA0
74
#define RTE_I2C2_Master_DMA_CH 2
75
#define RTE_I2C2_Master_DMAMUX_BASE DMAMUX0
76
#define RTE_I2C2_Master_PERI_SEL kDmaRequestMux0I2C2
77
78
/* DSPI configuration. */
79
#define RTE_SPI0_PCS_TO_SCK_DELAY 1000
80
#define RTE_SPI0_SCK_TO_PSC_DELAY 1000
81
#define RTE_SPI0_BETWEEN_TRANSFER_DELAY 1000
82
#define RTE_SPI0_MASTER_PCS_PIN_SEL kDSPI_MasterPcs0
83
#define RTE_SPI0_DMA_TX_CH 0
84
#define RTE_SPI0_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0SPI0Tx
85
#define RTE_SPI0_DMA_TX_DMAMUX_BASE DMAMUX0
86
#define RTE_SPI0_DMA_TX_DMA_BASE DMA0
87
#define RTE_SPI0_DMA_RX_CH 1
88
#define RTE_SPI0_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0SPI0Rx
89
#define RTE_SPI0_DMA_RX_DMAMUX_BASE DMAMUX0
90
#define RTE_SPI0_DMA_RX_DMA_BASE DMA0
91
#define RTE_SPI0_DMA_LINK_DMA_BASE DMA0
92
#define RTE_SPI0_DMA_LINK_CH 2
93
94
#define RTE_SPI1_PCS_TO_SCK_DELAY 1000
95
#define RTE_SPI1_SCK_TO_PSC_DELAY 1000
96
#define RTE_SPI1_BETWEEN_TRANSFER_DELAY 1000
97
#define RTE_SPI1_MASTER_PCS_PIN_SEL kDSPI_MasterPcs0
98
#define RTE_SPI1_DMA_TX_CH 0
99
#define RTE_SPI1_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0SPI1
100
#define RTE_SPI1_DMA_TX_DMAMUX_BASE DMAMUX0
101
#define RTE_SPI1_DMA_TX_DMA_BASE DMA0
102
#define RTE_SPI1_DMA_RX_CH 1
103
#define RTE_SPI1_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0SPI1
104
#define RTE_SPI1_DMA_RX_DMAMUX_BASE DMAMUX0
105
#define RTE_SPI1_DMA_RX_DMA_BASE DMA0
106
#define RTE_SPI1_DMA_LINK_DMA_BASE DMA0
107
#define RTE_SPI1_DMA_LINK_CH 2
108
109
#define RTE_SPI2_PCS_TO_SCK_DELAY 1000
110
#define RTE_SPI2_SCK_TO_PSC_DELAY 1000
111
#define RTE_SPI2_BETWEEN_TRANSFER_DELAY 1000
112
#define RTE_SPI2_MASTER_PCS_PIN_SEL kDSPI_MasterPcs0
113
#define RTE_SPI2_DMA_TX_CH 0
114
#define RTE_SPI2_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0SPI2
115
#define RTE_SPI2_DMA_TX_DMAMUX_BASE DMAMUX0
116
#define RTE_SPI2_DMA_TX_DMA_BASE DMA0
117
#define RTE_SPI2_DMA_RX_CH 1
118
#define RTE_SPI2_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0SPI2
119
#define RTE_SPI2_DMA_RX_DMAMUX_BASE DMAMUX0
120
#define RTE_SPI2_DMA_RX_DMA_BASE DMA0
121
#define RTE_SPI2_DMA_LINK_DMA_BASE DMA0
122
#define RTE_SPI2_DMA_LINK_CH 2
123
124
/* UART configuration. */
125
#define RTE_USART0_DMA_TX_CH 0
126
#define RTE_USART0_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART0Tx
127
#define RTE_USART0_DMA_TX_DMAMUX_BASE DMAMUX0
128
#define RTE_USART0_DMA_TX_DMA_BASE DMA0
129
#define RTE_USART0_DMA_RX_CH 1
130
#define RTE_USART0_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART0Rx
131
#define RTE_USART0_DMA_RX_DMAMUX_BASE DMAMUX0
132
#define RTE_USART0_DMA_RX_DMA_BASE DMA0
133
134
#define RTE_USART1_DMA_TX_CH 0
135
#define RTE_USART1_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART1Tx
136
#define RTE_USART1_DMA_TX_DMAMUX_BASE DMAMUX0
137
#define RTE_USART1_DMA_TX_DMA_BASE DMA0
138
#define RTE_USART1_DMA_RX_CH 1
139
#define RTE_USART1_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART1Rx
140
#define RTE_USART1_DMA_RX_DMAMUX_BASE DMAMUX0
141
#define RTE_USART1_DMA_RX_DMA_BASE DMA0
142
143
#define RTE_USART2_DMA_TX_CH 0
144
#define RTE_USART2_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART2Tx
145
#define RTE_USART2_DMA_TX_DMAMUX_BASE DMAMUX0
146
#define RTE_USART2_DMA_TX_DMA_BASE DMA0
147
#define RTE_USART2_DMA_RX_CH 1
148
#define RTE_USART2_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART2Rx
149
#define RTE_USART2_DMA_RX_DMAMUX_BASE DMAMUX0
150
#define RTE_USART2_DMA_RX_DMA_BASE DMA0
151
152
#define RTE_USART3_DMA_TX_CH 0
153
#define RTE_USART3_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART3Tx
154
#define RTE_USART3_DMA_TX_DMAMUX_BASE DMAMUX0
155
#define RTE_USART3_DMA_TX_DMA_BASE DMA0
156
#define RTE_USART3_DMA_RX_CH 1
157
#define RTE_USART3_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART3Rx
158
#define RTE_USART3_DMA_RX_DMAMUX_BASE DMAMUX0
159
#define RTE_USART3_DMA_RX_DMA_BASE DMA0
160
161
#define RTE_USART4_DMA_TX_CH 0
162
#define RTE_USART4_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART4
163
#define RTE_USART4_DMA_TX_DMAMUX_BASE DMAMUX0
164
#define RTE_USART4_DMA_TX_DMA_BASE DMA0
165
#define RTE_USART4_DMA_RX_CH 1
166
#define RTE_USART4_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART4
167
#define RTE_USART4_DMA_RX_DMAMUX_BASE DMAMUX0
168
#define RTE_USART4_DMA_RX_DMA_BASE DMA0
169
170
#define RTE_USART5_DMA_TX_CH 0
171
#define RTE_USART5_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART5
172
#define RTE_USART5_DMA_TX_DMAMUX_BASE DMAMUX0
173
#define RTE_USART5_DMA_TX_DMA_BASE DMA0
174
#define RTE_USART5_DMA_RX_CH 1
175
#define RTE_USART5_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART5
176
#define RTE_USART5_DMA_RX_DMAMUX_BASE DMAMUX0
177
#define RTE_USART5_DMA_RX_DMA_BASE DMA0
178
179
#endif
/* __RTE_DEVICE_H */
© Freescale Semiconductor, Inc. 2016-2017. All Rights Reserved.