mikroSDK Reference Manual
MK60N512MD100.h
Go to the documentation of this file.
1/*
2** ###################################################################
3** Processor: MK60N512MD100
4** Compilers: ARM Compiler
5** Freescale C/C++ for Embedded ARM
6** GNU ARM C Compiler
7** IAR ANSI C/C++ Compiler for ARM
8** Reference manual: K60P144M100SF2RM, Rev. 3, 4 Nov 2010
9** Version: rev. 1.6, 2011-01-14
10**
11** Abstract:
12** CMSIS Peripheral Access Layer for MK60N512MD100
13**
14** Copyright: 1997 - 2011 Freescale Semiconductor, Inc. All Rights Reserved.
15**
16** http: www.freescale.com
17** mail: support@freescale.com
18**
19** Revisions:
20** - rev. 0.1 (2010-09-29)
21** Initial version
22** - rev. 1.0 (2010-10-15)
23** First public version
24** - rev. 1.1 (2010-10-27)
25** Registers updated according to the new reference manual revision - Rev. 2, 15 Oct 2010
26** ADC - Peripheral register PGA bit definition has been fixed, bits PGALP, PGACHP removed.
27** CAN - Peripheral register MCR bit definition has been fixed, bit WAKSRC removed.
28** CRC - Peripheral register layout structure has been extended with 8/16-bit access to shadow registers.
29** CMP - Peripheral base address macro renamed from HSCMPx_BASE to CMPx_BASE.
30** CMP - Peripheral base pointer macro renamed from HSCMPx to CMPx.
31** DMA - Peripheral base address macro renamed from eDMA_BASE to DMA_BASE.
32** DMA - Peripheral base pointer macro renamed from eDMA to DMA.
33** ENET - Statistic event counter register MASK and SHIFT macros removed (#MTWX43372).
34** GPIO - Port Output Enable Register (POER) has been renamed to Port Data Direction Register (PDDR), all POER related macros fixed to PDDR.
35** PDB - Peripheral register layout structure has been extended for Channel n and DAC n register array access (#MTWX44115).
36** RFSYS - System regfile registers have been added (#MTWX43999)
37** RFVBAT - VBAT regfile registers have been added (#MTWX43999)
38** RNG - Peripheral base address macro renamed from RNGB_BASE to RNG_BASE.
39** RNG - Peripheral base pointer macro renamed from RNGB to RNG.
40** RTC - Peripheral register CR bit definition has been fixed, bit OTE removed.
41** TSI - Peripheral registers STATUS, SCANC bit definition have been fixed, bit groups CAPTRM, DELVOL and AMCLKDIV added.
42** USB - Peripheral base address macro renamed from USBOTG0_BASE to USB0_BASE.
43** USB - Peripheral base pointer macro renamed from USBOTG0 to USB0.
44** VREF - Peripheral register TRM removed.
45** - rev. 1.2 (2010-11-11)
46** Registers updated according to the new reference manual revision - Rev. 3, 4 Nov 2010
47** CAN - Individual Matching Element Update (IMEU) feature has been removed.
48** CAN - Peripheral register layout structure has been fixed, registers IMEUR, LRFR have been removed.
49** CAN - Peripheral register CTRL2 bit definition has been fixed, bits IMEUMASK, LOSTRMMSK, LOSTRLMSK, IMEUEN have been removed.
50** CAN - Peripheral register ESR2 bit definition has been fixed, bits IMEUF, LOSTRMF, LOSTRLF have been removed.
51** NV - Fixed offset address of BACKKEYx, FPROTx registers.
52** TSI - Peripheral register layout structure has been fixed, register WUCNTR has been removed.
53** - rev. 1.3 (2010-11-19)
54** CAN - Support for CAN0_IMEU_IRQn, CAN0_Lost_Rx_IRQn interrupts has been removed.
55** CAN - Support for CAN1_IMEU_IRQn, CAN1_Lost_Rx_IRQn interrupts has been removed.
56** - rev. 1.4 (2010-11-30)
57** EWM - Peripheral base address EWM_BASE definition has been fixed from 0x4005F000u to 0x40061000u (#MTWX44776).
58** - rev. 1.5 (2010-12-17)
59** AIPS0, AIPS1 - Fixed offset of PACRE-PACRP registers (#MTWX45259).
60** CAU - Fixed register definition.
61** - rev. 1.6 (2011-01-14)
62** Added BITBAND_REG() macro to provide access to register bits using bit band region.
63**
64** ###################################################################
65*/
66
73#if !defined(MK60N512MD100_H_)
74#define MK60N512MD100_H_
77#define MCU_MEM_MAP_VERSION 0x0106u
78
86#define BITBAND_REG(Reg,Bit) (*((uint32_t volatile*)(0x42000000u + (32u*((uint32_t)&(Reg) - (uint32_t)0x40000000u)) + (4u*((uint32_t)(Bit))))))
87
88/* ----------------------------------------------------------------------------
89 -- Interrupt vector numbers
90 ---------------------------------------------------------------------------- */
91
96typedef enum IRQn {
97 /* Core interrupts */
107 /* Device specific interrupts */
125 MCM_IRQn = 17,
129 LLW_IRQn = 21,
131 RNG_IRQn = 23,
173 CMT_IRQn = 65,
174 RTC_IRQn = 66,
192 MCG_IRQn = 84,
211 Reserved119_IRQn = 103
213
214 /* end of group Interrupt_vector_numbers */
215
216
217/* ----------------------------------------------------------------------------
218 -- Cortex M4 Core Configuration
219 ---------------------------------------------------------------------------- */
220
224#define __MPU_PRESENT 0
225#define __NVIC_PRIO_BITS 4
226#define __Vendor_SysTickConfig 0
228#include "core_cm4.h" /* Core Peripheral Access Layer */
229#ifndef __PROJECT_MIKROSDK_MIKROE__
230// Note: Added for MikroE implementation.
231#include "system_MK60N512MD100.h" /* Device specific configuration file */
232#endif
233
234 /* end of group Cortex_Core_Configuration */
235
236
237/* ----------------------------------------------------------------------------
238 -- Device Peripheral Access Layer
239 ---------------------------------------------------------------------------- */
240
245/*
246** Start of section using anonymous unions
247*/
248
249#if defined(__ARMCC_VERSION)
250 #pragma push
251 #pragma anon_unions
252#elif defined(__CWCC__)
253 #pragma push
254 #pragma cpp_extensions on
255#elif defined(__GNUC__)
256 /* anonymous unions are enabled by default */
257#elif defined(__IAR_SYSTEMS_ICC__)
258 #pragma language=extended
259#else
260 #error Not supported compiler type
261#endif
262
263/* ----------------------------------------------------------------------------
264 -- ADC Peripheral Access Layer
265 ---------------------------------------------------------------------------- */
266
271typedef struct {
272 __IO uint32_t SC1[2];
273 __IO uint32_t CFG1;
274 __IO uint32_t CFG2;
275 __I uint32_t R[2];
276 __IO uint32_t CV1;
277 __IO uint32_t CV2;
278 __IO uint32_t SC2;
279 __IO uint32_t SC3;
280 __IO uint32_t OFS;
281 __IO uint32_t PG;
282 __IO uint32_t MG;
283 __IO uint32_t CLPD;
284 __IO uint32_t CLPS;
285 __IO uint32_t CLP4;
286 __IO uint32_t CLP3;
287 __IO uint32_t CLP2;
288 __IO uint32_t CLP1;
289 __IO uint32_t CLP0;
290 __IO uint32_t PGA;
291 __IO uint32_t CLMD;
292 __IO uint32_t CLMS;
293 __IO uint32_t CLM4;
294 __IO uint32_t CLM3;
295 __IO uint32_t CLM2;
296 __IO uint32_t CLM1;
297 __IO uint32_t CLM0;
298} ADC_Type;
299
300/* ----------------------------------------------------------------------------
301 -- ADC Register Masks
302 ---------------------------------------------------------------------------- */
303
307/* SC1 Bit Fields */
308#define ADC_SC1_ADCH_MASK 0x1Fu
309#define ADC_SC1_ADCH_SHIFT 0
310#define ADC_SC1_ADCH(x) (((uint32_t)(((uint32_t)(x))<<ADC_SC1_ADCH_SHIFT))&ADC_SC1_ADCH_MASK)
311#define ADC_SC1_DIFF_MASK 0x20u
312#define ADC_SC1_DIFF_SHIFT 5
313#define ADC_SC1_AIEN_MASK 0x40u
314#define ADC_SC1_AIEN_SHIFT 6
315#define ADC_SC1_COCO_MASK 0x80u
316#define ADC_SC1_COCO_SHIFT 7
317/* CFG1 Bit Fields */
318#define ADC_CFG1_ADICLK_MASK 0x3u
319#define ADC_CFG1_ADICLK_SHIFT 0
320#define ADC_CFG1_ADICLK(x) (((uint32_t)(((uint32_t)(x))<<ADC_CFG1_ADICLK_SHIFT))&ADC_CFG1_ADICLK_MASK)
321#define ADC_CFG1_MODE_MASK 0xCu
322#define ADC_CFG1_MODE_SHIFT 2
323#define ADC_CFG1_MODE(x) (((uint32_t)(((uint32_t)(x))<<ADC_CFG1_MODE_SHIFT))&ADC_CFG1_MODE_MASK)
324#define ADC_CFG1_ADLSMP_MASK 0x10u
325#define ADC_CFG1_ADLSMP_SHIFT 4
326#define ADC_CFG1_ADIV_MASK 0x60u
327#define ADC_CFG1_ADIV_SHIFT 5
328#define ADC_CFG1_ADIV(x) (((uint32_t)(((uint32_t)(x))<<ADC_CFG1_ADIV_SHIFT))&ADC_CFG1_ADIV_MASK)
329#define ADC_CFG1_ADLPC_MASK 0x80u
330#define ADC_CFG1_ADLPC_SHIFT 7
331/* CFG2 Bit Fields */
332#define ADC_CFG2_ADLSTS_MASK 0x3u
333#define ADC_CFG2_ADLSTS_SHIFT 0
334#define ADC_CFG2_ADLSTS(x) (((uint32_t)(((uint32_t)(x))<<ADC_CFG2_ADLSTS_SHIFT))&ADC_CFG2_ADLSTS_MASK)
335#define ADC_CFG2_ADHSC_MASK 0x4u
336#define ADC_CFG2_ADHSC_SHIFT 2
337#define ADC_CFG2_ADACKEN_MASK 0x8u
338#define ADC_CFG2_ADACKEN_SHIFT 3
339#define ADC_CFG2_MUXSEL_MASK 0x10u
340#define ADC_CFG2_MUXSEL_SHIFT 4
341/* R Bit Fields */
342#define ADC_R_D_MASK 0xFFFFu
343#define ADC_R_D_SHIFT 0
344#define ADC_R_D(x) (((uint32_t)(((uint32_t)(x))<<ADC_R_D_SHIFT))&ADC_R_D_MASK)
345/* CV1 Bit Fields */
346#define ADC_CV1_CV_MASK 0xFFFFu
347#define ADC_CV1_CV_SHIFT 0
348#define ADC_CV1_CV(x) (((uint32_t)(((uint32_t)(x))<<ADC_CV1_CV_SHIFT))&ADC_CV1_CV_MASK)
349/* CV2 Bit Fields */
350#define ADC_CV2_CV_MASK 0xFFFFu
351#define ADC_CV2_CV_SHIFT 0
352#define ADC_CV2_CV(x) (((uint32_t)(((uint32_t)(x))<<ADC_CV2_CV_SHIFT))&ADC_CV2_CV_MASK)
353/* SC2 Bit Fields */
354#define ADC_SC2_REFSEL_MASK 0x3u
355#define ADC_SC2_REFSEL_SHIFT 0
356#define ADC_SC2_REFSEL(x) (((uint32_t)(((uint32_t)(x))<<ADC_SC2_REFSEL_SHIFT))&ADC_SC2_REFSEL_MASK)
357#define ADC_SC2_DMAEN_MASK 0x4u
358#define ADC_SC2_DMAEN_SHIFT 2
359#define ADC_SC2_ACREN_MASK 0x8u
360#define ADC_SC2_ACREN_SHIFT 3
361#define ADC_SC2_ACFGT_MASK 0x10u
362#define ADC_SC2_ACFGT_SHIFT 4
363#define ADC_SC2_ACFE_MASK 0x20u
364#define ADC_SC2_ACFE_SHIFT 5
365#define ADC_SC2_ADTRG_MASK 0x40u
366#define ADC_SC2_ADTRG_SHIFT 6
367#define ADC_SC2_ADACT_MASK 0x80u
368#define ADC_SC2_ADACT_SHIFT 7
369/* SC3 Bit Fields */
370#define ADC_SC3_AVGS_MASK 0x3u
371#define ADC_SC3_AVGS_SHIFT 0
372#define ADC_SC3_AVGS(x) (((uint32_t)(((uint32_t)(x))<<ADC_SC3_AVGS_SHIFT))&ADC_SC3_AVGS_MASK)
373#define ADC_SC3_AVGE_MASK 0x4u
374#define ADC_SC3_AVGE_SHIFT 2
375#define ADC_SC3_ADCO_MASK 0x8u
376#define ADC_SC3_ADCO_SHIFT 3
377#define ADC_SC3_CALF_MASK 0x40u
378#define ADC_SC3_CALF_SHIFT 6
379#define ADC_SC3_CAL_MASK 0x80u
380#define ADC_SC3_CAL_SHIFT 7
381/* OFS Bit Fields */
382#define ADC_OFS_OFS_MASK 0xFFFFu
383#define ADC_OFS_OFS_SHIFT 0
384#define ADC_OFS_OFS(x) (((uint32_t)(((uint32_t)(x))<<ADC_OFS_OFS_SHIFT))&ADC_OFS_OFS_MASK)
385/* PG Bit Fields */
386#define ADC_PG_PG_MASK 0xFFFFu
387#define ADC_PG_PG_SHIFT 0
388#define ADC_PG_PG(x) (((uint32_t)(((uint32_t)(x))<<ADC_PG_PG_SHIFT))&ADC_PG_PG_MASK)
389/* MG Bit Fields */
390#define ADC_MG_MG_MASK 0xFFFFu
391#define ADC_MG_MG_SHIFT 0
392#define ADC_MG_MG(x) (((uint32_t)(((uint32_t)(x))<<ADC_MG_MG_SHIFT))&ADC_MG_MG_MASK)
393/* CLPD Bit Fields */
394#define ADC_CLPD_CLPD_MASK 0x3Fu
395#define ADC_CLPD_CLPD_SHIFT 0
396#define ADC_CLPD_CLPD(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLPD_CLPD_SHIFT))&ADC_CLPD_CLPD_MASK)
397/* CLPS Bit Fields */
398#define ADC_CLPS_CLPS_MASK 0x3Fu
399#define ADC_CLPS_CLPS_SHIFT 0
400#define ADC_CLPS_CLPS(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLPS_CLPS_SHIFT))&ADC_CLPS_CLPS_MASK)
401/* CLP4 Bit Fields */
402#define ADC_CLP4_CLP4_MASK 0x3FFu
403#define ADC_CLP4_CLP4_SHIFT 0
404#define ADC_CLP4_CLP4(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP4_CLP4_SHIFT))&ADC_CLP4_CLP4_MASK)
405/* CLP3 Bit Fields */
406#define ADC_CLP3_CLP3_MASK 0x1FFu
407#define ADC_CLP3_CLP3_SHIFT 0
408#define ADC_CLP3_CLP3(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP3_CLP3_SHIFT))&ADC_CLP3_CLP3_MASK)
409/* CLP2 Bit Fields */
410#define ADC_CLP2_CLP2_MASK 0xFFu
411#define ADC_CLP2_CLP2_SHIFT 0
412#define ADC_CLP2_CLP2(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP2_CLP2_SHIFT))&ADC_CLP2_CLP2_MASK)
413/* CLP1 Bit Fields */
414#define ADC_CLP1_CLP1_MASK 0x7Fu
415#define ADC_CLP1_CLP1_SHIFT 0
416#define ADC_CLP1_CLP1(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP1_CLP1_SHIFT))&ADC_CLP1_CLP1_MASK)
417/* CLP0 Bit Fields */
418#define ADC_CLP0_CLP0_MASK 0x3Fu
419#define ADC_CLP0_CLP0_SHIFT 0
420#define ADC_CLP0_CLP0(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP0_CLP0_SHIFT))&ADC_CLP0_CLP0_MASK)
421/* PGA Bit Fields */
422#define ADC_PGA_PGAG_MASK 0xF0000u
423#define ADC_PGA_PGAG_SHIFT 16
424#define ADC_PGA_PGAG(x) (((uint32_t)(((uint32_t)(x))<<ADC_PGA_PGAG_SHIFT))&ADC_PGA_PGAG_MASK)
425#define ADC_PGA_PGAEN_MASK 0x800000u
426#define ADC_PGA_PGAEN_SHIFT 23
427/* CLMD Bit Fields */
428#define ADC_CLMD_CLMD_MASK 0x3Fu
429#define ADC_CLMD_CLMD_SHIFT 0
430#define ADC_CLMD_CLMD(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLMD_CLMD_SHIFT))&ADC_CLMD_CLMD_MASK)
431/* CLMS Bit Fields */
432#define ADC_CLMS_CLMS_MASK 0x3Fu
433#define ADC_CLMS_CLMS_SHIFT 0
434#define ADC_CLMS_CLMS(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLMS_CLMS_SHIFT))&ADC_CLMS_CLMS_MASK)
435/* CLM4 Bit Fields */
436#define ADC_CLM4_CLM4_MASK 0x3FFu
437#define ADC_CLM4_CLM4_SHIFT 0
438#define ADC_CLM4_CLM4(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM4_CLM4_SHIFT))&ADC_CLM4_CLM4_MASK)
439/* CLM3 Bit Fields */
440#define ADC_CLM3_CLM3_MASK 0x1FFu
441#define ADC_CLM3_CLM3_SHIFT 0
442#define ADC_CLM3_CLM3(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM3_CLM3_SHIFT))&ADC_CLM3_CLM3_MASK)
443/* CLM2 Bit Fields */
444#define ADC_CLM2_CLM2_MASK 0xFFu
445#define ADC_CLM2_CLM2_SHIFT 0
446#define ADC_CLM2_CLM2(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM2_CLM2_SHIFT))&ADC_CLM2_CLM2_MASK)
447/* CLM1 Bit Fields */
448#define ADC_CLM1_CLM1_MASK 0x7Fu
449#define ADC_CLM1_CLM1_SHIFT 0
450#define ADC_CLM1_CLM1(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM1_CLM1_SHIFT))&ADC_CLM1_CLM1_MASK)
451/* CLM0 Bit Fields */
452#define ADC_CLM0_CLM0_MASK 0x3Fu
453#define ADC_CLM0_CLM0_SHIFT 0
454#define ADC_CLM0_CLM0(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM0_CLM0_SHIFT))&ADC_CLM0_CLM0_MASK)
455
456 /* end of group ADC_Register_Masks */
457
458
459/* ADC - Peripheral instance base addresses */
461#define ADC0_BASE (0x4003B000u)
463#define ADC0 ((ADC_Type *)ADC0_BASE)
465#define ADC1_BASE (0x400BB000u)
467#define ADC1 ((ADC_Type *)ADC1_BASE)
468
469 /* end of group ADC_Peripheral_Access_Layer */
470
471
472/* ----------------------------------------------------------------------------
473 -- AIPS Peripheral Access Layer
474 ---------------------------------------------------------------------------- */
475
480typedef struct {
481 __IO uint32_t MPRA;
482 uint8_t RESERVED_0[28];
483 __IO uint32_t PACRA;
484 __IO uint32_t PACRB;
485 __IO uint32_t PACRC;
486 __IO uint32_t PACRD;
487 uint8_t RESERVED_1[16];
488 __IO uint32_t PACRE;
489 __IO uint32_t PACRF;
490 __IO uint32_t PACRG;
491 __IO uint32_t PACRH;
492 __IO uint32_t PACRI;
493 __IO uint32_t PACRJ;
494 __IO uint32_t PACRK;
495 __IO uint32_t PACRL;
496 __IO uint32_t PACRM;
497 __IO uint32_t PACRN;
498 __IO uint32_t PACRO;
499 __IO uint32_t PACRP;
500} AIPS_Type;
501
502/* ----------------------------------------------------------------------------
503 -- AIPS Register Masks
504 ---------------------------------------------------------------------------- */
505
509/* MPRA Bit Fields */
510#define AIPS_MPRA_MPL5_MASK 0x100u
511#define AIPS_MPRA_MPL5_SHIFT 8
512#define AIPS_MPRA_MTW5_MASK 0x200u
513#define AIPS_MPRA_MTW5_SHIFT 9
514#define AIPS_MPRA_MTR5_MASK 0x400u
515#define AIPS_MPRA_MTR5_SHIFT 10
516#define AIPS_MPRA_MPL4_MASK 0x1000u
517#define AIPS_MPRA_MPL4_SHIFT 12
518#define AIPS_MPRA_MTW4_MASK 0x2000u
519#define AIPS_MPRA_MTW4_SHIFT 13
520#define AIPS_MPRA_MTR4_MASK 0x4000u
521#define AIPS_MPRA_MTR4_SHIFT 14
522#define AIPS_MPRA_MPL3_MASK 0x10000u
523#define AIPS_MPRA_MPL3_SHIFT 16
524#define AIPS_MPRA_MTW3_MASK 0x20000u
525#define AIPS_MPRA_MTW3_SHIFT 17
526#define AIPS_MPRA_MTR3_MASK 0x40000u
527#define AIPS_MPRA_MTR3_SHIFT 18
528#define AIPS_MPRA_MPL2_MASK 0x100000u
529#define AIPS_MPRA_MPL2_SHIFT 20
530#define AIPS_MPRA_MTW2_MASK 0x200000u
531#define AIPS_MPRA_MTW2_SHIFT 21
532#define AIPS_MPRA_MTR2_MASK 0x400000u
533#define AIPS_MPRA_MTR2_SHIFT 22
534#define AIPS_MPRA_MPL1_MASK 0x1000000u
535#define AIPS_MPRA_MPL1_SHIFT 24
536#define AIPS_MPRA_MTW1_MASK 0x2000000u
537#define AIPS_MPRA_MTW1_SHIFT 25
538#define AIPS_MPRA_MTR1_MASK 0x4000000u
539#define AIPS_MPRA_MTR1_SHIFT 26
540#define AIPS_MPRA_MPL0_MASK 0x10000000u
541#define AIPS_MPRA_MPL0_SHIFT 28
542#define AIPS_MPRA_MTW0_MASK 0x20000000u
543#define AIPS_MPRA_MTW0_SHIFT 29
544#define AIPS_MPRA_MTR0_MASK 0x40000000u
545#define AIPS_MPRA_MTR0_SHIFT 30
546/* PACRA Bit Fields */
547#define AIPS_PACRA_TP7_MASK 0x1u
548#define AIPS_PACRA_TP7_SHIFT 0
549#define AIPS_PACRA_WP7_MASK 0x2u
550#define AIPS_PACRA_WP7_SHIFT 1
551#define AIPS_PACRA_SP7_MASK 0x4u
552#define AIPS_PACRA_SP7_SHIFT 2
553#define AIPS_PACRA_TP6_MASK 0x10u
554#define AIPS_PACRA_TP6_SHIFT 4
555#define AIPS_PACRA_WP6_MASK 0x20u
556#define AIPS_PACRA_WP6_SHIFT 5
557#define AIPS_PACRA_SP6_MASK 0x40u
558#define AIPS_PACRA_SP6_SHIFT 6
559#define AIPS_PACRA_TP5_MASK 0x100u
560#define AIPS_PACRA_TP5_SHIFT 8
561#define AIPS_PACRA_WP5_MASK 0x200u
562#define AIPS_PACRA_WP5_SHIFT 9
563#define AIPS_PACRA_SP5_MASK 0x400u
564#define AIPS_PACRA_SP5_SHIFT 10
565#define AIPS_PACRA_TP4_MASK 0x1000u
566#define AIPS_PACRA_TP4_SHIFT 12
567#define AIPS_PACRA_WP4_MASK 0x2000u
568#define AIPS_PACRA_WP4_SHIFT 13
569#define AIPS_PACRA_SP4_MASK 0x4000u
570#define AIPS_PACRA_SP4_SHIFT 14
571#define AIPS_PACRA_TP3_MASK 0x10000u
572#define AIPS_PACRA_TP3_SHIFT 16
573#define AIPS_PACRA_WP3_MASK 0x20000u
574#define AIPS_PACRA_WP3_SHIFT 17
575#define AIPS_PACRA_SP3_MASK 0x40000u
576#define AIPS_PACRA_SP3_SHIFT 18
577#define AIPS_PACRA_TP2_MASK 0x100000u
578#define AIPS_PACRA_TP2_SHIFT 20
579#define AIPS_PACRA_WP2_MASK 0x200000u
580#define AIPS_PACRA_WP2_SHIFT 21
581#define AIPS_PACRA_SP2_MASK 0x400000u
582#define AIPS_PACRA_SP2_SHIFT 22
583#define AIPS_PACRA_TP1_MASK 0x1000000u
584#define AIPS_PACRA_TP1_SHIFT 24
585#define AIPS_PACRA_WP1_MASK 0x2000000u
586#define AIPS_PACRA_WP1_SHIFT 25
587#define AIPS_PACRA_SP1_MASK 0x4000000u
588#define AIPS_PACRA_SP1_SHIFT 26
589#define AIPS_PACRA_TP0_MASK 0x10000000u
590#define AIPS_PACRA_TP0_SHIFT 28
591#define AIPS_PACRA_WP0_MASK 0x20000000u
592#define AIPS_PACRA_WP0_SHIFT 29
593#define AIPS_PACRA_SP0_MASK 0x40000000u
594#define AIPS_PACRA_SP0_SHIFT 30
595/* PACRB Bit Fields */
596#define AIPS_PACRB_TP7_MASK 0x1u
597#define AIPS_PACRB_TP7_SHIFT 0
598#define AIPS_PACRB_WP7_MASK 0x2u
599#define AIPS_PACRB_WP7_SHIFT 1
600#define AIPS_PACRB_SP7_MASK 0x4u
601#define AIPS_PACRB_SP7_SHIFT 2
602#define AIPS_PACRB_TP6_MASK 0x10u
603#define AIPS_PACRB_TP6_SHIFT 4
604#define AIPS_PACRB_WP6_MASK 0x20u
605#define AIPS_PACRB_WP6_SHIFT 5
606#define AIPS_PACRB_SP6_MASK 0x40u
607#define AIPS_PACRB_SP6_SHIFT 6
608#define AIPS_PACRB_TP5_MASK 0x100u
609#define AIPS_PACRB_TP5_SHIFT 8
610#define AIPS_PACRB_WP5_MASK 0x200u
611#define AIPS_PACRB_WP5_SHIFT 9
612#define AIPS_PACRB_SP5_MASK 0x400u
613#define AIPS_PACRB_SP5_SHIFT 10
614#define AIPS_PACRB_TP4_MASK 0x1000u
615#define AIPS_PACRB_TP4_SHIFT 12
616#define AIPS_PACRB_WP4_MASK 0x2000u
617#define AIPS_PACRB_WP4_SHIFT 13
618#define AIPS_PACRB_SP4_MASK 0x4000u
619#define AIPS_PACRB_SP4_SHIFT 14
620#define AIPS_PACRB_TP3_MASK 0x10000u
621#define AIPS_PACRB_TP3_SHIFT 16
622#define AIPS_PACRB_WP3_MASK 0x20000u
623#define AIPS_PACRB_WP3_SHIFT 17
624#define AIPS_PACRB_SP3_MASK 0x40000u
625#define AIPS_PACRB_SP3_SHIFT 18
626#define AIPS_PACRB_TP2_MASK 0x100000u
627#define AIPS_PACRB_TP2_SHIFT 20
628#define AIPS_PACRB_WP2_MASK 0x200000u
629#define AIPS_PACRB_WP2_SHIFT 21
630#define AIPS_PACRB_SP2_MASK 0x400000u
631#define AIPS_PACRB_SP2_SHIFT 22
632#define AIPS_PACRB_TP1_MASK 0x1000000u
633#define AIPS_PACRB_TP1_SHIFT 24
634#define AIPS_PACRB_WP1_MASK 0x2000000u
635#define AIPS_PACRB_WP1_SHIFT 25
636#define AIPS_PACRB_SP1_MASK 0x4000000u
637#define AIPS_PACRB_SP1_SHIFT 26
638#define AIPS_PACRB_TP0_MASK 0x10000000u
639#define AIPS_PACRB_TP0_SHIFT 28
640#define AIPS_PACRB_WP0_MASK 0x20000000u
641#define AIPS_PACRB_WP0_SHIFT 29
642#define AIPS_PACRB_SP0_MASK 0x40000000u
643#define AIPS_PACRB_SP0_SHIFT 30
644/* PACRC Bit Fields */
645#define AIPS_PACRC_TP7_MASK 0x1u
646#define AIPS_PACRC_TP7_SHIFT 0
647#define AIPS_PACRC_WP7_MASK 0x2u
648#define AIPS_PACRC_WP7_SHIFT 1
649#define AIPS_PACRC_SP7_MASK 0x4u
650#define AIPS_PACRC_SP7_SHIFT 2
651#define AIPS_PACRC_TP6_MASK 0x10u
652#define AIPS_PACRC_TP6_SHIFT 4
653#define AIPS_PACRC_WP6_MASK 0x20u
654#define AIPS_PACRC_WP6_SHIFT 5
655#define AIPS_PACRC_SP6_MASK 0x40u
656#define AIPS_PACRC_SP6_SHIFT 6
657#define AIPS_PACRC_TP5_MASK 0x100u
658#define AIPS_PACRC_TP5_SHIFT 8
659#define AIPS_PACRC_WP5_MASK 0x200u
660#define AIPS_PACRC_WP5_SHIFT 9
661#define AIPS_PACRC_SP5_MASK 0x400u
662#define AIPS_PACRC_SP5_SHIFT 10
663#define AIPS_PACRC_TP4_MASK 0x1000u
664#define AIPS_PACRC_TP4_SHIFT 12
665#define AIPS_PACRC_WP4_MASK 0x2000u
666#define AIPS_PACRC_WP4_SHIFT 13
667#define AIPS_PACRC_SP4_MASK 0x4000u
668#define AIPS_PACRC_SP4_SHIFT 14
669#define AIPS_PACRC_TP3_MASK 0x10000u
670#define AIPS_PACRC_TP3_SHIFT 16
671#define AIPS_PACRC_WP3_MASK 0x20000u
672#define AIPS_PACRC_WP3_SHIFT 17
673#define AIPS_PACRC_SP3_MASK 0x40000u
674#define AIPS_PACRC_SP3_SHIFT 18
675#define AIPS_PACRC_TP2_MASK 0x100000u
676#define AIPS_PACRC_TP2_SHIFT 20
677#define AIPS_PACRC_WP2_MASK 0x200000u
678#define AIPS_PACRC_WP2_SHIFT 21
679#define AIPS_PACRC_SP2_MASK 0x400000u
680#define AIPS_PACRC_SP2_SHIFT 22
681#define AIPS_PACRC_TP1_MASK 0x1000000u
682#define AIPS_PACRC_TP1_SHIFT 24
683#define AIPS_PACRC_WP1_MASK 0x2000000u
684#define AIPS_PACRC_WP1_SHIFT 25
685#define AIPS_PACRC_SP1_MASK 0x4000000u
686#define AIPS_PACRC_SP1_SHIFT 26
687#define AIPS_PACRC_TP0_MASK 0x10000000u
688#define AIPS_PACRC_TP0_SHIFT 28
689#define AIPS_PACRC_WP0_MASK 0x20000000u
690#define AIPS_PACRC_WP0_SHIFT 29
691#define AIPS_PACRC_SP0_MASK 0x40000000u
692#define AIPS_PACRC_SP0_SHIFT 30
693/* PACRD Bit Fields */
694#define AIPS_PACRD_TP7_MASK 0x1u
695#define AIPS_PACRD_TP7_SHIFT 0
696#define AIPS_PACRD_WP7_MASK 0x2u
697#define AIPS_PACRD_WP7_SHIFT 1
698#define AIPS_PACRD_SP7_MASK 0x4u
699#define AIPS_PACRD_SP7_SHIFT 2
700#define AIPS_PACRD_TP6_MASK 0x10u
701#define AIPS_PACRD_TP6_SHIFT 4
702#define AIPS_PACRD_WP6_MASK 0x20u
703#define AIPS_PACRD_WP6_SHIFT 5
704#define AIPS_PACRD_SP6_MASK 0x40u
705#define AIPS_PACRD_SP6_SHIFT 6
706#define AIPS_PACRD_TP5_MASK 0x100u
707#define AIPS_PACRD_TP5_SHIFT 8
708#define AIPS_PACRD_WP5_MASK 0x200u
709#define AIPS_PACRD_WP5_SHIFT 9
710#define AIPS_PACRD_SP5_MASK 0x400u
711#define AIPS_PACRD_SP5_SHIFT 10
712#define AIPS_PACRD_TP4_MASK 0x1000u
713#define AIPS_PACRD_TP4_SHIFT 12
714#define AIPS_PACRD_WP4_MASK 0x2000u
715#define AIPS_PACRD_WP4_SHIFT 13
716#define AIPS_PACRD_SP4_MASK 0x4000u
717#define AIPS_PACRD_SP4_SHIFT 14
718#define AIPS_PACRD_TP3_MASK 0x10000u
719#define AIPS_PACRD_TP3_SHIFT 16
720#define AIPS_PACRD_WP3_MASK 0x20000u
721#define AIPS_PACRD_WP3_SHIFT 17
722#define AIPS_PACRD_SP3_MASK 0x40000u
723#define AIPS_PACRD_SP3_SHIFT 18
724#define AIPS_PACRD_TP2_MASK 0x100000u
725#define AIPS_PACRD_TP2_SHIFT 20
726#define AIPS_PACRD_WP2_MASK 0x200000u
727#define AIPS_PACRD_WP2_SHIFT 21
728#define AIPS_PACRD_SP2_MASK 0x400000u
729#define AIPS_PACRD_SP2_SHIFT 22
730#define AIPS_PACRD_TP1_MASK 0x1000000u
731#define AIPS_PACRD_TP1_SHIFT 24
732#define AIPS_PACRD_WP1_MASK 0x2000000u
733#define AIPS_PACRD_WP1_SHIFT 25
734#define AIPS_PACRD_SP1_MASK 0x4000000u
735#define AIPS_PACRD_SP1_SHIFT 26
736#define AIPS_PACRD_TP0_MASK 0x10000000u
737#define AIPS_PACRD_TP0_SHIFT 28
738#define AIPS_PACRD_WP0_MASK 0x20000000u
739#define AIPS_PACRD_WP0_SHIFT 29
740#define AIPS_PACRD_SP0_MASK 0x40000000u
741#define AIPS_PACRD_SP0_SHIFT 30
742/* PACRE Bit Fields */
743#define AIPS_PACRE_TP7_MASK 0x1u
744#define AIPS_PACRE_TP7_SHIFT 0
745#define AIPS_PACRE_WP7_MASK 0x2u
746#define AIPS_PACRE_WP7_SHIFT 1
747#define AIPS_PACRE_SP7_MASK 0x4u
748#define AIPS_PACRE_SP7_SHIFT 2
749#define AIPS_PACRE_TP6_MASK 0x10u
750#define AIPS_PACRE_TP6_SHIFT 4
751#define AIPS_PACRE_WP6_MASK 0x20u
752#define AIPS_PACRE_WP6_SHIFT 5
753#define AIPS_PACRE_SP6_MASK 0x40u
754#define AIPS_PACRE_SP6_SHIFT 6
755#define AIPS_PACRE_TP5_MASK 0x100u
756#define AIPS_PACRE_TP5_SHIFT 8
757#define AIPS_PACRE_WP5_MASK 0x200u
758#define AIPS_PACRE_WP5_SHIFT 9
759#define AIPS_PACRE_SP5_MASK 0x400u
760#define AIPS_PACRE_SP5_SHIFT 10
761#define AIPS_PACRE_TP4_MASK 0x1000u
762#define AIPS_PACRE_TP4_SHIFT 12
763#define AIPS_PACRE_WP4_MASK 0x2000u
764#define AIPS_PACRE_WP4_SHIFT 13
765#define AIPS_PACRE_SP4_MASK 0x4000u
766#define AIPS_PACRE_SP4_SHIFT 14
767#define AIPS_PACRE_TP3_MASK 0x10000u
768#define AIPS_PACRE_TP3_SHIFT 16
769#define AIPS_PACRE_WP3_MASK 0x20000u
770#define AIPS_PACRE_WP3_SHIFT 17
771#define AIPS_PACRE_SP3_MASK 0x40000u
772#define AIPS_PACRE_SP3_SHIFT 18
773#define AIPS_PACRE_TP2_MASK 0x100000u
774#define AIPS_PACRE_TP2_SHIFT 20
775#define AIPS_PACRE_WP2_MASK 0x200000u
776#define AIPS_PACRE_WP2_SHIFT 21
777#define AIPS_PACRE_SP2_MASK 0x400000u
778#define AIPS_PACRE_SP2_SHIFT 22
779#define AIPS_PACRE_TP1_MASK 0x1000000u
780#define AIPS_PACRE_TP1_SHIFT 24
781#define AIPS_PACRE_WP1_MASK 0x2000000u
782#define AIPS_PACRE_WP1_SHIFT 25
783#define AIPS_PACRE_SP1_MASK 0x4000000u
784#define AIPS_PACRE_SP1_SHIFT 26
785#define AIPS_PACRE_TP0_MASK 0x10000000u
786#define AIPS_PACRE_TP0_SHIFT 28
787#define AIPS_PACRE_WP0_MASK 0x20000000u
788#define AIPS_PACRE_WP0_SHIFT 29
789#define AIPS_PACRE_SP0_MASK 0x40000000u
790#define AIPS_PACRE_SP0_SHIFT 30
791/* PACRF Bit Fields */
792#define AIPS_PACRF_TP7_MASK 0x1u
793#define AIPS_PACRF_TP7_SHIFT 0
794#define AIPS_PACRF_WP7_MASK 0x2u
795#define AIPS_PACRF_WP7_SHIFT 1
796#define AIPS_PACRF_SP7_MASK 0x4u
797#define AIPS_PACRF_SP7_SHIFT 2
798#define AIPS_PACRF_TP6_MASK 0x10u
799#define AIPS_PACRF_TP6_SHIFT 4
800#define AIPS_PACRF_WP6_MASK 0x20u
801#define AIPS_PACRF_WP6_SHIFT 5
802#define AIPS_PACRF_SP6_MASK 0x40u
803#define AIPS_PACRF_SP6_SHIFT 6
804#define AIPS_PACRF_TP5_MASK 0x100u
805#define AIPS_PACRF_TP5_SHIFT 8
806#define AIPS_PACRF_WP5_MASK 0x200u
807#define AIPS_PACRF_WP5_SHIFT 9
808#define AIPS_PACRF_SP5_MASK 0x400u
809#define AIPS_PACRF_SP5_SHIFT 10
810#define AIPS_PACRF_TP4_MASK 0x1000u
811#define AIPS_PACRF_TP4_SHIFT 12
812#define AIPS_PACRF_WP4_MASK 0x2000u
813#define AIPS_PACRF_WP4_SHIFT 13
814#define AIPS_PACRF_SP4_MASK 0x4000u
815#define AIPS_PACRF_SP4_SHIFT 14
816#define AIPS_PACRF_TP3_MASK 0x10000u
817#define AIPS_PACRF_TP3_SHIFT 16
818#define AIPS_PACRF_WP3_MASK 0x20000u
819#define AIPS_PACRF_WP3_SHIFT 17
820#define AIPS_PACRF_SP3_MASK 0x40000u
821#define AIPS_PACRF_SP3_SHIFT 18
822#define AIPS_PACRF_TP2_MASK 0x100000u
823#define AIPS_PACRF_TP2_SHIFT 20
824#define AIPS_PACRF_WP2_MASK 0x200000u
825#define AIPS_PACRF_WP2_SHIFT 21
826#define AIPS_PACRF_SP2_MASK 0x400000u
827#define AIPS_PACRF_SP2_SHIFT 22
828#define AIPS_PACRF_TP1_MASK 0x1000000u
829#define AIPS_PACRF_TP1_SHIFT 24
830#define AIPS_PACRF_WP1_MASK 0x2000000u
831#define AIPS_PACRF_WP1_SHIFT 25
832#define AIPS_PACRF_SP1_MASK 0x4000000u
833#define AIPS_PACRF_SP1_SHIFT 26
834#define AIPS_PACRF_TP0_MASK 0x10000000u
835#define AIPS_PACRF_TP0_SHIFT 28
836#define AIPS_PACRF_WP0_MASK 0x20000000u
837#define AIPS_PACRF_WP0_SHIFT 29
838#define AIPS_PACRF_SP0_MASK 0x40000000u
839#define AIPS_PACRF_SP0_SHIFT 30
840/* PACRG Bit Fields */
841#define AIPS_PACRG_TP7_MASK 0x1u
842#define AIPS_PACRG_TP7_SHIFT 0
843#define AIPS_PACRG_WP7_MASK 0x2u
844#define AIPS_PACRG_WP7_SHIFT 1
845#define AIPS_PACRG_SP7_MASK 0x4u
846#define AIPS_PACRG_SP7_SHIFT 2
847#define AIPS_PACRG_TP6_MASK 0x10u
848#define AIPS_PACRG_TP6_SHIFT 4
849#define AIPS_PACRG_WP6_MASK 0x20u
850#define AIPS_PACRG_WP6_SHIFT 5
851#define AIPS_PACRG_SP6_MASK 0x40u
852#define AIPS_PACRG_SP6_SHIFT 6
853#define AIPS_PACRG_TP5_MASK 0x100u
854#define AIPS_PACRG_TP5_SHIFT 8
855#define AIPS_PACRG_WP5_MASK 0x200u
856#define AIPS_PACRG_WP5_SHIFT 9
857#define AIPS_PACRG_SP5_MASK 0x400u
858#define AIPS_PACRG_SP5_SHIFT 10
859#define AIPS_PACRG_TP4_MASK 0x1000u
860#define AIPS_PACRG_TP4_SHIFT 12
861#define AIPS_PACRG_WP4_MASK 0x2000u
862#define AIPS_PACRG_WP4_SHIFT 13
863#define AIPS_PACRG_SP4_MASK 0x4000u
864#define AIPS_PACRG_SP4_SHIFT 14
865#define AIPS_PACRG_TP3_MASK 0x10000u
866#define AIPS_PACRG_TP3_SHIFT 16
867#define AIPS_PACRG_WP3_MASK 0x20000u
868#define AIPS_PACRG_WP3_SHIFT 17
869#define AIPS_PACRG_SP3_MASK 0x40000u
870#define AIPS_PACRG_SP3_SHIFT 18
871#define AIPS_PACRG_TP2_MASK 0x100000u
872#define AIPS_PACRG_TP2_SHIFT 20
873#define AIPS_PACRG_WP2_MASK 0x200000u
874#define AIPS_PACRG_WP2_SHIFT 21
875#define AIPS_PACRG_SP2_MASK 0x400000u
876#define AIPS_PACRG_SP2_SHIFT 22
877#define AIPS_PACRG_TP1_MASK 0x1000000u
878#define AIPS_PACRG_TP1_SHIFT 24
879#define AIPS_PACRG_WP1_MASK 0x2000000u
880#define AIPS_PACRG_WP1_SHIFT 25
881#define AIPS_PACRG_SP1_MASK 0x4000000u
882#define AIPS_PACRG_SP1_SHIFT 26
883#define AIPS_PACRG_TP0_MASK 0x10000000u
884#define AIPS_PACRG_TP0_SHIFT 28
885#define AIPS_PACRG_WP0_MASK 0x20000000u
886#define AIPS_PACRG_WP0_SHIFT 29
887#define AIPS_PACRG_SP0_MASK 0x40000000u
888#define AIPS_PACRG_SP0_SHIFT 30
889/* PACRH Bit Fields */
890#define AIPS_PACRH_TP7_MASK 0x1u
891#define AIPS_PACRH_TP7_SHIFT 0
892#define AIPS_PACRH_WP7_MASK 0x2u
893#define AIPS_PACRH_WP7_SHIFT 1
894#define AIPS_PACRH_SP7_MASK 0x4u
895#define AIPS_PACRH_SP7_SHIFT 2
896#define AIPS_PACRH_TP6_MASK 0x10u
897#define AIPS_PACRH_TP6_SHIFT 4
898#define AIPS_PACRH_WP6_MASK 0x20u
899#define AIPS_PACRH_WP6_SHIFT 5
900#define AIPS_PACRH_SP6_MASK 0x40u
901#define AIPS_PACRH_SP6_SHIFT 6
902#define AIPS_PACRH_TP5_MASK 0x100u
903#define AIPS_PACRH_TP5_SHIFT 8
904#define AIPS_PACRH_WP5_MASK 0x200u
905#define AIPS_PACRH_WP5_SHIFT 9
906#define AIPS_PACRH_SP5_MASK 0x400u
907#define AIPS_PACRH_SP5_SHIFT 10
908#define AIPS_PACRH_TP4_MASK 0x1000u
909#define AIPS_PACRH_TP4_SHIFT 12
910#define AIPS_PACRH_WP4_MASK 0x2000u
911#define AIPS_PACRH_WP4_SHIFT 13
912#define AIPS_PACRH_SP4_MASK 0x4000u
913#define AIPS_PACRH_SP4_SHIFT 14
914#define AIPS_PACRH_TP3_MASK 0x10000u
915#define AIPS_PACRH_TP3_SHIFT 16
916#define AIPS_PACRH_WP3_MASK 0x20000u
917#define AIPS_PACRH_WP3_SHIFT 17
918#define AIPS_PACRH_SP3_MASK 0x40000u
919#define AIPS_PACRH_SP3_SHIFT 18
920#define AIPS_PACRH_TP2_MASK 0x100000u
921#define AIPS_PACRH_TP2_SHIFT 20
922#define AIPS_PACRH_WP2_MASK 0x200000u
923#define AIPS_PACRH_WP2_SHIFT 21
924#define AIPS_PACRH_SP2_MASK 0x400000u
925#define AIPS_PACRH_SP2_SHIFT 22
926#define AIPS_PACRH_TP1_MASK 0x1000000u
927#define AIPS_PACRH_TP1_SHIFT 24
928#define AIPS_PACRH_WP1_MASK 0x2000000u
929#define AIPS_PACRH_WP1_SHIFT 25
930#define AIPS_PACRH_SP1_MASK 0x4000000u
931#define AIPS_PACRH_SP1_SHIFT 26
932#define AIPS_PACRH_TP0_MASK 0x10000000u
933#define AIPS_PACRH_TP0_SHIFT 28
934#define AIPS_PACRH_WP0_MASK 0x20000000u
935#define AIPS_PACRH_WP0_SHIFT 29
936#define AIPS_PACRH_SP0_MASK 0x40000000u
937#define AIPS_PACRH_SP0_SHIFT 30
938/* PACRI Bit Fields */
939#define AIPS_PACRI_TP7_MASK 0x1u
940#define AIPS_PACRI_TP7_SHIFT 0
941#define AIPS_PACRI_WP7_MASK 0x2u
942#define AIPS_PACRI_WP7_SHIFT 1
943#define AIPS_PACRI_SP7_MASK 0x4u
944#define AIPS_PACRI_SP7_SHIFT 2
945#define AIPS_PACRI_TP6_MASK 0x10u
946#define AIPS_PACRI_TP6_SHIFT 4
947#define AIPS_PACRI_WP6_MASK 0x20u
948#define AIPS_PACRI_WP6_SHIFT 5
949#define AIPS_PACRI_SP6_MASK 0x40u
950#define AIPS_PACRI_SP6_SHIFT 6
951#define AIPS_PACRI_TP5_MASK 0x100u
952#define AIPS_PACRI_TP5_SHIFT 8
953#define AIPS_PACRI_WP5_MASK 0x200u
954#define AIPS_PACRI_WP5_SHIFT 9
955#define AIPS_PACRI_SP5_MASK 0x400u
956#define AIPS_PACRI_SP5_SHIFT 10
957#define AIPS_PACRI_TP4_MASK 0x1000u
958#define AIPS_PACRI_TP4_SHIFT 12
959#define AIPS_PACRI_WP4_MASK 0x2000u
960#define AIPS_PACRI_WP4_SHIFT 13
961#define AIPS_PACRI_SP4_MASK 0x4000u
962#define AIPS_PACRI_SP4_SHIFT 14
963#define AIPS_PACRI_TP3_MASK 0x10000u
964#define AIPS_PACRI_TP3_SHIFT 16
965#define AIPS_PACRI_WP3_MASK 0x20000u
966#define AIPS_PACRI_WP3_SHIFT 17
967#define AIPS_PACRI_SP3_MASK 0x40000u
968#define AIPS_PACRI_SP3_SHIFT 18
969#define AIPS_PACRI_TP2_MASK 0x100000u
970#define AIPS_PACRI_TP2_SHIFT 20
971#define AIPS_PACRI_WP2_MASK 0x200000u
972#define AIPS_PACRI_WP2_SHIFT 21
973#define AIPS_PACRI_SP2_MASK 0x400000u
974#define AIPS_PACRI_SP2_SHIFT 22
975#define AIPS_PACRI_TP1_MASK 0x1000000u
976#define AIPS_PACRI_TP1_SHIFT 24
977#define AIPS_PACRI_WP1_MASK 0x2000000u
978#define AIPS_PACRI_WP1_SHIFT 25
979#define AIPS_PACRI_SP1_MASK 0x4000000u
980#define AIPS_PACRI_SP1_SHIFT 26
981#define AIPS_PACRI_TP0_MASK 0x10000000u
982#define AIPS_PACRI_TP0_SHIFT 28
983#define AIPS_PACRI_WP0_MASK 0x20000000u
984#define AIPS_PACRI_WP0_SHIFT 29
985#define AIPS_PACRI_SP0_MASK 0x40000000u
986#define AIPS_PACRI_SP0_SHIFT 30
987/* PACRJ Bit Fields */
988#define AIPS_PACRJ_TP7_MASK 0x1u
989#define AIPS_PACRJ_TP7_SHIFT 0
990#define AIPS_PACRJ_WP7_MASK 0x2u
991#define AIPS_PACRJ_WP7_SHIFT 1
992#define AIPS_PACRJ_SP7_MASK 0x4u
993#define AIPS_PACRJ_SP7_SHIFT 2
994#define AIPS_PACRJ_TP6_MASK 0x10u
995#define AIPS_PACRJ_TP6_SHIFT 4
996#define AIPS_PACRJ_WP6_MASK 0x20u
997#define AIPS_PACRJ_WP6_SHIFT 5
998#define AIPS_PACRJ_SP6_MASK 0x40u
999#define AIPS_PACRJ_SP6_SHIFT 6
1000#define AIPS_PACRJ_TP5_MASK 0x100u
1001#define AIPS_PACRJ_TP5_SHIFT 8
1002#define AIPS_PACRJ_WP5_MASK 0x200u
1003#define AIPS_PACRJ_WP5_SHIFT 9
1004#define AIPS_PACRJ_SP5_MASK 0x400u
1005#define AIPS_PACRJ_SP5_SHIFT 10
1006#define AIPS_PACRJ_TP4_MASK 0x1000u
1007#define AIPS_PACRJ_TP4_SHIFT 12
1008#define AIPS_PACRJ_WP4_MASK 0x2000u
1009#define AIPS_PACRJ_WP4_SHIFT 13
1010#define AIPS_PACRJ_SP4_MASK 0x4000u
1011#define AIPS_PACRJ_SP4_SHIFT 14
1012#define AIPS_PACRJ_TP3_MASK 0x10000u
1013#define AIPS_PACRJ_TP3_SHIFT 16
1014#define AIPS_PACRJ_WP3_MASK 0x20000u
1015#define AIPS_PACRJ_WP3_SHIFT 17
1016#define AIPS_PACRJ_SP3_MASK 0x40000u
1017#define AIPS_PACRJ_SP3_SHIFT 18
1018#define AIPS_PACRJ_TP2_MASK 0x100000u
1019#define AIPS_PACRJ_TP2_SHIFT 20
1020#define AIPS_PACRJ_WP2_MASK 0x200000u
1021#define AIPS_PACRJ_WP2_SHIFT 21
1022#define AIPS_PACRJ_SP2_MASK 0x400000u
1023#define AIPS_PACRJ_SP2_SHIFT 22
1024#define AIPS_PACRJ_TP1_MASK 0x1000000u
1025#define AIPS_PACRJ_TP1_SHIFT 24
1026#define AIPS_PACRJ_WP1_MASK 0x2000000u
1027#define AIPS_PACRJ_WP1_SHIFT 25
1028#define AIPS_PACRJ_SP1_MASK 0x4000000u
1029#define AIPS_PACRJ_SP1_SHIFT 26
1030#define AIPS_PACRJ_TP0_MASK 0x10000000u
1031#define AIPS_PACRJ_TP0_SHIFT 28
1032#define AIPS_PACRJ_WP0_MASK 0x20000000u
1033#define AIPS_PACRJ_WP0_SHIFT 29
1034#define AIPS_PACRJ_SP0_MASK 0x40000000u
1035#define AIPS_PACRJ_SP0_SHIFT 30
1036/* PACRK Bit Fields */
1037#define AIPS_PACRK_TP7_MASK 0x1u
1038#define AIPS_PACRK_TP7_SHIFT 0
1039#define AIPS_PACRK_WP7_MASK 0x2u
1040#define AIPS_PACRK_WP7_SHIFT 1
1041#define AIPS_PACRK_SP7_MASK 0x4u
1042#define AIPS_PACRK_SP7_SHIFT 2
1043#define AIPS_PACRK_TP6_MASK 0x10u
1044#define AIPS_PACRK_TP6_SHIFT 4
1045#define AIPS_PACRK_WP6_MASK 0x20u
1046#define AIPS_PACRK_WP6_SHIFT 5
1047#define AIPS_PACRK_SP6_MASK 0x40u
1048#define AIPS_PACRK_SP6_SHIFT 6
1049#define AIPS_PACRK_TP5_MASK 0x100u
1050#define AIPS_PACRK_TP5_SHIFT 8
1051#define AIPS_PACRK_WP5_MASK 0x200u
1052#define AIPS_PACRK_WP5_SHIFT 9
1053#define AIPS_PACRK_SP5_MASK 0x400u
1054#define AIPS_PACRK_SP5_SHIFT 10
1055#define AIPS_PACRK_TP4_MASK 0x1000u
1056#define AIPS_PACRK_TP4_SHIFT 12
1057#define AIPS_PACRK_WP4_MASK 0x2000u
1058#define AIPS_PACRK_WP4_SHIFT 13
1059#define AIPS_PACRK_SP4_MASK 0x4000u
1060#define AIPS_PACRK_SP4_SHIFT 14
1061#define AIPS_PACRK_TP3_MASK 0x10000u
1062#define AIPS_PACRK_TP3_SHIFT 16
1063#define AIPS_PACRK_WP3_MASK 0x20000u
1064#define AIPS_PACRK_WP3_SHIFT 17
1065#define AIPS_PACRK_SP3_MASK 0x40000u
1066#define AIPS_PACRK_SP3_SHIFT 18
1067#define AIPS_PACRK_TP2_MASK 0x100000u
1068#define AIPS_PACRK_TP2_SHIFT 20
1069#define AIPS_PACRK_WP2_MASK 0x200000u
1070#define AIPS_PACRK_WP2_SHIFT 21
1071#define AIPS_PACRK_SP2_MASK 0x400000u
1072#define AIPS_PACRK_SP2_SHIFT 22
1073#define AIPS_PACRK_TP1_MASK 0x1000000u
1074#define AIPS_PACRK_TP1_SHIFT 24
1075#define AIPS_PACRK_WP1_MASK 0x2000000u
1076#define AIPS_PACRK_WP1_SHIFT 25
1077#define AIPS_PACRK_SP1_MASK 0x4000000u
1078#define AIPS_PACRK_SP1_SHIFT 26
1079#define AIPS_PACRK_TP0_MASK 0x10000000u
1080#define AIPS_PACRK_TP0_SHIFT 28
1081#define AIPS_PACRK_WP0_MASK 0x20000000u
1082#define AIPS_PACRK_WP0_SHIFT 29
1083#define AIPS_PACRK_SP0_MASK 0x40000000u
1084#define AIPS_PACRK_SP0_SHIFT 30
1085/* PACRL Bit Fields */
1086#define AIPS_PACRL_TP7_MASK 0x1u
1087#define AIPS_PACRL_TP7_SHIFT 0
1088#define AIPS_PACRL_WP7_MASK 0x2u
1089#define AIPS_PACRL_WP7_SHIFT 1
1090#define AIPS_PACRL_SP7_MASK 0x4u
1091#define AIPS_PACRL_SP7_SHIFT 2
1092#define AIPS_PACRL_TP6_MASK 0x10u
1093#define AIPS_PACRL_TP6_SHIFT 4
1094#define AIPS_PACRL_WP6_MASK 0x20u
1095#define AIPS_PACRL_WP6_SHIFT 5
1096#define AIPS_PACRL_SP6_MASK 0x40u
1097#define AIPS_PACRL_SP6_SHIFT 6
1098#define AIPS_PACRL_TP5_MASK 0x100u
1099#define AIPS_PACRL_TP5_SHIFT 8
1100#define AIPS_PACRL_WP5_MASK 0x200u
1101#define AIPS_PACRL_WP5_SHIFT 9
1102#define AIPS_PACRL_SP5_MASK 0x400u
1103#define AIPS_PACRL_SP5_SHIFT 10
1104#define AIPS_PACRL_TP4_MASK 0x1000u
1105#define AIPS_PACRL_TP4_SHIFT 12
1106#define AIPS_PACRL_WP4_MASK 0x2000u
1107#define AIPS_PACRL_WP4_SHIFT 13
1108#define AIPS_PACRL_SP4_MASK 0x4000u
1109#define AIPS_PACRL_SP4_SHIFT 14
1110#define AIPS_PACRL_TP3_MASK 0x10000u
1111#define AIPS_PACRL_TP3_SHIFT 16
1112#define AIPS_PACRL_WP3_MASK 0x20000u
1113#define AIPS_PACRL_WP3_SHIFT 17
1114#define AIPS_PACRL_SP3_MASK 0x40000u
1115#define AIPS_PACRL_SP3_SHIFT 18
1116#define AIPS_PACRL_TP2_MASK 0x100000u
1117#define AIPS_PACRL_TP2_SHIFT 20
1118#define AIPS_PACRL_WP2_MASK 0x200000u
1119#define AIPS_PACRL_WP2_SHIFT 21
1120#define AIPS_PACRL_SP2_MASK 0x400000u
1121#define AIPS_PACRL_SP2_SHIFT 22
1122#define AIPS_PACRL_TP1_MASK 0x1000000u
1123#define AIPS_PACRL_TP1_SHIFT 24
1124#define AIPS_PACRL_WP1_MASK 0x2000000u
1125#define AIPS_PACRL_WP1_SHIFT 25
1126#define AIPS_PACRL_SP1_MASK 0x4000000u
1127#define AIPS_PACRL_SP1_SHIFT 26
1128#define AIPS_PACRL_TP0_MASK 0x10000000u
1129#define AIPS_PACRL_TP0_SHIFT 28
1130#define AIPS_PACRL_WP0_MASK 0x20000000u
1131#define AIPS_PACRL_WP0_SHIFT 29
1132#define AIPS_PACRL_SP0_MASK 0x40000000u
1133#define AIPS_PACRL_SP0_SHIFT 30
1134/* PACRM Bit Fields */
1135#define AIPS_PACRM_TP7_MASK 0x1u
1136#define AIPS_PACRM_TP7_SHIFT 0
1137#define AIPS_PACRM_WP7_MASK 0x2u
1138#define AIPS_PACRM_WP7_SHIFT 1
1139#define AIPS_PACRM_SP7_MASK 0x4u
1140#define AIPS_PACRM_SP7_SHIFT 2
1141#define AIPS_PACRM_TP6_MASK 0x10u
1142#define AIPS_PACRM_TP6_SHIFT 4
1143#define AIPS_PACRM_WP6_MASK 0x20u
1144#define AIPS_PACRM_WP6_SHIFT 5
1145#define AIPS_PACRM_SP6_MASK 0x40u
1146#define AIPS_PACRM_SP6_SHIFT 6
1147#define AIPS_PACRM_TP5_MASK 0x100u
1148#define AIPS_PACRM_TP5_SHIFT 8
1149#define AIPS_PACRM_WP5_MASK 0x200u
1150#define AIPS_PACRM_WP5_SHIFT 9
1151#define AIPS_PACRM_SP5_MASK 0x400u
1152#define AIPS_PACRM_SP5_SHIFT 10
1153#define AIPS_PACRM_TP4_MASK 0x1000u
1154#define AIPS_PACRM_TP4_SHIFT 12
1155#define AIPS_PACRM_WP4_MASK 0x2000u
1156#define AIPS_PACRM_WP4_SHIFT 13
1157#define AIPS_PACRM_SP4_MASK 0x4000u
1158#define AIPS_PACRM_SP4_SHIFT 14
1159#define AIPS_PACRM_TP3_MASK 0x10000u
1160#define AIPS_PACRM_TP3_SHIFT 16
1161#define AIPS_PACRM_WP3_MASK 0x20000u
1162#define AIPS_PACRM_WP3_SHIFT 17
1163#define AIPS_PACRM_SP3_MASK 0x40000u
1164#define AIPS_PACRM_SP3_SHIFT 18
1165#define AIPS_PACRM_TP2_MASK 0x100000u
1166#define AIPS_PACRM_TP2_SHIFT 20
1167#define AIPS_PACRM_WP2_MASK 0x200000u
1168#define AIPS_PACRM_WP2_SHIFT 21
1169#define AIPS_PACRM_SP2_MASK 0x400000u
1170#define AIPS_PACRM_SP2_SHIFT 22
1171#define AIPS_PACRM_TP1_MASK 0x1000000u
1172#define AIPS_PACRM_TP1_SHIFT 24
1173#define AIPS_PACRM_WP1_MASK 0x2000000u
1174#define AIPS_PACRM_WP1_SHIFT 25
1175#define AIPS_PACRM_SP1_MASK 0x4000000u
1176#define AIPS_PACRM_SP1_SHIFT 26
1177#define AIPS_PACRM_TP0_MASK 0x10000000u
1178#define AIPS_PACRM_TP0_SHIFT 28
1179#define AIPS_PACRM_WP0_MASK 0x20000000u
1180#define AIPS_PACRM_WP0_SHIFT 29
1181#define AIPS_PACRM_SP0_MASK 0x40000000u
1182#define AIPS_PACRM_SP0_SHIFT 30
1183/* PACRN Bit Fields */
1184#define AIPS_PACRN_TP7_MASK 0x1u
1185#define AIPS_PACRN_TP7_SHIFT 0
1186#define AIPS_PACRN_WP7_MASK 0x2u
1187#define AIPS_PACRN_WP7_SHIFT 1
1188#define AIPS_PACRN_SP7_MASK 0x4u
1189#define AIPS_PACRN_SP7_SHIFT 2
1190#define AIPS_PACRN_TP6_MASK 0x10u
1191#define AIPS_PACRN_TP6_SHIFT 4
1192#define AIPS_PACRN_WP6_MASK 0x20u
1193#define AIPS_PACRN_WP6_SHIFT 5
1194#define AIPS_PACRN_SP6_MASK 0x40u
1195#define AIPS_PACRN_SP6_SHIFT 6
1196#define AIPS_PACRN_TP5_MASK 0x100u
1197#define AIPS_PACRN_TP5_SHIFT 8
1198#define AIPS_PACRN_WP5_MASK 0x200u
1199#define AIPS_PACRN_WP5_SHIFT 9
1200#define AIPS_PACRN_SP5_MASK 0x400u
1201#define AIPS_PACRN_SP5_SHIFT 10
1202#define AIPS_PACRN_TP4_MASK 0x1000u
1203#define AIPS_PACRN_TP4_SHIFT 12
1204#define AIPS_PACRN_WP4_MASK 0x2000u
1205#define AIPS_PACRN_WP4_SHIFT 13
1206#define AIPS_PACRN_SP4_MASK 0x4000u
1207#define AIPS_PACRN_SP4_SHIFT 14
1208#define AIPS_PACRN_TP3_MASK 0x10000u
1209#define AIPS_PACRN_TP3_SHIFT 16
1210#define AIPS_PACRN_WP3_MASK 0x20000u
1211#define AIPS_PACRN_WP3_SHIFT 17
1212#define AIPS_PACRN_SP3_MASK 0x40000u
1213#define AIPS_PACRN_SP3_SHIFT 18
1214#define AIPS_PACRN_TP2_MASK 0x100000u
1215#define AIPS_PACRN_TP2_SHIFT 20
1216#define AIPS_PACRN_WP2_MASK 0x200000u
1217#define AIPS_PACRN_WP2_SHIFT 21
1218#define AIPS_PACRN_SP2_MASK 0x400000u
1219#define AIPS_PACRN_SP2_SHIFT 22
1220#define AIPS_PACRN_TP1_MASK 0x1000000u
1221#define AIPS_PACRN_TP1_SHIFT 24
1222#define AIPS_PACRN_WP1_MASK 0x2000000u
1223#define AIPS_PACRN_WP1_SHIFT 25
1224#define AIPS_PACRN_SP1_MASK 0x4000000u
1225#define AIPS_PACRN_SP1_SHIFT 26
1226#define AIPS_PACRN_TP0_MASK 0x10000000u
1227#define AIPS_PACRN_TP0_SHIFT 28
1228#define AIPS_PACRN_WP0_MASK 0x20000000u
1229#define AIPS_PACRN_WP0_SHIFT 29
1230#define AIPS_PACRN_SP0_MASK 0x40000000u
1231#define AIPS_PACRN_SP0_SHIFT 30
1232/* PACRO Bit Fields */
1233#define AIPS_PACRO_TP7_MASK 0x1u
1234#define AIPS_PACRO_TP7_SHIFT 0
1235#define AIPS_PACRO_WP7_MASK 0x2u
1236#define AIPS_PACRO_WP7_SHIFT 1
1237#define AIPS_PACRO_SP7_MASK 0x4u
1238#define AIPS_PACRO_SP7_SHIFT 2
1239#define AIPS_PACRO_TP6_MASK 0x10u
1240#define AIPS_PACRO_TP6_SHIFT 4
1241#define AIPS_PACRO_WP6_MASK 0x20u
1242#define AIPS_PACRO_WP6_SHIFT 5
1243#define AIPS_PACRO_SP6_MASK 0x40u
1244#define AIPS_PACRO_SP6_SHIFT 6
1245#define AIPS_PACRO_TP5_MASK 0x100u
1246#define AIPS_PACRO_TP5_SHIFT 8
1247#define AIPS_PACRO_WP5_MASK 0x200u
1248#define AIPS_PACRO_WP5_SHIFT 9
1249#define AIPS_PACRO_SP5_MASK 0x400u
1250#define AIPS_PACRO_SP5_SHIFT 10
1251#define AIPS_PACRO_TP4_MASK 0x1000u
1252#define AIPS_PACRO_TP4_SHIFT 12
1253#define AIPS_PACRO_WP4_MASK 0x2000u
1254#define AIPS_PACRO_WP4_SHIFT 13
1255#define AIPS_PACRO_SP4_MASK 0x4000u
1256#define AIPS_PACRO_SP4_SHIFT 14
1257#define AIPS_PACRO_TP3_MASK 0x10000u
1258#define AIPS_PACRO_TP3_SHIFT 16
1259#define AIPS_PACRO_WP3_MASK 0x20000u
1260#define AIPS_PACRO_WP3_SHIFT 17
1261#define AIPS_PACRO_SP3_MASK 0x40000u
1262#define AIPS_PACRO_SP3_SHIFT 18
1263#define AIPS_PACRO_TP2_MASK 0x100000u
1264#define AIPS_PACRO_TP2_SHIFT 20
1265#define AIPS_PACRO_WP2_MASK 0x200000u
1266#define AIPS_PACRO_WP2_SHIFT 21
1267#define AIPS_PACRO_SP2_MASK 0x400000u
1268#define AIPS_PACRO_SP2_SHIFT 22
1269#define AIPS_PACRO_TP1_MASK 0x1000000u
1270#define AIPS_PACRO_TP1_SHIFT 24
1271#define AIPS_PACRO_WP1_MASK 0x2000000u
1272#define AIPS_PACRO_WP1_SHIFT 25
1273#define AIPS_PACRO_SP1_MASK 0x4000000u
1274#define AIPS_PACRO_SP1_SHIFT 26
1275#define AIPS_PACRO_TP0_MASK 0x10000000u
1276#define AIPS_PACRO_TP0_SHIFT 28
1277#define AIPS_PACRO_WP0_MASK 0x20000000u
1278#define AIPS_PACRO_WP0_SHIFT 29
1279#define AIPS_PACRO_SP0_MASK 0x40000000u
1280#define AIPS_PACRO_SP0_SHIFT 30
1281/* PACRP Bit Fields */
1282#define AIPS_PACRP_TP7_MASK 0x1u
1283#define AIPS_PACRP_TP7_SHIFT 0
1284#define AIPS_PACRP_WP7_MASK 0x2u
1285#define AIPS_PACRP_WP7_SHIFT 1
1286#define AIPS_PACRP_SP7_MASK 0x4u
1287#define AIPS_PACRP_SP7_SHIFT 2
1288#define AIPS_PACRP_TP6_MASK 0x10u
1289#define AIPS_PACRP_TP6_SHIFT 4
1290#define AIPS_PACRP_WP6_MASK 0x20u
1291#define AIPS_PACRP_WP6_SHIFT 5
1292#define AIPS_PACRP_SP6_MASK 0x40u
1293#define AIPS_PACRP_SP6_SHIFT 6
1294#define AIPS_PACRP_TP5_MASK 0x100u
1295#define AIPS_PACRP_TP5_SHIFT 8
1296#define AIPS_PACRP_WP5_MASK 0x200u
1297#define AIPS_PACRP_WP5_SHIFT 9
1298#define AIPS_PACRP_SP5_MASK 0x400u
1299#define AIPS_PACRP_SP5_SHIFT 10
1300#define AIPS_PACRP_TP4_MASK 0x1000u
1301#define AIPS_PACRP_TP4_SHIFT 12
1302#define AIPS_PACRP_WP4_MASK 0x2000u
1303#define AIPS_PACRP_WP4_SHIFT 13
1304#define AIPS_PACRP_SP4_MASK 0x4000u
1305#define AIPS_PACRP_SP4_SHIFT 14
1306#define AIPS_PACRP_TP3_MASK 0x10000u
1307#define AIPS_PACRP_TP3_SHIFT 16
1308#define AIPS_PACRP_WP3_MASK 0x20000u
1309#define AIPS_PACRP_WP3_SHIFT 17
1310#define AIPS_PACRP_SP3_MASK 0x40000u
1311#define AIPS_PACRP_SP3_SHIFT 18
1312#define AIPS_PACRP_TP2_MASK 0x100000u
1313#define AIPS_PACRP_TP2_SHIFT 20
1314#define AIPS_PACRP_WP2_MASK 0x200000u
1315#define AIPS_PACRP_WP2_SHIFT 21
1316#define AIPS_PACRP_SP2_MASK 0x400000u
1317#define AIPS_PACRP_SP2_SHIFT 22
1318#define AIPS_PACRP_TP1_MASK 0x1000000u
1319#define AIPS_PACRP_TP1_SHIFT 24
1320#define AIPS_PACRP_WP1_MASK 0x2000000u
1321#define AIPS_PACRP_WP1_SHIFT 25
1322#define AIPS_PACRP_SP1_MASK 0x4000000u
1323#define AIPS_PACRP_SP1_SHIFT 26
1324#define AIPS_PACRP_TP0_MASK 0x10000000u
1325#define AIPS_PACRP_TP0_SHIFT 28
1326#define AIPS_PACRP_WP0_MASK 0x20000000u
1327#define AIPS_PACRP_WP0_SHIFT 29
1328#define AIPS_PACRP_SP0_MASK 0x40000000u
1329#define AIPS_PACRP_SP0_SHIFT 30
1330
1331 /* end of group AIPS_Register_Masks */
1332
1333
1334/* AIPS - Peripheral instance base addresses */
1336#define AIPS0_BASE (0x40000000u)
1338#define AIPS0 ((AIPS_Type *)AIPS0_BASE)
1340#define AIPS1_BASE (0x40080000u)
1342#define AIPS1 ((AIPS_Type *)AIPS1_BASE)
1343
1344 /* end of group AIPS_Peripheral_Access_Layer */
1345
1346
1347/* ----------------------------------------------------------------------------
1348 -- AXBS Peripheral Access Layer
1349 ---------------------------------------------------------------------------- */
1350
1355typedef struct {
1356 struct { /* offset: 0x0, array step: 0x100 */
1357 __IO uint32_t PRS;
1358 uint8_t RESERVED_0[12];
1359 __IO uint32_t CRS;
1360 uint8_t RESERVED_1[236];
1361 } SLAVE[5];
1362 uint8_t RESERVED_0[768];
1363 __IO uint32_t MGPCR0;
1364 uint8_t RESERVED_1[252];
1365 __IO uint32_t MGPCR1;
1366 uint8_t RESERVED_2[252];
1367 __IO uint32_t MGPCR2;
1368 uint8_t RESERVED_3[252];
1369 __IO uint32_t MGPCR3;
1370 uint8_t RESERVED_4[252];
1371 __IO uint32_t MGPCR4;
1372 uint8_t RESERVED_5[252];
1373 __IO uint32_t MGPCR5;
1374} AXBS_Type;
1375
1376/* ----------------------------------------------------------------------------
1377 -- AXBS Register Masks
1378 ---------------------------------------------------------------------------- */
1379
1383/* PRS Bit Fields */
1384#define AXBS_PRS_M0_MASK 0x7u
1385#define AXBS_PRS_M0_SHIFT 0
1386#define AXBS_PRS_M0(x) (((uint32_t)(((uint32_t)(x))<<AXBS_PRS_M0_SHIFT))&AXBS_PRS_M0_MASK)
1387#define AXBS_PRS_M1_MASK 0x70u
1388#define AXBS_PRS_M1_SHIFT 4
1389#define AXBS_PRS_M1(x) (((uint32_t)(((uint32_t)(x))<<AXBS_PRS_M1_SHIFT))&AXBS_PRS_M1_MASK)
1390#define AXBS_PRS_M2_MASK 0x700u
1391#define AXBS_PRS_M2_SHIFT 8
1392#define AXBS_PRS_M2(x) (((uint32_t)(((uint32_t)(x))<<AXBS_PRS_M2_SHIFT))&AXBS_PRS_M2_MASK)
1393#define AXBS_PRS_M3_MASK 0x7000u
1394#define AXBS_PRS_M3_SHIFT 12
1395#define AXBS_PRS_M3(x) (((uint32_t)(((uint32_t)(x))<<AXBS_PRS_M3_SHIFT))&AXBS_PRS_M3_MASK)
1396#define AXBS_PRS_M4_MASK 0x70000u
1397#define AXBS_PRS_M4_SHIFT 16
1398#define AXBS_PRS_M4(x) (((uint32_t)(((uint32_t)(x))<<AXBS_PRS_M4_SHIFT))&AXBS_PRS_M4_MASK)
1399#define AXBS_PRS_M5_MASK 0x700000u
1400#define AXBS_PRS_M5_SHIFT 20
1401#define AXBS_PRS_M5(x) (((uint32_t)(((uint32_t)(x))<<AXBS_PRS_M5_SHIFT))&AXBS_PRS_M5_MASK)
1402/* CRS Bit Fields */
1403#define AXBS_CRS_PARK_MASK 0x7u
1404#define AXBS_CRS_PARK_SHIFT 0
1405#define AXBS_CRS_PARK(x) (((uint32_t)(((uint32_t)(x))<<AXBS_CRS_PARK_SHIFT))&AXBS_CRS_PARK_MASK)
1406#define AXBS_CRS_PCTL_MASK 0x30u
1407#define AXBS_CRS_PCTL_SHIFT 4
1408#define AXBS_CRS_PCTL(x) (((uint32_t)(((uint32_t)(x))<<AXBS_CRS_PCTL_SHIFT))&AXBS_CRS_PCTL_MASK)
1409#define AXBS_CRS_ARB_MASK 0x300u
1410#define AXBS_CRS_ARB_SHIFT 8
1411#define AXBS_CRS_ARB(x) (((uint32_t)(((uint32_t)(x))<<AXBS_CRS_ARB_SHIFT))&AXBS_CRS_ARB_MASK)
1412#define AXBS_CRS_HLP_MASK 0x40000000u
1413#define AXBS_CRS_HLP_SHIFT 30
1414#define AXBS_CRS_RO_MASK 0x80000000u
1415#define AXBS_CRS_RO_SHIFT 31
1416/* MGPCR0 Bit Fields */
1417#define AXBS_MGPCR0_AULB_MASK 0x7u
1418#define AXBS_MGPCR0_AULB_SHIFT 0
1419#define AXBS_MGPCR0_AULB(x) (((uint32_t)(((uint32_t)(x))<<AXBS_MGPCR0_AULB_SHIFT))&AXBS_MGPCR0_AULB_MASK)
1420/* MGPCR1 Bit Fields */
1421#define AXBS_MGPCR1_AULB_MASK 0x7u
1422#define AXBS_MGPCR1_AULB_SHIFT 0
1423#define AXBS_MGPCR1_AULB(x) (((uint32_t)(((uint32_t)(x))<<AXBS_MGPCR1_AULB_SHIFT))&AXBS_MGPCR1_AULB_MASK)
1424/* MGPCR2 Bit Fields */
1425#define AXBS_MGPCR2_AULB_MASK 0x7u
1426#define AXBS_MGPCR2_AULB_SHIFT 0
1427#define AXBS_MGPCR2_AULB(x) (((uint32_t)(((uint32_t)(x))<<AXBS_MGPCR2_AULB_SHIFT))&AXBS_MGPCR2_AULB_MASK)
1428/* MGPCR3 Bit Fields */
1429#define AXBS_MGPCR3_AULB_MASK 0x7u
1430#define AXBS_MGPCR3_AULB_SHIFT 0
1431#define AXBS_MGPCR3_AULB(x) (((uint32_t)(((uint32_t)(x))<<AXBS_MGPCR3_AULB_SHIFT))&AXBS_MGPCR3_AULB_MASK)
1432/* MGPCR4 Bit Fields */
1433#define AXBS_MGPCR4_AULB_MASK 0x7u
1434#define AXBS_MGPCR4_AULB_SHIFT 0
1435#define AXBS_MGPCR4_AULB(x) (((uint32_t)(((uint32_t)(x))<<AXBS_MGPCR4_AULB_SHIFT))&AXBS_MGPCR4_AULB_MASK)
1436/* MGPCR5 Bit Fields */
1437#define AXBS_MGPCR5_AULB_MASK 0x7u
1438#define AXBS_MGPCR5_AULB_SHIFT 0
1439#define AXBS_MGPCR5_AULB(x) (((uint32_t)(((uint32_t)(x))<<AXBS_MGPCR5_AULB_SHIFT))&AXBS_MGPCR5_AULB_MASK)
1440
1441 /* end of group AXBS_Register_Masks */
1442
1443
1444/* AXBS - Peripheral instance base addresses */
1446#define AXBS_BASE (0x40004000u)
1448#define AXBS ((AXBS_Type *)AXBS_BASE)
1449
1450 /* end of group AXBS_Peripheral_Access_Layer */
1451
1452
1453/* ----------------------------------------------------------------------------
1454 -- CAN Peripheral Access Layer
1455 ---------------------------------------------------------------------------- */
1456
1461typedef struct {
1462 __IO uint32_t MCR;
1463 __IO uint32_t CTRL1;
1464 __IO uint32_t TIMER;
1465 uint8_t RESERVED_0[4];
1466 __IO uint32_t RXMGMASK;
1467 __IO uint32_t RX14MASK;
1468 __IO uint32_t RX15MASK;
1469 __IO uint32_t ECR;
1470 __IO uint32_t ESR1;
1471 __IO uint32_t IMASK2;
1472 __IO uint32_t IMASK1;
1473 __IO uint32_t IFLAG2;
1474 __IO uint32_t IFLAG1;
1475 __IO uint32_t CTRL2;
1476 __I uint32_t ESR2;
1477 uint8_t RESERVED_1[8];
1478 __I uint32_t CRCR;
1479 __IO uint32_t RXFGMASK;
1480 __I uint32_t RXFIR;
1481 uint8_t RESERVED_2[48];
1482 struct { /* offset: 0x80, array step: 0x10 */
1483 __IO uint32_t CS;
1484 __IO uint32_t ID;
1485 __IO uint32_t WORD0;
1486 __IO uint32_t WORD1;
1487 } MB[16];
1488 uint8_t RESERVED_3[1792];
1489 __IO uint32_t RXIMR[16];
1490} CAN_Type;
1491
1492/* ----------------------------------------------------------------------------
1493 -- CAN Register Masks
1494 ---------------------------------------------------------------------------- */
1495
1499/* MCR Bit Fields */
1500#define CAN_MCR_MAXMB_MASK 0x7Fu
1501#define CAN_MCR_MAXMB_SHIFT 0
1502#define CAN_MCR_MAXMB(x) (((uint32_t)(((uint32_t)(x))<<CAN_MCR_MAXMB_SHIFT))&CAN_MCR_MAXMB_MASK)
1503#define CAN_MCR_IDAM_MASK 0x300u
1504#define CAN_MCR_IDAM_SHIFT 8
1505#define CAN_MCR_IDAM(x) (((uint32_t)(((uint32_t)(x))<<CAN_MCR_IDAM_SHIFT))&CAN_MCR_IDAM_MASK)
1506#define CAN_MCR_AEN_MASK 0x1000u
1507#define CAN_MCR_AEN_SHIFT 12
1508#define CAN_MCR_LPRIOEN_MASK 0x2000u
1509#define CAN_MCR_LPRIOEN_SHIFT 13
1510#define CAN_MCR_IRMQ_MASK 0x10000u
1511#define CAN_MCR_IRMQ_SHIFT 16
1512#define CAN_MCR_SRXDIS_MASK 0x20000u
1513#define CAN_MCR_SRXDIS_SHIFT 17
1514#define CAN_MCR_DOZE_MASK 0x40000u
1515#define CAN_MCR_DOZE_SHIFT 18
1516#define CAN_MCR_LPMACK_MASK 0x100000u
1517#define CAN_MCR_LPMACK_SHIFT 20
1518#define CAN_MCR_WRNEN_MASK 0x200000u
1519#define CAN_MCR_WRNEN_SHIFT 21
1520#define CAN_MCR_SLFWAK_MASK 0x400000u
1521#define CAN_MCR_SLFWAK_SHIFT 22
1522#define CAN_MCR_SUPV_MASK 0x800000u
1523#define CAN_MCR_SUPV_SHIFT 23
1524#define CAN_MCR_FRZACK_MASK 0x1000000u
1525#define CAN_MCR_FRZACK_SHIFT 24
1526#define CAN_MCR_SOFTRST_MASK 0x2000000u
1527#define CAN_MCR_SOFTRST_SHIFT 25
1528#define CAN_MCR_WAKMSK_MASK 0x4000000u
1529#define CAN_MCR_WAKMSK_SHIFT 26
1530#define CAN_MCR_NOTRDY_MASK 0x8000000u
1531#define CAN_MCR_NOTRDY_SHIFT 27
1532#define CAN_MCR_HALT_MASK 0x10000000u
1533#define CAN_MCR_HALT_SHIFT 28
1534#define CAN_MCR_RFEN_MASK 0x20000000u
1535#define CAN_MCR_RFEN_SHIFT 29
1536#define CAN_MCR_FRZ_MASK 0x40000000u
1537#define CAN_MCR_FRZ_SHIFT 30
1538#define CAN_MCR_MDIS_MASK 0x80000000u
1539#define CAN_MCR_MDIS_SHIFT 31
1540/* CTRL1 Bit Fields */
1541#define CAN_CTRL1_PROPSEG_MASK 0x7u
1542#define CAN_CTRL1_PROPSEG_SHIFT 0
1543#define CAN_CTRL1_PROPSEG(x) (((uint32_t)(((uint32_t)(x))<<CAN_CTRL1_PROPSEG_SHIFT))&CAN_CTRL1_PROPSEG_MASK)
1544#define CAN_CTRL1_LOM_MASK 0x8u
1545#define CAN_CTRL1_LOM_SHIFT 3
1546#define CAN_CTRL1_LBUF_MASK 0x10u
1547#define CAN_CTRL1_LBUF_SHIFT 4
1548#define CAN_CTRL1_TSYN_MASK 0x20u
1549#define CAN_CTRL1_TSYN_SHIFT 5
1550#define CAN_CTRL1_BOFFREC_MASK 0x40u
1551#define CAN_CTRL1_BOFFREC_SHIFT 6
1552#define CAN_CTRL1_SMP_MASK 0x80u
1553#define CAN_CTRL1_SMP_SHIFT 7
1554#define CAN_CTRL1_RWRNMSK_MASK 0x400u
1555#define CAN_CTRL1_RWRNMSK_SHIFT 10
1556#define CAN_CTRL1_TWRNMSK_MASK 0x800u
1557#define CAN_CTRL1_TWRNMSK_SHIFT 11
1558#define CAN_CTRL1_LPB_MASK 0x1000u
1559#define CAN_CTRL1_LPB_SHIFT 12
1560#define CAN_CTRL1_CLKSRC_MASK 0x2000u
1561#define CAN_CTRL1_CLKSRC_SHIFT 13
1562#define CAN_CTRL1_ERRMSK_MASK 0x4000u
1563#define CAN_CTRL1_ERRMSK_SHIFT 14
1564#define CAN_CTRL1_BOFFMSK_MASK 0x8000u
1565#define CAN_CTRL1_BOFFMSK_SHIFT 15
1566#define CAN_CTRL1_PSEG2_MASK 0x70000u
1567#define CAN_CTRL1_PSEG2_SHIFT 16
1568#define CAN_CTRL1_PSEG2(x) (((uint32_t)(((uint32_t)(x))<<CAN_CTRL1_PSEG2_SHIFT))&CAN_CTRL1_PSEG2_MASK)
1569#define CAN_CTRL1_PSEG1_MASK 0x380000u
1570#define CAN_CTRL1_PSEG1_SHIFT 19
1571#define CAN_CTRL1_PSEG1(x) (((uint32_t)(((uint32_t)(x))<<CAN_CTRL1_PSEG1_SHIFT))&CAN_CTRL1_PSEG1_MASK)
1572#define CAN_CTRL1_RJW_MASK 0xC00000u
1573#define CAN_CTRL1_RJW_SHIFT 22
1574#define CAN_CTRL1_RJW(x) (((uint32_t)(((uint32_t)(x))<<CAN_CTRL1_RJW_SHIFT))&CAN_CTRL1_RJW_MASK)
1575#define CAN_CTRL1_PRESDIV_MASK 0xFF000000u
1576#define CAN_CTRL1_PRESDIV_SHIFT 24
1577#define CAN_CTRL1_PRESDIV(x) (((uint32_t)(((uint32_t)(x))<<CAN_CTRL1_PRESDIV_SHIFT))&CAN_CTRL1_PRESDIV_MASK)
1578/* TIMER Bit Fields */
1579#define CAN_TIMER_TIMER_MASK 0xFFFFu
1580#define CAN_TIMER_TIMER_SHIFT 0
1581#define CAN_TIMER_TIMER(x) (((uint32_t)(((uint32_t)(x))<<CAN_TIMER_TIMER_SHIFT))&CAN_TIMER_TIMER_MASK)
1582/* RXMGMASK Bit Fields */
1583#define CAN_RXMGMASK_MG_MASK 0xFFFFFFFFu
1584#define CAN_RXMGMASK_MG_SHIFT 0
1585#define CAN_RXMGMASK_MG(x) (((uint32_t)(((uint32_t)(x))<<CAN_RXMGMASK_MG_SHIFT))&CAN_RXMGMASK_MG_MASK)
1586/* RX14MASK Bit Fields */
1587#define CAN_RX14MASK_RX14M_MASK 0xFFFFFFFFu
1588#define CAN_RX14MASK_RX14M_SHIFT 0
1589#define CAN_RX14MASK_RX14M(x) (((uint32_t)(((uint32_t)(x))<<CAN_RX14MASK_RX14M_SHIFT))&CAN_RX14MASK_RX14M_MASK)
1590/* RX15MASK Bit Fields */
1591#define CAN_RX15MASK_RX15M_MASK 0xFFFFFFFFu
1592#define CAN_RX15MASK_RX15M_SHIFT 0
1593#define CAN_RX15MASK_RX15M(x) (((uint32_t)(((uint32_t)(x))<<CAN_RX15MASK_RX15M_SHIFT))&CAN_RX15MASK_RX15M_MASK)
1594/* ECR Bit Fields */
1595#define CAN_ECR_TXERRCNT_MASK 0xFFu
1596#define CAN_ECR_TXERRCNT_SHIFT 0
1597#define CAN_ECR_TXERRCNT(x) (((uint32_t)(((uint32_t)(x))<<CAN_ECR_TXERRCNT_SHIFT))&CAN_ECR_TXERRCNT_MASK)
1598#define CAN_ECR_RXERRCNT_MASK 0xFF00u
1599#define CAN_ECR_RXERRCNT_SHIFT 8
1600#define CAN_ECR_RXERRCNT(x) (((uint32_t)(((uint32_t)(x))<<CAN_ECR_RXERRCNT_SHIFT))&CAN_ECR_RXERRCNT_MASK)
1601/* ESR1 Bit Fields */
1602#define CAN_ESR1_WAKINT_MASK 0x1u
1603#define CAN_ESR1_WAKINT_SHIFT 0
1604#define CAN_ESR1_ERRINT_MASK 0x2u
1605#define CAN_ESR1_ERRINT_SHIFT 1
1606#define CAN_ESR1_BOFFINT_MASK 0x4u
1607#define CAN_ESR1_BOFFINT_SHIFT 2
1608#define CAN_ESR1_RX_MASK 0x8u
1609#define CAN_ESR1_RX_SHIFT 3
1610#define CAN_ESR1_FLTCONF_MASK 0x30u
1611#define CAN_ESR1_FLTCONF_SHIFT 4
1612#define CAN_ESR1_FLTCONF(x) (((uint32_t)(((uint32_t)(x))<<CAN_ESR1_FLTCONF_SHIFT))&CAN_ESR1_FLTCONF_MASK)
1613#define CAN_ESR1_TX_MASK 0x40u
1614#define CAN_ESR1_TX_SHIFT 6
1615#define CAN_ESR1_IDLE_MASK 0x80u
1616#define CAN_ESR1_IDLE_SHIFT 7
1617#define CAN_ESR1_RXWRN_MASK 0x100u
1618#define CAN_ESR1_RXWRN_SHIFT 8
1619#define CAN_ESR1_TXWRN_MASK 0x200u
1620#define CAN_ESR1_TXWRN_SHIFT 9
1621#define CAN_ESR1_STFERR_MASK 0x400u
1622#define CAN_ESR1_STFERR_SHIFT 10
1623#define CAN_ESR1_FRMERR_MASK 0x800u
1624#define CAN_ESR1_FRMERR_SHIFT 11
1625#define CAN_ESR1_CRCERR_MASK 0x1000u
1626#define CAN_ESR1_CRCERR_SHIFT 12
1627#define CAN_ESR1_ACKERR_MASK 0x2000u
1628#define CAN_ESR1_ACKERR_SHIFT 13
1629#define CAN_ESR1_BIT0ERR_MASK 0x4000u
1630#define CAN_ESR1_BIT0ERR_SHIFT 14
1631#define CAN_ESR1_BIT1ERR_MASK 0x8000u
1632#define CAN_ESR1_BIT1ERR_SHIFT 15
1633#define CAN_ESR1_RWRNINT_MASK 0x10000u
1634#define CAN_ESR1_RWRNINT_SHIFT 16
1635#define CAN_ESR1_TWRNINT_MASK 0x20000u
1636#define CAN_ESR1_TWRNINT_SHIFT 17
1637#define CAN_ESR1_SYNCH_MASK 0x40000u
1638#define CAN_ESR1_SYNCH_SHIFT 18
1639/* IMASK2 Bit Fields */
1640#define CAN_IMASK2_BUFHM_MASK 0xFFFFFFFFu
1641#define CAN_IMASK2_BUFHM_SHIFT 0
1642#define CAN_IMASK2_BUFHM(x) (((uint32_t)(((uint32_t)(x))<<CAN_IMASK2_BUFHM_SHIFT))&CAN_IMASK2_BUFHM_MASK)
1643/* IMASK1 Bit Fields */
1644#define CAN_IMASK1_BUFLM_MASK 0xFFFFFFFFu
1645#define CAN_IMASK1_BUFLM_SHIFT 0
1646#define CAN_IMASK1_BUFLM(x) (((uint32_t)(((uint32_t)(x))<<CAN_IMASK1_BUFLM_SHIFT))&CAN_IMASK1_BUFLM_MASK)
1647/* IFLAG2 Bit Fields */
1648#define CAN_IFLAG2_BUFHI_MASK 0xFFFFFFFFu
1649#define CAN_IFLAG2_BUFHI_SHIFT 0
1650#define CAN_IFLAG2_BUFHI(x) (((uint32_t)(((uint32_t)(x))<<CAN_IFLAG2_BUFHI_SHIFT))&CAN_IFLAG2_BUFHI_MASK)
1651/* IFLAG1 Bit Fields */
1652#define CAN_IFLAG1_BUF4TO0I_MASK 0x1Fu
1653#define CAN_IFLAG1_BUF4TO0I_SHIFT 0
1654#define CAN_IFLAG1_BUF4TO0I(x) (((uint32_t)(((uint32_t)(x))<<CAN_IFLAG1_BUF4TO0I_SHIFT))&CAN_IFLAG1_BUF4TO0I_MASK)
1655#define CAN_IFLAG1_BUF5I_MASK 0x20u
1656#define CAN_IFLAG1_BUF5I_SHIFT 5
1657#define CAN_IFLAG1_BUF6I_MASK 0x40u
1658#define CAN_IFLAG1_BUF6I_SHIFT 6
1659#define CAN_IFLAG1_BUF7I_MASK 0x80u
1660#define CAN_IFLAG1_BUF7I_SHIFT 7
1661#define CAN_IFLAG1_BUF31TO8I_MASK 0xFFFFFF00u
1662#define CAN_IFLAG1_BUF31TO8I_SHIFT 8
1663#define CAN_IFLAG1_BUF31TO8I(x) (((uint32_t)(((uint32_t)(x))<<CAN_IFLAG1_BUF31TO8I_SHIFT))&CAN_IFLAG1_BUF31TO8I_MASK)
1664/* CTRL2 Bit Fields */
1665#define CAN_CTRL2_EACEN_MASK 0x10000u
1666#define CAN_CTRL2_EACEN_SHIFT 16
1667#define CAN_CTRL2_RRS_MASK 0x20000u
1668#define CAN_CTRL2_RRS_SHIFT 17
1669#define CAN_CTRL2_MRP_MASK 0x40000u
1670#define CAN_CTRL2_MRP_SHIFT 18
1671#define CAN_CTRL2_TASD_MASK 0xF80000u
1672#define CAN_CTRL2_TASD_SHIFT 19
1673#define CAN_CTRL2_TASD(x) (((uint32_t)(((uint32_t)(x))<<CAN_CTRL2_TASD_SHIFT))&CAN_CTRL2_TASD_MASK)
1674#define CAN_CTRL2_RFFN_MASK 0xF000000u
1675#define CAN_CTRL2_RFFN_SHIFT 24
1676#define CAN_CTRL2_RFFN(x) (((uint32_t)(((uint32_t)(x))<<CAN_CTRL2_RFFN_SHIFT))&CAN_CTRL2_RFFN_MASK)
1677#define CAN_CTRL2_WRMFRZ_MASK 0x10000000u
1678#define CAN_CTRL2_WRMFRZ_SHIFT 28
1679/* ESR2 Bit Fields */
1680#define CAN_ESR2_IMB_MASK 0x2000u
1681#define CAN_ESR2_IMB_SHIFT 13
1682#define CAN_ESR2_VPS_MASK 0x4000u
1683#define CAN_ESR2_VPS_SHIFT 14
1684#define CAN_ESR2_LPTM_MASK 0x7F0000u
1685#define CAN_ESR2_LPTM_SHIFT 16
1686#define CAN_ESR2_LPTM(x) (((uint32_t)(((uint32_t)(x))<<CAN_ESR2_LPTM_SHIFT))&CAN_ESR2_LPTM_MASK)
1687/* CRCR Bit Fields */
1688#define CAN_CRCR_TXCRC_MASK 0x7FFFu
1689#define CAN_CRCR_TXCRC_SHIFT 0
1690#define CAN_CRCR_TXCRC(x) (((uint32_t)(((uint32_t)(x))<<CAN_CRCR_TXCRC_SHIFT))&CAN_CRCR_TXCRC_MASK)
1691#define CAN_CRCR_MBCRC_MASK 0x7F0000u
1692#define CAN_CRCR_MBCRC_SHIFT 16
1693#define CAN_CRCR_MBCRC(x) (((uint32_t)(((uint32_t)(x))<<CAN_CRCR_MBCRC_SHIFT))&CAN_CRCR_MBCRC_MASK)
1694/* RXFGMASK Bit Fields */
1695#define CAN_RXFGMASK_FGM_MASK 0xFFFFFFFFu
1696#define CAN_RXFGMASK_FGM_SHIFT 0
1697#define CAN_RXFGMASK_FGM(x) (((uint32_t)(((uint32_t)(x))<<CAN_RXFGMASK_FGM_SHIFT))&CAN_RXFGMASK_FGM_MASK)
1698/* RXFIR Bit Fields */
1699#define CAN_RXFIR_IDHIT_MASK 0x1FFu
1700#define CAN_RXFIR_IDHIT_SHIFT 0
1701#define CAN_RXFIR_IDHIT(x) (((uint32_t)(((uint32_t)(x))<<CAN_RXFIR_IDHIT_SHIFT))&CAN_RXFIR_IDHIT_MASK)
1702/* CS Bit Fields */
1703#define CAN_CS_TIME_STAMP_MASK 0xFFFFu
1704#define CAN_CS_TIME_STAMP_SHIFT 0
1705#define CAN_CS_TIME_STAMP(x) (((uint32_t)(((uint32_t)(x))<<CAN_CS_TIME_STAMP_SHIFT))&CAN_CS_TIME_STAMP_MASK)
1706#define CAN_CS_DLC_MASK 0xF0000u
1707#define CAN_CS_DLC_SHIFT 16
1708#define CAN_CS_DLC(x) (((uint32_t)(((uint32_t)(x))<<CAN_CS_DLC_SHIFT))&CAN_CS_DLC_MASK)
1709#define CAN_CS_RTR_MASK 0x100000u
1710#define CAN_CS_RTR_SHIFT 20
1711#define CAN_CS_IDE_MASK 0x200000u
1712#define CAN_CS_IDE_SHIFT 21
1713#define CAN_CS_SRR_MASK 0x400000u
1714#define CAN_CS_SRR_SHIFT 22
1715#define CAN_CS_CODE_MASK 0xF000000u
1716#define CAN_CS_CODE_SHIFT 24
1717#define CAN_CS_CODE(x) (((uint32_t)(((uint32_t)(x))<<CAN_CS_CODE_SHIFT))&CAN_CS_CODE_MASK)
1718/* ID Bit Fields */
1719#define CAN_ID_EXT_MASK 0x3FFFFu
1720#define CAN_ID_EXT_SHIFT 0
1721#define CAN_ID_EXT(x) (((uint32_t)(((uint32_t)(x))<<CAN_ID_EXT_SHIFT))&CAN_ID_EXT_MASK)
1722#define CAN_ID_STD_MASK 0x1FFC0000u
1723#define CAN_ID_STD_SHIFT 18
1724#define CAN_ID_STD(x) (((uint32_t)(((uint32_t)(x))<<CAN_ID_STD_SHIFT))&CAN_ID_STD_MASK)
1725#define CAN_ID_PRIO_MASK 0xE0000000u
1726#define CAN_ID_PRIO_SHIFT 29
1727#define CAN_ID_PRIO(x) (((uint32_t)(((uint32_t)(x))<<CAN_ID_PRIO_SHIFT))&CAN_ID_PRIO_MASK)
1728/* WORD0 Bit Fields */
1729#define CAN_WORD0_DATA_BYTE_3_MASK 0xFFu
1730#define CAN_WORD0_DATA_BYTE_3_SHIFT 0
1731#define CAN_WORD0_DATA_BYTE_3(x) (((uint32_t)(((uint32_t)(x))<<CAN_WORD0_DATA_BYTE_3_SHIFT))&CAN_WORD0_DATA_BYTE_3_MASK)
1732#define CAN_WORD0_DATA_BYTE_2_MASK 0xFF00u
1733#define CAN_WORD0_DATA_BYTE_2_SHIFT 8
1734#define CAN_WORD0_DATA_BYTE_2(x) (((uint32_t)(((uint32_t)(x))<<CAN_WORD0_DATA_BYTE_2_SHIFT))&CAN_WORD0_DATA_BYTE_2_MASK)
1735#define CAN_WORD0_DATA_BYTE_1_MASK 0xFF0000u
1736#define CAN_WORD0_DATA_BYTE_1_SHIFT 16
1737#define CAN_WORD0_DATA_BYTE_1(x) (((uint32_t)(((uint32_t)(x))<<CAN_WORD0_DATA_BYTE_1_SHIFT))&CAN_WORD0_DATA_BYTE_1_MASK)
1738#define CAN_WORD0_DATA_BYTE_0_MASK 0xFF000000u
1739#define CAN_WORD0_DATA_BYTE_0_SHIFT 24
1740#define CAN_WORD0_DATA_BYTE_0(x) (((uint32_t)(((uint32_t)(x))<<CAN_WORD0_DATA_BYTE_0_SHIFT))&CAN_WORD0_DATA_BYTE_0_MASK)
1741/* WORD1 Bit Fields */
1742#define CAN_WORD1_DATA_BYTE_7_MASK 0xFFu
1743#define CAN_WORD1_DATA_BYTE_7_SHIFT 0
1744#define CAN_WORD1_DATA_BYTE_7(x) (((uint32_t)(((uint32_t)(x))<<CAN_WORD1_DATA_BYTE_7_SHIFT))&CAN_WORD1_DATA_BYTE_7_MASK)
1745#define CAN_WORD1_DATA_BYTE_6_MASK 0xFF00u
1746#define CAN_WORD1_DATA_BYTE_6_SHIFT 8
1747#define CAN_WORD1_DATA_BYTE_6(x) (((uint32_t)(((uint32_t)(x))<<CAN_WORD1_DATA_BYTE_6_SHIFT))&CAN_WORD1_DATA_BYTE_6_MASK)
1748#define CAN_WORD1_DATA_BYTE_5_MASK 0xFF0000u
1749#define CAN_WORD1_DATA_BYTE_5_SHIFT 16
1750#define CAN_WORD1_DATA_BYTE_5(x) (((uint32_t)(((uint32_t)(x))<<CAN_WORD1_DATA_BYTE_5_SHIFT))&CAN_WORD1_DATA_BYTE_5_MASK)
1751#define CAN_WORD1_DATA_BYTE_4_MASK 0xFF000000u
1752#define CAN_WORD1_DATA_BYTE_4_SHIFT 24
1753#define CAN_WORD1_DATA_BYTE_4(x) (((uint32_t)(((uint32_t)(x))<<CAN_WORD1_DATA_BYTE_4_SHIFT))&CAN_WORD1_DATA_BYTE_4_MASK)
1754/* RXIMR Bit Fields */
1755#define CAN_RXIMR_MI_MASK 0xFFFFFFFFu
1756#define CAN_RXIMR_MI_SHIFT 0
1757#define CAN_RXIMR_MI(x) (((uint32_t)(((uint32_t)(x))<<CAN_RXIMR_MI_SHIFT))&CAN_RXIMR_MI_MASK)
1758
1759 /* end of group CAN_Register_Masks */
1760
1761
1762/* CAN - Peripheral instance base addresses */
1764#define CAN0_BASE (0x40024000u)
1766#define CAN0 ((CAN_Type *)CAN0_BASE)
1768#define CAN1_BASE (0x400A4000u)
1770#define CAN1 ((CAN_Type *)CAN1_BASE)
1771
1772 /* end of group CAN_Peripheral_Access_Layer */
1773
1774
1775/* ----------------------------------------------------------------------------
1776 -- CAU Peripheral Access Layer
1777 ---------------------------------------------------------------------------- */
1778
1783typedef struct {
1784 __O uint32_t DIRECT[16];
1785 uint8_t RESERVED_0[2048];
1786 __O uint32_t LDR_CASR;
1787 __O uint32_t LDR_CAA;
1788 __O uint32_t LDR_CA[9];
1789 uint8_t RESERVED_1[20];
1790 __I uint32_t STR_CASR;
1791 __I uint32_t STR_CAA;
1792 __I uint32_t STR_CA[9];
1793 uint8_t RESERVED_2[20];
1794 __O uint32_t ADR_CASR;
1795 __O uint32_t ADR_CAA;
1796 __O uint32_t ADR_CA[9];
1797 uint8_t RESERVED_3[20];
1798 __O uint32_t RADR_CASR;
1799 __O uint32_t RADR_CAA;
1800 __O uint32_t RADR_CA[9];
1801 uint8_t RESERVED_4[84];
1802 __O uint32_t XOR_CASR;
1803 __O uint32_t XOR_CAA;
1804 __O uint32_t XOR_CA[9];
1805 uint8_t RESERVED_5[20];
1806 __O uint32_t ROTL_CASR;
1807 __O uint32_t ROTL_CAA;
1808 __O uint32_t ROTL_CA[9];
1809 uint8_t RESERVED_6[276];
1810 __O uint32_t AESC_CASR;
1811 __O uint32_t AESC_CAA;
1812 __O uint32_t AESC_CA[9];
1813 uint8_t RESERVED_7[20];
1814 __O uint32_t AESIC_CASR;
1815 __O uint32_t AESIC_CAA;
1816 __O uint32_t AESIC_CA[9];
1817} CAU_Type;
1818
1819/* ----------------------------------------------------------------------------
1820 -- CAU Register Masks
1821 ---------------------------------------------------------------------------- */
1822
1826/* LDR_CASR Bit Fields */
1827#define CAU_LDR_CASR_IC_MASK 0x1u
1828#define CAU_LDR_CASR_IC_SHIFT 0
1829#define CAU_LDR_CASR_DPE_MASK 0x2u
1830#define CAU_LDR_CASR_DPE_SHIFT 1
1831#define CAU_LDR_CASR_VER_MASK 0xF0000000u
1832#define CAU_LDR_CASR_VER_SHIFT 28
1833#define CAU_LDR_CASR_VER(x) (((uint32_t)(((uint32_t)(x))<<CAU_LDR_CASR_VER_SHIFT))&CAU_LDR_CASR_VER_MASK)
1834/* STR_CASR Bit Fields */
1835#define CAU_STR_CASR_IC_MASK 0x1u
1836#define CAU_STR_CASR_IC_SHIFT 0
1837#define CAU_STR_CASR_DPE_MASK 0x2u
1838#define CAU_STR_CASR_DPE_SHIFT 1
1839#define CAU_STR_CASR_VER_MASK 0xF0000000u
1840#define CAU_STR_CASR_VER_SHIFT 28
1841#define CAU_STR_CASR_VER(x) (((uint32_t)(((uint32_t)(x))<<CAU_STR_CASR_VER_SHIFT))&CAU_STR_CASR_VER_MASK)
1842/* ADR_CASR Bit Fields */
1843#define CAU_ADR_CASR_IC_MASK 0x1u
1844#define CAU_ADR_CASR_IC_SHIFT 0
1845#define CAU_ADR_CASR_DPE_MASK 0x2u
1846#define CAU_ADR_CASR_DPE_SHIFT 1
1847#define CAU_ADR_CASR_VER_MASK 0xF0000000u
1848#define CAU_ADR_CASR_VER_SHIFT 28
1849#define CAU_ADR_CASR_VER(x) (((uint32_t)(((uint32_t)(x))<<CAU_ADR_CASR_VER_SHIFT))&CAU_ADR_CASR_VER_MASK)
1850/* RADR_CASR Bit Fields */
1851#define CAU_RADR_CASR_IC_MASK 0x1u
1852#define CAU_RADR_CASR_IC_SHIFT 0
1853#define CAU_RADR_CASR_DPE_MASK 0x2u
1854#define CAU_RADR_CASR_DPE_SHIFT 1
1855#define CAU_RADR_CASR_VER_MASK 0xF0000000u
1856#define CAU_RADR_CASR_VER_SHIFT 28
1857#define CAU_RADR_CASR_VER(x) (((uint32_t)(((uint32_t)(x))<<CAU_RADR_CASR_VER_SHIFT))&CAU_RADR_CASR_VER_MASK)
1858/* XOR_CASR Bit Fields */
1859#define CAU_XOR_CASR_IC_MASK 0x1u
1860#define CAU_XOR_CASR_IC_SHIFT 0
1861#define CAU_XOR_CASR_DPE_MASK 0x2u
1862#define CAU_XOR_CASR_DPE_SHIFT 1
1863#define CAU_XOR_CASR_VER_MASK 0xF0000000u
1864#define CAU_XOR_CASR_VER_SHIFT 28
1865#define CAU_XOR_CASR_VER(x) (((uint32_t)(((uint32_t)(x))<<CAU_XOR_CASR_VER_SHIFT))&CAU_XOR_CASR_VER_MASK)
1866/* ROTL_CASR Bit Fields */
1867#define CAU_ROTL_CASR_IC_MASK 0x1u
1868#define CAU_ROTL_CASR_IC_SHIFT 0
1869#define CAU_ROTL_CASR_DPE_MASK 0x2u
1870#define CAU_ROTL_CASR_DPE_SHIFT 1
1871#define CAU_ROTL_CASR_VER_MASK 0xF0000000u
1872#define CAU_ROTL_CASR_VER_SHIFT 28
1873#define CAU_ROTL_CASR_VER(x) (((uint32_t)(((uint32_t)(x))<<CAU_ROTL_CASR_VER_SHIFT))&CAU_ROTL_CASR_VER_MASK)
1874/* AESC_CASR Bit Fields */
1875#define CAU_AESC_CASR_IC_MASK 0x1u
1876#define CAU_AESC_CASR_IC_SHIFT 0
1877#define CAU_AESC_CASR_DPE_MASK 0x2u
1878#define CAU_AESC_CASR_DPE_SHIFT 1
1879#define CAU_AESC_CASR_VER_MASK 0xF0000000u
1880#define CAU_AESC_CASR_VER_SHIFT 28
1881#define CAU_AESC_CASR_VER(x) (((uint32_t)(((uint32_t)(x))<<CAU_AESC_CASR_VER_SHIFT))&CAU_AESC_CASR_VER_MASK)
1882/* AESIC_CASR Bit Fields */
1883#define CAU_AESIC_CASR_IC_MASK 0x1u
1884#define CAU_AESIC_CASR_IC_SHIFT 0
1885#define CAU_AESIC_CASR_DPE_MASK 0x2u
1886#define CAU_AESIC_CASR_DPE_SHIFT 1
1887#define CAU_AESIC_CASR_VER_MASK 0xF0000000u
1888#define CAU_AESIC_CASR_VER_SHIFT 28
1889#define CAU_AESIC_CASR_VER(x) (((uint32_t)(((uint32_t)(x))<<CAU_AESIC_CASR_VER_SHIFT))&CAU_AESIC_CASR_VER_MASK)
1890
1891 /* end of group CAU_Register_Masks */
1892
1893
1894/* CAU - Peripheral instance base addresses */
1896#define CAU_BASE (0xE0081000u)
1898#define CAU ((CAU_Type *)CAU_BASE)
1899
1900 /* end of group CAU_Peripheral_Access_Layer */
1901
1902
1903/* ----------------------------------------------------------------------------
1904 -- CMP Peripheral Access Layer
1905 ---------------------------------------------------------------------------- */
1906
1911typedef struct {
1912 __IO uint8_t CR0;
1913 __IO uint8_t CR1;
1914 __IO uint8_t FPR;
1915 __IO uint8_t SCR;
1916 __IO uint8_t DACCR;
1917 __IO uint8_t MUXCR;
1918} CMP_Type;
1919
1920/* ----------------------------------------------------------------------------
1921 -- CMP Register Masks
1922 ---------------------------------------------------------------------------- */
1923
1927/* CR0 Bit Fields */
1928#define CMP_CR0_HYSTCTR_MASK 0x3u
1929#define CMP_CR0_HYSTCTR_SHIFT 0
1930#define CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x))<<CMP_CR0_HYSTCTR_SHIFT))&CMP_CR0_HYSTCTR_MASK)
1931#define CMP_CR0_FILTER_CNT_MASK 0x70u
1932#define CMP_CR0_FILTER_CNT_SHIFT 4
1933#define CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x))<<CMP_CR0_FILTER_CNT_SHIFT))&CMP_CR0_FILTER_CNT_MASK)
1934/* CR1 Bit Fields */
1935#define CMP_CR1_EN_MASK 0x1u
1936#define CMP_CR1_EN_SHIFT 0
1937#define CMP_CR1_OPE_MASK 0x2u
1938#define CMP_CR1_OPE_SHIFT 1
1939#define CMP_CR1_COS_MASK 0x4u
1940#define CMP_CR1_COS_SHIFT 2
1941#define CMP_CR1_INV_MASK 0x8u
1942#define CMP_CR1_INV_SHIFT 3
1943#define CMP_CR1_PMODE_MASK 0x10u
1944#define CMP_CR1_PMODE_SHIFT 4
1945#define CMP_CR1_WE_MASK 0x40u
1946#define CMP_CR1_WE_SHIFT 6
1947#define CMP_CR1_SE_MASK 0x80u
1948#define CMP_CR1_SE_SHIFT 7
1949/* FPR Bit Fields */
1950#define CMP_FPR_FILT_PER_MASK 0xFFu
1951#define CMP_FPR_FILT_PER_SHIFT 0
1952#define CMP_FPR_FILT_PER(x) (((uint8_t)(((uint8_t)(x))<<CMP_FPR_FILT_PER_SHIFT))&CMP_FPR_FILT_PER_MASK)
1953/* SCR Bit Fields */
1954#define CMP_SCR_COUT_MASK 0x1u
1955#define CMP_SCR_COUT_SHIFT 0
1956#define CMP_SCR_CFF_MASK 0x2u
1957#define CMP_SCR_CFF_SHIFT 1
1958#define CMP_SCR_CFR_MASK 0x4u
1959#define CMP_SCR_CFR_SHIFT 2
1960#define CMP_SCR_IEF_MASK 0x8u
1961#define CMP_SCR_IEF_SHIFT 3
1962#define CMP_SCR_IER_MASK 0x10u
1963#define CMP_SCR_IER_SHIFT 4
1964#define CMP_SCR_SMELB_MASK 0x20u
1965#define CMP_SCR_SMELB_SHIFT 5
1966#define CMP_SCR_DMAEN_MASK 0x40u
1967#define CMP_SCR_DMAEN_SHIFT 6
1968/* DACCR Bit Fields */
1969#define CMP_DACCR_VOSEL_MASK 0x3Fu
1970#define CMP_DACCR_VOSEL_SHIFT 0
1971#define CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_DACCR_VOSEL_SHIFT))&CMP_DACCR_VOSEL_MASK)
1972#define CMP_DACCR_VRSEL_MASK 0x40u
1973#define CMP_DACCR_VRSEL_SHIFT 6
1974#define CMP_DACCR_DACEN_MASK 0x80u
1975#define CMP_DACCR_DACEN_SHIFT 7
1976/* MUXCR Bit Fields */
1977#define CMP_MUXCR_MSEL_MASK 0x7u
1978#define CMP_MUXCR_MSEL_SHIFT 0
1979#define CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_MUXCR_MSEL_SHIFT))&CMP_MUXCR_MSEL_MASK)
1980#define CMP_MUXCR_PSEL_MASK 0x38u
1981#define CMP_MUXCR_PSEL_SHIFT 3
1982#define CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_MUXCR_PSEL_SHIFT))&CMP_MUXCR_PSEL_MASK)
1983#define CMP_MUXCR_MEN_MASK 0x40u
1984#define CMP_MUXCR_MEN_SHIFT 6
1985#define CMP_MUXCR_PEN_MASK 0x80u
1986#define CMP_MUXCR_PEN_SHIFT 7
1987
1988 /* end of group CMP_Register_Masks */
1989
1990
1991/* CMP - Peripheral instance base addresses */
1993#define CMP0_BASE (0x40073000u)
1995#define CMP0 ((CMP_Type *)CMP0_BASE)
1997#define CMP1_BASE (0x40073008u)
1999#define CMP1 ((CMP_Type *)CMP1_BASE)
2001#define CMP2_BASE (0x40073010u)
2003#define CMP2 ((CMP_Type *)CMP2_BASE)
2004
2005 /* end of group CMP_Peripheral_Access_Layer */
2006
2007
2008/* ----------------------------------------------------------------------------
2009 -- CMT Peripheral Access Layer
2010 ---------------------------------------------------------------------------- */
2011
2016typedef struct {
2017 __IO uint8_t CGH1;
2018 __IO uint8_t CGL1;
2019 __IO uint8_t CGH2;
2020 __IO uint8_t CGL2;
2021 __IO uint8_t OC;
2022 __IO uint8_t MSC;
2023 __IO uint8_t CMD1;
2024 __IO uint8_t CMD2;
2025 __IO uint8_t CMD3;
2026 __IO uint8_t CMD4;
2027 __IO uint8_t PPS;
2028 __IO uint8_t DMA;
2029} CMT_Type;
2030
2031/* ----------------------------------------------------------------------------
2032 -- CMT Register Masks
2033 ---------------------------------------------------------------------------- */
2034
2038/* CGH1 Bit Fields */
2039#define CMT_CGH1_PH_MASK 0xFFu
2040#define CMT_CGH1_PH_SHIFT 0
2041#define CMT_CGH1_PH(x) (((uint8_t)(((uint8_t)(x))<<CMT_CGH1_PH_SHIFT))&CMT_CGH1_PH_MASK)
2042/* CGL1 Bit Fields */
2043#define CMT_CGL1_PL_MASK 0xFFu
2044#define CMT_CGL1_PL_SHIFT 0
2045#define CMT_CGL1_PL(x) (((uint8_t)(((uint8_t)(x))<<CMT_CGL1_PL_SHIFT))&CMT_CGL1_PL_MASK)
2046/* CGH2 Bit Fields */
2047#define CMT_CGH2_SH_MASK 0xFFu
2048#define CMT_CGH2_SH_SHIFT 0
2049#define CMT_CGH2_SH(x) (((uint8_t)(((uint8_t)(x))<<CMT_CGH2_SH_SHIFT))&CMT_CGH2_SH_MASK)
2050/* CGL2 Bit Fields */
2051#define CMT_CGL2_SL_MASK 0xFFu
2052#define CMT_CGL2_SL_SHIFT 0
2053#define CMT_CGL2_SL(x) (((uint8_t)(((uint8_t)(x))<<CMT_CGL2_SL_SHIFT))&CMT_CGL2_SL_MASK)
2054/* OC Bit Fields */
2055#define CMT_OC_IROPEN_MASK 0x20u
2056#define CMT_OC_IROPEN_SHIFT 5
2057#define CMT_OC_CMTPOL_MASK 0x40u
2058#define CMT_OC_CMTPOL_SHIFT 6
2059#define CMT_OC_IROL_MASK 0x80u
2060#define CMT_OC_IROL_SHIFT 7
2061/* MSC Bit Fields */
2062#define CMT_MSC_MCGEN_MASK 0x1u
2063#define CMT_MSC_MCGEN_SHIFT 0
2064#define CMT_MSC_EOCIE_MASK 0x2u
2065#define CMT_MSC_EOCIE_SHIFT 1
2066#define CMT_MSC_FSK_MASK 0x4u
2067#define CMT_MSC_FSK_SHIFT 2
2068#define CMT_MSC_BASE_MASK 0x8u
2069#define CMT_MSC_BASE_SHIFT 3
2070#define CMT_MSC_EXSPC_MASK 0x10u
2071#define CMT_MSC_EXSPC_SHIFT 4
2072#define CMT_MSC_CMTDIV_MASK 0x60u
2073#define CMT_MSC_CMTDIV_SHIFT 5
2074#define CMT_MSC_CMTDIV(x) (((uint8_t)(((uint8_t)(x))<<CMT_MSC_CMTDIV_SHIFT))&CMT_MSC_CMTDIV_MASK)
2075#define CMT_MSC_EOCF_MASK 0x80u
2076#define CMT_MSC_EOCF_SHIFT 7
2077/* CMD1 Bit Fields */
2078#define CMT_CMD1_MB_MASK 0xFFu
2079#define CMT_CMD1_MB_SHIFT 0
2080#define CMT_CMD1_MB(x) (((uint8_t)(((uint8_t)(x))<<CMT_CMD1_MB_SHIFT))&CMT_CMD1_MB_MASK)
2081/* CMD2 Bit Fields */
2082#define CMT_CMD2_MB_MASK 0xFFu
2083#define CMT_CMD2_MB_SHIFT 0
2084#define CMT_CMD2_MB(x) (((uint8_t)(((uint8_t)(x))<<CMT_CMD2_MB_SHIFT))&CMT_CMD2_MB_MASK)
2085/* CMD3 Bit Fields */
2086#define CMT_CMD3_SB_MASK 0xFFu
2087#define CMT_CMD3_SB_SHIFT 0
2088#define CMT_CMD3_SB(x) (((uint8_t)(((uint8_t)(x))<<CMT_CMD3_SB_SHIFT))&CMT_CMD3_SB_MASK)
2089/* CMD4 Bit Fields */
2090#define CMT_CMD4_SB_MASK 0xFFu
2091#define CMT_CMD4_SB_SHIFT 0
2092#define CMT_CMD4_SB(x) (((uint8_t)(((uint8_t)(x))<<CMT_CMD4_SB_SHIFT))&CMT_CMD4_SB_MASK)
2093/* PPS Bit Fields */
2094#define CMT_PPS_PPSDIV_MASK 0xFu
2095#define CMT_PPS_PPSDIV_SHIFT 0
2096#define CMT_PPS_PPSDIV(x) (((uint8_t)(((uint8_t)(x))<<CMT_PPS_PPSDIV_SHIFT))&CMT_PPS_PPSDIV_MASK)
2097/* DMA Bit Fields */
2098#define CMT_DMA_DMA_MASK 0x1u
2099#define CMT_DMA_DMA_SHIFT 0
2100
2101 /* end of group CMT_Register_Masks */
2102
2103
2104/* CMT - Peripheral instance base addresses */
2106#define CMT_BASE (0x40062000u)
2108#define CMT ((CMT_Type *)CMT_BASE)
2109
2110 /* end of group CMT_Peripheral_Access_Layer */
2111
2112
2113/* ----------------------------------------------------------------------------
2114 -- CRC Peripheral Access Layer
2115 ---------------------------------------------------------------------------- */
2116
2121typedef struct {
2122 union { /* offset: 0x0 */
2123 __IO uint32_t CRC;
2124 struct { /* offset: 0x0 */
2125 __IO uint16_t CRCL;
2126 __IO uint16_t CRCH;
2127 } ACCESS16BIT;
2128 struct { /* offset: 0x0 */
2129 __IO uint8_t CRCLL;
2130 __IO uint8_t CRCLU;
2131 __IO uint8_t CRCHL;
2132 __IO uint8_t CRCHU;
2133 } ACCESS8BIT;
2134 };
2135 union { /* offset: 0x4 */
2136 __IO uint32_t GPOLY;
2137 struct { /* offset: 0x4 */
2138 __IO uint16_t GPOLYL;
2139 __IO uint16_t GPOLYH;
2140 } GPOLY_ACCESS16BIT;
2141 struct { /* offset: 0x4 */
2142 __IO uint8_t GPOLYLL;
2143 __IO uint8_t GPOLYLU;
2144 __IO uint8_t GPOLYHL;
2145 __IO uint8_t GPOLYHU;
2146 } GPOLY_ACCESS8BIT;
2147 };
2148 __IO uint32_t CTRL;
2149} CRC_Type;
2150
2151/* ----------------------------------------------------------------------------
2152 -- CRC Register Masks
2153 ---------------------------------------------------------------------------- */
2154
2158/* CRC Bit Fields */
2159#define CRC_CRC_LL_MASK 0xFFu
2160#define CRC_CRC_LL_SHIFT 0
2161#define CRC_CRC_LL(x) (((uint32_t)(((uint32_t)(x))<<CRC_CRC_LL_SHIFT))&CRC_CRC_LL_MASK)
2162#define CRC_CRC_LU_MASK 0xFF00u
2163#define CRC_CRC_LU_SHIFT 8
2164#define CRC_CRC_LU(x) (((uint32_t)(((uint32_t)(x))<<CRC_CRC_LU_SHIFT))&CRC_CRC_LU_MASK)
2165#define CRC_CRC_HL_MASK 0xFF0000u
2166#define CRC_CRC_HL_SHIFT 16
2167#define CRC_CRC_HL(x) (((uint32_t)(((uint32_t)(x))<<CRC_CRC_HL_SHIFT))&CRC_CRC_HL_MASK)
2168#define CRC_CRC_HU_MASK 0xFF000000u
2169#define CRC_CRC_HU_SHIFT 24
2170#define CRC_CRC_HU(x) (((uint32_t)(((uint32_t)(x))<<CRC_CRC_HU_SHIFT))&CRC_CRC_HU_MASK)
2171/* CRCL Bit Fields */
2172#define CRC_CRCL_CRCL_MASK 0xFFFFu
2173#define CRC_CRCL_CRCL_SHIFT 0
2174#define CRC_CRCL_CRCL(x) (((uint16_t)(((uint16_t)(x))<<CRC_CRCL_CRCL_SHIFT))&CRC_CRCL_CRCL_MASK)
2175/* CRCH Bit Fields */
2176#define CRC_CRCH_CRCH_MASK 0xFFFFu
2177#define CRC_CRCH_CRCH_SHIFT 0
2178#define CRC_CRCH_CRCH(x) (((uint16_t)(((uint16_t)(x))<<CRC_CRCH_CRCH_SHIFT))&CRC_CRCH_CRCH_MASK)
2179/* CRCLL Bit Fields */
2180#define CRC_CRCLL_CRCLL_MASK 0xFFu
2181#define CRC_CRCLL_CRCLL_SHIFT 0
2182#define CRC_CRCLL_CRCLL(x) (((uint8_t)(((uint8_t)(x))<<CRC_CRCLL_CRCLL_SHIFT))&CRC_CRCLL_CRCLL_MASK)
2183/* CRCLU Bit Fields */
2184#define CRC_CRCLU_CRCLU_MASK 0xFFu
2185#define CRC_CRCLU_CRCLU_SHIFT 0
2186#define CRC_CRCLU_CRCLU(x) (((uint8_t)(((uint8_t)(x))<<CRC_CRCLU_CRCLU_SHIFT))&CRC_CRCLU_CRCLU_MASK)
2187/* CRCHL Bit Fields */
2188#define CRC_CRCHL_CRCHL_MASK 0xFFu
2189#define CRC_CRCHL_CRCHL_SHIFT 0
2190#define CRC_CRCHL_CRCHL(x) (((uint8_t)(((uint8_t)(x))<<CRC_CRCHL_CRCHL_SHIFT))&CRC_CRCHL_CRCHL_MASK)
2191/* CRCHU Bit Fields */
2192#define CRC_CRCHU_CRCHU_MASK 0xFFu
2193#define CRC_CRCHU_CRCHU_SHIFT 0
2194#define CRC_CRCHU_CRCHU(x) (((uint8_t)(((uint8_t)(x))<<CRC_CRCHU_CRCHU_SHIFT))&CRC_CRCHU_CRCHU_MASK)
2195/* GPOLY Bit Fields */
2196#define CRC_GPOLY_LOW_MASK 0xFFFFu
2197#define CRC_GPOLY_LOW_SHIFT 0
2198#define CRC_GPOLY_LOW(x) (((uint32_t)(((uint32_t)(x))<<CRC_GPOLY_LOW_SHIFT))&CRC_GPOLY_LOW_MASK)
2199#define CRC_GPOLY_HIGH_MASK 0xFFFF0000u
2200#define CRC_GPOLY_HIGH_SHIFT 16
2201#define CRC_GPOLY_HIGH(x) (((uint32_t)(((uint32_t)(x))<<CRC_GPOLY_HIGH_SHIFT))&CRC_GPOLY_HIGH_MASK)
2202/* GPOLYL Bit Fields */
2203#define CRC_GPOLYL_GPOLYL_MASK 0xFFFFu
2204#define CRC_GPOLYL_GPOLYL_SHIFT 0
2205#define CRC_GPOLYL_GPOLYL(x) (((uint16_t)(((uint16_t)(x))<<CRC_GPOLYL_GPOLYL_SHIFT))&CRC_GPOLYL_GPOLYL_MASK)
2206/* GPOLYH Bit Fields */
2207#define CRC_GPOLYH_GPOLYH_MASK 0xFFFFu
2208#define CRC_GPOLYH_GPOLYH_SHIFT 0
2209#define CRC_GPOLYH_GPOLYH(x) (((uint16_t)(((uint16_t)(x))<<CRC_GPOLYH_GPOLYH_SHIFT))&CRC_GPOLYH_GPOLYH_MASK)
2210/* GPOLYLL Bit Fields */
2211#define CRC_GPOLYLL_GPOLYLL_MASK 0xFFu
2212#define CRC_GPOLYLL_GPOLYLL_SHIFT 0
2213#define CRC_GPOLYLL_GPOLYLL(x) (((uint8_t)(((uint8_t)(x))<<CRC_GPOLYLL_GPOLYLL_SHIFT))&CRC_GPOLYLL_GPOLYLL_MASK)
2214/* GPOLYLU Bit Fields */
2215#define CRC_GPOLYLU_GPOLYLU_MASK 0xFFu
2216#define CRC_GPOLYLU_GPOLYLU_SHIFT 0
2217#define CRC_GPOLYLU_GPOLYLU(x) (((uint8_t)(((uint8_t)(x))<<CRC_GPOLYLU_GPOLYLU_SHIFT))&CRC_GPOLYLU_GPOLYLU_MASK)
2218/* GPOLYHL Bit Fields */
2219#define CRC_GPOLYHL_GPOLYHL_MASK 0xFFu
2220#define CRC_GPOLYHL_GPOLYHL_SHIFT 0
2221#define CRC_GPOLYHL_GPOLYHL(x) (((uint8_t)(((uint8_t)(x))<<CRC_GPOLYHL_GPOLYHL_SHIFT))&CRC_GPOLYHL_GPOLYHL_MASK)
2222/* GPOLYHU Bit Fields */
2223#define CRC_GPOLYHU_GPOLYHU_MASK 0xFFu
2224#define CRC_GPOLYHU_GPOLYHU_SHIFT 0
2225#define CRC_GPOLYHU_GPOLYHU(x) (((uint8_t)(((uint8_t)(x))<<CRC_GPOLYHU_GPOLYHU_SHIFT))&CRC_GPOLYHU_GPOLYHU_MASK)
2226/* CTRL Bit Fields */
2227#define CRC_CTRL_TCRC_MASK 0x1000000u
2228#define CRC_CTRL_TCRC_SHIFT 24
2229#define CRC_CTRL_WAS_MASK 0x2000000u
2230#define CRC_CTRL_WAS_SHIFT 25
2231#define CRC_CTRL_FXOR_MASK 0x4000000u
2232#define CRC_CTRL_FXOR_SHIFT 26
2233#define CRC_CTRL_TOTR_MASK 0x30000000u
2234#define CRC_CTRL_TOTR_SHIFT 28
2235#define CRC_CTRL_TOTR(x) (((uint32_t)(((uint32_t)(x))<<CRC_CTRL_TOTR_SHIFT))&CRC_CTRL_TOTR_MASK)
2236#define CRC_CTRL_TOT_MASK 0xC0000000u
2237#define CRC_CTRL_TOT_SHIFT 30
2238#define CRC_CTRL_TOT(x) (((uint32_t)(((uint32_t)(x))<<CRC_CTRL_TOT_SHIFT))&CRC_CTRL_TOT_MASK)
2239
2240 /* end of group CRC_Register_Masks */
2241
2242
2243/* CRC - Peripheral instance base addresses */
2245#define CRC_BASE (0x40032000u)
2247#define CRC ((CRC_Type *)CRC_BASE)
2248
2249 /* end of group CRC_Peripheral_Access_Layer */
2250
2251
2252/* ----------------------------------------------------------------------------
2253 -- DAC Peripheral Access Layer
2254 ---------------------------------------------------------------------------- */
2255
2260typedef struct {
2261 struct { /* offset: 0x0, array step: 0x2 */
2262 __IO uint8_t DATL;
2263 __IO uint8_t DATH;
2264 } DAT[16];
2265 __IO uint8_t SR;
2266 __IO uint8_t C0;
2267 __IO uint8_t C1;
2268 __IO uint8_t C2;
2269} DAC_Type;
2270
2271/* ----------------------------------------------------------------------------
2272 -- DAC Register Masks
2273 ---------------------------------------------------------------------------- */
2274
2278/* DATL Bit Fields */
2279#define DAC_DATL_DATA_MASK 0xFFu
2280#define DAC_DATL_DATA_SHIFT 0
2281#define DAC_DATL_DATA(x) (((uint8_t)(((uint8_t)(x))<<DAC_DATL_DATA_SHIFT))&DAC_DATL_DATA_MASK)
2282/* DATH Bit Fields */
2283#define DAC_DATH_DATA_MASK 0xFu
2284#define DAC_DATH_DATA_SHIFT 0
2285#define DAC_DATH_DATA(x) (((uint8_t)(((uint8_t)(x))<<DAC_DATH_DATA_SHIFT))&DAC_DATH_DATA_MASK)
2286/* SR Bit Fields */
2287#define DAC_SR_DACBFRPBF_MASK 0x1u
2288#define DAC_SR_DACBFRPBF_SHIFT 0
2289#define DAC_SR_DACBFRPTF_MASK 0x2u
2290#define DAC_SR_DACBFRPTF_SHIFT 1
2291#define DAC_SR_DACBFWMF_MASK 0x4u
2292#define DAC_SR_DACBFWMF_SHIFT 2
2293/* C0 Bit Fields */
2294#define DAC_C0_DACBBIEN_MASK 0x1u
2295#define DAC_C0_DACBBIEN_SHIFT 0
2296#define DAC_C0_DACBTIEN_MASK 0x2u
2297#define DAC_C0_DACBTIEN_SHIFT 1
2298#define DAC_C0_DACBWIEN_MASK 0x4u
2299#define DAC_C0_DACBWIEN_SHIFT 2
2300#define DAC_C0_LPEN_MASK 0x8u
2301#define DAC_C0_LPEN_SHIFT 3
2302#define DAC_C0_DACSWTRG_MASK 0x10u
2303#define DAC_C0_DACSWTRG_SHIFT 4
2304#define DAC_C0_DACTRGSEL_MASK 0x20u
2305#define DAC_C0_DACTRGSEL_SHIFT 5
2306#define DAC_C0_DACRFS_MASK 0x40u
2307#define DAC_C0_DACRFS_SHIFT 6
2308#define DAC_C0_DACEN_MASK 0x80u
2309#define DAC_C0_DACEN_SHIFT 7
2310/* C1 Bit Fields */
2311#define DAC_C1_DACBFEN_MASK 0x1u
2312#define DAC_C1_DACBFEN_SHIFT 0
2313#define DAC_C1_DACBFMD_MASK 0x6u
2314#define DAC_C1_DACBFMD_SHIFT 1
2315#define DAC_C1_DACBFMD(x) (((uint8_t)(((uint8_t)(x))<<DAC_C1_DACBFMD_SHIFT))&DAC_C1_DACBFMD_MASK)
2316#define DAC_C1_DACBFWM_MASK 0x18u
2317#define DAC_C1_DACBFWM_SHIFT 3
2318#define DAC_C1_DACBFWM(x) (((uint8_t)(((uint8_t)(x))<<DAC_C1_DACBFWM_SHIFT))&DAC_C1_DACBFWM_MASK)
2319#define DAC_C1_DMAEN_MASK 0x80u
2320#define DAC_C1_DMAEN_SHIFT 7
2321/* C2 Bit Fields */
2322#define DAC_C2_DACBFUP_MASK 0xFu
2323#define DAC_C2_DACBFUP_SHIFT 0
2324#define DAC_C2_DACBFUP(x) (((uint8_t)(((uint8_t)(x))<<DAC_C2_DACBFUP_SHIFT))&DAC_C2_DACBFUP_MASK)
2325#define DAC_C2_DACBFRP_MASK 0xF0u
2326#define DAC_C2_DACBFRP_SHIFT 4
2327#define DAC_C2_DACBFRP(x) (((uint8_t)(((uint8_t)(x))<<DAC_C2_DACBFRP_SHIFT))&DAC_C2_DACBFRP_MASK)
2328
2329 /* end of group DAC_Register_Masks */
2330
2331
2332/* DAC - Peripheral instance base addresses */
2334#define DAC0_BASE (0x400CC000u)
2336#define DAC0 ((DAC_Type *)DAC0_BASE)
2338#define DAC1_BASE (0x400CD000u)
2340#define DAC1 ((DAC_Type *)DAC1_BASE)
2341
2342 /* end of group DAC_Peripheral_Access_Layer */
2343
2344
2345/* ----------------------------------------------------------------------------
2346 -- DMA Peripheral Access Layer
2347 ---------------------------------------------------------------------------- */
2348
2353typedef struct {
2354 __IO uint32_t CR;
2355 __I uint32_t ES;
2356 uint8_t RESERVED_0[4];
2357 __IO uint32_t ERQ;
2358 uint8_t RESERVED_1[4];
2359 __IO uint32_t EEI;
2360 __O uint8_t CEEI;
2361 __O uint8_t SEEI;
2362 __O uint8_t CERQ;
2363 __O uint8_t SERQ;
2364 __O uint8_t CDNE;
2365 __O uint8_t SSRT;
2366 __O uint8_t CERR;
2367 __O uint8_t CINT;
2368 uint8_t RESERVED_2[4];
2369 __IO uint32_t INT;
2370 uint8_t RESERVED_3[4];
2371 __IO uint32_t ERR;
2372 uint8_t RESERVED_4[4];
2373 __IO uint32_t HRS;
2374 uint8_t RESERVED_5[200];
2375 __IO uint8_t DCHPRI3;
2376 __IO uint8_t DCHPRI2;
2377 __IO uint8_t DCHPRI1;
2378 __IO uint8_t DCHPRI0;
2379 __IO uint8_t DCHPRI7;
2380 __IO uint8_t DCHPRI6;
2381 __IO uint8_t DCHPRI5;
2382 __IO uint8_t DCHPRI4;
2383 __IO uint8_t DCHPRI11;
2384 __IO uint8_t DCHPRI10;
2385 __IO uint8_t DCHPRI9;
2386 __IO uint8_t DCHPRI8;
2387 __IO uint8_t DCHPRI15;
2388 __IO uint8_t DCHPRI14;
2389 __IO uint8_t DCHPRI13;
2390 __IO uint8_t DCHPRI12;
2391 uint8_t RESERVED_6[3824];
2392 struct { /* offset: 0x1000, array step: 0x20 */
2393 __IO uint32_t SADDR;
2394 __IO uint16_t SOFF;
2395 __IO uint16_t ATTR;
2396 union { /* offset: 0x1008, array step: 0x20 */
2397 __IO uint32_t NBYTES_MLNO;
2398 __IO uint32_t NBYTES_MLOFFNO;
2399 __IO uint32_t NBYTES_MLOFFYES;
2400 };
2401 __IO uint32_t SLAST;
2402 __IO uint32_t DADDR;
2403 __IO uint16_t DOFF;
2404 union { /* offset: 0x1016, array step: 0x20 */
2405 __IO uint16_t CITER_ELINKYES;
2406 __IO uint16_t CITER_ELINKNO;
2407 };
2408 __IO uint32_t DLAST_SGA;
2409 __IO uint16_t CSR;
2410 union { /* offset: 0x101E, array step: 0x20 */
2411 __IO uint16_t BITER_ELINKNO;
2412 __IO uint16_t BITER_ELINKYES;
2413 };
2414 } TCD[16];
2415} DMA_Type;
2416
2417/* ----------------------------------------------------------------------------
2418 -- DMA Register Masks
2419 ---------------------------------------------------------------------------- */
2420
2424/* CR Bit Fields */
2425#define DMA_CR_EDBG_MASK 0x2u
2426#define DMA_CR_EDBG_SHIFT 1
2427#define DMA_CR_ERCA_MASK 0x4u
2428#define DMA_CR_ERCA_SHIFT 2
2429#define DMA_CR_HOE_MASK 0x10u
2430#define DMA_CR_HOE_SHIFT 4
2431#define DMA_CR_HALT_MASK 0x20u
2432#define DMA_CR_HALT_SHIFT 5
2433#define DMA_CR_CLM_MASK 0x40u
2434#define DMA_CR_CLM_SHIFT 6
2435#define DMA_CR_EMLM_MASK 0x80u
2436#define DMA_CR_EMLM_SHIFT 7
2437#define DMA_CR_ECX_MASK 0x10000u
2438#define DMA_CR_ECX_SHIFT 16
2439#define DMA_CR_CX_MASK 0x20000u
2440#define DMA_CR_CX_SHIFT 17
2441/* ES Bit Fields */
2442#define DMA_ES_DBE_MASK 0x1u
2443#define DMA_ES_DBE_SHIFT 0
2444#define DMA_ES_SBE_MASK 0x2u
2445#define DMA_ES_SBE_SHIFT 1
2446#define DMA_ES_SGE_MASK 0x4u
2447#define DMA_ES_SGE_SHIFT 2
2448#define DMA_ES_NCE_MASK 0x8u
2449#define DMA_ES_NCE_SHIFT 3
2450#define DMA_ES_DOE_MASK 0x10u
2451#define DMA_ES_DOE_SHIFT 4
2452#define DMA_ES_DAE_MASK 0x20u
2453#define DMA_ES_DAE_SHIFT 5
2454#define DMA_ES_SOE_MASK 0x40u
2455#define DMA_ES_SOE_SHIFT 6
2456#define DMA_ES_SAE_MASK 0x80u
2457#define DMA_ES_SAE_SHIFT 7
2458#define DMA_ES_ERRCHN_MASK 0xF00u
2459#define DMA_ES_ERRCHN_SHIFT 8
2460#define DMA_ES_ERRCHN(x) (((uint32_t)(((uint32_t)(x))<<DMA_ES_ERRCHN_SHIFT))&DMA_ES_ERRCHN_MASK)
2461#define DMA_ES_CPE_MASK 0x4000u
2462#define DMA_ES_CPE_SHIFT 14
2463#define DMA_ES_ECX_MASK 0x10000u
2464#define DMA_ES_ECX_SHIFT 16
2465#define DMA_ES_VLD_MASK 0x80000000u
2466#define DMA_ES_VLD_SHIFT 31
2467/* ERQ Bit Fields */
2468#define DMA_ERQ_ERQ0_MASK 0x1u
2469#define DMA_ERQ_ERQ0_SHIFT 0
2470#define DMA_ERQ_ERQ1_MASK 0x2u
2471#define DMA_ERQ_ERQ1_SHIFT 1
2472#define DMA_ERQ_ERQ2_MASK 0x4u
2473#define DMA_ERQ_ERQ2_SHIFT 2
2474#define DMA_ERQ_ERQ3_MASK 0x8u
2475#define DMA_ERQ_ERQ3_SHIFT 3
2476#define DMA_ERQ_ERQ4_MASK 0x10u
2477#define DMA_ERQ_ERQ4_SHIFT 4
2478#define DMA_ERQ_ERQ5_MASK 0x20u
2479#define DMA_ERQ_ERQ5_SHIFT 5
2480#define DMA_ERQ_ERQ6_MASK 0x40u
2481#define DMA_ERQ_ERQ6_SHIFT 6
2482#define DMA_ERQ_ERQ7_MASK 0x80u
2483#define DMA_ERQ_ERQ7_SHIFT 7
2484#define DMA_ERQ_ERQ8_MASK 0x100u
2485#define DMA_ERQ_ERQ8_SHIFT 8
2486#define DMA_ERQ_ERQ9_MASK 0x200u
2487#define DMA_ERQ_ERQ9_SHIFT 9
2488#define DMA_ERQ_ERQ10_MASK 0x400u
2489#define DMA_ERQ_ERQ10_SHIFT 10
2490#define DMA_ERQ_ERQ11_MASK 0x800u
2491#define DMA_ERQ_ERQ11_SHIFT 11
2492#define DMA_ERQ_ERQ12_MASK 0x1000u
2493#define DMA_ERQ_ERQ12_SHIFT 12
2494#define DMA_ERQ_ERQ13_MASK 0x2000u
2495#define DMA_ERQ_ERQ13_SHIFT 13
2496#define DMA_ERQ_ERQ14_MASK 0x4000u
2497#define DMA_ERQ_ERQ14_SHIFT 14
2498#define DMA_ERQ_ERQ15_MASK 0x8000u
2499#define DMA_ERQ_ERQ15_SHIFT 15
2500/* EEI Bit Fields */
2501#define DMA_EEI_EEI0_MASK 0x1u
2502#define DMA_EEI_EEI0_SHIFT 0
2503#define DMA_EEI_EEI1_MASK 0x2u
2504#define DMA_EEI_EEI1_SHIFT 1
2505#define DMA_EEI_EEI2_MASK 0x4u
2506#define DMA_EEI_EEI2_SHIFT 2
2507#define DMA_EEI_EEI3_MASK 0x8u
2508#define DMA_EEI_EEI3_SHIFT 3
2509#define DMA_EEI_EEI4_MASK 0x10u
2510#define DMA_EEI_EEI4_SHIFT 4
2511#define DMA_EEI_EEI5_MASK 0x20u
2512#define DMA_EEI_EEI5_SHIFT 5
2513#define DMA_EEI_EEI6_MASK 0x40u
2514#define DMA_EEI_EEI6_SHIFT 6
2515#define DMA_EEI_EEI7_MASK 0x80u
2516#define DMA_EEI_EEI7_SHIFT 7
2517#define DMA_EEI_EEI8_MASK 0x100u
2518#define DMA_EEI_EEI8_SHIFT 8
2519#define DMA_EEI_EEI9_MASK 0x200u
2520#define DMA_EEI_EEI9_SHIFT 9
2521#define DMA_EEI_EEI10_MASK 0x400u
2522#define DMA_EEI_EEI10_SHIFT 10
2523#define DMA_EEI_EEI11_MASK 0x800u
2524#define DMA_EEI_EEI11_SHIFT 11
2525#define DMA_EEI_EEI12_MASK 0x1000u
2526#define DMA_EEI_EEI12_SHIFT 12
2527#define DMA_EEI_EEI13_MASK 0x2000u
2528#define DMA_EEI_EEI13_SHIFT 13
2529#define DMA_EEI_EEI14_MASK 0x4000u
2530#define DMA_EEI_EEI14_SHIFT 14
2531#define DMA_EEI_EEI15_MASK 0x8000u
2532#define DMA_EEI_EEI15_SHIFT 15
2533/* CEEI Bit Fields */
2534#define DMA_CEEI_CEEI_MASK 0xFu
2535#define DMA_CEEI_CEEI_SHIFT 0
2536#define DMA_CEEI_CEEI(x) (((uint8_t)(((uint8_t)(x))<<DMA_CEEI_CEEI_SHIFT))&DMA_CEEI_CEEI_MASK)
2537#define DMA_CEEI_CAEE_MASK 0x40u
2538#define DMA_CEEI_CAEE_SHIFT 6
2539#define DMA_CEEI_NOP_MASK 0x80u
2540#define DMA_CEEI_NOP_SHIFT 7
2541/* SEEI Bit Fields */
2542#define DMA_SEEI_SEEI_MASK 0xFu
2543#define DMA_SEEI_SEEI_SHIFT 0
2544#define DMA_SEEI_SEEI(x) (((uint8_t)(((uint8_t)(x))<<DMA_SEEI_SEEI_SHIFT))&DMA_SEEI_SEEI_MASK)
2545#define DMA_SEEI_SAEE_MASK 0x40u
2546#define DMA_SEEI_SAEE_SHIFT 6
2547#define DMA_SEEI_NOP_MASK 0x80u
2548#define DMA_SEEI_NOP_SHIFT 7
2549/* CERQ Bit Fields */
2550#define DMA_CERQ_CERQ_MASK 0xFu
2551#define DMA_CERQ_CERQ_SHIFT 0
2552#define DMA_CERQ_CERQ(x) (((uint8_t)(((uint8_t)(x))<<DMA_CERQ_CERQ_SHIFT))&DMA_CERQ_CERQ_MASK)
2553#define DMA_CERQ_CAER_MASK 0x40u
2554#define DMA_CERQ_CAER_SHIFT 6
2555#define DMA_CERQ_NOP_MASK 0x80u
2556#define DMA_CERQ_NOP_SHIFT 7
2557/* SERQ Bit Fields */
2558#define DMA_SERQ_SERQ_MASK 0xFu
2559#define DMA_SERQ_SERQ_SHIFT 0
2560#define DMA_SERQ_SERQ(x) (((uint8_t)(((uint8_t)(x))<<DMA_SERQ_SERQ_SHIFT))&DMA_SERQ_SERQ_MASK)
2561#define DMA_SERQ_SAER_MASK 0x40u
2562#define DMA_SERQ_SAER_SHIFT 6
2563#define DMA_SERQ_NOP_MASK 0x80u
2564#define DMA_SERQ_NOP_SHIFT 7
2565/* CDNE Bit Fields */
2566#define DMA_CDNE_CDNE_MASK 0xFu
2567#define DMA_CDNE_CDNE_SHIFT 0
2568#define DMA_CDNE_CDNE(x) (((uint8_t)(((uint8_t)(x))<<DMA_CDNE_CDNE_SHIFT))&DMA_CDNE_CDNE_MASK)
2569#define DMA_CDNE_CADN_MASK 0x40u
2570#define DMA_CDNE_CADN_SHIFT 6
2571#define DMA_CDNE_NOP_MASK 0x80u
2572#define DMA_CDNE_NOP_SHIFT 7
2573/* SSRT Bit Fields */
2574#define DMA_SSRT_SSRT_MASK 0xFu
2575#define DMA_SSRT_SSRT_SHIFT 0
2576#define DMA_SSRT_SSRT(x) (((uint8_t)(((uint8_t)(x))<<DMA_SSRT_SSRT_SHIFT))&DMA_SSRT_SSRT_MASK)
2577#define DMA_SSRT_SAST_MASK 0x40u
2578#define DMA_SSRT_SAST_SHIFT 6
2579#define DMA_SSRT_NOP_MASK 0x80u
2580#define DMA_SSRT_NOP_SHIFT 7
2581/* CERR Bit Fields */
2582#define DMA_CERR_CERR_MASK 0xFu
2583#define DMA_CERR_CERR_SHIFT 0
2584#define DMA_CERR_CERR(x) (((uint8_t)(((uint8_t)(x))<<DMA_CERR_CERR_SHIFT))&DMA_CERR_CERR_MASK)
2585#define DMA_CERR_CAEI_MASK 0x40u
2586#define DMA_CERR_CAEI_SHIFT 6
2587#define DMA_CERR_NOP_MASK 0x80u
2588#define DMA_CERR_NOP_SHIFT 7
2589/* CINT Bit Fields */
2590#define DMA_CINT_CINT_MASK 0xFu
2591#define DMA_CINT_CINT_SHIFT 0
2592#define DMA_CINT_CINT(x) (((uint8_t)(((uint8_t)(x))<<DMA_CINT_CINT_SHIFT))&DMA_CINT_CINT_MASK)
2593#define DMA_CINT_CAIR_MASK 0x40u
2594#define DMA_CINT_CAIR_SHIFT 6
2595#define DMA_CINT_NOP_MASK 0x80u
2596#define DMA_CINT_NOP_SHIFT 7
2597/* INT Bit Fields */
2598#define DMA_INT_INT0_MASK 0x1u
2599#define DMA_INT_INT0_SHIFT 0
2600#define DMA_INT_INT1_MASK 0x2u
2601#define DMA_INT_INT1_SHIFT 1
2602#define DMA_INT_INT2_MASK 0x4u
2603#define DMA_INT_INT2_SHIFT 2
2604#define DMA_INT_INT3_MASK 0x8u
2605#define DMA_INT_INT3_SHIFT 3
2606#define DMA_INT_INT4_MASK 0x10u
2607#define DMA_INT_INT4_SHIFT 4
2608#define DMA_INT_INT5_MASK 0x20u
2609#define DMA_INT_INT5_SHIFT 5
2610#define DMA_INT_INT6_MASK 0x40u
2611#define DMA_INT_INT6_SHIFT 6
2612#define DMA_INT_INT7_MASK 0x80u
2613#define DMA_INT_INT7_SHIFT 7
2614#define DMA_INT_INT8_MASK 0x100u
2615#define DMA_INT_INT8_SHIFT 8
2616#define DMA_INT_INT9_MASK 0x200u
2617#define DMA_INT_INT9_SHIFT 9
2618#define DMA_INT_INT10_MASK 0x400u
2619#define DMA_INT_INT10_SHIFT 10
2620#define DMA_INT_INT11_MASK 0x800u
2621#define DMA_INT_INT11_SHIFT 11
2622#define DMA_INT_INT12_MASK 0x1000u
2623#define DMA_INT_INT12_SHIFT 12
2624#define DMA_INT_INT13_MASK 0x2000u
2625#define DMA_INT_INT13_SHIFT 13
2626#define DMA_INT_INT14_MASK 0x4000u
2627#define DMA_INT_INT14_SHIFT 14
2628#define DMA_INT_INT15_MASK 0x8000u
2629#define DMA_INT_INT15_SHIFT 15
2630/* ERR Bit Fields */
2631#define DMA_ERR_ERR0_MASK 0x1u
2632#define DMA_ERR_ERR0_SHIFT 0
2633#define DMA_ERR_ERR1_MASK 0x2u
2634#define DMA_ERR_ERR1_SHIFT 1
2635#define DMA_ERR_ERR2_MASK 0x4u
2636#define DMA_ERR_ERR2_SHIFT 2
2637#define DMA_ERR_ERR3_MASK 0x8u
2638#define DMA_ERR_ERR3_SHIFT 3
2639#define DMA_ERR_ERR4_MASK 0x10u
2640#define DMA_ERR_ERR4_SHIFT 4
2641#define DMA_ERR_ERR5_MASK 0x20u
2642#define DMA_ERR_ERR5_SHIFT 5
2643#define DMA_ERR_ERR6_MASK 0x40u
2644#define DMA_ERR_ERR6_SHIFT 6
2645#define DMA_ERR_ERR7_MASK 0x80u
2646#define DMA_ERR_ERR7_SHIFT 7
2647#define DMA_ERR_ERR8_MASK 0x100u
2648#define DMA_ERR_ERR8_SHIFT 8
2649#define DMA_ERR_ERR9_MASK 0x200u
2650#define DMA_ERR_ERR9_SHIFT 9
2651#define DMA_ERR_ERR10_MASK 0x400u
2652#define DMA_ERR_ERR10_SHIFT 10
2653#define DMA_ERR_ERR11_MASK 0x800u
2654#define DMA_ERR_ERR11_SHIFT 11
2655#define DMA_ERR_ERR12_MASK 0x1000u
2656#define DMA_ERR_ERR12_SHIFT 12
2657#define DMA_ERR_ERR13_MASK 0x2000u
2658#define DMA_ERR_ERR13_SHIFT 13
2659#define DMA_ERR_ERR14_MASK 0x4000u
2660#define DMA_ERR_ERR14_SHIFT 14
2661#define DMA_ERR_ERR15_MASK 0x8000u
2662#define DMA_ERR_ERR15_SHIFT 15
2663/* HRS Bit Fields */
2664#define DMA_HRS_HRS0_MASK 0x1u
2665#define DMA_HRS_HRS0_SHIFT 0
2666#define DMA_HRS_HRS1_MASK 0x2u
2667#define DMA_HRS_HRS1_SHIFT 1
2668#define DMA_HRS_HRS2_MASK 0x4u
2669#define DMA_HRS_HRS2_SHIFT 2
2670#define DMA_HRS_HRS3_MASK 0x8u
2671#define DMA_HRS_HRS3_SHIFT 3
2672#define DMA_HRS_HRS4_MASK 0x10u
2673#define DMA_HRS_HRS4_SHIFT 4
2674#define DMA_HRS_HRS5_MASK 0x20u
2675#define DMA_HRS_HRS5_SHIFT 5
2676#define DMA_HRS_HRS6_MASK 0x40u
2677#define DMA_HRS_HRS6_SHIFT 6
2678#define DMA_HRS_HRS7_MASK 0x80u
2679#define DMA_HRS_HRS7_SHIFT 7
2680#define DMA_HRS_HRS8_MASK 0x100u
2681#define DMA_HRS_HRS8_SHIFT 8
2682#define DMA_HRS_HRS9_MASK 0x200u
2683#define DMA_HRS_HRS9_SHIFT 9
2684#define DMA_HRS_HRS10_MASK 0x400u
2685#define DMA_HRS_HRS10_SHIFT 10
2686#define DMA_HRS_HRS11_MASK 0x800u
2687#define DMA_HRS_HRS11_SHIFT 11
2688#define DMA_HRS_HRS12_MASK 0x1000u
2689#define DMA_HRS_HRS12_SHIFT 12
2690#define DMA_HRS_HRS13_MASK 0x2000u
2691#define DMA_HRS_HRS13_SHIFT 13
2692#define DMA_HRS_HRS14_MASK 0x4000u
2693#define DMA_HRS_HRS14_SHIFT 14
2694#define DMA_HRS_HRS15_MASK 0x8000u
2695#define DMA_HRS_HRS15_SHIFT 15
2696/* DCHPRI3 Bit Fields */
2697#define DMA_DCHPRI3_CHPRI_MASK 0xFu
2698#define DMA_DCHPRI3_CHPRI_SHIFT 0
2699#define DMA_DCHPRI3_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI3_CHPRI_SHIFT))&DMA_DCHPRI3_CHPRI_MASK)
2700#define DMA_DCHPRI3_DPA_MASK 0x40u
2701#define DMA_DCHPRI3_DPA_SHIFT 6
2702#define DMA_DCHPRI3_ECP_MASK 0x80u
2703#define DMA_DCHPRI3_ECP_SHIFT 7
2704/* DCHPRI2 Bit Fields */
2705#define DMA_DCHPRI2_CHPRI_MASK 0xFu
2706#define DMA_DCHPRI2_CHPRI_SHIFT 0
2707#define DMA_DCHPRI2_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI2_CHPRI_SHIFT))&DMA_DCHPRI2_CHPRI_MASK)
2708#define DMA_DCHPRI2_DPA_MASK 0x40u
2709#define DMA_DCHPRI2_DPA_SHIFT 6
2710#define DMA_DCHPRI2_ECP_MASK 0x80u
2711#define DMA_DCHPRI2_ECP_SHIFT 7
2712/* DCHPRI1 Bit Fields */
2713#define DMA_DCHPRI1_CHPRI_MASK 0xFu
2714#define DMA_DCHPRI1_CHPRI_SHIFT 0
2715#define DMA_DCHPRI1_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI1_CHPRI_SHIFT))&DMA_DCHPRI1_CHPRI_MASK)
2716#define DMA_DCHPRI1_DPA_MASK 0x40u
2717#define DMA_DCHPRI1_DPA_SHIFT 6
2718#define DMA_DCHPRI1_ECP_MASK 0x80u
2719#define DMA_DCHPRI1_ECP_SHIFT 7
2720/* DCHPRI0 Bit Fields */
2721#define DMA_DCHPRI0_CHPRI_MASK 0xFu
2722#define DMA_DCHPRI0_CHPRI_SHIFT 0
2723#define DMA_DCHPRI0_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI0_CHPRI_SHIFT))&DMA_DCHPRI0_CHPRI_MASK)
2724#define DMA_DCHPRI0_DPA_MASK 0x40u
2725#define DMA_DCHPRI0_DPA_SHIFT 6
2726#define DMA_DCHPRI0_ECP_MASK 0x80u
2727#define DMA_DCHPRI0_ECP_SHIFT 7
2728/* DCHPRI7 Bit Fields */
2729#define DMA_DCHPRI7_CHPRI_MASK 0xFu
2730#define DMA_DCHPRI7_CHPRI_SHIFT 0
2731#define DMA_DCHPRI7_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI7_CHPRI_SHIFT))&DMA_DCHPRI7_CHPRI_MASK)
2732#define DMA_DCHPRI7_DPA_MASK 0x40u
2733#define DMA_DCHPRI7_DPA_SHIFT 6
2734#define DMA_DCHPRI7_ECP_MASK 0x80u
2735#define DMA_DCHPRI7_ECP_SHIFT 7
2736/* DCHPRI6 Bit Fields */
2737#define DMA_DCHPRI6_CHPRI_MASK 0xFu
2738#define DMA_DCHPRI6_CHPRI_SHIFT 0
2739#define DMA_DCHPRI6_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI6_CHPRI_SHIFT))&DMA_DCHPRI6_CHPRI_MASK)
2740#define DMA_DCHPRI6_DPA_MASK 0x40u
2741#define DMA_DCHPRI6_DPA_SHIFT 6
2742#define DMA_DCHPRI6_ECP_MASK 0x80u
2743#define DMA_DCHPRI6_ECP_SHIFT 7
2744/* DCHPRI5 Bit Fields */
2745#define DMA_DCHPRI5_CHPRI_MASK 0xFu
2746#define DMA_DCHPRI5_CHPRI_SHIFT 0
2747#define DMA_DCHPRI5_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI5_CHPRI_SHIFT))&DMA_DCHPRI5_CHPRI_MASK)
2748#define DMA_DCHPRI5_DPA_MASK 0x40u
2749#define DMA_DCHPRI5_DPA_SHIFT 6
2750#define DMA_DCHPRI5_ECP_MASK 0x80u
2751#define DMA_DCHPRI5_ECP_SHIFT 7
2752/* DCHPRI4 Bit Fields */
2753#define DMA_DCHPRI4_CHPRI_MASK 0xFu
2754#define DMA_DCHPRI4_CHPRI_SHIFT 0
2755#define DMA_DCHPRI4_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI4_CHPRI_SHIFT))&DMA_DCHPRI4_CHPRI_MASK)
2756#define DMA_DCHPRI4_DPA_MASK 0x40u
2757#define DMA_DCHPRI4_DPA_SHIFT 6
2758#define DMA_DCHPRI4_ECP_MASK 0x80u
2759#define DMA_DCHPRI4_ECP_SHIFT 7
2760/* DCHPRI11 Bit Fields */
2761#define DMA_DCHPRI11_CHPRI_MASK 0xFu
2762#define DMA_DCHPRI11_CHPRI_SHIFT 0
2763#define DMA_DCHPRI11_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI11_CHPRI_SHIFT))&DMA_DCHPRI11_CHPRI_MASK)
2764#define DMA_DCHPRI11_DPA_MASK 0x40u
2765#define DMA_DCHPRI11_DPA_SHIFT 6
2766#define DMA_DCHPRI11_ECP_MASK 0x80u
2767#define DMA_DCHPRI11_ECP_SHIFT 7
2768/* DCHPRI10 Bit Fields */
2769#define DMA_DCHPRI10_CHPRI_MASK 0xFu
2770#define DMA_DCHPRI10_CHPRI_SHIFT 0
2771#define DMA_DCHPRI10_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI10_CHPRI_SHIFT))&DMA_DCHPRI10_CHPRI_MASK)
2772#define DMA_DCHPRI10_DPA_MASK 0x40u
2773#define DMA_DCHPRI10_DPA_SHIFT 6
2774#define DMA_DCHPRI10_ECP_MASK 0x80u
2775#define DMA_DCHPRI10_ECP_SHIFT 7
2776/* DCHPRI9 Bit Fields */
2777#define DMA_DCHPRI9_CHPRI_MASK 0xFu
2778#define DMA_DCHPRI9_CHPRI_SHIFT 0
2779#define DMA_DCHPRI9_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI9_CHPRI_SHIFT))&DMA_DCHPRI9_CHPRI_MASK)
2780#define DMA_DCHPRI9_DPA_MASK 0x40u
2781#define DMA_DCHPRI9_DPA_SHIFT 6
2782#define DMA_DCHPRI9_ECP_MASK 0x80u
2783#define DMA_DCHPRI9_ECP_SHIFT 7
2784/* DCHPRI8 Bit Fields */
2785#define DMA_DCHPRI8_CHPRI_MASK 0xFu
2786#define DMA_DCHPRI8_CHPRI_SHIFT 0
2787#define DMA_DCHPRI8_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI8_CHPRI_SHIFT))&DMA_DCHPRI8_CHPRI_MASK)
2788#define DMA_DCHPRI8_DPA_MASK 0x40u
2789#define DMA_DCHPRI8_DPA_SHIFT 6
2790#define DMA_DCHPRI8_ECP_MASK 0x80u
2791#define DMA_DCHPRI8_ECP_SHIFT 7
2792/* DCHPRI15 Bit Fields */
2793#define DMA_DCHPRI15_CHPRI_MASK 0xFu
2794#define DMA_DCHPRI15_CHPRI_SHIFT 0
2795#define DMA_DCHPRI15_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI15_CHPRI_SHIFT))&DMA_DCHPRI15_CHPRI_MASK)
2796#define DMA_DCHPRI15_DPA_MASK 0x40u
2797#define DMA_DCHPRI15_DPA_SHIFT 6
2798#define DMA_DCHPRI15_ECP_MASK 0x80u
2799#define DMA_DCHPRI15_ECP_SHIFT 7
2800/* DCHPRI14 Bit Fields */
2801#define DMA_DCHPRI14_CHPRI_MASK 0xFu
2802#define DMA_DCHPRI14_CHPRI_SHIFT 0
2803#define DMA_DCHPRI14_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI14_CHPRI_SHIFT))&DMA_DCHPRI14_CHPRI_MASK)
2804#define DMA_DCHPRI14_DPA_MASK 0x40u
2805#define DMA_DCHPRI14_DPA_SHIFT 6
2806#define DMA_DCHPRI14_ECP_MASK 0x80u
2807#define DMA_DCHPRI14_ECP_SHIFT 7
2808/* DCHPRI13 Bit Fields */
2809#define DMA_DCHPRI13_CHPRI_MASK 0xFu
2810#define DMA_DCHPRI13_CHPRI_SHIFT 0
2811#define DMA_DCHPRI13_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI13_CHPRI_SHIFT))&DMA_DCHPRI13_CHPRI_MASK)
2812#define DMA_DCHPRI13_DPA_MASK 0x40u
2813#define DMA_DCHPRI13_DPA_SHIFT 6
2814#define DMA_DCHPRI13_ECP_MASK 0x80u
2815#define DMA_DCHPRI13_ECP_SHIFT 7
2816/* DCHPRI12 Bit Fields */
2817#define DMA_DCHPRI12_CHPRI_MASK 0xFu
2818#define DMA_DCHPRI12_CHPRI_SHIFT 0
2819#define DMA_DCHPRI12_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI12_CHPRI_SHIFT))&DMA_DCHPRI12_CHPRI_MASK)
2820#define DMA_DCHPRI12_DPA_MASK 0x40u
2821#define DMA_DCHPRI12_DPA_SHIFT 6
2822#define DMA_DCHPRI12_ECP_MASK 0x80u
2823#define DMA_DCHPRI12_ECP_SHIFT 7
2824/* SADDR Bit Fields */
2825#define DMA_SADDR_SADDR_MASK 0xFFFFFFFFu
2826#define DMA_SADDR_SADDR_SHIFT 0
2827#define DMA_SADDR_SADDR(x) (((uint32_t)(((uint32_t)(x))<<DMA_SADDR_SADDR_SHIFT))&DMA_SADDR_SADDR_MASK)
2828/* SOFF Bit Fields */
2829#define DMA_SOFF_SOFF_MASK 0xFFFFu
2830#define DMA_SOFF_SOFF_SHIFT 0
2831#define DMA_SOFF_SOFF(x) (((uint16_t)(((uint16_t)(x))<<DMA_SOFF_SOFF_SHIFT))&DMA_SOFF_SOFF_MASK)
2832/* ATTR Bit Fields */
2833#define DMA_ATTR_DSIZE_MASK 0x7u
2834#define DMA_ATTR_DSIZE_SHIFT 0
2835#define DMA_ATTR_DSIZE(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_DSIZE_SHIFT))&DMA_ATTR_DSIZE_MASK)
2836#define DMA_ATTR_DMOD_MASK 0xF8u
2837#define DMA_ATTR_DMOD_SHIFT 3
2838#define DMA_ATTR_DMOD(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_DMOD_SHIFT))&DMA_ATTR_DMOD_MASK)
2839#define DMA_ATTR_SSIZE_MASK 0x700u
2840#define DMA_ATTR_SSIZE_SHIFT 8
2841#define DMA_ATTR_SSIZE(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_SSIZE_SHIFT))&DMA_ATTR_SSIZE_MASK)
2842#define DMA_ATTR_SMOD_MASK 0xF800u
2843#define DMA_ATTR_SMOD_SHIFT 11
2844#define DMA_ATTR_SMOD(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_SMOD_SHIFT))&DMA_ATTR_SMOD_MASK)
2845/* NBYTES_MLNO Bit Fields */
2846#define DMA_NBYTES_MLNO_NBYTES_MASK 0xFFFFFFFFu
2847#define DMA_NBYTES_MLNO_NBYTES_SHIFT 0
2848#define DMA_NBYTES_MLNO_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLNO_NBYTES_SHIFT))&DMA_NBYTES_MLNO_NBYTES_MASK)
2849/* NBYTES_MLOFFNO Bit Fields */
2850#define DMA_NBYTES_MLOFFNO_NBYTES_MASK 0x3FFFFFFFu
2851#define DMA_NBYTES_MLOFFNO_NBYTES_SHIFT 0
2852#define DMA_NBYTES_MLOFFNO_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFNO_NBYTES_SHIFT))&DMA_NBYTES_MLOFFNO_NBYTES_MASK)
2853#define DMA_NBYTES_MLOFFNO_DMLOE_MASK 0x40000000u
2854#define DMA_NBYTES_MLOFFNO_DMLOE_SHIFT 30
2855#define DMA_NBYTES_MLOFFNO_SMLOE_MASK 0x80000000u
2856#define DMA_NBYTES_MLOFFNO_SMLOE_SHIFT 31
2857/* NBYTES_MLOFFYES Bit Fields */
2858#define DMA_NBYTES_MLOFFYES_NBYTES_MASK 0x3FFu
2859#define DMA_NBYTES_MLOFFYES_NBYTES_SHIFT 0
2860#define DMA_NBYTES_MLOFFYES_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFYES_NBYTES_SHIFT))&DMA_NBYTES_MLOFFYES_NBYTES_MASK)
2861#define DMA_NBYTES_MLOFFYES_MLOFF_MASK 0x3FFFFC00u
2862#define DMA_NBYTES_MLOFFYES_MLOFF_SHIFT 10
2863#define DMA_NBYTES_MLOFFYES_MLOFF(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFYES_MLOFF_SHIFT))&DMA_NBYTES_MLOFFYES_MLOFF_MASK)
2864#define DMA_NBYTES_MLOFFYES_DMLOE_MASK 0x40000000u
2865#define DMA_NBYTES_MLOFFYES_DMLOE_SHIFT 30
2866#define DMA_NBYTES_MLOFFYES_SMLOE_MASK 0x80000000u
2867#define DMA_NBYTES_MLOFFYES_SMLOE_SHIFT 31
2868/* SLAST Bit Fields */
2869#define DMA_SLAST_SLAST_MASK 0xFFFFFFFFu
2870#define DMA_SLAST_SLAST_SHIFT 0
2871#define DMA_SLAST_SLAST(x) (((uint32_t)(((uint32_t)(x))<<DMA_SLAST_SLAST_SHIFT))&DMA_SLAST_SLAST_MASK)
2872/* DADDR Bit Fields */
2873#define DMA_DADDR_DADDR_MASK 0xFFFFFFFFu
2874#define DMA_DADDR_DADDR_SHIFT 0
2875#define DMA_DADDR_DADDR(x) (((uint32_t)(((uint32_t)(x))<<DMA_DADDR_DADDR_SHIFT))&DMA_DADDR_DADDR_MASK)
2876/* DOFF Bit Fields */
2877#define DMA_DOFF_DOFF_MASK 0xFFFFu
2878#define DMA_DOFF_DOFF_SHIFT 0
2879#define DMA_DOFF_DOFF(x) (((uint16_t)(((uint16_t)(x))<<DMA_DOFF_DOFF_SHIFT))&DMA_DOFF_DOFF_MASK)
2880/* CITER_ELINKYES Bit Fields */
2881#define DMA_CITER_ELINKYES_CITER_MASK 0x1FFu
2882#define DMA_CITER_ELINKYES_CITER_SHIFT 0
2883#define DMA_CITER_ELINKYES_CITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKYES_CITER_SHIFT))&DMA_CITER_ELINKYES_CITER_MASK)
2884#define DMA_CITER_ELINKYES_LINKCH_MASK 0x1E00u
2885#define DMA_CITER_ELINKYES_LINKCH_SHIFT 9
2886#define DMA_CITER_ELINKYES_LINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKYES_LINKCH_SHIFT))&DMA_CITER_ELINKYES_LINKCH_MASK)
2887#define DMA_CITER_ELINKYES_ELINK_MASK 0x8000u
2888#define DMA_CITER_ELINKYES_ELINK_SHIFT 15
2889/* CITER_ELINKNO Bit Fields */
2890#define DMA_CITER_ELINKNO_CITER_MASK 0x7FFFu
2891#define DMA_CITER_ELINKNO_CITER_SHIFT 0
2892#define DMA_CITER_ELINKNO_CITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKNO_CITER_SHIFT))&DMA_CITER_ELINKNO_CITER_MASK)
2893#define DMA_CITER_ELINKNO_ELINK_MASK 0x8000u
2894#define DMA_CITER_ELINKNO_ELINK_SHIFT 15
2895/* DLAST_SGA Bit Fields */
2896#define DMA_DLAST_SGA_DLASTSGA_MASK 0xFFFFFFFFu
2897#define DMA_DLAST_SGA_DLASTSGA_SHIFT 0
2898#define DMA_DLAST_SGA_DLASTSGA(x) (((uint32_t)(((uint32_t)(x))<<DMA_DLAST_SGA_DLASTSGA_SHIFT))&DMA_DLAST_SGA_DLASTSGA_MASK)
2899/* CSR Bit Fields */
2900#define DMA_CSR_START_MASK 0x1u
2901#define DMA_CSR_START_SHIFT 0
2902#define DMA_CSR_INTMAJOR_MASK 0x2u
2903#define DMA_CSR_INTMAJOR_SHIFT 1
2904#define DMA_CSR_INTHALF_MASK 0x4u
2905#define DMA_CSR_INTHALF_SHIFT 2
2906#define DMA_CSR_DREQ_MASK 0x8u
2907#define DMA_CSR_DREQ_SHIFT 3
2908#define DMA_CSR_ESG_MASK 0x10u
2909#define DMA_CSR_ESG_SHIFT 4
2910#define DMA_CSR_MAJORELINK_MASK 0x20u
2911#define DMA_CSR_MAJORELINK_SHIFT 5
2912#define DMA_CSR_ACTIVE_MASK 0x40u
2913#define DMA_CSR_ACTIVE_SHIFT 6
2914#define DMA_CSR_DONE_MASK 0x80u
2915#define DMA_CSR_DONE_SHIFT 7
2916#define DMA_CSR_MAJORLINKCH_MASK 0xF00u
2917#define DMA_CSR_MAJORLINKCH_SHIFT 8
2918#define DMA_CSR_MAJORLINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_CSR_MAJORLINKCH_SHIFT))&DMA_CSR_MAJORLINKCH_MASK)
2919#define DMA_CSR_BWC_MASK 0xC000u
2920#define DMA_CSR_BWC_SHIFT 14
2921#define DMA_CSR_BWC(x) (((uint16_t)(((uint16_t)(x))<<DMA_CSR_BWC_SHIFT))&DMA_CSR_BWC_MASK)
2922/* BITER_ELINKNO Bit Fields */
2923#define DMA_BITER_ELINKNO_BITER_MASK 0x7FFFu
2924#define DMA_BITER_ELINKNO_BITER_SHIFT 0
2925#define DMA_BITER_ELINKNO_BITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKNO_BITER_SHIFT))&DMA_BITER_ELINKNO_BITER_MASK)
2926#define DMA_BITER_ELINKNO_ELINK_MASK 0x8000u
2927#define DMA_BITER_ELINKNO_ELINK_SHIFT 15
2928/* BITER_ELINKYES Bit Fields */
2929#define DMA_BITER_ELINKYES_BITER_MASK 0x1FFu
2930#define DMA_BITER_ELINKYES_BITER_SHIFT 0
2931#define DMA_BITER_ELINKYES_BITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKYES_BITER_SHIFT))&DMA_BITER_ELINKYES_BITER_MASK)
2932#define DMA_BITER_ELINKYES_LINKCH_MASK 0x1E00u
2933#define DMA_BITER_ELINKYES_LINKCH_SHIFT 9
2934#define DMA_BITER_ELINKYES_LINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKYES_LINKCH_SHIFT))&DMA_BITER_ELINKYES_LINKCH_MASK)
2935#define DMA_BITER_ELINKYES_ELINK_MASK 0x8000u
2936#define DMA_BITER_ELINKYES_ELINK_SHIFT 15
2937
2938 /* end of group DMA_Register_Masks */
2939
2940
2941/* DMA - Peripheral instance base addresses */
2943#define DMA_BASE (0x40008000u)
2945#define DMA ((DMA_Type *)DMA_BASE)
2946
2947 /* end of group DMA_Peripheral_Access_Layer */
2948
2949
2950/* ----------------------------------------------------------------------------
2951 -- DMAMUX Peripheral Access Layer
2952 ---------------------------------------------------------------------------- */
2953
2958typedef struct {
2959 __IO uint8_t CHCFG[16];
2960} DMAMUX_Type;
2961
2962/* ----------------------------------------------------------------------------
2963 -- DMAMUX Register Masks
2964 ---------------------------------------------------------------------------- */
2965
2969/* CHCFG Bit Fields */
2970#define DMAMUX_CHCFG_SOURCE_MASK 0x3Fu
2971#define DMAMUX_CHCFG_SOURCE_SHIFT 0
2972#define DMAMUX_CHCFG_SOURCE(x) (((uint8_t)(((uint8_t)(x))<<DMAMUX_CHCFG_SOURCE_SHIFT))&DMAMUX_CHCFG_SOURCE_MASK)
2973#define DMAMUX_CHCFG_TRIG_MASK 0x40u
2974#define DMAMUX_CHCFG_TRIG_SHIFT 6
2975#define DMAMUX_CHCFG_ENBL_MASK 0x80u
2976#define DMAMUX_CHCFG_ENBL_SHIFT 7
2977
2978 /* end of group DMAMUX_Register_Masks */
2979
2980
2981/* DMAMUX - Peripheral instance base addresses */
2983#define DMAMUX_BASE (0x40021000u)
2985#define DMAMUX ((DMAMUX_Type *)DMAMUX_BASE)
2986
2987 /* end of group DMAMUX_Peripheral_Access_Layer */
2988
2989
2990/* ----------------------------------------------------------------------------
2991 -- ENET Peripheral Access Layer
2992 ---------------------------------------------------------------------------- */
2993
2998typedef struct {
2999 uint8_t RESERVED_0[4];
3000 __IO uint32_t EIR;
3001 __IO uint32_t EIMR;
3002 uint8_t RESERVED_1[4];
3003 __IO uint32_t RDAR;
3004 __IO uint32_t TDAR;
3005 uint8_t RESERVED_2[12];
3006 __IO uint32_t ECR;
3007 uint8_t RESERVED_3[24];
3008 __IO uint32_t MMFR;
3009 __IO uint32_t MSCR;
3010 uint8_t RESERVED_4[28];
3011 __IO uint32_t MIBC;
3012 uint8_t RESERVED_5[28];
3013 __IO uint32_t RCR;
3014 uint8_t RESERVED_6[60];
3015 __IO uint32_t TCR;
3016 uint8_t RESERVED_7[28];
3017 __IO uint32_t PALR;
3018 __IO uint32_t PAUR;
3019 __IO uint32_t OPD;
3020 uint8_t RESERVED_8[40];
3021 __IO uint32_t IAUR;
3022 __IO uint32_t IALR;
3023 __IO uint32_t GAUR;
3024 __IO uint32_t GALR;
3025 uint8_t RESERVED_9[28];
3026 __IO uint32_t TFWR;
3027 uint8_t RESERVED_10[56];
3028 __IO uint32_t RDSR;
3029 __IO uint32_t TDSR;
3030 __IO uint32_t MRBR;
3031 uint8_t RESERVED_11[4];
3032 __IO uint32_t RSFL;
3033 __IO uint32_t RSEM;
3034 __IO uint32_t RAEM;
3035 __IO uint32_t RAFL;
3036 __IO uint32_t TSEM;
3037 __IO uint32_t TAEM;
3038 __IO uint32_t TAFL;
3039 __IO uint32_t TIPG;
3040 __IO uint32_t FTRL;
3041 uint8_t RESERVED_12[12];
3042 __IO uint32_t TACC;
3043 __IO uint32_t RACC;
3044 uint8_t RESERVED_13[56];
3045 __IO uint32_t RMON_T_DROP;
3046 __IO uint32_t RMON_T_PACKETS;
3047 __IO uint32_t RMON_T_BC_PKT;
3048 __IO uint32_t RMON_T_MC_PKT;
3049 __IO uint32_t RMON_T_CRC_ALIGN;
3050 __IO uint32_t RMON_T_UNDERSIZE;
3051 __IO uint32_t RMON_T_OVERSIZE;
3052 __IO uint32_t RMON_T_FRAG;
3053 __IO uint32_t RMON_T_JAB;
3054 __IO uint32_t RMON_T_COL;
3055 __IO uint32_t RMON_T_P64;
3056 __IO uint32_t RMON_T_P65TO127;
3057 __IO uint32_t RMON_T_P128TO255;
3058 __IO uint32_t RMON_T_P256TO511;
3059 __IO uint32_t RMON_T_P512TO1023;
3060 __IO uint32_t RMON_T_P1024TO2047;
3061 __IO uint32_t RMON_T_P_GTE2048;
3063 __IO uint32_t IEEE_T_DROP;
3064 __IO uint32_t IEEE_T_FRAME_OK;
3065 __IO uint32_t IEEE_T_1COL;
3066 __IO uint32_t IEEE_T_MCOL;
3067 __IO uint32_t IEEE_T_DEF;
3068 __IO uint32_t IEEE_T_LCOL;
3069 __IO uint32_t IEEE_T_EXCOL;
3070 __IO uint32_t IEEE_T_MACERR;
3071 __IO uint32_t IEEE_T_CSERR;
3072 __IO uint32_t IEEE_T_SQE;
3073 __IO uint32_t IEEE_T_FDXFC;
3075 uint8_t RESERVED_14[12];
3076 __IO uint32_t RMON_R_PACKETS;
3077 __IO uint32_t RMON_R_BC_PKT;
3078 __IO uint32_t RMON_R_MC_PKT;
3079 __IO uint32_t RMON_R_CRC_ALIGN;
3080 __IO uint32_t RMON_R_UNDERSIZE;
3081 __IO uint32_t RMON_R_OVERSIZE;
3082 __IO uint32_t RMON_R_FRAG;
3083 __IO uint32_t RMON_R_JAB;
3084 __IO uint32_t RMON_R_RESVD_0;
3085 __IO uint32_t RMON_R_P64;
3086 __IO uint32_t RMON_R_P65TO127;
3087 __IO uint32_t RMON_R_P128TO255;
3088 __IO uint32_t RMON_R_P256TO511;
3089 __IO uint32_t RMON_R_P512TO1023;
3090 __IO uint32_t RMON_R_P1024TO2047;
3091 __IO uint32_t RMON_R_P_GTE2048;
3095 __IO uint32_t IEEE_R_CRC;
3096 __IO uint32_t IEEE_R_ALIGN;
3097 __IO uint32_t IEEE_R_MACERR;
3098 __IO uint32_t IEEE_R_FDXFC;
3100 uint8_t RESERVED_15[284];
3101 __IO uint32_t ATCR;
3102 __IO uint32_t ATVR;
3103 __IO uint32_t ATOFF;
3104 __IO uint32_t ATPER;
3105 __IO uint32_t ATCOR;
3106 __IO uint32_t ATINC;
3107 __IO uint32_t ATSTMP;
3108 uint8_t RESERVED_16[488];
3109 __IO uint32_t TGSR;
3110 struct { /* offset: 0x608, array step: 0x8 */
3111 __IO uint32_t TCSR;
3112 __IO uint32_t TCCR;
3113 } CHANNEL[4];
3114} ENET_Type;
3115
3116/* ----------------------------------------------------------------------------
3117 -- ENET Register Masks
3118 ---------------------------------------------------------------------------- */
3119
3123/* EIR Bit Fields */
3124#define ENET_EIR_TS_TIMER_MASK 0x8000u
3125#define ENET_EIR_TS_TIMER_SHIFT 15
3126#define ENET_EIR_TS_AVAIL_MASK 0x10000u
3127#define ENET_EIR_TS_AVAIL_SHIFT 16
3128#define ENET_EIR_WAKEUP_MASK 0x20000u
3129#define ENET_EIR_WAKEUP_SHIFT 17
3130#define ENET_EIR_PLR_MASK 0x40000u
3131#define ENET_EIR_PLR_SHIFT 18
3132#define ENET_EIR_UN_MASK 0x80000u
3133#define ENET_EIR_UN_SHIFT 19
3134#define ENET_EIR_RL_MASK 0x100000u
3135#define ENET_EIR_RL_SHIFT 20
3136#define ENET_EIR_LC_MASK 0x200000u
3137#define ENET_EIR_LC_SHIFT 21
3138#define ENET_EIR_EBERR_MASK 0x400000u
3139#define ENET_EIR_EBERR_SHIFT 22
3140#define ENET_EIR_MII_MASK 0x800000u
3141#define ENET_EIR_MII_SHIFT 23
3142#define ENET_EIR_RXB_MASK 0x1000000u
3143#define ENET_EIR_RXB_SHIFT 24
3144#define ENET_EIR_RXF_MASK 0x2000000u
3145#define ENET_EIR_RXF_SHIFT 25
3146#define ENET_EIR_TXB_MASK 0x4000000u
3147#define ENET_EIR_TXB_SHIFT 26
3148#define ENET_EIR_TXF_MASK 0x8000000u
3149#define ENET_EIR_TXF_SHIFT 27
3150#define ENET_EIR_GRA_MASK 0x10000000u
3151#define ENET_EIR_GRA_SHIFT 28
3152#define ENET_EIR_BABT_MASK 0x20000000u
3153#define ENET_EIR_BABT_SHIFT 29
3154#define ENET_EIR_BABR_MASK 0x40000000u
3155#define ENET_EIR_BABR_SHIFT 30
3156/* EIMR Bit Fields */
3157#define ENET_EIMR_TS_TIMER_MASK 0x8000u
3158#define ENET_EIMR_TS_TIMER_SHIFT 15
3159#define ENET_EIMR_TS_AVAIL_MASK 0x10000u
3160#define ENET_EIMR_TS_AVAIL_SHIFT 16
3161#define ENET_EIMR_WAKEUP_MASK 0x20000u
3162#define ENET_EIMR_WAKEUP_SHIFT 17
3163#define ENET_EIMR_PLR_MASK 0x40000u
3164#define ENET_EIMR_PLR_SHIFT 18
3165#define ENET_EIMR_UN_MASK 0x80000u
3166#define ENET_EIMR_UN_SHIFT 19
3167#define ENET_EIMR_RL_MASK 0x100000u
3168#define ENET_EIMR_RL_SHIFT 20
3169#define ENET_EIMR_LC_MASK 0x200000u
3170#define ENET_EIMR_LC_SHIFT 21
3171#define ENET_EIMR_EBERR_MASK 0x400000u
3172#define ENET_EIMR_EBERR_SHIFT 22
3173#define ENET_EIMR_MII_MASK 0x800000u
3174#define ENET_EIMR_MII_SHIFT 23
3175#define ENET_EIMR_RXB_MASK 0x1000000u
3176#define ENET_EIMR_RXB_SHIFT 24
3177#define ENET_EIMR_RXF_MASK 0x2000000u
3178#define ENET_EIMR_RXF_SHIFT 25
3179#define ENET_EIMR_TXB_MASK 0x4000000u
3180#define ENET_EIMR_TXB_SHIFT 26
3181#define ENET_EIMR_TXF_MASK 0x8000000u
3182#define ENET_EIMR_TXF_SHIFT 27
3183#define ENET_EIMR_GRA_MASK 0x10000000u
3184#define ENET_EIMR_GRA_SHIFT 28
3185#define ENET_EIMR_BABT_MASK 0x20000000u
3186#define ENET_EIMR_BABT_SHIFT 29
3187#define ENET_EIMR_BABR_MASK 0x40000000u
3188#define ENET_EIMR_BABR_SHIFT 30
3189/* RDAR Bit Fields */
3190#define ENET_RDAR_RDAR_MASK 0x1000000u
3191#define ENET_RDAR_RDAR_SHIFT 24
3192/* TDAR Bit Fields */
3193#define ENET_TDAR_TDAR_MASK 0x1000000u
3194#define ENET_TDAR_TDAR_SHIFT 24
3195/* ECR Bit Fields */
3196#define ENET_ECR_RESET_MASK 0x1u
3197#define ENET_ECR_RESET_SHIFT 0
3198#define ENET_ECR_ETHEREN_MASK 0x2u
3199#define ENET_ECR_ETHEREN_SHIFT 1
3200#define ENET_ECR_MAGICEN_MASK 0x4u
3201#define ENET_ECR_MAGICEN_SHIFT 2
3202#define ENET_ECR_SLEEP_MASK 0x8u
3203#define ENET_ECR_SLEEP_SHIFT 3
3204#define ENET_ECR_EN1588_MASK 0x10u
3205#define ENET_ECR_EN1588_SHIFT 4
3206#define ENET_ECR_DBGEN_MASK 0x40u
3207#define ENET_ECR_DBGEN_SHIFT 6
3208#define ENET_ECR_STOPEN_MASK 0x80u
3209#define ENET_ECR_STOPEN_SHIFT 7
3210/* MMFR Bit Fields */
3211#define ENET_MMFR_DATA_MASK 0xFFFFu
3212#define ENET_MMFR_DATA_SHIFT 0
3213#define ENET_MMFR_DATA(x) (((uint32_t)(((uint32_t)(x))<<ENET_MMFR_DATA_SHIFT))&ENET_MMFR_DATA_MASK)
3214#define ENET_MMFR_TA_MASK 0x30000u
3215#define ENET_MMFR_TA_SHIFT 16
3216#define ENET_MMFR_TA(x) (((uint32_t)(((uint32_t)(x))<<ENET_MMFR_TA_SHIFT))&ENET_MMFR_TA_MASK)
3217#define ENET_MMFR_RA_MASK 0x7C0000u
3218#define ENET_MMFR_RA_SHIFT 18
3219#define ENET_MMFR_RA(x) (((uint32_t)(((uint32_t)(x))<<ENET_MMFR_RA_SHIFT))&ENET_MMFR_RA_MASK)
3220#define ENET_MMFR_PA_MASK 0xF800000u
3221#define ENET_MMFR_PA_SHIFT 23
3222#define ENET_MMFR_PA(x) (((uint32_t)(((uint32_t)(x))<<ENET_MMFR_PA_SHIFT))&ENET_MMFR_PA_MASK)
3223#define ENET_MMFR_OP_MASK 0x30000000u
3224#define ENET_MMFR_OP_SHIFT 28
3225#define ENET_MMFR_OP(x) (((uint32_t)(((uint32_t)(x))<<ENET_MMFR_OP_SHIFT))&ENET_MMFR_OP_MASK)
3226#define ENET_MMFR_ST_MASK 0xC0000000u
3227#define ENET_MMFR_ST_SHIFT 30
3228#define ENET_MMFR_ST(x) (((uint32_t)(((uint32_t)(x))<<ENET_MMFR_ST_SHIFT))&ENET_MMFR_ST_MASK)
3229/* MSCR Bit Fields */
3230#define ENET_MSCR_MII_SPEED_MASK 0x7Eu
3231#define ENET_MSCR_MII_SPEED_SHIFT 1
3232#define ENET_MSCR_MII_SPEED(x) (((uint32_t)(((uint32_t)(x))<<ENET_MSCR_MII_SPEED_SHIFT))&ENET_MSCR_MII_SPEED_MASK)
3233#define ENET_MSCR_DIS_PRE_MASK 0x80u
3234#define ENET_MSCR_DIS_PRE_SHIFT 7
3235#define ENET_MSCR_HOLDTIME_MASK 0x700u
3236#define ENET_MSCR_HOLDTIME_SHIFT 8
3237#define ENET_MSCR_HOLDTIME(x) (((uint32_t)(((uint32_t)(x))<<ENET_MSCR_HOLDTIME_SHIFT))&ENET_MSCR_HOLDTIME_MASK)
3238/* MIBC Bit Fields */
3239#define ENET_MIBC_MIB_CLEAR_MASK 0x20000000u
3240#define ENET_MIBC_MIB_CLEAR_SHIFT 29
3241#define ENET_MIBC_MIB_IDLE_MASK 0x40000000u
3242#define ENET_MIBC_MIB_IDLE_SHIFT 30
3243#define ENET_MIBC_MIB_DIS_MASK 0x80000000u
3244#define ENET_MIBC_MIB_DIS_SHIFT 31
3245/* RCR Bit Fields */
3246#define ENET_RCR_LOOP_MASK 0x1u
3247#define ENET_RCR_LOOP_SHIFT 0
3248#define ENET_RCR_DRT_MASK 0x2u
3249#define ENET_RCR_DRT_SHIFT 1
3250#define ENET_RCR_MII_MODE_MASK 0x4u
3251#define ENET_RCR_MII_MODE_SHIFT 2
3252#define ENET_RCR_PROM_MASK 0x8u
3253#define ENET_RCR_PROM_SHIFT 3
3254#define ENET_RCR_BC_REJ_MASK 0x10u
3255#define ENET_RCR_BC_REJ_SHIFT 4
3256#define ENET_RCR_FCE_MASK 0x20u
3257#define ENET_RCR_FCE_SHIFT 5
3258#define ENET_RCR_RMII_MODE_MASK 0x100u
3259#define ENET_RCR_RMII_MODE_SHIFT 8
3260#define ENET_RCR_RMII_10T_MASK 0x200u
3261#define ENET_RCR_RMII_10T_SHIFT 9
3262#define ENET_RCR_PADEN_MASK 0x1000u
3263#define ENET_RCR_PADEN_SHIFT 12
3264#define ENET_RCR_PAUFWD_MASK 0x2000u
3265#define ENET_RCR_PAUFWD_SHIFT 13
3266#define ENET_RCR_CRCFWD_MASK 0x4000u
3267#define ENET_RCR_CRCFWD_SHIFT 14
3268#define ENET_RCR_CFEN_MASK 0x8000u
3269#define ENET_RCR_CFEN_SHIFT 15
3270#define ENET_RCR_MAX_FL_MASK 0x3FFF0000u
3271#define ENET_RCR_MAX_FL_SHIFT 16
3272#define ENET_RCR_MAX_FL(x) (((uint32_t)(((uint32_t)(x))<<ENET_RCR_MAX_FL_SHIFT))&ENET_RCR_MAX_FL_MASK)
3273#define ENET_RCR_NLC_MASK 0x40000000u
3274#define ENET_RCR_NLC_SHIFT 30
3275#define ENET_RCR_GRS_MASK 0x80000000u
3276#define ENET_RCR_GRS_SHIFT 31
3277/* TCR Bit Fields */
3278#define ENET_TCR_GTS_MASK 0x1u
3279#define ENET_TCR_GTS_SHIFT 0
3280#define ENET_TCR_FDEN_MASK 0x4u
3281#define ENET_TCR_FDEN_SHIFT 2
3282#define ENET_TCR_TFC_PAUSE_MASK 0x8u
3283#define ENET_TCR_TFC_PAUSE_SHIFT 3
3284#define ENET_TCR_RFC_PAUSE_MASK 0x10u
3285#define ENET_TCR_RFC_PAUSE_SHIFT 4
3286#define ENET_TCR_ADDSEL_MASK 0xE0u
3287#define ENET_TCR_ADDSEL_SHIFT 5
3288#define ENET_TCR_ADDSEL(x) (((uint32_t)(((uint32_t)(x))<<ENET_TCR_ADDSEL_SHIFT))&ENET_TCR_ADDSEL_MASK)
3289#define ENET_TCR_ADDINS_MASK 0x100u
3290#define ENET_TCR_ADDINS_SHIFT 8
3291#define ENET_TCR_CRCFWD_MASK 0x200u
3292#define ENET_TCR_CRCFWD_SHIFT 9
3293/* PALR Bit Fields */
3294#define ENET_PALR_PADDR1_MASK 0xFFFFFFFFu
3295#define ENET_PALR_PADDR1_SHIFT 0
3296#define ENET_PALR_PADDR1(x) (((uint32_t)(((uint32_t)(x))<<ENET_PALR_PADDR1_SHIFT))&ENET_PALR_PADDR1_MASK)
3297/* PAUR Bit Fields */
3298#define ENET_PAUR_TYPE_MASK 0xFFFFu
3299#define ENET_PAUR_TYPE_SHIFT 0
3300#define ENET_PAUR_TYPE(x) (((uint32_t)(((uint32_t)(x))<<ENET_PAUR_TYPE_SHIFT))&ENET_PAUR_TYPE_MASK)
3301#define ENET_PAUR_PADDR2_MASK 0xFFFF0000u
3302#define ENET_PAUR_PADDR2_SHIFT 16
3303#define ENET_PAUR_PADDR2(x) (((uint32_t)(((uint32_t)(x))<<ENET_PAUR_PADDR2_SHIFT))&ENET_PAUR_PADDR2_MASK)
3304/* OPD Bit Fields */
3305#define ENET_OPD_PAUSE_DUR_MASK 0xFFFFu
3306#define ENET_OPD_PAUSE_DUR_SHIFT 0
3307#define ENET_OPD_PAUSE_DUR(x) (((uint32_t)(((uint32_t)(x))<<ENET_OPD_PAUSE_DUR_SHIFT))&ENET_OPD_PAUSE_DUR_MASK)
3308#define ENET_OPD_OPCODE_MASK 0xFFFF0000u
3309#define ENET_OPD_OPCODE_SHIFT 16
3310#define ENET_OPD_OPCODE(x) (((uint32_t)(((uint32_t)(x))<<ENET_OPD_OPCODE_SHIFT))&ENET_OPD_OPCODE_MASK)
3311/* IAUR Bit Fields */
3312#define ENET_IAUR_IADDR1_MASK 0xFFFFFFFFu
3313#define ENET_IAUR_IADDR1_SHIFT 0
3314#define ENET_IAUR_IADDR1(x) (((uint32_t)(((uint32_t)(x))<<ENET_IAUR_IADDR1_SHIFT))&ENET_IAUR_IADDR1_MASK)
3315/* IALR Bit Fields */
3316#define ENET_IALR_IADDR2_MASK 0xFFFFFFFFu
3317#define ENET_IALR_IADDR2_SHIFT 0
3318#define ENET_IALR_IADDR2(x) (((uint32_t)(((uint32_t)(x))<<ENET_IALR_IADDR2_SHIFT))&ENET_IALR_IADDR2_MASK)
3319/* GAUR Bit Fields */
3320#define ENET_GAUR_GADDR1_MASK 0xFFFFFFFFu
3321#define ENET_GAUR_GADDR1_SHIFT 0
3322#define ENET_GAUR_GADDR1(x) (((uint32_t)(((uint32_t)(x))<<ENET_GAUR_GADDR1_SHIFT))&ENET_GAUR_GADDR1_MASK)
3323/* GALR Bit Fields */
3324#define ENET_GALR_GADDR2_MASK 0xFFFFFFFFu
3325#define ENET_GALR_GADDR2_SHIFT 0
3326#define ENET_GALR_GADDR2(x) (((uint32_t)(((uint32_t)(x))<<ENET_GALR_GADDR2_SHIFT))&ENET_GALR_GADDR2_MASK)
3327/* TFWR Bit Fields */
3328#define ENET_TFWR_TFWR_MASK 0x3Fu
3329#define ENET_TFWR_TFWR_SHIFT 0
3330#define ENET_TFWR_TFWR(x) (((uint32_t)(((uint32_t)(x))<<ENET_TFWR_TFWR_SHIFT))&ENET_TFWR_TFWR_MASK)
3331#define ENET_TFWR_STRFWD_MASK 0x100u
3332#define ENET_TFWR_STRFWD_SHIFT 8
3333/* RDSR Bit Fields */
3334#define ENET_RDSR_R_DES_START_MASK 0xFFFFFFF8u
3335#define ENET_RDSR_R_DES_START_SHIFT 3
3336#define ENET_RDSR_R_DES_START(x) (((uint32_t)(((uint32_t)(x))<<ENET_RDSR_R_DES_START_SHIFT))&ENET_RDSR_R_DES_START_MASK)
3337/* TDSR Bit Fields */
3338#define ENET_TDSR_X_DES_START_MASK 0xFFFFFFF8u
3339#define ENET_TDSR_X_DES_START_SHIFT 3
3340#define ENET_TDSR_X_DES_START(x) (((uint32_t)(((uint32_t)(x))<<ENET_TDSR_X_DES_START_SHIFT))&ENET_TDSR_X_DES_START_MASK)
3341/* MRBR Bit Fields */
3342#define ENET_MRBR_R_BUF_SIZE_MASK 0x3FF0u
3343#define ENET_MRBR_R_BUF_SIZE_SHIFT 4
3344#define ENET_MRBR_R_BUF_SIZE(x) (((uint32_t)(((uint32_t)(x))<<ENET_MRBR_R_BUF_SIZE_SHIFT))&ENET_MRBR_R_BUF_SIZE_MASK)
3345/* RSFL Bit Fields */
3346#define ENET_RSFL_RX_SECTION_FULL_MASK 0xFFu
3347#define ENET_RSFL_RX_SECTION_FULL_SHIFT 0
3348#define ENET_RSFL_RX_SECTION_FULL(x) (((uint32_t)(((uint32_t)(x))<<ENET_RSFL_RX_SECTION_FULL_SHIFT))&ENET_RSFL_RX_SECTION_FULL_MASK)
3349/* RSEM Bit Fields */
3350#define ENET_RSEM_RX_SECTION_EMPTY_MASK 0xFFu
3351#define ENET_RSEM_RX_SECTION_EMPTY_SHIFT 0
3352#define ENET_RSEM_RX_SECTION_EMPTY(x) (((uint32_t)(((uint32_t)(x))<<ENET_RSEM_RX_SECTION_EMPTY_SHIFT))&ENET_RSEM_RX_SECTION_EMPTY_MASK)
3353/* RAEM Bit Fields */
3354#define ENET_RAEM_RX_ALMOST_EMPTY_MASK 0xFFu
3355#define ENET_RAEM_RX_ALMOST_EMPTY_SHIFT 0
3356#define ENET_RAEM_RX_ALMOST_EMPTY(x) (((uint32_t)(((uint32_t)(x))<<ENET_RAEM_RX_ALMOST_EMPTY_SHIFT))&ENET_RAEM_RX_ALMOST_EMPTY_MASK)
3357/* RAFL Bit Fields */
3358#define ENET_RAFL_RX_ALMOST_FULL_MASK 0xFFu
3359#define ENET_RAFL_RX_ALMOST_FULL_SHIFT 0
3360#define ENET_RAFL_RX_ALMOST_FULL(x) (((uint32_t)(((uint32_t)(x))<<ENET_RAFL_RX_ALMOST_FULL_SHIFT))&ENET_RAFL_RX_ALMOST_FULL_MASK)
3361/* TSEM Bit Fields */
3362#define ENET_TSEM_TX_SECTION_EMPTY_MASK 0xFFu
3363#define ENET_TSEM_TX_SECTION_EMPTY_SHIFT 0
3364#define ENET_TSEM_TX_SECTION_EMPTY(x) (((uint32_t)(((uint32_t)(x))<<ENET_TSEM_TX_SECTION_EMPTY_SHIFT))&ENET_TSEM_TX_SECTION_EMPTY_MASK)
3365/* TAEM Bit Fields */
3366#define ENET_TAEM_TX_ALMOST_EMPTY_MASK 0xFFu
3367#define ENET_TAEM_TX_ALMOST_EMPTY_SHIFT 0
3368#define ENET_TAEM_TX_ALMOST_EMPTY(x) (((uint32_t)(((uint32_t)(x))<<ENET_TAEM_TX_ALMOST_EMPTY_SHIFT))&ENET_TAEM_TX_ALMOST_EMPTY_MASK)
3369/* TAFL Bit Fields */
3370#define ENET_TAFL_TX_ALMOST_FULL_MASK 0xFFu
3371#define ENET_TAFL_TX_ALMOST_FULL_SHIFT 0
3372#define ENET_TAFL_TX_ALMOST_FULL(x) (((uint32_t)(((uint32_t)(x))<<ENET_TAFL_TX_ALMOST_FULL_SHIFT))&ENET_TAFL_TX_ALMOST_FULL_MASK)
3373/* TIPG Bit Fields */
3374#define ENET_TIPG_IPG_MASK 0x1Fu
3375#define ENET_TIPG_IPG_SHIFT 0
3376#define ENET_TIPG_IPG(x) (((uint32_t)(((uint32_t)(x))<<ENET_TIPG_IPG_SHIFT))&ENET_TIPG_IPG_MASK)
3377/* FTRL Bit Fields */
3378#define ENET_FTRL_TRUNC_FL_MASK 0x3FFFu
3379#define ENET_FTRL_TRUNC_FL_SHIFT 0
3380#define ENET_FTRL_TRUNC_FL(x) (((uint32_t)(((uint32_t)(x))<<ENET_FTRL_TRUNC_FL_SHIFT))&ENET_FTRL_TRUNC_FL_MASK)
3381/* TACC Bit Fields */
3382#define ENET_TACC_SHIFT16_MASK 0x1u
3383#define ENET_TACC_SHIFT16_SHIFT 0
3384#define ENET_TACC_IPCHK_MASK 0x8u
3385#define ENET_TACC_IPCHK_SHIFT 3
3386#define ENET_TACC_PROCHK_MASK 0x10u
3387#define ENET_TACC_PROCHK_SHIFT 4
3388/* RACC Bit Fields */
3389#define ENET_RACC_PADREM_MASK 0x1u
3390#define ENET_RACC_PADREM_SHIFT 0
3391#define ENET_RACC_IPDIS_MASK 0x2u
3392#define ENET_RACC_IPDIS_SHIFT 1
3393#define ENET_RACC_PRODIS_MASK 0x4u
3394#define ENET_RACC_PRODIS_SHIFT 2
3395#define ENET_RACC_LINEDIS_MASK 0x40u
3396#define ENET_RACC_LINEDIS_SHIFT 6
3397#define ENET_RACC_SHIFT16_MASK 0x80u
3398#define ENET_RACC_SHIFT16_SHIFT 7
3399/* ATCR Bit Fields */
3400#define ENET_ATCR_EN_MASK 0x1u
3401#define ENET_ATCR_EN_SHIFT 0
3402#define ENET_ATCR_OFFEN_MASK 0x4u
3403#define ENET_ATCR_OFFEN_SHIFT 2
3404#define ENET_ATCR_OFFRST_MASK 0x8u
3405#define ENET_ATCR_OFFRST_SHIFT 3
3406#define ENET_ATCR_PEREN_MASK 0x10u
3407#define ENET_ATCR_PEREN_SHIFT 4
3408#define ENET_ATCR_PINPER_MASK 0x80u
3409#define ENET_ATCR_PINPER_SHIFT 7
3410#define ENET_ATCR_RESTART_MASK 0x200u
3411#define ENET_ATCR_RESTART_SHIFT 9
3412#define ENET_ATCR_CAPTURE_MASK 0x800u
3413#define ENET_ATCR_CAPTURE_SHIFT 11
3414#define ENET_ATCR_SLAVE_MASK 0x2000u
3415#define ENET_ATCR_SLAVE_SHIFT 13
3416/* ATVR Bit Fields */
3417#define ENET_ATVR_ATIME_MASK 0xFFFFFFFFu
3418#define ENET_ATVR_ATIME_SHIFT 0
3419#define ENET_ATVR_ATIME(x) (((uint32_t)(((uint32_t)(x))<<ENET_ATVR_ATIME_SHIFT))&ENET_ATVR_ATIME_MASK)
3420/* ATOFF Bit Fields */
3421#define ENET_ATOFF_OFFSET_MASK 0xFFFFFFFFu
3422#define ENET_ATOFF_OFFSET_SHIFT 0
3423#define ENET_ATOFF_OFFSET(x) (((uint32_t)(((uint32_t)(x))<<ENET_ATOFF_OFFSET_SHIFT))&ENET_ATOFF_OFFSET_MASK)
3424/* ATPER Bit Fields */
3425#define ENET_ATPER_PERIOD_MASK 0xFFFFFFFFu
3426#define ENET_ATPER_PERIOD_SHIFT 0
3427#define ENET_ATPER_PERIOD(x) (((uint32_t)(((uint32_t)(x))<<ENET_ATPER_PERIOD_SHIFT))&ENET_ATPER_PERIOD_MASK)
3428/* ATCOR Bit Fields */
3429#define ENET_ATCOR_COR_MASK 0x7FFFFFFFu
3430#define ENET_ATCOR_COR_SHIFT 0
3431#define ENET_ATCOR_COR(x) (((uint32_t)(((uint32_t)(x))<<ENET_ATCOR_COR_SHIFT))&ENET_ATCOR_COR_MASK)
3432/* ATINC Bit Fields */
3433#define ENET_ATINC_INC_MASK 0x7Fu
3434#define ENET_ATINC_INC_SHIFT 0
3435#define ENET_ATINC_INC(x) (((uint32_t)(((uint32_t)(x))<<ENET_ATINC_INC_SHIFT))&ENET_ATINC_INC_MASK)
3436#define ENET_ATINC_INC_CORR_MASK 0x7F00u
3437#define ENET_ATINC_INC_CORR_SHIFT 8
3438#define ENET_ATINC_INC_CORR(x) (((uint32_t)(((uint32_t)(x))<<ENET_ATINC_INC_CORR_SHIFT))&ENET_ATINC_INC_CORR_MASK)
3439/* ATSTMP Bit Fields */
3440#define ENET_ATSTMP_TIMESTAMP_MASK 0xFFFFFFFFu
3441#define ENET_ATSTMP_TIMESTAMP_SHIFT 0
3442#define ENET_ATSTMP_TIMESTAMP(x) (((uint32_t)(((uint32_t)(x))<<ENET_ATSTMP_TIMESTAMP_SHIFT))&ENET_ATSTMP_TIMESTAMP_MASK)
3443/* TGSR Bit Fields */
3444#define ENET_TGSR_TF0_MASK 0x1u
3445#define ENET_TGSR_TF0_SHIFT 0
3446#define ENET_TGSR_TF1_MASK 0x2u
3447#define ENET_TGSR_TF1_SHIFT 1
3448#define ENET_TGSR_TF2_MASK 0x4u
3449#define ENET_TGSR_TF2_SHIFT 2
3450#define ENET_TGSR_TF3_MASK 0x8u
3451#define ENET_TGSR_TF3_SHIFT 3
3452/* TCSR Bit Fields */
3453#define ENET_TCSR_TDRE_MASK 0x1u
3454#define ENET_TCSR_TDRE_SHIFT 0
3455#define ENET_TCSR_TMODE_MASK 0x3Cu
3456#define ENET_TCSR_TMODE_SHIFT 2
3457#define ENET_TCSR_TMODE(x) (((uint32_t)(((uint32_t)(x))<<ENET_TCSR_TMODE_SHIFT))&ENET_TCSR_TMODE_MASK)
3458#define ENET_TCSR_TIE_MASK 0x40u
3459#define ENET_TCSR_TIE_SHIFT 6
3460#define ENET_TCSR_TF_MASK 0x80u
3461#define ENET_TCSR_TF_SHIFT 7
3462/* TCCR Bit Fields */
3463#define ENET_TCCR_TCC_MASK 0xFFFFFFFFu
3464#define ENET_TCCR_TCC_SHIFT 0
3465#define ENET_TCCR_TCC(x) (((uint32_t)(((uint32_t)(x))<<ENET_TCCR_TCC_SHIFT))&ENET_TCCR_TCC_MASK)
3466
3467 /* end of group ENET_Register_Masks */
3468
3469
3470/* ENET - Peripheral instance base addresses */
3472#define ENET_BASE (0x400C0000u)
3474#define ENET ((ENET_Type *)ENET_BASE)
3475
3476 /* end of group ENET_Peripheral_Access_Layer */
3477
3478
3479/* ----------------------------------------------------------------------------
3480 -- EWM Peripheral Access Layer
3481 ---------------------------------------------------------------------------- */
3482
3487typedef struct {
3488 __IO uint8_t CTRL;
3489 __O uint8_t SERV;
3490 __IO uint8_t CMPL;
3491 __IO uint8_t CMPH;
3492} EWM_Type;
3493
3494/* ----------------------------------------------------------------------------
3495 -- EWM Register Masks
3496 ---------------------------------------------------------------------------- */
3497
3501/* CTRL Bit Fields */
3502#define EWM_CTRL_EWMEN_MASK 0x1u
3503#define EWM_CTRL_EWMEN_SHIFT 0
3504#define EWM_CTRL_ASSIN_MASK 0x2u
3505#define EWM_CTRL_ASSIN_SHIFT 1
3506#define EWM_CTRL_INEN_MASK 0x4u
3507#define EWM_CTRL_INEN_SHIFT 2
3508/* SERV Bit Fields */
3509#define EWM_SERV_SERVICE_MASK 0xFFu
3510#define EWM_SERV_SERVICE_SHIFT 0
3511#define EWM_SERV_SERVICE(x) (((uint8_t)(((uint8_t)(x))<<EWM_SERV_SERVICE_SHIFT))&EWM_SERV_SERVICE_MASK)
3512/* CMPL Bit Fields */
3513#define EWM_CMPL_COMPAREL_MASK 0xFFu
3514#define EWM_CMPL_COMPAREL_SHIFT 0
3515#define EWM_CMPL_COMPAREL(x) (((uint8_t)(((uint8_t)(x))<<EWM_CMPL_COMPAREL_SHIFT))&EWM_CMPL_COMPAREL_MASK)
3516/* CMPH Bit Fields */
3517#define EWM_CMPH_COMPAREH_MASK 0xFFu
3518#define EWM_CMPH_COMPAREH_SHIFT 0
3519#define EWM_CMPH_COMPAREH(x) (((uint8_t)(((uint8_t)(x))<<EWM_CMPH_COMPAREH_SHIFT))&EWM_CMPH_COMPAREH_MASK)
3520
3521 /* end of group EWM_Register_Masks */
3522
3523
3524/* EWM - Peripheral instance base addresses */
3526#define EWM_BASE (0x40061000u)
3528#define EWM ((EWM_Type *)EWM_BASE)
3529
3530 /* end of group EWM_Peripheral_Access_Layer */
3531
3532
3533/* ----------------------------------------------------------------------------
3534 -- FB Peripheral Access Layer
3535 ---------------------------------------------------------------------------- */
3536
3541typedef struct {
3542 struct { /* offset: 0x0, array step: 0xC */
3543 __IO uint32_t CSAR;
3544 __IO uint32_t CSMR;
3545 __IO uint32_t CSCR;
3546 } CS[6];
3547 uint8_t RESERVED_0[24];
3548 __IO uint32_t CSPMCR;
3549} FB_Type;
3550
3551/* ----------------------------------------------------------------------------
3552 -- FB Register Masks
3553 ---------------------------------------------------------------------------- */
3554
3558/* CSAR Bit Fields */
3559#define FB_CSAR_BA_MASK 0xFFFF0000u
3560#define FB_CSAR_BA_SHIFT 16
3561#define FB_CSAR_BA(x) (((uint32_t)(((uint32_t)(x))<<FB_CSAR_BA_SHIFT))&FB_CSAR_BA_MASK)
3562/* CSMR Bit Fields */
3563#define FB_CSMR_V_MASK 0x1u
3564#define FB_CSMR_V_SHIFT 0
3565#define FB_CSMR_WP_MASK 0x100u
3566#define FB_CSMR_WP_SHIFT 8
3567#define FB_CSMR_BAM_MASK 0xFFFF0000u
3568#define FB_CSMR_BAM_SHIFT 16
3569#define FB_CSMR_BAM(x) (((uint32_t)(((uint32_t)(x))<<FB_CSMR_BAM_SHIFT))&FB_CSMR_BAM_MASK)
3570/* CSCR Bit Fields */
3571#define FB_CSCR_BSTW_MASK 0x8u
3572#define FB_CSCR_BSTW_SHIFT 3
3573#define FB_CSCR_BSTR_MASK 0x10u
3574#define FB_CSCR_BSTR_SHIFT 4
3575#define FB_CSCR_BEM_MASK 0x20u
3576#define FB_CSCR_BEM_SHIFT 5
3577#define FB_CSCR_PS_MASK 0xC0u
3578#define FB_CSCR_PS_SHIFT 6
3579#define FB_CSCR_PS(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_PS_SHIFT))&FB_CSCR_PS_MASK)
3580#define FB_CSCR_AA_MASK 0x100u
3581#define FB_CSCR_AA_SHIFT 8
3582#define FB_CSCR_BLS_MASK 0x200u
3583#define FB_CSCR_BLS_SHIFT 9
3584#define FB_CSCR_WS_MASK 0xFC00u
3585#define FB_CSCR_WS_SHIFT 10
3586#define FB_CSCR_WS(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_WS_SHIFT))&FB_CSCR_WS_MASK)
3587#define FB_CSCR_WRAH_MASK 0x30000u
3588#define FB_CSCR_WRAH_SHIFT 16
3589#define FB_CSCR_WRAH(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_WRAH_SHIFT))&FB_CSCR_WRAH_MASK)
3590#define FB_CSCR_RDAH_MASK 0xC0000u
3591#define FB_CSCR_RDAH_SHIFT 18
3592#define FB_CSCR_RDAH(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_RDAH_SHIFT))&FB_CSCR_RDAH_MASK)
3593#define FB_CSCR_ASET_MASK 0x300000u
3594#define FB_CSCR_ASET_SHIFT 20
3595#define FB_CSCR_ASET(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_ASET_SHIFT))&FB_CSCR_ASET_MASK)
3596#define FB_CSCR_EXALE_MASK 0x400000u
3597#define FB_CSCR_EXALE_SHIFT 22
3598#define FB_CSCR_SWSEN_MASK 0x800000u
3599#define FB_CSCR_SWSEN_SHIFT 23
3600#define FB_CSCR_SWS_MASK 0xFC000000u
3601#define FB_CSCR_SWS_SHIFT 26
3602#define FB_CSCR_SWS(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_SWS_SHIFT))&FB_CSCR_SWS_MASK)
3603/* CSPMCR Bit Fields */
3604#define FB_CSPMCR_GROUP5_MASK 0xF000u
3605#define FB_CSPMCR_GROUP5_SHIFT 12
3606#define FB_CSPMCR_GROUP5(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP5_SHIFT))&FB_CSPMCR_GROUP5_MASK)
3607#define FB_CSPMCR_GROUP4_MASK 0xF0000u
3608#define FB_CSPMCR_GROUP4_SHIFT 16
3609#define FB_CSPMCR_GROUP4(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP4_SHIFT))&FB_CSPMCR_GROUP4_MASK)
3610#define FB_CSPMCR_GROUP3_MASK 0xF00000u
3611#define FB_CSPMCR_GROUP3_SHIFT 20
3612#define FB_CSPMCR_GROUP3(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP3_SHIFT))&FB_CSPMCR_GROUP3_MASK)
3613#define FB_CSPMCR_GROUP2_MASK 0xF000000u
3614#define FB_CSPMCR_GROUP2_SHIFT 24
3615#define FB_CSPMCR_GROUP2(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP2_SHIFT))&FB_CSPMCR_GROUP2_MASK)
3616#define FB_CSPMCR_GROUP1_MASK 0xF0000000u
3617#define FB_CSPMCR_GROUP1_SHIFT 28
3618#define FB_CSPMCR_GROUP1(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP1_SHIFT))&FB_CSPMCR_GROUP1_MASK)
3619
3620 /* end of group FB_Register_Masks */
3621
3622
3623/* FB - Peripheral instance base addresses */
3625#define FB_BASE (0x4000C000u)
3627#define FB ((FB_Type *)FB_BASE)
3628
3629 /* end of group FB_Peripheral_Access_Layer */
3630
3631
3632/* ----------------------------------------------------------------------------
3633 -- FMC Peripheral Access Layer
3634 ---------------------------------------------------------------------------- */
3635
3640typedef struct {
3641 __IO uint32_t PFAPR;
3642 __IO uint32_t PFB0CR;
3643 __IO uint32_t PFB1CR;
3644 uint8_t RESERVED_0[244];
3645 __IO uint32_t TAGVD[4][8];
3646 uint8_t RESERVED_1[128];
3647 struct { /* offset: 0x200, array step: index*0x40, index2*0x8 */
3648 __IO uint32_t DATA_U;
3649 __IO uint32_t DATA_L;
3650 } SET[4][8];
3651} FMC_Type;
3652
3653/* ----------------------------------------------------------------------------
3654 -- FMC Register Masks
3655 ---------------------------------------------------------------------------- */
3656
3660/* PFAPR Bit Fields */
3661#define FMC_PFAPR_M0AP_MASK 0x3u
3662#define FMC_PFAPR_M0AP_SHIFT 0
3663#define FMC_PFAPR_M0AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M0AP_SHIFT))&FMC_PFAPR_M0AP_MASK)
3664#define FMC_PFAPR_M1AP_MASK 0xCu
3665#define FMC_PFAPR_M1AP_SHIFT 2
3666#define FMC_PFAPR_M1AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M1AP_SHIFT))&FMC_PFAPR_M1AP_MASK)
3667#define FMC_PFAPR_M2AP_MASK 0x30u
3668#define FMC_PFAPR_M2AP_SHIFT 4
3669#define FMC_PFAPR_M2AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M2AP_SHIFT))&FMC_PFAPR_M2AP_MASK)
3670#define FMC_PFAPR_M3AP_MASK 0xC0u
3671#define FMC_PFAPR_M3AP_SHIFT 6
3672#define FMC_PFAPR_M3AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M3AP_SHIFT))&FMC_PFAPR_M3AP_MASK)
3673#define FMC_PFAPR_M4AP_MASK 0x300u
3674#define FMC_PFAPR_M4AP_SHIFT 8
3675#define FMC_PFAPR_M4AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M4AP_SHIFT))&FMC_PFAPR_M4AP_MASK)
3676#define FMC_PFAPR_M5AP_MASK 0xC00u
3677#define FMC_PFAPR_M5AP_SHIFT 10
3678#define FMC_PFAPR_M5AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M5AP_SHIFT))&FMC_PFAPR_M5AP_MASK)
3679#define FMC_PFAPR_M6AP_MASK 0x3000u
3680#define FMC_PFAPR_M6AP_SHIFT 12
3681#define FMC_PFAPR_M6AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M6AP_SHIFT))&FMC_PFAPR_M6AP_MASK)
3682#define FMC_PFAPR_M7AP_MASK 0xC000u
3683#define FMC_PFAPR_M7AP_SHIFT 14
3684#define FMC_PFAPR_M7AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M7AP_SHIFT))&FMC_PFAPR_M7AP_MASK)
3685#define FMC_PFAPR_M0PFD_MASK 0x10000u
3686#define FMC_PFAPR_M0PFD_SHIFT 16
3687#define FMC_PFAPR_M1PFD_MASK 0x20000u
3688#define FMC_PFAPR_M1PFD_SHIFT 17
3689#define FMC_PFAPR_M2PFD_MASK 0x40000u
3690#define FMC_PFAPR_M2PFD_SHIFT 18
3691#define FMC_PFAPR_M3PFD_MASK 0x80000u
3692#define FMC_PFAPR_M3PFD_SHIFT 19
3693#define FMC_PFAPR_M4PFD_MASK 0x100000u
3694#define FMC_PFAPR_M4PFD_SHIFT 20
3695#define FMC_PFAPR_M5PFD_MASK 0x200000u
3696#define FMC_PFAPR_M5PFD_SHIFT 21
3697#define FMC_PFAPR_M6PFD_MASK 0x400000u
3698#define FMC_PFAPR_M6PFD_SHIFT 22
3699#define FMC_PFAPR_M7PFD_MASK 0x800000u
3700#define FMC_PFAPR_M7PFD_SHIFT 23
3701/* PFB0CR Bit Fields */
3702#define FMC_PFB0CR_B0SEBE_MASK 0x1u
3703#define FMC_PFB0CR_B0SEBE_SHIFT 0
3704#define FMC_PFB0CR_B0IPE_MASK 0x2u
3705#define FMC_PFB0CR_B0IPE_SHIFT 1
3706#define FMC_PFB0CR_B0DPE_MASK 0x4u
3707#define FMC_PFB0CR_B0DPE_SHIFT 2
3708#define FMC_PFB0CR_B0ICE_MASK 0x8u
3709#define FMC_PFB0CR_B0ICE_SHIFT 3
3710#define FMC_PFB0CR_B0DCE_MASK 0x10u
3711#define FMC_PFB0CR_B0DCE_SHIFT 4
3712#define FMC_PFB0CR_CRC_MASK 0xE0u
3713#define FMC_PFB0CR_CRC_SHIFT 5
3714#define FMC_PFB0CR_CRC(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_CRC_SHIFT))&FMC_PFB0CR_CRC_MASK)
3715#define FMC_PFB0CR_B0MW_MASK 0x60000u
3716#define FMC_PFB0CR_B0MW_SHIFT 17
3717#define FMC_PFB0CR_B0MW(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_B0MW_SHIFT))&FMC_PFB0CR_B0MW_MASK)
3718#define FMC_PFB0CR_S_B_INV_MASK 0x80000u
3719#define FMC_PFB0CR_S_B_INV_SHIFT 19
3720#define FMC_PFB0CR_CINV_WAY_MASK 0xF00000u
3721#define FMC_PFB0CR_CINV_WAY_SHIFT 20
3722#define FMC_PFB0CR_CINV_WAY(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_CINV_WAY_SHIFT))&FMC_PFB0CR_CINV_WAY_MASK)
3723#define FMC_PFB0CR_CLCK_WAY_MASK 0xF000000u
3724#define FMC_PFB0CR_CLCK_WAY_SHIFT 24
3725#define FMC_PFB0CR_CLCK_WAY(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_CLCK_WAY_SHIFT))&FMC_PFB0CR_CLCK_WAY_MASK)
3726#define FMC_PFB0CR_B0RWSC_MASK 0xF0000000u
3727#define FMC_PFB0CR_B0RWSC_SHIFT 28
3728#define FMC_PFB0CR_B0RWSC(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_B0RWSC_SHIFT))&FMC_PFB0CR_B0RWSC_MASK)
3729/* PFB1CR Bit Fields */
3730#define FMC_PFB1CR_B1SEBE_MASK 0x1u
3731#define FMC_PFB1CR_B1SEBE_SHIFT 0
3732#define FMC_PFB1CR_B1IPE_MASK 0x2u
3733#define FMC_PFB1CR_B1IPE_SHIFT 1
3734#define FMC_PFB1CR_B1DPE_MASK 0x4u
3735#define FMC_PFB1CR_B1DPE_SHIFT 2
3736#define FMC_PFB1CR_B1ICE_MASK 0x8u
3737#define FMC_PFB1CR_B1ICE_SHIFT 3
3738#define FMC_PFB1CR_B1DCE_MASK 0x10u
3739#define FMC_PFB1CR_B1DCE_SHIFT 4
3740#define FMC_PFB1CR_B1MW_MASK 0x60000u
3741#define FMC_PFB1CR_B1MW_SHIFT 17
3742#define FMC_PFB1CR_B1MW(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB1CR_B1MW_SHIFT))&FMC_PFB1CR_B1MW_MASK)
3743#define FMC_PFB1CR_B1RWSC_MASK 0xF0000000u
3744#define FMC_PFB1CR_B1RWSC_SHIFT 28
3745#define FMC_PFB1CR_B1RWSC(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB1CR_B1RWSC_SHIFT))&FMC_PFB1CR_B1RWSC_MASK)
3746/* TAGVD Bit Fields */
3747#define FMC_TAGVD_valid_MASK 0x1u
3748#define FMC_TAGVD_valid_SHIFT 0
3749#define FMC_TAGVD_tag_MASK 0x7FFC0u
3750#define FMC_TAGVD_tag_SHIFT 6
3751#define FMC_TAGVD_tag(x) (((uint32_t)(((uint32_t)(x))<<FMC_TAGVD_tag_SHIFT))&FMC_TAGVD_tag_MASK)
3752/* DATA_U Bit Fields */
3753#define FMC_DATA_U_data_MASK 0xFFFFFFFFu
3754#define FMC_DATA_U_data_SHIFT 0
3755#define FMC_DATA_U_data(x) (((uint32_t)(((uint32_t)(x))<<FMC_DATA_U_data_SHIFT))&FMC_DATA_U_data_MASK)
3756/* DATA_L Bit Fields */
3757#define FMC_DATA_L_data_MASK 0xFFFFFFFFu
3758#define FMC_DATA_L_data_SHIFT 0
3759#define FMC_DATA_L_data(x) (((uint32_t)(((uint32_t)(x))<<FMC_DATA_L_data_SHIFT))&FMC_DATA_L_data_MASK)
3760
3761 /* end of group FMC_Register_Masks */
3762
3763
3764/* FMC - Peripheral instance base addresses */
3766#define FMC_BASE (0x4001F000u)
3768#define FMC ((FMC_Type *)FMC_BASE)
3769
3770 /* end of group FMC_Peripheral_Access_Layer */
3771
3772
3773/* ----------------------------------------------------------------------------
3774 -- FTFL Peripheral Access Layer
3775 ---------------------------------------------------------------------------- */
3776
3781typedef struct {
3782 __IO uint8_t FSTAT;
3783 __IO uint8_t FCNFG;
3784 __I uint8_t FSEC;
3785 __I uint8_t FOPT;
3786 __IO uint8_t FCCOB3;
3787 __IO uint8_t FCCOB2;
3788 __IO uint8_t FCCOB1;
3789 __IO uint8_t FCCOB0;
3790 __IO uint8_t FCCOB7;
3791 __IO uint8_t FCCOB6;
3792 __IO uint8_t FCCOB5;
3793 __IO uint8_t FCCOB4;
3794 __IO uint8_t FCCOBB;
3795 __IO uint8_t FCCOBA;
3796 __IO uint8_t FCCOB9;
3797 __IO uint8_t FCCOB8;
3798 __IO uint8_t FPROT3;
3799 __IO uint8_t FPROT2;
3800 __IO uint8_t FPROT1;
3801 __IO uint8_t FPROT0;
3802 uint8_t RESERVED_0[2];
3803 __IO uint8_t FEPROT;
3804 __IO uint8_t FDPROT;
3805} FTFL_Type;
3806
3807/* ----------------------------------------------------------------------------
3808 -- FTFL Register Masks
3809 ---------------------------------------------------------------------------- */
3810
3814/* FSTAT Bit Fields */
3815#define FTFL_FSTAT_MGSTAT0_MASK 0x1u
3816#define FTFL_FSTAT_MGSTAT0_SHIFT 0
3817#define FTFL_FSTAT_FPVIOL_MASK 0x10u
3818#define FTFL_FSTAT_FPVIOL_SHIFT 4
3819#define FTFL_FSTAT_ACCERR_MASK 0x20u
3820#define FTFL_FSTAT_ACCERR_SHIFT 5
3821#define FTFL_FSTAT_RDCOLERR_MASK 0x40u
3822#define FTFL_FSTAT_RDCOLERR_SHIFT 6
3823#define FTFL_FSTAT_CCIF_MASK 0x80u
3824#define FTFL_FSTAT_CCIF_SHIFT 7
3825/* FCNFG Bit Fields */
3826#define FTFL_FCNFG_EEERDY_MASK 0x1u
3827#define FTFL_FCNFG_EEERDY_SHIFT 0
3828#define FTFL_FCNFG_RAMRDY_MASK 0x2u
3829#define FTFL_FCNFG_RAMRDY_SHIFT 1
3830#define FTFL_FCNFG_PFLSH_MASK 0x4u
3831#define FTFL_FCNFG_PFLSH_SHIFT 2
3832#define FTFL_FCNFG_SWAP_MASK 0x8u
3833#define FTFL_FCNFG_SWAP_SHIFT 3
3834#define FTFL_FCNFG_ERSSUSP_MASK 0x10u
3835#define FTFL_FCNFG_ERSSUSP_SHIFT 4
3836#define FTFL_FCNFG_ERSAREQ_MASK 0x20u
3837#define FTFL_FCNFG_ERSAREQ_SHIFT 5
3838#define FTFL_FCNFG_RDCOLLIE_MASK 0x40u
3839#define FTFL_FCNFG_RDCOLLIE_SHIFT 6
3840#define FTFL_FCNFG_CCIE_MASK 0x80u
3841#define FTFL_FCNFG_CCIE_SHIFT 7
3842/* FSEC Bit Fields */
3843#define FTFL_FSEC_SEC_MASK 0x3u
3844#define FTFL_FSEC_SEC_SHIFT 0
3845#define FTFL_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FSEC_SEC_SHIFT))&FTFL_FSEC_SEC_MASK)
3846#define FTFL_FSEC_FSLACC_MASK 0xCu
3847#define FTFL_FSEC_FSLACC_SHIFT 2
3848#define FTFL_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FSEC_FSLACC_SHIFT))&FTFL_FSEC_FSLACC_MASK)
3849#define FTFL_FSEC_MEEN_MASK 0x30u
3850#define FTFL_FSEC_MEEN_SHIFT 4
3851#define FTFL_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FSEC_MEEN_SHIFT))&FTFL_FSEC_MEEN_MASK)
3852#define FTFL_FSEC_KEYEN_MASK 0xC0u
3853#define FTFL_FSEC_KEYEN_SHIFT 6
3854#define FTFL_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FSEC_KEYEN_SHIFT))&FTFL_FSEC_KEYEN_MASK)
3855/* FOPT Bit Fields */
3856#define FTFL_FOPT_OPT_MASK 0xFFu
3857#define FTFL_FOPT_OPT_SHIFT 0
3858#define FTFL_FOPT_OPT(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FOPT_OPT_SHIFT))&FTFL_FOPT_OPT_MASK)
3859/* FCCOB3 Bit Fields */
3860#define FTFL_FCCOB3_CCOBn_MASK 0xFFu
3861#define FTFL_FCCOB3_CCOBn_SHIFT 0
3862#define FTFL_FCCOB3_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB3_CCOBn_SHIFT))&FTFL_FCCOB3_CCOBn_MASK)
3863/* FCCOB2 Bit Fields */
3864#define FTFL_FCCOB2_CCOBn_MASK 0xFFu
3865#define FTFL_FCCOB2_CCOBn_SHIFT 0
3866#define FTFL_FCCOB2_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB2_CCOBn_SHIFT))&FTFL_FCCOB2_CCOBn_MASK)
3867/* FCCOB1 Bit Fields */
3868#define FTFL_FCCOB1_CCOBn_MASK 0xFFu
3869#define FTFL_FCCOB1_CCOBn_SHIFT 0
3870#define FTFL_FCCOB1_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB1_CCOBn_SHIFT))&FTFL_FCCOB1_CCOBn_MASK)
3871/* FCCOB0 Bit Fields */
3872#define FTFL_FCCOB0_CCOBn_MASK 0xFFu
3873#define FTFL_FCCOB0_CCOBn_SHIFT 0
3874#define FTFL_FCCOB0_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB0_CCOBn_SHIFT))&FTFL_FCCOB0_CCOBn_MASK)
3875/* FCCOB7 Bit Fields */
3876#define FTFL_FCCOB7_CCOBn_MASK 0xFFu
3877#define FTFL_FCCOB7_CCOBn_SHIFT 0
3878#define FTFL_FCCOB7_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB7_CCOBn_SHIFT))&FTFL_FCCOB7_CCOBn_MASK)
3879/* FCCOB6 Bit Fields */
3880#define FTFL_FCCOB6_CCOBn_MASK 0xFFu
3881#define FTFL_FCCOB6_CCOBn_SHIFT 0
3882#define FTFL_FCCOB6_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB6_CCOBn_SHIFT))&FTFL_FCCOB6_CCOBn_MASK)
3883/* FCCOB5 Bit Fields */
3884#define FTFL_FCCOB5_CCOBn_MASK 0xFFu
3885#define FTFL_FCCOB5_CCOBn_SHIFT 0
3886#define FTFL_FCCOB5_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB5_CCOBn_SHIFT))&FTFL_FCCOB5_CCOBn_MASK)
3887/* FCCOB4 Bit Fields */
3888#define FTFL_FCCOB4_CCOBn_MASK 0xFFu
3889#define FTFL_FCCOB4_CCOBn_SHIFT 0
3890#define FTFL_FCCOB4_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB4_CCOBn_SHIFT))&FTFL_FCCOB4_CCOBn_MASK)
3891/* FCCOBB Bit Fields */
3892#define FTFL_FCCOBB_CCOBn_MASK 0xFFu
3893#define FTFL_FCCOBB_CCOBn_SHIFT 0
3894#define FTFL_FCCOBB_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOBB_CCOBn_SHIFT))&FTFL_FCCOBB_CCOBn_MASK)
3895/* FCCOBA Bit Fields */
3896#define FTFL_FCCOBA_CCOBn_MASK 0xFFu
3897#define FTFL_FCCOBA_CCOBn_SHIFT 0
3898#define FTFL_FCCOBA_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOBA_CCOBn_SHIFT))&FTFL_FCCOBA_CCOBn_MASK)
3899/* FCCOB9 Bit Fields */
3900#define FTFL_FCCOB9_CCOBn_MASK 0xFFu
3901#define FTFL_FCCOB9_CCOBn_SHIFT 0
3902#define FTFL_FCCOB9_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB9_CCOBn_SHIFT))&FTFL_FCCOB9_CCOBn_MASK)
3903/* FCCOB8 Bit Fields */
3904#define FTFL_FCCOB8_CCOBn_MASK 0xFFu
3905#define FTFL_FCCOB8_CCOBn_SHIFT 0
3906#define FTFL_FCCOB8_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FCCOB8_CCOBn_SHIFT))&FTFL_FCCOB8_CCOBn_MASK)
3907/* FPROT3 Bit Fields */
3908#define FTFL_FPROT3_PROT_MASK 0xFFu
3909#define FTFL_FPROT3_PROT_SHIFT 0
3910#define FTFL_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FPROT3_PROT_SHIFT))&FTFL_FPROT3_PROT_MASK)
3911/* FPROT2 Bit Fields */
3912#define FTFL_FPROT2_PROT_MASK 0xFFu
3913#define FTFL_FPROT2_PROT_SHIFT 0
3914#define FTFL_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FPROT2_PROT_SHIFT))&FTFL_FPROT2_PROT_MASK)
3915/* FPROT1 Bit Fields */
3916#define FTFL_FPROT1_PROT_MASK 0xFFu
3917#define FTFL_FPROT1_PROT_SHIFT 0
3918#define FTFL_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FPROT1_PROT_SHIFT))&FTFL_FPROT1_PROT_MASK)
3919/* FPROT0 Bit Fields */
3920#define FTFL_FPROT0_PROT_MASK 0xFFu
3921#define FTFL_FPROT0_PROT_SHIFT 0
3922#define FTFL_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FPROT0_PROT_SHIFT))&FTFL_FPROT0_PROT_MASK)
3923/* FEPROT Bit Fields */
3924#define FTFL_FEPROT_EPROT_MASK 0xFFu
3925#define FTFL_FEPROT_EPROT_SHIFT 0
3926#define FTFL_FEPROT_EPROT(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FEPROT_EPROT_SHIFT))&FTFL_FEPROT_EPROT_MASK)
3927/* FDPROT Bit Fields */
3928#define FTFL_FDPROT_DPROT_MASK 0xFFu
3929#define FTFL_FDPROT_DPROT_SHIFT 0
3930#define FTFL_FDPROT_DPROT(x) (((uint8_t)(((uint8_t)(x))<<FTFL_FDPROT_DPROT_SHIFT))&FTFL_FDPROT_DPROT_MASK)
3931
3932 /* end of group FTFL_Register_Masks */
3933
3934
3935/* FTFL - Peripheral instance base addresses */
3937#define FTFL_BASE (0x40020000u)
3939#define FTFL ((FTFL_Type *)FTFL_BASE)
3940
3941 /* end of group FTFL_Peripheral_Access_Layer */
3942
3943
3944/* ----------------------------------------------------------------------------
3945 -- NV Peripheral Access Layer
3946 ---------------------------------------------------------------------------- */
3947
3952typedef struct {
3953 __I uint8_t BACKKEY3;
3954 __I uint8_t BACKKEY2;
3955 __I uint8_t BACKKEY1;
3956 __I uint8_t BACKKEY0;
3957 __I uint8_t BACKKEY7;
3958 __I uint8_t BACKKEY6;
3959 __I uint8_t BACKKEY5;
3960 __I uint8_t BACKKEY4;
3961 __I uint8_t FPROT3;
3962 __I uint8_t FPROT2;
3963 __I uint8_t FPROT1;
3964 __I uint8_t FPROT0;
3965 __I uint8_t FSEC;
3966 __I uint8_t FOPT;
3967 __I uint8_t FEPROT;
3968 __I uint8_t FDPROT;
3969} NV_Type;
3970
3971/* ----------------------------------------------------------------------------
3972 -- NV Register Masks
3973 ---------------------------------------------------------------------------- */
3974
3978/* BACKKEY3 Bit Fields */
3979#define NV_BACKKEY3_KEY_MASK 0xFFu
3980#define NV_BACKKEY3_KEY_SHIFT 0
3981#define NV_BACKKEY3_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY3_KEY_SHIFT))&NV_BACKKEY3_KEY_MASK)
3982/* BACKKEY2 Bit Fields */
3983#define NV_BACKKEY2_KEY_MASK 0xFFu
3984#define NV_BACKKEY2_KEY_SHIFT 0
3985#define NV_BACKKEY2_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY2_KEY_SHIFT))&NV_BACKKEY2_KEY_MASK)
3986/* BACKKEY1 Bit Fields */
3987#define NV_BACKKEY1_KEY_MASK 0xFFu
3988#define NV_BACKKEY1_KEY_SHIFT 0
3989#define NV_BACKKEY1_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY1_KEY_SHIFT))&NV_BACKKEY1_KEY_MASK)
3990/* BACKKEY0 Bit Fields */
3991#define NV_BACKKEY0_KEY_MASK 0xFFu
3992#define NV_BACKKEY0_KEY_SHIFT 0
3993#define NV_BACKKEY0_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY0_KEY_SHIFT))&NV_BACKKEY0_KEY_MASK)
3994/* BACKKEY7 Bit Fields */
3995#define NV_BACKKEY7_KEY_MASK 0xFFu
3996#define NV_BACKKEY7_KEY_SHIFT 0
3997#define NV_BACKKEY7_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY7_KEY_SHIFT))&NV_BACKKEY7_KEY_MASK)
3998/* BACKKEY6 Bit Fields */
3999#define NV_BACKKEY6_KEY_MASK 0xFFu
4000#define NV_BACKKEY6_KEY_SHIFT 0
4001#define NV_BACKKEY6_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY6_KEY_SHIFT))&NV_BACKKEY6_KEY_MASK)
4002/* BACKKEY5 Bit Fields */
4003#define NV_BACKKEY5_KEY_MASK 0xFFu
4004#define NV_BACKKEY5_KEY_SHIFT 0
4005#define NV_BACKKEY5_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY5_KEY_SHIFT))&NV_BACKKEY5_KEY_MASK)
4006/* BACKKEY4 Bit Fields */
4007#define NV_BACKKEY4_KEY_MASK 0xFFu
4008#define NV_BACKKEY4_KEY_SHIFT 0
4009#define NV_BACKKEY4_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY4_KEY_SHIFT))&NV_BACKKEY4_KEY_MASK)
4010/* FPROT3 Bit Fields */
4011#define NV_FPROT3_PROT_MASK 0xFFu
4012#define NV_FPROT3_PROT_SHIFT 0
4013#define NV_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FPROT3_PROT_SHIFT))&NV_FPROT3_PROT_MASK)
4014/* FPROT2 Bit Fields */
4015#define NV_FPROT2_PROT_MASK 0xFFu
4016#define NV_FPROT2_PROT_SHIFT 0
4017#define NV_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FPROT2_PROT_SHIFT))&NV_FPROT2_PROT_MASK)
4018/* FPROT1 Bit Fields */
4019#define NV_FPROT1_PROT_MASK 0xFFu
4020#define NV_FPROT1_PROT_SHIFT 0
4021#define NV_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FPROT1_PROT_SHIFT))&NV_FPROT1_PROT_MASK)
4022/* FPROT0 Bit Fields */
4023#define NV_FPROT0_PROT_MASK 0xFFu
4024#define NV_FPROT0_PROT_SHIFT 0
4025#define NV_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FPROT0_PROT_SHIFT))&NV_FPROT0_PROT_MASK)
4026/* FSEC Bit Fields */
4027#define NV_FSEC_SEC_MASK 0x3u
4028#define NV_FSEC_SEC_SHIFT 0
4029#define NV_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x))<<NV_FSEC_SEC_SHIFT))&NV_FSEC_SEC_MASK)
4030#define NV_FSEC_FSLACC_MASK 0xCu
4031#define NV_FSEC_FSLACC_SHIFT 2
4032#define NV_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x))<<NV_FSEC_FSLACC_SHIFT))&NV_FSEC_FSLACC_MASK)
4033#define NV_FSEC_MEEN_MASK 0x30u
4034#define NV_FSEC_MEEN_SHIFT 4
4035#define NV_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x))<<NV_FSEC_MEEN_SHIFT))&NV_FSEC_MEEN_MASK)
4036#define NV_FSEC_KEYEN_MASK 0xC0u
4037#define NV_FSEC_KEYEN_SHIFT 6
4038#define NV_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x))<<NV_FSEC_KEYEN_SHIFT))&NV_FSEC_KEYEN_MASK)
4039/* FOPT Bit Fields */
4040#define NV_FOPT_LPBOOT_MASK 0x1u
4041#define NV_FOPT_LPBOOT_SHIFT 0
4042#define NV_FOPT_EZPORT_DIS_MASK 0x2u
4043#define NV_FOPT_EZPORT_DIS_SHIFT 1
4044/* FEPROT Bit Fields */
4045#define NV_FEPROT_EPROT_MASK 0xFFu
4046#define NV_FEPROT_EPROT_SHIFT 0
4047#define NV_FEPROT_EPROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FEPROT_EPROT_SHIFT))&NV_FEPROT_EPROT_MASK)
4048/* FDPROT Bit Fields */
4049#define NV_FDPROT_DPROT_MASK 0xFFu
4050#define NV_FDPROT_DPROT_SHIFT 0
4051#define NV_FDPROT_DPROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FDPROT_DPROT_SHIFT))&NV_FDPROT_DPROT_MASK)
4052
4053 /* end of group NV_Register_Masks */
4054
4055
4056/* NV - Peripheral instance base addresses */
4058#define FTFL_FlashConfig_BASE (0x400u)
4060#define FTFL_FlashConfig ((NV_Type *)FTFL_FlashConfig_BASE)
4061
4062 /* end of group NV_Peripheral_Access_Layer */
4063
4064
4065/* ----------------------------------------------------------------------------
4066 -- FTM Peripheral Access Layer
4067 ---------------------------------------------------------------------------- */
4068
4073typedef struct {
4074 __IO uint32_t SC;
4075 __IO uint32_t CNT;
4076 __IO uint32_t MOD;
4077 struct { /* offset: 0xC, array step: 0x8 */
4078 __IO uint32_t CnSC;
4079 __IO uint32_t CnV;
4080 } CONTROLS[8];
4081 __IO uint32_t CNTIN;
4082 __I uint32_t STATUS;
4083 __IO uint32_t MODE;
4084 __IO uint32_t SYNC;
4085 __IO uint32_t OUTINIT;
4086 __IO uint32_t OUTMASK;
4087 __IO uint32_t COMBINE;
4088 __IO uint32_t DEADTIME;
4089 __IO uint32_t EXTTRIG;
4090 __IO uint32_t POL;
4091 __IO uint32_t FMS;
4092 __IO uint32_t FILTER;
4093 __IO uint32_t FLTCTRL;
4094 __IO uint32_t QDCTRL;
4095 __IO uint32_t CONF;
4096 __IO uint32_t FLTPOL;
4097 __IO uint32_t SYNCONF;
4098 __IO uint32_t INVCTRL;
4099 __IO uint32_t SWOCTRL;
4100 __IO uint32_t PWMLOAD;
4101} FTM_Type;
4102
4103/* ----------------------------------------------------------------------------
4104 -- FTM Register Masks
4105 ---------------------------------------------------------------------------- */
4106
4110/* SC Bit Fields */
4111#define FTM_SC_PS_MASK 0x7u
4112#define FTM_SC_PS_SHIFT 0
4113#define FTM_SC_PS(x) (((uint32_t)(((uint32_t)(x))<<FTM_SC_PS_SHIFT))&FTM_SC_PS_MASK)
4114#define FTM_SC_CLKS_MASK 0x18u
4115#define FTM_SC_CLKS_SHIFT 3
4116#define FTM_SC_CLKS(x) (((uint32_t)(((uint32_t)(x))<<FTM_SC_CLKS_SHIFT))&FTM_SC_CLKS_MASK)
4117#define FTM_SC_CPWMS_MASK 0x20u
4118#define FTM_SC_CPWMS_SHIFT 5
4119#define FTM_SC_TOIE_MASK 0x40u
4120#define FTM_SC_TOIE_SHIFT 6
4121#define FTM_SC_TOF_MASK 0x80u
4122#define FTM_SC_TOF_SHIFT 7
4123/* CNT Bit Fields */
4124#define FTM_CNT_COUNT_MASK 0xFFFFu
4125#define FTM_CNT_COUNT_SHIFT 0
4126#define FTM_CNT_COUNT(x) (((uint32_t)(((uint32_t)(x))<<FTM_CNT_COUNT_SHIFT))&FTM_CNT_COUNT_MASK)
4127/* MOD Bit Fields */
4128#define FTM_MOD_MOD_MASK 0xFFFFu
4129#define FTM_MOD_MOD_SHIFT 0
4130#define FTM_MOD_MOD(x) (((uint32_t)(((uint32_t)(x))<<FTM_MOD_MOD_SHIFT))&FTM_MOD_MOD_MASK)
4131/* CnSC Bit Fields */
4132#define FTM_CnSC_DMA_MASK 0x1u
4133#define FTM_CnSC_DMA_SHIFT 0
4134#define FTM_CnSC_ELSA_MASK 0x4u
4135#define FTM_CnSC_ELSA_SHIFT 2
4136#define FTM_CnSC_ELSB_MASK 0x8u
4137#define FTM_CnSC_ELSB_SHIFT 3
4138#define FTM_CnSC_MSA_MASK 0x10u
4139#define FTM_CnSC_MSA_SHIFT 4
4140#define FTM_CnSC_MSB_MASK 0x20u
4141#define FTM_CnSC_MSB_SHIFT 5
4142#define FTM_CnSC_CHIE_MASK 0x40u
4143#define FTM_CnSC_CHIE_SHIFT 6
4144#define FTM_CnSC_CHF_MASK 0x80u
4145#define FTM_CnSC_CHF_SHIFT 7
4146/* CnV Bit Fields */
4147#define FTM_CnV_VAL_MASK 0xFFFFu
4148#define FTM_CnV_VAL_SHIFT 0
4149#define FTM_CnV_VAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_CnV_VAL_SHIFT))&FTM_CnV_VAL_MASK)
4150/* CNTIN Bit Fields */
4151#define FTM_CNTIN_INIT_MASK 0xFFFFu
4152#define FTM_CNTIN_INIT_SHIFT 0
4153#define FTM_CNTIN_INIT(x) (((uint32_t)(((uint32_t)(x))<<FTM_CNTIN_INIT_SHIFT))&FTM_CNTIN_INIT_MASK)
4154/* STATUS Bit Fields */
4155#define FTM_STATUS_CH0F_MASK 0x1u
4156#define FTM_STATUS_CH0F_SHIFT 0
4157#define FTM_STATUS_CH1F_MASK 0x2u
4158#define FTM_STATUS_CH1F_SHIFT 1
4159#define FTM_STATUS_CH2F_MASK 0x4u
4160#define FTM_STATUS_CH2F_SHIFT 2
4161#define FTM_STATUS_CH3F_MASK 0x8u
4162#define FTM_STATUS_CH3F_SHIFT 3
4163#define FTM_STATUS_CH4F_MASK 0x10u
4164#define FTM_STATUS_CH4F_SHIFT 4
4165#define FTM_STATUS_CH5F_MASK 0x20u
4166#define FTM_STATUS_CH5F_SHIFT 5
4167#define FTM_STATUS_CH6F_MASK 0x40u
4168#define FTM_STATUS_CH6F_SHIFT 6
4169#define FTM_STATUS_CH7F_MASK 0x80u
4170#define FTM_STATUS_CH7F_SHIFT 7
4171/* MODE Bit Fields */
4172#define FTM_MODE_FTMEN_MASK 0x1u
4173#define FTM_MODE_FTMEN_SHIFT 0
4174#define FTM_MODE_INIT_MASK 0x2u
4175#define FTM_MODE_INIT_SHIFT 1
4176#define FTM_MODE_WPDIS_MASK 0x4u
4177#define FTM_MODE_WPDIS_SHIFT 2
4178#define FTM_MODE_PWMSYNC_MASK 0x8u
4179#define FTM_MODE_PWMSYNC_SHIFT 3
4180#define FTM_MODE_CAPTEST_MASK 0x10u
4181#define FTM_MODE_CAPTEST_SHIFT 4
4182#define FTM_MODE_FAULTM_MASK 0x60u
4183#define FTM_MODE_FAULTM_SHIFT 5
4184#define FTM_MODE_FAULTM(x) (((uint32_t)(((uint32_t)(x))<<FTM_MODE_FAULTM_SHIFT))&FTM_MODE_FAULTM_MASK)
4185#define FTM_MODE_FAULTIE_MASK 0x80u
4186#define FTM_MODE_FAULTIE_SHIFT 7
4187/* SYNC Bit Fields */
4188#define FTM_SYNC_CNTMIN_MASK 0x1u
4189#define FTM_SYNC_CNTMIN_SHIFT 0
4190#define FTM_SYNC_CNTMAX_MASK 0x2u
4191#define FTM_SYNC_CNTMAX_SHIFT 1
4192#define FTM_SYNC_REINIT_MASK 0x4u
4193#define FTM_SYNC_REINIT_SHIFT 2
4194#define FTM_SYNC_SYNCHOM_MASK 0x8u
4195#define FTM_SYNC_SYNCHOM_SHIFT 3
4196#define FTM_SYNC_TRIG0_MASK 0x10u
4197#define FTM_SYNC_TRIG0_SHIFT 4
4198#define FTM_SYNC_TRIG1_MASK 0x20u
4199#define FTM_SYNC_TRIG1_SHIFT 5
4200#define FTM_SYNC_TRIG2_MASK 0x40u
4201#define FTM_SYNC_TRIG2_SHIFT 6
4202#define FTM_SYNC_SWSYNC_MASK 0x80u
4203#define FTM_SYNC_SWSYNC_SHIFT 7
4204/* OUTINIT Bit Fields */
4205#define FTM_OUTINIT_CH0OI_MASK 0x1u
4206#define FTM_OUTINIT_CH0OI_SHIFT 0
4207#define FTM_OUTINIT_CH1OI_MASK 0x2u
4208#define FTM_OUTINIT_CH1OI_SHIFT 1
4209#define FTM_OUTINIT_CH2OI_MASK 0x4u
4210#define FTM_OUTINIT_CH2OI_SHIFT 2
4211#define FTM_OUTINIT_CH3OI_MASK 0x8u
4212#define FTM_OUTINIT_CH3OI_SHIFT 3
4213#define FTM_OUTINIT_CH4OI_MASK 0x10u
4214#define FTM_OUTINIT_CH4OI_SHIFT 4
4215#define FTM_OUTINIT_CH5OI_MASK 0x20u
4216#define FTM_OUTINIT_CH5OI_SHIFT 5
4217#define FTM_OUTINIT_CH6OI_MASK 0x40u
4218#define FTM_OUTINIT_CH6OI_SHIFT 6
4219#define FTM_OUTINIT_CH7OI_MASK 0x80u
4220#define FTM_OUTINIT_CH7OI_SHIFT 7
4221/* OUTMASK Bit Fields */
4222#define FTM_OUTMASK_CH0OM_MASK 0x1u
4223#define FTM_OUTMASK_CH0OM_SHIFT 0
4224#define FTM_OUTMASK_CH1OM_MASK 0x2u
4225#define FTM_OUTMASK_CH1OM_SHIFT 1
4226#define FTM_OUTMASK_CH2OM_MASK 0x4u
4227#define FTM_OUTMASK_CH2OM_SHIFT 2
4228#define FTM_OUTMASK_CH3OM_MASK 0x8u
4229#define FTM_OUTMASK_CH3OM_SHIFT 3
4230#define FTM_OUTMASK_CH4OM_MASK 0x10u
4231#define FTM_OUTMASK_CH4OM_SHIFT 4
4232#define FTM_OUTMASK_CH5OM_MASK 0x20u
4233#define FTM_OUTMASK_CH5OM_SHIFT 5
4234#define FTM_OUTMASK_CH6OM_MASK 0x40u
4235#define FTM_OUTMASK_CH6OM_SHIFT 6
4236#define FTM_OUTMASK_CH7OM_MASK 0x80u
4237#define FTM_OUTMASK_CH7OM_SHIFT 7
4238/* COMBINE Bit Fields */
4239#define FTM_COMBINE_COMBINE0_MASK 0x1u
4240#define FTM_COMBINE_COMBINE0_SHIFT 0
4241#define FTM_COMBINE_COMP0_MASK 0x2u
4242#define FTM_COMBINE_COMP0_SHIFT 1
4243#define FTM_COMBINE_DECAPEN0_MASK 0x4u
4244#define FTM_COMBINE_DECAPEN0_SHIFT 2
4245#define FTM_COMBINE_DECAP0_MASK 0x8u
4246#define FTM_COMBINE_DECAP0_SHIFT 3
4247#define FTM_COMBINE_DTEN0_MASK 0x10u
4248#define FTM_COMBINE_DTEN0_SHIFT 4
4249#define FTM_COMBINE_SYNCEN0_MASK 0x20u
4250#define FTM_COMBINE_SYNCEN0_SHIFT 5
4251#define FTM_COMBINE_FAULTEN0_MASK 0x40u
4252#define FTM_COMBINE_FAULTEN0_SHIFT 6
4253#define FTM_COMBINE_COMBINE1_MASK 0x100u
4254#define FTM_COMBINE_COMBINE1_SHIFT 8
4255#define FTM_COMBINE_COMP1_MASK 0x200u
4256#define FTM_COMBINE_COMP1_SHIFT 9
4257#define FTM_COMBINE_DECAPEN1_MASK 0x400u
4258#define FTM_COMBINE_DECAPEN1_SHIFT 10
4259#define FTM_COMBINE_DECAP1_MASK 0x800u
4260#define FTM_COMBINE_DECAP1_SHIFT 11
4261#define FTM_COMBINE_DTEN1_MASK 0x1000u
4262#define FTM_COMBINE_DTEN1_SHIFT 12
4263#define FTM_COMBINE_SYNCEN1_MASK 0x2000u
4264#define FTM_COMBINE_SYNCEN1_SHIFT 13
4265#define FTM_COMBINE_FAULTEN1_MASK 0x4000u
4266#define FTM_COMBINE_FAULTEN1_SHIFT 14
4267#define FTM_COMBINE_COMBINE2_MASK 0x10000u
4268#define FTM_COMBINE_COMBINE2_SHIFT 16
4269#define FTM_COMBINE_COMP2_MASK 0x20000u
4270#define FTM_COMBINE_COMP2_SHIFT 17
4271#define FTM_COMBINE_DECAPEN2_MASK 0x40000u
4272#define FTM_COMBINE_DECAPEN2_SHIFT 18
4273#define FTM_COMBINE_DECAP2_MASK 0x80000u
4274#define FTM_COMBINE_DECAP2_SHIFT 19
4275#define FTM_COMBINE_DTEN2_MASK 0x100000u
4276#define FTM_COMBINE_DTEN2_SHIFT 20
4277#define FTM_COMBINE_SYNCEN2_MASK 0x200000u
4278#define FTM_COMBINE_SYNCEN2_SHIFT 21
4279#define FTM_COMBINE_FAULTEN2_MASK 0x400000u
4280#define FTM_COMBINE_FAULTEN2_SHIFT 22
4281#define FTM_COMBINE_COMBINE3_MASK 0x1000000u
4282#define FTM_COMBINE_COMBINE3_SHIFT 24
4283#define FTM_COMBINE_COMP3_MASK 0x2000000u
4284#define FTM_COMBINE_COMP3_SHIFT 25
4285#define FTM_COMBINE_DECAPEN3_MASK 0x4000000u
4286#define FTM_COMBINE_DECAPEN3_SHIFT 26
4287#define FTM_COMBINE_DECAP3_MASK 0x8000000u
4288#define FTM_COMBINE_DECAP3_SHIFT 27
4289#define FTM_COMBINE_DTEN3_MASK 0x10000000u
4290#define FTM_COMBINE_DTEN3_SHIFT 28
4291#define FTM_COMBINE_SYNCEN3_MASK 0x20000000u
4292#define FTM_COMBINE_SYNCEN3_SHIFT 29
4293#define FTM_COMBINE_FAULTEN3_MASK 0x40000000u
4294#define FTM_COMBINE_FAULTEN3_SHIFT 30
4295/* DEADTIME Bit Fields */
4296#define FTM_DEADTIME_DTVAL_MASK 0x3Fu
4297#define FTM_DEADTIME_DTVAL_SHIFT 0
4298#define FTM_DEADTIME_DTVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_DEADTIME_DTVAL_SHIFT))&FTM_DEADTIME_DTVAL_MASK)
4299#define FTM_DEADTIME_DTPS_MASK 0xC0u
4300#define FTM_DEADTIME_DTPS_SHIFT 6
4301#define FTM_DEADTIME_DTPS(x) (((uint32_t)(((uint32_t)(x))<<FTM_DEADTIME_DTPS_SHIFT))&FTM_DEADTIME_DTPS_MASK)
4302/* EXTTRIG Bit Fields */
4303#define FTM_EXTTRIG_CH2TRIG_MASK 0x1u
4304#define FTM_EXTTRIG_CH2TRIG_SHIFT 0
4305#define FTM_EXTTRIG_CH3TRIG_MASK 0x2u
4306#define FTM_EXTTRIG_CH3TRIG_SHIFT 1
4307#define FTM_EXTTRIG_CH4TRIG_MASK 0x4u
4308#define FTM_EXTTRIG_CH4TRIG_SHIFT 2
4309#define FTM_EXTTRIG_CH5TRIG_MASK 0x8u
4310#define FTM_EXTTRIG_CH5TRIG_SHIFT 3
4311#define FTM_EXTTRIG_CH0TRIG_MASK 0x10u
4312#define FTM_EXTTRIG_CH0TRIG_SHIFT 4
4313#define FTM_EXTTRIG_CH1TRIG_MASK 0x20u
4314#define FTM_EXTTRIG_CH1TRIG_SHIFT 5
4315#define FTM_EXTTRIG_INITTRIGEN_MASK 0x40u
4316#define FTM_EXTTRIG_INITTRIGEN_SHIFT 6
4317#define FTM_EXTTRIG_TRIGF_MASK 0x80u
4318#define FTM_EXTTRIG_TRIGF_SHIFT 7
4319/* POL Bit Fields */
4320#define FTM_POL_POL0_MASK 0x1u
4321#define FTM_POL_POL0_SHIFT 0
4322#define FTM_POL_POL1_MASK 0x2u
4323#define FTM_POL_POL1_SHIFT 1
4324#define FTM_POL_POL2_MASK 0x4u
4325#define FTM_POL_POL2_SHIFT 2
4326#define FTM_POL_POL3_MASK 0x8u
4327#define FTM_POL_POL3_SHIFT 3
4328#define FTM_POL_POL4_MASK 0x10u
4329#define FTM_POL_POL4_SHIFT 4
4330#define FTM_POL_POL5_MASK 0x20u
4331#define FTM_POL_POL5_SHIFT 5
4332#define FTM_POL_POL6_MASK 0x40u
4333#define FTM_POL_POL6_SHIFT 6
4334#define FTM_POL_POL7_MASK 0x80u
4335#define FTM_POL_POL7_SHIFT 7
4336/* FMS Bit Fields */
4337#define FTM_FMS_FAULTF0_MASK 0x1u
4338#define FTM_FMS_FAULTF0_SHIFT 0
4339#define FTM_FMS_FAULTF1_MASK 0x2u
4340#define FTM_FMS_FAULTF1_SHIFT 1
4341#define FTM_FMS_FAULTF2_MASK 0x4u
4342#define FTM_FMS_FAULTF2_SHIFT 2
4343#define FTM_FMS_FAULTF3_MASK 0x8u
4344#define FTM_FMS_FAULTF3_SHIFT 3
4345#define FTM_FMS_FAULTIN_MASK 0x20u
4346#define FTM_FMS_FAULTIN_SHIFT 5
4347#define FTM_FMS_WPEN_MASK 0x40u
4348#define FTM_FMS_WPEN_SHIFT 6
4349#define FTM_FMS_FAULTF_MASK 0x80u
4350#define FTM_FMS_FAULTF_SHIFT 7
4351/* FILTER Bit Fields */
4352#define FTM_FILTER_CH0FVAL_MASK 0xFu
4353#define FTM_FILTER_CH0FVAL_SHIFT 0
4354#define FTM_FILTER_CH0FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH0FVAL_SHIFT))&FTM_FILTER_CH0FVAL_MASK)
4355#define FTM_FILTER_CH1FVAL_MASK 0xF0u
4356#define FTM_FILTER_CH1FVAL_SHIFT 4
4357#define FTM_FILTER_CH1FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH1FVAL_SHIFT))&FTM_FILTER_CH1FVAL_MASK)
4358#define FTM_FILTER_CH2FVAL_MASK 0xF00u
4359#define FTM_FILTER_CH2FVAL_SHIFT 8
4360#define FTM_FILTER_CH2FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH2FVAL_SHIFT))&FTM_FILTER_CH2FVAL_MASK)
4361#define FTM_FILTER_CH3FVAL_MASK 0xF000u
4362#define FTM_FILTER_CH3FVAL_SHIFT 12
4363#define FTM_FILTER_CH3FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH3FVAL_SHIFT))&FTM_FILTER_CH3FVAL_MASK)
4364/* FLTCTRL Bit Fields */
4365#define FTM_FLTCTRL_FAULT0EN_MASK 0x1u
4366#define FTM_FLTCTRL_FAULT0EN_SHIFT 0
4367#define FTM_FLTCTRL_FAULT1EN_MASK 0x2u
4368#define FTM_FLTCTRL_FAULT1EN_SHIFT 1
4369#define FTM_FLTCTRL_FAULT2EN_MASK 0x4u
4370#define FTM_FLTCTRL_FAULT2EN_SHIFT 2
4371#define FTM_FLTCTRL_FAULT3EN_MASK 0x8u
4372#define FTM_FLTCTRL_FAULT3EN_SHIFT 3
4373#define FTM_FLTCTRL_FFLTR0EN_MASK 0x10u
4374#define FTM_FLTCTRL_FFLTR0EN_SHIFT 4
4375#define FTM_FLTCTRL_FFLTR1EN_MASK 0x20u
4376#define FTM_FLTCTRL_FFLTR1EN_SHIFT 5
4377#define FTM_FLTCTRL_FFLTR2EN_MASK 0x40u
4378#define FTM_FLTCTRL_FFLTR2EN_SHIFT 6
4379#define FTM_FLTCTRL_FFLTR3EN_MASK 0x80u
4380#define FTM_FLTCTRL_FFLTR3EN_SHIFT 7
4381#define FTM_FLTCTRL_FFVAL_MASK 0xF00u
4382#define FTM_FLTCTRL_FFVAL_SHIFT 8
4383#define FTM_FLTCTRL_FFVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FLTCTRL_FFVAL_SHIFT))&FTM_FLTCTRL_FFVAL_MASK)
4384/* QDCTRL Bit Fields */
4385#define FTM_QDCTRL_QUADEN_MASK 0x1u
4386#define FTM_QDCTRL_QUADEN_SHIFT 0
4387#define FTM_QDCTRL_TOFDIR_MASK 0x2u
4388#define FTM_QDCTRL_TOFDIR_SHIFT 1
4389#define FTM_QDCTRL_QUADIR_MASK 0x4u
4390#define FTM_QDCTRL_QUADIR_SHIFT 2
4391#define FTM_QDCTRL_QUADMODE_MASK 0x8u
4392#define FTM_QDCTRL_QUADMODE_SHIFT 3
4393#define FTM_QDCTRL_PHBPOL_MASK 0x10u
4394#define FTM_QDCTRL_PHBPOL_SHIFT 4
4395#define FTM_QDCTRL_PHAPOL_MASK 0x20u
4396#define FTM_QDCTRL_PHAPOL_SHIFT 5
4397#define FTM_QDCTRL_PHBFLTREN_MASK 0x40u
4398#define FTM_QDCTRL_PHBFLTREN_SHIFT 6
4399#define FTM_QDCTRL_PHAFLTREN_MASK 0x80u
4400#define FTM_QDCTRL_PHAFLTREN_SHIFT 7
4401/* CONF Bit Fields */
4402#define FTM_CONF_NUMTOF_MASK 0x1Fu
4403#define FTM_CONF_NUMTOF_SHIFT 0
4404#define FTM_CONF_NUMTOF(x) (((uint32_t)(((uint32_t)(x))<<FTM_CONF_NUMTOF_SHIFT))&FTM_CONF_NUMTOF_MASK)
4405#define FTM_CONF_BDMMODE_MASK 0xC0u
4406#define FTM_CONF_BDMMODE_SHIFT 6
4407#define FTM_CONF_BDMMODE(x) (((uint32_t)(((uint32_t)(x))<<FTM_CONF_BDMMODE_SHIFT))&FTM_CONF_BDMMODE_MASK)
4408#define FTM_CONF_GTBEEN_MASK 0x200u
4409#define FTM_CONF_GTBEEN_SHIFT 9
4410#define FTM_CONF_GTBEOUT_MASK 0x400u
4411#define FTM_CONF_GTBEOUT_SHIFT 10
4412/* FLTPOL Bit Fields */
4413#define FTM_FLTPOL_FLT0POL_MASK 0x1u
4414#define FTM_FLTPOL_FLT0POL_SHIFT 0
4415#define FTM_FLTPOL_FLT1POL_MASK 0x2u
4416#define FTM_FLTPOL_FLT1POL_SHIFT 1
4417#define FTM_FLTPOL_FLT2POL_MASK 0x4u
4418#define FTM_FLTPOL_FLT2POL_SHIFT 2
4419#define FTM_FLTPOL_FLT3POL_MASK 0x8u
4420#define FTM_FLTPOL_FLT3POL_SHIFT 3
4421/* SYNCONF Bit Fields */
4422#define FTM_SYNCONF_HWTRIGMODE_MASK 0x1u
4423#define FTM_SYNCONF_HWTRIGMODE_SHIFT 0
4424#define FTM_SYNCONF_CNTINC_MASK 0x4u
4425#define FTM_SYNCONF_CNTINC_SHIFT 2
4426#define FTM_SYNCONF_INVC_MASK 0x10u
4427#define FTM_SYNCONF_INVC_SHIFT 4
4428#define FTM_SYNCONF_SWOC_MASK 0x20u
4429#define FTM_SYNCONF_SWOC_SHIFT 5
4430#define FTM_SYNCONF_SYNCMODE_MASK 0x80u
4431#define FTM_SYNCONF_SYNCMODE_SHIFT 7
4432#define FTM_SYNCONF_SWRSTCNT_MASK 0x100u
4433#define FTM_SYNCONF_SWRSTCNT_SHIFT 8
4434#define FTM_SYNCONF_SWWRBUF_MASK 0x200u
4435#define FTM_SYNCONF_SWWRBUF_SHIFT 9
4436#define FTM_SYNCONF_SWOM_MASK 0x400u
4437#define FTM_SYNCONF_SWOM_SHIFT 10
4438#define FTM_SYNCONF_SWINVC_MASK 0x800u
4439#define FTM_SYNCONF_SWINVC_SHIFT 11
4440#define FTM_SYNCONF_SWSOC_MASK 0x1000u
4441#define FTM_SYNCONF_SWSOC_SHIFT 12
4442#define FTM_SYNCONF_HWRSTCNT_MASK 0x10000u
4443#define FTM_SYNCONF_HWRSTCNT_SHIFT 16
4444#define FTM_SYNCONF_HWWRBUF_MASK 0x20000u
4445#define FTM_SYNCONF_HWWRBUF_SHIFT 17
4446#define FTM_SYNCONF_HWOM_MASK 0x40000u
4447#define FTM_SYNCONF_HWOM_SHIFT 18
4448#define FTM_SYNCONF_HWINVC_MASK 0x80000u
4449#define FTM_SYNCONF_HWINVC_SHIFT 19
4450#define FTM_SYNCONF_HWSOC_MASK 0x100000u
4451#define FTM_SYNCONF_HWSOC_SHIFT 20
4452/* INVCTRL Bit Fields */
4453#define FTM_INVCTRL_INV0EN_MASK 0x1u
4454#define FTM_INVCTRL_INV0EN_SHIFT 0
4455#define FTM_INVCTRL_INV1EN_MASK 0x2u
4456#define FTM_INVCTRL_INV1EN_SHIFT 1
4457#define FTM_INVCTRL_INV2EN_MASK 0x4u
4458#define FTM_INVCTRL_INV2EN_SHIFT 2
4459#define FTM_INVCTRL_INV3EN_MASK 0x8u
4460#define FTM_INVCTRL_INV3EN_SHIFT 3
4461/* SWOCTRL Bit Fields */
4462#define FTM_SWOCTRL_CH0OC_MASK 0x1u
4463#define FTM_SWOCTRL_CH0OC_SHIFT 0
4464#define FTM_SWOCTRL_CH1OC_MASK 0x2u
4465#define FTM_SWOCTRL_CH1OC_SHIFT 1
4466#define FTM_SWOCTRL_CH2OC_MASK 0x4u
4467#define FTM_SWOCTRL_CH2OC_SHIFT 2
4468#define FTM_SWOCTRL_CH3OC_MASK 0x8u
4469#define FTM_SWOCTRL_CH3OC_SHIFT 3
4470#define FTM_SWOCTRL_CH4OC_MASK 0x10u
4471#define FTM_SWOCTRL_CH4OC_SHIFT 4
4472#define FTM_SWOCTRL_CH5OC_MASK 0x20u
4473#define FTM_SWOCTRL_CH5OC_SHIFT 5
4474#define FTM_SWOCTRL_CH6OC_MASK 0x40u
4475#define FTM_SWOCTRL_CH6OC_SHIFT 6
4476#define FTM_SWOCTRL_CH7OC_MASK 0x80u
4477#define FTM_SWOCTRL_CH7OC_SHIFT 7
4478#define FTM_SWOCTRL_CH0OCV_MASK 0x100u
4479#define FTM_SWOCTRL_CH0OCV_SHIFT 8
4480#define FTM_SWOCTRL_CH1OCV_MASK 0x200u
4481#define FTM_SWOCTRL_CH1OCV_SHIFT 9
4482#define FTM_SWOCTRL_CH2OCV_MASK 0x400u
4483#define FTM_SWOCTRL_CH2OCV_SHIFT 10
4484#define FTM_SWOCTRL_CH3OCV_MASK 0x800u
4485#define FTM_SWOCTRL_CH3OCV_SHIFT 11
4486#define FTM_SWOCTRL_CH4OCV_MASK 0x1000u
4487#define FTM_SWOCTRL_CH4OCV_SHIFT 12
4488#define FTM_SWOCTRL_CH5OCV_MASK 0x2000u
4489#define FTM_SWOCTRL_CH5OCV_SHIFT 13
4490#define FTM_SWOCTRL_CH6OCV_MASK 0x4000u
4491#define FTM_SWOCTRL_CH6OCV_SHIFT 14
4492#define FTM_SWOCTRL_CH7OCV_MASK 0x8000u
4493#define FTM_SWOCTRL_CH7OCV_SHIFT 15
4494/* PWMLOAD Bit Fields */
4495#define FTM_PWMLOAD_CH0SEL_MASK 0x1u
4496#define FTM_PWMLOAD_CH0SEL_SHIFT 0
4497#define FTM_PWMLOAD_CH1SEL_MASK 0x2u
4498#define FTM_PWMLOAD_CH1SEL_SHIFT 1
4499#define FTM_PWMLOAD_CH2SEL_MASK 0x4u
4500#define FTM_PWMLOAD_CH2SEL_SHIFT 2
4501#define FTM_PWMLOAD_CH3SEL_MASK 0x8u
4502#define FTM_PWMLOAD_CH3SEL_SHIFT 3
4503#define FTM_PWMLOAD_CH4SEL_MASK 0x10u
4504#define FTM_PWMLOAD_CH4SEL_SHIFT 4
4505#define FTM_PWMLOAD_CH5SEL_MASK 0x20u
4506#define FTM_PWMLOAD_CH5SEL_SHIFT 5
4507#define FTM_PWMLOAD_CH6SEL_MASK 0x40u
4508#define FTM_PWMLOAD_CH6SEL_SHIFT 6
4509#define FTM_PWMLOAD_CH7SEL_MASK 0x80u
4510#define FTM_PWMLOAD_CH7SEL_SHIFT 7
4511#define FTM_PWMLOAD_LDOK_MASK 0x200u
4512#define FTM_PWMLOAD_LDOK_SHIFT 9
4513
4514 /* end of group FTM_Register_Masks */
4515
4516
4517/* FTM - Peripheral instance base addresses */
4519#define FTM0_BASE (0x40038000u)
4521#define FTM0 ((FTM_Type *)FTM0_BASE)
4523#define FTM1_BASE (0x40039000u)
4525#define FTM1 ((FTM_Type *)FTM1_BASE)
4527#define FTM2_BASE (0x400B8000u)
4529#define FTM2 ((FTM_Type *)FTM2_BASE)
4530
4531 /* end of group FTM_Peripheral_Access_Layer */
4532
4533
4534/* ----------------------------------------------------------------------------
4535 -- I2C Peripheral Access Layer
4536 ---------------------------------------------------------------------------- */
4537
4542typedef struct {
4543 __IO uint8_t A1;
4544 __IO uint8_t F;
4545 __IO uint8_t C1;
4546 __IO uint8_t S;
4547 __IO uint8_t D;
4548 __IO uint8_t C2;
4549 __IO uint8_t FLT;
4550 __IO uint8_t RA;
4551 __IO uint8_t SMB;
4552 __IO uint8_t A2;
4553 __IO uint8_t SLTH;
4554 __IO uint8_t SLTL;
4555} I2C_Type;
4556
4557/* ----------------------------------------------------------------------------
4558 -- I2C Register Masks
4559 ---------------------------------------------------------------------------- */
4560
4564/* A1 Bit Fields */
4565#define I2C_A1_AD_MASK 0xFEu
4566#define I2C_A1_AD_SHIFT 1
4567#define I2C_A1_AD(x) (((uint8_t)(((uint8_t)(x))<<I2C_A1_AD_SHIFT))&I2C_A1_AD_MASK)
4568/* F Bit Fields */
4569#define I2C_F_ICR_MASK 0x3Fu
4570#define I2C_F_ICR_SHIFT 0
4571#define I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x))<<I2C_F_ICR_SHIFT))&I2C_F_ICR_MASK)
4572#define I2C_F_MULT_MASK 0xC0u
4573#define I2C_F_MULT_SHIFT 6
4574#define I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x))<<I2C_F_MULT_SHIFT))&I2C_F_MULT_MASK)
4575/* C1 Bit Fields */
4576#define I2C_C1_DMAEN_MASK 0x1u
4577#define I2C_C1_DMAEN_SHIFT 0
4578#define I2C_C1_WUEN_MASK 0x2u
4579#define I2C_C1_WUEN_SHIFT 1
4580#define I2C_C1_RSTA_MASK 0x4u
4581#define I2C_C1_RSTA_SHIFT 2
4582#define I2C_C1_TXAK_MASK 0x8u
4583#define I2C_C1_TXAK_SHIFT 3
4584#define I2C_C1_TX_MASK 0x10u
4585#define I2C_C1_TX_SHIFT 4
4586#define I2C_C1_MST_MASK 0x20u
4587#define I2C_C1_MST_SHIFT 5
4588#define I2C_C1_IICIE_MASK 0x40u
4589#define I2C_C1_IICIE_SHIFT 6
4590#define I2C_C1_IICEN_MASK 0x80u
4591#define I2C_C1_IICEN_SHIFT 7
4592/* S Bit Fields */
4593#define I2C_S_RXAK_MASK 0x1u
4594#define I2C_S_RXAK_SHIFT 0
4595#define I2C_S_IICIF_MASK 0x2u
4596#define I2C_S_IICIF_SHIFT 1
4597#define I2C_S_SRW_MASK 0x4u
4598#define I2C_S_SRW_SHIFT 2
4599#define I2C_S_RAM_MASK 0x8u
4600#define I2C_S_RAM_SHIFT 3
4601#define I2C_S_ARBL_MASK 0x10u
4602#define I2C_S_ARBL_SHIFT 4
4603#define I2C_S_BUSY_MASK 0x20u
4604#define I2C_S_BUSY_SHIFT 5
4605#define I2C_S_IAAS_MASK 0x40u
4606#define I2C_S_IAAS_SHIFT 6
4607#define I2C_S_TCF_MASK 0x80u
4608#define I2C_S_TCF_SHIFT 7
4609/* D Bit Fields */
4610#define I2C_D_DATA_MASK 0xFFu
4611#define I2C_D_DATA_SHIFT 0
4612#define I2C_D_DATA(x) (((uint8_t)(((uint8_t)(x))<<I2C_D_DATA_SHIFT))&I2C_D_DATA_MASK)
4613/* C2 Bit Fields */
4614#define I2C_C2_AD_MASK 0x7u
4615#define I2C_C2_AD_SHIFT 0
4616#define I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x))<<I2C_C2_AD_SHIFT))&I2C_C2_AD_MASK)
4617#define I2C_C2_RMEN_MASK 0x8u
4618#define I2C_C2_RMEN_SHIFT 3
4619#define I2C_C2_SBRC_MASK 0x10u
4620#define I2C_C2_SBRC_SHIFT 4
4621#define I2C_C2_HDRS_MASK 0x20u
4622#define I2C_C2_HDRS_SHIFT 5
4623#define I2C_C2_ADEXT_MASK 0x40u
4624#define I2C_C2_ADEXT_SHIFT 6
4625#define I2C_C2_GCAEN_MASK 0x80u
4626#define I2C_C2_GCAEN_SHIFT 7
4627/* FLT Bit Fields */
4628#define I2C_FLT_FLT_MASK 0x1Fu
4629#define I2C_FLT_FLT_SHIFT 0
4630#define I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x))<<I2C_FLT_FLT_SHIFT))&I2C_FLT_FLT_MASK)
4631/* RA Bit Fields */
4632#define I2C_RA_RAD_MASK 0xFEu
4633#define I2C_RA_RAD_SHIFT 1
4634#define I2C_RA_RAD(x) (((uint8_t)(((uint8_t)(x))<<I2C_RA_RAD_SHIFT))&I2C_RA_RAD_MASK)
4635/* SMB Bit Fields */
4636#define I2C_SMB_SHTF2IE_MASK 0x1u
4637#define I2C_SMB_SHTF2IE_SHIFT 0
4638#define I2C_SMB_SHTF2_MASK 0x2u
4639#define I2C_SMB_SHTF2_SHIFT 1
4640#define I2C_SMB_SHTF1_MASK 0x4u
4641#define I2C_SMB_SHTF1_SHIFT 2
4642#define I2C_SMB_SLTF_MASK 0x8u
4643#define I2C_SMB_SLTF_SHIFT 3
4644#define I2C_SMB_TCKSEL_MASK 0x10u
4645#define I2C_SMB_TCKSEL_SHIFT 4
4646#define I2C_SMB_SIICAEN_MASK 0x20u
4647#define I2C_SMB_SIICAEN_SHIFT 5
4648#define I2C_SMB_ALERTEN_MASK 0x40u
4649#define I2C_SMB_ALERTEN_SHIFT 6
4650#define I2C_SMB_FACK_MASK 0x80u
4651#define I2C_SMB_FACK_SHIFT 7
4652/* A2 Bit Fields */
4653#define I2C_A2_SAD_MASK 0xFEu
4654#define I2C_A2_SAD_SHIFT 1
4655#define I2C_A2_SAD(x) (((uint8_t)(((uint8_t)(x))<<I2C_A2_SAD_SHIFT))&I2C_A2_SAD_MASK)
4656/* SLTH Bit Fields */
4657#define I2C_SLTH_SSLT_MASK 0xFFu
4658#define I2C_SLTH_SSLT_SHIFT 0
4659#define I2C_SLTH_SSLT(x) (((uint8_t)(((uint8_t)(x))<<I2C_SLTH_SSLT_SHIFT))&I2C_SLTH_SSLT_MASK)
4660/* SLTL Bit Fields */
4661#define I2C_SLTL_SSLT_MASK 0xFFu
4662#define I2C_SLTL_SSLT_SHIFT 0
4663#define I2C_SLTL_SSLT(x) (((uint8_t)(((uint8_t)(x))<<I2C_SLTL_SSLT_SHIFT))&I2C_SLTL_SSLT_MASK)
4664
4665 /* end of group I2C_Register_Masks */
4666
4667
4668/* I2C - Peripheral instance base addresses */
4670#define I2C0_BASE (0x40066000u)
4672#define I2C0 ((I2C_Type *)I2C0_BASE)
4674#define I2C1_BASE (0x40067000u)
4676#define I2C1 ((I2C_Type *)I2C1_BASE)
4677
4678 /* end of group I2C_Peripheral_Access_Layer */
4679
4680
4681/* ----------------------------------------------------------------------------
4682 -- I2S Peripheral Access Layer
4683 ---------------------------------------------------------------------------- */
4684
4689typedef struct {
4690 __IO uint32_t TX0;
4691 __IO uint32_t TX1;
4692 __IO uint32_t RX0;
4693 __IO uint32_t RX1;
4694 __IO uint32_t CR;
4695 __IO uint32_t ISR;
4696 __IO uint32_t IER;
4697 __IO uint32_t TCR;
4698 __IO uint32_t RCR;
4699 __IO uint32_t TCCR;
4700 __IO uint32_t RCCR;
4701 __IO uint32_t FCSR;
4702 uint8_t RESERVED_0[8];
4703 __IO uint32_t ACNT;
4704 __IO uint32_t ACADD;
4705 __IO uint32_t ACDAT;
4706 __IO uint32_t ATAG;
4707 __IO uint32_t TMSK;
4708 __IO uint32_t RMSK;
4709 __I uint32_t ACCST;
4710 __IO uint32_t ACCEN;
4711 __IO uint32_t ACCDIS;
4712} I2S_Type;
4713
4714/* ----------------------------------------------------------------------------
4715 -- I2S Register Masks
4716 ---------------------------------------------------------------------------- */
4717
4721/* TX0 Bit Fields */
4722#define I2S_TX0_TX0_MASK 0xFFFFFFFFu
4723#define I2S_TX0_TX0_SHIFT 0
4724#define I2S_TX0_TX0(x) (((uint32_t)(((uint32_t)(x))<<I2S_TX0_TX0_SHIFT))&I2S_TX0_TX0_MASK)
4725/* TX1 Bit Fields */
4726#define I2S_TX1_TX1_MASK 0xFFFFFFFFu
4727#define I2S_TX1_TX1_SHIFT 0
4728#define I2S_TX1_TX1(x) (((uint32_t)(((uint32_t)(x))<<I2S_TX1_TX1_SHIFT))&I2S_TX1_TX1_MASK)
4729/* RX0 Bit Fields */
4730#define I2S_RX0_RX0_MASK 0xFFFFFFFFu
4731#define I2S_RX0_RX0_SHIFT 0
4732#define I2S_RX0_RX0(x) (((uint32_t)(((uint32_t)(x))<<I2S_RX0_RX0_SHIFT))&I2S_RX0_RX0_MASK)
4733/* RX1 Bit Fields */
4734#define I2S_RX1_RX1_MASK 0xFFFFFFFFu
4735#define I2S_RX1_RX1_SHIFT 0
4736#define I2S_RX1_RX1(x) (((uint32_t)(((uint32_t)(x))<<I2S_RX1_RX1_SHIFT))&I2S_RX1_RX1_MASK)
4737/* CR Bit Fields */
4738#define I2S_CR_SSIEN_MASK 0x1u
4739#define I2S_CR_SSIEN_SHIFT 0
4740#define I2S_CR_TE_MASK 0x2u
4741#define I2S_CR_TE_SHIFT 1
4742#define I2S_CR_RE_MASK 0x4u
4743#define I2S_CR_RE_SHIFT 2
4744#define I2S_CR_NET_MASK 0x8u
4745#define I2S_CR_NET_SHIFT 3
4746#define I2S_CR_SYN_MASK 0x10u
4747#define I2S_CR_SYN_SHIFT 4
4748#define I2S_CR_I2SMODE_MASK 0x60u
4749#define I2S_CR_I2SMODE_SHIFT 5
4750#define I2S_CR_I2SMODE(x) (((uint32_t)(((uint32_t)(x))<<I2S_CR_I2SMODE_SHIFT))&I2S_CR_I2SMODE_MASK)
4751#define I2S_CR_SYSCLKEN_MASK 0x80u
4752#define I2S_CR_SYSCLKEN_SHIFT 7
4753#define I2S_CR_TCHEN_MASK 0x100u
4754#define I2S_CR_TCHEN_SHIFT 8
4755#define I2S_CR_CLKIST_MASK 0x200u
4756#define I2S_CR_CLKIST_SHIFT 9
4757#define I2S_CR_TFRCLKDIS_MASK 0x400u
4758#define I2S_CR_TFRCLKDIS_SHIFT 10
4759#define I2S_CR_RFRCLKDIS_MASK 0x800u
4760#define I2S_CR_RFRCLKDIS_SHIFT 11
4761#define I2S_CR_SYNCTXFS_MASK 0x1000u
4762#define I2S_CR_SYNCTXFS_SHIFT 12
4763/* ISR Bit Fields */
4764#define I2S_ISR_TFE0_MASK 0x1u
4765#define I2S_ISR_TFE0_SHIFT 0
4766#define I2S_ISR_TFE1_MASK 0x2u
4767#define I2S_ISR_TFE1_SHIFT 1
4768#define I2S_ISR_RFF0_MASK 0x4u
4769#define I2S_ISR_RFF0_SHIFT 2
4770#define I2S_ISR_RFF1_MASK 0x8u
4771#define I2S_ISR_RFF1_SHIFT 3
4772#define I2S_ISR_RLS_MASK 0x10u
4773#define I2S_ISR_RLS_SHIFT 4
4774#define I2S_ISR_TLS_MASK 0x20u
4775#define I2S_ISR_TLS_SHIFT 5
4776#define I2S_ISR_RFS_MASK 0x40u
4777#define I2S_ISR_RFS_SHIFT 6
4778#define I2S_ISR_TFS_MASK 0x80u
4779#define I2S_ISR_TFS_SHIFT 7
4780#define I2S_ISR_TUE0_MASK 0x100u
4781#define I2S_ISR_TUE0_SHIFT 8
4782#define I2S_ISR_TUE1_MASK 0x200u
4783#define I2S_ISR_TUE1_SHIFT 9
4784#define I2S_ISR_ROE0_MASK 0x400u
4785#define I2S_ISR_ROE0_SHIFT 10
4786#define I2S_ISR_ROE1_MASK 0x800u
4787#define I2S_ISR_ROE1_SHIFT 11
4788#define I2S_ISR_TDE0_MASK 0x1000u
4789#define I2S_ISR_TDE0_SHIFT 12
4790#define I2S_ISR_TDE1_MASK 0x2000u
4791#define I2S_ISR_TDE1_SHIFT 13
4792#define I2S_ISR_RDR0_MASK 0x4000u
4793#define I2S_ISR_RDR0_SHIFT 14
4794#define I2S_ISR_RDR1_MASK 0x8000u
4795#define I2S_ISR_RDR1_SHIFT 15
4796#define I2S_ISR_RXT_MASK 0x10000u
4797#define I2S_ISR_RXT_SHIFT 16
4798#define I2S_ISR_CMDDU_MASK 0x20000u
4799#define I2S_ISR_CMDDU_SHIFT 17
4800#define I2S_ISR_CMDAU_MASK 0x40000u
4801#define I2S_ISR_CMDAU_SHIFT 18
4802#define I2S_ISR_TRFC_MASK 0x800000u
4803#define I2S_ISR_TRFC_SHIFT 23
4804#define I2S_ISR_RFRC_MASK 0x1000000u
4805#define I2S_ISR_RFRC_SHIFT 24
4806/* IER Bit Fields */
4807#define I2S_IER_TFE0EN_MASK 0x1u
4808#define I2S_IER_TFE0EN_SHIFT 0
4809#define I2S_IER_TFE1EN_MASK 0x2u
4810#define I2S_IER_TFE1EN_SHIFT 1
4811#define I2S_IER_RFF0EN_MASK 0x4u
4812#define I2S_IER_RFF0EN_SHIFT 2
4813#define I2S_IER_RFF1EN_MASK 0x8u
4814#define I2S_IER_RFF1EN_SHIFT 3
4815#define I2S_IER_RLSEN_MASK 0x10u
4816#define I2S_IER_RLSEN_SHIFT 4
4817#define I2S_IER_TLSEN_MASK 0x20u
4818#define I2S_IER_TLSEN_SHIFT 5
4819#define I2S_IER_RFSEN_MASK 0x40u
4820#define I2S_IER_RFSEN_SHIFT 6
4821#define I2S_IER_TFSEN_MASK 0x80u
4822#define I2S_IER_TFSEN_SHIFT 7
4823#define I2S_IER_TUE0EN_MASK 0x100u
4824#define I2S_IER_TUE0EN_SHIFT 8
4825#define I2S_IER_TUE1EN_MASK 0x200u
4826#define I2S_IER_TUE1EN_SHIFT 9
4827#define I2S_IER_ROE0EN_MASK 0x400u
4828#define I2S_IER_ROE0EN_SHIFT 10
4829#define I2S_IER_ROE1EN_MASK 0x800u
4830#define I2S_IER_ROE1EN_SHIFT 11
4831#define I2S_IER_TDE0EN_MASK 0x1000u
4832#define I2S_IER_TDE0EN_SHIFT 12
4833#define I2S_IER_TDE1EN_MASK 0x2000u
4834#define I2S_IER_TDE1EN_SHIFT 13
4835#define I2S_IER_RDR0EN_MASK 0x4000u
4836#define I2S_IER_RDR0EN_SHIFT 14
4837#define I2S_IER_RDR1EN_MASK 0x8000u
4838#define I2S_IER_RDR1EN_SHIFT 15
4839#define I2S_IER_RXTEN_MASK 0x10000u
4840#define I2S_IER_RXTEN_SHIFT 16
4841#define I2S_IER_CMDDUEN_MASK 0x20000u
4842#define I2S_IER_CMDDUEN_SHIFT 17
4843#define I2S_IER_CMDAUEN_MASK 0x40000u
4844#define I2S_IER_CMDAUEN_SHIFT 18
4845#define I2S_IER_TIE_MASK 0x80000u
4846#define I2S_IER_TIE_SHIFT 19
4847#define I2S_IER_TDMAE_MASK 0x100000u
4848#define I2S_IER_TDMAE_SHIFT 20
4849#define I2S_IER_RIE_MASK 0x200000u
4850#define I2S_IER_RIE_SHIFT 21
4851#define I2S_IER_RDMAE_MASK 0x400000u
4852#define I2S_IER_RDMAE_SHIFT 22
4853#define I2S_IER_TFRC_EN_MASK 0x800000u
4854#define I2S_IER_TFRC_EN_SHIFT 23
4855#define I2S_IER_RFRC_EN_MASK 0x1000000u
4856#define I2S_IER_RFRC_EN_SHIFT 24
4857/* TCR Bit Fields */
4858#define I2S_TCR_TEFS_MASK 0x1u
4859#define I2S_TCR_TEFS_SHIFT 0
4860#define I2S_TCR_TFSL_MASK 0x2u
4861#define I2S_TCR_TFSL_SHIFT 1
4862#define I2S_TCR_TFSI_MASK 0x4u
4863#define I2S_TCR_TFSI_SHIFT 2
4864#define I2S_TCR_TSCKP_MASK 0x8u
4865#define I2S_TCR_TSCKP_SHIFT 3
4866#define I2S_TCR_TSHFD_MASK 0x10u
4867#define I2S_TCR_TSHFD_SHIFT 4
4868#define I2S_TCR_TXDIR_MASK 0x20u
4869#define I2S_TCR_TXDIR_SHIFT 5
4870#define I2S_TCR_TFDIR_MASK 0x40u
4871#define I2S_TCR_TFDIR_SHIFT 6
4872#define I2S_TCR_TFEN0_MASK 0x80u
4873#define I2S_TCR_TFEN0_SHIFT 7
4874#define I2S_TCR_TFEN1_MASK 0x100u
4875#define I2S_TCR_TFEN1_SHIFT 8
4876#define I2S_TCR_TXBIT0_MASK 0x200u
4877#define I2S_TCR_TXBIT0_SHIFT 9
4878/* RCR Bit Fields */
4879#define I2S_RCR_REFS_MASK 0x1u
4880#define I2S_RCR_REFS_SHIFT 0
4881#define I2S_RCR_RFSL_MASK 0x2u
4882#define I2S_RCR_RFSL_SHIFT 1
4883#define I2S_RCR_RFSI_MASK 0x4u
4884#define I2S_RCR_RFSI_SHIFT 2
4885#define I2S_RCR_RSCKP_MASK 0x8u
4886#define I2S_RCR_RSCKP_SHIFT 3
4887#define I2S_RCR_RSHFD_MASK 0x10u
4888#define I2S_RCR_RSHFD_SHIFT 4
4889#define I2S_RCR_RXDIR_MASK 0x20u
4890#define I2S_RCR_RXDIR_SHIFT 5
4891#define I2S_RCR_RFDIR_MASK 0x40u
4892#define I2S_RCR_RFDIR_SHIFT 6
4893#define I2S_RCR_RFEN0_MASK 0x80u
4894#define I2S_RCR_RFEN0_SHIFT 7
4895#define I2S_RCR_RFEN1_MASK 0x100u
4896#define I2S_RCR_RFEN1_SHIFT 8
4897#define I2S_RCR_RXBIT0_MASK 0x200u
4898#define I2S_RCR_RXBIT0_SHIFT 9
4899#define I2S_RCR_RXEXT_MASK 0x400u
4900#define I2S_RCR_RXEXT_SHIFT 10
4901/* TCCR Bit Fields */
4902#define I2S_TCCR_PM_MASK 0xFFu
4903#define I2S_TCCR_PM_SHIFT 0
4904#define I2S_TCCR_PM(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCCR_PM_SHIFT))&I2S_TCCR_PM_MASK)
4905#define I2S_TCCR_DC_MASK 0x1F00u
4906#define I2S_TCCR_DC_SHIFT 8
4907#define I2S_TCCR_DC(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCCR_DC_SHIFT))&I2S_TCCR_DC_MASK)
4908#define I2S_TCCR_WL_MASK 0x1E000u
4909#define I2S_TCCR_WL_SHIFT 13
4910#define I2S_TCCR_WL(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCCR_WL_SHIFT))&I2S_TCCR_WL_MASK)
4911#define I2S_TCCR_PSR_MASK 0x20000u
4912#define I2S_TCCR_PSR_SHIFT 17
4913#define I2S_TCCR_DIV2_MASK 0x40000u
4914#define I2S_TCCR_DIV2_SHIFT 18
4915/* RCCR Bit Fields */
4916#define I2S_RCCR_PM_MASK 0xFFu
4917#define I2S_RCCR_PM_SHIFT 0
4918#define I2S_RCCR_PM(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCCR_PM_SHIFT))&I2S_RCCR_PM_MASK)
4919#define I2S_RCCR_DC_MASK 0x1F00u
4920#define I2S_RCCR_DC_SHIFT 8
4921#define I2S_RCCR_DC(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCCR_DC_SHIFT))&I2S_RCCR_DC_MASK)
4922#define I2S_RCCR_WL_MASK 0x1E000u
4923#define I2S_RCCR_WL_SHIFT 13
4924#define I2S_RCCR_WL(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCCR_WL_SHIFT))&I2S_RCCR_WL_MASK)
4925#define I2S_RCCR_PSR_MASK 0x20000u
4926#define I2S_RCCR_PSR_SHIFT 17
4927#define I2S_RCCR_DIV2_MASK 0x40000u
4928#define I2S_RCCR_DIV2_SHIFT 18
4929/* FCSR Bit Fields */
4930#define I2S_FCSR_TFWM0_MASK 0xFu
4931#define I2S_FCSR_TFWM0_SHIFT 0
4932#define I2S_FCSR_TFWM0(x) (((uint32_t)(((uint32_t)(x))<<I2S_FCSR_TFWM0_SHIFT))&I2S_FCSR_TFWM0_MASK)
4933#define I2S_FCSR_RFWM0_MASK 0xF0u
4934#define I2S_FCSR_RFWM0_SHIFT 4
4935#define I2S_FCSR_RFWM0(x) (((uint32_t)(((uint32_t)(x))<<I2S_FCSR_RFWM0_SHIFT))&I2S_FCSR_RFWM0_MASK)
4936#define I2S_FCSR_TFCNT0_MASK 0xF00u
4937#define I2S_FCSR_TFCNT0_SHIFT 8
4938#define I2S_FCSR_TFCNT0(x) (((uint32_t)(((uint32_t)(x))<<I2S_FCSR_TFCNT0_SHIFT))&I2S_FCSR_TFCNT0_MASK)
4939#define I2S_FCSR_RFCNT0_MASK 0xF000u
4940#define I2S_FCSR_RFCNT0_SHIFT 12
4941#define I2S_FCSR_RFCNT0(x) (((uint32_t)(((uint32_t)(x))<<I2S_FCSR_RFCNT0_SHIFT))&I2S_FCSR_RFCNT0_MASK)
4942#define I2S_FCSR_TFWM1_MASK 0xF0000u
4943#define I2S_FCSR_TFWM1_SHIFT 16
4944#define I2S_FCSR_TFWM1(x) (((uint32_t)(((uint32_t)(x))<<I2S_FCSR_TFWM1_SHIFT))&I2S_FCSR_TFWM1_MASK)
4945#define I2S_FCSR_RFWM1_MASK 0xF00000u
4946#define I2S_FCSR_RFWM1_SHIFT 20
4947#define I2S_FCSR_RFWM1(x) (((uint32_t)(((uint32_t)(x))<<I2S_FCSR_RFWM1_SHIFT))&I2S_FCSR_RFWM1_MASK)
4948#define I2S_FCSR_TFCNT1_MASK 0xF000000u
4949#define I2S_FCSR_TFCNT1_SHIFT 24
4950#define I2S_FCSR_TFCNT1(x) (((uint32_t)(((uint32_t)(x))<<I2S_FCSR_TFCNT1_SHIFT))&I2S_FCSR_TFCNT1_MASK)
4951#define I2S_FCSR_RFCNT1_MASK 0xF0000000u
4952#define I2S_FCSR_RFCNT1_SHIFT 28
4953#define I2S_FCSR_RFCNT1(x) (((uint32_t)(((uint32_t)(x))<<I2S_FCSR_RFCNT1_SHIFT))&I2S_FCSR_RFCNT1_MASK)
4954/* ACNT Bit Fields */
4955#define I2S_ACNT_AC97EN_MASK 0x1u
4956#define I2S_ACNT_AC97EN_SHIFT 0
4957#define I2S_ACNT_FV_MASK 0x2u
4958#define I2S_ACNT_FV_SHIFT 1
4959#define I2S_ACNT_TIF_MASK 0x4u
4960#define I2S_ACNT_TIF_SHIFT 2
4961#define I2S_ACNT_RD_MASK 0x8u
4962#define I2S_ACNT_RD_SHIFT 3
4963#define I2S_ACNT_WR_MASK 0x10u
4964#define I2S_ACNT_WR_SHIFT 4
4965#define I2S_ACNT_FRDIV_MASK 0x7E0u
4966#define I2S_ACNT_FRDIV_SHIFT 5
4967#define I2S_ACNT_FRDIV(x) (((uint32_t)(((uint32_t)(x))<<I2S_ACNT_FRDIV_SHIFT))&I2S_ACNT_FRDIV_MASK)
4968/* ACADD Bit Fields */
4969#define I2S_ACADD_ACADD_MASK 0x7FFFFu
4970#define I2S_ACADD_ACADD_SHIFT 0
4971#define I2S_ACADD_ACADD(x) (((uint32_t)(((uint32_t)(x))<<I2S_ACADD_ACADD_SHIFT))&I2S_ACADD_ACADD_MASK)
4972/* ACDAT Bit Fields */
4973#define I2S_ACDAT_ACDAT_MASK 0xFFFFFu
4974#define I2S_ACDAT_ACDAT_SHIFT 0
4975#define I2S_ACDAT_ACDAT(x) (((uint32_t)(((uint32_t)(x))<<I2S_ACDAT_ACDAT_SHIFT))&I2S_ACDAT_ACDAT_MASK)
4976/* ATAG Bit Fields */
4977#define I2S_ATAG_ATAG_MASK 0xFFFFu
4978#define I2S_ATAG_ATAG_SHIFT 0
4979#define I2S_ATAG_ATAG(x) (((uint32_t)(((uint32_t)(x))<<I2S_ATAG_ATAG_SHIFT))&I2S_ATAG_ATAG_MASK)
4980/* TMSK Bit Fields */
4981#define I2S_TMSK_TMSK_MASK 0xFFFFFFFFu
4982#define I2S_TMSK_TMSK_SHIFT 0
4983#define I2S_TMSK_TMSK(x) (((uint32_t)(((uint32_t)(x))<<I2S_TMSK_TMSK_SHIFT))&I2S_TMSK_TMSK_MASK)
4984/* RMSK Bit Fields */
4985#define I2S_RMSK_RMSK_MASK 0xFFFFFFFFu
4986#define I2S_RMSK_RMSK_SHIFT 0
4987#define I2S_RMSK_RMSK(x) (((uint32_t)(((uint32_t)(x))<<I2S_RMSK_RMSK_SHIFT))&I2S_RMSK_RMSK_MASK)
4988/* ACCST Bit Fields */
4989#define I2S_ACCST_ACCST_MASK 0x3FFu
4990#define I2S_ACCST_ACCST_SHIFT 0
4991#define I2S_ACCST_ACCST(x) (((uint32_t)(((uint32_t)(x))<<I2S_ACCST_ACCST_SHIFT))&I2S_ACCST_ACCST_MASK)
4992/* ACCEN Bit Fields */
4993#define I2S_ACCEN_ACCEN_MASK 0x3FFu
4994#define I2S_ACCEN_ACCEN_SHIFT 0
4995#define I2S_ACCEN_ACCEN(x) (((uint32_t)(((uint32_t)(x))<<I2S_ACCEN_ACCEN_SHIFT))&I2S_ACCEN_ACCEN_MASK)
4996/* ACCDIS Bit Fields */
4997#define I2S_ACCDIS_ACCDIS_MASK 0x3FFu
4998#define I2S_ACCDIS_ACCDIS_SHIFT 0
4999#define I2S_ACCDIS_ACCDIS(x) (((uint32_t)(((uint32_t)(x))<<I2S_ACCDIS_ACCDIS_SHIFT))&I2S_ACCDIS_ACCDIS_MASK)
5000
5001 /* end of group I2S_Register_Masks */
5002
5003
5004/* I2S - Peripheral instance base addresses */
5006#define I2S0_BASE (0x4002F000u)
5008#define I2S0 ((I2S_Type *)I2S0_BASE)
5009
5010 /* end of group I2S_Peripheral_Access_Layer */
5011
5012
5013/* ----------------------------------------------------------------------------
5014 -- LLWU Peripheral Access Layer
5015 ---------------------------------------------------------------------------- */
5016
5021typedef struct {
5022 __IO uint8_t PE1;
5023 __IO uint8_t PE2;
5024 __IO uint8_t PE3;
5025 __IO uint8_t PE4;
5026 __IO uint8_t ME;
5027 __IO uint8_t F1;
5028 __IO uint8_t F2;
5029 __IO uint8_t F3;
5030 __IO uint8_t CS;
5031} LLWU_Type;
5032
5033/* ----------------------------------------------------------------------------
5034 -- LLWU Register Masks
5035 ---------------------------------------------------------------------------- */
5036
5040/* PE1 Bit Fields */
5041#define LLWU_PE1_WUPE0_MASK 0x3u
5042#define LLWU_PE1_WUPE0_SHIFT 0
5043#define LLWU_PE1_WUPE0(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE1_WUPE0_SHIFT))&LLWU_PE1_WUPE0_MASK)
5044#define LLWU_PE1_WUPE1_MASK 0xCu
5045#define LLWU_PE1_WUPE1_SHIFT 2
5046#define LLWU_PE1_WUPE1(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE1_WUPE1_SHIFT))&LLWU_PE1_WUPE1_MASK)
5047#define LLWU_PE1_WUPE2_MASK 0x30u
5048#define LLWU_PE1_WUPE2_SHIFT 4
5049#define LLWU_PE1_WUPE2(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE1_WUPE2_SHIFT))&LLWU_PE1_WUPE2_MASK)
5050#define LLWU_PE1_WUPE3_MASK 0xC0u
5051#define LLWU_PE1_WUPE3_SHIFT 6
5052#define LLWU_PE1_WUPE3(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE1_WUPE3_SHIFT))&LLWU_PE1_WUPE3_MASK)
5053/* PE2 Bit Fields */
5054#define LLWU_PE2_WUPE4_MASK 0x3u
5055#define LLWU_PE2_WUPE4_SHIFT 0
5056#define LLWU_PE2_WUPE4(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE2_WUPE4_SHIFT))&LLWU_PE2_WUPE4_MASK)
5057#define LLWU_PE2_WUPE5_MASK 0xCu
5058#define LLWU_PE2_WUPE5_SHIFT 2
5059#define LLWU_PE2_WUPE5(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE2_WUPE5_SHIFT))&LLWU_PE2_WUPE5_MASK)
5060#define LLWU_PE2_WUPE6_MASK 0x30u
5061#define LLWU_PE2_WUPE6_SHIFT 4
5062#define LLWU_PE2_WUPE6(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE2_WUPE6_SHIFT))&LLWU_PE2_WUPE6_MASK)
5063#define LLWU_PE2_WUPE7_MASK 0xC0u
5064#define LLWU_PE2_WUPE7_SHIFT 6
5065#define LLWU_PE2_WUPE7(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE2_WUPE7_SHIFT))&LLWU_PE2_WUPE7_MASK)
5066/* PE3 Bit Fields */
5067#define LLWU_PE3_WUPE8_MASK 0x3u
5068#define LLWU_PE3_WUPE8_SHIFT 0
5069#define LLWU_PE3_WUPE8(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE3_WUPE8_SHIFT))&LLWU_PE3_WUPE8_MASK)
5070#define LLWU_PE3_WUPE9_MASK 0xCu
5071#define LLWU_PE3_WUPE9_SHIFT 2
5072#define LLWU_PE3_WUPE9(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE3_WUPE9_SHIFT))&LLWU_PE3_WUPE9_MASK)
5073#define LLWU_PE3_WUPE10_MASK 0x30u
5074#define LLWU_PE3_WUPE10_SHIFT 4
5075#define LLWU_PE3_WUPE10(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE3_WUPE10_SHIFT))&LLWU_PE3_WUPE10_MASK)
5076#define LLWU_PE3_WUPE11_MASK 0xC0u
5077#define LLWU_PE3_WUPE11_SHIFT 6
5078#define LLWU_PE3_WUPE11(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE3_WUPE11_SHIFT))&LLWU_PE3_WUPE11_MASK)
5079/* PE4 Bit Fields */
5080#define LLWU_PE4_WUPE12_MASK 0x3u
5081#define LLWU_PE4_WUPE12_SHIFT 0
5082#define LLWU_PE4_WUPE12(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE4_WUPE12_SHIFT))&LLWU_PE4_WUPE12_MASK)
5083#define LLWU_PE4_WUPE13_MASK 0xCu
5084#define LLWU_PE4_WUPE13_SHIFT 2
5085#define LLWU_PE4_WUPE13(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE4_WUPE13_SHIFT))&LLWU_PE4_WUPE13_MASK)
5086#define LLWU_PE4_WUPE14_MASK 0x30u
5087#define LLWU_PE4_WUPE14_SHIFT 4
5088#define LLWU_PE4_WUPE14(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE4_WUPE14_SHIFT))&LLWU_PE4_WUPE14_MASK)
5089#define LLWU_PE4_WUPE15_MASK 0xC0u
5090#define LLWU_PE4_WUPE15_SHIFT 6
5091#define LLWU_PE4_WUPE15(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE4_WUPE15_SHIFT))&LLWU_PE4_WUPE15_MASK)
5092/* ME Bit Fields */
5093#define LLWU_ME_WUME0_MASK 0x1u
5094#define LLWU_ME_WUME0_SHIFT 0
5095#define LLWU_ME_WUME1_MASK 0x2u
5096#define LLWU_ME_WUME1_SHIFT 1
5097#define LLWU_ME_WUME2_MASK 0x4u
5098#define LLWU_ME_WUME2_SHIFT 2
5099#define LLWU_ME_WUME3_MASK 0x8u
5100#define LLWU_ME_WUME3_SHIFT 3
5101#define LLWU_ME_WUME4_MASK 0x10u
5102#define LLWU_ME_WUME4_SHIFT 4
5103#define LLWU_ME_WUME5_MASK 0x20u
5104#define LLWU_ME_WUME5_SHIFT 5
5105#define LLWU_ME_WUME6_MASK 0x40u
5106#define LLWU_ME_WUME6_SHIFT 6
5107#define LLWU_ME_WUME7_MASK 0x80u
5108#define LLWU_ME_WUME7_SHIFT 7
5109/* F1 Bit Fields */
5110#define LLWU_F1_WUF0_MASK 0x1u
5111#define LLWU_F1_WUF0_SHIFT 0
5112#define LLWU_F1_WUF1_MASK 0x2u
5113#define LLWU_F1_WUF1_SHIFT 1
5114#define LLWU_F1_WUF2_MASK 0x4u
5115#define LLWU_F1_WUF2_SHIFT 2
5116#define LLWU_F1_WUF3_MASK 0x8u
5117#define LLWU_F1_WUF3_SHIFT 3
5118#define LLWU_F1_WUF4_MASK 0x10u
5119#define LLWU_F1_WUF4_SHIFT 4
5120#define LLWU_F1_WUF5_MASK 0x20u
5121#define LLWU_F1_WUF5_SHIFT 5
5122#define LLWU_F1_WUF6_MASK 0x40u
5123#define LLWU_F1_WUF6_SHIFT 6
5124#define LLWU_F1_WUF7_MASK 0x80u
5125#define LLWU_F1_WUF7_SHIFT 7
5126/* F2 Bit Fields */
5127#define LLWU_F2_WUF8_MASK 0x1u
5128#define LLWU_F2_WUF8_SHIFT 0
5129#define LLWU_F2_WUF9_MASK 0x2u
5130#define LLWU_F2_WUF9_SHIFT 1
5131#define LLWU_F2_WUF10_MASK 0x4u
5132#define LLWU_F2_WUF10_SHIFT 2
5133#define LLWU_F2_WUF11_MASK 0x8u
5134#define LLWU_F2_WUF11_SHIFT 3
5135#define LLWU_F2_WUF12_MASK 0x10u
5136#define LLWU_F2_WUF12_SHIFT 4
5137#define LLWU_F2_WUF13_MASK 0x20u
5138#define LLWU_F2_WUF13_SHIFT 5
5139#define LLWU_F2_WUF14_MASK 0x40u
5140#define LLWU_F2_WUF14_SHIFT 6
5141#define LLWU_F2_WUF15_MASK 0x80u
5142#define LLWU_F2_WUF15_SHIFT 7
5143/* F3 Bit Fields */
5144#define LLWU_F3_MWUF0_MASK 0x1u
5145#define LLWU_F3_MWUF0_SHIFT 0
5146#define LLWU_F3_MWUF1_MASK 0x2u
5147#define LLWU_F3_MWUF1_SHIFT 1
5148#define LLWU_F3_MWUF2_MASK 0x4u
5149#define LLWU_F3_MWUF2_SHIFT 2
5150#define LLWU_F3_MWUF3_MASK 0x8u
5151#define LLWU_F3_MWUF3_SHIFT 3
5152#define LLWU_F3_MWUF4_MASK 0x10u
5153#define LLWU_F3_MWUF4_SHIFT 4
5154#define LLWU_F3_MWUF5_MASK 0x20u
5155#define LLWU_F3_MWUF5_SHIFT 5
5156#define LLWU_F3_MWUF6_MASK 0x40u
5157#define LLWU_F3_MWUF6_SHIFT 6
5158#define LLWU_F3_MWUF7_MASK 0x80u
5159#define LLWU_F3_MWUF7_SHIFT 7
5160/* CS Bit Fields */
5161#define LLWU_CS_FLTR_MASK 0x1u
5162#define LLWU_CS_FLTR_SHIFT 0
5163#define LLWU_CS_FLTEP_MASK 0x2u
5164#define LLWU_CS_FLTEP_SHIFT 1
5165#define LLWU_CS_ACKISO_MASK 0x80u
5166#define LLWU_CS_ACKISO_SHIFT 7
5167
5168 /* end of group LLWU_Register_Masks */
5169
5170
5171/* LLWU - Peripheral instance base addresses */
5173#define LLWU_BASE (0x4007C000u)
5175#define LLWU ((LLWU_Type *)LLWU_BASE)
5176
5177 /* end of group LLWU_Peripheral_Access_Layer */
5178
5179
5180/* ----------------------------------------------------------------------------
5181 -- LPTMR Peripheral Access Layer
5182 ---------------------------------------------------------------------------- */
5183
5188typedef struct {
5189 __IO uint32_t CSR;
5190 __IO uint32_t PSR;
5191 __IO uint32_t CMR;
5192 __I uint32_t CNR;
5193} LPTMR_Type;
5194
5195/* ----------------------------------------------------------------------------
5196 -- LPTMR Register Masks
5197 ---------------------------------------------------------------------------- */
5198
5202/* CSR Bit Fields */
5203#define LPTMR_CSR_TEN_MASK 0x1u
5204#define LPTMR_CSR_TEN_SHIFT 0
5205#define LPTMR_CSR_TMS_MASK 0x2u
5206#define LPTMR_CSR_TMS_SHIFT 1
5207#define LPTMR_CSR_TFC_MASK 0x4u
5208#define LPTMR_CSR_TFC_SHIFT 2
5209#define LPTMR_CSR_TPP_MASK 0x8u
5210#define LPTMR_CSR_TPP_SHIFT 3
5211#define LPTMR_CSR_TPS_MASK 0x30u
5212#define LPTMR_CSR_TPS_SHIFT 4
5213#define LPTMR_CSR_TPS(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_CSR_TPS_SHIFT))&LPTMR_CSR_TPS_MASK)
5214#define LPTMR_CSR_TIE_MASK 0x40u
5215#define LPTMR_CSR_TIE_SHIFT 6
5216#define LPTMR_CSR_TCF_MASK 0x80u
5217#define LPTMR_CSR_TCF_SHIFT 7
5218/* PSR Bit Fields */
5219#define LPTMR_PSR_PCS_MASK 0x3u
5220#define LPTMR_PSR_PCS_SHIFT 0
5221#define LPTMR_PSR_PCS(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_PSR_PCS_SHIFT))&LPTMR_PSR_PCS_MASK)
5222#define LPTMR_PSR_PBYP_MASK 0x4u
5223#define LPTMR_PSR_PBYP_SHIFT 2
5224#define LPTMR_PSR_PRESCALE_MASK 0x78u
5225#define LPTMR_PSR_PRESCALE_SHIFT 3
5226#define LPTMR_PSR_PRESCALE(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_PSR_PRESCALE_SHIFT))&LPTMR_PSR_PRESCALE_MASK)
5227/* CMR Bit Fields */
5228#define LPTMR_CMR_COMPARE_MASK 0xFFFFu
5229#define LPTMR_CMR_COMPARE_SHIFT 0
5230#define LPTMR_CMR_COMPARE(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_CMR_COMPARE_SHIFT))&LPTMR_CMR_COMPARE_MASK)
5231/* CNR Bit Fields */
5232#define LPTMR_CNR_COUNTER_MASK 0xFFFFu
5233#define LPTMR_CNR_COUNTER_SHIFT 0
5234#define LPTMR_CNR_COUNTER(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_CNR_COUNTER_SHIFT))&LPTMR_CNR_COUNTER_MASK)
5235
5236 /* end of group LPTMR_Register_Masks */
5237
5238
5239/* LPTMR - Peripheral instance base addresses */
5241#define LPTMR0_BASE (0x40040000u)
5243#define LPTMR0 ((LPTMR_Type *)LPTMR0_BASE)
5244
5245 /* end of group LPTMR_Peripheral_Access_Layer */
5246
5247
5248/* ----------------------------------------------------------------------------
5249 -- MC Peripheral Access Layer
5250 ---------------------------------------------------------------------------- */
5251
5256typedef struct {
5257 __I uint8_t SRSH;
5258 __I uint8_t SRSL;
5259 __IO uint8_t PMPROT;
5260 __IO uint8_t PMCTRL;
5261} MC_Type;
5262
5263/* ----------------------------------------------------------------------------
5264 -- MC Register Masks
5265 ---------------------------------------------------------------------------- */
5266
5270/* SRSH Bit Fields */
5271#define MC_SRSH_JTAG_MASK 0x1u
5272#define MC_SRSH_JTAG_SHIFT 0
5273#define MC_SRSH_LOCKUP_MASK 0x2u
5274#define MC_SRSH_LOCKUP_SHIFT 1
5275#define MC_SRSH_SW_MASK 0x4u
5276#define MC_SRSH_SW_SHIFT 2
5277/* SRSL Bit Fields */
5278#define MC_SRSL_WAKEUP_MASK 0x1u
5279#define MC_SRSL_WAKEUP_SHIFT 0
5280#define MC_SRSL_LVD_MASK 0x2u
5281#define MC_SRSL_LVD_SHIFT 1
5282#define MC_SRSL_LOC_MASK 0x4u
5283#define MC_SRSL_LOC_SHIFT 2
5284#define MC_SRSL_COP_MASK 0x20u
5285#define MC_SRSL_COP_SHIFT 5
5286#define MC_SRSL_PIN_MASK 0x40u
5287#define MC_SRSL_PIN_SHIFT 6
5288#define MC_SRSL_POR_MASK 0x80u
5289#define MC_SRSL_POR_SHIFT 7
5290/* PMPROT Bit Fields */
5291#define MC_PMPROT_AVLLS1_MASK 0x1u
5292#define MC_PMPROT_AVLLS1_SHIFT 0
5293#define MC_PMPROT_AVLLS2_MASK 0x2u
5294#define MC_PMPROT_AVLLS2_SHIFT 1
5295#define MC_PMPROT_AVLLS3_MASK 0x4u
5296#define MC_PMPROT_AVLLS3_SHIFT 2
5297#define MC_PMPROT_ALLS_MASK 0x10u
5298#define MC_PMPROT_ALLS_SHIFT 4
5299#define MC_PMPROT_AVLP_MASK 0x20u
5300#define MC_PMPROT_AVLP_SHIFT 5
5301/* PMCTRL Bit Fields */
5302#define MC_PMCTRL_LPLLSM_MASK 0x7u
5303#define MC_PMCTRL_LPLLSM_SHIFT 0
5304#define MC_PMCTRL_LPLLSM(x) (((uint8_t)(((uint8_t)(x))<<MC_PMCTRL_LPLLSM_SHIFT))&MC_PMCTRL_LPLLSM_MASK)
5305#define MC_PMCTRL_RUNM_MASK 0x60u
5306#define MC_PMCTRL_RUNM_SHIFT 5
5307#define MC_PMCTRL_RUNM(x) (((uint8_t)(((uint8_t)(x))<<MC_PMCTRL_RUNM_SHIFT))&MC_PMCTRL_RUNM_MASK)
5308#define MC_PMCTRL_LPWUI_MASK 0x80u
5309#define MC_PMCTRL_LPWUI_SHIFT 7
5310
5311 /* end of group MC_Register_Masks */
5312
5313
5314/* MC - Peripheral instance base addresses */
5316#define MC_BASE (0x4007E000u)
5318#define MC ((MC_Type *)MC_BASE)
5319
5320 /* end of group MC_Peripheral_Access_Layer */
5321
5322
5323/* ----------------------------------------------------------------------------
5324 -- MCG Peripheral Access Layer
5325 ---------------------------------------------------------------------------- */
5326
5331typedef struct {
5332 __IO uint8_t C1;
5333 __IO uint8_t C2;
5334 __IO uint8_t C3;
5335 __IO uint8_t C4;
5336 __IO uint8_t C5;
5337 __IO uint8_t C6;
5338 __I uint8_t S;
5339 uint8_t RESERVED_0[1];
5340 __IO uint8_t ATC;
5341 uint8_t RESERVED_1[1];
5342 __IO uint8_t ATCVH;
5343 __IO uint8_t ATCVL;
5344} MCG_Type;
5345
5346/* ----------------------------------------------------------------------------
5347 -- MCG Register Masks
5348 ---------------------------------------------------------------------------- */
5349
5353/* C1 Bit Fields */
5354#define MCG_C1_IREFSTEN_MASK 0x1u
5355#define MCG_C1_IREFSTEN_SHIFT 0
5356#define MCG_C1_IRCLKEN_MASK 0x2u
5357#define MCG_C1_IRCLKEN_SHIFT 1
5358#define MCG_C1_IREFS_MASK 0x4u
5359#define MCG_C1_IREFS_SHIFT 2
5360#define MCG_C1_FRDIV_MASK 0x38u
5361#define MCG_C1_FRDIV_SHIFT 3
5362#define MCG_C1_FRDIV(x) (((uint8_t)(((uint8_t)(x))<<MCG_C1_FRDIV_SHIFT))&MCG_C1_FRDIV_MASK)
5363#define MCG_C1_CLKS_MASK 0xC0u
5364#define MCG_C1_CLKS_SHIFT 6
5365#define MCG_C1_CLKS(x) (((uint8_t)(((uint8_t)(x))<<MCG_C1_CLKS_SHIFT))&MCG_C1_CLKS_MASK)
5366/* C2 Bit Fields */
5367#define MCG_C2_IRCS_MASK 0x1u
5368#define MCG_C2_IRCS_SHIFT 0
5369#define MCG_C2_LP_MASK 0x2u
5370#define MCG_C2_LP_SHIFT 1
5371#define MCG_C2_EREFS_MASK 0x4u
5372#define MCG_C2_EREFS_SHIFT 2
5373#define MCG_C2_HGO_MASK 0x8u
5374#define MCG_C2_HGO_SHIFT 3
5375#define MCG_C2_RANGE_MASK 0x30u
5376#define MCG_C2_RANGE_SHIFT 4
5377#define MCG_C2_RANGE(x) (((uint8_t)(((uint8_t)(x))<<MCG_C2_RANGE_SHIFT))&MCG_C2_RANGE_MASK)
5378/* C3 Bit Fields */
5379#define MCG_C3_SCTRIM_MASK 0xFFu
5380#define MCG_C3_SCTRIM_SHIFT 0
5381#define MCG_C3_SCTRIM(x) (((uint8_t)(((uint8_t)(x))<<MCG_C3_SCTRIM_SHIFT))&MCG_C3_SCTRIM_MASK)
5382/* C4 Bit Fields */
5383#define MCG_C4_SCFTRIM_MASK 0x1u
5384#define MCG_C4_SCFTRIM_SHIFT 0
5385#define MCG_C4_FCTRIM_MASK 0x1Eu
5386#define MCG_C4_FCTRIM_SHIFT 1
5387#define MCG_C4_FCTRIM(x) (((uint8_t)(((uint8_t)(x))<<MCG_C4_FCTRIM_SHIFT))&MCG_C4_FCTRIM_MASK)
5388#define MCG_C4_DRST_DRS_MASK 0x60u
5389#define MCG_C4_DRST_DRS_SHIFT 5
5390#define MCG_C4_DRST_DRS(x) (((uint8_t)(((uint8_t)(x))<<MCG_C4_DRST_DRS_SHIFT))&MCG_C4_DRST_DRS_MASK)
5391#define MCG_C4_DMX32_MASK 0x80u
5392#define MCG_C4_DMX32_SHIFT 7
5393/* C5 Bit Fields */
5394#define MCG_C5_PRDIV_MASK 0x1Fu
5395#define MCG_C5_PRDIV_SHIFT 0
5396#define MCG_C5_PRDIV(x) (((uint8_t)(((uint8_t)(x))<<MCG_C5_PRDIV_SHIFT))&MCG_C5_PRDIV_MASK)
5397#define MCG_C5_PLLSTEN_MASK 0x20u
5398#define MCG_C5_PLLSTEN_SHIFT 5
5399#define MCG_C5_PLLCLKEN_MASK 0x40u
5400#define MCG_C5_PLLCLKEN_SHIFT 6
5401/* C6 Bit Fields */
5402#define MCG_C6_VDIV_MASK 0x1Fu
5403#define MCG_C6_VDIV_SHIFT 0
5404#define MCG_C6_VDIV(x) (((uint8_t)(((uint8_t)(x))<<MCG_C6_VDIV_SHIFT))&MCG_C6_VDIV_MASK)
5405#define MCG_C6_CME_MASK 0x20u
5406#define MCG_C6_CME_SHIFT 5
5407#define MCG_C6_PLLS_MASK 0x40u
5408#define MCG_C6_PLLS_SHIFT 6
5409#define MCG_C6_LOLIE_MASK 0x80u
5410#define MCG_C6_LOLIE_SHIFT 7
5411/* S Bit Fields */
5412#define MCG_S_IRCST_MASK 0x1u
5413#define MCG_S_IRCST_SHIFT 0
5414#define MCG_S_OSCINIT_MASK 0x2u
5415#define MCG_S_OSCINIT_SHIFT 1
5416#define MCG_S_CLKST_MASK 0xCu
5417#define MCG_S_CLKST_SHIFT 2
5418#define MCG_S_CLKST(x) (((uint8_t)(((uint8_t)(x))<<MCG_S_CLKST_SHIFT))&MCG_S_CLKST_MASK)
5419#define MCG_S_IREFST_MASK 0x10u
5420#define MCG_S_IREFST_SHIFT 4
5421#define MCG_S_PLLST_MASK 0x20u
5422#define MCG_S_PLLST_SHIFT 5
5423#define MCG_S_LOCK_MASK 0x40u
5424#define MCG_S_LOCK_SHIFT 6
5425#define MCG_S_LOLS_MASK 0x80u
5426#define MCG_S_LOLS_SHIFT 7
5427/* ATC Bit Fields */
5428#define MCG_ATC_ATMF_MASK 0x20u
5429#define MCG_ATC_ATMF_SHIFT 5
5430#define MCG_ATC_ATMS_MASK 0x40u
5431#define MCG_ATC_ATMS_SHIFT 6
5432#define MCG_ATC_ATME_MASK 0x80u
5433#define MCG_ATC_ATME_SHIFT 7
5434/* ATCVH Bit Fields */
5435#define MCG_ATCVH_ATCVH_MASK 0xFFu
5436#define MCG_ATCVH_ATCVH_SHIFT 0
5437#define MCG_ATCVH_ATCVH(x) (((uint8_t)(((uint8_t)(x))<<MCG_ATCVH_ATCVH_SHIFT))&MCG_ATCVH_ATCVH_MASK)
5438/* ATCVL Bit Fields */
5439#define MCG_ATCVL_ATCVL_MASK 0xFFu
5440#define MCG_ATCVL_ATCVL_SHIFT 0
5441#define MCG_ATCVL_ATCVL(x) (((uint8_t)(((uint8_t)(x))<<MCG_ATCVL_ATCVL_SHIFT))&MCG_ATCVL_ATCVL_MASK)
5442
5443 /* end of group MCG_Register_Masks */
5444
5445
5446/* MCG - Peripheral instance base addresses */
5448#define MCG_BASE (0x40064000u)
5450#define MCG ((MCG_Type *)MCG_BASE)
5451
5452 /* end of group MCG_Peripheral_Access_Layer */
5453
5454
5455/* ----------------------------------------------------------------------------
5456 -- MCM Peripheral Access Layer
5457 ---------------------------------------------------------------------------- */
5458
5463typedef struct {
5464 uint8_t RESERVED_0[8];
5465 __I uint16_t PLASC;
5466 __I uint16_t PLAMC;
5467 __IO uint32_t SRAMAP;
5468 __IO uint32_t ISR;
5469 __IO uint32_t ETBCC;
5470 __IO uint32_t ETBRL;
5471 __I uint32_t ETBCNT;
5472} MCM_Type;
5473
5474/* ----------------------------------------------------------------------------
5475 -- MCM Register Masks
5476 ---------------------------------------------------------------------------- */
5477
5481/* PLASC Bit Fields */
5482#define MCM_PLASC_ASC_MASK 0xFFu
5483#define MCM_PLASC_ASC_SHIFT 0
5484#define MCM_PLASC_ASC(x) (((uint16_t)(((uint16_t)(x))<<MCM_PLASC_ASC_SHIFT))&MCM_PLASC_ASC_MASK)
5485/* PLAMC Bit Fields */
5486#define MCM_PLAMC_AMC_MASK 0xFFu
5487#define MCM_PLAMC_AMC_SHIFT 0
5488#define MCM_PLAMC_AMC(x) (((uint16_t)(((uint16_t)(x))<<MCM_PLAMC_AMC_SHIFT))&MCM_PLAMC_AMC_MASK)
5489/* SRAMAP Bit Fields */
5490#define MCM_SRAMAP_SRAMUAP_MASK 0x3000000u
5491#define MCM_SRAMAP_SRAMUAP_SHIFT 24
5492#define MCM_SRAMAP_SRAMUAP(x) (((uint32_t)(((uint32_t)(x))<<MCM_SRAMAP_SRAMUAP_SHIFT))&MCM_SRAMAP_SRAMUAP_MASK)
5493#define MCM_SRAMAP_SRAMUWP_MASK 0x4000000u
5494#define MCM_SRAMAP_SRAMUWP_SHIFT 26
5495#define MCM_SRAMAP_SRAMLAP_MASK 0x30000000u
5496#define MCM_SRAMAP_SRAMLAP_SHIFT 28
5497#define MCM_SRAMAP_SRAMLAP(x) (((uint32_t)(((uint32_t)(x))<<MCM_SRAMAP_SRAMLAP_SHIFT))&MCM_SRAMAP_SRAMLAP_MASK)
5498#define MCM_SRAMAP_SRAMLWP_MASK 0x40000000u
5499#define MCM_SRAMAP_SRAMLWP_SHIFT 30
5500/* ISR Bit Fields */
5501#define MCM_ISR_IRQ_MASK 0x2u
5502#define MCM_ISR_IRQ_SHIFT 1
5503#define MCM_ISR_NMI_MASK 0x4u
5504#define MCM_ISR_NMI_SHIFT 2
5505/* ETBCC Bit Fields */
5506#define MCM_ETBCC_CNTEN_MASK 0x1u
5507#define MCM_ETBCC_CNTEN_SHIFT 0
5508#define MCM_ETBCC_RSPT_MASK 0x6u
5509#define MCM_ETBCC_RSPT_SHIFT 1
5510#define MCM_ETBCC_RSPT(x) (((uint32_t)(((uint32_t)(x))<<MCM_ETBCC_RSPT_SHIFT))&MCM_ETBCC_RSPT_MASK)
5511#define MCM_ETBCC_RLRQ_MASK 0x8u
5512#define MCM_ETBCC_RLRQ_SHIFT 3
5513#define MCM_ETBCC_ETDIS_MASK 0x10u
5514#define MCM_ETBCC_ETDIS_SHIFT 4
5515#define MCM_ETBCC_ITDIS_MASK 0x20u
5516#define MCM_ETBCC_ITDIS_SHIFT 5
5517/* ETBRL Bit Fields */
5518#define MCM_ETBRL_RELOAD_MASK 0x7FFu
5519#define MCM_ETBRL_RELOAD_SHIFT 0
5520#define MCM_ETBRL_RELOAD(x) (((uint32_t)(((uint32_t)(x))<<MCM_ETBRL_RELOAD_SHIFT))&MCM_ETBRL_RELOAD_MASK)
5521/* ETBCNT Bit Fields */
5522#define MCM_ETBCNT_COUNTER_MASK 0x7FFu
5523#define MCM_ETBCNT_COUNTER_SHIFT 0
5524#define MCM_ETBCNT_COUNTER(x) (((uint32_t)(((uint32_t)(x))<<MCM_ETBCNT_COUNTER_SHIFT))&MCM_ETBCNT_COUNTER_MASK)
5525
5526 /* end of group MCM_Register_Masks */
5527
5528
5529/* MCM - Peripheral instance base addresses */
5531#define MCM_BASE (0xE0080000u)
5533#define MCM ((MCM_Type *)MCM_BASE)
5534
5535 /* end of group MCM_Peripheral_Access_Layer */
5536
5537
5538/* ----------------------------------------------------------------------------
5539 -- MPU Peripheral Access Layer
5540 ---------------------------------------------------------------------------- */
5541
5546typedef struct {
5547 __IO uint32_t CESR;
5548 uint8_t RESERVED_0[12];
5549 struct { /* offset: 0x10, array step: 0x8 */
5550 __I uint32_t EAR;
5551 __I uint32_t EDR;
5552 } SP[5];
5553 uint8_t RESERVED_1[968];
5554 __IO uint32_t WORD[12][4];
5555 uint8_t RESERVED_2[832];
5556 __IO uint32_t RGDAAC[12];
5557} MPU_Type;
5558
5559/* ----------------------------------------------------------------------------
5560 -- MPU Register Masks
5561 ---------------------------------------------------------------------------- */
5562
5566/* CESR Bit Fields */
5567#define MPU_CESR_VLD_MASK 0x1u
5568#define MPU_CESR_VLD_SHIFT 0
5569#define MPU_CESR_NRGD_MASK 0xF00u
5570#define MPU_CESR_NRGD_SHIFT 8
5571#define MPU_CESR_NRGD(x) (((uint32_t)(((uint32_t)(x))<<MPU_CESR_NRGD_SHIFT))&MPU_CESR_NRGD_MASK)
5572#define MPU_CESR_NSP_MASK 0xF000u
5573#define MPU_CESR_NSP_SHIFT 12
5574#define MPU_CESR_NSP(x) (((uint32_t)(((uint32_t)(x))<<MPU_CESR_NSP_SHIFT))&MPU_CESR_NSP_MASK)
5575#define MPU_CESR_HRL_MASK 0xF0000u
5576#define MPU_CESR_HRL_SHIFT 16
5577#define MPU_CESR_HRL(x) (((uint32_t)(((uint32_t)(x))<<MPU_CESR_HRL_SHIFT))&MPU_CESR_HRL_MASK)
5578#define MPU_CESR_SPERR_MASK 0xF8000000u
5579#define MPU_CESR_SPERR_SHIFT 27
5580#define MPU_CESR_SPERR(x) (((uint32_t)(((uint32_t)(x))<<MPU_CESR_SPERR_SHIFT))&MPU_CESR_SPERR_MASK)
5581/* EAR Bit Fields */
5582#define MPU_EAR_EADDR_MASK 0xFFFFFFFFu
5583#define MPU_EAR_EADDR_SHIFT 0
5584#define MPU_EAR_EADDR(x) (((uint32_t)(((uint32_t)(x))<<MPU_EAR_EADDR_SHIFT))&MPU_EAR_EADDR_MASK)
5585/* EDR Bit Fields */
5586#define MPU_EDR_ERW_MASK 0x1u
5587#define MPU_EDR_ERW_SHIFT 0
5588#define MPU_EDR_EATTR_MASK 0xEu
5589#define MPU_EDR_EATTR_SHIFT 1
5590#define MPU_EDR_EATTR(x) (((uint32_t)(((uint32_t)(x))<<MPU_EDR_EATTR_SHIFT))&MPU_EDR_EATTR_MASK)
5591#define MPU_EDR_EMN_MASK 0xF0u
5592#define MPU_EDR_EMN_SHIFT 4
5593#define MPU_EDR_EMN(x) (((uint32_t)(((uint32_t)(x))<<MPU_EDR_EMN_SHIFT))&MPU_EDR_EMN_MASK)
5594#define MPU_EDR_EACD_MASK 0xFFFF0000u
5595#define MPU_EDR_EACD_SHIFT 16
5596#define MPU_EDR_EACD(x) (((uint32_t)(((uint32_t)(x))<<MPU_EDR_EACD_SHIFT))&MPU_EDR_EACD_MASK)
5597/* WORD Bit Fields */
5598#define MPU_WORD_M0UM_MASK 0x7u
5599#define MPU_WORD_M0UM_SHIFT 0
5600#define MPU_WORD_M0UM(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_M0UM_SHIFT))&MPU_WORD_M0UM_MASK)
5601#define MPU_WORD_VLD_MASK 0x1u
5602#define MPU_WORD_VLD_SHIFT 0
5603#define MPU_WORD_M0SM_MASK 0x18u
5604#define MPU_WORD_M0SM_SHIFT 3
5605#define MPU_WORD_M0SM(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_M0SM_SHIFT))&MPU_WORD_M0SM_MASK)
5606#define MPU_WORD_ENDADDR_MASK 0xFFFFFFE0u
5607#define MPU_WORD_ENDADDR_SHIFT 5
5608#define MPU_WORD_ENDADDR(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_ENDADDR_SHIFT))&MPU_WORD_ENDADDR_MASK)
5609#define MPU_WORD_SRTADDR_MASK 0xFFFFFFE0u
5610#define MPU_WORD_SRTADDR_SHIFT 5
5611#define MPU_WORD_SRTADDR(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_SRTADDR_SHIFT))&MPU_WORD_SRTADDR_MASK)
5612#define MPU_WORD_M1UM_MASK 0x1C0u
5613#define MPU_WORD_M1UM_SHIFT 6
5614#define MPU_WORD_M1UM(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_M1UM_SHIFT))&MPU_WORD_M1UM_MASK)
5615#define MPU_WORD_M1SM_MASK 0x600u
5616#define MPU_WORD_M1SM_SHIFT 9
5617#define MPU_WORD_M1SM(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_M1SM_SHIFT))&MPU_WORD_M1SM_MASK)
5618#define MPU_WORD_M2UM_MASK 0x7000u
5619#define MPU_WORD_M2UM_SHIFT 12
5620#define MPU_WORD_M2UM(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_M2UM_SHIFT))&MPU_WORD_M2UM_MASK)
5621#define MPU_WORD_M2SM_MASK 0x18000u
5622#define MPU_WORD_M2SM_SHIFT 15
5623#define MPU_WORD_M2SM(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_M2SM_SHIFT))&MPU_WORD_M2SM_MASK)
5624#define MPU_WORD_M3UM_MASK 0x1C0000u
5625#define MPU_WORD_M3UM_SHIFT 18
5626#define MPU_WORD_M3UM(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_M3UM_SHIFT))&MPU_WORD_M3UM_MASK)
5627#define MPU_WORD_M3SM_MASK 0x600000u
5628#define MPU_WORD_M3SM_SHIFT 21
5629#define MPU_WORD_M3SM(x) (((uint32_t)(((uint32_t)(x))<<MPU_WORD_M3SM_SHIFT))&MPU_WORD_M3SM_MASK)
5630#define MPU_WORD_M4WE_MASK 0x1000000u
5631#define MPU_WORD_M4WE_SHIFT 24
5632#define MPU_WORD_M4RE_MASK 0x2000000u
5633#define MPU_WORD_M4RE_SHIFT 25
5634#define MPU_WORD_M5WE_MASK 0x4000000u
5635#define MPU_WORD_M5WE_SHIFT 26
5636#define MPU_WORD_M5RE_MASK 0x8000000u
5637#define MPU_WORD_M5RE_SHIFT 27
5638#define MPU_WORD_M6WE_MASK 0x10000000u
5639#define MPU_WORD_M6WE_SHIFT 28
5640#define MPU_WORD_M6RE_MASK 0x20000000u
5641#define MPU_WORD_M6RE_SHIFT 29
5642#define MPU_WORD_M7WE_MASK 0x40000000u
5643#define MPU_WORD_M7WE_SHIFT 30
5644#define MPU_WORD_M7RE_MASK 0x80000000u
5645#define MPU_WORD_M7RE_SHIFT 31
5646/* RGDAAC Bit Fields */
5647#define MPU_RGDAAC_M0UM_MASK 0x7u
5648#define MPU_RGDAAC_M0UM_SHIFT 0
5649#define MPU_RGDAAC_M0UM(x) (((uint32_t)(((uint32_t)(x))<<MPU_RGDAAC_M0UM_SHIFT))&MPU_RGDAAC_M0UM_MASK)
5650#define MPU_RGDAAC_M0SM_MASK 0x18u
5651#define MPU_RGDAAC_M0SM_SHIFT 3
5652#define MPU_RGDAAC_M0SM(x) (((uint32_t)(((uint32_t)(x))<<MPU_RGDAAC_M0SM_SHIFT))&MPU_RGDAAC_M0SM_MASK)
5653#define MPU_RGDAAC_M1UM_MASK 0x1C0u
5654#define MPU_RGDAAC_M1UM_SHIFT 6
5655#define MPU_RGDAAC_M1UM(x) (((uint32_t)(((uint32_t)(x))<<MPU_RGDAAC_M1UM_SHIFT))&MPU_RGDAAC_M1UM_MASK)
5656#define MPU_RGDAAC_M1SM_MASK 0x600u
5657#define MPU_RGDAAC_M1SM_SHIFT 9
5658#define MPU_RGDAAC_M1SM(x) (((uint32_t)(((uint32_t)(x))<<MPU_RGDAAC_M1SM_SHIFT))&MPU_RGDAAC_M1SM_MASK)
5659#define MPU_RGDAAC_M2UM_MASK 0x7000u
5660#define MPU_RGDAAC_M2UM_SHIFT 12
5661#define MPU_RGDAAC_M2UM(x) (((uint32_t)(((uint32_t)(x))<<MPU_RGDAAC_M2UM_SHIFT))&MPU_RGDAAC_M2UM_MASK)
5662#define MPU_RGDAAC_M2SM_MASK 0x18000u
5663#define MPU_RGDAAC_M2SM_SHIFT 15
5664#define MPU_RGDAAC_M2SM(x) (((uint32_t)(((uint32_t)(x))<<MPU_RGDAAC_M2SM_SHIFT))&MPU_RGDAAC_M2SM_MASK)
5665#define MPU_RGDAAC_M3UM_MASK 0x1C0000u
5666#define MPU_RGDAAC_M3UM_SHIFT 18
5667#define MPU_RGDAAC_M3UM(x) (((uint32_t)(((uint32_t)(x))<<MPU_RGDAAC_M3UM_SHIFT))&MPU_RGDAAC_M3UM_MASK)
5668#define MPU_RGDAAC_M3SM_MASK 0x600000u
5669#define MPU_RGDAAC_M3SM_SHIFT 21
5670#define MPU_RGDAAC_M3SM(x) (((uint32_t)(((uint32_t)(x))<<MPU_RGDAAC_M3SM_SHIFT))&MPU_RGDAAC_M3SM_MASK)
5671#define MPU_RGDAAC_M4WE_MASK 0x1000000u
5672#define MPU_RGDAAC_M4WE_SHIFT 24
5673#define MPU_RGDAAC_M4RE_MASK 0x2000000u
5674#define MPU_RGDAAC_M4RE_SHIFT 25
5675#define MPU_RGDAAC_M5WE_MASK 0x4000000u
5676#define MPU_RGDAAC_M5WE_SHIFT 26
5677#define MPU_RGDAAC_M5RE_MASK 0x8000000u
5678#define MPU_RGDAAC_M5RE_SHIFT 27
5679#define MPU_RGDAAC_M6WE_MASK 0x10000000u
5680#define MPU_RGDAAC_M6WE_SHIFT 28
5681#define MPU_RGDAAC_M6RE_MASK 0x20000000u
5682#define MPU_RGDAAC_M6RE_SHIFT 29
5683#define MPU_RGDAAC_M7WE_MASK 0x40000000u
5684#define MPU_RGDAAC_M7WE_SHIFT 30
5685#define MPU_RGDAAC_M7RE_MASK 0x80000000u
5686#define MPU_RGDAAC_M7RE_SHIFT 31
5687
5688 /* end of group MPU_Register_Masks */
5689
5690
5691/* MPU - Peripheral instance base addresses */
5693#define MPU_BASE (0x4000D000u)
5695#define MPU ((MPU_Type *)MPU_BASE)
5696
5697 /* end of group MPU_Peripheral_Access_Layer */
5698
5699
5700/* ----------------------------------------------------------------------------
5701 -- OSC Peripheral Access Layer
5702 ---------------------------------------------------------------------------- */
5703
5708typedef struct {
5709 __IO uint8_t CR;
5710} OSC_Type;
5711
5712/* ----------------------------------------------------------------------------
5713 -- OSC Register Masks
5714 ---------------------------------------------------------------------------- */
5715
5719/* CR Bit Fields */
5720#define OSC_CR_SC16P_MASK 0x1u
5721#define OSC_CR_SC16P_SHIFT 0
5722#define OSC_CR_SC8P_MASK 0x2u
5723#define OSC_CR_SC8P_SHIFT 1
5724#define OSC_CR_SC4P_MASK 0x4u
5725#define OSC_CR_SC4P_SHIFT 2
5726#define OSC_CR_SC2P_MASK 0x8u
5727#define OSC_CR_SC2P_SHIFT 3
5728#define OSC_CR_EREFSTEN_MASK 0x20u
5729#define OSC_CR_EREFSTEN_SHIFT 5
5730#define OSC_CR_ERCLKEN_MASK 0x80u
5731#define OSC_CR_ERCLKEN_SHIFT 7
5732
5733 /* end of group OSC_Register_Masks */
5734
5735
5736/* OSC - Peripheral instance base addresses */
5738#define OSC_BASE (0x40065000u)
5740#define OSC ((OSC_Type *)OSC_BASE)
5741
5742 /* end of group OSC_Peripheral_Access_Layer */
5743
5744
5745/* ----------------------------------------------------------------------------
5746 -- PDB Peripheral Access Layer
5747 ---------------------------------------------------------------------------- */
5748
5753typedef struct {
5754 __IO uint32_t SC;
5755 __IO uint32_t MOD;
5756 __I uint32_t CNT;
5757 __IO uint32_t IDLY;
5758 struct { /* offset: 0x10, array step: 0x28 */
5759 __IO uint32_t C1;
5760 __IO uint32_t S;
5761 __IO uint32_t DLY[2];
5762 uint8_t RESERVED_0[24];
5763 } CH[2];
5764 uint8_t RESERVED_0[240];
5765 struct { /* offset: 0x150, array step: 0x8 */
5766 __IO uint32_t INTC;
5767 __IO uint32_t INT;
5768 } DAC[2];
5769 uint8_t RESERVED_1[48];
5770 __IO uint32_t POEN;
5771 __IO uint32_t PODLY;
5772} PDB_Type;
5773
5774/* ----------------------------------------------------------------------------
5775 -- PDB Register Masks
5776 ---------------------------------------------------------------------------- */
5777
5781/* SC Bit Fields */
5782#define PDB_SC_LDOK_MASK 0x1u
5783#define PDB_SC_LDOK_SHIFT 0
5784#define PDB_SC_CONT_MASK 0x2u
5785#define PDB_SC_CONT_SHIFT 1
5786#define PDB_SC_MULT_MASK 0xCu
5787#define PDB_SC_MULT_SHIFT 2
5788#define PDB_SC_MULT(x) (((uint32_t)(((uint32_t)(x))<<PDB_SC_MULT_SHIFT))&PDB_SC_MULT_MASK)
5789#define PDB_SC_PDBIE_MASK 0x20u
5790#define PDB_SC_PDBIE_SHIFT 5
5791#define PDB_SC_PDBIF_MASK 0x40u
5792#define PDB_SC_PDBIF_SHIFT 6
5793#define PDB_SC_PDBEN_MASK 0x80u
5794#define PDB_SC_PDBEN_SHIFT 7
5795#define PDB_SC_TRGSEL_MASK 0xF00u
5796#define PDB_SC_TRGSEL_SHIFT 8
5797#define PDB_SC_TRGSEL(x) (((uint32_t)(((uint32_t)(x))<<PDB_SC_TRGSEL_SHIFT))&PDB_SC_TRGSEL_MASK)
5798#define PDB_SC_PRESCALER_MASK 0x7000u
5799#define PDB_SC_PRESCALER_SHIFT 12
5800#define PDB_SC_PRESCALER(x) (((uint32_t)(((uint32_t)(x))<<PDB_SC_PRESCALER_SHIFT))&PDB_SC_PRESCALER_MASK)
5801#define PDB_SC_DMAEN_MASK 0x8000u
5802#define PDB_SC_DMAEN_SHIFT 15
5803#define PDB_SC_SWTRIG_MASK 0x10000u
5804#define PDB_SC_SWTRIG_SHIFT 16
5805#define PDB_SC_PDBEIE_MASK 0x20000u
5806#define PDB_SC_PDBEIE_SHIFT 17
5807#define PDB_SC_LDMOD_MASK 0xC0000u
5808#define PDB_SC_LDMOD_SHIFT 18
5809#define PDB_SC_LDMOD(x) (((uint32_t)(((uint32_t)(x))<<PDB_SC_LDMOD_SHIFT))&PDB_SC_LDMOD_MASK)
5810/* MOD Bit Fields */
5811#define PDB_MOD_MOD_MASK 0xFFFFu
5812#define PDB_MOD_MOD_SHIFT 0
5813#define PDB_MOD_MOD(x) (((uint32_t)(((uint32_t)(x))<<PDB_MOD_MOD_SHIFT))&PDB_MOD_MOD_MASK)
5814/* CNT Bit Fields */
5815#define PDB_CNT_CNT_MASK 0xFFFFu
5816#define PDB_CNT_CNT_SHIFT 0
5817#define PDB_CNT_CNT(x) (((uint32_t)(((uint32_t)(x))<<PDB_CNT_CNT_SHIFT))&PDB_CNT_CNT_MASK)
5818/* IDLY Bit Fields */
5819#define PDB_IDLY_IDLY_MASK 0xFFFFu
5820#define PDB_IDLY_IDLY_SHIFT 0
5821#define PDB_IDLY_IDLY(x) (((uint32_t)(((uint32_t)(x))<<PDB_IDLY_IDLY_SHIFT))&PDB_IDLY_IDLY_MASK)
5822/* C1 Bit Fields */
5823#define PDB_C1_EN_MASK 0xFFu
5824#define PDB_C1_EN_SHIFT 0
5825#define PDB_C1_EN(x) (((uint32_t)(((uint32_t)(x))<<PDB_C1_EN_SHIFT))&PDB_C1_EN_MASK)
5826#define PDB_C1_TOS_MASK 0xFF00u
5827#define PDB_C1_TOS_SHIFT 8
5828#define PDB_C1_TOS(x) (((uint32_t)(((uint32_t)(x))<<PDB_C1_TOS_SHIFT))&PDB_C1_TOS_MASK)
5829#define PDB_C1_BB_MASK 0xFF0000u
5830#define PDB_C1_BB_SHIFT 16
5831#define PDB_C1_BB(x) (((uint32_t)(((uint32_t)(x))<<PDB_C1_BB_SHIFT))&PDB_C1_BB_MASK)
5832/* S Bit Fields */
5833#define PDB_S_ERR_MASK 0xFFu
5834#define PDB_S_ERR_SHIFT 0
5835#define PDB_S_ERR(x) (((uint32_t)(((uint32_t)(x))<<PDB_S_ERR_SHIFT))&PDB_S_ERR_MASK)
5836#define PDB_S_CF_MASK 0xFF0000u
5837#define PDB_S_CF_SHIFT 16
5838#define PDB_S_CF(x) (((uint32_t)(((uint32_t)(x))<<PDB_S_CF_SHIFT))&PDB_S_CF_MASK)
5839/* DLY Bit Fields */
5840#define PDB_DLY_DLY_MASK 0xFFFFu
5841#define PDB_DLY_DLY_SHIFT 0
5842#define PDB_DLY_DLY(x) (((uint32_t)(((uint32_t)(x))<<PDB_DLY_DLY_SHIFT))&PDB_DLY_DLY_MASK)
5843/* INTC Bit Fields */
5844#define PDB_INTC_TOE_MASK 0x1u
5845#define PDB_INTC_TOE_SHIFT 0
5846#define PDB_INTC_EXT_MASK 0x2u
5847#define PDB_INTC_EXT_SHIFT 1
5848/* INT Bit Fields */
5849#define PDB_INT_INT_MASK 0xFFFFu
5850#define PDB_INT_INT_SHIFT 0
5851#define PDB_INT_INT(x) (((uint32_t)(((uint32_t)(x))<<PDB_INT_INT_SHIFT))&PDB_INT_INT_MASK)
5852/* POEN Bit Fields */
5853#define PDB_POEN_POEN_MASK 0xFFu
5854#define PDB_POEN_POEN_SHIFT 0
5855#define PDB_POEN_POEN(x) (((uint32_t)(((uint32_t)(x))<<PDB_POEN_POEN_SHIFT))&PDB_POEN_POEN_MASK)
5856/* PODLY Bit Fields */
5857#define PDB_PODLY_DLY2_MASK 0xFFFFu
5858#define PDB_PODLY_DLY2_SHIFT 0
5859#define PDB_PODLY_DLY2(x) (((uint32_t)(((uint32_t)(x))<<PDB_PODLY_DLY2_SHIFT))&PDB_PODLY_DLY2_MASK)
5860#define PDB_PODLY_DLY1_MASK 0xFFFF0000u
5861#define PDB_PODLY_DLY1_SHIFT 16
5862#define PDB_PODLY_DLY1(x) (((uint32_t)(((uint32_t)(x))<<PDB_PODLY_DLY1_SHIFT))&PDB_PODLY_DLY1_MASK)
5863
5864 /* end of group PDB_Register_Masks */
5865
5866
5867/* PDB - Peripheral instance base addresses */
5869#define PDB0_BASE (0x40036000u)
5871#define PDB0 ((PDB_Type *)PDB0_BASE)
5872
5873 /* end of group PDB_Peripheral_Access_Layer */
5874
5875
5876/* ----------------------------------------------------------------------------
5877 -- PIT Peripheral Access Layer
5878 ---------------------------------------------------------------------------- */
5879
5884typedef struct {
5885 __IO uint32_t MCR;
5886 uint8_t RESERVED_0[252];
5887 struct { /* offset: 0x100, array step: 0x10 */
5888 __IO uint32_t LDVAL;
5889 __I uint32_t CVAL;
5890 __IO uint32_t TCTRL;
5891 __IO uint32_t TFLG;
5892 } CHANNEL[4];
5893} PIT_Type;
5894
5895/* ----------------------------------------------------------------------------
5896 -- PIT Register Masks
5897 ---------------------------------------------------------------------------- */
5898
5902/* MCR Bit Fields */
5903#define PIT_MCR_FRZ_MASK 0x1u
5904#define PIT_MCR_FRZ_SHIFT 0
5905#define PIT_MCR_MDIS_MASK 0x2u
5906#define PIT_MCR_MDIS_SHIFT 1
5907/* LDVAL Bit Fields */
5908#define PIT_LDVAL_TSV_MASK 0xFFFFFFFFu
5909#define PIT_LDVAL_TSV_SHIFT 0
5910#define PIT_LDVAL_TSV(x) (((uint32_t)(((uint32_t)(x))<<PIT_LDVAL_TSV_SHIFT))&PIT_LDVAL_TSV_MASK)
5911/* CVAL Bit Fields */
5912#define PIT_CVAL_TVL_MASK 0xFFFFFFFFu
5913#define PIT_CVAL_TVL_SHIFT 0
5914#define PIT_CVAL_TVL(x) (((uint32_t)(((uint32_t)(x))<<PIT_CVAL_TVL_SHIFT))&PIT_CVAL_TVL_MASK)
5915/* TCTRL Bit Fields */
5916#define PIT_TCTRL_TEN_MASK 0x1u
5917#define PIT_TCTRL_TEN_SHIFT 0
5918#define PIT_TCTRL_TIE_MASK 0x2u
5919#define PIT_TCTRL_TIE_SHIFT 1
5920/* TFLG Bit Fields */
5921#define PIT_TFLG_TIF_MASK 0x1u
5922#define PIT_TFLG_TIF_SHIFT 0
5923
5924 /* end of group PIT_Register_Masks */
5925
5926
5927/* PIT - Peripheral instance base addresses */
5929#define PIT_BASE (0x40037000u)
5931#define PIT ((PIT_Type *)PIT_BASE)
5932
5933 /* end of group PIT_Peripheral_Access_Layer */
5934
5935
5936/* ----------------------------------------------------------------------------
5937 -- PMC Peripheral Access Layer
5938 ---------------------------------------------------------------------------- */
5939
5944typedef struct {
5945 __IO uint8_t LVDSC1;
5946 __IO uint8_t LVDSC2;
5947 __IO uint8_t REGSC;
5948} PMC_Type;
5949
5950/* ----------------------------------------------------------------------------
5951 -- PMC Register Masks
5952 ---------------------------------------------------------------------------- */
5953
5957/* LVDSC1 Bit Fields */
5958#define PMC_LVDSC1_LVDV_MASK 0x3u
5959#define PMC_LVDSC1_LVDV_SHIFT 0
5960#define PMC_LVDSC1_LVDV(x) (((uint8_t)(((uint8_t)(x))<<PMC_LVDSC1_LVDV_SHIFT))&PMC_LVDSC1_LVDV_MASK)
5961#define PMC_LVDSC1_LVDRE_MASK 0x10u
5962#define PMC_LVDSC1_LVDRE_SHIFT 4
5963#define PMC_LVDSC1_LVDIE_MASK 0x20u
5964#define PMC_LVDSC1_LVDIE_SHIFT 5
5965#define PMC_LVDSC1_LVDACK_MASK 0x40u
5966#define PMC_LVDSC1_LVDACK_SHIFT 6
5967#define PMC_LVDSC1_LVDF_MASK 0x80u
5968#define PMC_LVDSC1_LVDF_SHIFT 7
5969/* LVDSC2 Bit Fields */
5970#define PMC_LVDSC2_LVWV_MASK 0x3u
5971#define PMC_LVDSC2_LVWV_SHIFT 0
5972#define PMC_LVDSC2_LVWV(x) (((uint8_t)(((uint8_t)(x))<<PMC_LVDSC2_LVWV_SHIFT))&PMC_LVDSC2_LVWV_MASK)
5973#define PMC_LVDSC2_LVWIE_MASK 0x20u
5974#define PMC_LVDSC2_LVWIE_SHIFT 5
5975#define PMC_LVDSC2_LVWACK_MASK 0x40u
5976#define PMC_LVDSC2_LVWACK_SHIFT 6
5977#define PMC_LVDSC2_LVWF_MASK 0x80u
5978#define PMC_LVDSC2_LVWF_SHIFT 7
5979/* REGSC Bit Fields */
5980#define PMC_REGSC_BGBE_MASK 0x1u
5981#define PMC_REGSC_BGBE_SHIFT 0
5982#define PMC_REGSC_REGONS_MASK 0x4u
5983#define PMC_REGSC_REGONS_SHIFT 2
5984#define PMC_REGSC_VLPRS_MASK 0x8u
5985#define PMC_REGSC_VLPRS_SHIFT 3
5986#define PMC_REGSC_TRAMPO_MASK 0x10u
5987#define PMC_REGSC_TRAMPO_SHIFT 4
5988
5989 /* end of group PMC_Register_Masks */
5990
5991
5992/* PMC - Peripheral instance base addresses */
5994#define PMC_BASE (0x4007D000u)
5996#define PMC ((PMC_Type *)PMC_BASE)
5997
5998 /* end of group PMC_Peripheral_Access_Layer */
5999
6000
6001/* ----------------------------------------------------------------------------
6002 -- PORT Peripheral Access Layer
6003 ---------------------------------------------------------------------------- */
6004
6009typedef struct {
6010 __IO uint32_t PCR[32];
6011 __O uint32_t GPCLR;
6012 __O uint32_t GPCHR;
6013 uint8_t RESERVED_0[24];
6014 __IO uint32_t ISFR;
6015 uint8_t RESERVED_1[28];
6016 __IO uint32_t DFER;
6017 __IO uint32_t DFCR;
6018 __IO uint32_t DFWR;
6019} PORT_Type;
6020
6021/* ----------------------------------------------------------------------------
6022 -- PORT Register Masks
6023 ---------------------------------------------------------------------------- */
6024
6028/* PCR Bit Fields */
6029#define PORT_PCR_PS_MASK 0x1u
6030#define PORT_PCR_PS_SHIFT 0
6031#define PORT_PCR_PE_MASK 0x2u
6032#define PORT_PCR_PE_SHIFT 1
6033#define PORT_PCR_SRE_MASK 0x4u
6034#define PORT_PCR_SRE_SHIFT 2
6035#define PORT_PCR_PFE_MASK 0x10u
6036#define PORT_PCR_PFE_SHIFT 4
6037#define PORT_PCR_ODE_MASK 0x20u
6038#define PORT_PCR_ODE_SHIFT 5
6039#define PORT_PCR_DSE_MASK 0x40u
6040#define PORT_PCR_DSE_SHIFT 6
6041#define PORT_PCR_MUX_MASK 0x700u
6042#define PORT_PCR_MUX_SHIFT 8
6043#define PORT_PCR_MUX(x) (((uint32_t)(((uint32_t)(x))<<PORT_PCR_MUX_SHIFT))&PORT_PCR_MUX_MASK)
6044#define PORT_PCR_LK_MASK 0x8000u
6045#define PORT_PCR_LK_SHIFT 15
6046#define PORT_PCR_IRQC_MASK 0xF0000u
6047#define PORT_PCR_IRQC_SHIFT 16
6048#define PORT_PCR_IRQC(x) (((uint32_t)(((uint32_t)(x))<<PORT_PCR_IRQC_SHIFT))&PORT_PCR_IRQC_MASK)
6049#define PORT_PCR_ISF_MASK 0x1000000u
6050#define PORT_PCR_ISF_SHIFT 24
6051/* GPCLR Bit Fields */
6052#define PORT_GPCLR_GPWD_MASK 0xFFFFu
6053#define PORT_GPCLR_GPWD_SHIFT 0
6054#define PORT_GPCLR_GPWD(x) (((uint32_t)(((uint32_t)(x))<<PORT_GPCLR_GPWD_SHIFT))&PORT_GPCLR_GPWD_MASK)
6055#define PORT_GPCLR_GPWE_MASK 0xFFFF0000u
6056#define PORT_GPCLR_GPWE_SHIFT 16
6057#define PORT_GPCLR_GPWE(x) (((uint32_t)(((uint32_t)(x))<<PORT_GPCLR_GPWE_SHIFT))&PORT_GPCLR_GPWE_MASK)
6058/* GPCHR Bit Fields */
6059#define PORT_GPCHR_GPWD_MASK 0xFFFFu
6060#define PORT_GPCHR_GPWD_SHIFT 0
6061#define PORT_GPCHR_GPWD(x) (((uint32_t)(((uint32_t)(x))<<PORT_GPCHR_GPWD_SHIFT))&PORT_GPCHR_GPWD_MASK)
6062#define PORT_GPCHR_GPWE_MASK 0xFFFF0000u
6063#define PORT_GPCHR_GPWE_SHIFT 16
6064#define PORT_GPCHR_GPWE(x) (((uint32_t)(((uint32_t)(x))<<PORT_GPCHR_GPWE_SHIFT))&PORT_GPCHR_GPWE_MASK)
6065/* ISFR Bit Fields */
6066#define PORT_ISFR_ISF_MASK 0xFFFFFFFFu
6067#define PORT_ISFR_ISF_SHIFT 0
6068#define PORT_ISFR_ISF(x) (((uint32_t)(((uint32_t)(x))<<PORT_ISFR_ISF_SHIFT))&PORT_ISFR_ISF_MASK)
6069/* DFER Bit Fields */
6070#define PORT_DFER_DFE_MASK 0xFFFFFFFFu
6071#define PORT_DFER_DFE_SHIFT 0
6072#define PORT_DFER_DFE(x) (((uint32_t)(((uint32_t)(x))<<PORT_DFER_DFE_SHIFT))&PORT_DFER_DFE_MASK)
6073/* DFCR Bit Fields */
6074#define PORT_DFCR_CS_MASK 0x1u
6075#define PORT_DFCR_CS_SHIFT 0
6076/* DFWR Bit Fields */
6077#define PORT_DFWR_FILT_MASK 0x1Fu
6078#define PORT_DFWR_FILT_SHIFT 0
6079#define PORT_DFWR_FILT(x) (((uint32_t)(((uint32_t)(x))<<PORT_DFWR_FILT_SHIFT))&PORT_DFWR_FILT_MASK)
6080
6081 /* end of group PORT_Register_Masks */
6082
6083
6084/* PORT - Peripheral instance base addresses */
6086#define PORTA_BASE (0x40049000u)
6088#define PORTA ((PORT_Type *)PORTA_BASE)
6090#define PORTB_BASE (0x4004A000u)
6092#define PORTB ((PORT_Type *)PORTB_BASE)
6094#define PORTC_BASE (0x4004B000u)
6096#define PORTC ((PORT_Type *)PORTC_BASE)
6098#define PORTD_BASE (0x4004C000u)
6100#define PORTD ((PORT_Type *)PORTD_BASE)
6102#define PORTE_BASE (0x4004D000u)
6104#define PORTE ((PORT_Type *)PORTE_BASE)
6105
6106 /* end of group PORT_Peripheral_Access_Layer */
6107
6108
6109/* ----------------------------------------------------------------------------
6110 -- GPIO Peripheral Access Layer
6111 ---------------------------------------------------------------------------- */
6112
6117typedef struct {
6118 __IO uint32_t PDOR;
6119 __O uint32_t PSOR;
6120 __O uint32_t PCOR;
6121 __O uint32_t PTOR;
6122 __I uint32_t PDIR;
6123 __IO uint32_t PDDR;
6124} GPIO_Type;
6125
6126/* ----------------------------------------------------------------------------
6127 -- GPIO Register Masks
6128 ---------------------------------------------------------------------------- */
6129
6133/* PDOR Bit Fields */
6134#define GPIO_PDOR_PDO_MASK 0xFFFFFFFFu
6135#define GPIO_PDOR_PDO_SHIFT 0
6136#define GPIO_PDOR_PDO(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PDOR_PDO_SHIFT))&GPIO_PDOR_PDO_MASK)
6137/* PSOR Bit Fields */
6138#define GPIO_PSOR_PTSO_MASK 0xFFFFFFFFu
6139#define GPIO_PSOR_PTSO_SHIFT 0
6140#define GPIO_PSOR_PTSO(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PSOR_PTSO_SHIFT))&GPIO_PSOR_PTSO_MASK)
6141/* PCOR Bit Fields */
6142#define GPIO_PCOR_PTCO_MASK 0xFFFFFFFFu
6143#define GPIO_PCOR_PTCO_SHIFT 0
6144#define GPIO_PCOR_PTCO(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PCOR_PTCO_SHIFT))&GPIO_PCOR_PTCO_MASK)
6145/* PTOR Bit Fields */
6146#define GPIO_PTOR_PTTO_MASK 0xFFFFFFFFu
6147#define GPIO_PTOR_PTTO_SHIFT 0
6148#define GPIO_PTOR_PTTO(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PTOR_PTTO_SHIFT))&GPIO_PTOR_PTTO_MASK)
6149/* PDIR Bit Fields */
6150#define GPIO_PDIR_PDI_MASK 0xFFFFFFFFu
6151#define GPIO_PDIR_PDI_SHIFT 0
6152#define GPIO_PDIR_PDI(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PDIR_PDI_SHIFT))&GPIO_PDIR_PDI_MASK)
6153/* PDDR Bit Fields */
6154#define GPIO_PDDR_PDD_MASK 0xFFFFFFFFu
6155#define GPIO_PDDR_PDD_SHIFT 0
6156#define GPIO_PDDR_PDD(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PDDR_PDD_SHIFT))&GPIO_PDDR_PDD_MASK)
6157
6158 /* end of group GPIO_Register_Masks */
6159
6160
6161/* GPIO - Peripheral instance base addresses */
6163#define PTA_BASE (0x400FF000u)
6165#define PTA ((GPIO_Type *)PTA_BASE)
6167#define PTB_BASE (0x400FF040u)
6169#define PTB ((GPIO_Type *)PTB_BASE)
6171#define PTC_BASE (0x400FF080u)
6173#define PTC ((GPIO_Type *)PTC_BASE)
6175#define PTD_BASE (0x400FF0C0u)
6177#define PTD ((GPIO_Type *)PTD_BASE)
6179#define PTE_BASE (0x400FF100u)
6181#define PTE ((GPIO_Type *)PTE_BASE)
6182
6183 /* end of group GPIO_Peripheral_Access_Layer */
6184
6185
6186/* ----------------------------------------------------------------------------
6187 -- RFSYS Peripheral Access Layer
6188 ---------------------------------------------------------------------------- */
6189
6194typedef struct {
6195 __IO uint32_t REG[8];
6196} RFSYS_Type;
6197
6198/* ----------------------------------------------------------------------------
6199 -- RFSYS Register Masks
6200 ---------------------------------------------------------------------------- */
6201
6205/* REG Bit Fields */
6206#define RFSYS_REG_LL_MASK 0xFFu
6207#define RFSYS_REG_LL_SHIFT 0
6208#define RFSYS_REG_LL(x) (((uint32_t)(((uint32_t)(x))<<RFSYS_REG_LL_SHIFT))&RFSYS_REG_LL_MASK)
6209#define RFSYS_REG_LH_MASK 0xFF00u
6210#define RFSYS_REG_LH_SHIFT 8
6211#define RFSYS_REG_LH(x) (((uint32_t)(((uint32_t)(x))<<RFSYS_REG_LH_SHIFT))&RFSYS_REG_LH_MASK)
6212#define RFSYS_REG_HL_MASK 0xFF0000u
6213#define RFSYS_REG_HL_SHIFT 16
6214#define RFSYS_REG_HL(x) (((uint32_t)(((uint32_t)(x))<<RFSYS_REG_HL_SHIFT))&RFSYS_REG_HL_MASK)
6215#define RFSYS_REG_HH_MASK 0xFF000000u
6216#define RFSYS_REG_HH_SHIFT 24
6217#define RFSYS_REG_HH(x) (((uint32_t)(((uint32_t)(x))<<RFSYS_REG_HH_SHIFT))&RFSYS_REG_HH_MASK)
6218
6219 /* end of group RFSYS_Register_Masks */
6220
6221
6222/* RFSYS - Peripheral instance base addresses */
6224#define RFSYS_BASE (0x40041000u)
6226#define RFSYS ((RFSYS_Type *)RFSYS_BASE)
6227
6228 /* end of group RFSYS_Peripheral_Access_Layer */
6229
6230
6231/* ----------------------------------------------------------------------------
6232 -- RFVBAT Peripheral Access Layer
6233 ---------------------------------------------------------------------------- */
6234
6239typedef struct {
6240 __IO uint32_t REG[8];
6241} RFVBAT_Type;
6242
6243/* ----------------------------------------------------------------------------
6244 -- RFVBAT Register Masks
6245 ---------------------------------------------------------------------------- */
6246
6250/* REG Bit Fields */
6251#define RFVBAT_REG_LL_MASK 0xFFu
6252#define RFVBAT_REG_LL_SHIFT 0
6253#define RFVBAT_REG_LL(x) (((uint32_t)(((uint32_t)(x))<<RFVBAT_REG_LL_SHIFT))&RFVBAT_REG_LL_MASK)
6254#define RFVBAT_REG_LH_MASK 0xFF00u
6255#define RFVBAT_REG_LH_SHIFT 8
6256#define RFVBAT_REG_LH(x) (((uint32_t)(((uint32_t)(x))<<RFVBAT_REG_LH_SHIFT))&RFVBAT_REG_LH_MASK)
6257#define RFVBAT_REG_HL_MASK 0xFF0000u
6258#define RFVBAT_REG_HL_SHIFT 16
6259#define RFVBAT_REG_HL(x) (((uint32_t)(((uint32_t)(x))<<RFVBAT_REG_HL_SHIFT))&RFVBAT_REG_HL_MASK)
6260#define RFVBAT_REG_HH_MASK 0xFF000000u
6261#define RFVBAT_REG_HH_SHIFT 24
6262#define RFVBAT_REG_HH(x) (((uint32_t)(((uint32_t)(x))<<RFVBAT_REG_HH_SHIFT))&RFVBAT_REG_HH_MASK)
6263
6264 /* end of group RFVBAT_Register_Masks */
6265
6266
6267/* RFVBAT - Peripheral instance base addresses */
6269#define RFVBAT_BASE (0x4003E000u)
6271#define RFVBAT ((RFVBAT_Type *)RFVBAT_BASE)
6272
6273 /* end of group RFVBAT_Peripheral_Access_Layer */
6274
6275
6276/* ----------------------------------------------------------------------------
6277 -- RNG Peripheral Access Layer
6278 ---------------------------------------------------------------------------- */
6279
6284typedef struct {
6285 __I uint32_t VER;
6286 __IO uint32_t CMD;
6287 __IO uint32_t CR;
6288 __I uint32_t SR;
6289 __I uint32_t ESR;
6290 __I uint32_t OUT;
6291} RNG_Type;
6292
6293/* ----------------------------------------------------------------------------
6294 -- RNG Register Masks
6295 ---------------------------------------------------------------------------- */
6296
6300/* VER Bit Fields */
6301#define RNG_VER_MINOR_MASK 0xFFu
6302#define RNG_VER_MINOR_SHIFT 0
6303#define RNG_VER_MINOR(x) (((uint32_t)(((uint32_t)(x))<<RNG_VER_MINOR_SHIFT))&RNG_VER_MINOR_MASK)
6304#define RNG_VER_MAJOR_MASK 0xFF00u
6305#define RNG_VER_MAJOR_SHIFT 8
6306#define RNG_VER_MAJOR(x) (((uint32_t)(((uint32_t)(x))<<RNG_VER_MAJOR_SHIFT))&RNG_VER_MAJOR_MASK)
6307#define RNG_VER_TYPE_MASK 0xF0000000u
6308#define RNG_VER_TYPE_SHIFT 28
6309#define RNG_VER_TYPE(x) (((uint32_t)(((uint32_t)(x))<<RNG_VER_TYPE_SHIFT))&RNG_VER_TYPE_MASK)
6310/* CMD Bit Fields */
6311#define RNG_CMD_ST_MASK 0x1u
6312#define RNG_CMD_ST_SHIFT 0
6313#define RNG_CMD_GS_MASK 0x2u
6314#define RNG_CMD_GS_SHIFT 1
6315#define RNG_CMD_CI_MASK 0x10u
6316#define RNG_CMD_CI_SHIFT 4
6317#define RNG_CMD_CE_MASK 0x20u
6318#define RNG_CMD_CE_SHIFT 5
6319#define RNG_CMD_SR_MASK 0x40u
6320#define RNG_CMD_SR_SHIFT 6
6321/* CR Bit Fields */
6322#define RNG_CR_FUFMOD_MASK 0x3u
6323#define RNG_CR_FUFMOD_SHIFT 0
6324#define RNG_CR_FUFMOD(x) (((uint32_t)(((uint32_t)(x))<<RNG_CR_FUFMOD_SHIFT))&RNG_CR_FUFMOD_MASK)
6325#define RNG_CR_AR_MASK 0x10u
6326#define RNG_CR_AR_SHIFT 4
6327#define RNG_CR_MASKDONE_MASK 0x20u
6328#define RNG_CR_MASKDONE_SHIFT 5
6329#define RNG_CR_MASKERR_MASK 0x40u
6330#define RNG_CR_MASKERR_SHIFT 6
6331/* SR Bit Fields */
6332#define RNG_SR_BUSY_MASK 0x2u
6333#define RNG_SR_BUSY_SHIFT 1
6334#define RNG_SR_SLP_MASK 0x4u
6335#define RNG_SR_SLP_SHIFT 2
6336#define RNG_SR_RS_MASK 0x8u
6337#define RNG_SR_RS_SHIFT 3
6338#define RNG_SR_STDN_MASK 0x10u
6339#define RNG_SR_STDN_SHIFT 4
6340#define RNG_SR_SDN_MASK 0x20u
6341#define RNG_SR_SDN_SHIFT 5
6342#define RNG_SR_NSDN_MASK 0x40u
6343#define RNG_SR_NSDN_SHIFT 6
6344#define RNG_SR_FIFO_LVL_MASK 0xF00u
6345#define RNG_SR_FIFO_LVL_SHIFT 8
6346#define RNG_SR_FIFO_LVL(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_FIFO_LVL_SHIFT))&RNG_SR_FIFO_LVL_MASK)
6347#define RNG_SR_FIFO_SIZE_MASK 0xF000u
6348#define RNG_SR_FIFO_SIZE_SHIFT 12
6349#define RNG_SR_FIFO_SIZE(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_FIFO_SIZE_SHIFT))&RNG_SR_FIFO_SIZE_MASK)
6350#define RNG_SR_ERR_MASK 0x10000u
6351#define RNG_SR_ERR_SHIFT 16
6352#define RNG_SR_ST_PF_MASK 0xE00000u
6353#define RNG_SR_ST_PF_SHIFT 21
6354#define RNG_SR_ST_PF(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_ST_PF_SHIFT))&RNG_SR_ST_PF_MASK)
6355#define RNG_SR_STATPF_MASK 0xFF000000u
6356#define RNG_SR_STATPF_SHIFT 24
6357#define RNG_SR_STATPF(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_STATPF_SHIFT))&RNG_SR_STATPF_MASK)
6358/* ESR Bit Fields */
6359#define RNG_ESR_LFE_MASK 0x1u
6360#define RNG_ESR_LFE_SHIFT 0
6361#define RNG_ESR_OSCE_MASK 0x2u
6362#define RNG_ESR_OSCE_SHIFT 1
6363#define RNG_ESR_STE_MASK 0x4u
6364#define RNG_ESR_STE_SHIFT 2
6365#define RNG_ESR_SATE_MASK 0x8u
6366#define RNG_ESR_SATE_SHIFT 3
6367#define RNG_ESR_FUFE_MASK 0x10u
6368#define RNG_ESR_FUFE_SHIFT 4
6369/* OUT Bit Fields */
6370#define RNG_OUT_RANDOUT_MASK 0xFFFFFFFFu
6371#define RNG_OUT_RANDOUT_SHIFT 0
6372#define RNG_OUT_RANDOUT(x) (((uint32_t)(((uint32_t)(x))<<RNG_OUT_RANDOUT_SHIFT))&RNG_OUT_RANDOUT_MASK)
6373
6374 /* end of group RNG_Register_Masks */
6375
6376
6377/* RNG - Peripheral instance base addresses */
6379#define RNG_BASE (0x400A0000u)
6381#define RNG ((RNG_Type *)RNG_BASE)
6382
6383 /* end of group RNG_Peripheral_Access_Layer */
6384
6385
6386/* ----------------------------------------------------------------------------
6387 -- RTC Peripheral Access Layer
6388 ---------------------------------------------------------------------------- */
6389
6394typedef struct {
6395 __IO uint32_t TSR;
6396 __IO uint32_t TPR;
6397 __IO uint32_t TAR;
6398 __IO uint32_t TCR;
6399 __IO uint32_t CR;
6400 __IO uint32_t SR;
6401 __IO uint32_t LR;
6402 __IO uint32_t CCR;
6403 uint8_t RESERVED_0[2016];
6404 __IO uint32_t WAR;
6405 __IO uint32_t RAR;
6406} RTC_Type;
6407
6408/* ----------------------------------------------------------------------------
6409 -- RTC Register Masks
6410 ---------------------------------------------------------------------------- */
6411
6415/* TSR Bit Fields */
6416#define RTC_TSR_TSR_MASK 0xFFFFFFFFu
6417#define RTC_TSR_TSR_SHIFT 0
6418#define RTC_TSR_TSR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TSR_TSR_SHIFT))&RTC_TSR_TSR_MASK)
6419/* TPR Bit Fields */
6420#define RTC_TPR_TPR_MASK 0xFFFFu
6421#define RTC_TPR_TPR_SHIFT 0
6422#define RTC_TPR_TPR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TPR_TPR_SHIFT))&RTC_TPR_TPR_MASK)
6423/* TAR Bit Fields */
6424#define RTC_TAR_TAR_MASK 0xFFFFFFFFu
6425#define RTC_TAR_TAR_SHIFT 0
6426#define RTC_TAR_TAR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TAR_TAR_SHIFT))&RTC_TAR_TAR_MASK)
6427/* TCR Bit Fields */
6428#define RTC_TCR_TCR_MASK 0xFFu
6429#define RTC_TCR_TCR_SHIFT 0
6430#define RTC_TCR_TCR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TCR_TCR_SHIFT))&RTC_TCR_TCR_MASK)
6431#define RTC_TCR_CIR_MASK 0xFF00u
6432#define RTC_TCR_CIR_SHIFT 8
6433#define RTC_TCR_CIR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TCR_CIR_SHIFT))&RTC_TCR_CIR_MASK)
6434#define RTC_TCR_TCV_MASK 0xFF0000u
6435#define RTC_TCR_TCV_SHIFT 16
6436#define RTC_TCR_TCV(x) (((uint32_t)(((uint32_t)(x))<<RTC_TCR_TCV_SHIFT))&RTC_TCR_TCV_MASK)
6437#define RTC_TCR_CIC_MASK 0xFF000000u
6438#define RTC_TCR_CIC_SHIFT 24
6439#define RTC_TCR_CIC(x) (((uint32_t)(((uint32_t)(x))<<RTC_TCR_CIC_SHIFT))&RTC_TCR_CIC_MASK)
6440/* CR Bit Fields */
6441#define RTC_CR_SWR_MASK 0x1u
6442#define RTC_CR_SWR_SHIFT 0
6443#define RTC_CR_WPE_MASK 0x2u
6444#define RTC_CR_WPE_SHIFT 1
6445#define RTC_CR_SUP_MASK 0x4u
6446#define RTC_CR_SUP_SHIFT 2
6447#define RTC_CR_UM_MASK 0x8u
6448#define RTC_CR_UM_SHIFT 3
6449#define RTC_CR_OSCE_MASK 0x100u
6450#define RTC_CR_OSCE_SHIFT 8
6451#define RTC_CR_CLKO_MASK 0x200u
6452#define RTC_CR_CLKO_SHIFT 9
6453#define RTC_CR_SC16P_MASK 0x400u
6454#define RTC_CR_SC16P_SHIFT 10
6455#define RTC_CR_SC8P_MASK 0x800u
6456#define RTC_CR_SC8P_SHIFT 11
6457#define RTC_CR_SC4P_MASK 0x1000u
6458#define RTC_CR_SC4P_SHIFT 12
6459#define RTC_CR_SC2P_MASK 0x2000u
6460#define RTC_CR_SC2P_SHIFT 13
6461/* SR Bit Fields */
6462#define RTC_SR_TIF_MASK 0x1u
6463#define RTC_SR_TIF_SHIFT 0
6464#define RTC_SR_TOF_MASK 0x2u
6465#define RTC_SR_TOF_SHIFT 1
6466#define RTC_SR_TAF_MASK 0x4u
6467#define RTC_SR_TAF_SHIFT 2
6468#define RTC_SR_TCE_MASK 0x10u
6469#define RTC_SR_TCE_SHIFT 4
6470/* LR Bit Fields */
6471#define RTC_LR_TCL_MASK 0x8u
6472#define RTC_LR_TCL_SHIFT 3
6473#define RTC_LR_CRL_MASK 0x10u
6474#define RTC_LR_CRL_SHIFT 4
6475#define RTC_LR_SRL_MASK 0x20u
6476#define RTC_LR_SRL_SHIFT 5
6477/* CCR Bit Fields */
6478#define RTC_CCR_CONFIG_MASK 0xFFu
6479#define RTC_CCR_CONFIG_SHIFT 0
6480#define RTC_CCR_CONFIG(x) (((uint32_t)(((uint32_t)(x))<<RTC_CCR_CONFIG_SHIFT))&RTC_CCR_CONFIG_MASK)
6481/* WAR Bit Fields */
6482#define RTC_WAR_TSRW_MASK 0x1u
6483#define RTC_WAR_TSRW_SHIFT 0
6484#define RTC_WAR_TPRW_MASK 0x2u
6485#define RTC_WAR_TPRW_SHIFT 1
6486#define RTC_WAR_TARW_MASK 0x4u
6487#define RTC_WAR_TARW_SHIFT 2
6488#define RTC_WAR_TCRW_MASK 0x8u
6489#define RTC_WAR_TCRW_SHIFT 3
6490#define RTC_WAR_CRW_MASK 0x10u
6491#define RTC_WAR_CRW_SHIFT 4
6492#define RTC_WAR_SRW_MASK 0x20u
6493#define RTC_WAR_SRW_SHIFT 5
6494#define RTC_WAR_LRW_MASK 0x40u
6495#define RTC_WAR_LRW_SHIFT 6
6496#define RTC_WAR_CCRW_MASK 0x80u
6497#define RTC_WAR_CCRW_SHIFT 7
6498/* RAR Bit Fields */
6499#define RTC_RAR_TSRR_MASK 0x1u
6500#define RTC_RAR_TSRR_SHIFT 0
6501#define RTC_RAR_TPRR_MASK 0x2u
6502#define RTC_RAR_TPRR_SHIFT 1
6503#define RTC_RAR_TARR_MASK 0x4u
6504#define RTC_RAR_TARR_SHIFT 2
6505#define RTC_RAR_TCRR_MASK 0x8u
6506#define RTC_RAR_TCRR_SHIFT 3
6507#define RTC_RAR_CRR_MASK 0x10u
6508#define RTC_RAR_CRR_SHIFT 4
6509#define RTC_RAR_SRR_MASK 0x20u
6510#define RTC_RAR_SRR_SHIFT 5
6511#define RTC_RAR_LRR_MASK 0x40u
6512#define RTC_RAR_LRR_SHIFT 6
6513#define RTC_RAR_CCRR_MASK 0x80u
6514#define RTC_RAR_CCRR_SHIFT 7
6515
6516 /* end of group RTC_Register_Masks */
6517
6518
6519/* RTC - Peripheral instance base addresses */
6521#define RTC_BASE (0x4003D000u)
6523#define RTC ((RTC_Type *)RTC_BASE)
6524
6525 /* end of group RTC_Peripheral_Access_Layer */
6526
6527
6528/* ----------------------------------------------------------------------------
6529 -- SDHC Peripheral Access Layer
6530 ---------------------------------------------------------------------------- */
6531
6536typedef struct {
6537 __IO uint32_t DSADDR;
6538 __IO uint32_t BLKATTR;
6539 __IO uint32_t CMDARG;
6540 __IO uint32_t XFERTYP;
6541 __I uint32_t CMDRSP[4];
6542 __IO uint32_t DATPORT;
6543 __I uint32_t PRSSTAT;
6544 __IO uint32_t PROCTL;
6545 __IO uint32_t SYSCTL;
6546 __IO uint32_t IRQSTAT;
6547 __IO uint32_t IRQSTATEN;
6548 __IO uint32_t IRQSIGEN;
6549 __I uint32_t AC12ERR;
6550 __I uint32_t HTCAPBLT;
6551 __IO uint32_t WML;
6552 uint8_t RESERVED_0[8];
6553 __O uint32_t FEVT;
6554 __I uint32_t ADMAES;
6555 __IO uint32_t ADSADDR;
6556 uint8_t RESERVED_1[100];
6557 __IO uint32_t VENDOR;
6558 __IO uint32_t MMCBOOT;
6559 uint8_t RESERVED_2[52];
6560 __I uint32_t HOSTVER;
6561} SDHC_Type;
6562
6563/* ----------------------------------------------------------------------------
6564 -- SDHC Register Masks
6565 ---------------------------------------------------------------------------- */
6566
6570/* DSADDR Bit Fields */
6571#define SDHC_DSADDR_DSADDR_MASK 0xFFFFFFFCu
6572#define SDHC_DSADDR_DSADDR_SHIFT 2
6573#define SDHC_DSADDR_DSADDR(x) (((uint32_t)(((uint32_t)(x))<<SDHC_DSADDR_DSADDR_SHIFT))&SDHC_DSADDR_DSADDR_MASK)
6574/* BLKATTR Bit Fields */
6575#define SDHC_BLKATTR_BLKSIZE_MASK 0x1FFFu
6576#define SDHC_BLKATTR_BLKSIZE_SHIFT 0
6577#define SDHC_BLKATTR_BLKSIZE(x) (((uint32_t)(((uint32_t)(x))<<SDHC_BLKATTR_BLKSIZE_SHIFT))&SDHC_BLKATTR_BLKSIZE_MASK)
6578#define SDHC_BLKATTR_BLKCNT_MASK 0xFFFF0000u
6579#define SDHC_BLKATTR_BLKCNT_SHIFT 16
6580#define SDHC_BLKATTR_BLKCNT(x) (((uint32_t)(((uint32_t)(x))<<SDHC_BLKATTR_BLKCNT_SHIFT))&SDHC_BLKATTR_BLKCNT_MASK)
6581/* CMDARG Bit Fields */
6582#define SDHC_CMDARG_CMDARG_MASK 0xFFFFFFFFu
6583#define SDHC_CMDARG_CMDARG_SHIFT 0
6584#define SDHC_CMDARG_CMDARG(x) (((uint32_t)(((uint32_t)(x))<<SDHC_CMDARG_CMDARG_SHIFT))&SDHC_CMDARG_CMDARG_MASK)
6585/* XFERTYP Bit Fields */
6586#define SDHC_XFERTYP_DMAEN_MASK 0x1u
6587#define SDHC_XFERTYP_DMAEN_SHIFT 0
6588#define SDHC_XFERTYP_BCEN_MASK 0x2u
6589#define SDHC_XFERTYP_BCEN_SHIFT 1
6590#define SDHC_XFERTYP_AC12EN_MASK 0x4u
6591#define SDHC_XFERTYP_AC12EN_SHIFT 2
6592#define SDHC_XFERTYP_DTDSEL_MASK 0x10u
6593#define SDHC_XFERTYP_DTDSEL_SHIFT 4
6594#define SDHC_XFERTYP_MSBSEL_MASK 0x20u
6595#define SDHC_XFERTYP_MSBSEL_SHIFT 5
6596#define SDHC_XFERTYP_RSPTYP_MASK 0x30000u
6597#define SDHC_XFERTYP_RSPTYP_SHIFT 16
6598#define SDHC_XFERTYP_RSPTYP(x) (((uint32_t)(((uint32_t)(x))<<SDHC_XFERTYP_RSPTYP_SHIFT))&SDHC_XFERTYP_RSPTYP_MASK)
6599#define SDHC_XFERTYP_CCCEN_MASK 0x80000u
6600#define SDHC_XFERTYP_CCCEN_SHIFT 19
6601#define SDHC_XFERTYP_CICEN_MASK 0x100000u
6602#define SDHC_XFERTYP_CICEN_SHIFT 20
6603#define SDHC_XFERTYP_DPSEL_MASK 0x200000u
6604#define SDHC_XFERTYP_DPSEL_SHIFT 21
6605#define SDHC_XFERTYP_CMDTYP_MASK 0xC00000u
6606#define SDHC_XFERTYP_CMDTYP_SHIFT 22
6607#define SDHC_XFERTYP_CMDTYP(x) (((uint32_t)(((uint32_t)(x))<<SDHC_XFERTYP_CMDTYP_SHIFT))&SDHC_XFERTYP_CMDTYP_MASK)
6608#define SDHC_XFERTYP_CMDINX_MASK 0x3F000000u
6609#define SDHC_XFERTYP_CMDINX_SHIFT 24
6610#define SDHC_XFERTYP_CMDINX(x) (((uint32_t)(((uint32_t)(x))<<SDHC_XFERTYP_CMDINX_SHIFT))&SDHC_XFERTYP_CMDINX_MASK)
6611/* CMDRSP Bit Fields */
6612#define SDHC_CMDRSP_CMDRSP0_MASK 0xFFFFFFFFu
6613#define SDHC_CMDRSP_CMDRSP0_SHIFT 0
6614#define SDHC_CMDRSP_CMDRSP0(x) (((uint32_t)(((uint32_t)(x))<<SDHC_CMDRSP_CMDRSP0_SHIFT))&SDHC_CMDRSP_CMDRSP0_MASK)
6615#define SDHC_CMDRSP_CMDRSP1_MASK 0xFFFFFFFFu
6616#define SDHC_CMDRSP_CMDRSP1_SHIFT 0
6617#define SDHC_CMDRSP_CMDRSP1(x) (((uint32_t)(((uint32_t)(x))<<SDHC_CMDRSP_CMDRSP1_SHIFT))&SDHC_CMDRSP_CMDRSP1_MASK)
6618#define SDHC_CMDRSP_CMDRSP2_MASK 0xFFFFFFFFu
6619#define SDHC_CMDRSP_CMDRSP2_SHIFT 0
6620#define SDHC_CMDRSP_CMDRSP2(x) (((uint32_t)(((uint32_t)(x))<<SDHC_CMDRSP_CMDRSP2_SHIFT))&SDHC_CMDRSP_CMDRSP2_MASK)
6621#define SDHC_CMDRSP_CMDRSP3_MASK 0xFFFFFFFFu
6622#define SDHC_CMDRSP_CMDRSP3_SHIFT 0
6623#define SDHC_CMDRSP_CMDRSP3(x) (((uint32_t)(((uint32_t)(x))<<SDHC_CMDRSP_CMDRSP3_SHIFT))&SDHC_CMDRSP_CMDRSP3_MASK)
6624/* DATPORT Bit Fields */
6625#define SDHC_DATPORT_DATCONT_MASK 0xFFFFFFFFu
6626#define SDHC_DATPORT_DATCONT_SHIFT 0
6627#define SDHC_DATPORT_DATCONT(x) (((uint32_t)(((uint32_t)(x))<<SDHC_DATPORT_DATCONT_SHIFT))&SDHC_DATPORT_DATCONT_MASK)
6628/* PRSSTAT Bit Fields */
6629#define SDHC_PRSSTAT_CIHB_MASK 0x1u
6630#define SDHC_PRSSTAT_CIHB_SHIFT 0
6631#define SDHC_PRSSTAT_CDIHB_MASK 0x2u
6632#define SDHC_PRSSTAT_CDIHB_SHIFT 1
6633#define SDHC_PRSSTAT_DLA_MASK 0x4u
6634#define SDHC_PRSSTAT_DLA_SHIFT 2
6635#define SDHC_PRSSTAT_SDSTB_MASK 0x8u
6636#define SDHC_PRSSTAT_SDSTB_SHIFT 3
6637#define SDHC_PRSSTAT_IPGOFF_MASK 0x10u
6638#define SDHC_PRSSTAT_IPGOFF_SHIFT 4
6639#define SDHC_PRSSTAT_HCKOFF_MASK 0x20u
6640#define SDHC_PRSSTAT_HCKOFF_SHIFT 5
6641#define SDHC_PRSSTAT_PEROFF_MASK 0x40u
6642#define SDHC_PRSSTAT_PEROFF_SHIFT 6
6643#define SDHC_PRSSTAT_SDOFF_MASK 0x80u
6644#define SDHC_PRSSTAT_SDOFF_SHIFT 7
6645#define SDHC_PRSSTAT_WTA_MASK 0x100u
6646#define SDHC_PRSSTAT_WTA_SHIFT 8
6647#define SDHC_PRSSTAT_RTA_MASK 0x200u
6648#define SDHC_PRSSTAT_RTA_SHIFT 9
6649#define SDHC_PRSSTAT_BWEN_MASK 0x400u
6650#define SDHC_PRSSTAT_BWEN_SHIFT 10
6651#define SDHC_PRSSTAT_BREN_MASK 0x800u
6652#define SDHC_PRSSTAT_BREN_SHIFT 11
6653#define SDHC_PRSSTAT_CINS_MASK 0x10000u
6654#define SDHC_PRSSTAT_CINS_SHIFT 16
6655#define SDHC_PRSSTAT_CLSL_MASK 0x800000u
6656#define SDHC_PRSSTAT_CLSL_SHIFT 23
6657#define SDHC_PRSSTAT_DLSL_MASK 0xFF000000u
6658#define SDHC_PRSSTAT_DLSL_SHIFT 24
6659#define SDHC_PRSSTAT_DLSL(x) (((uint32_t)(((uint32_t)(x))<<SDHC_PRSSTAT_DLSL_SHIFT))&SDHC_PRSSTAT_DLSL_MASK)
6660/* PROCTL Bit Fields */
6661#define SDHC_PROCTL_LCTL_MASK 0x1u
6662#define SDHC_PROCTL_LCTL_SHIFT 0
6663#define SDHC_PROCTL_DTW_MASK 0x6u
6664#define SDHC_PROCTL_DTW_SHIFT 1
6665#define SDHC_PROCTL_DTW(x) (((uint32_t)(((uint32_t)(x))<<SDHC_PROCTL_DTW_SHIFT))&SDHC_PROCTL_DTW_MASK)
6666#define SDHC_PROCTL_D3CD_MASK 0x8u
6667#define SDHC_PROCTL_D3CD_SHIFT 3
6668#define SDHC_PROCTL_EMODE_MASK 0x30u
6669#define SDHC_PROCTL_EMODE_SHIFT 4
6670#define SDHC_PROCTL_EMODE(x) (((uint32_t)(((uint32_t)(x))<<SDHC_PROCTL_EMODE_SHIFT))&SDHC_PROCTL_EMODE_MASK)
6671#define SDHC_PROCTL_CDTL_MASK 0x40u
6672#define SDHC_PROCTL_CDTL_SHIFT 6
6673#define SDHC_PROCTL_CDSS_MASK 0x80u
6674#define SDHC_PROCTL_CDSS_SHIFT 7
6675#define SDHC_PROCTL_DMAS_MASK 0x300u
6676#define SDHC_PROCTL_DMAS_SHIFT 8
6677#define SDHC_PROCTL_DMAS(x) (((uint32_t)(((uint32_t)(x))<<SDHC_PROCTL_DMAS_SHIFT))&SDHC_PROCTL_DMAS_MASK)
6678#define SDHC_PROCTL_SABGREQ_MASK 0x10000u
6679#define SDHC_PROCTL_SABGREQ_SHIFT 16
6680#define SDHC_PROCTL_CREQ_MASK 0x20000u
6681#define SDHC_PROCTL_CREQ_SHIFT 17
6682#define SDHC_PROCTL_RWCTL_MASK 0x40000u
6683#define SDHC_PROCTL_RWCTL_SHIFT 18
6684#define SDHC_PROCTL_IABG_MASK 0x80000u
6685#define SDHC_PROCTL_IABG_SHIFT 19
6686#define SDHC_PROCTL_WECINT_MASK 0x1000000u
6687#define SDHC_PROCTL_WECINT_SHIFT 24
6688#define SDHC_PROCTL_WECINS_MASK 0x2000000u
6689#define SDHC_PROCTL_WECINS_SHIFT 25
6690#define SDHC_PROCTL_WECRM_MASK 0x4000000u
6691#define SDHC_PROCTL_WECRM_SHIFT 26
6692/* SYSCTL Bit Fields */
6693#define SDHC_SYSCTL_IPGEN_MASK 0x1u
6694#define SDHC_SYSCTL_IPGEN_SHIFT 0
6695#define SDHC_SYSCTL_HCKEN_MASK 0x2u
6696#define SDHC_SYSCTL_HCKEN_SHIFT 1
6697#define SDHC_SYSCTL_PEREN_MASK 0x4u
6698#define SDHC_SYSCTL_PEREN_SHIFT 2
6699#define SDHC_SYSCTL_SDCLKEN_MASK 0x8u
6700#define SDHC_SYSCTL_SDCLKEN_SHIFT 3
6701#define SDHC_SYSCTL_DVS_MASK 0xF0u
6702#define SDHC_SYSCTL_DVS_SHIFT 4
6703#define SDHC_SYSCTL_DVS(x) (((uint32_t)(((uint32_t)(x))<<SDHC_SYSCTL_DVS_SHIFT))&SDHC_SYSCTL_DVS_MASK)
6704#define SDHC_SYSCTL_SDCLKFS_MASK 0xFF00u
6705#define SDHC_SYSCTL_SDCLKFS_SHIFT 8
6706#define SDHC_SYSCTL_SDCLKFS(x) (((uint32_t)(((uint32_t)(x))<<SDHC_SYSCTL_SDCLKFS_SHIFT))&SDHC_SYSCTL_SDCLKFS_MASK)
6707#define SDHC_SYSCTL_DTOCV_MASK 0xF0000u
6708#define SDHC_SYSCTL_DTOCV_SHIFT 16
6709#define SDHC_SYSCTL_DTOCV(x) (((uint32_t)(((uint32_t)(x))<<SDHC_SYSCTL_DTOCV_SHIFT))&SDHC_SYSCTL_DTOCV_MASK)
6710#define SDHC_SYSCTL_RSTA_MASK 0x1000000u
6711#define SDHC_SYSCTL_RSTA_SHIFT 24
6712#define SDHC_SYSCTL_RSTC_MASK 0x2000000u
6713#define SDHC_SYSCTL_RSTC_SHIFT 25
6714#define SDHC_SYSCTL_RSTD_MASK 0x4000000u
6715#define SDHC_SYSCTL_RSTD_SHIFT 26
6716#define SDHC_SYSCTL_INITA_MASK 0x8000000u
6717#define SDHC_SYSCTL_INITA_SHIFT 27
6718/* IRQSTAT Bit Fields */
6719#define SDHC_IRQSTAT_CC_MASK 0x1u
6720#define SDHC_IRQSTAT_CC_SHIFT 0
6721#define SDHC_IRQSTAT_TC_MASK 0x2u
6722#define SDHC_IRQSTAT_TC_SHIFT 1
6723#define SDHC_IRQSTAT_BGE_MASK 0x4u
6724#define SDHC_IRQSTAT_BGE_SHIFT 2
6725#define SDHC_IRQSTAT_DINT_MASK 0x8u
6726#define SDHC_IRQSTAT_DINT_SHIFT 3
6727#define SDHC_IRQSTAT_BWR_MASK 0x10u
6728#define SDHC_IRQSTAT_BWR_SHIFT 4
6729#define SDHC_IRQSTAT_BRR_MASK 0x20u
6730#define SDHC_IRQSTAT_BRR_SHIFT 5
6731#define SDHC_IRQSTAT_CINS_MASK 0x40u
6732#define SDHC_IRQSTAT_CINS_SHIFT 6
6733#define SDHC_IRQSTAT_CRM_MASK 0x80u
6734#define SDHC_IRQSTAT_CRM_SHIFT 7
6735#define SDHC_IRQSTAT_CINT_MASK 0x100u
6736#define SDHC_IRQSTAT_CINT_SHIFT 8
6737#define SDHC_IRQSTAT_CTOE_MASK 0x10000u
6738#define SDHC_IRQSTAT_CTOE_SHIFT 16
6739#define SDHC_IRQSTAT_CCE_MASK 0x20000u
6740#define SDHC_IRQSTAT_CCE_SHIFT 17
6741#define SDHC_IRQSTAT_CEBE_MASK 0x40000u
6742#define SDHC_IRQSTAT_CEBE_SHIFT 18
6743#define SDHC_IRQSTAT_CIE_MASK 0x80000u
6744#define SDHC_IRQSTAT_CIE_SHIFT 19
6745#define SDHC_IRQSTAT_DTOE_MASK 0x100000u
6746#define SDHC_IRQSTAT_DTOE_SHIFT 20
6747#define SDHC_IRQSTAT_DCE_MASK 0x200000u
6748#define SDHC_IRQSTAT_DCE_SHIFT 21
6749#define SDHC_IRQSTAT_DEBE_MASK 0x400000u
6750#define SDHC_IRQSTAT_DEBE_SHIFT 22
6751#define SDHC_IRQSTAT_AC12E_MASK 0x1000000u
6752#define SDHC_IRQSTAT_AC12E_SHIFT 24
6753#define SDHC_IRQSTAT_DMAE_MASK 0x10000000u
6754#define SDHC_IRQSTAT_DMAE_SHIFT 28
6755/* IRQSTATEN Bit Fields */
6756#define SDHC_IRQSTATEN_CCSEN_MASK 0x1u
6757#define SDHC_IRQSTATEN_CCSEN_SHIFT 0
6758#define SDHC_IRQSTATEN_TCSEN_MASK 0x2u
6759#define SDHC_IRQSTATEN_TCSEN_SHIFT 1
6760#define SDHC_IRQSTATEN_BGESEN_MASK 0x4u
6761#define SDHC_IRQSTATEN_BGESEN_SHIFT 2
6762#define SDHC_IRQSTATEN_DINTSEN_MASK 0x8u
6763#define SDHC_IRQSTATEN_DINTSEN_SHIFT 3
6764#define SDHC_IRQSTATEN_BWRSEN_MASK 0x10u
6765#define SDHC_IRQSTATEN_BWRSEN_SHIFT 4
6766#define SDHC_IRQSTATEN_BRRSEN_MASK 0x20u
6767#define SDHC_IRQSTATEN_BRRSEN_SHIFT 5
6768#define SDHC_IRQSTATEN_CINSEN_MASK 0x40u
6769#define SDHC_IRQSTATEN_CINSEN_SHIFT 6
6770#define SDHC_IRQSTATEN_CRMSEN_MASK 0x80u
6771#define SDHC_IRQSTATEN_CRMSEN_SHIFT 7
6772#define SDHC_IRQSTATEN_CINTSEN_MASK 0x100u
6773#define SDHC_IRQSTATEN_CINTSEN_SHIFT 8
6774#define SDHC_IRQSTATEN_CTOESEN_MASK 0x10000u
6775#define SDHC_IRQSTATEN_CTOESEN_SHIFT 16
6776#define SDHC_IRQSTATEN_CCESEN_MASK 0x20000u
6777#define SDHC_IRQSTATEN_CCESEN_SHIFT 17
6778#define SDHC_IRQSTATEN_CEBESEN_MASK 0x40000u
6779#define SDHC_IRQSTATEN_CEBESEN_SHIFT 18
6780#define SDHC_IRQSTATEN_CIESEN_MASK 0x80000u
6781#define SDHC_IRQSTATEN_CIESEN_SHIFT 19
6782#define SDHC_IRQSTATEN_DTOESEN_MASK 0x100000u
6783#define SDHC_IRQSTATEN_DTOESEN_SHIFT 20
6784#define SDHC_IRQSTATEN_DCESEN_MASK 0x200000u
6785#define SDHC_IRQSTATEN_DCESEN_SHIFT 21
6786#define SDHC_IRQSTATEN_DEBESEN_MASK 0x400000u
6787#define SDHC_IRQSTATEN_DEBESEN_SHIFT 22
6788#define SDHC_IRQSTATEN_AC12ESEN_MASK 0x1000000u
6789#define SDHC_IRQSTATEN_AC12ESEN_SHIFT 24
6790#define SDHC_IRQSTATEN_DMAESEN_MASK 0x10000000u
6791#define SDHC_IRQSTATEN_DMAESEN_SHIFT 28
6792/* IRQSIGEN Bit Fields */
6793#define SDHC_IRQSIGEN_CCIEN_MASK 0x1u
6794#define SDHC_IRQSIGEN_CCIEN_SHIFT 0
6795#define SDHC_IRQSIGEN_TCIEN_MASK 0x2u
6796#define SDHC_IRQSIGEN_TCIEN_SHIFT 1
6797#define SDHC_IRQSIGEN_BGEIEN_MASK 0x4u
6798#define SDHC_IRQSIGEN_BGEIEN_SHIFT 2
6799#define SDHC_IRQSIGEN_DINTIEN_MASK 0x8u
6800#define SDHC_IRQSIGEN_DINTIEN_SHIFT 3
6801#define SDHC_IRQSIGEN_BWRIEN_MASK 0x10u
6802#define SDHC_IRQSIGEN_BWRIEN_SHIFT 4
6803#define SDHC_IRQSIGEN_BRRIEN_MASK 0x20u
6804#define SDHC_IRQSIGEN_BRRIEN_SHIFT 5
6805#define SDHC_IRQSIGEN_CINSIEN_MASK 0x40u
6806#define SDHC_IRQSIGEN_CINSIEN_SHIFT 6
6807#define SDHC_IRQSIGEN_CRMIEN_MASK 0x80u
6808#define SDHC_IRQSIGEN_CRMIEN_SHIFT 7
6809#define SDHC_IRQSIGEN_CINTIEN_MASK 0x100u
6810#define SDHC_IRQSIGEN_CINTIEN_SHIFT 8
6811#define SDHC_IRQSIGEN_CTOEIEN_MASK 0x10000u
6812#define SDHC_IRQSIGEN_CTOEIEN_SHIFT 16
6813#define SDHC_IRQSIGEN_CCEIEN_MASK 0x20000u
6814#define SDHC_IRQSIGEN_CCEIEN_SHIFT 17
6815#define SDHC_IRQSIGEN_CEBEIEN_MASK 0x40000u
6816#define SDHC_IRQSIGEN_CEBEIEN_SHIFT 18
6817#define SDHC_IRQSIGEN_CIEIEN_MASK 0x80000u
6818#define SDHC_IRQSIGEN_CIEIEN_SHIFT 19
6819#define SDHC_IRQSIGEN_DTOEIEN_MASK 0x100000u
6820#define SDHC_IRQSIGEN_DTOEIEN_SHIFT 20
6821#define SDHC_IRQSIGEN_DCEIEN_MASK 0x200000u
6822#define SDHC_IRQSIGEN_DCEIEN_SHIFT 21
6823#define SDHC_IRQSIGEN_DEBEIEN_MASK 0x400000u
6824#define SDHC_IRQSIGEN_DEBEIEN_SHIFT 22
6825#define SDHC_IRQSIGEN_AC12EIEN_MASK 0x1000000u
6826#define SDHC_IRQSIGEN_AC12EIEN_SHIFT 24
6827#define SDHC_IRQSIGEN_DMAEIEN_MASK 0x10000000u
6828#define SDHC_IRQSIGEN_DMAEIEN_SHIFT 28
6829/* AC12ERR Bit Fields */
6830#define SDHC_AC12ERR_AC12NE_MASK 0x1u
6831#define SDHC_AC12ERR_AC12NE_SHIFT 0
6832#define SDHC_AC12ERR_AC12TOE_MASK 0x2u
6833#define SDHC_AC12ERR_AC12TOE_SHIFT 1
6834#define SDHC_AC12ERR_AC12EBE_MASK 0x4u
6835#define SDHC_AC12ERR_AC12EBE_SHIFT 2
6836#define SDHC_AC12ERR_AC12CE_MASK 0x8u
6837#define SDHC_AC12ERR_AC12CE_SHIFT 3
6838#define SDHC_AC12ERR_AC12IE_MASK 0x10u
6839#define SDHC_AC12ERR_AC12IE_SHIFT 4
6840#define SDHC_AC12ERR_CNIBAC12E_MASK 0x80u
6841#define SDHC_AC12ERR_CNIBAC12E_SHIFT 7
6842/* HTCAPBLT Bit Fields */
6843#define SDHC_HTCAPBLT_MBL_MASK 0x70000u
6844#define SDHC_HTCAPBLT_MBL_SHIFT 16
6845#define SDHC_HTCAPBLT_MBL(x) (((uint32_t)(((uint32_t)(x))<<SDHC_HTCAPBLT_MBL_SHIFT))&SDHC_HTCAPBLT_MBL_MASK)
6846#define SDHC_HTCAPBLT_ADMAS_MASK 0x100000u
6847#define SDHC_HTCAPBLT_ADMAS_SHIFT 20
6848#define SDHC_HTCAPBLT_HSS_MASK 0x200000u
6849#define SDHC_HTCAPBLT_HSS_SHIFT 21
6850#define SDHC_HTCAPBLT_DMAS_MASK 0x400000u
6851#define SDHC_HTCAPBLT_DMAS_SHIFT 22
6852#define SDHC_HTCAPBLT_SRS_MASK 0x800000u
6853#define SDHC_HTCAPBLT_SRS_SHIFT 23
6854#define SDHC_HTCAPBLT_VS33_MASK 0x1000000u
6855#define SDHC_HTCAPBLT_VS33_SHIFT 24
6856#define SDHC_HTCAPBLT_VS30_MASK 0x2000000u
6857#define SDHC_HTCAPBLT_VS30_SHIFT 25
6858#define SDHC_HTCAPBLT_VS18_MASK 0x4000000u
6859#define SDHC_HTCAPBLT_VS18_SHIFT 26
6860/* WML Bit Fields */
6861#define SDHC_WML_RDWML_MASK 0xFFu
6862#define SDHC_WML_RDWML_SHIFT 0
6863#define SDHC_WML_RDWML(x) (((uint32_t)(((uint32_t)(x))<<SDHC_WML_RDWML_SHIFT))&SDHC_WML_RDWML_MASK)
6864#define SDHC_WML_WRWML_MASK 0xFF0000u
6865#define SDHC_WML_WRWML_SHIFT 16
6866#define SDHC_WML_WRWML(x) (((uint32_t)(((uint32_t)(x))<<SDHC_WML_WRWML_SHIFT))&SDHC_WML_WRWML_MASK)
6867#define SDHC_WML_WRBRSTLEN_MASK 0x1F000000u
6868#define SDHC_WML_WRBRSTLEN_SHIFT 24
6869#define SDHC_WML_WRBRSTLEN(x) (((uint32_t)(((uint32_t)(x))<<SDHC_WML_WRBRSTLEN_SHIFT))&SDHC_WML_WRBRSTLEN_MASK)
6870/* FEVT Bit Fields */
6871#define SDHC_FEVT_AC12NE_MASK 0x1u
6872#define SDHC_FEVT_AC12NE_SHIFT 0
6873#define SDHC_FEVT_AC12TOE_MASK 0x2u
6874#define SDHC_FEVT_AC12TOE_SHIFT 1
6875#define SDHC_FEVT_AC12CE_MASK 0x4u
6876#define SDHC_FEVT_AC12CE_SHIFT 2
6877#define SDHC_FEVT_AC12EBE_MASK 0x8u
6878#define SDHC_FEVT_AC12EBE_SHIFT 3
6879#define SDHC_FEVT_AC12IE_MASK 0x10u
6880#define SDHC_FEVT_AC12IE_SHIFT 4
6881#define SDHC_FEVT_CNIBAC12E_MASK 0x80u
6882#define SDHC_FEVT_CNIBAC12E_SHIFT 7
6883#define SDHC_FEVT_CTOE_MASK 0x10000u
6884#define SDHC_FEVT_CTOE_SHIFT 16
6885#define SDHC_FEVT_CCE_MASK 0x20000u
6886#define SDHC_FEVT_CCE_SHIFT 17
6887#define SDHC_FEVT_CEBE_MASK 0x40000u
6888#define SDHC_FEVT_CEBE_SHIFT 18
6889#define SDHC_FEVT_CIE_MASK 0x80000u
6890#define SDHC_FEVT_CIE_SHIFT 19
6891#define SDHC_FEVT_DTOE_MASK 0x100000u
6892#define SDHC_FEVT_DTOE_SHIFT 20
6893#define SDHC_FEVT_DCE_MASK 0x200000u
6894#define SDHC_FEVT_DCE_SHIFT 21
6895#define SDHC_FEVT_DEBE_MASK 0x400000u
6896#define SDHC_FEVT_DEBE_SHIFT 22
6897#define SDHC_FEVT_AC12E_MASK 0x1000000u
6898#define SDHC_FEVT_AC12E_SHIFT 24
6899#define SDHC_FEVT_DMAE_MASK 0x10000000u
6900#define SDHC_FEVT_DMAE_SHIFT 28
6901#define SDHC_FEVT_CINT_MASK 0x80000000u
6902#define SDHC_FEVT_CINT_SHIFT 31
6903/* ADMAES Bit Fields */
6904#define SDHC_ADMAES_ADMAES_MASK 0x3u
6905#define SDHC_ADMAES_ADMAES_SHIFT 0
6906#define SDHC_ADMAES_ADMAES(x) (((uint32_t)(((uint32_t)(x))<<SDHC_ADMAES_ADMAES_SHIFT))&SDHC_ADMAES_ADMAES_MASK)
6907#define SDHC_ADMAES_ADMALME_MASK 0x4u
6908#define SDHC_ADMAES_ADMALME_SHIFT 2
6909#define SDHC_ADMAES_ADMADCE_MASK 0x8u
6910#define SDHC_ADMAES_ADMADCE_SHIFT 3
6911/* ADSADDR Bit Fields */
6912#define SDHC_ADSADDR_ADSADDR_MASK 0xFFFFFFFCu
6913#define SDHC_ADSADDR_ADSADDR_SHIFT 2
6914#define SDHC_ADSADDR_ADSADDR(x) (((uint32_t)(((uint32_t)(x))<<SDHC_ADSADDR_ADSADDR_SHIFT))&SDHC_ADSADDR_ADSADDR_MASK)
6915/* VENDOR Bit Fields */
6916#define SDHC_VENDOR_EXTDMAEN_MASK 0x1u
6917#define SDHC_VENDOR_EXTDMAEN_SHIFT 0
6918#define SDHC_VENDOR_VOLTSEL_MASK 0x2u
6919#define SDHC_VENDOR_VOLTSEL_SHIFT 1
6920#define SDHC_VENDOR_INTSTVAL_MASK 0xFF0000u
6921#define SDHC_VENDOR_INTSTVAL_SHIFT 16
6922#define SDHC_VENDOR_INTSTVAL(x) (((uint32_t)(((uint32_t)(x))<<SDHC_VENDOR_INTSTVAL_SHIFT))&SDHC_VENDOR_INTSTVAL_MASK)
6923/* MMCBOOT Bit Fields */
6924#define SDHC_MMCBOOT_DTOCVACK_MASK 0xFu
6925#define SDHC_MMCBOOT_DTOCVACK_SHIFT 0
6926#define SDHC_MMCBOOT_DTOCVACK(x) (((uint32_t)(((uint32_t)(x))<<SDHC_MMCBOOT_DTOCVACK_SHIFT))&SDHC_MMCBOOT_DTOCVACK_MASK)
6927#define SDHC_MMCBOOT_BOOTACK_MASK 0x10u
6928#define SDHC_MMCBOOT_BOOTACK_SHIFT 4
6929#define SDHC_MMCBOOT_BOOTMODE_MASK 0x20u
6930#define SDHC_MMCBOOT_BOOTMODE_SHIFT 5
6931#define SDHC_MMCBOOT_BOOTEN_MASK 0x40u
6932#define SDHC_MMCBOOT_BOOTEN_SHIFT 6
6933#define SDHC_MMCBOOT_AUTOSABGEN_MASK 0x80u
6934#define SDHC_MMCBOOT_AUTOSABGEN_SHIFT 7
6935#define SDHC_MMCBOOT_BOOTBLKCNT_MASK 0xFFFF0000u
6936#define SDHC_MMCBOOT_BOOTBLKCNT_SHIFT 16
6937#define SDHC_MMCBOOT_BOOTBLKCNT(x) (((uint32_t)(((uint32_t)(x))<<SDHC_MMCBOOT_BOOTBLKCNT_SHIFT))&SDHC_MMCBOOT_BOOTBLKCNT_MASK)
6938/* HOSTVER Bit Fields */
6939#define SDHC_HOSTVER_SVN_MASK 0xFFu
6940#define SDHC_HOSTVER_SVN_SHIFT 0
6941#define SDHC_HOSTVER_SVN(x) (((uint32_t)(((uint32_t)(x))<<SDHC_HOSTVER_SVN_SHIFT))&SDHC_HOSTVER_SVN_MASK)
6942#define SDHC_HOSTVER_VVN_MASK 0xFF00u
6943#define SDHC_HOSTVER_VVN_SHIFT 8
6944#define SDHC_HOSTVER_VVN(x) (((uint32_t)(((uint32_t)(x))<<SDHC_HOSTVER_VVN_SHIFT))&SDHC_HOSTVER_VVN_MASK)
6945
6946 /* end of group SDHC_Register_Masks */
6947
6948
6949/* SDHC - Peripheral instance base addresses */
6951#define SDHC_BASE (0x400B1000u)
6953#define SDHC ((SDHC_Type *)SDHC_BASE)
6954
6955 /* end of group SDHC_Peripheral_Access_Layer */
6956
6957
6958/* ----------------------------------------------------------------------------
6959 -- SIM Peripheral Access Layer
6960 ---------------------------------------------------------------------------- */
6961
6966typedef struct {
6967 __IO uint32_t SOPT1;
6968 uint8_t RESERVED_0[4096];
6969 __IO uint32_t SOPT2;
6970 uint8_t RESERVED_1[4];
6971 __IO uint32_t SOPT4;
6972 __IO uint32_t SOPT5;
6973 __IO uint32_t SOPT6;
6974 __IO uint32_t SOPT7;
6975 uint8_t RESERVED_2[8];
6976 __I uint32_t SDID;
6977 __IO uint32_t SCGC1;
6978 __IO uint32_t SCGC2;
6979 __IO uint32_t SCGC3;
6980 __IO uint32_t SCGC4;
6981 __IO uint32_t SCGC5;
6982 __IO uint32_t SCGC6;
6983 __IO uint32_t SCGC7;
6984 __IO uint32_t CLKDIV1;
6985 __IO uint32_t CLKDIV2;
6986 __IO uint32_t FCFG1;
6987 __I uint32_t FCFG2;
6988 __I uint32_t UIDH;
6989 __I uint32_t UIDMH;
6990 __I uint32_t UIDML;
6991 __I uint32_t UIDL;
6992} SIM_Type;
6993
6994/* ----------------------------------------------------------------------------
6995 -- SIM Register Masks
6996 ---------------------------------------------------------------------------- */
6997
7001/* SOPT1 Bit Fields */
7002#define SIM_SOPT1_RAMSIZE_MASK 0xF000u
7003#define SIM_SOPT1_RAMSIZE_SHIFT 12
7004#define SIM_SOPT1_RAMSIZE(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT1_RAMSIZE_SHIFT))&SIM_SOPT1_RAMSIZE_MASK)
7005#define SIM_SOPT1_OSC32KSEL_MASK 0x80000u
7006#define SIM_SOPT1_OSC32KSEL_SHIFT 19
7007#define SIM_SOPT1_MS_MASK 0x800000u
7008#define SIM_SOPT1_MS_SHIFT 23
7009#define SIM_SOPT1_USBSTBY_MASK 0x40000000u
7010#define SIM_SOPT1_USBSTBY_SHIFT 30
7011#define SIM_SOPT1_USBREGEN_MASK 0x80000000u
7012#define SIM_SOPT1_USBREGEN_SHIFT 31
7013/* SOPT2 Bit Fields */
7014#define SIM_SOPT2_MCGCLKSEL_MASK 0x1u
7015#define SIM_SOPT2_MCGCLKSEL_SHIFT 0
7016#define SIM_SOPT2_FBSL_MASK 0x300u
7017#define SIM_SOPT2_FBSL_SHIFT 8
7018#define SIM_SOPT2_FBSL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT2_FBSL_SHIFT))&SIM_SOPT2_FBSL_MASK)
7019#define SIM_SOPT2_CMTUARTPAD_MASK 0x800u
7020#define SIM_SOPT2_CMTUARTPAD_SHIFT 11
7021#define SIM_SOPT2_TRACECLKSEL_MASK 0x1000u
7022#define SIM_SOPT2_TRACECLKSEL_SHIFT 12
7023#define SIM_SOPT2_PLLFLLSEL_MASK 0x10000u
7024#define SIM_SOPT2_PLLFLLSEL_SHIFT 16
7025#define SIM_SOPT2_USBSRC_MASK 0x40000u
7026#define SIM_SOPT2_USBSRC_SHIFT 18
7027#define SIM_SOPT2_TIMESRC_MASK 0x300000u
7028#define SIM_SOPT2_TIMESRC_SHIFT 20
7029#define SIM_SOPT2_TIMESRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT2_TIMESRC_SHIFT))&SIM_SOPT2_TIMESRC_MASK)
7030#define SIM_SOPT2_I2SSRC_MASK 0x3000000u
7031#define SIM_SOPT2_I2SSRC_SHIFT 24
7032#define SIM_SOPT2_I2SSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT2_I2SSRC_SHIFT))&SIM_SOPT2_I2SSRC_MASK)
7033#define SIM_SOPT2_SDHCSRC_MASK 0x30000000u
7034#define SIM_SOPT2_SDHCSRC_SHIFT 28
7035#define SIM_SOPT2_SDHCSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT2_SDHCSRC_SHIFT))&SIM_SOPT2_SDHCSRC_MASK)
7036/* SOPT4 Bit Fields */
7037#define SIM_SOPT4_FTM0FLT0_MASK 0x1u
7038#define SIM_SOPT4_FTM0FLT0_SHIFT 0
7039#define SIM_SOPT4_FTM0FLT1_MASK 0x2u
7040#define SIM_SOPT4_FTM0FLT1_SHIFT 1
7041#define SIM_SOPT4_FTM0FLT2_MASK 0x4u
7042#define SIM_SOPT4_FTM0FLT2_SHIFT 2
7043#define SIM_SOPT4_FTM1FLT0_MASK 0x10u
7044#define SIM_SOPT4_FTM1FLT0_SHIFT 4
7045#define SIM_SOPT4_FTM2FLT0_MASK 0x100u
7046#define SIM_SOPT4_FTM2FLT0_SHIFT 8
7047#define SIM_SOPT4_FTM1CH0SRC_MASK 0xC0000u
7048#define SIM_SOPT4_FTM1CH0SRC_SHIFT 18
7049#define SIM_SOPT4_FTM1CH0SRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT4_FTM1CH0SRC_SHIFT))&SIM_SOPT4_FTM1CH0SRC_MASK)
7050#define SIM_SOPT4_FTM2CH0SRC_MASK 0x300000u
7051#define SIM_SOPT4_FTM2CH0SRC_SHIFT 20
7052#define SIM_SOPT4_FTM2CH0SRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT4_FTM2CH0SRC_SHIFT))&SIM_SOPT4_FTM2CH0SRC_MASK)
7053#define SIM_SOPT4_FTM0CLKSEL_MASK 0x1000000u
7054#define SIM_SOPT4_FTM0CLKSEL_SHIFT 24
7055#define SIM_SOPT4_FTM1CLKSEL_MASK 0x2000000u
7056#define SIM_SOPT4_FTM1CLKSEL_SHIFT 25
7057#define SIM_SOPT4_FTM2CLKSEL_MASK 0x4000000u
7058#define SIM_SOPT4_FTM2CLKSEL_SHIFT 26
7059/* SOPT5 Bit Fields */
7060#define SIM_SOPT5_UART0TXSRC_MASK 0x3u
7061#define SIM_SOPT5_UART0TXSRC_SHIFT 0
7062#define SIM_SOPT5_UART0TXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_UART0TXSRC_SHIFT))&SIM_SOPT5_UART0TXSRC_MASK)
7063#define SIM_SOPT5_UART0RXSRC_MASK 0xCu
7064#define SIM_SOPT5_UART0RXSRC_SHIFT 2
7065#define SIM_SOPT5_UART0RXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_UART0RXSRC_SHIFT))&SIM_SOPT5_UART0RXSRC_MASK)
7066#define SIM_SOPT5_UARTTXSRC_MASK 0x30u
7067#define SIM_SOPT5_UARTTXSRC_SHIFT 4
7068#define SIM_SOPT5_UARTTXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_UARTTXSRC_SHIFT))&SIM_SOPT5_UARTTXSRC_MASK)
7069#define SIM_SOPT5_UART1RXSRC_MASK 0xC0u
7070#define SIM_SOPT5_UART1RXSRC_SHIFT 6
7071#define SIM_SOPT5_UART1RXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_UART1RXSRC_SHIFT))&SIM_SOPT5_UART1RXSRC_MASK)
7072/* SOPT6 Bit Fields */
7073#define SIM_SOPT6_RSTFLTSEL_MASK 0x1F000000u
7074#define SIM_SOPT6_RSTFLTSEL_SHIFT 24
7075#define SIM_SOPT6_RSTFLTSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT6_RSTFLTSEL_SHIFT))&SIM_SOPT6_RSTFLTSEL_MASK)
7076#define SIM_SOPT6_RSTFLTEN_MASK 0xE0000000u
7077#define SIM_SOPT6_RSTFLTEN_SHIFT 29
7078#define SIM_SOPT6_RSTFLTEN(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT6_RSTFLTEN_SHIFT))&SIM_SOPT6_RSTFLTEN_MASK)
7079/* SOPT7 Bit Fields */
7080#define SIM_SOPT7_ADC0TRGSEL_MASK 0xFu
7081#define SIM_SOPT7_ADC0TRGSEL_SHIFT 0
7082#define SIM_SOPT7_ADC0TRGSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT7_ADC0TRGSEL_SHIFT))&SIM_SOPT7_ADC0TRGSEL_MASK)
7083#define SIM_SOPT7_ADC0PRETRGSEL_MASK 0x10u
7084#define SIM_SOPT7_ADC0PRETRGSEL_SHIFT 4
7085#define SIM_SOPT7_ADC0ALTTRGEN_MASK 0x80u
7086#define SIM_SOPT7_ADC0ALTTRGEN_SHIFT 7
7087#define SIM_SOPT7_ADC1TRGSEL_MASK 0xF00u
7088#define SIM_SOPT7_ADC1TRGSEL_SHIFT 8
7089#define SIM_SOPT7_ADC1TRGSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT7_ADC1TRGSEL_SHIFT))&SIM_SOPT7_ADC1TRGSEL_MASK)
7090#define SIM_SOPT7_ADC1PRETRGSEL_MASK 0x1000u
7091#define SIM_SOPT7_ADC1PRETRGSEL_SHIFT 12
7092#define SIM_SOPT7_ADC1ALTTRGEN_MASK 0x8000u
7093#define SIM_SOPT7_ADC1ALTTRGEN_SHIFT 15
7094/* SDID Bit Fields */
7095#define SIM_SDID_PINID_MASK 0xFu
7096#define SIM_SDID_PINID_SHIFT 0
7097#define SIM_SDID_PINID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_PINID_SHIFT))&SIM_SDID_PINID_MASK)
7098#define SIM_SDID_FAMID_MASK 0x70u
7099#define SIM_SDID_FAMID_SHIFT 4
7100#define SIM_SDID_FAMID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_FAMID_SHIFT))&SIM_SDID_FAMID_MASK)
7101#define SIM_SDID_REVID_MASK 0xF000u
7102#define SIM_SDID_REVID_SHIFT 12
7103#define SIM_SDID_REVID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_REVID_SHIFT))&SIM_SDID_REVID_MASK)
7104/* SCGC1 Bit Fields */
7105#define SIM_SCGC1_UART4_MASK 0x400u
7106#define SIM_SCGC1_UART4_SHIFT 10
7107#define SIM_SCGC1_UART5_MASK 0x800u
7108#define SIM_SCGC1_UART5_SHIFT 11
7109/* SCGC2 Bit Fields */
7110#define SIM_SCGC2_ENET_MASK 0x1u
7111#define SIM_SCGC2_ENET_SHIFT 0
7112#define SIM_SCGC2_DAC0_MASK 0x1000u
7113#define SIM_SCGC2_DAC0_SHIFT 12
7114#define SIM_SCGC2_DAC1_MASK 0x2000u
7115#define SIM_SCGC2_DAC1_SHIFT 13
7116/* SCGC3 Bit Fields */
7117#define SIM_SCGC3_RNGB_MASK 0x1u
7118#define SIM_SCGC3_RNGB_SHIFT 0
7119#define SIM_SCGC3_FLEXCAN1_MASK 0x10u
7120#define SIM_SCGC3_FLEXCAN1_SHIFT 4
7121#define SIM_SCGC3_SPI2_MASK 0x1000u
7122#define SIM_SCGC3_SPI2_SHIFT 12
7123#define SIM_SCGC3_SDHC_MASK 0x20000u
7124#define SIM_SCGC3_SDHC_SHIFT 17
7125#define SIM_SCGC3_FTM2_MASK 0x1000000u
7126#define SIM_SCGC3_FTM2_SHIFT 24
7127#define SIM_SCGC3_ADC1_MASK 0x8000000u
7128#define SIM_SCGC3_ADC1_SHIFT 27
7129/* SCGC4 Bit Fields */
7130#define SIM_SCGC4_EWM_MASK 0x2u
7131#define SIM_SCGC4_EWM_SHIFT 1
7132#define SIM_SCGC4_CMT_MASK 0x4u
7133#define SIM_SCGC4_CMT_SHIFT 2
7134#define SIM_SCGC4_I2C0_MASK 0x40u
7135#define SIM_SCGC4_I2C0_SHIFT 6
7136#define SIM_SCGC4_I2C1_MASK 0x80u
7137#define SIM_SCGC4_I2C1_SHIFT 7
7138#define SIM_SCGC4_UART0_MASK 0x400u
7139#define SIM_SCGC4_UART0_SHIFT 10
7140#define SIM_SCGC4_UART1_MASK 0x800u
7141#define SIM_SCGC4_UART1_SHIFT 11
7142#define SIM_SCGC4_UART2_MASK 0x1000u
7143#define SIM_SCGC4_UART2_SHIFT 12
7144#define SIM_SCGC4_UART3_MASK 0x2000u
7145#define SIM_SCGC4_UART3_SHIFT 13
7146#define SIM_SCGC4_USBOTG_MASK 0x40000u
7147#define SIM_SCGC4_USBOTG_SHIFT 18
7148#define SIM_SCGC4_CMP_MASK 0x80000u
7149#define SIM_SCGC4_CMP_SHIFT 19
7150#define SIM_SCGC4_VREF_MASK 0x100000u
7151#define SIM_SCGC4_VREF_SHIFT 20
7152#define SIM_SCGC4_LLWU_MASK 0x10000000u
7153#define SIM_SCGC4_LLWU_SHIFT 28
7154/* SCGC5 Bit Fields */
7155#define SIM_SCGC5_LPTIMER_MASK 0x1u
7156#define SIM_SCGC5_LPTIMER_SHIFT 0
7157#define SIM_SCGC5_REGFILE_MASK 0x2u
7158#define SIM_SCGC5_REGFILE_SHIFT 1
7159#define SIM_SCGC5_TSI_MASK 0x20u
7160#define SIM_SCGC5_TSI_SHIFT 5
7161#define SIM_SCGC5_PORTA_MASK 0x200u
7162#define SIM_SCGC5_PORTA_SHIFT 9
7163#define SIM_SCGC5_PORTB_MASK 0x400u
7164#define SIM_SCGC5_PORTB_SHIFT 10
7165#define SIM_SCGC5_PORTC_MASK 0x800u
7166#define SIM_SCGC5_PORTC_SHIFT 11
7167#define SIM_SCGC5_PORTD_MASK 0x1000u
7168#define SIM_SCGC5_PORTD_SHIFT 12
7169#define SIM_SCGC5_PORTE_MASK 0x2000u
7170#define SIM_SCGC5_PORTE_SHIFT 13
7171/* SCGC6 Bit Fields */
7172#define SIM_SCGC6_FTFL_MASK 0x1u
7173#define SIM_SCGC6_FTFL_SHIFT 0
7174#define SIM_SCGC6_DMAMUX_MASK 0x2u
7175#define SIM_SCGC6_DMAMUX_SHIFT 1
7176#define SIM_SCGC6_FLEXCAN0_MASK 0x10u
7177#define SIM_SCGC6_FLEXCAN0_SHIFT 4
7178#define SIM_SCGC6_DSPI0_MASK 0x1000u
7179#define SIM_SCGC6_DSPI0_SHIFT 12
7180#define SIM_SCGC6_SPI1_MASK 0x2000u
7181#define SIM_SCGC6_SPI1_SHIFT 13
7182#define SIM_SCGC6_I2S_MASK 0x8000u
7183#define SIM_SCGC6_I2S_SHIFT 15
7184#define SIM_SCGC6_CRC_MASK 0x40000u
7185#define SIM_SCGC6_CRC_SHIFT 18
7186#define SIM_SCGC6_USBDCD_MASK 0x200000u
7187#define SIM_SCGC6_USBDCD_SHIFT 21
7188#define SIM_SCGC6_PDB_MASK 0x400000u
7189#define SIM_SCGC6_PDB_SHIFT 22
7190#define SIM_SCGC6_PIT_MASK 0x800000u
7191#define SIM_SCGC6_PIT_SHIFT 23
7192#define SIM_SCGC6_FTM0_MASK 0x1000000u
7193#define SIM_SCGC6_FTM0_SHIFT 24
7194#define SIM_SCGC6_FTM1_MASK 0x2000000u
7195#define SIM_SCGC6_FTM1_SHIFT 25
7196#define SIM_SCGC6_ADC0_MASK 0x8000000u
7197#define SIM_SCGC6_ADC0_SHIFT 27
7198#define SIM_SCGC6_RTC_MASK 0x20000000u
7199#define SIM_SCGC6_RTC_SHIFT 29
7200/* SCGC7 Bit Fields */
7201#define SIM_SCGC7_FLEXBUS_MASK 0x1u
7202#define SIM_SCGC7_FLEXBUS_SHIFT 0
7203#define SIM_SCGC7_DMA_MASK 0x2u
7204#define SIM_SCGC7_DMA_SHIFT 1
7205#define SIM_SCGC7_MPU_MASK 0x4u
7206#define SIM_SCGC7_MPU_SHIFT 2
7207/* CLKDIV1 Bit Fields */
7208#define SIM_CLKDIV1_OUTDIV4_MASK 0xF0000u
7209#define SIM_CLKDIV1_OUTDIV4_SHIFT 16
7210#define SIM_CLKDIV1_OUTDIV4(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV1_OUTDIV4_SHIFT))&SIM_CLKDIV1_OUTDIV4_MASK)
7211#define SIM_CLKDIV1_OUTDIV3_MASK 0xF00000u
7212#define SIM_CLKDIV1_OUTDIV3_SHIFT 20
7213#define SIM_CLKDIV1_OUTDIV3(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV1_OUTDIV3_SHIFT))&SIM_CLKDIV1_OUTDIV3_MASK)
7214#define SIM_CLKDIV1_OUTDIV2_MASK 0xF000000u
7215#define SIM_CLKDIV1_OUTDIV2_SHIFT 24
7216#define SIM_CLKDIV1_OUTDIV2(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV1_OUTDIV2_SHIFT))&SIM_CLKDIV1_OUTDIV2_MASK)
7217#define SIM_CLKDIV1_OUTDIV1_MASK 0xF0000000u
7218#define SIM_CLKDIV1_OUTDIV1_SHIFT 28
7219#define SIM_CLKDIV1_OUTDIV1(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV1_OUTDIV1_SHIFT))&SIM_CLKDIV1_OUTDIV1_MASK)
7220/* CLKDIV2 Bit Fields */
7221#define SIM_CLKDIV2_USBFRAC_MASK 0x1u
7222#define SIM_CLKDIV2_USBFRAC_SHIFT 0
7223#define SIM_CLKDIV2_USBDIV_MASK 0xEu
7224#define SIM_CLKDIV2_USBDIV_SHIFT 1
7225#define SIM_CLKDIV2_USBDIV(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV2_USBDIV_SHIFT))&SIM_CLKDIV2_USBDIV_MASK)
7226#define SIM_CLKDIV2_I2SFRAC_MASK 0xFF00u
7227#define SIM_CLKDIV2_I2SFRAC_SHIFT 8
7228#define SIM_CLKDIV2_I2SFRAC(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV2_I2SFRAC_SHIFT))&SIM_CLKDIV2_I2SFRAC_MASK)
7229#define SIM_CLKDIV2_I2SDIV_MASK 0xFFF00000u
7230#define SIM_CLKDIV2_I2SDIV_SHIFT 20
7231#define SIM_CLKDIV2_I2SDIV(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV2_I2SDIV_SHIFT))&SIM_CLKDIV2_I2SDIV_MASK)
7232/* FCFG1 Bit Fields */
7233#define SIM_FCFG1_DEPART_MASK 0xF00u
7234#define SIM_FCFG1_DEPART_SHIFT 8
7235#define SIM_FCFG1_DEPART(x) (((uint32_t)(((uint32_t)(x))<<SIM_FCFG1_DEPART_SHIFT))&SIM_FCFG1_DEPART_MASK)
7236#define SIM_FCFG1_EESIZE_MASK 0xF0000u
7237#define SIM_FCFG1_EESIZE_SHIFT 16
7238#define SIM_FCFG1_EESIZE(x) (((uint32_t)(((uint32_t)(x))<<SIM_FCFG1_EESIZE_SHIFT))&SIM_FCFG1_EESIZE_MASK)
7239#define SIM_FCFG1_FSIZE_MASK 0xFF000000u
7240#define SIM_FCFG1_FSIZE_SHIFT 24
7241#define SIM_FCFG1_FSIZE(x) (((uint32_t)(((uint32_t)(x))<<SIM_FCFG1_FSIZE_SHIFT))&SIM_FCFG1_FSIZE_MASK)
7242/* FCFG2 Bit Fields */
7243#define SIM_FCFG2_MAXADDR1_MASK 0x3F0000u
7244#define SIM_FCFG2_MAXADDR1_SHIFT 16
7245#define SIM_FCFG2_MAXADDR1(x) (((uint32_t)(((uint32_t)(x))<<SIM_FCFG2_MAXADDR1_SHIFT))&SIM_FCFG2_MAXADDR1_MASK)
7246#define SIM_FCFG2_PFLSH_MASK 0x800000u
7247#define SIM_FCFG2_PFLSH_SHIFT 23
7248#define SIM_FCFG2_MAXADDR0_MASK 0x3F000000u
7249#define SIM_FCFG2_MAXADDR0_SHIFT 24
7250#define SIM_FCFG2_MAXADDR0(x) (((uint32_t)(((uint32_t)(x))<<SIM_FCFG2_MAXADDR0_SHIFT))&SIM_FCFG2_MAXADDR0_MASK)
7251#define SIM_FCFG2_SWAPPFLSH_MASK 0x80000000u
7252#define SIM_FCFG2_SWAPPFLSH_SHIFT 31
7253/* UIDH Bit Fields */
7254#define SIM_UIDH_UID_MASK 0xFFFFFFFFu
7255#define SIM_UIDH_UID_SHIFT 0
7256#define SIM_UIDH_UID(x) (((uint32_t)(((uint32_t)(x))<<SIM_UIDH_UID_SHIFT))&SIM_UIDH_UID_MASK)
7257/* UIDMH Bit Fields */
7258#define SIM_UIDMH_UID_MASK 0xFFFFFFFFu
7259#define SIM_UIDMH_UID_SHIFT 0
7260#define SIM_UIDMH_UID(x) (((uint32_t)(((uint32_t)(x))<<SIM_UIDMH_UID_SHIFT))&SIM_UIDMH_UID_MASK)
7261/* UIDML Bit Fields */
7262#define SIM_UIDML_UID_MASK 0xFFFFFFFFu
7263#define SIM_UIDML_UID_SHIFT 0
7264#define SIM_UIDML_UID(x) (((uint32_t)(((uint32_t)(x))<<SIM_UIDML_UID_SHIFT))&SIM_UIDML_UID_MASK)
7265/* UIDL Bit Fields */
7266#define SIM_UIDL_UID_MASK 0xFFFFFFFFu
7267#define SIM_UIDL_UID_SHIFT 0
7268#define SIM_UIDL_UID(x) (((uint32_t)(((uint32_t)(x))<<SIM_UIDL_UID_SHIFT))&SIM_UIDL_UID_MASK)
7269
7270 /* end of group SIM_Register_Masks */
7271
7272
7273/* SIM - Peripheral instance base addresses */
7275#define SIM_BASE (0x40047000u)
7277#define SIM ((SIM_Type *)SIM_BASE)
7278
7279 /* end of group SIM_Peripheral_Access_Layer */
7280
7281
7282/* ----------------------------------------------------------------------------
7283 -- SPI Peripheral Access Layer
7284 ---------------------------------------------------------------------------- */
7285
7290typedef struct {
7291 __IO uint32_t MCR;
7292 uint8_t RESERVED_0[4];
7293 __IO uint32_t TCR;
7294 union { /* offset: 0xC */
7295 __IO uint32_t CTAR[2];
7296 __IO uint32_t CTAR_SLAVE[1];
7297 };
7298 uint8_t RESERVED_1[24];
7299 __IO uint32_t SR;
7300 __IO uint32_t RSER;
7301 union { /* offset: 0x34 */
7302 __IO uint32_t PUSHR;
7303 __IO uint32_t PUSHR_SLAVE;
7304 };
7305 __I uint32_t POPR;
7306 __I uint32_t TXFR0;
7307 __I uint32_t TXFR1;
7308 __I uint32_t TXFR2;
7309 __I uint32_t TXFR3;
7310 uint8_t RESERVED_2[48];
7311 __I uint32_t RXFR0;
7312 __I uint32_t RXFR1;
7313 __I uint32_t RXFR2;
7314 __I uint32_t RXFR3;
7315} SPI_Type;
7316
7317/* ----------------------------------------------------------------------------
7318 -- SPI Register Masks
7319 ---------------------------------------------------------------------------- */
7320
7324/* MCR Bit Fields */
7325#define SPI_MCR_HALT_MASK 0x1u
7326#define SPI_MCR_HALT_SHIFT 0
7327#define SPI_MCR_SMPL_PT_MASK 0x300u
7328#define SPI_MCR_SMPL_PT_SHIFT 8
7329#define SPI_MCR_SMPL_PT(x) (((uint32_t)(((uint32_t)(x))<<SPI_MCR_SMPL_PT_SHIFT))&SPI_MCR_SMPL_PT_MASK)
7330#define SPI_MCR_CLR_RXF_MASK 0x400u
7331#define SPI_MCR_CLR_RXF_SHIFT 10
7332#define SPI_MCR_CLR_TXF_MASK 0x800u
7333#define SPI_MCR_CLR_TXF_SHIFT 11
7334#define SPI_MCR_DIS_RXF_MASK 0x1000u
7335#define SPI_MCR_DIS_RXF_SHIFT 12
7336#define SPI_MCR_DIS_TXF_MASK 0x2000u
7337#define SPI_MCR_DIS_TXF_SHIFT 13
7338#define SPI_MCR_MDIS_MASK 0x4000u
7339#define SPI_MCR_MDIS_SHIFT 14
7340#define SPI_MCR_DOZE_MASK 0x8000u
7341#define SPI_MCR_DOZE_SHIFT 15
7342#define SPI_MCR_PCSIS_MASK 0x3F0000u
7343#define SPI_MCR_PCSIS_SHIFT 16
7344#define SPI_MCR_PCSIS(x) (((uint32_t)(((uint32_t)(x))<<SPI_MCR_PCSIS_SHIFT))&SPI_MCR_PCSIS_MASK)
7345#define SPI_MCR_ROOE_MASK 0x1000000u
7346#define SPI_MCR_ROOE_SHIFT 24
7347#define SPI_MCR_PCSSE_MASK 0x2000000u
7348#define SPI_MCR_PCSSE_SHIFT 25
7349#define SPI_MCR_MTFE_MASK 0x4000000u
7350#define SPI_MCR_MTFE_SHIFT 26
7351#define SPI_MCR_FRZ_MASK 0x8000000u
7352#define SPI_MCR_FRZ_SHIFT 27
7353#define SPI_MCR_DCONF_MASK 0x30000000u
7354#define SPI_MCR_DCONF_SHIFT 28
7355#define SPI_MCR_DCONF(x) (((uint32_t)(((uint32_t)(x))<<SPI_MCR_DCONF_SHIFT))&SPI_MCR_DCONF_MASK)
7356#define SPI_MCR_CONT_SCKE_MASK 0x40000000u
7357#define SPI_MCR_CONT_SCKE_SHIFT 30
7358#define SPI_MCR_MSTR_MASK 0x80000000u
7359#define SPI_MCR_MSTR_SHIFT 31
7360/* TCR Bit Fields */
7361#define SPI_TCR_SPI_TCNT_MASK 0xFFFF0000u
7362#define SPI_TCR_SPI_TCNT_SHIFT 16
7363#define SPI_TCR_SPI_TCNT(x) (((uint32_t)(((uint32_t)(x))<<SPI_TCR_SPI_TCNT_SHIFT))&SPI_TCR_SPI_TCNT_MASK)
7364/* CTAR Bit Fields */
7365#define SPI_CTAR_BR_MASK 0xFu
7366#define SPI_CTAR_BR_SHIFT 0
7367#define SPI_CTAR_BR(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_BR_SHIFT))&SPI_CTAR_BR_MASK)
7368#define SPI_CTAR_DT_MASK 0xF0u
7369#define SPI_CTAR_DT_SHIFT 4
7370#define SPI_CTAR_DT(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_DT_SHIFT))&SPI_CTAR_DT_MASK)
7371#define SPI_CTAR_ASC_MASK 0xF00u
7372#define SPI_CTAR_ASC_SHIFT 8
7373#define SPI_CTAR_ASC(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_ASC_SHIFT))&SPI_CTAR_ASC_MASK)
7374#define SPI_CTAR_CSSCK_MASK 0xF000u
7375#define SPI_CTAR_CSSCK_SHIFT 12
7376#define SPI_CTAR_CSSCK(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_CSSCK_SHIFT))&SPI_CTAR_CSSCK_MASK)
7377#define SPI_CTAR_PBR_MASK 0x30000u
7378#define SPI_CTAR_PBR_SHIFT 16
7379#define SPI_CTAR_PBR(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_PBR_SHIFT))&SPI_CTAR_PBR_MASK)
7380#define SPI_CTAR_PDT_MASK 0xC0000u
7381#define SPI_CTAR_PDT_SHIFT 18
7382#define SPI_CTAR_PDT(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_PDT_SHIFT))&SPI_CTAR_PDT_MASK)
7383#define SPI_CTAR_PASC_MASK 0x300000u
7384#define SPI_CTAR_PASC_SHIFT 20
7385#define SPI_CTAR_PASC(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_PASC_SHIFT))&SPI_CTAR_PASC_MASK)
7386#define SPI_CTAR_PCSSCK_MASK 0xC00000u
7387#define SPI_CTAR_PCSSCK_SHIFT 22
7388#define SPI_CTAR_PCSSCK(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_PCSSCK_SHIFT))&SPI_CTAR_PCSSCK_MASK)
7389#define SPI_CTAR_LSBFE_MASK 0x1000000u
7390#define SPI_CTAR_LSBFE_SHIFT 24
7391#define SPI_CTAR_CPHA_MASK 0x2000000u
7392#define SPI_CTAR_CPHA_SHIFT 25
7393#define SPI_CTAR_CPOL_MASK 0x4000000u
7394#define SPI_CTAR_CPOL_SHIFT 26
7395#define SPI_CTAR_FMSZ_MASK 0x78000000u
7396#define SPI_CTAR_FMSZ_SHIFT 27
7397#define SPI_CTAR_FMSZ(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_FMSZ_SHIFT))&SPI_CTAR_FMSZ_MASK)
7398#define SPI_CTAR_DBR_MASK 0x80000000u
7399#define SPI_CTAR_DBR_SHIFT 31
7400/* CTAR_SLAVE Bit Fields */
7401#define SPI_CTAR_SLAVE_CPHA_MASK 0x2000000u
7402#define SPI_CTAR_SLAVE_CPHA_SHIFT 25
7403#define SPI_CTAR_SLAVE_CPOL_MASK 0x4000000u
7404#define SPI_CTAR_SLAVE_CPOL_SHIFT 26
7405#define SPI_CTAR_SLAVE_FMSZ_MASK 0xF8000000u
7406#define SPI_CTAR_SLAVE_FMSZ_SHIFT 27
7407#define SPI_CTAR_SLAVE_FMSZ(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_SLAVE_FMSZ_SHIFT))&SPI_CTAR_SLAVE_FMSZ_MASK)
7408/* SR Bit Fields */
7409#define SPI_SR_POPNXTPTR_MASK 0xFu
7410#define SPI_SR_POPNXTPTR_SHIFT 0
7411#define SPI_SR_POPNXTPTR(x) (((uint32_t)(((uint32_t)(x))<<SPI_SR_POPNXTPTR_SHIFT))&SPI_SR_POPNXTPTR_MASK)
7412#define SPI_SR_RXCTR_MASK 0xF0u
7413#define SPI_SR_RXCTR_SHIFT 4
7414#define SPI_SR_RXCTR(x) (((uint32_t)(((uint32_t)(x))<<SPI_SR_RXCTR_SHIFT))&SPI_SR_RXCTR_MASK)
7415#define SPI_SR_TXNXTPTR_MASK 0xF00u
7416#define SPI_SR_TXNXTPTR_SHIFT 8
7417#define SPI_SR_TXNXTPTR(x) (((uint32_t)(((uint32_t)(x))<<SPI_SR_TXNXTPTR_SHIFT))&SPI_SR_TXNXTPTR_MASK)
7418#define SPI_SR_TXCTR_MASK 0xF000u
7419#define SPI_SR_TXCTR_SHIFT 12
7420#define SPI_SR_TXCTR(x) (((uint32_t)(((uint32_t)(x))<<SPI_SR_TXCTR_SHIFT))&SPI_SR_TXCTR_MASK)
7421#define SPI_SR_RFDF_MASK 0x20000u
7422#define SPI_SR_RFDF_SHIFT 17
7423#define SPI_SR_RFOF_MASK 0x80000u
7424#define SPI_SR_RFOF_SHIFT 19
7425#define SPI_SR_TFFF_MASK 0x2000000u
7426#define SPI_SR_TFFF_SHIFT 25
7427#define SPI_SR_TFUF_MASK 0x8000000u
7428#define SPI_SR_TFUF_SHIFT 27
7429#define SPI_SR_EOQF_MASK 0x10000000u
7430#define SPI_SR_EOQF_SHIFT 28
7431#define SPI_SR_TXRXS_MASK 0x40000000u
7432#define SPI_SR_TXRXS_SHIFT 30
7433#define SPI_SR_TCF_MASK 0x80000000u
7434#define SPI_SR_TCF_SHIFT 31
7435/* RSER Bit Fields */
7436#define SPI_RSER_RFDF_DIRS_MASK 0x10000u
7437#define SPI_RSER_RFDF_DIRS_SHIFT 16
7438#define SPI_RSER_RFDF_RE_MASK 0x20000u
7439#define SPI_RSER_RFDF_RE_SHIFT 17
7440#define SPI_RSER_RFOF_RE_MASK 0x80000u
7441#define SPI_RSER_RFOF_RE_SHIFT 19
7442#define SPI_RSER_TFFF_DIRS_MASK 0x1000000u
7443#define SPI_RSER_TFFF_DIRS_SHIFT 24
7444#define SPI_RSER_TFFF_RE_MASK 0x2000000u
7445#define SPI_RSER_TFFF_RE_SHIFT 25
7446#define SPI_RSER_TFUF_RE_MASK 0x8000000u
7447#define SPI_RSER_TFUF_RE_SHIFT 27
7448#define SPI_RSER_EOQF_RE_MASK 0x10000000u
7449#define SPI_RSER_EOQF_RE_SHIFT 28
7450#define SPI_RSER_TCF_RE_MASK 0x80000000u
7451#define SPI_RSER_TCF_RE_SHIFT 31
7452/* PUSHR Bit Fields */
7453#define SPI_PUSHR_TXDATA_MASK 0xFFFFu
7454#define SPI_PUSHR_TXDATA_SHIFT 0
7455#define SPI_PUSHR_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_PUSHR_TXDATA_SHIFT))&SPI_PUSHR_TXDATA_MASK)
7456#define SPI_PUSHR_PCS_MASK 0x3F0000u
7457#define SPI_PUSHR_PCS_SHIFT 16
7458#define SPI_PUSHR_PCS(x) (((uint32_t)(((uint32_t)(x))<<SPI_PUSHR_PCS_SHIFT))&SPI_PUSHR_PCS_MASK)
7459#define SPI_PUSHR_CTCNT_MASK 0x4000000u
7460#define SPI_PUSHR_CTCNT_SHIFT 26
7461#define SPI_PUSHR_EOQ_MASK 0x8000000u
7462#define SPI_PUSHR_EOQ_SHIFT 27
7463#define SPI_PUSHR_CTAS_MASK 0x70000000u
7464#define SPI_PUSHR_CTAS_SHIFT 28
7465#define SPI_PUSHR_CTAS(x) (((uint32_t)(((uint32_t)(x))<<SPI_PUSHR_CTAS_SHIFT))&SPI_PUSHR_CTAS_MASK)
7466#define SPI_PUSHR_CONT_MASK 0x80000000u
7467#define SPI_PUSHR_CONT_SHIFT 31
7468/* PUSHR_SLAVE Bit Fields */
7469#define SPI_PUSHR_SLAVE_TXDATA_MASK 0xFFFFFFFFu
7470#define SPI_PUSHR_SLAVE_TXDATA_SHIFT 0
7471#define SPI_PUSHR_SLAVE_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_PUSHR_SLAVE_TXDATA_SHIFT))&SPI_PUSHR_SLAVE_TXDATA_MASK)
7472/* POPR Bit Fields */
7473#define SPI_POPR_RXDATA_MASK 0xFFFFFFFFu
7474#define SPI_POPR_RXDATA_SHIFT 0
7475#define SPI_POPR_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_POPR_RXDATA_SHIFT))&SPI_POPR_RXDATA_MASK)
7476/* TXFR0 Bit Fields */
7477#define SPI_TXFR0_TXDATA_MASK 0xFFFFu
7478#define SPI_TXFR0_TXDATA_SHIFT 0
7479#define SPI_TXFR0_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR0_TXDATA_SHIFT))&SPI_TXFR0_TXDATA_MASK)
7480#define SPI_TXFR0_TXCMD_TXDATA_MASK 0xFFFF0000u
7481#define SPI_TXFR0_TXCMD_TXDATA_SHIFT 16
7482#define SPI_TXFR0_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR0_TXCMD_TXDATA_SHIFT))&SPI_TXFR0_TXCMD_TXDATA_MASK)
7483/* TXFR1 Bit Fields */
7484#define SPI_TXFR1_TXDATA_MASK 0xFFFFu
7485#define SPI_TXFR1_TXDATA_SHIFT 0
7486#define SPI_TXFR1_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR1_TXDATA_SHIFT))&SPI_TXFR1_TXDATA_MASK)
7487#define SPI_TXFR1_TXCMD_TXDATA_MASK 0xFFFF0000u
7488#define SPI_TXFR1_TXCMD_TXDATA_SHIFT 16
7489#define SPI_TXFR1_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR1_TXCMD_TXDATA_SHIFT))&SPI_TXFR1_TXCMD_TXDATA_MASK)
7490/* TXFR2 Bit Fields */
7491#define SPI_TXFR2_TXDATA_MASK 0xFFFFu
7492#define SPI_TXFR2_TXDATA_SHIFT 0
7493#define SPI_TXFR2_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR2_TXDATA_SHIFT))&SPI_TXFR2_TXDATA_MASK)
7494#define SPI_TXFR2_TXCMD_TXDATA_MASK 0xFFFF0000u
7495#define SPI_TXFR2_TXCMD_TXDATA_SHIFT 16
7496#define SPI_TXFR2_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR2_TXCMD_TXDATA_SHIFT))&SPI_TXFR2_TXCMD_TXDATA_MASK)
7497/* TXFR3 Bit Fields */
7498#define SPI_TXFR3_TXDATA_MASK 0xFFFFu
7499#define SPI_TXFR3_TXDATA_SHIFT 0
7500#define SPI_TXFR3_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR3_TXDATA_SHIFT))&SPI_TXFR3_TXDATA_MASK)
7501#define SPI_TXFR3_TXCMD_TXDATA_MASK 0xFFFF0000u
7502#define SPI_TXFR3_TXCMD_TXDATA_SHIFT 16
7503#define SPI_TXFR3_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR3_TXCMD_TXDATA_SHIFT))&SPI_TXFR3_TXCMD_TXDATA_MASK)
7504/* RXFR0 Bit Fields */
7505#define SPI_RXFR0_RXDATA_MASK 0xFFFFFFFFu
7506#define SPI_RXFR0_RXDATA_SHIFT 0
7507#define SPI_RXFR0_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_RXFR0_RXDATA_SHIFT))&SPI_RXFR0_RXDATA_MASK)
7508/* RXFR1 Bit Fields */
7509#define SPI_RXFR1_RXDATA_MASK 0xFFFFFFFFu
7510#define SPI_RXFR1_RXDATA_SHIFT 0
7511#define SPI_RXFR1_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_RXFR1_RXDATA_SHIFT))&SPI_RXFR1_RXDATA_MASK)
7512/* RXFR2 Bit Fields */
7513#define SPI_RXFR2_RXDATA_MASK 0xFFFFFFFFu
7514#define SPI_RXFR2_RXDATA_SHIFT 0
7515#define SPI_RXFR2_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_RXFR2_RXDATA_SHIFT))&SPI_RXFR2_RXDATA_MASK)
7516/* RXFR3 Bit Fields */
7517#define SPI_RXFR3_RXDATA_MASK 0xFFFFFFFFu
7518#define SPI_RXFR3_RXDATA_SHIFT 0
7519#define SPI_RXFR3_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_RXFR3_RXDATA_SHIFT))&SPI_RXFR3_RXDATA_MASK)
7520
7521 /* end of group SPI_Register_Masks */
7522
7523
7524/* SPI - Peripheral instance base addresses */
7526#define SPI0_BASE (0x4002C000u)
7528#define SPI0 ((SPI_Type *)SPI0_BASE)
7530#define SPI1_BASE (0x4002D000u)
7532#define SPI1 ((SPI_Type *)SPI1_BASE)
7534#define SPI2_BASE (0x400AC000u)
7536#define SPI2 ((SPI_Type *)SPI2_BASE)
7537
7538 /* end of group SPI_Peripheral_Access_Layer */
7539
7540
7541/* ----------------------------------------------------------------------------
7542 -- TSI Peripheral Access Layer
7543 ---------------------------------------------------------------------------- */
7544
7549typedef struct {
7550 __IO uint32_t GENCS;
7551 __IO uint32_t SCANC;
7552 __IO uint32_t PEN;
7553 __IO uint32_t STATUS;
7554 uint8_t RESERVED_0[240];
7555 __I uint32_t CNTR1;
7556 __I uint32_t CNTR3;
7557 __I uint32_t CNTR5;
7558 __I uint32_t CNTR7;
7559 __I uint32_t CNTR9;
7560 __I uint32_t CNTR11;
7561 __I uint32_t CNTR13;
7562 __I uint32_t CNTR15;
7563 __IO uint32_t THRESHLD[16];
7564} TSI_Type;
7565
7566/* ----------------------------------------------------------------------------
7567 -- TSI Register Masks
7568 ---------------------------------------------------------------------------- */
7569
7573/* GENCS Bit Fields */
7574#define TSI_GENCS_STPE_MASK 0x1u
7575#define TSI_GENCS_STPE_SHIFT 0
7576#define TSI_GENCS_STM_MASK 0x2u
7577#define TSI_GENCS_STM_SHIFT 1
7578#define TSI_GENCS_ESOR_MASK 0x10u
7579#define TSI_GENCS_ESOR_SHIFT 4
7580#define TSI_GENCS_ERIE_MASK 0x20u
7581#define TSI_GENCS_ERIE_SHIFT 5
7582#define TSI_GENCS_TSIIE_MASK 0x40u
7583#define TSI_GENCS_TSIIE_SHIFT 6
7584#define TSI_GENCS_TSIEN_MASK 0x80u
7585#define TSI_GENCS_TSIEN_SHIFT 7
7586#define TSI_GENCS_SWTS_MASK 0x100u
7587#define TSI_GENCS_SWTS_SHIFT 8
7588#define TSI_GENCS_SCNIP_MASK 0x200u
7589#define TSI_GENCS_SCNIP_SHIFT 9
7590#define TSI_GENCS_OVRF_MASK 0x1000u
7591#define TSI_GENCS_OVRF_SHIFT 12
7592#define TSI_GENCS_EXTERF_MASK 0x2000u
7593#define TSI_GENCS_EXTERF_SHIFT 13
7594#define TSI_GENCS_OUTRGF_MASK 0x4000u
7595#define TSI_GENCS_OUTRGF_SHIFT 14
7596#define TSI_GENCS_EOSF_MASK 0x8000u
7597#define TSI_GENCS_EOSF_SHIFT 15
7598#define TSI_GENCS_PS_MASK 0x70000u
7599#define TSI_GENCS_PS_SHIFT 16
7600#define TSI_GENCS_PS(x) (((uint32_t)(((uint32_t)(x))<<TSI_GENCS_PS_SHIFT))&TSI_GENCS_PS_MASK)
7601#define TSI_GENCS_NSCN_MASK 0xF80000u
7602#define TSI_GENCS_NSCN_SHIFT 19
7603#define TSI_GENCS_NSCN(x) (((uint32_t)(((uint32_t)(x))<<TSI_GENCS_NSCN_SHIFT))&TSI_GENCS_NSCN_MASK)
7604#define TSI_GENCS_LPSCNITV_MASK 0xF000000u
7605#define TSI_GENCS_LPSCNITV_SHIFT 24
7606#define TSI_GENCS_LPSCNITV(x) (((uint32_t)(((uint32_t)(x))<<TSI_GENCS_LPSCNITV_SHIFT))&TSI_GENCS_LPSCNITV_MASK)
7607#define TSI_GENCS_LPCLKS_MASK 0x10000000u
7608#define TSI_GENCS_LPCLKS_SHIFT 28
7609/* SCANC Bit Fields */
7610#define TSI_SCANC_AMPSC_MASK 0x7u
7611#define TSI_SCANC_AMPSC_SHIFT 0
7612#define TSI_SCANC_AMPSC(x) (((uint32_t)(((uint32_t)(x))<<TSI_SCANC_AMPSC_SHIFT))&TSI_SCANC_AMPSC_MASK)
7613#define TSI_SCANC_AMCLKS_MASK 0x18u
7614#define TSI_SCANC_AMCLKS_SHIFT 3
7615#define TSI_SCANC_AMCLKS(x) (((uint32_t)(((uint32_t)(x))<<TSI_SCANC_AMCLKS_SHIFT))&TSI_SCANC_AMCLKS_MASK)
7616#define TSI_SCANC_AMCLKDIV_MASK 0x20u
7617#define TSI_SCANC_AMCLKDIV_SHIFT 5
7618#define TSI_SCANC_SMOD_MASK 0xFF00u
7619#define TSI_SCANC_SMOD_SHIFT 8
7620#define TSI_SCANC_SMOD(x) (((uint32_t)(((uint32_t)(x))<<TSI_SCANC_SMOD_SHIFT))&TSI_SCANC_SMOD_MASK)
7621#define TSI_SCANC_DELVOL_MASK 0x70000u
7622#define TSI_SCANC_DELVOL_SHIFT 16
7623#define TSI_SCANC_DELVOL(x) (((uint32_t)(((uint32_t)(x))<<TSI_SCANC_DELVOL_SHIFT))&TSI_SCANC_DELVOL_MASK)
7624#define TSI_SCANC_EXTCHRG_MASK 0xF80000u
7625#define TSI_SCANC_EXTCHRG_SHIFT 19
7626#define TSI_SCANC_EXTCHRG(x) (((uint32_t)(((uint32_t)(x))<<TSI_SCANC_EXTCHRG_SHIFT))&TSI_SCANC_EXTCHRG_MASK)
7627#define TSI_SCANC_CAPTRM_MASK 0x7000000u
7628#define TSI_SCANC_CAPTRM_SHIFT 24
7629#define TSI_SCANC_CAPTRM(x) (((uint32_t)(((uint32_t)(x))<<TSI_SCANC_CAPTRM_SHIFT))&TSI_SCANC_CAPTRM_MASK)
7630#define TSI_SCANC_REFCHRG_MASK 0xF8000000u
7631#define TSI_SCANC_REFCHRG_SHIFT 27
7632#define TSI_SCANC_REFCHRG(x) (((uint32_t)(((uint32_t)(x))<<TSI_SCANC_REFCHRG_SHIFT))&TSI_SCANC_REFCHRG_MASK)
7633/* PEN Bit Fields */
7634#define TSI_PEN_PEN0_MASK 0x1u
7635#define TSI_PEN_PEN0_SHIFT 0
7636#define TSI_PEN_PEN1_MASK 0x2u
7637#define TSI_PEN_PEN1_SHIFT 1
7638#define TSI_PEN_PEN2_MASK 0x4u
7639#define TSI_PEN_PEN2_SHIFT 2
7640#define TSI_PEN_PEN3_MASK 0x8u
7641#define TSI_PEN_PEN3_SHIFT 3
7642#define TSI_PEN_PEN4_MASK 0x10u
7643#define TSI_PEN_PEN4_SHIFT 4
7644#define TSI_PEN_PEN5_MASK 0x20u
7645#define TSI_PEN_PEN5_SHIFT 5
7646#define TSI_PEN_PEN6_MASK 0x40u
7647#define TSI_PEN_PEN6_SHIFT 6
7648#define TSI_PEN_PEN7_MASK 0x80u
7649#define TSI_PEN_PEN7_SHIFT 7
7650#define TSI_PEN_PEN8_MASK 0x100u
7651#define TSI_PEN_PEN8_SHIFT 8
7652#define TSI_PEN_PEN9_MASK 0x200u
7653#define TSI_PEN_PEN9_SHIFT 9
7654#define TSI_PEN_PEN10_MASK 0x400u
7655#define TSI_PEN_PEN10_SHIFT 10
7656#define TSI_PEN_PEN11_MASK 0x800u
7657#define TSI_PEN_PEN11_SHIFT 11
7658#define TSI_PEN_PEN12_MASK 0x1000u
7659#define TSI_PEN_PEN12_SHIFT 12
7660#define TSI_PEN_PEN13_MASK 0x2000u
7661#define TSI_PEN_PEN13_SHIFT 13
7662#define TSI_PEN_PEN14_MASK 0x4000u
7663#define TSI_PEN_PEN14_SHIFT 14
7664#define TSI_PEN_PEN15_MASK 0x8000u
7665#define TSI_PEN_PEN15_SHIFT 15
7666#define TSI_PEN_LPSP_MASK 0xF0000u
7667#define TSI_PEN_LPSP_SHIFT 16
7668#define TSI_PEN_LPSP(x) (((uint32_t)(((uint32_t)(x))<<TSI_PEN_LPSP_SHIFT))&TSI_PEN_LPSP_MASK)
7669/* STATUS Bit Fields */
7670#define TSI_STATUS_ORNGF0_MASK 0x1u
7671#define TSI_STATUS_ORNGF0_SHIFT 0
7672#define TSI_STATUS_ORNGF1_MASK 0x2u
7673#define TSI_STATUS_ORNGF1_SHIFT 1
7674#define TSI_STATUS_ORNGF2_MASK 0x4u
7675#define TSI_STATUS_ORNGF2_SHIFT 2
7676#define TSI_STATUS_ORNGF3_MASK 0x8u
7677#define TSI_STATUS_ORNGF3_SHIFT 3
7678#define TSI_STATUS_ORNGF4_MASK 0x10u
7679#define TSI_STATUS_ORNGF4_SHIFT 4
7680#define TSI_STATUS_ORNGF5_MASK 0x20u
7681#define TSI_STATUS_ORNGF5_SHIFT 5
7682#define TSI_STATUS_ORNGF6_MASK 0x40u
7683#define TSI_STATUS_ORNGF6_SHIFT 6
7684#define TSI_STATUS_ORNGF7_MASK 0x80u
7685#define TSI_STATUS_ORNGF7_SHIFT 7
7686#define TSI_STATUS_ORNGF8_MASK 0x100u
7687#define TSI_STATUS_ORNGF8_SHIFT 8
7688#define TSI_STATUS_ORNGF9_MASK 0x200u
7689#define TSI_STATUS_ORNGF9_SHIFT 9
7690#define TSI_STATUS_ORNGF10_MASK 0x400u
7691#define TSI_STATUS_ORNGF10_SHIFT 10
7692#define TSI_STATUS_ORNGF11_MASK 0x800u
7693#define TSI_STATUS_ORNGF11_SHIFT 11
7694#define TSI_STATUS_ORNGF12_MASK 0x1000u
7695#define TSI_STATUS_ORNGF12_SHIFT 12
7696#define TSI_STATUS_ORNGF13_MASK 0x2000u
7697#define TSI_STATUS_ORNGF13_SHIFT 13
7698#define TSI_STATUS_ORNGF14_MASK 0x4000u
7699#define TSI_STATUS_ORNGF14_SHIFT 14
7700#define TSI_STATUS_ORNGF15_MASK 0x8000u
7701#define TSI_STATUS_ORNGF15_SHIFT 15
7702#define TSI_STATUS_ERROF0_MASK 0x10000u
7703#define TSI_STATUS_ERROF0_SHIFT 16
7704#define TSI_STATUS_ERROF1_MASK 0x20000u
7705#define TSI_STATUS_ERROF1_SHIFT 17
7706#define TSI_STATUS_ERROF2_MASK 0x40000u
7707#define TSI_STATUS_ERROF2_SHIFT 18
7708#define TSI_STATUS_ERROF3_MASK 0x80000u
7709#define TSI_STATUS_ERROF3_SHIFT 19
7710#define TSI_STATUS_ERROF4_MASK 0x100000u
7711#define TSI_STATUS_ERROF4_SHIFT 20
7712#define TSI_STATUS_ERROF5_MASK 0x200000u
7713#define TSI_STATUS_ERROF5_SHIFT 21
7714#define TSI_STATUS_ERROF6_MASK 0x400000u
7715#define TSI_STATUS_ERROF6_SHIFT 22
7716#define TSI_STATUS_ERROF7_MASK 0x800000u
7717#define TSI_STATUS_ERROF7_SHIFT 23
7718#define TSI_STATUS_ERROF8_MASK 0x1000000u
7719#define TSI_STATUS_ERROF8_SHIFT 24
7720#define TSI_STATUS_ERROF9_MASK 0x2000000u
7721#define TSI_STATUS_ERROF9_SHIFT 25
7722#define TSI_STATUS_ERROF10_MASK 0x4000000u
7723#define TSI_STATUS_ERROF10_SHIFT 26
7724#define TSI_STATUS_ERROF11_MASK 0x8000000u
7725#define TSI_STATUS_ERROF11_SHIFT 27
7726#define TSI_STATUS_ERROF12_MASK 0x10000000u
7727#define TSI_STATUS_ERROF12_SHIFT 28
7728#define TSI_STATUS_ERROF13_MASK 0x20000000u
7729#define TSI_STATUS_ERROF13_SHIFT 29
7730#define TSI_STATUS_ERROF14_MASK 0x40000000u
7731#define TSI_STATUS_ERROF14_SHIFT 30
7732#define TSI_STATUS_ERROF15_MASK 0x80000000u
7733#define TSI_STATUS_ERROF15_SHIFT 31
7734/* CNTR1 Bit Fields */
7735#define TSI_CNTR1_CNTN_MASK 0xFFFFu
7736#define TSI_CNTR1_CNTN_SHIFT 0
7737#define TSI_CNTR1_CNTN(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR1_CNTN_SHIFT))&TSI_CNTR1_CNTN_MASK)
7738#define TSI_CNTR1_CNTN1_MASK 0xFFFF0000u
7739#define TSI_CNTR1_CNTN1_SHIFT 16
7740#define TSI_CNTR1_CNTN1(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR1_CNTN1_SHIFT))&TSI_CNTR1_CNTN1_MASK)
7741/* CNTR3 Bit Fields */
7742#define TSI_CNTR3_CNTN_MASK 0xFFFFu
7743#define TSI_CNTR3_CNTN_SHIFT 0
7744#define TSI_CNTR3_CNTN(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR3_CNTN_SHIFT))&TSI_CNTR3_CNTN_MASK)
7745#define TSI_CNTR3_CNTN1_MASK 0xFFFF0000u
7746#define TSI_CNTR3_CNTN1_SHIFT 16
7747#define TSI_CNTR3_CNTN1(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR3_CNTN1_SHIFT))&TSI_CNTR3_CNTN1_MASK)
7748/* CNTR5 Bit Fields */
7749#define TSI_CNTR5_CNTN_MASK 0xFFFFu
7750#define TSI_CNTR5_CNTN_SHIFT 0
7751#define TSI_CNTR5_CNTN(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR5_CNTN_SHIFT))&TSI_CNTR5_CNTN_MASK)
7752#define TSI_CNTR5_CNTN1_MASK 0xFFFF0000u
7753#define TSI_CNTR5_CNTN1_SHIFT 16
7754#define TSI_CNTR5_CNTN1(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR5_CNTN1_SHIFT))&TSI_CNTR5_CNTN1_MASK)
7755/* CNTR7 Bit Fields */
7756#define TSI_CNTR7_CNTN_MASK 0xFFFFu
7757#define TSI_CNTR7_CNTN_SHIFT 0
7758#define TSI_CNTR7_CNTN(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR7_CNTN_SHIFT))&TSI_CNTR7_CNTN_MASK)
7759#define TSI_CNTR7_CNTN1_MASK 0xFFFF0000u
7760#define TSI_CNTR7_CNTN1_SHIFT 16
7761#define TSI_CNTR7_CNTN1(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR7_CNTN1_SHIFT))&TSI_CNTR7_CNTN1_MASK)
7762/* CNTR9 Bit Fields */
7763#define TSI_CNTR9_CNTN_MASK 0xFFFFu
7764#define TSI_CNTR9_CNTN_SHIFT 0
7765#define TSI_CNTR9_CNTN(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR9_CNTN_SHIFT))&TSI_CNTR9_CNTN_MASK)
7766#define TSI_CNTR9_CNTN1_MASK 0xFFFF0000u
7767#define TSI_CNTR9_CNTN1_SHIFT 16
7768#define TSI_CNTR9_CNTN1(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR9_CNTN1_SHIFT))&TSI_CNTR9_CNTN1_MASK)
7769/* CNTR11 Bit Fields */
7770#define TSI_CNTR11_CNTN_MASK 0xFFFFu
7771#define TSI_CNTR11_CNTN_SHIFT 0
7772#define TSI_CNTR11_CNTN(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR11_CNTN_SHIFT))&TSI_CNTR11_CNTN_MASK)
7773#define TSI_CNTR11_CNTN1_MASK 0xFFFF0000u
7774#define TSI_CNTR11_CNTN1_SHIFT 16
7775#define TSI_CNTR11_CNTN1(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR11_CNTN1_SHIFT))&TSI_CNTR11_CNTN1_MASK)
7776/* CNTR13 Bit Fields */
7777#define TSI_CNTR13_CNTN_MASK 0xFFFFu
7778#define TSI_CNTR13_CNTN_SHIFT 0
7779#define TSI_CNTR13_CNTN(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR13_CNTN_SHIFT))&TSI_CNTR13_CNTN_MASK)
7780#define TSI_CNTR13_CNTN1_MASK 0xFFFF0000u
7781#define TSI_CNTR13_CNTN1_SHIFT 16
7782#define TSI_CNTR13_CNTN1(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR13_CNTN1_SHIFT))&TSI_CNTR13_CNTN1_MASK)
7783/* CNTR15 Bit Fields */
7784#define TSI_CNTR15_CNTN_MASK 0xFFFFu
7785#define TSI_CNTR15_CNTN_SHIFT 0
7786#define TSI_CNTR15_CNTN(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR15_CNTN_SHIFT))&TSI_CNTR15_CNTN_MASK)
7787#define TSI_CNTR15_CNTN1_MASK 0xFFFF0000u
7788#define TSI_CNTR15_CNTN1_SHIFT 16
7789#define TSI_CNTR15_CNTN1(x) (((uint32_t)(((uint32_t)(x))<<TSI_CNTR15_CNTN1_SHIFT))&TSI_CNTR15_CNTN1_MASK)
7790/* THRESHLD Bit Fields */
7791#define TSI_THRESHLD_HTHH_MASK 0xFFFFu
7792#define TSI_THRESHLD_HTHH_SHIFT 0
7793#define TSI_THRESHLD_HTHH(x) (((uint32_t)(((uint32_t)(x))<<TSI_THRESHLD_HTHH_SHIFT))&TSI_THRESHLD_HTHH_MASK)
7794#define TSI_THRESHLD_LTHH_MASK 0xFFFF0000u
7795#define TSI_THRESHLD_LTHH_SHIFT 16
7796#define TSI_THRESHLD_LTHH(x) (((uint32_t)(((uint32_t)(x))<<TSI_THRESHLD_LTHH_SHIFT))&TSI_THRESHLD_LTHH_MASK)
7797
7798 /* end of group TSI_Register_Masks */
7799
7800
7801/* TSI - Peripheral instance base addresses */
7803#define TSI0_BASE (0x40045000u)
7805#define TSI0 ((TSI_Type *)TSI0_BASE)
7806
7807 /* end of group TSI_Peripheral_Access_Layer */
7808
7809
7810/* ----------------------------------------------------------------------------
7811 -- UART Peripheral Access Layer
7812 ---------------------------------------------------------------------------- */
7813
7818typedef struct {
7819 __IO uint8_t BDH;
7820 __IO uint8_t BDL;
7821 __IO uint8_t C1;
7822 __IO uint8_t C2;
7823 __I uint8_t S1;
7824 __IO uint8_t S2;
7825 __IO uint8_t C3;
7826 __IO uint8_t D;
7827 __IO uint8_t MA1;
7828 __IO uint8_t MA2;
7829 __IO uint8_t C4;
7830 __IO uint8_t C5;
7831 __I uint8_t ED;
7832 __IO uint8_t MODEM;
7833 __IO uint8_t IR;
7834 uint8_t RESERVED_0[1];
7835 __IO uint8_t PFIFO;
7836 __IO uint8_t CFIFO;
7837 __IO uint8_t SFIFO;
7838 __IO uint8_t TWFIFO;
7839 __I uint8_t TCFIFO;
7840 __IO uint8_t RWFIFO;
7841 __I uint8_t RCFIFO;
7842 uint8_t RESERVED_1[1];
7843 __IO uint8_t C7816;
7844 __IO uint8_t IE7816;
7845 __IO uint8_t IS7816;
7846 union { /* offset: 0x1B */
7849 };
7850 __IO uint8_t WN7816;
7851 __IO uint8_t WF7816;
7852 __IO uint8_t ET7816;
7853 __IO uint8_t TL7816;
7854} UART_Type;
7855
7856/* ----------------------------------------------------------------------------
7857 -- UART Register Masks
7858 ---------------------------------------------------------------------------- */
7859
7863/* BDH Bit Fields */
7864#define UART_BDH_SBR_MASK 0x1Fu
7865#define UART_BDH_SBR_SHIFT 0
7866#define UART_BDH_SBR(x) (((uint8_t)(((uint8_t)(x))<<UART_BDH_SBR_SHIFT))&UART_BDH_SBR_MASK)
7867#define UART_BDH_RXEDGIE_MASK 0x40u
7868#define UART_BDH_RXEDGIE_SHIFT 6
7869#define UART_BDH_LBKDIE_MASK 0x80u
7870#define UART_BDH_LBKDIE_SHIFT 7
7871/* BDL Bit Fields */
7872#define UART_BDL_SBR_MASK 0xFFu
7873#define UART_BDL_SBR_SHIFT 0
7874#define UART_BDL_SBR(x) (((uint8_t)(((uint8_t)(x))<<UART_BDL_SBR_SHIFT))&UART_BDL_SBR_MASK)
7875/* C1 Bit Fields */
7876#define UART_C1_PT_MASK 0x1u
7877#define UART_C1_PT_SHIFT 0
7878#define UART_C1_PE_MASK 0x2u
7879#define UART_C1_PE_SHIFT 1
7880#define UART_C1_ILT_MASK 0x4u
7881#define UART_C1_ILT_SHIFT 2
7882#define UART_C1_WAKE_MASK 0x8u
7883#define UART_C1_WAKE_SHIFT 3
7884#define UART_C1_M_MASK 0x10u
7885#define UART_C1_M_SHIFT 4
7886#define UART_C1_RSRC_MASK 0x20u
7887#define UART_C1_RSRC_SHIFT 5
7888#define UART_C1_UARTSWAI_MASK 0x40u
7889#define UART_C1_UARTSWAI_SHIFT 6
7890#define UART_C1_LOOPS_MASK 0x80u
7891#define UART_C1_LOOPS_SHIFT 7
7892/* C2 Bit Fields */
7893#define UART_C2_SBK_MASK 0x1u
7894#define UART_C2_SBK_SHIFT 0
7895#define UART_C2_RWU_MASK 0x2u
7896#define UART_C2_RWU_SHIFT 1
7897#define UART_C2_RE_MASK 0x4u
7898#define UART_C2_RE_SHIFT 2
7899#define UART_C2_TE_MASK 0x8u
7900#define UART_C2_TE_SHIFT 3
7901#define UART_C2_ILIE_MASK 0x10u
7902#define UART_C2_ILIE_SHIFT 4
7903#define UART_C2_RIE_MASK 0x20u
7904#define UART_C2_RIE_SHIFT 5
7905#define UART_C2_TCIE_MASK 0x40u
7906#define UART_C2_TCIE_SHIFT 6
7907#define UART_C2_TIE_MASK 0x80u
7908#define UART_C2_TIE_SHIFT 7
7909/* S1 Bit Fields */
7910#define UART_S1_PF_MASK 0x1u
7911#define UART_S1_PF_SHIFT 0
7912#define UART_S1_FE_MASK 0x2u
7913#define UART_S1_FE_SHIFT 1
7914#define UART_S1_NF_MASK 0x4u
7915#define UART_S1_NF_SHIFT 2
7916#define UART_S1_OR_MASK 0x8u
7917#define UART_S1_OR_SHIFT 3
7918#define UART_S1_IDLE_MASK 0x10u
7919#define UART_S1_IDLE_SHIFT 4
7920#define UART_S1_RDRF_MASK 0x20u
7921#define UART_S1_RDRF_SHIFT 5
7922#define UART_S1_TC_MASK 0x40u
7923#define UART_S1_TC_SHIFT 6
7924#define UART_S1_TDRE_MASK 0x80u
7925#define UART_S1_TDRE_SHIFT 7
7926/* S2 Bit Fields */
7927#define UART_S2_RAF_MASK 0x1u
7928#define UART_S2_RAF_SHIFT 0
7929#define UART_S2_LBKDE_MASK 0x2u
7930#define UART_S2_LBKDE_SHIFT 1
7931#define UART_S2_BRK13_MASK 0x4u
7932#define UART_S2_BRK13_SHIFT 2
7933#define UART_S2_RWUID_MASK 0x8u
7934#define UART_S2_RWUID_SHIFT 3
7935#define UART_S2_RXINV_MASK 0x10u
7936#define UART_S2_RXINV_SHIFT 4
7937#define UART_S2_MSBF_MASK 0x20u
7938#define UART_S2_MSBF_SHIFT 5
7939#define UART_S2_RXEDGIF_MASK 0x40u
7940#define UART_S2_RXEDGIF_SHIFT 6
7941#define UART_S2_LBKDIF_MASK 0x80u
7942#define UART_S2_LBKDIF_SHIFT 7
7943/* C3 Bit Fields */
7944#define UART_C3_PEIE_MASK 0x1u
7945#define UART_C3_PEIE_SHIFT 0
7946#define UART_C3_FEIE_MASK 0x2u
7947#define UART_C3_FEIE_SHIFT 1
7948#define UART_C3_NEIE_MASK 0x4u
7949#define UART_C3_NEIE_SHIFT 2
7950#define UART_C3_ORIE_MASK 0x8u
7951#define UART_C3_ORIE_SHIFT 3
7952#define UART_C3_TXINV_MASK 0x10u
7953#define UART_C3_TXINV_SHIFT 4
7954#define UART_C3_TXDIR_MASK 0x20u
7955#define UART_C3_TXDIR_SHIFT 5
7956#define UART_C3_T8_MASK 0x40u
7957#define UART_C3_T8_SHIFT 6
7958#define UART_C3_R8_MASK 0x80u
7959#define UART_C3_R8_SHIFT 7
7960/* D Bit Fields */
7961#define UART_D_RT_MASK 0xFFu
7962#define UART_D_RT_SHIFT 0
7963#define UART_D_RT(x) (((uint8_t)(((uint8_t)(x))<<UART_D_RT_SHIFT))&UART_D_RT_MASK)
7964/* MA1 Bit Fields */
7965#define UART_MA1_MA_MASK 0xFFu
7966#define UART_MA1_MA_SHIFT 0
7967#define UART_MA1_MA(x) (((uint8_t)(((uint8_t)(x))<<UART_MA1_MA_SHIFT))&UART_MA1_MA_MASK)
7968/* MA2 Bit Fields */
7969#define UART_MA2_MA_MASK 0xFFu
7970#define UART_MA2_MA_SHIFT 0
7971#define UART_MA2_MA(x) (((uint8_t)(((uint8_t)(x))<<UART_MA2_MA_SHIFT))&UART_MA2_MA_MASK)
7972/* C4 Bit Fields */
7973#define UART_C4_BRFA_MASK 0x1Fu
7974#define UART_C4_BRFA_SHIFT 0
7975#define UART_C4_BRFA(x) (((uint8_t)(((uint8_t)(x))<<UART_C4_BRFA_SHIFT))&UART_C4_BRFA_MASK)
7976#define UART_C4_M10_MASK 0x20u
7977#define UART_C4_M10_SHIFT 5
7978#define UART_C4_MAEN2_MASK 0x40u
7979#define UART_C4_MAEN2_SHIFT 6
7980#define UART_C4_MAEN1_MASK 0x80u
7981#define UART_C4_MAEN1_SHIFT 7
7982/* C5 Bit Fields */
7983#define UART_C5_RDMAS_MASK 0x20u
7984#define UART_C5_RDMAS_SHIFT 5
7985#define UART_C5_TDMAS_MASK 0x80u
7986#define UART_C5_TDMAS_SHIFT 7
7987/* ED Bit Fields */
7988#define UART_ED_PARITYE_MASK 0x40u
7989#define UART_ED_PARITYE_SHIFT 6
7990#define UART_ED_NOISY_MASK 0x80u
7991#define UART_ED_NOISY_SHIFT 7
7992/* MODEM Bit Fields */
7993#define UART_MODEM_TXCTSE_MASK 0x1u
7994#define UART_MODEM_TXCTSE_SHIFT 0
7995#define UART_MODEM_TXRTSE_MASK 0x2u
7996#define UART_MODEM_TXRTSE_SHIFT 1
7997#define UART_MODEM_TXRTSPOL_MASK 0x4u
7998#define UART_MODEM_TXRTSPOL_SHIFT 2
7999#define UART_MODEM_RXRTSE_MASK 0x8u
8000#define UART_MODEM_RXRTSE_SHIFT 3
8001/* IR Bit Fields */
8002#define UART_IR_TNP_MASK 0x3u
8003#define UART_IR_TNP_SHIFT 0
8004#define UART_IR_TNP(x) (((uint8_t)(((uint8_t)(x))<<UART_IR_TNP_SHIFT))&UART_IR_TNP_MASK)
8005#define UART_IR_IREN_MASK 0x4u
8006#define UART_IR_IREN_SHIFT 2
8007/* PFIFO Bit Fields */
8008#define UART_PFIFO_RXFIFOSIZE_MASK 0x7u
8009#define UART_PFIFO_RXFIFOSIZE_SHIFT 0
8010#define UART_PFIFO_RXFIFOSIZE(x) (((uint8_t)(((uint8_t)(x))<<UART_PFIFO_RXFIFOSIZE_SHIFT))&UART_PFIFO_RXFIFOSIZE_MASK)
8011#define UART_PFIFO_RXFE_MASK 0x8u
8012#define UART_PFIFO_RXFE_SHIFT 3
8013#define UART_PFIFO_TXFIFOSIZE_MASK 0x70u
8014#define UART_PFIFO_TXFIFOSIZE_SHIFT 4
8015#define UART_PFIFO_TXFIFOSIZE(x) (((uint8_t)(((uint8_t)(x))<<UART_PFIFO_TXFIFOSIZE_SHIFT))&UART_PFIFO_TXFIFOSIZE_MASK)
8016#define UART_PFIFO_TXFE_MASK 0x80u
8017#define UART_PFIFO_TXFE_SHIFT 7
8018/* CFIFO Bit Fields */
8019#define UART_CFIFO_RXUFE_MASK 0x1u
8020#define UART_CFIFO_RXUFE_SHIFT 0
8021#define UART_CFIFO_TXOFE_MASK 0x2u
8022#define UART_CFIFO_TXOFE_SHIFT 1
8023#define UART_CFIFO_RXFLUSH_MASK 0x40u
8024#define UART_CFIFO_RXFLUSH_SHIFT 6
8025#define UART_CFIFO_TXFLUSH_MASK 0x80u
8026#define UART_CFIFO_TXFLUSH_SHIFT 7
8027/* SFIFO Bit Fields */
8028#define UART_SFIFO_RXUF_MASK 0x1u
8029#define UART_SFIFO_RXUF_SHIFT 0
8030#define UART_SFIFO_TXOF_MASK 0x2u
8031#define UART_SFIFO_TXOF_SHIFT 1
8032#define UART_SFIFO_RXEMPT_MASK 0x40u
8033#define UART_SFIFO_RXEMPT_SHIFT 6
8034#define UART_SFIFO_TXEMPT_MASK 0x80u
8035#define UART_SFIFO_TXEMPT_SHIFT 7
8036/* TWFIFO Bit Fields */
8037#define UART_TWFIFO_TXWATER_MASK 0xFFu
8038#define UART_TWFIFO_TXWATER_SHIFT 0
8039#define UART_TWFIFO_TXWATER(x) (((uint8_t)(((uint8_t)(x))<<UART_TWFIFO_TXWATER_SHIFT))&UART_TWFIFO_TXWATER_MASK)
8040/* TCFIFO Bit Fields */
8041#define UART_TCFIFO_TXCOUNT_MASK 0xFFu
8042#define UART_TCFIFO_TXCOUNT_SHIFT 0
8043#define UART_TCFIFO_TXCOUNT(x) (((uint8_t)(((uint8_t)(x))<<UART_TCFIFO_TXCOUNT_SHIFT))&UART_TCFIFO_TXCOUNT_MASK)
8044/* RWFIFO Bit Fields */
8045#define UART_RWFIFO_RXWATER_MASK 0xFFu
8046#define UART_RWFIFO_RXWATER_SHIFT 0
8047#define UART_RWFIFO_RXWATER(x) (((uint8_t)(((uint8_t)(x))<<UART_RWFIFO_RXWATER_SHIFT))&UART_RWFIFO_RXWATER_MASK)
8048/* RCFIFO Bit Fields */
8049#define UART_RCFIFO_RXCOUNT_MASK 0xFFu
8050#define UART_RCFIFO_RXCOUNT_SHIFT 0
8051#define UART_RCFIFO_RXCOUNT(x) (((uint8_t)(((uint8_t)(x))<<UART_RCFIFO_RXCOUNT_SHIFT))&UART_RCFIFO_RXCOUNT_MASK)
8052/* C7816 Bit Fields */
8053#define UART_C7816_ISO_7816E_MASK 0x1u
8054#define UART_C7816_ISO_7816E_SHIFT 0
8055#define UART_C7816_TTYPE_MASK 0x2u
8056#define UART_C7816_TTYPE_SHIFT 1
8057#define UART_C7816_INIT_MASK 0x4u
8058#define UART_C7816_INIT_SHIFT 2
8059#define UART_C7816_ANACK_MASK 0x8u
8060#define UART_C7816_ANACK_SHIFT 3
8061#define UART_C7816_ONACK_MASK 0x10u
8062#define UART_C7816_ONACK_SHIFT 4
8063/* IE7816 Bit Fields */
8064#define UART_IE7816_RXTE_MASK 0x1u
8065#define UART_IE7816_RXTE_SHIFT 0
8066#define UART_IE7816_TXTE_MASK 0x2u
8067#define UART_IE7816_TXTE_SHIFT 1
8068#define UART_IE7816_GTVE_MASK 0x4u
8069#define UART_IE7816_GTVE_SHIFT 2
8070#define UART_IE7816_INITDE_MASK 0x10u
8071#define UART_IE7816_INITDE_SHIFT 4
8072#define UART_IE7816_BWTE_MASK 0x20u
8073#define UART_IE7816_BWTE_SHIFT 5
8074#define UART_IE7816_CWTE_MASK 0x40u
8075#define UART_IE7816_CWTE_SHIFT 6
8076#define UART_IE7816_WTE_MASK 0x80u
8077#define UART_IE7816_WTE_SHIFT 7
8078/* IS7816 Bit Fields */
8079#define UART_IS7816_RXT_MASK 0x1u
8080#define UART_IS7816_RXT_SHIFT 0
8081#define UART_IS7816_TXT_MASK 0x2u
8082#define UART_IS7816_TXT_SHIFT 1
8083#define UART_IS7816_GTV_MASK 0x4u
8084#define UART_IS7816_GTV_SHIFT 2
8085#define UART_IS7816_INITD_MASK 0x10u
8086#define UART_IS7816_INITD_SHIFT 4
8087#define UART_IS7816_BWT_MASK 0x20u
8088#define UART_IS7816_BWT_SHIFT 5
8089#define UART_IS7816_CWT_MASK 0x40u
8090#define UART_IS7816_CWT_SHIFT 6
8091#define UART_IS7816_WT_MASK 0x80u
8092#define UART_IS7816_WT_SHIFT 7
8093/* WP7816_T_TYPE0 Bit Fields */
8094#define UART_WP7816_T_TYPE0_WI_MASK 0xFFu
8095#define UART_WP7816_T_TYPE0_WI_SHIFT 0
8096#define UART_WP7816_T_TYPE0_WI(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816_T_TYPE0_WI_SHIFT))&UART_WP7816_T_TYPE0_WI_MASK)
8097/* WP7816_T_TYPE1 Bit Fields */
8098#define UART_WP7816_T_TYPE1_BWI_MASK 0xFu
8099#define UART_WP7816_T_TYPE1_BWI_SHIFT 0
8100#define UART_WP7816_T_TYPE1_BWI(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816_T_TYPE1_BWI_SHIFT))&UART_WP7816_T_TYPE1_BWI_MASK)
8101#define UART_WP7816_T_TYPE1_CWI_MASK 0xF0u
8102#define UART_WP7816_T_TYPE1_CWI_SHIFT 4
8103#define UART_WP7816_T_TYPE1_CWI(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816_T_TYPE1_CWI_SHIFT))&UART_WP7816_T_TYPE1_CWI_MASK)
8104/* WN7816 Bit Fields */
8105#define UART_WN7816_GTN_MASK 0xFFu
8106#define UART_WN7816_GTN_SHIFT 0
8107#define UART_WN7816_GTN(x) (((uint8_t)(((uint8_t)(x))<<UART_WN7816_GTN_SHIFT))&UART_WN7816_GTN_MASK)
8108/* WF7816 Bit Fields */
8109#define UART_WF7816_GTFD_MASK 0xFFu
8110#define UART_WF7816_GTFD_SHIFT 0
8111#define UART_WF7816_GTFD(x) (((uint8_t)(((uint8_t)(x))<<UART_WF7816_GTFD_SHIFT))&UART_WF7816_GTFD_MASK)
8112/* ET7816 Bit Fields */
8113#define UART_ET7816_RXTHRESHOLD_MASK 0xFu
8114#define UART_ET7816_RXTHRESHOLD_SHIFT 0
8115#define UART_ET7816_RXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x))<<UART_ET7816_RXTHRESHOLD_SHIFT))&UART_ET7816_RXTHRESHOLD_MASK)
8116#define UART_ET7816_TXTHRESHOLD_MASK 0xF0u
8117#define UART_ET7816_TXTHRESHOLD_SHIFT 4
8118#define UART_ET7816_TXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x))<<UART_ET7816_TXTHRESHOLD_SHIFT))&UART_ET7816_TXTHRESHOLD_MASK)
8119/* TL7816 Bit Fields */
8120#define UART_TL7816_TLEN_MASK 0xFFu
8121#define UART_TL7816_TLEN_SHIFT 0
8122#define UART_TL7816_TLEN(x) (((uint8_t)(((uint8_t)(x))<<UART_TL7816_TLEN_SHIFT))&UART_TL7816_TLEN_MASK)
8123
8124 /* end of group UART_Register_Masks */
8125
8126
8127/* UART - Peripheral instance base addresses */
8129#define UART0_BASE (0x4006A000u)
8131#define UART0 ((UART_Type *)UART0_BASE)
8133#define UART1_BASE (0x4006B000u)
8135#define UART1 ((UART_Type *)UART1_BASE)
8137#define UART2_BASE (0x4006C000u)
8139#define UART2 ((UART_Type *)UART2_BASE)
8141#define UART3_BASE (0x4006D000u)
8143#define UART3 ((UART_Type *)UART3_BASE)
8145#define UART4_BASE (0x400EA000u)
8147#define UART4 ((UART_Type *)UART4_BASE)
8149#define UART5_BASE (0x400EB000u)
8151#define UART5 ((UART_Type *)UART5_BASE)
8152
8153 /* end of group UART_Peripheral_Access_Layer */
8154
8155
8156/* ----------------------------------------------------------------------------
8157 -- USB Peripheral Access Layer
8158 ---------------------------------------------------------------------------- */
8159
8164typedef struct {
8165 __I uint8_t PERID;
8166 uint8_t RESERVED_0[3];
8167 __I uint8_t IDCOMP;
8168 uint8_t RESERVED_1[3];
8169 __I uint8_t REV;
8170 uint8_t RESERVED_2[3];
8171 __I uint8_t ADDINFO;
8172 uint8_t RESERVED_3[3];
8173 __IO uint8_t OTGISTAT;
8174 uint8_t RESERVED_4[3];
8175 __IO uint8_t OTGICR;
8176 uint8_t RESERVED_5[3];
8177 __IO uint8_t OTGSTAT;
8178 uint8_t RESERVED_6[3];
8179 __IO uint8_t OTGCTL;
8180 uint8_t RESERVED_7[99];
8181 __IO uint8_t ISTAT;
8182 uint8_t RESERVED_8[3];
8183 __IO uint8_t INTEN;
8184 uint8_t RESERVED_9[3];
8185 __IO uint8_t ERRSTAT;
8186 uint8_t RESERVED_10[3];
8187 __IO uint8_t ERREN;
8188 uint8_t RESERVED_11[3];
8189 __I uint8_t STAT;
8190 uint8_t RESERVED_12[3];
8191 __IO uint8_t CTL;
8192 uint8_t RESERVED_13[3];
8193 __IO uint8_t ADDR;
8194 uint8_t RESERVED_14[3];
8195 __IO uint8_t BDTPAGE1;
8196 uint8_t RESERVED_15[3];
8197 __IO uint8_t FRMNUML;
8198 uint8_t RESERVED_16[3];
8199 __IO uint8_t FRMNUMH;
8200 uint8_t RESERVED_17[3];
8201 __IO uint8_t TOKEN;
8202 uint8_t RESERVED_18[3];
8203 __IO uint8_t SOFTHLD;
8204 uint8_t RESERVED_19[3];
8205 __IO uint8_t BDTPAGE2;
8206 uint8_t RESERVED_20[3];
8207 __IO uint8_t BDTPAGE3;
8208 uint8_t RESERVED_21[11];
8209 struct { /* offset: 0xC0, array step: 0x4 */
8210 __IO uint8_t ENDPT;
8211 uint8_t RESERVED_0[3];
8212 } ENDPOINT[16];
8213 __IO uint8_t USBCTRL;
8214 uint8_t RESERVED_22[3];
8215 __I uint8_t OBSERVE;
8216 uint8_t RESERVED_23[3];
8217 __IO uint8_t CONTROL;
8218 uint8_t RESERVED_24[3];
8219 __IO uint8_t USBTRC0;
8220} USB_Type;
8221
8222/* ----------------------------------------------------------------------------
8223 -- USB Register Masks
8224 ---------------------------------------------------------------------------- */
8225
8229/* PERID Bit Fields */
8230#define USB_PERID_ID_MASK 0x3Fu
8231#define USB_PERID_ID_SHIFT 0
8232#define USB_PERID_ID(x) (((uint8_t)(((uint8_t)(x))<<USB_PERID_ID_SHIFT))&USB_PERID_ID_MASK)
8233/* IDCOMP Bit Fields */
8234#define USB_IDCOMP_NID_MASK 0x3Fu
8235#define USB_IDCOMP_NID_SHIFT 0
8236#define USB_IDCOMP_NID(x) (((uint8_t)(((uint8_t)(x))<<USB_IDCOMP_NID_SHIFT))&USB_IDCOMP_NID_MASK)
8237/* REV Bit Fields */
8238#define USB_REV_REV_MASK 0xFFu
8239#define USB_REV_REV_SHIFT 0
8240#define USB_REV_REV(x) (((uint8_t)(((uint8_t)(x))<<USB_REV_REV_SHIFT))&USB_REV_REV_MASK)
8241/* ADDINFO Bit Fields */
8242#define USB_ADDINFO_IEHOST_MASK 0x1u
8243#define USB_ADDINFO_IEHOST_SHIFT 0
8244#define USB_ADDINFO_IRQNUM_MASK 0xF8u
8245#define USB_ADDINFO_IRQNUM_SHIFT 3
8246#define USB_ADDINFO_IRQNUM(x) (((uint8_t)(((uint8_t)(x))<<USB_ADDINFO_IRQNUM_SHIFT))&USB_ADDINFO_IRQNUM_MASK)
8247/* OTGISTAT Bit Fields */
8248#define USB_OTGISTAT_AVBUSCHG_MASK 0x1u
8249#define USB_OTGISTAT_AVBUSCHG_SHIFT 0
8250#define USB_OTGISTAT_B_SESS_CHG_MASK 0x4u
8251#define USB_OTGISTAT_B_SESS_CHG_SHIFT 2
8252#define USB_OTGISTAT_SESSVLDCHG_MASK 0x8u
8253#define USB_OTGISTAT_SESSVLDCHG_SHIFT 3
8254#define USB_OTGISTAT_LINE_STATE_CHG_MASK 0x20u
8255#define USB_OTGISTAT_LINE_STATE_CHG_SHIFT 5
8256#define USB_OTGISTAT_ONEMSEC_MASK 0x40u
8257#define USB_OTGISTAT_ONEMSEC_SHIFT 6
8258#define USB_OTGISTAT_IDCHG_MASK 0x80u
8259#define USB_OTGISTAT_IDCHG_SHIFT 7
8260/* OTGICR Bit Fields */
8261#define USB_OTGICR_AVBUSEN_MASK 0x1u
8262#define USB_OTGICR_AVBUSEN_SHIFT 0
8263#define USB_OTGICR_BSESSEN_MASK 0x4u
8264#define USB_OTGICR_BSESSEN_SHIFT 2
8265#define USB_OTGICR_SESSVLDEN_MASK 0x8u
8266#define USB_OTGICR_SESSVLDEN_SHIFT 3
8267#define USB_OTGICR_LINESTATEEN_MASK 0x20u
8268#define USB_OTGICR_LINESTATEEN_SHIFT 5
8269#define USB_OTGICR_ONEMSECEN_MASK 0x40u
8270#define USB_OTGICR_ONEMSECEN_SHIFT 6
8271#define USB_OTGICR_IDEN_MASK 0x80u
8272#define USB_OTGICR_IDEN_SHIFT 7
8273/* OTGSTAT Bit Fields */
8274#define USB_OTGSTAT_AVBUSVLD_MASK 0x1u
8275#define USB_OTGSTAT_AVBUSVLD_SHIFT 0
8276#define USB_OTGSTAT_BSESSEND_MASK 0x4u
8277#define USB_OTGSTAT_BSESSEND_SHIFT 2
8278#define USB_OTGSTAT_SESS_VLD_MASK 0x8u
8279#define USB_OTGSTAT_SESS_VLD_SHIFT 3
8280#define USB_OTGSTAT_LINESTATESTABLE_MASK 0x20u
8281#define USB_OTGSTAT_LINESTATESTABLE_SHIFT 5
8282#define USB_OTGSTAT_ONEMSECEN_MASK 0x40u
8283#define USB_OTGSTAT_ONEMSECEN_SHIFT 6
8284#define USB_OTGSTAT_ID_MASK 0x80u
8285#define USB_OTGSTAT_ID_SHIFT 7
8286/* OTGCTL Bit Fields */
8287#define USB_OTGCTL_OTGEN_MASK 0x4u
8288#define USB_OTGCTL_OTGEN_SHIFT 2
8289#define USB_OTGCTL_DMLOW_MASK 0x10u
8290#define USB_OTGCTL_DMLOW_SHIFT 4
8291#define USB_OTGCTL_DPLOW_MASK 0x20u
8292#define USB_OTGCTL_DPLOW_SHIFT 5
8293#define USB_OTGCTL_DPHIGH_MASK 0x80u
8294#define USB_OTGCTL_DPHIGH_SHIFT 7
8295/* ISTAT Bit Fields */
8296#define USB_ISTAT_USBRST_MASK 0x1u
8297#define USB_ISTAT_USBRST_SHIFT 0
8298#define USB_ISTAT_ERROR_MASK 0x2u
8299#define USB_ISTAT_ERROR_SHIFT 1
8300#define USB_ISTAT_SOFTOK_MASK 0x4u
8301#define USB_ISTAT_SOFTOK_SHIFT 2
8302#define USB_ISTAT_TOKDNE_MASK 0x8u
8303#define USB_ISTAT_TOKDNE_SHIFT 3
8304#define USB_ISTAT_SLEEP_MASK 0x10u
8305#define USB_ISTAT_SLEEP_SHIFT 4
8306#define USB_ISTAT_RESUME_MASK 0x20u
8307#define USB_ISTAT_RESUME_SHIFT 5
8308#define USB_ISTAT_ATTACH_MASK 0x40u
8309#define USB_ISTAT_ATTACH_SHIFT 6
8310#define USB_ISTAT_STALL_MASK 0x80u
8311#define USB_ISTAT_STALL_SHIFT 7
8312/* INTEN Bit Fields */
8313#define USB_INTEN_USBRSTEN_MASK 0x1u
8314#define USB_INTEN_USBRSTEN_SHIFT 0
8315#define USB_INTEN_ERROREN_MASK 0x2u
8316#define USB_INTEN_ERROREN_SHIFT 1
8317#define USB_INTEN_SOFTOKEN_MASK 0x4u
8318#define USB_INTEN_SOFTOKEN_SHIFT 2
8319#define USB_INTEN_TOKDNEEN_MASK 0x8u
8320#define USB_INTEN_TOKDNEEN_SHIFT 3
8321#define USB_INTEN_SLEEPEN_MASK 0x10u
8322#define USB_INTEN_SLEEPEN_SHIFT 4
8323#define USB_INTEN_RESUMEEN_MASK 0x20u
8324#define USB_INTEN_RESUMEEN_SHIFT 5
8325#define USB_INTEN_ATTACHEN_MASK 0x40u
8326#define USB_INTEN_ATTACHEN_SHIFT 6
8327#define USB_INTEN_STALLEN_MASK 0x80u
8328#define USB_INTEN_STALLEN_SHIFT 7
8329/* ERRSTAT Bit Fields */
8330#define USB_ERRSTAT_PIDERR_MASK 0x1u
8331#define USB_ERRSTAT_PIDERR_SHIFT 0
8332#define USB_ERRSTAT_CRC5EOF_MASK 0x2u
8333#define USB_ERRSTAT_CRC5EOF_SHIFT 1
8334#define USB_ERRSTAT_CRC16_MASK 0x4u
8335#define USB_ERRSTAT_CRC16_SHIFT 2
8336#define USB_ERRSTAT_DFN8_MASK 0x8u
8337#define USB_ERRSTAT_DFN8_SHIFT 3
8338#define USB_ERRSTAT_BTOERR_MASK 0x10u
8339#define USB_ERRSTAT_BTOERR_SHIFT 4
8340#define USB_ERRSTAT_DMAERR_MASK 0x20u
8341#define USB_ERRSTAT_DMAERR_SHIFT 5
8342#define USB_ERRSTAT_BTSERR_MASK 0x80u
8343#define USB_ERRSTAT_BTSERR_SHIFT 7
8344/* ERREN Bit Fields */
8345#define USB_ERREN_PIDERREN_MASK 0x1u
8346#define USB_ERREN_PIDERREN_SHIFT 0
8347#define USB_ERREN_CRC5EOFEN_MASK 0x2u
8348#define USB_ERREN_CRC5EOFEN_SHIFT 1
8349#define USB_ERREN_CRC16EN_MASK 0x4u
8350#define USB_ERREN_CRC16EN_SHIFT 2
8351#define USB_ERREN_DFN8EN_MASK 0x8u
8352#define USB_ERREN_DFN8EN_SHIFT 3
8353#define USB_ERREN_BTOERREN_MASK 0x10u
8354#define USB_ERREN_BTOERREN_SHIFT 4
8355#define USB_ERREN_DMAERREN_MASK 0x20u
8356#define USB_ERREN_DMAERREN_SHIFT 5
8357#define USB_ERREN_BTSERREN_MASK 0x80u
8358#define USB_ERREN_BTSERREN_SHIFT 7
8359/* STAT Bit Fields */
8360#define USB_STAT_ODD_MASK 0x4u
8361#define USB_STAT_ODD_SHIFT 2
8362#define USB_STAT_TX_MASK 0x8u
8363#define USB_STAT_TX_SHIFT 3
8364#define USB_STAT_ENDP_MASK 0xF0u
8365#define USB_STAT_ENDP_SHIFT 4
8366#define USB_STAT_ENDP(x) (((uint8_t)(((uint8_t)(x))<<USB_STAT_ENDP_SHIFT))&USB_STAT_ENDP_MASK)
8367/* CTL Bit Fields */
8368#define USB_CTL_USBENSOFEN_MASK 0x1u
8369#define USB_CTL_USBENSOFEN_SHIFT 0
8370#define USB_CTL_ODDRST_MASK 0x2u
8371#define USB_CTL_ODDRST_SHIFT 1
8372#define USB_CTL_RESUME_MASK 0x4u
8373#define USB_CTL_RESUME_SHIFT 2
8374#define USB_CTL_HOSTMODEEN_MASK 0x8u
8375#define USB_CTL_HOSTMODEEN_SHIFT 3
8376#define USB_CTL_RESET_MASK 0x10u
8377#define USB_CTL_RESET_SHIFT 4
8378#define USB_CTL_TXSUSPENDTOKENBUSY_MASK 0x20u
8379#define USB_CTL_TXSUSPENDTOKENBUSY_SHIFT 5
8380#define USB_CTL_SE0_MASK 0x40u
8381#define USB_CTL_SE0_SHIFT 6
8382#define USB_CTL_JSTATE_MASK 0x80u
8383#define USB_CTL_JSTATE_SHIFT 7
8384/* ADDR Bit Fields */
8385#define USB_ADDR_ADDR_MASK 0x7Fu
8386#define USB_ADDR_ADDR_SHIFT 0
8387#define USB_ADDR_ADDR(x) (((uint8_t)(((uint8_t)(x))<<USB_ADDR_ADDR_SHIFT))&USB_ADDR_ADDR_MASK)
8388#define USB_ADDR_LSEN_MASK 0x80u
8389#define USB_ADDR_LSEN_SHIFT 7
8390/* BDTPAGE1 Bit Fields */
8391#define USB_BDTPAGE1_BDTBA_MASK 0xFEu
8392#define USB_BDTPAGE1_BDTBA_SHIFT 1
8393#define USB_BDTPAGE1_BDTBA(x) (((uint8_t)(((uint8_t)(x))<<USB_BDTPAGE1_BDTBA_SHIFT))&USB_BDTPAGE1_BDTBA_MASK)
8394/* FRMNUML Bit Fields */
8395#define USB_FRMNUML_FRM_MASK 0xFFu
8396#define USB_FRMNUML_FRM_SHIFT 0
8397#define USB_FRMNUML_FRM(x) (((uint8_t)(((uint8_t)(x))<<USB_FRMNUML_FRM_SHIFT))&USB_FRMNUML_FRM_MASK)
8398/* FRMNUMH Bit Fields */
8399#define USB_FRMNUMH_FRM_MASK 0x7u
8400#define USB_FRMNUMH_FRM_SHIFT 0
8401#define USB_FRMNUMH_FRM(x) (((uint8_t)(((uint8_t)(x))<<USB_FRMNUMH_FRM_SHIFT))&USB_FRMNUMH_FRM_MASK)
8402/* TOKEN Bit Fields */
8403#define USB_TOKEN_TOKENENDPT_MASK 0xFu
8404#define USB_TOKEN_TOKENENDPT_SHIFT 0
8405#define USB_TOKEN_TOKENENDPT(x) (((uint8_t)(((uint8_t)(x))<<USB_TOKEN_TOKENENDPT_SHIFT))&USB_TOKEN_TOKENENDPT_MASK)
8406#define USB_TOKEN_TOKENPID_MASK 0xF0u
8407#define USB_TOKEN_TOKENPID_SHIFT 4
8408#define USB_TOKEN_TOKENPID(x) (((uint8_t)(((uint8_t)(x))<<USB_TOKEN_TOKENPID_SHIFT))&USB_TOKEN_TOKENPID_MASK)
8409/* SOFTHLD Bit Fields */
8410#define USB_SOFTHLD_CNT_MASK 0xFFu
8411#define USB_SOFTHLD_CNT_SHIFT 0
8412#define USB_SOFTHLD_CNT(x) (((uint8_t)(((uint8_t)(x))<<USB_SOFTHLD_CNT_SHIFT))&USB_SOFTHLD_CNT_MASK)
8413/* BDTPAGE2 Bit Fields */
8414#define USB_BDTPAGE2_BDTBA_MASK 0xFFu
8415#define USB_BDTPAGE2_BDTBA_SHIFT 0
8416#define USB_BDTPAGE2_BDTBA(x) (((uint8_t)(((uint8_t)(x))<<USB_BDTPAGE2_BDTBA_SHIFT))&USB_BDTPAGE2_BDTBA_MASK)
8417/* BDTPAGE3 Bit Fields */
8418#define USB_BDTPAGE3_BDTBA_MASK 0xFFu
8419#define USB_BDTPAGE3_BDTBA_SHIFT 0
8420#define USB_BDTPAGE3_BDTBA(x) (((uint8_t)(((uint8_t)(x))<<USB_BDTPAGE3_BDTBA_SHIFT))&USB_BDTPAGE3_BDTBA_MASK)
8421/* ENDPT Bit Fields */
8422#define USB_ENDPT_EPHSHK_MASK 0x1u
8423#define USB_ENDPT_EPHSHK_SHIFT 0
8424#define USB_ENDPT_EPSTALL_MASK 0x2u
8425#define USB_ENDPT_EPSTALL_SHIFT 1
8426#define USB_ENDPT_EPTXEN_MASK 0x4u
8427#define USB_ENDPT_EPTXEN_SHIFT 2
8428#define USB_ENDPT_EPRXEN_MASK 0x8u
8429#define USB_ENDPT_EPRXEN_SHIFT 3
8430#define USB_ENDPT_EPCTLDIS_MASK 0x10u
8431#define USB_ENDPT_EPCTLDIS_SHIFT 4
8432#define USB_ENDPT_RETRYDIS_MASK 0x40u
8433#define USB_ENDPT_RETRYDIS_SHIFT 6
8434#define USB_ENDPT_HOSTWOHUB_MASK 0x80u
8435#define USB_ENDPT_HOSTWOHUB_SHIFT 7
8436/* USBCTRL Bit Fields */
8437#define USB_USBCTRL_PDE_MASK 0x40u
8438#define USB_USBCTRL_PDE_SHIFT 6
8439#define USB_USBCTRL_SUSP_MASK 0x80u
8440#define USB_USBCTRL_SUSP_SHIFT 7
8441/* OBSERVE Bit Fields */
8442#define USB_OBSERVE_DMPD_MASK 0x10u
8443#define USB_OBSERVE_DMPD_SHIFT 4
8444#define USB_OBSERVE_DPPD_MASK 0x40u
8445#define USB_OBSERVE_DPPD_SHIFT 6
8446#define USB_OBSERVE_DPPU_MASK 0x80u
8447#define USB_OBSERVE_DPPU_SHIFT 7
8448/* CONTROL Bit Fields */
8449#define USB_CONTROL_DPPULLUPNONOTG_MASK 0x10u
8450#define USB_CONTROL_DPPULLUPNONOTG_SHIFT 4
8451/* USBTRC0 Bit Fields */
8452#define USB_USBTRC0_USB_RESUME_INT_MASK 0x1u
8453#define USB_USBTRC0_USB_RESUME_INT_SHIFT 0
8454#define USB_USBTRC0_SYNC_DET_MASK 0x2u
8455#define USB_USBTRC0_SYNC_DET_SHIFT 1
8456#define USB_USBTRC0_USBRESMEN_MASK 0x20u
8457#define USB_USBTRC0_USBRESMEN_SHIFT 5
8458#define USB_USBTRC0_USBRESET_MASK 0x80u
8459#define USB_USBTRC0_USBRESET_SHIFT 7
8460
8461 /* end of group USB_Register_Masks */
8462
8463
8464/* USB - Peripheral instance base addresses */
8466#define USB0_BASE (0x40072000u)
8468#define USB0 ((USB_Type *)USB0_BASE)
8469
8470 /* end of group USB_Peripheral_Access_Layer */
8471
8472
8473/* ----------------------------------------------------------------------------
8474 -- USBDCD Peripheral Access Layer
8475 ---------------------------------------------------------------------------- */
8476
8481typedef struct {
8482 __IO uint32_t CONTROL;
8483 __IO uint32_t CLOCK;
8484 __I uint32_t STATUS;
8485 uint8_t RESERVED_0[4];
8486 __IO uint32_t TIMER0;
8487 __IO uint32_t TIMER1;
8488 __IO uint32_t TIMER2;
8489} USBDCD_Type;
8490
8491/* ----------------------------------------------------------------------------
8492 -- USBDCD Register Masks
8493 ---------------------------------------------------------------------------- */
8494
8498/* CONTROL Bit Fields */
8499#define USBDCD_CONTROL_IACK_MASK 0x1u
8500#define USBDCD_CONTROL_IACK_SHIFT 0
8501#define USBDCD_CONTROL_IF_MASK 0x100u
8502#define USBDCD_CONTROL_IF_SHIFT 8
8503#define USBDCD_CONTROL_IE_MASK 0x10000u
8504#define USBDCD_CONTROL_IE_SHIFT 16
8505#define USBDCD_CONTROL_START_MASK 0x1000000u
8506#define USBDCD_CONTROL_START_SHIFT 24
8507#define USBDCD_CONTROL_SR_MASK 0x2000000u
8508#define USBDCD_CONTROL_SR_SHIFT 25
8509/* CLOCK Bit Fields */
8510#define USBDCD_CLOCK_CLOCK_UNIT_MASK 0x1u
8511#define USBDCD_CLOCK_CLOCK_UNIT_SHIFT 0
8512#define USBDCD_CLOCK_CLOCK_SPEED_MASK 0xFFCu
8513#define USBDCD_CLOCK_CLOCK_SPEED_SHIFT 2
8514#define USBDCD_CLOCK_CLOCK_SPEED(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_CLOCK_CLOCK_SPEED_SHIFT))&USBDCD_CLOCK_CLOCK_SPEED_MASK)
8515/* STATUS Bit Fields */
8516#define USBDCD_STATUS_SEQ_RES_MASK 0x30000u
8517#define USBDCD_STATUS_SEQ_RES_SHIFT 16
8518#define USBDCD_STATUS_SEQ_RES(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_STATUS_SEQ_RES_SHIFT))&USBDCD_STATUS_SEQ_RES_MASK)
8519#define USBDCD_STATUS_SEQ_STAT_MASK 0xC0000u
8520#define USBDCD_STATUS_SEQ_STAT_SHIFT 18
8521#define USBDCD_STATUS_SEQ_STAT(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_STATUS_SEQ_STAT_SHIFT))&USBDCD_STATUS_SEQ_STAT_MASK)
8522#define USBDCD_STATUS_ERR_MASK 0x100000u
8523#define USBDCD_STATUS_ERR_SHIFT 20
8524#define USBDCD_STATUS_TO_MASK 0x200000u
8525#define USBDCD_STATUS_TO_SHIFT 21
8526#define USBDCD_STATUS_ACTIVE_MASK 0x400000u
8527#define USBDCD_STATUS_ACTIVE_SHIFT 22
8528/* TIMER0 Bit Fields */
8529#define USBDCD_TIMER0_TUNITCON_MASK 0xFFFu
8530#define USBDCD_TIMER0_TUNITCON_SHIFT 0
8531#define USBDCD_TIMER0_TUNITCON(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER0_TUNITCON_SHIFT))&USBDCD_TIMER0_TUNITCON_MASK)
8532#define USBDCD_TIMER0_TSEQ_INIT_MASK 0x3FF0000u
8533#define USBDCD_TIMER0_TSEQ_INIT_SHIFT 16
8534#define USBDCD_TIMER0_TSEQ_INIT(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER0_TSEQ_INIT_SHIFT))&USBDCD_TIMER0_TSEQ_INIT_MASK)
8535/* TIMER1 Bit Fields */
8536#define USBDCD_TIMER1_TVDPSRC_ON_MASK 0x3FFu
8537#define USBDCD_TIMER1_TVDPSRC_ON_SHIFT 0
8538#define USBDCD_TIMER1_TVDPSRC_ON(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER1_TVDPSRC_ON_SHIFT))&USBDCD_TIMER1_TVDPSRC_ON_MASK)
8539#define USBDCD_TIMER1_TDCD_DBNC_MASK 0x3FF0000u
8540#define USBDCD_TIMER1_TDCD_DBNC_SHIFT 16
8541#define USBDCD_TIMER1_TDCD_DBNC(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER1_TDCD_DBNC_SHIFT))&USBDCD_TIMER1_TDCD_DBNC_MASK)
8542/* TIMER2 Bit Fields */
8543#define USBDCD_TIMER2_CHECK_DM_MASK 0xFu
8544#define USBDCD_TIMER2_CHECK_DM_SHIFT 0
8545#define USBDCD_TIMER2_CHECK_DM(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER2_CHECK_DM_SHIFT))&USBDCD_TIMER2_CHECK_DM_MASK)
8546#define USBDCD_TIMER2_TVDPSRC_CON_MASK 0x3FF0000u
8547#define USBDCD_TIMER2_TVDPSRC_CON_SHIFT 16
8548#define USBDCD_TIMER2_TVDPSRC_CON(x) (((uint32_t)(((uint32_t)(x))<<USBDCD_TIMER2_TVDPSRC_CON_SHIFT))&USBDCD_TIMER2_TVDPSRC_CON_MASK)
8549
8550 /* end of group USBDCD_Register_Masks */
8551
8552
8553/* USBDCD - Peripheral instance base addresses */
8555#define USBDCD_BASE (0x40035000u)
8557#define USBDCD ((USBDCD_Type *)USBDCD_BASE)
8558
8559 /* end of group USBDCD_Peripheral_Access_Layer */
8560
8561
8562/* ----------------------------------------------------------------------------
8563 -- VREF Peripheral Access Layer
8564 ---------------------------------------------------------------------------- */
8565
8570typedef struct {
8571 uint8_t RESERVED_0[1];
8572 __IO uint8_t SC;
8573} VREF_Type;
8574
8575/* ----------------------------------------------------------------------------
8576 -- VREF Register Masks
8577 ---------------------------------------------------------------------------- */
8578
8582/* SC Bit Fields */
8583#define VREF_SC_MODE_LV_MASK 0x3u
8584#define VREF_SC_MODE_LV_SHIFT 0
8585#define VREF_SC_MODE_LV(x) (((uint8_t)(((uint8_t)(x))<<VREF_SC_MODE_LV_SHIFT))&VREF_SC_MODE_LV_MASK)
8586#define VREF_SC_VREFST_MASK 0x4u
8587#define VREF_SC_VREFST_SHIFT 2
8588#define VREF_SC_REGEN_MASK 0x40u
8589#define VREF_SC_REGEN_SHIFT 6
8590#define VREF_SC_VREFEN_MASK 0x80u
8591#define VREF_SC_VREFEN_SHIFT 7
8592
8593 /* end of group VREF_Register_Masks */
8594
8595
8596/* VREF - Peripheral instance base addresses */
8598#define VREF_BASE (0x40074000u)
8600#define VREF ((VREF_Type *)VREF_BASE)
8601
8602 /* end of group VREF_Peripheral_Access_Layer */
8603
8604
8605/* ----------------------------------------------------------------------------
8606 -- WDOG Peripheral Access Layer
8607 ---------------------------------------------------------------------------- */
8608
8613typedef struct {
8614 __IO uint16_t STCTRLH;
8615 __IO uint16_t STCTRLL;
8616 __IO uint16_t TOVALH;
8617 __IO uint16_t TOVALL;
8618 __IO uint16_t WINH;
8619 __IO uint16_t WINL;
8620 __IO uint16_t REFRESH;
8621 __IO uint16_t UNLOCK;
8622 __IO uint16_t TMROUTH;
8623 __IO uint16_t TMROUTL;
8624 __IO uint16_t RSTCNT;
8625 __IO uint16_t PRESC;
8626} WDOG_Type;
8627
8628/* ----------------------------------------------------------------------------
8629 -- WDOG Register Masks
8630 ---------------------------------------------------------------------------- */
8631
8635/* STCTRLH Bit Fields */
8636#define WDOG_STCTRLH_WDOGEN_MASK 0x1u
8637#define WDOG_STCTRLH_WDOGEN_SHIFT 0
8638#define WDOG_STCTRLH_CLKSRC_MASK 0x2u
8639#define WDOG_STCTRLH_CLKSRC_SHIFT 1
8640#define WDOG_STCTRLH_IRQRSTEN_MASK 0x4u
8641#define WDOG_STCTRLH_IRQRSTEN_SHIFT 2
8642#define WDOG_STCTRLH_WINEN_MASK 0x8u
8643#define WDOG_STCTRLH_WINEN_SHIFT 3
8644#define WDOG_STCTRLH_ALLOWUPDATE_MASK 0x10u
8645#define WDOG_STCTRLH_ALLOWUPDATE_SHIFT 4
8646#define WDOG_STCTRLH_DBGEN_MASK 0x20u
8647#define WDOG_STCTRLH_DBGEN_SHIFT 5
8648#define WDOG_STCTRLH_STOPEN_MASK 0x40u
8649#define WDOG_STCTRLH_STOPEN_SHIFT 6
8650#define WDOG_STCTRLH_WAITEN_MASK 0x80u
8651#define WDOG_STCTRLH_WAITEN_SHIFT 7
8652#define WDOG_STCTRLH_STNDBYEN_MASK 0x100u
8653#define WDOG_STCTRLH_STNDBYEN_SHIFT 8
8654#define WDOG_STCTRLH_TESTWDOG_MASK 0x400u
8655#define WDOG_STCTRLH_TESTWDOG_SHIFT 10
8656#define WDOG_STCTRLH_TESTSEL_MASK 0x800u
8657#define WDOG_STCTRLH_TESTSEL_SHIFT 11
8658#define WDOG_STCTRLH_BYTESEL_MASK 0x3000u
8659#define WDOG_STCTRLH_BYTESEL_SHIFT 12
8660#define WDOG_STCTRLH_BYTESEL(x) (((uint16_t)(((uint16_t)(x))<<WDOG_STCTRLH_BYTESEL_SHIFT))&WDOG_STCTRLH_BYTESEL_MASK)
8661#define WDOG_STCTRLH_DISTESTWDOG_MASK 0x4000u
8662#define WDOG_STCTRLH_DISTESTWDOG_SHIFT 14
8663/* STCTRLL Bit Fields */
8664#define WDOG_STCTRLL_INTFLG_MASK 0x8000u
8665#define WDOG_STCTRLL_INTFLG_SHIFT 15
8666/* TOVALH Bit Fields */
8667#define WDOG_TOVALH_TOVALHIGH_MASK 0xFFFFu
8668#define WDOG_TOVALH_TOVALHIGH_SHIFT 0
8669#define WDOG_TOVALH_TOVALHIGH(x) (((uint16_t)(((uint16_t)(x))<<WDOG_TOVALH_TOVALHIGH_SHIFT))&WDOG_TOVALH_TOVALHIGH_MASK)
8670/* TOVALL Bit Fields */
8671#define WDOG_TOVALL_TOVALLOW_MASK 0xFFFFu
8672#define WDOG_TOVALL_TOVALLOW_SHIFT 0
8673#define WDOG_TOVALL_TOVALLOW(x) (((uint16_t)(((uint16_t)(x))<<WDOG_TOVALL_TOVALLOW_SHIFT))&WDOG_TOVALL_TOVALLOW_MASK)
8674/* WINH Bit Fields */
8675#define WDOG_WINH_WINHIGH_MASK 0xFFFFu
8676#define WDOG_WINH_WINHIGH_SHIFT 0
8677#define WDOG_WINH_WINHIGH(x) (((uint16_t)(((uint16_t)(x))<<WDOG_WINH_WINHIGH_SHIFT))&WDOG_WINH_WINHIGH_MASK)
8678/* WINL Bit Fields */
8679#define WDOG_WINL_WINLOW_MASK 0xFFFFu
8680#define WDOG_WINL_WINLOW_SHIFT 0
8681#define WDOG_WINL_WINLOW(x) (((uint16_t)(((uint16_t)(x))<<WDOG_WINL_WINLOW_SHIFT))&WDOG_WINL_WINLOW_MASK)
8682/* REFRESH Bit Fields */
8683#define WDOG_REFRESH_WDOGREFRESH_MASK 0xFFFFu
8684#define WDOG_REFRESH_WDOGREFRESH_SHIFT 0
8685#define WDOG_REFRESH_WDOGREFRESH(x) (((uint16_t)(((uint16_t)(x))<<WDOG_REFRESH_WDOGREFRESH_SHIFT))&WDOG_REFRESH_WDOGREFRESH_MASK)
8686/* UNLOCK Bit Fields */
8687#define WDOG_UNLOCK_WDOGUNLOCK_MASK 0xFFFFu
8688#define WDOG_UNLOCK_WDOGUNLOCK_SHIFT 0
8689#define WDOG_UNLOCK_WDOGUNLOCK(x) (((uint16_t)(((uint16_t)(x))<<WDOG_UNLOCK_WDOGUNLOCK_SHIFT))&WDOG_UNLOCK_WDOGUNLOCK_MASK)
8690/* TMROUTH Bit Fields */
8691#define WDOG_TMROUTH_TIMEROUTHIGH_MASK 0xFFFFu
8692#define WDOG_TMROUTH_TIMEROUTHIGH_SHIFT 0
8693#define WDOG_TMROUTH_TIMEROUTHIGH(x) (((uint16_t)(((uint16_t)(x))<<WDOG_TMROUTH_TIMEROUTHIGH_SHIFT))&WDOG_TMROUTH_TIMEROUTHIGH_MASK)
8694/* TMROUTL Bit Fields */
8695#define WDOG_TMROUTL_TIMEROUTLOW_MASK 0xFFFFu
8696#define WDOG_TMROUTL_TIMEROUTLOW_SHIFT 0
8697#define WDOG_TMROUTL_TIMEROUTLOW(x) (((uint16_t)(((uint16_t)(x))<<WDOG_TMROUTL_TIMEROUTLOW_SHIFT))&WDOG_TMROUTL_TIMEROUTLOW_MASK)
8698/* RSTCNT Bit Fields */
8699#define WDOG_RSTCNT_RSTCNT_MASK 0xFFFFu
8700#define WDOG_RSTCNT_RSTCNT_SHIFT 0
8701#define WDOG_RSTCNT_RSTCNT(x) (((uint16_t)(((uint16_t)(x))<<WDOG_RSTCNT_RSTCNT_SHIFT))&WDOG_RSTCNT_RSTCNT_MASK)
8702/* PRESC Bit Fields */
8703#define WDOG_PRESC_PRESCVAL_MASK 0x700u
8704#define WDOG_PRESC_PRESCVAL_SHIFT 8
8705#define WDOG_PRESC_PRESCVAL(x) (((uint16_t)(((uint16_t)(x))<<WDOG_PRESC_PRESCVAL_SHIFT))&WDOG_PRESC_PRESCVAL_MASK)
8706
8707 /* end of group WDOG_Register_Masks */
8708
8709
8710/* WDOG - Peripheral instance base addresses */
8712#define WDOG_BASE (0x40052000u)
8714#define WDOG ((WDOG_Type *)WDOG_BASE)
8715
8716 /* end of group WDOG_Peripheral_Access_Layer */
8717
8718
8719/*
8720** End of section using anonymous unions
8721*/
8722
8723#if defined(__ARMCC_VERSION)
8724 #pragma pop
8725#elif defined(__CWCC__)
8726 #pragma pop
8727#elif defined(__GNUC__)
8728 /* leave anonymous unions enabled */
8729#elif defined(__IAR_SYSTEMS_ICC__)
8730 #pragma language=default
8731#else
8732 #error Not supported compiler type
8733#endif
8734
8735 /* end of group Peripheral_access_layer */
8736
8737
8738#endif /* #if !defined(MK60N512MD100_H_) */
8739
8740/* MK60N512MD100.h, eof. */
#define __O
Definition core_cm3.h:169
#define __IO
Definition core_cm3.h:170
#define __I
Definition core_cm3.h:167
CMSIS Cortex-M4 Core Peripheral Access Layer Header File.
#define CRC
Definition MK60N512MD100.h:2247
#define DMA
Definition MK60N512MD100.h:2945
enum IRQn IRQn_Type
IRQn
Definition MK60D10.h:157
@ MCM_IRQn
Definition MK60N512MD100.h:125
@ PendSV_IRQn
Definition MK60N512MD100.h:104
@ DMA7_IRQn
Definition MK60N512MD100.h:115
@ CAN1_ORed_Message_buffer_IRQn
Definition MK60N512MD100.h:145
@ LLW_IRQn
Definition MK60N512MD100.h:129
@ FTM0_IRQn
Definition MK60N512MD100.h:170
@ ADC0_IRQn
Definition MK60N512MD100.h:165
@ PORTE_IRQn
Definition MK60N512MD100.h:199
@ Reserved60_IRQn
Definition MK60N512MD100.h:152
@ I2C0_IRQn
Definition MK60N512MD100.h:132
@ MCG_IRQn
Definition MK60N512MD100.h:192
@ DMA11_IRQn
Definition MK60N512MD100.h:119
@ CAN1_Bus_Off_IRQn
Definition MK60N512MD100.h:146
@ DMA2_IRQn
Definition MK60N512MD100.h:110
@ UART4_RX_TX_IRQn
Definition MK60N512MD100.h:161
@ Reserved116_IRQn
Definition MK60N512MD100.h:208
@ DMA13_IRQn
Definition MK60N512MD100.h:121
@ CAN1_Error_IRQn
Definition MK60N512MD100.h:147
@ PORTD_IRQn
Definition MK60N512MD100.h:198
@ MemoryManagement_IRQn
Definition MK60N512MD100.h:99
@ DMA3_IRQn
Definition MK60N512MD100.h:111
@ ADC1_IRQn
Definition MK60N512MD100.h:166
@ Reserved102_IRQn
Definition MK60N512MD100.h:194
@ CAN0_ORed_Message_buffer_IRQn
Definition MK60N512MD100.h:137
@ DMA12_IRQn
Definition MK60N512MD100.h:120
@ UART5_ERR_IRQn
Definition MK60N512MD100.h:164
@ TSI0_IRQn
Definition MK60N512MD100.h:191
@ Reserved119_IRQn
Definition MK60N512MD100.h:211
@ SDHC_IRQn
Definition MK60N512MD100.h:188
@ Watchdog_IRQn
Definition MK60N512MD100.h:130
@ FTM1_IRQn
Definition MK60N512MD100.h:171
@ CAN0_Wake_Up_IRQn
Definition MK60N512MD100.h:142
@ SVCall_IRQn
Definition MK60N512MD100.h:102
@ CAN0_Tx_Warning_IRQn
Definition MK60N512MD100.h:140
@ Reserved52_IRQn
Definition MK60N512MD100.h:144
@ SPI2_IRQn
Definition MK60N512MD100.h:136
@ DMA_Error_IRQn
Definition MK60N512MD100.h:124
@ DMA0_IRQn
Definition MK60N512MD100.h:108
@ DMA1_IRQn
Definition MK60N512MD100.h:109
@ UART0_RX_TX_IRQn
Definition MK60N512MD100.h:153
@ Reserved109_IRQn
Definition MK60N512MD100.h:201
@ DAC0_IRQn
Definition MK60N512MD100.h:189
@ Reserved83_IRQn
Definition MK60N512MD100.h:175
@ Reserved51_IRQn
Definition MK60N512MD100.h:143
@ Reserved110_IRQn
Definition MK60N512MD100.h:202
@ FTM2_IRQn
Definition MK60N512MD100.h:172
@ CMT_IRQn
Definition MK60N512MD100.h:173
@ UsageFault_IRQn
Definition MK60N512MD100.h:101
@ UART4_ERR_IRQn
Definition MK60N512MD100.h:162
@ Reserved115_IRQn
Definition MK60N512MD100.h:207
@ SysTick_IRQn
Definition MK60N512MD100.h:105
@ DMA4_IRQn
Definition MK60N512MD100.h:112
@ CAN0_Error_IRQn
Definition MK60N512MD100.h:139
@ UART5_RX_TX_IRQn
Definition MK60N512MD100.h:163
@ UART0_ERR_IRQn
Definition MK60N512MD100.h:154
@ CAN1_Rx_Warning_IRQn
Definition MK60N512MD100.h:149
@ CMP2_IRQn
Definition MK60N512MD100.h:169
@ DMA5_IRQn
Definition MK60N512MD100.h:113
@ Reserved117_IRQn
Definition MK60N512MD100.h:209
@ DMA15_IRQn
Definition MK60N512MD100.h:123
@ CAN1_Wake_Up_IRQn
Definition MK60N512MD100.h:150
@ DMA10_IRQn
Definition MK60N512MD100.h:118
@ BusFault_IRQn
Definition MK60N512MD100.h:100
@ CMP0_IRQn
Definition MK60N512MD100.h:167
@ ENET_Receive_IRQn
Definition MK60N512MD100.h:185
@ PDB0_IRQn
Definition MK60N512MD100.h:180
@ UART2_RX_TX_IRQn
Definition MK60N512MD100.h:157
@ DebugMonitor_IRQn
Definition MK60N512MD100.h:103
@ RNG_IRQn
Definition MK60N512MD100.h:131
@ UART1_ERR_IRQn
Definition MK60N512MD100.h:156
@ USBDCD_IRQn
Definition MK60N512MD100.h:182
@ Reserved59_IRQn
Definition MK60N512MD100.h:151
@ I2S0_IRQn
Definition MK60N512MD100.h:187
@ Read_Collision_IRQn
Definition MK60N512MD100.h:127
@ DMA6_IRQn
Definition MK60N512MD100.h:114
@ LVD_LVW_IRQn
Definition MK60N512MD100.h:128
@ PIT3_IRQn
Definition MK60N512MD100.h:179
@ FTFL_IRQn
Definition MK60N512MD100.h:126
@ UART2_ERR_IRQn
Definition MK60N512MD100.h:158
@ SPI1_IRQn
Definition MK60N512MD100.h:135
@ CAN0_Rx_Warning_IRQn
Definition MK60N512MD100.h:141
@ PIT0_IRQn
Definition MK60N512MD100.h:176
@ UART3_RX_TX_IRQn
Definition MK60N512MD100.h:159
@ ENET_Error_IRQn
Definition MK60N512MD100.h:186
@ PORTA_IRQn
Definition MK60N512MD100.h:195
@ ENET_1588_Timer_IRQn
Definition MK60N512MD100.h:183
@ CMP1_IRQn
Definition MK60N512MD100.h:168
@ PORTC_IRQn
Definition MK60N512MD100.h:197
@ Reserved113_IRQn
Definition MK60N512MD100.h:205
@ ENET_Transmit_IRQn
Definition MK60N512MD100.h:184
@ PORTB_IRQn
Definition MK60N512MD100.h:196
@ Reserved108_IRQn
Definition MK60N512MD100.h:200
@ Reserved111_IRQn
Definition MK60N512MD100.h:203
@ LPTimer_IRQn
Definition MK60N512MD100.h:193
@ UART3_ERR_IRQn
Definition MK60N512MD100.h:160
@ DMA14_IRQn
Definition MK60N512MD100.h:122
@ UART1_RX_TX_IRQn
Definition MK60N512MD100.h:155
@ USB0_IRQn
Definition MK60N512MD100.h:181
@ CAN0_Bus_Off_IRQn
Definition MK60N512MD100.h:138
@ CAN1_Tx_Warning_IRQn
Definition MK60N512MD100.h:148
@ RTC_IRQn
Definition MK60N512MD100.h:174
@ NonMaskableInt_IRQn
Definition MK60N512MD100.h:98
@ PIT1_IRQn
Definition MK60N512MD100.h:177
@ Reserved114_IRQn
Definition MK60N512MD100.h:206
@ Reserved112_IRQn
Definition MK60N512MD100.h:204
@ DAC1_IRQn
Definition MK60N512MD100.h:190
@ I2C1_IRQn
Definition MK60N512MD100.h:133
@ DMA8_IRQn
Definition MK60N512MD100.h:116
@ Reserved118_IRQn
Definition MK60N512MD100.h:210
@ SPI0_IRQn
Definition MK60N512MD100.h:134
@ DMA9_IRQn
Definition MK60N512MD100.h:117
@ PIT2_IRQn
Definition MK60N512MD100.h:178
Definition MK60D10.h:449
Definition MK60D10.h:726
Definition MK60D10.h:2032
Definition MK60D10.h:2166
__IO uint32_t IFLAG2
Definition MK60N512MD100.h:1473
__IO uint32_t IMASK2
Definition MK60N512MD100.h:1471
Definition MK60D10.h:2591
Definition MK60D10.h:3104
Definition MK60D10.h:3241
Definition MK60D10.h:3382
Definition MK60D10.h:3574
Definition MK60D10.h:4580
Definition MK60D10.h:3706
Definition MK60D10.h:4638
__IO uint32_t RMON_R_OCTETS
Definition MK60N512MD100.h:3092
__IO uint32_t RMON_T_OCTETS
Definition MK60N512MD100.h:3062
__IO uint32_t IEEE_R_OCTETS_OK
Definition MK60N512MD100.h:3099
__IO uint32_t RMON_R_FRAME_OK
Definition MK60N512MD100.h:3094
__IO uint32_t IEEE_T_OCTETS_OK
Definition MK60N512MD100.h:3074
__IO uint32_t RMON_R_DROP
Definition MK60N512MD100.h:3093
Definition MK60D10.h:5537
Definition MK60D10.h:5622
Definition MK60D10.h:5755
Definition MK60D10.h:5952
Definition MK60D10.h:6173
__I uint32_t STATUS
Definition MK60N512MD100.h:4082
Definition MK60D10.h:6852
Definition MK60D10.h:6947
Definition MK60D10.h:7149
__IO uint32_t ISR
Definition MK60N512MD100.h:4695
__IO uint32_t RX1
Definition MK60N512MD100.h:4693
__IO uint32_t TX0
Definition MK60N512MD100.h:4690
__IO uint32_t ACNT
Definition MK60N512MD100.h:4703
__IO uint32_t RX0
Definition MK60N512MD100.h:4692
__IO uint32_t ACCEN
Definition MK60N512MD100.h:4710
__IO uint32_t ACADD
Definition MK60N512MD100.h:4704
__I uint32_t ACCST
Definition MK60N512MD100.h:4709
__IO uint32_t RMSK
Definition MK60N512MD100.h:4708
__IO uint32_t TMSK
Definition MK60N512MD100.h:4707
__IO uint32_t IER
Definition MK60N512MD100.h:4696
__IO uint32_t TCR
Definition MK60N512MD100.h:4697
__IO uint32_t RCCR
Definition MK60N512MD100.h:4700
__IO uint32_t RCR
Definition MK60N512MD100.h:4698
__IO uint32_t ACDAT
Definition MK60N512MD100.h:4705
__IO uint32_t FCSR
Definition MK60N512MD100.h:4701
__IO uint32_t TCCR
Definition MK60N512MD100.h:4699
__IO uint32_t TX1
Definition MK60N512MD100.h:4691
__IO uint32_t ATAG
Definition MK60N512MD100.h:4706
__IO uint32_t CR
Definition MK60N512MD100.h:4694
__IO uint32_t ACCDIS
Definition MK60N512MD100.h:4711
Definition MK60D10.h:7536
__IO uint8_t CS
Definition MK60N512MD100.h:5030
__IO uint8_t F3
Definition MK60N512MD100.h:5029
Definition MK60D10.h:7782
__I uint32_t CNR
Definition MK60N512MD100.h:5192
Definition MK60D10.h:7875
__I uint8_t S
Definition MK60N512MD100.h:5338
__IO uint8_t ATC
Definition MK60N512MD100.h:5340
Definition MK60D10.h:8113
__IO uint32_t SRAMAP
Definition MK60N512MD100.h:5467
Definition MK60N512MD100.h:5256
__IO uint8_t PMPROT
Definition MK60N512MD100.h:5259
__I uint8_t SRSL
Definition MK60N512MD100.h:5258
__I uint8_t SRSH
Definition MK60N512MD100.h:5257
__IO uint8_t PMCTRL
Definition MK60N512MD100.h:5260
Definition MK60N512MD100.h:5546
__IO uint32_t CESR
Definition MK60N512MD100.h:5547
__I uint32_t EDR
Definition MK60N512MD100.h:5551
__I uint32_t EAR
Definition MK60N512MD100.h:5550
Definition MK60D10.h:8235
Definition MK60D10.h:8389
Definition MK60D10.h:8453
Definition MK60D10.h:8640
Definition MK60D10.h:8739
Definition MK60D10.h:8832
Definition MK60D10.h:9084
Definition MK60D10.h:9145
Definition MK60D10.h:9206
__I uint32_t VER
Definition MK60N512MD100.h:6285
__IO uint32_t CMD
Definition MK60N512MD100.h:6286
__I uint32_t ESR
Definition MK60N512MD100.h:6289
__I uint32_t OUT
Definition MK60N512MD100.h:6290
Definition MK60D10.h:9305
__IO uint32_t CCR
Definition MK60N512MD100.h:6402
Definition MK60D10.h:9520
Definition MK60D10.h:10117
__IO uint32_t SOPT6
Definition MK60N512MD100.h:6973
Definition MK60D10.h:10645
Definition MK60D10.h:11191
__IO uint32_t STATUS
Definition MK60N512MD100.h:7553
Definition MK60D10.h:11447
__IO uint8_t WP7816_T_TYPE1
Definition MK60N512MD100.h:7848
__IO uint8_t WP7816_T_TYPE0
Definition MK60N512MD100.h:7847
Definition MK60D10.h:12538
Definition MK60D10.h:12089
Definition MK60D10.h:12656
Definition MK60D10.h:12726