diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1052/template/RTE_Device.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1052/template/RTE_Device.h | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1052/template/RTE_Device.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1052/template/RTE_Device.h new file mode 100644 index 000000000..efcb2c44f --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1052/template/RTE_Device.h | |||
@@ -0,0 +1,130 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016, Freescale Semiconductor, Inc. | ||
3 | * Copyright 2016-2020 NXP | ||
4 | * All rights reserved. | ||
5 | * | ||
6 | * | ||
7 | * SPDX-License-Identifier: BSD-3-Clause | ||
8 | */ | ||
9 | |||
10 | #ifndef _RTE_DEVICE_H | ||
11 | #define _RTE_DEVICE_H | ||
12 | |||
13 | #include "pin_mux.h" | ||
14 | |||
15 | /* UART Select, UART0 - UART5. */ | ||
16 | /* User needs to provide the implementation of LPUARTX_GetFreq/LPUARTX_InitPins/LPUARTX_DeinitPins for the enabled | ||
17 | * LPUART instance. */ | ||
18 | #define RTE_USART1 1 | ||
19 | #define RTE_USART1_DMA_EN 1 | ||
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 | #define RTE_USART8 0 | ||
33 | #define RTE_USART8_DMA_EN 0 | ||
34 | |||
35 | /* UART configuration. */ | ||
36 | #define RTE_USART1_PIN_INIT LPUART1_InitPins | ||
37 | #define RTE_USART1_PIN_DEINIT LPUART1_DeinitPins | ||
38 | #define RTE_USART1_DMA_TX_CH 0 | ||
39 | #define RTE_USART1_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART1Tx | ||
40 | #define RTE_USART1_DMA_TX_DMAMUX_BASE DMAMUX | ||
41 | #define RTE_USART1_DMA_TX_DMA_BASE DMA0 | ||
42 | #define RTE_USART1_DMA_RX_CH 1 | ||
43 | #define RTE_USART1_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART1Rx | ||
44 | #define RTE_USART1_DMA_RX_DMAMUX_BASE DMAMUX | ||
45 | #define RTE_USART1_DMA_RX_DMA_BASE DMA0 | ||
46 | |||
47 | #define RTE_USART2_PIN_INIT LPUART2_InitPins | ||
48 | #define RTE_USART2_PIN_DEINIT LPUART2_DeinitPins | ||
49 | #define RTE_USART2_DMA_TX_CH 2 | ||
50 | #define RTE_USART2_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART2Tx | ||
51 | #define RTE_USART2_DMA_TX_DMAMUX_BASE DMAMUX | ||
52 | #define RTE_USART2_DMA_TX_DMA_BASE DMA0 | ||
53 | #define RTE_USART2_DMA_RX_CH 3 | ||
54 | #define RTE_USART2_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART2Rx | ||
55 | #define RTE_USART2_DMA_RX_DMAMUX_BASE DMAMUX | ||
56 | #define RTE_USART2_DMA_RX_DMA_BASE DMA0 | ||
57 | |||
58 | #define RTE_USART3_PIN_INIT LPUART3_InitPins | ||
59 | #define RTE_USART3_PIN_DEINIT LPUART3_DeinitPins | ||
60 | #define RTE_USART3_DMA_TX_CH 4 | ||
61 | #define RTE_USART3_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART3Tx | ||
62 | #define RTE_USART3_DMA_TX_DMAMUX_BASE DMAMUX | ||
63 | #define RTE_USART3_DMA_TX_DMA_BASE DMA0 | ||
64 | #define RTE_USART3_DMA_RX_CH 5 | ||
65 | #define RTE_USART3_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART3Rx | ||
66 | #define RTE_USART3_DMA_RX_DMAMUX_BASE DMAMUX | ||
67 | #define RTE_USART3_DMA_RX_DMA_BASE DMA0 | ||
68 | |||
69 | #define RTE_USART4_PIN_INIT LPUART4_InitPins | ||
70 | #define RTE_USART4_PIN_DEINIT LPUART4_DeinitPins | ||
71 | #define RTE_USART4_DMA_TX_CH 6 | ||
72 | #define RTE_USART4_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART4Tx | ||
73 | #define RTE_USART4_DMA_TX_DMAMUX_BASE DMAMUX | ||
74 | #define RTE_USART4_DMA_TX_DMA_BASE DMA0 | ||
75 | #define RTE_USART4_DMA_RX_CH 7 | ||
76 | #define RTE_USART4_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART4Rx | ||
77 | #define RTE_USART4_DMA_RX_DMAMUX_BASE DMAMUX | ||
78 | #define RTE_USART4_DMA_RX_DMA_BASE DMA0 | ||
79 | |||
80 | #define RTE_USART5_PIN_INIT LPUART5_InitPins | ||
81 | #define RTE_USART5_PIN_DEINIT LPUART5_DeinitPins | ||
82 | #define RTE_USART5_DMA_TX_CH 8 | ||
83 | #define RTE_USART5_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART5Tx | ||
84 | #define RTE_USART5_DMA_TX_DMAMUX_BASE DMAMUX | ||
85 | #define RTE_USART5_DMA_TX_DMA_BASE DMA0 | ||
86 | #define RTE_USART5_DMA_RX_CH 9 | ||
87 | #define RTE_USART5_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART5Rx | ||
88 | #define RTE_USART5_DMA_RX_DMAMUX_BASE DMAMUX | ||
89 | #define RTE_USART5_DMA_RX_DMA_BASE DMA0 | ||
90 | |||
91 | #define RTE_USART6_PIN_INIT LPUART6_InitPins | ||
92 | #define RTE_USART6_PIN_DEINIT LPUART6_DeinitPins | ||
93 | #define RTE_USART6_DMA_TX_CH 10 | ||
94 | #define RTE_USART6_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART6Tx | ||
95 | #define RTE_USART6_DMA_TX_DMAMUX_BASE DMAMUX | ||
96 | #define RTE_USART6_DMA_TX_DMA_BASE DMA0 | ||
97 | #define RTE_USART6_DMA_RX_CH 11 | ||
98 | #define RTE_USART6_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART6Rx | ||
99 | #define RTE_USART6_DMA_RX_DMAMUX_BASE DMAMUX | ||
100 | #define RTE_USART6_DMA_RX_DMA_BASE DMA0 | ||
101 | |||
102 | #define RTE_USART7_PIN_INIT LPUART7_InitPins | ||
103 | #define RTE_USART7_PIN_DEINIT LPUART7_DeinitPins | ||
104 | #define RTE_USART7_DMA_TX_CH 12 | ||
105 | #define RTE_USART7_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART7Tx | ||
106 | #define RTE_USART7_DMA_TX_DMAMUX_BASE DMAMUX | ||
107 | #define RTE_USART7_DMA_TX_DMA_BASE DMA0 | ||
108 | #define RTE_USART7_DMA_RX_CH 13 | ||
109 | #define RTE_USART7_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART7Rx | ||
110 | #define RTE_USART7_DMA_RX_DMAMUX_BASE DMAMUX | ||
111 | #define RTE_USART7_DMA_RX_DMA_BASE DMA0 | ||
112 | |||
113 | #define RTE_USART8_PIN_INIT LPUART8_InitPins | ||
114 | #define RTE_USART8_PIN_DEINIT LPUART8_DeinitPins | ||
115 | #define RTE_USART8_DMA_TX_CH 14 | ||
116 | #define RTE_USART8_DMA_TX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART8Tx | ||
117 | #define RTE_USART8_DMA_TX_DMAMUX_BASE DMAMUX | ||
118 | #define RTE_USART8_DMA_TX_DMA_BASE DMA0 | ||
119 | #define RTE_USART8_DMA_RX_CH 15 | ||
120 | #define RTE_USART8_DMA_RX_PERI_SEL (uint8_t) kDmaRequestMuxLPUART8Rx | ||
121 | #define RTE_USART8_DMA_RX_DMAMUX_BASE DMAMUX | ||
122 | #define RTE_USART8_DMA_RX_DMA_BASE DMA0 | ||
123 | |||
124 | /* ENET configuration. */ | ||
125 | #define RTE_ENET 1 | ||
126 | #define RTE_ENET_PHY_ADDRESS 2 | ||
127 | #define RTE_ENET_MII 0 | ||
128 | #define RTE_ENET_RMII 1 | ||
129 | |||
130 | #endif /* _RTE_DEVICE_H */ | ||