aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MK66F18/template/RTE_Device.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MK66F18/template/RTE_Device.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MK66F18/template/RTE_Device.h209
1 files changed, 209 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MK66F18/template/RTE_Device.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MK66F18/template/RTE_Device.h
new file mode 100644
index 000000000..eb23f7f89
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MK66F18/template/RTE_Device.h
@@ -0,0 +1,209 @@
1/*
2 * Copyright (c) 2016, Freescale Semiconductor, Inc.
3 * Copyright 2016-2020 NXP
4 * All rights reserved.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef _RTE_DEVICE_H
10#define _RTE_DEVICE_H
11
12#include "pin_mux.h"
13
14/* USART Select. */
15/* Select UART0 - UART4. */
16/* User needs to provide the implementation of LPUARTX_GetFreq/LPUARTX_InitPins/LPUARTX_DeinitPins for the enabled
17 * LPUART instance. */
18#define RTE_USART0 0
19#define RTE_USART0_DMA_EN 0
20#define RTE_USART1 0
21#define RTE_USART1_DMA_EN 0
22#define RTE_USART2 0
23#define RTE_USART2_DMA_EN 0
24#define RTE_USART3 0
25#define RTE_USART3_DMA_EN 0
26#define RTE_USART4 0
27#define RTE_USART4_DMA_EN 0
28
29/* Select LPUART0. */
30#define RTE_USART5 0
31#define RTE_USART5_DMA_EN 0
32
33/* UART configuration. */
34#define USART_RX_BUFFER_LEN 64
35#define USART0_RX_BUFFER_ENABLE 0
36#define USART1_RX_BUFFER_ENABLE 0
37#define USART2_RX_BUFFER_ENABLE 0
38#define USART3_RX_BUFFER_ENABLE 0
39#define USART4_RX_BUFFER_ENABLE 0
40#define USART5_RX_BUFFER_ENABLE 0
41
42#define RTE_USART0_PIN_INIT LPUART0_InitPins
43#define RTE_USART0_PIN_DEINIT LPUART0_DeinitPins
44#define RTE_USART0_DMA_TX_CH 0
45#define RTE_USART0_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART0Tx
46#define RTE_USART0_DMA_TX_DMAMUX_BASE DMAMUX0
47#define RTE_USART0_DMA_TX_DMA_BASE DMA0
48#define RTE_USART0_DMA_RX_CH 1
49#define RTE_USART0_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART0Rx
50#define RTE_USART0_DMA_RX_DMAMUX_BASE DMAMUX0
51#define RTE_USART0_DMA_RX_DMA_BASE DMA0
52
53#define RTE_USART1_PIN_INIT LPUART1_InitPins
54#define RTE_USART1_PIN_DEINIT LPUART1_DeinitPins
55#define RTE_USART1_DMA_TX_CH 0
56#define RTE_USART1_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART1Tx
57#define RTE_USART1_DMA_TX_DMAMUX_BASE DMAMUX0
58#define RTE_USART1_DMA_TX_DMA_BASE DMA0
59#define RTE_USART1_DMA_RX_CH 1
60#define RTE_USART1_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART1Rx
61#define RTE_USART1_DMA_RX_DMAMUX_BASE DMAMUX0
62#define RTE_USART1_DMA_RX_DMA_BASE DMA0
63
64#define RTE_USART2_PIN_INIT LPUART2_InitPins
65#define RTE_USART2_PIN_DEINIT LPUART2_DeinitPins
66#define RTE_USART2_DMA_TX_CH 0
67#define RTE_USART2_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART2Tx
68#define RTE_USART2_DMA_TX_DMAMUX_BASE DMAMUX0
69#define RTE_USART2_DMA_TX_DMA_BASE DMA0
70#define RTE_USART2_DMA_RX_CH 1
71#define RTE_USART2_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART2Rx
72#define RTE_USART2_DMA_RX_DMAMUX_BASE DMAMUX0
73#define RTE_USART2_DMA_RX_DMA_BASE DMA0
74
75#define RTE_USART3_PIN_INIT LPUART3_InitPins
76#define RTE_USART3_PIN_DEINIT LPUART3_DeinitPins
77#define RTE_USART3_DMA_TX_CH 0
78#define RTE_USART3_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART3Tx
79#define RTE_USART3_DMA_TX_DMAMUX_BASE DMAMUX0
80#define RTE_USART3_DMA_TX_DMA_BASE DMA0
81#define RTE_USART3_DMA_RX_CH 1
82#define RTE_USART3_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART3Rx
83#define RTE_USART3_DMA_RX_DMAMUX_BASE DMAMUX0
84#define RTE_USART3_DMA_RX_DMA_BASE DMA0
85
86#define RTE_USART4_PIN_INIT LPUART4_InitPins
87#define RTE_USART4_PIN_DEINIT LPUART4_DeinitPins
88#define RTE_USART4_DMA_TX_CH 0
89#define RTE_USART4_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0UART4
90#define RTE_USART4_DMA_TX_DMAMUX_BASE DMAMUX0
91#define RTE_USART4_DMA_TX_DMA_BASE DMA0
92#define RTE_USART4_DMA_RX_CH 1
93#define RTE_USART4_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0UART4
94#define RTE_USART4_DMA_RX_DMAMUX_BASE DMAMUX0
95#define RTE_USART4_DMA_RX_DMA_BASE DMA0
96
97#define RTE_USART5_PIN_INIT LPUART5_InitPins
98#define RTE_USART5_PIN_DEINIT LPUART5_DeinitPins
99#define RTE_USART5_DMA_TX_CH 0
100#define RTE_USART5_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0LPUART0Tx
101#define RTE_USART5_DMA_TX_DMAMUX_BASE DMAMUX0
102#define RTE_USART5_DMA_TX_DMA_BASE DMA0
103#define RTE_USART5_DMA_RX_CH 1
104#define RTE_USART5_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0LPUART0Rx
105#define RTE_USART5_DMA_RX_DMAMUX_BASE DMAMUX0
106#define RTE_USART5_DMA_RX_DMA_BASE DMA0
107
108/* I2C Select, I2C0 - I2C3. */
109/* User needs to provide the implementation of I2CX_GetFreq/I2CX_InitPins/I2CX_DeinitPins for the enabled I2C instance.
110 */
111#define RTE_I2C0 0
112#define RTE_I2C0_DMA_EN 0
113#define RTE_I2C1 0
114#define RTE_I2C1_DMA_EN 0
115#define RTE_I2C2 0
116#define RTE_I2C2_DMA_EN 0
117#define RTE_I2C3 0
118#define RTE_I2C3_DMA_EN 0
119
120/* I2C configuration */
121#define RTE_I2C0_Master_DMA_BASE DMA0
122#define RTE_I2C0_Master_DMA_CH 0
123#define RTE_I2C0_Master_DMAMUX_BASE DMAMUX0
124#define RTE_I2C0_Master_PERI_SEL kDmaRequestMux0I2C0
125
126#define RTE_I2C1_Master_DMA_BASE DMA0
127#define RTE_I2C1_Master_DMA_CH 1
128#define RTE_I2C1_Master_DMAMUX_BASE DMAMUX0
129#define RTE_I2C1_Master_PERI_SEL kDmaRequestMux0I2C1
130
131#define RTE_I2C2_Master_DMA_BASE DMA0
132#define RTE_I2C2_Master_DMA_CH 2
133#define RTE_I2C2_Master_DMAMUX_BASE DMAMUX0
134#define RTE_I2C2_Master_PERI_SEL kDmaRequestMux0I2C2
135
136#define RTE_I2C3_Master_DMA_BASE DMA0
137#define RTE_I2C3_Master_DMA_CH 3
138#define RTE_I2C3_Master_DMAMUX_BASE DMAMUX0
139#define RTE_I2C3_Master_PERI_SEL kDmaRequestMux0I2C3
140
141/* DSPI Select, DSPI0 - DSPI2. */
142/* User needs to provide the implementation of DSPIX_GetFreq/DSPIX_InitPins/DSPIX_DeinitPins for the enabled DSPI
143 * instance. */
144#define RTE_SPI0 0
145#define RTE_SPI0_DMA_EN 0
146#define RTE_SPI1 0
147#define RTE_SPI1_DMA_EN 0
148#define RTE_SPI2 0
149#define RTE_SPI2_DMA_EN 0
150
151/* DSPI configuration. */
152#define RTE_SPI0_PCS_TO_SCK_DELAY 1000
153#define RTE_SPI0_SCK_TO_PSC_DELAY 1000
154#define RTE_SPI0_BETWEEN_TRANSFER_DELAY 1000
155#define RTE_SPI0_MASTER_PCS_PIN_SEL kDSPI_MasterPcs0
156#define RTE_SPI0_PIN_INIT DSPI0_InitPins
157#define RTE_SPI0_PIN_DEINIT DSPI0_DeinitPins
158#define RTE_SPI0_DMA_TX_CH 0
159#define RTE_SPI0_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0SPI0Tx
160#define RTE_SPI0_DMA_TX_DMAMUX_BASE DMAMUX0
161#define RTE_SPI0_DMA_TX_DMA_BASE DMA0
162#define RTE_SPI0_DMA_RX_CH 1
163#define RTE_SPI0_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0SPI0Rx
164#define RTE_SPI0_DMA_RX_DMAMUX_BASE DMAMUX0
165#define RTE_SPI0_DMA_RX_DMA_BASE DMA0
166#define RTE_SPI0_DMA_LINK_DMA_BASE DMA0
167#define RTE_SPI0_DMA_LINK_CH 2
168
169#define RTE_SPI1_PCS_TO_SCK_DELAY 1000
170#define RTE_SPI1_SCK_TO_PSC_DELAY 1000
171#define RTE_SPI1_BETWEEN_TRANSFER_DELAY 1000
172#define RTE_SPI1_MASTER_PCS_PIN_SEL kDSPI_MasterPcs0
173#define RTE_SPI1_PIN_INIT DSPI1_InitPins
174#define RTE_SPI1_PIN_DEINIT DSPI1_DeinitPins
175#define RTE_SPI1_DMA_TX_CH 0
176#define RTE_SPI1_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0SPI1Tx
177#define RTE_SPI1_DMA_TX_DMAMUX_BASE DMAMUX0
178#define RTE_SPI1_DMA_TX_DMA_BASE DMA0
179#define RTE_SPI1_DMA_RX_CH 1
180#define RTE_SPI1_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0SPI1Rx
181#define RTE_SPI1_DMA_RX_DMAMUX_BASE DMAMUX0
182#define RTE_SPI1_DMA_RX_DMA_BASE DMA0
183#define RTE_SPI1_DMA_LINK_DMA_BASE DMA0
184#define RTE_SPI1_DMA_LINK_CH 2
185
186#define RTE_SPI2_PCS_TO_SCK_DELAY 1000
187#define RTE_SPI2_SCK_TO_PSC_DELAY 1000
188#define RTE_SPI2_BETWEEN_TRANSFER_DELAY 1000
189#define RTE_SPI2_MASTER_PCS_PIN_SEL kDSPI_MasterPcs0
190#define RTE_SPI2_PIN_INIT DSPI2_InitPins
191#define RTE_SPI2_PIN_DEINIT DSPI2_DeinitPins
192#define RTE_SPI2_DMA_TX_CH 0
193#define RTE_SPI2_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMux0SPI2Tx
194#define RTE_SPI2_DMA_TX_DMAMUX_BASE DMAMUX0
195#define RTE_SPI2_DMA_TX_DMA_BASE DMA0
196#define RTE_SPI2_DMA_RX_CH 1
197#define RTE_SPI2_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMux0SPI2Rx
198#define RTE_SPI2_DMA_RX_DMAMUX_BASE DMAMUX0
199#define RTE_SPI2_DMA_RX_DMA_BASE DMA0
200#define RTE_SPI2_DMA_LINK_DMA_BASE DMA0
201#define RTE_SPI2_DMA_LINK_CH 2
202
203/* ENET configuration. */
204#define RTE_ENET 1
205#define RTE_ENET_PHY_ADDRESS 0
206#define RTE_ENET_MII 0
207#define RTE_ENET_RMII 1
208
209#endif /* _RTE_DEVICE_H */