mikroSDK Reference Manual
MK65F18_features.h
1/*
2** ###################################################################
3** Version: rev. 2.9, 2015-06-08
4** Build: b190822
5**
6** Abstract:
7** Chip specific module features.
8**
9** Copyright 2016 Freescale Semiconductor, Inc.
10** Copyright 2016-2019 NXP
11** All rights reserved.
12**
13** SPDX-License-Identifier: BSD-3-Clause
14**
15** http: www.nxp.com
16** mail: support@nxp.com
17**
18** Revisions:
19** - rev. 1.0 (2013-09-02)
20** Initial version.
21** - rev. 1.1 (2014-01-30)
22** Added single maximum value generation and a constrain to varying feature values that only numbers can have maximum.
23** - rev. 2.0 (2014-02-17)
24** Register accessor macros added to the memory map.
25** Symbols for Processor Expert memory map compatibility added to the memory map.
26** Startup file for gcc has been updated according to CMSIS 3.2.
27** Definition of BITBAND macros updated to support peripherals with 32-bit acces disabled.
28** Update according to reference manual rev. 2
29** - rev. 2.1 (2014-04-16)
30** Update of SystemInit() and SystemCoreClockUpdate() functions.
31** - rev. 2.2 (2014-10-14)
32** Interrupt INT_LPTimer renamed to INT_LPTMR0, interrupt INT_Watchdog renamed to INT_WDOG_EWM.
33** - rev. 2.3 (2014-11-20)
34** Update according to reverence manual K65P169M180SF5RMV2_NDA, Rev. 0 Draft A, October 2014.
35** Update of SystemInit() to use 16MHz external crystal.
36** - rev. 2.4 (2015-01-21)
37** Added FSL_FEATURE_SOC_peripheral_COUNT with number of peripheral instances
38** - rev. 2.5 (2015-02-19)
39** Renamed interrupt vector LLW to LLWU.
40** - rev. 2.6 (2015-05-19)
41** FSL_FEATURE_SOC_CAU_COUNT remamed to FSL_FEATURE_SOC_MMCAU_COUNT.
42** Added FSL_FEATURE_SOC_peripheral_COUNT for TRNG and HSADC.
43** Added features for PDB and PORT.
44** - rev. 2.7 (2015-05-25)
45** Added FSL_FEATURE_FLASH_PFLASH_START_ADDRESS
46** - rev. 2.8 (2015-05-27)
47** Several USB features added.
48** - rev. 2.9 (2015-06-08)
49** FTM features BUS_CLOCK and FAST_CLOCK removed.
50**
51** ###################################################################
52*/
53
54#ifndef _MK65F18_FEATURES_H_
55#define _MK65F18_FEATURES_H_
56
57/* SOC module features */
58
59/* @brief ADC16 availability on the SoC. */
60#define FSL_FEATURE_SOC_ADC16_COUNT (2)
61/* @brief AIPS availability on the SoC. */
62#define FSL_FEATURE_SOC_AIPS_COUNT (2)
63/* @brief AXBS availability on the SoC. */
64#define FSL_FEATURE_SOC_AXBS_COUNT (1)
65/* @brief FLEXCAN availability on the SoC. */
66#define FSL_FEATURE_SOC_FLEXCAN_COUNT (2)
67/* @brief MMCAU availability on the SoC. */
68#define FSL_FEATURE_SOC_MMCAU_COUNT (1)
69/* @brief CMP availability on the SoC. */
70#define FSL_FEATURE_SOC_CMP_COUNT (4)
71/* @brief CMT availability on the SoC. */
72#define FSL_FEATURE_SOC_CMT_COUNT (1)
73/* @brief CRC availability on the SoC. */
74#define FSL_FEATURE_SOC_CRC_COUNT (1)
75/* @brief DAC availability on the SoC. */
76#define FSL_FEATURE_SOC_DAC_COUNT (2)
77/* @brief EDMA availability on the SoC. */
78#define FSL_FEATURE_SOC_EDMA_COUNT (1)
79/* @brief DMAMUX availability on the SoC. */
80#define FSL_FEATURE_SOC_DMAMUX_COUNT (1)
81/* @brief DSPI availability on the SoC. */
82#define FSL_FEATURE_SOC_DSPI_COUNT (3)
83/* @brief ENET availability on the SoC. */
84#define FSL_FEATURE_SOC_ENET_COUNT (1)
85/* @brief EWM availability on the SoC. */
86#define FSL_FEATURE_SOC_EWM_COUNT (1)
87/* @brief FB availability on the SoC. */
88#define FSL_FEATURE_SOC_FB_COUNT (1)
89/* @brief FMC availability on the SoC. */
90#define FSL_FEATURE_SOC_FMC_COUNT (1)
91/* @brief FTFE availability on the SoC. */
92#define FSL_FEATURE_SOC_FTFE_COUNT (1)
93/* @brief FTM availability on the SoC. */
94#define FSL_FEATURE_SOC_FTM_COUNT (4)
95/* @brief GPIO availability on the SoC. */
96#define FSL_FEATURE_SOC_GPIO_COUNT (5)
97/* @brief I2C availability on the SoC. */
98#define FSL_FEATURE_SOC_I2C_COUNT (4)
99/* @brief I2S availability on the SoC. */
100#define FSL_FEATURE_SOC_I2S_COUNT (1)
101/* @brief LLWU availability on the SoC. */
102#define FSL_FEATURE_SOC_LLWU_COUNT (1)
103/* @brief LMEM availability on the SoC. */
104#define FSL_FEATURE_SOC_LMEM_COUNT (1)
105/* @brief LPTMR availability on the SoC. */
106#define FSL_FEATURE_SOC_LPTMR_COUNT (1)
107/* @brief LPUART availability on the SoC. */
108#define FSL_FEATURE_SOC_LPUART_COUNT (1)
109/* @brief MCG availability on the SoC. */
110#define FSL_FEATURE_SOC_MCG_COUNT (1)
111/* @brief MCM availability on the SoC. */
112#define FSL_FEATURE_SOC_MCM_COUNT (1)
113/* @brief SYSMPU availability on the SoC. */
114#define FSL_FEATURE_SOC_SYSMPU_COUNT (1)
115/* @brief OSC availability on the SoC. */
116#define FSL_FEATURE_SOC_OSC_COUNT (1)
117/* @brief PDB availability on the SoC. */
118#define FSL_FEATURE_SOC_PDB_COUNT (1)
119/* @brief PIT availability on the SoC. */
120#define FSL_FEATURE_SOC_PIT_COUNT (1)
121/* @brief PMC availability on the SoC. */
122#define FSL_FEATURE_SOC_PMC_COUNT (1)
123/* @brief PORT availability on the SoC. */
124#define FSL_FEATURE_SOC_PORT_COUNT (5)
125/* @brief RCM availability on the SoC. */
126#define FSL_FEATURE_SOC_RCM_COUNT (1)
127/* @brief RFSYS availability on the SoC. */
128#define FSL_FEATURE_SOC_RFSYS_COUNT (1)
129/* @brief RFVBAT availability on the SoC. */
130#define FSL_FEATURE_SOC_RFVBAT_COUNT (1)
131/* @brief RNG availability on the SoC. */
132#define FSL_FEATURE_SOC_RNG_COUNT (1)
133/* @brief RTC availability on the SoC. */
134#define FSL_FEATURE_SOC_RTC_COUNT (1)
135/* @brief SDHC availability on the SoC. */
136#define FSL_FEATURE_SOC_SDHC_COUNT (1)
137/* @brief SDRAM availability on the SoC. */
138#define FSL_FEATURE_SOC_SDRAM_COUNT (1)
139/* @brief SIM availability on the SoC. */
140#define FSL_FEATURE_SOC_SIM_COUNT (1)
141/* @brief SMC availability on the SoC. */
142#define FSL_FEATURE_SOC_SMC_COUNT (1)
143/* @brief TPM availability on the SoC. */
144#define FSL_FEATURE_SOC_TPM_COUNT (2)
145/* @brief TSI availability on the SoC. */
146#define FSL_FEATURE_SOC_TSI_COUNT (1)
147/* @brief UART availability on the SoC. */
148#define FSL_FEATURE_SOC_UART_COUNT (5)
149/* @brief USB availability on the SoC. */
150#define FSL_FEATURE_SOC_USB_COUNT (1)
151/* @brief USBDCD availability on the SoC. */
152#define FSL_FEATURE_SOC_USBDCD_COUNT (1)
153/* @brief USBHS availability on the SoC. */
154#define FSL_FEATURE_SOC_USBHS_COUNT (1)
155/* @brief USBHSDCD availability on the SoC. */
156#define FSL_FEATURE_SOC_USBHSDCD_COUNT (1)
157/* @brief USBPHY availability on the SoC. */
158#define FSL_FEATURE_SOC_USBPHY_COUNT (1)
159/* @brief VREF availability on the SoC. */
160#define FSL_FEATURE_SOC_VREF_COUNT (1)
161/* @brief WDOG availability on the SoC. */
162#define FSL_FEATURE_SOC_WDOG_COUNT (1)
163
164/* ADC16 module features */
165
166/* @brief Has Programmable Gain Amplifier (PGA) in ADC (register PGA). */
167#define FSL_FEATURE_ADC16_HAS_PGA (0)
168/* @brief Has PGA chopping control in ADC (bit PGA[PGACHPb] or PGA[PGACHP]). */
169#define FSL_FEATURE_ADC16_HAS_PGA_CHOPPING (0)
170/* @brief Has PGA offset measurement mode in ADC (bit PGA[PGAOFSM]). */
171#define FSL_FEATURE_ADC16_HAS_PGA_OFFSET_MEASUREMENT (0)
172/* @brief Has DMA support (bit SC2[DMAEN] or SC4[DMAEN]). */
173#define FSL_FEATURE_ADC16_HAS_DMA (1)
174/* @brief Has differential mode (bitfield SC1x[DIFF]). */
175#define FSL_FEATURE_ADC16_HAS_DIFF_MODE (1)
176/* @brief Has FIFO (bit SC4[AFDEP]). */
177#define FSL_FEATURE_ADC16_HAS_FIFO (0)
178/* @brief FIFO size if available (bitfield SC4[AFDEP]). */
179#define FSL_FEATURE_ADC16_FIFO_SIZE (0)
180/* @brief Has channel set a/b multiplexor (bitfield CFG2[MUXSEL]). */
181#define FSL_FEATURE_ADC16_HAS_MUX_SELECT (1)
182/* @brief Has HW trigger masking (bitfield SC5[HTRGMASKE]. */
183#define FSL_FEATURE_ADC16_HAS_HW_TRIGGER_MASK (0)
184/* @brief Has calibration feature (bit SC3[CAL] and registers CLPx, CLMx). */
185#define FSL_FEATURE_ADC16_HAS_CALIBRATION (1)
186/* @brief Has HW averaging (bit SC3[AVGE]). */
187#define FSL_FEATURE_ADC16_HAS_HW_AVERAGE (1)
188/* @brief Has offset correction (register OFS). */
189#define FSL_FEATURE_ADC16_HAS_OFFSET_CORRECTION (1)
190/* @brief Maximum ADC resolution. */
191#define FSL_FEATURE_ADC16_MAX_RESOLUTION (16)
192/* @brief Number of SC1x and Rx register pairs (conversion control and result registers). */
193#define FSL_FEATURE_ADC16_CONVERSION_CONTROL_COUNT (2)
194
195/* FLEXCAN module features */
196
197/* @brief Message buffer size */
198#define FSL_FEATURE_FLEXCAN_HAS_MESSAGE_BUFFER_MAX_NUMBERn(x) (16)
199/* @brief Has doze mode support (register bit field MCR[DOZE]). */
200#define FSL_FEATURE_FLEXCAN_HAS_DOZE_MODE_SUPPORT (0)
201/* @brief Insatnce has doze mode support (register bit field MCR[DOZE]). */
202#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_DOZE_MODE_SUPPORTn(x) (0)
203/* @brief Has a glitch filter on the receive pin (register bit field MCR[WAKSRC]). */
204#define FSL_FEATURE_FLEXCAN_HAS_GLITCH_FILTER (1)
205/* @brief Has extended interrupt mask and flag register (register IMASK2, IFLAG2). */
206#define FSL_FEATURE_FLEXCAN_HAS_EXTENDED_FLAG_REGISTER (0)
207/* @brief Instance has extended bit timing register (register CBT). */
208#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_EXTENDED_TIMING_REGISTERn(x) (0)
209/* @brief Has a receive FIFO DMA feature (register bit field MCR[DMA]). */
210#define FSL_FEATURE_FLEXCAN_HAS_RX_FIFO_DMA (0)
211/* @brief Instance has a receive FIFO DMA feature (register bit field MCR[DMA]). */
212#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_RX_FIFO_DMAn(x) (0)
213/* @brief Has separate message buffer 0 interrupt flag (register bit field IFLAG1[BUF0I]). */
214#define FSL_FEATURE_FLEXCAN_HAS_SEPARATE_BUFFER_0_FLAG (1)
215/* @brief Has bitfield name BUF31TO0M. */
216#define FSL_FEATURE_FLEXCAN_HAS_BUF31TO0M (0)
217/* @brief Number of interrupt vectors. */
218#define FSL_FEATURE_FLEXCAN_INTERRUPT_COUNT (6)
219/* @brief Is affected by errata with ID 5641 (Module does not transmit a message that is enabled to be transmitted at a specific moment during the arbitration process). */
220#define FSL_FEATURE_FLEXCAN_HAS_ERRATA_5641 (0)
221
222/* CMP module features */
223
224/* @brief Has Trigger mode in CMP (register bit field CR1[TRIGM]). */
225#define FSL_FEATURE_CMP_HAS_TRIGGER_MODE (1)
226/* @brief Has Window mode in CMP (register bit field CR1[WE]). */
227#define FSL_FEATURE_CMP_HAS_WINDOW_MODE (1)
228/* @brief Has External sample supported in CMP (register bit field CR1[SE]). */
229#define FSL_FEATURE_CMP_HAS_EXTERNAL_SAMPLE_SUPPORT (1)
230/* @brief Has DMA support in CMP (register bit field SCR[DMAEN]). */
231#define FSL_FEATURE_CMP_HAS_DMA (1)
232/* @brief Has Pass Through mode in CMP (register bit field MUXCR[PSTM]). */
233#define FSL_FEATURE_CMP_HAS_PASS_THROUGH_MODE (1)
234/* @brief Has DAC Test function in CMP (register DACTEST). */
235#define FSL_FEATURE_CMP_HAS_DAC_TEST (0)
236
237/* CRC module features */
238
239/* @brief Has data register with name CRC */
240#define FSL_FEATURE_CRC_HAS_CRC_REG (0)
241
242/* DAC module features */
243
244/* @brief Define the size of hardware buffer */
245#define FSL_FEATURE_DAC_BUFFER_SIZE (16)
246/* @brief Define whether the buffer supports watermark event detection or not. */
247#define FSL_FEATURE_DAC_HAS_WATERMARK_DETECTION (1)
248/* @brief Define whether the buffer supports watermark selection detection or not. */
249#define FSL_FEATURE_DAC_HAS_WATERMARK_SELECTION (1)
250/* @brief Define whether the buffer supports watermark event 1 word before buffer upper limit. */
251#define FSL_FEATURE_DAC_HAS_WATERMARK_1_WORD (1)
252/* @brief Define whether the buffer supports watermark event 2 words before buffer upper limit. */
253#define FSL_FEATURE_DAC_HAS_WATERMARK_2_WORDS (1)
254/* @brief Define whether the buffer supports watermark event 3 words before buffer upper limit. */
255#define FSL_FEATURE_DAC_HAS_WATERMARK_3_WORDS (1)
256/* @brief Define whether the buffer supports watermark event 4 words before buffer upper limit. */
257#define FSL_FEATURE_DAC_HAS_WATERMARK_4_WORDS (1)
258/* @brief Define whether FIFO buffer mode is available or not. */
259#define FSL_FEATURE_DAC_HAS_BUFFER_FIFO_MODE (0)
260/* @brief Define whether swing buffer mode is available or not.. */
261#define FSL_FEATURE_DAC_HAS_BUFFER_SWING_MODE (1)
262
263/* EDMA module features */
264
265/* @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.) */
266#define FSL_FEATURE_EDMA_MODULE_CHANNEL (32)
267/* @brief Total number of DMA channels on all modules. */
268#define FSL_FEATURE_EDMA_DMAMUX_CHANNELS (FSL_FEATURE_SOC_EDMA_COUNT * 32)
269/* @brief Number of DMA channel groups (register bit fields CR[ERGA], CR[GRPnPRI], ES[GPE], DCHPRIn[GRPPRI]). (Valid only for eDMA modules.) */
270#define FSL_FEATURE_EDMA_CHANNEL_GROUP_COUNT (2)
271/* @brief Has DMA_Error interrupt vector. */
272#define FSL_FEATURE_EDMA_HAS_ERROR_IRQ (1)
273/* @brief Number of DMA channels with asynchronous request capability (register EARS). (Valid only for eDMA modules.) */
274#define FSL_FEATURE_EDMA_ASYNCHRO_REQUEST_CHANNEL_COUNT (32)
275/* @brief Channel IRQ entry shared offset. */
276#define FSL_FEATURE_EDMA_MODULE_CHANNEL_IRQ_ENTRY_SHARED_OFFSET (16)
277/* @brief If 8 bytes transfer supported. */
278#define FSL_FEATURE_EDMA_SUPPORT_8_BYTES_TRANSFER (0)
279/* @brief If 16 bytes transfer supported. */
280#define FSL_FEATURE_EDMA_SUPPORT_16_BYTES_TRANSFER (1)
281
282/* DMAMUX module features */
283
284/* @brief Number of DMA channels (related to number of register CHCFGn). */
285#define FSL_FEATURE_DMAMUX_MODULE_CHANNEL (32)
286/* @brief Total number of DMA channels on all modules. */
287#define FSL_FEATURE_DMAMUX_DMAMUX_CHANNELS (FSL_FEATURE_SOC_DMAMUX_COUNT * 32)
288/* @brief Has the periodic trigger capability for the triggered DMA channel (register bit CHCFG0[TRIG]). */
289#define FSL_FEATURE_DMAMUX_HAS_TRIG (1)
290
291/* ENET module features */
292
293/* @brief Has buffer descriptor byte swapping (register bit field ECR[DBSWP]). */
294#define FSL_FEATURE_ENET_DMA_BIG_ENDIAN_ONLY (0)
295/* @brief Has precision time protocol (IEEE 1588) support (register bit field ECR[EN1588], registers ATCR, ATVR, ATOFF, ATPER, ATCOR, ATINC, ATSTMP). */
296#define FSL_FEATURE_ENET_SUPPORT_PTP (1)
297/* @brief Number of associated interrupt vectors. */
298#define FSL_FEATURE_ENET_INTERRUPT_COUNT (4)
299/* @brief Has threshold for the number of frames in the receive FIFO (register bit field RSEM[STAT_SECTION_EMPTY]). */
300#define FSL_FEATURE_ENET_HAS_RECEIVE_STATUS_THRESHOLD (1)
301
302/* EWM module features */
303
304/* @brief Has clock select (register CLKCTRL). */
305#define FSL_FEATURE_EWM_HAS_CLOCK_SELECT (0)
306/* @brief Has clock prescaler (register CLKPRESCALER). */
307#define FSL_FEATURE_EWM_HAS_PRESCALER (0)
308
309/* FLEXBUS module features */
310
311/* No feature definitions */
312
313/* FLASH module features */
314
315#if defined(CPU_MK65FN2M0CAC18) || defined(CPU_MK65FN2M0VMI18)
316 /* @brief Is of type FTFA. */
317 #define FSL_FEATURE_FLASH_IS_FTFA (0)
318 /* @brief Is of type FTFE. */
319 #define FSL_FEATURE_FLASH_IS_FTFE (1)
320 /* @brief Is of type FTFL. */
321 #define FSL_FEATURE_FLASH_IS_FTFL (0)
322 /* @brief Has flags indicating the status of the FlexRAM (register bits FCNFG[EEERDY], FCNFG[RAMRDY] and FCNFG[PFLSH]). */
323 #define FSL_FEATURE_FLASH_HAS_FLEX_RAM_FLAGS (1)
324 /* @brief Has program flash swapping status flag (register bit FCNFG[SWAP]). */
325 #define FSL_FEATURE_FLASH_HAS_PFLASH_SWAPPING_STATUS_FLAG (1)
326 /* @brief Has EEPROM region protection (register FEPROT). */
327 #define FSL_FEATURE_FLASH_HAS_EEROM_REGION_PROTECTION (1)
328 /* @brief Has data flash region protection (register FDPROT). */
329 #define FSL_FEATURE_FLASH_HAS_DATA_FLASH_REGION_PROTECTION (1)
330 /* @brief Has flash access control (registers XACCHn, SACCHn, where n is a number, FACSS and FACSN). */
331 #define FSL_FEATURE_FLASH_HAS_ACCESS_CONTROL (1)
332 /* @brief Has flash cache control in FMC module. */
333 #define FSL_FEATURE_FLASH_HAS_FMC_FLASH_CACHE_CONTROLS (1)
334 /* @brief Has flash cache control in MCM module. */
335 #define FSL_FEATURE_FLASH_HAS_MCM_FLASH_CACHE_CONTROLS (0)
336 /* @brief Has flash cache control in MSCM module. */
337 #define FSL_FEATURE_FLASH_HAS_MSCM_FLASH_CACHE_CONTROLS (0)
338 /* @brief Has prefetch speculation control in flash, such as kv5x. */
339 #define FSL_FEATURE_FLASH_PREFETCH_SPECULATION_CONTROL_IN_FLASH (0)
340 /* @brief P-Flash flash size coding rule version, value 0 for K1 and K2, value 1 for K3. */
341 #define FSL_FEATURE_FLASH_SIZE_ENCODING_RULE_VERSION (0)
342 /* @brief P-Flash start address. */
343 #define FSL_FEATURE_FLASH_PFLASH_START_ADDRESS (0x00000000)
344 /* @brief P-Flash block count. */
345 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_COUNT (4)
346 /* @brief P-Flash block size. */
347 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SIZE (524288)
348 /* @brief P-Flash sector size. */
349 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE (4096)
350 /* @brief P-Flash write unit size. */
351 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE (8)
352 /* @brief P-Flash data path width. */
353 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_DATA_PATH_WIDTH (16)
354 /* @brief P-Flash block swap feature. */
355 #define FSL_FEATURE_FLASH_HAS_PFLASH_BLOCK_SWAP (1)
356 /* @brief P-Flash protection region count. */
357 #define FSL_FEATURE_FLASH_PFLASH_PROTECTION_REGION_COUNT (32)
358 /* @brief Has FlexNVM memory. */
359 #define FSL_FEATURE_FLASH_HAS_FLEX_NVM (0)
360 /* @brief Has FlexNVM alias. */
361 #define FSL_FEATURE_FLASH_HAS_FLEX_NVM_ALIAS (0)
362 /* @brief FlexNVM start address. (Valid only if FlexNVM is available.) */
363 #define FSL_FEATURE_FLASH_FLEX_NVM_START_ADDRESS (0x00000000)
364 /* @brief FlexNVM alias start address. (Valid only if FlexNVM alias is available.) */
365 #define FSL_FEATURE_FLASH_FLEX_NVM_ALIAS_START_ADDRESS (0x00000000)
366 /* @brief FlexNVM block count. */
367 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_COUNT (0)
368 /* @brief FlexNVM block size. */
369 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_SIZE (0)
370 /* @brief FlexNVM sector size. */
371 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_SECTOR_SIZE (0)
372 /* @brief FlexNVM write unit size. */
373 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_WRITE_UNIT_SIZE (0)
374 /* @brief FlexNVM data path width. */
375 #define FSL_FEATURE_FLASH_FLEX_BLOCK_DATA_PATH_WIDTH (0)
376 /* @brief Has FlexRAM memory. */
377 #define FSL_FEATURE_FLASH_HAS_FLEX_RAM (1)
378 /* @brief FlexRAM start address. (Valid only if FlexRAM is available.) */
379 #define FSL_FEATURE_FLASH_FLEX_RAM_START_ADDRESS (0x14000000)
380 /* @brief FlexRAM size. */
381 #define FSL_FEATURE_FLASH_FLEX_RAM_SIZE (4096)
382 /* @brief Has 0x00 Read 1s Block command. */
383 #define FSL_FEATURE_FLASH_HAS_READ_1S_BLOCK_CMD (1)
384 /* @brief Has 0x01 Read 1s Section command. */
385 #define FSL_FEATURE_FLASH_HAS_READ_1S_SECTION_CMD (1)
386 /* @brief Has 0x02 Program Check command. */
387 #define FSL_FEATURE_FLASH_HAS_PROGRAM_CHECK_CMD (1)
388 /* @brief Has 0x03 Read Resource command. */
389 #define FSL_FEATURE_FLASH_HAS_READ_RESOURCE_CMD (1)
390 /* @brief Has 0x06 Program Longword command. */
391 #define FSL_FEATURE_FLASH_HAS_PROGRAM_LONGWORD_CMD (0)
392 /* @brief Has 0x07 Program Phrase command. */
393 #define FSL_FEATURE_FLASH_HAS_PROGRAM_PHRASE_CMD (1)
394 /* @brief Has 0x08 Erase Flash Block command. */
395 #define FSL_FEATURE_FLASH_HAS_ERASE_FLASH_BLOCK_CMD (1)
396 /* @brief Has 0x09 Erase Flash Sector command. */
397 #define FSL_FEATURE_FLASH_HAS_ERASE_FLASH_SECTOR_CMD (1)
398 /* @brief Has 0x0B Program Section command. */
399 #define FSL_FEATURE_FLASH_HAS_PROGRAM_SECTION_CMD (1)
400 /* @brief Has 0x40 Read 1s All Blocks command. */
401 #define FSL_FEATURE_FLASH_HAS_READ_1S_ALL_BLOCKS_CMD (1)
402 /* @brief Has 0x41 Read Once command. */
403 #define FSL_FEATURE_FLASH_HAS_READ_ONCE_CMD (1)
404 /* @brief Has 0x43 Program Once command. */
405 #define FSL_FEATURE_FLASH_HAS_PROGRAM_ONCE_CMD (1)
406 /* @brief Has 0x44 Erase All Blocks command. */
407 #define FSL_FEATURE_FLASH_HAS_ERASE_ALL_BLOCKS_CMD (1)
408 /* @brief Has 0x45 Verify Backdoor Access Key command. */
409 #define FSL_FEATURE_FLASH_HAS_VERIFY_BACKDOOR_ACCESS_KEY_CMD (1)
410 /* @brief Has 0x46 Swap Control command. */
411 #define FSL_FEATURE_FLASH_HAS_SWAP_CONTROL_CMD (1)
412 /* @brief Has 0x49 Erase All Blocks Unsecure command. */
413 #define FSL_FEATURE_FLASH_HAS_ERASE_ALL_BLOCKS_UNSECURE_CMD (0)
414 /* @brief Has 0x4A Read 1s All Execute-only Segments command. */
415 #define FSL_FEATURE_FLASH_HAS_READ_1S_ALL_EXECUTE_ONLY_SEGMENTS_CMD (0)
416 /* @brief Has 0x4B Erase All Execute-only Segments command. */
417 #define FSL_FEATURE_FLASH_HAS_ERASE_ALL_EXECUTE_ONLY_SEGMENTS_CMD (0)
418 /* @brief Has 0x80 Program Partition command. */
419 #define FSL_FEATURE_FLASH_HAS_PROGRAM_PARTITION_CMD (0)
420 /* @brief Has 0x81 Set FlexRAM Function command. */
421 #define FSL_FEATURE_FLASH_HAS_SET_FLEXRAM_FUNCTION_CMD (0)
422 /* @brief P-Flash Erase/Read 1st all block command address alignment. */
423 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_CMD_ADDRESS_ALIGMENT (16)
424 /* @brief P-Flash Erase sector command address alignment. */
425 #define FSL_FEATURE_FLASH_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT (16)
426 /* @brief P-Flash Rrogram/Verify section command address alignment. */
427 #define FSL_FEATURE_FLASH_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT (16)
428 /* @brief P-Flash Read resource command address alignment. */
429 #define FSL_FEATURE_FLASH_PFLASH_RESOURCE_CMD_ADDRESS_ALIGMENT (8)
430 /* @brief P-Flash Program check command address alignment. */
431 #define FSL_FEATURE_FLASH_PFLASH_CHECK_CMD_ADDRESS_ALIGMENT (4)
432 /* @brief P-Flash Program check command address alignment. */
433 #define FSL_FEATURE_FLASH_PFLASH_SWAP_CONTROL_CMD_ADDRESS_ALIGMENT (16)
434 /* @brief FlexNVM Erase/Read 1st all block command address alignment. */
435 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_CMD_ADDRESS_ALIGMENT (0)
436 /* @brief FlexNVM Erase sector command address alignment. */
437 #define FSL_FEATURE_FLASH_FLEX_NVM_SECTOR_CMD_ADDRESS_ALIGMENT (0)
438 /* @brief FlexNVM Rrogram/Verify section command address alignment. */
439 #define FSL_FEATURE_FLASH_FLEX_NVM_SECTION_CMD_ADDRESS_ALIGMENT (0)
440 /* @brief FlexNVM Read resource command address alignment. */
441 #define FSL_FEATURE_FLASH_FLEX_NVM_RESOURCE_CMD_ADDRESS_ALIGMENT (0)
442 /* @brief FlexNVM Program check command address alignment. */
443 #define FSL_FEATURE_FLASH_FLEX_NVM_CHECK_CMD_ADDRESS_ALIGMENT (0)
444 /* @brief FlexNVM partition code 0000 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
445 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0000 (0xFFFFFFFFU)
446 /* @brief FlexNVM partition code 0001 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
447 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0001 (0xFFFFFFFFU)
448 /* @brief FlexNVM partition code 0010 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
449 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0010 (0xFFFFFFFFU)
450 /* @brief FlexNVM partition code 0011 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
451 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0011 (0xFFFFFFFFU)
452 /* @brief FlexNVM partition code 0100 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
453 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0100 (0xFFFFFFFFU)
454 /* @brief FlexNVM partition code 0101 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
455 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0101 (0xFFFFFFFFU)
456 /* @brief FlexNVM partition code 0110 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
457 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0110 (0xFFFFFFFFU)
458 /* @brief FlexNVM partition code 0111 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
459 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0111 (0xFFFFFFFFU)
460 /* @brief FlexNVM partition code 1000 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
461 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1000 (0xFFFFFFFFU)
462 /* @brief FlexNVM partition code 1001 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
463 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1001 (0xFFFFFFFFU)
464 /* @brief FlexNVM partition code 1010 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
465 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1010 (0xFFFFFFFFU)
466 /* @brief FlexNVM partition code 1011 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
467 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1011 (0xFFFFFFFFU)
468 /* @brief FlexNVM partition code 1100 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
469 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1100 (0xFFFFFFFFU)
470 /* @brief FlexNVM partition code 1101 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
471 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1101 (0xFFFFFFFFU)
472 /* @brief FlexNVM partition code 1110 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
473 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1110 (0xFFFFFFFFU)
474 /* @brief FlexNVM partition code 1111 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
475 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1111 (0xFFFFFFFFU)
476 /* @brief Emulated eeprom size code 0000 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
477 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0000 (0xFFFF)
478 /* @brief Emulated eeprom size code 0001 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
479 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0001 (0xFFFF)
480 /* @brief Emulated eeprom size code 0010 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
481 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0010 (0x1000)
482 /* @brief Emulated eeprom size code 0011 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
483 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0011 (0x0800)
484 /* @brief Emulated eeprom size code 0100 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
485 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0100 (0x0400)
486 /* @brief Emulated eeprom size code 0101 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
487 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0101 (0x0200)
488 /* @brief Emulated eeprom size code 0110 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
489 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0110 (0x0100)
490 /* @brief Emulated eeprom size code 0111 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
491 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0111 (0x0080)
492 /* @brief Emulated eeprom size code 1000 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
493 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1000 (0x0040)
494 /* @brief Emulated eeprom size code 1001 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
495 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1001 (0x0020)
496 /* @brief Emulated eeprom size code 1010 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
497 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1010 (0xFFFF)
498 /* @brief Emulated eeprom size code 1011 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
499 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1011 (0xFFFF)
500 /* @brief Emulated eeprom size code 1100 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
501 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1100 (0xFFFF)
502 /* @brief Emulated eeprom size code 1101 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
503 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1101 (0xFFFF)
504 /* @brief Emulated eeprom size code 1110 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
505 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1110 (0xFFFF)
506 /* @brief Emulated eeprom size code 1111 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
507 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1111 (0x0000)
508#elif defined(CPU_MK65FX1M0CAC18) || defined(CPU_MK65FX1M0VMI18)
509 /* @brief Is of type FTFA. */
510 #define FSL_FEATURE_FLASH_IS_FTFA (0)
511 /* @brief Is of type FTFE. */
512 #define FSL_FEATURE_FLASH_IS_FTFE (1)
513 /* @brief Is of type FTFL. */
514 #define FSL_FEATURE_FLASH_IS_FTFL (0)
515 /* @brief Has flags indicating the status of the FlexRAM (register bits FCNFG[EEERDY], FCNFG[RAMRDY] and FCNFG[PFLSH]). */
516 #define FSL_FEATURE_FLASH_HAS_FLEX_RAM_FLAGS (1)
517 /* @brief Has program flash swapping status flag (register bit FCNFG[SWAP]). */
518 #define FSL_FEATURE_FLASH_HAS_PFLASH_SWAPPING_STATUS_FLAG (1)
519 /* @brief Has EEPROM region protection (register FEPROT). */
520 #define FSL_FEATURE_FLASH_HAS_EEROM_REGION_PROTECTION (1)
521 /* @brief Has data flash region protection (register FDPROT). */
522 #define FSL_FEATURE_FLASH_HAS_DATA_FLASH_REGION_PROTECTION (1)
523 /* @brief Has flash access control (registers XACCHn, SACCHn, where n is a number, FACSS and FACSN). */
524 #define FSL_FEATURE_FLASH_HAS_ACCESS_CONTROL (1)
525 /* @brief Has flash cache control in FMC module. */
526 #define FSL_FEATURE_FLASH_HAS_FMC_FLASH_CACHE_CONTROLS (1)
527 /* @brief Has flash cache control in MCM module. */
528 #define FSL_FEATURE_FLASH_HAS_MCM_FLASH_CACHE_CONTROLS (0)
529 /* @brief Has flash cache control in MSCM module. */
530 #define FSL_FEATURE_FLASH_HAS_MSCM_FLASH_CACHE_CONTROLS (0)
531 /* @brief Has prefetch speculation control in flash, such as kv5x. */
532 #define FSL_FEATURE_FLASH_PREFETCH_SPECULATION_CONTROL_IN_FLASH (0)
533 /* @brief P-Flash flash size coding rule version, value 0 for K1 and K2, value 1 for K3. */
534 #define FSL_FEATURE_FLASH_SIZE_ENCODING_RULE_VERSION (0)
535 /* @brief P-Flash start address. */
536 #define FSL_FEATURE_FLASH_PFLASH_START_ADDRESS (0x00000000)
537 /* @brief P-Flash block count. */
538 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_COUNT (2)
539 /* @brief P-Flash block size. */
540 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SIZE (524288)
541 /* @brief P-Flash sector size. */
542 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE (4096)
543 /* @brief P-Flash write unit size. */
544 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE (8)
545 /* @brief P-Flash data path width. */
546 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_DATA_PATH_WIDTH (16)
547 /* @brief P-Flash block swap feature. */
548 #define FSL_FEATURE_FLASH_HAS_PFLASH_BLOCK_SWAP (1)
549 /* @brief P-Flash protection region count. */
550 #define FSL_FEATURE_FLASH_PFLASH_PROTECTION_REGION_COUNT (16)
551 /* @brief Has FlexNVM memory. */
552 #define FSL_FEATURE_FLASH_HAS_FLEX_NVM (1)
553 /* @brief Has FlexNVM alias. */
554 #define FSL_FEATURE_FLASH_HAS_FLEX_NVM_ALIAS (0)
555 /* @brief FlexNVM start address. (Valid only if FlexNVM is available.) */
556 #define FSL_FEATURE_FLASH_FLEX_NVM_START_ADDRESS (0x10000000)
557 /* @brief FlexNVM alias start address. (Valid only if FlexNVM alias is available.) */
558 #define FSL_FEATURE_FLASH_FLEX_NVM_ALIAS_START_ADDRESS (0x00000000)
559 /* @brief FlexNVM block count. */
560 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_COUNT (1)
561 /* @brief FlexNVM block size. */
562 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_SIZE (262144)
563 /* @brief FlexNVM sector size. */
564 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_SECTOR_SIZE (4096)
565 /* @brief FlexNVM write unit size. */
566 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_WRITE_UNIT_SIZE (8)
567 /* @brief FlexNVM data path width. */
568 #define FSL_FEATURE_FLASH_FLEX_BLOCK_DATA_PATH_WIDTH (16)
569 /* @brief Has FlexRAM memory. */
570 #define FSL_FEATURE_FLASH_HAS_FLEX_RAM (1)
571 /* @brief FlexRAM start address. (Valid only if FlexRAM is available.) */
572 #define FSL_FEATURE_FLASH_FLEX_RAM_START_ADDRESS (0x14000000)
573 /* @brief FlexRAM size. */
574 #define FSL_FEATURE_FLASH_FLEX_RAM_SIZE (4096)
575 /* @brief Has 0x00 Read 1s Block command. */
576 #define FSL_FEATURE_FLASH_HAS_READ_1S_BLOCK_CMD (1)
577 /* @brief Has 0x01 Read 1s Section command. */
578 #define FSL_FEATURE_FLASH_HAS_READ_1S_SECTION_CMD (1)
579 /* @brief Has 0x02 Program Check command. */
580 #define FSL_FEATURE_FLASH_HAS_PROGRAM_CHECK_CMD (1)
581 /* @brief Has 0x03 Read Resource command. */
582 #define FSL_FEATURE_FLASH_HAS_READ_RESOURCE_CMD (1)
583 /* @brief Has 0x06 Program Longword command. */
584 #define FSL_FEATURE_FLASH_HAS_PROGRAM_LONGWORD_CMD (0)
585 /* @brief Has 0x07 Program Phrase command. */
586 #define FSL_FEATURE_FLASH_HAS_PROGRAM_PHRASE_CMD (1)
587 /* @brief Has 0x08 Erase Flash Block command. */
588 #define FSL_FEATURE_FLASH_HAS_ERASE_FLASH_BLOCK_CMD (1)
589 /* @brief Has 0x09 Erase Flash Sector command. */
590 #define FSL_FEATURE_FLASH_HAS_ERASE_FLASH_SECTOR_CMD (1)
591 /* @brief Has 0x0B Program Section command. */
592 #define FSL_FEATURE_FLASH_HAS_PROGRAM_SECTION_CMD (1)
593 /* @brief Has 0x40 Read 1s All Blocks command. */
594 #define FSL_FEATURE_FLASH_HAS_READ_1S_ALL_BLOCKS_CMD (1)
595 /* @brief Has 0x41 Read Once command. */
596 #define FSL_FEATURE_FLASH_HAS_READ_ONCE_CMD (1)
597 /* @brief Has 0x43 Program Once command. */
598 #define FSL_FEATURE_FLASH_HAS_PROGRAM_ONCE_CMD (1)
599 /* @brief Has 0x44 Erase All Blocks command. */
600 #define FSL_FEATURE_FLASH_HAS_ERASE_ALL_BLOCKS_CMD (1)
601 /* @brief Has 0x45 Verify Backdoor Access Key command. */
602 #define FSL_FEATURE_FLASH_HAS_VERIFY_BACKDOOR_ACCESS_KEY_CMD (1)
603 /* @brief Has 0x46 Swap Control command. */
604 #define FSL_FEATURE_FLASH_HAS_SWAP_CONTROL_CMD (1)
605 /* @brief Has 0x49 Erase All Blocks Unsecure command. */
606 #define FSL_FEATURE_FLASH_HAS_ERASE_ALL_BLOCKS_UNSECURE_CMD (0)
607 /* @brief Has 0x4A Read 1s All Execute-only Segments command. */
608 #define FSL_FEATURE_FLASH_HAS_READ_1S_ALL_EXECUTE_ONLY_SEGMENTS_CMD (0)
609 /* @brief Has 0x4B Erase All Execute-only Segments command. */
610 #define FSL_FEATURE_FLASH_HAS_ERASE_ALL_EXECUTE_ONLY_SEGMENTS_CMD (0)
611 /* @brief Has 0x80 Program Partition command. */
612 #define FSL_FEATURE_FLASH_HAS_PROGRAM_PARTITION_CMD (1)
613 /* @brief Has 0x81 Set FlexRAM Function command. */
614 #define FSL_FEATURE_FLASH_HAS_SET_FLEXRAM_FUNCTION_CMD (1)
615 /* @brief P-Flash Erase/Read 1st all block command address alignment. */
616 #define FSL_FEATURE_FLASH_PFLASH_BLOCK_CMD_ADDRESS_ALIGMENT (16)
617 /* @brief P-Flash Erase sector command address alignment. */
618 #define FSL_FEATURE_FLASH_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT (16)
619 /* @brief P-Flash Rrogram/Verify section command address alignment. */
620 #define FSL_FEATURE_FLASH_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT (16)
621 /* @brief P-Flash Read resource command address alignment. */
622 #define FSL_FEATURE_FLASH_PFLASH_RESOURCE_CMD_ADDRESS_ALIGMENT (8)
623 /* @brief P-Flash Program check command address alignment. */
624 #define FSL_FEATURE_FLASH_PFLASH_CHECK_CMD_ADDRESS_ALIGMENT (4)
625 /* @brief P-Flash Program check command address alignment. */
626 #define FSL_FEATURE_FLASH_PFLASH_SWAP_CONTROL_CMD_ADDRESS_ALIGMENT (16)
627 /* @brief FlexNVM Erase/Read 1st all block command address alignment. */
628 #define FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_CMD_ADDRESS_ALIGMENT (16)
629 /* @brief FlexNVM Erase sector command address alignment. */
630 #define FSL_FEATURE_FLASH_FLEX_NVM_SECTOR_CMD_ADDRESS_ALIGMENT (16)
631 /* @brief FlexNVM Rrogram/Verify section command address alignment. */
632 #define FSL_FEATURE_FLASH_FLEX_NVM_SECTION_CMD_ADDRESS_ALIGMENT (16)
633 /* @brief FlexNVM Read resource command address alignment. */
634 #define FSL_FEATURE_FLASH_FLEX_NVM_RESOURCE_CMD_ADDRESS_ALIGMENT (8)
635 /* @brief FlexNVM Program check command address alignment. */
636 #define FSL_FEATURE_FLASH_FLEX_NVM_CHECK_CMD_ADDRESS_ALIGMENT (4)
637 /* @brief FlexNVM partition code 0000 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
638 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0000 (0x00040000U)
639 /* @brief FlexNVM partition code 0001 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
640 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0001 (0xFFFFFFFFU)
641 /* @brief FlexNVM partition code 0010 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
642 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0010 (0xFFFFFFFFU)
643 /* @brief FlexNVM partition code 0011 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
644 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0011 (0x00038000U)
645 /* @brief FlexNVM partition code 0100 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
646 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0100 (0x00030000U)
647 /* @brief FlexNVM partition code 0101 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
648 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0101 (0x00020000U)
649 /* @brief FlexNVM partition code 0110 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
650 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0110 (0x00000000U)
651 /* @brief FlexNVM partition code 0111 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
652 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_0111 (0xFFFFFFFFU)
653 /* @brief FlexNVM partition code 1000 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
654 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1000 (0x00000000U)
655 /* @brief FlexNVM partition code 1001 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
656 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1001 (0xFFFFFFFFU)
657 /* @brief FlexNVM partition code 1010 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
658 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1010 (0xFFFFFFFFU)
659 /* @brief FlexNVM partition code 1011 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
660 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1011 (0x00008000U)
661 /* @brief FlexNVM partition code 1100 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
662 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1100 (0x00010000U)
663 /* @brief FlexNVM partition code 1101 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
664 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1101 (0x00020000U)
665 /* @brief FlexNVM partition code 1110 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
666 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1110 (0x00040000U)
667 /* @brief FlexNVM partition code 1111 mapping to data flash size in bytes (0xFFFFFFFF = reserved). */
668 #define FSL_FEATURE_FLASH_FLEX_NVM_DFLASH_SIZE_FOR_DEPART_1111 (0x00040000U)
669 /* @brief Emulated eeprom size code 0000 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
670 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0000 (0xFFFF)
671 /* @brief Emulated eeprom size code 0001 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
672 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0001 (0xFFFF)
673 /* @brief Emulated eeprom size code 0010 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
674 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0010 (0x1000)
675 /* @brief Emulated eeprom size code 0011 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
676 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0011 (0x0800)
677 /* @brief Emulated eeprom size code 0100 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
678 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0100 (0x0400)
679 /* @brief Emulated eeprom size code 0101 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
680 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0101 (0x0200)
681 /* @brief Emulated eeprom size code 0110 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
682 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0110 (0x0100)
683 /* @brief Emulated eeprom size code 0111 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
684 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_0111 (0x0080)
685 /* @brief Emulated eeprom size code 1000 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
686 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1000 (0x0040)
687 /* @brief Emulated eeprom size code 1001 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
688 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1001 (0x0020)
689 /* @brief Emulated eeprom size code 1010 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
690 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1010 (0xFFFF)
691 /* @brief Emulated eeprom size code 1011 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
692 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1011 (0xFFFF)
693 /* @brief Emulated eeprom size code 1100 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
694 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1100 (0xFFFF)
695 /* @brief Emulated eeprom size code 1101 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
696 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1101 (0xFFFF)
697 /* @brief Emulated eeprom size code 1110 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
698 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1110 (0xFFFF)
699 /* @brief Emulated eeprom size code 1111 mapping to emulated eeprom size in bytes (0xFFFF = reserved). */
700 #define FSL_FEATURE_FLASH_FLEX_NVM_EEPROM_SIZE_FOR_EEESIZE_1111 (0x0000)
701#endif /* defined(CPU_MK65FN2M0CAC18) || defined(CPU_MK65FN2M0VMI18) */
702
703/* FTM module features */
704
705/* @brief Number of channels. */
706#define FSL_FEATURE_FTM_CHANNEL_COUNTn(x) \
707 (((x) == FTM0) ? (8) : \
708 (((x) == FTM1) ? (2) : \
709 (((x) == FTM2) ? (2) : \
710 (((x) == FTM3) ? (8) : (-1)))))
711/* @brief Has counter reset by the selected input capture event (register bits C0SC[ICRST], C1SC[ICRST], ...). */
712#define FSL_FEATURE_FTM_HAS_COUNTER_RESET_BY_CAPTURE_EVENT (0)
713/* @brief Has extended deadtime value. */
714#define FSL_FEATURE_FTM_HAS_EXTENDED_DEADTIME_VALUE (0)
715/* @brief Enable pwm output for the module. */
716#define FSL_FEATURE_FTM_HAS_ENABLE_PWM_OUTPUT (0)
717/* @brief Has half-cycle reload for the module. */
718#define FSL_FEATURE_FTM_HAS_HALFCYCLE_RELOAD (0)
719/* @brief Has reload interrupt. */
720#define FSL_FEATURE_FTM_HAS_RELOAD_INTERRUPT (0)
721/* @brief Has reload initialization trigger. */
722#define FSL_FEATURE_FTM_HAS_RELOAD_INITIALIZATION_TRIGGER (0)
723/* @brief Has DMA support, bitfield CnSC[DMA]. */
724#define FSL_FEATURE_FTM_HAS_DMA_SUPPORT (1)
725/* @brief If channel 6 is used to generate channel trigger, bitfield EXTTRIG[CH6TRIG]. */
726#define FSL_FEATURE_FTM_HAS_CHANNEL6_TRIGGER (0)
727/* @brief If channel 7 is used to generate channel trigger, bitfield EXTTRIG[CH7TRIG]. */
728#define FSL_FEATURE_FTM_HAS_CHANNEL7_TRIGGER (0)
729/* @brief Has no QDCTRL. */
730#define FSL_FEATURE_FTM_HAS_NO_QDCTRL (0)
731
732/* GPIO module features */
733
734/* @brief Has GPIO attribute checker register (GACR). */
735#define FSL_FEATURE_GPIO_HAS_ATTRIBUTE_CHECKER (0)
736
737/* I2C module features */
738
739/* @brief Has System Management Bus support (registers SMB, A2, SLTL and SLTH). */
740#define FSL_FEATURE_I2C_HAS_SMBUS (1)
741/* @brief Maximum supported baud rate in kilobit per second. */
742#define FSL_FEATURE_I2C_MAX_BAUD_KBPS (400)
743/* @brief Is affected by errata with ID 6070 (repeat start cannot be generated if the F[MULT] bit field is set to a non-zero value). */
744#define FSL_FEATURE_I2C_HAS_ERRATA_6070 (0)
745/* @brief Has DMA support (register bit C1[DMAEN]). */
746#define FSL_FEATURE_I2C_HAS_DMA_SUPPORT (1)
747/* @brief Has I2C bus start and stop detection (register bits FLT[SSIE], FLT[STARTF] and FLT[STOPF]). */
748#define FSL_FEATURE_I2C_HAS_START_STOP_DETECT (1)
749/* @brief Has I2C bus stop detection (register bits FLT[STOPIE] and FLT[STOPF]). */
750#define FSL_FEATURE_I2C_HAS_STOP_DETECT (0)
751/* @brief Has I2C bus stop hold off (register bit FLT[SHEN]). */
752#define FSL_FEATURE_I2C_HAS_STOP_HOLD_OFF (1)
753/* @brief Maximum width of the glitch filter in number of bus clocks. */
754#define FSL_FEATURE_I2C_MAX_GLITCH_FILTER_WIDTH (15)
755/* @brief Has control of the drive capability of the I2C pins. */
756#define FSL_FEATURE_I2C_HAS_HIGH_DRIVE_SELECTION (1)
757/* @brief Has double buffering support (register S2). */
758#define FSL_FEATURE_I2C_HAS_DOUBLE_BUFFERING (0)
759/* @brief Has double buffer enable. */
760#define FSL_FEATURE_I2C_HAS_DOUBLE_BUFFER_ENABLE (0)
761
762/* SAI module features */
763
764/* @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). */
765#define FSL_FEATURE_SAI_FIFO_COUNT (8)
766/* @brief Receive/transmit channel number (register bit fields TCR3[TCE], RCR3[RCE], registers TDRn and RDRn). */
767#define FSL_FEATURE_SAI_CHANNEL_COUNTn(x) (2)
768/* @brief Maximum words per frame (register bit fields TCR3[WDFL], TCR4[FRSZ], TMR[TWM], RCR3[WDFL], RCR4[FRSZ], RMR[RWM]). */
769#define FSL_FEATURE_SAI_MAX_WORDS_PER_FRAME (32)
770/* @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]). */
771#define FSL_FEATURE_SAI_HAS_FIFO_COMBINE_MODE (1)
772/* @brief Has packing of 8-bit and 16-bit data into each 32-bit FIFO word (register bit fields TCR4[FPACK], RCR4[FPACK]). */
773#define FSL_FEATURE_SAI_HAS_FIFO_PACKING (1)
774/* @brief Configures when the SAI will continue transmitting after a FIFO error has been detected (register bit fields TCR4[FCONT], RCR4[FCONT]). */
775#define FSL_FEATURE_SAI_HAS_FIFO_FUNCTION_AFTER_ERROR (1)
776/* @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]). */
777#define FSL_FEATURE_SAI_HAS_ON_DEMAND_MODE (1)
778/* @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]. */
779#define FSL_FEATURE_SAI_HAS_CLOCKING_MODE (0)
780/* @brief Has register for configuration of the MCLK divide ratio (register bit fields MDR[FRACT], MDR[DIVIDE]). */
781#define FSL_FEATURE_SAI_HAS_MCLKDIV_REGISTER (1)
782/* @brief Ihe interrupt source number */
783#define FSL_FEATURE_SAI_INT_SOURCE_NUM (2)
784/* @brief Has register of MCR. */
785#define FSL_FEATURE_SAI_HAS_MCR (1)
786/* @brief Has register of MDR */
787#define FSL_FEATURE_SAI_HAS_MDR (1)
788/* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]. */
789#define FSL_FEATURE_SAI_HAS_MCR_MCLK_POST_DIV (0)
790/* @brief Support Channel Mode (register bit fields TCR4[CHMOD]). */
791#define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (0)
792
793/* LLWU module features */
794
795/* @brief Maximum number of pins (maximal index plus one) connected to LLWU device. */
796#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN (32)
797/* @brief Has pins 8-15 connected to LLWU device. */
798#define FSL_FEATURE_LLWU_EXTERNAL_PIN_GROUP2 (1)
799/* @brief Maximum number of internal modules connected to LLWU device. */
800#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE (8)
801/* @brief Number of digital filters. */
802#define FSL_FEATURE_LLWU_HAS_PIN_FILTER (4)
803/* @brief Has MF register. */
804#define FSL_FEATURE_LLWU_HAS_MF (1)
805/* @brief Has PF register. */
806#define FSL_FEATURE_LLWU_HAS_PF (1)
807/* @brief Has possibility to enable reset in low leakage power mode and enable digital filter for RESET pin (register LLWU_RST). */
808#define FSL_FEATURE_LLWU_HAS_RESET_ENABLE (0)
809/* @brief Has no internal module wakeup flag register. */
810#define FSL_FEATURE_LLWU_HAS_NO_INTERNAL_MODULE_WAKEUP_FLAG_REG (0)
811/* @brief Has external pin 0 connected to LLWU device. */
812#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN0 (1)
813/* @brief Index of port of external pin. */
814#define FSL_FEATURE_LLWU_PIN0_GPIO_IDX (GPIOE_IDX)
815/* @brief Number of external pin port on specified port. */
816#define FSL_FEATURE_LLWU_PIN0_GPIO_PIN (1)
817/* @brief Has external pin 1 connected to LLWU device. */
818#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN1 (1)
819/* @brief Index of port of external pin. */
820#define FSL_FEATURE_LLWU_PIN1_GPIO_IDX (GPIOE_IDX)
821/* @brief Number of external pin port on specified port. */
822#define FSL_FEATURE_LLWU_PIN1_GPIO_PIN (2)
823/* @brief Has external pin 2 connected to LLWU device. */
824#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN2 (1)
825/* @brief Index of port of external pin. */
826#define FSL_FEATURE_LLWU_PIN2_GPIO_IDX (GPIOE_IDX)
827/* @brief Number of external pin port on specified port. */
828#define FSL_FEATURE_LLWU_PIN2_GPIO_PIN (4)
829/* @brief Has external pin 3 connected to LLWU device. */
830#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN3 (1)
831/* @brief Index of port of external pin. */
832#define FSL_FEATURE_LLWU_PIN3_GPIO_IDX (GPIOA_IDX)
833/* @brief Number of external pin port on specified port. */
834#define FSL_FEATURE_LLWU_PIN3_GPIO_PIN (4)
835/* @brief Has external pin 4 connected to LLWU device. */
836#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN4 (1)
837/* @brief Index of port of external pin. */
838#define FSL_FEATURE_LLWU_PIN4_GPIO_IDX (GPIOA_IDX)
839/* @brief Number of external pin port on specified port. */
840#define FSL_FEATURE_LLWU_PIN4_GPIO_PIN (13)
841/* @brief Has external pin 5 connected to LLWU device. */
842#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN5 (1)
843/* @brief Index of port of external pin. */
844#define FSL_FEATURE_LLWU_PIN5_GPIO_IDX (GPIOB_IDX)
845/* @brief Number of external pin port on specified port. */
846#define FSL_FEATURE_LLWU_PIN5_GPIO_PIN (0)
847/* @brief Has external pin 6 connected to LLWU device. */
848#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN6 (1)
849/* @brief Index of port of external pin. */
850#define FSL_FEATURE_LLWU_PIN6_GPIO_IDX (GPIOC_IDX)
851/* @brief Number of external pin port on specified port. */
852#define FSL_FEATURE_LLWU_PIN6_GPIO_PIN (1)
853/* @brief Has external pin 7 connected to LLWU device. */
854#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN7 (1)
855/* @brief Index of port of external pin. */
856#define FSL_FEATURE_LLWU_PIN7_GPIO_IDX (GPIOC_IDX)
857/* @brief Number of external pin port on specified port. */
858#define FSL_FEATURE_LLWU_PIN7_GPIO_PIN (3)
859/* @brief Has external pin 8 connected to LLWU device. */
860#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN8 (1)
861/* @brief Index of port of external pin. */
862#define FSL_FEATURE_LLWU_PIN8_GPIO_IDX (GPIOC_IDX)
863/* @brief Number of external pin port on specified port. */
864#define FSL_FEATURE_LLWU_PIN8_GPIO_PIN (4)
865/* @brief Has external pin 9 connected to LLWU device. */
866#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN9 (1)
867/* @brief Index of port of external pin. */
868#define FSL_FEATURE_LLWU_PIN9_GPIO_IDX (GPIOC_IDX)
869/* @brief Number of external pin port on specified port. */
870#define FSL_FEATURE_LLWU_PIN9_GPIO_PIN (5)
871/* @brief Has external pin 10 connected to LLWU device. */
872#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN10 (1)
873/* @brief Index of port of external pin. */
874#define FSL_FEATURE_LLWU_PIN10_GPIO_IDX (GPIOC_IDX)
875/* @brief Number of external pin port on specified port. */
876#define FSL_FEATURE_LLWU_PIN10_GPIO_PIN (6)
877/* @brief Has external pin 11 connected to LLWU device. */
878#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN11 (1)
879/* @brief Index of port of external pin. */
880#define FSL_FEATURE_LLWU_PIN11_GPIO_IDX (GPIOC_IDX)
881/* @brief Number of external pin port on specified port. */
882#define FSL_FEATURE_LLWU_PIN11_GPIO_PIN (11)
883/* @brief Has external pin 12 connected to LLWU device. */
884#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN12 (1)
885/* @brief Index of port of external pin. */
886#define FSL_FEATURE_LLWU_PIN12_GPIO_IDX (GPIOD_IDX)
887/* @brief Number of external pin port on specified port. */
888#define FSL_FEATURE_LLWU_PIN12_GPIO_PIN (0)
889/* @brief Has external pin 13 connected to LLWU device. */
890#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN13 (1)
891/* @brief Index of port of external pin. */
892#define FSL_FEATURE_LLWU_PIN13_GPIO_IDX (GPIOD_IDX)
893/* @brief Number of external pin port on specified port. */
894#define FSL_FEATURE_LLWU_PIN13_GPIO_PIN (2)
895/* @brief Has external pin 14 connected to LLWU device. */
896#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN14 (1)
897/* @brief Index of port of external pin. */
898#define FSL_FEATURE_LLWU_PIN14_GPIO_IDX (GPIOD_IDX)
899/* @brief Number of external pin port on specified port. */
900#define FSL_FEATURE_LLWU_PIN14_GPIO_PIN (4)
901/* @brief Has external pin 15 connected to LLWU device. */
902#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN15 (1)
903/* @brief Index of port of external pin. */
904#define FSL_FEATURE_LLWU_PIN15_GPIO_IDX (GPIOD_IDX)
905/* @brief Number of external pin port on specified port. */
906#define FSL_FEATURE_LLWU_PIN15_GPIO_PIN (6)
907/* @brief Has external pin 16 connected to LLWU device. */
908#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN16 (1)
909/* @brief Index of port of external pin. */
910#define FSL_FEATURE_LLWU_PIN16_GPIO_IDX (GPIOE_IDX)
911/* @brief Number of external pin port on specified port. */
912#define FSL_FEATURE_LLWU_PIN16_GPIO_PIN (6)
913/* @brief Has external pin 17 connected to LLWU device. */
914#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN17 (1)
915/* @brief Index of port of external pin. */
916#define FSL_FEATURE_LLWU_PIN17_GPIO_IDX (GPIOE_IDX)
917/* @brief Number of external pin port on specified port. */
918#define FSL_FEATURE_LLWU_PIN17_GPIO_PIN (9)
919/* @brief Has external pin 18 connected to LLWU device. */
920#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN18 (1)
921/* @brief Index of port of external pin. */
922#define FSL_FEATURE_LLWU_PIN18_GPIO_IDX (GPIOE_IDX)
923/* @brief Number of external pin port on specified port. */
924#define FSL_FEATURE_LLWU_PIN18_GPIO_PIN (10)
925/* @brief Has external pin 19 connected to LLWU device. */
926#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN19 (1)
927/* @brief Index of port of external pin. */
928#define FSL_FEATURE_LLWU_PIN19_GPIO_IDX (GPIOE_IDX)
929/* @brief Number of external pin port on specified port. */
930#define FSL_FEATURE_LLWU_PIN19_GPIO_PIN (17)
931/* @brief Has external pin 20 connected to LLWU device. */
932#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN20 (1)
933/* @brief Index of port of external pin. */
934#define FSL_FEATURE_LLWU_PIN20_GPIO_IDX (GPIOE_IDX)
935/* @brief Number of external pin port on specified port. */
936#define FSL_FEATURE_LLWU_PIN20_GPIO_PIN (18)
937/* @brief Has external pin 21 connected to LLWU device. */
938#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN21 (1)
939/* @brief Index of port of external pin. */
940#define FSL_FEATURE_LLWU_PIN21_GPIO_IDX (GPIOE_IDX)
941/* @brief Number of external pin port on specified port. */
942#define FSL_FEATURE_LLWU_PIN21_GPIO_PIN (25)
943/* @brief Has external pin 22 connected to LLWU device. */
944#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN22 (1)
945/* @brief Index of port of external pin. */
946#define FSL_FEATURE_LLWU_PIN22_GPIO_IDX (GPIOA_IDX)
947/* @brief Number of external pin port on specified port. */
948#define FSL_FEATURE_LLWU_PIN22_GPIO_PIN (10)
949/* @brief Has external pin 23 connected to LLWU device. */
950#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN23 (1)
951/* @brief Index of port of external pin. */
952#define FSL_FEATURE_LLWU_PIN23_GPIO_IDX (GPIOA_IDX)
953/* @brief Number of external pin port on specified port. */
954#define FSL_FEATURE_LLWU_PIN23_GPIO_PIN (11)
955/* @brief Has external pin 24 connected to LLWU device. */
956#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN24 (1)
957/* @brief Index of port of external pin. */
958#define FSL_FEATURE_LLWU_PIN24_GPIO_IDX (GPIOD_IDX)
959/* @brief Number of external pin port on specified port. */
960#define FSL_FEATURE_LLWU_PIN24_GPIO_PIN (8)
961/* @brief Has external pin 25 connected to LLWU device. */
962#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN25 (1)
963/* @brief Index of port of external pin. */
964#define FSL_FEATURE_LLWU_PIN25_GPIO_IDX (GPIOD_IDX)
965/* @brief Number of external pin port on specified port. */
966#define FSL_FEATURE_LLWU_PIN25_GPIO_PIN (11)
967/* @brief Has external pin 26 connected to LLWU device. */
968#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN26 (0)
969/* @brief Index of port of external pin. */
970#define FSL_FEATURE_LLWU_PIN26_GPIO_IDX (0)
971/* @brief Number of external pin port on specified port. */
972#define FSL_FEATURE_LLWU_PIN26_GPIO_PIN (0)
973/* @brief Has external pin 27 connected to LLWU device. */
974#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN27 (0)
975/* @brief Index of port of external pin. */
976#define FSL_FEATURE_LLWU_PIN27_GPIO_IDX (0)
977/* @brief Number of external pin port on specified port. */
978#define FSL_FEATURE_LLWU_PIN27_GPIO_PIN (0)
979/* @brief Has external pin 28 connected to LLWU device. */
980#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN28 (0)
981/* @brief Index of port of external pin. */
982#define FSL_FEATURE_LLWU_PIN28_GPIO_IDX (0)
983/* @brief Number of external pin port on specified port. */
984#define FSL_FEATURE_LLWU_PIN28_GPIO_PIN (0)
985/* @brief Has external pin 29 connected to LLWU device. */
986#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN29 (1)
987/* @brief Index of port of external pin. */
988#define FSL_FEATURE_LLWU_PIN29_GPIO_IDX (0)
989/* @brief Number of external pin port on specified port. */
990#define FSL_FEATURE_LLWU_PIN29_GPIO_PIN (0)
991/* @brief Has external pin 30 connected to LLWU device. */
992#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN30 (1)
993/* @brief Index of port of external pin. */
994#define FSL_FEATURE_LLWU_PIN30_GPIO_IDX (0)
995/* @brief Number of external pin port on specified port. */
996#define FSL_FEATURE_LLWU_PIN30_GPIO_PIN (0)
997/* @brief Has external pin 31 connected to LLWU device. */
998#define FSL_FEATURE_LLWU_HAS_EXTERNAL_PIN31 (1)
999/* @brief Index of port of external pin. */
1000#define FSL_FEATURE_LLWU_PIN31_GPIO_IDX (0)
1001/* @brief Number of external pin port on specified port. */
1002#define FSL_FEATURE_LLWU_PIN31_GPIO_PIN (0)
1003/* @brief Has internal module 0 connected to LLWU device. */
1004#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE0 (1)
1005/* @brief Has internal module 1 connected to LLWU device. */
1006#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE1 (1)
1007/* @brief Has internal module 2 connected to LLWU device. */
1008#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE2 (1)
1009/* @brief Has internal module 3 connected to LLWU device. */
1010#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE3 (1)
1011/* @brief Has internal module 4 connected to LLWU device. */
1012#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE4 (1)
1013/* @brief Has internal module 5 connected to LLWU device. */
1014#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE5 (1)
1015/* @brief Has internal module 6 connected to LLWU device. */
1016#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE6 (0)
1017/* @brief Has internal module 7 connected to LLWU device. */
1018#define FSL_FEATURE_LLWU_HAS_INTERNAL_MODULE7 (1)
1019/* @brief Has Version ID Register (LLWU_VERID). */
1020#define FSL_FEATURE_LLWU_HAS_VERID (0)
1021/* @brief Has Parameter Register (LLWU_PARAM). */
1022#define FSL_FEATURE_LLWU_HAS_PARAM (0)
1023/* @brief Width of registers of the LLWU. */
1024#define FSL_FEATURE_LLWU_REG_BITWIDTH (8)
1025/* @brief Has DMA Enable register (LLWU_DE). */
1026#define FSL_FEATURE_LLWU_HAS_DMA_ENABLE_REG (0)
1027
1028/* LMEM module features */
1029
1030/* @brief Has process identifier support. */
1031#define FSL_FEATURE_LMEM_HAS_SYSTEMBUS_CACHE (0)
1032/* @brief Has L1 cache. */
1033#define FSL_FEATURE_HAS_L1CACHE (1)
1034/* @brief L1 ICACHE line size in byte. */
1035#define FSL_FEATURE_L1ICACHE_LINESIZE_BYTE (16)
1036/* @brief L1 DCACHE line size in byte. */
1037#define FSL_FEATURE_L1DCACHE_LINESIZE_BYTE (16)
1038
1039/* LPTMR module features */
1040
1041/* @brief Has shared interrupt handler with another LPTMR module. */
1042#define FSL_FEATURE_LPTMR_HAS_SHARED_IRQ_HANDLER (0)
1043/* @brief Whether LPTMR counter is 32 bits width. */
1044#define FSL_FEATURE_LPTMR_CNR_WIDTH_IS_32B (0)
1045/* @brief Has timer DMA request enable (register bit CSR[TDRE]). */
1046#define FSL_FEATURE_LPTMR_HAS_CSR_TDRE (0)
1047
1048/* LPUART module features */
1049
1050/* @brief LPUART0 and LPUART1 has shared interrupt vector. */
1051#define FSL_FEATURE_LPUART_HAS_SHARED_IRQ0_IRQ1 (0)
1052/* @brief Has receive FIFO overflow detection (bit field CFIFO[RXOFE]). */
1053#define FSL_FEATURE_LPUART_HAS_IRQ_EXTENDED_FUNCTIONS (0)
1054/* @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). */
1055#define FSL_FEATURE_LPUART_HAS_LOW_POWER_UART_SUPPORT (1)
1056/* @brief Has extended data register ED (or extra flags in the DATA register if the registers are 32-bit wide). */
1057#define FSL_FEATURE_LPUART_HAS_EXTENDED_DATA_REGISTER_FLAGS (1)
1058/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
1059#define FSL_FEATURE_LPUART_HAS_FIFO (0)
1060/* @brief Has 32-bit register MODIR */
1061#define FSL_FEATURE_LPUART_HAS_MODIR (1)
1062/* @brief Hardware flow control (RTS, CTS) is supported. */
1063#define FSL_FEATURE_LPUART_HAS_MODEM_SUPPORT (1)
1064/* @brief Infrared (modulation) is supported. */
1065#define FSL_FEATURE_LPUART_HAS_IR_SUPPORT (1)
1066/* @brief 2 bits long stop bit is available. */
1067#define FSL_FEATURE_LPUART_HAS_STOP_BIT_CONFIG_SUPPORT (1)
1068/* @brief If 10-bit mode is supported. */
1069#define FSL_FEATURE_LPUART_HAS_10BIT_DATA_SUPPORT (1)
1070/* @brief If 7-bit mode is supported. */
1071#define FSL_FEATURE_LPUART_HAS_7BIT_DATA_SUPPORT (0)
1072/* @brief Baud rate fine adjustment is available. */
1073#define FSL_FEATURE_LPUART_HAS_BAUD_RATE_FINE_ADJUST_SUPPORT (0)
1074/* @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). */
1075#define FSL_FEATURE_LPUART_HAS_BAUD_RATE_OVER_SAMPLING_SUPPORT (1)
1076/* @brief Baud rate oversampling is available. */
1077#define FSL_FEATURE_LPUART_HAS_RX_RESYNC_SUPPORT (1)
1078/* @brief Baud rate oversampling is available. */
1079#define FSL_FEATURE_LPUART_HAS_BOTH_EDGE_SAMPLING_SUPPORT (1)
1080/* @brief Peripheral type. */
1081#define FSL_FEATURE_LPUART_IS_SCI (1)
1082/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
1083#define FSL_FEATURE_LPUART_FIFO_SIZEn(x) (0)
1084/* @brief Maximal data width without parity bit. */
1085#define FSL_FEATURE_LPUART_MAX_DATA_WIDTH_WITH_NO_PARITY (10)
1086/* @brief Maximal data width with parity bit. */
1087#define FSL_FEATURE_LPUART_MAX_DATA_WIDTH_WITH_PARITY (9)
1088/* @brief Supports two match addresses to filter incoming frames. */
1089#define FSL_FEATURE_LPUART_HAS_ADDRESS_MATCHING (1)
1090/* @brief Has transmitter/receiver DMA enable bits C5[TDMAE]/C5[RDMAE] (or BAUD[TDMAE]/BAUD[RDMAE] if the registers are 32-bit wide). */
1091#define FSL_FEATURE_LPUART_HAS_DMA_ENABLE (1)
1092/* @brief Has transmitter/receiver DMA select bits C4[TDMAS]/C4[RDMAS], resp. C5[TDMAS]/C5[RDMAS] if IS_SCI = 0. */
1093#define FSL_FEATURE_LPUART_HAS_DMA_SELECT (0)
1094/* @brief Data character bit order selection is supported (bit field S2[MSBF] or STAT[MSBF] if the registers are 32-bit wide). */
1095#define FSL_FEATURE_LPUART_HAS_BIT_ORDER_SELECT (1)
1096/* @brief Has smart card (ISO7816 protocol) support and no improved smart card support. */
1097#define FSL_FEATURE_LPUART_HAS_SMART_CARD_SUPPORT (0)
1098/* @brief Has improved smart card (ISO7816 protocol) support. */
1099#define FSL_FEATURE_LPUART_HAS_IMPROVED_SMART_CARD_SUPPORT (0)
1100/* @brief Has local operation network (CEA709.1-B protocol) support. */
1101#define FSL_FEATURE_LPUART_HAS_LOCAL_OPERATION_NETWORK_SUPPORT (0)
1102/* @brief Has 32-bit registers (BAUD, STAT, CTRL, DATA, MATCH, MODIR) instead of 8-bit (BDH, BDL, C1, S1, D, etc.). */
1103#define FSL_FEATURE_LPUART_HAS_32BIT_REGISTERS (1)
1104/* @brief Lin break detect available (has bit BAUD[LBKDIE]). */
1105#define FSL_FEATURE_LPUART_HAS_LIN_BREAK_DETECT (1)
1106/* @brief UART stops in Wait mode available (has bit C1[UARTSWAI]). */
1107#define FSL_FEATURE_LPUART_HAS_WAIT_MODE_OPERATION (0)
1108/* @brief Has separate DMA RX and TX requests. */
1109#define FSL_FEATURE_LPUART_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
1110/* @brief Has separate RX and TX interrupts. */
1111#define FSL_FEATURE_LPUART_HAS_SEPARATE_RX_TX_IRQ (0)
1112/* @brief Has LPAURT_PARAM. */
1113#define FSL_FEATURE_LPUART_HAS_PARAM (0)
1114/* @brief Has LPUART_VERID. */
1115#define FSL_FEATURE_LPUART_HAS_VERID (0)
1116/* @brief Has LPUART_GLOBAL. */
1117#define FSL_FEATURE_LPUART_HAS_GLOBAL (0)
1118/* @brief Has LPUART_PINCFG. */
1119#define FSL_FEATURE_LPUART_HAS_PINCFG (0)
1120
1121/* MCG module features */
1122
1123/* @brief PRDIV base value (divider of register bit field [PRDIV] zero value). */
1124#define FSL_FEATURE_MCG_PLL_PRDIV_BASE (1)
1125/* @brief Maximum PLL external reference divider value (max. value of register bit field C5[PRVDIV]). */
1126#define FSL_FEATURE_MCG_PLL_PRDIV_MAX (7)
1127/* @brief VCO divider base value (multiply factor of register bit field C6[VDIV] zero value). */
1128#define FSL_FEATURE_MCG_PLL_VDIV_BASE (16)
1129/* @brief PLL reference clock low range. OSCCLK/PLL_R. */
1130#define FSL_FEATURE_MCG_PLL_REF_MIN (8000000)
1131/* @brief PLL reference clock high range. OSCCLK/PLL_R. */
1132#define FSL_FEATURE_MCG_PLL_REF_MAX (16000000)
1133/* @brief The PLL clock is divided by 2 before VCO divider. */
1134#define FSL_FEATURE_MCG_HAS_PLL_INTERNAL_DIV (1)
1135/* @brief FRDIV supports 1280. */
1136#define FSL_FEATURE_MCG_FRDIV_SUPPORT_1280 (1)
1137/* @brief FRDIV supports 1536. */
1138#define FSL_FEATURE_MCG_FRDIV_SUPPORT_1536 (1)
1139/* @brief MCGFFCLK divider. */
1140#define FSL_FEATURE_MCG_FFCLK_DIV (1)
1141/* @brief Is PLL clock divided by 2 before MCG PLL/FLL clock selection in the SIM module. */
1142#define FSL_FEATURE_MCG_HAS_PLL_EXTRA_DIV (0)
1143/* @brief Has 32kHz RTC external reference clock (register bits C8[LOCS1], C8[CME1], C8[LOCRE1] and RTC module are present). */
1144#define FSL_FEATURE_MCG_HAS_RTC_32K (1)
1145/* @brief Has PLL1 external reference clock (registers C10, C11, C12, S2). */
1146#define FSL_FEATURE_MCG_HAS_PLL1 (0)
1147/* @brief Has 48MHz internal oscillator. */
1148#define FSL_FEATURE_MCG_HAS_IRC_48M (1)
1149/* @brief Has OSC1 external oscillator (registers C10, C11, C12, S2). */
1150#define FSL_FEATURE_MCG_HAS_OSC1 (0)
1151/* @brief Has fast internal reference clock fine trim (register bit C2[FCFTRIM]). */
1152#define FSL_FEATURE_MCG_HAS_FCFTRIM (1)
1153/* @brief Has PLL loss of lock reset (register bit C8[LOLRE]). */
1154#define FSL_FEATURE_MCG_HAS_LOLRE (1)
1155/* @brief Has MCG OSC clock selection (register bit C7[OSCSEL]). */
1156#define FSL_FEATURE_MCG_USE_OSCSEL (1)
1157/* @brief Has PLL external reference selection (register bits C5[PLLREFSEL0] and C11[PLLREFSEL1]). */
1158#define FSL_FEATURE_MCG_USE_PLLREFSEL (0)
1159/* @brief TBD */
1160#define FSL_FEATURE_MCG_USE_SYSTEM_CLOCK (0)
1161/* @brief Has phase-locked loop (PLL) (register C5 and bits C6[VDIV], C6[PLLS], C6[LOLIE0], S[PLLST], S[LOCK0], S[LOLS0]). */
1162#define FSL_FEATURE_MCG_HAS_PLL (1)
1163/* @brief Has phase-locked loop (PLL) PRDIV (register C5[PRDIV]. */
1164#define FSL_FEATURE_MCG_HAS_PLL_PRDIV (1)
1165/* @brief Has phase-locked loop (PLL) VDIV (register C6[VDIV]. */
1166#define FSL_FEATURE_MCG_HAS_PLL_VDIV (1)
1167/* @brief PLL/OSC related register bit fields have PLL/OSC index in their name. */
1168#define FSL_FEATURE_MCG_HAS_PLL_OSC_INDEX (0)
1169/* @brief Has frequency-locked loop (FLL) (register ATCVH, ATCVL and bits C1[IREFS], C1[FRDIV]). */
1170#define FSL_FEATURE_MCG_HAS_FLL (1)
1171/* @brief Has PLL external to MCG (C9[PLL_CME], C9[PLL_LOCRE], C9[EXT_PLL_LOCS]). */
1172#define FSL_FEATURE_MCG_HAS_EXTERNAL_PLL (1)
1173/* @brief Has crystal oscillator or external reference clock low power controls (register bits C2[HGO], C2[RANGE]). */
1174#define FSL_FEATURE_MCG_HAS_EXT_REF_LOW_POWER_CONTROL (1)
1175/* @brief Has PLL/FLL selection as MCG output (register bit C6[PLLS]). */
1176#define FSL_FEATURE_MCG_HAS_PLL_FLL_SELECTION (1)
1177/* @brief Has PLL output selection (PLL0/PLL1, PLL/external PLL) (register bit C11[PLLCS]). */
1178#define FSL_FEATURE_MCG_HAS_PLL_OUTPUT_SELECTION (1)
1179/* @brief Has automatic trim machine (registers ATCVH, ATCVL and bits SC[ATMF], SC[ATMS], SC[ATME]). */
1180#define FSL_FEATURE_MCG_HAS_AUTO_TRIM_MACHINE (1)
1181/* @brief Has external clock monitor (register bit C6[CME]). */
1182#define FSL_FEATURE_MCG_HAS_EXTERNAL_CLOCK_MONITOR (1)
1183/* @brief Has low frequency internal reference clock (IRC) (registers LTRIMRNG, LFRIM, LSTRIM and bit MC[LIRC_DIV2]). */
1184#define FSL_FEATURE_MCG_HAS_LOW_FREQ_IRC (0)
1185/* @brief Has high frequency internal reference clock (IRC) (registers HCTRIM, HTTRIM, HFTRIM and bit MC[HIRCEN]). */
1186#define FSL_FEATURE_MCG_HAS_HIGH_FREQ_IRC (0)
1187/* @brief Has PEI mode or PBI mode. */
1188#define FSL_FEATURE_MCG_HAS_PLL_INTERNAL_MODE (0)
1189/* @brief Reset clock mode is BLPI. */
1190#define FSL_FEATURE_MCG_RESET_IS_BLPI (0)
1191
1192/* interrupt module features */
1193
1194/* @brief Lowest interrupt request number. */
1195#define FSL_FEATURE_INTERRUPT_IRQ_MIN (-14)
1196/* @brief Highest interrupt request number. */
1197#define FSL_FEATURE_INTERRUPT_IRQ_MAX (99)
1198
1199/* OSC module features */
1200
1201/* @brief Has OSC1 external oscillator. */
1202#define FSL_FEATURE_OSC_HAS_OSC1 (0)
1203/* @brief Has OSC0 external oscillator. */
1204#define FSL_FEATURE_OSC_HAS_OSC0 (0)
1205/* @brief Has OSC external oscillator (without index). */
1206#define FSL_FEATURE_OSC_HAS_OSC (1)
1207/* @brief Number of OSC external oscillators. */
1208#define FSL_FEATURE_OSC_OSC_COUNT (1)
1209/* @brief Has external reference clock divider (register bit field DIV[ERPS]). */
1210#define FSL_FEATURE_OSC_HAS_EXT_REF_CLOCK_DIVIDER (1)
1211
1212/* PDB module features */
1213
1214/* @brief Has DAC support. */
1215#define FSL_FEATURE_PDB_HAS_DAC (1)
1216/* @brief Has shared interrupt handler (has not individual interrupt handler for each channel). */
1217#define FSL_FEATURE_PDB_HAS_SHARED_IRQ_HANDLER (0)
1218/* @brief PDB channel number). */
1219#define FSL_FEATURE_PDB_CHANNEL_COUNT (2)
1220/* @brief Channel pre-trigger nunmber (related to number of registers CHmDLYn). */
1221#define FSL_FEATURE_PDB_CHANNEL_PRE_TRIGGER_COUNT (2)
1222/* @brief DAC interval trigger number). */
1223#define FSL_FEATURE_PDB_DAC_INTERVAL_TRIGGER_COUNT (2)
1224/* @brief Pulse out number). */
1225#define FSL_FEATURE_PDB_PULSE_OUT_COUNT (4)
1226
1227/* PIT module features */
1228
1229/* @brief Number of channels (related to number of registers LDVALn, CVALn, TCTRLn, TFLGn). */
1230#define FSL_FEATURE_PIT_TIMER_COUNT (4)
1231/* @brief Has lifetime timer (related to existence of registers LTMR64L and LTMR64H). */
1232#define FSL_FEATURE_PIT_HAS_LIFETIME_TIMER (1)
1233/* @brief Has chain mode (related to existence of register bit field TCTRLn[CHN]). */
1234#define FSL_FEATURE_PIT_HAS_CHAIN_MODE (1)
1235/* @brief Has shared interrupt handler (has not individual interrupt handler for each channel). */
1236#define FSL_FEATURE_PIT_HAS_SHARED_IRQ_HANDLER (0)
1237/* @brief Has timer enable control. */
1238#define FSL_FEATURE_PIT_HAS_MDIS (1)
1239
1240/* PMC module features */
1241
1242/* @brief Has Bandgap Enable In VLPx Operation support. */
1243#define FSL_FEATURE_PMC_HAS_BGEN (1)
1244/* @brief Has Bandgap Buffer Enable. */
1245#define FSL_FEATURE_PMC_HAS_BGBE (1)
1246/* @brief Has Bandgap Buffer Drive Select. */
1247#define FSL_FEATURE_PMC_HAS_BGBDS (0)
1248/* @brief Has Low-Voltage Detect Voltage Select support. */
1249#define FSL_FEATURE_PMC_HAS_LVDV (1)
1250/* @brief Has Low-Voltage Warning Voltage Select support. */
1251#define FSL_FEATURE_PMC_HAS_LVWV (1)
1252/* @brief Has LPO. */
1253#define FSL_FEATURE_PMC_HAS_LPO (0)
1254/* @brief Has VLPx option PMC_REGSC[VLPO]. */
1255#define FSL_FEATURE_PMC_HAS_VLPO (0)
1256/* @brief Has acknowledge isolation support. */
1257#define FSL_FEATURE_PMC_HAS_ACKISO (1)
1258/* @brief Has Regulator In Full Performance Mode Status Bit PMC_REGSC[REGFPM]. */
1259#define FSL_FEATURE_PMC_HAS_REGFPM (0)
1260/* @brief Has Regulator In Run Regulation Status Bit PMC_REGSC[REGONS]. */
1261#define FSL_FEATURE_PMC_HAS_REGONS (1)
1262/* @brief Has PMC_HVDSC1. */
1263#define FSL_FEATURE_PMC_HAS_HVDSC1 (0)
1264/* @brief Has PMC_PARAM. */
1265#define FSL_FEATURE_PMC_HAS_PARAM (0)
1266/* @brief Has PMC_VERID. */
1267#define FSL_FEATURE_PMC_HAS_VERID (0)
1268
1269/* PORT module features */
1270
1271/* @brief Has control lock (register bit PCR[LK]). */
1272#define FSL_FEATURE_PORT_HAS_PIN_CONTROL_LOCK (1)
1273/* @brief Has open drain control (register bit PCR[ODE]). */
1274#define FSL_FEATURE_PORT_HAS_OPEN_DRAIN (1)
1275/* @brief Has digital filter (registers DFER, DFCR and DFWR). */
1276#define FSL_FEATURE_PORT_HAS_DIGITAL_FILTER (1)
1277/* @brief Has DMA request (register bit field PCR[IRQC] values). */
1278#define FSL_FEATURE_PORT_HAS_DMA_REQUEST (1)
1279/* @brief Has pull resistor selection available. */
1280#define FSL_FEATURE_PORT_HAS_PULL_SELECTION (1)
1281/* @brief Has pull resistor enable (register bit PCR[PE]). */
1282#define FSL_FEATURE_PORT_HAS_PULL_ENABLE (1)
1283/* @brief Has slew rate control (register bit PCR[SRE]). */
1284#define FSL_FEATURE_PORT_HAS_SLEW_RATE (1)
1285/* @brief Has passive filter (register bit field PCR[PFE]). */
1286#define FSL_FEATURE_PORT_HAS_PASSIVE_FILTER (1)
1287/* @brief Has drive strength control (register bit PCR[DSE]). */
1288#define FSL_FEATURE_PORT_HAS_DRIVE_STRENGTH (1)
1289/* @brief Has separate drive strength register (HDRVE). */
1290#define FSL_FEATURE_PORT_HAS_DRIVE_STRENGTH_REGISTER (0)
1291/* @brief Has glitch filter (register IOFLT). */
1292#define FSL_FEATURE_PORT_HAS_GLITCH_FILTER (0)
1293/* @brief Defines width of PCR[MUX] field. */
1294#define FSL_FEATURE_PORT_PCR_MUX_WIDTH (3)
1295/* @brief Has dedicated interrupt vector. */
1296#define FSL_FEATURE_PORT_HAS_INTERRUPT_VECTOR (1)
1297/* @brief Has multiple pin IRQ configuration (register GICLR and GICHR). */
1298#define FSL_FEATURE_PORT_HAS_MULTIPLE_IRQ_CONFIG (0)
1299/* @brief Defines whether PCR[IRQC] bit-field has flag states. */
1300#define FSL_FEATURE_PORT_HAS_IRQC_FLAG (0)
1301/* @brief Defines whether PCR[IRQC] bit-field has trigger states. */
1302#define FSL_FEATURE_PORT_HAS_IRQC_TRIGGER (0)
1303
1304/* RCM module features */
1305
1306/* @brief Has Loss-of-Lock Reset support. */
1307#define FSL_FEATURE_RCM_HAS_LOL (1)
1308/* @brief Has Loss-of-Clock Reset support. */
1309#define FSL_FEATURE_RCM_HAS_LOC (1)
1310/* @brief Has JTAG generated Reset support. */
1311#define FSL_FEATURE_RCM_HAS_JTAG (1)
1312/* @brief Has EzPort generated Reset support. */
1313#define FSL_FEATURE_RCM_HAS_EZPORT (1)
1314/* @brief Has bit-field indicating EZP_MS_B pin state during last reset. */
1315#define FSL_FEATURE_RCM_HAS_EZPMS (1)
1316/* @brief Has boot ROM configuration, MR[BOOTROM], FM[FORCEROM] */
1317#define FSL_FEATURE_RCM_HAS_BOOTROM (0)
1318/* @brief Has sticky system reset status register RCM_SSRS0 and RCM_SSRS1. */
1319#define FSL_FEATURE_RCM_HAS_SSRS (1)
1320/* @brief Has Version ID Register (RCM_VERID). */
1321#define FSL_FEATURE_RCM_HAS_VERID (0)
1322/* @brief Has Parameter Register (RCM_PARAM). */
1323#define FSL_FEATURE_RCM_HAS_PARAM (0)
1324/* @brief Has Reset Interrupt Enable Register RCM_SRIE. */
1325#define FSL_FEATURE_RCM_HAS_SRIE (0)
1326/* @brief Width of registers of the RCM. */
1327#define FSL_FEATURE_RCM_REG_WIDTH (8)
1328/* @brief Has Core 1 generated Reset support RCM_SRS[CORE1] */
1329#define FSL_FEATURE_RCM_HAS_CORE1 (0)
1330/* @brief Has MDM-AP system reset support RCM_SRS1[MDM_AP] */
1331#define FSL_FEATURE_RCM_HAS_MDM_AP (1)
1332/* @brief Has wakeup reset feature. Register bit SRS[WAKEUP]. */
1333#define FSL_FEATURE_RCM_HAS_WAKEUP (1)
1334
1335/* RTC module features */
1336
1337/* @brief Has wakeup pin. */
1338#define FSL_FEATURE_RTC_HAS_WAKEUP_PIN (1)
1339/* @brief Has wakeup pin selection (bit field CR[WPS]). */
1340#define FSL_FEATURE_RTC_HAS_WAKEUP_PIN_SELECTION (1)
1341/* @brief Has low power features (registers MER, MCLR and MCHR). */
1342#define FSL_FEATURE_RTC_HAS_MONOTONIC (1)
1343/* @brief Has read/write access control (registers WAR and RAR). */
1344#define FSL_FEATURE_RTC_HAS_ACCESS_CONTROL (1)
1345/* @brief Has security features (registers TTSR, MER, MCLR and MCHR). */
1346#define FSL_FEATURE_RTC_HAS_SECURITY (1)
1347/* @brief Has RTC_CLKIN available. */
1348#define FSL_FEATURE_RTC_HAS_RTC_CLKIN (0)
1349/* @brief Has prescaler adjust for LPO. */
1350#define FSL_FEATURE_RTC_HAS_LPO_ADJUST (0)
1351/* @brief Has Clock Pin Enable field. */
1352#define FSL_FEATURE_RTC_HAS_CPE (0)
1353/* @brief Has Timer Seconds Interrupt Configuration field. */
1354#define FSL_FEATURE_RTC_HAS_TSIC (0)
1355/* @brief Has OSC capacitor setting RTC_CR[SC2P ~ SC16P] */
1356#define FSL_FEATURE_RTC_HAS_OSC_SCXP (1)
1357/* @brief Has Tamper Interrupt Register (register TIR). */
1358#define FSL_FEATURE_RTC_HAS_TIR (0)
1359/* @brief Has Tamper Pin Interrupt Enable (bitfield TIR[TPIE]). */
1360#define FSL_FEATURE_RTC_HAS_TIR_TPIE (0)
1361/* @brief Has Security Interrupt Enable (bitfield TIR[SIE]). */
1362#define FSL_FEATURE_RTC_HAS_TIR_SIE (0)
1363/* @brief Has Loss of Clock Interrupt Enable (bitfield TIR[LCIE]). */
1364#define FSL_FEATURE_RTC_HAS_TIR_LCIE (0)
1365/* @brief Has Tamper Interrupt Detect Flag (bitfield SR[TIDF]). */
1366#define FSL_FEATURE_RTC_HAS_SR_TIDF (0)
1367/* @brief Has Tamper Detect Register (register TDR). */
1368#define FSL_FEATURE_RTC_HAS_TDR (0)
1369/* @brief Has Tamper Pin Flag (bitfield TDR[TPF]). */
1370#define FSL_FEATURE_RTC_HAS_TDR_TPF (0)
1371/* @brief Has Security Tamper Flag (bitfield TDR[STF]). */
1372#define FSL_FEATURE_RTC_HAS_TDR_STF (0)
1373/* @brief Has Loss of Clock Tamper Flag (bitfield TDR[LCTF]). */
1374#define FSL_FEATURE_RTC_HAS_TDR_LCTF (0)
1375/* @brief Has Tamper Time Seconds Register (register TTSR). */
1376#define FSL_FEATURE_RTC_HAS_TTSR (1)
1377/* @brief Has Pin Configuration Register (register PCR). */
1378#define FSL_FEATURE_RTC_HAS_PCR (0)
1379
1380/* SDHC module features */
1381
1382/* @brief Has external DMA support (register bit VENDOR[EXTDMAEN]). */
1383#define FSL_FEATURE_SDHC_HAS_EXTERNAL_DMA_SUPPORT (0)
1384/* @brief Has support of 3.0V voltage (register bit HTCAPBLT[VS30]). */
1385#define FSL_FEATURE_SDHC_HAS_V300_SUPPORT (0)
1386/* @brief Has support of 1.8V voltage (register bit HTCAPBLT[VS18]). */
1387#define FSL_FEATURE_SDHC_HAS_V180_SUPPORT (0)
1388
1389/* SIM module features */
1390
1391/* @brief Has USB FS divider. */
1392#define FSL_FEATURE_SIM_USBFS_USE_SPECIAL_DIVIDER (0)
1393/* @brief Is PLL clock divided by 2 before MCG PLL/FLL clock selection. */
1394#define FSL_FEATURE_SIM_PLLCLK_USE_SPECIAL_DIVIDER (0)
1395/* @brief Has RAM size specification (register bit field SOPT1[RAMSIZE]). */
1396#define FSL_FEATURE_SIM_OPT_HAS_RAMSIZE (1)
1397/* @brief Has 32k oscillator clock output (register bit SOPT1[OSC32KOUT]). */
1398#define FSL_FEATURE_SIM_OPT_HAS_OSC32K_OUT (0)
1399/* @brief Has 32k oscillator clock selection (register bit field SOPT1[OSC32KSEL]). */
1400#define FSL_FEATURE_SIM_OPT_HAS_OSC32K_SELECTION (1)
1401/* @brief 32k oscillator clock selection width (width of register bit field SOPT1[OSC32KSEL]). */
1402#define FSL_FEATURE_SIM_OPT_OSC32K_SELECTION_WIDTH (2)
1403/* @brief Has RTC clock output selection (register bit SOPT2[RTCCLKOUTSEL]). */
1404#define FSL_FEATURE_SIM_OPT_HAS_RTC_CLOCK_OUT_SELECTION (1)
1405/* @brief Has USB voltage regulator (register bits SOPT1[USBVSTBY], SOPT1[USBSSTBY], SOPT1[USBREGEN], SOPT1CFG[URWE], SOPT1CFG[UVSWE], SOPT1CFG[USSWE]). */
1406#define FSL_FEATURE_SIM_OPT_HAS_USB_VOLTAGE_REGULATOR (1)
1407/* @brief USB has integrated PHY (register bits USBPHYCTL[USBVREGSEL], USBPHYCTL[USBVREGPD], USBPHYCTL[USB3VOUTTRG], USBPHYCTL[USBDISILIM], SOPT2[USBSLSRC], SOPT2[USBREGEN]). */
1408#define FSL_FEATURE_SIM_OPT_HAS_USB_PHY (1)
1409/* @brief Has PTD7 pad drive strength control (register bit SOPT2[PTD7PAD]). */
1410#define FSL_FEATURE_SIM_OPT_HAS_PTD7PAD (0)
1411/* @brief Has FlexBus security level selection (register bit SOPT2[FBSL]). */
1412#define FSL_FEATURE_SIM_OPT_HAS_FBSL (1)
1413/* @brief Has number of FlexBus hold cycle before FlexBus can release bus (register bit SOPT6[PCR]). */
1414#define FSL_FEATURE_SIM_OPT_HAS_PCR (0)
1415/* @brief Has number of NFC hold cycle in case of FlexBus request (register bit SOPT6[MCC]). */
1416#define FSL_FEATURE_SIM_OPT_HAS_MCC (0)
1417/* @brief Has UART open drain enable (register bits UARTnODE, where n is a number, in register SOPT5). */
1418#define FSL_FEATURE_SIM_OPT_HAS_ODE (0)
1419/* @brief Number of LPUART modules (number of register bits LPUARTn, where n is a number, in register SCGC5). */
1420#define FSL_FEATURE_SIM_OPT_LPUART_COUNT (1)
1421/* @brief Number of UART modules (number of register bits UARTn, where n is a number, in register SCGC4). */
1422#define FSL_FEATURE_SIM_OPT_UART_COUNT (4)
1423/* @brief Has UART0 open drain enable (register bit SOPT5[UART0ODE]). */
1424#define FSL_FEATURE_SIM_OPT_HAS_UART0_ODE (0)
1425/* @brief Has UART1 open drain enable (register bit SOPT5[UART1ODE]). */
1426#define FSL_FEATURE_SIM_OPT_HAS_UART1_ODE (0)
1427/* @brief Has UART2 open drain enable (register bit SOPT5[UART2ODE]). */
1428#define FSL_FEATURE_SIM_OPT_HAS_UART2_ODE (0)
1429/* @brief Has LPUART0 open drain enable (register bit SOPT5[LPUART0ODE]). */
1430#define FSL_FEATURE_SIM_OPT_HAS_LPUART0_ODE (0)
1431/* @brief Has LPUART1 open drain enable (register bit SOPT5[LPUART1ODE]). */
1432#define FSL_FEATURE_SIM_OPT_HAS_LPUART1_ODE (0)
1433/* @brief Has CMT/UART pad drive strength control (register bit SOPT2[CMTUARTPAD]). */
1434#define FSL_FEATURE_SIM_OPT_HAS_CMTUARTPAD (0)
1435/* @brief Has LPUART0 transmit data source selection (register bit SOPT5[LPUART0TXSRC]). */
1436#define FSL_FEATURE_SIM_OPT_HAS_LPUART0_TX_SRC (1)
1437/* @brief Has LPUART0 receive data source selection (register bit SOPT5[LPUART0RXSRC]). */
1438#define FSL_FEATURE_SIM_OPT_HAS_LPUART0_RX_SRC (1)
1439/* @brief Has LPUART1 transmit data source selection (register bit SOPT5[LPUART1TXSRC]). */
1440#define FSL_FEATURE_SIM_OPT_HAS_LPUART1_TX_SRC (0)
1441/* @brief Has LPUART1 receive data source selection (register bit SOPT5[LPUART1RXSRC]). */
1442#define FSL_FEATURE_SIM_OPT_HAS_LPUART1_RX_SRC (0)
1443/* @brief Has UART0 transmit data source selection (register bit SOPT5[UART0TXSRC]). */
1444#define FSL_FEATURE_SIM_OPT_HAS_UART0_TX_SRC (1)
1445/* @brief UART0 transmit data source selection width (width of register bit SOPT5[UART0TXSRC]). */
1446#define FSL_FEATURE_SIM_OPT_UART0_TX_SRC_WIDTH (2)
1447/* @brief Has UART0 receive data source selection (register bit SOPT5[UART0RXSRC]). */
1448#define FSL_FEATURE_SIM_OPT_HAS_UART0_RX_SRC (1)
1449/* @brief UART0 receive data source selection width (width of register bit SOPT5[UART0RXSRC]). */
1450#define FSL_FEATURE_SIM_OPT_UART0_RX_SRC_WIDTH (2)
1451/* @brief Has UART1 transmit data source selection (register bit SOPT5[UART1TXSRC]). */
1452#define FSL_FEATURE_SIM_OPT_HAS_UART1_TX_SRC (1)
1453/* @brief Has UART1 receive data source selection (register bit SOPT5[UART1RXSRC]). */
1454#define FSL_FEATURE_SIM_OPT_HAS_UART1_RX_SRC (1)
1455/* @brief UART1 receive data source selection width (width of register bit SOPT5[UART1RXSRC]). */
1456#define FSL_FEATURE_SIM_OPT_UART1_RX_SRC_WIDTH (2)
1457/* @brief Has FTM module(s) configuration. */
1458#define FSL_FEATURE_SIM_OPT_HAS_FTM (1)
1459/* @brief Number of FTM modules. */
1460#define FSL_FEATURE_SIM_OPT_FTM_COUNT (4)
1461/* @brief Number of FTM triggers with selectable source. */
1462#define FSL_FEATURE_SIM_OPT_FTM_TRIGGER_COUNT (2)
1463/* @brief Has FTM0 triggers source selection (register bits SOPT4[FTM0TRGnSRC], where n is a number). */
1464#define FSL_FEATURE_SIM_OPT_HAS_FTM0_TRIGGER (1)
1465/* @brief Has FTM3 triggers source selection (register bits SOPT4[FTM3TRGnSRC], where n is a number). */
1466#define FSL_FEATURE_SIM_OPT_HAS_FTM3_TRIGGER (1)
1467/* @brief Has FTM1 channel 0 input capture source selection (register bit SOPT4[FTM1CH0SRC]). */
1468#define FSL_FEATURE_SIM_OPT_HAS_FTM1_CHANNELS (1)
1469/* @brief Has FTM2 channel 0 input capture source selection (register bit SOPT4[FTM2CH0SRC]). */
1470#define FSL_FEATURE_SIM_OPT_HAS_FTM2_CHANNELS (1)
1471/* @brief Has FTM3 channel 0 input capture source selection (register bit SOPT4[FTM3CH0SRC]). */
1472#define FSL_FEATURE_SIM_OPT_HAS_FTM3_CHANNELS (0)
1473/* @brief Has FTM2 channel 1 input capture source selection (register bit SOPT4[FTM2CH1SRC]). */
1474#define FSL_FEATURE_SIM_OPT_HAS_FTM2_CHANNEL1 (1)
1475/* @brief Number of configurable FTM0 fault detection input (number of register bits SOPT4[FTM0FLTn], where n is a number starting from zero). */
1476#define FSL_FEATURE_SIM_OPT_FTM0_FAULT_COUNT (4)
1477/* @brief Number of configurable FTM1 fault detection input (number of register bits SOPT4[FTM1FLTn], where n is a number starting from zero). */
1478#define FSL_FEATURE_SIM_OPT_FTM1_FAULT_COUNT (1)
1479/* @brief Number of configurable FTM2 fault detection input (number of register bits SOPT4[FTM2FLTn], where n is a number starting from zero). */
1480#define FSL_FEATURE_SIM_OPT_FTM2_FAULT_COUNT (1)
1481/* @brief Number of configurable FTM3 fault detection input (number of register bits SOPT4[FTM3FLTn], where n is a number starting from zero). */
1482#define FSL_FEATURE_SIM_OPT_FTM3_FAULT_COUNT (1)
1483/* @brief Has FTM hardware trigger 0 software synchronization (register bit SOPT8[FTMnSYNCBIT], where n is a module instance index). */
1484#define FSL_FEATURE_SIM_OPT_HAS_FTM_TRIGGER_SYNC (1)
1485/* @brief Has FTM channels output source selection (register bit SOPT8[FTMxOCHnSRC], where x is a module instance index and n is a channel index). */
1486#define FSL_FEATURE_SIM_OPT_HAS_FTM_CHANNELS_OUTPUT_SRC (1)
1487/* @brief Has TPM module(s) configuration. */
1488#define FSL_FEATURE_SIM_OPT_HAS_TPM (1)
1489/* @brief The highest TPM module index. */
1490#define FSL_FEATURE_SIM_OPT_MAX_TPM_INDEX (2)
1491/* @brief Has TPM module with index 0. */
1492#define FSL_FEATURE_SIM_OPT_HAS_TPM0 (0)
1493/* @brief Has TPM0 clock selection (register bit field SOPT4[TPM0CLKSEL]). */
1494#define FSL_FEATURE_SIM_OPT_HAS_TPM0_CLK_SEL (0)
1495/* @brief Is TPM channels configuration in the SOPT4 (not SOPT9) register (register bits TPMnCH0SRC, TPMnCLKSEL, where n is a module instance index). */
1496#define FSL_FEATURE_SIM_OPT_HAS_TPM_CHANNELS_CONFIG_IN_SOPT4_REG (0)
1497/* @brief Has TPM1 channel 0 input capture source selection (register bit field SOPT4[TPM1CH0SRC] or SOPT9[TPM1CH0SRC]). */
1498#define FSL_FEATURE_SIM_OPT_HAS_TPM1_CH0_SRC_SELECTION (1)
1499/* @brief Has TPM1 clock selection (register bit field SOPT4[TPM1CLKSEL]). */
1500#define FSL_FEATURE_SIM_OPT_HAS_TPM1_CLK_SEL (0)
1501/* @brief TPM1 channel 0 input capture source selection width (width of register bit field SOPT4[TPM1CH0SRC] or SOPT9[TPM1CH0SRC]). */
1502#define FSL_FEATURE_SIM_OPT_TPM1_CH0_SRC_SELECTION_WIDTH (1)
1503/* @brief Has TPM2 channel 0 input capture source selection (register bit field SOPT4[TPM2CH0SRC]). */
1504#define FSL_FEATURE_SIM_OPT_HAS_TPM2_CH0_SRC_SELECTION (0)
1505/* @brief Has TPM2 clock selection (register bit field SOPT4[TPM2CLKSEL]). */
1506#define FSL_FEATURE_SIM_OPT_HAS_TPM2_CLK_SEL (0)
1507/* @brief Has PLL/FLL clock selection (register bit field SOPT2[PLLFLLSEL]). */
1508#define FSL_FEATURE_SIM_OPT_HAS_PLL_FLL_SELECTION (1)
1509/* @brief PLL/FLL clock selection width (width of register bit field SOPT2[PLLFLLSEL]). */
1510#define FSL_FEATURE_SIM_OPT_PLL_FLL_SELECTION_WIDTH (1)
1511/* @brief Has NFC clock source selection (register bit SOPT2[NFCSRC]). */
1512#define FSL_FEATURE_SIM_OPT_HAS_NFCSRC (0)
1513/* @brief Has eSDHC clock source selection (register bit SOPT2[ESDHCSRC]). */
1514#define FSL_FEATURE_SIM_OPT_HAS_ESDHCSRC (0)
1515/* @brief Has SDHC clock source selection (register bit SOPT2[SDHCSRC]). */
1516#define FSL_FEATURE_SIM_OPT_HAS_SDHCSRC (1)
1517/* @brief Has LCDC clock source selection (register bits SOPT2[LCDCSRC], SOPT2[LCDC_CLKSEL]). */
1518#define FSL_FEATURE_SIM_OPT_HAS_LCDCSRC (0)
1519/* @brief Has ENET timestamp clock source selection (register bit SOPT2[TIMESRC]). */
1520#define FSL_FEATURE_SIM_OPT_HAS_TIMESRC (1)
1521/* @brief Has ENET RMII clock source selection (register bit SOPT2[RMIISRC]). */
1522#define FSL_FEATURE_SIM_OPT_HAS_RMIISRC (1)
1523/* @brief Has USB clock source selection (register bit SOPT2[USBSRC]). */
1524#define FSL_FEATURE_SIM_OPT_HAS_USBSRC (1)
1525/* @brief Has USB FS clock source selection (register bit SOPT2[USBFSRC]). */
1526#define FSL_FEATURE_SIM_OPT_HAS_USBFSRC (0)
1527/* @brief Has USB HS clock source selection (register bit SOPT2[USBHSRC]). */
1528#define FSL_FEATURE_SIM_OPT_HAS_USBHSRC (0)
1529/* @brief Has LPUART clock source selection (register bit SOPT2[LPUARTSRC]). */
1530#define FSL_FEATURE_SIM_OPT_HAS_LPUARTSRC (1)
1531/* @brief Has LPUART0 clock source selection (register bit SOPT2[LPUART0SRC]). */
1532#define FSL_FEATURE_SIM_OPT_HAS_LPUART0SRC (0)
1533/* @brief Has LPUART1 clock source selection (register bit SOPT2[LPUART1SRC]). */
1534#define FSL_FEATURE_SIM_OPT_HAS_LPUART1SRC (0)
1535/* @brief Has FLEXIOSRC clock source selection (register bit SOPT2[FLEXIOSRC]). */
1536#define FSL_FEATURE_SIM_OPT_HAS_FLEXIOSRC (0)
1537/* @brief Has UART0 clock source selection (register bit SOPT2[UART0SRC]). */
1538#define FSL_FEATURE_SIM_OPT_HAS_UART0SRC (0)
1539/* @brief Has TPM clock source selection (register bit SOPT2[TPMSRC]). */
1540#define FSL_FEATURE_SIM_OPT_HAS_TPMSRC (1)
1541/* @brief Has debug trace clock selection (register bit SOPT2[TRACECLKSEL]). */
1542#define FSL_FEATURE_SIM_OPT_HAS_TRACE_CLKSEL (1)
1543/* @brief Number of ADC modules (register bits SOPT7[ADCnTRGSEL], SOPT7[ADCnPRETRGSEL], SOPT7[ADCnALTTRGSEL], where n is a module instance index). */
1544#define FSL_FEATURE_SIM_OPT_ADC_COUNT (2)
1545/* @brief ADC0 alternate trigger enable width (width of bit field ADC0ALTTRGEN of register SOPT7). */
1546#define FSL_FEATURE_SIM_OPT_ADC0ALTTRGEN_WIDTH (1)
1547/* @brief ADC1 alternate trigger enable width (width of bit field ADC1ALTTRGEN of register SOPT7). */
1548#define FSL_FEATURE_SIM_OPT_ADC1ALTTRGEN_WIDTH (1)
1549/* @brief ADC2 alternate trigger enable width (width of bit field ADC2ALTTRGEN of register SOPT7). */
1550#define FSL_FEATURE_SIM_OPT_ADC2ALTTRGEN_WIDTH (0)
1551/* @brief ADC3 alternate trigger enable width (width of bit field ADC3ALTTRGEN of register SOPT7). */
1552#define FSL_FEATURE_SIM_OPT_ADC3ALTTRGEN_WIDTH (0)
1553/* @brief HSADC0 converter A alternate trigger enable width (width of bit field HSADC0AALTTRGEN of register SOPT7). */
1554#define FSL_FEATURE_SIM_OPT_HSADC0AALTTRGEN_WIDTH (0)
1555/* @brief HSADC1 converter A alternate trigger enable width (width of bit field HSADC1AALTTRGEN of register SOPT7). */
1556#define FSL_FEATURE_SIM_OPT_HSADC1AALTTRGEN_WIDTH (0)
1557/* @brief ADC converter A alternate trigger enable width (width of bit field ADCAALTTRGEN of register SOPT7). */
1558#define FSL_FEATURE_SIM_OPT_ADCAALTTRGEN_WIDTH (0)
1559/* @brief HSADC0 converter B alternate trigger enable width (width of bit field HSADC0BALTTRGEN of register SOPT7). */
1560#define FSL_FEATURE_SIM_OPT_HSADC0BALTTRGEN_WIDTH (0)
1561/* @brief HSADC1 converter B alternate trigger enable width (width of bit field HSADC1BALTTRGEN of register SOPT7). */
1562#define FSL_FEATURE_SIM_OPT_HSADC1BALTTRGEN_WIDTH (0)
1563/* @brief ADC converter B alternate trigger enable width (width of bit field ADCBALTTRGEN of register SOPT7). */
1564#define FSL_FEATURE_SIM_OPT_ADCBALTTRGEN_WIDTH (0)
1565/* @brief Has clock 2 output divider (register bit field CLKDIV1[OUTDIV2]). */
1566#define FSL_FEATURE_SIM_DIVIDER_HAS_OUTDIV2 (1)
1567/* @brief Has clock 3 output divider (register bit field CLKDIV1[OUTDIV3]). */
1568#define FSL_FEATURE_SIM_DIVIDER_HAS_OUTDIV3 (1)
1569/* @brief Has clock 4 output divider (register bit field CLKDIV1[OUTDIV4]). */
1570#define FSL_FEATURE_SIM_DIVIDER_HAS_OUTDIV4 (1)
1571/* @brief Clock 4 output divider width (width of register bit field CLKDIV1[OUTDIV4]). */
1572#define FSL_FEATURE_SIM_DIVIDER_OUTDIV4_WIDTH (4)
1573/* @brief Has clock 5 output divider (register bit field CLKDIV1[OUTDIV5]). */
1574#define FSL_FEATURE_SIM_DIVIDER_HAS_OUTDIV5 (0)
1575/* @brief Has USB clock divider (register bit field CLKDIV2[USBDIV] and CLKDIV2[USBFRAC]). */
1576#define FSL_FEATURE_SIM_DIVIDER_HAS_USBDIV (1)
1577/* @brief Has USB FS clock divider (register bit field CLKDIV2[USBFSDIV] and CLKDIV2[USBFSFRAC]). */
1578#define FSL_FEATURE_SIM_DIVIDER_HAS_USBFSDIV (0)
1579/* @brief Has USB HS clock divider (register bit field CLKDIV2[USBHSDIV] and CLKDIV2[USBHSFRAC]). */
1580#define FSL_FEATURE_SIM_DIVIDER_HAS_USBHSDIV (0)
1581/* @brief Has PLL/FLL clock divider (register bit field CLKDIV3[PLLFLLDIV] and CLKDIV3[PLLFLLFRAC]). */
1582#define FSL_FEATURE_SIM_DIVIDER_HAS_PLLFLLDIV (1)
1583/* @brief Has LCDC clock divider (register bit field CLKDIV3[LCDCDIV] and CLKDIV3[LCDCFRAC]). */
1584#define FSL_FEATURE_SIM_DIVIDER_HAS_LCDCDIV (0)
1585/* @brief Has trace clock divider (register bit field CLKDIV4[TRACEDIV] and CLKDIV4[TRACEFRAC]). */
1586#define FSL_FEATURE_SIM_DIVIDER_HAS_TRACEDIV (1)
1587/* @brief Has NFC clock divider (register bit field CLKDIV4[NFCDIV] and CLKDIV4[NFCFRAC]). */
1588#define FSL_FEATURE_SIM_DIVIDER_HAS_NFCDIV (0)
1589/* @brief Has Kinetis family ID (register bit field SDID[FAMILYID]). */
1590#define FSL_FEATURE_SIM_SDID_HAS_FAMILYID (1)
1591/* @brief Has Kinetis family ID (register bit field SDID[FAMID]). */
1592#define FSL_FEATURE_SIM_SDID_HAS_FAMID (1)
1593/* @brief Has Kinetis sub-family ID (register bit field SDID[SUBFAMID]). */
1594#define FSL_FEATURE_SIM_SDID_HAS_SUBFAMID (1)
1595/* @brief Has Kinetis series ID (register bit field SDID[SERIESID]). */
1596#define FSL_FEATURE_SIM_SDID_HAS_SERIESID (1)
1597/* @brief Has device die ID (register bit field SDID[DIEID]). */
1598#define FSL_FEATURE_SIM_SDID_HAS_DIEID (1)
1599/* @brief Has system SRAM size specifier (register bit field SDID[SRAMSIZE]). */
1600#define FSL_FEATURE_SIM_SDID_HAS_SRAMSIZE (0)
1601/* @brief Has flash mode (register bit FCFG1[FLASHDOZE]). */
1602#define FSL_FEATURE_SIM_FCFG_HAS_FLASHDOZE (1)
1603/* @brief Has flash disable (register bit FCFG1[FLASHDIS]). */
1604#define FSL_FEATURE_SIM_FCFG_HAS_FLASHDIS (1)
1605/* @brief Has FTFE disable (register bit FCFG1[FTFDIS]). */
1606#define FSL_FEATURE_SIM_FCFG_HAS_FTFDIS (0)
1607/* @brief Has FlexNVM size specifier (register bit field FCFG1[NVMSIZE]). */
1608#define FSL_FEATURE_SIM_FCFG_HAS_NVMSIZE (1)
1609/* @brief Has EEPROM size specifier (register bit field FCFG1[EESIZE]). */
1610#define FSL_FEATURE_SIM_FCFG_HAS_EESIZE (1)
1611/* @brief Has FlexNVM partition (register bit field FCFG1[DEPART]). */
1612#define FSL_FEATURE_SIM_FCFG_HAS_DEPART (1)
1613/* @brief Maximum flash address block 0 address specifier (register bit field FCFG2[MAXADDR0]). */
1614#define FSL_FEATURE_SIM_FCFG_HAS_MAXADDR0 (1)
1615/* @brief Maximum flash address block 1 address specifier (register bit field FCFG2[MAXADDR1]). */
1616#define FSL_FEATURE_SIM_FCFG_HAS_MAXADDR1 (1)
1617/* @brief Maximum flash address block 0 or 1 address specifier (register bit field FCFG2[MAXADDR01]). */
1618#define FSL_FEATURE_SIM_FCFG_HAS_MAXADDR01 (0)
1619/* @brief Maximum flash address block 2 or 3 address specifier (register bit field FCFG2[MAXADDR23]). */
1620#define FSL_FEATURE_SIM_FCFG_HAS_MAXADDR23 (0)
1621/* @brief Has program flash availability specifier (register bit FCFG2[PFLSH]). */
1622#define FSL_FEATURE_SIM_FCFG_HAS_PFLSH (1)
1623/* @brief Has program flash swapping (register bit FCFG2[SWAPPFLSH]). */
1624#define FSL_FEATURE_SIM_FCFG_HAS_PFLSH_SWAP (1)
1625/* @brief Has miscellanious control register (register MCR). */
1626#define FSL_FEATURE_SIM_HAS_MISC_CONTROLS (0)
1627/* @brief Has COP watchdog (registers COPC and SRVCOP). */
1628#define FSL_FEATURE_SIM_HAS_COP_WATCHDOG (0)
1629/* @brief Has COP watchdog stop (register bits COPC[COPSTPEN], COPC[COPDBGEN] and COPC[COPCLKSEL]). */
1630#define FSL_FEATURE_SIM_HAS_COP_STOP (0)
1631/* @brief Has LLWU clock gate bit (e.g SIM_SCGC4). */
1632#define FSL_FEATURE_SIM_HAS_SCGC_LLWU (0)
1633
1634/* SMC module features */
1635
1636/* @brief Has partial stop option (register bit STOPCTRL[PSTOPO]). */
1637#define FSL_FEATURE_SMC_HAS_PSTOPO (1)
1638/* @brief Has LPO power option (register bit STOPCTRL[LPOPO]). */
1639#define FSL_FEATURE_SMC_HAS_LPOPO (0)
1640/* @brief Has POR power option (register bit STOPCTRL[PORPO] or VLLSCTRL[PORPO]). */
1641#define FSL_FEATURE_SMC_HAS_PORPO (1)
1642/* @brief Has low power wakeup on interrupt (register bit PMCTRL[LPWUI]). */
1643#define FSL_FEATURE_SMC_HAS_LPWUI (0)
1644/* @brief Has LLS or VLLS mode control (register bit STOPCTRL[LLSM]). */
1645#define FSL_FEATURE_SMC_HAS_LLS_SUBMODE (1)
1646/* @brief Has VLLS mode control (register bit VLLSCTRL[VLLSM]). */
1647#define FSL_FEATURE_SMC_USE_VLLSCTRL_REG (0)
1648/* @brief Has VLLS mode control (register bit STOPCTRL[VLLSM]). */
1649#define FSL_FEATURE_SMC_USE_STOPCTRL_VLLSM (0)
1650/* @brief Has RAM partition 2 power option (register bit STOPCTRL[RAM2PO]). */
1651#define FSL_FEATURE_SMC_HAS_RAM2_POWER_OPTION (1)
1652/* @brief Has high speed run mode (register bit PMPROT[AHSRUN]). */
1653#define FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE (1)
1654/* @brief Has low leakage stop mode (register bit PMPROT[ALLS]). */
1655#define FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE (1)
1656/* @brief Has very low leakage stop mode (register bit PMPROT[AVLLS]). */
1657#define FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE (1)
1658/* @brief Has stop submode. */
1659#define FSL_FEATURE_SMC_HAS_SUB_STOP_MODE (1)
1660/* @brief Has stop submode 0(VLLS0). */
1661#define FSL_FEATURE_SMC_HAS_STOP_SUBMODE0 (1)
1662/* @brief Has stop submode 1(VLLS1). */
1663#define FSL_FEATURE_SMC_HAS_STOP_SUBMODE1 (1)
1664/* @brief Has stop submode 2(VLLS2). */
1665#define FSL_FEATURE_SMC_HAS_STOP_SUBMODE2 (1)
1666/* @brief Has SMC_PARAM. */
1667#define FSL_FEATURE_SMC_HAS_PARAM (0)
1668/* @brief Has SMC_VERID. */
1669#define FSL_FEATURE_SMC_HAS_VERID (0)
1670/* @brief Has stop abort flag (register bit PMCTRL[STOPA]). */
1671#define FSL_FEATURE_SMC_HAS_PMCTRL_STOPA (1)
1672/* @brief Has tamper reset (register bit SRS[TAMPER]). */
1673#define FSL_FEATURE_SMC_HAS_SRS_TAMPER (0)
1674/* @brief Has security violation reset (register bit SRS[SECVIO]). */
1675#define FSL_FEATURE_SMC_HAS_SRS_SECVIO (0)
1676
1677/* DSPI module features */
1678
1679/* @brief Receive/transmit FIFO size in number of items. */
1680#define FSL_FEATURE_DSPI_FIFO_SIZEn(x) \
1681 (((x) == SPI0) ? (4) : \
1682 (((x) == SPI1) ? (1) : \
1683 (((x) == SPI2) ? (1) : (-1))))
1684/* @brief Maximum transfer data width in bits. */
1685#define FSL_FEATURE_DSPI_MAX_DATA_WIDTH (16)
1686/* @brief Maximum number of chip select pins. (Reflects the width of register bit field PUSHR[PCS].) */
1687#define FSL_FEATURE_DSPI_MAX_CHIP_SELECT_COUNT (6)
1688/* @brief Number of chip select pins. */
1689#define FSL_FEATURE_DSPI_CHIP_SELECT_COUNT (6)
1690/* @brief Number of CTAR registers. */
1691#define FSL_FEATURE_DSPI_CTAR_COUNT (2)
1692/* @brief Has chip select strobe capability on the PCS5 pin. */
1693#define FSL_FEATURE_DSPI_HAS_CHIP_SELECT_STROBE (1)
1694/* @brief Has separated TXDATA and CMD FIFOs (register SREX). */
1695#define FSL_FEATURE_DSPI_HAS_SEPARATE_TXDATA_CMD_FIFO (0)
1696/* @brief Has 16-bit data transfer support. */
1697#define FSL_FEATURE_DSPI_16BIT_TRANSFERS (1)
1698/* @brief Has separate DMA RX and TX requests. */
1699#define FSL_FEATURE_DSPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
1700
1701/* SYSMPU module features */
1702
1703/* @brief Specifies number of descriptors available. */
1704#define FSL_FEATURE_SYSMPU_DESCRIPTOR_COUNT (12)
1705/* @brief Has process identifier support. */
1706#define FSL_FEATURE_SYSMPU_HAS_PROCESS_IDENTIFIER (1)
1707/* @brief Total number of MPU slave. */
1708#define FSL_FEATURE_SYSMPU_SLAVE_COUNT (5)
1709/* @brief Total number of MPU master. */
1710#define FSL_FEATURE_SYSMPU_MASTER_COUNT (7)
1711
1712/* SysTick module features */
1713
1714/* @brief Systick has external reference clock. */
1715#define FSL_FEATURE_SYSTICK_HAS_EXT_REF (0)
1716/* @brief Systick external reference clock is core clock divided by this value. */
1717#define FSL_FEATURE_SYSTICK_EXT_REF_CORE_DIV (0)
1718
1719/* TPM module features */
1720
1721/* @brief Bus clock is the source clock for the module. */
1722#define FSL_FEATURE_TPM_BUS_CLOCK (0)
1723/* @brief Number of channels. */
1724#define FSL_FEATURE_TPM_CHANNEL_COUNTn(x) (2)
1725/* @brief Has counter reset by the selected input capture event (register bits C0SC[ICRST], C1SC[ICRST], ...). */
1726#define FSL_FEATURE_TPM_HAS_COUNTER_RESET_BY_CAPTURE_EVENT (0)
1727/* @brief Has TPM_PARAM. */
1728#define FSL_FEATURE_TPM_HAS_PARAM (0)
1729/* @brief Has TPM_VERID. */
1730#define FSL_FEATURE_TPM_HAS_VERID (0)
1731/* @brief Has TPM_GLOBAL. */
1732#define FSL_FEATURE_TPM_HAS_GLOBAL (0)
1733/* @brief Has TPM_TRIG. */
1734#define FSL_FEATURE_TPM_HAS_TRIG (0)
1735/* @brief Has counter pause on trigger. */
1736#define FSL_FEATURE_TPM_HAS_PAUSE_COUNTER_ON_TRIGGER (1)
1737/* @brief Has external trigger selection. */
1738#define FSL_FEATURE_TPM_HAS_EXTERNAL_TRIGGER_SELECTION (1)
1739/* @brief Has TPM_COMBINE register. */
1740#define FSL_FEATURE_TPM_HAS_COMBINE (1)
1741/* @brief Whether COMBINE register has effect. */
1742#define FSL_FEATURE_TPM_COMBINE_HAS_EFFECTn(x) (1)
1743/* @brief Has TPM_POL. */
1744#define FSL_FEATURE_TPM_HAS_POL (1)
1745/* @brief Has TPM_FILTER register. */
1746#define FSL_FEATURE_TPM_HAS_FILTER (1)
1747/* @brief Whether FILTER register has effect. */
1748#define FSL_FEATURE_TPM_FILTER_HAS_EFFECTn(x) (1)
1749/* @brief Has TPM_QDCTRL register. */
1750#define FSL_FEATURE_TPM_HAS_QDCTRL (1)
1751/* @brief Whether QDCTRL register has effect. */
1752#define FSL_FEATURE_TPM_QDCTRL_HAS_EFFECTn(x) (1)
1753/* @brief Is affected by errata with ID 050050 (Incorrect duty output when EPWM mode is set to PS=0 during write 1 to CnV register). */
1754#define FSL_FEATURE_TPM_HAS_ERRATA_050050 (0)
1755
1756/* TSI module features */
1757
1758/* @brief TSI module version. */
1759#define FSL_FEATURE_TSI_VERSION (4)
1760/* @brief Has end-of-scan DMA transfer request enable (register bit GENCS[EOSDMEO]). */
1761#define FSL_FEATURE_TSI_HAS_END_OF_SCAN_DMA_ENABLE (1)
1762/* @brief Number of TSI channels. */
1763#define FSL_FEATURE_TSI_CHANNEL_COUNT (16)
1764
1765/* UART module features */
1766
1767/* @brief Has receive FIFO overflow detection (bit field CFIFO[RXOFE]). */
1768#define FSL_FEATURE_UART_HAS_IRQ_EXTENDED_FUNCTIONS (1)
1769/* @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). */
1770#define FSL_FEATURE_UART_HAS_LOW_POWER_UART_SUPPORT (0)
1771/* @brief Has extended data register ED (or extra flags in the DATA register if the registers are 32-bit wide). */
1772#define FSL_FEATURE_UART_HAS_EXTENDED_DATA_REGISTER_FLAGS (1)
1773/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
1774#define FSL_FEATURE_UART_HAS_FIFO (1)
1775/* @brief Hardware flow control (RTS, CTS) is supported. */
1776#define FSL_FEATURE_UART_HAS_MODEM_SUPPORT (1)
1777/* @brief Infrared (modulation) is supported. */
1778#define FSL_FEATURE_UART_HAS_IR_SUPPORT (1)
1779/* @brief 2 bits long stop bit is available. */
1780#define FSL_FEATURE_UART_HAS_STOP_BIT_CONFIG_SUPPORT (1)
1781/* @brief If 10-bit mode is supported. */
1782#define FSL_FEATURE_UART_HAS_10BIT_DATA_SUPPORT (1)
1783/* @brief Baud rate fine adjustment is available. */
1784#define FSL_FEATURE_UART_HAS_BAUD_RATE_FINE_ADJUST_SUPPORT (1)
1785/* @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). */
1786#define FSL_FEATURE_UART_HAS_BAUD_RATE_OVER_SAMPLING_SUPPORT (0)
1787/* @brief Baud rate oversampling is available. */
1788#define FSL_FEATURE_UART_HAS_RX_RESYNC_SUPPORT (0)
1789/* @brief Baud rate oversampling is available. */
1790#define FSL_FEATURE_UART_HAS_BOTH_EDGE_SAMPLING_SUPPORT (0)
1791/* @brief Peripheral type. */
1792#define FSL_FEATURE_UART_IS_SCI (0)
1793/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
1794#define FSL_FEATURE_UART_FIFO_SIZEn(x) \
1795 (((x) == UART0) ? (8) : \
1796 (((x) == UART1) ? (8) : \
1797 (((x) == UART2) ? (1) : \
1798 (((x) == UART3) ? (1) : \
1799 (((x) == UART4) ? (1) : (-1))))))
1800/* @brief Maximal data width without parity bit. */
1801#define FSL_FEATURE_UART_MAX_DATA_WIDTH_WITH_NO_PARITY (9)
1802/* @brief Maximal data width with parity bit. */
1803#define FSL_FEATURE_UART_MAX_DATA_WIDTH_WITH_PARITY (10)
1804/* @brief Supports two match addresses to filter incoming frames. */
1805#define FSL_FEATURE_UART_HAS_ADDRESS_MATCHING (1)
1806/* @brief Has transmitter/receiver DMA enable bits C5[TDMAE]/C5[RDMAE] (or BAUD[TDMAE]/BAUD[RDMAE] if the registers are 32-bit wide). */
1807#define FSL_FEATURE_UART_HAS_DMA_ENABLE (0)
1808/* @brief Has transmitter/receiver DMA select bits C4[TDMAS]/C4[RDMAS], resp. C5[TDMAS]/C5[RDMAS] if IS_SCI = 0. */
1809#define FSL_FEATURE_UART_HAS_DMA_SELECT (1)
1810/* @brief Data character bit order selection is supported (bit field S2[MSBF] or STAT[MSBF] if the registers are 32-bit wide). */
1811#define FSL_FEATURE_UART_HAS_BIT_ORDER_SELECT (1)
1812/* @brief Has smart card (ISO7816 protocol) support and no improved smart card support. */
1813#define FSL_FEATURE_UART_HAS_SMART_CARD_SUPPORT (1)
1814/* @brief Has improved smart card (ISO7816 protocol) support. */
1815#define FSL_FEATURE_UART_HAS_IMPROVED_SMART_CARD_SUPPORT (1)
1816/* @brief Has local operation network (CEA709.1-B protocol) support. */
1817#define FSL_FEATURE_UART_HAS_LOCAL_OPERATION_NETWORK_SUPPORT (0)
1818/* @brief Has 32-bit registers (BAUD, STAT, CTRL, DATA, MATCH, MODIR) instead of 8-bit (BDH, BDL, C1, S1, D, etc.). */
1819#define FSL_FEATURE_UART_HAS_32BIT_REGISTERS (0)
1820/* @brief Lin break detect available (has bit BDH[LBKDIE]). */
1821#define FSL_FEATURE_UART_HAS_LIN_BREAK_DETECT (1)
1822/* @brief UART stops in Wait mode available (has bit C1[UARTSWAI]). */
1823#define FSL_FEATURE_UART_HAS_WAIT_MODE_OPERATION (1)
1824/* @brief Has separate DMA RX and TX requests. */
1825#define FSL_FEATURE_UART_HAS_SEPARATE_DMA_RX_TX_REQn(x) \
1826 (((x) == UART0) ? (1) : \
1827 (((x) == UART1) ? (1) : \
1828 (((x) == UART2) ? (1) : \
1829 (((x) == UART3) ? (1) : \
1830 (((x) == UART4) ? (0) : (-1))))))
1831
1832/* USB module features */
1833
1834/* @brief KHCI module instance count */
1835#define FSL_FEATURE_USB_KHCI_COUNT (1)
1836/* @brief HOST mode enabled */
1837#define FSL_FEATURE_USB_KHCI_HOST_ENABLED (1)
1838/* @brief OTG mode enabled */
1839#define FSL_FEATURE_USB_KHCI_OTG_ENABLED (1)
1840/* @brief Size of the USB dedicated RAM */
1841#define FSL_FEATURE_USB_KHCI_USB_RAM (0)
1842/* @brief Has KEEP_ALIVE_CTRL register */
1843#define FSL_FEATURE_USB_KHCI_KEEP_ALIVE_ENABLED (0)
1844/* @brief Has the Dynamic SOF threshold compare support */
1845#define FSL_FEATURE_USB_KHCI_DYNAMIC_SOF_THRESHOLD_COMPARE_ENABLED (0)
1846/* @brief Has the VBUS detect support */
1847#define FSL_FEATURE_USB_KHCI_VBUS_DETECT_ENABLED (0)
1848/* @brief Has the IRC48M module clock support */
1849#define FSL_FEATURE_USB_KHCI_IRC48M_MODULE_CLOCK_ENABLED (1)
1850/* @brief Number of endpoints supported */
1851#define FSL_FEATURE_USB_ENDPT_COUNT (16)
1852/* @brief Has STALL_IL/OL_DIS registers */
1853#define FSL_FEATURE_USB_KHCI_HAS_STALL_LOW (0)
1854/* @brief Has STALL_IH/OH_DIS registers */
1855#define FSL_FEATURE_USB_KHCI_HAS_STALL_HIGH (0)
1856
1857/* USBHS module features */
1858
1859/* @brief EHCI module instance count */
1860#define FSL_FEATURE_USBHS_EHCI_COUNT (1)
1861/* @brief Number of endpoints supported */
1862#define FSL_FEATURE_USBHS_ENDPT_COUNT (8)
1863
1864/* VREF module features */
1865
1866/* @brief Has chop oscillator (bit TRM[CHOPEN]) */
1867#define FSL_FEATURE_VREF_HAS_CHOP_OSC (1)
1868/* @brief Has second order curvature compensation (bit SC[ICOMPEN]) */
1869#define FSL_FEATURE_VREF_HAS_COMPENSATION (1)
1870/* @brief If high/low buffer mode supported */
1871#define FSL_FEATURE_VREF_MODE_LV_TYPE (1)
1872/* @brief Module has also low reference (registers VREFL/VREFH) */
1873#define FSL_FEATURE_VREF_HAS_LOW_REFERENCE (0)
1874/* @brief Has VREF_TRM4. */
1875#define FSL_FEATURE_VREF_HAS_TRM4 (0)
1876
1877/* WDOG module features */
1878
1879/* @brief Watchdog is available. */
1880#define FSL_FEATURE_WDOG_HAS_WATCHDOG (1)
1881/* @brief Has Wait mode support. */
1882#define FSL_FEATURE_WDOG_HAS_WAITEN (1)
1883
1884#endif /* _MK65F18_FEATURES_H_ */
1885