diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1015/MIMXRT1015_features.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1015/MIMXRT1015_features.h | 550 |
1 files changed, 550 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1015/MIMXRT1015_features.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1015/MIMXRT1015_features.h new file mode 100644 index 000000000..8dff2d3bb --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1015/MIMXRT1015_features.h | |||
@@ -0,0 +1,550 @@ | |||
1 | /* | ||
2 | ** ################################################################### | ||
3 | ** Version: rev. 1.1, 2019-02-20 | ||
4 | ** Build: b201019 | ||
5 | ** | ||
6 | ** Abstract: | ||
7 | ** Chip specific module features. | ||
8 | ** | ||
9 | ** Copyright 2016 Freescale Semiconductor, Inc. | ||
10 | ** Copyright 2016-2020 NXP | ||
11 | ** All rights reserved. | ||
12 | ** | ||
13 | ** SPDX-License-Identifier: BSD-3-Clause | ||
14 | ** | ||
15 | ** http: www.nxp.com | ||
16 | ** mail: [email protected] | ||
17 | ** | ||
18 | ** Revisions: | ||
19 | ** - rev. 0.1 (2018-11-05) | ||
20 | ** Initial version. | ||
21 | ** - rev. 1.0 (2019-01-18) | ||
22 | ** Rev.0 Header GA | ||
23 | ** - rev. 1.1 (2019-02-20) | ||
24 | ** Update register SRC_SRSR's bitfield LOCKUP_SYSRESETREQ to LOCKUP. | ||
25 | ** | ||
26 | ** ################################################################### | ||
27 | */ | ||
28 | |||
29 | #ifndef _MIMXRT1015_FEATURES_H_ | ||
30 | #define _MIMXRT1015_FEATURES_H_ | ||
31 | |||
32 | /* SOC module features */ | ||
33 | |||
34 | /* @brief ADC availability on the SoC. */ | ||
35 | #define FSL_FEATURE_SOC_ADC_COUNT (1) | ||
36 | /* @brief AIPSTZ availability on the SoC. */ | ||
37 | #define FSL_FEATURE_SOC_AIPSTZ_COUNT (4) | ||
38 | /* @brief AOI availability on the SoC. */ | ||
39 | #define FSL_FEATURE_SOC_AOI_COUNT (1) | ||
40 | /* @brief CCM availability on the SoC. */ | ||
41 | #define FSL_FEATURE_SOC_CCM_COUNT (1) | ||
42 | /* @brief CCM_ANALOG availability on the SoC. */ | ||
43 | #define FSL_FEATURE_SOC_CCM_ANALOG_COUNT (1) | ||
44 | /* @brief DCDC availability on the SoC. */ | ||
45 | #define FSL_FEATURE_SOC_DCDC_COUNT (1) | ||
46 | /* @brief DCP availability on the SoC. */ | ||
47 | #define FSL_FEATURE_SOC_DCP_COUNT (1) | ||
48 | /* @brief DMAMUX availability on the SoC. */ | ||
49 | #define FSL_FEATURE_SOC_DMAMUX_COUNT (1) | ||
50 | /* @brief EDMA availability on the SoC. */ | ||
51 | #define FSL_FEATURE_SOC_EDMA_COUNT (1) | ||
52 | /* @brief ENC availability on the SoC. */ | ||
53 | #define FSL_FEATURE_SOC_ENC_COUNT (1) | ||
54 | /* @brief EWM availability on the SoC. */ | ||
55 | #define FSL_FEATURE_SOC_EWM_COUNT (1) | ||
56 | /* @brief FLEXIO availability on the SoC. */ | ||
57 | #define FSL_FEATURE_SOC_FLEXIO_COUNT (1) | ||
58 | /* @brief FLEXRAM availability on the SoC. */ | ||
59 | #define FSL_FEATURE_SOC_FLEXRAM_COUNT (1) | ||
60 | /* @brief FLEXSPI availability on the SoC. */ | ||
61 | #define FSL_FEATURE_SOC_FLEXSPI_COUNT (1) | ||
62 | /* @brief GPC availability on the SoC. */ | ||
63 | #define FSL_FEATURE_SOC_GPC_COUNT (1) | ||
64 | /* @brief GPT availability on the SoC. */ | ||
65 | #define FSL_FEATURE_SOC_GPT_COUNT (2) | ||
66 | /* @brief I2S availability on the SoC. */ | ||
67 | #define FSL_FEATURE_SOC_I2S_COUNT (3) | ||
68 | /* @brief IGPIO availability on the SoC. */ | ||
69 | #define FSL_FEATURE_SOC_IGPIO_COUNT (4) | ||
70 | /* @brief IOMUXC availability on the SoC. */ | ||
71 | #define FSL_FEATURE_SOC_IOMUXC_COUNT (1) | ||
72 | /* @brief IOMUXC_GPR availability on the SoC. */ | ||
73 | #define FSL_FEATURE_SOC_IOMUXC_GPR_COUNT (1) | ||
74 | /* @brief IOMUXC_SNVS availability on the SoC. */ | ||
75 | #define FSL_FEATURE_SOC_IOMUXC_SNVS_COUNT (1) | ||
76 | /* @brief KPP availability on the SoC. */ | ||
77 | #define FSL_FEATURE_SOC_KPP_COUNT (1) | ||
78 | /* @brief LPI2C availability on the SoC. */ | ||
79 | #define FSL_FEATURE_SOC_LPI2C_COUNT (2) | ||
80 | /* @brief LPSPI availability on the SoC. */ | ||
81 | #define FSL_FEATURE_SOC_LPSPI_COUNT (2) | ||
82 | /* @brief LPUART availability on the SoC. */ | ||
83 | #define FSL_FEATURE_SOC_LPUART_COUNT (4) | ||
84 | /* @brief OCOTP availability on the SoC. */ | ||
85 | #define FSL_FEATURE_SOC_OCOTP_COUNT (1) | ||
86 | /* @brief PIT availability on the SoC. */ | ||
87 | #define FSL_FEATURE_SOC_PIT_COUNT (1) | ||
88 | /* @brief PMU availability on the SoC. */ | ||
89 | #define FSL_FEATURE_SOC_PMU_COUNT (1) | ||
90 | /* @brief PWM availability on the SoC. */ | ||
91 | #define FSL_FEATURE_SOC_PWM_COUNT (1) | ||
92 | /* @brief ROMC availability on the SoC. */ | ||
93 | #define FSL_FEATURE_SOC_ROMC_COUNT (1) | ||
94 | /* @brief SNVS availability on the SoC. */ | ||
95 | #define FSL_FEATURE_SOC_SNVS_COUNT (1) | ||
96 | /* @brief SPDIF availability on the SoC. */ | ||
97 | #define FSL_FEATURE_SOC_SPDIF_COUNT (1) | ||
98 | /* @brief SRC availability on the SoC. */ | ||
99 | #define FSL_FEATURE_SOC_SRC_COUNT (1) | ||
100 | /* @brief TEMPMON availability on the SoC. */ | ||
101 | #define FSL_FEATURE_SOC_TEMPMON_COUNT (1) | ||
102 | /* @brief TMR availability on the SoC. */ | ||
103 | #define FSL_FEATURE_SOC_TMR_COUNT (1) | ||
104 | /* @brief TRNG availability on the SoC. */ | ||
105 | #define FSL_FEATURE_SOC_TRNG_COUNT (1) | ||
106 | /* @brief USBHS availability on the SoC. */ | ||
107 | #define FSL_FEATURE_SOC_USBHS_COUNT (1) | ||
108 | /* @brief USBNC availability on the SoC. */ | ||
109 | #define FSL_FEATURE_SOC_USBNC_COUNT (1) | ||
110 | /* @brief USBPHY availability on the SoC. */ | ||
111 | #define FSL_FEATURE_SOC_USBPHY_COUNT (1) | ||
112 | /* @brief USB_ANALOG availability on the SoC. */ | ||
113 | #define FSL_FEATURE_SOC_USB_ANALOG_COUNT (1) | ||
114 | /* @brief WDOG availability on the SoC. */ | ||
115 | #define FSL_FEATURE_SOC_WDOG_COUNT (2) | ||
116 | /* @brief XBARA availability on the SoC. */ | ||
117 | #define FSL_FEATURE_SOC_XBARA_COUNT (1) | ||
118 | /* @brief XBARB availability on the SoC. */ | ||
119 | #define FSL_FEATURE_SOC_XBARB_COUNT (1) | ||
120 | /* @brief XTALOSC24M availability on the SoC. */ | ||
121 | #define FSL_FEATURE_SOC_XTALOSC24M_COUNT (1) | ||
122 | /* @brief ROM API Availability */ | ||
123 | #define FSL_FEATURE_BOOT_ROM_HAS_ROMAPI (1) | ||
124 | |||
125 | /* ADC module features */ | ||
126 | |||
127 | /* @brief Remove Hardware Trigger feature. */ | ||
128 | #define FSL_FEATURE_ADC_SUPPORT_HARDWARE_TRIGGER_REMOVE (0) | ||
129 | /* @brief Remove ALT Clock selection feature. */ | ||
130 | #define FSL_FEATURE_ADC_SUPPORT_ALTCLK_REMOVE (1) | ||
131 | /* @brief Conversion control count (related to number of registers HCn and Rn). */ | ||
132 | #define FSL_FEATURE_ADC_CONVERSION_CONTROL_COUNT (8) | ||
133 | |||
134 | /* ADC_ETC module features */ | ||
135 | |||
136 | /* @brief Has DMA model control(bit field CTRL[DMA_MODE_SEL]). */ | ||
137 | #define FSL_FEATURE_ADC_ETC_HAS_CTRL_DMA_MODE_SEL (1) | ||
138 | /* @brief Has TRIGm_CHAIN_a_b IEn_EN. */ | ||
139 | #define FSL_FEATURE_ADC_ETC_HAS_TRIGm_CHAIN_a_b_IEn_EN (0) | ||
140 | |||
141 | /* AOI module features */ | ||
142 | |||
143 | /* @brief Maximum value of input mux. */ | ||
144 | #define FSL_FEATURE_AOI_MODULE_INPUTS (4) | ||
145 | /* @brief Number of events related to number of registers AOIx_BFCRT01n/AOIx_BFCRT23n. */ | ||
146 | #define FSL_FEATURE_AOI_EVENT_COUNT (4) | ||
147 | |||
148 | /* CCM module features */ | ||
149 | |||
150 | /* @brief Is affected by errata with ID 50235 (Incorrect clock setting for CAN affects by LPUART clock gate). */ | ||
151 | #define FSL_FEATURE_CCM_HAS_ERRATA_50235 (0) | ||
152 | |||
153 | /* DCDC module features */ | ||
154 | |||
155 | /* @brief Has CTRL register (register CTRL0/1). */ | ||
156 | #define FSL_FEATURE_DCDC_HAS_CTRL_REG (0) | ||
157 | /* @brief DCDC VDD output count. */ | ||
158 | #define FSL_FEATURE_DCDC_VDD_OUTPUT_COUNT (1) | ||
159 | /* @brief Has no current alert function (register bit field REG0[CURRENT_ALERT_RESET]). */ | ||
160 | #define FSL_FEATURE_DCDC_HAS_NO_CURRENT_ALERT_FUNC (0) | ||
161 | /* @brief Has switching converter differential mode (register bit field REG1[LOOPCTRL_EN_DF_HYST]). */ | ||
162 | #define FSL_FEATURE_DCDC_HAS_SWITCHING_CONVERTER_DIFFERENTIAL_MODE (0) | ||
163 | /* @brief Has register bit field REG0[REG_DCDC_IN_DET]. */ | ||
164 | #define FSL_FEATURE_DCDC_HAS_REG0_DCDC_IN_DET (0) | ||
165 | /* @brief Has no register bit field REG0[EN_LP_OVERLOAD_SNS]. */ | ||
166 | #define FSL_FEATURE_DCDC_HAS_NO_REG0_EN_LP_OVERLOAD_SNS (0) | ||
167 | /* @brief Has register bit field REG3[REG_FBK_SEL]). */ | ||
168 | #define FSL_FEATURE_DCDC_HAS_REG3_FBK_SEL (0) | ||
169 | |||
170 | /* EDMA module features */ | ||
171 | |||
172 | /* @brief Number of DMA channels (related to number of registers TCD, DCHPRI, bit fields ERQ[ERQn], EEI[EEIn], INT[INTn], ERR[ERRn], HRS[HRSn] and bit field widths ES[ERRCHN], CEEI[CEEI], SEEI[SEEI], CERQ[CERQ], SERQ[SERQ], CDNE[CDNE], SSRT[SSRT], CERR[CERR], CINT[CINT], TCDn_CITER_ELINKYES[LINKCH], TCDn_CSR[MAJORLINKCH], TCDn_BITER_ELINKYES[LINKCH]). (Valid only for eDMA modules.) */ | ||
173 | #define FSL_FEATURE_EDMA_MODULE_CHANNEL (32) | ||
174 | /* @brief Total number of DMA channels on all modules. */ | ||
175 | #define FSL_FEATURE_EDMA_DMAMUX_CHANNELS (32) | ||
176 | /* @brief Number of DMA channel groups (register bit fields CR[ERGA], CR[GRPnPRI], ES[GPE], DCHPRIn[GRPPRI]). (Valid only for eDMA modules.) */ | ||
177 | #define FSL_FEATURE_EDMA_CHANNEL_GROUP_COUNT (1) | ||
178 | /* @brief Has DMA_Error interrupt vector. */ | ||
179 | #define FSL_FEATURE_EDMA_HAS_ERROR_IRQ (1) | ||
180 | /* @brief Number of DMA channels with asynchronous request capability (register EARS). (Valid only for eDMA modules.) */ | ||
181 | #define FSL_FEATURE_EDMA_ASYNCHRO_REQUEST_CHANNEL_COUNT (32) | ||
182 | /* @brief Channel IRQ entry shared offset. */ | ||
183 | #define FSL_FEATURE_EDMA_MODULE_CHANNEL_IRQ_ENTRY_SHARED_OFFSET (16) | ||
184 | /* @brief If 8 bytes transfer supported. */ | ||
185 | #define FSL_FEATURE_EDMA_SUPPORT_8_BYTES_TRANSFER (1) | ||
186 | /* @brief If 16 bytes transfer supported. */ | ||
187 | #define FSL_FEATURE_EDMA_SUPPORT_16_BYTES_TRANSFER (0) | ||
188 | /* @brief If 32 bytes transfer supported. */ | ||
189 | #define FSL_FEATURE_EDMA_SUPPORT_32_BYTES_TRANSFER (1) | ||
190 | |||
191 | /* DMAMUX module features */ | ||
192 | |||
193 | /* @brief Number of DMA channels (related to number of register CHCFGn). */ | ||
194 | #define FSL_FEATURE_DMAMUX_MODULE_CHANNEL (32) | ||
195 | /* @brief Total number of DMA channels on all modules. */ | ||
196 | #define FSL_FEATURE_DMAMUX_DMAMUX_CHANNELS (32) | ||
197 | /* @brief Has the periodic trigger capability for the triggered DMA channel (register bit CHCFG0[TRIG]). */ | ||
198 | #define FSL_FEATURE_DMAMUX_HAS_TRIG (1) | ||
199 | /* @brief Has DMA Channel Always ON function (register bit CHCFG0[A_ON]). */ | ||
200 | #define FSL_FEATURE_DMAMUX_HAS_A_ON (1) | ||
201 | /* @brief Register CHCFGn width. */ | ||
202 | #define FSL_FEATURE_DMAMUX_CHCFG_REGISTER_WIDTH (32) | ||
203 | |||
204 | /* EWM module features */ | ||
205 | |||
206 | /* @brief Has clock select (register CLKCTRL). */ | ||
207 | #define FSL_FEATURE_EWM_HAS_CLOCK_SELECT (1) | ||
208 | /* @brief Has clock prescaler (register CLKPRESCALER). */ | ||
209 | #define FSL_FEATURE_EWM_HAS_PRESCALER (1) | ||
210 | |||
211 | /* FLEXIO module features */ | ||
212 | |||
213 | /* @brief Has Shifter Status Register (FLEXIO_SHIFTSTAT) */ | ||
214 | #define FSL_FEATURE_FLEXIO_HAS_SHIFTER_STATUS (1) | ||
215 | /* @brief Has Pin Data Input Register (FLEXIO_PIN) */ | ||
216 | #define FSL_FEATURE_FLEXIO_HAS_PIN_STATUS (1) | ||
217 | /* @brief Has Shifter Buffer N Nibble Byte Swapped Register (FLEXIO_SHIFTBUFNBSn) */ | ||
218 | #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_BYTE_SWAP (1) | ||
219 | /* @brief Has Shifter Buffer N Half Word Swapped Register (FLEXIO_SHIFTBUFHWSn) */ | ||
220 | #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_HALF_WORD_SWAP (1) | ||
221 | /* @brief Has Shifter Buffer N Nibble Swapped Register (FLEXIO_SHIFTBUFNISn) */ | ||
222 | #define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_SWAP (1) | ||
223 | /* @brief Supports Shifter State Mode (FLEXIO_SHIFTCTLn[SMOD]) */ | ||
224 | #define FSL_FEATURE_FLEXIO_HAS_STATE_MODE (1) | ||
225 | /* @brief Supports Shifter Logic Mode (FLEXIO_SHIFTCTLn[SMOD]) */ | ||
226 | #define FSL_FEATURE_FLEXIO_HAS_LOGIC_MODE (1) | ||
227 | /* @brief Supports paralle width (FLEXIO_SHIFTCFGn[PWIDTH]) */ | ||
228 | #define FSL_FEATURE_FLEXIO_HAS_PARALLEL_WIDTH (1) | ||
229 | /* @brief Reset value of the FLEXIO_VERID register */ | ||
230 | #define FSL_FEATURE_FLEXIO_VERID_RESET_VALUE (0x1010001) | ||
231 | /* @brief Reset value of the FLEXIO_PARAM register */ | ||
232 | #define FSL_FEATURE_FLEXIO_PARAM_RESET_VALUE (0x2200808) | ||
233 | /* @brief Flexio DMA request base channel */ | ||
234 | #define FSL_FEATURE_FLEXIO_DMA_REQUEST_BASE_CHANNEL (0) | ||
235 | |||
236 | /* FLEXRAM module features */ | ||
237 | |||
238 | /* @brief Bank size */ | ||
239 | #define FSL_FEATURE_FLEXRAM_INTERNAL_RAM_BANK_SIZE (32768) | ||
240 | /* @brief Total Bank numbers */ | ||
241 | #define FSL_FEATURE_FLEXRAM_INTERNAL_RAM_TOTAL_BANK_NUMBERS (4) | ||
242 | /* @brief Has FLEXRAM_MAGIC_ADDR. */ | ||
243 | #define FSL_FEATURE_FLEXRAM_HAS_MAGIC_ADDR (0) | ||
244 | |||
245 | /* FLEXSPI module features */ | ||
246 | |||
247 | /* @brief FlexSPI AHB buffer count */ | ||
248 | #define FSL_FEATURE_FLEXSPI_AHB_BUFFER_COUNTn(x) (4) | ||
249 | /* @brief FlexSPI has no data learn. */ | ||
250 | #define FSL_FEATURE_FLEXSPI_HAS_NO_DATA_LEARN (1) | ||
251 | /* @brief There is AHBBUSERROREN bit in INTEN register. */ | ||
252 | #define FSL_FEATURE_FLEXSPI_HAS_INTEN_AHBBUSERROREN (0) | ||
253 | /* @brief There is CLRAHBTX_RXBUF bit in AHBCR register. */ | ||
254 | #define FSL_FEATURE_FLEXSPI_HAS_AHBCR_CLRAHBTX_RXBUF (0) | ||
255 | |||
256 | /* GPC module features */ | ||
257 | |||
258 | /* @brief Has DVFS0 Change Request. */ | ||
259 | #define FSL_FEATURE_GPC_HAS_CNTR_DVFS0CR (0) | ||
260 | /* @brief Has GPC interrupt/event masking. */ | ||
261 | #define FSL_FEATURE_GPC_HAS_CNTR_GPCIRQM (0) | ||
262 | /* @brief Has L2 cache power control. */ | ||
263 | #define FSL_FEATURE_GPC_HAS_CNTR_L2PGE (0) | ||
264 | /* @brief Has FLEXRAM PDRAM0(bank1-7) power control. */ | ||
265 | #define FSL_FEATURE_GPC_HAS_CNTR_PDRAM0PGE (1) | ||
266 | /* @brief Has VADC power control. */ | ||
267 | #define FSL_FEATURE_GPC_HAS_CNTR_VADC (0) | ||
268 | /* @brief Has Display power control. */ | ||
269 | #define FSL_FEATURE_GPC_HAS_CNTR_DISPLAY (0) | ||
270 | /* @brief Supports IRQ 0-31. */ | ||
271 | #define FSL_FEATURE_GPC_HAS_IRQ_0_31 (1) | ||
272 | |||
273 | /* IGPIO module features */ | ||
274 | |||
275 | /* @brief Has data register set DR_SET. */ | ||
276 | #define FSL_FEATURE_IGPIO_HAS_DR_SET (1) | ||
277 | /* @brief Has data register clear DR_CLEAR. */ | ||
278 | #define FSL_FEATURE_IGPIO_HAS_DR_CLEAR (1) | ||
279 | /* @brief Has data register toggle DR_TOGGLE. */ | ||
280 | #define FSL_FEATURE_IGPIO_HAS_DR_TOGGLE (1) | ||
281 | |||
282 | /* LPI2C module features */ | ||
283 | |||
284 | /* @brief Has separate DMA RX and TX requests. */ | ||
285 | #define FSL_FEATURE_LPI2C_HAS_SEPARATE_DMA_RX_TX_REQn(x) (0) | ||
286 | /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */ | ||
287 | #define FSL_FEATURE_LPI2C_FIFO_SIZEn(x) (4) | ||
288 | |||
289 | /* LPSPI module features */ | ||
290 | |||
291 | /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */ | ||
292 | #define FSL_FEATURE_LPSPI_FIFO_SIZEn(x) (16) | ||
293 | /* @brief Has separate DMA RX and TX requests. */ | ||
294 | #define FSL_FEATURE_LPSPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1) | ||
295 | |||
296 | /* LPUART module features */ | ||
297 | |||
298 | /* @brief Has receive FIFO overflow detection (bit field CFIFO[RXOFE]). */ | ||
299 | #define FSL_FEATURE_LPUART_HAS_IRQ_EXTENDED_FUNCTIONS (0) | ||
300 | /* @brief Has low power features (can be enabled in wait mode via register bit C1[DOZEEN] or CTRL[DOZEEN] if the registers are 32-bit wide). */ | ||
301 | #define FSL_FEATURE_LPUART_HAS_LOW_POWER_UART_SUPPORT (1) | ||
302 | /* @brief Has extended data register ED (or extra flags in the DATA register if the registers are 32-bit wide). */ | ||
303 | #define FSL_FEATURE_LPUART_HAS_EXTENDED_DATA_REGISTER_FLAGS (1) | ||
304 | /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */ | ||
305 | #define FSL_FEATURE_LPUART_HAS_FIFO (1) | ||
306 | /* @brief Has 32-bit register MODIR */ | ||
307 | #define FSL_FEATURE_LPUART_HAS_MODIR (1) | ||
308 | /* @brief Hardware flow control (RTS, CTS) is supported. */ | ||
309 | #define FSL_FEATURE_LPUART_HAS_MODEM_SUPPORT (1) | ||
310 | /* @brief Infrared (modulation) is supported. */ | ||
311 | #define FSL_FEATURE_LPUART_HAS_IR_SUPPORT (1) | ||
312 | /* @brief 2 bits long stop bit is available. */ | ||
313 | #define FSL_FEATURE_LPUART_HAS_STOP_BIT_CONFIG_SUPPORT (1) | ||
314 | /* @brief If 10-bit mode is supported. */ | ||
315 | #define FSL_FEATURE_LPUART_HAS_10BIT_DATA_SUPPORT (1) | ||
316 | /* @brief If 7-bit mode is supported. */ | ||
317 | #define FSL_FEATURE_LPUART_HAS_7BIT_DATA_SUPPORT (1) | ||
318 | /* @brief Baud rate fine adjustment is available. */ | ||
319 | #define FSL_FEATURE_LPUART_HAS_BAUD_RATE_FINE_ADJUST_SUPPORT (0) | ||
320 | /* @brief Baud rate oversampling is available (has bit fields C4[OSR], C5[BOTHEDGE], C5[RESYNCDIS] or BAUD[OSR], BAUD[BOTHEDGE], BAUD[RESYNCDIS] if the registers are 32-bit wide). */ | ||
321 | #define FSL_FEATURE_LPUART_HAS_BAUD_RATE_OVER_SAMPLING_SUPPORT (1) | ||
322 | /* @brief Baud rate oversampling is available. */ | ||
323 | #define FSL_FEATURE_LPUART_HAS_RX_RESYNC_SUPPORT (1) | ||
324 | /* @brief Baud rate oversampling is available. */ | ||
325 | #define FSL_FEATURE_LPUART_HAS_BOTH_EDGE_SAMPLING_SUPPORT (1) | ||
326 | /* @brief Peripheral type. */ | ||
327 | #define FSL_FEATURE_LPUART_IS_SCI (1) | ||
328 | /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */ | ||
329 | #define FSL_FEATURE_LPUART_FIFO_SIZEn(x) (4) | ||
330 | /* @brief Supports two match addresses to filter incoming frames. */ | ||
331 | #define FSL_FEATURE_LPUART_HAS_ADDRESS_MATCHING (1) | ||
332 | /* @brief Has transmitter/receiver DMA enable bits C5[TDMAE]/C5[RDMAE] (or BAUD[TDMAE]/BAUD[RDMAE] if the registers are 32-bit wide). */ | ||
333 | #define FSL_FEATURE_LPUART_HAS_DMA_ENABLE (1) | ||
334 | /* @brief Has transmitter/receiver DMA select bits C4[TDMAS]/C4[RDMAS], resp. C5[TDMAS]/C5[RDMAS] if IS_SCI = 0. */ | ||
335 | #define FSL_FEATURE_LPUART_HAS_DMA_SELECT (0) | ||
336 | /* @brief Data character bit order selection is supported (bit field S2[MSBF] or STAT[MSBF] if the registers are 32-bit wide). */ | ||
337 | #define FSL_FEATURE_LPUART_HAS_BIT_ORDER_SELECT (1) | ||
338 | /* @brief Has smart card (ISO7816 protocol) support and no improved smart card support. */ | ||
339 | #define FSL_FEATURE_LPUART_HAS_SMART_CARD_SUPPORT (0) | ||
340 | /* @brief Has improved smart card (ISO7816 protocol) support. */ | ||
341 | #define FSL_FEATURE_LPUART_HAS_IMPROVED_SMART_CARD_SUPPORT (0) | ||
342 | /* @brief Has local operation network (CEA709.1-B protocol) support. */ | ||
343 | #define FSL_FEATURE_LPUART_HAS_LOCAL_OPERATION_NETWORK_SUPPORT (0) | ||
344 | /* @brief Has 32-bit registers (BAUD, STAT, CTRL, DATA, MATCH, MODIR) instead of 8-bit (BDH, BDL, C1, S1, D, etc.). */ | ||
345 | #define FSL_FEATURE_LPUART_HAS_32BIT_REGISTERS (1) | ||
346 | /* @brief Lin break detect available (has bit BAUD[LBKDIE]). */ | ||
347 | #define FSL_FEATURE_LPUART_HAS_LIN_BREAK_DETECT (1) | ||
348 | /* @brief UART stops in Wait mode available (has bit C1[UARTSWAI]). */ | ||
349 | #define FSL_FEATURE_LPUART_HAS_WAIT_MODE_OPERATION (0) | ||
350 | /* @brief Has separate DMA RX and TX requests. */ | ||
351 | #define FSL_FEATURE_LPUART_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1) | ||
352 | /* @brief Has separate RX and TX interrupts. */ | ||
353 | #define FSL_FEATURE_LPUART_HAS_SEPARATE_RX_TX_IRQ (0) | ||
354 | /* @brief Has LPAURT_PARAM. */ | ||
355 | #define FSL_FEATURE_LPUART_HAS_PARAM (1) | ||
356 | /* @brief Has LPUART_VERID. */ | ||
357 | #define FSL_FEATURE_LPUART_HAS_VERID (1) | ||
358 | /* @brief Has LPUART_GLOBAL. */ | ||
359 | #define FSL_FEATURE_LPUART_HAS_GLOBAL (1) | ||
360 | /* @brief Has LPUART_PINCFG. */ | ||
361 | #define FSL_FEATURE_LPUART_HAS_PINCFG (1) | ||
362 | |||
363 | /* interrupt module features */ | ||
364 | |||
365 | /* @brief Lowest interrupt request number. */ | ||
366 | #define FSL_FEATURE_INTERRUPT_IRQ_MIN (-14) | ||
367 | /* @brief Highest interrupt request number. */ | ||
368 | #define FSL_FEATURE_INTERRUPT_IRQ_MAX (133) | ||
369 | |||
370 | /* OCOTP module features */ | ||
371 | |||
372 | /* @brief Has timing control, (register TIMING). */ | ||
373 | #define FSL_FEATURE_OCOTP_HAS_TIMING_CTRL (1) | ||
374 | /* @brief Support lock eFuse word write lock, (CTRL[WORDLOCK]). */ | ||
375 | #define FSL_FEATURE_OCOTP_HAS_WORDLOCK (0) | ||
376 | /* @brief Has status register. (Register HW_OCOTP_OUT_STATUS0). */ | ||
377 | #define FSL_FEATURE_OCOTP_HAS_STATUS (0) | ||
378 | |||
379 | /* PIT module features */ | ||
380 | |||
381 | /* @brief Number of channels (related to number of registers LDVALn, CVALn, TCTRLn, TFLGn). */ | ||
382 | #define FSL_FEATURE_PIT_TIMER_COUNT (4) | ||
383 | /* @brief Has lifetime timer (related to existence of registers LTMR64L and LTMR64H). */ | ||
384 | #define FSL_FEATURE_PIT_HAS_LIFETIME_TIMER (1) | ||
385 | /* @brief Has chain mode (related to existence of register bit field TCTRLn[CHN]). */ | ||
386 | #define FSL_FEATURE_PIT_HAS_CHAIN_MODE (1) | ||
387 | /* @brief Has shared interrupt handler (has not individual interrupt handler for each channel). */ | ||
388 | #define FSL_FEATURE_PIT_HAS_SHARED_IRQ_HANDLER (1) | ||
389 | /* @brief Has timer enable control. */ | ||
390 | #define FSL_FEATURE_PIT_HAS_MDIS (1) | ||
391 | |||
392 | /* PWM module features */ | ||
393 | |||
394 | /* @brief If (e)FlexPWM has module A channels (outputs). */ | ||
395 | #define FSL_FEATURE_PWM_HAS_CHANNELA (1) | ||
396 | /* @brief If (e)FlexPWM has module B channels (outputs). */ | ||
397 | #define FSL_FEATURE_PWM_HAS_CHANNELB (1) | ||
398 | /* @brief If (e)FlexPWM has module X channels (outputs). */ | ||
399 | #define FSL_FEATURE_PWM_HAS_CHANNELX (1) | ||
400 | /* @brief If (e)FlexPWM has fractional feature. */ | ||
401 | #define FSL_FEATURE_PWM_HAS_FRACTIONAL (1) | ||
402 | /* @brief If (e)FlexPWM has mux trigger source select bit field. */ | ||
403 | #define FSL_FEATURE_PWM_HAS_MUX_TRIGGER_SOURCE_SEL (1) | ||
404 | /* @brief Number of submodules in each (e)FlexPWM module. */ | ||
405 | #define FSL_FEATURE_PWM_SUBMODULE_COUNT (4U) | ||
406 | /* @brief Number of fault channel in each (e)FlexPWM module. */ | ||
407 | #define FSL_FEATURE_PWM_FAULT_CH_COUNT (1) | ||
408 | |||
409 | /* RTWDOG module features */ | ||
410 | |||
411 | /* @brief Watchdog is available. */ | ||
412 | #define FSL_FEATURE_RTWDOG_HAS_WATCHDOG (1) | ||
413 | /* @brief RTWDOG_CNT can be 32-bit written. */ | ||
414 | #define FSL_FEATURE_RTWDOG_HAS_32BIT_ACCESS (1) | ||
415 | |||
416 | /* SAI module features */ | ||
417 | |||
418 | /* @brief Receive/transmit FIFO size in item count (register bit fields TCSR[FRDE], TCSR[FRIE], TCSR[FRF], TCR1[TFW], RCSR[FRDE], RCSR[FRIE], RCSR[FRF], RCR1[RFW], registers TFRn, RFRn). */ | ||
419 | #define FSL_FEATURE_SAI_FIFO_COUNT (32) | ||
420 | /* @brief Receive/transmit channel number (register bit fields TCR3[TCE], RCR3[RCE], registers TDRn and RDRn). */ | ||
421 | #define FSL_FEATURE_SAI_CHANNEL_COUNTn(x) \ | ||
422 | (((x) == SAI1) ? (4) : \ | ||
423 | (((x) == SAI2) ? (1) : \ | ||
424 | (((x) == SAI3) ? (1) : (-1)))) | ||
425 | /* @brief Maximum words per frame (register bit fields TCR3[WDFL], TCR4[FRSZ], TMR[TWM], RCR3[WDFL], RCR4[FRSZ], RMR[RWM]). */ | ||
426 | #define FSL_FEATURE_SAI_MAX_WORDS_PER_FRAME (32) | ||
427 | /* @brief Has support of combining multiple data channel FIFOs into single channel FIFO (register bit fields TCR3[CFR], TCR4[FCOMB], TFR0[WCP], TFR1[WCP], RCR3[CFR], RCR4[FCOMB], RFR0[RCP], RFR1[RCP]). */ | ||
428 | #define FSL_FEATURE_SAI_HAS_FIFO_COMBINE_MODE (1) | ||
429 | /* @brief Has packing of 8-bit and 16-bit data into each 32-bit FIFO word (register bit fields TCR4[FPACK], RCR4[FPACK]). */ | ||
430 | #define FSL_FEATURE_SAI_HAS_FIFO_PACKING (1) | ||
431 | /* @brief Configures when the SAI will continue transmitting after a FIFO error has been detected (register bit fields TCR4[FCONT], RCR4[FCONT]). */ | ||
432 | #define FSL_FEATURE_SAI_HAS_FIFO_FUNCTION_AFTER_ERROR (1) | ||
433 | /* @brief Configures if the frame sync is generated internally, a frame sync is only generated when the FIFO warning flag is clear or continuously (register bit fields TCR4[ONDEM], RCR4[ONDEM]). */ | ||
434 | #define FSL_FEATURE_SAI_HAS_ON_DEMAND_MODE (1) | ||
435 | /* @brief Simplified bit clock source and asynchronous/synchronous mode selection (register bit fields TCR2[CLKMODE], RCR2[CLKMODE]), in comparison with the exclusively implemented TCR2[SYNC,BCS,BCI,MSEL], RCR2[SYNC,BCS,BCI,MSEL]. */ | ||
436 | #define FSL_FEATURE_SAI_HAS_CLOCKING_MODE (0) | ||
437 | /* @brief Has register for configuration of the MCLK divide ratio (register bit fields MDR[FRACT], MDR[DIVIDE]). */ | ||
438 | #define FSL_FEATURE_SAI_HAS_MCLKDIV_REGISTER (0) | ||
439 | /* @brief Interrupt source number */ | ||
440 | #define FSL_FEATURE_SAI_INT_SOURCE_NUM (2) | ||
441 | /* @brief Has register of MCR. */ | ||
442 | #define FSL_FEATURE_SAI_HAS_MCR (0) | ||
443 | /* @brief Has bit field MICS of the MCR register. */ | ||
444 | #define FSL_FEATURE_SAI_HAS_NO_MCR_MICS (1) | ||
445 | /* @brief Has register of MDR */ | ||
446 | #define FSL_FEATURE_SAI_HAS_MDR (0) | ||
447 | /* @brief Has support the BCLK bypass mode when BCLK = MCLK. */ | ||
448 | #define FSL_FEATURE_SAI_HAS_BCLK_BYPASS (0) | ||
449 | /* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]. */ | ||
450 | #define FSL_FEATURE_SAI_HAS_MCR_MCLK_POST_DIV (0) | ||
451 | /* @brief Support Channel Mode (register bit fields TCR4[CHMOD]). */ | ||
452 | #define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (1) | ||
453 | |||
454 | /* SNVS module features */ | ||
455 | |||
456 | /* @brief Has Secure Real Time Counter Enabled and Valid (bit field LPCR[SRTC_ENV]). */ | ||
457 | #define FSL_FEATURE_SNVS_HAS_SRTC (1) | ||
458 | |||
459 | /* SRC module features */ | ||
460 | |||
461 | /* @brief There is MASK_WDOG3_RST bit in SCR register. */ | ||
462 | #define FSL_FEATURE_SRC_HAS_SCR_MASK_WDOG3_RST (1) | ||
463 | /* @brief There is MIX_RST_STRCH bit in SCR register. */ | ||
464 | #define FSL_FEATURE_SRC_HAS_SCR_MIX_RST_STRCH (0) | ||
465 | /* @brief There is DBG_RST_MSK_PG bit in SCR register. */ | ||
466 | #define FSL_FEATURE_SRC_HAS_SCR_DBG_RST_MSK_PG (1) | ||
467 | /* @brief There is WDOG3_RST_OPTN bit in SCR register. */ | ||
468 | #define FSL_FEATURE_SRC_HAS_SCR_WDOG3_RST_OPTN (0) | ||
469 | /* @brief There is CORES_DBG_RST bit in SCR register. */ | ||
470 | #define FSL_FEATURE_SRC_HAS_SCR_CORES_DBG_RST (0) | ||
471 | /* @brief There is MTSR bit in SCR register. */ | ||
472 | #define FSL_FEATURE_SRC_HAS_SCR_MTSR (0) | ||
473 | /* @brief There is CORE0_DBG_RST bit in SCR register. */ | ||
474 | #define FSL_FEATURE_SRC_HAS_SCR_CORE0_DBG_RST (1) | ||
475 | /* @brief There is CORE0_RST bit in SCR register. */ | ||
476 | #define FSL_FEATURE_SRC_HAS_SCR_CORE0_RST (1) | ||
477 | /* @brief There is LOCKUP_RST bit in SCR register. */ | ||
478 | #define FSL_FEATURE_SRC_HAS_SCR_LOCKUP_RST (1) | ||
479 | /* @brief There is SWRC bit in SCR register. */ | ||
480 | #define FSL_FEATURE_SRC_HAS_SCR_SWRC (0) | ||
481 | /* @brief There is EIM_RST bit in SCR register. */ | ||
482 | #define FSL_FEATURE_SRC_HAS_SCR_EIM_RST (0) | ||
483 | /* @brief There is LUEN bit in SCR register. */ | ||
484 | #define FSL_FEATURE_SRC_HAS_SCR_LUEN (0) | ||
485 | /* @brief There is no WRBC bit in SCR register. */ | ||
486 | #define FSL_FEATURE_SRC_HAS_NO_SCR_WRBC (1) | ||
487 | /* @brief There is no WRE bit in SCR register. */ | ||
488 | #define FSL_FEATURE_SRC_HAS_NO_SCR_WRE (1) | ||
489 | /* @brief There is SISR register. */ | ||
490 | #define FSL_FEATURE_SRC_HAS_SISR (0) | ||
491 | /* @brief There is RESET_OUT bit in SRSR register. */ | ||
492 | #define FSL_FEATURE_SRC_HAS_SRSR_RESET_OUT (0) | ||
493 | /* @brief There is WDOG3_RST_B bit in SRSR register. */ | ||
494 | #define FSL_FEATURE_SRC_HAS_SRSR_WDOG3_RST_B (1) | ||
495 | /* @brief There is JTAG_SW_RST bit in SRSR register. */ | ||
496 | #define FSL_FEATURE_SRC_HAS_SRSR_JTAG_SW_RST (1) | ||
497 | /* @brief There is SW bit in SRSR register. */ | ||
498 | #define FSL_FEATURE_SRC_HAS_SRSR_SW (0) | ||
499 | /* @brief There is IPP_USER_RESET_B bit in SRSR register. */ | ||
500 | #define FSL_FEATURE_SRC_HAS_SRSR_IPP_USER_RESET_B (1) | ||
501 | /* @brief There is SNVS bit in SRSR register. */ | ||
502 | #define FSL_FEATURE_SRC_HAS_SRSR_SNVS (0) | ||
503 | /* @brief There is CSU_RESET_B bit in SRSR register. */ | ||
504 | #define FSL_FEATURE_SRC_HAS_SRSR_CSU_RESET_B (1) | ||
505 | /* @brief There is LOCKUP bit in SRSR register. */ | ||
506 | #define FSL_FEATURE_SRC_HAS_SRSR_LOCKUP (1) | ||
507 | /* @brief There is LOCKUP_SYSRESETREQ bit in SRSR register. */ | ||
508 | #define FSL_FEATURE_SRC_HAS_SRSR_LOCKUP_SYSRESETREQ (0) | ||
509 | /* @brief There is POR bit in SRSR register. */ | ||
510 | #define FSL_FEATURE_SRC_HAS_SRSR_POR (0) | ||
511 | /* @brief There is IPP_RESET_B bit in SRSR register. */ | ||
512 | #define FSL_FEATURE_SRC_HAS_SRSR_IPP_RESET_B (1) | ||
513 | /* @brief There is no WBI bit in SCR register. */ | ||
514 | #define FSL_FEATURE_SRC_HAS_NO_SRSR_WBI (1) | ||
515 | |||
516 | /* SCB module features */ | ||
517 | |||
518 | /* @brief L1 ICACHE line size in byte. */ | ||
519 | #define FSL_FEATURE_L1ICACHE_LINESIZE_BYTE (32) | ||
520 | /* @brief L1 DCACHE line size in byte. */ | ||
521 | #define FSL_FEATURE_L1DCACHE_LINESIZE_BYTE (32) | ||
522 | |||
523 | /* TRNG module features */ | ||
524 | |||
525 | /* @brief TRNG has no TRNG_ACC bitfield. */ | ||
526 | #define FSL_FEATURE_TRNG_HAS_NO_TRNG_ACC (0) | ||
527 | |||
528 | /* USBHS module features */ | ||
529 | |||
530 | /* @brief EHCI module instance count */ | ||
531 | #define FSL_FEATURE_USBHS_EHCI_COUNT (1) | ||
532 | /* @brief Number of endpoints supported */ | ||
533 | #define FSL_FEATURE_USBHS_ENDPT_COUNT (8) | ||
534 | |||
535 | /* USBPHY module features */ | ||
536 | |||
537 | /* @brief USBPHY contain DCD analog module */ | ||
538 | #define FSL_FEATURE_USBPHY_HAS_DCD_ANALOG (0) | ||
539 | /* @brief USBPHY has register TRIM_OVERRIDE_EN */ | ||
540 | #define FSL_FEATURE_USBPHY_HAS_TRIM_OVERRIDE_EN (0) | ||
541 | /* @brief USBPHY is 28FDSOI */ | ||
542 | #define FSL_FEATURE_USBPHY_28FDSOI (0) | ||
543 | |||
544 | /* XBARA module features */ | ||
545 | |||
546 | /* @brief Number of interrupt requests. */ | ||
547 | #define FSL_FEATURE_XBARA_INTERRUPT_COUNT (4) | ||
548 | |||
549 | #endif /* _MIMXRT1015_FEATURES_H_ */ | ||
550 | |||