diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MKE04Z1284/MKE04Z1284_features.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/MKE04Z1284/MKE04Z1284_features.h | 426 |
1 files changed, 426 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MKE04Z1284/MKE04Z1284_features.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MKE04Z1284/MKE04Z1284_features.h new file mode 100644 index 000000000..7917f1e4c --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MKE04Z1284/MKE04Z1284_features.h | |||
@@ -0,0 +1,426 @@ | |||
1 | /* | ||
2 | ** ################################################################### | ||
3 | ** Version: rev. 1.0, 2017-05-19 | ||
4 | ** Build: b201014 | ||
5 | ** | ||
6 | ** Abstract: | ||
7 | ** Chip specific module features. | ||
8 | ** | ||
9 | ** Copyright 2016 Freescale Semiconductor, Inc. | ||
10 | ** Copyright 2016-2020 NXP | ||
11 | ** All rights reserved. | ||
12 | ** | ||
13 | ** SPDX-License-Identifier: BSD-3-Clause | ||
14 | ** | ||
15 | ** http: www.nxp.com | ||
16 | ** mail: [email protected] | ||
17 | ** | ||
18 | ** Revisions: | ||
19 | ** - rev. 1.0 (2017-05-19) | ||
20 | ** Initial version. | ||
21 | ** | ||
22 | ** ################################################################### | ||
23 | */ | ||
24 | |||
25 | #ifndef _MKE04Z1284_FEATURES_H_ | ||
26 | #define _MKE04Z1284_FEATURES_H_ | ||
27 | |||
28 | /* SOC module features */ | ||
29 | |||
30 | /* @brief ACMP availability on the SoC. */ | ||
31 | #define FSL_FEATURE_SOC_ACMP_COUNT (2) | ||
32 | /* @brief ADC availability on the SoC. */ | ||
33 | #define FSL_FEATURE_SOC_ADC_COUNT (1) | ||
34 | /* @brief CRC availability on the SoC. */ | ||
35 | #define FSL_FEATURE_SOC_CRC_COUNT (1) | ||
36 | /* @brief FGPIO availability on the SoC. */ | ||
37 | #define FSL_FEATURE_SOC_FGPIO_COUNT (3) | ||
38 | /* @brief FTM availability on the SoC. */ | ||
39 | #define FSL_FEATURE_SOC_FTM_COUNT (3) | ||
40 | /* @brief FTMRE availability on the SoC. */ | ||
41 | #define FSL_FEATURE_SOC_FTMRE_COUNT (1) | ||
42 | /* @brief GPIO availability on the SoC. */ | ||
43 | #define FSL_FEATURE_SOC_GPIO_COUNT (3) | ||
44 | /* @brief I2C availability on the SoC. */ | ||
45 | #define FSL_FEATURE_SOC_I2C_COUNT (2) | ||
46 | /* @brief ICS availability on the SoC. */ | ||
47 | #define FSL_FEATURE_SOC_ICS_COUNT (1) | ||
48 | /* @brief IRQ availability on the SoC. */ | ||
49 | #define FSL_FEATURE_SOC_IRQ_COUNT (1) | ||
50 | /* @brief KBI availability on the SoC. */ | ||
51 | #define FSL_FEATURE_SOC_KBI_COUNT (2) | ||
52 | /* @brief MCM availability on the SoC. */ | ||
53 | #define FSL_FEATURE_SOC_MCM_COUNT (1) | ||
54 | /* @brief OSC availability on the SoC. */ | ||
55 | #define FSL_FEATURE_SOC_OSC_COUNT (1) | ||
56 | /* @brief PIT availability on the SoC. */ | ||
57 | #define FSL_FEATURE_SOC_PIT_COUNT (1) | ||
58 | /* @brief PMC availability on the SoC. */ | ||
59 | #define FSL_FEATURE_SOC_PMC_COUNT (1) | ||
60 | /* @brief PORT availability on the SoC. */ | ||
61 | #define FSL_FEATURE_SOC_PORT_COUNT (1) | ||
62 | /* @brief PWT availability on the SoC. */ | ||
63 | #define FSL_FEATURE_SOC_PWT_COUNT (1) | ||
64 | /* @brief ROM availability on the SoC. */ | ||
65 | #define FSL_FEATURE_SOC_ROM_COUNT (1) | ||
66 | /* @brief RTC availability on the SoC. */ | ||
67 | #define FSL_FEATURE_SOC_RTC_COUNT (1) | ||
68 | /* @brief SIM availability on the SoC. */ | ||
69 | #define FSL_FEATURE_SOC_SIM_COUNT (1) | ||
70 | /* @brief SPI availability on the SoC. */ | ||
71 | #define FSL_FEATURE_SOC_SPI_COUNT (2) | ||
72 | /* @brief UART availability on the SoC. */ | ||
73 | #define FSL_FEATURE_SOC_UART_COUNT (3) | ||
74 | /* @brief WDOG availability on the SoC. */ | ||
75 | #define FSL_FEATURE_SOC_WDOG_COUNT (1) | ||
76 | |||
77 | /* ADC module features */ | ||
78 | |||
79 | /* @brief Has status and control register 5. */ | ||
80 | #define FSL_FEATURE_ADC_HAS_SC5_REG (1) | ||
81 | /* @brief Has hardware trigger multiple conversion enable. */ | ||
82 | #define FSL_FEATURE_ADC_HAS_SC4_HTRGME (1) | ||
83 | |||
84 | /* CRC module features */ | ||
85 | |||
86 | /* @brief Has data register with name CRC */ | ||
87 | #define FSL_FEATURE_CRC_HAS_CRC_REG (0) | ||
88 | |||
89 | /* FGPIO module features */ | ||
90 | |||
91 | /* No feature definitions */ | ||
92 | |||
93 | /* FTM module features */ | ||
94 | |||
95 | /* @brief Number of channels. */ | ||
96 | #define FSL_FEATURE_FTM_CHANNEL_COUNTn(x) (8) | ||
97 | /* @brief Has counter reset by the selected input capture event (register bits C0SC[ICRST], C1SC[ICRST], ...). */ | ||
98 | #define FSL_FEATURE_FTM_HAS_COUNTER_RESET_BY_CAPTURE_EVENT (0) | ||
99 | /* @brief Has extended deadtime value. */ | ||
100 | #define FSL_FEATURE_FTM_HAS_EXTENDED_DEADTIME_VALUE (0) | ||
101 | /* @brief Enable pwm output for the module. */ | ||
102 | #define FSL_FEATURE_FTM_HAS_ENABLE_PWM_OUTPUT (0) | ||
103 | /* @brief Has half-cycle reload for the module. */ | ||
104 | #define FSL_FEATURE_FTM_HAS_HALFCYCLE_RELOAD (0) | ||
105 | /* @brief Has reload interrupt. */ | ||
106 | #define FSL_FEATURE_FTM_HAS_RELOAD_INTERRUPT (0) | ||
107 | /* @brief Has reload initialization trigger. */ | ||
108 | #define FSL_FEATURE_FTM_HAS_RELOAD_INITIALIZATION_TRIGGER (0) | ||
109 | /* @brief Has DMA support, bitfield CnSC[DMA]. */ | ||
110 | #define FSL_FEATURE_FTM_HAS_DMA_SUPPORT (0) | ||
111 | /* @brief If channel 6 is used to generate channel trigger, bitfield EXTTRIG[CH6TRIG]. */ | ||
112 | #define FSL_FEATURE_FTM_HAS_CHANNEL6_TRIGGER (0) | ||
113 | /* @brief If channel 7 is used to generate channel trigger, bitfield EXTTRIG[CH7TRIG]. */ | ||
114 | #define FSL_FEATURE_FTM_HAS_CHANNEL7_TRIGGER (0) | ||
115 | /* @brief Has no QDCTRL. */ | ||
116 | #define FSL_FEATURE_FTM_HAS_NO_QDCTRL (1) | ||
117 | /* @brief If instance has only TPM function. */ | ||
118 | #define FSL_FEATURE_FTM_IS_TPM_ONLY_INSTANCEn(x) \ | ||
119 | (((x) == FTM0) ? (1) : \ | ||
120 | (((x) == FTM1) ? (1) : \ | ||
121 | (((x) == FTM2) ? (0) : (-1)))) | ||
122 | /* @brief TPM Has no CONF. */ | ||
123 | #define FSL_FEATURE_TPM_HAS_NO_CONF (1) | ||
124 | /* @brief There is CLKS bit in SC register. */ | ||
125 | #define FSL_FEATURE_TPM_HAS_SC_CLKS (1) | ||
126 | /* @brief Wait CnV register is updated after CnV register is written. */ | ||
127 | #define FSL_FEATURE_TPM_WAIT_CnV_REGISTER_UPDATE (1) | ||
128 | /* @brief CHF is cleared by write a 0 to the CHF bit in CnSC register. */ | ||
129 | #define FSL_FEATURE_TPM_CnSC_CHF_WRITE_0_CLEAR (1) | ||
130 | /* @brief Has no STATUS. */ | ||
131 | #define FSL_FEATURE_TPM_HAS_NO_STATUS (1) | ||
132 | /* @brief Number of channels. */ | ||
133 | #define FSL_FEATURE_TPM_CHANNEL_COUNTn(x) ((x) == TPM0 ? (2) : ((x) == TPM1 ? (2) : (-1))) | ||
134 | |||
135 | /* FTMRE module features */ | ||
136 | |||
137 | #if defined(CPU_MKE04Z128VLD4) || defined(CPU_MKE04Z128VLH4) || defined(CPU_MKE04Z128VLK4) || defined(CPU_MKE04Z128VQH4) | ||
138 | /* @brief Is of type FTMRE. */ | ||
139 | #define FSL_FEATURE_FLASH_IS_FTMRE (1) | ||
140 | /* @brief Is of type FTMRH. */ | ||
141 | #define FSL_FEATURE_FLASH_IS_FTMRH (0) | ||
142 | /* @brief Has EEPROM region protection (register FEPROT). */ | ||
143 | #define FSL_FEATURE_FLASH_HAS_EEROM_REGION_PROTECTION (0) | ||
144 | /* @brief Has flash cache control in FMC module. */ | ||
145 | #define FSL_FEATURE_FLASH_HAS_FMC_FLASH_CACHE_CONTROLS (0) | ||
146 | /* @brief Has flash cache control in MCM module. */ | ||
147 | #define FSL_FEATURE_FLASH_HAS_MCM_FLASH_CACHE_CONTROLS (1) | ||
148 | /* @brief P-Flash higher region start address. */ | ||
149 | #define FSL_FEATURE_FLASH_PFLASH_HIGH_START_ADDRESS (0x00007FFF) | ||
150 | /* @brief P-Flash start address. */ | ||
151 | #define FSL_FEATURE_FLASH_PFLASH_START_ADDRESS (0x00000000) | ||
152 | /* @brief P-Flash block count. */ | ||
153 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_COUNT (1) | ||
154 | /* @brief P-Flash block size. */ | ||
155 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SIZE (131072) | ||
156 | /* @brief P-Flash sector size. */ | ||
157 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE (512) | ||
158 | /* @brief P-Flash write unit size. */ | ||
159 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE (8) | ||
160 | /* @brief P-Flash data path width. */ | ||
161 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_DATA_PATH_WIDTH (16) | ||
162 | /* @brief Has EEPROM memory. */ | ||
163 | #define FSL_FEATURE_FLASH_HAS_EEPROM (0) | ||
164 | /* @brief EEPROM start address. */ | ||
165 | #define FSL_FEATURE_FLASH_EEPROM_START_ADDRESS (0x10000000) | ||
166 | /* @brief EEPROM block count. */ | ||
167 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_COUNT (0) | ||
168 | /* @brief EEPROM block size . */ | ||
169 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_SIZE (0) | ||
170 | /* @brief EEPROM sector size. */ | ||
171 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_SECTOR_SIZE (0) | ||
172 | /* @brief EEPROM write unit size. */ | ||
173 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_WRITE_UNIT_SIZE (0) | ||
174 | /* @brief EEPROM data path width. */ | ||
175 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_DATA_PATH_WIDTH (0) | ||
176 | /* @brief Has 0x01 Erase Verify All Blocks command. */ | ||
177 | #define FSL_FEATURE_FLASH_HAS_ERASE_VERIFY_ALL_BLOCKS_CMD (1) | ||
178 | /* @brief Has 0x02 Erase Verify Block command. */ | ||
179 | #define FSL_FEATURE_FLASH_HAS_ERASE_VERIFY_BLOCK_CMD (1) | ||
180 | /* @brief Has 0x03 Erase Verify Flash Section command. */ | ||
181 | #define FSL_FEATURE_FLASH_HAS_ERASE_VERIFY_FLASH_SECTION_CMD (1) | ||
182 | /* @brief Has 0x04 Read Once command. */ | ||
183 | #define FSL_FEATURE_FLASH_HAS_READ_ONCE_CMD (1) | ||
184 | /* @brief Has 0x06 Program Flash command. */ | ||
185 | #define FSL_FEATURE_FLASH_HAS_PROGRAM_FLASH_CMD (1) | ||
186 | /* @brief Has 0x07 Program Once command. */ | ||
187 | #define FSL_FEATURE_FLASH_HAS_PROGRAM_ONCE_CMD (1) | ||
188 | /* @brief Has 0x08 Erase All Blocks command. */ | ||
189 | #define FSL_FEATURE_FLASH_HAS_ERASE_ALL_BLOCKS_CMD (1) | ||
190 | /* @brief Has 0x09 Erase Flash Block command. */ | ||
191 | #define FSL_FEATURE_FLASH_HAS_ERASE_FLASH_BLOCK_CMD (1) | ||
192 | /* @brief Has 0x0A Erase Flash Sector command. */ | ||
193 | #define FSL_FEATURE_FLASH_HAS_ERASE_FLASH_SECTOR_CMD (1) | ||
194 | /* @brief Has 0x0B Unsecure Flash command. */ | ||
195 | #define FSL_FEATURE_FLASH_HAS_UNSECURE_FLASH_CMD (1) | ||
196 | /* @brief Has 0x0C Verify Backdoor Access Key command. */ | ||
197 | #define FSL_FEATURE_FLASH_HAS_VERIFY_BACKDOOR_ACCESS_KEY_CMD (1) | ||
198 | /* @brief Has 0x0D Set User Margin Level command. */ | ||
199 | #define FSL_FEATURE_FLASH_HAS_SET_USER_MARGIN_LEVEL_CMD (1) | ||
200 | /* @brief Has 0x0E Set Factory Margin Level command. */ | ||
201 | #define FSL_FEATURE_FLASH_HAS_SET_FACTORY_MARGIN_LEVEL_CMD (1) | ||
202 | /* @brief Has 0x0F Configure NVM command. */ | ||
203 | #define FSL_FEATURE_FLASH_HAS_CONFIGURE_NVM_CMD (1) | ||
204 | /* @brief Has 0x10 Erase Verify EEPROM Section command. */ | ||
205 | #define FSL_FEATURE_FLASH_HAS_ERASE_VERIFY_EEPROM_SECTION_CMD (0) | ||
206 | /* @brief Has 0x11 Program EEPROM command. */ | ||
207 | #define FSL_FEATURE_FLASH_HAS_PROGRAM_EEPROM_CMD (0) | ||
208 | /* @brief Has 0x12 Erase EEPROM Sector command. */ | ||
209 | #define FSL_FEATURE_FLASH_HAS_ERASE_EEPROM_SECTOR_CMD (0) | ||
210 | /* @brief P-Flash Erase sector command address alignment. */ | ||
211 | #define FSL_FEATURE_FLASH_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT (4) | ||
212 | /* @brief P-Flash Rrogram/Verify section command address alignment. */ | ||
213 | #define FSL_FEATURE_FLASH_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT (4) | ||
214 | /* @brief P-Flash Program flash command address alignment. */ | ||
215 | #define FSL_FEATURE_FLASH_PFLASH_PROGRAM_CMD_ADDRESS_ALIGMENT (4) | ||
216 | #elif defined(CPU_MKE04Z64VLD4) || defined(CPU_MKE04Z64VLH4) || defined(CPU_MKE04Z64VLK4) || defined(CPU_MKE04Z64VQH4) | ||
217 | /* @brief Is of type FTMRE. */ | ||
218 | #define FSL_FEATURE_FLASH_IS_FTMRE (1U) | ||
219 | /* @brief Is of type FTMRH. */ | ||
220 | #define FSL_FEATURE_FLASH_IS_FTMRH (0U) | ||
221 | /* @brief Has EEPROM region protection (register FEPROT). */ | ||
222 | #define FSL_FEATURE_FLASH_HAS_EEROM_REGION_PROTECTION (0U) | ||
223 | /* @brief Has flash cache control in FMC module. */ | ||
224 | #define FSL_FEATURE_FLASH_HAS_FMC_FLASH_CACHE_CONTROLS (0U) | ||
225 | /* @brief Has flash cache control in MCM module. */ | ||
226 | #define FSL_FEATURE_FLASH_HAS_MCM_FLASH_CACHE_CONTROLS (1U) | ||
227 | /* @brief P-Flash higher region start address. */ | ||
228 | #define FSL_FEATURE_FLASH_PFLASH_HIGH_START_ADDRESS (0x00007FFFUL) | ||
229 | /* @brief P-Flash start address. */ | ||
230 | #define FSL_FEATURE_FLASH_PFLASH_START_ADDRESS (0x00000000UL) | ||
231 | /* @brief P-Flash block count. */ | ||
232 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_COUNT (1U) | ||
233 | /* @brief P-Flash block size. */ | ||
234 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SIZE (65536UL) | ||
235 | /* @brief P-Flash sector size. */ | ||
236 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE (512UL) | ||
237 | /* @brief P-Flash write unit size. */ | ||
238 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE (8U) | ||
239 | /* @brief P-Flash data path width. */ | ||
240 | #define FSL_FEATURE_FLASH_PFLASH_BLOCK_DATA_PATH_WIDTH (16U) | ||
241 | /* @brief Has EEPROM memory. */ | ||
242 | #define FSL_FEATURE_FLASH_HAS_EEPROM (0U) | ||
243 | /* @brief EEPROM start address. */ | ||
244 | #define FSL_FEATURE_FLASH_EEPROM_START_ADDRESS (0x10000000UL) | ||
245 | /* @brief EEPROM block count. */ | ||
246 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_COUNT (0U) | ||
247 | /* @brief EEPROM block size . */ | ||
248 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_SIZE (0U) | ||
249 | /* @brief EEPROM sector size. */ | ||
250 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_SECTOR_SIZE (0U) | ||
251 | /* @brief EEPROM write unit size. */ | ||
252 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_WRITE_UNIT_SIZE (0U) | ||
253 | /* @brief EEPROM data path width. */ | ||
254 | #define FSL_FEATURE_FLASH_EEPROM_BLOCK_DATA_PATH_WIDTH (0U) | ||
255 | /* @brief Has 0x01 Erase Verify All Blocks command. */ | ||
256 | #define FSL_FEATURE_FLASH_HAS_ERASE_VERIFY_ALL_BLOCKS_CMD (1U) | ||
257 | /* @brief Has 0x02 Erase Verify Block command. */ | ||
258 | #define FSL_FEATURE_FLASH_HAS_ERASE_VERIFY_BLOCK_CMD (1U) | ||
259 | /* @brief Has 0x03 Erase Verify Flash Section command. */ | ||
260 | #define FSL_FEATURE_FLASH_HAS_ERASE_VERIFY_FLASH_SECTION_CMD (1U) | ||
261 | /* @brief Has 0x04 Read Once command. */ | ||
262 | #define FSL_FEATURE_FLASH_HAS_READ_ONCE_CMD (1U) | ||
263 | /* @brief Has 0x06 Program Flash command. */ | ||
264 | #define FSL_FEATURE_FLASH_HAS_PROGRAM_FLASH_CMD (1U) | ||
265 | /* @brief Has 0x07 Program Once command. */ | ||
266 | #define FSL_FEATURE_FLASH_HAS_PROGRAM_ONCE_CMD (1U) | ||
267 | /* @brief Has 0x08 Erase All Blocks command. */ | ||
268 | #define FSL_FEATURE_FLASH_HAS_ERASE_ALL_BLOCKS_CMD (1U) | ||
269 | /* @brief Has 0x09 Erase Flash Block command. */ | ||
270 | #define FSL_FEATURE_FLASH_HAS_ERASE_FLASH_BLOCK_CMD (1U) | ||
271 | /* @brief Has 0x0A Erase Flash Sector command. */ | ||
272 | #define FSL_FEATURE_FLASH_HAS_ERASE_FLASH_SECTOR_CMD (1U) | ||
273 | /* @brief Has 0x0B Unsecure Flash command. */ | ||
274 | #define FSL_FEATURE_FLASH_HAS_UNSECURE_FLASH_CMD (1U) | ||
275 | /* @brief Has 0x0C Verify Backdoor Access Key command. */ | ||
276 | #define FSL_FEATURE_FLASH_HAS_VERIFY_BACKDOOR_ACCESS_KEY_CMD (1U) | ||
277 | /* @brief Has 0x0D Set User Margin Level command. */ | ||
278 | #define FSL_FEATURE_FLASH_HAS_SET_USER_MARGIN_LEVEL_CMD (1U) | ||
279 | /* @brief Has 0x0E Set Factory Margin Level command. */ | ||
280 | #define FSL_FEATURE_FLASH_HAS_SET_FACTORY_MARGIN_LEVEL_CMD (1U) | ||
281 | /* @brief Has 0x0F Configure NVM command. */ | ||
282 | #define FSL_FEATURE_FLASH_HAS_CONFIGURE_NVM_CMD (1U) | ||
283 | /* @brief Has 0x10 Erase Verify EEPROM Section command. */ | ||
284 | #define FSL_FEATURE_FLASH_HAS_ERASE_VERIFY_EEPROM_SECTION_CMD (0U) | ||
285 | /* @brief Has 0x11 Program EEPROM command. */ | ||
286 | #define FSL_FEATURE_FLASH_HAS_PROGRAM_EEPROM_CMD (0U) | ||
287 | /* @brief Has 0x12 Erase EEPROM Sector command. */ | ||
288 | #define FSL_FEATURE_FLASH_HAS_ERASE_EEPROM_SECTOR_CMD (0U) | ||
289 | /* @brief P-Flash Erase sector command address alignment. */ | ||
290 | #define FSL_FEATURE_FLASH_PFLASH_SECTOR_CMD_ADDRESS_ALIGMENT (4U) | ||
291 | /* @brief P-Flash Rrogram/Verify section command address alignment. */ | ||
292 | #define FSL_FEATURE_FLASH_PFLASH_SECTION_CMD_ADDRESS_ALIGMENT (4U) | ||
293 | /* @brief P-Flash Program flash command address alignment. */ | ||
294 | #define FSL_FEATURE_FLASH_PFLASH_PROGRAM_CMD_ADDRESS_ALIGMENT (4U) | ||
295 | #endif /* defined(CPU_MKE04Z128VLD4) || defined(CPU_MKE04Z128VLH4) || defined(CPU_MKE04Z128VLK4) || \ | ||
296 | defined(CPU_MKE04Z128VQH4) */ | ||
297 | |||
298 | /* GPIO module features */ | ||
299 | |||
300 | /* @brief Has GPIO attribute checker register (GACR). */ | ||
301 | #define FSL_FEATURE_GPIO_HAS_ATTRIBUTE_CHECKER (0) | ||
302 | |||
303 | /* I2C module features */ | ||
304 | |||
305 | /* @brief Has System Management Bus support (registers SMB, A2, SLTL and SLTH). */ | ||
306 | #define FSL_FEATURE_I2C_HAS_SMBUS (1) | ||
307 | /* @brief Maximum supported baud rate in kilobit per second. */ | ||
308 | #define FSL_FEATURE_I2C_MAX_BAUD_KBPS (400) | ||
309 | /* @brief Is affected by errata with ID 6070 (repeat start cannot be generated if the F[MULT] bit field is set to a | ||
310 | * non-zero value). */ | ||
311 | #define FSL_FEATURE_I2C_HAS_ERRATA_6070 (0) | ||
312 | /* @brief Has DMA support (register bit C1[DMAEN]). */ | ||
313 | #define FSL_FEATURE_I2C_HAS_DMA_SUPPORT (0) | ||
314 | /* @brief Has I2C bus start and stop detection (register bits FLT[SSIE], FLT[STARTF] and FLT[STOPF]). */ | ||
315 | #define FSL_FEATURE_I2C_HAS_START_STOP_DETECT (1) | ||
316 | /* @brief Has I2C bus stop detection (register bits FLT[STOPIE] and FLT[STOPF]). */ | ||
317 | #define FSL_FEATURE_I2C_HAS_STOP_DETECT (0) | ||
318 | /* @brief Has I2C bus stop hold off (register bit FLT[SHEN]). */ | ||
319 | #define FSL_FEATURE_I2C_HAS_STOP_HOLD_OFF (1) | ||
320 | /* @brief Maximum width of the glitch filter in number of bus clocks. */ | ||
321 | #define FSL_FEATURE_I2C_MAX_GLITCH_FILTER_WIDTH (15) | ||
322 | /* @brief Has control of the drive capability of the I2C pins. */ | ||
323 | #define FSL_FEATURE_I2C_HAS_HIGH_DRIVE_SELECTION (0) | ||
324 | /* @brief Has double buffering support (register S2). */ | ||
325 | #define FSL_FEATURE_I2C_HAS_DOUBLE_BUFFERING (0) | ||
326 | /* @brief Has double buffer enable. */ | ||
327 | #define FSL_FEATURE_I2C_HAS_DOUBLE_BUFFER_ENABLE (0) | ||
328 | |||
329 | /* KBI module features */ | ||
330 | |||
331 | /* @brief KBI module has source pin. */ | ||
332 | #define FSL_FEATURE_KBI_HAS_SOURCE_PIN (1) | ||
333 | /* @brief KBI register width. */ | ||
334 | #define FSL_FEATURE_KBI_REG_WIDTH (32) | ||
335 | |||
336 | /* PIT module features */ | ||
337 | |||
338 | /* @brief Number of channels (related to number of registers LDVALn, CVALn, TCTRLn, TFLGn). */ | ||
339 | #define FSL_FEATURE_PIT_TIMER_COUNT (2) | ||
340 | /* @brief Has lifetime timer (related to existence of registers LTMR64L and LTMR64H). */ | ||
341 | #define FSL_FEATURE_PIT_HAS_LIFETIME_TIMER (0) | ||
342 | /* @brief Has chain mode (related to existence of register bit field TCTRLn[CHN]). */ | ||
343 | #define FSL_FEATURE_PIT_HAS_CHAIN_MODE (1) | ||
344 | /* @brief Has shared interrupt handler (has not individual interrupt handler for each channel). */ | ||
345 | #define FSL_FEATURE_PIT_HAS_SHARED_IRQ_HANDLER (0) | ||
346 | /* @brief Has timer enable control. */ | ||
347 | #define FSL_FEATURE_PIT_HAS_MDIS (1) | ||
348 | |||
349 | /* SPI module features */ | ||
350 | |||
351 | /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */ | ||
352 | #define FSL_FEATURE_SPI_HAS_FIFO (0) | ||
353 | /* @brief Has DMA support (register bit fields C2[RXDMAE] and C2[TXDMAE]). */ | ||
354 | #define FSL_FEATURE_SPI_HAS_DMA_SUPPORT (0) | ||
355 | /* @brief Has separate DMA RX and TX requests. */ | ||
356 | #define FSL_FEATURE_SPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (0) | ||
357 | /* @brief Receive/transmit FIFO size in number of 16-bit communication items. */ | ||
358 | #define FSL_FEATURE_SPI_FIFO_SIZEn(x) (0) | ||
359 | /* @brief Maximum transfer data width in bits. */ | ||
360 | #define FSL_FEATURE_SPI_MAX_DATA_WIDTH (8) | ||
361 | /* @brief The data register name has postfix (L as low and H as high). */ | ||
362 | #define FSL_FEATURE_SPI_DATA_REGISTER_HAS_POSTFIX (0) | ||
363 | /* @brief Has separated TXDATA and CMD FIFOs (register SREX). */ | ||
364 | #define FSL_FEATURE_SPI_HAS_SEPARATE_TXDATA_CMD_FIFO (0) | ||
365 | /* @brief Has 16-bit data transfer support. */ | ||
366 | #define FSL_FEATURE_SPI_16BIT_TRANSFERS (0) | ||
367 | |||
368 | /* UART module features */ | ||
369 | |||
370 | /* @brief Has receive FIFO overflow detection (bit field CFIFO[RXOFE]). */ | ||
371 | #define FSL_FEATURE_UART_HAS_IRQ_EXTENDED_FUNCTIONS (1) | ||
372 | /* @brief Has low power features (can be enabled in wait mode via register bit C1[DOZEEN] or CTRL[DOZEEN] if the | ||
373 | * registers are 32-bit wide). */ | ||
374 | #define FSL_FEATURE_UART_HAS_LOW_POWER_UART_SUPPORT (0) | ||
375 | /* @brief Has extended data register ED (or extra flags in the DATA register if the registers are 32-bit wide). */ | ||
376 | #define FSL_FEATURE_UART_HAS_EXTENDED_DATA_REGISTER_FLAGS (0) | ||
377 | /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */ | ||
378 | #define FSL_FEATURE_UART_HAS_FIFO (0) | ||
379 | /* @brief Hardware flow control (RTS, CTS) is supported. */ | ||
380 | #define FSL_FEATURE_UART_HAS_MODEM_SUPPORT (0) | ||
381 | /* @brief Infrared (modulation) is supported. */ | ||
382 | #define FSL_FEATURE_UART_HAS_IR_SUPPORT (0) | ||
383 | /* @brief 2 bits long stop bit is available. */ | ||
384 | #define FSL_FEATURE_UART_HAS_STOP_BIT_CONFIG_SUPPORT (1) | ||
385 | /* @brief If 10-bit mode is supported. */ | ||
386 | #define FSL_FEATURE_UART_HAS_10BIT_DATA_SUPPORT (0) | ||
387 | /* @brief Baud rate fine adjustment is available. */ | ||
388 | #define FSL_FEATURE_UART_HAS_BAUD_RATE_FINE_ADJUST_SUPPORT (0) | ||
389 | /* @brief Baud rate oversampling is available (has bit fields C4[OSR], C5[BOTHEDGE], C5[RESYNCDIS] or BAUD[OSR], | ||
390 | * BAUD[BOTHEDGE], BAUD[RESYNCDIS] if the registers are 32-bit wide). */ | ||
391 | #define FSL_FEATURE_UART_HAS_BAUD_RATE_OVER_SAMPLING_SUPPORT (0) | ||
392 | /* @brief Baud rate oversampling is available. */ | ||
393 | #define FSL_FEATURE_UART_HAS_RX_RESYNC_SUPPORT (1) | ||
394 | /* @brief Baud rate oversampling is available. */ | ||
395 | #define FSL_FEATURE_UART_HAS_BOTH_EDGE_SAMPLING_SUPPORT (1) | ||
396 | /* @brief Peripheral type. */ | ||
397 | #define FSL_FEATURE_UART_IS_SCI (0) | ||
398 | /* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */ | ||
399 | #define FSL_FEATURE_UART_FIFO_SIZE (0) | ||
400 | /* @brief Supports two match addresses to filter incoming frames. */ | ||
401 | #define FSL_FEATURE_UART_HAS_ADDRESS_MATCHING (0) | ||
402 | /* @brief Has transmitter/receiver DMA enable bits C5[TDMAE]/C5[RDMAE] (or BAUD[TDMAE]/BAUD[RDMAE] if the registers are | ||
403 | * 32-bit wide). */ | ||
404 | #define FSL_FEATURE_UART_HAS_DMA_ENABLE (0) | ||
405 | /* @brief Has transmitter/receiver DMA select bits C4[TDMAS]/C4[RDMAS], resp. C5[TDMAS]/C5[RDMAS] if IS_SCI = 0. */ | ||
406 | #define FSL_FEATURE_UART_HAS_DMA_SELECT (0) | ||
407 | /* @brief Data character bit order selection is supported (bit field S2[MSBF] or STAT[MSBF] if the registers are 32-bit | ||
408 | * wide). */ | ||
409 | #define FSL_FEATURE_UART_HAS_BIT_ORDER_SELECT (0) | ||
410 | /* @brief Has smart card (ISO7816 protocol) support and no improved smart card support. */ | ||
411 | #define FSL_FEATURE_UART_HAS_SMART_CARD_SUPPORT (0) | ||
412 | /* @brief Has improved smart card (ISO7816 protocol) support. */ | ||
413 | #define FSL_FEATURE_UART_HAS_IMPROVED_SMART_CARD_SUPPORT (0) | ||
414 | /* @brief Has local operation network (CEA709.1-B protocol) support. */ | ||
415 | #define FSL_FEATURE_UART_HAS_LOCAL_OPERATION_NETWORK_SUPPORT (0) | ||
416 | /* @brief Has 32-bit registers (BAUD, STAT, CTRL, DATA, MATCH, MODIR) instead of 8-bit (BDH, BDL, C1, S1, D, etc.). */ | ||
417 | #define FSL_FEATURE_UART_HAS_32BIT_REGISTERS (0) | ||
418 | /* @brief Lin break detect available (has bit BDH[LBKDIE]). */ | ||
419 | #define FSL_FEATURE_UART_HAS_LIN_BREAK_DETECT (1) | ||
420 | /* @brief UART stops in Wait mode available (has bit C1[UARTSWAI]). */ | ||
421 | #define FSL_FEATURE_UART_HAS_WAIT_MODE_OPERATION (1) | ||
422 | /* @brief Has separate DMA RX and TX requests. */ | ||
423 | #define FSL_FEATURE_UART_HAS_SEPARATE_DMA_RX_TX_REQn(x) (0) | ||
424 | |||
425 | #endif /* _MKE04Z1284_FEATURES_H_ */ | ||
426 | |||