aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/os/common/ext/CMSIS
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/os/common/ext/CMSIS')
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F165x/ht32f165x.h254
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F165x/ht32f165x_reg.h679
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F523xx/ht32f523x2.h199
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F523xx/ht32f523x2_reg.h657
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/MK66F18.h21214
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20x5.h305
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20x7.h362
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20xx.h2319
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k64f.h8107
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl25z.h1100
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl26z.h1169
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl27zxx.h1229
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl27zxxx.h1216
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl2xz.h1218
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/system_MK66F18.h173
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/LPC/LPC11Uxx.h824
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/Nuvoton/NUMICRO/NUC123.h8764
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/Nuvoton/NUMICRO/system_NUC123.h66
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/WB32/WB32F3G71xx/wb32f3g71xx.h4446
19 files changed, 54301 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F165x/ht32f165x.h b/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F165x/ht32f165x.h
new file mode 100644
index 000000000..e16d32412
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F165x/ht32f165x.h
@@ -0,0 +1,254 @@
1/*
2 * Copyright (C) 2014-2016 Fabio Utzig, http://fabioutzig.com
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
22
23#ifndef _HT32F165x_H_
24#define _HT32F165x_H_
25
26#if defined(HT32F1653) || defined(HT32F1654)
27 #define HT32F1653_4
28#elif defined(HT32F1655) || defined(HT32F1656)
29 #define HT32F1655_6
30#else
31 #error "Unknown HT32 device"
32#endif
33
34#if defined(HT32F1653_4) || defined(HT32F1655_6)
35 #define HT32
36 #define HT32F165x
37#endif
38
39/*
40 * ==============================================================
41 * ---------- Interrupt Number Definition -----------------------
42 * ==============================================================
43 */
44typedef enum IRQn
45{
46/****** Cortex-M3 Processor Exceptions Numbers ****************/
47 InitialSP_IRQn = -16,
48 InitialPC_IRQn = -15,
49 NonMaskableInt_IRQn = -14,
50 HardFault_IRQn = -13,
51 MemoryManagement_IRQn = -12,
52 BusFault_IRQn = -11,
53 UsageFault_IRQn = -10,
54
55 SVCall_IRQn = -5,
56 DebugMonitor_IRQn = -4,
57
58 PendSV_IRQn = -2,
59 SysTick_IRQn = -1,
60
61/****** HT32F165x Specific Interrupt Numbers ***********************/
62 CKRDY_IRQn = 0,
63 LVD_IRQn = 1,
64 BOD_IRQn = 2,
65 WDT_IRQn = 3,
66 RTC_IRQn = 4,
67 FMC_IRQn = 5,
68 EVWUP_IRQn = 6,
69 LPWUP_IRQn = 7,
70 EXTI0_IRQn = 8,
71 EXTI1_IRQn = 9,
72 EXTI2_IRQn = 10,
73 EXTI3_IRQn = 11,
74 EXTI4_IRQn = 12,
75 EXTI5_IRQn = 13,
76 EXTI6_IRQn = 14,
77 EXTI7_IRQn = 15,
78 EXTI8_IRQn = 16,
79 EXTI9_IRQn = 17,
80 EXTI10_IRQn = 18,
81 EXTI11_IRQn = 19,
82 EXTI12_IRQn = 20,
83 EXTI13_IRQn = 21,
84 EXTI14_IRQn = 22,
85 EXTI15_IRQn = 23,
86 COMP_IRQn = 24,
87 ADC_IRQn = 25,
88
89 MCTM0_BRK_IRQn = 27,
90 MCTM0_UP_IRQn = 28,
91 MCTM0_TR_UP2_IRQn = 29,
92 MCTM0_CC_IRQn = 30,
93 MCTM1_BRK_IRQn = 31,
94 MCTM1_UP_IRQn = 32,
95 MCTM1_TR_UP2_IRQn = 33,
96 MCTM1_CC_IRQn = 34,
97 GPTM0_IRQn = 35,
98 GPTM1_IRQn = 36,
99
100 BFTM0_IRQn = 41,
101 BFTM1_IRQn = 42,
102 I2C0_IRQn = 43,
103 I2C1_IRQn = 44,
104 SPI0_IRQn = 45,
105 SPI1_IRQn = 46,
106 USART0_IRQn = 47,
107 USART1_IRQn = 48,
108 UART0_IRQn = 49,
109 UART1_IRQn = 50,
110 SCI_IRQn = 51,
111 I2C_IRQn = 52,
112 USB_IRQn = 53,
113
114 PDMA_CH0_IRQn = 55,
115 PDMA_CH1_IRQn = 56,
116 PDMA_CH2_IRQn = 57,
117 PDMA_CH3_IRQn = 58,
118 PDMA_CH4_IRQn = 59,
119 PDMA_CH5_IRQn = 60,
120 PDMA_CH6_IRQn = 61,
121 PDMA_CH7_IRQn = 62,
122
123 EBI_IRQn = 68,
124} IRQn_Type;
125
126/*
127 * ==========================================================================
128 * ----------- Processor and Core Peripheral Section ------------------------
129 * ==========================================================================
130 */
131
132/**
133 * @brief HT32F165x Interrupt Number Definition, according to the selected device
134 * in @ref Library_configuration_section
135 */
136#define __FPU_PRESENT 0
137#define __MPU_PRESENT 0
138#define __NVIC_PRIO_BITS 4
139#define __Vendor_SysTickConfig 0
140#define __CM3_REV 0x0201
141
142#include "core_cm3.h" /* Cortex-M3 processor and core peripherals */
143
144/****************************************************************/
145/* Peripheral memory map */
146/****************************************************************/
147#define USART0_BASE ((uint32_t)0x40000000)
148#define UART0_BASE ((uint32_t)0x40001000)
149#define SPI0_BASE ((uint32_t)0x40004000)
150#define ADC_BASE ((uint32_t)0x40010000)
151#if defined(HT32F1655_6)
152#define OPACMP0_BASE ((uint32_t)0x40018000)
153#define OPACMP1_BASE ((uint32_t)0x40018100)
154#endif
155#define AFIO_BASE ((uint32_t)0x40022000)
156#define EXTI_BASE ((uint32_t)0x40024000)
157#define I2S_BASE ((uint32_t)0x40026000)
158#define MCTM0_BASE ((uint32_t)0x4002C000)
159#define MCTM1_BASE ((uint32_t)0x4002D000)
160
161#define USART1_BASE ((uint32_t)0x40040000)
162#define UART1_BASE ((uint32_t)0x40041000)
163#define SCI_BASE ((uint32_t)0x40043000)
164#define SPI1_BASE ((uint32_t)0x40044000)
165#define I2C0_BASE ((uint32_t)0x40048000)
166#define I2C1_BASE ((uint32_t)0x40049000)
167#if defined(HT32F1653_4)
168#define CMP0_BASE ((uint32_t)0x40058000)
169#define CMP1_BASE ((uint32_t)0x40058100)
170#endif
171#define WDT_BASE ((uint32_t)0x40068000)
172#define RTC_BASE ((uint32_t)0x4006A000)
173#define PWRCU_BASE ((uint32_t)0x4006A000)
174#define GPTM0_BASE ((uint32_t)0x4006E000)
175#define GPTM1_BASE ((uint32_t)0x4006F000)
176#define BFTM0_BASE ((uint32_t)0x40076000)
177#define BFTM1_BASE ((uint32_t)0x40077000)
178
179#define FMC_BASE ((uint32_t)0x40080000)
180#define CKCU_BASE ((uint32_t)0x40088000)
181#define RSTCU_BASE ((uint32_t)0x40088000)
182#define CRC_BASE ((uint32_t)0x4008A000)
183#define PDMA_BASE ((uint32_t)0x40090000)
184#define EBI_BASE ((uint32_t)0x40098000)
185#define USB_BASE ((uint32_t)0x400A8000)
186#define USB_SRAM_BASE ((uint32_t)0x400AA000)
187#define GPIO_A_BASE ((uint32_t)0x400B0000)
188#define GPIO_B_BASE ((uint32_t)0x400B2000)
189#define GPIO_C_BASE ((uint32_t)0x400B4000)
190#define GPIO_D_BASE ((uint32_t)0x400B6000)
191#if defined(HT32F1655_6)
192#define GPIO_E_BASE ((uint32_t)0x400B8000)
193#endif
194
195// Registers Headers
196#include "ht32f165x_reg.h"
197
198/****************************************************************/
199/* Peripheral declaration */
200/****************************************************************/
201#define USART0 ((USART_TypeDef *) USART0_BASE)
202#define UART0 ((USART_TypeDef *) UART0_BASE)
203#define SPI0 ((SPI_TypeDef *) SPI0_BASE)
204#define ADC ((ADC_TypeDef *) ADC_BASE)
205#if defined(HT32F1655_6)
206#define OPACMP0 ((OPACMP_TypeDef *) OPACMP0_BASE)
207#define OPACMP1 ((OPACMP_TypeDef *) OPACMP1_BASE)
208#endif
209#define AFIO ((AFIO_TypeDef *) AFIO_BASE)
210#define EXTI ((EXTI_TypeDef *) EXTI_BASE)
211#define I2S ((I2S_TypeDef *) I2S_BASE)
212#define MCTM0 ((TM_TypeDef *) MCTM0_BASE)
213#define MCTM1 ((TM_TypeDef *) MCTM1_BASE)
214
215#define USART1 ((USART_TypeDef *) USART1_BASE)
216#define UART1 ((USART_TypeDef *) UART1_BASE)
217#define SCI ((SCI_TypeDef *) SCI_BASE)
218#define SPI1 ((SPI_TypeDef *) SPI1_BASE)
219#define I2C0 ((I2C_TypeDef *) I2C0_BASE)
220#define I2C1 ((I2C_TypeDef *) I2C1_BASE)
221#if defined(HT32F1653_4)
222#define CMP0 ((CMP_TypeDef *) CMP0_BASE)
223#define CMP1 ((CMP_TypeDef *) CMP1_BASE)
224#endif
225#define WDT ((WDT_TypeDef *) WDT_BASE)
226#define RTC ((RTC_TypeDef *) RTC_BASE)
227#define PWRCU ((PWRCU_TypeDef *) PWRCU_BASE)
228#define GPTM0 ((TM_TypeDef *) GPTM0_BASE)
229#define GPTM1 ((TM_TypeDef *) GPTM1_BASE)
230#define BFTM0 ((BFTM_TypeDef *) BFTM0_BASE)
231#define BFTM1 ((BFTM_TypeDef *) BFTM1_BASE)
232
233#define FMC ((FMC_TypeDef *) FMC_BASE)
234#define CKCU ((CKCU_TypeDef *) CKCU_BASE)
235#define RSTCU ((RSTCU_TypeDef *) RSTCU_BASE)
236#define CRC ((CRC_TypeDef *) CRC_BASE)
237#define PDMA ((PDMA_TypeDef *) PDMA_BASE)
238#define EBI ((EBI_TypeDef *) EBI_BASE)
239#define USB ((USB_TypeDef *) USB_BASE)
240
241#define GPIOA ((GPIO_TypeDef *) GPIO_A_BASE)
242#define GPIO_A GPIOA
243#define GPIOB ((GPIO_TypeDef *) GPIO_B_BASE)
244#define GPIO_B GPIOB
245#define GPIOC ((GPIO_TypeDef *) GPIO_C_BASE)
246#define GPIO_C GPIOC
247#define GPIOD ((GPIO_TypeDef *) GPIO_D_BASE)
248#define GPIO_D GPIOD
249#if defined(HT32F1655_6)
250#define GPIOE ((GPIO_TypeDef *) GPIO_E_BASE)
251#define GPIO_E GPIOE
252#endif
253
254#endif
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F165x/ht32f165x_reg.h b/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F165x/ht32f165x_reg.h
new file mode 100644
index 000000000..b47416b56
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F165x/ht32f165x_reg.h
@@ -0,0 +1,679 @@
1#ifndef HT32F165x_REG_H
2#define HT32F165x_REG_H
3
4#ifndef __IO
5 #define __IO volatile
6#endif
7
8// Constants
9// /////////////////////////////////////////////////////////////////////////////
10#define AFIO_DEFAULT 0
11#define AFIO_GPIO 1
12#define AFIO_ADC 2
13#define AFIO_CMP 3
14#define AFIO_TM 4
15#define AFIO_SPI 5
16#define AFIO_USART 6
17#define AFIO_I2C 7
18#define AFIO_SMC 8
19#define AFIO_EBI 9
20#define AFIO_I2S 10
21#define AFIO_OTHER 15
22
23// Flash Memory Controller
24// /////////////////////////////////////////////////////////////////////////////
25typedef struct {
26 __IO uint32_t TADR; //!< 0x000 Flash Target Address Register
27 __IO uint32_t WRDR; //!< 0x004 Flash Write Data Register
28 uint32_t RESERVED0[1]; //!< 0x008 Reserved
29 __IO uint32_t OCMR; //!< 0x00C Flash Operation Command Register
30 __IO uint32_t OPCR; //!< 0x010 Flash Operation Control Register
31 __IO uint32_t OIER; //!< 0x014 Flash Operation Interrupt Enable Register
32 __IO uint32_t OISR; //!< 0x018 Flash Operation Interrupt and Status Register
33 uint32_t RESERVED1[1]; //!< 0x01C Reserved
34 __IO uint32_t PPSR[4]; //!< 0x020 ~ 0x02C Flash Page Erase/Program Protection Status Register
35 __IO uint32_t CPSR; //!< 0x030 Flash Security Protection Status Register
36 uint32_t RESERVED2[51]; //!< 0x034 ~ 0x0FC Reserved
37 __IO uint32_t VMCR; //!< 0x100 Flash Vector Mapping Control Register
38 uint32_t RESERVED3[31]; //!< 0x104 ~ 0x17C Reserved
39 __IO uint32_t MDID; //!< 0x180 Manufacturer and Device ID Register
40 __IO uint32_t PNSR; //!< 0x184 Flash Page Number Status Register
41 __IO uint32_t PSSR; //!< 0x188 Flash Page Size Status Register
42#if defined(HT32F165x)
43 uint32_t RESERVED4[29]; //!< 0x18C ~ 0x1FC Reserved
44#else
45 __IO uint32_t DID; //!< 0x18C Device ID Register
46 uint32_t RESERVED4[28]; //!< 0x190 ~ 0x1FC Reserved
47#endif
48 __IO uint32_t CFCR; //!< 0x200 Flash Cache and Pre-fetch Control Register
49 uint32_t RESERVED5[63]; //!< 0x204 ~ 0x2FC Reserved
50 __IO uint32_t SBVT[4]; //!< 0x300 ~ 0x30C SRAM Booting Vector (4x32Bit)
51#if defined(HT32F165x)
52#else
53 __IO uint32_t CID[4]; //!< 0x310 ~ 0x31C Custom ID Register
54#endif
55} FMC_TypeDef;
56
57#define FMC_OCMR_CMD_MASK (0xF << 0)
58#define FMC_OCMR_CMD_IDLE (0x0 << 0)
59#define FMC_OCMR_CMD_WORD_PROGRAM (0x4 << 0)
60#define FMC_OCMR_CMD_PAGE_ERASE (0x8 << 0)
61#define FMC_OCMR_CMD_MASS_ERASE (0xA << 0)
62#define FMC_OPCR_OPM_MASK (0xF << 1)
63#define FMC_OPCR_OPM_IDLE (0x6 << 1)
64#define FMC_OPCR_OPM_COMMIT (0xA << 1)
65#define FMC_OPCR_OPM_FINISHED (0xE << 1)
66#define FMC_CFCR_CE (1U << 12)
67#define FMC_CFCR_WAIT_MASK (7U << 0)
68#define FMC_CFCR_WAIT_0 (1U)
69#define FMC_CFCR_WAIT_1 (2U)
70#define FMC_CFCR_WAIT_2 (3U)
71
72// Power Control Unit
73// /////////////////////////////////////////////////////////////////////////////
74typedef struct {
75 uint32_t RESERVE0[64];
76 __IO uint32_t BAKSR; //!< 0x000 Status Register
77 __IO uint32_t BAKCR; //!< 0x004 Control Register
78 __IO uint32_t BAKTEST; //!< 0x008 Test Register
79 __IO uint32_t HSIRCR; //!< 0x00C HSI Ready Counter Control Register
80 __IO uint32_t LVDCSR; //!< 0x010 Low Voltage/Brown Out Detect Control and Status Register
81 uint32_t RESERVE1[59]; //!< 0x014 ~ 0x0FC Reserved
82 __IO uint32_t BAKREG[10]; //!< 0x100 ~ 0x124 Backup Register 0 ~ 9
83} PWRCU_TypeDef;
84
85// Clock Control Unit
86// /////////////////////////////////////////////////////////////////////////////
87typedef struct {
88 __IO uint32_t GCFGR; //!< 0x000 Global Clock Configuration Register
89 __IO uint32_t GCCR; //!< 0x004 Global Clock Control Register
90 __IO uint32_t GCSR; //!< 0x008 Global Clock Status Register
91 __IO uint32_t GCIR; //!< 0x00C Global Clock Interrupt Register
92 uint32_t RESERVED0[2]; //!< 0x010 ~ 0x014 Reserved
93 __IO uint32_t PLLCFGR; //!< 0x018 PLL Configuration Register
94 __IO uint32_t PLLCR; //!< 0x01C PLL Control Register
95 __IO uint32_t AHBCFGR; //!< 0x020 AHB Configuration Register
96 __IO uint32_t AHBCCR; //!< 0x024 AHB Clock Control Register
97 __IO uint32_t APBCFGR; //!< 0x028 APB Configuration Register
98 __IO uint32_t APBCCR0; //!< 0x02C APB Clock Control Register 0
99 __IO uint32_t APBCCR1; //!< 0x030 APB Clock Control Register 1
100 __IO uint32_t CKST; //!< 0x034 Clock source status Register
101#if defined(HT32F1653_4)
102 __IO uint32_t APBPCSR0; //!< 0x038 APB Peripheral Clock Selection Register 0
103 __IO uint32_t APBPCSR1; //!< 0x03C APB Peripheral Clock Selection Register 1
104 __IO uint32_t HSICR; //!< 0x040 HSI Control Register
105 __IO uint32_t HSIATCR; //!< 0x044 HSI Auto Trimming Counter Register
106#else
107 uint32_t RESERVED1[4]; //!< 0x038 ~ 0x044 Reserved
108#endif
109 uint32_t RESERVED2[174]; //!< 0x048 ~ 0x2FC Reserved
110 __IO uint32_t LPCR; //!< 0x300 Low Power Control Register
111 __IO uint32_t MCUDBGCR; //!< 0x304 MCU Debug Control Register
112} CKCU_TypeDef;
113
114#define CKCU_GCFGR_LPMOD_MASK (7U << 29)
115#define CKCU_GCFGR_USBPRE_MASK (3U << 22)
116#define CKCU_GCFGR_URPRE_MASK (3U << 20)
117#define CKCU_GCFGR_PLLSRC (1U << 8)
118#define CKCU_GCFGR_CKOUTSRC_MASK (7U << 0)
119#define CKCU_GCFGR_CKOUTSRC_CK_REF (0U << 0)
120#define CKCU_GCFGR_CKOUTSRC_CK_AHB (1U << 0)
121#define CKCU_GCFGR_CKOUTSRC_CK_SYS (2U << 0)
122#define CKCU_GCFGR_CKOUTSRC_CK_HSE (3U << 0)
123#define CKCU_GCFGR_CKOUTSRC_CK_HSI (4U << 0)
124#define CKCU_GCFGR_CKOUTSRC_CK_LSE (5U << 0)
125#define CKCU_GCFGR_CKOUTSRC_CK_LSI (6U << 0)
126#define CKCU_GCCR_PSRCEN (1U << 17)
127#define CKCU_GCCR_CKMEN (1U << 16)
128#define CKCU_GCCR_HSIEN (1U << 11)
129#define CKCU_GCCR_HSEEN (1U << 10)
130#define CKCU_GCCR_PLLEN (1U << 9)
131#define CKCU_GCCR_SW_MASK (3U << 0)
132#define CKCU_GCCR_SW_PLL (1U << 0)
133#define CKCU_GCCR_SW_HSE (2U << 0)
134#define CKCU_GCCR_SW_HSI (3U << 0)
135#define CKCU_GCSR_LSIRDY (1U << 5)
136#define CKCU_GCSR_LSERDY (1U << 4)
137#define CKCU_GCSR_HSIRDY (1U << 3)
138#define CKCU_GCSR_HSERDY (1U << 2)
139#define CKCU_GCSR_PLLRDY (1U << 1)
140#define CKCU_PLLCFGR_PFBD_MASK (0x3fU << 23)
141#define CKCU_PLLCFGR_POTD_MASK (3U << 21)
142#define CKCU_PLLCR_PLLBPS (1U << 31)
143#define CKCU_AHBCFGR_AHBPRE_MASK (3U << 0)
144#define CKCU_AHBCCR_PAEN (1U << 16)
145#define CKCU_AHBCCR_CRCEN (1U << 13)
146#define CKCU_AHBCCR_EBIEN (1U << 12)
147#define CKCU_AHBCCR_CKREFEN (1U << 11)
148#define CKCU_AHBCCR_USBEN (1U << 10)
149#define CKCU_APBCFGR_ADCDIV_MASK (7U << 16)
150#define CKCU_APBCCR0_I2SEN (1U << 25)
151#define CKCU_APBCCR0_SCIEN (1U << 24)
152#define CKCU_APBCCR0_EXTIEN (1U << 15)
153#define CKCU_APBCCR0_AFIOEN (1U << 14)
154#define CKCU_APBCCR0_UR1EN (1U << 11)
155#define CKCU_APBCCR0_UR0EN (1U << 10)
156#define CKCU_APBCCR0_USR1EN (1U << 9)
157#define CKCU_APBCCR0_USR0EN (1U << 8)
158#define CKCU_APBCCR0_SPI1EN (1U << 5)
159#define CKCU_APBCCR0_SPI0EN (1U << 4)
160#define CKCU_APBCCR0_I2C1EN (1U << 1)
161#define CKCU_APBCCR0_I2C0EN (1U << 0)
162#define CKCU_APBCCR1_ADCEN (1U << 24)
163#define CKCU_APBCCR1_OPA1EN (1U << 23)
164#define CKCU_APBCCR1_OPA0EN (1U << 22)
165#define CKCU_APBCCR1_BFTM1EN (1U << 17)
166#define CKCU_APBCCR1_BFTM0EN (1U << 16)
167#define CKCU_APBCCR1_GPTM1EN (1U << 9)
168#define CKCU_APBCCR1_GPTM0EN (1U << 8)
169#define CKCU_APBCCR1_BKPREN (1U << 6)
170#define CKCU_APBCCR1_WDTREN (1U << 4)
171#define CKCU_APBCCR1_MCTM1EN (1U << 1)
172#define CKCU_APBCCR1_MCTM0EN (1U << 0)
173#define CKCU_CKST_CKSWST_MASK (3U << 30)
174#define CKCU_CKST_HSIST_MASK (7U << 24)
175#define CKCU_CKST_HSEST_MASK (3U << 16)
176#define CKCU_CKST_PLLST_MASK (0xfU << 8)
177#define CKCU_LPCR_USBSLEEP (1U << 8)
178#define CKCU_LPCR_BKISO (1U << 0)
179
180// Reset Control Unit
181// /////////////////////////////////////////////////////////////////////////////
182typedef struct {
183 __IO uint32_t GRSR; //!< 0x000 Global Reset Status Register
184 __IO uint32_t AHBPRSTR; //!< 0x004 AHB Peripheral Reset Register
185 __IO uint32_t APBPRSTR0; //!< 0x008 APB Peripheral Reset Register 0
186 __IO uint32_t APBPRSTR1; //!< 0x00C APB Peripheral Reset Register 1
187} RSTCU_TypeDef;
188
189#define RSTCU_GRSR_PORSTF (1U << 3)
190#define RSTCU_GRSR_WDTRSTF (1U << 2)
191#define RSTCU_GRSR_EXTRSTF (1U << 1)
192#define RSTCU_GRSR_SYSRSTF (1U << 0)
193#define RSTCU_AHBPRSTR_PxRST(n) ((1U << 8) << (n))
194#define RSTCU_AHBPRSTR_CRCRST (1U << 7)
195#define RSTCU_AHBPRSTR_EBIRST (1U << 6)
196#define RSTCU_AHBPRSTR_USBRST (1U << 5)
197#define RSTCU_AHBPRSTR_DMARST (1U << 0)
198#define RSTCU_APBPRSTR0_I2SRST (1U << 25)
199#define RSTCU_APBPRSTR0_SCIRST (1U << 24)
200#define RSTCU_APBPRSTR0_EXTIRST (1U << 15)
201#define RSTCU_APBPRSTR0_AFIORST (1U << 14)
202#define RSTCU_APBPRSTR0_UR1RST (1U << 11)
203#define RSTCU_APBPRSTR0_UR0RST (1U << 10)
204#define RSTCU_APBPRSTR0_USR1RST (1U << 9)
205#define RSTCU_APBPRSTR0_USR0RST (1U << 8)
206#define RSTCU_APBPRSTR0_SPI1RST (1U << 5)
207#define RSTCU_APBPRSTR0_SPI0RST (1U << 4)
208#define RSTCU_APBPRSTR0_I2C1RST (1U << 1)
209#define RSTCU_APBPRSTR0_I2C0RST (1U << 0)
210#define RSTCU_APBPRSTR1_ADCRST (1U << 24)
211#define RSTCU_APBPRSTR1_OPA1RST (1U << 23)
212#define RSTCU_APBPRSTR1_OPA0RST (1U << 22)
213#define RSTCU_APBPRSTR1_BFTM1RST (1U << 17)
214#define RSTCU_APBPRSTR1_BFTM0RST (1U << 16)
215#define RSTCU_APBPRSTR1_GPTM1RST (1U << 9)
216#define RSTCU_APBPRSTR1_GPTM0RST (1U << 8)
217#define RSTCU_APBPRSTR1_WDTRST (1U << 4)
218#define RSTCU_APBPRSTR1_MCTM1RST (1U << 1)
219#define RSTCU_APBPRSTR1_MCTM0RST (1U << 0)
220
221// General Purpose I/O
222// /////////////////////////////////////////////////////////////////////////////
223typedef struct {
224 __IO uint32_t DIRCR; //!< 0x000 Data Direction Control Register
225 __IO uint32_t INER; //!< 0x004 Input function enable register
226 __IO uint32_t PUR; //!< 0x008 Pull-Up Selection Register
227 __IO uint32_t PDR; //!< 0x00C Pull-Down Selection Register
228 __IO uint32_t ODR; //!< 0x010 Open Drain Selection Register
229 __IO uint32_t DRVR; //!< 0x014 Drive Current Selection Register
230 __IO uint32_t LOCKR; //!< 0x018 Lock Register
231 __IO uint32_t DINR; //!< 0x01c Data Input Register
232 __IO uint32_t DOUTR; //!< 0x020 Data Output Register
233 __IO uint32_t SRR; //!< 0x024 Output Set and Reset Control Register
234 __IO uint32_t RR; //!< 0x028 Output Reset Control Register
235} GPIO_TypeDef;
236
237// Alternate Function Input/Output
238// /////////////////////////////////////////////////////////////////////////////
239typedef struct {
240 __IO uint32_t ESSR[2]; //!< 0x000 ~ 0x004 EXTI Source Selection Register 0 ~ 1
241 uint32_t RESERVE0[6]; //!< 0x008 ~ 0x01C Reserved
242 union {
243 struct {
244 __IO uint32_t GPACFGR[2]; //!< 0x020 ~ 0x024 GPIO Port A Configuration Register 0 ~ 1
245 __IO uint32_t GPBCFGR[2]; //!< 0x028 ~ 0x02C GPIO Port B Configuration Register 0 ~ 1
246 __IO uint32_t GPCCFGR[2]; //!< 0x030 ~ 0x034 GPIO Port C Configuration Register 0 ~ 1
247 __IO uint32_t GPDCFGR[2]; //!< 0x038 ~ 0x03C GPIO Port D Configuration Register 0 ~ 1
248#if defined(HT32F1655_6)
249 __IO uint32_t GPECFGR[2]; //!< 0x040 ~ 0x044 GPIO Port E Configuration Register 0 ~ 1
250#endif
251 };
252 // alternate mapping
253 struct {
254 __IO uint32_t GPxCFGR[0][2]; //!< 0x020 ~ 0x044 GPIO Port x Configuration Register 0 ~ 1
255 };
256 };
257} AFIO_TypeDef;
258
259// Nested Vectored Interrupt Controller
260// /////////////////////////////////////////////////////////////////////////////
261// Implemented in Cortex-M3 Headers
262
263// External Interrupt/Event Controller
264// /////////////////////////////////////////////////////////////////////////////
265typedef struct {
266 __IO uint32_t CFGR0; //!< 0x000 EXTI Interrupt 0 Configuration Register
267 __IO uint32_t CFGR1; //!< 0x004 EXTI Interrupt 1 Configuration Register
268 __IO uint32_t CFGR2; //!< 0x008 EXTI Interrupt 2 Configuration Register
269 __IO uint32_t CFGR3; //!< 0x00C EXTI Interrupt 3 Configuration Register
270 __IO uint32_t CFGR4; //!< 0x010 EXTI Interrupt 4 Configuration Register
271 __IO uint32_t CFGR5; //!< 0x014 EXTI Interrupt 5 Configuration Register
272 __IO uint32_t CFGR6; //!< 0x018 EXTI Interrupt 6 Configuration Register
273 __IO uint32_t CFGR7; //!< 0x01C EXTI Interrupt 7 Configuration Register
274 __IO uint32_t CFGR8; //!< 0x020 EXTI Interrupt 8 Configuration Register
275 __IO uint32_t CFGR9; //!< 0x024 EXTI Interrupt 9 Configuration Register
276 __IO uint32_t CFGR10; //!< 0x028 EXTI Interrupt 10 Configuration Register
277 __IO uint32_t CFGR11; //!< 0x02C EXTI Interrupt 11 Configuration Register
278 __IO uint32_t CFGR12; //!< 0x030 EXTI Interrupt 12 Configuration Register
279 __IO uint32_t CFGR13; //!< 0x034 EXTI Interrupt 13 Configuration Register
280 __IO uint32_t CFGR14; //!< 0x038 EXTI Interrupt 14 Configuration Register
281 __IO uint32_t CFGR15; //!< 0x03C EXTI Interrupt 15 Configuration Register
282 __IO uint32_t CR; //!< 0x040 EXTI Interrupt Control Register
283 __IO uint32_t EDGEFLGR; //!< 0x044 EXTI Interrupt Edge Flag Register
284 __IO uint32_t EDGESR; //!< 0x048 EXTI Interrupt Edge Status Register
285 __IO uint32_t SSCR; //!< 0x04C EXTI Interrupt Software Set Command Register
286 __IO uint32_t WAKUPCR; //!< 0x050 EXTI Interrupt Wakeup Control Register
287 __IO uint32_t WAKUPPOLR; //!< 0x054 EXTI Interrupt Wakeup Polarity Register
288 __IO uint32_t WAKUPFLG; //!< 0x058 EXTI Interrupt Wakeup Flag Register
289} EXTI_TypeDef;
290
291// Analog To Digital Converter
292// /////////////////////////////////////////////////////////////////////////////
293
294// Operational Amplifier / Comparator
295// /////////////////////////////////////////////////////////////////////////////
296#if defined(HT32F1653_4)
297typedef struct {
298 __IO uint32_t CR; //!< 0x000 Comparator Control Register
299 __IO uint32_t VALR; //!< 0x004 Comparator Voltage Reference Register
300 __IO uint32_t IER; //!< 0x008 Comparator Interrupt Enable Register
301 __IO uint32_t TFR; //!< 0x00C Comparator Transition Flag Register
302} CMP_TypeDef;
303#else
304typedef struct {
305 __IO uint32_t OPACR; //!< 0x000 Operational Amplifier Control Register
306 __IO uint32_t OFVCR; //!< 0x004 Comparator Input Offset Voltage Cancellation Register
307 __IO uint32_t CMPIER; //!< 0x008 Comparator Interrupt Enable Register
308 __IO uint32_t CMPRSR; //!< 0x00C Comparator Raw Status Register
309 __IO uint32_t CMPISR; //!< 0x010 Comparator Masked Interrupt Status Register
310 __IO uint32_t CMPICLR; //!< 0x014 Comparator Interrupt Clear Register
311} OPACMP_TypeDef;
312#endif
313
314// Basic Function Timers
315// /////////////////////////////////////////////////////////////////////////////
316typedef struct {
317 __IO uint32_t CR; //!< 0x000 Control Register
318 __IO uint32_t SR; //!< 0x004 Status Register
319 __IO uint32_t CNTR; //!< 0x008 Counter Value Register
320 __IO uint32_t CMP; //!< 0x00C Compare Value Register
321} BFTM_TypeDef;
322
323#define BFTM_CR_CEN (1U << 2)
324#define BFTM_CR_OSM (1U << 1)
325#define BFTM_CR_MIEN (1U << 0)
326#define BFTM_SR_MIF (1U << 0)
327
328// General Purpose Timers
329// Motor Control Timers
330// /////////////////////////////////////////////////////////////////////////////
331typedef struct {
332 __IO uint32_t CNTCFR; //!< 0x000 Timer Counter Configuaration Register
333 __IO uint32_t MDCFR; //!< 0x004 Timer Mode Configuration Register
334 __IO uint32_t TRCFR; //!< 0x008 Timer Trigger Configuration Register
335 uint32_t RESERVED0[1]; //!< 0x00C Reserved
336 __IO uint32_t CTR; //!< 0x010 Timer Counter Register
337 uint32_t RESERVED1[3]; //!< 0x014 ~ 0x01C Reserved
338 __IO uint32_t CHnICFR[4]; //!< 0x020 ~ 0x02C Channel n Input Configuration Register
339 uint32_t RESERVED2[4]; //!< 0x030 ~ 0x03C Reserved
340 __IO uint32_t CHnOCFR[4]; //!< 0x040 ~ 0x04C Channel n Output Configuration Register
341 __IO uint32_t CHCTR; //!< 0x050 Channel Control Register
342 __IO uint32_t CHPOLR; //!< 0x054 Channel Polarity Control Register
343 uint32_t RESERVED3[5]; //!< 0x058 ~ 0x068 Reserved
344 // note: only available as MCTM
345 __IO uint32_t CHBRKCFR; //!< 0x06C Channel Break Configuration Register
346 __IO uint32_t CHBRKCTR; //!< 0x070 Channel Break Control Register
347 // end note
348 __IO uint32_t DICTR; //!< 0x074 Timer PDMA/Interrupt Control Register
349 __IO uint32_t EVGR; //!< 0x078 Timer Event Generator Register
350 __IO uint32_t INTSR; //!< 0x07C Timer Interrupt Status Register
351 __IO uint32_t CNTR; //!< 0x080 Timer Counter Register
352 __IO uint32_t PSCR; //!< 0x084 Timer Prescaler Register
353 __IO uint32_t CRR; //!< 0x088 Timer Counter Reload Register
354 // note: only available as MCTM
355 __IO uint32_t REPR; //!< 0x08C Timer Repetition Register
356 // end note
357 __IO uint32_t CHnCCR[4]; //!< 0x090 ~ 0x09C Channel n Capture/Compare Register
358 __IO uint32_t CHnACR[4]; //!< 0x0A0 ~ 0x0AC Channel n Asymmentric Compare Register
359} TM_TypeDef;
360
361#define TM_CNTCFR_CMSEL_MASK (3U << 16)
362#define TM_CNTCFR_CMSEL_MODE_3 (3U << 16)
363#define TM_CNTCFR_CMSEL_MODE_2 (2U << 16)
364#define TM_CNTCFR_CMSEL_MODE_1 (1U << 16)
365#define TM_CNTCFR_CMSEL_MODE_0 (0U << 16)
366#define TM_CTR_CHCCDS (1U << 16)
367#define TM_CTR_COMUS (1U << 9)
368#define TM_CTR_COMPRE (1U << 8)
369#define TM_CTR_CRBE (1U << 1)
370#define TM_CTR_TME (1U << 0)
371#define TM_CHnOCFR_CHnPRE (1U << 4)
372#define TM_CHnOCFR_REFnCE (1U << 3)
373#define TM_CHnOCFR_CHnOM(n) ((((n)>>0)&7)|((((n)>>3)&1)<<8))
374#define TM_CHBRKCTR_CHMOE (1U << 4)
375
376// Real Time Clock
377// /////////////////////////////////////////////////////////////////////////////
378
379// Watchdog Timer
380// /////////////////////////////////////////////////////////////////////////////
381
382// I2C
383// /////////////////////////////////////////////////////////////////////////////
384typedef struct {
385 __IO uint32_t CR; //!< 0x000 Control Register
386 __IO uint32_t IER; //!< 0x004 Interrupt Enable Register
387 __IO uint32_t ADDR; //!< 0x008 Address Register
388 __IO uint32_t SR; //!< 0x00C Status Register
389 __IO uint32_t SHPGR; //!< 0x010 SCL High Period Generation Register
390 __IO uint32_t SLPGR; //!< 0x014 SCL Low Period Generation Register
391 __IO uint32_t DR; //!< 0x018 Data Register
392 __IO uint32_t TAR; //!< 0x01C Target Register
393 __IO uint32_t ADDMR; //!< 0x020 Address Mask Register
394 __IO uint32_t ADDSR; //!< 0x024 Address Snoop Register
395 __IO uint32_t TOUT; //!< 0x028 Timeout Register
396} I2C_TypeDef;
397
398#define I2C_CR_SEQ_FILTER_MASK (3U << 14)
399#define I2C_CR_SEQ_FILTER_2_PCLK (2U << 14)
400#define I2C_CR_SEQ_FILTER_1_PCLK (1U << 14)
401#define I2C_CR_SEQ_FILTER_DISABLE (0U << 14)
402#define I2C_CR_COMB_FILTER_En (1U << 13)
403#define I2C_CR_ENTOUT (1U << 12)
404#define I2C_CR_DMANACK (1U << 10)
405#define I2C_CR_RXDMAE (1U << 9)
406#define I2C_CR_TXDMAE (1U << 8)
407#define I2C_CR_ADRM (1U << 7)
408#define I2C_CR_I2CEN (1U << 3)
409#define I2C_CR_GCEN (1U << 2)
410#define I2C_CR_STOP (1U << 1)
411#define I2C_CR_AA (1U << 0)
412#define I2C_IER_RXBFIE (1U << 18)
413#define I2C_IER_TXDEIE (1U << 17)
414#define I2C_IER_RXDNEIE (1U << 16)
415#define I2C_IER_TOUTIE (1U << 11)
416#define I2C_IER_BUSERRIE (1U << 10)
417#define I2C_IER_RXNACKIE (1U << 9)
418#define I2C_IER_ARBLOSIE (1U << 8)
419#define I2C_IER_GCSIE (1U << 3)
420#define I2C_IER_ADRSIE (1U << 2)
421#define I2C_IER_STOIE (1U << 1)
422#define I2C_IER_STAIE (1U << 0)
423#define I2C_SR_TXNRX (1U << 21)
424#define I2C_SR_MASTER (1U << 20)
425#define I2C_SR_BUSBUSY (1U << 19)
426#define I2C_SR_RXBF (1U << 18)
427#define I2C_SR_TXDE (1U << 17)
428#define I2C_SR_RXDNE (1U << 16)
429#define I2C_SR_TOUTF (1U << 11)
430#define I2C_SR_BUSERR (1U << 10)
431#define I2C_SR_RXNACK (1U << 9)
432#define I2C_SR_ARBLOS (1U << 8)
433#define I2C_SR_GCS (1U << 3)
434#define I2C_SR_ADRS (1U << 2)
435#define I2C_SR_STO (1U << 1)
436#define I2C_SR_STA (1U << 0)
437#define I2C_TAR_RWD (1U << 10)
438
439// SPI
440// /////////////////////////////////////////////////////////////////////////////
441typedef struct {
442 __IO uint32_t CR0; //!< 0x000 Control Register 0
443 __IO uint32_t CR1; //!< 0x004 Control Register 1
444 __IO uint32_t IER; //!< 0x008 Interrupt Enable Register
445 __IO uint32_t CPR; //!< 0x00C Clock Prescaler Register
446 __IO uint32_t DR; //!< 0x010 Data Register
447 __IO uint32_t SR; //!< 0x014 Status Register
448 __IO uint32_t FCR; //!< 0x018 FIFO Control Register
449 __IO uint32_t FSR; //!< 0x01C FIFO Status Register
450 __IO uint32_t FTOCR; //!< 0x020 FIFO Time Out Counter Register
451} SPI_TypeDef;
452
453#define SPI_CR0_GUADTEN (1U << 7)
454#define SPI_CR0_DUALEN (1U << 6)
455#define SPI_CR0_SSELC (1U << 4)
456#define SPI_CR0_SELOEN (1U << 3)
457#define SPI_CR0_SPIEN (1U << 0)
458#define SPI_CR1_MODE (1U << 14)
459#define SPI_CR1_SELM (1U << 13)
460#define SPI_CR1_FIRSTBIT (1U << 12)
461#define SPI_CR1_SELAP (1U << 11)
462#define SPI_CR1_FORMAT_MASK (7U << 8)
463#define SPI_CR1_FORMAT_MODE0 (0x1U << 8)
464#define SPI_CR1_FORMAT_MODE1 (0x2U << 8)
465#define SPI_CR1_FORMAT_MODE2 (0x6U << 8)
466#define SPI_CR1_FORMAT_MODE3 (0x5U << 8)
467#define SPI_IER_RXBNEIEN (1U << 2)
468#define SPI_IER_TXBEIEN (1U << 0)
469#define SPI_SR_RXBNE (1U << 2)
470#define SPI_SR_TXE (1U << 1)
471#define SPI_SR_TXBE (1U << 0)
472#define SPI_FCR_FIFOEN (1U << 10)
473#define SPI_FSR_TXFS_MASK (0xfU << 0)
474#define SPI_FSR_RXFS_MASK (0xfU << 4)
475
476// USART
477// UART
478// /////////////////////////////////////////////////////////////////////////////
479typedef struct {
480 union {
481 __IO uint32_t RBR; //!< 0x000 Receive Buffer Register
482 __IO uint32_t TBR; //!< 0x000 Transmit Holding Register
483 __IO uint32_t DR; //!< 0x000 Data Register
484 };
485 __IO uint32_t IER; //!< 0x004 Interrupt Enable Register
486 __IO uint32_t IIR; //!< 0x008 Interrupt Identification Register/FIFO Control Register
487 __IO uint32_t FCR; //!< 0x00C FIFO Control Register
488 __IO uint32_t LCR; //!< 0x010 Line Control Register
489 // note: only available as USART
490 __IO uint32_t MODCR; //!< 0x014 Modem Control Register
491 // end note
492 __IO uint32_t LSR; //!< 0x018 Line Status Register
493 // note: only available as USART
494 __IO uint32_t MODSR; //!< 0x01C Modem Status Register
495 // end note
496 __IO uint32_t TPR; //!< 0x020 Timing Parameter Register
497 __IO uint32_t MDR; //!< 0x024 Mode Register
498 // note: only available as USART
499 __IO uint32_t IrDACR; //!< 0x028 IrDA Control Register
500 __IO uint32_t RS485CR; //!< 0x02C RS485 Control Register
501 __IO uint32_t SYNCR; //!< 0x030 Synchronous Control Register
502 // end note
503 __IO uint32_t FSR; //!< 0x034 FIFO Status Register
504 __IO uint32_t DLR; //!< 0x038 Divisor Latch Register
505 uint32_t RESERVED0; //!< 0x03C Reserved
506 __IO uint32_t DEGTSTR; //!< 0x040 Debug/Test Register
507} USART_TypeDef;
508
509#define USART_FCR_FME (1 << 0)
510#define USART_FCR_RFR (1 << 1)
511#define USART_FCR_TFR (1 << 2)
512#define USART_FCR_TFTL_MASK (0x3 << 4)
513#define USART_FCR_TFTL_0BYTE (0x0 << 4)
514#define USART_FCR_TFTL_2BYTE (0x1 << 4)
515#define USART_FCR_TFTL_4BYTE (0x2 << 4)
516#define USART_FCR_TFTL_8BYTE (0x3 << 4)
517#define USART_FCR_RFTL_MASK (0x3 << 6)
518#define USART_FCR_RFTL_1BYTE (0x0 << 6)
519#define USART_FCR_RFTL_4BYTE (0x1 << 6)
520#define USART_FCR_RFTL_8BYTE (0x2 << 6)
521#define USART_FCR_RFTL_14BYTE (0x3 << 6)
522#define USART_FCR_URTXEN (1 << 8)
523#define USART_FCR_URRXEN (1 << 9)
524#define USART_LCR_WLS_MASK (0x3 << 0)
525#define USART_LCR_WLS_7BIT (0x0 << 0)
526#define USART_LCR_WLS_8BIT (0x1 << 0)
527#define USART_LCR_WLS_9BIT (0x2 << 0)
528#define USART_LCR_NSB (1 << 2)
529#define USART_LCR_PBE (1 << 3)
530#define USART_LCR_EPE (1 << 4)
531#define USART_LCR_SPE (1 << 5)
532#define USART_LCR_BCB (1 << 6)
533#define USART_LSR_RFDR (1 << 0)
534#define USART_LSR_OEI (1 << 1)
535#define USART_LSR_PEI (1 << 2)
536#define USART_LSR_FEI (1 << 3)
537#define USART_LSR_BII (1 << 4)
538#define USART_LSR_TXFEMPT (1 << 5)
539#define USART_LSR_TXEMPT (1 << 6)
540#define USART_LSR_ERRRX (1 << 7)
541#define USART_LSR_RSADDEF (1 << 8)
542#define USART_MDR_MODE_MASK (0x3 << 0)
543#define USART_MDR_MODE_NORMAL (0x0 << 0)
544#define USART_MDR_MODE_IRDA (0x1 << 0)
545#define USART_MDR_MODE_RS485 (0x2 << 0)
546#define USART_MDR_MODE_SYNCHRONOUS (0x3 << 0)
547#define USART_MDR_TRSM (1 << 2)
548#define USART_MDR_TXDMAEN (1 << 4)
549#define USART_MDR_RXDMAEN (1 << 5)
550
551// Smart Card Interface
552// /////////////////////////////////////////////////////////////////////////////
553
554// USB
555// /////////////////////////////////////////////////////////////////////////////
556typedef struct {
557 __IO uint32_t CSR; //!< 0x000 USB Control and Status Register
558 __IO uint32_t IER; //!< 0x004 USB Interrupt Enable Register
559 __IO uint32_t ISR; //!< 0x008 USB Interrupt Status Register
560 __IO uint32_t FCR; //!< 0x00C USB Frame Count Register
561 __IO uint32_t DEVAR; //!< 0x010 USB Device Address Register
562 struct {
563 __IO uint32_t CSR; //!< 0x014 USB Endpoint n Control and Status Register
564 __IO uint32_t IER; //!< 0x018 USB Endpoint n Interrupt Enable Register
565 __IO uint32_t ISR; //!< 0x01C USB Endpoint n Interrupt Status Register
566 __IO uint32_t TCR; //!< 0x020 USB Endpoint n Transfer Count Register
567 __IO uint32_t CFGR; //!< 0x024 USB Endpoint n Configuration Register
568 } EP[8];
569} USB_TypeDef;
570
571// USBCSR
572#define USBCSR_FRES (0x002) // Force USB Reset Control
573#define USBCSR_PDWN (0x004) // Power Down Mode Control
574#define USBCSR_LPMODE (0x008) // Low-Power Mode Control
575#define USBCSR_GENRSM (0x020) // Resume Request Generation Control
576#define USBCSR_RXDP (0x040) // Received DP Line Status
577#define USBCSR_RXDM (0x080) // Received DM Line Status
578#define USBCSR_ADRSET (0x100) // Device Address Setting Control
579#define USBCSR_SRAMRSTC (0x200) // USB SRAM Reset Condition
580#define USBCSR_DPPUEN (0x400) // DP Pull Up Enable
581#define USBCSR_DPWKEN (0x800) // DP Wake Up Enable
582
583// USBIER
584#define USBIER_UGIE (0x0001) // USB global Interrupt Enable
585#define USBIER_SOFIE (0x0002) // Start Of Frame Interrupt Enable
586#define USBIER_URSTIE (0x0004) // USB Reset Interrupt Enable
587#define USBIER_RSMIE (0x0008) // Resume Interrupt Enable
588#define USBIER_SUSPIE (0x0010) // Suspend Interrupt Enable
589#define USBIER_ESOFIE (0x0020) // Expected Start Of Frame Enable
590#define USBIER_EP0IE (0x0100) // Endpoint 0 Interrupt Enable
591#define USBIER_EP1IE (0x0200) // Endpoint 1 Interrupt Enable
592#define USBIER_EP2IE (0x0400) // Endpoint 2 Interrupt Enable
593#define USBIER_EP3IE (0x0800) // Endpoint 3 Interrupt Enable
594#define USBIER_EP4IE (0x1000) // Endpoint 4 Interrupt Enable
595#define USBIER_EP5IE (0x2000) // Endpoint 5 Interrupt Enable
596#define USBIER_EP6IE (0x4000) // Endpoint 6 Interrupt Enable
597#define USBIER_EP7IE (0x8000) // Endpoint 7 Interrupt Enable
598
599// USBISR
600#define USBISR_SOFIF (0x0002) // Start Of Frame Interrupt Flag
601#define USBISR_URSTIF (0x0004) // USB Reset Interrupt Flag
602#define USBISR_RSMIF (0x0008) // Resume Interrupt Flag
603#define USBISR_SUSPIF (0x0010) // Suspend Interrupt Flag
604#define USBISR_ESOFIF (0x0020) // Expected Start Of Frame Interrupt
605#define USBISR_EP0IF (1U << 8) // Endpoint 0 Interrupt Flag
606#define USBISR_EP1IF (1U << 9) // Endpoint 1 Interrupt Flag
607#define USBISR_EP2IF (1U << 10) // Endpoint 2 Interrupt Flag
608#define USBISR_EP3IF (1U << 11) // Endpoint 3 Interrupt Flag
609#define USBISR_EP4IF (1U << 12) // Endpoint 4 Interrupt Flag
610#define USBISR_EP5IF (1U << 13) // Endpoint 5 Interrupt Flag
611#define USBISR_EP6IF (1U << 14) // Endpoint 6 Interrupt Flag
612#define USBISR_EP7IF (1U << 15) // Endpoint 7 Interrupt Flag
613#define USBISR_EPnIF (0xFF00) // Endpoint Interrupt Mask
614
615// USBFCR
616#define USBFCR_FRNUM (0x7FF) // Frame Number
617#define USBFCR_SOFLCK (1U << 16) // Start-of-Frame Lock Flag
618#define USBFCR_LSOF (0x3U << 17) // Lost Start-of-Frame Number
619
620// USBEPnCSR
621#define USBEPnCSR_DTGTX (0x01) // Data Toggle Status, for IN transfer
622#define USBEPnCSR_NAKTX (0x02) // NAK Status, for IN transfer
623#define USBEPnCSR_STLTX (0x04) // STALL Status, for IN transfer
624#define USBEPnCSR_DTGRX (0x08) // Data Toggle Status, for OUT transfer
625#define USBEPnCSR_NAKRX (0x10) // NAK Status, for OUT transfer
626#define USBEPnCSR_STLRX (0x20) // STALL Status, for OUT transfer
627
628// USBEPnIER
629#define USBEPnIER_OTRXIE (0x001) // OUT Token Received Interrupt Enable
630#define USBEPnIER_ODRXIE (0x002) // OUT Data Received Interrupt Enable
631#define USBEPnIER_ODOVIE (0x004) // OUT Data Buffer Overrun Interrupt Enable
632#define USBEPnIER_ITRXIE (0x008) // IN Token Received Interrupt Enable
633#define USBEPnIER_IDTXIE (0x010) // IN Data Transmitted Interrupt Enable
634#define USBEPnIER_NAKIE (0x020) // NAK Transmitted Interrupt Enable
635#define USBEPnIER_STLIE (0x040) // STALL Transmitted Interrupt Enable
636#define USBEPnIER_UERIE (0x080) // USB Error Interrupt Enable
637#define USBEPnIER_STRXIE (0x100) // SETUP Token Received Interrupt Enable
638#define USBEPnIER_SDRXIE (0x200) // SETUP Data Received Interrupt Enable
639#define USBEPnIER_SDERIE (0x400) // SETUP Data Error Interrupt Enable
640#define USBEPnIER_ZLRXIE (0x800) // Zero Length Data Received Interrupt Enable
641
642// USBEPnISR
643#define USBEPnISR_OTRXIF (0x001) // OUT Token Received Interrupt Flag
644#define USBEPnISR_ODRXIF (0x002) // OUT Data Received Interrupt Flag
645#define USBEPnISR_ODOVIF (0x004) // OUT Data Buffer Overrun Interrupt Flag
646#define USBEPnISR_ITRXIF (0x008) // IN Token Received Interrupt Flag
647#define USBEPnISR_IDTXIF (0x010) // IN Data Transmitted Interrupt Flag
648#define USBEPnISR_NAKIF (0x020) // NAK Transmitted Interrupt Flag
649#define USBEPnISR_STLIF (0x040) // STALL Transmitted Interrupt Flag
650#define USBEPnISR_UERIF (0x080) // USB Error Interrupt Flag
651#define USBEPnISR_STRXIF (0x100) // SETUP Token Received Interrupt Flag
652#define USBEPnISR_SDRXIF (0x200) // SETUP Data Received Interrupt Flag
653#define USBEPnISR_SDERIF (0x400) // SETUP Data Error Interrupt Flag
654#define USBEPnISR_ZLRXIF (0x800) // Zero Length Data Received Interrupt Flag
655
656// USBEPnTCR
657#define USBEPnTCR_TCNT (0x1FF) // Transfer Byte Count
658
659// USBEPnCFGR
660#define USBEPnCFGR_EPEN (1U << 31) // Endpoint Enable
661#define USBEPnCFGR_EPTYPE (1U << 29) // Transfer Type
662#define USBEPnCFGR_EPDIR (1U << 28) // Transfer Direction
663#define USBEPnCFGR_EPADR (0xFU << 24) // Endpoint Address
664#define USBEPnCFGR_EPLEN (0x7FU << 10) // Buffer Length
665#define USBEPnCFGR_EPBUFA (0x3FF) // Endpoint Buffer Address
666
667// Peripheral Direct Memory Access
668// /////////////////////////////////////////////////////////////////////////////
669
670// Extend Bus Interface
671// /////////////////////////////////////////////////////////////////////////////
672
673// Inter-IC Sound
674// /////////////////////////////////////////////////////////////////////////////
675
676// CRC
677// /////////////////////////////////////////////////////////////////////////////
678
679#endif // HT32F165x_REG_H
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F523xx/ht32f523x2.h b/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F523xx/ht32f523x2.h
new file mode 100644
index 000000000..ba4871636
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F523xx/ht32f523x2.h
@@ -0,0 +1,199 @@
1/*
2 * Copyright (C) 2020 Codetector <[email protected]>
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
22
23#pragma once
24
25#if defined(HT32F52342) || defined(HT32F52352)
26 #define HT32F523x2
27#else
28 #error "Unknown HT32 device"
29#endif
30
31#if defined(HT32F523x2)
32 #define HT32
33#endif
34
35/*
36 * ==============================================================
37 * ---------- Interrupt Number Definition -----------------------
38 * ==============================================================
39 */
40typedef enum IRQn
41{
42/****** Cortex-M3 Processor Exceptions Numbers ****************/
43 InitialSP_IRQn = -16,
44 InitialPC_IRQn = -15,
45 NonMaskableInt_IRQn = -14,
46 HardFault_IRQn = -13,
47 SVCall_IRQn = -5,
48 PendSV_IRQn = -2,
49 SysTick_IRQn = -1,
50
51/****** HT32F165x Specific Interrupt Numbers ***********************/
52 LVD_IRQn = 0,
53 RTC_IRQn = 1,
54 FMC_IRQn = 2,
55 WKUP_IRQn = 3,
56 EXTI0_1_IRQn = 4,
57 EXTI2_3_IRQn = 5,
58 EXTI4_15_IRQn = 6,
59 CMP_IRQn = 7,
60 ADC_IRQn = 8,
61
62 MCTM_IRQn = 10,
63 GPTM1_IRQn = 11,
64 GPTM0_IRQn = 12,
65 SCTM0_IRQn = 13,
66 SCTM1_IRQn = 14,
67
68 BFTM0_IRQn = 17,
69 BFTM1_IRQn = 18,
70 I2C0_IRQn = 19,
71 I2C1_IRQn = 20,
72 SPI0_IRQn = 21,
73 SPI1_IRQn = 22,
74 USART0_IRQn = 23,
75 USART1_IRQn = 24,
76 UART0_IRQn = 25,
77 UART1_IRQn = 26,
78 SCI_IRQn = 27,
79 I2S_IRQn = 28,
80 USB_IRQn = 29,
81 PDMA_CH0_1_IRQn = 30,
82 PDMA_CH2_5_IRQn = 31
83} IRQn_Type;
84
85/*
86 * ==========================================================================
87 * ----------- Processor and Core Peripheral Section ------------------------
88 * ==========================================================================
89 */
90
91/**
92 * @brief HT32F165x Interrupt Number Definition, according to the selected device
93 * in @ref Library_configuration_section
94 */
95#define __FPU_PRESENT 0
96#define __MPU_PRESENT 0
97#define __NVIC_PRIO_BITS 8
98#define __Vendor_SysTickConfig 0
99
100#include "core_cm0plus.h" /* Cortex-M0+ processor and core peripherals */
101
102/****************************************************************/
103/* Peripheral memory map */
104/****************************************************************/
105#define USART0_BASE ((uint32_t)0x40000000)
106#define UART0_BASE ((uint32_t)0x40001000)
107#define SPI0_BASE ((uint32_t)0x40004000)
108#define ADC_BASE ((uint32_t)0x40010000)
109
110#define AFIO_BASE ((uint32_t)0x40022000)
111#define EXTI_BASE ((uint32_t)0x40024000)
112#define I2S_BASE ((uint32_t)0x40026000)
113#define MCTM0_BASE ((uint32_t)0x4002C000)
114#define MCTM1_BASE ((uint32_t)0x4002D000)
115
116#define USART1_BASE ((uint32_t)0x40040000)
117#define UART1_BASE ((uint32_t)0x40041000)
118#define SCI_BASE ((uint32_t)0x40043000)
119#define SPI1_BASE ((uint32_t)0x40044000)
120#define I2C0_BASE ((uint32_t)0x40048000)
121#define I2C1_BASE ((uint32_t)0x40049000)
122
123#define CMP0_BASE ((uint32_t)0x40058000)
124#define CMP1_BASE ((uint32_t)0x40058100)
125
126#define WDT_BASE ((uint32_t)0x40068000)
127#define RTC_BASE ((uint32_t)0x4006A000)
128#define PWRCU_BASE ((uint32_t)0x4006A000)
129#define GPTM0_BASE ((uint32_t)0x4006E000)
130#define GPTM1_BASE ((uint32_t)0x4006F000)
131#define BFTM0_BASE ((uint32_t)0x40076000)
132#define BFTM1_BASE ((uint32_t)0x40077000)
133
134#define FMC_BASE ((uint32_t)0x40080000)
135#define CKCU_BASE ((uint32_t)0x40088000)
136#define RSTCU_BASE ((uint32_t)0x40088000)
137#define CRC_BASE ((uint32_t)0x4008A000)
138#define PDMA_BASE ((uint32_t)0x40090000)
139#define EBI_BASE ((uint32_t)0x40098000)
140#define USB_BASE ((uint32_t)0x400A8000)
141#define USB_SRAM_BASE ((uint32_t)0x400AA000)
142#define GPIO_A_BASE ((uint32_t)0x400B0000)
143#define GPIO_B_BASE ((uint32_t)0x400B2000)
144#define GPIO_C_BASE ((uint32_t)0x400B4000)
145#define GPIO_D_BASE ((uint32_t)0x400B6000)
146
147
148// Registers Headers
149#include "ht32f523x2_reg.h"
150
151/****************************************************************/
152/* Peripheral declaration */
153/****************************************************************/
154#define USART0 ((USART_TypeDef *) USART0_BASE)
155#define UART0 ((USART_TypeDef *) UART0_BASE)
156#define SPI0 ((SPI_TypeDef *) SPI0_BASE)
157#define ADC ((ADC_TypeDef *) ADC_BASE)
158
159#define AFIO ((AFIO_TypeDef *) AFIO_BASE)
160#define EXTI ((EXTI_TypeDef *) EXTI_BASE)
161#define I2S ((I2S_TypeDef *) I2S_BASE)
162#define MCTM0 ((TM_TypeDef *) MCTM0_BASE)
163#define MCTM1 ((TM_TypeDef *) MCTM1_BASE)
164
165#define USART1 ((USART_TypeDef *) USART1_BASE)
166#define UART1 ((USART_TypeDef *) UART1_BASE)
167#define SCI ((SCI_TypeDef *) SCI_BASE)
168#define SPI1 ((SPI_TypeDef *) SPI1_BASE)
169#define I2C0 ((I2C_TypeDef *) I2C0_BASE)
170#define I2C1 ((I2C_TypeDef *) I2C1_BASE)
171
172#define CMP0 ((CMP_TypeDef *) CMP0_BASE)
173#define CMP1 ((CMP_TypeDef *) CMP1_BASE)
174
175#define WDT ((WDT_TypeDef *) WDT_BASE)
176#define RTC ((RTC_TypeDef *) RTC_BASE)
177#define PWRCU ((PWRCU_TypeDef *) PWRCU_BASE)
178#define GPTM0 ((TM_TypeDef *) GPTM0_BASE)
179#define GPTM1 ((TM_TypeDef *) GPTM1_BASE)
180#define BFTM0 ((BFTM_TypeDef *) BFTM0_BASE)
181#define BFTM1 ((BFTM_TypeDef *) BFTM1_BASE)
182
183#define FMC ((FMC_TypeDef *) FMC_BASE)
184#define CKCU ((CKCU_TypeDef *) CKCU_BASE)
185#define RSTCU ((RSTCU_TypeDef *) RSTCU_BASE)
186#define CRC ((CRC_TypeDef *) CRC_BASE)
187#define PDMA ((PDMA_TypeDef *) PDMA_BASE)
188#define EBI ((EBI_TypeDef *) EBI_BASE)
189#define USB ((USB_TypeDef *) USB_BASE)
190
191#define GPIOA ((GPIO_TypeDef *) GPIO_A_BASE)
192#define GPIO_A GPIOA
193#define GPIOB ((GPIO_TypeDef *) GPIO_B_BASE)
194#define GPIO_B GPIOB
195#define GPIOC ((GPIO_TypeDef *) GPIO_C_BASE)
196#define GPIO_C GPIOC
197#define GPIOD ((GPIO_TypeDef *) GPIO_D_BASE)
198#define GPIO_D GPIOD
199
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F523xx/ht32f523x2_reg.h b/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F523xx/ht32f523x2_reg.h
new file mode 100644
index 000000000..d8aad785d
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/HT32/HT32F523xx/ht32f523x2_reg.h
@@ -0,0 +1,657 @@
1#pragma once
2
3#ifndef __IO
4 #define __IO volatile
5#endif
6
7// Constants
8// /////////////////////////////////////////////////////////////////////////////
9#define AFIO_DEFAULT 0
10#define AFIO_GPIO 1
11#define AFIO_ADC 2
12#define AFIO_CMP 3
13#define AFIO_TM 4
14#define AFIO_SPI 5
15#define AFIO_USART 6
16#define AFIO_I2C 7
17#define AFIO_SMC 8
18#define AFIO_EBI 9
19#define AFIO_I2S 10
20#define AFIO_OTHER 15
21
22// Flash Memory Controller
23// /////////////////////////////////////////////////////////////////////////////
24typedef struct {
25 __IO uint32_t TADR; //!< 0x000 Flash Target Address Register
26 __IO uint32_t WRDR; //!< 0x004 Flash Write Data Register
27 uint32_t RESERVED0[1]; //!< 0x008 Reserved
28 __IO uint32_t OCMR; //!< 0x00C Flash Operation Command Register
29 __IO uint32_t OPCR; //!< 0x010 Flash Operation Control Register
30 __IO uint32_t OIER; //!< 0x014 Flash Operation Interrupt Enable Register
31 __IO uint32_t OISR; //!< 0x018 Flash Operation Interrupt and Status Register
32 uint32_t RESERVED1[1]; //!< 0x01C Reserved
33 __IO uint32_t PPSR[4]; //!< 0x020 ~ 0x02C Flash Page Erase/Program Protection Status Register
34 __IO uint32_t CPSR; //!< 0x030 Flash Security Protection Status Register
35 uint32_t RESERVED2[51]; //!< 0x034 ~ 0x0FC Reserved
36 __IO uint32_t VMCR; //!< 0x100 Flash Vector Mapping Control Register
37 uint32_t RESERVED3[31]; //!< 0x104 ~ 0x17C Reserved
38 __IO uint32_t MDID; //!< 0x180 Manufacturer and Device ID Register
39 __IO uint32_t PNSR; //!< 0x184 Flash Page Number Status Register
40 __IO uint32_t PSSR; //!< 0x188 Flash Page Size Status Register
41#if defined(HT32F165x)
42 uint32_t RESERVED4[29]; //!< 0x18C ~ 0x1FC Reserved
43#else
44 __IO uint32_t DID; //!< 0x18C Device ID Register
45 uint32_t RESERVED4[28]; //!< 0x190 ~ 0x1FC Reserved
46#endif
47 __IO uint32_t CFCR; //!< 0x200 Flash Cache and Pre-fetch Control Register
48 uint32_t RESERVED5[63]; //!< 0x204 ~ 0x2FC Reserved
49 __IO uint32_t SBVT[4]; //!< 0x300 ~ 0x30C SRAM Booting Vector (4x32Bit)
50#if defined(HT32F165x)
51#else
52 __IO uint32_t CID[4]; //!< 0x310 ~ 0x31C Custom ID Register
53#endif
54} FMC_TypeDef;
55
56#define FMC_OCMR_CMD_MASK (0xF << 0)
57#define FMC_OCMR_CMD_IDLE (0x0 << 0)
58#define FMC_OCMR_CMD_WORD_PROGRAM (0x4 << 0)
59#define FMC_OCMR_CMD_PAGE_ERASE (0x8 << 0)
60#define FMC_OCMR_CMD_MASS_ERASE (0xA << 0)
61#define FMC_OPCR_OPM_MASK (0xF << 1)
62#define FMC_OPCR_OPM_IDLE (0x6 << 1)
63#define FMC_OPCR_OPM_COMMIT (0xA << 1)
64#define FMC_OPCR_OPM_FINISHED (0xE << 1)
65#define FMC_CFCR_CE (1U << 12)
66#define FMC_CFCR_WAIT_MASK (7U << 0)
67#define FMC_CFCR_WAIT_0 (1U)
68#define FMC_CFCR_WAIT_1 (2U)
69
70// Power Control Unit
71// /////////////////////////////////////////////////////////////////////////////
72typedef struct {
73 uint32_t RESERVE0[64];
74 __IO uint32_t BAKSR; //!< 0x000 Status Register
75 __IO uint32_t BAKCR; //!< 0x004 Control Register
76 __IO uint32_t BAKTEST; //!< 0x008 Test Register
77 __IO uint32_t HSIRCR; //!< 0x00C HSI Ready Counter Control Register
78 __IO uint32_t LVDCSR; //!< 0x010 Low Voltage/Brown Out Detect Control and Status Register
79 uint32_t RESERVE1[59]; //!< 0x014 ~ 0x0FC Reserved
80 __IO uint32_t BAKREG[10]; //!< 0x100 ~ 0x124 Backup Register 0 ~ 9
81} PWRCU_TypeDef;
82
83// Clock Control Unit
84// /////////////////////////////////////////////////////////////////////////////
85typedef struct {
86 __IO uint32_t GCFGR; //!< 0x000 Global Clock Configuration Register
87 __IO uint32_t GCCR; //!< 0x004 Global Clock Control Register
88 __IO uint32_t GCSR; //!< 0x008 Global Clock Status Register
89 __IO uint32_t GCIR; //!< 0x00C Global Clock Interrupt Register
90 uint32_t RESERVED0[2]; //!< 0x010 ~ 0x014 Reserved
91 __IO uint32_t PLLCFGR; //!< 0x018 PLL Configuration Register
92 __IO uint32_t PLLCR; //!< 0x01C PLL Control Register
93 __IO uint32_t AHBCFGR; //!< 0x020 AHB Configuration Register
94 __IO uint32_t AHBCCR; //!< 0x024 AHB Clock Control Register
95 __IO uint32_t APBCFGR; //!< 0x028 APB Configuration Register
96 __IO uint32_t APBCCR0; //!< 0x02C APB Clock Control Register 0
97 __IO uint32_t APBCCR1; //!< 0x030 APB Clock Control Register 1
98 __IO uint32_t CKST; //!< 0x034 Clock source status Register
99
100 __IO uint32_t APBPCSR0; //!< 0x038 APB Peripheral Clock Selection Register 0
101 __IO uint32_t APBPCSR1; //!< 0x03C APB Peripheral Clock Selection Register 1
102 __IO uint32_t HSICR; //!< 0x040 HSI Control Register
103 __IO uint32_t HSIATCR; //!< 0x044 HSI Auto Trimming Counter Register
104
105 uint32_t RESERVED2[174]; //!< 0x048 ~ 0x2FC Reserved
106 __IO uint32_t LPCR; //!< 0x300 Low Power Control Register
107 __IO uint32_t MCUDBGCR; //!< 0x304 MCU Debug Control Register
108} CKCU_TypeDef;
109
110#define CKCU_GCFGR_LPMOD_MASK (7U << 29)
111#define CKCU_GCFGR_USBPRE_MASK (3U << 22)
112#define CKCU_GCFGR_PLLSRC (1U << 8)
113#define CKCU_GCFGR_CKOUTSRC_MASK (7U << 0)
114#define CKCU_GCFGR_CKOUTSRC_CK_REF (0U << 0)
115#define CKCU_GCFGR_CKOUTSRC_CK_AHB (1U << 0)
116#define CKCU_GCFGR_CKOUTSRC_CK_SYS (2U << 0)
117#define CKCU_GCFGR_CKOUTSRC_CK_HSE (3U << 0)
118#define CKCU_GCFGR_CKOUTSRC_CK_HSI (4U << 0)
119#define CKCU_GCFGR_CKOUTSRC_CK_LSE (5U << 0)
120#define CKCU_GCFGR_CKOUTSRC_CK_LSI (6U << 0)
121#define CKCU_GCCR_PSRCEN (1U << 17)
122#define CKCU_GCCR_CKMEN (1U << 16)
123#define CKCU_GCCR_HSIEN (1U << 11)
124#define CKCU_GCCR_HSEEN (1U << 10)
125#define CKCU_GCCR_PLLEN (1U << 9)
126#define CKCU_GCCR_SW_MASK (3U << 0)
127#define CKCU_GCCR_SW_PLL (1U << 0)
128#define CKCU_GCCR_SW_HSE (2U << 0)
129#define CKCU_GCCR_SW_HSI (3U << 0)
130#define CKCU_GCSR_LSIRDY (1U << 5)
131#define CKCU_GCSR_LSERDY (1U << 4)
132#define CKCU_GCSR_HSIRDY (1U << 3)
133#define CKCU_GCSR_HSERDY (1U << 2)
134#define CKCU_GCSR_PLLRDY (1U << 1)
135#define CKCU_PLLCFGR_PFBD_MASK (0x3fU << 23)
136#define CKCU_PLLCFGR_POTD_MASK (3U << 21)
137#define CKCU_PLLCR_PLLBPS (1U << 31)
138#define CKCU_AHBCFGR_AHBPRE_MASK (3U << 0)
139#define CKCU_AHBCCR_PAEN (1U << 16)
140#define CKCU_AHBCCR_CRCEN (1U << 13)
141#define CKCU_AHBCCR_EBIEN (1U << 12)
142#define CKCU_AHBCCR_CKREFEN (1U << 11)
143#define CKCU_AHBCCR_USBEN (1U << 10)
144#define CKCU_APBCFGR_ADCDIV_MASK (7U << 16)
145#define CKCU_APBCCR0_I2SEN (1U << 25)
146#define CKCU_APBCCR0_SCIEN (1U << 24)
147#define CKCU_APBCCR0_EXTIEN (1U << 15)
148#define CKCU_APBCCR0_AFIOEN (1U << 14)
149#define CKCU_APBCCR0_UR1EN (1U << 11)
150#define CKCU_APBCCR0_UR0EN (1U << 10)
151#define CKCU_APBCCR0_USR1EN (1U << 9)
152#define CKCU_APBCCR0_USR0EN (1U << 8)
153#define CKCU_APBCCR0_SPI1EN (1U << 5)
154#define CKCU_APBCCR0_SPI0EN (1U << 4)
155#define CKCU_APBCCR0_I2C1EN (1U << 1)
156#define CKCU_APBCCR0_I2C0EN (1U << 0)
157#define CKCU_APBCCR1_ADCEN (1U << 24)
158#define CKCU_APBCCR1_OPA1EN (1U << 23)
159#define CKCU_APBCCR1_OPA0EN (1U << 22)
160#define CKCU_APBCCR1_BFTM1EN (1U << 17)
161#define CKCU_APBCCR1_BFTM0EN (1U << 16)
162#define CKCU_APBCCR1_GPTM1EN (1U << 9)
163#define CKCU_APBCCR1_GPTM0EN (1U << 8)
164#define CKCU_APBCCR1_BKPREN (1U << 6)
165#define CKCU_APBCCR1_WDTREN (1U << 4)
166#define CKCU_APBCCR1_MCTM1EN (1U << 1)
167#define CKCU_APBCCR1_MCTM0EN (1U << 0)
168#define CKCU_CKST_CKSWST_MASK (3U << 30)
169#define CKCU_CKST_HSIST_MASK (7U << 24)
170#define CKCU_CKST_HSEST_MASK (3U << 16)
171#define CKCU_CKST_PLLST_MASK (0xfU << 8)
172#define CKCU_LPCR_USBSLEEP (1U << 8)
173#define CKCU_LPCR_BKISO (1U << 0)
174
175// Reset Control Unit
176// /////////////////////////////////////////////////////////////////////////////
177typedef struct {
178 __IO uint32_t GRSR; //!< 0x000 Global Reset Status Register
179 __IO uint32_t AHBPRSTR; //!< 0x004 AHB Peripheral Reset Register
180 __IO uint32_t APBPRSTR0; //!< 0x008 APB Peripheral Reset Register 0
181 __IO uint32_t APBPRSTR1; //!< 0x00C APB Peripheral Reset Register 1
182} RSTCU_TypeDef;
183
184#define RSTCU_GRSR_PORSTF (1U << 3)
185#define RSTCU_GRSR_WDTRSTF (1U << 2)
186#define RSTCU_GRSR_EXTRSTF (1U << 1)
187#define RSTCU_GRSR_SYSRSTF (1U << 0)
188#define RSTCU_AHBPRSTR_PxRST(n) ((1U << 8) << (n))
189#define RSTCU_AHBPRSTR_CRCRST (1U << 7)
190#define RSTCU_AHBPRSTR_EBIRST (1U << 6)
191#define RSTCU_AHBPRSTR_USBRST (1U << 5)
192#define RSTCU_AHBPRSTR_DMARST (1U << 0)
193#define RSTCU_APBPRSTR0_I2SRST (1U << 25)
194#define RSTCU_APBPRSTR0_SCIRST (1U << 24)
195#define RSTCU_APBPRSTR0_EXTIRST (1U << 15)
196#define RSTCU_APBPRSTR0_AFIORST (1U << 14)
197#define RSTCU_APBPRSTR0_UR1RST (1U << 11)
198#define RSTCU_APBPRSTR0_UR0RST (1U << 10)
199#define RSTCU_APBPRSTR0_USR1RST (1U << 9)
200#define RSTCU_APBPRSTR0_USR0RST (1U << 8)
201#define RSTCU_APBPRSTR0_SPI1RST (1U << 5)
202#define RSTCU_APBPRSTR0_SPI0RST (1U << 4)
203#define RSTCU_APBPRSTR0_I2C1RST (1U << 1)
204#define RSTCU_APBPRSTR0_I2C0RST (1U << 0)
205#define RSTCU_APBPRSTR1_ADCRST (1U << 24)
206#define RSTCU_APBPRSTR1_OPA1RST (1U << 23)
207#define RSTCU_APBPRSTR1_OPA0RST (1U << 22)
208#define RSTCU_APBPRSTR1_BFTM1RST (1U << 17)
209#define RSTCU_APBPRSTR1_BFTM0RST (1U << 16)
210#define RSTCU_APBPRSTR1_GPTM1RST (1U << 9)
211#define RSTCU_APBPRSTR1_GPTM0RST (1U << 8)
212#define RSTCU_APBPRSTR1_WDTRST (1U << 4)
213#define RSTCU_APBPRSTR1_MCTM1RST (1U << 1)
214#define RSTCU_APBPRSTR1_MCTM0RST (1U << 0)
215
216// General Purpose I/O
217// /////////////////////////////////////////////////////////////////////////////
218typedef struct {
219 __IO uint32_t DIRCR; //!< 0x000 Data Direction Control Register
220 __IO uint32_t INER; //!< 0x004 Input function enable register
221 __IO uint32_t PUR; //!< 0x008 Pull-Up Selection Register
222 __IO uint32_t PDR; //!< 0x00C Pull-Down Selection Register
223 __IO uint32_t ODR; //!< 0x010 Open Drain Selection Register
224 __IO uint32_t DRVR; //!< 0x014 Drive Current Selection Register
225 __IO uint32_t LOCKR; //!< 0x018 Lock Register
226 __IO uint32_t DINR; //!< 0x01c Data Input Register
227 __IO uint32_t DOUTR; //!< 0x020 Data Output Register
228 __IO uint32_t SRR; //!< 0x024 Output Set and Reset Control Register
229 __IO uint32_t RR; //!< 0x028 Output Reset Control Register
230} GPIO_TypeDef;
231
232// Alternate Function Input/Output
233// /////////////////////////////////////////////////////////////////////////////
234typedef struct {
235 __IO uint32_t ESSR[2]; //!< 0x000 ~ 0x004 EXTI Source Selection Register 0 ~ 1
236 uint32_t RESERVE0[6]; //!< 0x008 ~ 0x01C Reserved
237 union {
238 struct {
239 __IO uint32_t GPACFGR[2]; //!< 0x020 ~ 0x024 GPIO Port A Configuration Register 0 ~ 1
240 __IO uint32_t GPBCFGR[2]; //!< 0x028 ~ 0x02C GPIO Port B Configuration Register 0 ~ 1
241 __IO uint32_t GPCCFGR[2]; //!< 0x030 ~ 0x034 GPIO Port C Configuration Register 0 ~ 1
242 __IO uint32_t GPDCFGR[2]; //!< 0x038 ~ 0x03C GPIO Port D Configuration Register 0 ~ 1
243 };
244 // alternate mapping
245 struct {
246 __IO uint32_t GPxCFGR[0][2]; //!< 0x020 ~ 0x03C GPIO Port x Configuration Register 0 ~ 1
247 };
248 };
249} AFIO_TypeDef;
250
251// Nested Vectored Interrupt Controller
252// /////////////////////////////////////////////////////////////////////////////
253// Implemented in Cortex-M3 Headers
254
255// External Interrupt/Event Controller
256// /////////////////////////////////////////////////////////////////////////////
257typedef struct {
258 __IO uint32_t CFGR0; //!< 0x000 EXTI Interrupt 0 Configuration Register
259 __IO uint32_t CFGR1; //!< 0x004 EXTI Interrupt 1 Configuration Register
260 __IO uint32_t CFGR2; //!< 0x008 EXTI Interrupt 2 Configuration Register
261 __IO uint32_t CFGR3; //!< 0x00C EXTI Interrupt 3 Configuration Register
262 __IO uint32_t CFGR4; //!< 0x010 EXTI Interrupt 4 Configuration Register
263 __IO uint32_t CFGR5; //!< 0x014 EXTI Interrupt 5 Configuration Register
264 __IO uint32_t CFGR6; //!< 0x018 EXTI Interrupt 6 Configuration Register
265 __IO uint32_t CFGR7; //!< 0x01C EXTI Interrupt 7 Configuration Register
266 __IO uint32_t CFGR8; //!< 0x020 EXTI Interrupt 8 Configuration Register
267 __IO uint32_t CFGR9; //!< 0x024 EXTI Interrupt 9 Configuration Register
268 __IO uint32_t CFGR10; //!< 0x028 EXTI Interrupt 10 Configuration Register
269 __IO uint32_t CFGR11; //!< 0x02C EXTI Interrupt 11 Configuration Register
270 __IO uint32_t CFGR12; //!< 0x030 EXTI Interrupt 12 Configuration Register
271 __IO uint32_t CFGR13; //!< 0x034 EXTI Interrupt 13 Configuration Register
272 __IO uint32_t CFGR14; //!< 0x038 EXTI Interrupt 14 Configuration Register
273 __IO uint32_t CFGR15; //!< 0x03C EXTI Interrupt 15 Configuration Register
274 __IO uint32_t CR; //!< 0x040 EXTI Interrupt Control Register
275 __IO uint32_t EDGEFLGR; //!< 0x044 EXTI Interrupt Edge Flag Register
276 __IO uint32_t EDGESR; //!< 0x048 EXTI Interrupt Edge Status Register
277 __IO uint32_t SSCR; //!< 0x04C EXTI Interrupt Software Set Command Register
278 __IO uint32_t WAKUPCR; //!< 0x050 EXTI Interrupt Wakeup Control Register
279 __IO uint32_t WAKUPPOLR; //!< 0x054 EXTI Interrupt Wakeup Polarity Register
280 __IO uint32_t WAKUPFLG; //!< 0x058 EXTI Interrupt Wakeup Flag Register
281} EXTI_TypeDef;
282
283// Analog To Digital Converter
284// /////////////////////////////////////////////////////////////////////////////
285
286// Operational Amplifier / Comparator
287// /////////////////////////////////////////////////////////////////////////////
288typedef struct {
289 __IO uint32_t CR; //!< 0x000 Comparator Control Register
290 __IO uint32_t VALR; //!< 0x004 Comparator Voltage Reference Register
291 __IO uint32_t IER; //!< 0x008 Comparator Interrupt Enable Register
292 __IO uint32_t TFR; //!< 0x00C Comparator Transition Flag Register
293} CMP_TypeDef;
294
295
296// Basic Function Timers
297// /////////////////////////////////////////////////////////////////////////////
298typedef struct {
299 __IO uint32_t CR; //!< 0x000 Control Register
300 __IO uint32_t SR; //!< 0x004 Status Register
301 __IO uint32_t CNTR; //!< 0x008 Counter Value Register
302 __IO uint32_t CMP; //!< 0x00C Compare Value Register
303} BFTM_TypeDef;
304
305#define BFTM_CR_CEN (1U << 2)
306#define BFTM_CR_OSM (1U << 1)
307#define BFTM_CR_MIEN (1U << 0)
308#define BFTM_SR_MIF (1U << 0)
309
310// General Purpose Timers
311// Motor Control Timers
312// /////////////////////////////////////////////////////////////////////////////
313typedef struct {
314 __IO uint32_t CNTCFR; //!< 0x000 Timer Counter Configuaration Register
315 __IO uint32_t MDCFR; //!< 0x004 Timer Mode Configuration Register
316 __IO uint32_t TRCFR; //!< 0x008 Timer Trigger Configuration Register
317 uint32_t RESERVED0[1]; //!< 0x00C Reserved
318 __IO uint32_t CTR; //!< 0x010 Timer Counter Register
319 uint32_t RESERVED1[3]; //!< 0x014 ~ 0x01C Reserved
320 __IO uint32_t CHnICFR[4]; //!< 0x020 ~ 0x02C Channel n Input Configuration Register
321 uint32_t RESERVED2[4]; //!< 0x030 ~ 0x03C Reserved
322 __IO uint32_t CHnOCFR[4]; //!< 0x040 ~ 0x04C Channel n Output Configuration Register
323 __IO uint32_t CHCTR; //!< 0x050 Channel Control Register
324 __IO uint32_t CHPOLR; //!< 0x054 Channel Polarity Control Register
325 uint32_t RESERVED3[5]; //!< 0x058 ~ 0x068 Reserved
326 // note: only available as MCTM
327 __IO uint32_t CHBRKCFR; //!< 0x06C Channel Break Configuration Register
328 __IO uint32_t CHBRKCTR; //!< 0x070 Channel Break Control Register
329 // end note
330 __IO uint32_t DICTR; //!< 0x074 Timer PDMA/Interrupt Control Register
331 __IO uint32_t EVGR; //!< 0x078 Timer Event Generator Register
332 __IO uint32_t INTSR; //!< 0x07C Timer Interrupt Status Register
333 __IO uint32_t CNTR; //!< 0x080 Timer Counter Register
334 __IO uint32_t PSCR; //!< 0x084 Timer Prescaler Register
335 __IO uint32_t CRR; //!< 0x088 Timer Counter Reload Register
336 // note: only available as MCTM
337 __IO uint32_t REPR; //!< 0x08C Timer Repetition Register
338 // end note
339 __IO uint32_t CHnCCR[4]; //!< 0x090 ~ 0x09C Channel n Capture/Compare Register
340 __IO uint32_t CHnACR[4]; //!< 0x0A0 ~ 0x0AC Channel n Asymmentric Compare Register
341} TM_TypeDef;
342
343#define TM_CNTCFR_CMSEL_MASK (3U << 16)
344#define TM_CNTCFR_CMSEL_MODE_3 (3U << 16)
345#define TM_CNTCFR_CMSEL_MODE_2 (2U << 16)
346#define TM_CNTCFR_CMSEL_MODE_1 (1U << 16)
347#define TM_CNTCFR_CMSEL_MODE_0 (0U << 16)
348#define TM_CTR_CHCCDS (1U << 16)
349#define TM_CTR_COMUS (1U << 9)
350#define TM_CTR_COMPRE (1U << 8)
351#define TM_CTR_CRBE (1U << 1)
352#define TM_CTR_TME (1U << 0)
353#define TM_CHnOCFR_CHnPRE (1U << 4)
354#define TM_CHnOCFR_REFnCE (1U << 3)
355#define TM_CHnOCFR_CHnOM(n) ((((n)>>0)&7)|((((n)>>3)&1)<<8))
356#define TM_CHBRKCTR_CHMOE (1U << 4)
357
358// Real Time Clock
359// /////////////////////////////////////////////////////////////////////////////
360
361// Watchdog Timer
362// /////////////////////////////////////////////////////////////////////////////
363
364// I2C
365// /////////////////////////////////////////////////////////////////////////////
366typedef struct {
367 __IO uint32_t CR; //!< 0x000 Control Register
368 __IO uint32_t IER; //!< 0x004 Interrupt Enable Register
369 __IO uint32_t ADDR; //!< 0x008 Address Register
370 __IO uint32_t SR; //!< 0x00C Status Register
371 __IO uint32_t SHPGR; //!< 0x010 SCL High Period Generation Register
372 __IO uint32_t SLPGR; //!< 0x014 SCL Low Period Generation Register
373 __IO uint32_t DR; //!< 0x018 Data Register
374 __IO uint32_t TAR; //!< 0x01C Target Register
375 __IO uint32_t ADDMR; //!< 0x020 Address Mask Register
376 __IO uint32_t ADDSR; //!< 0x024 Address Snoop Register
377 __IO uint32_t TOUT; //!< 0x028 Timeout Register
378} I2C_TypeDef;
379
380#define I2C_CR_SEQ_FILTER_MASK (3U << 14)
381#define I2C_CR_SEQ_FILTER_2_PCLK (2U << 14)
382#define I2C_CR_SEQ_FILTER_1_PCLK (1U << 14)
383#define I2C_CR_SEQ_FILTER_DISABLE (0U << 14)
384#define I2C_CR_COMB_FILTER_En (1U << 13)
385#define I2C_CR_ENTOUT (1U << 12)
386#define I2C_CR_DMANACK (1U << 10)
387#define I2C_CR_RXDMAE (1U << 9)
388#define I2C_CR_TXDMAE (1U << 8)
389#define I2C_CR_ADRM (1U << 7)
390#define I2C_CR_I2CEN (1U << 3)
391#define I2C_CR_GCEN (1U << 2)
392#define I2C_CR_STOP (1U << 1)
393#define I2C_CR_AA (1U << 0)
394#define I2C_IER_RXBFIE (1U << 18)
395#define I2C_IER_TXDEIE (1U << 17)
396#define I2C_IER_RXDNEIE (1U << 16)
397#define I2C_IER_TOUTIE (1U << 11)
398#define I2C_IER_BUSERRIE (1U << 10)
399#define I2C_IER_RXNACKIE (1U << 9)
400#define I2C_IER_ARBLOSIE (1U << 8)
401#define I2C_IER_GCSIE (1U << 3)
402#define I2C_IER_ADRSIE (1U << 2)
403#define I2C_IER_STOIE (1U << 1)
404#define I2C_IER_STAIE (1U << 0)
405#define I2C_SR_TXNRX (1U << 21)
406#define I2C_SR_MASTER (1U << 20)
407#define I2C_SR_BUSBUSY (1U << 19)
408#define I2C_SR_RXBF (1U << 18)
409#define I2C_SR_TXDE (1U << 17)
410#define I2C_SR_RXDNE (1U << 16)
411#define I2C_SR_TOUTF (1U << 11)
412#define I2C_SR_BUSERR (1U << 10)
413#define I2C_SR_RXNACK (1U << 9)
414#define I2C_SR_ARBLOS (1U << 8)
415#define I2C_SR_GCS (1U << 3)
416#define I2C_SR_ADRS (1U << 2)
417#define I2C_SR_STO (1U << 1)
418#define I2C_SR_STA (1U << 0)
419#define I2C_TAR_RWD (1U << 10)
420
421// SPI
422// /////////////////////////////////////////////////////////////////////////////
423typedef struct {
424 __IO uint32_t CR0; //!< 0x000 Control Register 0
425 __IO uint32_t CR1; //!< 0x004 Control Register 1
426 __IO uint32_t IER; //!< 0x008 Interrupt Enable Register
427 __IO uint32_t CPR; //!< 0x00C Clock Prescaler Register
428 __IO uint32_t DR; //!< 0x010 Data Register
429 __IO uint32_t SR; //!< 0x014 Status Register
430 __IO uint32_t FCR; //!< 0x018 FIFO Control Register
431 __IO uint32_t FSR; //!< 0x01C FIFO Status Register
432 __IO uint32_t FTOCR; //!< 0x020 FIFO Time Out Counter Register
433} SPI_TypeDef;
434
435#define SPI_CR0_GUADTEN (1U << 7)
436#define SPI_CR0_DUALEN (1U << 6)
437#define SPI_CR0_SSELC (1U << 4)
438#define SPI_CR0_SELOEN (1U << 3)
439#define SPI_CR0_SPIEN (1U << 0)
440#define SPI_CR1_MODE (1U << 14)
441#define SPI_CR1_SELM (1U << 13)
442#define SPI_CR1_FIRSTBIT (1U << 12)
443#define SPI_CR1_SELAP (1U << 11)
444#define SPI_CR1_FORMAT_MASK (7U << 8)
445#define SPI_CR1_FORMAT_MODE0 (0x1U << 8)
446#define SPI_CR1_FORMAT_MODE1 (0x2U << 8)
447#define SPI_CR1_FORMAT_MODE2 (0x6U << 8)
448#define SPI_CR1_FORMAT_MODE3 (0x5U << 8)
449#define SPI_IER_RXBNEIEN (1U << 2)
450#define SPI_IER_TXBEIEN (1U << 0)
451#define SPI_SR_RXBNE (1U << 2)
452#define SPI_SR_TXE (1U << 1)
453#define SPI_SR_TXBE (1U << 0)
454#define SPI_FCR_FIFOEN (1U << 10)
455#define SPI_FSR_TXFS_MASK (0xfU << 0)
456#define SPI_FSR_RXFS_MASK (0xfU << 4)
457
458// USART
459// UART
460// /////////////////////////////////////////////////////////////////////////////
461typedef struct {
462 __IO uint32_t DR; //!< 0x000 Data Register
463 __IO uint32_t CR; //!< 0x004 Control Register
464 // Only USART
465 __IO uint32_t FCR; //!< 0x008 FIFO Control Register
466 __IO uint32_t IER; //!< 0x00C Interrupt Enable Register
467 __IO uint32_t SIFR; //!< 0x010 Status & Interrupt Flag Register
468
469 __IO uint32_t TPR; //!< 0x014 Timing Parameter Register
470
471 __IO uint32_t IrDACR; //!< 0x018 IrDA Control Register
472 __IO uint32_t RS485CR; //!< 0x01C RS485 Control Register
473 __IO uint32_t SYNCR; //!< 0x020 Synchronous Control Register
474 // end note
475 __IO uint32_t DLR; //!< 0x024 Divider Latch Register
476 __IO uint32_t TSTR; //!< 0x028 Debug/Test Register
477} USART_TypeDef;
478
479// USART CR
480#define UART_CR_MODE_MASK (0b11 << 0)
481#define UART_CR_MODE_NORMAL (0 << 0)
482#define UART_CR_TRSM (1 << 2)
483#define UART_CR_HFCEN (1 << 3)
484#define UART_CR_URTXEN (1 << 4)
485#define UART_CR_URRXEN (1 << 5)
486#define UART_CR_TXDMAEN (1 << 6)
487#define UART_CR_RXDMAEN (1 << 7)
488#define UART_CR_WLS_MASK (0b11 << 8)
489#define UART_CR_WLS_7B (0b00 << 8)
490#define UART_CR_WLS_8B (0b01 << 8)
491#define UART_CR_WLS_9B (0b10 << 8)
492#define UART_CR_NSB (1 << 10)
493#define UART_CR_PBE (1 << 11)
494#define UART_CR_EPE (1 << 12)
495#define UART_CR_SPE (1 << 13)
496#define UART_CR_BCB (1 << 14)
497#define UART_CR_RTS (1 << 15)
498// USART FCR (FIFO CR)
499#define USART_FCR_TXR (1 << 0)
500#define USART_FCR_RXR (1 << 1)
501#define USART_FCR_TXTL_MASK (0b11 << 4)
502#define USART_FCR_RXTL_MASK (0b11 << 6)
503#define USART_FCR_TXFS_MASK (0xF << 16)
504#define USART_FCR_RXFS_MASK (0xF << 24)
505// USART SIFR Status and Interrupt Flag Register
506#define USART_SIFR_RXDNE (1 << 0)
507#define USART_SIFR_OEI (1 << 1)
508#define USART_SIFR_PEI (1 << 2)
509#define USART_SIFR_FEI (1 << 3)
510#define USART_SIFR_BII (1 << 4)
511#define USART_SIFR_RXDR (1 << 5)
512#define USART_SIFR_RXTOF (1 << 6)
513#define USART_SIFR_TXDE (1 << 7)
514#define USART_SIFR_TXC (1 << 8)
515#define USART_SIFR_RSADDE (1 << 9)
516#define USART_SIFR_CTSC (1 << 10)
517#define USART_SIFR_CTSS (1 << 11)
518// USART IER
519#define USART_IER_RXDRIE (1 << 0)
520#define USART_IER_TXDEIE (1 << 1)
521#define USART_IER_TXCIE (1 << 2)
522#define USART_IER_OEIE (1 << 3)
523#define USART_IER_PEIE (1 << 4)
524#define USART_IER_FEIE (1 << 5)
525#define USART_IER_BIE (1 << 6)
526#define USART_IER_RSADDIE (1 << 7)
527#define USART_IER_RXTOIE (1 << 8)
528#define USART_IER_CTSIE (1 << 9)
529
530
531// Smart Card Interface
532// /////////////////////////////////////////////////////////////////////////////
533
534// USB
535// /////////////////////////////////////////////////////////////////////////////
536typedef struct {
537 __IO uint32_t CSR; //!< 0x000 USB Control and Status Register
538 __IO uint32_t IER; //!< 0x004 USB Interrupt Enable Register
539 __IO uint32_t ISR; //!< 0x008 USB Interrupt Status Register
540 __IO uint32_t FCR; //!< 0x00C USB Frame Count Register
541 __IO uint32_t DEVAR; //!< 0x010 USB Device Address Register
542 struct {
543 __IO uint32_t CSR; //!< 0x014 USB Endpoint n Control and Status Register
544 __IO uint32_t IER; //!< 0x018 USB Endpoint n Interrupt Enable Register
545 __IO uint32_t ISR; //!< 0x01C USB Endpoint n Interrupt Status Register
546 __IO uint32_t TCR; //!< 0x020 USB Endpoint n Transfer Count Register
547 __IO uint32_t CFGR; //!< 0x024 USB Endpoint n Configuration Register
548 } EP[8];
549} USB_TypeDef;
550
551// USBCSR
552#define USBCSR_FRES (0x002) // Force USB Reset Control
553#define USBCSR_PDWN (0x004) // Power Down Mode Control
554#define USBCSR_LPMODE (0x008) // Low-Power Mode Control
555#define USBCSR_GENRSM (0x020) // Resume Request Generation Control
556#define USBCSR_RXDP (0x040) // Received DP Line Status
557#define USBCSR_RXDM (0x080) // Received DM Line Status
558#define USBCSR_ADRSET (0x100) // Device Address Setting Control
559#define USBCSR_SRAMRSTC (0x200) // USB SRAM Reset Condition
560#define USBCSR_DPPUEN (0x400) // DP Pull Up Enable
561#define USBCSR_DPWKEN (0x800) // DP Wake Up Enable
562
563// USBIER
564#define USBIER_UGIE (0x0001) // USB global Interrupt Enable
565#define USBIER_SOFIE (0x0002) // Start Of Frame Interrupt Enable
566#define USBIER_URSTIE (0x0004) // USB Reset Interrupt Enable
567#define USBIER_RSMIE (0x0008) // Resume Interrupt Enable
568#define USBIER_SUSPIE (0x0010) // Suspend Interrupt Enable
569#define USBIER_ESOFIE (0x0020) // Expected Start Of Frame Enable
570#define USBIER_EP0IE (0x0100) // Endpoint 0 Interrupt Enable
571#define USBIER_EP1IE (0x0200) // Endpoint 1 Interrupt Enable
572#define USBIER_EP2IE (0x0400) // Endpoint 2 Interrupt Enable
573#define USBIER_EP3IE (0x0800) // Endpoint 3 Interrupt Enable
574#define USBIER_EP4IE (0x1000) // Endpoint 4 Interrupt Enable
575#define USBIER_EP5IE (0x2000) // Endpoint 5 Interrupt Enable
576#define USBIER_EP6IE (0x4000) // Endpoint 6 Interrupt Enable
577#define USBIER_EP7IE (0x8000) // Endpoint 7 Interrupt Enable
578
579// USBISR
580#define USBISR_SOFIF (0x0002) // Start Of Frame Interrupt Flag
581#define USBISR_URSTIF (0x0004) // USB Reset Interrupt Flag
582#define USBISR_RSMIF (0x0008) // Resume Interrupt Flag
583#define USBISR_SUSPIF (0x0010) // Suspend Interrupt Flag
584#define USBISR_ESOFIF (0x0020) // Expected Start Of Frame Interrupt
585#define USBISR_EP0IF (1U << 8) // Endpoint 0 Interrupt Flag
586#define USBISR_EP1IF (1U << 9) // Endpoint 1 Interrupt Flag
587#define USBISR_EP2IF (1U << 10) // Endpoint 2 Interrupt Flag
588#define USBISR_EP3IF (1U << 11) // Endpoint 3 Interrupt Flag
589#define USBISR_EP4IF (1U << 12) // Endpoint 4 Interrupt Flag
590#define USBISR_EP5IF (1U << 13) // Endpoint 5 Interrupt Flag
591#define USBISR_EP6IF (1U << 14) // Endpoint 6 Interrupt Flag
592#define USBISR_EP7IF (1U << 15) // Endpoint 7 Interrupt Flag
593#define USBISR_EPnIF (0xFF00) // Endpoint Interrupt Mask
594
595// USBFCR
596#define USBFCR_FRNUM (0x7FF) // Frame Number
597#define USBFCR_SOFLCK (1U << 16) // Start-of-Frame Lock Flag
598#define USBFCR_LSOF (0x3U << 17) // Lost Start-of-Frame Number
599
600// USBEPnCSR
601#define USBEPnCSR_DTGTX (0x01) // Data Toggle Status, for IN transfer
602#define USBEPnCSR_NAKTX (0x02) // NAK Status, for IN transfer
603#define USBEPnCSR_STLTX (0x04) // STALL Status, for IN transfer
604#define USBEPnCSR_DTGRX (0x08) // Data Toggle Status, for OUT transfer
605#define USBEPnCSR_NAKRX (0x10) // NAK Status, for OUT transfer
606#define USBEPnCSR_STLRX (0x20) // STALL Status, for OUT transfer
607
608// USBEPnIER
609#define USBEPnIER_OTRXIE (0x001) // OUT Token Received Interrupt Enable
610#define USBEPnIER_ODRXIE (0x002) // OUT Data Received Interrupt Enable
611#define USBEPnIER_ODOVIE (0x004) // OUT Data Buffer Overrun Interrupt Enable
612#define USBEPnIER_ITRXIE (0x008) // IN Token Received Interrupt Enable
613#define USBEPnIER_IDTXIE (0x010) // IN Data Transmitted Interrupt Enable
614#define USBEPnIER_NAKIE (0x020) // NAK Transmitted Interrupt Enable
615#define USBEPnIER_STLIE (0x040) // STALL Transmitted Interrupt Enable
616#define USBEPnIER_UERIE (0x080) // USB Error Interrupt Enable
617#define USBEPnIER_STRXIE (0x100) // SETUP Token Received Interrupt Enable
618#define USBEPnIER_SDRXIE (0x200) // SETUP Data Received Interrupt Enable
619#define USBEPnIER_SDERIE (0x400) // SETUP Data Error Interrupt Enable
620#define USBEPnIER_ZLRXIE (0x800) // Zero Length Data Received Interrupt Enable
621
622// USBEPnISR
623#define USBEPnISR_OTRXIF (0x001) // OUT Token Received Interrupt Flag
624#define USBEPnISR_ODRXIF (0x002) // OUT Data Received Interrupt Flag
625#define USBEPnISR_ODOVIF (0x004) // OUT Data Buffer Overrun Interrupt Flag
626#define USBEPnISR_ITRXIF (0x008) // IN Token Received Interrupt Flag
627#define USBEPnISR_IDTXIF (0x010) // IN Data Transmitted Interrupt Flag
628#define USBEPnISR_NAKIF (0x020) // NAK Transmitted Interrupt Flag
629#define USBEPnISR_STLIF (0x040) // STALL Transmitted Interrupt Flag
630#define USBEPnISR_UERIF (0x080) // USB Error Interrupt Flag
631#define USBEPnISR_STRXIF (0x100) // SETUP Token Received Interrupt Flag
632#define USBEPnISR_SDRXIF (0x200) // SETUP Data Received Interrupt Flag
633#define USBEPnISR_SDERIF (0x400) // SETUP Data Error Interrupt Flag
634#define USBEPnISR_ZLRXIF (0x800) // Zero Length Data Received Interrupt Flag
635
636// USBEPnTCR
637#define USBEPnTCR_TCNT (0x1FF) // Transfer Byte Count
638
639// USBEPnCFGR
640#define USBEPnCFGR_EPEN (1U << 31) // Endpoint Enable
641#define USBEPnCFGR_EPTYPE (1U << 29) // Transfer Type
642#define USBEPnCFGR_EPDIR (1U << 28) // Transfer Direction
643#define USBEPnCFGR_EPADR (0xFU << 24) // Endpoint Address
644#define USBEPnCFGR_EPLEN (0x7FU << 10) // Buffer Length
645#define USBEPnCFGR_EPBUFA (0x3FF) // Endpoint Buffer Address
646
647// Peripheral Direct Memory Access
648// /////////////////////////////////////////////////////////////////////////////
649
650// Extend Bus Interface
651// /////////////////////////////////////////////////////////////////////////////
652
653// Inter-IC Sound
654// /////////////////////////////////////////////////////////////////////////////
655
656// CRC
657// /////////////////////////////////////////////////////////////////////////////
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/MK66F18.h b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/MK66F18.h
new file mode 100644
index 000000000..237089e0c
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/MK66F18.h
@@ -0,0 +1,21214 @@
1/*
2** ###################################################################
3** Processors: MK66FN2M0VLQ18
4** MK66FN2M0VMD18
5** MK66FX1M0VLQ18
6** MK66FX1M0VMD18
7**
8** Compilers: Keil ARM C/C++ Compiler
9** Freescale C/C++ for Embedded ARM
10** GNU C Compiler
11** IAR ANSI C/C++ Compiler for ARM
12** MCUXpresso Compiler
13**
14** Reference manual: K66P144M180SF5RMV2, Rev. 1, Mar 2015
15** Version: rev. 3.0, 2015-03-25
16** Build: b171205
17**
18** Abstract:
19** CMSIS Peripheral Access Layer for MK66F18
20**
21** The Clear BSD License
22** Copyright 1997-2016 Freescale Semiconductor, Inc.
23** Copyright 2016-2017 NXP
24** All rights reserved.
25**
26** Redistribution and use in source and binary forms, with or without
27** modification, are permitted (subject to the limitations in the
28** disclaimer below) provided that the following conditions are met:
29**
30** * Redistributions of source code must retain the above copyright
31** notice, this list of conditions and the following disclaimer.
32**
33** * Redistributions in binary form must reproduce the above copyright
34** notice, this list of conditions and the following disclaimer in the
35** documentation and/or other materials provided with the distribution.
36**
37** * Neither the name of the copyright holder nor the names of its
38** contributors may be used to endorse or promote products derived from
39** this software without specific prior written permission.
40**
41** NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
42** GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
43** HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
44** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
45** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
46** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
47** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50** BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51** WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52** OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53** IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54**
55** http: www.nxp.com
56** mail: [email protected]
57**
58** Revisions:
59** - rev. 1.0 (2013-09-02)
60** Initial version.
61** - rev. 2.0 (2014-02-17)
62** Register accessor macros added to the memory map.
63** Symbols for Processor Expert memory map compatibility added to the memory map.
64** Startup file for gcc has been updated according to CMSIS 3.2.
65** Definition of BITBAND macros updated to support peripherals with 32-bit acces disabled.
66** Update according to reference manual rev. 2
67** - rev. 2.1 (2014-04-16)
68** Update of SystemInit() and SystemCoreClockUpdate() functions.
69** - rev. 2.2 (2014-10-14)
70** Interrupt INT_LPTimer renamed to INT_LPTMR0, interrupt INT_Watchdog renamed to INT_WDOG_EWM.
71** - rev. 2.3 (2014-11-20)
72** Update according to reverence manual K65P169M180SF5RMV2_NDA, Rev. 0 Draft A, October 2014.
73** Update of SystemInit() to use 16MHz external crystal.
74** - rev. 2.4 (2015-02-19)
75** Renamed interrupt vector LLW to LLWU.
76** - rev. 3.0 (2015-03-25)
77** Registers updated according to the reference manual revision 1, March 2015
78** - Revised 2018-05-04 by Michael Walker <[email protected]> to support ChibiOS LLD HAL
79** Register names and other names updated to match other Kinetis definitions for other MCUs
80**
81** ###################################################################
82*/
83
84/*!
85 * @file MK66F18.h
86 * @version 3.0
87 * @date 2015-03-25
88 * @brief CMSIS Peripheral Access Layer for MK66F18
89 *
90 * CMSIS Peripheral Access Layer for MK66F18
91 */
92
93#ifndef _MK66F18_H_
94#define _MK66F18_H_ /**< Symbol preventing repeated inclusion */
95
96/** Memory map major version (memory maps with equal major version number are
97 * compatible) */
98#define MCU_MEM_MAP_VERSION 0x0300U
99/** Memory map minor version */
100#define MCU_MEM_MAP_VERSION_MINOR 0x0000U
101
102/**
103 * @brief Macro to calculate address of an aliased word in the peripheral
104 * bitband area for a peripheral register and bit (bit band region 0x40000000 to
105 * 0x400FFFFF).
106 * @param Reg Register to access.
107 * @param Bit Bit number to access.
108 * @return Address of the aliased word in the peripheral bitband area.
109 */
110#define BITBAND_REGADDR(Reg,Bit) (0x42000000u + (32u*((uint32_t)&(Reg) - (uint32_t)0x40000000u)) + (4u*((uint32_t)(Bit))))
111/**
112 * @brief Macro to access a single bit of a peripheral register (bit band region
113 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
114 * be used for peripherals with 32bit access allowed.
115 * @param Reg Register to access.
116 * @param Bit Bit number to access.
117 * @return Value of the targeted bit in the bit band region.
118 */
119#define BITBAND_REG32(Reg,Bit) (*((uint32_t volatile*)(BITBAND_REGADDR((Reg),(Bit)))))
120#define BITBAND_REG(Reg,Bit) (BITBAND_REG32((Reg),(Bit)))
121/**
122 * @brief Macro to access a single bit of a peripheral register (bit band region
123 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
124 * be used for peripherals with 16bit access allowed.
125 * @param Reg Register to access.
126 * @param Bit Bit number to access.
127 * @return Value of the targeted bit in the bit band region.
128 */
129#define BITBAND_REG16(Reg,Bit) (*((uint16_t volatile*)(BITBAND_REGADDR((Reg),(Bit)))))
130/**
131 * @brief Macro to access a single bit of a peripheral register (bit band region
132 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
133 * be used for peripherals with 8bit access allowed.
134 * @param Reg Register to access.
135 * @param Bit Bit number to access.
136 * @return Value of the targeted bit in the bit band region.
137 */
138#define BITBAND_REG8(Reg,Bit) (*((uint8_t volatile*)(BITBAND_REGADDR((Reg),(Bit)))))
139
140/* ----------------------------------------------------------------------------
141 -- Interrupt vector numbers
142 ---------------------------------------------------------------------------- */
143
144/*!
145 * @addtogroup Interrupt_vector_numbers Interrupt vector numbers
146 * @{
147 */
148
149/** Interrupt Number Definitions */
150#define NUMBER_OF_INT_VECTORS 116 /**< Number of interrupts in the Vector table */
151
152#define DMA0_IRQn DMA0_DMA16_IRQn
153#define DMA1_IRQn DMA1_DMA17_IRQn
154#define DMA2_IRQn DMA2_DMA18_IRQn
155#define DMA3_IRQn DMA3_DMA19_IRQn
156#define DMA4_IRQn DMA4_DMA20_IRQn
157#define DMA5_IRQn DMA5_DMA21_IRQn
158#define DMA6_IRQn DMA6_DMA22_IRQn
159#define DMA7_IRQn DMA7_DMA23_IRQn
160#define DMA8_IRQn DMA8_DMA24_IRQn
161#define DMA9_IRQn DMA9_DMA25_IRQn
162#define DMA10_IRQn DMA10_DMA26_IRQn
163#define DMA11_IRQn DMA11_DMA27_IRQn
164#define DMA12_IRQn DMA12_DMA28_IRQn
165#define DMA13_IRQn DMA13_DMA29_IRQn
166#define DMA14_IRQn DMA14_DMA30_IRQn
167#define DMA15_IRQn DMA15_DMA21_IRQn
168
169typedef enum IRQn {
170 /* Auxiliary constants */
171 NotAvail_IRQn = -128, /**< Not available device specific interrupt */
172
173 /* Core interrupts */
174 NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */
175 HardFault_IRQn = -13, /**< Cortex-M4 SV Hard Fault Interrupt */
176 MemoryManagement_IRQn = -12, /**< Cortex-M4 Memory Management Interrupt */
177 BusFault_IRQn = -11, /**< Cortex-M4 Bus Fault Interrupt */
178 UsageFault_IRQn = -10, /**< Cortex-M4 Usage Fault Interrupt */
179 SVCall_IRQn = -5, /**< Cortex-M4 SV Call Interrupt */
180 DebugMonitor_IRQn = -4, /**< Cortex-M4 Debug Monitor Interrupt */
181 PendSV_IRQn = -2, /**< Cortex-M4 Pend SV Interrupt */
182 SysTick_IRQn = -1, /**< Cortex-M4 System Tick Interrupt */
183
184 /* Device specific interrupts */
185 DMA0_DMA16_IRQn = 0, /**< DMA Channel 0, 16 Transfer Complete */
186 DMA1_DMA17_IRQn = 1, /**< DMA Channel 1, 17 Transfer Complete */
187 DMA2_DMA18_IRQn = 2, /**< DMA Channel 2, 18 Transfer Complete */
188 DMA3_DMA19_IRQn = 3, /**< DMA Channel 3, 19 Transfer Complete */
189 DMA4_DMA20_IRQn = 4, /**< DMA Channel 4, 20 Transfer Complete */
190 DMA5_DMA21_IRQn = 5, /**< DMA Channel 5, 21 Transfer Complete */
191 DMA6_DMA22_IRQn = 6, /**< DMA Channel 6, 22 Transfer Complete */
192 DMA7_DMA23_IRQn = 7, /**< DMA Channel 7, 23 Transfer Complete */
193 DMA8_DMA24_IRQn = 8, /**< DMA Channel 8, 24 Transfer Complete */
194 DMA9_DMA25_IRQn = 9, /**< DMA Channel 9, 25 Transfer Complete */
195 DMA10_DMA26_IRQn = 10, /**< DMA Channel 10, 26 Transfer Complete */
196 DMA11_DMA27_IRQn = 11, /**< DMA Channel 11, 27 Transfer Complete */
197 DMA12_DMA28_IRQn = 12, /**< DMA Channel 12, 28 Transfer Complete */
198 DMA13_DMA29_IRQn = 13, /**< DMA Channel 13, 29 Transfer Complete */
199 DMA14_DMA30_IRQn = 14, /**< DMA Channel 14, 30 Transfer Complete */
200 DMA15_DMA31_IRQn = 15, /**< DMA Channel 15, 31 Transfer Complete */
201 DMA_Error_IRQn = 16, /**< DMA Error Interrupt */
202 MCM_IRQn = 17, /**< Normal Interrupt */
203 FTFE_IRQn = 18, /**< FTFE Command complete interrupt */
204 Read_Collision_IRQn = 19, /**< Read Collision Interrupt */
205 LVD_LVW_IRQn = 20, /**< Low Voltage Detect, Low Voltage Warning */
206 LLWU_IRQn = 21, /**< Low Leakage Wakeup Unit */
207 WDOG_EWM_IRQn = 22, /**< WDOG Interrupt */
208 RNG_IRQn = 23, /**< RNG Interrupt */
209 I2C0_IRQn = 24, /**< I2C0 interrupt */
210 I2C1_IRQn = 25, /**< I2C1 interrupt */
211 SPI0_IRQn = 26, /**< SPI0 Interrupt */
212 SPI1_IRQn = 27, /**< SPI1 Interrupt */
213 I2S0_Tx_IRQn = 28, /**< I2S0 transmit interrupt */
214 I2S0_Rx_IRQn = 29, /**< I2S0 receive interrupt */
215 Reserved46_IRQn = 30, /**< Reserved interrupt 46 */
216 UART0Status_IRQn = 31, /**< UART0 Receive/Transmit interrupt */
217 UART0Error_IRQn = 32, /**< UART0 Error interrupt */
218 UART1Status_IRQn = 33, /**< UART1 Receive/Transmit interrupt */
219 UART1Error_IRQn = 34, /**< UART1 Error interrupt */
220 UART2Status_IRQn = 35, /**< UART2 Receive/Transmit interrupt */
221 UART2Error_IRQn = 36, /**< UART2 Error interrupt */
222 UART3Status_IRQn = 37, /**< UART3 Receive/Transmit interrupt */
223 UART3Error_IRQn = 38, /**< UART3 Error interrupt */
224 ADC0_IRQn = 39, /**< ADC0 interrupt */
225 CMP0_IRQn = 40, /**< CMP0 interrupt */
226 CMP1_IRQn = 41, /**< CMP1 interrupt */
227 FTM0_IRQn = 42, /**< FTM0 fault, overflow and channels interrupt */
228 FTM1_IRQn = 43, /**< FTM1 fault, overflow and channels interrupt */
229 FTM2_IRQn = 44, /**< FTM2 fault, overflow and channels interrupt */
230 CMT_IRQn = 45, /**< CMT interrupt */
231 RTC_IRQn = 46, /**< RTC interrupt */
232 RTC_Seconds_IRQn = 47, /**< RTC seconds interrupt */
233 PITChannel0_IRQn = 48, /**< PIT timer channel 0 interrupt */
234 PITChannel1_IRQn = 49, /**< PIT timer channel 1 interrupt */
235 PITChannel2_IRQn = 50, /**< PIT timer channel 2 interrupt */
236 PITChannel3_IRQn = 51, /**< PIT timer channel 3 interrupt */
237 PDB0_IRQn = 52, /**< PDB0 Interrupt */
238 USB_OTG_IRQn = 53, /**< USB0 interrupt */
239 USBDCD_IRQn = 54, /**< USBDCD Interrupt */
240 Reserved71_IRQn = 55, /**< Reserved interrupt 71 */
241 DAC0_IRQn = 56, /**< DAC0 interrupt */
242 MCG_IRQn = 57, /**< MCG Interrupt */
243 LPTMR0_IRQn = 58, /**< LPTimer interrupt */
244 PINA_IRQn = 59, /**< Port A interrupt */
245 PINB_IRQn = 60, /**< Port B interrupt */
246 PINC_IRQn = 61, /**< Port C interrupt */
247 PIND_IRQn = 62, /**< Port D interrupt */
248 PINE_IRQn = 63, /**< Port E interrupt */
249 SWI_IRQn = 64, /**< Software interrupt */
250 SPI2_IRQn = 65, /**< SPI2 Interrupt */
251 UART4Status_IRQn = 66, /**< UART4 Receive/Transmit interrupt */
252 UART4Error_IRQn = 67, /**< UART4 Error interrupt */
253 Reserved84_IRQn = 68, /**< Reserved interrupt 84 */
254 Reserved85_IRQn = 69, /**< Reserved interrupt 85 */
255 CMP2_IRQn = 70, /**< CMP2 interrupt */
256 FTM3_IRQn = 71, /**< FTM3 fault, overflow and channels interrupt */
257 DAC1_IRQn = 72, /**< DAC1 interrupt */
258 ADC1_IRQn = 73, /**< ADC1 interrupt */
259 I2C2_IRQn = 74, /**< I2C2 interrupt */
260 CAN0_ORed_Message_buffer_IRQn = 75, /**< CAN0 OR'd message buffers interrupt */
261 CAN0_Bus_Off_IRQn = 76, /**< CAN0 bus off interrupt */
262 CAN0_Error_IRQn = 77, /**< CAN0 error interrupt */
263 CAN0_Tx_Warning_IRQn = 78, /**< CAN0 Tx warning interrupt */
264 CAN0_Rx_Warning_IRQn = 79, /**< CAN0 Rx warning interrupt */
265 CAN0_Wake_Up_IRQn = 80, /**< CAN0 wake up interrupt */
266 SDHC_IRQn = 81, /**< SDHC interrupt */
267 ENET_1588_Timer_IRQn = 82, /**< Ethernet MAC IEEE 1588 Timer Interrupt */
268 ENET_Transmit_IRQn = 83, /**< Ethernet MAC Transmit Interrupt */
269 ENET_Receive_IRQn = 84, /**< Ethernet MAC Receive Interrupt */
270 ENET_Error_IRQn = 85, /**< Ethernet MAC Error and miscelaneous Interrupt */
271 LPUART0_IRQn = 86, /**< LPUART0 status/error interrupt */
272 TSI0_IRQn = 87, /**< TSI0 interrupt */
273 TPM1_IRQn = 88, /**< TPM1 fault, overflow and channels interrupt */
274 TPM2_IRQn = 89, /**< TPM2 fault, overflow and channels interrupt */
275 USBHSDCD_IRQn = 90, /**< USBHSDCD, USBHS Phy Interrupt */
276 I2C3_IRQn = 91, /**< I2C3 interrupt */
277 CMP3_IRQn = 92, /**< CMP3 interrupt */
278 USBHS_IRQn = 93, /**< USB high speed OTG interrupt */
279 CAN1_ORed_Message_buffer_IRQn = 94, /**< CAN1 OR'd message buffers interrupt */
280 CAN1_Bus_Off_IRQn = 95, /**< CAN1 bus off interrupt */
281 CAN1_Error_IRQn = 96, /**< CAN1 error interrupt */
282 CAN1_Tx_Warning_IRQn = 97, /**< CAN1 Tx warning interrupt */
283 CAN1_Rx_Warning_IRQn = 98, /**< CAN1 Rx warning interrupt */
284 CAN1_Wake_Up_IRQn = 99 /**< CAN1 wake up interrupt */
285} IRQn_Type;
286
287/*!
288 * @}
289 */ /* end of group Interrupt_vector_numbers */
290
291
292/* ----------------------------------------------------------------------------
293 -- Cortex M4 Core Configuration
294 ---------------------------------------------------------------------------- */
295
296/*!
297 * @addtogroup Cortex_Core_Configuration Cortex M4 Core Configuration
298 * @{
299 */
300
301#define __MPU_PRESENT 1 /**< Defines if an MPU is present or not */
302#define __NVIC_PRIO_BITS 4 /**< Number of priority bits implemented in the NVIC */
303#define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */
304#define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */
305
306#include "core_cm4.h" /* Core Peripheral Access Layer */
307#include "system_MK66F18.h" /* Device specific configuration file */
308
309/*!
310 * @}
311 */ /* end of group Cortex_Core_Configuration */
312
313
314/* ----------------------------------------------------------------------------
315 -- Mapping Information
316 ---------------------------------------------------------------------------- */
317
318/*!
319 * @addtogroup Mapping_Information Mapping Information
320 * @{
321 */
322
323/** Mapping Information */
324/*!
325 * @addtogroup edma_request
326 * @{
327 */
328
329/*******************************************************************************
330 * Definitions
331 ******************************************************************************/
332
333/*!
334 * @brief Structure for the DMA hardware request
335 *
336 * Defines the structure for the DMA hardware request collections. The user can configure the
337 * hardware request into DMAMUX to trigger the DMA transfer accordingly. The index
338 * of the hardware request varies according to the to SoC.
339 */
340typedef enum _dma_request_source
341{
342 kDmaRequestMux0Disable = 0|0x100U, /**< DMAMUX TriggerDisabled. */
343 kDmaRequestMux0TSI0 = 1|0x100U, /**< TSI0. */
344 kDmaRequestMux0UART0Rx = 2|0x100U, /**< UART0 Receive. */
345 kDmaRequestMux0UART0Tx = 3|0x100U, /**< UART0 Transmit. */
346 kDmaRequestMux0UART1Rx = 4|0x100U, /**< UART1 Receive. */
347 kDmaRequestMux0UART1Tx = 5|0x100U, /**< UART1 Transmit. */
348 kDmaRequestMux0UART2Rx = 6|0x100U, /**< UART2 Receive. */
349 kDmaRequestMux0UART2Tx = 7|0x100U, /**< UART2 Transmit. */
350 kDmaRequestMux0UART3Rx = 8|0x100U, /**< UART3 Receive. */
351 kDmaRequestMux0UART3Tx = 9|0x100U, /**< UART3 Transmit. */
352 kDmaRequestMux0UART4 = 10|0x100U, /**< UART4 Transmit or Receive. */
353 kDmaRequestMux0Reserved11 = 11|0x100U, /**< Reserved11 */
354 kDmaRequestMux0I2S0Rx = 12|0x100U, /**< I2S0 Receive. */
355 kDmaRequestMux0I2S0Tx = 13|0x100U, /**< I2S0 Transmit. */
356 kDmaRequestMux0SPI0Rx = 14|0x100U, /**< SPI0 Receive. */
357 kDmaRequestMux0SPI0Tx = 15|0x100U, /**< SPI0 Transmit. */
358 kDmaRequestMux0SPI1Rx = 16|0x100U, /**< SPI1 Receive. */
359 kDmaRequestMux0SPI1Tx = 17|0x100U, /**< SPI1 Transmit. */
360 kDmaRequestMux0I2C0I2C3 = 18|0x100U, /**< I2C0 and I2C3. */
361 kDmaRequestMux0I2C0 = 18|0x100U, /**< I2C0 and I2C3. */
362 kDmaRequestMux0I2C3 = 18|0x100U, /**< I2C0 and I2C3. */
363 kDmaRequestMux0I2C1I2C2 = 19|0x100U, /**< I2C1 and I2C2. */
364 kDmaRequestMux0I2C1 = 19|0x100U, /**< I2C1 and I2C2. */
365 kDmaRequestMux0I2C2 = 19|0x100U, /**< I2C1 and I2C2. */
366 kDmaRequestMux0FTM0Channel0 = 20|0x100U, /**< FTM0 C0V. */
367 kDmaRequestMux0FTM0Channel1 = 21|0x100U, /**< FTM0 C1V. */
368 kDmaRequestMux0FTM0Channel2 = 22|0x100U, /**< FTM0 C2V. */
369 kDmaRequestMux0FTM0Channel3 = 23|0x100U, /**< FTM0 C3V. */
370 kDmaRequestMux0FTM0Channel4 = 24|0x100U, /**< FTM0 C4V. */
371 kDmaRequestMux0FTM0Channel5 = 25|0x100U, /**< FTM0 C5V. */
372 kDmaRequestMux0FTM0Channel6 = 26|0x100U, /**< FTM0 C6V. */
373 kDmaRequestMux0FTM0Channel7 = 27|0x100U, /**< FTM0 C7V. */
374 kDmaRequestMux0FTM1TPM1Channel0 = 28|0x100U, /**< FTM1 C0V and TPM1 C0V. */
375 kDmaRequestMux0FTM1Channel0 = 28|0x100U, /**< FTM1 C0V and TPM1 C0V. */
376 kDmaRequestMux0TPM1Channel0 = 28|0x100U, /**< FTM1 C0V and TPM1 C0V. */
377 kDmaRequestMux0FTM1TPM1Channel1 = 29|0x100U, /**< FTM1 C1V and TPM1 C1V. */
378 kDmaRequestMux0FTM1Channel1 = 29|0x100U, /**< FTM1 C1V and TPM1 C1V. */
379 kDmaRequestMux0TPM1Channel1 = 29|0x100U, /**< FTM1 C1V and TPM1 C1V. */
380 kDmaRequestMux0FTM2TPM2Channel0 = 30|0x100U, /**< FTM2 C0V and TPM2 C0V. */
381 kDmaRequestMux0FTM2Channel0 = 30|0x100U, /**< FTM2 C0V and TPM2 C0V. */
382 kDmaRequestMux0TPM2Channel0 = 30|0x100U, /**< FTM2 C0V and TPM2 C0V. */
383 kDmaRequestMux0FTM2TPM2Channel1 = 31|0x100U, /**< FTM2 C1V and TPM2 C1V. */
384 kDmaRequestMux0FTM2Channel1 = 31|0x100U, /**< FTM2 C1V and TPM2 C1V. */
385 kDmaRequestMux0TPM2Channel1 = 31|0x100U, /**< FTM2 C1V and TPM2 C1V. */
386 kDmaRequestMux0FTM3Channel0 = 32|0x100U, /**< FTM3 C0V. */
387 kDmaRequestMux0FTM3Channel1 = 33|0x100U, /**< FTM3 C1V. */
388 kDmaRequestMux0FTM3Channel2 = 34|0x100U, /**< FTM3 C2V. */
389 kDmaRequestMux0FTM3Channel3 = 35|0x100U, /**< FTM3 C3V. */
390 kDmaRequestMux0FTM3Channel4 = 36|0x100U, /**< FTM3 C4V. */
391 kDmaRequestMux0FTM3Channel5 = 37|0x100U, /**< FTM3 C5V. */
392 kDmaRequestMux0FTM3Channel6SPI2Rx = 38|0x100U, /**< FTM3 C6V and SPI2 Receive. */
393 kDmaRequestMux0FTM3Channel6 = 38|0x100U, /**< FTM3 C6V and SPI2 Receive. */
394 kDmaRequestMux0SPI2Rx = 38|0x100U, /**< FTM3 C6V and SPI2 Receive. */
395 kDmaRequestMux0FTM3Channel7SPI2Tx = 39|0x100U, /**< FTM3 C7V and SPI2 Transmit. */
396 kDmaRequestMux0FTM3Channel7 = 39|0x100U, /**< FTM3 C7V and SPI2 Transmit. */
397 kDmaRequestMux0SPI2Tx = 39|0x100U, /**< FTM3 C7V and SPI2 Transmit. */
398 kDmaRequestMux0ADC0 = 40|0x100U, /**< ADC0. */
399 kDmaRequestMux0ADC1 = 41|0x100U, /**< ADC1. */
400 kDmaRequestMux0CMP0 = 42|0x100U, /**< CMP0. */
401 kDmaRequestMux0CMP1 = 43|0x100U, /**< CMP1. */
402 kDmaRequestMux0CMP2CMP3 = 44|0x100U, /**< CMP2 and CMP3. */
403 kDmaRequestMux0CMP2 = 44|0x100U, /**< CMP2 and CMP3. */
404 kDmaRequestMux0CMP3 = 44|0x100U, /**< CMP2 and CMP3. */
405 kDmaRequestMux0DAC0 = 45|0x100U, /**< DAC0. */
406 kDmaRequestMux0DAC1 = 46|0x100U, /**< DAC1. */
407 kDmaRequestMux0CMT = 47|0x100U, /**< CMT. */
408 kDmaRequestMux0PDB = 48|0x100U, /**< PDB0. */
409 kDmaRequestMux0PortA = 49|0x100U, /**< PTA. */
410 kDmaRequestMux0PortB = 50|0x100U, /**< PTB. */
411 kDmaRequestMux0PortC = 51|0x100U, /**< PTC. */
412 kDmaRequestMux0PortD = 52|0x100U, /**< PTD. */
413 kDmaRequestMux0PortE = 53|0x100U, /**< PTE. */
414 kDmaRequestMux0IEEE1588Timer0 = 54|0x100U, /**< ENET IEEE 1588 timer 0. */
415 kDmaRequestMux0IEEE1588Timer1TPM1Overflow = 55|0x100U, /**< ENET IEEE 1588 timer 1 and TPM1. */
416 kDmaRequestMux0IEEE1588Timer1 = 55|0x100U, /**< ENET IEEE 1588 timer 1 and TPM1. */
417 kDmaRequestMux0TPM1Overflow = 55|0x100U, /**< ENET IEEE 1588 timer 1 and TPM1. */
418 kDmaRequestMux0IEEE1588Timer2TPM2Overflow = 56|0x100U, /**< ENET IEEE 1588 timer 2 and TPM2. */
419 kDmaRequestMux0IEEE1588Timer2 = 56|0x100U, /**< ENET IEEE 1588 timer 2 and TPM2. */
420 kDmaRequestMux0TPM2Overflow = 56|0x100U, /**< ENET IEEE 1588 timer 2 and TPM2. */
421 kDmaRequestMux0IEEE1588Timer3 = 57|0x100U, /**< ENET IEEE 1588 timer 3. */
422 kDmaRequestMux0LPUART0Rx = 58|0x100U, /**< LPUART0 Receive. */
423 kDmaRequestMux0LPUART0Tx = 59|0x100U, /**< LPUART0 Transmit. */
424 kDmaRequestMux0AlwaysOn60 = 60|0x100U, /**< DMAMUX Always Enabled slot. */
425 kDmaRequestMux0AlwaysOn61 = 61|0x100U, /**< DMAMUX Always Enabled slot. */
426 kDmaRequestMux0AlwaysOn62 = 62|0x100U, /**< DMAMUX Always Enabled slot. */
427 kDmaRequestMux0AlwaysOn63 = 63|0x100U, /**< DMAMUX Always Enabled slot. */
428} dma_request_source_t;
429
430/* @} */
431
432
433/*!
434 * @}
435 */ /* end of group Mapping_Information */
436
437
438/* ----------------------------------------------------------------------------
439 -- Device Peripheral Access Layer
440 ---------------------------------------------------------------------------- */
441
442/*!
443 * @addtogroup Peripheral_access_layer Device Peripheral Access Layer
444 * @{
445 */
446
447
448/*
449** Start of section using anonymous unions
450*/
451
452#if defined(__ARMCC_VERSION)
453 #if (__ARMCC_VERSION >= 6010050)
454 #pragma clang diagnostic push
455 #else
456 #pragma push
457 #pragma anon_unions
458 #endif
459#elif defined(__CWCC__)
460 #pragma push
461 #pragma cpp_extensions on
462#elif defined(__GNUC__)
463 /* anonymous unions are enabled by default */
464#elif defined(__IAR_SYSTEMS_ICC__)
465 #pragma language=extended
466#else
467 #error Not supported compiler type
468#endif
469
470/* ----------------------------------------------------------------------------
471 -- ADC Peripheral Access Layer
472 ---------------------------------------------------------------------------- */
473
474/*!
475 * @addtogroup ADCx_Peripheral_Access_Layer ADC Peripheral Access Layer
476 * @{
477 */
478
479/** ADC - Register Layout Typedef */
480typedef struct {
481 __IO uint32_t SC1A; /**< ADC Status and Control Registers 1, array offset: 0x0, array step: 0x4 */
482 __IO uint32_t SC1B; /**< ADC Status and Control Registers 1, array offset: 0x0, array step: 0x4 */
483 __IO uint32_t CFG1; /**< ADC Configuration Register 1, offset: 0x8 */
484 __IO uint32_t CFG2; /**< ADC Configuration Register 2, offset: 0xC */
485 __I uint32_t RA; /**< ADC Data Result Register, array offset: 0x10, array step: 0x4 */
486 __I uint32_t RB; /**< ADC Data Result Register, array offset: 0x10, array step: 0x4 */
487 __IO uint32_t CV1; /**< Compare Value Registers, offset: 0x18 */
488 __IO uint32_t CV2; /**< Compare Value Registers, offset: 0x1C */
489 __IO uint32_t SC2; /**< Status and Control Register 2, offset: 0x20 */
490 __IO uint32_t SC3; /**< Status and Control Register 3, offset: 0x24 */
491 __IO uint32_t OFS; /**< ADC Offset Correction Register, offset: 0x28 */
492 __IO uint32_t PG; /**< ADC Plus-Side Gain Register, offset: 0x2C */
493 __IO uint32_t MG; /**< ADC Minus-Side Gain Register, offset: 0x30 */
494 __IO uint32_t CLPD; /**< ADC Plus-Side General Calibration Value Register, offset: 0x34 */
495 __IO uint32_t CLPS; /**< ADC Plus-Side General Calibration Value Register, offset: 0x38 */
496 __IO uint32_t CLP4; /**< ADC Plus-Side General Calibration Value Register, offset: 0x3C */
497 __IO uint32_t CLP3; /**< ADC Plus-Side General Calibration Value Register, offset: 0x40 */
498 __IO uint32_t CLP2; /**< ADC Plus-Side General Calibration Value Register, offset: 0x44 */
499 __IO uint32_t CLP1; /**< ADC Plus-Side General Calibration Value Register, offset: 0x48 */
500 __IO uint32_t CLP0; /**< ADC Plus-Side General Calibration Value Register, offset: 0x4C */
501 uint8_t RESERVED_0[4];
502 __IO uint32_t CLMD; /**< ADC Minus-Side General Calibration Value Register, offset: 0x54 */
503 __IO uint32_t CLMS; /**< ADC Minus-Side General Calibration Value Register, offset: 0x58 */
504 __IO uint32_t CLM4; /**< ADC Minus-Side General Calibration Value Register, offset: 0x5C */
505 __IO uint32_t CLM3; /**< ADC Minus-Side General Calibration Value Register, offset: 0x60 */
506 __IO uint32_t CLM2; /**< ADC Minus-Side General Calibration Value Register, offset: 0x64 */
507 __IO uint32_t CLM1; /**< ADC Minus-Side General Calibration Value Register, offset: 0x68 */
508 __IO uint32_t CLM0; /**< ADC Minus-Side General Calibration Value Register, offset: 0x6C */
509} ADC_TypeDef;
510
511/* ----------------------------------------------------------------------------
512 -- ADC Register Masks
513 ---------------------------------------------------------------------------- */
514
515/*!
516 * @addtogroup ADCx_Register_Masks ADC Register Masks
517 * @{
518 */
519
520/*! @name SC1 - ADC Status and Control Registers 1 */
521#define ADCx_SC1n_ADCH_MASK (0x1FU)
522#define ADCx_SC1n_ADCH_SHIFT (0U)
523#define ADCx_SC1n_ADCH(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC1n_ADCH_SHIFT)) & ADCx_SC1n_ADCH_MASK)
524#define ADCx_SC1n_DIFF_MASK (0x20U)
525#define ADCx_SC1n_DIFF_SHIFT (5U)
526#define ADCx_SC1n_DIFF_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC1n_DIFF_SHIFT)) & ADCx_SC1n_DIFF_MASK)
527#define ADCx_SC1n_DIFF ADCx_SC1n_DIFF_MASK
528#define ADCx_SC1n_AIEN_MASK (0x40U)
529#define ADCx_SC1n_AIEN_SHIFT (6U)
530#define ADCx_SC1n_AIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC1n_AIEN_SHIFT)) & ADCx_SC1n_AIEN_MASK)
531#define ADCx_SC1n_AIEN ADCx_SC1n_AIEN_MASK
532#define ADCx_SC1n_COCO_MASK (0x80U)
533#define ADCx_SC1n_COCO_SHIFT (7U)
534#define ADCx_SC1n_COCO_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC1n_COCO_SHIFT)) & ADCx_SC1n_COCO_MASK)
535#define ADCx_SC1n_COCO ADCx_SC1n_COCO_MASK
536
537/* The count of ADCx_SC1n */
538#define ADCx_SC1n_COUNT (2U)
539
540/*! @name CFG1 - ADC Configuration Register 1 */
541#define ADCx_CFG1_ADICLK_MASK (0x3U)
542#define ADCx_CFG1_ADICLK_SHIFT (0U)
543#define ADCx_CFG1_ADICLK(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG1_ADICLK_SHIFT)) & ADCx_CFG1_ADICLK_MASK)
544#define ADCx_CFG1_MODE_MASK (0xCU)
545#define ADCx_CFG1_MODE_SHIFT (2U)
546#define ADCx_CFG1_MODE_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG1_MODE_SHIFT)) & ADCx_CFG1_MODE_MASK)
547#define ADCx_CFG1_MODE ADCx_CFG1_MODE_MASK
548#define ADCx_CFG1_ADLSMP_MASK (0x10U)
549#define ADCx_CFG1_ADLSMP_SHIFT (4U)
550#define ADCx_CFG1_ADLSMP_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG1_ADLSMP_SHIFT)) & ADCx_CFG1_ADLSMP_MASK)
551#define ADCx_CFG1_ADLSMP ADCx_CFG1_ADLSMP_MASK
552#define ADCx_CFG1_ADIV_MASK (0x60U)
553#define ADCx_CFG1_ADIV_SHIFT (5U)
554#define ADCx_CFG1_ADIV(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG1_ADIV_SHIFT)) & ADCx_CFG1_ADIV_MASK)
555#define ADCx_CFG1_ADLPC_MASK (0x80U)
556#define ADCx_CFG1_ADLPC_SHIFT (7U)
557#define ADCx_CFG1_ADLPC_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG1_ADLPC_SHIFT)) & ADCx_CFG1_ADLPC_MASK)
558#define ADCx_CFG1_ADLPC ADCx_CFG1_ADLPC_MASK
559
560/*! @name CFG2 - ADC Configuration Register 2 */
561#define ADCx_CFG2_ADLSTS_MASK (0x3U)
562#define ADCx_CFG2_ADLSTS_SHIFT (0U)
563#define ADCx_CFG2_ADLSTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG2_ADLSTS_SHIFT)) & ADCx_CFG2_ADLSTS_MASK)
564#define ADCx_CFG2_ADLSTS ADCx_CFG2_ADLSTS_MASK
565#define ADCx_CFG2_ADHSC_MASK (0x4U)
566#define ADCx_CFG2_ADHSC_SHIFT (2U)
567#define ADCx_CFG2_ADHSC_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG2_ADHSC_SHIFT)) & ADCx_CFG2_ADHSC_MASK)
568#define ADCx_CFG2_ADHSC ADCx_CFG2_ADHSC_MASK
569#define ADCx_CFG2_ADACKEN_MASK (0x8U)
570#define ADCx_CFG2_ADACKEN_SHIFT (3U)
571#define ADCx_CFG2_ADACKEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG2_ADACKEN_SHIFT)) & ADCx_CFG2_ADACKEN_MASK)
572#define ADCx_CFG2_ADACKEN ADCx_CFG2_ADACKEN_MASK
573#define ADCx_CFG2_MUXSEL_MASK (0x10U)
574#define ADCx_CFG2_MUXSEL_SHIFT (4U)
575#define ADCx_CFG2_MUXSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG2_MUXSEL_SHIFT)) & ADCx_CFG2_MUXSEL_MASK)
576#define ADCx_CFG2_MUXSEL ADCx_CFG2_MUXSEL_MASK
577
578/*! @name R - ADC Data Result Register */
579#define ADCx_R_D_MASK (0xFFFFU)
580#define ADCx_R_D_SHIFT (0U)
581#define ADCx_R_D_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_R_D_SHIFT)) & ADCx_R_D_MASK)
582#define ADCx_R_D ADCx_R_D_MASK
583
584/* The count of ADCx_R */
585#define ADCx_R_COUNT (2U)
586
587/*! @name CV1 - Compare Value Registers */
588#define ADCx_CV1_CV_MASK (0xFFFFU)
589#define ADCx_CV1_CV_SHIFT (0U)
590#define ADCx_CV1_CV_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CV1_CV_SHIFT)) & ADCx_CV1_CV_MASK)
591#define ADCx_CV1_CV ADCx_CV1_CV_MASK
592
593/*! @name CV2 - Compare Value Registers */
594#define ADCx_CV2_CV_MASK (0xFFFFU)
595#define ADCx_CV2_CV_SHIFT (0U)
596#define ADCx_CV2_CV_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CV2_CV_SHIFT)) & ADCx_CV2_CV_MASK)
597#define ADCx_CV2_CV ADCx_CV2_CV_MASK
598
599/*! @name SC2 - Status and Control Register 2 */
600#define ADCx_SC2_REFSEL_MASK (0x3U)
601#define ADCx_SC2_REFSEL_SHIFT (0U)
602#define ADCx_SC2_REFSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC2_REFSEL_SHIFT)) & ADCx_SC2_REFSEL_MASK)
603#define ADCx_SC2_REFSEL ADCx_SC2_REFSEL_MASK
604#define ADCx_SC2_DMAEN_MASK (0x4U)
605#define ADCx_SC2_DMAEN_SHIFT (2U)
606#define ADCx_SC2_DMAEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC2_DMAEN_SHIFT)) & ADCx_SC2_DMAEN_MASK)
607#define ADCx_SC2_DMAEN ADCx_SC2_DMAEN_MASK
608#define ADCx_SC2_ACREN_MASK (0x8U)
609#define ADCx_SC2_ACREN_SHIFT (3U)
610#define ADCx_SC2_ACREN_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC2_ACREN_SHIFT)) & ADCx_SC2_ACREN_MASK)
611#define ADCx_SC2_ACREN ADCx_SC2_ACREN_MASK
612#define ADCx_SC2_ACFGT_MASK (0x10U)
613#define ADCx_SC2_ACFGT_SHIFT (4U)
614#define ADCx_SC2_ACFGT_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC2_ACFGT_SHIFT)) & ADCx_SC2_ACFGT_MASK)
615#define ADCx_SC2_ACFGT ADCx_SC2_ACFGT_MASK
616#define ADCx_SC2_ACFE_MASK (0x20U)
617#define ADCx_SC2_ACFE_SHIFT (5U)
618#define ADCx_SC2_ACFE_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC2_ACFE_SHIFT)) & ADCx_SC2_ACFE_MASK)
619#define ADCx_SC2_ACFE ADCx_SC2_ACFE_MASK
620#define ADCx_SC2_ADTRG_MASK (0x40U)
621#define ADCx_SC2_ADTRG_SHIFT (6U)
622#define ADCx_SC2_ADTRG_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC2_ADTRG_SHIFT)) & ADCx_SC2_ADTRG_MASK)
623#define ADCx_SC2_ADTRG ADCx_SC2_ADTRG_MASK
624#define ADCx_SC2_ADACT_MASK (0x80U)
625#define ADCx_SC2_ADACT_SHIFT (7U)
626#define ADCx_SC2_ADACT_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC2_ADACT_SHIFT)) & ADCx_SC2_ADACT_MASK)
627#define ADCx_SC2_ADACT ADCx_SC2_ADACT_MASK
628
629/*! @name SC3 - Status and Control Register 3 */
630#define ADCx_SC3_AVGS_MASK (0x3U)
631#define ADCx_SC3_AVGS_SHIFT (0U)
632#define ADCx_SC3_AVGS(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC3_AVGS_SHIFT)) & ADCx_SC3_AVGS_MASK)
633#define ADCx_SC3_AVGE_MASK (0x4U)
634#define ADCx_SC3_AVGE_SHIFT (2U)
635#define ADCx_SC3_AVGE_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC3_AVGE_SHIFT)) & ADCx_SC3_AVGE_MASK)
636#define ADCx_SC3_AVGE ADCx_SC3_AVGE_MASK
637#define ADCx_SC3_ADCO_MASK (0x8U)
638#define ADCx_SC3_ADCO_SHIFT (3U)
639#define ADCx_SC3_ADCO_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC3_ADCO_SHIFT)) & ADCx_SC3_ADCO_MASK)
640#define ADCx_SC3_ADCO ADCx_SC3_ADCO_MASK
641#define ADCx_SC3_CALF_MASK (0x40U)
642#define ADCx_SC3_CALF_SHIFT (6U)
643#define ADCx_SC3_CALF_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC3_CALF_SHIFT)) & ADCx_SC3_CALF_MASK)
644#define ADCx_SC3_CALF ADCx_SC3_CALF_MASK
645#define ADCx_SC3_CAL_MASK (0x80U)
646#define ADCx_SC3_CAL_SHIFT (7U)
647#define ADCx_SC3_CAL_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC3_CAL_SHIFT)) & ADCx_SC3_CAL_MASK)
648#define ADCx_SC3_CAL ADCx_SC3_CAL_MASK
649
650/*! @name OFS - ADC Offset Correction Register */
651#define ADCx_OFS_OFS_MASK (0xFFFFU)
652#define ADCx_OFS_OFS_SHIFT (0U)
653#define ADCx_OFS_OFS_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_OFS_OFS_SHIFT)) & ADCx_OFS_OFS_MASK)
654#define ADCx_OFS_OFS ADCx_OFS_OFS_MASK
655
656/*! @name PG - ADC Plus-Side Gain Register */
657#define ADCx_PG_PG_MASK (0xFFFFU)
658#define ADCx_PG_PG_SHIFT (0U)
659#define ADCx_PG_PG_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_PG_PG_SHIFT)) & ADCx_PG_PG_MASK)
660#define ADCx_PG_PG ADCx_PG_PG_MASK
661
662/*! @name MG - ADC Minus-Side Gain Register */
663#define ADCx_MG_MG_MASK (0xFFFFU)
664#define ADCx_MG_MG_SHIFT (0U)
665#define ADCx_MG_MG_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_MG_MG_SHIFT)) & ADCx_MG_MG_MASK)
666#define ADCx_MG_MG ADCx_MG_MG_MASK
667
668/*! @name CLPD - ADC Plus-Side General Calibration Value Register */
669#define ADCx_CLPD_CLPD_MASK (0x3FU)
670#define ADCx_CLPD_CLPD_SHIFT (0U)
671#define ADCx_CLPD_CLPD_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLPD_CLPD_SHIFT)) & ADCx_CLPD_CLPD_MASK)
672#define ADCx_CLPD_CLPD ADCx_CLPD_CLPD_MASK
673
674/*! @name CLPS - ADC Plus-Side General Calibration Value Register */
675#define ADCx_CLPS_CLPS_MASK (0x3FU)
676#define ADCx_CLPS_CLPS_SHIFT (0U)
677#define ADCx_CLPS_CLPS_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLPS_CLPS_SHIFT)) & ADCx_CLPS_CLPS_MASK)
678#define ADCx_CLPS_CLPS ADCx_CLPS_CLPS_MASK
679
680/*! @name CLP4 - ADC Plus-Side General Calibration Value Register */
681#define ADCx_CLP4_CLP4_MASK (0x3FFU)
682#define ADCx_CLP4_CLP4_SHIFT (0U)
683#define ADCx_CLP4_CLP4_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP4_CLP4_SHIFT)) & ADCx_CLP4_CLP4_MASK)
684#define ADCx_CLP4_CLP4 ADCx_CLP4_CLP4_MASK
685
686/*! @name CLP3 - ADC Plus-Side General Calibration Value Register */
687#define ADCx_CLP3_CLP3_MASK (0x1FFU)
688#define ADCx_CLP3_CLP3_SHIFT (0U)
689#define ADCx_CLP3_CLP3_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP3_CLP3_SHIFT)) & ADCx_CLP3_CLP3_MASK)
690#define ADCx_CLP3_CLP3 ADCx_CLP3_CLP3_MASK
691
692/*! @name CLP2 - ADC Plus-Side General Calibration Value Register */
693#define ADCx_CLP2_CLP2_MASK (0xFFU)
694#define ADCx_CLP2_CLP2_SHIFT (0U)
695#define ADCx_CLP2_CLP2_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP2_CLP2_SHIFT)) & ADCx_CLP2_CLP2_MASK)
696#define ADCx_CLP2_CLP2 ADCx_CLP2_CLP2_MASK
697
698/*! @name CLP1 - ADC Plus-Side General Calibration Value Register */
699#define ADCx_CLP1_CLP1_MASK (0x7FU)
700#define ADCx_CLP1_CLP1_SHIFT (0U)
701#define ADCx_CLP1_CLP1_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP1_CLP1_SHIFT)) & ADCx_CLP1_CLP1_MASK)
702#define ADCx_CLP1_CLP1 ADCx_CLP1_CLP1_MASK
703
704/*! @name CLP0 - ADC Plus-Side General Calibration Value Register */
705#define ADCx_CLP0_CLP0_MASK (0x3FU)
706#define ADCx_CLP0_CLP0_SHIFT (0U)
707#define ADCx_CLP0_CLP0_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP0_CLP0_SHIFT)) & ADCx_CLP0_CLP0_MASK)
708#define ADCx_CLP0_CLP0 ADCx_CLP0_CLP0_MASK
709
710/*! @name CLMD - ADC Minus-Side General Calibration Value Register */
711#define ADCx_CLMD_CLMD_MASK (0x3FU)
712#define ADCx_CLMD_CLMD_SHIFT (0U)
713#define ADCx_CLMD_CLMD_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLMD_CLMD_SHIFT)) & ADCx_CLMD_CLMD_MASK)
714#define ADCx_CLMD_CLMD ADCx_CLMD_CLMD_MASK
715
716/*! @name CLMS - ADC Minus-Side General Calibration Value Register */
717#define ADCx_CLMS_CLMS_MASK (0x3FU)
718#define ADCx_CLMS_CLMS_SHIFT (0U)
719#define ADCx_CLMS_CLMS_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLMS_CLMS_SHIFT)) & ADCx_CLMS_CLMS_MASK)
720#define ADCx_CLMS_CLMS ADCx_CLMS_CLMS_MASK
721
722/*! @name CLM4 - ADC Minus-Side General Calibration Value Register */
723#define ADCx_CLM4_CLM4_MASK (0x3FFU)
724#define ADCx_CLM4_CLM4_SHIFT (0U)
725#define ADCx_CLM4_CLM4_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM4_CLM4_SHIFT)) & ADCx_CLM4_CLM4_MASK)
726#define ADCx_CLM4_CLM4 ADCx_CLM4_CLM4_MASK
727
728/*! @name CLM3 - ADC Minus-Side General Calibration Value Register */
729#define ADCx_CLM3_CLM3_MASK (0x1FFU)
730#define ADCx_CLM3_CLM3_SHIFT (0U)
731#define ADCx_CLM3_CLM3_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM3_CLM3_SHIFT)) & ADCx_CLM3_CLM3_MASK)
732#define ADCx_CLM3_CLM3 ADCx_CLM3_CLM3_MASK
733
734/*! @name CLM2 - ADC Minus-Side General Calibration Value Register */
735#define ADCx_CLM2_CLM2_MASK (0xFFU)
736#define ADCx_CLM2_CLM2_SHIFT (0U)
737#define ADCx_CLM2_CLM2_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM2_CLM2_SHIFT)) & ADCx_CLM2_CLM2_MASK)
738#define ADCx_CLM2_CLM2 ADCx_CLM2_CLM2_MASK
739
740/*! @name CLM1 - ADC Minus-Side General Calibration Value Register */
741#define ADCx_CLM1_CLM1_MASK (0x7FU)
742#define ADCx_CLM1_CLM1_SHIFT (0U)
743#define ADCx_CLM1_CLM1_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM1_CLM1_SHIFT)) & ADCx_CLM1_CLM1_MASK)
744#define ADCx_CLM1_CLM1 ADCx_CLM1_CLM1_MASK
745
746/*! @name CLM0 - ADC Minus-Side General Calibration Value Register */
747#define ADCx_CLM0_CLM0_MASK (0x3FU)
748#define ADCx_CLM0_CLM0_SHIFT (0U)
749#define ADCx_CLM0_CLM0_SET(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM0_CLM0_SHIFT)) & ADCx_CLM0_CLM0_MASK)
750#define ADCx_CLM0_CLM0 ADCx_CLM0_CLM0_MASK
751
752
753/*!
754 * @}
755 */ /* end of group ADCx_Register_Masks */
756
757
758/* ADC - Peripheral instance base addresses */
759/** Peripheral ADC0 base address */
760#define ADC0_BASE (0x4003B000u)
761/** Peripheral ADC0 base pointer */
762#define ADC0 ((ADC_TypeDef *)ADC0_BASE)
763/** Peripheral ADC1 base address */
764#define ADC1_BASE (0x400BB000u)
765/** Peripheral ADC1 base pointer */
766#define ADC1 ((ADC_TypeDef *)ADC1_BASE)
767/** Array initializer of ADC peripheral base addresses */
768#define ADCx_BASE_ADDRS { ADC0_BASE, ADC1_BASE }
769/** Array initializer of ADC peripheral base pointers */
770#define ADCx_BASE_PTRS { ADC0, ADC1 }
771/** Interrupt vectors for the ADC peripheral type */
772#define ADCx_IRQS { ADC0_IRQn, ADC1_IRQn }
773
774/*!
775 * @}
776 */ /* end of group ADCx_Peripheral_Access_Layer */
777
778
779/* ----------------------------------------------------------------------------
780 -- AIPS Peripheral Access Layer
781 ---------------------------------------------------------------------------- */
782
783/*!
784 * @addtogroup AIPS_Peripheral_Access_Layer AIPS Peripheral Access Layer
785 * @{
786 */
787
788/** AIPS - Register Layout Typedef */
789typedef struct {
790 __IO uint32_t MPRA; /**< Master Privilege Register A, offset: 0x0 */
791 uint8_t RESERVED_0[28];
792 __IO uint32_t PACRA; /**< Peripheral Access Control Register, offset: 0x20 */
793 __IO uint32_t PACRB; /**< Peripheral Access Control Register, offset: 0x24 */
794 __IO uint32_t PACRC; /**< Peripheral Access Control Register, offset: 0x28 */
795 __IO uint32_t PACRD; /**< Peripheral Access Control Register, offset: 0x2C */
796 uint8_t RESERVED_1[16];
797 __IO uint32_t PACRE; /**< Peripheral Access Control Register, offset: 0x40 */
798 __IO uint32_t PACRF; /**< Peripheral Access Control Register, offset: 0x44 */
799 __IO uint32_t PACRG; /**< Peripheral Access Control Register, offset: 0x48 */
800 __IO uint32_t PACRH; /**< Peripheral Access Control Register, offset: 0x4C */
801 __IO uint32_t PACRI; /**< Peripheral Access Control Register, offset: 0x50 */
802 __IO uint32_t PACRJ; /**< Peripheral Access Control Register, offset: 0x54 */
803 __IO uint32_t PACRK; /**< Peripheral Access Control Register, offset: 0x58 */
804 __IO uint32_t PACRL; /**< Peripheral Access Control Register, offset: 0x5C */
805 __IO uint32_t PACRM; /**< Peripheral Access Control Register, offset: 0x60 */
806 __IO uint32_t PACRN; /**< Peripheral Access Control Register, offset: 0x64 */
807 __IO uint32_t PACRO; /**< Peripheral Access Control Register, offset: 0x68 */
808 __IO uint32_t PACRP; /**< Peripheral Access Control Register, offset: 0x6C */
809} AIPS_TypeDef;
810
811/* ----------------------------------------------------------------------------
812 -- AIPS Register Masks
813 ---------------------------------------------------------------------------- */
814
815/*!
816 * @addtogroup AIPS_Register_Masks AIPS Register Masks
817 * @{
818 */
819
820/*! @name MPRA - Master Privilege Register A */
821#define AIPS_MPRA_MPL6_MASK (0x10U)
822#define AIPS_MPRA_MPL6_SHIFT (4U)
823#define AIPS_MPRA_MPL6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MPL6_SHIFT)) & AIPS_MPRA_MPL6_MASK)
824#define AIPS_MPRA_MPL6 AIPS_MPRA_MPL6_MASK
825#define AIPS_MPRA_MTW6_MASK (0x20U)
826#define AIPS_MPRA_MTW6_SHIFT (5U)
827#define AIPS_MPRA_MTW6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTW6_SHIFT)) & AIPS_MPRA_MTW6_MASK)
828#define AIPS_MPRA_MTW6 AIPS_MPRA_MTW6_MASK
829#define AIPS_MPRA_MTR6_MASK (0x40U)
830#define AIPS_MPRA_MTR6_SHIFT (6U)
831#define AIPS_MPRA_MTR6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTR6_SHIFT)) & AIPS_MPRA_MTR6_MASK)
832#define AIPS_MPRA_MTR6 AIPS_MPRA_MTR6_MASK
833#define AIPS_MPRA_MPL5_MASK (0x100U)
834#define AIPS_MPRA_MPL5_SHIFT (8U)
835#define AIPS_MPRA_MPL5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MPL5_SHIFT)) & AIPS_MPRA_MPL5_MASK)
836#define AIPS_MPRA_MPL5 AIPS_MPRA_MPL5_MASK
837#define AIPS_MPRA_MTW5_MASK (0x200U)
838#define AIPS_MPRA_MTW5_SHIFT (9U)
839#define AIPS_MPRA_MTW5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTW5_SHIFT)) & AIPS_MPRA_MTW5_MASK)
840#define AIPS_MPRA_MTW5 AIPS_MPRA_MTW5_MASK
841#define AIPS_MPRA_MTR5_MASK (0x400U)
842#define AIPS_MPRA_MTR5_SHIFT (10U)
843#define AIPS_MPRA_MTR5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTR5_SHIFT)) & AIPS_MPRA_MTR5_MASK)
844#define AIPS_MPRA_MTR5 AIPS_MPRA_MTR5_MASK
845#define AIPS_MPRA_MPL4_MASK (0x1000U)
846#define AIPS_MPRA_MPL4_SHIFT (12U)
847#define AIPS_MPRA_MPL4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MPL4_SHIFT)) & AIPS_MPRA_MPL4_MASK)
848#define AIPS_MPRA_MPL4 AIPS_MPRA_MPL4_MASK
849#define AIPS_MPRA_MTW4_MASK (0x2000U)
850#define AIPS_MPRA_MTW4_SHIFT (13U)
851#define AIPS_MPRA_MTW4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTW4_SHIFT)) & AIPS_MPRA_MTW4_MASK)
852#define AIPS_MPRA_MTW4 AIPS_MPRA_MTW4_MASK
853#define AIPS_MPRA_MTR4_MASK (0x4000U)
854#define AIPS_MPRA_MTR4_SHIFT (14U)
855#define AIPS_MPRA_MTR4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTR4_SHIFT)) & AIPS_MPRA_MTR4_MASK)
856#define AIPS_MPRA_MTR4 AIPS_MPRA_MTR4_MASK
857#define AIPS_MPRA_MPL3_MASK (0x10000U)
858#define AIPS_MPRA_MPL3_SHIFT (16U)
859#define AIPS_MPRA_MPL3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MPL3_SHIFT)) & AIPS_MPRA_MPL3_MASK)
860#define AIPS_MPRA_MPL3 AIPS_MPRA_MPL3_MASK
861#define AIPS_MPRA_MTW3_MASK (0x20000U)
862#define AIPS_MPRA_MTW3_SHIFT (17U)
863#define AIPS_MPRA_MTW3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTW3_SHIFT)) & AIPS_MPRA_MTW3_MASK)
864#define AIPS_MPRA_MTW3 AIPS_MPRA_MTW3_MASK
865#define AIPS_MPRA_MTR3_MASK (0x40000U)
866#define AIPS_MPRA_MTR3_SHIFT (18U)
867#define AIPS_MPRA_MTR3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTR3_SHIFT)) & AIPS_MPRA_MTR3_MASK)
868#define AIPS_MPRA_MTR3 AIPS_MPRA_MTR3_MASK
869#define AIPS_MPRA_MPL2_MASK (0x100000U)
870#define AIPS_MPRA_MPL2_SHIFT (20U)
871#define AIPS_MPRA_MPL2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MPL2_SHIFT)) & AIPS_MPRA_MPL2_MASK)
872#define AIPS_MPRA_MPL2 AIPS_MPRA_MPL2_MASK
873#define AIPS_MPRA_MTW2_MASK (0x200000U)
874#define AIPS_MPRA_MTW2_SHIFT (21U)
875#define AIPS_MPRA_MTW2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTW2_SHIFT)) & AIPS_MPRA_MTW2_MASK)
876#define AIPS_MPRA_MTW2 AIPS_MPRA_MTW2_MASK
877#define AIPS_MPRA_MTR2_MASK (0x400000U)
878#define AIPS_MPRA_MTR2_SHIFT (22U)
879#define AIPS_MPRA_MTR2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTR2_SHIFT)) & AIPS_MPRA_MTR2_MASK)
880#define AIPS_MPRA_MTR2 AIPS_MPRA_MTR2_MASK
881#define AIPS_MPRA_MPL1_MASK (0x1000000U)
882#define AIPS_MPRA_MPL1_SHIFT (24U)
883#define AIPS_MPRA_MPL1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MPL1_SHIFT)) & AIPS_MPRA_MPL1_MASK)
884#define AIPS_MPRA_MPL1 AIPS_MPRA_MPL1_MASK
885#define AIPS_MPRA_MTW1_MASK (0x2000000U)
886#define AIPS_MPRA_MTW1_SHIFT (25U)
887#define AIPS_MPRA_MTW1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTW1_SHIFT)) & AIPS_MPRA_MTW1_MASK)
888#define AIPS_MPRA_MTW1 AIPS_MPRA_MTW1_MASK
889#define AIPS_MPRA_MTR1_MASK (0x4000000U)
890#define AIPS_MPRA_MTR1_SHIFT (26U)
891#define AIPS_MPRA_MTR1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTR1_SHIFT)) & AIPS_MPRA_MTR1_MASK)
892#define AIPS_MPRA_MTR1 AIPS_MPRA_MTR1_MASK
893#define AIPS_MPRA_MPL0_MASK (0x10000000U)
894#define AIPS_MPRA_MPL0_SHIFT (28U)
895#define AIPS_MPRA_MPL0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MPL0_SHIFT)) & AIPS_MPRA_MPL0_MASK)
896#define AIPS_MPRA_MPL0 AIPS_MPRA_MPL0_MASK
897#define AIPS_MPRA_MTW0_MASK (0x20000000U)
898#define AIPS_MPRA_MTW0_SHIFT (29U)
899#define AIPS_MPRA_MTW0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTW0_SHIFT)) & AIPS_MPRA_MTW0_MASK)
900#define AIPS_MPRA_MTW0 AIPS_MPRA_MTW0_MASK
901#define AIPS_MPRA_MTR0_MASK (0x40000000U)
902#define AIPS_MPRA_MTR0_SHIFT (30U)
903#define AIPS_MPRA_MTR0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_MPRA_MTR0_SHIFT)) & AIPS_MPRA_MTR0_MASK)
904#define AIPS_MPRA_MTR0 AIPS_MPRA_MTR0_MASK
905
906/*! @name PACRA - Peripheral Access Control Register */
907#define AIPS_PACRA_TP7_MASK (0x1U)
908#define AIPS_PACRA_TP7_SHIFT (0U)
909#define AIPS_PACRA_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_TP7_SHIFT)) & AIPS_PACRA_TP7_MASK)
910#define AIPS_PACRA_TP7 AIPS_PACRA_TP7_MASK
911#define AIPS_PACRA_WP7_MASK (0x2U)
912#define AIPS_PACRA_WP7_SHIFT (1U)
913#define AIPS_PACRA_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_WP7_SHIFT)) & AIPS_PACRA_WP7_MASK)
914#define AIPS_PACRA_WP7 AIPS_PACRA_WP7_MASK
915#define AIPS_PACRA_SP7_MASK (0x4U)
916#define AIPS_PACRA_SP7_SHIFT (2U)
917#define AIPS_PACRA_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_SP7_SHIFT)) & AIPS_PACRA_SP7_MASK)
918#define AIPS_PACRA_SP7 AIPS_PACRA_SP7_MASK
919#define AIPS_PACRA_TP6_MASK (0x10U)
920#define AIPS_PACRA_TP6_SHIFT (4U)
921#define AIPS_PACRA_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_TP6_SHIFT)) & AIPS_PACRA_TP6_MASK)
922#define AIPS_PACRA_TP6 AIPS_PACRA_TP6_MASK
923#define AIPS_PACRA_WP6_MASK (0x20U)
924#define AIPS_PACRA_WP6_SHIFT (5U)
925#define AIPS_PACRA_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_WP6_SHIFT)) & AIPS_PACRA_WP6_MASK)
926#define AIPS_PACRA_WP6 AIPS_PACRA_WP6_MASK
927#define AIPS_PACRA_SP6_MASK (0x40U)
928#define AIPS_PACRA_SP6_SHIFT (6U)
929#define AIPS_PACRA_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_SP6_SHIFT)) & AIPS_PACRA_SP6_MASK)
930#define AIPS_PACRA_SP6 AIPS_PACRA_SP6_MASK
931#define AIPS_PACRA_TP5_MASK (0x100U)
932#define AIPS_PACRA_TP5_SHIFT (8U)
933#define AIPS_PACRA_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_TP5_SHIFT)) & AIPS_PACRA_TP5_MASK)
934#define AIPS_PACRA_TP5 AIPS_PACRA_TP5_MASK
935#define AIPS_PACRA_WP5_MASK (0x200U)
936#define AIPS_PACRA_WP5_SHIFT (9U)
937#define AIPS_PACRA_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_WP5_SHIFT)) & AIPS_PACRA_WP5_MASK)
938#define AIPS_PACRA_WP5 AIPS_PACRA_WP5_MASK
939#define AIPS_PACRA_SP5_MASK (0x400U)
940#define AIPS_PACRA_SP5_SHIFT (10U)
941#define AIPS_PACRA_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_SP5_SHIFT)) & AIPS_PACRA_SP5_MASK)
942#define AIPS_PACRA_SP5 AIPS_PACRA_SP5_MASK
943#define AIPS_PACRA_TP4_MASK (0x1000U)
944#define AIPS_PACRA_TP4_SHIFT (12U)
945#define AIPS_PACRA_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_TP4_SHIFT)) & AIPS_PACRA_TP4_MASK)
946#define AIPS_PACRA_TP4 AIPS_PACRA_TP4_MASK
947#define AIPS_PACRA_WP4_MASK (0x2000U)
948#define AIPS_PACRA_WP4_SHIFT (13U)
949#define AIPS_PACRA_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_WP4_SHIFT)) & AIPS_PACRA_WP4_MASK)
950#define AIPS_PACRA_WP4 AIPS_PACRA_WP4_MASK
951#define AIPS_PACRA_SP4_MASK (0x4000U)
952#define AIPS_PACRA_SP4_SHIFT (14U)
953#define AIPS_PACRA_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_SP4_SHIFT)) & AIPS_PACRA_SP4_MASK)
954#define AIPS_PACRA_SP4 AIPS_PACRA_SP4_MASK
955#define AIPS_PACRA_TP3_MASK (0x10000U)
956#define AIPS_PACRA_TP3_SHIFT (16U)
957#define AIPS_PACRA_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_TP3_SHIFT)) & AIPS_PACRA_TP3_MASK)
958#define AIPS_PACRA_TP3 AIPS_PACRA_TP3_MASK
959#define AIPS_PACRA_WP3_MASK (0x20000U)
960#define AIPS_PACRA_WP3_SHIFT (17U)
961#define AIPS_PACRA_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_WP3_SHIFT)) & AIPS_PACRA_WP3_MASK)
962#define AIPS_PACRA_WP3 AIPS_PACRA_WP3_MASK
963#define AIPS_PACRA_SP3_MASK (0x40000U)
964#define AIPS_PACRA_SP3_SHIFT (18U)
965#define AIPS_PACRA_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_SP3_SHIFT)) & AIPS_PACRA_SP3_MASK)
966#define AIPS_PACRA_SP3 AIPS_PACRA_SP3_MASK
967#define AIPS_PACRA_TP2_MASK (0x100000U)
968#define AIPS_PACRA_TP2_SHIFT (20U)
969#define AIPS_PACRA_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_TP2_SHIFT)) & AIPS_PACRA_TP2_MASK)
970#define AIPS_PACRA_TP2 AIPS_PACRA_TP2_MASK
971#define AIPS_PACRA_WP2_MASK (0x200000U)
972#define AIPS_PACRA_WP2_SHIFT (21U)
973#define AIPS_PACRA_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_WP2_SHIFT)) & AIPS_PACRA_WP2_MASK)
974#define AIPS_PACRA_WP2 AIPS_PACRA_WP2_MASK
975#define AIPS_PACRA_SP2_MASK (0x400000U)
976#define AIPS_PACRA_SP2_SHIFT (22U)
977#define AIPS_PACRA_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_SP2_SHIFT)) & AIPS_PACRA_SP2_MASK)
978#define AIPS_PACRA_SP2 AIPS_PACRA_SP2_MASK
979#define AIPS_PACRA_TP1_MASK (0x1000000U)
980#define AIPS_PACRA_TP1_SHIFT (24U)
981#define AIPS_PACRA_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_TP1_SHIFT)) & AIPS_PACRA_TP1_MASK)
982#define AIPS_PACRA_TP1 AIPS_PACRA_TP1_MASK
983#define AIPS_PACRA_WP1_MASK (0x2000000U)
984#define AIPS_PACRA_WP1_SHIFT (25U)
985#define AIPS_PACRA_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_WP1_SHIFT)) & AIPS_PACRA_WP1_MASK)
986#define AIPS_PACRA_WP1 AIPS_PACRA_WP1_MASK
987#define AIPS_PACRA_SP1_MASK (0x4000000U)
988#define AIPS_PACRA_SP1_SHIFT (26U)
989#define AIPS_PACRA_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_SP1_SHIFT)) & AIPS_PACRA_SP1_MASK)
990#define AIPS_PACRA_SP1 AIPS_PACRA_SP1_MASK
991#define AIPS_PACRA_TP0_MASK (0x10000000U)
992#define AIPS_PACRA_TP0_SHIFT (28U)
993#define AIPS_PACRA_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_TP0_SHIFT)) & AIPS_PACRA_TP0_MASK)
994#define AIPS_PACRA_TP0 AIPS_PACRA_TP0_MASK
995#define AIPS_PACRA_WP0_MASK (0x20000000U)
996#define AIPS_PACRA_WP0_SHIFT (29U)
997#define AIPS_PACRA_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_WP0_SHIFT)) & AIPS_PACRA_WP0_MASK)
998#define AIPS_PACRA_WP0 AIPS_PACRA_WP0_MASK
999#define AIPS_PACRA_SP0_MASK (0x40000000U)
1000#define AIPS_PACRA_SP0_SHIFT (30U)
1001#define AIPS_PACRA_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_SP0_SHIFT)) & AIPS_PACRA_SP0_MASK)
1002#define AIPS_PACRA_SP0 AIPS_PACRA_SP0_MASK
1003
1004/*! @name PACRB - Peripheral Access Control Register */
1005#define AIPS_PACRB_TP7_MASK (0x1U)
1006#define AIPS_PACRB_TP7_SHIFT (0U)
1007#define AIPS_PACRB_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_TP7_SHIFT)) & AIPS_PACRB_TP7_MASK)
1008#define AIPS_PACRB_TP7 AIPS_PACRB_TP7_MASK
1009#define AIPS_PACRB_WP7_MASK (0x2U)
1010#define AIPS_PACRB_WP7_SHIFT (1U)
1011#define AIPS_PACRB_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_WP7_SHIFT)) & AIPS_PACRB_WP7_MASK)
1012#define AIPS_PACRB_WP7 AIPS_PACRB_WP7_MASK
1013#define AIPS_PACRB_SP7_MASK (0x4U)
1014#define AIPS_PACRB_SP7_SHIFT (2U)
1015#define AIPS_PACRB_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_SP7_SHIFT)) & AIPS_PACRB_SP7_MASK)
1016#define AIPS_PACRB_SP7 AIPS_PACRB_SP7_MASK
1017#define AIPS_PACRB_TP6_MASK (0x10U)
1018#define AIPS_PACRB_TP6_SHIFT (4U)
1019#define AIPS_PACRB_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_TP6_SHIFT)) & AIPS_PACRB_TP6_MASK)
1020#define AIPS_PACRB_TP6 AIPS_PACRB_TP6_MASK
1021#define AIPS_PACRB_WP6_MASK (0x20U)
1022#define AIPS_PACRB_WP6_SHIFT (5U)
1023#define AIPS_PACRB_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_WP6_SHIFT)) & AIPS_PACRB_WP6_MASK)
1024#define AIPS_PACRB_WP6 AIPS_PACRB_WP6_MASK
1025#define AIPS_PACRB_SP6_MASK (0x40U)
1026#define AIPS_PACRB_SP6_SHIFT (6U)
1027#define AIPS_PACRB_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_SP6_SHIFT)) & AIPS_PACRB_SP6_MASK)
1028#define AIPS_PACRB_SP6 AIPS_PACRB_SP6_MASK
1029#define AIPS_PACRB_TP5_MASK (0x100U)
1030#define AIPS_PACRB_TP5_SHIFT (8U)
1031#define AIPS_PACRB_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_TP5_SHIFT)) & AIPS_PACRB_TP5_MASK)
1032#define AIPS_PACRB_TP5 AIPS_PACRB_TP5_MASK
1033#define AIPS_PACRB_WP5_MASK (0x200U)
1034#define AIPS_PACRB_WP5_SHIFT (9U)
1035#define AIPS_PACRB_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_WP5_SHIFT)) & AIPS_PACRB_WP5_MASK)
1036#define AIPS_PACRB_WP5 AIPS_PACRB_WP5_MASK
1037#define AIPS_PACRB_SP5_MASK (0x400U)
1038#define AIPS_PACRB_SP5_SHIFT (10U)
1039#define AIPS_PACRB_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_SP5_SHIFT)) & AIPS_PACRB_SP5_MASK)
1040#define AIPS_PACRB_SP5 AIPS_PACRB_SP5_MASK
1041#define AIPS_PACRB_TP4_MASK (0x1000U)
1042#define AIPS_PACRB_TP4_SHIFT (12U)
1043#define AIPS_PACRB_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_TP4_SHIFT)) & AIPS_PACRB_TP4_MASK)
1044#define AIPS_PACRB_TP4 AIPS_PACRB_TP4_MASK
1045#define AIPS_PACRB_WP4_MASK (0x2000U)
1046#define AIPS_PACRB_WP4_SHIFT (13U)
1047#define AIPS_PACRB_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_WP4_SHIFT)) & AIPS_PACRB_WP4_MASK)
1048#define AIPS_PACRB_WP4 AIPS_PACRB_WP4_MASK
1049#define AIPS_PACRB_SP4_MASK (0x4000U)
1050#define AIPS_PACRB_SP4_SHIFT (14U)
1051#define AIPS_PACRB_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_SP4_SHIFT)) & AIPS_PACRB_SP4_MASK)
1052#define AIPS_PACRB_SP4 AIPS_PACRB_SP4_MASK
1053#define AIPS_PACRB_TP3_MASK (0x10000U)
1054#define AIPS_PACRB_TP3_SHIFT (16U)
1055#define AIPS_PACRB_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_TP3_SHIFT)) & AIPS_PACRB_TP3_MASK)
1056#define AIPS_PACRB_TP3 AIPS_PACRB_TP3_MASK
1057#define AIPS_PACRB_WP3_MASK (0x20000U)
1058#define AIPS_PACRB_WP3_SHIFT (17U)
1059#define AIPS_PACRB_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_WP3_SHIFT)) & AIPS_PACRB_WP3_MASK)
1060#define AIPS_PACRB_WP3 AIPS_PACRB_WP3_MASK
1061#define AIPS_PACRB_SP3_MASK (0x40000U)
1062#define AIPS_PACRB_SP3_SHIFT (18U)
1063#define AIPS_PACRB_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_SP3_SHIFT)) & AIPS_PACRB_SP3_MASK)
1064#define AIPS_PACRB_SP3 AIPS_PACRB_SP3_MASK
1065#define AIPS_PACRB_TP2_MASK (0x100000U)
1066#define AIPS_PACRB_TP2_SHIFT (20U)
1067#define AIPS_PACRB_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_TP2_SHIFT)) & AIPS_PACRB_TP2_MASK)
1068#define AIPS_PACRB_TP2 AIPS_PACRB_TP2_MASK
1069#define AIPS_PACRB_WP2_MASK (0x200000U)
1070#define AIPS_PACRB_WP2_SHIFT (21U)
1071#define AIPS_PACRB_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_WP2_SHIFT)) & AIPS_PACRB_WP2_MASK)
1072#define AIPS_PACRB_WP2 AIPS_PACRB_WP2_MASK
1073#define AIPS_PACRB_SP2_MASK (0x400000U)
1074#define AIPS_PACRB_SP2_SHIFT (22U)
1075#define AIPS_PACRB_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_SP2_SHIFT)) & AIPS_PACRB_SP2_MASK)
1076#define AIPS_PACRB_SP2 AIPS_PACRB_SP2_MASK
1077#define AIPS_PACRB_TP1_MASK (0x1000000U)
1078#define AIPS_PACRB_TP1_SHIFT (24U)
1079#define AIPS_PACRB_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_TP1_SHIFT)) & AIPS_PACRB_TP1_MASK)
1080#define AIPS_PACRB_TP1 AIPS_PACRB_TP1_MASK
1081#define AIPS_PACRB_WP1_MASK (0x2000000U)
1082#define AIPS_PACRB_WP1_SHIFT (25U)
1083#define AIPS_PACRB_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_WP1_SHIFT)) & AIPS_PACRB_WP1_MASK)
1084#define AIPS_PACRB_WP1 AIPS_PACRB_WP1_MASK
1085#define AIPS_PACRB_SP1_MASK (0x4000000U)
1086#define AIPS_PACRB_SP1_SHIFT (26U)
1087#define AIPS_PACRB_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_SP1_SHIFT)) & AIPS_PACRB_SP1_MASK)
1088#define AIPS_PACRB_SP1 AIPS_PACRB_SP1_MASK
1089#define AIPS_PACRB_TP0_MASK (0x10000000U)
1090#define AIPS_PACRB_TP0_SHIFT (28U)
1091#define AIPS_PACRB_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_TP0_SHIFT)) & AIPS_PACRB_TP0_MASK)
1092#define AIPS_PACRB_TP0 AIPS_PACRB_TP0_MASK
1093#define AIPS_PACRB_WP0_MASK (0x20000000U)
1094#define AIPS_PACRB_WP0_SHIFT (29U)
1095#define AIPS_PACRB_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_WP0_SHIFT)) & AIPS_PACRB_WP0_MASK)
1096#define AIPS_PACRB_WP0 AIPS_PACRB_WP0_MASK
1097#define AIPS_PACRB_SP0_MASK (0x40000000U)
1098#define AIPS_PACRB_SP0_SHIFT (30U)
1099#define AIPS_PACRB_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_SP0_SHIFT)) & AIPS_PACRB_SP0_MASK)
1100#define AIPS_PACRB_SP0 AIPS_PACRB_SP0_MASK
1101
1102/*! @name PACRC - Peripheral Access Control Register */
1103#define AIPS_PACRC_TP7_MASK (0x1U)
1104#define AIPS_PACRC_TP7_SHIFT (0U)
1105#define AIPS_PACRC_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_TP7_SHIFT)) & AIPS_PACRC_TP7_MASK)
1106#define AIPS_PACRC_TP7 AIPS_PACRC_TP7_MASK
1107#define AIPS_PACRC_WP7_MASK (0x2U)
1108#define AIPS_PACRC_WP7_SHIFT (1U)
1109#define AIPS_PACRC_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_WP7_SHIFT)) & AIPS_PACRC_WP7_MASK)
1110#define AIPS_PACRC_WP7 AIPS_PACRC_WP7_MASK
1111#define AIPS_PACRC_SP7_MASK (0x4U)
1112#define AIPS_PACRC_SP7_SHIFT (2U)
1113#define AIPS_PACRC_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_SP7_SHIFT)) & AIPS_PACRC_SP7_MASK)
1114#define AIPS_PACRC_SP7 AIPS_PACRC_SP7_MASK
1115#define AIPS_PACRC_TP6_MASK (0x10U)
1116#define AIPS_PACRC_TP6_SHIFT (4U)
1117#define AIPS_PACRC_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_TP6_SHIFT)) & AIPS_PACRC_TP6_MASK)
1118#define AIPS_PACRC_TP6 AIPS_PACRC_TP6_MASK
1119#define AIPS_PACRC_WP6_MASK (0x20U)
1120#define AIPS_PACRC_WP6_SHIFT (5U)
1121#define AIPS_PACRC_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_WP6_SHIFT)) & AIPS_PACRC_WP6_MASK)
1122#define AIPS_PACRC_WP6 AIPS_PACRC_WP6_MASK
1123#define AIPS_PACRC_SP6_MASK (0x40U)
1124#define AIPS_PACRC_SP6_SHIFT (6U)
1125#define AIPS_PACRC_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_SP6_SHIFT)) & AIPS_PACRC_SP6_MASK)
1126#define AIPS_PACRC_SP6 AIPS_PACRC_SP6_MASK
1127#define AIPS_PACRC_TP5_MASK (0x100U)
1128#define AIPS_PACRC_TP5_SHIFT (8U)
1129#define AIPS_PACRC_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_TP5_SHIFT)) & AIPS_PACRC_TP5_MASK)
1130#define AIPS_PACRC_TP5 AIPS_PACRC_TP5_MASK
1131#define AIPS_PACRC_WP5_MASK (0x200U)
1132#define AIPS_PACRC_WP5_SHIFT (9U)
1133#define AIPS_PACRC_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_WP5_SHIFT)) & AIPS_PACRC_WP5_MASK)
1134#define AIPS_PACRC_WP5 AIPS_PACRC_WP5_MASK
1135#define AIPS_PACRC_SP5_MASK (0x400U)
1136#define AIPS_PACRC_SP5_SHIFT (10U)
1137#define AIPS_PACRC_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_SP5_SHIFT)) & AIPS_PACRC_SP5_MASK)
1138#define AIPS_PACRC_SP5 AIPS_PACRC_SP5_MASK
1139#define AIPS_PACRC_TP4_MASK (0x1000U)
1140#define AIPS_PACRC_TP4_SHIFT (12U)
1141#define AIPS_PACRC_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_TP4_SHIFT)) & AIPS_PACRC_TP4_MASK)
1142#define AIPS_PACRC_TP4 AIPS_PACRC_TP4_MASK
1143#define AIPS_PACRC_WP4_MASK (0x2000U)
1144#define AIPS_PACRC_WP4_SHIFT (13U)
1145#define AIPS_PACRC_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_WP4_SHIFT)) & AIPS_PACRC_WP4_MASK)
1146#define AIPS_PACRC_WP4 AIPS_PACRC_WP4_MASK
1147#define AIPS_PACRC_SP4_MASK (0x4000U)
1148#define AIPS_PACRC_SP4_SHIFT (14U)
1149#define AIPS_PACRC_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_SP4_SHIFT)) & AIPS_PACRC_SP4_MASK)
1150#define AIPS_PACRC_SP4 AIPS_PACRC_SP4_MASK
1151#define AIPS_PACRC_TP3_MASK (0x10000U)
1152#define AIPS_PACRC_TP3_SHIFT (16U)
1153#define AIPS_PACRC_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_TP3_SHIFT)) & AIPS_PACRC_TP3_MASK)
1154#define AIPS_PACRC_TP3 AIPS_PACRC_TP3_MASK
1155#define AIPS_PACRC_WP3_MASK (0x20000U)
1156#define AIPS_PACRC_WP3_SHIFT (17U)
1157#define AIPS_PACRC_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_WP3_SHIFT)) & AIPS_PACRC_WP3_MASK)
1158#define AIPS_PACRC_WP3 AIPS_PACRC_WP3_MASK
1159#define AIPS_PACRC_SP3_MASK (0x40000U)
1160#define AIPS_PACRC_SP3_SHIFT (18U)
1161#define AIPS_PACRC_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_SP3_SHIFT)) & AIPS_PACRC_SP3_MASK)
1162#define AIPS_PACRC_SP3 AIPS_PACRC_SP3_MASK
1163#define AIPS_PACRC_TP2_MASK (0x100000U)
1164#define AIPS_PACRC_TP2_SHIFT (20U)
1165#define AIPS_PACRC_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_TP2_SHIFT)) & AIPS_PACRC_TP2_MASK)
1166#define AIPS_PACRC_TP2 AIPS_PACRC_TP2_MASK
1167#define AIPS_PACRC_WP2_MASK (0x200000U)
1168#define AIPS_PACRC_WP2_SHIFT (21U)
1169#define AIPS_PACRC_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_WP2_SHIFT)) & AIPS_PACRC_WP2_MASK)
1170#define AIPS_PACRC_WP2 AIPS_PACRC_WP2_MASK
1171#define AIPS_PACRC_SP2_MASK (0x400000U)
1172#define AIPS_PACRC_SP2_SHIFT (22U)
1173#define AIPS_PACRC_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_SP2_SHIFT)) & AIPS_PACRC_SP2_MASK)
1174#define AIPS_PACRC_SP2 AIPS_PACRC_SP2_MASK
1175#define AIPS_PACRC_TP1_MASK (0x1000000U)
1176#define AIPS_PACRC_TP1_SHIFT (24U)
1177#define AIPS_PACRC_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_TP1_SHIFT)) & AIPS_PACRC_TP1_MASK)
1178#define AIPS_PACRC_TP1 AIPS_PACRC_TP1_MASK
1179#define AIPS_PACRC_WP1_MASK (0x2000000U)
1180#define AIPS_PACRC_WP1_SHIFT (25U)
1181#define AIPS_PACRC_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_WP1_SHIFT)) & AIPS_PACRC_WP1_MASK)
1182#define AIPS_PACRC_WP1 AIPS_PACRC_WP1_MASK
1183#define AIPS_PACRC_SP1_MASK (0x4000000U)
1184#define AIPS_PACRC_SP1_SHIFT (26U)
1185#define AIPS_PACRC_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_SP1_SHIFT)) & AIPS_PACRC_SP1_MASK)
1186#define AIPS_PACRC_SP1 AIPS_PACRC_SP1_MASK
1187#define AIPS_PACRC_TP0_MASK (0x10000000U)
1188#define AIPS_PACRC_TP0_SHIFT (28U)
1189#define AIPS_PACRC_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_TP0_SHIFT)) & AIPS_PACRC_TP0_MASK)
1190#define AIPS_PACRC_TP0 AIPS_PACRC_TP0_MASK
1191#define AIPS_PACRC_WP0_MASK (0x20000000U)
1192#define AIPS_PACRC_WP0_SHIFT (29U)
1193#define AIPS_PACRC_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_WP0_SHIFT)) & AIPS_PACRC_WP0_MASK)
1194#define AIPS_PACRC_WP0 AIPS_PACRC_WP0_MASK
1195#define AIPS_PACRC_SP0_MASK (0x40000000U)
1196#define AIPS_PACRC_SP0_SHIFT (30U)
1197#define AIPS_PACRC_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRC_SP0_SHIFT)) & AIPS_PACRC_SP0_MASK)
1198#define AIPS_PACRC_SP0 AIPS_PACRC_SP0_MASK
1199
1200/*! @name PACRD - Peripheral Access Control Register */
1201#define AIPS_PACRD_TP7_MASK (0x1U)
1202#define AIPS_PACRD_TP7_SHIFT (0U)
1203#define AIPS_PACRD_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_TP7_SHIFT)) & AIPS_PACRD_TP7_MASK)
1204#define AIPS_PACRD_TP7 AIPS_PACRD_TP7_MASK
1205#define AIPS_PACRD_WP7_MASK (0x2U)
1206#define AIPS_PACRD_WP7_SHIFT (1U)
1207#define AIPS_PACRD_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_WP7_SHIFT)) & AIPS_PACRD_WP7_MASK)
1208#define AIPS_PACRD_WP7 AIPS_PACRD_WP7_MASK
1209#define AIPS_PACRD_SP7_MASK (0x4U)
1210#define AIPS_PACRD_SP7_SHIFT (2U)
1211#define AIPS_PACRD_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_SP7_SHIFT)) & AIPS_PACRD_SP7_MASK)
1212#define AIPS_PACRD_SP7 AIPS_PACRD_SP7_MASK
1213#define AIPS_PACRD_TP6_MASK (0x10U)
1214#define AIPS_PACRD_TP6_SHIFT (4U)
1215#define AIPS_PACRD_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_TP6_SHIFT)) & AIPS_PACRD_TP6_MASK)
1216#define AIPS_PACRD_TP6 AIPS_PACRD_TP6_MASK
1217#define AIPS_PACRD_WP6_MASK (0x20U)
1218#define AIPS_PACRD_WP6_SHIFT (5U)
1219#define AIPS_PACRD_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_WP6_SHIFT)) & AIPS_PACRD_WP6_MASK)
1220#define AIPS_PACRD_WP6 AIPS_PACRD_WP6_MASK
1221#define AIPS_PACRD_SP6_MASK (0x40U)
1222#define AIPS_PACRD_SP6_SHIFT (6U)
1223#define AIPS_PACRD_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_SP6_SHIFT)) & AIPS_PACRD_SP6_MASK)
1224#define AIPS_PACRD_SP6 AIPS_PACRD_SP6_MASK
1225#define AIPS_PACRD_TP5_MASK (0x100U)
1226#define AIPS_PACRD_TP5_SHIFT (8U)
1227#define AIPS_PACRD_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_TP5_SHIFT)) & AIPS_PACRD_TP5_MASK)
1228#define AIPS_PACRD_TP5 AIPS_PACRD_TP5_MASK
1229#define AIPS_PACRD_WP5_MASK (0x200U)
1230#define AIPS_PACRD_WP5_SHIFT (9U)
1231#define AIPS_PACRD_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_WP5_SHIFT)) & AIPS_PACRD_WP5_MASK)
1232#define AIPS_PACRD_WP5 AIPS_PACRD_WP5_MASK
1233#define AIPS_PACRD_SP5_MASK (0x400U)
1234#define AIPS_PACRD_SP5_SHIFT (10U)
1235#define AIPS_PACRD_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_SP5_SHIFT)) & AIPS_PACRD_SP5_MASK)
1236#define AIPS_PACRD_SP5 AIPS_PACRD_SP5_MASK
1237#define AIPS_PACRD_TP4_MASK (0x1000U)
1238#define AIPS_PACRD_TP4_SHIFT (12U)
1239#define AIPS_PACRD_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_TP4_SHIFT)) & AIPS_PACRD_TP4_MASK)
1240#define AIPS_PACRD_TP4 AIPS_PACRD_TP4_MASK
1241#define AIPS_PACRD_WP4_MASK (0x2000U)
1242#define AIPS_PACRD_WP4_SHIFT (13U)
1243#define AIPS_PACRD_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_WP4_SHIFT)) & AIPS_PACRD_WP4_MASK)
1244#define AIPS_PACRD_WP4 AIPS_PACRD_WP4_MASK
1245#define AIPS_PACRD_SP4_MASK (0x4000U)
1246#define AIPS_PACRD_SP4_SHIFT (14U)
1247#define AIPS_PACRD_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_SP4_SHIFT)) & AIPS_PACRD_SP4_MASK)
1248#define AIPS_PACRD_SP4 AIPS_PACRD_SP4_MASK
1249#define AIPS_PACRD_TP3_MASK (0x10000U)
1250#define AIPS_PACRD_TP3_SHIFT (16U)
1251#define AIPS_PACRD_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_TP3_SHIFT)) & AIPS_PACRD_TP3_MASK)
1252#define AIPS_PACRD_TP3 AIPS_PACRD_TP3_MASK
1253#define AIPS_PACRD_WP3_MASK (0x20000U)
1254#define AIPS_PACRD_WP3_SHIFT (17U)
1255#define AIPS_PACRD_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_WP3_SHIFT)) & AIPS_PACRD_WP3_MASK)
1256#define AIPS_PACRD_WP3 AIPS_PACRD_WP3_MASK
1257#define AIPS_PACRD_SP3_MASK (0x40000U)
1258#define AIPS_PACRD_SP3_SHIFT (18U)
1259#define AIPS_PACRD_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_SP3_SHIFT)) & AIPS_PACRD_SP3_MASK)
1260#define AIPS_PACRD_SP3 AIPS_PACRD_SP3_MASK
1261#define AIPS_PACRD_TP2_MASK (0x100000U)
1262#define AIPS_PACRD_TP2_SHIFT (20U)
1263#define AIPS_PACRD_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_TP2_SHIFT)) & AIPS_PACRD_TP2_MASK)
1264#define AIPS_PACRD_TP2 AIPS_PACRD_TP2_MASK
1265#define AIPS_PACRD_WP2_MASK (0x200000U)
1266#define AIPS_PACRD_WP2_SHIFT (21U)
1267#define AIPS_PACRD_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_WP2_SHIFT)) & AIPS_PACRD_WP2_MASK)
1268#define AIPS_PACRD_WP2 AIPS_PACRD_WP2_MASK
1269#define AIPS_PACRD_SP2_MASK (0x400000U)
1270#define AIPS_PACRD_SP2_SHIFT (22U)
1271#define AIPS_PACRD_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_SP2_SHIFT)) & AIPS_PACRD_SP2_MASK)
1272#define AIPS_PACRD_SP2 AIPS_PACRD_SP2_MASK
1273#define AIPS_PACRD_TP1_MASK (0x1000000U)
1274#define AIPS_PACRD_TP1_SHIFT (24U)
1275#define AIPS_PACRD_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_TP1_SHIFT)) & AIPS_PACRD_TP1_MASK)
1276#define AIPS_PACRD_TP1 AIPS_PACRD_TP1_MASK
1277#define AIPS_PACRD_WP1_MASK (0x2000000U)
1278#define AIPS_PACRD_WP1_SHIFT (25U)
1279#define AIPS_PACRD_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_WP1_SHIFT)) & AIPS_PACRD_WP1_MASK)
1280#define AIPS_PACRD_WP1 AIPS_PACRD_WP1_MASK
1281#define AIPS_PACRD_SP1_MASK (0x4000000U)
1282#define AIPS_PACRD_SP1_SHIFT (26U)
1283#define AIPS_PACRD_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_SP1_SHIFT)) & AIPS_PACRD_SP1_MASK)
1284#define AIPS_PACRD_SP1 AIPS_PACRD_SP1_MASK
1285#define AIPS_PACRD_TP0_MASK (0x10000000U)
1286#define AIPS_PACRD_TP0_SHIFT (28U)
1287#define AIPS_PACRD_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_TP0_SHIFT)) & AIPS_PACRD_TP0_MASK)
1288#define AIPS_PACRD_TP0 AIPS_PACRD_TP0_MASK
1289#define AIPS_PACRD_WP0_MASK (0x20000000U)
1290#define AIPS_PACRD_WP0_SHIFT (29U)
1291#define AIPS_PACRD_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_WP0_SHIFT)) & AIPS_PACRD_WP0_MASK)
1292#define AIPS_PACRD_WP0 AIPS_PACRD_WP0_MASK
1293#define AIPS_PACRD_SP0_MASK (0x40000000U)
1294#define AIPS_PACRD_SP0_SHIFT (30U)
1295#define AIPS_PACRD_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRD_SP0_SHIFT)) & AIPS_PACRD_SP0_MASK)
1296#define AIPS_PACRD_SP0 AIPS_PACRD_SP0_MASK
1297
1298/*! @name PACRE - Peripheral Access Control Register */
1299#define AIPS_PACRE_TP7_MASK (0x1U)
1300#define AIPS_PACRE_TP7_SHIFT (0U)
1301#define AIPS_PACRE_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_TP7_SHIFT)) & AIPS_PACRE_TP7_MASK)
1302#define AIPS_PACRE_TP7 AIPS_PACRE_TP7_MASK
1303#define AIPS_PACRE_WP7_MASK (0x2U)
1304#define AIPS_PACRE_WP7_SHIFT (1U)
1305#define AIPS_PACRE_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_WP7_SHIFT)) & AIPS_PACRE_WP7_MASK)
1306#define AIPS_PACRE_WP7 AIPS_PACRE_WP7_MASK
1307#define AIPS_PACRE_SP7_MASK (0x4U)
1308#define AIPS_PACRE_SP7_SHIFT (2U)
1309#define AIPS_PACRE_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_SP7_SHIFT)) & AIPS_PACRE_SP7_MASK)
1310#define AIPS_PACRE_SP7 AIPS_PACRE_SP7_MASK
1311#define AIPS_PACRE_TP6_MASK (0x10U)
1312#define AIPS_PACRE_TP6_SHIFT (4U)
1313#define AIPS_PACRE_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_TP6_SHIFT)) & AIPS_PACRE_TP6_MASK)
1314#define AIPS_PACRE_TP6 AIPS_PACRE_TP6_MASK
1315#define AIPS_PACRE_WP6_MASK (0x20U)
1316#define AIPS_PACRE_WP6_SHIFT (5U)
1317#define AIPS_PACRE_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_WP6_SHIFT)) & AIPS_PACRE_WP6_MASK)
1318#define AIPS_PACRE_WP6 AIPS_PACRE_WP6_MASK
1319#define AIPS_PACRE_SP6_MASK (0x40U)
1320#define AIPS_PACRE_SP6_SHIFT (6U)
1321#define AIPS_PACRE_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_SP6_SHIFT)) & AIPS_PACRE_SP6_MASK)
1322#define AIPS_PACRE_SP6 AIPS_PACRE_SP6_MASK
1323#define AIPS_PACRE_TP5_MASK (0x100U)
1324#define AIPS_PACRE_TP5_SHIFT (8U)
1325#define AIPS_PACRE_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_TP5_SHIFT)) & AIPS_PACRE_TP5_MASK)
1326#define AIPS_PACRE_TP5 AIPS_PACRE_TP5_MASK
1327#define AIPS_PACRE_WP5_MASK (0x200U)
1328#define AIPS_PACRE_WP5_SHIFT (9U)
1329#define AIPS_PACRE_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_WP5_SHIFT)) & AIPS_PACRE_WP5_MASK)
1330#define AIPS_PACRE_WP5 AIPS_PACRE_WP5_MASK
1331#define AIPS_PACRE_SP5_MASK (0x400U)
1332#define AIPS_PACRE_SP5_SHIFT (10U)
1333#define AIPS_PACRE_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_SP5_SHIFT)) & AIPS_PACRE_SP5_MASK)
1334#define AIPS_PACRE_SP5 AIPS_PACRE_SP5_MASK
1335#define AIPS_PACRE_TP4_MASK (0x1000U)
1336#define AIPS_PACRE_TP4_SHIFT (12U)
1337#define AIPS_PACRE_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_TP4_SHIFT)) & AIPS_PACRE_TP4_MASK)
1338#define AIPS_PACRE_TP4 AIPS_PACRE_TP4_MASK
1339#define AIPS_PACRE_WP4_MASK (0x2000U)
1340#define AIPS_PACRE_WP4_SHIFT (13U)
1341#define AIPS_PACRE_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_WP4_SHIFT)) & AIPS_PACRE_WP4_MASK)
1342#define AIPS_PACRE_WP4 AIPS_PACRE_WP4_MASK
1343#define AIPS_PACRE_SP4_MASK (0x4000U)
1344#define AIPS_PACRE_SP4_SHIFT (14U)
1345#define AIPS_PACRE_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_SP4_SHIFT)) & AIPS_PACRE_SP4_MASK)
1346#define AIPS_PACRE_SP4 AIPS_PACRE_SP4_MASK
1347#define AIPS_PACRE_TP3_MASK (0x10000U)
1348#define AIPS_PACRE_TP3_SHIFT (16U)
1349#define AIPS_PACRE_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_TP3_SHIFT)) & AIPS_PACRE_TP3_MASK)
1350#define AIPS_PACRE_TP3 AIPS_PACRE_TP3_MASK
1351#define AIPS_PACRE_WP3_MASK (0x20000U)
1352#define AIPS_PACRE_WP3_SHIFT (17U)
1353#define AIPS_PACRE_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_WP3_SHIFT)) & AIPS_PACRE_WP3_MASK)
1354#define AIPS_PACRE_WP3 AIPS_PACRE_WP3_MASK
1355#define AIPS_PACRE_SP3_MASK (0x40000U)
1356#define AIPS_PACRE_SP3_SHIFT (18U)
1357#define AIPS_PACRE_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_SP3_SHIFT)) & AIPS_PACRE_SP3_MASK)
1358#define AIPS_PACRE_SP3 AIPS_PACRE_SP3_MASK
1359#define AIPS_PACRE_TP2_MASK (0x100000U)
1360#define AIPS_PACRE_TP2_SHIFT (20U)
1361#define AIPS_PACRE_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_TP2_SHIFT)) & AIPS_PACRE_TP2_MASK)
1362#define AIPS_PACRE_TP2 AIPS_PACRE_TP2_MASK
1363#define AIPS_PACRE_WP2_MASK (0x200000U)
1364#define AIPS_PACRE_WP2_SHIFT (21U)
1365#define AIPS_PACRE_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_WP2_SHIFT)) & AIPS_PACRE_WP2_MASK)
1366#define AIPS_PACRE_WP2 AIPS_PACRE_WP2_MASK
1367#define AIPS_PACRE_SP2_MASK (0x400000U)
1368#define AIPS_PACRE_SP2_SHIFT (22U)
1369#define AIPS_PACRE_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_SP2_SHIFT)) & AIPS_PACRE_SP2_MASK)
1370#define AIPS_PACRE_SP2 AIPS_PACRE_SP2_MASK
1371#define AIPS_PACRE_TP1_MASK (0x1000000U)
1372#define AIPS_PACRE_TP1_SHIFT (24U)
1373#define AIPS_PACRE_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_TP1_SHIFT)) & AIPS_PACRE_TP1_MASK)
1374#define AIPS_PACRE_TP1 AIPS_PACRE_TP1_MASK
1375#define AIPS_PACRE_WP1_MASK (0x2000000U)
1376#define AIPS_PACRE_WP1_SHIFT (25U)
1377#define AIPS_PACRE_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_WP1_SHIFT)) & AIPS_PACRE_WP1_MASK)
1378#define AIPS_PACRE_WP1 AIPS_PACRE_WP1_MASK
1379#define AIPS_PACRE_SP1_MASK (0x4000000U)
1380#define AIPS_PACRE_SP1_SHIFT (26U)
1381#define AIPS_PACRE_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_SP1_SHIFT)) & AIPS_PACRE_SP1_MASK)
1382#define AIPS_PACRE_SP1 AIPS_PACRE_SP1_MASK
1383#define AIPS_PACRE_TP0_MASK (0x10000000U)
1384#define AIPS_PACRE_TP0_SHIFT (28U)
1385#define AIPS_PACRE_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_TP0_SHIFT)) & AIPS_PACRE_TP0_MASK)
1386#define AIPS_PACRE_TP0 AIPS_PACRE_TP0_MASK
1387#define AIPS_PACRE_WP0_MASK (0x20000000U)
1388#define AIPS_PACRE_WP0_SHIFT (29U)
1389#define AIPS_PACRE_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_WP0_SHIFT)) & AIPS_PACRE_WP0_MASK)
1390#define AIPS_PACRE_WP0 AIPS_PACRE_WP0_MASK
1391#define AIPS_PACRE_SP0_MASK (0x40000000U)
1392#define AIPS_PACRE_SP0_SHIFT (30U)
1393#define AIPS_PACRE_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_SP0_SHIFT)) & AIPS_PACRE_SP0_MASK)
1394#define AIPS_PACRE_SP0 AIPS_PACRE_SP0_MASK
1395
1396/*! @name PACRF - Peripheral Access Control Register */
1397#define AIPS_PACRF_TP7_MASK (0x1U)
1398#define AIPS_PACRF_TP7_SHIFT (0U)
1399#define AIPS_PACRF_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_TP7_SHIFT)) & AIPS_PACRF_TP7_MASK)
1400#define AIPS_PACRF_TP7 AIPS_PACRF_TP7_MASK
1401#define AIPS_PACRF_WP7_MASK (0x2U)
1402#define AIPS_PACRF_WP7_SHIFT (1U)
1403#define AIPS_PACRF_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_WP7_SHIFT)) & AIPS_PACRF_WP7_MASK)
1404#define AIPS_PACRF_WP7 AIPS_PACRF_WP7_MASK
1405#define AIPS_PACRF_SP7_MASK (0x4U)
1406#define AIPS_PACRF_SP7_SHIFT (2U)
1407#define AIPS_PACRF_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_SP7_SHIFT)) & AIPS_PACRF_SP7_MASK)
1408#define AIPS_PACRF_SP7 AIPS_PACRF_SP7_MASK
1409#define AIPS_PACRF_TP6_MASK (0x10U)
1410#define AIPS_PACRF_TP6_SHIFT (4U)
1411#define AIPS_PACRF_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_TP6_SHIFT)) & AIPS_PACRF_TP6_MASK)
1412#define AIPS_PACRF_TP6 AIPS_PACRF_TP6_MASK
1413#define AIPS_PACRF_WP6_MASK (0x20U)
1414#define AIPS_PACRF_WP6_SHIFT (5U)
1415#define AIPS_PACRF_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_WP6_SHIFT)) & AIPS_PACRF_WP6_MASK)
1416#define AIPS_PACRF_WP6 AIPS_PACRF_WP6_MASK
1417#define AIPS_PACRF_SP6_MASK (0x40U)
1418#define AIPS_PACRF_SP6_SHIFT (6U)
1419#define AIPS_PACRF_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_SP6_SHIFT)) & AIPS_PACRF_SP6_MASK)
1420#define AIPS_PACRF_SP6 AIPS_PACRF_SP6_MASK
1421#define AIPS_PACRF_TP5_MASK (0x100U)
1422#define AIPS_PACRF_TP5_SHIFT (8U)
1423#define AIPS_PACRF_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_TP5_SHIFT)) & AIPS_PACRF_TP5_MASK)
1424#define AIPS_PACRF_TP5 AIPS_PACRF_TP5_MASK
1425#define AIPS_PACRF_WP5_MASK (0x200U)
1426#define AIPS_PACRF_WP5_SHIFT (9U)
1427#define AIPS_PACRF_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_WP5_SHIFT)) & AIPS_PACRF_WP5_MASK)
1428#define AIPS_PACRF_WP5 AIPS_PACRF_WP5_MASK
1429#define AIPS_PACRF_SP5_MASK (0x400U)
1430#define AIPS_PACRF_SP5_SHIFT (10U)
1431#define AIPS_PACRF_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_SP5_SHIFT)) & AIPS_PACRF_SP5_MASK)
1432#define AIPS_PACRF_SP5 AIPS_PACRF_SP5_MASK
1433#define AIPS_PACRF_TP4_MASK (0x1000U)
1434#define AIPS_PACRF_TP4_SHIFT (12U)
1435#define AIPS_PACRF_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_TP4_SHIFT)) & AIPS_PACRF_TP4_MASK)
1436#define AIPS_PACRF_TP4 AIPS_PACRF_TP4_MASK
1437#define AIPS_PACRF_WP4_MASK (0x2000U)
1438#define AIPS_PACRF_WP4_SHIFT (13U)
1439#define AIPS_PACRF_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_WP4_SHIFT)) & AIPS_PACRF_WP4_MASK)
1440#define AIPS_PACRF_WP4 AIPS_PACRF_WP4_MASK
1441#define AIPS_PACRF_SP4_MASK (0x4000U)
1442#define AIPS_PACRF_SP4_SHIFT (14U)
1443#define AIPS_PACRF_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_SP4_SHIFT)) & AIPS_PACRF_SP4_MASK)
1444#define AIPS_PACRF_SP4 AIPS_PACRF_SP4_MASK
1445#define AIPS_PACRF_TP3_MASK (0x10000U)
1446#define AIPS_PACRF_TP3_SHIFT (16U)
1447#define AIPS_PACRF_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_TP3_SHIFT)) & AIPS_PACRF_TP3_MASK)
1448#define AIPS_PACRF_TP3 AIPS_PACRF_TP3_MASK
1449#define AIPS_PACRF_WP3_MASK (0x20000U)
1450#define AIPS_PACRF_WP3_SHIFT (17U)
1451#define AIPS_PACRF_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_WP3_SHIFT)) & AIPS_PACRF_WP3_MASK)
1452#define AIPS_PACRF_WP3 AIPS_PACRF_WP3_MASK
1453#define AIPS_PACRF_SP3_MASK (0x40000U)
1454#define AIPS_PACRF_SP3_SHIFT (18U)
1455#define AIPS_PACRF_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_SP3_SHIFT)) & AIPS_PACRF_SP3_MASK)
1456#define AIPS_PACRF_SP3 AIPS_PACRF_SP3_MASK
1457#define AIPS_PACRF_TP2_MASK (0x100000U)
1458#define AIPS_PACRF_TP2_SHIFT (20U)
1459#define AIPS_PACRF_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_TP2_SHIFT)) & AIPS_PACRF_TP2_MASK)
1460#define AIPS_PACRF_TP2 AIPS_PACRF_TP2_MASK
1461#define AIPS_PACRF_WP2_MASK (0x200000U)
1462#define AIPS_PACRF_WP2_SHIFT (21U)
1463#define AIPS_PACRF_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_WP2_SHIFT)) & AIPS_PACRF_WP2_MASK)
1464#define AIPS_PACRF_WP2 AIPS_PACRF_WP2_MASK
1465#define AIPS_PACRF_SP2_MASK (0x400000U)
1466#define AIPS_PACRF_SP2_SHIFT (22U)
1467#define AIPS_PACRF_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_SP2_SHIFT)) & AIPS_PACRF_SP2_MASK)
1468#define AIPS_PACRF_SP2 AIPS_PACRF_SP2_MASK
1469#define AIPS_PACRF_TP1_MASK (0x1000000U)
1470#define AIPS_PACRF_TP1_SHIFT (24U)
1471#define AIPS_PACRF_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_TP1_SHIFT)) & AIPS_PACRF_TP1_MASK)
1472#define AIPS_PACRF_TP1 AIPS_PACRF_TP1_MASK
1473#define AIPS_PACRF_WP1_MASK (0x2000000U)
1474#define AIPS_PACRF_WP1_SHIFT (25U)
1475#define AIPS_PACRF_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_WP1_SHIFT)) & AIPS_PACRF_WP1_MASK)
1476#define AIPS_PACRF_WP1 AIPS_PACRF_WP1_MASK
1477#define AIPS_PACRF_SP1_MASK (0x4000000U)
1478#define AIPS_PACRF_SP1_SHIFT (26U)
1479#define AIPS_PACRF_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_SP1_SHIFT)) & AIPS_PACRF_SP1_MASK)
1480#define AIPS_PACRF_SP1 AIPS_PACRF_SP1_MASK
1481#define AIPS_PACRF_TP0_MASK (0x10000000U)
1482#define AIPS_PACRF_TP0_SHIFT (28U)
1483#define AIPS_PACRF_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_TP0_SHIFT)) & AIPS_PACRF_TP0_MASK)
1484#define AIPS_PACRF_TP0 AIPS_PACRF_TP0_MASK
1485#define AIPS_PACRF_WP0_MASK (0x20000000U)
1486#define AIPS_PACRF_WP0_SHIFT (29U)
1487#define AIPS_PACRF_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_WP0_SHIFT)) & AIPS_PACRF_WP0_MASK)
1488#define AIPS_PACRF_WP0 AIPS_PACRF_WP0_MASK
1489#define AIPS_PACRF_SP0_MASK (0x40000000U)
1490#define AIPS_PACRF_SP0_SHIFT (30U)
1491#define AIPS_PACRF_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_SP0_SHIFT)) & AIPS_PACRF_SP0_MASK)
1492#define AIPS_PACRF_SP0 AIPS_PACRF_SP0_MASK
1493
1494/*! @name PACRG - Peripheral Access Control Register */
1495#define AIPS_PACRG_TP7_MASK (0x1U)
1496#define AIPS_PACRG_TP7_SHIFT (0U)
1497#define AIPS_PACRG_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_TP7_SHIFT)) & AIPS_PACRG_TP7_MASK)
1498#define AIPS_PACRG_TP7 AIPS_PACRG_TP7_MASK
1499#define AIPS_PACRG_WP7_MASK (0x2U)
1500#define AIPS_PACRG_WP7_SHIFT (1U)
1501#define AIPS_PACRG_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_WP7_SHIFT)) & AIPS_PACRG_WP7_MASK)
1502#define AIPS_PACRG_WP7 AIPS_PACRG_WP7_MASK
1503#define AIPS_PACRG_SP7_MASK (0x4U)
1504#define AIPS_PACRG_SP7_SHIFT (2U)
1505#define AIPS_PACRG_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_SP7_SHIFT)) & AIPS_PACRG_SP7_MASK)
1506#define AIPS_PACRG_SP7 AIPS_PACRG_SP7_MASK
1507#define AIPS_PACRG_TP6_MASK (0x10U)
1508#define AIPS_PACRG_TP6_SHIFT (4U)
1509#define AIPS_PACRG_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_TP6_SHIFT)) & AIPS_PACRG_TP6_MASK)
1510#define AIPS_PACRG_TP6 AIPS_PACRG_TP6_MASK
1511#define AIPS_PACRG_WP6_MASK (0x20U)
1512#define AIPS_PACRG_WP6_SHIFT (5U)
1513#define AIPS_PACRG_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_WP6_SHIFT)) & AIPS_PACRG_WP6_MASK)
1514#define AIPS_PACRG_WP6 AIPS_PACRG_WP6_MASK
1515#define AIPS_PACRG_SP6_MASK (0x40U)
1516#define AIPS_PACRG_SP6_SHIFT (6U)
1517#define AIPS_PACRG_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_SP6_SHIFT)) & AIPS_PACRG_SP6_MASK)
1518#define AIPS_PACRG_SP6 AIPS_PACRG_SP6_MASK
1519#define AIPS_PACRG_TP5_MASK (0x100U)
1520#define AIPS_PACRG_TP5_SHIFT (8U)
1521#define AIPS_PACRG_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_TP5_SHIFT)) & AIPS_PACRG_TP5_MASK)
1522#define AIPS_PACRG_TP5 AIPS_PACRG_TP5_MASK
1523#define AIPS_PACRG_WP5_MASK (0x200U)
1524#define AIPS_PACRG_WP5_SHIFT (9U)
1525#define AIPS_PACRG_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_WP5_SHIFT)) & AIPS_PACRG_WP5_MASK)
1526#define AIPS_PACRG_WP5 AIPS_PACRG_WP5_MASK
1527#define AIPS_PACRG_SP5_MASK (0x400U)
1528#define AIPS_PACRG_SP5_SHIFT (10U)
1529#define AIPS_PACRG_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_SP5_SHIFT)) & AIPS_PACRG_SP5_MASK)
1530#define AIPS_PACRG_SP5 AIPS_PACRG_SP5_MASK
1531#define AIPS_PACRG_TP4_MASK (0x1000U)
1532#define AIPS_PACRG_TP4_SHIFT (12U)
1533#define AIPS_PACRG_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_TP4_SHIFT)) & AIPS_PACRG_TP4_MASK)
1534#define AIPS_PACRG_TP4 AIPS_PACRG_TP4_MASK
1535#define AIPS_PACRG_WP4_MASK (0x2000U)
1536#define AIPS_PACRG_WP4_SHIFT (13U)
1537#define AIPS_PACRG_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_WP4_SHIFT)) & AIPS_PACRG_WP4_MASK)
1538#define AIPS_PACRG_WP4 AIPS_PACRG_WP4_MASK
1539#define AIPS_PACRG_SP4_MASK (0x4000U)
1540#define AIPS_PACRG_SP4_SHIFT (14U)
1541#define AIPS_PACRG_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_SP4_SHIFT)) & AIPS_PACRG_SP4_MASK)
1542#define AIPS_PACRG_SP4 AIPS_PACRG_SP4_MASK
1543#define AIPS_PACRG_TP3_MASK (0x10000U)
1544#define AIPS_PACRG_TP3_SHIFT (16U)
1545#define AIPS_PACRG_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_TP3_SHIFT)) & AIPS_PACRG_TP3_MASK)
1546#define AIPS_PACRG_TP3 AIPS_PACRG_TP3_MASK
1547#define AIPS_PACRG_WP3_MASK (0x20000U)
1548#define AIPS_PACRG_WP3_SHIFT (17U)
1549#define AIPS_PACRG_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_WP3_SHIFT)) & AIPS_PACRG_WP3_MASK)
1550#define AIPS_PACRG_WP3 AIPS_PACRG_WP3_MASK
1551#define AIPS_PACRG_SP3_MASK (0x40000U)
1552#define AIPS_PACRG_SP3_SHIFT (18U)
1553#define AIPS_PACRG_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_SP3_SHIFT)) & AIPS_PACRG_SP3_MASK)
1554#define AIPS_PACRG_SP3 AIPS_PACRG_SP3_MASK
1555#define AIPS_PACRG_TP2_MASK (0x100000U)
1556#define AIPS_PACRG_TP2_SHIFT (20U)
1557#define AIPS_PACRG_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_TP2_SHIFT)) & AIPS_PACRG_TP2_MASK)
1558#define AIPS_PACRG_TP2 AIPS_PACRG_TP2_MASK
1559#define AIPS_PACRG_WP2_MASK (0x200000U)
1560#define AIPS_PACRG_WP2_SHIFT (21U)
1561#define AIPS_PACRG_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_WP2_SHIFT)) & AIPS_PACRG_WP2_MASK)
1562#define AIPS_PACRG_WP2 AIPS_PACRG_WP2_MASK
1563#define AIPS_PACRG_SP2_MASK (0x400000U)
1564#define AIPS_PACRG_SP2_SHIFT (22U)
1565#define AIPS_PACRG_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_SP2_SHIFT)) & AIPS_PACRG_SP2_MASK)
1566#define AIPS_PACRG_SP2 AIPS_PACRG_SP2_MASK
1567#define AIPS_PACRG_TP1_MASK (0x1000000U)
1568#define AIPS_PACRG_TP1_SHIFT (24U)
1569#define AIPS_PACRG_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_TP1_SHIFT)) & AIPS_PACRG_TP1_MASK)
1570#define AIPS_PACRG_TP1 AIPS_PACRG_TP1_MASK
1571#define AIPS_PACRG_WP1_MASK (0x2000000U)
1572#define AIPS_PACRG_WP1_SHIFT (25U)
1573#define AIPS_PACRG_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_WP1_SHIFT)) & AIPS_PACRG_WP1_MASK)
1574#define AIPS_PACRG_WP1 AIPS_PACRG_WP1_MASK
1575#define AIPS_PACRG_SP1_MASK (0x4000000U)
1576#define AIPS_PACRG_SP1_SHIFT (26U)
1577#define AIPS_PACRG_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_SP1_SHIFT)) & AIPS_PACRG_SP1_MASK)
1578#define AIPS_PACRG_SP1 AIPS_PACRG_SP1_MASK
1579#define AIPS_PACRG_TP0_MASK (0x10000000U)
1580#define AIPS_PACRG_TP0_SHIFT (28U)
1581#define AIPS_PACRG_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_TP0_SHIFT)) & AIPS_PACRG_TP0_MASK)
1582#define AIPS_PACRG_TP0 AIPS_PACRG_TP0_MASK
1583#define AIPS_PACRG_WP0_MASK (0x20000000U)
1584#define AIPS_PACRG_WP0_SHIFT (29U)
1585#define AIPS_PACRG_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_WP0_SHIFT)) & AIPS_PACRG_WP0_MASK)
1586#define AIPS_PACRG_WP0 AIPS_PACRG_WP0_MASK
1587#define AIPS_PACRG_SP0_MASK (0x40000000U)
1588#define AIPS_PACRG_SP0_SHIFT (30U)
1589#define AIPS_PACRG_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_SP0_SHIFT)) & AIPS_PACRG_SP0_MASK)
1590#define AIPS_PACRG_SP0 AIPS_PACRG_SP0_MASK
1591
1592/*! @name PACRH - Peripheral Access Control Register */
1593#define AIPS_PACRH_TP7_MASK (0x1U)
1594#define AIPS_PACRH_TP7_SHIFT (0U)
1595#define AIPS_PACRH_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_TP7_SHIFT)) & AIPS_PACRH_TP7_MASK)
1596#define AIPS_PACRH_TP7 AIPS_PACRH_TP7_MASK
1597#define AIPS_PACRH_WP7_MASK (0x2U)
1598#define AIPS_PACRH_WP7_SHIFT (1U)
1599#define AIPS_PACRH_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_WP7_SHIFT)) & AIPS_PACRH_WP7_MASK)
1600#define AIPS_PACRH_WP7 AIPS_PACRH_WP7_MASK
1601#define AIPS_PACRH_SP7_MASK (0x4U)
1602#define AIPS_PACRH_SP7_SHIFT (2U)
1603#define AIPS_PACRH_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_SP7_SHIFT)) & AIPS_PACRH_SP7_MASK)
1604#define AIPS_PACRH_SP7 AIPS_PACRH_SP7_MASK
1605#define AIPS_PACRH_TP6_MASK (0x10U)
1606#define AIPS_PACRH_TP6_SHIFT (4U)
1607#define AIPS_PACRH_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_TP6_SHIFT)) & AIPS_PACRH_TP6_MASK)
1608#define AIPS_PACRH_TP6 AIPS_PACRH_TP6_MASK
1609#define AIPS_PACRH_WP6_MASK (0x20U)
1610#define AIPS_PACRH_WP6_SHIFT (5U)
1611#define AIPS_PACRH_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_WP6_SHIFT)) & AIPS_PACRH_WP6_MASK)
1612#define AIPS_PACRH_WP6 AIPS_PACRH_WP6_MASK
1613#define AIPS_PACRH_SP6_MASK (0x40U)
1614#define AIPS_PACRH_SP6_SHIFT (6U)
1615#define AIPS_PACRH_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_SP6_SHIFT)) & AIPS_PACRH_SP6_MASK)
1616#define AIPS_PACRH_SP6 AIPS_PACRH_SP6_MASK
1617#define AIPS_PACRH_TP5_MASK (0x100U)
1618#define AIPS_PACRH_TP5_SHIFT (8U)
1619#define AIPS_PACRH_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_TP5_SHIFT)) & AIPS_PACRH_TP5_MASK)
1620#define AIPS_PACRH_TP5 AIPS_PACRH_TP5_MASK
1621#define AIPS_PACRH_WP5_MASK (0x200U)
1622#define AIPS_PACRH_WP5_SHIFT (9U)
1623#define AIPS_PACRH_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_WP5_SHIFT)) & AIPS_PACRH_WP5_MASK)
1624#define AIPS_PACRH_WP5 AIPS_PACRH_WP5_MASK
1625#define AIPS_PACRH_SP5_MASK (0x400U)
1626#define AIPS_PACRH_SP5_SHIFT (10U)
1627#define AIPS_PACRH_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_SP5_SHIFT)) & AIPS_PACRH_SP5_MASK)
1628#define AIPS_PACRH_SP5 AIPS_PACRH_SP5_MASK
1629#define AIPS_PACRH_TP4_MASK (0x1000U)
1630#define AIPS_PACRH_TP4_SHIFT (12U)
1631#define AIPS_PACRH_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_TP4_SHIFT)) & AIPS_PACRH_TP4_MASK)
1632#define AIPS_PACRH_TP4 AIPS_PACRH_TP4_MASK
1633#define AIPS_PACRH_WP4_MASK (0x2000U)
1634#define AIPS_PACRH_WP4_SHIFT (13U)
1635#define AIPS_PACRH_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_WP4_SHIFT)) & AIPS_PACRH_WP4_MASK)
1636#define AIPS_PACRH_WP4 AIPS_PACRH_WP4_MASK
1637#define AIPS_PACRH_SP4_MASK (0x4000U)
1638#define AIPS_PACRH_SP4_SHIFT (14U)
1639#define AIPS_PACRH_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_SP4_SHIFT)) & AIPS_PACRH_SP4_MASK)
1640#define AIPS_PACRH_SP4 AIPS_PACRH_SP4_MASK
1641#define AIPS_PACRH_TP3_MASK (0x10000U)
1642#define AIPS_PACRH_TP3_SHIFT (16U)
1643#define AIPS_PACRH_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_TP3_SHIFT)) & AIPS_PACRH_TP3_MASK)
1644#define AIPS_PACRH_TP3 AIPS_PACRH_TP3_MASK
1645#define AIPS_PACRH_WP3_MASK (0x20000U)
1646#define AIPS_PACRH_WP3_SHIFT (17U)
1647#define AIPS_PACRH_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_WP3_SHIFT)) & AIPS_PACRH_WP3_MASK)
1648#define AIPS_PACRH_WP3 AIPS_PACRH_WP3_MASK
1649#define AIPS_PACRH_SP3_MASK (0x40000U)
1650#define AIPS_PACRH_SP3_SHIFT (18U)
1651#define AIPS_PACRH_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_SP3_SHIFT)) & AIPS_PACRH_SP3_MASK)
1652#define AIPS_PACRH_SP3 AIPS_PACRH_SP3_MASK
1653#define AIPS_PACRH_TP2_MASK (0x100000U)
1654#define AIPS_PACRH_TP2_SHIFT (20U)
1655#define AIPS_PACRH_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_TP2_SHIFT)) & AIPS_PACRH_TP2_MASK)
1656#define AIPS_PACRH_TP2 AIPS_PACRH_TP2_MASK
1657#define AIPS_PACRH_WP2_MASK (0x200000U)
1658#define AIPS_PACRH_WP2_SHIFT (21U)
1659#define AIPS_PACRH_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_WP2_SHIFT)) & AIPS_PACRH_WP2_MASK)
1660#define AIPS_PACRH_WP2 AIPS_PACRH_WP2_MASK
1661#define AIPS_PACRH_SP2_MASK (0x400000U)
1662#define AIPS_PACRH_SP2_SHIFT (22U)
1663#define AIPS_PACRH_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_SP2_SHIFT)) & AIPS_PACRH_SP2_MASK)
1664#define AIPS_PACRH_SP2 AIPS_PACRH_SP2_MASK
1665#define AIPS_PACRH_TP1_MASK (0x1000000U)
1666#define AIPS_PACRH_TP1_SHIFT (24U)
1667#define AIPS_PACRH_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_TP1_SHIFT)) & AIPS_PACRH_TP1_MASK)
1668#define AIPS_PACRH_TP1 AIPS_PACRH_TP1_MASK
1669#define AIPS_PACRH_WP1_MASK (0x2000000U)
1670#define AIPS_PACRH_WP1_SHIFT (25U)
1671#define AIPS_PACRH_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_WP1_SHIFT)) & AIPS_PACRH_WP1_MASK)
1672#define AIPS_PACRH_WP1 AIPS_PACRH_WP1_MASK
1673#define AIPS_PACRH_SP1_MASK (0x4000000U)
1674#define AIPS_PACRH_SP1_SHIFT (26U)
1675#define AIPS_PACRH_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_SP1_SHIFT)) & AIPS_PACRH_SP1_MASK)
1676#define AIPS_PACRH_SP1 AIPS_PACRH_SP1_MASK
1677#define AIPS_PACRH_TP0_MASK (0x10000000U)
1678#define AIPS_PACRH_TP0_SHIFT (28U)
1679#define AIPS_PACRH_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_TP0_SHIFT)) & AIPS_PACRH_TP0_MASK)
1680#define AIPS_PACRH_TP0 AIPS_PACRH_TP0_MASK
1681#define AIPS_PACRH_WP0_MASK (0x20000000U)
1682#define AIPS_PACRH_WP0_SHIFT (29U)
1683#define AIPS_PACRH_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_WP0_SHIFT)) & AIPS_PACRH_WP0_MASK)
1684#define AIPS_PACRH_WP0 AIPS_PACRH_WP0_MASK
1685#define AIPS_PACRH_SP0_MASK (0x40000000U)
1686#define AIPS_PACRH_SP0_SHIFT (30U)
1687#define AIPS_PACRH_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_SP0_SHIFT)) & AIPS_PACRH_SP0_MASK)
1688#define AIPS_PACRH_SP0 AIPS_PACRH_SP0_MASK
1689
1690/*! @name PACRI - Peripheral Access Control Register */
1691#define AIPS_PACRI_TP7_MASK (0x1U)
1692#define AIPS_PACRI_TP7_SHIFT (0U)
1693#define AIPS_PACRI_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_TP7_SHIFT)) & AIPS_PACRI_TP7_MASK)
1694#define AIPS_PACRI_TP7 AIPS_PACRI_TP7_MASK
1695#define AIPS_PACRI_WP7_MASK (0x2U)
1696#define AIPS_PACRI_WP7_SHIFT (1U)
1697#define AIPS_PACRI_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_WP7_SHIFT)) & AIPS_PACRI_WP7_MASK)
1698#define AIPS_PACRI_WP7 AIPS_PACRI_WP7_MASK
1699#define AIPS_PACRI_SP7_MASK (0x4U)
1700#define AIPS_PACRI_SP7_SHIFT (2U)
1701#define AIPS_PACRI_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_SP7_SHIFT)) & AIPS_PACRI_SP7_MASK)
1702#define AIPS_PACRI_SP7 AIPS_PACRI_SP7_MASK
1703#define AIPS_PACRI_TP6_MASK (0x10U)
1704#define AIPS_PACRI_TP6_SHIFT (4U)
1705#define AIPS_PACRI_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_TP6_SHIFT)) & AIPS_PACRI_TP6_MASK)
1706#define AIPS_PACRI_TP6 AIPS_PACRI_TP6_MASK
1707#define AIPS_PACRI_WP6_MASK (0x20U)
1708#define AIPS_PACRI_WP6_SHIFT (5U)
1709#define AIPS_PACRI_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_WP6_SHIFT)) & AIPS_PACRI_WP6_MASK)
1710#define AIPS_PACRI_WP6 AIPS_PACRI_WP6_MASK
1711#define AIPS_PACRI_SP6_MASK (0x40U)
1712#define AIPS_PACRI_SP6_SHIFT (6U)
1713#define AIPS_PACRI_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_SP6_SHIFT)) & AIPS_PACRI_SP6_MASK)
1714#define AIPS_PACRI_SP6 AIPS_PACRI_SP6_MASK
1715#define AIPS_PACRI_TP5_MASK (0x100U)
1716#define AIPS_PACRI_TP5_SHIFT (8U)
1717#define AIPS_PACRI_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_TP5_SHIFT)) & AIPS_PACRI_TP5_MASK)
1718#define AIPS_PACRI_TP5 AIPS_PACRI_TP5_MASK
1719#define AIPS_PACRI_WP5_MASK (0x200U)
1720#define AIPS_PACRI_WP5_SHIFT (9U)
1721#define AIPS_PACRI_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_WP5_SHIFT)) & AIPS_PACRI_WP5_MASK)
1722#define AIPS_PACRI_WP5 AIPS_PACRI_WP5_MASK
1723#define AIPS_PACRI_SP5_MASK (0x400U)
1724#define AIPS_PACRI_SP5_SHIFT (10U)
1725#define AIPS_PACRI_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_SP5_SHIFT)) & AIPS_PACRI_SP5_MASK)
1726#define AIPS_PACRI_SP5 AIPS_PACRI_SP5_MASK
1727#define AIPS_PACRI_TP4_MASK (0x1000U)
1728#define AIPS_PACRI_TP4_SHIFT (12U)
1729#define AIPS_PACRI_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_TP4_SHIFT)) & AIPS_PACRI_TP4_MASK)
1730#define AIPS_PACRI_TP4 AIPS_PACRI_TP4_MASK
1731#define AIPS_PACRI_WP4_MASK (0x2000U)
1732#define AIPS_PACRI_WP4_SHIFT (13U)
1733#define AIPS_PACRI_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_WP4_SHIFT)) & AIPS_PACRI_WP4_MASK)
1734#define AIPS_PACRI_WP4 AIPS_PACRI_WP4_MASK
1735#define AIPS_PACRI_SP4_MASK (0x4000U)
1736#define AIPS_PACRI_SP4_SHIFT (14U)
1737#define AIPS_PACRI_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_SP4_SHIFT)) & AIPS_PACRI_SP4_MASK)
1738#define AIPS_PACRI_SP4 AIPS_PACRI_SP4_MASK
1739#define AIPS_PACRI_TP3_MASK (0x10000U)
1740#define AIPS_PACRI_TP3_SHIFT (16U)
1741#define AIPS_PACRI_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_TP3_SHIFT)) & AIPS_PACRI_TP3_MASK)
1742#define AIPS_PACRI_TP3 AIPS_PACRI_TP3_MASK
1743#define AIPS_PACRI_WP3_MASK (0x20000U)
1744#define AIPS_PACRI_WP3_SHIFT (17U)
1745#define AIPS_PACRI_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_WP3_SHIFT)) & AIPS_PACRI_WP3_MASK)
1746#define AIPS_PACRI_WP3 AIPS_PACRI_WP3_MASK
1747#define AIPS_PACRI_SP3_MASK (0x40000U)
1748#define AIPS_PACRI_SP3_SHIFT (18U)
1749#define AIPS_PACRI_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_SP3_SHIFT)) & AIPS_PACRI_SP3_MASK)
1750#define AIPS_PACRI_SP3 AIPS_PACRI_SP3_MASK
1751#define AIPS_PACRI_TP2_MASK (0x100000U)
1752#define AIPS_PACRI_TP2_SHIFT (20U)
1753#define AIPS_PACRI_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_TP2_SHIFT)) & AIPS_PACRI_TP2_MASK)
1754#define AIPS_PACRI_TP2 AIPS_PACRI_TP2_MASK
1755#define AIPS_PACRI_WP2_MASK (0x200000U)
1756#define AIPS_PACRI_WP2_SHIFT (21U)
1757#define AIPS_PACRI_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_WP2_SHIFT)) & AIPS_PACRI_WP2_MASK)
1758#define AIPS_PACRI_WP2 AIPS_PACRI_WP2_MASK
1759#define AIPS_PACRI_SP2_MASK (0x400000U)
1760#define AIPS_PACRI_SP2_SHIFT (22U)
1761#define AIPS_PACRI_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_SP2_SHIFT)) & AIPS_PACRI_SP2_MASK)
1762#define AIPS_PACRI_SP2 AIPS_PACRI_SP2_MASK
1763#define AIPS_PACRI_TP1_MASK (0x1000000U)
1764#define AIPS_PACRI_TP1_SHIFT (24U)
1765#define AIPS_PACRI_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_TP1_SHIFT)) & AIPS_PACRI_TP1_MASK)
1766#define AIPS_PACRI_TP1 AIPS_PACRI_TP1_MASK
1767#define AIPS_PACRI_WP1_MASK (0x2000000U)
1768#define AIPS_PACRI_WP1_SHIFT (25U)
1769#define AIPS_PACRI_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_WP1_SHIFT)) & AIPS_PACRI_WP1_MASK)
1770#define AIPS_PACRI_WP1 AIPS_PACRI_WP1_MASK
1771#define AIPS_PACRI_SP1_MASK (0x4000000U)
1772#define AIPS_PACRI_SP1_SHIFT (26U)
1773#define AIPS_PACRI_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_SP1_SHIFT)) & AIPS_PACRI_SP1_MASK)
1774#define AIPS_PACRI_SP1 AIPS_PACRI_SP1_MASK
1775#define AIPS_PACRI_TP0_MASK (0x10000000U)
1776#define AIPS_PACRI_TP0_SHIFT (28U)
1777#define AIPS_PACRI_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_TP0_SHIFT)) & AIPS_PACRI_TP0_MASK)
1778#define AIPS_PACRI_TP0 AIPS_PACRI_TP0_MASK
1779#define AIPS_PACRI_WP0_MASK (0x20000000U)
1780#define AIPS_PACRI_WP0_SHIFT (29U)
1781#define AIPS_PACRI_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_WP0_SHIFT)) & AIPS_PACRI_WP0_MASK)
1782#define AIPS_PACRI_WP0 AIPS_PACRI_WP0_MASK
1783#define AIPS_PACRI_SP0_MASK (0x40000000U)
1784#define AIPS_PACRI_SP0_SHIFT (30U)
1785#define AIPS_PACRI_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_SP0_SHIFT)) & AIPS_PACRI_SP0_MASK)
1786#define AIPS_PACRI_SP0 AIPS_PACRI_SP0_MASK
1787
1788/*! @name PACRJ - Peripheral Access Control Register */
1789#define AIPS_PACRJ_TP7_MASK (0x1U)
1790#define AIPS_PACRJ_TP7_SHIFT (0U)
1791#define AIPS_PACRJ_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_TP7_SHIFT)) & AIPS_PACRJ_TP7_MASK)
1792#define AIPS_PACRJ_TP7 AIPS_PACRJ_TP7_MASK
1793#define AIPS_PACRJ_WP7_MASK (0x2U)
1794#define AIPS_PACRJ_WP7_SHIFT (1U)
1795#define AIPS_PACRJ_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_WP7_SHIFT)) & AIPS_PACRJ_WP7_MASK)
1796#define AIPS_PACRJ_WP7 AIPS_PACRJ_WP7_MASK
1797#define AIPS_PACRJ_SP7_MASK (0x4U)
1798#define AIPS_PACRJ_SP7_SHIFT (2U)
1799#define AIPS_PACRJ_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_SP7_SHIFT)) & AIPS_PACRJ_SP7_MASK)
1800#define AIPS_PACRJ_SP7 AIPS_PACRJ_SP7_MASK
1801#define AIPS_PACRJ_TP6_MASK (0x10U)
1802#define AIPS_PACRJ_TP6_SHIFT (4U)
1803#define AIPS_PACRJ_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_TP6_SHIFT)) & AIPS_PACRJ_TP6_MASK)
1804#define AIPS_PACRJ_TP6 AIPS_PACRJ_TP6_MASK
1805#define AIPS_PACRJ_WP6_MASK (0x20U)
1806#define AIPS_PACRJ_WP6_SHIFT (5U)
1807#define AIPS_PACRJ_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_WP6_SHIFT)) & AIPS_PACRJ_WP6_MASK)
1808#define AIPS_PACRJ_WP6 AIPS_PACRJ_WP6_MASK
1809#define AIPS_PACRJ_SP6_MASK (0x40U)
1810#define AIPS_PACRJ_SP6_SHIFT (6U)
1811#define AIPS_PACRJ_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_SP6_SHIFT)) & AIPS_PACRJ_SP6_MASK)
1812#define AIPS_PACRJ_SP6 AIPS_PACRJ_SP6_MASK
1813#define AIPS_PACRJ_TP5_MASK (0x100U)
1814#define AIPS_PACRJ_TP5_SHIFT (8U)
1815#define AIPS_PACRJ_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_TP5_SHIFT)) & AIPS_PACRJ_TP5_MASK)
1816#define AIPS_PACRJ_TP5 AIPS_PACRJ_TP5_MASK
1817#define AIPS_PACRJ_WP5_MASK (0x200U)
1818#define AIPS_PACRJ_WP5_SHIFT (9U)
1819#define AIPS_PACRJ_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_WP5_SHIFT)) & AIPS_PACRJ_WP5_MASK)
1820#define AIPS_PACRJ_WP5 AIPS_PACRJ_WP5_MASK
1821#define AIPS_PACRJ_SP5_MASK (0x400U)
1822#define AIPS_PACRJ_SP5_SHIFT (10U)
1823#define AIPS_PACRJ_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_SP5_SHIFT)) & AIPS_PACRJ_SP5_MASK)
1824#define AIPS_PACRJ_SP5 AIPS_PACRJ_SP5_MASK
1825#define AIPS_PACRJ_TP4_MASK (0x1000U)
1826#define AIPS_PACRJ_TP4_SHIFT (12U)
1827#define AIPS_PACRJ_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_TP4_SHIFT)) & AIPS_PACRJ_TP4_MASK)
1828#define AIPS_PACRJ_TP4 AIPS_PACRJ_TP4_MASK
1829#define AIPS_PACRJ_WP4_MASK (0x2000U)
1830#define AIPS_PACRJ_WP4_SHIFT (13U)
1831#define AIPS_PACRJ_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_WP4_SHIFT)) & AIPS_PACRJ_WP4_MASK)
1832#define AIPS_PACRJ_WP4 AIPS_PACRJ_WP4_MASK
1833#define AIPS_PACRJ_SP4_MASK (0x4000U)
1834#define AIPS_PACRJ_SP4_SHIFT (14U)
1835#define AIPS_PACRJ_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_SP4_SHIFT)) & AIPS_PACRJ_SP4_MASK)
1836#define AIPS_PACRJ_SP4 AIPS_PACRJ_SP4_MASK
1837#define AIPS_PACRJ_TP3_MASK (0x10000U)
1838#define AIPS_PACRJ_TP3_SHIFT (16U)
1839#define AIPS_PACRJ_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_TP3_SHIFT)) & AIPS_PACRJ_TP3_MASK)
1840#define AIPS_PACRJ_TP3 AIPS_PACRJ_TP3_MASK
1841#define AIPS_PACRJ_WP3_MASK (0x20000U)
1842#define AIPS_PACRJ_WP3_SHIFT (17U)
1843#define AIPS_PACRJ_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_WP3_SHIFT)) & AIPS_PACRJ_WP3_MASK)
1844#define AIPS_PACRJ_WP3 AIPS_PACRJ_WP3_MASK
1845#define AIPS_PACRJ_SP3_MASK (0x40000U)
1846#define AIPS_PACRJ_SP3_SHIFT (18U)
1847#define AIPS_PACRJ_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_SP3_SHIFT)) & AIPS_PACRJ_SP3_MASK)
1848#define AIPS_PACRJ_SP3 AIPS_PACRJ_SP3_MASK
1849#define AIPS_PACRJ_TP2_MASK (0x100000U)
1850#define AIPS_PACRJ_TP2_SHIFT (20U)
1851#define AIPS_PACRJ_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_TP2_SHIFT)) & AIPS_PACRJ_TP2_MASK)
1852#define AIPS_PACRJ_TP2 AIPS_PACRJ_TP2_MASK
1853#define AIPS_PACRJ_WP2_MASK (0x200000U)
1854#define AIPS_PACRJ_WP2_SHIFT (21U)
1855#define AIPS_PACRJ_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_WP2_SHIFT)) & AIPS_PACRJ_WP2_MASK)
1856#define AIPS_PACRJ_WP2 AIPS_PACRJ_WP2_MASK
1857#define AIPS_PACRJ_SP2_MASK (0x400000U)
1858#define AIPS_PACRJ_SP2_SHIFT (22U)
1859#define AIPS_PACRJ_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_SP2_SHIFT)) & AIPS_PACRJ_SP2_MASK)
1860#define AIPS_PACRJ_SP2 AIPS_PACRJ_SP2_MASK
1861#define AIPS_PACRJ_TP1_MASK (0x1000000U)
1862#define AIPS_PACRJ_TP1_SHIFT (24U)
1863#define AIPS_PACRJ_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_TP1_SHIFT)) & AIPS_PACRJ_TP1_MASK)
1864#define AIPS_PACRJ_TP1 AIPS_PACRJ_TP1_MASK
1865#define AIPS_PACRJ_WP1_MASK (0x2000000U)
1866#define AIPS_PACRJ_WP1_SHIFT (25U)
1867#define AIPS_PACRJ_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_WP1_SHIFT)) & AIPS_PACRJ_WP1_MASK)
1868#define AIPS_PACRJ_WP1 AIPS_PACRJ_WP1_MASK
1869#define AIPS_PACRJ_SP1_MASK (0x4000000U)
1870#define AIPS_PACRJ_SP1_SHIFT (26U)
1871#define AIPS_PACRJ_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_SP1_SHIFT)) & AIPS_PACRJ_SP1_MASK)
1872#define AIPS_PACRJ_SP1 AIPS_PACRJ_SP1_MASK
1873#define AIPS_PACRJ_TP0_MASK (0x10000000U)
1874#define AIPS_PACRJ_TP0_SHIFT (28U)
1875#define AIPS_PACRJ_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_TP0_SHIFT)) & AIPS_PACRJ_TP0_MASK)
1876#define AIPS_PACRJ_TP0 AIPS_PACRJ_TP0_MASK
1877#define AIPS_PACRJ_WP0_MASK (0x20000000U)
1878#define AIPS_PACRJ_WP0_SHIFT (29U)
1879#define AIPS_PACRJ_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_WP0_SHIFT)) & AIPS_PACRJ_WP0_MASK)
1880#define AIPS_PACRJ_WP0 AIPS_PACRJ_WP0_MASK
1881#define AIPS_PACRJ_SP0_MASK (0x40000000U)
1882#define AIPS_PACRJ_SP0_SHIFT (30U)
1883#define AIPS_PACRJ_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_SP0_SHIFT)) & AIPS_PACRJ_SP0_MASK)
1884#define AIPS_PACRJ_SP0 AIPS_PACRJ_SP0_MASK
1885
1886/*! @name PACRK - Peripheral Access Control Register */
1887#define AIPS_PACRK_TP7_MASK (0x1U)
1888#define AIPS_PACRK_TP7_SHIFT (0U)
1889#define AIPS_PACRK_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_TP7_SHIFT)) & AIPS_PACRK_TP7_MASK)
1890#define AIPS_PACRK_TP7 AIPS_PACRK_TP7_MASK
1891#define AIPS_PACRK_WP7_MASK (0x2U)
1892#define AIPS_PACRK_WP7_SHIFT (1U)
1893#define AIPS_PACRK_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_WP7_SHIFT)) & AIPS_PACRK_WP7_MASK)
1894#define AIPS_PACRK_WP7 AIPS_PACRK_WP7_MASK
1895#define AIPS_PACRK_SP7_MASK (0x4U)
1896#define AIPS_PACRK_SP7_SHIFT (2U)
1897#define AIPS_PACRK_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_SP7_SHIFT)) & AIPS_PACRK_SP7_MASK)
1898#define AIPS_PACRK_SP7 AIPS_PACRK_SP7_MASK
1899#define AIPS_PACRK_TP6_MASK (0x10U)
1900#define AIPS_PACRK_TP6_SHIFT (4U)
1901#define AIPS_PACRK_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_TP6_SHIFT)) & AIPS_PACRK_TP6_MASK)
1902#define AIPS_PACRK_TP6 AIPS_PACRK_TP6_MASK
1903#define AIPS_PACRK_WP6_MASK (0x20U)
1904#define AIPS_PACRK_WP6_SHIFT (5U)
1905#define AIPS_PACRK_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_WP6_SHIFT)) & AIPS_PACRK_WP6_MASK)
1906#define AIPS_PACRK_WP6 AIPS_PACRK_WP6_MASK
1907#define AIPS_PACRK_SP6_MASK (0x40U)
1908#define AIPS_PACRK_SP6_SHIFT (6U)
1909#define AIPS_PACRK_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_SP6_SHIFT)) & AIPS_PACRK_SP6_MASK)
1910#define AIPS_PACRK_SP6 AIPS_PACRK_SP6_MASK
1911#define AIPS_PACRK_TP5_MASK (0x100U)
1912#define AIPS_PACRK_TP5_SHIFT (8U)
1913#define AIPS_PACRK_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_TP5_SHIFT)) & AIPS_PACRK_TP5_MASK)
1914#define AIPS_PACRK_TP5 AIPS_PACRK_TP5_MASK
1915#define AIPS_PACRK_WP5_MASK (0x200U)
1916#define AIPS_PACRK_WP5_SHIFT (9U)
1917#define AIPS_PACRK_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_WP5_SHIFT)) & AIPS_PACRK_WP5_MASK)
1918#define AIPS_PACRK_WP5 AIPS_PACRK_WP5_MASK
1919#define AIPS_PACRK_SP5_MASK (0x400U)
1920#define AIPS_PACRK_SP5_SHIFT (10U)
1921#define AIPS_PACRK_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_SP5_SHIFT)) & AIPS_PACRK_SP5_MASK)
1922#define AIPS_PACRK_SP5 AIPS_PACRK_SP5_MASK
1923#define AIPS_PACRK_TP4_MASK (0x1000U)
1924#define AIPS_PACRK_TP4_SHIFT (12U)
1925#define AIPS_PACRK_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_TP4_SHIFT)) & AIPS_PACRK_TP4_MASK)
1926#define AIPS_PACRK_TP4 AIPS_PACRK_TP4_MASK
1927#define AIPS_PACRK_WP4_MASK (0x2000U)
1928#define AIPS_PACRK_WP4_SHIFT (13U)
1929#define AIPS_PACRK_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_WP4_SHIFT)) & AIPS_PACRK_WP4_MASK)
1930#define AIPS_PACRK_WP4 AIPS_PACRK_WP4_MASK
1931#define AIPS_PACRK_SP4_MASK (0x4000U)
1932#define AIPS_PACRK_SP4_SHIFT (14U)
1933#define AIPS_PACRK_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_SP4_SHIFT)) & AIPS_PACRK_SP4_MASK)
1934#define AIPS_PACRK_SP4 AIPS_PACRK_SP4_MASK
1935#define AIPS_PACRK_TP3_MASK (0x10000U)
1936#define AIPS_PACRK_TP3_SHIFT (16U)
1937#define AIPS_PACRK_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_TP3_SHIFT)) & AIPS_PACRK_TP3_MASK)
1938#define AIPS_PACRK_TP3 AIPS_PACRK_TP3_MASK
1939#define AIPS_PACRK_WP3_MASK (0x20000U)
1940#define AIPS_PACRK_WP3_SHIFT (17U)
1941#define AIPS_PACRK_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_WP3_SHIFT)) & AIPS_PACRK_WP3_MASK)
1942#define AIPS_PACRK_WP3 AIPS_PACRK_WP3_MASK
1943#define AIPS_PACRK_SP3_MASK (0x40000U)
1944#define AIPS_PACRK_SP3_SHIFT (18U)
1945#define AIPS_PACRK_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_SP3_SHIFT)) & AIPS_PACRK_SP3_MASK)
1946#define AIPS_PACRK_SP3 AIPS_PACRK_SP3_MASK
1947#define AIPS_PACRK_TP2_MASK (0x100000U)
1948#define AIPS_PACRK_TP2_SHIFT (20U)
1949#define AIPS_PACRK_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_TP2_SHIFT)) & AIPS_PACRK_TP2_MASK)
1950#define AIPS_PACRK_TP2 AIPS_PACRK_TP2_MASK
1951#define AIPS_PACRK_WP2_MASK (0x200000U)
1952#define AIPS_PACRK_WP2_SHIFT (21U)
1953#define AIPS_PACRK_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_WP2_SHIFT)) & AIPS_PACRK_WP2_MASK)
1954#define AIPS_PACRK_WP2 AIPS_PACRK_WP2_MASK
1955#define AIPS_PACRK_SP2_MASK (0x400000U)
1956#define AIPS_PACRK_SP2_SHIFT (22U)
1957#define AIPS_PACRK_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_SP2_SHIFT)) & AIPS_PACRK_SP2_MASK)
1958#define AIPS_PACRK_SP2 AIPS_PACRK_SP2_MASK
1959#define AIPS_PACRK_TP1_MASK (0x1000000U)
1960#define AIPS_PACRK_TP1_SHIFT (24U)
1961#define AIPS_PACRK_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_TP1_SHIFT)) & AIPS_PACRK_TP1_MASK)
1962#define AIPS_PACRK_TP1 AIPS_PACRK_TP1_MASK
1963#define AIPS_PACRK_WP1_MASK (0x2000000U)
1964#define AIPS_PACRK_WP1_SHIFT (25U)
1965#define AIPS_PACRK_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_WP1_SHIFT)) & AIPS_PACRK_WP1_MASK)
1966#define AIPS_PACRK_WP1 AIPS_PACRK_WP1_MASK
1967#define AIPS_PACRK_SP1_MASK (0x4000000U)
1968#define AIPS_PACRK_SP1_SHIFT (26U)
1969#define AIPS_PACRK_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_SP1_SHIFT)) & AIPS_PACRK_SP1_MASK)
1970#define AIPS_PACRK_SP1 AIPS_PACRK_SP1_MASK
1971#define AIPS_PACRK_TP0_MASK (0x10000000U)
1972#define AIPS_PACRK_TP0_SHIFT (28U)
1973#define AIPS_PACRK_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_TP0_SHIFT)) & AIPS_PACRK_TP0_MASK)
1974#define AIPS_PACRK_TP0 AIPS_PACRK_TP0_MASK
1975#define AIPS_PACRK_WP0_MASK (0x20000000U)
1976#define AIPS_PACRK_WP0_SHIFT (29U)
1977#define AIPS_PACRK_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_WP0_SHIFT)) & AIPS_PACRK_WP0_MASK)
1978#define AIPS_PACRK_WP0 AIPS_PACRK_WP0_MASK
1979#define AIPS_PACRK_SP0_MASK (0x40000000U)
1980#define AIPS_PACRK_SP0_SHIFT (30U)
1981#define AIPS_PACRK_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_SP0_SHIFT)) & AIPS_PACRK_SP0_MASK)
1982#define AIPS_PACRK_SP0 AIPS_PACRK_SP0_MASK
1983
1984/*! @name PACRL - Peripheral Access Control Register */
1985#define AIPS_PACRL_TP7_MASK (0x1U)
1986#define AIPS_PACRL_TP7_SHIFT (0U)
1987#define AIPS_PACRL_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_TP7_SHIFT)) & AIPS_PACRL_TP7_MASK)
1988#define AIPS_PACRL_TP7 AIPS_PACRL_TP7_MASK
1989#define AIPS_PACRL_WP7_MASK (0x2U)
1990#define AIPS_PACRL_WP7_SHIFT (1U)
1991#define AIPS_PACRL_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_WP7_SHIFT)) & AIPS_PACRL_WP7_MASK)
1992#define AIPS_PACRL_WP7 AIPS_PACRL_WP7_MASK
1993#define AIPS_PACRL_SP7_MASK (0x4U)
1994#define AIPS_PACRL_SP7_SHIFT (2U)
1995#define AIPS_PACRL_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_SP7_SHIFT)) & AIPS_PACRL_SP7_MASK)
1996#define AIPS_PACRL_SP7 AIPS_PACRL_SP7_MASK
1997#define AIPS_PACRL_TP6_MASK (0x10U)
1998#define AIPS_PACRL_TP6_SHIFT (4U)
1999#define AIPS_PACRL_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_TP6_SHIFT)) & AIPS_PACRL_TP6_MASK)
2000#define AIPS_PACRL_TP6 AIPS_PACRL_TP6_MASK
2001#define AIPS_PACRL_WP6_MASK (0x20U)
2002#define AIPS_PACRL_WP6_SHIFT (5U)
2003#define AIPS_PACRL_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_WP6_SHIFT)) & AIPS_PACRL_WP6_MASK)
2004#define AIPS_PACRL_WP6 AIPS_PACRL_WP6_MASK
2005#define AIPS_PACRL_SP6_MASK (0x40U)
2006#define AIPS_PACRL_SP6_SHIFT (6U)
2007#define AIPS_PACRL_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_SP6_SHIFT)) & AIPS_PACRL_SP6_MASK)
2008#define AIPS_PACRL_SP6 AIPS_PACRL_SP6_MASK
2009#define AIPS_PACRL_TP5_MASK (0x100U)
2010#define AIPS_PACRL_TP5_SHIFT (8U)
2011#define AIPS_PACRL_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_TP5_SHIFT)) & AIPS_PACRL_TP5_MASK)
2012#define AIPS_PACRL_TP5 AIPS_PACRL_TP5_MASK
2013#define AIPS_PACRL_WP5_MASK (0x200U)
2014#define AIPS_PACRL_WP5_SHIFT (9U)
2015#define AIPS_PACRL_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_WP5_SHIFT)) & AIPS_PACRL_WP5_MASK)
2016#define AIPS_PACRL_WP5 AIPS_PACRL_WP5_MASK
2017#define AIPS_PACRL_SP5_MASK (0x400U)
2018#define AIPS_PACRL_SP5_SHIFT (10U)
2019#define AIPS_PACRL_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_SP5_SHIFT)) & AIPS_PACRL_SP5_MASK)
2020#define AIPS_PACRL_SP5 AIPS_PACRL_SP5_MASK
2021#define AIPS_PACRL_TP4_MASK (0x1000U)
2022#define AIPS_PACRL_TP4_SHIFT (12U)
2023#define AIPS_PACRL_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_TP4_SHIFT)) & AIPS_PACRL_TP4_MASK)
2024#define AIPS_PACRL_TP4 AIPS_PACRL_TP4_MASK
2025#define AIPS_PACRL_WP4_MASK (0x2000U)
2026#define AIPS_PACRL_WP4_SHIFT (13U)
2027#define AIPS_PACRL_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_WP4_SHIFT)) & AIPS_PACRL_WP4_MASK)
2028#define AIPS_PACRL_WP4 AIPS_PACRL_WP4_MASK
2029#define AIPS_PACRL_SP4_MASK (0x4000U)
2030#define AIPS_PACRL_SP4_SHIFT (14U)
2031#define AIPS_PACRL_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_SP4_SHIFT)) & AIPS_PACRL_SP4_MASK)
2032#define AIPS_PACRL_SP4 AIPS_PACRL_SP4_MASK
2033#define AIPS_PACRL_TP3_MASK (0x10000U)
2034#define AIPS_PACRL_TP3_SHIFT (16U)
2035#define AIPS_PACRL_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_TP3_SHIFT)) & AIPS_PACRL_TP3_MASK)
2036#define AIPS_PACRL_TP3 AIPS_PACRL_TP3_MASK
2037#define AIPS_PACRL_WP3_MASK (0x20000U)
2038#define AIPS_PACRL_WP3_SHIFT (17U)
2039#define AIPS_PACRL_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_WP3_SHIFT)) & AIPS_PACRL_WP3_MASK)
2040#define AIPS_PACRL_WP3 AIPS_PACRL_WP3_MASK
2041#define AIPS_PACRL_SP3_MASK (0x40000U)
2042#define AIPS_PACRL_SP3_SHIFT (18U)
2043#define AIPS_PACRL_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_SP3_SHIFT)) & AIPS_PACRL_SP3_MASK)
2044#define AIPS_PACRL_SP3 AIPS_PACRL_SP3_MASK
2045#define AIPS_PACRL_TP2_MASK (0x100000U)
2046#define AIPS_PACRL_TP2_SHIFT (20U)
2047#define AIPS_PACRL_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_TP2_SHIFT)) & AIPS_PACRL_TP2_MASK)
2048#define AIPS_PACRL_TP2 AIPS_PACRL_TP2_MASK
2049#define AIPS_PACRL_WP2_MASK (0x200000U)
2050#define AIPS_PACRL_WP2_SHIFT (21U)
2051#define AIPS_PACRL_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_WP2_SHIFT)) & AIPS_PACRL_WP2_MASK)
2052#define AIPS_PACRL_WP2 AIPS_PACRL_WP2_MASK
2053#define AIPS_PACRL_SP2_MASK (0x400000U)
2054#define AIPS_PACRL_SP2_SHIFT (22U)
2055#define AIPS_PACRL_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_SP2_SHIFT)) & AIPS_PACRL_SP2_MASK)
2056#define AIPS_PACRL_SP2 AIPS_PACRL_SP2_MASK
2057#define AIPS_PACRL_TP1_MASK (0x1000000U)
2058#define AIPS_PACRL_TP1_SHIFT (24U)
2059#define AIPS_PACRL_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_TP1_SHIFT)) & AIPS_PACRL_TP1_MASK)
2060#define AIPS_PACRL_TP1 AIPS_PACRL_TP1_MASK
2061#define AIPS_PACRL_WP1_MASK (0x2000000U)
2062#define AIPS_PACRL_WP1_SHIFT (25U)
2063#define AIPS_PACRL_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_WP1_SHIFT)) & AIPS_PACRL_WP1_MASK)
2064#define AIPS_PACRL_WP1 AIPS_PACRL_WP1_MASK
2065#define AIPS_PACRL_SP1_MASK (0x4000000U)
2066#define AIPS_PACRL_SP1_SHIFT (26U)
2067#define AIPS_PACRL_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_SP1_SHIFT)) & AIPS_PACRL_SP1_MASK)
2068#define AIPS_PACRL_SP1 AIPS_PACRL_SP1_MASK
2069#define AIPS_PACRL_TP0_MASK (0x10000000U)
2070#define AIPS_PACRL_TP0_SHIFT (28U)
2071#define AIPS_PACRL_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_TP0_SHIFT)) & AIPS_PACRL_TP0_MASK)
2072#define AIPS_PACRL_TP0 AIPS_PACRL_TP0_MASK
2073#define AIPS_PACRL_WP0_MASK (0x20000000U)
2074#define AIPS_PACRL_WP0_SHIFT (29U)
2075#define AIPS_PACRL_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_WP0_SHIFT)) & AIPS_PACRL_WP0_MASK)
2076#define AIPS_PACRL_WP0 AIPS_PACRL_WP0_MASK
2077#define AIPS_PACRL_SP0_MASK (0x40000000U)
2078#define AIPS_PACRL_SP0_SHIFT (30U)
2079#define AIPS_PACRL_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_SP0_SHIFT)) & AIPS_PACRL_SP0_MASK)
2080#define AIPS_PACRL_SP0 AIPS_PACRL_SP0_MASK
2081
2082/*! @name PACRM - Peripheral Access Control Register */
2083#define AIPS_PACRM_TP7_MASK (0x1U)
2084#define AIPS_PACRM_TP7_SHIFT (0U)
2085#define AIPS_PACRM_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_TP7_SHIFT)) & AIPS_PACRM_TP7_MASK)
2086#define AIPS_PACRM_TP7 AIPS_PACRM_TP7_MASK
2087#define AIPS_PACRM_WP7_MASK (0x2U)
2088#define AIPS_PACRM_WP7_SHIFT (1U)
2089#define AIPS_PACRM_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_WP7_SHIFT)) & AIPS_PACRM_WP7_MASK)
2090#define AIPS_PACRM_WP7 AIPS_PACRM_WP7_MASK
2091#define AIPS_PACRM_SP7_MASK (0x4U)
2092#define AIPS_PACRM_SP7_SHIFT (2U)
2093#define AIPS_PACRM_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_SP7_SHIFT)) & AIPS_PACRM_SP7_MASK)
2094#define AIPS_PACRM_SP7 AIPS_PACRM_SP7_MASK
2095#define AIPS_PACRM_TP6_MASK (0x10U)
2096#define AIPS_PACRM_TP6_SHIFT (4U)
2097#define AIPS_PACRM_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_TP6_SHIFT)) & AIPS_PACRM_TP6_MASK)
2098#define AIPS_PACRM_TP6 AIPS_PACRM_TP6_MASK
2099#define AIPS_PACRM_WP6_MASK (0x20U)
2100#define AIPS_PACRM_WP6_SHIFT (5U)
2101#define AIPS_PACRM_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_WP6_SHIFT)) & AIPS_PACRM_WP6_MASK)
2102#define AIPS_PACRM_WP6 AIPS_PACRM_WP6_MASK
2103#define AIPS_PACRM_SP6_MASK (0x40U)
2104#define AIPS_PACRM_SP6_SHIFT (6U)
2105#define AIPS_PACRM_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_SP6_SHIFT)) & AIPS_PACRM_SP6_MASK)
2106#define AIPS_PACRM_SP6 AIPS_PACRM_SP6_MASK
2107#define AIPS_PACRM_TP5_MASK (0x100U)
2108#define AIPS_PACRM_TP5_SHIFT (8U)
2109#define AIPS_PACRM_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_TP5_SHIFT)) & AIPS_PACRM_TP5_MASK)
2110#define AIPS_PACRM_TP5 AIPS_PACRM_TP5_MASK
2111#define AIPS_PACRM_WP5_MASK (0x200U)
2112#define AIPS_PACRM_WP5_SHIFT (9U)
2113#define AIPS_PACRM_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_WP5_SHIFT)) & AIPS_PACRM_WP5_MASK)
2114#define AIPS_PACRM_WP5 AIPS_PACRM_WP5_MASK
2115#define AIPS_PACRM_SP5_MASK (0x400U)
2116#define AIPS_PACRM_SP5_SHIFT (10U)
2117#define AIPS_PACRM_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_SP5_SHIFT)) & AIPS_PACRM_SP5_MASK)
2118#define AIPS_PACRM_SP5 AIPS_PACRM_SP5_MASK
2119#define AIPS_PACRM_TP4_MASK (0x1000U)
2120#define AIPS_PACRM_TP4_SHIFT (12U)
2121#define AIPS_PACRM_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_TP4_SHIFT)) & AIPS_PACRM_TP4_MASK)
2122#define AIPS_PACRM_TP4 AIPS_PACRM_TP4_MASK
2123#define AIPS_PACRM_WP4_MASK (0x2000U)
2124#define AIPS_PACRM_WP4_SHIFT (13U)
2125#define AIPS_PACRM_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_WP4_SHIFT)) & AIPS_PACRM_WP4_MASK)
2126#define AIPS_PACRM_WP4 AIPS_PACRM_WP4_MASK
2127#define AIPS_PACRM_SP4_MASK (0x4000U)
2128#define AIPS_PACRM_SP4_SHIFT (14U)
2129#define AIPS_PACRM_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_SP4_SHIFT)) & AIPS_PACRM_SP4_MASK)
2130#define AIPS_PACRM_SP4 AIPS_PACRM_SP4_MASK
2131#define AIPS_PACRM_TP3_MASK (0x10000U)
2132#define AIPS_PACRM_TP3_SHIFT (16U)
2133#define AIPS_PACRM_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_TP3_SHIFT)) & AIPS_PACRM_TP3_MASK)
2134#define AIPS_PACRM_TP3 AIPS_PACRM_TP3_MASK
2135#define AIPS_PACRM_WP3_MASK (0x20000U)
2136#define AIPS_PACRM_WP3_SHIFT (17U)
2137#define AIPS_PACRM_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_WP3_SHIFT)) & AIPS_PACRM_WP3_MASK)
2138#define AIPS_PACRM_WP3 AIPS_PACRM_WP3_MASK
2139#define AIPS_PACRM_SP3_MASK (0x40000U)
2140#define AIPS_PACRM_SP3_SHIFT (18U)
2141#define AIPS_PACRM_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_SP3_SHIFT)) & AIPS_PACRM_SP3_MASK)
2142#define AIPS_PACRM_SP3 AIPS_PACRM_SP3_MASK
2143#define AIPS_PACRM_TP2_MASK (0x100000U)
2144#define AIPS_PACRM_TP2_SHIFT (20U)
2145#define AIPS_PACRM_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_TP2_SHIFT)) & AIPS_PACRM_TP2_MASK)
2146#define AIPS_PACRM_TP2 AIPS_PACRM_TP2_MASK
2147#define AIPS_PACRM_WP2_MASK (0x200000U)
2148#define AIPS_PACRM_WP2_SHIFT (21U)
2149#define AIPS_PACRM_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_WP2_SHIFT)) & AIPS_PACRM_WP2_MASK)
2150#define AIPS_PACRM_WP2 AIPS_PACRM_WP2_MASK
2151#define AIPS_PACRM_SP2_MASK (0x400000U)
2152#define AIPS_PACRM_SP2_SHIFT (22U)
2153#define AIPS_PACRM_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_SP2_SHIFT)) & AIPS_PACRM_SP2_MASK)
2154#define AIPS_PACRM_SP2 AIPS_PACRM_SP2_MASK
2155#define AIPS_PACRM_TP1_MASK (0x1000000U)
2156#define AIPS_PACRM_TP1_SHIFT (24U)
2157#define AIPS_PACRM_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_TP1_SHIFT)) & AIPS_PACRM_TP1_MASK)
2158#define AIPS_PACRM_TP1 AIPS_PACRM_TP1_MASK
2159#define AIPS_PACRM_WP1_MASK (0x2000000U)
2160#define AIPS_PACRM_WP1_SHIFT (25U)
2161#define AIPS_PACRM_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_WP1_SHIFT)) & AIPS_PACRM_WP1_MASK)
2162#define AIPS_PACRM_WP1 AIPS_PACRM_WP1_MASK
2163#define AIPS_PACRM_SP1_MASK (0x4000000U)
2164#define AIPS_PACRM_SP1_SHIFT (26U)
2165#define AIPS_PACRM_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_SP1_SHIFT)) & AIPS_PACRM_SP1_MASK)
2166#define AIPS_PACRM_SP1 AIPS_PACRM_SP1_MASK
2167#define AIPS_PACRM_TP0_MASK (0x10000000U)
2168#define AIPS_PACRM_TP0_SHIFT (28U)
2169#define AIPS_PACRM_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_TP0_SHIFT)) & AIPS_PACRM_TP0_MASK)
2170#define AIPS_PACRM_TP0 AIPS_PACRM_TP0_MASK
2171#define AIPS_PACRM_WP0_MASK (0x20000000U)
2172#define AIPS_PACRM_WP0_SHIFT (29U)
2173#define AIPS_PACRM_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_WP0_SHIFT)) & AIPS_PACRM_WP0_MASK)
2174#define AIPS_PACRM_WP0 AIPS_PACRM_WP0_MASK
2175#define AIPS_PACRM_SP0_MASK (0x40000000U)
2176#define AIPS_PACRM_SP0_SHIFT (30U)
2177#define AIPS_PACRM_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_SP0_SHIFT)) & AIPS_PACRM_SP0_MASK)
2178#define AIPS_PACRM_SP0 AIPS_PACRM_SP0_MASK
2179
2180/*! @name PACRN - Peripheral Access Control Register */
2181#define AIPS_PACRN_TP7_MASK (0x1U)
2182#define AIPS_PACRN_TP7_SHIFT (0U)
2183#define AIPS_PACRN_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_TP7_SHIFT)) & AIPS_PACRN_TP7_MASK)
2184#define AIPS_PACRN_TP7 AIPS_PACRN_TP7_MASK
2185#define AIPS_PACRN_WP7_MASK (0x2U)
2186#define AIPS_PACRN_WP7_SHIFT (1U)
2187#define AIPS_PACRN_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_WP7_SHIFT)) & AIPS_PACRN_WP7_MASK)
2188#define AIPS_PACRN_WP7 AIPS_PACRN_WP7_MASK
2189#define AIPS_PACRN_SP7_MASK (0x4U)
2190#define AIPS_PACRN_SP7_SHIFT (2U)
2191#define AIPS_PACRN_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_SP7_SHIFT)) & AIPS_PACRN_SP7_MASK)
2192#define AIPS_PACRN_SP7 AIPS_PACRN_SP7_MASK
2193#define AIPS_PACRN_TP6_MASK (0x10U)
2194#define AIPS_PACRN_TP6_SHIFT (4U)
2195#define AIPS_PACRN_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_TP6_SHIFT)) & AIPS_PACRN_TP6_MASK)
2196#define AIPS_PACRN_TP6 AIPS_PACRN_TP6_MASK
2197#define AIPS_PACRN_WP6_MASK (0x20U)
2198#define AIPS_PACRN_WP6_SHIFT (5U)
2199#define AIPS_PACRN_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_WP6_SHIFT)) & AIPS_PACRN_WP6_MASK)
2200#define AIPS_PACRN_WP6 AIPS_PACRN_WP6_MASK
2201#define AIPS_PACRN_SP6_MASK (0x40U)
2202#define AIPS_PACRN_SP6_SHIFT (6U)
2203#define AIPS_PACRN_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_SP6_SHIFT)) & AIPS_PACRN_SP6_MASK)
2204#define AIPS_PACRN_SP6 AIPS_PACRN_SP6_MASK
2205#define AIPS_PACRN_TP5_MASK (0x100U)
2206#define AIPS_PACRN_TP5_SHIFT (8U)
2207#define AIPS_PACRN_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_TP5_SHIFT)) & AIPS_PACRN_TP5_MASK)
2208#define AIPS_PACRN_TP5 AIPS_PACRN_TP5_MASK
2209#define AIPS_PACRN_WP5_MASK (0x200U)
2210#define AIPS_PACRN_WP5_SHIFT (9U)
2211#define AIPS_PACRN_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_WP5_SHIFT)) & AIPS_PACRN_WP5_MASK)
2212#define AIPS_PACRN_WP5 AIPS_PACRN_WP5_MASK
2213#define AIPS_PACRN_SP5_MASK (0x400U)
2214#define AIPS_PACRN_SP5_SHIFT (10U)
2215#define AIPS_PACRN_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_SP5_SHIFT)) & AIPS_PACRN_SP5_MASK)
2216#define AIPS_PACRN_SP5 AIPS_PACRN_SP5_MASK
2217#define AIPS_PACRN_TP4_MASK (0x1000U)
2218#define AIPS_PACRN_TP4_SHIFT (12U)
2219#define AIPS_PACRN_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_TP4_SHIFT)) & AIPS_PACRN_TP4_MASK)
2220#define AIPS_PACRN_TP4 AIPS_PACRN_TP4_MASK
2221#define AIPS_PACRN_WP4_MASK (0x2000U)
2222#define AIPS_PACRN_WP4_SHIFT (13U)
2223#define AIPS_PACRN_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_WP4_SHIFT)) & AIPS_PACRN_WP4_MASK)
2224#define AIPS_PACRN_WP4 AIPS_PACRN_WP4_MASK
2225#define AIPS_PACRN_SP4_MASK (0x4000U)
2226#define AIPS_PACRN_SP4_SHIFT (14U)
2227#define AIPS_PACRN_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_SP4_SHIFT)) & AIPS_PACRN_SP4_MASK)
2228#define AIPS_PACRN_SP4 AIPS_PACRN_SP4_MASK
2229#define AIPS_PACRN_TP3_MASK (0x10000U)
2230#define AIPS_PACRN_TP3_SHIFT (16U)
2231#define AIPS_PACRN_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_TP3_SHIFT)) & AIPS_PACRN_TP3_MASK)
2232#define AIPS_PACRN_TP3 AIPS_PACRN_TP3_MASK
2233#define AIPS_PACRN_WP3_MASK (0x20000U)
2234#define AIPS_PACRN_WP3_SHIFT (17U)
2235#define AIPS_PACRN_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_WP3_SHIFT)) & AIPS_PACRN_WP3_MASK)
2236#define AIPS_PACRN_WP3 AIPS_PACRN_WP3_MASK
2237#define AIPS_PACRN_SP3_MASK (0x40000U)
2238#define AIPS_PACRN_SP3_SHIFT (18U)
2239#define AIPS_PACRN_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_SP3_SHIFT)) & AIPS_PACRN_SP3_MASK)
2240#define AIPS_PACRN_SP3 AIPS_PACRN_SP3_MASK
2241#define AIPS_PACRN_TP2_MASK (0x100000U)
2242#define AIPS_PACRN_TP2_SHIFT (20U)
2243#define AIPS_PACRN_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_TP2_SHIFT)) & AIPS_PACRN_TP2_MASK)
2244#define AIPS_PACRN_TP2 AIPS_PACRN_TP2_MASK
2245#define AIPS_PACRN_WP2_MASK (0x200000U)
2246#define AIPS_PACRN_WP2_SHIFT (21U)
2247#define AIPS_PACRN_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_WP2_SHIFT)) & AIPS_PACRN_WP2_MASK)
2248#define AIPS_PACRN_WP2 AIPS_PACRN_WP2_MASK
2249#define AIPS_PACRN_SP2_MASK (0x400000U)
2250#define AIPS_PACRN_SP2_SHIFT (22U)
2251#define AIPS_PACRN_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_SP2_SHIFT)) & AIPS_PACRN_SP2_MASK)
2252#define AIPS_PACRN_SP2 AIPS_PACRN_SP2_MASK
2253#define AIPS_PACRN_TP1_MASK (0x1000000U)
2254#define AIPS_PACRN_TP1_SHIFT (24U)
2255#define AIPS_PACRN_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_TP1_SHIFT)) & AIPS_PACRN_TP1_MASK)
2256#define AIPS_PACRN_TP1 AIPS_PACRN_TP1_MASK
2257#define AIPS_PACRN_WP1_MASK (0x2000000U)
2258#define AIPS_PACRN_WP1_SHIFT (25U)
2259#define AIPS_PACRN_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_WP1_SHIFT)) & AIPS_PACRN_WP1_MASK)
2260#define AIPS_PACRN_WP1 AIPS_PACRN_WP1_MASK
2261#define AIPS_PACRN_SP1_MASK (0x4000000U)
2262#define AIPS_PACRN_SP1_SHIFT (26U)
2263#define AIPS_PACRN_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_SP1_SHIFT)) & AIPS_PACRN_SP1_MASK)
2264#define AIPS_PACRN_SP1 AIPS_PACRN_SP1_MASK
2265#define AIPS_PACRN_TP0_MASK (0x10000000U)
2266#define AIPS_PACRN_TP0_SHIFT (28U)
2267#define AIPS_PACRN_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_TP0_SHIFT)) & AIPS_PACRN_TP0_MASK)
2268#define AIPS_PACRN_TP0 AIPS_PACRN_TP0_MASK
2269#define AIPS_PACRN_WP0_MASK (0x20000000U)
2270#define AIPS_PACRN_WP0_SHIFT (29U)
2271#define AIPS_PACRN_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_WP0_SHIFT)) & AIPS_PACRN_WP0_MASK)
2272#define AIPS_PACRN_WP0 AIPS_PACRN_WP0_MASK
2273#define AIPS_PACRN_SP0_MASK (0x40000000U)
2274#define AIPS_PACRN_SP0_SHIFT (30U)
2275#define AIPS_PACRN_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_SP0_SHIFT)) & AIPS_PACRN_SP0_MASK)
2276#define AIPS_PACRN_SP0 AIPS_PACRN_SP0_MASK
2277
2278/*! @name PACRO - Peripheral Access Control Register */
2279#define AIPS_PACRO_TP7_MASK (0x1U)
2280#define AIPS_PACRO_TP7_SHIFT (0U)
2281#define AIPS_PACRO_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_TP7_SHIFT)) & AIPS_PACRO_TP7_MASK)
2282#define AIPS_PACRO_TP7 AIPS_PACRO_TP7_MASK
2283#define AIPS_PACRO_WP7_MASK (0x2U)
2284#define AIPS_PACRO_WP7_SHIFT (1U)
2285#define AIPS_PACRO_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_WP7_SHIFT)) & AIPS_PACRO_WP7_MASK)
2286#define AIPS_PACRO_WP7 AIPS_PACRO_WP7_MASK
2287#define AIPS_PACRO_SP7_MASK (0x4U)
2288#define AIPS_PACRO_SP7_SHIFT (2U)
2289#define AIPS_PACRO_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_SP7_SHIFT)) & AIPS_PACRO_SP7_MASK)
2290#define AIPS_PACRO_SP7 AIPS_PACRO_SP7_MASK
2291#define AIPS_PACRO_TP6_MASK (0x10U)
2292#define AIPS_PACRO_TP6_SHIFT (4U)
2293#define AIPS_PACRO_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_TP6_SHIFT)) & AIPS_PACRO_TP6_MASK)
2294#define AIPS_PACRO_TP6 AIPS_PACRO_TP6_MASK
2295#define AIPS_PACRO_WP6_MASK (0x20U)
2296#define AIPS_PACRO_WP6_SHIFT (5U)
2297#define AIPS_PACRO_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_WP6_SHIFT)) & AIPS_PACRO_WP6_MASK)
2298#define AIPS_PACRO_WP6 AIPS_PACRO_WP6_MASK
2299#define AIPS_PACRO_SP6_MASK (0x40U)
2300#define AIPS_PACRO_SP6_SHIFT (6U)
2301#define AIPS_PACRO_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_SP6_SHIFT)) & AIPS_PACRO_SP6_MASK)
2302#define AIPS_PACRO_SP6 AIPS_PACRO_SP6_MASK
2303#define AIPS_PACRO_TP5_MASK (0x100U)
2304#define AIPS_PACRO_TP5_SHIFT (8U)
2305#define AIPS_PACRO_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_TP5_SHIFT)) & AIPS_PACRO_TP5_MASK)
2306#define AIPS_PACRO_TP5 AIPS_PACRO_TP5_MASK
2307#define AIPS_PACRO_WP5_MASK (0x200U)
2308#define AIPS_PACRO_WP5_SHIFT (9U)
2309#define AIPS_PACRO_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_WP5_SHIFT)) & AIPS_PACRO_WP5_MASK)
2310#define AIPS_PACRO_WP5 AIPS_PACRO_WP5_MASK
2311#define AIPS_PACRO_SP5_MASK (0x400U)
2312#define AIPS_PACRO_SP5_SHIFT (10U)
2313#define AIPS_PACRO_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_SP5_SHIFT)) & AIPS_PACRO_SP5_MASK)
2314#define AIPS_PACRO_SP5 AIPS_PACRO_SP5_MASK
2315#define AIPS_PACRO_TP4_MASK (0x1000U)
2316#define AIPS_PACRO_TP4_SHIFT (12U)
2317#define AIPS_PACRO_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_TP4_SHIFT)) & AIPS_PACRO_TP4_MASK)
2318#define AIPS_PACRO_TP4 AIPS_PACRO_TP4_MASK
2319#define AIPS_PACRO_WP4_MASK (0x2000U)
2320#define AIPS_PACRO_WP4_SHIFT (13U)
2321#define AIPS_PACRO_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_WP4_SHIFT)) & AIPS_PACRO_WP4_MASK)
2322#define AIPS_PACRO_WP4 AIPS_PACRO_WP4_MASK
2323#define AIPS_PACRO_SP4_MASK (0x4000U)
2324#define AIPS_PACRO_SP4_SHIFT (14U)
2325#define AIPS_PACRO_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_SP4_SHIFT)) & AIPS_PACRO_SP4_MASK)
2326#define AIPS_PACRO_SP4 AIPS_PACRO_SP4_MASK
2327#define AIPS_PACRO_TP3_MASK (0x10000U)
2328#define AIPS_PACRO_TP3_SHIFT (16U)
2329#define AIPS_PACRO_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_TP3_SHIFT)) & AIPS_PACRO_TP3_MASK)
2330#define AIPS_PACRO_TP3 AIPS_PACRO_TP3_MASK
2331#define AIPS_PACRO_WP3_MASK (0x20000U)
2332#define AIPS_PACRO_WP3_SHIFT (17U)
2333#define AIPS_PACRO_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_WP3_SHIFT)) & AIPS_PACRO_WP3_MASK)
2334#define AIPS_PACRO_WP3 AIPS_PACRO_WP3_MASK
2335#define AIPS_PACRO_SP3_MASK (0x40000U)
2336#define AIPS_PACRO_SP3_SHIFT (18U)
2337#define AIPS_PACRO_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_SP3_SHIFT)) & AIPS_PACRO_SP3_MASK)
2338#define AIPS_PACRO_SP3 AIPS_PACRO_SP3_MASK
2339#define AIPS_PACRO_TP2_MASK (0x100000U)
2340#define AIPS_PACRO_TP2_SHIFT (20U)
2341#define AIPS_PACRO_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_TP2_SHIFT)) & AIPS_PACRO_TP2_MASK)
2342#define AIPS_PACRO_TP2 AIPS_PACRO_TP2_MASK
2343#define AIPS_PACRO_WP2_MASK (0x200000U)
2344#define AIPS_PACRO_WP2_SHIFT (21U)
2345#define AIPS_PACRO_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_WP2_SHIFT)) & AIPS_PACRO_WP2_MASK)
2346#define AIPS_PACRO_WP2 AIPS_PACRO_WP2_MASK
2347#define AIPS_PACRO_SP2_MASK (0x400000U)
2348#define AIPS_PACRO_SP2_SHIFT (22U)
2349#define AIPS_PACRO_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_SP2_SHIFT)) & AIPS_PACRO_SP2_MASK)
2350#define AIPS_PACRO_SP2 AIPS_PACRO_SP2_MASK
2351#define AIPS_PACRO_TP1_MASK (0x1000000U)
2352#define AIPS_PACRO_TP1_SHIFT (24U)
2353#define AIPS_PACRO_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_TP1_SHIFT)) & AIPS_PACRO_TP1_MASK)
2354#define AIPS_PACRO_TP1 AIPS_PACRO_TP1_MASK
2355#define AIPS_PACRO_WP1_MASK (0x2000000U)
2356#define AIPS_PACRO_WP1_SHIFT (25U)
2357#define AIPS_PACRO_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_WP1_SHIFT)) & AIPS_PACRO_WP1_MASK)
2358#define AIPS_PACRO_WP1 AIPS_PACRO_WP1_MASK
2359#define AIPS_PACRO_SP1_MASK (0x4000000U)
2360#define AIPS_PACRO_SP1_SHIFT (26U)
2361#define AIPS_PACRO_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_SP1_SHIFT)) & AIPS_PACRO_SP1_MASK)
2362#define AIPS_PACRO_SP1 AIPS_PACRO_SP1_MASK
2363#define AIPS_PACRO_TP0_MASK (0x10000000U)
2364#define AIPS_PACRO_TP0_SHIFT (28U)
2365#define AIPS_PACRO_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_TP0_SHIFT)) & AIPS_PACRO_TP0_MASK)
2366#define AIPS_PACRO_TP0 AIPS_PACRO_TP0_MASK
2367#define AIPS_PACRO_WP0_MASK (0x20000000U)
2368#define AIPS_PACRO_WP0_SHIFT (29U)
2369#define AIPS_PACRO_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_WP0_SHIFT)) & AIPS_PACRO_WP0_MASK)
2370#define AIPS_PACRO_WP0 AIPS_PACRO_WP0_MASK
2371#define AIPS_PACRO_SP0_MASK (0x40000000U)
2372#define AIPS_PACRO_SP0_SHIFT (30U)
2373#define AIPS_PACRO_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_SP0_SHIFT)) & AIPS_PACRO_SP0_MASK)
2374#define AIPS_PACRO_SP0 AIPS_PACRO_SP0_MASK
2375
2376/*! @name PACRP - Peripheral Access Control Register */
2377#define AIPS_PACRP_TP7_MASK (0x1U)
2378#define AIPS_PACRP_TP7_SHIFT (0U)
2379#define AIPS_PACRP_TP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_TP7_SHIFT)) & AIPS_PACRP_TP7_MASK)
2380#define AIPS_PACRP_TP7 AIPS_PACRP_TP7_MASK
2381#define AIPS_PACRP_WP7_MASK (0x2U)
2382#define AIPS_PACRP_WP7_SHIFT (1U)
2383#define AIPS_PACRP_WP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_WP7_SHIFT)) & AIPS_PACRP_WP7_MASK)
2384#define AIPS_PACRP_WP7 AIPS_PACRP_WP7_MASK
2385#define AIPS_PACRP_SP7_MASK (0x4U)
2386#define AIPS_PACRP_SP7_SHIFT (2U)
2387#define AIPS_PACRP_SP7_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_SP7_SHIFT)) & AIPS_PACRP_SP7_MASK)
2388#define AIPS_PACRP_SP7 AIPS_PACRP_SP7_MASK
2389#define AIPS_PACRP_TP6_MASK (0x10U)
2390#define AIPS_PACRP_TP6_SHIFT (4U)
2391#define AIPS_PACRP_TP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_TP6_SHIFT)) & AIPS_PACRP_TP6_MASK)
2392#define AIPS_PACRP_TP6 AIPS_PACRP_TP6_MASK
2393#define AIPS_PACRP_WP6_MASK (0x20U)
2394#define AIPS_PACRP_WP6_SHIFT (5U)
2395#define AIPS_PACRP_WP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_WP6_SHIFT)) & AIPS_PACRP_WP6_MASK)
2396#define AIPS_PACRP_WP6 AIPS_PACRP_WP6_MASK
2397#define AIPS_PACRP_SP6_MASK (0x40U)
2398#define AIPS_PACRP_SP6_SHIFT (6U)
2399#define AIPS_PACRP_SP6_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_SP6_SHIFT)) & AIPS_PACRP_SP6_MASK)
2400#define AIPS_PACRP_SP6 AIPS_PACRP_SP6_MASK
2401#define AIPS_PACRP_TP5_MASK (0x100U)
2402#define AIPS_PACRP_TP5_SHIFT (8U)
2403#define AIPS_PACRP_TP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_TP5_SHIFT)) & AIPS_PACRP_TP5_MASK)
2404#define AIPS_PACRP_TP5 AIPS_PACRP_TP5_MASK
2405#define AIPS_PACRP_WP5_MASK (0x200U)
2406#define AIPS_PACRP_WP5_SHIFT (9U)
2407#define AIPS_PACRP_WP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_WP5_SHIFT)) & AIPS_PACRP_WP5_MASK)
2408#define AIPS_PACRP_WP5 AIPS_PACRP_WP5_MASK
2409#define AIPS_PACRP_SP5_MASK (0x400U)
2410#define AIPS_PACRP_SP5_SHIFT (10U)
2411#define AIPS_PACRP_SP5_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_SP5_SHIFT)) & AIPS_PACRP_SP5_MASK)
2412#define AIPS_PACRP_SP5 AIPS_PACRP_SP5_MASK
2413#define AIPS_PACRP_TP4_MASK (0x1000U)
2414#define AIPS_PACRP_TP4_SHIFT (12U)
2415#define AIPS_PACRP_TP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_TP4_SHIFT)) & AIPS_PACRP_TP4_MASK)
2416#define AIPS_PACRP_TP4 AIPS_PACRP_TP4_MASK
2417#define AIPS_PACRP_WP4_MASK (0x2000U)
2418#define AIPS_PACRP_WP4_SHIFT (13U)
2419#define AIPS_PACRP_WP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_WP4_SHIFT)) & AIPS_PACRP_WP4_MASK)
2420#define AIPS_PACRP_WP4 AIPS_PACRP_WP4_MASK
2421#define AIPS_PACRP_SP4_MASK (0x4000U)
2422#define AIPS_PACRP_SP4_SHIFT (14U)
2423#define AIPS_PACRP_SP4_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_SP4_SHIFT)) & AIPS_PACRP_SP4_MASK)
2424#define AIPS_PACRP_SP4 AIPS_PACRP_SP4_MASK
2425#define AIPS_PACRP_TP3_MASK (0x10000U)
2426#define AIPS_PACRP_TP3_SHIFT (16U)
2427#define AIPS_PACRP_TP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_TP3_SHIFT)) & AIPS_PACRP_TP3_MASK)
2428#define AIPS_PACRP_TP3 AIPS_PACRP_TP3_MASK
2429#define AIPS_PACRP_WP3_MASK (0x20000U)
2430#define AIPS_PACRP_WP3_SHIFT (17U)
2431#define AIPS_PACRP_WP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_WP3_SHIFT)) & AIPS_PACRP_WP3_MASK)
2432#define AIPS_PACRP_WP3 AIPS_PACRP_WP3_MASK
2433#define AIPS_PACRP_SP3_MASK (0x40000U)
2434#define AIPS_PACRP_SP3_SHIFT (18U)
2435#define AIPS_PACRP_SP3_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_SP3_SHIFT)) & AIPS_PACRP_SP3_MASK)
2436#define AIPS_PACRP_SP3 AIPS_PACRP_SP3_MASK
2437#define AIPS_PACRP_TP2_MASK (0x100000U)
2438#define AIPS_PACRP_TP2_SHIFT (20U)
2439#define AIPS_PACRP_TP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_TP2_SHIFT)) & AIPS_PACRP_TP2_MASK)
2440#define AIPS_PACRP_TP2 AIPS_PACRP_TP2_MASK
2441#define AIPS_PACRP_WP2_MASK (0x200000U)
2442#define AIPS_PACRP_WP2_SHIFT (21U)
2443#define AIPS_PACRP_WP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_WP2_SHIFT)) & AIPS_PACRP_WP2_MASK)
2444#define AIPS_PACRP_WP2 AIPS_PACRP_WP2_MASK
2445#define AIPS_PACRP_SP2_MASK (0x400000U)
2446#define AIPS_PACRP_SP2_SHIFT (22U)
2447#define AIPS_PACRP_SP2_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_SP2_SHIFT)) & AIPS_PACRP_SP2_MASK)
2448#define AIPS_PACRP_SP2 AIPS_PACRP_SP2_MASK
2449#define AIPS_PACRP_TP1_MASK (0x1000000U)
2450#define AIPS_PACRP_TP1_SHIFT (24U)
2451#define AIPS_PACRP_TP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_TP1_SHIFT)) & AIPS_PACRP_TP1_MASK)
2452#define AIPS_PACRP_TP1 AIPS_PACRP_TP1_MASK
2453#define AIPS_PACRP_WP1_MASK (0x2000000U)
2454#define AIPS_PACRP_WP1_SHIFT (25U)
2455#define AIPS_PACRP_WP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_WP1_SHIFT)) & AIPS_PACRP_WP1_MASK)
2456#define AIPS_PACRP_WP1 AIPS_PACRP_WP1_MASK
2457#define AIPS_PACRP_SP1_MASK (0x4000000U)
2458#define AIPS_PACRP_SP1_SHIFT (26U)
2459#define AIPS_PACRP_SP1_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_SP1_SHIFT)) & AIPS_PACRP_SP1_MASK)
2460#define AIPS_PACRP_SP1 AIPS_PACRP_SP1_MASK
2461#define AIPS_PACRP_TP0_MASK (0x10000000U)
2462#define AIPS_PACRP_TP0_SHIFT (28U)
2463#define AIPS_PACRP_TP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_TP0_SHIFT)) & AIPS_PACRP_TP0_MASK)
2464#define AIPS_PACRP_TP0 AIPS_PACRP_TP0_MASK
2465#define AIPS_PACRP_WP0_MASK (0x20000000U)
2466#define AIPS_PACRP_WP0_SHIFT (29U)
2467#define AIPS_PACRP_WP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_WP0_SHIFT)) & AIPS_PACRP_WP0_MASK)
2468#define AIPS_PACRP_WP0 AIPS_PACRP_WP0_MASK
2469#define AIPS_PACRP_SP0_MASK (0x40000000U)
2470#define AIPS_PACRP_SP0_SHIFT (30U)
2471#define AIPS_PACRP_SP0_SET(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_SP0_SHIFT)) & AIPS_PACRP_SP0_MASK)
2472#define AIPS_PACRP_SP0 AIPS_PACRP_SP0_MASK
2473
2474
2475/*!
2476 * @}
2477 */ /* end of group AIPS_Register_Masks */
2478
2479
2480/* AIPS - Peripheral instance base addresses */
2481/** Peripheral AIPS0 base address */
2482#define AIPS0_BASE (0x40000000u)
2483/** Peripheral AIPS0 base pointer */
2484#define AIPS0 ((AIPS_TypeDef *)AIPS0_BASE)
2485/** Peripheral AIPS1 base address */
2486#define AIPS1_BASE (0x40080000u)
2487/** Peripheral AIPS1 base pointer */
2488#define AIPS1 ((AIPS_TypeDef *)AIPS1_BASE)
2489/** Array initializer of AIPS peripheral base addresses */
2490#define AIPS_BASE_ADDRS { AIPS0_BASE, AIPS1_BASE }
2491/** Array initializer of AIPS peripheral base pointers */
2492#define AIPS_BASE_PTRS { AIPS0, AIPS1 }
2493
2494/*!
2495 * @}
2496 */ /* end of group AIPS_Peripheral_Access_Layer */
2497
2498
2499/* ----------------------------------------------------------------------------
2500 -- AXBS Peripheral Access Layer
2501 ---------------------------------------------------------------------------- */
2502
2503/*!
2504 * @addtogroup AXBS_Peripheral_Access_Layer AXBS Peripheral Access Layer
2505 * @{
2506 */
2507
2508/** AXBS - Register Layout Typedef */
2509typedef struct {
2510 struct { /* offset: 0x0, array step: 0x100 */
2511 __IO uint32_t PRS; /**< Priority Registers Slave, array offset: 0x0, array step: 0x100 */
2512 uint8_t RESERVED_0[12];
2513 __IO uint32_t CRS; /**< Control Register, array offset: 0x10, array step: 0x100 */
2514 uint8_t RESERVED_1[236];
2515 } SLAVE[5];
2516 uint8_t RESERVED_0[768];
2517 __IO uint32_t MGPCR0; /**< Master General Purpose Control Register, offset: 0x800 */
2518 uint8_t RESERVED_1[252];
2519 __IO uint32_t MGPCR1; /**< Master General Purpose Control Register, offset: 0x900 */
2520 uint8_t RESERVED_2[252];
2521 __IO uint32_t MGPCR2; /**< Master General Purpose Control Register, offset: 0xA00 */
2522 uint8_t RESERVED_3[252];
2523 __IO uint32_t MGPCR3; /**< Master General Purpose Control Register, offset: 0xB00 */
2524 uint8_t RESERVED_4[252];
2525 __IO uint32_t MGPCR4; /**< Master General Purpose Control Register, offset: 0xC00 */
2526 uint8_t RESERVED_5[252];
2527 __IO uint32_t MGPCR5; /**< Master General Purpose Control Register, offset: 0xD00 */
2528 uint8_t RESERVED_6[252];
2529 __IO uint32_t MGPCR6; /**< Master General Purpose Control Register, offset: 0xE00 */
2530} AXBS_TypeDef;
2531
2532/* ----------------------------------------------------------------------------
2533 -- AXBS Register Masks
2534 ---------------------------------------------------------------------------- */
2535
2536/*!
2537 * @addtogroup AXBS_Register_Masks AXBS Register Masks
2538 * @{
2539 */
2540
2541/*! @name PRS - Priority Registers Slave */
2542#define AXBS_PRS_M0_MASK (0x7U)
2543#define AXBS_PRS_M0_SHIFT (0U)
2544#define AXBS_PRS_M0_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M0_SHIFT)) & AXBS_PRS_M0_MASK)
2545#define AXBS_PRS_M0 AXBS_PRS_M0_MASK
2546#define AXBS_PRS_M1_MASK (0x70U)
2547#define AXBS_PRS_M1_SHIFT (4U)
2548#define AXBS_PRS_M1_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M1_SHIFT)) & AXBS_PRS_M1_MASK)
2549#define AXBS_PRS_M1 AXBS_PRS_M1_MASK
2550#define AXBS_PRS_M2_MASK (0x700U)
2551#define AXBS_PRS_M2_SHIFT (8U)
2552#define AXBS_PRS_M2_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M2_SHIFT)) & AXBS_PRS_M2_MASK)
2553#define AXBS_PRS_M2 AXBS_PRS_M2_MASK
2554#define AXBS_PRS_M3_MASK (0x7000U)
2555#define AXBS_PRS_M3_SHIFT (12U)
2556#define AXBS_PRS_M3_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M3_SHIFT)) & AXBS_PRS_M3_MASK)
2557#define AXBS_PRS_M3 AXBS_PRS_M3_MASK
2558#define AXBS_PRS_M4_MASK (0x70000U)
2559#define AXBS_PRS_M4_SHIFT (16U)
2560#define AXBS_PRS_M4_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M4_SHIFT)) & AXBS_PRS_M4_MASK)
2561#define AXBS_PRS_M4 AXBS_PRS_M4_MASK
2562#define AXBS_PRS_M5_MASK (0x700000U)
2563#define AXBS_PRS_M5_SHIFT (20U)
2564#define AXBS_PRS_M5_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M5_SHIFT)) & AXBS_PRS_M5_MASK)
2565#define AXBS_PRS_M5 AXBS_PRS_M5_MASK
2566#define AXBS_PRS_M6_MASK (0x7000000U)
2567#define AXBS_PRS_M6_SHIFT (24U)
2568#define AXBS_PRS_M6_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M6_SHIFT)) & AXBS_PRS_M6_MASK)
2569#define AXBS_PRS_M6 AXBS_PRS_M6_MASK
2570
2571/* The count of AXBS_PRS */
2572#define AXBS_PRS_COUNT (5U)
2573
2574/*! @name CRS - Control Register */
2575#define AXBS_CRS_PARK_MASK (0x7U)
2576#define AXBS_CRS_PARK_SHIFT (0U)
2577#define AXBS_CRS_PARK_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_CRS_PARK_SHIFT)) & AXBS_CRS_PARK_MASK)
2578#define AXBS_CRS_PARK AXBS_CRS_PARK_MASK
2579#define AXBS_CRS_PCTL_MASK (0x30U)
2580#define AXBS_CRS_PCTL_SHIFT (4U)
2581#define AXBS_CRS_PCTL_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_CRS_PCTL_SHIFT)) & AXBS_CRS_PCTL_MASK)
2582#define AXBS_CRS_PCTL AXBS_CRS_PCTL_MASK
2583#define AXBS_CRS_ARB_MASK (0x300U)
2584#define AXBS_CRS_ARB_SHIFT (8U)
2585#define AXBS_CRS_ARB_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_CRS_ARB_SHIFT)) & AXBS_CRS_ARB_MASK)
2586#define AXBS_CRS_ARB AXBS_CRS_ARB_MASK
2587#define AXBS_CRS_HLP_MASK (0x40000000U)
2588#define AXBS_CRS_HLP_SHIFT (30U)
2589#define AXBS_CRS_HLP_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_CRS_HLP_SHIFT)) & AXBS_CRS_HLP_MASK)
2590#define AXBS_CRS_HLP AXBS_CRS_HLP_MASK
2591#define AXBS_CRS_RO_MASK (0x80000000U)
2592#define AXBS_CRS_RO_SHIFT (31U)
2593#define AXBS_CRS_RO_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_CRS_RO_SHIFT)) & AXBS_CRS_RO_MASK)
2594#define AXBS_CRS_RO AXBS_CRS_RO_MASK
2595
2596/* The count of AXBS_CRS */
2597#define AXBS_CRS_COUNT (5U)
2598
2599/*! @name MGPCR0 - Master General Purpose Control Register */
2600#define AXBS_MGPCR0_AULB_MASK (0x7U)
2601#define AXBS_MGPCR0_AULB_SHIFT (0U)
2602#define AXBS_MGPCR0_AULB_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR0_AULB_SHIFT)) & AXBS_MGPCR0_AULB_MASK)
2603#define AXBS_MGPCR0_AULB AXBS_MGPCR0_AULB_MASK
2604
2605/*! @name MGPCR1 - Master General Purpose Control Register */
2606#define AXBS_MGPCR1_AULB_MASK (0x7U)
2607#define AXBS_MGPCR1_AULB_SHIFT (0U)
2608#define AXBS_MGPCR1_AULB_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR1_AULB_SHIFT)) & AXBS_MGPCR1_AULB_MASK)
2609#define AXBS_MGPCR1_AULB AXBS_MGPCR1_AULB_MASK
2610
2611/*! @name MGPCR2 - Master General Purpose Control Register */
2612#define AXBS_MGPCR2_AULB_MASK (0x7U)
2613#define AXBS_MGPCR2_AULB_SHIFT (0U)
2614#define AXBS_MGPCR2_AULB_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR2_AULB_SHIFT)) & AXBS_MGPCR2_AULB_MASK)
2615#define AXBS_MGPCR2_AULB AXBS_MGPCR2_AULB_MASK
2616
2617/*! @name MGPCR3 - Master General Purpose Control Register */
2618#define AXBS_MGPCR3_AULB_MASK (0x7U)
2619#define AXBS_MGPCR3_AULB_SHIFT (0U)
2620#define AXBS_MGPCR3_AULB_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR3_AULB_SHIFT)) & AXBS_MGPCR3_AULB_MASK)
2621#define AXBS_MGPCR3_AULB AXBS_MGPCR3_AULB_MASK
2622
2623/*! @name MGPCR4 - Master General Purpose Control Register */
2624#define AXBS_MGPCR4_AULB_MASK (0x7U)
2625#define AXBS_MGPCR4_AULB_SHIFT (0U)
2626#define AXBS_MGPCR4_AULB_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR4_AULB_SHIFT)) & AXBS_MGPCR4_AULB_MASK)
2627#define AXBS_MGPCR4_AULB AXBS_MGPCR4_AULB_MASK
2628
2629/*! @name MGPCR5 - Master General Purpose Control Register */
2630#define AXBS_MGPCR5_AULB_MASK (0x7U)
2631#define AXBS_MGPCR5_AULB_SHIFT (0U)
2632#define AXBS_MGPCR5_AULB_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR5_AULB_SHIFT)) & AXBS_MGPCR5_AULB_MASK)
2633#define AXBS_MGPCR5_AULB AXBS_MGPCR5_AULB_MASK
2634
2635/*! @name MGPCR6 - Master General Purpose Control Register */
2636#define AXBS_MGPCR6_AULB_MASK (0x7U)
2637#define AXBS_MGPCR6_AULB_SHIFT (0U)
2638#define AXBS_MGPCR6_AULB_SET(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR6_AULB_SHIFT)) & AXBS_MGPCR6_AULB_MASK)
2639#define AXBS_MGPCR6_AULB AXBS_MGPCR6_AULB_MASK
2640
2641
2642/*!
2643 * @}
2644 */ /* end of group AXBS_Register_Masks */
2645
2646
2647/* AXBS - Peripheral instance base addresses */
2648/** Peripheral AXBS base address */
2649#define AXBS_BASE (0x40004000u)
2650/** Peripheral AXBS base pointer */
2651#define AXBS ((AXBS_TypeDef *)AXBS_BASE)
2652/** Array initializer of AXBS peripheral base addresses */
2653#define AXBS_BASE_ADDRS { AXBS_BASE }
2654/** Array initializer of AXBS peripheral base pointers */
2655#define AXBS_BASE_PTRS { AXBS }
2656
2657/*!
2658 * @}
2659 */ /* end of group AXBS_Peripheral_Access_Layer */
2660
2661
2662/* ----------------------------------------------------------------------------
2663 -- CAN Peripheral Access Layer
2664 ---------------------------------------------------------------------------- */
2665
2666/*!
2667 * @addtogroup CAN_Peripheral_Access_Layer CAN Peripheral Access Layer
2668 * @{
2669 */
2670
2671/** CAN - Register Layout Typedef */
2672typedef struct {
2673 __IO uint32_t MCR; /**< Module Configuration Register, offset: 0x0 */
2674 __IO uint32_t CTRL1; /**< Control 1 register, offset: 0x4 */
2675 __IO uint32_t TIMER; /**< Free Running Timer, offset: 0x8 */
2676 uint8_t RESERVED_0[4];
2677 __IO uint32_t RXMGMASK; /**< Rx Mailboxes Global Mask Register, offset: 0x10 */
2678 __IO uint32_t RX14MASK; /**< Rx 14 Mask register, offset: 0x14 */
2679 __IO uint32_t RX15MASK; /**< Rx 15 Mask register, offset: 0x18 */
2680 __IO uint32_t ECR; /**< Error Counter, offset: 0x1C */
2681 __IO uint32_t ESR1; /**< Error and Status 1 register, offset: 0x20 */
2682 uint8_t RESERVED_1[4];
2683 __IO uint32_t IMASK1; /**< Interrupt Masks 1 register, offset: 0x28 */
2684 uint8_t RESERVED_2[4];
2685 __IO uint32_t IFLAG1; /**< Interrupt Flags 1 register, offset: 0x30 */
2686 __IO uint32_t CTRL2; /**< Control 2 register, offset: 0x34 */
2687 __I uint32_t ESR2; /**< Error and Status 2 register, offset: 0x38 */
2688 uint8_t RESERVED_3[8];
2689 __I uint32_t CRCR; /**< CRC Register, offset: 0x44 */
2690 __IO uint32_t RXFGMASK; /**< Rx FIFO Global Mask register, offset: 0x48 */
2691 __I uint32_t RXFIR; /**< Rx FIFO Information Register, offset: 0x4C */
2692 uint8_t RESERVED_4[48];
2693 struct { /* offset: 0x80, array step: 0x10 */
2694 __IO uint32_t CS; /**< Message Buffer 0 CS Register..Message Buffer 15 CS Register, array offset: 0x80, array step: 0x10 */
2695 __IO uint32_t ID; /**< Message Buffer 0 ID Register..Message Buffer 15 ID Register, array offset: 0x84, array step: 0x10 */
2696 __IO uint32_t WORD0; /**< Message Buffer 0 WORD0 Register..Message Buffer 15 WORD0 Register, array offset: 0x88, array step: 0x10 */
2697 __IO uint32_t WORD1; /**< Message Buffer 0 WORD1 Register..Message Buffer 15 WORD1 Register, array offset: 0x8C, array step: 0x10 */
2698 } MB[16];
2699 uint8_t RESERVED_5[1792];
2700 __IO uint32_t RXIMR[16]; /**< Rx Individual Mask Registers, array offset: 0x880, array step: 0x4 */
2701} CAN_TypeDef;
2702
2703/* ----------------------------------------------------------------------------
2704 -- CAN Register Masks
2705 ---------------------------------------------------------------------------- */
2706
2707/*!
2708 * @addtogroup CAN_Register_Masks CAN Register Masks
2709 * @{
2710 */
2711
2712/*! @name MCR - Module Configuration Register */
2713#define CAN_MCR_MAXMB_MASK (0x7FU)
2714#define CAN_MCR_MAXMB_SHIFT (0U)
2715#define CAN_MCR_MAXMB_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_MAXMB_SHIFT)) & CAN_MCR_MAXMB_MASK)
2716#define CAN_MCR_MAXMB CAN_MCR_MAXMB_MASK
2717#define CAN_MCR_IDAM_MASK (0x300U)
2718#define CAN_MCR_IDAM_SHIFT (8U)
2719#define CAN_MCR_IDAM_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_IDAM_SHIFT)) & CAN_MCR_IDAM_MASK)
2720#define CAN_MCR_IDAM CAN_MCR_IDAM_MASK
2721#define CAN_MCR_AEN_MASK (0x1000U)
2722#define CAN_MCR_AEN_SHIFT (12U)
2723#define CAN_MCR_AEN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_AEN_SHIFT)) & CAN_MCR_AEN_MASK)
2724#define CAN_MCR_AEN CAN_MCR_AEN_MASK
2725#define CAN_MCR_LPRIOEN_MASK (0x2000U)
2726#define CAN_MCR_LPRIOEN_SHIFT (13U)
2727#define CAN_MCR_LPRIOEN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_LPRIOEN_SHIFT)) & CAN_MCR_LPRIOEN_MASK)
2728#define CAN_MCR_LPRIOEN CAN_MCR_LPRIOEN_MASK
2729#define CAN_MCR_IRMQ_MASK (0x10000U)
2730#define CAN_MCR_IRMQ_SHIFT (16U)
2731#define CAN_MCR_IRMQ_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_IRMQ_SHIFT)) & CAN_MCR_IRMQ_MASK)
2732#define CAN_MCR_IRMQ CAN_MCR_IRMQ_MASK
2733#define CAN_MCR_SRXDIS_MASK (0x20000U)
2734#define CAN_MCR_SRXDIS_SHIFT (17U)
2735#define CAN_MCR_SRXDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_SRXDIS_SHIFT)) & CAN_MCR_SRXDIS_MASK)
2736#define CAN_MCR_SRXDIS CAN_MCR_SRXDIS_MASK
2737#define CAN_MCR_WAKSRC_MASK (0x80000U)
2738#define CAN_MCR_WAKSRC_SHIFT (19U)
2739#define CAN_MCR_WAKSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_WAKSRC_SHIFT)) & CAN_MCR_WAKSRC_MASK)
2740#define CAN_MCR_WAKSRC CAN_MCR_WAKSRC_MASK
2741#define CAN_MCR_LPMACK_MASK (0x100000U)
2742#define CAN_MCR_LPMACK_SHIFT (20U)
2743#define CAN_MCR_LPMACK_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_LPMACK_SHIFT)) & CAN_MCR_LPMACK_MASK)
2744#define CAN_MCR_LPMACK CAN_MCR_LPMACK_MASK
2745#define CAN_MCR_WRNEN_MASK (0x200000U)
2746#define CAN_MCR_WRNEN_SHIFT (21U)
2747#define CAN_MCR_WRNEN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_WRNEN_SHIFT)) & CAN_MCR_WRNEN_MASK)
2748#define CAN_MCR_WRNEN CAN_MCR_WRNEN_MASK
2749#define CAN_MCR_SLFWAK_MASK (0x400000U)
2750#define CAN_MCR_SLFWAK_SHIFT (22U)
2751#define CAN_MCR_SLFWAK_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_SLFWAK_SHIFT)) & CAN_MCR_SLFWAK_MASK)
2752#define CAN_MCR_SLFWAK CAN_MCR_SLFWAK_MASK
2753#define CAN_MCR_SUPV_MASK (0x800000U)
2754#define CAN_MCR_SUPV_SHIFT (23U)
2755#define CAN_MCR_SUPV_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_SUPV_SHIFT)) & CAN_MCR_SUPV_MASK)
2756#define CAN_MCR_SUPV CAN_MCR_SUPV_MASK
2757#define CAN_MCR_FRZACK_MASK (0x1000000U)
2758#define CAN_MCR_FRZACK_SHIFT (24U)
2759#define CAN_MCR_FRZACK_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_FRZACK_SHIFT)) & CAN_MCR_FRZACK_MASK)
2760#define CAN_MCR_FRZACK CAN_MCR_FRZACK_MASK
2761#define CAN_MCR_SOFTRST_MASK (0x2000000U)
2762#define CAN_MCR_SOFTRST_SHIFT (25U)
2763#define CAN_MCR_SOFTRST_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_SOFTRST_SHIFT)) & CAN_MCR_SOFTRST_MASK)
2764#define CAN_MCR_SOFTRST CAN_MCR_SOFTRST_MASK
2765#define CAN_MCR_WAKMSK_MASK (0x4000000U)
2766#define CAN_MCR_WAKMSK_SHIFT (26U)
2767#define CAN_MCR_WAKMSK_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_WAKMSK_SHIFT)) & CAN_MCR_WAKMSK_MASK)
2768#define CAN_MCR_WAKMSK CAN_MCR_WAKMSK_MASK
2769#define CAN_MCR_NOTRDY_MASK (0x8000000U)
2770#define CAN_MCR_NOTRDY_SHIFT (27U)
2771#define CAN_MCR_NOTRDY_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_NOTRDY_SHIFT)) & CAN_MCR_NOTRDY_MASK)
2772#define CAN_MCR_NOTRDY CAN_MCR_NOTRDY_MASK
2773#define CAN_MCR_HALT_MASK (0x10000000U)
2774#define CAN_MCR_HALT_SHIFT (28U)
2775#define CAN_MCR_HALT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_HALT_SHIFT)) & CAN_MCR_HALT_MASK)
2776#define CAN_MCR_HALT CAN_MCR_HALT_MASK
2777#define CAN_MCR_RFEN_MASK (0x20000000U)
2778#define CAN_MCR_RFEN_SHIFT (29U)
2779#define CAN_MCR_RFEN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_RFEN_SHIFT)) & CAN_MCR_RFEN_MASK)
2780#define CAN_MCR_RFEN CAN_MCR_RFEN_MASK
2781#define CAN_MCR_FRZ_MASK (0x40000000U)
2782#define CAN_MCR_FRZ_SHIFT (30U)
2783#define CAN_MCR_FRZ_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_FRZ_SHIFT)) & CAN_MCR_FRZ_MASK)
2784#define CAN_MCR_FRZ CAN_MCR_FRZ_MASK
2785#define CAN_MCR_MDIS_MASK (0x80000000U)
2786#define CAN_MCR_MDIS_SHIFT (31U)
2787#define CAN_MCR_MDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_MDIS_SHIFT)) & CAN_MCR_MDIS_MASK)
2788#define CAN_MCR_MDIS CAN_MCR_MDIS_MASK
2789
2790/*! @name CTRL1 - Control 1 register */
2791#define CAN_CTRL1_PROPSEG_MASK (0x7U)
2792#define CAN_CTRL1_PROPSEG_SHIFT (0U)
2793#define CAN_CTRL1_PROPSEG_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_PROPSEG_SHIFT)) & CAN_CTRL1_PROPSEG_MASK)
2794#define CAN_CTRL1_PROPSEG CAN_CTRL1_PROPSEG_MASK
2795#define CAN_CTRL1_LOM_MASK (0x8U)
2796#define CAN_CTRL1_LOM_SHIFT (3U)
2797#define CAN_CTRL1_LOM_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_LOM_SHIFT)) & CAN_CTRL1_LOM_MASK)
2798#define CAN_CTRL1_LOM CAN_CTRL1_LOM_MASK
2799#define CAN_CTRL1_LBUF_MASK (0x10U)
2800#define CAN_CTRL1_LBUF_SHIFT (4U)
2801#define CAN_CTRL1_LBUF_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_LBUF_SHIFT)) & CAN_CTRL1_LBUF_MASK)
2802#define CAN_CTRL1_LBUF CAN_CTRL1_LBUF_MASK
2803#define CAN_CTRL1_TSYN_MASK (0x20U)
2804#define CAN_CTRL1_TSYN_SHIFT (5U)
2805#define CAN_CTRL1_TSYN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_TSYN_SHIFT)) & CAN_CTRL1_TSYN_MASK)
2806#define CAN_CTRL1_TSYN CAN_CTRL1_TSYN_MASK
2807#define CAN_CTRL1_BOFFREC_MASK (0x40U)
2808#define CAN_CTRL1_BOFFREC_SHIFT (6U)
2809#define CAN_CTRL1_BOFFREC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_BOFFREC_SHIFT)) & CAN_CTRL1_BOFFREC_MASK)
2810#define CAN_CTRL1_BOFFREC CAN_CTRL1_BOFFREC_MASK
2811#define CAN_CTRL1_SMP_MASK (0x80U)
2812#define CAN_CTRL1_SMP_SHIFT (7U)
2813#define CAN_CTRL1_SMP_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_SMP_SHIFT)) & CAN_CTRL1_SMP_MASK)
2814#define CAN_CTRL1_SMP CAN_CTRL1_SMP_MASK
2815#define CAN_CTRL1_RWRNMSK_MASK (0x400U)
2816#define CAN_CTRL1_RWRNMSK_SHIFT (10U)
2817#define CAN_CTRL1_RWRNMSK_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_RWRNMSK_SHIFT)) & CAN_CTRL1_RWRNMSK_MASK)
2818#define CAN_CTRL1_RWRNMSK CAN_CTRL1_RWRNMSK_MASK
2819#define CAN_CTRL1_TWRNMSK_MASK (0x800U)
2820#define CAN_CTRL1_TWRNMSK_SHIFT (11U)
2821#define CAN_CTRL1_TWRNMSK_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_TWRNMSK_SHIFT)) & CAN_CTRL1_TWRNMSK_MASK)
2822#define CAN_CTRL1_TWRNMSK CAN_CTRL1_TWRNMSK_MASK
2823#define CAN_CTRL1_LPB_MASK (0x1000U)
2824#define CAN_CTRL1_LPB_SHIFT (12U)
2825#define CAN_CTRL1_LPB_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_LPB_SHIFT)) & CAN_CTRL1_LPB_MASK)
2826#define CAN_CTRL1_LPB CAN_CTRL1_LPB_MASK
2827#define CAN_CTRL1_CLKSRC_MASK (0x2000U)
2828#define CAN_CTRL1_CLKSRC_SHIFT (13U)
2829#define CAN_CTRL1_CLKSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_CLKSRC_SHIFT)) & CAN_CTRL1_CLKSRC_MASK)
2830#define CAN_CTRL1_CLKSRC CAN_CTRL1_CLKSRC_MASK
2831#define CAN_CTRL1_ERRMSK_MASK (0x4000U)
2832#define CAN_CTRL1_ERRMSK_SHIFT (14U)
2833#define CAN_CTRL1_ERRMSK_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_ERRMSK_SHIFT)) & CAN_CTRL1_ERRMSK_MASK)
2834#define CAN_CTRL1_ERRMSK CAN_CTRL1_ERRMSK_MASK
2835#define CAN_CTRL1_BOFFMSK_MASK (0x8000U)
2836#define CAN_CTRL1_BOFFMSK_SHIFT (15U)
2837#define CAN_CTRL1_BOFFMSK_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_BOFFMSK_SHIFT)) & CAN_CTRL1_BOFFMSK_MASK)
2838#define CAN_CTRL1_BOFFMSK CAN_CTRL1_BOFFMSK_MASK
2839#define CAN_CTRL1_PSEG2_MASK (0x70000U)
2840#define CAN_CTRL1_PSEG2_SHIFT (16U)
2841#define CAN_CTRL1_PSEG2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_PSEG2_SHIFT)) & CAN_CTRL1_PSEG2_MASK)
2842#define CAN_CTRL1_PSEG2 CAN_CTRL1_PSEG2_MASK
2843#define CAN_CTRL1_PSEG1_MASK (0x380000U)
2844#define CAN_CTRL1_PSEG1_SHIFT (19U)
2845#define CAN_CTRL1_PSEG1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_PSEG1_SHIFT)) & CAN_CTRL1_PSEG1_MASK)
2846#define CAN_CTRL1_PSEG1 CAN_CTRL1_PSEG1_MASK
2847#define CAN_CTRL1_RJW_MASK (0xC00000U)
2848#define CAN_CTRL1_RJW_SHIFT (22U)
2849#define CAN_CTRL1_RJW_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_RJW_SHIFT)) & CAN_CTRL1_RJW_MASK)
2850#define CAN_CTRL1_RJW CAN_CTRL1_RJW_MASK
2851#define CAN_CTRL1_PRESDIV_MASK (0xFF000000U)
2852#define CAN_CTRL1_PRESDIV_SHIFT (24U)
2853#define CAN_CTRL1_PRESDIV_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_PRESDIV_SHIFT)) & CAN_CTRL1_PRESDIV_MASK)
2854#define CAN_CTRL1_PRESDIV CAN_CTRL1_PRESDIV_MASK
2855
2856/*! @name TIMER - Free Running Timer */
2857#define CAN_TIMER_TIMER_MASK (0xFFFFU)
2858#define CAN_TIMER_TIMER_SHIFT (0U)
2859#define CAN_TIMER_TIMER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_TIMER_TIMER_SHIFT)) & CAN_TIMER_TIMER_MASK)
2860#define CAN_TIMER_TIMER CAN_TIMER_TIMER_MASK
2861
2862/*! @name RXMGMASK - Rx Mailboxes Global Mask Register */
2863#define CAN_RXMGMASK_MG_MASK (0xFFFFFFFFU)
2864#define CAN_RXMGMASK_MG_SHIFT (0U)
2865#define CAN_RXMGMASK_MG_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_RXMGMASK_MG_SHIFT)) & CAN_RXMGMASK_MG_MASK)
2866#define CAN_RXMGMASK_MG CAN_RXMGMASK_MG_MASK
2867
2868/*! @name RX14MASK - Rx 14 Mask register */
2869#define CAN_RX14MASK_RX14M_MASK (0xFFFFFFFFU)
2870#define CAN_RX14MASK_RX14M_SHIFT (0U)
2871#define CAN_RX14MASK_RX14M_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_RX14MASK_RX14M_SHIFT)) & CAN_RX14MASK_RX14M_MASK)
2872#define CAN_RX14MASK_RX14M CAN_RX14MASK_RX14M_MASK
2873
2874/*! @name RX15MASK - Rx 15 Mask register */
2875#define CAN_RX15MASK_RX15M_MASK (0xFFFFFFFFU)
2876#define CAN_RX15MASK_RX15M_SHIFT (0U)
2877#define CAN_RX15MASK_RX15M_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_RX15MASK_RX15M_SHIFT)) & CAN_RX15MASK_RX15M_MASK)
2878#define CAN_RX15MASK_RX15M CAN_RX15MASK_RX15M_MASK
2879
2880/*! @name ECR - Error Counter */
2881#define CAN_ECR_TXERRCNT_MASK (0xFFU)
2882#define CAN_ECR_TXERRCNT_SHIFT (0U)
2883#define CAN_ECR_TXERRCNT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ECR_TXERRCNT_SHIFT)) & CAN_ECR_TXERRCNT_MASK)
2884#define CAN_ECR_TXERRCNT CAN_ECR_TXERRCNT_MASK
2885#define CAN_ECR_RXERRCNT_MASK (0xFF00U)
2886#define CAN_ECR_RXERRCNT_SHIFT (8U)
2887#define CAN_ECR_RXERRCNT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ECR_RXERRCNT_SHIFT)) & CAN_ECR_RXERRCNT_MASK)
2888#define CAN_ECR_RXERRCNT CAN_ECR_RXERRCNT_MASK
2889
2890/*! @name ESR1 - Error and Status 1 register */
2891#define CAN_ESR1_WAKINT_MASK (0x1U)
2892#define CAN_ESR1_WAKINT_SHIFT (0U)
2893#define CAN_ESR1_WAKINT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_WAKINT_SHIFT)) & CAN_ESR1_WAKINT_MASK)
2894#define CAN_ESR1_WAKINT CAN_ESR1_WAKINT_MASK
2895#define CAN_ESR1_ERRINT_MASK (0x2U)
2896#define CAN_ESR1_ERRINT_SHIFT (1U)
2897#define CAN_ESR1_ERRINT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_ERRINT_SHIFT)) & CAN_ESR1_ERRINT_MASK)
2898#define CAN_ESR1_ERRINT CAN_ESR1_ERRINT_MASK
2899#define CAN_ESR1_BOFFINT_MASK (0x4U)
2900#define CAN_ESR1_BOFFINT_SHIFT (2U)
2901#define CAN_ESR1_BOFFINT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_BOFFINT_SHIFT)) & CAN_ESR1_BOFFINT_MASK)
2902#define CAN_ESR1_BOFFINT CAN_ESR1_BOFFINT_MASK
2903#define CAN_ESR1_RX_MASK (0x8U)
2904#define CAN_ESR1_RX_SHIFT (3U)
2905#define CAN_ESR1_RX_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_RX_SHIFT)) & CAN_ESR1_RX_MASK)
2906#define CAN_ESR1_RX CAN_ESR1_RX_MASK
2907#define CAN_ESR1_FLTCONF_MASK (0x30U)
2908#define CAN_ESR1_FLTCONF_SHIFT (4U)
2909#define CAN_ESR1_FLTCONF_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_FLTCONF_SHIFT)) & CAN_ESR1_FLTCONF_MASK)
2910#define CAN_ESR1_FLTCONF CAN_ESR1_FLTCONF_MASK
2911#define CAN_ESR1_TX_MASK (0x40U)
2912#define CAN_ESR1_TX_SHIFT (6U)
2913#define CAN_ESR1_TX_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_TX_SHIFT)) & CAN_ESR1_TX_MASK)
2914#define CAN_ESR1_TX CAN_ESR1_TX_MASK
2915#define CAN_ESR1_IDLE_MASK (0x80U)
2916#define CAN_ESR1_IDLE_SHIFT (7U)
2917#define CAN_ESR1_IDLE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_IDLE_SHIFT)) & CAN_ESR1_IDLE_MASK)
2918#define CAN_ESR1_IDLE CAN_ESR1_IDLE_MASK
2919#define CAN_ESR1_RXWRN_MASK (0x100U)
2920#define CAN_ESR1_RXWRN_SHIFT (8U)
2921#define CAN_ESR1_RXWRN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_RXWRN_SHIFT)) & CAN_ESR1_RXWRN_MASK)
2922#define CAN_ESR1_RXWRN CAN_ESR1_RXWRN_MASK
2923#define CAN_ESR1_TXWRN_MASK (0x200U)
2924#define CAN_ESR1_TXWRN_SHIFT (9U)
2925#define CAN_ESR1_TXWRN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_TXWRN_SHIFT)) & CAN_ESR1_TXWRN_MASK)
2926#define CAN_ESR1_TXWRN CAN_ESR1_TXWRN_MASK
2927#define CAN_ESR1_STFERR_MASK (0x400U)
2928#define CAN_ESR1_STFERR_SHIFT (10U)
2929#define CAN_ESR1_STFERR_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_STFERR_SHIFT)) & CAN_ESR1_STFERR_MASK)
2930#define CAN_ESR1_STFERR CAN_ESR1_STFERR_MASK
2931#define CAN_ESR1_FRMERR_MASK (0x800U)
2932#define CAN_ESR1_FRMERR_SHIFT (11U)
2933#define CAN_ESR1_FRMERR_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_FRMERR_SHIFT)) & CAN_ESR1_FRMERR_MASK)
2934#define CAN_ESR1_FRMERR CAN_ESR1_FRMERR_MASK
2935#define CAN_ESR1_CRCERR_MASK (0x1000U)
2936#define CAN_ESR1_CRCERR_SHIFT (12U)
2937#define CAN_ESR1_CRCERR_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_CRCERR_SHIFT)) & CAN_ESR1_CRCERR_MASK)
2938#define CAN_ESR1_CRCERR CAN_ESR1_CRCERR_MASK
2939#define CAN_ESR1_ACKERR_MASK (0x2000U)
2940#define CAN_ESR1_ACKERR_SHIFT (13U)
2941#define CAN_ESR1_ACKERR_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_ACKERR_SHIFT)) & CAN_ESR1_ACKERR_MASK)
2942#define CAN_ESR1_ACKERR CAN_ESR1_ACKERR_MASK
2943#define CAN_ESR1_BIT0ERR_MASK (0x4000U)
2944#define CAN_ESR1_BIT0ERR_SHIFT (14U)
2945#define CAN_ESR1_BIT0ERR_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_BIT0ERR_SHIFT)) & CAN_ESR1_BIT0ERR_MASK)
2946#define CAN_ESR1_BIT0ERR CAN_ESR1_BIT0ERR_MASK
2947#define CAN_ESR1_BIT1ERR_MASK (0x8000U)
2948#define CAN_ESR1_BIT1ERR_SHIFT (15U)
2949#define CAN_ESR1_BIT1ERR_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_BIT1ERR_SHIFT)) & CAN_ESR1_BIT1ERR_MASK)
2950#define CAN_ESR1_BIT1ERR CAN_ESR1_BIT1ERR_MASK
2951#define CAN_ESR1_RWRNINT_MASK (0x10000U)
2952#define CAN_ESR1_RWRNINT_SHIFT (16U)
2953#define CAN_ESR1_RWRNINT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_RWRNINT_SHIFT)) & CAN_ESR1_RWRNINT_MASK)
2954#define CAN_ESR1_RWRNINT CAN_ESR1_RWRNINT_MASK
2955#define CAN_ESR1_TWRNINT_MASK (0x20000U)
2956#define CAN_ESR1_TWRNINT_SHIFT (17U)
2957#define CAN_ESR1_TWRNINT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_TWRNINT_SHIFT)) & CAN_ESR1_TWRNINT_MASK)
2958#define CAN_ESR1_TWRNINT CAN_ESR1_TWRNINT_MASK
2959#define CAN_ESR1_SYNCH_MASK (0x40000U)
2960#define CAN_ESR1_SYNCH_SHIFT (18U)
2961#define CAN_ESR1_SYNCH_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_SYNCH_SHIFT)) & CAN_ESR1_SYNCH_MASK)
2962#define CAN_ESR1_SYNCH CAN_ESR1_SYNCH_MASK
2963
2964/*! @name IMASK1 - Interrupt Masks 1 register */
2965#define CAN_IMASK1_BUFLM_MASK (0xFFFFFFFFU)
2966#define CAN_IMASK1_BUFLM_SHIFT (0U)
2967#define CAN_IMASK1_BUFLM_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_IMASK1_BUFLM_SHIFT)) & CAN_IMASK1_BUFLM_MASK)
2968#define CAN_IMASK1_BUFLM CAN_IMASK1_BUFLM_MASK
2969
2970/*! @name IFLAG1 - Interrupt Flags 1 register */
2971#define CAN_IFLAG1_BUF0I_MASK (0x1U)
2972#define CAN_IFLAG1_BUF0I_SHIFT (0U)
2973#define CAN_IFLAG1_BUF0I_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_IFLAG1_BUF0I_SHIFT)) & CAN_IFLAG1_BUF0I_MASK)
2974#define CAN_IFLAG1_BUF0I CAN_IFLAG1_BUF0I_MASK
2975#define CAN_IFLAG1_BUF4TO1I_MASK (0x1EU)
2976#define CAN_IFLAG1_BUF4TO1I_SHIFT (1U)
2977#define CAN_IFLAG1_BUF4TO1I_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_IFLAG1_BUF4TO1I_SHIFT)) & CAN_IFLAG1_BUF4TO1I_MASK)
2978#define CAN_IFLAG1_BUF4TO1I CAN_IFLAG1_BUF4TO1I_MASK
2979#define CAN_IFLAG1_BUF5I_MASK (0x20U)
2980#define CAN_IFLAG1_BUF5I_SHIFT (5U)
2981#define CAN_IFLAG1_BUF5I_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_IFLAG1_BUF5I_SHIFT)) & CAN_IFLAG1_BUF5I_MASK)
2982#define CAN_IFLAG1_BUF5I CAN_IFLAG1_BUF5I_MASK
2983#define CAN_IFLAG1_BUF6I_MASK (0x40U)
2984#define CAN_IFLAG1_BUF6I_SHIFT (6U)
2985#define CAN_IFLAG1_BUF6I_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_IFLAG1_BUF6I_SHIFT)) & CAN_IFLAG1_BUF6I_MASK)
2986#define CAN_IFLAG1_BUF6I CAN_IFLAG1_BUF6I_MASK
2987#define CAN_IFLAG1_BUF7I_MASK (0x80U)
2988#define CAN_IFLAG1_BUF7I_SHIFT (7U)
2989#define CAN_IFLAG1_BUF7I_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_IFLAG1_BUF7I_SHIFT)) & CAN_IFLAG1_BUF7I_MASK)
2990#define CAN_IFLAG1_BUF7I CAN_IFLAG1_BUF7I_MASK
2991#define CAN_IFLAG1_BUF31TO8I_MASK (0xFFFFFF00U)
2992#define CAN_IFLAG1_BUF31TO8I_SHIFT (8U)
2993#define CAN_IFLAG1_BUF31TO8I_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_IFLAG1_BUF31TO8I_SHIFT)) & CAN_IFLAG1_BUF31TO8I_MASK)
2994#define CAN_IFLAG1_BUF31TO8I CAN_IFLAG1_BUF31TO8I_MASK
2995
2996/*! @name CTRL2 - Control 2 register */
2997#define CAN_CTRL2_EACEN_MASK (0x10000U)
2998#define CAN_CTRL2_EACEN_SHIFT (16U)
2999#define CAN_CTRL2_EACEN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL2_EACEN_SHIFT)) & CAN_CTRL2_EACEN_MASK)
3000#define CAN_CTRL2_EACEN CAN_CTRL2_EACEN_MASK
3001#define CAN_CTRL2_RRS_MASK (0x20000U)
3002#define CAN_CTRL2_RRS_SHIFT (17U)
3003#define CAN_CTRL2_RRS_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL2_RRS_SHIFT)) & CAN_CTRL2_RRS_MASK)
3004#define CAN_CTRL2_RRS CAN_CTRL2_RRS_MASK
3005#define CAN_CTRL2_MRP_MASK (0x40000U)
3006#define CAN_CTRL2_MRP_SHIFT (18U)
3007#define CAN_CTRL2_MRP_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL2_MRP_SHIFT)) & CAN_CTRL2_MRP_MASK)
3008#define CAN_CTRL2_MRP CAN_CTRL2_MRP_MASK
3009#define CAN_CTRL2_TASD_MASK (0xF80000U)
3010#define CAN_CTRL2_TASD_SHIFT (19U)
3011#define CAN_CTRL2_TASD_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL2_TASD_SHIFT)) & CAN_CTRL2_TASD_MASK)
3012#define CAN_CTRL2_TASD CAN_CTRL2_TASD_MASK
3013#define CAN_CTRL2_RFFN_MASK (0xF000000U)
3014#define CAN_CTRL2_RFFN_SHIFT (24U)
3015#define CAN_CTRL2_RFFN_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL2_RFFN_SHIFT)) & CAN_CTRL2_RFFN_MASK)
3016#define CAN_CTRL2_RFFN CAN_CTRL2_RFFN_MASK
3017#define CAN_CTRL2_WRMFRZ_MASK (0x10000000U)
3018#define CAN_CTRL2_WRMFRZ_SHIFT (28U)
3019#define CAN_CTRL2_WRMFRZ_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL2_WRMFRZ_SHIFT)) & CAN_CTRL2_WRMFRZ_MASK)
3020#define CAN_CTRL2_WRMFRZ CAN_CTRL2_WRMFRZ_MASK
3021
3022/*! @name ESR2 - Error and Status 2 register */
3023#define CAN_ESR2_IMB_MASK (0x2000U)
3024#define CAN_ESR2_IMB_SHIFT (13U)
3025#define CAN_ESR2_IMB_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR2_IMB_SHIFT)) & CAN_ESR2_IMB_MASK)
3026#define CAN_ESR2_IMB CAN_ESR2_IMB_MASK
3027#define CAN_ESR2_VPS_MASK (0x4000U)
3028#define CAN_ESR2_VPS_SHIFT (14U)
3029#define CAN_ESR2_VPS_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR2_VPS_SHIFT)) & CAN_ESR2_VPS_MASK)
3030#define CAN_ESR2_VPS CAN_ESR2_VPS_MASK
3031#define CAN_ESR2_LPTM_MASK (0x7F0000U)
3032#define CAN_ESR2_LPTM_SHIFT (16U)
3033#define CAN_ESR2_LPTM_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR2_LPTM_SHIFT)) & CAN_ESR2_LPTM_MASK)
3034#define CAN_ESR2_LPTM CAN_ESR2_LPTM_MASK
3035
3036/*! @name CRCR - CRC Register */
3037#define CAN_CRCR_TXCRC_MASK (0x7FFFU)
3038#define CAN_CRCR_TXCRC_SHIFT (0U)
3039#define CAN_CRCR_TXCRC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CRCR_TXCRC_SHIFT)) & CAN_CRCR_TXCRC_MASK)
3040#define CAN_CRCR_TXCRC CAN_CRCR_TXCRC_MASK
3041#define CAN_CRCR_MBCRC_MASK (0x7F0000U)
3042#define CAN_CRCR_MBCRC_SHIFT (16U)
3043#define CAN_CRCR_MBCRC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CRCR_MBCRC_SHIFT)) & CAN_CRCR_MBCRC_MASK)
3044#define CAN_CRCR_MBCRC CAN_CRCR_MBCRC_MASK
3045
3046/*! @name RXFGMASK - Rx FIFO Global Mask register */
3047#define CAN_RXFGMASK_FGM_MASK (0xFFFFFFFFU)
3048#define CAN_RXFGMASK_FGM_SHIFT (0U)
3049#define CAN_RXFGMASK_FGM_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_RXFGMASK_FGM_SHIFT)) & CAN_RXFGMASK_FGM_MASK)
3050#define CAN_RXFGMASK_FGM CAN_RXFGMASK_FGM_MASK
3051
3052/*! @name RXFIR - Rx FIFO Information Register */
3053#define CAN_RXFIR_IDHIT_MASK (0x1FFU)
3054#define CAN_RXFIR_IDHIT_SHIFT (0U)
3055#define CAN_RXFIR_IDHIT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_RXFIR_IDHIT_SHIFT)) & CAN_RXFIR_IDHIT_MASK)
3056#define CAN_RXFIR_IDHIT CAN_RXFIR_IDHIT_MASK
3057
3058/*! @name CS - Message Buffer 0 CS Register..Message Buffer 15 CS Register */
3059#define CAN_CS_TIME_STAMP_MASK (0xFFFFU)
3060#define CAN_CS_TIME_STAMP_SHIFT (0U)
3061#define CAN_CS_TIME_STAMP_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_TIME_STAMP_SHIFT)) & CAN_CS_TIME_STAMP_MASK)
3062#define CAN_CS_TIME_STAMP CAN_CS_TIME_STAMP_MASK
3063#define CAN_CS_DLC_MASK (0xF0000U)
3064#define CAN_CS_DLC_SHIFT (16U)
3065#define CAN_CS_DLC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_DLC_SHIFT)) & CAN_CS_DLC_MASK)
3066#define CAN_CS_DLC CAN_CS_DLC_MASK
3067#define CAN_CS_RTR_MASK (0x100000U)
3068#define CAN_CS_RTR_SHIFT (20U)
3069#define CAN_CS_RTR_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_RTR_SHIFT)) & CAN_CS_RTR_MASK)
3070#define CAN_CS_RTR CAN_CS_RTR_MASK
3071#define CAN_CS_IDE_MASK (0x200000U)
3072#define CAN_CS_IDE_SHIFT (21U)
3073#define CAN_CS_IDE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_IDE_SHIFT)) & CAN_CS_IDE_MASK)
3074#define CAN_CS_IDE CAN_CS_IDE_MASK
3075#define CAN_CS_SRR_MASK (0x400000U)
3076#define CAN_CS_SRR_SHIFT (22U)
3077#define CAN_CS_SRR_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_SRR_SHIFT)) & CAN_CS_SRR_MASK)
3078#define CAN_CS_SRR CAN_CS_SRR_MASK
3079#define CAN_CS_CODE_MASK (0xF000000U)
3080#define CAN_CS_CODE_SHIFT (24U)
3081#define CAN_CS_CODE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_CODE_SHIFT)) & CAN_CS_CODE_MASK)
3082#define CAN_CS_CODE CAN_CS_CODE_MASK
3083
3084/* The count of CAN_CS */
3085#define CAN_CS_COUNT (16U)
3086
3087/*! @name ID - Message Buffer 0 ID Register..Message Buffer 15 ID Register */
3088#define CAN_ID_EXT_MASK (0x3FFFFU)
3089#define CAN_ID_EXT_SHIFT (0U)
3090#define CAN_ID_EXT_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ID_EXT_SHIFT)) & CAN_ID_EXT_MASK)
3091#define CAN_ID_EXT CAN_ID_EXT_MASK
3092#define CAN_ID_STD_MASK (0x1FFC0000U)
3093#define CAN_ID_STD_SHIFT (18U)
3094#define CAN_ID_STD_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ID_STD_SHIFT)) & CAN_ID_STD_MASK)
3095#define CAN_ID_STD CAN_ID_STD_MASK
3096#define CAN_ID_PRIO_MASK (0xE0000000U)
3097#define CAN_ID_PRIO_SHIFT (29U)
3098#define CAN_ID_PRIO_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_ID_PRIO_SHIFT)) & CAN_ID_PRIO_MASK)
3099#define CAN_ID_PRIO CAN_ID_PRIO_MASK
3100
3101/* The count of CAN_ID */
3102#define CAN_ID_COUNT (16U)
3103
3104/*! @name WORD0 - Message Buffer 0 WORD0 Register..Message Buffer 15 WORD0 Register */
3105#define CAN_WORD0_DATA_BYTE_3_MASK (0xFFU)
3106#define CAN_WORD0_DATA_BYTE_3_SHIFT (0U)
3107#define CAN_WORD0_DATA_BYTE_3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD0_DATA_BYTE_3_SHIFT)) & CAN_WORD0_DATA_BYTE_3_MASK)
3108#define CAN_WORD0_DATA_BYTE_3 CAN_WORD0_DATA_BYTE_3_MASK
3109#define CAN_WORD0_DATA_BYTE_2_MASK (0xFF00U)
3110#define CAN_WORD0_DATA_BYTE_2_SHIFT (8U)
3111#define CAN_WORD0_DATA_BYTE_2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD0_DATA_BYTE_2_SHIFT)) & CAN_WORD0_DATA_BYTE_2_MASK)
3112#define CAN_WORD0_DATA_BYTE_2 CAN_WORD0_DATA_BYTE_2_MASK
3113#define CAN_WORD0_DATA_BYTE_1_MASK (0xFF0000U)
3114#define CAN_WORD0_DATA_BYTE_1_SHIFT (16U)
3115#define CAN_WORD0_DATA_BYTE_1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD0_DATA_BYTE_1_SHIFT)) & CAN_WORD0_DATA_BYTE_1_MASK)
3116#define CAN_WORD0_DATA_BYTE_1 CAN_WORD0_DATA_BYTE_1_MASK
3117#define CAN_WORD0_DATA_BYTE_0_MASK (0xFF000000U)
3118#define CAN_WORD0_DATA_BYTE_0_SHIFT (24U)
3119#define CAN_WORD0_DATA_BYTE_0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD0_DATA_BYTE_0_SHIFT)) & CAN_WORD0_DATA_BYTE_0_MASK)
3120#define CAN_WORD0_DATA_BYTE_0 CAN_WORD0_DATA_BYTE_0_MASK
3121
3122/* The count of CAN_WORD0 */
3123#define CAN_WORD0_COUNT (16U)
3124
3125/*! @name WORD1 - Message Buffer 0 WORD1 Register..Message Buffer 15 WORD1 Register */
3126#define CAN_WORD1_DATA_BYTE_7_MASK (0xFFU)
3127#define CAN_WORD1_DATA_BYTE_7_SHIFT (0U)
3128#define CAN_WORD1_DATA_BYTE_7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD1_DATA_BYTE_7_SHIFT)) & CAN_WORD1_DATA_BYTE_7_MASK)
3129#define CAN_WORD1_DATA_BYTE_7 CAN_WORD1_DATA_BYTE_7_MASK
3130#define CAN_WORD1_DATA_BYTE_6_MASK (0xFF00U)
3131#define CAN_WORD1_DATA_BYTE_6_SHIFT (8U)
3132#define CAN_WORD1_DATA_BYTE_6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD1_DATA_BYTE_6_SHIFT)) & CAN_WORD1_DATA_BYTE_6_MASK)
3133#define CAN_WORD1_DATA_BYTE_6 CAN_WORD1_DATA_BYTE_6_MASK
3134#define CAN_WORD1_DATA_BYTE_5_MASK (0xFF0000U)
3135#define CAN_WORD1_DATA_BYTE_5_SHIFT (16U)
3136#define CAN_WORD1_DATA_BYTE_5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD1_DATA_BYTE_5_SHIFT)) & CAN_WORD1_DATA_BYTE_5_MASK)
3137#define CAN_WORD1_DATA_BYTE_5 CAN_WORD1_DATA_BYTE_5_MASK
3138#define CAN_WORD1_DATA_BYTE_4_MASK (0xFF000000U)
3139#define CAN_WORD1_DATA_BYTE_4_SHIFT (24U)
3140#define CAN_WORD1_DATA_BYTE_4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD1_DATA_BYTE_4_SHIFT)) & CAN_WORD1_DATA_BYTE_4_MASK)
3141#define CAN_WORD1_DATA_BYTE_4 CAN_WORD1_DATA_BYTE_4_MASK
3142
3143/* The count of CAN_WORD1 */
3144#define CAN_WORD1_COUNT (16U)
3145
3146/*! @name RXIMR - Rx Individual Mask Registers */
3147#define CAN_RXIMR_MI_MASK (0xFFFFFFFFU)
3148#define CAN_RXIMR_MI_SHIFT (0U)
3149#define CAN_RXIMR_MI_SET(x) (((uint32_t)(((uint32_t)(x)) << CAN_RXIMR_MI_SHIFT)) & CAN_RXIMR_MI_MASK)
3150#define CAN_RXIMR_MI CAN_RXIMR_MI_MASK
3151
3152/* The count of CAN_RXIMR */
3153#define CAN_RXIMR_COUNT (16U)
3154
3155
3156/*!
3157 * @}
3158 */ /* end of group CAN_Register_Masks */
3159
3160
3161/* CAN - Peripheral instance base addresses */
3162/** Peripheral CAN0 base address */
3163#define CAN0_BASE (0x40024000u)
3164/** Peripheral CAN0 base pointer */
3165#define CAN0 ((CAN_TypeDef *)CAN0_BASE)
3166/** Peripheral CAN1 base address */
3167#define CAN1_BASE (0x400A4000u)
3168/** Peripheral CAN1 base pointer */
3169#define CAN1 ((CAN_TypeDef *)CAN1_BASE)
3170/** Array initializer of CAN peripheral base addresses */
3171#define CAN_BASE_ADDRS { CAN0_BASE, CAN1_BASE }
3172/** Array initializer of CAN peripheral base pointers */
3173#define CAN_BASE_PTRS { CAN0, CAN1 }
3174/** Interrupt vectors for the CAN peripheral type */
3175#define CAN_Rx_Warning_IRQS { CAN0_Rx_Warning_IRQn, CAN1_Rx_Warning_IRQn }
3176#define CAN_Tx_Warning_IRQS { CAN0_Tx_Warning_IRQn, CAN1_Tx_Warning_IRQn }
3177#define CAN_Wake_Up_IRQS { CAN0_Wake_Up_IRQn, CAN1_Wake_Up_IRQn }
3178#define CAN_Error_IRQS { CAN0_Error_IRQn, CAN1_Error_IRQn }
3179#define CAN_Bus_Off_IRQS { CAN0_Bus_Off_IRQn, CAN1_Bus_Off_IRQn }
3180#define CAN_ORed_Message_buffer_IRQS { CAN0_ORed_Message_buffer_IRQn, CAN1_ORed_Message_buffer_IRQn }
3181
3182/*!
3183 * @}
3184 */ /* end of group CAN_Peripheral_Access_Layer */
3185
3186
3187/* ----------------------------------------------------------------------------
3188 -- CAU Peripheral Access Layer
3189 ---------------------------------------------------------------------------- */
3190
3191/*!
3192 * @addtogroup CAU_Peripheral_Access_Layer CAU Peripheral Access Layer
3193 * @{
3194 */
3195
3196/** CAU - Register Layout Typedef */
3197typedef struct {
3198 __O uint32_t DIRECT[16]; /**< Direct access register 0..Direct access register 15, array offset: 0x0, array step: 0x4 */
3199 uint8_t RESERVED_0[2048];
3200 __O uint32_t LDR_CASR; /**< Status register - Load Register command, offset: 0x840 */
3201 __O uint32_t LDR_CAA; /**< Accumulator register - Load Register command, offset: 0x844 */
3202 __O uint32_t LDR_CA[9]; /**< General Purpose Register 0 - Load Register command..General Purpose Register 8 - Load Register command, array offset: 0x848, array step: 0x4 */
3203 uint8_t RESERVED_1[20];
3204 __I uint32_t STR_CASR; /**< Status register - Store Register command, offset: 0x880 */
3205 __I uint32_t STR_CAA; /**< Accumulator register - Store Register command, offset: 0x884 */
3206 __I uint32_t STR_CA[9]; /**< General Purpose Register 0 - Store Register command..General Purpose Register 8 - Store Register command, array offset: 0x888, array step: 0x4 */
3207 uint8_t RESERVED_2[20];
3208 __O uint32_t ADR_CASR; /**< Status register - Add Register command, offset: 0x8C0 */
3209 __O uint32_t ADR_CAA; /**< Accumulator register - Add to register command, offset: 0x8C4 */
3210 __O uint32_t ADR_CA[9]; /**< General Purpose Register 0 - Add to register command..General Purpose Register 8 - Add to register command, array offset: 0x8C8, array step: 0x4 */
3211 uint8_t RESERVED_3[20];
3212 __O uint32_t RADR_CASR; /**< Status register - Reverse and Add to Register command, offset: 0x900 */
3213 __O uint32_t RADR_CAA; /**< Accumulator register - Reverse and Add to Register command, offset: 0x904 */
3214 __O uint32_t RADR_CA[9]; /**< General Purpose Register 0 - Reverse and Add to Register command..General Purpose Register 8 - Reverse and Add to Register command, array offset: 0x908, array step: 0x4 */
3215 uint8_t RESERVED_4[84];
3216 __O uint32_t XOR_CASR; /**< Status register - Exclusive Or command, offset: 0x980 */
3217 __O uint32_t XOR_CAA; /**< Accumulator register - Exclusive Or command, offset: 0x984 */
3218 __O uint32_t XOR_CA[9]; /**< General Purpose Register 0 - Exclusive Or command..General Purpose Register 8 - Exclusive Or command, array offset: 0x988, array step: 0x4 */
3219 uint8_t RESERVED_5[20];
3220 __O uint32_t ROTL_CASR; /**< Status register - Rotate Left command, offset: 0x9C0 */
3221 __O uint32_t ROTL_CAA; /**< Accumulator register - Rotate Left command, offset: 0x9C4 */
3222 __O uint32_t ROTL_CA[9]; /**< General Purpose Register 0 - Rotate Left command..General Purpose Register 8 - Rotate Left command, array offset: 0x9C8, array step: 0x4 */
3223 uint8_t RESERVED_6[276];
3224 __O uint32_t AESC_CASR; /**< Status register - AES Column Operation command, offset: 0xB00 */
3225 __O uint32_t AESC_CAA; /**< Accumulator register - AES Column Operation command, offset: 0xB04 */
3226 __O uint32_t AESC_CA[9]; /**< General Purpose Register 0 - AES Column Operation command..General Purpose Register 8 - AES Column Operation command, array offset: 0xB08, array step: 0x4 */
3227 uint8_t RESERVED_7[20];
3228 __O uint32_t AESIC_CASR; /**< Status register - AES Inverse Column Operation command, offset: 0xB40 */
3229 __O uint32_t AESIC_CAA; /**< Accumulator register - AES Inverse Column Operation command, offset: 0xB44 */
3230 __O uint32_t AESIC_CA[9]; /**< General Purpose Register 0 - AES Inverse Column Operation command..General Purpose Register 8 - AES Inverse Column Operation command, array offset: 0xB48, array step: 0x4 */
3231} CAU_TypeDef;
3232
3233/* ----------------------------------------------------------------------------
3234 -- CAU Register Masks
3235 ---------------------------------------------------------------------------- */
3236
3237/*!
3238 * @addtogroup CAU_Register_Masks CAU Register Masks
3239 * @{
3240 */
3241
3242/*! @name DIRECT - Direct access register 0..Direct access register 15 */
3243#define CAU_DIRECT_CAU_DIRECT0_MASK (0xFFFFFFFFU)
3244#define CAU_DIRECT_CAU_DIRECT0_SHIFT (0U)
3245#define CAU_DIRECT_CAU_DIRECT0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT0_SHIFT)) & CAU_DIRECT_CAU_DIRECT0_MASK)
3246#define CAU_DIRECT_CAU_DIRECT0 CAU_DIRECT_CAU_DIRECT0_MASK
3247#define CAU_DIRECT_CAU_DIRECT1_MASK (0xFFFFFFFFU)
3248#define CAU_DIRECT_CAU_DIRECT1_SHIFT (0U)
3249#define CAU_DIRECT_CAU_DIRECT1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT1_SHIFT)) & CAU_DIRECT_CAU_DIRECT1_MASK)
3250#define CAU_DIRECT_CAU_DIRECT1 CAU_DIRECT_CAU_DIRECT1_MASK
3251#define CAU_DIRECT_CAU_DIRECT2_MASK (0xFFFFFFFFU)
3252#define CAU_DIRECT_CAU_DIRECT2_SHIFT (0U)
3253#define CAU_DIRECT_CAU_DIRECT2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT2_SHIFT)) & CAU_DIRECT_CAU_DIRECT2_MASK)
3254#define CAU_DIRECT_CAU_DIRECT2 CAU_DIRECT_CAU_DIRECT2_MASK
3255#define CAU_DIRECT_CAU_DIRECT3_MASK (0xFFFFFFFFU)
3256#define CAU_DIRECT_CAU_DIRECT3_SHIFT (0U)
3257#define CAU_DIRECT_CAU_DIRECT3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT3_SHIFT)) & CAU_DIRECT_CAU_DIRECT3_MASK)
3258#define CAU_DIRECT_CAU_DIRECT3 CAU_DIRECT_CAU_DIRECT3_MASK
3259#define CAU_DIRECT_CAU_DIRECT4_MASK (0xFFFFFFFFU)
3260#define CAU_DIRECT_CAU_DIRECT4_SHIFT (0U)
3261#define CAU_DIRECT_CAU_DIRECT4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT4_SHIFT)) & CAU_DIRECT_CAU_DIRECT4_MASK)
3262#define CAU_DIRECT_CAU_DIRECT4 CAU_DIRECT_CAU_DIRECT4_MASK
3263#define CAU_DIRECT_CAU_DIRECT5_MASK (0xFFFFFFFFU)
3264#define CAU_DIRECT_CAU_DIRECT5_SHIFT (0U)
3265#define CAU_DIRECT_CAU_DIRECT5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT5_SHIFT)) & CAU_DIRECT_CAU_DIRECT5_MASK)
3266#define CAU_DIRECT_CAU_DIRECT5 CAU_DIRECT_CAU_DIRECT5_MASK
3267#define CAU_DIRECT_CAU_DIRECT6_MASK (0xFFFFFFFFU)
3268#define CAU_DIRECT_CAU_DIRECT6_SHIFT (0U)
3269#define CAU_DIRECT_CAU_DIRECT6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT6_SHIFT)) & CAU_DIRECT_CAU_DIRECT6_MASK)
3270#define CAU_DIRECT_CAU_DIRECT6 CAU_DIRECT_CAU_DIRECT6_MASK
3271#define CAU_DIRECT_CAU_DIRECT7_MASK (0xFFFFFFFFU)
3272#define CAU_DIRECT_CAU_DIRECT7_SHIFT (0U)
3273#define CAU_DIRECT_CAU_DIRECT7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT7_SHIFT)) & CAU_DIRECT_CAU_DIRECT7_MASK)
3274#define CAU_DIRECT_CAU_DIRECT7 CAU_DIRECT_CAU_DIRECT7_MASK
3275#define CAU_DIRECT_CAU_DIRECT8_MASK (0xFFFFFFFFU)
3276#define CAU_DIRECT_CAU_DIRECT8_SHIFT (0U)
3277#define CAU_DIRECT_CAU_DIRECT8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT8_SHIFT)) & CAU_DIRECT_CAU_DIRECT8_MASK)
3278#define CAU_DIRECT_CAU_DIRECT8 CAU_DIRECT_CAU_DIRECT8_MASK
3279#define CAU_DIRECT_CAU_DIRECT9_MASK (0xFFFFFFFFU)
3280#define CAU_DIRECT_CAU_DIRECT9_SHIFT (0U)
3281#define CAU_DIRECT_CAU_DIRECT9_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT9_SHIFT)) & CAU_DIRECT_CAU_DIRECT9_MASK)
3282#define CAU_DIRECT_CAU_DIRECT9 CAU_DIRECT_CAU_DIRECT9_MASK
3283#define CAU_DIRECT_CAU_DIRECT10_MASK (0xFFFFFFFFU)
3284#define CAU_DIRECT_CAU_DIRECT10_SHIFT (0U)
3285#define CAU_DIRECT_CAU_DIRECT10_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT10_SHIFT)) & CAU_DIRECT_CAU_DIRECT10_MASK)
3286#define CAU_DIRECT_CAU_DIRECT10 CAU_DIRECT_CAU_DIRECT10_MASK
3287#define CAU_DIRECT_CAU_DIRECT11_MASK (0xFFFFFFFFU)
3288#define CAU_DIRECT_CAU_DIRECT11_SHIFT (0U)
3289#define CAU_DIRECT_CAU_DIRECT11_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT11_SHIFT)) & CAU_DIRECT_CAU_DIRECT11_MASK)
3290#define CAU_DIRECT_CAU_DIRECT11 CAU_DIRECT_CAU_DIRECT11_MASK
3291#define CAU_DIRECT_CAU_DIRECT12_MASK (0xFFFFFFFFU)
3292#define CAU_DIRECT_CAU_DIRECT12_SHIFT (0U)
3293#define CAU_DIRECT_CAU_DIRECT12_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT12_SHIFT)) & CAU_DIRECT_CAU_DIRECT12_MASK)
3294#define CAU_DIRECT_CAU_DIRECT12 CAU_DIRECT_CAU_DIRECT12_MASK
3295#define CAU_DIRECT_CAU_DIRECT13_MASK (0xFFFFFFFFU)
3296#define CAU_DIRECT_CAU_DIRECT13_SHIFT (0U)
3297#define CAU_DIRECT_CAU_DIRECT13_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT13_SHIFT)) & CAU_DIRECT_CAU_DIRECT13_MASK)
3298#define CAU_DIRECT_CAU_DIRECT13 CAU_DIRECT_CAU_DIRECT13_MASK
3299#define CAU_DIRECT_CAU_DIRECT14_MASK (0xFFFFFFFFU)
3300#define CAU_DIRECT_CAU_DIRECT14_SHIFT (0U)
3301#define CAU_DIRECT_CAU_DIRECT14_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT14_SHIFT)) & CAU_DIRECT_CAU_DIRECT14_MASK)
3302#define CAU_DIRECT_CAU_DIRECT14 CAU_DIRECT_CAU_DIRECT14_MASK
3303#define CAU_DIRECT_CAU_DIRECT15_MASK (0xFFFFFFFFU)
3304#define CAU_DIRECT_CAU_DIRECT15_SHIFT (0U)
3305#define CAU_DIRECT_CAU_DIRECT15_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_DIRECT_CAU_DIRECT15_SHIFT)) & CAU_DIRECT_CAU_DIRECT15_MASK)
3306#define CAU_DIRECT_CAU_DIRECT15 CAU_DIRECT_CAU_DIRECT15_MASK
3307
3308/* The count of CAU_DIRECT */
3309#define CAU_DIRECT_COUNT (16U)
3310
3311/*! @name LDR_CASR - Status register - Load Register command */
3312#define CAU_LDR_CASR_IC_MASK (0x1U)
3313#define CAU_LDR_CASR_IC_SHIFT (0U)
3314#define CAU_LDR_CASR_IC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CASR_IC_SHIFT)) & CAU_LDR_CASR_IC_MASK)
3315#define CAU_LDR_CASR_IC CAU_LDR_CASR_IC_MASK
3316#define CAU_LDR_CASR_DPE_MASK (0x2U)
3317#define CAU_LDR_CASR_DPE_SHIFT (1U)
3318#define CAU_LDR_CASR_DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CASR_DPE_SHIFT)) & CAU_LDR_CASR_DPE_MASK)
3319#define CAU_LDR_CASR_DPE CAU_LDR_CASR_DPE_MASK
3320#define CAU_LDR_CASR_VER_MASK (0xF0000000U)
3321#define CAU_LDR_CASR_VER_SHIFT (28U)
3322#define CAU_LDR_CASR_VER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CASR_VER_SHIFT)) & CAU_LDR_CASR_VER_MASK)
3323#define CAU_LDR_CASR_VER CAU_LDR_CASR_VER_MASK
3324
3325/*! @name LDR_CAA - Accumulator register - Load Register command */
3326#define CAU_LDR_CAA_ACC_MASK (0xFFFFFFFFU)
3327#define CAU_LDR_CAA_ACC_SHIFT (0U)
3328#define CAU_LDR_CAA_ACC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CAA_ACC_SHIFT)) & CAU_LDR_CAA_ACC_MASK)
3329#define CAU_LDR_CAA_ACC CAU_LDR_CAA_ACC_MASK
3330
3331/*! @name LDR_CA - General Purpose Register 0 - Load Register command..General Purpose Register 8 - Load Register command */
3332#define CAU_LDR_CA_CA0_MASK (0xFFFFFFFFU)
3333#define CAU_LDR_CA_CA0_SHIFT (0U)
3334#define CAU_LDR_CA_CA0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA0_SHIFT)) & CAU_LDR_CA_CA0_MASK)
3335#define CAU_LDR_CA_CA0 CAU_LDR_CA_CA0_MASK
3336#define CAU_LDR_CA_CA1_MASK (0xFFFFFFFFU)
3337#define CAU_LDR_CA_CA1_SHIFT (0U)
3338#define CAU_LDR_CA_CA1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA1_SHIFT)) & CAU_LDR_CA_CA1_MASK)
3339#define CAU_LDR_CA_CA1 CAU_LDR_CA_CA1_MASK
3340#define CAU_LDR_CA_CA2_MASK (0xFFFFFFFFU)
3341#define CAU_LDR_CA_CA2_SHIFT (0U)
3342#define CAU_LDR_CA_CA2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA2_SHIFT)) & CAU_LDR_CA_CA2_MASK)
3343#define CAU_LDR_CA_CA2 CAU_LDR_CA_CA2_MASK
3344#define CAU_LDR_CA_CA3_MASK (0xFFFFFFFFU)
3345#define CAU_LDR_CA_CA3_SHIFT (0U)
3346#define CAU_LDR_CA_CA3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA3_SHIFT)) & CAU_LDR_CA_CA3_MASK)
3347#define CAU_LDR_CA_CA3 CAU_LDR_CA_CA3_MASK
3348#define CAU_LDR_CA_CA4_MASK (0xFFFFFFFFU)
3349#define CAU_LDR_CA_CA4_SHIFT (0U)
3350#define CAU_LDR_CA_CA4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA4_SHIFT)) & CAU_LDR_CA_CA4_MASK)
3351#define CAU_LDR_CA_CA4 CAU_LDR_CA_CA4_MASK
3352#define CAU_LDR_CA_CA5_MASK (0xFFFFFFFFU)
3353#define CAU_LDR_CA_CA5_SHIFT (0U)
3354#define CAU_LDR_CA_CA5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA5_SHIFT)) & CAU_LDR_CA_CA5_MASK)
3355#define CAU_LDR_CA_CA5 CAU_LDR_CA_CA5_MASK
3356#define CAU_LDR_CA_CA6_MASK (0xFFFFFFFFU)
3357#define CAU_LDR_CA_CA6_SHIFT (0U)
3358#define CAU_LDR_CA_CA6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA6_SHIFT)) & CAU_LDR_CA_CA6_MASK)
3359#define CAU_LDR_CA_CA6 CAU_LDR_CA_CA6_MASK
3360#define CAU_LDR_CA_CA7_MASK (0xFFFFFFFFU)
3361#define CAU_LDR_CA_CA7_SHIFT (0U)
3362#define CAU_LDR_CA_CA7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA7_SHIFT)) & CAU_LDR_CA_CA7_MASK)
3363#define CAU_LDR_CA_CA7 CAU_LDR_CA_CA7_MASK
3364#define CAU_LDR_CA_CA8_MASK (0xFFFFFFFFU)
3365#define CAU_LDR_CA_CA8_SHIFT (0U)
3366#define CAU_LDR_CA_CA8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CA_CA8_SHIFT)) & CAU_LDR_CA_CA8_MASK)
3367#define CAU_LDR_CA_CA8 CAU_LDR_CA_CA8_MASK
3368
3369/* The count of CAU_LDR_CA */
3370#define CAU_LDR_CA_COUNT (9U)
3371
3372/*! @name STR_CASR - Status register - Store Register command */
3373#define CAU_STR_CASR_IC_MASK (0x1U)
3374#define CAU_STR_CASR_IC_SHIFT (0U)
3375#define CAU_STR_CASR_IC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CASR_IC_SHIFT)) & CAU_STR_CASR_IC_MASK)
3376#define CAU_STR_CASR_IC CAU_STR_CASR_IC_MASK
3377#define CAU_STR_CASR_DPE_MASK (0x2U)
3378#define CAU_STR_CASR_DPE_SHIFT (1U)
3379#define CAU_STR_CASR_DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CASR_DPE_SHIFT)) & CAU_STR_CASR_DPE_MASK)
3380#define CAU_STR_CASR_DPE CAU_STR_CASR_DPE_MASK
3381#define CAU_STR_CASR_VER_MASK (0xF0000000U)
3382#define CAU_STR_CASR_VER_SHIFT (28U)
3383#define CAU_STR_CASR_VER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CASR_VER_SHIFT)) & CAU_STR_CASR_VER_MASK)
3384#define CAU_STR_CASR_VER CAU_STR_CASR_VER_MASK
3385
3386/*! @name STR_CAA - Accumulator register - Store Register command */
3387#define CAU_STR_CAA_ACC_MASK (0xFFFFFFFFU)
3388#define CAU_STR_CAA_ACC_SHIFT (0U)
3389#define CAU_STR_CAA_ACC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CAA_ACC_SHIFT)) & CAU_STR_CAA_ACC_MASK)
3390#define CAU_STR_CAA_ACC CAU_STR_CAA_ACC_MASK
3391
3392/*! @name STR_CA - General Purpose Register 0 - Store Register command..General Purpose Register 8 - Store Register command */
3393#define CAU_STR_CA_CA0_MASK (0xFFFFFFFFU)
3394#define CAU_STR_CA_CA0_SHIFT (0U)
3395#define CAU_STR_CA_CA0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA0_SHIFT)) & CAU_STR_CA_CA0_MASK)
3396#define CAU_STR_CA_CA0 CAU_STR_CA_CA0_MASK
3397#define CAU_STR_CA_CA1_MASK (0xFFFFFFFFU)
3398#define CAU_STR_CA_CA1_SHIFT (0U)
3399#define CAU_STR_CA_CA1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA1_SHIFT)) & CAU_STR_CA_CA1_MASK)
3400#define CAU_STR_CA_CA1 CAU_STR_CA_CA1_MASK
3401#define CAU_STR_CA_CA2_MASK (0xFFFFFFFFU)
3402#define CAU_STR_CA_CA2_SHIFT (0U)
3403#define CAU_STR_CA_CA2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA2_SHIFT)) & CAU_STR_CA_CA2_MASK)
3404#define CAU_STR_CA_CA2 CAU_STR_CA_CA2_MASK
3405#define CAU_STR_CA_CA3_MASK (0xFFFFFFFFU)
3406#define CAU_STR_CA_CA3_SHIFT (0U)
3407#define CAU_STR_CA_CA3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA3_SHIFT)) & CAU_STR_CA_CA3_MASK)
3408#define CAU_STR_CA_CA3 CAU_STR_CA_CA3_MASK
3409#define CAU_STR_CA_CA4_MASK (0xFFFFFFFFU)
3410#define CAU_STR_CA_CA4_SHIFT (0U)
3411#define CAU_STR_CA_CA4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA4_SHIFT)) & CAU_STR_CA_CA4_MASK)
3412#define CAU_STR_CA_CA4 CAU_STR_CA_CA4_MASK
3413#define CAU_STR_CA_CA5_MASK (0xFFFFFFFFU)
3414#define CAU_STR_CA_CA5_SHIFT (0U)
3415#define CAU_STR_CA_CA5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA5_SHIFT)) & CAU_STR_CA_CA5_MASK)
3416#define CAU_STR_CA_CA5 CAU_STR_CA_CA5_MASK
3417#define CAU_STR_CA_CA6_MASK (0xFFFFFFFFU)
3418#define CAU_STR_CA_CA6_SHIFT (0U)
3419#define CAU_STR_CA_CA6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA6_SHIFT)) & CAU_STR_CA_CA6_MASK)
3420#define CAU_STR_CA_CA6 CAU_STR_CA_CA6_MASK
3421#define CAU_STR_CA_CA7_MASK (0xFFFFFFFFU)
3422#define CAU_STR_CA_CA7_SHIFT (0U)
3423#define CAU_STR_CA_CA7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA7_SHIFT)) & CAU_STR_CA_CA7_MASK)
3424#define CAU_STR_CA_CA7 CAU_STR_CA_CA7_MASK
3425#define CAU_STR_CA_CA8_MASK (0xFFFFFFFFU)
3426#define CAU_STR_CA_CA8_SHIFT (0U)
3427#define CAU_STR_CA_CA8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CA_CA8_SHIFT)) & CAU_STR_CA_CA8_MASK)
3428#define CAU_STR_CA_CA8 CAU_STR_CA_CA8_MASK
3429
3430/* The count of CAU_STR_CA */
3431#define CAU_STR_CA_COUNT (9U)
3432
3433/*! @name ADR_CASR - Status register - Add Register command */
3434#define CAU_ADR_CASR_IC_MASK (0x1U)
3435#define CAU_ADR_CASR_IC_SHIFT (0U)
3436#define CAU_ADR_CASR_IC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CASR_IC_SHIFT)) & CAU_ADR_CASR_IC_MASK)
3437#define CAU_ADR_CASR_IC CAU_ADR_CASR_IC_MASK
3438#define CAU_ADR_CASR_DPE_MASK (0x2U)
3439#define CAU_ADR_CASR_DPE_SHIFT (1U)
3440#define CAU_ADR_CASR_DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CASR_DPE_SHIFT)) & CAU_ADR_CASR_DPE_MASK)
3441#define CAU_ADR_CASR_DPE CAU_ADR_CASR_DPE_MASK
3442#define CAU_ADR_CASR_VER_MASK (0xF0000000U)
3443#define CAU_ADR_CASR_VER_SHIFT (28U)
3444#define CAU_ADR_CASR_VER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CASR_VER_SHIFT)) & CAU_ADR_CASR_VER_MASK)
3445#define CAU_ADR_CASR_VER CAU_ADR_CASR_VER_MASK
3446
3447/*! @name ADR_CAA - Accumulator register - Add to register command */
3448#define CAU_ADR_CAA_ACC_MASK (0xFFFFFFFFU)
3449#define CAU_ADR_CAA_ACC_SHIFT (0U)
3450#define CAU_ADR_CAA_ACC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CAA_ACC_SHIFT)) & CAU_ADR_CAA_ACC_MASK)
3451#define CAU_ADR_CAA_ACC CAU_ADR_CAA_ACC_MASK
3452
3453/*! @name ADR_CA - General Purpose Register 0 - Add to register command..General Purpose Register 8 - Add to register command */
3454#define CAU_ADR_CA_CA0_MASK (0xFFFFFFFFU)
3455#define CAU_ADR_CA_CA0_SHIFT (0U)
3456#define CAU_ADR_CA_CA0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA0_SHIFT)) & CAU_ADR_CA_CA0_MASK)
3457#define CAU_ADR_CA_CA0 CAU_ADR_CA_CA0_MASK
3458#define CAU_ADR_CA_CA1_MASK (0xFFFFFFFFU)
3459#define CAU_ADR_CA_CA1_SHIFT (0U)
3460#define CAU_ADR_CA_CA1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA1_SHIFT)) & CAU_ADR_CA_CA1_MASK)
3461#define CAU_ADR_CA_CA1 CAU_ADR_CA_CA1_MASK
3462#define CAU_ADR_CA_CA2_MASK (0xFFFFFFFFU)
3463#define CAU_ADR_CA_CA2_SHIFT (0U)
3464#define CAU_ADR_CA_CA2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA2_SHIFT)) & CAU_ADR_CA_CA2_MASK)
3465#define CAU_ADR_CA_CA2 CAU_ADR_CA_CA2_MASK
3466#define CAU_ADR_CA_CA3_MASK (0xFFFFFFFFU)
3467#define CAU_ADR_CA_CA3_SHIFT (0U)
3468#define CAU_ADR_CA_CA3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA3_SHIFT)) & CAU_ADR_CA_CA3_MASK)
3469#define CAU_ADR_CA_CA3 CAU_ADR_CA_CA3_MASK
3470#define CAU_ADR_CA_CA4_MASK (0xFFFFFFFFU)
3471#define CAU_ADR_CA_CA4_SHIFT (0U)
3472#define CAU_ADR_CA_CA4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA4_SHIFT)) & CAU_ADR_CA_CA4_MASK)
3473#define CAU_ADR_CA_CA4 CAU_ADR_CA_CA4_MASK
3474#define CAU_ADR_CA_CA5_MASK (0xFFFFFFFFU)
3475#define CAU_ADR_CA_CA5_SHIFT (0U)
3476#define CAU_ADR_CA_CA5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA5_SHIFT)) & CAU_ADR_CA_CA5_MASK)
3477#define CAU_ADR_CA_CA5 CAU_ADR_CA_CA5_MASK
3478#define CAU_ADR_CA_CA6_MASK (0xFFFFFFFFU)
3479#define CAU_ADR_CA_CA6_SHIFT (0U)
3480#define CAU_ADR_CA_CA6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA6_SHIFT)) & CAU_ADR_CA_CA6_MASK)
3481#define CAU_ADR_CA_CA6 CAU_ADR_CA_CA6_MASK
3482#define CAU_ADR_CA_CA7_MASK (0xFFFFFFFFU)
3483#define CAU_ADR_CA_CA7_SHIFT (0U)
3484#define CAU_ADR_CA_CA7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA7_SHIFT)) & CAU_ADR_CA_CA7_MASK)
3485#define CAU_ADR_CA_CA7 CAU_ADR_CA_CA7_MASK
3486#define CAU_ADR_CA_CA8_MASK (0xFFFFFFFFU)
3487#define CAU_ADR_CA_CA8_SHIFT (0U)
3488#define CAU_ADR_CA_CA8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CA_CA8_SHIFT)) & CAU_ADR_CA_CA8_MASK)
3489#define CAU_ADR_CA_CA8 CAU_ADR_CA_CA8_MASK
3490
3491/* The count of CAU_ADR_CA */
3492#define CAU_ADR_CA_COUNT (9U)
3493
3494/*! @name RADR_CASR - Status register - Reverse and Add to Register command */
3495#define CAU_RADR_CASR_IC_MASK (0x1U)
3496#define CAU_RADR_CASR_IC_SHIFT (0U)
3497#define CAU_RADR_CASR_IC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CASR_IC_SHIFT)) & CAU_RADR_CASR_IC_MASK)
3498#define CAU_RADR_CASR_IC CAU_RADR_CASR_IC_MASK
3499#define CAU_RADR_CASR_DPE_MASK (0x2U)
3500#define CAU_RADR_CASR_DPE_SHIFT (1U)
3501#define CAU_RADR_CASR_DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CASR_DPE_SHIFT)) & CAU_RADR_CASR_DPE_MASK)
3502#define CAU_RADR_CASR_DPE CAU_RADR_CASR_DPE_MASK
3503#define CAU_RADR_CASR_VER_MASK (0xF0000000U)
3504#define CAU_RADR_CASR_VER_SHIFT (28U)
3505#define CAU_RADR_CASR_VER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CASR_VER_SHIFT)) & CAU_RADR_CASR_VER_MASK)
3506#define CAU_RADR_CASR_VER CAU_RADR_CASR_VER_MASK
3507
3508/*! @name RADR_CAA - Accumulator register - Reverse and Add to Register command */
3509#define CAU_RADR_CAA_ACC_MASK (0xFFFFFFFFU)
3510#define CAU_RADR_CAA_ACC_SHIFT (0U)
3511#define CAU_RADR_CAA_ACC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CAA_ACC_SHIFT)) & CAU_RADR_CAA_ACC_MASK)
3512#define CAU_RADR_CAA_ACC CAU_RADR_CAA_ACC_MASK
3513
3514/*! @name RADR_CA - General Purpose Register 0 - Reverse and Add to Register command..General Purpose Register 8 - Reverse and Add to Register command */
3515#define CAU_RADR_CA_CA0_MASK (0xFFFFFFFFU)
3516#define CAU_RADR_CA_CA0_SHIFT (0U)
3517#define CAU_RADR_CA_CA0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA0_SHIFT)) & CAU_RADR_CA_CA0_MASK)
3518#define CAU_RADR_CA_CA0 CAU_RADR_CA_CA0_MASK
3519#define CAU_RADR_CA_CA1_MASK (0xFFFFFFFFU)
3520#define CAU_RADR_CA_CA1_SHIFT (0U)
3521#define CAU_RADR_CA_CA1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA1_SHIFT)) & CAU_RADR_CA_CA1_MASK)
3522#define CAU_RADR_CA_CA1 CAU_RADR_CA_CA1_MASK
3523#define CAU_RADR_CA_CA2_MASK (0xFFFFFFFFU)
3524#define CAU_RADR_CA_CA2_SHIFT (0U)
3525#define CAU_RADR_CA_CA2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA2_SHIFT)) & CAU_RADR_CA_CA2_MASK)
3526#define CAU_RADR_CA_CA2 CAU_RADR_CA_CA2_MASK
3527#define CAU_RADR_CA_CA3_MASK (0xFFFFFFFFU)
3528#define CAU_RADR_CA_CA3_SHIFT (0U)
3529#define CAU_RADR_CA_CA3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA3_SHIFT)) & CAU_RADR_CA_CA3_MASK)
3530#define CAU_RADR_CA_CA3 CAU_RADR_CA_CA3_MASK
3531#define CAU_RADR_CA_CA4_MASK (0xFFFFFFFFU)
3532#define CAU_RADR_CA_CA4_SHIFT (0U)
3533#define CAU_RADR_CA_CA4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA4_SHIFT)) & CAU_RADR_CA_CA4_MASK)
3534#define CAU_RADR_CA_CA4 CAU_RADR_CA_CA4_MASK
3535#define CAU_RADR_CA_CA5_MASK (0xFFFFFFFFU)
3536#define CAU_RADR_CA_CA5_SHIFT (0U)
3537#define CAU_RADR_CA_CA5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA5_SHIFT)) & CAU_RADR_CA_CA5_MASK)
3538#define CAU_RADR_CA_CA5 CAU_RADR_CA_CA5_MASK
3539#define CAU_RADR_CA_CA6_MASK (0xFFFFFFFFU)
3540#define CAU_RADR_CA_CA6_SHIFT (0U)
3541#define CAU_RADR_CA_CA6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA6_SHIFT)) & CAU_RADR_CA_CA6_MASK)
3542#define CAU_RADR_CA_CA6 CAU_RADR_CA_CA6_MASK
3543#define CAU_RADR_CA_CA7_MASK (0xFFFFFFFFU)
3544#define CAU_RADR_CA_CA7_SHIFT (0U)
3545#define CAU_RADR_CA_CA7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA7_SHIFT)) & CAU_RADR_CA_CA7_MASK)
3546#define CAU_RADR_CA_CA7 CAU_RADR_CA_CA7_MASK
3547#define CAU_RADR_CA_CA8_MASK (0xFFFFFFFFU)
3548#define CAU_RADR_CA_CA8_SHIFT (0U)
3549#define CAU_RADR_CA_CA8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CA_CA8_SHIFT)) & CAU_RADR_CA_CA8_MASK)
3550#define CAU_RADR_CA_CA8 CAU_RADR_CA_CA8_MASK
3551
3552/* The count of CAU_RADR_CA */
3553#define CAU_RADR_CA_COUNT (9U)
3554
3555/*! @name XOR_CASR - Status register - Exclusive Or command */
3556#define CAU_XOR_CASR_IC_MASK (0x1U)
3557#define CAU_XOR_CASR_IC_SHIFT (0U)
3558#define CAU_XOR_CASR_IC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CASR_IC_SHIFT)) & CAU_XOR_CASR_IC_MASK)
3559#define CAU_XOR_CASR_IC CAU_XOR_CASR_IC_MASK
3560#define CAU_XOR_CASR_DPE_MASK (0x2U)
3561#define CAU_XOR_CASR_DPE_SHIFT (1U)
3562#define CAU_XOR_CASR_DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CASR_DPE_SHIFT)) & CAU_XOR_CASR_DPE_MASK)
3563#define CAU_XOR_CASR_DPE CAU_XOR_CASR_DPE_MASK
3564#define CAU_XOR_CASR_VER_MASK (0xF0000000U)
3565#define CAU_XOR_CASR_VER_SHIFT (28U)
3566#define CAU_XOR_CASR_VER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CASR_VER_SHIFT)) & CAU_XOR_CASR_VER_MASK)
3567#define CAU_XOR_CASR_VER CAU_XOR_CASR_VER_MASK
3568
3569/*! @name XOR_CAA - Accumulator register - Exclusive Or command */
3570#define CAU_XOR_CAA_ACC_MASK (0xFFFFFFFFU)
3571#define CAU_XOR_CAA_ACC_SHIFT (0U)
3572#define CAU_XOR_CAA_ACC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CAA_ACC_SHIFT)) & CAU_XOR_CAA_ACC_MASK)
3573#define CAU_XOR_CAA_ACC CAU_XOR_CAA_ACC_MASK
3574
3575/*! @name XOR_CA - General Purpose Register 0 - Exclusive Or command..General Purpose Register 8 - Exclusive Or command */
3576#define CAU_XOR_CA_CA0_MASK (0xFFFFFFFFU)
3577#define CAU_XOR_CA_CA0_SHIFT (0U)
3578#define CAU_XOR_CA_CA0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA0_SHIFT)) & CAU_XOR_CA_CA0_MASK)
3579#define CAU_XOR_CA_CA0 CAU_XOR_CA_CA0_MASK
3580#define CAU_XOR_CA_CA1_MASK (0xFFFFFFFFU)
3581#define CAU_XOR_CA_CA1_SHIFT (0U)
3582#define CAU_XOR_CA_CA1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA1_SHIFT)) & CAU_XOR_CA_CA1_MASK)
3583#define CAU_XOR_CA_CA1 CAU_XOR_CA_CA1_MASK
3584#define CAU_XOR_CA_CA2_MASK (0xFFFFFFFFU)
3585#define CAU_XOR_CA_CA2_SHIFT (0U)
3586#define CAU_XOR_CA_CA2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA2_SHIFT)) & CAU_XOR_CA_CA2_MASK)
3587#define CAU_XOR_CA_CA2 CAU_XOR_CA_CA2_MASK
3588#define CAU_XOR_CA_CA3_MASK (0xFFFFFFFFU)
3589#define CAU_XOR_CA_CA3_SHIFT (0U)
3590#define CAU_XOR_CA_CA3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA3_SHIFT)) & CAU_XOR_CA_CA3_MASK)
3591#define CAU_XOR_CA_CA3 CAU_XOR_CA_CA3_MASK
3592#define CAU_XOR_CA_CA4_MASK (0xFFFFFFFFU)
3593#define CAU_XOR_CA_CA4_SHIFT (0U)
3594#define CAU_XOR_CA_CA4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA4_SHIFT)) & CAU_XOR_CA_CA4_MASK)
3595#define CAU_XOR_CA_CA4 CAU_XOR_CA_CA4_MASK
3596#define CAU_XOR_CA_CA5_MASK (0xFFFFFFFFU)
3597#define CAU_XOR_CA_CA5_SHIFT (0U)
3598#define CAU_XOR_CA_CA5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA5_SHIFT)) & CAU_XOR_CA_CA5_MASK)
3599#define CAU_XOR_CA_CA5 CAU_XOR_CA_CA5_MASK
3600#define CAU_XOR_CA_CA6_MASK (0xFFFFFFFFU)
3601#define CAU_XOR_CA_CA6_SHIFT (0U)
3602#define CAU_XOR_CA_CA6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA6_SHIFT)) & CAU_XOR_CA_CA6_MASK)
3603#define CAU_XOR_CA_CA6 CAU_XOR_CA_CA6_MASK
3604#define CAU_XOR_CA_CA7_MASK (0xFFFFFFFFU)
3605#define CAU_XOR_CA_CA7_SHIFT (0U)
3606#define CAU_XOR_CA_CA7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA7_SHIFT)) & CAU_XOR_CA_CA7_MASK)
3607#define CAU_XOR_CA_CA7 CAU_XOR_CA_CA7_MASK
3608#define CAU_XOR_CA_CA8_MASK (0xFFFFFFFFU)
3609#define CAU_XOR_CA_CA8_SHIFT (0U)
3610#define CAU_XOR_CA_CA8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CA_CA8_SHIFT)) & CAU_XOR_CA_CA8_MASK)
3611#define CAU_XOR_CA_CA8 CAU_XOR_CA_CA8_MASK
3612
3613/* The count of CAU_XOR_CA */
3614#define CAU_XOR_CA_COUNT (9U)
3615
3616/*! @name ROTL_CASR - Status register - Rotate Left command */
3617#define CAU_ROTL_CASR_IC_MASK (0x1U)
3618#define CAU_ROTL_CASR_IC_SHIFT (0U)
3619#define CAU_ROTL_CASR_IC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CASR_IC_SHIFT)) & CAU_ROTL_CASR_IC_MASK)
3620#define CAU_ROTL_CASR_IC CAU_ROTL_CASR_IC_MASK
3621#define CAU_ROTL_CASR_DPE_MASK (0x2U)
3622#define CAU_ROTL_CASR_DPE_SHIFT (1U)
3623#define CAU_ROTL_CASR_DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CASR_DPE_SHIFT)) & CAU_ROTL_CASR_DPE_MASK)
3624#define CAU_ROTL_CASR_DPE CAU_ROTL_CASR_DPE_MASK
3625#define CAU_ROTL_CASR_VER_MASK (0xF0000000U)
3626#define CAU_ROTL_CASR_VER_SHIFT (28U)
3627#define CAU_ROTL_CASR_VER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CASR_VER_SHIFT)) & CAU_ROTL_CASR_VER_MASK)
3628#define CAU_ROTL_CASR_VER CAU_ROTL_CASR_VER_MASK
3629
3630/*! @name ROTL_CAA - Accumulator register - Rotate Left command */
3631#define CAU_ROTL_CAA_ACC_MASK (0xFFFFFFFFU)
3632#define CAU_ROTL_CAA_ACC_SHIFT (0U)
3633#define CAU_ROTL_CAA_ACC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CAA_ACC_SHIFT)) & CAU_ROTL_CAA_ACC_MASK)
3634#define CAU_ROTL_CAA_ACC CAU_ROTL_CAA_ACC_MASK
3635
3636/*! @name ROTL_CA - General Purpose Register 0 - Rotate Left command..General Purpose Register 8 - Rotate Left command */
3637#define CAU_ROTL_CA_CA0_MASK (0xFFFFFFFFU)
3638#define CAU_ROTL_CA_CA0_SHIFT (0U)
3639#define CAU_ROTL_CA_CA0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA0_SHIFT)) & CAU_ROTL_CA_CA0_MASK)
3640#define CAU_ROTL_CA_CA0 CAU_ROTL_CA_CA0_MASK
3641#define CAU_ROTL_CA_CA1_MASK (0xFFFFFFFFU)
3642#define CAU_ROTL_CA_CA1_SHIFT (0U)
3643#define CAU_ROTL_CA_CA1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA1_SHIFT)) & CAU_ROTL_CA_CA1_MASK)
3644#define CAU_ROTL_CA_CA1 CAU_ROTL_CA_CA1_MASK
3645#define CAU_ROTL_CA_CA2_MASK (0xFFFFFFFFU)
3646#define CAU_ROTL_CA_CA2_SHIFT (0U)
3647#define CAU_ROTL_CA_CA2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA2_SHIFT)) & CAU_ROTL_CA_CA2_MASK)
3648#define CAU_ROTL_CA_CA2 CAU_ROTL_CA_CA2_MASK
3649#define CAU_ROTL_CA_CA3_MASK (0xFFFFFFFFU)
3650#define CAU_ROTL_CA_CA3_SHIFT (0U)
3651#define CAU_ROTL_CA_CA3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA3_SHIFT)) & CAU_ROTL_CA_CA3_MASK)
3652#define CAU_ROTL_CA_CA3 CAU_ROTL_CA_CA3_MASK
3653#define CAU_ROTL_CA_CA4_MASK (0xFFFFFFFFU)
3654#define CAU_ROTL_CA_CA4_SHIFT (0U)
3655#define CAU_ROTL_CA_CA4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA4_SHIFT)) & CAU_ROTL_CA_CA4_MASK)
3656#define CAU_ROTL_CA_CA4 CAU_ROTL_CA_CA4_MASK
3657#define CAU_ROTL_CA_CA5_MASK (0xFFFFFFFFU)
3658#define CAU_ROTL_CA_CA5_SHIFT (0U)
3659#define CAU_ROTL_CA_CA5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA5_SHIFT)) & CAU_ROTL_CA_CA5_MASK)
3660#define CAU_ROTL_CA_CA5 CAU_ROTL_CA_CA5_MASK
3661#define CAU_ROTL_CA_CA6_MASK (0xFFFFFFFFU)
3662#define CAU_ROTL_CA_CA6_SHIFT (0U)
3663#define CAU_ROTL_CA_CA6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA6_SHIFT)) & CAU_ROTL_CA_CA6_MASK)
3664#define CAU_ROTL_CA_CA6 CAU_ROTL_CA_CA6_MASK
3665#define CAU_ROTL_CA_CA7_MASK (0xFFFFFFFFU)
3666#define CAU_ROTL_CA_CA7_SHIFT (0U)
3667#define CAU_ROTL_CA_CA7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA7_SHIFT)) & CAU_ROTL_CA_CA7_MASK)
3668#define CAU_ROTL_CA_CA7 CAU_ROTL_CA_CA7_MASK
3669#define CAU_ROTL_CA_CA8_MASK (0xFFFFFFFFU)
3670#define CAU_ROTL_CA_CA8_SHIFT (0U)
3671#define CAU_ROTL_CA_CA8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CA_CA8_SHIFT)) & CAU_ROTL_CA_CA8_MASK)
3672#define CAU_ROTL_CA_CA8 CAU_ROTL_CA_CA8_MASK
3673
3674/* The count of CAU_ROTL_CA */
3675#define CAU_ROTL_CA_COUNT (9U)
3676
3677/*! @name AESC_CASR - Status register - AES Column Operation command */
3678#define CAU_AESC_CASR_IC_MASK (0x1U)
3679#define CAU_AESC_CASR_IC_SHIFT (0U)
3680#define CAU_AESC_CASR_IC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CASR_IC_SHIFT)) & CAU_AESC_CASR_IC_MASK)
3681#define CAU_AESC_CASR_IC CAU_AESC_CASR_IC_MASK
3682#define CAU_AESC_CASR_DPE_MASK (0x2U)
3683#define CAU_AESC_CASR_DPE_SHIFT (1U)
3684#define CAU_AESC_CASR_DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CASR_DPE_SHIFT)) & CAU_AESC_CASR_DPE_MASK)
3685#define CAU_AESC_CASR_DPE CAU_AESC_CASR_DPE_MASK
3686#define CAU_AESC_CASR_VER_MASK (0xF0000000U)
3687#define CAU_AESC_CASR_VER_SHIFT (28U)
3688#define CAU_AESC_CASR_VER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CASR_VER_SHIFT)) & CAU_AESC_CASR_VER_MASK)
3689#define CAU_AESC_CASR_VER CAU_AESC_CASR_VER_MASK
3690
3691/*! @name AESC_CAA - Accumulator register - AES Column Operation command */
3692#define CAU_AESC_CAA_ACC_MASK (0xFFFFFFFFU)
3693#define CAU_AESC_CAA_ACC_SHIFT (0U)
3694#define CAU_AESC_CAA_ACC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CAA_ACC_SHIFT)) & CAU_AESC_CAA_ACC_MASK)
3695#define CAU_AESC_CAA_ACC CAU_AESC_CAA_ACC_MASK
3696
3697/*! @name AESC_CA - General Purpose Register 0 - AES Column Operation command..General Purpose Register 8 - AES Column Operation command */
3698#define CAU_AESC_CA_CA0_MASK (0xFFFFFFFFU)
3699#define CAU_AESC_CA_CA0_SHIFT (0U)
3700#define CAU_AESC_CA_CA0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA0_SHIFT)) & CAU_AESC_CA_CA0_MASK)
3701#define CAU_AESC_CA_CA0 CAU_AESC_CA_CA0_MASK
3702#define CAU_AESC_CA_CA1_MASK (0xFFFFFFFFU)
3703#define CAU_AESC_CA_CA1_SHIFT (0U)
3704#define CAU_AESC_CA_CA1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA1_SHIFT)) & CAU_AESC_CA_CA1_MASK)
3705#define CAU_AESC_CA_CA1 CAU_AESC_CA_CA1_MASK
3706#define CAU_AESC_CA_CA2_MASK (0xFFFFFFFFU)
3707#define CAU_AESC_CA_CA2_SHIFT (0U)
3708#define CAU_AESC_CA_CA2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA2_SHIFT)) & CAU_AESC_CA_CA2_MASK)
3709#define CAU_AESC_CA_CA2 CAU_AESC_CA_CA2_MASK
3710#define CAU_AESC_CA_CA3_MASK (0xFFFFFFFFU)
3711#define CAU_AESC_CA_CA3_SHIFT (0U)
3712#define CAU_AESC_CA_CA3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA3_SHIFT)) & CAU_AESC_CA_CA3_MASK)
3713#define CAU_AESC_CA_CA3 CAU_AESC_CA_CA3_MASK
3714#define CAU_AESC_CA_CA4_MASK (0xFFFFFFFFU)
3715#define CAU_AESC_CA_CA4_SHIFT (0U)
3716#define CAU_AESC_CA_CA4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA4_SHIFT)) & CAU_AESC_CA_CA4_MASK)
3717#define CAU_AESC_CA_CA4 CAU_AESC_CA_CA4_MASK
3718#define CAU_AESC_CA_CA5_MASK (0xFFFFFFFFU)
3719#define CAU_AESC_CA_CA5_SHIFT (0U)
3720#define CAU_AESC_CA_CA5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA5_SHIFT)) & CAU_AESC_CA_CA5_MASK)
3721#define CAU_AESC_CA_CA5 CAU_AESC_CA_CA5_MASK
3722#define CAU_AESC_CA_CA6_MASK (0xFFFFFFFFU)
3723#define CAU_AESC_CA_CA6_SHIFT (0U)
3724#define CAU_AESC_CA_CA6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA6_SHIFT)) & CAU_AESC_CA_CA6_MASK)
3725#define CAU_AESC_CA_CA6 CAU_AESC_CA_CA6_MASK
3726#define CAU_AESC_CA_CA7_MASK (0xFFFFFFFFU)
3727#define CAU_AESC_CA_CA7_SHIFT (0U)
3728#define CAU_AESC_CA_CA7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA7_SHIFT)) & CAU_AESC_CA_CA7_MASK)
3729#define CAU_AESC_CA_CA7 CAU_AESC_CA_CA7_MASK
3730#define CAU_AESC_CA_CA8_MASK (0xFFFFFFFFU)
3731#define CAU_AESC_CA_CA8_SHIFT (0U)
3732#define CAU_AESC_CA_CA8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CA_CA8_SHIFT)) & CAU_AESC_CA_CA8_MASK)
3733#define CAU_AESC_CA_CA8 CAU_AESC_CA_CA8_MASK
3734
3735/* The count of CAU_AESC_CA */
3736#define CAU_AESC_CA_COUNT (9U)
3737
3738/*! @name AESIC_CASR - Status register - AES Inverse Column Operation command */
3739#define CAU_AESIC_CASR_IC_MASK (0x1U)
3740#define CAU_AESIC_CASR_IC_SHIFT (0U)
3741#define CAU_AESIC_CASR_IC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CASR_IC_SHIFT)) & CAU_AESIC_CASR_IC_MASK)
3742#define CAU_AESIC_CASR_IC CAU_AESIC_CASR_IC_MASK
3743#define CAU_AESIC_CASR_DPE_MASK (0x2U)
3744#define CAU_AESIC_CASR_DPE_SHIFT (1U)
3745#define CAU_AESIC_CASR_DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CASR_DPE_SHIFT)) & CAU_AESIC_CASR_DPE_MASK)
3746#define CAU_AESIC_CASR_DPE CAU_AESIC_CASR_DPE_MASK
3747#define CAU_AESIC_CASR_VER_MASK (0xF0000000U)
3748#define CAU_AESIC_CASR_VER_SHIFT (28U)
3749#define CAU_AESIC_CASR_VER_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CASR_VER_SHIFT)) & CAU_AESIC_CASR_VER_MASK)
3750#define CAU_AESIC_CASR_VER CAU_AESIC_CASR_VER_MASK
3751
3752/*! @name AESIC_CAA - Accumulator register - AES Inverse Column Operation command */
3753#define CAU_AESIC_CAA_ACC_MASK (0xFFFFFFFFU)
3754#define CAU_AESIC_CAA_ACC_SHIFT (0U)
3755#define CAU_AESIC_CAA_ACC_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CAA_ACC_SHIFT)) & CAU_AESIC_CAA_ACC_MASK)
3756#define CAU_AESIC_CAA_ACC CAU_AESIC_CAA_ACC_MASK
3757
3758/*! @name AESIC_CA - General Purpose Register 0 - AES Inverse Column Operation command..General Purpose Register 8 - AES Inverse Column Operation command */
3759#define CAU_AESIC_CA_CA0_MASK (0xFFFFFFFFU)
3760#define CAU_AESIC_CA_CA0_SHIFT (0U)
3761#define CAU_AESIC_CA_CA0_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA0_SHIFT)) & CAU_AESIC_CA_CA0_MASK)
3762#define CAU_AESIC_CA_CA0 CAU_AESIC_CA_CA0_MASK
3763#define CAU_AESIC_CA_CA1_MASK (0xFFFFFFFFU)
3764#define CAU_AESIC_CA_CA1_SHIFT (0U)
3765#define CAU_AESIC_CA_CA1_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA1_SHIFT)) & CAU_AESIC_CA_CA1_MASK)
3766#define CAU_AESIC_CA_CA1 CAU_AESIC_CA_CA1_MASK
3767#define CAU_AESIC_CA_CA2_MASK (0xFFFFFFFFU)
3768#define CAU_AESIC_CA_CA2_SHIFT (0U)
3769#define CAU_AESIC_CA_CA2_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA2_SHIFT)) & CAU_AESIC_CA_CA2_MASK)
3770#define CAU_AESIC_CA_CA2 CAU_AESIC_CA_CA2_MASK
3771#define CAU_AESIC_CA_CA3_MASK (0xFFFFFFFFU)
3772#define CAU_AESIC_CA_CA3_SHIFT (0U)
3773#define CAU_AESIC_CA_CA3_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA3_SHIFT)) & CAU_AESIC_CA_CA3_MASK)
3774#define CAU_AESIC_CA_CA3 CAU_AESIC_CA_CA3_MASK
3775#define CAU_AESIC_CA_CA4_MASK (0xFFFFFFFFU)
3776#define CAU_AESIC_CA_CA4_SHIFT (0U)
3777#define CAU_AESIC_CA_CA4_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA4_SHIFT)) & CAU_AESIC_CA_CA4_MASK)
3778#define CAU_AESIC_CA_CA4 CAU_AESIC_CA_CA4_MASK
3779#define CAU_AESIC_CA_CA5_MASK (0xFFFFFFFFU)
3780#define CAU_AESIC_CA_CA5_SHIFT (0U)
3781#define CAU_AESIC_CA_CA5_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA5_SHIFT)) & CAU_AESIC_CA_CA5_MASK)
3782#define CAU_AESIC_CA_CA5 CAU_AESIC_CA_CA5_MASK
3783#define CAU_AESIC_CA_CA6_MASK (0xFFFFFFFFU)
3784#define CAU_AESIC_CA_CA6_SHIFT (0U)
3785#define CAU_AESIC_CA_CA6_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA6_SHIFT)) & CAU_AESIC_CA_CA6_MASK)
3786#define CAU_AESIC_CA_CA6 CAU_AESIC_CA_CA6_MASK
3787#define CAU_AESIC_CA_CA7_MASK (0xFFFFFFFFU)
3788#define CAU_AESIC_CA_CA7_SHIFT (0U)
3789#define CAU_AESIC_CA_CA7_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA7_SHIFT)) & CAU_AESIC_CA_CA7_MASK)
3790#define CAU_AESIC_CA_CA7 CAU_AESIC_CA_CA7_MASK
3791#define CAU_AESIC_CA_CA8_MASK (0xFFFFFFFFU)
3792#define CAU_AESIC_CA_CA8_SHIFT (0U)
3793#define CAU_AESIC_CA_CA8_SET(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CA_CA8_SHIFT)) & CAU_AESIC_CA_CA8_MASK)
3794#define CAU_AESIC_CA_CA8 CAU_AESIC_CA_CA8_MASK
3795
3796/* The count of CAU_AESIC_CA */
3797#define CAU_AESIC_CA_COUNT (9U)
3798
3799
3800/*!
3801 * @}
3802 */ /* end of group CAU_Register_Masks */
3803
3804
3805/* CAU - Peripheral instance base addresses */
3806/** Peripheral CAU base address */
3807#define CAU_BASE (0xE0081000u)
3808/** Peripheral CAU base pointer */
3809#define CAU ((CAU_TypeDef *)CAU_BASE)
3810/** Array initializer of CAU peripheral base addresses */
3811#define CAU_BASE_ADDRS { CAU_BASE }
3812/** Array initializer of CAU peripheral base pointers */
3813#define CAU_BASE_PTRS { CAU }
3814
3815/*!
3816 * @}
3817 */ /* end of group CAU_Peripheral_Access_Layer */
3818
3819
3820/* ----------------------------------------------------------------------------
3821 -- CMP Peripheral Access Layer
3822 ---------------------------------------------------------------------------- */
3823
3824/*!
3825 * @addtogroup CMP_Peripheral_Access_Layer CMP Peripheral Access Layer
3826 * @{
3827 */
3828
3829/** CMP - Register Layout Typedef */
3830typedef struct {
3831 __IO uint8_t CR0; /**< CMP Control Register 0, offset: 0x0 */
3832 __IO uint8_t CR1; /**< CMP Control Register 1, offset: 0x1 */
3833 __IO uint8_t FPR; /**< CMP Filter Period Register, offset: 0x2 */
3834 __IO uint8_t SCR; /**< CMP Status and Control Register, offset: 0x3 */
3835 __IO uint8_t DACCR; /**< DAC Control Register, offset: 0x4 */
3836 __IO uint8_t MUXCR; /**< MUX Control Register, offset: 0x5 */
3837} CMP_TypeDef;
3838
3839/* ----------------------------------------------------------------------------
3840 -- CMP Register Masks
3841 ---------------------------------------------------------------------------- */
3842
3843/*!
3844 * @addtogroup CMP_Register_Masks CMP Register Masks
3845 * @{
3846 */
3847
3848/*! @name CR0 - CMP Control Register 0 */
3849#define CMP_CR0_HYSTCTR_MASK (0x3U)
3850#define CMP_CR0_HYSTCTR_SHIFT (0U)
3851#define CMP_CR0_HYSTCTR_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK)
3852#define CMP_CR0_HYSTCTR CMP_CR0_HYSTCTR_MASK
3853#define CMP_CR0_FILTER_CNT_MASK (0x70U)
3854#define CMP_CR0_FILTER_CNT_SHIFT (4U)
3855#define CMP_CR0_FILTER_CNT_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK)
3856#define CMP_CR0_FILTER_CNT CMP_CR0_FILTER_CNT_MASK
3857
3858/*! @name CR1 - CMP Control Register 1 */
3859#define CMP_CR1_EN_MASK (0x1U)
3860#define CMP_CR1_EN_SHIFT (0U)
3861#define CMP_CR1_EN_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK)
3862#define CMP_CR1_EN CMP_CR1_EN_MASK
3863#define CMP_CR1_OPE_MASK (0x2U)
3864#define CMP_CR1_OPE_SHIFT (1U)
3865#define CMP_CR1_OPE_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK)
3866#define CMP_CR1_OPE CMP_CR1_OPE_MASK
3867#define CMP_CR1_COS_MASK (0x4U)
3868#define CMP_CR1_COS_SHIFT (2U)
3869#define CMP_CR1_COS_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK)
3870#define CMP_CR1_COS CMP_CR1_COS_MASK
3871#define CMP_CR1_INV_MASK (0x8U)
3872#define CMP_CR1_INV_SHIFT (3U)
3873#define CMP_CR1_INV_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK)
3874#define CMP_CR1_INV CMP_CR1_INV_MASK
3875#define CMP_CR1_PMODE_MASK (0x10U)
3876#define CMP_CR1_PMODE_SHIFT (4U)
3877#define CMP_CR1_PMODE_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK)
3878#define CMP_CR1_PMODE CMP_CR1_PMODE_MASK
3879#define CMP_CR1_TRIGM_MASK (0x20U)
3880#define CMP_CR1_TRIGM_SHIFT (5U)
3881#define CMP_CR1_TRIGM_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK)
3882#define CMP_CR1_TRIGM CMP_CR1_TRIGM_MASK
3883#define CMP_CR1_WE_MASK (0x40U)
3884#define CMP_CR1_WE_SHIFT (6U)
3885#define CMP_CR1_WE_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK)
3886#define CMP_CR1_WE CMP_CR1_WE_MASK
3887#define CMP_CR1_SE_MASK (0x80U)
3888#define CMP_CR1_SE_SHIFT (7U)
3889#define CMP_CR1_SE_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK)
3890#define CMP_CR1_SE CMP_CR1_SE_MASK
3891
3892/*! @name FPR - CMP Filter Period Register */
3893#define CMP_FPR_FILT_PER_MASK (0xFFU)
3894#define CMP_FPR_FILT_PER_SHIFT (0U)
3895#define CMP_FPR_FILT_PER_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_FPR_FILT_PER_SHIFT)) & CMP_FPR_FILT_PER_MASK)
3896#define CMP_FPR_FILT_PER CMP_FPR_FILT_PER_MASK
3897
3898/*! @name SCR - CMP Status and Control Register */
3899#define CMP_SCR_COUT_MASK (0x1U)
3900#define CMP_SCR_COUT_SHIFT (0U)
3901#define CMP_SCR_COUT_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_COUT_SHIFT)) & CMP_SCR_COUT_MASK)
3902#define CMP_SCR_COUT CMP_SCR_COUT_MASK
3903#define CMP_SCR_CFF_MASK (0x2U)
3904#define CMP_SCR_CFF_SHIFT (1U)
3905#define CMP_SCR_CFF_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK)
3906#define CMP_SCR_CFF CMP_SCR_CFF_MASK
3907#define CMP_SCR_CFR_MASK (0x4U)
3908#define CMP_SCR_CFR_SHIFT (2U)
3909#define CMP_SCR_CFR_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK)
3910#define CMP_SCR_CFR CMP_SCR_CFR_MASK
3911#define CMP_SCR_IEF_MASK (0x8U)
3912#define CMP_SCR_IEF_SHIFT (3U)
3913#define CMP_SCR_IEF_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK)
3914#define CMP_SCR_IEF CMP_SCR_IEF_MASK
3915#define CMP_SCR_IER_MASK (0x10U)
3916#define CMP_SCR_IER_SHIFT (4U)
3917#define CMP_SCR_IER_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK)
3918#define CMP_SCR_IER CMP_SCR_IER_MASK
3919#define CMP_SCR_DMAEN_MASK (0x40U)
3920#define CMP_SCR_DMAEN_SHIFT (6U)
3921#define CMP_SCR_DMAEN_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK)
3922#define CMP_SCR_DMAEN CMP_SCR_DMAEN_MASK
3923
3924/*! @name DACCR - DAC Control Register */
3925#define CMP_DACCR_VOSEL_MASK (0x3FU)
3926#define CMP_DACCR_VOSEL_SHIFT (0U)
3927#define CMP_DACCR_VOSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK)
3928#define CMP_DACCR_VOSEL CMP_DACCR_VOSEL_MASK
3929#define CMP_DACCR_VRSEL_MASK (0x40U)
3930#define CMP_DACCR_VRSEL_SHIFT (6U)
3931#define CMP_DACCR_VRSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK)
3932#define CMP_DACCR_VRSEL CMP_DACCR_VRSEL_MASK
3933#define CMP_DACCR_DACEN_MASK (0x80U)
3934#define CMP_DACCR_DACEN_SHIFT (7U)
3935#define CMP_DACCR_DACEN_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK)
3936#define CMP_DACCR_DACEN CMP_DACCR_DACEN_MASK
3937
3938/*! @name MUXCR - MUX Control Register */
3939#define CMP_MUXCR_MSEL_MASK (0x7U)
3940#define CMP_MUXCR_MSEL_SHIFT (0U)
3941#define CMP_MUXCR_MSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK)
3942#define CMP_MUXCR_MSEL CMP_MUXCR_MSEL_MASK
3943#define CMP_MUXCR_PSEL_MASK (0x38U)
3944#define CMP_MUXCR_PSEL_SHIFT (3U)
3945#define CMP_MUXCR_PSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK)
3946#define CMP_MUXCR_PSEL CMP_MUXCR_PSEL_MASK
3947#define CMP_MUXCR_PSTM_MASK (0x80U)
3948#define CMP_MUXCR_PSTM_SHIFT (7U)
3949#define CMP_MUXCR_PSTM_SET(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK)
3950#define CMP_MUXCR_PSTM CMP_MUXCR_PSTM_MASK
3951
3952
3953/*!
3954 * @}
3955 */ /* end of group CMP_Register_Masks */
3956
3957
3958/* CMP - Peripheral instance base addresses */
3959/** Peripheral CMP0 base address */
3960#define CMP0_BASE (0x40073000u)
3961/** Peripheral CMP0 base pointer */
3962#define CMP0 ((CMP_TypeDef *)CMP0_BASE)
3963/** Peripheral CMP1 base address */
3964#define CMP1_BASE (0x40073008u)
3965/** Peripheral CMP1 base pointer */
3966#define CMP1 ((CMP_TypeDef *)CMP1_BASE)
3967/** Peripheral CMP2 base address */
3968#define CMP2_BASE (0x40073010u)
3969/** Peripheral CMP2 base pointer */
3970#define CMP2 ((CMP_TypeDef *)CMP2_BASE)
3971/** Peripheral CMP3 base address */
3972#define CMP3_BASE (0x40073018u)
3973/** Peripheral CMP3 base pointer */
3974#define CMP3 ((CMP_TypeDef *)CMP3_BASE)
3975/** Array initializer of CMP peripheral base addresses */
3976#define CMP_BASE_ADDRS { CMP0_BASE, CMP1_BASE, CMP2_BASE, CMP3_BASE }
3977/** Array initializer of CMP peripheral base pointers */
3978#define CMP_BASE_PTRS { CMP0, CMP1, CMP2, CMP3 }
3979/** Interrupt vectors for the CMP peripheral type */
3980#define CMP_IRQS { CMP0_IRQn, CMP1_IRQn, CMP2_IRQn, CMP3_IRQn }
3981
3982/*!
3983 * @}
3984 */ /* end of group CMP_Peripheral_Access_Layer */
3985
3986
3987/* ----------------------------------------------------------------------------
3988 -- CMT Peripheral Access Layer
3989 ---------------------------------------------------------------------------- */
3990
3991/*!
3992 * @addtogroup CMT_Peripheral_Access_Layer CMT Peripheral Access Layer
3993 * @{
3994 */
3995
3996/** CMT - Register Layout Typedef */
3997typedef struct {
3998 __IO uint8_t CGH1; /**< CMT Carrier Generator High Data Register 1, offset: 0x0 */
3999 __IO uint8_t CGL1; /**< CMT Carrier Generator Low Data Register 1, offset: 0x1 */
4000 __IO uint8_t CGH2; /**< CMT Carrier Generator High Data Register 2, offset: 0x2 */
4001 __IO uint8_t CGL2; /**< CMT Carrier Generator Low Data Register 2, offset: 0x3 */
4002 __IO uint8_t OC; /**< CMT Output Control Register, offset: 0x4 */
4003 __IO uint8_t MSC; /**< CMT Modulator Status and Control Register, offset: 0x5 */
4004 __IO uint8_t CMD1; /**< CMT Modulator Data Register Mark High, offset: 0x6 */
4005 __IO uint8_t CMD2; /**< CMT Modulator Data Register Mark Low, offset: 0x7 */
4006 __IO uint8_t CMD3; /**< CMT Modulator Data Register Space High, offset: 0x8 */
4007 __IO uint8_t CMD4; /**< CMT Modulator Data Register Space Low, offset: 0x9 */
4008 __IO uint8_t PPS; /**< CMT Primary Prescaler Register, offset: 0xA */
4009 __IO uint8_t DMA; /**< CMT Direct Memory Access Register, offset: 0xB */
4010} CMT_TypeDef;
4011
4012/* ----------------------------------------------------------------------------
4013 -- CMT Register Masks
4014 ---------------------------------------------------------------------------- */
4015
4016/*!
4017 * @addtogroup CMT_Register_Masks CMT Register Masks
4018 * @{
4019 */
4020
4021/*! @name CGH1 - CMT Carrier Generator High Data Register 1 */
4022#define CMT_CGH1_PH_MASK (0xFFU)
4023#define CMT_CGH1_PH_SHIFT (0U)
4024#define CMT_CGH1_PH_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_CGH1_PH_SHIFT)) & CMT_CGH1_PH_MASK)
4025#define CMT_CGH1_PH CMT_CGH1_PH_MASK
4026
4027/*! @name CGL1 - CMT Carrier Generator Low Data Register 1 */
4028#define CMT_CGL1_PL_MASK (0xFFU)
4029#define CMT_CGL1_PL_SHIFT (0U)
4030#define CMT_CGL1_PL_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_CGL1_PL_SHIFT)) & CMT_CGL1_PL_MASK)
4031#define CMT_CGL1_PL CMT_CGL1_PL_MASK
4032
4033/*! @name CGH2 - CMT Carrier Generator High Data Register 2 */
4034#define CMT_CGH2_SH_MASK (0xFFU)
4035#define CMT_CGH2_SH_SHIFT (0U)
4036#define CMT_CGH2_SH_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_CGH2_SH_SHIFT)) & CMT_CGH2_SH_MASK)
4037#define CMT_CGH2_SH CMT_CGH2_SH_MASK
4038
4039/*! @name CGL2 - CMT Carrier Generator Low Data Register 2 */
4040#define CMT_CGL2_SL_MASK (0xFFU)
4041#define CMT_CGL2_SL_SHIFT (0U)
4042#define CMT_CGL2_SL_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_CGL2_SL_SHIFT)) & CMT_CGL2_SL_MASK)
4043#define CMT_CGL2_SL CMT_CGL2_SL_MASK
4044
4045/*! @name OC - CMT Output Control Register */
4046#define CMT_OC_IROPEN_MASK (0x20U)
4047#define CMT_OC_IROPEN_SHIFT (5U)
4048#define CMT_OC_IROPEN_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_OC_IROPEN_SHIFT)) & CMT_OC_IROPEN_MASK)
4049#define CMT_OC_IROPEN CMT_OC_IROPEN_MASK
4050#define CMT_OC_CMTPOL_MASK (0x40U)
4051#define CMT_OC_CMTPOL_SHIFT (6U)
4052#define CMT_OC_CMTPOL_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_OC_CMTPOL_SHIFT)) & CMT_OC_CMTPOL_MASK)
4053#define CMT_OC_CMTPOL CMT_OC_CMTPOL_MASK
4054#define CMT_OC_IROL_MASK (0x80U)
4055#define CMT_OC_IROL_SHIFT (7U)
4056#define CMT_OC_IROL_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_OC_IROL_SHIFT)) & CMT_OC_IROL_MASK)
4057#define CMT_OC_IROL CMT_OC_IROL_MASK
4058
4059/*! @name MSC - CMT Modulator Status and Control Register */
4060#define CMT_MSC_MCGEN_MASK (0x1U)
4061#define CMT_MSC_MCGEN_SHIFT (0U)
4062#define CMT_MSC_MCGEN_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_MSC_MCGEN_SHIFT)) & CMT_MSC_MCGEN_MASK)
4063#define CMT_MSC_MCGEN CMT_MSC_MCGEN_MASK
4064#define CMT_MSC_EOCIE_MASK (0x2U)
4065#define CMT_MSC_EOCIE_SHIFT (1U)
4066#define CMT_MSC_EOCIE_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_MSC_EOCIE_SHIFT)) & CMT_MSC_EOCIE_MASK)
4067#define CMT_MSC_EOCIE CMT_MSC_EOCIE_MASK
4068#define CMT_MSC_FSK_MASK (0x4U)
4069#define CMT_MSC_FSK_SHIFT (2U)
4070#define CMT_MSC_FSK_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_MSC_FSK_SHIFT)) & CMT_MSC_FSK_MASK)
4071#define CMT_MSC_FSK CMT_MSC_FSK_MASK
4072#define CMT_MSC_BASE_MASK (0x8U)
4073#define CMT_MSC_BASE_SHIFT (3U)
4074#define CMT_MSC_BASE_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_MSC_BASE_SHIFT)) & CMT_MSC_BASE_MASK)
4075#define CMT_MSC_BASE CMT_MSC_BASE_MASK
4076#define CMT_MSC_EXSPC_MASK (0x10U)
4077#define CMT_MSC_EXSPC_SHIFT (4U)
4078#define CMT_MSC_EXSPC_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_MSC_EXSPC_SHIFT)) & CMT_MSC_EXSPC_MASK)
4079#define CMT_MSC_EXSPC CMT_MSC_EXSPC_MASK
4080#define CMT_MSC_CMTDIV_MASK (0x60U)
4081#define CMT_MSC_CMTDIV_SHIFT (5U)
4082#define CMT_MSC_CMTDIV_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_MSC_CMTDIV_SHIFT)) & CMT_MSC_CMTDIV_MASK)
4083#define CMT_MSC_CMTDIV CMT_MSC_CMTDIV_MASK
4084#define CMT_MSC_EOCF_MASK (0x80U)
4085#define CMT_MSC_EOCF_SHIFT (7U)
4086#define CMT_MSC_EOCF_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_MSC_EOCF_SHIFT)) & CMT_MSC_EOCF_MASK)
4087#define CMT_MSC_EOCF CMT_MSC_EOCF_MASK
4088
4089/*! @name CMD1 - CMT Modulator Data Register Mark High */
4090#define CMT_CMD1_MB_MASK (0xFFU)
4091#define CMT_CMD1_MB_SHIFT (0U)
4092#define CMT_CMD1_MB_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_CMD1_MB_SHIFT)) & CMT_CMD1_MB_MASK)
4093#define CMT_CMD1_MB CMT_CMD1_MB_MASK
4094
4095/*! @name CMD2 - CMT Modulator Data Register Mark Low */
4096#define CMT_CMD2_MB_MASK (0xFFU)
4097#define CMT_CMD2_MB_SHIFT (0U)
4098#define CMT_CMD2_MB_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_CMD2_MB_SHIFT)) & CMT_CMD2_MB_MASK)
4099#define CMT_CMD2_MB CMT_CMD2_MB_MASK
4100
4101/*! @name CMD3 - CMT Modulator Data Register Space High */
4102#define CMT_CMD3_SB_MASK (0xFFU)
4103#define CMT_CMD3_SB_SHIFT (0U)
4104#define CMT_CMD3_SB_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_CMD3_SB_SHIFT)) & CMT_CMD3_SB_MASK)
4105#define CMT_CMD3_SB CMT_CMD3_SB_MASK
4106
4107/*! @name CMD4 - CMT Modulator Data Register Space Low */
4108#define CMT_CMD4_SB_MASK (0xFFU)
4109#define CMT_CMD4_SB_SHIFT (0U)
4110#define CMT_CMD4_SB_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_CMD4_SB_SHIFT)) & CMT_CMD4_SB_MASK)
4111#define CMT_CMD4_SB CMT_CMD4_SB_MASK
4112
4113/*! @name PPS - CMT Primary Prescaler Register */
4114#define CMT_PPS_PPSDIV_MASK (0xFU)
4115#define CMT_PPS_PPSDIV_SHIFT (0U)
4116#define CMT_PPS_PPSDIV_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_PPS_PPSDIV_SHIFT)) & CMT_PPS_PPSDIV_MASK)
4117#define CMT_PPS_PPSDIV CMT_PPS_PPSDIV_MASK
4118
4119/*! @name DMA - CMT Direct Memory Access Register */
4120#define CMT_DMA_DMA_MASK (0x1U)
4121#define CMT_DMA_DMA_SHIFT (0U)
4122#define CMT_DMA_DMA_SET(x) (((uint8_t)(((uint8_t)(x)) << CMT_DMA_DMA_SHIFT)) & CMT_DMA_DMA_MASK)
4123#define CMT_DMA_DMA CMT_DMA_DMA_MASK
4124
4125
4126/*!
4127 * @}
4128 */ /* end of group CMT_Register_Masks */
4129
4130
4131/* CMT - Peripheral instance base addresses */
4132/** Peripheral CMT base address */
4133#define CMT_BASE (0x40062000u)
4134/** Peripheral CMT base pointer */
4135#define CMT ((CMT_TypeDef *)CMT_BASE)
4136/** Array initializer of CMT peripheral base addresses */
4137#define CMT_BASE_ADDRS { CMT_BASE }
4138/** Array initializer of CMT peripheral base pointers */
4139#define CMT_BASE_PTRS { CMT }
4140/** Interrupt vectors for the CMT peripheral type */
4141#define CMT_IRQS { CMT_IRQn }
4142
4143/*!
4144 * @}
4145 */ /* end of group CMT_Peripheral_Access_Layer */
4146
4147
4148/* ----------------------------------------------------------------------------
4149 -- CRC Peripheral Access Layer
4150 ---------------------------------------------------------------------------- */
4151
4152/*!
4153 * @addtogroup CRC_Peripheral_Access_Layer CRC Peripheral Access Layer
4154 * @{
4155 */
4156
4157/** CRC - Register Layout Typedef */
4158typedef struct {
4159 union { /* offset: 0x0 */
4160 struct { /* offset: 0x0 */
4161 __IO uint16_t DATAL; /**< CRC_DATAL register., offset: 0x0 */
4162 __IO uint16_t DATAH; /**< CRC_DATAH register., offset: 0x2 */
4163 } ACCESS16BIT;
4164 __IO uint32_t DATA; /**< CRC Data register, offset: 0x0 */
4165 struct { /* offset: 0x0 */
4166 __IO uint8_t DATALL; /**< CRC_DATALL register., offset: 0x0 */
4167 __IO uint8_t DATALU; /**< CRC_DATALU register., offset: 0x1 */
4168 __IO uint8_t DATAHL; /**< CRC_DATAHL register., offset: 0x2 */
4169 __IO uint8_t DATAHU; /**< CRC_DATAHU register., offset: 0x3 */
4170 } ACCESS8BIT;
4171 };
4172 union { /* offset: 0x4 */
4173 struct { /* offset: 0x4 */
4174 __IO uint16_t GPOLYL; /**< CRC_GPOLYL register., offset: 0x4 */
4175 __IO uint16_t GPOLYH; /**< CRC_GPOLYH register., offset: 0x6 */
4176 } GPOLY_ACCESS16BIT;
4177 __IO uint32_t GPOLY; /**< CRC Polynomial register, offset: 0x4 */
4178 struct { /* offset: 0x4 */
4179 __IO uint8_t GPOLYLL; /**< CRC_GPOLYLL register., offset: 0x4 */
4180 __IO uint8_t GPOLYLU; /**< CRC_GPOLYLU register., offset: 0x5 */
4181 __IO uint8_t GPOLYHL; /**< CRC_GPOLYHL register., offset: 0x6 */
4182 __IO uint8_t GPOLYHU; /**< CRC_GPOLYHU register., offset: 0x7 */
4183 } GPOLY_ACCESS8BIT;
4184 };
4185 union { /* offset: 0x8 */
4186 __IO uint32_t CTRL; /**< CRC Control register, offset: 0x8 */
4187 struct { /* offset: 0x8 */
4188 uint8_t RESERVED_0[3];
4189 __IO uint8_t CTRLHU; /**< CRC_CTRLHU register., offset: 0xB */
4190 } CTRL_ACCESS8BIT;
4191 };
4192} CRC_TypeDef;
4193
4194/* ----------------------------------------------------------------------------
4195 -- CRC Register Masks
4196 ---------------------------------------------------------------------------- */
4197
4198/*!
4199 * @addtogroup CRC_Register_Masks CRC Register Masks
4200 * @{
4201 */
4202
4203/*! @name DATAL - CRC_DATAL register. */
4204#define CRC_DATAL_DATAL_MASK (0xFFFFU)
4205#define CRC_DATAL_DATAL_SHIFT (0U)
4206#define CRC_DATAL_DATAL_SET(x) (((uint16_t)(((uint16_t)(x)) << CRC_DATAL_DATAL_SHIFT)) & CRC_DATAL_DATAL_MASK)
4207#define CRC_DATAL_DATAL CRC_DATAL_DATAL_MASK
4208
4209/*! @name DATAH - CRC_DATAH register. */
4210#define CRC_DATAH_DATAH_MASK (0xFFFFU)
4211#define CRC_DATAH_DATAH_SHIFT (0U)
4212#define CRC_DATAH_DATAH_SET(x) (((uint16_t)(((uint16_t)(x)) << CRC_DATAH_DATAH_SHIFT)) & CRC_DATAH_DATAH_MASK)
4213#define CRC_DATAH_DATAH CRC_DATAH_DATAH_MASK
4214
4215/*! @name DATA - CRC Data register */
4216#define CRC_DATA_LL_MASK (0xFFU)
4217#define CRC_DATA_LL_SHIFT (0U)
4218#define CRC_DATA_LL_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_LL_SHIFT)) & CRC_DATA_LL_MASK)
4219#define CRC_DATA_LL CRC_DATA_LL_MASK
4220#define CRC_DATA_LU_MASK (0xFF00U)
4221#define CRC_DATA_LU_SHIFT (8U)
4222#define CRC_DATA_LU_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_LU_SHIFT)) & CRC_DATA_LU_MASK)
4223#define CRC_DATA_LU CRC_DATA_LU_MASK
4224#define CRC_DATA_HL_MASK (0xFF0000U)
4225#define CRC_DATA_HL_SHIFT (16U)
4226#define CRC_DATA_HL_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_HL_SHIFT)) & CRC_DATA_HL_MASK)
4227#define CRC_DATA_HL CRC_DATA_HL_MASK
4228#define CRC_DATA_HU_MASK (0xFF000000U)
4229#define CRC_DATA_HU_SHIFT (24U)
4230#define CRC_DATA_HU_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_HU_SHIFT)) & CRC_DATA_HU_MASK)
4231#define CRC_DATA_HU CRC_DATA_HU_MASK
4232
4233/*! @name DATALL - CRC_DATALL register. */
4234#define CRC_DATALL_DATALL_MASK (0xFFU)
4235#define CRC_DATALL_DATALL_SHIFT (0U)
4236#define CRC_DATALL_DATALL_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATALL_DATALL_SHIFT)) & CRC_DATALL_DATALL_MASK)
4237#define CRC_DATALL_DATALL CRC_DATALL_DATALL_MASK
4238
4239/*! @name DATALU - CRC_DATALU register. */
4240#define CRC_DATALU_DATALU_MASK (0xFFU)
4241#define CRC_DATALU_DATALU_SHIFT (0U)
4242#define CRC_DATALU_DATALU_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATALU_DATALU_SHIFT)) & CRC_DATALU_DATALU_MASK)
4243#define CRC_DATALU_DATALU CRC_DATALU_DATALU_MASK
4244
4245/*! @name DATAHL - CRC_DATAHL register. */
4246#define CRC_DATAHL_DATAHL_MASK (0xFFU)
4247#define CRC_DATAHL_DATAHL_SHIFT (0U)
4248#define CRC_DATAHL_DATAHL_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATAHL_DATAHL_SHIFT)) & CRC_DATAHL_DATAHL_MASK)
4249#define CRC_DATAHL_DATAHL CRC_DATAHL_DATAHL_MASK
4250
4251/*! @name DATAHU - CRC_DATAHU register. */
4252#define CRC_DATAHU_DATAHU_MASK (0xFFU)
4253#define CRC_DATAHU_DATAHU_SHIFT (0U)
4254#define CRC_DATAHU_DATAHU_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATAHU_DATAHU_SHIFT)) & CRC_DATAHU_DATAHU_MASK)
4255#define CRC_DATAHU_DATAHU CRC_DATAHU_DATAHU_MASK
4256
4257/*! @name GPOLYL - CRC_GPOLYL register. */
4258#define CRC_GPOLYL_GPOLYL_MASK (0xFFFFU)
4259#define CRC_GPOLYL_GPOLYL_SHIFT (0U)
4260#define CRC_GPOLYL_GPOLYL_SET(x) (((uint16_t)(((uint16_t)(x)) << CRC_GPOLYL_GPOLYL_SHIFT)) & CRC_GPOLYL_GPOLYL_MASK)
4261#define CRC_GPOLYL_GPOLYL CRC_GPOLYL_GPOLYL_MASK
4262
4263/*! @name GPOLYH - CRC_GPOLYH register. */
4264#define CRC_GPOLYH_GPOLYH_MASK (0xFFFFU)
4265#define CRC_GPOLYH_GPOLYH_SHIFT (0U)
4266#define CRC_GPOLYH_GPOLYH_SET(x) (((uint16_t)(((uint16_t)(x)) << CRC_GPOLYH_GPOLYH_SHIFT)) & CRC_GPOLYH_GPOLYH_MASK)
4267#define CRC_GPOLYH_GPOLYH CRC_GPOLYH_GPOLYH_MASK
4268
4269/*! @name GPOLY - CRC Polynomial register */
4270#define CRC_GPOLY_LOW_MASK (0xFFFFU)
4271#define CRC_GPOLY_LOW_SHIFT (0U)
4272#define CRC_GPOLY_LOW_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_GPOLY_LOW_SHIFT)) & CRC_GPOLY_LOW_MASK)
4273#define CRC_GPOLY_LOW CRC_GPOLY_LOW_MASK
4274#define CRC_GPOLY_HIGH_MASK (0xFFFF0000U)
4275#define CRC_GPOLY_HIGH_SHIFT (16U)
4276#define CRC_GPOLY_HIGH_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_GPOLY_HIGH_SHIFT)) & CRC_GPOLY_HIGH_MASK)
4277#define CRC_GPOLY_HIGH CRC_GPOLY_HIGH_MASK
4278
4279/*! @name GPOLYLL - CRC_GPOLYLL register. */
4280#define CRC_GPOLYLL_GPOLYLL_MASK (0xFFU)
4281#define CRC_GPOLYLL_GPOLYLL_SHIFT (0U)
4282#define CRC_GPOLYLL_GPOLYLL_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYLL_GPOLYLL_SHIFT)) & CRC_GPOLYLL_GPOLYLL_MASK)
4283#define CRC_GPOLYLL_GPOLYLL CRC_GPOLYLL_GPOLYLL_MASK
4284
4285/*! @name GPOLYLU - CRC_GPOLYLU register. */
4286#define CRC_GPOLYLU_GPOLYLU_MASK (0xFFU)
4287#define CRC_GPOLYLU_GPOLYLU_SHIFT (0U)
4288#define CRC_GPOLYLU_GPOLYLU_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYLU_GPOLYLU_SHIFT)) & CRC_GPOLYLU_GPOLYLU_MASK)
4289#define CRC_GPOLYLU_GPOLYLU CRC_GPOLYLU_GPOLYLU_MASK
4290
4291/*! @name GPOLYHL - CRC_GPOLYHL register. */
4292#define CRC_GPOLYHL_GPOLYHL_MASK (0xFFU)
4293#define CRC_GPOLYHL_GPOLYHL_SHIFT (0U)
4294#define CRC_GPOLYHL_GPOLYHL_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYHL_GPOLYHL_SHIFT)) & CRC_GPOLYHL_GPOLYHL_MASK)
4295#define CRC_GPOLYHL_GPOLYHL CRC_GPOLYHL_GPOLYHL_MASK
4296
4297/*! @name GPOLYHU - CRC_GPOLYHU register. */
4298#define CRC_GPOLYHU_GPOLYHU_MASK (0xFFU)
4299#define CRC_GPOLYHU_GPOLYHU_SHIFT (0U)
4300#define CRC_GPOLYHU_GPOLYHU_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYHU_GPOLYHU_SHIFT)) & CRC_GPOLYHU_GPOLYHU_MASK)
4301#define CRC_GPOLYHU_GPOLYHU CRC_GPOLYHU_GPOLYHU_MASK
4302
4303/*! @name CTRL - CRC Control register */
4304#define CRC_CTRL_TCRC_MASK (0x1000000U)
4305#define CRC_CTRL_TCRC_SHIFT (24U)
4306#define CRC_CTRL_TCRC_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_TCRC_SHIFT)) & CRC_CTRL_TCRC_MASK)
4307#define CRC_CTRL_TCRC CRC_CTRL_TCRC_MASK
4308#define CRC_CTRL_WAS_MASK (0x2000000U)
4309#define CRC_CTRL_WAS_SHIFT (25U)
4310#define CRC_CTRL_WAS_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_WAS_SHIFT)) & CRC_CTRL_WAS_MASK)
4311#define CRC_CTRL_WAS CRC_CTRL_WAS_MASK
4312#define CRC_CTRL_FXOR_MASK (0x4000000U)
4313#define CRC_CTRL_FXOR_SHIFT (26U)
4314#define CRC_CTRL_FXOR_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_FXOR_SHIFT)) & CRC_CTRL_FXOR_MASK)
4315#define CRC_CTRL_FXOR CRC_CTRL_FXOR_MASK
4316#define CRC_CTRL_TOTR_MASK (0x30000000U)
4317#define CRC_CTRL_TOTR_SHIFT (28U)
4318#define CRC_CTRL_TOTR_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_TOTR_SHIFT)) & CRC_CTRL_TOTR_MASK)
4319#define CRC_CTRL_TOTR CRC_CTRL_TOTR_MASK
4320#define CRC_CTRL_TOT_MASK (0xC0000000U)
4321#define CRC_CTRL_TOT_SHIFT (30U)
4322#define CRC_CTRL_TOT_SET(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_TOT_SHIFT)) & CRC_CTRL_TOT_MASK)
4323#define CRC_CTRL_TOT CRC_CTRL_TOT_MASK
4324
4325/*! @name CTRLHU - CRC_CTRLHU register. */
4326#define CRC_CTRLHU_TCRC_MASK (0x1U)
4327#define CRC_CTRLHU_TCRC_SHIFT (0U)
4328#define CRC_CTRLHU_TCRC_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_TCRC_SHIFT)) & CRC_CTRLHU_TCRC_MASK)
4329#define CRC_CTRLHU_TCRC CRC_CTRLHU_TCRC_MASK
4330#define CRC_CTRLHU_WAS_MASK (0x2U)
4331#define CRC_CTRLHU_WAS_SHIFT (1U)
4332#define CRC_CTRLHU_WAS_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_WAS_SHIFT)) & CRC_CTRLHU_WAS_MASK)
4333#define CRC_CTRLHU_WAS CRC_CTRLHU_WAS_MASK
4334#define CRC_CTRLHU_FXOR_MASK (0x4U)
4335#define CRC_CTRLHU_FXOR_SHIFT (2U)
4336#define CRC_CTRLHU_FXOR_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_FXOR_SHIFT)) & CRC_CTRLHU_FXOR_MASK)
4337#define CRC_CTRLHU_FXOR CRC_CTRLHU_FXOR_MASK
4338#define CRC_CTRLHU_TOTR_MASK (0x30U)
4339#define CRC_CTRLHU_TOTR_SHIFT (4U)
4340#define CRC_CTRLHU_TOTR_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_TOTR_SHIFT)) & CRC_CTRLHU_TOTR_MASK)
4341#define CRC_CTRLHU_TOTR CRC_CTRLHU_TOTR_MASK
4342#define CRC_CTRLHU_TOT_MASK (0xC0U)
4343#define CRC_CTRLHU_TOT_SHIFT (6U)
4344#define CRC_CTRLHU_TOT_SET(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_TOT_SHIFT)) & CRC_CTRLHU_TOT_MASK)
4345#define CRC_CTRLHU_TOT CRC_CTRLHU_TOT_MASK
4346
4347
4348/*!
4349 * @}
4350 */ /* end of group CRC_Register_Masks */
4351
4352
4353/* CRC - Peripheral instance base addresses */
4354/** Peripheral CRC base address */
4355#define CRC_BASE (0x40032000u)
4356/** Peripheral CRC base pointer */
4357#define CRC0 ((CRC_TypeDef *)CRC_BASE)
4358/** Array initializer of CRC peripheral base addresses */
4359#define CRC_BASE_ADDRS { CRC_BASE }
4360/** Array initializer of CRC peripheral base pointers */
4361#define CRC_BASE_PTRS { CRC0 }
4362
4363/*!
4364 * @}
4365 */ /* end of group CRC_Peripheral_Access_Layer */
4366
4367
4368/* ----------------------------------------------------------------------------
4369 -- DAC Peripheral Access Layer
4370 ---------------------------------------------------------------------------- */
4371
4372/*!
4373 * @addtogroup DAC_Peripheral_Access_Layer DAC Peripheral Access Layer
4374 * @{
4375 */
4376
4377/** DAC - Register Layout Typedef */
4378typedef struct {
4379 struct { /* offset: 0x0, array step: 0x2 */
4380 __IO uint8_t DATL; /**< DAC Data Low Register, array offset: 0x0, array step: 0x2 */
4381 __IO uint8_t DATH; /**< DAC Data High Register, array offset: 0x1, array step: 0x2 */
4382 } DAT[16];
4383 __IO uint8_t SR; /**< DAC Status Register, offset: 0x20 */
4384 __IO uint8_t C0; /**< DAC Control Register, offset: 0x21 */
4385 __IO uint8_t C1; /**< DAC Control Register 1, offset: 0x22 */
4386 __IO uint8_t C2; /**< DAC Control Register 2, offset: 0x23 */
4387} DAC_TypeDef;
4388
4389/* ----------------------------------------------------------------------------
4390 -- DAC Register Masks
4391 ---------------------------------------------------------------------------- */
4392
4393/*!
4394 * @addtogroup DAC_Register_Masks DAC Register Masks
4395 * @{
4396 */
4397
4398/*! @name DATL - DAC Data Low Register */
4399#define DAC_DATL_DATA0_MASK (0xFFU)
4400#define DAC_DATL_DATA0_SHIFT (0U)
4401#define DAC_DATL_DATA0_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_DATL_DATA0_SHIFT)) & DAC_DATL_DATA0_MASK)
4402#define DAC_DATL_DATA0 DAC_DATL_DATA0_MASK
4403
4404/* The count of DAC_DATL */
4405#define DAC_DATL_COUNT (16U)
4406
4407/*! @name DATH - DAC Data High Register */
4408#define DAC_DATH_DATA1_MASK (0xFU)
4409#define DAC_DATH_DATA1_SHIFT (0U)
4410#define DAC_DATH_DATA1_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_DATH_DATA1_SHIFT)) & DAC_DATH_DATA1_MASK)
4411#define DAC_DATH_DATA1 DAC_DATH_DATA1_MASK
4412
4413/* The count of DAC_DATH */
4414#define DAC_DATH_COUNT (16U)
4415
4416/*! @name SR - DAC Status Register */
4417#define DAC_SR_DACBFRPBF_MASK (0x1U)
4418#define DAC_SR_DACBFRPBF_SHIFT (0U)
4419#define DAC_SR_DACBFRPBF_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_SR_DACBFRPBF_SHIFT)) & DAC_SR_DACBFRPBF_MASK)
4420#define DAC_SR_DACBFRPBF DAC_SR_DACBFRPBF_MASK
4421#define DAC_SR_DACBFRPTF_MASK (0x2U)
4422#define DAC_SR_DACBFRPTF_SHIFT (1U)
4423#define DAC_SR_DACBFRPTF_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_SR_DACBFRPTF_SHIFT)) & DAC_SR_DACBFRPTF_MASK)
4424#define DAC_SR_DACBFRPTF DAC_SR_DACBFRPTF_MASK
4425#define DAC_SR_DACBFWMF_MASK (0x4U)
4426#define DAC_SR_DACBFWMF_SHIFT (2U)
4427#define DAC_SR_DACBFWMF_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_SR_DACBFWMF_SHIFT)) & DAC_SR_DACBFWMF_MASK)
4428#define DAC_SR_DACBFWMF DAC_SR_DACBFWMF_MASK
4429
4430/*! @name C0 - DAC Control Register */
4431#define DAC_C0_DACBBIEN_MASK (0x1U)
4432#define DAC_C0_DACBBIEN_SHIFT (0U)
4433#define DAC_C0_DACBBIEN_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACBBIEN_SHIFT)) & DAC_C0_DACBBIEN_MASK)
4434#define DAC_C0_DACBBIEN DAC_C0_DACBBIEN_MASK
4435#define DAC_C0_DACBTIEN_MASK (0x2U)
4436#define DAC_C0_DACBTIEN_SHIFT (1U)
4437#define DAC_C0_DACBTIEN_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACBTIEN_SHIFT)) & DAC_C0_DACBTIEN_MASK)
4438#define DAC_C0_DACBTIEN DAC_C0_DACBTIEN_MASK
4439#define DAC_C0_DACBWIEN_MASK (0x4U)
4440#define DAC_C0_DACBWIEN_SHIFT (2U)
4441#define DAC_C0_DACBWIEN_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACBWIEN_SHIFT)) & DAC_C0_DACBWIEN_MASK)
4442#define DAC_C0_DACBWIEN DAC_C0_DACBWIEN_MASK
4443#define DAC_C0_LPEN_MASK (0x8U)
4444#define DAC_C0_LPEN_SHIFT (3U)
4445#define DAC_C0_LPEN_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_LPEN_SHIFT)) & DAC_C0_LPEN_MASK)
4446#define DAC_C0_LPEN DAC_C0_LPEN_MASK
4447#define DAC_C0_DACSWTRG_MASK (0x10U)
4448#define DAC_C0_DACSWTRG_SHIFT (4U)
4449#define DAC_C0_DACSWTRG_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACSWTRG_SHIFT)) & DAC_C0_DACSWTRG_MASK)
4450#define DAC_C0_DACSWTRG DAC_C0_DACSWTRG_MASK
4451#define DAC_C0_DACTRGSEL_MASK (0x20U)
4452#define DAC_C0_DACTRGSEL_SHIFT (5U)
4453#define DAC_C0_DACTRGSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACTRGSEL_SHIFT)) & DAC_C0_DACTRGSEL_MASK)
4454#define DAC_C0_DACTRGSEL DAC_C0_DACTRGSEL_MASK
4455#define DAC_C0_DACRFS_MASK (0x40U)
4456#define DAC_C0_DACRFS_SHIFT (6U)
4457#define DAC_C0_DACRFS_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACRFS_SHIFT)) & DAC_C0_DACRFS_MASK)
4458#define DAC_C0_DACRFS DAC_C0_DACRFS_MASK
4459#define DAC_C0_DACEN_MASK (0x80U)
4460#define DAC_C0_DACEN_SHIFT (7U)
4461#define DAC_C0_DACEN_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACEN_SHIFT)) & DAC_C0_DACEN_MASK)
4462#define DAC_C0_DACEN DAC_C0_DACEN_MASK
4463
4464/*! @name C1 - DAC Control Register 1 */
4465#define DAC_C1_DACBFEN_MASK (0x1U)
4466#define DAC_C1_DACBFEN_SHIFT (0U)
4467#define DAC_C1_DACBFEN_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DACBFEN_SHIFT)) & DAC_C1_DACBFEN_MASK)
4468#define DAC_C1_DACBFEN DAC_C1_DACBFEN_MASK
4469#define DAC_C1_DACBFMD_MASK (0x6U)
4470#define DAC_C1_DACBFMD_SHIFT (1U)
4471#define DAC_C1_DACBFMD(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DACBFMD_SHIFT)) & DAC_C1_DACBFMD_MASK)
4472#define DAC_C1_DACBFWM_MASK (0x18U)
4473#define DAC_C1_DACBFWM_SHIFT (3U)
4474#define DAC_C1_DACBFWM(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DACBFWM_SHIFT)) & DAC_C1_DACBFWM_MASK)
4475#define DAC_C1_DMAEN_MASK (0x80U)
4476#define DAC_C1_DMAEN_SHIFT (7U)
4477#define DAC_C1_DMAEN_SET(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DMAEN_SHIFT)) & DAC_C1_DMAEN_MASK)
4478#define DAC_C1_DMAEN DAC_C1_DMAEN_MASK
4479
4480/*! @name C2 - DAC Control Register 2 */
4481#define DAC_C2_DACBFUP_MASK (0xFU)
4482#define DAC_C2_DACBFUP_SHIFT (0U)
4483#define DAC_C2_DACBFUP(x) (((uint8_t)(((uint8_t)(x)) << DAC_C2_DACBFUP_SHIFT)) & DAC_C2_DACBFUP_MASK)
4484#define DAC_C2_DACBFRP_MASK (0xF0U)
4485#define DAC_C2_DACBFRP_SHIFT (4U)
4486#define DAC_C2_DACBFRP(x) (((uint8_t)(((uint8_t)(x)) << DAC_C2_DACBFRP_SHIFT)) & DAC_C2_DACBFRP_MASK)
4487
4488
4489/*!
4490 * @}
4491 */ /* end of group DAC_Register_Masks */
4492
4493
4494/* DAC - Peripheral instance base addresses */
4495/** Peripheral DAC0 base address */
4496#define DAC0_BASE (0x400CC000u)
4497/** Peripheral DAC0 base pointer */
4498#define DAC0 ((DAC_TypeDef *)DAC0_BASE)
4499/** Peripheral DAC1 base address */
4500#define DAC1_BASE (0x400CD000u)
4501/** Peripheral DAC1 base pointer */
4502#define DAC1 ((DAC_TypeDef *)DAC1_BASE)
4503/** Array initializer of DAC peripheral base addresses */
4504#define DAC_BASE_ADDRS { DAC0_BASE, DAC1_BASE }
4505/** Array initializer of DAC peripheral base pointers */
4506#define DAC_BASE_PTRS { DAC0, DAC1 }
4507/** Interrupt vectors for the DAC peripheral type */
4508#define DAC_IRQS { DAC0_IRQn, DAC1_IRQn }
4509
4510/*!
4511 * @}
4512 */ /* end of group DAC_Peripheral_Access_Layer */
4513
4514
4515/* ----------------------------------------------------------------------------
4516 -- DMA Peripheral Access Layer
4517 ---------------------------------------------------------------------------- */
4518
4519/*!
4520 * @addtogroup DMA_Peripheral_Access_Layer DMA Peripheral Access Layer
4521 * @{
4522 */
4523
4524/** DMA - Register Layout Typedef */
4525typedef struct {
4526 __IO uint32_t CR; /**< Control Register, offset: 0x0 */
4527 __I uint32_t ES; /**< Error Status Register, offset: 0x4 */
4528 uint8_t RESERVED_0[4];
4529 __IO uint32_t ERQ; /**< Enable Request Register, offset: 0xC */
4530 uint8_t RESERVED_1[4];
4531 __IO uint32_t EEI; /**< Enable Error Interrupt Register, offset: 0x14 */
4532 __O uint8_t CEEI; /**< Clear Enable Error Interrupt Register, offset: 0x18 */
4533 __O uint8_t SEEI; /**< Set Enable Error Interrupt Register, offset: 0x19 */
4534 __O uint8_t CERQ; /**< Clear Enable Request Register, offset: 0x1A */
4535 __O uint8_t SERQ; /**< Set Enable Request Register, offset: 0x1B */
4536 __O uint8_t CDNE; /**< Clear DONE Status Bit Register, offset: 0x1C */
4537 __O uint8_t SSRT; /**< Set START Bit Register, offset: 0x1D */
4538 __O uint8_t CERR; /**< Clear Error Register, offset: 0x1E */
4539 __O uint8_t CINT; /**< Clear Interrupt Request Register, offset: 0x1F */
4540 uint8_t RESERVED_2[4];
4541 __IO uint32_t INT; /**< Interrupt Request Register, offset: 0x24 */
4542 uint8_t RESERVED_3[4];
4543 __IO uint32_t ERR; /**< Error Register, offset: 0x2C */
4544 uint8_t RESERVED_4[4];
4545 __I uint32_t HRS; /**< Hardware Request Status Register, offset: 0x34 */
4546 uint8_t RESERVED_5[12];
4547 __IO uint32_t EARS; /**< Enable Asynchronous Request in Stop Register, offset: 0x44 */
4548 uint8_t RESERVED_6[184];
4549 __IO uint8_t DCHPRI3; /**< Channel n Priority Register, offset: 0x100 */
4550 __IO uint8_t DCHPRI2; /**< Channel n Priority Register, offset: 0x101 */
4551 __IO uint8_t DCHPRI1; /**< Channel n Priority Register, offset: 0x102 */
4552 __IO uint8_t DCHPRI0; /**< Channel n Priority Register, offset: 0x103 */
4553 __IO uint8_t DCHPRI7; /**< Channel n Priority Register, offset: 0x104 */
4554 __IO uint8_t DCHPRI6; /**< Channel n Priority Register, offset: 0x105 */
4555 __IO uint8_t DCHPRI5; /**< Channel n Priority Register, offset: 0x106 */
4556 __IO uint8_t DCHPRI4; /**< Channel n Priority Register, offset: 0x107 */
4557 __IO uint8_t DCHPRI11; /**< Channel n Priority Register, offset: 0x108 */
4558 __IO uint8_t DCHPRI10; /**< Channel n Priority Register, offset: 0x109 */
4559 __IO uint8_t DCHPRI9; /**< Channel n Priority Register, offset: 0x10A */
4560 __IO uint8_t DCHPRI8; /**< Channel n Priority Register, offset: 0x10B */
4561 __IO uint8_t DCHPRI15; /**< Channel n Priority Register, offset: 0x10C */
4562 __IO uint8_t DCHPRI14; /**< Channel n Priority Register, offset: 0x10D */
4563 __IO uint8_t DCHPRI13; /**< Channel n Priority Register, offset: 0x10E */
4564 __IO uint8_t DCHPRI12; /**< Channel n Priority Register, offset: 0x10F */
4565 __IO uint8_t DCHPRI19; /**< Channel n Priority Register, offset: 0x110 */
4566 __IO uint8_t DCHPRI18; /**< Channel n Priority Register, offset: 0x111 */
4567 __IO uint8_t DCHPRI17; /**< Channel n Priority Register, offset: 0x112 */
4568 __IO uint8_t DCHPRI16; /**< Channel n Priority Register, offset: 0x113 */
4569 __IO uint8_t DCHPRI23; /**< Channel n Priority Register, offset: 0x114 */
4570 __IO uint8_t DCHPRI22; /**< Channel n Priority Register, offset: 0x115 */
4571 __IO uint8_t DCHPRI21; /**< Channel n Priority Register, offset: 0x116 */
4572 __IO uint8_t DCHPRI20; /**< Channel n Priority Register, offset: 0x117 */
4573 __IO uint8_t DCHPRI27; /**< Channel n Priority Register, offset: 0x118 */
4574 __IO uint8_t DCHPRI26; /**< Channel n Priority Register, offset: 0x119 */
4575 __IO uint8_t DCHPRI25; /**< Channel n Priority Register, offset: 0x11A */
4576 __IO uint8_t DCHPRI24; /**< Channel n Priority Register, offset: 0x11B */
4577 __IO uint8_t DCHPRI31; /**< Channel n Priority Register, offset: 0x11C */
4578 __IO uint8_t DCHPRI30; /**< Channel n Priority Register, offset: 0x11D */
4579 __IO uint8_t DCHPRI29; /**< Channel n Priority Register, offset: 0x11E */
4580 __IO uint8_t DCHPRI28; /**< Channel n Priority Register, offset: 0x11F */
4581 uint8_t RESERVED_7[3808];
4582 struct { /* offset: 0x1000, array step: 0x20 */
4583 __IO uint32_t SADDR; /**< TCD Source Address, array offset: 0x1000, array step: 0x20 */
4584 __IO uint16_t SOFF; /**< TCD Signed Source Address Offset, array offset: 0x1004, array step: 0x20 */
4585 __IO uint16_t ATTR; /**< TCD Transfer Attributes, array offset: 0x1006, array step: 0x20 */
4586 union { /* offset: 0x1008, array step: 0x20 */
4587 __IO uint32_t NBYTES_MLNO; /**< TCD Minor Byte Count (Minor Loop Mapping Disabled), array offset: 0x1008, array step: 0x20 */
4588 __IO uint32_t NBYTES_MLOFFNO; /**< TCD Signed Minor Loop Offset (Minor Loop Mapping Enabled and Offset Disabled), array offset: 0x1008, array step: 0x20 */
4589 __IO uint32_t NBYTES_MLOFFYES; /**< TCD Signed Minor Loop Offset (Minor Loop Mapping and Offset Enabled), array offset: 0x1008, array step: 0x20 */
4590 };
4591 __IO uint32_t SLAST; /**< TCD Last Source Address Adjustment, array offset: 0x100C, array step: 0x20 */
4592 __IO uint32_t DADDR; /**< TCD Destination Address, array offset: 0x1010, array step: 0x20 */
4593 __IO uint16_t DOFF; /**< TCD Signed Destination Address Offset, array offset: 0x1014, array step: 0x20 */
4594 union { /* offset: 0x1016, array step: 0x20 */
4595 __IO uint16_t CITER_ELINKNO; /**< TCD Current Minor Loop Link, Major Loop Count (Channel Linking Disabled), array offset: 0x1016, array step: 0x20 */
4596 __IO uint16_t CITER_ELINKYES; /**< TCD Current Minor Loop Link, Major Loop Count (Channel Linking Enabled), array offset: 0x1016, array step: 0x20 */
4597 };
4598 __IO uint32_t DLASTSGA; /**< TCD Last Destination Address Adjustment/Scatter Gather Address, array offset: 0x1018, array step: 0x20 */
4599 __IO uint16_t CSR; /**< TCD Control and Status, array offset: 0x101C, array step: 0x20 */
4600 union { /* offset: 0x101E, array step: 0x20 */
4601 __IO uint16_t BITER_ELINKNO; /**< TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Disabled), array offset: 0x101E, array step: 0x20 */
4602 __IO uint16_t BITER_ELINKYES; /**< TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Enabled), array offset: 0x101E, array step: 0x20 */
4603 };
4604 } TCD[32];
4605} DMA_TypeDef;
4606
4607/* ----------------------------------------------------------------------------
4608 -- DMA Register Masks
4609 ---------------------------------------------------------------------------- */
4610
4611/*!
4612 * @addtogroup DMA_Register_Masks DMA Register Masks
4613 * @{
4614 */
4615
4616/*! @name CR - Control Register */
4617#define DMA_CR_EDBG_MASK (0x2U)
4618#define DMA_CR_EDBG_SHIFT (1U)
4619#define DMA_CR_EDBG_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_EDBG_SHIFT)) & DMA_CR_EDBG_MASK)
4620#define DMA_CR_EDBG DMA_CR_EDBG_MASK
4621#define DMA_CR_ERCA_MASK (0x4U)
4622#define DMA_CR_ERCA_SHIFT (2U)
4623#define DMA_CR_ERCA_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_ERCA_SHIFT)) & DMA_CR_ERCA_MASK)
4624#define DMA_CR_ERCA DMA_CR_ERCA_MASK
4625#define DMA_CR_ERGA_MASK (0x8U)
4626#define DMA_CR_ERGA_SHIFT (3U)
4627#define DMA_CR_ERGA_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_ERGA_SHIFT)) & DMA_CR_ERGA_MASK)
4628#define DMA_CR_ERGA DMA_CR_ERGA_MASK
4629#define DMA_CR_HOE_MASK (0x10U)
4630#define DMA_CR_HOE_SHIFT (4U)
4631#define DMA_CR_HOE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_HOE_SHIFT)) & DMA_CR_HOE_MASK)
4632#define DMA_CR_HOE DMA_CR_HOE_MASK
4633#define DMA_CR_HALT_MASK (0x20U)
4634#define DMA_CR_HALT_SHIFT (5U)
4635#define DMA_CR_HALT_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_HALT_SHIFT)) & DMA_CR_HALT_MASK)
4636#define DMA_CR_HALT DMA_CR_HALT_MASK
4637#define DMA_CR_CLM_MASK (0x40U)
4638#define DMA_CR_CLM_SHIFT (6U)
4639#define DMA_CR_CLM_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_CLM_SHIFT)) & DMA_CR_CLM_MASK)
4640#define DMA_CR_CLM DMA_CR_CLM_MASK
4641#define DMA_CR_EMLM_MASK (0x80U)
4642#define DMA_CR_EMLM_SHIFT (7U)
4643#define DMA_CR_EMLM_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_EMLM_SHIFT)) & DMA_CR_EMLM_MASK)
4644#define DMA_CR_EMLM DMA_CR_EMLM_MASK
4645#define DMA_CR_GRP0PRI_MASK (0x100U)
4646#define DMA_CR_GRP0PRI_SHIFT (8U)
4647#define DMA_CR_GRP0PRI_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_GRP0PRI_SHIFT)) & DMA_CR_GRP0PRI_MASK)
4648#define DMA_CR_GRP0PRI DMA_CR_GRP0PRI_MASK
4649#define DMA_CR_GRP1PRI_MASK (0x400U)
4650#define DMA_CR_GRP1PRI_SHIFT (10U)
4651#define DMA_CR_GRP1PRI_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_GRP1PRI_SHIFT)) & DMA_CR_GRP1PRI_MASK)
4652#define DMA_CR_GRP1PRI DMA_CR_GRP1PRI_MASK
4653#define DMA_CR_ECX_MASK (0x10000U)
4654#define DMA_CR_ECX_SHIFT (16U)
4655#define DMA_CR_ECX_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_ECX_SHIFT)) & DMA_CR_ECX_MASK)
4656#define DMA_CR_ECX DMA_CR_ECX_MASK
4657#define DMA_CR_CX_MASK (0x20000U)
4658#define DMA_CR_CX_SHIFT (17U)
4659#define DMA_CR_CX_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_CR_CX_SHIFT)) & DMA_CR_CX_MASK)
4660#define DMA_CR_CX DMA_CR_CX_MASK
4661
4662/*! @name ES - Error Status Register */
4663#define DMA_ES_DBE_MASK (0x1U)
4664#define DMA_ES_DBE_SHIFT (0U)
4665#define DMA_ES_DBE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_DBE_SHIFT)) & DMA_ES_DBE_MASK)
4666#define DMA_ES_DBE DMA_ES_DBE_MASK
4667#define DMA_ES_SBE_MASK (0x2U)
4668#define DMA_ES_SBE_SHIFT (1U)
4669#define DMA_ES_SBE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_SBE_SHIFT)) & DMA_ES_SBE_MASK)
4670#define DMA_ES_SBE DMA_ES_SBE_MASK
4671#define DMA_ES_SGE_MASK (0x4U)
4672#define DMA_ES_SGE_SHIFT (2U)
4673#define DMA_ES_SGE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_SGE_SHIFT)) & DMA_ES_SGE_MASK)
4674#define DMA_ES_SGE DMA_ES_SGE_MASK
4675#define DMA_ES_NCE_MASK (0x8U)
4676#define DMA_ES_NCE_SHIFT (3U)
4677#define DMA_ES_NCE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_NCE_SHIFT)) & DMA_ES_NCE_MASK)
4678#define DMA_ES_NCE DMA_ES_NCE_MASK
4679#define DMA_ES_DOE_MASK (0x10U)
4680#define DMA_ES_DOE_SHIFT (4U)
4681#define DMA_ES_DOE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_DOE_SHIFT)) & DMA_ES_DOE_MASK)
4682#define DMA_ES_DOE DMA_ES_DOE_MASK
4683#define DMA_ES_DAE_MASK (0x20U)
4684#define DMA_ES_DAE_SHIFT (5U)
4685#define DMA_ES_DAE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_DAE_SHIFT)) & DMA_ES_DAE_MASK)
4686#define DMA_ES_DAE DMA_ES_DAE_MASK
4687#define DMA_ES_SOE_MASK (0x40U)
4688#define DMA_ES_SOE_SHIFT (6U)
4689#define DMA_ES_SOE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_SOE_SHIFT)) & DMA_ES_SOE_MASK)
4690#define DMA_ES_SOE DMA_ES_SOE_MASK
4691#define DMA_ES_SAE_MASK (0x80U)
4692#define DMA_ES_SAE_SHIFT (7U)
4693#define DMA_ES_SAE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_SAE_SHIFT)) & DMA_ES_SAE_MASK)
4694#define DMA_ES_SAE DMA_ES_SAE_MASK
4695#define DMA_ES_ERRCHN_MASK (0x1F00U)
4696#define DMA_ES_ERRCHN_SHIFT (8U)
4697#define DMA_ES_ERRCHN_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_ERRCHN_SHIFT)) & DMA_ES_ERRCHN_MASK)
4698#define DMA_ES_ERRCHN DMA_ES_ERRCHN_MASK
4699#define DMA_ES_CPE_MASK (0x4000U)
4700#define DMA_ES_CPE_SHIFT (14U)
4701#define DMA_ES_CPE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_CPE_SHIFT)) & DMA_ES_CPE_MASK)
4702#define DMA_ES_CPE DMA_ES_CPE_MASK
4703#define DMA_ES_GPE_MASK (0x8000U)
4704#define DMA_ES_GPE_SHIFT (15U)
4705#define DMA_ES_GPE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_GPE_SHIFT)) & DMA_ES_GPE_MASK)
4706#define DMA_ES_GPE DMA_ES_GPE_MASK
4707#define DMA_ES_ECX_MASK (0x10000U)
4708#define DMA_ES_ECX_SHIFT (16U)
4709#define DMA_ES_ECX_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_ECX_SHIFT)) & DMA_ES_ECX_MASK)
4710#define DMA_ES_ECX DMA_ES_ECX_MASK
4711#define DMA_ES_VLD_MASK (0x80000000U)
4712#define DMA_ES_VLD_SHIFT (31U)
4713#define DMA_ES_VLD_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_VLD_SHIFT)) & DMA_ES_VLD_MASK)
4714#define DMA_ES_VLD DMA_ES_VLD_MASK
4715
4716/*! @name ERQ - Enable Request Register */
4717#define DMA_ERQ_ERQ0_MASK (0x1U)
4718#define DMA_ERQ_ERQ0_SHIFT (0U)
4719#define DMA_ERQ_ERQ0_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ0_SHIFT)) & DMA_ERQ_ERQ0_MASK)
4720#define DMA_ERQ_ERQ0 DMA_ERQ_ERQ0_MASK
4721#define DMA_ERQ_ERQ1_MASK (0x2U)
4722#define DMA_ERQ_ERQ1_SHIFT (1U)
4723#define DMA_ERQ_ERQ1_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ1_SHIFT)) & DMA_ERQ_ERQ1_MASK)
4724#define DMA_ERQ_ERQ1 DMA_ERQ_ERQ1_MASK
4725#define DMA_ERQ_ERQ2_MASK (0x4U)
4726#define DMA_ERQ_ERQ2_SHIFT (2U)
4727#define DMA_ERQ_ERQ2_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ2_SHIFT)) & DMA_ERQ_ERQ2_MASK)
4728#define DMA_ERQ_ERQ2 DMA_ERQ_ERQ2_MASK
4729#define DMA_ERQ_ERQ3_MASK (0x8U)
4730#define DMA_ERQ_ERQ3_SHIFT (3U)
4731#define DMA_ERQ_ERQ3_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ3_SHIFT)) & DMA_ERQ_ERQ3_MASK)
4732#define DMA_ERQ_ERQ3 DMA_ERQ_ERQ3_MASK
4733#define DMA_ERQ_ERQ4_MASK (0x10U)
4734#define DMA_ERQ_ERQ4_SHIFT (4U)
4735#define DMA_ERQ_ERQ4_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ4_SHIFT)) & DMA_ERQ_ERQ4_MASK)
4736#define DMA_ERQ_ERQ4 DMA_ERQ_ERQ4_MASK
4737#define DMA_ERQ_ERQ5_MASK (0x20U)
4738#define DMA_ERQ_ERQ5_SHIFT (5U)
4739#define DMA_ERQ_ERQ5_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ5_SHIFT)) & DMA_ERQ_ERQ5_MASK)
4740#define DMA_ERQ_ERQ5 DMA_ERQ_ERQ5_MASK
4741#define DMA_ERQ_ERQ6_MASK (0x40U)
4742#define DMA_ERQ_ERQ6_SHIFT (6U)
4743#define DMA_ERQ_ERQ6_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ6_SHIFT)) & DMA_ERQ_ERQ6_MASK)
4744#define DMA_ERQ_ERQ6 DMA_ERQ_ERQ6_MASK
4745#define DMA_ERQ_ERQ7_MASK (0x80U)
4746#define DMA_ERQ_ERQ7_SHIFT (7U)
4747#define DMA_ERQ_ERQ7_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ7_SHIFT)) & DMA_ERQ_ERQ7_MASK)
4748#define DMA_ERQ_ERQ7 DMA_ERQ_ERQ7_MASK
4749#define DMA_ERQ_ERQ8_MASK (0x100U)
4750#define DMA_ERQ_ERQ8_SHIFT (8U)
4751#define DMA_ERQ_ERQ8_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ8_SHIFT)) & DMA_ERQ_ERQ8_MASK)
4752#define DMA_ERQ_ERQ8 DMA_ERQ_ERQ8_MASK
4753#define DMA_ERQ_ERQ9_MASK (0x200U)
4754#define DMA_ERQ_ERQ9_SHIFT (9U)
4755#define DMA_ERQ_ERQ9_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ9_SHIFT)) & DMA_ERQ_ERQ9_MASK)
4756#define DMA_ERQ_ERQ9 DMA_ERQ_ERQ9_MASK
4757#define DMA_ERQ_ERQ10_MASK (0x400U)
4758#define DMA_ERQ_ERQ10_SHIFT (10U)
4759#define DMA_ERQ_ERQ10_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ10_SHIFT)) & DMA_ERQ_ERQ10_MASK)
4760#define DMA_ERQ_ERQ10 DMA_ERQ_ERQ10_MASK
4761#define DMA_ERQ_ERQ11_MASK (0x800U)
4762#define DMA_ERQ_ERQ11_SHIFT (11U)
4763#define DMA_ERQ_ERQ11_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ11_SHIFT)) & DMA_ERQ_ERQ11_MASK)
4764#define DMA_ERQ_ERQ11 DMA_ERQ_ERQ11_MASK
4765#define DMA_ERQ_ERQ12_MASK (0x1000U)
4766#define DMA_ERQ_ERQ12_SHIFT (12U)
4767#define DMA_ERQ_ERQ12_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ12_SHIFT)) & DMA_ERQ_ERQ12_MASK)
4768#define DMA_ERQ_ERQ12 DMA_ERQ_ERQ12_MASK
4769#define DMA_ERQ_ERQ13_MASK (0x2000U)
4770#define DMA_ERQ_ERQ13_SHIFT (13U)
4771#define DMA_ERQ_ERQ13_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ13_SHIFT)) & DMA_ERQ_ERQ13_MASK)
4772#define DMA_ERQ_ERQ13 DMA_ERQ_ERQ13_MASK
4773#define DMA_ERQ_ERQ14_MASK (0x4000U)
4774#define DMA_ERQ_ERQ14_SHIFT (14U)
4775#define DMA_ERQ_ERQ14_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ14_SHIFT)) & DMA_ERQ_ERQ14_MASK)
4776#define DMA_ERQ_ERQ14 DMA_ERQ_ERQ14_MASK
4777#define DMA_ERQ_ERQ15_MASK (0x8000U)
4778#define DMA_ERQ_ERQ15_SHIFT (15U)
4779#define DMA_ERQ_ERQ15_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ15_SHIFT)) & DMA_ERQ_ERQ15_MASK)
4780#define DMA_ERQ_ERQ15 DMA_ERQ_ERQ15_MASK
4781#define DMA_ERQ_ERQ16_MASK (0x10000U)
4782#define DMA_ERQ_ERQ16_SHIFT (16U)
4783#define DMA_ERQ_ERQ16_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ16_SHIFT)) & DMA_ERQ_ERQ16_MASK)
4784#define DMA_ERQ_ERQ16 DMA_ERQ_ERQ16_MASK
4785#define DMA_ERQ_ERQ17_MASK (0x20000U)
4786#define DMA_ERQ_ERQ17_SHIFT (17U)
4787#define DMA_ERQ_ERQ17_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ17_SHIFT)) & DMA_ERQ_ERQ17_MASK)
4788#define DMA_ERQ_ERQ17 DMA_ERQ_ERQ17_MASK
4789#define DMA_ERQ_ERQ18_MASK (0x40000U)
4790#define DMA_ERQ_ERQ18_SHIFT (18U)
4791#define DMA_ERQ_ERQ18_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ18_SHIFT)) & DMA_ERQ_ERQ18_MASK)
4792#define DMA_ERQ_ERQ18 DMA_ERQ_ERQ18_MASK
4793#define DMA_ERQ_ERQ19_MASK (0x80000U)
4794#define DMA_ERQ_ERQ19_SHIFT (19U)
4795#define DMA_ERQ_ERQ19_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ19_SHIFT)) & DMA_ERQ_ERQ19_MASK)
4796#define DMA_ERQ_ERQ19 DMA_ERQ_ERQ19_MASK
4797#define DMA_ERQ_ERQ20_MASK (0x100000U)
4798#define DMA_ERQ_ERQ20_SHIFT (20U)
4799#define DMA_ERQ_ERQ20_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ20_SHIFT)) & DMA_ERQ_ERQ20_MASK)
4800#define DMA_ERQ_ERQ20 DMA_ERQ_ERQ20_MASK
4801#define DMA_ERQ_ERQ21_MASK (0x200000U)
4802#define DMA_ERQ_ERQ21_SHIFT (21U)
4803#define DMA_ERQ_ERQ21_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ21_SHIFT)) & DMA_ERQ_ERQ21_MASK)
4804#define DMA_ERQ_ERQ21 DMA_ERQ_ERQ21_MASK
4805#define DMA_ERQ_ERQ22_MASK (0x400000U)
4806#define DMA_ERQ_ERQ22_SHIFT (22U)
4807#define DMA_ERQ_ERQ22_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ22_SHIFT)) & DMA_ERQ_ERQ22_MASK)
4808#define DMA_ERQ_ERQ22 DMA_ERQ_ERQ22_MASK
4809#define DMA_ERQ_ERQ23_MASK (0x800000U)
4810#define DMA_ERQ_ERQ23_SHIFT (23U)
4811#define DMA_ERQ_ERQ23_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ23_SHIFT)) & DMA_ERQ_ERQ23_MASK)
4812#define DMA_ERQ_ERQ23 DMA_ERQ_ERQ23_MASK
4813#define DMA_ERQ_ERQ24_MASK (0x1000000U)
4814#define DMA_ERQ_ERQ24_SHIFT (24U)
4815#define DMA_ERQ_ERQ24_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ24_SHIFT)) & DMA_ERQ_ERQ24_MASK)
4816#define DMA_ERQ_ERQ24 DMA_ERQ_ERQ24_MASK
4817#define DMA_ERQ_ERQ25_MASK (0x2000000U)
4818#define DMA_ERQ_ERQ25_SHIFT (25U)
4819#define DMA_ERQ_ERQ25_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ25_SHIFT)) & DMA_ERQ_ERQ25_MASK)
4820#define DMA_ERQ_ERQ25 DMA_ERQ_ERQ25_MASK
4821#define DMA_ERQ_ERQ26_MASK (0x4000000U)
4822#define DMA_ERQ_ERQ26_SHIFT (26U)
4823#define DMA_ERQ_ERQ26_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ26_SHIFT)) & DMA_ERQ_ERQ26_MASK)
4824#define DMA_ERQ_ERQ26 DMA_ERQ_ERQ26_MASK
4825#define DMA_ERQ_ERQ27_MASK (0x8000000U)
4826#define DMA_ERQ_ERQ27_SHIFT (27U)
4827#define DMA_ERQ_ERQ27_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ27_SHIFT)) & DMA_ERQ_ERQ27_MASK)
4828#define DMA_ERQ_ERQ27 DMA_ERQ_ERQ27_MASK
4829#define DMA_ERQ_ERQ28_MASK (0x10000000U)
4830#define DMA_ERQ_ERQ28_SHIFT (28U)
4831#define DMA_ERQ_ERQ28_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ28_SHIFT)) & DMA_ERQ_ERQ28_MASK)
4832#define DMA_ERQ_ERQ28 DMA_ERQ_ERQ28_MASK
4833#define DMA_ERQ_ERQ29_MASK (0x20000000U)
4834#define DMA_ERQ_ERQ29_SHIFT (29U)
4835#define DMA_ERQ_ERQ29_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ29_SHIFT)) & DMA_ERQ_ERQ29_MASK)
4836#define DMA_ERQ_ERQ29 DMA_ERQ_ERQ29_MASK
4837#define DMA_ERQ_ERQ30_MASK (0x40000000U)
4838#define DMA_ERQ_ERQ30_SHIFT (30U)
4839#define DMA_ERQ_ERQ30_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ30_SHIFT)) & DMA_ERQ_ERQ30_MASK)
4840#define DMA_ERQ_ERQ30 DMA_ERQ_ERQ30_MASK
4841#define DMA_ERQ_ERQ31_MASK (0x80000000U)
4842#define DMA_ERQ_ERQ31_SHIFT (31U)
4843#define DMA_ERQ_ERQ31_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERQ_ERQ31_SHIFT)) & DMA_ERQ_ERQ31_MASK)
4844#define DMA_ERQ_ERQ31 DMA_ERQ_ERQ31_MASK
4845
4846/*! @name EEI - Enable Error Interrupt Register */
4847#define DMA_EEI_EEI0_MASK (0x1U)
4848#define DMA_EEI_EEI0_SHIFT (0U)
4849#define DMA_EEI_EEI0_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI0_SHIFT)) & DMA_EEI_EEI0_MASK)
4850#define DMA_EEI_EEI0 DMA_EEI_EEI0_MASK
4851#define DMA_EEI_EEI1_MASK (0x2U)
4852#define DMA_EEI_EEI1_SHIFT (1U)
4853#define DMA_EEI_EEI1_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI1_SHIFT)) & DMA_EEI_EEI1_MASK)
4854#define DMA_EEI_EEI1 DMA_EEI_EEI1_MASK
4855#define DMA_EEI_EEI2_MASK (0x4U)
4856#define DMA_EEI_EEI2_SHIFT (2U)
4857#define DMA_EEI_EEI2_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI2_SHIFT)) & DMA_EEI_EEI2_MASK)
4858#define DMA_EEI_EEI2 DMA_EEI_EEI2_MASK
4859#define DMA_EEI_EEI3_MASK (0x8U)
4860#define DMA_EEI_EEI3_SHIFT (3U)
4861#define DMA_EEI_EEI3_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI3_SHIFT)) & DMA_EEI_EEI3_MASK)
4862#define DMA_EEI_EEI3 DMA_EEI_EEI3_MASK
4863#define DMA_EEI_EEI4_MASK (0x10U)
4864#define DMA_EEI_EEI4_SHIFT (4U)
4865#define DMA_EEI_EEI4_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI4_SHIFT)) & DMA_EEI_EEI4_MASK)
4866#define DMA_EEI_EEI4 DMA_EEI_EEI4_MASK
4867#define DMA_EEI_EEI5_MASK (0x20U)
4868#define DMA_EEI_EEI5_SHIFT (5U)
4869#define DMA_EEI_EEI5_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI5_SHIFT)) & DMA_EEI_EEI5_MASK)
4870#define DMA_EEI_EEI5 DMA_EEI_EEI5_MASK
4871#define DMA_EEI_EEI6_MASK (0x40U)
4872#define DMA_EEI_EEI6_SHIFT (6U)
4873#define DMA_EEI_EEI6_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI6_SHIFT)) & DMA_EEI_EEI6_MASK)
4874#define DMA_EEI_EEI6 DMA_EEI_EEI6_MASK
4875#define DMA_EEI_EEI7_MASK (0x80U)
4876#define DMA_EEI_EEI7_SHIFT (7U)
4877#define DMA_EEI_EEI7_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI7_SHIFT)) & DMA_EEI_EEI7_MASK)
4878#define DMA_EEI_EEI7 DMA_EEI_EEI7_MASK
4879#define DMA_EEI_EEI8_MASK (0x100U)
4880#define DMA_EEI_EEI8_SHIFT (8U)
4881#define DMA_EEI_EEI8_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI8_SHIFT)) & DMA_EEI_EEI8_MASK)
4882#define DMA_EEI_EEI8 DMA_EEI_EEI8_MASK
4883#define DMA_EEI_EEI9_MASK (0x200U)
4884#define DMA_EEI_EEI9_SHIFT (9U)
4885#define DMA_EEI_EEI9_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI9_SHIFT)) & DMA_EEI_EEI9_MASK)
4886#define DMA_EEI_EEI9 DMA_EEI_EEI9_MASK
4887#define DMA_EEI_EEI10_MASK (0x400U)
4888#define DMA_EEI_EEI10_SHIFT (10U)
4889#define DMA_EEI_EEI10_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI10_SHIFT)) & DMA_EEI_EEI10_MASK)
4890#define DMA_EEI_EEI10 DMA_EEI_EEI10_MASK
4891#define DMA_EEI_EEI11_MASK (0x800U)
4892#define DMA_EEI_EEI11_SHIFT (11U)
4893#define DMA_EEI_EEI11_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI11_SHIFT)) & DMA_EEI_EEI11_MASK)
4894#define DMA_EEI_EEI11 DMA_EEI_EEI11_MASK
4895#define DMA_EEI_EEI12_MASK (0x1000U)
4896#define DMA_EEI_EEI12_SHIFT (12U)
4897#define DMA_EEI_EEI12_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI12_SHIFT)) & DMA_EEI_EEI12_MASK)
4898#define DMA_EEI_EEI12 DMA_EEI_EEI12_MASK
4899#define DMA_EEI_EEI13_MASK (0x2000U)
4900#define DMA_EEI_EEI13_SHIFT (13U)
4901#define DMA_EEI_EEI13_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI13_SHIFT)) & DMA_EEI_EEI13_MASK)
4902#define DMA_EEI_EEI13 DMA_EEI_EEI13_MASK
4903#define DMA_EEI_EEI14_MASK (0x4000U)
4904#define DMA_EEI_EEI14_SHIFT (14U)
4905#define DMA_EEI_EEI14_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI14_SHIFT)) & DMA_EEI_EEI14_MASK)
4906#define DMA_EEI_EEI14 DMA_EEI_EEI14_MASK
4907#define DMA_EEI_EEI15_MASK (0x8000U)
4908#define DMA_EEI_EEI15_SHIFT (15U)
4909#define DMA_EEI_EEI15_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI15_SHIFT)) & DMA_EEI_EEI15_MASK)
4910#define DMA_EEI_EEI15 DMA_EEI_EEI15_MASK
4911#define DMA_EEI_EEI16_MASK (0x10000U)
4912#define DMA_EEI_EEI16_SHIFT (16U)
4913#define DMA_EEI_EEI16_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI16_SHIFT)) & DMA_EEI_EEI16_MASK)
4914#define DMA_EEI_EEI16 DMA_EEI_EEI16_MASK
4915#define DMA_EEI_EEI17_MASK (0x20000U)
4916#define DMA_EEI_EEI17_SHIFT (17U)
4917#define DMA_EEI_EEI17_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI17_SHIFT)) & DMA_EEI_EEI17_MASK)
4918#define DMA_EEI_EEI17 DMA_EEI_EEI17_MASK
4919#define DMA_EEI_EEI18_MASK (0x40000U)
4920#define DMA_EEI_EEI18_SHIFT (18U)
4921#define DMA_EEI_EEI18_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI18_SHIFT)) & DMA_EEI_EEI18_MASK)
4922#define DMA_EEI_EEI18 DMA_EEI_EEI18_MASK
4923#define DMA_EEI_EEI19_MASK (0x80000U)
4924#define DMA_EEI_EEI19_SHIFT (19U)
4925#define DMA_EEI_EEI19_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI19_SHIFT)) & DMA_EEI_EEI19_MASK)
4926#define DMA_EEI_EEI19 DMA_EEI_EEI19_MASK
4927#define DMA_EEI_EEI20_MASK (0x100000U)
4928#define DMA_EEI_EEI20_SHIFT (20U)
4929#define DMA_EEI_EEI20_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI20_SHIFT)) & DMA_EEI_EEI20_MASK)
4930#define DMA_EEI_EEI20 DMA_EEI_EEI20_MASK
4931#define DMA_EEI_EEI21_MASK (0x200000U)
4932#define DMA_EEI_EEI21_SHIFT (21U)
4933#define DMA_EEI_EEI21_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI21_SHIFT)) & DMA_EEI_EEI21_MASK)
4934#define DMA_EEI_EEI21 DMA_EEI_EEI21_MASK
4935#define DMA_EEI_EEI22_MASK (0x400000U)
4936#define DMA_EEI_EEI22_SHIFT (22U)
4937#define DMA_EEI_EEI22_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI22_SHIFT)) & DMA_EEI_EEI22_MASK)
4938#define DMA_EEI_EEI22 DMA_EEI_EEI22_MASK
4939#define DMA_EEI_EEI23_MASK (0x800000U)
4940#define DMA_EEI_EEI23_SHIFT (23U)
4941#define DMA_EEI_EEI23_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI23_SHIFT)) & DMA_EEI_EEI23_MASK)
4942#define DMA_EEI_EEI23 DMA_EEI_EEI23_MASK
4943#define DMA_EEI_EEI24_MASK (0x1000000U)
4944#define DMA_EEI_EEI24_SHIFT (24U)
4945#define DMA_EEI_EEI24_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI24_SHIFT)) & DMA_EEI_EEI24_MASK)
4946#define DMA_EEI_EEI24 DMA_EEI_EEI24_MASK
4947#define DMA_EEI_EEI25_MASK (0x2000000U)
4948#define DMA_EEI_EEI25_SHIFT (25U)
4949#define DMA_EEI_EEI25_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI25_SHIFT)) & DMA_EEI_EEI25_MASK)
4950#define DMA_EEI_EEI25 DMA_EEI_EEI25_MASK
4951#define DMA_EEI_EEI26_MASK (0x4000000U)
4952#define DMA_EEI_EEI26_SHIFT (26U)
4953#define DMA_EEI_EEI26_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI26_SHIFT)) & DMA_EEI_EEI26_MASK)
4954#define DMA_EEI_EEI26 DMA_EEI_EEI26_MASK
4955#define DMA_EEI_EEI27_MASK (0x8000000U)
4956#define DMA_EEI_EEI27_SHIFT (27U)
4957#define DMA_EEI_EEI27_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI27_SHIFT)) & DMA_EEI_EEI27_MASK)
4958#define DMA_EEI_EEI27 DMA_EEI_EEI27_MASK
4959#define DMA_EEI_EEI28_MASK (0x10000000U)
4960#define DMA_EEI_EEI28_SHIFT (28U)
4961#define DMA_EEI_EEI28_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI28_SHIFT)) & DMA_EEI_EEI28_MASK)
4962#define DMA_EEI_EEI28 DMA_EEI_EEI28_MASK
4963#define DMA_EEI_EEI29_MASK (0x20000000U)
4964#define DMA_EEI_EEI29_SHIFT (29U)
4965#define DMA_EEI_EEI29_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI29_SHIFT)) & DMA_EEI_EEI29_MASK)
4966#define DMA_EEI_EEI29 DMA_EEI_EEI29_MASK
4967#define DMA_EEI_EEI30_MASK (0x40000000U)
4968#define DMA_EEI_EEI30_SHIFT (30U)
4969#define DMA_EEI_EEI30_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI30_SHIFT)) & DMA_EEI_EEI30_MASK)
4970#define DMA_EEI_EEI30 DMA_EEI_EEI30_MASK
4971#define DMA_EEI_EEI31_MASK (0x80000000U)
4972#define DMA_EEI_EEI31_SHIFT (31U)
4973#define DMA_EEI_EEI31_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EEI_EEI31_SHIFT)) & DMA_EEI_EEI31_MASK)
4974#define DMA_EEI_EEI31 DMA_EEI_EEI31_MASK
4975
4976/*! @name CEEI - Clear Enable Error Interrupt Register */
4977#define DMA_CEEI_CEEI_MASK (0x1FU)
4978#define DMA_CEEI_CEEI_SHIFT (0U)
4979#define DMA_CEEI_CEEI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CEEI_CEEI_SHIFT)) & DMA_CEEI_CEEI_MASK)
4980#define DMA_CEEI_CEEI DMA_CEEI_CEEI_MASK
4981#define DMA_CEEI_CAEE_MASK (0x40U)
4982#define DMA_CEEI_CAEE_SHIFT (6U)
4983#define DMA_CEEI_CAEE_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CEEI_CAEE_SHIFT)) & DMA_CEEI_CAEE_MASK)
4984#define DMA_CEEI_CAEE DMA_CEEI_CAEE_MASK
4985#define DMA_CEEI_NOP_MASK (0x80U)
4986#define DMA_CEEI_NOP_SHIFT (7U)
4987#define DMA_CEEI_NOP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CEEI_NOP_SHIFT)) & DMA_CEEI_NOP_MASK)
4988#define DMA_CEEI_NOP DMA_CEEI_NOP_MASK
4989
4990/*! @name SEEI - Set Enable Error Interrupt Register */
4991#define DMA_SEEI_SEEI_MASK (0x1FU)
4992#define DMA_SEEI_SEEI_SHIFT (0U)
4993#define DMA_SEEI_SEEI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SEEI_SEEI_SHIFT)) & DMA_SEEI_SEEI_MASK)
4994#define DMA_SEEI_SEEI DMA_SEEI_SEEI_MASK
4995#define DMA_SEEI_SAEE_MASK (0x40U)
4996#define DMA_SEEI_SAEE_SHIFT (6U)
4997#define DMA_SEEI_SAEE_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SEEI_SAEE_SHIFT)) & DMA_SEEI_SAEE_MASK)
4998#define DMA_SEEI_SAEE DMA_SEEI_SAEE_MASK
4999#define DMA_SEEI_NOP_MASK (0x80U)
5000#define DMA_SEEI_NOP_SHIFT (7U)
5001#define DMA_SEEI_NOP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SEEI_NOP_SHIFT)) & DMA_SEEI_NOP_MASK)
5002#define DMA_SEEI_NOP DMA_SEEI_NOP_MASK
5003
5004/*! @name CERQ - Clear Enable Request Register */
5005#define DMA_CERQ_CERQ_MASK (0x1FU)
5006#define DMA_CERQ_CERQ_SHIFT (0U)
5007#define DMA_CERQ_CERQ_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CERQ_CERQ_SHIFT)) & DMA_CERQ_CERQ_MASK)
5008#define DMA_CERQ_CERQ DMA_CERQ_CERQ_MASK
5009#define DMA_CERQ_CAER_MASK (0x40U)
5010#define DMA_CERQ_CAER_SHIFT (6U)
5011#define DMA_CERQ_CAER_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CERQ_CAER_SHIFT)) & DMA_CERQ_CAER_MASK)
5012#define DMA_CERQ_CAER DMA_CERQ_CAER_MASK
5013#define DMA_CERQ_NOP_MASK (0x80U)
5014#define DMA_CERQ_NOP_SHIFT (7U)
5015#define DMA_CERQ_NOP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CERQ_NOP_SHIFT)) & DMA_CERQ_NOP_MASK)
5016#define DMA_CERQ_NOP DMA_CERQ_NOP_MASK
5017
5018/*! @name SERQ - Set Enable Request Register */
5019#define DMA_SERQ_SERQ_MASK (0x1FU)
5020#define DMA_SERQ_SERQ_SHIFT (0U)
5021#define DMA_SERQ_SERQ_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SERQ_SERQ_SHIFT)) & DMA_SERQ_SERQ_MASK)
5022#define DMA_SERQ_SERQ DMA_SERQ_SERQ_MASK
5023#define DMA_SERQ_SAER_MASK (0x40U)
5024#define DMA_SERQ_SAER_SHIFT (6U)
5025#define DMA_SERQ_SAER_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SERQ_SAER_SHIFT)) & DMA_SERQ_SAER_MASK)
5026#define DMA_SERQ_SAER DMA_SERQ_SAER_MASK
5027#define DMA_SERQ_NOP_MASK (0x80U)
5028#define DMA_SERQ_NOP_SHIFT (7U)
5029#define DMA_SERQ_NOP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SERQ_NOP_SHIFT)) & DMA_SERQ_NOP_MASK)
5030#define DMA_SERQ_NOP DMA_SERQ_NOP_MASK
5031
5032/*! @name CDNE - Clear DONE Status Bit Register */
5033#define DMA_CDNE_CDNE_MASK (0x1FU)
5034#define DMA_CDNE_CDNE_SHIFT (0U)
5035#define DMA_CDNE_CDNE_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CDNE_CDNE_SHIFT)) & DMA_CDNE_CDNE_MASK)
5036#define DMA_CDNE_CDNE DMA_CDNE_CDNE_MASK
5037#define DMA_CDNE_CADN_MASK (0x40U)
5038#define DMA_CDNE_CADN_SHIFT (6U)
5039#define DMA_CDNE_CADN_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CDNE_CADN_SHIFT)) & DMA_CDNE_CADN_MASK)
5040#define DMA_CDNE_CADN DMA_CDNE_CADN_MASK
5041#define DMA_CDNE_NOP_MASK (0x80U)
5042#define DMA_CDNE_NOP_SHIFT (7U)
5043#define DMA_CDNE_NOP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CDNE_NOP_SHIFT)) & DMA_CDNE_NOP_MASK)
5044#define DMA_CDNE_NOP DMA_CDNE_NOP_MASK
5045
5046/*! @name SSRT - Set START Bit Register */
5047#define DMA_SSRT_SSRT_MASK (0x1FU)
5048#define DMA_SSRT_SSRT_SHIFT (0U)
5049#define DMA_SSRT_SSRT_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SSRT_SSRT_SHIFT)) & DMA_SSRT_SSRT_MASK)
5050#define DMA_SSRT_SSRT DMA_SSRT_SSRT_MASK
5051#define DMA_SSRT_SAST_MASK (0x40U)
5052#define DMA_SSRT_SAST_SHIFT (6U)
5053#define DMA_SSRT_SAST_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SSRT_SAST_SHIFT)) & DMA_SSRT_SAST_MASK)
5054#define DMA_SSRT_SAST DMA_SSRT_SAST_MASK
5055#define DMA_SSRT_NOP_MASK (0x80U)
5056#define DMA_SSRT_NOP_SHIFT (7U)
5057#define DMA_SSRT_NOP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_SSRT_NOP_SHIFT)) & DMA_SSRT_NOP_MASK)
5058#define DMA_SSRT_NOP DMA_SSRT_NOP_MASK
5059
5060/*! @name CERR - Clear Error Register */
5061#define DMA_CERR_CERR_MASK (0x1FU)
5062#define DMA_CERR_CERR_SHIFT (0U)
5063#define DMA_CERR_CERR_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CERR_CERR_SHIFT)) & DMA_CERR_CERR_MASK)
5064#define DMA_CERR_CERR DMA_CERR_CERR_MASK
5065#define DMA_CERR_CAEI_MASK (0x40U)
5066#define DMA_CERR_CAEI_SHIFT (6U)
5067#define DMA_CERR_CAEI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CERR_CAEI_SHIFT)) & DMA_CERR_CAEI_MASK)
5068#define DMA_CERR_CAEI DMA_CERR_CAEI_MASK
5069#define DMA_CERR_NOP_MASK (0x80U)
5070#define DMA_CERR_NOP_SHIFT (7U)
5071#define DMA_CERR_NOP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CERR_NOP_SHIFT)) & DMA_CERR_NOP_MASK)
5072#define DMA_CERR_NOP DMA_CERR_NOP_MASK
5073
5074/*! @name CINT - Clear Interrupt Request Register */
5075#define DMA_CINT_CINT_MASK (0x1FU)
5076#define DMA_CINT_CINT_SHIFT (0U)
5077#define DMA_CINT_CINT_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CINT_CINT_SHIFT)) & DMA_CINT_CINT_MASK)
5078#define DMA_CINT_CINT DMA_CINT_CINT_MASK
5079#define DMA_CINT_CAIR_MASK (0x40U)
5080#define DMA_CINT_CAIR_SHIFT (6U)
5081#define DMA_CINT_CAIR_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CINT_CAIR_SHIFT)) & DMA_CINT_CAIR_MASK)
5082#define DMA_CINT_CAIR DMA_CINT_CAIR_MASK
5083#define DMA_CINT_NOP_MASK (0x80U)
5084#define DMA_CINT_NOP_SHIFT (7U)
5085#define DMA_CINT_NOP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_CINT_NOP_SHIFT)) & DMA_CINT_NOP_MASK)
5086#define DMA_CINT_NOP DMA_CINT_NOP_MASK
5087
5088/*! @name INT - Interrupt Request Register */
5089#define DMA_INT_INT0_MASK (0x1U)
5090#define DMA_INT_INT0_SHIFT (0U)
5091#define DMA_INT_INT0_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT0_SHIFT)) & DMA_INT_INT0_MASK)
5092#define DMA_INT_INT0 DMA_INT_INT0_MASK
5093#define DMA_INT_INT1_MASK (0x2U)
5094#define DMA_INT_INT1_SHIFT (1U)
5095#define DMA_INT_INT1_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT1_SHIFT)) & DMA_INT_INT1_MASK)
5096#define DMA_INT_INT1 DMA_INT_INT1_MASK
5097#define DMA_INT_INT2_MASK (0x4U)
5098#define DMA_INT_INT2_SHIFT (2U)
5099#define DMA_INT_INT2_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT2_SHIFT)) & DMA_INT_INT2_MASK)
5100#define DMA_INT_INT2 DMA_INT_INT2_MASK
5101#define DMA_INT_INT3_MASK (0x8U)
5102#define DMA_INT_INT3_SHIFT (3U)
5103#define DMA_INT_INT3_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT3_SHIFT)) & DMA_INT_INT3_MASK)
5104#define DMA_INT_INT3 DMA_INT_INT3_MASK
5105#define DMA_INT_INT4_MASK (0x10U)
5106#define DMA_INT_INT4_SHIFT (4U)
5107#define DMA_INT_INT4_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT4_SHIFT)) & DMA_INT_INT4_MASK)
5108#define DMA_INT_INT4 DMA_INT_INT4_MASK
5109#define DMA_INT_INT5_MASK (0x20U)
5110#define DMA_INT_INT5_SHIFT (5U)
5111#define DMA_INT_INT5_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT5_SHIFT)) & DMA_INT_INT5_MASK)
5112#define DMA_INT_INT5 DMA_INT_INT5_MASK
5113#define DMA_INT_INT6_MASK (0x40U)
5114#define DMA_INT_INT6_SHIFT (6U)
5115#define DMA_INT_INT6_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT6_SHIFT)) & DMA_INT_INT6_MASK)
5116#define DMA_INT_INT6 DMA_INT_INT6_MASK
5117#define DMA_INT_INT7_MASK (0x80U)
5118#define DMA_INT_INT7_SHIFT (7U)
5119#define DMA_INT_INT7_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT7_SHIFT)) & DMA_INT_INT7_MASK)
5120#define DMA_INT_INT7 DMA_INT_INT7_MASK
5121#define DMA_INT_INT8_MASK (0x100U)
5122#define DMA_INT_INT8_SHIFT (8U)
5123#define DMA_INT_INT8_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT8_SHIFT)) & DMA_INT_INT8_MASK)
5124#define DMA_INT_INT8 DMA_INT_INT8_MASK
5125#define DMA_INT_INT9_MASK (0x200U)
5126#define DMA_INT_INT9_SHIFT (9U)
5127#define DMA_INT_INT9_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT9_SHIFT)) & DMA_INT_INT9_MASK)
5128#define DMA_INT_INT9 DMA_INT_INT9_MASK
5129#define DMA_INT_INT10_MASK (0x400U)
5130#define DMA_INT_INT10_SHIFT (10U)
5131#define DMA_INT_INT10_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT10_SHIFT)) & DMA_INT_INT10_MASK)
5132#define DMA_INT_INT10 DMA_INT_INT10_MASK
5133#define DMA_INT_INT11_MASK (0x800U)
5134#define DMA_INT_INT11_SHIFT (11U)
5135#define DMA_INT_INT11_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT11_SHIFT)) & DMA_INT_INT11_MASK)
5136#define DMA_INT_INT11 DMA_INT_INT11_MASK
5137#define DMA_INT_INT12_MASK (0x1000U)
5138#define DMA_INT_INT12_SHIFT (12U)
5139#define DMA_INT_INT12_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT12_SHIFT)) & DMA_INT_INT12_MASK)
5140#define DMA_INT_INT12 DMA_INT_INT12_MASK
5141#define DMA_INT_INT13_MASK (0x2000U)
5142#define DMA_INT_INT13_SHIFT (13U)
5143#define DMA_INT_INT13_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT13_SHIFT)) & DMA_INT_INT13_MASK)
5144#define DMA_INT_INT13 DMA_INT_INT13_MASK
5145#define DMA_INT_INT14_MASK (0x4000U)
5146#define DMA_INT_INT14_SHIFT (14U)
5147#define DMA_INT_INT14_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT14_SHIFT)) & DMA_INT_INT14_MASK)
5148#define DMA_INT_INT14 DMA_INT_INT14_MASK
5149#define DMA_INT_INT15_MASK (0x8000U)
5150#define DMA_INT_INT15_SHIFT (15U)
5151#define DMA_INT_INT15_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT15_SHIFT)) & DMA_INT_INT15_MASK)
5152#define DMA_INT_INT15 DMA_INT_INT15_MASK
5153#define DMA_INT_INT16_MASK (0x10000U)
5154#define DMA_INT_INT16_SHIFT (16U)
5155#define DMA_INT_INT16_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT16_SHIFT)) & DMA_INT_INT16_MASK)
5156#define DMA_INT_INT16 DMA_INT_INT16_MASK
5157#define DMA_INT_INT17_MASK (0x20000U)
5158#define DMA_INT_INT17_SHIFT (17U)
5159#define DMA_INT_INT17_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT17_SHIFT)) & DMA_INT_INT17_MASK)
5160#define DMA_INT_INT17 DMA_INT_INT17_MASK
5161#define DMA_INT_INT18_MASK (0x40000U)
5162#define DMA_INT_INT18_SHIFT (18U)
5163#define DMA_INT_INT18_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT18_SHIFT)) & DMA_INT_INT18_MASK)
5164#define DMA_INT_INT18 DMA_INT_INT18_MASK
5165#define DMA_INT_INT19_MASK (0x80000U)
5166#define DMA_INT_INT19_SHIFT (19U)
5167#define DMA_INT_INT19_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT19_SHIFT)) & DMA_INT_INT19_MASK)
5168#define DMA_INT_INT19 DMA_INT_INT19_MASK
5169#define DMA_INT_INT20_MASK (0x100000U)
5170#define DMA_INT_INT20_SHIFT (20U)
5171#define DMA_INT_INT20_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT20_SHIFT)) & DMA_INT_INT20_MASK)
5172#define DMA_INT_INT20 DMA_INT_INT20_MASK
5173#define DMA_INT_INT21_MASK (0x200000U)
5174#define DMA_INT_INT21_SHIFT (21U)
5175#define DMA_INT_INT21_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT21_SHIFT)) & DMA_INT_INT21_MASK)
5176#define DMA_INT_INT21 DMA_INT_INT21_MASK
5177#define DMA_INT_INT22_MASK (0x400000U)
5178#define DMA_INT_INT22_SHIFT (22U)
5179#define DMA_INT_INT22_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT22_SHIFT)) & DMA_INT_INT22_MASK)
5180#define DMA_INT_INT22 DMA_INT_INT22_MASK
5181#define DMA_INT_INT23_MASK (0x800000U)
5182#define DMA_INT_INT23_SHIFT (23U)
5183#define DMA_INT_INT23_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT23_SHIFT)) & DMA_INT_INT23_MASK)
5184#define DMA_INT_INT23 DMA_INT_INT23_MASK
5185#define DMA_INT_INT24_MASK (0x1000000U)
5186#define DMA_INT_INT24_SHIFT (24U)
5187#define DMA_INT_INT24_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT24_SHIFT)) & DMA_INT_INT24_MASK)
5188#define DMA_INT_INT24 DMA_INT_INT24_MASK
5189#define DMA_INT_INT25_MASK (0x2000000U)
5190#define DMA_INT_INT25_SHIFT (25U)
5191#define DMA_INT_INT25_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT25_SHIFT)) & DMA_INT_INT25_MASK)
5192#define DMA_INT_INT25 DMA_INT_INT25_MASK
5193#define DMA_INT_INT26_MASK (0x4000000U)
5194#define DMA_INT_INT26_SHIFT (26U)
5195#define DMA_INT_INT26_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT26_SHIFT)) & DMA_INT_INT26_MASK)
5196#define DMA_INT_INT26 DMA_INT_INT26_MASK
5197#define DMA_INT_INT27_MASK (0x8000000U)
5198#define DMA_INT_INT27_SHIFT (27U)
5199#define DMA_INT_INT27_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT27_SHIFT)) & DMA_INT_INT27_MASK)
5200#define DMA_INT_INT27 DMA_INT_INT27_MASK
5201#define DMA_INT_INT28_MASK (0x10000000U)
5202#define DMA_INT_INT28_SHIFT (28U)
5203#define DMA_INT_INT28_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT28_SHIFT)) & DMA_INT_INT28_MASK)
5204#define DMA_INT_INT28 DMA_INT_INT28_MASK
5205#define DMA_INT_INT29_MASK (0x20000000U)
5206#define DMA_INT_INT29_SHIFT (29U)
5207#define DMA_INT_INT29_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT29_SHIFT)) & DMA_INT_INT29_MASK)
5208#define DMA_INT_INT29 DMA_INT_INT29_MASK
5209#define DMA_INT_INT30_MASK (0x40000000U)
5210#define DMA_INT_INT30_SHIFT (30U)
5211#define DMA_INT_INT30_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT30_SHIFT)) & DMA_INT_INT30_MASK)
5212#define DMA_INT_INT30 DMA_INT_INT30_MASK
5213#define DMA_INT_INT31_MASK (0x80000000U)
5214#define DMA_INT_INT31_SHIFT (31U)
5215#define DMA_INT_INT31_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_INT_INT31_SHIFT)) & DMA_INT_INT31_MASK)
5216#define DMA_INT_INT31 DMA_INT_INT31_MASK
5217
5218/*! @name ERR - Error Register */
5219#define DMA_ERR_ERR0_MASK (0x1U)
5220#define DMA_ERR_ERR0_SHIFT (0U)
5221#define DMA_ERR_ERR0_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR0_SHIFT)) & DMA_ERR_ERR0_MASK)
5222#define DMA_ERR_ERR0 DMA_ERR_ERR0_MASK
5223#define DMA_ERR_ERR1_MASK (0x2U)
5224#define DMA_ERR_ERR1_SHIFT (1U)
5225#define DMA_ERR_ERR1_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR1_SHIFT)) & DMA_ERR_ERR1_MASK)
5226#define DMA_ERR_ERR1 DMA_ERR_ERR1_MASK
5227#define DMA_ERR_ERR2_MASK (0x4U)
5228#define DMA_ERR_ERR2_SHIFT (2U)
5229#define DMA_ERR_ERR2_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR2_SHIFT)) & DMA_ERR_ERR2_MASK)
5230#define DMA_ERR_ERR2 DMA_ERR_ERR2_MASK
5231#define DMA_ERR_ERR3_MASK (0x8U)
5232#define DMA_ERR_ERR3_SHIFT (3U)
5233#define DMA_ERR_ERR3_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR3_SHIFT)) & DMA_ERR_ERR3_MASK)
5234#define DMA_ERR_ERR3 DMA_ERR_ERR3_MASK
5235#define DMA_ERR_ERR4_MASK (0x10U)
5236#define DMA_ERR_ERR4_SHIFT (4U)
5237#define DMA_ERR_ERR4_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR4_SHIFT)) & DMA_ERR_ERR4_MASK)
5238#define DMA_ERR_ERR4 DMA_ERR_ERR4_MASK
5239#define DMA_ERR_ERR5_MASK (0x20U)
5240#define DMA_ERR_ERR5_SHIFT (5U)
5241#define DMA_ERR_ERR5_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR5_SHIFT)) & DMA_ERR_ERR5_MASK)
5242#define DMA_ERR_ERR5 DMA_ERR_ERR5_MASK
5243#define DMA_ERR_ERR6_MASK (0x40U)
5244#define DMA_ERR_ERR6_SHIFT (6U)
5245#define DMA_ERR_ERR6_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR6_SHIFT)) & DMA_ERR_ERR6_MASK)
5246#define DMA_ERR_ERR6 DMA_ERR_ERR6_MASK
5247#define DMA_ERR_ERR7_MASK (0x80U)
5248#define DMA_ERR_ERR7_SHIFT (7U)
5249#define DMA_ERR_ERR7_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR7_SHIFT)) & DMA_ERR_ERR7_MASK)
5250#define DMA_ERR_ERR7 DMA_ERR_ERR7_MASK
5251#define DMA_ERR_ERR8_MASK (0x100U)
5252#define DMA_ERR_ERR8_SHIFT (8U)
5253#define DMA_ERR_ERR8_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR8_SHIFT)) & DMA_ERR_ERR8_MASK)
5254#define DMA_ERR_ERR8 DMA_ERR_ERR8_MASK
5255#define DMA_ERR_ERR9_MASK (0x200U)
5256#define DMA_ERR_ERR9_SHIFT (9U)
5257#define DMA_ERR_ERR9_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR9_SHIFT)) & DMA_ERR_ERR9_MASK)
5258#define DMA_ERR_ERR9 DMA_ERR_ERR9_MASK
5259#define DMA_ERR_ERR10_MASK (0x400U)
5260#define DMA_ERR_ERR10_SHIFT (10U)
5261#define DMA_ERR_ERR10_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR10_SHIFT)) & DMA_ERR_ERR10_MASK)
5262#define DMA_ERR_ERR10 DMA_ERR_ERR10_MASK
5263#define DMA_ERR_ERR11_MASK (0x800U)
5264#define DMA_ERR_ERR11_SHIFT (11U)
5265#define DMA_ERR_ERR11_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR11_SHIFT)) & DMA_ERR_ERR11_MASK)
5266#define DMA_ERR_ERR11 DMA_ERR_ERR11_MASK
5267#define DMA_ERR_ERR12_MASK (0x1000U)
5268#define DMA_ERR_ERR12_SHIFT (12U)
5269#define DMA_ERR_ERR12_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR12_SHIFT)) & DMA_ERR_ERR12_MASK)
5270#define DMA_ERR_ERR12 DMA_ERR_ERR12_MASK
5271#define DMA_ERR_ERR13_MASK (0x2000U)
5272#define DMA_ERR_ERR13_SHIFT (13U)
5273#define DMA_ERR_ERR13_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR13_SHIFT)) & DMA_ERR_ERR13_MASK)
5274#define DMA_ERR_ERR13 DMA_ERR_ERR13_MASK
5275#define DMA_ERR_ERR14_MASK (0x4000U)
5276#define DMA_ERR_ERR14_SHIFT (14U)
5277#define DMA_ERR_ERR14_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR14_SHIFT)) & DMA_ERR_ERR14_MASK)
5278#define DMA_ERR_ERR14 DMA_ERR_ERR14_MASK
5279#define DMA_ERR_ERR15_MASK (0x8000U)
5280#define DMA_ERR_ERR15_SHIFT (15U)
5281#define DMA_ERR_ERR15_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR15_SHIFT)) & DMA_ERR_ERR15_MASK)
5282#define DMA_ERR_ERR15 DMA_ERR_ERR15_MASK
5283#define DMA_ERR_ERR16_MASK (0x10000U)
5284#define DMA_ERR_ERR16_SHIFT (16U)
5285#define DMA_ERR_ERR16_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR16_SHIFT)) & DMA_ERR_ERR16_MASK)
5286#define DMA_ERR_ERR16 DMA_ERR_ERR16_MASK
5287#define DMA_ERR_ERR17_MASK (0x20000U)
5288#define DMA_ERR_ERR17_SHIFT (17U)
5289#define DMA_ERR_ERR17_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR17_SHIFT)) & DMA_ERR_ERR17_MASK)
5290#define DMA_ERR_ERR17 DMA_ERR_ERR17_MASK
5291#define DMA_ERR_ERR18_MASK (0x40000U)
5292#define DMA_ERR_ERR18_SHIFT (18U)
5293#define DMA_ERR_ERR18_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR18_SHIFT)) & DMA_ERR_ERR18_MASK)
5294#define DMA_ERR_ERR18 DMA_ERR_ERR18_MASK
5295#define DMA_ERR_ERR19_MASK (0x80000U)
5296#define DMA_ERR_ERR19_SHIFT (19U)
5297#define DMA_ERR_ERR19_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR19_SHIFT)) & DMA_ERR_ERR19_MASK)
5298#define DMA_ERR_ERR19 DMA_ERR_ERR19_MASK
5299#define DMA_ERR_ERR20_MASK (0x100000U)
5300#define DMA_ERR_ERR20_SHIFT (20U)
5301#define DMA_ERR_ERR20_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR20_SHIFT)) & DMA_ERR_ERR20_MASK)
5302#define DMA_ERR_ERR20 DMA_ERR_ERR20_MASK
5303#define DMA_ERR_ERR21_MASK (0x200000U)
5304#define DMA_ERR_ERR21_SHIFT (21U)
5305#define DMA_ERR_ERR21_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR21_SHIFT)) & DMA_ERR_ERR21_MASK)
5306#define DMA_ERR_ERR21 DMA_ERR_ERR21_MASK
5307#define DMA_ERR_ERR22_MASK (0x400000U)
5308#define DMA_ERR_ERR22_SHIFT (22U)
5309#define DMA_ERR_ERR22_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR22_SHIFT)) & DMA_ERR_ERR22_MASK)
5310#define DMA_ERR_ERR22 DMA_ERR_ERR22_MASK
5311#define DMA_ERR_ERR23_MASK (0x800000U)
5312#define DMA_ERR_ERR23_SHIFT (23U)
5313#define DMA_ERR_ERR23_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR23_SHIFT)) & DMA_ERR_ERR23_MASK)
5314#define DMA_ERR_ERR23 DMA_ERR_ERR23_MASK
5315#define DMA_ERR_ERR24_MASK (0x1000000U)
5316#define DMA_ERR_ERR24_SHIFT (24U)
5317#define DMA_ERR_ERR24_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR24_SHIFT)) & DMA_ERR_ERR24_MASK)
5318#define DMA_ERR_ERR24 DMA_ERR_ERR24_MASK
5319#define DMA_ERR_ERR25_MASK (0x2000000U)
5320#define DMA_ERR_ERR25_SHIFT (25U)
5321#define DMA_ERR_ERR25_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR25_SHIFT)) & DMA_ERR_ERR25_MASK)
5322#define DMA_ERR_ERR25 DMA_ERR_ERR25_MASK
5323#define DMA_ERR_ERR26_MASK (0x4000000U)
5324#define DMA_ERR_ERR26_SHIFT (26U)
5325#define DMA_ERR_ERR26_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR26_SHIFT)) & DMA_ERR_ERR26_MASK)
5326#define DMA_ERR_ERR26 DMA_ERR_ERR26_MASK
5327#define DMA_ERR_ERR27_MASK (0x8000000U)
5328#define DMA_ERR_ERR27_SHIFT (27U)
5329#define DMA_ERR_ERR27_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR27_SHIFT)) & DMA_ERR_ERR27_MASK)
5330#define DMA_ERR_ERR27 DMA_ERR_ERR27_MASK
5331#define DMA_ERR_ERR28_MASK (0x10000000U)
5332#define DMA_ERR_ERR28_SHIFT (28U)
5333#define DMA_ERR_ERR28_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR28_SHIFT)) & DMA_ERR_ERR28_MASK)
5334#define DMA_ERR_ERR28 DMA_ERR_ERR28_MASK
5335#define DMA_ERR_ERR29_MASK (0x20000000U)
5336#define DMA_ERR_ERR29_SHIFT (29U)
5337#define DMA_ERR_ERR29_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR29_SHIFT)) & DMA_ERR_ERR29_MASK)
5338#define DMA_ERR_ERR29 DMA_ERR_ERR29_MASK
5339#define DMA_ERR_ERR30_MASK (0x40000000U)
5340#define DMA_ERR_ERR30_SHIFT (30U)
5341#define DMA_ERR_ERR30_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR30_SHIFT)) & DMA_ERR_ERR30_MASK)
5342#define DMA_ERR_ERR30 DMA_ERR_ERR30_MASK
5343#define DMA_ERR_ERR31_MASK (0x80000000U)
5344#define DMA_ERR_ERR31_SHIFT (31U)
5345#define DMA_ERR_ERR31_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_ERR_ERR31_SHIFT)) & DMA_ERR_ERR31_MASK)
5346#define DMA_ERR_ERR31 DMA_ERR_ERR31_MASK
5347
5348/*! @name HRS - Hardware Request Status Register */
5349#define DMA_HRS_HRS0_MASK (0x1U)
5350#define DMA_HRS_HRS0_SHIFT (0U)
5351#define DMA_HRS_HRS0_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS0_SHIFT)) & DMA_HRS_HRS0_MASK)
5352#define DMA_HRS_HRS0 DMA_HRS_HRS0_MASK
5353#define DMA_HRS_HRS1_MASK (0x2U)
5354#define DMA_HRS_HRS1_SHIFT (1U)
5355#define DMA_HRS_HRS1_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS1_SHIFT)) & DMA_HRS_HRS1_MASK)
5356#define DMA_HRS_HRS1 DMA_HRS_HRS1_MASK
5357#define DMA_HRS_HRS2_MASK (0x4U)
5358#define DMA_HRS_HRS2_SHIFT (2U)
5359#define DMA_HRS_HRS2_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS2_SHIFT)) & DMA_HRS_HRS2_MASK)
5360#define DMA_HRS_HRS2 DMA_HRS_HRS2_MASK
5361#define DMA_HRS_HRS3_MASK (0x8U)
5362#define DMA_HRS_HRS3_SHIFT (3U)
5363#define DMA_HRS_HRS3_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS3_SHIFT)) & DMA_HRS_HRS3_MASK)
5364#define DMA_HRS_HRS3 DMA_HRS_HRS3_MASK
5365#define DMA_HRS_HRS4_MASK (0x10U)
5366#define DMA_HRS_HRS4_SHIFT (4U)
5367#define DMA_HRS_HRS4_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS4_SHIFT)) & DMA_HRS_HRS4_MASK)
5368#define DMA_HRS_HRS4 DMA_HRS_HRS4_MASK
5369#define DMA_HRS_HRS5_MASK (0x20U)
5370#define DMA_HRS_HRS5_SHIFT (5U)
5371#define DMA_HRS_HRS5_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS5_SHIFT)) & DMA_HRS_HRS5_MASK)
5372#define DMA_HRS_HRS5 DMA_HRS_HRS5_MASK
5373#define DMA_HRS_HRS6_MASK (0x40U)
5374#define DMA_HRS_HRS6_SHIFT (6U)
5375#define DMA_HRS_HRS6_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS6_SHIFT)) & DMA_HRS_HRS6_MASK)
5376#define DMA_HRS_HRS6 DMA_HRS_HRS6_MASK
5377#define DMA_HRS_HRS7_MASK (0x80U)
5378#define DMA_HRS_HRS7_SHIFT (7U)
5379#define DMA_HRS_HRS7_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS7_SHIFT)) & DMA_HRS_HRS7_MASK)
5380#define DMA_HRS_HRS7 DMA_HRS_HRS7_MASK
5381#define DMA_HRS_HRS8_MASK (0x100U)
5382#define DMA_HRS_HRS8_SHIFT (8U)
5383#define DMA_HRS_HRS8_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS8_SHIFT)) & DMA_HRS_HRS8_MASK)
5384#define DMA_HRS_HRS8 DMA_HRS_HRS8_MASK
5385#define DMA_HRS_HRS9_MASK (0x200U)
5386#define DMA_HRS_HRS9_SHIFT (9U)
5387#define DMA_HRS_HRS9_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS9_SHIFT)) & DMA_HRS_HRS9_MASK)
5388#define DMA_HRS_HRS9 DMA_HRS_HRS9_MASK
5389#define DMA_HRS_HRS10_MASK (0x400U)
5390#define DMA_HRS_HRS10_SHIFT (10U)
5391#define DMA_HRS_HRS10_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS10_SHIFT)) & DMA_HRS_HRS10_MASK)
5392#define DMA_HRS_HRS10 DMA_HRS_HRS10_MASK
5393#define DMA_HRS_HRS11_MASK (0x800U)
5394#define DMA_HRS_HRS11_SHIFT (11U)
5395#define DMA_HRS_HRS11_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS11_SHIFT)) & DMA_HRS_HRS11_MASK)
5396#define DMA_HRS_HRS11 DMA_HRS_HRS11_MASK
5397#define DMA_HRS_HRS12_MASK (0x1000U)
5398#define DMA_HRS_HRS12_SHIFT (12U)
5399#define DMA_HRS_HRS12_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS12_SHIFT)) & DMA_HRS_HRS12_MASK)
5400#define DMA_HRS_HRS12 DMA_HRS_HRS12_MASK
5401#define DMA_HRS_HRS13_MASK (0x2000U)
5402#define DMA_HRS_HRS13_SHIFT (13U)
5403#define DMA_HRS_HRS13_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS13_SHIFT)) & DMA_HRS_HRS13_MASK)
5404#define DMA_HRS_HRS13 DMA_HRS_HRS13_MASK
5405#define DMA_HRS_HRS14_MASK (0x4000U)
5406#define DMA_HRS_HRS14_SHIFT (14U)
5407#define DMA_HRS_HRS14_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS14_SHIFT)) & DMA_HRS_HRS14_MASK)
5408#define DMA_HRS_HRS14 DMA_HRS_HRS14_MASK
5409#define DMA_HRS_HRS15_MASK (0x8000U)
5410#define DMA_HRS_HRS15_SHIFT (15U)
5411#define DMA_HRS_HRS15_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS15_SHIFT)) & DMA_HRS_HRS15_MASK)
5412#define DMA_HRS_HRS15 DMA_HRS_HRS15_MASK
5413#define DMA_HRS_HRS16_MASK (0x10000U)
5414#define DMA_HRS_HRS16_SHIFT (16U)
5415#define DMA_HRS_HRS16_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS16_SHIFT)) & DMA_HRS_HRS16_MASK)
5416#define DMA_HRS_HRS16 DMA_HRS_HRS16_MASK
5417#define DMA_HRS_HRS17_MASK (0x20000U)
5418#define DMA_HRS_HRS17_SHIFT (17U)
5419#define DMA_HRS_HRS17_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS17_SHIFT)) & DMA_HRS_HRS17_MASK)
5420#define DMA_HRS_HRS17 DMA_HRS_HRS17_MASK
5421#define DMA_HRS_HRS18_MASK (0x40000U)
5422#define DMA_HRS_HRS18_SHIFT (18U)
5423#define DMA_HRS_HRS18_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS18_SHIFT)) & DMA_HRS_HRS18_MASK)
5424#define DMA_HRS_HRS18 DMA_HRS_HRS18_MASK
5425#define DMA_HRS_HRS19_MASK (0x80000U)
5426#define DMA_HRS_HRS19_SHIFT (19U)
5427#define DMA_HRS_HRS19_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS19_SHIFT)) & DMA_HRS_HRS19_MASK)
5428#define DMA_HRS_HRS19 DMA_HRS_HRS19_MASK
5429#define DMA_HRS_HRS20_MASK (0x100000U)
5430#define DMA_HRS_HRS20_SHIFT (20U)
5431#define DMA_HRS_HRS20_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS20_SHIFT)) & DMA_HRS_HRS20_MASK)
5432#define DMA_HRS_HRS20 DMA_HRS_HRS20_MASK
5433#define DMA_HRS_HRS21_MASK (0x200000U)
5434#define DMA_HRS_HRS21_SHIFT (21U)
5435#define DMA_HRS_HRS21_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS21_SHIFT)) & DMA_HRS_HRS21_MASK)
5436#define DMA_HRS_HRS21 DMA_HRS_HRS21_MASK
5437#define DMA_HRS_HRS22_MASK (0x400000U)
5438#define DMA_HRS_HRS22_SHIFT (22U)
5439#define DMA_HRS_HRS22_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS22_SHIFT)) & DMA_HRS_HRS22_MASK)
5440#define DMA_HRS_HRS22 DMA_HRS_HRS22_MASK
5441#define DMA_HRS_HRS23_MASK (0x800000U)
5442#define DMA_HRS_HRS23_SHIFT (23U)
5443#define DMA_HRS_HRS23_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS23_SHIFT)) & DMA_HRS_HRS23_MASK)
5444#define DMA_HRS_HRS23 DMA_HRS_HRS23_MASK
5445#define DMA_HRS_HRS24_MASK (0x1000000U)
5446#define DMA_HRS_HRS24_SHIFT (24U)
5447#define DMA_HRS_HRS24_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS24_SHIFT)) & DMA_HRS_HRS24_MASK)
5448#define DMA_HRS_HRS24 DMA_HRS_HRS24_MASK
5449#define DMA_HRS_HRS25_MASK (0x2000000U)
5450#define DMA_HRS_HRS25_SHIFT (25U)
5451#define DMA_HRS_HRS25_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS25_SHIFT)) & DMA_HRS_HRS25_MASK)
5452#define DMA_HRS_HRS25 DMA_HRS_HRS25_MASK
5453#define DMA_HRS_HRS26_MASK (0x4000000U)
5454#define DMA_HRS_HRS26_SHIFT (26U)
5455#define DMA_HRS_HRS26_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS26_SHIFT)) & DMA_HRS_HRS26_MASK)
5456#define DMA_HRS_HRS26 DMA_HRS_HRS26_MASK
5457#define DMA_HRS_HRS27_MASK (0x8000000U)
5458#define DMA_HRS_HRS27_SHIFT (27U)
5459#define DMA_HRS_HRS27_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS27_SHIFT)) & DMA_HRS_HRS27_MASK)
5460#define DMA_HRS_HRS27 DMA_HRS_HRS27_MASK
5461#define DMA_HRS_HRS28_MASK (0x10000000U)
5462#define DMA_HRS_HRS28_SHIFT (28U)
5463#define DMA_HRS_HRS28_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS28_SHIFT)) & DMA_HRS_HRS28_MASK)
5464#define DMA_HRS_HRS28 DMA_HRS_HRS28_MASK
5465#define DMA_HRS_HRS29_MASK (0x20000000U)
5466#define DMA_HRS_HRS29_SHIFT (29U)
5467#define DMA_HRS_HRS29_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS29_SHIFT)) & DMA_HRS_HRS29_MASK)
5468#define DMA_HRS_HRS29 DMA_HRS_HRS29_MASK
5469#define DMA_HRS_HRS30_MASK (0x40000000U)
5470#define DMA_HRS_HRS30_SHIFT (30U)
5471#define DMA_HRS_HRS30_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS30_SHIFT)) & DMA_HRS_HRS30_MASK)
5472#define DMA_HRS_HRS30 DMA_HRS_HRS30_MASK
5473#define DMA_HRS_HRS31_MASK (0x80000000U)
5474#define DMA_HRS_HRS31_SHIFT (31U)
5475#define DMA_HRS_HRS31_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_HRS_HRS31_SHIFT)) & DMA_HRS_HRS31_MASK)
5476#define DMA_HRS_HRS31 DMA_HRS_HRS31_MASK
5477
5478/*! @name EARS - Enable Asynchronous Request in Stop Register */
5479#define DMA_EARS_EDREQ_0_MASK (0x1U)
5480#define DMA_EARS_EDREQ_0_SHIFT (0U)
5481#define DMA_EARS_EDREQ_0_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_0_SHIFT)) & DMA_EARS_EDREQ_0_MASK)
5482#define DMA_EARS_EDREQ_0 DMA_EARS_EDREQ_0_MASK
5483#define DMA_EARS_EDREQ_1_MASK (0x2U)
5484#define DMA_EARS_EDREQ_1_SHIFT (1U)
5485#define DMA_EARS_EDREQ_1_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_1_SHIFT)) & DMA_EARS_EDREQ_1_MASK)
5486#define DMA_EARS_EDREQ_1 DMA_EARS_EDREQ_1_MASK
5487#define DMA_EARS_EDREQ_2_MASK (0x4U)
5488#define DMA_EARS_EDREQ_2_SHIFT (2U)
5489#define DMA_EARS_EDREQ_2_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_2_SHIFT)) & DMA_EARS_EDREQ_2_MASK)
5490#define DMA_EARS_EDREQ_2 DMA_EARS_EDREQ_2_MASK
5491#define DMA_EARS_EDREQ_3_MASK (0x8U)
5492#define DMA_EARS_EDREQ_3_SHIFT (3U)
5493#define DMA_EARS_EDREQ_3_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_3_SHIFT)) & DMA_EARS_EDREQ_3_MASK)
5494#define DMA_EARS_EDREQ_3 DMA_EARS_EDREQ_3_MASK
5495#define DMA_EARS_EDREQ_4_MASK (0x10U)
5496#define DMA_EARS_EDREQ_4_SHIFT (4U)
5497#define DMA_EARS_EDREQ_4_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_4_SHIFT)) & DMA_EARS_EDREQ_4_MASK)
5498#define DMA_EARS_EDREQ_4 DMA_EARS_EDREQ_4_MASK
5499#define DMA_EARS_EDREQ_5_MASK (0x20U)
5500#define DMA_EARS_EDREQ_5_SHIFT (5U)
5501#define DMA_EARS_EDREQ_5_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_5_SHIFT)) & DMA_EARS_EDREQ_5_MASK)
5502#define DMA_EARS_EDREQ_5 DMA_EARS_EDREQ_5_MASK
5503#define DMA_EARS_EDREQ_6_MASK (0x40U)
5504#define DMA_EARS_EDREQ_6_SHIFT (6U)
5505#define DMA_EARS_EDREQ_6_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_6_SHIFT)) & DMA_EARS_EDREQ_6_MASK)
5506#define DMA_EARS_EDREQ_6 DMA_EARS_EDREQ_6_MASK
5507#define DMA_EARS_EDREQ_7_MASK (0x80U)
5508#define DMA_EARS_EDREQ_7_SHIFT (7U)
5509#define DMA_EARS_EDREQ_7_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_7_SHIFT)) & DMA_EARS_EDREQ_7_MASK)
5510#define DMA_EARS_EDREQ_7 DMA_EARS_EDREQ_7_MASK
5511#define DMA_EARS_EDREQ_8_MASK (0x100U)
5512#define DMA_EARS_EDREQ_8_SHIFT (8U)
5513#define DMA_EARS_EDREQ_8_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_8_SHIFT)) & DMA_EARS_EDREQ_8_MASK)
5514#define DMA_EARS_EDREQ_8 DMA_EARS_EDREQ_8_MASK
5515#define DMA_EARS_EDREQ_9_MASK (0x200U)
5516#define DMA_EARS_EDREQ_9_SHIFT (9U)
5517#define DMA_EARS_EDREQ_9_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_9_SHIFT)) & DMA_EARS_EDREQ_9_MASK)
5518#define DMA_EARS_EDREQ_9 DMA_EARS_EDREQ_9_MASK
5519#define DMA_EARS_EDREQ_10_MASK (0x400U)
5520#define DMA_EARS_EDREQ_10_SHIFT (10U)
5521#define DMA_EARS_EDREQ_10_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_10_SHIFT)) & DMA_EARS_EDREQ_10_MASK)
5522#define DMA_EARS_EDREQ_10 DMA_EARS_EDREQ_10_MASK
5523#define DMA_EARS_EDREQ_11_MASK (0x800U)
5524#define DMA_EARS_EDREQ_11_SHIFT (11U)
5525#define DMA_EARS_EDREQ_11_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_11_SHIFT)) & DMA_EARS_EDREQ_11_MASK)
5526#define DMA_EARS_EDREQ_11 DMA_EARS_EDREQ_11_MASK
5527#define DMA_EARS_EDREQ_12_MASK (0x1000U)
5528#define DMA_EARS_EDREQ_12_SHIFT (12U)
5529#define DMA_EARS_EDREQ_12_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_12_SHIFT)) & DMA_EARS_EDREQ_12_MASK)
5530#define DMA_EARS_EDREQ_12 DMA_EARS_EDREQ_12_MASK
5531#define DMA_EARS_EDREQ_13_MASK (0x2000U)
5532#define DMA_EARS_EDREQ_13_SHIFT (13U)
5533#define DMA_EARS_EDREQ_13_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_13_SHIFT)) & DMA_EARS_EDREQ_13_MASK)
5534#define DMA_EARS_EDREQ_13 DMA_EARS_EDREQ_13_MASK
5535#define DMA_EARS_EDREQ_14_MASK (0x4000U)
5536#define DMA_EARS_EDREQ_14_SHIFT (14U)
5537#define DMA_EARS_EDREQ_14_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_14_SHIFT)) & DMA_EARS_EDREQ_14_MASK)
5538#define DMA_EARS_EDREQ_14 DMA_EARS_EDREQ_14_MASK
5539#define DMA_EARS_EDREQ_15_MASK (0x8000U)
5540#define DMA_EARS_EDREQ_15_SHIFT (15U)
5541#define DMA_EARS_EDREQ_15_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_15_SHIFT)) & DMA_EARS_EDREQ_15_MASK)
5542#define DMA_EARS_EDREQ_15 DMA_EARS_EDREQ_15_MASK
5543#define DMA_EARS_EDREQ_16_MASK (0x10000U)
5544#define DMA_EARS_EDREQ_16_SHIFT (16U)
5545#define DMA_EARS_EDREQ_16_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_16_SHIFT)) & DMA_EARS_EDREQ_16_MASK)
5546#define DMA_EARS_EDREQ_16 DMA_EARS_EDREQ_16_MASK
5547#define DMA_EARS_EDREQ_17_MASK (0x20000U)
5548#define DMA_EARS_EDREQ_17_SHIFT (17U)
5549#define DMA_EARS_EDREQ_17_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_17_SHIFT)) & DMA_EARS_EDREQ_17_MASK)
5550#define DMA_EARS_EDREQ_17 DMA_EARS_EDREQ_17_MASK
5551#define DMA_EARS_EDREQ_18_MASK (0x40000U)
5552#define DMA_EARS_EDREQ_18_SHIFT (18U)
5553#define DMA_EARS_EDREQ_18_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_18_SHIFT)) & DMA_EARS_EDREQ_18_MASK)
5554#define DMA_EARS_EDREQ_18 DMA_EARS_EDREQ_18_MASK
5555#define DMA_EARS_EDREQ_19_MASK (0x80000U)
5556#define DMA_EARS_EDREQ_19_SHIFT (19U)
5557#define DMA_EARS_EDREQ_19_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_19_SHIFT)) & DMA_EARS_EDREQ_19_MASK)
5558#define DMA_EARS_EDREQ_19 DMA_EARS_EDREQ_19_MASK
5559#define DMA_EARS_EDREQ_20_MASK (0x100000U)
5560#define DMA_EARS_EDREQ_20_SHIFT (20U)
5561#define DMA_EARS_EDREQ_20_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_20_SHIFT)) & DMA_EARS_EDREQ_20_MASK)
5562#define DMA_EARS_EDREQ_20 DMA_EARS_EDREQ_20_MASK
5563#define DMA_EARS_EDREQ_21_MASK (0x200000U)
5564#define DMA_EARS_EDREQ_21_SHIFT (21U)
5565#define DMA_EARS_EDREQ_21_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_21_SHIFT)) & DMA_EARS_EDREQ_21_MASK)
5566#define DMA_EARS_EDREQ_21 DMA_EARS_EDREQ_21_MASK
5567#define DMA_EARS_EDREQ_22_MASK (0x400000U)
5568#define DMA_EARS_EDREQ_22_SHIFT (22U)
5569#define DMA_EARS_EDREQ_22_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_22_SHIFT)) & DMA_EARS_EDREQ_22_MASK)
5570#define DMA_EARS_EDREQ_22 DMA_EARS_EDREQ_22_MASK
5571#define DMA_EARS_EDREQ_23_MASK (0x800000U)
5572#define DMA_EARS_EDREQ_23_SHIFT (23U)
5573#define DMA_EARS_EDREQ_23_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_23_SHIFT)) & DMA_EARS_EDREQ_23_MASK)
5574#define DMA_EARS_EDREQ_23 DMA_EARS_EDREQ_23_MASK
5575#define DMA_EARS_EDREQ_24_MASK (0x1000000U)
5576#define DMA_EARS_EDREQ_24_SHIFT (24U)
5577#define DMA_EARS_EDREQ_24_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_24_SHIFT)) & DMA_EARS_EDREQ_24_MASK)
5578#define DMA_EARS_EDREQ_24 DMA_EARS_EDREQ_24_MASK
5579#define DMA_EARS_EDREQ_25_MASK (0x2000000U)
5580#define DMA_EARS_EDREQ_25_SHIFT (25U)
5581#define DMA_EARS_EDREQ_25_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_25_SHIFT)) & DMA_EARS_EDREQ_25_MASK)
5582#define DMA_EARS_EDREQ_25 DMA_EARS_EDREQ_25_MASK
5583#define DMA_EARS_EDREQ_26_MASK (0x4000000U)
5584#define DMA_EARS_EDREQ_26_SHIFT (26U)
5585#define DMA_EARS_EDREQ_26_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_26_SHIFT)) & DMA_EARS_EDREQ_26_MASK)
5586#define DMA_EARS_EDREQ_26 DMA_EARS_EDREQ_26_MASK
5587#define DMA_EARS_EDREQ_27_MASK (0x8000000U)
5588#define DMA_EARS_EDREQ_27_SHIFT (27U)
5589#define DMA_EARS_EDREQ_27_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_27_SHIFT)) & DMA_EARS_EDREQ_27_MASK)
5590#define DMA_EARS_EDREQ_27 DMA_EARS_EDREQ_27_MASK
5591#define DMA_EARS_EDREQ_28_MASK (0x10000000U)
5592#define DMA_EARS_EDREQ_28_SHIFT (28U)
5593#define DMA_EARS_EDREQ_28_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_28_SHIFT)) & DMA_EARS_EDREQ_28_MASK)
5594#define DMA_EARS_EDREQ_28 DMA_EARS_EDREQ_28_MASK
5595#define DMA_EARS_EDREQ_29_MASK (0x20000000U)
5596#define DMA_EARS_EDREQ_29_SHIFT (29U)
5597#define DMA_EARS_EDREQ_29_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_29_SHIFT)) & DMA_EARS_EDREQ_29_MASK)
5598#define DMA_EARS_EDREQ_29 DMA_EARS_EDREQ_29_MASK
5599#define DMA_EARS_EDREQ_30_MASK (0x40000000U)
5600#define DMA_EARS_EDREQ_30_SHIFT (30U)
5601#define DMA_EARS_EDREQ_30_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_30_SHIFT)) & DMA_EARS_EDREQ_30_MASK)
5602#define DMA_EARS_EDREQ_30 DMA_EARS_EDREQ_30_MASK
5603#define DMA_EARS_EDREQ_31_MASK (0x80000000U)
5604#define DMA_EARS_EDREQ_31_SHIFT (31U)
5605#define DMA_EARS_EDREQ_31_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_EARS_EDREQ_31_SHIFT)) & DMA_EARS_EDREQ_31_MASK)
5606#define DMA_EARS_EDREQ_31 DMA_EARS_EDREQ_31_MASK
5607
5608/*! @name DCHPRI3 - Channel n Priority Register */
5609#define DMA_DCHPRI3_CHPRI_MASK (0xFU)
5610#define DMA_DCHPRI3_CHPRI_SHIFT (0U)
5611#define DMA_DCHPRI3_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI3_CHPRI_SHIFT)) & DMA_DCHPRI3_CHPRI_MASK)
5612#define DMA_DCHPRI3_CHPRI DMA_DCHPRI3_CHPRI_MASK
5613#define DMA_DCHPRI3_GRPPRI_MASK (0x30U)
5614#define DMA_DCHPRI3_GRPPRI_SHIFT (4U)
5615#define DMA_DCHPRI3_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI3_GRPPRI_SHIFT)) & DMA_DCHPRI3_GRPPRI_MASK)
5616#define DMA_DCHPRI3_GRPPRI DMA_DCHPRI3_GRPPRI_MASK
5617#define DMA_DCHPRI3_DPA_MASK (0x40U)
5618#define DMA_DCHPRI3_DPA_SHIFT (6U)
5619#define DMA_DCHPRI3_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI3_DPA_SHIFT)) & DMA_DCHPRI3_DPA_MASK)
5620#define DMA_DCHPRI3_DPA DMA_DCHPRI3_DPA_MASK
5621#define DMA_DCHPRI3_ECP_MASK (0x80U)
5622#define DMA_DCHPRI3_ECP_SHIFT (7U)
5623#define DMA_DCHPRI3_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI3_ECP_SHIFT)) & DMA_DCHPRI3_ECP_MASK)
5624#define DMA_DCHPRI3_ECP DMA_DCHPRI3_ECP_MASK
5625
5626/*! @name DCHPRI2 - Channel n Priority Register */
5627#define DMA_DCHPRI2_CHPRI_MASK (0xFU)
5628#define DMA_DCHPRI2_CHPRI_SHIFT (0U)
5629#define DMA_DCHPRI2_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI2_CHPRI_SHIFT)) & DMA_DCHPRI2_CHPRI_MASK)
5630#define DMA_DCHPRI2_CHPRI DMA_DCHPRI2_CHPRI_MASK
5631#define DMA_DCHPRI2_GRPPRI_MASK (0x30U)
5632#define DMA_DCHPRI2_GRPPRI_SHIFT (4U)
5633#define DMA_DCHPRI2_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI2_GRPPRI_SHIFT)) & DMA_DCHPRI2_GRPPRI_MASK)
5634#define DMA_DCHPRI2_GRPPRI DMA_DCHPRI2_GRPPRI_MASK
5635#define DMA_DCHPRI2_DPA_MASK (0x40U)
5636#define DMA_DCHPRI2_DPA_SHIFT (6U)
5637#define DMA_DCHPRI2_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI2_DPA_SHIFT)) & DMA_DCHPRI2_DPA_MASK)
5638#define DMA_DCHPRI2_DPA DMA_DCHPRI2_DPA_MASK
5639#define DMA_DCHPRI2_ECP_MASK (0x80U)
5640#define DMA_DCHPRI2_ECP_SHIFT (7U)
5641#define DMA_DCHPRI2_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI2_ECP_SHIFT)) & DMA_DCHPRI2_ECP_MASK)
5642#define DMA_DCHPRI2_ECP DMA_DCHPRI2_ECP_MASK
5643
5644/*! @name DCHPRI1 - Channel n Priority Register */
5645#define DMA_DCHPRI1_CHPRI_MASK (0xFU)
5646#define DMA_DCHPRI1_CHPRI_SHIFT (0U)
5647#define DMA_DCHPRI1_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI1_CHPRI_SHIFT)) & DMA_DCHPRI1_CHPRI_MASK)
5648#define DMA_DCHPRI1_CHPRI DMA_DCHPRI1_CHPRI_MASK
5649#define DMA_DCHPRI1_GRPPRI_MASK (0x30U)
5650#define DMA_DCHPRI1_GRPPRI_SHIFT (4U)
5651#define DMA_DCHPRI1_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI1_GRPPRI_SHIFT)) & DMA_DCHPRI1_GRPPRI_MASK)
5652#define DMA_DCHPRI1_GRPPRI DMA_DCHPRI1_GRPPRI_MASK
5653#define DMA_DCHPRI1_DPA_MASK (0x40U)
5654#define DMA_DCHPRI1_DPA_SHIFT (6U)
5655#define DMA_DCHPRI1_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI1_DPA_SHIFT)) & DMA_DCHPRI1_DPA_MASK)
5656#define DMA_DCHPRI1_DPA DMA_DCHPRI1_DPA_MASK
5657#define DMA_DCHPRI1_ECP_MASK (0x80U)
5658#define DMA_DCHPRI1_ECP_SHIFT (7U)
5659#define DMA_DCHPRI1_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI1_ECP_SHIFT)) & DMA_DCHPRI1_ECP_MASK)
5660#define DMA_DCHPRI1_ECP DMA_DCHPRI1_ECP_MASK
5661
5662/*! @name DCHPRI0 - Channel n Priority Register */
5663#define DMA_DCHPRI0_CHPRI_MASK (0xFU)
5664#define DMA_DCHPRI0_CHPRI_SHIFT (0U)
5665#define DMA_DCHPRI0_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI0_CHPRI_SHIFT)) & DMA_DCHPRI0_CHPRI_MASK)
5666#define DMA_DCHPRI0_CHPRI DMA_DCHPRI0_CHPRI_MASK
5667#define DMA_DCHPRI0_GRPPRI_MASK (0x30U)
5668#define DMA_DCHPRI0_GRPPRI_SHIFT (4U)
5669#define DMA_DCHPRI0_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI0_GRPPRI_SHIFT)) & DMA_DCHPRI0_GRPPRI_MASK)
5670#define DMA_DCHPRI0_GRPPRI DMA_DCHPRI0_GRPPRI_MASK
5671#define DMA_DCHPRI0_DPA_MASK (0x40U)
5672#define DMA_DCHPRI0_DPA_SHIFT (6U)
5673#define DMA_DCHPRI0_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI0_DPA_SHIFT)) & DMA_DCHPRI0_DPA_MASK)
5674#define DMA_DCHPRI0_DPA DMA_DCHPRI0_DPA_MASK
5675#define DMA_DCHPRI0_ECP_MASK (0x80U)
5676#define DMA_DCHPRI0_ECP_SHIFT (7U)
5677#define DMA_DCHPRI0_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI0_ECP_SHIFT)) & DMA_DCHPRI0_ECP_MASK)
5678#define DMA_DCHPRI0_ECP DMA_DCHPRI0_ECP_MASK
5679
5680/*! @name DCHPRI7 - Channel n Priority Register */
5681#define DMA_DCHPRI7_CHPRI_MASK (0xFU)
5682#define DMA_DCHPRI7_CHPRI_SHIFT (0U)
5683#define DMA_DCHPRI7_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI7_CHPRI_SHIFT)) & DMA_DCHPRI7_CHPRI_MASK)
5684#define DMA_DCHPRI7_CHPRI DMA_DCHPRI7_CHPRI_MASK
5685#define DMA_DCHPRI7_GRPPRI_MASK (0x30U)
5686#define DMA_DCHPRI7_GRPPRI_SHIFT (4U)
5687#define DMA_DCHPRI7_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI7_GRPPRI_SHIFT)) & DMA_DCHPRI7_GRPPRI_MASK)
5688#define DMA_DCHPRI7_GRPPRI DMA_DCHPRI7_GRPPRI_MASK
5689#define DMA_DCHPRI7_DPA_MASK (0x40U)
5690#define DMA_DCHPRI7_DPA_SHIFT (6U)
5691#define DMA_DCHPRI7_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI7_DPA_SHIFT)) & DMA_DCHPRI7_DPA_MASK)
5692#define DMA_DCHPRI7_DPA DMA_DCHPRI7_DPA_MASK
5693#define DMA_DCHPRI7_ECP_MASK (0x80U)
5694#define DMA_DCHPRI7_ECP_SHIFT (7U)
5695#define DMA_DCHPRI7_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI7_ECP_SHIFT)) & DMA_DCHPRI7_ECP_MASK)
5696#define DMA_DCHPRI7_ECP DMA_DCHPRI7_ECP_MASK
5697
5698/*! @name DCHPRI6 - Channel n Priority Register */
5699#define DMA_DCHPRI6_CHPRI_MASK (0xFU)
5700#define DMA_DCHPRI6_CHPRI_SHIFT (0U)
5701#define DMA_DCHPRI6_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI6_CHPRI_SHIFT)) & DMA_DCHPRI6_CHPRI_MASK)
5702#define DMA_DCHPRI6_CHPRI DMA_DCHPRI6_CHPRI_MASK
5703#define DMA_DCHPRI6_GRPPRI_MASK (0x30U)
5704#define DMA_DCHPRI6_GRPPRI_SHIFT (4U)
5705#define DMA_DCHPRI6_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI6_GRPPRI_SHIFT)) & DMA_DCHPRI6_GRPPRI_MASK)
5706#define DMA_DCHPRI6_GRPPRI DMA_DCHPRI6_GRPPRI_MASK
5707#define DMA_DCHPRI6_DPA_MASK (0x40U)
5708#define DMA_DCHPRI6_DPA_SHIFT (6U)
5709#define DMA_DCHPRI6_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI6_DPA_SHIFT)) & DMA_DCHPRI6_DPA_MASK)
5710#define DMA_DCHPRI6_DPA DMA_DCHPRI6_DPA_MASK
5711#define DMA_DCHPRI6_ECP_MASK (0x80U)
5712#define DMA_DCHPRI6_ECP_SHIFT (7U)
5713#define DMA_DCHPRI6_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI6_ECP_SHIFT)) & DMA_DCHPRI6_ECP_MASK)
5714#define DMA_DCHPRI6_ECP DMA_DCHPRI6_ECP_MASK
5715
5716/*! @name DCHPRI5 - Channel n Priority Register */
5717#define DMA_DCHPRI5_CHPRI_MASK (0xFU)
5718#define DMA_DCHPRI5_CHPRI_SHIFT (0U)
5719#define DMA_DCHPRI5_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI5_CHPRI_SHIFT)) & DMA_DCHPRI5_CHPRI_MASK)
5720#define DMA_DCHPRI5_CHPRI DMA_DCHPRI5_CHPRI_MASK
5721#define DMA_DCHPRI5_GRPPRI_MASK (0x30U)
5722#define DMA_DCHPRI5_GRPPRI_SHIFT (4U)
5723#define DMA_DCHPRI5_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI5_GRPPRI_SHIFT)) & DMA_DCHPRI5_GRPPRI_MASK)
5724#define DMA_DCHPRI5_GRPPRI DMA_DCHPRI5_GRPPRI_MASK
5725#define DMA_DCHPRI5_DPA_MASK (0x40U)
5726#define DMA_DCHPRI5_DPA_SHIFT (6U)
5727#define DMA_DCHPRI5_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI5_DPA_SHIFT)) & DMA_DCHPRI5_DPA_MASK)
5728#define DMA_DCHPRI5_DPA DMA_DCHPRI5_DPA_MASK
5729#define DMA_DCHPRI5_ECP_MASK (0x80U)
5730#define DMA_DCHPRI5_ECP_SHIFT (7U)
5731#define DMA_DCHPRI5_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI5_ECP_SHIFT)) & DMA_DCHPRI5_ECP_MASK)
5732#define DMA_DCHPRI5_ECP DMA_DCHPRI5_ECP_MASK
5733
5734/*! @name DCHPRI4 - Channel n Priority Register */
5735#define DMA_DCHPRI4_CHPRI_MASK (0xFU)
5736#define DMA_DCHPRI4_CHPRI_SHIFT (0U)
5737#define DMA_DCHPRI4_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI4_CHPRI_SHIFT)) & DMA_DCHPRI4_CHPRI_MASK)
5738#define DMA_DCHPRI4_CHPRI DMA_DCHPRI4_CHPRI_MASK
5739#define DMA_DCHPRI4_GRPPRI_MASK (0x30U)
5740#define DMA_DCHPRI4_GRPPRI_SHIFT (4U)
5741#define DMA_DCHPRI4_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI4_GRPPRI_SHIFT)) & DMA_DCHPRI4_GRPPRI_MASK)
5742#define DMA_DCHPRI4_GRPPRI DMA_DCHPRI4_GRPPRI_MASK
5743#define DMA_DCHPRI4_DPA_MASK (0x40U)
5744#define DMA_DCHPRI4_DPA_SHIFT (6U)
5745#define DMA_DCHPRI4_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI4_DPA_SHIFT)) & DMA_DCHPRI4_DPA_MASK)
5746#define DMA_DCHPRI4_DPA DMA_DCHPRI4_DPA_MASK
5747#define DMA_DCHPRI4_ECP_MASK (0x80U)
5748#define DMA_DCHPRI4_ECP_SHIFT (7U)
5749#define DMA_DCHPRI4_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI4_ECP_SHIFT)) & DMA_DCHPRI4_ECP_MASK)
5750#define DMA_DCHPRI4_ECP DMA_DCHPRI4_ECP_MASK
5751
5752/*! @name DCHPRI11 - Channel n Priority Register */
5753#define DMA_DCHPRI11_CHPRI_MASK (0xFU)
5754#define DMA_DCHPRI11_CHPRI_SHIFT (0U)
5755#define DMA_DCHPRI11_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI11_CHPRI_SHIFT)) & DMA_DCHPRI11_CHPRI_MASK)
5756#define DMA_DCHPRI11_CHPRI DMA_DCHPRI11_CHPRI_MASK
5757#define DMA_DCHPRI11_GRPPRI_MASK (0x30U)
5758#define DMA_DCHPRI11_GRPPRI_SHIFT (4U)
5759#define DMA_DCHPRI11_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI11_GRPPRI_SHIFT)) & DMA_DCHPRI11_GRPPRI_MASK)
5760#define DMA_DCHPRI11_GRPPRI DMA_DCHPRI11_GRPPRI_MASK
5761#define DMA_DCHPRI11_DPA_MASK (0x40U)
5762#define DMA_DCHPRI11_DPA_SHIFT (6U)
5763#define DMA_DCHPRI11_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI11_DPA_SHIFT)) & DMA_DCHPRI11_DPA_MASK)
5764#define DMA_DCHPRI11_DPA DMA_DCHPRI11_DPA_MASK
5765#define DMA_DCHPRI11_ECP_MASK (0x80U)
5766#define DMA_DCHPRI11_ECP_SHIFT (7U)
5767#define DMA_DCHPRI11_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI11_ECP_SHIFT)) & DMA_DCHPRI11_ECP_MASK)
5768#define DMA_DCHPRI11_ECP DMA_DCHPRI11_ECP_MASK
5769
5770/*! @name DCHPRI10 - Channel n Priority Register */
5771#define DMA_DCHPRI10_CHPRI_MASK (0xFU)
5772#define DMA_DCHPRI10_CHPRI_SHIFT (0U)
5773#define DMA_DCHPRI10_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI10_CHPRI_SHIFT)) & DMA_DCHPRI10_CHPRI_MASK)
5774#define DMA_DCHPRI10_CHPRI DMA_DCHPRI10_CHPRI_MASK
5775#define DMA_DCHPRI10_GRPPRI_MASK (0x30U)
5776#define DMA_DCHPRI10_GRPPRI_SHIFT (4U)
5777#define DMA_DCHPRI10_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI10_GRPPRI_SHIFT)) & DMA_DCHPRI10_GRPPRI_MASK)
5778#define DMA_DCHPRI10_GRPPRI DMA_DCHPRI10_GRPPRI_MASK
5779#define DMA_DCHPRI10_DPA_MASK (0x40U)
5780#define DMA_DCHPRI10_DPA_SHIFT (6U)
5781#define DMA_DCHPRI10_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI10_DPA_SHIFT)) & DMA_DCHPRI10_DPA_MASK)
5782#define DMA_DCHPRI10_DPA DMA_DCHPRI10_DPA_MASK
5783#define DMA_DCHPRI10_ECP_MASK (0x80U)
5784#define DMA_DCHPRI10_ECP_SHIFT (7U)
5785#define DMA_DCHPRI10_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI10_ECP_SHIFT)) & DMA_DCHPRI10_ECP_MASK)
5786#define DMA_DCHPRI10_ECP DMA_DCHPRI10_ECP_MASK
5787
5788/*! @name DCHPRI9 - Channel n Priority Register */
5789#define DMA_DCHPRI9_CHPRI_MASK (0xFU)
5790#define DMA_DCHPRI9_CHPRI_SHIFT (0U)
5791#define DMA_DCHPRI9_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI9_CHPRI_SHIFT)) & DMA_DCHPRI9_CHPRI_MASK)
5792#define DMA_DCHPRI9_CHPRI DMA_DCHPRI9_CHPRI_MASK
5793#define DMA_DCHPRI9_GRPPRI_MASK (0x30U)
5794#define DMA_DCHPRI9_GRPPRI_SHIFT (4U)
5795#define DMA_DCHPRI9_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI9_GRPPRI_SHIFT)) & DMA_DCHPRI9_GRPPRI_MASK)
5796#define DMA_DCHPRI9_GRPPRI DMA_DCHPRI9_GRPPRI_MASK
5797#define DMA_DCHPRI9_DPA_MASK (0x40U)
5798#define DMA_DCHPRI9_DPA_SHIFT (6U)
5799#define DMA_DCHPRI9_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI9_DPA_SHIFT)) & DMA_DCHPRI9_DPA_MASK)
5800#define DMA_DCHPRI9_DPA DMA_DCHPRI9_DPA_MASK
5801#define DMA_DCHPRI9_ECP_MASK (0x80U)
5802#define DMA_DCHPRI9_ECP_SHIFT (7U)
5803#define DMA_DCHPRI9_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI9_ECP_SHIFT)) & DMA_DCHPRI9_ECP_MASK)
5804#define DMA_DCHPRI9_ECP DMA_DCHPRI9_ECP_MASK
5805
5806/*! @name DCHPRI8 - Channel n Priority Register */
5807#define DMA_DCHPRI8_CHPRI_MASK (0xFU)
5808#define DMA_DCHPRI8_CHPRI_SHIFT (0U)
5809#define DMA_DCHPRI8_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI8_CHPRI_SHIFT)) & DMA_DCHPRI8_CHPRI_MASK)
5810#define DMA_DCHPRI8_CHPRI DMA_DCHPRI8_CHPRI_MASK
5811#define DMA_DCHPRI8_GRPPRI_MASK (0x30U)
5812#define DMA_DCHPRI8_GRPPRI_SHIFT (4U)
5813#define DMA_DCHPRI8_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI8_GRPPRI_SHIFT)) & DMA_DCHPRI8_GRPPRI_MASK)
5814#define DMA_DCHPRI8_GRPPRI DMA_DCHPRI8_GRPPRI_MASK
5815#define DMA_DCHPRI8_DPA_MASK (0x40U)
5816#define DMA_DCHPRI8_DPA_SHIFT (6U)
5817#define DMA_DCHPRI8_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI8_DPA_SHIFT)) & DMA_DCHPRI8_DPA_MASK)
5818#define DMA_DCHPRI8_DPA DMA_DCHPRI8_DPA_MASK
5819#define DMA_DCHPRI8_ECP_MASK (0x80U)
5820#define DMA_DCHPRI8_ECP_SHIFT (7U)
5821#define DMA_DCHPRI8_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI8_ECP_SHIFT)) & DMA_DCHPRI8_ECP_MASK)
5822#define DMA_DCHPRI8_ECP DMA_DCHPRI8_ECP_MASK
5823
5824/*! @name DCHPRI15 - Channel n Priority Register */
5825#define DMA_DCHPRI15_CHPRI_MASK (0xFU)
5826#define DMA_DCHPRI15_CHPRI_SHIFT (0U)
5827#define DMA_DCHPRI15_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI15_CHPRI_SHIFT)) & DMA_DCHPRI15_CHPRI_MASK)
5828#define DMA_DCHPRI15_CHPRI DMA_DCHPRI15_CHPRI_MASK
5829#define DMA_DCHPRI15_GRPPRI_MASK (0x30U)
5830#define DMA_DCHPRI15_GRPPRI_SHIFT (4U)
5831#define DMA_DCHPRI15_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI15_GRPPRI_SHIFT)) & DMA_DCHPRI15_GRPPRI_MASK)
5832#define DMA_DCHPRI15_GRPPRI DMA_DCHPRI15_GRPPRI_MASK
5833#define DMA_DCHPRI15_DPA_MASK (0x40U)
5834#define DMA_DCHPRI15_DPA_SHIFT (6U)
5835#define DMA_DCHPRI15_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI15_DPA_SHIFT)) & DMA_DCHPRI15_DPA_MASK)
5836#define DMA_DCHPRI15_DPA DMA_DCHPRI15_DPA_MASK
5837#define DMA_DCHPRI15_ECP_MASK (0x80U)
5838#define DMA_DCHPRI15_ECP_SHIFT (7U)
5839#define DMA_DCHPRI15_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI15_ECP_SHIFT)) & DMA_DCHPRI15_ECP_MASK)
5840#define DMA_DCHPRI15_ECP DMA_DCHPRI15_ECP_MASK
5841
5842/*! @name DCHPRI14 - Channel n Priority Register */
5843#define DMA_DCHPRI14_CHPRI_MASK (0xFU)
5844#define DMA_DCHPRI14_CHPRI_SHIFT (0U)
5845#define DMA_DCHPRI14_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI14_CHPRI_SHIFT)) & DMA_DCHPRI14_CHPRI_MASK)
5846#define DMA_DCHPRI14_CHPRI DMA_DCHPRI14_CHPRI_MASK
5847#define DMA_DCHPRI14_GRPPRI_MASK (0x30U)
5848#define DMA_DCHPRI14_GRPPRI_SHIFT (4U)
5849#define DMA_DCHPRI14_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI14_GRPPRI_SHIFT)) & DMA_DCHPRI14_GRPPRI_MASK)
5850#define DMA_DCHPRI14_GRPPRI DMA_DCHPRI14_GRPPRI_MASK
5851#define DMA_DCHPRI14_DPA_MASK (0x40U)
5852#define DMA_DCHPRI14_DPA_SHIFT (6U)
5853#define DMA_DCHPRI14_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI14_DPA_SHIFT)) & DMA_DCHPRI14_DPA_MASK)
5854#define DMA_DCHPRI14_DPA DMA_DCHPRI14_DPA_MASK
5855#define DMA_DCHPRI14_ECP_MASK (0x80U)
5856#define DMA_DCHPRI14_ECP_SHIFT (7U)
5857#define DMA_DCHPRI14_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI14_ECP_SHIFT)) & DMA_DCHPRI14_ECP_MASK)
5858#define DMA_DCHPRI14_ECP DMA_DCHPRI14_ECP_MASK
5859
5860/*! @name DCHPRI13 - Channel n Priority Register */
5861#define DMA_DCHPRI13_CHPRI_MASK (0xFU)
5862#define DMA_DCHPRI13_CHPRI_SHIFT (0U)
5863#define DMA_DCHPRI13_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI13_CHPRI_SHIFT)) & DMA_DCHPRI13_CHPRI_MASK)
5864#define DMA_DCHPRI13_CHPRI DMA_DCHPRI13_CHPRI_MASK
5865#define DMA_DCHPRI13_GRPPRI_MASK (0x30U)
5866#define DMA_DCHPRI13_GRPPRI_SHIFT (4U)
5867#define DMA_DCHPRI13_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI13_GRPPRI_SHIFT)) & DMA_DCHPRI13_GRPPRI_MASK)
5868#define DMA_DCHPRI13_GRPPRI DMA_DCHPRI13_GRPPRI_MASK
5869#define DMA_DCHPRI13_DPA_MASK (0x40U)
5870#define DMA_DCHPRI13_DPA_SHIFT (6U)
5871#define DMA_DCHPRI13_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI13_DPA_SHIFT)) & DMA_DCHPRI13_DPA_MASK)
5872#define DMA_DCHPRI13_DPA DMA_DCHPRI13_DPA_MASK
5873#define DMA_DCHPRI13_ECP_MASK (0x80U)
5874#define DMA_DCHPRI13_ECP_SHIFT (7U)
5875#define DMA_DCHPRI13_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI13_ECP_SHIFT)) & DMA_DCHPRI13_ECP_MASK)
5876#define DMA_DCHPRI13_ECP DMA_DCHPRI13_ECP_MASK
5877
5878/*! @name DCHPRI12 - Channel n Priority Register */
5879#define DMA_DCHPRI12_CHPRI_MASK (0xFU)
5880#define DMA_DCHPRI12_CHPRI_SHIFT (0U)
5881#define DMA_DCHPRI12_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI12_CHPRI_SHIFT)) & DMA_DCHPRI12_CHPRI_MASK)
5882#define DMA_DCHPRI12_CHPRI DMA_DCHPRI12_CHPRI_MASK
5883#define DMA_DCHPRI12_GRPPRI_MASK (0x30U)
5884#define DMA_DCHPRI12_GRPPRI_SHIFT (4U)
5885#define DMA_DCHPRI12_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI12_GRPPRI_SHIFT)) & DMA_DCHPRI12_GRPPRI_MASK)
5886#define DMA_DCHPRI12_GRPPRI DMA_DCHPRI12_GRPPRI_MASK
5887#define DMA_DCHPRI12_DPA_MASK (0x40U)
5888#define DMA_DCHPRI12_DPA_SHIFT (6U)
5889#define DMA_DCHPRI12_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI12_DPA_SHIFT)) & DMA_DCHPRI12_DPA_MASK)
5890#define DMA_DCHPRI12_DPA DMA_DCHPRI12_DPA_MASK
5891#define DMA_DCHPRI12_ECP_MASK (0x80U)
5892#define DMA_DCHPRI12_ECP_SHIFT (7U)
5893#define DMA_DCHPRI12_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI12_ECP_SHIFT)) & DMA_DCHPRI12_ECP_MASK)
5894#define DMA_DCHPRI12_ECP DMA_DCHPRI12_ECP_MASK
5895
5896/*! @name DCHPRI19 - Channel n Priority Register */
5897#define DMA_DCHPRI19_CHPRI_MASK (0xFU)
5898#define DMA_DCHPRI19_CHPRI_SHIFT (0U)
5899#define DMA_DCHPRI19_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI19_CHPRI_SHIFT)) & DMA_DCHPRI19_CHPRI_MASK)
5900#define DMA_DCHPRI19_CHPRI DMA_DCHPRI19_CHPRI_MASK
5901#define DMA_DCHPRI19_GRPPRI_MASK (0x30U)
5902#define DMA_DCHPRI19_GRPPRI_SHIFT (4U)
5903#define DMA_DCHPRI19_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI19_GRPPRI_SHIFT)) & DMA_DCHPRI19_GRPPRI_MASK)
5904#define DMA_DCHPRI19_GRPPRI DMA_DCHPRI19_GRPPRI_MASK
5905#define DMA_DCHPRI19_DPA_MASK (0x40U)
5906#define DMA_DCHPRI19_DPA_SHIFT (6U)
5907#define DMA_DCHPRI19_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI19_DPA_SHIFT)) & DMA_DCHPRI19_DPA_MASK)
5908#define DMA_DCHPRI19_DPA DMA_DCHPRI19_DPA_MASK
5909#define DMA_DCHPRI19_ECP_MASK (0x80U)
5910#define DMA_DCHPRI19_ECP_SHIFT (7U)
5911#define DMA_DCHPRI19_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI19_ECP_SHIFT)) & DMA_DCHPRI19_ECP_MASK)
5912#define DMA_DCHPRI19_ECP DMA_DCHPRI19_ECP_MASK
5913
5914/*! @name DCHPRI18 - Channel n Priority Register */
5915#define DMA_DCHPRI18_CHPRI_MASK (0xFU)
5916#define DMA_DCHPRI18_CHPRI_SHIFT (0U)
5917#define DMA_DCHPRI18_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI18_CHPRI_SHIFT)) & DMA_DCHPRI18_CHPRI_MASK)
5918#define DMA_DCHPRI18_CHPRI DMA_DCHPRI18_CHPRI_MASK
5919#define DMA_DCHPRI18_GRPPRI_MASK (0x30U)
5920#define DMA_DCHPRI18_GRPPRI_SHIFT (4U)
5921#define DMA_DCHPRI18_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI18_GRPPRI_SHIFT)) & DMA_DCHPRI18_GRPPRI_MASK)
5922#define DMA_DCHPRI18_GRPPRI DMA_DCHPRI18_GRPPRI_MASK
5923#define DMA_DCHPRI18_DPA_MASK (0x40U)
5924#define DMA_DCHPRI18_DPA_SHIFT (6U)
5925#define DMA_DCHPRI18_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI18_DPA_SHIFT)) & DMA_DCHPRI18_DPA_MASK)
5926#define DMA_DCHPRI18_DPA DMA_DCHPRI18_DPA_MASK
5927#define DMA_DCHPRI18_ECP_MASK (0x80U)
5928#define DMA_DCHPRI18_ECP_SHIFT (7U)
5929#define DMA_DCHPRI18_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI18_ECP_SHIFT)) & DMA_DCHPRI18_ECP_MASK)
5930#define DMA_DCHPRI18_ECP DMA_DCHPRI18_ECP_MASK
5931
5932/*! @name DCHPRI17 - Channel n Priority Register */
5933#define DMA_DCHPRI17_CHPRI_MASK (0xFU)
5934#define DMA_DCHPRI17_CHPRI_SHIFT (0U)
5935#define DMA_DCHPRI17_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI17_CHPRI_SHIFT)) & DMA_DCHPRI17_CHPRI_MASK)
5936#define DMA_DCHPRI17_CHPRI DMA_DCHPRI17_CHPRI_MASK
5937#define DMA_DCHPRI17_GRPPRI_MASK (0x30U)
5938#define DMA_DCHPRI17_GRPPRI_SHIFT (4U)
5939#define DMA_DCHPRI17_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI17_GRPPRI_SHIFT)) & DMA_DCHPRI17_GRPPRI_MASK)
5940#define DMA_DCHPRI17_GRPPRI DMA_DCHPRI17_GRPPRI_MASK
5941#define DMA_DCHPRI17_DPA_MASK (0x40U)
5942#define DMA_DCHPRI17_DPA_SHIFT (6U)
5943#define DMA_DCHPRI17_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI17_DPA_SHIFT)) & DMA_DCHPRI17_DPA_MASK)
5944#define DMA_DCHPRI17_DPA DMA_DCHPRI17_DPA_MASK
5945#define DMA_DCHPRI17_ECP_MASK (0x80U)
5946#define DMA_DCHPRI17_ECP_SHIFT (7U)
5947#define DMA_DCHPRI17_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI17_ECP_SHIFT)) & DMA_DCHPRI17_ECP_MASK)
5948#define DMA_DCHPRI17_ECP DMA_DCHPRI17_ECP_MASK
5949
5950/*! @name DCHPRI16 - Channel n Priority Register */
5951#define DMA_DCHPRI16_CHPRI_MASK (0xFU)
5952#define DMA_DCHPRI16_CHPRI_SHIFT (0U)
5953#define DMA_DCHPRI16_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI16_CHPRI_SHIFT)) & DMA_DCHPRI16_CHPRI_MASK)
5954#define DMA_DCHPRI16_CHPRI DMA_DCHPRI16_CHPRI_MASK
5955#define DMA_DCHPRI16_GRPPRI_MASK (0x30U)
5956#define DMA_DCHPRI16_GRPPRI_SHIFT (4U)
5957#define DMA_DCHPRI16_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI16_GRPPRI_SHIFT)) & DMA_DCHPRI16_GRPPRI_MASK)
5958#define DMA_DCHPRI16_GRPPRI DMA_DCHPRI16_GRPPRI_MASK
5959#define DMA_DCHPRI16_DPA_MASK (0x40U)
5960#define DMA_DCHPRI16_DPA_SHIFT (6U)
5961#define DMA_DCHPRI16_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI16_DPA_SHIFT)) & DMA_DCHPRI16_DPA_MASK)
5962#define DMA_DCHPRI16_DPA DMA_DCHPRI16_DPA_MASK
5963#define DMA_DCHPRI16_ECP_MASK (0x80U)
5964#define DMA_DCHPRI16_ECP_SHIFT (7U)
5965#define DMA_DCHPRI16_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI16_ECP_SHIFT)) & DMA_DCHPRI16_ECP_MASK)
5966#define DMA_DCHPRI16_ECP DMA_DCHPRI16_ECP_MASK
5967
5968/*! @name DCHPRI23 - Channel n Priority Register */
5969#define DMA_DCHPRI23_CHPRI_MASK (0xFU)
5970#define DMA_DCHPRI23_CHPRI_SHIFT (0U)
5971#define DMA_DCHPRI23_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI23_CHPRI_SHIFT)) & DMA_DCHPRI23_CHPRI_MASK)
5972#define DMA_DCHPRI23_CHPRI DMA_DCHPRI23_CHPRI_MASK
5973#define DMA_DCHPRI23_GRPPRI_MASK (0x30U)
5974#define DMA_DCHPRI23_GRPPRI_SHIFT (4U)
5975#define DMA_DCHPRI23_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI23_GRPPRI_SHIFT)) & DMA_DCHPRI23_GRPPRI_MASK)
5976#define DMA_DCHPRI23_GRPPRI DMA_DCHPRI23_GRPPRI_MASK
5977#define DMA_DCHPRI23_DPA_MASK (0x40U)
5978#define DMA_DCHPRI23_DPA_SHIFT (6U)
5979#define DMA_DCHPRI23_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI23_DPA_SHIFT)) & DMA_DCHPRI23_DPA_MASK)
5980#define DMA_DCHPRI23_DPA DMA_DCHPRI23_DPA_MASK
5981#define DMA_DCHPRI23_ECP_MASK (0x80U)
5982#define DMA_DCHPRI23_ECP_SHIFT (7U)
5983#define DMA_DCHPRI23_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI23_ECP_SHIFT)) & DMA_DCHPRI23_ECP_MASK)
5984#define DMA_DCHPRI23_ECP DMA_DCHPRI23_ECP_MASK
5985
5986/*! @name DCHPRI22 - Channel n Priority Register */
5987#define DMA_DCHPRI22_CHPRI_MASK (0xFU)
5988#define DMA_DCHPRI22_CHPRI_SHIFT (0U)
5989#define DMA_DCHPRI22_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI22_CHPRI_SHIFT)) & DMA_DCHPRI22_CHPRI_MASK)
5990#define DMA_DCHPRI22_CHPRI DMA_DCHPRI22_CHPRI_MASK
5991#define DMA_DCHPRI22_GRPPRI_MASK (0x30U)
5992#define DMA_DCHPRI22_GRPPRI_SHIFT (4U)
5993#define DMA_DCHPRI22_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI22_GRPPRI_SHIFT)) & DMA_DCHPRI22_GRPPRI_MASK)
5994#define DMA_DCHPRI22_GRPPRI DMA_DCHPRI22_GRPPRI_MASK
5995#define DMA_DCHPRI22_DPA_MASK (0x40U)
5996#define DMA_DCHPRI22_DPA_SHIFT (6U)
5997#define DMA_DCHPRI22_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI22_DPA_SHIFT)) & DMA_DCHPRI22_DPA_MASK)
5998#define DMA_DCHPRI22_DPA DMA_DCHPRI22_DPA_MASK
5999#define DMA_DCHPRI22_ECP_MASK (0x80U)
6000#define DMA_DCHPRI22_ECP_SHIFT (7U)
6001#define DMA_DCHPRI22_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI22_ECP_SHIFT)) & DMA_DCHPRI22_ECP_MASK)
6002#define DMA_DCHPRI22_ECP DMA_DCHPRI22_ECP_MASK
6003
6004/*! @name DCHPRI21 - Channel n Priority Register */
6005#define DMA_DCHPRI21_CHPRI_MASK (0xFU)
6006#define DMA_DCHPRI21_CHPRI_SHIFT (0U)
6007#define DMA_DCHPRI21_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI21_CHPRI_SHIFT)) & DMA_DCHPRI21_CHPRI_MASK)
6008#define DMA_DCHPRI21_CHPRI DMA_DCHPRI21_CHPRI_MASK
6009#define DMA_DCHPRI21_GRPPRI_MASK (0x30U)
6010#define DMA_DCHPRI21_GRPPRI_SHIFT (4U)
6011#define DMA_DCHPRI21_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI21_GRPPRI_SHIFT)) & DMA_DCHPRI21_GRPPRI_MASK)
6012#define DMA_DCHPRI21_GRPPRI DMA_DCHPRI21_GRPPRI_MASK
6013#define DMA_DCHPRI21_DPA_MASK (0x40U)
6014#define DMA_DCHPRI21_DPA_SHIFT (6U)
6015#define DMA_DCHPRI21_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI21_DPA_SHIFT)) & DMA_DCHPRI21_DPA_MASK)
6016#define DMA_DCHPRI21_DPA DMA_DCHPRI21_DPA_MASK
6017#define DMA_DCHPRI21_ECP_MASK (0x80U)
6018#define DMA_DCHPRI21_ECP_SHIFT (7U)
6019#define DMA_DCHPRI21_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI21_ECP_SHIFT)) & DMA_DCHPRI21_ECP_MASK)
6020#define DMA_DCHPRI21_ECP DMA_DCHPRI21_ECP_MASK
6021
6022/*! @name DCHPRI20 - Channel n Priority Register */
6023#define DMA_DCHPRI20_CHPRI_MASK (0xFU)
6024#define DMA_DCHPRI20_CHPRI_SHIFT (0U)
6025#define DMA_DCHPRI20_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI20_CHPRI_SHIFT)) & DMA_DCHPRI20_CHPRI_MASK)
6026#define DMA_DCHPRI20_CHPRI DMA_DCHPRI20_CHPRI_MASK
6027#define DMA_DCHPRI20_GRPPRI_MASK (0x30U)
6028#define DMA_DCHPRI20_GRPPRI_SHIFT (4U)
6029#define DMA_DCHPRI20_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI20_GRPPRI_SHIFT)) & DMA_DCHPRI20_GRPPRI_MASK)
6030#define DMA_DCHPRI20_GRPPRI DMA_DCHPRI20_GRPPRI_MASK
6031#define DMA_DCHPRI20_DPA_MASK (0x40U)
6032#define DMA_DCHPRI20_DPA_SHIFT (6U)
6033#define DMA_DCHPRI20_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI20_DPA_SHIFT)) & DMA_DCHPRI20_DPA_MASK)
6034#define DMA_DCHPRI20_DPA DMA_DCHPRI20_DPA_MASK
6035#define DMA_DCHPRI20_ECP_MASK (0x80U)
6036#define DMA_DCHPRI20_ECP_SHIFT (7U)
6037#define DMA_DCHPRI20_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI20_ECP_SHIFT)) & DMA_DCHPRI20_ECP_MASK)
6038#define DMA_DCHPRI20_ECP DMA_DCHPRI20_ECP_MASK
6039
6040/*! @name DCHPRI27 - Channel n Priority Register */
6041#define DMA_DCHPRI27_CHPRI_MASK (0xFU)
6042#define DMA_DCHPRI27_CHPRI_SHIFT (0U)
6043#define DMA_DCHPRI27_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI27_CHPRI_SHIFT)) & DMA_DCHPRI27_CHPRI_MASK)
6044#define DMA_DCHPRI27_CHPRI DMA_DCHPRI27_CHPRI_MASK
6045#define DMA_DCHPRI27_GRPPRI_MASK (0x30U)
6046#define DMA_DCHPRI27_GRPPRI_SHIFT (4U)
6047#define DMA_DCHPRI27_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI27_GRPPRI_SHIFT)) & DMA_DCHPRI27_GRPPRI_MASK)
6048#define DMA_DCHPRI27_GRPPRI DMA_DCHPRI27_GRPPRI_MASK
6049#define DMA_DCHPRI27_DPA_MASK (0x40U)
6050#define DMA_DCHPRI27_DPA_SHIFT (6U)
6051#define DMA_DCHPRI27_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI27_DPA_SHIFT)) & DMA_DCHPRI27_DPA_MASK)
6052#define DMA_DCHPRI27_DPA DMA_DCHPRI27_DPA_MASK
6053#define DMA_DCHPRI27_ECP_MASK (0x80U)
6054#define DMA_DCHPRI27_ECP_SHIFT (7U)
6055#define DMA_DCHPRI27_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI27_ECP_SHIFT)) & DMA_DCHPRI27_ECP_MASK)
6056#define DMA_DCHPRI27_ECP DMA_DCHPRI27_ECP_MASK
6057
6058/*! @name DCHPRI26 - Channel n Priority Register */
6059#define DMA_DCHPRI26_CHPRI_MASK (0xFU)
6060#define DMA_DCHPRI26_CHPRI_SHIFT (0U)
6061#define DMA_DCHPRI26_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI26_CHPRI_SHIFT)) & DMA_DCHPRI26_CHPRI_MASK)
6062#define DMA_DCHPRI26_CHPRI DMA_DCHPRI26_CHPRI_MASK
6063#define DMA_DCHPRI26_GRPPRI_MASK (0x30U)
6064#define DMA_DCHPRI26_GRPPRI_SHIFT (4U)
6065#define DMA_DCHPRI26_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI26_GRPPRI_SHIFT)) & DMA_DCHPRI26_GRPPRI_MASK)
6066#define DMA_DCHPRI26_GRPPRI DMA_DCHPRI26_GRPPRI_MASK
6067#define DMA_DCHPRI26_DPA_MASK (0x40U)
6068#define DMA_DCHPRI26_DPA_SHIFT (6U)
6069#define DMA_DCHPRI26_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI26_DPA_SHIFT)) & DMA_DCHPRI26_DPA_MASK)
6070#define DMA_DCHPRI26_DPA DMA_DCHPRI26_DPA_MASK
6071#define DMA_DCHPRI26_ECP_MASK (0x80U)
6072#define DMA_DCHPRI26_ECP_SHIFT (7U)
6073#define DMA_DCHPRI26_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI26_ECP_SHIFT)) & DMA_DCHPRI26_ECP_MASK)
6074#define DMA_DCHPRI26_ECP DMA_DCHPRI26_ECP_MASK
6075
6076/*! @name DCHPRI25 - Channel n Priority Register */
6077#define DMA_DCHPRI25_CHPRI_MASK (0xFU)
6078#define DMA_DCHPRI25_CHPRI_SHIFT (0U)
6079#define DMA_DCHPRI25_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI25_CHPRI_SHIFT)) & DMA_DCHPRI25_CHPRI_MASK)
6080#define DMA_DCHPRI25_CHPRI DMA_DCHPRI25_CHPRI_MASK
6081#define DMA_DCHPRI25_GRPPRI_MASK (0x30U)
6082#define DMA_DCHPRI25_GRPPRI_SHIFT (4U)
6083#define DMA_DCHPRI25_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI25_GRPPRI_SHIFT)) & DMA_DCHPRI25_GRPPRI_MASK)
6084#define DMA_DCHPRI25_GRPPRI DMA_DCHPRI25_GRPPRI_MASK
6085#define DMA_DCHPRI25_DPA_MASK (0x40U)
6086#define DMA_DCHPRI25_DPA_SHIFT (6U)
6087#define DMA_DCHPRI25_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI25_DPA_SHIFT)) & DMA_DCHPRI25_DPA_MASK)
6088#define DMA_DCHPRI25_DPA DMA_DCHPRI25_DPA_MASK
6089#define DMA_DCHPRI25_ECP_MASK (0x80U)
6090#define DMA_DCHPRI25_ECP_SHIFT (7U)
6091#define DMA_DCHPRI25_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI25_ECP_SHIFT)) & DMA_DCHPRI25_ECP_MASK)
6092#define DMA_DCHPRI25_ECP DMA_DCHPRI25_ECP_MASK
6093
6094/*! @name DCHPRI24 - Channel n Priority Register */
6095#define DMA_DCHPRI24_CHPRI_MASK (0xFU)
6096#define DMA_DCHPRI24_CHPRI_SHIFT (0U)
6097#define DMA_DCHPRI24_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI24_CHPRI_SHIFT)) & DMA_DCHPRI24_CHPRI_MASK)
6098#define DMA_DCHPRI24_CHPRI DMA_DCHPRI24_CHPRI_MASK
6099#define DMA_DCHPRI24_GRPPRI_MASK (0x30U)
6100#define DMA_DCHPRI24_GRPPRI_SHIFT (4U)
6101#define DMA_DCHPRI24_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI24_GRPPRI_SHIFT)) & DMA_DCHPRI24_GRPPRI_MASK)
6102#define DMA_DCHPRI24_GRPPRI DMA_DCHPRI24_GRPPRI_MASK
6103#define DMA_DCHPRI24_DPA_MASK (0x40U)
6104#define DMA_DCHPRI24_DPA_SHIFT (6U)
6105#define DMA_DCHPRI24_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI24_DPA_SHIFT)) & DMA_DCHPRI24_DPA_MASK)
6106#define DMA_DCHPRI24_DPA DMA_DCHPRI24_DPA_MASK
6107#define DMA_DCHPRI24_ECP_MASK (0x80U)
6108#define DMA_DCHPRI24_ECP_SHIFT (7U)
6109#define DMA_DCHPRI24_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI24_ECP_SHIFT)) & DMA_DCHPRI24_ECP_MASK)
6110#define DMA_DCHPRI24_ECP DMA_DCHPRI24_ECP_MASK
6111
6112/*! @name DCHPRI31 - Channel n Priority Register */
6113#define DMA_DCHPRI31_CHPRI_MASK (0xFU)
6114#define DMA_DCHPRI31_CHPRI_SHIFT (0U)
6115#define DMA_DCHPRI31_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI31_CHPRI_SHIFT)) & DMA_DCHPRI31_CHPRI_MASK)
6116#define DMA_DCHPRI31_CHPRI DMA_DCHPRI31_CHPRI_MASK
6117#define DMA_DCHPRI31_GRPPRI_MASK (0x30U)
6118#define DMA_DCHPRI31_GRPPRI_SHIFT (4U)
6119#define DMA_DCHPRI31_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI31_GRPPRI_SHIFT)) & DMA_DCHPRI31_GRPPRI_MASK)
6120#define DMA_DCHPRI31_GRPPRI DMA_DCHPRI31_GRPPRI_MASK
6121#define DMA_DCHPRI31_DPA_MASK (0x40U)
6122#define DMA_DCHPRI31_DPA_SHIFT (6U)
6123#define DMA_DCHPRI31_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI31_DPA_SHIFT)) & DMA_DCHPRI31_DPA_MASK)
6124#define DMA_DCHPRI31_DPA DMA_DCHPRI31_DPA_MASK
6125#define DMA_DCHPRI31_ECP_MASK (0x80U)
6126#define DMA_DCHPRI31_ECP_SHIFT (7U)
6127#define DMA_DCHPRI31_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI31_ECP_SHIFT)) & DMA_DCHPRI31_ECP_MASK)
6128#define DMA_DCHPRI31_ECP DMA_DCHPRI31_ECP_MASK
6129
6130/*! @name DCHPRI30 - Channel n Priority Register */
6131#define DMA_DCHPRI30_CHPRI_MASK (0xFU)
6132#define DMA_DCHPRI30_CHPRI_SHIFT (0U)
6133#define DMA_DCHPRI30_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI30_CHPRI_SHIFT)) & DMA_DCHPRI30_CHPRI_MASK)
6134#define DMA_DCHPRI30_CHPRI DMA_DCHPRI30_CHPRI_MASK
6135#define DMA_DCHPRI30_GRPPRI_MASK (0x30U)
6136#define DMA_DCHPRI30_GRPPRI_SHIFT (4U)
6137#define DMA_DCHPRI30_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI30_GRPPRI_SHIFT)) & DMA_DCHPRI30_GRPPRI_MASK)
6138#define DMA_DCHPRI30_GRPPRI DMA_DCHPRI30_GRPPRI_MASK
6139#define DMA_DCHPRI30_DPA_MASK (0x40U)
6140#define DMA_DCHPRI30_DPA_SHIFT (6U)
6141#define DMA_DCHPRI30_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI30_DPA_SHIFT)) & DMA_DCHPRI30_DPA_MASK)
6142#define DMA_DCHPRI30_DPA DMA_DCHPRI30_DPA_MASK
6143#define DMA_DCHPRI30_ECP_MASK (0x80U)
6144#define DMA_DCHPRI30_ECP_SHIFT (7U)
6145#define DMA_DCHPRI30_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI30_ECP_SHIFT)) & DMA_DCHPRI30_ECP_MASK)
6146#define DMA_DCHPRI30_ECP DMA_DCHPRI30_ECP_MASK
6147
6148/*! @name DCHPRI29 - Channel n Priority Register */
6149#define DMA_DCHPRI29_CHPRI_MASK (0xFU)
6150#define DMA_DCHPRI29_CHPRI_SHIFT (0U)
6151#define DMA_DCHPRI29_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI29_CHPRI_SHIFT)) & DMA_DCHPRI29_CHPRI_MASK)
6152#define DMA_DCHPRI29_CHPRI DMA_DCHPRI29_CHPRI_MASK
6153#define DMA_DCHPRI29_GRPPRI_MASK (0x30U)
6154#define DMA_DCHPRI29_GRPPRI_SHIFT (4U)
6155#define DMA_DCHPRI29_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI29_GRPPRI_SHIFT)) & DMA_DCHPRI29_GRPPRI_MASK)
6156#define DMA_DCHPRI29_GRPPRI DMA_DCHPRI29_GRPPRI_MASK
6157#define DMA_DCHPRI29_DPA_MASK (0x40U)
6158#define DMA_DCHPRI29_DPA_SHIFT (6U)
6159#define DMA_DCHPRI29_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI29_DPA_SHIFT)) & DMA_DCHPRI29_DPA_MASK)
6160#define DMA_DCHPRI29_DPA DMA_DCHPRI29_DPA_MASK
6161#define DMA_DCHPRI29_ECP_MASK (0x80U)
6162#define DMA_DCHPRI29_ECP_SHIFT (7U)
6163#define DMA_DCHPRI29_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI29_ECP_SHIFT)) & DMA_DCHPRI29_ECP_MASK)
6164#define DMA_DCHPRI29_ECP DMA_DCHPRI29_ECP_MASK
6165
6166/*! @name DCHPRI28 - Channel n Priority Register */
6167#define DMA_DCHPRI28_CHPRI_MASK (0xFU)
6168#define DMA_DCHPRI28_CHPRI_SHIFT (0U)
6169#define DMA_DCHPRI28_CHPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI28_CHPRI_SHIFT)) & DMA_DCHPRI28_CHPRI_MASK)
6170#define DMA_DCHPRI28_CHPRI DMA_DCHPRI28_CHPRI_MASK
6171#define DMA_DCHPRI28_GRPPRI_MASK (0x30U)
6172#define DMA_DCHPRI28_GRPPRI_SHIFT (4U)
6173#define DMA_DCHPRI28_GRPPRI_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI28_GRPPRI_SHIFT)) & DMA_DCHPRI28_GRPPRI_MASK)
6174#define DMA_DCHPRI28_GRPPRI DMA_DCHPRI28_GRPPRI_MASK
6175#define DMA_DCHPRI28_DPA_MASK (0x40U)
6176#define DMA_DCHPRI28_DPA_SHIFT (6U)
6177#define DMA_DCHPRI28_DPA_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI28_DPA_SHIFT)) & DMA_DCHPRI28_DPA_MASK)
6178#define DMA_DCHPRI28_DPA DMA_DCHPRI28_DPA_MASK
6179#define DMA_DCHPRI28_ECP_MASK (0x80U)
6180#define DMA_DCHPRI28_ECP_SHIFT (7U)
6181#define DMA_DCHPRI28_ECP_SET(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI28_ECP_SHIFT)) & DMA_DCHPRI28_ECP_MASK)
6182#define DMA_DCHPRI28_ECP DMA_DCHPRI28_ECP_MASK
6183
6184/*! @name SADDR - TCD Source Address */
6185#define DMA_SADDR_SADDR_MASK (0xFFFFFFFFU)
6186#define DMA_SADDR_SADDR_SHIFT (0U)
6187#define DMA_SADDR_SADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_SADDR_SADDR_SHIFT)) & DMA_SADDR_SADDR_MASK)
6188#define DMA_SADDR_SADDR DMA_SADDR_SADDR_MASK
6189
6190/* The count of DMA_SADDR */
6191#define DMA_SADDR_COUNT (32U)
6192
6193/*! @name SOFF - TCD Signed Source Address Offset */
6194#define DMA_SOFF_SOFF_MASK (0xFFFFU)
6195#define DMA_SOFF_SOFF_SHIFT (0U)
6196#define DMA_SOFF_SOFF_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_SOFF_SOFF_SHIFT)) & DMA_SOFF_SOFF_MASK)
6197#define DMA_SOFF_SOFF DMA_SOFF_SOFF_MASK
6198
6199/* The count of DMA_SOFF */
6200#define DMA_SOFF_COUNT (32U)
6201
6202/*! @name ATTR - TCD Transfer Attributes */
6203#define DMA_ATTR_DSIZE_MASK (0x7U)
6204#define DMA_ATTR_DSIZE_SHIFT (0U)
6205#define DMA_ATTR_DSIZE(x) (((uint16_t)(((uint16_t)(x)) << DMA_ATTR_DSIZE_SHIFT)) & DMA_ATTR_DSIZE_MASK)
6206#define DMA_ATTR_DMOD_MASK (0xF8U)
6207#define DMA_ATTR_DMOD_SHIFT (3U)
6208#define DMA_ATTR_DMOD(x) (((uint16_t)(((uint16_t)(x)) << DMA_ATTR_DMOD_SHIFT)) & DMA_ATTR_DMOD_MASK)
6209#define DMA_ATTR_SSIZE_MASK (0x700U)
6210#define DMA_ATTR_SSIZE_SHIFT (8U)
6211#define DMA_ATTR_SSIZE(x) (((uint16_t)(((uint16_t)(x)) << DMA_ATTR_SSIZE_SHIFT)) & DMA_ATTR_SSIZE_MASK)
6212#define DMA_ATTR_SMOD_MASK (0xF800U)
6213#define DMA_ATTR_SMOD_SHIFT (11U)
6214#define DMA_ATTR_SMOD(x) (((uint16_t)(((uint16_t)(x)) << DMA_ATTR_SMOD_SHIFT)) & DMA_ATTR_SMOD_MASK)
6215
6216/* The count of DMA_ATTR */
6217#define DMA_ATTR_COUNT (32U)
6218
6219/*! @name NBYTES_MLNO - TCD Minor Byte Count (Minor Loop Mapping Disabled) */
6220#define DMA_NBYTES_MLNO_NBYTES_MASK (0xFFFFFFFFU)
6221#define DMA_NBYTES_MLNO_NBYTES_SHIFT (0U)
6222#define DMA_NBYTES_MLNO_NBYTES_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLNO_NBYTES_SHIFT)) & DMA_NBYTES_MLNO_NBYTES_MASK)
6223#define DMA_NBYTES_MLNO_NBYTES DMA_NBYTES_MLNO_NBYTES_MASK
6224
6225/* The count of DMA_NBYTES_MLNO */
6226#define DMA_NBYTES_MLNO_COUNT (32U)
6227
6228/*! @name NBYTES_MLOFFNO - TCD Signed Minor Loop Offset (Minor Loop Mapping Enabled and Offset Disabled) */
6229#define DMA_NBYTES_MLOFFNO_NBYTES_MASK (0x3FFFFFFFU)
6230#define DMA_NBYTES_MLOFFNO_NBYTES_SHIFT (0U)
6231#define DMA_NBYTES_MLOFFNO_NBYTES_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFNO_NBYTES_SHIFT)) & DMA_NBYTES_MLOFFNO_NBYTES_MASK)
6232#define DMA_NBYTES_MLOFFNO_NBYTES DMA_NBYTES_MLOFFNO_NBYTES_MASK
6233#define DMA_NBYTES_MLOFFNO_DMLOE_MASK (0x40000000U)
6234#define DMA_NBYTES_MLOFFNO_DMLOE_SHIFT (30U)
6235#define DMA_NBYTES_MLOFFNO_DMLOE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFNO_DMLOE_SHIFT)) & DMA_NBYTES_MLOFFNO_DMLOE_MASK)
6236#define DMA_NBYTES_MLOFFNO_DMLOE DMA_NBYTES_MLOFFNO_DMLOE_MASK
6237#define DMA_NBYTES_MLOFFNO_SMLOE_MASK (0x80000000U)
6238#define DMA_NBYTES_MLOFFNO_SMLOE_SHIFT (31U)
6239#define DMA_NBYTES_MLOFFNO_SMLOE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFNO_SMLOE_SHIFT)) & DMA_NBYTES_MLOFFNO_SMLOE_MASK)
6240#define DMA_NBYTES_MLOFFNO_SMLOE DMA_NBYTES_MLOFFNO_SMLOE_MASK
6241
6242/* The count of DMA_NBYTES_MLOFFNO */
6243#define DMA_NBYTES_MLOFFNO_COUNT (32U)
6244
6245/*! @name NBYTES_MLOFFYES - TCD Signed Minor Loop Offset (Minor Loop Mapping and Offset Enabled) */
6246#define DMA_NBYTES_MLOFFYES_NBYTES_MASK (0x3FFU)
6247#define DMA_NBYTES_MLOFFYES_NBYTES_SHIFT (0U)
6248#define DMA_NBYTES_MLOFFYES_NBYTES_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFYES_NBYTES_SHIFT)) & DMA_NBYTES_MLOFFYES_NBYTES_MASK)
6249#define DMA_NBYTES_MLOFFYES_NBYTES DMA_NBYTES_MLOFFYES_NBYTES_MASK
6250#define DMA_NBYTES_MLOFFYES_MLOFF_MASK (0x3FFFFC00U)
6251#define DMA_NBYTES_MLOFFYES_MLOFF_SHIFT (10U)
6252#define DMA_NBYTES_MLOFFYES_MLOFF_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFYES_MLOFF_SHIFT)) & DMA_NBYTES_MLOFFYES_MLOFF_MASK)
6253#define DMA_NBYTES_MLOFFYES_MLOFF DMA_NBYTES_MLOFFYES_MLOFF_MASK
6254#define DMA_NBYTES_MLOFFYES_DMLOE_MASK (0x40000000U)
6255#define DMA_NBYTES_MLOFFYES_DMLOE_SHIFT (30U)
6256#define DMA_NBYTES_MLOFFYES_DMLOE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFYES_DMLOE_SHIFT)) & DMA_NBYTES_MLOFFYES_DMLOE_MASK)
6257#define DMA_NBYTES_MLOFFYES_DMLOE DMA_NBYTES_MLOFFYES_DMLOE_MASK
6258#define DMA_NBYTES_MLOFFYES_SMLOE_MASK (0x80000000U)
6259#define DMA_NBYTES_MLOFFYES_SMLOE_SHIFT (31U)
6260#define DMA_NBYTES_MLOFFYES_SMLOE_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFYES_SMLOE_SHIFT)) & DMA_NBYTES_MLOFFYES_SMLOE_MASK)
6261#define DMA_NBYTES_MLOFFYES_SMLOE DMA_NBYTES_MLOFFYES_SMLOE_MASK
6262
6263/* The count of DMA_NBYTES_MLOFFYES */
6264#define DMA_NBYTES_MLOFFYES_COUNT (32U)
6265
6266/*! @name SLAST - TCD Last Source Address Adjustment */
6267#define DMA_SLAST_SLAST_MASK (0xFFFFFFFFU)
6268#define DMA_SLAST_SLAST_SHIFT (0U)
6269#define DMA_SLAST_SLAST_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_SLAST_SLAST_SHIFT)) & DMA_SLAST_SLAST_MASK)
6270#define DMA_SLAST_SLAST DMA_SLAST_SLAST_MASK
6271
6272/* The count of DMA_SLAST */
6273#define DMA_SLAST_COUNT (32U)
6274
6275/*! @name DADDR - TCD Destination Address */
6276#define DMA_DADDR_DADDR_MASK (0xFFFFFFFFU)
6277#define DMA_DADDR_DADDR_SHIFT (0U)
6278#define DMA_DADDR_DADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_DADDR_DADDR_SHIFT)) & DMA_DADDR_DADDR_MASK)
6279#define DMA_DADDR_DADDR DMA_DADDR_DADDR_MASK
6280
6281/* The count of DMA_DADDR */
6282#define DMA_DADDR_COUNT (32U)
6283
6284/*! @name DOFF - TCD Signed Destination Address Offset */
6285#define DMA_DOFF_DOFF_MASK (0xFFFFU)
6286#define DMA_DOFF_DOFF_SHIFT (0U)
6287#define DMA_DOFF_DOFF_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_DOFF_DOFF_SHIFT)) & DMA_DOFF_DOFF_MASK)
6288#define DMA_DOFF_DOFF DMA_DOFF_DOFF_MASK
6289
6290/* The count of DMA_DOFF */
6291#define DMA_DOFF_COUNT (32U)
6292
6293/*! @name CITER_ELINKNO - TCD Current Minor Loop Link, Major Loop Count (Channel Linking Disabled) */
6294#define DMA_CITER_ELINKNO_CITER_MASK (0x7FFFU)
6295#define DMA_CITER_ELINKNO_CITER_SHIFT (0U)
6296#define DMA_CITER_ELINKNO_CITER_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CITER_ELINKNO_CITER_SHIFT)) & DMA_CITER_ELINKNO_CITER_MASK)
6297#define DMA_CITER_ELINKNO_CITER DMA_CITER_ELINKNO_CITER_MASK
6298#define DMA_CITER_ELINKNO_ELINK_MASK (0x8000U)
6299#define DMA_CITER_ELINKNO_ELINK_SHIFT (15U)
6300#define DMA_CITER_ELINKNO_ELINK_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CITER_ELINKNO_ELINK_SHIFT)) & DMA_CITER_ELINKNO_ELINK_MASK)
6301#define DMA_CITER_ELINKNO_ELINK DMA_CITER_ELINKNO_ELINK_MASK
6302
6303/* The count of DMA_CITER_ELINKNO */
6304#define DMA_CITER_ELINKNO_COUNT (32U)
6305
6306/*! @name CITER_ELINKYES - TCD Current Minor Loop Link, Major Loop Count (Channel Linking Enabled) */
6307#define DMA_CITER_ELINKYES_CITER_MASK (0x1FFU)
6308#define DMA_CITER_ELINKYES_CITER_SHIFT (0U)
6309#define DMA_CITER_ELINKYES_CITER_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CITER_ELINKYES_CITER_SHIFT)) & DMA_CITER_ELINKYES_CITER_MASK)
6310#define DMA_CITER_ELINKYES_CITER DMA_CITER_ELINKYES_CITER_MASK
6311#define DMA_CITER_ELINKYES_LINKCH_MASK (0x3E00U)
6312#define DMA_CITER_ELINKYES_LINKCH_SHIFT (9U)
6313#define DMA_CITER_ELINKYES_LINKCH_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CITER_ELINKYES_LINKCH_SHIFT)) & DMA_CITER_ELINKYES_LINKCH_MASK)
6314#define DMA_CITER_ELINKYES_LINKCH DMA_CITER_ELINKYES_LINKCH_MASK
6315#define DMA_CITER_ELINKYES_ELINK_MASK (0x8000U)
6316#define DMA_CITER_ELINKYES_ELINK_SHIFT (15U)
6317#define DMA_CITER_ELINKYES_ELINK_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CITER_ELINKYES_ELINK_SHIFT)) & DMA_CITER_ELINKYES_ELINK_MASK)
6318#define DMA_CITER_ELINKYES_ELINK DMA_CITER_ELINKYES_ELINK_MASK
6319
6320/* The count of DMA_CITER_ELINKYES */
6321#define DMA_CITER_ELINKYES_COUNT (32U)
6322
6323/*! @name DLAST_SGA - TCD Last Destination Address Adjustment/Scatter Gather Address */
6324#define DMA_DLAST_SGA_DLASTSGA_MASK (0xFFFFFFFFU)
6325#define DMA_DLAST_SGA_DLASTSGA_SHIFT (0U)
6326#define DMA_DLAST_SGA_DLASTSGA_SET(x) (((uint32_t)(((uint32_t)(x)) << DMA_DLAST_SGA_DLASTSGA_SHIFT)) & DMA_DLAST_SGA_DLASTSGA_MASK)
6327#define DMA_DLAST_SGA_DLASTSGA DMA_DLAST_SGA_DLASTSGA_MASK
6328
6329/* The count of DMA_DLAST_SGA */
6330#define DMA_DLAST_SGA_COUNT (32U)
6331
6332/*! @name CSR - TCD Control and Status */
6333#define DMA_CSR_START_MASK (0x1U)
6334#define DMA_CSR_START_SHIFT (0U)
6335#define DMA_CSR_START_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_START_SHIFT)) & DMA_CSR_START_MASK)
6336#define DMA_CSR_START DMA_CSR_START_MASK
6337#define DMA_CSR_INTMAJOR_MASK (0x2U)
6338#define DMA_CSR_INTMAJOR_SHIFT (1U)
6339#define DMA_CSR_INTMAJOR_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_INTMAJOR_SHIFT)) & DMA_CSR_INTMAJOR_MASK)
6340#define DMA_CSR_INTMAJOR DMA_CSR_INTMAJOR_MASK
6341#define DMA_CSR_INTHALF_MASK (0x4U)
6342#define DMA_CSR_INTHALF_SHIFT (2U)
6343#define DMA_CSR_INTHALF_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_INTHALF_SHIFT)) & DMA_CSR_INTHALF_MASK)
6344#define DMA_CSR_INTHALF DMA_CSR_INTHALF_MASK
6345#define DMA_CSR_DREQ_MASK (0x8U)
6346#define DMA_CSR_DREQ_SHIFT (3U)
6347#define DMA_CSR_DREQ_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_DREQ_SHIFT)) & DMA_CSR_DREQ_MASK)
6348#define DMA_CSR_DREQ DMA_CSR_DREQ_MASK
6349#define DMA_CSR_ESG_MASK (0x10U)
6350#define DMA_CSR_ESG_SHIFT (4U)
6351#define DMA_CSR_ESG_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_ESG_SHIFT)) & DMA_CSR_ESG_MASK)
6352#define DMA_CSR_ESG DMA_CSR_ESG_MASK
6353#define DMA_CSR_MAJORELINK_MASK (0x20U)
6354#define DMA_CSR_MAJORELINK_SHIFT (5U)
6355#define DMA_CSR_MAJORELINK_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_MAJORELINK_SHIFT)) & DMA_CSR_MAJORELINK_MASK)
6356#define DMA_CSR_MAJORELINK DMA_CSR_MAJORELINK_MASK
6357#define DMA_CSR_ACTIVE_MASK (0x40U)
6358#define DMA_CSR_ACTIVE_SHIFT (6U)
6359#define DMA_CSR_ACTIVE_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_ACTIVE_SHIFT)) & DMA_CSR_ACTIVE_MASK)
6360#define DMA_CSR_ACTIVE DMA_CSR_ACTIVE_MASK
6361#define DMA_CSR_DONE_MASK (0x80U)
6362#define DMA_CSR_DONE_SHIFT (7U)
6363#define DMA_CSR_DONE_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_DONE_SHIFT)) & DMA_CSR_DONE_MASK)
6364#define DMA_CSR_DONE DMA_CSR_DONE_MASK
6365#define DMA_CSR_MAJORLINKCH_MASK (0x1F00U)
6366#define DMA_CSR_MAJORLINKCH_SHIFT (8U)
6367#define DMA_CSR_MAJORLINKCH_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_MAJORLINKCH_SHIFT)) & DMA_CSR_MAJORLINKCH_MASK)
6368#define DMA_CSR_MAJORLINKCH DMA_CSR_MAJORLINKCH_MASK
6369#define DMA_CSR_BWC_MASK (0xC000U)
6370#define DMA_CSR_BWC_SHIFT (14U)
6371#define DMA_CSR_BWC_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_BWC_SHIFT)) & DMA_CSR_BWC_MASK)
6372#define DMA_CSR_BWC DMA_CSR_BWC_MASK
6373
6374/* The count of DMA_CSR */
6375#define DMA_CSR_COUNT (32U)
6376
6377/*! @name BITER_ELINKNO - TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Disabled) */
6378#define DMA_BITER_ELINKNO_BITER_MASK (0x7FFFU)
6379#define DMA_BITER_ELINKNO_BITER_SHIFT (0U)
6380#define DMA_BITER_ELINKNO_BITER_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_BITER_ELINKNO_BITER_SHIFT)) & DMA_BITER_ELINKNO_BITER_MASK)
6381#define DMA_BITER_ELINKNO_BITER DMA_BITER_ELINKNO_BITER_MASK
6382#define DMA_BITER_ELINKNO_ELINK_MASK (0x8000U)
6383#define DMA_BITER_ELINKNO_ELINK_SHIFT (15U)
6384#define DMA_BITER_ELINKNO_ELINK_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_BITER_ELINKNO_ELINK_SHIFT)) & DMA_BITER_ELINKNO_ELINK_MASK)
6385#define DMA_BITER_ELINKNO_ELINK DMA_BITER_ELINKNO_ELINK_MASK
6386
6387/* The count of DMA_BITER_ELINKNO */
6388#define DMA_BITER_ELINKNO_COUNT (32U)
6389
6390/*! @name BITER_ELINKYES - TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Enabled) */
6391#define DMA_BITER_ELINKYES_BITER_MASK (0x1FFU)
6392#define DMA_BITER_ELINKYES_BITER_SHIFT (0U)
6393#define DMA_BITER_ELINKYES_BITER_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_BITER_ELINKYES_BITER_SHIFT)) & DMA_BITER_ELINKYES_BITER_MASK)
6394#define DMA_BITER_ELINKYES_BITER DMA_BITER_ELINKYES_BITER_MASK
6395#define DMA_BITER_ELINKYES_LINKCH_MASK (0x3E00U)
6396#define DMA_BITER_ELINKYES_LINKCH_SHIFT (9U)
6397#define DMA_BITER_ELINKYES_LINKCH_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_BITER_ELINKYES_LINKCH_SHIFT)) & DMA_BITER_ELINKYES_LINKCH_MASK)
6398#define DMA_BITER_ELINKYES_LINKCH DMA_BITER_ELINKYES_LINKCH_MASK
6399#define DMA_BITER_ELINKYES_ELINK_MASK (0x8000U)
6400#define DMA_BITER_ELINKYES_ELINK_SHIFT (15U)
6401#define DMA_BITER_ELINKYES_ELINK_SET(x) (((uint16_t)(((uint16_t)(x)) << DMA_BITER_ELINKYES_ELINK_SHIFT)) & DMA_BITER_ELINKYES_ELINK_MASK)
6402#define DMA_BITER_ELINKYES_ELINK DMA_BITER_ELINKYES_ELINK_MASK
6403
6404/* The count of DMA_BITER_ELINKYES */
6405#define DMA_BITER_ELINKYES_COUNT (32U)
6406
6407
6408/*!
6409 * @}
6410 */ /* end of group DMA_Register_Masks */
6411
6412
6413/* DMA - Peripheral instance base addresses */
6414/** Peripheral DMA base address */
6415#define DMA_BASE (0x40008000u)
6416/** Peripheral DMA base pointer */
6417#define DMA0 ((DMA_TypeDef *)DMA_BASE)
6418#define DMA DMA0
6419/** Array initializer of DMA peripheral base addresses */
6420#define DMA_BASE_ADDRS { DMA_BASE }
6421/** Array initializer of DMA peripheral base pointers */
6422#define DMA_BASE_PTRS { DMA0 }
6423/** Interrupt vectors for the DMA peripheral type */
6424#define DMA_CHN_IRQS { { DMA0_DMA16_IRQn, DMA1_DMA17_IRQn, DMA2_DMA18_IRQn, DMA3_DMA19_IRQn, DMA4_DMA20_IRQn, DMA5_DMA21_IRQn, DMA6_DMA22_IRQn, DMA7_DMA23_IRQn, DMA8_DMA24_IRQn, DMA9_DMA25_IRQn, DMA10_DMA26_IRQn, DMA11_DMA27_IRQn, DMA12_DMA28_IRQn, DMA13_DMA29_IRQn, DMA14_DMA30_IRQn, DMA15_DMA31_IRQn, DMA0_DMA16_IRQn, DMA1_DMA17_IRQn, DMA2_DMA18_IRQn, DMA3_DMA19_IRQn, DMA4_DMA20_IRQn, DMA5_DMA21_IRQn, DMA6_DMA22_IRQn, DMA7_DMA23_IRQn, DMA8_DMA24_IRQn, DMA9_DMA25_IRQn, DMA10_DMA26_IRQn, DMA11_DMA27_IRQn, DMA12_DMA28_IRQn, DMA13_DMA29_IRQn, DMA14_DMA30_IRQn, DMA15_DMA31_IRQn } }
6425#define DMA_ERROR_IRQS { DMA_Error_IRQn }
6426
6427/*!
6428 * @}
6429 */ /* end of group DMA_Peripheral_Access_Layer */
6430
6431
6432/* ----------------------------------------------------------------------------
6433 -- DMAMUX Peripheral Access Layer
6434 ---------------------------------------------------------------------------- */
6435
6436/*!
6437 * @addtogroup DMAMUX_Peripheral_Access_Layer DMAMUX Peripheral Access Layer
6438 * @{
6439 */
6440
6441/** DMAMUX - Register Layout Typedef */
6442typedef struct {
6443 __IO uint8_t CHCFG[32]; /**< Channel Configuration register, array offset: 0x0, array step: 0x1 */
6444} DMAMUX_TypeDef;
6445
6446/* ----------------------------------------------------------------------------
6447 -- DMAMUX Register Masks
6448 ---------------------------------------------------------------------------- */
6449
6450/*!
6451 * @addtogroup DMAMUX_Register_Masks DMAMUX Register Masks
6452 * @{
6453 */
6454
6455/*! @name CHCFG - Channel Configuration register */
6456#define DMAMUX_CHCFGn_SOURCE_MASK (0x3FU)
6457#define DMAMUX_CHCFGn_SOURCE_SHIFT (0U)
6458#define DMAMUX_CHCFGn_SOURCE(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFGn_SOURCE_SHIFT)) & DMAMUX_CHCFGn_SOURCE_MASK)
6459#define DMAMUX_CHCFGn_TRIG_MASK (0x40U)
6460#define DMAMUX_CHCFGn_TRIG_SHIFT (6U)
6461#define DMAMUX_CHCFGn_TRIG(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFGn_TRIG_SHIFT)) & DMAMUX_CHCFGn_TRIG_MASK)
6462#define DMAMUX_CHCFGn_ENBL_MASK (0x80U)
6463#define DMAMUX_CHCFGn_ENBL_SHIFT (7U)
6464#define DMAMUX_CHCFGn_ENBL_SET(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFGn_ENBL_SHIFT)) & DMAMUX_CHCFGn_ENBL_MASK)
6465#define DMAMUX_CHCFGn_ENBL DMAMUX_CHCFGn_ENBL_MASK
6466
6467/* The count of DMAMUX_CHCFG */
6468#define DMAMUX_CHCFGn_COUNT (32U)
6469
6470
6471/*!
6472 * @}
6473 */ /* end of group DMAMUX_Register_Masks */
6474
6475
6476/* DMAMUX - Peripheral instance base addresses */
6477/** Peripheral DMAMUX base address */
6478#define DMAMUX_BASE (0x40021000u)
6479/** Peripheral DMAMUX base pointer */
6480#define DMAMUX ((DMAMUX_TypeDef *)DMAMUX_BASE)
6481/** Array initializer of DMAMUX peripheral base addresses */
6482#define DMAMUX_BASE_ADDRS { DMAMUX_BASE }
6483/** Array initializer of DMAMUX peripheral base pointers */
6484#define DMAMUX_BASE_PTRS { DMAMUX }
6485
6486/*!
6487 * @}
6488 */ /* end of group DMAMUX_Peripheral_Access_Layer */
6489
6490
6491/* ----------------------------------------------------------------------------
6492 -- ENET Peripheral Access Layer
6493 ---------------------------------------------------------------------------- */
6494
6495/*!
6496 * @addtogroup ENET_Peripheral_Access_Layer ENET Peripheral Access Layer
6497 * @{
6498 */
6499
6500/** ENET - Register Layout Typedef */
6501typedef struct {
6502 uint8_t RESERVED_0[4];
6503 __IO uint32_t EIR; /**< Interrupt Event Register, offset: 0x4 */
6504 __IO uint32_t EIMR; /**< Interrupt Mask Register, offset: 0x8 */
6505 uint8_t RESERVED_1[4];
6506 __IO uint32_t RDAR; /**< Receive Descriptor Active Register, offset: 0x10 */
6507 __IO uint32_t TDAR; /**< Transmit Descriptor Active Register, offset: 0x14 */
6508 uint8_t RESERVED_2[12];
6509 __IO uint32_t ECR; /**< Ethernet Control Register, offset: 0x24 */
6510 uint8_t RESERVED_3[24];
6511 __IO uint32_t MMFR; /**< MII Management Frame Register, offset: 0x40 */
6512 __IO uint32_t MSCR; /**< MII Speed Control Register, offset: 0x44 */
6513 uint8_t RESERVED_4[28];
6514 __IO uint32_t MIBC; /**< MIB Control Register, offset: 0x64 */
6515 uint8_t RESERVED_5[28];
6516 __IO uint32_t RCR; /**< Receive Control Register, offset: 0x84 */
6517 uint8_t RESERVED_6[60];
6518 __IO uint32_t TCR; /**< Transmit Control Register, offset: 0xC4 */
6519 uint8_t RESERVED_7[28];
6520 __IO uint32_t PALR; /**< Physical Address Lower Register, offset: 0xE4 */
6521 __IO uint32_t PAUR; /**< Physical Address Upper Register, offset: 0xE8 */
6522 __IO uint32_t OPD; /**< Opcode/Pause Duration Register, offset: 0xEC */
6523 uint8_t RESERVED_8[40];
6524 __IO uint32_t IAUR; /**< Descriptor Individual Upper Address Register, offset: 0x118 */
6525 __IO uint32_t IALR; /**< Descriptor Individual Lower Address Register, offset: 0x11C */
6526 __IO uint32_t GAUR; /**< Descriptor Group Upper Address Register, offset: 0x120 */
6527 __IO uint32_t GALR; /**< Descriptor Group Lower Address Register, offset: 0x124 */
6528 uint8_t RESERVED_9[28];
6529 __IO uint32_t TFWR; /**< Transmit FIFO Watermark Register, offset: 0x144 */
6530 uint8_t RESERVED_10[56];
6531 __IO uint32_t RDSR; /**< Receive Descriptor Ring Start Register, offset: 0x180 */
6532 __IO uint32_t TDSR; /**< Transmit Buffer Descriptor Ring Start Register, offset: 0x184 */
6533 __IO uint32_t MRBR; /**< Maximum Receive Buffer Size Register, offset: 0x188 */
6534 uint8_t RESERVED_11[4];
6535 __IO uint32_t RSFL; /**< Receive FIFO Section Full Threshold, offset: 0x190 */
6536 __IO uint32_t RSEM; /**< Receive FIFO Section Empty Threshold, offset: 0x194 */
6537 __IO uint32_t RAEM; /**< Receive FIFO Almost Empty Threshold, offset: 0x198 */
6538 __IO uint32_t RAFL; /**< Receive FIFO Almost Full Threshold, offset: 0x19C */
6539 __IO uint32_t TSEM; /**< Transmit FIFO Section Empty Threshold, offset: 0x1A0 */
6540 __IO uint32_t TAEM; /**< Transmit FIFO Almost Empty Threshold, offset: 0x1A4 */
6541 __IO uint32_t TAFL; /**< Transmit FIFO Almost Full Threshold, offset: 0x1A8 */
6542 __IO uint32_t TIPG; /**< Transmit Inter-Packet Gap, offset: 0x1AC */
6543 __IO uint32_t FTRL; /**< Frame Truncation Length, offset: 0x1B0 */
6544 uint8_t RESERVED_12[12];
6545 __IO uint32_t TACC; /**< Transmit Accelerator Function Configuration, offset: 0x1C0 */
6546 __IO uint32_t RACC; /**< Receive Accelerator Function Configuration, offset: 0x1C4 */
6547 uint8_t RESERVED_13[56];
6548 uint32_t RMON_T_DROP; /**< Reserved Statistic Register, offset: 0x200 */
6549 __I uint32_t RMON_T_PACKETS; /**< Tx Packet Count Statistic Register, offset: 0x204 */
6550 __I uint32_t RMON_T_BC_PKT; /**< Tx Broadcast Packets Statistic Register, offset: 0x208 */
6551 __I uint32_t RMON_T_MC_PKT; /**< Tx Multicast Packets Statistic Register, offset: 0x20C */
6552 __I uint32_t RMON_T_CRC_ALIGN; /**< Tx Packets with CRC/Align Error Statistic Register, offset: 0x210 */
6553 __I uint32_t RMON_T_UNDERSIZE; /**< Tx Packets Less Than Bytes and Good CRC Statistic Register, offset: 0x214 */
6554 __I uint32_t RMON_T_OVERSIZE; /**< Tx Packets GT MAX_FL bytes and Good CRC Statistic Register, offset: 0x218 */
6555 __I uint32_t RMON_T_FRAG; /**< Tx Packets Less Than 64 Bytes and Bad CRC Statistic Register, offset: 0x21C */
6556 __I uint32_t RMON_T_JAB; /**< Tx Packets Greater Than MAX_FL bytes and Bad CRC Statistic Register, offset: 0x220 */
6557 __I uint32_t RMON_T_COL; /**< Tx Collision Count Statistic Register, offset: 0x224 */
6558 __I uint32_t RMON_T_P64; /**< Tx 64-Byte Packets Statistic Register, offset: 0x228 */
6559 __I uint32_t RMON_T_P65TO127; /**< Tx 65- to 127-byte Packets Statistic Register, offset: 0x22C */
6560 __I uint32_t RMON_T_P128TO255; /**< Tx 128- to 255-byte Packets Statistic Register, offset: 0x230 */
6561 __I uint32_t RMON_T_P256TO511; /**< Tx 256- to 511-byte Packets Statistic Register, offset: 0x234 */
6562 __I uint32_t RMON_T_P512TO1023; /**< Tx 512- to 1023-byte Packets Statistic Register, offset: 0x238 */
6563 __I uint32_t RMON_T_P1024TO2047; /**< Tx 1024- to 2047-byte Packets Statistic Register, offset: 0x23C */
6564 __I uint32_t RMON_T_P_GTE2048; /**< Tx Packets Greater Than 2048 Bytes Statistic Register, offset: 0x240 */
6565 __I uint32_t RMON_T_OCTETS; /**< Tx Octets Statistic Register, offset: 0x244 */
6566 uint32_t IEEE_T_DROP; /**< IEEE_T_DROP Reserved Statistic Register, offset: 0x248 */
6567 __I uint32_t IEEE_T_FRAME_OK; /**< Frames Transmitted OK Statistic Register, offset: 0x24C */
6568 __I uint32_t IEEE_T_1COL; /**< Frames Transmitted with Single Collision Statistic Register, offset: 0x250 */
6569 __I uint32_t IEEE_T_MCOL; /**< Frames Transmitted with Multiple Collisions Statistic Register, offset: 0x254 */
6570 __I uint32_t IEEE_T_DEF; /**< Frames Transmitted after Deferral Delay Statistic Register, offset: 0x258 */
6571 __I uint32_t IEEE_T_LCOL; /**< Frames Transmitted with Late Collision Statistic Register, offset: 0x25C */
6572 __I uint32_t IEEE_T_EXCOL; /**< Frames Transmitted with Excessive Collisions Statistic Register, offset: 0x260 */
6573 __I uint32_t IEEE_T_MACERR; /**< Frames Transmitted with Tx FIFO Underrun Statistic Register, offset: 0x264 */
6574 __I uint32_t IEEE_T_CSERR; /**< Frames Transmitted with Carrier Sense Error Statistic Register, offset: 0x268 */
6575 __I uint32_t IEEE_T_SQE; /**< , offset: 0x26C */
6576 __I uint32_t IEEE_T_FDXFC; /**< Flow Control Pause Frames Transmitted Statistic Register, offset: 0x270 */
6577 __I uint32_t IEEE_T_OCTETS_OK; /**< Octet Count for Frames Transmitted w/o Error Statistic Register, offset: 0x274 */
6578 uint8_t RESERVED_14[12];
6579 __I uint32_t RMON_R_PACKETS; /**< Rx Packet Count Statistic Register, offset: 0x284 */
6580 __I uint32_t RMON_R_BC_PKT; /**< Rx Broadcast Packets Statistic Register, offset: 0x288 */
6581 __I uint32_t RMON_R_MC_PKT; /**< Rx Multicast Packets Statistic Register, offset: 0x28C */
6582 __I uint32_t RMON_R_CRC_ALIGN; /**< Rx Packets with CRC/Align Error Statistic Register, offset: 0x290 */
6583 __I uint32_t RMON_R_UNDERSIZE; /**< Rx Packets with Less Than 64 Bytes and Good CRC Statistic Register, offset: 0x294 */
6584 __I uint32_t RMON_R_OVERSIZE; /**< Rx Packets Greater Than MAX_FL and Good CRC Statistic Register, offset: 0x298 */
6585 __I uint32_t RMON_R_FRAG; /**< Rx Packets Less Than 64 Bytes and Bad CRC Statistic Register, offset: 0x29C */
6586 __I uint32_t RMON_R_JAB; /**< Rx Packets Greater Than MAX_FL Bytes and Bad CRC Statistic Register, offset: 0x2A0 */
6587 uint32_t RMON_R_RESVD_0; /**< Reserved Statistic Register, offset: 0x2A4 */
6588 __I uint32_t RMON_R_P64; /**< Rx 64-Byte Packets Statistic Register, offset: 0x2A8 */
6589 __I uint32_t RMON_R_P65TO127; /**< Rx 65- to 127-Byte Packets Statistic Register, offset: 0x2AC */
6590 __I uint32_t RMON_R_P128TO255; /**< Rx 128- to 255-Byte Packets Statistic Register, offset: 0x2B0 */
6591 __I uint32_t RMON_R_P256TO511; /**< Rx 256- to 511-Byte Packets Statistic Register, offset: 0x2B4 */
6592 __I uint32_t RMON_R_P512TO1023; /**< Rx 512- to 1023-Byte Packets Statistic Register, offset: 0x2B8 */
6593 __I uint32_t RMON_R_P1024TO2047; /**< Rx 1024- to 2047-Byte Packets Statistic Register, offset: 0x2BC */
6594 __I uint32_t RMON_R_P_GTE2048; /**< Rx Packets Greater than 2048 Bytes Statistic Register, offset: 0x2C0 */
6595 __I uint32_t RMON_R_OCTETS; /**< Rx Octets Statistic Register, offset: 0x2C4 */
6596 __I uint32_t IEEE_R_DROP; /**< Frames not Counted Correctly Statistic Register, offset: 0x2C8 */
6597 __I uint32_t IEEE_R_FRAME_OK; /**< Frames Received OK Statistic Register, offset: 0x2CC */
6598 __I uint32_t IEEE_R_CRC; /**< Frames Received with CRC Error Statistic Register, offset: 0x2D0 */
6599 __I uint32_t IEEE_R_ALIGN; /**< Frames Received with Alignment Error Statistic Register, offset: 0x2D4 */
6600 __I uint32_t IEEE_R_MACERR; /**< Receive FIFO Overflow Count Statistic Register, offset: 0x2D8 */
6601 __I uint32_t IEEE_R_FDXFC; /**< Flow Control Pause Frames Received Statistic Register, offset: 0x2DC */
6602 __I uint32_t IEEE_R_OCTETS_OK; /**< Octet Count for Frames Received without Error Statistic Register, offset: 0x2E0 */
6603 uint8_t RESERVED_15[284];
6604 __IO uint32_t ATCR; /**< Adjustable Timer Control Register, offset: 0x400 */
6605 __IO uint32_t ATVR; /**< Timer Value Register, offset: 0x404 */
6606 __IO uint32_t ATOFF; /**< Timer Offset Register, offset: 0x408 */
6607 __IO uint32_t ATPER; /**< Timer Period Register, offset: 0x40C */
6608 __IO uint32_t ATCOR; /**< Timer Correction Register, offset: 0x410 */
6609 __IO uint32_t ATINC; /**< Time-Stamping Clock Period Register, offset: 0x414 */
6610 __I uint32_t ATSTMP; /**< Timestamp of Last Transmitted Frame, offset: 0x418 */
6611 uint8_t RESERVED_16[488];
6612 __IO uint32_t TGSR; /**< Timer Global Status Register, offset: 0x604 */
6613 struct { /* offset: 0x608, array step: 0x8 */
6614 __IO uint32_t TCSR; /**< Timer Control Status Register, array offset: 0x608, array step: 0x8 */
6615 __IO uint32_t TCCR; /**< Timer Compare Capture Register, array offset: 0x60C, array step: 0x8 */
6616 } CHANNEL[4];
6617} ENET_TypeDef;
6618
6619/* ----------------------------------------------------------------------------
6620 -- ENET Register Masks
6621 ---------------------------------------------------------------------------- */
6622
6623/*!
6624 * @addtogroup ENET_Register_Masks ENET Register Masks
6625 * @{
6626 */
6627
6628/*! @name EIR - Interrupt Event Register */
6629#define ENET_EIR_TS_TIMER_MASK (0x8000U)
6630#define ENET_EIR_TS_TIMER_SHIFT (15U)
6631#define ENET_EIR_TS_TIMER_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_TS_TIMER_SHIFT)) & ENET_EIR_TS_TIMER_MASK)
6632#define ENET_EIR_TS_TIMER ENET_EIR_TS_TIMER_MASK
6633#define ENET_EIR_TS_AVAIL_MASK (0x10000U)
6634#define ENET_EIR_TS_AVAIL_SHIFT (16U)
6635#define ENET_EIR_TS_AVAIL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_TS_AVAIL_SHIFT)) & ENET_EIR_TS_AVAIL_MASK)
6636#define ENET_EIR_TS_AVAIL ENET_EIR_TS_AVAIL_MASK
6637#define ENET_EIR_WAKEUP_MASK (0x20000U)
6638#define ENET_EIR_WAKEUP_SHIFT (17U)
6639#define ENET_EIR_WAKEUP_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_WAKEUP_SHIFT)) & ENET_EIR_WAKEUP_MASK)
6640#define ENET_EIR_WAKEUP ENET_EIR_WAKEUP_MASK
6641#define ENET_EIR_PLR_MASK (0x40000U)
6642#define ENET_EIR_PLR_SHIFT (18U)
6643#define ENET_EIR_PLR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_PLR_SHIFT)) & ENET_EIR_PLR_MASK)
6644#define ENET_EIR_PLR ENET_EIR_PLR_MASK
6645#define ENET_EIR_UN_MASK (0x80000U)
6646#define ENET_EIR_UN_SHIFT (19U)
6647#define ENET_EIR_UN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_UN_SHIFT)) & ENET_EIR_UN_MASK)
6648#define ENET_EIR_UN ENET_EIR_UN_MASK
6649#define ENET_EIR_RL_MASK (0x100000U)
6650#define ENET_EIR_RL_SHIFT (20U)
6651#define ENET_EIR_RL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_RL_SHIFT)) & ENET_EIR_RL_MASK)
6652#define ENET_EIR_RL ENET_EIR_RL_MASK
6653#define ENET_EIR_LC_MASK (0x200000U)
6654#define ENET_EIR_LC_SHIFT (21U)
6655#define ENET_EIR_LC_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_LC_SHIFT)) & ENET_EIR_LC_MASK)
6656#define ENET_EIR_LC ENET_EIR_LC_MASK
6657#define ENET_EIR_EBERR_MASK (0x400000U)
6658#define ENET_EIR_EBERR_SHIFT (22U)
6659#define ENET_EIR_EBERR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_EBERR_SHIFT)) & ENET_EIR_EBERR_MASK)
6660#define ENET_EIR_EBERR ENET_EIR_EBERR_MASK
6661#define ENET_EIR_MII_MASK (0x800000U)
6662#define ENET_EIR_MII_SHIFT (23U)
6663#define ENET_EIR_MII_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_MII_SHIFT)) & ENET_EIR_MII_MASK)
6664#define ENET_EIR_MII ENET_EIR_MII_MASK
6665#define ENET_EIR_RXB_MASK (0x1000000U)
6666#define ENET_EIR_RXB_SHIFT (24U)
6667#define ENET_EIR_RXB_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_RXB_SHIFT)) & ENET_EIR_RXB_MASK)
6668#define ENET_EIR_RXB ENET_EIR_RXB_MASK
6669#define ENET_EIR_RXF_MASK (0x2000000U)
6670#define ENET_EIR_RXF_SHIFT (25U)
6671#define ENET_EIR_RXF_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_RXF_SHIFT)) & ENET_EIR_RXF_MASK)
6672#define ENET_EIR_RXF ENET_EIR_RXF_MASK
6673#define ENET_EIR_TXB_MASK (0x4000000U)
6674#define ENET_EIR_TXB_SHIFT (26U)
6675#define ENET_EIR_TXB_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_TXB_SHIFT)) & ENET_EIR_TXB_MASK)
6676#define ENET_EIR_TXB ENET_EIR_TXB_MASK
6677#define ENET_EIR_TXF_MASK (0x8000000U)
6678#define ENET_EIR_TXF_SHIFT (27U)
6679#define ENET_EIR_TXF_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_TXF_SHIFT)) & ENET_EIR_TXF_MASK)
6680#define ENET_EIR_TXF ENET_EIR_TXF_MASK
6681#define ENET_EIR_GRA_MASK (0x10000000U)
6682#define ENET_EIR_GRA_SHIFT (28U)
6683#define ENET_EIR_GRA_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_GRA_SHIFT)) & ENET_EIR_GRA_MASK)
6684#define ENET_EIR_GRA ENET_EIR_GRA_MASK
6685#define ENET_EIR_BABT_MASK (0x20000000U)
6686#define ENET_EIR_BABT_SHIFT (29U)
6687#define ENET_EIR_BABT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_BABT_SHIFT)) & ENET_EIR_BABT_MASK)
6688#define ENET_EIR_BABT ENET_EIR_BABT_MASK
6689#define ENET_EIR_BABR_MASK (0x40000000U)
6690#define ENET_EIR_BABR_SHIFT (30U)
6691#define ENET_EIR_BABR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIR_BABR_SHIFT)) & ENET_EIR_BABR_MASK)
6692#define ENET_EIR_BABR ENET_EIR_BABR_MASK
6693
6694/*! @name EIMR - Interrupt Mask Register */
6695#define ENET_EIMR_TS_TIMER_MASK (0x8000U)
6696#define ENET_EIMR_TS_TIMER_SHIFT (15U)
6697#define ENET_EIMR_TS_TIMER_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_TS_TIMER_SHIFT)) & ENET_EIMR_TS_TIMER_MASK)
6698#define ENET_EIMR_TS_TIMER ENET_EIMR_TS_TIMER_MASK
6699#define ENET_EIMR_TS_AVAIL_MASK (0x10000U)
6700#define ENET_EIMR_TS_AVAIL_SHIFT (16U)
6701#define ENET_EIMR_TS_AVAIL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_TS_AVAIL_SHIFT)) & ENET_EIMR_TS_AVAIL_MASK)
6702#define ENET_EIMR_TS_AVAIL ENET_EIMR_TS_AVAIL_MASK
6703#define ENET_EIMR_WAKEUP_MASK (0x20000U)
6704#define ENET_EIMR_WAKEUP_SHIFT (17U)
6705#define ENET_EIMR_WAKEUP_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_WAKEUP_SHIFT)) & ENET_EIMR_WAKEUP_MASK)
6706#define ENET_EIMR_WAKEUP ENET_EIMR_WAKEUP_MASK
6707#define ENET_EIMR_PLR_MASK (0x40000U)
6708#define ENET_EIMR_PLR_SHIFT (18U)
6709#define ENET_EIMR_PLR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_PLR_SHIFT)) & ENET_EIMR_PLR_MASK)
6710#define ENET_EIMR_PLR ENET_EIMR_PLR_MASK
6711#define ENET_EIMR_UN_MASK (0x80000U)
6712#define ENET_EIMR_UN_SHIFT (19U)
6713#define ENET_EIMR_UN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_UN_SHIFT)) & ENET_EIMR_UN_MASK)
6714#define ENET_EIMR_UN ENET_EIMR_UN_MASK
6715#define ENET_EIMR_RL_MASK (0x100000U)
6716#define ENET_EIMR_RL_SHIFT (20U)
6717#define ENET_EIMR_RL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_RL_SHIFT)) & ENET_EIMR_RL_MASK)
6718#define ENET_EIMR_RL ENET_EIMR_RL_MASK
6719#define ENET_EIMR_LC_MASK (0x200000U)
6720#define ENET_EIMR_LC_SHIFT (21U)
6721#define ENET_EIMR_LC_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_LC_SHIFT)) & ENET_EIMR_LC_MASK)
6722#define ENET_EIMR_LC ENET_EIMR_LC_MASK
6723#define ENET_EIMR_EBERR_MASK (0x400000U)
6724#define ENET_EIMR_EBERR_SHIFT (22U)
6725#define ENET_EIMR_EBERR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_EBERR_SHIFT)) & ENET_EIMR_EBERR_MASK)
6726#define ENET_EIMR_EBERR ENET_EIMR_EBERR_MASK
6727#define ENET_EIMR_MII_MASK (0x800000U)
6728#define ENET_EIMR_MII_SHIFT (23U)
6729#define ENET_EIMR_MII_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_MII_SHIFT)) & ENET_EIMR_MII_MASK)
6730#define ENET_EIMR_MII ENET_EIMR_MII_MASK
6731#define ENET_EIMR_RXB_MASK (0x1000000U)
6732#define ENET_EIMR_RXB_SHIFT (24U)
6733#define ENET_EIMR_RXB_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_RXB_SHIFT)) & ENET_EIMR_RXB_MASK)
6734#define ENET_EIMR_RXB ENET_EIMR_RXB_MASK
6735#define ENET_EIMR_RXF_MASK (0x2000000U)
6736#define ENET_EIMR_RXF_SHIFT (25U)
6737#define ENET_EIMR_RXF_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_RXF_SHIFT)) & ENET_EIMR_RXF_MASK)
6738#define ENET_EIMR_RXF ENET_EIMR_RXF_MASK
6739#define ENET_EIMR_TXB_MASK (0x4000000U)
6740#define ENET_EIMR_TXB_SHIFT (26U)
6741#define ENET_EIMR_TXB_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_TXB_SHIFT)) & ENET_EIMR_TXB_MASK)
6742#define ENET_EIMR_TXB ENET_EIMR_TXB_MASK
6743#define ENET_EIMR_TXF_MASK (0x8000000U)
6744#define ENET_EIMR_TXF_SHIFT (27U)
6745#define ENET_EIMR_TXF_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_TXF_SHIFT)) & ENET_EIMR_TXF_MASK)
6746#define ENET_EIMR_TXF ENET_EIMR_TXF_MASK
6747#define ENET_EIMR_GRA_MASK (0x10000000U)
6748#define ENET_EIMR_GRA_SHIFT (28U)
6749#define ENET_EIMR_GRA_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_GRA_SHIFT)) & ENET_EIMR_GRA_MASK)
6750#define ENET_EIMR_GRA ENET_EIMR_GRA_MASK
6751#define ENET_EIMR_BABT_MASK (0x20000000U)
6752#define ENET_EIMR_BABT_SHIFT (29U)
6753#define ENET_EIMR_BABT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_BABT_SHIFT)) & ENET_EIMR_BABT_MASK)
6754#define ENET_EIMR_BABT ENET_EIMR_BABT_MASK
6755#define ENET_EIMR_BABR_MASK (0x40000000U)
6756#define ENET_EIMR_BABR_SHIFT (30U)
6757#define ENET_EIMR_BABR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_EIMR_BABR_SHIFT)) & ENET_EIMR_BABR_MASK)
6758#define ENET_EIMR_BABR ENET_EIMR_BABR_MASK
6759
6760/*! @name RDAR - Receive Descriptor Active Register */
6761#define ENET_RDAR_RDAR_MASK (0x1000000U)
6762#define ENET_RDAR_RDAR_SHIFT (24U)
6763#define ENET_RDAR_RDAR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RDAR_RDAR_SHIFT)) & ENET_RDAR_RDAR_MASK)
6764#define ENET_RDAR_RDAR ENET_RDAR_RDAR_MASK
6765
6766/*! @name TDAR - Transmit Descriptor Active Register */
6767#define ENET_TDAR_TDAR_MASK (0x1000000U)
6768#define ENET_TDAR_TDAR_SHIFT (24U)
6769#define ENET_TDAR_TDAR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TDAR_TDAR_SHIFT)) & ENET_TDAR_TDAR_MASK)
6770#define ENET_TDAR_TDAR ENET_TDAR_TDAR_MASK
6771
6772/*! @name ECR - Ethernet Control Register */
6773#define ENET_ECR_RESET_MASK (0x1U)
6774#define ENET_ECR_RESET_SHIFT (0U)
6775#define ENET_ECR_RESET_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ECR_RESET_SHIFT)) & ENET_ECR_RESET_MASK)
6776#define ENET_ECR_RESET ENET_ECR_RESET_MASK
6777#define ENET_ECR_ETHEREN_MASK (0x2U)
6778#define ENET_ECR_ETHEREN_SHIFT (1U)
6779#define ENET_ECR_ETHEREN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ECR_ETHEREN_SHIFT)) & ENET_ECR_ETHEREN_MASK)
6780#define ENET_ECR_ETHEREN ENET_ECR_ETHEREN_MASK
6781#define ENET_ECR_MAGICEN_MASK (0x4U)
6782#define ENET_ECR_MAGICEN_SHIFT (2U)
6783#define ENET_ECR_MAGICEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ECR_MAGICEN_SHIFT)) & ENET_ECR_MAGICEN_MASK)
6784#define ENET_ECR_MAGICEN ENET_ECR_MAGICEN_MASK
6785#define ENET_ECR_SLEEP_MASK (0x8U)
6786#define ENET_ECR_SLEEP_SHIFT (3U)
6787#define ENET_ECR_SLEEP_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ECR_SLEEP_SHIFT)) & ENET_ECR_SLEEP_MASK)
6788#define ENET_ECR_SLEEP ENET_ECR_SLEEP_MASK
6789#define ENET_ECR_EN1588_MASK (0x10U)
6790#define ENET_ECR_EN1588_SHIFT (4U)
6791#define ENET_ECR_EN1588_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ECR_EN1588_SHIFT)) & ENET_ECR_EN1588_MASK)
6792#define ENET_ECR_EN1588 ENET_ECR_EN1588_MASK
6793#define ENET_ECR_DBGEN_MASK (0x40U)
6794#define ENET_ECR_DBGEN_SHIFT (6U)
6795#define ENET_ECR_DBGEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ECR_DBGEN_SHIFT)) & ENET_ECR_DBGEN_MASK)
6796#define ENET_ECR_DBGEN ENET_ECR_DBGEN_MASK
6797#define ENET_ECR_STOPEN_MASK (0x80U)
6798#define ENET_ECR_STOPEN_SHIFT (7U)
6799#define ENET_ECR_STOPEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ECR_STOPEN_SHIFT)) & ENET_ECR_STOPEN_MASK)
6800#define ENET_ECR_STOPEN ENET_ECR_STOPEN_MASK
6801#define ENET_ECR_DBSWP_MASK (0x100U)
6802#define ENET_ECR_DBSWP_SHIFT (8U)
6803#define ENET_ECR_DBSWP_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ECR_DBSWP_SHIFT)) & ENET_ECR_DBSWP_MASK)
6804#define ENET_ECR_DBSWP ENET_ECR_DBSWP_MASK
6805
6806/*! @name MMFR - MII Management Frame Register */
6807#define ENET_MMFR_DATA_MASK (0xFFFFU)
6808#define ENET_MMFR_DATA_SHIFT (0U)
6809#define ENET_MMFR_DATA_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_DATA_SHIFT)) & ENET_MMFR_DATA_MASK)
6810#define ENET_MMFR_DATA ENET_MMFR_DATA_MASK
6811#define ENET_MMFR_TA_MASK (0x30000U)
6812#define ENET_MMFR_TA_SHIFT (16U)
6813#define ENET_MMFR_TA_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_TA_SHIFT)) & ENET_MMFR_TA_MASK)
6814#define ENET_MMFR_TA ENET_MMFR_TA_MASK
6815#define ENET_MMFR_RA_MASK (0x7C0000U)
6816#define ENET_MMFR_RA_SHIFT (18U)
6817#define ENET_MMFR_RA_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_RA_SHIFT)) & ENET_MMFR_RA_MASK)
6818#define ENET_MMFR_RA ENET_MMFR_RA_MASK
6819#define ENET_MMFR_PA_MASK (0xF800000U)
6820#define ENET_MMFR_PA_SHIFT (23U)
6821#define ENET_MMFR_PA_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_PA_SHIFT)) & ENET_MMFR_PA_MASK)
6822#define ENET_MMFR_PA ENET_MMFR_PA_MASK
6823#define ENET_MMFR_OP_MASK (0x30000000U)
6824#define ENET_MMFR_OP_SHIFT (28U)
6825#define ENET_MMFR_OP_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_OP_SHIFT)) & ENET_MMFR_OP_MASK)
6826#define ENET_MMFR_OP ENET_MMFR_OP_MASK
6827#define ENET_MMFR_ST_MASK (0xC0000000U)
6828#define ENET_MMFR_ST_SHIFT (30U)
6829#define ENET_MMFR_ST_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_ST_SHIFT)) & ENET_MMFR_ST_MASK)
6830#define ENET_MMFR_ST ENET_MMFR_ST_MASK
6831
6832/*! @name MSCR - MII Speed Control Register */
6833#define ENET_MSCR_MII_SPEED_MASK (0x7EU)
6834#define ENET_MSCR_MII_SPEED_SHIFT (1U)
6835#define ENET_MSCR_MII_SPEED_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MSCR_MII_SPEED_SHIFT)) & ENET_MSCR_MII_SPEED_MASK)
6836#define ENET_MSCR_MII_SPEED ENET_MSCR_MII_SPEED_MASK
6837#define ENET_MSCR_DIS_PRE_MASK (0x80U)
6838#define ENET_MSCR_DIS_PRE_SHIFT (7U)
6839#define ENET_MSCR_DIS_PRE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MSCR_DIS_PRE_SHIFT)) & ENET_MSCR_DIS_PRE_MASK)
6840#define ENET_MSCR_DIS_PRE ENET_MSCR_DIS_PRE_MASK
6841#define ENET_MSCR_HOLDTIME_MASK (0x700U)
6842#define ENET_MSCR_HOLDTIME_SHIFT (8U)
6843#define ENET_MSCR_HOLDTIME_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MSCR_HOLDTIME_SHIFT)) & ENET_MSCR_HOLDTIME_MASK)
6844#define ENET_MSCR_HOLDTIME ENET_MSCR_HOLDTIME_MASK
6845
6846/*! @name MIBC - MIB Control Register */
6847#define ENET_MIBC_MIB_CLEAR_MASK (0x20000000U)
6848#define ENET_MIBC_MIB_CLEAR_SHIFT (29U)
6849#define ENET_MIBC_MIB_CLEAR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MIBC_MIB_CLEAR_SHIFT)) & ENET_MIBC_MIB_CLEAR_MASK)
6850#define ENET_MIBC_MIB_CLEAR ENET_MIBC_MIB_CLEAR_MASK
6851#define ENET_MIBC_MIB_IDLE_MASK (0x40000000U)
6852#define ENET_MIBC_MIB_IDLE_SHIFT (30U)
6853#define ENET_MIBC_MIB_IDLE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MIBC_MIB_IDLE_SHIFT)) & ENET_MIBC_MIB_IDLE_MASK)
6854#define ENET_MIBC_MIB_IDLE ENET_MIBC_MIB_IDLE_MASK
6855#define ENET_MIBC_MIB_DIS_MASK (0x80000000U)
6856#define ENET_MIBC_MIB_DIS_SHIFT (31U)
6857#define ENET_MIBC_MIB_DIS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MIBC_MIB_DIS_SHIFT)) & ENET_MIBC_MIB_DIS_MASK)
6858#define ENET_MIBC_MIB_DIS ENET_MIBC_MIB_DIS_MASK
6859
6860/*! @name RCR - Receive Control Register */
6861#define ENET_RCR_LOOP_MASK (0x1U)
6862#define ENET_RCR_LOOP_SHIFT (0U)
6863#define ENET_RCR_LOOP_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_LOOP_SHIFT)) & ENET_RCR_LOOP_MASK)
6864#define ENET_RCR_LOOP ENET_RCR_LOOP_MASK
6865#define ENET_RCR_DRT_MASK (0x2U)
6866#define ENET_RCR_DRT_SHIFT (1U)
6867#define ENET_RCR_DRT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_DRT_SHIFT)) & ENET_RCR_DRT_MASK)
6868#define ENET_RCR_DRT ENET_RCR_DRT_MASK
6869#define ENET_RCR_MII_MODE_MASK (0x4U)
6870#define ENET_RCR_MII_MODE_SHIFT (2U)
6871#define ENET_RCR_MII_MODE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_MII_MODE_SHIFT)) & ENET_RCR_MII_MODE_MASK)
6872#define ENET_RCR_MII_MODE ENET_RCR_MII_MODE_MASK
6873#define ENET_RCR_PROM_MASK (0x8U)
6874#define ENET_RCR_PROM_SHIFT (3U)
6875#define ENET_RCR_PROM_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_PROM_SHIFT)) & ENET_RCR_PROM_MASK)
6876#define ENET_RCR_PROM ENET_RCR_PROM_MASK
6877#define ENET_RCR_BC_REJ_MASK (0x10U)
6878#define ENET_RCR_BC_REJ_SHIFT (4U)
6879#define ENET_RCR_BC_REJ_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_BC_REJ_SHIFT)) & ENET_RCR_BC_REJ_MASK)
6880#define ENET_RCR_BC_REJ ENET_RCR_BC_REJ_MASK
6881#define ENET_RCR_FCE_MASK (0x20U)
6882#define ENET_RCR_FCE_SHIFT (5U)
6883#define ENET_RCR_FCE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_FCE_SHIFT)) & ENET_RCR_FCE_MASK)
6884#define ENET_RCR_FCE ENET_RCR_FCE_MASK
6885#define ENET_RCR_RMII_MODE_MASK (0x100U)
6886#define ENET_RCR_RMII_MODE_SHIFT (8U)
6887#define ENET_RCR_RMII_MODE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_RMII_MODE_SHIFT)) & ENET_RCR_RMII_MODE_MASK)
6888#define ENET_RCR_RMII_MODE ENET_RCR_RMII_MODE_MASK
6889#define ENET_RCR_RMII_10T_MASK (0x200U)
6890#define ENET_RCR_RMII_10T_SHIFT (9U)
6891#define ENET_RCR_RMII_10T_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_RMII_10T_SHIFT)) & ENET_RCR_RMII_10T_MASK)
6892#define ENET_RCR_RMII_10T ENET_RCR_RMII_10T_MASK
6893#define ENET_RCR_PADEN_MASK (0x1000U)
6894#define ENET_RCR_PADEN_SHIFT (12U)
6895#define ENET_RCR_PADEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_PADEN_SHIFT)) & ENET_RCR_PADEN_MASK)
6896#define ENET_RCR_PADEN ENET_RCR_PADEN_MASK
6897#define ENET_RCR_PAUFWD_MASK (0x2000U)
6898#define ENET_RCR_PAUFWD_SHIFT (13U)
6899#define ENET_RCR_PAUFWD_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_PAUFWD_SHIFT)) & ENET_RCR_PAUFWD_MASK)
6900#define ENET_RCR_PAUFWD ENET_RCR_PAUFWD_MASK
6901#define ENET_RCR_CRCFWD_MASK (0x4000U)
6902#define ENET_RCR_CRCFWD_SHIFT (14U)
6903#define ENET_RCR_CRCFWD_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_CRCFWD_SHIFT)) & ENET_RCR_CRCFWD_MASK)
6904#define ENET_RCR_CRCFWD ENET_RCR_CRCFWD_MASK
6905#define ENET_RCR_CFEN_MASK (0x8000U)
6906#define ENET_RCR_CFEN_SHIFT (15U)
6907#define ENET_RCR_CFEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_CFEN_SHIFT)) & ENET_RCR_CFEN_MASK)
6908#define ENET_RCR_CFEN ENET_RCR_CFEN_MASK
6909#define ENET_RCR_MAX_FL_MASK (0x3FFF0000U)
6910#define ENET_RCR_MAX_FL_SHIFT (16U)
6911#define ENET_RCR_MAX_FL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_MAX_FL_SHIFT)) & ENET_RCR_MAX_FL_MASK)
6912#define ENET_RCR_MAX_FL ENET_RCR_MAX_FL_MASK
6913#define ENET_RCR_NLC_MASK (0x40000000U)
6914#define ENET_RCR_NLC_SHIFT (30U)
6915#define ENET_RCR_NLC_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_NLC_SHIFT)) & ENET_RCR_NLC_MASK)
6916#define ENET_RCR_NLC ENET_RCR_NLC_MASK
6917#define ENET_RCR_GRS_MASK (0x80000000U)
6918#define ENET_RCR_GRS_SHIFT (31U)
6919#define ENET_RCR_GRS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_GRS_SHIFT)) & ENET_RCR_GRS_MASK)
6920#define ENET_RCR_GRS ENET_RCR_GRS_MASK
6921
6922/*! @name TCR - Transmit Control Register */
6923#define ENET_TCR_GTS_MASK (0x1U)
6924#define ENET_TCR_GTS_SHIFT (0U)
6925#define ENET_TCR_GTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCR_GTS_SHIFT)) & ENET_TCR_GTS_MASK)
6926#define ENET_TCR_GTS ENET_TCR_GTS_MASK
6927#define ENET_TCR_FDEN_MASK (0x4U)
6928#define ENET_TCR_FDEN_SHIFT (2U)
6929#define ENET_TCR_FDEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCR_FDEN_SHIFT)) & ENET_TCR_FDEN_MASK)
6930#define ENET_TCR_FDEN ENET_TCR_FDEN_MASK
6931#define ENET_TCR_TFC_PAUSE_MASK (0x8U)
6932#define ENET_TCR_TFC_PAUSE_SHIFT (3U)
6933#define ENET_TCR_TFC_PAUSE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCR_TFC_PAUSE_SHIFT)) & ENET_TCR_TFC_PAUSE_MASK)
6934#define ENET_TCR_TFC_PAUSE ENET_TCR_TFC_PAUSE_MASK
6935#define ENET_TCR_RFC_PAUSE_MASK (0x10U)
6936#define ENET_TCR_RFC_PAUSE_SHIFT (4U)
6937#define ENET_TCR_RFC_PAUSE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCR_RFC_PAUSE_SHIFT)) & ENET_TCR_RFC_PAUSE_MASK)
6938#define ENET_TCR_RFC_PAUSE ENET_TCR_RFC_PAUSE_MASK
6939#define ENET_TCR_ADDSEL_MASK (0xE0U)
6940#define ENET_TCR_ADDSEL_SHIFT (5U)
6941#define ENET_TCR_ADDSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCR_ADDSEL_SHIFT)) & ENET_TCR_ADDSEL_MASK)
6942#define ENET_TCR_ADDSEL ENET_TCR_ADDSEL_MASK
6943#define ENET_TCR_ADDINS_MASK (0x100U)
6944#define ENET_TCR_ADDINS_SHIFT (8U)
6945#define ENET_TCR_ADDINS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCR_ADDINS_SHIFT)) & ENET_TCR_ADDINS_MASK)
6946#define ENET_TCR_ADDINS ENET_TCR_ADDINS_MASK
6947#define ENET_TCR_CRCFWD_MASK (0x200U)
6948#define ENET_TCR_CRCFWD_SHIFT (9U)
6949#define ENET_TCR_CRCFWD_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCR_CRCFWD_SHIFT)) & ENET_TCR_CRCFWD_MASK)
6950#define ENET_TCR_CRCFWD ENET_TCR_CRCFWD_MASK
6951
6952/*! @name PALR - Physical Address Lower Register */
6953#define ENET_PALR_PADDR1_MASK (0xFFFFFFFFU)
6954#define ENET_PALR_PADDR1_SHIFT (0U)
6955#define ENET_PALR_PADDR1_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_PALR_PADDR1_SHIFT)) & ENET_PALR_PADDR1_MASK)
6956#define ENET_PALR_PADDR1 ENET_PALR_PADDR1_MASK
6957
6958/*! @name PAUR - Physical Address Upper Register */
6959#define ENET_PAUR_TYPE_MASK (0xFFFFU)
6960#define ENET_PAUR_TYPE_SHIFT (0U)
6961#define ENET_PAUR_TYPE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_PAUR_TYPE_SHIFT)) & ENET_PAUR_TYPE_MASK)
6962#define ENET_PAUR_TYPE ENET_PAUR_TYPE_MASK
6963#define ENET_PAUR_PADDR2_MASK (0xFFFF0000U)
6964#define ENET_PAUR_PADDR2_SHIFT (16U)
6965#define ENET_PAUR_PADDR2_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_PAUR_PADDR2_SHIFT)) & ENET_PAUR_PADDR2_MASK)
6966#define ENET_PAUR_PADDR2 ENET_PAUR_PADDR2_MASK
6967
6968/*! @name OPD - Opcode/Pause Duration Register */
6969#define ENET_OPD_PAUSE_DUR_MASK (0xFFFFU)
6970#define ENET_OPD_PAUSE_DUR_SHIFT (0U)
6971#define ENET_OPD_PAUSE_DUR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_OPD_PAUSE_DUR_SHIFT)) & ENET_OPD_PAUSE_DUR_MASK)
6972#define ENET_OPD_PAUSE_DUR ENET_OPD_PAUSE_DUR_MASK
6973#define ENET_OPD_OPCODE_MASK (0xFFFF0000U)
6974#define ENET_OPD_OPCODE_SHIFT (16U)
6975#define ENET_OPD_OPCODE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_OPD_OPCODE_SHIFT)) & ENET_OPD_OPCODE_MASK)
6976#define ENET_OPD_OPCODE ENET_OPD_OPCODE_MASK
6977
6978/*! @name IAUR - Descriptor Individual Upper Address Register */
6979#define ENET_IAUR_IADDR1_MASK (0xFFFFFFFFU)
6980#define ENET_IAUR_IADDR1_SHIFT (0U)
6981#define ENET_IAUR_IADDR1_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IAUR_IADDR1_SHIFT)) & ENET_IAUR_IADDR1_MASK)
6982#define ENET_IAUR_IADDR1 ENET_IAUR_IADDR1_MASK
6983
6984/*! @name IALR - Descriptor Individual Lower Address Register */
6985#define ENET_IALR_IADDR2_MASK (0xFFFFFFFFU)
6986#define ENET_IALR_IADDR2_SHIFT (0U)
6987#define ENET_IALR_IADDR2_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IALR_IADDR2_SHIFT)) & ENET_IALR_IADDR2_MASK)
6988#define ENET_IALR_IADDR2 ENET_IALR_IADDR2_MASK
6989
6990/*! @name GAUR - Descriptor Group Upper Address Register */
6991#define ENET_GAUR_GADDR1_MASK (0xFFFFFFFFU)
6992#define ENET_GAUR_GADDR1_SHIFT (0U)
6993#define ENET_GAUR_GADDR1_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_GAUR_GADDR1_SHIFT)) & ENET_GAUR_GADDR1_MASK)
6994#define ENET_GAUR_GADDR1 ENET_GAUR_GADDR1_MASK
6995
6996/*! @name GALR - Descriptor Group Lower Address Register */
6997#define ENET_GALR_GADDR2_MASK (0xFFFFFFFFU)
6998#define ENET_GALR_GADDR2_SHIFT (0U)
6999#define ENET_GALR_GADDR2_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_GALR_GADDR2_SHIFT)) & ENET_GALR_GADDR2_MASK)
7000#define ENET_GALR_GADDR2 ENET_GALR_GADDR2_MASK
7001
7002/*! @name TFWR - Transmit FIFO Watermark Register */
7003#define ENET_TFWR_TFWR_MASK (0x3FU)
7004#define ENET_TFWR_TFWR_SHIFT (0U)
7005#define ENET_TFWR_TFWR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TFWR_TFWR_SHIFT)) & ENET_TFWR_TFWR_MASK)
7006#define ENET_TFWR_TFWR ENET_TFWR_TFWR_MASK
7007#define ENET_TFWR_STRFWD_MASK (0x100U)
7008#define ENET_TFWR_STRFWD_SHIFT (8U)
7009#define ENET_TFWR_STRFWD_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TFWR_STRFWD_SHIFT)) & ENET_TFWR_STRFWD_MASK)
7010#define ENET_TFWR_STRFWD ENET_TFWR_STRFWD_MASK
7011
7012/*! @name RDSR - Receive Descriptor Ring Start Register */
7013#define ENET_RDSR_R_DES_START_MASK (0xFFFFFFF8U)
7014#define ENET_RDSR_R_DES_START_SHIFT (3U)
7015#define ENET_RDSR_R_DES_START_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RDSR_R_DES_START_SHIFT)) & ENET_RDSR_R_DES_START_MASK)
7016#define ENET_RDSR_R_DES_START ENET_RDSR_R_DES_START_MASK
7017
7018/*! @name TDSR - Transmit Buffer Descriptor Ring Start Register */
7019#define ENET_TDSR_X_DES_START_MASK (0xFFFFFFF8U)
7020#define ENET_TDSR_X_DES_START_SHIFT (3U)
7021#define ENET_TDSR_X_DES_START_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TDSR_X_DES_START_SHIFT)) & ENET_TDSR_X_DES_START_MASK)
7022#define ENET_TDSR_X_DES_START ENET_TDSR_X_DES_START_MASK
7023
7024/*! @name MRBR - Maximum Receive Buffer Size Register */
7025#define ENET_MRBR_R_BUF_SIZE_MASK (0x7F0U)
7026#define ENET_MRBR_R_BUF_SIZE_SHIFT (4U)
7027#define ENET_MRBR_R_BUF_SIZE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_MRBR_R_BUF_SIZE_SHIFT)) & ENET_MRBR_R_BUF_SIZE_MASK)
7028#define ENET_MRBR_R_BUF_SIZE ENET_MRBR_R_BUF_SIZE_MASK
7029
7030/*! @name RSFL - Receive FIFO Section Full Threshold */
7031#define ENET_RSFL_RX_SECTION_FULL_MASK (0xFFU)
7032#define ENET_RSFL_RX_SECTION_FULL_SHIFT (0U)
7033#define ENET_RSFL_RX_SECTION_FULL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RSFL_RX_SECTION_FULL_SHIFT)) & ENET_RSFL_RX_SECTION_FULL_MASK)
7034#define ENET_RSFL_RX_SECTION_FULL ENET_RSFL_RX_SECTION_FULL_MASK
7035
7036/*! @name RSEM - Receive FIFO Section Empty Threshold */
7037#define ENET_RSEM_RX_SECTION_EMPTY_MASK (0xFFU)
7038#define ENET_RSEM_RX_SECTION_EMPTY_SHIFT (0U)
7039#define ENET_RSEM_RX_SECTION_EMPTY_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RSEM_RX_SECTION_EMPTY_SHIFT)) & ENET_RSEM_RX_SECTION_EMPTY_MASK)
7040#define ENET_RSEM_RX_SECTION_EMPTY ENET_RSEM_RX_SECTION_EMPTY_MASK
7041#define ENET_RSEM_STAT_SECTION_EMPTY_MASK (0x1F0000U)
7042#define ENET_RSEM_STAT_SECTION_EMPTY_SHIFT (16U)
7043#define ENET_RSEM_STAT_SECTION_EMPTY_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RSEM_STAT_SECTION_EMPTY_SHIFT)) & ENET_RSEM_STAT_SECTION_EMPTY_MASK)
7044#define ENET_RSEM_STAT_SECTION_EMPTY ENET_RSEM_STAT_SECTION_EMPTY_MASK
7045
7046/*! @name RAEM - Receive FIFO Almost Empty Threshold */
7047#define ENET_RAEM_RX_ALMOST_EMPTY_MASK (0xFFU)
7048#define ENET_RAEM_RX_ALMOST_EMPTY_SHIFT (0U)
7049#define ENET_RAEM_RX_ALMOST_EMPTY_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RAEM_RX_ALMOST_EMPTY_SHIFT)) & ENET_RAEM_RX_ALMOST_EMPTY_MASK)
7050#define ENET_RAEM_RX_ALMOST_EMPTY ENET_RAEM_RX_ALMOST_EMPTY_MASK
7051
7052/*! @name RAFL - Receive FIFO Almost Full Threshold */
7053#define ENET_RAFL_RX_ALMOST_FULL_MASK (0xFFU)
7054#define ENET_RAFL_RX_ALMOST_FULL_SHIFT (0U)
7055#define ENET_RAFL_RX_ALMOST_FULL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RAFL_RX_ALMOST_FULL_SHIFT)) & ENET_RAFL_RX_ALMOST_FULL_MASK)
7056#define ENET_RAFL_RX_ALMOST_FULL ENET_RAFL_RX_ALMOST_FULL_MASK
7057
7058/*! @name TSEM - Transmit FIFO Section Empty Threshold */
7059#define ENET_TSEM_TX_SECTION_EMPTY_MASK (0xFFU)
7060#define ENET_TSEM_TX_SECTION_EMPTY_SHIFT (0U)
7061#define ENET_TSEM_TX_SECTION_EMPTY_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TSEM_TX_SECTION_EMPTY_SHIFT)) & ENET_TSEM_TX_SECTION_EMPTY_MASK)
7062#define ENET_TSEM_TX_SECTION_EMPTY ENET_TSEM_TX_SECTION_EMPTY_MASK
7063
7064/*! @name TAEM - Transmit FIFO Almost Empty Threshold */
7065#define ENET_TAEM_TX_ALMOST_EMPTY_MASK (0xFFU)
7066#define ENET_TAEM_TX_ALMOST_EMPTY_SHIFT (0U)
7067#define ENET_TAEM_TX_ALMOST_EMPTY_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TAEM_TX_ALMOST_EMPTY_SHIFT)) & ENET_TAEM_TX_ALMOST_EMPTY_MASK)
7068#define ENET_TAEM_TX_ALMOST_EMPTY ENET_TAEM_TX_ALMOST_EMPTY_MASK
7069
7070/*! @name TAFL - Transmit FIFO Almost Full Threshold */
7071#define ENET_TAFL_TX_ALMOST_FULL_MASK (0xFFU)
7072#define ENET_TAFL_TX_ALMOST_FULL_SHIFT (0U)
7073#define ENET_TAFL_TX_ALMOST_FULL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TAFL_TX_ALMOST_FULL_SHIFT)) & ENET_TAFL_TX_ALMOST_FULL_MASK)
7074#define ENET_TAFL_TX_ALMOST_FULL ENET_TAFL_TX_ALMOST_FULL_MASK
7075
7076/*! @name TIPG - Transmit Inter-Packet Gap */
7077#define ENET_TIPG_IPG_MASK (0x1FU)
7078#define ENET_TIPG_IPG_SHIFT (0U)
7079#define ENET_TIPG_IPG_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TIPG_IPG_SHIFT)) & ENET_TIPG_IPG_MASK)
7080#define ENET_TIPG_IPG ENET_TIPG_IPG_MASK
7081
7082/*! @name FTRL - Frame Truncation Length */
7083#define ENET_FTRL_TRUNC_FL_MASK (0x3FFFU)
7084#define ENET_FTRL_TRUNC_FL_SHIFT (0U)
7085#define ENET_FTRL_TRUNC_FL_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_FTRL_TRUNC_FL_SHIFT)) & ENET_FTRL_TRUNC_FL_MASK)
7086#define ENET_FTRL_TRUNC_FL ENET_FTRL_TRUNC_FL_MASK
7087
7088/*! @name TACC - Transmit Accelerator Function Configuration */
7089#define ENET_TACC_SHIFT16_MASK (0x1U)
7090#define ENET_TACC_SHIFT16_SHIFT (0U)
7091#define ENET_TACC_SHIFT16_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TACC_SHIFT16_SHIFT)) & ENET_TACC_SHIFT16_MASK)
7092#define ENET_TACC_SHIFT16 ENET_TACC_SHIFT16_MASK
7093#define ENET_TACC_IPCHK_MASK (0x8U)
7094#define ENET_TACC_IPCHK_SHIFT (3U)
7095#define ENET_TACC_IPCHK_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TACC_IPCHK_SHIFT)) & ENET_TACC_IPCHK_MASK)
7096#define ENET_TACC_IPCHK ENET_TACC_IPCHK_MASK
7097#define ENET_TACC_PROCHK_MASK (0x10U)
7098#define ENET_TACC_PROCHK_SHIFT (4U)
7099#define ENET_TACC_PROCHK_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TACC_PROCHK_SHIFT)) & ENET_TACC_PROCHK_MASK)
7100#define ENET_TACC_PROCHK ENET_TACC_PROCHK_MASK
7101
7102/*! @name RACC - Receive Accelerator Function Configuration */
7103#define ENET_RACC_PADREM_MASK (0x1U)
7104#define ENET_RACC_PADREM_SHIFT (0U)
7105#define ENET_RACC_PADREM_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RACC_PADREM_SHIFT)) & ENET_RACC_PADREM_MASK)
7106#define ENET_RACC_PADREM ENET_RACC_PADREM_MASK
7107#define ENET_RACC_IPDIS_MASK (0x2U)
7108#define ENET_RACC_IPDIS_SHIFT (1U)
7109#define ENET_RACC_IPDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RACC_IPDIS_SHIFT)) & ENET_RACC_IPDIS_MASK)
7110#define ENET_RACC_IPDIS ENET_RACC_IPDIS_MASK
7111#define ENET_RACC_PRODIS_MASK (0x4U)
7112#define ENET_RACC_PRODIS_SHIFT (2U)
7113#define ENET_RACC_PRODIS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RACC_PRODIS_SHIFT)) & ENET_RACC_PRODIS_MASK)
7114#define ENET_RACC_PRODIS ENET_RACC_PRODIS_MASK
7115#define ENET_RACC_LINEDIS_MASK (0x40U)
7116#define ENET_RACC_LINEDIS_SHIFT (6U)
7117#define ENET_RACC_LINEDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RACC_LINEDIS_SHIFT)) & ENET_RACC_LINEDIS_MASK)
7118#define ENET_RACC_LINEDIS ENET_RACC_LINEDIS_MASK
7119#define ENET_RACC_SHIFT16_MASK (0x80U)
7120#define ENET_RACC_SHIFT16_SHIFT (7U)
7121#define ENET_RACC_SHIFT16_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RACC_SHIFT16_SHIFT)) & ENET_RACC_SHIFT16_MASK)
7122#define ENET_RACC_SHIFT16 ENET_RACC_SHIFT16_MASK
7123
7124/*! @name RMON_T_PACKETS - Tx Packet Count Statistic Register */
7125#define ENET_RMON_T_PACKETS_TXPKTS_MASK (0xFFFFU)
7126#define ENET_RMON_T_PACKETS_TXPKTS_SHIFT (0U)
7127#define ENET_RMON_T_PACKETS_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_PACKETS_TXPKTS_SHIFT)) & ENET_RMON_T_PACKETS_TXPKTS_MASK)
7128#define ENET_RMON_T_PACKETS_TXPKTS ENET_RMON_T_PACKETS_TXPKTS_MASK
7129
7130/*! @name RMON_T_BC_PKT - Tx Broadcast Packets Statistic Register */
7131#define ENET_RMON_T_BC_PKT_TXPKTS_MASK (0xFFFFU)
7132#define ENET_RMON_T_BC_PKT_TXPKTS_SHIFT (0U)
7133#define ENET_RMON_T_BC_PKT_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_BC_PKT_TXPKTS_SHIFT)) & ENET_RMON_T_BC_PKT_TXPKTS_MASK)
7134#define ENET_RMON_T_BC_PKT_TXPKTS ENET_RMON_T_BC_PKT_TXPKTS_MASK
7135
7136/*! @name RMON_T_MC_PKT - Tx Multicast Packets Statistic Register */
7137#define ENET_RMON_T_MC_PKT_TXPKTS_MASK (0xFFFFU)
7138#define ENET_RMON_T_MC_PKT_TXPKTS_SHIFT (0U)
7139#define ENET_RMON_T_MC_PKT_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_MC_PKT_TXPKTS_SHIFT)) & ENET_RMON_T_MC_PKT_TXPKTS_MASK)
7140#define ENET_RMON_T_MC_PKT_TXPKTS ENET_RMON_T_MC_PKT_TXPKTS_MASK
7141
7142/*! @name RMON_T_CRC_ALIGN - Tx Packets with CRC/Align Error Statistic Register */
7143#define ENET_RMON_T_CRC_ALIGN_TXPKTS_MASK (0xFFFFU)
7144#define ENET_RMON_T_CRC_ALIGN_TXPKTS_SHIFT (0U)
7145#define ENET_RMON_T_CRC_ALIGN_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_CRC_ALIGN_TXPKTS_SHIFT)) & ENET_RMON_T_CRC_ALIGN_TXPKTS_MASK)
7146#define ENET_RMON_T_CRC_ALIGN_TXPKTS ENET_RMON_T_CRC_ALIGN_TXPKTS_MASK
7147
7148/*! @name RMON_T_UNDERSIZE - Tx Packets Less Than Bytes and Good CRC Statistic Register */
7149#define ENET_RMON_T_UNDERSIZE_TXPKTS_MASK (0xFFFFU)
7150#define ENET_RMON_T_UNDERSIZE_TXPKTS_SHIFT (0U)
7151#define ENET_RMON_T_UNDERSIZE_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_UNDERSIZE_TXPKTS_SHIFT)) & ENET_RMON_T_UNDERSIZE_TXPKTS_MASK)
7152#define ENET_RMON_T_UNDERSIZE_TXPKTS ENET_RMON_T_UNDERSIZE_TXPKTS_MASK
7153
7154/*! @name RMON_T_OVERSIZE - Tx Packets GT MAX_FL bytes and Good CRC Statistic Register */
7155#define ENET_RMON_T_OVERSIZE_TXPKTS_MASK (0xFFFFU)
7156#define ENET_RMON_T_OVERSIZE_TXPKTS_SHIFT (0U)
7157#define ENET_RMON_T_OVERSIZE_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_OVERSIZE_TXPKTS_SHIFT)) & ENET_RMON_T_OVERSIZE_TXPKTS_MASK)
7158#define ENET_RMON_T_OVERSIZE_TXPKTS ENET_RMON_T_OVERSIZE_TXPKTS_MASK
7159
7160/*! @name RMON_T_FRAG - Tx Packets Less Than 64 Bytes and Bad CRC Statistic Register */
7161#define ENET_RMON_T_FRAG_TXPKTS_MASK (0xFFFFU)
7162#define ENET_RMON_T_FRAG_TXPKTS_SHIFT (0U)
7163#define ENET_RMON_T_FRAG_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_FRAG_TXPKTS_SHIFT)) & ENET_RMON_T_FRAG_TXPKTS_MASK)
7164#define ENET_RMON_T_FRAG_TXPKTS ENET_RMON_T_FRAG_TXPKTS_MASK
7165
7166/*! @name RMON_T_JAB - Tx Packets Greater Than MAX_FL bytes and Bad CRC Statistic Register */
7167#define ENET_RMON_T_JAB_TXPKTS_MASK (0xFFFFU)
7168#define ENET_RMON_T_JAB_TXPKTS_SHIFT (0U)
7169#define ENET_RMON_T_JAB_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_JAB_TXPKTS_SHIFT)) & ENET_RMON_T_JAB_TXPKTS_MASK)
7170#define ENET_RMON_T_JAB_TXPKTS ENET_RMON_T_JAB_TXPKTS_MASK
7171
7172/*! @name RMON_T_COL - Tx Collision Count Statistic Register */
7173#define ENET_RMON_T_COL_TXPKTS_MASK (0xFFFFU)
7174#define ENET_RMON_T_COL_TXPKTS_SHIFT (0U)
7175#define ENET_RMON_T_COL_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_COL_TXPKTS_SHIFT)) & ENET_RMON_T_COL_TXPKTS_MASK)
7176#define ENET_RMON_T_COL_TXPKTS ENET_RMON_T_COL_TXPKTS_MASK
7177
7178/*! @name RMON_T_P64 - Tx 64-Byte Packets Statistic Register */
7179#define ENET_RMON_T_P64_TXPKTS_MASK (0xFFFFU)
7180#define ENET_RMON_T_P64_TXPKTS_SHIFT (0U)
7181#define ENET_RMON_T_P64_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P64_TXPKTS_SHIFT)) & ENET_RMON_T_P64_TXPKTS_MASK)
7182#define ENET_RMON_T_P64_TXPKTS ENET_RMON_T_P64_TXPKTS_MASK
7183
7184/*! @name RMON_T_P65TO127 - Tx 65- to 127-byte Packets Statistic Register */
7185#define ENET_RMON_T_P65TO127_TXPKTS_MASK (0xFFFFU)
7186#define ENET_RMON_T_P65TO127_TXPKTS_SHIFT (0U)
7187#define ENET_RMON_T_P65TO127_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P65TO127_TXPKTS_SHIFT)) & ENET_RMON_T_P65TO127_TXPKTS_MASK)
7188#define ENET_RMON_T_P65TO127_TXPKTS ENET_RMON_T_P65TO127_TXPKTS_MASK
7189
7190/*! @name RMON_T_P128TO255 - Tx 128- to 255-byte Packets Statistic Register */
7191#define ENET_RMON_T_P128TO255_TXPKTS_MASK (0xFFFFU)
7192#define ENET_RMON_T_P128TO255_TXPKTS_SHIFT (0U)
7193#define ENET_RMON_T_P128TO255_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P128TO255_TXPKTS_SHIFT)) & ENET_RMON_T_P128TO255_TXPKTS_MASK)
7194#define ENET_RMON_T_P128TO255_TXPKTS ENET_RMON_T_P128TO255_TXPKTS_MASK
7195
7196/*! @name RMON_T_P256TO511 - Tx 256- to 511-byte Packets Statistic Register */
7197#define ENET_RMON_T_P256TO511_TXPKTS_MASK (0xFFFFU)
7198#define ENET_RMON_T_P256TO511_TXPKTS_SHIFT (0U)
7199#define ENET_RMON_T_P256TO511_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P256TO511_TXPKTS_SHIFT)) & ENET_RMON_T_P256TO511_TXPKTS_MASK)
7200#define ENET_RMON_T_P256TO511_TXPKTS ENET_RMON_T_P256TO511_TXPKTS_MASK
7201
7202/*! @name RMON_T_P512TO1023 - Tx 512- to 1023-byte Packets Statistic Register */
7203#define ENET_RMON_T_P512TO1023_TXPKTS_MASK (0xFFFFU)
7204#define ENET_RMON_T_P512TO1023_TXPKTS_SHIFT (0U)
7205#define ENET_RMON_T_P512TO1023_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P512TO1023_TXPKTS_SHIFT)) & ENET_RMON_T_P512TO1023_TXPKTS_MASK)
7206#define ENET_RMON_T_P512TO1023_TXPKTS ENET_RMON_T_P512TO1023_TXPKTS_MASK
7207
7208/*! @name RMON_T_P1024TO2047 - Tx 1024- to 2047-byte Packets Statistic Register */
7209#define ENET_RMON_T_P1024TO2047_TXPKTS_MASK (0xFFFFU)
7210#define ENET_RMON_T_P1024TO2047_TXPKTS_SHIFT (0U)
7211#define ENET_RMON_T_P1024TO2047_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P1024TO2047_TXPKTS_SHIFT)) & ENET_RMON_T_P1024TO2047_TXPKTS_MASK)
7212#define ENET_RMON_T_P1024TO2047_TXPKTS ENET_RMON_T_P1024TO2047_TXPKTS_MASK
7213
7214/*! @name RMON_T_P_GTE2048 - Tx Packets Greater Than 2048 Bytes Statistic Register */
7215#define ENET_RMON_T_P_GTE2048_TXPKTS_MASK (0xFFFFU)
7216#define ENET_RMON_T_P_GTE2048_TXPKTS_SHIFT (0U)
7217#define ENET_RMON_T_P_GTE2048_TXPKTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P_GTE2048_TXPKTS_SHIFT)) & ENET_RMON_T_P_GTE2048_TXPKTS_MASK)
7218#define ENET_RMON_T_P_GTE2048_TXPKTS ENET_RMON_T_P_GTE2048_TXPKTS_MASK
7219
7220/*! @name RMON_T_OCTETS - Tx Octets Statistic Register */
7221#define ENET_RMON_T_OCTETS_TXOCTS_MASK (0xFFFFFFFFU)
7222#define ENET_RMON_T_OCTETS_TXOCTS_SHIFT (0U)
7223#define ENET_RMON_T_OCTETS_TXOCTS_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_OCTETS_TXOCTS_SHIFT)) & ENET_RMON_T_OCTETS_TXOCTS_MASK)
7224#define ENET_RMON_T_OCTETS_TXOCTS ENET_RMON_T_OCTETS_TXOCTS_MASK
7225
7226/*! @name IEEE_T_FRAME_OK - Frames Transmitted OK Statistic Register */
7227#define ENET_IEEE_T_FRAME_OK_COUNT_MASK (0xFFFFU)
7228#define ENET_IEEE_T_FRAME_OK_COUNT_SHIFT (0U)
7229#define ENET_IEEE_T_FRAME_OK_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_FRAME_OK_COUNT_SHIFT)) & ENET_IEEE_T_FRAME_OK_COUNT_MASK)
7230#define ENET_IEEE_T_FRAME_OK_COUNT ENET_IEEE_T_FRAME_OK_COUNT_MASK
7231
7232/*! @name IEEE_T_1COL - Frames Transmitted with Single Collision Statistic Register */
7233#define ENET_IEEE_T_1COL_COUNT_MASK (0xFFFFU)
7234#define ENET_IEEE_T_1COL_COUNT_SHIFT (0U)
7235#define ENET_IEEE_T_1COL_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_1COL_COUNT_SHIFT)) & ENET_IEEE_T_1COL_COUNT_MASK)
7236#define ENET_IEEE_T_1COL_COUNT ENET_IEEE_T_1COL_COUNT_MASK
7237
7238/*! @name IEEE_T_MCOL - Frames Transmitted with Multiple Collisions Statistic Register */
7239#define ENET_IEEE_T_MCOL_COUNT_MASK (0xFFFFU)
7240#define ENET_IEEE_T_MCOL_COUNT_SHIFT (0U)
7241#define ENET_IEEE_T_MCOL_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_MCOL_COUNT_SHIFT)) & ENET_IEEE_T_MCOL_COUNT_MASK)
7242#define ENET_IEEE_T_MCOL_COUNT ENET_IEEE_T_MCOL_COUNT_MASK
7243
7244/*! @name IEEE_T_DEF - Frames Transmitted after Deferral Delay Statistic Register */
7245#define ENET_IEEE_T_DEF_COUNT_MASK (0xFFFFU)
7246#define ENET_IEEE_T_DEF_COUNT_SHIFT (0U)
7247#define ENET_IEEE_T_DEF_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_DEF_COUNT_SHIFT)) & ENET_IEEE_T_DEF_COUNT_MASK)
7248#define ENET_IEEE_T_DEF_COUNT ENET_IEEE_T_DEF_COUNT_MASK
7249
7250/*! @name IEEE_T_LCOL - Frames Transmitted with Late Collision Statistic Register */
7251#define ENET_IEEE_T_LCOL_COUNT_MASK (0xFFFFU)
7252#define ENET_IEEE_T_LCOL_COUNT_SHIFT (0U)
7253#define ENET_IEEE_T_LCOL_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_LCOL_COUNT_SHIFT)) & ENET_IEEE_T_LCOL_COUNT_MASK)
7254#define ENET_IEEE_T_LCOL_COUNT ENET_IEEE_T_LCOL_COUNT_MASK
7255
7256/*! @name IEEE_T_EXCOL - Frames Transmitted with Excessive Collisions Statistic Register */
7257#define ENET_IEEE_T_EXCOL_COUNT_MASK (0xFFFFU)
7258#define ENET_IEEE_T_EXCOL_COUNT_SHIFT (0U)
7259#define ENET_IEEE_T_EXCOL_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_EXCOL_COUNT_SHIFT)) & ENET_IEEE_T_EXCOL_COUNT_MASK)
7260#define ENET_IEEE_T_EXCOL_COUNT ENET_IEEE_T_EXCOL_COUNT_MASK
7261
7262/*! @name IEEE_T_MACERR - Frames Transmitted with Tx FIFO Underrun Statistic Register */
7263#define ENET_IEEE_T_MACERR_COUNT_MASK (0xFFFFU)
7264#define ENET_IEEE_T_MACERR_COUNT_SHIFT (0U)
7265#define ENET_IEEE_T_MACERR_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_MACERR_COUNT_SHIFT)) & ENET_IEEE_T_MACERR_COUNT_MASK)
7266#define ENET_IEEE_T_MACERR_COUNT ENET_IEEE_T_MACERR_COUNT_MASK
7267
7268/*! @name IEEE_T_CSERR - Frames Transmitted with Carrier Sense Error Statistic Register */
7269#define ENET_IEEE_T_CSERR_COUNT_MASK (0xFFFFU)
7270#define ENET_IEEE_T_CSERR_COUNT_SHIFT (0U)
7271#define ENET_IEEE_T_CSERR_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_CSERR_COUNT_SHIFT)) & ENET_IEEE_T_CSERR_COUNT_MASK)
7272#define ENET_IEEE_T_CSERR_COUNT ENET_IEEE_T_CSERR_COUNT_MASK
7273
7274/*! @name IEEE_T_SQE - */
7275#define ENET_IEEE_T_SQE_COUNT_MASK (0xFFFFU)
7276#define ENET_IEEE_T_SQE_COUNT_SHIFT (0U)
7277#define ENET_IEEE_T_SQE_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_SQE_COUNT_SHIFT)) & ENET_IEEE_T_SQE_COUNT_MASK)
7278#define ENET_IEEE_T_SQE_COUNT ENET_IEEE_T_SQE_COUNT_MASK
7279
7280/*! @name IEEE_T_FDXFC - Flow Control Pause Frames Transmitted Statistic Register */
7281#define ENET_IEEE_T_FDXFC_COUNT_MASK (0xFFFFU)
7282#define ENET_IEEE_T_FDXFC_COUNT_SHIFT (0U)
7283#define ENET_IEEE_T_FDXFC_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_FDXFC_COUNT_SHIFT)) & ENET_IEEE_T_FDXFC_COUNT_MASK)
7284#define ENET_IEEE_T_FDXFC_COUNT ENET_IEEE_T_FDXFC_COUNT_MASK
7285
7286/*! @name IEEE_T_OCTETS_OK - Octet Count for Frames Transmitted w/o Error Statistic Register */
7287#define ENET_IEEE_T_OCTETS_OK_COUNT_MASK (0xFFFFFFFFU)
7288#define ENET_IEEE_T_OCTETS_OK_COUNT_SHIFT (0U)
7289#define ENET_IEEE_T_OCTETS_OK_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_OCTETS_OK_COUNT_SHIFT)) & ENET_IEEE_T_OCTETS_OK_COUNT_MASK)
7290#define ENET_IEEE_T_OCTETS_OK_COUNT ENET_IEEE_T_OCTETS_OK_COUNT_MASK
7291
7292/*! @name RMON_R_PACKETS - Rx Packet Count Statistic Register */
7293#define ENET_RMON_R_PACKETS_COUNT_MASK (0xFFFFU)
7294#define ENET_RMON_R_PACKETS_COUNT_SHIFT (0U)
7295#define ENET_RMON_R_PACKETS_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_PACKETS_COUNT_SHIFT)) & ENET_RMON_R_PACKETS_COUNT_MASK)
7296#define ENET_RMON_R_PACKETS_COUNT ENET_RMON_R_PACKETS_COUNT_MASK
7297
7298/*! @name RMON_R_BC_PKT - Rx Broadcast Packets Statistic Register */
7299#define ENET_RMON_R_BC_PKT_COUNT_MASK (0xFFFFU)
7300#define ENET_RMON_R_BC_PKT_COUNT_SHIFT (0U)
7301#define ENET_RMON_R_BC_PKT_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_BC_PKT_COUNT_SHIFT)) & ENET_RMON_R_BC_PKT_COUNT_MASK)
7302#define ENET_RMON_R_BC_PKT_COUNT ENET_RMON_R_BC_PKT_COUNT_MASK
7303
7304/*! @name RMON_R_MC_PKT - Rx Multicast Packets Statistic Register */
7305#define ENET_RMON_R_MC_PKT_COUNT_MASK (0xFFFFU)
7306#define ENET_RMON_R_MC_PKT_COUNT_SHIFT (0U)
7307#define ENET_RMON_R_MC_PKT_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_MC_PKT_COUNT_SHIFT)) & ENET_RMON_R_MC_PKT_COUNT_MASK)
7308#define ENET_RMON_R_MC_PKT_COUNT ENET_RMON_R_MC_PKT_COUNT_MASK
7309
7310/*! @name RMON_R_CRC_ALIGN - Rx Packets with CRC/Align Error Statistic Register */
7311#define ENET_RMON_R_CRC_ALIGN_COUNT_MASK (0xFFFFU)
7312#define ENET_RMON_R_CRC_ALIGN_COUNT_SHIFT (0U)
7313#define ENET_RMON_R_CRC_ALIGN_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_CRC_ALIGN_COUNT_SHIFT)) & ENET_RMON_R_CRC_ALIGN_COUNT_MASK)
7314#define ENET_RMON_R_CRC_ALIGN_COUNT ENET_RMON_R_CRC_ALIGN_COUNT_MASK
7315
7316/*! @name RMON_R_UNDERSIZE - Rx Packets with Less Than 64 Bytes and Good CRC Statistic Register */
7317#define ENET_RMON_R_UNDERSIZE_COUNT_MASK (0xFFFFU)
7318#define ENET_RMON_R_UNDERSIZE_COUNT_SHIFT (0U)
7319#define ENET_RMON_R_UNDERSIZE_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_UNDERSIZE_COUNT_SHIFT)) & ENET_RMON_R_UNDERSIZE_COUNT_MASK)
7320#define ENET_RMON_R_UNDERSIZE_COUNT ENET_RMON_R_UNDERSIZE_COUNT_MASK
7321
7322/*! @name RMON_R_OVERSIZE - Rx Packets Greater Than MAX_FL and Good CRC Statistic Register */
7323#define ENET_RMON_R_OVERSIZE_COUNT_MASK (0xFFFFU)
7324#define ENET_RMON_R_OVERSIZE_COUNT_SHIFT (0U)
7325#define ENET_RMON_R_OVERSIZE_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_OVERSIZE_COUNT_SHIFT)) & ENET_RMON_R_OVERSIZE_COUNT_MASK)
7326#define ENET_RMON_R_OVERSIZE_COUNT ENET_RMON_R_OVERSIZE_COUNT_MASK
7327
7328/*! @name RMON_R_FRAG - Rx Packets Less Than 64 Bytes and Bad CRC Statistic Register */
7329#define ENET_RMON_R_FRAG_COUNT_MASK (0xFFFFU)
7330#define ENET_RMON_R_FRAG_COUNT_SHIFT (0U)
7331#define ENET_RMON_R_FRAG_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_FRAG_COUNT_SHIFT)) & ENET_RMON_R_FRAG_COUNT_MASK)
7332#define ENET_RMON_R_FRAG_COUNT ENET_RMON_R_FRAG_COUNT_MASK
7333
7334/*! @name RMON_R_JAB - Rx Packets Greater Than MAX_FL Bytes and Bad CRC Statistic Register */
7335#define ENET_RMON_R_JAB_COUNT_MASK (0xFFFFU)
7336#define ENET_RMON_R_JAB_COUNT_SHIFT (0U)
7337#define ENET_RMON_R_JAB_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_JAB_COUNT_SHIFT)) & ENET_RMON_R_JAB_COUNT_MASK)
7338#define ENET_RMON_R_JAB_COUNT ENET_RMON_R_JAB_COUNT_MASK
7339
7340/*! @name RMON_R_P64 - Rx 64-Byte Packets Statistic Register */
7341#define ENET_RMON_R_P64_COUNT_MASK (0xFFFFU)
7342#define ENET_RMON_R_P64_COUNT_SHIFT (0U)
7343#define ENET_RMON_R_P64_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P64_COUNT_SHIFT)) & ENET_RMON_R_P64_COUNT_MASK)
7344#define ENET_RMON_R_P64_COUNT ENET_RMON_R_P64_COUNT_MASK
7345
7346/*! @name RMON_R_P65TO127 - Rx 65- to 127-Byte Packets Statistic Register */
7347#define ENET_RMON_R_P65TO127_COUNT_MASK (0xFFFFU)
7348#define ENET_RMON_R_P65TO127_COUNT_SHIFT (0U)
7349#define ENET_RMON_R_P65TO127_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P65TO127_COUNT_SHIFT)) & ENET_RMON_R_P65TO127_COUNT_MASK)
7350#define ENET_RMON_R_P65TO127_COUNT ENET_RMON_R_P65TO127_COUNT_MASK
7351
7352/*! @name RMON_R_P128TO255 - Rx 128- to 255-Byte Packets Statistic Register */
7353#define ENET_RMON_R_P128TO255_COUNT_MASK (0xFFFFU)
7354#define ENET_RMON_R_P128TO255_COUNT_SHIFT (0U)
7355#define ENET_RMON_R_P128TO255_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P128TO255_COUNT_SHIFT)) & ENET_RMON_R_P128TO255_COUNT_MASK)
7356#define ENET_RMON_R_P128TO255_COUNT ENET_RMON_R_P128TO255_COUNT_MASK
7357
7358/*! @name RMON_R_P256TO511 - Rx 256- to 511-Byte Packets Statistic Register */
7359#define ENET_RMON_R_P256TO511_COUNT_MASK (0xFFFFU)
7360#define ENET_RMON_R_P256TO511_COUNT_SHIFT (0U)
7361#define ENET_RMON_R_P256TO511_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P256TO511_COUNT_SHIFT)) & ENET_RMON_R_P256TO511_COUNT_MASK)
7362#define ENET_RMON_R_P256TO511_COUNT ENET_RMON_R_P256TO511_COUNT_MASK
7363
7364/*! @name RMON_R_P512TO1023 - Rx 512- to 1023-Byte Packets Statistic Register */
7365#define ENET_RMON_R_P512TO1023_COUNT_MASK (0xFFFFU)
7366#define ENET_RMON_R_P512TO1023_COUNT_SHIFT (0U)
7367#define ENET_RMON_R_P512TO1023_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P512TO1023_COUNT_SHIFT)) & ENET_RMON_R_P512TO1023_COUNT_MASK)
7368#define ENET_RMON_R_P512TO1023_COUNT ENET_RMON_R_P512TO1023_COUNT_MASK
7369
7370/*! @name RMON_R_P1024TO2047 - Rx 1024- to 2047-Byte Packets Statistic Register */
7371#define ENET_RMON_R_P1024TO2047_COUNT_MASK (0xFFFFU)
7372#define ENET_RMON_R_P1024TO2047_COUNT_SHIFT (0U)
7373#define ENET_RMON_R_P1024TO2047_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P1024TO2047_COUNT_SHIFT)) & ENET_RMON_R_P1024TO2047_COUNT_MASK)
7374#define ENET_RMON_R_P1024TO2047_COUNT ENET_RMON_R_P1024TO2047_COUNT_MASK
7375
7376/*! @name RMON_R_P_GTE2048 - Rx Packets Greater than 2048 Bytes Statistic Register */
7377#define ENET_RMON_R_P_GTE2048_COUNT_MASK (0xFFFFU)
7378#define ENET_RMON_R_P_GTE2048_COUNT_SHIFT (0U)
7379#define ENET_RMON_R_P_GTE2048_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P_GTE2048_COUNT_SHIFT)) & ENET_RMON_R_P_GTE2048_COUNT_MASK)
7380#define ENET_RMON_R_P_GTE2048_COUNT ENET_RMON_R_P_GTE2048_COUNT_MASK
7381
7382/*! @name RMON_R_OCTETS - Rx Octets Statistic Register */
7383#define ENET_RMON_R_OCTETS_COUNT_MASK (0xFFFFFFFFU)
7384#define ENET_RMON_R_OCTETS_COUNT_SHIFT (0U)
7385#define ENET_RMON_R_OCTETS_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_OCTETS_COUNT_SHIFT)) & ENET_RMON_R_OCTETS_COUNT_MASK)
7386#define ENET_RMON_R_OCTETS_COUNT ENET_RMON_R_OCTETS_COUNT_MASK
7387
7388/*! @name IEEE_R_DROP - Frames not Counted Correctly Statistic Register */
7389#define ENET_IEEE_R_DROP_COUNT_MASK (0xFFFFU)
7390#define ENET_IEEE_R_DROP_COUNT_SHIFT (0U)
7391#define ENET_IEEE_R_DROP_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_DROP_COUNT_SHIFT)) & ENET_IEEE_R_DROP_COUNT_MASK)
7392#define ENET_IEEE_R_DROP_COUNT ENET_IEEE_R_DROP_COUNT_MASK
7393
7394/*! @name IEEE_R_FRAME_OK - Frames Received OK Statistic Register */
7395#define ENET_IEEE_R_FRAME_OK_COUNT_MASK (0xFFFFU)
7396#define ENET_IEEE_R_FRAME_OK_COUNT_SHIFT (0U)
7397#define ENET_IEEE_R_FRAME_OK_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_FRAME_OK_COUNT_SHIFT)) & ENET_IEEE_R_FRAME_OK_COUNT_MASK)
7398#define ENET_IEEE_R_FRAME_OK_COUNT ENET_IEEE_R_FRAME_OK_COUNT_MASK
7399
7400/*! @name IEEE_R_CRC - Frames Received with CRC Error Statistic Register */
7401#define ENET_IEEE_R_CRC_COUNT_MASK (0xFFFFU)
7402#define ENET_IEEE_R_CRC_COUNT_SHIFT (0U)
7403#define ENET_IEEE_R_CRC_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_CRC_COUNT_SHIFT)) & ENET_IEEE_R_CRC_COUNT_MASK)
7404#define ENET_IEEE_R_CRC_COUNT ENET_IEEE_R_CRC_COUNT_MASK
7405
7406/*! @name IEEE_R_ALIGN - Frames Received with Alignment Error Statistic Register */
7407#define ENET_IEEE_R_ALIGN_COUNT_MASK (0xFFFFU)
7408#define ENET_IEEE_R_ALIGN_COUNT_SHIFT (0U)
7409#define ENET_IEEE_R_ALIGN_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_ALIGN_COUNT_SHIFT)) & ENET_IEEE_R_ALIGN_COUNT_MASK)
7410#define ENET_IEEE_R_ALIGN_COUNT ENET_IEEE_R_ALIGN_COUNT_MASK
7411
7412/*! @name IEEE_R_MACERR - Receive FIFO Overflow Count Statistic Register */
7413#define ENET_IEEE_R_MACERR_COUNT_MASK (0xFFFFU)
7414#define ENET_IEEE_R_MACERR_COUNT_SHIFT (0U)
7415#define ENET_IEEE_R_MACERR_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_MACERR_COUNT_SHIFT)) & ENET_IEEE_R_MACERR_COUNT_MASK)
7416#define ENET_IEEE_R_MACERR_COUNT ENET_IEEE_R_MACERR_COUNT_MASK
7417
7418/*! @name IEEE_R_FDXFC - Flow Control Pause Frames Received Statistic Register */
7419#define ENET_IEEE_R_FDXFC_COUNT_MASK (0xFFFFU)
7420#define ENET_IEEE_R_FDXFC_COUNT_SHIFT (0U)
7421#define ENET_IEEE_R_FDXFC_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_FDXFC_COUNT_SHIFT)) & ENET_IEEE_R_FDXFC_COUNT_MASK)
7422#define ENET_IEEE_R_FDXFC_COUNT ENET_IEEE_R_FDXFC_COUNT_MASK
7423
7424/*! @name IEEE_R_OCTETS_OK - Octet Count for Frames Received without Error Statistic Register */
7425#define ENET_IEEE_R_OCTETS_OK_COUNT_MASK (0xFFFFFFFFU)
7426#define ENET_IEEE_R_OCTETS_OK_COUNT_SHIFT (0U)
7427#define ENET_IEEE_R_OCTETS_OK_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_OCTETS_OK_COUNT_SHIFT)) & ENET_IEEE_R_OCTETS_OK_COUNT_MASK)
7428#define ENET_IEEE_R_OCTETS_OK_COUNT ENET_IEEE_R_OCTETS_OK_COUNT_MASK
7429
7430/*! @name ATCR - Adjustable Timer Control Register */
7431#define ENET_ATCR_EN_MASK (0x1U)
7432#define ENET_ATCR_EN_SHIFT (0U)
7433#define ENET_ATCR_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCR_EN_SHIFT)) & ENET_ATCR_EN_MASK)
7434#define ENET_ATCR_EN ENET_ATCR_EN_MASK
7435#define ENET_ATCR_OFFEN_MASK (0x4U)
7436#define ENET_ATCR_OFFEN_SHIFT (2U)
7437#define ENET_ATCR_OFFEN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCR_OFFEN_SHIFT)) & ENET_ATCR_OFFEN_MASK)
7438#define ENET_ATCR_OFFEN ENET_ATCR_OFFEN_MASK
7439#define ENET_ATCR_OFFRST_MASK (0x8U)
7440#define ENET_ATCR_OFFRST_SHIFT (3U)
7441#define ENET_ATCR_OFFRST_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCR_OFFRST_SHIFT)) & ENET_ATCR_OFFRST_MASK)
7442#define ENET_ATCR_OFFRST ENET_ATCR_OFFRST_MASK
7443#define ENET_ATCR_PEREN_MASK (0x10U)
7444#define ENET_ATCR_PEREN_SHIFT (4U)
7445#define ENET_ATCR_PEREN_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCR_PEREN_SHIFT)) & ENET_ATCR_PEREN_MASK)
7446#define ENET_ATCR_PEREN ENET_ATCR_PEREN_MASK
7447#define ENET_ATCR_PINPER_MASK (0x80U)
7448#define ENET_ATCR_PINPER_SHIFT (7U)
7449#define ENET_ATCR_PINPER_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCR_PINPER_SHIFT)) & ENET_ATCR_PINPER_MASK)
7450#define ENET_ATCR_PINPER ENET_ATCR_PINPER_MASK
7451#define ENET_ATCR_RESTART_MASK (0x200U)
7452#define ENET_ATCR_RESTART_SHIFT (9U)
7453#define ENET_ATCR_RESTART_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCR_RESTART_SHIFT)) & ENET_ATCR_RESTART_MASK)
7454#define ENET_ATCR_RESTART ENET_ATCR_RESTART_MASK
7455#define ENET_ATCR_CAPTURE_MASK (0x800U)
7456#define ENET_ATCR_CAPTURE_SHIFT (11U)
7457#define ENET_ATCR_CAPTURE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCR_CAPTURE_SHIFT)) & ENET_ATCR_CAPTURE_MASK)
7458#define ENET_ATCR_CAPTURE ENET_ATCR_CAPTURE_MASK
7459#define ENET_ATCR_SLAVE_MASK (0x2000U)
7460#define ENET_ATCR_SLAVE_SHIFT (13U)
7461#define ENET_ATCR_SLAVE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCR_SLAVE_SHIFT)) & ENET_ATCR_SLAVE_MASK)
7462#define ENET_ATCR_SLAVE ENET_ATCR_SLAVE_MASK
7463
7464/*! @name ATVR - Timer Value Register */
7465#define ENET_ATVR_ATIME_MASK (0xFFFFFFFFU)
7466#define ENET_ATVR_ATIME_SHIFT (0U)
7467#define ENET_ATVR_ATIME_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATVR_ATIME_SHIFT)) & ENET_ATVR_ATIME_MASK)
7468#define ENET_ATVR_ATIME ENET_ATVR_ATIME_MASK
7469
7470/*! @name ATOFF - Timer Offset Register */
7471#define ENET_ATOFF_OFFSET_MASK (0xFFFFFFFFU)
7472#define ENET_ATOFF_OFFSET_SHIFT (0U)
7473#define ENET_ATOFF_OFFSET_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATOFF_OFFSET_SHIFT)) & ENET_ATOFF_OFFSET_MASK)
7474#define ENET_ATOFF_OFFSET ENET_ATOFF_OFFSET_MASK
7475
7476/*! @name ATPER - Timer Period Register */
7477#define ENET_ATPER_PERIOD_MASK (0xFFFFFFFFU)
7478#define ENET_ATPER_PERIOD_SHIFT (0U)
7479#define ENET_ATPER_PERIOD_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATPER_PERIOD_SHIFT)) & ENET_ATPER_PERIOD_MASK)
7480#define ENET_ATPER_PERIOD ENET_ATPER_PERIOD_MASK
7481
7482/*! @name ATCOR - Timer Correction Register */
7483#define ENET_ATCOR_COR_MASK (0x7FFFFFFFU)
7484#define ENET_ATCOR_COR_SHIFT (0U)
7485#define ENET_ATCOR_COR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCOR_COR_SHIFT)) & ENET_ATCOR_COR_MASK)
7486#define ENET_ATCOR_COR ENET_ATCOR_COR_MASK
7487
7488/*! @name ATINC - Time-Stamping Clock Period Register */
7489#define ENET_ATINC_INC_MASK (0x7FU)
7490#define ENET_ATINC_INC_SHIFT (0U)
7491#define ENET_ATINC_INC_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATINC_INC_SHIFT)) & ENET_ATINC_INC_MASK)
7492#define ENET_ATINC_INC ENET_ATINC_INC_MASK
7493#define ENET_ATINC_INC_CORR_MASK (0x7F00U)
7494#define ENET_ATINC_INC_CORR_SHIFT (8U)
7495#define ENET_ATINC_INC_CORR_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATINC_INC_CORR_SHIFT)) & ENET_ATINC_INC_CORR_MASK)
7496#define ENET_ATINC_INC_CORR ENET_ATINC_INC_CORR_MASK
7497
7498/*! @name ATSTMP - Timestamp of Last Transmitted Frame */
7499#define ENET_ATSTMP_TIMESTAMP_MASK (0xFFFFFFFFU)
7500#define ENET_ATSTMP_TIMESTAMP_SHIFT (0U)
7501#define ENET_ATSTMP_TIMESTAMP_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATSTMP_TIMESTAMP_SHIFT)) & ENET_ATSTMP_TIMESTAMP_MASK)
7502#define ENET_ATSTMP_TIMESTAMP ENET_ATSTMP_TIMESTAMP_MASK
7503
7504/*! @name TGSR - Timer Global Status Register */
7505#define ENET_TGSR_TF0_MASK (0x1U)
7506#define ENET_TGSR_TF0_SHIFT (0U)
7507#define ENET_TGSR_TF0_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TGSR_TF0_SHIFT)) & ENET_TGSR_TF0_MASK)
7508#define ENET_TGSR_TF0 ENET_TGSR_TF0_MASK
7509#define ENET_TGSR_TF1_MASK (0x2U)
7510#define ENET_TGSR_TF1_SHIFT (1U)
7511#define ENET_TGSR_TF1_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TGSR_TF1_SHIFT)) & ENET_TGSR_TF1_MASK)
7512#define ENET_TGSR_TF1 ENET_TGSR_TF1_MASK
7513#define ENET_TGSR_TF2_MASK (0x4U)
7514#define ENET_TGSR_TF2_SHIFT (2U)
7515#define ENET_TGSR_TF2_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TGSR_TF2_SHIFT)) & ENET_TGSR_TF2_MASK)
7516#define ENET_TGSR_TF2 ENET_TGSR_TF2_MASK
7517#define ENET_TGSR_TF3_MASK (0x8U)
7518#define ENET_TGSR_TF3_SHIFT (3U)
7519#define ENET_TGSR_TF3_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TGSR_TF3_SHIFT)) & ENET_TGSR_TF3_MASK)
7520#define ENET_TGSR_TF3 ENET_TGSR_TF3_MASK
7521
7522/*! @name TCSR - Timer Control Status Register */
7523#define ENET_TCSR_TDRE_MASK (0x1U)
7524#define ENET_TCSR_TDRE_SHIFT (0U)
7525#define ENET_TCSR_TDRE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCSR_TDRE_SHIFT)) & ENET_TCSR_TDRE_MASK)
7526#define ENET_TCSR_TDRE ENET_TCSR_TDRE_MASK
7527#define ENET_TCSR_TMODE_MASK (0x3CU)
7528#define ENET_TCSR_TMODE_SHIFT (2U)
7529#define ENET_TCSR_TMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCSR_TMODE_SHIFT)) & ENET_TCSR_TMODE_MASK)
7530#define ENET_TCSR_TMODE ENET_TCSR_TMODE_MASK
7531#define ENET_TCSR_TIE_MASK (0x40U)
7532#define ENET_TCSR_TIE_SHIFT (6U)
7533#define ENET_TCSR_TIE_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCSR_TIE_SHIFT)) & ENET_TCSR_TIE_MASK)
7534#define ENET_TCSR_TIE ENET_TCSR_TIE_MASK
7535#define ENET_TCSR_TF_MASK (0x80U)
7536#define ENET_TCSR_TF_SHIFT (7U)
7537#define ENET_TCSR_TF_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCSR_TF_SHIFT)) & ENET_TCSR_TF_MASK)
7538#define ENET_TCSR_TF ENET_TCSR_TF_MASK
7539
7540/* The count of ENET_TCSR */
7541#define ENET_TCSR_COUNT (4U)
7542
7543/*! @name TCCR - Timer Compare Capture Register */
7544#define ENET_TCCR_TCC_MASK (0xFFFFFFFFU)
7545#define ENET_TCCR_TCC_SHIFT (0U)
7546#define ENET_TCCR_TCC_SET(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCCR_TCC_SHIFT)) & ENET_TCCR_TCC_MASK)
7547#define ENET_TCCR_TCC ENET_TCCR_TCC_MASK
7548
7549/* The count of ENET_TCCR */
7550#define ENET_TCCR_COUNT (4U)
7551
7552
7553/*!
7554 * @}
7555 */ /* end of group ENET_Register_Masks */
7556
7557
7558/* ENET - Peripheral instance base addresses */
7559/** Peripheral ENET base address */
7560#define ENET_BASE (0x400C0000u)
7561/** Peripheral ENET base pointer */
7562#define ENET ((ENET_TypeDef *)ENET_BASE)
7563/** Array initializer of ENET peripheral base addresses */
7564#define ENET_BASE_ADDRS { ENET_BASE }
7565/** Array initializer of ENET peripheral base pointers */
7566#define ENET_BASE_PTRS { ENET }
7567/** Interrupt vectors for the ENET peripheral type */
7568#define ENET_Transmit_IRQS { ENET_Transmit_IRQn }
7569#define ENET_Receive_IRQS { ENET_Receive_IRQn }
7570#define ENET_Error_IRQS { ENET_Error_IRQn }
7571#define ENET_1588_Timer_IRQS { ENET_1588_Timer_IRQn }
7572/* ENET Buffer Descriptor and Buffer Address Alignment. */
7573#define ENET_BUFF_ALIGNMENT (16U)
7574
7575
7576/*!
7577 * @}
7578 */ /* end of group ENET_Peripheral_Access_Layer */
7579
7580
7581/* ----------------------------------------------------------------------------
7582 -- EWM Peripheral Access Layer
7583 ---------------------------------------------------------------------------- */
7584
7585/*!
7586 * @addtogroup EWM_Peripheral_Access_Layer EWM Peripheral Access Layer
7587 * @{
7588 */
7589
7590/** EWM - Register Layout Typedef */
7591typedef struct {
7592 __IO uint8_t CTRL; /**< Control Register, offset: 0x0 */
7593 __O uint8_t SERV; /**< Service Register, offset: 0x1 */
7594 __IO uint8_t CMPL; /**< Compare Low Register, offset: 0x2 */
7595 __IO uint8_t CMPH; /**< Compare High Register, offset: 0x3 */
7596} EWM_TypeDef;
7597
7598/* ----------------------------------------------------------------------------
7599 -- EWM Register Masks
7600 ---------------------------------------------------------------------------- */
7601
7602/*!
7603 * @addtogroup EWM_Register_Masks EWM Register Masks
7604 * @{
7605 */
7606
7607/*! @name CTRL - Control Register */
7608#define EWM_CTRL_EWMEN_MASK (0x1U)
7609#define EWM_CTRL_EWMEN_SHIFT (0U)
7610#define EWM_CTRL_EWMEN_SET(x) (((uint8_t)(((uint8_t)(x)) << EWM_CTRL_EWMEN_SHIFT)) & EWM_CTRL_EWMEN_MASK)
7611#define EWM_CTRL_EWMEN EWM_CTRL_EWMEN_MASK
7612#define EWM_CTRL_ASSIN_MASK (0x2U)
7613#define EWM_CTRL_ASSIN_SHIFT (1U)
7614#define EWM_CTRL_ASSIN_SET(x) (((uint8_t)(((uint8_t)(x)) << EWM_CTRL_ASSIN_SHIFT)) & EWM_CTRL_ASSIN_MASK)
7615#define EWM_CTRL_ASSIN EWM_CTRL_ASSIN_MASK
7616#define EWM_CTRL_INEN_MASK (0x4U)
7617#define EWM_CTRL_INEN_SHIFT (2U)
7618#define EWM_CTRL_INEN_SET(x) (((uint8_t)(((uint8_t)(x)) << EWM_CTRL_INEN_SHIFT)) & EWM_CTRL_INEN_MASK)
7619#define EWM_CTRL_INEN EWM_CTRL_INEN_MASK
7620#define EWM_CTRL_INTEN_MASK (0x8U)
7621#define EWM_CTRL_INTEN_SHIFT (3U)
7622#define EWM_CTRL_INTEN_SET(x) (((uint8_t)(((uint8_t)(x)) << EWM_CTRL_INTEN_SHIFT)) & EWM_CTRL_INTEN_MASK)
7623#define EWM_CTRL_INTEN EWM_CTRL_INTEN_MASK
7624
7625/*! @name SERV - Service Register */
7626#define EWM_SERV_SERVICE_MASK (0xFFU)
7627#define EWM_SERV_SERVICE_SHIFT (0U)
7628#define EWM_SERV_SERVICE_SET(x) (((uint8_t)(((uint8_t)(x)) << EWM_SERV_SERVICE_SHIFT)) & EWM_SERV_SERVICE_MASK)
7629#define EWM_SERV_SERVICE EWM_SERV_SERVICE_MASK
7630
7631/*! @name CMPL - Compare Low Register */
7632#define EWM_CMPL_COMPAREL_MASK (0xFFU)
7633#define EWM_CMPL_COMPAREL_SHIFT (0U)
7634#define EWM_CMPL_COMPAREL_SET(x) (((uint8_t)(((uint8_t)(x)) << EWM_CMPL_COMPAREL_SHIFT)) & EWM_CMPL_COMPAREL_MASK)
7635#define EWM_CMPL_COMPAREL EWM_CMPL_COMPAREL_MASK
7636
7637/*! @name CMPH - Compare High Register */
7638#define EWM_CMPH_COMPAREH_MASK (0xFFU)
7639#define EWM_CMPH_COMPAREH_SHIFT (0U)
7640#define EWM_CMPH_COMPAREH_SET(x) (((uint8_t)(((uint8_t)(x)) << EWM_CMPH_COMPAREH_SHIFT)) & EWM_CMPH_COMPAREH_MASK)
7641#define EWM_CMPH_COMPAREH EWM_CMPH_COMPAREH_MASK
7642
7643
7644/*!
7645 * @}
7646 */ /* end of group EWM_Register_Masks */
7647
7648
7649/* EWM - Peripheral instance base addresses */
7650/** Peripheral EWM base address */
7651#define EWM_BASE (0x40061000u)
7652/** Peripheral EWM base pointer */
7653#define EWM ((EWM_TypeDef *)EWM_BASE)
7654/** Array initializer of EWM peripheral base addresses */
7655#define EWM_BASE_ADDRS { EWM_BASE }
7656/** Array initializer of EWM peripheral base pointers */
7657#define EWM_BASE_PTRS { EWM }
7658/** Interrupt vectors for the EWM peripheral type */
7659#define EWM_IRQS { WDOG_EWM_IRQn }
7660
7661/*!
7662 * @}
7663 */ /* end of group EWM_Peripheral_Access_Layer */
7664
7665
7666/* ----------------------------------------------------------------------------
7667 -- FB Peripheral Access Layer
7668 ---------------------------------------------------------------------------- */
7669
7670/*!
7671 * @addtogroup FB_Peripheral_Access_Layer FB Peripheral Access Layer
7672 * @{
7673 */
7674
7675/** FB - Register Layout Typedef */
7676typedef struct {
7677 struct { /* offset: 0x0, array step: 0xC */
7678 __IO uint32_t CSAR; /**< Chip Select Address Register, array offset: 0x0, array step: 0xC */
7679 __IO uint32_t CSMR; /**< Chip Select Mask Register, array offset: 0x4, array step: 0xC */
7680 __IO uint32_t CSCR; /**< Chip Select Control Register, array offset: 0x8, array step: 0xC */
7681 } CS[6];
7682 uint8_t RESERVED_0[24];
7683 __IO uint32_t CSPMCR; /**< Chip Select port Multiplexing Control Register, offset: 0x60 */
7684} FB_TypeDef;
7685
7686/* ----------------------------------------------------------------------------
7687 -- FB Register Masks
7688 ---------------------------------------------------------------------------- */
7689
7690/*!
7691 * @addtogroup FB_Register_Masks FB Register Masks
7692 * @{
7693 */
7694
7695/*! @name CSAR - Chip Select Address Register */
7696#define FB_CSAR_BA_MASK (0xFFFF0000U)
7697#define FB_CSAR_BA_SHIFT (16U)
7698#define FB_CSAR_BA_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSAR_BA_SHIFT)) & FB_CSAR_BA_MASK)
7699#define FB_CSAR_BA FB_CSAR_BA_MASK
7700
7701/* The count of FB_CSAR */
7702#define FB_CSAR_COUNT (6U)
7703
7704/*! @name CSMR - Chip Select Mask Register */
7705#define FB_CSMR_V_MASK (0x1U)
7706#define FB_CSMR_V_SHIFT (0U)
7707#define FB_CSMR_V_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSMR_V_SHIFT)) & FB_CSMR_V_MASK)
7708#define FB_CSMR_V FB_CSMR_V_MASK
7709#define FB_CSMR_WP_MASK (0x100U)
7710#define FB_CSMR_WP_SHIFT (8U)
7711#define FB_CSMR_WP_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSMR_WP_SHIFT)) & FB_CSMR_WP_MASK)
7712#define FB_CSMR_WP FB_CSMR_WP_MASK
7713#define FB_CSMR_BAM_MASK (0xFFFF0000U)
7714#define FB_CSMR_BAM_SHIFT (16U)
7715#define FB_CSMR_BAM_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSMR_BAM_SHIFT)) & FB_CSMR_BAM_MASK)
7716#define FB_CSMR_BAM FB_CSMR_BAM_MASK
7717
7718/* The count of FB_CSMR */
7719#define FB_CSMR_COUNT (6U)
7720
7721/*! @name CSCR - Chip Select Control Register */
7722#define FB_CSCR_BSTW_MASK (0x8U)
7723#define FB_CSCR_BSTW_SHIFT (3U)
7724#define FB_CSCR_BSTW_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_BSTW_SHIFT)) & FB_CSCR_BSTW_MASK)
7725#define FB_CSCR_BSTW FB_CSCR_BSTW_MASK
7726#define FB_CSCR_BSTR_MASK (0x10U)
7727#define FB_CSCR_BSTR_SHIFT (4U)
7728#define FB_CSCR_BSTR_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_BSTR_SHIFT)) & FB_CSCR_BSTR_MASK)
7729#define FB_CSCR_BSTR FB_CSCR_BSTR_MASK
7730#define FB_CSCR_BEM_MASK (0x20U)
7731#define FB_CSCR_BEM_SHIFT (5U)
7732#define FB_CSCR_BEM_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_BEM_SHIFT)) & FB_CSCR_BEM_MASK)
7733#define FB_CSCR_BEM FB_CSCR_BEM_MASK
7734#define FB_CSCR_PS_MASK (0xC0U)
7735#define FB_CSCR_PS_SHIFT (6U)
7736#define FB_CSCR_PS_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_PS_SHIFT)) & FB_CSCR_PS_MASK)
7737#define FB_CSCR_PS FB_CSCR_PS_MASK
7738#define FB_CSCR_AA_MASK (0x100U)
7739#define FB_CSCR_AA_SHIFT (8U)
7740#define FB_CSCR_AA_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_AA_SHIFT)) & FB_CSCR_AA_MASK)
7741#define FB_CSCR_AA FB_CSCR_AA_MASK
7742#define FB_CSCR_BLS_MASK (0x200U)
7743#define FB_CSCR_BLS_SHIFT (9U)
7744#define FB_CSCR_BLS_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_BLS_SHIFT)) & FB_CSCR_BLS_MASK)
7745#define FB_CSCR_BLS FB_CSCR_BLS_MASK
7746#define FB_CSCR_WS_MASK (0xFC00U)
7747#define FB_CSCR_WS_SHIFT (10U)
7748#define FB_CSCR_WS_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_WS_SHIFT)) & FB_CSCR_WS_MASK)
7749#define FB_CSCR_WS FB_CSCR_WS_MASK
7750#define FB_CSCR_WRAH_MASK (0x30000U)
7751#define FB_CSCR_WRAH_SHIFT (16U)
7752#define FB_CSCR_WRAH_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_WRAH_SHIFT)) & FB_CSCR_WRAH_MASK)
7753#define FB_CSCR_WRAH FB_CSCR_WRAH_MASK
7754#define FB_CSCR_RDAH_MASK (0xC0000U)
7755#define FB_CSCR_RDAH_SHIFT (18U)
7756#define FB_CSCR_RDAH_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_RDAH_SHIFT)) & FB_CSCR_RDAH_MASK)
7757#define FB_CSCR_RDAH FB_CSCR_RDAH_MASK
7758#define FB_CSCR_ASET_MASK (0x300000U)
7759#define FB_CSCR_ASET_SHIFT (20U)
7760#define FB_CSCR_ASET_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_ASET_SHIFT)) & FB_CSCR_ASET_MASK)
7761#define FB_CSCR_ASET FB_CSCR_ASET_MASK
7762#define FB_CSCR_EXTS_MASK (0x400000U)
7763#define FB_CSCR_EXTS_SHIFT (22U)
7764#define FB_CSCR_EXTS_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_EXTS_SHIFT)) & FB_CSCR_EXTS_MASK)
7765#define FB_CSCR_EXTS FB_CSCR_EXTS_MASK
7766#define FB_CSCR_SWSEN_MASK (0x800000U)
7767#define FB_CSCR_SWSEN_SHIFT (23U)
7768#define FB_CSCR_SWSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_SWSEN_SHIFT)) & FB_CSCR_SWSEN_MASK)
7769#define FB_CSCR_SWSEN FB_CSCR_SWSEN_MASK
7770#define FB_CSCR_SWS_MASK (0xFC000000U)
7771#define FB_CSCR_SWS_SHIFT (26U)
7772#define FB_CSCR_SWS_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_SWS_SHIFT)) & FB_CSCR_SWS_MASK)
7773#define FB_CSCR_SWS FB_CSCR_SWS_MASK
7774
7775/* The count of FB_CSCR */
7776#define FB_CSCR_COUNT (6U)
7777
7778/*! @name CSPMCR - Chip Select port Multiplexing Control Register */
7779#define FB_CSPMCR_GROUP5_MASK (0xF000U)
7780#define FB_CSPMCR_GROUP5_SHIFT (12U)
7781#define FB_CSPMCR_GROUP5_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP5_SHIFT)) & FB_CSPMCR_GROUP5_MASK)
7782#define FB_CSPMCR_GROUP5 FB_CSPMCR_GROUP5_MASK
7783#define FB_CSPMCR_GROUP4_MASK (0xF0000U)
7784#define FB_CSPMCR_GROUP4_SHIFT (16U)
7785#define FB_CSPMCR_GROUP4_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP4_SHIFT)) & FB_CSPMCR_GROUP4_MASK)
7786#define FB_CSPMCR_GROUP4 FB_CSPMCR_GROUP4_MASK
7787#define FB_CSPMCR_GROUP3_MASK (0xF00000U)
7788#define FB_CSPMCR_GROUP3_SHIFT (20U)
7789#define FB_CSPMCR_GROUP3_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP3_SHIFT)) & FB_CSPMCR_GROUP3_MASK)
7790#define FB_CSPMCR_GROUP3 FB_CSPMCR_GROUP3_MASK
7791#define FB_CSPMCR_GROUP2_MASK (0xF000000U)
7792#define FB_CSPMCR_GROUP2_SHIFT (24U)
7793#define FB_CSPMCR_GROUP2_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP2_SHIFT)) & FB_CSPMCR_GROUP2_MASK)
7794#define FB_CSPMCR_GROUP2 FB_CSPMCR_GROUP2_MASK
7795#define FB_CSPMCR_GROUP1_MASK (0xF0000000U)
7796#define FB_CSPMCR_GROUP1_SHIFT (28U)
7797#define FB_CSPMCR_GROUP1_SET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP1_SHIFT)) & FB_CSPMCR_GROUP1_MASK)
7798#define FB_CSPMCR_GROUP1 FB_CSPMCR_GROUP1_MASK
7799
7800
7801/*!
7802 * @}
7803 */ /* end of group FB_Register_Masks */
7804
7805
7806/* FB - Peripheral instance base addresses */
7807/** Peripheral FB base address */
7808#define FB_BASE (0x4000C000u)
7809/** Peripheral FB base pointer */
7810#define FB ((FB_TypeDef *)FB_BASE)
7811/** Array initializer of FB peripheral base addresses */
7812#define FB_BASE_ADDRS { FB_BASE }
7813/** Array initializer of FB peripheral base pointers */
7814#define FB_BASE_PTRS { FB }
7815
7816/*!
7817 * @}
7818 */ /* end of group FB_Peripheral_Access_Layer */
7819
7820
7821/* ----------------------------------------------------------------------------
7822 -- FMC Peripheral Access Layer
7823 ---------------------------------------------------------------------------- */
7824
7825/*!
7826 * @addtogroup FMC_Peripheral_Access_Layer FMC Peripheral Access Layer
7827 * @{
7828 */
7829
7830/** FMC - Register Layout Typedef */
7831typedef struct {
7832 __IO uint32_t PFAPR; /**< Flash Access Protection Register, offset: 0x0 */
7833 __IO uint32_t PFB01CR; /**< Flash Bank 0-1 Control Register, offset: 0x4 */
7834 __IO uint32_t PFB23CR; /**< Flash Bank 2-3 Control Register, offset: 0x8 */
7835 uint8_t RESERVED_0[244];
7836 __IO uint32_t TAGVDW0S[4]; /**< Cache Tag Storage, array offset: 0x100, array step: 0x4 */
7837 __IO uint32_t TAGVDW1S[4]; /**< Cache Tag Storage, array offset: 0x110, array step: 0x4 */
7838 __IO uint32_t TAGVDW2S[4]; /**< Cache Tag Storage, array offset: 0x120, array step: 0x4 */
7839 __IO uint32_t TAGVDW3S[4]; /**< Cache Tag Storage, array offset: 0x130, array step: 0x4 */
7840 uint8_t RESERVED_1[192];
7841 struct { /* offset: 0x200, array step: index*0x40, index2*0x10 */
7842 __IO uint32_t DATA_UM; /**< Cache Data Storage (uppermost word), array offset: 0x200, array step: index*0x40, index2*0x10 */
7843 __IO uint32_t DATA_MU; /**< Cache Data Storage (mid-upper word), array offset: 0x204, array step: index*0x40, index2*0x10 */
7844 __IO uint32_t DATA_ML; /**< Cache Data Storage (mid-lower word), array offset: 0x208, array step: index*0x40, index2*0x10 */
7845 __IO uint32_t DATA_LM; /**< Cache Data Storage (lowermost word), array offset: 0x20C, array step: index*0x40, index2*0x10 */
7846 } SET[4][4];
7847} FMC_TypeDef;
7848
7849/* ----------------------------------------------------------------------------
7850 -- FMC Register Masks
7851 ---------------------------------------------------------------------------- */
7852
7853/*!
7854 * @addtogroup FMC_Register_Masks FMC Register Masks
7855 * @{
7856 */
7857
7858/*! @name PFAPR - Flash Access Protection Register */
7859#define FMC_PFAPR_M0AP_MASK (0x3U)
7860#define FMC_PFAPR_M0AP_SHIFT (0U)
7861#define FMC_PFAPR_M0AP_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M0AP_SHIFT)) & FMC_PFAPR_M0AP_MASK)
7862#define FMC_PFAPR_M0AP FMC_PFAPR_M0AP_MASK
7863#define FMC_PFAPR_M1AP_MASK (0xCU)
7864#define FMC_PFAPR_M1AP_SHIFT (2U)
7865#define FMC_PFAPR_M1AP_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M1AP_SHIFT)) & FMC_PFAPR_M1AP_MASK)
7866#define FMC_PFAPR_M1AP FMC_PFAPR_M1AP_MASK
7867#define FMC_PFAPR_M2AP_MASK (0x30U)
7868#define FMC_PFAPR_M2AP_SHIFT (4U)
7869#define FMC_PFAPR_M2AP_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M2AP_SHIFT)) & FMC_PFAPR_M2AP_MASK)
7870#define FMC_PFAPR_M2AP FMC_PFAPR_M2AP_MASK
7871#define FMC_PFAPR_M3AP_MASK (0xC0U)
7872#define FMC_PFAPR_M3AP_SHIFT (6U)
7873#define FMC_PFAPR_M3AP_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M3AP_SHIFT)) & FMC_PFAPR_M3AP_MASK)
7874#define FMC_PFAPR_M3AP FMC_PFAPR_M3AP_MASK
7875#define FMC_PFAPR_M4AP_MASK (0x300U)
7876#define FMC_PFAPR_M4AP_SHIFT (8U)
7877#define FMC_PFAPR_M4AP_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M4AP_SHIFT)) & FMC_PFAPR_M4AP_MASK)
7878#define FMC_PFAPR_M4AP FMC_PFAPR_M4AP_MASK
7879#define FMC_PFAPR_M5AP_MASK (0xC00U)
7880#define FMC_PFAPR_M5AP_SHIFT (10U)
7881#define FMC_PFAPR_M5AP_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M5AP_SHIFT)) & FMC_PFAPR_M5AP_MASK)
7882#define FMC_PFAPR_M5AP FMC_PFAPR_M5AP_MASK
7883#define FMC_PFAPR_M6AP_MASK (0x3000U)
7884#define FMC_PFAPR_M6AP_SHIFT (12U)
7885#define FMC_PFAPR_M6AP_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M6AP_SHIFT)) & FMC_PFAPR_M6AP_MASK)
7886#define FMC_PFAPR_M6AP FMC_PFAPR_M6AP_MASK
7887#define FMC_PFAPR_M7AP_MASK (0xC000U)
7888#define FMC_PFAPR_M7AP_SHIFT (14U)
7889#define FMC_PFAPR_M7AP_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M7AP_SHIFT)) & FMC_PFAPR_M7AP_MASK)
7890#define FMC_PFAPR_M7AP FMC_PFAPR_M7AP_MASK
7891#define FMC_PFAPR_M0PFD_MASK (0x10000U)
7892#define FMC_PFAPR_M0PFD_SHIFT (16U)
7893#define FMC_PFAPR_M0PFD_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M0PFD_SHIFT)) & FMC_PFAPR_M0PFD_MASK)
7894#define FMC_PFAPR_M0PFD FMC_PFAPR_M0PFD_MASK
7895#define FMC_PFAPR_M1PFD_MASK (0x20000U)
7896#define FMC_PFAPR_M1PFD_SHIFT (17U)
7897#define FMC_PFAPR_M1PFD_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M1PFD_SHIFT)) & FMC_PFAPR_M1PFD_MASK)
7898#define FMC_PFAPR_M1PFD FMC_PFAPR_M1PFD_MASK
7899#define FMC_PFAPR_M2PFD_MASK (0x40000U)
7900#define FMC_PFAPR_M2PFD_SHIFT (18U)
7901#define FMC_PFAPR_M2PFD_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M2PFD_SHIFT)) & FMC_PFAPR_M2PFD_MASK)
7902#define FMC_PFAPR_M2PFD FMC_PFAPR_M2PFD_MASK
7903#define FMC_PFAPR_M3PFD_MASK (0x80000U)
7904#define FMC_PFAPR_M3PFD_SHIFT (19U)
7905#define FMC_PFAPR_M3PFD_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M3PFD_SHIFT)) & FMC_PFAPR_M3PFD_MASK)
7906#define FMC_PFAPR_M3PFD FMC_PFAPR_M3PFD_MASK
7907#define FMC_PFAPR_M4PFD_MASK (0x100000U)
7908#define FMC_PFAPR_M4PFD_SHIFT (20U)
7909#define FMC_PFAPR_M4PFD_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M4PFD_SHIFT)) & FMC_PFAPR_M4PFD_MASK)
7910#define FMC_PFAPR_M4PFD FMC_PFAPR_M4PFD_MASK
7911#define FMC_PFAPR_M5PFD_MASK (0x200000U)
7912#define FMC_PFAPR_M5PFD_SHIFT (21U)
7913#define FMC_PFAPR_M5PFD_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M5PFD_SHIFT)) & FMC_PFAPR_M5PFD_MASK)
7914#define FMC_PFAPR_M5PFD FMC_PFAPR_M5PFD_MASK
7915#define FMC_PFAPR_M6PFD_MASK (0x400000U)
7916#define FMC_PFAPR_M6PFD_SHIFT (22U)
7917#define FMC_PFAPR_M6PFD_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M6PFD_SHIFT)) & FMC_PFAPR_M6PFD_MASK)
7918#define FMC_PFAPR_M6PFD FMC_PFAPR_M6PFD_MASK
7919#define FMC_PFAPR_M7PFD_MASK (0x800000U)
7920#define FMC_PFAPR_M7PFD_SHIFT (23U)
7921#define FMC_PFAPR_M7PFD_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M7PFD_SHIFT)) & FMC_PFAPR_M7PFD_MASK)
7922#define FMC_PFAPR_M7PFD FMC_PFAPR_M7PFD_MASK
7923
7924/*! @name PFB01CR - Flash Bank 0-1 Control Register */
7925#define FMC_PFB01CR_RFU_MASK (0x1U)
7926#define FMC_PFB01CR_RFU_SHIFT (0U)
7927#define FMC_PFB01CR_RFU_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_RFU_SHIFT)) & FMC_PFB01CR_RFU_MASK)
7928#define FMC_PFB01CR_RFU FMC_PFB01CR_RFU_MASK
7929#define FMC_PFB01CR_B0IPE_MASK (0x2U)
7930#define FMC_PFB01CR_B0IPE_SHIFT (1U)
7931#define FMC_PFB01CR_B0IPE_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_B0IPE_SHIFT)) & FMC_PFB01CR_B0IPE_MASK)
7932#define FMC_PFB01CR_B0IPE FMC_PFB01CR_B0IPE_MASK
7933#define FMC_PFB01CR_B0DPE_MASK (0x4U)
7934#define FMC_PFB01CR_B0DPE_SHIFT (2U)
7935#define FMC_PFB01CR_B0DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_B0DPE_SHIFT)) & FMC_PFB01CR_B0DPE_MASK)
7936#define FMC_PFB01CR_B0DPE FMC_PFB01CR_B0DPE_MASK
7937#define FMC_PFB01CR_B0ICE_MASK (0x8U)
7938#define FMC_PFB01CR_B0ICE_SHIFT (3U)
7939#define FMC_PFB01CR_B0ICE_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_B0ICE_SHIFT)) & FMC_PFB01CR_B0ICE_MASK)
7940#define FMC_PFB01CR_B0ICE FMC_PFB01CR_B0ICE_MASK
7941#define FMC_PFB01CR_B0DCE_MASK (0x10U)
7942#define FMC_PFB01CR_B0DCE_SHIFT (4U)
7943#define FMC_PFB01CR_B0DCE_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_B0DCE_SHIFT)) & FMC_PFB01CR_B0DCE_MASK)
7944#define FMC_PFB01CR_B0DCE FMC_PFB01CR_B0DCE_MASK
7945#define FMC_PFB01CR_CRC_MASK (0xE0U)
7946#define FMC_PFB01CR_CRC_SHIFT (5U)
7947#define FMC_PFB01CR_CRC_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_CRC_SHIFT)) & FMC_PFB01CR_CRC_MASK)
7948#define FMC_PFB01CR_CRC FMC_PFB01CR_CRC_MASK
7949#define FMC_PFB01CR_B0MW_MASK (0x60000U)
7950#define FMC_PFB01CR_B0MW_SHIFT (17U)
7951#define FMC_PFB01CR_B0MW_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_B0MW_SHIFT)) & FMC_PFB01CR_B0MW_MASK)
7952#define FMC_PFB01CR_B0MW FMC_PFB01CR_B0MW_MASK
7953#define FMC_PFB01CR_S_B_INV_MASK (0x80000U)
7954#define FMC_PFB01CR_S_B_INV_SHIFT (19U)
7955#define FMC_PFB01CR_S_B_INV_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_S_B_INV_SHIFT)) & FMC_PFB01CR_S_B_INV_MASK)
7956#define FMC_PFB01CR_S_B_INV FMC_PFB01CR_S_B_INV_MASK
7957#define FMC_PFB01CR_CINV_WAY_MASK (0xF00000U)
7958#define FMC_PFB01CR_CINV_WAY_SHIFT (20U)
7959#define FMC_PFB01CR_CINV_WAY_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_CINV_WAY_SHIFT)) & FMC_PFB01CR_CINV_WAY_MASK)
7960#define FMC_PFB01CR_CINV_WAY FMC_PFB01CR_CINV_WAY_MASK
7961#define FMC_PFB01CR_CLCK_WAY_MASK (0xF000000U)
7962#define FMC_PFB01CR_CLCK_WAY_SHIFT (24U)
7963#define FMC_PFB01CR_CLCK_WAY_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_CLCK_WAY_SHIFT)) & FMC_PFB01CR_CLCK_WAY_MASK)
7964#define FMC_PFB01CR_CLCK_WAY FMC_PFB01CR_CLCK_WAY_MASK
7965#define FMC_PFB01CR_B0RWSC_MASK (0xF0000000U)
7966#define FMC_PFB01CR_B0RWSC_SHIFT (28U)
7967#define FMC_PFB01CR_B0RWSC_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB01CR_B0RWSC_SHIFT)) & FMC_PFB01CR_B0RWSC_MASK)
7968#define FMC_PFB01CR_B0RWSC FMC_PFB01CR_B0RWSC_MASK
7969
7970/*! @name PFB23CR - Flash Bank 2-3 Control Register */
7971#define FMC_PFB23CR_RFU_MASK (0x1U)
7972#define FMC_PFB23CR_RFU_SHIFT (0U)
7973#define FMC_PFB23CR_RFU_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB23CR_RFU_SHIFT)) & FMC_PFB23CR_RFU_MASK)
7974#define FMC_PFB23CR_RFU FMC_PFB23CR_RFU_MASK
7975#define FMC_PFB23CR_B1IPE_MASK (0x2U)
7976#define FMC_PFB23CR_B1IPE_SHIFT (1U)
7977#define FMC_PFB23CR_B1IPE_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB23CR_B1IPE_SHIFT)) & FMC_PFB23CR_B1IPE_MASK)
7978#define FMC_PFB23CR_B1IPE FMC_PFB23CR_B1IPE_MASK
7979#define FMC_PFB23CR_B1DPE_MASK (0x4U)
7980#define FMC_PFB23CR_B1DPE_SHIFT (2U)
7981#define FMC_PFB23CR_B1DPE_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB23CR_B1DPE_SHIFT)) & FMC_PFB23CR_B1DPE_MASK)
7982#define FMC_PFB23CR_B1DPE FMC_PFB23CR_B1DPE_MASK
7983#define FMC_PFB23CR_B1ICE_MASK (0x8U)
7984#define FMC_PFB23CR_B1ICE_SHIFT (3U)
7985#define FMC_PFB23CR_B1ICE_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB23CR_B1ICE_SHIFT)) & FMC_PFB23CR_B1ICE_MASK)
7986#define FMC_PFB23CR_B1ICE FMC_PFB23CR_B1ICE_MASK
7987#define FMC_PFB23CR_B1DCE_MASK (0x10U)
7988#define FMC_PFB23CR_B1DCE_SHIFT (4U)
7989#define FMC_PFB23CR_B1DCE_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB23CR_B1DCE_SHIFT)) & FMC_PFB23CR_B1DCE_MASK)
7990#define FMC_PFB23CR_B1DCE FMC_PFB23CR_B1DCE_MASK
7991#define FMC_PFB23CR_B1MW_MASK (0x60000U)
7992#define FMC_PFB23CR_B1MW_SHIFT (17U)
7993#define FMC_PFB23CR_B1MW_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB23CR_B1MW_SHIFT)) & FMC_PFB23CR_B1MW_MASK)
7994#define FMC_PFB23CR_B1MW FMC_PFB23CR_B1MW_MASK
7995#define FMC_PFB23CR_B1RWSC_MASK (0xF0000000U)
7996#define FMC_PFB23CR_B1RWSC_SHIFT (28U)
7997#define FMC_PFB23CR_B1RWSC_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB23CR_B1RWSC_SHIFT)) & FMC_PFB23CR_B1RWSC_MASK)
7998#define FMC_PFB23CR_B1RWSC FMC_PFB23CR_B1RWSC_MASK
7999
8000/*! @name TAGVDW0S - Cache Tag Storage */
8001#define FMC_TAGVDW0S_valid_MASK (0x1U)
8002#define FMC_TAGVDW0S_valid_SHIFT (0U)
8003#define FMC_TAGVDW0S_valid_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW0S_valid_SHIFT)) & FMC_TAGVDW0S_valid_MASK)
8004#define FMC_TAGVDW0S_valid FMC_TAGVDW0S_valid_MASK
8005#define FMC_TAGVDW0S_tag_MASK (0x3FFFC0U)
8006#define FMC_TAGVDW0S_tag_SHIFT (6U)
8007#define FMC_TAGVDW0S_tag_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW0S_tag_SHIFT)) & FMC_TAGVDW0S_tag_MASK)
8008#define FMC_TAGVDW0S_tag FMC_TAGVDW0S_tag_MASK
8009
8010/* The count of FMC_TAGVDW0S */
8011#define FMC_TAGVDW0S_COUNT (4U)
8012
8013/*! @name TAGVDW1S - Cache Tag Storage */
8014#define FMC_TAGVDW1S_valid_MASK (0x1U)
8015#define FMC_TAGVDW1S_valid_SHIFT (0U)
8016#define FMC_TAGVDW1S_valid_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW1S_valid_SHIFT)) & FMC_TAGVDW1S_valid_MASK)
8017#define FMC_TAGVDW1S_valid FMC_TAGVDW1S_valid_MASK
8018#define FMC_TAGVDW1S_tag_MASK (0x3FFFC0U)
8019#define FMC_TAGVDW1S_tag_SHIFT (6U)
8020#define FMC_TAGVDW1S_tag_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW1S_tag_SHIFT)) & FMC_TAGVDW1S_tag_MASK)
8021#define FMC_TAGVDW1S_tag FMC_TAGVDW1S_tag_MASK
8022
8023/* The count of FMC_TAGVDW1S */
8024#define FMC_TAGVDW1S_COUNT (4U)
8025
8026/*! @name TAGVDW2S - Cache Tag Storage */
8027#define FMC_TAGVDW2S_valid_MASK (0x1U)
8028#define FMC_TAGVDW2S_valid_SHIFT (0U)
8029#define FMC_TAGVDW2S_valid_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW2S_valid_SHIFT)) & FMC_TAGVDW2S_valid_MASK)
8030#define FMC_TAGVDW2S_valid FMC_TAGVDW2S_valid_MASK
8031#define FMC_TAGVDW2S_tag_MASK (0x3FFFC0U)
8032#define FMC_TAGVDW2S_tag_SHIFT (6U)
8033#define FMC_TAGVDW2S_tag_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW2S_tag_SHIFT)) & FMC_TAGVDW2S_tag_MASK)
8034#define FMC_TAGVDW2S_tag FMC_TAGVDW2S_tag_MASK
8035
8036/* The count of FMC_TAGVDW2S */
8037#define FMC_TAGVDW2S_COUNT (4U)
8038
8039/*! @name TAGVDW3S - Cache Tag Storage */
8040#define FMC_TAGVDW3S_valid_MASK (0x1U)
8041#define FMC_TAGVDW3S_valid_SHIFT (0U)
8042#define FMC_TAGVDW3S_valid_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW3S_valid_SHIFT)) & FMC_TAGVDW3S_valid_MASK)
8043#define FMC_TAGVDW3S_valid FMC_TAGVDW3S_valid_MASK
8044#define FMC_TAGVDW3S_tag_MASK (0x3FFFC0U)
8045#define FMC_TAGVDW3S_tag_SHIFT (6U)
8046#define FMC_TAGVDW3S_tag_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW3S_tag_SHIFT)) & FMC_TAGVDW3S_tag_MASK)
8047#define FMC_TAGVDW3S_tag FMC_TAGVDW3S_tag_MASK
8048
8049/* The count of FMC_TAGVDW3S */
8050#define FMC_TAGVDW3S_COUNT (4U)
8051
8052/*! @name DATA_UM - Cache Data Storage (uppermost word) */
8053#define FMC_DATA_UM_data_MASK (0xFFFFFFFFU)
8054#define FMC_DATA_UM_data_SHIFT (0U)
8055#define FMC_DATA_UM_data_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_DATA_UM_data_SHIFT)) & FMC_DATA_UM_data_MASK)
8056#define FMC_DATA_UM_data FMC_DATA_UM_data_MASK
8057
8058/* The count of FMC_DATA_UM */
8059#define FMC_DATA_UM_COUNT (4U)
8060
8061/* The count of FMC_DATA_UM */
8062#define FMC_DATA_UM_COUNT2 (4U)
8063
8064/*! @name DATA_MU - Cache Data Storage (mid-upper word) */
8065#define FMC_DATA_MU_data_MASK (0xFFFFFFFFU)
8066#define FMC_DATA_MU_data_SHIFT (0U)
8067#define FMC_DATA_MU_data_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_DATA_MU_data_SHIFT)) & FMC_DATA_MU_data_MASK)
8068#define FMC_DATA_MU_data FMC_DATA_MU_data_MASK
8069
8070/* The count of FMC_DATA_MU */
8071#define FMC_DATA_MU_COUNT (4U)
8072
8073/* The count of FMC_DATA_MU */
8074#define FMC_DATA_MU_COUNT2 (4U)
8075
8076/*! @name DATA_ML - Cache Data Storage (mid-lower word) */
8077#define FMC_DATA_ML_data_MASK (0xFFFFFFFFU)
8078#define FMC_DATA_ML_data_SHIFT (0U)
8079#define FMC_DATA_ML_data_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_DATA_ML_data_SHIFT)) & FMC_DATA_ML_data_MASK)
8080#define FMC_DATA_ML_data FMC_DATA_ML_data_MASK
8081
8082/* The count of FMC_DATA_ML */
8083#define FMC_DATA_ML_COUNT (4U)
8084
8085/* The count of FMC_DATA_ML */
8086#define FMC_DATA_ML_COUNT2 (4U)
8087
8088/*! @name DATA_LM - Cache Data Storage (lowermost word) */
8089#define FMC_DATA_LM_data_MASK (0xFFFFFFFFU)
8090#define FMC_DATA_LM_data_SHIFT (0U)
8091#define FMC_DATA_LM_data_SET(x) (((uint32_t)(((uint32_t)(x)) << FMC_DATA_LM_data_SHIFT)) & FMC_DATA_LM_data_MASK)
8092#define FMC_DATA_LM_data FMC_DATA_LM_data_MASK
8093
8094/* The count of FMC_DATA_LM */
8095#define FMC_DATA_LM_COUNT (4U)
8096
8097/* The count of FMC_DATA_LM */
8098#define FMC_DATA_LM_COUNT2 (4U)
8099
8100
8101/*!
8102 * @}
8103 */ /* end of group FMC_Register_Masks */
8104
8105
8106/* FMC - Peripheral instance base addresses */
8107/** Peripheral FMC base address */
8108#define FMC_BASE (0x4001F000u)
8109/** Peripheral FMC base pointer */
8110#define FMC ((FMC_TypeDef *)FMC_BASE)
8111/** Array initializer of FMC peripheral base addresses */
8112#define FMC_BASE_ADDRS { FMC_BASE }
8113/** Array initializer of FMC peripheral base pointers */
8114#define FMC_BASE_PTRS { FMC }
8115
8116/*!
8117 * @}
8118 */ /* end of group FMC_Peripheral_Access_Layer */
8119
8120
8121/* ----------------------------------------------------------------------------
8122 -- FTFE Peripheral Access Layer
8123 ---------------------------------------------------------------------------- */
8124
8125/*!
8126 * @addtogroup FTFE_Peripheral_Access_Layer FTFE Peripheral Access Layer
8127 * @{
8128 */
8129
8130/** FTFE - Register Layout Typedef */
8131typedef struct {
8132 __IO uint8_t FSTAT; /**< Flash Status Register, offset: 0x0 */
8133 __IO uint8_t FCNFG; /**< Flash Configuration Register, offset: 0x1 */
8134 __I uint8_t FSEC; /**< Flash Security Register, offset: 0x2 */
8135 __I uint8_t FOPT; /**< Flash Option Register, offset: 0x3 */
8136 __IO uint8_t FCCOB3; /**< Flash Common Command Object Registers, offset: 0x4 */
8137 __IO uint8_t FCCOB2; /**< Flash Common Command Object Registers, offset: 0x5 */
8138 __IO uint8_t FCCOB1; /**< Flash Common Command Object Registers, offset: 0x6 */
8139 __IO uint8_t FCCOB0; /**< Flash Common Command Object Registers, offset: 0x7 */
8140 __IO uint8_t FCCOB7; /**< Flash Common Command Object Registers, offset: 0x8 */
8141 __IO uint8_t FCCOB6; /**< Flash Common Command Object Registers, offset: 0x9 */
8142 __IO uint8_t FCCOB5; /**< Flash Common Command Object Registers, offset: 0xA */
8143 __IO uint8_t FCCOB4; /**< Flash Common Command Object Registers, offset: 0xB */
8144 __IO uint8_t FCCOBB; /**< Flash Common Command Object Registers, offset: 0xC */
8145 __IO uint8_t FCCOBA; /**< Flash Common Command Object Registers, offset: 0xD */
8146 __IO uint8_t FCCOB9; /**< Flash Common Command Object Registers, offset: 0xE */
8147 __IO uint8_t FCCOB8; /**< Flash Common Command Object Registers, offset: 0xF */
8148 __IO uint8_t FPROT3; /**< Program Flash Protection Registers, offset: 0x10 */
8149 __IO uint8_t FPROT2; /**< Program Flash Protection Registers, offset: 0x11 */
8150 __IO uint8_t FPROT1; /**< Program Flash Protection Registers, offset: 0x12 */
8151 __IO uint8_t FPROT0; /**< Program Flash Protection Registers, offset: 0x13 */
8152 uint8_t RESERVED_0[2];
8153 __IO uint8_t FEPROT; /**< EEPROM Protection Register, offset: 0x16 */
8154 __IO uint8_t FDPROT; /**< Data Flash Protection Register, offset: 0x17 */
8155 __I uint8_t XACCH3; /**< Execute-only Access Registers, offset: 0x18 */
8156 __I uint8_t XACCH2; /**< Execute-only Access Registers, offset: 0x19 */
8157 __I uint8_t XACCH1; /**< Execute-only Access Registers, offset: 0x1A */
8158 __I uint8_t XACCH0; /**< Execute-only Access Registers, offset: 0x1B */
8159 __I uint8_t XACCL3; /**< Execute-only Access Registers, offset: 0x1C */
8160 __I uint8_t XACCL2; /**< Execute-only Access Registers, offset: 0x1D */
8161 __I uint8_t XACCL1; /**< Execute-only Access Registers, offset: 0x1E */
8162 __I uint8_t XACCL0; /**< Execute-only Access Registers, offset: 0x1F */
8163 __I uint8_t SACCH3; /**< Supervisor-only Access Registers, offset: 0x20 */
8164 __I uint8_t SACCH2; /**< Supervisor-only Access Registers, offset: 0x21 */
8165 __I uint8_t SACCH1; /**< Supervisor-only Access Registers, offset: 0x22 */
8166 __I uint8_t SACCH0; /**< Supervisor-only Access Registers, offset: 0x23 */
8167 __I uint8_t SACCL3; /**< Supervisor-only Access Registers, offset: 0x24 */
8168 __I uint8_t SACCL2; /**< Supervisor-only Access Registers, offset: 0x25 */
8169 __I uint8_t SACCL1; /**< Supervisor-only Access Registers, offset: 0x26 */
8170 __I uint8_t SACCL0; /**< Supervisor-only Access Registers, offset: 0x27 */
8171 __I uint8_t FACSS; /**< Flash Access Segment Size Register, offset: 0x28 */
8172 uint8_t RESERVED_1[2];
8173 __I uint8_t FACSN; /**< Flash Access Segment Number Register, offset: 0x2B */
8174} FTFE_TypeDef;
8175
8176/* ----------------------------------------------------------------------------
8177 -- FTFE Register Masks
8178 ---------------------------------------------------------------------------- */
8179
8180/*!
8181 * @addtogroup FTFE_Register_Masks FTFE Register Masks
8182 * @{
8183 */
8184
8185/*! @name FSTAT - Flash Status Register */
8186#define FTFE_FSTAT_MGSTAT0_MASK (0x1U)
8187#define FTFE_FSTAT_MGSTAT0_SHIFT (0U)
8188#define FTFE_FSTAT_MGSTAT0_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSTAT_MGSTAT0_SHIFT)) & FTFE_FSTAT_MGSTAT0_MASK)
8189#define FTFE_FSTAT_MGSTAT0 FTFE_FSTAT_MGSTAT0_MASK
8190#define FTFE_FSTAT_FPVIOL_MASK (0x10U)
8191#define FTFE_FSTAT_FPVIOL_SHIFT (4U)
8192#define FTFE_FSTAT_FPVIOL(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSTAT_FPVIOL_SHIFT)) & FTFE_FSTAT_FPVIOL_MASK)
8193#define FTFL_FSTAT_FPVIOL FTFE_FSTAT_FPVIOL(1)
8194#define FTFE_FSTAT_ACCERR_MASK (0x20U)
8195#define FTFE_FSTAT_ACCERR_SHIFT (5U)
8196#define FTFE_FSTAT_ACCERR(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSTAT_ACCERR_SHIFT)) & FTFE_FSTAT_ACCERR_MASK)
8197#define FTFL_FSTAT_ACCERR FTFE_FSTAT_ACCERR(1)
8198#define FTFE_FSTAT_RDCOLERR_MASK (0x40U)
8199#define FTFE_FSTAT_RDCOLERR_SHIFT (6U)
8200#define FTFE_FSTAT_RDCOLERR(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSTAT_RDCOLERR_SHIFT)) & FTFE_FSTAT_RDCOLERR_MASK)
8201#define FTFL_FSTAT_RDCOLERR FTFE_FSTAT_RDCOLERR(1)
8202#define FTFE_FSTAT_CCIF_MASK (0x80U)
8203#define FTFE_FSTAT_CCIF_SHIFT (7U)
8204#define FTFE_FSTAT_CCIF_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSTAT_CCIF_SHIFT)) & FTFE_FSTAT_CCIF_MASK)
8205#define FTFE_FSTAT_CCIF FTFE_FSTAT_CCIF_MASK
8206
8207/*! @name FCNFG - Flash Configuration Register */
8208#define FTFE_FCNFG_EEERDY_MASK (0x1U)
8209#define FTFE_FCNFG_EEERDY_SHIFT (0U)
8210#define FTFE_FCNFG_EEERDY(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCNFG_EEERDY_SHIFT)) & FTFE_FCNFG_EEERDY_MASK)
8211#define FTFL_FCNFG_EEERDY FTFE_FCNFG_EEERDY(1)
8212#define FTFE_FCNFG_RAMRDY_MASK (0x2U)
8213#define FTFE_FCNFG_RAMRDY_SHIFT (1U)
8214#define FTFE_FCNFG_RAMRDY(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCNFG_RAMRDY_SHIFT)) & FTFE_FCNFG_RAMRDY_MASK)
8215#define FTFL_FCNFG_RAMRDY FTFE_FCNFG_RAMRDY(1)
8216#define FTFE_FCNFG_PFLSH_MASK (0x4U)
8217#define FTFE_FCNFG_PFLSH_SHIFT (2U)
8218#define FTFE_FCNFG_PFLSH_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCNFG_PFLSH_SHIFT)) & FTFE_FCNFG_PFLSH_MASK)
8219#define FTFE_FCNFG_PFLSH FTFE_FCNFG_PFLSH_MASK
8220#define FTFE_FCNFG_SWAP_MASK (0x8U)
8221#define FTFE_FCNFG_SWAP_SHIFT (3U)
8222#define FTFE_FCNFG_SWAP_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCNFG_SWAP_SHIFT)) & FTFE_FCNFG_SWAP_MASK)
8223#define FTFE_FCNFG_SWAP FTFE_FCNFG_SWAP_MASK
8224#define FTFE_FCNFG_ERSSUSP_MASK (0x10U)
8225#define FTFE_FCNFG_ERSSUSP_SHIFT (4U)
8226#define FTFE_FCNFG_ERSSUSP_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCNFG_ERSSUSP_SHIFT)) & FTFE_FCNFG_ERSSUSP_MASK)
8227#define FTFE_FCNFG_ERSSUSP FTFE_FCNFG_ERSSUSP_MASK
8228#define FTFE_FCNFG_ERSAREQ_MASK (0x20U)
8229#define FTFE_FCNFG_ERSAREQ_SHIFT (5U)
8230#define FTFE_FCNFG_ERSAREQ_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCNFG_ERSAREQ_SHIFT)) & FTFE_FCNFG_ERSAREQ_MASK)
8231#define FTFE_FCNFG_ERSAREQ FTFE_FCNFG_ERSAREQ_MASK
8232#define FTFE_FCNFG_RDCOLLIE_MASK (0x40U)
8233#define FTFE_FCNFG_RDCOLLIE_SHIFT (6U)
8234#define FTFE_FCNFG_RDCOLLIE_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCNFG_RDCOLLIE_SHIFT)) & FTFE_FCNFG_RDCOLLIE_MASK)
8235#define FTFE_FCNFG_RDCOLLIE FTFE_FCNFG_RDCOLLIE_MASK
8236#define FTFE_FCNFG_CCIE_MASK (0x80U)
8237#define FTFE_FCNFG_CCIE_SHIFT (7U)
8238#define FTFE_FCNFG_CCIE_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCNFG_CCIE_SHIFT)) & FTFE_FCNFG_CCIE_MASK)
8239#define FTFE_FCNFG_CCIE FTFE_FCNFG_CCIE_MASK
8240
8241/*! @name FSEC - Flash Security Register */
8242#define FTFE_FSEC_SEC_MASK (0x3U)
8243#define FTFE_FSEC_SEC_SHIFT (0U)
8244#define FTFE_FSEC_SEC_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSEC_SEC_SHIFT)) & FTFE_FSEC_SEC_MASK)
8245#define FTFE_FSEC_SEC FTFE_FSEC_SEC_MASK
8246#define FTFE_FSEC_FSLACC_MASK (0xCU)
8247#define FTFE_FSEC_FSLACC_SHIFT (2U)
8248#define FTFE_FSEC_FSLACC_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSEC_FSLACC_SHIFT)) & FTFE_FSEC_FSLACC_MASK)
8249#define FTFE_FSEC_FSLACC FTFE_FSEC_FSLACC_MASK
8250#define FTFE_FSEC_MEEN_MASK (0x30U)
8251#define FTFE_FSEC_MEEN_SHIFT (4U)
8252#define FTFE_FSEC_MEEN_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSEC_MEEN_SHIFT)) & FTFE_FSEC_MEEN_MASK)
8253#define FTFE_FSEC_MEEN FTFE_FSEC_MEEN_MASK
8254#define FTFE_FSEC_KEYEN_MASK (0xC0U)
8255#define FTFE_FSEC_KEYEN_SHIFT (6U)
8256#define FTFE_FSEC_KEYEN_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSEC_KEYEN_SHIFT)) & FTFE_FSEC_KEYEN_MASK)
8257#define FTFE_FSEC_KEYEN FTFE_FSEC_KEYEN_MASK
8258
8259/*! @name FOPT - Flash Option Register */
8260#define FTFE_FOPT_OPT_MASK (0xFFU)
8261#define FTFE_FOPT_OPT_SHIFT (0U)
8262#define FTFE_FOPT_OPT_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FOPT_OPT_SHIFT)) & FTFE_FOPT_OPT_MASK)
8263#define FTFE_FOPT_OPT FTFE_FOPT_OPT_MASK
8264
8265/*! @name FCCOB3 - Flash Common Command Object Registers */
8266#define FTFE_FCCOB3_CCOBn_MASK (0xFFU)
8267#define FTFE_FCCOB3_CCOBn_SHIFT (0U)
8268#define FTFE_FCCOB3_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB3_CCOBn_SHIFT)) & FTFE_FCCOB3_CCOBn_MASK)
8269#define FTFE_FCCOB3_CCOBn FTFE_FCCOB3_CCOBn_MASK
8270
8271/*! @name FCCOB2 - Flash Common Command Object Registers */
8272#define FTFE_FCCOB2_CCOBn_MASK (0xFFU)
8273#define FTFE_FCCOB2_CCOBn_SHIFT (0U)
8274#define FTFE_FCCOB2_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB2_CCOBn_SHIFT)) & FTFE_FCCOB2_CCOBn_MASK)
8275#define FTFE_FCCOB2_CCOBn FTFE_FCCOB2_CCOBn_MASK
8276
8277/*! @name FCCOB1 - Flash Common Command Object Registers */
8278#define FTFE_FCCOB1_CCOBn_MASK (0xFFU)
8279#define FTFE_FCCOB1_CCOBn_SHIFT (0U)
8280#define FTFE_FCCOB1_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB1_CCOBn_SHIFT)) & FTFE_FCCOB1_CCOBn_MASK)
8281#define FTFE_FCCOB1_CCOBn FTFE_FCCOB1_CCOBn_MASK
8282
8283/*! @name FCCOB0 - Flash Common Command Object Registers */
8284#define FTFE_FCCOB0_CCOBn_MASK (0xFFU)
8285#define FTFE_FCCOB0_CCOBn_SHIFT (0U)
8286#define FTFE_FCCOB0_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB0_CCOBn_SHIFT)) & FTFE_FCCOB0_CCOBn_MASK)
8287#define FTFE_FCCOB0_CCOBn FTFE_FCCOB0_CCOBn_MASK
8288
8289/*! @name FCCOB7 - Flash Common Command Object Registers */
8290#define FTFE_FCCOB7_CCOBn_MASK (0xFFU)
8291#define FTFE_FCCOB7_CCOBn_SHIFT (0U)
8292#define FTFE_FCCOB7_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB7_CCOBn_SHIFT)) & FTFE_FCCOB7_CCOBn_MASK)
8293#define FTFE_FCCOB7_CCOBn FTFE_FCCOB7_CCOBn_MASK
8294
8295/*! @name FCCOB6 - Flash Common Command Object Registers */
8296#define FTFE_FCCOB6_CCOBn_MASK (0xFFU)
8297#define FTFE_FCCOB6_CCOBn_SHIFT (0U)
8298#define FTFE_FCCOB6_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB6_CCOBn_SHIFT)) & FTFE_FCCOB6_CCOBn_MASK)
8299#define FTFE_FCCOB6_CCOBn FTFE_FCCOB6_CCOBn_MASK
8300
8301/*! @name FCCOB5 - Flash Common Command Object Registers */
8302#define FTFE_FCCOB5_CCOBn_MASK (0xFFU)
8303#define FTFE_FCCOB5_CCOBn_SHIFT (0U)
8304#define FTFE_FCCOB5_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB5_CCOBn_SHIFT)) & FTFE_FCCOB5_CCOBn_MASK)
8305#define FTFE_FCCOB5_CCOBn FTFE_FCCOB5_CCOBn_MASK
8306
8307/*! @name FCCOB4 - Flash Common Command Object Registers */
8308#define FTFE_FCCOB4_CCOBn_MASK (0xFFU)
8309#define FTFE_FCCOB4_CCOBn_SHIFT (0U)
8310#define FTFE_FCCOB4_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB4_CCOBn_SHIFT)) & FTFE_FCCOB4_CCOBn_MASK)
8311#define FTFE_FCCOB4_CCOBn FTFE_FCCOB4_CCOBn_MASK
8312
8313/*! @name FCCOBB - Flash Common Command Object Registers */
8314#define FTFE_FCCOBB_CCOBn_MASK (0xFFU)
8315#define FTFE_FCCOBB_CCOBn_SHIFT (0U)
8316#define FTFE_FCCOBB_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOBB_CCOBn_SHIFT)) & FTFE_FCCOBB_CCOBn_MASK)
8317#define FTFE_FCCOBB_CCOBn FTFE_FCCOBB_CCOBn_MASK
8318
8319/*! @name FCCOBA - Flash Common Command Object Registers */
8320#define FTFE_FCCOBA_CCOBn_MASK (0xFFU)
8321#define FTFE_FCCOBA_CCOBn_SHIFT (0U)
8322#define FTFE_FCCOBA_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOBA_CCOBn_SHIFT)) & FTFE_FCCOBA_CCOBn_MASK)
8323#define FTFE_FCCOBA_CCOBn FTFE_FCCOBA_CCOBn_MASK
8324
8325/*! @name FCCOB9 - Flash Common Command Object Registers */
8326#define FTFE_FCCOB9_CCOBn_MASK (0xFFU)
8327#define FTFE_FCCOB9_CCOBn_SHIFT (0U)
8328#define FTFE_FCCOB9_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB9_CCOBn_SHIFT)) & FTFE_FCCOB9_CCOBn_MASK)
8329#define FTFE_FCCOB9_CCOBn FTFE_FCCOB9_CCOBn_MASK
8330
8331/*! @name FCCOB8 - Flash Common Command Object Registers */
8332#define FTFE_FCCOB8_CCOBn_MASK (0xFFU)
8333#define FTFE_FCCOB8_CCOBn_SHIFT (0U)
8334#define FTFE_FCCOB8_CCOBn_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB8_CCOBn_SHIFT)) & FTFE_FCCOB8_CCOBn_MASK)
8335#define FTFE_FCCOB8_CCOBn FTFE_FCCOB8_CCOBn_MASK
8336
8337/*! @name FPROT3 - Program Flash Protection Registers */
8338#define FTFE_FPROT3_PROT_MASK (0xFFU)
8339#define FTFE_FPROT3_PROT_SHIFT (0U)
8340#define FTFE_FPROT3_PROT_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FPROT3_PROT_SHIFT)) & FTFE_FPROT3_PROT_MASK)
8341#define FTFE_FPROT3_PROT FTFE_FPROT3_PROT_MASK
8342
8343/*! @name FPROT2 - Program Flash Protection Registers */
8344#define FTFE_FPROT2_PROT_MASK (0xFFU)
8345#define FTFE_FPROT2_PROT_SHIFT (0U)
8346#define FTFE_FPROT2_PROT_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FPROT2_PROT_SHIFT)) & FTFE_FPROT2_PROT_MASK)
8347#define FTFE_FPROT2_PROT FTFE_FPROT2_PROT_MASK
8348
8349/*! @name FPROT1 - Program Flash Protection Registers */
8350#define FTFE_FPROT1_PROT_MASK (0xFFU)
8351#define FTFE_FPROT1_PROT_SHIFT (0U)
8352#define FTFE_FPROT1_PROT_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FPROT1_PROT_SHIFT)) & FTFE_FPROT1_PROT_MASK)
8353#define FTFE_FPROT1_PROT FTFE_FPROT1_PROT_MASK
8354
8355/*! @name FPROT0 - Program Flash Protection Registers */
8356#define FTFE_FPROT0_PROT_MASK (0xFFU)
8357#define FTFE_FPROT0_PROT_SHIFT (0U)
8358#define FTFE_FPROT0_PROT_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FPROT0_PROT_SHIFT)) & FTFE_FPROT0_PROT_MASK)
8359#define FTFE_FPROT0_PROT FTFE_FPROT0_PROT_MASK
8360
8361/*! @name FEPROT - EEPROM Protection Register */
8362#define FTFE_FEPROT_EPROT_MASK (0xFFU)
8363#define FTFE_FEPROT_EPROT_SHIFT (0U)
8364#define FTFE_FEPROT_EPROT_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FEPROT_EPROT_SHIFT)) & FTFE_FEPROT_EPROT_MASK)
8365#define FTFE_FEPROT_EPROT FTFE_FEPROT_EPROT_MASK
8366
8367/*! @name FDPROT - Data Flash Protection Register */
8368#define FTFE_FDPROT_DPROT_MASK (0xFFU)
8369#define FTFE_FDPROT_DPROT_SHIFT (0U)
8370#define FTFE_FDPROT_DPROT_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FDPROT_DPROT_SHIFT)) & FTFE_FDPROT_DPROT_MASK)
8371#define FTFE_FDPROT_DPROT FTFE_FDPROT_DPROT_MASK
8372
8373/*! @name XACCH3 - Execute-only Access Registers */
8374#define FTFE_XACCH3_XA_MASK (0xFFU)
8375#define FTFE_XACCH3_XA_SHIFT (0U)
8376#define FTFE_XACCH3_XA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_XACCH3_XA_SHIFT)) & FTFE_XACCH3_XA_MASK)
8377#define FTFE_XACCH3_XA FTFE_XACCH3_XA_MASK
8378
8379/*! @name XACCH2 - Execute-only Access Registers */
8380#define FTFE_XACCH2_XA_MASK (0xFFU)
8381#define FTFE_XACCH2_XA_SHIFT (0U)
8382#define FTFE_XACCH2_XA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_XACCH2_XA_SHIFT)) & FTFE_XACCH2_XA_MASK)
8383#define FTFE_XACCH2_XA FTFE_XACCH2_XA_MASK
8384
8385/*! @name XACCH1 - Execute-only Access Registers */
8386#define FTFE_XACCH1_XA_MASK (0xFFU)
8387#define FTFE_XACCH1_XA_SHIFT (0U)
8388#define FTFE_XACCH1_XA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_XACCH1_XA_SHIFT)) & FTFE_XACCH1_XA_MASK)
8389#define FTFE_XACCH1_XA FTFE_XACCH1_XA_MASK
8390
8391/*! @name XACCH0 - Execute-only Access Registers */
8392#define FTFE_XACCH0_XA_MASK (0xFFU)
8393#define FTFE_XACCH0_XA_SHIFT (0U)
8394#define FTFE_XACCH0_XA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_XACCH0_XA_SHIFT)) & FTFE_XACCH0_XA_MASK)
8395#define FTFE_XACCH0_XA FTFE_XACCH0_XA_MASK
8396
8397/*! @name XACCL3 - Execute-only Access Registers */
8398#define FTFE_XACCL3_XA_MASK (0xFFU)
8399#define FTFE_XACCL3_XA_SHIFT (0U)
8400#define FTFE_XACCL3_XA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_XACCL3_XA_SHIFT)) & FTFE_XACCL3_XA_MASK)
8401#define FTFE_XACCL3_XA FTFE_XACCL3_XA_MASK
8402
8403/*! @name XACCL2 - Execute-only Access Registers */
8404#define FTFE_XACCL2_XA_MASK (0xFFU)
8405#define FTFE_XACCL2_XA_SHIFT (0U)
8406#define FTFE_XACCL2_XA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_XACCL2_XA_SHIFT)) & FTFE_XACCL2_XA_MASK)
8407#define FTFE_XACCL2_XA FTFE_XACCL2_XA_MASK
8408
8409/*! @name XACCL1 - Execute-only Access Registers */
8410#define FTFE_XACCL1_XA_MASK (0xFFU)
8411#define FTFE_XACCL1_XA_SHIFT (0U)
8412#define FTFE_XACCL1_XA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_XACCL1_XA_SHIFT)) & FTFE_XACCL1_XA_MASK)
8413#define FTFE_XACCL1_XA FTFE_XACCL1_XA_MASK
8414
8415/*! @name XACCL0 - Execute-only Access Registers */
8416#define FTFE_XACCL0_XA_MASK (0xFFU)
8417#define FTFE_XACCL0_XA_SHIFT (0U)
8418#define FTFE_XACCL0_XA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_XACCL0_XA_SHIFT)) & FTFE_XACCL0_XA_MASK)
8419#define FTFE_XACCL0_XA FTFE_XACCL0_XA_MASK
8420
8421/*! @name SACCH3 - Supervisor-only Access Registers */
8422#define FTFE_SACCH3_SA_MASK (0xFFU)
8423#define FTFE_SACCH3_SA_SHIFT (0U)
8424#define FTFE_SACCH3_SA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_SACCH3_SA_SHIFT)) & FTFE_SACCH3_SA_MASK)
8425#define FTFE_SACCH3_SA FTFE_SACCH3_SA_MASK
8426
8427/*! @name SACCH2 - Supervisor-only Access Registers */
8428#define FTFE_SACCH2_SA_MASK (0xFFU)
8429#define FTFE_SACCH2_SA_SHIFT (0U)
8430#define FTFE_SACCH2_SA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_SACCH2_SA_SHIFT)) & FTFE_SACCH2_SA_MASK)
8431#define FTFE_SACCH2_SA FTFE_SACCH2_SA_MASK
8432
8433/*! @name SACCH1 - Supervisor-only Access Registers */
8434#define FTFE_SACCH1_SA_MASK (0xFFU)
8435#define FTFE_SACCH1_SA_SHIFT (0U)
8436#define FTFE_SACCH1_SA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_SACCH1_SA_SHIFT)) & FTFE_SACCH1_SA_MASK)
8437#define FTFE_SACCH1_SA FTFE_SACCH1_SA_MASK
8438
8439/*! @name SACCH0 - Supervisor-only Access Registers */
8440#define FTFE_SACCH0_SA_MASK (0xFFU)
8441#define FTFE_SACCH0_SA_SHIFT (0U)
8442#define FTFE_SACCH0_SA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_SACCH0_SA_SHIFT)) & FTFE_SACCH0_SA_MASK)
8443#define FTFE_SACCH0_SA FTFE_SACCH0_SA_MASK
8444
8445/*! @name SACCL3 - Supervisor-only Access Registers */
8446#define FTFE_SACCL3_SA_MASK (0xFFU)
8447#define FTFE_SACCL3_SA_SHIFT (0U)
8448#define FTFE_SACCL3_SA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_SACCL3_SA_SHIFT)) & FTFE_SACCL3_SA_MASK)
8449#define FTFE_SACCL3_SA FTFE_SACCL3_SA_MASK
8450
8451/*! @name SACCL2 - Supervisor-only Access Registers */
8452#define FTFE_SACCL2_SA_MASK (0xFFU)
8453#define FTFE_SACCL2_SA_SHIFT (0U)
8454#define FTFE_SACCL2_SA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_SACCL2_SA_SHIFT)) & FTFE_SACCL2_SA_MASK)
8455#define FTFE_SACCL2_SA FTFE_SACCL2_SA_MASK
8456
8457/*! @name SACCL1 - Supervisor-only Access Registers */
8458#define FTFE_SACCL1_SA_MASK (0xFFU)
8459#define FTFE_SACCL1_SA_SHIFT (0U)
8460#define FTFE_SACCL1_SA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_SACCL1_SA_SHIFT)) & FTFE_SACCL1_SA_MASK)
8461#define FTFE_SACCL1_SA FTFE_SACCL1_SA_MASK
8462
8463/*! @name SACCL0 - Supervisor-only Access Registers */
8464#define FTFE_SACCL0_SA_MASK (0xFFU)
8465#define FTFE_SACCL0_SA_SHIFT (0U)
8466#define FTFE_SACCL0_SA_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_SACCL0_SA_SHIFT)) & FTFE_SACCL0_SA_MASK)
8467#define FTFE_SACCL0_SA FTFE_SACCL0_SA_MASK
8468
8469/*! @name FACSS - Flash Access Segment Size Register */
8470#define FTFE_FACSS_SGSIZE_MASK (0xFFU)
8471#define FTFE_FACSS_SGSIZE_SHIFT (0U)
8472#define FTFE_FACSS_SGSIZE_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FACSS_SGSIZE_SHIFT)) & FTFE_FACSS_SGSIZE_MASK)
8473#define FTFE_FACSS_SGSIZE FTFE_FACSS_SGSIZE_MASK
8474
8475/*! @name FACSN - Flash Access Segment Number Register */
8476#define FTFE_FACSN_NUMSG_MASK (0xFFU)
8477#define FTFE_FACSN_NUMSG_SHIFT (0U)
8478#define FTFE_FACSN_NUMSG_SET(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FACSN_NUMSG_SHIFT)) & FTFE_FACSN_NUMSG_MASK)
8479#define FTFE_FACSN_NUMSG FTFE_FACSN_NUMSG_MASK
8480
8481
8482/*!
8483 * @}
8484 */ /* end of group FTFE_Register_Masks */
8485
8486
8487/* FTFE - Peripheral instance base addresses */
8488/** Peripheral FTFE base address */
8489#define FTFE_BASE (0x40020000u)
8490/** Peripheral FTFE base pointer */
8491#define FTFE ((FTFE_TypeDef *)FTFE_BASE)
8492#define FTFL ((FTFE_TypeDef *)FTFE_BASE)
8493/** Array initializer of FTFE peripheral base addresses */
8494#define FTFE_BASE_ADDRS { FTFE_BASE }
8495/** Array initializer of FTFE peripheral base pointers */
8496#define FTFE_BASE_PTRS { FTFE }
8497/** Interrupt vectors for the FTFE peripheral type */
8498#define FTFE_COMMAND_COMPLETE_IRQS { FTFE_IRQn }
8499#define FTFE_READ_COLLISION_IRQS { Read_Collision_IRQn }
8500
8501/*!
8502 * @}
8503 */ /* end of group FTFE_Peripheral_Access_Layer */
8504
8505
8506/* ----------------------------------------------------------------------------
8507 -- FTM Peripheral Access Layer
8508 ---------------------------------------------------------------------------- */
8509
8510/*!
8511 * @addtogroup FTM_Peripheral_Access_Layer FTM Peripheral Access Layer
8512 * @{
8513 */
8514
8515/** FTM - Register Layout Typedef */
8516typedef struct {
8517 __IO uint32_t SC; /**< Status And Control, offset: 0x0 */
8518 __IO uint32_t CNT; /**< Counter, offset: 0x4 */
8519 __IO uint32_t MOD; /**< Modulo, offset: 0x8 */
8520 struct { /* offset: 0xC, array step: 0x8 */
8521 __IO uint32_t CnSC; /**< Channel (n) Status And Control, array offset: 0xC, array step: 0x8 */
8522 __IO uint32_t CnV; /**< Channel (n) Value, array offset: 0x10, array step: 0x8 */
8523 } CHANNEL[8];
8524 __IO uint32_t CNTIN; /**< Counter Initial Value, offset: 0x4C */
8525 __IO uint32_t STATUS; /**< Capture And Compare Status, offset: 0x50 */
8526 __IO uint32_t MODE; /**< Features Mode Selection, offset: 0x54 */
8527 __IO uint32_t SYNC; /**< Synchronization, offset: 0x58 */
8528 __IO uint32_t OUTINIT; /**< Initial State For Channels Output, offset: 0x5C */
8529 __IO uint32_t OUTMASK; /**< Output Mask, offset: 0x60 */
8530 __IO uint32_t COMBINE; /**< Function For Linked Channels, offset: 0x64 */
8531 __IO uint32_t DEADTIME; /**< Deadtime Insertion Control, offset: 0x68 */
8532 __IO uint32_t EXTTRIG; /**< FTM External Trigger, offset: 0x6C */
8533 __IO uint32_t POL; /**< Channels Polarity, offset: 0x70 */
8534 __IO uint32_t FMS; /**< Fault Mode Status, offset: 0x74 */
8535 __IO uint32_t FILTER; /**< Input Capture Filter Control, offset: 0x78 */
8536 __IO uint32_t FLTCTRL; /**< Fault Control, offset: 0x7C */
8537 __IO uint32_t QDCTRL; /**< Quadrature Decoder Control And Status, offset: 0x80 */
8538 __IO uint32_t CONF; /**< Configuration, offset: 0x84 */
8539 __IO uint32_t FLTPOL; /**< FTM Fault Input Polarity, offset: 0x88 */
8540 __IO uint32_t SYNCONF; /**< Synchronization Configuration, offset: 0x8C */
8541 __IO uint32_t INVCTRL; /**< FTM Inverting Control, offset: 0x90 */
8542 __IO uint32_t SWOCTRL; /**< FTM Software Output Control, offset: 0x94 */
8543 __IO uint32_t PWMLOAD; /**< FTM PWM Load, offset: 0x98 */
8544} FTM_TypeDef;
8545
8546/* ----------------------------------------------------------------------------
8547 -- FTM Register Masks
8548 ---------------------------------------------------------------------------- */
8549
8550/*!
8551 * @addtogroup FTM_Register_Masks FTM Register Masks
8552 * @{
8553 */
8554
8555/*! @name SC - Status And Control */
8556#define FTM_SC_PS_MASK (0x7U)
8557#define FTM_SC_PS_SHIFT (0U)
8558#define FTM_SC_PS(x) (((uint32_t)(((uint32_t)(x)) << FTM_SC_PS_SHIFT)) & FTM_SC_PS_MASK)
8559#define FTM_SC_CLKS_MASK (0x18U)
8560#define FTM_SC_CLKS_SHIFT (3U)
8561#define FTM_SC_CLKS(x) (((uint32_t)(((uint32_t)(x)) << FTM_SC_CLKS_SHIFT)) & FTM_SC_CLKS_MASK)
8562#define FTM_SC_CPWMS_MASK (0x20U)
8563#define FTM_SC_CPWMS_SHIFT (5U)
8564#define FTM_SC_CPWMS_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SC_CPWMS_SHIFT)) & FTM_SC_CPWMS_MASK)
8565#define FTM_SC_CPWMS FTM_SC_CPWMS_MASK
8566#define FTM_SC_TOIE_MASK (0x40U)
8567#define FTM_SC_TOIE_SHIFT (6U)
8568#define FTM_SC_TOIE_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SC_TOIE_SHIFT)) & FTM_SC_TOIE_MASK)
8569#define FTM_SC_TOIE FTM_SC_TOIE_MASK
8570#define FTM_SC_TOF_MASK (0x80U)
8571#define FTM_SC_TOF_SHIFT (7U)
8572#define FTM_SC_TOF_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SC_TOF_SHIFT)) & FTM_SC_TOF_MASK)
8573#define FTM_SC_TOF FTM_SC_TOF_MASK
8574
8575/*! @name CNT - Counter */
8576#define FTM_CNT_COUNT_MASK (0xFFFFU)
8577#define FTM_CNT_COUNT_SHIFT (0U)
8578#define FTM_CNT_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CNT_COUNT_SHIFT)) & FTM_CNT_COUNT_MASK)
8579#define FTM_CNT_COUNT FTM_CNT_COUNT_MASK
8580
8581/*! @name MOD - Modulo */
8582#define FTM_MOD_MOD_MASK (0xFFFFU)
8583#define FTM_MOD_MOD_SHIFT (0U)
8584#define FTM_MOD_MOD_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_MOD_MOD_SHIFT)) & FTM_MOD_MOD_MASK)
8585#define FTM_MOD_MOD FTM_MOD_MOD_MASK
8586
8587/*! @name CnSC - Channel (n) Status And Control */
8588#define FTM_CnSC_DMA_MASK (0x1U)
8589#define FTM_CnSC_DMA_SHIFT (0U)
8590#define FTM_CnSC_DMA_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnSC_DMA_SHIFT)) & FTM_CnSC_DMA_MASK)
8591#define FTM_CnSC_DMA FTM_CnSC_DMA_MASK
8592#define FTM_CnSC_ELSA_MASK (0x4U)
8593#define FTM_CnSC_ELSA_SHIFT (2U)
8594#define FTM_CnSC_ELSA_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnSC_ELSA_SHIFT)) & FTM_CnSC_ELSA_MASK)
8595#define FTM_CnSC_ELSA FTM_CnSC_ELSA_MASK
8596#define FTM_CnSC_ELSB_MASK (0x8U)
8597#define FTM_CnSC_ELSB_SHIFT (3U)
8598#define FTM_CnSC_ELSB_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnSC_ELSB_SHIFT)) & FTM_CnSC_ELSB_MASK)
8599#define FTM_CnSC_ELSB FTM_CnSC_ELSB_MASK
8600#define FTM_CnSC_MSA_MASK (0x10U)
8601#define FTM_CnSC_MSA_SHIFT (4U)
8602#define FTM_CnSC_MSA_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnSC_MSA_SHIFT)) & FTM_CnSC_MSA_MASK)
8603#define FTM_CnSC_MSA FTM_CnSC_MSA_MASK
8604#define FTM_CnSC_MSB_MASK (0x20U)
8605#define FTM_CnSC_MSB_SHIFT (5U)
8606#define FTM_CnSC_MSB_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnSC_MSB_SHIFT)) & FTM_CnSC_MSB_MASK)
8607#define FTM_CnSC_MSB FTM_CnSC_MSB_MASK
8608#define FTM_CnSC_CHIE_MASK (0x40U)
8609#define FTM_CnSC_CHIE_SHIFT (6U)
8610#define FTM_CnSC_CHIE_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnSC_CHIE_SHIFT)) & FTM_CnSC_CHIE_MASK)
8611#define FTM_CnSC_CHIE FTM_CnSC_CHIE_MASK
8612#define FTM_CnSC_CHF_MASK (0x80U)
8613#define FTM_CnSC_CHF_SHIFT (7U)
8614#define FTM_CnSC_CHF_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnSC_CHF_SHIFT)) & FTM_CnSC_CHF_MASK)
8615#define FTM_CnSC_CHF FTM_CnSC_CHF_MASK
8616
8617/* The count of FTM_CnSC */
8618#define FTM_CnSC_COUNT (8U)
8619
8620/*! @name CnV - Channel (n) Value */
8621#define FTM_CnV_VAL_MASK (0xFFFFU)
8622#define FTM_CnV_VAL_SHIFT (0U)
8623#define FTM_CnV_VAL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnV_VAL_SHIFT)) & FTM_CnV_VAL_MASK)
8624#define FTM_CnV_VAL FTM_CnV_VAL_MASK
8625
8626/* The count of FTM_CnV */
8627#define FTM_CnV_COUNT (8U)
8628
8629/*! @name CNTIN - Counter Initial Value */
8630#define FTM_CNTIN_INIT_MASK (0xFFFFU)
8631#define FTM_CNTIN_INIT_SHIFT (0U)
8632#define FTM_CNTIN_INIT_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CNTIN_INIT_SHIFT)) & FTM_CNTIN_INIT_MASK)
8633#define FTM_CNTIN_INIT FTM_CNTIN_INIT_MASK
8634
8635/*! @name STATUS - Capture And Compare Status */
8636#define FTM_STATUS_CH0F_MASK (0x1U)
8637#define FTM_STATUS_CH0F_SHIFT (0U)
8638#define FTM_STATUS_CH0F_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_STATUS_CH0F_SHIFT)) & FTM_STATUS_CH0F_MASK)
8639#define FTM_STATUS_CH0F FTM_STATUS_CH0F_MASK
8640#define FTM_STATUS_CH1F_MASK (0x2U)
8641#define FTM_STATUS_CH1F_SHIFT (1U)
8642#define FTM_STATUS_CH1F_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_STATUS_CH1F_SHIFT)) & FTM_STATUS_CH1F_MASK)
8643#define FTM_STATUS_CH1F FTM_STATUS_CH1F_MASK
8644#define FTM_STATUS_CH2F_MASK (0x4U)
8645#define FTM_STATUS_CH2F_SHIFT (2U)
8646#define FTM_STATUS_CH2F_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_STATUS_CH2F_SHIFT)) & FTM_STATUS_CH2F_MASK)
8647#define FTM_STATUS_CH2F FTM_STATUS_CH2F_MASK
8648#define FTM_STATUS_CH3F_MASK (0x8U)
8649#define FTM_STATUS_CH3F_SHIFT (3U)
8650#define FTM_STATUS_CH3F_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_STATUS_CH3F_SHIFT)) & FTM_STATUS_CH3F_MASK)
8651#define FTM_STATUS_CH3F FTM_STATUS_CH3F_MASK
8652#define FTM_STATUS_CH4F_MASK (0x10U)
8653#define FTM_STATUS_CH4F_SHIFT (4U)
8654#define FTM_STATUS_CH4F_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_STATUS_CH4F_SHIFT)) & FTM_STATUS_CH4F_MASK)
8655#define FTM_STATUS_CH4F FTM_STATUS_CH4F_MASK
8656#define FTM_STATUS_CH5F_MASK (0x20U)
8657#define FTM_STATUS_CH5F_SHIFT (5U)
8658#define FTM_STATUS_CH5F_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_STATUS_CH5F_SHIFT)) & FTM_STATUS_CH5F_MASK)
8659#define FTM_STATUS_CH5F FTM_STATUS_CH5F_MASK
8660#define FTM_STATUS_CH6F_MASK (0x40U)
8661#define FTM_STATUS_CH6F_SHIFT (6U)
8662#define FTM_STATUS_CH6F_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_STATUS_CH6F_SHIFT)) & FTM_STATUS_CH6F_MASK)
8663#define FTM_STATUS_CH6F FTM_STATUS_CH6F_MASK
8664#define FTM_STATUS_CH7F_MASK (0x80U)
8665#define FTM_STATUS_CH7F_SHIFT (7U)
8666#define FTM_STATUS_CH7F_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_STATUS_CH7F_SHIFT)) & FTM_STATUS_CH7F_MASK)
8667#define FTM_STATUS_CH7F FTM_STATUS_CH7F_MASK
8668
8669/*! @name MODE - Features Mode Selection */
8670#define FTM_MODE_FTMEN_MASK (0x1U)
8671#define FTM_MODE_FTMEN_SHIFT (0U)
8672#define FTM_MODE_FTMEN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_MODE_FTMEN_SHIFT)) & FTM_MODE_FTMEN_MASK)
8673#define FTM_MODE_FTMEN FTM_MODE_FTMEN_MASK
8674#define FTM_MODE_INIT_MASK (0x2U)
8675#define FTM_MODE_INIT_SHIFT (1U)
8676#define FTM_MODE_INIT_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_MODE_INIT_SHIFT)) & FTM_MODE_INIT_MASK)
8677#define FTM_MODE_INIT FTM_MODE_INIT_MASK
8678#define FTM_MODE_WPDIS_MASK (0x4U)
8679#define FTM_MODE_WPDIS_SHIFT (2U)
8680#define FTM_MODE_WPDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_MODE_WPDIS_SHIFT)) & FTM_MODE_WPDIS_MASK)
8681#define FTM_MODE_WPDIS FTM_MODE_WPDIS_MASK
8682#define FTM_MODE_PWMSYNC_MASK (0x8U)
8683#define FTM_MODE_PWMSYNC_SHIFT (3U)
8684#define FTM_MODE_PWMSYNC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_MODE_PWMSYNC_SHIFT)) & FTM_MODE_PWMSYNC_MASK)
8685#define FTM_MODE_PWMSYNC FTM_MODE_PWMSYNC_MASK
8686#define FTM_MODE_CAPTEST_MASK (0x10U)
8687#define FTM_MODE_CAPTEST_SHIFT (4U)
8688#define FTM_MODE_CAPTEST_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_MODE_CAPTEST_SHIFT)) & FTM_MODE_CAPTEST_MASK)
8689#define FTM_MODE_CAPTEST FTM_MODE_CAPTEST_MASK
8690#define FTM_MODE_FAULTM_MASK (0x60U)
8691#define FTM_MODE_FAULTM_SHIFT (5U)
8692#define FTM_MODE_FAULTM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_MODE_FAULTM_SHIFT)) & FTM_MODE_FAULTM_MASK)
8693#define FTM_MODE_FAULTM FTM_MODE_FAULTM_MASK
8694#define FTM_MODE_FAULTIE_MASK (0x80U)
8695#define FTM_MODE_FAULTIE_SHIFT (7U)
8696#define FTM_MODE_FAULTIE_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_MODE_FAULTIE_SHIFT)) & FTM_MODE_FAULTIE_MASK)
8697#define FTM_MODE_FAULTIE FTM_MODE_FAULTIE_MASK
8698
8699/*! @name SYNC - Synchronization */
8700#define FTM_SYNC_CNTMIN_MASK (0x1U)
8701#define FTM_SYNC_CNTMIN_SHIFT (0U)
8702#define FTM_SYNC_CNTMIN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNC_CNTMIN_SHIFT)) & FTM_SYNC_CNTMIN_MASK)
8703#define FTM_SYNC_CNTMIN FTM_SYNC_CNTMIN_MASK
8704#define FTM_SYNC_CNTMAX_MASK (0x2U)
8705#define FTM_SYNC_CNTMAX_SHIFT (1U)
8706#define FTM_SYNC_CNTMAX_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNC_CNTMAX_SHIFT)) & FTM_SYNC_CNTMAX_MASK)
8707#define FTM_SYNC_CNTMAX FTM_SYNC_CNTMAX_MASK
8708#define FTM_SYNC_REINIT_MASK (0x4U)
8709#define FTM_SYNC_REINIT_SHIFT (2U)
8710#define FTM_SYNC_REINIT_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNC_REINIT_SHIFT)) & FTM_SYNC_REINIT_MASK)
8711#define FTM_SYNC_REINIT FTM_SYNC_REINIT_MASK
8712#define FTM_SYNC_SYNCHOM_MASK (0x8U)
8713#define FTM_SYNC_SYNCHOM_SHIFT (3U)
8714#define FTM_SYNC_SYNCHOM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNC_SYNCHOM_SHIFT)) & FTM_SYNC_SYNCHOM_MASK)
8715#define FTM_SYNC_SYNCHOM FTM_SYNC_SYNCHOM_MASK
8716#define FTM_SYNC_TRIG0_MASK (0x10U)
8717#define FTM_SYNC_TRIG0_SHIFT (4U)
8718#define FTM_SYNC_TRIG0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNC_TRIG0_SHIFT)) & FTM_SYNC_TRIG0_MASK)
8719#define FTM_SYNC_TRIG0 FTM_SYNC_TRIG0_MASK
8720#define FTM_SYNC_TRIG1_MASK (0x20U)
8721#define FTM_SYNC_TRIG1_SHIFT (5U)
8722#define FTM_SYNC_TRIG1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNC_TRIG1_SHIFT)) & FTM_SYNC_TRIG1_MASK)
8723#define FTM_SYNC_TRIG1 FTM_SYNC_TRIG1_MASK
8724#define FTM_SYNC_TRIG2_MASK (0x40U)
8725#define FTM_SYNC_TRIG2_SHIFT (6U)
8726#define FTM_SYNC_TRIG2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNC_TRIG2_SHIFT)) & FTM_SYNC_TRIG2_MASK)
8727#define FTM_SYNC_TRIG2 FTM_SYNC_TRIG2_MASK
8728#define FTM_SYNC_SWSYNC_MASK (0x80U)
8729#define FTM_SYNC_SWSYNC_SHIFT (7U)
8730#define FTM_SYNC_SWSYNC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNC_SWSYNC_SHIFT)) & FTM_SYNC_SWSYNC_MASK)
8731#define FTM_SYNC_SWSYNC FTM_SYNC_SWSYNC_MASK
8732
8733/*! @name OUTINIT - Initial State For Channels Output */
8734#define FTM_OUTINIT_CH0OI_MASK (0x1U)
8735#define FTM_OUTINIT_CH0OI_SHIFT (0U)
8736#define FTM_OUTINIT_CH0OI_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTINIT_CH0OI_SHIFT)) & FTM_OUTINIT_CH0OI_MASK)
8737#define FTM_OUTINIT_CH0OI FTM_OUTINIT_CH0OI_MASK
8738#define FTM_OUTINIT_CH1OI_MASK (0x2U)
8739#define FTM_OUTINIT_CH1OI_SHIFT (1U)
8740#define FTM_OUTINIT_CH1OI_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTINIT_CH1OI_SHIFT)) & FTM_OUTINIT_CH1OI_MASK)
8741#define FTM_OUTINIT_CH1OI FTM_OUTINIT_CH1OI_MASK
8742#define FTM_OUTINIT_CH2OI_MASK (0x4U)
8743#define FTM_OUTINIT_CH2OI_SHIFT (2U)
8744#define FTM_OUTINIT_CH2OI_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTINIT_CH2OI_SHIFT)) & FTM_OUTINIT_CH2OI_MASK)
8745#define FTM_OUTINIT_CH2OI FTM_OUTINIT_CH2OI_MASK
8746#define FTM_OUTINIT_CH3OI_MASK (0x8U)
8747#define FTM_OUTINIT_CH3OI_SHIFT (3U)
8748#define FTM_OUTINIT_CH3OI_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTINIT_CH3OI_SHIFT)) & FTM_OUTINIT_CH3OI_MASK)
8749#define FTM_OUTINIT_CH3OI FTM_OUTINIT_CH3OI_MASK
8750#define FTM_OUTINIT_CH4OI_MASK (0x10U)
8751#define FTM_OUTINIT_CH4OI_SHIFT (4U)
8752#define FTM_OUTINIT_CH4OI_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTINIT_CH4OI_SHIFT)) & FTM_OUTINIT_CH4OI_MASK)
8753#define FTM_OUTINIT_CH4OI FTM_OUTINIT_CH4OI_MASK
8754#define FTM_OUTINIT_CH5OI_MASK (0x20U)
8755#define FTM_OUTINIT_CH5OI_SHIFT (5U)
8756#define FTM_OUTINIT_CH5OI_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTINIT_CH5OI_SHIFT)) & FTM_OUTINIT_CH5OI_MASK)
8757#define FTM_OUTINIT_CH5OI FTM_OUTINIT_CH5OI_MASK
8758#define FTM_OUTINIT_CH6OI_MASK (0x40U)
8759#define FTM_OUTINIT_CH6OI_SHIFT (6U)
8760#define FTM_OUTINIT_CH6OI_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTINIT_CH6OI_SHIFT)) & FTM_OUTINIT_CH6OI_MASK)
8761#define FTM_OUTINIT_CH6OI FTM_OUTINIT_CH6OI_MASK
8762#define FTM_OUTINIT_CH7OI_MASK (0x80U)
8763#define FTM_OUTINIT_CH7OI_SHIFT (7U)
8764#define FTM_OUTINIT_CH7OI_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTINIT_CH7OI_SHIFT)) & FTM_OUTINIT_CH7OI_MASK)
8765#define FTM_OUTINIT_CH7OI FTM_OUTINIT_CH7OI_MASK
8766
8767/*! @name OUTMASK - Output Mask */
8768#define FTM_OUTMASK_CH0OM_MASK (0x1U)
8769#define FTM_OUTMASK_CH0OM_SHIFT (0U)
8770#define FTM_OUTMASK_CH0OM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTMASK_CH0OM_SHIFT)) & FTM_OUTMASK_CH0OM_MASK)
8771#define FTM_OUTMASK_CH0OM FTM_OUTMASK_CH0OM_MASK
8772#define FTM_OUTMASK_CH1OM_MASK (0x2U)
8773#define FTM_OUTMASK_CH1OM_SHIFT (1U)
8774#define FTM_OUTMASK_CH1OM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTMASK_CH1OM_SHIFT)) & FTM_OUTMASK_CH1OM_MASK)
8775#define FTM_OUTMASK_CH1OM FTM_OUTMASK_CH1OM_MASK
8776#define FTM_OUTMASK_CH2OM_MASK (0x4U)
8777#define FTM_OUTMASK_CH2OM_SHIFT (2U)
8778#define FTM_OUTMASK_CH2OM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTMASK_CH2OM_SHIFT)) & FTM_OUTMASK_CH2OM_MASK)
8779#define FTM_OUTMASK_CH2OM FTM_OUTMASK_CH2OM_MASK
8780#define FTM_OUTMASK_CH3OM_MASK (0x8U)
8781#define FTM_OUTMASK_CH3OM_SHIFT (3U)
8782#define FTM_OUTMASK_CH3OM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTMASK_CH3OM_SHIFT)) & FTM_OUTMASK_CH3OM_MASK)
8783#define FTM_OUTMASK_CH3OM FTM_OUTMASK_CH3OM_MASK
8784#define FTM_OUTMASK_CH4OM_MASK (0x10U)
8785#define FTM_OUTMASK_CH4OM_SHIFT (4U)
8786#define FTM_OUTMASK_CH4OM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTMASK_CH4OM_SHIFT)) & FTM_OUTMASK_CH4OM_MASK)
8787#define FTM_OUTMASK_CH4OM FTM_OUTMASK_CH4OM_MASK
8788#define FTM_OUTMASK_CH5OM_MASK (0x20U)
8789#define FTM_OUTMASK_CH5OM_SHIFT (5U)
8790#define FTM_OUTMASK_CH5OM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTMASK_CH5OM_SHIFT)) & FTM_OUTMASK_CH5OM_MASK)
8791#define FTM_OUTMASK_CH5OM FTM_OUTMASK_CH5OM_MASK
8792#define FTM_OUTMASK_CH6OM_MASK (0x40U)
8793#define FTM_OUTMASK_CH6OM_SHIFT (6U)
8794#define FTM_OUTMASK_CH6OM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTMASK_CH6OM_SHIFT)) & FTM_OUTMASK_CH6OM_MASK)
8795#define FTM_OUTMASK_CH6OM FTM_OUTMASK_CH6OM_MASK
8796#define FTM_OUTMASK_CH7OM_MASK (0x80U)
8797#define FTM_OUTMASK_CH7OM_SHIFT (7U)
8798#define FTM_OUTMASK_CH7OM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_OUTMASK_CH7OM_SHIFT)) & FTM_OUTMASK_CH7OM_MASK)
8799#define FTM_OUTMASK_CH7OM FTM_OUTMASK_CH7OM_MASK
8800
8801/*! @name COMBINE - Function For Linked Channels */
8802#define FTM_COMBINE_COMBINE0_MASK (0x1U)
8803#define FTM_COMBINE_COMBINE0_SHIFT (0U)
8804#define FTM_COMBINE_COMBINE0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_COMBINE0_SHIFT)) & FTM_COMBINE_COMBINE0_MASK)
8805#define FTM_COMBINE_COMBINE0 FTM_COMBINE_COMBINE0_MASK
8806#define FTM_COMBINE_COMP0_MASK (0x2U)
8807#define FTM_COMBINE_COMP0_SHIFT (1U)
8808#define FTM_COMBINE_COMP0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_COMP0_SHIFT)) & FTM_COMBINE_COMP0_MASK)
8809#define FTM_COMBINE_COMP0 FTM_COMBINE_COMP0_MASK
8810#define FTM_COMBINE_DECAPEN0_MASK (0x4U)
8811#define FTM_COMBINE_DECAPEN0_SHIFT (2U)
8812#define FTM_COMBINE_DECAPEN0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DECAPEN0_SHIFT)) & FTM_COMBINE_DECAPEN0_MASK)
8813#define FTM_COMBINE_DECAPEN0 FTM_COMBINE_DECAPEN0_MASK
8814#define FTM_COMBINE_DECAP0_MASK (0x8U)
8815#define FTM_COMBINE_DECAP0_SHIFT (3U)
8816#define FTM_COMBINE_DECAP0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DECAP0_SHIFT)) & FTM_COMBINE_DECAP0_MASK)
8817#define FTM_COMBINE_DECAP0 FTM_COMBINE_DECAP0_MASK
8818#define FTM_COMBINE_DTEN0_MASK (0x10U)
8819#define FTM_COMBINE_DTEN0_SHIFT (4U)
8820#define FTM_COMBINE_DTEN0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DTEN0_SHIFT)) & FTM_COMBINE_DTEN0_MASK)
8821#define FTM_COMBINE_DTEN0 FTM_COMBINE_DTEN0_MASK
8822#define FTM_COMBINE_SYNCEN0_MASK (0x20U)
8823#define FTM_COMBINE_SYNCEN0_SHIFT (5U)
8824#define FTM_COMBINE_SYNCEN0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_SYNCEN0_SHIFT)) & FTM_COMBINE_SYNCEN0_MASK)
8825#define FTM_COMBINE_SYNCEN0 FTM_COMBINE_SYNCEN0_MASK
8826#define FTM_COMBINE_FAULTEN0_MASK (0x40U)
8827#define FTM_COMBINE_FAULTEN0_SHIFT (6U)
8828#define FTM_COMBINE_FAULTEN0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_FAULTEN0_SHIFT)) & FTM_COMBINE_FAULTEN0_MASK)
8829#define FTM_COMBINE_FAULTEN0 FTM_COMBINE_FAULTEN0_MASK
8830#define FTM_COMBINE_COMBINE1_MASK (0x100U)
8831#define FTM_COMBINE_COMBINE1_SHIFT (8U)
8832#define FTM_COMBINE_COMBINE1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_COMBINE1_SHIFT)) & FTM_COMBINE_COMBINE1_MASK)
8833#define FTM_COMBINE_COMBINE1 FTM_COMBINE_COMBINE1_MASK
8834#define FTM_COMBINE_COMP1_MASK (0x200U)
8835#define FTM_COMBINE_COMP1_SHIFT (9U)
8836#define FTM_COMBINE_COMP1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_COMP1_SHIFT)) & FTM_COMBINE_COMP1_MASK)
8837#define FTM_COMBINE_COMP1 FTM_COMBINE_COMP1_MASK
8838#define FTM_COMBINE_DECAPEN1_MASK (0x400U)
8839#define FTM_COMBINE_DECAPEN1_SHIFT (10U)
8840#define FTM_COMBINE_DECAPEN1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DECAPEN1_SHIFT)) & FTM_COMBINE_DECAPEN1_MASK)
8841#define FTM_COMBINE_DECAPEN1 FTM_COMBINE_DECAPEN1_MASK
8842#define FTM_COMBINE_DECAP1_MASK (0x800U)
8843#define FTM_COMBINE_DECAP1_SHIFT (11U)
8844#define FTM_COMBINE_DECAP1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DECAP1_SHIFT)) & FTM_COMBINE_DECAP1_MASK)
8845#define FTM_COMBINE_DECAP1 FTM_COMBINE_DECAP1_MASK
8846#define FTM_COMBINE_DTEN1_MASK (0x1000U)
8847#define FTM_COMBINE_DTEN1_SHIFT (12U)
8848#define FTM_COMBINE_DTEN1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DTEN1_SHIFT)) & FTM_COMBINE_DTEN1_MASK)
8849#define FTM_COMBINE_DTEN1 FTM_COMBINE_DTEN1_MASK
8850#define FTM_COMBINE_SYNCEN1_MASK (0x2000U)
8851#define FTM_COMBINE_SYNCEN1_SHIFT (13U)
8852#define FTM_COMBINE_SYNCEN1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_SYNCEN1_SHIFT)) & FTM_COMBINE_SYNCEN1_MASK)
8853#define FTM_COMBINE_SYNCEN1 FTM_COMBINE_SYNCEN1_MASK
8854#define FTM_COMBINE_FAULTEN1_MASK (0x4000U)
8855#define FTM_COMBINE_FAULTEN1_SHIFT (14U)
8856#define FTM_COMBINE_FAULTEN1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_FAULTEN1_SHIFT)) & FTM_COMBINE_FAULTEN1_MASK)
8857#define FTM_COMBINE_FAULTEN1 FTM_COMBINE_FAULTEN1_MASK
8858#define FTM_COMBINE_COMBINE2_MASK (0x10000U)
8859#define FTM_COMBINE_COMBINE2_SHIFT (16U)
8860#define FTM_COMBINE_COMBINE2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_COMBINE2_SHIFT)) & FTM_COMBINE_COMBINE2_MASK)
8861#define FTM_COMBINE_COMBINE2 FTM_COMBINE_COMBINE2_MASK
8862#define FTM_COMBINE_COMP2_MASK (0x20000U)
8863#define FTM_COMBINE_COMP2_SHIFT (17U)
8864#define FTM_COMBINE_COMP2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_COMP2_SHIFT)) & FTM_COMBINE_COMP2_MASK)
8865#define FTM_COMBINE_COMP2 FTM_COMBINE_COMP2_MASK
8866#define FTM_COMBINE_DECAPEN2_MASK (0x40000U)
8867#define FTM_COMBINE_DECAPEN2_SHIFT (18U)
8868#define FTM_COMBINE_DECAPEN2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DECAPEN2_SHIFT)) & FTM_COMBINE_DECAPEN2_MASK)
8869#define FTM_COMBINE_DECAPEN2 FTM_COMBINE_DECAPEN2_MASK
8870#define FTM_COMBINE_DECAP2_MASK (0x80000U)
8871#define FTM_COMBINE_DECAP2_SHIFT (19U)
8872#define FTM_COMBINE_DECAP2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DECAP2_SHIFT)) & FTM_COMBINE_DECAP2_MASK)
8873#define FTM_COMBINE_DECAP2 FTM_COMBINE_DECAP2_MASK
8874#define FTM_COMBINE_DTEN2_MASK (0x100000U)
8875#define FTM_COMBINE_DTEN2_SHIFT (20U)
8876#define FTM_COMBINE_DTEN2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DTEN2_SHIFT)) & FTM_COMBINE_DTEN2_MASK)
8877#define FTM_COMBINE_DTEN2 FTM_COMBINE_DTEN2_MASK
8878#define FTM_COMBINE_SYNCEN2_MASK (0x200000U)
8879#define FTM_COMBINE_SYNCEN2_SHIFT (21U)
8880#define FTM_COMBINE_SYNCEN2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_SYNCEN2_SHIFT)) & FTM_COMBINE_SYNCEN2_MASK)
8881#define FTM_COMBINE_SYNCEN2 FTM_COMBINE_SYNCEN2_MASK
8882#define FTM_COMBINE_FAULTEN2_MASK (0x400000U)
8883#define FTM_COMBINE_FAULTEN2_SHIFT (22U)
8884#define FTM_COMBINE_FAULTEN2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_FAULTEN2_SHIFT)) & FTM_COMBINE_FAULTEN2_MASK)
8885#define FTM_COMBINE_FAULTEN2 FTM_COMBINE_FAULTEN2_MASK
8886#define FTM_COMBINE_COMBINE3_MASK (0x1000000U)
8887#define FTM_COMBINE_COMBINE3_SHIFT (24U)
8888#define FTM_COMBINE_COMBINE3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_COMBINE3_SHIFT)) & FTM_COMBINE_COMBINE3_MASK)
8889#define FTM_COMBINE_COMBINE3 FTM_COMBINE_COMBINE3_MASK
8890#define FTM_COMBINE_COMP3_MASK (0x2000000U)
8891#define FTM_COMBINE_COMP3_SHIFT (25U)
8892#define FTM_COMBINE_COMP3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_COMP3_SHIFT)) & FTM_COMBINE_COMP3_MASK)
8893#define FTM_COMBINE_COMP3 FTM_COMBINE_COMP3_MASK
8894#define FTM_COMBINE_DECAPEN3_MASK (0x4000000U)
8895#define FTM_COMBINE_DECAPEN3_SHIFT (26U)
8896#define FTM_COMBINE_DECAPEN3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DECAPEN3_SHIFT)) & FTM_COMBINE_DECAPEN3_MASK)
8897#define FTM_COMBINE_DECAPEN3 FTM_COMBINE_DECAPEN3_MASK
8898#define FTM_COMBINE_DECAP3_MASK (0x8000000U)
8899#define FTM_COMBINE_DECAP3_SHIFT (27U)
8900#define FTM_COMBINE_DECAP3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DECAP3_SHIFT)) & FTM_COMBINE_DECAP3_MASK)
8901#define FTM_COMBINE_DECAP3 FTM_COMBINE_DECAP3_MASK
8902#define FTM_COMBINE_DTEN3_MASK (0x10000000U)
8903#define FTM_COMBINE_DTEN3_SHIFT (28U)
8904#define FTM_COMBINE_DTEN3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_DTEN3_SHIFT)) & FTM_COMBINE_DTEN3_MASK)
8905#define FTM_COMBINE_DTEN3 FTM_COMBINE_DTEN3_MASK
8906#define FTM_COMBINE_SYNCEN3_MASK (0x20000000U)
8907#define FTM_COMBINE_SYNCEN3_SHIFT (29U)
8908#define FTM_COMBINE_SYNCEN3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_SYNCEN3_SHIFT)) & FTM_COMBINE_SYNCEN3_MASK)
8909#define FTM_COMBINE_SYNCEN3 FTM_COMBINE_SYNCEN3_MASK
8910#define FTM_COMBINE_FAULTEN3_MASK (0x40000000U)
8911#define FTM_COMBINE_FAULTEN3_SHIFT (30U)
8912#define FTM_COMBINE_FAULTEN3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_COMBINE_FAULTEN3_SHIFT)) & FTM_COMBINE_FAULTEN3_MASK)
8913#define FTM_COMBINE_FAULTEN3 FTM_COMBINE_FAULTEN3_MASK
8914
8915/*! @name DEADTIME - Deadtime Insertion Control */
8916#define FTM_DEADTIME_DTVAL_MASK (0x3FU)
8917#define FTM_DEADTIME_DTVAL_SHIFT (0U)
8918#define FTM_DEADTIME_DTVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_DEADTIME_DTVAL_SHIFT)) & FTM_DEADTIME_DTVAL_MASK)
8919#define FTM_DEADTIME_DTVAL FTM_DEADTIME_DTVAL_MASK
8920#define FTM_DEADTIME_DTPS_MASK (0xC0U)
8921#define FTM_DEADTIME_DTPS_SHIFT (6U)
8922#define FTM_DEADTIME_DTPS_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_DEADTIME_DTPS_SHIFT)) & FTM_DEADTIME_DTPS_MASK)
8923#define FTM_DEADTIME_DTPS FTM_DEADTIME_DTPS_MASK
8924
8925/*! @name EXTTRIG - FTM External Trigger */
8926#define FTM_EXTTRIG_CH2TRIG_MASK (0x1U)
8927#define FTM_EXTTRIG_CH2TRIG_SHIFT (0U)
8928#define FTM_EXTTRIG_CH2TRIG_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_EXTTRIG_CH2TRIG_SHIFT)) & FTM_EXTTRIG_CH2TRIG_MASK)
8929#define FTM_EXTTRIG_CH2TRIG FTM_EXTTRIG_CH2TRIG_MASK
8930#define FTM_EXTTRIG_CH3TRIG_MASK (0x2U)
8931#define FTM_EXTTRIG_CH3TRIG_SHIFT (1U)
8932#define FTM_EXTTRIG_CH3TRIG_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_EXTTRIG_CH3TRIG_SHIFT)) & FTM_EXTTRIG_CH3TRIG_MASK)
8933#define FTM_EXTTRIG_CH3TRIG FTM_EXTTRIG_CH3TRIG_MASK
8934#define FTM_EXTTRIG_CH4TRIG_MASK (0x4U)
8935#define FTM_EXTTRIG_CH4TRIG_SHIFT (2U)
8936#define FTM_EXTTRIG_CH4TRIG_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_EXTTRIG_CH4TRIG_SHIFT)) & FTM_EXTTRIG_CH4TRIG_MASK)
8937#define FTM_EXTTRIG_CH4TRIG FTM_EXTTRIG_CH4TRIG_MASK
8938#define FTM_EXTTRIG_CH5TRIG_MASK (0x8U)
8939#define FTM_EXTTRIG_CH5TRIG_SHIFT (3U)
8940#define FTM_EXTTRIG_CH5TRIG_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_EXTTRIG_CH5TRIG_SHIFT)) & FTM_EXTTRIG_CH5TRIG_MASK)
8941#define FTM_EXTTRIG_CH5TRIG FTM_EXTTRIG_CH5TRIG_MASK
8942#define FTM_EXTTRIG_CH0TRIG_MASK (0x10U)
8943#define FTM_EXTTRIG_CH0TRIG_SHIFT (4U)
8944#define FTM_EXTTRIG_CH0TRIG_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_EXTTRIG_CH0TRIG_SHIFT)) & FTM_EXTTRIG_CH0TRIG_MASK)
8945#define FTM_EXTTRIG_CH0TRIG FTM_EXTTRIG_CH0TRIG_MASK
8946#define FTM_EXTTRIG_CH1TRIG_MASK (0x20U)
8947#define FTM_EXTTRIG_CH1TRIG_SHIFT (5U)
8948#define FTM_EXTTRIG_CH1TRIG_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_EXTTRIG_CH1TRIG_SHIFT)) & FTM_EXTTRIG_CH1TRIG_MASK)
8949#define FTM_EXTTRIG_CH1TRIG FTM_EXTTRIG_CH1TRIG_MASK
8950#define FTM_EXTTRIG_INITTRIGEN_MASK (0x40U)
8951#define FTM_EXTTRIG_INITTRIGEN_SHIFT (6U)
8952#define FTM_EXTTRIG_INITTRIGEN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_EXTTRIG_INITTRIGEN_SHIFT)) & FTM_EXTTRIG_INITTRIGEN_MASK)
8953#define FTM_EXTTRIG_INITTRIGEN FTM_EXTTRIG_INITTRIGEN_MASK
8954#define FTM_EXTTRIG_TRIGF_MASK (0x80U)
8955#define FTM_EXTTRIG_TRIGF_SHIFT (7U)
8956#define FTM_EXTTRIG_TRIGF_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_EXTTRIG_TRIGF_SHIFT)) & FTM_EXTTRIG_TRIGF_MASK)
8957#define FTM_EXTTRIG_TRIGF FTM_EXTTRIG_TRIGF_MASK
8958
8959/*! @name POL - Channels Polarity */
8960#define FTM_POL_POL0_MASK (0x1U)
8961#define FTM_POL_POL0_SHIFT (0U)
8962#define FTM_POL_POL0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_POL_POL0_SHIFT)) & FTM_POL_POL0_MASK)
8963#define FTM_POL_POL0 FTM_POL_POL0_MASK
8964#define FTM_POL_POL1_MASK (0x2U)
8965#define FTM_POL_POL1_SHIFT (1U)
8966#define FTM_POL_POL1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_POL_POL1_SHIFT)) & FTM_POL_POL1_MASK)
8967#define FTM_POL_POL1 FTM_POL_POL1_MASK
8968#define FTM_POL_POL2_MASK (0x4U)
8969#define FTM_POL_POL2_SHIFT (2U)
8970#define FTM_POL_POL2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_POL_POL2_SHIFT)) & FTM_POL_POL2_MASK)
8971#define FTM_POL_POL2 FTM_POL_POL2_MASK
8972#define FTM_POL_POL3_MASK (0x8U)
8973#define FTM_POL_POL3_SHIFT (3U)
8974#define FTM_POL_POL3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_POL_POL3_SHIFT)) & FTM_POL_POL3_MASK)
8975#define FTM_POL_POL3 FTM_POL_POL3_MASK
8976#define FTM_POL_POL4_MASK (0x10U)
8977#define FTM_POL_POL4_SHIFT (4U)
8978#define FTM_POL_POL4_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_POL_POL4_SHIFT)) & FTM_POL_POL4_MASK)
8979#define FTM_POL_POL4 FTM_POL_POL4_MASK
8980#define FTM_POL_POL5_MASK (0x20U)
8981#define FTM_POL_POL5_SHIFT (5U)
8982#define FTM_POL_POL5_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_POL_POL5_SHIFT)) & FTM_POL_POL5_MASK)
8983#define FTM_POL_POL5 FTM_POL_POL5_MASK
8984#define FTM_POL_POL6_MASK (0x40U)
8985#define FTM_POL_POL6_SHIFT (6U)
8986#define FTM_POL_POL6_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_POL_POL6_SHIFT)) & FTM_POL_POL6_MASK)
8987#define FTM_POL_POL6 FTM_POL_POL6_MASK
8988#define FTM_POL_POL7_MASK (0x80U)
8989#define FTM_POL_POL7_SHIFT (7U)
8990#define FTM_POL_POL7_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_POL_POL7_SHIFT)) & FTM_POL_POL7_MASK)
8991#define FTM_POL_POL7 FTM_POL_POL7_MASK
8992
8993/*! @name FMS - Fault Mode Status */
8994#define FTM_FMS_FAULTF0_MASK (0x1U)
8995#define FTM_FMS_FAULTF0_SHIFT (0U)
8996#define FTM_FMS_FAULTF0_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FMS_FAULTF0_SHIFT)) & FTM_FMS_FAULTF0_MASK)
8997#define FTM_FMS_FAULTF0 FTM_FMS_FAULTF0_MASK
8998#define FTM_FMS_FAULTF1_MASK (0x2U)
8999#define FTM_FMS_FAULTF1_SHIFT (1U)
9000#define FTM_FMS_FAULTF1_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FMS_FAULTF1_SHIFT)) & FTM_FMS_FAULTF1_MASK)
9001#define FTM_FMS_FAULTF1 FTM_FMS_FAULTF1_MASK
9002#define FTM_FMS_FAULTF2_MASK (0x4U)
9003#define FTM_FMS_FAULTF2_SHIFT (2U)
9004#define FTM_FMS_FAULTF2_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FMS_FAULTF2_SHIFT)) & FTM_FMS_FAULTF2_MASK)
9005#define FTM_FMS_FAULTF2 FTM_FMS_FAULTF2_MASK
9006#define FTM_FMS_FAULTF3_MASK (0x8U)
9007#define FTM_FMS_FAULTF3_SHIFT (3U)
9008#define FTM_FMS_FAULTF3_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FMS_FAULTF3_SHIFT)) & FTM_FMS_FAULTF3_MASK)
9009#define FTM_FMS_FAULTF3 FTM_FMS_FAULTF3_MASK
9010#define FTM_FMS_FAULTIN_MASK (0x20U)
9011#define FTM_FMS_FAULTIN_SHIFT (5U)
9012#define FTM_FMS_FAULTIN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FMS_FAULTIN_SHIFT)) & FTM_FMS_FAULTIN_MASK)
9013#define FTM_FMS_FAULTIN FTM_FMS_FAULTIN_MASK
9014#define FTM_FMS_WPEN_MASK (0x40U)
9015#define FTM_FMS_WPEN_SHIFT (6U)
9016#define FTM_FMS_WPEN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FMS_WPEN_SHIFT)) & FTM_FMS_WPEN_MASK)
9017#define FTM_FMS_WPEN FTM_FMS_WPEN_MASK
9018#define FTM_FMS_FAULTF_MASK (0x80U)
9019#define FTM_FMS_FAULTF_SHIFT (7U)
9020#define FTM_FMS_FAULTF_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FMS_FAULTF_SHIFT)) & FTM_FMS_FAULTF_MASK)
9021#define FTM_FMS_FAULTF FTM_FMS_FAULTF_MASK
9022
9023/*! @name FILTER - Input Capture Filter Control */
9024#define FTM_FILTER_CH0FVAL_MASK (0xFU)
9025#define FTM_FILTER_CH0FVAL_SHIFT (0U)
9026#define FTM_FILTER_CH0FVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FILTER_CH0FVAL_SHIFT)) & FTM_FILTER_CH0FVAL_MASK)
9027#define FTM_FILTER_CH0FVAL FTM_FILTER_CH0FVAL_MASK
9028#define FTM_FILTER_CH1FVAL_MASK (0xF0U)
9029#define FTM_FILTER_CH1FVAL_SHIFT (4U)
9030#define FTM_FILTER_CH1FVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FILTER_CH1FVAL_SHIFT)) & FTM_FILTER_CH1FVAL_MASK)
9031#define FTM_FILTER_CH1FVAL FTM_FILTER_CH1FVAL_MASK
9032#define FTM_FILTER_CH2FVAL_MASK (0xF00U)
9033#define FTM_FILTER_CH2FVAL_SHIFT (8U)
9034#define FTM_FILTER_CH2FVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FILTER_CH2FVAL_SHIFT)) & FTM_FILTER_CH2FVAL_MASK)
9035#define FTM_FILTER_CH2FVAL FTM_FILTER_CH2FVAL_MASK
9036#define FTM_FILTER_CH3FVAL_MASK (0xF000U)
9037#define FTM_FILTER_CH3FVAL_SHIFT (12U)
9038#define FTM_FILTER_CH3FVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FILTER_CH3FVAL_SHIFT)) & FTM_FILTER_CH3FVAL_MASK)
9039#define FTM_FILTER_CH3FVAL FTM_FILTER_CH3FVAL_MASK
9040
9041/*! @name FLTCTRL - Fault Control */
9042#define FTM_FLTCTRL_FAULT0EN_MASK (0x1U)
9043#define FTM_FLTCTRL_FAULT0EN_SHIFT (0U)
9044#define FTM_FLTCTRL_FAULT0EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FAULT0EN_SHIFT)) & FTM_FLTCTRL_FAULT0EN_MASK)
9045#define FTM_FLTCTRL_FAULT0EN FTM_FLTCTRL_FAULT0EN_MASK
9046#define FTM_FLTCTRL_FAULT1EN_MASK (0x2U)
9047#define FTM_FLTCTRL_FAULT1EN_SHIFT (1U)
9048#define FTM_FLTCTRL_FAULT1EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FAULT1EN_SHIFT)) & FTM_FLTCTRL_FAULT1EN_MASK)
9049#define FTM_FLTCTRL_FAULT1EN FTM_FLTCTRL_FAULT1EN_MASK
9050#define FTM_FLTCTRL_FAULT2EN_MASK (0x4U)
9051#define FTM_FLTCTRL_FAULT2EN_SHIFT (2U)
9052#define FTM_FLTCTRL_FAULT2EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FAULT2EN_SHIFT)) & FTM_FLTCTRL_FAULT2EN_MASK)
9053#define FTM_FLTCTRL_FAULT2EN FTM_FLTCTRL_FAULT2EN_MASK
9054#define FTM_FLTCTRL_FAULT3EN_MASK (0x8U)
9055#define FTM_FLTCTRL_FAULT3EN_SHIFT (3U)
9056#define FTM_FLTCTRL_FAULT3EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FAULT3EN_SHIFT)) & FTM_FLTCTRL_FAULT3EN_MASK)
9057#define FTM_FLTCTRL_FAULT3EN FTM_FLTCTRL_FAULT3EN_MASK
9058#define FTM_FLTCTRL_FFLTR0EN_MASK (0x10U)
9059#define FTM_FLTCTRL_FFLTR0EN_SHIFT (4U)
9060#define FTM_FLTCTRL_FFLTR0EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FFLTR0EN_SHIFT)) & FTM_FLTCTRL_FFLTR0EN_MASK)
9061#define FTM_FLTCTRL_FFLTR0EN FTM_FLTCTRL_FFLTR0EN_MASK
9062#define FTM_FLTCTRL_FFLTR1EN_MASK (0x20U)
9063#define FTM_FLTCTRL_FFLTR1EN_SHIFT (5U)
9064#define FTM_FLTCTRL_FFLTR1EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FFLTR1EN_SHIFT)) & FTM_FLTCTRL_FFLTR1EN_MASK)
9065#define FTM_FLTCTRL_FFLTR1EN FTM_FLTCTRL_FFLTR1EN_MASK
9066#define FTM_FLTCTRL_FFLTR2EN_MASK (0x40U)
9067#define FTM_FLTCTRL_FFLTR2EN_SHIFT (6U)
9068#define FTM_FLTCTRL_FFLTR2EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FFLTR2EN_SHIFT)) & FTM_FLTCTRL_FFLTR2EN_MASK)
9069#define FTM_FLTCTRL_FFLTR2EN FTM_FLTCTRL_FFLTR2EN_MASK
9070#define FTM_FLTCTRL_FFLTR3EN_MASK (0x80U)
9071#define FTM_FLTCTRL_FFLTR3EN_SHIFT (7U)
9072#define FTM_FLTCTRL_FFLTR3EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FFLTR3EN_SHIFT)) & FTM_FLTCTRL_FFLTR3EN_MASK)
9073#define FTM_FLTCTRL_FFLTR3EN FTM_FLTCTRL_FFLTR3EN_MASK
9074#define FTM_FLTCTRL_FFVAL_MASK (0xF00U)
9075#define FTM_FLTCTRL_FFVAL_SHIFT (8U)
9076#define FTM_FLTCTRL_FFVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FFVAL_SHIFT)) & FTM_FLTCTRL_FFVAL_MASK)
9077#define FTM_FLTCTRL_FFVAL FTM_FLTCTRL_FFVAL_MASK
9078
9079/*! @name QDCTRL - Quadrature Decoder Control And Status */
9080#define FTM_QDCTRL_QUADEN_MASK (0x1U)
9081#define FTM_QDCTRL_QUADEN_SHIFT (0U)
9082#define FTM_QDCTRL_QUADEN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_QDCTRL_QUADEN_SHIFT)) & FTM_QDCTRL_QUADEN_MASK)
9083#define FTM_QDCTRL_QUADEN FTM_QDCTRL_QUADEN_MASK
9084#define FTM_QDCTRL_TOFDIR_MASK (0x2U)
9085#define FTM_QDCTRL_TOFDIR_SHIFT (1U)
9086#define FTM_QDCTRL_TOFDIR_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_QDCTRL_TOFDIR_SHIFT)) & FTM_QDCTRL_TOFDIR_MASK)
9087#define FTM_QDCTRL_TOFDIR FTM_QDCTRL_TOFDIR_MASK
9088#define FTM_QDCTRL_QUADIR_MASK (0x4U)
9089#define FTM_QDCTRL_QUADIR_SHIFT (2U)
9090#define FTM_QDCTRL_QUADIR_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_QDCTRL_QUADIR_SHIFT)) & FTM_QDCTRL_QUADIR_MASK)
9091#define FTM_QDCTRL_QUADIR FTM_QDCTRL_QUADIR_MASK
9092#define FTM_QDCTRL_QUADMODE_MASK (0x8U)
9093#define FTM_QDCTRL_QUADMODE_SHIFT (3U)
9094#define FTM_QDCTRL_QUADMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_QDCTRL_QUADMODE_SHIFT)) & FTM_QDCTRL_QUADMODE_MASK)
9095#define FTM_QDCTRL_QUADMODE FTM_QDCTRL_QUADMODE_MASK
9096#define FTM_QDCTRL_PHBPOL_MASK (0x10U)
9097#define FTM_QDCTRL_PHBPOL_SHIFT (4U)
9098#define FTM_QDCTRL_PHBPOL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_QDCTRL_PHBPOL_SHIFT)) & FTM_QDCTRL_PHBPOL_MASK)
9099#define FTM_QDCTRL_PHBPOL FTM_QDCTRL_PHBPOL_MASK
9100#define FTM_QDCTRL_PHAPOL_MASK (0x20U)
9101#define FTM_QDCTRL_PHAPOL_SHIFT (5U)
9102#define FTM_QDCTRL_PHAPOL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_QDCTRL_PHAPOL_SHIFT)) & FTM_QDCTRL_PHAPOL_MASK)
9103#define FTM_QDCTRL_PHAPOL FTM_QDCTRL_PHAPOL_MASK
9104#define FTM_QDCTRL_PHBFLTREN_MASK (0x40U)
9105#define FTM_QDCTRL_PHBFLTREN_SHIFT (6U)
9106#define FTM_QDCTRL_PHBFLTREN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_QDCTRL_PHBFLTREN_SHIFT)) & FTM_QDCTRL_PHBFLTREN_MASK)
9107#define FTM_QDCTRL_PHBFLTREN FTM_QDCTRL_PHBFLTREN_MASK
9108#define FTM_QDCTRL_PHAFLTREN_MASK (0x80U)
9109#define FTM_QDCTRL_PHAFLTREN_SHIFT (7U)
9110#define FTM_QDCTRL_PHAFLTREN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_QDCTRL_PHAFLTREN_SHIFT)) & FTM_QDCTRL_PHAFLTREN_MASK)
9111#define FTM_QDCTRL_PHAFLTREN FTM_QDCTRL_PHAFLTREN_MASK
9112
9113/*! @name CONF - Configuration */
9114#define FTM_CONF_NUMTOF_MASK (0x1FU)
9115#define FTM_CONF_NUMTOF_SHIFT (0U)
9116#define FTM_CONF_NUMTOF_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CONF_NUMTOF_SHIFT)) & FTM_CONF_NUMTOF_MASK)
9117#define FTM_CONF_NUMTOF FTM_CONF_NUMTOF_MASK
9118#define FTM_CONF_BDMMODE_MASK (0xC0U)
9119#define FTM_CONF_BDMMODE_SHIFT (6U)
9120#define FTM_CONF_BDMMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CONF_BDMMODE_SHIFT)) & FTM_CONF_BDMMODE_MASK)
9121#define FTM_CONF_BDMMODE FTM_CONF_BDMMODE_MASK
9122#define FTM_CONF_GTBEEN_MASK (0x200U)
9123#define FTM_CONF_GTBEEN_SHIFT (9U)
9124#define FTM_CONF_GTBEEN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CONF_GTBEEN_SHIFT)) & FTM_CONF_GTBEEN_MASK)
9125#define FTM_CONF_GTBEEN FTM_CONF_GTBEEN_MASK
9126#define FTM_CONF_GTBEOUT_MASK (0x400U)
9127#define FTM_CONF_GTBEOUT_SHIFT (10U)
9128#define FTM_CONF_GTBEOUT_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_CONF_GTBEOUT_SHIFT)) & FTM_CONF_GTBEOUT_MASK)
9129#define FTM_CONF_GTBEOUT FTM_CONF_GTBEOUT_MASK
9130
9131/*! @name FLTPOL - FTM Fault Input Polarity */
9132#define FTM_FLTPOL_FLT0POL_MASK (0x1U)
9133#define FTM_FLTPOL_FLT0POL_SHIFT (0U)
9134#define FTM_FLTPOL_FLT0POL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTPOL_FLT0POL_SHIFT)) & FTM_FLTPOL_FLT0POL_MASK)
9135#define FTM_FLTPOL_FLT0POL FTM_FLTPOL_FLT0POL_MASK
9136#define FTM_FLTPOL_FLT1POL_MASK (0x2U)
9137#define FTM_FLTPOL_FLT1POL_SHIFT (1U)
9138#define FTM_FLTPOL_FLT1POL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTPOL_FLT1POL_SHIFT)) & FTM_FLTPOL_FLT1POL_MASK)
9139#define FTM_FLTPOL_FLT1POL FTM_FLTPOL_FLT1POL_MASK
9140#define FTM_FLTPOL_FLT2POL_MASK (0x4U)
9141#define FTM_FLTPOL_FLT2POL_SHIFT (2U)
9142#define FTM_FLTPOL_FLT2POL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTPOL_FLT2POL_SHIFT)) & FTM_FLTPOL_FLT2POL_MASK)
9143#define FTM_FLTPOL_FLT2POL FTM_FLTPOL_FLT2POL_MASK
9144#define FTM_FLTPOL_FLT3POL_MASK (0x8U)
9145#define FTM_FLTPOL_FLT3POL_SHIFT (3U)
9146#define FTM_FLTPOL_FLT3POL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTPOL_FLT3POL_SHIFT)) & FTM_FLTPOL_FLT3POL_MASK)
9147#define FTM_FLTPOL_FLT3POL FTM_FLTPOL_FLT3POL_MASK
9148
9149/*! @name SYNCONF - Synchronization Configuration */
9150#define FTM_SYNCONF_HWTRIGMODE_MASK (0x1U)
9151#define FTM_SYNCONF_HWTRIGMODE_SHIFT (0U)
9152#define FTM_SYNCONF_HWTRIGMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_HWTRIGMODE_SHIFT)) & FTM_SYNCONF_HWTRIGMODE_MASK)
9153#define FTM_SYNCONF_HWTRIGMODE FTM_SYNCONF_HWTRIGMODE_MASK
9154#define FTM_SYNCONF_CNTINC_MASK (0x4U)
9155#define FTM_SYNCONF_CNTINC_SHIFT (2U)
9156#define FTM_SYNCONF_CNTINC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_CNTINC_SHIFT)) & FTM_SYNCONF_CNTINC_MASK)
9157#define FTM_SYNCONF_CNTINC FTM_SYNCONF_CNTINC_MASK
9158#define FTM_SYNCONF_INVC_MASK (0x10U)
9159#define FTM_SYNCONF_INVC_SHIFT (4U)
9160#define FTM_SYNCONF_INVC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_INVC_SHIFT)) & FTM_SYNCONF_INVC_MASK)
9161#define FTM_SYNCONF_INVC FTM_SYNCONF_INVC_MASK
9162#define FTM_SYNCONF_SWOC_MASK (0x20U)
9163#define FTM_SYNCONF_SWOC_SHIFT (5U)
9164#define FTM_SYNCONF_SWOC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_SWOC_SHIFT)) & FTM_SYNCONF_SWOC_MASK)
9165#define FTM_SYNCONF_SWOC FTM_SYNCONF_SWOC_MASK
9166#define FTM_SYNCONF_SYNCMODE_MASK (0x80U)
9167#define FTM_SYNCONF_SYNCMODE_SHIFT (7U)
9168#define FTM_SYNCONF_SYNCMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_SYNCMODE_SHIFT)) & FTM_SYNCONF_SYNCMODE_MASK)
9169#define FTM_SYNCONF_SYNCMODE FTM_SYNCONF_SYNCMODE_MASK
9170#define FTM_SYNCONF_SWRSTCNT_MASK (0x100U)
9171#define FTM_SYNCONF_SWRSTCNT_SHIFT (8U)
9172#define FTM_SYNCONF_SWRSTCNT_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_SWRSTCNT_SHIFT)) & FTM_SYNCONF_SWRSTCNT_MASK)
9173#define FTM_SYNCONF_SWRSTCNT FTM_SYNCONF_SWRSTCNT_MASK
9174#define FTM_SYNCONF_SWWRBUF_MASK (0x200U)
9175#define FTM_SYNCONF_SWWRBUF_SHIFT (9U)
9176#define FTM_SYNCONF_SWWRBUF_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_SWWRBUF_SHIFT)) & FTM_SYNCONF_SWWRBUF_MASK)
9177#define FTM_SYNCONF_SWWRBUF FTM_SYNCONF_SWWRBUF_MASK
9178#define FTM_SYNCONF_SWOM_MASK (0x400U)
9179#define FTM_SYNCONF_SWOM_SHIFT (10U)
9180#define FTM_SYNCONF_SWOM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_SWOM_SHIFT)) & FTM_SYNCONF_SWOM_MASK)
9181#define FTM_SYNCONF_SWOM FTM_SYNCONF_SWOM_MASK
9182#define FTM_SYNCONF_SWINVC_MASK (0x800U)
9183#define FTM_SYNCONF_SWINVC_SHIFT (11U)
9184#define FTM_SYNCONF_SWINVC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_SWINVC_SHIFT)) & FTM_SYNCONF_SWINVC_MASK)
9185#define FTM_SYNCONF_SWINVC FTM_SYNCONF_SWINVC_MASK
9186#define FTM_SYNCONF_SWSOC_MASK (0x1000U)
9187#define FTM_SYNCONF_SWSOC_SHIFT (12U)
9188#define FTM_SYNCONF_SWSOC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_SWSOC_SHIFT)) & FTM_SYNCONF_SWSOC_MASK)
9189#define FTM_SYNCONF_SWSOC FTM_SYNCONF_SWSOC_MASK
9190#define FTM_SYNCONF_HWRSTCNT_MASK (0x10000U)
9191#define FTM_SYNCONF_HWRSTCNT_SHIFT (16U)
9192#define FTM_SYNCONF_HWRSTCNT_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_HWRSTCNT_SHIFT)) & FTM_SYNCONF_HWRSTCNT_MASK)
9193#define FTM_SYNCONF_HWRSTCNT FTM_SYNCONF_HWRSTCNT_MASK
9194#define FTM_SYNCONF_HWWRBUF_MASK (0x20000U)
9195#define FTM_SYNCONF_HWWRBUF_SHIFT (17U)
9196#define FTM_SYNCONF_HWWRBUF_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_HWWRBUF_SHIFT)) & FTM_SYNCONF_HWWRBUF_MASK)
9197#define FTM_SYNCONF_HWWRBUF FTM_SYNCONF_HWWRBUF_MASK
9198#define FTM_SYNCONF_HWOM_MASK (0x40000U)
9199#define FTM_SYNCONF_HWOM_SHIFT (18U)
9200#define FTM_SYNCONF_HWOM_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_HWOM_SHIFT)) & FTM_SYNCONF_HWOM_MASK)
9201#define FTM_SYNCONF_HWOM FTM_SYNCONF_HWOM_MASK
9202#define FTM_SYNCONF_HWINVC_MASK (0x80000U)
9203#define FTM_SYNCONF_HWINVC_SHIFT (19U)
9204#define FTM_SYNCONF_HWINVC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_HWINVC_SHIFT)) & FTM_SYNCONF_HWINVC_MASK)
9205#define FTM_SYNCONF_HWINVC FTM_SYNCONF_HWINVC_MASK
9206#define FTM_SYNCONF_HWSOC_MASK (0x100000U)
9207#define FTM_SYNCONF_HWSOC_SHIFT (20U)
9208#define FTM_SYNCONF_HWSOC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SYNCONF_HWSOC_SHIFT)) & FTM_SYNCONF_HWSOC_MASK)
9209#define FTM_SYNCONF_HWSOC FTM_SYNCONF_HWSOC_MASK
9210
9211/*! @name INVCTRL - FTM Inverting Control */
9212#define FTM_INVCTRL_INV0EN_MASK (0x1U)
9213#define FTM_INVCTRL_INV0EN_SHIFT (0U)
9214#define FTM_INVCTRL_INV0EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_INVCTRL_INV0EN_SHIFT)) & FTM_INVCTRL_INV0EN_MASK)
9215#define FTM_INVCTRL_INV0EN FTM_INVCTRL_INV0EN_MASK
9216#define FTM_INVCTRL_INV1EN_MASK (0x2U)
9217#define FTM_INVCTRL_INV1EN_SHIFT (1U)
9218#define FTM_INVCTRL_INV1EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_INVCTRL_INV1EN_SHIFT)) & FTM_INVCTRL_INV1EN_MASK)
9219#define FTM_INVCTRL_INV1EN FTM_INVCTRL_INV1EN_MASK
9220#define FTM_INVCTRL_INV2EN_MASK (0x4U)
9221#define FTM_INVCTRL_INV2EN_SHIFT (2U)
9222#define FTM_INVCTRL_INV2EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_INVCTRL_INV2EN_SHIFT)) & FTM_INVCTRL_INV2EN_MASK)
9223#define FTM_INVCTRL_INV2EN FTM_INVCTRL_INV2EN_MASK
9224#define FTM_INVCTRL_INV3EN_MASK (0x8U)
9225#define FTM_INVCTRL_INV3EN_SHIFT (3U)
9226#define FTM_INVCTRL_INV3EN_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_INVCTRL_INV3EN_SHIFT)) & FTM_INVCTRL_INV3EN_MASK)
9227#define FTM_INVCTRL_INV3EN FTM_INVCTRL_INV3EN_MASK
9228
9229/*! @name SWOCTRL - FTM Software Output Control */
9230#define FTM_SWOCTRL_CH0OC_MASK (0x1U)
9231#define FTM_SWOCTRL_CH0OC_SHIFT (0U)
9232#define FTM_SWOCTRL_CH0OC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH0OC_SHIFT)) & FTM_SWOCTRL_CH0OC_MASK)
9233#define FTM_SWOCTRL_CH0OC FTM_SWOCTRL_CH0OC_MASK
9234#define FTM_SWOCTRL_CH1OC_MASK (0x2U)
9235#define FTM_SWOCTRL_CH1OC_SHIFT (1U)
9236#define FTM_SWOCTRL_CH1OC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH1OC_SHIFT)) & FTM_SWOCTRL_CH1OC_MASK)
9237#define FTM_SWOCTRL_CH1OC FTM_SWOCTRL_CH1OC_MASK
9238#define FTM_SWOCTRL_CH2OC_MASK (0x4U)
9239#define FTM_SWOCTRL_CH2OC_SHIFT (2U)
9240#define FTM_SWOCTRL_CH2OC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH2OC_SHIFT)) & FTM_SWOCTRL_CH2OC_MASK)
9241#define FTM_SWOCTRL_CH2OC FTM_SWOCTRL_CH2OC_MASK
9242#define FTM_SWOCTRL_CH3OC_MASK (0x8U)
9243#define FTM_SWOCTRL_CH3OC_SHIFT (3U)
9244#define FTM_SWOCTRL_CH3OC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH3OC_SHIFT)) & FTM_SWOCTRL_CH3OC_MASK)
9245#define FTM_SWOCTRL_CH3OC FTM_SWOCTRL_CH3OC_MASK
9246#define FTM_SWOCTRL_CH4OC_MASK (0x10U)
9247#define FTM_SWOCTRL_CH4OC_SHIFT (4U)
9248#define FTM_SWOCTRL_CH4OC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH4OC_SHIFT)) & FTM_SWOCTRL_CH4OC_MASK)
9249#define FTM_SWOCTRL_CH4OC FTM_SWOCTRL_CH4OC_MASK
9250#define FTM_SWOCTRL_CH5OC_MASK (0x20U)
9251#define FTM_SWOCTRL_CH5OC_SHIFT (5U)
9252#define FTM_SWOCTRL_CH5OC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH5OC_SHIFT)) & FTM_SWOCTRL_CH5OC_MASK)
9253#define FTM_SWOCTRL_CH5OC FTM_SWOCTRL_CH5OC_MASK
9254#define FTM_SWOCTRL_CH6OC_MASK (0x40U)
9255#define FTM_SWOCTRL_CH6OC_SHIFT (6U)
9256#define FTM_SWOCTRL_CH6OC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH6OC_SHIFT)) & FTM_SWOCTRL_CH6OC_MASK)
9257#define FTM_SWOCTRL_CH6OC FTM_SWOCTRL_CH6OC_MASK
9258#define FTM_SWOCTRL_CH7OC_MASK (0x80U)
9259#define FTM_SWOCTRL_CH7OC_SHIFT (7U)
9260#define FTM_SWOCTRL_CH7OC_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH7OC_SHIFT)) & FTM_SWOCTRL_CH7OC_MASK)
9261#define FTM_SWOCTRL_CH7OC FTM_SWOCTRL_CH7OC_MASK
9262#define FTM_SWOCTRL_CH0OCV_MASK (0x100U)
9263#define FTM_SWOCTRL_CH0OCV_SHIFT (8U)
9264#define FTM_SWOCTRL_CH0OCV_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH0OCV_SHIFT)) & FTM_SWOCTRL_CH0OCV_MASK)
9265#define FTM_SWOCTRL_CH0OCV FTM_SWOCTRL_CH0OCV_MASK
9266#define FTM_SWOCTRL_CH1OCV_MASK (0x200U)
9267#define FTM_SWOCTRL_CH1OCV_SHIFT (9U)
9268#define FTM_SWOCTRL_CH1OCV_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH1OCV_SHIFT)) & FTM_SWOCTRL_CH1OCV_MASK)
9269#define FTM_SWOCTRL_CH1OCV FTM_SWOCTRL_CH1OCV_MASK
9270#define FTM_SWOCTRL_CH2OCV_MASK (0x400U)
9271#define FTM_SWOCTRL_CH2OCV_SHIFT (10U)
9272#define FTM_SWOCTRL_CH2OCV_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH2OCV_SHIFT)) & FTM_SWOCTRL_CH2OCV_MASK)
9273#define FTM_SWOCTRL_CH2OCV FTM_SWOCTRL_CH2OCV_MASK
9274#define FTM_SWOCTRL_CH3OCV_MASK (0x800U)
9275#define FTM_SWOCTRL_CH3OCV_SHIFT (11U)
9276#define FTM_SWOCTRL_CH3OCV_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH3OCV_SHIFT)) & FTM_SWOCTRL_CH3OCV_MASK)
9277#define FTM_SWOCTRL_CH3OCV FTM_SWOCTRL_CH3OCV_MASK
9278#define FTM_SWOCTRL_CH4OCV_MASK (0x1000U)
9279#define FTM_SWOCTRL_CH4OCV_SHIFT (12U)
9280#define FTM_SWOCTRL_CH4OCV_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH4OCV_SHIFT)) & FTM_SWOCTRL_CH4OCV_MASK)
9281#define FTM_SWOCTRL_CH4OCV FTM_SWOCTRL_CH4OCV_MASK
9282#define FTM_SWOCTRL_CH5OCV_MASK (0x2000U)
9283#define FTM_SWOCTRL_CH5OCV_SHIFT (13U)
9284#define FTM_SWOCTRL_CH5OCV_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH5OCV_SHIFT)) & FTM_SWOCTRL_CH5OCV_MASK)
9285#define FTM_SWOCTRL_CH5OCV FTM_SWOCTRL_CH5OCV_MASK
9286#define FTM_SWOCTRL_CH6OCV_MASK (0x4000U)
9287#define FTM_SWOCTRL_CH6OCV_SHIFT (14U)
9288#define FTM_SWOCTRL_CH6OCV_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH6OCV_SHIFT)) & FTM_SWOCTRL_CH6OCV_MASK)
9289#define FTM_SWOCTRL_CH6OCV FTM_SWOCTRL_CH6OCV_MASK
9290#define FTM_SWOCTRL_CH7OCV_MASK (0x8000U)
9291#define FTM_SWOCTRL_CH7OCV_SHIFT (15U)
9292#define FTM_SWOCTRL_CH7OCV_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_SWOCTRL_CH7OCV_SHIFT)) & FTM_SWOCTRL_CH7OCV_MASK)
9293#define FTM_SWOCTRL_CH7OCV FTM_SWOCTRL_CH7OCV_MASK
9294
9295/*! @name PWMLOAD - FTM PWM Load */
9296#define FTM_PWMLOAD_CH0SEL_MASK (0x1U)
9297#define FTM_PWMLOAD_CH0SEL_SHIFT (0U)
9298#define FTM_PWMLOAD_CH0SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_CH0SEL_SHIFT)) & FTM_PWMLOAD_CH0SEL_MASK)
9299#define FTM_PWMLOAD_CH0SEL FTM_PWMLOAD_CH0SEL_MASK
9300#define FTM_PWMLOAD_CH1SEL_MASK (0x2U)
9301#define FTM_PWMLOAD_CH1SEL_SHIFT (1U)
9302#define FTM_PWMLOAD_CH1SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_CH1SEL_SHIFT)) & FTM_PWMLOAD_CH1SEL_MASK)
9303#define FTM_PWMLOAD_CH1SEL FTM_PWMLOAD_CH1SEL_MASK
9304#define FTM_PWMLOAD_CH2SEL_MASK (0x4U)
9305#define FTM_PWMLOAD_CH2SEL_SHIFT (2U)
9306#define FTM_PWMLOAD_CH2SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_CH2SEL_SHIFT)) & FTM_PWMLOAD_CH2SEL_MASK)
9307#define FTM_PWMLOAD_CH2SEL FTM_PWMLOAD_CH2SEL_MASK
9308#define FTM_PWMLOAD_CH3SEL_MASK (0x8U)
9309#define FTM_PWMLOAD_CH3SEL_SHIFT (3U)
9310#define FTM_PWMLOAD_CH3SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_CH3SEL_SHIFT)) & FTM_PWMLOAD_CH3SEL_MASK)
9311#define FTM_PWMLOAD_CH3SEL FTM_PWMLOAD_CH3SEL_MASK
9312#define FTM_PWMLOAD_CH4SEL_MASK (0x10U)
9313#define FTM_PWMLOAD_CH4SEL_SHIFT (4U)
9314#define FTM_PWMLOAD_CH4SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_CH4SEL_SHIFT)) & FTM_PWMLOAD_CH4SEL_MASK)
9315#define FTM_PWMLOAD_CH4SEL FTM_PWMLOAD_CH4SEL_MASK
9316#define FTM_PWMLOAD_CH5SEL_MASK (0x20U)
9317#define FTM_PWMLOAD_CH5SEL_SHIFT (5U)
9318#define FTM_PWMLOAD_CH5SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_CH5SEL_SHIFT)) & FTM_PWMLOAD_CH5SEL_MASK)
9319#define FTM_PWMLOAD_CH5SEL FTM_PWMLOAD_CH5SEL_MASK
9320#define FTM_PWMLOAD_CH6SEL_MASK (0x40U)
9321#define FTM_PWMLOAD_CH6SEL_SHIFT (6U)
9322#define FTM_PWMLOAD_CH6SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_CH6SEL_SHIFT)) & FTM_PWMLOAD_CH6SEL_MASK)
9323#define FTM_PWMLOAD_CH6SEL FTM_PWMLOAD_CH6SEL_MASK
9324#define FTM_PWMLOAD_CH7SEL_MASK (0x80U)
9325#define FTM_PWMLOAD_CH7SEL_SHIFT (7U)
9326#define FTM_PWMLOAD_CH7SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_CH7SEL_SHIFT)) & FTM_PWMLOAD_CH7SEL_MASK)
9327#define FTM_PWMLOAD_CH7SEL FTM_PWMLOAD_CH7SEL_MASK
9328#define FTM_PWMLOAD_LDOK_MASK (0x200U)
9329#define FTM_PWMLOAD_LDOK_SHIFT (9U)
9330#define FTM_PWMLOAD_LDOK_SET(x) (((uint32_t)(((uint32_t)(x)) << FTM_PWMLOAD_LDOK_SHIFT)) & FTM_PWMLOAD_LDOK_MASK)
9331#define FTM_PWMLOAD_LDOK FTM_PWMLOAD_LDOK_MASK
9332
9333
9334/*!
9335 * @}
9336 */ /* end of group FTM_Register_Masks */
9337
9338
9339/* FTM - Peripheral instance base addresses */
9340/** Peripheral FTM0 base address */
9341#define FTM0_BASE (0x40038000u)
9342/** Peripheral FTM0 base pointer */
9343#define FTM0 ((FTM_TypeDef *)FTM0_BASE)
9344/** Peripheral FTM1 base address */
9345#define FTM1_BASE (0x40039000u)
9346/** Peripheral FTM1 base pointer */
9347#define FTM1 ((FTM_TypeDef *)FTM1_BASE)
9348/** Peripheral FTM2 base address */
9349#define FTM2_BASE (0x4003A000u)
9350/** Peripheral FTM2 base pointer */
9351#define FTM2 ((FTM_TypeDef *)FTM2_BASE)
9352/** Peripheral FTM3 base address */
9353#define FTM3_BASE (0x400B9000u)
9354/** Peripheral FTM3 base pointer */
9355#define FTM3 ((FTM_TypeDef *)FTM3_BASE)
9356/** Array initializer of FTM peripheral base addresses */
9357#define FTM_BASE_ADDRS { FTM0_BASE, FTM1_BASE, FTM2_BASE, FTM3_BASE }
9358/** Array initializer of FTM peripheral base pointers */
9359#define FTM_BASE_PTRS { FTM0, FTM1, FTM2, FTM3 }
9360/** Interrupt vectors for the FTM peripheral type */
9361#define FTM_IRQS { FTM0_IRQn, FTM1_IRQn, FTM2_IRQn, FTM3_IRQn }
9362
9363/*!
9364 * @}
9365 */ /* end of group FTM_Peripheral_Access_Layer */
9366
9367
9368/* ----------------------------------------------------------------------------
9369 -- GPIO Peripheral Access Layer
9370 ---------------------------------------------------------------------------- */
9371
9372/*!
9373 * @addtogroup GPIO_Peripheral_Access_Layer GPIO Peripheral Access Layer
9374 * @{
9375 */
9376
9377/** GPIO - Register Layout Typedef */
9378typedef struct {
9379 __IO uint32_t PDOR; /**< Port Data Output Register, offset: 0x0 */
9380 __O uint32_t PSOR; /**< Port Set Output Register, offset: 0x4 */
9381 __O uint32_t PCOR; /**< Port Clear Output Register, offset: 0x8 */
9382 __O uint32_t PTOR; /**< Port Toggle Output Register, offset: 0xC */
9383 __I uint32_t PDIR; /**< Port Data Input Register, offset: 0x10 */
9384 __IO uint32_t PDDR; /**< Port Data Direction Register, offset: 0x14 */
9385} GPIO_TypeDef;
9386
9387/* ----------------------------------------------------------------------------
9388 -- GPIO Register Masks
9389 ---------------------------------------------------------------------------- */
9390
9391/*!
9392 * @addtogroup GPIO_Register_Masks GPIO Register Masks
9393 * @{
9394 */
9395
9396/*! @name PDOR - Port Data Output Register */
9397#define GPIO_PDOR_PDO_MASK (0xFFFFFFFFU)
9398#define GPIO_PDOR_PDO_SHIFT (0U)
9399#define GPIO_PDOR_PDO_SET(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PDOR_PDO_SHIFT)) & GPIO_PDOR_PDO_MASK)
9400#define GPIO_PDOR_PDO GPIO_PDOR_PDO_MASK
9401
9402/*! @name PSOR - Port Set Output Register */
9403#define GPIO_PSOR_PTSO_MASK (0xFFFFFFFFU)
9404#define GPIO_PSOR_PTSO_SHIFT (0U)
9405#define GPIO_PSOR_PTSO_SET(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PSOR_PTSO_SHIFT)) & GPIO_PSOR_PTSO_MASK)
9406#define GPIO_PSOR_PTSO GPIO_PSOR_PTSO_MASK
9407
9408/*! @name PCOR - Port Clear Output Register */
9409#define GPIO_PCOR_PTCO_MASK (0xFFFFFFFFU)
9410#define GPIO_PCOR_PTCO_SHIFT (0U)
9411#define GPIO_PCOR_PTCO_SET(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PCOR_PTCO_SHIFT)) & GPIO_PCOR_PTCO_MASK)
9412#define GPIO_PCOR_PTCO GPIO_PCOR_PTCO_MASK
9413
9414/*! @name PTOR - Port Toggle Output Register */
9415#define GPIO_PTOR_PTTO_MASK (0xFFFFFFFFU)
9416#define GPIO_PTOR_PTTO_SHIFT (0U)
9417#define GPIO_PTOR_PTTO_SET(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PTOR_PTTO_SHIFT)) & GPIO_PTOR_PTTO_MASK)
9418#define GPIO_PTOR_PTTO GPIO_PTOR_PTTO_MASK
9419
9420/*! @name PDIR - Port Data Input Register */
9421#define GPIO_PDIR_PDI_MASK (0xFFFFFFFFU)
9422#define GPIO_PDIR_PDI_SHIFT (0U)
9423#define GPIO_PDIR_PDI_SET(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PDIR_PDI_SHIFT)) & GPIO_PDIR_PDI_MASK)
9424#define GPIO_PDIR_PDI GPIO_PDIR_PDI_MASK
9425
9426/*! @name PDDR - Port Data Direction Register */
9427#define GPIO_PDDR_PDD_MASK (0xFFFFFFFFU)
9428#define GPIO_PDDR_PDD_SHIFT (0U)
9429#define GPIO_PDDR_PDD_SET(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PDDR_PDD_SHIFT)) & GPIO_PDDR_PDD_MASK)
9430#define GPIO_PDDR_PDD GPIO_PDDR_PDD_MASK
9431
9432
9433/*!
9434 * @}
9435 */ /* end of group GPIO_Register_Masks */
9436
9437
9438/* GPIO - Peripheral instance base addresses */
9439/** Peripheral GPIOA base address */
9440#define GPIOA_BASE (0x400FF000u)
9441/** Peripheral GPIOA base pointer */
9442#define GPIOA ((GPIO_TypeDef *)GPIOA_BASE)
9443/** Peripheral GPIOB base address */
9444#define GPIOB_BASE (0x400FF040u)
9445/** Peripheral GPIOB base pointer */
9446#define GPIOB ((GPIO_TypeDef *)GPIOB_BASE)
9447/** Peripheral GPIOC base address */
9448#define GPIOC_BASE (0x400FF080u)
9449/** Peripheral GPIOC base pointer */
9450#define GPIOC ((GPIO_TypeDef *)GPIOC_BASE)
9451/** Peripheral GPIOD base address */
9452#define GPIOD_BASE (0x400FF0C0u)
9453/** Peripheral GPIOD base pointer */
9454#define GPIOD ((GPIO_TypeDef *)GPIOD_BASE)
9455/** Peripheral GPIOE base address */
9456#define GPIOE_BASE (0x400FF100u)
9457/** Peripheral GPIOE base pointer */
9458#define GPIOE ((GPIO_TypeDef *)GPIOE_BASE)
9459/** Array initializer of GPIO peripheral base addresses */
9460#define GPIO_BASE_ADDRS { GPIOA_BASE, GPIOB_BASE, GPIOC_BASE, GPIOD_BASE, GPIOE_BASE }
9461/** Array initializer of GPIO peripheral base pointers */
9462#define GPIO_BASE_PTRS { GPIOA, GPIOB, GPIOC, GPIOD, GPIOE }
9463
9464/*!
9465 * @}
9466 */ /* end of group GPIO_Peripheral_Access_Layer */
9467
9468
9469/* ----------------------------------------------------------------------------
9470 -- I2C Peripheral Access Layer
9471 ---------------------------------------------------------------------------- */
9472
9473/*!
9474 * @addtogroup I2Cx_Peripheral_Access_Layer I2C Peripheral Access Layer
9475 * @{
9476 */
9477
9478/** I2C - Register Layout Typedef */
9479typedef struct {
9480 __IO uint8_t A1; /**< I2C Address Register 1, offset: 0x0 */
9481 __IO uint8_t F; /**< I2C Frequency Divider register, offset: 0x1 */
9482 __IO uint8_t C1; /**< I2C Control Register 1, offset: 0x2 */
9483 __IO uint8_t S; /**< I2C Status register, offset: 0x3 */
9484 __IO uint8_t D; /**< I2C Data I/O register, offset: 0x4 */
9485 __IO uint8_t C2; /**< I2C Control Register 2, offset: 0x5 */
9486 __IO uint8_t FLT; /**< I2C Programmable Input Glitch Filter Register, offset: 0x6 */
9487 __IO uint8_t RA; /**< I2C Range Address register, offset: 0x7 */
9488 __IO uint8_t SMB; /**< I2C SMBus Control and Status register, offset: 0x8 */
9489 __IO uint8_t A2; /**< I2C Address Register 2, offset: 0x9 */
9490 __IO uint8_t SLTH; /**< I2C SCL Low Timeout Register High, offset: 0xA */
9491 __IO uint8_t SLTL; /**< I2C SCL Low Timeout Register Low, offset: 0xB */
9492} I2C_TypeDef;
9493
9494/* ----------------------------------------------------------------------------
9495 -- I2C Register Masks
9496 ---------------------------------------------------------------------------- */
9497
9498/*!
9499 * @addtogroup I2Cx_Register_Masks I2C Register Masks
9500 * @{
9501 */
9502
9503/*! @name A1 - I2C Address Register 1 */
9504#define I2Cx_A1_AD_MASK (0xFEU)
9505#define I2Cx_A1_AD_SHIFT (1U)
9506#define I2Cx_A1_AD_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_A1_AD_SHIFT)) & I2Cx_A1_AD_MASK)
9507#define I2Cx_A1_AD I2Cx_A1_AD_MASK
9508
9509/*! @name F - I2C Frequency Divider register */
9510#define I2Cx_F_ICR_MASK (0x3FU)
9511#define I2Cx_F_ICR_SHIFT (0U)
9512#define I2Cx_F_ICR_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_F_ICR_SHIFT)) & I2Cx_F_ICR_MASK)
9513#define I2Cx_F_ICR I2Cx_F_ICR_MASK
9514#define I2Cx_F_MULT_MASK (0xC0U)
9515#define I2Cx_F_MULT_SHIFT (6U)
9516#define I2Cx_F_MULT_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_F_MULT_SHIFT)) & I2Cx_F_MULT_MASK)
9517#define I2Cx_F_MULT I2Cx_F_MULT_MASK
9518
9519/*! @name C1 - I2C Control Register 1 */
9520#define I2Cx_C1_DMAEN_MASK (0x1U)
9521#define I2Cx_C1_DMAEN_SHIFT (0U)
9522#define I2Cx_C1_DMAEN_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C1_DMAEN_SHIFT)) & I2Cx_C1_DMAEN_MASK)
9523#define I2Cx_C1_DMAEN I2Cx_C1_DMAEN_MASK
9524#define I2Cx_C1_WUEN_MASK (0x2U)
9525#define I2Cx_C1_WUEN_SHIFT (1U)
9526#define I2Cx_C1_WUEN_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C1_WUEN_SHIFT)) & I2Cx_C1_WUEN_MASK)
9527#define I2Cx_C1_WUEN I2Cx_C1_WUEN_MASK
9528#define I2Cx_C1_RSTA_MASK (0x4U)
9529#define I2Cx_C1_RSTA_SHIFT (2U)
9530#define I2Cx_C1_RSTA_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C1_RSTA_SHIFT)) & I2Cx_C1_RSTA_MASK)
9531#define I2Cx_C1_RSTA I2Cx_C1_RSTA_MASK
9532#define I2Cx_C1_TXAK_MASK (0x8U)
9533#define I2Cx_C1_TXAK_SHIFT (3U)
9534#define I2Cx_C1_TXAK_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C1_TXAK_SHIFT)) & I2Cx_C1_TXAK_MASK)
9535#define I2Cx_C1_TXAK I2Cx_C1_TXAK_MASK
9536#define I2Cx_C1_TX_MASK (0x10U)
9537#define I2Cx_C1_TX_SHIFT (4U)
9538#define I2Cx_C1_TX_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C1_TX_SHIFT)) & I2Cx_C1_TX_MASK)
9539#define I2Cx_C1_TX I2Cx_C1_TX_MASK
9540#define I2Cx_C1_MST_MASK (0x20U)
9541#define I2Cx_C1_MST_SHIFT (5U)
9542#define I2Cx_C1_MST_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C1_MST_SHIFT)) & I2Cx_C1_MST_MASK)
9543#define I2Cx_C1_MST I2Cx_C1_MST_MASK
9544#define I2Cx_C1_IICIE_MASK (0x40U)
9545#define I2Cx_C1_IICIE_SHIFT (6U)
9546#define I2Cx_C1_IICIE_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C1_IICIE_SHIFT)) & I2Cx_C1_IICIE_MASK)
9547#define I2Cx_C1_IICIE I2Cx_C1_IICIE_MASK
9548#define I2Cx_C1_IICEN_MASK (0x80U)
9549#define I2Cx_C1_IICEN_SHIFT (7U)
9550#define I2Cx_C1_IICEN_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C1_IICEN_SHIFT)) & I2Cx_C1_IICEN_MASK)
9551#define I2Cx_C1_IICEN I2Cx_C1_IICEN_MASK
9552
9553/*! @name S - I2C Status register */
9554#define I2Cx_S_RXAK_MASK (0x1U)
9555#define I2Cx_S_RXAK_SHIFT (0U)
9556#define I2Cx_S_RXAK_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_S_RXAK_SHIFT)) & I2Cx_S_RXAK_MASK)
9557#define I2Cx_S_RXAK I2Cx_S_RXAK_MASK
9558#define I2Cx_S_IICIF_MASK (0x2U)
9559#define I2Cx_S_IICIF_SHIFT (1U)
9560#define I2Cx_S_IICIF_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_S_IICIF_SHIFT)) & I2Cx_S_IICIF_MASK)
9561#define I2Cx_S_IICIF I2Cx_S_IICIF_MASK
9562#define I2Cx_S_SRW_MASK (0x4U)
9563#define I2Cx_S_SRW_SHIFT (2U)
9564#define I2Cx_S_SRW_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_S_SRW_SHIFT)) & I2Cx_S_SRW_MASK)
9565#define I2Cx_S_SRW I2Cx_S_SRW_MASK
9566#define I2Cx_S_RAM_MASK (0x8U)
9567#define I2Cx_S_RAM_SHIFT (3U)
9568#define I2Cx_S_RAM_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_S_RAM_SHIFT)) & I2Cx_S_RAM_MASK)
9569#define I2Cx_S_RAM I2Cx_S_RAM_MASK
9570#define I2Cx_S_ARBL_MASK (0x10U)
9571#define I2Cx_S_ARBL_SHIFT (4U)
9572#define I2Cx_S_ARBL_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_S_ARBL_SHIFT)) & I2Cx_S_ARBL_MASK)
9573#define I2Cx_S_ARBL I2Cx_S_ARBL_MASK
9574#define I2Cx_S_BUSY_MASK (0x20U)
9575#define I2Cx_S_BUSY_SHIFT (5U)
9576#define I2Cx_S_BUSY_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_S_BUSY_SHIFT)) & I2Cx_S_BUSY_MASK)
9577#define I2Cx_S_BUSY I2Cx_S_BUSY_MASK
9578#define I2Cx_S_IAAS_MASK (0x40U)
9579#define I2Cx_S_IAAS_SHIFT (6U)
9580#define I2Cx_S_IAAS_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_S_IAAS_SHIFT)) & I2Cx_S_IAAS_MASK)
9581#define I2Cx_S_IAAS I2Cx_S_IAAS_MASK
9582#define I2Cx_S_TCF_MASK (0x80U)
9583#define I2Cx_S_TCF_SHIFT (7U)
9584#define I2Cx_S_TCF_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_S_TCF_SHIFT)) & I2Cx_S_TCF_MASK)
9585#define I2Cx_S_TCF I2Cx_S_TCF_MASK
9586
9587/*! @name D - I2C Data I/O register */
9588#define I2Cx_D_DATA_MASK (0xFFU)
9589#define I2Cx_D_DATA_SHIFT (0U)
9590#define I2Cx_D_DATA_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_D_DATA_SHIFT)) & I2Cx_D_DATA_MASK)
9591#define I2Cx_D_DATA I2Cx_D_DATA_MASK
9592
9593/*! @name C2 - I2C Control Register 2 */
9594#define I2Cx_C2_AD_MASK (0x7U)
9595#define I2Cx_C2_AD_SHIFT (0U)
9596#define I2Cx_C2_AD_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C2_AD_SHIFT)) & I2Cx_C2_AD_MASK)
9597#define I2Cx_C2_AD I2Cx_C2_AD_MASK
9598#define I2Cx_C2_RMEN_MASK (0x8U)
9599#define I2Cx_C2_RMEN_SHIFT (3U)
9600#define I2Cx_C2_RMEN_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C2_RMEN_SHIFT)) & I2Cx_C2_RMEN_MASK)
9601#define I2Cx_C2_RMEN I2Cx_C2_RMEN_MASK
9602#define I2Cx_C2_SBRC_MASK (0x10U)
9603#define I2Cx_C2_SBRC_SHIFT (4U)
9604#define I2Cx_C2_SBRC_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C2_SBRC_SHIFT)) & I2Cx_C2_SBRC_MASK)
9605#define I2Cx_C2_SBRC I2Cx_C2_SBRC_MASK
9606#define I2Cx_C2_HDRS_MASK (0x20U)
9607#define I2Cx_C2_HDRS_SHIFT (5U)
9608#define I2Cx_C2_HDRS_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C2_HDRS_SHIFT)) & I2Cx_C2_HDRS_MASK)
9609#define I2Cx_C2_HDRS I2Cx_C2_HDRS_MASK
9610#define I2Cx_C2_ADEXT_MASK (0x40U)
9611#define I2Cx_C2_ADEXT_SHIFT (6U)
9612#define I2Cx_C2_ADEXT_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C2_ADEXT_SHIFT)) & I2Cx_C2_ADEXT_MASK)
9613#define I2Cx_C2_ADEXT I2Cx_C2_ADEXT_MASK
9614#define I2Cx_C2_GCAEN_MASK (0x80U)
9615#define I2Cx_C2_GCAEN_SHIFT (7U)
9616#define I2Cx_C2_GCAEN_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_C2_GCAEN_SHIFT)) & I2Cx_C2_GCAEN_MASK)
9617#define I2Cx_C2_GCAEN I2Cx_C2_GCAEN_MASK
9618
9619/*! @name FLT - I2C Programmable Input Glitch Filter Register */
9620#define I2Cx_FLT_FLT_MASK (0xFU)
9621#define I2Cx_FLT_FLT_SHIFT (0U)
9622#define I2Cx_FLT_FLT_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_FLT_FLT_SHIFT)) & I2Cx_FLT_FLT_MASK)
9623#define I2Cx_FLT_FLT I2Cx_FLT_FLT_MASK
9624#define I2Cx_FLT_STARTF_MASK (0x10U)
9625#define I2Cx_FLT_STARTF_SHIFT (4U)
9626#define I2Cx_FLT_STARTF_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_FLT_STARTF_SHIFT)) & I2Cx_FLT_STARTF_MASK)
9627#define I2Cx_FLT_STARTF I2Cx_FLT_STARTF_MASK
9628#define I2Cx_FLT_SSIE_MASK (0x20U)
9629#define I2Cx_FLT_SSIE_SHIFT (5U)
9630#define I2Cx_FLT_SSIE_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_FLT_SSIE_SHIFT)) & I2Cx_FLT_SSIE_MASK)
9631#define I2Cx_FLT_SSIE I2Cx_FLT_SSIE_MASK
9632#define I2Cx_FLT_STOPF_MASK (0x40U)
9633#define I2Cx_FLT_STOPF_SHIFT (6U)
9634#define I2Cx_FLT_STOPF_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_FLT_STOPF_SHIFT)) & I2Cx_FLT_STOPF_MASK)
9635#define I2Cx_FLT_STOPF I2Cx_FLT_STOPF_MASK
9636#define I2Cx_FLT_SHEN_MASK (0x80U)
9637#define I2Cx_FLT_SHEN_SHIFT (7U)
9638#define I2Cx_FLT_SHEN_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_FLT_SHEN_SHIFT)) & I2Cx_FLT_SHEN_MASK)
9639#define I2Cx_FLT_SHEN I2Cx_FLT_SHEN_MASK
9640
9641/*! @name RA - I2C Range Address register */
9642#define I2Cx_RA_RAD_MASK (0xFEU)
9643#define I2Cx_RA_RAD_SHIFT (1U)
9644#define I2Cx_RA_RAD_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_RA_RAD_SHIFT)) & I2Cx_RA_RAD_MASK)
9645#define I2Cx_RA_RAD I2Cx_RA_RAD_MASK
9646
9647/*! @name SMB - I2C SMBus Control and Status register */
9648#define I2Cx_SMB_SHTF2IE_MASK (0x1U)
9649#define I2Cx_SMB_SHTF2IE_SHIFT (0U)
9650#define I2Cx_SMB_SHTF2IE_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SMB_SHTF2IE_SHIFT)) & I2Cx_SMB_SHTF2IE_MASK)
9651#define I2Cx_SMB_SHTF2IE I2Cx_SMB_SHTF2IE_MASK
9652#define I2Cx_SMB_SHTF2_MASK (0x2U)
9653#define I2Cx_SMB_SHTF2_SHIFT (1U)
9654#define I2Cx_SMB_SHTF2_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SMB_SHTF2_SHIFT)) & I2Cx_SMB_SHTF2_MASK)
9655#define I2Cx_SMB_SHTF2 I2Cx_SMB_SHTF2_MASK
9656#define I2Cx_SMB_SHTF1_MASK (0x4U)
9657#define I2Cx_SMB_SHTF1_SHIFT (2U)
9658#define I2Cx_SMB_SHTF1_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SMB_SHTF1_SHIFT)) & I2Cx_SMB_SHTF1_MASK)
9659#define I2Cx_SMB_SHTF1 I2Cx_SMB_SHTF1_MASK
9660#define I2Cx_SMB_SLTF_MASK (0x8U)
9661#define I2Cx_SMB_SLTF_SHIFT (3U)
9662#define I2Cx_SMB_SLTF_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SMB_SLTF_SHIFT)) & I2Cx_SMB_SLTF_MASK)
9663#define I2Cx_SMB_SLTF I2Cx_SMB_SLTF_MASK
9664#define I2Cx_SMB_TCKSEL_MASK (0x10U)
9665#define I2Cx_SMB_TCKSEL_SHIFT (4U)
9666#define I2Cx_SMB_TCKSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SMB_TCKSEL_SHIFT)) & I2Cx_SMB_TCKSEL_MASK)
9667#define I2Cx_SMB_TCKSEL I2Cx_SMB_TCKSEL_MASK
9668#define I2Cx_SMB_SIICAEN_MASK (0x20U)
9669#define I2Cx_SMB_SIICAEN_SHIFT (5U)
9670#define I2Cx_SMB_SIICAEN_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SMB_SIICAEN_SHIFT)) & I2Cx_SMB_SIICAEN_MASK)
9671#define I2Cx_SMB_SIICAEN I2Cx_SMB_SIICAEN_MASK
9672#define I2Cx_SMB_ALERTEN_MASK (0x40U)
9673#define I2Cx_SMB_ALERTEN_SHIFT (6U)
9674#define I2Cx_SMB_ALERTEN_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SMB_ALERTEN_SHIFT)) & I2Cx_SMB_ALERTEN_MASK)
9675#define I2Cx_SMB_ALERTEN I2Cx_SMB_ALERTEN_MASK
9676#define I2Cx_SMB_FACK_MASK (0x80U)
9677#define I2Cx_SMB_FACK_SHIFT (7U)
9678#define I2Cx_SMB_FACK_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SMB_FACK_SHIFT)) & I2Cx_SMB_FACK_MASK)
9679#define I2Cx_SMB_FACK I2Cx_SMB_FACK_MASK
9680
9681/*! @name A2 - I2C Address Register 2 */
9682#define I2Cx_A2_SAD_MASK (0xFEU)
9683#define I2Cx_A2_SAD_SHIFT (1U)
9684#define I2Cx_A2_SAD_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_A2_SAD_SHIFT)) & I2Cx_A2_SAD_MASK)
9685#define I2Cx_A2_SAD I2Cx_A2_SAD_MASK
9686
9687/*! @name SLTH - I2C SCL Low Timeout Register High */
9688#define I2Cx_SLTH_SSLT_MASK (0xFFU)
9689#define I2Cx_SLTH_SSLT_SHIFT (0U)
9690#define I2Cx_SLTH_SSLT_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SLTH_SSLT_SHIFT)) & I2Cx_SLTH_SSLT_MASK)
9691#define I2Cx_SLTH_SSLT I2Cx_SLTH_SSLT_MASK
9692
9693/*! @name SLTL - I2C SCL Low Timeout Register Low */
9694#define I2Cx_SLTL_SSLT_MASK (0xFFU)
9695#define I2Cx_SLTL_SSLT_SHIFT (0U)
9696#define I2Cx_SLTL_SSLT_SET(x) (((uint8_t)(((uint8_t)(x)) << I2Cx_SLTL_SSLT_SHIFT)) & I2Cx_SLTL_SSLT_MASK)
9697#define I2Cx_SLTL_SSLT I2Cx_SLTL_SSLT_MASK
9698
9699
9700/*!
9701 * @}
9702 */ /* end of group I2Cx_Register_Masks */
9703
9704
9705/* I2C - Peripheral instance base addresses */
9706/** Peripheral I2C0 base address */
9707#define I2C0_BASE (0x40066000u)
9708/** Peripheral I2C0 base pointer */
9709#define I2C0 ((I2C_TypeDef *)I2C0_BASE)
9710/** Peripheral I2C1 base address */
9711#define I2C1_BASE (0x40067000u)
9712/** Peripheral I2C1 base pointer */
9713#define I2C1 ((I2C_TypeDef *)I2C1_BASE)
9714/** Peripheral I2C2 base address */
9715#define I2C2_BASE (0x400E6000u)
9716/** Peripheral I2C2 base pointer */
9717#define I2C2 ((I2C_TypeDef *)I2C2_BASE)
9718/** Peripheral I2C3 base address */
9719#define I2C3_BASE (0x400E7000u)
9720/** Peripheral I2C3 base pointer */
9721#define I2C3 ((I2C_TypeDef *)I2C3_BASE)
9722/** Array initializer of I2C peripheral base addresses */
9723#define I2Cx_BASE_ADDRS { I2C0_BASE, I2C1_BASE, I2C2_BASE, I2C3_BASE }
9724/** Array initializer of I2C peripheral base pointers */
9725#define I2Cx_BASE_PTRS { I2C0, I2C1, I2C2, I2C3 }
9726/** Interrupt vectors for the I2C peripheral type */
9727#define I2Cx_IRQS { I2C0_IRQn, I2C1_IRQn, I2C2_IRQn, I2C3_IRQn }
9728
9729/*!
9730 * @}
9731 */ /* end of group I2Cx_Peripheral_Access_Layer */
9732
9733
9734/* ----------------------------------------------------------------------------
9735 -- I2S Peripheral Access Layer
9736 ---------------------------------------------------------------------------- */
9737
9738/*!
9739 * @addtogroup I2S_Peripheral_Access_Layer I2S Peripheral Access Layer
9740 * @{
9741 */
9742
9743/** I2S - Register Layout Typedef */
9744typedef struct {
9745 __IO uint32_t TCSR; /**< SAI Transmit Control Register, offset: 0x0 */
9746 __IO uint32_t TCR1; /**< SAI Transmit Configuration 1 Register, offset: 0x4 */
9747 __IO uint32_t TCR2; /**< SAI Transmit Configuration 2 Register, offset: 0x8 */
9748 __IO uint32_t TCR3; /**< SAI Transmit Configuration 3 Register, offset: 0xC */
9749 __IO uint32_t TCR4; /**< SAI Transmit Configuration 4 Register, offset: 0x10 */
9750 __IO uint32_t TCR5; /**< SAI Transmit Configuration 5 Register, offset: 0x14 */
9751 uint8_t RESERVED_0[8];
9752 __O uint32_t TDR[2]; /**< SAI Transmit Data Register, array offset: 0x20, array step: 0x4 */
9753 uint8_t RESERVED_1[24];
9754 __I uint32_t TFR[2]; /**< SAI Transmit FIFO Register, array offset: 0x40, array step: 0x4 */
9755 uint8_t RESERVED_2[24];
9756 __IO uint32_t TMR; /**< SAI Transmit Mask Register, offset: 0x60 */
9757 uint8_t RESERVED_3[28];
9758 __IO uint32_t RCSR; /**< SAI Receive Control Register, offset: 0x80 */
9759 __IO uint32_t RCR1; /**< SAI Receive Configuration 1 Register, offset: 0x84 */
9760 __IO uint32_t RCR2; /**< SAI Receive Configuration 2 Register, offset: 0x88 */
9761 __IO uint32_t RCR3; /**< SAI Receive Configuration 3 Register, offset: 0x8C */
9762 __IO uint32_t RCR4; /**< SAI Receive Configuration 4 Register, offset: 0x90 */
9763 __IO uint32_t RCR5; /**< SAI Receive Configuration 5 Register, offset: 0x94 */
9764 uint8_t RESERVED_4[8];
9765 __I uint32_t RDR[2]; /**< SAI Receive Data Register, array offset: 0xA0, array step: 0x4 */
9766 uint8_t RESERVED_5[24];
9767 __I uint32_t RFR[2]; /**< SAI Receive FIFO Register, array offset: 0xC0, array step: 0x4 */
9768 uint8_t RESERVED_6[24];
9769 __IO uint32_t RMR; /**< SAI Receive Mask Register, offset: 0xE0 */
9770 uint8_t RESERVED_7[28];
9771 __IO uint32_t MCR; /**< SAI MCLK Control Register, offset: 0x100 */
9772 __IO uint32_t MDR; /**< SAI MCLK Divide Register, offset: 0x104 */
9773} I2S_TypeDef;
9774
9775/* ----------------------------------------------------------------------------
9776 -- I2S Register Masks
9777 ---------------------------------------------------------------------------- */
9778
9779/*!
9780 * @addtogroup I2S_Register_Masks I2S Register Masks
9781 * @{
9782 */
9783
9784/*! @name TCSR - SAI Transmit Control Register */
9785#define I2S_TCSR_FRDE_MASK (0x1U)
9786#define I2S_TCSR_FRDE_SHIFT (0U)
9787#define I2S_TCSR_FRDE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FRDE_SHIFT)) & I2S_TCSR_FRDE_MASK)
9788#define I2S_TCSR_FRDE I2S_TCSR_FRDE_MASK
9789#define I2S_TCSR_FWDE_MASK (0x2U)
9790#define I2S_TCSR_FWDE_SHIFT (1U)
9791#define I2S_TCSR_FWDE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FWDE_SHIFT)) & I2S_TCSR_FWDE_MASK)
9792#define I2S_TCSR_FWDE I2S_TCSR_FWDE_MASK
9793#define I2S_TCSR_FRIE_MASK (0x100U)
9794#define I2S_TCSR_FRIE_SHIFT (8U)
9795#define I2S_TCSR_FRIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FRIE_SHIFT)) & I2S_TCSR_FRIE_MASK)
9796#define I2S_TCSR_FRIE I2S_TCSR_FRIE_MASK
9797#define I2S_TCSR_FWIE_MASK (0x200U)
9798#define I2S_TCSR_FWIE_SHIFT (9U)
9799#define I2S_TCSR_FWIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FWIE_SHIFT)) & I2S_TCSR_FWIE_MASK)
9800#define I2S_TCSR_FWIE I2S_TCSR_FWIE_MASK
9801#define I2S_TCSR_FEIE_MASK (0x400U)
9802#define I2S_TCSR_FEIE_SHIFT (10U)
9803#define I2S_TCSR_FEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FEIE_SHIFT)) & I2S_TCSR_FEIE_MASK)
9804#define I2S_TCSR_FEIE I2S_TCSR_FEIE_MASK
9805#define I2S_TCSR_SEIE_MASK (0x800U)
9806#define I2S_TCSR_SEIE_SHIFT (11U)
9807#define I2S_TCSR_SEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_SEIE_SHIFT)) & I2S_TCSR_SEIE_MASK)
9808#define I2S_TCSR_SEIE I2S_TCSR_SEIE_MASK
9809#define I2S_TCSR_WSIE_MASK (0x1000U)
9810#define I2S_TCSR_WSIE_SHIFT (12U)
9811#define I2S_TCSR_WSIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_WSIE_SHIFT)) & I2S_TCSR_WSIE_MASK)
9812#define I2S_TCSR_WSIE I2S_TCSR_WSIE_MASK
9813#define I2S_TCSR_FRF_MASK (0x10000U)
9814#define I2S_TCSR_FRF_SHIFT (16U)
9815#define I2S_TCSR_FRF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FRF_SHIFT)) & I2S_TCSR_FRF_MASK)
9816#define I2S_TCSR_FRF I2S_TCSR_FRF_MASK
9817#define I2S_TCSR_FWF_MASK (0x20000U)
9818#define I2S_TCSR_FWF_SHIFT (17U)
9819#define I2S_TCSR_FWF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FWF_SHIFT)) & I2S_TCSR_FWF_MASK)
9820#define I2S_TCSR_FWF I2S_TCSR_FWF_MASK
9821#define I2S_TCSR_FEF_MASK (0x40000U)
9822#define I2S_TCSR_FEF_SHIFT (18U)
9823#define I2S_TCSR_FEF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FEF_SHIFT)) & I2S_TCSR_FEF_MASK)
9824#define I2S_TCSR_FEF I2S_TCSR_FEF_MASK
9825#define I2S_TCSR_SEF_MASK (0x80000U)
9826#define I2S_TCSR_SEF_SHIFT (19U)
9827#define I2S_TCSR_SEF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_SEF_SHIFT)) & I2S_TCSR_SEF_MASK)
9828#define I2S_TCSR_SEF I2S_TCSR_SEF_MASK
9829#define I2S_TCSR_WSF_MASK (0x100000U)
9830#define I2S_TCSR_WSF_SHIFT (20U)
9831#define I2S_TCSR_WSF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_WSF_SHIFT)) & I2S_TCSR_WSF_MASK)
9832#define I2S_TCSR_WSF I2S_TCSR_WSF_MASK
9833#define I2S_TCSR_SR_MASK (0x1000000U)
9834#define I2S_TCSR_SR_SHIFT (24U)
9835#define I2S_TCSR_SR_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_SR_SHIFT)) & I2S_TCSR_SR_MASK)
9836#define I2S_TCSR_SR I2S_TCSR_SR_MASK
9837#define I2S_TCSR_FR_MASK (0x2000000U)
9838#define I2S_TCSR_FR_SHIFT (25U)
9839#define I2S_TCSR_FR_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FR_SHIFT)) & I2S_TCSR_FR_MASK)
9840#define I2S_TCSR_FR I2S_TCSR_FR_MASK
9841#define I2S_TCSR_BCE_MASK (0x10000000U)
9842#define I2S_TCSR_BCE_SHIFT (28U)
9843#define I2S_TCSR_BCE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_BCE_SHIFT)) & I2S_TCSR_BCE_MASK)
9844#define I2S_TCSR_BCE I2S_TCSR_BCE_MASK
9845#define I2S_TCSR_DBGE_MASK (0x20000000U)
9846#define I2S_TCSR_DBGE_SHIFT (29U)
9847#define I2S_TCSR_DBGE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_DBGE_SHIFT)) & I2S_TCSR_DBGE_MASK)
9848#define I2S_TCSR_DBGE I2S_TCSR_DBGE_MASK
9849#define I2S_TCSR_STOPE_MASK (0x40000000U)
9850#define I2S_TCSR_STOPE_SHIFT (30U)
9851#define I2S_TCSR_STOPE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_STOPE_SHIFT)) & I2S_TCSR_STOPE_MASK)
9852#define I2S_TCSR_STOPE I2S_TCSR_STOPE_MASK
9853#define I2S_TCSR_TE_MASK (0x80000000U)
9854#define I2S_TCSR_TE_SHIFT (31U)
9855#define I2S_TCSR_TE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_TE_SHIFT)) & I2S_TCSR_TE_MASK)
9856#define I2S_TCSR_TE I2S_TCSR_TE_MASK
9857
9858/*! @name TCR1 - SAI Transmit Configuration 1 Register */
9859#define I2S_TCR1_TFW_MASK (0x7U)
9860#define I2S_TCR1_TFW_SHIFT (0U)
9861#define I2S_TCR1_TFW_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR1_TFW_SHIFT)) & I2S_TCR1_TFW_MASK)
9862#define I2S_TCR1_TFW I2S_TCR1_TFW_MASK
9863
9864/*! @name TCR2 - SAI Transmit Configuration 2 Register */
9865#define I2S_TCR2_DIV_MASK (0xFFU)
9866#define I2S_TCR2_DIV_SHIFT (0U)
9867#define I2S_TCR2_DIV_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_DIV_SHIFT)) & I2S_TCR2_DIV_MASK)
9868#define I2S_TCR2_DIV I2S_TCR2_DIV_MASK
9869#define I2S_TCR2_BCD_MASK (0x1000000U)
9870#define I2S_TCR2_BCD_SHIFT (24U)
9871#define I2S_TCR2_BCD_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_BCD_SHIFT)) & I2S_TCR2_BCD_MASK)
9872#define I2S_TCR2_BCD I2S_TCR2_BCD_MASK
9873#define I2S_TCR2_BCP_MASK (0x2000000U)
9874#define I2S_TCR2_BCP_SHIFT (25U)
9875#define I2S_TCR2_BCP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_BCP_SHIFT)) & I2S_TCR2_BCP_MASK)
9876#define I2S_TCR2_BCP I2S_TCR2_BCP_MASK
9877#define I2S_TCR2_MSEL_MASK (0xC000000U)
9878#define I2S_TCR2_MSEL_SHIFT (26U)
9879#define I2S_TCR2_MSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_MSEL_SHIFT)) & I2S_TCR2_MSEL_MASK)
9880#define I2S_TCR2_MSEL I2S_TCR2_MSEL_MASK
9881#define I2S_TCR2_BCI_MASK (0x10000000U)
9882#define I2S_TCR2_BCI_SHIFT (28U)
9883#define I2S_TCR2_BCI_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_BCI_SHIFT)) & I2S_TCR2_BCI_MASK)
9884#define I2S_TCR2_BCI I2S_TCR2_BCI_MASK
9885#define I2S_TCR2_BCS_MASK (0x20000000U)
9886#define I2S_TCR2_BCS_SHIFT (29U)
9887#define I2S_TCR2_BCS_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_BCS_SHIFT)) & I2S_TCR2_BCS_MASK)
9888#define I2S_TCR2_BCS I2S_TCR2_BCS_MASK
9889#define I2S_TCR2_SYNC_MASK (0xC0000000U)
9890#define I2S_TCR2_SYNC_SHIFT (30U)
9891#define I2S_TCR2_SYNC_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_SYNC_SHIFT)) & I2S_TCR2_SYNC_MASK)
9892#define I2S_TCR2_SYNC I2S_TCR2_SYNC_MASK
9893
9894/*! @name TCR3 - SAI Transmit Configuration 3 Register */
9895#define I2S_TCR3_WDFL_MASK (0x1FU)
9896#define I2S_TCR3_WDFL_SHIFT (0U)
9897#define I2S_TCR3_WDFL_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR3_WDFL_SHIFT)) & I2S_TCR3_WDFL_MASK)
9898#define I2S_TCR3_WDFL I2S_TCR3_WDFL_MASK
9899#define I2S_TCR3_TCE_MASK (0x30000U)
9900#define I2S_TCR3_TCE_SHIFT (16U)
9901#define I2S_TCR3_TCE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR3_TCE_SHIFT)) & I2S_TCR3_TCE_MASK)
9902#define I2S_TCR3_TCE I2S_TCR3_TCE_MASK
9903#define I2S_TCR3_CFR_MASK (0x3000000U)
9904#define I2S_TCR3_CFR_SHIFT (24U)
9905#define I2S_TCR3_CFR_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR3_CFR_SHIFT)) & I2S_TCR3_CFR_MASK)
9906#define I2S_TCR3_CFR I2S_TCR3_CFR_MASK
9907
9908/*! @name TCR4 - SAI Transmit Configuration 4 Register */
9909#define I2S_TCR4_FSD_MASK (0x1U)
9910#define I2S_TCR4_FSD_SHIFT (0U)
9911#define I2S_TCR4_FSD_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FSD_SHIFT)) & I2S_TCR4_FSD_MASK)
9912#define I2S_TCR4_FSD I2S_TCR4_FSD_MASK
9913#define I2S_TCR4_FSP_MASK (0x2U)
9914#define I2S_TCR4_FSP_SHIFT (1U)
9915#define I2S_TCR4_FSP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FSP_SHIFT)) & I2S_TCR4_FSP_MASK)
9916#define I2S_TCR4_FSP I2S_TCR4_FSP_MASK
9917#define I2S_TCR4_ONDEM_MASK (0x4U)
9918#define I2S_TCR4_ONDEM_SHIFT (2U)
9919#define I2S_TCR4_ONDEM_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_ONDEM_SHIFT)) & I2S_TCR4_ONDEM_MASK)
9920#define I2S_TCR4_ONDEM I2S_TCR4_ONDEM_MASK
9921#define I2S_TCR4_FSE_MASK (0x8U)
9922#define I2S_TCR4_FSE_SHIFT (3U)
9923#define I2S_TCR4_FSE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FSE_SHIFT)) & I2S_TCR4_FSE_MASK)
9924#define I2S_TCR4_FSE I2S_TCR4_FSE_MASK
9925#define I2S_TCR4_MF_MASK (0x10U)
9926#define I2S_TCR4_MF_SHIFT (4U)
9927#define I2S_TCR4_MF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_MF_SHIFT)) & I2S_TCR4_MF_MASK)
9928#define I2S_TCR4_MF I2S_TCR4_MF_MASK
9929#define I2S_TCR4_SYWD_MASK (0x1F00U)
9930#define I2S_TCR4_SYWD_SHIFT (8U)
9931#define I2S_TCR4_SYWD_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_SYWD_SHIFT)) & I2S_TCR4_SYWD_MASK)
9932#define I2S_TCR4_SYWD I2S_TCR4_SYWD_MASK
9933#define I2S_TCR4_FRSZ_MASK (0x1F0000U)
9934#define I2S_TCR4_FRSZ_SHIFT (16U)
9935#define I2S_TCR4_FRSZ_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FRSZ_SHIFT)) & I2S_TCR4_FRSZ_MASK)
9936#define I2S_TCR4_FRSZ I2S_TCR4_FRSZ_MASK
9937#define I2S_TCR4_FPACK_MASK (0x3000000U)
9938#define I2S_TCR4_FPACK_SHIFT (24U)
9939#define I2S_TCR4_FPACK_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FPACK_SHIFT)) & I2S_TCR4_FPACK_MASK)
9940#define I2S_TCR4_FPACK I2S_TCR4_FPACK_MASK
9941#define I2S_TCR4_FCOMB_MASK (0xC000000U)
9942#define I2S_TCR4_FCOMB_SHIFT (26U)
9943#define I2S_TCR4_FCOMB_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FCOMB_SHIFT)) & I2S_TCR4_FCOMB_MASK)
9944#define I2S_TCR4_FCOMB I2S_TCR4_FCOMB_MASK
9945#define I2S_TCR4_FCONT_MASK (0x10000000U)
9946#define I2S_TCR4_FCONT_SHIFT (28U)
9947#define I2S_TCR4_FCONT_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FCONT_SHIFT)) & I2S_TCR4_FCONT_MASK)
9948#define I2S_TCR4_FCONT I2S_TCR4_FCONT_MASK
9949
9950/*! @name TCR5 - SAI Transmit Configuration 5 Register */
9951#define I2S_TCR5_FBT_MASK (0x1F00U)
9952#define I2S_TCR5_FBT_SHIFT (8U)
9953#define I2S_TCR5_FBT_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_FBT_SHIFT)) & I2S_TCR5_FBT_MASK)
9954#define I2S_TCR5_FBT I2S_TCR5_FBT_MASK
9955#define I2S_TCR5_W0W_MASK (0x1F0000U)
9956#define I2S_TCR5_W0W_SHIFT (16U)
9957#define I2S_TCR5_W0W_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_W0W_SHIFT)) & I2S_TCR5_W0W_MASK)
9958#define I2S_TCR5_W0W I2S_TCR5_W0W_MASK
9959#define I2S_TCR5_WNW_MASK (0x1F000000U)
9960#define I2S_TCR5_WNW_SHIFT (24U)
9961#define I2S_TCR5_WNW_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_WNW_SHIFT)) & I2S_TCR5_WNW_MASK)
9962#define I2S_TCR5_WNW I2S_TCR5_WNW_MASK
9963
9964/*! @name TDR - SAI Transmit Data Register */
9965#define I2S_TDR_TDR_MASK (0xFFFFFFFFU)
9966#define I2S_TDR_TDR_SHIFT (0U)
9967#define I2S_TDR_TDR_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TDR_TDR_SHIFT)) & I2S_TDR_TDR_MASK)
9968#define I2S_TDR_TDR I2S_TDR_TDR_MASK
9969
9970/* The count of I2S_TDR */
9971#define I2S_TDR_COUNT (2U)
9972
9973/*! @name TFR - SAI Transmit FIFO Register */
9974#define I2S_TFR_RFP_MASK (0xFU)
9975#define I2S_TFR_RFP_SHIFT (0U)
9976#define I2S_TFR_RFP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TFR_RFP_SHIFT)) & I2S_TFR_RFP_MASK)
9977#define I2S_TFR_RFP I2S_TFR_RFP_MASK
9978#define I2S_TFR_WFP_MASK (0xF0000U)
9979#define I2S_TFR_WFP_SHIFT (16U)
9980#define I2S_TFR_WFP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TFR_WFP_SHIFT)) & I2S_TFR_WFP_MASK)
9981#define I2S_TFR_WFP I2S_TFR_WFP_MASK
9982#define I2S_TFR_WCP_MASK (0x80000000U)
9983#define I2S_TFR_WCP_SHIFT (31U)
9984#define I2S_TFR_WCP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TFR_WCP_SHIFT)) & I2S_TFR_WCP_MASK)
9985#define I2S_TFR_WCP I2S_TFR_WCP_MASK
9986
9987/* The count of I2S_TFR */
9988#define I2S_TFR_COUNT (2U)
9989
9990/*! @name TMR - SAI Transmit Mask Register */
9991#define I2S_TMR_TWM_MASK (0xFFFFFFFFU)
9992#define I2S_TMR_TWM_SHIFT (0U)
9993#define I2S_TMR_TWM_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_TMR_TWM_SHIFT)) & I2S_TMR_TWM_MASK)
9994#define I2S_TMR_TWM I2S_TMR_TWM_MASK
9995
9996/*! @name RCSR - SAI Receive Control Register */
9997#define I2S_RCSR_FRDE_MASK (0x1U)
9998#define I2S_RCSR_FRDE_SHIFT (0U)
9999#define I2S_RCSR_FRDE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FRDE_SHIFT)) & I2S_RCSR_FRDE_MASK)
10000#define I2S_RCSR_FRDE I2S_RCSR_FRDE_MASK
10001#define I2S_RCSR_FWDE_MASK (0x2U)
10002#define I2S_RCSR_FWDE_SHIFT (1U)
10003#define I2S_RCSR_FWDE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FWDE_SHIFT)) & I2S_RCSR_FWDE_MASK)
10004#define I2S_RCSR_FWDE I2S_RCSR_FWDE_MASK
10005#define I2S_RCSR_FRIE_MASK (0x100U)
10006#define I2S_RCSR_FRIE_SHIFT (8U)
10007#define I2S_RCSR_FRIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FRIE_SHIFT)) & I2S_RCSR_FRIE_MASK)
10008#define I2S_RCSR_FRIE I2S_RCSR_FRIE_MASK
10009#define I2S_RCSR_FWIE_MASK (0x200U)
10010#define I2S_RCSR_FWIE_SHIFT (9U)
10011#define I2S_RCSR_FWIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FWIE_SHIFT)) & I2S_RCSR_FWIE_MASK)
10012#define I2S_RCSR_FWIE I2S_RCSR_FWIE_MASK
10013#define I2S_RCSR_FEIE_MASK (0x400U)
10014#define I2S_RCSR_FEIE_SHIFT (10U)
10015#define I2S_RCSR_FEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FEIE_SHIFT)) & I2S_RCSR_FEIE_MASK)
10016#define I2S_RCSR_FEIE I2S_RCSR_FEIE_MASK
10017#define I2S_RCSR_SEIE_MASK (0x800U)
10018#define I2S_RCSR_SEIE_SHIFT (11U)
10019#define I2S_RCSR_SEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_SEIE_SHIFT)) & I2S_RCSR_SEIE_MASK)
10020#define I2S_RCSR_SEIE I2S_RCSR_SEIE_MASK
10021#define I2S_RCSR_WSIE_MASK (0x1000U)
10022#define I2S_RCSR_WSIE_SHIFT (12U)
10023#define I2S_RCSR_WSIE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_WSIE_SHIFT)) & I2S_RCSR_WSIE_MASK)
10024#define I2S_RCSR_WSIE I2S_RCSR_WSIE_MASK
10025#define I2S_RCSR_FRF_MASK (0x10000U)
10026#define I2S_RCSR_FRF_SHIFT (16U)
10027#define I2S_RCSR_FRF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FRF_SHIFT)) & I2S_RCSR_FRF_MASK)
10028#define I2S_RCSR_FRF I2S_RCSR_FRF_MASK
10029#define I2S_RCSR_FWF_MASK (0x20000U)
10030#define I2S_RCSR_FWF_SHIFT (17U)
10031#define I2S_RCSR_FWF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FWF_SHIFT)) & I2S_RCSR_FWF_MASK)
10032#define I2S_RCSR_FWF I2S_RCSR_FWF_MASK
10033#define I2S_RCSR_FEF_MASK (0x40000U)
10034#define I2S_RCSR_FEF_SHIFT (18U)
10035#define I2S_RCSR_FEF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FEF_SHIFT)) & I2S_RCSR_FEF_MASK)
10036#define I2S_RCSR_FEF I2S_RCSR_FEF_MASK
10037#define I2S_RCSR_SEF_MASK (0x80000U)
10038#define I2S_RCSR_SEF_SHIFT (19U)
10039#define I2S_RCSR_SEF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_SEF_SHIFT)) & I2S_RCSR_SEF_MASK)
10040#define I2S_RCSR_SEF I2S_RCSR_SEF_MASK
10041#define I2S_RCSR_WSF_MASK (0x100000U)
10042#define I2S_RCSR_WSF_SHIFT (20U)
10043#define I2S_RCSR_WSF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_WSF_SHIFT)) & I2S_RCSR_WSF_MASK)
10044#define I2S_RCSR_WSF I2S_RCSR_WSF_MASK
10045#define I2S_RCSR_SR_MASK (0x1000000U)
10046#define I2S_RCSR_SR_SHIFT (24U)
10047#define I2S_RCSR_SR_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_SR_SHIFT)) & I2S_RCSR_SR_MASK)
10048#define I2S_RCSR_SR I2S_RCSR_SR_MASK
10049#define I2S_RCSR_FR_MASK (0x2000000U)
10050#define I2S_RCSR_FR_SHIFT (25U)
10051#define I2S_RCSR_FR_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FR_SHIFT)) & I2S_RCSR_FR_MASK)
10052#define I2S_RCSR_FR I2S_RCSR_FR_MASK
10053#define I2S_RCSR_BCE_MASK (0x10000000U)
10054#define I2S_RCSR_BCE_SHIFT (28U)
10055#define I2S_RCSR_BCE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_BCE_SHIFT)) & I2S_RCSR_BCE_MASK)
10056#define I2S_RCSR_BCE I2S_RCSR_BCE_MASK
10057#define I2S_RCSR_DBGE_MASK (0x20000000U)
10058#define I2S_RCSR_DBGE_SHIFT (29U)
10059#define I2S_RCSR_DBGE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_DBGE_SHIFT)) & I2S_RCSR_DBGE_MASK)
10060#define I2S_RCSR_DBGE I2S_RCSR_DBGE_MASK
10061#define I2S_RCSR_STOPE_MASK (0x40000000U)
10062#define I2S_RCSR_STOPE_SHIFT (30U)
10063#define I2S_RCSR_STOPE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_STOPE_SHIFT)) & I2S_RCSR_STOPE_MASK)
10064#define I2S_RCSR_STOPE I2S_RCSR_STOPE_MASK
10065#define I2S_RCSR_RE_MASK (0x80000000U)
10066#define I2S_RCSR_RE_SHIFT (31U)
10067#define I2S_RCSR_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_RE_SHIFT)) & I2S_RCSR_RE_MASK)
10068#define I2S_RCSR_RE I2S_RCSR_RE_MASK
10069
10070/*! @name RCR1 - SAI Receive Configuration 1 Register */
10071#define I2S_RCR1_RFW_MASK (0x7U)
10072#define I2S_RCR1_RFW_SHIFT (0U)
10073#define I2S_RCR1_RFW_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR1_RFW_SHIFT)) & I2S_RCR1_RFW_MASK)
10074#define I2S_RCR1_RFW I2S_RCR1_RFW_MASK
10075
10076/*! @name RCR2 - SAI Receive Configuration 2 Register */
10077#define I2S_RCR2_DIV_MASK (0xFFU)
10078#define I2S_RCR2_DIV_SHIFT (0U)
10079#define I2S_RCR2_DIV_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_DIV_SHIFT)) & I2S_RCR2_DIV_MASK)
10080#define I2S_RCR2_DIV I2S_RCR2_DIV_MASK
10081#define I2S_RCR2_BCD_MASK (0x1000000U)
10082#define I2S_RCR2_BCD_SHIFT (24U)
10083#define I2S_RCR2_BCD_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_BCD_SHIFT)) & I2S_RCR2_BCD_MASK)
10084#define I2S_RCR2_BCD I2S_RCR2_BCD_MASK
10085#define I2S_RCR2_BCP_MASK (0x2000000U)
10086#define I2S_RCR2_BCP_SHIFT (25U)
10087#define I2S_RCR2_BCP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_BCP_SHIFT)) & I2S_RCR2_BCP_MASK)
10088#define I2S_RCR2_BCP I2S_RCR2_BCP_MASK
10089#define I2S_RCR2_MSEL_MASK (0xC000000U)
10090#define I2S_RCR2_MSEL_SHIFT (26U)
10091#define I2S_RCR2_MSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_MSEL_SHIFT)) & I2S_RCR2_MSEL_MASK)
10092#define I2S_RCR2_MSEL I2S_RCR2_MSEL_MASK
10093#define I2S_RCR2_BCI_MASK (0x10000000U)
10094#define I2S_RCR2_BCI_SHIFT (28U)
10095#define I2S_RCR2_BCI_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_BCI_SHIFT)) & I2S_RCR2_BCI_MASK)
10096#define I2S_RCR2_BCI I2S_RCR2_BCI_MASK
10097#define I2S_RCR2_BCS_MASK (0x20000000U)
10098#define I2S_RCR2_BCS_SHIFT (29U)
10099#define I2S_RCR2_BCS_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_BCS_SHIFT)) & I2S_RCR2_BCS_MASK)
10100#define I2S_RCR2_BCS I2S_RCR2_BCS_MASK
10101#define I2S_RCR2_SYNC_MASK (0xC0000000U)
10102#define I2S_RCR2_SYNC_SHIFT (30U)
10103#define I2S_RCR2_SYNC_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_SYNC_SHIFT)) & I2S_RCR2_SYNC_MASK)
10104#define I2S_RCR2_SYNC I2S_RCR2_SYNC_MASK
10105
10106/*! @name RCR3 - SAI Receive Configuration 3 Register */
10107#define I2S_RCR3_WDFL_MASK (0x1FU)
10108#define I2S_RCR3_WDFL_SHIFT (0U)
10109#define I2S_RCR3_WDFL_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR3_WDFL_SHIFT)) & I2S_RCR3_WDFL_MASK)
10110#define I2S_RCR3_WDFL I2S_RCR3_WDFL_MASK
10111#define I2S_RCR3_RCE_MASK (0x30000U)
10112#define I2S_RCR3_RCE_SHIFT (16U)
10113#define I2S_RCR3_RCE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR3_RCE_SHIFT)) & I2S_RCR3_RCE_MASK)
10114#define I2S_RCR3_RCE I2S_RCR3_RCE_MASK
10115#define I2S_RCR3_CFR_MASK (0x3000000U)
10116#define I2S_RCR3_CFR_SHIFT (24U)
10117#define I2S_RCR3_CFR_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR3_CFR_SHIFT)) & I2S_RCR3_CFR_MASK)
10118#define I2S_RCR3_CFR I2S_RCR3_CFR_MASK
10119
10120/*! @name RCR4 - SAI Receive Configuration 4 Register */
10121#define I2S_RCR4_FSD_MASK (0x1U)
10122#define I2S_RCR4_FSD_SHIFT (0U)
10123#define I2S_RCR4_FSD_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FSD_SHIFT)) & I2S_RCR4_FSD_MASK)
10124#define I2S_RCR4_FSD I2S_RCR4_FSD_MASK
10125#define I2S_RCR4_FSP_MASK (0x2U)
10126#define I2S_RCR4_FSP_SHIFT (1U)
10127#define I2S_RCR4_FSP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FSP_SHIFT)) & I2S_RCR4_FSP_MASK)
10128#define I2S_RCR4_FSP I2S_RCR4_FSP_MASK
10129#define I2S_RCR4_ONDEM_MASK (0x4U)
10130#define I2S_RCR4_ONDEM_SHIFT (2U)
10131#define I2S_RCR4_ONDEM_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_ONDEM_SHIFT)) & I2S_RCR4_ONDEM_MASK)
10132#define I2S_RCR4_ONDEM I2S_RCR4_ONDEM_MASK
10133#define I2S_RCR4_FSE_MASK (0x8U)
10134#define I2S_RCR4_FSE_SHIFT (3U)
10135#define I2S_RCR4_FSE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FSE_SHIFT)) & I2S_RCR4_FSE_MASK)
10136#define I2S_RCR4_FSE I2S_RCR4_FSE_MASK
10137#define I2S_RCR4_MF_MASK (0x10U)
10138#define I2S_RCR4_MF_SHIFT (4U)
10139#define I2S_RCR4_MF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_MF_SHIFT)) & I2S_RCR4_MF_MASK)
10140#define I2S_RCR4_MF I2S_RCR4_MF_MASK
10141#define I2S_RCR4_SYWD_MASK (0x1F00U)
10142#define I2S_RCR4_SYWD_SHIFT (8U)
10143#define I2S_RCR4_SYWD_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_SYWD_SHIFT)) & I2S_RCR4_SYWD_MASK)
10144#define I2S_RCR4_SYWD I2S_RCR4_SYWD_MASK
10145#define I2S_RCR4_FRSZ_MASK (0x1F0000U)
10146#define I2S_RCR4_FRSZ_SHIFT (16U)
10147#define I2S_RCR4_FRSZ_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FRSZ_SHIFT)) & I2S_RCR4_FRSZ_MASK)
10148#define I2S_RCR4_FRSZ I2S_RCR4_FRSZ_MASK
10149#define I2S_RCR4_FPACK_MASK (0x3000000U)
10150#define I2S_RCR4_FPACK_SHIFT (24U)
10151#define I2S_RCR4_FPACK_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FPACK_SHIFT)) & I2S_RCR4_FPACK_MASK)
10152#define I2S_RCR4_FPACK I2S_RCR4_FPACK_MASK
10153#define I2S_RCR4_FCOMB_MASK (0xC000000U)
10154#define I2S_RCR4_FCOMB_SHIFT (26U)
10155#define I2S_RCR4_FCOMB_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FCOMB_SHIFT)) & I2S_RCR4_FCOMB_MASK)
10156#define I2S_RCR4_FCOMB I2S_RCR4_FCOMB_MASK
10157#define I2S_RCR4_FCONT_MASK (0x10000000U)
10158#define I2S_RCR4_FCONT_SHIFT (28U)
10159#define I2S_RCR4_FCONT_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FCONT_SHIFT)) & I2S_RCR4_FCONT_MASK)
10160#define I2S_RCR4_FCONT I2S_RCR4_FCONT_MASK
10161
10162/*! @name RCR5 - SAI Receive Configuration 5 Register */
10163#define I2S_RCR5_FBT_MASK (0x1F00U)
10164#define I2S_RCR5_FBT_SHIFT (8U)
10165#define I2S_RCR5_FBT_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_FBT_SHIFT)) & I2S_RCR5_FBT_MASK)
10166#define I2S_RCR5_FBT I2S_RCR5_FBT_MASK
10167#define I2S_RCR5_W0W_MASK (0x1F0000U)
10168#define I2S_RCR5_W0W_SHIFT (16U)
10169#define I2S_RCR5_W0W_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_W0W_SHIFT)) & I2S_RCR5_W0W_MASK)
10170#define I2S_RCR5_W0W I2S_RCR5_W0W_MASK
10171#define I2S_RCR5_WNW_MASK (0x1F000000U)
10172#define I2S_RCR5_WNW_SHIFT (24U)
10173#define I2S_RCR5_WNW_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_WNW_SHIFT)) & I2S_RCR5_WNW_MASK)
10174#define I2S_RCR5_WNW I2S_RCR5_WNW_MASK
10175
10176/*! @name RDR - SAI Receive Data Register */
10177#define I2S_RDR_RDR_MASK (0xFFFFFFFFU)
10178#define I2S_RDR_RDR_SHIFT (0U)
10179#define I2S_RDR_RDR_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RDR_RDR_SHIFT)) & I2S_RDR_RDR_MASK)
10180#define I2S_RDR_RDR I2S_RDR_RDR_MASK
10181
10182/* The count of I2S_RDR */
10183#define I2S_RDR_COUNT (2U)
10184
10185/*! @name RFR - SAI Receive FIFO Register */
10186#define I2S_RFR_RFP_MASK (0xFU)
10187#define I2S_RFR_RFP_SHIFT (0U)
10188#define I2S_RFR_RFP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RFR_RFP_SHIFT)) & I2S_RFR_RFP_MASK)
10189#define I2S_RFR_RFP I2S_RFR_RFP_MASK
10190#define I2S_RFR_RCP_MASK (0x8000U)
10191#define I2S_RFR_RCP_SHIFT (15U)
10192#define I2S_RFR_RCP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RFR_RCP_SHIFT)) & I2S_RFR_RCP_MASK)
10193#define I2S_RFR_RCP I2S_RFR_RCP_MASK
10194#define I2S_RFR_WFP_MASK (0xF0000U)
10195#define I2S_RFR_WFP_SHIFT (16U)
10196#define I2S_RFR_WFP_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RFR_WFP_SHIFT)) & I2S_RFR_WFP_MASK)
10197#define I2S_RFR_WFP I2S_RFR_WFP_MASK
10198
10199/* The count of I2S_RFR */
10200#define I2S_RFR_COUNT (2U)
10201
10202/*! @name RMR - SAI Receive Mask Register */
10203#define I2S_RMR_RWM_MASK (0xFFFFFFFFU)
10204#define I2S_RMR_RWM_SHIFT (0U)
10205#define I2S_RMR_RWM_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_RMR_RWM_SHIFT)) & I2S_RMR_RWM_MASK)
10206#define I2S_RMR_RWM I2S_RMR_RWM_MASK
10207
10208/*! @name MCR - SAI MCLK Control Register */
10209#define I2S_MCR_MICS_MASK (0x3000000U)
10210#define I2S_MCR_MICS_SHIFT (24U)
10211#define I2S_MCR_MICS_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_MCR_MICS_SHIFT)) & I2S_MCR_MICS_MASK)
10212#define I2S_MCR_MICS I2S_MCR_MICS_MASK
10213#define I2S_MCR_MOE_MASK (0x40000000U)
10214#define I2S_MCR_MOE_SHIFT (30U)
10215#define I2S_MCR_MOE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_MCR_MOE_SHIFT)) & I2S_MCR_MOE_MASK)
10216#define I2S_MCR_MOE I2S_MCR_MOE_MASK
10217#define I2S_MCR_DUF_MASK (0x80000000U)
10218#define I2S_MCR_DUF_SHIFT (31U)
10219#define I2S_MCR_DUF_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_MCR_DUF_SHIFT)) & I2S_MCR_DUF_MASK)
10220#define I2S_MCR_DUF I2S_MCR_DUF_MASK
10221
10222/*! @name MDR - SAI MCLK Divide Register */
10223#define I2S_MDR_DIVIDE_MASK (0xFFFU)
10224#define I2S_MDR_DIVIDE_SHIFT (0U)
10225#define I2S_MDR_DIVIDE_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_MDR_DIVIDE_SHIFT)) & I2S_MDR_DIVIDE_MASK)
10226#define I2S_MDR_DIVIDE I2S_MDR_DIVIDE_MASK
10227#define I2S_MDR_FRACT_MASK (0xFF000U)
10228#define I2S_MDR_FRACT_SHIFT (12U)
10229#define I2S_MDR_FRACT_SET(x) (((uint32_t)(((uint32_t)(x)) << I2S_MDR_FRACT_SHIFT)) & I2S_MDR_FRACT_MASK)
10230#define I2S_MDR_FRACT I2S_MDR_FRACT_MASK
10231
10232
10233/*!
10234 * @}
10235 */ /* end of group I2S_Register_Masks */
10236
10237
10238/* I2S - Peripheral instance base addresses */
10239/** Peripheral I2S0 base address */
10240#define I2S0_BASE (0x4002F000u)
10241/** Peripheral I2S0 base pointer */
10242#define I2S0 ((I2S_TypeDef *)I2S0_BASE)
10243/** Array initializer of I2S peripheral base addresses */
10244#define I2S_BASE_ADDRS { I2S0_BASE }
10245/** Array initializer of I2S peripheral base pointers */
10246#define I2S_BASE_PTRS { I2S0 }
10247/** Interrupt vectors for the I2S peripheral type */
10248#define I2S_RX_IRQS { I2S0_Rx_IRQn }
10249#define I2S_TX_IRQS { I2S0_Tx_IRQn }
10250
10251/*!
10252 * @}
10253 */ /* end of group I2S_Peripheral_Access_Layer */
10254
10255
10256/* ----------------------------------------------------------------------------
10257 -- LLWU Peripheral Access Layer
10258 ---------------------------------------------------------------------------- */
10259
10260/*!
10261 * @addtogroup LLWU_Peripheral_Access_Layer LLWU Peripheral Access Layer
10262 * @{
10263 */
10264
10265/** LLWU - Register Layout Typedef */
10266typedef struct {
10267 __IO uint8_t PE1; /**< LLWU Pin Enable 1 register, offset: 0x0 */
10268 __IO uint8_t PE2; /**< LLWU Pin Enable 2 register, offset: 0x1 */
10269 __IO uint8_t PE3; /**< LLWU Pin Enable 3 register, offset: 0x2 */
10270 __IO uint8_t PE4; /**< LLWU Pin Enable 4 register, offset: 0x3 */
10271 __IO uint8_t PE5; /**< LLWU Pin Enable 5 register, offset: 0x4 */
10272 __IO uint8_t PE6; /**< LLWU Pin Enable 6 register, offset: 0x5 */
10273 __IO uint8_t PE7; /**< LLWU Pin Enable 7 register, offset: 0x6 */
10274 __IO uint8_t PE8; /**< LLWU Pin Enable 8 register, offset: 0x7 */
10275 __IO uint8_t ME; /**< LLWU Module Enable register, offset: 0x8 */
10276 __IO uint8_t PF1; /**< LLWU Pin Flag 1 register, offset: 0x9 */
10277 __IO uint8_t PF2; /**< LLWU Pin Flag 2 register, offset: 0xA */
10278 __IO uint8_t PF3; /**< LLWU Pin Flag 3 register, offset: 0xB */
10279 __IO uint8_t PF4; /**< LLWU Pin Flag 4 register, offset: 0xC */
10280 __I uint8_t MF5; /**< LLWU Module Flag 5 register, offset: 0xD */
10281 __IO uint8_t FILT1; /**< LLWU Pin Filter 1 register, offset: 0xE */
10282 __IO uint8_t FILT2; /**< LLWU Pin Filter 2 register, offset: 0xF */
10283 __IO uint8_t FILT3; /**< LLWU Pin Filter 3 register, offset: 0x10 */
10284 __IO uint8_t FILT4; /**< LLWU Pin Filter 4 register, offset: 0x11 */
10285} LLWU_TypeDef;
10286
10287/* ----------------------------------------------------------------------------
10288 -- LLWU Register Masks
10289 ---------------------------------------------------------------------------- */
10290
10291/*!
10292 * @addtogroup LLWU_Register_Masks LLWU Register Masks
10293 * @{
10294 */
10295
10296/*! @name PE1 - LLWU Pin Enable 1 register */
10297#define LLWU_PE1_WUPE0_MASK (0x3U)
10298#define LLWU_PE1_WUPE0_SHIFT (0U)
10299#define LLWU_PE1_WUPE0_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE0_SHIFT)) & LLWU_PE1_WUPE0_MASK)
10300#define LLWU_PE1_WUPE0 LLWU_PE1_WUPE0_MASK
10301#define LLWU_PE1_WUPE1_MASK (0xCU)
10302#define LLWU_PE1_WUPE1_SHIFT (2U)
10303#define LLWU_PE1_WUPE1_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE1_SHIFT)) & LLWU_PE1_WUPE1_MASK)
10304#define LLWU_PE1_WUPE1 LLWU_PE1_WUPE1_MASK
10305#define LLWU_PE1_WUPE2_MASK (0x30U)
10306#define LLWU_PE1_WUPE2_SHIFT (4U)
10307#define LLWU_PE1_WUPE2_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE2_SHIFT)) & LLWU_PE1_WUPE2_MASK)
10308#define LLWU_PE1_WUPE2 LLWU_PE1_WUPE2_MASK
10309#define LLWU_PE1_WUPE3_MASK (0xC0U)
10310#define LLWU_PE1_WUPE3_SHIFT (6U)
10311#define LLWU_PE1_WUPE3_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE3_SHIFT)) & LLWU_PE1_WUPE3_MASK)
10312#define LLWU_PE1_WUPE3 LLWU_PE1_WUPE3_MASK
10313
10314/*! @name PE2 - LLWU Pin Enable 2 register */
10315#define LLWU_PE2_WUPE4_MASK (0x3U)
10316#define LLWU_PE2_WUPE4_SHIFT (0U)
10317#define LLWU_PE2_WUPE4_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE4_SHIFT)) & LLWU_PE2_WUPE4_MASK)
10318#define LLWU_PE2_WUPE4 LLWU_PE2_WUPE4_MASK
10319#define LLWU_PE2_WUPE5_MASK (0xCU)
10320#define LLWU_PE2_WUPE5_SHIFT (2U)
10321#define LLWU_PE2_WUPE5_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE5_SHIFT)) & LLWU_PE2_WUPE5_MASK)
10322#define LLWU_PE2_WUPE5 LLWU_PE2_WUPE5_MASK
10323#define LLWU_PE2_WUPE6_MASK (0x30U)
10324#define LLWU_PE2_WUPE6_SHIFT (4U)
10325#define LLWU_PE2_WUPE6_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE6_SHIFT)) & LLWU_PE2_WUPE6_MASK)
10326#define LLWU_PE2_WUPE6 LLWU_PE2_WUPE6_MASK
10327#define LLWU_PE2_WUPE7_MASK (0xC0U)
10328#define LLWU_PE2_WUPE7_SHIFT (6U)
10329#define LLWU_PE2_WUPE7_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE7_SHIFT)) & LLWU_PE2_WUPE7_MASK)
10330#define LLWU_PE2_WUPE7 LLWU_PE2_WUPE7_MASK
10331
10332/*! @name PE3 - LLWU Pin Enable 3 register */
10333#define LLWU_PE3_WUPE8_MASK (0x3U)
10334#define LLWU_PE3_WUPE8_SHIFT (0U)
10335#define LLWU_PE3_WUPE8_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE8_SHIFT)) & LLWU_PE3_WUPE8_MASK)
10336#define LLWU_PE3_WUPE8 LLWU_PE3_WUPE8_MASK
10337#define LLWU_PE3_WUPE9_MASK (0xCU)
10338#define LLWU_PE3_WUPE9_SHIFT (2U)
10339#define LLWU_PE3_WUPE9_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE9_SHIFT)) & LLWU_PE3_WUPE9_MASK)
10340#define LLWU_PE3_WUPE9 LLWU_PE3_WUPE9_MASK
10341#define LLWU_PE3_WUPE10_MASK (0x30U)
10342#define LLWU_PE3_WUPE10_SHIFT (4U)
10343#define LLWU_PE3_WUPE10_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE10_SHIFT)) & LLWU_PE3_WUPE10_MASK)
10344#define LLWU_PE3_WUPE10 LLWU_PE3_WUPE10_MASK
10345#define LLWU_PE3_WUPE11_MASK (0xC0U)
10346#define LLWU_PE3_WUPE11_SHIFT (6U)
10347#define LLWU_PE3_WUPE11_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE11_SHIFT)) & LLWU_PE3_WUPE11_MASK)
10348#define LLWU_PE3_WUPE11 LLWU_PE3_WUPE11_MASK
10349
10350/*! @name PE4 - LLWU Pin Enable 4 register */
10351#define LLWU_PE4_WUPE12_MASK (0x3U)
10352#define LLWU_PE4_WUPE12_SHIFT (0U)
10353#define LLWU_PE4_WUPE12_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE12_SHIFT)) & LLWU_PE4_WUPE12_MASK)
10354#define LLWU_PE4_WUPE12 LLWU_PE4_WUPE12_MASK
10355#define LLWU_PE4_WUPE13_MASK (0xCU)
10356#define LLWU_PE4_WUPE13_SHIFT (2U)
10357#define LLWU_PE4_WUPE13_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE13_SHIFT)) & LLWU_PE4_WUPE13_MASK)
10358#define LLWU_PE4_WUPE13 LLWU_PE4_WUPE13_MASK
10359#define LLWU_PE4_WUPE14_MASK (0x30U)
10360#define LLWU_PE4_WUPE14_SHIFT (4U)
10361#define LLWU_PE4_WUPE14_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE14_SHIFT)) & LLWU_PE4_WUPE14_MASK)
10362#define LLWU_PE4_WUPE14 LLWU_PE4_WUPE14_MASK
10363#define LLWU_PE4_WUPE15_MASK (0xC0U)
10364#define LLWU_PE4_WUPE15_SHIFT (6U)
10365#define LLWU_PE4_WUPE15_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE15_SHIFT)) & LLWU_PE4_WUPE15_MASK)
10366#define LLWU_PE4_WUPE15 LLWU_PE4_WUPE15_MASK
10367
10368/*! @name PE5 - LLWU Pin Enable 5 register */
10369#define LLWU_PE5_WUPE16_MASK (0x3U)
10370#define LLWU_PE5_WUPE16_SHIFT (0U)
10371#define LLWU_PE5_WUPE16_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE5_WUPE16_SHIFT)) & LLWU_PE5_WUPE16_MASK)
10372#define LLWU_PE5_WUPE16 LLWU_PE5_WUPE16_MASK
10373#define LLWU_PE5_WUPE17_MASK (0xCU)
10374#define LLWU_PE5_WUPE17_SHIFT (2U)
10375#define LLWU_PE5_WUPE17_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE5_WUPE17_SHIFT)) & LLWU_PE5_WUPE17_MASK)
10376#define LLWU_PE5_WUPE17 LLWU_PE5_WUPE17_MASK
10377#define LLWU_PE5_WUPE18_MASK (0x30U)
10378#define LLWU_PE5_WUPE18_SHIFT (4U)
10379#define LLWU_PE5_WUPE18_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE5_WUPE18_SHIFT)) & LLWU_PE5_WUPE18_MASK)
10380#define LLWU_PE5_WUPE18 LLWU_PE5_WUPE18_MASK
10381#define LLWU_PE5_WUPE19_MASK (0xC0U)
10382#define LLWU_PE5_WUPE19_SHIFT (6U)
10383#define LLWU_PE5_WUPE19_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE5_WUPE19_SHIFT)) & LLWU_PE5_WUPE19_MASK)
10384#define LLWU_PE5_WUPE19 LLWU_PE5_WUPE19_MASK
10385
10386/*! @name PE6 - LLWU Pin Enable 6 register */
10387#define LLWU_PE6_WUPE20_MASK (0x3U)
10388#define LLWU_PE6_WUPE20_SHIFT (0U)
10389#define LLWU_PE6_WUPE20_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE6_WUPE20_SHIFT)) & LLWU_PE6_WUPE20_MASK)
10390#define LLWU_PE6_WUPE20 LLWU_PE6_WUPE20_MASK
10391#define LLWU_PE6_WUPE21_MASK (0xCU)
10392#define LLWU_PE6_WUPE21_SHIFT (2U)
10393#define LLWU_PE6_WUPE21_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE6_WUPE21_SHIFT)) & LLWU_PE6_WUPE21_MASK)
10394#define LLWU_PE6_WUPE21 LLWU_PE6_WUPE21_MASK
10395#define LLWU_PE6_WUPE22_MASK (0x30U)
10396#define LLWU_PE6_WUPE22_SHIFT (4U)
10397#define LLWU_PE6_WUPE22_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE6_WUPE22_SHIFT)) & LLWU_PE6_WUPE22_MASK)
10398#define LLWU_PE6_WUPE22 LLWU_PE6_WUPE22_MASK
10399#define LLWU_PE6_WUPE23_MASK (0xC0U)
10400#define LLWU_PE6_WUPE23_SHIFT (6U)
10401#define LLWU_PE6_WUPE23_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE6_WUPE23_SHIFT)) & LLWU_PE6_WUPE23_MASK)
10402#define LLWU_PE6_WUPE23 LLWU_PE6_WUPE23_MASK
10403
10404/*! @name PE7 - LLWU Pin Enable 7 register */
10405#define LLWU_PE7_WUPE24_MASK (0x3U)
10406#define LLWU_PE7_WUPE24_SHIFT (0U)
10407#define LLWU_PE7_WUPE24_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE7_WUPE24_SHIFT)) & LLWU_PE7_WUPE24_MASK)
10408#define LLWU_PE7_WUPE24 LLWU_PE7_WUPE24_MASK
10409#define LLWU_PE7_WUPE25_MASK (0xCU)
10410#define LLWU_PE7_WUPE25_SHIFT (2U)
10411#define LLWU_PE7_WUPE25_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE7_WUPE25_SHIFT)) & LLWU_PE7_WUPE25_MASK)
10412#define LLWU_PE7_WUPE25 LLWU_PE7_WUPE25_MASK
10413#define LLWU_PE7_WUPE26_MASK (0x30U)
10414#define LLWU_PE7_WUPE26_SHIFT (4U)
10415#define LLWU_PE7_WUPE26_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE7_WUPE26_SHIFT)) & LLWU_PE7_WUPE26_MASK)
10416#define LLWU_PE7_WUPE26 LLWU_PE7_WUPE26_MASK
10417#define LLWU_PE7_WUPE27_MASK (0xC0U)
10418#define LLWU_PE7_WUPE27_SHIFT (6U)
10419#define LLWU_PE7_WUPE27_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE7_WUPE27_SHIFT)) & LLWU_PE7_WUPE27_MASK)
10420#define LLWU_PE7_WUPE27 LLWU_PE7_WUPE27_MASK
10421
10422/*! @name PE8 - LLWU Pin Enable 8 register */
10423#define LLWU_PE8_WUPE28_MASK (0x3U)
10424#define LLWU_PE8_WUPE28_SHIFT (0U)
10425#define LLWU_PE8_WUPE28_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE8_WUPE28_SHIFT)) & LLWU_PE8_WUPE28_MASK)
10426#define LLWU_PE8_WUPE28 LLWU_PE8_WUPE28_MASK
10427#define LLWU_PE8_WUPE29_MASK (0xCU)
10428#define LLWU_PE8_WUPE29_SHIFT (2U)
10429#define LLWU_PE8_WUPE29_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE8_WUPE29_SHIFT)) & LLWU_PE8_WUPE29_MASK)
10430#define LLWU_PE8_WUPE29 LLWU_PE8_WUPE29_MASK
10431#define LLWU_PE8_WUPE30_MASK (0x30U)
10432#define LLWU_PE8_WUPE30_SHIFT (4U)
10433#define LLWU_PE8_WUPE30_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE8_WUPE30_SHIFT)) & LLWU_PE8_WUPE30_MASK)
10434#define LLWU_PE8_WUPE30 LLWU_PE8_WUPE30_MASK
10435#define LLWU_PE8_WUPE31_MASK (0xC0U)
10436#define LLWU_PE8_WUPE31_SHIFT (6U)
10437#define LLWU_PE8_WUPE31_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE8_WUPE31_SHIFT)) & LLWU_PE8_WUPE31_MASK)
10438#define LLWU_PE8_WUPE31 LLWU_PE8_WUPE31_MASK
10439
10440/*! @name ME - LLWU Module Enable register */
10441#define LLWU_ME_WUME0_MASK (0x1U)
10442#define LLWU_ME_WUME0_SHIFT (0U)
10443#define LLWU_ME_WUME0_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME0_SHIFT)) & LLWU_ME_WUME0_MASK)
10444#define LLWU_ME_WUME0 LLWU_ME_WUME0_MASK
10445#define LLWU_ME_WUME1_MASK (0x2U)
10446#define LLWU_ME_WUME1_SHIFT (1U)
10447#define LLWU_ME_WUME1_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME1_SHIFT)) & LLWU_ME_WUME1_MASK)
10448#define LLWU_ME_WUME1 LLWU_ME_WUME1_MASK
10449#define LLWU_ME_WUME2_MASK (0x4U)
10450#define LLWU_ME_WUME2_SHIFT (2U)
10451#define LLWU_ME_WUME2_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME2_SHIFT)) & LLWU_ME_WUME2_MASK)
10452#define LLWU_ME_WUME2 LLWU_ME_WUME2_MASK
10453#define LLWU_ME_WUME3_MASK (0x8U)
10454#define LLWU_ME_WUME3_SHIFT (3U)
10455#define LLWU_ME_WUME3_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME3_SHIFT)) & LLWU_ME_WUME3_MASK)
10456#define LLWU_ME_WUME3 LLWU_ME_WUME3_MASK
10457#define LLWU_ME_WUME4_MASK (0x10U)
10458#define LLWU_ME_WUME4_SHIFT (4U)
10459#define LLWU_ME_WUME4_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME4_SHIFT)) & LLWU_ME_WUME4_MASK)
10460#define LLWU_ME_WUME4 LLWU_ME_WUME4_MASK
10461#define LLWU_ME_WUME5_MASK (0x20U)
10462#define LLWU_ME_WUME5_SHIFT (5U)
10463#define LLWU_ME_WUME5_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME5_SHIFT)) & LLWU_ME_WUME5_MASK)
10464#define LLWU_ME_WUME5 LLWU_ME_WUME5_MASK
10465#define LLWU_ME_WUME6_MASK (0x40U)
10466#define LLWU_ME_WUME6_SHIFT (6U)
10467#define LLWU_ME_WUME6_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME6_SHIFT)) & LLWU_ME_WUME6_MASK)
10468#define LLWU_ME_WUME6 LLWU_ME_WUME6_MASK
10469#define LLWU_ME_WUME7_MASK (0x80U)
10470#define LLWU_ME_WUME7_SHIFT (7U)
10471#define LLWU_ME_WUME7_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME7_SHIFT)) & LLWU_ME_WUME7_MASK)
10472#define LLWU_ME_WUME7 LLWU_ME_WUME7_MASK
10473
10474/*! @name PF1 - LLWU Pin Flag 1 register */
10475#define LLWU_PF1_WUF0_MASK (0x1U)
10476#define LLWU_PF1_WUF0_SHIFT (0U)
10477#define LLWU_PF1_WUF0_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF1_WUF0_SHIFT)) & LLWU_PF1_WUF0_MASK)
10478#define LLWU_PF1_WUF0 LLWU_PF1_WUF0_MASK
10479#define LLWU_PF1_WUF1_MASK (0x2U)
10480#define LLWU_PF1_WUF1_SHIFT (1U)
10481#define LLWU_PF1_WUF1_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF1_WUF1_SHIFT)) & LLWU_PF1_WUF1_MASK)
10482#define LLWU_PF1_WUF1 LLWU_PF1_WUF1_MASK
10483#define LLWU_PF1_WUF2_MASK (0x4U)
10484#define LLWU_PF1_WUF2_SHIFT (2U)
10485#define LLWU_PF1_WUF2_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF1_WUF2_SHIFT)) & LLWU_PF1_WUF2_MASK)
10486#define LLWU_PF1_WUF2 LLWU_PF1_WUF2_MASK
10487#define LLWU_PF1_WUF3_MASK (0x8U)
10488#define LLWU_PF1_WUF3_SHIFT (3U)
10489#define LLWU_PF1_WUF3_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF1_WUF3_SHIFT)) & LLWU_PF1_WUF3_MASK)
10490#define LLWU_PF1_WUF3 LLWU_PF1_WUF3_MASK
10491#define LLWU_PF1_WUF4_MASK (0x10U)
10492#define LLWU_PF1_WUF4_SHIFT (4U)
10493#define LLWU_PF1_WUF4_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF1_WUF4_SHIFT)) & LLWU_PF1_WUF4_MASK)
10494#define LLWU_PF1_WUF4 LLWU_PF1_WUF4_MASK
10495#define LLWU_PF1_WUF5_MASK (0x20U)
10496#define LLWU_PF1_WUF5_SHIFT (5U)
10497#define LLWU_PF1_WUF5_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF1_WUF5_SHIFT)) & LLWU_PF1_WUF5_MASK)
10498#define LLWU_PF1_WUF5 LLWU_PF1_WUF5_MASK
10499#define LLWU_PF1_WUF6_MASK (0x40U)
10500#define LLWU_PF1_WUF6_SHIFT (6U)
10501#define LLWU_PF1_WUF6_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF1_WUF6_SHIFT)) & LLWU_PF1_WUF6_MASK)
10502#define LLWU_PF1_WUF6 LLWU_PF1_WUF6_MASK
10503#define LLWU_PF1_WUF7_MASK (0x80U)
10504#define LLWU_PF1_WUF7_SHIFT (7U)
10505#define LLWU_PF1_WUF7_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF1_WUF7_SHIFT)) & LLWU_PF1_WUF7_MASK)
10506#define LLWU_PF1_WUF7 LLWU_PF1_WUF7_MASK
10507
10508/*! @name PF2 - LLWU Pin Flag 2 register */
10509#define LLWU_PF2_WUF8_MASK (0x1U)
10510#define LLWU_PF2_WUF8_SHIFT (0U)
10511#define LLWU_PF2_WUF8_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF2_WUF8_SHIFT)) & LLWU_PF2_WUF8_MASK)
10512#define LLWU_PF2_WUF8 LLWU_PF2_WUF8_MASK
10513#define LLWU_PF2_WUF9_MASK (0x2U)
10514#define LLWU_PF2_WUF9_SHIFT (1U)
10515#define LLWU_PF2_WUF9_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF2_WUF9_SHIFT)) & LLWU_PF2_WUF9_MASK)
10516#define LLWU_PF2_WUF9 LLWU_PF2_WUF9_MASK
10517#define LLWU_PF2_WUF10_MASK (0x4U)
10518#define LLWU_PF2_WUF10_SHIFT (2U)
10519#define LLWU_PF2_WUF10_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF2_WUF10_SHIFT)) & LLWU_PF2_WUF10_MASK)
10520#define LLWU_PF2_WUF10 LLWU_PF2_WUF10_MASK
10521#define LLWU_PF2_WUF11_MASK (0x8U)
10522#define LLWU_PF2_WUF11_SHIFT (3U)
10523#define LLWU_PF2_WUF11_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF2_WUF11_SHIFT)) & LLWU_PF2_WUF11_MASK)
10524#define LLWU_PF2_WUF11 LLWU_PF2_WUF11_MASK
10525#define LLWU_PF2_WUF12_MASK (0x10U)
10526#define LLWU_PF2_WUF12_SHIFT (4U)
10527#define LLWU_PF2_WUF12_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF2_WUF12_SHIFT)) & LLWU_PF2_WUF12_MASK)
10528#define LLWU_PF2_WUF12 LLWU_PF2_WUF12_MASK
10529#define LLWU_PF2_WUF13_MASK (0x20U)
10530#define LLWU_PF2_WUF13_SHIFT (5U)
10531#define LLWU_PF2_WUF13_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF2_WUF13_SHIFT)) & LLWU_PF2_WUF13_MASK)
10532#define LLWU_PF2_WUF13 LLWU_PF2_WUF13_MASK
10533#define LLWU_PF2_WUF14_MASK (0x40U)
10534#define LLWU_PF2_WUF14_SHIFT (6U)
10535#define LLWU_PF2_WUF14_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF2_WUF14_SHIFT)) & LLWU_PF2_WUF14_MASK)
10536#define LLWU_PF2_WUF14 LLWU_PF2_WUF14_MASK
10537#define LLWU_PF2_WUF15_MASK (0x80U)
10538#define LLWU_PF2_WUF15_SHIFT (7U)
10539#define LLWU_PF2_WUF15_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF2_WUF15_SHIFT)) & LLWU_PF2_WUF15_MASK)
10540#define LLWU_PF2_WUF15 LLWU_PF2_WUF15_MASK
10541
10542/*! @name PF3 - LLWU Pin Flag 3 register */
10543#define LLWU_PF3_WUF16_MASK (0x1U)
10544#define LLWU_PF3_WUF16_SHIFT (0U)
10545#define LLWU_PF3_WUF16_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF3_WUF16_SHIFT)) & LLWU_PF3_WUF16_MASK)
10546#define LLWU_PF3_WUF16 LLWU_PF3_WUF16_MASK
10547#define LLWU_PF3_WUF17_MASK (0x2U)
10548#define LLWU_PF3_WUF17_SHIFT (1U)
10549#define LLWU_PF3_WUF17_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF3_WUF17_SHIFT)) & LLWU_PF3_WUF17_MASK)
10550#define LLWU_PF3_WUF17 LLWU_PF3_WUF17_MASK
10551#define LLWU_PF3_WUF18_MASK (0x4U)
10552#define LLWU_PF3_WUF18_SHIFT (2U)
10553#define LLWU_PF3_WUF18_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF3_WUF18_SHIFT)) & LLWU_PF3_WUF18_MASK)
10554#define LLWU_PF3_WUF18 LLWU_PF3_WUF18_MASK
10555#define LLWU_PF3_WUF19_MASK (0x8U)
10556#define LLWU_PF3_WUF19_SHIFT (3U)
10557#define LLWU_PF3_WUF19_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF3_WUF19_SHIFT)) & LLWU_PF3_WUF19_MASK)
10558#define LLWU_PF3_WUF19 LLWU_PF3_WUF19_MASK
10559#define LLWU_PF3_WUF20_MASK (0x10U)
10560#define LLWU_PF3_WUF20_SHIFT (4U)
10561#define LLWU_PF3_WUF20_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF3_WUF20_SHIFT)) & LLWU_PF3_WUF20_MASK)
10562#define LLWU_PF3_WUF20 LLWU_PF3_WUF20_MASK
10563#define LLWU_PF3_WUF21_MASK (0x20U)
10564#define LLWU_PF3_WUF21_SHIFT (5U)
10565#define LLWU_PF3_WUF21_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF3_WUF21_SHIFT)) & LLWU_PF3_WUF21_MASK)
10566#define LLWU_PF3_WUF21 LLWU_PF3_WUF21_MASK
10567#define LLWU_PF3_WUF22_MASK (0x40U)
10568#define LLWU_PF3_WUF22_SHIFT (6U)
10569#define LLWU_PF3_WUF22_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF3_WUF22_SHIFT)) & LLWU_PF3_WUF22_MASK)
10570#define LLWU_PF3_WUF22 LLWU_PF3_WUF22_MASK
10571#define LLWU_PF3_WUF23_MASK (0x80U)
10572#define LLWU_PF3_WUF23_SHIFT (7U)
10573#define LLWU_PF3_WUF23_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF3_WUF23_SHIFT)) & LLWU_PF3_WUF23_MASK)
10574#define LLWU_PF3_WUF23 LLWU_PF3_WUF23_MASK
10575
10576/*! @name PF4 - LLWU Pin Flag 4 register */
10577#define LLWU_PF4_WUF24_MASK (0x1U)
10578#define LLWU_PF4_WUF24_SHIFT (0U)
10579#define LLWU_PF4_WUF24_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF4_WUF24_SHIFT)) & LLWU_PF4_WUF24_MASK)
10580#define LLWU_PF4_WUF24 LLWU_PF4_WUF24_MASK
10581#define LLWU_PF4_WUF25_MASK (0x2U)
10582#define LLWU_PF4_WUF25_SHIFT (1U)
10583#define LLWU_PF4_WUF25_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF4_WUF25_SHIFT)) & LLWU_PF4_WUF25_MASK)
10584#define LLWU_PF4_WUF25 LLWU_PF4_WUF25_MASK
10585#define LLWU_PF4_WUF26_MASK (0x4U)
10586#define LLWU_PF4_WUF26_SHIFT (2U)
10587#define LLWU_PF4_WUF26_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF4_WUF26_SHIFT)) & LLWU_PF4_WUF26_MASK)
10588#define LLWU_PF4_WUF26 LLWU_PF4_WUF26_MASK
10589#define LLWU_PF4_WUF27_MASK (0x8U)
10590#define LLWU_PF4_WUF27_SHIFT (3U)
10591#define LLWU_PF4_WUF27_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF4_WUF27_SHIFT)) & LLWU_PF4_WUF27_MASK)
10592#define LLWU_PF4_WUF27 LLWU_PF4_WUF27_MASK
10593#define LLWU_PF4_WUF28_MASK (0x10U)
10594#define LLWU_PF4_WUF28_SHIFT (4U)
10595#define LLWU_PF4_WUF28_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF4_WUF28_SHIFT)) & LLWU_PF4_WUF28_MASK)
10596#define LLWU_PF4_WUF28 LLWU_PF4_WUF28_MASK
10597#define LLWU_PF4_WUF29_MASK (0x20U)
10598#define LLWU_PF4_WUF29_SHIFT (5U)
10599#define LLWU_PF4_WUF29_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF4_WUF29_SHIFT)) & LLWU_PF4_WUF29_MASK)
10600#define LLWU_PF4_WUF29 LLWU_PF4_WUF29_MASK
10601#define LLWU_PF4_WUF30_MASK (0x40U)
10602#define LLWU_PF4_WUF30_SHIFT (6U)
10603#define LLWU_PF4_WUF30_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF4_WUF30_SHIFT)) & LLWU_PF4_WUF30_MASK)
10604#define LLWU_PF4_WUF30 LLWU_PF4_WUF30_MASK
10605#define LLWU_PF4_WUF31_MASK (0x80U)
10606#define LLWU_PF4_WUF31_SHIFT (7U)
10607#define LLWU_PF4_WUF31_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PF4_WUF31_SHIFT)) & LLWU_PF4_WUF31_MASK)
10608#define LLWU_PF4_WUF31 LLWU_PF4_WUF31_MASK
10609
10610/*! @name MF5 - LLWU Module Flag 5 register */
10611#define LLWU_MF5_MWUF0_MASK (0x1U)
10612#define LLWU_MF5_MWUF0_SHIFT (0U)
10613#define LLWU_MF5_MWUF0_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_MF5_MWUF0_SHIFT)) & LLWU_MF5_MWUF0_MASK)
10614#define LLWU_MF5_MWUF0 LLWU_MF5_MWUF0_MASK
10615#define LLWU_MF5_MWUF1_MASK (0x2U)
10616#define LLWU_MF5_MWUF1_SHIFT (1U)
10617#define LLWU_MF5_MWUF1_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_MF5_MWUF1_SHIFT)) & LLWU_MF5_MWUF1_MASK)
10618#define LLWU_MF5_MWUF1 LLWU_MF5_MWUF1_MASK
10619#define LLWU_MF5_MWUF2_MASK (0x4U)
10620#define LLWU_MF5_MWUF2_SHIFT (2U)
10621#define LLWU_MF5_MWUF2_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_MF5_MWUF2_SHIFT)) & LLWU_MF5_MWUF2_MASK)
10622#define LLWU_MF5_MWUF2 LLWU_MF5_MWUF2_MASK
10623#define LLWU_MF5_MWUF3_MASK (0x8U)
10624#define LLWU_MF5_MWUF3_SHIFT (3U)
10625#define LLWU_MF5_MWUF3_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_MF5_MWUF3_SHIFT)) & LLWU_MF5_MWUF3_MASK)
10626#define LLWU_MF5_MWUF3 LLWU_MF5_MWUF3_MASK
10627#define LLWU_MF5_MWUF4_MASK (0x10U)
10628#define LLWU_MF5_MWUF4_SHIFT (4U)
10629#define LLWU_MF5_MWUF4_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_MF5_MWUF4_SHIFT)) & LLWU_MF5_MWUF4_MASK)
10630#define LLWU_MF5_MWUF4 LLWU_MF5_MWUF4_MASK
10631#define LLWU_MF5_MWUF5_MASK (0x20U)
10632#define LLWU_MF5_MWUF5_SHIFT (5U)
10633#define LLWU_MF5_MWUF5_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_MF5_MWUF5_SHIFT)) & LLWU_MF5_MWUF5_MASK)
10634#define LLWU_MF5_MWUF5 LLWU_MF5_MWUF5_MASK
10635#define LLWU_MF5_MWUF6_MASK (0x40U)
10636#define LLWU_MF5_MWUF6_SHIFT (6U)
10637#define LLWU_MF5_MWUF6_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_MF5_MWUF6_SHIFT)) & LLWU_MF5_MWUF6_MASK)
10638#define LLWU_MF5_MWUF6 LLWU_MF5_MWUF6_MASK
10639#define LLWU_MF5_MWUF7_MASK (0x80U)
10640#define LLWU_MF5_MWUF7_SHIFT (7U)
10641#define LLWU_MF5_MWUF7_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_MF5_MWUF7_SHIFT)) & LLWU_MF5_MWUF7_MASK)
10642#define LLWU_MF5_MWUF7 LLWU_MF5_MWUF7_MASK
10643
10644/*! @name FILT1 - LLWU Pin Filter 1 register */
10645#define LLWU_FILT1_FILTSEL_MASK (0x1FU)
10646#define LLWU_FILT1_FILTSEL_SHIFT (0U)
10647#define LLWU_FILT1_FILTSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTSEL_SHIFT)) & LLWU_FILT1_FILTSEL_MASK)
10648#define LLWU_FILT1_FILTSEL LLWU_FILT1_FILTSEL_MASK
10649#define LLWU_FILT1_FILTE_MASK (0x60U)
10650#define LLWU_FILT1_FILTE_SHIFT (5U)
10651#define LLWU_FILT1_FILTE_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTE_SHIFT)) & LLWU_FILT1_FILTE_MASK)
10652#define LLWU_FILT1_FILTE LLWU_FILT1_FILTE_MASK
10653#define LLWU_FILT1_FILTF_MASK (0x80U)
10654#define LLWU_FILT1_FILTF_SHIFT (7U)
10655#define LLWU_FILT1_FILTF_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTF_SHIFT)) & LLWU_FILT1_FILTF_MASK)
10656#define LLWU_FILT1_FILTF LLWU_FILT1_FILTF_MASK
10657
10658/*! @name FILT2 - LLWU Pin Filter 2 register */
10659#define LLWU_FILT2_FILTSEL_MASK (0x1FU)
10660#define LLWU_FILT2_FILTSEL_SHIFT (0U)
10661#define LLWU_FILT2_FILTSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTSEL_SHIFT)) & LLWU_FILT2_FILTSEL_MASK)
10662#define LLWU_FILT2_FILTSEL LLWU_FILT2_FILTSEL_MASK
10663#define LLWU_FILT2_FILTE_MASK (0x60U)
10664#define LLWU_FILT2_FILTE_SHIFT (5U)
10665#define LLWU_FILT2_FILTE_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTE_SHIFT)) & LLWU_FILT2_FILTE_MASK)
10666#define LLWU_FILT2_FILTE LLWU_FILT2_FILTE_MASK
10667#define LLWU_FILT2_FILTF_MASK (0x80U)
10668#define LLWU_FILT2_FILTF_SHIFT (7U)
10669#define LLWU_FILT2_FILTF_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTF_SHIFT)) & LLWU_FILT2_FILTF_MASK)
10670#define LLWU_FILT2_FILTF LLWU_FILT2_FILTF_MASK
10671
10672/*! @name FILT3 - LLWU Pin Filter 3 register */
10673#define LLWU_FILT3_FILTSEL_MASK (0x1FU)
10674#define LLWU_FILT3_FILTSEL_SHIFT (0U)
10675#define LLWU_FILT3_FILTSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT3_FILTSEL_SHIFT)) & LLWU_FILT3_FILTSEL_MASK)
10676#define LLWU_FILT3_FILTSEL LLWU_FILT3_FILTSEL_MASK
10677#define LLWU_FILT3_FILTE_MASK (0x60U)
10678#define LLWU_FILT3_FILTE_SHIFT (5U)
10679#define LLWU_FILT3_FILTE_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT3_FILTE_SHIFT)) & LLWU_FILT3_FILTE_MASK)
10680#define LLWU_FILT3_FILTE LLWU_FILT3_FILTE_MASK
10681#define LLWU_FILT3_FILTF_MASK (0x80U)
10682#define LLWU_FILT3_FILTF_SHIFT (7U)
10683#define LLWU_FILT3_FILTF_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT3_FILTF_SHIFT)) & LLWU_FILT3_FILTF_MASK)
10684#define LLWU_FILT3_FILTF LLWU_FILT3_FILTF_MASK
10685
10686/*! @name FILT4 - LLWU Pin Filter 4 register */
10687#define LLWU_FILT4_FILTSEL_MASK (0x1FU)
10688#define LLWU_FILT4_FILTSEL_SHIFT (0U)
10689#define LLWU_FILT4_FILTSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT4_FILTSEL_SHIFT)) & LLWU_FILT4_FILTSEL_MASK)
10690#define LLWU_FILT4_FILTSEL LLWU_FILT4_FILTSEL_MASK
10691#define LLWU_FILT4_FILTE_MASK (0x60U)
10692#define LLWU_FILT4_FILTE_SHIFT (5U)
10693#define LLWU_FILT4_FILTE_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT4_FILTE_SHIFT)) & LLWU_FILT4_FILTE_MASK)
10694#define LLWU_FILT4_FILTE LLWU_FILT4_FILTE_MASK
10695#define LLWU_FILT4_FILTF_MASK (0x80U)
10696#define LLWU_FILT4_FILTF_SHIFT (7U)
10697#define LLWU_FILT4_FILTF_SET(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT4_FILTF_SHIFT)) & LLWU_FILT4_FILTF_MASK)
10698#define LLWU_FILT4_FILTF LLWU_FILT4_FILTF_MASK
10699
10700
10701/*!
10702 * @}
10703 */ /* end of group LLWU_Register_Masks */
10704
10705
10706/* LLWU - Peripheral instance base addresses */
10707/** Peripheral LLWU base address */
10708#define LLWU_BASE (0x4007C000u)
10709/** Peripheral LLWU base pointer */
10710#define LLWU ((LLWU_TypeDef *)LLWU_BASE)
10711/** Array initializer of LLWU peripheral base addresses */
10712#define LLWU_BASE_ADDRS { LLWU_BASE }
10713/** Array initializer of LLWU peripheral base pointers */
10714#define LLWU_BASE_PTRS { LLWU }
10715/** Interrupt vectors for the LLWU peripheral type */
10716#define LLWU_IRQS { LLWU_IRQn }
10717
10718/*!
10719 * @}
10720 */ /* end of group LLWU_Peripheral_Access_Layer */
10721
10722
10723/* ----------------------------------------------------------------------------
10724 -- LMEM Peripheral Access Layer
10725 ---------------------------------------------------------------------------- */
10726
10727/*!
10728 * @addtogroup LMEM_Peripheral_Access_Layer LMEM Peripheral Access Layer
10729 * @{
10730 */
10731
10732/** LMEM - Register Layout Typedef */
10733typedef struct {
10734 __IO uint32_t PCCCR; /**< Cache control register, offset: 0x0 */
10735 __IO uint32_t PCCLCR; /**< Cache line control register, offset: 0x4 */
10736 __IO uint32_t PCCSAR; /**< Cache search address register, offset: 0x8 */
10737 __IO uint32_t PCCCVR; /**< Cache read/write value register, offset: 0xC */
10738 uint8_t RESERVED_0[16];
10739 __IO uint32_t PCCRMR; /**< Cache regions mode register, offset: 0x20 */
10740} LMEM_TypeDef;
10741
10742/* ----------------------------------------------------------------------------
10743 -- LMEM Register Masks
10744 ---------------------------------------------------------------------------- */
10745
10746/*!
10747 * @addtogroup LMEM_Register_Masks LMEM Register Masks
10748 * @{
10749 */
10750
10751/*! @name PCCCR - Cache control register */
10752#define LMEM_PCCCR_ENCACHE_MASK (0x1U)
10753#define LMEM_PCCCR_ENCACHE_SHIFT (0U)
10754#define LMEM_PCCCR_ENCACHE_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_ENCACHE_SHIFT)) & LMEM_PCCCR_ENCACHE_MASK)
10755#define LMEM_PCCCR_ENCACHE LMEM_PCCCR_ENCACHE_MASK
10756#define LMEM_PCCCR_ENWRBUF_MASK (0x2U)
10757#define LMEM_PCCCR_ENWRBUF_SHIFT (1U)
10758#define LMEM_PCCCR_ENWRBUF_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_ENWRBUF_SHIFT)) & LMEM_PCCCR_ENWRBUF_MASK)
10759#define LMEM_PCCCR_ENWRBUF LMEM_PCCCR_ENWRBUF_MASK
10760#define LMEM_PCCCR_PCCR2_MASK (0x4U)
10761#define LMEM_PCCCR_PCCR2_SHIFT (2U)
10762#define LMEM_PCCCR_PCCR2_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_PCCR2_SHIFT)) & LMEM_PCCCR_PCCR2_MASK)
10763#define LMEM_PCCCR_PCCR2 LMEM_PCCCR_PCCR2_MASK
10764#define LMEM_PCCCR_PCCR3_MASK (0x8U)
10765#define LMEM_PCCCR_PCCR3_SHIFT (3U)
10766#define LMEM_PCCCR_PCCR3_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_PCCR3_SHIFT)) & LMEM_PCCCR_PCCR3_MASK)
10767#define LMEM_PCCCR_PCCR3 LMEM_PCCCR_PCCR3_MASK
10768#define LMEM_PCCCR_INVW0_MASK (0x1000000U)
10769#define LMEM_PCCCR_INVW0_SHIFT (24U)
10770#define LMEM_PCCCR_INVW0_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_INVW0_SHIFT)) & LMEM_PCCCR_INVW0_MASK)
10771#define LMEM_PCCCR_INVW0 LMEM_PCCCR_INVW0_MASK
10772#define LMEM_PCCCR_PUSHW0_MASK (0x2000000U)
10773#define LMEM_PCCCR_PUSHW0_SHIFT (25U)
10774#define LMEM_PCCCR_PUSHW0_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_PUSHW0_SHIFT)) & LMEM_PCCCR_PUSHW0_MASK)
10775#define LMEM_PCCCR_PUSHW0 LMEM_PCCCR_PUSHW0_MASK
10776#define LMEM_PCCCR_INVW1_MASK (0x4000000U)
10777#define LMEM_PCCCR_INVW1_SHIFT (26U)
10778#define LMEM_PCCCR_INVW1_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_INVW1_SHIFT)) & LMEM_PCCCR_INVW1_MASK)
10779#define LMEM_PCCCR_INVW1 LMEM_PCCCR_INVW1_MASK
10780#define LMEM_PCCCR_PUSHW1_MASK (0x8000000U)
10781#define LMEM_PCCCR_PUSHW1_SHIFT (27U)
10782#define LMEM_PCCCR_PUSHW1_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_PUSHW1_SHIFT)) & LMEM_PCCCR_PUSHW1_MASK)
10783#define LMEM_PCCCR_PUSHW1 LMEM_PCCCR_PUSHW1_MASK
10784#define LMEM_PCCCR_GO_MASK (0x80000000U)
10785#define LMEM_PCCCR_GO_SHIFT (31U)
10786#define LMEM_PCCCR_GO_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCR_GO_SHIFT)) & LMEM_PCCCR_GO_MASK)
10787#define LMEM_PCCCR_GO LMEM_PCCCR_GO_MASK
10788
10789/*! @name PCCLCR - Cache line control register */
10790#define LMEM_PCCLCR_LGO_MASK (0x1U)
10791#define LMEM_PCCLCR_LGO_SHIFT (0U)
10792#define LMEM_PCCLCR_LGO_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_LGO_SHIFT)) & LMEM_PCCLCR_LGO_MASK)
10793#define LMEM_PCCLCR_LGO LMEM_PCCLCR_LGO_MASK
10794#define LMEM_PCCLCR_CACHEADDR_MASK (0xFFCU)
10795#define LMEM_PCCLCR_CACHEADDR_SHIFT (2U)
10796#define LMEM_PCCLCR_CACHEADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_CACHEADDR_SHIFT)) & LMEM_PCCLCR_CACHEADDR_MASK)
10797#define LMEM_PCCLCR_CACHEADDR LMEM_PCCLCR_CACHEADDR_MASK
10798#define LMEM_PCCLCR_WSEL_MASK (0x4000U)
10799#define LMEM_PCCLCR_WSEL_SHIFT (14U)
10800#define LMEM_PCCLCR_WSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_WSEL_SHIFT)) & LMEM_PCCLCR_WSEL_MASK)
10801#define LMEM_PCCLCR_WSEL LMEM_PCCLCR_WSEL_MASK
10802#define LMEM_PCCLCR_TDSEL_MASK (0x10000U)
10803#define LMEM_PCCLCR_TDSEL_SHIFT (16U)
10804#define LMEM_PCCLCR_TDSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_TDSEL_SHIFT)) & LMEM_PCCLCR_TDSEL_MASK)
10805#define LMEM_PCCLCR_TDSEL LMEM_PCCLCR_TDSEL_MASK
10806#define LMEM_PCCLCR_LCIVB_MASK (0x100000U)
10807#define LMEM_PCCLCR_LCIVB_SHIFT (20U)
10808#define LMEM_PCCLCR_LCIVB_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_LCIVB_SHIFT)) & LMEM_PCCLCR_LCIVB_MASK)
10809#define LMEM_PCCLCR_LCIVB LMEM_PCCLCR_LCIVB_MASK
10810#define LMEM_PCCLCR_LCIMB_MASK (0x200000U)
10811#define LMEM_PCCLCR_LCIMB_SHIFT (21U)
10812#define LMEM_PCCLCR_LCIMB_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_LCIMB_SHIFT)) & LMEM_PCCLCR_LCIMB_MASK)
10813#define LMEM_PCCLCR_LCIMB LMEM_PCCLCR_LCIMB_MASK
10814#define LMEM_PCCLCR_LCWAY_MASK (0x400000U)
10815#define LMEM_PCCLCR_LCWAY_SHIFT (22U)
10816#define LMEM_PCCLCR_LCWAY_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_LCWAY_SHIFT)) & LMEM_PCCLCR_LCWAY_MASK)
10817#define LMEM_PCCLCR_LCWAY LMEM_PCCLCR_LCWAY_MASK
10818#define LMEM_PCCLCR_LCMD_MASK (0x3000000U)
10819#define LMEM_PCCLCR_LCMD_SHIFT (24U)
10820#define LMEM_PCCLCR_LCMD_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_LCMD_SHIFT)) & LMEM_PCCLCR_LCMD_MASK)
10821#define LMEM_PCCLCR_LCMD LMEM_PCCLCR_LCMD_MASK
10822#define LMEM_PCCLCR_LADSEL_MASK (0x4000000U)
10823#define LMEM_PCCLCR_LADSEL_SHIFT (26U)
10824#define LMEM_PCCLCR_LADSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_LADSEL_SHIFT)) & LMEM_PCCLCR_LADSEL_MASK)
10825#define LMEM_PCCLCR_LADSEL LMEM_PCCLCR_LADSEL_MASK
10826#define LMEM_PCCLCR_LACC_MASK (0x8000000U)
10827#define LMEM_PCCLCR_LACC_SHIFT (27U)
10828#define LMEM_PCCLCR_LACC_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCLCR_LACC_SHIFT)) & LMEM_PCCLCR_LACC_MASK)
10829#define LMEM_PCCLCR_LACC LMEM_PCCLCR_LACC_MASK
10830
10831/*! @name PCCSAR - Cache search address register */
10832#define LMEM_PCCSAR_LGO_MASK (0x1U)
10833#define LMEM_PCCSAR_LGO_SHIFT (0U)
10834#define LMEM_PCCSAR_LGO_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCSAR_LGO_SHIFT)) & LMEM_PCCSAR_LGO_MASK)
10835#define LMEM_PCCSAR_LGO LMEM_PCCSAR_LGO_MASK
10836#define LMEM_PCCSAR_PHYADDR_MASK (0xFFFFFFFCU)
10837#define LMEM_PCCSAR_PHYADDR_SHIFT (2U)
10838#define LMEM_PCCSAR_PHYADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCSAR_PHYADDR_SHIFT)) & LMEM_PCCSAR_PHYADDR_MASK)
10839#define LMEM_PCCSAR_PHYADDR LMEM_PCCSAR_PHYADDR_MASK
10840
10841/*! @name PCCCVR - Cache read/write value register */
10842#define LMEM_PCCCVR_DATA_MASK (0xFFFFFFFFU)
10843#define LMEM_PCCCVR_DATA_SHIFT (0U)
10844#define LMEM_PCCCVR_DATA_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCCVR_DATA_SHIFT)) & LMEM_PCCCVR_DATA_MASK)
10845#define LMEM_PCCCVR_DATA LMEM_PCCCVR_DATA_MASK
10846
10847/*! @name PCCRMR - Cache regions mode register */
10848#define LMEM_PCCRMR_R15_MASK (0x3U)
10849#define LMEM_PCCRMR_R15_SHIFT (0U)
10850#define LMEM_PCCRMR_R15_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R15_SHIFT)) & LMEM_PCCRMR_R15_MASK)
10851#define LMEM_PCCRMR_R15 LMEM_PCCRMR_R15_MASK
10852#define LMEM_PCCRMR_R14_MASK (0xCU)
10853#define LMEM_PCCRMR_R14_SHIFT (2U)
10854#define LMEM_PCCRMR_R14_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R14_SHIFT)) & LMEM_PCCRMR_R14_MASK)
10855#define LMEM_PCCRMR_R14 LMEM_PCCRMR_R14_MASK
10856#define LMEM_PCCRMR_R13_MASK (0x30U)
10857#define LMEM_PCCRMR_R13_SHIFT (4U)
10858#define LMEM_PCCRMR_R13_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R13_SHIFT)) & LMEM_PCCRMR_R13_MASK)
10859#define LMEM_PCCRMR_R13 LMEM_PCCRMR_R13_MASK
10860#define LMEM_PCCRMR_R12_MASK (0xC0U)
10861#define LMEM_PCCRMR_R12_SHIFT (6U)
10862#define LMEM_PCCRMR_R12_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R12_SHIFT)) & LMEM_PCCRMR_R12_MASK)
10863#define LMEM_PCCRMR_R12 LMEM_PCCRMR_R12_MASK
10864#define LMEM_PCCRMR_R11_MASK (0x300U)
10865#define LMEM_PCCRMR_R11_SHIFT (8U)
10866#define LMEM_PCCRMR_R11_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R11_SHIFT)) & LMEM_PCCRMR_R11_MASK)
10867#define LMEM_PCCRMR_R11 LMEM_PCCRMR_R11_MASK
10868#define LMEM_PCCRMR_R10_MASK (0xC00U)
10869#define LMEM_PCCRMR_R10_SHIFT (10U)
10870#define LMEM_PCCRMR_R10_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R10_SHIFT)) & LMEM_PCCRMR_R10_MASK)
10871#define LMEM_PCCRMR_R10 LMEM_PCCRMR_R10_MASK
10872#define LMEM_PCCRMR_R9_MASK (0x3000U)
10873#define LMEM_PCCRMR_R9_SHIFT (12U)
10874#define LMEM_PCCRMR_R9_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R9_SHIFT)) & LMEM_PCCRMR_R9_MASK)
10875#define LMEM_PCCRMR_R9 LMEM_PCCRMR_R9_MASK
10876#define LMEM_PCCRMR_R8_MASK (0xC000U)
10877#define LMEM_PCCRMR_R8_SHIFT (14U)
10878#define LMEM_PCCRMR_R8_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R8_SHIFT)) & LMEM_PCCRMR_R8_MASK)
10879#define LMEM_PCCRMR_R8 LMEM_PCCRMR_R8_MASK
10880#define LMEM_PCCRMR_R7_MASK (0x30000U)
10881#define LMEM_PCCRMR_R7_SHIFT (16U)
10882#define LMEM_PCCRMR_R7_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R7_SHIFT)) & LMEM_PCCRMR_R7_MASK)
10883#define LMEM_PCCRMR_R7 LMEM_PCCRMR_R7_MASK
10884#define LMEM_PCCRMR_R6_MASK (0xC0000U)
10885#define LMEM_PCCRMR_R6_SHIFT (18U)
10886#define LMEM_PCCRMR_R6_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R6_SHIFT)) & LMEM_PCCRMR_R6_MASK)
10887#define LMEM_PCCRMR_R6 LMEM_PCCRMR_R6_MASK
10888#define LMEM_PCCRMR_R5_MASK (0x300000U)
10889#define LMEM_PCCRMR_R5_SHIFT (20U)
10890#define LMEM_PCCRMR_R5_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R5_SHIFT)) & LMEM_PCCRMR_R5_MASK)
10891#define LMEM_PCCRMR_R5 LMEM_PCCRMR_R5_MASK
10892#define LMEM_PCCRMR_R4_MASK (0xC00000U)
10893#define LMEM_PCCRMR_R4_SHIFT (22U)
10894#define LMEM_PCCRMR_R4_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R4_SHIFT)) & LMEM_PCCRMR_R4_MASK)
10895#define LMEM_PCCRMR_R4 LMEM_PCCRMR_R4_MASK
10896#define LMEM_PCCRMR_R3_MASK (0x3000000U)
10897#define LMEM_PCCRMR_R3_SHIFT (24U)
10898#define LMEM_PCCRMR_R3_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R3_SHIFT)) & LMEM_PCCRMR_R3_MASK)
10899#define LMEM_PCCRMR_R3 LMEM_PCCRMR_R3_MASK
10900#define LMEM_PCCRMR_R2_MASK (0xC000000U)
10901#define LMEM_PCCRMR_R2_SHIFT (26U)
10902#define LMEM_PCCRMR_R2_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R2_SHIFT)) & LMEM_PCCRMR_R2_MASK)
10903#define LMEM_PCCRMR_R2 LMEM_PCCRMR_R2_MASK
10904#define LMEM_PCCRMR_R1_MASK (0x30000000U)
10905#define LMEM_PCCRMR_R1_SHIFT (28U)
10906#define LMEM_PCCRMR_R1_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R1_SHIFT)) & LMEM_PCCRMR_R1_MASK)
10907#define LMEM_PCCRMR_R1 LMEM_PCCRMR_R1_MASK
10908#define LMEM_PCCRMR_R0_MASK (0xC0000000U)
10909#define LMEM_PCCRMR_R0_SHIFT (30U)
10910#define LMEM_PCCRMR_R0_SET(x) (((uint32_t)(((uint32_t)(x)) << LMEM_PCCRMR_R0_SHIFT)) & LMEM_PCCRMR_R0_MASK)
10911#define LMEM_PCCRMR_R0 LMEM_PCCRMR_R0_MASK
10912
10913
10914/*!
10915 * @}
10916 */ /* end of group LMEM_Register_Masks */
10917
10918
10919/* LMEM - Peripheral instance base addresses */
10920/** Peripheral LMEM base address */
10921#define LMEM_BASE (0xE0082000u)
10922/** Peripheral LMEM base pointer */
10923#define LMEM ((LMEM_TypeDef *)LMEM_BASE)
10924/** Array initializer of LMEM peripheral base addresses */
10925#define LMEM_BASE_ADDRS { LMEM_BASE }
10926/** Array initializer of LMEM peripheral base pointers */
10927#define LMEM_BASE_PTRS { LMEM }
10928
10929/*!
10930 * @}
10931 */ /* end of group LMEM_Peripheral_Access_Layer */
10932
10933
10934/* ----------------------------------------------------------------------------
10935 -- LPTMR Peripheral Access Layer
10936 ---------------------------------------------------------------------------- */
10937
10938/*!
10939 * @addtogroup LPTMR_Peripheral_Access_Layer LPTMR Peripheral Access Layer
10940 * @{
10941 */
10942
10943/** LPTMR - Register Layout Typedef */
10944typedef struct {
10945 __IO uint32_t CSR; /**< Low Power Timer Control Status Register, offset: 0x0 */
10946 __IO uint32_t PSR; /**< Low Power Timer Prescale Register, offset: 0x4 */
10947 __IO uint32_t CMR; /**< Low Power Timer Compare Register, offset: 0x8 */
10948 __IO uint32_t CNR; /**< Low Power Timer Counter Register, offset: 0xC */
10949} LPTMR_TypeDef;
10950
10951/* ----------------------------------------------------------------------------
10952 -- LPTMR Register Masks
10953 ---------------------------------------------------------------------------- */
10954
10955/*!
10956 * @addtogroup LPTMR_Register_Masks LPTMR Register Masks
10957 * @{
10958 */
10959
10960/*! @name CSR - Low Power Timer Control Status Register */
10961#define LPTMRx_CSR_TEN_MASK (0x1U)
10962#define LPTMRx_CSR_TEN_SHIFT (0U)
10963#define LPTMRx_CSR_TEN_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_CSR_TEN_SHIFT)) & LPTMRx_CSR_TEN_MASK)
10964#define LPTMRx_CSR_TEN LPTMRx_CSR_TEN_SET(1)
10965#define LPTMRx_CSR_TMS_MASK (0x2U)
10966#define LPTMRx_CSR_TMS_SHIFT (1U)
10967#define LPTMRx_CSR_TMS_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_CSR_TMS_SHIFT)) & LPTMRx_CSR_TMS_MASK)
10968#define LPTMRx_CSR_TMS LPTMRx_CSR_TMS_MASK
10969#define LPTMRx_CSR_TFC_MASK (0x4U)
10970#define LPTMRx_CSR_TFC_SHIFT (2U)
10971#define LPTMRx_CSR_TFC_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_CSR_TFC_SHIFT)) & LPTMRx_CSR_TFC_MASK)
10972#define LPTMRx_CSR_TFC LPTMRx_CSR_TFC_MASK
10973#define LPTMRx_CSR_TPP_MASK (0x8U)
10974#define LPTMRx_CSR_TPP_SHIFT (3U)
10975#define LPTMRx_CSR_TPP_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_CSR_TPP_SHIFT)) & LPTMRx_CSR_TPP_MASK)
10976#define LPTMRx_CSR_TPP LPTMRx_CSR_TPP_MASK
10977#define LPTMRx_CSR_TPS_MASK (0x30U)
10978#define LPTMRx_CSR_TPS_SHIFT (4U)
10979#define LPTMRx_CSR_TPS_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_CSR_TPS_SHIFT)) & LPTMRx_CSR_TPS_MASK)
10980#define LPTMRx_CSR_TPS LPTMRx_CSR_TPS_MASK
10981#define LPTMRx_CSR_TIE_MASK (0x40U)
10982#define LPTMRx_CSR_TIE_SHIFT (6U)
10983#define LPTMRx_CSR_TIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_CSR_TIE_SHIFT)) & LPTMRx_CSR_TIE_MASK)
10984#define LPTMRx_CSR_TIE LPTMRx_CSR_TIE_SET(1)
10985#define LPTMRx_CSR_TCF_MASK (0x80U)
10986#define LPTMRx_CSR_TCF_SHIFT (7U)
10987#define LPTMRx_CSR_TCF_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_CSR_TCF_SHIFT)) & LPTMRx_CSR_TCF_MASK)
10988#define LPTMRx_CSR_TCF LPTMRx_CSR_TCF_SET(1)
10989
10990/*! @name PSR - Low Power Timer Prescale Register */
10991#define LPTMRx_PSR_PCS_MASK (0x3U)
10992#define LPTMRx_PSR_PCS_SHIFT (0U)
10993#define LPTMRx_PSR_PCS(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_PSR_PCS_SHIFT)) & LPTMRx_PSR_PCS_MASK)
10994#define LPTMRx_PSR_PBYP_MASK (0x4U)
10995#define LPTMRx_PSR_PBYP_SHIFT (2U)
10996#define LPTMRx_PSR_PBYP_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_PSR_PBYP_SHIFT)) & LPTMRx_PSR_PBYP_MASK)
10997#define LPTMRx_PSR_PBYP LPTMRx_PSR_PBYP_MASK
10998#define LPTMRx_PSR_PRESCALE_MASK (0x78U)
10999#define LPTMRx_PSR_PRESCALE_SHIFT (3U)
11000#define LPTMRx_PSR_PRESCALE(x) (((uint32_t)(((uint32_t)(x)) << LPTMRx_PSR_PRESCALE_SHIFT)) & LPTMRx_PSR_PRESCALE_MASK)
11001
11002/*! @name CMR - Low Power Timer Compare Register */
11003#define LPTMRx_CMR_COMPARE_MASK (0xFFFFU)
11004#define LPTMRx_CMR_COMPARE_SHIFT (0U)
11005#define LPTMRx_CMR_COMPARE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CMR_COMPARE_SHIFT)) & LPTMR_CMR_COMPARE_MASK)
11006#define LPTMRx_CMR_COMPARE LPTMRx_CMR_COMPARE_MASK
11007
11008/*! @name CNR - Low Power Timer Counter Register */
11009#define LPTMRx_CNR_COUNTER_MASK (0xFFFFU)
11010#define LPTMRx_CNR_COUNTER_SHIFT (0U)
11011#define LPTMRx_CNR_COUNTER_SET(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CNR_COUNTER_SHIFT)) & LPTMR_CNR_COUNTER_MASK)
11012#define LPTMRx_CNR_COUNTER LPTMRx_CNR_COUNTER_MASK
11013
11014
11015/*!
11016 * @}
11017 */ /* end of group LPTMR_Register_Masks */
11018
11019
11020/* LPTMR - Peripheral instance base addresses */
11021/** Peripheral LPTMR0 base address */
11022#define LPTMR0_BASE (0x40040000u)
11023/** Peripheral LPTMR0 base pointer */
11024#define LPTMR0 ((LPTMR_TypeDef *)LPTMR0_BASE)
11025/** Array initializer of LPTMR peripheral base addresses */
11026#define LPTMRx_BASE_ADDRS { LPTMR0_BASE }
11027/** Array initializer of LPTMR peripheral base pointers */
11028#define LPTMRx_BASE_PTRS { LPTMR0 }
11029/** Interrupt vectors for the LPTMR peripheral type */
11030#define LPTMRx_IRQS { LPTMR0_IRQn }
11031
11032/*!
11033 * @}
11034 */ /* end of group LPTMR_Peripheral_Access_Layer */
11035
11036
11037/* ----------------------------------------------------------------------------
11038 -- LPUART Peripheral Access Layer
11039 ---------------------------------------------------------------------------- */
11040
11041/*!
11042 * @addtogroup LPUARTx_Peripheral_Access_Layer LPUART Peripheral Access Layer
11043 * @{
11044 */
11045
11046/** LPUART - Register Layout Typedef */
11047typedef struct {
11048 __IO uint32_t BAUD; /**< LPUART Baud Rate Register, offset: 0x0 */
11049 __IO uint32_t STAT; /**< LPUART Status Register, offset: 0x4 */
11050 __IO uint32_t CTRL; /**< LPUART Control Register, offset: 0x8 */
11051 __IO uint32_t DATA; /**< LPUART Data Register, offset: 0xC */
11052 __IO uint32_t MATCH; /**< LPUART Match Address Register, offset: 0x10 */
11053 __IO uint32_t MODIR; /**< LPUART Modem IrDA Register, offset: 0x14 */
11054} LPUART_TypeDef;
11055
11056/* ----------------------------------------------------------------------------
11057 -- LPUART Register Masks
11058 ---------------------------------------------------------------------------- */
11059
11060/*!
11061 * @addtogroup LPUARTx_Register_Masks LPUART Register Masks
11062 * @{
11063 */
11064
11065/*! @name BAUD - LPUART Baud Rate Register */
11066#define LPUARTx_BAUD_SBR_MASK (0x1FFFU)
11067#define LPUARTx_BAUD_SBR_SHIFT (0U)
11068#define LPUARTx_BAUD_SBR_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_SBR_SHIFT)) & LPUARTx_BAUD_SBR_MASK)
11069#define LPUARTx_BAUD_SBR LPUARTx_BAUD_SBR_MASK
11070#define LPUARTx_BAUD_SBNS_MASK (0x2000U)
11071#define LPUARTx_BAUD_SBNS_SHIFT (13U)
11072#define LPUARTx_BAUD_SBNS_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_SBNS_SHIFT)) & LPUARTx_BAUD_SBNS_MASK)
11073#define LPUARTx_BAUD_SBNS LPUARTx_BAUD_SBNS_MASK
11074#define LPUARTx_BAUD_RXEDGIE_MASK (0x4000U)
11075#define LPUARTx_BAUD_RXEDGIE_SHIFT (14U)
11076#define LPUARTx_BAUD_RXEDGIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_RXEDGIE_SHIFT)) & LPUARTx_BAUD_RXEDGIE_MASK)
11077#define LPUARTx_BAUD_RXEDGIE LPUARTx_BAUD_RXEDGIE_MASK
11078#define LPUARTx_BAUD_LBKDIE_MASK (0x8000U)
11079#define LPUARTx_BAUD_LBKDIE_SHIFT (15U)
11080#define LPUARTx_BAUD_LBKDIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_LBKDIE_SHIFT)) & LPUARTx_BAUD_LBKDIE_MASK)
11081#define LPUARTx_BAUD_LBKDIE LPUARTx_BAUD_LBKDIE_MASK
11082#define LPUARTx_BAUD_RESYNCDIS_MASK (0x10000U)
11083#define LPUARTx_BAUD_RESYNCDIS_SHIFT (16U)
11084#define LPUARTx_BAUD_RESYNCDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_RESYNCDIS_SHIFT)) & LPUARTx_BAUD_RESYNCDIS_MASK)
11085#define LPUARTx_BAUD_RESYNCDIS LPUARTx_BAUD_RESYNCDIS_MASK
11086#define LPUARTx_BAUD_BOTHEDGE_MASK (0x20000U)
11087#define LPUARTx_BAUD_BOTHEDGE_SHIFT (17U)
11088#define LPUARTx_BAUD_BOTHEDGE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_BOTHEDGE_SHIFT)) & LPUARTx_BAUD_BOTHEDGE_MASK)
11089#define LPUARTx_BAUD_BOTHEDGE LPUARTx_BAUD_BOTHEDGE_MASK
11090#define LPUARTx_BAUD_MATCFG_MASK (0xC0000U)
11091#define LPUARTx_BAUD_MATCFG_SHIFT (18U)
11092#define LPUARTx_BAUD_MATCFG_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_MATCFG_SHIFT)) & LPUARTx_BAUD_MATCFG_MASK)
11093#define LPUARTx_BAUD_MATCFG LPUARTx_BAUD_MATCFG_MASK
11094#define LPUARTx_BAUD_RDMAE_MASK (0x200000U)
11095#define LPUARTx_BAUD_RDMAE_SHIFT (21U)
11096#define LPUARTx_BAUD_RDMAE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_RDMAE_SHIFT)) & LPUARTx_BAUD_RDMAE_MASK)
11097#define LPUARTx_BAUD_RDMAE LPUARTx_BAUD_RDMAE_MASK
11098#define LPUARTx_BAUD_TDMAE_MASK (0x800000U)
11099#define LPUARTx_BAUD_TDMAE_SHIFT (23U)
11100#define LPUARTx_BAUD_TDMAE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_TDMAE_SHIFT)) & LPUARTx_BAUD_TDMAE_MASK)
11101#define LPUARTx_BAUD_TDMAE LPUARTx_BAUD_TDMAE_MASK
11102#define LPUARTx_BAUD_OSR_MASK (0x1F000000U)
11103#define LPUARTx_BAUD_OSR_SHIFT (24U)
11104#define LPUARTx_BAUD_OSR_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_OSR_SHIFT)) & LPUARTx_BAUD_OSR_MASK)
11105#define LPUARTx_BAUD_OSR LPUARTx_BAUD_OSR_MASK
11106#define LPUARTx_BAUD_M10_MASK (0x20000000U)
11107#define LPUARTx_BAUD_M10_SHIFT (29U)
11108#define LPUARTx_BAUD_M10_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_M10_SHIFT)) & LPUARTx_BAUD_M10_MASK)
11109#define LPUARTx_BAUD_M10 LPUARTx_BAUD_M10_MASK
11110#define LPUARTx_BAUD_MAEN2_MASK (0x40000000U)
11111#define LPUARTx_BAUD_MAEN2_SHIFT (30U)
11112#define LPUARTx_BAUD_MAEN2_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_MAEN2_SHIFT)) & LPUARTx_BAUD_MAEN2_MASK)
11113#define LPUARTx_BAUD_MAEN2 LPUARTx_BAUD_MAEN2_MASK
11114#define LPUARTx_BAUD_MAEN1_MASK (0x80000000U)
11115#define LPUARTx_BAUD_MAEN1_SHIFT (31U)
11116#define LPUARTx_BAUD_MAEN1_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_BAUD_MAEN1_SHIFT)) & LPUARTx_BAUD_MAEN1_MASK)
11117#define LPUARTx_BAUD_MAEN1 LPUARTx_BAUD_MAEN1_MASK
11118
11119/*! @name STAT - LPUART Status Register */
11120#define LPUARTx_STAT_MA2F_MASK (0x4000U)
11121#define LPUARTx_STAT_MA2F_SHIFT (14U)
11122#define LPUARTx_STAT_MA2F_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_MA2F_SHIFT)) & LPUARTx_STAT_MA2F_MASK)
11123#define LPUARTx_STAT_MA2F LPUARTx_STAT_MA2F_MASK
11124#define LPUARTx_STAT_MA1F_MASK (0x8000U)
11125#define LPUARTx_STAT_MA1F_SHIFT (15U)
11126#define LPUARTx_STAT_MA1F_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_MA1F_SHIFT)) & LPUARTx_STAT_MA1F_MASK)
11127#define LPUARTx_STAT_MA1F LPUARTx_STAT_MA1F_MASK
11128#define LPUARTx_STAT_PF_MASK (0x10000U)
11129#define LPUARTx_STAT_PF_SHIFT (16U)
11130#define LPUARTx_STAT_PF_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_PF_SHIFT)) & LPUARTx_STAT_PF_MASK)
11131#define LPUARTx_STAT_PF LPUARTx_STAT_PF_MASK
11132#define LPUARTx_STAT_FE_MASK (0x20000U)
11133#define LPUARTx_STAT_FE_SHIFT (17U)
11134#define LPUARTx_STAT_FE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_FE_SHIFT)) & LPUARTx_STAT_FE_MASK)
11135#define LPUARTx_STAT_FE LPUARTx_STAT_FE_MASK
11136#define LPUARTx_STAT_NF_MASK (0x40000U)
11137#define LPUARTx_STAT_NF_SHIFT (18U)
11138#define LPUARTx_STAT_NF_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_NF_SHIFT)) & LPUARTx_STAT_NF_MASK)
11139#define LPUARTx_STAT_NF LPUARTx_STAT_NF_MASK
11140#define LPUARTx_STAT_OR_MASK (0x80000U)
11141#define LPUARTx_STAT_OR_SHIFT (19U)
11142#define LPUARTx_STAT_OR_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_OR_SHIFT)) & LPUARTx_STAT_OR_MASK)
11143#define LPUARTx_STAT_OR LPUARTx_STAT_OR_MASK
11144#define LPUARTx_STAT_IDLE_MASK (0x100000U)
11145#define LPUARTx_STAT_IDLE_SHIFT (20U)
11146#define LPUARTx_STAT_IDLE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_IDLE_SHIFT)) & LPUARTx_STAT_IDLE_MASK)
11147#define LPUARTx_STAT_IDLE LPUARTx_STAT_IDLE_MASK
11148#define LPUARTx_STAT_RDRF_MASK (0x200000U)
11149#define LPUARTx_STAT_RDRF_SHIFT (21U)
11150#define LPUARTx_STAT_RDRF_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_RDRF_SHIFT)) & LPUARTx_STAT_RDRF_MASK)
11151#define LPUARTx_STAT_RDRF LPUARTx_STAT_RDRF_MASK
11152#define LPUARTx_STAT_TC_MASK (0x400000U)
11153#define LPUARTx_STAT_TC_SHIFT (22U)
11154#define LPUARTx_STAT_TC_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_TC_SHIFT)) & LPUARTx_STAT_TC_MASK)
11155#define LPUARTx_STAT_TC LPUARTx_STAT_TC_MASK
11156#define LPUARTx_STAT_TDRE_MASK (0x800000U)
11157#define LPUARTx_STAT_TDRE_SHIFT (23U)
11158#define LPUARTx_STAT_TDRE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_TDRE_SHIFT)) & LPUARTx_STAT_TDRE_MASK)
11159#define LPUARTx_STAT_TDRE LPUARTx_STAT_TDRE_MASK
11160#define LPUARTx_STAT_RAF_MASK (0x1000000U)
11161#define LPUARTx_STAT_RAF_SHIFT (24U)
11162#define LPUARTx_STAT_RAF_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_RAF_SHIFT)) & LPUARTx_STAT_RAF_MASK)
11163#define LPUARTx_STAT_RAF LPUARTx_STAT_RAF_MASK
11164#define LPUARTx_STAT_LBKDE_MASK (0x2000000U)
11165#define LPUARTx_STAT_LBKDE_SHIFT (25U)
11166#define LPUARTx_STAT_LBKDE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_LBKDE_SHIFT)) & LPUARTx_STAT_LBKDE_MASK)
11167#define LPUARTx_STAT_LBKDE LPUARTx_STAT_LBKDE_MASK
11168#define LPUARTx_STAT_BRK13_MASK (0x4000000U)
11169#define LPUARTx_STAT_BRK13_SHIFT (26U)
11170#define LPUARTx_STAT_BRK13_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_BRK13_SHIFT)) & LPUARTx_STAT_BRK13_MASK)
11171#define LPUARTx_STAT_BRK13 LPUARTx_STAT_BRK13_MASK
11172#define LPUARTx_STAT_RWUID_MASK (0x8000000U)
11173#define LPUARTx_STAT_RWUID_SHIFT (27U)
11174#define LPUARTx_STAT_RWUID_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_RWUID_SHIFT)) & LPUARTx_STAT_RWUID_MASK)
11175#define LPUARTx_STAT_RWUID LPUARTx_STAT_RWUID_MASK
11176#define LPUARTx_STAT_RXINV_MASK (0x10000000U)
11177#define LPUARTx_STAT_RXINV_SHIFT (28U)
11178#define LPUARTx_STAT_RXINV_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_RXINV_SHIFT)) & LPUARTx_STAT_RXINV_MASK)
11179#define LPUARTx_STAT_RXINV LPUARTx_STAT_RXINV_MASK
11180#define LPUARTx_STAT_MSBF_MASK (0x20000000U)
11181#define LPUARTx_STAT_MSBF_SHIFT (29U)
11182#define LPUARTx_STAT_MSBF_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_MSBF_SHIFT)) & LPUARTx_STAT_MSBF_MASK)
11183#define LPUARTx_STAT_MSBF LPUARTx_STAT_MSBF_MASK
11184#define LPUARTx_STAT_RXEDGIF_MASK (0x40000000U)
11185#define LPUARTx_STAT_RXEDGIF_SHIFT (30U)
11186#define LPUARTx_STAT_RXEDGIF_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_RXEDGIF_SHIFT)) & LPUARTx_STAT_RXEDGIF_MASK)
11187#define LPUARTx_STAT_RXEDGIF LPUARTx_STAT_RXEDGIF_MASK
11188#define LPUARTx_STAT_LBKDIF_MASK (0x80000000U)
11189#define LPUARTx_STAT_LBKDIF_SHIFT (31U)
11190#define LPUARTx_STAT_LBKDIF_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_STAT_LBKDIF_SHIFT)) & LPUARTx_STAT_LBKDIF_MASK)
11191#define LPUARTx_STAT_LBKDIF LPUARTx_STAT_LBKDIF_MASK
11192
11193/*! @name CTRL - LPUART Control Register */
11194#define LPUARTx_CTRL_PT_MASK (0x1U)
11195#define LPUARTx_CTRL_PT_SHIFT (0U)
11196#define LPUARTx_CTRL_PT_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_PT_SHIFT)) & LPUARTx_CTRL_PT_MASK)
11197#define LPUARTx_CTRL_PT LPUARTx_CTRL_PT_MASK
11198#define LPUARTx_CTRL_PE_MASK (0x2U)
11199#define LPUARTx_CTRL_PE_SHIFT (1U)
11200#define LPUARTx_CTRL_PE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_PE_SHIFT)) & LPUARTx_CTRL_PE_MASK)
11201#define LPUARTx_CTRL_PE LPUARTx_CTRL_PE_MASK
11202#define LPUARTx_CTRL_ILT_MASK (0x4U)
11203#define LPUARTx_CTRL_ILT_SHIFT (2U)
11204#define LPUARTx_CTRL_ILT_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_ILT_SHIFT)) & LPUARTx_CTRL_ILT_MASK)
11205#define LPUARTx_CTRL_ILT LPUARTx_CTRL_ILT_MASK
11206#define LPUARTx_CTRL_WAKE_MASK (0x8U)
11207#define LPUARTx_CTRL_WAKE_SHIFT (3U)
11208#define LPUARTx_CTRL_WAKE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_WAKE_SHIFT)) & LPUARTx_CTRL_WAKE_MASK)
11209#define LPUARTx_CTRL_WAKE LPUARTx_CTRL_WAKE_MASK
11210#define LPUARTx_CTRL_M_MASK (0x10U)
11211#define LPUARTx_CTRL_M_SHIFT (4U)
11212#define LPUARTx_CTRL_M_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_M_SHIFT)) & LPUARTx_CTRL_M_MASK)
11213#define LPUARTx_CTRL_M LPUARTx_CTRL_M_MASK
11214#define LPUARTx_CTRL_RSRC_MASK (0x20U)
11215#define LPUARTx_CTRL_RSRC_SHIFT (5U)
11216#define LPUARTx_CTRL_RSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_RSRC_SHIFT)) & LPUARTx_CTRL_RSRC_MASK)
11217#define LPUARTx_CTRL_RSRC LPUARTx_CTRL_RSRC_MASK
11218#define LPUARTx_CTRL_DOZEEN_MASK (0x40U)
11219#define LPUARTx_CTRL_DOZEEN_SHIFT (6U)
11220#define LPUARTx_CTRL_DOZEEN_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_DOZEEN_SHIFT)) & LPUARTx_CTRL_DOZEEN_MASK)
11221#define LPUARTx_CTRL_DOZEEN LPUARTx_CTRL_DOZEEN_MASK
11222#define LPUARTx_CTRL_LOOPS_MASK (0x80U)
11223#define LPUARTx_CTRL_LOOPS_SHIFT (7U)
11224#define LPUARTx_CTRL_LOOPS_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_LOOPS_SHIFT)) & LPUARTx_CTRL_LOOPS_MASK)
11225#define LPUARTx_CTRL_LOOPS LPUARTx_CTRL_LOOPS_MASK
11226#define LPUARTx_CTRL_IDLECFG_MASK (0x700U)
11227#define LPUARTx_CTRL_IDLECFG_SHIFT (8U)
11228#define LPUARTx_CTRL_IDLECFG_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_IDLECFG_SHIFT)) & LPUARTx_CTRL_IDLECFG_MASK)
11229#define LPUARTx_CTRL_IDLECFG LPUARTx_CTRL_IDLECFG_MASK
11230#define LPUARTx_CTRL_MA2IE_MASK (0x4000U)
11231#define LPUARTx_CTRL_MA2IE_SHIFT (14U)
11232#define LPUARTx_CTRL_MA2IE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_MA2IE_SHIFT)) & LPUARTx_CTRL_MA2IE_MASK)
11233#define LPUARTx_CTRL_MA2IE LPUARTx_CTRL_MA2IE_MASK
11234#define LPUARTx_CTRL_MA1IE_MASK (0x8000U)
11235#define LPUARTx_CTRL_MA1IE_SHIFT (15U)
11236#define LPUARTx_CTRL_MA1IE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_MA1IE_SHIFT)) & LPUARTx_CTRL_MA1IE_MASK)
11237#define LPUARTx_CTRL_MA1IE LPUARTx_CTRL_MA1IE_MASK
11238#define LPUARTx_CTRL_SBK_MASK (0x10000U)
11239#define LPUARTx_CTRL_SBK_SHIFT (16U)
11240#define LPUARTx_CTRL_SBK_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_SBK_SHIFT)) & LPUARTx_CTRL_SBK_MASK)
11241#define LPUARTx_CTRL_SBK LPUARTx_CTRL_SBK_MASK
11242#define LPUARTx_CTRL_RWU_MASK (0x20000U)
11243#define LPUARTx_CTRL_RWU_SHIFT (17U)
11244#define LPUARTx_CTRL_RWU_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_RWU_SHIFT)) & LPUARTx_CTRL_RWU_MASK)
11245#define LPUARTx_CTRL_RWU LPUARTx_CTRL_RWU_MASK
11246#define LPUARTx_CTRL_RE_MASK (0x40000U)
11247#define LPUARTx_CTRL_RE_SHIFT (18U)
11248#define LPUARTx_CTRL_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_RE_SHIFT)) & LPUARTx_CTRL_RE_MASK)
11249#define LPUARTx_CTRL_RE LPUARTx_CTRL_RE_MASK
11250#define LPUARTx_CTRL_TE_MASK (0x80000U)
11251#define LPUARTx_CTRL_TE_SHIFT (19U)
11252#define LPUARTx_CTRL_TE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_TE_SHIFT)) & LPUARTx_CTRL_TE_MASK)
11253#define LPUARTx_CTRL_TE LPUARTx_CTRL_TE_MASK
11254#define LPUARTx_CTRL_ILIE_MASK (0x100000U)
11255#define LPUARTx_CTRL_ILIE_SHIFT (20U)
11256#define LPUARTx_CTRL_ILIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_ILIE_SHIFT)) & LPUARTx_CTRL_ILIE_MASK)
11257#define LPUARTx_CTRL_ILIE LPUARTx_CTRL_ILIE_MASK
11258#define LPUARTx_CTRL_RIE_MASK (0x200000U)
11259#define LPUARTx_CTRL_RIE_SHIFT (21U)
11260#define LPUARTx_CTRL_RIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_RIE_SHIFT)) & LPUARTx_CTRL_RIE_MASK)
11261#define LPUARTx_CTRL_RIE LPUARTx_CTRL_RIE_MASK
11262#define LPUARTx_CTRL_TCIE_MASK (0x400000U)
11263#define LPUARTx_CTRL_TCIE_SHIFT (22U)
11264#define LPUARTx_CTRL_TCIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_TCIE_SHIFT)) & LPUARTx_CTRL_TCIE_MASK)
11265#define LPUARTx_CTRL_TCIE LPUARTx_CTRL_TCIE_MASK
11266#define LPUARTx_CTRL_TIE_MASK (0x800000U)
11267#define LPUARTx_CTRL_TIE_SHIFT (23U)
11268#define LPUARTx_CTRL_TIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_TIE_SHIFT)) & LPUARTx_CTRL_TIE_MASK)
11269#define LPUARTx_CTRL_TIE LPUARTx_CTRL_TIE_MASK
11270#define LPUARTx_CTRL_PEIE_MASK (0x1000000U)
11271#define LPUARTx_CTRL_PEIE_SHIFT (24U)
11272#define LPUARTx_CTRL_PEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_PEIE_SHIFT)) & LPUARTx_CTRL_PEIE_MASK)
11273#define LPUARTx_CTRL_PEIE LPUARTx_CTRL_PEIE_MASK
11274#define LPUARTx_CTRL_FEIE_MASK (0x2000000U)
11275#define LPUARTx_CTRL_FEIE_SHIFT (25U)
11276#define LPUARTx_CTRL_FEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_FEIE_SHIFT)) & LPUARTx_CTRL_FEIE_MASK)
11277#define LPUARTx_CTRL_FEIE LPUARTx_CTRL_FEIE_MASK
11278#define LPUARTx_CTRL_NEIE_MASK (0x4000000U)
11279#define LPUARTx_CTRL_NEIE_SHIFT (26U)
11280#define LPUARTx_CTRL_NEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_NEIE_SHIFT)) & LPUARTx_CTRL_NEIE_MASK)
11281#define LPUARTx_CTRL_NEIE LPUARTx_CTRL_NEIE_MASK
11282#define LPUARTx_CTRL_ORIE_MASK (0x8000000U)
11283#define LPUARTx_CTRL_ORIE_SHIFT (27U)
11284#define LPUARTx_CTRL_ORIE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_ORIE_SHIFT)) & LPUARTx_CTRL_ORIE_MASK)
11285#define LPUARTx_CTRL_ORIE LPUARTx_CTRL_ORIE_MASK
11286#define LPUARTx_CTRL_TXINV_MASK (0x10000000U)
11287#define LPUARTx_CTRL_TXINV_SHIFT (28U)
11288#define LPUARTx_CTRL_TXINV_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_TXINV_SHIFT)) & LPUARTx_CTRL_TXINV_MASK)
11289#define LPUARTx_CTRL_TXINV LPUARTx_CTRL_TXINV_MASK
11290#define LPUARTx_CTRL_TXDIR_MASK (0x20000000U)
11291#define LPUARTx_CTRL_TXDIR_SHIFT (29U)
11292#define LPUARTx_CTRL_TXDIR_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_TXDIR_SHIFT)) & LPUARTx_CTRL_TXDIR_MASK)
11293#define LPUARTx_CTRL_TXDIR LPUARTx_CTRL_TXDIR_MASK
11294#define LPUARTx_CTRL_R9T8_MASK (0x40000000U)
11295#define LPUARTx_CTRL_R9T8_SHIFT (30U)
11296#define LPUARTx_CTRL_R9T8_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_R9T8_SHIFT)) & LPUARTx_CTRL_R9T8_MASK)
11297#define LPUARTx_CTRL_R9T8 LPUARTx_CTRL_R9T8_MASK
11298#define LPUARTx_CTRL_R8T9_MASK (0x80000000U)
11299#define LPUARTx_CTRL_R8T9_SHIFT (31U)
11300#define LPUARTx_CTRL_R8T9_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_CTRL_R8T9_SHIFT)) & LPUARTx_CTRL_R8T9_MASK)
11301#define LPUARTx_CTRL_R8T9 LPUARTx_CTRL_R8T9_MASK
11302
11303/*! @name DATA - LPUART Data Register */
11304#define LPUARTx_DATA_R0T0_MASK (0x1U)
11305#define LPUARTx_DATA_R0T0_SHIFT (0U)
11306#define LPUARTx_DATA_R0T0_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R0T0_SHIFT)) & LPUARTx_DATA_R0T0_MASK)
11307#define LPUARTx_DATA_R0T0 LPUARTx_DATA_R0T0_MASK
11308#define LPUARTx_DATA_R1T1_MASK (0x2U)
11309#define LPUARTx_DATA_R1T1_SHIFT (1U)
11310#define LPUARTx_DATA_R1T1_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R1T1_SHIFT)) & LPUARTx_DATA_R1T1_MASK)
11311#define LPUARTx_DATA_R1T1 LPUARTx_DATA_R1T1_MASK
11312#define LPUARTx_DATA_R2T2_MASK (0x4U)
11313#define LPUARTx_DATA_R2T2_SHIFT (2U)
11314#define LPUARTx_DATA_R2T2_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R2T2_SHIFT)) & LPUARTx_DATA_R2T2_MASK)
11315#define LPUARTx_DATA_R2T2 LPUARTx_DATA_R2T2_MASK
11316#define LPUARTx_DATA_R3T3_MASK (0x8U)
11317#define LPUARTx_DATA_R3T3_SHIFT (3U)
11318#define LPUARTx_DATA_R3T3_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R3T3_SHIFT)) & LPUARTx_DATA_R3T3_MASK)
11319#define LPUARTx_DATA_R3T3 LPUARTx_DATA_R3T3_MASK
11320#define LPUARTx_DATA_R4T4_MASK (0x10U)
11321#define LPUARTx_DATA_R4T4_SHIFT (4U)
11322#define LPUARTx_DATA_R4T4_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R4T4_SHIFT)) & LPUARTx_DATA_R4T4_MASK)
11323#define LPUARTx_DATA_R4T4 LPUARTx_DATA_R4T4_MASK
11324#define LPUARTx_DATA_R5T5_MASK (0x20U)
11325#define LPUARTx_DATA_R5T5_SHIFT (5U)
11326#define LPUARTx_DATA_R5T5_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R5T5_SHIFT)) & LPUARTx_DATA_R5T5_MASK)
11327#define LPUARTx_DATA_R5T5 LPUARTx_DATA_R5T5_MASK
11328#define LPUARTx_DATA_R6T6_MASK (0x40U)
11329#define LPUARTx_DATA_R6T6_SHIFT (6U)
11330#define LPUARTx_DATA_R6T6_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R6T6_SHIFT)) & LPUARTx_DATA_R6T6_MASK)
11331#define LPUARTx_DATA_R6T6 LPUARTx_DATA_R6T6_MASK
11332#define LPUARTx_DATA_R7T7_MASK (0x80U)
11333#define LPUARTx_DATA_R7T7_SHIFT (7U)
11334#define LPUARTx_DATA_R7T7_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R7T7_SHIFT)) & LPUARTx_DATA_R7T7_MASK)
11335#define LPUARTx_DATA_R7T7 LPUARTx_DATA_R7T7_MASK
11336#define LPUARTx_DATA_R8T8_MASK (0x100U)
11337#define LPUARTx_DATA_R8T8_SHIFT (8U)
11338#define LPUARTx_DATA_R8T8_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R8T8_SHIFT)) & LPUARTx_DATA_R8T8_MASK)
11339#define LPUARTx_DATA_R8T8 LPUARTx_DATA_R8T8_MASK
11340#define LPUARTx_DATA_R9T9_MASK (0x200U)
11341#define LPUARTx_DATA_R9T9_SHIFT (9U)
11342#define LPUARTx_DATA_R9T9_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_R9T9_SHIFT)) & LPUARTx_DATA_R9T9_MASK)
11343#define LPUARTx_DATA_R9T9 LPUARTx_DATA_R9T9_MASK
11344#define LPUARTx_DATA_IDLINE_MASK (0x800U)
11345#define LPUARTx_DATA_IDLINE_SHIFT (11U)
11346#define LPUARTx_DATA_IDLINE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_IDLINE_SHIFT)) & LPUARTx_DATA_IDLINE_MASK)
11347#define LPUARTx_DATA_IDLINE LPUARTx_DATA_IDLINE_MASK
11348#define LPUARTx_DATA_RXEMPT_MASK (0x1000U)
11349#define LPUARTx_DATA_RXEMPT_SHIFT (12U)
11350#define LPUARTx_DATA_RXEMPT_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_RXEMPT_SHIFT)) & LPUARTx_DATA_RXEMPT_MASK)
11351#define LPUARTx_DATA_RXEMPT LPUARTx_DATA_RXEMPT_MASK
11352#define LPUARTx_DATA_FRETSC_MASK (0x2000U)
11353#define LPUARTx_DATA_FRETSC_SHIFT (13U)
11354#define LPUARTx_DATA_FRETSC_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_FRETSC_SHIFT)) & LPUARTx_DATA_FRETSC_MASK)
11355#define LPUARTx_DATA_FRETSC LPUARTx_DATA_FRETSC_MASK
11356#define LPUARTx_DATA_PARITYE_MASK (0x4000U)
11357#define LPUARTx_DATA_PARITYE_SHIFT (14U)
11358#define LPUARTx_DATA_PARITYE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_PARITYE_SHIFT)) & LPUARTx_DATA_PARITYE_MASK)
11359#define LPUARTx_DATA_PARITYE LPUARTx_DATA_PARITYE_MASK
11360#define LPUARTx_DATA_NOISY_MASK (0x8000U)
11361#define LPUARTx_DATA_NOISY_SHIFT (15U)
11362#define LPUARTx_DATA_NOISY_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_DATA_NOISY_SHIFT)) & LPUARTx_DATA_NOISY_MASK)
11363#define LPUARTx_DATA_NOISY LPUARTx_DATA_NOISY_MASK
11364
11365/*! @name MATCH - LPUART Match Address Register */
11366#define LPUARTx_MATCH_MA1_MASK (0x3FFU)
11367#define LPUARTx_MATCH_MA1_SHIFT (0U)
11368#define LPUARTx_MATCH_MA1_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MATCH_MA1_SHIFT)) & LPUARTx_MATCH_MA1_MASK)
11369#define LPUARTx_MATCH_MA1 LPUARTx_MATCH_MA1_MASK
11370#define LPUARTx_MATCH_MA2_MASK (0x3FF0000U)
11371#define LPUARTx_MATCH_MA2_SHIFT (16U)
11372#define LPUARTx_MATCH_MA2_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MATCH_MA2_SHIFT)) & LPUARTx_MATCH_MA2_MASK)
11373#define LPUARTx_MATCH_MA2 LPUARTx_MATCH_MA2_MASK
11374
11375/*! @name MODIR - LPUART Modem IrDA Register */
11376#define LPUARTx_MODIR_TXCTSE_MASK (0x1U)
11377#define LPUARTx_MODIR_TXCTSE_SHIFT (0U)
11378#define LPUARTx_MODIR_TXCTSE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MODIR_TXCTSE_SHIFT)) & LPUARTx_MODIR_TXCTSE_MASK)
11379#define LPUARTx_MODIR_TXCTSE LPUARTx_MODIR_TXCTSE_MASK
11380#define LPUARTx_MODIR_TXRTSE_MASK (0x2U)
11381#define LPUARTx_MODIR_TXRTSE_SHIFT (1U)
11382#define LPUARTx_MODIR_TXRTSE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MODIR_TXRTSE_SHIFT)) & LPUARTx_MODIR_TXRTSE_MASK)
11383#define LPUARTx_MODIR_TXRTSE LPUARTx_MODIR_TXRTSE_MASK
11384#define LPUARTx_MODIR_TXRTSPOL_MASK (0x4U)
11385#define LPUARTx_MODIR_TXRTSPOL_SHIFT (2U)
11386#define LPUARTx_MODIR_TXRTSPOL_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MODIR_TXRTSPOL_SHIFT)) & LPUARTx_MODIR_TXRTSPOL_MASK)
11387#define LPUARTx_MODIR_TXRTSPOL LPUARTx_MODIR_TXRTSPOL_MASK
11388#define LPUARTx_MODIR_RXRTSE_MASK (0x8U)
11389#define LPUARTx_MODIR_RXRTSE_SHIFT (3U)
11390#define LPUARTx_MODIR_RXRTSE_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MODIR_RXRTSE_SHIFT)) & LPUARTx_MODIR_RXRTSE_MASK)
11391#define LPUARTx_MODIR_RXRTSE LPUARTx_MODIR_RXRTSE_MASK
11392#define LPUARTx_MODIR_TXCTSC_MASK (0x10U)
11393#define LPUARTx_MODIR_TXCTSC_SHIFT (4U)
11394#define LPUARTx_MODIR_TXCTSC_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MODIR_TXCTSC_SHIFT)) & LPUARTx_MODIR_TXCTSC_MASK)
11395#define LPUARTx_MODIR_TXCTSC LPUARTx_MODIR_TXCTSC_MASK
11396#define LPUARTx_MODIR_TXCTSSRC_MASK (0x20U)
11397#define LPUARTx_MODIR_TXCTSSRC_SHIFT (5U)
11398#define LPUARTx_MODIR_TXCTSSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MODIR_TXCTSSRC_SHIFT)) & LPUARTx_MODIR_TXCTSSRC_MASK)
11399#define LPUARTx_MODIR_TXCTSSRC LPUARTx_MODIR_TXCTSSRC_MASK
11400#define LPUARTx_MODIR_TNP_MASK (0x30000U)
11401#define LPUARTx_MODIR_TNP_SHIFT (16U)
11402#define LPUARTx_MODIR_TNP_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MODIR_TNP_SHIFT)) & LPUARTx_MODIR_TNP_MASK)
11403#define LPUARTx_MODIR_TNP LPUARTx_MODIR_TNP_MASK
11404#define LPUARTx_MODIR_IREN_MASK (0x40000U)
11405#define LPUARTx_MODIR_IREN_SHIFT (18U)
11406#define LPUARTx_MODIR_IREN_SET(x) (((uint32_t)(((uint32_t)(x)) << LPUARTx_MODIR_IREN_SHIFT)) & LPUARTx_MODIR_IREN_MASK)
11407#define LPUARTx_MODIR_IREN LPUARTx_MODIR_IREN_MASK
11408
11409
11410/*!
11411 * @}
11412 */ /* end of group LPUARTx_Register_Masks */
11413
11414
11415/* LPUART - Peripheral instance base addresses */
11416/** Peripheral LPUART0 base address */
11417#define LPUART0_BASE (0x400C4000u)
11418/** Peripheral LPUART0 base pointer */
11419#define LPUART0 ((LPUART_TypeDef *)LPUART0_BASE)
11420/** Array initializer of LPUART peripheral base addresses */
11421#define LPUARTx_BASE_ADDRS { LPUART0_BASE }
11422/** Array initializer of LPUART peripheral base pointers */
11423#define LPUARTx_BASE_PTRS { LPUART0 }
11424/** Interrupt vectors for the LPUART peripheral type */
11425#define LPUARTx_RX_TX_IRQS { LPUART0_IRQn }
11426#define LPUARTx_ERR_IRQS { LPUART0_IRQn }
11427
11428/*!
11429 * @}
11430 */ /* end of group LPUARTx_Peripheral_Access_Layer */
11431
11432
11433/* ----------------------------------------------------------------------------
11434 -- MCG Peripheral Access Layer
11435 ---------------------------------------------------------------------------- */
11436
11437/*!
11438 * @addtogroup MCG_Peripheral_Access_Layer MCG Peripheral Access Layer
11439 * @{
11440 */
11441
11442/** MCG - Register Layout Typedef */
11443typedef struct {
11444 __IO uint8_t C1; /**< MCG Control 1 Register, offset: 0x0 */
11445 __IO uint8_t C2; /**< MCG Control 2 Register, offset: 0x1 */
11446 __IO uint8_t C3; /**< MCG Control 3 Register, offset: 0x2 */
11447 __IO uint8_t C4; /**< MCG Control 4 Register, offset: 0x3 */
11448 __IO uint8_t C5; /**< MCG Control 5 Register, offset: 0x4 */
11449 __IO uint8_t C6; /**< MCG Control 6 Register, offset: 0x5 */
11450 __IO uint8_t S; /**< MCG Status Register, offset: 0x6 */
11451 uint8_t RESERVED_0[1];
11452 __IO uint8_t SC; /**< MCG Status and Control Register, offset: 0x8 */
11453 uint8_t RESERVED_1[1];
11454 __IO uint8_t ATCVH; /**< MCG Auto Trim Compare Value High Register, offset: 0xA */
11455 __IO uint8_t ATCVL; /**< MCG Auto Trim Compare Value Low Register, offset: 0xB */
11456 __IO uint8_t C7; /**< MCG Control 7 Register, offset: 0xC */
11457 __IO uint8_t C8; /**< MCG Control 8 Register, offset: 0xD */
11458 __IO uint8_t C9; /**< MCG Control 9 Register, offset: 0xE */
11459 uint8_t RESERVED_2[1];
11460 __IO uint8_t C11; /**< MCG Control 11 Register, offset: 0x10 */
11461 uint8_t RESERVED_3[1];
11462 __I uint8_t S2; /**< MCG Status 2 Register, offset: 0x12 */
11463} MCG_TypeDef;
11464
11465/* ----------------------------------------------------------------------------
11466 -- MCG Register Masks
11467 ---------------------------------------------------------------------------- */
11468
11469/*!
11470 * @addtogroup MCG_Register_Masks MCG Register Masks
11471 * @{
11472 */
11473
11474/*! @name C1 - MCG Control 1 Register */
11475#define MCG_C1_IREFSTEN_MASK (0x1U)
11476#define MCG_C1_IREFSTEN_SHIFT (0U)
11477#define MCG_C1_IREFSTEN_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_IREFSTEN_SHIFT)) & MCG_C1_IREFSTEN_MASK)
11478#define MCG_C1_IREFSTEN MCG_C1_IREFSTEN_MASK
11479#define MCG_C1_IRCLKEN_MASK (0x2U)
11480#define MCG_C1_IRCLKEN_SHIFT (1U)
11481#define MCG_C1_IRCLKEN_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_IRCLKEN_SHIFT)) & MCG_C1_IRCLKEN_MASK)
11482#define MCG_C1_IRCLKEN MCG_C1_IRCLKEN_SET(1)
11483#define MCG_C1_IREFS_MASK (0x4U)
11484#define MCG_C1_IREFS_SHIFT (2U)
11485#define MCG_C1_IREFS_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_IREFS_SHIFT)) & MCG_C1_IREFS_MASK)
11486#define MCG_C1_IREFS MCG_C1_IREFS_MASK
11487#define MCG_C1_FRDIV_MASK (0x38U)
11488#define MCG_C1_FRDIV_SHIFT (3U)
11489#define MCG_C1_FRDIV_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_FRDIV_SHIFT)) & MCG_C1_FRDIV_MASK)
11490#define MCG_C1_FRDIV MCG_C1_FRDIV_MASK
11491#define MCG_C1_CLKS_MASK (0xC0U)
11492#define MCG_C1_CLKS_SHIFT (6U)
11493#define MCG_C1_CLKS_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_CLKS_SHIFT)) & MCG_C1_CLKS_MASK)
11494#define MCG_C1_CLKS MCG_C1_CLKS_MASK
11495
11496/*! @name C2 - MCG Control 2 Register */
11497#define MCG_C2_IRCS_MASK (0x1U)
11498#define MCG_C2_IRCS_SHIFT (0U)
11499#define MCG_C2_IRCS_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_IRCS_SHIFT)) & MCG_C2_IRCS_MASK)
11500#define MCG_C2_IRCS MCG_C2_IRCS_SET(1)
11501#define MCG_C2_LP_MASK (0x2U)
11502#define MCG_C2_LP_SHIFT (1U)
11503#define MCG_C2_LP_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_LP_SHIFT)) & MCG_C2_LP_MASK)
11504#define MCG_C2_LP MCG_C2_LP_MASK
11505#define MCG_C2_EREFS_MASK (0x4U)
11506#define MCG_C2_EREFS_SHIFT (2U)
11507#define MCG_C2_EREFS_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_EREFS_SHIFT)) & MCG_C2_EREFS_MASK)
11508#define MCG_C2_EREFS MCG_C2_EREFS_SET(1)
11509#define MCG_C2_EREFS0 MCG_C2_EREFS_SET(1)
11510#define MCG_C2_HGO_MASK (0x8U)
11511#define MCG_C2_HGO_SHIFT (3U)
11512#define MCG_C2_HGO_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_HGO_SHIFT)) & MCG_C2_HGO_MASK)
11513#define MCG_C2_HGO MCG_C2_HGO_MASK
11514#define MCG_C2_RANGE_MASK (0x30U)
11515#define MCG_C2_RANGE_SHIFT (4U)
11516#define MCG_C2_RANGE_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_RANGE_SHIFT)) & MCG_C2_RANGE_MASK)
11517#define MCG_C2_RANGE MCG_C2_RANGE_MASK
11518#define MCG_C2_FCFTRIM_MASK (0x40U)
11519#define MCG_C2_FCFTRIM_SHIFT (6U)
11520#define MCG_C2_FCFTRIM_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_FCFTRIM_SHIFT)) & MCG_C2_FCFTRIM_MASK)
11521#define MCG_C2_FCFTRIM MCG_C2_FCFTRIM_MASK
11522#define MCG_C2_LOCRE0_MASK (0x80U)
11523#define MCG_C2_LOCRE0_SHIFT (7U)
11524#define MCG_C2_LOCRE0_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_LOCRE0_SHIFT)) & MCG_C2_LOCRE0_MASK)
11525#define MCG_C2_LOCRE0 MCG_C2_LOCRE0_SET(1)
11526
11527/*! @name C3 - MCG Control 3 Register */
11528#define MCG_C3_SCTRIM_MASK (0xFFU)
11529#define MCG_C3_SCTRIM_SHIFT (0U)
11530#define MCG_C3_SCTRIM_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C3_SCTRIM_SHIFT)) & MCG_C3_SCTRIM_MASK)
11531#define MCG_C3_SCTRIM MCG_C3_SCTRIM_MASK
11532
11533/*! @name C4 - MCG Control 4 Register */
11534#define MCG_C4_SCFTRIM_MASK (0x1U)
11535#define MCG_C4_SCFTRIM_SHIFT (0U)
11536#define MCG_C4_SCFTRIM_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_SCFTRIM_SHIFT)) & MCG_C4_SCFTRIM_MASK)
11537#define MCG_C4_SCFTRIM MCG_C4_SCFTRIM_MASK
11538#define MCG_C4_FCTRIM_MASK (0x1EU)
11539#define MCG_C4_FCTRIM_SHIFT (1U)
11540#define MCG_C4_FCTRIM_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_FCTRIM_SHIFT)) & MCG_C4_FCTRIM_MASK)
11541#define MCG_C4_FCTRIM MCG_C4_FCTRIM_MASK
11542#define MCG_C4_DRST_DRS_MASK (0x60U)
11543#define MCG_C4_DRST_DRS_SHIFT (5U)
11544#define MCG_C4_DRST_DRS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_DRST_DRS_SHIFT)) & MCG_C4_DRST_DRS_MASK)
11545#define MCG_C4_DMX32_MASK (0x80U)
11546#define MCG_C4_DMX32_SHIFT (7U)
11547#define MCG_C4_DMX32_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_DMX32_SHIFT)) & MCG_C4_DMX32_MASK)
11548#define MCG_C4_DMX32 MCG_C4_DMX32_SET(1)
11549
11550/*! @name C5 - MCG Control 5 Register */
11551#define MCG_C5_PRDIV_MASK (0x7U)
11552#define MCG_C5_PRDIV_SHIFT (0U)
11553#define MCG_C5_PRDIV_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C5_PRDIV_SHIFT)) & MCG_C5_PRDIV_MASK)
11554#define MCG_C5_PRDIV MCG_C5_PRDIV_MASK
11555#define MCG_C5_PLLSTEN_MASK (0x20U)
11556#define MCG_C5_PLLSTEN_SHIFT (5U)
11557#define MCG_C5_PLLSTEN_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C5_PLLSTEN_SHIFT)) & MCG_C5_PLLSTEN_MASK)
11558#define MCG_C5_PLLSTEN MCG_C5_PLLSTEN_MASK
11559#define MCG_C5_PLLCLKEN_MASK (0x40U)
11560#define MCG_C5_PLLCLKEN_SHIFT (6U)
11561#define MCG_C5_PLLCLKEN_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C5_PLLCLKEN_SHIFT)) & MCG_C5_PLLCLKEN_MASK)
11562#define MCG_C5_PLLCLKEN MCG_C5_PLLCLKEN_MASK
11563
11564/*! @name C6 - MCG Control 6 Register */
11565#define MCG_C6_VDIV_MASK (0x1FU)
11566#define MCG_C6_VDIV_SHIFT (0U)
11567#define MCG_C6_VDIV_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_VDIV_SHIFT)) & MCG_C6_VDIV_MASK)
11568#define MCG_C6_VDIV MCG_C6_VDIV_MASK
11569#define MCG_C6_CME0_MASK (0x20U)
11570#define MCG_C6_CME0_SHIFT (5U)
11571#define MCG_C6_CME0_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_CME0_SHIFT)) & MCG_C6_CME0_MASK)
11572#define MCG_C6_CME0 MCG_C6_CME0_MASK
11573#define MCG_C6_PLLS_MASK (0x40U)
11574#define MCG_C6_PLLS_SHIFT (6U)
11575#define MCG_C6_PLLS_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_PLLS_SHIFT)) & MCG_C6_PLLS_MASK)
11576#define MCG_C6_PLLS MCG_C6_PLLS_SET(1)
11577#define MCG_C6_LOLIE0_MASK (0x80U)
11578#define MCG_C6_LOLIE0_SHIFT (7U)
11579#define MCG_C6_LOLIE0_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_LOLIE0_SHIFT)) & MCG_C6_LOLIE0_MASK)
11580#define MCG_C6_LOLIE0 MCG_C6_LOLIE0_MASK
11581
11582/*! @name S - MCG Status Register */
11583#define MCG_S_IRCST_MASK (0x1U)
11584#define MCG_S_IRCST_SHIFT (0U)
11585#define MCG_S_IRCST_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_IRCST_SHIFT)) & MCG_S_IRCST_MASK)
11586#define MCG_S_IRCST MCG_S_IRCST_MASK
11587#define MCG_S_OSCINIT0_MASK (0x2U)
11588#define MCG_S_OSCINIT0_SHIFT (1U)
11589#define MCG_S_OSCINIT0_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_OSCINIT0_SHIFT)) & MCG_S_OSCINIT0_MASK)
11590#define MCG_S_OSCINIT0 MCG_S_OSCINIT0_SET(1)
11591#define MCG_S_CLKST_MASK (0xCU)
11592#define MCG_S_CLKST_SHIFT (2U)
11593#define MCG_S_CLKST_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_CLKST_SHIFT)) & MCG_S_CLKST_MASK)
11594#define MCG_S_CLKST MCG_S_CLKST_MASK
11595#define MCG_S_CLKST_PLL MCG_S_CLKST_SET(3) /*!< Output of the PLL is selected */
11596#define MCG_S_IREFST_MASK (0x10U)
11597#define MCG_S_IREFST_SHIFT (4U)
11598#define MCG_S_IREFST_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_IREFST_SHIFT)) & MCG_S_IREFST_MASK)
11599#define MCG_S_IREFST MCG_S_IREFST_SET(1)
11600#define MCG_S_PLLST_MASK (0x20U)
11601#define MCG_S_PLLST_SHIFT (5U)
11602#define MCG_S_PLLST_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_PLLST_SHIFT)) & MCG_S_PLLST_MASK)
11603#define MCG_S_PLLST MCG_S_PLLST_SET(1)
11604#define MCG_S_LOCK0_MASK (0x40U)
11605#define MCG_S_LOCK0_SHIFT (6U)
11606#define MCG_S_LOCK0_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_LOCK0_SHIFT)) & MCG_S_LOCK0_MASK)
11607#define MCG_S_LOCK0 MCG_S_LOCK0_SET(1)
11608#define MCG_S_LOLS0_MASK (0x80U)
11609#define MCG_S_LOLS0_SHIFT (7U)
11610#define MCG_S_LOLS0_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_LOLS0_SHIFT)) & MCG_S_LOLS0_MASK)
11611#define MCG_S_LOLS0 MCG_S_LOLS0_MASK
11612
11613/*! @name SC - MCG Status and Control Register */
11614#define MCG_SC_LOCS0_MASK (0x1U)
11615#define MCG_SC_LOCS0_SHIFT (0U)
11616#define MCG_SC_LOCS0_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_LOCS0_SHIFT)) & MCG_SC_LOCS0_MASK)
11617#define MCG_SC_LOCS0 MCG_SC_LOCS0_MASK
11618#define MCG_SC_FCRDIV_MASK (0xEU)
11619#define MCG_SC_FCRDIV_SHIFT (1U)
11620#define MCG_SC_FCRDIV_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_FCRDIV_SHIFT)) & MCG_SC_FCRDIV_MASK)
11621#define MCG_SC_FCRDIV MCG_SC_FCRDIV_MASK
11622#define MCG_SC_FLTPRSRV_MASK (0x10U)
11623#define MCG_SC_FLTPRSRV_SHIFT (4U)
11624#define MCG_SC_FLTPRSRV_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_FLTPRSRV_SHIFT)) & MCG_SC_FLTPRSRV_MASK)
11625#define MCG_SC_FLTPRSRV MCG_SC_FLTPRSRV_MASK
11626#define MCG_SC_ATMF_MASK (0x20U)
11627#define MCG_SC_ATMF_SHIFT (5U)
11628#define MCG_SC_ATMF_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_ATMF_SHIFT)) & MCG_SC_ATMF_MASK)
11629#define MCG_SC_ATMF MCG_SC_ATMF_MASK
11630#define MCG_SC_ATMS_MASK (0x40U)
11631#define MCG_SC_ATMS_SHIFT (6U)
11632#define MCG_SC_ATMS_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_ATMS_SHIFT)) & MCG_SC_ATMS_MASK)
11633#define MCG_SC_ATMS MCG_SC_ATMS_MASK
11634#define MCG_SC_ATME_MASK (0x80U)
11635#define MCG_SC_ATME_SHIFT (7U)
11636#define MCG_SC_ATME_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_ATME_SHIFT)) & MCG_SC_ATME_MASK)
11637#define MCG_SC_ATME MCG_SC_ATME_MASK
11638
11639/*! @name ATCVH - MCG Auto Trim Compare Value High Register */
11640#define MCG_ATCVH_ATCVH_MASK (0xFFU)
11641#define MCG_ATCVH_ATCVH_SHIFT (0U)
11642#define MCG_ATCVH_ATCVH_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_ATCVH_ATCVH_SHIFT)) & MCG_ATCVH_ATCVH_MASK)
11643#define MCG_ATCVH_ATCVH MCG_ATCVH_ATCVH_MASK
11644
11645/*! @name ATCVL - MCG Auto Trim Compare Value Low Register */
11646#define MCG_ATCVL_ATCVL_MASK (0xFFU)
11647#define MCG_ATCVL_ATCVL_SHIFT (0U)
11648#define MCG_ATCVL_ATCVL_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_ATCVL_ATCVL_SHIFT)) & MCG_ATCVL_ATCVL_MASK)
11649#define MCG_ATCVL_ATCVL MCG_ATCVL_ATCVL_MASK
11650
11651/*! @name C7 - MCG Control 7 Register */
11652#define MCG_C7_OSCSEL_MASK (0x3U)
11653#define MCG_C7_OSCSEL_SHIFT (0U)
11654#define MCG_C7_OSCSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C7_OSCSEL_SHIFT)) & MCG_C7_OSCSEL_MASK)
11655#define MCG_C7_OSCSEL MCG_C7_OSCSEL_MASK
11656
11657/*! @name C8 - MCG Control 8 Register */
11658#define MCG_C8_LOCS1_MASK (0x1U)
11659#define MCG_C8_LOCS1_SHIFT (0U)
11660#define MCG_C8_LOCS1_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_LOCS1_SHIFT)) & MCG_C8_LOCS1_MASK)
11661#define MCG_C8_LOCS1 MCG_C8_LOCS1_MASK
11662#define MCG_C8_CME1_MASK (0x20U)
11663#define MCG_C8_CME1_SHIFT (5U)
11664#define MCG_C8_CME1_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_CME1_SHIFT)) & MCG_C8_CME1_MASK)
11665#define MCG_C8_CME1 MCG_C8_CME1_MASK
11666#define MCG_C8_LOLRE_MASK (0x40U)
11667#define MCG_C8_LOLRE_SHIFT (6U)
11668#define MCG_C8_LOLRE_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_LOLRE_SHIFT)) & MCG_C8_LOLRE_MASK)
11669#define MCG_C8_LOLRE MCG_C8_LOLRE_MASK
11670#define MCG_C8_LOCRE1_MASK (0x80U)
11671#define MCG_C8_LOCRE1_SHIFT (7U)
11672#define MCG_C8_LOCRE1_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_LOCRE1_SHIFT)) & MCG_C8_LOCRE1_MASK)
11673#define MCG_C8_LOCRE1 MCG_C8_LOCRE1_MASK
11674
11675/*! @name C9 - MCG Control 9 Register */
11676#define MCG_C9_EXT_PLL_LOCS_MASK (0x1U)
11677#define MCG_C9_EXT_PLL_LOCS_SHIFT (0U)
11678#define MCG_C9_EXT_PLL_LOCS_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C9_EXT_PLL_LOCS_SHIFT)) & MCG_C9_EXT_PLL_LOCS_MASK)
11679#define MCG_C9_EXT_PLL_LOCS MCG_C9_EXT_PLL_LOCS_MASK
11680#define MCG_C9_PLL_LOCRE_MASK (0x10U)
11681#define MCG_C9_PLL_LOCRE_SHIFT (4U)
11682#define MCG_C9_PLL_LOCRE_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C9_PLL_LOCRE_SHIFT)) & MCG_C9_PLL_LOCRE_MASK)
11683#define MCG_C9_PLL_LOCRE MCG_C9_PLL_LOCRE_MASK
11684#define MCG_C9_PLL_CME_MASK (0x20U)
11685#define MCG_C9_PLL_CME_SHIFT (5U)
11686#define MCG_C9_PLL_CME_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C9_PLL_CME_SHIFT)) & MCG_C9_PLL_CME_MASK)
11687#define MCG_C9_PLL_CME MCG_C9_PLL_CME_MASK
11688
11689/*! @name C11 - MCG Control 11 Register */
11690#define MCG_C11_PLLCS_MASK (0x10U)
11691#define MCG_C11_PLLCS_SHIFT (4U)
11692#define MCG_C11_PLLCS_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_C11_PLLCS_SHIFT)) & MCG_C11_PLLCS_MASK)
11693#define MCG_C11_PLLCS MCG_C11_PLLCS_MASK
11694
11695/*! @name S2 - MCG Status 2 Register */
11696#define MCG_S2_PLLCST_MASK (0x10U)
11697#define MCG_S2_PLLCST_SHIFT (4U)
11698#define MCG_S2_PLLCST_SET(x) (((uint8_t)(((uint8_t)(x)) << MCG_S2_PLLCST_SHIFT)) & MCG_S2_PLLCST_MASK)
11699#define MCG_S2_PLLCST MCG_S2_PLLCST_MASK
11700
11701
11702/*!
11703 * @}
11704 */ /* end of group MCG_Register_Masks */
11705
11706
11707/* MCG - Peripheral instance base addresses */
11708/** Peripheral MCG base address */
11709#define MCG_BASE (0x40064000u)
11710/** Peripheral MCG base pointer */
11711#define MCG ((MCG_TypeDef *)MCG_BASE)
11712/** Array initializer of MCG peripheral base addresses */
11713#define MCG_BASE_ADDRS { MCG_BASE }
11714/** Array initializer of MCG peripheral base pointers */
11715#define MCG_BASE_PTRS { MCG }
11716/* MCG C5[PLLCLKEN0] backward compatibility */
11717#define MCG_C5_PLLCLKEN0_MASK (MCG_C5_PLLCLKEN_MASK)
11718#define MCG_C5_PLLCLKEN0_SHIFT (MCG_C5_PLLCLKEN_SHIFT)
11719#define MCG_C5_PLLCLKEN0_WIDTH (MCG_C5_PLLCLKEN_WIDTH)
11720#define MCG_C5_PLLCLKEN0_SET(x) (MCG_C5_PLLCLKEN_SET(x))
11721#define MCG_C5_PLLCLKEN0 MCG_C5_PLLCLKEN0_MASK
11722
11723/* MCG C5[PLLSTEN0] backward compatibility */
11724#define MCG_C5_PLLSTEN0_MASK (MCG_C5_PLLSTEN_MASK)
11725#define MCG_C5_PLLSTEN0_SHIFT (MCG_C5_PLLSTEN_SHIFT)
11726#define MCG_C5_PLLSTEN0_WIDTH (MCG_C5_PLLSTEN_WIDTH)
11727#define MCG_C5_PLLSTEN0_SET(x) (MCG_C5_PLLSTEN_SET(x))
11728#define MCG_C5_PLLSTEN0 MCG_C5_PLLSTEN0_MASK
11729
11730/* MCG C5[PRDIV0] backward compatibility */
11731#define MCG_C5_PRDIV0_MASK (MCG_C5_PRDIV_MASK)
11732#define MCG_C5_PRDIV0_SHIFT (MCG_C5_PRDIV_SHIFT)
11733#define MCG_C5_PRDIV0_WIDTH (MCG_C5_PRDIV_WIDTH)
11734#define MCG_C5_PRDIV0_SET(x) (MCG_C5_PRDIV_SET(x))
11735#define MCG_C5_PRDIV0 MCG_C5_PRDIV0_MASK
11736
11737/* MCG C6[VDIV0] backward compatibility */
11738#define MCG_C6_VDIV0_MASK (MCG_C6_VDIV_MASK)
11739#define MCG_C6_VDIV0_SHIFT (MCG_C6_VDIV_SHIFT)
11740#define MCG_C6_VDIV0_WIDTH (MCG_C6_VDIV_WIDTH)
11741#define MCG_C6_VDIV0_SET(x) (MCG_C6_VDIV_SET(x))
11742#define MCG_C6_VDIV0 MCG_C6_VDIV0_MASK
11743
11744
11745/*!
11746 * @}
11747 */ /* end of group MCG_Peripheral_Access_Layer */
11748
11749
11750/* ----------------------------------------------------------------------------
11751 -- MCM Peripheral Access Layer
11752 ---------------------------------------------------------------------------- */
11753
11754/*!
11755 * @addtogroup MCM_Peripheral_Access_Layer MCM Peripheral Access Layer
11756 * @{
11757 */
11758
11759/** MCM - Register Layout Typedef */
11760typedef struct {
11761 uint8_t RESERVED_0[8];
11762 __I uint16_t PLASC; /**< Crossbar Switch (AXBS) Slave Configuration, offset: 0x8 */
11763 __I uint16_t PLAMC; /**< Crossbar Switch (AXBS) Master Configuration, offset: 0xA */
11764 __IO uint32_t CR; /**< Control Register, offset: 0xC */
11765 __IO uint32_t ISCR; /**< Interrupt Status Register, offset: 0x10 */
11766 __IO uint32_t ETBCC; /**< ETB Counter Control register, offset: 0x14 */
11767 __IO uint32_t ETBRL; /**< ETB Reload register, offset: 0x18 */
11768 __I uint32_t ETBCNT; /**< ETB Counter Value register, offset: 0x1C */
11769 __I uint32_t FADR; /**< Fault address register, offset: 0x20 */
11770 __I uint32_t FATR; /**< Fault attributes register, offset: 0x24 */
11771 __I uint32_t FDR; /**< Fault data register, offset: 0x28 */
11772 uint8_t RESERVED_1[4];
11773 __IO uint32_t PID; /**< Process ID register, offset: 0x30 */
11774 uint8_t RESERVED_2[12];
11775 __IO uint32_t CPO; /**< Compute Operation Control Register, offset: 0x40 */
11776} MCM_TypeDef;
11777
11778/* ----------------------------------------------------------------------------
11779 -- MCM Register Masks
11780 ---------------------------------------------------------------------------- */
11781
11782/*!
11783 * @addtogroup MCM_Register_Masks MCM Register Masks
11784 * @{
11785 */
11786
11787/*! @name PLASC - Crossbar Switch (AXBS) Slave Configuration */
11788#define MCM_PLASC_ASC_MASK (0xFFU)
11789#define MCM_PLASC_ASC_SHIFT (0U)
11790#define MCM_PLASC_ASC_SET(x) (((uint16_t)(((uint16_t)(x)) << MCM_PLASC_ASC_SHIFT)) & MCM_PLASC_ASC_MASK)
11791#define MCM_PLASC_ASC MCM_PLASC_ASC_MASK
11792
11793/*! @name PLAMC - Crossbar Switch (AXBS) Master Configuration */
11794#define MCM_PLAMC_AMC_MASK (0xFFU)
11795#define MCM_PLAMC_AMC_SHIFT (0U)
11796#define MCM_PLAMC_AMC_SET(x) (((uint16_t)(((uint16_t)(x)) << MCM_PLAMC_AMC_SHIFT)) & MCM_PLAMC_AMC_MASK)
11797#define MCM_PLAMC_AMC MCM_PLAMC_AMC_MASK
11798
11799/*! @name CR - Control Register */
11800#define MCM_CR_SRAMUAP_MASK (0x3000000U)
11801#define MCM_CR_SRAMUAP_SHIFT (24U)
11802#define MCM_CR_SRAMUAP_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_CR_SRAMUAP_SHIFT)) & MCM_CR_SRAMUAP_MASK)
11803#define MCM_CR_SRAMUAP MCM_CR_SRAMUAP_MASK
11804#define MCM_CR_SRAMUWP_MASK (0x4000000U)
11805#define MCM_CR_SRAMUWP_SHIFT (26U)
11806#define MCM_CR_SRAMUWP_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_CR_SRAMUWP_SHIFT)) & MCM_CR_SRAMUWP_MASK)
11807#define MCM_CR_SRAMUWP MCM_CR_SRAMUWP_MASK
11808#define MCM_CR_SRAMLAP_MASK (0x30000000U)
11809#define MCM_CR_SRAMLAP_SHIFT (28U)
11810#define MCM_CR_SRAMLAP_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_CR_SRAMLAP_SHIFT)) & MCM_CR_SRAMLAP_MASK)
11811#define MCM_CR_SRAMLAP MCM_CR_SRAMLAP_MASK
11812#define MCM_CR_SRAMLWP_MASK (0x40000000U)
11813#define MCM_CR_SRAMLWP_SHIFT (30U)
11814#define MCM_CR_SRAMLWP_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_CR_SRAMLWP_SHIFT)) & MCM_CR_SRAMLWP_MASK)
11815#define MCM_CR_SRAMLWP MCM_CR_SRAMLWP_MASK
11816
11817/*! @name ISCR - Interrupt Status Register */
11818#define MCM_ISCR_IRQ_MASK (0x2U)
11819#define MCM_ISCR_IRQ_SHIFT (1U)
11820#define MCM_ISCR_IRQ_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_IRQ_SHIFT)) & MCM_ISCR_IRQ_MASK)
11821#define MCM_ISCR_IRQ MCM_ISCR_IRQ_MASK
11822#define MCM_ISCR_NMI_MASK (0x4U)
11823#define MCM_ISCR_NMI_SHIFT (2U)
11824#define MCM_ISCR_NMI_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_NMI_SHIFT)) & MCM_ISCR_NMI_MASK)
11825#define MCM_ISCR_NMI MCM_ISCR_NMI_MASK
11826#define MCM_ISCR_DHREQ_MASK (0x8U)
11827#define MCM_ISCR_DHREQ_SHIFT (3U)
11828#define MCM_ISCR_DHREQ_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_DHREQ_SHIFT)) & MCM_ISCR_DHREQ_MASK)
11829#define MCM_ISCR_DHREQ MCM_ISCR_DHREQ_MASK
11830#define MCM_ISCR_FIOC_MASK (0x100U)
11831#define MCM_ISCR_FIOC_SHIFT (8U)
11832#define MCM_ISCR_FIOC_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FIOC_SHIFT)) & MCM_ISCR_FIOC_MASK)
11833#define MCM_ISCR_FIOC MCM_ISCR_FIOC_MASK
11834#define MCM_ISCR_FDZC_MASK (0x200U)
11835#define MCM_ISCR_FDZC_SHIFT (9U)
11836#define MCM_ISCR_FDZC_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FDZC_SHIFT)) & MCM_ISCR_FDZC_MASK)
11837#define MCM_ISCR_FDZC MCM_ISCR_FDZC_MASK
11838#define MCM_ISCR_FOFC_MASK (0x400U)
11839#define MCM_ISCR_FOFC_SHIFT (10U)
11840#define MCM_ISCR_FOFC_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FOFC_SHIFT)) & MCM_ISCR_FOFC_MASK)
11841#define MCM_ISCR_FOFC MCM_ISCR_FOFC_MASK
11842#define MCM_ISCR_FUFC_MASK (0x800U)
11843#define MCM_ISCR_FUFC_SHIFT (11U)
11844#define MCM_ISCR_FUFC_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FUFC_SHIFT)) & MCM_ISCR_FUFC_MASK)
11845#define MCM_ISCR_FUFC MCM_ISCR_FUFC_MASK
11846#define MCM_ISCR_FIXC_MASK (0x1000U)
11847#define MCM_ISCR_FIXC_SHIFT (12U)
11848#define MCM_ISCR_FIXC_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FIXC_SHIFT)) & MCM_ISCR_FIXC_MASK)
11849#define MCM_ISCR_FIXC MCM_ISCR_FIXC_MASK
11850#define MCM_ISCR_FIDC_MASK (0x8000U)
11851#define MCM_ISCR_FIDC_SHIFT (15U)
11852#define MCM_ISCR_FIDC_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FIDC_SHIFT)) & MCM_ISCR_FIDC_MASK)
11853#define MCM_ISCR_FIDC MCM_ISCR_FIDC_MASK
11854#define MCM_ISCR_FIOCE_MASK (0x1000000U)
11855#define MCM_ISCR_FIOCE_SHIFT (24U)
11856#define MCM_ISCR_FIOCE_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FIOCE_SHIFT)) & MCM_ISCR_FIOCE_MASK)
11857#define MCM_ISCR_FIOCE MCM_ISCR_FIOCE_MASK
11858#define MCM_ISCR_FDZCE_MASK (0x2000000U)
11859#define MCM_ISCR_FDZCE_SHIFT (25U)
11860#define MCM_ISCR_FDZCE_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FDZCE_SHIFT)) & MCM_ISCR_FDZCE_MASK)
11861#define MCM_ISCR_FDZCE MCM_ISCR_FDZCE_MASK
11862#define MCM_ISCR_FOFCE_MASK (0x4000000U)
11863#define MCM_ISCR_FOFCE_SHIFT (26U)
11864#define MCM_ISCR_FOFCE_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FOFCE_SHIFT)) & MCM_ISCR_FOFCE_MASK)
11865#define MCM_ISCR_FOFCE MCM_ISCR_FOFCE_MASK
11866#define MCM_ISCR_FUFCE_MASK (0x8000000U)
11867#define MCM_ISCR_FUFCE_SHIFT (27U)
11868#define MCM_ISCR_FUFCE_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FUFCE_SHIFT)) & MCM_ISCR_FUFCE_MASK)
11869#define MCM_ISCR_FUFCE MCM_ISCR_FUFCE_MASK
11870#define MCM_ISCR_FIXCE_MASK (0x10000000U)
11871#define MCM_ISCR_FIXCE_SHIFT (28U)
11872#define MCM_ISCR_FIXCE_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FIXCE_SHIFT)) & MCM_ISCR_FIXCE_MASK)
11873#define MCM_ISCR_FIXCE MCM_ISCR_FIXCE_MASK
11874#define MCM_ISCR_FIDCE_MASK (0x80000000U)
11875#define MCM_ISCR_FIDCE_SHIFT (31U)
11876#define MCM_ISCR_FIDCE_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ISCR_FIDCE_SHIFT)) & MCM_ISCR_FIDCE_MASK)
11877#define MCM_ISCR_FIDCE MCM_ISCR_FIDCE_MASK
11878
11879/*! @name ETBCC - ETB Counter Control register */
11880#define MCM_ETBCC_CNTEN_MASK (0x1U)
11881#define MCM_ETBCC_CNTEN_SHIFT (0U)
11882#define MCM_ETBCC_CNTEN_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBCC_CNTEN_SHIFT)) & MCM_ETBCC_CNTEN_MASK)
11883#define MCM_ETBCC_CNTEN MCM_ETBCC_CNTEN_MASK
11884#define MCM_ETBCC_RSPT_MASK (0x6U)
11885#define MCM_ETBCC_RSPT_SHIFT (1U)
11886#define MCM_ETBCC_RSPT_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBCC_RSPT_SHIFT)) & MCM_ETBCC_RSPT_MASK)
11887#define MCM_ETBCC_RSPT MCM_ETBCC_RSPT_MASK
11888#define MCM_ETBCC_RLRQ_MASK (0x8U)
11889#define MCM_ETBCC_RLRQ_SHIFT (3U)
11890#define MCM_ETBCC_RLRQ_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBCC_RLRQ_SHIFT)) & MCM_ETBCC_RLRQ_MASK)
11891#define MCM_ETBCC_RLRQ MCM_ETBCC_RLRQ_MASK
11892#define MCM_ETBCC_ETDIS_MASK (0x10U)
11893#define MCM_ETBCC_ETDIS_SHIFT (4U)
11894#define MCM_ETBCC_ETDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBCC_ETDIS_SHIFT)) & MCM_ETBCC_ETDIS_MASK)
11895#define MCM_ETBCC_ETDIS MCM_ETBCC_ETDIS_MASK
11896#define MCM_ETBCC_ITDIS_MASK (0x20U)
11897#define MCM_ETBCC_ITDIS_SHIFT (5U)
11898#define MCM_ETBCC_ITDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBCC_ITDIS_SHIFT)) & MCM_ETBCC_ITDIS_MASK)
11899#define MCM_ETBCC_ITDIS MCM_ETBCC_ITDIS_MASK
11900
11901/*! @name ETBRL - ETB Reload register */
11902#define MCM_ETBRL_RELOAD_MASK (0x7FFU)
11903#define MCM_ETBRL_RELOAD_SHIFT (0U)
11904#define MCM_ETBRL_RELOAD_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBRL_RELOAD_SHIFT)) & MCM_ETBRL_RELOAD_MASK)
11905#define MCM_ETBRL_RELOAD MCM_ETBRL_RELOAD_MASK
11906
11907/*! @name ETBCNT - ETB Counter Value register */
11908#define MCM_ETBCNT_COUNTER_MASK (0x7FFU)
11909#define MCM_ETBCNT_COUNTER_SHIFT (0U)
11910#define MCM_ETBCNT_COUNTER_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBCNT_COUNTER_SHIFT)) & MCM_ETBCNT_COUNTER_MASK)
11911#define MCM_ETBCNT_COUNTER MCM_ETBCNT_COUNTER_MASK
11912
11913/*! @name FADR - Fault address register */
11914#define MCM_FADR_ADDRESS_MASK (0xFFFFFFFFU)
11915#define MCM_FADR_ADDRESS_SHIFT (0U)
11916#define MCM_FADR_ADDRESS_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_FADR_ADDRESS_SHIFT)) & MCM_FADR_ADDRESS_MASK)
11917#define MCM_FADR_ADDRESS MCM_FADR_ADDRESS_MASK
11918
11919/*! @name FATR - Fault attributes register */
11920#define MCM_FATR_BEDA_MASK (0x1U)
11921#define MCM_FATR_BEDA_SHIFT (0U)
11922#define MCM_FATR_BEDA_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_FATR_BEDA_SHIFT)) & MCM_FATR_BEDA_MASK)
11923#define MCM_FATR_BEDA MCM_FATR_BEDA_MASK
11924#define MCM_FATR_BEMD_MASK (0x2U)
11925#define MCM_FATR_BEMD_SHIFT (1U)
11926#define MCM_FATR_BEMD_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_FATR_BEMD_SHIFT)) & MCM_FATR_BEMD_MASK)
11927#define MCM_FATR_BEMD MCM_FATR_BEMD_MASK
11928#define MCM_FATR_BESZ_MASK (0x30U)
11929#define MCM_FATR_BESZ_SHIFT (4U)
11930#define MCM_FATR_BESZ_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_FATR_BESZ_SHIFT)) & MCM_FATR_BESZ_MASK)
11931#define MCM_FATR_BESZ MCM_FATR_BESZ_MASK
11932#define MCM_FATR_BEWT_MASK (0x80U)
11933#define MCM_FATR_BEWT_SHIFT (7U)
11934#define MCM_FATR_BEWT_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_FATR_BEWT_SHIFT)) & MCM_FATR_BEWT_MASK)
11935#define MCM_FATR_BEWT MCM_FATR_BEWT_MASK
11936#define MCM_FATR_BEMN_MASK (0xF00U)
11937#define MCM_FATR_BEMN_SHIFT (8U)
11938#define MCM_FATR_BEMN_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_FATR_BEMN_SHIFT)) & MCM_FATR_BEMN_MASK)
11939#define MCM_FATR_BEMN MCM_FATR_BEMN_MASK
11940#define MCM_FATR_BEOVR_MASK (0x80000000U)
11941#define MCM_FATR_BEOVR_SHIFT (31U)
11942#define MCM_FATR_BEOVR_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_FATR_BEOVR_SHIFT)) & MCM_FATR_BEOVR_MASK)
11943#define MCM_FATR_BEOVR MCM_FATR_BEOVR_MASK
11944
11945/*! @name FDR - Fault data register */
11946#define MCM_FDR_DATA_MASK (0xFFFFFFFFU)
11947#define MCM_FDR_DATA_SHIFT (0U)
11948#define MCM_FDR_DATA_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_FDR_DATA_SHIFT)) & MCM_FDR_DATA_MASK)
11949#define MCM_FDR_DATA MCM_FDR_DATA_MASK
11950
11951/*! @name PID - Process ID register */
11952#define MCM_PID_PID_MASK (0xFFU)
11953#define MCM_PID_PID_SHIFT (0U)
11954#define MCM_PID_PID_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_PID_PID_SHIFT)) & MCM_PID_PID_MASK)
11955#define MCM_PID_PID MCM_PID_PID_MASK
11956
11957/*! @name CPO - Compute Operation Control Register */
11958#define MCM_CPO_CPOREQ_MASK (0x1U)
11959#define MCM_CPO_CPOREQ_SHIFT (0U)
11960#define MCM_CPO_CPOREQ_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOREQ_SHIFT)) & MCM_CPO_CPOREQ_MASK)
11961#define MCM_CPO_CPOREQ MCM_CPO_CPOREQ_MASK
11962#define MCM_CPO_CPOACK_MASK (0x2U)
11963#define MCM_CPO_CPOACK_SHIFT (1U)
11964#define MCM_CPO_CPOACK_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOACK_SHIFT)) & MCM_CPO_CPOACK_MASK)
11965#define MCM_CPO_CPOACK MCM_CPO_CPOACK_MASK
11966#define MCM_CPO_CPOWOI_MASK (0x4U)
11967#define MCM_CPO_CPOWOI_SHIFT (2U)
11968#define MCM_CPO_CPOWOI_SET(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOWOI_SHIFT)) & MCM_CPO_CPOWOI_MASK)
11969#define MCM_CPO_CPOWOI MCM_CPO_CPOWOI_MASK
11970
11971
11972/*!
11973 * @}
11974 */ /* end of group MCM_Register_Masks */
11975
11976
11977/* MCM - Peripheral instance base addresses */
11978/** Peripheral MCM base address */
11979#define MCM_BASE (0xE0080000u)
11980/** Peripheral MCM base pointer */
11981#define MCM ((MCM_TypeDef *)MCM_BASE)
11982/** Array initializer of MCM peripheral base addresses */
11983#define MCM_BASE_ADDRS { MCM_BASE }
11984/** Array initializer of MCM peripheral base pointers */
11985#define MCM_BASE_PTRS { MCM }
11986/** Interrupt vectors for the MCM peripheral type */
11987#define MCM_IRQS { MCM_IRQn }
11988
11989/*!
11990 * @}
11991 */ /* end of group MCM_Peripheral_Access_Layer */
11992
11993
11994/* ----------------------------------------------------------------------------
11995 -- NV Peripheral Access Layer
11996 ---------------------------------------------------------------------------- */
11997
11998/*!
11999 * @addtogroup NV_Peripheral_Access_Layer NV Peripheral Access Layer
12000 * @{
12001 */
12002
12003/** NV - Register Layout Typedef */
12004typedef struct {
12005 __I uint8_t BACKKEY3; /**< Backdoor Comparison Key 3., offset: 0x0 */
12006 __I uint8_t BACKKEY2; /**< Backdoor Comparison Key 2., offset: 0x1 */
12007 __I uint8_t BACKKEY1; /**< Backdoor Comparison Key 1., offset: 0x2 */
12008 __I uint8_t BACKKEY0; /**< Backdoor Comparison Key 0., offset: 0x3 */
12009 __I uint8_t BACKKEY7; /**< Backdoor Comparison Key 7., offset: 0x4 */
12010 __I uint8_t BACKKEY6; /**< Backdoor Comparison Key 6., offset: 0x5 */
12011 __I uint8_t BACKKEY5; /**< Backdoor Comparison Key 5., offset: 0x6 */
12012 __I uint8_t BACKKEY4; /**< Backdoor Comparison Key 4., offset: 0x7 */
12013 __I uint8_t FPROT3; /**< Non-volatile P-Flash Protection 1 - Low Register, offset: 0x8 */
12014 __I uint8_t FPROT2; /**< Non-volatile P-Flash Protection 1 - High Register, offset: 0x9 */
12015 __I uint8_t FPROT1; /**< Non-volatile P-Flash Protection 0 - Low Register, offset: 0xA */
12016 __I uint8_t FPROT0; /**< Non-volatile P-Flash Protection 0 - High Register, offset: 0xB */
12017 __I uint8_t FSEC; /**< Non-volatile Flash Security Register, offset: 0xC */
12018 __I uint8_t FOPT; /**< Non-volatile Flash Option Register, offset: 0xD */
12019 __I uint8_t FEPROT; /**< Non-volatile EERAM Protection Register, offset: 0xE */
12020 __I uint8_t FDPROT; /**< Non-volatile D-Flash Protection Register, offset: 0xF */
12021} NV_TypeDef;
12022
12023/* ----------------------------------------------------------------------------
12024 -- NV Register Masks
12025 ---------------------------------------------------------------------------- */
12026
12027/*!
12028 * @addtogroup NV_Register_Masks NV Register Masks
12029 * @{
12030 */
12031
12032/*! @name BACKKEY3 - Backdoor Comparison Key 3. */
12033#define NV_BACKKEY3_KEY_MASK (0xFFU)
12034#define NV_BACKKEY3_KEY_SHIFT (0U)
12035#define NV_BACKKEY3_KEY_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY3_KEY_SHIFT)) & NV_BACKKEY3_KEY_MASK)
12036#define NV_BACKKEY3_KEY NV_BACKKEY3_KEY_MASK
12037
12038/*! @name BACKKEY2 - Backdoor Comparison Key 2. */
12039#define NV_BACKKEY2_KEY_MASK (0xFFU)
12040#define NV_BACKKEY2_KEY_SHIFT (0U)
12041#define NV_BACKKEY2_KEY_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY2_KEY_SHIFT)) & NV_BACKKEY2_KEY_MASK)
12042#define NV_BACKKEY2_KEY NV_BACKKEY2_KEY_MASK
12043
12044/*! @name BACKKEY1 - Backdoor Comparison Key 1. */
12045#define NV_BACKKEY1_KEY_MASK (0xFFU)
12046#define NV_BACKKEY1_KEY_SHIFT (0U)
12047#define NV_BACKKEY1_KEY_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY1_KEY_SHIFT)) & NV_BACKKEY1_KEY_MASK)
12048#define NV_BACKKEY1_KEY NV_BACKKEY1_KEY_MASK
12049
12050/*! @name BACKKEY0 - Backdoor Comparison Key 0. */
12051#define NV_BACKKEY0_KEY_MASK (0xFFU)
12052#define NV_BACKKEY0_KEY_SHIFT (0U)
12053#define NV_BACKKEY0_KEY_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY0_KEY_SHIFT)) & NV_BACKKEY0_KEY_MASK)
12054#define NV_BACKKEY0_KEY NV_BACKKEY0_KEY_MASK
12055
12056/*! @name BACKKEY7 - Backdoor Comparison Key 7. */
12057#define NV_BACKKEY7_KEY_MASK (0xFFU)
12058#define NV_BACKKEY7_KEY_SHIFT (0U)
12059#define NV_BACKKEY7_KEY_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY7_KEY_SHIFT)) & NV_BACKKEY7_KEY_MASK)
12060#define NV_BACKKEY7_KEY NV_BACKKEY7_KEY_MASK
12061
12062/*! @name BACKKEY6 - Backdoor Comparison Key 6. */
12063#define NV_BACKKEY6_KEY_MASK (0xFFU)
12064#define NV_BACKKEY6_KEY_SHIFT (0U)
12065#define NV_BACKKEY6_KEY_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY6_KEY_SHIFT)) & NV_BACKKEY6_KEY_MASK)
12066#define NV_BACKKEY6_KEY NV_BACKKEY6_KEY_MASK
12067
12068/*! @name BACKKEY5 - Backdoor Comparison Key 5. */
12069#define NV_BACKKEY5_KEY_MASK (0xFFU)
12070#define NV_BACKKEY5_KEY_SHIFT (0U)
12071#define NV_BACKKEY5_KEY_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY5_KEY_SHIFT)) & NV_BACKKEY5_KEY_MASK)
12072#define NV_BACKKEY5_KEY NV_BACKKEY5_KEY_MASK
12073
12074/*! @name BACKKEY4 - Backdoor Comparison Key 4. */
12075#define NV_BACKKEY4_KEY_MASK (0xFFU)
12076#define NV_BACKKEY4_KEY_SHIFT (0U)
12077#define NV_BACKKEY4_KEY_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY4_KEY_SHIFT)) & NV_BACKKEY4_KEY_MASK)
12078#define NV_BACKKEY4_KEY NV_BACKKEY4_KEY_MASK
12079
12080/*! @name FPROT3 - Non-volatile P-Flash Protection 1 - Low Register */
12081#define NV_FPROT3_PROT_MASK (0xFFU)
12082#define NV_FPROT3_PROT_SHIFT (0U)
12083#define NV_FPROT3_PROT_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT3_PROT_SHIFT)) & NV_FPROT3_PROT_MASK)
12084#define NV_FPROT3_PROT NV_FPROT3_PROT_MASK
12085
12086/*! @name FPROT2 - Non-volatile P-Flash Protection 1 - High Register */
12087#define NV_FPROT2_PROT_MASK (0xFFU)
12088#define NV_FPROT2_PROT_SHIFT (0U)
12089#define NV_FPROT2_PROT_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT2_PROT_SHIFT)) & NV_FPROT2_PROT_MASK)
12090#define NV_FPROT2_PROT NV_FPROT2_PROT_MASK
12091
12092/*! @name FPROT1 - Non-volatile P-Flash Protection 0 - Low Register */
12093#define NV_FPROT1_PROT_MASK (0xFFU)
12094#define NV_FPROT1_PROT_SHIFT (0U)
12095#define NV_FPROT1_PROT_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT1_PROT_SHIFT)) & NV_FPROT1_PROT_MASK)
12096#define NV_FPROT1_PROT NV_FPROT1_PROT_MASK
12097
12098/*! @name FPROT0 - Non-volatile P-Flash Protection 0 - High Register */
12099#define NV_FPROT0_PROT_MASK (0xFFU)
12100#define NV_FPROT0_PROT_SHIFT (0U)
12101#define NV_FPROT0_PROT_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT0_PROT_SHIFT)) & NV_FPROT0_PROT_MASK)
12102#define NV_FPROT0_PROT NV_FPROT0_PROT_MASK
12103
12104/*! @name FSEC - Non-volatile Flash Security Register */
12105#define NV_FSEC_SEC_MASK (0x3U)
12106#define NV_FSEC_SEC_SHIFT (0U)
12107#define NV_FSEC_SEC_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_SEC_SHIFT)) & NV_FSEC_SEC_MASK)
12108#define NV_FSEC_SEC NV_FSEC_SEC_MASK
12109#define NV_FSEC_FSLACC_MASK (0xCU)
12110#define NV_FSEC_FSLACC_SHIFT (2U)
12111#define NV_FSEC_FSLACC_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_FSLACC_SHIFT)) & NV_FSEC_FSLACC_MASK)
12112#define NV_FSEC_FSLACC NV_FSEC_FSLACC_MASK
12113#define NV_FSEC_MEEN_MASK (0x30U)
12114#define NV_FSEC_MEEN_SHIFT (4U)
12115#define NV_FSEC_MEEN_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_MEEN_SHIFT)) & NV_FSEC_MEEN_MASK)
12116#define NV_FSEC_MEEN NV_FSEC_MEEN_MASK
12117#define NV_FSEC_KEYEN_MASK (0xC0U)
12118#define NV_FSEC_KEYEN_SHIFT (6U)
12119#define NV_FSEC_KEYEN_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_KEYEN_SHIFT)) & NV_FSEC_KEYEN_MASK)
12120#define NV_FSEC_KEYEN NV_FSEC_KEYEN_MASK
12121
12122/*! @name FOPT - Non-volatile Flash Option Register */
12123#define NV_FOPT_LPBOOT_MASK (0x1U)
12124#define NV_FOPT_LPBOOT_SHIFT (0U)
12125#define NV_FOPT_LPBOOT_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_LPBOOT_SHIFT)) & NV_FOPT_LPBOOT_MASK)
12126#define NV_FOPT_LPBOOT NV_FOPT_LPBOOT_MASK
12127#define NV_FOPT_EZPORT_DIS_MASK (0x2U)
12128#define NV_FOPT_EZPORT_DIS_SHIFT (1U)
12129#define NV_FOPT_EZPORT_DIS_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_EZPORT_DIS_SHIFT)) & NV_FOPT_EZPORT_DIS_MASK)
12130#define NV_FOPT_EZPORT_DIS NV_FOPT_EZPORT_DIS_MASK
12131#define NV_FOPT_NMI_DIS_MASK (0x4U)
12132#define NV_FOPT_NMI_DIS_SHIFT (2U)
12133#define NV_FOPT_NMI_DIS_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_NMI_DIS_SHIFT)) & NV_FOPT_NMI_DIS_MASK)
12134#define NV_FOPT_NMI_DIS NV_FOPT_NMI_DIS_MASK
12135
12136/*! @name FEPROT - Non-volatile EERAM Protection Register */
12137#define NV_FEPROT_EPROT_MASK (0xFFU)
12138#define NV_FEPROT_EPROT_SHIFT (0U)
12139#define NV_FEPROT_EPROT_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FEPROT_EPROT_SHIFT)) & NV_FEPROT_EPROT_MASK)
12140#define NV_FEPROT_EPROT NV_FEPROT_EPROT_MASK
12141
12142/*! @name FDPROT - Non-volatile D-Flash Protection Register */
12143#define NV_FDPROT_DPROT_MASK (0xFFU)
12144#define NV_FDPROT_DPROT_SHIFT (0U)
12145#define NV_FDPROT_DPROT_SET(x) (((uint8_t)(((uint8_t)(x)) << NV_FDPROT_DPROT_SHIFT)) & NV_FDPROT_DPROT_MASK)
12146#define NV_FDPROT_DPROT NV_FDPROT_DPROT_MASK
12147
12148
12149/*!
12150 * @}
12151 */ /* end of group NV_Register_Masks */
12152
12153
12154/* NV - Peripheral instance base addresses */
12155/** Peripheral FTFE_FlashConfig base address */
12156#define FTFE_FlashConfig_BASE (0x400u)
12157/** Peripheral FTFE_FlashConfig base pointer */
12158#define FTFE_FlashConfig ((NV_TypeDef *)FTFE_FlashConfig_BASE)
12159/** Array initializer of NV peripheral base addresses */
12160#define NV_BASE_ADDRS { FTFE_FlashConfig_BASE }
12161/** Array initializer of NV peripheral base pointers */
12162#define NV_BASE_PTRS { FTFE_FlashConfig }
12163
12164/*!
12165 * @}
12166 */ /* end of group NV_Peripheral_Access_Layer */
12167
12168
12169/* ----------------------------------------------------------------------------
12170 -- OSC Peripheral Access Layer
12171 ---------------------------------------------------------------------------- */
12172
12173/*!
12174 * @addtogroup OSC0_Peripheral_Access_Layer OSC Peripheral Access Layer
12175 * @{
12176 */
12177
12178/** OSC - Register Layout Typedef */
12179typedef struct {
12180 __IO uint8_t CR; /**< OSC Control Register, offset: 0x0 */
12181 uint8_t RESERVED_0[1];
12182 __IO uint8_t DIV; /**< OSC0_DIV, offset: 0x2 */
12183} OSC0_TypeDef;
12184
12185/* ----------------------------------------------------------------------------
12186 -- OSC Register Masks
12187 ---------------------------------------------------------------------------- */
12188
12189/*!
12190 * @addtogroup OSC0_Register_Masks OSC Register Masks
12191 * @{
12192 */
12193
12194/*! @name CR - OSC Control Register */
12195#define OSC0_CR_SC16P_MASK (0x1U)
12196#define OSC0_CR_SC16P_SHIFT (0U)
12197#define OSC0_CR_SC16P_SET(x) (((uint8_t)(((uint8_t)(x)) << OSC0_CR_SC16P_SHIFT)) & OSC0_CR_SC16P_MASK)
12198#define OSC0_CR_SC16P OSC0_CR_SC16P_MASK
12199#define OSC0_CR_SC8P_MASK (0x2U)
12200#define OSC0_CR_SC8P_SHIFT (1U)
12201#define OSC0_CR_SC8P_SET(x) (((uint8_t)(((uint8_t)(x)) << OSC0_CR_SC8P_SHIFT)) & OSC0_CR_SC8P_MASK)
12202#define OSC0_CR_SC8P OSC0_CR_SC8P_MASK
12203#define OSC_CR_SC8P OSC0_CR_SC8P(1)
12204#define OSC0_CR_SC4P_MASK (0x4U)
12205#define OSC0_CR_SC4P_SHIFT (2U)
12206#define OSC0_CR_SC4P_SET(x) (((uint8_t)(((uint8_t)(x)) << OSC0_CR_SC4P_SHIFT)) & OSC0_CR_SC4P_MASK)
12207#define OSC0_CR_SC4P OSC0_CR_SC4P_MASK
12208#define OSC_CR_SC4P OSC0_CR_SC4P(1)
12209#define OSC0_CR_SC2P_MASK (0x8U)
12210#define OSC0_CR_SC2P_SHIFT (3U)
12211#define OSC0_CR_SC2P_SET(x) (((uint8_t)(((uint8_t)(x)) << OSC0_CR_SC2P_SHIFT)) & OSC0_CR_SC2P_MASK)
12212#define OSC0_CR_SC2P OSC0_CR_SC2P_MASK
12213#define OSC_CR_SC2P OSC0_CR_SC2P(1)
12214#define OSC0_CR_EREFSTEN_MASK (0x20U)
12215#define OSC0_CR_EREFSTEN_SHIFT (5U)
12216#define OSC0_CR_EREFSTEN_SET(x) (((uint8_t)(((uint8_t)(x)) << OSC0_CR_EREFSTEN_SHIFT)) & OSC0_CR_EREFSTEN_MASK)
12217#define OSC0_CR_EREFSTEN OSC0_CR_EREFSTEN_MASK
12218#define OSC0_CR_ERCLKEN_MASK (0x80U)
12219#define OSC0_CR_ERCLKEN_SHIFT (7U)
12220#define OSC0_CR_ERCLKEN_SET(x) (((uint8_t)(((uint8_t)(x)) << OSC0_CR_ERCLKEN_SHIFT)) & OSC0_CR_ERCLKEN_MASK)
12221#define OSC0_CR_ERCLKEN OSC0_CR_ERCLKEN_MASK
12222
12223/*! @name DIV - OSC0_DIV */
12224#define OSC0_DIV_ERPS_MASK (0xC0U)
12225#define OSC0_DIV_ERPS_SHIFT (6U)
12226#define OSC0_DIV_ERPS_SET(x) (((uint8_t)(((uint8_t)(x)) << OSC0_DIV_ERPS_SHIFT)) & OSC0_DIV_ERPS_MASK)
12227#define OSC0_DIV_ERPS OSC0_DIV_ERPS_MASK
12228
12229
12230/*!
12231 * @}
12232 */ /* end of group OSC0_Register_Masks */
12233
12234
12235/* OSC - Peripheral instance base addresses */
12236/** Peripheral OSC base address */
12237#define OSC0_BASE (0x40065000u)
12238/** Peripheral OSC base pointer */
12239#define OSC0 ((OSC0_TypeDef *)OSC0_BASE)
12240/** Array initializer of OSC peripheral base addresses */
12241#define OSC0_BASE_ADDRS { OSC0_BASE }
12242/** Array initializer of OSC peripheral base pointers */
12243#define OSC0_BASE_PTRS { OSC }
12244
12245/*!
12246 * @}
12247 */ /* end of group OSC0_Peripheral_Access_Layer */
12248
12249
12250/* ----------------------------------------------------------------------------
12251 -- PDB Peripheral Access Layer
12252 ---------------------------------------------------------------------------- */
12253
12254/*!
12255 * @addtogroup PDB_Peripheral_Access_Layer PDB Peripheral Access Layer
12256 * @{
12257 */
12258
12259/** PDB - Register Layout Typedef */
12260typedef struct {
12261 __IO uint32_t SC; /**< Status and Control register, offset: 0x0 */
12262 __IO uint32_t MOD; /**< Modulus register, offset: 0x4 */
12263 __I uint32_t CNT; /**< Counter register, offset: 0x8 */
12264 __IO uint32_t IDLY; /**< Interrupt Delay register, offset: 0xC */
12265 struct { /* offset: 0x10, array step: 0x28 */
12266 __IO uint32_t C1; /**< Channel n Control register 1, array offset: 0x10, array step: 0x28 */
12267 __IO uint32_t S; /**< Channel n Status register, array offset: 0x14, array step: 0x28 */
12268 __IO uint32_t DLY[2]; /**< Channel n Delay 0 register..Channel n Delay 1 register, array offset: 0x18, array step: index*0x28, index2*0x4 */
12269 uint8_t RESERVED_0[24];
12270 } CH[2];
12271 uint8_t RESERVED_0[240];
12272 struct { /* offset: 0x150, array step: 0x8 */
12273 __IO uint32_t INTC; /**< DAC Interval Trigger n Control register, array offset: 0x150, array step: 0x8 */
12274 __IO uint32_t INT; /**< DAC Interval n register, array offset: 0x154, array step: 0x8 */
12275 } DAC[2];
12276 uint8_t RESERVED_1[48];
12277 __IO uint32_t POEN; /**< Pulse-Out n Enable register, offset: 0x190 */
12278 __IO uint32_t PODLY[4]; /**< Pulse-Out n Delay register, array offset: 0x194, array step: 0x4 */
12279} PDB_TypeDef;
12280
12281/* ----------------------------------------------------------------------------
12282 -- PDB Register Masks
12283 ---------------------------------------------------------------------------- */
12284
12285/*!
12286 * @addtogroup PDB_Register_Masks PDB Register Masks
12287 * @{
12288 */
12289
12290/*! @name SC - Status and Control register */
12291#define PDB_SC_LDOK_MASK (0x1U)
12292#define PDB_SC_LDOK_SHIFT (0U)
12293#define PDB_SC_LDOK_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_LDOK_SHIFT)) & PDB_SC_LDOK_MASK)
12294#define PDB_SC_LDOK PDB_SC_LDOK_MASK
12295#define PDB_SC_CONT_MASK (0x2U)
12296#define PDB_SC_CONT_SHIFT (1U)
12297#define PDB_SC_CONT_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_CONT_SHIFT)) & PDB_SC_CONT_MASK)
12298#define PDB_SC_CONT PDB_SC_CONT_MASK
12299#define PDB_SC_MULT_MASK (0xCU)
12300#define PDB_SC_MULT_SHIFT (2U)
12301#define PDB_SC_MULT_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_MULT_SHIFT)) & PDB_SC_MULT_MASK)
12302#define PDB_SC_MULT PDB_SC_MULT_MASK
12303#define PDB_SC_PDBIE_MASK (0x20U)
12304#define PDB_SC_PDBIE_SHIFT (5U)
12305#define PDB_SC_PDBIE_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_PDBIE_SHIFT)) & PDB_SC_PDBIE_MASK)
12306#define PDB_SC_PDBIE PDB_SC_PDBIE_MASK
12307#define PDB_SC_PDBIF_MASK (0x40U)
12308#define PDB_SC_PDBIF_SHIFT (6U)
12309#define PDB_SC_PDBIF_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_PDBIF_SHIFT)) & PDB_SC_PDBIF_MASK)
12310#define PDB_SC_PDBIF PDB_SC_PDBIF_MASK
12311#define PDB_SC_PDBEN_MASK (0x80U)
12312#define PDB_SC_PDBEN_SHIFT (7U)
12313#define PDB_SC_PDBEN_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_PDBEN_SHIFT)) & PDB_SC_PDBEN_MASK)
12314#define PDB_SC_PDBEN PDB_SC_PDBEN_MASK
12315#define PDB_SC_TRGSEL_MASK (0xF00U)
12316#define PDB_SC_TRGSEL_SHIFT (8U)
12317#define PDB_SC_TRGSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_TRGSEL_SHIFT)) & PDB_SC_TRGSEL_MASK)
12318#define PDB_SC_TRGSEL PDB_SC_TRGSEL_MASK
12319#define PDB_SC_PRESCALER_MASK (0x7000U)
12320#define PDB_SC_PRESCALER_SHIFT (12U)
12321#define PDB_SC_PRESCALER_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_PRESCALER_SHIFT)) & PDB_SC_PRESCALER_MASK)
12322#define PDB_SC_PRESCALER PDB_SC_PRESCALER_MASK
12323#define PDB_SC_DMAEN_MASK (0x8000U)
12324#define PDB_SC_DMAEN_SHIFT (15U)
12325#define PDB_SC_DMAEN_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_DMAEN_SHIFT)) & PDB_SC_DMAEN_MASK)
12326#define PDB_SC_DMAEN PDB_SC_DMAEN_MASK
12327#define PDB_SC_SWTRIG_MASK (0x10000U)
12328#define PDB_SC_SWTRIG_SHIFT (16U)
12329#define PDB_SC_SWTRIG_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_SWTRIG_SHIFT)) & PDB_SC_SWTRIG_MASK)
12330#define PDB_SC_SWTRIG PDB_SC_SWTRIG_MASK
12331#define PDB_SC_PDBEIE_MASK (0x20000U)
12332#define PDB_SC_PDBEIE_SHIFT (17U)
12333#define PDB_SC_PDBEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_PDBEIE_SHIFT)) & PDB_SC_PDBEIE_MASK)
12334#define PDB_SC_PDBEIE PDB_SC_PDBEIE_MASK
12335#define PDB_SC_LDMOD_MASK (0xC0000U)
12336#define PDB_SC_LDMOD_SHIFT (18U)
12337#define PDB_SC_LDMOD_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_LDMOD_SHIFT)) & PDB_SC_LDMOD_MASK)
12338#define PDB_SC_LDMOD PDB_SC_LDMOD_MASK
12339
12340/*! @name MOD - Modulus register */
12341#define PDB_MOD_MOD_MASK (0xFFFFU)
12342#define PDB_MOD_MOD_SHIFT (0U)
12343#define PDB_MOD_MOD_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_MOD_MOD_SHIFT)) & PDB_MOD_MOD_MASK)
12344#define PDB_MOD_MOD PDB_MOD_MOD_MASK
12345
12346/*! @name CNT - Counter register */
12347#define PDB_CNT_CNT_MASK (0xFFFFU)
12348#define PDB_CNT_CNT_SHIFT (0U)
12349#define PDB_CNT_CNT_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_CNT_CNT_SHIFT)) & PDB_CNT_CNT_MASK)
12350#define PDB_CNT_CNT PDB_CNT_CNT_MASK
12351
12352/*! @name IDLY - Interrupt Delay register */
12353#define PDB_IDLY_IDLY_MASK (0xFFFFU)
12354#define PDB_IDLY_IDLY_SHIFT (0U)
12355#define PDB_IDLY_IDLY_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_IDLY_IDLY_SHIFT)) & PDB_IDLY_IDLY_MASK)
12356#define PDB_IDLY_IDLY PDB_IDLY_IDLY_MASK
12357
12358/*! @name C1 - Channel n Control register 1 */
12359#define PDB_C1_EN_MASK (0xFFU)
12360#define PDB_C1_EN_SHIFT (0U)
12361#define PDB_C1_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_C1_EN_SHIFT)) & PDB_C1_EN_MASK)
12362#define PDB_C1_EN PDB_C1_EN_MASK
12363#define PDB_C1_TOS_MASK (0xFF00U)
12364#define PDB_C1_TOS_SHIFT (8U)
12365#define PDB_C1_TOS_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_C1_TOS_SHIFT)) & PDB_C1_TOS_MASK)
12366#define PDB_C1_TOS PDB_C1_TOS_MASK
12367#define PDB_C1_BB_MASK (0xFF0000U)
12368#define PDB_C1_BB_SHIFT (16U)
12369#define PDB_C1_BB_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_C1_BB_SHIFT)) & PDB_C1_BB_MASK)
12370#define PDB_C1_BB PDB_C1_BB_MASK
12371
12372/* The count of PDB_C1 */
12373#define PDB_C1_COUNT (2U)
12374
12375/*! @name S - Channel n Status register */
12376#define PDB_S_ERR_MASK (0xFFU)
12377#define PDB_S_ERR_SHIFT (0U)
12378#define PDB_S_ERR_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_S_ERR_SHIFT)) & PDB_S_ERR_MASK)
12379#define PDB_S_ERR PDB_S_ERR_MASK
12380#define PDB_S_CF_MASK (0xFF0000U)
12381#define PDB_S_CF_SHIFT (16U)
12382#define PDB_S_CF_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_S_CF_SHIFT)) & PDB_S_CF_MASK)
12383#define PDB_S_CF PDB_S_CF_MASK
12384
12385/* The count of PDB_S */
12386#define PDB_S_COUNT (2U)
12387
12388/*! @name DLY - Channel n Delay 0 register..Channel n Delay 1 register */
12389#define PDB_DLY_DLY_MASK (0xFFFFU)
12390#define PDB_DLY_DLY_SHIFT (0U)
12391#define PDB_DLY_DLY_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_DLY_DLY_SHIFT)) & PDB_DLY_DLY_MASK)
12392#define PDB_DLY_DLY PDB_DLY_DLY_MASK
12393
12394/* The count of PDB_DLY */
12395#define PDB_DLY_COUNT (2U)
12396
12397/* The count of PDB_DLY */
12398#define PDB_DLY_COUNT2 (2U)
12399
12400/*! @name INTC - DAC Interval Trigger n Control register */
12401#define PDB_INTC_TOE_MASK (0x1U)
12402#define PDB_INTC_TOE_SHIFT (0U)
12403#define PDB_INTC_TOE_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_INTC_TOE_SHIFT)) & PDB_INTC_TOE_MASK)
12404#define PDB_INTC_TOE PDB_INTC_TOE_MASK
12405#define PDB_INTC_EXT_MASK (0x2U)
12406#define PDB_INTC_EXT_SHIFT (1U)
12407#define PDB_INTC_EXT_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_INTC_EXT_SHIFT)) & PDB_INTC_EXT_MASK)
12408#define PDB_INTC_EXT PDB_INTC_EXT_MASK
12409
12410/* The count of PDB_INTC */
12411#define PDB_INTC_COUNT (2U)
12412
12413/*! @name INT - DAC Interval n register */
12414#define PDB_INT_INT_MASK (0xFFFFU)
12415#define PDB_INT_INT_SHIFT (0U)
12416#define PDB_INT_INT_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_INT_INT_SHIFT)) & PDB_INT_INT_MASK)
12417#define PDB_INT_INT PDB_INT_INT_MASK
12418
12419/* The count of PDB_INT */
12420#define PDB_INT_COUNT (2U)
12421
12422/*! @name POEN - Pulse-Out n Enable register */
12423#define PDB_POEN_POEN_MASK (0xFFU)
12424#define PDB_POEN_POEN_SHIFT (0U)
12425#define PDB_POEN_POEN_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_POEN_POEN_SHIFT)) & PDB_POEN_POEN_MASK)
12426#define PDB_POEN_POEN PDB_POEN_POEN_MASK
12427
12428/*! @name PODLY - Pulse-Out n Delay register */
12429#define PDB_PODLY_DLY2_MASK (0xFFFFU)
12430#define PDB_PODLY_DLY2_SHIFT (0U)
12431#define PDB_PODLY_DLY2_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_PODLY_DLY2_SHIFT)) & PDB_PODLY_DLY2_MASK)
12432#define PDB_PODLY_DLY2 PDB_PODLY_DLY2_MASK
12433#define PDB_PODLY_DLY1_MASK (0xFFFF0000U)
12434#define PDB_PODLY_DLY1_SHIFT (16U)
12435#define PDB_PODLY_DLY1_SET(x) (((uint32_t)(((uint32_t)(x)) << PDB_PODLY_DLY1_SHIFT)) & PDB_PODLY_DLY1_MASK)
12436#define PDB_PODLY_DLY1 PDB_PODLY_DLY1_MASK
12437
12438/* The count of PDB_PODLY */
12439#define PDB_PODLY_COUNT (4U)
12440
12441
12442/*!
12443 * @}
12444 */ /* end of group PDB_Register_Masks */
12445
12446
12447/* PDB - Peripheral instance base addresses */
12448/** Peripheral PDB0 base address */
12449#define PDB0_BASE (0x40036000u)
12450/** Peripheral PDB0 base pointer */
12451#define PDB0 ((PDB_TypeDef *)PDB0_BASE)
12452/** Array initializer of PDB peripheral base addresses */
12453#define PDB_BASE_ADDRS { PDB0_BASE }
12454/** Array initializer of PDB peripheral base pointers */
12455#define PDB_BASE_PTRS { PDB0 }
12456/** Interrupt vectors for the PDB peripheral type */
12457#define PDB_IRQS { PDB0_IRQn }
12458
12459/*!
12460 * @}
12461 */ /* end of group PDB_Peripheral_Access_Layer */
12462
12463
12464/* ----------------------------------------------------------------------------
12465 -- PIT Peripheral Access Layer
12466 ---------------------------------------------------------------------------- */
12467
12468/*!
12469 * @addtogroup PIT_Peripheral_Access_Layer PIT Peripheral Access Layer
12470 * @{
12471 */
12472
12473/** PIT - Register Layout Typedef */
12474typedef struct {
12475 __IO uint32_t MCR; /**< PIT Module Control Register, offset: 0x0 */
12476 uint8_t RESERVED_0[220];
12477 __I uint32_t LTMR64H; /**< PIT Upper Lifetime Timer Register, offset: 0xE0 */
12478 __I uint32_t LTMR64L; /**< PIT Lower Lifetime Timer Register, offset: 0xE4 */
12479 uint8_t RESERVED_1[24];
12480 struct PIT_CHANNEL{ /* offset: 0x100, array step: 0x10 */
12481 __IO uint32_t LDVAL; /**< Timer Load Value Register, array offset: 0x100, array step: 0x10 */
12482 __I uint32_t CVAL; /**< Current Timer Value Register, array offset: 0x104, array step: 0x10 */
12483 __IO uint32_t TCTRL; /**< Timer Control Register, array offset: 0x108, array step: 0x10 */
12484 __IO uint32_t TFLG; /**< Timer Flag Register, array offset: 0x10C, array step: 0x10 */
12485 } CHANNEL[4];
12486} PIT_TypeDef;
12487
12488/* ----------------------------------------------------------------------------
12489 -- PIT Register Masks
12490 ---------------------------------------------------------------------------- */
12491
12492/*!
12493 * @addtogroup PIT_Register_Masks PIT Register Masks
12494 * @{
12495 */
12496
12497/*! @name MCR - PIT Module Control Register */
12498#define PIT_MCR_FRZ_MASK (0x1U)
12499#define PIT_MCR_FRZ_SHIFT (0U)
12500#define PIT_MCR_FRZ_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_MCR_FRZ_SHIFT)) & PIT_MCR_FRZ_MASK)
12501#define PIT_MCR_FRZ PIT_MCR_FRZ_MASK
12502#define PIT_MCR_MDIS_MASK (0x2U)
12503#define PIT_MCR_MDIS_SHIFT (1U)
12504#define PIT_MCR_MDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_MCR_MDIS_SHIFT)) & PIT_MCR_MDIS_MASK)
12505#define PIT_MCR_MDIS PIT_MCR_MDIS_MASK
12506
12507/*! @name LTMR64H - PIT Upper Lifetime Timer Register */
12508#define PIT_LTMR64H_LTH_MASK (0xFFFFFFFFU)
12509#define PIT_LTMR64H_LTH_SHIFT (0U)
12510#define PIT_LTMR64H_LTH_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_LTMR64H_LTH_SHIFT)) & PIT_LTMR64H_LTH_MASK)
12511#define PIT_LTMR64H_LTH PIT_LTMR64H_LTH_MASK
12512
12513/*! @name LTMR64L - PIT Lower Lifetime Timer Register */
12514#define PIT_LTMR64L_LTL_MASK (0xFFFFFFFFU)
12515#define PIT_LTMR64L_LTL_SHIFT (0U)
12516#define PIT_LTMR64L_LTL_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_LTMR64L_LTL_SHIFT)) & PIT_LTMR64L_LTL_MASK)
12517#define PIT_LTMR64L_LTL PIT_LTMR64L_LTL_MASK
12518
12519/*! @name LDVAL - Timer Load Value Register */
12520#define PIT_LDVAL_TSV_MASK (0xFFFFFFFFU)
12521#define PIT_LDVAL_TSV_SHIFT (0U)
12522#define PIT_LDVAL_TSV_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_LDVAL_TSV_SHIFT)) & PIT_LDVAL_TSV_MASK)
12523#define PIT_LDVAL_TSV PIT_LDVAL_TSV_MASK
12524
12525/* The count of PIT_LDVAL */
12526#define PIT_LDVAL_COUNT (4U)
12527
12528/*! @name CVAL - Current Timer Value Register */
12529#define PIT_CVAL_TVL_MASK (0xFFFFFFFFU)
12530#define PIT_CVAL_TVL_SHIFT (0U)
12531#define PIT_CVAL_TVL_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_CVAL_TVL_SHIFT)) & PIT_CVAL_TVL_MASK)
12532#define PIT_CVAL_TVL PIT_CVAL_TVL_MASK
12533
12534/* The count of PIT_CVAL */
12535#define PIT_CVAL_COUNT (4U)
12536
12537/*! @name TCTRL - Timer Control Register */
12538#define PIT_TCTRLn_TEN_MASK (0x1U)
12539#define PIT_TCTRLn_TEN_SHIFT (0U)
12540#define PIT_TCTRLn_TEN_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRLn_TEN_SHIFT)) & PIT_TCTRLn_TEN_MASK)
12541#define PIT_TCTRLn_TEN PIT_TCTRLn_TEN_MASK
12542#define PIT_TCTRLn_TIE_MASK (0x2U)
12543#define PIT_TCTRLn_TIE_SHIFT (1U)
12544#define PIT_TCTRLn_TIE_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRLn_TIE_SHIFT)) & PIT_TCTRLn_TIE_MASK)
12545#define PIT_TCTRLn_TIE PIT_TCTRLn_TIE_MASK
12546#define PIT_TCTRLn_CHN_MASK (0x4U)
12547#define PIT_TCTRLn_CHN_SHIFT (2U)
12548#define PIT_TCTRLn_CHN_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRLn_CHN_SHIFT)) & PIT_TCTRLn_CHN_MASK)
12549#define PIT_TCTRLn_CHN PIT_TCTRLn_CHN_MASK
12550
12551/* The count of PIT_TCTRL */
12552#define PIT_TCTRLn_COUNT (4U)
12553
12554/*! @name TFLG - Timer Flag Register */
12555#define PIT_TFLGn_TIF_MASK (0x1U)
12556#define PIT_TFLGn_TIF_SHIFT (0U)
12557#define PIT_TFLGn_TIF_SET(x) (((uint32_t)(((uint32_t)(x)) << PIT_TFLGn_TIF_SHIFT)) & PIT_TFLGn_TIF_MASK)
12558#define PIT_TFLGn_TIF PIT_TFLGn_TIF_MASK
12559
12560/* The count of PIT_TFLG */
12561#define PIT_TFLGn_COUNT (4U)
12562
12563
12564/*!
12565 * @}
12566 */ /* end of group PIT_Register_Masks */
12567
12568
12569/* PIT - Peripheral instance base addresses */
12570/** Peripheral PIT base address */
12571#define PIT_BASE (0x40037000u)
12572/** Peripheral PIT base pointer */
12573#define PIT ((PIT_TypeDef *)PIT_BASE)
12574/** Array initializer of PIT peripheral base addresses */
12575#define PIT_BASE_ADDRS { PIT_BASE }
12576/** Array initializer of PIT peripheral base pointers */
12577#define PIT_BASE_PTRS { PIT }
12578/** Interrupt vectors for the PIT peripheral type */
12579#define PIT_IRQS { { PIT0_IRQn, PIT1_IRQn, PIT2_IRQn, PIT3_IRQn } }
12580
12581/*!
12582 * @}
12583 */ /* end of group PIT_Peripheral_Access_Layer */
12584
12585
12586/* ----------------------------------------------------------------------------
12587 -- PMC Peripheral Access Layer
12588 ---------------------------------------------------------------------------- */
12589
12590/*!
12591 * @addtogroup PMC_Peripheral_Access_Layer PMC Peripheral Access Layer
12592 * @{
12593 */
12594
12595/** PMC - Register Layout Typedef */
12596typedef struct {
12597 __IO uint8_t LVDSC1; /**< Low Voltage Detect Status And Control 1 register, offset: 0x0 */
12598 __IO uint8_t LVDSC2; /**< Low Voltage Detect Status And Control 2 register, offset: 0x1 */
12599 __IO uint8_t REGSC; /**< Regulator Status And Control register, offset: 0x2 */
12600} PMC_TypeDef;
12601
12602/* ----------------------------------------------------------------------------
12603 -- PMC Register Masks
12604 ---------------------------------------------------------------------------- */
12605
12606/*!
12607 * @addtogroup PMC_Register_Masks PMC Register Masks
12608 * @{
12609 */
12610
12611/*! @name LVDSC1 - Low Voltage Detect Status And Control 1 register */
12612#define PMC_LVDSC1_LVDV_MASK (0x3U)
12613#define PMC_LVDSC1_LVDV_SHIFT (0U)
12614#define PMC_LVDSC1_LVDV_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDV_SHIFT)) & PMC_LVDSC1_LVDV_MASK)
12615#define PMC_LVDSC1_LVDV PMC_LVDSC1_LVDV_MASK
12616#define PMC_LVDSC1_LVDRE_MASK (0x10U)
12617#define PMC_LVDSC1_LVDRE_SHIFT (4U)
12618#define PMC_LVDSC1_LVDRE_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDRE_SHIFT)) & PMC_LVDSC1_LVDRE_MASK)
12619#define PMC_LVDSC1_LVDRE PMC_LVDSC1_LVDRE_MASK
12620#define PMC_LVDSC1_LVDIE_MASK (0x20U)
12621#define PMC_LVDSC1_LVDIE_SHIFT (5U)
12622#define PMC_LVDSC1_LVDIE_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDIE_SHIFT)) & PMC_LVDSC1_LVDIE_MASK)
12623#define PMC_LVDSC1_LVDIE PMC_LVDSC1_LVDIE_MASK
12624#define PMC_LVDSC1_LVDACK_MASK (0x40U)
12625#define PMC_LVDSC1_LVDACK_SHIFT (6U)
12626#define PMC_LVDSC1_LVDACK_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDACK_SHIFT)) & PMC_LVDSC1_LVDACK_MASK)
12627#define PMC_LVDSC1_LVDACK PMC_LVDSC1_LVDACK_MASK
12628#define PMC_LVDSC1_LVDF_MASK (0x80U)
12629#define PMC_LVDSC1_LVDF_SHIFT (7U)
12630#define PMC_LVDSC1_LVDF_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDF_SHIFT)) & PMC_LVDSC1_LVDF_MASK)
12631#define PMC_LVDSC1_LVDF PMC_LVDSC1_LVDF_MASK
12632
12633/*! @name LVDSC2 - Low Voltage Detect Status And Control 2 register */
12634#define PMC_LVDSC2_LVWV_MASK (0x3U)
12635#define PMC_LVDSC2_LVWV_SHIFT (0U)
12636#define PMC_LVDSC2_LVWV_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWV_SHIFT)) & PMC_LVDSC2_LVWV_MASK)
12637#define PMC_LVDSC2_LVWV PMC_LVDSC2_LVWV_MASK
12638#define PMC_LVDSC2_LVWIE_MASK (0x20U)
12639#define PMC_LVDSC2_LVWIE_SHIFT (5U)
12640#define PMC_LVDSC2_LVWIE_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWIE_SHIFT)) & PMC_LVDSC2_LVWIE_MASK)
12641#define PMC_LVDSC2_LVWIE PMC_LVDSC2_LVWIE_MASK
12642#define PMC_LVDSC2_LVWACK_MASK (0x40U)
12643#define PMC_LVDSC2_LVWACK_SHIFT (6U)
12644#define PMC_LVDSC2_LVWACK_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWACK_SHIFT)) & PMC_LVDSC2_LVWACK_MASK)
12645#define PMC_LVDSC2_LVWACK PMC_LVDSC2_LVWACK_MASK
12646#define PMC_LVDSC2_LVWF_MASK (0x80U)
12647#define PMC_LVDSC2_LVWF_SHIFT (7U)
12648#define PMC_LVDSC2_LVWF_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWF_SHIFT)) & PMC_LVDSC2_LVWF_MASK)
12649#define PMC_LVDSC2_LVWF PMC_LVDSC2_LVWF_MASK
12650
12651/*! @name REGSC - Regulator Status And Control register */
12652#define PMC_REGSC_BGBE_MASK (0x1U)
12653#define PMC_REGSC_BGBE_SHIFT (0U)
12654#define PMC_REGSC_BGBE_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_BGBE_SHIFT)) & PMC_REGSC_BGBE_MASK)
12655#define PMC_REGSC_BGBE PMC_REGSC_BGBE_MASK
12656#define PMC_REGSC_REGONS_MASK (0x4U)
12657#define PMC_REGSC_REGONS_SHIFT (2U)
12658#define PMC_REGSC_REGONS_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_REGONS_SHIFT)) & PMC_REGSC_REGONS_MASK)
12659#define PMC_REGSC_REGONS PMC_REGSC_REGONS_MASK
12660#define PMC_REGSC_ACKISO_MASK (0x8U)
12661#define PMC_REGSC_ACKISO_SHIFT (3U)
12662#define PMC_REGSC_ACKISO_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_ACKISO_SHIFT)) & PMC_REGSC_ACKISO_MASK)
12663#define PMC_REGSC_ACKISO PMC_REGSC_ACKISO_MASK
12664#define PMC_REGSC_BGEN_MASK (0x10U)
12665#define PMC_REGSC_BGEN_SHIFT (4U)
12666#define PMC_REGSC_BGEN_SET(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_BGEN_SHIFT)) & PMC_REGSC_BGEN_MASK)
12667#define PMC_REGSC_BGEN PMC_REGSC_BGEN_MASK
12668
12669
12670/*!
12671 * @}
12672 */ /* end of group PMC_Register_Masks */
12673
12674
12675/* PMC - Peripheral instance base addresses */
12676/** Peripheral PMC base address */
12677#define PMC_BASE (0x4007D000u)
12678/** Peripheral PMC base pointer */
12679#define PMC ((PMC_TypeDef *)PMC_BASE)
12680/** Array initializer of PMC peripheral base addresses */
12681#define PMC_BASE_ADDRS { PMC_BASE }
12682/** Array initializer of PMC peripheral base pointers */
12683#define PMC_BASE_PTRS { PMC }
12684/** Interrupt vectors for the PMC peripheral type */
12685#define PMC_IRQS { LVD_LVW_IRQn }
12686
12687/*!
12688 * @}
12689 */ /* end of group PMC_Peripheral_Access_Layer */
12690
12691
12692/* ----------------------------------------------------------------------------
12693 -- PORT Peripheral Access Layer
12694 ---------------------------------------------------------------------------- */
12695
12696/*!
12697 * @addtogroup PORT_Peripheral_Access_Layer PORT Peripheral Access Layer
12698 * @{
12699 */
12700
12701/** PORT - Register Layout Typedef */
12702typedef struct {
12703 __IO uint32_t PCR[32]; /**< Pin Control Register n, array offset: 0x0, array step: 0x4 */
12704 __O uint32_t GPCLR; /**< Global Pin Control Low Register, offset: 0x80 */
12705 __O uint32_t GPCHR; /**< Global Pin Control High Register, offset: 0x84 */
12706 uint8_t RESERVED_0[24];
12707 __IO uint32_t ISFR; /**< Interrupt Status Flag Register, offset: 0xA0 */
12708 uint8_t RESERVED_1[28];
12709 __IO uint32_t DFER; /**< Digital Filter Enable Register, offset: 0xC0 */
12710 __IO uint32_t DFCR; /**< Digital Filter Clock Register, offset: 0xC4 */
12711 __IO uint32_t DFWR; /**< Digital Filter Width Register, offset: 0xC8 */
12712} PORT_TypeDef;
12713
12714/* ----------------------------------------------------------------------------
12715 -- PORT Register Masks
12716 ---------------------------------------------------------------------------- */
12717
12718/*!
12719 * @addtogroup PORT_Register_Masks PORT Register Masks
12720 * @{
12721 */
12722
12723/*! @name PCR - Pin Control Register n */
12724#define PORTx_PCRn_PS_MASK (0x1U)
12725#define PORTx_PCRn_PS_SHIFT (0U)
12726#define PORTx_PCRn_PS_SET(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_PS_SHIFT)) & PORTx_PCRn_PS_MASK)
12727#define PORTx_PCRn_PS PORTx_PCRn_PS_SET(1)
12728#define PORTx_PCRn_PE_MASK (0x2U)
12729#define PORTx_PCRn_PE_SHIFT (1U)
12730#define PORTx_PCRn_PE_SET(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_PE_SHIFT)) & PORTx_PCRn_PE_MASK)
12731#define PORTx_PCRn_PE PORTx_PCRn_PE_SET(1)
12732#define PORTx_PCRn_SRE_MASK (0x4U)
12733#define PORTx_PCRn_SRE_SHIFT (2U)
12734#define PORTx_PCRn_SRE_SET(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_SRE_SHIFT)) & PORTx_PCRn_SRE_MASK)
12735#define PORTx_PCRn_SRE PORTx_PCRn_SRE_MASK
12736#define PORTx_PCRn_PFE_MASK (0x10U)
12737#define PORTx_PCRn_PFE_SHIFT (4U)
12738#define PORTx_PCRn_PFE_SET(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_PFE_SHIFT)) & PORTx_PCRn_PFE_MASK)
12739#define PORTx_PCRn_PFE PORTx_PCRn_PFE_MASK
12740#define PORTx_PCRn_ODE_MASK (0x20U)
12741#define PORTx_PCRn_ODE_SHIFT (5U)
12742#define PORTx_PCRn_ODE_SET(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_ODE_SHIFT)) & PORTx_PCRn_ODE_MASK)
12743#define PORTx_PCRn_ODE PORTx_PCRn_ODE_SET(1)
12744#define PORTx_PCRn_DSE_MASK (0x40U)
12745#define PORTx_PCRn_DSE_SHIFT (6U)
12746#define PORTx_PCRn_DSE_SET(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_DSE_SHIFT)) & PORTx_PCRn_DSE_MASK)
12747#define PORTx_PCRn_DSE PORTx_PCRn_DSE_MASK
12748#define PORTx_PCRn_MUX_MASK (0x700U)
12749#define PORTx_PCRn_MUX_SHIFT (8U)
12750#define PORTx_PCRn_MUX(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_MUX_SHIFT)) & PORTx_PCRn_MUX_MASK)
12751#define PORTx_PCRn_LK_MASK (0x8000U)
12752#define PORTx_PCRn_LK_SHIFT (15U)
12753#define PORTx_PCRn_LK_SET(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_LK_SHIFT)) & PORTx_PCRn_LK_MASK)
12754#define PORTx_PCRn_LK PORTx_PCRn_LK_MASK
12755#define PORTx_PCRn_IRQC_MASK (0xF0000U)
12756#define PORTx_PCRn_IRQC_SHIFT (16U)
12757#define PORTx_PCRn_IRQC(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_IRQC_SHIFT)) & PORTx_PCRn_IRQC_MASK)
12758#define PORTx_PCRn_ISF_MASK (0x1000000U)
12759#define PORTx_PCRn_ISF_SHIFT (24U)
12760#define PORTx_PCRn_ISF_SET(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_ISF_SHIFT)) & PORTx_PCRn_ISF_MASK)
12761#define PORTx_PCRn_ISF PORTx_PCRn_ISF_MASK
12762
12763/* The count of PORT_PCR */
12764#define PORTx_PCRn_COUNT (32U)
12765
12766/*! @name GPCLR - Global Pin Control Low Register */
12767#define PORT_GPCLR_GPWD_MASK (0xFFFFU)
12768#define PORT_GPCLR_GPWD_SHIFT (0U)
12769#define PORT_GPCLR_GPWD_SET(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCLR_GPWD_SHIFT)) & PORT_GPCLR_GPWD_MASK)
12770#define PORT_GPCLR_GPWD PORT_GPCLR_GPWD_MASK
12771#define PORT_GPCLR_GPWE_MASK (0xFFFF0000U)
12772#define PORT_GPCLR_GPWE_SHIFT (16U)
12773#define PORT_GPCLR_GPWE_SET(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCLR_GPWE_SHIFT)) & PORT_GPCLR_GPWE_MASK)
12774#define PORT_GPCLR_GPWE PORT_GPCLR_GPWE_MASK
12775
12776/*! @name GPCHR - Global Pin Control High Register */
12777#define PORT_GPCHR_GPWD_MASK (0xFFFFU)
12778#define PORT_GPCHR_GPWD_SHIFT (0U)
12779#define PORT_GPCHR_GPWD_SET(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCHR_GPWD_SHIFT)) & PORT_GPCHR_GPWD_MASK)
12780#define PORT_GPCHR_GPWD PORT_GPCHR_GPWD_MASK
12781#define PORT_GPCHR_GPWE_MASK (0xFFFF0000U)
12782#define PORT_GPCHR_GPWE_SHIFT (16U)
12783#define PORT_GPCHR_GPWE_SET(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCHR_GPWE_SHIFT)) & PORT_GPCHR_GPWE_MASK)
12784#define PORT_GPCHR_GPWE PORT_GPCHR_GPWE_MASK
12785
12786/*! @name ISFR - Interrupt Status Flag Register */
12787#define PORT_ISFR_ISF_MASK (0xFFFFFFFFU)
12788#define PORT_ISFR_ISF_SHIFT (0U)
12789#define PORT_ISFR_ISF_SET(x) (((uint32_t)(((uint32_t)(x)) << PORT_ISFR_ISF_SHIFT)) & PORT_ISFR_ISF_MASK)
12790#define PORT_ISFR_ISF PORT_ISFR_ISF_MASK
12791
12792/*! @name DFER - Digital Filter Enable Register */
12793#define PORT_DFER_DFE_MASK (0xFFFFFFFFU)
12794#define PORT_DFER_DFE_SHIFT (0U)
12795#define PORT_DFER_DFE_SET(x) (((uint32_t)(((uint32_t)(x)) << PORT_DFER_DFE_SHIFT)) & PORT_DFER_DFE_MASK)
12796#define PORT_DFER_DFE PORT_DFER_DFE_MASK
12797
12798/*! @name DFCR - Digital Filter Clock Register */
12799#define PORT_DFCR_CS_MASK (0x1U)
12800#define PORT_DFCR_CS_SHIFT (0U)
12801#define PORT_DFCR_CS_SET(x) (((uint32_t)(((uint32_t)(x)) << PORT_DFCR_CS_SHIFT)) & PORT_DFCR_CS_MASK)
12802#define PORT_DFCR_CS PORT_DFCR_CS_MASK
12803
12804/*! @name DFWR - Digital Filter Width Register */
12805#define PORT_DFWR_FILT_MASK (0x1FU)
12806#define PORT_DFWR_FILT_SHIFT (0U)
12807#define PORT_DFWR_FILT_SET(x) (((uint32_t)(((uint32_t)(x)) << PORT_DFWR_FILT_SHIFT)) & PORT_DFWR_FILT_MASK)
12808#define PORT_DFWR_FILT PORT_DFWR_FILT_MASK
12809
12810
12811/*!
12812 * @}
12813 */ /* end of group PORT_Register_Masks */
12814
12815
12816/* PORT - Peripheral instance base addresses */
12817/** Peripheral PORTA base address */
12818#define PORTA_BASE (0x40049000u)
12819/** Peripheral PORTA base pointer */
12820#define PORTA ((PORT_TypeDef *)PORTA_BASE)
12821/** Peripheral PORTB base address */
12822#define PORTB_BASE (0x4004A000u)
12823/** Peripheral PORTB base pointer */
12824#define PORTB ((PORT_TypeDef *)PORTB_BASE)
12825/** Peripheral PORTC base address */
12826#define PORTC_BASE (0x4004B000u)
12827/** Peripheral PORTC base pointer */
12828#define PORTC ((PORT_TypeDef *)PORTC_BASE)
12829/** Peripheral PORTD base address */
12830#define PORTD_BASE (0x4004C000u)
12831/** Peripheral PORTD base pointer */
12832#define PORTD ((PORT_TypeDef *)PORTD_BASE)
12833/** Peripheral PORTE base address */
12834#define PORTE_BASE (0x4004D000u)
12835/** Peripheral PORTE base pointer */
12836#define PORTE ((PORT_TypeDef *)PORTE_BASE)
12837/** Array initializer of PORT peripheral base addresses */
12838#define PORT_BASE_ADDRS { PORTA_BASE, PORTB_BASE, PORTC_BASE, PORTD_BASE, PORTE_BASE }
12839/** Array initializer of PORT peripheral base pointers */
12840#define PORT_BASE_PTRS { PORTA, PORTB, PORTC, PORTD, PORTE }
12841/** Interrupt vectors for the PORT peripheral type */
12842#define PORT_IRQS { PORTA_IRQn, PORTB_IRQn, PORTC_IRQn, PORTD_IRQn, PORTE_IRQn }
12843
12844/*!
12845 * @}
12846 */ /* end of group PORT_Peripheral_Access_Layer */
12847
12848
12849/* ----------------------------------------------------------------------------
12850 -- RCM Peripheral Access Layer
12851 ---------------------------------------------------------------------------- */
12852
12853/*!
12854 * @addtogroup RCM_Peripheral_Access_Layer RCM Peripheral Access Layer
12855 * @{
12856 */
12857
12858/** RCM - Register Layout Typedef */
12859typedef struct {
12860 __I uint8_t SRS0; /**< System Reset Status Register 0, offset: 0x0 */
12861 __I uint8_t SRS1; /**< System Reset Status Register 1, offset: 0x1 */
12862 uint8_t RESERVED_0[2];
12863 __IO uint8_t RPFC; /**< Reset Pin Filter Control register, offset: 0x4 */
12864 __IO uint8_t RPFW; /**< Reset Pin Filter Width register, offset: 0x5 */
12865 uint8_t RESERVED_1[1];
12866 __I uint8_t MR; /**< Mode Register, offset: 0x7 */
12867 __IO uint8_t SSRS0; /**< Sticky System Reset Status Register 0, offset: 0x8 */
12868 __IO uint8_t SSRS1; /**< Sticky System Reset Status Register 1, offset: 0x9 */
12869} RCM_TypeDef;
12870
12871/* ----------------------------------------------------------------------------
12872 -- RCM Register Masks
12873 ---------------------------------------------------------------------------- */
12874
12875/*!
12876 * @addtogroup RCM_Register_Masks RCM Register Masks
12877 * @{
12878 */
12879
12880/*! @name SRS0 - System Reset Status Register 0 */
12881#define RCM_SRS0_WAKEUP_MASK (0x1U)
12882#define RCM_SRS0_WAKEUP_SHIFT (0U)
12883#define RCM_SRS0_WAKEUP_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_WAKEUP_SHIFT)) & RCM_SRS0_WAKEUP_MASK)
12884#define RCM_SRS0_WAKEUP RCM_SRS0_WAKEUP_MASK
12885#define RCM_SRS0_LVD_MASK (0x2U)
12886#define RCM_SRS0_LVD_SHIFT (1U)
12887#define RCM_SRS0_LVD_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_LVD_SHIFT)) & RCM_SRS0_LVD_MASK)
12888#define RCM_SRS0_LVD RCM_SRS0_LVD_MASK
12889#define RCM_SRS0_LOC_MASK (0x4U)
12890#define RCM_SRS0_LOC_SHIFT (2U)
12891#define RCM_SRS0_LOC_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_LOC_SHIFT)) & RCM_SRS0_LOC_MASK)
12892#define RCM_SRS0_LOC RCM_SRS0_LOC_MASK
12893#define RCM_SRS0_LOL_MASK (0x8U)
12894#define RCM_SRS0_LOL_SHIFT (3U)
12895#define RCM_SRS0_LOL_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_LOL_SHIFT)) & RCM_SRS0_LOL_MASK)
12896#define RCM_SRS0_LOL RCM_SRS0_LOL_MASK
12897#define RCM_SRS0_WDOG_MASK (0x20U)
12898#define RCM_SRS0_WDOG_SHIFT (5U)
12899#define RCM_SRS0_WDOG_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_WDOG_SHIFT)) & RCM_SRS0_WDOG_MASK)
12900#define RCM_SRS0_WDOG RCM_SRS0_WDOG_MASK
12901#define RCM_SRS0_PIN_MASK (0x40U)
12902#define RCM_SRS0_PIN_SHIFT (6U)
12903#define RCM_SRS0_PIN_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_PIN_SHIFT)) & RCM_SRS0_PIN_MASK)
12904#define RCM_SRS0_PIN RCM_SRS0_PIN_MASK
12905#define RCM_SRS0_POR_MASK (0x80U)
12906#define RCM_SRS0_POR_SHIFT (7U)
12907#define RCM_SRS0_POR_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_POR_SHIFT)) & RCM_SRS0_POR_MASK)
12908#define RCM_SRS0_POR RCM_SRS0_POR_MASK
12909
12910/*! @name SRS1 - System Reset Status Register 1 */
12911#define RCM_SRS1_JTAG_MASK (0x1U)
12912#define RCM_SRS1_JTAG_SHIFT (0U)
12913#define RCM_SRS1_JTAG_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_JTAG_SHIFT)) & RCM_SRS1_JTAG_MASK)
12914#define RCM_SRS1_JTAG RCM_SRS1_JTAG_MASK
12915#define RCM_SRS1_LOCKUP_MASK (0x2U)
12916#define RCM_SRS1_LOCKUP_SHIFT (1U)
12917#define RCM_SRS1_LOCKUP_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_LOCKUP_SHIFT)) & RCM_SRS1_LOCKUP_MASK)
12918#define RCM_SRS1_LOCKUP RCM_SRS1_LOCKUP_MASK
12919#define RCM_SRS1_SW_MASK (0x4U)
12920#define RCM_SRS1_SW_SHIFT (2U)
12921#define RCM_SRS1_SW_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_SW_SHIFT)) & RCM_SRS1_SW_MASK)
12922#define RCM_SRS1_SW RCM_SRS1_SW_MASK
12923#define RCM_SRS1_MDM_AP_MASK (0x8U)
12924#define RCM_SRS1_MDM_AP_SHIFT (3U)
12925#define RCM_SRS1_MDM_AP_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_MDM_AP_SHIFT)) & RCM_SRS1_MDM_AP_MASK)
12926#define RCM_SRS1_MDM_AP RCM_SRS1_MDM_AP_MASK
12927#define RCM_SRS1_EZPT_MASK (0x10U)
12928#define RCM_SRS1_EZPT_SHIFT (4U)
12929#define RCM_SRS1_EZPT_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_EZPT_SHIFT)) & RCM_SRS1_EZPT_MASK)
12930#define RCM_SRS1_EZPT RCM_SRS1_EZPT_MASK
12931#define RCM_SRS1_SACKERR_MASK (0x20U)
12932#define RCM_SRS1_SACKERR_SHIFT (5U)
12933#define RCM_SRS1_SACKERR_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_SACKERR_SHIFT)) & RCM_SRS1_SACKERR_MASK)
12934#define RCM_SRS1_SACKERR RCM_SRS1_SACKERR_MASK
12935
12936/*! @name RPFC - Reset Pin Filter Control register */
12937#define RCM_RPFC_RSTFLTSRW_MASK (0x3U)
12938#define RCM_RPFC_RSTFLTSRW_SHIFT (0U)
12939#define RCM_RPFC_RSTFLTSRW_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFC_RSTFLTSRW_SHIFT)) & RCM_RPFC_RSTFLTSRW_MASK)
12940#define RCM_RPFC_RSTFLTSRW RCM_RPFC_RSTFLTSRW_MASK
12941#define RCM_RPFC_RSTFLTSS_MASK (0x4U)
12942#define RCM_RPFC_RSTFLTSS_SHIFT (2U)
12943#define RCM_RPFC_RSTFLTSS_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFC_RSTFLTSS_SHIFT)) & RCM_RPFC_RSTFLTSS_MASK)
12944#define RCM_RPFC_RSTFLTSS RCM_RPFC_RSTFLTSS_MASK
12945
12946/*! @name RPFW - Reset Pin Filter Width register */
12947#define RCM_RPFW_RSTFLTSEL_MASK (0x1FU)
12948#define RCM_RPFW_RSTFLTSEL_SHIFT (0U)
12949#define RCM_RPFW_RSTFLTSEL_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFW_RSTFLTSEL_SHIFT)) & RCM_RPFW_RSTFLTSEL_MASK)
12950#define RCM_RPFW_RSTFLTSEL RCM_RPFW_RSTFLTSEL_MASK
12951
12952/*! @name MR - Mode Register */
12953#define RCM_MR_EZP_MS_MASK (0x2U)
12954#define RCM_MR_EZP_MS_SHIFT (1U)
12955#define RCM_MR_EZP_MS_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_MR_EZP_MS_SHIFT)) & RCM_MR_EZP_MS_MASK)
12956#define RCM_MR_EZP_MS RCM_MR_EZP_MS_MASK
12957
12958/*! @name SSRS0 - Sticky System Reset Status Register 0 */
12959#define RCM_SSRS0_SWAKEUP_MASK (0x1U)
12960#define RCM_SSRS0_SWAKEUP_SHIFT (0U)
12961#define RCM_SSRS0_SWAKEUP_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SWAKEUP_SHIFT)) & RCM_SSRS0_SWAKEUP_MASK)
12962#define RCM_SSRS0_SWAKEUP RCM_SSRS0_SWAKEUP_MASK
12963#define RCM_SSRS0_SLVD_MASK (0x2U)
12964#define RCM_SSRS0_SLVD_SHIFT (1U)
12965#define RCM_SSRS0_SLVD_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SLVD_SHIFT)) & RCM_SSRS0_SLVD_MASK)
12966#define RCM_SSRS0_SLVD RCM_SSRS0_SLVD_MASK
12967#define RCM_SSRS0_SLOC_MASK (0x4U)
12968#define RCM_SSRS0_SLOC_SHIFT (2U)
12969#define RCM_SSRS0_SLOC_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SLOC_SHIFT)) & RCM_SSRS0_SLOC_MASK)
12970#define RCM_SSRS0_SLOC RCM_SSRS0_SLOC_MASK
12971#define RCM_SSRS0_SLOL_MASK (0x8U)
12972#define RCM_SSRS0_SLOL_SHIFT (3U)
12973#define RCM_SSRS0_SLOL_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SLOL_SHIFT)) & RCM_SSRS0_SLOL_MASK)
12974#define RCM_SSRS0_SLOL RCM_SSRS0_SLOL_MASK
12975#define RCM_SSRS0_SWDOG_MASK (0x20U)
12976#define RCM_SSRS0_SWDOG_SHIFT (5U)
12977#define RCM_SSRS0_SWDOG_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SWDOG_SHIFT)) & RCM_SSRS0_SWDOG_MASK)
12978#define RCM_SSRS0_SWDOG RCM_SSRS0_SWDOG_MASK
12979#define RCM_SSRS0_SPIN_MASK (0x40U)
12980#define RCM_SSRS0_SPIN_SHIFT (6U)
12981#define RCM_SSRS0_SPIN_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SPIN_SHIFT)) & RCM_SSRS0_SPIN_MASK)
12982#define RCM_SSRS0_SPIN RCM_SSRS0_SPIN_MASK
12983#define RCM_SSRS0_SPOR_MASK (0x80U)
12984#define RCM_SSRS0_SPOR_SHIFT (7U)
12985#define RCM_SSRS0_SPOR_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SPOR_SHIFT)) & RCM_SSRS0_SPOR_MASK)
12986#define RCM_SSRS0_SPOR RCM_SSRS0_SPOR_MASK
12987
12988/*! @name SSRS1 - Sticky System Reset Status Register 1 */
12989#define RCM_SSRS1_SJTAG_MASK (0x1U)
12990#define RCM_SSRS1_SJTAG_SHIFT (0U)
12991#define RCM_SSRS1_SJTAG_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SJTAG_SHIFT)) & RCM_SSRS1_SJTAG_MASK)
12992#define RCM_SSRS1_SJTAG RCM_SSRS1_SJTAG_MASK
12993#define RCM_SSRS1_SLOCKUP_MASK (0x2U)
12994#define RCM_SSRS1_SLOCKUP_SHIFT (1U)
12995#define RCM_SSRS1_SLOCKUP_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SLOCKUP_SHIFT)) & RCM_SSRS1_SLOCKUP_MASK)
12996#define RCM_SSRS1_SLOCKUP RCM_SSRS1_SLOCKUP_MASK
12997#define RCM_SSRS1_SSW_MASK (0x4U)
12998#define RCM_SSRS1_SSW_SHIFT (2U)
12999#define RCM_SSRS1_SSW_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SSW_SHIFT)) & RCM_SSRS1_SSW_MASK)
13000#define RCM_SSRS1_SSW RCM_SSRS1_SSW_MASK
13001#define RCM_SSRS1_SMDM_AP_MASK (0x8U)
13002#define RCM_SSRS1_SMDM_AP_SHIFT (3U)
13003#define RCM_SSRS1_SMDM_AP_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SMDM_AP_SHIFT)) & RCM_SSRS1_SMDM_AP_MASK)
13004#define RCM_SSRS1_SMDM_AP RCM_SSRS1_SMDM_AP_MASK
13005#define RCM_SSRS1_SEZPT_MASK (0x10U)
13006#define RCM_SSRS1_SEZPT_SHIFT (4U)
13007#define RCM_SSRS1_SEZPT_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SEZPT_SHIFT)) & RCM_SSRS1_SEZPT_MASK)
13008#define RCM_SSRS1_SEZPT RCM_SSRS1_SEZPT_MASK
13009#define RCM_SSRS1_SSACKERR_MASK (0x20U)
13010#define RCM_SSRS1_SSACKERR_SHIFT (5U)
13011#define RCM_SSRS1_SSACKERR_SET(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SSACKERR_SHIFT)) & RCM_SSRS1_SSACKERR_MASK)
13012#define RCM_SSRS1_SSACKERR RCM_SSRS1_SSACKERR_MASK
13013
13014
13015/*!
13016 * @}
13017 */ /* end of group RCM_Register_Masks */
13018
13019
13020/* RCM - Peripheral instance base addresses */
13021/** Peripheral RCM base address */
13022#define RCM_BASE (0x4007F000u)
13023/** Peripheral RCM base pointer */
13024#define RCM ((RCM_TypeDef *)RCM_BASE)
13025/** Array initializer of RCM peripheral base addresses */
13026#define RCM_BASE_ADDRS { RCM_BASE }
13027/** Array initializer of RCM peripheral base pointers */
13028#define RCM_BASE_PTRS { RCM }
13029
13030/*!
13031 * @}
13032 */ /* end of group RCM_Peripheral_Access_Layer */
13033
13034
13035/* ----------------------------------------------------------------------------
13036 -- RFSYS Peripheral Access Layer
13037 ---------------------------------------------------------------------------- */
13038
13039/*!
13040 * @addtogroup RFSYS_Peripheral_Access_Layer RFSYS Peripheral Access Layer
13041 * @{
13042 */
13043
13044/** RFSYS - Register Layout Typedef */
13045typedef struct {
13046 __IO uint32_t REG[8]; /**< Register file register, array offset: 0x0, array step: 0x4 */
13047} RFSYS_TypeDef;
13048
13049/* ----------------------------------------------------------------------------
13050 -- RFSYS Register Masks
13051 ---------------------------------------------------------------------------- */
13052
13053/*!
13054 * @addtogroup RFSYS_Register_Masks RFSYS Register Masks
13055 * @{
13056 */
13057
13058/*! @name REG - Register file register */
13059#define RFSYS_REG_LL_MASK (0xFFU)
13060#define RFSYS_REG_LL_SHIFT (0U)
13061#define RFSYS_REG_LL_SET(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_LL_SHIFT)) & RFSYS_REG_LL_MASK)
13062#define RFSYS_REG_LL RFSYS_REG_LL_MASK
13063#define RFSYS_REG_LH_MASK (0xFF00U)
13064#define RFSYS_REG_LH_SHIFT (8U)
13065#define RFSYS_REG_LH_SET(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_LH_SHIFT)) & RFSYS_REG_LH_MASK)
13066#define RFSYS_REG_LH RFSYS_REG_LH_MASK
13067#define RFSYS_REG_HL_MASK (0xFF0000U)
13068#define RFSYS_REG_HL_SHIFT (16U)
13069#define RFSYS_REG_HL_SET(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_HL_SHIFT)) & RFSYS_REG_HL_MASK)
13070#define RFSYS_REG_HL RFSYS_REG_HL_MASK
13071#define RFSYS_REG_HH_MASK (0xFF000000U)
13072#define RFSYS_REG_HH_SHIFT (24U)
13073#define RFSYS_REG_HH_SET(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_HH_SHIFT)) & RFSYS_REG_HH_MASK)
13074#define RFSYS_REG_HH RFSYS_REG_HH_MASK
13075
13076/* The count of RFSYS_REG */
13077#define RFSYS_REG_COUNT (8U)
13078
13079
13080/*!
13081 * @}
13082 */ /* end of group RFSYS_Register_Masks */
13083
13084
13085/* RFSYS - Peripheral instance base addresses */
13086/** Peripheral RFSYS base address */
13087#define RFSYS_BASE (0x40041000u)
13088/** Peripheral RFSYS base pointer */
13089#define RFSYS ((RFSYS_TypeDef *)RFSYS_BASE)
13090/** Array initializer of RFSYS peripheral base addresses */
13091#define RFSYS_BASE_ADDRS { RFSYS_BASE }
13092/** Array initializer of RFSYS peripheral base pointers */
13093#define RFSYS_BASE_PTRS { RFSYS }
13094
13095/*!
13096 * @}
13097 */ /* end of group RFSYS_Peripheral_Access_Layer */
13098
13099
13100/* ----------------------------------------------------------------------------
13101 -- RFVBAT Peripheral Access Layer
13102 ---------------------------------------------------------------------------- */
13103
13104/*!
13105 * @addtogroup RFVBAT_Peripheral_Access_Layer RFVBAT Peripheral Access Layer
13106 * @{
13107 */
13108
13109/** RFVBAT - Register Layout Typedef */
13110typedef struct {
13111 __IO uint32_t REG[8]; /**< VBAT register file register, array offset: 0x0, array step: 0x4 */
13112} RFVBAT_TypeDef;
13113
13114/* ----------------------------------------------------------------------------
13115 -- RFVBAT Register Masks
13116 ---------------------------------------------------------------------------- */
13117
13118/*!
13119 * @addtogroup RFVBAT_Register_Masks RFVBAT Register Masks
13120 * @{
13121 */
13122
13123/*! @name REG - VBAT register file register */
13124#define RFVBAT_REG_LL_MASK (0xFFU)
13125#define RFVBAT_REG_LL_SHIFT (0U)
13126#define RFVBAT_REG_LL_SET(x) (((uint32_t)(((uint32_t)(x)) << RFVBAT_REG_LL_SHIFT)) & RFVBAT_REG_LL_MASK)
13127#define RFVBAT_REG_LL RFVBAT_REG_LL_MASK
13128#define RFVBAT_REG_LH_MASK (0xFF00U)
13129#define RFVBAT_REG_LH_SHIFT (8U)
13130#define RFVBAT_REG_LH_SET(x) (((uint32_t)(((uint32_t)(x)) << RFVBAT_REG_LH_SHIFT)) & RFVBAT_REG_LH_MASK)
13131#define RFVBAT_REG_LH RFVBAT_REG_LH_MASK
13132#define RFVBAT_REG_HL_MASK (0xFF0000U)
13133#define RFVBAT_REG_HL_SHIFT (16U)
13134#define RFVBAT_REG_HL_SET(x) (((uint32_t)(((uint32_t)(x)) << RFVBAT_REG_HL_SHIFT)) & RFVBAT_REG_HL_MASK)
13135#define RFVBAT_REG_HL RFVBAT_REG_HL_MASK
13136#define RFVBAT_REG_HH_MASK (0xFF000000U)
13137#define RFVBAT_REG_HH_SHIFT (24U)
13138#define RFVBAT_REG_HH_SET(x) (((uint32_t)(((uint32_t)(x)) << RFVBAT_REG_HH_SHIFT)) & RFVBAT_REG_HH_MASK)
13139#define RFVBAT_REG_HH RFVBAT_REG_HH_MASK
13140
13141/* The count of RFVBAT_REG */
13142#define RFVBAT_REG_COUNT (8U)
13143
13144
13145/*!
13146 * @}
13147 */ /* end of group RFVBAT_Register_Masks */
13148
13149
13150/* RFVBAT - Peripheral instance base addresses */
13151/** Peripheral RFVBAT base address */
13152#define RFVBAT_BASE (0x4003E000u)
13153/** Peripheral RFVBAT base pointer */
13154#define RFVBAT ((RFVBAT_TypeDef *)RFVBAT_BASE)
13155/** Array initializer of RFVBAT peripheral base addresses */
13156#define RFVBAT_BASE_ADDRS { RFVBAT_BASE }
13157/** Array initializer of RFVBAT peripheral base pointers */
13158#define RFVBAT_BASE_PTRS { RFVBAT }
13159
13160/*!
13161 * @}
13162 */ /* end of group RFVBAT_Peripheral_Access_Layer */
13163
13164
13165/* ----------------------------------------------------------------------------
13166 -- RNG Peripheral Access Layer
13167 ---------------------------------------------------------------------------- */
13168
13169/*!
13170 * @addtogroup RNG_Peripheral_Access_Layer RNG Peripheral Access Layer
13171 * @{
13172 */
13173
13174/** RNG - Register Layout Typedef */
13175typedef struct {
13176 __IO uint32_t CR; /**< RNGA Control Register, offset: 0x0 */
13177 __I uint32_t SR; /**< RNGA Status Register, offset: 0x4 */
13178 __O uint32_t ER; /**< RNGA Entropy Register, offset: 0x8 */
13179 __I uint32_t OR; /**< RNGA Output Register, offset: 0xC */
13180} RNG_TypeDef;
13181
13182/* ----------------------------------------------------------------------------
13183 -- RNG Register Masks
13184 ---------------------------------------------------------------------------- */
13185
13186/*!
13187 * @addtogroup RNG_Register_Masks RNG Register Masks
13188 * @{
13189 */
13190
13191/*! @name CR - RNGA Control Register */
13192#define RNG_CR_GO_MASK (0x1U)
13193#define RNG_CR_GO_SHIFT (0U)
13194#define RNG_CR_GO_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_GO_SHIFT)) & RNG_CR_GO_MASK)
13195#define RNG_CR_GO RNG_CR_GO_MASK
13196#define RNG_CR_HA_MASK (0x2U)
13197#define RNG_CR_HA_SHIFT (1U)
13198#define RNG_CR_HA_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_HA_SHIFT)) & RNG_CR_HA_MASK)
13199#define RNG_CR_HA RNG_CR_HA_MASK
13200#define RNG_CR_INTM_MASK (0x4U)
13201#define RNG_CR_INTM_SHIFT (2U)
13202#define RNG_CR_INTM_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_INTM_SHIFT)) & RNG_CR_INTM_MASK)
13203#define RNG_CR_INTM RNG_CR_INTM_MASK
13204#define RNG_CR_CLRI_MASK (0x8U)
13205#define RNG_CR_CLRI_SHIFT (3U)
13206#define RNG_CR_CLRI_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_CLRI_SHIFT)) & RNG_CR_CLRI_MASK)
13207#define RNG_CR_CLRI RNG_CR_CLRI_MASK
13208#define RNG_CR_SLP_MASK (0x10U)
13209#define RNG_CR_SLP_SHIFT (4U)
13210#define RNG_CR_SLP_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_SLP_SHIFT)) & RNG_CR_SLP_MASK)
13211#define RNG_CR_SLP RNG_CR_SLP_MASK
13212
13213/*! @name SR - RNGA Status Register */
13214#define RNG_SR_SECV_MASK (0x1U)
13215#define RNG_SR_SECV_SHIFT (0U)
13216#define RNG_SR_SECV_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SECV_SHIFT)) & RNG_SR_SECV_MASK)
13217#define RNG_SR_SECV RNG_SR_SECV_MASK
13218#define RNG_SR_LRS_MASK (0x2U)
13219#define RNG_SR_LRS_SHIFT (1U)
13220#define RNG_SR_LRS_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_LRS_SHIFT)) & RNG_SR_LRS_MASK)
13221#define RNG_SR_LRS RNG_SR_LRS_MASK
13222#define RNG_SR_ORU_MASK (0x4U)
13223#define RNG_SR_ORU_SHIFT (2U)
13224#define RNG_SR_ORU_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ORU_SHIFT)) & RNG_SR_ORU_MASK)
13225#define RNG_SR_ORU RNG_SR_ORU_MASK
13226#define RNG_SR_ERRI_MASK (0x8U)
13227#define RNG_SR_ERRI_SHIFT (3U)
13228#define RNG_SR_ERRI_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ERRI_SHIFT)) & RNG_SR_ERRI_MASK)
13229#define RNG_SR_ERRI RNG_SR_ERRI_MASK
13230#define RNG_SR_SLP_MASK (0x10U)
13231#define RNG_SR_SLP_SHIFT (4U)
13232#define RNG_SR_SLP_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SLP_SHIFT)) & RNG_SR_SLP_MASK)
13233#define RNG_SR_SLP RNG_SR_SLP_MASK
13234#define RNG_SR_OREG_LVL_MASK (0xFF00U)
13235#define RNG_SR_OREG_LVL_SHIFT (8U)
13236#define RNG_SR_OREG_LVL_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_LVL_SHIFT)) & RNG_SR_OREG_LVL_MASK)
13237#define RNG_SR_OREG_LVL RNG_SR_OREG_LVL_MASK
13238#define RNG_SR_OREG_SIZE_MASK (0xFF0000U)
13239#define RNG_SR_OREG_SIZE_SHIFT (16U)
13240#define RNG_SR_OREG_SIZE_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_SIZE_SHIFT)) & RNG_SR_OREG_SIZE_MASK)
13241#define RNG_SR_OREG_SIZE RNG_SR_OREG_SIZE_MASK
13242
13243/*! @name ER - RNGA Entropy Register */
13244#define RNG_ER_EXT_ENT_MASK (0xFFFFFFFFU)
13245#define RNG_ER_EXT_ENT_SHIFT (0U)
13246#define RNG_ER_EXT_ENT_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_ER_EXT_ENT_SHIFT)) & RNG_ER_EXT_ENT_MASK)
13247#define RNG_ER_EXT_ENT RNG_ER_EXT_ENT_MASK
13248
13249/*! @name OR - RNGA Output Register */
13250#define RNG_OR_RANDOUT_MASK (0xFFFFFFFFU)
13251#define RNG_OR_RANDOUT_SHIFT (0U)
13252#define RNG_OR_RANDOUT_SET(x) (((uint32_t)(((uint32_t)(x)) << RNG_OR_RANDOUT_SHIFT)) & RNG_OR_RANDOUT_MASK)
13253#define RNG_OR_RANDOUT RNG_OR_RANDOUT_MASK
13254
13255
13256/*!
13257 * @}
13258 */ /* end of group RNG_Register_Masks */
13259
13260
13261/* RNG - Peripheral instance base addresses */
13262/** Peripheral RNG base address */
13263#define RNG_BASE (0x400A0000u)
13264/** Peripheral RNG base pointer */
13265#define RNG ((RNG_TypeDef *)RNG_BASE)
13266/** Array initializer of RNG peripheral base addresses */
13267#define RNG_BASE_ADDRS { RNG_BASE }
13268/** Array initializer of RNG peripheral base pointers */
13269#define RNG_BASE_PTRS { RNG }
13270/** Interrupt vectors for the RNG peripheral type */
13271#define RNG_IRQS { RNG_IRQn }
13272
13273/*!
13274 * @}
13275 */ /* end of group RNG_Peripheral_Access_Layer */
13276
13277
13278/* ----------------------------------------------------------------------------
13279 -- RTC Peripheral Access Layer
13280 ---------------------------------------------------------------------------- */
13281
13282/*!
13283 * @addtogroup RTC_Peripheral_Access_Layer RTC Peripheral Access Layer
13284 * @{
13285 */
13286
13287/** RTC - Register Layout Typedef */
13288typedef struct {
13289 __IO uint32_t TSR; /**< RTC Time Seconds Register, offset: 0x0 */
13290 __IO uint32_t TPR; /**< RTC Time Prescaler Register, offset: 0x4 */
13291 __IO uint32_t TAR; /**< RTC Time Alarm Register, offset: 0x8 */
13292 __IO uint32_t TCR; /**< RTC Time Compensation Register, offset: 0xC */
13293 __IO uint32_t CR; /**< RTC Control Register, offset: 0x10 */
13294 __IO uint32_t SR; /**< RTC Status Register, offset: 0x14 */
13295 __IO uint32_t LR; /**< RTC Lock Register, offset: 0x18 */
13296 __IO uint32_t IER; /**< RTC Interrupt Enable Register, offset: 0x1C */
13297 __I uint32_t TTSR; /**< RTC Tamper Time Seconds Register, offset: 0x20 */
13298 __IO uint32_t MER; /**< RTC Monotonic Enable Register, offset: 0x24 */
13299 __IO uint32_t MCLR; /**< RTC Monotonic Counter Low Register, offset: 0x28 */
13300 __IO uint32_t MCHR; /**< RTC Monotonic Counter High Register, offset: 0x2C */
13301 uint8_t RESERVED_0[2000];
13302 __IO uint32_t WAR; /**< RTC Write Access Register, offset: 0x800 */
13303 __IO uint32_t RAR; /**< RTC Read Access Register, offset: 0x804 */
13304} RTC_TypeDef;
13305
13306/* ----------------------------------------------------------------------------
13307 -- RTC Register Masks
13308 ---------------------------------------------------------------------------- */
13309
13310/*!
13311 * @addtogroup RTC_Register_Masks RTC Register Masks
13312 * @{
13313 */
13314
13315/*! @name TSR - RTC Time Seconds Register */
13316#define RTC_TSR_TSR_MASK (0xFFFFFFFFU)
13317#define RTC_TSR_TSR_SHIFT (0U)
13318#define RTC_TSR_TSR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_TSR_TSR_SHIFT)) & RTC_TSR_TSR_MASK)
13319#define RTC_TSR_TSR RTC_TSR_TSR_MASK
13320
13321/*! @name TPR - RTC Time Prescaler Register */
13322#define RTC_TPR_TPR_MASK (0xFFFFU)
13323#define RTC_TPR_TPR_SHIFT (0U)
13324#define RTC_TPR_TPR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_TPR_TPR_SHIFT)) & RTC_TPR_TPR_MASK)
13325#define RTC_TPR_TPR RTC_TPR_TPR_MASK
13326
13327/*! @name TAR - RTC Time Alarm Register */
13328#define RTC_TAR_TAR_MASK (0xFFFFFFFFU)
13329#define RTC_TAR_TAR_SHIFT (0U)
13330#define RTC_TAR_TAR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_TAR_TAR_SHIFT)) & RTC_TAR_TAR_MASK)
13331#define RTC_TAR_TAR RTC_TAR_TAR_MASK
13332
13333/*! @name TCR - RTC Time Compensation Register */
13334#define RTC_TCR_TCR_MASK (0xFFU)
13335#define RTC_TCR_TCR_SHIFT (0U)
13336#define RTC_TCR_TCR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_TCR_SHIFT)) & RTC_TCR_TCR_MASK)
13337#define RTC_TCR_TCR RTC_TCR_TCR_MASK
13338#define RTC_TCR_CIR_MASK (0xFF00U)
13339#define RTC_TCR_CIR_SHIFT (8U)
13340#define RTC_TCR_CIR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_CIR_SHIFT)) & RTC_TCR_CIR_MASK)
13341#define RTC_TCR_CIR RTC_TCR_CIR_MASK
13342#define RTC_TCR_TCV_MASK (0xFF0000U)
13343#define RTC_TCR_TCV_SHIFT (16U)
13344#define RTC_TCR_TCV_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_TCV_SHIFT)) & RTC_TCR_TCV_MASK)
13345#define RTC_TCR_TCV RTC_TCR_TCV_MASK
13346#define RTC_TCR_CIC_MASK (0xFF000000U)
13347#define RTC_TCR_CIC_SHIFT (24U)
13348#define RTC_TCR_CIC_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_CIC_SHIFT)) & RTC_TCR_CIC_MASK)
13349#define RTC_TCR_CIC RTC_TCR_CIC_MASK
13350
13351/*! @name CR - RTC Control Register */
13352#define RTC_CR_SWR_MASK (0x1U)
13353#define RTC_CR_SWR_SHIFT (0U)
13354#define RTC_CR_SWR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SWR_SHIFT)) & RTC_CR_SWR_MASK)
13355#define RTC_CR_SWR RTC_CR_SWR_MASK
13356#define RTC_CR_WPE_MASK (0x2U)
13357#define RTC_CR_WPE_SHIFT (1U)
13358#define RTC_CR_WPE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_WPE_SHIFT)) & RTC_CR_WPE_MASK)
13359#define RTC_CR_WPE RTC_CR_WPE_MASK
13360#define RTC_CR_SUP_MASK (0x4U)
13361#define RTC_CR_SUP_SHIFT (2U)
13362#define RTC_CR_SUP_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SUP_SHIFT)) & RTC_CR_SUP_MASK)
13363#define RTC_CR_SUP RTC_CR_SUP_MASK
13364#define RTC_CR_UM_MASK (0x8U)
13365#define RTC_CR_UM_SHIFT (3U)
13366#define RTC_CR_UM_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_UM_SHIFT)) & RTC_CR_UM_MASK)
13367#define RTC_CR_UM RTC_CR_UM_MASK
13368#define RTC_CR_WPS_MASK (0x10U)
13369#define RTC_CR_WPS_SHIFT (4U)
13370#define RTC_CR_WPS_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_WPS_SHIFT)) & RTC_CR_WPS_MASK)
13371#define RTC_CR_WPS RTC_CR_WPS_MASK
13372#define RTC_CR_OSCE_MASK (0x100U)
13373#define RTC_CR_OSCE_SHIFT (8U)
13374#define RTC_CR_OSCE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_OSCE_SHIFT)) & RTC_CR_OSCE_MASK)
13375#define RTC_CR_OSCE RTC_CR_OSCE_MASK
13376#define RTC_CR_CLKO_MASK (0x200U)
13377#define RTC_CR_CLKO_SHIFT (9U)
13378#define RTC_CR_CLKO_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_CLKO_SHIFT)) & RTC_CR_CLKO_MASK)
13379#define RTC_CR_CLKO RTC_CR_CLKO_MASK
13380#define RTC_CR_SC16P_MASK (0x400U)
13381#define RTC_CR_SC16P_SHIFT (10U)
13382#define RTC_CR_SC16P_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SC16P_SHIFT)) & RTC_CR_SC16P_MASK)
13383#define RTC_CR_SC16P RTC_CR_SC16P_MASK
13384#define RTC_CR_SC8P_MASK (0x800U)
13385#define RTC_CR_SC8P_SHIFT (11U)
13386#define RTC_CR_SC8P_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SC8P_SHIFT)) & RTC_CR_SC8P_MASK)
13387#define RTC_CR_SC8P RTC_CR_SC8P_MASK
13388#define RTC_CR_SC4P_MASK (0x1000U)
13389#define RTC_CR_SC4P_SHIFT (12U)
13390#define RTC_CR_SC4P_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SC4P_SHIFT)) & RTC_CR_SC4P_MASK)
13391#define RTC_CR_SC4P RTC_CR_SC4P_MASK
13392#define RTC_CR_SC2P_MASK (0x2000U)
13393#define RTC_CR_SC2P_SHIFT (13U)
13394#define RTC_CR_SC2P_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SC2P_SHIFT)) & RTC_CR_SC2P_MASK)
13395#define RTC_CR_SC2P RTC_CR_SC2P_MASK
13396
13397/*! @name SR - RTC Status Register */
13398#define RTC_SR_TIF_MASK (0x1U)
13399#define RTC_SR_TIF_SHIFT (0U)
13400#define RTC_SR_TIF_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_TIF_SHIFT)) & RTC_SR_TIF_MASK)
13401#define RTC_SR_TIF RTC_SR_TIF_MASK
13402#define RTC_SR_TOF_MASK (0x2U)
13403#define RTC_SR_TOF_SHIFT (1U)
13404#define RTC_SR_TOF_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_TOF_SHIFT)) & RTC_SR_TOF_MASK)
13405#define RTC_SR_TOF RTC_SR_TOF_MASK
13406#define RTC_SR_TAF_MASK (0x4U)
13407#define RTC_SR_TAF_SHIFT (2U)
13408#define RTC_SR_TAF_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_TAF_SHIFT)) & RTC_SR_TAF_MASK)
13409#define RTC_SR_TAF RTC_SR_TAF_MASK
13410#define RTC_SR_MOF_MASK (0x8U)
13411#define RTC_SR_MOF_SHIFT (3U)
13412#define RTC_SR_MOF_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_MOF_SHIFT)) & RTC_SR_MOF_MASK)
13413#define RTC_SR_MOF RTC_SR_MOF_MASK
13414#define RTC_SR_TCE_MASK (0x10U)
13415#define RTC_SR_TCE_SHIFT (4U)
13416#define RTC_SR_TCE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_TCE_SHIFT)) & RTC_SR_TCE_MASK)
13417#define RTC_SR_TCE RTC_SR_TCE_MASK
13418
13419/*! @name LR - RTC Lock Register */
13420#define RTC_LR_TCL_MASK (0x8U)
13421#define RTC_LR_TCL_SHIFT (3U)
13422#define RTC_LR_TCL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_TCL_SHIFT)) & RTC_LR_TCL_MASK)
13423#define RTC_LR_TCL RTC_LR_TCL_MASK
13424#define RTC_LR_CRL_MASK (0x10U)
13425#define RTC_LR_CRL_SHIFT (4U)
13426#define RTC_LR_CRL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_CRL_SHIFT)) & RTC_LR_CRL_MASK)
13427#define RTC_LR_CRL RTC_LR_CRL_MASK
13428#define RTC_LR_SRL_MASK (0x20U)
13429#define RTC_LR_SRL_SHIFT (5U)
13430#define RTC_LR_SRL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_SRL_SHIFT)) & RTC_LR_SRL_MASK)
13431#define RTC_LR_SRL RTC_LR_SRL_MASK
13432#define RTC_LR_LRL_MASK (0x40U)
13433#define RTC_LR_LRL_SHIFT (6U)
13434#define RTC_LR_LRL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_LRL_SHIFT)) & RTC_LR_LRL_MASK)
13435#define RTC_LR_LRL RTC_LR_LRL_MASK
13436#define RTC_LR_TTSL_MASK (0x100U)
13437#define RTC_LR_TTSL_SHIFT (8U)
13438#define RTC_LR_TTSL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_TTSL_SHIFT)) & RTC_LR_TTSL_MASK)
13439#define RTC_LR_TTSL RTC_LR_TTSL_MASK
13440#define RTC_LR_MEL_MASK (0x200U)
13441#define RTC_LR_MEL_SHIFT (9U)
13442#define RTC_LR_MEL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_MEL_SHIFT)) & RTC_LR_MEL_MASK)
13443#define RTC_LR_MEL RTC_LR_MEL_MASK
13444#define RTC_LR_MCLL_MASK (0x400U)
13445#define RTC_LR_MCLL_SHIFT (10U)
13446#define RTC_LR_MCLL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_MCLL_SHIFT)) & RTC_LR_MCLL_MASK)
13447#define RTC_LR_MCLL RTC_LR_MCLL_MASK
13448#define RTC_LR_MCHL_MASK (0x800U)
13449#define RTC_LR_MCHL_SHIFT (11U)
13450#define RTC_LR_MCHL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_MCHL_SHIFT)) & RTC_LR_MCHL_MASK)
13451#define RTC_LR_MCHL RTC_LR_MCHL_MASK
13452
13453/*! @name IER - RTC Interrupt Enable Register */
13454#define RTC_IER_TIIE_MASK (0x1U)
13455#define RTC_IER_TIIE_SHIFT (0U)
13456#define RTC_IER_TIIE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_TIIE_SHIFT)) & RTC_IER_TIIE_MASK)
13457#define RTC_IER_TIIE RTC_IER_TIIE_MASK
13458#define RTC_IER_TOIE_MASK (0x2U)
13459#define RTC_IER_TOIE_SHIFT (1U)
13460#define RTC_IER_TOIE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_TOIE_SHIFT)) & RTC_IER_TOIE_MASK)
13461#define RTC_IER_TOIE RTC_IER_TOIE_MASK
13462#define RTC_IER_TAIE_MASK (0x4U)
13463#define RTC_IER_TAIE_SHIFT (2U)
13464#define RTC_IER_TAIE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_TAIE_SHIFT)) & RTC_IER_TAIE_MASK)
13465#define RTC_IER_TAIE RTC_IER_TAIE_MASK
13466#define RTC_IER_MOIE_MASK (0x8U)
13467#define RTC_IER_MOIE_SHIFT (3U)
13468#define RTC_IER_MOIE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_MOIE_SHIFT)) & RTC_IER_MOIE_MASK)
13469#define RTC_IER_MOIE RTC_IER_MOIE_MASK
13470#define RTC_IER_TSIE_MASK (0x10U)
13471#define RTC_IER_TSIE_SHIFT (4U)
13472#define RTC_IER_TSIE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_TSIE_SHIFT)) & RTC_IER_TSIE_MASK)
13473#define RTC_IER_TSIE RTC_IER_TSIE_MASK
13474#define RTC_IER_WPON_MASK (0x80U)
13475#define RTC_IER_WPON_SHIFT (7U)
13476#define RTC_IER_WPON_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_WPON_SHIFT)) & RTC_IER_WPON_MASK)
13477#define RTC_IER_WPON RTC_IER_WPON_MASK
13478
13479/*! @name TTSR - RTC Tamper Time Seconds Register */
13480#define RTC_TTSR_TTS_MASK (0xFFFFFFFFU)
13481#define RTC_TTSR_TTS_SHIFT (0U)
13482#define RTC_TTSR_TTS_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_TTSR_TTS_SHIFT)) & RTC_TTSR_TTS_MASK)
13483#define RTC_TTSR_TTS RTC_TTSR_TTS_MASK
13484
13485/*! @name MER - RTC Monotonic Enable Register */
13486#define RTC_MER_MCE_MASK (0x10U)
13487#define RTC_MER_MCE_SHIFT (4U)
13488#define RTC_MER_MCE_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_MER_MCE_SHIFT)) & RTC_MER_MCE_MASK)
13489#define RTC_MER_MCE RTC_MER_MCE_MASK
13490
13491/*! @name MCLR - RTC Monotonic Counter Low Register */
13492#define RTC_MCLR_MCL_MASK (0xFFFFFFFFU)
13493#define RTC_MCLR_MCL_SHIFT (0U)
13494#define RTC_MCLR_MCL_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_MCLR_MCL_SHIFT)) & RTC_MCLR_MCL_MASK)
13495#define RTC_MCLR_MCL RTC_MCLR_MCL_MASK
13496
13497/*! @name MCHR - RTC Monotonic Counter High Register */
13498#define RTC_MCHR_MCH_MASK (0xFFFFFFFFU)
13499#define RTC_MCHR_MCH_SHIFT (0U)
13500#define RTC_MCHR_MCH_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_MCHR_MCH_SHIFT)) & RTC_MCHR_MCH_MASK)
13501#define RTC_MCHR_MCH RTC_MCHR_MCH_MASK
13502
13503/*! @name WAR - RTC Write Access Register */
13504#define RTC_WAR_TSRW_MASK (0x1U)
13505#define RTC_WAR_TSRW_SHIFT (0U)
13506#define RTC_WAR_TSRW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_TSRW_SHIFT)) & RTC_WAR_TSRW_MASK)
13507#define RTC_WAR_TSRW RTC_WAR_TSRW_MASK
13508#define RTC_WAR_TPRW_MASK (0x2U)
13509#define RTC_WAR_TPRW_SHIFT (1U)
13510#define RTC_WAR_TPRW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_TPRW_SHIFT)) & RTC_WAR_TPRW_MASK)
13511#define RTC_WAR_TPRW RTC_WAR_TPRW_MASK
13512#define RTC_WAR_TARW_MASK (0x4U)
13513#define RTC_WAR_TARW_SHIFT (2U)
13514#define RTC_WAR_TARW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_TARW_SHIFT)) & RTC_WAR_TARW_MASK)
13515#define RTC_WAR_TARW RTC_WAR_TARW_MASK
13516#define RTC_WAR_TCRW_MASK (0x8U)
13517#define RTC_WAR_TCRW_SHIFT (3U)
13518#define RTC_WAR_TCRW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_TCRW_SHIFT)) & RTC_WAR_TCRW_MASK)
13519#define RTC_WAR_TCRW RTC_WAR_TCRW_MASK
13520#define RTC_WAR_CRW_MASK (0x10U)
13521#define RTC_WAR_CRW_SHIFT (4U)
13522#define RTC_WAR_CRW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_CRW_SHIFT)) & RTC_WAR_CRW_MASK)
13523#define RTC_WAR_CRW RTC_WAR_CRW_MASK
13524#define RTC_WAR_SRW_MASK (0x20U)
13525#define RTC_WAR_SRW_SHIFT (5U)
13526#define RTC_WAR_SRW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_SRW_SHIFT)) & RTC_WAR_SRW_MASK)
13527#define RTC_WAR_SRW RTC_WAR_SRW_MASK
13528#define RTC_WAR_LRW_MASK (0x40U)
13529#define RTC_WAR_LRW_SHIFT (6U)
13530#define RTC_WAR_LRW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_LRW_SHIFT)) & RTC_WAR_LRW_MASK)
13531#define RTC_WAR_LRW RTC_WAR_LRW_MASK
13532#define RTC_WAR_IERW_MASK (0x80U)
13533#define RTC_WAR_IERW_SHIFT (7U)
13534#define RTC_WAR_IERW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_IERW_SHIFT)) & RTC_WAR_IERW_MASK)
13535#define RTC_WAR_IERW RTC_WAR_IERW_MASK
13536#define RTC_WAR_TTSW_MASK (0x100U)
13537#define RTC_WAR_TTSW_SHIFT (8U)
13538#define RTC_WAR_TTSW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_TTSW_SHIFT)) & RTC_WAR_TTSW_MASK)
13539#define RTC_WAR_TTSW RTC_WAR_TTSW_MASK
13540#define RTC_WAR_MERW_MASK (0x200U)
13541#define RTC_WAR_MERW_SHIFT (9U)
13542#define RTC_WAR_MERW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_MERW_SHIFT)) & RTC_WAR_MERW_MASK)
13543#define RTC_WAR_MERW RTC_WAR_MERW_MASK
13544#define RTC_WAR_MCLW_MASK (0x400U)
13545#define RTC_WAR_MCLW_SHIFT (10U)
13546#define RTC_WAR_MCLW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_MCLW_SHIFT)) & RTC_WAR_MCLW_MASK)
13547#define RTC_WAR_MCLW RTC_WAR_MCLW_MASK
13548#define RTC_WAR_MCHW_MASK (0x800U)
13549#define RTC_WAR_MCHW_SHIFT (11U)
13550#define RTC_WAR_MCHW_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAR_MCHW_SHIFT)) & RTC_WAR_MCHW_MASK)
13551#define RTC_WAR_MCHW RTC_WAR_MCHW_MASK
13552
13553/*! @name RAR - RTC Read Access Register */
13554#define RTC_RAR_TSRR_MASK (0x1U)
13555#define RTC_RAR_TSRR_SHIFT (0U)
13556#define RTC_RAR_TSRR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_TSRR_SHIFT)) & RTC_RAR_TSRR_MASK)
13557#define RTC_RAR_TSRR RTC_RAR_TSRR_MASK
13558#define RTC_RAR_TPRR_MASK (0x2U)
13559#define RTC_RAR_TPRR_SHIFT (1U)
13560#define RTC_RAR_TPRR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_TPRR_SHIFT)) & RTC_RAR_TPRR_MASK)
13561#define RTC_RAR_TPRR RTC_RAR_TPRR_MASK
13562#define RTC_RAR_TARR_MASK (0x4U)
13563#define RTC_RAR_TARR_SHIFT (2U)
13564#define RTC_RAR_TARR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_TARR_SHIFT)) & RTC_RAR_TARR_MASK)
13565#define RTC_RAR_TARR RTC_RAR_TARR_MASK
13566#define RTC_RAR_TCRR_MASK (0x8U)
13567#define RTC_RAR_TCRR_SHIFT (3U)
13568#define RTC_RAR_TCRR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_TCRR_SHIFT)) & RTC_RAR_TCRR_MASK)
13569#define RTC_RAR_TCRR RTC_RAR_TCRR_MASK
13570#define RTC_RAR_CRR_MASK (0x10U)
13571#define RTC_RAR_CRR_SHIFT (4U)
13572#define RTC_RAR_CRR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_CRR_SHIFT)) & RTC_RAR_CRR_MASK)
13573#define RTC_RAR_CRR RTC_RAR_CRR_MASK
13574#define RTC_RAR_SRR_MASK (0x20U)
13575#define RTC_RAR_SRR_SHIFT (5U)
13576#define RTC_RAR_SRR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_SRR_SHIFT)) & RTC_RAR_SRR_MASK)
13577#define RTC_RAR_SRR RTC_RAR_SRR_MASK
13578#define RTC_RAR_LRR_MASK (0x40U)
13579#define RTC_RAR_LRR_SHIFT (6U)
13580#define RTC_RAR_LRR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_LRR_SHIFT)) & RTC_RAR_LRR_MASK)
13581#define RTC_RAR_LRR RTC_RAR_LRR_MASK
13582#define RTC_RAR_IERR_MASK (0x80U)
13583#define RTC_RAR_IERR_SHIFT (7U)
13584#define RTC_RAR_IERR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_IERR_SHIFT)) & RTC_RAR_IERR_MASK)
13585#define RTC_RAR_IERR RTC_RAR_IERR_MASK
13586#define RTC_RAR_TTSR_MASK (0x100U)
13587#define RTC_RAR_TTSR_SHIFT (8U)
13588#define RTC_RAR_TTSR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_TTSR_SHIFT)) & RTC_RAR_TTSR_MASK)
13589#define RTC_RAR_TTSR RTC_RAR_TTSR_MASK
13590#define RTC_RAR_MERR_MASK (0x200U)
13591#define RTC_RAR_MERR_SHIFT (9U)
13592#define RTC_RAR_MERR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_MERR_SHIFT)) & RTC_RAR_MERR_MASK)
13593#define RTC_RAR_MERR RTC_RAR_MERR_MASK
13594#define RTC_RAR_MCLR_MASK (0x400U)
13595#define RTC_RAR_MCLR_SHIFT (10U)
13596#define RTC_RAR_MCLR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_MCLR_SHIFT)) & RTC_RAR_MCLR_MASK)
13597#define RTC_RAR_MCLR RTC_RAR_MCLR_MASK
13598#define RTC_RAR_MCHR_MASK (0x800U)
13599#define RTC_RAR_MCHR_SHIFT (11U)
13600#define RTC_RAR_MCHR_SET(x) (((uint32_t)(((uint32_t)(x)) << RTC_RAR_MCHR_SHIFT)) & RTC_RAR_MCHR_MASK)
13601#define RTC_RAR_MCHR RTC_RAR_MCHR_MASK
13602
13603
13604/*!
13605 * @}
13606 */ /* end of group RTC_Register_Masks */
13607
13608
13609/* RTC - Peripheral instance base addresses */
13610/** Peripheral RTC base address */
13611#define RTC_BASE (0x4003D000u)
13612/** Peripheral RTC base pointer */
13613#define RTC ((RTC_TypeDef *)RTC_BASE)
13614/** Array initializer of RTC peripheral base addresses */
13615#define RTC_BASE_ADDRS { RTC_BASE }
13616/** Array initializer of RTC peripheral base pointers */
13617#define RTC_BASE_PTRS { RTC }
13618/** Interrupt vectors for the RTC peripheral type */
13619#define RTC_IRQS { RTC_IRQn }
13620#define RTC_SECONDS_IRQS { RTC_Seconds_IRQn }
13621
13622/*!
13623 * @}
13624 */ /* end of group RTC_Peripheral_Access_Layer */
13625
13626
13627/* ----------------------------------------------------------------------------
13628 -- SDHC Peripheral Access Layer
13629 ---------------------------------------------------------------------------- */
13630
13631/*!
13632 * @addtogroup SDHC_Peripheral_Access_Layer SDHC Peripheral Access Layer
13633 * @{
13634 */
13635
13636/** SDHC - Register Layout Typedef */
13637typedef struct {
13638 __IO uint32_t DSADDR; /**< DMA System Address register, offset: 0x0 */
13639 __IO uint32_t BLKATTR; /**< Block Attributes register, offset: 0x4 */
13640 __IO uint32_t CMDARG; /**< Command Argument register, offset: 0x8 */
13641 __IO uint32_t XFERTYP; /**< Transfer Type register, offset: 0xC */
13642 __I uint32_t CMDRSP[4]; /**< Command Response 0..Command Response 3, array offset: 0x10, array step: 0x4 */
13643 __IO uint32_t DATPORT; /**< Buffer Data Port register, offset: 0x20 */
13644 __I uint32_t PRSSTAT; /**< Present State register, offset: 0x24 */
13645 __IO uint32_t PROCTL; /**< Protocol Control register, offset: 0x28 */
13646 __IO uint32_t SYSCTL; /**< System Control register, offset: 0x2C */
13647 __IO uint32_t IRQSTAT; /**< Interrupt Status register, offset: 0x30 */
13648 __IO uint32_t IRQSTATEN; /**< Interrupt Status Enable register, offset: 0x34 */
13649 __IO uint32_t IRQSIGEN; /**< Interrupt Signal Enable register, offset: 0x38 */
13650 __I uint32_t AC12ERR; /**< Auto CMD12 Error Status Register, offset: 0x3C */
13651 __I uint32_t HTCAPBLT; /**< Host Controller Capabilities, offset: 0x40 */
13652 __IO uint32_t WML; /**< Watermark Level Register, offset: 0x44 */
13653 uint8_t RESERVED_0[8];
13654 __O uint32_t FEVT; /**< Force Event register, offset: 0x50 */
13655 __I uint32_t ADMAES; /**< ADMA Error Status register, offset: 0x54 */
13656 __IO uint32_t ADSADDR; /**< ADMA System Addressregister, offset: 0x58 */
13657 uint8_t RESERVED_1[100];
13658 __IO uint32_t VENDOR; /**< Vendor Specific register, offset: 0xC0 */
13659 __IO uint32_t MMCBOOT; /**< MMC Boot register, offset: 0xC4 */
13660 uint8_t RESERVED_2[52];
13661 __I uint32_t HOSTVER; /**< Host Controller Version, offset: 0xFC */
13662} SDHC_TypeDef;
13663
13664/* ----------------------------------------------------------------------------
13665 -- SDHC Register Masks
13666 ---------------------------------------------------------------------------- */
13667
13668/*!
13669 * @addtogroup SDHC_Register_Masks SDHC Register Masks
13670 * @{
13671 */
13672
13673/*! @name DSADDR - DMA System Address register */
13674#define SDHC_DSADDR_DSADDR_MASK (0xFFFFFFFCU)
13675#define SDHC_DSADDR_DSADDR_SHIFT (2U)
13676#define SDHC_DSADDR_DSADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_DSADDR_DSADDR_SHIFT)) & SDHC_DSADDR_DSADDR_MASK)
13677#define SDHC_DSADDR_DSADDR SDHC_DSADDR_DSADDR_MASK
13678
13679/*! @name BLKATTR - Block Attributes register */
13680#define SDHC_BLKATTR_BLKSIZE_MASK (0x1FFFU)
13681#define SDHC_BLKATTR_BLKSIZE_SHIFT (0U)
13682#define SDHC_BLKATTR_BLKSIZE(x) (((uint32_t)(((uint32_t)(x)) << SDHC_BLKATTR_BLKSIZE_SHIFT)) & SDHC_BLKATTR_BLKSIZE_MASK)
13683#define SDHC_BLKATTR_BLKCNT_MASK (0xFFFF0000U)
13684#define SDHC_BLKATTR_BLKCNT_SHIFT (16U)
13685#define SDHC_BLKATTR_BLKCNT(x) (((uint32_t)(((uint32_t)(x)) << SDHC_BLKATTR_BLKCNT_SHIFT)) & SDHC_BLKATTR_BLKCNT_MASK)
13686
13687/*! @name CMDARG - Command Argument register */
13688#define SDHC_CMDARG_CMDARG_MASK (0xFFFFFFFFU)
13689#define SDHC_CMDARG_CMDARG_SHIFT (0U)
13690#define SDHC_CMDARG_CMDARG_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_CMDARG_CMDARG_SHIFT)) & SDHC_CMDARG_CMDARG_MASK)
13691#define SDHC_CMDARG_CMDARG SDHC_CMDARG_CMDARG_MASK
13692
13693/*! @name XFERTYP - Transfer Type register */
13694#define SDHC_XFERTYP_DMAEN_MASK (0x1U)
13695#define SDHC_XFERTYP_DMAEN_SHIFT (0U)
13696#define SDHC_XFERTYP_DMAEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_DMAEN_SHIFT)) & SDHC_XFERTYP_DMAEN_MASK)
13697#define SDHC_XFERTYP_DMAEN SDHC_XFERTYP_DMAEN_MASK
13698#define SDHC_XFERTYP_BCEN_MASK (0x2U)
13699#define SDHC_XFERTYP_BCEN_SHIFT (1U)
13700#define SDHC_XFERTYP_BCEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_BCEN_SHIFT)) & SDHC_XFERTYP_BCEN_MASK)
13701#define SDHC_XFERTYP_BCEN SDHC_XFERTYP_BCEN_MASK
13702#define SDHC_XFERTYP_AC12EN_MASK (0x4U)
13703#define SDHC_XFERTYP_AC12EN_SHIFT (2U)
13704#define SDHC_XFERTYP_AC12EN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_AC12EN_SHIFT)) & SDHC_XFERTYP_AC12EN_MASK)
13705#define SDHC_XFERTYP_AC12EN SDHC_XFERTYP_AC12EN_MASK
13706#define SDHC_XFERTYP_DTDSEL_MASK (0x10U)
13707#define SDHC_XFERTYP_DTDSEL_SHIFT (4U)
13708#define SDHC_XFERTYP_DTDSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_DTDSEL_SHIFT)) & SDHC_XFERTYP_DTDSEL_MASK)
13709#define SDHC_XFERTYP_DTDSEL SDHC_XFERTYP_DTDSEL_MASK
13710#define SDHC_XFERTYP_MSBSEL_MASK (0x20U)
13711#define SDHC_XFERTYP_MSBSEL_SHIFT (5U)
13712#define SDHC_XFERTYP_MSBSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_MSBSEL_SHIFT)) & SDHC_XFERTYP_MSBSEL_MASK)
13713#define SDHC_XFERTYP_MSBSEL SDHC_XFERTYP_MSBSEL_MASK
13714#define SDHC_XFERTYP_RSPTYP_MASK (0x30000U)
13715#define SDHC_XFERTYP_RSPTYP_SHIFT (16U)
13716#define SDHC_XFERTYP_RSPTYP(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_RSPTYP_SHIFT)) & SDHC_XFERTYP_RSPTYP_MASK)
13717#define SDHC_XFERTYP_CCCEN_MASK (0x80000U)
13718#define SDHC_XFERTYP_CCCEN_SHIFT (19U)
13719#define SDHC_XFERTYP_CCCEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_CCCEN_SHIFT)) & SDHC_XFERTYP_CCCEN_MASK)
13720#define SDHC_XFERTYP_CCCEN SDHC_XFERTYP_CCCEN_MASK
13721#define SDHC_XFERTYP_CICEN_MASK (0x100000U)
13722#define SDHC_XFERTYP_CICEN_SHIFT (20U)
13723#define SDHC_XFERTYP_CICEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_CICEN_SHIFT)) & SDHC_XFERTYP_CICEN_MASK)
13724#define SDHC_XFERTYP_CICEN SDHC_XFERTYP_CICEN_MASK
13725#define SDHC_XFERTYP_DPSEL_MASK (0x200000U)
13726#define SDHC_XFERTYP_DPSEL_SHIFT (21U)
13727#define SDHC_XFERTYP_DPSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_DPSEL_SHIFT)) & SDHC_XFERTYP_DPSEL_MASK)
13728#define SDHC_XFERTYP_DPSEL SDHC_XFERTYP_DPSEL_MASK
13729#define SDHC_XFERTYP_CMDTYP_MASK (0xC00000U)
13730#define SDHC_XFERTYP_CMDTYP_SHIFT (22U)
13731#define SDHC_XFERTYP_CMDTYP(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_CMDTYP_SHIFT)) & SDHC_XFERTYP_CMDTYP_MASK)
13732#define SDHC_XFERTYP_CMDINX_MASK (0x3F000000U)
13733#define SDHC_XFERTYP_CMDINX_SHIFT (24U)
13734#define SDHC_XFERTYP_CMDINX(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_CMDINX_SHIFT)) & SDHC_XFERTYP_CMDINX_MASK)
13735
13736/*! @name CMDRSP - Command Response 0..Command Response 3 */
13737#define SDHC_CMDRSP_CMDRSP0_MASK (0xFFFFFFFFU)
13738#define SDHC_CMDRSP_CMDRSP0_SHIFT (0U)
13739#define SDHC_CMDRSP_CMDRSP0_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_CMDRSP_CMDRSP0_SHIFT)) & SDHC_CMDRSP_CMDRSP0_MASK)
13740#define SDHC_CMDRSP_CMDRSP0 SDHC_CMDRSP_CMDRSP0_MASK
13741#define SDHC_CMDRSP_CMDRSP1_MASK (0xFFFFFFFFU)
13742#define SDHC_CMDRSP_CMDRSP1_SHIFT (0U)
13743#define SDHC_CMDRSP_CMDRSP1_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_CMDRSP_CMDRSP1_SHIFT)) & SDHC_CMDRSP_CMDRSP1_MASK)
13744#define SDHC_CMDRSP_CMDRSP1 SDHC_CMDRSP_CMDRSP1_MASK
13745#define SDHC_CMDRSP_CMDRSP2_MASK (0xFFFFFFFFU)
13746#define SDHC_CMDRSP_CMDRSP2_SHIFT (0U)
13747#define SDHC_CMDRSP_CMDRSP2_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_CMDRSP_CMDRSP2_SHIFT)) & SDHC_CMDRSP_CMDRSP2_MASK)
13748#define SDHC_CMDRSP_CMDRSP2 SDHC_CMDRSP_CMDRSP2_MASK
13749#define SDHC_CMDRSP_CMDRSP3_MASK (0xFFFFFFFFU)
13750#define SDHC_CMDRSP_CMDRSP3_SHIFT (0U)
13751#define SDHC_CMDRSP_CMDRSP3_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_CMDRSP_CMDRSP3_SHIFT)) & SDHC_CMDRSP_CMDRSP3_MASK)
13752#define SDHC_CMDRSP_CMDRSP3 SDHC_CMDRSP_CMDRSP3_MASK
13753
13754/* The count of SDHC_CMDRSP */
13755#define SDHC_CMDRSP_COUNT (4U)
13756
13757/*! @name DATPORT - Buffer Data Port register */
13758#define SDHC_DATPORT_DATCONT_MASK (0xFFFFFFFFU)
13759#define SDHC_DATPORT_DATCONT_SHIFT (0U)
13760#define SDHC_DATPORT_DATCONT_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_DATPORT_DATCONT_SHIFT)) & SDHC_DATPORT_DATCONT_MASK)
13761#define SDHC_DATPORT_DATCONT SDHC_DATPORT_DATCONT_MASK
13762
13763/*! @name PRSSTAT - Present State register */
13764#define SDHC_PRSSTAT_CIHB_MASK (0x1U)
13765#define SDHC_PRSSTAT_CIHB_SHIFT (0U)
13766#define SDHC_PRSSTAT_CIHB_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_CIHB_SHIFT)) & SDHC_PRSSTAT_CIHB_MASK)
13767#define SDHC_PRSSTAT_CIHB SDHC_PRSSTAT_CIHB_MASK
13768#define SDHC_PRSSTAT_CDIHB_MASK (0x2U)
13769#define SDHC_PRSSTAT_CDIHB_SHIFT (1U)
13770#define SDHC_PRSSTAT_CDIHB_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_CDIHB_SHIFT)) & SDHC_PRSSTAT_CDIHB_MASK)
13771#define SDHC_PRSSTAT_CDIHB SDHC_PRSSTAT_CDIHB_MASK
13772#define SDHC_PRSSTAT_DLA_MASK (0x4U)
13773#define SDHC_PRSSTAT_DLA_SHIFT (2U)
13774#define SDHC_PRSSTAT_DLA_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_DLA_SHIFT)) & SDHC_PRSSTAT_DLA_MASK)
13775#define SDHC_PRSSTAT_DLA SDHC_PRSSTAT_DLA_MASK
13776#define SDHC_PRSSTAT_SDSTB_MASK (0x8U)
13777#define SDHC_PRSSTAT_SDSTB_SHIFT (3U)
13778#define SDHC_PRSSTAT_SDSTB_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_SDSTB_SHIFT)) & SDHC_PRSSTAT_SDSTB_MASK)
13779#define SDHC_PRSSTAT_SDSTB SDHC_PRSSTAT_SDSTB_MASK
13780#define SDHC_PRSSTAT_IPGOFF_MASK (0x10U)
13781#define SDHC_PRSSTAT_IPGOFF_SHIFT (4U)
13782#define SDHC_PRSSTAT_IPGOFF_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_IPGOFF_SHIFT)) & SDHC_PRSSTAT_IPGOFF_MASK)
13783#define SDHC_PRSSTAT_IPGOFF SDHC_PRSSTAT_IPGOFF_MASK
13784#define SDHC_PRSSTAT_HCKOFF_MASK (0x20U)
13785#define SDHC_PRSSTAT_HCKOFF_SHIFT (5U)
13786#define SDHC_PRSSTAT_HCKOFF_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_HCKOFF_SHIFT)) & SDHC_PRSSTAT_HCKOFF_MASK)
13787#define SDHC_PRSSTAT_HCKOFF SDHC_PRSSTAT_HCKOFF_MASK
13788#define SDHC_PRSSTAT_PEROFF_MASK (0x40U)
13789#define SDHC_PRSSTAT_PEROFF_SHIFT (6U)
13790#define SDHC_PRSSTAT_PEROFF_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_PEROFF_SHIFT)) & SDHC_PRSSTAT_PEROFF_MASK)
13791#define SDHC_PRSSTAT_PEROFF SDHC_PRSSTAT_PEROFF_MASK
13792#define SDHC_PRSSTAT_SDOFF_MASK (0x80U)
13793#define SDHC_PRSSTAT_SDOFF_SHIFT (7U)
13794#define SDHC_PRSSTAT_SDOFF_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_SDOFF_SHIFT)) & SDHC_PRSSTAT_SDOFF_MASK)
13795#define SDHC_PRSSTAT_SDOFF SDHC_PRSSTAT_SDOFF_MASK
13796#define SDHC_PRSSTAT_WTA_MASK (0x100U)
13797#define SDHC_PRSSTAT_WTA_SHIFT (8U)
13798#define SDHC_PRSSTAT_WTA_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_WTA_SHIFT)) & SDHC_PRSSTAT_WTA_MASK)
13799#define SDHC_PRSSTAT_WTA SDHC_PRSSTAT_WTA_MASK
13800#define SDHC_PRSSTAT_RTA_MASK (0x200U)
13801#define SDHC_PRSSTAT_RTA_SHIFT (9U)
13802#define SDHC_PRSSTAT_RTA_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_RTA_SHIFT)) & SDHC_PRSSTAT_RTA_MASK)
13803#define SDHC_PRSSTAT_RTA SDHC_PRSSTAT_RTA_MASK
13804#define SDHC_PRSSTAT_BWEN_MASK (0x400U)
13805#define SDHC_PRSSTAT_BWEN_SHIFT (10U)
13806#define SDHC_PRSSTAT_BWEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_BWEN_SHIFT)) & SDHC_PRSSTAT_BWEN_MASK)
13807#define SDHC_PRSSTAT_BWEN SDHC_PRSSTAT_BWEN_MASK
13808#define SDHC_PRSSTAT_BREN_MASK (0x800U)
13809#define SDHC_PRSSTAT_BREN_SHIFT (11U)
13810#define SDHC_PRSSTAT_BREN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_BREN_SHIFT)) & SDHC_PRSSTAT_BREN_MASK)
13811#define SDHC_PRSSTAT_BREN SDHC_PRSSTAT_BREN_MASK
13812#define SDHC_PRSSTAT_CINS_MASK (0x10000U)
13813#define SDHC_PRSSTAT_CINS_SHIFT (16U)
13814#define SDHC_PRSSTAT_CINS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_CINS_SHIFT)) & SDHC_PRSSTAT_CINS_MASK)
13815#define SDHC_PRSSTAT_CINS SDHC_PRSSTAT_CINS_MASK
13816#define SDHC_PRSSTAT_CLSL_MASK (0x800000U)
13817#define SDHC_PRSSTAT_CLSL_SHIFT (23U)
13818#define SDHC_PRSSTAT_CLSL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_CLSL_SHIFT)) & SDHC_PRSSTAT_CLSL_MASK)
13819#define SDHC_PRSSTAT_CLSL SDHC_PRSSTAT_CLSL_MASK
13820#define SDHC_PRSSTAT_DLSL_MASK (0xFF000000U)
13821#define SDHC_PRSSTAT_DLSL_SHIFT (24U)
13822#define SDHC_PRSSTAT_DLSL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_DLSL_SHIFT)) & SDHC_PRSSTAT_DLSL_MASK)
13823#define SDHC_PRSSTAT_DLSL SDHC_PRSSTAT_DLSL_MASK
13824
13825/*! @name PROCTL - Protocol Control register */
13826#define SDHC_PROCTL_LCTL_MASK (0x1U)
13827#define SDHC_PROCTL_LCTL_SHIFT (0U)
13828#define SDHC_PROCTL_LCTL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_LCTL_SHIFT)) & SDHC_PROCTL_LCTL_MASK)
13829#define SDHC_PROCTL_LCTL SDHC_PROCTL_LCTL_MASK
13830#define SDHC_PROCTL_DTW_MASK (0x6U)
13831#define SDHC_PROCTL_DTW_SHIFT (1U)
13832#define SDHC_PROCTL_DTW(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_DTW_SHIFT)) & SDHC_PROCTL_DTW_MASK)
13833#define SDHC_PROCTL_D3CD_MASK (0x8U)
13834#define SDHC_PROCTL_D3CD_SHIFT (3U)
13835#define SDHC_PROCTL_D3CD_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_D3CD_SHIFT)) & SDHC_PROCTL_D3CD_MASK)
13836#define SDHC_PROCTL_D3CD SDHC_PROCTL_D3CD_MASK
13837#define SDHC_PROCTL_EMODE_MASK (0x30U)
13838#define SDHC_PROCTL_EMODE_SHIFT (4U)
13839#define SDHC_PROCTL_EMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_EMODE_SHIFT)) & SDHC_PROCTL_EMODE_MASK)
13840#define SDHC_PROCTL_EMODE SDHC_PROCTL_EMODE_MASK
13841#define SDHC_PROCTL_CDTL_MASK (0x40U)
13842#define SDHC_PROCTL_CDTL_SHIFT (6U)
13843#define SDHC_PROCTL_CDTL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_CDTL_SHIFT)) & SDHC_PROCTL_CDTL_MASK)
13844#define SDHC_PROCTL_CDTL SDHC_PROCTL_CDTL_MASK
13845#define SDHC_PROCTL_CDSS_MASK (0x80U)
13846#define SDHC_PROCTL_CDSS_SHIFT (7U)
13847#define SDHC_PROCTL_CDSS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_CDSS_SHIFT)) & SDHC_PROCTL_CDSS_MASK)
13848#define SDHC_PROCTL_CDSS SDHC_PROCTL_CDSS_MASK
13849#define SDHC_PROCTL_DMAS_MASK (0x300U)
13850#define SDHC_PROCTL_DMAS_SHIFT (8U)
13851#define SDHC_PROCTL_DMAS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_DMAS_SHIFT)) & SDHC_PROCTL_DMAS_MASK)
13852#define SDHC_PROCTL_DMAS SDHC_PROCTL_DMAS_MASK
13853#define SDHC_PROCTL_SABGREQ_MASK (0x10000U)
13854#define SDHC_PROCTL_SABGREQ_SHIFT (16U)
13855#define SDHC_PROCTL_SABGREQ_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_SABGREQ_SHIFT)) & SDHC_PROCTL_SABGREQ_MASK)
13856#define SDHC_PROCTL_SABGREQ SDHC_PROCTL_SABGREQ_MASK
13857#define SDHC_PROCTL_CREQ_MASK (0x20000U)
13858#define SDHC_PROCTL_CREQ_SHIFT (17U)
13859#define SDHC_PROCTL_CREQ_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_CREQ_SHIFT)) & SDHC_PROCTL_CREQ_MASK)
13860#define SDHC_PROCTL_CREQ SDHC_PROCTL_CREQ_MASK
13861#define SDHC_PROCTL_RWCTL_MASK (0x40000U)
13862#define SDHC_PROCTL_RWCTL_SHIFT (18U)
13863#define SDHC_PROCTL_RWCTL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_RWCTL_SHIFT)) & SDHC_PROCTL_RWCTL_MASK)
13864#define SDHC_PROCTL_RWCTL SDHC_PROCTL_RWCTL_MASK
13865#define SDHC_PROCTL_IABG_MASK (0x80000U)
13866#define SDHC_PROCTL_IABG_SHIFT (19U)
13867#define SDHC_PROCTL_IABG_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_IABG_SHIFT)) & SDHC_PROCTL_IABG_MASK)
13868#define SDHC_PROCTL_IABG SDHC_PROCTL_IABG_MASK
13869#define SDHC_PROCTL_WECINT_MASK (0x1000000U)
13870#define SDHC_PROCTL_WECINT_SHIFT (24U)
13871#define SDHC_PROCTL_WECINT_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_WECINT_SHIFT)) & SDHC_PROCTL_WECINT_MASK)
13872#define SDHC_PROCTL_WECINT SDHC_PROCTL_WECINT_MASK
13873#define SDHC_PROCTL_WECINS_MASK (0x2000000U)
13874#define SDHC_PROCTL_WECINS_SHIFT (25U)
13875#define SDHC_PROCTL_WECINS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_WECINS_SHIFT)) & SDHC_PROCTL_WECINS_MASK)
13876#define SDHC_PROCTL_WECINS SDHC_PROCTL_WECINS_MASK
13877#define SDHC_PROCTL_WECRM_MASK (0x4000000U)
13878#define SDHC_PROCTL_WECRM_SHIFT (26U)
13879#define SDHC_PROCTL_WECRM_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_WECRM_SHIFT)) & SDHC_PROCTL_WECRM_MASK)
13880#define SDHC_PROCTL_WECRM SDHC_PROCTL_WECRM_MASK
13881
13882/*! @name SYSCTL - System Control register */
13883#define SDHC_SYSCTL_IPGEN_MASK (0x1U)
13884#define SDHC_SYSCTL_IPGEN_SHIFT (0U)
13885#define SDHC_SYSCTL_IPGEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_IPGEN_SHIFT)) & SDHC_SYSCTL_IPGEN_MASK)
13886#define SDHC_SYSCTL_IPGEN SDHC_SYSCTL_IPGEN_MASK
13887#define SDHC_SYSCTL_HCKEN_MASK (0x2U)
13888#define SDHC_SYSCTL_HCKEN_SHIFT (1U)
13889#define SDHC_SYSCTL_HCKEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_HCKEN_SHIFT)) & SDHC_SYSCTL_HCKEN_MASK)
13890#define SDHC_SYSCTL_HCKEN SDHC_SYSCTL_HCKEN_MASK
13891#define SDHC_SYSCTL_PEREN_MASK (0x4U)
13892#define SDHC_SYSCTL_PEREN_SHIFT (2U)
13893#define SDHC_SYSCTL_PEREN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_PEREN_SHIFT)) & SDHC_SYSCTL_PEREN_MASK)
13894#define SDHC_SYSCTL_PEREN SDHC_SYSCTL_PEREN_MASK
13895#define SDHC_SYSCTL_SDCLKEN_MASK (0x8U)
13896#define SDHC_SYSCTL_SDCLKEN_SHIFT (3U)
13897#define SDHC_SYSCTL_SDCLKEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_SDCLKEN_SHIFT)) & SDHC_SYSCTL_SDCLKEN_MASK)
13898#define SDHC_SYSCTL_SDCLKEN SDHC_SYSCTL_SDCLKEN_MASK
13899#define SDHC_SYSCTL_DVS_MASK (0xF0U)
13900#define SDHC_SYSCTL_DVS_SHIFT (4U)
13901#define SDHC_SYSCTL_DVS(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_DVS_SHIFT)) & SDHC_SYSCTL_DVS_MASK)
13902#define SDHC_SYSCTL_SDCLKFS_MASK (0xFF00U)
13903#define SDHC_SYSCTL_SDCLKFS_SHIFT (8U)
13904#define SDHC_SYSCTL_SDCLKFS(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_SDCLKFS_SHIFT)) & SDHC_SYSCTL_SDCLKFS_MASK)
13905#define SDHC_SYSCTL_DTOCV_MASK (0xF0000U)
13906#define SDHC_SYSCTL_DTOCV_SHIFT (16U)
13907#define SDHC_SYSCTL_DTOCV(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_DTOCV_SHIFT)) & SDHC_SYSCTL_DTOCV_MASK)
13908#define SDHC_SYSCTL_RSTA_MASK (0x1000000U)
13909#define SDHC_SYSCTL_RSTA_SHIFT (24U)
13910#define SDHC_SYSCTL_RSTA_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_RSTA_SHIFT)) & SDHC_SYSCTL_RSTA_MASK)
13911#define SDHC_SYSCTL_RSTA SDHC_SYSCTL_RSTA_MASK
13912#define SDHC_SYSCTL_RSTC_MASK (0x2000000U)
13913#define SDHC_SYSCTL_RSTC_SHIFT (25U)
13914#define SDHC_SYSCTL_RSTC_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_RSTC_SHIFT)) & SDHC_SYSCTL_RSTC_MASK)
13915#define SDHC_SYSCTL_RSTC SDHC_SYSCTL_RSTC_MASK
13916#define SDHC_SYSCTL_RSTD_MASK (0x4000000U)
13917#define SDHC_SYSCTL_RSTD_SHIFT (26U)
13918#define SDHC_SYSCTL_RSTD_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_RSTD_SHIFT)) & SDHC_SYSCTL_RSTD_MASK)
13919#define SDHC_SYSCTL_RSTD SDHC_SYSCTL_RSTD_MASK
13920#define SDHC_SYSCTL_INITA_MASK (0x8000000U)
13921#define SDHC_SYSCTL_INITA_SHIFT (27U)
13922#define SDHC_SYSCTL_INITA_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_INITA_SHIFT)) & SDHC_SYSCTL_INITA_MASK)
13923#define SDHC_SYSCTL_INITA SDHC_SYSCTL_INITA_MASK
13924
13925/*! @name IRQSTAT - Interrupt Status register */
13926#define SDHC_IRQSTAT_CC_MASK (0x1U)
13927#define SDHC_IRQSTAT_CC_SHIFT (0U)
13928#define SDHC_IRQSTAT_CC_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_CC_SHIFT)) & SDHC_IRQSTAT_CC_MASK)
13929#define SDHC_IRQSTAT_CC SDHC_IRQSTAT_CC_MASK
13930#define SDHC_IRQSTAT_TC_MASK (0x2U)
13931#define SDHC_IRQSTAT_TC_SHIFT (1U)
13932#define SDHC_IRQSTAT_TC_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_TC_SHIFT)) & SDHC_IRQSTAT_TC_MASK)
13933#define SDHC_IRQSTAT_TC SDHC_IRQSTAT_TC_MASK
13934#define SDHC_IRQSTAT_BGE_MASK (0x4U)
13935#define SDHC_IRQSTAT_BGE_SHIFT (2U)
13936#define SDHC_IRQSTAT_BGE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_BGE_SHIFT)) & SDHC_IRQSTAT_BGE_MASK)
13937#define SDHC_IRQSTAT_BGE SDHC_IRQSTAT_BGE_MASK
13938#define SDHC_IRQSTAT_DINT_MASK (0x8U)
13939#define SDHC_IRQSTAT_DINT_SHIFT (3U)
13940#define SDHC_IRQSTAT_DINT_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_DINT_SHIFT)) & SDHC_IRQSTAT_DINT_MASK)
13941#define SDHC_IRQSTAT_DINT SDHC_IRQSTAT_DINT_MASK
13942#define SDHC_IRQSTAT_BWR_MASK (0x10U)
13943#define SDHC_IRQSTAT_BWR_SHIFT (4U)
13944#define SDHC_IRQSTAT_BWR_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_BWR_SHIFT)) & SDHC_IRQSTAT_BWR_MASK)
13945#define SDHC_IRQSTAT_BWR SDHC_IRQSTAT_BWR_MASK
13946#define SDHC_IRQSTAT_BRR_MASK (0x20U)
13947#define SDHC_IRQSTAT_BRR_SHIFT (5U)
13948#define SDHC_IRQSTAT_BRR_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_BRR_SHIFT)) & SDHC_IRQSTAT_BRR_MASK)
13949#define SDHC_IRQSTAT_BRR SDHC_IRQSTAT_BRR_MASK
13950#define SDHC_IRQSTAT_CINS_MASK (0x40U)
13951#define SDHC_IRQSTAT_CINS_SHIFT (6U)
13952#define SDHC_IRQSTAT_CINS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_CINS_SHIFT)) & SDHC_IRQSTAT_CINS_MASK)
13953#define SDHC_IRQSTAT_CINS SDHC_IRQSTAT_CINS_MASK
13954#define SDHC_IRQSTAT_CRM_MASK (0x80U)
13955#define SDHC_IRQSTAT_CRM_SHIFT (7U)
13956#define SDHC_IRQSTAT_CRM_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_CRM_SHIFT)) & SDHC_IRQSTAT_CRM_MASK)
13957#define SDHC_IRQSTAT_CRM SDHC_IRQSTAT_CRM_MASK
13958#define SDHC_IRQSTAT_CINT_MASK (0x100U)
13959#define SDHC_IRQSTAT_CINT_SHIFT (8U)
13960#define SDHC_IRQSTAT_CINT_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_CINT_SHIFT)) & SDHC_IRQSTAT_CINT_MASK)
13961#define SDHC_IRQSTAT_CINT SDHC_IRQSTAT_CINT_MASK
13962#define SDHC_IRQSTAT_CTOE_MASK (0x10000U)
13963#define SDHC_IRQSTAT_CTOE_SHIFT (16U)
13964#define SDHC_IRQSTAT_CTOE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_CTOE_SHIFT)) & SDHC_IRQSTAT_CTOE_MASK)
13965#define SDHC_IRQSTAT_CTOE SDHC_IRQSTAT_CTOE_MASK
13966#define SDHC_IRQSTAT_CCE_MASK (0x20000U)
13967#define SDHC_IRQSTAT_CCE_SHIFT (17U)
13968#define SDHC_IRQSTAT_CCE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_CCE_SHIFT)) & SDHC_IRQSTAT_CCE_MASK)
13969#define SDHC_IRQSTAT_CCE SDHC_IRQSTAT_CCE_MASK
13970#define SDHC_IRQSTAT_CEBE_MASK (0x40000U)
13971#define SDHC_IRQSTAT_CEBE_SHIFT (18U)
13972#define SDHC_IRQSTAT_CEBE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_CEBE_SHIFT)) & SDHC_IRQSTAT_CEBE_MASK)
13973#define SDHC_IRQSTAT_CEBE SDHC_IRQSTAT_CEBE_MASK
13974#define SDHC_IRQSTAT_CIE_MASK (0x80000U)
13975#define SDHC_IRQSTAT_CIE_SHIFT (19U)
13976#define SDHC_IRQSTAT_CIE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_CIE_SHIFT)) & SDHC_IRQSTAT_CIE_MASK)
13977#define SDHC_IRQSTAT_CIE SDHC_IRQSTAT_CIE_MASK
13978#define SDHC_IRQSTAT_DTOE_MASK (0x100000U)
13979#define SDHC_IRQSTAT_DTOE_SHIFT (20U)
13980#define SDHC_IRQSTAT_DTOE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_DTOE_SHIFT)) & SDHC_IRQSTAT_DTOE_MASK)
13981#define SDHC_IRQSTAT_DTOE SDHC_IRQSTAT_DTOE_MASK
13982#define SDHC_IRQSTAT_DCE_MASK (0x200000U)
13983#define SDHC_IRQSTAT_DCE_SHIFT (21U)
13984#define SDHC_IRQSTAT_DCE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_DCE_SHIFT)) & SDHC_IRQSTAT_DCE_MASK)
13985#define SDHC_IRQSTAT_DCE SDHC_IRQSTAT_DCE_MASK
13986#define SDHC_IRQSTAT_DEBE_MASK (0x400000U)
13987#define SDHC_IRQSTAT_DEBE_SHIFT (22U)
13988#define SDHC_IRQSTAT_DEBE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_DEBE_SHIFT)) & SDHC_IRQSTAT_DEBE_MASK)
13989#define SDHC_IRQSTAT_DEBE SDHC_IRQSTAT_DEBE_MASK
13990#define SDHC_IRQSTAT_AC12E_MASK (0x1000000U)
13991#define SDHC_IRQSTAT_AC12E_SHIFT (24U)
13992#define SDHC_IRQSTAT_AC12E_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_AC12E_SHIFT)) & SDHC_IRQSTAT_AC12E_MASK)
13993#define SDHC_IRQSTAT_AC12E SDHC_IRQSTAT_AC12E_MASK
13994#define SDHC_IRQSTAT_DMAE_MASK (0x10000000U)
13995#define SDHC_IRQSTAT_DMAE_SHIFT (28U)
13996#define SDHC_IRQSTAT_DMAE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTAT_DMAE_SHIFT)) & SDHC_IRQSTAT_DMAE_MASK)
13997#define SDHC_IRQSTAT_DMAE SDHC_IRQSTAT_DMAE_MASK
13998
13999/*! @name IRQSTATEN - Interrupt Status Enable register */
14000#define SDHC_IRQSTATEN_CCSEN_MASK (0x1U)
14001#define SDHC_IRQSTATEN_CCSEN_SHIFT (0U)
14002#define SDHC_IRQSTATEN_CCSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_CCSEN_SHIFT)) & SDHC_IRQSTATEN_CCSEN_MASK)
14003#define SDHC_IRQSTATEN_CCSEN SDHC_IRQSTATEN_CCSEN_MASK
14004#define SDHC_IRQSTATEN_TCSEN_MASK (0x2U)
14005#define SDHC_IRQSTATEN_TCSEN_SHIFT (1U)
14006#define SDHC_IRQSTATEN_TCSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_TCSEN_SHIFT)) & SDHC_IRQSTATEN_TCSEN_MASK)
14007#define SDHC_IRQSTATEN_TCSEN SDHC_IRQSTATEN_TCSEN_MASK
14008#define SDHC_IRQSTATEN_BGESEN_MASK (0x4U)
14009#define SDHC_IRQSTATEN_BGESEN_SHIFT (2U)
14010#define SDHC_IRQSTATEN_BGESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_BGESEN_SHIFT)) & SDHC_IRQSTATEN_BGESEN_MASK)
14011#define SDHC_IRQSTATEN_BGESEN SDHC_IRQSTATEN_BGESEN_MASK
14012#define SDHC_IRQSTATEN_DINTSEN_MASK (0x8U)
14013#define SDHC_IRQSTATEN_DINTSEN_SHIFT (3U)
14014#define SDHC_IRQSTATEN_DINTSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_DINTSEN_SHIFT)) & SDHC_IRQSTATEN_DINTSEN_MASK)
14015#define SDHC_IRQSTATEN_DINTSEN SDHC_IRQSTATEN_DINTSEN_MASK
14016#define SDHC_IRQSTATEN_BWRSEN_MASK (0x10U)
14017#define SDHC_IRQSTATEN_BWRSEN_SHIFT (4U)
14018#define SDHC_IRQSTATEN_BWRSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_BWRSEN_SHIFT)) & SDHC_IRQSTATEN_BWRSEN_MASK)
14019#define SDHC_IRQSTATEN_BWRSEN SDHC_IRQSTATEN_BWRSEN_MASK
14020#define SDHC_IRQSTATEN_BRRSEN_MASK (0x20U)
14021#define SDHC_IRQSTATEN_BRRSEN_SHIFT (5U)
14022#define SDHC_IRQSTATEN_BRRSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_BRRSEN_SHIFT)) & SDHC_IRQSTATEN_BRRSEN_MASK)
14023#define SDHC_IRQSTATEN_BRRSEN SDHC_IRQSTATEN_BRRSEN_MASK
14024#define SDHC_IRQSTATEN_CINSEN_MASK (0x40U)
14025#define SDHC_IRQSTATEN_CINSEN_SHIFT (6U)
14026#define SDHC_IRQSTATEN_CINSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_CINSEN_SHIFT)) & SDHC_IRQSTATEN_CINSEN_MASK)
14027#define SDHC_IRQSTATEN_CINSEN SDHC_IRQSTATEN_CINSEN_MASK
14028#define SDHC_IRQSTATEN_CRMSEN_MASK (0x80U)
14029#define SDHC_IRQSTATEN_CRMSEN_SHIFT (7U)
14030#define SDHC_IRQSTATEN_CRMSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_CRMSEN_SHIFT)) & SDHC_IRQSTATEN_CRMSEN_MASK)
14031#define SDHC_IRQSTATEN_CRMSEN SDHC_IRQSTATEN_CRMSEN_MASK
14032#define SDHC_IRQSTATEN_CINTSEN_MASK (0x100U)
14033#define SDHC_IRQSTATEN_CINTSEN_SHIFT (8U)
14034#define SDHC_IRQSTATEN_CINTSEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_CINTSEN_SHIFT)) & SDHC_IRQSTATEN_CINTSEN_MASK)
14035#define SDHC_IRQSTATEN_CINTSEN SDHC_IRQSTATEN_CINTSEN_MASK
14036#define SDHC_IRQSTATEN_CTOESEN_MASK (0x10000U)
14037#define SDHC_IRQSTATEN_CTOESEN_SHIFT (16U)
14038#define SDHC_IRQSTATEN_CTOESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_CTOESEN_SHIFT)) & SDHC_IRQSTATEN_CTOESEN_MASK)
14039#define SDHC_IRQSTATEN_CTOESEN SDHC_IRQSTATEN_CTOESEN_MASK
14040#define SDHC_IRQSTATEN_CCESEN_MASK (0x20000U)
14041#define SDHC_IRQSTATEN_CCESEN_SHIFT (17U)
14042#define SDHC_IRQSTATEN_CCESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_CCESEN_SHIFT)) & SDHC_IRQSTATEN_CCESEN_MASK)
14043#define SDHC_IRQSTATEN_CCESEN SDHC_IRQSTATEN_CCESEN_MASK
14044#define SDHC_IRQSTATEN_CEBESEN_MASK (0x40000U)
14045#define SDHC_IRQSTATEN_CEBESEN_SHIFT (18U)
14046#define SDHC_IRQSTATEN_CEBESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_CEBESEN_SHIFT)) & SDHC_IRQSTATEN_CEBESEN_MASK)
14047#define SDHC_IRQSTATEN_CEBESEN SDHC_IRQSTATEN_CEBESEN_MASK
14048#define SDHC_IRQSTATEN_CIESEN_MASK (0x80000U)
14049#define SDHC_IRQSTATEN_CIESEN_SHIFT (19U)
14050#define SDHC_IRQSTATEN_CIESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_CIESEN_SHIFT)) & SDHC_IRQSTATEN_CIESEN_MASK)
14051#define SDHC_IRQSTATEN_CIESEN SDHC_IRQSTATEN_CIESEN_MASK
14052#define SDHC_IRQSTATEN_DTOESEN_MASK (0x100000U)
14053#define SDHC_IRQSTATEN_DTOESEN_SHIFT (20U)
14054#define SDHC_IRQSTATEN_DTOESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_DTOESEN_SHIFT)) & SDHC_IRQSTATEN_DTOESEN_MASK)
14055#define SDHC_IRQSTATEN_DTOESEN SDHC_IRQSTATEN_DTOESEN_MASK
14056#define SDHC_IRQSTATEN_DCESEN_MASK (0x200000U)
14057#define SDHC_IRQSTATEN_DCESEN_SHIFT (21U)
14058#define SDHC_IRQSTATEN_DCESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_DCESEN_SHIFT)) & SDHC_IRQSTATEN_DCESEN_MASK)
14059#define SDHC_IRQSTATEN_DCESEN SDHC_IRQSTATEN_DCESEN_MASK
14060#define SDHC_IRQSTATEN_DEBESEN_MASK (0x400000U)
14061#define SDHC_IRQSTATEN_DEBESEN_SHIFT (22U)
14062#define SDHC_IRQSTATEN_DEBESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_DEBESEN_SHIFT)) & SDHC_IRQSTATEN_DEBESEN_MASK)
14063#define SDHC_IRQSTATEN_DEBESEN SDHC_IRQSTATEN_DEBESEN_MASK
14064#define SDHC_IRQSTATEN_AC12ESEN_MASK (0x1000000U)
14065#define SDHC_IRQSTATEN_AC12ESEN_SHIFT (24U)
14066#define SDHC_IRQSTATEN_AC12ESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_AC12ESEN_SHIFT)) & SDHC_IRQSTATEN_AC12ESEN_MASK)
14067#define SDHC_IRQSTATEN_AC12ESEN SDHC_IRQSTATEN_AC12ESEN_MASK
14068#define SDHC_IRQSTATEN_DMAESEN_MASK (0x10000000U)
14069#define SDHC_IRQSTATEN_DMAESEN_SHIFT (28U)
14070#define SDHC_IRQSTATEN_DMAESEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSTATEN_DMAESEN_SHIFT)) & SDHC_IRQSTATEN_DMAESEN_MASK)
14071#define SDHC_IRQSTATEN_DMAESEN SDHC_IRQSTATEN_DMAESEN_MASK
14072
14073/*! @name IRQSIGEN - Interrupt Signal Enable register */
14074#define SDHC_IRQSIGEN_CCIEN_MASK (0x1U)
14075#define SDHC_IRQSIGEN_CCIEN_SHIFT (0U)
14076#define SDHC_IRQSIGEN_CCIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_CCIEN_SHIFT)) & SDHC_IRQSIGEN_CCIEN_MASK)
14077#define SDHC_IRQSIGEN_CCIEN SDHC_IRQSIGEN_CCIEN_MASK
14078#define SDHC_IRQSIGEN_TCIEN_MASK (0x2U)
14079#define SDHC_IRQSIGEN_TCIEN_SHIFT (1U)
14080#define SDHC_IRQSIGEN_TCIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_TCIEN_SHIFT)) & SDHC_IRQSIGEN_TCIEN_MASK)
14081#define SDHC_IRQSIGEN_TCIEN SDHC_IRQSIGEN_TCIEN_MASK
14082#define SDHC_IRQSIGEN_BGEIEN_MASK (0x4U)
14083#define SDHC_IRQSIGEN_BGEIEN_SHIFT (2U)
14084#define SDHC_IRQSIGEN_BGEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_BGEIEN_SHIFT)) & SDHC_IRQSIGEN_BGEIEN_MASK)
14085#define SDHC_IRQSIGEN_BGEIEN SDHC_IRQSIGEN_BGEIEN_MASK
14086#define SDHC_IRQSIGEN_DINTIEN_MASK (0x8U)
14087#define SDHC_IRQSIGEN_DINTIEN_SHIFT (3U)
14088#define SDHC_IRQSIGEN_DINTIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_DINTIEN_SHIFT)) & SDHC_IRQSIGEN_DINTIEN_MASK)
14089#define SDHC_IRQSIGEN_DINTIEN SDHC_IRQSIGEN_DINTIEN_MASK
14090#define SDHC_IRQSIGEN_BWRIEN_MASK (0x10U)
14091#define SDHC_IRQSIGEN_BWRIEN_SHIFT (4U)
14092#define SDHC_IRQSIGEN_BWRIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_BWRIEN_SHIFT)) & SDHC_IRQSIGEN_BWRIEN_MASK)
14093#define SDHC_IRQSIGEN_BWRIEN SDHC_IRQSIGEN_BWRIEN_MASK
14094#define SDHC_IRQSIGEN_BRRIEN_MASK (0x20U)
14095#define SDHC_IRQSIGEN_BRRIEN_SHIFT (5U)
14096#define SDHC_IRQSIGEN_BRRIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_BRRIEN_SHIFT)) & SDHC_IRQSIGEN_BRRIEN_MASK)
14097#define SDHC_IRQSIGEN_BRRIEN SDHC_IRQSIGEN_BRRIEN_MASK
14098#define SDHC_IRQSIGEN_CINSIEN_MASK (0x40U)
14099#define SDHC_IRQSIGEN_CINSIEN_SHIFT (6U)
14100#define SDHC_IRQSIGEN_CINSIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_CINSIEN_SHIFT)) & SDHC_IRQSIGEN_CINSIEN_MASK)
14101#define SDHC_IRQSIGEN_CINSIEN SDHC_IRQSIGEN_CINSIEN_MASK
14102#define SDHC_IRQSIGEN_CRMIEN_MASK (0x80U)
14103#define SDHC_IRQSIGEN_CRMIEN_SHIFT (7U)
14104#define SDHC_IRQSIGEN_CRMIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_CRMIEN_SHIFT)) & SDHC_IRQSIGEN_CRMIEN_MASK)
14105#define SDHC_IRQSIGEN_CRMIEN SDHC_IRQSIGEN_CRMIEN_MASK
14106#define SDHC_IRQSIGEN_CINTIEN_MASK (0x100U)
14107#define SDHC_IRQSIGEN_CINTIEN_SHIFT (8U)
14108#define SDHC_IRQSIGEN_CINTIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_CINTIEN_SHIFT)) & SDHC_IRQSIGEN_CINTIEN_MASK)
14109#define SDHC_IRQSIGEN_CINTIEN SDHC_IRQSIGEN_CINTIEN_MASK
14110#define SDHC_IRQSIGEN_CTOEIEN_MASK (0x10000U)
14111#define SDHC_IRQSIGEN_CTOEIEN_SHIFT (16U)
14112#define SDHC_IRQSIGEN_CTOEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_CTOEIEN_SHIFT)) & SDHC_IRQSIGEN_CTOEIEN_MASK)
14113#define SDHC_IRQSIGEN_CTOEIEN SDHC_IRQSIGEN_CTOEIEN_MASK
14114#define SDHC_IRQSIGEN_CCEIEN_MASK (0x20000U)
14115#define SDHC_IRQSIGEN_CCEIEN_SHIFT (17U)
14116#define SDHC_IRQSIGEN_CCEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_CCEIEN_SHIFT)) & SDHC_IRQSIGEN_CCEIEN_MASK)
14117#define SDHC_IRQSIGEN_CCEIEN SDHC_IRQSIGEN_CCEIEN_MASK
14118#define SDHC_IRQSIGEN_CEBEIEN_MASK (0x40000U)
14119#define SDHC_IRQSIGEN_CEBEIEN_SHIFT (18U)
14120#define SDHC_IRQSIGEN_CEBEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_CEBEIEN_SHIFT)) & SDHC_IRQSIGEN_CEBEIEN_MASK)
14121#define SDHC_IRQSIGEN_CEBEIEN SDHC_IRQSIGEN_CEBEIEN_MASK
14122#define SDHC_IRQSIGEN_CIEIEN_MASK (0x80000U)
14123#define SDHC_IRQSIGEN_CIEIEN_SHIFT (19U)
14124#define SDHC_IRQSIGEN_CIEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_CIEIEN_SHIFT)) & SDHC_IRQSIGEN_CIEIEN_MASK)
14125#define SDHC_IRQSIGEN_CIEIEN SDHC_IRQSIGEN_CIEIEN_MASK
14126#define SDHC_IRQSIGEN_DTOEIEN_MASK (0x100000U)
14127#define SDHC_IRQSIGEN_DTOEIEN_SHIFT (20U)
14128#define SDHC_IRQSIGEN_DTOEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_DTOEIEN_SHIFT)) & SDHC_IRQSIGEN_DTOEIEN_MASK)
14129#define SDHC_IRQSIGEN_DTOEIEN SDHC_IRQSIGEN_DTOEIEN_MASK
14130#define SDHC_IRQSIGEN_DCEIEN_MASK (0x200000U)
14131#define SDHC_IRQSIGEN_DCEIEN_SHIFT (21U)
14132#define SDHC_IRQSIGEN_DCEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_DCEIEN_SHIFT)) & SDHC_IRQSIGEN_DCEIEN_MASK)
14133#define SDHC_IRQSIGEN_DCEIEN SDHC_IRQSIGEN_DCEIEN_MASK
14134#define SDHC_IRQSIGEN_DEBEIEN_MASK (0x400000U)
14135#define SDHC_IRQSIGEN_DEBEIEN_SHIFT (22U)
14136#define SDHC_IRQSIGEN_DEBEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_DEBEIEN_SHIFT)) & SDHC_IRQSIGEN_DEBEIEN_MASK)
14137#define SDHC_IRQSIGEN_DEBEIEN SDHC_IRQSIGEN_DEBEIEN_MASK
14138#define SDHC_IRQSIGEN_AC12EIEN_MASK (0x1000000U)
14139#define SDHC_IRQSIGEN_AC12EIEN_SHIFT (24U)
14140#define SDHC_IRQSIGEN_AC12EIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_AC12EIEN_SHIFT)) & SDHC_IRQSIGEN_AC12EIEN_MASK)
14141#define SDHC_IRQSIGEN_AC12EIEN SDHC_IRQSIGEN_AC12EIEN_MASK
14142#define SDHC_IRQSIGEN_DMAEIEN_MASK (0x10000000U)
14143#define SDHC_IRQSIGEN_DMAEIEN_SHIFT (28U)
14144#define SDHC_IRQSIGEN_DMAEIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_IRQSIGEN_DMAEIEN_SHIFT)) & SDHC_IRQSIGEN_DMAEIEN_MASK)
14145#define SDHC_IRQSIGEN_DMAEIEN SDHC_IRQSIGEN_DMAEIEN_MASK
14146
14147/*! @name AC12ERR - Auto CMD12 Error Status Register */
14148#define SDHC_AC12ERR_AC12NE_MASK (0x1U)
14149#define SDHC_AC12ERR_AC12NE_SHIFT (0U)
14150#define SDHC_AC12ERR_AC12NE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_AC12ERR_AC12NE_SHIFT)) & SDHC_AC12ERR_AC12NE_MASK)
14151#define SDHC_AC12ERR_AC12NE SDHC_AC12ERR_AC12NE_MASK
14152#define SDHC_AC12ERR_AC12TOE_MASK (0x2U)
14153#define SDHC_AC12ERR_AC12TOE_SHIFT (1U)
14154#define SDHC_AC12ERR_AC12TOE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_AC12ERR_AC12TOE_SHIFT)) & SDHC_AC12ERR_AC12TOE_MASK)
14155#define SDHC_AC12ERR_AC12TOE SDHC_AC12ERR_AC12TOE_MASK
14156#define SDHC_AC12ERR_AC12EBE_MASK (0x4U)
14157#define SDHC_AC12ERR_AC12EBE_SHIFT (2U)
14158#define SDHC_AC12ERR_AC12EBE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_AC12ERR_AC12EBE_SHIFT)) & SDHC_AC12ERR_AC12EBE_MASK)
14159#define SDHC_AC12ERR_AC12EBE SDHC_AC12ERR_AC12EBE_MASK
14160#define SDHC_AC12ERR_AC12CE_MASK (0x8U)
14161#define SDHC_AC12ERR_AC12CE_SHIFT (3U)
14162#define SDHC_AC12ERR_AC12CE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_AC12ERR_AC12CE_SHIFT)) & SDHC_AC12ERR_AC12CE_MASK)
14163#define SDHC_AC12ERR_AC12CE SDHC_AC12ERR_AC12CE_MASK
14164#define SDHC_AC12ERR_AC12IE_MASK (0x10U)
14165#define SDHC_AC12ERR_AC12IE_SHIFT (4U)
14166#define SDHC_AC12ERR_AC12IE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_AC12ERR_AC12IE_SHIFT)) & SDHC_AC12ERR_AC12IE_MASK)
14167#define SDHC_AC12ERR_AC12IE SDHC_AC12ERR_AC12IE_MASK
14168#define SDHC_AC12ERR_CNIBAC12E_MASK (0x80U)
14169#define SDHC_AC12ERR_CNIBAC12E_SHIFT (7U)
14170#define SDHC_AC12ERR_CNIBAC12E_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_AC12ERR_CNIBAC12E_SHIFT)) & SDHC_AC12ERR_CNIBAC12E_MASK)
14171#define SDHC_AC12ERR_CNIBAC12E SDHC_AC12ERR_CNIBAC12E_MASK
14172
14173/*! @name HTCAPBLT - Host Controller Capabilities */
14174#define SDHC_HTCAPBLT_MBL_MASK (0x70000U)
14175#define SDHC_HTCAPBLT_MBL_SHIFT (16U)
14176#define SDHC_HTCAPBLT_MBL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HTCAPBLT_MBL_SHIFT)) & SDHC_HTCAPBLT_MBL_MASK)
14177#define SDHC_HTCAPBLT_MBL SDHC_HTCAPBLT_MBL_MASK
14178#define SDHC_HTCAPBLT_ADMAS_MASK (0x100000U)
14179#define SDHC_HTCAPBLT_ADMAS_SHIFT (20U)
14180#define SDHC_HTCAPBLT_ADMAS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HTCAPBLT_ADMAS_SHIFT)) & SDHC_HTCAPBLT_ADMAS_MASK)
14181#define SDHC_HTCAPBLT_ADMAS SDHC_HTCAPBLT_ADMAS_MASK
14182#define SDHC_HTCAPBLT_HSS_MASK (0x200000U)
14183#define SDHC_HTCAPBLT_HSS_SHIFT (21U)
14184#define SDHC_HTCAPBLT_HSS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HTCAPBLT_HSS_SHIFT)) & SDHC_HTCAPBLT_HSS_MASK)
14185#define SDHC_HTCAPBLT_HSS SDHC_HTCAPBLT_HSS_MASK
14186#define SDHC_HTCAPBLT_DMAS_MASK (0x400000U)
14187#define SDHC_HTCAPBLT_DMAS_SHIFT (22U)
14188#define SDHC_HTCAPBLT_DMAS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HTCAPBLT_DMAS_SHIFT)) & SDHC_HTCAPBLT_DMAS_MASK)
14189#define SDHC_HTCAPBLT_DMAS SDHC_HTCAPBLT_DMAS_MASK
14190#define SDHC_HTCAPBLT_SRS_MASK (0x800000U)
14191#define SDHC_HTCAPBLT_SRS_SHIFT (23U)
14192#define SDHC_HTCAPBLT_SRS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HTCAPBLT_SRS_SHIFT)) & SDHC_HTCAPBLT_SRS_MASK)
14193#define SDHC_HTCAPBLT_SRS SDHC_HTCAPBLT_SRS_MASK
14194#define SDHC_HTCAPBLT_VS33_MASK (0x1000000U)
14195#define SDHC_HTCAPBLT_VS33_SHIFT (24U)
14196#define SDHC_HTCAPBLT_VS33_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HTCAPBLT_VS33_SHIFT)) & SDHC_HTCAPBLT_VS33_MASK)
14197#define SDHC_HTCAPBLT_VS33 SDHC_HTCAPBLT_VS33_MASK
14198
14199/*! @name WML - Watermark Level Register */
14200#define SDHC_WML_RDWML_MASK (0xFFU)
14201#define SDHC_WML_RDWML_SHIFT (0U)
14202#define SDHC_WML_RDWML_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_WML_RDWML_SHIFT)) & SDHC_WML_RDWML_MASK)
14203#define SDHC_WML_RDWML SDHC_WML_RDWML_MASK
14204#define SDHC_WML_WRWML_MASK (0xFF0000U)
14205#define SDHC_WML_WRWML_SHIFT (16U)
14206#define SDHC_WML_WRWML_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_WML_WRWML_SHIFT)) & SDHC_WML_WRWML_MASK)
14207#define SDHC_WML_WRWML SDHC_WML_WRWML_MASK
14208
14209/*! @name FEVT - Force Event register */
14210#define SDHC_FEVT_AC12NE_MASK (0x1U)
14211#define SDHC_FEVT_AC12NE_SHIFT (0U)
14212#define SDHC_FEVT_AC12NE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_AC12NE_SHIFT)) & SDHC_FEVT_AC12NE_MASK)
14213#define SDHC_FEVT_AC12NE SDHC_FEVT_AC12NE_MASK
14214#define SDHC_FEVT_AC12TOE_MASK (0x2U)
14215#define SDHC_FEVT_AC12TOE_SHIFT (1U)
14216#define SDHC_FEVT_AC12TOE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_AC12TOE_SHIFT)) & SDHC_FEVT_AC12TOE_MASK)
14217#define SDHC_FEVT_AC12TOE SDHC_FEVT_AC12TOE_MASK
14218#define SDHC_FEVT_AC12CE_MASK (0x4U)
14219#define SDHC_FEVT_AC12CE_SHIFT (2U)
14220#define SDHC_FEVT_AC12CE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_AC12CE_SHIFT)) & SDHC_FEVT_AC12CE_MASK)
14221#define SDHC_FEVT_AC12CE SDHC_FEVT_AC12CE_MASK
14222#define SDHC_FEVT_AC12EBE_MASK (0x8U)
14223#define SDHC_FEVT_AC12EBE_SHIFT (3U)
14224#define SDHC_FEVT_AC12EBE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_AC12EBE_SHIFT)) & SDHC_FEVT_AC12EBE_MASK)
14225#define SDHC_FEVT_AC12EBE SDHC_FEVT_AC12EBE_MASK
14226#define SDHC_FEVT_AC12IE_MASK (0x10U)
14227#define SDHC_FEVT_AC12IE_SHIFT (4U)
14228#define SDHC_FEVT_AC12IE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_AC12IE_SHIFT)) & SDHC_FEVT_AC12IE_MASK)
14229#define SDHC_FEVT_AC12IE SDHC_FEVT_AC12IE_MASK
14230#define SDHC_FEVT_CNIBAC12E_MASK (0x80U)
14231#define SDHC_FEVT_CNIBAC12E_SHIFT (7U)
14232#define SDHC_FEVT_CNIBAC12E_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_CNIBAC12E_SHIFT)) & SDHC_FEVT_CNIBAC12E_MASK)
14233#define SDHC_FEVT_CNIBAC12E SDHC_FEVT_CNIBAC12E_MASK
14234#define SDHC_FEVT_CTOE_MASK (0x10000U)
14235#define SDHC_FEVT_CTOE_SHIFT (16U)
14236#define SDHC_FEVT_CTOE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_CTOE_SHIFT)) & SDHC_FEVT_CTOE_MASK)
14237#define SDHC_FEVT_CTOE SDHC_FEVT_CTOE_MASK
14238#define SDHC_FEVT_CCE_MASK (0x20000U)
14239#define SDHC_FEVT_CCE_SHIFT (17U)
14240#define SDHC_FEVT_CCE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_CCE_SHIFT)) & SDHC_FEVT_CCE_MASK)
14241#define SDHC_FEVT_CCE SDHC_FEVT_CCE_MASK
14242#define SDHC_FEVT_CEBE_MASK (0x40000U)
14243#define SDHC_FEVT_CEBE_SHIFT (18U)
14244#define SDHC_FEVT_CEBE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_CEBE_SHIFT)) & SDHC_FEVT_CEBE_MASK)
14245#define SDHC_FEVT_CEBE SDHC_FEVT_CEBE_MASK
14246#define SDHC_FEVT_CIE_MASK (0x80000U)
14247#define SDHC_FEVT_CIE_SHIFT (19U)
14248#define SDHC_FEVT_CIE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_CIE_SHIFT)) & SDHC_FEVT_CIE_MASK)
14249#define SDHC_FEVT_CIE SDHC_FEVT_CIE_MASK
14250#define SDHC_FEVT_DTOE_MASK (0x100000U)
14251#define SDHC_FEVT_DTOE_SHIFT (20U)
14252#define SDHC_FEVT_DTOE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_DTOE_SHIFT)) & SDHC_FEVT_DTOE_MASK)
14253#define SDHC_FEVT_DTOE SDHC_FEVT_DTOE_MASK
14254#define SDHC_FEVT_DCE_MASK (0x200000U)
14255#define SDHC_FEVT_DCE_SHIFT (21U)
14256#define SDHC_FEVT_DCE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_DCE_SHIFT)) & SDHC_FEVT_DCE_MASK)
14257#define SDHC_FEVT_DCE SDHC_FEVT_DCE_MASK
14258#define SDHC_FEVT_DEBE_MASK (0x400000U)
14259#define SDHC_FEVT_DEBE_SHIFT (22U)
14260#define SDHC_FEVT_DEBE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_DEBE_SHIFT)) & SDHC_FEVT_DEBE_MASK)
14261#define SDHC_FEVT_DEBE SDHC_FEVT_DEBE_MASK
14262#define SDHC_FEVT_AC12E_MASK (0x1000000U)
14263#define SDHC_FEVT_AC12E_SHIFT (24U)
14264#define SDHC_FEVT_AC12E_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_AC12E_SHIFT)) & SDHC_FEVT_AC12E_MASK)
14265#define SDHC_FEVT_AC12E SDHC_FEVT_AC12E_MASK
14266#define SDHC_FEVT_DMAE_MASK (0x10000000U)
14267#define SDHC_FEVT_DMAE_SHIFT (28U)
14268#define SDHC_FEVT_DMAE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_DMAE_SHIFT)) & SDHC_FEVT_DMAE_MASK)
14269#define SDHC_FEVT_DMAE SDHC_FEVT_DMAE_MASK
14270#define SDHC_FEVT_CINT_MASK (0x80000000U)
14271#define SDHC_FEVT_CINT_SHIFT (31U)
14272#define SDHC_FEVT_CINT_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_FEVT_CINT_SHIFT)) & SDHC_FEVT_CINT_MASK)
14273#define SDHC_FEVT_CINT SDHC_FEVT_CINT_MASK
14274
14275/*! @name ADMAES - ADMA Error Status register */
14276#define SDHC_ADMAES_ADMAES_MASK (0x3U)
14277#define SDHC_ADMAES_ADMAES_SHIFT (0U)
14278#define SDHC_ADMAES_ADMAES_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_ADMAES_ADMAES_SHIFT)) & SDHC_ADMAES_ADMAES_MASK)
14279#define SDHC_ADMAES_ADMAES SDHC_ADMAES_ADMAES_MASK
14280#define SDHC_ADMAES_ADMALME_MASK (0x4U)
14281#define SDHC_ADMAES_ADMALME_SHIFT (2U)
14282#define SDHC_ADMAES_ADMALME_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_ADMAES_ADMALME_SHIFT)) & SDHC_ADMAES_ADMALME_MASK)
14283#define SDHC_ADMAES_ADMALME SDHC_ADMAES_ADMALME_MASK
14284#define SDHC_ADMAES_ADMADCE_MASK (0x8U)
14285#define SDHC_ADMAES_ADMADCE_SHIFT (3U)
14286#define SDHC_ADMAES_ADMADCE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_ADMAES_ADMADCE_SHIFT)) & SDHC_ADMAES_ADMADCE_MASK)
14287#define SDHC_ADMAES_ADMADCE SDHC_ADMAES_ADMADCE_MASK
14288
14289/*! @name ADSADDR - ADMA System Addressregister */
14290#define SDHC_ADSADDR_ADSADDR_MASK (0xFFFFFFFCU)
14291#define SDHC_ADSADDR_ADSADDR_SHIFT (2U)
14292#define SDHC_ADSADDR_ADSADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_ADSADDR_ADSADDR_SHIFT)) & SDHC_ADSADDR_ADSADDR_MASK)
14293#define SDHC_ADSADDR_ADSADDR SDHC_ADSADDR_ADSADDR_MASK
14294
14295/*! @name VENDOR - Vendor Specific register */
14296#define SDHC_VENDOR_EXBLKNU_MASK (0x2U)
14297#define SDHC_VENDOR_EXBLKNU_SHIFT (1U)
14298#define SDHC_VENDOR_EXBLKNU_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_VENDOR_EXBLKNU_SHIFT)) & SDHC_VENDOR_EXBLKNU_MASK)
14299#define SDHC_VENDOR_EXBLKNU SDHC_VENDOR_EXBLKNU_MASK
14300#define SDHC_VENDOR_INTSTVAL_MASK (0xFF0000U)
14301#define SDHC_VENDOR_INTSTVAL_SHIFT (16U)
14302#define SDHC_VENDOR_INTSTVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_VENDOR_INTSTVAL_SHIFT)) & SDHC_VENDOR_INTSTVAL_MASK)
14303#define SDHC_VENDOR_INTSTVAL SDHC_VENDOR_INTSTVAL_MASK
14304
14305/*! @name MMCBOOT - MMC Boot register */
14306#define SDHC_MMCBOOT_DTOCVACK_MASK (0xFU)
14307#define SDHC_MMCBOOT_DTOCVACK_SHIFT (0U)
14308#define SDHC_MMCBOOT_DTOCVACK_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_MMCBOOT_DTOCVACK_SHIFT)) & SDHC_MMCBOOT_DTOCVACK_MASK)
14309#define SDHC_MMCBOOT_DTOCVACK SDHC_MMCBOOT_DTOCVACK_MASK
14310#define SDHC_MMCBOOT_BOOTACK_MASK (0x10U)
14311#define SDHC_MMCBOOT_BOOTACK_SHIFT (4U)
14312#define SDHC_MMCBOOT_BOOTACK_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_MMCBOOT_BOOTACK_SHIFT)) & SDHC_MMCBOOT_BOOTACK_MASK)
14313#define SDHC_MMCBOOT_BOOTACK SDHC_MMCBOOT_BOOTACK_MASK
14314#define SDHC_MMCBOOT_BOOTMODE_MASK (0x20U)
14315#define SDHC_MMCBOOT_BOOTMODE_SHIFT (5U)
14316#define SDHC_MMCBOOT_BOOTMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_MMCBOOT_BOOTMODE_SHIFT)) & SDHC_MMCBOOT_BOOTMODE_MASK)
14317#define SDHC_MMCBOOT_BOOTMODE SDHC_MMCBOOT_BOOTMODE_MASK
14318#define SDHC_MMCBOOT_BOOTEN_MASK (0x40U)
14319#define SDHC_MMCBOOT_BOOTEN_SHIFT (6U)
14320#define SDHC_MMCBOOT_BOOTEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_MMCBOOT_BOOTEN_SHIFT)) & SDHC_MMCBOOT_BOOTEN_MASK)
14321#define SDHC_MMCBOOT_BOOTEN SDHC_MMCBOOT_BOOTEN_MASK
14322#define SDHC_MMCBOOT_AUTOSABGEN_MASK (0x80U)
14323#define SDHC_MMCBOOT_AUTOSABGEN_SHIFT (7U)
14324#define SDHC_MMCBOOT_AUTOSABGEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_MMCBOOT_AUTOSABGEN_SHIFT)) & SDHC_MMCBOOT_AUTOSABGEN_MASK)
14325#define SDHC_MMCBOOT_AUTOSABGEN SDHC_MMCBOOT_AUTOSABGEN_MASK
14326#define SDHC_MMCBOOT_BOOTBLKCNT_MASK (0xFFFF0000U)
14327#define SDHC_MMCBOOT_BOOTBLKCNT_SHIFT (16U)
14328#define SDHC_MMCBOOT_BOOTBLKCNT_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_MMCBOOT_BOOTBLKCNT_SHIFT)) & SDHC_MMCBOOT_BOOTBLKCNT_MASK)
14329#define SDHC_MMCBOOT_BOOTBLKCNT SDHC_MMCBOOT_BOOTBLKCNT_MASK
14330
14331/*! @name HOSTVER - Host Controller Version */
14332#define SDHC_HOSTVER_SVN_MASK (0xFFU)
14333#define SDHC_HOSTVER_SVN_SHIFT (0U)
14334#define SDHC_HOSTVER_SVN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HOSTVER_SVN_SHIFT)) & SDHC_HOSTVER_SVN_MASK)
14335#define SDHC_HOSTVER_SVN SDHC_HOSTVER_SVN_MASK
14336#define SDHC_HOSTVER_VVN_MASK (0xFF00U)
14337#define SDHC_HOSTVER_VVN_SHIFT (8U)
14338#define SDHC_HOSTVER_VVN_SET(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HOSTVER_VVN_SHIFT)) & SDHC_HOSTVER_VVN_MASK)
14339#define SDHC_HOSTVER_VVN SDHC_HOSTVER_VVN_MASK
14340
14341
14342/*!
14343 * @}
14344 */ /* end of group SDHC_Register_Masks */
14345
14346
14347/* SDHC - Peripheral instance base addresses */
14348/** Peripheral SDHC base address */
14349#define SDHC_BASE (0x400B1000u)
14350/** Peripheral SDHC base pointer */
14351#define SDHC ((SDHC_TypeDef *)SDHC_BASE)
14352/** Array initializer of SDHC peripheral base addresses */
14353#define SDHC_BASE_ADDRS { SDHC_BASE }
14354/** Array initializer of SDHC peripheral base pointers */
14355#define SDHC_BASE_PTRS { SDHC }
14356/** Interrupt vectors for the SDHC peripheral type */
14357#define SDHC_IRQS { SDHC_IRQn }
14358
14359/*!
14360 * @}
14361 */ /* end of group SDHC_Peripheral_Access_Layer */
14362
14363
14364/* ----------------------------------------------------------------------------
14365 -- SDRAM Peripheral Access Layer
14366 ---------------------------------------------------------------------------- */
14367
14368/*!
14369 * @addtogroup SDRAM_Peripheral_Access_Layer SDRAM Peripheral Access Layer
14370 * @{
14371 */
14372
14373/** SDRAM - Register Layout Typedef */
14374typedef struct {
14375 uint8_t RESERVED_0[66];
14376 __IO uint16_t CTRL; /**< Control Register, offset: 0x42 */
14377 uint8_t RESERVED_1[4];
14378 struct { /* offset: 0x48, array step: 0x8 */
14379 __IO uint32_t AC; /**< Address and Control Register, array offset: 0x48, array step: 0x8 */
14380 __IO uint32_t CM; /**< Control Mask, array offset: 0x4C, array step: 0x8 */
14381 } BLOCK[2];
14382} SDRAM_TypeDef;
14383
14384/* ----------------------------------------------------------------------------
14385 -- SDRAM Register Masks
14386 ---------------------------------------------------------------------------- */
14387
14388/*!
14389 * @addtogroup SDRAM_Register_Masks SDRAM Register Masks
14390 * @{
14391 */
14392
14393/*! @name CTRL - Control Register */
14394#define SDRAM_CTRL_RC_MASK (0x1FFU)
14395#define SDRAM_CTRL_RC_SHIFT (0U)
14396#define SDRAM_CTRL_RC_SET(x) (((uint16_t)(((uint16_t)(x)) << SDRAM_CTRL_RC_SHIFT)) & SDRAM_CTRL_RC_MASK)
14397#define SDRAM_CTRL_RC SDRAM_CTRL_RC_MASK
14398#define SDRAM_CTRL_RTIM_MASK (0x600U)
14399#define SDRAM_CTRL_RTIM_SHIFT (9U)
14400#define SDRAM_CTRL_RTIM_SET(x) (((uint16_t)(((uint16_t)(x)) << SDRAM_CTRL_RTIM_SHIFT)) & SDRAM_CTRL_RTIM_MASK)
14401#define SDRAM_CTRL_RTIM SDRAM_CTRL_RTIM_MASK
14402#define SDRAM_CTRL_IS_MASK (0x800U)
14403#define SDRAM_CTRL_IS_SHIFT (11U)
14404#define SDRAM_CTRL_IS_SET(x) (((uint16_t)(((uint16_t)(x)) << SDRAM_CTRL_IS_SHIFT)) & SDRAM_CTRL_IS_MASK)
14405#define SDRAM_CTRL_IS SDRAM_CTRL_IS_MASK
14406
14407/*! @name AC - Address and Control Register */
14408#define SDRAM_AC_IP_MASK (0x8U)
14409#define SDRAM_AC_IP_SHIFT (3U)
14410#define SDRAM_AC_IP_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_AC_IP_SHIFT)) & SDRAM_AC_IP_MASK)
14411#define SDRAM_AC_IP SDRAM_AC_IP_MASK
14412#define SDRAM_AC_PS_MASK (0x30U)
14413#define SDRAM_AC_PS_SHIFT (4U)
14414#define SDRAM_AC_PS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_AC_PS_SHIFT)) & SDRAM_AC_PS_MASK)
14415#define SDRAM_AC_PS SDRAM_AC_PS_MASK
14416#define SDRAM_AC_IMRS_MASK (0x40U)
14417#define SDRAM_AC_IMRS_SHIFT (6U)
14418#define SDRAM_AC_IMRS_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_AC_IMRS_SHIFT)) & SDRAM_AC_IMRS_MASK)
14419#define SDRAM_AC_IMRS SDRAM_AC_IMRS_MASK
14420#define SDRAM_AC_CBM_MASK (0x700U)
14421#define SDRAM_AC_CBM_SHIFT (8U)
14422#define SDRAM_AC_CBM_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_AC_CBM_SHIFT)) & SDRAM_AC_CBM_MASK)
14423#define SDRAM_AC_CBM SDRAM_AC_CBM_MASK
14424#define SDRAM_AC_CASL_MASK (0x3000U)
14425#define SDRAM_AC_CASL_SHIFT (12U)
14426#define SDRAM_AC_CASL_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_AC_CASL_SHIFT)) & SDRAM_AC_CASL_MASK)
14427#define SDRAM_AC_CASL SDRAM_AC_CASL_MASK
14428#define SDRAM_AC_RE_MASK (0x8000U)
14429#define SDRAM_AC_RE_SHIFT (15U)
14430#define SDRAM_AC_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_AC_RE_SHIFT)) & SDRAM_AC_RE_MASK)
14431#define SDRAM_AC_RE SDRAM_AC_RE_MASK
14432#define SDRAM_AC_BA_MASK (0xFFFC0000U)
14433#define SDRAM_AC_BA_SHIFT (18U)
14434#define SDRAM_AC_BA_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_AC_BA_SHIFT)) & SDRAM_AC_BA_MASK)
14435#define SDRAM_AC_BA SDRAM_AC_BA_MASK
14436
14437/* The count of SDRAM_AC */
14438#define SDRAM_AC_COUNT (2U)
14439
14440/*! @name CM - Control Mask */
14441#define SDRAM_CM_V_MASK (0x1U)
14442#define SDRAM_CM_V_SHIFT (0U)
14443#define SDRAM_CM_V_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_CM_V_SHIFT)) & SDRAM_CM_V_MASK)
14444#define SDRAM_CM_V SDRAM_CM_V_MASK
14445#define SDRAM_CM_WP_MASK (0x100U)
14446#define SDRAM_CM_WP_SHIFT (8U)
14447#define SDRAM_CM_WP_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_CM_WP_SHIFT)) & SDRAM_CM_WP_MASK)
14448#define SDRAM_CM_WP SDRAM_CM_WP_MASK
14449#define SDRAM_CM_BAM_MASK (0xFFFC0000U)
14450#define SDRAM_CM_BAM_SHIFT (18U)
14451#define SDRAM_CM_BAM_SET(x) (((uint32_t)(((uint32_t)(x)) << SDRAM_CM_BAM_SHIFT)) & SDRAM_CM_BAM_MASK)
14452#define SDRAM_CM_BAM SDRAM_CM_BAM_MASK
14453
14454/* The count of SDRAM_CM */
14455#define SDRAM_CM_COUNT (2U)
14456
14457
14458/*!
14459 * @}
14460 */ /* end of group SDRAM_Register_Masks */
14461
14462
14463/* SDRAM - Peripheral instance base addresses */
14464/** Peripheral SDRAM base address */
14465#define SDRAM_BASE (0x4000F000u)
14466/** Peripheral SDRAM base pointer */
14467#define SDRAM ((SDRAM_TypeDef *)SDRAM_BASE)
14468/** Array initializer of SDRAM peripheral base addresses */
14469#define SDRAM_BASE_ADDRS { SDRAM_BASE }
14470/** Array initializer of SDRAM peripheral base pointers */
14471#define SDRAM_BASE_PTRS { SDRAM }
14472
14473/*!
14474 * @}
14475 */ /* end of group SDRAM_Peripheral_Access_Layer */
14476
14477
14478/* ----------------------------------------------------------------------------
14479 -- SIM Peripheral Access Layer
14480 ---------------------------------------------------------------------------- */
14481
14482/*!
14483 * @addtogroup SIM_Peripheral_Access_Layer SIM Peripheral Access Layer
14484 * @{
14485 */
14486
14487/** SIM - Register Layout Typedef */
14488typedef struct {
14489 __IO uint32_t SOPT1; /**< System Options Register 1, offset: 0x0 */
14490 __IO uint32_t SOPT1CFG; /**< SOPT1 Configuration Register, offset: 0x4 */
14491 __IO uint32_t USBPHYCTL; /**< USB PHY Control Register, offset: 0x8 */
14492 uint8_t RESERVED_0[4088];
14493 __IO uint32_t SOPT2; /**< System Options Register 2, offset: 0x1004 */
14494 uint8_t RESERVED_1[4];
14495 __IO uint32_t SOPT4; /**< System Options Register 4, offset: 0x100C */
14496 __IO uint32_t SOPT5; /**< System Options Register 5, offset: 0x1010 */
14497 uint8_t RESERVED_2[4];
14498 __IO uint32_t SOPT7; /**< System Options Register 7, offset: 0x1018 */
14499 __IO uint32_t SOPT8; /**< System Options Register 8, offset: 0x101C */
14500 __IO uint32_t SOPT9; /**< System Options Register 9, offset: 0x1020 */
14501 __I uint32_t SDID; /**< System Device Identification Register, offset: 0x1024 */
14502 __IO uint32_t SCGC1; /**< System Clock Gating Control Register 1, offset: 0x1028 */
14503 __IO uint32_t SCGC2; /**< System Clock Gating Control Register 2, offset: 0x102C */
14504 __IO uint32_t SCGC3; /**< System Clock Gating Control Register 3, offset: 0x1030 */
14505 __IO uint32_t SCGC4; /**< System Clock Gating Control Register 4, offset: 0x1034 */
14506 __IO uint32_t SCGC5; /**< System Clock Gating Control Register 5, offset: 0x1038 */
14507 __IO uint32_t SCGC6; /**< System Clock Gating Control Register 6, offset: 0x103C */
14508 __IO uint32_t SCGC7; /**< System Clock Gating Control Register 7, offset: 0x1040 */
14509 __IO uint32_t CLKDIV1; /**< System Clock Divider Register 1, offset: 0x1044 */
14510 __IO uint32_t CLKDIV2; /**< System Clock Divider Register 2, offset: 0x1048 */
14511 __IO uint32_t FCFG1; /**< Flash Configuration Register 1, offset: 0x104C */
14512 __I uint32_t FCFG2; /**< Flash Configuration Register 2, offset: 0x1050 */
14513 __I uint32_t UIDH; /**< Unique Identification Register High, offset: 0x1054 */
14514 __I uint32_t UIDMH; /**< Unique Identification Register Mid-High, offset: 0x1058 */
14515 __I uint32_t UIDML; /**< Unique Identification Register Mid Low, offset: 0x105C */
14516 __I uint32_t UIDL; /**< Unique Identification Register Low, offset: 0x1060 */
14517 __IO uint32_t CLKDIV3; /**< System Clock Divider Register 3, offset: 0x1064 */
14518 __IO uint32_t CLKDIV4; /**< System Clock Divider Register 4, offset: 0x1068 */
14519} SIM_TypeDef;
14520
14521/* ----------------------------------------------------------------------------
14522 -- SIM Register Masks
14523 ---------------------------------------------------------------------------- */
14524
14525/*!
14526 * @addtogroup SIM_Register_Masks SIM Register Masks
14527 * @{
14528 */
14529
14530/*! @name SOPT1 - System Options Register 1 */
14531#define SIM_SOPT1_RAMSIZE_MASK (0xF000U)
14532#define SIM_SOPT1_RAMSIZE_SHIFT (12U)
14533#define SIM_SOPT1_RAMSIZE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_RAMSIZE_SHIFT)) & SIM_SOPT1_RAMSIZE_MASK)
14534#define SIM_SOPT1_RAMSIZE SIM_SOPT1_RAMSIZE_MASK
14535#define SIM_SOPT1_OSC32KSEL_MASK (0xC0000U)
14536#define SIM_SOPT1_OSC32KSEL_SHIFT (18U)
14537#define SIM_SOPT1_OSC32KSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_OSC32KSEL_SHIFT)) & SIM_SOPT1_OSC32KSEL_MASK)
14538#define SIM_SOPT1_OSC32KSEL SIM_SOPT1_OSC32KSEL_MASK
14539#define SIM_SOPT1_USBVSTBY_MASK (0x20000000U)
14540#define SIM_SOPT1_USBVSTBY_SHIFT (29U)
14541#define SIM_SOPT1_USBVSTBY_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_USBVSTBY_SHIFT)) & SIM_SOPT1_USBVSTBY_MASK)
14542#define SIM_SOPT1_USBVSTBY SIM_SOPT1_USBVSTBY_MASK
14543#define SIM_SOPT1_USBSSTBY_MASK (0x40000000U)
14544#define SIM_SOPT1_USBSSTBY_SHIFT (30U)
14545#define SIM_SOPT1_USBSSTBY_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_USBSSTBY_SHIFT)) & SIM_SOPT1_USBSSTBY_MASK)
14546#define SIM_SOPT1_USBSSTBY SIM_SOPT1_USBSSTBY_MASK
14547#define SIM_SOPT1_USBREGEN_MASK (0x80000000U)
14548#define SIM_SOPT1_USBREGEN_SHIFT (31U)
14549#define SIM_SOPT1_USBREGEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_USBREGEN_SHIFT)) & SIM_SOPT1_USBREGEN_MASK)
14550#define SIM_SOPT1_USBREGEN SIM_SOPT1_USBREGEN_SET(1)
14551
14552/*! @name SOPT1CFG - SOPT1 Configuration Register */
14553#define SIM_SOPT1CFG_URWE_MASK (0x1000000U)
14554#define SIM_SOPT1CFG_URWE_SHIFT (24U)
14555#define SIM_SOPT1CFG_URWE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1CFG_URWE_SHIFT)) & SIM_SOPT1CFG_URWE_MASK)
14556#define SIM_SOPT1CFG_URWE SIM_SOPT1CFG_URWE_MASK
14557#define SIM_SOPT1CFG_UVSWE_MASK (0x2000000U)
14558#define SIM_SOPT1CFG_UVSWE_SHIFT (25U)
14559#define SIM_SOPT1CFG_UVSWE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1CFG_UVSWE_SHIFT)) & SIM_SOPT1CFG_UVSWE_MASK)
14560#define SIM_SOPT1CFG_UVSWE SIM_SOPT1CFG_UVSWE_MASK
14561#define SIM_SOPT1CFG_USSWE_MASK (0x4000000U)
14562#define SIM_SOPT1CFG_USSWE_SHIFT (26U)
14563#define SIM_SOPT1CFG_USSWE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1CFG_USSWE_SHIFT)) & SIM_SOPT1CFG_USSWE_MASK)
14564#define SIM_SOPT1CFG_USSWE SIM_SOPT1CFG_USSWE_MASK
14565
14566/*! @name USBPHYCTL - USB PHY Control Register */
14567#define SIM_USBPHYCTL_USBVREGSEL_MASK (0x100U)
14568#define SIM_USBPHYCTL_USBVREGSEL_SHIFT (8U)
14569#define SIM_USBPHYCTL_USBVREGSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_USBPHYCTL_USBVREGSEL_SHIFT)) & SIM_USBPHYCTL_USBVREGSEL_MASK)
14570#define SIM_USBPHYCTL_USBVREGSEL SIM_USBPHYCTL_USBVREGSEL_MASK
14571#define SIM_USBPHYCTL_USBVREGPD_MASK (0x200U)
14572#define SIM_USBPHYCTL_USBVREGPD_SHIFT (9U)
14573#define SIM_USBPHYCTL_USBVREGPD_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_USBPHYCTL_USBVREGPD_SHIFT)) & SIM_USBPHYCTL_USBVREGPD_MASK)
14574#define SIM_USBPHYCTL_USBVREGPD SIM_USBPHYCTL_USBVREGPD_MASK
14575#define SIM_USBPHYCTL_USB3VOUTTRG_MASK (0x700000U)
14576#define SIM_USBPHYCTL_USB3VOUTTRG_SHIFT (20U)
14577#define SIM_USBPHYCTL_USB3VOUTTRG_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_USBPHYCTL_USB3VOUTTRG_SHIFT)) & SIM_USBPHYCTL_USB3VOUTTRG_MASK)
14578#define SIM_USBPHYCTL_USB3VOUTTRG SIM_USBPHYCTL_USB3VOUTTRG_MASK
14579#define SIM_USBPHYCTL_USBDISILIM_MASK (0x800000U)
14580#define SIM_USBPHYCTL_USBDISILIM_SHIFT (23U)
14581#define SIM_USBPHYCTL_USBDISILIM_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_USBPHYCTL_USBDISILIM_SHIFT)) & SIM_USBPHYCTL_USBDISILIM_MASK)
14582#define SIM_USBPHYCTL_USBDISILIM SIM_USBPHYCTL_USBDISILIM_SET(1)
14583
14584/*! @name SOPT2 - System Options Register 2 */
14585#define SIM_SOPT2_USBSLSRC_MASK (0x1U)
14586#define SIM_SOPT2_USBSLSRC_SHIFT (0U)
14587#define SIM_SOPT2_USBSLSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_USBSLSRC_SHIFT)) & SIM_SOPT2_USBSLSRC_MASK)
14588#define SIM_SOPT2_USBSLSRC SIM_SOPT2_USBSLSRC_MASK
14589#define SIM_SOPT2_USBREGEN_MASK (0x2U)
14590#define SIM_SOPT2_USBREGEN_SHIFT (1U)
14591#define SIM_SOPT2_USBREGEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_USBREGEN_SHIFT)) & SIM_SOPT2_USBREGEN_MASK)
14592#define SIM_SOPT2_USBREGEN SIM_SOPT2_USBREGEN_SET(1)
14593#define SIM_SOPT2_RTCCLKOUTSEL_MASK (0x10U)
14594#define SIM_SOPT2_RTCCLKOUTSEL_SHIFT (4U)
14595#define SIM_SOPT2_RTCCLKOUTSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_RTCCLKOUTSEL_SHIFT)) & SIM_SOPT2_RTCCLKOUTSEL_MASK)
14596#define SIM_SOPT2_RTCCLKOUTSEL SIM_SOPT2_RTCCLKOUTSEL_MASK
14597#define SIM_SOPT2_CLKOUTSEL_MASK (0xE0U)
14598#define SIM_SOPT2_CLKOUTSEL_SHIFT (5U)
14599#define SIM_SOPT2_CLKOUTSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_CLKOUTSEL_SHIFT)) & SIM_SOPT2_CLKOUTSEL_MASK)
14600#define SIM_SOPT2_CLKOUTSEL SIM_SOPT2_CLKOUTSEL_MASK
14601#define SIM_SOPT2_FBSL_MASK (0x300U)
14602#define SIM_SOPT2_FBSL_SHIFT (8U)
14603#define SIM_SOPT2_FBSL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_FBSL_SHIFT)) & SIM_SOPT2_FBSL_MASK)
14604#define SIM_SOPT2_FBSL SIM_SOPT2_FBSL_MASK
14605#define SIM_SOPT2_TRACECLKSEL_MASK (0x1000U)
14606#define SIM_SOPT2_TRACECLKSEL_SHIFT (12U)
14607#define SIM_SOPT2_TRACECLKSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_TRACECLKSEL_SHIFT)) & SIM_SOPT2_TRACECLKSEL_MASK)
14608#define SIM_SOPT2_TRACECLKSEL SIM_SOPT2_TRACECLKSEL_MASK
14609#define SIM_SOPT2_PLLFLLSEL_MASK (0x30000U)
14610#define SIM_SOPT2_PLLFLLSEL_SHIFT (16U)
14611#define SIM_SOPT2_PLLFLLSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_PLLFLLSEL_SHIFT)) & SIM_SOPT2_PLLFLLSEL_MASK)
14612#define SIM_SOPT2_PLLFLLSEL SIM_SOPT2_PLLFLLSEL_SET(1)
14613#define SIM_SOPT2_USBSRC_MASK (0x40000U)
14614#define SIM_SOPT2_USBSRC_SHIFT (18U)
14615#define SIM_SOPT2_USBSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_USBSRC_SHIFT)) & SIM_SOPT2_USBSRC_MASK)
14616#define SIM_SOPT2_USBSRC SIM_SOPT2_USBSRC_SET(1)
14617#define SIM_SOPT2_RMIISRC_MASK (0x80000U)
14618#define SIM_SOPT2_RMIISRC_SHIFT (19U)
14619#define SIM_SOPT2_RMIISRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_RMIISRC_SHIFT)) & SIM_SOPT2_RMIISRC_MASK)
14620#define SIM_SOPT2_RMIISRC SIM_SOPT2_RMIISRC_MASK
14621#define SIM_SOPT2_TIMESRC_MASK (0x300000U)
14622#define SIM_SOPT2_TIMESRC_SHIFT (20U)
14623#define SIM_SOPT2_TIMESRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_TIMESRC_SHIFT)) & SIM_SOPT2_TIMESRC_MASK)
14624#define SIM_SOPT2_TIMESRC SIM_SOPT2_TIMESRC_MASK
14625#define SIM_SOPT2_TPMSRC_MASK (0x3000000U)
14626#define SIM_SOPT2_TPMSRC_SHIFT (24U)
14627#define SIM_SOPT2_TPMSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_TPMSRC_SHIFT)) & SIM_SOPT2_TPMSRC_MASK)
14628#define SIM_SOPT2_TPMSRC SIM_SOPT2_TPMSRC_MASK
14629#define SIM_SOPT2_LPUARTSRC_MASK (0xC000000U)
14630#define SIM_SOPT2_LPUARTSRC_SHIFT (26U)
14631#define SIM_SOPT2_LPUARTSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_LPUARTSRC_SHIFT)) & SIM_SOPT2_LPUARTSRC_MASK)
14632#define SIM_SOPT2_LPUARTSRC SIM_SOPT2_LPUARTSRC_MASK
14633#define SIM_SOPT2_SDHCSRC_MASK (0x30000000U)
14634#define SIM_SOPT2_SDHCSRC_SHIFT (28U)
14635#define SIM_SOPT2_SDHCSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_SDHCSRC_SHIFT)) & SIM_SOPT2_SDHCSRC_MASK)
14636
14637/*! @name SOPT4 - System Options Register 4 */
14638#define SIM_SOPT4_FTM0FLT0_MASK (0x1U)
14639#define SIM_SOPT4_FTM0FLT0_SHIFT (0U)
14640#define SIM_SOPT4_FTM0FLT0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM0FLT0_SHIFT)) & SIM_SOPT4_FTM0FLT0_MASK)
14641#define SIM_SOPT4_FTM0FLT0 SIM_SOPT4_FTM0FLT0_MASK
14642#define SIM_SOPT4_FTM0FLT1_MASK (0x2U)
14643#define SIM_SOPT4_FTM0FLT1_SHIFT (1U)
14644#define SIM_SOPT4_FTM0FLT1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM0FLT1_SHIFT)) & SIM_SOPT4_FTM0FLT1_MASK)
14645#define SIM_SOPT4_FTM0FLT1 SIM_SOPT4_FTM0FLT1_MASK
14646#define SIM_SOPT4_FTM0FLT2_MASK (0x4U)
14647#define SIM_SOPT4_FTM0FLT2_SHIFT (2U)
14648#define SIM_SOPT4_FTM0FLT2_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM0FLT2_SHIFT)) & SIM_SOPT4_FTM0FLT2_MASK)
14649#define SIM_SOPT4_FTM0FLT2 SIM_SOPT4_FTM0FLT2_MASK
14650#define SIM_SOPT4_FTM0FLT3_MASK (0x8U)
14651#define SIM_SOPT4_FTM0FLT3_SHIFT (3U)
14652#define SIM_SOPT4_FTM0FLT3_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM0FLT3_SHIFT)) & SIM_SOPT4_FTM0FLT3_MASK)
14653#define SIM_SOPT4_FTM0FLT3 SIM_SOPT4_FTM0FLT3_MASK
14654#define SIM_SOPT4_FTM1FLT0_MASK (0x10U)
14655#define SIM_SOPT4_FTM1FLT0_SHIFT (4U)
14656#define SIM_SOPT4_FTM1FLT0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM1FLT0_SHIFT)) & SIM_SOPT4_FTM1FLT0_MASK)
14657#define SIM_SOPT4_FTM1FLT0 SIM_SOPT4_FTM1FLT0_MASK
14658#define SIM_SOPT4_FTM2FLT0_MASK (0x100U)
14659#define SIM_SOPT4_FTM2FLT0_SHIFT (8U)
14660#define SIM_SOPT4_FTM2FLT0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM2FLT0_SHIFT)) & SIM_SOPT4_FTM2FLT0_MASK)
14661#define SIM_SOPT4_FTM2FLT0 SIM_SOPT4_FTM2FLT0_MASK
14662#define SIM_SOPT4_FTM3FLT0_MASK (0x1000U)
14663#define SIM_SOPT4_FTM3FLT0_SHIFT (12U)
14664#define SIM_SOPT4_FTM3FLT0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM3FLT0_SHIFT)) & SIM_SOPT4_FTM3FLT0_MASK)
14665#define SIM_SOPT4_FTM3FLT0 SIM_SOPT4_FTM3FLT0_MASK
14666#define SIM_SOPT4_FTM1CH0SRC_MASK (0xC0000U)
14667#define SIM_SOPT4_FTM1CH0SRC_SHIFT (18U)
14668#define SIM_SOPT4_FTM1CH0SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM1CH0SRC_SHIFT)) & SIM_SOPT4_FTM1CH0SRC_MASK)
14669#define SIM_SOPT4_FTM1CH0SRC SIM_SOPT4_FTM1CH0SRC_MASK
14670#define SIM_SOPT4_FTM2CH0SRC_MASK (0x300000U)
14671#define SIM_SOPT4_FTM2CH0SRC_SHIFT (20U)
14672#define SIM_SOPT4_FTM2CH0SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM2CH0SRC_SHIFT)) & SIM_SOPT4_FTM2CH0SRC_MASK)
14673#define SIM_SOPT4_FTM2CH0SRC SIM_SOPT4_FTM2CH0SRC_MASK
14674#define SIM_SOPT4_FTM2CH1SRC_MASK (0x400000U)
14675#define SIM_SOPT4_FTM2CH1SRC_SHIFT (22U)
14676#define SIM_SOPT4_FTM2CH1SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM2CH1SRC_SHIFT)) & SIM_SOPT4_FTM2CH1SRC_MASK)
14677#define SIM_SOPT4_FTM2CH1SRC SIM_SOPT4_FTM2CH1SRC_MASK
14678#define SIM_SOPT4_FTM0CLKSEL_MASK (0x1000000U)
14679#define SIM_SOPT4_FTM0CLKSEL_SHIFT (24U)
14680#define SIM_SOPT4_FTM0CLKSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM0CLKSEL_SHIFT)) & SIM_SOPT4_FTM0CLKSEL_MASK)
14681#define SIM_SOPT4_FTM0CLKSEL SIM_SOPT4_FTM0CLKSEL_MASK
14682#define SIM_SOPT4_FTM1CLKSEL_MASK (0x2000000U)
14683#define SIM_SOPT4_FTM1CLKSEL_SHIFT (25U)
14684#define SIM_SOPT4_FTM1CLKSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM1CLKSEL_SHIFT)) & SIM_SOPT4_FTM1CLKSEL_MASK)
14685#define SIM_SOPT4_FTM1CLKSEL SIM_SOPT4_FTM1CLKSEL_MASK
14686#define SIM_SOPT4_FTM2CLKSEL_MASK (0x4000000U)
14687#define SIM_SOPT4_FTM2CLKSEL_SHIFT (26U)
14688#define SIM_SOPT4_FTM2CLKSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM2CLKSEL_SHIFT)) & SIM_SOPT4_FTM2CLKSEL_MASK)
14689#define SIM_SOPT4_FTM2CLKSEL SIM_SOPT4_FTM2CLKSEL_MASK
14690#define SIM_SOPT4_FTM3CLKSEL_MASK (0x8000000U)
14691#define SIM_SOPT4_FTM3CLKSEL_SHIFT (27U)
14692#define SIM_SOPT4_FTM3CLKSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM3CLKSEL_SHIFT)) & SIM_SOPT4_FTM3CLKSEL_MASK)
14693#define SIM_SOPT4_FTM3CLKSEL SIM_SOPT4_FTM3CLKSEL_MASK
14694#define SIM_SOPT4_FTM0TRG0SRC_MASK (0x10000000U)
14695#define SIM_SOPT4_FTM0TRG0SRC_SHIFT (28U)
14696#define SIM_SOPT4_FTM0TRG0SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM0TRG0SRC_SHIFT)) & SIM_SOPT4_FTM0TRG0SRC_MASK)
14697#define SIM_SOPT4_FTM0TRG0SRC SIM_SOPT4_FTM0TRG0SRC_MASK
14698#define SIM_SOPT4_FTM0TRG1SRC_MASK (0x20000000U)
14699#define SIM_SOPT4_FTM0TRG1SRC_SHIFT (29U)
14700#define SIM_SOPT4_FTM0TRG1SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM0TRG1SRC_SHIFT)) & SIM_SOPT4_FTM0TRG1SRC_MASK)
14701#define SIM_SOPT4_FTM0TRG1SRC SIM_SOPT4_FTM0TRG1SRC_MASK
14702#define SIM_SOPT4_FTM3TRG0SRC_MASK (0x40000000U)
14703#define SIM_SOPT4_FTM3TRG0SRC_SHIFT (30U)
14704#define SIM_SOPT4_FTM3TRG0SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM3TRG0SRC_SHIFT)) & SIM_SOPT4_FTM3TRG0SRC_MASK)
14705#define SIM_SOPT4_FTM3TRG0SRC SIM_SOPT4_FTM3TRG0SRC_MASK
14706#define SIM_SOPT4_FTM3TRG1SRC_MASK (0x80000000U)
14707#define SIM_SOPT4_FTM3TRG1SRC_SHIFT (31U)
14708#define SIM_SOPT4_FTM3TRG1SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM3TRG1SRC_SHIFT)) & SIM_SOPT4_FTM3TRG1SRC_MASK)
14709#define SIM_SOPT4_FTM3TRG1SRC SIM_SOPT4_FTM3TRG1SRC_MASK
14710
14711/*! @name SOPT5 - System Options Register 5 */
14712#define SIM_SOPT5_UART0TXSRC_MASK (0x3U)
14713#define SIM_SOPT5_UART0TXSRC_SHIFT (0U)
14714#define SIM_SOPT5_UART0TXSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART0TXSRC_SHIFT)) & SIM_SOPT5_UART0TXSRC_MASK)
14715#define SIM_SOPT5_UART0TXSRC SIM_SOPT5_UART0TXSRC_MASK
14716#define SIM_SOPT5_UART0RXSRC_MASK (0xCU)
14717#define SIM_SOPT5_UART0RXSRC_SHIFT (2U)
14718#define SIM_SOPT5_UART0RXSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART0RXSRC_SHIFT)) & SIM_SOPT5_UART0RXSRC_MASK)
14719#define SIM_SOPT5_UART0RXSRC SIM_SOPT5_UART0RXSRC_MASK
14720#define SIM_SOPT5_UART1TXSRC_MASK (0x30U)
14721#define SIM_SOPT5_UART1TXSRC_SHIFT (4U)
14722#define SIM_SOPT5_UART1TXSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART1TXSRC_SHIFT)) & SIM_SOPT5_UART1TXSRC_MASK)
14723#define SIM_SOPT5_UART1TXSRC SIM_SOPT5_UART1TXSRC_MASK
14724#define SIM_SOPT5_UART1RXSRC_MASK (0xC0U)
14725#define SIM_SOPT5_UART1RXSRC_SHIFT (6U)
14726#define SIM_SOPT5_UART1RXSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART1RXSRC_SHIFT)) & SIM_SOPT5_UART1RXSRC_MASK)
14727#define SIM_SOPT5_UART1RXSRC SIM_SOPT5_UART1RXSRC_MASK
14728#define SIM_SOPT5_LPUART0TXSRC_MASK (0x30000U)
14729#define SIM_SOPT5_LPUART0TXSRC_SHIFT (16U)
14730#define SIM_SOPT5_LPUART0TXSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_LPUART0TXSRC_SHIFT)) & SIM_SOPT5_LPUART0TXSRC_MASK)
14731#define SIM_SOPT5_LPUART0TXSRC SIM_SOPT5_LPUART0TXSRC_MASK
14732#define SIM_SOPT5_LPUART0RXSRC_MASK (0xC0000U)
14733#define SIM_SOPT5_LPUART0RXSRC_SHIFT (18U)
14734#define SIM_SOPT5_LPUART0RXSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_LPUART0RXSRC_SHIFT)) & SIM_SOPT5_LPUART0RXSRC_MASK)
14735#define SIM_SOPT5_LPUART0RXSRC SIM_SOPT5_LPUART0RXSRC_MASK
14736
14737/*! @name SOPT7 - System Options Register 7 */
14738#define SIM_SOPT7_ADC0TRGSEL_MASK (0xFU)
14739#define SIM_SOPT7_ADC0TRGSEL_SHIFT (0U)
14740#define SIM_SOPT7_ADC0TRGSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC0TRGSEL_SHIFT)) & SIM_SOPT7_ADC0TRGSEL_MASK)
14741#define SIM_SOPT7_ADC0TRGSEL SIM_SOPT7_ADC0TRGSEL_MASK
14742#define SIM_SOPT7_ADC0PRETRGSEL_MASK (0x10U)
14743#define SIM_SOPT7_ADC0PRETRGSEL_SHIFT (4U)
14744#define SIM_SOPT7_ADC0PRETRGSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC0PRETRGSEL_SHIFT)) & SIM_SOPT7_ADC0PRETRGSEL_MASK)
14745#define SIM_SOPT7_ADC0PRETRGSEL SIM_SOPT7_ADC0PRETRGSEL_MASK
14746#define SIM_SOPT7_ADC0ALTTRGEN_MASK (0x80U)
14747#define SIM_SOPT7_ADC0ALTTRGEN_SHIFT (7U)
14748#define SIM_SOPT7_ADC0ALTTRGEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC0ALTTRGEN_SHIFT)) & SIM_SOPT7_ADC0ALTTRGEN_MASK)
14749#define SIM_SOPT7_ADC0ALTTRGEN SIM_SOPT7_ADC0ALTTRGEN_MASK
14750#define SIM_SOPT7_ADC1TRGSEL_MASK (0xF00U)
14751#define SIM_SOPT7_ADC1TRGSEL_SHIFT (8U)
14752#define SIM_SOPT7_ADC1TRGSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC1TRGSEL_SHIFT)) & SIM_SOPT7_ADC1TRGSEL_MASK)
14753#define SIM_SOPT7_ADC1TRGSEL SIM_SOPT7_ADC1TRGSEL_MASK
14754#define SIM_SOPT7_ADC1PRETRGSEL_MASK (0x1000U)
14755#define SIM_SOPT7_ADC1PRETRGSEL_SHIFT (12U)
14756#define SIM_SOPT7_ADC1PRETRGSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC1PRETRGSEL_SHIFT)) & SIM_SOPT7_ADC1PRETRGSEL_MASK)
14757#define SIM_SOPT7_ADC1PRETRGSEL SIM_SOPT7_ADC1PRETRGSEL_MASK
14758#define SIM_SOPT7_ADC1ALTTRGEN_MASK (0x8000U)
14759#define SIM_SOPT7_ADC1ALTTRGEN_SHIFT (15U)
14760#define SIM_SOPT7_ADC1ALTTRGEN_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC1ALTTRGEN_SHIFT)) & SIM_SOPT7_ADC1ALTTRGEN_MASK)
14761#define SIM_SOPT7_ADC1ALTTRGEN SIM_SOPT7_ADC1ALTTRGEN_MASK
14762
14763/*! @name SOPT8 - System Options Register 8 */
14764#define SIM_SOPT8_FTM0SYNCBIT_MASK (0x1U)
14765#define SIM_SOPT8_FTM0SYNCBIT_SHIFT (0U)
14766#define SIM_SOPT8_FTM0SYNCBIT_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0SYNCBIT_SHIFT)) & SIM_SOPT8_FTM0SYNCBIT_MASK)
14767#define SIM_SOPT8_FTM0SYNCBIT SIM_SOPT8_FTM0SYNCBIT_MASK
14768#define SIM_SOPT8_FTM1SYNCBIT_MASK (0x2U)
14769#define SIM_SOPT8_FTM1SYNCBIT_SHIFT (1U)
14770#define SIM_SOPT8_FTM1SYNCBIT_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM1SYNCBIT_SHIFT)) & SIM_SOPT8_FTM1SYNCBIT_MASK)
14771#define SIM_SOPT8_FTM1SYNCBIT SIM_SOPT8_FTM1SYNCBIT_MASK
14772#define SIM_SOPT8_FTM2SYNCBIT_MASK (0x4U)
14773#define SIM_SOPT8_FTM2SYNCBIT_SHIFT (2U)
14774#define SIM_SOPT8_FTM2SYNCBIT_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM2SYNCBIT_SHIFT)) & SIM_SOPT8_FTM2SYNCBIT_MASK)
14775#define SIM_SOPT8_FTM2SYNCBIT SIM_SOPT8_FTM2SYNCBIT_MASK
14776#define SIM_SOPT8_FTM3SYNCBIT_MASK (0x8U)
14777#define SIM_SOPT8_FTM3SYNCBIT_SHIFT (3U)
14778#define SIM_SOPT8_FTM3SYNCBIT_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3SYNCBIT_SHIFT)) & SIM_SOPT8_FTM3SYNCBIT_MASK)
14779#define SIM_SOPT8_FTM3SYNCBIT SIM_SOPT8_FTM3SYNCBIT_MASK
14780#define SIM_SOPT8_FTM0OCH0SRC_MASK (0x10000U)
14781#define SIM_SOPT8_FTM0OCH0SRC_SHIFT (16U)
14782#define SIM_SOPT8_FTM0OCH0SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0OCH0SRC_SHIFT)) & SIM_SOPT8_FTM0OCH0SRC_MASK)
14783#define SIM_SOPT8_FTM0OCH0SRC SIM_SOPT8_FTM0OCH0SRC_MASK
14784#define SIM_SOPT8_FTM0OCH1SRC_MASK (0x20000U)
14785#define SIM_SOPT8_FTM0OCH1SRC_SHIFT (17U)
14786#define SIM_SOPT8_FTM0OCH1SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0OCH1SRC_SHIFT)) & SIM_SOPT8_FTM0OCH1SRC_MASK)
14787#define SIM_SOPT8_FTM0OCH1SRC SIM_SOPT8_FTM0OCH1SRC_MASK
14788#define SIM_SOPT8_FTM0OCH2SRC_MASK (0x40000U)
14789#define SIM_SOPT8_FTM0OCH2SRC_SHIFT (18U)
14790#define SIM_SOPT8_FTM0OCH2SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0OCH2SRC_SHIFT)) & SIM_SOPT8_FTM0OCH2SRC_MASK)
14791#define SIM_SOPT8_FTM0OCH2SRC SIM_SOPT8_FTM0OCH2SRC_MASK
14792#define SIM_SOPT8_FTM0OCH3SRC_MASK (0x80000U)
14793#define SIM_SOPT8_FTM0OCH3SRC_SHIFT (19U)
14794#define SIM_SOPT8_FTM0OCH3SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0OCH3SRC_SHIFT)) & SIM_SOPT8_FTM0OCH3SRC_MASK)
14795#define SIM_SOPT8_FTM0OCH3SRC SIM_SOPT8_FTM0OCH3SRC_MASK
14796#define SIM_SOPT8_FTM0OCH4SRC_MASK (0x100000U)
14797#define SIM_SOPT8_FTM0OCH4SRC_SHIFT (20U)
14798#define SIM_SOPT8_FTM0OCH4SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0OCH4SRC_SHIFT)) & SIM_SOPT8_FTM0OCH4SRC_MASK)
14799#define SIM_SOPT8_FTM0OCH4SRC SIM_SOPT8_FTM0OCH4SRC_MASK
14800#define SIM_SOPT8_FTM0OCH5SRC_MASK (0x200000U)
14801#define SIM_SOPT8_FTM0OCH5SRC_SHIFT (21U)
14802#define SIM_SOPT8_FTM0OCH5SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0OCH5SRC_SHIFT)) & SIM_SOPT8_FTM0OCH5SRC_MASK)
14803#define SIM_SOPT8_FTM0OCH5SRC SIM_SOPT8_FTM0OCH5SRC_MASK
14804#define SIM_SOPT8_FTM0OCH6SRC_MASK (0x400000U)
14805#define SIM_SOPT8_FTM0OCH6SRC_SHIFT (22U)
14806#define SIM_SOPT8_FTM0OCH6SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0OCH6SRC_SHIFT)) & SIM_SOPT8_FTM0OCH6SRC_MASK)
14807#define SIM_SOPT8_FTM0OCH6SRC SIM_SOPT8_FTM0OCH6SRC_MASK
14808#define SIM_SOPT8_FTM0OCH7SRC_MASK (0x800000U)
14809#define SIM_SOPT8_FTM0OCH7SRC_SHIFT (23U)
14810#define SIM_SOPT8_FTM0OCH7SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM0OCH7SRC_SHIFT)) & SIM_SOPT8_FTM0OCH7SRC_MASK)
14811#define SIM_SOPT8_FTM0OCH7SRC SIM_SOPT8_FTM0OCH7SRC_MASK
14812#define SIM_SOPT8_FTM3OCH0SRC_MASK (0x1000000U)
14813#define SIM_SOPT8_FTM3OCH0SRC_SHIFT (24U)
14814#define SIM_SOPT8_FTM3OCH0SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3OCH0SRC_SHIFT)) & SIM_SOPT8_FTM3OCH0SRC_MASK)
14815#define SIM_SOPT8_FTM3OCH0SRC SIM_SOPT8_FTM3OCH0SRC_MASK
14816#define SIM_SOPT8_FTM3OCH1SRC_MASK (0x2000000U)
14817#define SIM_SOPT8_FTM3OCH1SRC_SHIFT (25U)
14818#define SIM_SOPT8_FTM3OCH1SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3OCH1SRC_SHIFT)) & SIM_SOPT8_FTM3OCH1SRC_MASK)
14819#define SIM_SOPT8_FTM3OCH1SRC SIM_SOPT8_FTM3OCH1SRC_MASK
14820#define SIM_SOPT8_FTM3OCH2SRC_MASK (0x4000000U)
14821#define SIM_SOPT8_FTM3OCH2SRC_SHIFT (26U)
14822#define SIM_SOPT8_FTM3OCH2SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3OCH2SRC_SHIFT)) & SIM_SOPT8_FTM3OCH2SRC_MASK)
14823#define SIM_SOPT8_FTM3OCH2SRC SIM_SOPT8_FTM3OCH2SRC_MASK
14824#define SIM_SOPT8_FTM3OCH3SRC_MASK (0x8000000U)
14825#define SIM_SOPT8_FTM3OCH3SRC_SHIFT (27U)
14826#define SIM_SOPT8_FTM3OCH3SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3OCH3SRC_SHIFT)) & SIM_SOPT8_FTM3OCH3SRC_MASK)
14827#define SIM_SOPT8_FTM3OCH3SRC SIM_SOPT8_FTM3OCH3SRC_MASK
14828#define SIM_SOPT8_FTM3OCH4SRC_MASK (0x10000000U)
14829#define SIM_SOPT8_FTM3OCH4SRC_SHIFT (28U)
14830#define SIM_SOPT8_FTM3OCH4SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3OCH4SRC_SHIFT)) & SIM_SOPT8_FTM3OCH4SRC_MASK)
14831#define SIM_SOPT8_FTM3OCH4SRC SIM_SOPT8_FTM3OCH4SRC_MASK
14832#define SIM_SOPT8_FTM3OCH5SRC_MASK (0x20000000U)
14833#define SIM_SOPT8_FTM3OCH5SRC_SHIFT (29U)
14834#define SIM_SOPT8_FTM3OCH5SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3OCH5SRC_SHIFT)) & SIM_SOPT8_FTM3OCH5SRC_MASK)
14835#define SIM_SOPT8_FTM3OCH5SRC SIM_SOPT8_FTM3OCH5SRC_MASK
14836#define SIM_SOPT8_FTM3OCH6SRC_MASK (0x40000000U)
14837#define SIM_SOPT8_FTM3OCH6SRC_SHIFT (30U)
14838#define SIM_SOPT8_FTM3OCH6SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3OCH6SRC_SHIFT)) & SIM_SOPT8_FTM3OCH6SRC_MASK)
14839#define SIM_SOPT8_FTM3OCH6SRC SIM_SOPT8_FTM3OCH6SRC_MASK
14840#define SIM_SOPT8_FTM3OCH7SRC_MASK (0x80000000U)
14841#define SIM_SOPT8_FTM3OCH7SRC_SHIFT (31U)
14842#define SIM_SOPT8_FTM3OCH7SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT8_FTM3OCH7SRC_SHIFT)) & SIM_SOPT8_FTM3OCH7SRC_MASK)
14843#define SIM_SOPT8_FTM3OCH7SRC SIM_SOPT8_FTM3OCH7SRC_MASK
14844
14845/*! @name SOPT9 - System Options Register 9 */
14846#define SIM_SOPT9_TPM1CH0SRC_MASK (0xC0000U)
14847#define SIM_SOPT9_TPM1CH0SRC_SHIFT (18U)
14848#define SIM_SOPT9_TPM1CH0SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT9_TPM1CH0SRC_SHIFT)) & SIM_SOPT9_TPM1CH0SRC_MASK)
14849#define SIM_SOPT9_TPM1CH0SRC SIM_SOPT9_TPM1CH0SRC_MASK
14850#define SIM_SOPT9_TPM2CH0SRC_MASK (0x300000U)
14851#define SIM_SOPT9_TPM2CH0SRC_SHIFT (20U)
14852#define SIM_SOPT9_TPM2CH0SRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT9_TPM2CH0SRC_SHIFT)) & SIM_SOPT9_TPM2CH0SRC_MASK)
14853#define SIM_SOPT9_TPM2CH0SRC SIM_SOPT9_TPM2CH0SRC_MASK
14854#define SIM_SOPT9_TPM1CLKSEL_MASK (0x2000000U)
14855#define SIM_SOPT9_TPM1CLKSEL_SHIFT (25U)
14856#define SIM_SOPT9_TPM1CLKSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT9_TPM1CLKSEL_SHIFT)) & SIM_SOPT9_TPM1CLKSEL_MASK)
14857#define SIM_SOPT9_TPM1CLKSEL SIM_SOPT9_TPM1CLKSEL_MASK
14858#define SIM_SOPT9_TPM2CLKSEL_MASK (0x4000000U)
14859#define SIM_SOPT9_TPM2CLKSEL_SHIFT (26U)
14860#define SIM_SOPT9_TPM2CLKSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT9_TPM2CLKSEL_SHIFT)) & SIM_SOPT9_TPM2CLKSEL_MASK)
14861#define SIM_SOPT9_TPM2CLKSEL SIM_SOPT9_TPM2CLKSEL_MASK
14862
14863/*! @name SDID - System Device Identification Register */
14864#define SIM_SDID_PINID_MASK (0xFU)
14865#define SIM_SDID_PINID_SHIFT (0U)
14866#define SIM_SDID_PINID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_PINID_SHIFT)) & SIM_SDID_PINID_MASK)
14867#define SIM_SDID_PINID SIM_SDID_PINID_MASK
14868#define SIM_SDID_FAMID_MASK (0x70U)
14869#define SIM_SDID_FAMID_SHIFT (4U)
14870#define SIM_SDID_FAMID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_FAMID_SHIFT)) & SIM_SDID_FAMID_MASK)
14871#define SIM_SDID_FAMID SIM_SDID_FAMID_MASK
14872#define SIM_SDID_DIEID_MASK (0xF80U)
14873#define SIM_SDID_DIEID_SHIFT (7U)
14874#define SIM_SDID_DIEID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_DIEID_SHIFT)) & SIM_SDID_DIEID_MASK)
14875#define SIM_SDID_DIEID SIM_SDID_DIEID_MASK
14876#define SIM_SDID_REVID_MASK (0xF000U)
14877#define SIM_SDID_REVID_SHIFT (12U)
14878#define SIM_SDID_REVID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_REVID_SHIFT)) & SIM_SDID_REVID_MASK)
14879#define SIM_SDID_REVID SIM_SDID_REVID_MASK
14880#define SIM_SDID_SERIESID_MASK (0xF00000U)
14881#define SIM_SDID_SERIESID_SHIFT (20U)
14882#define SIM_SDID_SERIESID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SERIESID_SHIFT)) & SIM_SDID_SERIESID_MASK)
14883#define SIM_SDID_SERIESID SIM_SDID_SERIESID_MASK
14884#define SIM_SDID_SUBFAMID_MASK (0xF000000U)
14885#define SIM_SDID_SUBFAMID_SHIFT (24U)
14886#define SIM_SDID_SUBFAMID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SUBFAMID_SHIFT)) & SIM_SDID_SUBFAMID_MASK)
14887#define SIM_SDID_SUBFAMID SIM_SDID_SUBFAMID_MASK
14888#define SIM_SDID_FAMILYID_MASK (0xF0000000U)
14889#define SIM_SDID_FAMILYID_SHIFT (28U)
14890#define SIM_SDID_FAMILYID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_FAMILYID_SHIFT)) & SIM_SDID_FAMILYID_MASK)
14891#define SIM_SDID_FAMILYID SIM_SDID_FAMILYID_MASK
14892
14893/*! @name SCGC1 - System Clock Gating Control Register 1 */
14894#define SIM_SCGC1_I2C2_MASK (0x40U)
14895#define SIM_SCGC1_I2C2_SHIFT (6U)
14896#define SIM_SCGC1_I2C2_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC1_I2C2_SHIFT)) & SIM_SCGC1_I2C2_MASK)
14897#define SIM_SCGC1_I2C2 SIM_SCGC1_I2C2_MASK
14898#define SIM_SCGC1_I2C3_MASK (0x80U)
14899#define SIM_SCGC1_I2C3_SHIFT (7U)
14900#define SIM_SCGC1_I2C3_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC1_I2C3_SHIFT)) & SIM_SCGC1_I2C3_MASK)
14901#define SIM_SCGC1_I2C3 SIM_SCGC1_I2C3_MASK
14902#define SIM_SCGC1_UART4_MASK (0x400U)
14903#define SIM_SCGC1_UART4_SHIFT (10U)
14904#define SIM_SCGC1_UART4_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC1_UART4_SHIFT)) & SIM_SCGC1_UART4_MASK)
14905#define SIM_SCGC1_UART4 SIM_SCGC1_UART4_MASK
14906
14907/*! @name SCGC2 - System Clock Gating Control Register 2 */
14908#define SIM_SCGC2_ENET_MASK (0x1U)
14909#define SIM_SCGC2_ENET_SHIFT (0U)
14910#define SIM_SCGC2_ENET_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC2_ENET_SHIFT)) & SIM_SCGC2_ENET_MASK)
14911#define SIM_SCGC2_ENET SIM_SCGC2_ENET_MASK
14912#define SIM_SCGC2_LPUART0_MASK (0x10U)
14913#define SIM_SCGC2_LPUART0_SHIFT (4U)
14914#define SIM_SCGC2_LPUART0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC2_LPUART0_SHIFT)) & SIM_SCGC2_LPUART0_MASK)
14915#define SIM_SCGC2_LPUART0 SIM_SCGC2_LPUART0_MASK
14916#define SIM_SCGC2_TPM1_MASK (0x200U)
14917#define SIM_SCGC2_TPM1_SHIFT (9U)
14918#define SIM_SCGC2_TPM1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC2_TPM1_SHIFT)) & SIM_SCGC2_TPM1_MASK)
14919#define SIM_SCGC2_TPM1 SIM_SCGC2_TPM1_MASK
14920#define SIM_SCGC2_TPM2_MASK (0x400U)
14921#define SIM_SCGC2_TPM2_SHIFT (10U)
14922#define SIM_SCGC2_TPM2_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC2_TPM2_SHIFT)) & SIM_SCGC2_TPM2_MASK)
14923#define SIM_SCGC2_TPM2 SIM_SCGC2_TPM2_MASK
14924#define SIM_SCGC2_DAC0_MASK (0x1000U)
14925#define SIM_SCGC2_DAC0_SHIFT (12U)
14926#define SIM_SCGC2_DAC0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC2_DAC0_SHIFT)) & SIM_SCGC2_DAC0_MASK)
14927#define SIM_SCGC2_DAC0 SIM_SCGC2_DAC0_MASK
14928#define SIM_SCGC2_DAC1_MASK (0x2000U)
14929#define SIM_SCGC2_DAC1_SHIFT (13U)
14930#define SIM_SCGC2_DAC1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC2_DAC1_SHIFT)) & SIM_SCGC2_DAC1_MASK)
14931#define SIM_SCGC2_DAC1 SIM_SCGC2_DAC1_MASK
14932
14933/*! @name SCGC3 - System Clock Gating Control Register 3 */
14934#define SIM_SCGC3_RNGA_MASK (0x1U)
14935#define SIM_SCGC3_RNGA_SHIFT (0U)
14936#define SIM_SCGC3_RNGA_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_RNGA_SHIFT)) & SIM_SCGC3_RNGA_MASK)
14937#define SIM_SCGC3_RNGA SIM_SCGC3_RNGA_MASK
14938#define SIM_SCGC3_USBHS_MASK (0x2U)
14939#define SIM_SCGC3_USBHS_SHIFT (1U)
14940#define SIM_SCGC3_USBHS_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_USBHS_SHIFT)) & SIM_SCGC3_USBHS_MASK)
14941#define SIM_SCGC3_USBHS SIM_SCGC3_USBHS_MASK
14942#define SIM_SCGC3_USBHSPHY_MASK (0x4U)
14943#define SIM_SCGC3_USBHSPHY_SHIFT (2U)
14944#define SIM_SCGC3_USBHSPHY_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_USBHSPHY_SHIFT)) & SIM_SCGC3_USBHSPHY_MASK)
14945#define SIM_SCGC3_USBHSPHY SIM_SCGC3_USBHSPHY_SET(1)
14946#define SIM_SCGC3_USBHSDCD_MASK (0x8U)
14947#define SIM_SCGC3_USBHSDCD_SHIFT (3U)
14948#define SIM_SCGC3_USBHSDCD_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_USBHSDCD_SHIFT)) & SIM_SCGC3_USBHSDCD_MASK)
14949#define SIM_SCGC3_USBHSDCD SIM_SCGC3_USBHSDCD_MASK
14950#define SIM_SCGC3_FLEXCAN1_MASK (0x10U)
14951#define SIM_SCGC3_FLEXCAN1_SHIFT (4U)
14952#define SIM_SCGC3_FLEXCAN1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_FLEXCAN1_SHIFT)) & SIM_SCGC3_FLEXCAN1_MASK)
14953#define SIM_SCGC3_FLEXCAN1 SIM_SCGC3_FLEXCAN1_MASK
14954#define SIM_SCGC3_SPI2_MASK (0x1000U)
14955#define SIM_SCGC3_SPI2_SHIFT (12U)
14956#define SIM_SCGC3_SPI2_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_SPI2_SHIFT)) & SIM_SCGC3_SPI2_MASK)
14957#define SIM_SCGC3_SPI2 SIM_SCGC3_SPI2_MASK
14958#define SIM_SCGC3_SDHC_MASK (0x20000U)
14959#define SIM_SCGC3_SDHC_SHIFT (17U)
14960#define SIM_SCGC3_SDHC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_SDHC_SHIFT)) & SIM_SCGC3_SDHC_MASK)
14961#define SIM_SCGC3_SDHC SIM_SCGC3_SDHC_MASK
14962#define SIM_SCGC3_FTM2_MASK (0x1000000U)
14963#define SIM_SCGC3_FTM2_SHIFT (24U)
14964#define SIM_SCGC3_FTM2_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_FTM2_SHIFT)) & SIM_SCGC3_FTM2_MASK)
14965#define SIM_SCGC3_FTM2 SIM_SCGC3_FTM2_MASK
14966#define SIM_SCGC3_FTM3_MASK (0x2000000U)
14967#define SIM_SCGC3_FTM3_SHIFT (25U)
14968#define SIM_SCGC3_FTM3_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_FTM3_SHIFT)) & SIM_SCGC3_FTM3_MASK)
14969#define SIM_SCGC3_FTM3 SIM_SCGC3_FTM3_MASK
14970#define SIM_SCGC3_ADC1_MASK (0x8000000U)
14971#define SIM_SCGC3_ADC1_SHIFT (27U)
14972#define SIM_SCGC3_ADC1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC3_ADC1_SHIFT)) & SIM_SCGC3_ADC1_MASK)
14973#define SIM_SCGC3_ADC1 SIM_SCGC3_ADC1_MASK
14974
14975/*! @name SCGC4 - System Clock Gating Control Register 4 */
14976#define SIM_SCGC4_EWM_MASK (0x2U)
14977#define SIM_SCGC4_EWM_SHIFT (1U)
14978#define SIM_SCGC4_EWM_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_EWM_SHIFT)) & SIM_SCGC4_EWM_MASK)
14979#define SIM_SCGC4_EWM SIM_SCGC4_EWM_MASK
14980#define SIM_SCGC4_CMT_MASK (0x4U)
14981#define SIM_SCGC4_CMT_SHIFT (2U)
14982#define SIM_SCGC4_CMT_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_CMT_SHIFT)) & SIM_SCGC4_CMT_MASK)
14983#define SIM_SCGC4_CMT SIM_SCGC4_CMT_MASK
14984#define SIM_SCGC4_I2C0_MASK (0x40U)
14985#define SIM_SCGC4_I2C0_SHIFT (6U)
14986#define SIM_SCGC4_I2C0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_I2C0_SHIFT)) & SIM_SCGC4_I2C0_MASK)
14987#define SIM_SCGC4_I2C0 SIM_SCGC4_I2C0_MASK
14988#define SIM_SCGC4_I2C1_MASK (0x80U)
14989#define SIM_SCGC4_I2C1_SHIFT (7U)
14990#define SIM_SCGC4_I2C1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_I2C1_SHIFT)) & SIM_SCGC4_I2C1_MASK)
14991#define SIM_SCGC4_I2C1 SIM_SCGC4_I2C1_MASK
14992#define SIM_SCGC4_UART0_MASK (0x400U)
14993#define SIM_SCGC4_UART0_SHIFT (10U)
14994#define SIM_SCGC4_UART0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART0_SHIFT)) & SIM_SCGC4_UART0_MASK)
14995#define SIM_SCGC4_UART0 SIM_SCGC4_UART0_MASK
14996#define SIM_SCGC4_UART1_MASK (0x800U)
14997#define SIM_SCGC4_UART1_SHIFT (11U)
14998#define SIM_SCGC4_UART1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART1_SHIFT)) & SIM_SCGC4_UART1_MASK)
14999#define SIM_SCGC4_UART1 SIM_SCGC4_UART1_MASK
15000#define SIM_SCGC4_UART2_MASK (0x1000U)
15001#define SIM_SCGC4_UART2_SHIFT (12U)
15002#define SIM_SCGC4_UART2_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART2_SHIFT)) & SIM_SCGC4_UART2_MASK)
15003#define SIM_SCGC4_UART2 SIM_SCGC4_UART2_MASK
15004#define SIM_SCGC4_UART3_MASK (0x2000U)
15005#define SIM_SCGC4_UART3_SHIFT (13U)
15006#define SIM_SCGC4_UART3_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART3_SHIFT)) & SIM_SCGC4_UART3_MASK)
15007#define SIM_SCGC4_UART3 SIM_SCGC4_UART3_MASK
15008#define SIM_SCGC4_USBOTG_MASK (0x40000U)
15009#define SIM_SCGC4_USBOTG_SHIFT (18U)
15010#define SIM_SCGC4_USBOTG_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_USBOTG_SHIFT)) & SIM_SCGC4_USBOTG_MASK)
15011#define SIM_SCGC4_USBOTG SIM_SCGC4_USBOTG_SET(1)
15012#define SIM_SCGC4_CMP_MASK (0x80000U)
15013#define SIM_SCGC4_CMP_SHIFT (19U)
15014#define SIM_SCGC4_CMP_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_CMP_SHIFT)) & SIM_SCGC4_CMP_MASK)
15015#define SIM_SCGC4_CMP SIM_SCGC4_CMP_MASK
15016#define SIM_SCGC4_VREF_MASK (0x100000U)
15017#define SIM_SCGC4_VREF_SHIFT (20U)
15018#define SIM_SCGC4_VREF_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_VREF_SHIFT)) & SIM_SCGC4_VREF_MASK)
15019#define SIM_SCGC4_VREF SIM_SCGC4_VREF_MASK
15020
15021/*! @name SCGC5 - System Clock Gating Control Register 5 */
15022#define SIM_SCGC5_LPTMR_MASK (0x1U)
15023#define SIM_SCGC5_LPTMR_SHIFT (0U)
15024#define SIM_SCGC5_LPTMR_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_LPTMR_SHIFT)) & SIM_SCGC5_LPTMR_MASK)
15025#define SIM_SCGC5_LPTMR SIM_SCGC5_LPTMR_SET(1)
15026#define SIM_SCGC5_TSI_MASK (0x20U)
15027#define SIM_SCGC5_TSI_SHIFT (5U)
15028#define SIM_SCGC5_TSI_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_TSI_SHIFT)) & SIM_SCGC5_TSI_MASK)
15029#define SIM_SCGC5_TSI SIM_SCGC5_TSI_MASK
15030#define SIM_SCGC5_PORTA_MASK (0x200U)
15031#define SIM_SCGC5_PORTA_SHIFT (9U)
15032#define SIM_SCGC5_PORTA_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTA_SHIFT)) & SIM_SCGC5_PORTA_MASK)
15033#define SIM_SCGC5_PORTA SIM_SCGC5_PORTA_SET(1)
15034#define SIM_SCGC5_PORTB_MASK (0x400U)
15035#define SIM_SCGC5_PORTB_SHIFT (10U)
15036#define SIM_SCGC5_PORTB_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTB_SHIFT)) & SIM_SCGC5_PORTB_MASK)
15037#define SIM_SCGC5_PORTB SIM_SCGC5_PORTB_SET(1)
15038#define SIM_SCGC5_PORTC_MASK (0x800U)
15039#define SIM_SCGC5_PORTC_SHIFT (11U)
15040#define SIM_SCGC5_PORTC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTC_SHIFT)) & SIM_SCGC5_PORTC_MASK)
15041#define SIM_SCGC5_PORTC SIM_SCGC5_PORTC_SET(1)
15042#define SIM_SCGC5_PORTD_MASK (0x1000U)
15043#define SIM_SCGC5_PORTD_SHIFT (12U)
15044#define SIM_SCGC5_PORTD_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTD_SHIFT)) & SIM_SCGC5_PORTD_MASK)
15045#define SIM_SCGC5_PORTD SIM_SCGC5_PORTD_SET(1)
15046#define SIM_SCGC5_PORTE_MASK (0x2000U)
15047#define SIM_SCGC5_PORTE_SHIFT (13U)
15048#define SIM_SCGC5_PORTE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTE_SHIFT)) & SIM_SCGC5_PORTE_MASK)
15049#define SIM_SCGC5_PORTE SIM_SCGC5_PORTE_SET(1)
15050
15051/*! @name SCGC6 - System Clock Gating Control Register 6 */
15052#define SIM_SCGC6_FTF_MASK (0x1U)
15053#define SIM_SCGC6_FTF_SHIFT (0U)
15054#define SIM_SCGC6_FTF_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_FTF_SHIFT)) & SIM_SCGC6_FTF_MASK)
15055#define SIM_SCGC6_FTF SIM_SCGC6_FTF_MASK
15056#define SIM_SCGC6_DMAMUX_MASK (0x2U)
15057#define SIM_SCGC6_DMAMUX_SHIFT (1U)
15058#define SIM_SCGC6_DMAMUX_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_DMAMUX_SHIFT)) & SIM_SCGC6_DMAMUX_MASK)
15059#define SIM_SCGC6_DMAMUX SIM_SCGC6_DMAMUX_MASK
15060#define SIM_SCGC6_FLEXCAN0_MASK (0x10U)
15061#define SIM_SCGC6_FLEXCAN0_SHIFT (4U)
15062#define SIM_SCGC6_FLEXCAN0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_FLEXCAN0_SHIFT)) & SIM_SCGC6_FLEXCAN0_MASK)
15063#define SIM_SCGC6_FLEXCAN0 SIM_SCGC6_FLEXCAN0_MASK
15064#define SIM_SCGC6_RNGA_MASK (0x200U)
15065#define SIM_SCGC6_RNGA_SHIFT (9U)
15066#define SIM_SCGC6_RNGA_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_RNGA_SHIFT)) & SIM_SCGC6_RNGA_MASK)
15067#define SIM_SCGC6_RNGA SIM_SCGC6_RNGA_MASK
15068#define SIM_SCGC6_SPI0_MASK (0x1000U)
15069#define SIM_SCGC6_SPI0_SHIFT (12U)
15070#define SIM_SCGC6_SPI0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_SPI0_SHIFT)) & SIM_SCGC6_SPI0_MASK)
15071#define SIM_SCGC6_SPI0 SIM_SCGC6_SPI0_MASK
15072#define SIM_SCGC6_SPI1_MASK (0x2000U)
15073#define SIM_SCGC6_SPI1_SHIFT (13U)
15074#define SIM_SCGC6_SPI1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_SPI1_SHIFT)) & SIM_SCGC6_SPI1_MASK)
15075#define SIM_SCGC6_SPI1 SIM_SCGC6_SPI1_MASK
15076#define SIM_SCGC6_I2S_MASK (0x8000U)
15077#define SIM_SCGC6_I2S_SHIFT (15U)
15078#define SIM_SCGC6_I2S_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_I2S_SHIFT)) & SIM_SCGC6_I2S_MASK)
15079#define SIM_SCGC6_I2S SIM_SCGC6_I2S_MASK
15080#define SIM_SCGC6_CRC_MASK (0x40000U)
15081#define SIM_SCGC6_CRC_SHIFT (18U)
15082#define SIM_SCGC6_CRC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_CRC_SHIFT)) & SIM_SCGC6_CRC_MASK)
15083#define SIM_SCGC6_CRC SIM_SCGC6_CRC_MASK
15084#define SIM_SCGC6_USBDCD_MASK (0x200000U)
15085#define SIM_SCGC6_USBDCD_SHIFT (21U)
15086#define SIM_SCGC6_USBDCD_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_USBDCD_SHIFT)) & SIM_SCGC6_USBDCD_MASK)
15087#define SIM_SCGC6_USBDCD SIM_SCGC6_USBDCD_MASK
15088#define SIM_SCGC6_PDB_MASK (0x400000U)
15089#define SIM_SCGC6_PDB_SHIFT (22U)
15090#define SIM_SCGC6_PDB_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_PDB_SHIFT)) & SIM_SCGC6_PDB_MASK)
15091#define SIM_SCGC6_PDB SIM_SCGC6_PDB_MASK
15092#define SIM_SCGC6_PIT_MASK (0x800000U)
15093#define SIM_SCGC6_PIT_SHIFT (23U)
15094#define SIM_SCGC6_PIT_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_PIT_SHIFT)) & SIM_SCGC6_PIT_MASK)
15095#define SIM_SCGC6_PIT SIM_SCGC6_PIT_MASK
15096#define SIM_SCGC6_FTM0_MASK (0x1000000U)
15097#define SIM_SCGC6_FTM0_SHIFT (24U)
15098#define SIM_SCGC6_FTM0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_FTM0_SHIFT)) & SIM_SCGC6_FTM0_MASK)
15099#define SIM_SCGC6_FTM0 SIM_SCGC6_FTM0_MASK
15100#define SIM_SCGC6_FTM1_MASK (0x2000000U)
15101#define SIM_SCGC6_FTM1_SHIFT (25U)
15102#define SIM_SCGC6_FTM1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_FTM1_SHIFT)) & SIM_SCGC6_FTM1_MASK)
15103#define SIM_SCGC6_FTM1 SIM_SCGC6_FTM1_MASK
15104#define SIM_SCGC6_FTM2_MASK (0x4000000U)
15105#define SIM_SCGC6_FTM2_SHIFT (26U)
15106#define SIM_SCGC6_FTM2_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_FTM2_SHIFT)) & SIM_SCGC6_FTM2_MASK)
15107#define SIM_SCGC6_FTM2 SIM_SCGC6_FTM2_MASK
15108#define SIM_SCGC6_ADC0_MASK (0x8000000U)
15109#define SIM_SCGC6_ADC0_SHIFT (27U)
15110#define SIM_SCGC6_ADC0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_ADC0_SHIFT)) & SIM_SCGC6_ADC0_MASK)
15111#define SIM_SCGC6_ADC0 SIM_SCGC6_ADC0_MASK
15112#define SIM_SCGC6_RTC_MASK (0x20000000U)
15113#define SIM_SCGC6_RTC_SHIFT (29U)
15114#define SIM_SCGC6_RTC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_RTC_SHIFT)) & SIM_SCGC6_RTC_MASK)
15115#define SIM_SCGC6_RTC SIM_SCGC6_RTC_MASK
15116#define SIM_SCGC6_DAC0_MASK (0x80000000U)
15117#define SIM_SCGC6_DAC0_SHIFT (31U)
15118#define SIM_SCGC6_DAC0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_DAC0_SHIFT)) & SIM_SCGC6_DAC0_MASK)
15119#define SIM_SCGC6_DAC0 SIM_SCGC6_DAC0_MASK
15120
15121/*! @name SCGC7 - System Clock Gating Control Register 7 */
15122#define SIM_SCGC7_FLEXBUS_MASK (0x1U)
15123#define SIM_SCGC7_FLEXBUS_SHIFT (0U)
15124#define SIM_SCGC7_FLEXBUS_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC7_FLEXBUS_SHIFT)) & SIM_SCGC7_FLEXBUS_MASK)
15125#define SIM_SCGC7_FLEXBUS SIM_SCGC7_FLEXBUS_MASK
15126#define SIM_SCGC7_DMA_MASK (0x2U)
15127#define SIM_SCGC7_DMA_SHIFT (1U)
15128#define SIM_SCGC7_DMA_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC7_DMA_SHIFT)) & SIM_SCGC7_DMA_MASK)
15129#define SIM_SCGC7_DMA SIM_SCGC7_DMA_MASK
15130#define SIM_SCGC7_MPU_MASK (0x4U)
15131#define SIM_SCGC7_MPU_SHIFT (2U)
15132#define SIM_SCGC7_MPU_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC7_MPU_SHIFT)) & SIM_SCGC7_MPU_MASK)
15133#define SIM_SCGC7_MPU SIM_SCGC7_MPU_MASK
15134#define SIM_SCGC7_SDRAMC_MASK (0x8U)
15135#define SIM_SCGC7_SDRAMC_SHIFT (3U)
15136#define SIM_SCGC7_SDRAMC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC7_SDRAMC_SHIFT)) & SIM_SCGC7_SDRAMC_MASK)
15137#define SIM_SCGC7_SDRAMC SIM_SCGC7_SDRAMC_MASK
15138
15139/*! @name CLKDIV1 - System Clock Divider Register 1 */
15140#define SIM_CLKDIV1_OUTDIV4_MASK (0xF0000U)
15141#define SIM_CLKDIV1_OUTDIV4_SHIFT (16U)
15142#define SIM_CLKDIV1_OUTDIV4(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV4_SHIFT)) & SIM_CLKDIV1_OUTDIV4_MASK)
15143#define SIM_CLKDIV1_OUTDIV3_MASK (0xF00000U)
15144#define SIM_CLKDIV1_OUTDIV3_SHIFT (20U)
15145#define SIM_CLKDIV1_OUTDIV3(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV3_SHIFT)) & SIM_CLKDIV1_OUTDIV3_MASK)
15146#define SIM_CLKDIV1_OUTDIV2_MASK (0xF000000U)
15147#define SIM_CLKDIV1_OUTDIV2_SHIFT (24U)
15148#define SIM_CLKDIV1_OUTDIV2(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV2_SHIFT)) & SIM_CLKDIV1_OUTDIV2_MASK)
15149#define SIM_CLKDIV1_OUTDIV1_MASK (0xF0000000U)
15150#define SIM_CLKDIV1_OUTDIV1_SHIFT (28U)
15151#define SIM_CLKDIV1_OUTDIV1(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV1_SHIFT)) & SIM_CLKDIV1_OUTDIV1_MASK)
15152
15153/*! @name CLKDIV2 - System Clock Divider Register 2 */
15154#define SIM_CLKDIV2_USBFRAC_MASK (0x1U)
15155#define SIM_CLKDIV2_USBFRAC_SHIFT (0U)
15156#define SIM_CLKDIV2_USBFRAC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV2_USBFRAC_SHIFT)) & SIM_CLKDIV2_USBFRAC_MASK)
15157#define SIM_CLKDIV2_USBFRAC SIM_CLKDIV2_USBFRAC_SET(1)
15158#define SIM_CLKDIV2_USBDIV_MASK (0xEU)
15159#define SIM_CLKDIV2_USBDIV_SHIFT (1U)
15160#define SIM_CLKDIV2_USBDIV(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV2_USBDIV_SHIFT)) & SIM_CLKDIV2_USBDIV_MASK)
15161
15162/*! @name FCFG1 - Flash Configuration Register 1 */
15163#define SIM_FCFG1_FLASHDIS_MASK (0x1U)
15164#define SIM_FCFG1_FLASHDIS_SHIFT (0U)
15165#define SIM_FCFG1_FLASHDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_FLASHDIS_SHIFT)) & SIM_FCFG1_FLASHDIS_MASK)
15166#define SIM_FCFG1_FLASHDIS SIM_FCFG1_FLASHDIS_MASK
15167#define SIM_FCFG1_FLASHDOZE_MASK (0x2U)
15168#define SIM_FCFG1_FLASHDOZE_SHIFT (1U)
15169#define SIM_FCFG1_FLASHDOZE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_FLASHDOZE_SHIFT)) & SIM_FCFG1_FLASHDOZE_MASK)
15170#define SIM_FCFG1_FLASHDOZE SIM_FCFG1_FLASHDOZE_MASK
15171#define SIM_FCFG1_DEPART_MASK (0xF00U)
15172#define SIM_FCFG1_DEPART_SHIFT (8U)
15173#define SIM_FCFG1_DEPART_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_DEPART_SHIFT)) & SIM_FCFG1_DEPART_MASK)
15174#define SIM_FCFG1_DEPART SIM_FCFG1_DEPART_MASK
15175#define SIM_FCFG1_EESIZE_MASK (0xF0000U)
15176#define SIM_FCFG1_EESIZE_SHIFT (16U)
15177#define SIM_FCFG1_EESIZE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_EESIZE_SHIFT)) & SIM_FCFG1_EESIZE_MASK)
15178#define SIM_FCFG1_EESIZE SIM_FCFG1_EESIZE_MASK
15179#define SIM_FCFG1_PFSIZE_MASK (0xF000000U)
15180#define SIM_FCFG1_PFSIZE_SHIFT (24U)
15181#define SIM_FCFG1_PFSIZE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_PFSIZE_SHIFT)) & SIM_FCFG1_PFSIZE_MASK)
15182#define SIM_FCFG1_PFSIZE SIM_FCFG1_PFSIZE_MASK
15183#define SIM_FCFG1_NVMSIZE_MASK (0xF0000000U)
15184#define SIM_FCFG1_NVMSIZE_SHIFT (28U)
15185#define SIM_FCFG1_NVMSIZE_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_NVMSIZE_SHIFT)) & SIM_FCFG1_NVMSIZE_MASK)
15186#define SIM_FCFG1_NVMSIZE SIM_FCFG1_NVMSIZE_MASK
15187
15188/*! @name FCFG2 - Flash Configuration Register 2 */
15189#define SIM_FCFG2_MAXADDR1_MASK (0x7F0000U)
15190#define SIM_FCFG2_MAXADDR1_SHIFT (16U)
15191#define SIM_FCFG2_MAXADDR1_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_MAXADDR1_SHIFT)) & SIM_FCFG2_MAXADDR1_MASK)
15192#define SIM_FCFG2_MAXADDR1 SIM_FCFG2_MAXADDR1_MASK
15193#define SIM_FCFG2_PFLSH_MASK (0x800000U)
15194#define SIM_FCFG2_PFLSH_SHIFT (23U)
15195#define SIM_FCFG2_PFLSH_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_PFLSH_SHIFT)) & SIM_FCFG2_PFLSH_MASK)
15196#define SIM_FCFG2_PFLSH SIM_FCFG2_PFLSH_MASK
15197#define SIM_FCFG2_MAXADDR0_MASK (0x7F000000U)
15198#define SIM_FCFG2_MAXADDR0_SHIFT (24U)
15199#define SIM_FCFG2_MAXADDR0_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_MAXADDR0_SHIFT)) & SIM_FCFG2_MAXADDR0_MASK)
15200#define SIM_FCFG2_MAXADDR0 SIM_FCFG2_MAXADDR0_MASK
15201#define SIM_FCFG2_SWAPPFLSH_MASK (0x80000000U)
15202#define SIM_FCFG2_SWAPPFLSH_SHIFT (31U)
15203#define SIM_FCFG2_SWAPPFLSH_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_SWAPPFLSH_SHIFT)) & SIM_FCFG2_SWAPPFLSH_MASK)
15204#define SIM_FCFG2_SWAPPFLSH SIM_FCFG2_SWAPPFLSH_MASK
15205
15206/*! @name UIDH - Unique Identification Register High */
15207#define SIM_UIDH_UID_MASK (0xFFFFFFFFU)
15208#define SIM_UIDH_UID_SHIFT (0U)
15209#define SIM_UIDH_UID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDH_UID_SHIFT)) & SIM_UIDH_UID_MASK)
15210#define SIM_UIDH_UID SIM_UIDH_UID_MASK
15211
15212/*! @name UIDMH - Unique Identification Register Mid-High */
15213#define SIM_UIDMH_UID_MASK (0xFFFFFFFFU)
15214#define SIM_UIDMH_UID_SHIFT (0U)
15215#define SIM_UIDMH_UID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDMH_UID_SHIFT)) & SIM_UIDMH_UID_MASK)
15216#define SIM_UIDMH_UID SIM_UIDMH_UID_MASK
15217
15218/*! @name UIDML - Unique Identification Register Mid Low */
15219#define SIM_UIDML_UID_MASK (0xFFFFFFFFU)
15220#define SIM_UIDML_UID_SHIFT (0U)
15221#define SIM_UIDML_UID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDML_UID_SHIFT)) & SIM_UIDML_UID_MASK)
15222#define SIM_UIDML_UID SIM_UIDML_UID_MASK
15223
15224/*! @name UIDL - Unique Identification Register Low */
15225#define SIM_UIDL_UID_MASK (0xFFFFFFFFU)
15226#define SIM_UIDL_UID_SHIFT (0U)
15227#define SIM_UIDL_UID_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDL_UID_SHIFT)) & SIM_UIDL_UID_MASK)
15228#define SIM_UIDL_UID SIM_UIDL_UID_MASK
15229
15230/*! @name CLKDIV3 - System Clock Divider Register 3 */
15231#define SIM_CLKDIV3_PLLFLLFRAC_MASK (0x1U)
15232#define SIM_CLKDIV3_PLLFLLFRAC_SHIFT (0U)
15233#define SIM_CLKDIV3_PLLFLLFRAC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV3_PLLFLLFRAC_SHIFT)) & SIM_CLKDIV3_PLLFLLFRAC_MASK)
15234#define SIM_CLKDIV3_PLLFLLFRAC SIM_CLKDIV3_PLLFLLFRAC_MASK
15235#define SIM_CLKDIV3_PLLFLLDIV_MASK (0xEU)
15236#define SIM_CLKDIV3_PLLFLLDIV_SHIFT (1U)
15237#define SIM_CLKDIV3_PLLFLLDIV_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV3_PLLFLLDIV_SHIFT)) & SIM_CLKDIV3_PLLFLLDIV_MASK)
15238#define SIM_CLKDIV3_PLLFLLDIV SIM_CLKDIV3_PLLFLLDIV_MASK
15239
15240/*! @name CLKDIV4 - System Clock Divider Register 4 */
15241#define SIM_CLKDIV4_TRACEFRAC_MASK (0x1U)
15242#define SIM_CLKDIV4_TRACEFRAC_SHIFT (0U)
15243#define SIM_CLKDIV4_TRACEFRAC_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV4_TRACEFRAC_SHIFT)) & SIM_CLKDIV4_TRACEFRAC_MASK)
15244#define SIM_CLKDIV4_TRACEFRAC SIM_CLKDIV4_TRACEFRAC_MASK
15245#define SIM_CLKDIV4_TRACEDIV_MASK (0xEU)
15246#define SIM_CLKDIV4_TRACEDIV_SHIFT (1U)
15247#define SIM_CLKDIV4_TRACEDIV_SET(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV4_TRACEDIV_SHIFT)) & SIM_CLKDIV4_TRACEDIV_MASK)
15248#define SIM_CLKDIV4_TRACEDIV SIM_CLKDIV4_TRACEDIV_MASK
15249
15250
15251/*!
15252 * @}
15253 */ /* end of group SIM_Register_Masks */
15254
15255
15256/* SIM - Peripheral instance base addresses */
15257/** Peripheral SIM base address */
15258#define SIM_BASE (0x40047000u)
15259/** Peripheral SIM base pointer */
15260#define SIM ((SIM_TypeDef *)SIM_BASE)
15261/** Array initializer of SIM peripheral base addresses */
15262#define SIM_BASE_ADDRS { SIM_BASE }
15263/** Array initializer of SIM peripheral base pointers */
15264#define SIM_BASE_PTRS { SIM }
15265
15266/*!
15267 * @}
15268 */ /* end of group SIM_Peripheral_Access_Layer */
15269
15270
15271/* ----------------------------------------------------------------------------
15272 -- SMC Peripheral Access Layer
15273 ---------------------------------------------------------------------------- */
15274
15275/*!
15276 * @addtogroup SMC_Peripheral_Access_Layer SMC Peripheral Access Layer
15277 * @{
15278 */
15279
15280/** SMC - Register Layout Typedef */
15281typedef struct {
15282 __IO uint8_t PMPROT; /**< Power Mode Protection register, offset: 0x0 */
15283 __IO uint8_t PMCTRL; /**< Power Mode Control register, offset: 0x1 */
15284 __IO uint8_t STOPCTRL; /**< Stop Control Register, offset: 0x2 */
15285 __I uint8_t PMSTAT; /**< Power Mode Status register, offset: 0x3 */
15286} SMC_TypeDef;
15287
15288/* ----------------------------------------------------------------------------
15289 -- SMC Register Masks
15290 ---------------------------------------------------------------------------- */
15291
15292/*!
15293 * @addtogroup SMC_Register_Masks SMC Register Masks
15294 * @{
15295 */
15296
15297/*! @name PMPROT - Power Mode Protection register */
15298#define SMC_PMPROT_AVLLS_MASK (0x2U)
15299#define SMC_PMPROT_AVLLS_SHIFT (1U)
15300#define SMC_PMPROT_AVLLS_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_AVLLS_SHIFT)) & SMC_PMPROT_AVLLS_MASK)
15301#define SMC_PMPROT_AVLLS SMC_PMPROT_AVLLS_MASK
15302#define SMC_PMPROT_ALLS_MASK (0x8U)
15303#define SMC_PMPROT_ALLS_SHIFT (3U)
15304#define SMC_PMPROT_ALLS_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_ALLS_SHIFT)) & SMC_PMPROT_ALLS_MASK)
15305#define SMC_PMPROT_ALLS SMC_PMPROT_ALLS_MASK
15306#define SMC_PMPROT_AVLP_MASK (0x20U)
15307#define SMC_PMPROT_AVLP_SHIFT (5U)
15308#define SMC_PMPROT_AVLP_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_AVLP_SHIFT)) & SMC_PMPROT_AVLP_MASK)
15309#define SMC_PMPROT_AVLP SMC_PMPROT_AVLP_MASK
15310#define SMC_PMPROT_AHSRUN_MASK (0x80U)
15311#define SMC_PMPROT_AHSRUN_SHIFT (7U)
15312#define SMC_PMPROT_AHSRUN_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_AHSRUN_SHIFT)) & SMC_PMPROT_AHSRUN_MASK)
15313#define SMC_PMPROT_AHSRUN SMC_PMPROT_AHSRUN_MASK
15314
15315/*! @name PMCTRL - Power Mode Control register */
15316#define SMC_PMCTRL_STOPM_MASK (0x7U)
15317#define SMC_PMCTRL_STOPM_SHIFT (0U)
15318#define SMC_PMCTRL_STOPM_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_STOPM_SHIFT)) & SMC_PMCTRL_STOPM_MASK)
15319#define SMC_PMCTRL_STOPM SMC_PMCTRL_STOPM_MASK
15320#define SMC_PMCTRL_STOPA_MASK (0x8U)
15321#define SMC_PMCTRL_STOPA_SHIFT (3U)
15322#define SMC_PMCTRL_STOPA_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_STOPA_SHIFT)) & SMC_PMCTRL_STOPA_MASK)
15323#define SMC_PMCTRL_STOPA SMC_PMCTRL_STOPA_MASK
15324#define SMC_PMCTRL_RUNM_MASK (0x60U)
15325#define SMC_PMCTRL_RUNM_SHIFT (5U)
15326#define SMC_PMCTRL_RUNM_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_RUNM_SHIFT)) & SMC_PMCTRL_RUNM_MASK)
15327#define SMC_PMCTRL_RUNM SMC_PMCTRL_RUNM_MASK
15328
15329/*! @name STOPCTRL - Stop Control Register */
15330#define SMC_STOPCTRL_LLSM_MASK (0x7U)
15331#define SMC_STOPCTRL_LLSM_SHIFT (0U)
15332#define SMC_STOPCTRL_LLSM_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_LLSM_SHIFT)) & SMC_STOPCTRL_LLSM_MASK)
15333#define SMC_STOPCTRL_LLSM SMC_STOPCTRL_LLSM_MASK
15334#define SMC_STOPCTRL_RAM2PO_MASK (0x10U)
15335#define SMC_STOPCTRL_RAM2PO_SHIFT (4U)
15336#define SMC_STOPCTRL_RAM2PO_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_RAM2PO_SHIFT)) & SMC_STOPCTRL_RAM2PO_MASK)
15337#define SMC_STOPCTRL_RAM2PO SMC_STOPCTRL_RAM2PO_MASK
15338#define SMC_STOPCTRL_PORPO_MASK (0x20U)
15339#define SMC_STOPCTRL_PORPO_SHIFT (5U)
15340#define SMC_STOPCTRL_PORPO_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_PORPO_SHIFT)) & SMC_STOPCTRL_PORPO_MASK)
15341#define SMC_STOPCTRL_PORPO SMC_STOPCTRL_PORPO_MASK
15342#define SMC_STOPCTRL_PSTOPO_MASK (0xC0U)
15343#define SMC_STOPCTRL_PSTOPO_SHIFT (6U)
15344#define SMC_STOPCTRL_PSTOPO_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_PSTOPO_SHIFT)) & SMC_STOPCTRL_PSTOPO_MASK)
15345#define SMC_STOPCTRL_PSTOPO SMC_STOPCTRL_PSTOPO_MASK
15346
15347/*! @name PMSTAT - Power Mode Status register */
15348#define SMC_PMSTAT_PMSTAT_MASK (0xFFU)
15349#define SMC_PMSTAT_PMSTAT_SHIFT (0U)
15350#define SMC_PMSTAT_PMSTAT_SET(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMSTAT_PMSTAT_SHIFT)) & SMC_PMSTAT_PMSTAT_MASK)
15351#define SMC_PMSTAT_PMSTAT SMC_PMSTAT_PMSTAT_MASK
15352
15353
15354/*!
15355 * @}
15356 */ /* end of group SMC_Register_Masks */
15357
15358
15359/* SMC - Peripheral instance base addresses */
15360/** Peripheral SMC base address */
15361#define SMC_BASE (0x4007E000u)
15362/** Peripheral SMC base pointer */
15363#define SMC ((SMC_TypeDef *)SMC_BASE)
15364/** Array initializer of SMC peripheral base addresses */
15365#define SMC_BASE_ADDRS { SMC_BASE }
15366/** Array initializer of SMC peripheral base pointers */
15367#define SMC_BASE_PTRS { SMC }
15368
15369/*!
15370 * @}
15371 */ /* end of group SMC_Peripheral_Access_Layer */
15372
15373
15374/* ----------------------------------------------------------------------------
15375 -- SPI Peripheral Access Layer
15376 ---------------------------------------------------------------------------- */
15377
15378/*!
15379 * @addtogroup SPIx_Peripheral_Access_Layer SPI Peripheral Access Layer
15380 * @{
15381 */
15382
15383/** SPI - Register Layout Typedef */
15384typedef struct {
15385 __IO uint32_t MCR; /**< Module Configuration Register, offset: 0x0 */
15386 uint8_t RESERVED_0[4];
15387 __IO uint32_t TCR; /**< Transfer Count Register, offset: 0x8 */
15388 union { /* offset: 0xC */
15389 __IO uint32_t CTAR[2]; /**< Clock and Transfer Attributes Register (In Master Mode), array offset: 0xC, array step: 0x4 */
15390 __IO uint32_t CTAR_SLAVE[1]; /**< Clock and Transfer Attributes Register (In Slave Mode), array offset: 0xC, array step: 0x4 */
15391 };
15392 uint8_t RESERVED_1[24];
15393 __IO uint32_t SR; /**< Status Register, offset: 0x2C */
15394 __IO uint32_t RSER; /**< DMA/Interrupt Request Select and Enable Register, offset: 0x30 */
15395 union { /* offset: 0x34 */
15396 __IO uint32_t PUSHR; /**< PUSH TX FIFO Register In Master Mode, offset: 0x34 */
15397 __IO uint32_t PUSHR_SLAVE; /**< PUSH TX FIFO Register In Slave Mode, offset: 0x34 */
15398 };
15399 __I uint32_t POPR; /**< POP RX FIFO Register, offset: 0x38 */
15400 __I uint32_t TXFR0; /**< Transmit FIFO Registers, offset: 0x3C */
15401 __I uint32_t TXFR1; /**< Transmit FIFO Registers, offset: 0x40 */
15402 __I uint32_t TXFR2; /**< Transmit FIFO Registers, offset: 0x44 */
15403 __I uint32_t TXFR3; /**< Transmit FIFO Registers, offset: 0x48 */
15404 uint8_t RESERVED_2[48];
15405 __I uint32_t RXFR0; /**< Receive FIFO Registers, offset: 0x7C */
15406 __I uint32_t RXFR1; /**< Receive FIFO Registers, offset: 0x80 */
15407 __I uint32_t RXFR2; /**< Receive FIFO Registers, offset: 0x84 */
15408 __I uint32_t RXFR3; /**< Receive FIFO Registers, offset: 0x88 */
15409} SPI_TypeDef;
15410
15411/* ----------------------------------------------------------------------------
15412 -- SPI Register Masks
15413 ---------------------------------------------------------------------------- */
15414
15415/*!
15416 * @addtogroup SPIx_Register_Masks SPI Register Masks
15417 * @{
15418 */
15419
15420/*! @name MCR - Module Configuration Register */
15421#define SPIx_MCR_HALT_MASK (0x1U)
15422#define SPIx_MCR_HALT_SHIFT (0U)
15423#define SPIx_MCR_HALT_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_HALT_SHIFT)) & SPIx_MCR_HALT_MASK)
15424#define SPIx_MCR_HALT SPIx_MCR_HALT_MASK
15425#define SPIx_MCR_SMPL_PT_MASK (0x300U)
15426#define SPIx_MCR_SMPL_PT_SHIFT (8U)
15427#define SPIx_MCR_SMPL_PT_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_SMPL_PT_SHIFT)) & SPIx_MCR_SMPL_PT_MASK)
15428#define SPIx_MCR_SMPL_PT SPIx_MCR_SMPL_PT_MASK
15429#define SPIx_MCR_CLR_RXF_MASK (0x400U)
15430#define SPIx_MCR_CLR_RXF_SHIFT (10U)
15431#define SPIx_MCR_CLR_RXF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_CLR_RXF_SHIFT)) & SPIx_MCR_CLR_RXF_MASK)
15432#define SPIx_MCR_CLR_RXF SPIx_MCR_CLR_RXF_MASK
15433#define SPIx_MCR_CLR_TXF_MASK (0x800U)
15434#define SPIx_MCR_CLR_TXF_SHIFT (11U)
15435#define SPIx_MCR_CLR_TXF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_CLR_TXF_SHIFT)) & SPIx_MCR_CLR_TXF_MASK)
15436#define SPIx_MCR_CLR_TXF SPIx_MCR_CLR_TXF_MASK
15437#define SPIx_MCR_DIS_RXF_MASK (0x1000U)
15438#define SPIx_MCR_DIS_RXF_SHIFT (12U)
15439#define SPIx_MCR_DIS_RXF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_DIS_RXF_SHIFT)) & SPIx_MCR_DIS_RXF_MASK)
15440#define SPIx_MCR_DIS_RXF SPIx_MCR_DIS_RXF_MASK
15441#define SPIx_MCR_DIS_TXF_MASK (0x2000U)
15442#define SPIx_MCR_DIS_TXF_SHIFT (13U)
15443#define SPIx_MCR_DIS_TXF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_DIS_TXF_SHIFT)) & SPIx_MCR_DIS_TXF_MASK)
15444#define SPIx_MCR_DIS_TXF SPIx_MCR_DIS_TXF_MASK
15445#define SPIx_MCR_MDIS_MASK (0x4000U)
15446#define SPIx_MCR_MDIS_SHIFT (14U)
15447#define SPIx_MCR_MDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_MDIS_SHIFT)) & SPIx_MCR_MDIS_MASK)
15448#define SPIx_MCR_MDIS SPIx_MCR_MDIS_MASK
15449#define SPIx_MCR_DOZE_MASK (0x8000U)
15450#define SPIx_MCR_DOZE_SHIFT (15U)
15451#define SPIx_MCR_DOZE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_DOZE_SHIFT)) & SPIx_MCR_DOZE_MASK)
15452#define SPIx_MCR_DOZE SPIx_MCR_DOZE_MASK
15453#define SPIx_MCR_PCSIS_MASK (0x3F0000U)
15454#define SPIx_MCR_PCSIS_SHIFT (16U)
15455#define SPIx_MCR_PCSIS_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_PCSIS_SHIFT)) & SPIx_MCR_PCSIS_MASK)
15456#define SPIx_MCR_PCSIS SPIx_MCR_PCSIS_MASK
15457#define SPIx_MCR_ROOE_MASK (0x1000000U)
15458#define SPIx_MCR_ROOE_SHIFT (24U)
15459#define SPIx_MCR_ROOE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_ROOE_SHIFT)) & SPIx_MCR_ROOE_MASK)
15460#define SPIx_MCR_ROOE SPIx_MCR_ROOE_MASK
15461#define SPIx_MCR_PCSSE_MASK (0x2000000U)
15462#define SPIx_MCR_PCSSE_SHIFT (25U)
15463#define SPIx_MCR_PCSSE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_PCSSE_SHIFT)) & SPIx_MCR_PCSSE_MASK)
15464#define SPIx_MCR_PCSSE SPIx_MCR_PCSSE_MASK
15465#define SPIx_MCR_MTFE_MASK (0x4000000U)
15466#define SPIx_MCR_MTFE_SHIFT (26U)
15467#define SPIx_MCR_MTFE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_MTFE_SHIFT)) & SPIx_MCR_MTFE_MASK)
15468#define SPIx_MCR_MTFE SPIx_MCR_MTFE_MASK
15469#define SPIx_MCR_FRZ_MASK (0x8000000U)
15470#define SPIx_MCR_FRZ_SHIFT (27U)
15471#define SPIx_MCR_FRZ_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_FRZ_SHIFT)) & SPIx_MCR_FRZ_MASK)
15472#define SPIx_MCR_FRZ SPIx_MCR_FRZ_MASK
15473#define SPIx_MCR_DCONF_MASK (0x30000000U)
15474#define SPIx_MCR_DCONF_SHIFT (28U)
15475#define SPIx_MCR_DCONF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_DCONF_SHIFT)) & SPIx_MCR_DCONF_MASK)
15476#define SPIx_MCR_DCONF SPIx_MCR_DCONF_MASK
15477#define SPIx_MCR_CONT_SCKE_MASK (0x40000000U)
15478#define SPIx_MCR_CONT_SCKE_SHIFT (30U)
15479#define SPIx_MCR_CONT_SCKE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_CONT_SCKE_SHIFT)) & SPIx_MCR_CONT_SCKE_MASK)
15480#define SPIx_MCR_CONT_SCKE SPIx_MCR_CONT_SCKE_MASK
15481#define SPIx_MCR_MSTR_MASK (0x80000000U)
15482#define SPIx_MCR_MSTR_SHIFT (31U)
15483#define SPIx_MCR_MSTR_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_MCR_MSTR_SHIFT)) & SPIx_MCR_MSTR_MASK)
15484#define SPIx_MCR_MSTR SPIx_MCR_MSTR_MASK
15485
15486/*! @name TCR - Transfer Count Register */
15487#define SPIx_TCR_SPIx_TCNT_MASK (0xFFFF0000U)
15488#define SPIx_TCR_SPIx_TCNT_SHIFT (16U)
15489#define SPIx_TCR_SPIx_TCNT_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TCR_SPIx_TCNT_SHIFT)) & SPIx_TCR_SPIx_TCNT_MASK)
15490#define SPIx_TCR_SPIx_TCNT SPIx_TCR_SPIx_TCNT_MASK
15491
15492/*! @name CTAR - Clock and Transfer Attributes Register (In Master Mode) */
15493#define SPIx_CTARn_BR_MASK (0xFU)
15494#define SPIx_CTARn_BR_SHIFT (0U)
15495#define SPIx_CTARn_BR(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_BR_SHIFT)) & SPIx_CTARn_BR_MASK)
15496#define SPIx_CTARn_DT_MASK (0xF0U)
15497#define SPIx_CTARn_DT_SHIFT (4U)
15498#define SPIx_CTARn_DT(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_DT_SHIFT)) & SPIx_CTARn_DT_MASK)
15499#define SPIx_CTARn_ASC_MASK (0xF00U)
15500#define SPIx_CTARn_ASC_SHIFT (8U)
15501#define SPIx_CTARn_ASC(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_ASC_SHIFT)) & SPIx_CTARn_ASC_MASK)
15502#define SPIx_CTARn_CSSCK_MASK (0xF000U)
15503#define SPIx_CTARn_CSSCK_SHIFT (12U)
15504#define SPIx_CTARn_CSSCK(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_CSSCK_SHIFT)) & SPIx_CTARn_CSSCK_MASK)
15505#define SPIx_CTARn_PBR_MASK (0x30000U)
15506#define SPIx_CTARn_PBR_SHIFT (16U)
15507#define SPIx_CTARn_PBR(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_PBR_SHIFT)) & SPIx_CTARn_PBR_MASK)
15508#define SPIx_CTARn_PDT_MASK (0xC0000U)
15509#define SPIx_CTARn_PDT_SHIFT (18U)
15510#define SPIx_CTARn_PDT_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_PDT_SHIFT)) & SPIx_CTARn_PDT_MASK)
15511#define SPIx_CTARn_PDT SPIx_CTARn_PDT_MASK
15512#define SPIx_CTARn_PASC_MASK (0x300000U)
15513#define SPIx_CTARn_PASC_SHIFT (20U)
15514#define SPIx_CTARn_PASC_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_PASC_SHIFT)) & SPIx_CTARn_PASC_MASK)
15515#define SPIx_CTARn_PASC SPIx_CTARn_PASC_MASK
15516#define SPIx_CTARn_PCSSCK_MASK (0xC00000U)
15517#define SPIx_CTARn_PCSSCK_SHIFT (22U)
15518#define SPIx_CTARn_PCSSCK_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_PCSSCK_SHIFT)) & SPIx_CTARn_PCSSCK_MASK)
15519#define SPIx_CTARn_PCSSCK SPIx_CTARn_PCSSCK_MASK
15520#define SPIx_CTARn_LSBFE_MASK (0x1000000U)
15521#define SPIx_CTARn_LSBFE_SHIFT (24U)
15522#define SPIx_CTARn_LSBFE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_LSBFE_SHIFT)) & SPIx_CTARn_LSBFE_MASK)
15523#define SPIx_CTARn_LSBFE SPIx_CTARn_LSBFE_MASK
15524#define SPIx_CTARn_CPHA_MASK (0x2000000U)
15525#define SPIx_CTARn_CPHA_SHIFT (25U)
15526#define SPIx_CTARn_CPHA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_CPHA_SHIFT)) & SPIx_CTARn_CPHA_MASK)
15527#define SPIx_CTARn_CPHA SPIx_CTARn_CPHA_MASK
15528#define SPIx_CTARn_CPOL_MASK (0x4000000U)
15529#define SPIx_CTARn_CPOL_SHIFT (26U)
15530#define SPIx_CTARn_CPOL_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_CPOL_SHIFT)) & SPIx_CTARn_CPOL_MASK)
15531#define SPIx_CTARn_CPOL SPIx_CTARn_CPOL_MASK
15532#define SPIx_CTARn_FMSZ_MASK (0x78000000U)
15533#define SPIx_CTARn_FMSZ_SHIFT (27U)
15534#define SPIx_CTARn_FMSZ(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_FMSZ_SHIFT)) & SPIx_CTARn_FMSZ_MASK)
15535#define SPIx_CTARn_DBR_MASK (0x80000000U)
15536#define SPIx_CTARn_DBR_SHIFT (31U)
15537#define SPIx_CTARn_DBR_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_DBR_SHIFT)) & SPIx_CTARn_DBR_MASK)
15538#define SPIx_CTARn_DBR SPIx_CTARn_DBR_MASK
15539
15540/* The count of SPIx_CTAR */
15541#define SPIx_CTARn_COUNT (2U)
15542
15543/*! @name CTAR_SLAVE - Clock and Transfer Attributes Register (In Slave Mode) */
15544#define SPIx_CTARn_SLAVE_CPHA_MASK (0x2000000U)
15545#define SPIx_CTARn_SLAVE_CPHA_SHIFT (25U)
15546#define SPIx_CTARn_SLAVE_CPHA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_SLAVE_CPHA_SHIFT)) & SPIx_CTARn_SLAVE_CPHA_MASK)
15547#define SPIx_CTARn_SLAVE_CPHA SPIx_CTARn_SLAVE_CPHA_MASK
15548#define SPIx_CTARn_SLAVE_CPOL_MASK (0x4000000U)
15549#define SPIx_CTARn_SLAVE_CPOL_SHIFT (26U)
15550#define SPIx_CTARn_SLAVE_CPOL_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_SLAVE_CPOL_SHIFT)) & SPIx_CTARn_SLAVE_CPOL_MASK)
15551#define SPIx_CTARn_SLAVE_CPOL SPIx_CTARn_SLAVE_CPOL_MASK
15552#define SPIx_CTARn_SLAVE_FMSZ_MASK (0x78000000U)
15553#define SPIx_CTARn_SLAVE_FMSZ_SHIFT (27U)
15554#define SPIx_CTARn_SLAVE_FMSZ_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_CTARn_SLAVE_FMSZ_SHIFT)) & SPIx_CTARn_SLAVE_FMSZ_MASK)
15555#define SPIx_CTARn_SLAVE_FMSZ SPIx_CTARn_SLAVE_FMSZ_MASK
15556
15557/* The count of SPIx_CTARn_SLAVE */
15558#define SPIx_CTARn_SLAVE_COUNT (1U)
15559
15560/*! @name SR - Status Register */
15561#define SPIx_SR_POPNXTPTR_MASK (0xFU)
15562#define SPIx_SR_POPNXTPTR_SHIFT (0U)
15563#define SPIx_SR_POPNXTPTR_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_POPNXTPTR_SHIFT)) & SPIx_SR_POPNXTPTR_MASK)
15564#define SPIx_SR_POPNXTPTR SPIx_SR_POPNXTPTR_MASK
15565#define SPIx_SR_RXCTR_MASK (0xF0U)
15566#define SPIx_SR_RXCTR_SHIFT (4U)
15567#define SPIx_SR_RXCTR_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_RXCTR_SHIFT)) & SPIx_SR_RXCTR_MASK)
15568#define SPIx_SR_RXCTR SPIx_SR_RXCTR_MASK
15569#define SPIx_SR_TXNXTPTR_MASK (0xF00U)
15570#define SPIx_SR_TXNXTPTR_SHIFT (8U)
15571#define SPIx_SR_TXNXTPTR_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_TXNXTPTR_SHIFT)) & SPIx_SR_TXNXTPTR_MASK)
15572#define SPIx_SR_TXNXTPTR SPIx_SR_TXNXTPTR_MASK
15573#define SPIx_SR_TXCTR_MASK (0xF000U)
15574#define SPIx_SR_TXCTR_SHIFT (12U)
15575#define SPIx_SR_TXCTR_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_TXCTR_SHIFT)) & SPIx_SR_TXCTR_MASK)
15576#define SPIx_SR_TXCTR SPIx_SR_TXCTR_MASK
15577#define SPIx_SR_RFDF_MASK (0x20000U)
15578#define SPIx_SR_RFDF_SHIFT (17U)
15579#define SPIx_SR_RFDF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_RFDF_SHIFT)) & SPIx_SR_RFDF_MASK)
15580#define SPIx_SR_RFDF SPIx_SR_RFDF_MASK
15581#define SPIx_SR_RFOF_MASK (0x80000U)
15582#define SPIx_SR_RFOF_SHIFT (19U)
15583#define SPIx_SR_RFOF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_RFOF_SHIFT)) & SPIx_SR_RFOF_MASK)
15584#define SPIx_SR_RFOF SPIx_SR_RFOF_MASK
15585#define SPIx_SR_TFFF_MASK (0x2000000U)
15586#define SPIx_SR_TFFF_SHIFT (25U)
15587#define SPIx_SR_TFFF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_TFFF_SHIFT)) & SPIx_SR_TFFF_MASK)
15588#define SPIx_SR_TFFF SPIx_SR_TFFF_MASK
15589#define SPIx_SR_TFUF_MASK (0x8000000U)
15590#define SPIx_SR_TFUF_SHIFT (27U)
15591#define SPIx_SR_TFUF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_TFUF_SHIFT)) & SPIx_SR_TFUF_MASK)
15592#define SPIx_SR_TFUF SPIx_SR_TFUF_MASK
15593#define SPIx_SR_EOQF_MASK (0x10000000U)
15594#define SPIx_SR_EOQF_SHIFT (28U)
15595#define SPIx_SR_EOQF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_EOQF_SHIFT)) & SPIx_SR_EOQF_MASK)
15596#define SPIx_SR_EOQF SPIx_SR_EOQF_MASK
15597#define SPIx_SR_TXRXS_MASK (0x40000000U)
15598#define SPIx_SR_TXRXS_SHIFT (30U)
15599#define SPIx_SR_TXRXS_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_TXRXS_SHIFT)) & SPIx_SR_TXRXS_MASK)
15600#define SPIx_SR_TXRXS SPIx_SR_TXRXS_MASK
15601#define SPIx_SR_TCF_MASK (0x80000000U)
15602#define SPIx_SR_TCF_SHIFT (31U)
15603#define SPIx_SR_TCF_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_SR_TCF_SHIFT)) & SPIx_SR_TCF_MASK)
15604#define SPIx_SR_TCF SPIx_SR_TCF_MASK
15605
15606/*! @name RSER - DMA/Interrupt Request Select and Enable Register */
15607#define SPIx_RSER_RFDF_DIRS_MASK (0x10000U)
15608#define SPIx_RSER_RFDF_DIRS_SHIFT (16U)
15609#define SPIx_RSER_RFDF_DIRS_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RSER_RFDF_DIRS_SHIFT)) & SPIx_RSER_RFDF_DIRS_MASK)
15610#define SPIx_RSER_RFDF_DIRS SPIx_RSER_RFDF_DIRS_MASK
15611#define SPIx_RSER_RFDF_RE_MASK (0x20000U)
15612#define SPIx_RSER_RFDF_RE_SHIFT (17U)
15613#define SPIx_RSER_RFDF_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RSER_RFDF_RE_SHIFT)) & SPIx_RSER_RFDF_RE_MASK)
15614#define SPIx_RSER_RFDF_RE SPIx_RSER_RFDF_RE_MASK
15615#define SPIx_RSER_RFOF_RE_MASK (0x80000U)
15616#define SPIx_RSER_RFOF_RE_SHIFT (19U)
15617#define SPIx_RSER_RFOF_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RSER_RFOF_RE_SHIFT)) & SPIx_RSER_RFOF_RE_MASK)
15618#define SPIx_RSER_RFOF_RE SPIx_RSER_RFOF_RE_MASK
15619#define SPIx_RSER_TFFF_DIRS_MASK (0x1000000U)
15620#define SPIx_RSER_TFFF_DIRS_SHIFT (24U)
15621#define SPIx_RSER_TFFF_DIRS_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RSER_TFFF_DIRS_SHIFT)) & SPIx_RSER_TFFF_DIRS_MASK)
15622#define SPIx_RSER_TFFF_DIRS SPIx_RSER_TFFF_DIRS_MASK
15623#define SPIx_RSER_TFFF_RE_MASK (0x2000000U)
15624#define SPIx_RSER_TFFF_RE_SHIFT (25U)
15625#define SPIx_RSER_TFFF_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RSER_TFFF_RE_SHIFT)) & SPIx_RSER_TFFF_RE_MASK)
15626#define SPIx_RSER_TFFF_RE SPIx_RSER_TFFF_RE_MASK
15627#define SPIx_RSER_TFUF_RE_MASK (0x8000000U)
15628#define SPIx_RSER_TFUF_RE_SHIFT (27U)
15629#define SPIx_RSER_TFUF_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RSER_TFUF_RE_SHIFT)) & SPIx_RSER_TFUF_RE_MASK)
15630#define SPIx_RSER_TFUF_RE SPIx_RSER_TFUF_RE_MASK
15631#define SPIx_RSER_EOQF_RE_MASK (0x10000000U)
15632#define SPIx_RSER_EOQF_RE_SHIFT (28U)
15633#define SPIx_RSER_EOQF_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RSER_EOQF_RE_SHIFT)) & SPIx_RSER_EOQF_RE_MASK)
15634#define SPIx_RSER_EOQF_RE SPIx_RSER_EOQF_RE_MASK
15635#define SPIx_RSER_TCF_RE_MASK (0x80000000U)
15636#define SPIx_RSER_TCF_RE_SHIFT (31U)
15637#define SPIx_RSER_TCF_RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RSER_TCF_RE_SHIFT)) & SPIx_RSER_TCF_RE_MASK)
15638#define SPIx_RSER_TCF_RE SPIx_RSER_TCF_RE_MASK
15639
15640/*! @name PUSHR - PUSH TX FIFO Register In Master Mode */
15641#define SPIx_PUSHR_TXDATA_MASK (0xFFFFU)
15642#define SPIx_PUSHR_TXDATA_SHIFT (0U)
15643#define SPIx_PUSHR_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPIx_PUSHR_TXDATA_SHIFT)) & SPIx_PUSHR_TXDATA_MASK)
15644#define SPIx_PUSHR_PCS_MASK (0x3F0000U)
15645#define SPIx_PUSHR_PCS_SHIFT (16U)
15646#define SPIx_PUSHR_PCS(x) (((uint32_t)(((uint32_t)(x)) << SPIx_PUSHR_PCS_SHIFT)) & SPIx_PUSHR_PCS_MASK)
15647#define SPIx_PUSHR_CTCNT_MASK (0x4000000U)
15648#define SPIx_PUSHR_CTCNT_SHIFT (26U)
15649#define SPIx_PUSHR_CTCNT(x) (((uint32_t)(((uint32_t)(x)) << SPIx_PUSHR_CTCNT_SHIFT)) & SPIx_PUSHR_CTCNT_MASK)
15650#define SPIx_PUSHR_EOQ_MASK (0x8000000U)
15651#define SPIx_PUSHR_EOQ_SHIFT (27U)
15652#define SPIx_PUSHR_EOQ(x) (((uint32_t)(((uint32_t)(x)) << SPIx_PUSHR_EOQ_SHIFT)) & SPIx_PUSHR_EOQ_MASK)
15653#define SPIx_PUSHR_CTAS_MASK (0x70000000U)
15654#define SPIx_PUSHR_CTAS_SHIFT (28U)
15655#define SPIx_PUSHR_CTAS(x) (((uint32_t)(((uint32_t)(x)) << SPIx_PUSHR_CTAS_SHIFT)) & SPIx_PUSHR_CTAS_MASK)
15656#define SPIx_PUSHR_CONT_MASK (0x80000000U)
15657#define SPIx_PUSHR_CONT_SHIFT (31U)
15658#define SPIx_PUSHR_CONT(x) (((uint32_t)(((uint32_t)(x)) << SPIx_PUSHR_CONT_SHIFT)) & SPIx_PUSHR_CONT_MASK)
15659
15660/*! @name PUSHR_SLAVE - PUSH TX FIFO Register In Slave Mode */
15661#define SPIx_PUSHR_SLAVE_TXDATA_MASK (0xFFFFFFFFU)
15662#define SPIx_PUSHR_SLAVE_TXDATA_SHIFT (0U)
15663#define SPIx_PUSHR_SLAVE_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_PUSHR_SLAVE_TXDATA_SHIFT)) & SPIx_PUSHR_SLAVE_TXDATA_MASK)
15664#define SPIx_PUSHR_SLAVE_TXDATA SPIx_PUSHR_SLAVE_TXDATA_MASK
15665
15666/*! @name POPR - POP RX FIFO Register */
15667#define SPIx_POPR_RXDATA_MASK (0xFFFFFFFFU)
15668#define SPIx_POPR_RXDATA_SHIFT (0U)
15669#define SPIx_POPR_RXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_POPR_RXDATA_SHIFT)) & SPIx_POPR_RXDATA_MASK)
15670#define SPIx_POPR_RXDATA SPIx_POPR_RXDATA_MASK
15671
15672/*! @name TXFR0 - Transmit FIFO Registers */
15673#define SPIx_TXFR0_TXDATA_MASK (0xFFFFU)
15674#define SPIx_TXFR0_TXDATA_SHIFT (0U)
15675#define SPIx_TXFR0_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TXFR0_TXDATA_SHIFT)) & SPIx_TXFR0_TXDATA_MASK)
15676#define SPIx_TXFR0_TXDATA SPIx_TXFR0_TXDATA_MASK
15677#define SPIx_TXFR0_TXCMD_TXDATA_MASK (0xFFFF0000U)
15678#define SPIx_TXFR0_TXCMD_TXDATA_SHIFT (16U)
15679#define SPIx_TXFR0_TXCMD_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TXFR0_TXCMD_TXDATA_SHIFT)) & SPIx_TXFR0_TXCMD_TXDATA_MASK)
15680#define SPIx_TXFR0_TXCMD_TXDATA SPIx_TXFR0_TXCMD_TXDATA_MASK
15681
15682/*! @name TXFR1 - Transmit FIFO Registers */
15683#define SPIx_TXFR1_TXDATA_MASK (0xFFFFU)
15684#define SPIx_TXFR1_TXDATA_SHIFT (0U)
15685#define SPIx_TXFR1_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TXFR1_TXDATA_SHIFT)) & SPIx_TXFR1_TXDATA_MASK)
15686#define SPIx_TXFR1_TXDATA SPIx_TXFR1_TXDATA_MASK
15687#define SPIx_TXFR1_TXCMD_TXDATA_MASK (0xFFFF0000U)
15688#define SPIx_TXFR1_TXCMD_TXDATA_SHIFT (16U)
15689#define SPIx_TXFR1_TXCMD_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TXFR1_TXCMD_TXDATA_SHIFT)) & SPIx_TXFR1_TXCMD_TXDATA_MASK)
15690#define SPIx_TXFR1_TXCMD_TXDATA SPIx_TXFR1_TXCMD_TXDATA_MASK
15691
15692/*! @name TXFR2 - Transmit FIFO Registers */
15693#define SPIx_TXFR2_TXDATA_MASK (0xFFFFU)
15694#define SPIx_TXFR2_TXDATA_SHIFT (0U)
15695#define SPIx_TXFR2_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TXFR2_TXDATA_SHIFT)) & SPIx_TXFR2_TXDATA_MASK)
15696#define SPIx_TXFR2_TXDATA SPIx_TXFR2_TXDATA_MASK
15697#define SPIx_TXFR2_TXCMD_TXDATA_MASK (0xFFFF0000U)
15698#define SPIx_TXFR2_TXCMD_TXDATA_SHIFT (16U)
15699#define SPIx_TXFR2_TXCMD_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TXFR2_TXCMD_TXDATA_SHIFT)) & SPIx_TXFR2_TXCMD_TXDATA_MASK)
15700#define SPIx_TXFR2_TXCMD_TXDATA SPIx_TXFR2_TXCMD_TXDATA_MASK
15701
15702/*! @name TXFR3 - Transmit FIFO Registers */
15703#define SPIx_TXFR3_TXDATA_MASK (0xFFFFU)
15704#define SPIx_TXFR3_TXDATA_SHIFT (0U)
15705#define SPIx_TXFR3_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TXFR3_TXDATA_SHIFT)) & SPIx_TXFR3_TXDATA_MASK)
15706#define SPIx_TXFR3_TXDATA SPIx_TXFR3_TXDATA_MASK
15707#define SPIx_TXFR3_TXCMD_TXDATA_MASK (0xFFFF0000U)
15708#define SPIx_TXFR3_TXCMD_TXDATA_SHIFT (16U)
15709#define SPIx_TXFR3_TXCMD_TXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_TXFR3_TXCMD_TXDATA_SHIFT)) & SPIx_TXFR3_TXCMD_TXDATA_MASK)
15710#define SPIx_TXFR3_TXCMD_TXDATA SPIx_TXFR3_TXCMD_TXDATA_MASK
15711
15712/*! @name RXFR0 - Receive FIFO Registers */
15713#define SPIx_RXFR0_RXDATA_MASK (0xFFFFFFFFU)
15714#define SPIx_RXFR0_RXDATA_SHIFT (0U)
15715#define SPIx_RXFR0_RXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RXFR0_RXDATA_SHIFT)) & SPIx_RXFR0_RXDATA_MASK)
15716#define SPIx_RXFR0_RXDATA SPIx_RXFR0_RXDATA_MASK
15717
15718/*! @name RXFR1 - Receive FIFO Registers */
15719#define SPIx_RXFR1_RXDATA_MASK (0xFFFFFFFFU)
15720#define SPIx_RXFR1_RXDATA_SHIFT (0U)
15721#define SPIx_RXFR1_RXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RXFR1_RXDATA_SHIFT)) & SPIx_RXFR1_RXDATA_MASK)
15722#define SPIx_RXFR1_RXDATA SPIx_RXFR1_RXDATA_MASK
15723
15724/*! @name RXFR2 - Receive FIFO Registers */
15725#define SPIx_RXFR2_RXDATA_MASK (0xFFFFFFFFU)
15726#define SPIx_RXFR2_RXDATA_SHIFT (0U)
15727#define SPIx_RXFR2_RXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RXFR2_RXDATA_SHIFT)) & SPIx_RXFR2_RXDATA_MASK)
15728#define SPIx_RXFR2_RXDATA SPIx_RXFR2_RXDATA_MASK
15729
15730/*! @name RXFR3 - Receive FIFO Registers */
15731#define SPIx_RXFR3_RXDATA_MASK (0xFFFFFFFFU)
15732#define SPIx_RXFR3_RXDATA_SHIFT (0U)
15733#define SPIx_RXFR3_RXDATA_SET(x) (((uint32_t)(((uint32_t)(x)) << SPIx_RXFR3_RXDATA_SHIFT)) & SPIx_RXFR3_RXDATA_MASK)
15734#define SPIx_RXFR3_RXDATA SPIx_RXFR3_RXDATA_MASK
15735
15736
15737/*!
15738 * @}
15739 */ /* end of group SPIx_Register_Masks */
15740
15741
15742/* SPI - Peripheral instance base addresses */
15743/** Peripheral SPI0 base address */
15744#define SPI0_BASE (0x4002C000u)
15745/** Peripheral SPI0 base pointer */
15746#define SPI0 ((SPI_TypeDef *)SPI0_BASE)
15747/** Peripheral SPI1 base address */
15748#define SPI1_BASE (0x4002D000u)
15749/** Peripheral SPI1 base pointer */
15750#define SPI1 ((SPI_TypeDef *)SPI1_BASE)
15751/** Peripheral SPI2 base address */
15752#define SPI2_BASE (0x400AC000u)
15753/** Peripheral SPI2 base pointer */
15754#define SPI2 ((SPI_TypeDef *)SPI2_BASE)
15755/** Array initializer of SPI peripheral base addresses */
15756#define SPIx_BASE_ADDRS { SPI0_BASE, SPI1_BASE, SPI2_BASE }
15757/** Array initializer of SPI peripheral base pointers */
15758#define SPIx_BASE_PTRS { SPI0, SPI1, SPI2 }
15759/** Interrupt vectors for the SPI peripheral type */
15760#define SPIx_IRQS { SPI0_IRQn, SPI1_IRQn, SPI2_IRQn }
15761
15762/*!
15763 * @}
15764 */ /* end of group SPIx_Peripheral_Access_Layer */
15765
15766
15767/* ----------------------------------------------------------------------------
15768 -- SYSMPU Peripheral Access Layer
15769 ---------------------------------------------------------------------------- */
15770
15771/*!
15772 * @addtogroup SYSMPU_Peripheral_Access_Layer SYSMPU Peripheral Access Layer
15773 * @{
15774 */
15775
15776/** SYSMPU - Register Layout Typedef */
15777typedef struct {
15778 __IO uint32_t CESR; /**< Control/Error Status Register, offset: 0x0 */
15779 uint8_t RESERVED_0[12];
15780 struct { /* offset: 0x10, array step: 0x8 */
15781 __I uint32_t EAR; /**< Error Address Register, slave port n, array offset: 0x10, array step: 0x8 */
15782 __I uint32_t EDR; /**< Error Detail Register, slave port n, array offset: 0x14, array step: 0x8 */
15783 } SP[5];
15784 uint8_t RESERVED_1[968];
15785 __IO uint32_t WORD[12][4]; /**< Region Descriptor n, Word 0..Region Descriptor n, Word 3, array offset: 0x400, array step: index*0x10, index2*0x4 */
15786 uint8_t RESERVED_2[832];
15787 __IO uint32_t RGDAAC[12]; /**< Region Descriptor Alternate Access Control n, array offset: 0x800, array step: 0x4 */
15788} SYSMPU_TypeDef;
15789
15790/* ----------------------------------------------------------------------------
15791 -- SYSMPU Register Masks
15792 ---------------------------------------------------------------------------- */
15793
15794/*!
15795 * @addtogroup SYSMPU_Register_Masks SYSMPU Register Masks
15796 * @{
15797 */
15798
15799/*! @name CESR - Control/Error Status Register */
15800#define SYSMPU_CESR_VLD_MASK (0x1U)
15801#define SYSMPU_CESR_VLD_SHIFT (0U)
15802#define SYSMPU_CESR_VLD_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_VLD_SHIFT)) & SYSMPU_CESR_VLD_MASK)
15803#define SYSMPU_CESR_VLD SYSMPU_CESR_VLD_MASK
15804#define SYSMPU_CESR_NRGD_MASK (0xF00U)
15805#define SYSMPU_CESR_NRGD_SHIFT (8U)
15806#define SYSMPU_CESR_NRGD_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_NRGD_SHIFT)) & SYSMPU_CESR_NRGD_MASK)
15807#define SYSMPU_CESR_NRGD SYSMPU_CESR_NRGD_MASK
15808#define SYSMPU_CESR_NSP_MASK (0xF000U)
15809#define SYSMPU_CESR_NSP_SHIFT (12U)
15810#define SYSMPU_CESR_NSP_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_NSP_SHIFT)) & SYSMPU_CESR_NSP_MASK)
15811#define SYSMPU_CESR_NSP SYSMPU_CESR_NSP_MASK
15812#define SYSMPU_CESR_HRL_MASK (0xF0000U)
15813#define SYSMPU_CESR_HRL_SHIFT (16U)
15814#define SYSMPU_CESR_HRL_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_HRL_SHIFT)) & SYSMPU_CESR_HRL_MASK)
15815#define SYSMPU_CESR_HRL SYSMPU_CESR_HRL_MASK
15816#define SYSMPU_CESR_SPERR_MASK (0xF8000000U)
15817#define SYSMPU_CESR_SPERR_SHIFT (27U)
15818#define SYSMPU_CESR_SPERR_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_SPERR_SHIFT)) & SYSMPU_CESR_SPERR_MASK)
15819#define SYSMPU_CESR_SPERR SYSMPU_CESR_SPERR_MASK
15820
15821/*! @name EAR - Error Address Register, slave port n */
15822#define SYSMPU_EAR_EADDR_MASK (0xFFFFFFFFU)
15823#define SYSMPU_EAR_EADDR_SHIFT (0U)
15824#define SYSMPU_EAR_EADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EAR_EADDR_SHIFT)) & SYSMPU_EAR_EADDR_MASK)
15825#define SYSMPU_EAR_EADDR SYSMPU_EAR_EADDR_MASK
15826
15827/* The count of SYSMPU_EAR */
15828#define SYSMPU_EAR_COUNT (5U)
15829
15830/*! @name EDR - Error Detail Register, slave port n */
15831#define SYSMPU_EDR_ERW_MASK (0x1U)
15832#define SYSMPU_EDR_ERW_SHIFT (0U)
15833#define SYSMPU_EDR_ERW_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_ERW_SHIFT)) & SYSMPU_EDR_ERW_MASK)
15834#define SYSMPU_EDR_ERW SYSMPU_EDR_ERW_MASK
15835#define SYSMPU_EDR_EATTR_MASK (0xEU)
15836#define SYSMPU_EDR_EATTR_SHIFT (1U)
15837#define SYSMPU_EDR_EATTR_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_EATTR_SHIFT)) & SYSMPU_EDR_EATTR_MASK)
15838#define SYSMPU_EDR_EATTR SYSMPU_EDR_EATTR_MASK
15839#define SYSMPU_EDR_EMN_MASK (0xF0U)
15840#define SYSMPU_EDR_EMN_SHIFT (4U)
15841#define SYSMPU_EDR_EMN_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_EMN_SHIFT)) & SYSMPU_EDR_EMN_MASK)
15842#define SYSMPU_EDR_EMN SYSMPU_EDR_EMN_MASK
15843#define SYSMPU_EDR_EPID_MASK (0xFF00U)
15844#define SYSMPU_EDR_EPID_SHIFT (8U)
15845#define SYSMPU_EDR_EPID_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_EPID_SHIFT)) & SYSMPU_EDR_EPID_MASK)
15846#define SYSMPU_EDR_EPID SYSMPU_EDR_EPID_MASK
15847#define SYSMPU_EDR_EACD_MASK (0xFFFF0000U)
15848#define SYSMPU_EDR_EACD_SHIFT (16U)
15849#define SYSMPU_EDR_EACD_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_EACD_SHIFT)) & SYSMPU_EDR_EACD_MASK)
15850#define SYSMPU_EDR_EACD SYSMPU_EDR_EACD_MASK
15851
15852/* The count of SYSMPU_EDR */
15853#define SYSMPU_EDR_COUNT (5U)
15854
15855/*! @name WORD - Region Descriptor n, Word 0..Region Descriptor n, Word 3 */
15856#define SYSMPU_WORD_VLD_MASK (0x1U)
15857#define SYSMPU_WORD_VLD_SHIFT (0U)
15858#define SYSMPU_WORD_VLD_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_VLD_SHIFT)) & SYSMPU_WORD_VLD_MASK)
15859#define SYSMPU_WORD_VLD SYSMPU_WORD_VLD_MASK
15860#define SYSMPU_WORD_M0UM_MASK (0x7U)
15861#define SYSMPU_WORD_M0UM_SHIFT (0U)
15862#define SYSMPU_WORD_M0UM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M0UM_SHIFT)) & SYSMPU_WORD_M0UM_MASK)
15863#define SYSMPU_WORD_M0UM SYSMPU_WORD_M0UM_MASK
15864#define SYSMPU_WORD_M0SM_MASK (0x18U)
15865#define SYSMPU_WORD_M0SM_SHIFT (3U)
15866#define SYSMPU_WORD_M0SM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M0SM_SHIFT)) & SYSMPU_WORD_M0SM_MASK)
15867#define SYSMPU_WORD_M0SM SYSMPU_WORD_M0SM_MASK
15868#define SYSMPU_WORD_M0PE_MASK (0x20U)
15869#define SYSMPU_WORD_M0PE_SHIFT (5U)
15870#define SYSMPU_WORD_M0PE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M0PE_SHIFT)) & SYSMPU_WORD_M0PE_MASK)
15871#define SYSMPU_WORD_M0PE SYSMPU_WORD_M0PE_MASK
15872#define SYSMPU_WORD_ENDADDR_MASK (0xFFFFFFE0U)
15873#define SYSMPU_WORD_ENDADDR_SHIFT (5U)
15874#define SYSMPU_WORD_ENDADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_ENDADDR_SHIFT)) & SYSMPU_WORD_ENDADDR_MASK)
15875#define SYSMPU_WORD_ENDADDR SYSMPU_WORD_ENDADDR_MASK
15876#define SYSMPU_WORD_SRTADDR_MASK (0xFFFFFFE0U)
15877#define SYSMPU_WORD_SRTADDR_SHIFT (5U)
15878#define SYSMPU_WORD_SRTADDR_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_SRTADDR_SHIFT)) & SYSMPU_WORD_SRTADDR_MASK)
15879#define SYSMPU_WORD_SRTADDR SYSMPU_WORD_SRTADDR_MASK
15880#define SYSMPU_WORD_M1UM_MASK (0x1C0U)
15881#define SYSMPU_WORD_M1UM_SHIFT (6U)
15882#define SYSMPU_WORD_M1UM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M1UM_SHIFT)) & SYSMPU_WORD_M1UM_MASK)
15883#define SYSMPU_WORD_M1UM SYSMPU_WORD_M1UM_MASK
15884#define SYSMPU_WORD_M1SM_MASK (0x600U)
15885#define SYSMPU_WORD_M1SM_SHIFT (9U)
15886#define SYSMPU_WORD_M1SM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M1SM_SHIFT)) & SYSMPU_WORD_M1SM_MASK)
15887#define SYSMPU_WORD_M1SM SYSMPU_WORD_M1SM_MASK
15888#define SYSMPU_WORD_M1PE_MASK (0x800U)
15889#define SYSMPU_WORD_M1PE_SHIFT (11U)
15890#define SYSMPU_WORD_M1PE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M1PE_SHIFT)) & SYSMPU_WORD_M1PE_MASK)
15891#define SYSMPU_WORD_M1PE SYSMPU_WORD_M1PE_MASK
15892#define SYSMPU_WORD_M2UM_MASK (0x7000U)
15893#define SYSMPU_WORD_M2UM_SHIFT (12U)
15894#define SYSMPU_WORD_M2UM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M2UM_SHIFT)) & SYSMPU_WORD_M2UM_MASK)
15895#define SYSMPU_WORD_M2UM SYSMPU_WORD_M2UM_MASK
15896#define SYSMPU_WORD_M2SM_MASK (0x18000U)
15897#define SYSMPU_WORD_M2SM_SHIFT (15U)
15898#define SYSMPU_WORD_M2SM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M2SM_SHIFT)) & SYSMPU_WORD_M2SM_MASK)
15899#define SYSMPU_WORD_M2SM SYSMPU_WORD_M2SM_MASK
15900#define SYSMPU_WORD_PIDMASK_MASK (0xFF0000U)
15901#define SYSMPU_WORD_PIDMASK_SHIFT (16U)
15902#define SYSMPU_WORD_PIDMASK_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_PIDMASK_SHIFT)) & SYSMPU_WORD_PIDMASK_MASK)
15903#define SYSMPU_WORD_PIDMASK SYSMPU_WORD_PIDMASK_MASK
15904#define SYSMPU_WORD_M2PE_MASK (0x20000U)
15905#define SYSMPU_WORD_M2PE_SHIFT (17U)
15906#define SYSMPU_WORD_M2PE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M2PE_SHIFT)) & SYSMPU_WORD_M2PE_MASK)
15907#define SYSMPU_WORD_M2PE SYSMPU_WORD_M2PE_MASK
15908#define SYSMPU_WORD_M3UM_MASK (0x1C0000U)
15909#define SYSMPU_WORD_M3UM_SHIFT (18U)
15910#define SYSMPU_WORD_M3UM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M3UM_SHIFT)) & SYSMPU_WORD_M3UM_MASK)
15911#define SYSMPU_WORD_M3UM SYSMPU_WORD_M3UM_MASK
15912#define SYSMPU_WORD_M3SM_MASK (0x600000U)
15913#define SYSMPU_WORD_M3SM_SHIFT (21U)
15914#define SYSMPU_WORD_M3SM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M3SM_SHIFT)) & SYSMPU_WORD_M3SM_MASK)
15915#define SYSMPU_WORD_M3SM SYSMPU_WORD_M3SM_MASK
15916#define SYSMPU_WORD_M3PE_MASK (0x800000U)
15917#define SYSMPU_WORD_M3PE_SHIFT (23U)
15918#define SYSMPU_WORD_M3PE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M3PE_SHIFT)) & SYSMPU_WORD_M3PE_MASK)
15919#define SYSMPU_WORD_M3PE SYSMPU_WORD_M3PE_MASK
15920#define SYSMPU_WORD_PID_MASK (0xFF000000U)
15921#define SYSMPU_WORD_PID_SHIFT (24U)
15922#define SYSMPU_WORD_PID_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_PID_SHIFT)) & SYSMPU_WORD_PID_MASK)
15923#define SYSMPU_WORD_PID SYSMPU_WORD_PID_MASK
15924#define SYSMPU_WORD_M4WE_MASK (0x1000000U)
15925#define SYSMPU_WORD_M4WE_SHIFT (24U)
15926#define SYSMPU_WORD_M4WE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M4WE_SHIFT)) & SYSMPU_WORD_M4WE_MASK)
15927#define SYSMPU_WORD_M4WE SYSMPU_WORD_M4WE_MASK
15928#define SYSMPU_WORD_M4RE_MASK (0x2000000U)
15929#define SYSMPU_WORD_M4RE_SHIFT (25U)
15930#define SYSMPU_WORD_M4RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M4RE_SHIFT)) & SYSMPU_WORD_M4RE_MASK)
15931#define SYSMPU_WORD_M4RE SYSMPU_WORD_M4RE_MASK
15932#define SYSMPU_WORD_M5WE_MASK (0x4000000U)
15933#define SYSMPU_WORD_M5WE_SHIFT (26U)
15934#define SYSMPU_WORD_M5WE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M5WE_SHIFT)) & SYSMPU_WORD_M5WE_MASK)
15935#define SYSMPU_WORD_M5WE SYSMPU_WORD_M5WE_MASK
15936#define SYSMPU_WORD_M5RE_MASK (0x8000000U)
15937#define SYSMPU_WORD_M5RE_SHIFT (27U)
15938#define SYSMPU_WORD_M5RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M5RE_SHIFT)) & SYSMPU_WORD_M5RE_MASK)
15939#define SYSMPU_WORD_M5RE SYSMPU_WORD_M5RE_MASK
15940#define SYSMPU_WORD_M6WE_MASK (0x10000000U)
15941#define SYSMPU_WORD_M6WE_SHIFT (28U)
15942#define SYSMPU_WORD_M6WE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M6WE_SHIFT)) & SYSMPU_WORD_M6WE_MASK)
15943#define SYSMPU_WORD_M6WE SYSMPU_WORD_M6WE_MASK
15944#define SYSMPU_WORD_M6RE_MASK (0x20000000U)
15945#define SYSMPU_WORD_M6RE_SHIFT (29U)
15946#define SYSMPU_WORD_M6RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M6RE_SHIFT)) & SYSMPU_WORD_M6RE_MASK)
15947#define SYSMPU_WORD_M6RE SYSMPU_WORD_M6RE_MASK
15948#define SYSMPU_WORD_M7WE_MASK (0x40000000U)
15949#define SYSMPU_WORD_M7WE_SHIFT (30U)
15950#define SYSMPU_WORD_M7WE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M7WE_SHIFT)) & SYSMPU_WORD_M7WE_MASK)
15951#define SYSMPU_WORD_M7WE SYSMPU_WORD_M7WE_MASK
15952#define SYSMPU_WORD_M7RE_MASK (0x80000000U)
15953#define SYSMPU_WORD_M7RE_SHIFT (31U)
15954#define SYSMPU_WORD_M7RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M7RE_SHIFT)) & SYSMPU_WORD_M7RE_MASK)
15955#define SYSMPU_WORD_M7RE SYSMPU_WORD_M7RE_MASK
15956
15957/* The count of SYSMPU_WORD */
15958#define SYSMPU_WORD_COUNT (12U)
15959
15960/* The count of SYSMPU_WORD */
15961#define SYSMPU_WORD_COUNT2 (4U)
15962
15963/*! @name RGDAAC - Region Descriptor Alternate Access Control n */
15964#define SYSMPU_RGDAAC_M0UM_MASK (0x7U)
15965#define SYSMPU_RGDAAC_M0UM_SHIFT (0U)
15966#define SYSMPU_RGDAAC_M0UM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M0UM_SHIFT)) & SYSMPU_RGDAAC_M0UM_MASK)
15967#define SYSMPU_RGDAAC_M0UM SYSMPU_RGDAAC_M0UM_MASK
15968#define SYSMPU_RGDAAC_M0SM_MASK (0x18U)
15969#define SYSMPU_RGDAAC_M0SM_SHIFT (3U)
15970#define SYSMPU_RGDAAC_M0SM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M0SM_SHIFT)) & SYSMPU_RGDAAC_M0SM_MASK)
15971#define SYSMPU_RGDAAC_M0SM SYSMPU_RGDAAC_M0SM_MASK
15972#define SYSMPU_RGDAAC_M0PE_MASK (0x20U)
15973#define SYSMPU_RGDAAC_M0PE_SHIFT (5U)
15974#define SYSMPU_RGDAAC_M0PE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M0PE_SHIFT)) & SYSMPU_RGDAAC_M0PE_MASK)
15975#define SYSMPU_RGDAAC_M0PE SYSMPU_RGDAAC_M0PE_MASK
15976#define SYSMPU_RGDAAC_M1UM_MASK (0x1C0U)
15977#define SYSMPU_RGDAAC_M1UM_SHIFT (6U)
15978#define SYSMPU_RGDAAC_M1UM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M1UM_SHIFT)) & SYSMPU_RGDAAC_M1UM_MASK)
15979#define SYSMPU_RGDAAC_M1UM SYSMPU_RGDAAC_M1UM_MASK
15980#define SYSMPU_RGDAAC_M1SM_MASK (0x600U)
15981#define SYSMPU_RGDAAC_M1SM_SHIFT (9U)
15982#define SYSMPU_RGDAAC_M1SM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M1SM_SHIFT)) & SYSMPU_RGDAAC_M1SM_MASK)
15983#define SYSMPU_RGDAAC_M1SM SYSMPU_RGDAAC_M1SM_MASK
15984#define SYSMPU_RGDAAC_M1PE_MASK (0x800U)
15985#define SYSMPU_RGDAAC_M1PE_SHIFT (11U)
15986#define SYSMPU_RGDAAC_M1PE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M1PE_SHIFT)) & SYSMPU_RGDAAC_M1PE_MASK)
15987#define SYSMPU_RGDAAC_M1PE SYSMPU_RGDAAC_M1PE_MASK
15988#define SYSMPU_RGDAAC_M2UM_MASK (0x7000U)
15989#define SYSMPU_RGDAAC_M2UM_SHIFT (12U)
15990#define SYSMPU_RGDAAC_M2UM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M2UM_SHIFT)) & SYSMPU_RGDAAC_M2UM_MASK)
15991#define SYSMPU_RGDAAC_M2UM SYSMPU_RGDAAC_M2UM_MASK
15992#define SYSMPU_RGDAAC_M2SM_MASK (0x18000U)
15993#define SYSMPU_RGDAAC_M2SM_SHIFT (15U)
15994#define SYSMPU_RGDAAC_M2SM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M2SM_SHIFT)) & SYSMPU_RGDAAC_M2SM_MASK)
15995#define SYSMPU_RGDAAC_M2SM SYSMPU_RGDAAC_M2SM_MASK
15996#define SYSMPU_RGDAAC_M2PE_MASK (0x20000U)
15997#define SYSMPU_RGDAAC_M2PE_SHIFT (17U)
15998#define SYSMPU_RGDAAC_M2PE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M2PE_SHIFT)) & SYSMPU_RGDAAC_M2PE_MASK)
15999#define SYSMPU_RGDAAC_M2PE SYSMPU_RGDAAC_M2PE_MASK
16000#define SYSMPU_RGDAAC_M3UM_MASK (0x1C0000U)
16001#define SYSMPU_RGDAAC_M3UM_SHIFT (18U)
16002#define SYSMPU_RGDAAC_M3UM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M3UM_SHIFT)) & SYSMPU_RGDAAC_M3UM_MASK)
16003#define SYSMPU_RGDAAC_M3UM SYSMPU_RGDAAC_M3UM_MASK
16004#define SYSMPU_RGDAAC_M3SM_MASK (0x600000U)
16005#define SYSMPU_RGDAAC_M3SM_SHIFT (21U)
16006#define SYSMPU_RGDAAC_M3SM_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M3SM_SHIFT)) & SYSMPU_RGDAAC_M3SM_MASK)
16007#define SYSMPU_RGDAAC_M3SM SYSMPU_RGDAAC_M3SM_MASK
16008#define SYSMPU_RGDAAC_M3PE_MASK (0x800000U)
16009#define SYSMPU_RGDAAC_M3PE_SHIFT (23U)
16010#define SYSMPU_RGDAAC_M3PE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M3PE_SHIFT)) & SYSMPU_RGDAAC_M3PE_MASK)
16011#define SYSMPU_RGDAAC_M3PE SYSMPU_RGDAAC_M3PE_MASK
16012#define SYSMPU_RGDAAC_M4WE_MASK (0x1000000U)
16013#define SYSMPU_RGDAAC_M4WE_SHIFT (24U)
16014#define SYSMPU_RGDAAC_M4WE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M4WE_SHIFT)) & SYSMPU_RGDAAC_M4WE_MASK)
16015#define SYSMPU_RGDAAC_M4WE SYSMPU_RGDAAC_M4WE_MASK
16016#define SYSMPU_RGDAAC_M4RE_MASK (0x2000000U)
16017#define SYSMPU_RGDAAC_M4RE_SHIFT (25U)
16018#define SYSMPU_RGDAAC_M4RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M4RE_SHIFT)) & SYSMPU_RGDAAC_M4RE_MASK)
16019#define SYSMPU_RGDAAC_M4RE SYSMPU_RGDAAC_M4RE_MASK
16020#define SYSMPU_RGDAAC_M5WE_MASK (0x4000000U)
16021#define SYSMPU_RGDAAC_M5WE_SHIFT (26U)
16022#define SYSMPU_RGDAAC_M5WE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M5WE_SHIFT)) & SYSMPU_RGDAAC_M5WE_MASK)
16023#define SYSMPU_RGDAAC_M5WE SYSMPU_RGDAAC_M5WE_MASK
16024#define SYSMPU_RGDAAC_M5RE_MASK (0x8000000U)
16025#define SYSMPU_RGDAAC_M5RE_SHIFT (27U)
16026#define SYSMPU_RGDAAC_M5RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M5RE_SHIFT)) & SYSMPU_RGDAAC_M5RE_MASK)
16027#define SYSMPU_RGDAAC_M5RE SYSMPU_RGDAAC_M5RE_MASK
16028#define SYSMPU_RGDAAC_M6WE_MASK (0x10000000U)
16029#define SYSMPU_RGDAAC_M6WE_SHIFT (28U)
16030#define SYSMPU_RGDAAC_M6WE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M6WE_SHIFT)) & SYSMPU_RGDAAC_M6WE_MASK)
16031#define SYSMPU_RGDAAC_M6WE SYSMPU_RGDAAC_M6WE_MASK
16032#define SYSMPU_RGDAAC_M6RE_MASK (0x20000000U)
16033#define SYSMPU_RGDAAC_M6RE_SHIFT (29U)
16034#define SYSMPU_RGDAAC_M6RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M6RE_SHIFT)) & SYSMPU_RGDAAC_M6RE_MASK)
16035#define SYSMPU_RGDAAC_M6RE SYSMPU_RGDAAC_M6RE_MASK
16036#define SYSMPU_RGDAAC_M7WE_MASK (0x40000000U)
16037#define SYSMPU_RGDAAC_M7WE_SHIFT (30U)
16038#define SYSMPU_RGDAAC_M7WE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M7WE_SHIFT)) & SYSMPU_RGDAAC_M7WE_MASK)
16039#define SYSMPU_RGDAAC_M7WE SYSMPU_RGDAAC_M7WE_MASK
16040#define SYSMPU_RGDAAC_M7RE_MASK (0x80000000U)
16041#define SYSMPU_RGDAAC_M7RE_SHIFT (31U)
16042#define SYSMPU_RGDAAC_M7RE_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M7RE_SHIFT)) & SYSMPU_RGDAAC_M7RE_MASK)
16043#define SYSMPU_RGDAAC_M7RE SYSMPU_RGDAAC_M7RE_MASK
16044
16045/* The count of SYSMPU_RGDAAC */
16046#define SYSMPU_RGDAAC_COUNT (12U)
16047
16048
16049/*!
16050 * @}
16051 */ /* end of group SYSMPU_Register_Masks */
16052
16053
16054/* SYSMPU - Peripheral instance base addresses */
16055/** Peripheral SYSMPU base address */
16056#define SYSMPU_BASE (0x4000D000u)
16057/** Peripheral SYSMPU base pointer */
16058#define SYSMPU ((SYSMPU_TypeDef *)SYSMPU_BASE)
16059/** Array initializer of SYSMPU peripheral base addresses */
16060#define SYSMPU_BASE_ADDRS { SYSMPU_BASE }
16061/** Array initializer of SYSMPU peripheral base pointers */
16062#define SYSMPU_BASE_PTRS { SYSMPU }
16063
16064/*!
16065 * @}
16066 */ /* end of group SYSMPU_Peripheral_Access_Layer */
16067
16068
16069/* ----------------------------------------------------------------------------
16070 -- TPM Peripheral Access Layer
16071 ---------------------------------------------------------------------------- */
16072
16073/*!
16074 * @addtogroup TPM_Peripheral_Access_Layer TPM Peripheral Access Layer
16075 * @{
16076 */
16077
16078/** TPM - Register Layout Typedef */
16079typedef struct {
16080 __IO uint32_t SC; /**< Status and Control, offset: 0x0 */
16081 __IO uint32_t CNT; /**< Counter, offset: 0x4 */
16082 __IO uint32_t MOD; /**< Modulo, offset: 0x8 */
16083 struct { /* offset: 0xC, array step: 0x8 */
16084 __IO uint32_t CnSC; /**< Channel (n) Status and Control, array offset: 0xC, array step: 0x8 */
16085 __IO uint32_t CnV; /**< Channel (n) Value, array offset: 0x10, array step: 0x8 */
16086 } CONTROLS[2];
16087 uint8_t RESERVED_0[52];
16088 __IO uint32_t STATUS; /**< Capture and Compare Status, offset: 0x50 */
16089 uint8_t RESERVED_1[16];
16090 __IO uint32_t COMBINE; /**< Combine Channel Register, offset: 0x64 */
16091 uint8_t RESERVED_2[8];
16092 __IO uint32_t POL; /**< Channel Polarity, offset: 0x70 */
16093 uint8_t RESERVED_3[4];
16094 __IO uint32_t FILTER; /**< Filter Control, offset: 0x78 */
16095 uint8_t RESERVED_4[4];
16096 __IO uint32_t QDCTRL; /**< Quadrature Decoder Control and Status, offset: 0x80 */
16097 __IO uint32_t CONF; /**< Configuration, offset: 0x84 */
16098} TPM_TypeDef;
16099
16100/* ----------------------------------------------------------------------------
16101 -- TPM Register Masks
16102 ---------------------------------------------------------------------------- */
16103
16104/*!
16105 * @addtogroup TPM_Register_Masks TPM Register Masks
16106 * @{
16107 */
16108
16109/*! @name SC - Status and Control */
16110#define TPM_SC_PS_MASK (0x7U)
16111#define TPM_SC_PS_SHIFT (0U)
16112#define TPM_SC_PS_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_PS_SHIFT)) & TPM_SC_PS_MASK)
16113#define TPM_SC_PS TPM_SC_PS_MASK
16114#define TPM_SC_CMOD_MASK (0x18U)
16115#define TPM_SC_CMOD_SHIFT (3U)
16116#define TPM_SC_CMOD_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_CMOD_SHIFT)) & TPM_SC_CMOD_MASK)
16117#define TPM_SC_CMOD TPM_SC_CMOD_MASK
16118#define TPM_SC_CPWMS_MASK (0x20U)
16119#define TPM_SC_CPWMS_SHIFT (5U)
16120#define TPM_SC_CPWMS_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_CPWMS_SHIFT)) & TPM_SC_CPWMS_MASK)
16121#define TPM_SC_CPWMS TPM_SC_CPWMS_MASK
16122#define TPM_SC_TOIE_MASK (0x40U)
16123#define TPM_SC_TOIE_SHIFT (6U)
16124#define TPM_SC_TOIE_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_TOIE_SHIFT)) & TPM_SC_TOIE_MASK)
16125#define TPM_SC_TOIE TPM_SC_TOIE_MASK
16126#define TPM_SC_TOF_MASK (0x80U)
16127#define TPM_SC_TOF_SHIFT (7U)
16128#define TPM_SC_TOF_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_TOF_SHIFT)) & TPM_SC_TOF_MASK)
16129#define TPM_SC_TOF TPM_SC_TOF_MASK
16130#define TPM_SC_DMA_MASK (0x100U)
16131#define TPM_SC_DMA_SHIFT (8U)
16132#define TPM_SC_DMA_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_DMA_SHIFT)) & TPM_SC_DMA_MASK)
16133#define TPM_SC_DMA TPM_SC_DMA_MASK
16134
16135/*! @name CNT - Counter */
16136#define TPM_CNT_COUNT_MASK (0xFFFFU)
16137#define TPM_CNT_COUNT_SHIFT (0U)
16138#define TPM_CNT_COUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CNT_COUNT_SHIFT)) & TPM_CNT_COUNT_MASK)
16139#define TPM_CNT_COUNT TPM_CNT_COUNT_MASK
16140
16141/*! @name MOD - Modulo */
16142#define TPM_MOD_MOD_MASK (0xFFFFU)
16143#define TPM_MOD_MOD_SHIFT (0U)
16144#define TPM_MOD_MOD_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_MOD_MOD_SHIFT)) & TPM_MOD_MOD_MASK)
16145#define TPM_MOD_MOD TPM_MOD_MOD_MASK
16146
16147/*! @name CnSC - Channel (n) Status and Control */
16148#define TPM_CnSC_DMA_MASK (0x1U)
16149#define TPM_CnSC_DMA_SHIFT (0U)
16150#define TPM_CnSC_DMA_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_DMA_SHIFT)) & TPM_CnSC_DMA_MASK)
16151#define TPM_CnSC_DMA TPM_CnSC_DMA_MASK
16152#define TPM_CnSC_ELSA_MASK (0x4U)
16153#define TPM_CnSC_ELSA_SHIFT (2U)
16154#define TPM_CnSC_ELSA_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_ELSA_SHIFT)) & TPM_CnSC_ELSA_MASK)
16155#define TPM_CnSC_ELSA TPM_CnSC_ELSA_MASK
16156#define TPM_CnSC_ELSB_MASK (0x8U)
16157#define TPM_CnSC_ELSB_SHIFT (3U)
16158#define TPM_CnSC_ELSB_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_ELSB_SHIFT)) & TPM_CnSC_ELSB_MASK)
16159#define TPM_CnSC_ELSB TPM_CnSC_ELSB_MASK
16160#define TPM_CnSC_MSA_MASK (0x10U)
16161#define TPM_CnSC_MSA_SHIFT (4U)
16162#define TPM_CnSC_MSA_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_MSA_SHIFT)) & TPM_CnSC_MSA_MASK)
16163#define TPM_CnSC_MSA TPM_CnSC_MSA_MASK
16164#define TPM_CnSC_MSB_MASK (0x20U)
16165#define TPM_CnSC_MSB_SHIFT (5U)
16166#define TPM_CnSC_MSB_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_MSB_SHIFT)) & TPM_CnSC_MSB_MASK)
16167#define TPM_CnSC_MSB TPM_CnSC_MSB_MASK
16168#define TPM_CnSC_CHIE_MASK (0x40U)
16169#define TPM_CnSC_CHIE_SHIFT (6U)
16170#define TPM_CnSC_CHIE_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_CHIE_SHIFT)) & TPM_CnSC_CHIE_MASK)
16171#define TPM_CnSC_CHIE TPM_CnSC_CHIE_MASK
16172#define TPM_CnSC_CHF_MASK (0x80U)
16173#define TPM_CnSC_CHF_SHIFT (7U)
16174#define TPM_CnSC_CHF_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_CHF_SHIFT)) & TPM_CnSC_CHF_MASK)
16175#define TPM_CnSC_CHF TPM_CnSC_CHF_MASK
16176
16177/* The count of TPM_CnSC */
16178#define TPM_CnSC_COUNT (2U)
16179
16180/*! @name CnV - Channel (n) Value */
16181#define TPM_CnV_VAL_MASK (0xFFFFU)
16182#define TPM_CnV_VAL_SHIFT (0U)
16183#define TPM_CnV_VAL_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnV_VAL_SHIFT)) & TPM_CnV_VAL_MASK)
16184#define TPM_CnV_VAL TPM_CnV_VAL_MASK
16185
16186/* The count of TPM_CnV */
16187#define TPM_CnV_COUNT (2U)
16188
16189/*! @name STATUS - Capture and Compare Status */
16190#define TPM_STATUS_CH0F_MASK (0x1U)
16191#define TPM_STATUS_CH0F_SHIFT (0U)
16192#define TPM_STATUS_CH0F_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_CH0F_SHIFT)) & TPM_STATUS_CH0F_MASK)
16193#define TPM_STATUS_CH0F TPM_STATUS_CH0F_MASK
16194#define TPM_STATUS_CH1F_MASK (0x2U)
16195#define TPM_STATUS_CH1F_SHIFT (1U)
16196#define TPM_STATUS_CH1F_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_CH1F_SHIFT)) & TPM_STATUS_CH1F_MASK)
16197#define TPM_STATUS_CH1F TPM_STATUS_CH1F_MASK
16198#define TPM_STATUS_TOF_MASK (0x100U)
16199#define TPM_STATUS_TOF_SHIFT (8U)
16200#define TPM_STATUS_TOF_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_TOF_SHIFT)) & TPM_STATUS_TOF_MASK)
16201#define TPM_STATUS_TOF TPM_STATUS_TOF_MASK
16202
16203/*! @name COMBINE - Combine Channel Register */
16204#define TPM_COMBINE_COMBINE0_MASK (0x1U)
16205#define TPM_COMBINE_COMBINE0_SHIFT (0U)
16206#define TPM_COMBINE_COMBINE0_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_COMBINE_COMBINE0_SHIFT)) & TPM_COMBINE_COMBINE0_MASK)
16207#define TPM_COMBINE_COMBINE0 TPM_COMBINE_COMBINE0_MASK
16208#define TPM_COMBINE_COMSWAP0_MASK (0x2U)
16209#define TPM_COMBINE_COMSWAP0_SHIFT (1U)
16210#define TPM_COMBINE_COMSWAP0_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_COMBINE_COMSWAP0_SHIFT)) & TPM_COMBINE_COMSWAP0_MASK)
16211#define TPM_COMBINE_COMSWAP0 TPM_COMBINE_COMSWAP0_MASK
16212
16213/*! @name POL - Channel Polarity */
16214#define TPM_POL_POL0_MASK (0x1U)
16215#define TPM_POL_POL0_SHIFT (0U)
16216#define TPM_POL_POL0_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_POL_POL0_SHIFT)) & TPM_POL_POL0_MASK)
16217#define TPM_POL_POL0 TPM_POL_POL0_MASK
16218#define TPM_POL_POL1_MASK (0x2U)
16219#define TPM_POL_POL1_SHIFT (1U)
16220#define TPM_POL_POL1_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_POL_POL1_SHIFT)) & TPM_POL_POL1_MASK)
16221#define TPM_POL_POL1 TPM_POL_POL1_MASK
16222
16223/*! @name FILTER - Filter Control */
16224#define TPM_FILTER_CH0FVAL_MASK (0xFU)
16225#define TPM_FILTER_CH0FVAL_SHIFT (0U)
16226#define TPM_FILTER_CH0FVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_FILTER_CH0FVAL_SHIFT)) & TPM_FILTER_CH0FVAL_MASK)
16227#define TPM_FILTER_CH0FVAL TPM_FILTER_CH0FVAL_MASK
16228#define TPM_FILTER_CH1FVAL_MASK (0xF0U)
16229#define TPM_FILTER_CH1FVAL_SHIFT (4U)
16230#define TPM_FILTER_CH1FVAL_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_FILTER_CH1FVAL_SHIFT)) & TPM_FILTER_CH1FVAL_MASK)
16231#define TPM_FILTER_CH1FVAL TPM_FILTER_CH1FVAL_MASK
16232
16233/*! @name QDCTRL - Quadrature Decoder Control and Status */
16234#define TPM_QDCTRL_QUADEN_MASK (0x1U)
16235#define TPM_QDCTRL_QUADEN_SHIFT (0U)
16236#define TPM_QDCTRL_QUADEN_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_QDCTRL_QUADEN_SHIFT)) & TPM_QDCTRL_QUADEN_MASK)
16237#define TPM_QDCTRL_QUADEN TPM_QDCTRL_QUADEN_MASK
16238#define TPM_QDCTRL_TOFDIR_MASK (0x2U)
16239#define TPM_QDCTRL_TOFDIR_SHIFT (1U)
16240#define TPM_QDCTRL_TOFDIR_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_QDCTRL_TOFDIR_SHIFT)) & TPM_QDCTRL_TOFDIR_MASK)
16241#define TPM_QDCTRL_TOFDIR TPM_QDCTRL_TOFDIR_MASK
16242#define TPM_QDCTRL_QUADIR_MASK (0x4U)
16243#define TPM_QDCTRL_QUADIR_SHIFT (2U)
16244#define TPM_QDCTRL_QUADIR_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_QDCTRL_QUADIR_SHIFT)) & TPM_QDCTRL_QUADIR_MASK)
16245#define TPM_QDCTRL_QUADIR TPM_QDCTRL_QUADIR_MASK
16246#define TPM_QDCTRL_QUADMODE_MASK (0x8U)
16247#define TPM_QDCTRL_QUADMODE_SHIFT (3U)
16248#define TPM_QDCTRL_QUADMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_QDCTRL_QUADMODE_SHIFT)) & TPM_QDCTRL_QUADMODE_MASK)
16249#define TPM_QDCTRL_QUADMODE TPM_QDCTRL_QUADMODE_MASK
16250
16251/*! @name CONF - Configuration */
16252#define TPM_CONF_DOZEEN_MASK (0x20U)
16253#define TPM_CONF_DOZEEN_SHIFT (5U)
16254#define TPM_CONF_DOZEEN_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_DOZEEN_SHIFT)) & TPM_CONF_DOZEEN_MASK)
16255#define TPM_CONF_DOZEEN TPM_CONF_DOZEEN_MASK
16256#define TPM_CONF_DBGMODE_MASK (0xC0U)
16257#define TPM_CONF_DBGMODE_SHIFT (6U)
16258#define TPM_CONF_DBGMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_DBGMODE_SHIFT)) & TPM_CONF_DBGMODE_MASK)
16259#define TPM_CONF_DBGMODE TPM_CONF_DBGMODE_MASK
16260#define TPM_CONF_GTBSYNC_MASK (0x100U)
16261#define TPM_CONF_GTBSYNC_SHIFT (8U)
16262#define TPM_CONF_GTBSYNC_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_GTBSYNC_SHIFT)) & TPM_CONF_GTBSYNC_MASK)
16263#define TPM_CONF_GTBSYNC TPM_CONF_GTBSYNC_MASK
16264#define TPM_CONF_GTBEEN_MASK (0x200U)
16265#define TPM_CONF_GTBEEN_SHIFT (9U)
16266#define TPM_CONF_GTBEEN_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_GTBEEN_SHIFT)) & TPM_CONF_GTBEEN_MASK)
16267#define TPM_CONF_GTBEEN TPM_CONF_GTBEEN_MASK
16268#define TPM_CONF_CSOT_MASK (0x10000U)
16269#define TPM_CONF_CSOT_SHIFT (16U)
16270#define TPM_CONF_CSOT_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_CSOT_SHIFT)) & TPM_CONF_CSOT_MASK)
16271#define TPM_CONF_CSOT TPM_CONF_CSOT_MASK
16272#define TPM_CONF_CSOO_MASK (0x20000U)
16273#define TPM_CONF_CSOO_SHIFT (17U)
16274#define TPM_CONF_CSOO_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_CSOO_SHIFT)) & TPM_CONF_CSOO_MASK)
16275#define TPM_CONF_CSOO TPM_CONF_CSOO_MASK
16276#define TPM_CONF_CROT_MASK (0x40000U)
16277#define TPM_CONF_CROT_SHIFT (18U)
16278#define TPM_CONF_CROT_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_CROT_SHIFT)) & TPM_CONF_CROT_MASK)
16279#define TPM_CONF_CROT TPM_CONF_CROT_MASK
16280#define TPM_CONF_CPOT_MASK (0x80000U)
16281#define TPM_CONF_CPOT_SHIFT (19U)
16282#define TPM_CONF_CPOT_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_CPOT_SHIFT)) & TPM_CONF_CPOT_MASK)
16283#define TPM_CONF_CPOT TPM_CONF_CPOT_MASK
16284#define TPM_CONF_TRGPOL_MASK (0x400000U)
16285#define TPM_CONF_TRGPOL_SHIFT (22U)
16286#define TPM_CONF_TRGPOL_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_TRGPOL_SHIFT)) & TPM_CONF_TRGPOL_MASK)
16287#define TPM_CONF_TRGPOL TPM_CONF_TRGPOL_MASK
16288#define TPM_CONF_TRGSRC_MASK (0x800000U)
16289#define TPM_CONF_TRGSRC_SHIFT (23U)
16290#define TPM_CONF_TRGSRC_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_TRGSRC_SHIFT)) & TPM_CONF_TRGSRC_MASK)
16291#define TPM_CONF_TRGSRC TPM_CONF_TRGSRC_MASK
16292#define TPM_CONF_TRGSEL_MASK (0xF000000U)
16293#define TPM_CONF_TRGSEL_SHIFT (24U)
16294#define TPM_CONF_TRGSEL_SET(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_TRGSEL_SHIFT)) & TPM_CONF_TRGSEL_MASK)
16295#define TPM_CONF_TRGSEL TPM_CONF_TRGSEL_MASK
16296
16297
16298/*!
16299 * @}
16300 */ /* end of group TPM_Register_Masks */
16301
16302
16303/* TPM - Peripheral instance base addresses */
16304/** Peripheral TPM1 base address */
16305#define TPM1_BASE (0x400C9000u)
16306/** Peripheral TPM1 base pointer */
16307#define TPM1 ((TPM_TypeDef *)TPM1_BASE)
16308/** Peripheral TPM2 base address */
16309#define TPM2_BASE (0x400CA000u)
16310/** Peripheral TPM2 base pointer */
16311#define TPM2 ((TPM_TypeDef *)TPM2_BASE)
16312/** Array initializer of TPM peripheral base addresses */
16313#define TPM_BASE_ADDRS { 0u, TPM1_BASE, TPM2_BASE }
16314/** Array initializer of TPM peripheral base pointers */
16315#define TPM_BASE_PTRS { (TPM_TypeDef *)0u, TPM1, TPM2 }
16316/** Interrupt vectors for the TPM peripheral type */
16317#define TPM_IRQS { NotAvail_IRQn, TPM1_IRQn, TPM2_IRQn }
16318
16319/*!
16320 * @}
16321 */ /* end of group TPM_Peripheral_Access_Layer */
16322
16323
16324/* ----------------------------------------------------------------------------
16325 -- TSI Peripheral Access Layer
16326 ---------------------------------------------------------------------------- */
16327
16328/*!
16329 * @addtogroup TSI_Peripheral_Access_Layer TSI Peripheral Access Layer
16330 * @{
16331 */
16332
16333/** TSI - Register Layout Typedef */
16334typedef struct {
16335 __IO uint32_t GENCS; /**< TSI General Control and Status Register, offset: 0x0 */
16336 __IO uint32_t DATA; /**< TSI DATA Register, offset: 0x4 */
16337 __IO uint32_t TSHD; /**< TSI Threshold Register, offset: 0x8 */
16338} TSI_TypeDef;
16339
16340/* ----------------------------------------------------------------------------
16341 -- TSI Register Masks
16342 ---------------------------------------------------------------------------- */
16343
16344/*!
16345 * @addtogroup TSI_Register_Masks TSI Register Masks
16346 * @{
16347 */
16348
16349/*! @name GENCS - TSI General Control and Status Register */
16350#define TSI_GENCS_EOSDMEO_MASK (0x1U)
16351#define TSI_GENCS_EOSDMEO_SHIFT (0U)
16352#define TSI_GENCS_EOSDMEO_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_EOSDMEO_SHIFT)) & TSI_GENCS_EOSDMEO_MASK)
16353#define TSI_GENCS_EOSDMEO TSI_GENCS_EOSDMEO_MASK
16354#define TSI_GENCS_CURSW_MASK (0x2U)
16355#define TSI_GENCS_CURSW_SHIFT (1U)
16356#define TSI_GENCS_CURSW_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_CURSW_SHIFT)) & TSI_GENCS_CURSW_MASK)
16357#define TSI_GENCS_CURSW TSI_GENCS_CURSW_MASK
16358#define TSI_GENCS_EOSF_MASK (0x4U)
16359#define TSI_GENCS_EOSF_SHIFT (2U)
16360#define TSI_GENCS_EOSF_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_EOSF_SHIFT)) & TSI_GENCS_EOSF_MASK)
16361#define TSI_GENCS_EOSF TSI_GENCS_EOSF_MASK
16362#define TSI_GENCS_SCNIP_MASK (0x8U)
16363#define TSI_GENCS_SCNIP_SHIFT (3U)
16364#define TSI_GENCS_SCNIP_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_SCNIP_SHIFT)) & TSI_GENCS_SCNIP_MASK)
16365#define TSI_GENCS_SCNIP TSI_GENCS_SCNIP_MASK
16366#define TSI_GENCS_STM_MASK (0x10U)
16367#define TSI_GENCS_STM_SHIFT (4U)
16368#define TSI_GENCS_STM_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_STM_SHIFT)) & TSI_GENCS_STM_MASK)
16369#define TSI_GENCS_STM TSI_GENCS_STM_MASK
16370#define TSI_GENCS_STPE_MASK (0x20U)
16371#define TSI_GENCS_STPE_SHIFT (5U)
16372#define TSI_GENCS_STPE_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_STPE_SHIFT)) & TSI_GENCS_STPE_MASK)
16373#define TSI_GENCS_STPE TSI_GENCS_STPE_MASK
16374#define TSI_GENCS_TSIIEN_MASK (0x40U)
16375#define TSI_GENCS_TSIIEN_SHIFT (6U)
16376#define TSI_GENCS_TSIIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_TSIIEN_SHIFT)) & TSI_GENCS_TSIIEN_MASK)
16377#define TSI_GENCS_TSIIEN TSI_GENCS_TSIIEN_MASK
16378#define TSI_GENCS_TSIEN_MASK (0x80U)
16379#define TSI_GENCS_TSIEN_SHIFT (7U)
16380#define TSI_GENCS_TSIEN_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_TSIEN_SHIFT)) & TSI_GENCS_TSIEN_MASK)
16381#define TSI_GENCS_TSIEN TSI_GENCS_TSIEN_MASK
16382#define TSI_GENCS_NSCN_MASK (0x1F00U)
16383#define TSI_GENCS_NSCN_SHIFT (8U)
16384#define TSI_GENCS_NSCN_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_NSCN_SHIFT)) & TSI_GENCS_NSCN_MASK)
16385#define TSI_GENCS_NSCN TSI_GENCS_NSCN_MASK
16386#define TSI_GENCS_PS_MASK (0xE000U)
16387#define TSI_GENCS_PS_SHIFT (13U)
16388#define TSI_GENCS_PS_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_PS_SHIFT)) & TSI_GENCS_PS_MASK)
16389#define TSI_GENCS_PS TSI_GENCS_PS_MASK
16390#define TSI_GENCS_EXTCHRG_MASK (0x70000U)
16391#define TSI_GENCS_EXTCHRG_SHIFT (16U)
16392#define TSI_GENCS_EXTCHRG_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_EXTCHRG_SHIFT)) & TSI_GENCS_EXTCHRG_MASK)
16393#define TSI_GENCS_EXTCHRG TSI_GENCS_EXTCHRG_MASK
16394#define TSI_GENCS_DVOLT_MASK (0x180000U)
16395#define TSI_GENCS_DVOLT_SHIFT (19U)
16396#define TSI_GENCS_DVOLT_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_DVOLT_SHIFT)) & TSI_GENCS_DVOLT_MASK)
16397#define TSI_GENCS_DVOLT TSI_GENCS_DVOLT_MASK
16398#define TSI_GENCS_REFCHRG_MASK (0xE00000U)
16399#define TSI_GENCS_REFCHRG_SHIFT (21U)
16400#define TSI_GENCS_REFCHRG_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_REFCHRG_SHIFT)) & TSI_GENCS_REFCHRG_MASK)
16401#define TSI_GENCS_REFCHRG TSI_GENCS_REFCHRG_MASK
16402#define TSI_GENCS_MODE_MASK (0xF000000U)
16403#define TSI_GENCS_MODE_SHIFT (24U)
16404#define TSI_GENCS_MODE_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_MODE_SHIFT)) & TSI_GENCS_MODE_MASK)
16405#define TSI_GENCS_MODE TSI_GENCS_MODE_MASK
16406#define TSI_GENCS_ESOR_MASK (0x10000000U)
16407#define TSI_GENCS_ESOR_SHIFT (28U)
16408#define TSI_GENCS_ESOR_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_ESOR_SHIFT)) & TSI_GENCS_ESOR_MASK)
16409#define TSI_GENCS_ESOR TSI_GENCS_ESOR_MASK
16410#define TSI_GENCS_OUTRGF_MASK (0x80000000U)
16411#define TSI_GENCS_OUTRGF_SHIFT (31U)
16412#define TSI_GENCS_OUTRGF_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_GENCS_OUTRGF_SHIFT)) & TSI_GENCS_OUTRGF_MASK)
16413#define TSI_GENCS_OUTRGF TSI_GENCS_OUTRGF_MASK
16414
16415/*! @name DATA - TSI DATA Register */
16416#define TSI_DATA_TSICNT_MASK (0xFFFFU)
16417#define TSI_DATA_TSICNT_SHIFT (0U)
16418#define TSI_DATA_TSICNT_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_DATA_TSICNT_SHIFT)) & TSI_DATA_TSICNT_MASK)
16419#define TSI_DATA_TSICNT TSI_DATA_TSICNT_MASK
16420#define TSI_DATA_SWTS_MASK (0x400000U)
16421#define TSI_DATA_SWTS_SHIFT (22U)
16422#define TSI_DATA_SWTS_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_DATA_SWTS_SHIFT)) & TSI_DATA_SWTS_MASK)
16423#define TSI_DATA_SWTS TSI_DATA_SWTS_MASK
16424#define TSI_DATA_DMAEN_MASK (0x800000U)
16425#define TSI_DATA_DMAEN_SHIFT (23U)
16426#define TSI_DATA_DMAEN_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_DATA_DMAEN_SHIFT)) & TSI_DATA_DMAEN_MASK)
16427#define TSI_DATA_DMAEN TSI_DATA_DMAEN_MASK
16428#define TSI_DATA_TSICH_MASK (0xF0000000U)
16429#define TSI_DATA_TSICH_SHIFT (28U)
16430#define TSI_DATA_TSICH_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_DATA_TSICH_SHIFT)) & TSI_DATA_TSICH_MASK)
16431#define TSI_DATA_TSICH TSI_DATA_TSICH_MASK
16432
16433/*! @name TSHD - TSI Threshold Register */
16434#define TSI_TSHD_THRESL_MASK (0xFFFFU)
16435#define TSI_TSHD_THRESL_SHIFT (0U)
16436#define TSI_TSHD_THRESL_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_TSHD_THRESL_SHIFT)) & TSI_TSHD_THRESL_MASK)
16437#define TSI_TSHD_THRESL TSI_TSHD_THRESL_MASK
16438#define TSI_TSHD_THRESH_MASK (0xFFFF0000U)
16439#define TSI_TSHD_THRESH_SHIFT (16U)
16440#define TSI_TSHD_THRESH_SET(x) (((uint32_t)(((uint32_t)(x)) << TSI_TSHD_THRESH_SHIFT)) & TSI_TSHD_THRESH_MASK)
16441#define TSI_TSHD_THRESH TSI_TSHD_THRESH_MASK
16442
16443
16444/*!
16445 * @}
16446 */ /* end of group TSI_Register_Masks */
16447
16448
16449/* TSI - Peripheral instance base addresses */
16450/** Peripheral TSI0 base address */
16451#define TSI0_BASE (0x40045000u)
16452/** Peripheral TSI0 base pointer */
16453#define TSI0 ((TSI_TypeDef *)TSI0_BASE)
16454/** Array initializer of TSI peripheral base addresses */
16455#define TSI_BASE_ADDRS { TSI0_BASE }
16456/** Array initializer of TSI peripheral base pointers */
16457#define TSI_BASE_PTRS { TSI0 }
16458/** Interrupt vectors for the TSI peripheral type */
16459#define TSI_IRQS { TSI0_IRQn }
16460
16461/*!
16462 * @}
16463 */ /* end of group TSI_Peripheral_Access_Layer */
16464
16465
16466/* ----------------------------------------------------------------------------
16467 -- UART Peripheral Access Layer
16468 ---------------------------------------------------------------------------- */
16469
16470/*!
16471 * @addtogroup UARTx_Peripheral_Access_Layer UART Peripheral Access Layer
16472 * @{
16473 */
16474
16475/** UART - Register Layout Typedef */
16476typedef struct {
16477 __IO uint8_t BDH; /**< UART Baud Rate Registers: High, offset: 0x0 */
16478 __IO uint8_t BDL; /**< UART Baud Rate Registers: Low, offset: 0x1 */
16479 __IO uint8_t C1; /**< UART Control Register 1, offset: 0x2 */
16480 __IO uint8_t C2; /**< UART Control Register 2, offset: 0x3 */
16481 __I uint8_t S1; /**< UART Status Register 1, offset: 0x4 */
16482 __IO uint8_t S2; /**< UART Status Register 2, offset: 0x5 */
16483 __IO uint8_t C3; /**< UART Control Register 3, offset: 0x6 */
16484 __IO uint8_t D; /**< UART Data Register, offset: 0x7 */
16485 __IO uint8_t MA1; /**< UART Match Address Registers 1, offset: 0x8 */
16486 __IO uint8_t MA2; /**< UART Match Address Registers 2, offset: 0x9 */
16487 __IO uint8_t C4; /**< UART Control Register 4, offset: 0xA */
16488 __IO uint8_t C5; /**< UART Control Register 5, offset: 0xB */
16489 __I uint8_t ED; /**< UART Extended Data Register, offset: 0xC */
16490 __IO uint8_t MODEM; /**< UART Modem Register, offset: 0xD */
16491 __IO uint8_t IR; /**< UART Infrared Register, offset: 0xE */
16492 uint8_t RESERVED_0[1];
16493 __IO uint8_t PFIFO; /**< UART FIFO Parameters, offset: 0x10 */
16494 __IO uint8_t CFIFO; /**< UART FIFO Control Register, offset: 0x11 */
16495 __IO uint8_t SFIFO; /**< UART FIFO Status Register, offset: 0x12 */
16496 __IO uint8_t TWFIFO; /**< UART FIFO Transmit Watermark, offset: 0x13 */
16497 __I uint8_t TCFIFO; /**< UART FIFO Transmit Count, offset: 0x14 */
16498 __IO uint8_t RWFIFO; /**< UART FIFO Receive Watermark, offset: 0x15 */
16499 __I uint8_t RCFIFO; /**< UART FIFO Receive Count, offset: 0x16 */
16500 uint8_t RESERVED_1[1];
16501 __IO uint8_t C7816; /**< UART 7816 Control Register, offset: 0x18 */
16502 __IO uint8_t IE7816; /**< UART 7816 Interrupt Enable Register, offset: 0x19 */
16503 __IO uint8_t IS7816; /**< UART 7816 Interrupt Status Register, offset: 0x1A */
16504 __IO uint8_t WP7816; /**< UART 7816 Wait Parameter Register, offset: 0x1B */
16505 __IO uint8_t WN7816; /**< UART 7816 Wait N Register, offset: 0x1C */
16506 __IO uint8_t WF7816; /**< UART 7816 Wait FD Register, offset: 0x1D */
16507 __IO uint8_t ET7816; /**< UART 7816 Error Threshold Register, offset: 0x1E */
16508 __IO uint8_t TL7816; /**< UART 7816 Transmit Length Register, offset: 0x1F */
16509 uint8_t RESERVED_2[26];
16510 __IO uint8_t AP7816A_T0; /**< UART 7816 ATR Duration Timer Register A, offset: 0x3A */
16511 __IO uint8_t AP7816B_T0; /**< UART 7816 ATR Duration Timer Register B, offset: 0x3B */
16512 union { /* offset: 0x3C */
16513 struct { /* offset: 0x3C */
16514 __IO uint8_t WP7816A_T0; /**< UART 7816 Wait Parameter Register A, offset: 0x3C */
16515 __IO uint8_t WP7816B_T0; /**< UART 7816 Wait Parameter Register B, offset: 0x3D */
16516 } TYPE0;
16517 struct { /* offset: 0x3C */
16518 __IO uint8_t WP7816A_T1; /**< UART 7816 Wait Parameter Register A, offset: 0x3C */
16519 __IO uint8_t WP7816B_T1; /**< UART 7816 Wait Parameter Register B, offset: 0x3D */
16520 } TYPE1;
16521 };
16522 __IO uint8_t WGP7816_T1; /**< UART 7816 Wait and Guard Parameter Register, offset: 0x3E */
16523 __IO uint8_t WP7816C_T1; /**< UART 7816 Wait Parameter Register C, offset: 0x3F */
16524} UART_TypeDef;
16525
16526/* ----------------------------------------------------------------------------
16527 -- UART Register Masks
16528 ---------------------------------------------------------------------------- */
16529
16530/*!
16531 * @addtogroup UARTx_Register_Masks UART Register Masks
16532 * @{
16533 */
16534
16535/*! @name BDH - UART Baud Rate Registers: High */
16536#define UARTx_BDH_SBR_MASK (0x1FU)
16537#define UARTx_BDH_SBR_SHIFT (0U)
16538#define UARTx_BDH_SBR(x) (((uint8_t)(((uint8_t)(x)) << UARTx_BDH_SBR_SHIFT)) & UARTx_BDH_SBR_MASK)
16539#define UARTx_BDH_SBNS_MASK (0x20U)
16540#define UARTx_BDH_SBNS_SHIFT (5U)
16541#define UARTx_BDH_SBNS_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_BDH_SBNS_SHIFT)) & UARTx_BDH_SBNS_MASK)
16542#define UARTx_BDH_SBNS UARTx_BDH_SBNS_MASK
16543#define UARTx_BDH_RXEDGIE_MASK (0x40U)
16544#define UARTx_BDH_RXEDGIE_SHIFT (6U)
16545#define UARTx_BDH_RXEDGIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_BDH_RXEDGIE_SHIFT)) & UARTx_BDH_RXEDGIE_MASK)
16546#define UARTx_BDH_RXEDGIE UARTx_BDH_RXEDGIE_MASK
16547#define UARTx_BDH_LBKDIE_MASK (0x80U)
16548#define UARTx_BDH_LBKDIE_SHIFT (7U)
16549#define UARTx_BDH_LBKDIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_BDH_LBKDIE_SHIFT)) & UARTx_BDH_LBKDIE_MASK)
16550#define UARTx_BDH_LBKDIE UARTx_BDH_LBKDIE_MASK
16551
16552/*! @name BDL - UART Baud Rate Registers: Low */
16553#define UARTx_BDL_SBR_MASK (0xFFU)
16554#define UARTx_BDL_SBR_SHIFT (0U)
16555#define UARTx_BDL_SBR(x) (((uint8_t)(((uint8_t)(x)) << UARTx_BDL_SBR_SHIFT)) & UARTx_BDL_SBR_MASK)
16556
16557/*! @name C1 - UART Control Register 1 */
16558#define UARTx_C1_PT_MASK (0x1U)
16559#define UARTx_C1_PT_SHIFT (0U)
16560#define UARTx_C1_PT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C1_PT_SHIFT)) & UARTx_C1_PT_MASK)
16561#define UARTx_C1_PT UARTx_C1_PT_MASK
16562#define UARTx_C1_PE_MASK (0x2U)
16563#define UARTx_C1_PE_SHIFT (1U)
16564#define UARTx_C1_PE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C1_PE_SHIFT)) & UARTx_C1_PE_MASK)
16565#define UARTx_C1_PE UARTx_C1_PE_MASK
16566#define UARTx_C1_ILT_MASK (0x4U)
16567#define UARTx_C1_ILT_SHIFT (2U)
16568#define UARTx_C1_ILT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C1_ILT_SHIFT)) & UARTx_C1_ILT_MASK)
16569#define UARTx_C1_ILT UARTx_C1_ILT_MASK
16570#define UARTx_C1_WAKE_MASK (0x8U)
16571#define UARTx_C1_WAKE_SHIFT (3U)
16572#define UARTx_C1_WAKE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C1_WAKE_SHIFT)) & UARTx_C1_WAKE_MASK)
16573#define UARTx_C1_WAKE UARTx_C1_WAKE_MASK
16574#define UARTx_C1_M_MASK (0x10U)
16575#define UARTx_C1_M_SHIFT (4U)
16576#define UARTx_C1_M_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C1_M_SHIFT)) & UARTx_C1_M_MASK)
16577#define UARTx_C1_M UARTx_C1_M_MASK
16578#define UARTx_C1_RSRC_MASK (0x20U)
16579#define UARTx_C1_RSRC_SHIFT (5U)
16580#define UARTx_C1_RSRC_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C1_RSRC_SHIFT)) & UARTx_C1_RSRC_MASK)
16581#define UARTx_C1_RSRC UARTx_C1_RSRC_MASK
16582#define UARTx_C1_UARTSWAI_MASK (0x40U)
16583#define UARTx_C1_UARTSWAI_SHIFT (6U)
16584#define UARTx_C1_UARTSWAI_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C1_UARTSWAI_SHIFT)) & UARTx_C1_UARTSWAI_MASK)
16585#define UARTx_C1_UARTSWAI UARTx_C1_UARTSWAI_MASK
16586#define UARTx_C1_LOOPS_MASK (0x80U)
16587#define UARTx_C1_LOOPS_SHIFT (7U)
16588#define UARTx_C1_LOOPS_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C1_LOOPS_SHIFT)) & UARTx_C1_LOOPS_MASK)
16589#define UARTx_C1_LOOPS UARTx_C1_LOOPS_MASK
16590
16591/*! @name C2 - UART Control Register 2 */
16592#define UARTx_C2_SBK_MASK (0x1U)
16593#define UARTx_C2_SBK_SHIFT (0U)
16594#define UARTx_C2_SBK_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C2_SBK_SHIFT)) & UARTx_C2_SBK_MASK)
16595#define UARTx_C2_SBK UARTx_C2_SBK_MASK
16596#define UARTx_C2_RWU_MASK (0x2U)
16597#define UARTx_C2_RWU_SHIFT (1U)
16598#define UARTx_C2_RWU_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C2_RWU_SHIFT)) & UARTx_C2_RWU_MASK)
16599#define UARTx_C2_RWU UARTx_C2_RWU_MASK
16600#define UARTx_C2_RE_MASK (0x4U)
16601#define UARTx_C2_RE_SHIFT (2U)
16602#define UARTx_C2_RE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C2_RE_SHIFT)) & UARTx_C2_RE_MASK)
16603#define UARTx_C2_RE UARTx_C2_RE_MASK
16604#define UARTx_C2_TE_MASK (0x8U)
16605#define UARTx_C2_TE_SHIFT (3U)
16606#define UARTx_C2_TE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C2_TE_SHIFT)) & UARTx_C2_TE_MASK)
16607#define UARTx_C2_TE UARTx_C2_TE_MASK
16608#define UARTx_C2_ILIE_MASK (0x10U)
16609#define UARTx_C2_ILIE_SHIFT (4U)
16610#define UARTx_C2_ILIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C2_ILIE_SHIFT)) & UARTx_C2_ILIE_MASK)
16611#define UARTx_C2_ILIE UARTx_C2_ILIE_MASK
16612#define UARTx_C2_RIE_MASK (0x20U)
16613#define UARTx_C2_RIE_SHIFT (5U)
16614#define UARTx_C2_RIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C2_RIE_SHIFT)) & UARTx_C2_RIE_MASK)
16615#define UARTx_C2_RIE UARTx_C2_RIE_MASK
16616#define UARTx_C2_TCIE_MASK (0x40U)
16617#define UARTx_C2_TCIE_SHIFT (6U)
16618#define UARTx_C2_TCIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C2_TCIE_SHIFT)) & UARTx_C2_TCIE_MASK)
16619#define UARTx_C2_TCIE UARTx_C2_TCIE_MASK
16620#define UARTx_C2_TIE_MASK (0x80U)
16621#define UARTx_C2_TIE_SHIFT (7U)
16622#define UARTx_C2_TIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C2_TIE_SHIFT)) & UARTx_C2_TIE_MASK)
16623#define UARTx_C2_TIE UARTx_C2_TIE_MASK
16624
16625/*! @name S1 - UART Status Register 1 */
16626#define UARTx_S1_PF_MASK (0x1U)
16627#define UARTx_S1_PF_SHIFT (0U)
16628#define UARTx_S1_PF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S1_PF_SHIFT)) & UARTx_S1_PF_MASK)
16629#define UARTx_S1_PF UARTx_S1_PF_MASK
16630#define UARTx_S1_FE_MASK (0x2U)
16631#define UARTx_S1_FE_SHIFT (1U)
16632#define UARTx_S1_FE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S1_FE_SHIFT)) & UARTx_S1_FE_MASK)
16633#define UARTx_S1_FE UARTx_S1_FE_MASK
16634#define UARTx_S1_NF_MASK (0x4U)
16635#define UARTx_S1_NF_SHIFT (2U)
16636#define UARTx_S1_NF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S1_NF_SHIFT)) & UARTx_S1_NF_MASK)
16637#define UARTx_S1_NF UARTx_S1_NF_MASK
16638#define UARTx_S1_OR_MASK (0x8U)
16639#define UARTx_S1_OR_SHIFT (3U)
16640#define UARTx_S1_OR_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S1_OR_SHIFT)) & UARTx_S1_OR_MASK)
16641#define UARTx_S1_OR UARTx_S1_OR_MASK
16642#define UARTx_S1_IDLE_MASK (0x10U)
16643#define UARTx_S1_IDLE_SHIFT (4U)
16644#define UARTx_S1_IDLE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S1_IDLE_SHIFT)) & UARTx_S1_IDLE_MASK)
16645#define UARTx_S1_IDLE UARTx_S1_IDLE_MASK
16646#define UARTx_S1_RDRF_MASK (0x20U)
16647#define UARTx_S1_RDRF_SHIFT (5U)
16648#define UARTx_S1_RDRF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S1_RDRF_SHIFT)) & UARTx_S1_RDRF_MASK)
16649#define UARTx_S1_RDRF UARTx_S1_RDRF_MASK
16650#define UARTx_S1_TC_MASK (0x40U)
16651#define UARTx_S1_TC_SHIFT (6U)
16652#define UARTx_S1_TC_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S1_TC_SHIFT)) & UARTx_S1_TC_MASK)
16653#define UARTx_S1_TC UARTx_S1_TC_MASK
16654#define UARTx_S1_TDRE_MASK (0x80U)
16655#define UARTx_S1_TDRE_SHIFT (7U)
16656#define UARTx_S1_TDRE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S1_TDRE_SHIFT)) & UARTx_S1_TDRE_MASK)
16657#define UARTx_S1_TDRE UARTx_S1_TDRE_MASK
16658
16659/*! @name S2 - UART Status Register 2 */
16660#define UARTx_S2_RAF_MASK (0x1U)
16661#define UARTx_S2_RAF_SHIFT (0U)
16662#define UARTx_S2_RAF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S2_RAF_SHIFT)) & UARTx_S2_RAF_MASK)
16663#define UARTx_S2_RAF UARTx_S2_RAF_MASK
16664#define UARTx_S2_LBKDE_MASK (0x2U)
16665#define UARTx_S2_LBKDE_SHIFT (1U)
16666#define UARTx_S2_LBKDE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S2_LBKDE_SHIFT)) & UARTx_S2_LBKDE_MASK)
16667#define UARTx_S2_LBKDE UARTx_S2_LBKDE_MASK
16668#define UARTx_S2_BRK13_MASK (0x4U)
16669#define UARTx_S2_BRK13_SHIFT (2U)
16670#define UARTx_S2_BRK13_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S2_BRK13_SHIFT)) & UARTx_S2_BRK13_MASK)
16671#define UARTx_S2_BRK13 UARTx_S2_BRK13_MASK
16672#define UARTx_S2_RWUID_MASK (0x8U)
16673#define UARTx_S2_RWUID_SHIFT (3U)
16674#define UARTx_S2_RWUID_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S2_RWUID_SHIFT)) & UARTx_S2_RWUID_MASK)
16675#define UARTx_S2_RWUID UARTx_S2_RWUID_MASK
16676#define UARTx_S2_RXINV_MASK (0x10U)
16677#define UARTx_S2_RXINV_SHIFT (4U)
16678#define UARTx_S2_RXINV_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S2_RXINV_SHIFT)) & UARTx_S2_RXINV_MASK)
16679#define UARTx_S2_RXINV UARTx_S2_RXINV_MASK
16680#define UARTx_S2_MSBF_MASK (0x20U)
16681#define UARTx_S2_MSBF_SHIFT (5U)
16682#define UARTx_S2_MSBF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S2_MSBF_SHIFT)) & UARTx_S2_MSBF_MASK)
16683#define UARTx_S2_MSBF UARTx_S2_MSBF_MASK
16684#define UARTx_S2_RXEDGIF_MASK (0x40U)
16685#define UARTx_S2_RXEDGIF_SHIFT (6U)
16686#define UARTx_S2_RXEDGIF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S2_RXEDGIF_SHIFT)) & UARTx_S2_RXEDGIF_MASK)
16687#define UARTx_S2_RXEDGIF UARTx_S2_RXEDGIF_MASK
16688#define UARTx_S2_LBKDIF_MASK (0x80U)
16689#define UARTx_S2_LBKDIF_SHIFT (7U)
16690#define UARTx_S2_LBKDIF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_S2_LBKDIF_SHIFT)) & UARTx_S2_LBKDIF_MASK)
16691#define UARTx_S2_LBKDIF UARTx_S2_LBKDIF_MASK
16692
16693/*! @name C3 - UART Control Register 3 */
16694#define UARTx_C3_PEIE_MASK (0x1U)
16695#define UARTx_C3_PEIE_SHIFT (0U)
16696#define UARTx_C3_PEIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C3_PEIE_SHIFT)) & UARTx_C3_PEIE_MASK)
16697#define UARTx_C3_PEIE UARTx_C3_PEIE_MASK
16698#define UARTx_C3_FEIE_MASK (0x2U)
16699#define UARTx_C3_FEIE_SHIFT (1U)
16700#define UARTx_C3_FEIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C3_FEIE_SHIFT)) & UARTx_C3_FEIE_MASK)
16701#define UARTx_C3_FEIE UARTx_C3_FEIE_MASK
16702#define UARTx_C3_NEIE_MASK (0x4U)
16703#define UARTx_C3_NEIE_SHIFT (2U)
16704#define UARTx_C3_NEIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C3_NEIE_SHIFT)) & UARTx_C3_NEIE_MASK)
16705#define UARTx_C3_NEIE UARTx_C3_NEIE_MASK
16706#define UARTx_C3_ORIE_MASK (0x8U)
16707#define UARTx_C3_ORIE_SHIFT (3U)
16708#define UARTx_C3_ORIE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C3_ORIE_SHIFT)) & UARTx_C3_ORIE_MASK)
16709#define UARTx_C3_ORIE UARTx_C3_ORIE_MASK
16710#define UARTx_C3_TXINV_MASK (0x10U)
16711#define UARTx_C3_TXINV_SHIFT (4U)
16712#define UARTx_C3_TXINV_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C3_TXINV_SHIFT)) & UARTx_C3_TXINV_MASK)
16713#define UARTx_C3_TXINV UARTx_C3_TXINV_MASK
16714#define UARTx_C3_TXDIR_MASK (0x20U)
16715#define UARTx_C3_TXDIR_SHIFT (5U)
16716#define UARTx_C3_TXDIR_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C3_TXDIR_SHIFT)) & UARTx_C3_TXDIR_MASK)
16717#define UARTx_C3_TXDIR UARTx_C3_TXDIR_MASK
16718#define UARTx_C3_T8_MASK (0x40U)
16719#define UARTx_C3_T8_SHIFT (6U)
16720#define UARTx_C3_T8_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C3_T8_SHIFT)) & UARTx_C3_T8_MASK)
16721#define UARTx_C3_T8 UARTx_C3_T8_MASK
16722#define UARTx_C3_R8_MASK (0x80U)
16723#define UARTx_C3_R8_SHIFT (7U)
16724#define UARTx_C3_R8_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C3_R8_SHIFT)) & UARTx_C3_R8_MASK)
16725#define UARTx_C3_R8 UARTx_C3_R8_MASK
16726
16727/*! @name D - UART Data Register */
16728#define UARTx_D_RT_MASK (0xFFU)
16729#define UARTx_D_RT_SHIFT (0U)
16730#define UARTx_D_RT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_D_RT_SHIFT)) & UARTx_D_RT_MASK)
16731#define UARTx_D_RT UARTx_D_RT_MASK
16732
16733/*! @name MA1 - UART Match Address Registers 1 */
16734#define UARTx_MA1_MA_MASK (0xFFU)
16735#define UARTx_MA1_MA_SHIFT (0U)
16736#define UARTx_MA1_MA_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_MA1_MA_SHIFT)) & UARTx_MA1_MA_MASK)
16737#define UARTx_MA1_MA UARTx_MA1_MA_MASK
16738
16739/*! @name MA2 - UART Match Address Registers 2 */
16740#define UARTx_MA2_MA_MASK (0xFFU)
16741#define UARTx_MA2_MA_SHIFT (0U)
16742#define UARTx_MA2_MA_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_MA2_MA_SHIFT)) & UARTx_MA2_MA_MASK)
16743#define UARTx_MA2_MA UARTx_MA2_MA_MASK
16744
16745/*! @name C4 - UART Control Register 4 */
16746#define UARTx_C4_BRFA_MASK (0x1FU)
16747#define UARTx_C4_BRFA_SHIFT (0U)
16748#define UARTx_C4_BRFA_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C4_BRFA_SHIFT)) & UARTx_C4_BRFA_MASK)
16749#define UARTx_C4_BRFA UARTx_C4_BRFA_MASK
16750#define UARTx_C4_M10_MASK (0x20U)
16751#define UARTx_C4_M10_SHIFT (5U)
16752#define UARTx_C4_M10_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C4_M10_SHIFT)) & UARTx_C4_M10_MASK)
16753#define UARTx_C4_M10 UARTx_C4_M10_MASK
16754#define UARTx_C4_MAEN2_MASK (0x40U)
16755#define UARTx_C4_MAEN2_SHIFT (6U)
16756#define UARTx_C4_MAEN2_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C4_MAEN2_SHIFT)) & UARTx_C4_MAEN2_MASK)
16757#define UARTx_C4_MAEN2 UARTx_C4_MAEN2_MASK
16758#define UARTx_C4_MAEN1_MASK (0x80U)
16759#define UARTx_C4_MAEN1_SHIFT (7U)
16760#define UARTx_C4_MAEN1_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C4_MAEN1_SHIFT)) & UARTx_C4_MAEN1_MASK)
16761#define UARTx_C4_MAEN1 UARTx_C4_MAEN1_MASK
16762
16763/*! @name C5 - UART Control Register 5 */
16764#define UARTx_C5_RDMAS_MASK (0x20U)
16765#define UARTx_C5_RDMAS_SHIFT (5U)
16766#define UARTx_C5_RDMAS_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C5_RDMAS_SHIFT)) & UARTx_C5_RDMAS_MASK)
16767#define UARTx_C5_RDMAS UARTx_C5_RDMAS_MASK
16768#define UARTx_C5_TDMAS_MASK (0x80U)
16769#define UARTx_C5_TDMAS_SHIFT (7U)
16770#define UARTx_C5_TDMAS_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C5_TDMAS_SHIFT)) & UARTx_C5_TDMAS_MASK)
16771#define UARTx_C5_TDMAS UARTx_C5_TDMAS_MASK
16772
16773/*! @name ED - UART Extended Data Register */
16774#define UARTx_ED_PARITYE_MASK (0x40U)
16775#define UARTx_ED_PARITYE_SHIFT (6U)
16776#define UARTx_ED_PARITYE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_ED_PARITYE_SHIFT)) & UARTx_ED_PARITYE_MASK)
16777#define UARTx_ED_PARITYE UARTx_ED_PARITYE_MASK
16778#define UARTx_ED_NOISY_MASK (0x80U)
16779#define UARTx_ED_NOISY_SHIFT (7U)
16780#define UARTx_ED_NOISY_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_ED_NOISY_SHIFT)) & UARTx_ED_NOISY_MASK)
16781#define UARTx_ED_NOISY UARTx_ED_NOISY_MASK
16782
16783/*! @name MODEM - UART Modem Register */
16784#define UARTx_MODEM_TXCTSE_MASK (0x1U)
16785#define UARTx_MODEM_TXCTSE_SHIFT (0U)
16786#define UARTx_MODEM_TXCTSE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_MODEM_TXCTSE_SHIFT)) & UARTx_MODEM_TXCTSE_MASK)
16787#define UARTx_MODEM_TXCTSE UARTx_MODEM_TXCTSE_MASK
16788#define UARTx_MODEM_TXRTSE_MASK (0x2U)
16789#define UARTx_MODEM_TXRTSE_SHIFT (1U)
16790#define UARTx_MODEM_TXRTSE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_MODEM_TXRTSE_SHIFT)) & UARTx_MODEM_TXRTSE_MASK)
16791#define UARTx_MODEM_TXRTSE UARTx_MODEM_TXRTSE_MASK
16792#define UARTx_MODEM_TXRTSPOL_MASK (0x4U)
16793#define UARTx_MODEM_TXRTSPOL_SHIFT (2U)
16794#define UARTx_MODEM_TXRTSPOL_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_MODEM_TXRTSPOL_SHIFT)) & UARTx_MODEM_TXRTSPOL_MASK)
16795#define UARTx_MODEM_TXRTSPOL UARTx_MODEM_TXRTSPOL_MASK
16796#define UARTx_MODEM_RXRTSE_MASK (0x8U)
16797#define UARTx_MODEM_RXRTSE_SHIFT (3U)
16798#define UARTx_MODEM_RXRTSE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_MODEM_RXRTSE_SHIFT)) & UARTx_MODEM_RXRTSE_MASK)
16799#define UARTx_MODEM_RXRTSE UARTx_MODEM_RXRTSE_MASK
16800
16801/*! @name IR - UART Infrared Register */
16802#define UARTx_IR_TNP_MASK (0x3U)
16803#define UARTx_IR_TNP_SHIFT (0U)
16804#define UARTx_IR_TNP_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IR_TNP_SHIFT)) & UARTx_IR_TNP_MASK)
16805#define UARTx_IR_TNP UARTx_IR_TNP_MASK
16806#define UARTx_IR_IREN_MASK (0x4U)
16807#define UARTx_IR_IREN_SHIFT (2U)
16808#define UARTx_IR_IREN_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IR_IREN_SHIFT)) & UARTx_IR_IREN_MASK)
16809#define UARTx_IR_IREN UARTx_IR_IREN_MASK
16810
16811/*! @name PFIFO - UART FIFO Parameters */
16812#define UARTx_PFIFO_RXFIFOSIZE_MASK (0x7U)
16813#define UARTx_PFIFO_RXFIFOSIZE_SHIFT (0U)
16814#define UARTx_PFIFO_RXFIFOSIZE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_PFIFO_RXFIFOSIZE_SHIFT)) & UARTx_PFIFO_RXFIFOSIZE_MASK)
16815#define UARTx_PFIFO_RXFIFOSIZE UARTx_PFIFO_RXFIFOSIZE_MASK
16816#define UARTx_PFIFO_RXFE_MASK (0x8U)
16817#define UARTx_PFIFO_RXFE_SHIFT (3U)
16818#define UARTx_PFIFO_RXFE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_PFIFO_RXFE_SHIFT)) & UARTx_PFIFO_RXFE_MASK)
16819#define UARTx_PFIFO_RXFE UARTx_PFIFO_RXFE_MASK
16820#define UARTx_PFIFO_TXFIFOSIZE_MASK (0x70U)
16821#define UARTx_PFIFO_TXFIFOSIZE_SHIFT (4U)
16822#define UARTx_PFIFO_TXFIFOSIZE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_PFIFO_TXFIFOSIZE_SHIFT)) & UARTx_PFIFO_TXFIFOSIZE_MASK)
16823#define UARTx_PFIFO_TXFIFOSIZE UARTx_PFIFO_TXFIFOSIZE_MASK
16824#define UARTx_PFIFO_TXFE_MASK (0x80U)
16825#define UARTx_PFIFO_TXFE_SHIFT (7U)
16826#define UARTx_PFIFO_TXFE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_PFIFO_TXFE_SHIFT)) & UARTx_PFIFO_TXFE_MASK)
16827#define UARTx_PFIFO_TXFE UARTx_PFIFO_TXFE_MASK
16828
16829/*! @name CFIFO - UART FIFO Control Register */
16830#define UARTx_CFIFO_RXUFE_MASK (0x1U)
16831#define UARTx_CFIFO_RXUFE_SHIFT (0U)
16832#define UARTx_CFIFO_RXUFE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_CFIFO_RXUFE_SHIFT)) & UARTx_CFIFO_RXUFE_MASK)
16833#define UARTx_CFIFO_RXUFE UARTx_CFIFO_RXUFE_MASK
16834#define UARTx_CFIFO_TXOFE_MASK (0x2U)
16835#define UARTx_CFIFO_TXOFE_SHIFT (1U)
16836#define UARTx_CFIFO_TXOFE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_CFIFO_TXOFE_SHIFT)) & UARTx_CFIFO_TXOFE_MASK)
16837#define UARTx_CFIFO_TXOFE UARTx_CFIFO_TXOFE_MASK
16838#define UARTx_CFIFO_RXOFE_MASK (0x4U)
16839#define UARTx_CFIFO_RXOFE_SHIFT (2U)
16840#define UARTx_CFIFO_RXOFE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_CFIFO_RXOFE_SHIFT)) & UARTx_CFIFO_RXOFE_MASK)
16841#define UARTx_CFIFO_RXOFE UARTx_CFIFO_RXOFE_MASK
16842#define UARTx_CFIFO_RXFLUSH_MASK (0x40U)
16843#define UARTx_CFIFO_RXFLUSH_SHIFT (6U)
16844#define UARTx_CFIFO_RXFLUSH_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_CFIFO_RXFLUSH_SHIFT)) & UARTx_CFIFO_RXFLUSH_MASK)
16845#define UARTx_CFIFO_RXFLUSH UARTx_CFIFO_RXFLUSH_MASK
16846#define UARTx_CFIFO_TXFLUSH_MASK (0x80U)
16847#define UARTx_CFIFO_TXFLUSH_SHIFT (7U)
16848#define UARTx_CFIFO_TXFLUSH_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_CFIFO_TXFLUSH_SHIFT)) & UARTx_CFIFO_TXFLUSH_MASK)
16849#define UARTx_CFIFO_TXFLUSH UARTx_CFIFO_TXFLUSH_MASK
16850
16851/*! @name SFIFO - UART FIFO Status Register */
16852#define UARTx_SFIFO_RXUF_MASK (0x1U)
16853#define UARTx_SFIFO_RXUF_SHIFT (0U)
16854#define UARTx_SFIFO_RXUF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_SFIFO_RXUF_SHIFT)) & UARTx_SFIFO_RXUF_MASK)
16855#define UARTx_SFIFO_RXUF UARTx_SFIFO_RXUF_MASK
16856#define UARTx_SFIFO_TXOF_MASK (0x2U)
16857#define UARTx_SFIFO_TXOF_SHIFT (1U)
16858#define UARTx_SFIFO_TXOF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_SFIFO_TXOF_SHIFT)) & UARTx_SFIFO_TXOF_MASK)
16859#define UARTx_SFIFO_TXOF UARTx_SFIFO_TXOF_MASK
16860#define UARTx_SFIFO_RXOF_MASK (0x4U)
16861#define UARTx_SFIFO_RXOF_SHIFT (2U)
16862#define UARTx_SFIFO_RXOF_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_SFIFO_RXOF_SHIFT)) & UARTx_SFIFO_RXOF_MASK)
16863#define UARTx_SFIFO_RXOF UARTx_SFIFO_RXOF_MASK
16864#define UARTx_SFIFO_RXEMPT_MASK (0x40U)
16865#define UARTx_SFIFO_RXEMPT_SHIFT (6U)
16866#define UARTx_SFIFO_RXEMPT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_SFIFO_RXEMPT_SHIFT)) & UARTx_SFIFO_RXEMPT_MASK)
16867#define UARTx_SFIFO_RXEMPT UARTx_SFIFO_RXEMPT_MASK
16868#define UARTx_SFIFO_TXEMPT_MASK (0x80U)
16869#define UARTx_SFIFO_TXEMPT_SHIFT (7U)
16870#define UARTx_SFIFO_TXEMPT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_SFIFO_TXEMPT_SHIFT)) & UARTx_SFIFO_TXEMPT_MASK)
16871#define UARTx_SFIFO_TXEMPT UARTx_SFIFO_TXEMPT_MASK
16872
16873/*! @name TWFIFO - UART FIFO Transmit Watermark */
16874#define UARTx_TWFIFO_TXWATER_MASK (0xFFU)
16875#define UARTx_TWFIFO_TXWATER_SHIFT (0U)
16876#define UARTx_TWFIFO_TXWATER_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_TWFIFO_TXWATER_SHIFT)) & UARTx_TWFIFO_TXWATER_MASK)
16877#define UARTx_TWFIFO_TXWATER UARTx_TWFIFO_TXWATER_MASK
16878
16879/*! @name TCFIFO - UART FIFO Transmit Count */
16880#define UARTx_TCFIFO_TXCOUNT_MASK (0xFFU)
16881#define UARTx_TCFIFO_TXCOUNT_SHIFT (0U)
16882#define UARTx_TCFIFO_TXCOUNT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_TCFIFO_TXCOUNT_SHIFT)) & UARTx_TCFIFO_TXCOUNT_MASK)
16883#define UARTx_TCFIFO_TXCOUNT UARTx_TCFIFO_TXCOUNT_MASK
16884
16885/*! @name RWFIFO - UART FIFO Receive Watermark */
16886#define UARTx_RWFIFO_RXWATER_MASK (0xFFU)
16887#define UARTx_RWFIFO_RXWATER_SHIFT (0U)
16888#define UARTx_RWFIFO_RXWATER_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_RWFIFO_RXWATER_SHIFT)) & UARTx_RWFIFO_RXWATER_MASK)
16889#define UARTx_RWFIFO_RXWATER UARTx_RWFIFO_RXWATER_MASK
16890
16891/*! @name RCFIFO - UART FIFO Receive Count */
16892#define UARTx_RCFIFO_RXCOUNT_MASK (0xFFU)
16893#define UARTx_RCFIFO_RXCOUNT_SHIFT (0U)
16894#define UARTx_RCFIFO_RXCOUNT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_RCFIFO_RXCOUNT_SHIFT)) & UARTx_RCFIFO_RXCOUNT_MASK)
16895#define UARTx_RCFIFO_RXCOUNT UARTx_RCFIFO_RXCOUNT_MASK
16896
16897/*! @name C7816 - UART 7816 Control Register */
16898#define UARTx_C7816_ISO_7816E_MASK (0x1U)
16899#define UARTx_C7816_ISO_7816E_SHIFT (0U)
16900#define UARTx_C7816_ISO_7816E_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C7816_ISO_7816E_SHIFT)) & UARTx_C7816_ISO_7816E_MASK)
16901#define UARTx_C7816_ISO_7816E UARTx_C7816_ISO_7816E_MASK
16902#define UARTx_C7816_TTYPE_MASK (0x2U)
16903#define UARTx_C7816_TTYPE_SHIFT (1U)
16904#define UARTx_C7816_TTYPE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C7816_TTYPE_SHIFT)) & UARTx_C7816_TTYPE_MASK)
16905#define UARTx_C7816_TTYPE UARTx_C7816_TTYPE_MASK
16906#define UARTx_C7816_INIT_MASK (0x4U)
16907#define UARTx_C7816_INIT_SHIFT (2U)
16908#define UARTx_C7816_INIT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C7816_INIT_SHIFT)) & UARTx_C7816_INIT_MASK)
16909#define UARTx_C7816_INIT UARTx_C7816_INIT_MASK
16910#define UARTx_C7816_ANACK_MASK (0x8U)
16911#define UARTx_C7816_ANACK_SHIFT (3U)
16912#define UARTx_C7816_ANACK_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C7816_ANACK_SHIFT)) & UARTx_C7816_ANACK_MASK)
16913#define UARTx_C7816_ANACK UARTx_C7816_ANACK_MASK
16914#define UARTx_C7816_ONACK_MASK (0x10U)
16915#define UARTx_C7816_ONACK_SHIFT (4U)
16916#define UARTx_C7816_ONACK_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C7816_ONACK_SHIFT)) & UARTx_C7816_ONACK_MASK)
16917#define UARTx_C7816_ONACK UARTx_C7816_ONACK_MASK
16918
16919/*! @name IE7816 - UART 7816 Interrupt Enable Register */
16920#define UARTx_IE7816_RXTE_MASK (0x1U)
16921#define UARTx_IE7816_RXTE_SHIFT (0U)
16922#define UARTx_IE7816_RXTE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IE7816_RXTE_SHIFT)) & UARTx_IE7816_RXTE_MASK)
16923#define UARTx_IE7816_RXTE UARTx_IE7816_RXTE_MASK
16924#define UARTx_IE7816_TXTE_MASK (0x2U)
16925#define UARTx_IE7816_TXTE_SHIFT (1U)
16926#define UARTx_IE7816_TXTE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IE7816_TXTE_SHIFT)) & UARTx_IE7816_TXTE_MASK)
16927#define UARTx_IE7816_TXTE UARTx_IE7816_TXTE_MASK
16928#define UARTx_IE7816_GTVE_MASK (0x4U)
16929#define UARTx_IE7816_GTVE_SHIFT (2U)
16930#define UARTx_IE7816_GTVE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IE7816_GTVE_SHIFT)) & UARTx_IE7816_GTVE_MASK)
16931#define UARTx_IE7816_GTVE UARTx_IE7816_GTVE_MASK
16932#define UARTx_IE7816_ADTE_MASK (0x8U)
16933#define UARTx_IE7816_ADTE_SHIFT (3U)
16934#define UARTx_IE7816_ADTE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IE7816_ADTE_SHIFT)) & UARTx_IE7816_ADTE_MASK)
16935#define UARTx_IE7816_ADTE UARTx_IE7816_ADTE_MASK
16936#define UARTx_IE7816_INITDE_MASK (0x10U)
16937#define UARTx_IE7816_INITDE_SHIFT (4U)
16938#define UARTx_IE7816_INITDE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IE7816_INITDE_SHIFT)) & UARTx_IE7816_INITDE_MASK)
16939#define UARTx_IE7816_INITDE UARTx_IE7816_INITDE_MASK
16940#define UARTx_IE7816_BWTE_MASK (0x20U)
16941#define UARTx_IE7816_BWTE_SHIFT (5U)
16942#define UARTx_IE7816_BWTE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IE7816_BWTE_SHIFT)) & UARTx_IE7816_BWTE_MASK)
16943#define UARTx_IE7816_BWTE UARTx_IE7816_BWTE_MASK
16944#define UARTx_IE7816_CWTE_MASK (0x40U)
16945#define UARTx_IE7816_CWTE_SHIFT (6U)
16946#define UARTx_IE7816_CWTE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IE7816_CWTE_SHIFT)) & UARTx_IE7816_CWTE_MASK)
16947#define UARTx_IE7816_CWTE UARTx_IE7816_CWTE_MASK
16948#define UARTx_IE7816_WTE_MASK (0x80U)
16949#define UARTx_IE7816_WTE_SHIFT (7U)
16950#define UARTx_IE7816_WTE_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IE7816_WTE_SHIFT)) & UARTx_IE7816_WTE_MASK)
16951#define UARTx_IE7816_WTE UARTx_IE7816_WTE_MASK
16952
16953/*! @name IS7816 - UART 7816 Interrupt Status Register */
16954#define UARTx_IS7816_RXT_MASK (0x1U)
16955#define UARTx_IS7816_RXT_SHIFT (0U)
16956#define UARTx_IS7816_RXT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IS7816_RXT_SHIFT)) & UARTx_IS7816_RXT_MASK)
16957#define UARTx_IS7816_RXT UARTx_IS7816_RXT_MASK
16958#define UARTx_IS7816_TXT_MASK (0x2U)
16959#define UARTx_IS7816_TXT_SHIFT (1U)
16960#define UARTx_IS7816_TXT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IS7816_TXT_SHIFT)) & UARTx_IS7816_TXT_MASK)
16961#define UARTx_IS7816_TXT UARTx_IS7816_TXT_MASK
16962#define UARTx_IS7816_GTV_MASK (0x4U)
16963#define UARTx_IS7816_GTV_SHIFT (2U)
16964#define UARTx_IS7816_GTV_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IS7816_GTV_SHIFT)) & UARTx_IS7816_GTV_MASK)
16965#define UARTx_IS7816_GTV UARTx_IS7816_GTV_MASK
16966#define UARTx_IS7816_ADT_MASK (0x8U)
16967#define UARTx_IS7816_ADT_SHIFT (3U)
16968#define UARTx_IS7816_ADT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IS7816_ADT_SHIFT)) & UARTx_IS7816_ADT_MASK)
16969#define UARTx_IS7816_ADT UARTx_IS7816_ADT_MASK
16970#define UARTx_IS7816_INITD_MASK (0x10U)
16971#define UARTx_IS7816_INITD_SHIFT (4U)
16972#define UARTx_IS7816_INITD_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IS7816_INITD_SHIFT)) & UARTx_IS7816_INITD_MASK)
16973#define UARTx_IS7816_INITD UARTx_IS7816_INITD_MASK
16974#define UARTx_IS7816_BWT_MASK (0x20U)
16975#define UARTx_IS7816_BWT_SHIFT (5U)
16976#define UARTx_IS7816_BWT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IS7816_BWT_SHIFT)) & UARTx_IS7816_BWT_MASK)
16977#define UARTx_IS7816_BWT UARTx_IS7816_BWT_MASK
16978#define UARTx_IS7816_CWT_MASK (0x40U)
16979#define UARTx_IS7816_CWT_SHIFT (6U)
16980#define UARTx_IS7816_CWT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IS7816_CWT_SHIFT)) & UARTx_IS7816_CWT_MASK)
16981#define UARTx_IS7816_CWT UARTx_IS7816_CWT_MASK
16982#define UARTx_IS7816_WT_MASK (0x80U)
16983#define UARTx_IS7816_WT_SHIFT (7U)
16984#define UARTx_IS7816_WT_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_IS7816_WT_SHIFT)) & UARTx_IS7816_WT_MASK)
16985#define UARTx_IS7816_WT UARTx_IS7816_WT_MASK
16986
16987/*! @name WP7816 - UART 7816 Wait Parameter Register */
16988#define UARTx_WP7816_WTX_MASK (0xFFU)
16989#define UARTx_WP7816_WTX_SHIFT (0U)
16990#define UARTx_WP7816_WTX_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WP7816_WTX_SHIFT)) & UARTx_WP7816_WTX_MASK)
16991#define UARTx_WP7816_WTX UARTx_WP7816_WTX_MASK
16992
16993/*! @name WN7816 - UART 7816 Wait N Register */
16994#define UARTx_WN7816_GTN_MASK (0xFFU)
16995#define UARTx_WN7816_GTN_SHIFT (0U)
16996#define UARTx_WN7816_GTN_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WN7816_GTN_SHIFT)) & UARTx_WN7816_GTN_MASK)
16997#define UARTx_WN7816_GTN UARTx_WN7816_GTN_MASK
16998
16999/*! @name WF7816 - UART 7816 Wait FD Register */
17000#define UARTx_WF7816_GTFD_MASK (0xFFU)
17001#define UARTx_WF7816_GTFD_SHIFT (0U)
17002#define UARTx_WF7816_GTFD_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WF7816_GTFD_SHIFT)) & UARTx_WF7816_GTFD_MASK)
17003#define UARTx_WF7816_GTFD UARTx_WF7816_GTFD_MASK
17004
17005/*! @name ET7816 - UART 7816 Error Threshold Register */
17006#define UARTx_ET7816_RXTHRESHOLD_MASK (0xFU)
17007#define UARTx_ET7816_RXTHRESHOLD_SHIFT (0U)
17008#define UARTx_ET7816_RXTHRESHOLD_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_ET7816_RXTHRESHOLD_SHIFT)) & UARTx_ET7816_RXTHRESHOLD_MASK)
17009#define UARTx_ET7816_RXTHRESHOLD UARTx_ET7816_RXTHRESHOLD_MASK
17010#define UARTx_ET7816_TXTHRESHOLD_MASK (0xF0U)
17011#define UARTx_ET7816_TXTHRESHOLD_SHIFT (4U)
17012#define UARTx_ET7816_TXTHRESHOLD_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_ET7816_TXTHRESHOLD_SHIFT)) & UARTx_ET7816_TXTHRESHOLD_MASK)
17013#define UARTx_ET7816_TXTHRESHOLD UARTx_ET7816_TXTHRESHOLD_MASK
17014
17015/*! @name TL7816 - UART 7816 Transmit Length Register */
17016#define UARTx_TL7816_TLEN_MASK (0xFFU)
17017#define UARTx_TL7816_TLEN_SHIFT (0U)
17018#define UARTx_TL7816_TLEN_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_TL7816_TLEN_SHIFT)) & UARTx_TL7816_TLEN_MASK)
17019#define UARTx_TL7816_TLEN UARTx_TL7816_TLEN_MASK
17020
17021/*! @name AP7816A_T0 - UART 7816 ATR Duration Timer Register A */
17022#define UARTx_AP7816A_T0_ADTI_H_MASK (0xFFU)
17023#define UARTx_AP7816A_T0_ADTI_H_SHIFT (0U)
17024#define UARTx_AP7816A_T0_ADTI_H_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_AP7816A_T0_ADTI_H_SHIFT)) & UARTx_AP7816A_T0_ADTI_H_MASK)
17025#define UARTx_AP7816A_T0_ADTI_H UARTx_AP7816A_T0_ADTI_H_MASK
17026
17027/*! @name AP7816B_T0 - UART 7816 ATR Duration Timer Register B */
17028#define UARTx_AP7816B_T0_ADTI_L_MASK (0xFFU)
17029#define UARTx_AP7816B_T0_ADTI_L_SHIFT (0U)
17030#define UARTx_AP7816B_T0_ADTI_L_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_AP7816B_T0_ADTI_L_SHIFT)) & UARTx_AP7816B_T0_ADTI_L_MASK)
17031#define UARTx_AP7816B_T0_ADTI_L UARTx_AP7816B_T0_ADTI_L_MASK
17032
17033/*! @name WP7816A_T0 - UART 7816 Wait Parameter Register A */
17034#define UARTx_WP7816A_T0_WI_H_MASK (0xFFU)
17035#define UARTx_WP7816A_T0_WI_H_SHIFT (0U)
17036#define UARTx_WP7816A_T0_WI_H_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WP7816A_T0_WI_H_SHIFT)) & UARTx_WP7816A_T0_WI_H_MASK)
17037#define UARTx_WP7816A_T0_WI_H UARTx_WP7816A_T0_WI_H_MASK
17038
17039/*! @name WP7816B_T0 - UART 7816 Wait Parameter Register B */
17040#define UARTx_WP7816B_T0_WI_L_MASK (0xFFU)
17041#define UARTx_WP7816B_T0_WI_L_SHIFT (0U)
17042#define UARTx_WP7816B_T0_WI_L_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WP7816B_T0_WI_L_SHIFT)) & UARTx_WP7816B_T0_WI_L_MASK)
17043#define UARTx_WP7816B_T0_WI_L UARTx_WP7816B_T0_WI_L_MASK
17044
17045/*! @name WP7816A_T1 - UART 7816 Wait Parameter Register A */
17046#define UARTx_WP7816A_T1_BWI_H_MASK (0xFFU)
17047#define UARTx_WP7816A_T1_BWI_H_SHIFT (0U)
17048#define UARTx_WP7816A_T1_BWI_H_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WP7816A_T1_BWI_H_SHIFT)) & UARTx_WP7816A_T1_BWI_H_MASK)
17049#define UARTx_WP7816A_T1_BWI_H UARTx_WP7816A_T1_BWI_H_MASK
17050
17051/*! @name WP7816B_T1 - UART 7816 Wait Parameter Register B */
17052#define UARTx_WP7816B_T1_BWI_L_MASK (0xFFU)
17053#define UARTx_WP7816B_T1_BWI_L_SHIFT (0U)
17054#define UARTx_WP7816B_T1_BWI_L_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WP7816B_T1_BWI_L_SHIFT)) & UARTx_WP7816B_T1_BWI_L_MASK)
17055#define UARTx_WP7816B_T1_BWI_L UARTx_WP7816B_T1_BWI_L_MASK
17056
17057/*! @name WGP7816_T1 - UART 7816 Wait and Guard Parameter Register */
17058#define UARTx_WGP7816_T1_BGI_MASK (0xFU)
17059#define UARTx_WGP7816_T1_BGI_SHIFT (0U)
17060#define UARTx_WGP7816_T1_BGI_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WGP7816_T1_BGI_SHIFT)) & UARTx_WGP7816_T1_BGI_MASK)
17061#define UARTx_WGP7816_T1_BGI UARTx_WGP7816_T1_BGI_MASK
17062#define UARTx_WGP7816_T1_CWI1_MASK (0xF0U)
17063#define UARTx_WGP7816_T1_CWI1_SHIFT (4U)
17064#define UARTx_WGP7816_T1_CWI1_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WGP7816_T1_CWI1_SHIFT)) & UARTx_WGP7816_T1_CWI1_MASK)
17065#define UARTx_WGP7816_T1_CWI1 UARTx_WGP7816_T1_CWI1_MASK
17066
17067/*! @name WP7816C_T1 - UART 7816 Wait Parameter Register C */
17068#define UARTx_WP7816C_T1_CWI2_MASK (0x1FU)
17069#define UARTx_WP7816C_T1_CWI2_SHIFT (0U)
17070#define UARTx_WP7816C_T1_CWI2_SET(x) (((uint8_t)(((uint8_t)(x)) << UARTx_WP7816C_T1_CWI2_SHIFT)) & UARTx_WP7816C_T1_CWI2_MASK)
17071#define UARTx_WP7816C_T1_CWI2 UARTx_WP7816C_T1_CWI2_MASK
17072
17073
17074/*!
17075 * @}
17076 */ /* end of group UARTx_Register_Masks */
17077
17078
17079/* UART - Peripheral instance base addresses */
17080/** Peripheral UART0 base address */
17081#define UART0_BASE (0x4006A000u)
17082/** Peripheral UART0 base pointer */
17083#define UART0 ((UART_TypeDef *)UART0_BASE)
17084/** Peripheral UART1 base address */
17085#define UART1_BASE (0x4006B000u)
17086/** Peripheral UART1 base pointer */
17087#define UART1 ((UART_TypeDef *)UART1_BASE)
17088/** Peripheral UART2 base address */
17089#define UART2_BASE (0x4006C000u)
17090/** Peripheral UART2 base pointer */
17091#define UART2 ((UART_TypeDef *)UART2_BASE)
17092/** Peripheral UART3 base address */
17093#define UART3_BASE (0x4006D000u)
17094/** Peripheral UART3 base pointer */
17095#define UART3 ((UART_TypeDef *)UART3_BASE)
17096/** Peripheral UART4 base address */
17097#define UART4_BASE (0x400EA000u)
17098/** Peripheral UART4 base pointer */
17099#define UART4 ((UART_TypeDef *)UART4_BASE)
17100/** Array initializer of UART peripheral base addresses */
17101#define UARTx_BASE_ADDRS { UART0_BASE, UART1_BASE, UART2_BASE, UART3_BASE, UART4_BASE }
17102/** Array initializer of UART peripheral base pointers */
17103#define UARTx_BASE_PTRS { UART0, UART1, UART2, UART3, UART4 }
17104/** Interrupt vectors for the UART peripheral type */
17105#define UARTx_RX_TX_IRQS { UART0Status_IRQn, UART1Status_IRQn, UART2Status_IRQn, UART3Status_IRQn, UART4Status_IRQn }
17106#define UARTx_ERR_IRQS { UART0Error_IRQn, UART1Error_IRQn, UART2Error_IRQn, UART3Error_IRQn, UART4Error_IRQn }
17107
17108/*!
17109 * @}
17110 */ /* end of group UARTx_Peripheral_Access_Layer */
17111
17112
17113/* ----------------------------------------------------------------------------
17114 -- USB Peripheral Access Layer
17115 ---------------------------------------------------------------------------- */
17116
17117/*!
17118 * @addtogroup USBx_Peripheral_Access_Layer USB Peripheral Access Layer
17119 * @{
17120 */
17121
17122/** USB - Register Layout Typedef */
17123typedef struct {
17124 __I uint8_t PERID; /**< Peripheral ID register, offset: 0x0 */
17125 uint8_t RESERVED_0[3];
17126 __I uint8_t IDCOMP; /**< Peripheral ID Complement register, offset: 0x4 */
17127 uint8_t RESERVED_1[3];
17128 __I uint8_t REV; /**< Peripheral Revision register, offset: 0x8 */
17129 uint8_t RESERVED_2[3];
17130 __I uint8_t ADDINFO; /**< Peripheral Additional Info register, offset: 0xC */
17131 uint8_t RESERVED_3[3];
17132 __IO uint8_t OTGISTAT; /**< OTG Interrupt Status register, offset: 0x10 */
17133 uint8_t RESERVED_4[3];
17134 __IO uint8_t OTGICR; /**< OTG Interrupt Control register, offset: 0x14 */
17135 uint8_t RESERVED_5[3];
17136 __IO uint8_t OTGSTAT; /**< OTG Status register, offset: 0x18 */
17137 uint8_t RESERVED_6[3];
17138 __IO uint8_t OTGCTL; /**< OTG Control register, offset: 0x1C */
17139 uint8_t RESERVED_7[99];
17140 __IO uint8_t ISTAT; /**< Interrupt Status register, offset: 0x80 */
17141 uint8_t RESERVED_8[3];
17142 __IO uint8_t INTEN; /**< Interrupt Enable register, offset: 0x84 */
17143 uint8_t RESERVED_9[3];
17144 __IO uint8_t ERRSTAT; /**< Error Interrupt Status register, offset: 0x88 */
17145 uint8_t RESERVED_10[3];
17146 __IO uint8_t ERREN; /**< Error Interrupt Enable register, offset: 0x8C */
17147 uint8_t RESERVED_11[3];
17148 __I uint8_t STAT; /**< Status register, offset: 0x90 */
17149 uint8_t RESERVED_12[3];
17150 __IO uint8_t CTL; /**< Control register, offset: 0x94 */
17151 uint8_t RESERVED_13[3];
17152 __IO uint8_t ADDR; /**< Address register, offset: 0x98 */
17153 uint8_t RESERVED_14[3];
17154 __IO uint8_t BDTPAGE1; /**< BDT Page register 1, offset: 0x9C */
17155 uint8_t RESERVED_15[3];
17156 __IO uint8_t FRMNUML; /**< Frame Number register Low, offset: 0xA0 */
17157 uint8_t RESERVED_16[3];
17158 __IO uint8_t FRMNUMH; /**< Frame Number register High, offset: 0xA4 */
17159 uint8_t RESERVED_17[3];
17160 __IO uint8_t TOKEN; /**< Token register, offset: 0xA8 */
17161 uint8_t RESERVED_18[3];
17162 __IO uint8_t SOFTHLD; /**< SOF Threshold register, offset: 0xAC */
17163 uint8_t RESERVED_19[3];
17164 __IO uint8_t BDTPAGE2; /**< BDT Page Register 2, offset: 0xB0 */
17165 uint8_t RESERVED_20[3];
17166 __IO uint8_t BDTPAGE3; /**< BDT Page Register 3, offset: 0xB4 */
17167 uint8_t RESERVED_21[11];
17168 struct { /* offset: 0xC0, array step: 0x4 */
17169 __IO uint8_t V; /**< Endpoint Control register, array offset: 0xC0, array step: 0x4 */
17170 uint8_t RESERVED_0[3];
17171 } ENDPT[16];
17172 __IO uint8_t USBCTRL; /**< USB Control register, offset: 0x100 */
17173 uint8_t RESERVED_22[3];
17174 __I uint8_t OBSERVE; /**< USB OTG Observe register, offset: 0x104 */
17175 uint8_t RESERVED_23[3];
17176 __IO uint8_t CONTROL; /**< USB OTG Control register, offset: 0x108 */
17177 uint8_t RESERVED_24[3];
17178 __IO uint8_t USBTRC0; /**< USB Transceiver Control register 0, offset: 0x10C */
17179 uint8_t RESERVED_25[7];
17180 __IO uint8_t USBFRMADJUST; /**< Frame Adjust Register, offset: 0x114 */
17181 uint8_t RESERVED_26[43];
17182 __IO uint8_t CLK_RECOVER_CTRL; /**< USB Clock recovery control, offset: 0x140 */
17183 uint8_t RESERVED_27[3];
17184 __IO uint8_t CLK_RECOVER_IRC_EN; /**< IRC48M oscillator enable register, offset: 0x144 */
17185 uint8_t RESERVED_28[15];
17186 __IO uint8_t CLK_RECOVER_INT_EN; /**< Clock recovery combined interrupt enable, offset: 0x154 */
17187 uint8_t RESERVED_29[7];
17188 __IO uint8_t CLK_RECOVER_INT_STATUS; /**< Clock recovery separated interrupt status, offset: 0x15C */
17189} USBx_TypeDef;
17190
17191/* ----------------------------------------------------------------------------
17192 -- USB Register Masks
17193 ---------------------------------------------------------------------------- */
17194
17195/*!
17196 * @addtogroup USBx_Register_Masks USB Register Masks
17197 * @{
17198 */
17199
17200/*! @name PERID - Peripheral ID register */
17201#define USBx_PERID_ID_MASK (0x3FU)
17202#define USBx_PERID_ID_SHIFT (0U)
17203#define USBx_PERID_ID_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_PERID_ID_SHIFT)) & USBx_PERID_ID_MASK)
17204#define USBx_PERID_ID USBx_PERID_ID_MASK
17205
17206/*! @name IDCOMP - Peripheral ID Complement register */
17207#define USBx_IDCOMP_NID_MASK (0x3FU)
17208#define USBx_IDCOMP_NID_SHIFT (0U)
17209#define USBx_IDCOMP_NID_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_IDCOMP_NID_SHIFT)) & USBx_IDCOMP_NID_MASK)
17210#define USBx_IDCOMP_NID USBx_IDCOMP_NID_MASK
17211
17212/*! @name REV - Peripheral Revision register */
17213#define USBx_REV_REV_MASK (0xFFU)
17214#define USBx_REV_REV_SHIFT (0U)
17215#define USBx_REV_REV_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_REV_REV_SHIFT)) & USBx_REV_REV_MASK)
17216#define USBx_REV_REV USBx_REV_REV_MASK
17217
17218/*! @name ADDINFO - Peripheral Additional Info register */
17219#define USBx_ADDINFO_IEHOST_MASK (0x1U)
17220#define USBx_ADDINFO_IEHOST_SHIFT (0U)
17221#define USBx_ADDINFO_IEHOST_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ADDINFO_IEHOST_SHIFT)) & USBx_ADDINFO_IEHOST_MASK)
17222#define USBx_ADDINFO_IEHOST USBx_ADDINFO_IEHOST_MASK
17223
17224/*! @name OTGISTAT - OTG Interrupt Status register */
17225#define USBx_OTGISTAT_AVBUSCHG_MASK (0x1U)
17226#define USBx_OTGISTAT_AVBUSCHG_SHIFT (0U)
17227#define USBx_OTGISTAT_AVBUSCHG_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGISTAT_AVBUSCHG_SHIFT)) & USBx_OTGISTAT_AVBUSCHG_MASK)
17228#define USBx_OTGISTAT_AVBUSCHG USBx_OTGISTAT_AVBUSCHG_MASK
17229#define USBx_OTGISTAT_B_SESS_CHG_MASK (0x4U)
17230#define USBx_OTGISTAT_B_SESS_CHG_SHIFT (2U)
17231#define USBx_OTGISTAT_B_SESS_CHG_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGISTAT_B_SESS_CHG_SHIFT)) & USBx_OTGISTAT_B_SESS_CHG_MASK)
17232#define USBx_OTGISTAT_B_SESS_CHG USBx_OTGISTAT_B_SESS_CHG_MASK
17233#define USBx_OTGISTAT_SESSVLDCHG_MASK (0x8U)
17234#define USBx_OTGISTAT_SESSVLDCHG_SHIFT (3U)
17235#define USBx_OTGISTAT_SESSVLDCHG_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGISTAT_SESSVLDCHG_SHIFT)) & USBx_OTGISTAT_SESSVLDCHG_MASK)
17236#define USBx_OTGISTAT_SESSVLDCHG USBx_OTGISTAT_SESSVLDCHG_MASK
17237#define USBx_OTGISTAT_LINE_STATE_CHG_MASK (0x20U)
17238#define USBx_OTGISTAT_LINE_STATE_CHG_SHIFT (5U)
17239#define USBx_OTGISTAT_LINE_STATE_CHG_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGISTAT_LINE_STATE_CHG_SHIFT)) & USBx_OTGISTAT_LINE_STATE_CHG_MASK)
17240#define USBx_OTGISTAT_LINE_STATE_CHG USBx_OTGISTAT_LINE_STATE_CHG_MASK
17241#define USBx_OTGISTAT_ONEMSEC_MASK (0x40U)
17242#define USBx_OTGISTAT_ONEMSEC_SHIFT (6U)
17243#define USBx_OTGISTAT_ONEMSEC_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGISTAT_ONEMSEC_SHIFT)) & USBx_OTGISTAT_ONEMSEC_MASK)
17244#define USBx_OTGISTAT_ONEMSEC USBx_OTGISTAT_ONEMSEC_MASK
17245#define USBx_OTGISTAT_IDCHG_MASK (0x80U)
17246#define USBx_OTGISTAT_IDCHG_SHIFT (7U)
17247#define USBx_OTGISTAT_IDCHG_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGISTAT_IDCHG_SHIFT)) & USBx_OTGISTAT_IDCHG_MASK)
17248#define USBx_OTGISTAT_IDCHG USBx_OTGISTAT_IDCHG_MASK
17249
17250/*! @name OTGICR - OTG Interrupt Control register */
17251#define USBx_OTGICR_AVBUSEN_MASK (0x1U)
17252#define USBx_OTGICR_AVBUSEN_SHIFT (0U)
17253#define USBx_OTGICR_AVBUSEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGICR_AVBUSEN_SHIFT)) & USBx_OTGICR_AVBUSEN_MASK)
17254#define USBx_OTGICR_AVBUSEN USBx_OTGICR_AVBUSEN_MASK
17255#define USBx_OTGICR_BSESSEN_MASK (0x4U)
17256#define USBx_OTGICR_BSESSEN_SHIFT (2U)
17257#define USBx_OTGICR_BSESSEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGICR_BSESSEN_SHIFT)) & USBx_OTGICR_BSESSEN_MASK)
17258#define USBx_OTGICR_BSESSEN USBx_OTGICR_BSESSEN_MASK
17259#define USBx_OTGICR_SESSVLDEN_MASK (0x8U)
17260#define USBx_OTGICR_SESSVLDEN_SHIFT (3U)
17261#define USBx_OTGICR_SESSVLDEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGICR_SESSVLDEN_SHIFT)) & USBx_OTGICR_SESSVLDEN_MASK)
17262#define USBx_OTGICR_SESSVLDEN USBx_OTGICR_SESSVLDEN_MASK
17263#define USBx_OTGICR_LINESTATEEN_MASK (0x20U)
17264#define USBx_OTGICR_LINESTATEEN_SHIFT (5U)
17265#define USBx_OTGICR_LINESTATEEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGICR_LINESTATEEN_SHIFT)) & USBx_OTGICR_LINESTATEEN_MASK)
17266#define USBx_OTGICR_LINESTATEEN USBx_OTGICR_LINESTATEEN_MASK
17267#define USBx_OTGICR_ONEMSECEN_MASK (0x40U)
17268#define USBx_OTGICR_ONEMSECEN_SHIFT (6U)
17269#define USBx_OTGICR_ONEMSECEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGICR_ONEMSECEN_SHIFT)) & USBx_OTGICR_ONEMSECEN_MASK)
17270#define USBx_OTGICR_ONEMSECEN USBx_OTGICR_ONEMSECEN_MASK
17271#define USBx_OTGICR_IDEN_MASK (0x80U)
17272#define USBx_OTGICR_IDEN_SHIFT (7U)
17273#define USBx_OTGICR_IDEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGICR_IDEN_SHIFT)) & USBx_OTGICR_IDEN_MASK)
17274#define USBx_OTGICR_IDEN USBx_OTGICR_IDEN_MASK
17275
17276/*! @name OTGSTAT - OTG Status register */
17277#define USBx_OTGSTAT_AVBUSVLD_MASK (0x1U)
17278#define USBx_OTGSTAT_AVBUSVLD_SHIFT (0U)
17279#define USBx_OTGSTAT_AVBUSVLD_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGSTAT_AVBUSVLD_SHIFT)) & USBx_OTGSTAT_AVBUSVLD_MASK)
17280#define USBx_OTGSTAT_AVBUSVLD USBx_OTGSTAT_AVBUSVLD_MASK
17281#define USBx_OTGSTAT_BSESSEND_MASK (0x4U)
17282#define USBx_OTGSTAT_BSESSEND_SHIFT (2U)
17283#define USBx_OTGSTAT_BSESSEND_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGSTAT_BSESSEND_SHIFT)) & USBx_OTGSTAT_BSESSEND_MASK)
17284#define USBx_OTGSTAT_BSESSEND USBx_OTGSTAT_BSESSEND_MASK
17285#define USBx_OTGSTAT_SESS_VLD_MASK (0x8U)
17286#define USBx_OTGSTAT_SESS_VLD_SHIFT (3U)
17287#define USBx_OTGSTAT_SESS_VLD_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGSTAT_SESS_VLD_SHIFT)) & USBx_OTGSTAT_SESS_VLD_MASK)
17288#define USBx_OTGSTAT_SESS_VLD USBx_OTGSTAT_SESS_VLD_MASK
17289#define USBx_OTGSTAT_LINESTATESTABLE_MASK (0x20U)
17290#define USBx_OTGSTAT_LINESTATESTABLE_SHIFT (5U)
17291#define USBx_OTGSTAT_LINESTATESTABLE_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGSTAT_LINESTATESTABLE_SHIFT)) & USBx_OTGSTAT_LINESTATESTABLE_MASK)
17292#define USBx_OTGSTAT_LINESTATESTABLE USBx_OTGSTAT_LINESTATESTABLE_MASK
17293#define USBx_OTGSTAT_ONEMSECEN_MASK (0x40U)
17294#define USBx_OTGSTAT_ONEMSECEN_SHIFT (6U)
17295#define USBx_OTGSTAT_ONEMSECEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGSTAT_ONEMSECEN_SHIFT)) & USBx_OTGSTAT_ONEMSECEN_MASK)
17296#define USBx_OTGSTAT_ONEMSECEN USBx_OTGSTAT_ONEMSECEN_MASK
17297#define USBx_OTGSTAT_ID_MASK (0x80U)
17298#define USBx_OTGSTAT_ID_SHIFT (7U)
17299#define USBx_OTGSTAT_ID_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGSTAT_ID_SHIFT)) & USBx_OTGSTAT_ID_MASK)
17300#define USBx_OTGSTAT_ID USBx_OTGSTAT_ID_MASK
17301
17302/*! @name OTGCTL - OTG Control register */
17303#define USBx_OTGCTL_OTGEN_MASK (0x4U)
17304#define USBx_OTGCTL_OTGEN_SHIFT (2U)
17305#define USBx_OTGCTL_OTGEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGCTL_OTGEN_SHIFT)) & USBx_OTGCTL_OTGEN_MASK)
17306#define USBx_OTGCTL_OTGEN USBx_OTGCTL_OTGEN_MASK
17307#define USBx_OTGCTL_DMLOW_MASK (0x10U)
17308#define USBx_OTGCTL_DMLOW_SHIFT (4U)
17309#define USBx_OTGCTL_DMLOW_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGCTL_DMLOW_SHIFT)) & USBx_OTGCTL_DMLOW_MASK)
17310#define USBx_OTGCTL_DMLOW USBx_OTGCTL_DMLOW_MASK
17311#define USBx_OTGCTL_DPLOW_MASK (0x20U)
17312#define USBx_OTGCTL_DPLOW_SHIFT (5U)
17313#define USBx_OTGCTL_DPLOW_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGCTL_DPLOW_SHIFT)) & USBx_OTGCTL_DPLOW_MASK)
17314#define USBx_OTGCTL_DPLOW USBx_OTGCTL_DPLOW_MASK
17315#define USBx_OTGCTL_DPHIGH_MASK (0x80U)
17316#define USBx_OTGCTL_DPHIGH_SHIFT (7U)
17317#define USBx_OTGCTL_DPHIGH_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OTGCTL_DPHIGH_SHIFT)) & USBx_OTGCTL_DPHIGH_MASK)
17318#define USBx_OTGCTL_DPHIGH USBx_OTGCTL_DPHIGH_MASK
17319
17320/*! @name ISTAT - Interrupt Status register */
17321#define USBx_ISTAT_USBRST_MASK (0x1U)
17322#define USBx_ISTAT_USBRST_SHIFT (0U)
17323#define USBx_ISTAT_USBRST_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ISTAT_USBRST_SHIFT)) & USBx_ISTAT_USBRST_MASK)
17324#define USBx_ISTAT_USBRST USBx_ISTAT_USBRST_SET(1)
17325#define USBx_ISTAT_ERROR_MASK (0x2U)
17326#define USBx_ISTAT_ERROR_SHIFT (1U)
17327#define USBx_ISTAT_ERROR_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ISTAT_ERROR_SHIFT)) & USBx_ISTAT_ERROR_MASK)
17328#define USBx_ISTAT_ERROR USBx_ISTAT_ERROR_SET(1)
17329#define USBx_ISTAT_SOFTOK_MASK (0x4U)
17330#define USBx_ISTAT_SOFTOK_SHIFT (2U)
17331#define USBx_ISTAT_SOFTOK_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ISTAT_SOFTOK_SHIFT)) & USBx_ISTAT_SOFTOK_MASK)
17332#define USBx_ISTAT_SOFTOK USBx_ISTAT_SOFTOK_SET(1)
17333#define USBx_ISTAT_TOKDNE_MASK (0x8U)
17334#define USBx_ISTAT_TOKDNE_SHIFT (3U)
17335#define USBx_ISTAT_TOKDNE_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ISTAT_TOKDNE_SHIFT)) & USBx_ISTAT_TOKDNE_MASK)
17336#define USBx_ISTAT_TOKDNE USBx_ISTAT_TOKDNE_SET(1)
17337#define USBx_ISTAT_SLEEP_MASK (0x10U)
17338#define USBx_ISTAT_SLEEP_SHIFT (4U)
17339#define USBx_ISTAT_SLEEP_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ISTAT_SLEEP_SHIFT)) & USBx_ISTAT_SLEEP_MASK)
17340#define USBx_ISTAT_SLEEP USBx_ISTAT_SLEEP_SET(1)
17341#define USBx_ISTAT_RESUME_MASK (0x20U)
17342#define USBx_ISTAT_RESUME_SHIFT (5U)
17343#define USBx_ISTAT_RESUME_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ISTAT_RESUME_SHIFT)) & USBx_ISTAT_RESUME_MASK)
17344#define USBx_ISTAT_RESUME USBx_ISTAT_RESUME_SET(1)
17345#define USBx_ISTAT_ATTACH_MASK (0x40U)
17346#define USBx_ISTAT_ATTACH_SHIFT (6U)
17347#define USBx_ISTAT_ATTACH_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ISTAT_ATTACH_SHIFT)) & USBx_ISTAT_ATTACH_MASK)
17348#define USBx_ISTAT_ATTACH USBx_ISTAT_ATTACH_MASK
17349#define USBx_ISTAT_STALL_MASK (0x80U)
17350#define USBx_ISTAT_STALL_SHIFT (7U)
17351#define USBx_ISTAT_STALL_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ISTAT_STALL_SHIFT)) & USBx_ISTAT_STALL_MASK)
17352#define USBx_ISTAT_STALL USBx_ISTAT_STALL_SET(1)
17353
17354/*! @name INTEN - Interrupt Enable register */
17355#define USBx_INTEN_USBRSTEN_MASK (0x1U)
17356#define USBx_INTEN_USBRSTEN_SHIFT (0U)
17357#define USBx_INTEN_USBRSTEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_INTEN_USBRSTEN_SHIFT)) & USBx_INTEN_USBRSTEN_MASK)
17358#define USBx_INTEN_USBRSTEN USBx_INTEN_USBRSTEN_SET(1)
17359#define USBx_INTEN_ERROREN_MASK (0x2U)
17360#define USBx_INTEN_ERROREN_SHIFT (1U)
17361#define USBx_INTEN_ERROREN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_INTEN_ERROREN_SHIFT)) & USBx_INTEN_ERROREN_MASK)
17362#define USBx_INTEN_ERROREN USBx_INTEN_ERROREN_SET(1)
17363#define USBx_INTEN_SOFTOKEN_MASK (0x4U)
17364#define USBx_INTEN_SOFTOKEN_SHIFT (2U)
17365#define USBx_INTEN_SOFTOKEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_INTEN_SOFTOKEN_SHIFT)) & USBx_INTEN_SOFTOKEN_MASK)
17366#define USBx_INTEN_SOFTOKEN USBx_INTEN_SOFTOKEN_SET(1)
17367#define USBx_INTEN_TOKDNEEN_MASK (0x8U)
17368#define USBx_INTEN_TOKDNEEN_SHIFT (3U)
17369#define USBx_INTEN_TOKDNEEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_INTEN_TOKDNEEN_SHIFT)) & USBx_INTEN_TOKDNEEN_MASK)
17370#define USBx_INTEN_TOKDNEEN USBx_INTEN_TOKDNEEN_SET(1)
17371#define USBx_INTEN_SLEEPEN_MASK (0x10U)
17372#define USBx_INTEN_SLEEPEN_SHIFT (4U)
17373#define USBx_INTEN_SLEEPEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_INTEN_SLEEPEN_SHIFT)) & USBx_INTEN_SLEEPEN_MASK)
17374#define USBx_INTEN_SLEEPEN USBx_INTEN_SLEEPEN_SET(1)
17375#define USBx_INTEN_RESUMEEN_MASK (0x20U)
17376#define USBx_INTEN_RESUMEEN_SHIFT (5U)
17377#define USBx_INTEN_RESUMEEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_INTEN_RESUMEEN_SHIFT)) & USBx_INTEN_RESUMEEN_MASK)
17378#define USBx_INTEN_RESUMEEN USBx_INTEN_RESUMEEN_SET(1)
17379#define USBx_INTEN_ATTACHEN_MASK (0x40U)
17380#define USBx_INTEN_ATTACHEN_SHIFT (6U)
17381#define USBx_INTEN_ATTACHEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_INTEN_ATTACHEN_SHIFT)) & USBx_INTEN_ATTACHEN_MASK)
17382#define USBx_INTEN_ATTACHEN USBx_INTEN_ATTACHEN_MASK
17383#define USBx_INTEN_STALLEN_MASK (0x80U)
17384#define USBx_INTEN_STALLEN_SHIFT (7U)
17385#define USBx_INTEN_STALLEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_INTEN_STALLEN_SHIFT)) & USBx_INTEN_STALLEN_MASK)
17386#define USBx_INTEN_STALLEN USBx_INTEN_STALLEN_SET(1)
17387
17388/*! @name ERRSTAT - Error Interrupt Status register */
17389#define USBx_ERRSTAT_PIDERR_MASK (0x1U)
17390#define USBx_ERRSTAT_PIDERR_SHIFT (0U)
17391#define USBx_ERRSTAT_PIDERR_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERRSTAT_PIDERR_SHIFT)) & USBx_ERRSTAT_PIDERR_MASK)
17392#define USBx_ERRSTAT_PIDERR USBx_ERRSTAT_PIDERR_MASK
17393#define USBx_ERRSTAT_CRC5EOF_MASK (0x2U)
17394#define USBx_ERRSTAT_CRC5EOF_SHIFT (1U)
17395#define USBx_ERRSTAT_CRC5EOF_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERRSTAT_CRC5EOF_SHIFT)) & USBx_ERRSTAT_CRC5EOF_MASK)
17396#define USBx_ERRSTAT_CRC5EOF USBx_ERRSTAT_CRC5EOF_MASK
17397#define USBx_ERRSTAT_CRC16_MASK (0x4U)
17398#define USBx_ERRSTAT_CRC16_SHIFT (2U)
17399#define USBx_ERRSTAT_CRC16_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERRSTAT_CRC16_SHIFT)) & USBx_ERRSTAT_CRC16_MASK)
17400#define USBx_ERRSTAT_CRC16 USBx_ERRSTAT_CRC16_MASK
17401#define USBx_ERRSTAT_DFN8_MASK (0x8U)
17402#define USBx_ERRSTAT_DFN8_SHIFT (3U)
17403#define USBx_ERRSTAT_DFN8_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERRSTAT_DFN8_SHIFT)) & USBx_ERRSTAT_DFN8_MASK)
17404#define USBx_ERRSTAT_DFN8 USBx_ERRSTAT_DFN8_MASK
17405#define USBx_ERRSTAT_BTOERR_MASK (0x10U)
17406#define USBx_ERRSTAT_BTOERR_SHIFT (4U)
17407#define USBx_ERRSTAT_BTOERR_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERRSTAT_BTOERR_SHIFT)) & USBx_ERRSTAT_BTOERR_MASK)
17408#define USBx_ERRSTAT_BTOERR USBx_ERRSTAT_BTOERR_MASK
17409#define USBx_ERRSTAT_DMAERR_MASK (0x20U)
17410#define USBx_ERRSTAT_DMAERR_SHIFT (5U)
17411#define USBx_ERRSTAT_DMAERR_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERRSTAT_DMAERR_SHIFT)) & USBx_ERRSTAT_DMAERR_MASK)
17412#define USBx_ERRSTAT_DMAERR USBx_ERRSTAT_DMAERR_MASK
17413#define USBx_ERRSTAT_BTSERR_MASK (0x80U)
17414#define USBx_ERRSTAT_BTSERR_SHIFT (7U)
17415#define USBx_ERRSTAT_BTSERR_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERRSTAT_BTSERR_SHIFT)) & USBx_ERRSTAT_BTSERR_MASK)
17416#define USBx_ERRSTAT_BTSERR USBx_ERRSTAT_BTSERR_MASK
17417
17418/*! @name ERREN - Error Interrupt Enable register */
17419#define USBx_ERREN_PIDERREN_MASK (0x1U)
17420#define USBx_ERREN_PIDERREN_SHIFT (0U)
17421#define USBx_ERREN_PIDERREN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERREN_PIDERREN_SHIFT)) & USBx_ERREN_PIDERREN_MASK)
17422#define USBx_ERREN_PIDERREN USBx_ERREN_PIDERREN_MASK
17423#define USBx_ERREN_CRC5EOFEN_MASK (0x2U)
17424#define USBx_ERREN_CRC5EOFEN_SHIFT (1U)
17425#define USBx_ERREN_CRC5EOFEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERREN_CRC5EOFEN_SHIFT)) & USBx_ERREN_CRC5EOFEN_MASK)
17426#define USBx_ERREN_CRC5EOFEN USBx_ERREN_CRC5EOFEN_MASK
17427#define USBx_ERREN_CRC16EN_MASK (0x4U)
17428#define USBx_ERREN_CRC16EN_SHIFT (2U)
17429#define USBx_ERREN_CRC16EN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERREN_CRC16EN_SHIFT)) & USBx_ERREN_CRC16EN_MASK)
17430#define USBx_ERREN_CRC16EN USBx_ERREN_CRC16EN_MASK
17431#define USBx_ERREN_DFN8EN_MASK (0x8U)
17432#define USBx_ERREN_DFN8EN_SHIFT (3U)
17433#define USBx_ERREN_DFN8EN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERREN_DFN8EN_SHIFT)) & USBx_ERREN_DFN8EN_MASK)
17434#define USBx_ERREN_DFN8EN USBx_ERREN_DFN8EN_MASK
17435#define USBx_ERREN_BTOERREN_MASK (0x10U)
17436#define USBx_ERREN_BTOERREN_SHIFT (4U)
17437#define USBx_ERREN_BTOERREN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERREN_BTOERREN_SHIFT)) & USBx_ERREN_BTOERREN_MASK)
17438#define USBx_ERREN_BTOERREN USBx_ERREN_BTOERREN_MASK
17439#define USBx_ERREN_DMAERREN_MASK (0x20U)
17440#define USBx_ERREN_DMAERREN_SHIFT (5U)
17441#define USBx_ERREN_DMAERREN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERREN_DMAERREN_SHIFT)) & USBx_ERREN_DMAERREN_MASK)
17442#define USBx_ERREN_DMAERREN USBx_ERREN_DMAERREN_MASK
17443#define USBx_ERREN_BTSERREN_MASK (0x80U)
17444#define USBx_ERREN_BTSERREN_SHIFT (7U)
17445#define USBx_ERREN_BTSERREN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ERREN_BTSERREN_SHIFT)) & USBx_ERREN_BTSERREN_MASK)
17446#define USBx_ERREN_BTSERREN USBx_ERREN_BTSERREN_MASK
17447
17448/*! @name STAT - Status register */
17449#define USBx_STAT_ODD_MASK (0x4U)
17450#define USBx_STAT_ODD_SHIFT (2U)
17451#define USBx_STAT_ODD_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_STAT_ODD_SHIFT)) & USBx_STAT_ODD_MASK)
17452#define USBx_STAT_ODD USBx_STAT_ODD_MASK
17453#define USBx_STAT_TX_MASK (0x8U)
17454#define USBx_STAT_TX_SHIFT (3U)
17455#define USBx_STAT_TX_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_STAT_TX_SHIFT)) & USBx_STAT_TX_MASK)
17456#define USBx_STAT_TX USBx_STAT_TX_MASK
17457#define USBx_STAT_ENDP_MASK (0xF0U)
17458#define USBx_STAT_ENDP_SHIFT (4U)
17459#define USBx_STAT_ENDP_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_STAT_ENDP_SHIFT)) & USBx_STAT_ENDP_MASK)
17460#define USBx_STAT_ENDP USBx_STAT_ENDP_MASK
17461
17462/*! @name CTL - Control register */
17463#define USBx_CTL_USBENSOFEN_MASK (0x1U)
17464#define USBx_CTL_USBENSOFEN_SHIFT (0U)
17465#define USBx_CTL_USBENSOFEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CTL_USBENSOFEN_SHIFT)) & USBx_CTL_USBENSOFEN_MASK)
17466#define USBx_CTL_USBENSOFEN USBx_CTL_USBENSOFEN_SET(1)
17467#define USBx_CTL_ODDRST_MASK (0x2U)
17468#define USBx_CTL_ODDRST_SHIFT (1U)
17469#define USBx_CTL_ODDRST_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CTL_ODDRST_SHIFT)) & USBx_CTL_ODDRST_MASK)
17470#define USBx_CTL_ODDRST USBx_CTL_ODDRST_SET(1)
17471#define USBx_CTL_RESUME_MASK (0x4U)
17472#define USBx_CTL_RESUME_SHIFT (2U)
17473#define USBx_CTL_RESUME_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CTL_RESUME_SHIFT)) & USBx_CTL_RESUME_MASK)
17474#define USBx_CTL_RESUME USBx_CTL_RESUME_SET(1)
17475#define USBx_CTL_HOSTMODEEN_MASK (0x8U)
17476#define USBx_CTL_HOSTMODEEN_SHIFT (3U)
17477#define USBx_CTL_HOSTMODEEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CTL_HOSTMODEEN_SHIFT)) & USBx_CTL_HOSTMODEEN_MASK)
17478#define USBx_CTL_HOSTMODEEN USBx_CTL_HOSTMODEEN_SET(1)
17479#define USBx_CTL_RESET_MASK (0x10U)
17480#define USBx_CTL_RESET_SHIFT (4U)
17481#define USBx_CTL_RESET_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CTL_RESET_SHIFT)) & USBx_CTL_RESET_MASK)
17482#define USBx_CTL_RESET USBx_CTL_RESET_MASK
17483#define USBx_CTL_TXSUSPENDTOKENBUSY_MASK (0x20U)
17484#define USBx_CTL_TXSUSPENDTOKENBUSY_SHIFT (5U)
17485#define USBx_CTL_TXSUSPENDTOKENBUSY_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CTL_TXSUSPENDTOKENBUSY_SHIFT)) & USBx_CTL_TXSUSPENDTOKENBUSY_MASK)
17486#define USBx_CTL_TXSUSPENDTOKENBUSY USBx_CTL_TXSUSPENDTOKENBUSY_SET(1)
17487#define USBx_CTL_SE0_MASK (0x40U)
17488#define USBx_CTL_SE0_SHIFT (6U)
17489#define USBx_CTL_SE0_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CTL_SE0_SHIFT)) & USBx_CTL_SE0_MASK)
17490#define USBx_CTL_SE0 USBx_CTL_SE0_MASK
17491#define USBx_CTL_JSTATE_MASK (0x80U)
17492#define USBx_CTL_JSTATE_SHIFT (7U)
17493#define USBx_CTL_JSTATE_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CTL_JSTATE_SHIFT)) & USBx_CTL_JSTATE_MASK)
17494#define USBx_CTL_JSTATE USBx_CTL_JSTATE_MASK
17495
17496/*! @name ADDR - Address register */
17497#define USBx_ADDR_ADDR_MASK (0x7FU)
17498#define USBx_ADDR_ADDR_SHIFT (0U)
17499#define USBx_ADDR_ADDR_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ADDR_ADDR_SHIFT)) & USBx_ADDR_ADDR_MASK)
17500#define USBx_ADDR_ADDR USBx_ADDR_ADDR_MASK
17501#define USBx_ADDR_LSEN_MASK (0x80U)
17502#define USBx_ADDR_LSEN_SHIFT (7U)
17503#define USBx_ADDR_LSEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ADDR_LSEN_SHIFT)) & USBx_ADDR_LSEN_MASK)
17504#define USBx_ADDR_LSEN USBx_ADDR_LSEN_MASK
17505
17506/*! @name BDTPAGE1 - BDT Page register 1 */
17507#define USBx_BDTPAGE1_BDTBA_MASK (0xFEU)
17508#define USBx_BDTPAGE1_BDTBA_SHIFT (1U)
17509#define USBx_BDTPAGE1_BDTBA_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_BDTPAGE1_BDTBA_SHIFT)) & USBx_BDTPAGE1_BDTBA_MASK)
17510#define USBx_BDTPAGE1_BDTBA USBx_BDTPAGE1_BDTBA_MASK
17511
17512/*! @name FRMNUML - Frame Number register Low */
17513#define USBx_FRMNUML_FRM_MASK (0xFFU)
17514#define USBx_FRMNUML_FRM_SHIFT (0U)
17515#define USBx_FRMNUML_FRM_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_FRMNUML_FRM_SHIFT)) & USBx_FRMNUML_FRM_MASK)
17516#define USBx_FRMNUML_FRM USBx_FRMNUML_FRM_MASK
17517
17518/*! @name FRMNUMH - Frame Number register High */
17519#define USBx_FRMNUMH_FRM_MASK (0x7U)
17520#define USBx_FRMNUMH_FRM_SHIFT (0U)
17521#define USBx_FRMNUMH_FRM_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_FRMNUMH_FRM_SHIFT)) & USBx_FRMNUMH_FRM_MASK)
17522#define USBx_FRMNUMH_FRM USBx_FRMNUMH_FRM_MASK
17523
17524/*! @name TOKEN - Token register */
17525#define USBx_TOKEN_TOKENENDPT_MASK (0xFU)
17526#define USBx_TOKEN_TOKENENDPT_SHIFT (0U)
17527#define USBx_TOKEN_TOKENENDPT_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_TOKEN_TOKENENDPT_SHIFT)) & USBx_TOKEN_TOKENENDPT_MASK)
17528#define USBx_TOKEN_TOKENENDPT USBx_TOKEN_TOKENENDPT_MASK
17529#define USBx_TOKEN_TOKENPID_MASK (0xF0U)
17530#define USBx_TOKEN_TOKENPID_SHIFT (4U)
17531#define USBx_TOKEN_TOKENPID_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_TOKEN_TOKENPID_SHIFT)) & USBx_TOKEN_TOKENPID_MASK)
17532#define USBx_TOKEN_TOKENPID USBx_TOKEN_TOKENPID_MASK
17533
17534/*! @name SOFTHLD - SOF Threshold register */
17535#define USBx_SOFTHLD_CNT_MASK (0xFFU)
17536#define USBx_SOFTHLD_CNT_SHIFT (0U)
17537#define USBx_SOFTHLD_CNT_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_SOFTHLD_CNT_SHIFT)) & USBx_SOFTHLD_CNT_MASK)
17538#define USBx_SOFTHLD_CNT USBx_SOFTHLD_CNT_MASK
17539
17540/*! @name BDTPAGE2 - BDT Page Register 2 */
17541#define USBx_BDTPAGE2_BDTBA_MASK (0xFFU)
17542#define USBx_BDTPAGE2_BDTBA_SHIFT (0U)
17543#define USBx_BDTPAGE2_BDTBA_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_BDTPAGE2_BDTBA_SHIFT)) & USBx_BDTPAGE2_BDTBA_MASK)
17544#define USBx_BDTPAGE2_BDTBA USBx_BDTPAGE2_BDTBA_MASK
17545
17546/*! @name BDTPAGE3 - BDT Page Register 3 */
17547#define USBx_BDTPAGE3_BDTBA_MASK (0xFFU)
17548#define USBx_BDTPAGE3_BDTBA_SHIFT (0U)
17549#define USBx_BDTPAGE3_BDTBA_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_BDTPAGE3_BDTBA_SHIFT)) & USBx_BDTPAGE3_BDTBA_MASK)
17550#define USBx_BDTPAGE3_BDTBA USBx_BDTPAGE3_BDTBA_MASK
17551
17552/*! @name ENDPT - Endpoint Control register */
17553#define USBx_ENDPTn_EPHSHK_MASK (0x1U)
17554#define USBx_ENDPTn_EPHSHK_SHIFT (0U)
17555#define USBx_ENDPTn_EPHSHK_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ENDPTn_EPHSHK_SHIFT)) & USBx_ENDPTn_EPHSHK_MASK)
17556#define USBx_ENDPTn_EPHSHK USBx_ENDPTn_EPHSHK_SET(1)
17557#define USBx_ENDPTn_EPSTALL_MASK (0x2U)
17558#define USBx_ENDPTn_EPSTALL_SHIFT (1U)
17559#define USBx_ENDPTn_EPSTALL_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ENDPTn_EPSTALL_SHIFT)) & USBx_ENDPTn_EPSTALL_MASK)
17560#define USBx_ENDPTn_EPSTALL USBx_ENDPTn_EPSTALL_SET(1)
17561#define USBx_ENDPTn_EPTXEN_MASK (0x4U)
17562#define USBx_ENDPTn_EPTXEN_SHIFT (2U)
17563#define USBx_ENDPTn_EPTXEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ENDPTn_EPTXEN_SHIFT)) & USBx_ENDPTn_EPTXEN_MASK)
17564#define USBx_ENDPTn_EPTXEN USBx_ENDPTn_EPTXEN_SET(1)
17565#define USBx_ENDPTn_EPRXEN_MASK (0x8U)
17566#define USBx_ENDPTn_EPRXEN_SHIFT (3U)
17567#define USBx_ENDPTn_EPRXEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ENDPTn_EPRXEN_SHIFT)) & USBx_ENDPTn_EPRXEN_MASK)
17568#define USBx_ENDPTn_EPRXEN USBx_ENDPTn_EPRXEN_SET(1)
17569#define USBx_ENDPTn_EPCTLDIS_MASK (0x10U)
17570#define USBx_ENDPTn_EPCTLDIS_SHIFT (4U)
17571#define USBx_ENDPTn_EPCTLDIS_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ENDPTn_EPCTLDIS_SHIFT)) & USBx_ENDPTn_EPCTLDIS_MASK)
17572#define USBx_ENDPTn_EPCTLDIS USBx_ENDPTn_EPCTLDIS_SET(1)
17573#define USBx_ENDPTn_RETRYDIS_MASK (0x40U)
17574#define USBx_ENDPTn_RETRYDIS_SHIFT (6U)
17575#define USBx_ENDPTn_RETRYDIS_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ENDPTn_RETRYDIS_SHIFT)) & USBx_ENDPTn_RETRYDIS_MASK)
17576#define USBx_ENDPTn_RETRYDIS USBx_ENDPTn_RETRYDIS_MASK
17577#define USBx_ENDPTn_HOSTWOHUB_MASK (0x80U)
17578#define USBx_ENDPTn_HOSTWOHUB_SHIFT (7U)
17579#define USBx_ENDPTn_HOSTWOHUB_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_ENDPTn_HOSTWOHUB_SHIFT)) & USBx_ENDPTn_HOSTWOHUB_MASK)
17580#define USBx_ENDPTn_HOSTWOHUB USBx_ENDPTn_HOSTWOHUB_MASK
17581
17582/* The count of USBx_ENDPT */
17583#define USBx_ENDPTn_COUNT (16U)
17584
17585/*! @name USBCTRL - USB Control register */
17586#define USBx_USBCTRL_PDE_MASK (0x40U)
17587#define USBx_USBCTRL_PDE_SHIFT (6U)
17588#define USBx_USBCTRL_PDE_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_USBCTRL_PDE_SHIFT)) & USBx_USBCTRL_PDE_MASK)
17589#define USBx_USBCTRL_PDE USBx_USBCTRL_PDE_MASK
17590#define USBx_USBCTRL_SUSP_MASK (0x80U)
17591#define USBx_USBCTRL_SUSP_SHIFT (7U)
17592#define USBx_USBCTRL_SUSP_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_USBCTRL_SUSP_SHIFT)) & USBx_USBCTRL_SUSP_MASK)
17593#define USBx_USBCTRL_SUSP USBx_USBCTRL_SUSP_MASK
17594
17595/*! @name OBSERVE - USB OTG Observe register */
17596#define USBx_OBSERVE_DMPD_MASK (0x10U)
17597#define USBx_OBSERVE_DMPD_SHIFT (4U)
17598#define USBx_OBSERVE_DMPD_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OBSERVE_DMPD_SHIFT)) & USBx_OBSERVE_DMPD_MASK)
17599#define USBx_OBSERVE_DMPD USBx_OBSERVE_DMPD_MASK
17600#define USBx_OBSERVE_DPPD_MASK (0x40U)
17601#define USBx_OBSERVE_DPPD_SHIFT (6U)
17602#define USBx_OBSERVE_DPPD_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OBSERVE_DPPD_SHIFT)) & USBx_OBSERVE_DPPD_MASK)
17603#define USBx_OBSERVE_DPPD USBx_OBSERVE_DPPD_MASK
17604#define USBx_OBSERVE_DPPU_MASK (0x80U)
17605#define USBx_OBSERVE_DPPU_SHIFT (7U)
17606#define USBx_OBSERVE_DPPU_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_OBSERVE_DPPU_SHIFT)) & USBx_OBSERVE_DPPU_MASK)
17607#define USBx_OBSERVE_DPPU USBx_OBSERVE_DPPU_MASK
17608
17609/*! @name CONTROL - USB OTG Control register */
17610#define USBx_CONTROL_DPPULLUPNONOTG_MASK (0x10U)
17611#define USBx_CONTROL_DPPULLUPNONOTG_SHIFT (4U)
17612#define USBx_CONTROL_DPPULLUPNONOTG_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CONTROL_DPPULLUPNONOTG_SHIFT)) & USBx_CONTROL_DPPULLUPNONOTG_MASK)
17613#define USBx_CONTROL_DPPULLUPNONOTG USBx_CONTROL_DPPULLUPNONOTG_SET(1)
17614
17615/*! @name USBTRC0 - USB Transceiver Control register 0 */
17616#define USBx_USBTRC0_USBx_RESUME_INT_MASK (0x1U)
17617#define USBx_USBTRC0_USBx_RESUME_INT_SHIFT (0U)
17618#define USBx_USBTRC0_USBx_RESUME_INT_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_USBTRC0_USBx_RESUME_INT_SHIFT)) & USBx_USBTRC0_USBx_RESUME_INT_MASK)
17619#define USBx_USBTRC0_USBx_RESUME_INT USBx_USBTRC0_USBx_RESUME_INT_MASK
17620#define USBx_USBTRC0_SYNC_DET_MASK (0x2U)
17621#define USBx_USBTRC0_SYNC_DET_SHIFT (1U)
17622#define USBx_USBTRC0_SYNC_DET_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_USBTRC0_SYNC_DET_SHIFT)) & USBx_USBTRC0_SYNC_DET_MASK)
17623#define USBx_USBTRC0_SYNC_DET USBx_USBTRC0_SYNC_DET_MASK
17624#define USBx_USBTRC0_USBx_CLK_RECOVERY_INT_MASK (0x4U)
17625#define USBx_USBTRC0_USBx_CLK_RECOVERY_INT_SHIFT (2U)
17626#define USBx_USBTRC0_USBx_CLK_RECOVERY_INT_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_USBTRC0_USBx_CLK_RECOVERY_INT_SHIFT)) & USBx_USBTRC0_USBx_CLK_RECOVERY_INT_MASK)
17627#define USBx_USBTRC0_USBx_CLK_RECOVERY_INT USBx_USBTRC0_USBx_CLK_RECOVERY_INT_MASK
17628#define USBx_USBTRC0_USBRESMEN_MASK (0x20U)
17629#define USBx_USBTRC0_USBRESMEN_SHIFT (5U)
17630#define USBx_USBTRC0_USBRESMEN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_USBTRC0_USBRESMEN_SHIFT)) & USBx_USBTRC0_USBRESMEN_MASK)
17631#define USBx_USBTRC0_USBRESMEN USBx_USBTRC0_USBRESMEN_MASK
17632#define USBx_USBTRC0_USBRESET_MASK (0x80U)
17633#define USBx_USBTRC0_USBRESET_SHIFT (7U)
17634#define USBx_USBTRC0_USBRESET_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_USBTRC0_USBRESET_SHIFT)) & USBx_USBTRC0_USBRESET_MASK)
17635#define USBx_USBTRC0_USBRESET USBx_USBTRC0_USBRESET_SET(1)
17636
17637/*! @name USBFRMADJUST - Frame Adjust Register */
17638#define USBx_USBFRMADJUST_ADJ_MASK (0xFFU)
17639#define USBx_USBFRMADJUST_ADJ_SHIFT (0U)
17640#define USBx_USBFRMADJUST_ADJ_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_USBFRMADJUST_ADJ_SHIFT)) & USBx_USBFRMADJUST_ADJ_MASK)
17641#define USBx_USBFRMADJUST_ADJ USBx_USBFRMADJUST_ADJ_MASK
17642
17643/*! @name CLK_RECOVER_CTRL - USB Clock recovery control */
17644#define USBx_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_MASK (0x20U)
17645#define USBx_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_SHIFT (5U)
17646#define USBx_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN(x) (((uint8_t)(((uint8_t)(x)) << USBx_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_SHIFT)) & USBx_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_MASK)
17647#define USBx_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_MASK (0x40U)
17648#define USBx_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_SHIFT (6U)
17649#define USBx_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN(x) (((uint8_t)(((uint8_t)(x)) << USBx_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_SHIFT)) & USBx_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_MASK)
17650#define USBx_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_MASK (0x80U)
17651#define USBx_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_SHIFT (7U)
17652#define USBx_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_SHIFT)) & USBx_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_MASK)
17653#define USBx_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN USBx_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_SET(1)
17654
17655/*! @name CLK_RECOVER_IRC_EN - IRC48M oscillator enable register */
17656#define USBx_CLK_RECOVER_IRC_EN_REG_EN_MASK (0x1U)
17657#define USBx_CLK_RECOVER_IRC_EN_REG_EN_SHIFT (0U)
17658#define USBx_CLK_RECOVER_IRC_EN_REG_EN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CLK_RECOVER_IRC_EN_REG_EN_SHIFT)) & USBx_CLK_RECOVER_IRC_EN_REG_EN_MASK)
17659#define USBx_CLK_RECOVER_IRC_EN_REG_EN USBx_CLK_RECOVER_IRC_EN_REG_EN_SET(1)
17660#define USBx_CLK_RECOVER_IRC_EN_IRC_EN_MASK (0x2U)
17661#define USBx_CLK_RECOVER_IRC_EN_IRC_EN_SHIFT (1U)
17662#define USBx_CLK_RECOVER_IRC_EN_IRC_EN_SET(x) (((uint8_t)(((uint8_t)(x)) << USBx_CLK_RECOVER_IRC_EN_IRC_EN_SHIFT)) & USBx_CLK_RECOVER_IRC_EN_IRC_EN_MASK)
17663#define USBx_CLK_RECOVER_IRC_EN_IRC_EN USBx_CLK_RECOVER_IRC_EN_IRC_EN_SET(1)
17664
17665/*! @name CLK_RECOVER_INT_EN - Clock recovery combined interrupt enable */
17666#define USBx_CLK_RECOVER_INT_EN_OVF_ERROR_EN_MASK (0x10U)
17667#define USBx_CLK_RECOVER_INT_EN_OVF_ERROR_EN_SHIFT (4U)
17668#define USBx_CLK_RECOVER_INT_EN_OVF_ERROR_EN(x) (((uint8_t)(((uint8_t)(x)) << USBx_CLK_RECOVER_INT_EN_OVF_ERROR_EN_SHIFT)) & USBx_CLK_RECOVER_INT_EN_OVF_ERROR_EN_MASK)
17669
17670/*! @name CLK_RECOVER_INT_STATUS - Clock recovery separated interrupt status */
17671#define USBx_CLK_RECOVER_INT_STATUS_OVF_ERROR_MASK (0x10U)
17672#define USBx_CLK_RECOVER_INT_STATUS_OVF_ERROR_SHIFT (4U)
17673#define USBx_CLK_RECOVER_INT_STATUS_OVF_ERROR(x) (((uint8_t)(((uint8_t)(x)) << USBx_CLK_RECOVER_INT_STATUS_OVF_ERROR_SHIFT)) & USBx_CLK_RECOVER_INT_STATUS_OVF_ERROR_MASK)
17674
17675
17676/*!
17677 * @}
17678 */ /* end of group USBx_Register_Masks */
17679
17680
17681/* USB - Peripheral instance base addresses */
17682/** Peripheral USB0 base address */
17683#define USB0_BASE (0x40072000u)
17684/** Peripheral USB0 base pointer */
17685#define USB0 ((USBx_TypeDef *)USB0_BASE)
17686/** Array initializer of USB peripheral base addresses */
17687#define USBx_BASE_ADDRS { USB0_BASE }
17688/** Array initializer of USB peripheral base pointers */
17689#define USBx_BASE_PTRS { USB0 }
17690/** Interrupt vectors for the USB peripheral type */
17691#define USBx_IRQS { USB_OTG_IRQn }
17692
17693/*!
17694 * @}
17695 */ /* end of group USBx_Peripheral_Access_Layer */
17696
17697
17698/* ----------------------------------------------------------------------------
17699 -- USBDCD Peripheral Access Layer
17700 ---------------------------------------------------------------------------- */
17701
17702/*!
17703 * @addtogroup USBDCD_Peripheral_Access_Layer USBDCD Peripheral Access Layer
17704 * @{
17705 */
17706
17707/** USBDCD - Register Layout Typedef */
17708typedef struct {
17709 __IO uint32_t CONTROL; /**< Control register, offset: 0x0 */
17710 __IO uint32_t CLOCK; /**< Clock register, offset: 0x4 */
17711 __I uint32_t STATUS; /**< Status register, offset: 0x8 */
17712 __IO uint32_t SIGNAL_OVERRIDE; /**< Signal Override Register, offset: 0xC */
17713 __IO uint32_t TIMER0; /**< TIMER0 register, offset: 0x10 */
17714 __IO uint32_t TIMER1; /**< TIMER1 register, offset: 0x14 */
17715 union { /* offset: 0x18 */
17716 __IO uint32_t TIMER2_BC11; /**< TIMER2_BC11 register, offset: 0x18 */
17717 __IO uint32_t TIMER2_BC12; /**< TIMER2_BC12 register, offset: 0x18 */
17718 };
17719} USBDCD_TypeDef;
17720
17721/* ----------------------------------------------------------------------------
17722 -- USBDCD Register Masks
17723 ---------------------------------------------------------------------------- */
17724
17725/*!
17726 * @addtogroup USBDCD_Register_Masks USBDCD Register Masks
17727 * @{
17728 */
17729
17730/*! @name CONTROL - Control register */
17731#define USBDCD_CONTROL_IACK_MASK (0x1U)
17732#define USBDCD_CONTROL_IACK_SHIFT (0U)
17733#define USBDCD_CONTROL_IACK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IACK_SHIFT)) & USBDCD_CONTROL_IACK_MASK)
17734#define USBDCD_CONTROL_IACK USBDCD_CONTROL_IACK_MASK
17735#define USBDCD_CONTROL_IF_MASK (0x100U)
17736#define USBDCD_CONTROL_IF_SHIFT (8U)
17737#define USBDCD_CONTROL_IF_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IF_SHIFT)) & USBDCD_CONTROL_IF_MASK)
17738#define USBDCD_CONTROL_IF USBDCD_CONTROL_IF_MASK
17739#define USBDCD_CONTROL_IE_MASK (0x10000U)
17740#define USBDCD_CONTROL_IE_SHIFT (16U)
17741#define USBDCD_CONTROL_IE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_IE_SHIFT)) & USBDCD_CONTROL_IE_MASK)
17742#define USBDCD_CONTROL_IE USBDCD_CONTROL_IE_MASK
17743#define USBDCD_CONTROL_BC12_MASK (0x20000U)
17744#define USBDCD_CONTROL_BC12_SHIFT (17U)
17745#define USBDCD_CONTROL_BC12_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_BC12_SHIFT)) & USBDCD_CONTROL_BC12_MASK)
17746#define USBDCD_CONTROL_BC12 USBDCD_CONTROL_BC12_MASK
17747#define USBDCD_CONTROL_START_MASK (0x1000000U)
17748#define USBDCD_CONTROL_START_SHIFT (24U)
17749#define USBDCD_CONTROL_START_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_START_SHIFT)) & USBDCD_CONTROL_START_MASK)
17750#define USBDCD_CONTROL_START USBDCD_CONTROL_START_MASK
17751#define USBDCD_CONTROL_SR_MASK (0x2000000U)
17752#define USBDCD_CONTROL_SR_SHIFT (25U)
17753#define USBDCD_CONTROL_SR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CONTROL_SR_SHIFT)) & USBDCD_CONTROL_SR_MASK)
17754#define USBDCD_CONTROL_SR USBDCD_CONTROL_SR_MASK
17755
17756/*! @name CLOCK - Clock register */
17757#define USBDCD_CLOCK_CLOCK_UNIT_MASK (0x1U)
17758#define USBDCD_CLOCK_CLOCK_UNIT_SHIFT (0U)
17759#define USBDCD_CLOCK_CLOCK_UNIT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBDCD_CLOCK_CLOCK_UNIT_MASK)
17760#define USBDCD_CLOCK_CLOCK_UNIT USBDCD_CLOCK_CLOCK_UNIT_MASK
17761#define USBDCD_CLOCK_CLOCK_SPEED_MASK (0xFFCU)
17762#define USBDCD_CLOCK_CLOCK_SPEED_SHIFT (2U)
17763#define USBDCD_CLOCK_CLOCK_SPEED_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBDCD_CLOCK_CLOCK_SPEED_MASK)
17764#define USBDCD_CLOCK_CLOCK_SPEED USBDCD_CLOCK_CLOCK_SPEED_MASK
17765
17766/*! @name STATUS - Status register */
17767#define USBDCD_STATUS_SEQ_RES_MASK (0x30000U)
17768#define USBDCD_STATUS_SEQ_RES_SHIFT (16U)
17769#define USBDCD_STATUS_SEQ_RES_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)
17770#define USBDCD_STATUS_SEQ_RES USBDCD_STATUS_SEQ_RES_MASK
17771#define USBDCD_STATUS_SEQ_STAT_MASK (0xC0000U)
17772#define USBDCD_STATUS_SEQ_STAT_SHIFT (18U)
17773#define USBDCD_STATUS_SEQ_STAT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)
17774#define USBDCD_STATUS_SEQ_STAT USBDCD_STATUS_SEQ_STAT_MASK
17775#define USBDCD_STATUS_ERR_MASK (0x100000U)
17776#define USBDCD_STATUS_ERR_SHIFT (20U)
17777#define USBDCD_STATUS_ERR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ERR_SHIFT)) & USBDCD_STATUS_ERR_MASK)
17778#define USBDCD_STATUS_ERR USBDCD_STATUS_ERR_MASK
17779#define USBDCD_STATUS_TO_MASK (0x200000U)
17780#define USBDCD_STATUS_TO_SHIFT (21U)
17781#define USBDCD_STATUS_TO_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_TO_SHIFT)) & USBDCD_STATUS_TO_MASK)
17782#define USBDCD_STATUS_TO USBDCD_STATUS_TO_MASK
17783#define USBDCD_STATUS_ACTIVE_MASK (0x400000U)
17784#define USBDCD_STATUS_ACTIVE_SHIFT (22U)
17785#define USBDCD_STATUS_ACTIVE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_ACTIVE_SHIFT)) & USBDCD_STATUS_ACTIVE_MASK)
17786#define USBDCD_STATUS_ACTIVE USBDCD_STATUS_ACTIVE_MASK
17787
17788/*! @name SIGNAL_OVERRIDE - Signal Override Register */
17789#define USBDCD_SIGNAL_OVERRIDE_PS_MASK (0x3U)
17790#define USBDCD_SIGNAL_OVERRIDE_PS_SHIFT (0U)
17791#define USBDCD_SIGNAL_OVERRIDE_PS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBDCD_SIGNAL_OVERRIDE_PS_MASK)
17792#define USBDCD_SIGNAL_OVERRIDE_PS USBDCD_SIGNAL_OVERRIDE_PS_MASK
17793
17794/*! @name TIMER0 - TIMER0 register */
17795#define USBDCD_TIMER0_TUNITCON_MASK (0xFFFU)
17796#define USBDCD_TIMER0_TUNITCON_SHIFT (0U)
17797#define USBDCD_TIMER0_TUNITCON_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TUNITCON_SHIFT)) & USBDCD_TIMER0_TUNITCON_MASK)
17798#define USBDCD_TIMER0_TUNITCON USBDCD_TIMER0_TUNITCON_MASK
17799#define USBDCD_TIMER0_TSEQ_INIT_MASK (0x3FF0000U)
17800#define USBDCD_TIMER0_TSEQ_INIT_SHIFT (16U)
17801#define USBDCD_TIMER0_TSEQ_INIT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBDCD_TIMER0_TSEQ_INIT_MASK)
17802#define USBDCD_TIMER0_TSEQ_INIT USBDCD_TIMER0_TSEQ_INIT_MASK
17803
17804/*! @name TIMER1 - TIMER1 register */
17805#define USBDCD_TIMER1_TVDPSRC_ON_MASK (0x3FFU)
17806#define USBDCD_TIMER1_TVDPSRC_ON_SHIFT (0U)
17807#define USBDCD_TIMER1_TVDPSRC_ON_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBDCD_TIMER1_TVDPSRC_ON_MASK)
17808#define USBDCD_TIMER1_TVDPSRC_ON USBDCD_TIMER1_TVDPSRC_ON_MASK
17809#define USBDCD_TIMER1_TDCD_DBNC_MASK (0x3FF0000U)
17810#define USBDCD_TIMER1_TDCD_DBNC_SHIFT (16U)
17811#define USBDCD_TIMER1_TDCD_DBNC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBDCD_TIMER1_TDCD_DBNC_MASK)
17812#define USBDCD_TIMER1_TDCD_DBNC USBDCD_TIMER1_TDCD_DBNC_MASK
17813
17814/*! @name TIMER2_BC11 - TIMER2_BC11 register */
17815#define USBDCD_TIMER2_BC11_CHECK_DM_MASK (0xFU)
17816#define USBDCD_TIMER2_BC11_CHECK_DM_SHIFT (0U)
17817#define USBDCD_TIMER2_BC11_CHECK_DM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_CHECK_DM_SHIFT)) & USBDCD_TIMER2_BC11_CHECK_DM_MASK)
17818#define USBDCD_TIMER2_BC11_CHECK_DM USBDCD_TIMER2_BC11_CHECK_DM_MASK
17819#define USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK (0x3FF0000U)
17820#define USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT (16U)
17821#define USBDCD_TIMER2_BC11_TVDPSRC_CON_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT)) & USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK)
17822#define USBDCD_TIMER2_BC11_TVDPSRC_CON USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK
17823
17824/*! @name TIMER2_BC12 - TIMER2_BC12 register */
17825#define USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK (0x3FFU)
17826#define USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT (0U)
17827#define USBDCD_TIMER2_BC12_TVDMSRC_ON_SET(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT)) & USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK)
17828#define USBDCD_TIMER2_BC12_TVDMSRC_ON USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK
17829#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK (0x3FF0000U)
17830#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT (16U)
17831#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SET(x)(((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT)) & USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK)
17832#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK
17833
17834
17835/*!
17836 * @}
17837 */ /* end of group USBDCD_Register_Masks */
17838
17839
17840/* USBDCD - Peripheral instance base addresses */
17841/** Peripheral USBDCD base address */
17842#define USBDCD_BASE (0x40035000u)
17843/** Peripheral USBDCD base pointer */
17844#define USBDCD ((USBDCD_TypeDef *)USBDCD_BASE)
17845/** Array initializer of USBDCD peripheral base addresses */
17846#define USBDCD_BASE_ADDRS { USBDCD_BASE }
17847/** Array initializer of USBDCD peripheral base pointers */
17848#define USBDCD_BASE_PTRS { USBDCD }
17849/** Interrupt vectors for the USBDCD peripheral type */
17850#define USBDCD_IRQS { USBDCD_IRQn }
17851
17852/*!
17853 * @}
17854 */ /* end of group USBDCD_Peripheral_Access_Layer */
17855
17856
17857/* ----------------------------------------------------------------------------
17858 -- USBHS Peripheral Access Layer
17859 ---------------------------------------------------------------------------- */
17860
17861/*!
17862 * @addtogroup USBHS_Peripheral_Access_Layer USBHS Peripheral Access Layer
17863 * @{
17864 */
17865
17866/** USBHS - Register Layout Typedef */
17867typedef struct {
17868 __I uint32_t ID; /**< Identification Register, offset: 0x0 */
17869 __I uint32_t HWGENERAL; /**< General Hardware Parameters Register, offset: 0x4 */
17870 __I uint32_t HWHOST; /**< Host Hardware Parameters Register, offset: 0x8 */
17871 __I uint32_t HWDEVICE; /**< Device Hardware Parameters Register, offset: 0xC */
17872 __I uint32_t HWTXBUF; /**< Transmit Buffer Hardware Parameters Register, offset: 0x10 */
17873 __I uint32_t HWRXBUF; /**< Receive Buffer Hardware Parameters Register, offset: 0x14 */
17874 uint8_t RESERVED_0[104];
17875 __IO uint32_t GPTIMER0LD; /**< General Purpose Timer n Load Register, offset: 0x80 */
17876 __IO uint32_t GPTIMER0CTL; /**< General Purpose Timer n Control Register, offset: 0x84 */
17877 __IO uint32_t GPTIMER1LD; /**< General Purpose Timer n Load Register, offset: 0x88 */
17878 __IO uint32_t GPTIMER1CTL; /**< General Purpose Timer n Control Register, offset: 0x8C */
17879 __IO uint32_t USBx_SBUSCFG; /**< System Bus Interface Configuration Register, offset: 0x90 */
17880 uint8_t RESERVED_1[108];
17881 __I uint32_t HCIVERSION; /**< Host Controller Interface Version and Capability Registers Length Register, offset: 0x100 */
17882 __I uint32_t HCSPARAMS; /**< Host Controller Structural Parameters Register, offset: 0x104 */
17883 __I uint32_t HCCPARAMS; /**< Host Controller Capability Parameters Register, offset: 0x108 */
17884 uint8_t RESERVED_2[22];
17885 __I uint16_t DCIVERSION; /**< Device Controller Interface Version, offset: 0x122 */
17886 __I uint32_t DCCPARAMS; /**< Device Controller Capability Parameters, offset: 0x124 */
17887 uint8_t RESERVED_3[24];
17888 __IO uint32_t USBCMD; /**< USB Command Register, offset: 0x140 */
17889 __IO uint32_t USBSTS; /**< USB Status Register, offset: 0x144 */
17890 __IO uint32_t USBINTR; /**< USB Interrupt Enable Register, offset: 0x148 */
17891 __IO uint32_t FRINDEX; /**< Frame Index Register, offset: 0x14C */
17892 uint8_t RESERVED_4[4];
17893 union { /* offset: 0x154 */
17894 __IO uint32_t DEVICEADDR; /**< Device Address Register, offset: 0x154 */
17895 __IO uint32_t PERIODICLISTBASE; /**< Periodic Frame List Base Address Register, offset: 0x154 */
17896 };
17897 union { /* offset: 0x158 */
17898 __IO uint32_t ASYNCLISTADDR; /**< Current Asynchronous List Address Register, offset: 0x158 */
17899 __IO uint32_t EPLISTADDR; /**< Endpoint List Address Register, offset: 0x158 */
17900 };
17901 __I uint32_t TTCTRL; /**< Host TT Asynchronous Buffer Control, offset: 0x15C */
17902 __IO uint32_t BURSTSIZE; /**< Master Interface Data Burst Size Register, offset: 0x160 */
17903 __IO uint32_t TXFILLTUNING; /**< Transmit FIFO Tuning Control Register, offset: 0x164 */
17904 uint8_t RESERVED_5[16];
17905 __IO uint32_t ENDPTNAK; /**< Endpoint NAK Register, offset: 0x178 */
17906 __IO uint32_t ENDPTNAKEN; /**< Endpoint NAK Enable Register, offset: 0x17C */
17907 uint32_t CONFIGFLAG; /**< Configure Flag Register, offset: 0x180 */
17908 __IO uint32_t PORTSC1; /**< Port Status and Control Registers, offset: 0x184 */
17909 uint8_t RESERVED_6[28];
17910 __IO uint32_t OTGSC; /**< On-the-Go Status and Control Register, offset: 0x1A4 */
17911 __IO uint32_t USBMODE; /**< USB Mode Register, offset: 0x1A8 */
17912 __IO uint32_t EPSETUPSR; /**< Endpoint Setup Status Register, offset: 0x1AC */
17913 __IO uint32_t EPPRIME; /**< Endpoint Initialization Register, offset: 0x1B0 */
17914 __IO uint32_t EPFLUSH; /**< Endpoint Flush Register, offset: 0x1B4 */
17915 __I uint32_t EPSR; /**< Endpoint Status Register, offset: 0x1B8 */
17916 __IO uint32_t EPCOMPLETE; /**< Endpoint Complete Register, offset: 0x1BC */
17917 __IO uint32_t EPCR0; /**< Endpoint Control Register 0, offset: 0x1C0 */
17918 __IO uint32_t EPCR[7]; /**< Endpoint Control Register n, array offset: 0x1C4, array step: 0x4 */
17919 uint8_t RESERVED_7[32];
17920 __IO uint32_t USBGENCTRL; /**< USB General Control Register, offset: 0x200 */
17921} USBHS_TypeDef;
17922
17923/* ----------------------------------------------------------------------------
17924 -- USBHS Register Masks
17925 ---------------------------------------------------------------------------- */
17926
17927/*!
17928 * @addtogroup USBHS_Register_Masks USBHS Register Masks
17929 * @{
17930 */
17931
17932/*! @name ID - Identification Register */
17933#define USBHS_ID_ID_MASK (0x3FU)
17934#define USBHS_ID_ID_SHIFT (0U)
17935#define USBHS_ID_ID_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ID_ID_SHIFT)) & USBHS_ID_ID_MASK)
17936#define USBHS_ID_ID USBHS_ID_ID_MASK
17937#define USBHS_ID_NID_MASK (0x3F00U)
17938#define USBHS_ID_NID_SHIFT (8U)
17939#define USBHS_ID_NID_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ID_NID_SHIFT)) & USBHS_ID_NID_MASK)
17940#define USBHS_ID_NID USBHS_ID_NID_MASK
17941#define USBHS_ID_TAG_MASK (0x1F0000U)
17942#define USBHS_ID_TAG_SHIFT (16U)
17943#define USBHS_ID_TAG_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ID_TAG_SHIFT)) & USBHS_ID_TAG_MASK)
17944#define USBHS_ID_TAG USBHS_ID_TAG_MASK
17945#define USBHS_ID_REVISION_MASK (0x1E00000U)
17946#define USBHS_ID_REVISION_SHIFT (21U)
17947#define USBHS_ID_REVISION_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ID_REVISION_SHIFT)) & USBHS_ID_REVISION_MASK)
17948#define USBHS_ID_REVISION USBHS_ID_REVISION_MASK
17949#define USBHS_ID_VERSION_MASK (0x1E000000U)
17950#define USBHS_ID_VERSION_SHIFT (25U)
17951#define USBHS_ID_VERSION_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ID_VERSION_SHIFT)) & USBHS_ID_VERSION_MASK)
17952#define USBHS_ID_VERSION USBHS_ID_VERSION_MASK
17953#define USBHS_ID_VERSIONID_MASK (0xE0000000U)
17954#define USBHS_ID_VERSIONID_SHIFT (29U)
17955#define USBHS_ID_VERSIONID_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ID_VERSIONID_SHIFT)) & USBHS_ID_VERSIONID_MASK)
17956#define USBHS_ID_VERSIONID USBHS_ID_VERSIONID_MASK
17957
17958/*! @name HWGENERAL - General Hardware Parameters Register */
17959#define USBHS_HWGENERAL_PHYW_MASK (0x30U)
17960#define USBHS_HWGENERAL_PHYW_SHIFT (4U)
17961#define USBHS_HWGENERAL_PHYW_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWGENERAL_PHYW_SHIFT)) & USBHS_HWGENERAL_PHYW_MASK)
17962#define USBHS_HWGENERAL_PHYW USBHS_HWGENERAL_PHYW_MASK
17963#define USBHS_HWGENERAL_PHYM_MASK (0x1C0U)
17964#define USBHS_HWGENERAL_PHYM_SHIFT (6U)
17965#define USBHS_HWGENERAL_PHYM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWGENERAL_PHYM_SHIFT)) & USBHS_HWGENERAL_PHYM_MASK)
17966#define USBHS_HWGENERAL_PHYM USBHS_HWGENERAL_PHYM_MASK
17967#define USBHS_HWGENERAL_SM_MASK (0x600U)
17968#define USBHS_HWGENERAL_SM_SHIFT (9U)
17969#define USBHS_HWGENERAL_SM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWGENERAL_SM_SHIFT)) & USBHS_HWGENERAL_SM_MASK)
17970#define USBHS_HWGENERAL_SM USBHS_HWGENERAL_SM_MASK
17971
17972/*! @name HWHOST - Host Hardware Parameters Register */
17973#define USBHS_HWHOST_HC_MASK (0x1U)
17974#define USBHS_HWHOST_HC_SHIFT (0U)
17975#define USBHS_HWHOST_HC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWHOST_HC_SHIFT)) & USBHS_HWHOST_HC_MASK)
17976#define USBHS_HWHOST_HC USBHS_HWHOST_HC_MASK
17977#define USBHS_HWHOST_NPORT_MASK (0xEU)
17978#define USBHS_HWHOST_NPORT_SHIFT (1U)
17979#define USBHS_HWHOST_NPORT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWHOST_NPORT_SHIFT)) & USBHS_HWHOST_NPORT_MASK)
17980#define USBHS_HWHOST_NPORT USBHS_HWHOST_NPORT_MASK
17981#define USBHS_HWHOST_TTASY_MASK (0xFF0000U)
17982#define USBHS_HWHOST_TTASY_SHIFT (16U)
17983#define USBHS_HWHOST_TTASY_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWHOST_TTASY_SHIFT)) & USBHS_HWHOST_TTASY_MASK)
17984#define USBHS_HWHOST_TTASY USBHS_HWHOST_TTASY_MASK
17985#define USBHS_HWHOST_TTPER_MASK (0xFF000000U)
17986#define USBHS_HWHOST_TTPER_SHIFT (24U)
17987#define USBHS_HWHOST_TTPER_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWHOST_TTPER_SHIFT)) & USBHS_HWHOST_TTPER_MASK)
17988#define USBHS_HWHOST_TTPER USBHS_HWHOST_TTPER_MASK
17989
17990/*! @name HWDEVICE - Device Hardware Parameters Register */
17991#define USBHS_HWDEVICE_DC_MASK (0x1U)
17992#define USBHS_HWDEVICE_DC_SHIFT (0U)
17993#define USBHS_HWDEVICE_DC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWDEVICE_DC_SHIFT)) & USBHS_HWDEVICE_DC_MASK)
17994#define USBHS_HWDEVICE_DC USBHS_HWDEVICE_DC_MASK
17995#define USBHS_HWDEVICE_DEVEP_MASK (0x3EU)
17996#define USBHS_HWDEVICE_DEVEP_SHIFT (1U)
17997#define USBHS_HWDEVICE_DEVEP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWDEVICE_DEVEP_SHIFT)) & USBHS_HWDEVICE_DEVEP_MASK)
17998#define USBHS_HWDEVICE_DEVEP USBHS_HWDEVICE_DEVEP_MASK
17999
18000/*! @name HWTXBUF - Transmit Buffer Hardware Parameters Register */
18001#define USBHS_HWTXBUF_TXBURST_MASK (0xFFU)
18002#define USBHS_HWTXBUF_TXBURST_SHIFT (0U)
18003#define USBHS_HWTXBUF_TXBURST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWTXBUF_TXBURST_SHIFT)) & USBHS_HWTXBUF_TXBURST_MASK)
18004#define USBHS_HWTXBUF_TXBURST USBHS_HWTXBUF_TXBURST_MASK
18005#define USBHS_HWTXBUF_TXADD_MASK (0xFF00U)
18006#define USBHS_HWTXBUF_TXADD_SHIFT (8U)
18007#define USBHS_HWTXBUF_TXADD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWTXBUF_TXADD_SHIFT)) & USBHS_HWTXBUF_TXADD_MASK)
18008#define USBHS_HWTXBUF_TXADD USBHS_HWTXBUF_TXADD_MASK
18009#define USBHS_HWTXBUF_TXCHANADD_MASK (0xFF0000U)
18010#define USBHS_HWTXBUF_TXCHANADD_SHIFT (16U)
18011#define USBHS_HWTXBUF_TXCHANADD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWTXBUF_TXCHANADD_SHIFT)) & USBHS_HWTXBUF_TXCHANADD_MASK)
18012#define USBHS_HWTXBUF_TXCHANADD USBHS_HWTXBUF_TXCHANADD_MASK
18013#define USBHS_HWTXBUF_TXLC_MASK (0x80000000U)
18014#define USBHS_HWTXBUF_TXLC_SHIFT (31U)
18015#define USBHS_HWTXBUF_TXLC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWTXBUF_TXLC_SHIFT)) & USBHS_HWTXBUF_TXLC_MASK)
18016#define USBHS_HWTXBUF_TXLC USBHS_HWTXBUF_TXLC_MASK
18017
18018/*! @name HWRXBUF - Receive Buffer Hardware Parameters Register */
18019#define USBHS_HWRXBUF_RXBURST_MASK (0xFFU)
18020#define USBHS_HWRXBUF_RXBURST_SHIFT (0U)
18021#define USBHS_HWRXBUF_RXBURST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWRXBUF_RXBURST_SHIFT)) & USBHS_HWRXBUF_RXBURST_MASK)
18022#define USBHS_HWRXBUF_RXBURST USBHS_HWRXBUF_RXBURST_MASK
18023#define USBHS_HWRXBUF_RXADD_MASK (0xFF00U)
18024#define USBHS_HWRXBUF_RXADD_SHIFT (8U)
18025#define USBHS_HWRXBUF_RXADD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HWRXBUF_RXADD_SHIFT)) & USBHS_HWRXBUF_RXADD_MASK)
18026#define USBHS_HWRXBUF_RXADD USBHS_HWRXBUF_RXADD_MASK
18027
18028/*! @name GPTIMER0LD - General Purpose Timer n Load Register */
18029#define USBHS_GPTIMER0LD_GPTLD_MASK (0xFFFFFFU)
18030#define USBHS_GPTIMER0LD_GPTLD_SHIFT (0U)
18031#define USBHS_GPTIMER0LD_GPTLD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER0LD_GPTLD_SHIFT)) & USBHS_GPTIMER0LD_GPTLD_MASK)
18032#define USBHS_GPTIMER0LD_GPTLD USBHS_GPTIMER0LD_GPTLD_MASK
18033
18034/*! @name GPTIMER0CTL - General Purpose Timer n Control Register */
18035#define USBHS_GPTIMER0CTL_GPTCNT_MASK (0xFFFFFFU)
18036#define USBHS_GPTIMER0CTL_GPTCNT_SHIFT (0U)
18037#define USBHS_GPTIMER0CTL_GPTCNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER0CTL_GPTCNT_SHIFT)) & USBHS_GPTIMER0CTL_GPTCNT_MASK)
18038#define USBHS_GPTIMER0CTL_GPTCNT USBHS_GPTIMER0CTL_GPTCNT_MASK
18039#define USBHS_GPTIMER0CTL_MODE_MASK (0x1000000U)
18040#define USBHS_GPTIMER0CTL_MODE_SHIFT (24U)
18041#define USBHS_GPTIMER0CTL_MODE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER0CTL_MODE_SHIFT)) & USBHS_GPTIMER0CTL_MODE_MASK)
18042#define USBHS_GPTIMER0CTL_MODE USBHS_GPTIMER0CTL_MODE_MASK
18043#define USBHS_GPTIMER0CTL_RST_MASK (0x40000000U)
18044#define USBHS_GPTIMER0CTL_RST_SHIFT (30U)
18045#define USBHS_GPTIMER0CTL_RST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER0CTL_RST_SHIFT)) & USBHS_GPTIMER0CTL_RST_MASK)
18046#define USBHS_GPTIMER0CTL_RST USBHS_GPTIMER0CTL_RST_MASK
18047#define USBHS_GPTIMER0CTL_RUN_MASK (0x80000000U)
18048#define USBHS_GPTIMER0CTL_RUN_SHIFT (31U)
18049#define USBHS_GPTIMER0CTL_RUN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER0CTL_RUN_SHIFT)) & USBHS_GPTIMER0CTL_RUN_MASK)
18050#define USBHS_GPTIMER0CTL_RUN USBHS_GPTIMER0CTL_RUN_MASK
18051
18052/*! @name GPTIMER1LD - General Purpose Timer n Load Register */
18053#define USBHS_GPTIMER1LD_GPTLD_MASK (0xFFFFFFU)
18054#define USBHS_GPTIMER1LD_GPTLD_SHIFT (0U)
18055#define USBHS_GPTIMER1LD_GPTLD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER1LD_GPTLD_SHIFT)) & USBHS_GPTIMER1LD_GPTLD_MASK)
18056#define USBHS_GPTIMER1LD_GPTLD USBHS_GPTIMER1LD_GPTLD_MASK
18057
18058/*! @name GPTIMER1CTL - General Purpose Timer n Control Register */
18059#define USBHS_GPTIMER1CTL_GPTCNT_MASK (0xFFFFFFU)
18060#define USBHS_GPTIMER1CTL_GPTCNT_SHIFT (0U)
18061#define USBHS_GPTIMER1CTL_GPTCNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER1CTL_GPTCNT_SHIFT)) & USBHS_GPTIMER1CTL_GPTCNT_MASK)
18062#define USBHS_GPTIMER1CTL_GPTCNT USBHS_GPTIMER1CTL_GPTCNT_MASK
18063#define USBHS_GPTIMER1CTL_MODE_MASK (0x1000000U)
18064#define USBHS_GPTIMER1CTL_MODE_SHIFT (24U)
18065#define USBHS_GPTIMER1CTL_MODE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER1CTL_MODE_SHIFT)) & USBHS_GPTIMER1CTL_MODE_MASK)
18066#define USBHS_GPTIMER1CTL_MODE USBHS_GPTIMER1CTL_MODE_MASK
18067#define USBHS_GPTIMER1CTL_RST_MASK (0x40000000U)
18068#define USBHS_GPTIMER1CTL_RST_SHIFT (30U)
18069#define USBHS_GPTIMER1CTL_RST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER1CTL_RST_SHIFT)) & USBHS_GPTIMER1CTL_RST_MASK)
18070#define USBHS_GPTIMER1CTL_RST USBHS_GPTIMER1CTL_RST_MASK
18071#define USBHS_GPTIMER1CTL_RUN_MASK (0x80000000U)
18072#define USBHS_GPTIMER1CTL_RUN_SHIFT (31U)
18073#define USBHS_GPTIMER1CTL_RUN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_GPTIMER1CTL_RUN_SHIFT)) & USBHS_GPTIMER1CTL_RUN_MASK)
18074#define USBHS_GPTIMER1CTL_RUN USBHS_GPTIMER1CTL_RUN_MASK
18075
18076/*! @name USBx_SBUSCFG - System Bus Interface Configuration Register */
18077#define USBHS_USBx_SBUSCFG_BURSTMODE_MASK (0x7U)
18078#define USBHS_USBx_SBUSCFG_BURSTMODE_SHIFT (0U)
18079#define USBHS_USBx_SBUSCFG_BURSTMODE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBx_SBUSCFG_BURSTMODE_SHIFT)) & USBHS_USBx_SBUSCFG_BURSTMODE_MASK)
18080#define USBHS_USBx_SBUSCFG_BURSTMODE USBHS_USBx_SBUSCFG_BURSTMODE_MASK
18081
18082/*! @name HCIVERSION - Host Controller Interface Version and Capability Registers Length Register */
18083#define USBHS_HCIVERSION_CAPLENGTH_MASK (0xFFU)
18084#define USBHS_HCIVERSION_CAPLENGTH_SHIFT (0U)
18085#define USBHS_HCIVERSION_CAPLENGTH_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCIVERSION_CAPLENGTH_SHIFT)) & USBHS_HCIVERSION_CAPLENGTH_MASK)
18086#define USBHS_HCIVERSION_CAPLENGTH USBHS_HCIVERSION_CAPLENGTH_MASK
18087#define USBHS_HCIVERSION_HCIVERSION_MASK (0xFFFF0000U)
18088#define USBHS_HCIVERSION_HCIVERSION_SHIFT (16U)
18089#define USBHS_HCIVERSION_HCIVERSION_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCIVERSION_HCIVERSION_SHIFT)) & USBHS_HCIVERSION_HCIVERSION_MASK)
18090#define USBHS_HCIVERSION_HCIVERSION USBHS_HCIVERSION_HCIVERSION_MASK
18091
18092/*! @name HCSPARAMS - Host Controller Structural Parameters Register */
18093#define USBHS_HCSPARAMS_N_PORTS_MASK (0xFU)
18094#define USBHS_HCSPARAMS_N_PORTS_SHIFT (0U)
18095#define USBHS_HCSPARAMS_N_PORTS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCSPARAMS_N_PORTS_SHIFT)) & USBHS_HCSPARAMS_N_PORTS_MASK)
18096#define USBHS_HCSPARAMS_N_PORTS USBHS_HCSPARAMS_N_PORTS_MASK
18097#define USBHS_HCSPARAMS_PPC_MASK (0x10U)
18098#define USBHS_HCSPARAMS_PPC_SHIFT (4U)
18099#define USBHS_HCSPARAMS_PPC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCSPARAMS_PPC_SHIFT)) & USBHS_HCSPARAMS_PPC_MASK)
18100#define USBHS_HCSPARAMS_PPC USBHS_HCSPARAMS_PPC_MASK
18101#define USBHS_HCSPARAMS_N_PCC_MASK (0xF00U)
18102#define USBHS_HCSPARAMS_N_PCC_SHIFT (8U)
18103#define USBHS_HCSPARAMS_N_PCC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCSPARAMS_N_PCC_SHIFT)) & USBHS_HCSPARAMS_N_PCC_MASK)
18104#define USBHS_HCSPARAMS_N_PCC USBHS_HCSPARAMS_N_PCC_MASK
18105#define USBHS_HCSPARAMS_N_CC_MASK (0xF000U)
18106#define USBHS_HCSPARAMS_N_CC_SHIFT (12U)
18107#define USBHS_HCSPARAMS_N_CC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCSPARAMS_N_CC_SHIFT)) & USBHS_HCSPARAMS_N_CC_MASK)
18108#define USBHS_HCSPARAMS_N_CC USBHS_HCSPARAMS_N_CC_MASK
18109#define USBHS_HCSPARAMS_PI_MASK (0x10000U)
18110#define USBHS_HCSPARAMS_PI_SHIFT (16U)
18111#define USBHS_HCSPARAMS_PI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCSPARAMS_PI_SHIFT)) & USBHS_HCSPARAMS_PI_MASK)
18112#define USBHS_HCSPARAMS_PI USBHS_HCSPARAMS_PI_MASK
18113#define USBHS_HCSPARAMS_N_PTT_MASK (0xF00000U)
18114#define USBHS_HCSPARAMS_N_PTT_SHIFT (20U)
18115#define USBHS_HCSPARAMS_N_PTT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCSPARAMS_N_PTT_SHIFT)) & USBHS_HCSPARAMS_N_PTT_MASK)
18116#define USBHS_HCSPARAMS_N_PTT USBHS_HCSPARAMS_N_PTT_MASK
18117#define USBHS_HCSPARAMS_N_TT_MASK (0xF000000U)
18118#define USBHS_HCSPARAMS_N_TT_SHIFT (24U)
18119#define USBHS_HCSPARAMS_N_TT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCSPARAMS_N_TT_SHIFT)) & USBHS_HCSPARAMS_N_TT_MASK)
18120#define USBHS_HCSPARAMS_N_TT USBHS_HCSPARAMS_N_TT_MASK
18121
18122/*! @name HCCPARAMS - Host Controller Capability Parameters Register */
18123#define USBHS_HCCPARAMS_ADCx_MASK (0x1U)
18124#define USBHS_HCCPARAMS_ADCx_SHIFT (0U)
18125#define USBHS_HCCPARAMS_ADCx_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCCPARAMS_ADCx_SHIFT)) & USBHS_HCCPARAMS_ADCx_MASK)
18126#define USBHS_HCCPARAMS_ADC USBHS_HCCPARAMS_ADCx_MASK
18127#define USBHS_HCCPARAMS_PFL_MASK (0x2U)
18128#define USBHS_HCCPARAMS_PFL_SHIFT (1U)
18129#define USBHS_HCCPARAMS_PFL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCCPARAMS_PFL_SHIFT)) & USBHS_HCCPARAMS_PFL_MASK)
18130#define USBHS_HCCPARAMS_PFL USBHS_HCCPARAMS_PFL_MASK
18131#define USBHS_HCCPARAMS_ASP_MASK (0x4U)
18132#define USBHS_HCCPARAMS_ASP_SHIFT (2U)
18133#define USBHS_HCCPARAMS_ASP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCCPARAMS_ASP_SHIFT)) & USBHS_HCCPARAMS_ASP_MASK)
18134#define USBHS_HCCPARAMS_ASP USBHS_HCCPARAMS_ASP_MASK
18135#define USBHS_HCCPARAMS_IST_MASK (0xF0U)
18136#define USBHS_HCCPARAMS_IST_SHIFT (4U)
18137#define USBHS_HCCPARAMS_IST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCCPARAMS_IST_SHIFT)) & USBHS_HCCPARAMS_IST_MASK)
18138#define USBHS_HCCPARAMS_IST USBHS_HCCPARAMS_IST_MASK
18139#define USBHS_HCCPARAMS_EECP_MASK (0xFF00U)
18140#define USBHS_HCCPARAMS_EECP_SHIFT (8U)
18141#define USBHS_HCCPARAMS_EECP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_HCCPARAMS_EECP_SHIFT)) & USBHS_HCCPARAMS_EECP_MASK)
18142#define USBHS_HCCPARAMS_EECP USBHS_HCCPARAMS_EECP_MASK
18143
18144/*! @name DCIVERSION - Device Controller Interface Version */
18145#define USBHS_DCIVERSION_DCIVERSION_MASK (0xFFFFU)
18146#define USBHS_DCIVERSION_DCIVERSION_SHIFT (0U)
18147#define USBHS_DCIVERSION_DCIVERSION_SET(x) (((uint16_t)(((uint16_t)(x)) << USBHS_DCIVERSION_DCIVERSION_SHIFT)) & USBHS_DCIVERSION_DCIVERSION_MASK)
18148#define USBHS_DCIVERSION_DCIVERSION USBHS_DCIVERSION_DCIVERSION_MASK
18149
18150/*! @name DCCPARAMS - Device Controller Capability Parameters */
18151#define USBHS_DCCPARAMS_DEN_MASK (0x1FU)
18152#define USBHS_DCCPARAMS_DEN_SHIFT (0U)
18153#define USBHS_DCCPARAMS_DEN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_DCCPARAMS_DEN_SHIFT)) & USBHS_DCCPARAMS_DEN_MASK)
18154#define USBHS_DCCPARAMS_DEN USBHS_DCCPARAMS_DEN_MASK
18155#define USBHS_DCCPARAMS_DC_MASK (0x80U)
18156#define USBHS_DCCPARAMS_DC_SHIFT (7U)
18157#define USBHS_DCCPARAMS_DC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_DCCPARAMS_DC_SHIFT)) & USBHS_DCCPARAMS_DC_MASK)
18158#define USBHS_DCCPARAMS_DC USBHS_DCCPARAMS_DC_MASK
18159#define USBHS_DCCPARAMS_HC_MASK (0x100U)
18160#define USBHS_DCCPARAMS_HC_SHIFT (8U)
18161#define USBHS_DCCPARAMS_HC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_DCCPARAMS_HC_SHIFT)) & USBHS_DCCPARAMS_HC_MASK)
18162#define USBHS_DCCPARAMS_HC USBHS_DCCPARAMS_HC_MASK
18163
18164/*! @name USBCMD - USB Command Register */
18165#define USBHS_USBCMD_RS_MASK (0x1U)
18166#define USBHS_USBCMD_RS_SHIFT (0U)
18167#define USBHS_USBCMD_RS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_RS_SHIFT)) & USBHS_USBCMD_RS_MASK)
18168#define USBHS_USBCMD_RS USBHS_USBCMD_RS_MASK
18169#define USBHS_USBCMD_RST_MASK (0x2U)
18170#define USBHS_USBCMD_RST_SHIFT (1U)
18171#define USBHS_USBCMD_RST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_RST_SHIFT)) & USBHS_USBCMD_RST_MASK)
18172#define USBHS_USBCMD_RST USBHS_USBCMD_RST_MASK
18173#define USBHS_USBCMD_FS_MASK (0xCU)
18174#define USBHS_USBCMD_FS_SHIFT (2U)
18175#define USBHS_USBCMD_FS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_FS_SHIFT)) & USBHS_USBCMD_FS_MASK)
18176#define USBHS_USBCMD_FS USBHS_USBCMD_FS_MASK
18177#define USBHS_USBCMD_PSE_MASK (0x10U)
18178#define USBHS_USBCMD_PSE_SHIFT (4U)
18179#define USBHS_USBCMD_PSE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_PSE_SHIFT)) & USBHS_USBCMD_PSE_MASK)
18180#define USBHS_USBCMD_PSE USBHS_USBCMD_PSE_MASK
18181#define USBHS_USBCMD_ASE_MASK (0x20U)
18182#define USBHS_USBCMD_ASE_SHIFT (5U)
18183#define USBHS_USBCMD_ASE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_ASE_SHIFT)) & USBHS_USBCMD_ASE_MASK)
18184#define USBHS_USBCMD_ASE USBHS_USBCMD_ASE_MASK
18185#define USBHS_USBCMD_IAA_MASK (0x40U)
18186#define USBHS_USBCMD_IAA_SHIFT (6U)
18187#define USBHS_USBCMD_IAA_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_IAA_SHIFT)) & USBHS_USBCMD_IAA_MASK)
18188#define USBHS_USBCMD_IAA USBHS_USBCMD_IAA_MASK
18189#define USBHS_USBCMD_ASP_MASK (0x300U)
18190#define USBHS_USBCMD_ASP_SHIFT (8U)
18191#define USBHS_USBCMD_ASP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_ASP_SHIFT)) & USBHS_USBCMD_ASP_MASK)
18192#define USBHS_USBCMD_ASP USBHS_USBCMD_ASP_MASK
18193#define USBHS_USBCMD_ASPE_MASK (0x800U)
18194#define USBHS_USBCMD_ASPE_SHIFT (11U)
18195#define USBHS_USBCMD_ASPE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_ASPE_SHIFT)) & USBHS_USBCMD_ASPE_MASK)
18196#define USBHS_USBCMD_ASPE USBHS_USBCMD_ASPE_MASK
18197#define USBHS_USBCMD_SUTW_MASK (0x2000U)
18198#define USBHS_USBCMD_SUTW_SHIFT (13U)
18199#define USBHS_USBCMD_SUTW_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_SUTW_SHIFT)) & USBHS_USBCMD_SUTW_MASK)
18200#define USBHS_USBCMD_SUTW USBHS_USBCMD_SUTW_MASK
18201#define USBHS_USBCMD_ATDTW_MASK (0x4000U)
18202#define USBHS_USBCMD_ATDTW_SHIFT (14U)
18203#define USBHS_USBCMD_ATDTW_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_ATDTW_SHIFT)) & USBHS_USBCMD_ATDTW_MASK)
18204#define USBHS_USBCMD_ATDTW USBHS_USBCMD_ATDTW_MASK
18205#define USBHS_USBCMD_FS2_MASK (0x8000U)
18206#define USBHS_USBCMD_FS2_SHIFT (15U)
18207#define USBHS_USBCMD_FS2_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_FS2_SHIFT)) & USBHS_USBCMD_FS2_MASK)
18208#define USBHS_USBCMD_FS2 USBHS_USBCMD_FS2_MASK
18209#define USBHS_USBCMD_ITC_MASK (0xFF0000U)
18210#define USBHS_USBCMD_ITC_SHIFT (16U)
18211#define USBHS_USBCMD_ITC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBCMD_ITC_SHIFT)) & USBHS_USBCMD_ITC_MASK)
18212#define USBHS_USBCMD_ITC USBHS_USBCMD_ITC_MASK
18213
18214/*! @name USBSTS - USB Status Register */
18215#define USBHS_USBSTS_UI_MASK (0x1U)
18216#define USBHS_USBSTS_UI_SHIFT (0U)
18217#define USBHS_USBSTS_UI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_UI_SHIFT)) & USBHS_USBSTS_UI_MASK)
18218#define USBHS_USBSTS_UI USBHS_USBSTS_UI_MASK
18219#define USBHS_USBSTS_UEI_MASK (0x2U)
18220#define USBHS_USBSTS_UEI_SHIFT (1U)
18221#define USBHS_USBSTS_UEI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_UEI_SHIFT)) & USBHS_USBSTS_UEI_MASK)
18222#define USBHS_USBSTS_UEI USBHS_USBSTS_UEI_MASK
18223#define USBHS_USBSTS_PCI_MASK (0x4U)
18224#define USBHS_USBSTS_PCI_SHIFT (2U)
18225#define USBHS_USBSTS_PCI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_PCI_SHIFT)) & USBHS_USBSTS_PCI_MASK)
18226#define USBHS_USBSTS_PCI USBHS_USBSTS_PCI_MASK
18227#define USBHS_USBSTS_FRI_MASK (0x8U)
18228#define USBHS_USBSTS_FRI_SHIFT (3U)
18229#define USBHS_USBSTS_FRI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_FRI_SHIFT)) & USBHS_USBSTS_FRI_MASK)
18230#define USBHS_USBSTS_FRI USBHS_USBSTS_FRI_MASK
18231#define USBHS_USBSTS_SEI_MASK (0x10U)
18232#define USBHS_USBSTS_SEI_SHIFT (4U)
18233#define USBHS_USBSTS_SEI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_SEI_SHIFT)) & USBHS_USBSTS_SEI_MASK)
18234#define USBHS_USBSTS_SEI USBHS_USBSTS_SEI_MASK
18235#define USBHS_USBSTS_AAI_MASK (0x20U)
18236#define USBHS_USBSTS_AAI_SHIFT (5U)
18237#define USBHS_USBSTS_AAI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_AAI_SHIFT)) & USBHS_USBSTS_AAI_MASK)
18238#define USBHS_USBSTS_AAI USBHS_USBSTS_AAI_MASK
18239#define USBHS_USBSTS_URI_MASK (0x40U)
18240#define USBHS_USBSTS_URI_SHIFT (6U)
18241#define USBHS_USBSTS_URI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_URI_SHIFT)) & USBHS_USBSTS_URI_MASK)
18242#define USBHS_USBSTS_URI USBHS_USBSTS_URI_MASK
18243#define USBHS_USBSTS_SRI_MASK (0x80U)
18244#define USBHS_USBSTS_SRI_SHIFT (7U)
18245#define USBHS_USBSTS_SRI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_SRI_SHIFT)) & USBHS_USBSTS_SRI_MASK)
18246#define USBHS_USBSTS_SRI USBHS_USBSTS_SRI_MASK
18247#define USBHS_USBSTS_SLI_MASK (0x100U)
18248#define USBHS_USBSTS_SLI_SHIFT (8U)
18249#define USBHS_USBSTS_SLI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_SLI_SHIFT)) & USBHS_USBSTS_SLI_MASK)
18250#define USBHS_USBSTS_SLI USBHS_USBSTS_SLI_MASK
18251#define USBHS_USBSTS_HCH_MASK (0x1000U)
18252#define USBHS_USBSTS_HCH_SHIFT (12U)
18253#define USBHS_USBSTS_HCH_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_HCH_SHIFT)) & USBHS_USBSTS_HCH_MASK)
18254#define USBHS_USBSTS_HCH USBHS_USBSTS_HCH_MASK
18255#define USBHS_USBSTS_RCL_MASK (0x2000U)
18256#define USBHS_USBSTS_RCL_SHIFT (13U)
18257#define USBHS_USBSTS_RCL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_RCL_SHIFT)) & USBHS_USBSTS_RCL_MASK)
18258#define USBHS_USBSTS_RCL USBHS_USBSTS_RCL_MASK
18259#define USBHS_USBSTS_PS_MASK (0x4000U)
18260#define USBHS_USBSTS_PS_SHIFT (14U)
18261#define USBHS_USBSTS_PS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_PS_SHIFT)) & USBHS_USBSTS_PS_MASK)
18262#define USBHS_USBSTS_PS USBHS_USBSTS_PS_MASK
18263#define USBHS_USBSTS_AS_MASK (0x8000U)
18264#define USBHS_USBSTS_AS_SHIFT (15U)
18265#define USBHS_USBSTS_AS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_AS_SHIFT)) & USBHS_USBSTS_AS_MASK)
18266#define USBHS_USBSTS_AS USBHS_USBSTS_AS_MASK
18267#define USBHS_USBSTS_NAKI_MASK (0x10000U)
18268#define USBHS_USBSTS_NAKI_SHIFT (16U)
18269#define USBHS_USBSTS_NAKI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_NAKI_SHIFT)) & USBHS_USBSTS_NAKI_MASK)
18270#define USBHS_USBSTS_NAKI USBHS_USBSTS_NAKI_MASK
18271#define USBHS_USBSTS_UAI_MASK (0x40000U)
18272#define USBHS_USBSTS_UAI_SHIFT (18U)
18273#define USBHS_USBSTS_UAI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_UAI_SHIFT)) & USBHS_USBSTS_UAI_MASK)
18274#define USBHS_USBSTS_UAI USBHS_USBSTS_UAI_MASK
18275#define USBHS_USBSTS_UPI_MASK (0x80000U)
18276#define USBHS_USBSTS_UPI_SHIFT (19U)
18277#define USBHS_USBSTS_UPI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_UPI_SHIFT)) & USBHS_USBSTS_UPI_MASK)
18278#define USBHS_USBSTS_UPI USBHS_USBSTS_UPI_MASK
18279#define USBHS_USBSTS_TI0_MASK (0x1000000U)
18280#define USBHS_USBSTS_TI0_SHIFT (24U)
18281#define USBHS_USBSTS_TI0_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_TI0_SHIFT)) & USBHS_USBSTS_TI0_MASK)
18282#define USBHS_USBSTS_TI0 USBHS_USBSTS_TI0_MASK
18283#define USBHS_USBSTS_TI1_MASK (0x2000000U)
18284#define USBHS_USBSTS_TI1_SHIFT (25U)
18285#define USBHS_USBSTS_TI1_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBSTS_TI1_SHIFT)) & USBHS_USBSTS_TI1_MASK)
18286#define USBHS_USBSTS_TI1 USBHS_USBSTS_TI1_MASK
18287
18288/*! @name USBINTR - USB Interrupt Enable Register */
18289#define USBHS_USBINTR_UE_MASK (0x1U)
18290#define USBHS_USBINTR_UE_SHIFT (0U)
18291#define USBHS_USBINTR_UE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_UE_SHIFT)) & USBHS_USBINTR_UE_MASK)
18292#define USBHS_USBINTR_UE USBHS_USBINTR_UE_MASK
18293#define USBHS_USBINTR_UEE_MASK (0x2U)
18294#define USBHS_USBINTR_UEE_SHIFT (1U)
18295#define USBHS_USBINTR_UEE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_UEE_SHIFT)) & USBHS_USBINTR_UEE_MASK)
18296#define USBHS_USBINTR_UEE USBHS_USBINTR_UEE_MASK
18297#define USBHS_USBINTR_PCE_MASK (0x4U)
18298#define USBHS_USBINTR_PCE_SHIFT (2U)
18299#define USBHS_USBINTR_PCE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_PCE_SHIFT)) & USBHS_USBINTR_PCE_MASK)
18300#define USBHS_USBINTR_PCE USBHS_USBINTR_PCE_MASK
18301#define USBHS_USBINTR_FRE_MASK (0x8U)
18302#define USBHS_USBINTR_FRE_SHIFT (3U)
18303#define USBHS_USBINTR_FRE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_FRE_SHIFT)) & USBHS_USBINTR_FRE_MASK)
18304#define USBHS_USBINTR_FRE USBHS_USBINTR_FRE_MASK
18305#define USBHS_USBINTR_SEE_MASK (0x10U)
18306#define USBHS_USBINTR_SEE_SHIFT (4U)
18307#define USBHS_USBINTR_SEE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_SEE_SHIFT)) & USBHS_USBINTR_SEE_MASK)
18308#define USBHS_USBINTR_SEE USBHS_USBINTR_SEE_MASK
18309#define USBHS_USBINTR_AAE_MASK (0x20U)
18310#define USBHS_USBINTR_AAE_SHIFT (5U)
18311#define USBHS_USBINTR_AAE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_AAE_SHIFT)) & USBHS_USBINTR_AAE_MASK)
18312#define USBHS_USBINTR_AAE USBHS_USBINTR_AAE_MASK
18313#define USBHS_USBINTR_URE_MASK (0x40U)
18314#define USBHS_USBINTR_URE_SHIFT (6U)
18315#define USBHS_USBINTR_URE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_URE_SHIFT)) & USBHS_USBINTR_URE_MASK)
18316#define USBHS_USBINTR_URE USBHS_USBINTR_URE_MASK
18317#define USBHS_USBINTR_SRE_MASK (0x80U)
18318#define USBHS_USBINTR_SRE_SHIFT (7U)
18319#define USBHS_USBINTR_SRE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_SRE_SHIFT)) & USBHS_USBINTR_SRE_MASK)
18320#define USBHS_USBINTR_SRE USBHS_USBINTR_SRE_MASK
18321#define USBHS_USBINTR_SLE_MASK (0x100U)
18322#define USBHS_USBINTR_SLE_SHIFT (8U)
18323#define USBHS_USBINTR_SLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_SLE_SHIFT)) & USBHS_USBINTR_SLE_MASK)
18324#define USBHS_USBINTR_SLE USBHS_USBINTR_SLE_MASK
18325#define USBHS_USBINTR_NAKE_MASK (0x10000U)
18326#define USBHS_USBINTR_NAKE_SHIFT (16U)
18327#define USBHS_USBINTR_NAKE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_NAKE_SHIFT)) & USBHS_USBINTR_NAKE_MASK)
18328#define USBHS_USBINTR_NAKE USBHS_USBINTR_NAKE_MASK
18329#define USBHS_USBINTR_UAIE_MASK (0x40000U)
18330#define USBHS_USBINTR_UAIE_SHIFT (18U)
18331#define USBHS_USBINTR_UAIE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_UAIE_SHIFT)) & USBHS_USBINTR_UAIE_MASK)
18332#define USBHS_USBINTR_UAIE USBHS_USBINTR_UAIE_MASK
18333#define USBHS_USBINTR_UPIE_MASK (0x80000U)
18334#define USBHS_USBINTR_UPIE_SHIFT (19U)
18335#define USBHS_USBINTR_UPIE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_UPIE_SHIFT)) & USBHS_USBINTR_UPIE_MASK)
18336#define USBHS_USBINTR_UPIE USBHS_USBINTR_UPIE_MASK
18337#define USBHS_USBINTR_TIE0_MASK (0x1000000U)
18338#define USBHS_USBINTR_TIE0_SHIFT (24U)
18339#define USBHS_USBINTR_TIE0_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_TIE0_SHIFT)) & USBHS_USBINTR_TIE0_MASK)
18340#define USBHS_USBINTR_TIE0 USBHS_USBINTR_TIE0_MASK
18341#define USBHS_USBINTR_TIE1_MASK (0x2000000U)
18342#define USBHS_USBINTR_TIE1_SHIFT (25U)
18343#define USBHS_USBINTR_TIE1_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBINTR_TIE1_SHIFT)) & USBHS_USBINTR_TIE1_MASK)
18344#define USBHS_USBINTR_TIE1 USBHS_USBINTR_TIE1_MASK
18345
18346/*! @name FRINDEX - Frame Index Register */
18347#define USBHS_FRINDEX_FRINDEX_MASK (0x3FFFU)
18348#define USBHS_FRINDEX_FRINDEX_SHIFT (0U)
18349#define USBHS_FRINDEX_FRINDEX_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_FRINDEX_FRINDEX_SHIFT)) & USBHS_FRINDEX_FRINDEX_MASK)
18350#define USBHS_FRINDEX_FRINDEX USBHS_FRINDEX_FRINDEX_MASK
18351#define USBHS_FRINDEX_Reerved_MASK (0xFFFFC000U)
18352#define USBHS_FRINDEX_Reerved_SHIFT (14U)
18353#define USBHS_FRINDEX_Reerved_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_FRINDEX_Reerved_SHIFT)) & USBHS_FRINDEX_Reerved_MASK)
18354#define USBHS_FRINDEX_Reerved USBHS_FRINDEX_Reerved_MASK
18355
18356/*! @name DEVICEADDR - Device Address Register */
18357#define USBHS_DEVICEADDR_USBADRA_MASK (0x1000000U)
18358#define USBHS_DEVICEADDR_USBADRA_SHIFT (24U)
18359#define USBHS_DEVICEADDR_USBADRA_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_DEVICEADDR_USBADRA_SHIFT)) & USBHS_DEVICEADDR_USBADRA_MASK)
18360#define USBHS_DEVICEADDR_USBADRA USBHS_DEVICEADDR_USBADRA_MASK
18361#define USBHS_DEVICEADDR_USBADR_MASK (0xFE000000U)
18362#define USBHS_DEVICEADDR_USBADR_SHIFT (25U)
18363#define USBHS_DEVICEADDR_USBADR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_DEVICEADDR_USBADR_SHIFT)) & USBHS_DEVICEADDR_USBADR_MASK)
18364#define USBHS_DEVICEADDR_USBADR USBHS_DEVICEADDR_USBADR_MASK
18365
18366/*! @name PERIODICLISTBASE - Periodic Frame List Base Address Register */
18367#define USBHS_PERIODICLISTBASE_PERBASE_MASK (0xFFFFF000U)
18368#define USBHS_PERIODICLISTBASE_PERBASE_SHIFT (12U)
18369#define USBHS_PERIODICLISTBASE_PERBASE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PERIODICLISTBASE_PERBASE_SHIFT)) & USBHS_PERIODICLISTBASE_PERBASE_MASK)
18370#define USBHS_PERIODICLISTBASE_PERBASE USBHS_PERIODICLISTBASE_PERBASE_MASK
18371
18372/*! @name ASYNCLISTADDR - Current Asynchronous List Address Register */
18373#define USBHS_ASYNCLISTADDR_ASYBASE_MASK (0xFFFFFFE0U)
18374#define USBHS_ASYNCLISTADDR_ASYBASE_SHIFT (5U)
18375#define USBHS_ASYNCLISTADDR_ASYBASE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ASYNCLISTADDR_ASYBASE_SHIFT)) & USBHS_ASYNCLISTADDR_ASYBASE_MASK)
18376#define USBHS_ASYNCLISTADDR_ASYBASE USBHS_ASYNCLISTADDR_ASYBASE_MASK
18377
18378/*! @name EPLISTADDR - Endpoint List Address Register */
18379#define USBHS_EPLISTADDR_EPBASE_MASK (0xFFFFF800U)
18380#define USBHS_EPLISTADDR_EPBASE_SHIFT (11U)
18381#define USBHS_EPLISTADDR_EPBASE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPLISTADDR_EPBASE_SHIFT)) & USBHS_EPLISTADDR_EPBASE_MASK)
18382#define USBHS_EPLISTADDR_EPBASE USBHS_EPLISTADDR_EPBASE_MASK
18383
18384/*! @name TTCTRL - Host TT Asynchronous Buffer Control */
18385#define USBHS_TTCTRL_TTHA_MASK (0x7F000000U)
18386#define USBHS_TTCTRL_TTHA_SHIFT (24U)
18387#define USBHS_TTCTRL_TTHA_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_TTCTRL_TTHA_SHIFT)) & USBHS_TTCTRL_TTHA_MASK)
18388#define USBHS_TTCTRL_TTHA USBHS_TTCTRL_TTHA_MASK
18389#define USBHS_TTCTRL_Reerved_MASK (0x80000000U)
18390#define USBHS_TTCTRL_Reerved_SHIFT (31U)
18391#define USBHS_TTCTRL_Reerved_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_TTCTRL_Reerved_SHIFT)) & USBHS_TTCTRL_Reerved_MASK)
18392#define USBHS_TTCTRL_Reerved USBHS_TTCTRL_Reerved_MASK
18393
18394/*! @name BURSTSIZE - Master Interface Data Burst Size Register */
18395#define USBHS_BURSTSIZE_RXPBURST_MASK (0xFFU)
18396#define USBHS_BURSTSIZE_RXPBURST_SHIFT (0U)
18397#define USBHS_BURSTSIZE_RXPBURST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_BURSTSIZE_RXPBURST_SHIFT)) & USBHS_BURSTSIZE_RXPBURST_MASK)
18398#define USBHS_BURSTSIZE_RXPBURST USBHS_BURSTSIZE_RXPBURST_MASK
18399#define USBHS_BURSTSIZE_TXPBURST_MASK (0xFF00U)
18400#define USBHS_BURSTSIZE_TXPBURST_SHIFT (8U)
18401#define USBHS_BURSTSIZE_TXPBURST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_BURSTSIZE_TXPBURST_SHIFT)) & USBHS_BURSTSIZE_TXPBURST_MASK)
18402#define USBHS_BURSTSIZE_TXPBURST USBHS_BURSTSIZE_TXPBURST_MASK
18403
18404/*! @name TXFILLTUNING - Transmit FIFO Tuning Control Register */
18405#define USBHS_TXFILLTUNING_TXSCHOH_MASK (0x7FU)
18406#define USBHS_TXFILLTUNING_TXSCHOH_SHIFT (0U)
18407#define USBHS_TXFILLTUNING_TXSCHOH_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_TXFILLTUNING_TXSCHOH_SHIFT)) & USBHS_TXFILLTUNING_TXSCHOH_MASK)
18408#define USBHS_TXFILLTUNING_TXSCHOH USBHS_TXFILLTUNING_TXSCHOH_MASK
18409#define USBHS_TXFILLTUNING_TXSCHHEALTH_MASK (0x1F00U)
18410#define USBHS_TXFILLTUNING_TXSCHHEALTH_SHIFT (8U)
18411#define USBHS_TXFILLTUNING_TXSCHHEALTH_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_TXFILLTUNING_TXSCHHEALTH_SHIFT)) & USBHS_TXFILLTUNING_TXSCHHEALTH_MASK)
18412#define USBHS_TXFILLTUNING_TXSCHHEALTH USBHS_TXFILLTUNING_TXSCHHEALTH_MASK
18413#define USBHS_TXFILLTUNING_TXFIFOTHRES_MASK (0x3F0000U)
18414#define USBHS_TXFILLTUNING_TXFIFOTHRES_SHIFT (16U)
18415#define USBHS_TXFILLTUNING_TXFIFOTHRES_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_TXFILLTUNING_TXFIFOTHRES_SHIFT)) & USBHS_TXFILLTUNING_TXFIFOTHRES_MASK)
18416#define USBHS_TXFILLTUNING_TXFIFOTHRES USBHS_TXFILLTUNING_TXFIFOTHRES_MASK
18417
18418/*! @name ENDPTNAK - Endpoint NAK Register */
18419#define USBHS_ENDPTNAK_EPRN_MASK (0xFU)
18420#define USBHS_ENDPTNAK_EPRN_SHIFT (0U)
18421#define USBHS_ENDPTNAK_EPRN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ENDPTNAK_EPRN_SHIFT)) & USBHS_ENDPTNAK_EPRN_MASK)
18422#define USBHS_ENDPTNAK_EPRN USBHS_ENDPTNAK_EPRN_MASK
18423#define USBHS_ENDPTNAK_EPTN_MASK (0xF0000U)
18424#define USBHS_ENDPTNAK_EPTN_SHIFT (16U)
18425#define USBHS_ENDPTNAK_EPTN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ENDPTNAK_EPTN_SHIFT)) & USBHS_ENDPTNAK_EPTN_MASK)
18426#define USBHS_ENDPTNAK_EPTN USBHS_ENDPTNAK_EPTN_MASK
18427
18428/*! @name ENDPTNAKEN - Endpoint NAK Enable Register */
18429#define USBHS_ENDPTNAKEN_EPRNE_MASK (0xFU)
18430#define USBHS_ENDPTNAKEN_EPRNE_SHIFT (0U)
18431#define USBHS_ENDPTNAKEN_EPRNE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ENDPTNAKEN_EPRNE_SHIFT)) & USBHS_ENDPTNAKEN_EPRNE_MASK)
18432#define USBHS_ENDPTNAKEN_EPRNE USBHS_ENDPTNAKEN_EPRNE_MASK
18433#define USBHS_ENDPTNAKEN_EPTNE_MASK (0xF0000U)
18434#define USBHS_ENDPTNAKEN_EPTNE_SHIFT (16U)
18435#define USBHS_ENDPTNAKEN_EPTNE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_ENDPTNAKEN_EPTNE_SHIFT)) & USBHS_ENDPTNAKEN_EPTNE_MASK)
18436#define USBHS_ENDPTNAKEN_EPTNE USBHS_ENDPTNAKEN_EPTNE_MASK
18437
18438/*! @name PORTSC1 - Port Status and Control Registers */
18439#define USBHS_PORTSC1_CCS_MASK (0x1U)
18440#define USBHS_PORTSC1_CCS_SHIFT (0U)
18441#define USBHS_PORTSC1_CCS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_CCS_SHIFT)) & USBHS_PORTSC1_CCS_MASK)
18442#define USBHS_PORTSC1_CCS USBHS_PORTSC1_CCS_MASK
18443#define USBHS_PORTSC1_CSC_MASK (0x2U)
18444#define USBHS_PORTSC1_CSC_SHIFT (1U)
18445#define USBHS_PORTSC1_CSC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_CSC_SHIFT)) & USBHS_PORTSC1_CSC_MASK)
18446#define USBHS_PORTSC1_CSC USBHS_PORTSC1_CSC_MASK
18447#define USBHS_PORTSC1_PE_MASK (0x4U)
18448#define USBHS_PORTSC1_PE_SHIFT (2U)
18449#define USBHS_PORTSC1_PE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PE_SHIFT)) & USBHS_PORTSC1_PE_MASK)
18450#define USBHS_PORTSC1_PE USBHS_PORTSC1_PE_MASK
18451#define USBHS_PORTSC1_PEC_MASK (0x8U)
18452#define USBHS_PORTSC1_PEC_SHIFT (3U)
18453#define USBHS_PORTSC1_PEC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PEC_SHIFT)) & USBHS_PORTSC1_PEC_MASK)
18454#define USBHS_PORTSC1_PEC USBHS_PORTSC1_PEC_MASK
18455#define USBHS_PORTSC1_OCA_MASK (0x10U)
18456#define USBHS_PORTSC1_OCA_SHIFT (4U)
18457#define USBHS_PORTSC1_OCA_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_OCA_SHIFT)) & USBHS_PORTSC1_OCA_MASK)
18458#define USBHS_PORTSC1_OCA USBHS_PORTSC1_OCA_MASK
18459#define USBHS_PORTSC1_OCC_MASK (0x20U)
18460#define USBHS_PORTSC1_OCC_SHIFT (5U)
18461#define USBHS_PORTSC1_OCC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_OCC_SHIFT)) & USBHS_PORTSC1_OCC_MASK)
18462#define USBHS_PORTSC1_OCC USBHS_PORTSC1_OCC_MASK
18463#define USBHS_PORTSC1_FPR_MASK (0x40U)
18464#define USBHS_PORTSC1_FPR_SHIFT (6U)
18465#define USBHS_PORTSC1_FPR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_FPR_SHIFT)) & USBHS_PORTSC1_FPR_MASK)
18466#define USBHS_PORTSC1_FPR USBHS_PORTSC1_FPR_MASK
18467#define USBHS_PORTSC1_SUSP_MASK (0x80U)
18468#define USBHS_PORTSC1_SUSP_SHIFT (7U)
18469#define USBHS_PORTSC1_SUSP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_SUSP_SHIFT)) & USBHS_PORTSC1_SUSP_MASK)
18470#define USBHS_PORTSC1_SUSP USBHS_PORTSC1_SUSP_MASK
18471#define USBHS_PORTSC1_PR_MASK (0x100U)
18472#define USBHS_PORTSC1_PR_SHIFT (8U)
18473#define USBHS_PORTSC1_PR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PR_SHIFT)) & USBHS_PORTSC1_PR_MASK)
18474#define USBHS_PORTSC1_PR USBHS_PORTSC1_PR_MASK
18475#define USBHS_PORTSC1_HSP_MASK (0x200U)
18476#define USBHS_PORTSC1_HSP_SHIFT (9U)
18477#define USBHS_PORTSC1_HSP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_HSP_SHIFT)) & USBHS_PORTSC1_HSP_MASK)
18478#define USBHS_PORTSC1_HSP USBHS_PORTSC1_HSP_MASK
18479#define USBHS_PORTSC1_LS_MASK (0xC00U)
18480#define USBHS_PORTSC1_LS_SHIFT (10U)
18481#define USBHS_PORTSC1_LS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_LS_SHIFT)) & USBHS_PORTSC1_LS_MASK)
18482#define USBHS_PORTSC1_LS USBHS_PORTSC1_LS_MASK
18483#define USBHS_PORTSC1_PP_MASK (0x1000U)
18484#define USBHS_PORTSC1_PP_SHIFT (12U)
18485#define USBHS_PORTSC1_PP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PP_SHIFT)) & USBHS_PORTSC1_PP_MASK)
18486#define USBHS_PORTSC1_PP USBHS_PORTSC1_PP_MASK
18487#define USBHS_PORTSC1_PO_MASK (0x2000U)
18488#define USBHS_PORTSC1_PO_SHIFT (13U)
18489#define USBHS_PORTSC1_PO_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PO_SHIFT)) & USBHS_PORTSC1_PO_MASK)
18490#define USBHS_PORTSC1_PO USBHS_PORTSC1_PO_MASK
18491#define USBHS_PORTSC1_PIC_MASK (0xC000U)
18492#define USBHS_PORTSC1_PIC_SHIFT (14U)
18493#define USBHS_PORTSC1_PIC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PIC_SHIFT)) & USBHS_PORTSC1_PIC_MASK)
18494#define USBHS_PORTSC1_PIC USBHS_PORTSC1_PIC_MASK
18495#define USBHS_PORTSC1_PTC_MASK (0xF0000U)
18496#define USBHS_PORTSC1_PTC_SHIFT (16U)
18497#define USBHS_PORTSC1_PTC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PTC_SHIFT)) & USBHS_PORTSC1_PTC_MASK)
18498#define USBHS_PORTSC1_PTC USBHS_PORTSC1_PTC_MASK
18499#define USBHS_PORTSC1_WKCN_MASK (0x100000U)
18500#define USBHS_PORTSC1_WKCN_SHIFT (20U)
18501#define USBHS_PORTSC1_WKCN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_WKCN_SHIFT)) & USBHS_PORTSC1_WKCN_MASK)
18502#define USBHS_PORTSC1_WKCN USBHS_PORTSC1_WKCN_MASK
18503#define USBHS_PORTSC1_WKDS_MASK (0x200000U)
18504#define USBHS_PORTSC1_WKDS_SHIFT (21U)
18505#define USBHS_PORTSC1_WKDS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_WKDS_SHIFT)) & USBHS_PORTSC1_WKDS_MASK)
18506#define USBHS_PORTSC1_WKDS USBHS_PORTSC1_WKDS_MASK
18507#define USBHS_PORTSC1_WKOC_MASK (0x400000U)
18508#define USBHS_PORTSC1_WKOC_SHIFT (22U)
18509#define USBHS_PORTSC1_WKOC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_WKOC_SHIFT)) & USBHS_PORTSC1_WKOC_MASK)
18510#define USBHS_PORTSC1_WKOC USBHS_PORTSC1_WKOC_MASK
18511#define USBHS_PORTSC1_PHCD_MASK (0x800000U)
18512#define USBHS_PORTSC1_PHCD_SHIFT (23U)
18513#define USBHS_PORTSC1_PHCD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PHCD_SHIFT)) & USBHS_PORTSC1_PHCD_MASK)
18514#define USBHS_PORTSC1_PHCD USBHS_PORTSC1_PHCD_MASK
18515#define USBHS_PORTSC1_PFSC_MASK (0x1000000U)
18516#define USBHS_PORTSC1_PFSC_SHIFT (24U)
18517#define USBHS_PORTSC1_PFSC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PFSC_SHIFT)) & USBHS_PORTSC1_PFSC_MASK)
18518#define USBHS_PORTSC1_PFSC USBHS_PORTSC1_PFSC_MASK
18519#define USBHS_PORTSC1_PTS2_MASK (0x2000000U)
18520#define USBHS_PORTSC1_PTS2_SHIFT (25U)
18521#define USBHS_PORTSC1_PTS2_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PTS2_SHIFT)) & USBHS_PORTSC1_PTS2_MASK)
18522#define USBHS_PORTSC1_PTS2 USBHS_PORTSC1_PTS2_MASK
18523#define USBHS_PORTSC1_PSPD_MASK (0xC000000U)
18524#define USBHS_PORTSC1_PSPD_SHIFT (26U)
18525#define USBHS_PORTSC1_PSPD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PSPD_SHIFT)) & USBHS_PORTSC1_PSPD_MASK)
18526#define USBHS_PORTSC1_PSPD USBHS_PORTSC1_PSPD_MASK
18527#define USBHS_PORTSC1_PTS_MASK (0xC0000000U)
18528#define USBHS_PORTSC1_PTS_SHIFT (30U)
18529#define USBHS_PORTSC1_PTS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_PORTSC1_PTS_SHIFT)) & USBHS_PORTSC1_PTS_MASK)
18530#define USBHS_PORTSC1_PTS USBHS_PORTSC1_PTS_MASK
18531
18532/*! @name OTGSC - On-the-Go Status and Control Register */
18533#define USBHS_OTGSC_VD_MASK (0x1U)
18534#define USBHS_OTGSC_VD_SHIFT (0U)
18535#define USBHS_OTGSC_VD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_VD_SHIFT)) & USBHS_OTGSC_VD_MASK)
18536#define USBHS_OTGSC_VD USBHS_OTGSC_VD_MASK
18537#define USBHS_OTGSC_VC_MASK (0x2U)
18538#define USBHS_OTGSC_VC_SHIFT (1U)
18539#define USBHS_OTGSC_VC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_VC_SHIFT)) & USBHS_OTGSC_VC_MASK)
18540#define USBHS_OTGSC_VC USBHS_OTGSC_VC_MASK
18541#define USBHS_OTGSC_HAAR_MASK (0x4U)
18542#define USBHS_OTGSC_HAAR_SHIFT (2U)
18543#define USBHS_OTGSC_HAAR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_HAAR_SHIFT)) & USBHS_OTGSC_HAAR_MASK)
18544#define USBHS_OTGSC_HAAR USBHS_OTGSC_HAAR_MASK
18545#define USBHS_OTGSC_OT_MASK (0x8U)
18546#define USBHS_OTGSC_OT_SHIFT (3U)
18547#define USBHS_OTGSC_OT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_OT_SHIFT)) & USBHS_OTGSC_OT_MASK)
18548#define USBHS_OTGSC_OT USBHS_OTGSC_OT_MASK
18549#define USBHS_OTGSC_DP_MASK (0x10U)
18550#define USBHS_OTGSC_DP_SHIFT (4U)
18551#define USBHS_OTGSC_DP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_DP_SHIFT)) & USBHS_OTGSC_DP_MASK)
18552#define USBHS_OTGSC_DP USBHS_OTGSC_DP_MASK
18553#define USBHS_OTGSC_IDPU_MASK (0x20U)
18554#define USBHS_OTGSC_IDPU_SHIFT (5U)
18555#define USBHS_OTGSC_IDPU_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_IDPU_SHIFT)) & USBHS_OTGSC_IDPU_MASK)
18556#define USBHS_OTGSC_IDPU USBHS_OTGSC_IDPU_MASK
18557#define USBHS_OTGSC_HABA_MASK (0x80U)
18558#define USBHS_OTGSC_HABA_SHIFT (7U)
18559#define USBHS_OTGSC_HABA_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_HABA_SHIFT)) & USBHS_OTGSC_HABA_MASK)
18560#define USBHS_OTGSC_HABA USBHS_OTGSC_HABA_MASK
18561#define USBHS_OTGSC_ID_MASK (0x100U)
18562#define USBHS_OTGSC_ID_SHIFT (8U)
18563#define USBHS_OTGSC_ID_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_ID_SHIFT)) & USBHS_OTGSC_ID_MASK)
18564#define USBHS_OTGSC_ID USBHS_OTGSC_ID_MASK
18565#define USBHS_OTGSC_AVV_MASK (0x200U)
18566#define USBHS_OTGSC_AVV_SHIFT (9U)
18567#define USBHS_OTGSC_AVV_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_AVV_SHIFT)) & USBHS_OTGSC_AVV_MASK)
18568#define USBHS_OTGSC_AVV USBHS_OTGSC_AVV_MASK
18569#define USBHS_OTGSC_ASV_MASK (0x400U)
18570#define USBHS_OTGSC_ASV_SHIFT (10U)
18571#define USBHS_OTGSC_ASV_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_ASV_SHIFT)) & USBHS_OTGSC_ASV_MASK)
18572#define USBHS_OTGSC_ASV USBHS_OTGSC_ASV_MASK
18573#define USBHS_OTGSC_BSV_MASK (0x800U)
18574#define USBHS_OTGSC_BSV_SHIFT (11U)
18575#define USBHS_OTGSC_BSV_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_BSV_SHIFT)) & USBHS_OTGSC_BSV_MASK)
18576#define USBHS_OTGSC_BSV USBHS_OTGSC_BSV_MASK
18577#define USBHS_OTGSC_BSE_MASK (0x1000U)
18578#define USBHS_OTGSC_BSE_SHIFT (12U)
18579#define USBHS_OTGSC_BSE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_BSE_SHIFT)) & USBHS_OTGSC_BSE_MASK)
18580#define USBHS_OTGSC_BSE USBHS_OTGSC_BSE_MASK
18581#define USBHS_OTGSC_MST_MASK (0x2000U)
18582#define USBHS_OTGSC_MST_SHIFT (13U)
18583#define USBHS_OTGSC_MST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_MST_SHIFT)) & USBHS_OTGSC_MST_MASK)
18584#define USBHS_OTGSC_MST USBHS_OTGSC_MST_MASK
18585#define USBHS_OTGSC_DPS_MASK (0x4000U)
18586#define USBHS_OTGSC_DPS_SHIFT (14U)
18587#define USBHS_OTGSC_DPS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_DPS_SHIFT)) & USBHS_OTGSC_DPS_MASK)
18588#define USBHS_OTGSC_DPS USBHS_OTGSC_DPS_MASK
18589#define USBHS_OTGSC_IDIS_MASK (0x10000U)
18590#define USBHS_OTGSC_IDIS_SHIFT (16U)
18591#define USBHS_OTGSC_IDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_IDIS_SHIFT)) & USBHS_OTGSC_IDIS_MASK)
18592#define USBHS_OTGSC_IDIS USBHS_OTGSC_IDIS_MASK
18593#define USBHS_OTGSC_AVVIS_MASK (0x20000U)
18594#define USBHS_OTGSC_AVVIS_SHIFT (17U)
18595#define USBHS_OTGSC_AVVIS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_AVVIS_SHIFT)) & USBHS_OTGSC_AVVIS_MASK)
18596#define USBHS_OTGSC_AVVIS USBHS_OTGSC_AVVIS_MASK
18597#define USBHS_OTGSC_ASVIS_MASK (0x40000U)
18598#define USBHS_OTGSC_ASVIS_SHIFT (18U)
18599#define USBHS_OTGSC_ASVIS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_ASVIS_SHIFT)) & USBHS_OTGSC_ASVIS_MASK)
18600#define USBHS_OTGSC_ASVIS USBHS_OTGSC_ASVIS_MASK
18601#define USBHS_OTGSC_BSVIS_MASK (0x80000U)
18602#define USBHS_OTGSC_BSVIS_SHIFT (19U)
18603#define USBHS_OTGSC_BSVIS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_BSVIS_SHIFT)) & USBHS_OTGSC_BSVIS_MASK)
18604#define USBHS_OTGSC_BSVIS USBHS_OTGSC_BSVIS_MASK
18605#define USBHS_OTGSC_BSEIS_MASK (0x100000U)
18606#define USBHS_OTGSC_BSEIS_SHIFT (20U)
18607#define USBHS_OTGSC_BSEIS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_BSEIS_SHIFT)) & USBHS_OTGSC_BSEIS_MASK)
18608#define USBHS_OTGSC_BSEIS USBHS_OTGSC_BSEIS_MASK
18609#define USBHS_OTGSC_MSS_MASK (0x200000U)
18610#define USBHS_OTGSC_MSS_SHIFT (21U)
18611#define USBHS_OTGSC_MSS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_MSS_SHIFT)) & USBHS_OTGSC_MSS_MASK)
18612#define USBHS_OTGSC_MSS USBHS_OTGSC_MSS_MASK
18613#define USBHS_OTGSC_DPIS_MASK (0x400000U)
18614#define USBHS_OTGSC_DPIS_SHIFT (22U)
18615#define USBHS_OTGSC_DPIS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_DPIS_SHIFT)) & USBHS_OTGSC_DPIS_MASK)
18616#define USBHS_OTGSC_DPIS USBHS_OTGSC_DPIS_MASK
18617#define USBHS_OTGSC_IDIE_MASK (0x1000000U)
18618#define USBHS_OTGSC_IDIE_SHIFT (24U)
18619#define USBHS_OTGSC_IDIE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_IDIE_SHIFT)) & USBHS_OTGSC_IDIE_MASK)
18620#define USBHS_OTGSC_IDIE USBHS_OTGSC_IDIE_MASK
18621#define USBHS_OTGSC_AVVIE_MASK (0x2000000U)
18622#define USBHS_OTGSC_AVVIE_SHIFT (25U)
18623#define USBHS_OTGSC_AVVIE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_AVVIE_SHIFT)) & USBHS_OTGSC_AVVIE_MASK)
18624#define USBHS_OTGSC_AVVIE USBHS_OTGSC_AVVIE_MASK
18625#define USBHS_OTGSC_ASVIE_MASK (0x4000000U)
18626#define USBHS_OTGSC_ASVIE_SHIFT (26U)
18627#define USBHS_OTGSC_ASVIE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_ASVIE_SHIFT)) & USBHS_OTGSC_ASVIE_MASK)
18628#define USBHS_OTGSC_ASVIE USBHS_OTGSC_ASVIE_MASK
18629#define USBHS_OTGSC_BSVIE_MASK (0x8000000U)
18630#define USBHS_OTGSC_BSVIE_SHIFT (27U)
18631#define USBHS_OTGSC_BSVIE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_BSVIE_SHIFT)) & USBHS_OTGSC_BSVIE_MASK)
18632#define USBHS_OTGSC_BSVIE USBHS_OTGSC_BSVIE_MASK
18633#define USBHS_OTGSC_BSEIE_MASK (0x10000000U)
18634#define USBHS_OTGSC_BSEIE_SHIFT (28U)
18635#define USBHS_OTGSC_BSEIE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_BSEIE_SHIFT)) & USBHS_OTGSC_BSEIE_MASK)
18636#define USBHS_OTGSC_BSEIE USBHS_OTGSC_BSEIE_MASK
18637#define USBHS_OTGSC_MSE_MASK (0x20000000U)
18638#define USBHS_OTGSC_MSE_SHIFT (29U)
18639#define USBHS_OTGSC_MSE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_MSE_SHIFT)) & USBHS_OTGSC_MSE_MASK)
18640#define USBHS_OTGSC_MSE USBHS_OTGSC_MSE_MASK
18641#define USBHS_OTGSC_DPIE_MASK (0x40000000U)
18642#define USBHS_OTGSC_DPIE_SHIFT (30U)
18643#define USBHS_OTGSC_DPIE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_OTGSC_DPIE_SHIFT)) & USBHS_OTGSC_DPIE_MASK)
18644#define USBHS_OTGSC_DPIE USBHS_OTGSC_DPIE_MASK
18645
18646/*! @name USBMODE - USB Mode Register */
18647#define USBHS_USBMODE_CM_MASK (0x3U)
18648#define USBHS_USBMODE_CM_SHIFT (0U)
18649#define USBHS_USBMODE_CM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBMODE_CM_SHIFT)) & USBHS_USBMODE_CM_MASK)
18650#define USBHS_USBMODE_CM USBHS_USBMODE_CM_MASK
18651#define USBHS_USBMODE_ES_MASK (0x4U)
18652#define USBHS_USBMODE_ES_SHIFT (2U)
18653#define USBHS_USBMODE_ES_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBMODE_ES_SHIFT)) & USBHS_USBMODE_ES_MASK)
18654#define USBHS_USBMODE_ES USBHS_USBMODE_ES_MASK
18655#define USBHS_USBMODE_SLOM_MASK (0x8U)
18656#define USBHS_USBMODE_SLOM_SHIFT (3U)
18657#define USBHS_USBMODE_SLOM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBMODE_SLOM_SHIFT)) & USBHS_USBMODE_SLOM_MASK)
18658#define USBHS_USBMODE_SLOM USBHS_USBMODE_SLOM_MASK
18659#define USBHS_USBMODE_SDIS_MASK (0x10U)
18660#define USBHS_USBMODE_SDIS_SHIFT (4U)
18661#define USBHS_USBMODE_SDIS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBMODE_SDIS_SHIFT)) & USBHS_USBMODE_SDIS_MASK)
18662#define USBHS_USBMODE_SDIS USBHS_USBMODE_SDIS_MASK
18663#define USBHS_USBMODE_TXHSD_MASK (0x7000U)
18664#define USBHS_USBMODE_TXHSD_SHIFT (12U)
18665#define USBHS_USBMODE_TXHSD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBMODE_TXHSD_SHIFT)) & USBHS_USBMODE_TXHSD_MASK)
18666#define USBHS_USBMODE_TXHSD USBHS_USBMODE_TXHSD_MASK
18667
18668/*! @name EPSETUPSR - Endpoint Setup Status Register */
18669#define USBHS_EPSETUPSR_EPSETUPSTAT_MASK (0xFU)
18670#define USBHS_EPSETUPSR_EPSETUPSTAT_SHIFT (0U)
18671#define USBHS_EPSETUPSR_EPSETUPSTAT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPSETUPSR_EPSETUPSTAT_SHIFT)) & USBHS_EPSETUPSR_EPSETUPSTAT_MASK)
18672#define USBHS_EPSETUPSR_EPSETUPSTAT USBHS_EPSETUPSR_EPSETUPSTAT_MASK
18673
18674/*! @name EPPRIME - Endpoint Initialization Register */
18675#define USBHS_EPPRIME_PERB_MASK (0xFU)
18676#define USBHS_EPPRIME_PERB_SHIFT (0U)
18677#define USBHS_EPPRIME_PERB_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPPRIME_PERB_SHIFT)) & USBHS_EPPRIME_PERB_MASK)
18678#define USBHS_EPPRIME_PERB USBHS_EPPRIME_PERB_MASK
18679#define USBHS_EPPRIME_PETB_MASK (0xF0000U)
18680#define USBHS_EPPRIME_PETB_SHIFT (16U)
18681#define USBHS_EPPRIME_PETB_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPPRIME_PETB_SHIFT)) & USBHS_EPPRIME_PETB_MASK)
18682#define USBHS_EPPRIME_PETB USBHS_EPPRIME_PETB_MASK
18683
18684/*! @name EPFLUSH - Endpoint Flush Register */
18685#define USBHS_EPFLUSH_FERB_MASK (0xFU)
18686#define USBHS_EPFLUSH_FERB_SHIFT (0U)
18687#define USBHS_EPFLUSH_FERB_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPFLUSH_FERB_SHIFT)) & USBHS_EPFLUSH_FERB_MASK)
18688#define USBHS_EPFLUSH_FERB USBHS_EPFLUSH_FERB_MASK
18689#define USBHS_EPFLUSH_FETB_MASK (0xF0000U)
18690#define USBHS_EPFLUSH_FETB_SHIFT (16U)
18691#define USBHS_EPFLUSH_FETB_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPFLUSH_FETB_SHIFT)) & USBHS_EPFLUSH_FETB_MASK)
18692#define USBHS_EPFLUSH_FETB USBHS_EPFLUSH_FETB_MASK
18693
18694/*! @name EPSR - Endpoint Status Register */
18695#define USBHS_EPSR_ERBR_MASK (0xFU)
18696#define USBHS_EPSR_ERBR_SHIFT (0U)
18697#define USBHS_EPSR_ERBR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPSR_ERBR_SHIFT)) & USBHS_EPSR_ERBR_MASK)
18698#define USBHS_EPSR_ERBR USBHS_EPSR_ERBR_MASK
18699#define USBHS_EPSR_ETBR_MASK (0xF0000U)
18700#define USBHS_EPSR_ETBR_SHIFT (16U)
18701#define USBHS_EPSR_ETBR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPSR_ETBR_SHIFT)) & USBHS_EPSR_ETBR_MASK)
18702#define USBHS_EPSR_ETBR USBHS_EPSR_ETBR_MASK
18703
18704/*! @name EPCOMPLETE - Endpoint Complete Register */
18705#define USBHS_EPCOMPLETE_ERCE_MASK (0xFU)
18706#define USBHS_EPCOMPLETE_ERCE_SHIFT (0U)
18707#define USBHS_EPCOMPLETE_ERCE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCOMPLETE_ERCE_SHIFT)) & USBHS_EPCOMPLETE_ERCE_MASK)
18708#define USBHS_EPCOMPLETE_ERCE USBHS_EPCOMPLETE_ERCE_MASK
18709#define USBHS_EPCOMPLETE_ETCE_MASK (0xF0000U)
18710#define USBHS_EPCOMPLETE_ETCE_SHIFT (16U)
18711#define USBHS_EPCOMPLETE_ETCE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCOMPLETE_ETCE_SHIFT)) & USBHS_EPCOMPLETE_ETCE_MASK)
18712#define USBHS_EPCOMPLETE_ETCE USBHS_EPCOMPLETE_ETCE_MASK
18713
18714/*! @name EPCR0 - Endpoint Control Register 0 */
18715#define USBHS_EPCR0_RXS_MASK (0x1U)
18716#define USBHS_EPCR0_RXS_SHIFT (0U)
18717#define USBHS_EPCR0_RXS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR0_RXS_SHIFT)) & USBHS_EPCR0_RXS_MASK)
18718#define USBHS_EPCR0_RXS USBHS_EPCR0_RXS_MASK
18719#define USBHS_EPCR0_RXT_MASK (0xCU)
18720#define USBHS_EPCR0_RXT_SHIFT (2U)
18721#define USBHS_EPCR0_RXT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR0_RXT_SHIFT)) & USBHS_EPCR0_RXT_MASK)
18722#define USBHS_EPCR0_RXT USBHS_EPCR0_RXT_MASK
18723#define USBHS_EPCR0_RXE_MASK (0x80U)
18724#define USBHS_EPCR0_RXE_SHIFT (7U)
18725#define USBHS_EPCR0_RXE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR0_RXE_SHIFT)) & USBHS_EPCR0_RXE_MASK)
18726#define USBHS_EPCR0_RXE USBHS_EPCR0_RXE_MASK
18727#define USBHS_EPCR0_TXS_MASK (0x10000U)
18728#define USBHS_EPCR0_TXS_SHIFT (16U)
18729#define USBHS_EPCR0_TXS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR0_TXS_SHIFT)) & USBHS_EPCR0_TXS_MASK)
18730#define USBHS_EPCR0_TXS USBHS_EPCR0_TXS_MASK
18731#define USBHS_EPCR0_TXT_MASK (0xC0000U)
18732#define USBHS_EPCR0_TXT_SHIFT (18U)
18733#define USBHS_EPCR0_TXT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR0_TXT_SHIFT)) & USBHS_EPCR0_TXT_MASK)
18734#define USBHS_EPCR0_TXT USBHS_EPCR0_TXT_MASK
18735#define USBHS_EPCR0_TXE_MASK (0x800000U)
18736#define USBHS_EPCR0_TXE_SHIFT (23U)
18737#define USBHS_EPCR0_TXE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR0_TXE_SHIFT)) & USBHS_EPCR0_TXE_MASK)
18738#define USBHS_EPCR0_TXE USBHS_EPCR0_TXE_MASK
18739
18740/*! @name EPCR - Endpoint Control Register n */
18741#define USBHS_EPCR_RXS_MASK (0x1U)
18742#define USBHS_EPCR_RXS_SHIFT (0U)
18743#define USBHS_EPCR_RXS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_RXS_SHIFT)) & USBHS_EPCR_RXS_MASK)
18744#define USBHS_EPCR_RXS USBHS_EPCR_RXS_MASK
18745#define USBHS_EPCR_RXD_MASK (0x2U)
18746#define USBHS_EPCR_RXD_SHIFT (1U)
18747#define USBHS_EPCR_RXD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_RXD_SHIFT)) & USBHS_EPCR_RXD_MASK)
18748#define USBHS_EPCR_RXD USBHS_EPCR_RXD_MASK
18749#define USBHS_EPCR_RXT_MASK (0xCU)
18750#define USBHS_EPCR_RXT_SHIFT (2U)
18751#define USBHS_EPCR_RXT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_RXT_SHIFT)) & USBHS_EPCR_RXT_MASK)
18752#define USBHS_EPCR_RXT USBHS_EPCR_RXT_MASK
18753#define USBHS_EPCR_RXI_MASK (0x20U)
18754#define USBHS_EPCR_RXI_SHIFT (5U)
18755#define USBHS_EPCR_RXI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_RXI_SHIFT)) & USBHS_EPCR_RXI_MASK)
18756#define USBHS_EPCR_RXI USBHS_EPCR_RXI_MASK
18757#define USBHS_EPCR_RXR_MASK (0x40U)
18758#define USBHS_EPCR_RXR_SHIFT (6U)
18759#define USBHS_EPCR_RXR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_RXR_SHIFT)) & USBHS_EPCR_RXR_MASK)
18760#define USBHS_EPCR_RXR USBHS_EPCR_RXR_MASK
18761#define USBHS_EPCR_RXE_MASK (0x80U)
18762#define USBHS_EPCR_RXE_SHIFT (7U)
18763#define USBHS_EPCR_RXE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_RXE_SHIFT)) & USBHS_EPCR_RXE_MASK)
18764#define USBHS_EPCR_RXE USBHS_EPCR_RXE_MASK
18765#define USBHS_EPCR_TXS_MASK (0x10000U)
18766#define USBHS_EPCR_TXS_SHIFT (16U)
18767#define USBHS_EPCR_TXS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_TXS_SHIFT)) & USBHS_EPCR_TXS_MASK)
18768#define USBHS_EPCR_TXS USBHS_EPCR_TXS_MASK
18769#define USBHS_EPCR_TXD_MASK (0x20000U)
18770#define USBHS_EPCR_TXD_SHIFT (17U)
18771#define USBHS_EPCR_TXD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_TXD_SHIFT)) & USBHS_EPCR_TXD_MASK)
18772#define USBHS_EPCR_TXD USBHS_EPCR_TXD_MASK
18773#define USBHS_EPCR_TXT_MASK (0xC0000U)
18774#define USBHS_EPCR_TXT_SHIFT (18U)
18775#define USBHS_EPCR_TXT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_TXT_SHIFT)) & USBHS_EPCR_TXT_MASK)
18776#define USBHS_EPCR_TXT USBHS_EPCR_TXT_MASK
18777#define USBHS_EPCR_TXI_MASK (0x200000U)
18778#define USBHS_EPCR_TXI_SHIFT (21U)
18779#define USBHS_EPCR_TXI_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_TXI_SHIFT)) & USBHS_EPCR_TXI_MASK)
18780#define USBHS_EPCR_TXI USBHS_EPCR_TXI_MASK
18781#define USBHS_EPCR_TXR_MASK (0x400000U)
18782#define USBHS_EPCR_TXR_SHIFT (22U)
18783#define USBHS_EPCR_TXR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_TXR_SHIFT)) & USBHS_EPCR_TXR_MASK)
18784#define USBHS_EPCR_TXR USBHS_EPCR_TXR_MASK
18785#define USBHS_EPCR_TXE_MASK (0x800000U)
18786#define USBHS_EPCR_TXE_SHIFT (23U)
18787#define USBHS_EPCR_TXE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_EPCR_TXE_SHIFT)) & USBHS_EPCR_TXE_MASK)
18788#define USBHS_EPCR_TXE USBHS_EPCR_TXE_MASK
18789
18790/* The count of USBHS_EPCR */
18791#define USBHS_EPCR_COUNT (7U)
18792
18793/*! @name USBGENCTRL - USB General Control Register */
18794#define USBHS_USBGENCTRL_WU_IE_MASK (0x1U)
18795#define USBHS_USBGENCTRL_WU_IE_SHIFT (0U)
18796#define USBHS_USBGENCTRL_WU_IE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBGENCTRL_WU_IE_SHIFT)) & USBHS_USBGENCTRL_WU_IE_MASK)
18797#define USBHS_USBGENCTRL_WU_IE USBHS_USBGENCTRL_WU_IE_MASK
18798#define USBHS_USBGENCTRL_WU_INT_CLR_MASK (0x20U)
18799#define USBHS_USBGENCTRL_WU_INT_CLR_SHIFT (5U)
18800#define USBHS_USBGENCTRL_WU_INT_CLR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHS_USBGENCTRL_WU_INT_CLR_SHIFT)) & USBHS_USBGENCTRL_WU_INT_CLR_MASK)
18801#define USBHS_USBGENCTRL_WU_INT_CLR USBHS_USBGENCTRL_WU_INT_CLR_MASK
18802
18803
18804/*!
18805 * @}
18806 */ /* end of group USBHS_Register_Masks */
18807
18808
18809/* USBHS - Peripheral instance base addresses */
18810/** Peripheral USBHS base address */
18811#define USBHS_BASE (0x400A1000u)
18812/** Peripheral USBHS base pointer */
18813#define USBHS ((USBHS_TypeDef *)USBHS_BASE)
18814/** Array initializer of USBHS peripheral base addresses */
18815#define USBHS_BASE_ADDRS { USBHS_BASE }
18816/** Array initializer of USBHS peripheral base pointers */
18817#define USBHS_BASE_PTRS { USBHS }
18818/** Interrupt vectors for the USBHS peripheral type */
18819#define USBHS_IRQS { USBHS_IRQn }
18820
18821/*!
18822 * @}
18823 */ /* end of group USBHS_Peripheral_Access_Layer */
18824
18825
18826/* ----------------------------------------------------------------------------
18827 -- USBHSDCD Peripheral Access Layer
18828 ---------------------------------------------------------------------------- */
18829
18830/*!
18831 * @addtogroup USBHSDCD_Peripheral_Access_Layer USBHSDCD Peripheral Access Layer
18832 * @{
18833 */
18834
18835/** USBHSDCD - Register Layout Typedef */
18836typedef struct {
18837 __IO uint32_t CONTROL; /**< Control register, offset: 0x0 */
18838 __IO uint32_t CLOCK; /**< Clock register, offset: 0x4 */
18839 __I uint32_t STATUS; /**< Status register, offset: 0x8 */
18840 __IO uint32_t SIGNAL_OVERRIDE; /**< Signal Override Register, offset: 0xC */
18841 __IO uint32_t TIMER0; /**< TIMER0 register, offset: 0x10 */
18842 __IO uint32_t TIMER1; /**< TIMER1 register, offset: 0x14 */
18843 union { /* offset: 0x18 */
18844 __IO uint32_t TIMER2_BC11; /**< TIMER2_BC11 register, offset: 0x18 */
18845 __IO uint32_t TIMER2_BC12; /**< TIMER2_BC12 register, offset: 0x18 */
18846 };
18847} USBHSDCD_TypeDef;
18848
18849/* ----------------------------------------------------------------------------
18850 -- USBHSDCD Register Masks
18851 ---------------------------------------------------------------------------- */
18852
18853/*!
18854 * @addtogroup USBHSDCD_Register_Masks USBHSDCD Register Masks
18855 * @{
18856 */
18857
18858/*! @name CONTROL - Control register */
18859#define USBHSDCD_CONTROL_IACK_MASK (0x1U)
18860#define USBHSDCD_CONTROL_IACK_SHIFT (0U)
18861#define USBHSDCD_CONTROL_IACK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IACK_SHIFT)) & USBHSDCD_CONTROL_IACK_MASK)
18862#define USBHSDCD_CONTROL_IACK USBHSDCD_CONTROL_IACK_MASK
18863#define USBHSDCD_CONTROL_IF_MASK (0x100U)
18864#define USBHSDCD_CONTROL_IF_SHIFT (8U)
18865#define USBHSDCD_CONTROL_IF_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IF_SHIFT)) & USBHSDCD_CONTROL_IF_MASK)
18866#define USBHSDCD_CONTROL_IF USBHSDCD_CONTROL_IF_MASK
18867#define USBHSDCD_CONTROL_IE_MASK (0x10000U)
18868#define USBHSDCD_CONTROL_IE_SHIFT (16U)
18869#define USBHSDCD_CONTROL_IE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_IE_SHIFT)) & USBHSDCD_CONTROL_IE_MASK)
18870#define USBHSDCD_CONTROL_IE USBHSDCD_CONTROL_IE_MASK
18871#define USBHSDCD_CONTROL_BC12_MASK (0x20000U)
18872#define USBHSDCD_CONTROL_BC12_SHIFT (17U)
18873#define USBHSDCD_CONTROL_BC12_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_BC12_SHIFT)) & USBHSDCD_CONTROL_BC12_MASK)
18874#define USBHSDCD_CONTROL_BC12 USBHSDCD_CONTROL_BC12_MASK
18875#define USBHSDCD_CONTROL_START_MASK (0x1000000U)
18876#define USBHSDCD_CONTROL_START_SHIFT (24U)
18877#define USBHSDCD_CONTROL_START_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_START_SHIFT)) & USBHSDCD_CONTROL_START_MASK)
18878#define USBHSDCD_CONTROL_START USBHSDCD_CONTROL_START_MASK
18879#define USBHSDCD_CONTROL_SR_MASK (0x2000000U)
18880#define USBHSDCD_CONTROL_SR_SHIFT (25U)
18881#define USBHSDCD_CONTROL_SR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CONTROL_SR_SHIFT)) & USBHSDCD_CONTROL_SR_MASK)
18882#define USBHSDCD_CONTROL_SR USBHSDCD_CONTROL_SR_MASK
18883
18884/*! @name CLOCK - Clock register */
18885#define USBHSDCD_CLOCK_CLOCK_UNIT_MASK (0x1U)
18886#define USBHSDCD_CLOCK_CLOCK_UNIT_SHIFT (0U)
18887#define USBHSDCD_CLOCK_CLOCK_UNIT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CLOCK_CLOCK_UNIT_SHIFT)) & USBHSDCD_CLOCK_CLOCK_UNIT_MASK)
18888#define USBHSDCD_CLOCK_CLOCK_UNIT USBHSDCD_CLOCK_CLOCK_UNIT_MASK
18889#define USBHSDCD_CLOCK_CLOCK_SPEED_MASK (0xFFCU)
18890#define USBHSDCD_CLOCK_CLOCK_SPEED_SHIFT (2U)
18891#define USBHSDCD_CLOCK_CLOCK_SPEED_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBHSDCD_CLOCK_CLOCK_SPEED_MASK)
18892#define USBHSDCD_CLOCK_CLOCK_SPEED USBHSDCD_CLOCK_CLOCK_SPEED_MASK
18893
18894/*! @name STATUS - Status register */
18895#define USBHSDCD_STATUS_SEQ_RES_MASK (0x30000U)
18896#define USBHSDCD_STATUS_SEQ_RES_SHIFT (16U)
18897#define USBHSDCD_STATUS_SEQ_RES_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_RES_SHIFT)) & USBHSDCD_STATUS_SEQ_RES_MASK)
18898#define USBHSDCD_STATUS_SEQ_RES USBHSDCD_STATUS_SEQ_RES_MASK
18899#define USBHSDCD_STATUS_SEQ_STAT_MASK (0xC0000U)
18900#define USBHSDCD_STATUS_SEQ_STAT_SHIFT (18U)
18901#define USBHSDCD_STATUS_SEQ_STAT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_SEQ_STAT_SHIFT)) & USBHSDCD_STATUS_SEQ_STAT_MASK)
18902#define USBHSDCD_STATUS_SEQ_STAT USBHSDCD_STATUS_SEQ_STAT_MASK
18903#define USBHSDCD_STATUS_ERR_MASK (0x100000U)
18904#define USBHSDCD_STATUS_ERR_SHIFT (20U)
18905#define USBHSDCD_STATUS_ERR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ERR_SHIFT)) & USBHSDCD_STATUS_ERR_MASK)
18906#define USBHSDCD_STATUS_ERR USBHSDCD_STATUS_ERR_MASK
18907#define USBHSDCD_STATUS_TO_MASK (0x200000U)
18908#define USBHSDCD_STATUS_TO_SHIFT (21U)
18909#define USBHSDCD_STATUS_TO_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_TO_SHIFT)) & USBHSDCD_STATUS_TO_MASK)
18910#define USBHSDCD_STATUS_TO USBHSDCD_STATUS_TO_MASK
18911#define USBHSDCD_STATUS_ACTIVE_MASK (0x400000U)
18912#define USBHSDCD_STATUS_ACTIVE_SHIFT (22U)
18913#define USBHSDCD_STATUS_ACTIVE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_STATUS_ACTIVE_SHIFT)) & USBHSDCD_STATUS_ACTIVE_MASK)
18914#define USBHSDCD_STATUS_ACTIVE USBHSDCD_STATUS_ACTIVE_MASK
18915
18916/*! @name SIGNAL_OVERRIDE - Signal Override Register */
18917#define USBHSDCD_SIGNAL_OVERRIDE_PS_MASK (0x3U)
18918#define USBHSDCD_SIGNAL_OVERRIDE_PS_SHIFT (0U)
18919#define USBHSDCD_SIGNAL_OVERRIDE_PS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_SIGNAL_OVERRIDE_PS_SHIFT)) & USBHSDCD_SIGNAL_OVERRIDE_PS_MASK)
18920#define USBHSDCD_SIGNAL_OVERRIDE_PS USBHSDCD_SIGNAL_OVERRIDE_PS_MASK
18921
18922/*! @name TIMER0 - TIMER0 register */
18923#define USBHSDCD_TIMER0_TUNITCON_MASK (0xFFFU)
18924#define USBHSDCD_TIMER0_TUNITCON_SHIFT (0U)
18925#define USBHSDCD_TIMER0_TUNITCON_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER0_TUNITCON_SHIFT)) & USBHSDCD_TIMER0_TUNITCON_MASK)
18926#define USBHSDCD_TIMER0_TUNITCON USBHSDCD_TIMER0_TUNITCON_MASK
18927#define USBHSDCD_TIMER0_TSEQ_INIT_MASK (0x3FF0000U)
18928#define USBHSDCD_TIMER0_TSEQ_INIT_SHIFT (16U)
18929#define USBHSDCD_TIMER0_TSEQ_INIT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBHSDCD_TIMER0_TSEQ_INIT_MASK)
18930#define USBHSDCD_TIMER0_TSEQ_INIT USBHSDCD_TIMER0_TSEQ_INIT_MASK
18931
18932/*! @name TIMER1 - TIMER1 register */
18933#define USBHSDCD_TIMER1_TVDPSRC_ON_MASK (0x3FFU)
18934#define USBHSDCD_TIMER1_TVDPSRC_ON_SHIFT (0U)
18935#define USBHSDCD_TIMER1_TVDPSRC_ON_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBHSDCD_TIMER1_TVDPSRC_ON_MASK)
18936#define USBHSDCD_TIMER1_TVDPSRC_ON USBHSDCD_TIMER1_TVDPSRC_ON_MASK
18937#define USBHSDCD_TIMER1_TDCD_DBNC_MASK (0x3FF0000U)
18938#define USBHSDCD_TIMER1_TDCD_DBNC_SHIFT (16U)
18939#define USBHSDCD_TIMER1_TDCD_DBNC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBHSDCD_TIMER1_TDCD_DBNC_MASK)
18940#define USBHSDCD_TIMER1_TDCD_DBNC USBHSDCD_TIMER1_TDCD_DBNC_MASK
18941
18942/*! @name TIMER2_BC11 - TIMER2_BC11 register */
18943#define USBHSDCD_TIMER2_BC11_CHECK_DM_MASK (0xFU)
18944#define USBHSDCD_TIMER2_BC11_CHECK_DM_SHIFT (0U)
18945#define USBHSDCD_TIMER2_BC11_CHECK_DM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC11_CHECK_DM_SHIFT)) & USBHSDCD_TIMER2_BC11_CHECK_DM_MASK)
18946#define USBHSDCD_TIMER2_BC11_CHECK_DM USBHSDCD_TIMER2_BC11_CHECK_DM_MASK
18947#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON_MASK (0x3FF0000U)
18948#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT (16U)
18949#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT)) & USBHSDCD_TIMER2_BC11_TVDPSRC_CON_MASK)
18950#define USBHSDCD_TIMER2_BC11_TVDPSRC_CON USBHSDCD_TIMER2_BC11_TVDPSRC_CON_MASK
18951
18952/*! @name TIMER2_BC12 - TIMER2_BC12 register */
18953#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON_MASK (0x3FFU)
18954#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT (0U)
18955#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON_SET(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT)) & USBHSDCD_TIMER2_BC12_TVDMSRC_ON_MASK)
18956#define USBHSDCD_TIMER2_BC12_TVDMSRC_ON USBHSDCD_TIMER2_BC12_TVDMSRC_ON_MASK
18957#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK (0x3FF0000U)
18958#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT (16U)
18959#define USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD(x) (((uint32_t)(((uint32_t)(x)) << USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT)) & USBHSDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK)
18960
18961
18962/*!
18963 * @}
18964 */ /* end of group USBHSDCD_Register_Masks */
18965
18966
18967/* USBHSDCD - Peripheral instance base addresses */
18968/** Peripheral USBHSDCD base address */
18969#define USBHSDCD_BASE (0x400A3000u)
18970/** Peripheral USBHSDCD base pointer */
18971#define USBHSDCD ((USBHSDCD_TypeDef *)USBHSDCD_BASE)
18972/** Array initializer of USBHSDCD peripheral base addresses */
18973#define USBHSDCD_BASE_ADDRS { USBHSDCD_BASE }
18974/** Array initializer of USBHSDCD peripheral base pointers */
18975#define USBHSDCD_BASE_PTRS { USBHSDCD }
18976/** Interrupt vectors for the USBHSDCD peripheral type */
18977#define USBHSDCD_IRQS { USBHSDCD_IRQn }
18978
18979/*!
18980 * @}
18981 */ /* end of group USBHSDCD_Peripheral_Access_Layer */
18982
18983
18984/* ----------------------------------------------------------------------------
18985 -- USBPHY Peripheral Access Layer
18986 ---------------------------------------------------------------------------- */
18987
18988/*!
18989 * @addtogroup USBPHY_Peripheral_Access_Layer USBPHY Peripheral Access Layer
18990 * @{
18991 */
18992
18993/** USBPHY - Register Layout Typedef */
18994typedef struct {
18995 __IO uint32_t PWD; /**< USB PHY Power-Down Register, offset: 0x0 */
18996 __IO uint32_t PWD_SET; /**< USB PHY Power-Down Register, offset: 0x4 */
18997 __IO uint32_t PWD_CLR; /**< USB PHY Power-Down Register, offset: 0x8 */
18998 __IO uint32_t PWD_TOG; /**< USB PHY Power-Down Register, offset: 0xC */
18999 __IO uint32_t TX; /**< USB PHY Transmitter Control Register, offset: 0x10 */
19000 __IO uint32_t TX_SET; /**< USB PHY Transmitter Control Register, offset: 0x14 */
19001 __IO uint32_t TX_CLR; /**< USB PHY Transmitter Control Register, offset: 0x18 */
19002 __IO uint32_t TX_TOG; /**< USB PHY Transmitter Control Register, offset: 0x1C */
19003 __IO uint32_t RX; /**< USB PHY Receiver Control Register, offset: 0x20 */
19004 __IO uint32_t RX_SET; /**< USB PHY Receiver Control Register, offset: 0x24 */
19005 __IO uint32_t RX_CLR; /**< USB PHY Receiver Control Register, offset: 0x28 */
19006 __IO uint32_t RX_TOG; /**< USB PHY Receiver Control Register, offset: 0x2C */
19007 __IO uint32_t CTRL; /**< USB PHY General Control Register, offset: 0x30 */
19008 __IO uint32_t CTRL_SET; /**< USB PHY General Control Register, offset: 0x34 */
19009 __IO uint32_t CTRL_CLR; /**< USB PHY General Control Register, offset: 0x38 */
19010 __IO uint32_t CTRL_TOG; /**< USB PHY General Control Register, offset: 0x3C */
19011 __IO uint32_t STATUS; /**< USB PHY Status Register, offset: 0x40 */
19012 uint8_t RESERVED_0[12];
19013 __IO uint32_t DEBUGr; /**< USB PHY Debug Register, offset: 0x50 */
19014 __IO uint32_t DEBUG_SET; /**< USB PHY Debug Register, offset: 0x54 */
19015 __IO uint32_t DEBUG_CLR; /**< USB PHY Debug Register, offset: 0x58 */
19016 __IO uint32_t DEBUG_TOG; /**< USB PHY Debug Register, offset: 0x5C */
19017 __I uint32_t DEBUG0_STATUS; /**< UTMI Debug Status Register 0, offset: 0x60 */
19018 uint8_t RESERVED_1[12];
19019 __IO uint32_t DEBUG1; /**< UTMI Debug Status Register 1, offset: 0x70 */
19020 __IO uint32_t DEBUG1_SET; /**< UTMI Debug Status Register 1, offset: 0x74 */
19021 __IO uint32_t DEBUG1_CLR; /**< UTMI Debug Status Register 1, offset: 0x78 */
19022 __IO uint32_t DEBUG1_TOG; /**< UTMI Debug Status Register 1, offset: 0x7C */
19023 __I uint32_t VERSION; /**< UTMI RTL Version, offset: 0x80 */
19024 uint8_t RESERVED_2[28];
19025 __IO uint32_t PLL_SIC; /**< USB PHY PLL Control/Status Register, offset: 0xA0 */
19026 __IO uint32_t PLL_SIC_SET; /**< USB PHY PLL Control/Status Register, offset: 0xA4 */
19027 __IO uint32_t PLL_SIC_CLR; /**< USB PHY PLL Control/Status Register, offset: 0xA8 */
19028 __IO uint32_t PLL_SIC_TOG; /**< USB PHY PLL Control/Status Register, offset: 0xAC */
19029 uint8_t RESERVED_3[16];
19030 __IO uint32_t USB1_VBUS_DETECT; /**< USB PHY VBUS Detect Control Register, offset: 0xC0 */
19031 __IO uint32_t USB1_VBUS_DETECT_SET; /**< USB PHY VBUS Detect Control Register, offset: 0xC4 */
19032 __IO uint32_t USB1_VBUS_DETECT_CLR; /**< USB PHY VBUS Detect Control Register, offset: 0xC8 */
19033 __IO uint32_t USB1_VBUS_DETECT_TOG; /**< USB PHY VBUS Detect Control Register, offset: 0xCC */
19034 __I uint32_t USB1_VBUS_DET_STAT; /**< USB PHY VBUS Detector Status Register, offset: 0xD0 */
19035 uint8_t RESERVED_4[28];
19036 __I uint32_t USB1_CHRG_DET_STAT; /**< USB PHY Charger Detect Status Register, offset: 0xF0 */
19037 uint8_t RESERVED_5[12];
19038 __IO uint32_t ANACTRL; /**< USB PHY Analog Control Register, offset: 0x100 */
19039 __IO uint32_t ANACTRL_SET; /**< USB PHY Analog Control Register, offset: 0x104 */
19040 __IO uint32_t ANACTRL_CLR; /**< USB PHY Analog Control Register, offset: 0x108 */
19041 __IO uint32_t ANACTRL_TOG; /**< USB PHY Analog Control Register, offset: 0x10C */
19042 __IO uint32_t USB1_LOOPBACK; /**< USB PHY Loopback Control/Status Register, offset: 0x110 */
19043 __IO uint32_t USB1_LOOPBACK_SET; /**< USB PHY Loopback Control/Status Register, offset: 0x114 */
19044 __IO uint32_t USB1_LOOPBACK_CLR; /**< USB PHY Loopback Control/Status Register, offset: 0x118 */
19045 __IO uint32_t USB1_LOOPBACK_TOG; /**< USB PHY Loopback Control/Status Register, offset: 0x11C */
19046 __IO uint32_t USB1_LOOPBACK_HSFSCNT; /**< USB PHY Loopback Packet Number Select Register, offset: 0x120 */
19047 __IO uint32_t USB1_LOOPBACK_HSFSCNT_SET; /**< USB PHY Loopback Packet Number Select Register, offset: 0x124 */
19048 __IO uint32_t USB1_LOOPBACK_HSFSCNT_CLR; /**< USB PHY Loopback Packet Number Select Register, offset: 0x128 */
19049 __IO uint32_t USB1_LOOPBACK_HSFSCNT_TOG; /**< USB PHY Loopback Packet Number Select Register, offset: 0x12C */
19050 __IO uint32_t TRIM_OVERRIDE_EN; /**< USB PHY Trim Override Enable Register, offset: 0x130 */
19051 __IO uint32_t TRIM_OVERRIDE_EN_SET; /**< USB PHY Trim Override Enable Register, offset: 0x134 */
19052 __IO uint32_t TRIM_OVERRIDE_EN_CLR; /**< USB PHY Trim Override Enable Register, offset: 0x138 */
19053 __IO uint32_t TRIM_OVERRIDE_EN_TOG; /**< USB PHY Trim Override Enable Register, offset: 0x13C */
19054} USBPHY_TypeDef;
19055
19056/* ----------------------------------------------------------------------------
19057 -- USBPHY Register Masks
19058 ---------------------------------------------------------------------------- */
19059
19060/*!
19061 * @addtogroup USBPHY_Register_Masks USBPHY Register Masks
19062 * @{
19063 */
19064
19065/*! @name PWD - USB PHY Power-Down Register */
19066#define USBPHY_PWD_TXPWDFS_MASK (0x400U)
19067#define USBPHY_PWD_TXPWDFS_SHIFT (10U)
19068#define USBPHY_PWD_TXPWDFS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDFS_SHIFT)) & USBPHY_PWD_TXPWDFS_MASK)
19069#define USBPHY_PWD_TXPWDFS USBPHY_PWD_TXPWDFS_MASK
19070#define USBPHY_PWD_TXPWDIBIAS_MASK (0x800U)
19071#define USBPHY_PWD_TXPWDIBIAS_SHIFT (11U)
19072#define USBPHY_PWD_TXPWDIBIAS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_TXPWDIBIAS_MASK)
19073#define USBPHY_PWD_TXPWDIBIAS USBPHY_PWD_TXPWDIBIAS_MASK
19074#define USBPHY_PWD_TXPWDV2I_MASK (0x1000U)
19075#define USBPHY_PWD_TXPWDV2I_SHIFT (12U)
19076#define USBPHY_PWD_TXPWDV2I_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDV2I_SHIFT)) & USBPHY_PWD_TXPWDV2I_MASK)
19077#define USBPHY_PWD_TXPWDV2I USBPHY_PWD_TXPWDV2I_MASK
19078#define USBPHY_PWD_RXPWDENV_MASK (0x20000U)
19079#define USBPHY_PWD_RXPWDENV_SHIFT (17U)
19080#define USBPHY_PWD_RXPWDENV_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDENV_SHIFT)) & USBPHY_PWD_RXPWDENV_MASK)
19081#define USBPHY_PWD_RXPWDENV USBPHY_PWD_RXPWDENV_MASK
19082#define USBPHY_PWD_RXPWD1PT1_MASK (0x40000U)
19083#define USBPHY_PWD_RXPWD1PT1_SHIFT (18U)
19084#define USBPHY_PWD_RXPWD1PT1_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWD1PT1_SHIFT)) & USBPHY_PWD_RXPWD1PT1_MASK)
19085#define USBPHY_PWD_RXPWD1PT1 USBPHY_PWD_RXPWD1PT1_MASK
19086#define USBPHY_PWD_RXPWDDIFF_MASK (0x80000U)
19087#define USBPHY_PWD_RXPWDDIFF_SHIFT (19U)
19088#define USBPHY_PWD_RXPWDDIFF_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDDIFF_SHIFT)) & USBPHY_PWD_RXPWDDIFF_MASK)
19089#define USBPHY_PWD_RXPWDDIFF USBPHY_PWD_RXPWDDIFF_MASK
19090#define USBPHY_PWD_RXPWDRX_MASK (0x100000U)
19091#define USBPHY_PWD_RXPWDRX_SHIFT (20U)
19092#define USBPHY_PWD_RXPWDRX_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDRX_SHIFT)) & USBPHY_PWD_RXPWDRX_MASK)
19093#define USBPHY_PWD_RXPWDRX USBPHY_PWD_RXPWDRX_MASK
19094
19095/*! @name PWD_SET - USB PHY Power-Down Register */
19096#define USBPHY_PWD_SET_TXPWDFS_MASK (0x400U)
19097#define USBPHY_PWD_SET_TXPWDFS_SHIFT (10U)
19098#define USBPHY_PWD_SET_TXPWDFS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDFS_SHIFT)) & USBPHY_PWD_SET_TXPWDFS_MASK)
19099#define USBPHY_PWD_SET_TXPWDFS USBPHY_PWD_SET_TXPWDFS_MASK
19100#define USBPHY_PWD_SET_TXPWDIBIAS_MASK (0x800U)
19101#define USBPHY_PWD_SET_TXPWDIBIAS_SHIFT (11U)
19102#define USBPHY_PWD_SET_TXPWDIBIAS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_SET_TXPWDIBIAS_MASK)
19103#define USBPHY_PWD_SET_TXPWDIBIAS USBPHY_PWD_SET_TXPWDIBIAS_MASK
19104#define USBPHY_PWD_SET_TXPWDV2I_MASK (0x1000U)
19105#define USBPHY_PWD_SET_TXPWDV2I_SHIFT (12U)
19106#define USBPHY_PWD_SET_TXPWDV2I_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDV2I_SHIFT)) & USBPHY_PWD_SET_TXPWDV2I_MASK)
19107#define USBPHY_PWD_SET_TXPWDV2I USBPHY_PWD_SET_TXPWDV2I_MASK
19108#define USBPHY_PWD_SET_RXPWDENV_MASK (0x20000U)
19109#define USBPHY_PWD_SET_RXPWDENV_SHIFT (17U)
19110#define USBPHY_PWD_SET_RXPWDENV_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDENV_SHIFT)) & USBPHY_PWD_SET_RXPWDENV_MASK)
19111#define USBPHY_PWD_SET_RXPWDENV USBPHY_PWD_SET_RXPWDENV_MASK
19112#define USBPHY_PWD_SET_RXPWD1PT1_MASK (0x40000U)
19113#define USBPHY_PWD_SET_RXPWD1PT1_SHIFT (18U)
19114#define USBPHY_PWD_SET_RXPWD1PT1_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWD1PT1_SHIFT)) & USBPHY_PWD_SET_RXPWD1PT1_MASK)
19115#define USBPHY_PWD_SET_RXPWD1PT1 USBPHY_PWD_SET_RXPWD1PT1_MASK
19116#define USBPHY_PWD_SET_RXPWDDIFF_MASK (0x80000U)
19117#define USBPHY_PWD_SET_RXPWDDIFF_SHIFT (19U)
19118#define USBPHY_PWD_SET_RXPWDDIFF_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDDIFF_SHIFT)) & USBPHY_PWD_SET_RXPWDDIFF_MASK)
19119#define USBPHY_PWD_SET_RXPWDDIFF USBPHY_PWD_SET_RXPWDDIFF_MASK
19120#define USBPHY_PWD_SET_RXPWDRX_MASK (0x100000U)
19121#define USBPHY_PWD_SET_RXPWDRX_SHIFT (20U)
19122#define USBPHY_PWD_SET_RXPWDRX_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDRX_SHIFT)) & USBPHY_PWD_SET_RXPWDRX_MASK)
19123#define USBPHY_PWD_SET_RXPWDRX USBPHY_PWD_SET_RXPWDRX_MASK
19124
19125/*! @name PWD_CLR - USB PHY Power-Down Register */
19126#define USBPHY_PWD_CLR_TXPWDFS_MASK (0x400U)
19127#define USBPHY_PWD_CLR_TXPWDFS_SHIFT (10U)
19128#define USBPHY_PWD_CLR_TXPWDFS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDFS_SHIFT)) & USBPHY_PWD_CLR_TXPWDFS_MASK)
19129#define USBPHY_PWD_CLR_TXPWDFS USBPHY_PWD_CLR_TXPWDFS_MASK
19130#define USBPHY_PWD_CLR_TXPWDIBIAS_MASK (0x800U)
19131#define USBPHY_PWD_CLR_TXPWDIBIAS_SHIFT (11U)
19132#define USBPHY_PWD_CLR_TXPWDIBIAS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_CLR_TXPWDIBIAS_MASK)
19133#define USBPHY_PWD_CLR_TXPWDIBIAS USBPHY_PWD_CLR_TXPWDIBIAS_MASK
19134#define USBPHY_PWD_CLR_TXPWDV2I_MASK (0x1000U)
19135#define USBPHY_PWD_CLR_TXPWDV2I_SHIFT (12U)
19136#define USBPHY_PWD_CLR_TXPWDV2I_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDV2I_SHIFT)) & USBPHY_PWD_CLR_TXPWDV2I_MASK)
19137#define USBPHY_PWD_CLR_TXPWDV2I USBPHY_PWD_CLR_TXPWDV2I_MASK
19138#define USBPHY_PWD_CLR_RXPWDENV_MASK (0x20000U)
19139#define USBPHY_PWD_CLR_RXPWDENV_SHIFT (17U)
19140#define USBPHY_PWD_CLR_RXPWDENV_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDENV_SHIFT)) & USBPHY_PWD_CLR_RXPWDENV_MASK)
19141#define USBPHY_PWD_CLR_RXPWDENV USBPHY_PWD_CLR_RXPWDENV_MASK
19142#define USBPHY_PWD_CLR_RXPWD1PT1_MASK (0x40000U)
19143#define USBPHY_PWD_CLR_RXPWD1PT1_SHIFT (18U)
19144#define USBPHY_PWD_CLR_RXPWD1PT1_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWD1PT1_SHIFT)) & USBPHY_PWD_CLR_RXPWD1PT1_MASK)
19145#define USBPHY_PWD_CLR_RXPWD1PT1 USBPHY_PWD_CLR_RXPWD1PT1_MASK
19146#define USBPHY_PWD_CLR_RXPWDDIFF_MASK (0x80000U)
19147#define USBPHY_PWD_CLR_RXPWDDIFF_SHIFT (19U)
19148#define USBPHY_PWD_CLR_RXPWDDIFF_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDDIFF_SHIFT)) & USBPHY_PWD_CLR_RXPWDDIFF_MASK)
19149#define USBPHY_PWD_CLR_RXPWDDIFF USBPHY_PWD_CLR_RXPWDDIFF_MASK
19150#define USBPHY_PWD_CLR_RXPWDRX_MASK (0x100000U)
19151#define USBPHY_PWD_CLR_RXPWDRX_SHIFT (20U)
19152#define USBPHY_PWD_CLR_RXPWDRX_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDRX_SHIFT)) & USBPHY_PWD_CLR_RXPWDRX_MASK)
19153#define USBPHY_PWD_CLR_RXPWDRX USBPHY_PWD_CLR_RXPWDRX_MASK
19154
19155/*! @name PWD_TOG - USB PHY Power-Down Register */
19156#define USBPHY_PWD_TOG_TXPWDFS_MASK (0x400U)
19157#define USBPHY_PWD_TOG_TXPWDFS_SHIFT (10U)
19158#define USBPHY_PWD_TOG_TXPWDFS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDFS_SHIFT)) & USBPHY_PWD_TOG_TXPWDFS_MASK)
19159#define USBPHY_PWD_TOG_TXPWDFS USBPHY_PWD_TOG_TXPWDFS_MASK
19160#define USBPHY_PWD_TOG_TXPWDIBIAS_MASK (0x800U)
19161#define USBPHY_PWD_TOG_TXPWDIBIAS_SHIFT (11U)
19162#define USBPHY_PWD_TOG_TXPWDIBIAS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_TOG_TXPWDIBIAS_MASK)
19163#define USBPHY_PWD_TOG_TXPWDIBIAS USBPHY_PWD_TOG_TXPWDIBIAS_MASK
19164#define USBPHY_PWD_TOG_TXPWDV2I_MASK (0x1000U)
19165#define USBPHY_PWD_TOG_TXPWDV2I_SHIFT (12U)
19166#define USBPHY_PWD_TOG_TXPWDV2I_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDV2I_SHIFT)) & USBPHY_PWD_TOG_TXPWDV2I_MASK)
19167#define USBPHY_PWD_TOG_TXPWDV2I USBPHY_PWD_TOG_TXPWDV2I_MASK
19168#define USBPHY_PWD_TOG_RXPWDENV_MASK (0x20000U)
19169#define USBPHY_PWD_TOG_RXPWDENV_SHIFT (17U)
19170#define USBPHY_PWD_TOG_RXPWDENV_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDENV_SHIFT)) & USBPHY_PWD_TOG_RXPWDENV_MASK)
19171#define USBPHY_PWD_TOG_RXPWDENV USBPHY_PWD_TOG_RXPWDENV_MASK
19172#define USBPHY_PWD_TOG_RXPWD1PT1_MASK (0x40000U)
19173#define USBPHY_PWD_TOG_RXPWD1PT1_SHIFT (18U)
19174#define USBPHY_PWD_TOG_RXPWD1PT1_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWD1PT1_SHIFT)) & USBPHY_PWD_TOG_RXPWD1PT1_MASK)
19175#define USBPHY_PWD_TOG_RXPWD1PT1 USBPHY_PWD_TOG_RXPWD1PT1_MASK
19176#define USBPHY_PWD_TOG_RXPWDDIFF_MASK (0x80000U)
19177#define USBPHY_PWD_TOG_RXPWDDIFF_SHIFT (19U)
19178#define USBPHY_PWD_TOG_RXPWDDIFF_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDDIFF_SHIFT)) & USBPHY_PWD_TOG_RXPWDDIFF_MASK)
19179#define USBPHY_PWD_TOG_RXPWDDIFF USBPHY_PWD_TOG_RXPWDDIFF_MASK
19180#define USBPHY_PWD_TOG_RXPWDRX_MASK (0x100000U)
19181#define USBPHY_PWD_TOG_RXPWDRX_SHIFT (20U)
19182#define USBPHY_PWD_TOG_RXPWDRX_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDRX_SHIFT)) & USBPHY_PWD_TOG_RXPWDRX_MASK)
19183#define USBPHY_PWD_TOG_RXPWDRX USBPHY_PWD_TOG_RXPWDRX_MASK
19184
19185/*! @name TX - USB PHY Transmitter Control Register */
19186#define USBPHY_TX_D_CAL_MASK (0xFU)
19187#define USBPHY_TX_D_CAL_SHIFT (0U)
19188#define USBPHY_TX_D_CAL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_D_CAL_SHIFT)) & USBPHY_TX_D_CAL_MASK)
19189#define USBPHY_TX_D_CAL USBPHY_TX_D_CAL_MASK
19190#define USBPHY_TX_TXCAL45DM_MASK (0xF00U)
19191#define USBPHY_TX_TXCAL45DM_SHIFT (8U)
19192#define USBPHY_TX_TXCAL45DM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXCAL45DM_SHIFT)) & USBPHY_TX_TXCAL45DM_MASK)
19193#define USBPHY_TX_TXCAL45DM USBPHY_TX_TXCAL45DM_MASK
19194#define USBPHY_TX_TXCAL45DP_MASK (0xF0000U)
19195#define USBPHY_TX_TXCAL45DP_SHIFT (16U)
19196#define USBPHY_TX_TXCAL45DP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXCAL45DP_SHIFT)) & USBPHY_TX_TXCAL45DP_MASK)
19197#define USBPHY_TX_TXCAL45DP USBPHY_TX_TXCAL45DP_MASK
19198#define USBPHY_TX_USBPHY_TX_EDGECTRL_MASK (0x1C000000U)
19199#define USBPHY_TX_USBPHY_TX_EDGECTRL_SHIFT (26U)
19200#define USBPHY_TX_USBPHY_TX_EDGECTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_USBPHY_TX_EDGECTRL_SHIFT)) & USBPHY_TX_USBPHY_TX_EDGECTRL_MASK)
19201#define USBPHY_TX_USBPHY_TX_EDGECTRL USBPHY_TX_USBPHY_TX_EDGECTRL_MASK
19202
19203/*! @name TX_SET - USB PHY Transmitter Control Register */
19204#define USBPHY_TX_SET_D_CAL_MASK (0xFU)
19205#define USBPHY_TX_SET_D_CAL_SHIFT (0U)
19206#define USBPHY_TX_SET_D_CAL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_D_CAL_SHIFT)) & USBPHY_TX_SET_D_CAL_MASK)
19207#define USBPHY_TX_SET_D_CAL USBPHY_TX_SET_D_CAL_MASK
19208#define USBPHY_TX_SET_TXCAL45DM_MASK (0xF00U)
19209#define USBPHY_TX_SET_TXCAL45DM_SHIFT (8U)
19210#define USBPHY_TX_SET_TXCAL45DM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXCAL45DM_SHIFT)) & USBPHY_TX_SET_TXCAL45DM_MASK)
19211#define USBPHY_TX_SET_TXCAL45DM USBPHY_TX_SET_TXCAL45DM_MASK
19212#define USBPHY_TX_SET_TXCAL45DP_MASK (0xF0000U)
19213#define USBPHY_TX_SET_TXCAL45DP_SHIFT (16U)
19214#define USBPHY_TX_SET_TXCAL45DP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXCAL45DP_SHIFT)) & USBPHY_TX_SET_TXCAL45DP_MASK)
19215#define USBPHY_TX_SET_TXCAL45DP USBPHY_TX_SET_TXCAL45DP_MASK
19216#define USBPHY_TX_SET_USBPHY_TX_EDGECTRL_MASK (0x1C000000U)
19217#define USBPHY_TX_SET_USBPHY_TX_EDGECTRL_SHIFT (26U)
19218#define USBPHY_TX_SET_USBPHY_TX_EDGECTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_USBPHY_TX_EDGECTRL_SHIFT)) & USBPHY_TX_SET_USBPHY_TX_EDGECTRL_MASK)
19219#define USBPHY_TX_SET_USBPHY_TX_EDGECTRL USBPHY_TX_SET_USBPHY_TX_EDGECTRL_MASK
19220
19221/*! @name TX_CLR - USB PHY Transmitter Control Register */
19222#define USBPHY_TX_CLR_D_CAL_MASK (0xFU)
19223#define USBPHY_TX_CLR_D_CAL_SHIFT (0U)
19224#define USBPHY_TX_CLR_D_CAL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_D_CAL_SHIFT)) & USBPHY_TX_CLR_D_CAL_MASK)
19225#define USBPHY_TX_CLR_D_CAL USBPHY_TX_CLR_D_CAL_MASK
19226#define USBPHY_TX_CLR_TXCAL45DM_MASK (0xF00U)
19227#define USBPHY_TX_CLR_TXCAL45DM_SHIFT (8U)
19228#define USBPHY_TX_CLR_TXCAL45DM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXCAL45DM_SHIFT)) & USBPHY_TX_CLR_TXCAL45DM_MASK)
19229#define USBPHY_TX_CLR_TXCAL45DM USBPHY_TX_CLR_TXCAL45DM_MASK
19230#define USBPHY_TX_CLR_TXCAL45DP_MASK (0xF0000U)
19231#define USBPHY_TX_CLR_TXCAL45DP_SHIFT (16U)
19232#define USBPHY_TX_CLR_TXCAL45DP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXCAL45DP_SHIFT)) & USBPHY_TX_CLR_TXCAL45DP_MASK)
19233#define USBPHY_TX_CLR_TXCAL45DP USBPHY_TX_CLR_TXCAL45DP_MASK
19234#define USBPHY_TX_CLR_USBPHY_TX_EDGECTRL_MASK (0x1C000000U)
19235#define USBPHY_TX_CLR_USBPHY_TX_EDGECTRL_SHIFT (26U)
19236#define USBPHY_TX_CLR_USBPHY_TX_EDGECTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_USBPHY_TX_EDGECTRL_SHIFT)) & USBPHY_TX_CLR_USBPHY_TX_EDGECTRL_MASK)
19237#define USBPHY_TX_CLR_USBPHY_TX_EDGECTRL USBPHY_TX_CLR_USBPHY_TX_EDGECTRL_MASK
19238
19239/*! @name TX_TOG - USB PHY Transmitter Control Register */
19240#define USBPHY_TX_TOG_D_CAL_MASK (0xFU)
19241#define USBPHY_TX_TOG_D_CAL_SHIFT (0U)
19242#define USBPHY_TX_TOG_D_CAL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_D_CAL_SHIFT)) & USBPHY_TX_TOG_D_CAL_MASK)
19243#define USBPHY_TX_TOG_D_CAL USBPHY_TX_TOG_D_CAL_MASK
19244#define USBPHY_TX_TOG_TXCAL45DM_MASK (0xF00U)
19245#define USBPHY_TX_TOG_TXCAL45DM_SHIFT (8U)
19246#define USBPHY_TX_TOG_TXCAL45DM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXCAL45DM_SHIFT)) & USBPHY_TX_TOG_TXCAL45DM_MASK)
19247#define USBPHY_TX_TOG_TXCAL45DM USBPHY_TX_TOG_TXCAL45DM_MASK
19248#define USBPHY_TX_TOG_TXCAL45DP_MASK (0xF0000U)
19249#define USBPHY_TX_TOG_TXCAL45DP_SHIFT (16U)
19250#define USBPHY_TX_TOG_TXCAL45DP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXCAL45DP_SHIFT)) & USBPHY_TX_TOG_TXCAL45DP_MASK)
19251#define USBPHY_TX_TOG_TXCAL45DP USBPHY_TX_TOG_TXCAL45DP_MASK
19252#define USBPHY_TX_TOG_USBPHY_TX_EDGECTRL_MASK (0x1C000000U)
19253#define USBPHY_TX_TOG_USBPHY_TX_EDGECTRL_SHIFT (26U)
19254#define USBPHY_TX_TOG_USBPHY_TX_EDGECTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_USBPHY_TX_EDGECTRL_SHIFT)) & USBPHY_TX_TOG_USBPHY_TX_EDGECTRL_MASK)
19255#define USBPHY_TX_TOG_USBPHY_TX_EDGECTRL USBPHY_TX_TOG_USBPHY_TX_EDGECTRL_MASK
19256
19257/*! @name RX - USB PHY Receiver Control Register */
19258#define USBPHY_RX_ENVADJ_MASK (0x7U)
19259#define USBPHY_RX_ENVADJ_SHIFT (0U)
19260#define USBPHY_RX_ENVADJ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_ENVADJ_SHIFT)) & USBPHY_RX_ENVADJ_MASK)
19261#define USBPHY_RX_ENVADJ USBPHY_RX_ENVADJ_MASK
19262#define USBPHY_RX_DISCONADJ_MASK (0x70U)
19263#define USBPHY_RX_DISCONADJ_SHIFT (4U)
19264#define USBPHY_RX_DISCONADJ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_DISCONADJ_SHIFT)) & USBPHY_RX_DISCONADJ_MASK)
19265#define USBPHY_RX_DISCONADJ USBPHY_RX_DISCONADJ_MASK
19266#define USBPHY_RX_RXDBYPASS_MASK (0x400000U)
19267#define USBPHY_RX_RXDBYPASS_SHIFT (22U)
19268#define USBPHY_RX_RXDBYPASS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_RXDBYPASS_SHIFT)) & USBPHY_RX_RXDBYPASS_MASK)
19269#define USBPHY_RX_RXDBYPASS USBPHY_RX_RXDBYPASS_MASK
19270
19271/*! @name RX_SET - USB PHY Receiver Control Register */
19272#define USBPHY_RX_SET_ENVADJ_MASK (0x7U)
19273#define USBPHY_RX_SET_ENVADJ_SHIFT (0U)
19274#define USBPHY_RX_SET_ENVADJ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_ENVADJ_SHIFT)) & USBPHY_RX_SET_ENVADJ_MASK)
19275#define USBPHY_RX_SET_ENVADJ USBPHY_RX_SET_ENVADJ_MASK
19276#define USBPHY_RX_SET_DISCONADJ_MASK (0x70U)
19277#define USBPHY_RX_SET_DISCONADJ_SHIFT (4U)
19278#define USBPHY_RX_SET_DISCONADJ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_DISCONADJ_SHIFT)) & USBPHY_RX_SET_DISCONADJ_MASK)
19279#define USBPHY_RX_SET_DISCONADJ USBPHY_RX_SET_DISCONADJ_MASK
19280#define USBPHY_RX_SET_RXDBYPASS_MASK (0x400000U)
19281#define USBPHY_RX_SET_RXDBYPASS_SHIFT (22U)
19282#define USBPHY_RX_SET_RXDBYPASS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_RXDBYPASS_SHIFT)) & USBPHY_RX_SET_RXDBYPASS_MASK)
19283#define USBPHY_RX_SET_RXDBYPASS USBPHY_RX_SET_RXDBYPASS_MASK
19284
19285/*! @name RX_CLR - USB PHY Receiver Control Register */
19286#define USBPHY_RX_CLR_ENVADJ_MASK (0x7U)
19287#define USBPHY_RX_CLR_ENVADJ_SHIFT (0U)
19288#define USBPHY_RX_CLR_ENVADJ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_ENVADJ_SHIFT)) & USBPHY_RX_CLR_ENVADJ_MASK)
19289#define USBPHY_RX_CLR_ENVADJ USBPHY_RX_CLR_ENVADJ_MASK
19290#define USBPHY_RX_CLR_DISCONADJ_MASK (0x70U)
19291#define USBPHY_RX_CLR_DISCONADJ_SHIFT (4U)
19292#define USBPHY_RX_CLR_DISCONADJ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_DISCONADJ_SHIFT)) & USBPHY_RX_CLR_DISCONADJ_MASK)
19293#define USBPHY_RX_CLR_DISCONADJ USBPHY_RX_CLR_DISCONADJ_MASK
19294#define USBPHY_RX_CLR_RXDBYPASS_MASK (0x400000U)
19295#define USBPHY_RX_CLR_RXDBYPASS_SHIFT (22U)
19296#define USBPHY_RX_CLR_RXDBYPASS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_RXDBYPASS_SHIFT)) & USBPHY_RX_CLR_RXDBYPASS_MASK)
19297#define USBPHY_RX_CLR_RXDBYPASS USBPHY_RX_CLR_RXDBYPASS_MASK
19298
19299/*! @name RX_TOG - USB PHY Receiver Control Register */
19300#define USBPHY_RX_TOG_ENVADJ_MASK (0x7U)
19301#define USBPHY_RX_TOG_ENVADJ_SHIFT (0U)
19302#define USBPHY_RX_TOG_ENVADJ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_ENVADJ_SHIFT)) & USBPHY_RX_TOG_ENVADJ_MASK)
19303#define USBPHY_RX_TOG_ENVADJ USBPHY_RX_TOG_ENVADJ_MASK
19304#define USBPHY_RX_TOG_DISCONADJ_MASK (0x70U)
19305#define USBPHY_RX_TOG_DISCONADJ_SHIFT (4U)
19306#define USBPHY_RX_TOG_DISCONADJ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_DISCONADJ_SHIFT)) & USBPHY_RX_TOG_DISCONADJ_MASK)
19307#define USBPHY_RX_TOG_DISCONADJ USBPHY_RX_TOG_DISCONADJ_MASK
19308#define USBPHY_RX_TOG_RXDBYPASS_MASK (0x400000U)
19309#define USBPHY_RX_TOG_RXDBYPASS_SHIFT (22U)
19310#define USBPHY_RX_TOG_RXDBYPASS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_RXDBYPASS_SHIFT)) & USBPHY_RX_TOG_RXDBYPASS_MASK)
19311#define USBPHY_RX_TOG_RXDBYPASS USBPHY_RX_TOG_RXDBYPASS_MASK
19312
19313/*! @name CTRL - USB PHY General Control Register */
19314#define USBPHY_CTRL_ENHOSTDISCONDETECT_MASK (0x2U)
19315#define USBPHY_CTRL_ENHOSTDISCONDETECT_SHIFT (1U)
19316#define USBPHY_CTRL_ENHOSTDISCONDETECT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_ENHOSTDISCONDETECT_MASK)
19317#define USBPHY_CTRL_ENHOSTDISCONDETECT USBPHY_CTRL_ENHOSTDISCONDETECT_MASK
19318#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ_MASK (0x8U)
19319#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ_SHIFT (3U)
19320#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_HOSTDISCONDETECT_IRQ_MASK)
19321#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ USBPHY_CTRL_HOSTDISCONDETECT_IRQ_MASK
19322#define USBPHY_CTRL_ENDEVPLUGINDET_MASK (0x10U)
19323#define USBPHY_CTRL_ENDEVPLUGINDET_SHIFT (4U)
19324#define USBPHY_CTRL_ENDEVPLUGINDET_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_ENDEVPLUGINDET_MASK)
19325#define USBPHY_CTRL_ENDEVPLUGINDET USBPHY_CTRL_ENDEVPLUGINDET_MASK
19326#define USBPHY_CTRL_DEVPLUGIN_IRQ_MASK (0x1000U)
19327#define USBPHY_CTRL_DEVPLUGIN_IRQ_SHIFT (12U)
19328#define USBPHY_CTRL_DEVPLUGIN_IRQ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_DEVPLUGIN_IRQ_MASK)
19329#define USBPHY_CTRL_DEVPLUGIN_IRQ USBPHY_CTRL_DEVPLUGIN_IRQ_MASK
19330#define USBPHY_CTRL_ENUTMILEVEL2_MASK (0x4000U)
19331#define USBPHY_CTRL_ENUTMILEVEL2_SHIFT (14U)
19332#define USBPHY_CTRL_ENUTMILEVEL2_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_ENUTMILEVEL2_MASK)
19333#define USBPHY_CTRL_ENUTMILEVEL2 USBPHY_CTRL_ENUTMILEVEL2_MASK
19334#define USBPHY_CTRL_ENUTMILEVEL3_MASK (0x8000U)
19335#define USBPHY_CTRL_ENUTMILEVEL3_SHIFT (15U)
19336#define USBPHY_CTRL_ENUTMILEVEL3_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_ENUTMILEVEL3_MASK)
19337#define USBPHY_CTRL_ENUTMILEVEL3 USBPHY_CTRL_ENUTMILEVEL3_MASK
19338#define USBPHY_CTRL_AUTORESUME_EN_MASK (0x40000U)
19339#define USBPHY_CTRL_AUTORESUME_EN_SHIFT (18U)
19340#define USBPHY_CTRL_AUTORESUME_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_AUTORESUME_EN_MASK)
19341#define USBPHY_CTRL_AUTORESUME_EN USBPHY_CTRL_AUTORESUME_EN_MASK
19342#define USBPHY_CTRL_ENAUTOCLR_CLKGATE_MASK (0x80000U)
19343#define USBPHY_CTRL_ENAUTOCLR_CLKGATE_SHIFT (19U)
19344#define USBPHY_CTRL_ENAUTOCLR_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_ENAUTOCLR_CLKGATE_MASK)
19345#define USBPHY_CTRL_ENAUTOCLR_CLKGATE USBPHY_CTRL_ENAUTOCLR_CLKGATE_MASK
19346#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD_MASK (0x100000U)
19347#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD_SHIFT (20U)
19348#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_ENAUTOCLR_PHY_PWD_MASK)
19349#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD USBPHY_CTRL_ENAUTOCLR_PHY_PWD_MASK
19350#define USBPHY_CTRL_FSDLL_RST_EN_MASK (0x1000000U)
19351#define USBPHY_CTRL_FSDLL_RST_EN_SHIFT (24U)
19352#define USBPHY_CTRL_FSDLL_RST_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_FSDLL_RST_EN_SHIFT)) & USBPHY_CTRL_FSDLL_RST_EN_MASK)
19353#define USBPHY_CTRL_FSDLL_RST_EN USBPHY_CTRL_FSDLL_RST_EN_MASK
19354#define USBPHY_CTRL_OTG_ID_VALUE_MASK (0x8000000U)
19355#define USBPHY_CTRL_OTG_ID_VALUE_SHIFT (27U)
19356#define USBPHY_CTRL_OTG_ID_VALUE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_OTG_ID_VALUE_SHIFT)) & USBPHY_CTRL_OTG_ID_VALUE_MASK)
19357#define USBPHY_CTRL_OTG_ID_VALUE USBPHY_CTRL_OTG_ID_VALUE_MASK
19358#define USBPHY_CTRL_HOST_FORCE_LS_SE0_MASK (0x10000000U)
19359#define USBPHY_CTRL_HOST_FORCE_LS_SE0_SHIFT (28U)
19360#define USBPHY_CTRL_HOST_FORCE_LS_SE0_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_HOST_FORCE_LS_SE0_MASK)
19361#define USBPHY_CTRL_HOST_FORCE_LS_SE0 USBPHY_CTRL_HOST_FORCE_LS_SE0_MASK
19362#define USBPHY_CTRL_UTMI_SUSPENDM_MASK (0x20000000U)
19363#define USBPHY_CTRL_UTMI_SUSPENDM_SHIFT (29U)
19364#define USBPHY_CTRL_UTMI_SUSPENDM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_UTMI_SUSPENDM_MASK)
19365#define USBPHY_CTRL_UTMI_SUSPENDM USBPHY_CTRL_UTMI_SUSPENDM_MASK
19366#define USBPHY_CTRL_CLKGATE_MASK (0x40000000U)
19367#define USBPHY_CTRL_CLKGATE_SHIFT (30U)
19368#define USBPHY_CTRL_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLKGATE_SHIFT)) & USBPHY_CTRL_CLKGATE_MASK)
19369#define USBPHY_CTRL_CLKGATE USBPHY_CTRL_CLKGATE_MASK
19370#define USBPHY_CTRL_SFTRST_MASK (0x80000000U)
19371#define USBPHY_CTRL_SFTRST_SHIFT (31U)
19372#define USBPHY_CTRL_SFTRST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SFTRST_SHIFT)) & USBPHY_CTRL_SFTRST_MASK)
19373#define USBPHY_CTRL_SFTRST USBPHY_CTRL_SFTRST_MASK
19374
19375/*! @name CTRL_SET - USB PHY General Control Register */
19376#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT_MASK (0x2U)
19377#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT_SHIFT (1U)
19378#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_SET_ENHOSTDISCONDETECT_MASK)
19379#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT USBPHY_CTRL_SET_ENHOSTDISCONDETECT_MASK
19380#define USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_MASK (0x8U)
19381#define USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_SHIFT (3U)
19382#define USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_MASK)
19383#define USBPHY_CTRL_SET_ENDEVPLUGINDET_MASK (0x10U)
19384#define USBPHY_CTRL_SET_ENDEVPLUGINDET_SHIFT (4U)
19385#define USBPHY_CTRL_SET_ENDEVPLUGINDET_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_SET_ENDEVPLUGINDET_MASK)
19386#define USBPHY_CTRL_SET_ENDEVPLUGINDET USBPHY_CTRL_SET_ENDEVPLUGINDET_MASK
19387#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ_MASK (0x1000U)
19388#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ_SHIFT (12U)
19389#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_SET_DEVPLUGIN_IRQ_MASK)
19390#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ USBPHY_CTRL_SET_DEVPLUGIN_IRQ_MASK
19391#define USBPHY_CTRL_SET_ENUTMILEVEL2_MASK (0x4000U)
19392#define USBPHY_CTRL_SET_ENUTMILEVEL2_SHIFT (14U)
19393#define USBPHY_CTRL_SET_ENUTMILEVEL2_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_SET_ENUTMILEVEL2_MASK)
19394#define USBPHY_CTRL_SET_ENUTMILEVEL2 USBPHY_CTRL_SET_ENUTMILEVEL2_MASK
19395#define USBPHY_CTRL_SET_ENUTMILEVEL3_MASK (0x8000U)
19396#define USBPHY_CTRL_SET_ENUTMILEVEL3_SHIFT (15U)
19397#define USBPHY_CTRL_SET_ENUTMILEVEL3_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_SET_ENUTMILEVEL3_MASK)
19398#define USBPHY_CTRL_SET_ENUTMILEVEL3 USBPHY_CTRL_SET_ENUTMILEVEL3_MASK
19399#define USBPHY_CTRL_SET_AUTORESUME_EN_MASK (0x40000U)
19400#define USBPHY_CTRL_SET_AUTORESUME_EN_SHIFT (18U)
19401#define USBPHY_CTRL_SET_AUTORESUME_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_SET_AUTORESUME_EN_MASK)
19402#define USBPHY_CTRL_SET_AUTORESUME_EN USBPHY_CTRL_SET_AUTORESUME_EN_MASK
19403#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_MASK (0x80000U)
19404#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_SHIFT (19U)
19405#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_MASK)
19406#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_MASK
19407#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_MASK (0x100000U)
19408#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_SHIFT (20U)
19409#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_MASK)
19410#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_MASK
19411#define USBPHY_CTRL_SET_FSDLL_RST_EN_MASK (0x1000000U)
19412#define USBPHY_CTRL_SET_FSDLL_RST_EN_SHIFT (24U)
19413#define USBPHY_CTRL_SET_FSDLL_RST_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_FSDLL_RST_EN_SHIFT)) & USBPHY_CTRL_SET_FSDLL_RST_EN_MASK)
19414#define USBPHY_CTRL_SET_FSDLL_RST_EN USBPHY_CTRL_SET_FSDLL_RST_EN_MASK
19415#define USBPHY_CTRL_SET_OTG_ID_VALUE_MASK (0x8000000U)
19416#define USBPHY_CTRL_SET_OTG_ID_VALUE_SHIFT (27U)
19417#define USBPHY_CTRL_SET_OTG_ID_VALUE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_OTG_ID_VALUE_SHIFT)) & USBPHY_CTRL_SET_OTG_ID_VALUE_MASK)
19418#define USBPHY_CTRL_SET_OTG_ID_VALUE USBPHY_CTRL_SET_OTG_ID_VALUE_MASK
19419#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_MASK (0x10000000U)
19420#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_SHIFT (28U)
19421#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_MASK)
19422#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0 USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_MASK
19423#define USBPHY_CTRL_SET_UTMI_SUSPENDM_MASK (0x20000000U)
19424#define USBPHY_CTRL_SET_UTMI_SUSPENDM_SHIFT (29U)
19425#define USBPHY_CTRL_SET_UTMI_SUSPENDM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_SET_UTMI_SUSPENDM_MASK)
19426#define USBPHY_CTRL_SET_UTMI_SUSPENDM USBPHY_CTRL_SET_UTMI_SUSPENDM_MASK
19427#define USBPHY_CTRL_SET_CLKGATE_MASK (0x40000000U)
19428#define USBPHY_CTRL_SET_CLKGATE_SHIFT (30U)
19429#define USBPHY_CTRL_SET_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_CLKGATE_SHIFT)) & USBPHY_CTRL_SET_CLKGATE_MASK)
19430#define USBPHY_CTRL_SET_CLKGATE USBPHY_CTRL_SET_CLKGATE_MASK
19431#define USBPHY_CTRL_SET_SFTRST_MASK (0x80000000U)
19432#define USBPHY_CTRL_SET_SFTRST_SHIFT (31U)
19433#define USBPHY_CTRL_SET_SFTRST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_SFTRST_SHIFT)) & USBPHY_CTRL_SET_SFTRST_MASK)
19434#define USBPHY_CTRL_SET_SFTRST USBPHY_CTRL_SET_SFTRST_MASK
19435
19436/*! @name CTRL_CLR - USB PHY General Control Register */
19437#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_MASK (0x2U)
19438#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_SHIFT (1U)
19439#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_MASK)
19440#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_MASK
19441#define USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_MASK (0x8U)
19442#define USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_SHIFT (3U)
19443#define USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_MASK)
19444#define USBPHY_CTRL_CLR_ENDEVPLUGINDET_MASK (0x10U)
19445#define USBPHY_CTRL_CLR_ENDEVPLUGINDET_SHIFT (4U)
19446#define USBPHY_CTRL_CLR_ENDEVPLUGINDET_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_CLR_ENDEVPLUGINDET_MASK)
19447#define USBPHY_CTRL_CLR_ENDEVPLUGINDET USBPHY_CTRL_CLR_ENDEVPLUGINDET_MASK
19448#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_MASK (0x1000U)
19449#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_SHIFT (12U)
19450#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_MASK)
19451#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_MASK
19452#define USBPHY_CTRL_CLR_ENUTMILEVEL2_MASK (0x4000U)
19453#define USBPHY_CTRL_CLR_ENUTMILEVEL2_SHIFT (14U)
19454#define USBPHY_CTRL_CLR_ENUTMILEVEL2_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_CLR_ENUTMILEVEL2_MASK)
19455#define USBPHY_CTRL_CLR_ENUTMILEVEL2 USBPHY_CTRL_CLR_ENUTMILEVEL2_MASK
19456#define USBPHY_CTRL_CLR_ENUTMILEVEL3_MASK (0x8000U)
19457#define USBPHY_CTRL_CLR_ENUTMILEVEL3_SHIFT (15U)
19458#define USBPHY_CTRL_CLR_ENUTMILEVEL3_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_CLR_ENUTMILEVEL3_MASK)
19459#define USBPHY_CTRL_CLR_ENUTMILEVEL3 USBPHY_CTRL_CLR_ENUTMILEVEL3_MASK
19460#define USBPHY_CTRL_CLR_AUTORESUME_EN_MASK (0x40000U)
19461#define USBPHY_CTRL_CLR_AUTORESUME_EN_SHIFT (18U)
19462#define USBPHY_CTRL_CLR_AUTORESUME_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_CLR_AUTORESUME_EN_MASK)
19463#define USBPHY_CTRL_CLR_AUTORESUME_EN USBPHY_CTRL_CLR_AUTORESUME_EN_MASK
19464#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_MASK (0x80000U)
19465#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_SHIFT (19U)
19466#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_MASK)
19467#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_MASK
19468#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_MASK (0x100000U)
19469#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_SHIFT (20U)
19470#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_MASK)
19471#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_MASK
19472#define USBPHY_CTRL_CLR_FSDLL_RST_EN_MASK (0x1000000U)
19473#define USBPHY_CTRL_CLR_FSDLL_RST_EN_SHIFT (24U)
19474#define USBPHY_CTRL_CLR_FSDLL_RST_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_FSDLL_RST_EN_SHIFT)) & USBPHY_CTRL_CLR_FSDLL_RST_EN_MASK)
19475#define USBPHY_CTRL_CLR_FSDLL_RST_EN USBPHY_CTRL_CLR_FSDLL_RST_EN_MASK
19476#define USBPHY_CTRL_CLR_OTG_ID_VALUE_MASK (0x8000000U)
19477#define USBPHY_CTRL_CLR_OTG_ID_VALUE_SHIFT (27U)
19478#define USBPHY_CTRL_CLR_OTG_ID_VALUE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_OTG_ID_VALUE_SHIFT)) & USBPHY_CTRL_CLR_OTG_ID_VALUE_MASK)
19479#define USBPHY_CTRL_CLR_OTG_ID_VALUE USBPHY_CTRL_CLR_OTG_ID_VALUE_MASK
19480#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_MASK (0x10000000U)
19481#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_SHIFT (28U)
19482#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_MASK)
19483#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0 USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_MASK
19484#define USBPHY_CTRL_CLR_UTMI_SUSPENDM_MASK (0x20000000U)
19485#define USBPHY_CTRL_CLR_UTMI_SUSPENDM_SHIFT (29U)
19486#define USBPHY_CTRL_CLR_UTMI_SUSPENDM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_CLR_UTMI_SUSPENDM_MASK)
19487#define USBPHY_CTRL_CLR_UTMI_SUSPENDM USBPHY_CTRL_CLR_UTMI_SUSPENDM_MASK
19488#define USBPHY_CTRL_CLR_CLKGATE_MASK (0x40000000U)
19489#define USBPHY_CTRL_CLR_CLKGATE_SHIFT (30U)
19490#define USBPHY_CTRL_CLR_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_CLKGATE_SHIFT)) & USBPHY_CTRL_CLR_CLKGATE_MASK)
19491#define USBPHY_CTRL_CLR_CLKGATE USBPHY_CTRL_CLR_CLKGATE_MASK
19492#define USBPHY_CTRL_CLR_SFTRST_MASK (0x80000000U)
19493#define USBPHY_CTRL_CLR_SFTRST_SHIFT (31U)
19494#define USBPHY_CTRL_CLR_SFTRST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_SFTRST_SHIFT)) & USBPHY_CTRL_CLR_SFTRST_MASK)
19495#define USBPHY_CTRL_CLR_SFTRST USBPHY_CTRL_CLR_SFTRST_MASK
19496
19497/*! @name CTRL_TOG - USB PHY General Control Register */
19498#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_MASK (0x2U)
19499#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_SHIFT (1U)
19500#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_MASK)
19501#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_MASK
19502#define USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_MASK (0x8U)
19503#define USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_SHIFT (3U)
19504#define USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_MASK)
19505#define USBPHY_CTRL_TOG_ENDEVPLUGINDET_MASK (0x10U)
19506#define USBPHY_CTRL_TOG_ENDEVPLUGINDET_SHIFT (4U)
19507#define USBPHY_CTRL_TOG_ENDEVPLUGINDET_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_TOG_ENDEVPLUGINDET_MASK)
19508#define USBPHY_CTRL_TOG_ENDEVPLUGINDET USBPHY_CTRL_TOG_ENDEVPLUGINDET_MASK
19509#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_MASK (0x1000U)
19510#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_SHIFT (12U)
19511#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_MASK)
19512#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_MASK
19513#define USBPHY_CTRL_TOG_ENUTMILEVEL2_MASK (0x4000U)
19514#define USBPHY_CTRL_TOG_ENUTMILEVEL2_SHIFT (14U)
19515#define USBPHY_CTRL_TOG_ENUTMILEVEL2_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_TOG_ENUTMILEVEL2_MASK)
19516#define USBPHY_CTRL_TOG_ENUTMILEVEL2 USBPHY_CTRL_TOG_ENUTMILEVEL2_MASK
19517#define USBPHY_CTRL_TOG_ENUTMILEVEL3_MASK (0x8000U)
19518#define USBPHY_CTRL_TOG_ENUTMILEVEL3_SHIFT (15U)
19519#define USBPHY_CTRL_TOG_ENUTMILEVEL3_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_TOG_ENUTMILEVEL3_MASK)
19520#define USBPHY_CTRL_TOG_ENUTMILEVEL3 USBPHY_CTRL_TOG_ENUTMILEVEL3_MASK
19521#define USBPHY_CTRL_TOG_AUTORESUME_EN_MASK (0x40000U)
19522#define USBPHY_CTRL_TOG_AUTORESUME_EN_SHIFT (18U)
19523#define USBPHY_CTRL_TOG_AUTORESUME_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_TOG_AUTORESUME_EN_MASK)
19524#define USBPHY_CTRL_TOG_AUTORESUME_EN USBPHY_CTRL_TOG_AUTORESUME_EN_MASK
19525#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_MASK (0x80000U)
19526#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_SHIFT (19U)
19527#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_MASK)
19528#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_MASK
19529#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_MASK (0x100000U)
19530#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_SHIFT (20U)
19531#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_MASK)
19532#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_MASK
19533#define USBPHY_CTRL_TOG_FSDLL_RST_EN_MASK (0x1000000U)
19534#define USBPHY_CTRL_TOG_FSDLL_RST_EN_SHIFT (24U)
19535#define USBPHY_CTRL_TOG_FSDLL_RST_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_FSDLL_RST_EN_SHIFT)) & USBPHY_CTRL_TOG_FSDLL_RST_EN_MASK)
19536#define USBPHY_CTRL_TOG_FSDLL_RST_EN USBPHY_CTRL_TOG_FSDLL_RST_EN_MASK
19537#define USBPHY_CTRL_TOG_OTG_ID_VALUE_MASK (0x8000000U)
19538#define USBPHY_CTRL_TOG_OTG_ID_VALUE_SHIFT (27U)
19539#define USBPHY_CTRL_TOG_OTG_ID_VALUE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_OTG_ID_VALUE_SHIFT)) & USBPHY_CTRL_TOG_OTG_ID_VALUE_MASK)
19540#define USBPHY_CTRL_TOG_OTG_ID_VALUE USBPHY_CTRL_TOG_OTG_ID_VALUE_MASK
19541#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_MASK (0x10000000U)
19542#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_SHIFT (28U)
19543#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_MASK)
19544#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0 USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_MASK
19545#define USBPHY_CTRL_TOG_UTMI_SUSPENDM_MASK (0x20000000U)
19546#define USBPHY_CTRL_TOG_UTMI_SUSPENDM_SHIFT (29U)
19547#define USBPHY_CTRL_TOG_UTMI_SUSPENDM_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_TOG_UTMI_SUSPENDM_MASK)
19548#define USBPHY_CTRL_TOG_UTMI_SUSPENDM USBPHY_CTRL_TOG_UTMI_SUSPENDM_MASK
19549#define USBPHY_CTRL_TOG_CLKGATE_MASK (0x40000000U)
19550#define USBPHY_CTRL_TOG_CLKGATE_SHIFT (30U)
19551#define USBPHY_CTRL_TOG_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_CLKGATE_SHIFT)) & USBPHY_CTRL_TOG_CLKGATE_MASK)
19552#define USBPHY_CTRL_TOG_CLKGATE USBPHY_CTRL_TOG_CLKGATE_MASK
19553#define USBPHY_CTRL_TOG_SFTRST_MASK (0x80000000U)
19554#define USBPHY_CTRL_TOG_SFTRST_SHIFT (31U)
19555#define USBPHY_CTRL_TOG_SFTRST_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_SFTRST_SHIFT)) & USBPHY_CTRL_TOG_SFTRST_MASK)
19556#define USBPHY_CTRL_TOG_SFTRST USBPHY_CTRL_TOG_SFTRST_MASK
19557
19558/*! @name STATUS - USB PHY Status Register */
19559#define USBPHY_STATUS_HOSTDISCONDETECT_STATUS_MASK (0x8U)
19560#define USBPHY_STATUS_HOSTDISCONDETECT_STATUS_SHIFT (3U)
19561#define USBPHY_STATUS_HOSTDISCONDETECT_STATUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_HOSTDISCONDETECT_STATUS_SHIFT)) & USBPHY_STATUS_HOSTDISCONDETECT_STATUS_MASK)
19562#define USBPHY_STATUS_DEVPLUGIN_STATUS_MASK (0x40U)
19563#define USBPHY_STATUS_DEVPLUGIN_STATUS_SHIFT (6U)
19564#define USBPHY_STATUS_DEVPLUGIN_STATUS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_DEVPLUGIN_STATUS_SHIFT)) & USBPHY_STATUS_DEVPLUGIN_STATUS_MASK)
19565#define USBPHY_STATUS_DEVPLUGIN_STATUS USBPHY_STATUS_DEVPLUGIN_STATUS_MASK
19566#define USBPHY_STATUS_OTGID_STATUS_MASK (0x100U)
19567#define USBPHY_STATUS_OTGID_STATUS_SHIFT (8U)
19568#define USBPHY_STATUS_OTGID_STATUS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_OTGID_STATUS_SHIFT)) & USBPHY_STATUS_OTGID_STATUS_MASK)
19569#define USBPHY_STATUS_OTGID_STATUS USBPHY_STATUS_OTGID_STATUS_MASK
19570#define USBPHY_STATUS_RESUME_STATUS_MASK (0x400U)
19571#define USBPHY_STATUS_RESUME_STATUS_SHIFT (10U)
19572#define USBPHY_STATUS_RESUME_STATUS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_RESUME_STATUS_SHIFT)) & USBPHY_STATUS_RESUME_STATUS_MASK)
19573#define USBPHY_STATUS_RESUME_STATUS USBPHY_STATUS_RESUME_STATUS_MASK
19574
19575/*! @name DEBUG - USB PHY Debug Register */
19576#define USBPHY_DEBUG_OTGIDPIOLOCK_MASK (0x1U)
19577#define USBPHY_DEBUG_OTGIDPIOLOCK_SHIFT (0U)
19578#define USBPHY_DEBUG_OTGIDPIOLOCK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_OTGIDPIOLOCK_SHIFT)) & USBPHY_DEBUG_OTGIDPIOLOCK_MASK)
19579#define USBPHY_DEBUG_OTGIDPIOLOCK USBPHY_DEBUG_OTGIDPIOLOCK_MASK
19580#define USBPHY_DEBUG_DEBUG_INTERFACE_HOLD_MASK (0x2U)
19581#define USBPHY_DEBUG_DEBUG_INTERFACE_HOLD_SHIFT (1U)
19582#define USBPHY_DEBUG_DEBUG_INTERFACE_HOLD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_DEBUG_INTERFACE_HOLD_SHIFT)) & USBPHY_DEBUG_DEBUG_INTERFACE_HOLD_MASK)
19583#define USBPHY_DEBUG_DEBUG_INTERFACE_HOLD USBPHY_DEBUG_DEBUG_INTERFACE_HOLD_MASK
19584#define USBPHY_DEBUG_HSTPULLDOWN_MASK (0xCU)
19585#define USBPHY_DEBUG_HSTPULLDOWN_SHIFT (2U)
19586#define USBPHY_DEBUG_HSTPULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_HSTPULLDOWN_SHIFT)) & USBPHY_DEBUG_HSTPULLDOWN_MASK)
19587#define USBPHY_DEBUG_HSTPULLDOWN USBPHY_DEBUG_HSTPULLDOWN_MASK
19588#define USBPHY_DEBUG_ENHSTPULLDOWN_MASK (0x30U)
19589#define USBPHY_DEBUG_ENHSTPULLDOWN_SHIFT (4U)
19590#define USBPHY_DEBUG_ENHSTPULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_ENHSTPULLDOWN_SHIFT)) & USBPHY_DEBUG_ENHSTPULLDOWN_MASK)
19591#define USBPHY_DEBUG_ENHSTPULLDOWN USBPHY_DEBUG_ENHSTPULLDOWN_MASK
19592#define USBPHY_DEBUG_TX2RXCOUNT_MASK (0xF00U)
19593#define USBPHY_DEBUG_TX2RXCOUNT_SHIFT (8U)
19594#define USBPHY_DEBUG_TX2RXCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TX2RXCOUNT_SHIFT)) & USBPHY_DEBUG_TX2RXCOUNT_MASK)
19595#define USBPHY_DEBUG_TX2RXCOUNT USBPHY_DEBUG_TX2RXCOUNT_MASK
19596#define USBPHY_DEBUG_ENTX2RXCOUNT_MASK (0x1000U)
19597#define USBPHY_DEBUG_ENTX2RXCOUNT_SHIFT (12U)
19598#define USBPHY_DEBUG_ENTX2RXCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_ENTX2RXCOUNT_SHIFT)) & USBPHY_DEBUG_ENTX2RXCOUNT_MASK)
19599#define USBPHY_DEBUG_ENTX2RXCOUNT USBPHY_DEBUG_ENTX2RXCOUNT_MASK
19600#define USBPHY_DEBUG_SQUELCHRESETCOUNT_MASK (0x1F0000U)
19601#define USBPHY_DEBUG_SQUELCHRESETCOUNT_SHIFT (16U)
19602#define USBPHY_DEBUG_SQUELCHRESETCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SQUELCHRESETCOUNT_SHIFT)) & USBPHY_DEBUG_SQUELCHRESETCOUNT_MASK)
19603#define USBPHY_DEBUG_SQUELCHRESETCOUNT USBPHY_DEBUG_SQUELCHRESETCOUNT_MASK
19604#define USBPHY_DEBUG_ENSQUELCHRESET_MASK (0x1000000U)
19605#define USBPHY_DEBUG_ENSQUELCHRESET_SHIFT (24U)
19606#define USBPHY_DEBUG_ENSQUELCHRESET_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_ENSQUELCHRESET_SHIFT)) & USBPHY_DEBUG_ENSQUELCHRESET_MASK)
19607#define USBPHY_DEBUG_ENSQUELCHRESET USBPHY_DEBUG_ENSQUELCHRESET_MASK
19608#define USBPHY_DEBUG_SQUELCHRESETLENGTH_MASK (0x1E000000U)
19609#define USBPHY_DEBUG_SQUELCHRESETLENGTH_SHIFT (25U)
19610#define USBPHY_DEBUG_SQUELCHRESETLENGTH_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SQUELCHRESETLENGTH_SHIFT)) & USBPHY_DEBUG_SQUELCHRESETLENGTH_MASK)
19611#define USBPHY_DEBUG_SQUELCHRESETLENGTH USBPHY_DEBUG_SQUELCHRESETLENGTH_MASK
19612#define USBPHY_DEBUG_HOST_RESUME_DEBUG_MASK (0x20000000U)
19613#define USBPHY_DEBUG_HOST_RESUME_DEBUG_SHIFT (29U)
19614#define USBPHY_DEBUG_HOST_RESUME_DEBUG_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_HOST_RESUME_DEBUG_SHIFT)) & USBPHY_DEBUG_HOST_RESUME_DEBUG_MASK)
19615#define USBPHY_DEBUG_HOST_RESUME_DEBUG USBPHY_DEBUG_HOST_RESUME_DEBUG_MASK
19616#define USBPHY_DEBUG_CLKGATE_MASK (0x40000000U)
19617#define USBPHY_DEBUG_CLKGATE_SHIFT (30U)
19618#define USBPHY_DEBUG_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLKGATE_SHIFT)) & USBPHY_DEBUG_CLKGATE_MASK)
19619#define USBPHY_DEBUG_CLKGATE USBPHY_DEBUG_CLKGATE_MASK
19620
19621/*! @name DEBUG_SET - USB PHY Debug Register */
19622#define USBPHY_DEBUG_SET_OTGIDPIOLOCK_MASK (0x1U)
19623#define USBPHY_DEBUG_SET_OTGIDPIOLOCK_SHIFT (0U)
19624#define USBPHY_DEBUG_SET_OTGIDPIOLOCK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_OTGIDPIOLOCK_SHIFT)) & USBPHY_DEBUG_SET_OTGIDPIOLOCK_MASK)
19625#define USBPHY_DEBUG_SET_OTGIDPIOLOCK USBPHY_DEBUG_SET_OTGIDPIOLOCK_MASK
19626#define USBPHY_DEBUG_SET_DEBUG_INTERFACE_HOLD_MASK (0x2U)
19627#define USBPHY_DEBUG_SET_DEBUG_INTERFACE_HOLD_SHIFT (1U)
19628#define USBPHY_DEBUG_SET_DEBUG_INTERFACE_HOLD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_DEBUG_INTERFACE_HOLD_SHIFT)) & USBPHY_DEBUG_SET_DEBUG_INTERFACE_HOLD_MASK)
19629#define USBPHY_DEBUG_SET_HSTPULLDOWN_MASK (0xCU)
19630#define USBPHY_DEBUG_SET_HSTPULLDOWN_SHIFT (2U)
19631#define USBPHY_DEBUG_SET_HSTPULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_HSTPULLDOWN_SHIFT)) & USBPHY_DEBUG_SET_HSTPULLDOWN_MASK)
19632#define USBPHY_DEBUG_SET_HSTPULLDOWN USBPHY_DEBUG_SET_HSTPULLDOWN_MASK
19633#define USBPHY_DEBUG_SET_ENHSTPULLDOWN_MASK (0x30U)
19634#define USBPHY_DEBUG_SET_ENHSTPULLDOWN_SHIFT (4U)
19635#define USBPHY_DEBUG_SET_ENHSTPULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_ENHSTPULLDOWN_SHIFT)) & USBPHY_DEBUG_SET_ENHSTPULLDOWN_MASK)
19636#define USBPHY_DEBUG_SET_ENHSTPULLDOWN USBPHY_DEBUG_SET_ENHSTPULLDOWN_MASK
19637#define USBPHY_DEBUG_SET_TX2RXCOUNT_MASK (0xF00U)
19638#define USBPHY_DEBUG_SET_TX2RXCOUNT_SHIFT (8U)
19639#define USBPHY_DEBUG_SET_TX2RXCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_TX2RXCOUNT_SHIFT)) & USBPHY_DEBUG_SET_TX2RXCOUNT_MASK)
19640#define USBPHY_DEBUG_SET_TX2RXCOUNT USBPHY_DEBUG_SET_TX2RXCOUNT_MASK
19641#define USBPHY_DEBUG_SET_ENTX2RXCOUNT_MASK (0x1000U)
19642#define USBPHY_DEBUG_SET_ENTX2RXCOUNT_SHIFT (12U)
19643#define USBPHY_DEBUG_SET_ENTX2RXCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_ENTX2RXCOUNT_SHIFT)) & USBPHY_DEBUG_SET_ENTX2RXCOUNT_MASK)
19644#define USBPHY_DEBUG_SET_ENTX2RXCOUNT USBPHY_DEBUG_SET_ENTX2RXCOUNT_MASK
19645#define USBPHY_DEBUG_SET_SQUELCHRESETCOUNT_MASK (0x1F0000U)
19646#define USBPHY_DEBUG_SET_SQUELCHRESETCOUNT_SHIFT (16U)
19647#define USBPHY_DEBUG_SET_SQUELCHRESETCOUNT_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_SQUELCHRESETCOUNT_SHIFT)) & USBPHY_DEBUG_SET_SQUELCHRESETCOUNT_MASK)
19648#define USBPHY_DEBUG_SET_SQUELCHRESETCOUNT USBPHY_DEBUG_SET_SQUELCHRESETCOUNT_MASK
19649#define USBPHY_DEBUG_SET_ENSQUELCHRESET_MASK (0x1000000U)
19650#define USBPHY_DEBUG_SET_ENSQUELCHRESET_SHIFT (24U)
19651#define USBPHY_DEBUG_SET_ENSQUELCHRESET_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_ENSQUELCHRESET_SHIFT)) & USBPHY_DEBUG_SET_ENSQUELCHRESET_MASK)
19652#define USBPHY_DEBUG_SET_ENSQUELCHRESET USBPHY_DEBUG_SET_ENSQUELCHRESET_MASK
19653#define USBPHY_DEBUG_SET_SQUELCHRESETLENGTH_MASK (0x1E000000U)
19654#define USBPHY_DEBUG_SET_SQUELCHRESETLENGTH_SHIFT (25U)
19655#define USBPHY_DEBUG_SET_SQUELCHRESETLENGTH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_SQUELCHRESETLENGTH_SHIFT)) & USBPHY_DEBUG_SET_SQUELCHRESETLENGTH_MASK)
19656#define USBPHY_DEBUG_SET_HOST_RESUME_DEBUG_MASK (0x20000000U)
19657#define USBPHY_DEBUG_SET_HOST_RESUME_DEBUG_SHIFT (29U)
19658#define USBPHY_DEBUG_SET_HOST_RESUME_DEBUG_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_HOST_RESUME_DEBUG_SHIFT)) & USBPHY_DEBUG_SET_HOST_RESUME_DEBUG_MASK)
19659#define USBPHY_DEBUG_SET_HOST_RESUME_DEBUG USBPHY_DEBUG_SET_HOST_RESUME_DEBUG_MASK
19660#define USBPHY_DEBUG_SET_CLKGATE_MASK (0x40000000U)
19661#define USBPHY_DEBUG_SET_CLKGATE_SHIFT (30U)
19662#define USBPHY_DEBUG_SET_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_SET_CLKGATE_SHIFT)) & USBPHY_DEBUG_SET_CLKGATE_MASK)
19663#define USBPHY_DEBUG_SET_CLKGATE USBPHY_DEBUG_SET_CLKGATE_MASK
19664
19665/*! @name DEBUG_CLR - USB PHY Debug Register */
19666#define USBPHY_DEBUG_CLR_OTGIDPIOLOCK_MASK (0x1U)
19667#define USBPHY_DEBUG_CLR_OTGIDPIOLOCK_SHIFT (0U)
19668#define USBPHY_DEBUG_CLR_OTGIDPIOLOCK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_OTGIDPIOLOCK_SHIFT)) & USBPHY_DEBUG_CLR_OTGIDPIOLOCK_MASK)
19669#define USBPHY_DEBUG_CLR_OTGIDPIOLOCK USBPHY_DEBUG_CLR_OTGIDPIOLOCK_MASK
19670#define USBPHY_DEBUG_CLR_DEBUG_INTERFACE_HOLD_MASK (0x2U)
19671#define USBPHY_DEBUG_CLR_DEBUG_INTERFACE_HOLD_SHIFT (1U)
19672#define USBPHY_DEBUG_CLR_DEBUG_INTERFACE_HOLD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_DEBUG_INTERFACE_HOLD_SHIFT)) & USBPHY_DEBUG_CLR_DEBUG_INTERFACE_HOLD_MASK)
19673#define USBPHY_DEBUG_CLR_HSTPULLDOWN_MASK (0xCU)
19674#define USBPHY_DEBUG_CLR_HSTPULLDOWN_SHIFT (2U)
19675#define USBPHY_DEBUG_CLR_HSTPULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_HSTPULLDOWN_SHIFT)) & USBPHY_DEBUG_CLR_HSTPULLDOWN_MASK)
19676#define USBPHY_DEBUG_CLR_HSTPULLDOWN USBPHY_DEBUG_CLR_HSTPULLDOWN_MASK
19677#define USBPHY_DEBUG_CLR_ENHSTPULLDOWN_MASK (0x30U)
19678#define USBPHY_DEBUG_CLR_ENHSTPULLDOWN_SHIFT (4U)
19679#define USBPHY_DEBUG_CLR_ENHSTPULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_ENHSTPULLDOWN_SHIFT)) & USBPHY_DEBUG_CLR_ENHSTPULLDOWN_MASK)
19680#define USBPHY_DEBUG_CLR_ENHSTPULLDOWN USBPHY_DEBUG_CLR_ENHSTPULLDOWN_MASK
19681#define USBPHY_DEBUG_CLR_TX2RXCOUNT_MASK (0xF00U)
19682#define USBPHY_DEBUG_CLR_TX2RXCOUNT_SHIFT (8U)
19683#define USBPHY_DEBUG_CLR_TX2RXCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_TX2RXCOUNT_SHIFT)) & USBPHY_DEBUG_CLR_TX2RXCOUNT_MASK)
19684#define USBPHY_DEBUG_CLR_TX2RXCOUNT USBPHY_DEBUG_CLR_TX2RXCOUNT_MASK
19685#define USBPHY_DEBUG_CLR_ENTX2RXCOUNT_MASK (0x1000U)
19686#define USBPHY_DEBUG_CLR_ENTX2RXCOUNT_SHIFT (12U)
19687#define USBPHY_DEBUG_CLR_ENTX2RXCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_ENTX2RXCOUNT_SHIFT)) & USBPHY_DEBUG_CLR_ENTX2RXCOUNT_MASK)
19688#define USBPHY_DEBUG_CLR_ENTX2RXCOUNT USBPHY_DEBUG_CLR_ENTX2RXCOUNT_MASK
19689#define USBPHY_DEBUG_CLR_SQUELCHRESETCOUNT_MASK (0x1F0000U)
19690#define USBPHY_DEBUG_CLR_SQUELCHRESETCOUNT_SHIFT (16U)
19691#define USBPHY_DEBUG_CLR_SQUELCHRESETCOUNT_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_SQUELCHRESETCOUNT_SHIFT)) & USBPHY_DEBUG_CLR_SQUELCHRESETCOUNT_MASK)
19692#define USBPHY_DEBUG_CLR_SQUELCHRESETCOUNT USBPHY_DEBUG_CLR_SQUELCHRESETCOUNT_MASK
19693#define USBPHY_DEBUG_CLR_ENSQUELCHRESET_MASK (0x1000000U)
19694#define USBPHY_DEBUG_CLR_ENSQUELCHRESET_SHIFT (24U)
19695#define USBPHY_DEBUG_CLR_ENSQUELCHRESET_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_ENSQUELCHRESET_SHIFT)) & USBPHY_DEBUG_CLR_ENSQUELCHRESET_MASK)
19696#define USBPHY_DEBUG_CLR_ENSQUELCHRESET USBPHY_DEBUG_CLR_ENSQUELCHRESET_MASK
19697#define USBPHY_DEBUG_CLR_SQUELCHRESETLENGTH_MASK (0x1E000000U)
19698#define USBPHY_DEBUG_CLR_SQUELCHRESETLENGTH_SHIFT (25U)
19699#define USBPHY_DEBUG_CLR_SQUELCHRESETLENGTH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_SQUELCHRESETLENGTH_SHIFT)) & USBPHY_DEBUG_CLR_SQUELCHRESETLENGTH_MASK)
19700#define USBPHY_DEBUG_CLR_HOST_RESUME_DEBUG_MASK (0x20000000U)
19701#define USBPHY_DEBUG_CLR_HOST_RESUME_DEBUG_SHIFT (29U)
19702#define USBPHY_DEBUG_CLR_HOST_RESUME_DEBUG_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_HOST_RESUME_DEBUG_SHIFT)) & USBPHY_DEBUG_CLR_HOST_RESUME_DEBUG_MASK)
19703#define USBPHY_DEBUG_CLR_HOST_RESUME_DEBUG USBPHY_DEBUG_CLR_HOST_RESUME_DEBUG_MASK
19704#define USBPHY_DEBUG_CLR_CLKGATE_MASK (0x40000000U)
19705#define USBPHY_DEBUG_CLR_CLKGATE_SHIFT (30U)
19706#define USBPHY_DEBUG_CLR_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_CLR_CLKGATE_SHIFT)) & USBPHY_DEBUG_CLR_CLKGATE_MASK)
19707#define USBPHY_DEBUG_CLR_CLKGATE USBPHY_DEBUG_CLR_CLKGATE_MASK
19708
19709/*! @name DEBUG_TOG - USB PHY Debug Register */
19710#define USBPHY_DEBUG_TOG_OTGIDPIOLOCK_MASK (0x1U)
19711#define USBPHY_DEBUG_TOG_OTGIDPIOLOCK_SHIFT (0U)
19712#define USBPHY_DEBUG_TOG_OTGIDPIOLOCK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_OTGIDPIOLOCK_SHIFT)) & USBPHY_DEBUG_TOG_OTGIDPIOLOCK_MASK)
19713#define USBPHY_DEBUG_TOG_OTGIDPIOLOCK USBPHY_DEBUG_TOG_OTGIDPIOLOCK_MASK
19714#define USBPHY_DEBUG_TOG_DEBUG_INTERFACE_HOLD_MASK (0x2U)
19715#define USBPHY_DEBUG_TOG_DEBUG_INTERFACE_HOLD_SHIFT (1U)
19716#define USBPHY_DEBUG_TOG_DEBUG_INTERFACE_HOLD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_DEBUG_INTERFACE_HOLD_SHIFT)) & USBPHY_DEBUG_TOG_DEBUG_INTERFACE_HOLD_MASK)
19717#define USBPHY_DEBUG_TOG_HSTPULLDOWN_MASK (0xCU)
19718#define USBPHY_DEBUG_TOG_HSTPULLDOWN_SHIFT (2U)
19719#define USBPHY_DEBUG_TOG_HSTPULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_HSTPULLDOWN_SHIFT)) & USBPHY_DEBUG_TOG_HSTPULLDOWN_MASK)
19720#define USBPHY_DEBUG_TOG_HSTPULLDOWN USBPHY_DEBUG_TOG_HSTPULLDOWN_MASK
19721#define USBPHY_DEBUG_TOG_ENHSTPULLDOWN_MASK (0x30U)
19722#define USBPHY_DEBUG_TOG_ENHSTPULLDOWN_SHIFT (4U)
19723#define USBPHY_DEBUG_TOG_ENHSTPULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_ENHSTPULLDOWN_SHIFT)) & USBPHY_DEBUG_TOG_ENHSTPULLDOWN_MASK)
19724#define USBPHY_DEBUG_TOG_ENHSTPULLDOWN USBPHY_DEBUG_TOG_ENHSTPULLDOWN_MASK
19725#define USBPHY_DEBUG_TOG_TX2RXCOUNT_MASK (0xF00U)
19726#define USBPHY_DEBUG_TOG_TX2RXCOUNT_SHIFT (8U)
19727#define USBPHY_DEBUG_TOG_TX2RXCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_TX2RXCOUNT_SHIFT)) & USBPHY_DEBUG_TOG_TX2RXCOUNT_MASK)
19728#define USBPHY_DEBUG_TOG_TX2RXCOUNT USBPHY_DEBUG_TOG_TX2RXCOUNT_MASK
19729#define USBPHY_DEBUG_TOG_ENTX2RXCOUNT_MASK (0x1000U)
19730#define USBPHY_DEBUG_TOG_ENTX2RXCOUNT_SHIFT (12U)
19731#define USBPHY_DEBUG_TOG_ENTX2RXCOUNT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_ENTX2RXCOUNT_SHIFT)) & USBPHY_DEBUG_TOG_ENTX2RXCOUNT_MASK)
19732#define USBPHY_DEBUG_TOG_ENTX2RXCOUNT USBPHY_DEBUG_TOG_ENTX2RXCOUNT_MASK
19733#define USBPHY_DEBUG_TOG_SQUELCHRESETCOUNT_MASK (0x1F0000U)
19734#define USBPHY_DEBUG_TOG_SQUELCHRESETCOUNT_SHIFT (16U)
19735#define USBPHY_DEBUG_TOG_SQUELCHRESETCOUNT_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_SQUELCHRESETCOUNT_SHIFT)) & USBPHY_DEBUG_TOG_SQUELCHRESETCOUNT_MASK)
19736#define USBPHY_DEBUG_TOG_SQUELCHRESETCOUNT USBPHY_DEBUG_TOG_SQUELCHRESETCOUNT_MASK
19737#define USBPHY_DEBUG_TOG_ENSQUELCHRESET_MASK (0x1000000U)
19738#define USBPHY_DEBUG_TOG_ENSQUELCHRESET_SHIFT (24U)
19739#define USBPHY_DEBUG_TOG_ENSQUELCHRESET_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_ENSQUELCHRESET_SHIFT)) & USBPHY_DEBUG_TOG_ENSQUELCHRESET_MASK)
19740#define USBPHY_DEBUG_TOG_ENSQUELCHRESET USBPHY_DEBUG_TOG_ENSQUELCHRESET_MASK
19741#define USBPHY_DEBUG_TOG_SQUELCHRESETLENGTH_MASK (0x1E000000U)
19742#define USBPHY_DEBUG_TOG_SQUELCHRESETLENGTH_SHIFT (25U)
19743#define USBPHY_DEBUG_TOG_SQUELCHRESETLENGTH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_SQUELCHRESETLENGTH_SHIFT)) & USBPHY_DEBUG_TOG_SQUELCHRESETLENGTH_MASK)
19744#define USBPHY_DEBUG_TOG_HOST_RESUME_DEBUG_MASK (0x20000000U)
19745#define USBPHY_DEBUG_TOG_HOST_RESUME_DEBUG_SHIFT (29U)
19746#define USBPHY_DEBUG_TOG_HOST_RESUME_DEBUG_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_HOST_RESUME_DEBUG_SHIFT)) & USBPHY_DEBUG_TOG_HOST_RESUME_DEBUG_MASK)
19747#define USBPHY_DEBUG_TOG_HOST_RESUME_DEBUG USBPHY_DEBUG_TOG_HOST_RESUME_DEBUG_MASK
19748#define USBPHY_DEBUG_TOG_CLKGATE_MASK (0x40000000U)
19749#define USBPHY_DEBUG_TOG_CLKGATE_SHIFT (30U)
19750#define USBPHY_DEBUG_TOG_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG_TOG_CLKGATE_SHIFT)) & USBPHY_DEBUG_TOG_CLKGATE_MASK)
19751#define USBPHY_DEBUG_TOG_CLKGATE USBPHY_DEBUG_TOG_CLKGATE_MASK
19752
19753/*! @name DEBUG0_STATUS - UTMI Debug Status Register 0 */
19754#define USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT_MASK (0xFFFFU)
19755#define USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT_SHIFT (0U)
19756#define USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT_SHIFT)) & USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT_MASK)
19757#define USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT_MASK (0x3FF0000U)
19758#define USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT_SHIFT (16U)
19759#define USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT_SHIFT)) & USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT_MASK)
19760#define USBPHY_DEBUG0_STATUS_SQUELCH_COUNT_MASK (0xFC000000U)
19761#define USBPHY_DEBUG0_STATUS_SQUELCH_COUNT_SHIFT (26U)
19762#define USBPHY_DEBUG0_STATUS_SQUELCH_COUNT_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_STATUS_SQUELCH_COUNT_SHIFT)) & USBPHY_DEBUG0_STATUS_SQUELCH_COUNT_MASK)
19763#define USBPHY_DEBUG0_STATUS_SQUELCH_COUNT USBPHY_DEBUG0_STATUS_SQUELCH_COUNT_MASK
19764
19765/*! @name DEBUG1 - UTMI Debug Status Register 1 */
19766#define USBPHY_DEBUG1_ENTAILADJVD_MASK (0x6000U)
19767#define USBPHY_DEBUG1_ENTAILADJVD_SHIFT (13U)
19768#define USBPHY_DEBUG1_ENTAILADJVD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_ENTAILADJVD_SHIFT)) & USBPHY_DEBUG1_ENTAILADJVD_MASK)
19769#define USBPHY_DEBUG1_ENTAILADJVD USBPHY_DEBUG1_ENTAILADJVD_MASK
19770
19771/*! @name DEBUG1_SET - UTMI Debug Status Register 1 */
19772#define USBPHY_DEBUG1_SET_ENTAILADJVD_MASK (0x6000U)
19773#define USBPHY_DEBUG1_SET_ENTAILADJVD_SHIFT (13U)
19774#define USBPHY_DEBUG1_SET_ENTAILADJVD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_SET_ENTAILADJVD_SHIFT)) & USBPHY_DEBUG1_SET_ENTAILADJVD_MASK)
19775#define USBPHY_DEBUG1_SET_ENTAILADJVD USBPHY_DEBUG1_SET_ENTAILADJVD_MASK
19776
19777/*! @name DEBUG1_CLR - UTMI Debug Status Register 1 */
19778#define USBPHY_DEBUG1_CLR_ENTAILADJVD_MASK (0x6000U)
19779#define USBPHY_DEBUG1_CLR_ENTAILADJVD_SHIFT (13U)
19780#define USBPHY_DEBUG1_CLR_ENTAILADJVD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_CLR_ENTAILADJVD_SHIFT)) & USBPHY_DEBUG1_CLR_ENTAILADJVD_MASK)
19781#define USBPHY_DEBUG1_CLR_ENTAILADJVD USBPHY_DEBUG1_CLR_ENTAILADJVD_MASK
19782
19783/*! @name DEBUG1_TOG - UTMI Debug Status Register 1 */
19784#define USBPHY_DEBUG1_TOG_ENTAILADJVD_MASK (0x6000U)
19785#define USBPHY_DEBUG1_TOG_ENTAILADJVD_SHIFT (13U)
19786#define USBPHY_DEBUG1_TOG_ENTAILADJVD_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_TOG_ENTAILADJVD_SHIFT)) & USBPHY_DEBUG1_TOG_ENTAILADJVD_MASK)
19787#define USBPHY_DEBUG1_TOG_ENTAILADJVD USBPHY_DEBUG1_TOG_ENTAILADJVD_MASK
19788
19789/*! @name VERSION - UTMI RTL Version */
19790#define USBPHY_VERSION_STEP_MASK (0xFFFFU)
19791#define USBPHY_VERSION_STEP_SHIFT (0U)
19792#define USBPHY_VERSION_STEP_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_VERSION_STEP_SHIFT)) & USBPHY_VERSION_STEP_MASK)
19793#define USBPHY_VERSION_STEP USBPHY_VERSION_STEP_MASK
19794#define USBPHY_VERSION_MINOR_MASK (0xFF0000U)
19795#define USBPHY_VERSION_MINOR_SHIFT (16U)
19796#define USBPHY_VERSION_MINOR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_VERSION_MINOR_SHIFT)) & USBPHY_VERSION_MINOR_MASK)
19797#define USBPHY_VERSION_MINOR USBPHY_VERSION_MINOR_MASK
19798#define USBPHY_VERSION_MAJOR_MASK (0xFF000000U)
19799#define USBPHY_VERSION_MAJOR_SHIFT (24U)
19800#define USBPHY_VERSION_MAJOR_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_VERSION_MAJOR_SHIFT)) & USBPHY_VERSION_MAJOR_MASK)
19801#define USBPHY_VERSION_MAJOR USBPHY_VERSION_MAJOR_MASK
19802
19803/*! @name PLL_SIC - USB PHY PLL Control/Status Register */
19804#define USBPHY_PLL_SIC_PLL_DIV_SEL_MASK (0x3U)
19805#define USBPHY_PLL_SIC_PLL_DIV_SEL_SHIFT (0U)
19806#define USBPHY_PLL_SIC_PLL_DIV_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_PLL_DIV_SEL_MASK)
19807#define USBPHY_PLL_SIC_PLL_DIV_SEL USBPHY_PLL_SIC_PLL_DIV_SEL_MASK
19808#define USBPHY_PLL_SIC_PLL_EN_USBx_CLKS_MASK (0x40U)
19809#define USBPHY_PLL_SIC_PLL_EN_USBx_CLKS_SHIFT (6U)
19810#define USBPHY_PLL_SIC_PLL_EN_USBx_CLKS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_EN_USBx_CLKS_SHIFT)) & USBPHY_PLL_SIC_PLL_EN_USBx_CLKS_MASK)
19811#define USBPHY_PLL_SIC_PLL_EN_USBx_CLKS USBPHY_PLL_SIC_PLL_EN_USBx_CLKS_MASK
19812#define USBPHY_PLL_SIC_PLL_HOLD_RING_OFF_MASK (0x800U)
19813#define USBPHY_PLL_SIC_PLL_HOLD_RING_OFF_SHIFT (11U)
19814#define USBPHY_PLL_SIC_PLL_HOLD_RING_OFF_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_HOLD_RING_OFF_SHIFT)) & USBPHY_PLL_SIC_PLL_HOLD_RING_OFF_MASK)
19815#define USBPHY_PLL_SIC_PLL_HOLD_RING_OFF USBPHY_PLL_SIC_PLL_HOLD_RING_OFF_MASK
19816#define USBPHY_PLL_SIC_PLL_POWER_MASK (0x1000U)
19817#define USBPHY_PLL_SIC_PLL_POWER_SHIFT (12U)
19818#define USBPHY_PLL_SIC_PLL_POWER_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_PLL_POWER_MASK)
19819#define USBPHY_PLL_SIC_PLL_POWER USBPHY_PLL_SIC_PLL_POWER_MASK
19820#define USBPHY_PLL_SIC_PLL_ENABLE_MASK (0x2000U)
19821#define USBPHY_PLL_SIC_PLL_ENABLE_SHIFT (13U)
19822#define USBPHY_PLL_SIC_PLL_ENABLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_PLL_ENABLE_MASK)
19823#define USBPHY_PLL_SIC_PLL_ENABLE USBPHY_PLL_SIC_PLL_ENABLE_MASK
19824#define USBPHY_PLL_SIC_PLL_BYPASS_MASK (0x10000U)
19825#define USBPHY_PLL_SIC_PLL_BYPASS_SHIFT (16U)
19826#define USBPHY_PLL_SIC_PLL_BYPASS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_BYPASS_SHIFT)) & USBPHY_PLL_SIC_PLL_BYPASS_MASK)
19827#define USBPHY_PLL_SIC_PLL_BYPASS USBPHY_PLL_SIC_PLL_BYPASS_MASK
19828#define USBPHY_PLL_SIC_PLL_LOCK_MASK (0x80000000U)
19829#define USBPHY_PLL_SIC_PLL_LOCK_SHIFT (31U)
19830#define USBPHY_PLL_SIC_PLL_LOCK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_PLL_LOCK_MASK)
19831#define USBPHY_PLL_SIC_PLL_LOCK USBPHY_PLL_SIC_PLL_LOCK_MASK
19832
19833/*! @name PLL_SIC_SET - USB PHY PLL Control/Status Register */
19834#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL_MASK (0x3U)
19835#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL_SHIFT (0U)
19836#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_DIV_SEL_MASK)
19837#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL USBPHY_PLL_SIC_SET_PLL_DIV_SEL_MASK
19838#define USBPHY_PLL_SIC_SET_PLL_EN_USBx_CLKS_MASK (0x40U)
19839#define USBPHY_PLL_SIC_SET_PLL_EN_USBx_CLKS_SHIFT (6U)
19840#define USBPHY_PLL_SIC_SET_PLL_EN_USBx_CLKS_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_EN_USBx_CLKS_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_EN_USBx_CLKS_MASK)
19841#define USBPHY_PLL_SIC_SET_PLL_EN_USBx_CLKS USBPHY_PLL_SIC_SET_PLL_EN_USBx_CLKS_MASK
19842#define USBPHY_PLL_SIC_SET_PLL_HOLD_RING_OFF_MASK (0x800U)
19843#define USBPHY_PLL_SIC_SET_PLL_HOLD_RING_OFF_SHIFT (11U)
19844#define USBPHY_PLL_SIC_SET_PLL_HOLD_RING_OFF(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_HOLD_RING_OFF_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_HOLD_RING_OFF_MASK)
19845#define USBPHY_PLL_SIC_SET_PLL_POWER_MASK (0x1000U)
19846#define USBPHY_PLL_SIC_SET_PLL_POWER_SHIFT (12U)
19847#define USBPHY_PLL_SIC_SET_PLL_POWER_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_POWER_MASK)
19848#define USBPHY_PLL_SIC_SET_PLL_POWER USBPHY_PLL_SIC_SET_PLL_POWER_MASK
19849#define USBPHY_PLL_SIC_SET_PLL_ENABLE_MASK (0x2000U)
19850#define USBPHY_PLL_SIC_SET_PLL_ENABLE_SHIFT (13U)
19851#define USBPHY_PLL_SIC_SET_PLL_ENABLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_ENABLE_MASK)
19852#define USBPHY_PLL_SIC_SET_PLL_ENABLE USBPHY_PLL_SIC_SET_PLL_ENABLE_MASK
19853#define USBPHY_PLL_SIC_SET_PLL_BYPASS_MASK (0x10000U)
19854#define USBPHY_PLL_SIC_SET_PLL_BYPASS_SHIFT (16U)
19855#define USBPHY_PLL_SIC_SET_PLL_BYPASS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_BYPASS_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_BYPASS_MASK)
19856#define USBPHY_PLL_SIC_SET_PLL_BYPASS USBPHY_PLL_SIC_SET_PLL_BYPASS_MASK
19857#define USBPHY_PLL_SIC_SET_PLL_LOCK_MASK (0x80000000U)
19858#define USBPHY_PLL_SIC_SET_PLL_LOCK_SHIFT (31U)
19859#define USBPHY_PLL_SIC_SET_PLL_LOCK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_LOCK_MASK)
19860#define USBPHY_PLL_SIC_SET_PLL_LOCK USBPHY_PLL_SIC_SET_PLL_LOCK_MASK
19861
19862/*! @name PLL_SIC_CLR - USB PHY PLL Control/Status Register */
19863#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_MASK (0x3U)
19864#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_SHIFT (0U)
19865#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_MASK)
19866#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_MASK
19867#define USBPHY_PLL_SIC_CLR_PLL_EN_USBx_CLKS_MASK (0x40U)
19868#define USBPHY_PLL_SIC_CLR_PLL_EN_USBx_CLKS_SHIFT (6U)
19869#define USBPHY_PLL_SIC_CLR_PLL_EN_USBx_CLKS_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_EN_USBx_CLKS_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_EN_USBx_CLKS_MASK)
19870#define USBPHY_PLL_SIC_CLR_PLL_EN_USBx_CLKS USBPHY_PLL_SIC_CLR_PLL_EN_USBx_CLKS_MASK
19871#define USBPHY_PLL_SIC_CLR_PLL_HOLD_RING_OFF_MASK (0x800U)
19872#define USBPHY_PLL_SIC_CLR_PLL_HOLD_RING_OFF_SHIFT (11U)
19873#define USBPHY_PLL_SIC_CLR_PLL_HOLD_RING_OFF(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_HOLD_RING_OFF_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_HOLD_RING_OFF_MASK)
19874#define USBPHY_PLL_SIC_CLR_PLL_POWER_MASK (0x1000U)
19875#define USBPHY_PLL_SIC_CLR_PLL_POWER_SHIFT (12U)
19876#define USBPHY_PLL_SIC_CLR_PLL_POWER_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_POWER_MASK)
19877#define USBPHY_PLL_SIC_CLR_PLL_POWER USBPHY_PLL_SIC_CLR_PLL_POWER_MASK
19878#define USBPHY_PLL_SIC_CLR_PLL_ENABLE_MASK (0x2000U)
19879#define USBPHY_PLL_SIC_CLR_PLL_ENABLE_SHIFT (13U)
19880#define USBPHY_PLL_SIC_CLR_PLL_ENABLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_ENABLE_MASK)
19881#define USBPHY_PLL_SIC_CLR_PLL_ENABLE USBPHY_PLL_SIC_CLR_PLL_ENABLE_MASK
19882#define USBPHY_PLL_SIC_CLR_PLL_BYPASS_MASK (0x10000U)
19883#define USBPHY_PLL_SIC_CLR_PLL_BYPASS_SHIFT (16U)
19884#define USBPHY_PLL_SIC_CLR_PLL_BYPASS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_BYPASS_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_BYPASS_MASK)
19885#define USBPHY_PLL_SIC_CLR_PLL_BYPASS USBPHY_PLL_SIC_CLR_PLL_BYPASS_MASK
19886#define USBPHY_PLL_SIC_CLR_PLL_LOCK_MASK (0x80000000U)
19887#define USBPHY_PLL_SIC_CLR_PLL_LOCK_SHIFT (31U)
19888#define USBPHY_PLL_SIC_CLR_PLL_LOCK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_LOCK_MASK)
19889#define USBPHY_PLL_SIC_CLR_PLL_LOCK USBPHY_PLL_SIC_CLR_PLL_LOCK_MASK
19890
19891/*! @name PLL_SIC_TOG - USB PHY PLL Control/Status Register */
19892#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_MASK (0x3U)
19893#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_SHIFT (0U)
19894#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_MASK)
19895#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_MASK
19896#define USBPHY_PLL_SIC_TOG_PLL_EN_USBx_CLKS_MASK (0x40U)
19897#define USBPHY_PLL_SIC_TOG_PLL_EN_USBx_CLKS_SHIFT (6U)
19898#define USBPHY_PLL_SIC_TOG_PLL_EN_USBx_CLKS_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_EN_USBx_CLKS_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_EN_USBx_CLKS_MASK)
19899#define USBPHY_PLL_SIC_TOG_PLL_EN_USBx_CLKS USBPHY_PLL_SIC_TOG_PLL_EN_USBx_CLKS_MASK
19900#define USBPHY_PLL_SIC_TOG_PLL_HOLD_RING_OFF_MASK (0x800U)
19901#define USBPHY_PLL_SIC_TOG_PLL_HOLD_RING_OFF_SHIFT (11U)
19902#define USBPHY_PLL_SIC_TOG_PLL_HOLD_RING_OFF(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_HOLD_RING_OFF_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_HOLD_RING_OFF_MASK)
19903#define USBPHY_PLL_SIC_TOG_PLL_POWER_MASK (0x1000U)
19904#define USBPHY_PLL_SIC_TOG_PLL_POWER_SHIFT (12U)
19905#define USBPHY_PLL_SIC_TOG_PLL_POWER_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_POWER_MASK)
19906#define USBPHY_PLL_SIC_TOG_PLL_POWER USBPHY_PLL_SIC_TOG_PLL_POWER_MASK
19907#define USBPHY_PLL_SIC_TOG_PLL_ENABLE_MASK (0x2000U)
19908#define USBPHY_PLL_SIC_TOG_PLL_ENABLE_SHIFT (13U)
19909#define USBPHY_PLL_SIC_TOG_PLL_ENABLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_ENABLE_MASK)
19910#define USBPHY_PLL_SIC_TOG_PLL_ENABLE USBPHY_PLL_SIC_TOG_PLL_ENABLE_MASK
19911#define USBPHY_PLL_SIC_TOG_PLL_BYPASS_MASK (0x10000U)
19912#define USBPHY_PLL_SIC_TOG_PLL_BYPASS_SHIFT (16U)
19913#define USBPHY_PLL_SIC_TOG_PLL_BYPASS_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_BYPASS_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_BYPASS_MASK)
19914#define USBPHY_PLL_SIC_TOG_PLL_BYPASS USBPHY_PLL_SIC_TOG_PLL_BYPASS_MASK
19915#define USBPHY_PLL_SIC_TOG_PLL_LOCK_MASK (0x80000000U)
19916#define USBPHY_PLL_SIC_TOG_PLL_LOCK_SHIFT (31U)
19917#define USBPHY_PLL_SIC_TOG_PLL_LOCK_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_LOCK_MASK)
19918#define USBPHY_PLL_SIC_TOG_PLL_LOCK USBPHY_PLL_SIC_TOG_PLL_LOCK_MASK
19919
19920/*! @name USB1_VBUS_DETECT - USB PHY VBUS Detect Control Register */
19921#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH_MASK (0x7U)
19922#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH_SHIFT (0U)
19923#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH_MASK)
19924#define USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_MASK (0x8U)
19925#define USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_SHIFT (3U)
19926#define USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_MASK)
19927#define USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_MASK (0x10U)
19928#define USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_SHIFT (4U)
19929#define USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_MASK)
19930#define USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_MASK (0x20U)
19931#define USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_SHIFT (5U)
19932#define USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_MASK)
19933#define USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_MASK (0x40U)
19934#define USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_SHIFT (6U)
19935#define USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_MASK)
19936#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_MASK (0x80U)
19937#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_SHIFT (7U)
19938#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_MASK)
19939#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_MASK (0x100U)
19940#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_SHIFT (8U)
19941#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_MASK)
19942#define USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_MASK (0x600U)
19943#define USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_SHIFT (9U)
19944#define USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_MASK)
19945#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_MASK (0x40000U)
19946#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_SHIFT (18U)
19947#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_MASK)
19948#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_MASK (0x100000U)
19949#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_SHIFT (20U)
19950#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_MASK)
19951#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_MASK
19952#define USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_MASK (0x4000000U)
19953#define USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_SHIFT (26U)
19954#define USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_MASK)
19955#define USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR_MASK (0x80000000U)
19956#define USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR_SHIFT (31U)
19957#define USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR_SHIFT)) & USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR_MASK)
19958
19959/*! @name USB1_VBUS_DETECT_SET - USB PHY VBUS Detect Control Register */
19960#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH_MASK (0x7U)
19961#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH_SHIFT (0U)
19962#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH_MASK)
19963#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_MASK (0x8U)
19964#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_SHIFT (3U)
19965#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_MASK)
19966#define USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_MASK (0x10U)
19967#define USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_SHIFT (4U)
19968#define USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_MASK)
19969#define USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_MASK (0x20U)
19970#define USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_SHIFT (5U)
19971#define USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_MASK)
19972#define USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_MASK (0x40U)
19973#define USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_SHIFT (6U)
19974#define USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_MASK)
19975#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_MASK (0x80U)
19976#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_SHIFT (7U)
19977#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_MASK)
19978#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_MASK (0x100U)
19979#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_SHIFT (8U)
19980#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_MASK)
19981#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_MASK (0x600U)
19982#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_SHIFT (9U)
19983#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_MASK)
19984#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_MASK (0x40000U)
19985#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_SHIFT (18U)
19986#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_MASK)
19987#define USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_MASK (0x100000U)
19988#define USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_SHIFT (20U)
19989#define USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_MASK)
19990#define USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_MASK (0x4000000U)
19991#define USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_SHIFT (26U)
19992#define USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_MASK)
19993#define USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR_MASK (0x80000000U)
19994#define USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR_SHIFT (31U)
19995#define USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR_MASK)
19996
19997/*! @name USB1_VBUS_DETECT_CLR - USB PHY VBUS Detect Control Register */
19998#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH_MASK (0x7U)
19999#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH_SHIFT (0U)
20000#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH_MASK)
20001#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_MASK (0x8U)
20002#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_SHIFT (3U)
20003#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_MASK)
20004#define USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_MASK (0x10U)
20005#define USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_SHIFT (4U)
20006#define USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_MASK)
20007#define USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_MASK (0x20U)
20008#define USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_SHIFT (5U)
20009#define USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_MASK)
20010#define USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_MASK (0x40U)
20011#define USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_SHIFT (6U)
20012#define USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_MASK)
20013#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_MASK (0x80U)
20014#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_SHIFT (7U)
20015#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_MASK)
20016#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_MASK (0x100U)
20017#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_SHIFT (8U)
20018#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_MASK)
20019#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_MASK (0x600U)
20020#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_SHIFT (9U)
20021#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_MASK)
20022#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_MASK (0x40000U)
20023#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_SHIFT (18U)
20024#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_MASK)
20025#define USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_MASK (0x100000U)
20026#define USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_SHIFT (20U)
20027#define USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_MASK)
20028#define USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_MASK (0x4000000U)
20029#define USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_SHIFT (26U)
20030#define USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_MASK)
20031#define USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR_MASK (0x80000000U)
20032#define USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR_SHIFT (31U)
20033#define USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR_MASK)
20034
20035/*! @name USB1_VBUS_DETECT_TOG - USB PHY VBUS Detect Control Register */
20036#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH_MASK (0x7U)
20037#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH_SHIFT (0U)
20038#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH_MASK)
20039#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_MASK (0x8U)
20040#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_SHIFT (3U)
20041#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_MASK)
20042#define USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_MASK (0x10U)
20043#define USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_SHIFT (4U)
20044#define USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_MASK)
20045#define USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_MASK (0x20U)
20046#define USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_SHIFT (5U)
20047#define USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_MASK)
20048#define USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_MASK (0x40U)
20049#define USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_SHIFT (6U)
20050#define USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_MASK)
20051#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_MASK (0x80U)
20052#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_SHIFT (7U)
20053#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_MASK)
20054#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_MASK (0x100U)
20055#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_SHIFT (8U)
20056#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_MASK)
20057#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_MASK (0x600U)
20058#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_SHIFT (9U)
20059#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_MASK)
20060#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_MASK (0x40000U)
20061#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_SHIFT (18U)
20062#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_MASK)
20063#define USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_MASK (0x100000U)
20064#define USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_SHIFT (20U)
20065#define USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_MASK)
20066#define USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_MASK (0x4000000U)
20067#define USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_SHIFT (26U)
20068#define USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_MASK)
20069#define USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR_MASK (0x80000000U)
20070#define USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR_SHIFT (31U)
20071#define USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR_MASK)
20072
20073/*! @name USB1_VBUS_DET_STAT - USB PHY VBUS Detector Status Register */
20074#define USBPHY_USB1_VBUS_DET_STAT_SESSEND_MASK (0x1U)
20075#define USBPHY_USB1_VBUS_DET_STAT_SESSEND_SHIFT (0U)
20076#define USBPHY_USB1_VBUS_DET_STAT_SESSEND_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_SESSEND_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_SESSEND_MASK)
20077#define USBPHY_USB1_VBUS_DET_STAT_SESSEND USBPHY_USB1_VBUS_DET_STAT_SESSEND_MASK
20078#define USBPHY_USB1_VBUS_DET_STAT_BVALID_MASK (0x2U)
20079#define USBPHY_USB1_VBUS_DET_STAT_BVALID_SHIFT (1U)
20080#define USBPHY_USB1_VBUS_DET_STAT_BVALID_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_BVALID_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_BVALID_MASK)
20081#define USBPHY_USB1_VBUS_DET_STAT_BVALID USBPHY_USB1_VBUS_DET_STAT_BVALID_MASK
20082#define USBPHY_USB1_VBUS_DET_STAT_AVALID_MASK (0x4U)
20083#define USBPHY_USB1_VBUS_DET_STAT_AVALID_SHIFT (2U)
20084#define USBPHY_USB1_VBUS_DET_STAT_AVALID_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_AVALID_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_AVALID_MASK)
20085#define USBPHY_USB1_VBUS_DET_STAT_AVALID USBPHY_USB1_VBUS_DET_STAT_AVALID_MASK
20086#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_MASK (0x8U)
20087#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_SHIFT (3U)
20088#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_MASK)
20089#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V_MASK (0x10U)
20090#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V_SHIFT (4U)
20091#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V_MASK)
20092
20093/*! @name USB1_CHRG_DET_STAT - USB PHY Charger Detect Status Register */
20094#define USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT_MASK (0x1U)
20095#define USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT_SHIFT (0U)
20096#define USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT_MASK)
20097#define USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED_MASK (0x2U)
20098#define USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED_SHIFT (1U)
20099#define USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED_MASK)
20100#define USBPHY_USB1_CHRG_DET_STAT_DM_STATE_MASK (0x4U)
20101#define USBPHY_USB1_CHRG_DET_STAT_DM_STATE_SHIFT (2U)
20102#define USBPHY_USB1_CHRG_DET_STAT_DM_STATE_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_DM_STATE_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_DM_STATE_MASK)
20103#define USBPHY_USB1_CHRG_DET_STAT_DM_STATE USBPHY_USB1_CHRG_DET_STAT_DM_STATE_MASK
20104#define USBPHY_USB1_CHRG_DET_STAT_DP_STATE_MASK (0x8U)
20105#define USBPHY_USB1_CHRG_DET_STAT_DP_STATE_SHIFT (3U)
20106#define USBPHY_USB1_CHRG_DET_STAT_DP_STATE_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_DP_STATE_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_DP_STATE_MASK)
20107#define USBPHY_USB1_CHRG_DET_STAT_DP_STATE USBPHY_USB1_CHRG_DET_STAT_DP_STATE_MASK
20108#define USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP_MASK (0x10U)
20109#define USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP_SHIFT (4U)
20110#define USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP_MASK)
20111
20112/*! @name ANACTRL - USB PHY Analog Control Register */
20113#define USBPHY_ANACTRL_TESTCLK_SEL_MASK (0x1U)
20114#define USBPHY_ANACTRL_TESTCLK_SEL_SHIFT (0U)
20115#define USBPHY_ANACTRL_TESTCLK_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TESTCLK_SEL_SHIFT)) & USBPHY_ANACTRL_TESTCLK_SEL_MASK)
20116#define USBPHY_ANACTRL_TESTCLK_SEL USBPHY_ANACTRL_TESTCLK_SEL_MASK
20117#define USBPHY_ANACTRL_PFD_CLKGATE_MASK (0x2U)
20118#define USBPHY_ANACTRL_PFD_CLKGATE_SHIFT (1U)
20119#define USBPHY_ANACTRL_PFD_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_PFD_CLKGATE_SHIFT)) & USBPHY_ANACTRL_PFD_CLKGATE_MASK)
20120#define USBPHY_ANACTRL_PFD_CLKGATE USBPHY_ANACTRL_PFD_CLKGATE_MASK
20121#define USBPHY_ANACTRL_PFD_CLK_SEL_MASK (0xCU)
20122#define USBPHY_ANACTRL_PFD_CLK_SEL_SHIFT (2U)
20123#define USBPHY_ANACTRL_PFD_CLK_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_PFD_CLK_SEL_SHIFT)) & USBPHY_ANACTRL_PFD_CLK_SEL_MASK)
20124#define USBPHY_ANACTRL_PFD_CLK_SEL USBPHY_ANACTRL_PFD_CLK_SEL_MASK
20125#define USBPHY_ANACTRL_PFD_FRAC_MASK (0x3F0U)
20126#define USBPHY_ANACTRL_PFD_FRAC_SHIFT (4U)
20127#define USBPHY_ANACTRL_PFD_FRAC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_PFD_FRAC_SHIFT)) & USBPHY_ANACTRL_PFD_FRAC_MASK)
20128#define USBPHY_ANACTRL_PFD_FRAC USBPHY_ANACTRL_PFD_FRAC_MASK
20129#define USBPHY_ANACTRL_DEV_PULLDOWN_MASK (0x400U)
20130#define USBPHY_ANACTRL_DEV_PULLDOWN_SHIFT (10U)
20131#define USBPHY_ANACTRL_DEV_PULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_DEV_PULLDOWN_MASK)
20132#define USBPHY_ANACTRL_DEV_PULLDOWN USBPHY_ANACTRL_DEV_PULLDOWN_MASK
20133#define USBPHY_ANACTRL_EMPH_PULSE_CTRL_MASK (0x1800U)
20134#define USBPHY_ANACTRL_EMPH_PULSE_CTRL_SHIFT (11U)
20135#define USBPHY_ANACTRL_EMPH_PULSE_CTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_EMPH_PULSE_CTRL_SHIFT)) & USBPHY_ANACTRL_EMPH_PULSE_CTRL_MASK)
20136#define USBPHY_ANACTRL_EMPH_PULSE_CTRL USBPHY_ANACTRL_EMPH_PULSE_CTRL_MASK
20137#define USBPHY_ANACTRL_EMPH_EN_MASK (0x2000U)
20138#define USBPHY_ANACTRL_EMPH_EN_SHIFT (13U)
20139#define USBPHY_ANACTRL_EMPH_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_EMPH_EN_SHIFT)) & USBPHY_ANACTRL_EMPH_EN_MASK)
20140#define USBPHY_ANACTRL_EMPH_EN USBPHY_ANACTRL_EMPH_EN_MASK
20141#define USBPHY_ANACTRL_EMPH_CUR_CTRL_MASK (0xC000U)
20142#define USBPHY_ANACTRL_EMPH_CUR_CTRL_SHIFT (14U)
20143#define USBPHY_ANACTRL_EMPH_CUR_CTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_EMPH_CUR_CTRL_SHIFT)) & USBPHY_ANACTRL_EMPH_CUR_CTRL_MASK)
20144#define USBPHY_ANACTRL_EMPH_CUR_CTRL USBPHY_ANACTRL_EMPH_CUR_CTRL_MASK
20145#define USBPHY_ANACTRL_PFD_STABLE_MASK (0x80000000U)
20146#define USBPHY_ANACTRL_PFD_STABLE_SHIFT (31U)
20147#define USBPHY_ANACTRL_PFD_STABLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_PFD_STABLE_SHIFT)) & USBPHY_ANACTRL_PFD_STABLE_MASK)
20148#define USBPHY_ANACTRL_PFD_STABLE USBPHY_ANACTRL_PFD_STABLE_MASK
20149
20150/*! @name ANACTRL_SET - USB PHY Analog Control Register */
20151#define USBPHY_ANACTRL_SET_TESTCLK_SEL_MASK (0x1U)
20152#define USBPHY_ANACTRL_SET_TESTCLK_SEL_SHIFT (0U)
20153#define USBPHY_ANACTRL_SET_TESTCLK_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_TESTCLK_SEL_SHIFT)) & USBPHY_ANACTRL_SET_TESTCLK_SEL_MASK)
20154#define USBPHY_ANACTRL_SET_TESTCLK_SEL USBPHY_ANACTRL_SET_TESTCLK_SEL_MASK
20155#define USBPHY_ANACTRL_SET_PFD_CLKGATE_MASK (0x2U)
20156#define USBPHY_ANACTRL_SET_PFD_CLKGATE_SHIFT (1U)
20157#define USBPHY_ANACTRL_SET_PFD_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_PFD_CLKGATE_SHIFT)) & USBPHY_ANACTRL_SET_PFD_CLKGATE_MASK)
20158#define USBPHY_ANACTRL_SET_PFD_CLKGATE USBPHY_ANACTRL_SET_PFD_CLKGATE_MASK
20159#define USBPHY_ANACTRL_SET_PFD_CLK_SEL_MASK (0xCU)
20160#define USBPHY_ANACTRL_SET_PFD_CLK_SEL_SHIFT (2U)
20161#define USBPHY_ANACTRL_SET_PFD_CLK_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_PFD_CLK_SEL_SHIFT)) & USBPHY_ANACTRL_SET_PFD_CLK_SEL_MASK)
20162#define USBPHY_ANACTRL_SET_PFD_CLK_SEL USBPHY_ANACTRL_SET_PFD_CLK_SEL_MASK
20163#define USBPHY_ANACTRL_SET_PFD_FRAC_MASK (0x3F0U)
20164#define USBPHY_ANACTRL_SET_PFD_FRAC_SHIFT (4U)
20165#define USBPHY_ANACTRL_SET_PFD_FRAC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_PFD_FRAC_SHIFT)) & USBPHY_ANACTRL_SET_PFD_FRAC_MASK)
20166#define USBPHY_ANACTRL_SET_PFD_FRAC USBPHY_ANACTRL_SET_PFD_FRAC_MASK
20167#define USBPHY_ANACTRL_SET_DEV_PULLDOWN_MASK (0x400U)
20168#define USBPHY_ANACTRL_SET_DEV_PULLDOWN_SHIFT (10U)
20169#define USBPHY_ANACTRL_SET_DEV_PULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_SET_DEV_PULLDOWN_MASK)
20170#define USBPHY_ANACTRL_SET_DEV_PULLDOWN USBPHY_ANACTRL_SET_DEV_PULLDOWN_MASK
20171#define USBPHY_ANACTRL_SET_EMPH_PULSE_CTRL_MASK (0x1800U)
20172#define USBPHY_ANACTRL_SET_EMPH_PULSE_CTRL_SHIFT (11U)
20173#define USBPHY_ANACTRL_SET_EMPH_PULSE_CTRL_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_EMPH_PULSE_CTRL_SHIFT)) & USBPHY_ANACTRL_SET_EMPH_PULSE_CTRL_MASK)
20174#define USBPHY_ANACTRL_SET_EMPH_PULSE_CTRL USBPHY_ANACTRL_SET_EMPH_PULSE_CTRL_MASK
20175#define USBPHY_ANACTRL_SET_EMPH_EN_MASK (0x2000U)
20176#define USBPHY_ANACTRL_SET_EMPH_EN_SHIFT (13U)
20177#define USBPHY_ANACTRL_SET_EMPH_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_EMPH_EN_SHIFT)) & USBPHY_ANACTRL_SET_EMPH_EN_MASK)
20178#define USBPHY_ANACTRL_SET_EMPH_EN USBPHY_ANACTRL_SET_EMPH_EN_MASK
20179#define USBPHY_ANACTRL_SET_EMPH_CUR_CTRL_MASK (0xC000U)
20180#define USBPHY_ANACTRL_SET_EMPH_CUR_CTRL_SHIFT (14U)
20181#define USBPHY_ANACTRL_SET_EMPH_CUR_CTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_EMPH_CUR_CTRL_SHIFT)) & USBPHY_ANACTRL_SET_EMPH_CUR_CTRL_MASK)
20182#define USBPHY_ANACTRL_SET_EMPH_CUR_CTRL USBPHY_ANACTRL_SET_EMPH_CUR_CTRL_MASK
20183#define USBPHY_ANACTRL_SET_PFD_STABLE_MASK (0x80000000U)
20184#define USBPHY_ANACTRL_SET_PFD_STABLE_SHIFT (31U)
20185#define USBPHY_ANACTRL_SET_PFD_STABLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_PFD_STABLE_SHIFT)) & USBPHY_ANACTRL_SET_PFD_STABLE_MASK)
20186#define USBPHY_ANACTRL_SET_PFD_STABLE USBPHY_ANACTRL_SET_PFD_STABLE_MASK
20187
20188/*! @name ANACTRL_CLR - USB PHY Analog Control Register */
20189#define USBPHY_ANACTRL_CLR_TESTCLK_SEL_MASK (0x1U)
20190#define USBPHY_ANACTRL_CLR_TESTCLK_SEL_SHIFT (0U)
20191#define USBPHY_ANACTRL_CLR_TESTCLK_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_TESTCLK_SEL_SHIFT)) & USBPHY_ANACTRL_CLR_TESTCLK_SEL_MASK)
20192#define USBPHY_ANACTRL_CLR_TESTCLK_SEL USBPHY_ANACTRL_CLR_TESTCLK_SEL_MASK
20193#define USBPHY_ANACTRL_CLR_PFD_CLKGATE_MASK (0x2U)
20194#define USBPHY_ANACTRL_CLR_PFD_CLKGATE_SHIFT (1U)
20195#define USBPHY_ANACTRL_CLR_PFD_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_PFD_CLKGATE_SHIFT)) & USBPHY_ANACTRL_CLR_PFD_CLKGATE_MASK)
20196#define USBPHY_ANACTRL_CLR_PFD_CLKGATE USBPHY_ANACTRL_CLR_PFD_CLKGATE_MASK
20197#define USBPHY_ANACTRL_CLR_PFD_CLK_SEL_MASK (0xCU)
20198#define USBPHY_ANACTRL_CLR_PFD_CLK_SEL_SHIFT (2U)
20199#define USBPHY_ANACTRL_CLR_PFD_CLK_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_PFD_CLK_SEL_SHIFT)) & USBPHY_ANACTRL_CLR_PFD_CLK_SEL_MASK)
20200#define USBPHY_ANACTRL_CLR_PFD_CLK_SEL USBPHY_ANACTRL_CLR_PFD_CLK_SEL_MASK
20201#define USBPHY_ANACTRL_CLR_PFD_FRAC_MASK (0x3F0U)
20202#define USBPHY_ANACTRL_CLR_PFD_FRAC_SHIFT (4U)
20203#define USBPHY_ANACTRL_CLR_PFD_FRAC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_PFD_FRAC_SHIFT)) & USBPHY_ANACTRL_CLR_PFD_FRAC_MASK)
20204#define USBPHY_ANACTRL_CLR_PFD_FRAC USBPHY_ANACTRL_CLR_PFD_FRAC_MASK
20205#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN_MASK (0x400U)
20206#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN_SHIFT (10U)
20207#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_CLR_DEV_PULLDOWN_MASK)
20208#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN USBPHY_ANACTRL_CLR_DEV_PULLDOWN_MASK
20209#define USBPHY_ANACTRL_CLR_EMPH_PULSE_CTRL_MASK (0x1800U)
20210#define USBPHY_ANACTRL_CLR_EMPH_PULSE_CTRL_SHIFT (11U)
20211#define USBPHY_ANACTRL_CLR_EMPH_PULSE_CTRL_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_EMPH_PULSE_CTRL_SHIFT)) & USBPHY_ANACTRL_CLR_EMPH_PULSE_CTRL_MASK)
20212#define USBPHY_ANACTRL_CLR_EMPH_PULSE_CTRL USBPHY_ANACTRL_CLR_EMPH_PULSE_CTRL_MASK
20213#define USBPHY_ANACTRL_CLR_EMPH_EN_MASK (0x2000U)
20214#define USBPHY_ANACTRL_CLR_EMPH_EN_SHIFT (13U)
20215#define USBPHY_ANACTRL_CLR_EMPH_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_EMPH_EN_SHIFT)) & USBPHY_ANACTRL_CLR_EMPH_EN_MASK)
20216#define USBPHY_ANACTRL_CLR_EMPH_EN USBPHY_ANACTRL_CLR_EMPH_EN_MASK
20217#define USBPHY_ANACTRL_CLR_EMPH_CUR_CTRL_MASK (0xC000U)
20218#define USBPHY_ANACTRL_CLR_EMPH_CUR_CTRL_SHIFT (14U)
20219#define USBPHY_ANACTRL_CLR_EMPH_CUR_CTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_EMPH_CUR_CTRL_SHIFT)) & USBPHY_ANACTRL_CLR_EMPH_CUR_CTRL_MASK)
20220#define USBPHY_ANACTRL_CLR_EMPH_CUR_CTRL USBPHY_ANACTRL_CLR_EMPH_CUR_CTRL_MASK
20221#define USBPHY_ANACTRL_CLR_PFD_STABLE_MASK (0x80000000U)
20222#define USBPHY_ANACTRL_CLR_PFD_STABLE_SHIFT (31U)
20223#define USBPHY_ANACTRL_CLR_PFD_STABLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_PFD_STABLE_SHIFT)) & USBPHY_ANACTRL_CLR_PFD_STABLE_MASK)
20224#define USBPHY_ANACTRL_CLR_PFD_STABLE USBPHY_ANACTRL_CLR_PFD_STABLE_MASK
20225
20226/*! @name ANACTRL_TOG - USB PHY Analog Control Register */
20227#define USBPHY_ANACTRL_TOG_TESTCLK_SEL_MASK (0x1U)
20228#define USBPHY_ANACTRL_TOG_TESTCLK_SEL_SHIFT (0U)
20229#define USBPHY_ANACTRL_TOG_TESTCLK_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_TESTCLK_SEL_SHIFT)) & USBPHY_ANACTRL_TOG_TESTCLK_SEL_MASK)
20230#define USBPHY_ANACTRL_TOG_TESTCLK_SEL USBPHY_ANACTRL_TOG_TESTCLK_SEL_MASK
20231#define USBPHY_ANACTRL_TOG_PFD_CLKGATE_MASK (0x2U)
20232#define USBPHY_ANACTRL_TOG_PFD_CLKGATE_SHIFT (1U)
20233#define USBPHY_ANACTRL_TOG_PFD_CLKGATE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_PFD_CLKGATE_SHIFT)) & USBPHY_ANACTRL_TOG_PFD_CLKGATE_MASK)
20234#define USBPHY_ANACTRL_TOG_PFD_CLKGATE USBPHY_ANACTRL_TOG_PFD_CLKGATE_MASK
20235#define USBPHY_ANACTRL_TOG_PFD_CLK_SEL_MASK (0xCU)
20236#define USBPHY_ANACTRL_TOG_PFD_CLK_SEL_SHIFT (2U)
20237#define USBPHY_ANACTRL_TOG_PFD_CLK_SEL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_PFD_CLK_SEL_SHIFT)) & USBPHY_ANACTRL_TOG_PFD_CLK_SEL_MASK)
20238#define USBPHY_ANACTRL_TOG_PFD_CLK_SEL USBPHY_ANACTRL_TOG_PFD_CLK_SEL_MASK
20239#define USBPHY_ANACTRL_TOG_PFD_FRAC_MASK (0x3F0U)
20240#define USBPHY_ANACTRL_TOG_PFD_FRAC_SHIFT (4U)
20241#define USBPHY_ANACTRL_TOG_PFD_FRAC_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_PFD_FRAC_SHIFT)) & USBPHY_ANACTRL_TOG_PFD_FRAC_MASK)
20242#define USBPHY_ANACTRL_TOG_PFD_FRAC USBPHY_ANACTRL_TOG_PFD_FRAC_MASK
20243#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN_MASK (0x400U)
20244#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN_SHIFT (10U)
20245#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_TOG_DEV_PULLDOWN_MASK)
20246#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN USBPHY_ANACTRL_TOG_DEV_PULLDOWN_MASK
20247#define USBPHY_ANACTRL_TOG_EMPH_PULSE_CTRL_MASK (0x1800U)
20248#define USBPHY_ANACTRL_TOG_EMPH_PULSE_CTRL_SHIFT (11U)
20249#define USBPHY_ANACTRL_TOG_EMPH_PULSE_CTRL_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_EMPH_PULSE_CTRL_SHIFT)) & USBPHY_ANACTRL_TOG_EMPH_PULSE_CTRL_MASK)
20250#define USBPHY_ANACTRL_TOG_EMPH_PULSE_CTRL USBPHY_ANACTRL_TOG_EMPH_PULSE_CTRL_MASK
20251#define USBPHY_ANACTRL_TOG_EMPH_EN_MASK (0x2000U)
20252#define USBPHY_ANACTRL_TOG_EMPH_EN_SHIFT (13U)
20253#define USBPHY_ANACTRL_TOG_EMPH_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_EMPH_EN_SHIFT)) & USBPHY_ANACTRL_TOG_EMPH_EN_MASK)
20254#define USBPHY_ANACTRL_TOG_EMPH_EN USBPHY_ANACTRL_TOG_EMPH_EN_MASK
20255#define USBPHY_ANACTRL_TOG_EMPH_CUR_CTRL_MASK (0xC000U)
20256#define USBPHY_ANACTRL_TOG_EMPH_CUR_CTRL_SHIFT (14U)
20257#define USBPHY_ANACTRL_TOG_EMPH_CUR_CTRL_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_EMPH_CUR_CTRL_SHIFT)) & USBPHY_ANACTRL_TOG_EMPH_CUR_CTRL_MASK)
20258#define USBPHY_ANACTRL_TOG_EMPH_CUR_CTRL USBPHY_ANACTRL_TOG_EMPH_CUR_CTRL_MASK
20259#define USBPHY_ANACTRL_TOG_PFD_STABLE_MASK (0x80000000U)
20260#define USBPHY_ANACTRL_TOG_PFD_STABLE_SHIFT (31U)
20261#define USBPHY_ANACTRL_TOG_PFD_STABLE_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_PFD_STABLE_SHIFT)) & USBPHY_ANACTRL_TOG_PFD_STABLE_MASK)
20262#define USBPHY_ANACTRL_TOG_PFD_STABLE USBPHY_ANACTRL_TOG_PFD_STABLE_MASK
20263
20264/*! @name USB1_LOOPBACK - USB PHY Loopback Control/Status Register */
20265#define USBPHY_USB1_LOOPBACK_UTMI_TESTSTART_MASK (0x1U)
20266#define USBPHY_USB1_LOOPBACK_UTMI_TESTSTART_SHIFT (0U)
20267#define USBPHY_USB1_LOOPBACK_UTMI_TESTSTART(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_UTMI_TESTSTART_SHIFT)) & USBPHY_USB1_LOOPBACK_UTMI_TESTSTART_MASK)
20268#define USBPHY_USB1_LOOPBACK_UTMI_DIG_TST0_MASK (0x2U)
20269#define USBPHY_USB1_LOOPBACK_UTMI_DIG_TST0_SHIFT (1U)
20270#define USBPHY_USB1_LOOPBACK_UTMI_DIG_TST0_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_UTMI_DIG_TST0_SHIFT)) & USBPHY_USB1_LOOPBACK_UTMI_DIG_TST0_MASK)
20271#define USBPHY_USB1_LOOPBACK_UTMI_DIG_TST0 USBPHY_USB1_LOOPBACK_UTMI_DIG_TST0_MASK
20272#define USBPHY_USB1_LOOPBACK_UTMI_DIG_TST1_MASK (0x4U)
20273#define USBPHY_USB1_LOOPBACK_UTMI_DIG_TST1_SHIFT (2U)
20274#define USBPHY_USB1_LOOPBACK_UTMI_DIG_TST1_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_UTMI_DIG_TST1_SHIFT)) & USBPHY_USB1_LOOPBACK_UTMI_DIG_TST1_MASK)
20275#define USBPHY_USB1_LOOPBACK_UTMI_DIG_TST1 USBPHY_USB1_LOOPBACK_UTMI_DIG_TST1_MASK
20276#define USBPHY_USB1_LOOPBACK_TSTI_TX_HS_MODE_MASK (0x8U)
20277#define USBPHY_USB1_LOOPBACK_TSTI_TX_HS_MODE_SHIFT (3U)
20278#define USBPHY_USB1_LOOPBACK_TSTI_TX_HS_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TSTI_TX_HS_MODE_SHIFT)) & USBPHY_USB1_LOOPBACK_TSTI_TX_HS_MODE_MASK)
20279#define USBPHY_USB1_LOOPBACK_TSTI_TX_LS_MODE_MASK (0x10U)
20280#define USBPHY_USB1_LOOPBACK_TSTI_TX_LS_MODE_SHIFT (4U)
20281#define USBPHY_USB1_LOOPBACK_TSTI_TX_LS_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TSTI_TX_LS_MODE_SHIFT)) & USBPHY_USB1_LOOPBACK_TSTI_TX_LS_MODE_MASK)
20282#define USBPHY_USB1_LOOPBACK_TSTI_TX_EN_MASK (0x20U)
20283#define USBPHY_USB1_LOOPBACK_TSTI_TX_EN_SHIFT (5U)
20284#define USBPHY_USB1_LOOPBACK_TSTI_TX_EN_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TSTI_TX_EN_SHIFT)) & USBPHY_USB1_LOOPBACK_TSTI_TX_EN_MASK)
20285#define USBPHY_USB1_LOOPBACK_TSTI_TX_EN USBPHY_USB1_LOOPBACK_TSTI_TX_EN_MASK
20286#define USBPHY_USB1_LOOPBACK_TSTI_TX_HIZ_MASK (0x40U)
20287#define USBPHY_USB1_LOOPBACK_TSTI_TX_HIZ_SHIFT (6U)
20288#define USBPHY_USB1_LOOPBACK_TSTI_TX_HIZ_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TSTI_TX_HIZ_SHIFT)) & USBPHY_USB1_LOOPBACK_TSTI_TX_HIZ_MASK)
20289#define USBPHY_USB1_LOOPBACK_TSTI_TX_HIZ USBPHY_USB1_LOOPBACK_TSTI_TX_HIZ_MASK
20290#define USBPHY_USB1_LOOPBACK_UTMO_DIG_TST0_MASK (0x80U)
20291#define USBPHY_USB1_LOOPBACK_UTMO_DIG_TST0_SHIFT (7U)
20292#define USBPHY_USB1_LOOPBACK_UTMO_DIG_TST0_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_UTMO_DIG_TST0_SHIFT)) & USBPHY_USB1_LOOPBACK_UTMO_DIG_TST0_MASK)
20293#define USBPHY_USB1_LOOPBACK_UTMO_DIG_TST0 USBPHY_USB1_LOOPBACK_UTMO_DIG_TST0_MASK
20294#define USBPHY_USB1_LOOPBACK_UTMO_DIG_TST1_MASK (0x100U)
20295#define USBPHY_USB1_LOOPBACK_UTMO_DIG_TST1_SHIFT (8U)
20296#define USBPHY_USB1_LOOPBACK_UTMO_DIG_TST1_SET(x)(((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_UTMO_DIG_TST1_SHIFT)) & USBPHY_USB1_LOOPBACK_UTMO_DIG_TST1_MASK)
20297#define USBPHY_USB1_LOOPBACK_UTMO_DIG_TST1 USBPHY_USB1_LOOPBACK_UTMO_DIG_TST1_MASK
20298#define USBPHY_USB1_LOOPBACK_TSTI_HSFS_MODE_EN_MASK (0x8000U)
20299#define USBPHY_USB1_LOOPBACK_TSTI_HSFS_MODE_EN_SHIFT (15U)
20300#define USBPHY_USB1_LOOPBACK_TSTI_HSFS_MODE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TSTI_HSFS_MODE_EN_SHIFT)) & USBPHY_USB1_LOOPBACK_TSTI_HSFS_MODE_EN_MASK)
20301#define USBPHY_USB1_LOOPBACK_TSTPKT_MASK (0xFF0000U)
20302#define USBPHY_USB1_LOOPBACK_TSTPKT_SHIFT (16U)
20303#define USBPHY_USB1_LOOPBACK_TSTPKT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TSTPKT_SHIFT)) & USBPHY_USB1_LOOPBACK_TSTPKT_MASK)
20304#define USBPHY_USB1_LOOPBACK_TSTPKT USBPHY_USB1_LOOPBACK_TSTPKT_MASK
20305
20306/*! @name USB1_LOOPBACK_SET - USB PHY Loopback Control/Status Register */
20307#define USBPHY_USB1_LOOPBACK_SET_UTMI_TESTSTART_MASK (0x1U)
20308#define USBPHY_USB1_LOOPBACK_SET_UTMI_TESTSTART_SHIFT (0U)
20309#define USBPHY_USB1_LOOPBACK_SET_UTMI_TESTSTART(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_UTMI_TESTSTART_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_UTMI_TESTSTART_MASK)
20310#define USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST0_MASK (0x2U)
20311#define USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST0_SHIFT (1U)
20312#define USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST0_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST0_MASK)
20313#define USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST1_MASK (0x4U)
20314#define USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST1_SHIFT (2U)
20315#define USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST1_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_UTMI_DIG_TST1_MASK)
20316#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HS_MODE_MASK (0x8U)
20317#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HS_MODE_SHIFT (3U)
20318#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HS_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HS_MODE_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HS_MODE_MASK)
20319#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_LS_MODE_MASK (0x10U)
20320#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_LS_MODE_SHIFT (4U)
20321#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_LS_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_TSTI_TX_LS_MODE_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_TSTI_TX_LS_MODE_MASK)
20322#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_EN_MASK (0x20U)
20323#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_EN_SHIFT (5U)
20324#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_TSTI_TX_EN_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_TSTI_TX_EN_MASK)
20325#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HIZ_MASK (0x40U)
20326#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HIZ_SHIFT (6U)
20327#define USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HIZ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HIZ_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_TSTI_TX_HIZ_MASK)
20328#define USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST0_MASK (0x80U)
20329#define USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST0_SHIFT (7U)
20330#define USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST0_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST0_MASK)
20331#define USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST1_MASK (0x100U)
20332#define USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST1_SHIFT (8U)
20333#define USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST1_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_UTMO_DIG_TST1_MASK)
20334#define USBPHY_USB1_LOOPBACK_SET_TSTI_HSFS_MODE_EN_MASK (0x8000U)
20335#define USBPHY_USB1_LOOPBACK_SET_TSTI_HSFS_MODE_EN_SHIFT (15U)
20336#define USBPHY_USB1_LOOPBACK_SET_TSTI_HSFS_MODE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_TSTI_HSFS_MODE_EN_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_TSTI_HSFS_MODE_EN_MASK)
20337#define USBPHY_USB1_LOOPBACK_SET_TSTPKT_MASK (0xFF0000U)
20338#define USBPHY_USB1_LOOPBACK_SET_TSTPKT_SHIFT (16U)
20339#define USBPHY_USB1_LOOPBACK_SET_TSTPKT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_SET_TSTPKT_SHIFT)) & USBPHY_USB1_LOOPBACK_SET_TSTPKT_MASK)
20340#define USBPHY_USB1_LOOPBACK_SET_TSTPKT USBPHY_USB1_LOOPBACK_SET_TSTPKT_MASK
20341
20342/*! @name USB1_LOOPBACK_CLR - USB PHY Loopback Control/Status Register */
20343#define USBPHY_USB1_LOOPBACK_CLR_UTMI_TESTSTART_MASK (0x1U)
20344#define USBPHY_USB1_LOOPBACK_CLR_UTMI_TESTSTART_SHIFT (0U)
20345#define USBPHY_USB1_LOOPBACK_CLR_UTMI_TESTSTART(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_UTMI_TESTSTART_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_UTMI_TESTSTART_MASK)
20346#define USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST0_MASK (0x2U)
20347#define USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST0_SHIFT (1U)
20348#define USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST0_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST0_MASK)
20349#define USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST1_MASK (0x4U)
20350#define USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST1_SHIFT (2U)
20351#define USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST1_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_UTMI_DIG_TST1_MASK)
20352#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HS_MODE_MASK (0x8U)
20353#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HS_MODE_SHIFT (3U)
20354#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HS_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HS_MODE_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HS_MODE_MASK)
20355#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_LS_MODE_MASK (0x10U)
20356#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_LS_MODE_SHIFT (4U)
20357#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_LS_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_LS_MODE_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_LS_MODE_MASK)
20358#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_EN_MASK (0x20U)
20359#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_EN_SHIFT (5U)
20360#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_EN_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_EN_MASK)
20361#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HIZ_MASK (0x40U)
20362#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HIZ_SHIFT (6U)
20363#define USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HIZ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HIZ_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_TSTI_TX_HIZ_MASK)
20364#define USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST0_MASK (0x80U)
20365#define USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST0_SHIFT (7U)
20366#define USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST0_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST0_MASK)
20367#define USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST1_MASK (0x100U)
20368#define USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST1_SHIFT (8U)
20369#define USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST1_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_UTMO_DIG_TST1_MASK)
20370#define USBPHY_USB1_LOOPBACK_CLR_TSTI_HSFS_MODE_EN_MASK (0x8000U)
20371#define USBPHY_USB1_LOOPBACK_CLR_TSTI_HSFS_MODE_EN_SHIFT (15U)
20372#define USBPHY_USB1_LOOPBACK_CLR_TSTI_HSFS_MODE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_TSTI_HSFS_MODE_EN_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_TSTI_HSFS_MODE_EN_MASK)
20373#define USBPHY_USB1_LOOPBACK_CLR_TSTPKT_MASK (0xFF0000U)
20374#define USBPHY_USB1_LOOPBACK_CLR_TSTPKT_SHIFT (16U)
20375#define USBPHY_USB1_LOOPBACK_CLR_TSTPKT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_CLR_TSTPKT_SHIFT)) & USBPHY_USB1_LOOPBACK_CLR_TSTPKT_MASK)
20376#define USBPHY_USB1_LOOPBACK_CLR_TSTPKT USBPHY_USB1_LOOPBACK_CLR_TSTPKT_MASK
20377
20378/*! @name USB1_LOOPBACK_TOG - USB PHY Loopback Control/Status Register */
20379#define USBPHY_USB1_LOOPBACK_TOG_UTMI_TESTSTART_MASK (0x1U)
20380#define USBPHY_USB1_LOOPBACK_TOG_UTMI_TESTSTART_SHIFT (0U)
20381#define USBPHY_USB1_LOOPBACK_TOG_UTMI_TESTSTART(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_UTMI_TESTSTART_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_UTMI_TESTSTART_MASK)
20382#define USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST0_MASK (0x2U)
20383#define USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST0_SHIFT (1U)
20384#define USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST0_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST0_MASK)
20385#define USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST1_MASK (0x4U)
20386#define USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST1_SHIFT (2U)
20387#define USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST1_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_UTMI_DIG_TST1_MASK)
20388#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HS_MODE_MASK (0x8U)
20389#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HS_MODE_SHIFT (3U)
20390#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HS_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HS_MODE_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HS_MODE_MASK)
20391#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_LS_MODE_MASK (0x10U)
20392#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_LS_MODE_SHIFT (4U)
20393#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_LS_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_LS_MODE_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_LS_MODE_MASK)
20394#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_EN_MASK (0x20U)
20395#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_EN_SHIFT (5U)
20396#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_EN_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_EN_MASK)
20397#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HIZ_MASK (0x40U)
20398#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HIZ_SHIFT (6U)
20399#define USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HIZ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HIZ_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_TSTI_TX_HIZ_MASK)
20400#define USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST0_MASK (0x80U)
20401#define USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST0_SHIFT (7U)
20402#define USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST0_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST0_MASK)
20403#define USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST1_MASK (0x100U)
20404#define USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST1_SHIFT (8U)
20405#define USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST1_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_UTMO_DIG_TST1_MASK)
20406#define USBPHY_USB1_LOOPBACK_TOG_TSTI_HSFS_MODE_EN_MASK (0x8000U)
20407#define USBPHY_USB1_LOOPBACK_TOG_TSTI_HSFS_MODE_EN_SHIFT (15U)
20408#define USBPHY_USB1_LOOPBACK_TOG_TSTI_HSFS_MODE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_TSTI_HSFS_MODE_EN_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_TSTI_HSFS_MODE_EN_MASK)
20409#define USBPHY_USB1_LOOPBACK_TOG_TSTPKT_MASK (0xFF0000U)
20410#define USBPHY_USB1_LOOPBACK_TOG_TSTPKT_SHIFT (16U)
20411#define USBPHY_USB1_LOOPBACK_TOG_TSTPKT_SET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_TOG_TSTPKT_SHIFT)) & USBPHY_USB1_LOOPBACK_TOG_TSTPKT_MASK)
20412#define USBPHY_USB1_LOOPBACK_TOG_TSTPKT USBPHY_USB1_LOOPBACK_TOG_TSTPKT_MASK
20413
20414/*! @name USB1_LOOPBACK_HSFSCNT - USB PHY Loopback Packet Number Select Register */
20415#define USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_HS_NUMBER_MASK (0xFFFFU)
20416#define USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_HS_NUMBER_SHIFT (0U)
20417#define USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_HS_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_HS_NUMBER_SHIFT)) & USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_HS_NUMBER_MASK)
20418#define USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_FS_NUMBER_MASK (0xFFFF0000U)
20419#define USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_FS_NUMBER_SHIFT (16U)
20420#define USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_FS_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_FS_NUMBER_SHIFT)) & USBPHY_USB1_LOOPBACK_HSFSCNT_TSTI_FS_NUMBER_MASK)
20421
20422/*! @name USB1_LOOPBACK_HSFSCNT_SET - USB PHY Loopback Packet Number Select Register */
20423#define USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_HS_NUMBER_MASK (0xFFFFU)
20424#define USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_HS_NUMBER_SHIFT (0U)
20425#define USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_HS_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_HS_NUMBER_SHIFT)) & USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_HS_NUMBER_MASK)
20426#define USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_FS_NUMBER_MASK (0xFFFF0000U)
20427#define USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_FS_NUMBER_SHIFT (16U)
20428#define USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_FS_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_FS_NUMBER_SHIFT)) & USBPHY_USB1_LOOPBACK_HSFSCNT_SET_TSTI_FS_NUMBER_MASK)
20429
20430/*! @name USB1_LOOPBACK_HSFSCNT_CLR - USB PHY Loopback Packet Number Select Register */
20431#define USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_HS_NUMBER_MASK (0xFFFFU)
20432#define USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_HS_NUMBER_SHIFT (0U)
20433#define USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_HS_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_HS_NUMBER_SHIFT)) & USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_HS_NUMBER_MASK)
20434#define USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_FS_NUMBER_MASK (0xFFFF0000U)
20435#define USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_FS_NUMBER_SHIFT (16U)
20436#define USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_FS_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_FS_NUMBER_SHIFT)) & USBPHY_USB1_LOOPBACK_HSFSCNT_CLR_TSTI_FS_NUMBER_MASK)
20437
20438/*! @name USB1_LOOPBACK_HSFSCNT_TOG - USB PHY Loopback Packet Number Select Register */
20439#define USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_HS_NUMBER_MASK (0xFFFFU)
20440#define USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_HS_NUMBER_SHIFT (0U)
20441#define USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_HS_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_HS_NUMBER_SHIFT)) & USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_HS_NUMBER_MASK)
20442#define USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_FS_NUMBER_MASK (0xFFFF0000U)
20443#define USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_FS_NUMBER_SHIFT (16U)
20444#define USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_FS_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_FS_NUMBER_SHIFT)) & USBPHY_USB1_LOOPBACK_HSFSCNT_TOG_TSTI_FS_NUMBER_MASK)
20445
20446/*! @name TRIM_OVERRIDE_EN - USB PHY Trim Override Enable Register */
20447#define USBPHY_TRIM_OVERRIDE_EN_TRIM_DIV_SEL_OVERRIDE_MASK (0x1U)
20448#define USBPHY_TRIM_OVERRIDE_EN_TRIM_DIV_SEL_OVERRIDE_SHIFT (0U)
20449#define USBPHY_TRIM_OVERRIDE_EN_TRIM_DIV_SEL_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_DIV_SEL_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_DIV_SEL_OVERRIDE_MASK)
20450#define USBPHY_TRIM_OVERRIDE_EN_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_MASK (0x2U)
20451#define USBPHY_TRIM_OVERRIDE_EN_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_SHIFT (1U)
20452#define USBPHY_TRIM_OVERRIDE_EN_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_MASK)
20453#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_D_CAL_OVERRIDE_MASK (0x4U)
20454#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_D_CAL_OVERRIDE_SHIFT (2U)
20455#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_D_CAL_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_D_CAL_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_D_CAL_OVERRIDE_MASK)
20456#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DP_OVERRIDE_MASK (0x8U)
20457#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DP_OVERRIDE_SHIFT (3U)
20458#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DP_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DP_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DP_OVERRIDE_MASK)
20459#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DM_OVERRIDE_MASK (0x10U)
20460#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DM_OVERRIDE_SHIFT (4U)
20461#define USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DM_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DM_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_TX_CAL45DM_OVERRIDE_MASK)
20462#define USBPHY_TRIM_OVERRIDE_EN_TRIM_PLL_CTRL0_DIV_SEL_MASK (0x30000U)
20463#define USBPHY_TRIM_OVERRIDE_EN_TRIM_PLL_CTRL0_DIV_SEL_SHIFT (16U)
20464#define USBPHY_TRIM_OVERRIDE_EN_TRIM_PLL_CTRL0_DIV_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_PLL_CTRL0_DIV_SEL_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_PLL_CTRL0_DIV_SEL_MASK)
20465#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_MASK (0xC0000U)
20466#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_SHIFT (18U)
20467#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBx_REG_ENV_TAIL_ADJ_VD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_MASK)
20468#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_D_CAL_MASK (0xF00000U)
20469#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_D_CAL_SHIFT (20U)
20470#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_D_CAL_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_D_CAL_MASK)
20471#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DP_MASK (0xF000000U)
20472#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DP_SHIFT (24U)
20473#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DP_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DP_MASK)
20474#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DM_MASK (0xF0000000U)
20475#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DM_SHIFT (28U)
20476#define USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DM_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TRIM_USBPHY_TX_CAL45DM_MASK)
20477
20478/*! @name TRIM_OVERRIDE_EN_SET - USB PHY Trim Override Enable Register */
20479#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_DIV_SEL_OVERRIDE_MASK (0x1U)
20480#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_DIV_SEL_OVERRIDE_SHIFT (0U)
20481#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_DIV_SEL_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_DIV_SEL_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_DIV_SEL_OVERRIDE_MASK)
20482#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_MASK (0x2U)
20483#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_SHIFT (1U)
20484#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_MASK)
20485#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_D_CAL_OVERRIDE_MASK (0x4U)
20486#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_D_CAL_OVERRIDE_SHIFT (2U)
20487#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_D_CAL_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_D_CAL_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_D_CAL_OVERRIDE_MASK)
20488#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DP_OVERRIDE_MASK (0x8U)
20489#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DP_OVERRIDE_SHIFT (3U)
20490#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DP_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DP_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DP_OVERRIDE_MASK)
20491#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DM_OVERRIDE_MASK (0x10U)
20492#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DM_OVERRIDE_SHIFT (4U)
20493#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DM_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DM_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_TX_CAL45DM_OVERRIDE_MASK)
20494#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_PLL_CTRL0_DIV_SEL_MASK (0x30000U)
20495#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_PLL_CTRL0_DIV_SEL_SHIFT (16U)
20496#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_PLL_CTRL0_DIV_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_PLL_CTRL0_DIV_SEL_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_PLL_CTRL0_DIV_SEL_MASK)
20497#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_MASK (0xC0000U)
20498#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_SHIFT (18U)
20499#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBx_REG_ENV_TAIL_ADJ_VD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_MASK)
20500#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_D_CAL_MASK (0xF00000U)
20501#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_D_CAL_SHIFT (20U)
20502#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_D_CAL_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_D_CAL_MASK)
20503#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DP_MASK (0xF000000U)
20504#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DP_SHIFT (24U)
20505#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DP_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DP_MASK)
20506#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DM_MASK (0xF0000000U)
20507#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DM_SHIFT (28U)
20508#define USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DM_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_SET_TRIM_USBPHY_TX_CAL45DM_MASK)
20509
20510/*! @name TRIM_OVERRIDE_EN_CLR - USB PHY Trim Override Enable Register */
20511#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_DIV_SEL_OVERRIDE_MASK (0x1U)
20512#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_DIV_SEL_OVERRIDE_SHIFT (0U)
20513#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_DIV_SEL_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_DIV_SEL_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_DIV_SEL_OVERRIDE_MASK)
20514#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_MASK (0x2U)
20515#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_SHIFT (1U)
20516#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_MASK)
20517#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_D_CAL_OVERRIDE_MASK (0x4U)
20518#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_D_CAL_OVERRIDE_SHIFT (2U)
20519#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_D_CAL_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_D_CAL_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_D_CAL_OVERRIDE_MASK)
20520#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DP_OVERRIDE_MASK (0x8U)
20521#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DP_OVERRIDE_SHIFT (3U)
20522#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DP_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DP_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DP_OVERRIDE_MASK)
20523#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DM_OVERRIDE_MASK (0x10U)
20524#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DM_OVERRIDE_SHIFT (4U)
20525#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DM_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DM_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_TX_CAL45DM_OVERRIDE_MASK)
20526#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_PLL_CTRL0_DIV_SEL_MASK (0x30000U)
20527#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_PLL_CTRL0_DIV_SEL_SHIFT (16U)
20528#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_PLL_CTRL0_DIV_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_PLL_CTRL0_DIV_SEL_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_PLL_CTRL0_DIV_SEL_MASK)
20529#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_MASK (0xC0000U)
20530#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_SHIFT (18U)
20531#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBx_REG_ENV_TAIL_ADJ_VD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_MASK)
20532#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_D_CAL_MASK (0xF00000U)
20533#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_D_CAL_SHIFT (20U)
20534#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_D_CAL_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_D_CAL_MASK)
20535#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DP_MASK (0xF000000U)
20536#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DP_SHIFT (24U)
20537#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DP_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DP_MASK)
20538#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DM_MASK (0xF0000000U)
20539#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DM_SHIFT (28U)
20540#define USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DM_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_CLR_TRIM_USBPHY_TX_CAL45DM_MASK)
20541
20542/*! @name TRIM_OVERRIDE_EN_TOG - USB PHY Trim Override Enable Register */
20543#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_DIV_SEL_OVERRIDE_MASK (0x1U)
20544#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_DIV_SEL_OVERRIDE_SHIFT (0U)
20545#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_DIV_SEL_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_DIV_SEL_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_DIV_SEL_OVERRIDE_MASK)
20546#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_MASK (0x2U)
20547#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_SHIFT (1U)
20548#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_ENV_TAIL_ADJ_VD_OVERRIDE_MASK)
20549#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_D_CAL_OVERRIDE_MASK (0x4U)
20550#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_D_CAL_OVERRIDE_SHIFT (2U)
20551#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_D_CAL_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_D_CAL_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_D_CAL_OVERRIDE_MASK)
20552#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DP_OVERRIDE_MASK (0x8U)
20553#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DP_OVERRIDE_SHIFT (3U)
20554#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DP_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DP_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DP_OVERRIDE_MASK)
20555#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DM_OVERRIDE_MASK (0x10U)
20556#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DM_OVERRIDE_SHIFT (4U)
20557#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DM_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DM_OVERRIDE_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_TX_CAL45DM_OVERRIDE_MASK)
20558#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_PLL_CTRL0_DIV_SEL_MASK (0x30000U)
20559#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_PLL_CTRL0_DIV_SEL_SHIFT (16U)
20560#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_PLL_CTRL0_DIV_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_PLL_CTRL0_DIV_SEL_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_PLL_CTRL0_DIV_SEL_MASK)
20561#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_MASK (0xC0000U)
20562#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_SHIFT (18U)
20563#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBx_REG_ENV_TAIL_ADJ_VD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBx_REG_ENV_TAIL_ADJ_VD_MASK)
20564#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_D_CAL_MASK (0xF00000U)
20565#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_D_CAL_SHIFT (20U)
20566#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_D_CAL_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_D_CAL_MASK)
20567#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DP_MASK (0xF000000U)
20568#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DP_SHIFT (24U)
20569#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DP_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DP_MASK)
20570#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DM_MASK (0xF0000000U)
20571#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DM_SHIFT (28U)
20572#define USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DM_SHIFT)) & USBPHY_TRIM_OVERRIDE_EN_TOG_TRIM_USBPHY_TX_CAL45DM_MASK)
20573
20574
20575/*!
20576 * @}
20577 */ /* end of group USBPHY_Register_Masks */
20578
20579
20580/* USBPHY - Peripheral instance base addresses */
20581/** Peripheral USBPHY base address */
20582#define USBPHY_BASE (0x400A2000u)
20583/** Peripheral USBPHY base pointer */
20584#define USBPHY ((USBPHY_TypeDef *)USBPHY_BASE)
20585/** Array initializer of USBPHY peripheral base addresses */
20586#define USBPHY_BASE_ADDRS { USBPHY_BASE }
20587/** Array initializer of USBPHY peripheral base pointers */
20588#define USBPHY_BASE_PTRS { USBPHY }
20589
20590/*!
20591 * @}
20592 */ /* end of group USBPHY_Peripheral_Access_Layer */
20593
20594
20595/* ----------------------------------------------------------------------------
20596 -- VREF Peripheral Access Layer
20597 ---------------------------------------------------------------------------- */
20598
20599/*!
20600 * @addtogroup VREF_Peripheral_Access_Layer VREF Peripheral Access Layer
20601 * @{
20602 */
20603
20604/** VREF - Register Layout Typedef */
20605typedef struct {
20606 __IO uint8_t TRM; /**< VREF Trim Register, offset: 0x0 */
20607 __IO uint8_t SC; /**< VREF Status and Control Register, offset: 0x1 */
20608} VREF_TypeDef;
20609
20610/* ----------------------------------------------------------------------------
20611 -- VREF Register Masks
20612 ---------------------------------------------------------------------------- */
20613
20614/*!
20615 * @addtogroup VREF_Register_Masks VREF Register Masks
20616 * @{
20617 */
20618
20619/*! @name TRM - VREF Trim Register */
20620#define VREF_TRM_TRIM_MASK (0x3FU)
20621#define VREF_TRM_TRIM_SHIFT (0U)
20622#define VREF_TRM_TRIM_SET(x) (((uint8_t)(((uint8_t)(x)) << VREF_TRM_TRIM_SHIFT)) & VREF_TRM_TRIM_MASK)
20623#define VREF_TRM_TRIM VREF_TRM_TRIM_MASK
20624#define VREF_TRM_CHOPEN_MASK (0x40U)
20625#define VREF_TRM_CHOPEN_SHIFT (6U)
20626#define VREF_TRM_CHOPEN_SET(x) (((uint8_t)(((uint8_t)(x)) << VREF_TRM_CHOPEN_SHIFT)) & VREF_TRM_CHOPEN_MASK)
20627#define VREF_TRM_CHOPEN VREF_TRM_CHOPEN_MASK
20628
20629/*! @name SC - VREF Status and Control Register */
20630#define VREF_SC_MODE_LV_MASK (0x3U)
20631#define VREF_SC_MODE_LV_SHIFT (0U)
20632#define VREF_SC_MODE_LV_SET(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_MODE_LV_SHIFT)) & VREF_SC_MODE_LV_MASK)
20633#define VREF_SC_MODE_LV VREF_SC_MODE_LV_MASK
20634#define VREF_SC_VREFST_MASK (0x4U)
20635#define VREF_SC_VREFST_SHIFT (2U)
20636#define VREF_SC_VREFST_SET(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_VREFST_SHIFT)) & VREF_SC_VREFST_MASK)
20637#define VREF_SC_VREFST VREF_SC_VREFST_MASK
20638#define VREF_SC_ICOMPEN_MASK (0x20U)
20639#define VREF_SC_ICOMPEN_SHIFT (5U)
20640#define VREF_SC_ICOMPEN_SET(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_ICOMPEN_SHIFT)) & VREF_SC_ICOMPEN_MASK)
20641#define VREF_SC_ICOMPEN VREF_SC_ICOMPEN_MASK
20642#define VREF_SC_REGEN_MASK (0x40U)
20643#define VREF_SC_REGEN_SHIFT (6U)
20644#define VREF_SC_REGEN_SET(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_REGEN_SHIFT)) & VREF_SC_REGEN_MASK)
20645#define VREF_SC_REGEN VREF_SC_REGEN_MASK
20646#define VREF_SC_VREFEN_MASK (0x80U)
20647#define VREF_SC_VREFEN_SHIFT (7U)
20648#define VREF_SC_VREFEN_SET(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_VREFEN_SHIFT)) & VREF_SC_VREFEN_MASK)
20649#define VREF_SC_VREFEN VREF_SC_VREFEN_MASK
20650
20651
20652/*!
20653 * @}
20654 */ /* end of group VREF_Register_Masks */
20655
20656
20657/* VREF - Peripheral instance base addresses */
20658/** Peripheral VREF base address */
20659#define VREF_BASE (0x40074000u)
20660/** Peripheral VREF base pointer */
20661#define VREF ((VREF_TypeDef *)VREF_BASE)
20662/** Array initializer of VREF peripheral base addresses */
20663#define VREF_BASE_ADDRS { VREF_BASE }
20664/** Array initializer of VREF peripheral base pointers */
20665#define VREF_BASE_PTRS { VREF }
20666
20667/*!
20668 * @}
20669 */ /* end of group VREF_Peripheral_Access_Layer */
20670
20671
20672/* ----------------------------------------------------------------------------
20673 -- WDOG Peripheral Access Layer
20674 ---------------------------------------------------------------------------- */
20675
20676/*!
20677 * @addtogroup WDOG_Peripheral_Access_Layer WDOG Peripheral Access Layer
20678 * @{
20679 */
20680
20681/** WDOG - Register Layout Typedef */
20682typedef struct {
20683 __IO uint16_t STCTRLH; /**< Watchdog Status and Control Register High, offset: 0x0 */
20684 __IO uint16_t STCTRLL; /**< Watchdog Status and Control Register Low, offset: 0x2 */
20685 __IO uint16_t TOVALH; /**< Watchdog Time-out Value Register High, offset: 0x4 */
20686 __IO uint16_t TOVALL; /**< Watchdog Time-out Value Register Low, offset: 0x6 */
20687 __IO uint16_t WINH; /**< Watchdog Window Register High, offset: 0x8 */
20688 __IO uint16_t WINL; /**< Watchdog Window Register Low, offset: 0xA */
20689 __IO uint16_t REFRESH; /**< Watchdog Refresh register, offset: 0xC */
20690 __IO uint16_t UNLOCK; /**< Watchdog Unlock register, offset: 0xE */
20691 __IO uint16_t TMROUTH; /**< Watchdog Timer Output Register High, offset: 0x10 */
20692 __IO uint16_t TMROUTL; /**< Watchdog Timer Output Register Low, offset: 0x12 */
20693 __IO uint16_t RSTCNT; /**< Watchdog Reset Count register, offset: 0x14 */
20694 __IO uint16_t PRESC; /**< Watchdog Prescaler register, offset: 0x16 */
20695} WDOG_TypeDef;
20696
20697/* ----------------------------------------------------------------------------
20698 -- WDOG Register Masks
20699 ---------------------------------------------------------------------------- */
20700
20701/*!
20702 * @addtogroup WDOG_Register_Masks WDOG Register Masks
20703 * @{
20704 */
20705
20706/*! @name STCTRLH - Watchdog Status and Control Register High */
20707#define WDOG_STCTRLH_WDOGEN_MASK (0x1U)
20708#define WDOG_STCTRLH_WDOGEN_SHIFT (0U)
20709#define WDOG_STCTRLH_WDOGEN_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_WDOGEN_SHIFT)) & WDOG_STCTRLH_WDOGEN_MASK)
20710#define WDOG_STCTRLH_WDOGEN WDOG_STCTRLH_WDOGEN_SET(1)
20711#define WDOG_STCTRLH_CLKSRC_MASK (0x2U)
20712#define WDOG_STCTRLH_CLKSRC_SHIFT (1U)
20713#define WDOG_STCTRLH_CLKSRC_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_CLKSRC_SHIFT)) & WDOG_STCTRLH_CLKSRC_MASK)
20714#define WDOG_STCTRLH_CLKSRC WDOG_STCTRLH_CLKSRC_MASK
20715#define WDOG_STCTRLH_IRQRSTEN_MASK (0x4U)
20716#define WDOG_STCTRLH_IRQRSTEN_SHIFT (2U)
20717#define WDOG_STCTRLH_IRQRSTEN_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_IRQRSTEN_SHIFT)) & WDOG_STCTRLH_IRQRSTEN_MASK)
20718#define WDOG_STCTRLH_IRQRSTEN WDOG_STCTRLH_IRQRSTEN_MASK
20719#define WDOG_STCTRLH_WINEN_MASK (0x8U)
20720#define WDOG_STCTRLH_WINEN_SHIFT (3U)
20721#define WDOG_STCTRLH_WINEN_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_WINEN_SHIFT)) & WDOG_STCTRLH_WINEN_MASK)
20722#define WDOG_STCTRLH_WINEN WDOG_STCTRLH_WINEN_MASK
20723#define WDOG_STCTRLH_ALLOWUPDATE_MASK (0x10U)
20724#define WDOG_STCTRLH_ALLOWUPDATE_SHIFT (4U)
20725#define WDOG_STCTRLH_ALLOWUPDATE_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_ALLOWUPDATE_SHIFT)) & WDOG_STCTRLH_ALLOWUPDATE_MASK)
20726#define WDOG_STCTRLH_ALLOWUPDATE WDOG_STCTRLH_ALLOWUPDATE_MASK
20727#define WDOG_STCTRLH_DBGEN_MASK (0x20U)
20728#define WDOG_STCTRLH_DBGEN_SHIFT (5U)
20729#define WDOG_STCTRLH_DBGEN_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_DBGEN_SHIFT)) & WDOG_STCTRLH_DBGEN_MASK)
20730#define WDOG_STCTRLH_DBGEN WDOG_STCTRLH_DBGEN_MASK
20731#define WDOG_STCTRLH_STOPEN_MASK (0x40U)
20732#define WDOG_STCTRLH_STOPEN_SHIFT (6U)
20733#define WDOG_STCTRLH_STOPEN_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_STOPEN_SHIFT)) & WDOG_STCTRLH_STOPEN_MASK)
20734#define WDOG_STCTRLH_STOPEN WDOG_STCTRLH_STOPEN_MASK
20735#define WDOG_STCTRLH_WAITEN_MASK (0x80U)
20736#define WDOG_STCTRLH_WAITEN_SHIFT (7U)
20737#define WDOG_STCTRLH_WAITEN_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_WAITEN_SHIFT)) & WDOG_STCTRLH_WAITEN_MASK)
20738#define WDOG_STCTRLH_WAITEN WDOG_STCTRLH_WAITEN_MASK
20739#define WDOG_STCTRLH_TESTWDOG_MASK (0x400U)
20740#define WDOG_STCTRLH_TESTWDOG_SHIFT (10U)
20741#define WDOG_STCTRLH_TESTWDOG_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_TESTWDOG_SHIFT)) & WDOG_STCTRLH_TESTWDOG_MASK)
20742#define WDOG_STCTRLH_TESTWDOG WDOG_STCTRLH_TESTWDOG_MASK
20743#define WDOG_STCTRLH_TESTSEL_MASK (0x800U)
20744#define WDOG_STCTRLH_TESTSEL_SHIFT (11U)
20745#define WDOG_STCTRLH_TESTSEL_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_TESTSEL_SHIFT)) & WDOG_STCTRLH_TESTSEL_MASK)
20746#define WDOG_STCTRLH_TESTSEL WDOG_STCTRLH_TESTSEL_MASK
20747#define WDOG_STCTRLH_BYTESEL_MASK (0x3000U)
20748#define WDOG_STCTRLH_BYTESEL_SHIFT (12U)
20749#define WDOG_STCTRLH_BYTESEL_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_BYTESEL_SHIFT)) & WDOG_STCTRLH_BYTESEL_MASK)
20750#define WDOG_STCTRLH_BYTESEL WDOG_STCTRLH_BYTESEL_MASK
20751#define WDOG_STCTRLH_DISTESTWDOG_MASK (0x4000U)
20752#define WDOG_STCTRLH_DISTESTWDOG_SHIFT (14U)
20753#define WDOG_STCTRLH_DISTESTWDOG_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_DISTESTWDOG_SHIFT)) & WDOG_STCTRLH_DISTESTWDOG_MASK)
20754#define WDOG_STCTRLH_DISTESTWDOG WDOG_STCTRLH_DISTESTWDOG_MASK
20755
20756/*! @name STCTRLL - Watchdog Status and Control Register Low */
20757#define WDOG_STCTRLL_INTFLG_MASK (0x8000U)
20758#define WDOG_STCTRLL_INTFLG_SHIFT (15U)
20759#define WDOG_STCTRLL_INTFLG_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLL_INTFLG_SHIFT)) & WDOG_STCTRLL_INTFLG_MASK)
20760#define WDOG_STCTRLL_INTFLG WDOG_STCTRLL_INTFLG_MASK
20761
20762/*! @name TOVALH - Watchdog Time-out Value Register High */
20763#define WDOG_TOVALH_TOVALHIGH_MASK (0xFFFFU)
20764#define WDOG_TOVALH_TOVALHIGH_SHIFT (0U)
20765#define WDOG_TOVALH_TOVALHIGH_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_TOVALH_TOVALHIGH_SHIFT)) & WDOG_TOVALH_TOVALHIGH_MASK)
20766#define WDOG_TOVALH_TOVALHIGH WDOG_TOVALH_TOVALHIGH_MASK
20767
20768/*! @name TOVALL - Watchdog Time-out Value Register Low */
20769#define WDOG_TOVALL_TOVALLOW_MASK (0xFFFFU)
20770#define WDOG_TOVALL_TOVALLOW_SHIFT (0U)
20771#define WDOG_TOVALL_TOVALLOW_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_TOVALL_TOVALLOW_SHIFT)) & WDOG_TOVALL_TOVALLOW_MASK)
20772#define WDOG_TOVALL_TOVALLOW WDOG_TOVALL_TOVALLOW_MASK
20773
20774/*! @name WINH - Watchdog Window Register High */
20775#define WDOG_WINH_WINHIGH_MASK (0xFFFFU)
20776#define WDOG_WINH_WINHIGH_SHIFT (0U)
20777#define WDOG_WINH_WINHIGH_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_WINH_WINHIGH_SHIFT)) & WDOG_WINH_WINHIGH_MASK)
20778#define WDOG_WINH_WINHIGH WDOG_WINH_WINHIGH_MASK
20779
20780/*! @name WINL - Watchdog Window Register Low */
20781#define WDOG_WINL_WINLOW_MASK (0xFFFFU)
20782#define WDOG_WINL_WINLOW_SHIFT (0U)
20783#define WDOG_WINL_WINLOW_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_WINL_WINLOW_SHIFT)) & WDOG_WINL_WINLOW_MASK)
20784#define WDOG_WINL_WINLOW WDOG_WINL_WINLOW_MASK
20785
20786/*! @name REFRESH - Watchdog Refresh register */
20787#define WDOG_REFRESH_WDOGREFRESH_MASK (0xFFFFU)
20788#define WDOG_REFRESH_WDOGREFRESH_SHIFT (0U)
20789#define WDOG_REFRESH_WDOGREFRESH_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_REFRESH_WDOGREFRESH_SHIFT)) & WDOG_REFRESH_WDOGREFRESH_MASK)
20790#define WDOG_REFRESH_WDOGREFRESH WDOG_REFRESH_WDOGREFRESH_MASK
20791
20792/*! @name UNLOCK - Watchdog Unlock register */
20793#define WDOG_UNLOCK_WDOGUNLOCK_MASK (0xFFFFU)
20794#define WDOG_UNLOCK_WDOGUNLOCK_SHIFT (0U)
20795#define WDOG_UNLOCK_WDOGUNLOCK_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_UNLOCK_WDOGUNLOCK_SHIFT)) & WDOG_UNLOCK_WDOGUNLOCK_MASK)
20796#define WDOG_UNLOCK_WDOGUNLOCK WDOG_UNLOCK_WDOGUNLOCK_MASK
20797
20798/*! @name TMROUTH - Watchdog Timer Output Register High */
20799#define WDOG_TMROUTH_TIMEROUTHIGH_MASK (0xFFFFU)
20800#define WDOG_TMROUTH_TIMEROUTHIGH_SHIFT (0U)
20801#define WDOG_TMROUTH_TIMEROUTHIGH_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_TMROUTH_TIMEROUTHIGH_SHIFT)) & WDOG_TMROUTH_TIMEROUTHIGH_MASK)
20802#define WDOG_TMROUTH_TIMEROUTHIGH WDOG_TMROUTH_TIMEROUTHIGH_MASK
20803
20804/*! @name TMROUTL - Watchdog Timer Output Register Low */
20805#define WDOG_TMROUTL_TIMEROUTLOW_MASK (0xFFFFU)
20806#define WDOG_TMROUTL_TIMEROUTLOW_SHIFT (0U)
20807#define WDOG_TMROUTL_TIMEROUTLOW_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_TMROUTL_TIMEROUTLOW_SHIFT)) & WDOG_TMROUTL_TIMEROUTLOW_MASK)
20808#define WDOG_TMROUTL_TIMEROUTLOW WDOG_TMROUTL_TIMEROUTLOW_MASK
20809
20810/*! @name RSTCNT - Watchdog Reset Count register */
20811#define WDOG_RSTCNT_RSTCNT_MASK (0xFFFFU)
20812#define WDOG_RSTCNT_RSTCNT_SHIFT (0U)
20813#define WDOG_RSTCNT_RSTCNT_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_RSTCNT_RSTCNT_SHIFT)) & WDOG_RSTCNT_RSTCNT_MASK)
20814#define WDOG_RSTCNT_RSTCNT WDOG_RSTCNT_RSTCNT_MASK
20815
20816/*! @name PRESC - Watchdog Prescaler register */
20817#define WDOG_PRESC_PRESCVAL_MASK (0x700U)
20818#define WDOG_PRESC_PRESCVAL_SHIFT (8U)
20819#define WDOG_PRESC_PRESCVAL_SET(x) (((uint16_t)(((uint16_t)(x)) << WDOG_PRESC_PRESCVAL_SHIFT)) & WDOG_PRESC_PRESCVAL_MASK)
20820#define WDOG_PRESC_PRESCVAL WDOG_PRESC_PRESCVAL_MASK
20821
20822
20823/*!
20824 * @}
20825 */ /* end of group WDOG_Register_Masks */
20826
20827
20828/* WDOG - Peripheral instance base addresses */
20829/** Peripheral WDOG base address */
20830#define WDOG_BASE (0x40052000u)
20831/** Peripheral WDOG base pointer */
20832#define WDOG ((WDOG_TypeDef *)WDOG_BASE)
20833/** Array initializer of WDOG peripheral base addresses */
20834#define WDOG_BASE_ADDRS { WDOG_BASE }
20835/** Array initializer of WDOG peripheral base pointers */
20836#define WDOG_BASE_PTRS { WDOG }
20837/** Interrupt vectors for the WDOG peripheral type */
20838#define WDOG_IRQS { WDOG_EWM_IRQn }
20839
20840/*!
20841 * @}
20842 */ /* end of group WDOG_Peripheral_Access_Layer */
20843
20844
20845/*
20846** End of section using anonymous unions
20847*/
20848
20849#if defined(__ARMCC_VERSION)
20850 #if (__ARMCC_VERSION >= 6010050)
20851 #pragma clang diagnostic pop
20852 #else
20853 #pragma pop
20854 #endif
20855#elif defined(__CWCC__)
20856 #pragma pop
20857#elif defined(__GNUC__)
20858 /* leave anonymous unions enabled */
20859#elif defined(__IAR_SYSTEMS_ICC__)
20860 #pragma language=default
20861#else
20862 #error Not supported compiler type
20863#endif
20864
20865/*!
20866 * @}
20867 */ /* end of group Peripheral_access_layer */
20868
20869
20870/* ----------------------------------------------------------------------------
20871 -- Macros for use with bit field definitions (xxx_SHIFT, xxx_MASK).
20872 ---------------------------------------------------------------------------- */
20873
20874/*!
20875 * @addtogroup Bit_Field_Generic_Macros Macros for use with bit field definitions (xxx_SHIFT, xxx_MASK).
20876 * @{
20877 */
20878
20879#if defined(__ARMCC_VERSION)
20880 #if (__ARMCC_VERSION >= 6010050)
20881 #pragma clang system_header
20882 #endif
20883#elif defined(__IAR_SYSTEMS_ICC__)
20884 #pragma system_include
20885#endif
20886
20887/**
20888 * @brief Mask and left-shift a bit field value for use in a register bit range.
20889 * @param field Name of the register bit field.
20890 * @param value Value of the bit field.
20891 * @return Masked and shifted value.
20892 */
20893#define NXP_VAL2FLD(field, value) (((value) << (field ## _SHIFT)) & (field ## _MASK))
20894/**
20895 * @brief Mask and right-shift a register value to extract a bit field value.
20896 * @param field Name of the register bit field.
20897 * @param value Value of the register.
20898 * @return Masked and shifted bit field value.
20899 */
20900#define NXP_FLD2VAL(field, value) (((value) & (field ## _MASK)) >> (field ## _SHIFT))
20901
20902/*!
20903 * @}
20904 */ /* end of group Bit_Field_Generic_Macros */
20905
20906
20907/* ----------------------------------------------------------------------------
20908 -- SDK Compatibility
20909 ---------------------------------------------------------------------------- */
20910
20911/*!
20912 * @addtogroup SDK_Compatibility_Symbols SDK Compatibility
20913 * @{
20914 */
20915
20916#define ENET_RMON_R_DROP_REG(base) ENET_IEEE_R_DROP_REG(base)
20917#define ENET_RMON_R_FRAME_OK_REG(base) ENET_IEEE_R_FRAME_OK_REG(base)
20918#define FMC_PFB0CR_RFU_MASK FMC_PFB01CR_RFU_MASK
20919#define FMC_PFB0CR_RFU_SHIFT FMC_PFB01CR_RFU_SHIFT
20920#define FMC_PFB0CR_B0IPE_MASK FMC_PFB01CR_B0IPE_MASK
20921#define FMC_PFB0CR_B0IPE_SHIFT FMC_PFB01CR_B0IPE_SHIFT
20922#define FMC_PFB0CR_B0DPE_MASK FMC_PFB01CR_B0DPE_MASK
20923#define FMC_PFB0CR_B0DPE_SHIFT FMC_PFB01CR_B0DPE_SHIFT
20924#define FMC_PFB0CR_B0ICE_MASK FMC_PFB01CR_B0ICE_MASK
20925#define FMC_PFB0CR_B0ICE_SHIFT FMC_PFB01CR_B0ICE_SHIFT
20926#define FMC_PFB0CR_B0DCE_MASK FMC_PFB01CR_B0DCE_MASK
20927#define FMC_PFB0CR_B0DCE_SHIFT FMC_PFB01CR_B0DCE_SHIFT
20928#define FMC_PFB0CR_CRC_MASK FMC_PFB01CR_CRC_MASK
20929#define FMC_PFB0CR_CRC_SHIFT FMC_PFB01CR_CRC_SHIFT
20930#define FMC_PFB0CR_CRC_SET(x) FMC_PFB01CR_CRC(x)
20931#define FMC_PFB0CR_CRC FMC_PFB0CR_CRC_MASK
20932#define FMC_PFB0CR_B0MW_MASK FMC_PFB01CR_B0MW_MASK
20933#define FMC_PFB0CR_B0MW_SHIFT FMC_PFB01CR_B0MW_SHIFT
20934#define FMC_PFB0CR_B0MW_SET(x) FMC_PFB01CR_B0MW(x)
20935#define FMC_PFB0CR_B0MW FMC_PFB0CR_B0MW_MASK
20936#define FMC_PFB0CR_S_B_INV_MASK FMC_PFB01CR_S_B_INV_MASK
20937#define FMC_PFB0CR_S_B_INV_SHIFT FMC_PFB01CR_S_B_INV_SHIFT
20938#define FMC_PFB0CR_CINV_WAY_MASK FMC_PFB01CR_CINV_WAY_MASK
20939#define FMC_PFB0CR_CINV_WAY_SHIFT FMC_PFB01CR_CINV_WAY_SHIFT
20940#define FMC_PFB0CR_CINV_WAY_SET(x) FMC_PFB01CR_CINV_WAY(x)
20941#define FMC_PFB0CR_CINV_WAY FMC_PFB0CR_CINV_WAY_MASK
20942#define FMC_PFB0CR_CLCK_WAY_MASK FMC_PFB01CR_CLCK_WAY_MASK
20943#define FMC_PFB0CR_CLCK_WAY_SHIFT FMC_PFB01CR_CLCK_WAY_SHIFT
20944#define FMC_PFB0CR_CLCK_WAY_SET(x) FMC_PFB01CR_CLCK_WAY(x)
20945#define FMC_PFB0CR_CLCK_WAY FMC_PFB0CR_CLCK_WAY_MASK
20946#define FMC_PFB0CR_B0RWSC_MASK FMC_PFB01CR_B0RWSC_MASK
20947#define FMC_PFB0CR_B0RWSC_SHIFT FMC_PFB01CR_B0RWSC_SHIFT
20948#define FMC_PFB0CR_B0RWSC_SET(x) FMC_PFB01CR_B0RWSC(x)
20949#define FMC_PFB0CR_B0RWSC FMC_PFB0CR_B0RWSC_MASK
20950#define FMC_PFB1CR_RFU_MASK FMC_PFB23CR_RFU_MASK
20951#define FMC_PFB1CR_RFU_SHIFT FMC_PFB23CR_RFU_SHIFT
20952#define FMC_PFB1CR_B1IPE_MASK FMC_PFB23CR_B1IPE_MASK
20953#define FMC_PFB1CR_B1IPE_SHIFT FMC_PFB23CR_B1IPE_SHIFT
20954#define FMC_PFB1CR_B1DPE_MASK FMC_PFB23CR_B1DPE_MASK
20955#define FMC_PFB1CR_B1DPE_SHIFT FMC_PFB23CR_B1DPE_SHIFT
20956#define FMC_PFB1CR_B1ICE_MASK FMC_PFB23CR_B1ICE_MASK
20957#define FMC_PFB1CR_B1ICE_SHIFT FMC_PFB23CR_B1ICE_SHIFT
20958#define FMC_PFB1CR_B1DCE_MASK FMC_PFB23CR_B1DCE_MASK
20959#define FMC_PFB1CR_B1DCE_SHIFT FMC_PFB23CR_B1DCE_SHIFT
20960#define FMC_PFB1CR_B1MW_MASK FMC_PFB23CR_B1MW_MASK
20961#define FMC_PFB1CR_B1MW_SHIFT FMC_PFB23CR_B1MW_SHIFT
20962#define FMC_PFB1CR_B1MW_SET(x) FMC_PFB23CR_B1MW(x)
20963#define FMC_PFB1CR_B1MW FMC_PFB1CR_B1MW_MASK
20964#define FMC_PFB1CR_B1RWSC_MASK FMC_PFB23CR_B1RWSC_MASK
20965#define FMC_PFB1CR_B1RWSC_SHIFT FMC_PFB23CR_B1RWSC_SHIFT
20966#define FMC_PFB1CR_B1RWSC_SET(x) FMC_PFB23CR_B1RWSC(x)
20967#define FMC_PFB1CR_B1RWSC FMC_PFB1CR_B1RWSC_MASK
20968#define LLWU_PE8_WUPE130_MASK LLWU_PE8_WUPE30_MASK
20969#define LLWU_PE8_WUPE130_SHIFT LLWU_PE8_WUPE30_SHIFT
20970#define LLWU_PE8_WUPE130_SET(x) LLWU_PE8_WUPE30(x)
20971#define LLWU_PE8_WUPE130 LLWU_PE8_WUPE130_MASK
20972#define MCG_C2_EREFS0_MASK MCG_C2_EREFS_MASK
20973#define MCG_C2_EREFS0_SHIFT MCG_C2_EREFS_SHIFT
20974#define MCG_C2_HGO0_MASK MCG_C2_HGO_MASK
20975#define MCG_C2_HGO0_SHIFT MCG_C2_HGO_SHIFT
20976#define MCG_C2_RANGE0_MASK MCG_C2_RANGE_MASK
20977#define MCG_C2_RANGE0_SHIFT MCG_C2_RANGE_SHIFT
20978#define MCG_C2_RANGE0_SET(x) MCG_C2_RANGE_SET(x)
20979#define MCG_C2_RANGE0 MCG_C2_RANGE0_MASK
20980#define PMC_REGSC_BGBDS_MASK This_symbol_has_been_deprecated
20981#define PMC_REGSC_BGBDS_SHIFT This_symbol_has_been_deprecated
20982#define SDHC_VENDOR_EXTDMAEN_MASK This_symbol_has_been_deprecated
20983#define SDHC_VENDOR_EXTDMAEN_SHIFT This_symbol_has_been_deprecated
20984#define SDRAM_CTRL_COC_MASK This_symbol_has_been_deprecated
20985#define SDRAM_CTRL_COC_SHIFT This_symbol_has_been_deprecated
20986#define SDRAM_CTRL_NAM_MASK This_symbol_has_been_deprecated
20987#define SDRAM_CTRL_NAM_SHIFT This_symbol_has_been_deprecated
20988#define SMC_STOPCTRL_LPOPO_MASK This_symbol_has_been_deprecated
20989#define SMC_STOPCTRL_LPOPO_SHIFT This_symbol_has_been_deprecated
20990#define UARTx_C6_CP_MASK This_symbol_has_been_deprecated
20991#define UARTx_C6_CP_SHIFT This_symbol_has_been_deprecated
20992#define UARTx_C6_CE_MASK This_symbol_has_been_deprecated
20993#define UARTx_C6_CE_SHIFT This_symbol_has_been_deprecated
20994#define UARTx_C6_TX709_MASK This_symbol_has_been_deprecated
20995#define UARTx_C6_TX709_SHIFT This_symbol_has_been_deprecated
20996#define UARTx_C6_EN709_MASK This_symbol_has_been_deprecated
20997#define UARTx_C6_EN709_SHIFT This_symbol_has_been_deprecated
20998#define UARTx_PCTH_PCTH_MASK This_symbol_has_been_deprecated
20999#define UARTx_PCTH_PCTH_SHIFT This_symbol_has_been_deprecated
21000#define UARTx_PCTH_PCTH_SET(x) This_symbol_has_been_deprecated
21001#define UARTx_PCTH_PCTH UARTx_PCTH_PCTH_MASK
21002#define UARTx_PCTL_PCTL_MASK This_symbol_has_been_deprecated
21003#define UARTx_PCTL_PCTL_SHIFT This_symbol_has_been_deprecated
21004#define UARTx_PCTL_PCTL_SET(x) This_symbol_has_been_deprecated
21005#define UARTx_PCTL_PCTL UARTx_PCTL_PCTL_MASK
21006#define UARTx_IE0_CPTXIE_MASK This_symbol_has_been_deprecated
21007#define UARTx_IE0_CPTXIE_SHIFT This_symbol_has_been_deprecated
21008#define UARTx_IE0_CTXDIE_MASK This_symbol_has_been_deprecated
21009#define UARTx_IE0_CTXDIE_SHIFT This_symbol_has_been_deprecated
21010#define UARTx_IE0_RPLOFIE_MASK This_symbol_has_been_deprecated
21011#define UARTx_IE0_RPLOFIE_SHIFT This_symbol_has_been_deprecated
21012#define UARTx_SDTH_SDTH_MASK This_symbol_has_been_deprecated
21013#define UARTx_SDTH_SDTH_SHIFT This_symbol_has_been_deprecated
21014#define UARTx_SDTH_SDTH_SET(x) This_symbol_has_been_deprecated
21015#define UARTx_SDTH_SDTH UARTx_SDTH_SDTH_MASK
21016#define UARTx_SDTL_SDTL_MASK This_symbol_has_been_deprecated
21017#define UARTx_SDTL_SDTL_SHIFT This_symbol_has_been_deprecated
21018#define UARTx_SDTL_SDTL_SET(x) This_symbol_has_been_deprecated
21019#define UARTx_SDTL_SDTL UARTx_SDTL_SDTL_MASK
21020#define UARTx_PRE_PREAMBLE_MASK This_symbol_has_been_deprecated
21021#define UARTx_PRE_PREAMBLE_SHIFT This_symbol_has_been_deprecated
21022#define UARTx_PRE_PREAMBLE_SET(x) This_symbol_has_been_deprecated
21023#define UARTx_PRE_PREAMBLE UARTx_PRE_PREAMBLE_MASK
21024#define UARTx_TPL_TPL_MASK This_symbol_has_been_deprecated
21025#define UARTx_TPL_TPL_SHIFT This_symbol_has_been_deprecated
21026#define UARTx_TPL_TPL_SET(x) This_symbol_has_been_deprecated
21027#define UARTx_TPL_TPL UARTx_TPL_TPL_MASK
21028#define UARTx_IE_TXDIE_MASK This_symbol_has_been_deprecated
21029#define UARTx_IE_TXDIE_SHIFT This_symbol_has_been_deprecated
21030#define UARTx_IE_PSIE_MASK This_symbol_has_been_deprecated
21031#define UARTx_IE_PSIE_SHIFT This_symbol_has_been_deprecated
21032#define UARTx_IE_PCTEIE_MASK This_symbol_has_been_deprecated
21033#define UARTx_IE_PCTEIE_SHIFT This_symbol_has_been_deprecated
21034#define UARTx_IE_PTXIE_MASK This_symbol_has_been_deprecated
21035#define UARTx_IE_PTXIE_SHIFT This_symbol_has_been_deprecated
21036#define UARTx_IE_PRXIE_MASK This_symbol_has_been_deprecated
21037#define UARTx_IE_PRXIE_SHIFT This_symbol_has_been_deprecated
21038#define UARTx_IE_ISDIE_MASK This_symbol_has_been_deprecated
21039#define UARTx_IE_ISDIE_SHIFT This_symbol_has_been_deprecated
21040#define UARTx_IE_WBEIE_MASK This_symbol_has_been_deprecated
21041#define UARTx_IE_WBEIE_SHIFT This_symbol_has_been_deprecated
21042#define UARTx_IE_PEIE_MASK This_symbol_has_been_deprecated
21043#define UARTx_IE_PEIE_SHIFT This_symbol_has_been_deprecated
21044#define UARTx_WB_WBASE_MASK This_symbol_has_been_deprecated
21045#define UARTx_WB_WBASE_SHIFT This_symbol_has_been_deprecated
21046#define UARTx_WB_WBASE_SET(x) This_symbol_has_been_deprecated
21047#define UARTx_WB_WBASE UARTx_WB_WBASE_MASK
21048#define UARTx_S3_TXFF_MASK This_symbol_has_been_deprecated
21049#define UARTx_S3_TXFF_SHIFT This_symbol_has_been_deprecated
21050#define UARTx_S3_PSF_MASK This_symbol_has_been_deprecated
21051#define UARTx_S3_PSF_SHIFT This_symbol_has_been_deprecated
21052#define UARTx_S3_PCTEF_MASK This_symbol_has_been_deprecated
21053#define UARTx_S3_PCTEF_SHIFT This_symbol_has_been_deprecated
21054#define UARTx_S3_PTXF_MASK This_symbol_has_been_deprecated
21055#define UARTx_S3_PTXF_SHIFT This_symbol_has_been_deprecated
21056#define UARTx_S3_PRXF_MASK This_symbol_has_been_deprecated
21057#define UARTx_S3_PRXF_SHIFT This_symbol_has_been_deprecated
21058#define UARTx_S3_ISD_MASK This_symbol_has_been_deprecated
21059#define UARTx_S3_ISD_SHIFT This_symbol_has_been_deprecated
21060#define UARTx_S3_WBEF_MASK This_symbol_has_been_deprecated
21061#define UARTx_S3_WBEF_SHIFT This_symbol_has_been_deprecated
21062#define UARTx_S3_PEF_MASK This_symbol_has_been_deprecated
21063#define UARTx_S3_PEF_SHIFT This_symbol_has_been_deprecated
21064#define UARTx_S4_FE_MASK This_symbol_has_been_deprecated
21065#define UARTx_S4_FE_SHIFT This_symbol_has_been_deprecated
21066#define UARTx_S4_TXDF_MASK This_symbol_has_been_deprecated
21067#define UARTx_S4_TXDF_SHIFT This_symbol_has_been_deprecated
21068#define UARTx_S4_CDET_MASK This_symbol_has_been_deprecated
21069#define UARTx_S4_CDET_SHIFT This_symbol_has_been_deprecated
21070#define UARTx_S4_CDET_SET(x) This_symbol_has_been_deprecated
21071#define UARTx_S4_CDET UARTx_S4_CDET_MASK
21072#define UARTx_S4_RPLOF_MASK This_symbol_has_been_deprecated
21073#define UARTx_S4_RPLOF_SHIFT This_symbol_has_been_deprecated
21074#define UARTx_S4_LNF_MASK This_symbol_has_been_deprecated
21075#define UARTx_S4_LNF_SHIFT This_symbol_has_been_deprecated
21076#define UARTx_RPL_RPL_MASK This_symbol_has_been_deprecated
21077#define UARTx_RPL_RPL_SHIFT This_symbol_has_been_deprecated
21078#define UARTx_RPL_RPL_SET(x) This_symbol_has_been_deprecated
21079#define UARTx_RPL_RPL UARTx_RPL_RPL_MASK
21080#define UARTx_RPREL_RPREL_MASK This_symbol_has_been_deprecated
21081#define UARTx_RPREL_RPREL_SHIFT This_symbol_has_been_deprecated
21082#define UARTx_RPREL_RPREL_SET(x) This_symbol_has_been_deprecated
21083#define UARTx_RPREL_RPREL UARTx_RPREL_RPREL_MASK
21084#define UARTx_CPW_CPW_MASK This_symbol_has_been_deprecated
21085#define UARTx_CPW_CPW_SHIFT This_symbol_has_been_deprecated
21086#define UARTx_CPW_CPW_SET(x) This_symbol_has_been_deprecated
21087#define UARTx_CPW_CPW UARTx_CPW_CPW_MASK
21088#define UARTx_RIDTH_RIDTH_MASK This_symbol_has_been_deprecated
21089#define UARTx_RIDTH_RIDTH_SHIFT This_symbol_has_been_deprecated
21090#define UARTx_RIDTH_RIDTH_SET(x) This_symbol_has_been_deprecated
21091#define UARTx_RIDTH_RIDTH UARTx_RIDTH_RIDTH_MASK
21092#define UARTx_RIDTL_RIDTL_MASK This_symbol_has_been_deprecated
21093#define UARTx_RIDTL_RIDTL_SHIFT This_symbol_has_been_deprecated
21094#define UARTx_RIDTL_RIDTL_SET(x) This_symbol_has_been_deprecated
21095#define UARTx_RIDTL_RIDTL UARTx_RIDTL_RIDTL_MASK
21096#define UARTx_TIDTH_TIDTH_MASK This_symbol_has_been_deprecated
21097#define UARTx_TIDTH_TIDTH_SHIFT This_symbol_has_been_deprecated
21098#define UARTx_TIDTH_TIDTH_SET(x) This_symbol_has_been_deprecated
21099#define UARTx_TIDTH_TIDTH UARTx_TIDTH_TIDTH_MASK
21100#define UARTx_TIDTL_TIDTL_MASK This_symbol_has_been_deprecated
21101#define UARTx_TIDTL_TIDTL_SHIFT This_symbol_has_been_deprecated
21102#define UARTx_TIDTL_TIDTL_SET(x) This_symbol_has_been_deprecated
21103#define UARTx_TIDTL_TIDTL UARTx_TIDTL_TIDTL_MASK
21104#define UARTx_RB1TH_RB1TH_MASK This_symbol_has_been_deprecated
21105#define UARTx_RB1TH_RB1TH_SHIFT This_symbol_has_been_deprecated
21106#define UARTx_RB1TH_RB1TH_SET(x) This_symbol_has_been_deprecated
21107#define UARTx_RB1TH_RB1TH UARTx_RB1TH_RB1TH_MASK
21108#define UARTx_RB1TL_RB1TL_MASK This_symbol_has_been_deprecated
21109#define UARTx_RB1TL_RB1TL_SHIFT This_symbol_has_been_deprecated
21110#define UARTx_RB1TL_RB1TL_SET(x) This_symbol_has_been_deprecated
21111#define UARTx_RB1TL_RB1TL UARTx_RB1TL_RB1TL_MASK
21112#define UARTx_TB1TH_TB1TH_MASK This_symbol_has_been_deprecated
21113#define UARTx_TB1TH_TB1TH_SHIFT This_symbol_has_been_deprecated
21114#define UARTx_TB1TH_TB1TH_SET(x) This_symbol_has_been_deprecated
21115#define UARTx_TB1TH_TB1TH UARTx_TB1TH_TB1TH_MASK
21116#define UARTx_TB1TL_TB1TL_MASK This_symbol_has_been_deprecated
21117#define UARTx_TB1TL_TB1TL_SHIFT This_symbol_has_been_deprecated
21118#define UARTx_TB1TL_TB1TL_SET(x) This_symbol_has_been_deprecated
21119#define UARTx_TB1TL_TB1TL UARTx_TB1TL_TB1TL_MASK
21120#define UARTx_PROG_REG_MIN_DMC1_MASK This_symbol_has_been_deprecated
21121#define UARTx_PROG_REG_MIN_DMC1_SHIFT This_symbol_has_been_deprecated
21122#define UARTx_PROG_REG_MIN_DMC1_SET(x) This_symbol_has_been_deprecated
21123#define UARTx_PROG_REG_MIN_DMC1 UARTx_PROG_REG_MIN_DMC1_MASK
21124#define UARTx_PROG_REG_LCV_LEN_MASK This_symbol_has_been_deprecated
21125#define UARTx_PROG_REG_LCV_LEN_SHIFT This_symbol_has_been_deprecated
21126#define UARTx_PROG_REG_LCV_LEN_SET(x) This_symbol_has_been_deprecated
21127#define UARTx_PROG_REG_LCV_LEN UARTx_PROG_REG_LCV_LEN_MASK
21128#define UARTx_STATE_REG_SM_STATE_MASK This_symbol_has_been_deprecated
21129#define UARTx_STATE_REG_SM_STATE_SHIFT This_symbol_has_been_deprecated
21130#define UARTx_STATE_REG_SM_STATE_SET(x) This_symbol_has_been_deprecated
21131#define UARTx_STATE_REG_SM_STATE UARTx_STATE_REG_SM_STATE_MASK
21132#define UARTx_STATE_REG_TX_STATE_MASK This_symbol_has_been_deprecated
21133#define UARTx_STATE_REG_TX_STATE_SHIFT This_symbol_has_been_deprecated
21134#define UARTx_STATE_REG_TX_STATE_SET(x) This_symbol_has_been_deprecated
21135#define UARTx_STATE_REG_TX_STATE UARTx_STATE_REG_TX_STATE_MASK
21136#define USBx_ADDINFO_IRQNUM_MASK This_symbol_has_been_deprecated
21137#define USBx_ADDINFO_IRQNUM_SHIFT This_symbol_has_been_deprecated
21138#define USBx_ADDINFO_IRQNUM_SET(x) This_symbol_has_been_deprecated
21139#define USBx_ADDINFO_IRQNUM USBx_ADDINFO_IRQNUM_MASK
21140#define USBHS_USBSTS_ULPII_MASK This_symbol_has_been_deprecated
21141#define USBHS_USBSTS_ULPII_SHIFT This_symbol_has_been_deprecated
21142#define USBHS_USBINTR_ULPIE_MASK This_symbol_has_been_deprecated
21143#define USBHS_USBINTR_ULPIE_SHIFT This_symbol_has_been_deprecated
21144#define USBPHY_CTRL_CLK_SWITCH_ENJ_MASK This_symbol_has_been_deprecated
21145#define USBPHY_CTRL_CLK_SWITCH_ENJ_SHIFT This_symbol_has_been_deprecated
21146#define USBPHY_CTRL_SET_CLK_SWITCH_ENJ_MASK This_symbol_has_been_deprecated
21147#define USBPHY_CTRL_SET_CLK_SWITCH_ENJ_SHIFT This_symbol_has_been_deprecated
21148#define USBPHY_CTRL_CLR_CLK_SWITCH_ENJ_MASK This_symbol_has_been_deprecated
21149#define USBPHY_CTRL_CLR_CLK_SWITCH_ENJ_SHIFT This_symbol_has_been_deprecated
21150#define USBPHY_CTRL_TOG_CLK_SWITCH_ENJ_MASK This_symbol_has_been_deprecated
21151#define USBPHY_CTRL_TOG_CLK_SWITCH_ENJ_SHIFT This_symbol_has_been_deprecated
21152#define MCM_ISR_REG(base) MCM_ISCR_REG(base)
21153#define MCM_ISR_IRQ_MASK MCM_ISCR_IRQ_MASK
21154#define MCM_ISR_IRQ_SHIFT MCM_ISCR_IRQ_SHIFT
21155#define MCM_ISR_NMI_MASK MCM_ISCR_NMI_MASK
21156#define MCM_ISR_NMI_SHIFT MCM_ISCR_NMI_SHIFT
21157#define MCM_ISR_DHREQ_MASK MCM_ISCR_DHREQ_MASK
21158#define MCM_ISR_DHREQ_SHIFT MCM_ISCR_DHREQ_SHIFT
21159#define MCM_ISR_FIOC_MASK MCM_ISCR_FIOC_MASK
21160#define MCM_ISR_FIOC_SHIFT MCM_ISCR_FIOC_SHIFT
21161#define MCM_ISR_FDZC_MASK MCM_ISCR_FDZC_MASK
21162#define MCM_ISR_FDZC_SHIFT MCM_ISCR_FDZC_SHIFT
21163#define MCM_ISR_FOFC_MASK MCM_ISCR_FOFC_MASK
21164#define MCM_ISR_FOFC_SHIFT MCM_ISCR_FOFC_SHIFT
21165#define MCM_ISR_FUFC_MASK MCM_ISCR_FUFC_MASK
21166#define MCM_ISR_FUFC_SHIFT MCM_ISCR_FUFC_SHIFT
21167#define MCM_ISR_FIXC_MASK MCM_ISCR_FIXC_MASK
21168#define MCM_ISR_FIXC_SHIFT MCM_ISCR_FIXC_SHIFT
21169#define MCM_ISR_FIDC_MASK MCM_ISCR_FIDC_MASK
21170#define MCM_ISR_FIDC_SHIFT MCM_ISCR_FIDC_SHIFT
21171#define MCM_ISR_FIOCE_MASK MCM_ISCR_FIOCE_MASK
21172#define MCM_ISR_FIOCE_SHIFT MCM_ISCR_FIOCE_SHIFT
21173#define MCM_ISR_FDZCE_MASK MCM_ISCR_FDZCE_MASK
21174#define MCM_ISR_FDZCE_SHIFT MCM_ISCR_FDZCE_SHIFT
21175#define MCM_ISR_FOFCE_MASK MCM_ISCR_FOFCE_MASK
21176#define MCM_ISR_FOFCE_SHIFT MCM_ISCR_FOFCE_SHIFT
21177#define MCM_ISR_FUFCE_MASK MCM_ISCR_FUFCE_MASK
21178#define MCM_ISR_FUFCE_SHIFT MCM_ISCR_FUFCE_SHIFT
21179#define MCM_ISR_FIXCE_MASK MCM_ISCR_FIXCE_MASK
21180#define MCM_ISR_FIXCE_SHIFT MCM_ISCR_FIXCE_SHIFT
21181#define MCM_ISR_FIDCE_MASK MCM_ISCR_FIDCE_MASK
21182#define MCM_ISR_FIDCE_SHIFT MCM_ISCR_FIDCE_SHIFT
21183#define DMAMUX0 DMAMUX
21184#define DSPI0 SPI0
21185#define DSPI1 SPI1
21186#define DSPI2 SPI2
21187#define FLEXCAN0 CAN0
21188#define FLEXCAN1 CAN1
21189#define PTA_BASE GPIOA_BASE
21190#define PTA GPIOA
21191#define PTB_BASE GPIOB_BASE
21192#define PTB GPIOB
21193#define PTC_BASE GPIOC_BASE
21194#define PTC GPIOC
21195#define PTD_BASE GPIOD_BASE
21196#define PTD GPIOD
21197#define PTE_BASE GPIOE_BASE
21198#define PTE GPIOE
21199#define Watchdog_IRQn WDOG_EWM_IRQn
21200#define Watchdog_IRQHandler WDOG_EWM_IRQHandler
21201#define LPTimer_IRQn LPTMR0_IRQn
21202#define LPTimer_IRQHandler LPTMR0_IRQHandler
21203#define UART0_LON_IRQn This_symbol_has_been_deprecated
21204#define UART0_LON_IRQHandler This_symbol_has_been_deprecated
21205#define LLW_IRQn LLWU_IRQn
21206#define LLW_IRQHandler LLWU_IRQHandler
21207
21208/*!
21209 * @}
21210 */ /* end of group SDK_Compatibility_Symbols */
21211
21212
21213#endif /* _MK66F18_H_ */
21214
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20x5.h b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20x5.h
new file mode 100644
index 000000000..c309f047f
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20x5.h
@@ -0,0 +1,305 @@
1/*
2 * Copyright (C) 2014-2016 Fabio Utzig, http://fabioutzig.com
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
22
23#ifndef _K20x5_H_
24#define _K20x5_H_
25
26/*
27 * ==============================================================
28 * ---------- Interrupt Number Definition -----------------------
29 * ==============================================================
30 */
31typedef enum IRQn
32{
33/****** Cortex-M0 Processor Exceptions Numbers ****************/
34 InitialSP_IRQn = -15,
35 InitialPC_IRQn = -15,
36 NonMaskableInt_IRQn = -14,
37 HardFault_IRQn = -13,
38 MemoryManagement_IRQn = -12,
39 BusFault_IRQn = -11,
40 UsageFault_IRQn = -10,
41 SVCall_IRQn = -5,
42 DebugMonitor_IRQn = -4,
43 PendSV_IRQn = -2,
44 SysTick_IRQn = -1,
45
46/****** K20x Specific Interrupt Numbers ***********************/
47 DMA0_IRQn = 0, // Vector40
48 DMA1_IRQn = 1, // Vector44
49 DMA2_IRQn = 2, // Vector48
50 DMA3_IRQn = 3, // Vector4C
51 DMAError_IRQn = 4, // Vector50
52 DMA_IRQn = 5, // Vector54
53 FlashMemComplete_IRQn = 6, // Vector58
54 FlashMemReadCollision_IRQn = 7, // Vector5C
55 LowVoltageWarning_IRQn = 8, // Vector60
56 LLWU_IRQn = 9, // Vector64
57 WDOG_IRQn = 10, // Vector68
58 I2C0_IRQn = 11, // Vector6C
59 SPI0_IRQn = 12, // Vector70
60 I2S0_IRQn = 13, // Vector74
61 I2S1_IRQn = 14, // Vector78
62 UART0LON_IRQn = 15, // Vector7C
63 UART0Status_IRQn = 16, // Vector80
64 UART0Error_IRQn = 17, // Vector84
65 UART1Status_IRQn = 18, // Vector88
66 UART1Error_IRQn = 19, // Vector8C
67 UART2Status_IRQn = 20, // Vector90
68 UART2Error_IRQn = 21, // Vector94
69 ADC0_IRQn = 22, // Vector98
70 CMP0_IRQn = 23, // Vector9C
71 CMP1_IRQn = 24, // VectorA0
72 FTM0_IRQn = 25, // VectorA4
73 FTM1_IRQn = 26, // VectorA8
74 CMT_IRQn = 27, // VectorAC
75 RTCAlarm_IRQn = 28, // VectorB0
76 RTCSeconds_IRQn = 29, // VectorB4
77 PITChannel0_IRQn = 30, // VectorB8
78 PITChannel1_IRQn = 31, // VectorBC
79 PITChannel2_IRQn = 32, // VectorC0
80 PITChannel3_IRQn = 33, // VectorC4
81 PDB_IRQn = 34, // VectorC8
82 USB_OTG_IRQn = 35, // VectorCC
83 USBChargerDetect_IRQn = 36, // VectorD0
84 TSI_IRQn = 37, // VectorD4
85 MCG_IRQn = 38, // VectorD8
86 LPTMR0_IRQn = 39, // VectorDC
87 PINA_IRQn = 40, // VectorE0
88 PINB_IRQn = 41, // VectorE4
89 PINC_IRQn = 42, // VectorE8
90 PIND_IRQn = 43, // VectorEC
91 PINE_IRQn = 44, // VectorF0
92 SoftInitInt_IRQn = 45, // VectorF4
93} IRQn_Type;
94
95/*
96 * ==========================================================================
97 * ----------- Processor and Core Peripheral Section ------------------------
98 * ==========================================================================
99 */
100
101/**
102 * @brief K20x Interrupt Number Definition, according to the selected device
103 * in @ref Library_configuration_section
104 */
105#define __FPU_PRESENT 0
106#define __MPU_PRESENT 0
107#define __NVIC_PRIO_BITS 4
108#define __Vendor_SysTickConfig 0
109
110#include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
111
112#include "k20xx.h"
113
114typedef struct
115{
116 __IO uint32_t SOPT1;
117 __IO uint32_t SOPT1CFG;
118 uint32_t RESERVED0[1023];
119 __IO uint32_t SOPT2;
120 uint32_t RESERVED1[1];
121 __IO uint32_t SOPT4;
122 __IO uint32_t SOPT5;
123 uint32_t RESERVED2[1];
124 __IO uint32_t SOPT7;
125 uint32_t RESERVED3[2];
126 __I uint32_t SDID;
127 uint32_t RESERVED4[3];
128 __IO uint32_t SCGC4;
129 __IO uint32_t SCGC5;
130 __IO uint32_t SCGC6;
131 __IO uint32_t SCGC7;
132 __IO uint32_t CLKDIV1;
133 __IO uint32_t CLKDIV2;
134 __I uint32_t FCFG1;
135 __I uint32_t FCFG2;
136 __I uint32_t UIDH;
137 __I uint32_t UIDMH;
138 __I uint32_t UIDML;
139 __I uint32_t UIDL;
140} SIM_TypeDef;
141
142/****************************************************************/
143/* Peripheral memory map */
144/****************************************************************/
145#define DMA_BASE ((uint32_t)0x40008000)
146#define FTFL_BASE ((uint32_t)0x40020000)
147#define DMAMUX_BASE ((uint32_t)0x40021000)
148#define SPI0_BASE ((uint32_t)0x4002C000)
149#define PIT_BASE ((uint32_t)0x40037000)
150#define FTM0_BASE ((uint32_t)0x40038000)
151#define FTM1_BASE ((uint32_t)0x40039000)
152#define ADC0_BASE ((uint32_t)0x4003B000)
153#define VBAT_BASE ((uint32_t)0x4003E000)
154#define LPTMR0_BASE ((uint32_t)0x40040000)
155#define SRF_BASE ((uint32_t)0x40041000)
156#define TSI0_BASE ((uint32_t)0x40045000)
157#define SIM_BASE ((uint32_t)0x40047000)
158#define PORTA_BASE ((uint32_t)0x40049000)
159#define PORTB_BASE ((uint32_t)0x4004A000)
160#define PORTC_BASE ((uint32_t)0x4004B000)
161#define PORTD_BASE ((uint32_t)0x4004C000)
162#define PORTE_BASE ((uint32_t)0x4004D000)
163#define WDOG_BASE ((uint32_t)0x40052000)
164#define MCG_BASE ((uint32_t)0x40064000)
165#define OSC0_BASE ((uint32_t)0x40065000)
166#define I2C0_BASE ((uint32_t)0x40066000)
167#define UART0_BASE ((uint32_t)0x4006A000)
168#define UART1_BASE ((uint32_t)0x4006B000)
169#define UART2_BASE ((uint32_t)0x4006C000)
170#define USBOTG_BASE ((uint32_t)0x40072000)
171#define LLWU_BASE ((uint32_t)0x4007C000)
172#define PMC_BASE ((uint32_t)0x4007D000)
173#define GPIOA_BASE ((uint32_t)0x400FF000)
174#define GPIOB_BASE ((uint32_t)0x400FF040)
175#define GPIOC_BASE ((uint32_t)0x400FF080)
176#define GPIOD_BASE ((uint32_t)0x400FF0C0)
177#define GPIOE_BASE ((uint32_t)0x400FF100)
178
179/****************************************************************/
180/* Peripheral declaration */
181/****************************************************************/
182#define DMA ((DMA_TypeDef *) DMA_BASE)
183#define FTFL ((FTFL_TypeDef *) FTFL_BASE)
184#define DMAMUX ((DMAMUX_TypeDef *) DMAMUX_BASE)
185#define PIT ((PIT_TypeDef *) PIT_BASE)
186#define FTM0 ((FTM_TypeDef *) FTM0_BASE)
187#define FTM1 ((FTM_TypeDef *) FTM1_BASE)
188#define ADC0 ((ADC_TypeDef *) ADC0_BASE)
189#define VBAT ((volatile uint8_t *)VBAT_BASE) /* 32 bytes */
190#define LPTMR0 ((LPTMR_TypeDef *) LPTMR0_BASE)
191#define SYSTEM_REGISTER_FILE ((volatile uint8_t *)SRF_BASE) /* 32 bytes */
192#define TSI0 ((TSI_TypeDef *) TSI0_BASE)
193#define SIM ((SIM_TypeDef *) SIM_BASE)
194#define LLWU ((LLWU_TypeDef *) LLWU_BASE)
195#define PMC ((PMC_TypeDef *) PMC_BASE)
196#define PORTA ((PORT_TypeDef *) PORTA_BASE)
197#define PORTB ((PORT_TypeDef *) PORTB_BASE)
198#define PORTC ((PORT_TypeDef *) PORTC_BASE)
199#define PORTD ((PORT_TypeDef *) PORTD_BASE)
200#define PORTE ((PORT_TypeDef *) PORTE_BASE)
201#define WDOG ((WDOG_TypeDef *) WDOG_BASE)
202#define USB0 ((USBOTG_TypeDef *) USBOTG_BASE)
203#define MCG ((MCG_TypeDef *) MCG_BASE)
204#define OSC0 ((OSC_TypeDef *) OSC0_BASE)
205#define SPI0 ((SPI_TypeDef *) SPI0_BASE)
206#define I2C0 ((I2C_TypeDef *) I2C0_BASE)
207#define UART0 ((UART_TypeDef *) UART0_BASE)
208#define UART1 ((UART_TypeDef *) UART1_BASE)
209#define UART2 ((UART_TypeDef *) UART2_BASE)
210#define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
211#define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
212#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
213#define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
214#define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
215
216/****************************************************************/
217/* Peripheral Registers Bits Definition */
218/****************************************************************/
219
220/****************************************************************/
221/* */
222/* System Integration Module (SIM) */
223/* */
224/****************************************************************/
225/********* Bits definition for SIM_SOPT1 register *************/
226#define SIM_SOPT1_USBREGEN ((uint32_t)0x80000000) /*!< USB voltage regulator enable */
227#define SIM_SOPT1_USBSSTBY ((uint32_t)0x40000000) /*!< USB voltage regulator in standby mode during Stop, VLPS, LLS and VLLS modes */
228#define SIM_SOPT1_USBVSTBY ((uint32_t)0x20000000) /*!< USB voltage regulator in standby mode during VLPR and VLPW modes */
229#define SIM_SOPT1_OSC32KSEL_SHIFT 18 /*!< 32K oscillator clock select (shift) */
230#define SIM_SOPT1_OSC32KSEL_MASK ((uint32_t)((uint32_t)0x3 << SIM_SOPT1_OSC32KSEL_SHIFT)) /*!< 32K oscillator clock select (mask) */
231#define SIM_SOPT1_OSC32KSEL(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT1_OSC32KSEL_SHIFT) & SIM_SOPT1_OSC32KSEL_MASK)) /*!< 32K oscillator clock select */
232#define SIM_SOPT1_RAMSIZE_SHIFT 12
233#define SIM_SOPT1_RAMSIZE_MASK ((uint32_t)((uint32_t)0xf << SIM_SOPT1_RAMSIZE_SHIFT))
234#define SIM_SOPT1_RAMSIZE(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT1_RAMSIZE_SHIFT) & SIM_SOPT1_RAMSIZE_MASK))
235
236/******* Bits definition for SIM_SOPT1CFG register ************/
237#define SIM_SOPT1CFG_USSWE ((uint32_t)0x04000000) /*!< USB voltage regulator stop standby write enable */
238#define SIM_SOPT1CFG_UVSWE ((uint32_t)0x02000000) /*!< USB voltage regulator VLP standby write enable */
239#define SIM_SOPT1CFG_URWE ((uint32_t)0x01000000) /*!< USB voltage regulator voltage regulator write enable */
240
241/******* Bits definition for SIM_SOPT2 register ************/
242#define SIM_SOPT2_USBSRC ((uint32_t)0x00040000) /*!< USB clock source select */
243#define SIM_SOPT2_PLLFLLSEL ((uint32_t)0x00010000) /*!< PLL/FLL clock select */
244#define SIM_SOPT2_TRACECLKSEL ((uint32_t)0x00001000)
245#define SIM_SOPT2_PTD7PAD ((uint32_t)0x00000800)
246#define SIM_SOPT2_CLKOUTSEL_SHIFT 5
247#define SIM_SOPT2_CLKOUTSEL_MASK ((uint32_t)((uint32_t)0x7 << SIM_SOPT2_CLKOUTSEL_SHIFT))
248#define SIM_SOPT2_CLKOUTSEL(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT2_CLKOUTSEL_SHIFT) & SIM_SOPT2_CLKOUTSEL_MASK))
249#define SIM_SOPT2_RTCCLKOUTSEL ((uint32_t)0x00000010) /*!< RTC clock out select */
250
251/******* Bits definition for SIM_SCGC4 register ************/
252#define SIM_SCGC4_VREF ((uint32_t)0x00100000) /*!< VREF Clock Gate Control */
253#define SIM_SCGC4_CMP ((uint32_t)0x00080000) /*!< Comparator Clock Gate Control */
254#define SIM_SCGC4_USBOTG ((uint32_t)0x00040000) /*!< USB Clock Gate Control */
255#define SIM_SCGC4_UART2 ((uint32_t)0x00001000) /*!< UART2 Clock Gate Control */
256#define SIM_SCGC4_UART1 ((uint32_t)0x00000800) /*!< UART1 Clock Gate Control */
257#define SIM_SCGC4_UART0 ((uint32_t)0x00000400) /*!< UART0 Clock Gate Control */
258#define SIM_SCGC4_I2C0 ((uint32_t)0x00000040) /*!< I2C0 Clock Gate Control */
259#define SIM_SCGC4_CMT ((uint32_t)0x00000004) /*!< CMT Clock Gate Control */
260#define SIM_SCGC4_EMW ((uint32_t)0x00000002) /*!< EWM Clock Gate Control */
261
262/******* Bits definition for SIM_SCGC5 register ************/
263#define SIM_SCGC5_PORTE ((uint32_t)0x00002000) /*!< Port E Clock Gate Control */
264#define SIM_SCGC5_PORTD ((uint32_t)0x00001000) /*!< Port D Clock Gate Control */
265#define SIM_SCGC5_PORTC ((uint32_t)0x00000800) /*!< Port C Clock Gate Control */
266#define SIM_SCGC5_PORTB ((uint32_t)0x00000400) /*!< Port B Clock Gate Control */
267#define SIM_SCGC5_PORTA ((uint32_t)0x00000200) /*!< Port A Clock Gate Control */
268#define SIM_SCGC5_TSI ((uint32_t)0x00000020) /*!< TSI Access Control */
269#define SIM_SCGC5_LPTIMER ((uint32_t)0x00000001) /*!< Low Power Timer Access Control */
270
271/******* Bits definition for SIM_SCGC6 register ************/
272#define SIM_SCGC6_RTC ((uint32_t)0x20000000) /*!< RTC Access Control */
273#define SIM_SCGC6_ADC0 ((uint32_t)0x08000000) /*!< ADC0 Clock Gate Control */
274#define SIM_SCGC6_FTM1 ((uint32_t)0x02000000) /*!< FTM1 Clock Gate Control */
275#define SIM_SCGC6_FTM0 ((uint32_t)0x01000000) /*!< FTM0 Clock Gate Control */
276#define SIM_SCGC6_PIT ((uint32_t)0x00800000) /*!< PIT Clock Gate Control */
277#define SIM_SCGC6_PDB ((uint32_t)0x00400000) /*!< PDB Clock Gate Control */
278#define SIM_SCGC6_USBDCD ((uint32_t)0x00200000) /*!< USB DCD Clock Gate Control */
279#define SIM_SCGC6_CRC ((uint32_t)0x00040000) /*!< Low Power Timer Access Control */
280#define SIM_SCGC6_I2S ((uint32_t)0x00008000) /*!< CRC Clock Gate Control */
281#define SIM_SCGC6_SPI0 ((uint32_t)0x00001000) /*!< SPI0 Clock Gate Control */
282#define SIM_SCGC6_DMAMUX ((uint32_t)0x00000002) /*!< DMA Mux Clock Gate Control */
283#define SIM_SCGC6_FTFL ((uint32_t)0x00000001) /*!< Flash Memory Clock Gate Control */
284
285/******* Bits definition for SIM_SCGC6 register ************/
286#define SIM_SCGC7_DMA ((uint32_t)0x00000002) /*!< DMA Clock Gate Control */
287
288/****** Bits definition for SIM_CLKDIV1 register ***********/
289#define SIM_CLKDIV1_OUTDIV1_SHIFT 28
290#define SIM_CLKDIV1_OUTDIV1_MASK ((uint32_t)((uint32_t)0xF << SIM_CLKDIV1_OUTDIV1_SHIFT))
291#define SIM_CLKDIV1_OUTDIV1(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV1_OUTDIV1_SHIFT) & SIM_CLKDIV1_OUTDIV1_MASK))
292#define SIM_CLKDIV1_OUTDIV2_SHIFT 24
293#define SIM_CLKDIV1_OUTDIV2_MASK ((uint32_t)((uint32_t)0xF << SIM_CLKDIV1_OUTDIV2_SHIFT))
294#define SIM_CLKDIV1_OUTDIV2(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV1_OUTDIV2_SHIFT) & SIM_CLKDIV1_OUTDIV2_MASK))
295#define SIM_CLKDIV1_OUTDIV4_SHIFT 16
296#define SIM_CLKDIV1_OUTDIV4_MASK ((uint32_t)((uint32_t)0x7 << SIM_CLKDIV1_OUTDIV4_SHIFT))
297#define SIM_CLKDIV1_OUTDIV4(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV1_OUTDIV4_SHIFT) & SIM_CLKDIV1_OUTDIV4_MASK))
298
299/****** Bits definition for SIM_CLKDIV2 register ***********/
300#define SIM_CLKDIV2_USBDIV_SHIFT 1
301#define SIM_CLKDIV2_USBDIV_MASK ((uint32_t)((uint32_t)0x7 << SIM_CLKDIV2_USBDIV_SHIFT))
302#define SIM_CLKDIV2_USBDIV(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV2_USBDIV_SHIFT) & SIM_CLKDIV2_USBDIV_MASK))
303#define SIM_CLKDIV2_USBFRAC ((uint32_t)0x00000001)
304
305#endif
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20x7.h b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20x7.h
new file mode 100644
index 000000000..87a4e52bc
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20x7.h
@@ -0,0 +1,362 @@
1/*
2 * Copyright (C) 2014-2016 Fabio Utzig, http://fabioutzig.com
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
22
23#ifndef _K20x7_H_
24#define _K20x7_H_
25
26/*
27 * ==============================================================
28 * ---------- Interrupt Number Definition -----------------------
29 * ==============================================================
30 */
31typedef enum IRQn
32{
33/****** Cortex-M0 Processor Exceptions Numbers ****************/
34 InitialSP_IRQn = -15,
35 InitialPC_IRQn = -15,
36 NonMaskableInt_IRQn = -14,
37 HardFault_IRQn = -13,
38 MemoryManagement_IRQn = -12,
39 BusFault_IRQn = -11,
40 UsageFault_IRQn = -10,
41 SVCall_IRQn = -5,
42 DebugMonitor_IRQn = -4,
43 PendSV_IRQn = -2,
44 SysTick_IRQn = -1,
45
46/****** K20x Specific Interrupt Numbers ***********************/
47 DMA0_IRQn = 0, // Vector40
48 DMA1_IRQn = 1, // Vector44
49 DMA2_IRQn = 2, // Vector48
50 DMA3_IRQn = 3, // Vector4C
51 DMA4_IRQn = 4, // Vector50
52 DMA5_IRQn = 5, // Vector54
53 DMA6_IRQn = 6, // Vector58
54 DMA7_IRQn = 7, // Vector5C
55 DMA8_IRQn = 8, // Vector60
56 DMA9_IRQn = 9, // Vector64
57 DMA10_IRQn = 10, // Vector68
58 DMA11_IRQn = 11, // Vector6C
59 DMA12_IRQn = 12, // Vector70
60 DMA13_IRQn = 13, // Vector74
61 DMA14_IRQn = 14, // Vector78
62 DMA15_IRQn = 15, // Vector7C
63 DMAError_IRQn = 16, // Vector80
64 //~ DMA_IRQn = 17, // Vector84
65 FlashMemComplete_IRQn = 18, // Vector88
66 FlashMemReadCollision_IRQn = 19, // Vector8C
67 LowVoltageWarning_IRQn = 20, // Vector90
68 LLWU_IRQn = 21, // Vector94
69 WDOG_IRQn = 22, // Vector98
70 I2C0_IRQn = 24, // VectorA0
71 I2C1_IRQn = 25, // VectorA4
72 SPI0_IRQn = 26, // VectorA8
73 SPI1_IRQn = 27, // VectorAC
74 CANMessage_IRQn = 29, // VectorB4
75 CANBusOff = 30, // VectorB8
76 CANError = 31, // VectorBC
77 CANTxWarning = 32, // VectorC0
78 CANRxWarning = 33, // VectorC4
79 CANWakeUp = 34, // VectorC8
80 I2S0Tx_IRQn = 35, // VectorCC
81 I2S1Rx_IRQn = 36, // VectorD0
82 UART0LON_IRQn = 44, // VectorF0
83 UART0Status_IRQn = 45, // VectorF4
84 UART0Error_IRQn = 46, // VectorF8
85 UART1Status_IRQn = 47, // VectorFC
86 UART1Error_IRQn = 48, // Vector100
87 UART2Status_IRQn = 49, // Vector104
88 UART2Error_IRQn = 50, // Vector108
89 ADC0_IRQn = 57, // Vector124
90 ADC1_IRQn = 58, // Vector128
91 CMP0_IRQn = 59, // Vector12C
92 CMP1_IRQn = 60, // Vector130
93 CMP2_IRQn = 61, // Vector134
94 FTM0_IRQn = 62, // Vector138
95 FTM1_IRQn = 63, // Vector13C
96 FTM2_IRQn = 64, // Vector140
97 CMT_IRQn = 65, // Vector144
98 RTCAlarm_IRQn = 66, // Vector148
99 RTCSeconds_IRQn = 67, // Vector14C
100 PITChannel0_IRQn = 68, // Vector150
101 PITChannel1_IRQn = 69, // Vector154
102 PITChannel2_IRQn = 70, // Vector158
103 PITChannel3_IRQn = 71, // Vector15C
104 PDB_IRQn = 72, // Vector160
105 USB_OTG_IRQn = 73, // Vector164
106 USBChargerDetect_IRQn = 74, // Vector168
107 DAC0_IRQn = 81, // Vector184
108 TSI_IRQn = 83, // Vector18C
109 MCG_IRQn = 84, // Vector190
110 LPTMR0_IRQn = 85, // Vector194
111 PINA_IRQn = 87, // Vector19C
112 PINB_IRQn = 88, // Vector1A0
113 PINC_IRQn = 89, // Vector1A4
114 PIND_IRQn = 90, // Vector1A8
115 PINE_IRQn = 91, // Vector1AC
116 SoftInitInt_IRQn = 94, // Vector1B8
117} IRQn_Type;
118
119/*
120 * ==========================================================================
121 * ----------- Processor and Core Peripheral Section ------------------------
122 * ==========================================================================
123 */
124
125/**
126 * @brief K20x Interrupt Number Definition, according to the selected device
127 * in @ref Library_configuration_section
128 */
129#define __FPU_PRESENT 0
130#define __MPU_PRESENT 0
131#define __NVIC_PRIO_BITS 4
132#define __Vendor_SysTickConfig 0
133
134#include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
135
136#include "k20xx.h"
137
138typedef struct
139{
140 __IO uint32_t SOPT1;
141 __IO uint32_t SOPT1CFG;
142 uint32_t RESERVED0[1023];
143 __IO uint32_t SOPT2;
144 uint32_t RESERVED1[1];
145 __IO uint32_t SOPT4;
146 __IO uint32_t SOPT5;
147 uint32_t RESERVED2[1];
148 __IO uint32_t SOPT7;
149 uint32_t RESERVED3[2];
150 __I uint32_t SDID;
151 uint32_t RESERVED4[1];
152 __IO uint32_t SCGC2;
153 __IO uint32_t SCGC3;
154 __IO uint32_t SCGC4;
155 __IO uint32_t SCGC5;
156 __IO uint32_t SCGC6;
157 __IO uint32_t SCGC7;
158 __IO uint32_t CLKDIV1;
159 __IO uint32_t CLKDIV2;
160 __I uint32_t FCFG1;
161 __I uint32_t FCFG2;
162 __I uint32_t UIDH;
163 __I uint32_t UIDMH;
164 __I uint32_t UIDML;
165 __I uint32_t UIDL;
166} SIM_TypeDef;
167
168/****************************************************************/
169/* Peripheral memory map */
170/****************************************************************/
171#define AXBS_BASE ((uint32_t)0x40004000) //
172#define DMA_BASE ((uint32_t)0x40008000)
173#define FTFL_BASE ((uint32_t)0x40020000)
174#define DMAMUX_BASE ((uint32_t)0x40021000)
175#define FCAN0_BASE ((uint32_t)0x40024000) //
176#define SPI0_BASE ((uint32_t)0x4002C000)
177#define SPI1_BASE ((uint32_t)0x4002D000) //
178#define I2S0_BASE ((uint32_t)0x4002F000) //
179#define USBDCD_BASE ((uint32_t)0x40035000) //
180#define PDB_BASE ((uint32_t)0x40036000) //
181#define PIT_BASE ((uint32_t)0x40037000)
182#define FTM0_BASE ((uint32_t)0x40038000)
183#define FTM1_BASE ((uint32_t)0x40039000)
184#define ADC0_BASE ((uint32_t)0x4003B000)
185#define RTC_BASE ((uint32_t)0x4003D000) //
186#define VBAT_BASE ((uint32_t)0x4003E000)
187#define LPTMR0_BASE ((uint32_t)0x40040000)
188#define SRF_BASE ((uint32_t)0x40041000)
189#define TSI0_BASE ((uint32_t)0x40045000)
190#define SIM_BASE ((uint32_t)0x40047000)
191#define PORTA_BASE ((uint32_t)0x40049000)
192#define PORTB_BASE ((uint32_t)0x4004A000)
193#define PORTC_BASE ((uint32_t)0x4004B000)
194#define PORTD_BASE ((uint32_t)0x4004C000)
195#define PORTE_BASE ((uint32_t)0x4004D000)
196#define WDOG_BASE ((uint32_t)0x40052000)
197#define EWDOG_BASE ((uint32_t)0x40061000) //
198#define CMT_BASE ((uint32_t)0x40062000) //
199#define MCG_BASE ((uint32_t)0x40064000)
200#define OSC0_BASE ((uint32_t)0x40065000)
201#define I2C0_BASE ((uint32_t)0x40066000)
202#define I2C1_BASE ((uint32_t)0x40067000) //
203#define UART0_BASE ((uint32_t)0x4006A000)
204#define UART1_BASE ((uint32_t)0x4006B000)
205#define UART2_BASE ((uint32_t)0x4006C000)
206#define USBOTG_BASE ((uint32_t)0x40072000)
207#define CMP0_BASE ((uint32_t)0x40073000) //
208#define VREF_BASE ((uint32_t)0x40074000) //
209#define LLWU_BASE ((uint32_t)0x4007C000)
210#define PMC_BASE ((uint32_t)0x4007D000)
211#define SMC_BASE ((uint32_t)0x4007E000) //
212#define RCM_BASE ((uint32_t)0x4007F000) //
213#define FTM2_BASE ((uint32_t)0x400B8000) //
214#define ADC1_BASE ((uint32_t)0x400BB000) //
215#define DAC0_BASE ((uint32_t)0x400CC000) //
216#define GPIOA_BASE ((uint32_t)0x400FF000)
217#define GPIOB_BASE ((uint32_t)0x400FF040)
218#define GPIOC_BASE ((uint32_t)0x400FF080)
219#define GPIOD_BASE ((uint32_t)0x400FF0C0)
220#define GPIOE_BASE ((uint32_t)0x400FF100)
221
222/****************************************************************/
223/* Peripheral declaration */
224/****************************************************************/
225#define DMA ((DMA_TypeDef *) DMA_BASE)
226#define FTFL ((FTFL_TypeDef *) FTFL_BASE)
227#define DMAMUX ((DMAMUX_TypeDef *) DMAMUX_BASE)
228#define PIT ((PIT_TypeDef *) PIT_BASE)
229#define FTM0 ((FTM_TypeDef *) FTM0_BASE)
230#define FTM1 ((FTM_TypeDef *) FTM1_BASE)
231#define FTM2 ((FTM_TypeDef *) FTM2_BASE)
232#define ADC0 ((ADC_TypeDef *) ADC0_BASE)
233#define ADC1 ((ADC_TypeDef *) ADC1_BASE)
234#define VBAT ((volatile uint8_t *)VBAT_BASE) /* 32 bytes */
235#define LPTMR0 ((LPTMR_TypeDef *) LPTMR0_BASE)
236#define SYSTEM_REGISTER_FILE ((volatile uint8_t *)SRF_BASE) /* 32 bytes */
237#define TSI0 ((TSI_TypeDef *) TSI0_BASE)
238#define SIM ((SIM_TypeDef *) SIM_BASE)
239#define LLWU ((LLWU_TypeDef *) LLWU_BASE)
240#define PMC ((PMC_TypeDef *) PMC_BASE)
241#define PORTA ((PORT_TypeDef *) PORTA_BASE)
242#define PORTB ((PORT_TypeDef *) PORTB_BASE)
243#define PORTC ((PORT_TypeDef *) PORTC_BASE)
244#define PORTD ((PORT_TypeDef *) PORTD_BASE)
245#define PORTE ((PORT_TypeDef *) PORTE_BASE)
246#define WDOG ((WDOG_TypeDef *) WDOG_BASE)
247#define USB0 ((USBOTG_TypeDef *) USBOTG_BASE)
248#define MCG ((MCG_TypeDef *) MCG_BASE)
249#define OSC0 ((OSC_TypeDef *) OSC0_BASE)
250#define SPI0 ((SPI_TypeDef *) SPI0_BASE)
251#define SPI1 ((SPI_TypeDef *) SPI1_BASE)
252#define I2C0 ((I2C_TypeDef *) I2C0_BASE)
253#define I2C1 ((I2C_TypeDef *) I2C1_BASE)
254#define UART0 ((UART_TypeDef *) UART0_BASE)
255#define UART1 ((UART_TypeDef *) UART1_BASE)
256#define UART2 ((UART_TypeDef *) UART2_BASE)
257#define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
258#define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
259#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
260#define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
261#define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
262
263/****************************************************************/
264/* Peripheral Registers Bits Definition */
265/****************************************************************/
266
267/****************************************************************/
268/* */
269/* System Integration Module (SIM) */
270/* */
271/****************************************************************/
272/********* Bits definition for SIM_SOPT1 register *************/
273#define SIM_SOPT1_USBREGEN ((uint32_t)0x80000000) /*!< USB voltage regulator enable */
274#define SIM_SOPT1_USBSSTBY ((uint32_t)0x40000000) /*!< USB voltage regulator in standby mode during Stop, VLPS, LLS and VLLS modes */
275#define SIM_SOPT1_USBVSTBY ((uint32_t)0x20000000) /*!< USB voltage regulator in standby mode during VLPR and VLPW modes */
276#define SIM_SOPT1_OSC32KSEL_SHIFT 18 /*!< 32K oscillator clock select (shift) */
277#define SIM_SOPT1_OSC32KSEL_MASK ((uint32_t)((uint32_t)0x3 << SIM_SOPT1_OSC32KSEL_SHIFT)) /*!< 32K oscillator clock select (mask) */
278#define SIM_SOPT1_OSC32KSEL(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT1_OSC32KSEL_SHIFT) & SIM_SOPT1_OSC32KSEL_MASK)) /*!< 32K oscillator clock select */
279#define SIM_SOPT1_RAMSIZE_SHIFT 12
280#define SIM_SOPT1_RAMSIZE_MASK ((uint32_t)((uint32_t)0xf << SIM_SOPT1_RAMSIZE_SHIFT))
281#define SIM_SOPT1_RAMSIZE(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT1_RAMSIZE_SHIFT) & SIM_SOPT1_RAMSIZE_MASK))
282
283/******* Bits definition for SIM_SOPT1CFG register ************/
284#define SIM_SOPT1CFG_USSWE ((uint32_t)0x04000000) /*!< USB voltage regulator stop standby write enable */
285#define SIM_SOPT1CFG_UVSWE ((uint32_t)0x02000000) /*!< USB voltage regulator VLP standby write enable */
286#define SIM_SOPT1CFG_URWE ((uint32_t)0x01000000) /*!< USB voltage regulator voltage regulator write enable */
287
288/******* Bits definition for SIM_SOPT2 register ************/
289#define SIM_SOPT2_USBSRC ((uint32_t)0x00040000) /*!< USB clock source select */
290#define SIM_SOPT2_PLLFLLSEL ((uint32_t)0x00010000) /*!< PLL/FLL clock select */
291#define SIM_SOPT2_TRACECLKSEL ((uint32_t)0x00001000)
292#define SIM_SOPT2_PTD7PAD ((uint32_t)0x00000800)
293#define SIM_SOPT2_CLKOUTSEL_SHIFT 5
294#define SIM_SOPT2_CLKOUTSEL_MASK ((uint32_t)((uint32_t)0x7 << SIM_SOPT2_CLKOUTSEL_SHIFT))
295#define SIM_SOPT2_CLKOUTSEL(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT2_CLKOUTSEL_SHIFT) & SIM_SOPT2_CLKOUTSEL_MASK))
296#define SIM_SOPT2_RTCCLKOUTSEL ((uint32_t)0x00000010) /*!< RTC clock out select */
297
298/******* Bits definition for SIM_SCGC2 register ************/
299#define SIM_SCGC2_DAC0 ((uint32_t)0x00001000) /*!< DAC0 Clock Gate Control */
300
301/******* Bits definition for SIM_SCGC3 register ************/
302#define SIM_SCGC3_ADC1 ((uint32_t)0x08000000) /*!< ADC1 Clock Gate Control */
303#define SIM_SCGC3_FTM2 ((uint32_t)0x01000000) /*!< FTM2 Clock Gate Control */
304
305/******* Bits definition for SIM_SCGC4 register ************/
306#define SIM_SCGC4_VREF ((uint32_t)0x00100000) /*!< VREF Clock Gate Control */
307#define SIM_SCGC4_CMP ((uint32_t)0x00080000) /*!< Comparator Clock Gate Control */
308#define SIM_SCGC4_USBOTG ((uint32_t)0x00040000) /*!< USB Clock Gate Control */
309#define SIM_SCGC4_UART2 ((uint32_t)0x00001000) /*!< UART2 Clock Gate Control */
310#define SIM_SCGC4_UART1 ((uint32_t)0x00000800) /*!< UART1 Clock Gate Control */
311#define SIM_SCGC4_UART0 ((uint32_t)0x00000400) /*!< UART0 Clock Gate Control */
312#define SIM_SCGC4_I2C1 ((uint32_t)0x00000080) /*!< I2C1 Clock Gate Control */
313#define SIM_SCGC4_I2C0 ((uint32_t)0x00000040) /*!< I2C0 Clock Gate Control */
314#define SIM_SCGC4_CMT ((uint32_t)0x00000004) /*!< CMT Clock Gate Control */
315#define SIM_SCGC4_EMW ((uint32_t)0x00000002) /*!< EWM Clock Gate Control */
316
317/******* Bits definition for SIM_SCGC5 register ************/
318#define SIM_SCGC5_PORTE ((uint32_t)0x00002000) /*!< Port E Clock Gate Control */
319#define SIM_SCGC5_PORTD ((uint32_t)0x00001000) /*!< Port D Clock Gate Control */
320#define SIM_SCGC5_PORTC ((uint32_t)0x00000800) /*!< Port C Clock Gate Control */
321#define SIM_SCGC5_PORTB ((uint32_t)0x00000400) /*!< Port B Clock Gate Control */
322#define SIM_SCGC5_PORTA ((uint32_t)0x00000200) /*!< Port A Clock Gate Control */
323#define SIM_SCGC5_TSI ((uint32_t)0x00000020) /*!< TSI Access Control */
324#define SIM_SCGC5_LPTIMER ((uint32_t)0x00000001) /*!< Low Power Timer Access Control */
325
326/******* Bits definition for SIM_SCGC6 register ************/
327#define SIM_SCGC6_RTC ((uint32_t)0x20000000) /*!< RTC Access Control */
328#define SIM_SCGC6_ADC0 ((uint32_t)0x08000000) /*!< ADC0 Clock Gate Control */
329#define SIM_SCGC6_FTM1 ((uint32_t)0x02000000) /*!< FTM1 Clock Gate Control */
330#define SIM_SCGC6_FTM0 ((uint32_t)0x01000000) /*!< FTM0 Clock Gate Control */
331#define SIM_SCGC6_PIT ((uint32_t)0x00800000) /*!< PIT Clock Gate Control */
332#define SIM_SCGC6_PDB ((uint32_t)0x00400000) /*!< PDB Clock Gate Control */
333#define SIM_SCGC6_USBDCD ((uint32_t)0x00200000) /*!< USB DCD Clock Gate Control */
334#define SIM_SCGC6_CRC ((uint32_t)0x00040000) /*!< Low Power Timer Access Control */
335#define SIM_SCGC6_I2S ((uint32_t)0x00008000) /*!< CRC Clock Gate Control */
336#define SIM_SCGC6_SPI1 ((uint32_t)0x00002000) /*!< SPI1 Clock Gate Control */
337#define SIM_SCGC6_SPI0 ((uint32_t)0x00001000) /*!< SPI0 Clock Gate Control */
338#define SIM_SCGC6_FCAN0 ((uint32_t)0x00000010) /*!< FlexCAN 0 Clock Gate Control */
339#define SIM_SCGC6_DMAMUX ((uint32_t)0x00000002) /*!< DMA Mux Clock Gate Control */
340#define SIM_SCGC6_FTFL ((uint32_t)0x00000001) /*!< Flash Memory Clock Gate Control */
341
342/******* Bits definition for SIM_SCGC6 register ************/
343#define SIM_SCGC7_DMA ((uint32_t)0x00000002) /*!< DMA Clock Gate Control */
344
345/****** Bits definition for SIM_CLKDIV1 register ***********/
346#define SIM_CLKDIV1_OUTDIV1_SHIFT 28
347#define SIM_CLKDIV1_OUTDIV1_MASK ((uint32_t)((uint32_t)0xF << SIM_CLKDIV1_OUTDIV1_SHIFT))
348#define SIM_CLKDIV1_OUTDIV1(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV1_OUTDIV1_SHIFT) & SIM_CLKDIV1_OUTDIV1_MASK))
349#define SIM_CLKDIV1_OUTDIV2_SHIFT 24
350#define SIM_CLKDIV1_OUTDIV2_MASK ((uint32_t)((uint32_t)0xF << SIM_CLKDIV1_OUTDIV2_SHIFT))
351#define SIM_CLKDIV1_OUTDIV2(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV1_OUTDIV2_SHIFT) & SIM_CLKDIV1_OUTDIV2_MASK))
352#define SIM_CLKDIV1_OUTDIV4_SHIFT 16
353#define SIM_CLKDIV1_OUTDIV4_MASK ((uint32_t)((uint32_t)0x7 << SIM_CLKDIV1_OUTDIV4_SHIFT))
354#define SIM_CLKDIV1_OUTDIV4(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV1_OUTDIV4_SHIFT) & SIM_CLKDIV1_OUTDIV4_MASK))
355
356/****** Bits definition for SIM_CLKDIV2 register ***********/
357#define SIM_CLKDIV2_USBDIV_SHIFT 1
358#define SIM_CLKDIV2_USBDIV_MASK ((uint32_t)((uint32_t)0x7 << SIM_CLKDIV2_USBDIV_SHIFT))
359#define SIM_CLKDIV2_USBDIV(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV2_USBDIV_SHIFT) & SIM_CLKDIV2_USBDIV_MASK))
360#define SIM_CLKDIV2_USBFRAC ((uint32_t)0x00000001)
361
362#endif
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20xx.h b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20xx.h
new file mode 100644
index 000000000..8218b3c9a
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k20xx.h
@@ -0,0 +1,2319 @@
1/*
2 * Copyright (C) 2014-2016 Fabio Utzig, http://fabioutzig.com
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
22
23#ifndef _K20xx_H_
24#define _K20xx_H_
25
26/*
27 * ==============================================================
28 * ---------- Interrupt Number Definition -----------------------
29 * ==============================================================
30 */
31
32/* Device dependent */
33
34/*
35 * ==========================================================================
36 * ----------- Processor and Core Peripheral Section ------------------------
37 * ==========================================================================
38 */
39
40/**
41 * @brief K20x Interrupt Number Definition, according to the selected device
42 * in @ref Library_configuration_section
43 */
44#define __MPU_PRESENT 0
45#define __NVIC_PRIO_BITS 4
46#define __Vendor_SysTickConfig 0
47
48#include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
49
50/* Device dependent
51typedef struct
52{
53 __IO uint32_t SOPT1;
54 __IO uint32_t SOPT1CFG;
55 uint32_t RESERVED0[1023];
56 __IO uint32_t SOPT2;
57 uint32_t RESERVED1[1];
58 __IO uint32_t SOPT4;
59 __IO uint32_t SOPT5;
60 uint32_t RESERVED2[1];
61 __IO uint32_t SOPT7;
62 uint32_t RESERVED3[2];
63 __I uint32_t SDID;
64 uint32_t RESERVED4[3];
65 __IO uint32_t SCGC4;
66 __IO uint32_t SCGC5;
67 __IO uint32_t SCGC6;
68 __IO uint32_t SCGC7;
69 __IO uint32_t CLKDIV1;
70 __IO uint32_t CLKDIV2;
71 __I uint32_t FCFG1;
72 __I uint32_t FCFG2;
73 __I uint32_t UIDH;
74 __I uint32_t UIDMH;
75 __I uint32_t UIDML;
76 __I uint32_t UIDL;
77} SIM_TypeDef;
78*/
79
80typedef struct
81{
82 __IO uint8_t PE1;
83 __IO uint8_t PE2;
84 __IO uint8_t PE3;
85 __IO uint8_t PE4;
86 __IO uint8_t ME;
87 __IO uint8_t F1;
88 __IO uint8_t F2;
89 __I uint8_t F3;
90 __IO uint8_t FILT1;
91 __IO uint8_t FILT2;
92} LLWU_TypeDef;
93
94typedef struct
95{
96 __IO uint32_t PCR[32];
97 __O uint32_t GPCLR;
98 __O uint32_t GPCHR;
99 uint32_t RESERVED0[6];
100 __IO uint32_t ISFR;
101} PORT_TypeDef;
102
103typedef struct
104{
105 __IO uint8_t C1;
106 __IO uint8_t C2;
107 __IO uint8_t C3;
108 __IO uint8_t C4;
109 __IO uint8_t C5;
110 __IO uint8_t C6;
111 __I uint8_t S;
112 uint8_t RESERVED0[1];
113 __IO uint8_t SC;
114 uint8_t RESERVED1[1];
115 __IO uint8_t ATCVH;
116 __IO uint8_t ATCVL;
117 __IO uint8_t C7;
118 __IO uint8_t C8;
119} MCG_TypeDef;
120
121typedef struct
122{
123 __IO uint8_t CR;
124} OSC_TypeDef;
125
126typedef struct {
127 uint32_t SADDR; /* TCD Source Address */
128 uint16_t SOFF; /* TCD Signed Source Address Offset */
129 uint16_t ATTR; /* TCD Transfer Attributes */
130 union {
131 uint32_t NBYTES_MLNO; /* TCD Minor Byte Count (Minor Loop Disabled) */
132 uint32_t NBYTES_MLOFFNO; /* TCD Signed Minor Loop Offset (Minor Loop Enabled and Offset Disabled) */
133 uint32_t NBYTES_MLOFFYES; /* TCD Signed Minor Loop Offset (Minor Loop and Offset Enabled) */
134 };
135 uint32_t SLAST; /* TCD Last Source Address Adjustment */
136 uint32_t DADDR; /* TCD Destination Address */
137 uint16_t DOFF; /* TCD Signed Destination Address Offset */
138 union {
139 uint16_t CITER_ELINKNO; /* TCD Current Minor Loop Link, Major Loop Count (Channel Linking Disabled) */
140 uint16_t CITER_ELINKYES; /* TCD Current Minor Loop Link, Major Loop Count (Channel Linking Enabled) */
141 };
142 uint32_t DLASTSGA; /* TCD Last Destination Address Adjustment/Scatter Gather Address */
143 uint16_t CSR; /* TCD Control and Status */
144 union {
145 uint16_t BITER_ELINKNO; /* TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Disabled) */
146 uint16_t BITER_ELINKYES; /* TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Enabled) */
147 };
148} DMA_TCD_TypeDef;
149
150/** DMA - Peripheral register structure */
151typedef struct {
152 __IO uint32_t CR; /* Control Register */
153 __IO uint32_t ES; /* Error Status Register */
154 __IO uint8_t RESERVED_0[4];
155 __IO uint32_t ERQ; /* Enable Request Register */
156 __IO uint8_t RESERVED_1[4];
157 __IO uint32_t EEI; /* Enable Error Interrupt Register */
158 __IO uint8_t CEEI; /* Clear Enable Error Interrupt Register */
159 __IO uint8_t SEEI; /* Set Enable Error Interrupt Register */
160 __IO uint8_t CERQ; /* Clear Enable Request Register */
161 __IO uint8_t SERQ; /* Set Enable Request Register */
162 __IO uint8_t CDNE; /* Clear DONE Status Bit Register */
163 __IO uint8_t SSRT; /* Set START Bit Register */
164 __IO uint8_t CERR; /* Clear Error Register */
165 __IO uint8_t CINT; /* Clear Interrupt Request Register */
166 __IO uint8_t RESERVED_2[4];
167 __IO uint32_t INT; /* Interrupt Request Register */
168 __IO uint8_t RESERVED_3[4];
169 __IO uint32_t ERR; /* Error Register */
170 __IO uint8_t RESERVED_4[4];
171 __IO uint32_t HRS; /* Hardware Request Status Register */
172 __IO uint8_t RESERVED_5[200];
173 __IO uint8_t DCHPRI3; /* Channel 3 Priority Register */
174 __IO uint8_t DCHPRI2; /* Channel 2 Priority Register */
175 __IO uint8_t DCHPRI1; /* Channel 1 Priority Register */
176 __IO uint8_t DCHPRI0; /* Channel 0 Priority Register */
177 __IO uint8_t RESERVED_6[3836];
178 DMA_TCD_TypeDef TCD[4];
179} DMA_TypeDef;
180
181typedef struct
182{
183 __IO uint8_t CHCFG[4];
184} DMAMUX_TypeDef;
185
186/** PIT - Peripheral register structure */
187typedef struct {
188 __IO uint32_t MCR; /* PIT Module Control Register */
189 uint8_t RESERVED0[252];
190 struct PIT_CHANNEL {
191 __IO uint32_t LDVAL; /* Timer Load Value Register */
192 __IO uint32_t CVAL; /* Current Timer Value Register */
193 __IO uint32_t TCTRL; /* Timer Control Register */
194 __IO uint32_t TFLG; /* Timer Flag Register */
195 } CHANNEL[4];
196} PIT_TypeDef;
197
198typedef struct
199{
200 __IO uint32_t SC; /* Status and Control */
201 __IO uint32_t CNT; /* Counter */
202 __IO uint32_t MOD; /* Modulo */
203 struct FTM_Channel {
204 __IO uint32_t CnSC; /* Channel Status and Control */
205 __IO uint32_t CnV; /* Channel Value */
206 } CHANNEL[8];
207 __IO uint32_t CNTIN; /* Counter Initial Value */
208 __IO uint32_t STATUS; /* Capture and Compare Status */
209 __IO uint32_t MODE; /* Features Mode Selection */
210 __IO uint32_t SYNC; /* Synchronization */
211 __IO uint32_t OUTINIT; /* Initial State for Channels Output */
212 __IO uint32_t OUTMASK; /* Output Mask */
213 __IO uint32_t COMBINE; /* Function for Linked Channels */
214 __IO uint32_t DEADTIME; /* Deadtime Insertion Control */
215 __IO uint32_t EXTTRIG; /* FTM External Trigger */
216 __IO uint32_t POL; /* Channels Polarity */
217 __IO uint32_t FMS; /* Fault Mode Status */
218 __IO uint32_t FILTER; /* Input Capture Filter Control */
219 __IO uint32_t FLTCTRL; /* Fault Control */
220 __IO uint32_t QDCTRL; /* Quadrature Decode Control and Status */
221 __IO uint32_t CONF; /* Configuration */
222 __IO uint32_t FTLPOL; /* FTM Fault Input Polarity */
223 __IO uint32_t SYNCONF; /* Synchronization Configuration */
224 __IO uint32_t INVCTRL; /* FTM Inverting Control */
225 __IO uint32_t SWOCTRL; /* FTM Software Output Control */
226 __IO uint32_t PWMLOAD; /* FTM PWM Load */
227} FTM_TypeDef;
228
229typedef struct
230{
231 __IO uint32_t SC1A; // offset: 0x00
232 __IO uint32_t SC1B; // offset: 0x04
233 __IO uint32_t CFG1; // offset: 0x08
234 __IO uint32_t CFG2; // offset: 0x0C
235 __I uint32_t RA; // offset: 0x10
236 __I uint32_t RB; // offset: 0x14
237 __IO uint32_t CV1; // offset: 0x18
238 __IO uint32_t CV2; // offset: 0x1C
239 __IO uint32_t SC2; // offset: 0x20
240 __IO uint32_t SC3; // offset: 0x24
241 __IO uint32_t OFS; // offset: 0x28
242 __IO uint32_t PG; // offset: 0x2C
243 __IO uint32_t MG; // offset: 0x30
244 __IO uint32_t CLPD; // offset: 0x34
245 __IO uint32_t CLPS; // offset: 0x38
246 __IO uint32_t CLP4; // offset: 0x3C
247 __IO uint32_t CLP3; // offset: 0x40
248 __IO uint32_t CLP2; // offset: 0x44
249 __IO uint32_t CLP1; // offset: 0x48
250 __IO uint32_t CLP0; // offset: 0x4C
251 uint32_t RESERVED0[1]; // offset: 0x50
252 __IO uint32_t CLMD; // offset: 0x54
253 __IO uint32_t CLMS; // offset: 0x58
254 __IO uint32_t CLM4; // offset: 0x5C
255 __IO uint32_t CLM3; // offset: 0x60
256 __IO uint32_t CLM2; // offset: 0x64
257 __IO uint32_t CLM1; // offset: 0x68
258 __IO uint32_t CLM0; // offset: 0x6C
259} ADC_TypeDef;
260
261typedef struct
262{
263 __IO uint32_t CSR;
264 __IO uint32_t PSR;
265 __IO uint32_t CMR;
266 __I uint32_t CNR;
267} LPTMR_TypeDef;
268
269typedef struct
270{
271 __IO uint32_t GENCS;
272 __IO uint32_t DATA;
273 __IO uint32_t TSHD;
274} TSI_TypeDef;
275
276typedef struct
277{
278 __IO uint32_t PDOR;
279 __IO uint32_t PSOR;
280 __IO uint32_t PCOR;
281 __IO uint32_t PTOR;
282 __IO uint32_t PDIR;
283 __IO uint32_t PDDR;
284} GPIO_TypeDef;
285
286/** SPI - Peripheral register structure */
287typedef struct {
288 __IO uint32_t MCR; /**< DSPI Module Configuration Register, offset: 0x0 */
289 uint32_t RESERVED0[1];
290 __IO uint32_t TCR; /**< DSPI Transfer Count Register, offset: 0x8 */
291 union { /* offset: 0xC */
292 __IO uint32_t CTAR[2]; /**< DSPI Clock and Transfer Attributes Register (In Master Mode), array offset: 0xC, array step: 0x4 */
293 __IO uint32_t CTAR_SLAVE[1]; /**< DSPI Clock and Transfer Attributes Register (In Slave Mode), array offset: 0xC, array step: 0x4 */
294 };
295 uint32_t RESERVED1[6];
296 __IO uint32_t SR; /**< DSPI Status Register, offset: 0x2C */
297 __IO uint32_t RSER; /**< DSPI DMA/Interrupt Request Select and Enable Register, offset: 0x30 */
298 union { /* offset: 0x34 */
299 __IO uint32_t PUSHR; /**< DSPI PUSH TX FIFO Register In Master Mode, offset: 0x34 */
300 __IO uint32_t PUSHR_SLAVE; /**< DSPI PUSH TX FIFO Register In Slave Mode, offset: 0x34 */
301 };
302 __I uint32_t POPR; /**< DSPI POP RX FIFO Register, offset: 0x38 */
303 __I uint32_t TXFR[4]; /**< DSPI Transmit FIFO Registers, offset: 0x3C */
304 uint32_t RESERVED2[12];
305 __I uint32_t RXFR[4]; /**< DSPI Receive FIFO Registers, offset: 0x7C */
306} SPI_TypeDef;
307
308typedef struct
309{
310 __IO uint8_t A1;
311 __IO uint8_t F;
312 __IO uint8_t C1;
313 __IO uint8_t S;
314 __IO uint8_t D;
315 __IO uint8_t C2;
316 __IO uint8_t FLT;
317 __IO uint8_t RA;
318 __IO uint8_t SMB;
319 __IO uint8_t A2;
320 __IO uint8_t SLTH;
321 __IO uint8_t SLTL;
322} I2C_TypeDef;
323
324typedef struct
325{
326 __IO uint8_t BDH;
327 __IO uint8_t BDL;
328 __IO uint8_t C1;
329 __IO uint8_t C2;
330 __I uint8_t S1;
331 __IO uint8_t S2;
332 __IO uint8_t C3;
333 __IO uint8_t D;
334 __IO uint8_t MA1;
335 __IO uint8_t MA2;
336 __IO uint8_t C4;
337 __IO uint8_t C5;
338 __I uint8_t ED;
339 __IO uint8_t MODEM;
340 __IO uint8_t IR;
341 uint8_t RESERVED0[1];
342 __IO uint8_t PFIFO;
343 __IO uint8_t CFIFO;
344 __IO uint8_t SFIFO;
345 __IO uint8_t TWFIFO;
346 __I uint8_t TCFIFO;
347 __IO uint8_t RWFIFO;
348 __I uint8_t RCFIFO;
349 uint8_t RESERVED1[1];
350 __IO uint8_t C7816;
351 __IO uint8_t IE7816;
352 __IO uint8_t IS7816;
353 union {
354 __IO uint8_t WP7816T0;
355 __IO uint8_t WP7816T1;
356 };
357 __IO uint8_t WN7816;
358 __IO uint8_t WF7816;
359 __IO uint8_t ET7816;
360 __IO uint8_t TL7816;
361 uint8_t RESERVED2[2];
362 __IO uint8_t C6;
363 __IO uint8_t PCTH;
364 __IO uint8_t PCTL;
365 __IO uint8_t B1T;
366 __IO uint8_t SDTH;
367 __IO uint8_t SDTL;
368 __IO uint8_t PRE;
369 __IO uint8_t TPL;
370 __IO uint8_t IE;
371 __IO uint8_t WB;
372 __IO uint8_t S3;
373 __IO uint8_t S4;
374 __I uint8_t RPL;
375 __I uint8_t RPREL;
376 __IO uint8_t CPW;
377 __IO uint8_t RIDT;
378 __IO uint8_t TIDT;
379} UART_TypeDef;
380
381typedef struct
382{
383 __IO uint8_t LVDSC1;
384 __IO uint8_t LVDSC2;
385 __IO uint8_t REGSC;
386} PMC_TypeDef;
387
388typedef struct
389{
390 __IO uint16_t STCTRLH;
391 __IO uint16_t STCTRLL;
392 __IO uint16_t TOVALH;
393 __IO uint16_t TOVALL;
394 __IO uint16_t WINH;
395 __IO uint16_t WINL;
396 __IO uint16_t REFRESH;
397 __IO uint16_t UNLOCK;
398 __IO uint16_t TMROUTH;
399 __IO uint16_t TMROUTL;
400 __IO uint16_t RSTCNT;
401 __IO uint16_t PRESC;
402} WDOG_TypeDef;
403
404typedef struct {
405 __I uint8_t PERID; // 0x00
406 uint8_t RESERVED0[3];
407 __I uint8_t IDCOMP; // 0x04
408 uint8_t RESERVED1[3];
409 __I uint8_t REV; // 0x08
410 uint8_t RESERVED2[3];
411 __I uint8_t ADDINFO; // 0x0C
412 uint8_t RESERVED3[3];
413 __IO uint8_t OTGISTAT; // 0x10
414 uint8_t RESERVED4[3];
415 __IO uint8_t OTGICR; // 0x14
416 uint8_t RESERVED5[3];
417 __IO uint8_t OTGSTAT; // 0x18
418 uint8_t RESERVED6[3];
419 __IO uint8_t OTGCTL; // 0x1C
420 uint8_t RESERVED7[99];
421 __IO uint8_t ISTAT; // 0x80
422 uint8_t RESERVED8[3];
423 __IO uint8_t INTEN; // 0x84
424 uint8_t RESERVED9[3];
425 __IO uint8_t ERRSTAT; // 0x88
426 uint8_t RESERVED10[3];
427 __IO uint8_t ERREN; // 0x8C
428 uint8_t RESERVED11[3];
429 __I uint8_t STAT; // 0x90
430 uint8_t RESERVED12[3];
431 __IO uint8_t CTL; // 0x94
432 uint8_t RESERVED13[3];
433 __IO uint8_t ADDR; // 0x98
434 uint8_t RESERVED14[3];
435 __IO uint8_t BDTPAGE1; // 0x9C
436 uint8_t RESERVED15[3];
437 __IO uint8_t FRMNUML; // 0xA0
438 uint8_t RESERVED16[3];
439 __IO uint8_t FRMNUMH; // 0xA4
440 uint8_t RESERVED17[3];
441 __IO uint8_t TOKEN; // 0xA8
442 uint8_t RESERVED18[3];
443 __IO uint8_t SOFTHLD; // 0xAC
444 uint8_t RESERVED19[3];
445 __IO uint8_t BDTPAGE2; // 0xB0
446 uint8_t RESERVED20[3];
447 __IO uint8_t BDTPAGE3; // 0xB4
448 uint8_t RESERVED21[11];
449 struct {
450 __IO uint8_t V; // 0xC0
451 uint8_t RESERVED[3];
452 } ENDPT[16];
453 __IO uint8_t USBCTRL; // 0x100
454 uint8_t RESERVED22[3];
455 __I uint8_t OBSERVE; // 0x104
456 uint8_t RESERVED23[3];
457 __IO uint8_t CONTROL; // 0x108
458 uint8_t RESERVED24[3];
459 __IO uint8_t USBTRC0; // 0x10C
460 uint8_t RESERVED25[7];
461 __IO uint8_t USBFRMADJUST; // 0x114
462} USBOTG_TypeDef;
463
464typedef struct
465{
466 __IO uint8_t FSTAT;
467 __IO uint8_t FCNFG;
468 __I uint8_t FSEC;
469 __I uint8_t FOPT;
470 __IO uint8_t FCCOB3;
471 __IO uint8_t FCCOB2;
472 __IO uint8_t FCCOB1;
473 __IO uint8_t FCCOB0;
474 __IO uint8_t FCCOB7;
475 __IO uint8_t FCCOB6;
476 __IO uint8_t FCCOB5;
477 __IO uint8_t FCCOB4;
478 __IO uint8_t FCCOBB;
479 __IO uint8_t FCCOBA;
480 __IO uint8_t FCCOB9;
481 __IO uint8_t FCCOB8;
482 __IO uint8_t FPROT3;
483 __IO uint8_t FPROT2;
484 __IO uint8_t FPROT1;
485 __IO uint8_t FPROT0;
486 uint8_t RESERVED0[2];
487 __IO uint8_t FEPROT;
488 __IO uint8_t FDPROT;
489} FTFL_TypeDef;
490
491/****************************************************************/
492/* Peripheral memory map */
493/****************************************************************/
494
495 /* Device dependent */
496
497/****************************************************************/
498/* Peripheral declaration */
499/****************************************************************/
500
501 /* Device dependent */
502
503/****************************************************************/
504/* Peripheral Registers Bits Definition */
505/****************************************************************/
506
507/****************************************************************/
508/* */
509/* System Integration Module (SIM) */
510/* */
511/****************************************************************/
512
513 /* Device dependent */
514
515/****************************************************************/
516/* */
517/* Low-Leakage Wakeup Unit (LLWU) */
518/* */
519/****************************************************************/
520/********** Bits definition for LLWU_PE1 register *************/
521#define LLWU_PE1_WUPE3_SHIFT 6 /*!< Wakeup Pin Enable for LLWU_P3 (shift) */
522#define LLWU_PE1_WUPE3_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE1_WUPE3_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P3 (mask) */
523#define LLWU_PE1_WUPE3(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE1_WUPE3_SHIFT) & LLWU_PE1_WUPE3_MASK)) /*!< Wakeup Pin Enable for LLWU_P3 */
524#define LLWU_PE1_WUPE2_SHIFT 4 /*!< Wakeup Pin Enable for LLWU_P2 (shift) */
525#define LLWU_PE1_WUPE2_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE1_WUPE2_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P2 (mask) */
526#define LLWU_PE1_WUPE2(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE1_WUPE2_SHIFT) & LLWU_PE1_WUPE2_MASK)) /*!< Wakeup Pin Enable for LLWU_P2 */
527#define LLWU_PE1_WUPE1_SHIFT 2 /*!< Wakeup Pin Enable for LLWU_P1 (shift) */
528#define LLWU_PE1_WUPE1_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE1_WUPE1_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P1 (mask) */
529#define LLWU_PE1_WUPE1(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE1_WUPE1_SHIFT) & LLWU_PE1_WUPE1_MASK)) /*!< Wakeup Pin Enable for LLWU_P1 */
530#define LLWU_PE1_WUPE0_SHIFT 0 /*!< Wakeup Pin Enable for LLWU_P0 (shift) */
531#define LLWU_PE1_WUPE0_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE1_WUPE0_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P0 (mask) */
532#define LLWU_PE1_WUPE0(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE1_WUPE0_SHIFT) & LLWU_PE1_WUPE0_MASK)) /*!< Wakeup Pin Enable for LLWU_P0 */
533
534/********** Bits definition for LLWU_PE2 register *************/
535#define LLWU_PE2_WUPE7_SHIFT 6 /*!< Wakeup Pin Enable for LLWU_P7 (shift) */
536#define LLWU_PE2_WUPE7_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE2_WUPE7_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P7 (mask) */
537#define LLWU_PE2_WUPE7(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE2_WUPE7_SHIFT) & LLWU_PE2_WUPE7_MASK)) /*!< Wakeup Pin Enable for LLWU_P7 */
538#define LLWU_PE2_WUPE6_SHIFT 4 /*!< Wakeup Pin Enable for LLWU_P6 (shift) */
539#define LLWU_PE2_WUPE6_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE2_WUPE6_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P6 (mask) */
540#define LLWU_PE2_WUPE6(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE2_WUPE6_SHIFT) & LLWU_PE2_WUPE6_MASK)) /*!< Wakeup Pin Enable for LLWU_P6 */
541#define LLWU_PE2_WUPE5_SHIFT 2 /*!< Wakeup Pin Enable for LLWU_P5 (shift) */
542#define LLWU_PE2_WUPE5_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE2_WUPE5_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P5 (mask) */
543#define LLWU_PE2_WUPE5(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE2_WUPE5_SHIFT) & LLWU_PE2_WUPE5_MASK)) /*!< Wakeup Pin Enable for LLWU_P5 */
544#define LLWU_PE2_WUPE4_SHIFT 0 /*!< Wakeup Pin Enable for LLWU_P4 (shift) */
545#define LLWU_PE2_WUPE4_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE2_WUPE4_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P4 (mask) */
546#define LLWU_PE2_WUPE4(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE2_WUPE4_SHIFT) & LLWU_PE2_WUPE4_MASK)) /*!< Wakeup Pin Enable for LLWU_P4 */
547
548/********** Bits definition for LLWU_PE3 register *************/
549#define LLWU_PE3_WUPE11_SHIFT 6 /*!< Wakeup Pin Enable for LLWU_P11 (shift) */
550#define LLWU_PE3_WUPE11_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE3_WUPE11_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P11 (mask) */
551#define LLWU_PE3_WUPE11(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE3_WUPE11_SHIFT) & LLWU_PE3_WUPE11_MASK)) /*!< Wakeup Pin Enable for LLWU_P11 */
552#define LLWU_PE3_WUPE10_SHIFT 4 /*!< Wakeup Pin Enable for LLWU_P10 (shift) */
553#define LLWU_PE3_WUPE10_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE3_WUPE10_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P10 (mask) */
554#define LLWU_PE3_WUPE10(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE3_WUPE10_SHIFT) & LLWU_PE3_WUPE10_MASK)) /*!< Wakeup Pin Enable for LLWU_P10 */
555#define LLWU_PE3_WUPE13_SHIFT 2 /*!< Wakeup Pin Enable for LLWU_P9 (shift) */
556#define LLWU_PE3_WUPE13_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE3_WUPE13_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P9 (mask) */
557#define LLWU_PE3_WUPE13(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE3_WUPE13_SHIFT) & LLWU_PE3_WUPE13_MASK)) /*!< Wakeup Pin Enable for LLWU_P9 */
558#define LLWU_PE3_WUPE8_SHIFT 0 /*!< Wakeup Pin Enable for LLWU_P8 (shift) */
559#define LLWU_PE3_WUPE8_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE3_WUPE8_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P8 (mask) */
560#define LLWU_PE3_WUPE8(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE3_WUPE8_SHIFT) & LLWU_PE3_WUPE8_MASK)) /*!< Wakeup Pin Enable for LLWU_P8 */
561
562/********** Bits definition for LLWU_PE4 register *************/
563#define LLWU_PE4_WUPE15_SHIFT 6 /*!< Wakeup Pin Enable for LLWU_P15 (shift) */
564#define LLWU_PE4_WUPE15_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE4_WUPE15_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P15 (mask) */
565#define LLWU_PE4_WUPE15(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE4_WUPE15_SHIFT) & LLWU_PE4_WUPE15_MASK)) /*!< Wakeup Pin Enable for LLWU_P15 */
566#define LLWU_PE4_WUPE14_SHIFT 4 /*!< Wakeup Pin Enable for LLWU_P14 (shift) */
567#define LLWU_PE4_WUPE14_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE4_WUPE14_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P14 (mask) */
568#define LLWU_PE4_WUPE14(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE4_WUPE14_SHIFT) & LLWU_PE4_WUPE14_MASK)) /*!< Wakeup Pin Enable for LLWU_P14 */
569#define LLWU_PE4_WUPE13_SHIFT 2 /*!< Wakeup Pin Enable for LLWU_P13 (shift) */
570#define LLWU_PE4_WUPE13_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE4_WUPE13_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P13 (mask) */
571#define LLWU_PE4_WUPE13(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE4_WUPE13_SHIFT) & LLWU_PE4_WUPE13_MASK)) /*!< Wakeup Pin Enable for LLWU_P13 */
572#define LLWU_PE4_WUPE12_SHIFT 0 /*!< Wakeup Pin Enable for LLWU_P12 (shift) */
573#define LLWU_PE4_WUPE12_MASK ((uint8_t)((uint8_t)0x03 << LLWU_PE4_WUPE12_SHIFT)) /*!< Wakeup Pin Enable for LLWU_P12 (mask) */
574#define LLWU_PE4_WUPE12(x) ((uint8_t)(((uint8_t)(x) << LLWU_PE4_WUPE12_SHIFT) & LLWU_PE4_WUPE12_MASK)) /*!< Wakeup Pin Enable for LLWU_P12 */
575
576/********** Bits definition for LLWU_ME register *************/
577#define LLWU_ME_WUME7 ((uint8_t)((uint8_t)1 << 7)) /*!< Wakeup Module Enable for Module 7 */
578#define LLWU_ME_WUME6 ((uint8_t)((uint8_t)1 << 6)) /*!< Wakeup Module Enable for Module 6 */
579#define LLWU_ME_WUME5 ((uint8_t)((uint8_t)1 << 5)) /*!< Wakeup Module Enable for Module 5 */
580#define LLWU_ME_WUME4 ((uint8_t)((uint8_t)1 << 4)) /*!< Wakeup Module Enable for Module 4 */
581#define LLWU_ME_WUME3 ((uint8_t)((uint8_t)1 << 3)) /*!< Wakeup Module Enable for Module 3 */
582#define LLWU_ME_WUME2 ((uint8_t)((uint8_t)1 << 2)) /*!< Wakeup Module Enable for Module 2 */
583#define LLWU_ME_WUME1 ((uint8_t)((uint8_t)1 << 1)) /*!< Wakeup Module Enable for Module 1 */
584#define LLWU_ME_WUME0 ((uint8_t)((uint8_t)1 << 0)) /*!< Wakeup Module Enable for Module 0 */
585
586/********** Bits definition for LLWU_F1 register *************/
587#define LLWU_F1_WUF7 ((uint8_t)((uint8_t)1 << 7)) /*!< Wakeup Flag for LLWU_P7 */
588#define LLWU_F1_WUF6 ((uint8_t)((uint8_t)1 << 6)) /*!< Wakeup Flag for LLWU_P6 */
589#define LLWU_F1_WUF5 ((uint8_t)((uint8_t)1 << 5)) /*!< Wakeup Flag for LLWU_P5 */
590#define LLWU_F1_WUF4 ((uint8_t)((uint8_t)1 << 4)) /*!< Wakeup Flag for LLWU_P4 */
591#define LLWU_F1_WUF3 ((uint8_t)((uint8_t)1 << 3)) /*!< Wakeup Flag for LLWU_P3 */
592#define LLWU_F1_WUF2 ((uint8_t)((uint8_t)1 << 2)) /*!< Wakeup Flag for LLWU_P2 */
593#define LLWU_F1_WUF1 ((uint8_t)((uint8_t)1 << 1)) /*!< Wakeup Flag for LLWU_P1 */
594#define LLWU_F1_WUF0 ((uint8_t)((uint8_t)1 << 0)) /*!< Wakeup Flag for LLWU_P0 */
595
596/********** Bits definition for LLWU_F2 register *************/
597#define LLWU_F2_WUF15 ((uint8_t)((uint8_t)1 << 7)) /*!< Wakeup Flag for LLWU_P15 */
598#define LLWU_F2_WUF14 ((uint8_t)((uint8_t)1 << 6)) /*!< Wakeup Flag for LLWU_P14 */
599#define LLWU_F2_WUF13 ((uint8_t)((uint8_t)1 << 5)) /*!< Wakeup Flag for LLWU_P13 */
600#define LLWU_F2_WUF12 ((uint8_t)((uint8_t)1 << 4)) /*!< Wakeup Flag for LLWU_P12 */
601#define LLWU_F2_WUF11 ((uint8_t)((uint8_t)1 << 3)) /*!< Wakeup Flag for LLWU_P11 */
602#define LLWU_F2_WUF10 ((uint8_t)((uint8_t)1 << 2)) /*!< Wakeup Flag for LLWU_P10 */
603#define LLWU_F2_WUF9 ((uint8_t)((uint8_t)1 << 1)) /*!< Wakeup Flag for LLWU_P9 */
604#define LLWU_F2_WUF8 ((uint8_t)((uint8_t)1 << 0)) /*!< Wakeup Flag for LLWU_P8 */
605
606/********** Bits definition for LLWU_F3 register *************/
607#define LLWU_F3_MWUF7 ((uint8_t)((uint8_t)1 << 7)) /*!< Wakeup Flag for Module 7 */
608#define LLWU_F3_MWUF6 ((uint8_t)((uint8_t)1 << 6)) /*!< Wakeup Flag for Module 6 */
609#define LLWU_F3_MWUF5 ((uint8_t)((uint8_t)1 << 5)) /*!< Wakeup Flag for Module 5 */
610#define LLWU_F3_MWUF4 ((uint8_t)((uint8_t)1 << 4)) /*!< Wakeup Flag for Module 4 */
611#define LLWU_F3_MWUF3 ((uint8_t)((uint8_t)1 << 3)) /*!< Wakeup Flag for Module 3 */
612#define LLWU_F3_MWUF2 ((uint8_t)((uint8_t)1 << 2)) /*!< Wakeup Flag for Module 2 */
613#define LLWU_F3_MWUF1 ((uint8_t)((uint8_t)1 << 1)) /*!< Wakeup Flag for Module 1 */
614#define LLWU_F3_MWUF0 ((uint8_t)((uint8_t)1 << 0)) /*!< Wakeup Flag for Module 0 */
615
616/********** Bits definition for LLWU_FILT1 register *************/
617#define LLWU_FILT1_FILTF ((uint8_t)((uint8_t)1 << 7)) /*!< Filter Detect Flag */
618#define LLWU_FILT1_FILTE_SHIFT 5 /*!< Digital Filter on External Pin (shift) */
619#define LLWU_FILT1_FILTE_MASK ((uint8_t)((uint8_t)0x03 << LLWU_FILT1_FILTE_SHIFT)) /*!< Digital Filter on External Pin (mask) */
620#define LLWU_FILT1_FILTE(x) ((uint8_t)(((uint8_t)(x) << LLWU_FILT1_FILTE_SHIFT) & LLWU_FILT1_FILTE_MASK)) /*!< Digital Filter on External Pin */
621#define LLWU_FILT1_FILTE_DISABLED LLWU_FILT1_FILTE(0) /*!< Filter disabled */
622#define LLWU_FILT1_FILTE_POSEDGE LLWU_FILT1_FILTE(1) /*!< Filter posedge detect enabled */
623#define LLWU_FILT1_FILTE_NEGEDGE LLWU_FILT1_FILTE(2) /*!< Filter negedge detect enabled */
624#define LLWU_FILT1_FILTE_ANYEDGE LLWU_FILT1_FILTE(3) /*!< Filter any edge detect enabled */
625#define LLWU_FILT1_FILTSEL_SHIFT 0 /*!< Filter Pin Select (LLWU_P0 ... LLWU_P15) (shift) */
626#define LLWU_FILT1_FILTSEL_MASK ((uint8_t)((uint8_t)0x0F << LLWU_FILT1_FILTSEL_SHIFT)) /*!< Filter Pin Select (LLWU_P0 ... LLWU_P15) (mask) */
627#define LLWU_FILT1_FILTSEL(x) ((uint8_t)(((uint8_t)(x) << LLWU_FILT1_FILTSEL_SHIFT) & LLWU_FILT1_FILTSEL_MASK)) /*!< Filter Pin Select (LLWU_P0 ... LLWU_P15) */
628
629/********** Bits definition for LLWU_FILT2 register *************/
630#define LLWU_FILT2_FILTF ((uint8_t)((uint8_t)1 << 7)) /*!< Filter Detect Flag */
631#define LLWU_FILT2_FILTE_SHIFT 5 /*!< Digital Filter on External Pin (shift) */
632#define LLWU_FILT2_FILTE_MASK ((uint8_t)((uint8_t)0x03 << LLWU_FILT2_FILTE_SHIFT)) /*!< Digital Filter on External Pin (mask) */
633#define LLWU_FILT2_FILTE(x) ((uint8_t)(((uint8_t)(x) << LLWU_FILT2_FILTE_SHIFT) & LLWU_FILT2_FILTE_MASK)) /*!< Digital Filter on External Pin */
634#define LLWU_FILT2_FILTE_DISABLED LLWU_FILT2_FILTE(0) /*!< Filter disabled */
635#define LLWU_FILT2_FILTE_POSEDGE LLWU_FILT2_FILTE(1) /*!< Filter posedge detect enabled */
636#define LLWU_FILT2_FILTE_NEGEDGE LLWU_FILT2_FILTE(2) /*!< Filter negedge detect enabled */
637#define LLWU_FILT2_FILTE_ANYEDGE LLWU_FILT2_FILTE(3) /*!< Filter any edge detect enabled */
638#define LLWU_FILT2_FILTSEL_SHIFT 0 /*!< Filter Pin Select (LLWU_P0 ... LLWU_P15) (shift) */
639#define LLWU_FILT2_FILTSEL_MASK ((uint8_t)((uint8_t)0x0F << LLWU_FILT2_FILTSEL_SHIFT)) /*!< Filter Pin Select (LLWU_P0 ... LLWU_P15) (mask) */
640#define LLWU_FILT2_FILTSEL(x) ((uint8_t)(((uint8_t)(x) << LLWU_FILT2_FILTSEL_SHIFT) & LLWU_FILT2_FILTSEL_MASK)) /*!< Filter Pin Select (LLWU_P0 ... LLWU_P15) */
641
642/****************************************************************/
643/* */
644/* Port Control and interrupts (PORT) */
645/* */
646/****************************************************************/
647/******** Bits definition for PORTx_PCRn register *************/
648#define PORTx_PCRn_ISF ((uint32_t)0x01000000) /*!< Interrupt Status Flag */
649#define PORTx_PCRn_IRQC_SHIFT 16
650#define PORTx_PCRn_IRQC_MASK ((uint32_t)((uint32_t)0xF << PORTx_PCRn_IRQC_SHIFT))
651#define PORTx_PCRn_IRQC(x) ((uint32_t)(((uint32_t)(x) << PORTx_PCRn_IRQC_SHIFT) & PORTx_PCRn_IRQC_MASK))
652#define PORTx_PCRn_LK ((uint32_t)0x00008000) /*!< Lock Register */
653#define PORTx_PCRn_MUX_SHIFT 8 /*!< Pin Mux Control (shift) */
654#define PORTx_PCRn_MUX_MASK ((uint32_t)((uint32_t)0x7 << PORTx_PCRn_MUX_SHIFT)) /*!< Pin Mux Control (mask) */
655#define PORTx_PCRn_MUX(x) ((uint32_t)(((uint32_t)(x) << PORTx_PCRn_MUX_SHIFT) & PORTx_PCRn_MUX_MASK)) /*!< Pin Mux Control */
656#define PORTx_PCRn_DSE ((uint32_t)0x00000040) /*!< Drive Strength Enable */
657#define PORTx_PCRn_ODE ((uint32_t)0x00000020) /*!< Open Drain Enable */
658#define PORTx_PCRn_PFE ((uint32_t)0x00000010) /*!< Passive Filter Enable */
659#define PORTx_PCRn_SRE ((uint32_t)0x00000004) /*!< Slew Rate Enable */
660#define PORTx_PCRn_PE ((uint32_t)0x00000002) /*!< Pull Enable */
661#define PORTx_PCRn_PS ((uint32_t)0x00000001) /*!< Pull Select */
662
663/****************************************************************/
664/* */
665/* Oscillator (OSC) */
666/* */
667/****************************************************************/
668/*********** Bits definition for OSC_CR register **************/
669#define OSC_CR_ERCLKEN ((uint8_t)0x80) /*!< External Reference Enable */
670#define OSC_CR_EREFSTEN ((uint8_t)0x20) /*!< External Reference Stop Enable */
671#define OSC_CR_SC2P ((uint8_t)0x08) /*!< Oscillator 2pF Capacitor Load Configure */
672#define OSC_CR_SC4P ((uint8_t)0x04) /*!< Oscillator 4pF Capacitor Load Configure */
673#define OSC_CR_SC8P ((uint8_t)0x02) /*!< Oscillator 8pF Capacitor Load Configure */
674#define OSC_CR_SC16P ((uint8_t)0x01) /*!< Oscillator 16pF Capacitor Load Configure */
675
676/****************************************************************/
677/* */
678/* Direct Memory Access (DMA) */
679/* */
680/****************************************************************/
681/* ----------------------------------------------------------------------------
682 -- DMA - Register accessor macros
683 ---------------------------------------------------------------------------- */
684
685/*!
686 * @addtogroup DMA_Register_Accessor_Macros DMA - Register accessor macros
687 * @{
688 */
689
690
691/* DMA - Register accessors */
692#define DMA_CR_REG(base) ((base)->CR)
693#define DMA_ES_REG(base) ((base)->ES)
694#define DMA_ERQ_REG(base) ((base)->ERQ)
695#define DMA_EEI_REG(base) ((base)->EEI)
696#define DMA_CEEI_REG(base) ((base)->CEEI)
697#define DMA_SEEI_REG(base) ((base)->SEEI)
698#define DMA_CERQ_REG(base) ((base)->CERQ)
699#define DMA_SERQ_REG(base) ((base)->SERQ)
700#define DMA_CDNE_REG(base) ((base)->CDNE)
701#define DMA_SSRT_REG(base) ((base)->SSRT)
702#define DMA_CERR_REG(base) ((base)->CERR)
703#define DMA_CINT_REG(base) ((base)->CINT)
704#define DMA_INT_REG(base) ((base)->INT)
705#define DMA_ERR_REG(base) ((base)->ERR)
706#define DMA_HRS_REG(base) ((base)->HRS)
707#define DMA_DCHPRI3_REG(base) ((base)->DCHPRI3)
708#define DMA_DCHPRI2_REG(base) ((base)->DCHPRI2)
709#define DMA_DCHPRI1_REG(base) ((base)->DCHPRI1)
710#define DMA_DCHPRI0_REG(base) ((base)->DCHPRI0)
711#define DMA_SADDR_REG(base,index) ((base)->TCD[index].SADDR)
712#define DMA_SOFF_REG(base,index) ((base)->TCD[index].SOFF)
713#define DMA_ATTR_REG(base,index) ((base)->TCD[index].ATTR)
714#define DMA_NBYTES_MLNO_REG(base,index) ((base)->TCD[index].NBYTES_MLNO)
715#define DMA_NBYTES_MLOFFNO_REG(base,index) ((base)->TCD[index].NBYTES_MLOFFNO)
716#define DMA_NBYTES_MLOFFYES_REG(base,index) ((base)->TCD[index].NBYTES_MLOFFYES)
717#define DMA_SLAST_REG(base,index) ((base)->TCD[index].SLAST)
718#define DMA_DADDR_REG(base,index) ((base)->TCD[index].DADDR)
719#define DMA_DOFF_REG(base,index) ((base)->TCD[index].DOFF)
720#define DMA_CITER_ELINKNO_REG(base,index) ((base)->TCD[index].CITER_ELINKNO)
721#define DMA_CITER_ELINKYES_REG(base,index) ((base)->TCD[index].CITER_ELINKYES)
722#define DMA_DLAST_SGA_REG(base,index) ((base)->TCD[index].DLAST_SGA)
723#define DMA_CSR_REG(base,index) ((base)->TCD[index].CSR)
724#define DMA_BITER_ELINKNO_REG(base,index) ((base)->TCD[index].BITER_ELINKNO)
725#define DMA_BITER_ELINKYES_REG(base,index) ((base)->TCD[index].BITER_ELINKYES)
726
727/*!
728 * @}
729 */ /* end of group DMA_Register_Accessor_Macros */
730
731
732/* ----------------------------------------------------------------------------
733 -- DMA Register Masks
734 ---------------------------------------------------------------------------- */
735
736/*!
737 * @addtogroup DMA_Register_Masks DMA Register Masks
738 * @{
739 */
740
741/* CR Bit Fields */
742#define DMA_CR_EDBG_MASK 0x2u
743#define DMA_CR_EDBG_SHIFT 1
744#define DMA_CR_ERCA_MASK 0x4u
745#define DMA_CR_ERCA_SHIFT 2
746#define DMA_CR_HOE_MASK 0x10u
747#define DMA_CR_HOE_SHIFT 4
748#define DMA_CR_HALT_MASK 0x20u
749#define DMA_CR_HALT_SHIFT 5
750#define DMA_CR_CLM_MASK 0x40u
751#define DMA_CR_CLM_SHIFT 6
752#define DMA_CR_EMLM_MASK 0x80u
753#define DMA_CR_EMLM_SHIFT 7
754#define DMA_CR_ECX_MASK 0x10000u
755#define DMA_CR_ECX_SHIFT 16
756#define DMA_CR_CX_MASK 0x20000u
757#define DMA_CR_CX_SHIFT 17
758/* ES Bit Fields */
759#define DMA_ES_DBE_MASK 0x1u
760#define DMA_ES_DBE_SHIFT 0
761#define DMA_ES_SBE_MASK 0x2u
762#define DMA_ES_SBE_SHIFT 1
763#define DMA_ES_SGE_MASK 0x4u
764#define DMA_ES_SGE_SHIFT 2
765#define DMA_ES_NCE_MASK 0x8u
766#define DMA_ES_NCE_SHIFT 3
767#define DMA_ES_DOE_MASK 0x10u
768#define DMA_ES_DOE_SHIFT 4
769#define DMA_ES_DAE_MASK 0x20u
770#define DMA_ES_DAE_SHIFT 5
771#define DMA_ES_SOE_MASK 0x40u
772#define DMA_ES_SOE_SHIFT 6
773#define DMA_ES_SAE_MASK 0x80u
774#define DMA_ES_SAE_SHIFT 7
775#define DMA_ES_ERRCHN_MASK 0xF00u
776#define DMA_ES_ERRCHN_SHIFT 8
777#define DMA_ES_ERRCHN(x) (((uint32_t)(((uint32_t)(x))<<DMA_ES_ERRCHN_SHIFT))&DMA_ES_ERRCHN_MASK)
778#define DMA_ES_CPE_MASK 0x4000u
779#define DMA_ES_CPE_SHIFT 14
780#define DMA_ES_ECX_MASK 0x10000u
781#define DMA_ES_ECX_SHIFT 16
782#define DMA_ES_VLD_MASK 0x80000000u
783#define DMA_ES_VLD_SHIFT 31
784/* ERQ Bit Fields */
785#define DMA_ERQ_ERQ0_MASK 0x1u
786#define DMA_ERQ_ERQ0_SHIFT 0
787#define DMA_ERQ_ERQ1_MASK 0x2u
788#define DMA_ERQ_ERQ1_SHIFT 1
789#define DMA_ERQ_ERQ2_MASK 0x4u
790#define DMA_ERQ_ERQ2_SHIFT 2
791#define DMA_ERQ_ERQ3_MASK 0x8u
792#define DMA_ERQ_ERQ3_SHIFT 3
793/* EEI Bit Fields */
794#define DMA_EEI_EEI0_MASK 0x1u
795#define DMA_EEI_EEI0_SHIFT 0
796#define DMA_EEI_EEI1_MASK 0x2u
797#define DMA_EEI_EEI1_SHIFT 1
798#define DMA_EEI_EEI2_MASK 0x4u
799#define DMA_EEI_EEI2_SHIFT 2
800#define DMA_EEI_EEI3_MASK 0x8u
801#define DMA_EEI_EEI3_SHIFT 3
802/* CEEI Bit Fields */
803#define DMA_CEEI_CEEI_MASK 0xFu
804#define DMA_CEEI_CEEI_SHIFT 0
805#define DMA_CEEI_CEEI(x) (((uint8_t)(((uint8_t)(x))<<DMA_CEEI_CEEI_SHIFT))&DMA_CEEI_CEEI_MASK)
806#define DMA_CEEI_CAEE_MASK 0x40u
807#define DMA_CEEI_CAEE_SHIFT 6
808#define DMA_CEEI_NOP_MASK 0x80u
809#define DMA_CEEI_NOP_SHIFT 7
810/* SEEI Bit Fields */
811#define DMA_SEEI_SEEI_MASK 0xFu
812#define DMA_SEEI_SEEI_SHIFT 0
813#define DMA_SEEI_SEEI(x) (((uint8_t)(((uint8_t)(x))<<DMA_SEEI_SEEI_SHIFT))&DMA_SEEI_SEEI_MASK)
814#define DMA_SEEI_SAEE_MASK 0x40u
815#define DMA_SEEI_SAEE_SHIFT 6
816#define DMA_SEEI_NOP_MASK 0x80u
817#define DMA_SEEI_NOP_SHIFT 7
818/* CERQ Bit Fields */
819#define DMA_CERQ_CERQ_MASK 0xFu
820#define DMA_CERQ_CERQ_SHIFT 0
821#define DMA_CERQ_CERQ(x) (((uint8_t)(((uint8_t)(x))<<DMA_CERQ_CERQ_SHIFT))&DMA_CERQ_CERQ_MASK)
822#define DMA_CERQ_CAER_MASK 0x40u
823#define DMA_CERQ_CAER_SHIFT 6
824#define DMA_CERQ_NOP_MASK 0x80u
825#define DMA_CERQ_NOP_SHIFT 7
826/* SERQ Bit Fields */
827#define DMA_SERQ_SERQ_MASK 0xFu
828#define DMA_SERQ_SERQ_SHIFT 0
829#define DMA_SERQ_SERQ(x) (((uint8_t)(((uint8_t)(x))<<DMA_SERQ_SERQ_SHIFT))&DMA_SERQ_SERQ_MASK)
830#define DMA_SERQ_SAER_MASK 0x40u
831#define DMA_SERQ_SAER_SHIFT 6
832#define DMA_SERQ_NOP_MASK 0x80u
833#define DMA_SERQ_NOP_SHIFT 7
834/* CDNE Bit Fields */
835#define DMA_CDNE_CDNE_MASK 0xFu
836#define DMA_CDNE_CDNE_SHIFT 0
837#define DMA_CDNE_CDNE(x) (((uint8_t)(((uint8_t)(x))<<DMA_CDNE_CDNE_SHIFT))&DMA_CDNE_CDNE_MASK)
838#define DMA_CDNE_CADN_MASK 0x40u
839#define DMA_CDNE_CADN_SHIFT 6
840#define DMA_CDNE_NOP_MASK 0x80u
841#define DMA_CDNE_NOP_SHIFT 7
842/* SSRT Bit Fields */
843#define DMA_SSRT_SSRT_MASK 0xFu
844#define DMA_SSRT_SSRT_SHIFT 0
845#define DMA_SSRT_SSRT(x) (((uint8_t)(((uint8_t)(x))<<DMA_SSRT_SSRT_SHIFT))&DMA_SSRT_SSRT_MASK)
846#define DMA_SSRT_SAST_MASK 0x40u
847#define DMA_SSRT_SAST_SHIFT 6
848#define DMA_SSRT_NOP_MASK 0x80u
849#define DMA_SSRT_NOP_SHIFT 7
850/* CERR Bit Fields */
851#define DMA_CERR_CERR_MASK 0xFu
852#define DMA_CERR_CERR_SHIFT 0
853#define DMA_CERR_CERR(x) (((uint8_t)(((uint8_t)(x))<<DMA_CERR_CERR_SHIFT))&DMA_CERR_CERR_MASK)
854#define DMA_CERR_CAEI_MASK 0x40u
855#define DMA_CERR_CAEI_SHIFT 6
856#define DMA_CERR_NOP_MASK 0x80u
857#define DMA_CERR_NOP_SHIFT 7
858/* CINT Bit Fields */
859#define DMA_CINT_CINT_MASK 0xFu
860#define DMA_CINT_CINT_SHIFT 0
861#define DMA_CINT_CINT(x) (((uint8_t)(((uint8_t)(x))<<DMA_CINT_CINT_SHIFT))&DMA_CINT_CINT_MASK)
862#define DMA_CINT_CAIR_MASK 0x40u
863#define DMA_CINT_CAIR_SHIFT 6
864#define DMA_CINT_NOP_MASK 0x80u
865#define DMA_CINT_NOP_SHIFT 7
866/* INT Bit Fields */
867#define DMA_INT_INT0_MASK 0x1u
868#define DMA_INT_INT0_SHIFT 0
869#define DMA_INT_INT1_MASK 0x2u
870#define DMA_INT_INT1_SHIFT 1
871#define DMA_INT_INT2_MASK 0x4u
872#define DMA_INT_INT2_SHIFT 2
873#define DMA_INT_INT3_MASK 0x8u
874#define DMA_INT_INT3_SHIFT 3
875/* ERR Bit Fields */
876#define DMA_ERR_ERR0_MASK 0x1u
877#define DMA_ERR_ERR0_SHIFT 0
878#define DMA_ERR_ERR1_MASK 0x2u
879#define DMA_ERR_ERR1_SHIFT 1
880#define DMA_ERR_ERR2_MASK 0x4u
881#define DMA_ERR_ERR2_SHIFT 2
882#define DMA_ERR_ERR3_MASK 0x8u
883#define DMA_ERR_ERR3_SHIFT 3
884/* HRS Bit Fields */
885#define DMA_HRS_HRS0_MASK 0x1u
886#define DMA_HRS_HRS0_SHIFT 0
887#define DMA_HRS_HRS1_MASK 0x2u
888#define DMA_HRS_HRS1_SHIFT 1
889#define DMA_HRS_HRS2_MASK 0x4u
890#define DMA_HRS_HRS2_SHIFT 2
891#define DMA_HRS_HRS3_MASK 0x8u
892#define DMA_HRS_HRS3_SHIFT 3
893/* DCHPRI3 Bit Fields */
894#define DMA_DCHPRI3_CHPRI_MASK 0xFu
895#define DMA_DCHPRI3_CHPRI_SHIFT 0
896#define DMA_DCHPRI3_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI3_CHPRI_SHIFT))&DMA_DCHPRI3_CHPRI_MASK)
897#define DMA_DCHPRI3_DPA_MASK 0x40u
898#define DMA_DCHPRI3_DPA_SHIFT 6
899#define DMA_DCHPRI3_ECP_MASK 0x80u
900#define DMA_DCHPRI3_ECP_SHIFT 7
901/* DCHPRI2 Bit Fields */
902#define DMA_DCHPRI2_CHPRI_MASK 0xFu
903#define DMA_DCHPRI2_CHPRI_SHIFT 0
904#define DMA_DCHPRI2_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI2_CHPRI_SHIFT))&DMA_DCHPRI2_CHPRI_MASK)
905#define DMA_DCHPRI2_DPA_MASK 0x40u
906#define DMA_DCHPRI2_DPA_SHIFT 6
907#define DMA_DCHPRI2_ECP_MASK 0x80u
908#define DMA_DCHPRI2_ECP_SHIFT 7
909/* DCHPRI1 Bit Fields */
910#define DMA_DCHPRI1_CHPRI_MASK 0xFu
911#define DMA_DCHPRI1_CHPRI_SHIFT 0
912#define DMA_DCHPRI1_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI1_CHPRI_SHIFT))&DMA_DCHPRI1_CHPRI_MASK)
913#define DMA_DCHPRI1_DPA_MASK 0x40u
914#define DMA_DCHPRI1_DPA_SHIFT 6
915#define DMA_DCHPRI1_ECP_MASK 0x80u
916#define DMA_DCHPRI1_ECP_SHIFT 7
917/* DCHPRI0 Bit Fields */
918#define DMA_DCHPRI0_CHPRI_MASK 0xFu
919#define DMA_DCHPRI0_CHPRI_SHIFT 0
920#define DMA_DCHPRI0_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI0_CHPRI_SHIFT))&DMA_DCHPRI0_CHPRI_MASK)
921#define DMA_DCHPRI0_DPA_MASK 0x40u
922#define DMA_DCHPRI0_DPA_SHIFT 6
923#define DMA_DCHPRI0_ECP_MASK 0x80u
924#define DMA_DCHPRI0_ECP_SHIFT 7
925/* SADDR Bit Fields */
926#define DMA_SADDR_SADDR_MASK 0xFFFFFFFFu
927#define DMA_SADDR_SADDR_SHIFT 0
928#define DMA_SADDR_SADDR(x) (((uint32_t)(((uint32_t)(x))<<DMA_SADDR_SADDR_SHIFT))&DMA_SADDR_SADDR_MASK)
929/* SOFF Bit Fields */
930#define DMA_SOFF_SOFF_MASK 0xFFFFu
931#define DMA_SOFF_SOFF_SHIFT 0
932#define DMA_SOFF_SOFF(x) (((uint16_t)(((uint16_t)(x))<<DMA_SOFF_SOFF_SHIFT))&DMA_SOFF_SOFF_MASK)
933/* ATTR Bit Fields */
934#define DMA_ATTR_DSIZE_MASK 0x7u
935#define DMA_ATTR_DSIZE_SHIFT 0
936#define DMA_ATTR_DSIZE(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_DSIZE_SHIFT))&DMA_ATTR_DSIZE_MASK)
937#define DMA_ATTR_DMOD_MASK 0xF8u
938#define DMA_ATTR_DMOD_SHIFT 3
939#define DMA_ATTR_DMOD(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_DMOD_SHIFT))&DMA_ATTR_DMOD_MASK)
940#define DMA_ATTR_SSIZE_MASK 0x700u
941#define DMA_ATTR_SSIZE_SHIFT 8
942#define DMA_ATTR_SSIZE(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_SSIZE_SHIFT))&DMA_ATTR_SSIZE_MASK)
943#define DMA_ATTR_SMOD_MASK 0xF800u
944#define DMA_ATTR_SMOD_SHIFT 11
945#define DMA_ATTR_SMOD(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_SMOD_SHIFT))&DMA_ATTR_SMOD_MASK)
946/* NBYTES_MLNO Bit Fields */
947#define DMA_NBYTES_MLNO_NBYTES_MASK 0xFFFFFFFFu
948#define DMA_NBYTES_MLNO_NBYTES_SHIFT 0
949#define DMA_NBYTES_MLNO_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLNO_NBYTES_SHIFT))&DMA_NBYTES_MLNO_NBYTES_MASK)
950/* NBYTES_MLOFFNO Bit Fields */
951#define DMA_NBYTES_MLOFFNO_NBYTES_MASK 0x3FFFFFFFu
952#define DMA_NBYTES_MLOFFNO_NBYTES_SHIFT 0
953#define DMA_NBYTES_MLOFFNO_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFNO_NBYTES_SHIFT))&DMA_NBYTES_MLOFFNO_NBYTES_MASK)
954#define DMA_NBYTES_MLOFFNO_DMLOE_MASK 0x40000000u
955#define DMA_NBYTES_MLOFFNO_DMLOE_SHIFT 30
956#define DMA_NBYTES_MLOFFNO_SMLOE_MASK 0x80000000u
957#define DMA_NBYTES_MLOFFNO_SMLOE_SHIFT 31
958/* NBYTES_MLOFFYES Bit Fields */
959#define DMA_NBYTES_MLOFFYES_NBYTES_MASK 0x3FFu
960#define DMA_NBYTES_MLOFFYES_NBYTES_SHIFT 0
961#define DMA_NBYTES_MLOFFYES_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFYES_NBYTES_SHIFT))&DMA_NBYTES_MLOFFYES_NBYTES_MASK)
962#define DMA_NBYTES_MLOFFYES_MLOFF_MASK 0x3FFFFC00u
963#define DMA_NBYTES_MLOFFYES_MLOFF_SHIFT 10
964#define DMA_NBYTES_MLOFFYES_MLOFF(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFYES_MLOFF_SHIFT))&DMA_NBYTES_MLOFFYES_MLOFF_MASK)
965#define DMA_NBYTES_MLOFFYES_DMLOE_MASK 0x40000000u
966#define DMA_NBYTES_MLOFFYES_DMLOE_SHIFT 30
967#define DMA_NBYTES_MLOFFYES_SMLOE_MASK 0x80000000u
968#define DMA_NBYTES_MLOFFYES_SMLOE_SHIFT 31
969/* SLAST Bit Fields */
970#define DMA_SLAST_SLAST_MASK 0xFFFFFFFFu
971#define DMA_SLAST_SLAST_SHIFT 0
972#define DMA_SLAST_SLAST(x) (((uint32_t)(((uint32_t)(x))<<DMA_SLAST_SLAST_SHIFT))&DMA_SLAST_SLAST_MASK)
973/* DADDR Bit Fields */
974#define DMA_DADDR_DADDR_MASK 0xFFFFFFFFu
975#define DMA_DADDR_DADDR_SHIFT 0
976#define DMA_DADDR_DADDR(x) (((uint32_t)(((uint32_t)(x))<<DMA_DADDR_DADDR_SHIFT))&DMA_DADDR_DADDR_MASK)
977/* DOFF Bit Fields */
978#define DMA_DOFF_DOFF_MASK 0xFFFFu
979#define DMA_DOFF_DOFF_SHIFT 0
980#define DMA_DOFF_DOFF(x) (((uint16_t)(((uint16_t)(x))<<DMA_DOFF_DOFF_SHIFT))&DMA_DOFF_DOFF_MASK)
981/* CITER_ELINKNO Bit Fields */
982#define DMA_CITER_ELINKNO_CITER_MASK 0x7FFFu
983#define DMA_CITER_ELINKNO_CITER_SHIFT 0
984#define DMA_CITER_ELINKNO_CITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKNO_CITER_SHIFT))&DMA_CITER_ELINKNO_CITER_MASK)
985#define DMA_CITER_ELINKNO_ELINK_MASK 0x8000u
986#define DMA_CITER_ELINKNO_ELINK_SHIFT 15
987/* CITER_ELINKYES Bit Fields */
988#define DMA_CITER_ELINKYES_CITER_MASK 0x1FFu
989#define DMA_CITER_ELINKYES_CITER_SHIFT 0
990#define DMA_CITER_ELINKYES_CITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKYES_CITER_SHIFT))&DMA_CITER_ELINKYES_CITER_MASK)
991#define DMA_CITER_ELINKYES_LINKCH_MASK 0x1E00u
992#define DMA_CITER_ELINKYES_LINKCH_SHIFT 9
993#define DMA_CITER_ELINKYES_LINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKYES_LINKCH_SHIFT))&DMA_CITER_ELINKYES_LINKCH_MASK)
994#define DMA_CITER_ELINKYES_ELINK_MASK 0x8000u
995#define DMA_CITER_ELINKYES_ELINK_SHIFT 15
996/* DLAST_SGA Bit Fields */
997#define DMA_DLAST_SGA_DLASTSGA_MASK 0xFFFFFFFFu
998#define DMA_DLAST_SGA_DLASTSGA_SHIFT 0
999#define DMA_DLAST_SGA_DLASTSGA(x) (((uint32_t)(((uint32_t)(x))<<DMA_DLAST_SGA_DLASTSGA_SHIFT))&DMA_DLAST_SGA_DLASTSGA_MASK)
1000/* CSR Bit Fields */
1001#define DMA_CSR_START_MASK 0x1u
1002#define DMA_CSR_START_SHIFT 0
1003#define DMA_CSR_INTMAJOR_MASK 0x2u
1004#define DMA_CSR_INTMAJOR_SHIFT 1
1005#define DMA_CSR_INTHALF_MASK 0x4u
1006#define DMA_CSR_INTHALF_SHIFT 2
1007#define DMA_CSR_DREQ_MASK 0x8u
1008#define DMA_CSR_DREQ_SHIFT 3
1009#define DMA_CSR_ESG_MASK 0x10u
1010#define DMA_CSR_ESG_SHIFT 4
1011#define DMA_CSR_MAJORELINK_MASK 0x20u
1012#define DMA_CSR_MAJORELINK_SHIFT 5
1013#define DMA_CSR_ACTIVE_MASK 0x40u
1014#define DMA_CSR_ACTIVE_SHIFT 6
1015#define DMA_CSR_DONE_MASK 0x80u
1016#define DMA_CSR_DONE_SHIFT 7
1017#define DMA_CSR_MAJORLINKCH_MASK 0xF00u
1018#define DMA_CSR_MAJORLINKCH_SHIFT 8
1019#define DMA_CSR_MAJORLINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_CSR_MAJORLINKCH_SHIFT))&DMA_CSR_MAJORLINKCH_MASK)
1020#define DMA_CSR_BWC_MASK 0xC000u
1021#define DMA_CSR_BWC_SHIFT 14
1022#define DMA_CSR_BWC(x) (((uint16_t)(((uint16_t)(x))<<DMA_CSR_BWC_SHIFT))&DMA_CSR_BWC_MASK)
1023/* BITER_ELINKNO Bit Fields */
1024#define DMA_BITER_ELINKNO_BITER_MASK 0x7FFFu
1025#define DMA_BITER_ELINKNO_BITER_SHIFT 0
1026#define DMA_BITER_ELINKNO_BITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKNO_BITER_SHIFT))&DMA_BITER_ELINKNO_BITER_MASK)
1027#define DMA_BITER_ELINKNO_ELINK_MASK 0x8000u
1028#define DMA_BITER_ELINKNO_ELINK_SHIFT 15
1029/* BITER_ELINKYES Bit Fields */
1030#define DMA_BITER_ELINKYES_BITER_MASK 0x1FFu
1031#define DMA_BITER_ELINKYES_BITER_SHIFT 0
1032#define DMA_BITER_ELINKYES_BITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKYES_BITER_SHIFT))&DMA_BITER_ELINKYES_BITER_MASK)
1033#define DMA_BITER_ELINKYES_LINKCH_MASK 0x1E00u
1034#define DMA_BITER_ELINKYES_LINKCH_SHIFT 9
1035#define DMA_BITER_ELINKYES_LINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKYES_LINKCH_SHIFT))&DMA_BITER_ELINKYES_LINKCH_MASK)
1036#define DMA_BITER_ELINKYES_ELINK_MASK 0x8000u
1037#define DMA_BITER_ELINKYES_ELINK_SHIFT 15
1038
1039/*!
1040 * @}
1041 */ /* end of group DMA_Register_Masks */
1042
1043
1044/* DMA - Peripheral instance base addresses */
1045/** Peripheral DMA base pointer */
1046#define DMA_BASE_PTR ((DMA_MemMapPtr)0x40008000u)
1047/** Array initializer of DMA peripheral base pointers */
1048#define DMA_BASE_PTRS { DMA_BASE_PTR }
1049
1050/* ----------------------------------------------------------------------------
1051 -- DMA - Register accessor macros
1052 ---------------------------------------------------------------------------- */
1053
1054/*!
1055 * @addtogroup DMA_Register_Accessor_Macros DMA - Register accessor macros
1056 * @{
1057 */
1058
1059
1060/* DMA - Register instance definitions */
1061/* DMA */
1062#define DMA_CR DMA_CR_REG(DMA_BASE_PTR)
1063#define DMA_ES DMA_ES_REG(DMA_BASE_PTR)
1064#define DMA_ERQ DMA_ERQ_REG(DMA_BASE_PTR)
1065#define DMA_EEI DMA_EEI_REG(DMA_BASE_PTR)
1066#define DMA_CEEI DMA_CEEI_REG(DMA_BASE_PTR)
1067#define DMA_SEEI DMA_SEEI_REG(DMA_BASE_PTR)
1068#define DMA_CERQ DMA_CERQ_REG(DMA_BASE_PTR)
1069#define DMA_SERQ DMA_SERQ_REG(DMA_BASE_PTR)
1070#define DMA_CDNE DMA_CDNE_REG(DMA_BASE_PTR)
1071#define DMA_SSRT DMA_SSRT_REG(DMA_BASE_PTR)
1072#define DMA_CERR DMA_CERR_REG(DMA_BASE_PTR)
1073#define DMA_CINT DMA_CINT_REG(DMA_BASE_PTR)
1074#define DMA_INT DMA_INT_REG(DMA_BASE_PTR)
1075#define DMA_ERR DMA_ERR_REG(DMA_BASE_PTR)
1076#define DMA_HRS DMA_HRS_REG(DMA_BASE_PTR)
1077#define DMA_DCHPRI3 DMA_DCHPRI3_REG(DMA_BASE_PTR)
1078#define DMA_DCHPRI2 DMA_DCHPRI2_REG(DMA_BASE_PTR)
1079#define DMA_DCHPRI1 DMA_DCHPRI1_REG(DMA_BASE_PTR)
1080#define DMA_DCHPRI0 DMA_DCHPRI0_REG(DMA_BASE_PTR)
1081#define DMA_TCD0_SADDR DMA_SADDR_REG(DMA_BASE_PTR,0)
1082#define DMA_TCD0_SOFF DMA_SOFF_REG(DMA_BASE_PTR,0)
1083#define DMA_TCD0_ATTR DMA_ATTR_REG(DMA_BASE_PTR,0)
1084#define DMA_TCD0_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA_BASE_PTR,0)
1085#define DMA_TCD0_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA_BASE_PTR,0)
1086#define DMA_TCD0_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA_BASE_PTR,0)
1087#define DMA_TCD0_SLAST DMA_SLAST_REG(DMA_BASE_PTR,0)
1088#define DMA_TCD0_DADDR DMA_DADDR_REG(DMA_BASE_PTR,0)
1089#define DMA_TCD0_DOFF DMA_DOFF_REG(DMA_BASE_PTR,0)
1090#define DMA_TCD0_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA_BASE_PTR,0)
1091#define DMA_TCD0_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA_BASE_PTR,0)
1092#define DMA_TCD0_DLASTSGA DMA_DLAST_SGA_REG(DMA_BASE_PTR,0)
1093#define DMA_TCD0_CSR DMA_CSR_REG(DMA_BASE_PTR,0)
1094#define DMA_TCD0_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA_BASE_PTR,0)
1095#define DMA_TCD0_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA_BASE_PTR,0)
1096#define DMA_TCD1_SADDR DMA_SADDR_REG(DMA_BASE_PTR,1)
1097#define DMA_TCD1_SOFF DMA_SOFF_REG(DMA_BASE_PTR,1)
1098#define DMA_TCD1_ATTR DMA_ATTR_REG(DMA_BASE_PTR,1)
1099#define DMA_TCD1_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA_BASE_PTR,1)
1100#define DMA_TCD1_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA_BASE_PTR,1)
1101#define DMA_TCD1_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA_BASE_PTR,1)
1102#define DMA_TCD1_SLAST DMA_SLAST_REG(DMA_BASE_PTR,1)
1103#define DMA_TCD1_DADDR DMA_DADDR_REG(DMA_BASE_PTR,1)
1104#define DMA_TCD1_DOFF DMA_DOFF_REG(DMA_BASE_PTR,1)
1105#define DMA_TCD1_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA_BASE_PTR,1)
1106#define DMA_TCD1_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA_BASE_PTR,1)
1107#define DMA_TCD1_DLASTSGA DMA_DLAST_SGA_REG(DMA_BASE_PTR,1)
1108#define DMA_TCD1_CSR DMA_CSR_REG(DMA_BASE_PTR,1)
1109#define DMA_TCD1_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA_BASE_PTR,1)
1110#define DMA_TCD1_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA_BASE_PTR,1)
1111#define DMA_TCD2_SADDR DMA_SADDR_REG(DMA_BASE_PTR,2)
1112#define DMA_TCD2_SOFF DMA_SOFF_REG(DMA_BASE_PTR,2)
1113#define DMA_TCD2_ATTR DMA_ATTR_REG(DMA_BASE_PTR,2)
1114#define DMA_TCD2_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA_BASE_PTR,2)
1115#define DMA_TCD2_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA_BASE_PTR,2)
1116#define DMA_TCD2_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA_BASE_PTR,2)
1117#define DMA_TCD2_SLAST DMA_SLAST_REG(DMA_BASE_PTR,2)
1118#define DMA_TCD2_DADDR DMA_DADDR_REG(DMA_BASE_PTR,2)
1119#define DMA_TCD2_DOFF DMA_DOFF_REG(DMA_BASE_PTR,2)
1120#define DMA_TCD2_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA_BASE_PTR,2)
1121#define DMA_TCD2_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA_BASE_PTR,2)
1122#define DMA_TCD2_DLASTSGA DMA_DLAST_SGA_REG(DMA_BASE_PTR,2)
1123#define DMA_TCD2_CSR DMA_CSR_REG(DMA_BASE_PTR,2)
1124#define DMA_TCD2_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA_BASE_PTR,2)
1125#define DMA_TCD2_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA_BASE_PTR,2)
1126#define DMA_TCD3_SADDR DMA_SADDR_REG(DMA_BASE_PTR,3)
1127#define DMA_TCD3_SOFF DMA_SOFF_REG(DMA_BASE_PTR,3)
1128#define DMA_TCD3_ATTR DMA_ATTR_REG(DMA_BASE_PTR,3)
1129#define DMA_TCD3_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA_BASE_PTR,3)
1130#define DMA_TCD3_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA_BASE_PTR,3)
1131#define DMA_TCD3_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA_BASE_PTR,3)
1132#define DMA_TCD3_SLAST DMA_SLAST_REG(DMA_BASE_PTR,3)
1133#define DMA_TCD3_DADDR DMA_DADDR_REG(DMA_BASE_PTR,3)
1134#define DMA_TCD3_DOFF DMA_DOFF_REG(DMA_BASE_PTR,3)
1135#define DMA_TCD3_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA_BASE_PTR,3)
1136#define DMA_TCD3_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA_BASE_PTR,3)
1137#define DMA_TCD3_DLASTSGA DMA_DLAST_SGA_REG(DMA_BASE_PTR,3)
1138#define DMA_TCD3_CSR DMA_CSR_REG(DMA_BASE_PTR,3)
1139#define DMA_TCD3_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA_BASE_PTR,3)
1140#define DMA_TCD3_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA_BASE_PTR,3)
1141
1142/* DMA - Register array accessors */
1143#define DMA_SADDR(index) DMA_SADDR_REG(DMA_BASE_PTR,index)
1144#define DMA_SOFF(index) DMA_SOFF_REG(DMA_BASE_PTR,index)
1145#define DMA_ATTR(index) DMA_ATTR_REG(DMA_BASE_PTR,index)
1146#define DMA_NBYTES_MLNO(index) DMA_NBYTES_MLNO_REG(DMA_BASE_PTR,index)
1147#define DMA_NBYTES_MLOFFNO(index) DMA_NBYTES_MLOFFNO_REG(DMA_BASE_PTR,index)
1148#define DMA_NBYTES_MLOFFYES(index) DMA_NBYTES_MLOFFYES_REG(DMA_BASE_PTR,index)
1149#define DMA_SLAST(index) DMA_SLAST_REG(DMA_BASE_PTR,index)
1150#define DMA_DADDR(index) DMA_DADDR_REG(DMA_BASE_PTR,index)
1151#define DMA_DOFF(index) DMA_DOFF_REG(DMA_BASE_PTR,index)
1152#define DMA_CITER_ELINKNO(index) DMA_CITER_ELINKNO_REG(DMA_BASE_PTR,index)
1153#define DMA_CITER_ELINKYES(index) DMA_CITER_ELINKYES_REG(DMA_BASE_PTR,index)
1154#define DMA_DLAST_SGA(index) DMA_DLAST_SGA_REG(DMA_BASE_PTR,index)
1155#define DMA_CSR(index) DMA_CSR_REG(DMA_BASE_PTR,index)
1156#define DMA_BITER_ELINKNO(index) DMA_BITER_ELINKNO_REG(DMA_BASE_PTR,index)
1157#define DMA_BITER_ELINKYES(index) DMA_BITER_ELINKYES_REG(DMA_BASE_PTR,index)
1158
1159/****************************************************************/
1160/* */
1161/* Direct Memory Access Multiplexer (DMAMUX) */
1162/* */
1163/****************************************************************/
1164/******** Bits definition for DMAMUX_CHCFGn register **********/
1165#define DMAMUX_CHCFGn_ENBL ((uint8_t)((uint8_t)1 << 7)) /*!< DMA Channel Enable */
1166#define DMAMUX_CHCFGn_TRIG ((uint8_t)((uint8_t)1 << 6)) /*!< DMA Channel Trigger Enable */
1167#define DMAMUX_CHCFGn_SOURCE_SHIFT 0 /*!< DMA Channel Source (Slot) (shift) */
1168#define DMAMUX_CHCFGn_SOURCE_MASK ((uint8_t)((uint8_t)0x3F << DMAMUX_CHCFGn_SOURCE_SHIFT)) /*!< DMA Channel Source (Slot) (mask) */
1169#define DMAMUX_CHCFGn_SOURCE(x) ((uint8_t)(((uint8_t)(x) << DMAMUX_CHCFGn_SOURCE_SHIFT) & DMAMUX_CHCFGn_SOURCE_MASK)) /*!< DMA Channel Source (Slot) */
1170
1171/****************************************************************/
1172/* */
1173/* FlexTimer Module (FTM) */
1174/* */
1175/****************************************************************/
1176
1177/* SC Bit Fields */
1178#define FTM_SC_PS_MASK 0x7u
1179#define FTM_SC_PS_SHIFT 0
1180#define FTM_SC_PS(x) (((uint32_t)(((uint32_t)(x))<<FTM_SC_PS_SHIFT))&FTM_SC_PS_MASK)
1181#define FTM_SC_CLKS_MASK 0x18u
1182#define FTM_SC_CLKS_SHIFT 3
1183#define FTM_SC_CLKS(x) (((uint32_t)(((uint32_t)(x))<<FTM_SC_CLKS_SHIFT))&FTM_SC_CLKS_MASK)
1184#define FTM_SC_CPWMS 0x20u
1185#define FTM_SC_TOIE 0x40u
1186#define FTM_SC_TOF 0x80u
1187/* CNT Bit Fields */
1188#define FTM_CNT_COUNT_MASK 0xFFFFu
1189#define FTM_CNT_COUNT_SHIFT 0
1190#define FTM_CNT_COUNT(x) (((uint32_t)(((uint32_t)(x))<<FTM_CNT_COUNT_SHIFT))&FTM_CNT_COUNT_MASK)
1191/* MOD Bit Fields */
1192#define FTM_MOD_MOD_MASK 0xFFFFu
1193#define FTM_MOD_MOD_SHIFT 0
1194#define FTM_MOD_MOD(x) (((uint32_t)(((uint32_t)(x))<<FTM_MOD_MOD_SHIFT))&FTM_MOD_MOD_MASK)
1195/* CnSC Bit Fields */
1196#define FTM_CnSC_DMA 0x1u
1197#define FTM_CnSC_ELSA 0x4u
1198#define FTM_CnSC_ELSB 0x8u
1199#define FTM_CnSC_MSA 0x10u
1200#define FTM_CnSC_MSB 0x20u
1201#define FTM_CnSC_CHIE 0x40u
1202#define FTM_CnSC_CHF 0x80u
1203/* CnV Bit Fields */
1204#define FTM_CnV_VAL_MASK 0xFFFFu
1205#define FTM_CnV_VAL_SHIFT 0
1206#define FTM_CnV_VAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_CnV_VAL_SHIFT))&FTM_CnV_VAL_MASK)
1207/* CNTIN Bit Fields */
1208#define FTM_CNTIN_INIT_MASK 0xFFFFu
1209#define FTM_CNTIN_INIT_SHIFT 0
1210#define FTM_CNTIN_INIT(x) (((uint32_t)(((uint32_t)(x))<<FTM_CNTIN_INIT_SHIFT))&FTM_CNTIN_INIT_MASK)
1211/* STATUS Bit Fields */
1212#define FTM_STATUS_CH0F_MASK 0x1u
1213#define FTM_STATUS_CH0F_SHIFT 0
1214#define FTM_STATUS_CH1F_MASK 0x2u
1215#define FTM_STATUS_CH1F_SHIFT 1
1216#define FTM_STATUS_CH2F_MASK 0x4u
1217#define FTM_STATUS_CH2F_SHIFT 2
1218#define FTM_STATUS_CH3F_MASK 0x8u
1219#define FTM_STATUS_CH3F_SHIFT 3
1220#define FTM_STATUS_CH4F_MASK 0x10u
1221#define FTM_STATUS_CH4F_SHIFT 4
1222#define FTM_STATUS_CH5F_MASK 0x20u
1223#define FTM_STATUS_CH5F_SHIFT 5
1224#define FTM_STATUS_CH6F_MASK 0x40u
1225#define FTM_STATUS_CH6F_SHIFT 6
1226#define FTM_STATUS_CH7F_MASK 0x80u
1227#define FTM_STATUS_CH7F_SHIFT 7
1228/* MODE Bit Fields */
1229#define FTM_MODE_FTMEN_MASK 0x1u
1230#define FTM_MODE_FTMEN_SHIFT 0
1231#define FTM_MODE_INIT_MASK 0x2u
1232#define FTM_MODE_INIT_SHIFT 1
1233#define FTM_MODE_WPDIS_MASK 0x4u
1234#define FTM_MODE_WPDIS_SHIFT 2
1235#define FTM_MODE_PWMSYNC_MASK 0x8u
1236#define FTM_MODE_PWMSYNC_SHIFT 3
1237#define FTM_MODE_CAPTEST_MASK 0x10u
1238#define FTM_MODE_CAPTEST_SHIFT 4
1239#define FTM_MODE_FAULTM_MASK 0x60u
1240#define FTM_MODE_FAULTM_SHIFT 5
1241#define FTM_MODE_FAULTM(x) (((uint32_t)(((uint32_t)(x))<<FTM_MODE_FAULTM_SHIFT))&FTM_MODE_FAULTM_MASK)
1242#define FTM_MODE_FAULTIE_MASK 0x80u
1243#define FTM_MODE_FAULTIE_SHIFT 7
1244/* SYNC Bit Fields */
1245#define FTM_SYNC_CNTMIN_MASK 0x1u
1246#define FTM_SYNC_CNTMIN_SHIFT 0
1247#define FTM_SYNC_CNTMAX_MASK 0x2u
1248#define FTM_SYNC_CNTMAX_SHIFT 1
1249#define FTM_SYNC_REINIT_MASK 0x4u
1250#define FTM_SYNC_REINIT_SHIFT 2
1251#define FTM_SYNC_SYNCHOM_MASK 0x8u
1252#define FTM_SYNC_SYNCHOM_SHIFT 3
1253#define FTM_SYNC_TRIG0_MASK 0x10u
1254#define FTM_SYNC_TRIG0_SHIFT 4
1255#define FTM_SYNC_TRIG1_MASK 0x20u
1256#define FTM_SYNC_TRIG1_SHIFT 5
1257#define FTM_SYNC_TRIG2_MASK 0x40u
1258#define FTM_SYNC_TRIG2_SHIFT 6
1259#define FTM_SYNC_SWSYNC_MASK 0x80u
1260#define FTM_SYNC_SWSYNC_SHIFT 7
1261/* OUTINIT Bit Fields */
1262#define FTM_OUTINIT_CH0OI_MASK 0x1u
1263#define FTM_OUTINIT_CH0OI_SHIFT 0
1264#define FTM_OUTINIT_CH1OI_MASK 0x2u
1265#define FTM_OUTINIT_CH1OI_SHIFT 1
1266#define FTM_OUTINIT_CH2OI_MASK 0x4u
1267#define FTM_OUTINIT_CH2OI_SHIFT 2
1268#define FTM_OUTINIT_CH3OI_MASK 0x8u
1269#define FTM_OUTINIT_CH3OI_SHIFT 3
1270#define FTM_OUTINIT_CH4OI_MASK 0x10u
1271#define FTM_OUTINIT_CH4OI_SHIFT 4
1272#define FTM_OUTINIT_CH5OI_MASK 0x20u
1273#define FTM_OUTINIT_CH5OI_SHIFT 5
1274#define FTM_OUTINIT_CH6OI_MASK 0x40u
1275#define FTM_OUTINIT_CH6OI_SHIFT 6
1276#define FTM_OUTINIT_CH7OI_MASK 0x80u
1277#define FTM_OUTINIT_CH7OI_SHIFT 7
1278/* OUTMASK Bit Fields */
1279#define FTM_OUTMASK_CH0OM_MASK 0x1u
1280#define FTM_OUTMASK_CH0OM_SHIFT 0
1281#define FTM_OUTMASK_CH1OM_MASK 0x2u
1282#define FTM_OUTMASK_CH1OM_SHIFT 1
1283#define FTM_OUTMASK_CH2OM_MASK 0x4u
1284#define FTM_OUTMASK_CH2OM_SHIFT 2
1285#define FTM_OUTMASK_CH3OM_MASK 0x8u
1286#define FTM_OUTMASK_CH3OM_SHIFT 3
1287#define FTM_OUTMASK_CH4OM_MASK 0x10u
1288#define FTM_OUTMASK_CH4OM_SHIFT 4
1289#define FTM_OUTMASK_CH5OM_MASK 0x20u
1290#define FTM_OUTMASK_CH5OM_SHIFT 5
1291#define FTM_OUTMASK_CH6OM_MASK 0x40u
1292#define FTM_OUTMASK_CH6OM_SHIFT 6
1293#define FTM_OUTMASK_CH7OM_MASK 0x80u
1294#define FTM_OUTMASK_CH7OM_SHIFT 7
1295/* COMBINE Bit Fields */
1296#define FTM_COMBINE_COMBINE0_MASK 0x1u
1297#define FTM_COMBINE_COMBINE0_SHIFT 0
1298#define FTM_COMBINE_COMP0_MASK 0x2u
1299#define FTM_COMBINE_COMP0_SHIFT 1
1300#define FTM_COMBINE_DECAPEN0_MASK 0x4u
1301#define FTM_COMBINE_DECAPEN0_SHIFT 2
1302#define FTM_COMBINE_DECAP0_MASK 0x8u
1303#define FTM_COMBINE_DECAP0_SHIFT 3
1304#define FTM_COMBINE_DTEN0_MASK 0x10u
1305#define FTM_COMBINE_DTEN0_SHIFT 4
1306#define FTM_COMBINE_SYNCEN0_MASK 0x20u
1307#define FTM_COMBINE_SYNCEN0_SHIFT 5
1308#define FTM_COMBINE_FAULTEN0_MASK 0x40u
1309#define FTM_COMBINE_FAULTEN0_SHIFT 6
1310#define FTM_COMBINE_COMBINE1_MASK 0x100u
1311#define FTM_COMBINE_COMBINE1_SHIFT 8
1312#define FTM_COMBINE_COMP1_MASK 0x200u
1313#define FTM_COMBINE_COMP1_SHIFT 9
1314#define FTM_COMBINE_DECAPEN1_MASK 0x400u
1315#define FTM_COMBINE_DECAPEN1_SHIFT 10
1316#define FTM_COMBINE_DECAP1_MASK 0x800u
1317#define FTM_COMBINE_DECAP1_SHIFT 11
1318#define FTM_COMBINE_DTEN1_MASK 0x1000u
1319#define FTM_COMBINE_DTEN1_SHIFT 12
1320#define FTM_COMBINE_SYNCEN1_MASK 0x2000u
1321#define FTM_COMBINE_SYNCEN1_SHIFT 13
1322#define FTM_COMBINE_FAULTEN1_MASK 0x4000u
1323#define FTM_COMBINE_FAULTEN1_SHIFT 14
1324#define FTM_COMBINE_COMBINE2_MASK 0x10000u
1325#define FTM_COMBINE_COMBINE2_SHIFT 16
1326#define FTM_COMBINE_COMP2_MASK 0x20000u
1327#define FTM_COMBINE_COMP2_SHIFT 17
1328#define FTM_COMBINE_DECAPEN2_MASK 0x40000u
1329#define FTM_COMBINE_DECAPEN2_SHIFT 18
1330#define FTM_COMBINE_DECAP2_MASK 0x80000u
1331#define FTM_COMBINE_DECAP2_SHIFT 19
1332#define FTM_COMBINE_DTEN2_MASK 0x100000u
1333#define FTM_COMBINE_DTEN2_SHIFT 20
1334#define FTM_COMBINE_SYNCEN2_MASK 0x200000u
1335#define FTM_COMBINE_SYNCEN2_SHIFT 21
1336#define FTM_COMBINE_FAULTEN2_MASK 0x400000u
1337#define FTM_COMBINE_FAULTEN2_SHIFT 22
1338#define FTM_COMBINE_COMBINE3_MASK 0x1000000u
1339#define FTM_COMBINE_COMBINE3_SHIFT 24
1340#define FTM_COMBINE_COMP3_MASK 0x2000000u
1341#define FTM_COMBINE_COMP3_SHIFT 25
1342#define FTM_COMBINE_DECAPEN3_MASK 0x4000000u
1343#define FTM_COMBINE_DECAPEN3_SHIFT 26
1344#define FTM_COMBINE_DECAP3_MASK 0x8000000u
1345#define FTM_COMBINE_DECAP3_SHIFT 27
1346#define FTM_COMBINE_DTEN3_MASK 0x10000000u
1347#define FTM_COMBINE_DTEN3_SHIFT 28
1348#define FTM_COMBINE_SYNCEN3_MASK 0x20000000u
1349#define FTM_COMBINE_SYNCEN3_SHIFT 29
1350#define FTM_COMBINE_FAULTEN3_MASK 0x40000000u
1351#define FTM_COMBINE_FAULTEN3_SHIFT 30
1352/* DEADTIME Bit Fields */
1353#define FTM_DEADTIME_DTVAL_MASK 0x3Fu
1354#define FTM_DEADTIME_DTVAL_SHIFT 0
1355#define FTM_DEADTIME_DTVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_DEADTIME_DTVAL_SHIFT))&FTM_DEADTIME_DTVAL_MASK)
1356#define FTM_DEADTIME_DTPS_MASK 0xC0u
1357#define FTM_DEADTIME_DTPS_SHIFT 6
1358#define FTM_DEADTIME_DTPS(x) (((uint32_t)(((uint32_t)(x))<<FTM_DEADTIME_DTPS_SHIFT))&FTM_DEADTIME_DTPS_MASK)
1359/* EXTTRIG Bit Fields */
1360#define FTM_EXTTRIG_CH2TRIG_MASK 0x1u
1361#define FTM_EXTTRIG_CH2TRIG_SHIFT 0
1362#define FTM_EXTTRIG_CH3TRIG_MASK 0x2u
1363#define FTM_EXTTRIG_CH3TRIG_SHIFT 1
1364#define FTM_EXTTRIG_CH4TRIG_MASK 0x4u
1365#define FTM_EXTTRIG_CH4TRIG_SHIFT 2
1366#define FTM_EXTTRIG_CH5TRIG_MASK 0x8u
1367#define FTM_EXTTRIG_CH5TRIG_SHIFT 3
1368#define FTM_EXTTRIG_CH0TRIG_MASK 0x10u
1369#define FTM_EXTTRIG_CH0TRIG_SHIFT 4
1370#define FTM_EXTTRIG_CH1TRIG_MASK 0x20u
1371#define FTM_EXTTRIG_CH1TRIG_SHIFT 5
1372#define FTM_EXTTRIG_INITTRIGEN_MASK 0x40u
1373#define FTM_EXTTRIG_INITTRIGEN_SHIFT 6
1374#define FTM_EXTTRIG_TRIGF_MASK 0x80u
1375#define FTM_EXTTRIG_TRIGF_SHIFT 7
1376/* POL Bit Fields */
1377#define FTM_POL_POL0_MASK 0x1u
1378#define FTM_POL_POL0_SHIFT 0
1379#define FTM_POL_POL1_MASK 0x2u
1380#define FTM_POL_POL1_SHIFT 1
1381#define FTM_POL_POL2_MASK 0x4u
1382#define FTM_POL_POL2_SHIFT 2
1383#define FTM_POL_POL3_MASK 0x8u
1384#define FTM_POL_POL3_SHIFT 3
1385#define FTM_POL_POL4_MASK 0x10u
1386#define FTM_POL_POL4_SHIFT 4
1387#define FTM_POL_POL5_MASK 0x20u
1388#define FTM_POL_POL5_SHIFT 5
1389#define FTM_POL_POL6_MASK 0x40u
1390#define FTM_POL_POL6_SHIFT 6
1391#define FTM_POL_POL7_MASK 0x80u
1392#define FTM_POL_POL7_SHIFT 7
1393/* FMS Bit Fields */
1394#define FTM_FMS_FAULTF0_MASK 0x1u
1395#define FTM_FMS_FAULTF0_SHIFT 0
1396#define FTM_FMS_FAULTF1_MASK 0x2u
1397#define FTM_FMS_FAULTF1_SHIFT 1
1398#define FTM_FMS_FAULTF2_MASK 0x4u
1399#define FTM_FMS_FAULTF2_SHIFT 2
1400#define FTM_FMS_FAULTF3_MASK 0x8u
1401#define FTM_FMS_FAULTF3_SHIFT 3
1402#define FTM_FMS_FAULTIN_MASK 0x20u
1403#define FTM_FMS_FAULTIN_SHIFT 5
1404#define FTM_FMS_WPEN_MASK 0x40u
1405#define FTM_FMS_WPEN_SHIFT 6
1406#define FTM_FMS_FAULTF_MASK 0x80u
1407#define FTM_FMS_FAULTF_SHIFT 7
1408/* FILTER Bit Fields */
1409#define FTM_FILTER_CH0FVAL_MASK 0xFu
1410#define FTM_FILTER_CH0FVAL_SHIFT 0
1411#define FTM_FILTER_CH0FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH0FVAL_SHIFT))&FTM_FILTER_CH0FVAL_MASK)
1412#define FTM_FILTER_CH1FVAL_MASK 0xF0u
1413#define FTM_FILTER_CH1FVAL_SHIFT 4
1414#define FTM_FILTER_CH1FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH1FVAL_SHIFT))&FTM_FILTER_CH1FVAL_MASK)
1415#define FTM_FILTER_CH2FVAL_MASK 0xF00u
1416#define FTM_FILTER_CH2FVAL_SHIFT 8
1417#define FTM_FILTER_CH2FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH2FVAL_SHIFT))&FTM_FILTER_CH2FVAL_MASK)
1418#define FTM_FILTER_CH3FVAL_MASK 0xF000u
1419#define FTM_FILTER_CH3FVAL_SHIFT 12
1420#define FTM_FILTER_CH3FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH3FVAL_SHIFT))&FTM_FILTER_CH3FVAL_MASK)
1421/* FLTCTRL Bit Fields */
1422#define FTM_FLTCTRL_FAULT0EN_MASK 0x1u
1423#define FTM_FLTCTRL_FAULT0EN_SHIFT 0
1424#define FTM_FLTCTRL_FAULT1EN_MASK 0x2u
1425#define FTM_FLTCTRL_FAULT1EN_SHIFT 1
1426#define FTM_FLTCTRL_FAULT2EN_MASK 0x4u
1427#define FTM_FLTCTRL_FAULT2EN_SHIFT 2
1428#define FTM_FLTCTRL_FAULT3EN_MASK 0x8u
1429#define FTM_FLTCTRL_FAULT3EN_SHIFT 3
1430#define FTM_FLTCTRL_FFLTR0EN_MASK 0x10u
1431#define FTM_FLTCTRL_FFLTR0EN_SHIFT 4
1432#define FTM_FLTCTRL_FFLTR1EN_MASK 0x20u
1433#define FTM_FLTCTRL_FFLTR1EN_SHIFT 5
1434#define FTM_FLTCTRL_FFLTR2EN_MASK 0x40u
1435#define FTM_FLTCTRL_FFLTR2EN_SHIFT 6
1436#define FTM_FLTCTRL_FFLTR3EN_MASK 0x80u
1437#define FTM_FLTCTRL_FFLTR3EN_SHIFT 7
1438#define FTM_FLTCTRL_FFVAL_MASK 0xF00u
1439#define FTM_FLTCTRL_FFVAL_SHIFT 8
1440#define FTM_FLTCTRL_FFVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FLTCTRL_FFVAL_SHIFT))&FTM_FLTCTRL_FFVAL_MASK)
1441/* QDCTRL Bit Fields */
1442#define FTM_QDCTRL_QUADEN_MASK 0x1u
1443#define FTM_QDCTRL_QUADEN_SHIFT 0
1444#define FTM_QDCTRL_TOFDIR_MASK 0x2u
1445#define FTM_QDCTRL_TOFDIR_SHIFT 1
1446#define FTM_QDCTRL_QUADIR_MASK 0x4u
1447#define FTM_QDCTRL_QUADIR_SHIFT 2
1448#define FTM_QDCTRL_QUADMODE_MASK 0x8u
1449#define FTM_QDCTRL_QUADMODE_SHIFT 3
1450#define FTM_QDCTRL_PHBPOL_MASK 0x10u
1451#define FTM_QDCTRL_PHBPOL_SHIFT 4
1452#define FTM_QDCTRL_PHAPOL_MASK 0x20u
1453#define FTM_QDCTRL_PHAPOL_SHIFT 5
1454#define FTM_QDCTRL_PHBFLTREN_MASK 0x40u
1455#define FTM_QDCTRL_PHBFLTREN_SHIFT 6
1456#define FTM_QDCTRL_PHAFLTREN_MASK 0x80u
1457#define FTM_QDCTRL_PHAFLTREN_SHIFT 7
1458/* CONF Bit Fields */
1459#define FTM_CONF_NUMTOF_MASK 0x1Fu
1460#define FTM_CONF_NUMTOF_SHIFT 0
1461#define FTM_CONF_NUMTOF(x) (((uint32_t)(((uint32_t)(x))<<FTM_CONF_NUMTOF_SHIFT))&FTM_CONF_NUMTOF_MASK)
1462#define FTM_CONF_BDMMODE_MASK 0xC0u
1463#define FTM_CONF_BDMMODE_SHIFT 6
1464#define FTM_CONF_BDMMODE(x) (((uint32_t)(((uint32_t)(x))<<FTM_CONF_BDMMODE_SHIFT))&FTM_CONF_BDMMODE_MASK)
1465#define FTM_CONF_GTBEEN_MASK 0x200u
1466#define FTM_CONF_GTBEEN_SHIFT 9
1467#define FTM_CONF_GTBEOUT_MASK 0x400u
1468#define FTM_CONF_GTBEOUT_SHIFT 10
1469/* FLTPOL Bit Fields */
1470#define FTM_FLTPOL_FLT0POL_MASK 0x1u
1471#define FTM_FLTPOL_FLT0POL_SHIFT 0
1472#define FTM_FLTPOL_FLT1POL_MASK 0x2u
1473#define FTM_FLTPOL_FLT1POL_SHIFT 1
1474#define FTM_FLTPOL_FLT2POL_MASK 0x4u
1475#define FTM_FLTPOL_FLT2POL_SHIFT 2
1476#define FTM_FLTPOL_FLT3POL_MASK 0x8u
1477#define FTM_FLTPOL_FLT3POL_SHIFT 3
1478/* SYNCONF Bit Fields */
1479#define FTM_SYNCONF_HWTRIGMODE_MASK 0x1u
1480#define FTM_SYNCONF_HWTRIGMODE_SHIFT 0
1481#define FTM_SYNCONF_CNTINC_MASK 0x4u
1482#define FTM_SYNCONF_CNTINC_SHIFT 2
1483#define FTM_SYNCONF_INVC_MASK 0x10u
1484#define FTM_SYNCONF_INVC_SHIFT 4
1485#define FTM_SYNCONF_SWOC_MASK 0x20u
1486#define FTM_SYNCONF_SWOC_SHIFT 5
1487#define FTM_SYNCONF_SYNCMODE_MASK 0x80u
1488#define FTM_SYNCONF_SYNCMODE_SHIFT 7
1489#define FTM_SYNCONF_SWRSTCNT_MASK 0x100u
1490#define FTM_SYNCONF_SWRSTCNT_SHIFT 8
1491#define FTM_SYNCONF_SWWRBUF_MASK 0x200u
1492#define FTM_SYNCONF_SWWRBUF_SHIFT 9
1493#define FTM_SYNCONF_SWOM_MASK 0x400u
1494#define FTM_SYNCONF_SWOM_SHIFT 10
1495#define FTM_SYNCONF_SWINVC_MASK 0x800u
1496#define FTM_SYNCONF_SWINVC_SHIFT 11
1497#define FTM_SYNCONF_SWSOC_MASK 0x1000u
1498#define FTM_SYNCONF_SWSOC_SHIFT 12
1499#define FTM_SYNCONF_HWRSTCNT_MASK 0x10000u
1500#define FTM_SYNCONF_HWRSTCNT_SHIFT 16
1501#define FTM_SYNCONF_HWWRBUF_MASK 0x20000u
1502#define FTM_SYNCONF_HWWRBUF_SHIFT 17
1503#define FTM_SYNCONF_HWOM_MASK 0x40000u
1504#define FTM_SYNCONF_HWOM_SHIFT 18
1505#define FTM_SYNCONF_HWINVC_MASK 0x80000u
1506#define FTM_SYNCONF_HWINVC_SHIFT 19
1507#define FTM_SYNCONF_HWSOC_MASK 0x100000u
1508#define FTM_SYNCONF_HWSOC_SHIFT 20
1509/* INVCTRL Bit Fields */
1510#define FTM_INVCTRL_INV0EN_MASK 0x1u
1511#define FTM_INVCTRL_INV0EN_SHIFT 0
1512#define FTM_INVCTRL_INV1EN_MASK 0x2u
1513#define FTM_INVCTRL_INV1EN_SHIFT 1
1514#define FTM_INVCTRL_INV2EN_MASK 0x4u
1515#define FTM_INVCTRL_INV2EN_SHIFT 2
1516#define FTM_INVCTRL_INV3EN_MASK 0x8u
1517#define FTM_INVCTRL_INV3EN_SHIFT 3
1518/* SWOCTRL Bit Fields */
1519#define FTM_SWOCTRL_CH0OC_MASK 0x1u
1520#define FTM_SWOCTRL_CH0OC_SHIFT 0
1521#define FTM_SWOCTRL_CH1OC_MASK 0x2u
1522#define FTM_SWOCTRL_CH1OC_SHIFT 1
1523#define FTM_SWOCTRL_CH2OC_MASK 0x4u
1524#define FTM_SWOCTRL_CH2OC_SHIFT 2
1525#define FTM_SWOCTRL_CH3OC_MASK 0x8u
1526#define FTM_SWOCTRL_CH3OC_SHIFT 3
1527#define FTM_SWOCTRL_CH4OC_MASK 0x10u
1528#define FTM_SWOCTRL_CH4OC_SHIFT 4
1529#define FTM_SWOCTRL_CH5OC_MASK 0x20u
1530#define FTM_SWOCTRL_CH5OC_SHIFT 5
1531#define FTM_SWOCTRL_CH6OC_MASK 0x40u
1532#define FTM_SWOCTRL_CH6OC_SHIFT 6
1533#define FTM_SWOCTRL_CH7OC_MASK 0x80u
1534#define FTM_SWOCTRL_CH7OC_SHIFT 7
1535#define FTM_SWOCTRL_CH0OCV_MASK 0x100u
1536#define FTM_SWOCTRL_CH0OCV_SHIFT 8
1537#define FTM_SWOCTRL_CH1OCV_MASK 0x200u
1538#define FTM_SWOCTRL_CH1OCV_SHIFT 9
1539#define FTM_SWOCTRL_CH2OCV_MASK 0x400u
1540#define FTM_SWOCTRL_CH2OCV_SHIFT 10
1541#define FTM_SWOCTRL_CH3OCV_MASK 0x800u
1542#define FTM_SWOCTRL_CH3OCV_SHIFT 11
1543#define FTM_SWOCTRL_CH4OCV_MASK 0x1000u
1544#define FTM_SWOCTRL_CH4OCV_SHIFT 12
1545#define FTM_SWOCTRL_CH5OCV_MASK 0x2000u
1546#define FTM_SWOCTRL_CH5OCV_SHIFT 13
1547#define FTM_SWOCTRL_CH6OCV_MASK 0x4000u
1548#define FTM_SWOCTRL_CH6OCV_SHIFT 14
1549#define FTM_SWOCTRL_CH7OCV_MASK 0x8000u
1550#define FTM_SWOCTRL_CH7OCV_SHIFT 15
1551/* PWMLOAD Bit Fields */
1552#define FTM_PWMLOAD_CH0SEL_MASK 0x1u
1553#define FTM_PWMLOAD_CH0SEL_SHIFT 0
1554#define FTM_PWMLOAD_CH1SEL_MASK 0x2u
1555#define FTM_PWMLOAD_CH1SEL_SHIFT 1
1556#define FTM_PWMLOAD_CH2SEL_MASK 0x4u
1557#define FTM_PWMLOAD_CH2SEL_SHIFT 2
1558#define FTM_PWMLOAD_CH3SEL_MASK 0x8u
1559#define FTM_PWMLOAD_CH3SEL_SHIFT 3
1560#define FTM_PWMLOAD_CH4SEL_MASK 0x10u
1561#define FTM_PWMLOAD_CH4SEL_SHIFT 4
1562#define FTM_PWMLOAD_CH5SEL_MASK 0x20u
1563#define FTM_PWMLOAD_CH5SEL_SHIFT 5
1564#define FTM_PWMLOAD_CH6SEL_MASK 0x40u
1565#define FTM_PWMLOAD_CH6SEL_SHIFT 6
1566#define FTM_PWMLOAD_CH7SEL_MASK 0x80u
1567#define FTM_PWMLOAD_CH7SEL_SHIFT 7
1568#define FTM_PWMLOAD_LDOK_MASK 0x200u
1569#define FTM_PWMLOAD_LDOK_SHIFT 9
1570
1571/****************************************************************/
1572/* */
1573/* Periodic Interrupt Timer (PIT) */
1574/* */
1575/****************************************************************/
1576/* MCR Bit Fields */
1577#define PIT_MCR_FRZ 0x1u
1578#define PIT_MCR_MDIS 0x2u
1579/* LDVALn Bit Fields */
1580#define PIT_LDVALn_TSV_MASK 0xFFFFFFFFu
1581#define PIT_LDVALn_TSV_SHIFT 0
1582#define PIT_LDVALn_TSV(x) (((uint32_t)(((uint32_t)(x))<<PIT_LDVAL_TSV_SHIFT))&PIT_LDVAL_TSV_MASK)
1583/* CVALn Bit Fields */
1584#define PIT_CVALn_TVL_MASK 0xFFFFFFFFu
1585#define PIT_CVALn_TVL_SHIFT 0
1586#define PIT_CVALn_TVL(x) (((uint32_t)(((uint32_t)(x))<<PIT_CVAL_TVL_SHIFT))&PIT_CVAL_TVL_MASK)
1587/* TCTRLn Bit Fields */
1588#define PIT_TCTRLn_TEN 0x1u
1589#define PIT_TCTRLn_TIE 0x2u
1590/* TFLGn Bit Fields */
1591#define PIT_TFLGn_TIF 0x1u
1592
1593/****************************************************************/
1594/* */
1595/* Analog-to-Digital Converter (ADC) */
1596/* */
1597/****************************************************************/
1598/*********** Bits definition for ADCx_SC1n register ***********/
1599#define ADCx_SC1n_COCO ((uint32_t)((uint32_t)1 << 7)) /*!< Conversion Complete Flag */
1600#define ADCx_SC1n_AIEN ((uint32_t)((uint32_t)1 << 6)) /*!< Interrupt Enable */
1601#define ADCx_SC1n_DIFF ((uint32_t)((uint32_t)1 << 5)) /*!< Differential Mode Enable */
1602#define ADCx_SC1n_ADCH_SHIFT 0 /*!< Input channel select (shift) */
1603#define ADCx_SC1n_ADCH_MASK ((uint32_t)((uint32_t)0x1F << ADCx_SC1n_ADCH_SHIFT)) /*!< Input channel select (mask) */
1604#define ADCx_SC1n_ADCH(x) ((uint32_t)(((uint32_t)(x) << ADCx_SC1n_ADCH_SHIFT) & ADCx_SC1n_ADCH_MASK)) /*!< Input channel select */
1605
1606/*********** Bits definition for ADCx_CFG1 register ***********/
1607#define ADCx_CFG1_ADLPC ((uint32_t)((uint32_t)1 << 7)) /*!< Low-Power Configuration */
1608#define ADCx_CFG1_ADIV_SHIFT 5 /*!< Clock Divide Select (shift) */
1609#define ADCx_CFG1_ADIV_MASK ((uint32_t)((uint32_t)0x03 << ADCx_CFG1_ADIV_SHIFT)) /*!< Clock Divide Select (mask) */
1610#define ADCx_CFG1_ADIV(x) ((uint32_t)(((uint32_t)(x) << ADCx_CFG1_ADIV_SHIFT) & ADCx_CFG1_ADIV_MASK)) /*!< Clock Divide Select */
1611#define ADCx_CFG1_ADLSMP ((uint32_t)((uint32_t)1 << 4)) /*!< Sample time configuration */
1612#define ADCx_CFG1_MODE_SHIFT 2 /*!< Conversion mode (resolution) selection (shift) */
1613#define ADCx_CFG1_MODE_MASK ((uint32_t)((uint32_t)0x03 << ADCx_CFG1_MODE_SHIFT)) /*!< Conversion mode (resolution) selection (mask) */
1614#define ADCx_CFG1_MODE(x) ((uint32_t)(((uint32_t)(x) << ADCx_CFG1_MODE_SHIFT) & ADCx_CFG1_MODE_MASK)) /*!< Conversion mode (resolution) selection */
1615#define ADCx_CFG1_ADICLK_SHIFT 0 /*!< Input Clock Select (shift) */
1616#define ADCx_CFG1_ADICLK_MASK ((uint32_t)((uint32_t)0x03 << ADCx_CFG1_ADICLK_SHIFT)) /*!< Input Clock Select (mask) */
1617#define ADCx_CFG1_ADICLK(x) ((uint32_t)(((uint32_t)(x) << ADCx_CFG1_ADICLK_SHIFT) & ADCx_CFG1_ADICLK_MASK)) /*!< Input Clock Select */
1618
1619/*********** Bits definition for ADCx_CFG2 register ***********/
1620#define ADCx_CFG2_MUXSEL ((uint32_t)((uint32_t)1 << 4)) /*!< ADC Mux Select */
1621#define ADCx_CFG2_ADACKEN ((uint32_t)((uint32_t)1 << 3)) /*!< Asynchronous Clock Output Enable */
1622#define ADCx_CFG2_ADHSC ((uint32_t)((uint32_t)1 << 2)) /*!< High-Speed Configuration */
1623#define ADCx_CFG2_ADLSTS_SHIFT 0 /*!< Long Sample Time Select (shift) */
1624#define ADCx_CFG2_ADLSTS_MASK ((uint32_t)((uint32_t)0x03 << ADCx_CFG2_ADLSTS_SHIFT)) /*!< Long Sample Time Select (mask) */
1625#define ADCx_CFG2_ADLSTS(x) ((uint32_t)(((uint32_t)(x) << ADCx_CFG2_ADLSTS_SHIFT) & ADCx_CFG2_ADLSTS_MASK)) /*!< Long Sample Time Select */
1626
1627/*********** Bits definition for ADCx_SC2 register ***********/
1628#define ADCx_SC2_ADACT ((uint32_t)((uint32_t)1 << 7)) /*!< Conversion Active */
1629#define ADCx_SC2_ADTRG ((uint32_t)((uint32_t)1 << 6)) /*!< Conversion Trigger Select */
1630#define ADCx_SC2_ACFE ((uint32_t)((uint32_t)1 << 5)) /*!< Compare Function Enable */
1631#define ADCx_SC2_ACFGT ((uint32_t)((uint32_t)1 << 4)) /*!< Compare Function Greater Than Enable */
1632#define ADCx_SC2_ACREN ((uint32_t)((uint32_t)1 << 3)) /*!< Compare Function Range Enable */
1633#define ADCx_SC2_DMAEN ((uint32_t)((uint32_t)1 << 2)) /*!< DMA Enable */
1634#define ADCx_SC2_REFSEL_SHIFT 0 /*!< Voltage Reference Selection (shift) */
1635#define ADCx_SC2_REFSEL_MASK ((uint32_t)((uint32_t)0x03 << ADCx_SC2_REFSEL_SHIFT)) /*!< Voltage Reference Selection (mask) */
1636#define ADCx_SC2_REFSEL(x) ((uint32_t)(((uint32_t)(x) << ADCx_SC2_REFSEL_SHIFT) & ADCx_SC2_REFSEL_MASK)) /*!< Voltage Reference Selection */
1637
1638/*********** Bits definition for ADCx_SC3 register ***********/
1639#define ADCx_SC3_CAL ((uint32_t)((uint32_t)1 << 7)) /*!< Calibration */
1640#define ADCx_SC3_CALF ((uint32_t)((uint32_t)1 << 6)) /*!< Calibration Failed Flag */
1641#define ADCx_SC3_ADCO ((uint32_t)((uint32_t)1 << 3)) /*!< Continuous Conversion Enable */
1642#define ADCx_SC3_AVGE ((uint32_t)((uint32_t)1 << 2)) /*!< Hardware Average Enable */
1643#define ADCx_SC3_AVGS_SHIFT 0 /*!< Hardware Average Select (shift) */
1644#define ADCx_SC3_AVGS_MASK ((uint32_t)((uint32_t)0x03 << ADCx_SC3_AVGS_SHIFT)) /*!< Hardware Average Select (mask) */
1645#define ADCx_SC3_AVGS(x) ((uint32_t)(((uint32_t)(x) << ADCx_SC3_AVGS_SHIFT) & ADCx_SC3_AVGS_MASK)) /*!< Hardware Average Select */
1646
1647/****************************************************************/
1648/* */
1649/* Low-Power Timer (LPTMR) */
1650/* */
1651/****************************************************************/
1652/********** Bits definition for LPTMRx_CSR register ***********/
1653#define LPTMRx_CSR_TCF ((uint32_t)((uint32_t)1 << 7)) /*!< Timer Compare Flag */
1654#define LPTMRx_CSR_TIE ((uint32_t)((uint32_t)1 << 6)) /*!< Timer Interrupt Enable */
1655#define LPTMRx_CSR_TPS_SHIFT 4 /*!< Timer Pin Select (shift) */
1656#define LPTMRx_CSR_TPS_MASK ((uint32_t)((uint32_t)0x03 << LPTMRx_CSR_TPS_SHIFT)) /*!< Timer Pin Select (mask) */
1657#define LPTMRx_CSR_TPS(x) ((uint32_t)(((uint32_t)(x) << LPTMRx_CSR_TPS_SHIFT) & LPTMRx_CSR_TPS_MASK)) /*!< Timer Pin Select */
1658#define LPTMRx_CSR_TPP ((uint32_t)((uint32_t)1 << 3)) /*!< Timer Pin Polarity */
1659#define LPTMRx_CSR_TFC ((uint32_t)((uint32_t)1 << 2)) /*!< Timer Free-Running Counter */
1660#define LPTMRx_CSR_TMS ((uint32_t)((uint32_t)1 << 1)) /*!< Timer Mode Select */
1661#define LPTMRx_CSR_TEN ((uint32_t)((uint32_t)1 << 0)) /*!< Timer Enable */
1662
1663/********** Bits definition for LPTMRx_PSR register ***********/
1664#define LPTMRx_PSR_PRESCALE_SHIFT 3 /*!< Prescale Value (shift) */
1665#define LPTMRx_PSR_PRESCALE_MASK ((uint32_t)((uint32_t)0x0F << LPTMRx_PSR_PRESCALE_SHIFT)) /*!< Prescale Value (mask) */
1666#define LPTMRx_PSR_PRESCALE(x) ((uint32_t)(((uint32_t)(x) << LPTMRx_PSR_PRESCALE_SHIFT) & LPTMRx_PSR_PRESCALE_MASK)) /*!< Prescale Value */
1667#define LPTMRx_PSR_PBYP ((uint32_t)((uint32_t)1 << 2)) /*!< Prescaler Bypass */
1668#define LPTMRx_PSR_PCS_SHIFT 0 /*!< Prescaler Clock Select (shift) */
1669#define LPTMRx_PSR_PCS_MASK ((uint32_t)((uint32_t)0x03 << LPTMRx_PSR_PCS_SHIFT)) /*!< Prescaler Clock Select (mask) */
1670#define LPTMRx_PSR_PCS(x) ((uint32_t)(((uint32_t)(x) << LPTMRx_PSR_PCS_SHIFT) & LPTMRx_PSR_PCS_MASK)) /*!< Prescaler Clock Select */
1671
1672/********** Bits definition for LPTMRx_CMR register ***********/
1673#define LPTMRx_CMR_COMPARE_SHIFT 0 /*!< Compare Value (shift) */
1674#define LPTMRx_CMR_COMPARE_MASK ((uint32_t)((uint32_t)0xFFFF << LPTMRx_CMR_COMPARE_SHIFT)) /*!< Compare Value (mask) */
1675#define LPTMRx_CMR_COMPARE(x) ((uint32_t)(((uint32_t)(x) << LPTMRx_CMR_COMPARE_SHIFT) & LPTMRx_CMR_COMPARE_MASK)) /*!< Compare Value */
1676
1677/********** Bits definition for LPTMRx_CNR register ***********/
1678#define LPTMRx_CNR_COUNTER_SHIFT 0 /*!< Counter Value (shift) */
1679#define LPTMRx_CNR_COUNTER_MASK ((uint32_t)((uint32_t)0xFFFF << LPTMRx_CNR_COUNTER_SHIFT)) /*!< Counter Value (mask) */
1680#define LPTMRx_CNR_COUNTER(x) ((uint32_t)(((uint32_t)(x) << LPTMRx_CNR_COUNTER_SHIFT) & LPTMRx_CNR_COUNTER_MASK)) /*!< Counter Value */
1681
1682/****************************************************************/
1683/* */
1684/* Touch Sensing Input (TSI) */
1685/* */
1686/****************************************************************/
1687/********** Bits definition for TSIx_GENCS register ***********/
1688#define TSIx_GENCS_OUTRGF ((uint32_t)((uint32_t)1 << 31)) /*!< Out of Range Flag */
1689#define TSIx_GENCS_ESOR ((uint32_t)((uint32_t)1 << 28)) /*!< End-of-scan/Out-of-Range Interrupt Selection */
1690#define TSIx_GENCS_MODE_SHIFT 24 /*!< TSI analog modes setup and status bits (shift) */
1691#define TSIx_GENCS_MODE_MASK ((uint32_t)((uint32_t)0x0F << TSIx_GENCS_MODE_SHIFT)) /*!< TSI analog modes setup and status bits (mask) */
1692#define TSIx_GENCS_MODE(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_MODE_SHIFT) & TSIx_GENCS_MODE_MASK)) /*!< TSI analog modes setup and status bits */
1693#define TSIx_GENCS_REFCHRG_SHIFT 21 /*!< Reference oscillator charge/discharge current (shift) */
1694#define TSIx_GENCS_REFCHRG_MASK ((uint32_t)((uint32_t)0x07 << TSIx_GENCS_REFCHRG_SHIFT)) /*!< Reference oscillator charge/discharge current (mask) */
1695#define TSIx_GENCS_REFCHRG(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_REFCHRG_SHIFT) & TSIx_GENCS_REFCHRG_MASK)) /*!< Reference oscillator charge/discharge current */
1696#define TSIx_GENCS_DVOLT_SHIFT 19 /*!< Oscillator voltage rails (shift) */
1697#define TSIx_GENCS_DVOLT_MASK ((uint32_t)((uint32_t)0x03 << TSIx_GENCS_DVOLT_SHIFT)) /*!< Oscillator voltage rails (mask) */
1698#define TSIx_GENCS_DVOLT(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_DVOLT_SHIFT) & TSIx_GENCS_DVOLT_MASK)) /*!< Oscillator voltage rails */
1699#define TSIx_GENCS_EXTCHRG_SHIFT 16 /*!< Electrode oscillator charge/discharge current (shift) */
1700#define TSIx_GENCS_EXTCHRG_MASK ((uint32_t)((uint32_t)0x07 << TSIx_GENCS_EXTCHRG_SHIFT)) /*!< Electrode oscillator charge/discharge current (mask) */
1701#define TSIx_GENCS_EXTCHRG(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_EXTCHRG_SHIFT) & TSIx_GENCS_EXTCHRG_MASK)) /*!< Electrode oscillator charge/discharge current */
1702#define TSIx_GENCS_PS_SHIFT 13 /*!< Electrode oscillator prescaler (shift) */
1703#define TSIx_GENCS_PS_MASK ((uint32_t)((uint32_t)0x07 << TSIx_GENCS_PS_SHIFT)) /*!< Electrode oscillator prescaler (mask) */
1704#define TSIx_GENCS_PS(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_PS_SHIFT) & TSIx_GENCS_PS_MASK)) /*!< Electrode oscillator prescaler */
1705#define TSIx_GENCS_NSCN_SHIFT 8 /*!< Number of scans per electrode minus 1 (shift) */
1706#define TSIx_GENCS_NSCN_MASK ((uint32_t)((uint32_t)0x1F << TSIx_GENCS_NSCN_SHIFT)) /*!< Number of scans per electrode minus 1 (mask) */
1707#define TSIx_GENCS_NSCN(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_NSCN_SHIFT) & TSIx_GENCS_NSCN_MASK)) /*!< Number of scans per electrode minus 1 */
1708#define TSIx_GENCS_TSIEN ((uint32_t)((uint32_t)1 << 7)) /*!< TSI Module Enable */
1709#define TSIx_GENCS_TSIIEN ((uint32_t)((uint32_t)1 << 6)) /*!< TSI Interrupt Enable */
1710#define TSIx_GENCS_STPE ((uint32_t)((uint32_t)1 << 5)) /*!< TSI STOP Enable */
1711#define TSIx_GENCS_STM ((uint32_t)((uint32_t)1 << 4)) /*!< Scan Trigger Mode (0=software; 1=hardware) */
1712#define TSIx_GENCS_SCNIP ((uint32_t)((uint32_t)1 << 3)) /*!< Scan in Progress Status */
1713#define TSIx_GENCS_EOSF ((uint32_t)((uint32_t)1 << 2)) /*!< End of Scan Flag */
1714#define TSIx_GENCS_CURSW ((uint32_t)((uint32_t)1 << 1)) /*!< Swap electrode and reference current sources */
1715
1716/********** Bits definition for TSIx_DATA register ************/
1717#define TSIx_DATA_TSICH_SHIFT 28 /*!< Specify channel to be measured (shift) */
1718#define TSIx_DATA_TSICH_MASK ((uint32_t)((uint32_t)0x0F << TSIx_DATA_TSICH_SHIFT)) /*!< Specify channel to be measured (mask) */
1719#define TSIx_DATA_TSICH(x) ((uint32_t)(((uint32_t)(x) << TSIx_DATA_TSICH_SHIFT) & TSIx_DATA_TSICH_MASK)) /*!< Specify channel to be measured */
1720#define TSIx_DATA_DMAEN ((uint32_t)((uint32_t)1 << 23)) /*!< DMA Transfer Enabled */
1721#define TSIx_DATA_SWTS ((uint32_t)((uint32_t)1 << 22)) /*!< Software Trigger Start */
1722#define TSIx_DATA_TSICNT_SHIFT 0 /*!< TSI Conversion Counter Value (shift) */
1723#define TSIx_DATA_TSICNT_MASK ((uint32_t)((uint32_t)0xFFFF << TSIx_DATA_TSICNT_SHIFT)) /*!< TSI Conversion Counter Value (mask) */
1724#define TSIx_DATA_TSICNT(x) ((uint32_t)(((uint32_t)(x) << TSIx_DATA_TSICNT_SHIFT) & TSIx_DATA_TSICNT_MASK)) /*!< TSI Conversion Counter Value */
1725
1726/********** Bits definition for TSIx_TSHD register ************/
1727#define TSIx_TSHD_THRESH_SHIFT 16 /*!< TSI Wakeup Channel High-Threshold (shift) */
1728#define TSIx_TSHD_THRESH_MASK ((uint32_t)((uint32_t)0xFFFF << TSIx_TSHD_THRESH_SHIFT)) /*!< TSI Wakeup Channel High-Threshold (mask) */
1729#define TSIx_TSHD_THRESH(x) ((uint32_t)(((uint32_t)(x) << TSIx_TSHD_THRESH_SHIFT) & TSIx_TSHD_THRESH_MASK)) /*!< TSI Wakeup Channel High-Threshold */
1730#define TSIx_TSHD_THRESL_SHIFT 0 /*!< TSI Wakeup Channel Low-Threshold (shift) */
1731#define TSIx_TSHD_THRESL_MASK ((uint32_t)((uint32_t)0xFFFF << TSIx_TSHD_THRESL_SHIFT)) /*!< TSI Wakeup Channel Low-Threshold (mask) */
1732#define TSIx_TSHD_THRESL(x) ((uint32_t)(((uint32_t)(x) << TSIx_TSHD_THRESL_SHIFT) & TSIx_TSHD_THRESL_MASK)) /*!< TSI Wakeup Channel Low-Threshold */
1733
1734/****************************************************************/
1735/* */
1736/* Multipurpose Clock Generator (MCG) */
1737/* */
1738/****************************************************************/
1739/*********** Bits definition for MCG_C1 register **************/
1740#define MCG_C1_CLKS_SHIFT 6 /*!< Clock source select (shift) */
1741#define MCG_C1_CLKS_MASK ((uint8_t)((uint8_t)0x3 << MCG_C1_CLKS_SHIFT)) /*!< Clock source select (mask) */
1742#define MCG_C1_CLKS(x) ((uint8_t)(((uint8_t)(x) << MCG_C1_CLKS_SHIFT) & MCG_C1_CLKS_MASK)) /*!< Clock source select */
1743#define MCG_C1_CLKS_FLLPLL MCG_C1_CLKS(0) /*!< Select output of FLL or PLL, depending on PLLS control bit */
1744#define MCG_C1_CLKS_IRCLK MCG_C1_CLKS(1) /*!< Select internal reference clock */
1745#define MCG_C1_CLKS_ERCLK MCG_C1_CLKS(2) /*!< Select external reference clock */
1746#define MCG_C1_FRDIV_SHIFT 3 /*!< FLL External Reference Divider (shift) */
1747#define MCG_C1_FRDIV_MASK ((uint8_t)((uint8_t)0x7 << MCG_C1_FRDIV_SHIFT)) /*!< FLL External Reference Divider (mask) */
1748#define MCG_C1_FRDIV(x) ((uint8_t)(((uint8_t)(x) << MCG_C1_FRDIV_SHIFT) & MCG_C1_FRDIV_MASK)) /*!< FLL External Reference Divider */
1749#define MCG_C1_IREFS ((uint8_t)0x04) /*!< Internal Reference Select (0=ERCLK; 1=slow IRCLK) */
1750#define MCG_C1_IRCLKEN ((uint8_t)0x02) /*!< Internal Reference Clock Enable */
1751#define MCG_C1_IREFSTEN ((uint8_t)0x01) /*!< Internal Reference Stop Enable */
1752
1753/*********** Bits definition for MCG_C2 register **************/
1754#define MCG_C2_LOCRE0 ((uint8_t)0x80) /*!< Loss of Clock Reset Enable */
1755#define MCG_C2_RANGE0_SHIFT 4 /*!< Frequency Range Select (shift) */
1756#define MCG_C2_RANGE0_MASK ((uint8_t)((uint8_t)0x3 << MCG_C2_RANGE0_SHIFT)) /*!< Frequency Range Select (mask) */
1757#define MCG_C2_RANGE0(x) ((uint8_t)(((uint8_t)(x) << MCG_C2_RANGE0_SHIFT) & MCG_C2_RANGE0_MASK)) /*!< Frequency Range Select */
1758#define MCG_C2_HGO0 ((uint8_t)0x08) /*!< High Gain Oscillator Select (0=low power; 1=high gain) */
1759#define MCG_C2_EREFS0 ((uint8_t)0x04) /*!< External Reference Select (0=clock; 1=oscillator) */
1760#define MCG_C2_LP ((uint8_t)0x02) /*!< Low Power Select (1=FLL/PLL disabled in bypass modes) */
1761#define MCG_C2_IRCS ((uint8_t)0x01) /*!< Internal Reference Clock Select (0=slow; 1=fast) */
1762
1763/*********** Bits definition for MCG_C4 register **************/
1764#define MCG_C4_DMX32 ((uint8_t)0x80) /*!< DCO Maximum Frequency with 32.768 kHz Reference */
1765#define MCG_C4_DRST_DRS_SHIFT 5 /*!< DCO Range Select (shift) */
1766#define MCG_C4_DRST_DRS_MASK ((uint8_t)((uint8_t)0x3 << MCG_C4_DRST_DRS_SHIFT)) /*!< DCO Range Select (mask) */
1767#define MCG_C4_DRST_DRS(x) ((uint8_t)(((uint8_t)(x) << MCG_C4_DRST_DRS_SHIFT) & MCG_C4_DRST_DRS_MASK)) /*!< DCO Range Select */
1768#define MCG_C4_FCTRIM_SHIFT 1 /*!< Fast Internal Reference Clock Trim Setting (shift) */
1769#define MCG_C4_FCTRIM_MASK ((uint8_t)((uint8_t)0xF << MCG_C4_FCTRIM_SHIFT)) /*!< Fast Internal Reference Clock Trim Setting (mask) */
1770#define MCG_C4_FCTRIM(x) ((uint8_t)(((uint8_t)(x) << MCG_C4_FCTRIM_SHIFT) & MCG_C4_FCTRIM_MASK)) /*!< Fast Internal Reference Clock Trim Setting */
1771#define MCG_C4_SCFTRIM ((uint8_t)0x01) /*!< Slow Internal Reference Clock Fine Trim */
1772
1773/*********** Bits definition for MCG_C5 register **************/
1774#define MCG_C5_PLLCLKEN0 ((uint8_t)0x40) /*!< PLL Clock Enable */
1775#define MCG_C5_PLLSTEN0 ((uint8_t)0x20) /*!< PLL Stop Enable */
1776#define MCG_C5_PRDIV0_MASK ((uint8_t)0x1F) /*!< PLL External Reference Divider (mask) */
1777#define MCG_C5_PRDIV0(x) ((uint8_t)((uint8_t)(x) & MCG_C5_PRDIV0_MASK)) /*!< PLL External Reference Divider */
1778
1779/*********** Bits definition for MCG_C6 register **************/
1780#define MCG_C6_LOLIE0 ((uint8_t)0x80) /*!< Loss of Lock Interrupt Enable */
1781#define MCG_C6_PLLS ((uint8_t)0x40) /*!< PLL Select */
1782#define MCG_C6_CME0 ((uint8_t)0x20) /*!< Clock Monitor Enable */
1783#define MCG_C6_VDIV0_MASK ((uint8_t)0x1F) /*!< VCO 0 Divider (mask) */
1784#define MCG_C6_VDIV0(x) ((uint8_t)((uint8_t)(x) & MCG_C6_VDIV0_MASK)) /*!< VCO 0 Divider */
1785
1786/************ Bits definition for MCG_S register **************/
1787#define MCG_S_LOLS ((uint8_t)0x80) /*!< Loss of Lock Status */
1788#define MCG_S_LOCK0 ((uint8_t)0x40) /*!< Lock Status */
1789#define MCG_S_PLLST ((uint8_t)0x20) /*!< PLL Select Status */
1790#define MCG_S_IREFST ((uint8_t)0x10) /*!< Internal Reference Status */
1791#define MCG_S_CLKST_SHIFT 2 /*!< Clock Mode Status (shift) */
1792#define MCG_S_CLKST_MASK ((uint8_t)((uint8_t)0x3 << MCG_S_CLKST_SHIFT)) /*!< Clock Mode Status (mask) */
1793#define MCG_S_CLKST(x) ((uint8_t)(((uint8_t)(x) << MCG_S_CLKST_SHIFT) & MCG_S_CLKST_MASK)) /*!< Clock Mode Status */
1794#define MCG_S_CLKST_FLL MCG_S_CLKST(0) /*!< Output of the FLL is selected */
1795#define MCG_S_CLKST_IRCLK MCG_S_CLKST(1) /*!< Internal reference clock is selected */
1796#define MCG_S_CLKST_ERCLK MCG_S_CLKST(2) /*!< External reference clock is selected */
1797#define MCG_S_CLKST_PLL MCG_S_CLKST(3) /*!< Output of the PLL is selected */
1798#define MCG_S_OSCINIT0 ((uint8_t)0x02) /*!< OSC Initialization */
1799#define MCG_S_IRCST ((uint8_t)0x01) /*!< Internal Reference Clock Status */
1800
1801/************ Bits definition for MCG_SC register **************/
1802#define MCG_SC_ATME ((uint8_t)0x80) /*!< Automatic Trim Machine Enable */
1803#define MCG_SC_ATMS ((uint8_t)0x40) /*!< Automatic Trim Machine Select */
1804#define MCG_SC_ATMF ((uint8_t)0x20) /*!< Automatic Trim Machine Fail Flag */
1805#define MCG_SC_FLTPRSRV ((uint8_t)0x10) /*!< FLL Filter Preserve Enable */
1806#define MCG_SC_FCRDIV_SHIFT 1 /*!< Fast Clock Internal Reference Divider (shift) */
1807#define MCG_SC_FCRDIV_MASK ((uint8_t)((uint8_t)0x7 << MCG_SC_FCRDIV_SHIFT)) /*!< Fast Clock Internal Reference Divider (mask) */
1808#define MCG_SC_FCRDIV(x) ((uint8_t)(((uint8_t)(x) << MCG_SC_FCRDIV_SHIFT) & MCG_SC_FCRDIV_MASK)) /*!< Fast Clock Internal Reference Divider */
1809#define MCG_SC_FCRDIV_DIV1 MCG_SC_FCRDIV(0) /*!< Divide Factor is 1 */
1810#define MCG_SC_FCRDIV_DIV2 MCG_SC_FCRDIV(1) /*!< Divide Factor is 2 */
1811#define MCG_SC_FCRDIV_DIV4 MCG_SC_FCRDIV(2) /*!< Divide Factor is 4 */
1812#define MCG_SC_FCRDIV_DIV8 MCG_SC_FCRDIV(3) /*!< Divide Factor is 8 */
1813#define MCG_SC_FCRDIV_DIV16 MCG_SC_FCRDIV(4) /*!< Divide Factor is 16 */
1814#define MCG_SC_FCRDIV_DIV32 MCG_SC_FCRDIV(5) /*!< Divide Factor is 32 */
1815#define MCG_SC_FCRDIV_DIV64 MCG_SC_FCRDIV(6) /*!< Divide Factor is 64 */
1816#define MCG_SC_FCRDIV_DIV128 MCG_SC_FCRDIV(7) /*!< Divide Factor is 128 */
1817#define MCG_SC_LOCS0 ((uint8_t)0x01) /*!< OSC0 Loss of Clock Status */
1818
1819/************ Bits definition for MCG_C7 register **************/
1820#define MCG_C7_OSCSEL ((uint8_t)0x01) /*!< MCG OSC Clock Select */
1821
1822/************ Bits definition for MCG_C8 register **************/
1823#define MCG_C8_LOCRE1 ((uint8_t)0x80) /*!< PLL Loss of Clock Reset Enable */
1824#define MCG_C8_LOLRE ((uint8_t)0x40) /*!< PLL Loss of Lock Reset Enable */
1825#define MCG_C8_CME1 ((uint8_t)0x20) /*!< PLL Clock Monitor Enable */
1826#define MCG_C8_LOCS1 ((uint8_t)0x01) /*!< RTC Loss of Clock Status */
1827
1828/****************************************************************/
1829/* */
1830/* Serial Peripheral Interface (SPI) */
1831/* */
1832/****************************************************************/
1833
1834/*********** Bits definition for SPIx_MCR register *************/
1835#define SPIx_MCR_MSTR ((uint32_t)0x80000000) // Master/Slave Mode Select
1836#define SPIx_MCR_CONT_SCKE ((uint32_t)0x40000000) // Continuous SCK Enable
1837#define SPIx_MCR_DCONF(n) (((n) & 3) << 28) // DSPI Configuration
1838#define SPIx_MCR_FRZ ((uint32_t)0x08000000) // Freeze
1839#define SPIx_MCR_MTFE ((uint32_t)0x04000000) // Modified Timing Format Enable
1840#define SPIx_MCR_ROOE ((uint32_t)0x01000000) // Receive FIFO Overflow Overwrite Enable
1841#define SPIx_MCR_PCSIS(n) (((n) & 0x1F) << 16) // Peripheral Chip Select x Inactive State
1842#define SPIx_MCR_DOZE ((uint32_t)0x00008000) // Doze Enable
1843#define SPIx_MCR_MDIS ((uint32_t)0x00004000) // Module Disable
1844#define SPIx_MCR_DIS_TXF ((uint32_t)0x00002000) // Disable Transmit FIFO
1845#define SPIx_MCR_DIS_RXF ((uint32_t)0x00001000) // Disable Receive FIFO
1846#define SPIx_MCR_CLR_TXF ((uint32_t)0x00000800) // Clear the TX FIFO and counter
1847#define SPIx_MCR_CLR_RXF ((uint32_t)0x00000400) // Clear the RX FIFO and counter
1848#define SPIx_MCR_SMPL_PT(n) (((n) & 3) << 8) // Sample Point
1849#define SPIx_MCR_HALT ((uint32_t)0x00000001) // Halt
1850
1851/*********** Bits definition for SPIx_TCR register *************/
1852#define SPIx_TCR_TCNT(n) (((n) & 0xffff) << 16) // DSPI Transfer Count Register
1853
1854/*********** Bits definition for SPIx_CTARn register *************/
1855#define SPIx_CTARn_DBR ((uint32_t)0x80000000) // Double Baud Rate
1856#define SPIx_CTARn_FMSZ_SHIFT 27 // Frame Size Shift
1857#define SPIx_CTARn_FMSZ_MASK 0xF // Frame Size Mask
1858#define SPIx_CTARn_FMSZ(n) (((n) & 15) << 27) // Frame Size (+1)
1859#define SPIx_CTARn_CPOL ((uint32_t)0x04000000) // Clock Polarity
1860#define SPIx_CTARn_CPHA ((uint32_t)0x02000000) // Clock Phase
1861#define SPIx_CTARn_LSBFE ((uint32_t)0x01000000) // LSB First
1862#define SPIx_CTARn_PCSSCK(n) (((n) & 3) << 22) // PCS to SCK Delay Prescaler
1863#define SPIx_CTARn_PASC(n) (((n) & 3) << 20) // After SCK Delay Prescaler
1864#define SPIx_CTARn_PDT(n) (((n) & 3) << 18) // Delay after Transfer Prescaler
1865#define SPIx_CTARn_PBR(n) (((n) & 3) << 16) // Baud Rate Prescaler
1866#define SPIx_CTARn_CSSCK(n) (((n) & 15) << 12) // PCS to SCK Delay Scaler
1867#define SPIx_CTARn_ASC(n) (((n) & 15) << 8) // After SCK Delay Scaler
1868#define SPIx_CTARn_DT(n) (((n) & 15) << 4) // Delay After Transfer Scaler
1869#define SPIx_CTARn_BR(n) (((n) & 15) << 0) // Baud Rate Scaler
1870
1871
1872/*********** Bits definition for SPIx_CTARn_SLAVE register *************/
1873#define SPIx_CTARn_SLAVE_FMSZ(n) (((n) & 15) << 27) // Frame Size (+1)
1874#define SPIx_CTARn_SLAVE_CPOL ((uint32_t)0x04000000) // Clock Polarity
1875#define SPIx_CTARn_SLAVE_CPHA ((uint32_t)0x02000000) // Clock Phase
1876
1877/*********** Bits definition for SPIx_SR register *************/
1878#define SPIx_SR_TCF ((uint32_t)0x80000000) // Transfer Complete Flag
1879#define SPIx_SR_TXRXS ((uint32_t)0x40000000) // TX and RX Status
1880#define SPIx_SR_EOQF ((uint32_t)0x10000000) // End of Queue Flag
1881#define SPIx_SR_TFUF ((uint32_t)0x08000000) // Transmit FIFO Underflow Flag
1882#define SPIx_SR_TFFF ((uint32_t)0x02000000) // Transmit FIFO Fill Flag
1883#define SPIx_SR_RFOF ((uint32_t)0x00080000) // Receive FIFO Overflow Flag
1884#define SPIx_SR_RFDF ((uint32_t)0x00020000) // Receive FIFO Drain Flag
1885#define SPIx_SR_TXCTR (((n) & 15) << 12) // TX FIFO Counter
1886#define SPIx_SR_TXNXPTR (((n) & 15) << 8) // Transmit Next Pointer
1887#define SPIx_SR_RXCTR (((n) & 15) << 4) // RX FIFO Counter
1888#define SPIx_SR_POPNXTPTR ((n) & 15) // POP Next Pointer
1889
1890/*********** Bits definition for SPIx_SR register *************/
1891#define SPIx_RSER_TCF_RE ((uint32_t)0x80000000) // Transmission Complete Request Enable
1892#define SPIx_RSER_EOQF_RE ((uint32_t)0x10000000) // DSPI Finished Request Request Enable
1893#define SPIx_RSER_TFUF_RE ((uint32_t)0x08000000) // Transmit FIFO Underflow Request Enable
1894#define SPIx_RSER_TFFF_RE ((uint32_t)0x02000000) // Transmit FIFO Fill Request Enable
1895#define SPIx_RSER_TFFF_DIRS ((uint32_t)0x01000000) // Transmit FIFO FIll Dma or Interrupt Request Select
1896#define SPIx_RSER_RFOF_RE ((uint32_t)0x00080000) // Receive FIFO Overflow Request Enable
1897#define SPIx_RSER_RFDF_RE ((uint32_t)0x00020000) // Receive FIFO Drain Request Enable
1898#define SPIx_RSER_RFDF_DIRS ((uint32_t)0x00010000) // Receive FIFO Drain DMA or Interrupt Request Select
1899
1900/*********** Bits definition for SPIx_PUSHR register *************/
1901#define SPIx_PUSHR_CONT ((uint32_t)0x80000000) // Continuous Peripheral Chip Select Enable
1902#define SPIx_PUSHR_CTAS(n) (((n) & 7) << 28) // Clock and Transfer Attributes Select
1903#define SPIx_PUSHR_EOQ ((uint32_t)0x08000000) // End Of Queue
1904#define SPIx_PUSHR_CTCNT ((uint32_t)0x04000000) // Clear Transfer Counter
1905#define SPIx_PUSHR_PCS(n) (((n) & 31) << 16) // Peripheral Chip Select
1906#define SPIx_PUSHR_TXDATA(n) ((n) & 0xffff) // Transmit Data
1907
1908/*********** Bits definition for SPIx_PUSHR_SLAVE register *************/
1909#define SPIx_PUSHR_SLAVE_TXDATA(n) (((n) & 0xffff) << 0) // Transmit Data in slave mode
1910
1911/*********** Bits definition for SPIx_POPR register *************/
1912#define SPIx_POPR_RXDATA(n) (((n) & 0xffff) << 16) // Received Data
1913
1914/*********** Bits definition for SPIx_TXFRn register *************/
1915#define SPIx_TXFRn_TXCMD_TXDATA (((n) & 0xffff) << 16) // Transmit Command (in master mode)
1916#define SPIx_TXFRn_TXDATA(n) (((n) & 0xffff) << 0) // Transmit Data
1917
1918/*********** Bits definition for SPIx_RXFRn register *************/
1919#define SPIx_RXFRn_RXDATA(n) (((n) & 0xffff) << 0) // Receive Data
1920
1921/****************************************************************/
1922/* */
1923/* Inter-Integrated Circuit (I2C) */
1924/* */
1925/****************************************************************/
1926/*********** Bits definition for I2Cx_A1 register *************/
1927#define I2Cx_A1_AD ((uint8_t)0xFE) /*!< Address [7:1] */
1928
1929#define I2Cx_A1_AD_SHIT 1
1930
1931/*********** Bits definition for I2Cx_F register **************/
1932#define I2Cx_F_MULT ((uint8_t)0xC0) /*!< Multiplier factor */
1933#define I2Cx_F_ICR ((uint8_t)0x3F) /*!< Clock rate */
1934
1935#define I2Cx_F_MULT_SHIFT 5
1936
1937/*********** Bits definition for I2Cx_C1 register *************/
1938#define I2Cx_C1_IICEN ((uint8_t)0x80) /*!< I2C Enable */
1939#define I2Cx_C1_IICIE ((uint8_t)0x40) /*!< I2C Interrupt Enable */
1940#define I2Cx_C1_MST ((uint8_t)0x20) /*!< Master Mode Select */
1941#define I2Cx_C1_TX ((uint8_t)0x10) /*!< Transmit Mode Select */
1942#define I2Cx_C1_TXAK ((uint8_t)0x08) /*!< Transmit Acknowledge Enable */
1943#define I2Cx_C1_RSTA ((uint8_t)0x04) /*!< Repeat START */
1944#define I2Cx_C1_WUEN ((uint8_t)0x02) /*!< Wakeup Enable */
1945#define I2Cx_C1_DMAEN ((uint8_t)0x01) /*!< DMA Enable */
1946
1947/*********** Bits definition for I2Cx_S register **************/
1948#define I2Cx_S_TCF ((uint8_t)0x80) /*!< Transfer Complete Flag */
1949#define I2Cx_S_IAAS ((uint8_t)0x40) /*!< Addressed As A Slave */
1950#define I2Cx_S_BUSY ((uint8_t)0x20) /*!< Bus Busy */
1951#define I2Cx_S_ARBL ((uint8_t)0x10) /*!< Arbitration Lost */
1952#define I2Cx_S_RAM ((uint8_t)0x08) /*!< Range Address Match */
1953#define I2Cx_S_SRW ((uint8_t)0x04) /*!< Slave Read/Write */
1954#define I2Cx_S_IICIF ((uint8_t)0x02) /*!< Interrupt Flag */
1955#define I2Cx_S_RXAK ((uint8_t)0x01) /*!< Receive Acknowledge */
1956
1957/*********** Bits definition for I2Cx_D register **************/
1958#define I2Cx_D_DATA ((uint8_t)0xFF) /*!< Data */
1959
1960/*********** Bits definition for I2Cx_C2 register *************/
1961#define I2Cx_C2_GCAEN ((uint8_t)0x80) /*!< General Call Address Enable */
1962#define I2Cx_C2_ADEXT ((uint8_t)0x40) /*!< Address Extension */
1963#define I2Cx_C2_HDRS ((uint8_t)0x20) /*!< High Drive Select */
1964#define I2Cx_C2_SBRC ((uint8_t)0x10) /*!< Slave Baud Rate Control */
1965#define I2Cx_C2_RMEN ((uint8_t)0x08) /*!< Range Address Matching Enable */
1966#define I2Cx_C2_AD_10_8 ((uint8_t)0x03) /*!< Slave Address [10:8] */
1967
1968/*********** Bits definition for I2Cx_FLT register ************/
1969#define I2Cx_FLT_SHEN ((uint8_t)0x80) /*!< Stop Hold Enable */
1970#define I2Cx_FLT_STOPF ((uint8_t)0x40) /*!< I2C Bus Stop Detect Flag */
1971#define I2Cx_FLT_STOPIE ((uint8_t)0x20) /*!< I2C Bus Stop Interrupt Enable */
1972#define I2Cx_FLT_FLT ((uint8_t)0x1F) /*!< I2C Programmable Filter Factor */
1973
1974/*********** Bits definition for I2Cx_RA register *************/
1975#define I2Cx_RA_RAD ((uint8_t)0xFE) /*!< Range Slave Address */
1976
1977#define I2Cx_RA_RAD_SHIFT 1
1978
1979/*********** Bits definition for I2Cx_SMB register ************/
1980#define I2Cx_SMB_FACK ((uint8_t)0x80) /*!< Fast NACK/ACK Enable */
1981#define I2Cx_SMB_ALERTEN ((uint8_t)0x40) /*!< SMBus Alert Response Address Enable */
1982#define I2Cx_SMB_SIICAEN ((uint8_t)0x20) /*!< Second I2C Address Enable */
1983#define I2Cx_SMB_TCKSEL ((uint8_t)0x10) /*!< Timeout Counter Clock Select */
1984#define I2Cx_SMB_SLTF ((uint8_t)0x08) /*!< SCL Low Timeout Flag */
1985#define I2Cx_SMB_SHTF1 ((uint8_t)0x04) /*!< SCL High Timeout Flag 1 */
1986#define I2Cx_SMB_SHTF2 ((uint8_t)0x02) /*!< SCL High Timeout Flag 2 */
1987#define I2Cx_SMB_SHTF2IE ((uint8_t)0x01) /*!< SHTF2 Interrupt Enable */
1988
1989/*********** Bits definition for I2Cx_A2 register *************/
1990#define I2Cx_A2_SAD ((uint8_t)0xFE) /*!< SMBus Address */
1991
1992#define I2Cx_A2_SAD_SHIFT 1
1993
1994/*********** Bits definition for I2Cx_SLTH register ***********/
1995#define I2Cx_SLTH_SSLT ((uint8_t)0xFF) /*!< MSB of SCL low timeout value */
1996
1997/*********** Bits definition for I2Cx_SLTL register ***********/
1998#define I2Cx_SLTL_SSLT ((uint8_t)0xFF) /*!< LSB of SCL low timeout value */
1999
2000/****************************************************************/
2001/* */
2002/* Universal Asynchronous Receiver/Transmitter (UART) */
2003/* */
2004/****************************************************************/
2005/********* Bits definition for UARTx_BDH register *************/
2006#define UARTx_BDH_LBKDIE ((uint8_t)0x80) /*!< LIN Break Detect Interrupt Enable */
2007#define UARTx_BDH_RXEDGIE ((uint8_t)0x40) /*!< RxD Input Active Edge Interrupt Enable */
2008#define UARTx_BDH_SBR_MASK ((uint8_t)0x1F)
2009#define UARTx_BDH_SBR(x) ((uint8_t)((uint8_t)(x) & UARTx_BDH_SBR_MASK)) /*!< Baud Rate Modulo Divisor */
2010
2011/********* Bits definition for UARTx_BDL register *************/
2012#define UARTx_BDL_SBR_SHIFT 0 /*!< Baud Rate Modulo Divisor */
2013#define UARTx_BDL_SBR_MASK ((uint8_t)((uint8_t)0xFF << UARTx_BDL_SBR_SHIFT))
2014#define UARTx_BDL_SBR(x) ((uint8_t)(((uint8_t)(x) << UARTx_BDL_SBR_SHIFT) & UARTx_BDL_SBR_MASK))
2015
2016/********* Bits definition for UARTx_C1 register **************/
2017#define UARTx_C1_LOOPS ((uint8_t)0x80) /*!< Loop Mode Select */
2018#define UARTx_C1_DOZEEN ((uint8_t)0x40) /*!< Doze Enable */
2019#define UARTx_C1_UARTSWAI ((uint8_t)0x40) /*!< UART Stops in Wait Mode */
2020#define UARTx_C1_RSRC ((uint8_t)0x20) /*!< Receiver Source Select */
2021#define UARTx_C1_M ((uint8_t)0x10) /*!< 9-Bit or 8-Bit Mode Select */
2022#define UARTx_C1_WAKE ((uint8_t)0x08) /*!< Receiver Wakeup Method Select */
2023#define UARTx_C1_ILT ((uint8_t)0x04) /*!< Idle Line Type Select */
2024#define UARTx_C1_PE ((uint8_t)0x02) /*!< Parity Enable */
2025#define UARTx_C1_PT ((uint8_t)0x01) /*!< Parity Type */
2026
2027/********* Bits definition for UARTx_C2 register **************/
2028#define UARTx_C2_TIE ((uint8_t)0x80) /*!< Transmit Interrupt Enable for TDRE */
2029#define UARTx_C2_TCIE ((uint8_t)0x40) /*!< Transmission Complete Interrupt Enable for TC */
2030#define UARTx_C2_RIE ((uint8_t)0x20) /*!< Receiver Interrupt Enable for RDRF */
2031#define UARTx_C2_ILIE ((uint8_t)0x10) /*!< Idle Line Interrupt Enable for IDLE */
2032#define UARTx_C2_TE ((uint8_t)0x08) /*!< Transmitter Enable */
2033#define UARTx_C2_RE ((uint8_t)0x04) /*!< Receiver Enable */
2034#define UARTx_C2_RWU ((uint8_t)0x02) /*!< Receiver Wakeup Control */
2035#define UARTx_C2_SBK ((uint8_t)0x01) /*!< Send Break */
2036
2037/********* Bits definition for UARTx_S1 register **************/
2038#define UARTx_S1_TDRE ((uint8_t)0x80) /*!< Transmit Data Register Empty Flag */
2039#define UARTx_S1_TC ((uint8_t)0x40) /*!< Transmission Complete Flag */
2040#define UARTx_S1_RDRF ((uint8_t)0x20) /*!< Receiver Data Register Full Flag */
2041#define UARTx_S1_IDLE ((uint8_t)0x10) /*!< Idle Line Flag */
2042#define UARTx_S1_OR ((uint8_t)0x08) /*!< Receiver Overrun Flag */
2043#define UARTx_S1_NF ((uint8_t)0x04) /*!< Noise Flag */
2044#define UARTx_S1_FE ((uint8_t)0x02) /*!< Framing Error Flag */
2045#define UARTx_S1_PF ((uint8_t)0x01) /*!< Parity Error Flag */
2046
2047/********* Bits definition for UARTx_S2 register **************/
2048#define UARTx_S2_LBKDIF ((uint8_t)0x80) /*!< LIN Break Detect Interrupt Flag */
2049#define UARTx_S2_RXEDGIF ((uint8_t)0x40) /*!< UART_RX Pin Active Edge Interrupt Flag */
2050#define UARTx_S2_MSBF ((uint8_t)0x20) /*!< MSB First */
2051#define UARTx_S2_RXINV ((uint8_t)0x10) /*!< Receive Data Inversion */
2052#define UARTx_S2_RWUID ((uint8_t)0x08) /*!< Receive Wake Up Idle Detect */
2053#define UARTx_S2_BRK13 ((uint8_t)0x04) /*!< Break Character Generation Length */
2054#define UARTx_S2_LBKDE ((uint8_t)0x02) /*!< LIN Break Detect Enable */
2055#define UARTx_S2_RAF ((uint8_t)0x01) /*!< Receiver Active Flag */
2056
2057/********* Bits definition for UARTx_C3 register **************/
2058#define UARTx_C3_R8 ((uint8_t)0x80) /*!< Ninth Data Bit for Receiver */
2059#define UARTx_C3_T8 ((uint8_t)0x40) /*!< Ninth Data Bit for Transmitter */
2060#define UARTx_C3_TXDIR ((uint8_t)0x20) /*!< UART_TX Pin Direction in Single-Wire Mode */
2061#define UARTx_C3_TXINV ((uint8_t)0x10) /*!< Transmit Data Inversion */
2062#define UARTx_C3_ORIE ((uint8_t)0x08) /*!< Overrun Interrupt Enable */
2063#define UARTx_C3_NEIE ((uint8_t)0x04) /*!< Noise Error Interrupt Enable */
2064#define UARTx_C3_FEIE ((uint8_t)0x02) /*!< Framing Error Interrupt Enable */
2065#define UARTx_C3_PEIE ((uint8_t)0x01) /*!< Parity Error Interrupt Enable */
2066
2067/********* Bits definition for UARTx_D register ***************/
2068#define UARTx_D_R7T7 ((uint8_t)0x80) /*!< Read receive data buffer 7 or write transmit data buffer 7 */
2069#define UARTx_D_R6T6 ((uint8_t)0x40) /*!< Read receive data buffer 6 or write transmit data buffer 6 */
2070#define UARTx_D_R5T5 ((uint8_t)0x20) /*!< Read receive data buffer 5 or write transmit data buffer 5 */
2071#define UARTx_D_R4T4 ((uint8_t)0x10) /*!< Read receive data buffer 4 or write transmit data buffer 4 */
2072#define UARTx_D_R3T3 ((uint8_t)0x08) /*!< Read receive data buffer 3 or write transmit data buffer 3 */
2073#define UARTx_D_R2T2 ((uint8_t)0x04) /*!< Read receive data buffer 2 or write transmit data buffer 2 */
2074#define UARTx_D_R1T1 ((uint8_t)0x02) /*!< Read receive data buffer 1 or write transmit data buffer 1 */
2075#define UARTx_D_R0T0 ((uint8_t)0x01) /*!< Read receive data buffer 0 or write transmit data buffer 0 */
2076
2077/********* Bits definition for UARTx_MA1 register *************/
2078#define UARTx_MA1_MA ((uint8_t)0xFF) /*!< Match Address */
2079
2080/********* Bits definition for UARTx_MA2 register *************/
2081#define UARTx_MA2_MA ((uint8_t)0xFF) /*!< Match Address */
2082
2083/********* Bits definition for UARTx_C4 register **************/
2084#define UARTx_C4_MAEN1 ((uint8_t)0x80) /*!< Match Address Mode Enable 1 */
2085#define UARTx_C4_MAEN2 ((uint8_t)0x40) /*!< Match Address Mode Enable 2 */
2086#define UARTx_C4_M10 ((uint8_t)0x20) /*!< 10-bit Mode Select */
2087#define UARTx_C4_BRFA_MASK ((uint8_t)0x1F)
2088#define UARTx_C4_BRFA(x) ((uint8_t)((uint8_t)(x) & UARTx_C4_BRFA_MASK)) /*!< Baud Rate Fine Adjust */
2089
2090/********* Bits definition for UARTx_C5 register **************/
2091#define UARTx_C5_TDMAE ((uint8_t)0x80) /*!< Transmitter DMA Enable */
2092#define UARTx_C5_RDMAE ((uint8_t)0x20) /*!< Receiver Full DMA Enable */
2093#define UARTx_C5_BOTHEDGE ((uint8_t)0x02) /*!< Both Edge Sampling */
2094#define UARTx_C5_RESYNCDIS ((uint8_t)0x01) /*!< Resynchronization Disable */
2095
2096/******* Bits definition for UARTx_CFIFO register ************/
2097#define UARTx_CFIFO_TXFLUSH ((uint8_t)0x80) /*!< Transmit FIFO/Buffer Flush */
2098#define UARTx_CFIFO_RXFLUSH ((uint8_t)0x40) /*!< Receive FIFO/Buffer Flush */
2099#define UARTx_CFIFO_RXOFE ((uint8_t)0x04) /*!< Receive FIFO Overflow Interrupt Enable */
2100#define UARTx_CFIFO_TXOFE ((uint8_t)0x02) /*!< Transmit FIFO Overflow Interrupt Enable */
2101#define UARTx_CFIFO_RXUFE ((uint8_t)0x01) /*!< Receive FIFO Underflow Interrupt Enable */
2102
2103/******* Bits definition for UARTx_PFIFO register ************/
2104#define UARTx_PFIFO_TXFE ((uint8_t)0x80) /*!< Transmit FIFO Enable */
2105#define UARTx_PFIFO_TXFIFOSIZE_SHIFT 4
2106#define UARTx_PFIFO_TXFIFOSIZE_MASK ((uint8_t)((uint8_t)0x7 << UARTx_PFIFO_TXFIFOSIZE_SHIFT))
2107#define UARTx_PFIFO_TXFIFOSIZE(x) ((uint8_t)(((uint8_t)(x) << UARTx_PFIFO_TXFIFOSIZE_SHIFT) & UARTx_PFIFO_TXFIFOSIZE_MASK)) /*!< Transmit FIFO Buffer depth */
2108#define UARTx_PFIFO_RXFE ((uint8_t)0x08) /*!< Receive FIFOh */
2109#define UARTx_PFIFO_RXFIFOSIZE_SHIFT 0
2110#define UARTx_PFIFO_RXFIFOSIZE_MASK ((uint8_t)((uint8_t)0x7 << UARTx_PFIFO_RXFIFOSIZE_SHIFT))
2111#define UARTx_PFIFO_RXFIFOSIZE(x) ((uint8_t)(((uint8_t)(x) << UARTx_PFIFO_RXFIFOSIZE_SHIFT) & UARTx_PFIFO_RXFIFOSIZE_MASK)) /*!< Receive FIFO Buffer depth */
2112
2113/****************************************************************/
2114/* */
2115/* Power Management Controller (PMC) */
2116/* */
2117/****************************************************************/
2118/********* Bits definition for PMC_LVDSC1 register *************/
2119#define PMC_LVDSC1_LVDF ((uint8_t)0x80) /*!< Low-Voltage Detect Flag */
2120#define PMC_LVDSC1_LVDACK ((uint8_t)0x40) /*!< Low-Voltage Detect Acknowledge */
2121#define PMC_LVDSC1_LVDIE ((uint8_t)0x20) /*!< Low-Voltage Detect Interrupt Enable */
2122#define PMC_LVDSC1_LVDRE ((uint8_t)0x10) /*!< Low-Voltage Detect Reset Enable */
2123#define PMC_LVDSC1_LVDV_MASK ((uint8_t)0x3) /*!< Low-Voltage Detect Voltage Select */
2124#define PMC_LVDSC1_LVDV_SHIFT 0
2125#define PMC_LVDSC1_LVDV(x) (((uint8_t)(((uint8_t)(x))<<PMC_LVDSC1_LVDV_SHIFT))&PMC_LVDSC1_LVDV_MASK)
2126/********* Bits definition for PMC_LVDSC1 register *************/
2127#define PMC_LVDSC2_LVWF ((uint8_t)0x80) /*!< Low-Voltage Warning Flag */
2128#define PMC_LVDSC2_LVWACK ((uint8_t)0x40) /*!< Low-Voltage Warning Acknowledge */
2129#define PMC_LVDSC2_LVWIE ((uint8_t)0x20) /*!< Low-Voltage Warning Interrupt Enable */
2130#define PMC_LVDSC2_LVWV_MASK 0x3 /*!< Low-Voltage Warning Voltage Select */
2131#define PMC_LVDSC2_LVWV_SHIFT 0
2132#define PMC_LVDSC2_LVWV(x) (((uint8_t)(((uint8_t)(x))<<PMC_LVDSC2_LVWV_SHIFT))&PMC_LVDSC2_LVWV_MASK)
2133/********* Bits definition for PMC_REGSC register *************/
2134#define PMC_REGSC_BGEN ((uint8_t)0x10) /*!< Bandgap Enable In VLPx Operation */
2135#define PMC_REGSC_ACKISO ((uint8_t)0x8) /*!< Acknowledge Isolation */
2136#define PMC_REGSC_REGONS ((uint8_t)0x4) /*!< Regulator In Run Regulation Status */
2137#define PMC_REGSC_BGBE ((uint8_t)0x1) /*!< Bandgap Buffer Enable */
2138
2139/****************************************************************/
2140/* */
2141/* Watchdog */
2142/* */
2143/****************************************************************/
2144/******** Bits definition for WDOG_STCTRLH register ***********/
2145#define WDOG_STCTRLH_DISTESTWDOG ((uint16_t)0x4000)
2146#define WDOG_STCTRLH_BYTESEL_1_0 ((uint16_t)0x3000)
2147#define WDOG_STCTRLH_TESTSEL ((uint16_t)0x0800)
2148#define WDOG_STCTRLH_TESTWDOG ((uint16_t)0x0400)
2149#define WDOG_STCTRLH_WAITEN ((uint16_t)0x0080)
2150#define WDOG_STCTRLH_STOPEN ((uint16_t)0x0040)
2151#define WDOG_STCTRLH_DBGEN ((uint16_t)0x0020)
2152#define WDOG_STCTRLH_ALLOWUPDATE ((uint16_t)0x0010)
2153#define WDOG_STCTRLH_WINEN ((uint16_t)0x0008)
2154#define WDOG_STCTRLH_IRQRSTEN ((uint16_t)0x0004)
2155#define WDOG_STCTRLH_CLKSRC ((uint16_t)0x0002)
2156#define WDOG_STCTRLH_WDOGEN ((uint16_t)0x0001)
2157
2158/******** Bits definition for WDOG_STCTRLL register ***********/
2159#define WDOG_STCTRLL_INTFLG ((uint16_t)0x8000)
2160
2161/********* Bits definition for WDOG_PRESC register ************/
2162#define WDOG_PRESC_PRESCVAL ((uint16_t)0x0700)
2163
2164/****************************************************************/
2165/* */
2166/* USB OTG */
2167/* */
2168/****************************************************************/
2169
2170/******** Bits definition for USBx_ADDINFO register ***********/
2171#define USBx_ADDINFO_IEHOST ((uint8_t)0x01) /*!< Host mode operation? */
2172#define USBx_ADDINFO_IRQNUM_SHIFT 6 /*!< Assigned Interrupt Request Number */
2173#define USBx_ADDINFO_IRQNUM_MASK ((uint8_t)((uint8_t)0x1F << USBx_ADDINFO_IRQNUM_SHIFT))
2174
2175/******** Bits definition for USBx_OTGISTAT register **********/
2176#define USBx_OTGISTAT_IDCHG ((uint8_t)0x80) /*!< Change in the ID Signal from the USB connector is sensed. */
2177#define USBx_OTGISTAT_ONEMSEC ((uint8_t)0x40) /*!< Set when the 1 millisecond timer expires. */
2178#define USBx_OTGISTAT_LINE_STATE_CHG ((uint8_t)0x20) /*!< Set when the USB line state changes. */
2179#define USBx_OTGISTAT_SESSVLDCHG ((uint8_t)0x08) /*!< Set when a change in VBUS is detected indicating a session valid or a session no longer valid. */
2180#define USBx_OTGISTAT_B_SESS_CHG ((uint8_t)0x04) /*!< Set when a change in VBUS is detected on a B device. */
2181#define USBx_OTGISTAT_AVBUSCHG ((uint8_t)0x01) /*!< Set when a change in VBUS is detected on an A device. */
2182
2183/******** Bits definition for USBx_OTGICR register ************/
2184#define USBx_OTGICR_IDEN ((uint8_t)0x80) /*!< ID Interrupt Enable */
2185#define USBx_OTGICR_ONEMSECEN ((uint8_t)0x40) /*!< One Millisecond Interrupt Enable */
2186#define USBx_OTGICR_LINESTATEEN ((uint8_t)0x20) /*!< Line State Change Interrupt Enable */
2187#define USBx_OTGICR_SESSVLDEN ((uint8_t)0x08) /*!< Session Valid Interrupt Enable */
2188#define USBx_OTGICR_BSESSEN ((uint8_t)0x04) /*!< B Session END Interrupt Enable */
2189#define USBx_OTGICR_AVBUSEN ((uint8_t)0x01) /*!< A VBUS Valid Interrupt Enable */
2190
2191/******** Bits definition for USBx_OTGSTAT register ***********/
2192#define USBx_OTGSTAT_ID ((uint8_t)0x80) /*!< Indicates the current state of the ID pin on the USB connector */
2193#define USBx_OTGSTAT_ONEMSECEN ((uint8_t)0x40) /*!< This bit is reserved for the 1ms count, but it is not useful to software. */
2194#define USBx_OTGSTAT_LINESTATESTABLE ((uint8_t)0x20) /*!< Indicates that the internal signals that control the LINE_STATE_CHG field of OTGISTAT are stable for at least 1 millisecond. */
2195#define USBx_OTGSTAT_SESS_VLD ((uint8_t)0x08) /*!< Session Valid */
2196#define USBx_OTGSTAT_BSESSEND ((uint8_t)0x04) /*!< B Session End */
2197#define USBx_OTGSTAT_AVBUSVLD ((uint8_t)0x01) /*!< A VBUS Valid */
2198
2199/******** Bits definition for USBx_OTGCTL register ************/
2200#define USBx_OTGCTL_DPHIGH ((uint8_t)0x80) /*!< D+ Data Line pullup resistor enable */
2201#define USBx_OTGCTL_DPLOW ((uint8_t)0x20) /*!< D+ Data Line pull-down resistor enable */
2202#define USBx_OTGCTL_DMLOW ((uint8_t)0x10) /*!< D– Data Line pull-down resistor enable */
2203#define USBx_OTGCTL_OTGEN ((uint8_t)0x04) /*!< On-The-Go pullup/pulldown resistor enable */
2204
2205/******** Bits definition for USBx_ISTAT register *************/
2206#define USBx_ISTAT_STALL ((uint8_t)0x80) /*!< Stall interrupt */
2207#define USBx_ISTAT_ATTACH ((uint8_t)0x40) /*!< Attach interrupt */
2208#define USBx_ISTAT_RESUME ((uint8_t)0x20) /*!< Signal remote wakeup on the bus */
2209#define USBx_ISTAT_SLEEP ((uint8_t)0x10) /*!< Detected bus idle for 3ms */
2210#define USBx_ISTAT_TOKDNE ((uint8_t)0x08) /*!< Completed processing of current token */
2211#define USBx_ISTAT_SOFTOK ((uint8_t)0x04) /*!< Received start of frame */
2212#define USBx_ISTAT_ERROR ((uint8_t)0x02) /*!< Error (must check ERRSTAT!) */
2213#define USBx_ISTAT_USBRST ((uint8_t)0x01) /*!< USB reset detected */
2214
2215/******** Bits definition for USBx_INTEN register ***************/
2216#define USBx_INTEN_STALLEN ((uint8_t)0x80) /*!< STALL interrupt enable */
2217#define USBx_INTEN_ATTACHEN ((uint8_t)0x40) /*!< ATTACH interrupt enable */
2218#define USBx_INTEN_RESUMEEN ((uint8_t)0x20) /*!< RESUME interrupt enable */
2219#define USBx_INTEN_SLEEPEN ((uint8_t)0x10) /*!< SLEEP interrupt enable */
2220#define USBx_INTEN_TOKDNEEN ((uint8_t)0x08) /*!< TOKDNE interrupt enable */
2221#define USBx_INTEN_SOFTOKEN ((uint8_t)0x04) /*!< SOFTOK interrupt enable */
2222#define USBx_INTEN_ERROREN ((uint8_t)0x02) /*!< ERROR interrupt enable */
2223#define USBx_INTEN_USBRSTEN ((uint8_t)0x01) /*!< USBRST interrupt enable */
2224
2225/******** Bits definition for USBx_ERRSTAT register ***********/
2226#define USBx_ERRSTAT_BTSERR ((uint8_t)0x80) /*!< Bit stuff error detected */
2227#define USBx_ERRSTAT_DMAERR ((uint8_t)0x20) /*!< DMA request was not given */
2228#define USBx_ERRSTAT_BTOERR ((uint8_t)0x10) /*!< BUS turnaround timeout error */
2229#define USBx_ERRSTAT_DFN8 ((uint8_t)0x08) /*!< Received data not 8-bit sized */
2230#define USBx_ERRSTAT_CRC16 ((uint8_t)0x04) /*!< Packet with CRC16 error */
2231#define USBx_ERRSTAT_CRC5EOF ((uint8_t)0x02) /*!< CRC5 (device) or EOF (host) error */
2232#define USBx_ERRSTAT_PIDERR ((uint8_t)0x01) /*!< PID check field fail */
2233
2234/******** Bits definition for USBx_STAT register *************/
2235#define USBx_STAT_ENDP_MASK ((uint8_t)0xF0) /*!< Endpoint address mask*/
2236#define USBx_STAT_ENDP_SHIFT ((uint8_t)0x04) /*!< Endpoint address shift*/
2237#define USBx_STAT_TX_MASK ((uint8_t)0x08) /*!< Transmit indicator mask*/
2238#define USBx_STAT_TX_SHIFT ((uint8_t)0x03) /*!< Transmit indicator shift*/
2239#define USBx_STAT_ODD_MASK ((uint8_t)0x04) /*!< EVEN/ODD bank indicator mask*/
2240#define USBx_STAT_ODD_SHIFT ((uint8_t)0x02) /*!< EVEN/ODD bank indicator shift */
2241
2242/******** Bits definition for USBx_CTL register *****************/
2243#define USBx_CTL_JSTATE ((uint8_t)0x80) /*!< Live USB differential receiver JSTATE signal */
2244#define USBx_CTL_SE0 ((uint8_t)0x40) /*!< Live USB single ended zero signal */
2245#define USBx_CTL_TXSUSPENDTOKENBUSY ((uint8_t)0x20) /*!< */
2246#define USBx_CTL_RESET ((uint8_t)0x10) /*!< Generates an USB reset signal (host mode) */
2247#define USBx_CTL_HOSTMODEEN ((uint8_t)0x08) /*!< Operate in Host mode */
2248#define USBx_CTL_RESUME ((uint8_t)0x04) /*!< Executes resume signaling */
2249#define USBx_CTL_ODDRST ((uint8_t)0x02) /*!< Reset all BDT ODD ping/pong bits */
2250#define USBx_CTL_USBENSOFEN ((uint8_t)0x01) /*!< USB Enable! */
2251
2252/******** Bits definition for USBx_ADDR register ****************/
2253#define USBx_ADDR_LSEN ((uint8_t)0x80) /*!< Low Speed Enable bit */
2254#define USBx_ADDR_ADDR_SHIFT 0 /*!< USB Address */
2255#define USBx_ADDR_ADDR_MASK ((uint8_t)0x7F) /*!< USB Address */
2256
2257/******** Bits definition for USBx_ENDPTn register **************/
2258#define USBx_ENDPTn_HOSTWOHUB ((uint8_t)0x80)
2259#define USBx_ENDPTn_RETRYDIS ((uint8_t)0x40)
2260#define USBx_ENDPTn_EPCTLDIS ((uint8_t)0x10) /*!< Disables control transfers */
2261#define USBx_ENDPTn_EPRXEN ((uint8_t)0x08) /*!< Enable RX transfers */
2262#define USBx_ENDPTn_EPTXEN ((uint8_t)0x04) /*!< Enable TX transfers */
2263#define USBx_ENDPTn_EPSTALL ((uint8_t)0x02) /*!< Endpoint is called and in STALL */
2264#define USBx_ENDPTn_EPHSHK ((uint8_t)0x01) /*!< Enable handshaking during transaction */
2265
2266/******** Bits definition for USBx_USBCTRL register *************/
2267#define USBx_USBCTRL_SUSP ((uint8_t)0x80) /*!< USB transceiver in suspend state */
2268#define USBx_USBCTRL_PDE ((uint8_t)0x40) /*!< Enable weak pull-downs */
2269
2270/******** Bits definition for USBx_OBSERVE register *************/
2271#define USBx_OBSERVE_DPPU ((uint8_t)0x80) /*!< Provides observability of the D+ Pullup . signal output from the USB OTG module */
2272#define USBx_OBSERVE_DPPD ((uint8_t)0x40) /*!< Provides observability of the D+ Pulldown . signal output from the USB OTG module */
2273#define USBx_OBSERVE_DMPD ((uint8_t)0x10) /*!< Provides observability of the D- Pulldown signal output from the USB OTG module */
2274
2275/******** Bits definition for USBx_CONTROL register *************/
2276#define USBx_CONTROL_DPPULLUPNONOTG ((uint8_t)0x10) /*!< Control pull-ups in device mode */
2277
2278/******** Bits definition for USBx_USBTRC0 register *************/
2279#define USBx_USBTRC0_USBRESET ((uint8_t)0x80) /*!< USB reset */
2280#define USBx_USBTRC0_USBRESMEN ((uint8_t)0x20) /*!< Asynchronous resume interrupt enable */
2281#define USBx_USBTRC0_SYNC_DET ((uint8_t)0x02) /*!< Synchronous USB interrupt detect */
2282#define USBx_USBTRC0_USB_RESUME_INT ((uint8_t)0x01) /*!< USB asynchronous interrupt */
2283
2284/****************************************************************/
2285/* */
2286/* Flash Memory Module (FTFL) */
2287/* */
2288/****************************************************************/
2289/********** Bits definition for FTFL_FSTAT register ***********/
2290#define FTFL_FSTAT_CCIF ((uint8_t)0x80) /*!< Command Complete Interrupt Flag */
2291#define FTFL_FSTAT_RDCOLERR ((uint8_t)0x40) /*!< Flash Read Collision Error Flag */
2292#define FTFL_FSTAT_ACCERR ((uint8_t)0x20) /*!< Flash Access Error Flag */
2293#define FTFL_FSTAT_FPVIOL ((uint8_t)0x10) /*!< Flash Protection Violation Flag */
2294#define FTFL_FSTAT_MGSTAT0 ((uint8_t)0x01) /*!< Memory Controller Command Completion Status Flag */
2295
2296/********** Bits definition for FTFL_FCNFG register ***********/
2297#define FTFL_FCNFG_CCIE ((uint8_t)0x80) /*!< Command Complete Interrupt Enable */
2298#define FTFL_FCNFG_RDCOLLIE ((uint8_t)0x40) /*!< Read Collision Error Interrupt Enable */
2299#define FTFL_FCNFG_ERSAREQ ((uint8_t)0x20) /*!< Erase All Request */
2300#define FTFL_FCNFG_ERSSUSP ((uint8_t)0x10) /*!< Erase Suspend */
2301#define FTFL_FCNFG_PFLSH ((uint8_t)0x04) /*!< Flash memory configuration */
2302#define FTFL_FCNFG_RAMRDY ((uint8_t)0x02) /*!< RAM Ready */
2303#define FTFL_FCNFG_EEERDY ((uint8_t)0x01) /*!< EEPROM backup data has been copied to the FlexRAM and is therefore available for read access */
2304
2305/********** Bits definition for FTFL_FSEC register ************/
2306#define FTFL_FSEC_KEYEN_MASK ((uint8_t)0xC0) /*!< Backdoor Key Security Enable */
2307#define FTFL_FSEC_MEEN_MASK ((uint8_t)0x30) /*!< Mass Erase Enable Bits */
2308#define FTFL_FSEC_FSLACC_MASK ((uint8_t)0x0C) /*!< Freescale Failure Analysis Access Code */
2309#define FTFL_FSEC_SEC_MASK ((uint8_t)0x03) /*!< Flash Security */
2310#define FTFL_FSEC_KEYEN_ENABLED ((uint8_t)0x80)
2311#define FTFL_FSEC_MEEN_DISABLED ((uint8_t)0x20)
2312#define FTFL_FSEC_SEC_UNSECURE ((uint8_t)0x02)
2313
2314/********** Bits definition for FTFL_FOPT register ************/
2315#define FTFL_FOPT_NMI_DIS ((uint8_t)0x04) /*!< Enables/disables control for the NMI function */
2316#define FTFL_FOPT_EZPORT_DIS ((uint8_t)0x02) /*!< EzPort operation */
2317#define FTFL_FOPT_LPBOOT ((uint8_t)0x01) /*!< Normal/low-power boot*/
2318
2319#endif
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k64f.h b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k64f.h
new file mode 100644
index 000000000..2a313d16e
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/k64f.h
@@ -0,0 +1,8107 @@
1/*
2** ###################################################################
3** Processors: MK64FN1M0CAJ12
4** MK64FN1M0VDC12
5** MK64FN1M0VLL12
6** MK64FN1M0VLQ12
7** MK64FN1M0VMD12
8** MK64FX512VDC12
9** MK64FX512VLL12
10** MK64FX512VLQ12
11** MK64FX512VMD12
12**
13** Compilers: Keil ARM C/C++ Compiler
14** Freescale C/C++ for Embedded ARM
15** GNU C Compiler
16** IAR ANSI C/C++ Compiler for ARM
17**
18** Reference manual: K64P144M120SF5RM, Rev.2, January 2014
19** Version: rev. 2.9, 2016-03-21
20** Build: b160321
21**
22** Abstract:
23** CMSIS Peripheral Access Layer for MK64F12
24**
25** Copyright (c) 1997 - 2016 Freescale Semiconductor, Inc.
26** All rights reserved.
27**
28** Redistribution and use in source and binary forms, with or without modification,
29** are permitted provided that the following conditions are met:
30**
31** o Redistributions of source code must retain the above copyright notice, this list
32** of conditions and the following disclaimer.
33**
34** o Redistributions in binary form must reproduce the above copyright notice, this
35** list of conditions and the following disclaimer in the documentation and/or
36** other materials provided with the distribution.
37**
38** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
39** contributors may be used to endorse or promote products derived from this
40** software without specific prior written permission.
41**
42** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
43** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
44** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
45** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
46** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
47** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
48** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
49** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
50** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
51** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52**
53** http: www.freescale.com
54** mail: [email protected]
55**
56** Revisions:
57** - rev. 1.0 (2013-08-12)
58** Initial version.
59** - rev. 2.0 (2013-10-29)
60** Register accessor macros added to the memory map.
61** Symbols for Processor Expert memory map compatibility added to the memory map.
62** Startup file for gcc has been updated according to CMSIS 3.2.
63** System initialization updated.
64** MCG - registers updated.
65** PORTA, PORTB, PORTC, PORTE - registers for digital filter removed.
66** - rev. 2.1 (2013-10-30)
67** Definition of BITBAND macros updated to support peripherals with 32-bit acces disabled.
68** - rev. 2.2 (2013-12-09)
69** DMA - EARS register removed.
70** AIPS0, AIPS1 - MPRA register updated.
71** - rev. 2.3 (2014-01-24)
72** Update according to reference manual rev. 2
73** ENET, MCG, MCM, SIM, USB - registers updated
74** - rev. 2.4 (2014-02-10)
75** The declaration of clock configurations has been moved to separate header file system_MK64F12.h
76** Update of SystemInit() and SystemCoreClockUpdate() functions.
77** - rev. 2.5 (2014-02-10)
78** The declaration of clock configurations has been moved to separate header file system_MK64F12.h
79** Update of SystemInit() and SystemCoreClockUpdate() functions.
80** Module access macro module_BASES replaced by module_BASE_PTRS.
81** - rev. 2.6 (2014-08-28)
82** Update of system files - default clock configuration changed.
83** Update of startup files - possibility to override DefaultISR added.
84** - rev. 2.7 (2014-10-14)
85** Interrupt INT_LPTimer renamed to INT_LPTMR0, interrupt INT_Watchdog renamed to INT_WDOG_EWM.
86** - rev. 2.8 (2015-02-19)
87** Renamed interrupt vector LLW to LLWU.
88** - rev. 2.9 (2016-03-21)
89** Added MK64FN1M0CAJ12 part.
90** GPIO - renamed port instances: PTx -> GPIOx.
91**
92** ###################################################################
93*/
94
95/*!
96 * @file MK64F12.h
97 * @version 2.9
98 * @date 2016-03-21
99 * @brief CMSIS Peripheral Access Layer for MK64F12
100 *
101 * CMSIS Peripheral Access Layer for MK64F12
102 */
103
104#ifndef _MK64F12_H_
105#define _MK64F12_H_ /**< Symbol preventing repeated inclusion */
106
107/** Memory map major version (memory maps with equal major version number are
108 * compatible) */
109#define MCU_MEM_MAP_VERSION 0x0200U
110/** Memory map minor version */
111#define MCU_MEM_MAP_VERSION_MINOR 0x0009U
112
113/**
114 * @brief Macro to calculate address of an aliased word in the peripheral
115 * bitband area for a peripheral register and bit (bit band region 0x40000000 to
116 * 0x400FFFFF).
117 * @param Reg Register to access.
118 * @param Bit Bit number to access.
119 * @return Address of the aliased word in the peripheral bitband area.
120 */
121#define BITBAND_REGADDR(Reg,Bit) (0x42000000u + (32u*((uint32_t)&(Reg) - (uint32_t)0x40000000u)) + (4u*((uint32_t)(Bit))))
122/**
123 * @brief Macro to access a single bit of a peripheral register (bit band region
124 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
125 * be used for peripherals with 32bit access allowed.
126 * @param Reg Register to access.
127 * @param Bit Bit number to access.
128 * @return Value of the targeted bit in the bit band region.
129 */
130#define BITBAND_REG32(Reg,Bit) (*((uint32_t volatile*)(BITBAND_REGADDR((Reg),(Bit)))))
131#define BITBAND_REG(Reg,Bit) (BITBAND_REG32((Reg),(Bit)))
132/**
133 * @brief Macro to access a single bit of a peripheral register (bit band region
134 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
135 * be used for peripherals with 16bit access allowed.
136 * @param Reg Register to access.
137 * @param Bit Bit number to access.
138 * @return Value of the targeted bit in the bit band region.
139 */
140#define BITBAND_REG16(Reg,Bit) (*((uint16_t volatile*)(BITBAND_REGADDR((Reg),(Bit)))))
141/**
142 * @brief Macro to access a single bit of a peripheral register (bit band region
143 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
144 * be used for peripherals with 8bit access allowed.
145 * @param Reg Register to access.
146 * @param Bit Bit number to access.
147 * @return Value of the targeted bit in the bit band region.
148 */
149#define BITBAND_REG8(Reg,Bit) (*((uint8_t volatile*)(BITBAND_REGADDR((Reg),(Bit)))))
150
151/* ----------------------------------------------------------------------------
152 -- Interrupt vector numbers
153 ---------------------------------------------------------------------------- */
154
155/*!
156 * @addtogroup Interrupt_vector_numbers Interrupt vector numbers
157 * @{
158 */
159
160/** Interrupt Number Definitions */
161#define NUMBER_OF_INT_VECTORS 102 /**< Number of interrupts in the Vector table */
162
163typedef enum IRQn {
164 /* Auxiliary constants */
165 NotAvail_IRQn = -128, /**< Not available device specific interrupt */
166
167 /* Core interrupts */
168 NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */
169 HardFault_IRQn = -13, /**< Cortex-M4 SV Hard Fault Interrupt */
170 MemoryManagement_IRQn = -12, /**< Cortex-M4 Memory Management Interrupt */
171 BusFault_IRQn = -11, /**< Cortex-M4 Bus Fault Interrupt */
172 UsageFault_IRQn = -10, /**< Cortex-M4 Usage Fault Interrupt */
173 SVCall_IRQn = -5, /**< Cortex-M4 SV Call Interrupt */
174 DebugMonitor_IRQn = -4, /**< Cortex-M4 Debug Monitor Interrupt */
175 PendSV_IRQn = -2, /**< Cortex-M4 Pend SV Interrupt */
176 SysTick_IRQn = -1, /**< Cortex-M4 System Tick Interrupt */
177
178 /* Device specific interrupts */
179 DMA0_IRQn = 0, /**< DMA Channel 0 Transfer Complete */
180 DMA1_IRQn = 1, /**< DMA Channel 1 Transfer Complete */
181 DMA2_IRQn = 2, /**< DMA Channel 2 Transfer Complete */
182 DMA3_IRQn = 3, /**< DMA Channel 3 Transfer Complete */
183 DMA4_IRQn = 4, /**< DMA Channel 4 Transfer Complete */
184 DMA5_IRQn = 5, /**< DMA Channel 5 Transfer Complete */
185 DMA6_IRQn = 6, /**< DMA Channel 6 Transfer Complete */
186 DMA7_IRQn = 7, /**< DMA Channel 7 Transfer Complete */
187 DMA8_IRQn = 8, /**< DMA Channel 8 Transfer Complete */
188 DMA9_IRQn = 9, /**< DMA Channel 9 Transfer Complete */
189 DMA10_IRQn = 10, /**< DMA Channel 10 Transfer Complete */
190 DMA11_IRQn = 11, /**< DMA Channel 11 Transfer Complete */
191 DMA12_IRQn = 12, /**< DMA Channel 12 Transfer Complete */
192 DMA13_IRQn = 13, /**< DMA Channel 13 Transfer Complete */
193 DMA14_IRQn = 14, /**< DMA Channel 14 Transfer Complete */
194 DMA15_IRQn = 15, /**< DMA Channel 15 Transfer Complete */
195 DMA_Error_IRQn = 16, /**< DMA Error Interrupt */
196 MCM_IRQn = 17, /**< Normal Interrupt */
197 FTFE_IRQn = 18, /**< FTFE Command complete interrupt */
198 Read_Collision_IRQn = 19, /**< Read Collision Interrupt */
199 LVD_LVW_IRQn = 20, /**< Low Voltage Detect, Low Voltage Warning */
200 LLWU_IRQn = 21, /**< Low Leakage Wakeup Unit */
201 WDOG_EWM_IRQn = 22, /**< WDOG Interrupt */
202 RNG_IRQn = 23, /**< RNG Interrupt */
203 I2C0_IRQn = 24, /**< I2C0 interrupt */
204 I2C1_IRQn = 25, /**< I2C1 interrupt */
205 SPI0_IRQn = 26, /**< SPI0 Interrupt */
206 SPI1_IRQn = 27, /**< SPI1 Interrupt */
207 I2S0_Tx_IRQn = 28, /**< I2S0 transmit interrupt */
208 I2S0_Rx_IRQn = 29, /**< I2S0 receive interrupt */
209 UART0_LON_IRQn = 30, /**< UART0 LON interrupt */
210 UART0Status_IRQn = 31, /**< UART0 Receive/Transmit interrupt */
211 UART0Error_IRQn = 32, /**< UART0 Error interrupt */
212 UART1Status_IRQn = 33, /**< UART1 Receive/Transmit interrupt */
213 UART1Error_IRQn = 34, /**< UART1 Error interrupt */
214 UART2Status_IRQn = 35, /**< UART2 Receive/Transmit interrupt */
215 UART2Error_IRQn = 36, /**< UART2 Error interrupt */
216 UART3Status_IRQn = 37, /**< UART3 Receive/Transmit interrupt */
217 UART3Error_IRQn = 38, /**< UART3 Error interrupt */
218 ADC0_IRQn = 39, /**< ADC0 interrupt */
219 CMP0_IRQn = 40, /**< CMP0 interrupt */
220 CMP1_IRQn = 41, /**< CMP1 interrupt */
221 FTM0_IRQn = 42, /**< FTM0 fault, overflow and channels interrupt */
222 FTM1_IRQn = 43, /**< FTM1 fault, overflow and channels interrupt */
223 FTM2_IRQn = 44, /**< FTM2 fault, overflow and channels interrupt */
224 CMT_IRQn = 45, /**< CMT interrupt */
225 RTC_IRQn = 46, /**< RTC interrupt */
226 RTC_Seconds_IRQn = 47, /**< RTC seconds interrupt */
227 PIT0_IRQn = 48, /**< PIT timer channel 0 interrupt */
228 PIT1_IRQn = 49, /**< PIT timer channel 1 interrupt */
229 PIT2_IRQn = 50, /**< PIT timer channel 2 interrupt */
230 PIT3_IRQn = 51, /**< PIT timer channel 3 interrupt */
231 PDB0_IRQn = 52, /**< PDB0 Interrupt */
232 USB0_IRQn = 53, /**< USB0 interrupt */
233 USBDCD_IRQn = 54, /**< USBDCD Interrupt */
234 Reserved71_IRQn = 55, /**< Reserved interrupt 71 */
235 DAC0_IRQn = 56, /**< DAC0 interrupt */
236 MCG_IRQn = 57, /**< MCG Interrupt */
237 LPTMR0_IRQn = 58, /**< LPTimer interrupt */
238 PORTA_IRQn = 59, /**< Port A interrupt */
239 PORTB_IRQn = 60, /**< Port B interrupt */
240 PORTC_IRQn = 61, /**< Port C interrupt */
241 PORTD_IRQn = 62, /**< Port D interrupt */
242 PORTE_IRQn = 63, /**< Port E interrupt */
243 SWI_IRQn = 64, /**< Software interrupt */
244 SPI2_IRQn = 65, /**< SPI2 Interrupt */
245 UART4Status_IRQn = 66, /**< UART4 Receive/Transmit interrupt */
246 UART4Error_IRQn = 67, /**< UART4 Error interrupt */
247 UART5Status_IRQn = 68, /**< UART5 Receive/Transmit interrupt */
248 UART5Error_IRQn = 69, /**< UART5 Error interrupt */
249 CMP2_IRQn = 70, /**< CMP2 interrupt */
250 FTM3_IRQn = 71, /**< FTM3 fault, overflow and channels interrupt */
251 DAC1_IRQn = 72, /**< DAC1 interrupt */
252 ADC1_IRQn = 73, /**< ADC1 interrupt */
253 I2C2_IRQn = 74, /**< I2C2 interrupt */
254 CAN0_ORed_Message_buffer_IRQn = 75, /**< CAN0 OR'd message buffers interrupt */
255 CAN0_Bus_Off_IRQn = 76, /**< CAN0 bus off interrupt */
256 CAN0_Error_IRQn = 77, /**< CAN0 error interrupt */
257 CAN0_Tx_Warning_IRQn = 78, /**< CAN0 Tx warning interrupt */
258 CAN0_Rx_Warning_IRQn = 79, /**< CAN0 Rx warning interrupt */
259 CAN0_Wake_Up_IRQn = 80, /**< CAN0 wake up interrupt */
260 SDHC_IRQn = 81, /**< SDHC interrupt */
261 ENET_1588_Timer_IRQn = 82, /**< Ethernet MAC IEEE 1588 Timer Interrupt */
262 ENET_Transmit_IRQn = 83, /**< Ethernet MAC Transmit Interrupt */
263 ENET_Receive_IRQn = 84, /**< Ethernet MAC Receive Interrupt */
264 ENET_Error_IRQn = 85 /**< Ethernet MAC Error and miscelaneous Interrupt */
265} IRQn_Type;
266
267/*!
268 * @}
269 */ /* end of group Interrupt_vector_numbers */
270
271
272/* ----------------------------------------------------------------------------
273 -- Cortex M4 Core Configuration
274 ---------------------------------------------------------------------------- */
275
276/*!
277 * @addtogroup Cortex_Core_Configuration Cortex M4 Core Configuration
278 * @{
279 */
280
281#define __MPU_PRESENT 0 /**< Defines if an MPU is present or not */
282#define __NVIC_PRIO_BITS 4 /**< Number of priority bits implemented in the NVIC */
283#define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */
284#define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */
285
286#include "core_cm4.h" /* Core Peripheral Access Layer */
287/* #include "system_MK64F12.h" /+ Device specific configuration file */
288
289/*!
290 * @}
291 */ /* end of group Cortex_Core_Configuration */
292
293
294/* ----------------------------------------------------------------------------
295 -- Mapping Information
296 ---------------------------------------------------------------------------- */
297
298/*!
299 * @addtogroup Mapping_Information Mapping Information
300 * @{
301 */
302
303/** Mapping Information */
304/*!
305 * @addtogroup edma_request
306 * @{
307 */
308
309/*******************************************************************************
310 * Definitions
311 ******************************************************************************/
312
313/*!
314 * @brief Structure for the DMA hardware request
315 *
316 * Defines the structure for the DMA hardware request collections. The user can configure the
317 * hardware request into DMAMUX to trigger the DMA transfer accordingly. The index
318 * of the hardware request varies according to the to SoC.
319 */
320typedef enum _dma_request_source
321{
322 kDmaRequestMux0Disable = 0|0x100U, /**< DMAMUX TriggerDisabled. */
323 kDmaRequestMux0Reserved1 = 1|0x100U, /**< Reserved1 */
324 kDmaRequestMux0UART0Rx = 2|0x100U, /**< UART0 Receive. */
325 kDmaRequestMux0UART0Tx = 3|0x100U, /**< UART0 Transmit. */
326 kDmaRequestMux0UART1Rx = 4|0x100U, /**< UART1 Receive. */
327 kDmaRequestMux0UART1Tx = 5|0x100U, /**< UART1 Transmit. */
328 kDmaRequestMux0UART2Rx = 6|0x100U, /**< UART2 Receive. */
329 kDmaRequestMux0UART2Tx = 7|0x100U, /**< UART2 Transmit. */
330 kDmaRequestMux0UART3Rx = 8|0x100U, /**< UART3 Receive. */
331 kDmaRequestMux0UART3Tx = 9|0x100U, /**< UART3 Transmit. */
332 kDmaRequestMux0UART4 = 10|0x100U, /**< UART4 Transmit or Receive. */
333 kDmaRequestMux0UART5 = 11|0x100U, /**< UART5 Transmit or Receive. */
334 kDmaRequestMux0I2S0Rx = 12|0x100U, /**< I2S0 Receive. */
335 kDmaRequestMux0I2S0Tx = 13|0x100U, /**< I2S0 Transmit. */
336 kDmaRequestMux0SPI0Rx = 14|0x100U, /**< SPI0 Receive. */
337 kDmaRequestMux0SPI0Tx = 15|0x100U, /**< SPI0 Transmit. */
338 kDmaRequestMux0SPI1 = 16|0x100U, /**< SPI1 Transmit or Receive. */
339 kDmaRequestMux0SPI2 = 17|0x100U, /**< SPI2 Transmit or Receive. */
340 kDmaRequestMux0I2C0 = 18|0x100U, /**< I2C0. */
341 kDmaRequestMux0I2C1I2C2 = 19|0x100U, /**< I2C1 and I2C2. */
342 kDmaRequestMux0I2C1 = 19|0x100U, /**< I2C1 and I2C2. */
343 kDmaRequestMux0I2C2 = 19|0x100U, /**< I2C1 and I2C2. */
344 kDmaRequestMux0FTM0Channel0 = 20|0x100U, /**< FTM0 C0V. */
345 kDmaRequestMux0FTM0Channel1 = 21|0x100U, /**< FTM0 C1V. */
346 kDmaRequestMux0FTM0Channel2 = 22|0x100U, /**< FTM0 C2V. */
347 kDmaRequestMux0FTM0Channel3 = 23|0x100U, /**< FTM0 C3V. */
348 kDmaRequestMux0FTM0Channel4 = 24|0x100U, /**< FTM0 C4V. */
349 kDmaRequestMux0FTM0Channel5 = 25|0x100U, /**< FTM0 C5V. */
350 kDmaRequestMux0FTM0Channel6 = 26|0x100U, /**< FTM0 C6V. */
351 kDmaRequestMux0FTM0Channel7 = 27|0x100U, /**< FTM0 C7V. */
352 kDmaRequestMux0FTM1Channel0 = 28|0x100U, /**< FTM1 C0V. */
353 kDmaRequestMux0FTM1Channel1 = 29|0x100U, /**< FTM1 C1V. */
354 kDmaRequestMux0FTM2Channel0 = 30|0x100U, /**< FTM2 C0V. */
355 kDmaRequestMux0FTM2Channel1 = 31|0x100U, /**< FTM2 C1V. */
356 kDmaRequestMux0FTM3Channel0 = 32|0x100U, /**< FTM3 C0V. */
357 kDmaRequestMux0FTM3Channel1 = 33|0x100U, /**< FTM3 C1V. */
358 kDmaRequestMux0FTM3Channel2 = 34|0x100U, /**< FTM3 C2V. */
359 kDmaRequestMux0FTM3Channel3 = 35|0x100U, /**< FTM3 C3V. */
360 kDmaRequestMux0FTM3Channel4 = 36|0x100U, /**< FTM3 C4V. */
361 kDmaRequestMux0FTM3Channel5 = 37|0x100U, /**< FTM3 C5V. */
362 kDmaRequestMux0FTM3Channel6 = 38|0x100U, /**< FTM3 C6V. */
363 kDmaRequestMux0FTM3Channel7 = 39|0x100U, /**< FTM3 C7V. */
364 kDmaRequestMux0ADC0 = 40|0x100U, /**< ADC0. */
365 kDmaRequestMux0ADC1 = 41|0x100U, /**< ADC1. */
366 kDmaRequestMux0CMP0 = 42|0x100U, /**< CMP0. */
367 kDmaRequestMux0CMP1 = 43|0x100U, /**< CMP1. */
368 kDmaRequestMux0CMP2 = 44|0x100U, /**< CMP2. */
369 kDmaRequestMux0DAC0 = 45|0x100U, /**< DAC0. */
370 kDmaRequestMux0DAC1 = 46|0x100U, /**< DAC1. */
371 kDmaRequestMux0CMT = 47|0x100U, /**< CMT. */
372 kDmaRequestMux0PDB = 48|0x100U, /**< PDB0. */
373 kDmaRequestMux0PortA = 49|0x100U, /**< PTA. */
374 kDmaRequestMux0PortB = 50|0x100U, /**< PTB. */
375 kDmaRequestMux0PortC = 51|0x100U, /**< PTC. */
376 kDmaRequestMux0PortD = 52|0x100U, /**< PTD. */
377 kDmaRequestMux0PortE = 53|0x100U, /**< PTE. */
378 kDmaRequestMux0IEEE1588Timer0 = 54|0x100U, /**< ENET IEEE 1588 timer 0. */
379 kDmaRequestMux0IEEE1588Timer1 = 55|0x100U, /**< ENET IEEE 1588 timer 1. */
380 kDmaRequestMux0IEEE1588Timer2 = 56|0x100U, /**< ENET IEEE 1588 timer 2. */
381 kDmaRequestMux0IEEE1588Timer3 = 57|0x100U, /**< ENET IEEE 1588 timer 3. */
382 kDmaRequestMux0AlwaysOn58 = 58|0x100U, /**< DMAMUX Always Enabled slot. */
383 kDmaRequestMux0AlwaysOn59 = 59|0x100U, /**< DMAMUX Always Enabled slot. */
384 kDmaRequestMux0AlwaysOn60 = 60|0x100U, /**< DMAMUX Always Enabled slot. */
385 kDmaRequestMux0AlwaysOn61 = 61|0x100U, /**< DMAMUX Always Enabled slot. */
386 kDmaRequestMux0AlwaysOn62 = 62|0x100U, /**< DMAMUX Always Enabled slot. */
387 kDmaRequestMux0AlwaysOn63 = 63|0x100U, /**< DMAMUX Always Enabled slot. */
388} dma_request_source_t;
389
390/* @} */
391
392
393/*!
394 * @}
395 */ /* end of group Mapping_Information */
396
397
398/* ----------------------------------------------------------------------------
399 -- Device Peripheral Access Layer
400 ---------------------------------------------------------------------------- */
401
402/*!
403 * @addtogroup Peripheral_access_layer Device Peripheral Access Layer
404 * @{
405 */
406
407
408/*
409** Start of section using anonymous unions
410*/
411
412#if defined(__ARMCC_VERSION)
413 #pragma push
414 #pragma anon_unions
415#elif defined(__CWCC__)
416 #pragma push
417 #pragma cpp_extensions on
418#elif defined(__GNUC__)
419 /* anonymous unions are enabled by default */
420#elif defined(__IAR_SYSTEMS_ICC__)
421 #pragma language=extended
422#else
423 #error Not supported compiler type
424#endif
425
426/* ----------------------------------------------------------------------------
427 -- ADC Peripheral Access Layer
428 ---------------------------------------------------------------------------- */
429
430/*!
431 * @addtogroup ADC_Peripheral_Access_Layer ADC Peripheral Access Layer
432 * @{
433 */
434
435/** ADC - Register Layout Typedef */
436typedef struct {
437 __IO uint32_t SC1[2]; /**< ADC Status and Control Registers 1, array offset: 0x0, array step: 0x4 */
438 __IO uint32_t CFG1; /**< ADC Configuration Register 1, offset: 0x8 */
439 __IO uint32_t CFG2; /**< ADC Configuration Register 2, offset: 0xC */
440 __I uint32_t R[2]; /**< ADC Data Result Register, array offset: 0x10, array step: 0x4 */
441 __IO uint32_t CV1; /**< Compare Value Registers, offset: 0x18 */
442 __IO uint32_t CV2; /**< Compare Value Registers, offset: 0x1C */
443 __IO uint32_t SC2; /**< Status and Control Register 2, offset: 0x20 */
444 __IO uint32_t SC3; /**< Status and Control Register 3, offset: 0x24 */
445 __IO uint32_t OFS; /**< ADC Offset Correction Register, offset: 0x28 */
446 __IO uint32_t PG; /**< ADC Plus-Side Gain Register, offset: 0x2C */
447 __IO uint32_t MG; /**< ADC Minus-Side Gain Register, offset: 0x30 */
448 __IO uint32_t CLPD; /**< ADC Plus-Side General Calibration Value Register, offset: 0x34 */
449 __IO uint32_t CLPS; /**< ADC Plus-Side General Calibration Value Register, offset: 0x38 */
450 __IO uint32_t CLP4; /**< ADC Plus-Side General Calibration Value Register, offset: 0x3C */
451 __IO uint32_t CLP3; /**< ADC Plus-Side General Calibration Value Register, offset: 0x40 */
452 __IO uint32_t CLP2; /**< ADC Plus-Side General Calibration Value Register, offset: 0x44 */
453 __IO uint32_t CLP1; /**< ADC Plus-Side General Calibration Value Register, offset: 0x48 */
454 __IO uint32_t CLP0; /**< ADC Plus-Side General Calibration Value Register, offset: 0x4C */
455 uint8_t RESERVED_0[4];
456 __IO uint32_t CLMD; /**< ADC Minus-Side General Calibration Value Register, offset: 0x54 */
457 __IO uint32_t CLMS; /**< ADC Minus-Side General Calibration Value Register, offset: 0x58 */
458 __IO uint32_t CLM4; /**< ADC Minus-Side General Calibration Value Register, offset: 0x5C */
459 __IO uint32_t CLM3; /**< ADC Minus-Side General Calibration Value Register, offset: 0x60 */
460 __IO uint32_t CLM2; /**< ADC Minus-Side General Calibration Value Register, offset: 0x64 */
461 __IO uint32_t CLM1; /**< ADC Minus-Side General Calibration Value Register, offset: 0x68 */
462 __IO uint32_t CLM0; /**< ADC Minus-Side General Calibration Value Register, offset: 0x6C */
463} ADC_TypeDef;
464
465/* ----------------------------------------------------------------------------
466 -- ADC Register Masks
467 ---------------------------------------------------------------------------- */
468
469/*!
470 * @addtogroup ADC_Register_Masks ADC Register Masks
471 * @{
472 */
473
474/*! @name SC1 - ADC Status and Control Registers 1 */
475#define ADCx_SC1n_ADCH_MASK (0x1FU)
476#define ADCx_SC1n_ADCH_SHIFT (0U)
477#define ADCx_SC1n_ADCH(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC1n_ADCH_SHIFT)) & ADCx_SC1n_ADCH_MASK)
478#define ADCx_SC1n_DIFF (0x20U)
479#define ADCx_SC1n_AIEN (0x40U)
480#define ADCx_SC1n_COCO (0x80U)
481
482/* The count of ADC_SC1 */
483#define ADCx_SC1_COUNT (2U)
484
485/*! @name CFG1 - ADC Configuration Register 1 */
486#define ADCx_CFG1_ADICLK_MASK (0x3U)
487#define ADCx_CFG1_ADICLK_SHIFT (0U)
488#define ADCx_CFG1_ADICLK(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG1_ADICLK_SHIFT)) & ADCx_CFG1_ADICLK_MASK)
489#define ADCx_CFG1_MODE_MASK (0xCU)
490#define ADCx_CFG1_MODE_SHIFT (2U)
491#define ADCx_CFG1_MODE(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG1_MODE_SHIFT)) & ADCx_CFG1_MODE_MASK)
492#define ADCx_CFG1_ADLSMP (0x10U)
493#define ADCx_CFG1_ADIV_MASK (0x60U)
494#define ADCx_CFG1_ADIV_SHIFT (5U)
495#define ADCx_CFG1_ADIV(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG1_ADIV_SHIFT)) & ADCx_CFG1_ADIV_MASK)
496#define ADCx_CFG1_ADLPC (0x80U)
497
498/*! @name CFG2 - ADC Configuration Register 2 */
499#define ADCx_CFG2_ADLSTS_MASK (0x3U)
500#define ADCx_CFG2_ADLSTS_SHIFT (0U)
501#define ADCx_CFG2_ADLSTS(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CFG2_ADLSTS_SHIFT)) & ADCx_CFG2_ADLSTS_MASK)
502#define ADCx_CFG2_ADHSC (0x4U)
503#define ADCx_CFG2_ADACKEN (0x8U)
504#define ADCx_CFG2_MUXSEL (0x10U)
505
506/*! @name R - ADC Data Result Register */
507#define ADCx_Rn_D_MASK (0xFFFFU)
508#define ADCx_Rn_D_SHIFT (0U)
509#define ADCx_Rn_D(x) (((uint32_t)(((uint32_t)(x)) << ADCx_R_D_SHIFT)) & ADCx_R_D_MASK)
510
511/* The count of ADC_R */
512#define ADCx_R_COUNT (2U)
513
514/*! @name CV1 - Compare Value Registers */
515#define ADCx_CV1_CV_MASK (0xFFFFU)
516#define ADCx_CV1_CV_SHIFT (0U)
517#define ADCx_CV1_CV(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CV1_CV_SHIFT)) & ADCx_CV1_CV_MASK)
518
519/*! @name CV2 - Compare Value Registers */
520#define ADCx_CV2_CV_MASK (0xFFFFU)
521#define ADCx_CV2_CV_SHIFT (0U)
522#define ADCx_CV2_CV(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CV2_CV_SHIFT)) & ADCx_CV2_CV_MASK)
523
524/*! @name SC2 - Status and Control Register 2 */
525#define ADCx_SC2_REFSEL_MASK (0x3U)
526#define ADCx_SC2_REFSEL_SHIFT (0U)
527#define ADCx_SC2_REFSEL(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC2_REFSEL_SHIFT)) & ADCx_SC2_REFSEL_MASK)
528#define ADCx_SC2_DMAEN (0x4U)
529#define ADCx_SC2_ACREN (0x8U)
530#define ADCx_SC2_ACFGT (0x10U)
531#define ADCx_SC2_ACFE (0x20U)
532#define ADCx_SC2_ADTRG (0x40U)
533#define ADCx_SC2_ADACT (0x80U)
534
535/*! @name SC3 - Status and Control Register 3 */
536#define ADCx_SC3_AVGS_MASK (0x3U)
537#define ADCx_SC3_AVGS_SHIFT (0U)
538#define ADCx_SC3_AVGS(x) (((uint32_t)(((uint32_t)(x)) << ADCx_SC3_AVGS_SHIFT)) & ADCx_SC3_AVGS_MASK)
539#define ADCx_SC3_AVGE (0x4U)
540#define ADCx_SC3_ADCO (0x8U)
541#define ADCx_SC3_CALF (0x40U)
542#define ADCx_SC3_CAL (0x80U)
543
544/*! @name OFS - ADC Offset Correction Register */
545#define ADCx_OFS_OFS_MASK (0xFFFFU)
546#define ADCx_OFS_OFS_SHIFT (0U)
547#define ADCx_OFS_OFS(x) (((uint32_t)(((uint32_t)(x)) << ADCx_OFS_OFS_SHIFT)) & ADCx_OFS_OFS_MASK)
548
549/*! @name PG - ADC Plus-Side Gain Register */
550#define ADCx_PG_PG_MASK (0xFFFFU)
551#define ADCx_PG_PG_SHIFT (0U)
552#define ADCx_PG_PG(x) (((uint32_t)(((uint32_t)(x)) << ADCx_PG_PG_SHIFT)) & ADCx_PG_PG_MASK)
553
554/*! @name MG - ADC Minus-Side Gain Register */
555#define ADCx_MG_MG_MASK (0xFFFFU)
556#define ADCx_MG_MG_SHIFT (0U)
557#define ADCx_MG_MG(x) (((uint32_t)(((uint32_t)(x)) << ADCx_MG_MG_SHIFT)) & ADCx_MG_MG_MASK)
558
559/*! @name CLPD - ADC Plus-Side General Calibration Value Register */
560#define ADCx_CLPD_CLPD_MASK (0x3FU)
561#define ADCx_CLPD_CLPD_SHIFT (0U)
562#define ADCx_CLPD_CLPD(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLPD_CLPD_SHIFT)) & ADCx_CLPD_CLPD_MASK)
563
564/*! @name CLPS - ADC Plus-Side General Calibration Value Register */
565#define ADCx_CLPS_CLPS_MASK (0x3FU)
566#define ADCx_CLPS_CLPS_SHIFT (0U)
567#define ADCx_CLPS_CLPS(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLPS_CLPS_SHIFT)) & ADCx_CLPS_CLPS_MASK)
568
569/*! @name CLP4 - ADC Plus-Side General Calibration Value Register */
570#define ADCx_CLP4_CLP4_MASK (0x3FFU)
571#define ADCx_CLP4_CLP4_SHIFT (0U)
572#define ADCx_CLP4_CLP4(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP4_CLP4_SHIFT)) & ADCx_CLP4_CLP4_MASK)
573
574/*! @name CLP3 - ADC Plus-Side General Calibration Value Register */
575#define ADCx_CLP3_CLP3_MASK (0x1FFU)
576#define ADCx_CLP3_CLP3_SHIFT (0U)
577#define ADCx_CLP3_CLP3(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP3_CLP3_SHIFT)) & ADCx_CLP3_CLP3_MASK)
578
579/*! @name CLP2 - ADC Plus-Side General Calibration Value Register */
580#define ADCx_CLP2_CLP2_MASK (0xFFU)
581#define ADCx_CLP2_CLP2_SHIFT (0U)
582#define ADCx_CLP2_CLP2(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP2_CLP2_SHIFT)) & ADCx_CLP2_CLP2_MASK)
583
584/*! @name CLP1 - ADC Plus-Side General Calibration Value Register */
585#define ADCx_CLP1_CLP1_MASK (0x7FU)
586#define ADCx_CLP1_CLP1_SHIFT (0U)
587#define ADCx_CLP1_CLP1(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP1_CLP1_SHIFT)) & ADCx_CLP1_CLP1_MASK)
588
589/*! @name CLP0 - ADC Plus-Side General Calibration Value Register */
590#define ADCx_CLP0_CLP0_MASK (0x3FU)
591#define ADCx_CLP0_CLP0_SHIFT (0U)
592#define ADCx_CLP0_CLP0(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLP0_CLP0_SHIFT)) & ADCx_CLP0_CLP0_MASK)
593
594/*! @name CLMD - ADC Minus-Side General Calibration Value Register */
595#define ADCx_CLMD_CLMD_MASK (0x3FU)
596#define ADCx_CLMD_CLMD_SHIFT (0U)
597#define ADCx_CLMD_CLMD(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLMD_CLMD_SHIFT)) & ADCx_CLMD_CLMD_MASK)
598
599/*! @name CLMS - ADC Minus-Side General Calibration Value Register */
600#define ADCx_CLMS_CLMS_MASK (0x3FU)
601#define ADCx_CLMS_CLMS_SHIFT (0U)
602#define ADCx_CLMS_CLMS(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLMS_CLMS_SHIFT)) & ADCx_CLMS_CLMS_MASK)
603
604/*! @name CLM4 - ADC Minus-Side General Calibration Value Register */
605#define ADCx_CLM4_CLM4_MASK (0x3FFU)
606#define ADCx_CLM4_CLM4_SHIFT (0U)
607#define ADCx_CLM4_CLM4(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM4_CLM4_SHIFT)) & ADCx_CLM4_CLM4_MASK)
608
609/*! @name CLM3 - ADC Minus-Side General Calibration Value Register */
610#define ADCx_CLM3_CLM3_MASK (0x1FFU)
611#define ADCx_CLM3_CLM3_SHIFT (0U)
612#define ADCx_CLM3_CLM3(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM3_CLM3_SHIFT)) & ADCx_CLM3_CLM3_MASK)
613
614/*! @name CLM2 - ADC Minus-Side General Calibration Value Register */
615#define ADCx_CLM2_CLM2_MASK (0xFFU)
616#define ADCx_CLM2_CLM2_SHIFT (0U)
617#define ADCx_CLM2_CLM2(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM2_CLM2_SHIFT)) & ADCx_CLM2_CLM2_MASK)
618
619/*! @name CLM1 - ADC Minus-Side General Calibration Value Register */
620#define ADCx_CLM1_CLM1_MASK (0x7FU)
621#define ADCx_CLM1_CLM1_SHIFT (0U)
622#define ADCx_CLM1_CLM1(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM1_CLM1_SHIFT)) & ADCx_CLM1_CLM1_MASK)
623
624/*! @name CLM0 - ADC Minus-Side General Calibration Value Register */
625#define ADCx_CLM0_CLM0_MASK (0x3FU)
626#define ADCx_CLM0_CLM0_SHIFT (0U)
627#define ADCx_CLM0_CLM0(x) (((uint32_t)(((uint32_t)(x)) << ADCx_CLM0_CLM0_SHIFT)) & ADCx_CLM0_CLM0_MASK)
628
629
630/*!
631 * @}
632 */ /* end of group ADC_Register_Masks */
633
634
635/* ADC - Peripheral instance base addresses */
636/** Peripheral ADC0 base address */
637#define ADC0_BASE (0x4003B000u)
638/** Peripheral ADC0 base pointer */
639#define ADC0 ((ADC_TypeDef *)ADC0_BASE)
640/** Peripheral ADC1 base address */
641#define ADC1_BASE (0x400BB000u)
642/** Peripheral ADC1 base pointer */
643#define ADC1 ((ADC_TypeDef *)ADC1_BASE)
644/** Array initializer of ADC peripheral base addresses */
645#define ADC_BASE_ADDRS { ADC0_BASE, ADC1_BASE }
646/** Array initializer of ADC peripheral base pointers */
647#define ADC_BASE_PTRS { ADC0, ADC1 }
648/** Interrupt vectors for the ADC peripheral type */
649#define ADC_IRQS { ADC0_IRQn, ADC1_IRQn }
650
651/*!
652 * @}
653 */ /* end of group ADC_Peripheral_Access_Layer */
654
655
656/* ----------------------------------------------------------------------------
657 -- AIPS Peripheral Access Layer
658 ---------------------------------------------------------------------------- */
659
660/*!
661 * @addtogroup AIPS_Peripheral_Access_Layer AIPS Peripheral Access Layer
662 * @{
663 */
664
665/** AIPS - Register Layout Typedef */
666typedef struct {
667 __IO uint32_t MPRA; /**< Master Privilege Register A, offset: 0x0 */
668 uint8_t RESERVED_0[28];
669 __IO uint32_t PACRA; /**< Peripheral Access Control Register, offset: 0x20 */
670 __IO uint32_t PACRB; /**< Peripheral Access Control Register, offset: 0x24 */
671 __IO uint32_t PACRC; /**< Peripheral Access Control Register, offset: 0x28 */
672 __IO uint32_t PACRD; /**< Peripheral Access Control Register, offset: 0x2C */
673 uint8_t RESERVED_1[16];
674 __IO uint32_t PACRE; /**< Peripheral Access Control Register, offset: 0x40 */
675 __IO uint32_t PACRF; /**< Peripheral Access Control Register, offset: 0x44 */
676 __IO uint32_t PACRG; /**< Peripheral Access Control Register, offset: 0x48 */
677 __IO uint32_t PACRH; /**< Peripheral Access Control Register, offset: 0x4C */
678 __IO uint32_t PACRI; /**< Peripheral Access Control Register, offset: 0x50 */
679 __IO uint32_t PACRJ; /**< Peripheral Access Control Register, offset: 0x54 */
680 __IO uint32_t PACRK; /**< Peripheral Access Control Register, offset: 0x58 */
681 __IO uint32_t PACRL; /**< Peripheral Access Control Register, offset: 0x5C */
682 __IO uint32_t PACRM; /**< Peripheral Access Control Register, offset: 0x60 */
683 __IO uint32_t PACRN; /**< Peripheral Access Control Register, offset: 0x64 */
684 __IO uint32_t PACRO; /**< Peripheral Access Control Register, offset: 0x68 */
685 __IO uint32_t PACRP; /**< Peripheral Access Control Register, offset: 0x6C */
686 uint8_t RESERVED_2[16];
687 __IO uint32_t PACRU; /**< Peripheral Access Control Register, offset: 0x80 */
688} AIPS_TypeDef;
689
690/* ----------------------------------------------------------------------------
691 -- AIPS Register Masks
692 ---------------------------------------------------------------------------- */
693
694/*!
695 * @addtogroup AIPS_Register_Masks AIPS Register Masks
696 * @{
697 */
698
699/*! @name MPRA - Master Privilege Register A */
700#define AIPS_MPRA_MPL5 (0x100U)
701#define AIPS_MPRA_MTW5 (0x200U)
702#define AIPS_MPRA_MTR5 (0x400U)
703#define AIPS_MPRA_MPL4 (0x1000U)
704#define AIPS_MPRA_MTW4 (0x2000U)
705#define AIPS_MPRA_MTR4 (0x4000U)
706#define AIPS_MPRA_MPL3 (0x10000U)
707#define AIPS_MPRA_MTW3 (0x20000U)
708#define AIPS_MPRA_MTR3 (0x40000U)
709#define AIPS_MPRA_MPL2 (0x100000U)
710#define AIPS_MPRA_MTW2 (0x200000U)
711#define AIPS_MPRA_MTR2 (0x400000U)
712#define AIPS_MPRA_MPL1 (0x1000000U)
713#define AIPS_MPRA_MTW1 (0x2000000U)
714#define AIPS_MPRA_MTR1 (0x4000000U)
715#define AIPS_MPRA_MPL0 (0x10000000U)
716#define AIPS_MPRA_MTW0 (0x20000000U)
717#define AIPS_MPRA_MTR0 (0x40000000U)
718
719/*! @name PACRA - Peripheral Access Control Register */
720#define AIPS_PACRA_TP7 (0x1U)
721#define AIPS_PACRA_WP7 (0x2U)
722#define AIPS_PACRA_SP7 (0x4U)
723#define AIPS_PACRA_TP6 (0x10U)
724#define AIPS_PACRA_WP6 (0x20U)
725#define AIPS_PACRA_SP6 (0x40U)
726#define AIPS_PACRA_TP5 (0x100U)
727#define AIPS_PACRA_WP5 (0x200U)
728#define AIPS_PACRA_SP5 (0x400U)
729#define AIPS_PACRA_TP4 (0x1000U)
730#define AIPS_PACRA_WP4 (0x2000U)
731#define AIPS_PACRA_SP4 (0x4000U)
732#define AIPS_PACRA_TP3 (0x10000U)
733#define AIPS_PACRA_WP3 (0x20000U)
734#define AIPS_PACRA_SP3 (0x40000U)
735#define AIPS_PACRA_TP2 (0x100000U)
736#define AIPS_PACRA_WP2 (0x200000U)
737#define AIPS_PACRA_SP2 (0x400000U)
738#define AIPS_PACRA_TP1 (0x1000000U)
739#define AIPS_PACRA_WP1 (0x2000000U)
740#define AIPS_PACRA_SP1 (0x4000000U)
741#define AIPS_PACRA_TP0 (0x10000000U)
742#define AIPS_PACRA_WP0 (0x20000000U)
743#define AIPS_PACRA_SP0 (0x40000000U)
744
745/*! @name PACRB - Peripheral Access Control Register */
746#define AIPS_PACRB_TP7 (0x1U)
747#define AIPS_PACRB_WP7 (0x2U)
748#define AIPS_PACRB_SP7 (0x4U)
749#define AIPS_PACRB_TP6 (0x10U)
750#define AIPS_PACRB_WP6 (0x20U)
751#define AIPS_PACRB_SP6 (0x40U)
752#define AIPS_PACRB_TP5 (0x100U)
753#define AIPS_PACRB_WP5 (0x200U)
754#define AIPS_PACRB_SP5 (0x400U)
755#define AIPS_PACRB_TP4 (0x1000U)
756#define AIPS_PACRB_WP4 (0x2000U)
757#define AIPS_PACRB_SP4 (0x4000U)
758#define AIPS_PACRB_TP3 (0x10000U)
759#define AIPS_PACRB_WP3 (0x20000U)
760#define AIPS_PACRB_SP3 (0x40000U)
761#define AIPS_PACRB_TP2 (0x100000U)
762#define AIPS_PACRB_WP2 (0x200000U)
763#define AIPS_PACRB_SP2 (0x400000U)
764#define AIPS_PACRB_TP1 (0x1000000U)
765#define AIPS_PACRB_WP1 (0x2000000U)
766#define AIPS_PACRB_SP1 (0x4000000U)
767#define AIPS_PACRB_TP0 (0x10000000U)
768#define AIPS_PACRB_WP0 (0x20000000U)
769#define AIPS_PACRB_SP0 (0x40000000U)
770
771/*! @name PACRC - Peripheral Access Control Register */
772#define AIPS_PACRC_TP7 (0x1U)
773#define AIPS_PACRC_WP7 (0x2U)
774#define AIPS_PACRC_SP7 (0x4U)
775#define AIPS_PACRC_TP6 (0x10U)
776#define AIPS_PACRC_WP6 (0x20U)
777#define AIPS_PACRC_SP6 (0x40U)
778#define AIPS_PACRC_TP5 (0x100U)
779#define AIPS_PACRC_WP5 (0x200U)
780#define AIPS_PACRC_SP5 (0x400U)
781#define AIPS_PACRC_TP4 (0x1000U)
782#define AIPS_PACRC_WP4 (0x2000U)
783#define AIPS_PACRC_SP4 (0x4000U)
784#define AIPS_PACRC_TP3 (0x10000U)
785#define AIPS_PACRC_WP3 (0x20000U)
786#define AIPS_PACRC_SP3 (0x40000U)
787#define AIPS_PACRC_TP2 (0x100000U)
788#define AIPS_PACRC_WP2 (0x200000U)
789#define AIPS_PACRC_SP2 (0x400000U)
790#define AIPS_PACRC_TP1 (0x1000000U)
791#define AIPS_PACRC_WP1 (0x2000000U)
792#define AIPS_PACRC_SP1 (0x4000000U)
793#define AIPS_PACRC_TP0 (0x10000000U)
794#define AIPS_PACRC_WP0 (0x20000000U)
795#define AIPS_PACRC_SP0 (0x40000000U)
796
797/*! @name PACRD - Peripheral Access Control Register */
798#define AIPS_PACRD_TP7 (0x1U)
799#define AIPS_PACRD_WP7 (0x2U)
800#define AIPS_PACRD_SP7 (0x4U)
801#define AIPS_PACRD_TP6 (0x10U)
802#define AIPS_PACRD_WP6 (0x20U)
803#define AIPS_PACRD_SP6 (0x40U)
804#define AIPS_PACRD_TP5 (0x100U)
805#define AIPS_PACRD_WP5 (0x200U)
806#define AIPS_PACRD_SP5 (0x400U)
807#define AIPS_PACRD_TP4 (0x1000U)
808#define AIPS_PACRD_WP4 (0x2000U)
809#define AIPS_PACRD_SP4 (0x4000U)
810#define AIPS_PACRD_TP3 (0x10000U)
811#define AIPS_PACRD_WP3 (0x20000U)
812#define AIPS_PACRD_SP3 (0x40000U)
813#define AIPS_PACRD_TP2 (0x100000U)
814#define AIPS_PACRD_WP2 (0x200000U)
815#define AIPS_PACRD_SP2 (0x400000U)
816#define AIPS_PACRD_TP1 (0x1000000U)
817#define AIPS_PACRD_WP1 (0x2000000U)
818#define AIPS_PACRD_SP1 (0x4000000U)
819#define AIPS_PACRD_TP0 (0x10000000U)
820#define AIPS_PACRD_WP0 (0x20000000U)
821#define AIPS_PACRD_SP0 (0x40000000U)
822
823/*! @name PACRE - Peripheral Access Control Register */
824#define AIPS_PACRE_TP7 (0x1U)
825#define AIPS_PACRE_WP7 (0x2U)
826#define AIPS_PACRE_SP7 (0x4U)
827#define AIPS_PACRE_TP6 (0x10U)
828#define AIPS_PACRE_WP6 (0x20U)
829#define AIPS_PACRE_SP6 (0x40U)
830#define AIPS_PACRE_TP5 (0x100U)
831#define AIPS_PACRE_WP5 (0x200U)
832#define AIPS_PACRE_SP5 (0x400U)
833#define AIPS_PACRE_TP4 (0x1000U)
834#define AIPS_PACRE_WP4 (0x2000U)
835#define AIPS_PACRE_SP4 (0x4000U)
836#define AIPS_PACRE_TP3 (0x10000U)
837#define AIPS_PACRE_WP3 (0x20000U)
838#define AIPS_PACRE_SP3 (0x40000U)
839#define AIPS_PACRE_TP2 (0x100000U)
840#define AIPS_PACRE_WP2 (0x200000U)
841#define AIPS_PACRE_SP2 (0x400000U)
842#define AIPS_PACRE_TP1 (0x1000000U)
843#define AIPS_PACRE_WP1 (0x2000000U)
844#define AIPS_PACRE_SP1 (0x4000000U)
845#define AIPS_PACRE_TP0 (0x10000000U)
846#define AIPS_PACRE_WP0 (0x20000000U)
847#define AIPS_PACRE_SP0 (0x40000000U)
848
849/*! @name PACRF - Peripheral Access Control Register */
850#define AIPS_PACRF_TP7 (0x1U)
851#define AIPS_PACRF_WP7 (0x2U)
852#define AIPS_PACRF_SP7 (0x4U)
853#define AIPS_PACRF_TP6 (0x10U)
854#define AIPS_PACRF_WP6 (0x20U)
855#define AIPS_PACRF_SP6 (0x40U)
856#define AIPS_PACRF_TP5 (0x100U)
857#define AIPS_PACRF_WP5 (0x200U)
858#define AIPS_PACRF_SP5 (0x400U)
859#define AIPS_PACRF_TP4 (0x1000U)
860#define AIPS_PACRF_WP4 (0x2000U)
861#define AIPS_PACRF_SP4 (0x4000U)
862#define AIPS_PACRF_TP3 (0x10000U)
863#define AIPS_PACRF_WP3 (0x20000U)
864#define AIPS_PACRF_SP3 (0x40000U)
865#define AIPS_PACRF_TP2 (0x100000U)
866#define AIPS_PACRF_WP2 (0x200000U)
867#define AIPS_PACRF_SP2 (0x400000U)
868#define AIPS_PACRF_TP1 (0x1000000U)
869#define AIPS_PACRF_WP1 (0x2000000U)
870#define AIPS_PACRF_SP1 (0x4000000U)
871#define AIPS_PACRF_TP0 (0x10000000U)
872#define AIPS_PACRF_WP0 (0x20000000U)
873#define AIPS_PACRF_SP0 (0x40000000U)
874
875/*! @name PACRG - Peripheral Access Control Register */
876#define AIPS_PACRG_TP7 (0x1U)
877#define AIPS_PACRG_WP7 (0x2U)
878#define AIPS_PACRG_SP7 (0x4U)
879#define AIPS_PACRG_TP6 (0x10U)
880#define AIPS_PACRG_WP6 (0x20U)
881#define AIPS_PACRG_SP6 (0x40U)
882#define AIPS_PACRG_TP5 (0x100U)
883#define AIPS_PACRG_WP5 (0x200U)
884#define AIPS_PACRG_SP5 (0x400U)
885#define AIPS_PACRG_TP4 (0x1000U)
886#define AIPS_PACRG_WP4 (0x2000U)
887#define AIPS_PACRG_SP4 (0x4000U)
888#define AIPS_PACRG_TP3 (0x10000U)
889#define AIPS_PACRG_WP3 (0x20000U)
890#define AIPS_PACRG_SP3 (0x40000U)
891#define AIPS_PACRG_TP2 (0x100000U)
892#define AIPS_PACRG_WP2 (0x200000U)
893#define AIPS_PACRG_SP2 (0x400000U)
894#define AIPS_PACRG_TP1 (0x1000000U)
895#define AIPS_PACRG_WP1 (0x2000000U)
896#define AIPS_PACRG_SP1 (0x4000000U)
897#define AIPS_PACRG_TP0 (0x10000000U)
898#define AIPS_PACRG_WP0 (0x20000000U)
899#define AIPS_PACRG_SP0 (0x40000000U)
900
901/*! @name PACRH - Peripheral Access Control Register */
902#define AIPS_PACRH_TP7 (0x1U)
903#define AIPS_PACRH_WP7 (0x2U)
904#define AIPS_PACRH_SP7 (0x4U)
905#define AIPS_PACRH_TP6 (0x10U)
906#define AIPS_PACRH_WP6 (0x20U)
907#define AIPS_PACRH_SP6 (0x40U)
908#define AIPS_PACRH_TP5 (0x100U)
909#define AIPS_PACRH_WP5 (0x200U)
910#define AIPS_PACRH_SP5 (0x400U)
911#define AIPS_PACRH_TP4 (0x1000U)
912#define AIPS_PACRH_WP4 (0x2000U)
913#define AIPS_PACRH_SP4 (0x4000U)
914#define AIPS_PACRH_TP3 (0x10000U)
915#define AIPS_PACRH_WP3 (0x20000U)
916#define AIPS_PACRH_SP3 (0x40000U)
917#define AIPS_PACRH_TP2 (0x100000U)
918#define AIPS_PACRH_WP2 (0x200000U)
919#define AIPS_PACRH_SP2 (0x400000U)
920#define AIPS_PACRH_TP1 (0x1000000U)
921#define AIPS_PACRH_WP1 (0x2000000U)
922#define AIPS_PACRH_SP1 (0x4000000U)
923#define AIPS_PACRH_TP0 (0x10000000U)
924#define AIPS_PACRH_WP0 (0x20000000U)
925#define AIPS_PACRH_SP0 (0x40000000U)
926
927/*! @name PACRI - Peripheral Access Control Register */
928#define AIPS_PACRI_TP7 (0x1U)
929#define AIPS_PACRI_WP7 (0x2U)
930#define AIPS_PACRI_SP7 (0x4U)
931#define AIPS_PACRI_TP6 (0x10U)
932#define AIPS_PACRI_WP6 (0x20U)
933#define AIPS_PACRI_SP6 (0x40U)
934#define AIPS_PACRI_TP5 (0x100U)
935#define AIPS_PACRI_WP5 (0x200U)
936#define AIPS_PACRI_SP5 (0x400U)
937#define AIPS_PACRI_TP4 (0x1000U)
938#define AIPS_PACRI_WP4 (0x2000U)
939#define AIPS_PACRI_SP4 (0x4000U)
940#define AIPS_PACRI_TP3 (0x10000U)
941#define AIPS_PACRI_WP3 (0x20000U)
942#define AIPS_PACRI_SP3 (0x40000U)
943#define AIPS_PACRI_TP2 (0x100000U)
944#define AIPS_PACRI_WP2 (0x200000U)
945#define AIPS_PACRI_SP2 (0x400000U)
946#define AIPS_PACRI_TP1 (0x1000000U)
947#define AIPS_PACRI_WP1 (0x2000000U)
948#define AIPS_PACRI_SP1 (0x4000000U)
949#define AIPS_PACRI_TP0 (0x10000000U)
950#define AIPS_PACRI_WP0 (0x20000000U)
951#define AIPS_PACRI_SP0 (0x40000000U)
952
953/*! @name PACRJ - Peripheral Access Control Register */
954#define AIPS_PACRJ_TP7 (0x1U)
955#define AIPS_PACRJ_WP7 (0x2U)
956#define AIPS_PACRJ_SP7 (0x4U)
957#define AIPS_PACRJ_TP6 (0x10U)
958#define AIPS_PACRJ_WP6 (0x20U)
959#define AIPS_PACRJ_SP6 (0x40U)
960#define AIPS_PACRJ_TP5 (0x100U)
961#define AIPS_PACRJ_WP5 (0x200U)
962#define AIPS_PACRJ_SP5 (0x400U)
963#define AIPS_PACRJ_TP4 (0x1000U)
964#define AIPS_PACRJ_WP4 (0x2000U)
965#define AIPS_PACRJ_SP4 (0x4000U)
966#define AIPS_PACRJ_TP3 (0x10000U)
967#define AIPS_PACRJ_WP3 (0x20000U)
968#define AIPS_PACRJ_SP3 (0x40000U)
969#define AIPS_PACRJ_TP2 (0x100000U)
970#define AIPS_PACRJ_WP2 (0x200000U)
971#define AIPS_PACRJ_SP2 (0x400000U)
972#define AIPS_PACRJ_TP1 (0x1000000U)
973#define AIPS_PACRJ_WP1 (0x2000000U)
974#define AIPS_PACRJ_SP1 (0x4000000U)
975#define AIPS_PACRJ_TP0 (0x10000000U)
976#define AIPS_PACRJ_WP0 (0x20000000U)
977#define AIPS_PACRJ_SP0 (0x40000000U)
978
979/*! @name PACRK - Peripheral Access Control Register */
980#define AIPS_PACRK_TP7 (0x1U)
981#define AIPS_PACRK_WP7 (0x2U)
982#define AIPS_PACRK_SP7 (0x4U)
983#define AIPS_PACRK_TP6 (0x10U)
984#define AIPS_PACRK_WP6 (0x20U)
985#define AIPS_PACRK_SP6 (0x40U)
986#define AIPS_PACRK_TP5 (0x100U)
987#define AIPS_PACRK_WP5 (0x200U)
988#define AIPS_PACRK_SP5 (0x400U)
989#define AIPS_PACRK_TP4 (0x1000U)
990#define AIPS_PACRK_WP4 (0x2000U)
991#define AIPS_PACRK_SP4 (0x4000U)
992#define AIPS_PACRK_TP3 (0x10000U)
993#define AIPS_PACRK_WP3 (0x20000U)
994#define AIPS_PACRK_SP3 (0x40000U)
995#define AIPS_PACRK_TP2 (0x100000U)
996#define AIPS_PACRK_WP2 (0x200000U)
997#define AIPS_PACRK_SP2 (0x400000U)
998#define AIPS_PACRK_TP1 (0x1000000U)
999#define AIPS_PACRK_WP1 (0x2000000U)
1000#define AIPS_PACRK_SP1 (0x4000000U)
1001#define AIPS_PACRK_TP0 (0x10000000U)
1002#define AIPS_PACRK_WP0 (0x20000000U)
1003#define AIPS_PACRK_SP0 (0x40000000U)
1004
1005/*! @name PACRL - Peripheral Access Control Register */
1006#define AIPS_PACRL_TP7 (0x1U)
1007#define AIPS_PACRL_WP7 (0x2U)
1008#define AIPS_PACRL_SP7 (0x4U)
1009#define AIPS_PACRL_TP6 (0x10U)
1010#define AIPS_PACRL_WP6 (0x20U)
1011#define AIPS_PACRL_SP6 (0x40U)
1012#define AIPS_PACRL_TP5 (0x100U)
1013#define AIPS_PACRL_WP5 (0x200U)
1014#define AIPS_PACRL_SP5 (0x400U)
1015#define AIPS_PACRL_TP4 (0x1000U)
1016#define AIPS_PACRL_WP4 (0x2000U)
1017#define AIPS_PACRL_SP4 (0x4000U)
1018#define AIPS_PACRL_TP3 (0x10000U)
1019#define AIPS_PACRL_WP3 (0x20000U)
1020#define AIPS_PACRL_SP3 (0x40000U)
1021#define AIPS_PACRL_TP2 (0x100000U)
1022#define AIPS_PACRL_WP2 (0x200000U)
1023#define AIPS_PACRL_SP2 (0x400000U)
1024#define AIPS_PACRL_TP1 (0x1000000U)
1025#define AIPS_PACRL_WP1 (0x2000000U)
1026#define AIPS_PACRL_SP1 (0x4000000U)
1027#define AIPS_PACRL_TP0 (0x10000000U)
1028#define AIPS_PACRL_WP0 (0x20000000U)
1029#define AIPS_PACRL_SP0 (0x40000000U)
1030
1031/*! @name PACRM - Peripheral Access Control Register */
1032#define AIPS_PACRM_TP7 (0x1U)
1033#define AIPS_PACRM_WP7 (0x2U)
1034#define AIPS_PACRM_SP7 (0x4U)
1035#define AIPS_PACRM_TP6 (0x10U)
1036#define AIPS_PACRM_WP6 (0x20U)
1037#define AIPS_PACRM_SP6 (0x40U)
1038#define AIPS_PACRM_TP5 (0x100U)
1039#define AIPS_PACRM_WP5 (0x200U)
1040#define AIPS_PACRM_SP5 (0x400U)
1041#define AIPS_PACRM_TP4 (0x1000U)
1042#define AIPS_PACRM_WP4 (0x2000U)
1043#define AIPS_PACRM_SP4 (0x4000U)
1044#define AIPS_PACRM_TP3 (0x10000U)
1045#define AIPS_PACRM_WP3 (0x20000U)
1046#define AIPS_PACRM_SP3 (0x40000U)
1047#define AIPS_PACRM_TP2 (0x100000U)
1048#define AIPS_PACRM_WP2 (0x200000U)
1049#define AIPS_PACRM_SP2 (0x400000U)
1050#define AIPS_PACRM_TP1 (0x1000000U)
1051#define AIPS_PACRM_WP1 (0x2000000U)
1052#define AIPS_PACRM_SP1 (0x4000000U)
1053#define AIPS_PACRM_TP0 (0x10000000U)
1054#define AIPS_PACRM_WP0 (0x20000000U)
1055#define AIPS_PACRM_SP0 (0x40000000U)
1056
1057/*! @name PACRN - Peripheral Access Control Register */
1058#define AIPS_PACRN_TP7 (0x1U)
1059#define AIPS_PACRN_WP7 (0x2U)
1060#define AIPS_PACRN_SP7 (0x4U)
1061#define AIPS_PACRN_TP6 (0x10U)
1062#define AIPS_PACRN_WP6 (0x20U)
1063#define AIPS_PACRN_SP6 (0x40U)
1064#define AIPS_PACRN_TP5 (0x100U)
1065#define AIPS_PACRN_WP5 (0x200U)
1066#define AIPS_PACRN_SP5 (0x400U)
1067#define AIPS_PACRN_TP4 (0x1000U)
1068#define AIPS_PACRN_WP4 (0x2000U)
1069#define AIPS_PACRN_SP4 (0x4000U)
1070#define AIPS_PACRN_TP3 (0x10000U)
1071#define AIPS_PACRN_WP3 (0x20000U)
1072#define AIPS_PACRN_SP3 (0x40000U)
1073#define AIPS_PACRN_TP2 (0x100000U)
1074#define AIPS_PACRN_WP2 (0x200000U)
1075#define AIPS_PACRN_SP2 (0x400000U)
1076#define AIPS_PACRN_TP1 (0x1000000U)
1077#define AIPS_PACRN_WP1 (0x2000000U)
1078#define AIPS_PACRN_SP1 (0x4000000U)
1079#define AIPS_PACRN_TP0 (0x10000000U)
1080#define AIPS_PACRN_WP0 (0x20000000U)
1081#define AIPS_PACRN_SP0 (0x40000000U)
1082
1083/*! @name PACRO - Peripheral Access Control Register */
1084#define AIPS_PACRO_TP7 (0x1U)
1085#define AIPS_PACRO_WP7 (0x2U)
1086#define AIPS_PACRO_SP7 (0x4U)
1087#define AIPS_PACRO_TP6 (0x10U)
1088#define AIPS_PACRO_WP6 (0x20U)
1089#define AIPS_PACRO_SP6 (0x40U)
1090#define AIPS_PACRO_TP5 (0x100U)
1091#define AIPS_PACRO_WP5 (0x200U)
1092#define AIPS_PACRO_SP5 (0x400U)
1093#define AIPS_PACRO_TP4 (0x1000U)
1094#define AIPS_PACRO_WP4 (0x2000U)
1095#define AIPS_PACRO_SP4 (0x4000U)
1096#define AIPS_PACRO_TP3 (0x10000U)
1097#define AIPS_PACRO_WP3 (0x20000U)
1098#define AIPS_PACRO_SP3 (0x40000U)
1099#define AIPS_PACRO_TP2 (0x100000U)
1100#define AIPS_PACRO_WP2 (0x200000U)
1101#define AIPS_PACRO_SP2 (0x400000U)
1102#define AIPS_PACRO_TP1 (0x1000000U)
1103#define AIPS_PACRO_WP1 (0x2000000U)
1104#define AIPS_PACRO_SP1 (0x4000000U)
1105#define AIPS_PACRO_TP0 (0x10000000U)
1106#define AIPS_PACRO_WP0 (0x20000000U)
1107#define AIPS_PACRO_SP0 (0x40000000U)
1108
1109/*! @name PACRP - Peripheral Access Control Register */
1110#define AIPS_PACRP_TP7 (0x1U)
1111#define AIPS_PACRP_WP7 (0x2U)
1112#define AIPS_PACRP_SP7 (0x4U)
1113#define AIPS_PACRP_TP6 (0x10U)
1114#define AIPS_PACRP_WP6 (0x20U)
1115#define AIPS_PACRP_SP6 (0x40U)
1116#define AIPS_PACRP_TP5 (0x100U)
1117#define AIPS_PACRP_WP5 (0x200U)
1118#define AIPS_PACRP_SP5 (0x400U)
1119#define AIPS_PACRP_TP4 (0x1000U)
1120#define AIPS_PACRP_WP4 (0x2000U)
1121#define AIPS_PACRP_SP4 (0x4000U)
1122#define AIPS_PACRP_TP3 (0x10000U)
1123#define AIPS_PACRP_WP3 (0x20000U)
1124#define AIPS_PACRP_SP3 (0x40000U)
1125#define AIPS_PACRP_TP2 (0x100000U)
1126#define AIPS_PACRP_WP2 (0x200000U)
1127#define AIPS_PACRP_SP2 (0x400000U)
1128#define AIPS_PACRP_TP1 (0x1000000U)
1129#define AIPS_PACRP_WP1 (0x2000000U)
1130#define AIPS_PACRP_SP1 (0x4000000U)
1131#define AIPS_PACRP_TP0 (0x10000000U)
1132#define AIPS_PACRP_WP0 (0x20000000U)
1133#define AIPS_PACRP_SP0 (0x40000000U)
1134
1135/*! @name PACRU - Peripheral Access Control Register */
1136#define AIPS_PACRU_TP1 (0x1000000U)
1137#define AIPS_PACRU_WP1 (0x2000000U)
1138#define AIPS_PACRU_SP1 (0x4000000U)
1139#define AIPS_PACRU_TP0 (0x10000000U)
1140#define AIPS_PACRU_WP0 (0x20000000U)
1141#define AIPS_PACRU_SP0 (0x40000000U)
1142
1143
1144/*!
1145 * @}
1146 */ /* end of group AIPS_Register_Masks */
1147
1148
1149/* AIPS - Peripheral instance base addresses */
1150/** Peripheral AIPS0 base address */
1151#define AIPS0_BASE (0x40000000u)
1152/** Peripheral AIPS0 base pointer */
1153#define AIPS0 ((AIPS_TypeDef *)AIPS0_BASE)
1154/** Peripheral AIPS1 base address */
1155#define AIPS1_BASE (0x40080000u)
1156/** Peripheral AIPS1 base pointer */
1157#define AIPS1 ((AIPS_TypeDef *)AIPS1_BASE)
1158/** Array initializer of AIPS peripheral base addresses */
1159#define AIPS_BASE_ADDRS { AIPS0_BASE, AIPS1_BASE }
1160/** Array initializer of AIPS peripheral base pointers */
1161#define AIPS_BASE_PTRS { AIPS0, AIPS1 }
1162
1163/*!
1164 * @}
1165 */ /* end of group AIPS_Peripheral_Access_Layer */
1166
1167
1168/* ----------------------------------------------------------------------------
1169 -- AXBS Peripheral Access Layer
1170 ---------------------------------------------------------------------------- */
1171
1172/*!
1173 * @addtogroup AXBS_Peripheral_Access_Layer AXBS Peripheral Access Layer
1174 * @{
1175 */
1176
1177/** AXBS - Register Layout Typedef */
1178typedef struct {
1179 struct { /* offset: 0x0, array step: 0x100 */
1180 __IO uint32_t PRS; /**< Priority Registers Slave, array offset: 0x0, array step: 0x100 */
1181 uint8_t RESERVED_0[12];
1182 __IO uint32_t CRS; /**< Control Register, array offset: 0x10, array step: 0x100 */
1183 uint8_t RESERVED_1[236];
1184 } SLAVE[5];
1185 uint8_t RESERVED_0[768];
1186 __IO uint32_t MGPCR0; /**< Master General Purpose Control Register, offset: 0x800 */
1187 uint8_t RESERVED_1[252];
1188 __IO uint32_t MGPCR1; /**< Master General Purpose Control Register, offset: 0x900 */
1189 uint8_t RESERVED_2[252];
1190 __IO uint32_t MGPCR2; /**< Master General Purpose Control Register, offset: 0xA00 */
1191 uint8_t RESERVED_3[252];
1192 __IO uint32_t MGPCR3; /**< Master General Purpose Control Register, offset: 0xB00 */
1193 uint8_t RESERVED_4[252];
1194 __IO uint32_t MGPCR4; /**< Master General Purpose Control Register, offset: 0xC00 */
1195 uint8_t RESERVED_5[252];
1196 __IO uint32_t MGPCR5; /**< Master General Purpose Control Register, offset: 0xD00 */
1197} AXBS_TypeDef;
1198
1199/* ----------------------------------------------------------------------------
1200 -- AXBS Register Masks
1201 ---------------------------------------------------------------------------- */
1202
1203/*!
1204 * @addtogroup AXBS_Register_Masks AXBS Register Masks
1205 * @{
1206 */
1207
1208/*! @name PRS - Priority Registers Slave */
1209#define AXBS_PRS_M0_MASK (0x7U)
1210#define AXBS_PRS_M0_SHIFT (0U)
1211#define AXBS_PRS_M0(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M0_SHIFT)) & AXBS_PRS_M0_MASK)
1212#define AXBS_PRS_M1_MASK (0x70U)
1213#define AXBS_PRS_M1_SHIFT (4U)
1214#define AXBS_PRS_M1(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M1_SHIFT)) & AXBS_PRS_M1_MASK)
1215#define AXBS_PRS_M2_MASK (0x700U)
1216#define AXBS_PRS_M2_SHIFT (8U)
1217#define AXBS_PRS_M2(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M2_SHIFT)) & AXBS_PRS_M2_MASK)
1218#define AXBS_PRS_M3_MASK (0x7000U)
1219#define AXBS_PRS_M3_SHIFT (12U)
1220#define AXBS_PRS_M3(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M3_SHIFT)) & AXBS_PRS_M3_MASK)
1221#define AXBS_PRS_M4_MASK (0x70000U)
1222#define AXBS_PRS_M4_SHIFT (16U)
1223#define AXBS_PRS_M4(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M4_SHIFT)) & AXBS_PRS_M4_MASK)
1224#define AXBS_PRS_M5_MASK (0x700000U)
1225#define AXBS_PRS_M5_SHIFT (20U)
1226#define AXBS_PRS_M5(x) (((uint32_t)(((uint32_t)(x)) << AXBS_PRS_M5_SHIFT)) & AXBS_PRS_M5_MASK)
1227
1228/* The count of AXBS_PRS */
1229#define AXBS_PRS_COUNT (5U)
1230
1231/*! @name CRS - Control Register */
1232#define AXBS_CRS_PARK_MASK (0x7U)
1233#define AXBS_CRS_PARK_SHIFT (0U)
1234#define AXBS_CRS_PARK(x) (((uint32_t)(((uint32_t)(x)) << AXBS_CRS_PARK_SHIFT)) & AXBS_CRS_PARK_MASK)
1235#define AXBS_CRS_PCTL_MASK (0x30U)
1236#define AXBS_CRS_PCTL_SHIFT (4U)
1237#define AXBS_CRS_PCTL(x) (((uint32_t)(((uint32_t)(x)) << AXBS_CRS_PCTL_SHIFT)) & AXBS_CRS_PCTL_MASK)
1238#define AXBS_CRS_ARB_MASK (0x300U)
1239#define AXBS_CRS_ARB_SHIFT (8U)
1240#define AXBS_CRS_ARB(x) (((uint32_t)(((uint32_t)(x)) << AXBS_CRS_ARB_SHIFT)) & AXBS_CRS_ARB_MASK)
1241#define AXBS_CRS_HLP (0x40000000U)
1242#define AXBS_CRS_RO (0x80000000U)
1243
1244/* The count of AXBS_CRS */
1245#define AXBS_CRS_COUNT (5U)
1246
1247/*! @name MGPCR0 - Master General Purpose Control Register */
1248#define AXBS_MGPCR0_AULB_MASK (0x7U)
1249#define AXBS_MGPCR0_AULB_SHIFT (0U)
1250#define AXBS_MGPCR0_AULB(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR0_AULB_SHIFT)) & AXBS_MGPCR0_AULB_MASK)
1251
1252/*! @name MGPCR1 - Master General Purpose Control Register */
1253#define AXBS_MGPCR1_AULB_MASK (0x7U)
1254#define AXBS_MGPCR1_AULB_SHIFT (0U)
1255#define AXBS_MGPCR1_AULB(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR1_AULB_SHIFT)) & AXBS_MGPCR1_AULB_MASK)
1256
1257/*! @name MGPCR2 - Master General Purpose Control Register */
1258#define AXBS_MGPCR2_AULB_MASK (0x7U)
1259#define AXBS_MGPCR2_AULB_SHIFT (0U)
1260#define AXBS_MGPCR2_AULB(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR2_AULB_SHIFT)) & AXBS_MGPCR2_AULB_MASK)
1261
1262/*! @name MGPCR3 - Master General Purpose Control Register */
1263#define AXBS_MGPCR3_AULB_MASK (0x7U)
1264#define AXBS_MGPCR3_AULB_SHIFT (0U)
1265#define AXBS_MGPCR3_AULB(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR3_AULB_SHIFT)) & AXBS_MGPCR3_AULB_MASK)
1266
1267/*! @name MGPCR4 - Master General Purpose Control Register */
1268#define AXBS_MGPCR4_AULB_MASK (0x7U)
1269#define AXBS_MGPCR4_AULB_SHIFT (0U)
1270#define AXBS_MGPCR4_AULB(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR4_AULB_SHIFT)) & AXBS_MGPCR4_AULB_MASK)
1271
1272/*! @name MGPCR5 - Master General Purpose Control Register */
1273#define AXBS_MGPCR5_AULB_MASK (0x7U)
1274#define AXBS_MGPCR5_AULB_SHIFT (0U)
1275#define AXBS_MGPCR5_AULB(x) (((uint32_t)(((uint32_t)(x)) << AXBS_MGPCR5_AULB_SHIFT)) & AXBS_MGPCR5_AULB_MASK)
1276
1277
1278/*!
1279 * @}
1280 */ /* end of group AXBS_Register_Masks */
1281
1282
1283/* AXBS - Peripheral instance base addresses */
1284/** Peripheral AXBS base address */
1285#define AXBS_BASE (0x40004000u)
1286/** Peripheral AXBS base pointer */
1287#define AXBS ((AXBS_TypeDef *)AXBS_BASE)
1288/** Array initializer of AXBS peripheral base addresses */
1289#define AXBS_BASE_ADDRS { AXBS_BASE }
1290/** Array initializer of AXBS peripheral base pointers */
1291#define AXBS_BASE_PTRS { AXBS }
1292
1293/*!
1294 * @}
1295 */ /* end of group AXBS_Peripheral_Access_Layer */
1296
1297
1298/* ----------------------------------------------------------------------------
1299 -- CAN Peripheral Access Layer
1300 ---------------------------------------------------------------------------- */
1301
1302/*!
1303 * @addtogroup CAN_Peripheral_Access_Layer CAN Peripheral Access Layer
1304 * @{
1305 */
1306
1307/** CAN - Register Layout Typedef */
1308typedef struct {
1309 __IO uint32_t MCR; /**< Module Configuration Register, offset: 0x0 */
1310 __IO uint32_t CTRL1; /**< Control 1 register, offset: 0x4 */
1311 __IO uint32_t TIMER; /**< Free Running Timer, offset: 0x8 */
1312 uint8_t RESERVED_0[4];
1313 __IO uint32_t RXMGMASK; /**< Rx Mailboxes Global Mask Register, offset: 0x10 */
1314 __IO uint32_t RX14MASK; /**< Rx 14 Mask register, offset: 0x14 */
1315 __IO uint32_t RX15MASK; /**< Rx 15 Mask register, offset: 0x18 */
1316 __IO uint32_t ECR; /**< Error Counter, offset: 0x1C */
1317 __IO uint32_t ESR1; /**< Error and Status 1 register, offset: 0x20 */
1318 uint8_t RESERVED_1[4];
1319 __IO uint32_t IMASK1; /**< Interrupt Masks 1 register, offset: 0x28 */
1320 uint8_t RESERVED_2[4];
1321 __IO uint32_t IFLAG1; /**< Interrupt Flags 1 register, offset: 0x30 */
1322 __IO uint32_t CTRL2; /**< Control 2 register, offset: 0x34 */
1323 __I uint32_t ESR2; /**< Error and Status 2 register, offset: 0x38 */
1324 uint8_t RESERVED_3[8];
1325 __I uint32_t CRCR; /**< CRC Register, offset: 0x44 */
1326 __IO uint32_t RXFGMASK; /**< Rx FIFO Global Mask register, offset: 0x48 */
1327 __I uint32_t RXFIR; /**< Rx FIFO Information Register, offset: 0x4C */
1328 uint8_t RESERVED_4[48];
1329 struct { /* offset: 0x80, array step: 0x10 */
1330 __IO uint32_t CS; /**< Message Buffer 0 CS Register..Message Buffer 15 CS Register, array offset: 0x80, array step: 0x10 */
1331 __IO uint32_t ID; /**< Message Buffer 0 ID Register..Message Buffer 15 ID Register, array offset: 0x84, array step: 0x10 */
1332 __IO uint32_t WORD0; /**< Message Buffer 0 WORD0 Register..Message Buffer 15 WORD0 Register, array offset: 0x88, array step: 0x10 */
1333 __IO uint32_t WORD1; /**< Message Buffer 0 WORD1 Register..Message Buffer 15 WORD1 Register, array offset: 0x8C, array step: 0x10 */
1334 } MB[16];
1335 uint8_t RESERVED_5[1792];
1336 __IO uint32_t RXIMR[16]; /**< Rx Individual Mask Registers, array offset: 0x880, array step: 0x4 */
1337} CAN_TypeDef;
1338
1339/* ----------------------------------------------------------------------------
1340 -- CAN Register Masks
1341 ---------------------------------------------------------------------------- */
1342
1343/*!
1344 * @addtogroup CAN_Register_Masks CAN Register Masks
1345 * @{
1346 */
1347
1348/*! @name MCR - Module Configuration Register */
1349#define CAN_MCR_MAXMB_MASK (0x7FU)
1350#define CAN_MCR_MAXMB_SHIFT (0U)
1351#define CAN_MCR_MAXMB(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_MAXMB_SHIFT)) & CAN_MCR_MAXMB_MASK)
1352#define CAN_MCR_IDAM_MASK (0x300U)
1353#define CAN_MCR_IDAM_SHIFT (8U)
1354#define CAN_MCR_IDAM(x) (((uint32_t)(((uint32_t)(x)) << CAN_MCR_IDAM_SHIFT)) & CAN_MCR_IDAM_MASK)
1355#define CAN_MCR_AEN (0x1000U)
1356#define CAN_MCR_LPRIOEN (0x2000U)
1357#define CAN_MCR_IRMQ (0x10000U)
1358#define CAN_MCR_SRXDIS (0x20000U)
1359#define CAN_MCR_WAKSRC (0x80000U)
1360#define CAN_MCR_LPMACK (0x100000U)
1361#define CAN_MCR_WRNEN (0x200000U)
1362#define CAN_MCR_SLFWAK (0x400000U)
1363#define CAN_MCR_SUPV (0x800000U)
1364#define CAN_MCR_FRZACK (0x1000000U)
1365#define CAN_MCR_SOFTRST (0x2000000U)
1366#define CAN_MCR_WAKMSK (0x4000000U)
1367#define CAN_MCR_NOTRDY (0x8000000U)
1368#define CAN_MCR_HALT (0x10000000U)
1369#define CAN_MCR_RFEN (0x20000000U)
1370#define CAN_MCR_FRZ (0x40000000U)
1371#define CAN_MCR_MDIS (0x80000000U)
1372
1373/*! @name CTRL1 - Control 1 register */
1374#define CAN_CTRL1_PROPSEG_MASK (0x7U)
1375#define CAN_CTRL1_PROPSEG_SHIFT (0U)
1376#define CAN_CTRL1_PROPSEG(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_PROPSEG_SHIFT)) & CAN_CTRL1_PROPSEG_MASK)
1377#define CAN_CTRL1_LOM (0x8U)
1378#define CAN_CTRL1_LBUF (0x10U)
1379#define CAN_CTRL1_TSYN (0x20U)
1380#define CAN_CTRL1_BOFFREC (0x40U)
1381#define CAN_CTRL1_SMP (0x80U)
1382#define CAN_CTRL1_RWRNMSK (0x400U)
1383#define CAN_CTRL1_TWRNMSK (0x800U)
1384#define CAN_CTRL1_LPB (0x1000U)
1385#define CAN_CTRL1_CLKSRC (0x2000U)
1386#define CAN_CTRL1_ERRMSK (0x4000U)
1387#define CAN_CTRL1_BOFFMSK (0x8000U)
1388#define CAN_CTRL1_PSEG2_MASK (0x70000U)
1389#define CAN_CTRL1_PSEG2_SHIFT (16U)
1390#define CAN_CTRL1_PSEG2(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_PSEG2_SHIFT)) & CAN_CTRL1_PSEG2_MASK)
1391#define CAN_CTRL1_PSEG1_MASK (0x380000U)
1392#define CAN_CTRL1_PSEG1_SHIFT (19U)
1393#define CAN_CTRL1_PSEG1(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_PSEG1_SHIFT)) & CAN_CTRL1_PSEG1_MASK)
1394#define CAN_CTRL1_RJW_MASK (0xC00000U)
1395#define CAN_CTRL1_RJW_SHIFT (22U)
1396#define CAN_CTRL1_RJW(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_RJW_SHIFT)) & CAN_CTRL1_RJW_MASK)
1397#define CAN_CTRL1_PRESDIV_MASK (0xFF000000U)
1398#define CAN_CTRL1_PRESDIV_SHIFT (24U)
1399#define CAN_CTRL1_PRESDIV(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL1_PRESDIV_SHIFT)) & CAN_CTRL1_PRESDIV_MASK)
1400
1401/*! @name TIMER - Free Running Timer */
1402#define CAN_TIMER_TIMER_MASK (0xFFFFU)
1403#define CAN_TIMER_TIMER_SHIFT (0U)
1404#define CAN_TIMER_TIMER(x) (((uint32_t)(((uint32_t)(x)) << CAN_TIMER_TIMER_SHIFT)) & CAN_TIMER_TIMER_MASK)
1405
1406/*! @name ECR - Error Counter */
1407#define CAN_ECR_TXERRCNT_MASK (0xFFU)
1408#define CAN_ECR_TXERRCNT_SHIFT (0U)
1409#define CAN_ECR_TXERRCNT(x) (((uint32_t)(((uint32_t)(x)) << CAN_ECR_TXERRCNT_SHIFT)) & CAN_ECR_TXERRCNT_MASK)
1410#define CAN_ECR_RXERRCNT_MASK (0xFF00U)
1411#define CAN_ECR_RXERRCNT_SHIFT (8U)
1412#define CAN_ECR_RXERRCNT(x) (((uint32_t)(((uint32_t)(x)) << CAN_ECR_RXERRCNT_SHIFT)) & CAN_ECR_RXERRCNT_MASK)
1413
1414/*! @name ESR1 - Error and Status 1 register */
1415#define CAN_ESR1_WAKINT (0x1U)
1416#define CAN_ESR1_ERRINT (0x2U)
1417#define CAN_ESR1_BOFFINT (0x4U)
1418#define CAN_ESR1_RX (0x8U)
1419#define CAN_ESR1_FLTCONF_MASK (0x30U)
1420#define CAN_ESR1_FLTCONF_SHIFT (4U)
1421#define CAN_ESR1_FLTCONF(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR1_FLTCONF_SHIFT)) & CAN_ESR1_FLTCONF_MASK)
1422#define CAN_ESR1_TX (0x40U)
1423#define CAN_ESR1_IDLE (0x80U)
1424#define CAN_ESR1_RXWRN (0x100U)
1425#define CAN_ESR1_TXWRN (0x200U)
1426#define CAN_ESR1_STFERR (0x400U)
1427#define CAN_ESR1_FRMERR (0x800U)
1428#define CAN_ESR1_CRCERR (0x1000U)
1429#define CAN_ESR1_ACKERR (0x2000U)
1430#define CAN_ESR1_BIT0ERR (0x4000U)
1431#define CAN_ESR1_BIT1ERR (0x8000U)
1432#define CAN_ESR1_RWRNINT (0x10000U)
1433#define CAN_ESR1_TWRNINT (0x20000U)
1434#define CAN_ESR1_SYNCH (0x40000U)
1435
1436/*! @name IFLAG1 - Interrupt Flags 1 register */
1437#define CAN_IFLAG1_BUF0I (0x1U)
1438#define CAN_IFLAG1_BUF4TO1I_MASK (0x1EU)
1439#define CAN_IFLAG1_BUF4TO1I_SHIFT (1U)
1440#define CAN_IFLAG1_BUF4TO1I(x) (((uint32_t)(((uint32_t)(x)) << CAN_IFLAG1_BUF4TO1I_SHIFT)) & CAN_IFLAG1_BUF4TO1I_MASK)
1441#define CAN_IFLAG1_BUF5I (0x20U)
1442#define CAN_IFLAG1_BUF6I (0x40U)
1443#define CAN_IFLAG1_BUF7I (0x80U)
1444#define CAN_IFLAG1_BUF31TO8I_MASK (0xFFFFFF00U)
1445#define CAN_IFLAG1_BUF31TO8I_SHIFT (8U)
1446#define CAN_IFLAG1_BUF31TO8I(x) (((uint32_t)(((uint32_t)(x)) << CAN_IFLAG1_BUF31TO8I_SHIFT)) & CAN_IFLAG1_BUF31TO8I_MASK)
1447
1448/*! @name CTRL2 - Control 2 register */
1449#define CAN_CTRL2_EACEN (0x10000U)
1450#define CAN_CTRL2_RRS (0x20000U)
1451#define CAN_CTRL2_MRP (0x40000U)
1452#define CAN_CTRL2_TASD_MASK (0xF80000U)
1453#define CAN_CTRL2_TASD_SHIFT (19U)
1454#define CAN_CTRL2_TASD(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL2_TASD_SHIFT)) & CAN_CTRL2_TASD_MASK)
1455#define CAN_CTRL2_RFFN_MASK (0xF000000U)
1456#define CAN_CTRL2_RFFN_SHIFT (24U)
1457#define CAN_CTRL2_RFFN(x) (((uint32_t)(((uint32_t)(x)) << CAN_CTRL2_RFFN_SHIFT)) & CAN_CTRL2_RFFN_MASK)
1458#define CAN_CTRL2_WRMFRZ (0x10000000U)
1459
1460/*! @name ESR2 - Error and Status 2 register */
1461#define CAN_ESR2_IMB (0x2000U)
1462#define CAN_ESR2_VPS (0x4000U)
1463#define CAN_ESR2_LPTM_MASK (0x7F0000U)
1464#define CAN_ESR2_LPTM_SHIFT (16U)
1465#define CAN_ESR2_LPTM(x) (((uint32_t)(((uint32_t)(x)) << CAN_ESR2_LPTM_SHIFT)) & CAN_ESR2_LPTM_MASK)
1466
1467/*! @name CRCR - CRC Register */
1468#define CAN_CRCR_TXCRC_MASK (0x7FFFU)
1469#define CAN_CRCR_TXCRC_SHIFT (0U)
1470#define CAN_CRCR_TXCRC(x) (((uint32_t)(((uint32_t)(x)) << CAN_CRCR_TXCRC_SHIFT)) & CAN_CRCR_TXCRC_MASK)
1471#define CAN_CRCR_MBCRC_MASK (0x7F0000U)
1472#define CAN_CRCR_MBCRC_SHIFT (16U)
1473#define CAN_CRCR_MBCRC(x) (((uint32_t)(((uint32_t)(x)) << CAN_CRCR_MBCRC_SHIFT)) & CAN_CRCR_MBCRC_MASK)
1474
1475/*! @name RXFIR - Rx FIFO Information Register */
1476#define CAN_RXFIR_IDHIT_MASK (0x1FFU)
1477#define CAN_RXFIR_IDHIT_SHIFT (0U)
1478#define CAN_RXFIR_IDHIT(x) (((uint32_t)(((uint32_t)(x)) << CAN_RXFIR_IDHIT_SHIFT)) & CAN_RXFIR_IDHIT_MASK)
1479
1480/*! @name CS - Message Buffer 0 CS Register..Message Buffer 15 CS Register */
1481#define CAN_CS_TIME_STAMP_MASK (0xFFFFU)
1482#define CAN_CS_TIME_STAMP_SHIFT (0U)
1483#define CAN_CS_TIME_STAMP(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_TIME_STAMP_SHIFT)) & CAN_CS_TIME_STAMP_MASK)
1484#define CAN_CS_DLC_MASK (0xF0000U)
1485#define CAN_CS_DLC_SHIFT (16U)
1486#define CAN_CS_DLC(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_DLC_SHIFT)) & CAN_CS_DLC_MASK)
1487#define CAN_CS_RTR (0x100000U)
1488#define CAN_CS_IDE (0x200000U)
1489#define CAN_CS_SRR (0x400000U)
1490#define CAN_CS_CODE_MASK (0xF000000U)
1491#define CAN_CS_CODE_SHIFT (24U)
1492#define CAN_CS_CODE(x) (((uint32_t)(((uint32_t)(x)) << CAN_CS_CODE_SHIFT)) & CAN_CS_CODE_MASK)
1493
1494/* The count of CAN_CS */
1495#define CAN_CS_COUNT (16U)
1496
1497/*! @name ID - Message Buffer 0 ID Register..Message Buffer 15 ID Register */
1498#define CAN_ID_EXT_MASK (0x3FFFFU)
1499#define CAN_ID_EXT_SHIFT (0U)
1500#define CAN_ID_EXT(x) (((uint32_t)(((uint32_t)(x)) << CAN_ID_EXT_SHIFT)) & CAN_ID_EXT_MASK)
1501#define CAN_ID_STD_MASK (0x1FFC0000U)
1502#define CAN_ID_STD_SHIFT (18U)
1503#define CAN_ID_STD(x) (((uint32_t)(((uint32_t)(x)) << CAN_ID_STD_SHIFT)) & CAN_ID_STD_MASK)
1504#define CAN_ID_PRIO_MASK (0xE0000000U)
1505#define CAN_ID_PRIO_SHIFT (29U)
1506#define CAN_ID_PRIO(x) (((uint32_t)(((uint32_t)(x)) << CAN_ID_PRIO_SHIFT)) & CAN_ID_PRIO_MASK)
1507
1508/* The count of CAN_ID */
1509#define CAN_ID_COUNT (16U)
1510
1511/*! @name WORD0 - Message Buffer 0 WORD0 Register..Message Buffer 15 WORD0 Register */
1512#define CAN_WORD0_DATA_BYTE_3_MASK (0xFFU)
1513#define CAN_WORD0_DATA_BYTE_3_SHIFT (0U)
1514#define CAN_WORD0_DATA_BYTE_3(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD0_DATA_BYTE_3_SHIFT)) & CAN_WORD0_DATA_BYTE_3_MASK)
1515#define CAN_WORD0_DATA_BYTE_2_MASK (0xFF00U)
1516#define CAN_WORD0_DATA_BYTE_2_SHIFT (8U)
1517#define CAN_WORD0_DATA_BYTE_2(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD0_DATA_BYTE_2_SHIFT)) & CAN_WORD0_DATA_BYTE_2_MASK)
1518#define CAN_WORD0_DATA_BYTE_1_MASK (0xFF0000U)
1519#define CAN_WORD0_DATA_BYTE_1_SHIFT (16U)
1520#define CAN_WORD0_DATA_BYTE_1(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD0_DATA_BYTE_1_SHIFT)) & CAN_WORD0_DATA_BYTE_1_MASK)
1521#define CAN_WORD0_DATA_BYTE_0_MASK (0xFF000000U)
1522#define CAN_WORD0_DATA_BYTE_0_SHIFT (24U)
1523#define CAN_WORD0_DATA_BYTE_0(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD0_DATA_BYTE_0_SHIFT)) & CAN_WORD0_DATA_BYTE_0_MASK)
1524
1525/* The count of CAN_WORD0 */
1526#define CAN_WORD0_COUNT (16U)
1527
1528/*! @name WORD1 - Message Buffer 0 WORD1 Register..Message Buffer 15 WORD1 Register */
1529#define CAN_WORD1_DATA_BYTE_7_MASK (0xFFU)
1530#define CAN_WORD1_DATA_BYTE_7_SHIFT (0U)
1531#define CAN_WORD1_DATA_BYTE_7(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD1_DATA_BYTE_7_SHIFT)) & CAN_WORD1_DATA_BYTE_7_MASK)
1532#define CAN_WORD1_DATA_BYTE_6_MASK (0xFF00U)
1533#define CAN_WORD1_DATA_BYTE_6_SHIFT (8U)
1534#define CAN_WORD1_DATA_BYTE_6(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD1_DATA_BYTE_6_SHIFT)) & CAN_WORD1_DATA_BYTE_6_MASK)
1535#define CAN_WORD1_DATA_BYTE_5_MASK (0xFF0000U)
1536#define CAN_WORD1_DATA_BYTE_5_SHIFT (16U)
1537#define CAN_WORD1_DATA_BYTE_5(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD1_DATA_BYTE_5_SHIFT)) & CAN_WORD1_DATA_BYTE_5_MASK)
1538#define CAN_WORD1_DATA_BYTE_4_MASK (0xFF000000U)
1539#define CAN_WORD1_DATA_BYTE_4_SHIFT (24U)
1540#define CAN_WORD1_DATA_BYTE_4(x) (((uint32_t)(((uint32_t)(x)) << CAN_WORD1_DATA_BYTE_4_SHIFT)) & CAN_WORD1_DATA_BYTE_4_MASK)
1541
1542/* The count of CAN_WORD1 */
1543#define CAN_WORD1_COUNT (16U)
1544
1545/* The count of CAN_RXIMR */
1546#define CAN_RXIMR_COUNT (16U)
1547
1548/*!
1549 * @}
1550 */ /* end of group CAN_Register_Masks */
1551
1552
1553/* CAN - Peripheral instance base addresses */
1554/** Peripheral CAN0 base address */
1555#define CAN0_BASE (0x40024000u)
1556/** Peripheral CAN0 base pointer */
1557#define CAN0 ((CAN_TypeDef *)CAN0_BASE)
1558/** Array initializer of CAN peripheral base addresses */
1559#define CAN_BASE_ADDRS { CAN0_BASE }
1560/** Array initializer of CAN peripheral base pointers */
1561#define CAN_BASE_PTRS { CAN0 }
1562/** Interrupt vectors for the CAN peripheral type */
1563#define CAN_Rx_Warning_IRQS { CAN0_Rx_Warning_IRQn }
1564#define CAN_Tx_Warning_IRQS { CAN0_Tx_Warning_IRQn }
1565#define CAN_Wake_Up_IRQS { CAN0_Wake_Up_IRQn }
1566#define CAN_Error_IRQS { CAN0_Error_IRQn }
1567#define CAN_Bus_Off_IRQS { CAN0_Bus_Off_IRQn }
1568#define CAN_ORed_Message_buffer_IRQS { CAN0_ORed_Message_buffer_IRQn }
1569
1570/*!
1571 * @}
1572 */ /* end of group CAN_Peripheral_Access_Layer */
1573
1574
1575/* ----------------------------------------------------------------------------
1576 -- CAU Peripheral Access Layer
1577 ---------------------------------------------------------------------------- */
1578
1579/*!
1580 * @addtogroup CAU_Peripheral_Access_Layer CAU Peripheral Access Layer
1581 * @{
1582 */
1583
1584/** CAU - Register Layout Typedef */
1585typedef struct {
1586 __O uint32_t DIRECT[16]; /**< Direct access register 0..Direct access register 15, array offset: 0x0, array step: 0x4 */
1587 uint8_t RESERVED_0[2048];
1588 __O uint32_t LDR_CASR; /**< Status register - Load Register command, offset: 0x840 */
1589 __O uint32_t LDR_CAA; /**< Accumulator register - Load Register command, offset: 0x844 */
1590 __O uint32_t LDR_CA[9]; /**< General Purpose Register 0 - Load Register command..General Purpose Register 8 - Load Register command, array offset: 0x848, array step: 0x4 */
1591 uint8_t RESERVED_1[20];
1592 __I uint32_t STR_CASR; /**< Status register - Store Register command, offset: 0x880 */
1593 __I uint32_t STR_CAA; /**< Accumulator register - Store Register command, offset: 0x884 */
1594 __I uint32_t STR_CA[9]; /**< General Purpose Register 0 - Store Register command..General Purpose Register 8 - Store Register command, array offset: 0x888, array step: 0x4 */
1595 uint8_t RESERVED_2[20];
1596 __O uint32_t ADR_CASR; /**< Status register - Add Register command, offset: 0x8C0 */
1597 __O uint32_t ADR_CAA; /**< Accumulator register - Add to register command, offset: 0x8C4 */
1598 __O uint32_t ADR_CA[9]; /**< General Purpose Register 0 - Add to register command..General Purpose Register 8 - Add to register command, array offset: 0x8C8, array step: 0x4 */
1599 uint8_t RESERVED_3[20];
1600 __O uint32_t RADR_CASR; /**< Status register - Reverse and Add to Register command, offset: 0x900 */
1601 __O uint32_t RADR_CAA; /**< Accumulator register - Reverse and Add to Register command, offset: 0x904 */
1602 __O uint32_t RADR_CA[9]; /**< General Purpose Register 0 - Reverse and Add to Register command..General Purpose Register 8 - Reverse and Add to Register command, array offset: 0x908, array step: 0x4 */
1603 uint8_t RESERVED_4[84];
1604 __O uint32_t XOR_CASR; /**< Status register - Exclusive Or command, offset: 0x980 */
1605 __O uint32_t XOR_CAA; /**< Accumulator register - Exclusive Or command, offset: 0x984 */
1606 __O uint32_t XOR_CA[9]; /**< General Purpose Register 0 - Exclusive Or command..General Purpose Register 8 - Exclusive Or command, array offset: 0x988, array step: 0x4 */
1607 uint8_t RESERVED_5[20];
1608 __O uint32_t ROTL_CASR; /**< Status register - Rotate Left command, offset: 0x9C0 */
1609 __O uint32_t ROTL_CAA; /**< Accumulator register - Rotate Left command, offset: 0x9C4 */
1610 __O uint32_t ROTL_CA[9]; /**< General Purpose Register 0 - Rotate Left command..General Purpose Register 8 - Rotate Left command, array offset: 0x9C8, array step: 0x4 */
1611 uint8_t RESERVED_6[276];
1612 __O uint32_t AESC_CASR; /**< Status register - AES Column Operation command, offset: 0xB00 */
1613 __O uint32_t AESC_CAA; /**< Accumulator register - AES Column Operation command, offset: 0xB04 */
1614 __O uint32_t AESC_CA[9]; /**< General Purpose Register 0 - AES Column Operation command..General Purpose Register 8 - AES Column Operation command, array offset: 0xB08, array step: 0x4 */
1615 uint8_t RESERVED_7[20];
1616 __O uint32_t AESIC_CASR; /**< Status register - AES Inverse Column Operation command, offset: 0xB40 */
1617 __O uint32_t AESIC_CAA; /**< Accumulator register - AES Inverse Column Operation command, offset: 0xB44 */
1618 __O uint32_t AESIC_CA[9]; /**< General Purpose Register 0 - AES Inverse Column Operation command..General Purpose Register 8 - AES Inverse Column Operation command, array offset: 0xB48, array step: 0x4 */
1619} CAU_TypeDef;
1620
1621/* ----------------------------------------------------------------------------
1622 -- CAU Register Masks
1623 ---------------------------------------------------------------------------- */
1624
1625/*!
1626 * @addtogroup CAU_Register_Masks CAU Register Masks
1627 * @{
1628 */
1629
1630/* The count of CAU_DIRECT */
1631#define CAU_DIRECT_COUNT (16U)
1632
1633/*! @name LDR_CASR - Status register - Load Register command */
1634#define CAU_LDR_CASR_IC (0x1U)
1635#define CAU_LDR_CASR_DPE (0x2U)
1636#define CAU_LDR_CASR_VER_MASK (0xF0000000U)
1637#define CAU_LDR_CASR_VER_SHIFT (28U)
1638#define CAU_LDR_CASR_VER(x) (((uint32_t)(((uint32_t)(x)) << CAU_LDR_CASR_VER_SHIFT)) & CAU_LDR_CASR_VER_MASK)
1639
1640/* The count of CAU_LDR_CA */
1641#define CAU_LDR_CA_COUNT (9U)
1642
1643/*! @name STR_CASR - Status register - Store Register command */
1644#define CAU_STR_CASR_IC (0x1U)
1645#define CAU_STR_CASR_DPE (0x2U)
1646#define CAU_STR_CASR_VER_MASK (0xF0000000U)
1647#define CAU_STR_CASR_VER_SHIFT (28U)
1648#define CAU_STR_CASR_VER(x) (((uint32_t)(((uint32_t)(x)) << CAU_STR_CASR_VER_SHIFT)) & CAU_STR_CASR_VER_MASK)
1649
1650/* The count of CAU_STR_CA */
1651#define CAU_STR_CA_COUNT (9U)
1652
1653/*! @name ADR_CASR - Status register - Add Register command */
1654#define CAU_ADR_CASR_IC (0x1U)
1655#define CAU_ADR_CASR_DPE (0x2U)
1656#define CAU_ADR_CASR_VER_MASK (0xF0000000U)
1657#define CAU_ADR_CASR_VER_SHIFT (28U)
1658#define CAU_ADR_CASR_VER(x) (((uint32_t)(((uint32_t)(x)) << CAU_ADR_CASR_VER_SHIFT)) & CAU_ADR_CASR_VER_MASK)
1659
1660/* The count of CAU_ADR_CA */
1661#define CAU_ADR_CA_COUNT (9U)
1662
1663/*! @name RADR_CASR - Status register - Reverse and Add to Register command */
1664#define CAU_RADR_CASR_IC (0x1U)
1665#define CAU_RADR_CASR_DPE (0x2U)
1666#define CAU_RADR_CASR_VER_MASK (0xF0000000U)
1667#define CAU_RADR_CASR_VER_SHIFT (28U)
1668#define CAU_RADR_CASR_VER(x) (((uint32_t)(((uint32_t)(x)) << CAU_RADR_CASR_VER_SHIFT)) & CAU_RADR_CASR_VER_MASK)
1669
1670/* The count of CAU_RADR_CA */
1671#define CAU_RADR_CA_COUNT (9U)
1672
1673/*! @name XOR_CASR - Status register - Exclusive Or command */
1674#define CAU_XOR_CASR_IC (0x1U)
1675#define CAU_XOR_CASR_DPE (0x2U)
1676#define CAU_XOR_CASR_VER_MASK (0xF0000000U)
1677#define CAU_XOR_CASR_VER_SHIFT (28U)
1678#define CAU_XOR_CASR_VER(x) (((uint32_t)(((uint32_t)(x)) << CAU_XOR_CASR_VER_SHIFT)) & CAU_XOR_CASR_VER_MASK)
1679
1680/* The count of CAU_XOR_CA */
1681#define CAU_XOR_CA_COUNT (9U)
1682
1683/*! @name ROTL_CASR - Status register - Rotate Left command */
1684#define CAU_ROTL_CASR_IC (0x1U)
1685#define CAU_ROTL_CASR_DPE (0x2U)
1686#define CAU_ROTL_CASR_VER_MASK (0xF0000000U)
1687#define CAU_ROTL_CASR_VER_SHIFT (28U)
1688#define CAU_ROTL_CASR_VER(x) (((uint32_t)(((uint32_t)(x)) << CAU_ROTL_CASR_VER_SHIFT)) & CAU_ROTL_CASR_VER_MASK)
1689
1690/* The count of CAU_ROTL_CA */
1691#define CAU_ROTL_CA_COUNT (9U)
1692
1693/*! @name AESC_CASR - Status register - AES Column Operation command */
1694#define CAU_AESC_CASR_IC (0x1U)
1695#define CAU_AESC_CASR_DPE (0x2U)
1696#define CAU_AESC_CASR_VER_MASK (0xF0000000U)
1697#define CAU_AESC_CASR_VER_SHIFT (28U)
1698#define CAU_AESC_CASR_VER(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESC_CASR_VER_SHIFT)) & CAU_AESC_CASR_VER_MASK)
1699
1700/* The count of CAU_AESC_CA */
1701#define CAU_AESC_CA_COUNT (9U)
1702
1703/*! @name AESIC_CASR - Status register - AES Inverse Column Operation command */
1704#define CAU_AESIC_CASR_IC (0x1U)
1705#define CAU_AESIC_CASR_DPE (0x2U)
1706#define CAU_AESIC_CASR_VER_MASK (0xF0000000U)
1707#define CAU_AESIC_CASR_VER_SHIFT (28U)
1708#define CAU_AESIC_CASR_VER(x) (((uint32_t)(((uint32_t)(x)) << CAU_AESIC_CASR_VER_SHIFT)) & CAU_AESIC_CASR_VER_MASK)
1709
1710/* The count of CAU_AESIC_CA */
1711#define CAU_AESIC_CA_COUNT (9U)
1712
1713
1714/*!
1715 * @}
1716 */ /* end of group CAU_Register_Masks */
1717
1718
1719/* CAU - Peripheral instance base addresses */
1720/** Peripheral CAU base address */
1721#define CAU_BASE (0xE0081000u)
1722/** Peripheral CAU base pointer */
1723#define CAU ((CAU_TypeDef *)CAU_BASE)
1724/** Array initializer of CAU peripheral base addresses */
1725#define CAU_BASE_ADDRS { CAU_BASE }
1726/** Array initializer of CAU peripheral base pointers */
1727#define CAU_BASE_PTRS { CAU }
1728
1729/*!
1730 * @}
1731 */ /* end of group CAU_Peripheral_Access_Layer */
1732
1733
1734/* ----------------------------------------------------------------------------
1735 -- CMP Peripheral Access Layer
1736 ---------------------------------------------------------------------------- */
1737
1738/*!
1739 * @addtogroup CMP_Peripheral_Access_Layer CMP Peripheral Access Layer
1740 * @{
1741 */
1742
1743/** CMP - Register Layout Typedef */
1744typedef struct {
1745 __IO uint8_t CR0; /**< CMP Control Register 0, offset: 0x0 */
1746 __IO uint8_t CR1; /**< CMP Control Register 1, offset: 0x1 */
1747 __IO uint8_t FPR; /**< CMP Filter Period Register, offset: 0x2 */
1748 __IO uint8_t SCR; /**< CMP Status and Control Register, offset: 0x3 */
1749 __IO uint8_t DACCR; /**< DAC Control Register, offset: 0x4 */
1750 __IO uint8_t MUXCR; /**< MUX Control Register, offset: 0x5 */
1751} CMP_TypeDef;
1752
1753/* ----------------------------------------------------------------------------
1754 -- CMP Register Masks
1755 ---------------------------------------------------------------------------- */
1756
1757/*!
1758 * @addtogroup CMP_Register_Masks CMP Register Masks
1759 * @{
1760 */
1761
1762/*! @name CR0 - CMP Control Register 0 */
1763#define CMP_CR0_HYSTCTR_MASK (0x3U)
1764#define CMP_CR0_HYSTCTR_SHIFT (0U)
1765#define CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK)
1766#define CMP_CR0_FILTER_CNT_MASK (0x70U)
1767#define CMP_CR0_FILTER_CNT_SHIFT (4U)
1768#define CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK)
1769
1770/*! @name CR1 - CMP Control Register 1 */
1771#define CMP_CR1_EN (0x1U)
1772#define CMP_CR1_OPE (0x2U)
1773#define CMP_CR1_COS (0x4U)
1774#define CMP_CR1_INV (0x8U)
1775#define CMP_CR1_PMODE (0x10U)
1776#define CMP_CR1_WE (0x40U)
1777#define CMP_CR1_SE (0x80U)
1778
1779/*! @name FPR - CMP Filter Period Register */
1780#define CMP_FPR_FILT_PER_MASK (0xFFU)
1781#define CMP_FPR_FILT_PER_SHIFT (0U)
1782#define CMP_FPR_FILT_PER(x) (((uint8_t)(((uint8_t)(x)) << CMP_FPR_FILT_PER_SHIFT)) & CMP_FPR_FILT_PER_MASK)
1783
1784/*! @name SCR - CMP Status and Control Register */
1785#define CMP_SCR_COUT (0x1U)
1786#define CMP_SCR_CFF (0x2U)
1787#define CMP_SCR_CFR (0x4U)
1788#define CMP_SCR_IEF (0x8U)
1789#define CMP_SCR_IER (0x10U)
1790#define CMP_SCR_DMAEN (0x40U)
1791
1792/*! @name DACCR - DAC Control Register */
1793#define CMP_DACCR_VOSEL_MASK (0x3FU)
1794#define CMP_DACCR_VOSEL_SHIFT (0U)
1795#define CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK)
1796#define CMP_DACCR_VRSEL (0x40U)
1797#define CMP_DACCR_DACEN (0x80U)
1798
1799/*! @name MUXCR - MUX Control Register */
1800#define CMP_MUXCR_MSEL_MASK (0x7U)
1801#define CMP_MUXCR_MSEL_SHIFT (0U)
1802#define CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK)
1803#define CMP_MUXCR_PSEL_MASK (0x38U)
1804#define CMP_MUXCR_PSEL_SHIFT (3U)
1805#define CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK)
1806#define CMP_MUXCR_PSTM (0x80U)
1807
1808
1809/*!
1810 * @}
1811 */ /* end of group CMP_Register_Masks */
1812
1813
1814/* CMP - Peripheral instance base addresses */
1815/** Peripheral CMP0 base address */
1816#define CMP0_BASE (0x40073000u)
1817/** Peripheral CMP0 base pointer */
1818#define CMP0 ((CMP_TypeDef *)CMP0_BASE)
1819/** Peripheral CMP1 base address */
1820#define CMP1_BASE (0x40073008u)
1821/** Peripheral CMP1 base pointer */
1822#define CMP1 ((CMP_TypeDef *)CMP1_BASE)
1823/** Peripheral CMP2 base address */
1824#define CMP2_BASE (0x40073010u)
1825/** Peripheral CMP2 base pointer */
1826#define CMP2 ((CMP_TypeDef *)CMP2_BASE)
1827/** Array initializer of CMP peripheral base addresses */
1828#define CMP_BASE_ADDRS { CMP0_BASE, CMP1_BASE, CMP2_BASE }
1829/** Array initializer of CMP peripheral base pointers */
1830#define CMP_BASE_PTRS { CMP0, CMP1, CMP2 }
1831/** Interrupt vectors for the CMP peripheral type */
1832#define CMP_IRQS { CMP0_IRQn, CMP1_IRQn, CMP2_IRQn }
1833
1834/*!
1835 * @}
1836 */ /* end of group CMP_Peripheral_Access_Layer */
1837
1838
1839/* ----------------------------------------------------------------------------
1840 -- CMT Peripheral Access Layer
1841 ---------------------------------------------------------------------------- */
1842
1843/*!
1844 * @addtogroup CMT_Peripheral_Access_Layer CMT Peripheral Access Layer
1845 * @{
1846 */
1847
1848/** CMT - Register Layout Typedef */
1849typedef struct {
1850 __IO uint8_t CGH1; /**< CMT Carrier Generator High Data Register 1, offset: 0x0 */
1851 __IO uint8_t CGL1; /**< CMT Carrier Generator Low Data Register 1, offset: 0x1 */
1852 __IO uint8_t CGH2; /**< CMT Carrier Generator High Data Register 2, offset: 0x2 */
1853 __IO uint8_t CGL2; /**< CMT Carrier Generator Low Data Register 2, offset: 0x3 */
1854 __IO uint8_t OC; /**< CMT Output Control Register, offset: 0x4 */
1855 __IO uint8_t MSC; /**< CMT Modulator Status and Control Register, offset: 0x5 */
1856 __IO uint8_t CMD1; /**< CMT Modulator Data Register Mark High, offset: 0x6 */
1857 __IO uint8_t CMD2; /**< CMT Modulator Data Register Mark Low, offset: 0x7 */
1858 __IO uint8_t CMD3; /**< CMT Modulator Data Register Space High, offset: 0x8 */
1859 __IO uint8_t CMD4; /**< CMT Modulator Data Register Space Low, offset: 0x9 */
1860 __IO uint8_t PPS; /**< CMT Primary Prescaler Register, offset: 0xA */
1861 __IO uint8_t DMA; /**< CMT Direct Memory Access Register, offset: 0xB */
1862} CMT_TypeDef;
1863
1864/* ----------------------------------------------------------------------------
1865 -- CMT Register Masks
1866 ---------------------------------------------------------------------------- */
1867
1868/*!
1869 * @addtogroup CMT_Register_Masks CMT Register Masks
1870 * @{
1871 */
1872
1873/*! @name CGH1 - CMT Carrier Generator High Data Register 1 */
1874#define CMT_CGH1_PH_MASK (0xFFU)
1875#define CMT_CGH1_PH_SHIFT (0U)
1876#define CMT_CGH1_PH(x) (((uint8_t)(((uint8_t)(x)) << CMT_CGH1_PH_SHIFT)) & CMT_CGH1_PH_MASK)
1877
1878/*! @name CGL1 - CMT Carrier Generator Low Data Register 1 */
1879#define CMT_CGL1_PL_MASK (0xFFU)
1880#define CMT_CGL1_PL_SHIFT (0U)
1881#define CMT_CGL1_PL(x) (((uint8_t)(((uint8_t)(x)) << CMT_CGL1_PL_SHIFT)) & CMT_CGL1_PL_MASK)
1882
1883/*! @name CGH2 - CMT Carrier Generator High Data Register 2 */
1884#define CMT_CGH2_SH_MASK (0xFFU)
1885#define CMT_CGH2_SH_SHIFT (0U)
1886#define CMT_CGH2_SH(x) (((uint8_t)(((uint8_t)(x)) << CMT_CGH2_SH_SHIFT)) & CMT_CGH2_SH_MASK)
1887
1888/*! @name CGL2 - CMT Carrier Generator Low Data Register 2 */
1889#define CMT_CGL2_SL_MASK (0xFFU)
1890#define CMT_CGL2_SL_SHIFT (0U)
1891#define CMT_CGL2_SL(x) (((uint8_t)(((uint8_t)(x)) << CMT_CGL2_SL_SHIFT)) & CMT_CGL2_SL_MASK)
1892
1893/*! @name OC - CMT Output Control Register */
1894#define CMT_OC_IROPEN (0x20U)
1895#define CMT_OC_CMTPOL (0x40U)
1896#define CMT_OC_IROL (0x80U)
1897
1898/*! @name MSC - CMT Modulator Status and Control Register */
1899#define CMT_MSC_MCGEN (0x1U)
1900#define CMT_MSC_EOCIE (0x2U)
1901#define CMT_MSC_FSK (0x4U)
1902#define CMT_MSC_BASE (0x8U)
1903#define CMT_MSC_EXSPC (0x10U)
1904#define CMT_MSC_CMTDIV_MASK (0x60U)
1905#define CMT_MSC_CMTDIV_SHIFT (5U)
1906#define CMT_MSC_CMTDIV(x) (((uint8_t)(((uint8_t)(x)) << CMT_MSC_CMTDIV_SHIFT)) & CMT_MSC_CMTDIV_MASK)
1907#define CMT_MSC_EOCF (0x80U)
1908
1909/*! @name CMD1 - CMT Modulator Data Register Mark High */
1910#define CMT_CMD1_MB_MASK (0xFFU)
1911#define CMT_CMD1_MB_SHIFT (0U)
1912#define CMT_CMD1_MB(x) (((uint8_t)(((uint8_t)(x)) << CMT_CMD1_MB_SHIFT)) & CMT_CMD1_MB_MASK)
1913
1914/*! @name CMD2 - CMT Modulator Data Register Mark Low */
1915#define CMT_CMD2_MB_MASK (0xFFU)
1916#define CMT_CMD2_MB_SHIFT (0U)
1917#define CMT_CMD2_MB(x) (((uint8_t)(((uint8_t)(x)) << CMT_CMD2_MB_SHIFT)) & CMT_CMD2_MB_MASK)
1918
1919/*! @name CMD3 - CMT Modulator Data Register Space High */
1920#define CMT_CMD3_SB_MASK (0xFFU)
1921#define CMT_CMD3_SB_SHIFT (0U)
1922#define CMT_CMD3_SB(x) (((uint8_t)(((uint8_t)(x)) << CMT_CMD3_SB_SHIFT)) & CMT_CMD3_SB_MASK)
1923
1924/*! @name CMD4 - CMT Modulator Data Register Space Low */
1925#define CMT_CMD4_SB_MASK (0xFFU)
1926#define CMT_CMD4_SB_SHIFT (0U)
1927#define CMT_CMD4_SB(x) (((uint8_t)(((uint8_t)(x)) << CMT_CMD4_SB_SHIFT)) & CMT_CMD4_SB_MASK)
1928
1929/*! @name PPS - CMT Primary Prescaler Register */
1930#define CMT_PPS_PPSDIV_MASK (0xFU)
1931#define CMT_PPS_PPSDIV_SHIFT (0U)
1932#define CMT_PPS_PPSDIV(x) (((uint8_t)(((uint8_t)(x)) << CMT_PPS_PPSDIV_SHIFT)) & CMT_PPS_PPSDIV_MASK)
1933
1934/*! @name DMA - CMT Direct Memory Access Register */
1935#define CMT_DMA_DMA (0x1U)
1936
1937
1938/*!
1939 * @}
1940 */ /* end of group CMT_Register_Masks */
1941
1942
1943/* CMT - Peripheral instance base addresses */
1944/** Peripheral CMT base address */
1945#define CMT_BASE (0x40062000u)
1946/** Peripheral CMT base pointer */
1947#define CMT ((CMT_TypeDef *)CMT_BASE)
1948/** Array initializer of CMT peripheral base addresses */
1949#define CMT_BASE_ADDRS { CMT_BASE }
1950/** Array initializer of CMT peripheral base pointers */
1951#define CMT_BASE_PTRS { CMT }
1952/** Interrupt vectors for the CMT peripheral type */
1953#define CMT_IRQS { CMT_IRQn }
1954
1955/*!
1956 * @}
1957 */ /* end of group CMT_Peripheral_Access_Layer */
1958
1959
1960/* ----------------------------------------------------------------------------
1961 -- CRC Peripheral Access Layer
1962 ---------------------------------------------------------------------------- */
1963
1964/*!
1965 * @addtogroup CRC_Peripheral_Access_Layer CRC Peripheral Access Layer
1966 * @{
1967 */
1968
1969/** CRC - Register Layout Typedef */
1970typedef struct {
1971 union { /* offset: 0x0 */
1972 struct { /* offset: 0x0 */
1973 __IO uint16_t DATAL; /**< CRC_DATAL register., offset: 0x0 */
1974 __IO uint16_t DATAH; /**< CRC_DATAH register., offset: 0x2 */
1975 } ACCESS16BIT;
1976 __IO uint32_t DATA; /**< CRC Data register, offset: 0x0 */
1977 struct { /* offset: 0x0 */
1978 __IO uint8_t DATALL; /**< CRC_DATALL register., offset: 0x0 */
1979 __IO uint8_t DATALU; /**< CRC_DATALU register., offset: 0x1 */
1980 __IO uint8_t DATAHL; /**< CRC_DATAHL register., offset: 0x2 */
1981 __IO uint8_t DATAHU; /**< CRC_DATAHU register., offset: 0x3 */
1982 } ACCESS8BIT;
1983 };
1984 union { /* offset: 0x4 */
1985 struct { /* offset: 0x4 */
1986 __IO uint16_t GPOLYL; /**< CRC_GPOLYL register., offset: 0x4 */
1987 __IO uint16_t GPOLYH; /**< CRC_GPOLYH register., offset: 0x6 */
1988 } GPOLY_ACCESS16BIT;
1989 __IO uint32_t GPOLY; /**< CRC Polynomial register, offset: 0x4 */
1990 struct { /* offset: 0x4 */
1991 __IO uint8_t GPOLYLL; /**< CRC_GPOLYLL register., offset: 0x4 */
1992 __IO uint8_t GPOLYLU; /**< CRC_GPOLYLU register., offset: 0x5 */
1993 __IO uint8_t GPOLYHL; /**< CRC_GPOLYHL register., offset: 0x6 */
1994 __IO uint8_t GPOLYHU; /**< CRC_GPOLYHU register., offset: 0x7 */
1995 } GPOLY_ACCESS8BIT;
1996 };
1997 union { /* offset: 0x8 */
1998 __IO uint32_t CTRL; /**< CRC Control register, offset: 0x8 */
1999 struct { /* offset: 0x8 */
2000 uint8_t RESERVED_0[3];
2001 __IO uint8_t CTRLHU; /**< CRC_CTRLHU register., offset: 0xB */
2002 } CTRL_ACCESS8BIT;
2003 };
2004} CRC_TypeDef;
2005
2006/* ----------------------------------------------------------------------------
2007 -- CRC Register Masks
2008 ---------------------------------------------------------------------------- */
2009
2010/*!
2011 * @addtogroup CRC_Register_Masks CRC Register Masks
2012 * @{
2013 */
2014
2015/*! @name DATAL - CRC_DATAL register. */
2016#define CRC_DATAL_DATAL_MASK (0xFFFFU)
2017#define CRC_DATAL_DATAL_SHIFT (0U)
2018#define CRC_DATAL_DATAL(x) (((uint16_t)(((uint16_t)(x)) << CRC_DATAL_DATAL_SHIFT)) & CRC_DATAL_DATAL_MASK)
2019
2020/*! @name DATAH - CRC_DATAH register. */
2021#define CRC_DATAH_DATAH_MASK (0xFFFFU)
2022#define CRC_DATAH_DATAH_SHIFT (0U)
2023#define CRC_DATAH_DATAH(x) (((uint16_t)(((uint16_t)(x)) << CRC_DATAH_DATAH_SHIFT)) & CRC_DATAH_DATAH_MASK)
2024
2025/*! @name DATA - CRC Data register */
2026#define CRC_DATA_LL_MASK (0xFFU)
2027#define CRC_DATA_LL_SHIFT (0U)
2028#define CRC_DATA_LL(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_LL_SHIFT)) & CRC_DATA_LL_MASK)
2029#define CRC_DATA_LU_MASK (0xFF00U)
2030#define CRC_DATA_LU_SHIFT (8U)
2031#define CRC_DATA_LU(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_LU_SHIFT)) & CRC_DATA_LU_MASK)
2032#define CRC_DATA_HL_MASK (0xFF0000U)
2033#define CRC_DATA_HL_SHIFT (16U)
2034#define CRC_DATA_HL(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_HL_SHIFT)) & CRC_DATA_HL_MASK)
2035#define CRC_DATA_HU_MASK (0xFF000000U)
2036#define CRC_DATA_HU_SHIFT (24U)
2037#define CRC_DATA_HU(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_HU_SHIFT)) & CRC_DATA_HU_MASK)
2038
2039/*! @name DATALL - CRC_DATALL register. */
2040#define CRC_DATALL_DATALL_MASK (0xFFU)
2041#define CRC_DATALL_DATALL_SHIFT (0U)
2042#define CRC_DATALL_DATALL(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATALL_DATALL_SHIFT)) & CRC_DATALL_DATALL_MASK)
2043
2044/*! @name DATALU - CRC_DATALU register. */
2045#define CRC_DATALU_DATALU_MASK (0xFFU)
2046#define CRC_DATALU_DATALU_SHIFT (0U)
2047#define CRC_DATALU_DATALU(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATALU_DATALU_SHIFT)) & CRC_DATALU_DATALU_MASK)
2048
2049/*! @name DATAHL - CRC_DATAHL register. */
2050#define CRC_DATAHL_DATAHL_MASK (0xFFU)
2051#define CRC_DATAHL_DATAHL_SHIFT (0U)
2052#define CRC_DATAHL_DATAHL(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATAHL_DATAHL_SHIFT)) & CRC_DATAHL_DATAHL_MASK)
2053
2054/*! @name DATAHU - CRC_DATAHU register. */
2055#define CRC_DATAHU_DATAHU_MASK (0xFFU)
2056#define CRC_DATAHU_DATAHU_SHIFT (0U)
2057#define CRC_DATAHU_DATAHU(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATAHU_DATAHU_SHIFT)) & CRC_DATAHU_DATAHU_MASK)
2058
2059/*! @name GPOLYL - CRC_GPOLYL register. */
2060#define CRC_GPOLYL_GPOLYL_MASK (0xFFFFU)
2061#define CRC_GPOLYL_GPOLYL_SHIFT (0U)
2062#define CRC_GPOLYL_GPOLYL(x) (((uint16_t)(((uint16_t)(x)) << CRC_GPOLYL_GPOLYL_SHIFT)) & CRC_GPOLYL_GPOLYL_MASK)
2063
2064/*! @name GPOLYH - CRC_GPOLYH register. */
2065#define CRC_GPOLYH_GPOLYH_MASK (0xFFFFU)
2066#define CRC_GPOLYH_GPOLYH_SHIFT (0U)
2067#define CRC_GPOLYH_GPOLYH(x) (((uint16_t)(((uint16_t)(x)) << CRC_GPOLYH_GPOLYH_SHIFT)) & CRC_GPOLYH_GPOLYH_MASK)
2068
2069/*! @name GPOLY - CRC Polynomial register */
2070#define CRC_GPOLY_LOW_MASK (0xFFFFU)
2071#define CRC_GPOLY_LOW_SHIFT (0U)
2072#define CRC_GPOLY_LOW(x) (((uint32_t)(((uint32_t)(x)) << CRC_GPOLY_LOW_SHIFT)) & CRC_GPOLY_LOW_MASK)
2073#define CRC_GPOLY_HIGH_MASK (0xFFFF0000U)
2074#define CRC_GPOLY_HIGH_SHIFT (16U)
2075#define CRC_GPOLY_HIGH(x) (((uint32_t)(((uint32_t)(x)) << CRC_GPOLY_HIGH_SHIFT)) & CRC_GPOLY_HIGH_MASK)
2076
2077/*! @name GPOLYLL - CRC_GPOLYLL register. */
2078#define CRC_GPOLYLL_GPOLYLL_MASK (0xFFU)
2079#define CRC_GPOLYLL_GPOLYLL_SHIFT (0U)
2080#define CRC_GPOLYLL_GPOLYLL(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYLL_GPOLYLL_SHIFT)) & CRC_GPOLYLL_GPOLYLL_MASK)
2081
2082/*! @name GPOLYLU - CRC_GPOLYLU register. */
2083#define CRC_GPOLYLU_GPOLYLU_MASK (0xFFU)
2084#define CRC_GPOLYLU_GPOLYLU_SHIFT (0U)
2085#define CRC_GPOLYLU_GPOLYLU(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYLU_GPOLYLU_SHIFT)) & CRC_GPOLYLU_GPOLYLU_MASK)
2086
2087/*! @name GPOLYHL - CRC_GPOLYHL register. */
2088#define CRC_GPOLYHL_GPOLYHL_MASK (0xFFU)
2089#define CRC_GPOLYHL_GPOLYHL_SHIFT (0U)
2090#define CRC_GPOLYHL_GPOLYHL(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYHL_GPOLYHL_SHIFT)) & CRC_GPOLYHL_GPOLYHL_MASK)
2091
2092/*! @name GPOLYHU - CRC_GPOLYHU register. */
2093#define CRC_GPOLYHU_GPOLYHU_MASK (0xFFU)
2094#define CRC_GPOLYHU_GPOLYHU_SHIFT (0U)
2095#define CRC_GPOLYHU_GPOLYHU(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYHU_GPOLYHU_SHIFT)) & CRC_GPOLYHU_GPOLYHU_MASK)
2096
2097/*! @name CTRL - CRC Control register */
2098#define CRC_CTRL_TCRC (0x1000000U)
2099#define CRC_CTRL_WAS (0x2000000U)
2100#define CRC_CTRL_FXOR (0x4000000U)
2101#define CRC_CTRL_TOTR_MASK (0x30000000U)
2102#define CRC_CTRL_TOTR_SHIFT (28U)
2103#define CRC_CTRL_TOTR(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_TOTR_SHIFT)) & CRC_CTRL_TOTR_MASK)
2104#define CRC_CTRL_TOT_MASK (0xC0000000U)
2105#define CRC_CTRL_TOT_SHIFT (30U)
2106#define CRC_CTRL_TOT(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_TOT_SHIFT)) & CRC_CTRL_TOT_MASK)
2107
2108/*! @name CTRLHU - CRC_CTRLHU register. */
2109#define CRC_CTRLHU_TCRC (0x1U)
2110#define CRC_CTRLHU_WAS (0x2U)
2111#define CRC_CTRLHU_FXOR (0x4U)
2112#define CRC_CTRLHU_TOTR_MASK (0x30U)
2113#define CRC_CTRLHU_TOTR_SHIFT (4U)
2114#define CRC_CTRLHU_TOTR(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_TOTR_SHIFT)) & CRC_CTRLHU_TOTR_MASK)
2115#define CRC_CTRLHU_TOT_MASK (0xC0U)
2116#define CRC_CTRLHU_TOT_SHIFT (6U)
2117#define CRC_CTRLHU_TOT(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_TOT_SHIFT)) & CRC_CTRLHU_TOT_MASK)
2118
2119
2120/*!
2121 * @}
2122 */ /* end of group CRC_Register_Masks */
2123
2124
2125/* CRC - Peripheral instance base addresses */
2126/** Peripheral CRC base address */
2127#define CRC_BASE (0x40032000u)
2128/** Peripheral CRC base pointer */
2129#define CRC0 ((CRC_TypeDef *)CRC_BASE)
2130/** Array initializer of CRC peripheral base addresses */
2131#define CRC_BASE_ADDRS { CRC_BASE }
2132/** Array initializer of CRC peripheral base pointers */
2133#define CRC_BASE_PTRS { CRC0 }
2134
2135/*!
2136 * @}
2137 */ /* end of group CRC_Peripheral_Access_Layer */
2138
2139
2140/* ----------------------------------------------------------------------------
2141 -- DAC Peripheral Access Layer
2142 ---------------------------------------------------------------------------- */
2143
2144/*!
2145 * @addtogroup DAC_Peripheral_Access_Layer DAC Peripheral Access Layer
2146 * @{
2147 */
2148
2149/** DAC - Register Layout Typedef */
2150typedef struct {
2151 struct { /* offset: 0x0, array step: 0x2 */
2152 __IO uint8_t DATL; /**< DAC Data Low Register, array offset: 0x0, array step: 0x2 */
2153 __IO uint8_t DATH; /**< DAC Data High Register, array offset: 0x1, array step: 0x2 */
2154 } DAT[16];
2155 __IO uint8_t SR; /**< DAC Status Register, offset: 0x20 */
2156 __IO uint8_t C0; /**< DAC Control Register, offset: 0x21 */
2157 __IO uint8_t C1; /**< DAC Control Register 1, offset: 0x22 */
2158 __IO uint8_t C2; /**< DAC Control Register 2, offset: 0x23 */
2159} DAC_TypeDef;
2160
2161/* ----------------------------------------------------------------------------
2162 -- DAC Register Masks
2163 ---------------------------------------------------------------------------- */
2164
2165/*!
2166 * @addtogroup DAC_Register_Masks DAC Register Masks
2167 * @{
2168 */
2169
2170/*! @name DATL - DAC Data Low Register */
2171#define DAC_DATL_DATA0_MASK (0xFFU)
2172#define DAC_DATL_DATA0_SHIFT (0U)
2173#define DAC_DATL_DATA0(x) (((uint8_t)(((uint8_t)(x)) << DAC_DATL_DATA0_SHIFT)) & DAC_DATL_DATA0_MASK)
2174
2175/* The count of DAC_DATL */
2176#define DAC_DATL_COUNT (16U)
2177
2178/*! @name DATH - DAC Data High Register */
2179#define DAC_DATH_DATA1_MASK (0xFU)
2180#define DAC_DATH_DATA1_SHIFT (0U)
2181#define DAC_DATH_DATA1(x) (((uint8_t)(((uint8_t)(x)) << DAC_DATH_DATA1_SHIFT)) & DAC_DATH_DATA1_MASK)
2182
2183/* The count of DAC_DATH */
2184#define DAC_DATH_COUNT (16U)
2185
2186/*! @name SR - DAC Status Register */
2187#define DAC_SR_DACBFRPBF (0x1U)
2188#define DAC_SR_DACBFRPTF (0x2U)
2189#define DAC_SR_DACBFWMF (0x4U)
2190
2191/*! @name C0 - DAC Control Register */
2192#define DAC_C0_DACBBIEN (0x1U)
2193#define DAC_C0_DACBTIEN (0x2U)
2194#define DAC_C0_DACBWIEN (0x4U)
2195#define DAC_C0_LPEN (0x8U)
2196#define DAC_C0_DACSWTRG (0x10U)
2197#define DAC_C0_DACTRGSEL (0x20U)
2198#define DAC_C0_DACRFS (0x40U)
2199#define DAC_C0_DACEN (0x80U)
2200
2201/*! @name C1 - DAC Control Register 1 */
2202#define DAC_C1_DACBFEN (0x1U)
2203#define DAC_C1_DACBFMD_MASK (0x6U)
2204#define DAC_C1_DACBFMD_SHIFT (1U)
2205#define DAC_C1_DACBFMD(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DACBFMD_SHIFT)) & DAC_C1_DACBFMD_MASK)
2206#define DAC_C1_DACBFWM_MASK (0x18U)
2207#define DAC_C1_DACBFWM_SHIFT (3U)
2208#define DAC_C1_DACBFWM(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DACBFWM_SHIFT)) & DAC_C1_DACBFWM_MASK)
2209#define DAC_C1_DMAEN (0x80U)
2210
2211/*! @name C2 - DAC Control Register 2 */
2212#define DAC_C2_DACBFUP_MASK (0xFU)
2213#define DAC_C2_DACBFUP_SHIFT (0U)
2214#define DAC_C2_DACBFUP(x) (((uint8_t)(((uint8_t)(x)) << DAC_C2_DACBFUP_SHIFT)) & DAC_C2_DACBFUP_MASK)
2215#define DAC_C2_DACBFRP_MASK (0xF0U)
2216#define DAC_C2_DACBFRP_SHIFT (4U)
2217#define DAC_C2_DACBFRP(x) (((uint8_t)(((uint8_t)(x)) << DAC_C2_DACBFRP_SHIFT)) & DAC_C2_DACBFRP_MASK)
2218
2219
2220/*!
2221 * @}
2222 */ /* end of group DAC_Register_Masks */
2223
2224
2225/* DAC - Peripheral instance base addresses */
2226/** Peripheral DAC0 base address */
2227#define DAC0_BASE (0x400CC000u)
2228/** Peripheral DAC0 base pointer */
2229#define DAC0 ((DAC_TypeDef *)DAC0_BASE)
2230/** Peripheral DAC1 base address */
2231#define DAC1_BASE (0x400CD000u)
2232/** Peripheral DAC1 base pointer */
2233#define DAC1 ((DAC_TypeDef *)DAC1_BASE)
2234/** Array initializer of DAC peripheral base addresses */
2235#define DAC_BASE_ADDRS { DAC0_BASE, DAC1_BASE }
2236/** Array initializer of DAC peripheral base pointers */
2237#define DAC_BASE_PTRS { DAC0, DAC1 }
2238/** Interrupt vectors for the DAC peripheral type */
2239#define DAC_IRQS { DAC0_IRQn, DAC1_IRQn }
2240
2241/*!
2242 * @}
2243 */ /* end of group DAC_Peripheral_Access_Layer */
2244
2245
2246/* ----------------------------------------------------------------------------
2247 -- DMA Peripheral Access Layer
2248 ---------------------------------------------------------------------------- */
2249
2250/*!
2251 * @addtogroup DMA_Peripheral_Access_Layer DMA Peripheral Access Layer
2252 * @{
2253 */
2254
2255/** DMA - Register Layout Typedef */
2256typedef struct {
2257 __IO uint32_t CR; /**< Control Register, offset: 0x0 */
2258 __I uint32_t ES; /**< Error Status Register, offset: 0x4 */
2259 uint8_t RESERVED_0[4];
2260 __IO uint32_t ERQ; /**< Enable Request Register, offset: 0xC */
2261 uint8_t RESERVED_1[4];
2262 __IO uint32_t EEI; /**< Enable Error Interrupt Register, offset: 0x14 */
2263 __O uint8_t CEEI; /**< Clear Enable Error Interrupt Register, offset: 0x18 */
2264 __O uint8_t SEEI; /**< Set Enable Error Interrupt Register, offset: 0x19 */
2265 __O uint8_t CERQ; /**< Clear Enable Request Register, offset: 0x1A */
2266 __O uint8_t SERQ; /**< Set Enable Request Register, offset: 0x1B */
2267 __O uint8_t CDNE; /**< Clear DONE Status Bit Register, offset: 0x1C */
2268 __O uint8_t SSRT; /**< Set START Bit Register, offset: 0x1D */
2269 __O uint8_t CERR; /**< Clear Error Register, offset: 0x1E */
2270 __O uint8_t CINT; /**< Clear Interrupt Request Register, offset: 0x1F */
2271 uint8_t RESERVED_2[4];
2272 __IO uint32_t INT; /**< Interrupt Request Register, offset: 0x24 */
2273 uint8_t RESERVED_3[4];
2274 __IO uint32_t ERR; /**< Error Register, offset: 0x2C */
2275 uint8_t RESERVED_4[4];
2276 __I uint32_t HRS; /**< Hardware Request Status Register, offset: 0x34 */
2277 uint8_t RESERVED_5[200];
2278 __IO uint8_t DCHPRI3; /**< Channel n Priority Register, offset: 0x100 */
2279 __IO uint8_t DCHPRI2; /**< Channel n Priority Register, offset: 0x101 */
2280 __IO uint8_t DCHPRI1; /**< Channel n Priority Register, offset: 0x102 */
2281 __IO uint8_t DCHPRI0; /**< Channel n Priority Register, offset: 0x103 */
2282 __IO uint8_t DCHPRI7; /**< Channel n Priority Register, offset: 0x104 */
2283 __IO uint8_t DCHPRI6; /**< Channel n Priority Register, offset: 0x105 */
2284 __IO uint8_t DCHPRI5; /**< Channel n Priority Register, offset: 0x106 */
2285 __IO uint8_t DCHPRI4; /**< Channel n Priority Register, offset: 0x107 */
2286 __IO uint8_t DCHPRI11; /**< Channel n Priority Register, offset: 0x108 */
2287 __IO uint8_t DCHPRI10; /**< Channel n Priority Register, offset: 0x109 */
2288 __IO uint8_t DCHPRI9; /**< Channel n Priority Register, offset: 0x10A */
2289 __IO uint8_t DCHPRI8; /**< Channel n Priority Register, offset: 0x10B */
2290 __IO uint8_t DCHPRI15; /**< Channel n Priority Register, offset: 0x10C */
2291 __IO uint8_t DCHPRI14; /**< Channel n Priority Register, offset: 0x10D */
2292 __IO uint8_t DCHPRI13; /**< Channel n Priority Register, offset: 0x10E */
2293 __IO uint8_t DCHPRI12; /**< Channel n Priority Register, offset: 0x10F */
2294 uint8_t RESERVED_6[3824];
2295 struct { /* offset: 0x1000, array step: 0x20 */
2296 __IO uint32_t SADDR; /**< TCD Source Address, array offset: 0x1000, array step: 0x20 */
2297 __IO uint16_t SOFF; /**< TCD Signed Source Address Offset, array offset: 0x1004, array step: 0x20 */
2298 __IO uint16_t ATTR; /**< TCD Transfer Attributes, array offset: 0x1006, array step: 0x20 */
2299 union { /* offset: 0x1008, array step: 0x20 */
2300 __IO uint32_t NBYTES_MLNO; /**< TCD Minor Byte Count (Minor Loop Disabled), array offset: 0x1008, array step: 0x20 */
2301 __IO uint32_t NBYTES_MLOFFNO; /**< TCD Signed Minor Loop Offset (Minor Loop Enabled and Offset Disabled), array offset: 0x1008, array step: 0x20 */
2302 __IO uint32_t NBYTES_MLOFFYES; /**< TCD Signed Minor Loop Offset (Minor Loop and Offset Enabled), array offset: 0x1008, array step: 0x20 */
2303 };
2304 __IO uint32_t SLAST; /**< TCD Last Source Address Adjustment, array offset: 0x100C, array step: 0x20 */
2305 __IO uint32_t DADDR; /**< TCD Destination Address, array offset: 0x1010, array step: 0x20 */
2306 __IO uint16_t DOFF; /**< TCD Signed Destination Address Offset, array offset: 0x1014, array step: 0x20 */
2307 union { /* offset: 0x1016, array step: 0x20 */
2308 __IO uint16_t CITER_ELINKNO; /**< TCD Current Minor Loop Link, Major Loop Count (Channel Linking Disabled), array offset: 0x1016, array step: 0x20 */
2309 __IO uint16_t CITER_ELINKYES; /**< TCD Current Minor Loop Link, Major Loop Count (Channel Linking Enabled), array offset: 0x1016, array step: 0x20 */
2310 };
2311 __IO uint32_t DLAST_SGA; /**< TCD Last Destination Address Adjustment/Scatter Gather Address, array offset: 0x1018, array step: 0x20 */
2312 __IO uint16_t CSR; /**< TCD Control and Status, array offset: 0x101C, array step: 0x20 */
2313 union { /* offset: 0x101E, array step: 0x20 */
2314 __IO uint16_t BITER_ELINKNO; /**< TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Disabled), array offset: 0x101E, array step: 0x20 */
2315 __IO uint16_t BITER_ELINKYES; /**< TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Enabled), array offset: 0x101E, array step: 0x20 */
2316 };
2317 } TCD[16];
2318} DMA_TypeDef;
2319
2320/* ----------------------------------------------------------------------------
2321 -- DMA Register Masks
2322 ---------------------------------------------------------------------------- */
2323
2324/*!
2325 * @addtogroup DMA_Register_Masks DMA Register Masks
2326 * @{
2327 */
2328
2329/*! @name CR - Control Register */
2330#define DMA_CR_EDBG (0x2U)
2331#define DMA_CR_ERCA (0x4U)
2332#define DMA_CR_HOE (0x10U)
2333#define DMA_CR_HALT (0x20U)
2334#define DMA_CR_CLM (0x40U)
2335#define DMA_CR_EMLM (0x80U)
2336#define DMA_CR_ECX (0x10000U)
2337#define DMA_CR_CX (0x20000U)
2338
2339/*! @name ES - Error Status Register */
2340#define DMA_ES_DBE (0x1U)
2341#define DMA_ES_SBE (0x2U)
2342#define DMA_ES_SGE (0x4U)
2343#define DMA_ES_NCE (0x8U)
2344#define DMA_ES_DOE (0x10U)
2345#define DMA_ES_DAE (0x20U)
2346#define DMA_ES_SOE (0x40U)
2347#define DMA_ES_SAE (0x80U)
2348#define DMA_ES_ERRCHN_MASK (0xF00U)
2349#define DMA_ES_ERRCHN_SHIFT (8U)
2350#define DMA_ES_ERRCHN(x) (((uint32_t)(((uint32_t)(x)) << DMA_ES_ERRCHN_SHIFT)) & DMA_ES_ERRCHN_MASK)
2351#define DMA_ES_CPE (0x4000U)
2352#define DMA_ES_ECX (0x10000U)
2353#define DMA_ES_VLD (0x80000000U)
2354
2355/*! @name CEEI - Clear Enable Error Interrupt Register */
2356#define DMA_CEEI_CEEI_MASK (0xFU)
2357#define DMA_CEEI_CEEI_SHIFT (0U)
2358#define DMA_CEEI_CEEI(x) (((uint8_t)(((uint8_t)(x)) << DMA_CEEI_CEEI_SHIFT)) & DMA_CEEI_CEEI_MASK)
2359#define DMA_CEEI_CAEE (0x40U)
2360#define DMA_CEEI_NOP (0x80U)
2361
2362/*! @name SEEI - Set Enable Error Interrupt Register */
2363#define DMA_SEEI_SEEI_MASK (0xFU)
2364#define DMA_SEEI_SEEI_SHIFT (0U)
2365#define DMA_SEEI_SEEI(x) (((uint8_t)(((uint8_t)(x)) << DMA_SEEI_SEEI_SHIFT)) & DMA_SEEI_SEEI_MASK)
2366#define DMA_SEEI_SAEE (0x40U)
2367#define DMA_SEEI_NOP (0x80U)
2368
2369/*! @name CERQ - Clear Enable Request Register */
2370#define DMA_CERQ_CERQ_MASK (0xFU)
2371#define DMA_CERQ_CERQ_SHIFT (0U)
2372#define DMA_CERQ_CERQ(x) (((uint8_t)(((uint8_t)(x)) << DMA_CERQ_CERQ_SHIFT)) & DMA_CERQ_CERQ_MASK)
2373#define DMA_CERQ_CAER (0x40U)
2374#define DMA_CERQ_NOP (0x80U)
2375
2376/*! @name SERQ - Set Enable Request Register */
2377#define DMA_SERQ_SERQ_MASK (0xFU)
2378#define DMA_SERQ_SERQ_SHIFT (0U)
2379#define DMA_SERQ_SERQ(x) (((uint8_t)(((uint8_t)(x)) << DMA_SERQ_SERQ_SHIFT)) & DMA_SERQ_SERQ_MASK)
2380#define DMA_SERQ_SAER (0x40U)
2381#define DMA_SERQ_NOP (0x80U)
2382
2383/*! @name CDNE - Clear DONE Status Bit Register */
2384#define DMA_CDNE_CDNE_MASK (0xFU)
2385#define DMA_CDNE_CDNE_SHIFT (0U)
2386#define DMA_CDNE_CDNE(x) (((uint8_t)(((uint8_t)(x)) << DMA_CDNE_CDNE_SHIFT)) & DMA_CDNE_CDNE_MASK)
2387#define DMA_CDNE_CADN (0x40U)
2388#define DMA_CDNE_NOP (0x80U)
2389
2390/*! @name SSRT - Set START Bit Register */
2391#define DMA_SSRT_SSRT_MASK (0xFU)
2392#define DMA_SSRT_SSRT_SHIFT (0U)
2393#define DMA_SSRT_SSRT(x) (((uint8_t)(((uint8_t)(x)) << DMA_SSRT_SSRT_SHIFT)) & DMA_SSRT_SSRT_MASK)
2394#define DMA_SSRT_SAST (0x40U)
2395#define DMA_SSRT_NOP (0x80U)
2396
2397/*! @name CERR - Clear Error Register */
2398#define DMA_CERR_CERR_MASK (0xFU)
2399#define DMA_CERR_CERR_SHIFT (0U)
2400#define DMA_CERR_CERR(x) (((uint8_t)(((uint8_t)(x)) << DMA_CERR_CERR_SHIFT)) & DMA_CERR_CERR_MASK)
2401#define DMA_CERR_CAEI (0x40U)
2402#define DMA_CERR_NOP (0x80U)
2403
2404/*! @name CINT - Clear Interrupt Request Register */
2405#define DMA_CINT_CINT_MASK (0xFU)
2406#define DMA_CINT_CINT_SHIFT (0U)
2407#define DMA_CINT_CINT(x) (((uint8_t)(((uint8_t)(x)) << DMA_CINT_CINT_SHIFT)) & DMA_CINT_CINT_MASK)
2408#define DMA_CINT_CAIR (0x40U)
2409#define DMA_CINT_NOP (0x80U)
2410
2411/*! @name DCHPRIn - Channel n Priority Register */
2412#define DMA_DCHPRIn_CHPRI_MASK (0xFU)
2413#define DMA_DCHPRIn_CHPRI_SHIFT (0U)
2414#define DMA_DCHPRI3_CHPRI(x) (((uint8_t)(((uint8_t)(x)) << DMA_DCHPRI3_CHPRI_SHIFT)) & DMA_DCHPRI3_CHPRI_MASK)
2415#define DMA_DCHPRIn_DPA (0x40U)
2416#define DMA_DCHPRIn_ECP (0x80U)
2417
2418/*! @name SOFF - TCD Signed Source Address Offset */
2419#define DMA_SOFF_SOFF_MASK (0xFFFFU)
2420#define DMA_SOFF_SOFF_SHIFT (0U)
2421#define DMA_SOFF_SOFF(x) (((uint16_t)(((uint16_t)(x)) << DMA_SOFF_SOFF_SHIFT)) & DMA_SOFF_SOFF_MASK)
2422
2423/*! @name ATTR - TCD Transfer Attributes */
2424#define DMA_ATTR_DSIZE_MASK (0x7U)
2425#define DMA_ATTR_DSIZE_SHIFT (0U)
2426#define DMA_ATTR_DSIZE(x) (((uint16_t)(((uint16_t)(x)) << DMA_ATTR_DSIZE_SHIFT)) & DMA_ATTR_DSIZE_MASK)
2427#define DMA_ATTR_DMOD_MASK (0xF8U)
2428#define DMA_ATTR_DMOD_SHIFT (3U)
2429#define DMA_ATTR_DMOD(x) (((uint16_t)(((uint16_t)(x)) << DMA_ATTR_DMOD_SHIFT)) & DMA_ATTR_DMOD_MASK)
2430#define DMA_ATTR_SSIZE_MASK (0x700U)
2431#define DMA_ATTR_SSIZE_SHIFT (8U)
2432#define DMA_ATTR_SSIZE(x) (((uint16_t)(((uint16_t)(x)) << DMA_ATTR_SSIZE_SHIFT)) & DMA_ATTR_SSIZE_MASK)
2433#define DMA_ATTR_SMOD_MASK (0xF800U)
2434#define DMA_ATTR_SMOD_SHIFT (11U)
2435#define DMA_ATTR_SMOD(x) (((uint16_t)(((uint16_t)(x)) << DMA_ATTR_SMOD_SHIFT)) & DMA_ATTR_SMOD_MASK)
2436
2437/*! @name NBYTES_MLOFFNO - TCD Signed Minor Loop Offset (Minor Loop Enabled and Offset Disabled) */
2438#define DMA_NBYTES_MLOFFNO_NBYTES_MASK (0x3FFFFFFFU)
2439#define DMA_NBYTES_MLOFFNO_NBYTES_SHIFT (0U)
2440#define DMA_NBYTES_MLOFFNO_NBYTES(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFNO_NBYTES_SHIFT)) & DMA_NBYTES_MLOFFNO_NBYTES_MASK)
2441#define DMA_NBYTES_MLOFFNO_DMLOE (0x40000000U)
2442#define DMA_NBYTES_MLOFFNO_SMLOE (0x80000000U)
2443
2444/*! @name NBYTES_MLOFFYES - TCD Signed Minor Loop Offset (Minor Loop and Offset Enabled) */
2445#define DMA_NBYTES_MLOFFYES_NBYTES_MASK (0x3FFU)
2446#define DMA_NBYTES_MLOFFYES_NBYTES_SHIFT (0U)
2447#define DMA_NBYTES_MLOFFYES_NBYTES(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFYES_NBYTES_SHIFT)) & DMA_NBYTES_MLOFFYES_NBYTES_MASK)
2448#define DMA_NBYTES_MLOFFYES_MLOFF_MASK (0x3FFFFC00U)
2449#define DMA_NBYTES_MLOFFYES_MLOFF_SHIFT (10U)
2450#define DMA_NBYTES_MLOFFYES_MLOFF(x) (((uint32_t)(((uint32_t)(x)) << DMA_NBYTES_MLOFFYES_MLOFF_SHIFT)) & DMA_NBYTES_MLOFFYES_MLOFF_MASK)
2451#define DMA_NBYTES_MLOFFYES_DMLOE (0x40000000U)
2452#define DMA_NBYTES_MLOFFYES_SMLOE (0x80000000U)
2453
2454/*! @name DOFF - TCD Signed Destination Address Offset */
2455#define DMA_DOFF_DOFF_MASK (0xFFFFU)
2456#define DMA_DOFF_DOFF_SHIFT (0U)
2457#define DMA_DOFF_DOFF(x) (((uint16_t)(((uint16_t)(x)) << DMA_DOFF_DOFF_SHIFT)) & DMA_DOFF_DOFF_MASK)
2458
2459/*! @name CITER_ELINKNO - TCD Current Minor Loop Link, Major Loop Count (Channel Linking Disabled) */
2460#define DMA_CITER_ELINKNO_CITER_MASK (0x7FFFU)
2461#define DMA_CITER_ELINKNO_CITER_SHIFT (0U)
2462#define DMA_CITER_ELINKNO_CITER(x) (((uint16_t)(((uint16_t)(x)) << DMA_CITER_ELINKNO_CITER_SHIFT)) & DMA_CITER_ELINKNO_CITER_MASK)
2463#define DMA_CITER_ELINKNO_ELINK (0x8000U)
2464
2465/*! @name CITER_ELINKYES - TCD Current Minor Loop Link, Major Loop Count (Channel Linking Enabled) */
2466#define DMA_CITER_ELINKYES_CITER_MASK (0x1FFU)
2467#define DMA_CITER_ELINKYES_CITER_SHIFT (0U)
2468#define DMA_CITER_ELINKYES_CITER(x) (((uint16_t)(((uint16_t)(x)) << DMA_CITER_ELINKYES_CITER_SHIFT)) & DMA_CITER_ELINKYES_CITER_MASK)
2469#define DMA_CITER_ELINKYES_LINKCH_MASK (0x1E00U)
2470#define DMA_CITER_ELINKYES_LINKCH_SHIFT (9U)
2471#define DMA_CITER_ELINKYES_LINKCH(x) (((uint16_t)(((uint16_t)(x)) << DMA_CITER_ELINKYES_LINKCH_SHIFT)) & DMA_CITER_ELINKYES_LINKCH_MASK)
2472#define DMA_CITER_ELINKYES_ELINK (0x8000U)
2473
2474/*! @name CSR - TCD Control and Status */
2475#define DMA_CSR_START (0x1U)
2476#define DMA_CSR_INTMAJOR (0x2U)
2477#define DMA_CSR_INTHALF (0x4U)
2478#define DMA_CSR_DREQ (0x8U)
2479#define DMA_CSR_ESG (0x10U)
2480#define DMA_CSR_MAJORELINK (0x20U)
2481#define DMA_CSR_ACTIVE (0x40U)
2482#define DMA_CSR_DONE (0x80U)
2483#define DMA_CSR_MAJORLINKCH_MASK (0xF00U)
2484#define DMA_CSR_MAJORLINKCH_SHIFT (8U)
2485#define DMA_CSR_MAJORLINKCH(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_MAJORLINKCH_SHIFT)) & DMA_CSR_MAJORLINKCH_MASK)
2486#define DMA_CSR_BWC_MASK (0xC000U)
2487#define DMA_CSR_BWC_SHIFT (14U)
2488#define DMA_CSR_BWC(x) (((uint16_t)(((uint16_t)(x)) << DMA_CSR_BWC_SHIFT)) & DMA_CSR_BWC_MASK)
2489
2490/*! @name BITER_ELINKNO - TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Disabled) */
2491#define DMA_BITER_ELINKNO_BITER_MASK (0x7FFFU)
2492#define DMA_BITER_ELINKNO_BITER_SHIFT (0U)
2493#define DMA_BITER_ELINKNO_BITER(x) (((uint16_t)(((uint16_t)(x)) << DMA_BITER_ELINKNO_BITER_SHIFT)) & DMA_BITER_ELINKNO_BITER_MASK)
2494#define DMA_BITER_ELINKNO_ELINK (0x8000U)
2495
2496/*! @name BITER_ELINKYES - TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Enabled) */
2497#define DMA_BITER_ELINKYES_BITER_MASK (0x1FFU)
2498#define DMA_BITER_ELINKYES_BITER_SHIFT (0U)
2499#define DMA_BITER_ELINKYES_BITER(x) (((uint16_t)(((uint16_t)(x)) << DMA_BITER_ELINKYES_BITER_SHIFT)) & DMA_BITER_ELINKYES_BITER_MASK)
2500#define DMA_BITER_ELINKYES_LINKCH_MASK (0x1E00U)
2501#define DMA_BITER_ELINKYES_LINKCH_SHIFT (9U)
2502#define DMA_BITER_ELINKYES_LINKCH(x) (((uint16_t)(((uint16_t)(x)) << DMA_BITER_ELINKYES_LINKCH_SHIFT)) & DMA_BITER_ELINKYES_LINKCH_MASK)
2503#define DMA_BITER_ELINKYES_ELINK (0x8000U)
2504
2505/* The count of DMA_TCD */
2506#define DMA_TCD_COUNT (16U)
2507
2508/*!
2509 * @}
2510 */ /* end of group DMA_Register_Masks */
2511
2512
2513/* DMA - Peripheral instance base addresses */
2514/** Peripheral DMA base address */
2515#define DMA_BASE (0x40008000u)
2516/** Peripheral DMA base pointer */
2517#define DMA0 ((DMA_TypeDef *)DMA_BASE)
2518/** Array initializer of DMA peripheral base addresses */
2519#define DMA_BASE_ADDRS { DMA_BASE }
2520/** Array initializer of DMA peripheral base pointers */
2521#define DMA_BASE_PTRS { DMA0 }
2522/** Interrupt vectors for the DMA peripheral type */
2523#define DMA_CHN_IRQS { DMA0_IRQn, DMA1_IRQn, DMA2_IRQn, DMA3_IRQn, DMA4_IRQn, DMA5_IRQn, DMA6_IRQn, DMA7_IRQn, DMA8_IRQn, DMA9_IRQn, DMA10_IRQn, DMA11_IRQn, DMA12_IRQn, DMA13_IRQn, DMA14_IRQn, DMA15_IRQn }
2524#define DMA_ERROR_IRQS { DMA_Error_IRQn }
2525
2526/*!
2527 * @}
2528 */ /* end of group DMA_Peripheral_Access_Layer */
2529
2530
2531/* ----------------------------------------------------------------------------
2532 -- DMAMUX Peripheral Access Layer
2533 ---------------------------------------------------------------------------- */
2534
2535/*!
2536 * @addtogroup DMAMUX_Peripheral_Access_Layer DMAMUX Peripheral Access Layer
2537 * @{
2538 */
2539
2540/** DMAMUX - Register Layout Typedef */
2541typedef struct {
2542 __IO uint8_t CHCFG[16]; /**< Channel Configuration register, array offset: 0x0, array step: 0x1 */
2543} DMAMUX_TypeDef;
2544
2545/* ----------------------------------------------------------------------------
2546 -- DMAMUX Register Masks
2547 ---------------------------------------------------------------------------- */
2548
2549/*!
2550 * @addtogroup DMAMUX_Register_Masks DMAMUX Register Masks
2551 * @{
2552 */
2553
2554/*! @name CHCFG - Channel Configuration register */
2555#define DMAMUX_CHCFG_SOURCE_MASK (0x3FU)
2556#define DMAMUX_CHCFG_SOURCE_SHIFT (0U)
2557#define DMAMUX_CHCFG_SOURCE(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFG_SOURCE_SHIFT)) & DMAMUX_CHCFG_SOURCE_MASK)
2558#define DMAMUX_CHCFG_TRIG (0x40U)
2559#define DMAMUX_CHCFG_ENBL (0x80U)
2560
2561/* The count of DMAMUX_CHCFG */
2562#define DMAMUX_CHCFG_COUNT (16U)
2563
2564
2565/*!
2566 * @}
2567 */ /* end of group DMAMUX_Register_Masks */
2568
2569
2570/* DMAMUX - Peripheral instance base addresses */
2571/** Peripheral DMAMUX base address */
2572#define DMAMUX_BASE (0x40021000u)
2573/** Peripheral DMAMUX base pointer */
2574#define DMAMUX ((DMAMUX_TypeDef *)DMAMUX_BASE)
2575/** Array initializer of DMAMUX peripheral base addresses */
2576#define DMAMUX_BASE_ADDRS { DMAMUX_BASE }
2577/** Array initializer of DMAMUX peripheral base pointers */
2578#define DMAMUX_BASE_PTRS { DMAMUX }
2579
2580/*!
2581 * @}
2582 */ /* end of group DMAMUX_Peripheral_Access_Layer */
2583
2584
2585/* ----------------------------------------------------------------------------
2586 -- ENET Peripheral Access Layer
2587 ---------------------------------------------------------------------------- */
2588
2589/*!
2590 * @addtogroup ENET_Peripheral_Access_Layer ENET Peripheral Access Layer
2591 * @{
2592 */
2593
2594/** ENET - Register Layout Typedef */
2595typedef struct {
2596 uint8_t RESERVED_0[4];
2597 __IO uint32_t EIR; /**< Interrupt Event Register, offset: 0x4 */
2598 __IO uint32_t EIMR; /**< Interrupt Mask Register, offset: 0x8 */
2599 uint8_t RESERVED_1[4];
2600 __IO uint32_t RDAR; /**< Receive Descriptor Active Register, offset: 0x10 */
2601 __IO uint32_t TDAR; /**< Transmit Descriptor Active Register, offset: 0x14 */
2602 uint8_t RESERVED_2[12];
2603 __IO uint32_t ECR; /**< Ethernet Control Register, offset: 0x24 */
2604 uint8_t RESERVED_3[24];
2605 __IO uint32_t MMFR; /**< MII Management Frame Register, offset: 0x40 */
2606 __IO uint32_t MSCR; /**< MII Speed Control Register, offset: 0x44 */
2607 uint8_t RESERVED_4[28];
2608 __IO uint32_t MIBC; /**< MIB Control Register, offset: 0x64 */
2609 uint8_t RESERVED_5[28];
2610 __IO uint32_t RCR; /**< Receive Control Register, offset: 0x84 */
2611 uint8_t RESERVED_6[60];
2612 __IO uint32_t TCR; /**< Transmit Control Register, offset: 0xC4 */
2613 uint8_t RESERVED_7[28];
2614 __IO uint32_t PALR; /**< Physical Address Lower Register, offset: 0xE4 */
2615 __IO uint32_t PAUR; /**< Physical Address Upper Register, offset: 0xE8 */
2616 __IO uint32_t OPD; /**< Opcode/Pause Duration Register, offset: 0xEC */
2617 uint8_t RESERVED_8[40];
2618 __IO uint32_t IAUR; /**< Descriptor Individual Upper Address Register, offset: 0x118 */
2619 __IO uint32_t IALR; /**< Descriptor Individual Lower Address Register, offset: 0x11C */
2620 __IO uint32_t GAUR; /**< Descriptor Group Upper Address Register, offset: 0x120 */
2621 __IO uint32_t GALR; /**< Descriptor Group Lower Address Register, offset: 0x124 */
2622 uint8_t RESERVED_9[28];
2623 __IO uint32_t TFWR; /**< Transmit FIFO Watermark Register, offset: 0x144 */
2624 uint8_t RESERVED_10[56];
2625 __IO uint32_t RDSR; /**< Receive Descriptor Ring Start Register, offset: 0x180 */
2626 __IO uint32_t TDSR; /**< Transmit Buffer Descriptor Ring Start Register, offset: 0x184 */
2627 __IO uint32_t MRBR; /**< Maximum Receive Buffer Size Register, offset: 0x188 */
2628 uint8_t RESERVED_11[4];
2629 __IO uint32_t RSFL; /**< Receive FIFO Section Full Threshold, offset: 0x190 */
2630 __IO uint32_t RSEM; /**< Receive FIFO Section Empty Threshold, offset: 0x194 */
2631 __IO uint32_t RAEM; /**< Receive FIFO Almost Empty Threshold, offset: 0x198 */
2632 __IO uint32_t RAFL; /**< Receive FIFO Almost Full Threshold, offset: 0x19C */
2633 __IO uint32_t TSEM; /**< Transmit FIFO Section Empty Threshold, offset: 0x1A0 */
2634 __IO uint32_t TAEM; /**< Transmit FIFO Almost Empty Threshold, offset: 0x1A4 */
2635 __IO uint32_t TAFL; /**< Transmit FIFO Almost Full Threshold, offset: 0x1A8 */
2636 __IO uint32_t TIPG; /**< Transmit Inter-Packet Gap, offset: 0x1AC */
2637 __IO uint32_t FTRL; /**< Frame Truncation Length, offset: 0x1B0 */
2638 uint8_t RESERVED_12[12];
2639 __IO uint32_t TACC; /**< Transmit Accelerator Function Configuration, offset: 0x1C0 */
2640 __IO uint32_t RACC; /**< Receive Accelerator Function Configuration, offset: 0x1C4 */
2641 uint8_t RESERVED_13[60];
2642 __I uint32_t RMON_T_PACKETS; /**< Tx Packet Count Statistic Register, offset: 0x204 */
2643 __I uint32_t RMON_T_BC_PKT; /**< Tx Broadcast Packets Statistic Register, offset: 0x208 */
2644 __I uint32_t RMON_T_MC_PKT; /**< Tx Multicast Packets Statistic Register, offset: 0x20C */
2645 __I uint32_t RMON_T_CRC_ALIGN; /**< Tx Packets with CRC/Align Error Statistic Register, offset: 0x210 */
2646 __I uint32_t RMON_T_UNDERSIZE; /**< Tx Packets Less Than Bytes and Good CRC Statistic Register, offset: 0x214 */
2647 __I uint32_t RMON_T_OVERSIZE; /**< Tx Packets GT MAX_FL bytes and Good CRC Statistic Register, offset: 0x218 */
2648 __I uint32_t RMON_T_FRAG; /**< Tx Packets Less Than 64 Bytes and Bad CRC Statistic Register, offset: 0x21C */
2649 __I uint32_t RMON_T_JAB; /**< Tx Packets Greater Than MAX_FL bytes and Bad CRC Statistic Register, offset: 0x220 */
2650 __I uint32_t RMON_T_COL; /**< Tx Collision Count Statistic Register, offset: 0x224 */
2651 __I uint32_t RMON_T_P64; /**< Tx 64-Byte Packets Statistic Register, offset: 0x228 */
2652 __I uint32_t RMON_T_P65TO127; /**< Tx 65- to 127-byte Packets Statistic Register, offset: 0x22C */
2653 __I uint32_t RMON_T_P128TO255; /**< Tx 128- to 255-byte Packets Statistic Register, offset: 0x230 */
2654 __I uint32_t RMON_T_P256TO511; /**< Tx 256- to 511-byte Packets Statistic Register, offset: 0x234 */
2655 __I uint32_t RMON_T_P512TO1023; /**< Tx 512- to 1023-byte Packets Statistic Register, offset: 0x238 */
2656 __I uint32_t RMON_T_P1024TO2047; /**< Tx 1024- to 2047-byte Packets Statistic Register, offset: 0x23C */
2657 __I uint32_t RMON_T_P_GTE2048; /**< Tx Packets Greater Than 2048 Bytes Statistic Register, offset: 0x240 */
2658 __I uint32_t RMON_T_OCTETS; /**< Tx Octets Statistic Register, offset: 0x244 */
2659 uint8_t RESERVED_14[4];
2660 __I uint32_t IEEE_T_FRAME_OK; /**< Frames Transmitted OK Statistic Register, offset: 0x24C */
2661 __I uint32_t IEEE_T_1COL; /**< Frames Transmitted with Single Collision Statistic Register, offset: 0x250 */
2662 __I uint32_t IEEE_T_MCOL; /**< Frames Transmitted with Multiple Collisions Statistic Register, offset: 0x254 */
2663 __I uint32_t IEEE_T_DEF; /**< Frames Transmitted after Deferral Delay Statistic Register, offset: 0x258 */
2664 __I uint32_t IEEE_T_LCOL; /**< Frames Transmitted with Late Collision Statistic Register, offset: 0x25C */
2665 __I uint32_t IEEE_T_EXCOL; /**< Frames Transmitted with Excessive Collisions Statistic Register, offset: 0x260 */
2666 __I uint32_t IEEE_T_MACERR; /**< Frames Transmitted with Tx FIFO Underrun Statistic Register, offset: 0x264 */
2667 __I uint32_t IEEE_T_CSERR; /**< Frames Transmitted with Carrier Sense Error Statistic Register, offset: 0x268 */
2668 uint8_t RESERVED_15[4];
2669 __I uint32_t IEEE_T_FDXFC; /**< Flow Control Pause Frames Transmitted Statistic Register, offset: 0x270 */
2670 __I uint32_t IEEE_T_OCTETS_OK; /**< Octet Count for Frames Transmitted w/o Error Statistic Register, offset: 0x274 */
2671 uint8_t RESERVED_16[12];
2672 __I uint32_t RMON_R_PACKETS; /**< Rx Packet Count Statistic Register, offset: 0x284 */
2673 __I uint32_t RMON_R_BC_PKT; /**< Rx Broadcast Packets Statistic Register, offset: 0x288 */
2674 __I uint32_t RMON_R_MC_PKT; /**< Rx Multicast Packets Statistic Register, offset: 0x28C */
2675 __I uint32_t RMON_R_CRC_ALIGN; /**< Rx Packets with CRC/Align Error Statistic Register, offset: 0x290 */
2676 __I uint32_t RMON_R_UNDERSIZE; /**< Rx Packets with Less Than 64 Bytes and Good CRC Statistic Register, offset: 0x294 */
2677 __I uint32_t RMON_R_OVERSIZE; /**< Rx Packets Greater Than MAX_FL and Good CRC Statistic Register, offset: 0x298 */
2678 __I uint32_t RMON_R_FRAG; /**< Rx Packets Less Than 64 Bytes and Bad CRC Statistic Register, offset: 0x29C */
2679 __I uint32_t RMON_R_JAB; /**< Rx Packets Greater Than MAX_FL Bytes and Bad CRC Statistic Register, offset: 0x2A0 */
2680 uint8_t RESERVED_17[4];
2681 __I uint32_t RMON_R_P64; /**< Rx 64-Byte Packets Statistic Register, offset: 0x2A8 */
2682 __I uint32_t RMON_R_P65TO127; /**< Rx 65- to 127-Byte Packets Statistic Register, offset: 0x2AC */
2683 __I uint32_t RMON_R_P128TO255; /**< Rx 128- to 255-Byte Packets Statistic Register, offset: 0x2B0 */
2684 __I uint32_t RMON_R_P256TO511; /**< Rx 256- to 511-Byte Packets Statistic Register, offset: 0x2B4 */
2685 __I uint32_t RMON_R_P512TO1023; /**< Rx 512- to 1023-Byte Packets Statistic Register, offset: 0x2B8 */
2686 __I uint32_t RMON_R_P1024TO2047; /**< Rx 1024- to 2047-Byte Packets Statistic Register, offset: 0x2BC */
2687 __I uint32_t RMON_R_P_GTE2048; /**< Rx Packets Greater than 2048 Bytes Statistic Register, offset: 0x2C0 */
2688 __I uint32_t RMON_R_OCTETS; /**< Rx Octets Statistic Register, offset: 0x2C4 */
2689 __I uint32_t IEEE_R_DROP; /**< Frames not Counted Correctly Statistic Register, offset: 0x2C8 */
2690 __I uint32_t IEEE_R_FRAME_OK; /**< Frames Received OK Statistic Register, offset: 0x2CC */
2691 __I uint32_t IEEE_R_CRC; /**< Frames Received with CRC Error Statistic Register, offset: 0x2D0 */
2692 __I uint32_t IEEE_R_ALIGN; /**< Frames Received with Alignment Error Statistic Register, offset: 0x2D4 */
2693 __I uint32_t IEEE_R_MACERR; /**< Receive FIFO Overflow Count Statistic Register, offset: 0x2D8 */
2694 __I uint32_t IEEE_R_FDXFC; /**< Flow Control Pause Frames Received Statistic Register, offset: 0x2DC */
2695 __I uint32_t IEEE_R_OCTETS_OK; /**< Octet Count for Frames Received without Error Statistic Register, offset: 0x2E0 */
2696 uint8_t RESERVED_18[284];
2697 __IO uint32_t ATCR; /**< Adjustable Timer Control Register, offset: 0x400 */
2698 __IO uint32_t ATVR; /**< Timer Value Register, offset: 0x404 */
2699 __IO uint32_t ATOFF; /**< Timer Offset Register, offset: 0x408 */
2700 __IO uint32_t ATPER; /**< Timer Period Register, offset: 0x40C */
2701 __IO uint32_t ATCOR; /**< Timer Correction Register, offset: 0x410 */
2702 __IO uint32_t ATINC; /**< Time-Stamping Clock Period Register, offset: 0x414 */
2703 __I uint32_t ATSTMP; /**< Timestamp of Last Transmitted Frame, offset: 0x418 */
2704 uint8_t RESERVED_19[488];
2705 __IO uint32_t TGSR; /**< Timer Global Status Register, offset: 0x604 */
2706 struct { /* offset: 0x608, array step: 0x8 */
2707 __IO uint32_t TCSR; /**< Timer Control Status Register, array offset: 0x608, array step: 0x8 */
2708 __IO uint32_t TCCR; /**< Timer Compare Capture Register, array offset: 0x60C, array step: 0x8 */
2709 } CHANNEL[4];
2710} ENET_TypeDef;
2711
2712/* ----------------------------------------------------------------------------
2713 -- ENET Register Masks
2714 ---------------------------------------------------------------------------- */
2715
2716/*!
2717 * @addtogroup ENET_Register_Masks ENET Register Masks
2718 * @{
2719 */
2720
2721/*! @name EIR - Interrupt Event Register */
2722#define ENET_EIR_TS_TIMER (0x8000U)
2723#define ENET_EIR_TS_AVAIL (0x10000U)
2724#define ENET_EIR_WAKEUP (0x20000U)
2725#define ENET_EIR_PLR (0x40000U)
2726#define ENET_EIR_UN (0x80000U)
2727#define ENET_EIR_RL (0x100000U)
2728#define ENET_EIR_LC (0x200000U)
2729#define ENET_EIR_EBERR (0x400000U)
2730#define ENET_EIR_MII (0x800000U)
2731#define ENET_EIR_RXB (0x1000000U)
2732#define ENET_EIR_RXF (0x2000000U)
2733#define ENET_EIR_TXB (0x4000000U)
2734#define ENET_EIR_TXF (0x8000000U)
2735#define ENET_EIR_GRA (0x10000000U)
2736#define ENET_EIR_BABT (0x20000000U)
2737#define ENET_EIR_BABR (0x40000000U)
2738
2739/*! @name EIMR - Interrupt Mask Register */
2740#define ENET_EIMR_TS_TIMER (0x8000U)
2741#define ENET_EIMR_TS_AVAIL (0x10000U)
2742#define ENET_EIMR_WAKEUP (0x20000U)
2743#define ENET_EIMR_PLR (0x40000U)
2744#define ENET_EIMR_UN (0x80000U)
2745#define ENET_EIMR_RL (0x100000U)
2746#define ENET_EIMR_LC (0x200000U)
2747#define ENET_EIMR_EBERR (0x400000U)
2748#define ENET_EIMR_MII (0x800000U)
2749#define ENET_EIMR_RXB (0x1000000U)
2750#define ENET_EIMR_RXF (0x2000000U)
2751#define ENET_EIMR_TXB (0x4000000U)
2752#define ENET_EIMR_TXF (0x8000000U)
2753#define ENET_EIMR_GRA (0x10000000U)
2754#define ENET_EIMR_BABT (0x20000000U)
2755#define ENET_EIMR_BABR (0x40000000U)
2756
2757/*! @name RDAR - Receive Descriptor Active Register */
2758#define ENET_RDAR_RDAR (0x1000000U)
2759
2760/*! @name TDAR - Transmit Descriptor Active Register */
2761#define ENET_TDAR_TDAR (0x1000000U)
2762
2763/*! @name ECR - Ethernet Control Register */
2764#define ENET_ECR_RESET (0x1U)
2765#define ENET_ECR_ETHEREN (0x2U)
2766#define ENET_ECR_MAGICEN (0x4U)
2767#define ENET_ECR_SLEEP (0x8U)
2768#define ENET_ECR_EN1588 (0x10U)
2769#define ENET_ECR_DBGEN (0x40U)
2770#define ENET_ECR_STOPEN (0x80U)
2771#define ENET_ECR_DBSWP (0x100U)
2772
2773/*! @name MMFR - MII Management Frame Register */
2774#define ENET_MMFR_DATA_MASK (0xFFFFU)
2775#define ENET_MMFR_DATA_SHIFT (0U)
2776#define ENET_MMFR_DATA(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_DATA_SHIFT)) & ENET_MMFR_DATA_MASK)
2777#define ENET_MMFR_TA_MASK (0x30000U)
2778#define ENET_MMFR_TA_SHIFT (16U)
2779#define ENET_MMFR_TA(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_TA_SHIFT)) & ENET_MMFR_TA_MASK)
2780#define ENET_MMFR_RA_MASK (0x7C0000U)
2781#define ENET_MMFR_RA_SHIFT (18U)
2782#define ENET_MMFR_RA(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_RA_SHIFT)) & ENET_MMFR_RA_MASK)
2783#define ENET_MMFR_PA_MASK (0xF800000U)
2784#define ENET_MMFR_PA_SHIFT (23U)
2785#define ENET_MMFR_PA(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_PA_SHIFT)) & ENET_MMFR_PA_MASK)
2786#define ENET_MMFR_OP_MASK (0x30000000U)
2787#define ENET_MMFR_OP_SHIFT (28U)
2788#define ENET_MMFR_OP(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_OP_SHIFT)) & ENET_MMFR_OP_MASK)
2789#define ENET_MMFR_ST_MASK (0xC0000000U)
2790#define ENET_MMFR_ST_SHIFT (30U)
2791#define ENET_MMFR_ST(x) (((uint32_t)(((uint32_t)(x)) << ENET_MMFR_ST_SHIFT)) & ENET_MMFR_ST_MASK)
2792
2793/*! @name MSCR - MII Speed Control Register */
2794#define ENET_MSCR_MII_SPEED_MASK (0x7EU)
2795#define ENET_MSCR_MII_SPEED_SHIFT (1U)
2796#define ENET_MSCR_MII_SPEED(x) (((uint32_t)(((uint32_t)(x)) << ENET_MSCR_MII_SPEED_SHIFT)) & ENET_MSCR_MII_SPEED_MASK)
2797#define ENET_MSCR_DIS_PRE (0x80U)
2798#define ENET_MSCR_HOLDTIME_MASK (0x700U)
2799#define ENET_MSCR_HOLDTIME_SHIFT (8U)
2800#define ENET_MSCR_HOLDTIME(x) (((uint32_t)(((uint32_t)(x)) << ENET_MSCR_HOLDTIME_SHIFT)) & ENET_MSCR_HOLDTIME_MASK)
2801
2802/*! @name MIBC - MIB Control Register */
2803#define ENET_MIBC_MIB_CLEAR (0x20000000U)
2804#define ENET_MIBC_MIB_IDLE (0x40000000U)
2805#define ENET_MIBC_MIB_DIS (0x80000000U)
2806
2807/*! @name RCR - Receive Control Register */
2808#define ENET_RCR_LOOP (0x1U)
2809#define ENET_RCR_DRT (0x2U)
2810#define ENET_RCR_MII_MODE (0x4U)
2811#define ENET_RCR_PROM (0x8U)
2812#define ENET_RCR_BC_REJ (0x10U)
2813#define ENET_RCR_FCE (0x20U)
2814#define ENET_RCR_RMII_MODE (0x100U)
2815#define ENET_RCR_RMII_10T (0x200U)
2816#define ENET_RCR_PADEN (0x1000U)
2817#define ENET_RCR_PAUFWD (0x2000U)
2818#define ENET_RCR_CRCFWD (0x4000U)
2819#define ENET_RCR_CFEN (0x8000U)
2820#define ENET_RCR_MAX_FL_MASK (0x3FFF0000U)
2821#define ENET_RCR_MAX_FL_SHIFT (16U)
2822#define ENET_RCR_MAX_FL(x) (((uint32_t)(((uint32_t)(x)) << ENET_RCR_MAX_FL_SHIFT)) & ENET_RCR_MAX_FL_MASK)
2823#define ENET_RCR_NLC (0x40000000U)
2824#define ENET_RCR_GRS (0x80000000U)
2825
2826/*! @name TCR - Transmit Control Register */
2827#define ENET_TCR_GTS (0x1U)
2828#define ENET_TCR_FDEN (0x4U)
2829#define ENET_TCR_TFC_PAUSE (0x8U)
2830#define ENET_TCR_RFC_PAUSE (0x10U)
2831#define ENET_TCR_ADDSEL_MASK (0xE0U)
2832#define ENET_TCR_ADDSEL_SHIFT (5U)
2833#define ENET_TCR_ADDSEL(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCR_ADDSEL_SHIFT)) & ENET_TCR_ADDSEL_MASK)
2834#define ENET_TCR_ADDINS (0x100U)
2835#define ENET_TCR_CRCFWD (0x200U)
2836
2837/*! @name PAUR - Physical Address Upper Register */
2838#define ENET_PAUR_TYPE_MASK (0xFFFFU)
2839#define ENET_PAUR_TYPE_SHIFT (0U)
2840#define ENET_PAUR_TYPE(x) (((uint32_t)(((uint32_t)(x)) << ENET_PAUR_TYPE_SHIFT)) & ENET_PAUR_TYPE_MASK)
2841#define ENET_PAUR_PADDR2_MASK (0xFFFF0000U)
2842#define ENET_PAUR_PADDR2_SHIFT (16U)
2843#define ENET_PAUR_PADDR2(x) (((uint32_t)(((uint32_t)(x)) << ENET_PAUR_PADDR2_SHIFT)) & ENET_PAUR_PADDR2_MASK)
2844
2845/*! @name OPD - Opcode/Pause Duration Register */
2846#define ENET_OPD_PAUSE_DUR_MASK (0xFFFFU)
2847#define ENET_OPD_PAUSE_DUR_SHIFT (0U)
2848#define ENET_OPD_PAUSE_DUR(x) (((uint32_t)(((uint32_t)(x)) << ENET_OPD_PAUSE_DUR_SHIFT)) & ENET_OPD_PAUSE_DUR_MASK)
2849#define ENET_OPD_OPCODE_MASK (0xFFFF0000U)
2850#define ENET_OPD_OPCODE_SHIFT (16U)
2851#define ENET_OPD_OPCODE(x) (((uint32_t)(((uint32_t)(x)) << ENET_OPD_OPCODE_SHIFT)) & ENET_OPD_OPCODE_MASK)
2852
2853/*! @name TFWR - Transmit FIFO Watermark Register */
2854#define ENET_TFWR_TFWR_MASK (0x3FU)
2855#define ENET_TFWR_TFWR_SHIFT (0U)
2856#define ENET_TFWR_TFWR(x) (((uint32_t)(((uint32_t)(x)) << ENET_TFWR_TFWR_SHIFT)) & ENET_TFWR_TFWR_MASK)
2857#define ENET_TFWR_STRFWD (0x100U)
2858
2859/*! @name RDSR - Receive Descriptor Ring Start Register */
2860#define ENET_RDSR_R_DES_START_MASK (0xFFFFFFF8U)
2861#define ENET_RDSR_R_DES_START_SHIFT (3U)
2862#define ENET_RDSR_R_DES_START(x) (((uint32_t)(((uint32_t)(x)) << ENET_RDSR_R_DES_START_SHIFT)) & ENET_RDSR_R_DES_START_MASK)
2863
2864/*! @name TDSR - Transmit Buffer Descriptor Ring Start Register */
2865#define ENET_TDSR_X_DES_START_MASK (0xFFFFFFF8U)
2866#define ENET_TDSR_X_DES_START_SHIFT (3U)
2867#define ENET_TDSR_X_DES_START(x) (((uint32_t)(((uint32_t)(x)) << ENET_TDSR_X_DES_START_SHIFT)) & ENET_TDSR_X_DES_START_MASK)
2868
2869/*! @name MRBR - Maximum Receive Buffer Size Register */
2870#define ENET_MRBR_R_BUF_SIZE_MASK (0x3FF0U)
2871#define ENET_MRBR_R_BUF_SIZE_SHIFT (4U)
2872#define ENET_MRBR_R_BUF_SIZE(x) (((uint32_t)(((uint32_t)(x)) << ENET_MRBR_R_BUF_SIZE_SHIFT)) & ENET_MRBR_R_BUF_SIZE_MASK)
2873
2874/*! @name RSFL - Receive FIFO Section Full Threshold */
2875#define ENET_RSFL_RX_SECTION_FULL_MASK (0xFFU)
2876#define ENET_RSFL_RX_SECTION_FULL_SHIFT (0U)
2877#define ENET_RSFL_RX_SECTION_FULL(x) (((uint32_t)(((uint32_t)(x)) << ENET_RSFL_RX_SECTION_FULL_SHIFT)) & ENET_RSFL_RX_SECTION_FULL_MASK)
2878
2879/*! @name RSEM - Receive FIFO Section Empty Threshold */
2880#define ENET_RSEM_RX_SECTION_EMPTY_MASK (0xFFU)
2881#define ENET_RSEM_RX_SECTION_EMPTY_SHIFT (0U)
2882#define ENET_RSEM_RX_SECTION_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << ENET_RSEM_RX_SECTION_EMPTY_SHIFT)) & ENET_RSEM_RX_SECTION_EMPTY_MASK)
2883#define ENET_RSEM_STAT_SECTION_EMPTY_MASK (0x1F0000U)
2884#define ENET_RSEM_STAT_SECTION_EMPTY_SHIFT (16U)
2885#define ENET_RSEM_STAT_SECTION_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << ENET_RSEM_STAT_SECTION_EMPTY_SHIFT)) & ENET_RSEM_STAT_SECTION_EMPTY_MASK)
2886
2887/*! @name RAEM - Receive FIFO Almost Empty Threshold */
2888#define ENET_RAEM_RX_ALMOST_EMPTY_MASK (0xFFU)
2889#define ENET_RAEM_RX_ALMOST_EMPTY_SHIFT (0U)
2890#define ENET_RAEM_RX_ALMOST_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << ENET_RAEM_RX_ALMOST_EMPTY_SHIFT)) & ENET_RAEM_RX_ALMOST_EMPTY_MASK)
2891
2892/*! @name RAFL - Receive FIFO Almost Full Threshold */
2893#define ENET_RAFL_RX_ALMOST_FULL_MASK (0xFFU)
2894#define ENET_RAFL_RX_ALMOST_FULL_SHIFT (0U)
2895#define ENET_RAFL_RX_ALMOST_FULL(x) (((uint32_t)(((uint32_t)(x)) << ENET_RAFL_RX_ALMOST_FULL_SHIFT)) & ENET_RAFL_RX_ALMOST_FULL_MASK)
2896
2897/*! @name TSEM - Transmit FIFO Section Empty Threshold */
2898#define ENET_TSEM_TX_SECTION_EMPTY_MASK (0xFFU)
2899#define ENET_TSEM_TX_SECTION_EMPTY_SHIFT (0U)
2900#define ENET_TSEM_TX_SECTION_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << ENET_TSEM_TX_SECTION_EMPTY_SHIFT)) & ENET_TSEM_TX_SECTION_EMPTY_MASK)
2901
2902/*! @name TAEM - Transmit FIFO Almost Empty Threshold */
2903#define ENET_TAEM_TX_ALMOST_EMPTY_MASK (0xFFU)
2904#define ENET_TAEM_TX_ALMOST_EMPTY_SHIFT (0U)
2905#define ENET_TAEM_TX_ALMOST_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << ENET_TAEM_TX_ALMOST_EMPTY_SHIFT)) & ENET_TAEM_TX_ALMOST_EMPTY_MASK)
2906
2907/*! @name TAFL - Transmit FIFO Almost Full Threshold */
2908#define ENET_TAFL_TX_ALMOST_FULL_MASK (0xFFU)
2909#define ENET_TAFL_TX_ALMOST_FULL_SHIFT (0U)
2910#define ENET_TAFL_TX_ALMOST_FULL(x) (((uint32_t)(((uint32_t)(x)) << ENET_TAFL_TX_ALMOST_FULL_SHIFT)) & ENET_TAFL_TX_ALMOST_FULL_MASK)
2911
2912/*! @name TIPG - Transmit Inter-Packet Gap */
2913#define ENET_TIPG_IPG_MASK (0x1FU)
2914#define ENET_TIPG_IPG_SHIFT (0U)
2915#define ENET_TIPG_IPG(x) (((uint32_t)(((uint32_t)(x)) << ENET_TIPG_IPG_SHIFT)) & ENET_TIPG_IPG_MASK)
2916
2917/*! @name FTRL - Frame Truncation Length */
2918#define ENET_FTRL_TRUNC_FL_MASK (0x3FFFU)
2919#define ENET_FTRL_TRUNC_FL_SHIFT (0U)
2920#define ENET_FTRL_TRUNC_FL(x) (((uint32_t)(((uint32_t)(x)) << ENET_FTRL_TRUNC_FL_SHIFT)) & ENET_FTRL_TRUNC_FL_MASK)
2921
2922/*! @name TACC - Transmit Accelerator Function Configuration */
2923#define ENET_TACC_SHIFT16 (0x1U)
2924#define ENET_TACC_IPCHK (0x8U)
2925#define ENET_TACC_PROCHK (0x10U)
2926
2927/*! @name RACC - Receive Accelerator Function Configuration */
2928#define ENET_RACC_PADREM (0x1U)
2929#define ENET_RACC_IPDIS (0x2U)
2930#define ENET_RACC_PRODIS (0x4U)
2931#define ENET_RACC_LINEDIS (0x40U)
2932#define ENET_RACC_SHIFT16 (0x80U)
2933
2934/*! @name RMON_T_PACKETS - Tx Packet Count Statistic Register */
2935#define ENET_RMON_T_PACKETS_TXPKTS_MASK (0xFFFFU)
2936#define ENET_RMON_T_PACKETS_TXPKTS_SHIFT (0U)
2937#define ENET_RMON_T_PACKETS_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_PACKETS_TXPKTS_SHIFT)) & ENET_RMON_T_PACKETS_TXPKTS_MASK)
2938
2939/*! @name RMON_T_BC_PKT - Tx Broadcast Packets Statistic Register */
2940#define ENET_RMON_T_BC_PKT_TXPKTS_MASK (0xFFFFU)
2941#define ENET_RMON_T_BC_PKT_TXPKTS_SHIFT (0U)
2942#define ENET_RMON_T_BC_PKT_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_BC_PKT_TXPKTS_SHIFT)) & ENET_RMON_T_BC_PKT_TXPKTS_MASK)
2943
2944/*! @name RMON_T_MC_PKT - Tx Multicast Packets Statistic Register */
2945#define ENET_RMON_T_MC_PKT_TXPKTS_MASK (0xFFFFU)
2946#define ENET_RMON_T_MC_PKT_TXPKTS_SHIFT (0U)
2947#define ENET_RMON_T_MC_PKT_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_MC_PKT_TXPKTS_SHIFT)) & ENET_RMON_T_MC_PKT_TXPKTS_MASK)
2948
2949/*! @name RMON_T_CRC_ALIGN - Tx Packets with CRC/Align Error Statistic Register */
2950#define ENET_RMON_T_CRC_ALIGN_TXPKTS_MASK (0xFFFFU)
2951#define ENET_RMON_T_CRC_ALIGN_TXPKTS_SHIFT (0U)
2952#define ENET_RMON_T_CRC_ALIGN_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_CRC_ALIGN_TXPKTS_SHIFT)) & ENET_RMON_T_CRC_ALIGN_TXPKTS_MASK)
2953
2954/*! @name RMON_T_UNDERSIZE - Tx Packets Less Than Bytes and Good CRC Statistic Register */
2955#define ENET_RMON_T_UNDERSIZE_TXPKTS_MASK (0xFFFFU)
2956#define ENET_RMON_T_UNDERSIZE_TXPKTS_SHIFT (0U)
2957#define ENET_RMON_T_UNDERSIZE_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_UNDERSIZE_TXPKTS_SHIFT)) & ENET_RMON_T_UNDERSIZE_TXPKTS_MASK)
2958
2959/*! @name RMON_T_OVERSIZE - Tx Packets GT MAX_FL bytes and Good CRC Statistic Register */
2960#define ENET_RMON_T_OVERSIZE_TXPKTS_MASK (0xFFFFU)
2961#define ENET_RMON_T_OVERSIZE_TXPKTS_SHIFT (0U)
2962#define ENET_RMON_T_OVERSIZE_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_OVERSIZE_TXPKTS_SHIFT)) & ENET_RMON_T_OVERSIZE_TXPKTS_MASK)
2963
2964/*! @name RMON_T_FRAG - Tx Packets Less Than 64 Bytes and Bad CRC Statistic Register */
2965#define ENET_RMON_T_FRAG_TXPKTS_MASK (0xFFFFU)
2966#define ENET_RMON_T_FRAG_TXPKTS_SHIFT (0U)
2967#define ENET_RMON_T_FRAG_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_FRAG_TXPKTS_SHIFT)) & ENET_RMON_T_FRAG_TXPKTS_MASK)
2968
2969/*! @name RMON_T_JAB - Tx Packets Greater Than MAX_FL bytes and Bad CRC Statistic Register */
2970#define ENET_RMON_T_JAB_TXPKTS_MASK (0xFFFFU)
2971#define ENET_RMON_T_JAB_TXPKTS_SHIFT (0U)
2972#define ENET_RMON_T_JAB_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_JAB_TXPKTS_SHIFT)) & ENET_RMON_T_JAB_TXPKTS_MASK)
2973
2974/*! @name RMON_T_COL - Tx Collision Count Statistic Register */
2975#define ENET_RMON_T_COL_TXPKTS_MASK (0xFFFFU)
2976#define ENET_RMON_T_COL_TXPKTS_SHIFT (0U)
2977#define ENET_RMON_T_COL_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_COL_TXPKTS_SHIFT)) & ENET_RMON_T_COL_TXPKTS_MASK)
2978
2979/*! @name RMON_T_P64 - Tx 64-Byte Packets Statistic Register */
2980#define ENET_RMON_T_P64_TXPKTS_MASK (0xFFFFU)
2981#define ENET_RMON_T_P64_TXPKTS_SHIFT (0U)
2982#define ENET_RMON_T_P64_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P64_TXPKTS_SHIFT)) & ENET_RMON_T_P64_TXPKTS_MASK)
2983
2984/*! @name RMON_T_P65TO127 - Tx 65- to 127-byte Packets Statistic Register */
2985#define ENET_RMON_T_P65TO127_TXPKTS_MASK (0xFFFFU)
2986#define ENET_RMON_T_P65TO127_TXPKTS_SHIFT (0U)
2987#define ENET_RMON_T_P65TO127_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P65TO127_TXPKTS_SHIFT)) & ENET_RMON_T_P65TO127_TXPKTS_MASK)
2988
2989/*! @name RMON_T_P128TO255 - Tx 128- to 255-byte Packets Statistic Register */
2990#define ENET_RMON_T_P128TO255_TXPKTS_MASK (0xFFFFU)
2991#define ENET_RMON_T_P128TO255_TXPKTS_SHIFT (0U)
2992#define ENET_RMON_T_P128TO255_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P128TO255_TXPKTS_SHIFT)) & ENET_RMON_T_P128TO255_TXPKTS_MASK)
2993
2994/*! @name RMON_T_P256TO511 - Tx 256- to 511-byte Packets Statistic Register */
2995#define ENET_RMON_T_P256TO511_TXPKTS_MASK (0xFFFFU)
2996#define ENET_RMON_T_P256TO511_TXPKTS_SHIFT (0U)
2997#define ENET_RMON_T_P256TO511_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P256TO511_TXPKTS_SHIFT)) & ENET_RMON_T_P256TO511_TXPKTS_MASK)
2998
2999/*! @name RMON_T_P512TO1023 - Tx 512- to 1023-byte Packets Statistic Register */
3000#define ENET_RMON_T_P512TO1023_TXPKTS_MASK (0xFFFFU)
3001#define ENET_RMON_T_P512TO1023_TXPKTS_SHIFT (0U)
3002#define ENET_RMON_T_P512TO1023_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P512TO1023_TXPKTS_SHIFT)) & ENET_RMON_T_P512TO1023_TXPKTS_MASK)
3003
3004/*! @name RMON_T_P1024TO2047 - Tx 1024- to 2047-byte Packets Statistic Register */
3005#define ENET_RMON_T_P1024TO2047_TXPKTS_MASK (0xFFFFU)
3006#define ENET_RMON_T_P1024TO2047_TXPKTS_SHIFT (0U)
3007#define ENET_RMON_T_P1024TO2047_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P1024TO2047_TXPKTS_SHIFT)) & ENET_RMON_T_P1024TO2047_TXPKTS_MASK)
3008
3009/*! @name RMON_T_P_GTE2048 - Tx Packets Greater Than 2048 Bytes Statistic Register */
3010#define ENET_RMON_T_P_GTE2048_TXPKTS_MASK (0xFFFFU)
3011#define ENET_RMON_T_P_GTE2048_TXPKTS_SHIFT (0U)
3012#define ENET_RMON_T_P_GTE2048_TXPKTS(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_T_P_GTE2048_TXPKTS_SHIFT)) & ENET_RMON_T_P_GTE2048_TXPKTS_MASK)
3013
3014/*! @name IEEE_T_FRAME_OK - Frames Transmitted OK Statistic Register */
3015#define ENET_IEEE_T_FRAME_OK_COUNT_MASK (0xFFFFU)
3016#define ENET_IEEE_T_FRAME_OK_COUNT_SHIFT (0U)
3017#define ENET_IEEE_T_FRAME_OK_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_FRAME_OK_COUNT_SHIFT)) & ENET_IEEE_T_FRAME_OK_COUNT_MASK)
3018
3019/*! @name IEEE_T_1COL - Frames Transmitted with Single Collision Statistic Register */
3020#define ENET_IEEE_T_1COL_COUNT_MASK (0xFFFFU)
3021#define ENET_IEEE_T_1COL_COUNT_SHIFT (0U)
3022#define ENET_IEEE_T_1COL_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_1COL_COUNT_SHIFT)) & ENET_IEEE_T_1COL_COUNT_MASK)
3023
3024/*! @name IEEE_T_MCOL - Frames Transmitted with Multiple Collisions Statistic Register */
3025#define ENET_IEEE_T_MCOL_COUNT_MASK (0xFFFFU)
3026#define ENET_IEEE_T_MCOL_COUNT_SHIFT (0U)
3027#define ENET_IEEE_T_MCOL_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_MCOL_COUNT_SHIFT)) & ENET_IEEE_T_MCOL_COUNT_MASK)
3028
3029/*! @name IEEE_T_DEF - Frames Transmitted after Deferral Delay Statistic Register */
3030#define ENET_IEEE_T_DEF_COUNT_MASK (0xFFFFU)
3031#define ENET_IEEE_T_DEF_COUNT_SHIFT (0U)
3032#define ENET_IEEE_T_DEF_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_DEF_COUNT_SHIFT)) & ENET_IEEE_T_DEF_COUNT_MASK)
3033
3034/*! @name IEEE_T_LCOL - Frames Transmitted with Late Collision Statistic Register */
3035#define ENET_IEEE_T_LCOL_COUNT_MASK (0xFFFFU)
3036#define ENET_IEEE_T_LCOL_COUNT_SHIFT (0U)
3037#define ENET_IEEE_T_LCOL_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_LCOL_COUNT_SHIFT)) & ENET_IEEE_T_LCOL_COUNT_MASK)
3038
3039/*! @name IEEE_T_EXCOL - Frames Transmitted with Excessive Collisions Statistic Register */
3040#define ENET_IEEE_T_EXCOL_COUNT_MASK (0xFFFFU)
3041#define ENET_IEEE_T_EXCOL_COUNT_SHIFT (0U)
3042#define ENET_IEEE_T_EXCOL_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_EXCOL_COUNT_SHIFT)) & ENET_IEEE_T_EXCOL_COUNT_MASK)
3043
3044/*! @name IEEE_T_MACERR - Frames Transmitted with Tx FIFO Underrun Statistic Register */
3045#define ENET_IEEE_T_MACERR_COUNT_MASK (0xFFFFU)
3046#define ENET_IEEE_T_MACERR_COUNT_SHIFT (0U)
3047#define ENET_IEEE_T_MACERR_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_MACERR_COUNT_SHIFT)) & ENET_IEEE_T_MACERR_COUNT_MASK)
3048
3049/*! @name IEEE_T_CSERR - Frames Transmitted with Carrier Sense Error Statistic Register */
3050#define ENET_IEEE_T_CSERR_COUNT_MASK (0xFFFFU)
3051#define ENET_IEEE_T_CSERR_COUNT_SHIFT (0U)
3052#define ENET_IEEE_T_CSERR_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_CSERR_COUNT_SHIFT)) & ENET_IEEE_T_CSERR_COUNT_MASK)
3053
3054/*! @name IEEE_T_FDXFC - Flow Control Pause Frames Transmitted Statistic Register */
3055#define ENET_IEEE_T_FDXFC_COUNT_MASK (0xFFFFU)
3056#define ENET_IEEE_T_FDXFC_COUNT_SHIFT (0U)
3057#define ENET_IEEE_T_FDXFC_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_T_FDXFC_COUNT_SHIFT)) & ENET_IEEE_T_FDXFC_COUNT_MASK)
3058
3059/*! @name RMON_R_PACKETS - Rx Packet Count Statistic Register */
3060#define ENET_RMON_R_PACKETS_COUNT_MASK (0xFFFFU)
3061#define ENET_RMON_R_PACKETS_COUNT_SHIFT (0U)
3062#define ENET_RMON_R_PACKETS_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_PACKETS_COUNT_SHIFT)) & ENET_RMON_R_PACKETS_COUNT_MASK)
3063
3064/*! @name RMON_R_BC_PKT - Rx Broadcast Packets Statistic Register */
3065#define ENET_RMON_R_BC_PKT_COUNT_MASK (0xFFFFU)
3066#define ENET_RMON_R_BC_PKT_COUNT_SHIFT (0U)
3067#define ENET_RMON_R_BC_PKT_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_BC_PKT_COUNT_SHIFT)) & ENET_RMON_R_BC_PKT_COUNT_MASK)
3068
3069/*! @name RMON_R_MC_PKT - Rx Multicast Packets Statistic Register */
3070#define ENET_RMON_R_MC_PKT_COUNT_MASK (0xFFFFU)
3071#define ENET_RMON_R_MC_PKT_COUNT_SHIFT (0U)
3072#define ENET_RMON_R_MC_PKT_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_MC_PKT_COUNT_SHIFT)) & ENET_RMON_R_MC_PKT_COUNT_MASK)
3073
3074/*! @name RMON_R_CRC_ALIGN - Rx Packets with CRC/Align Error Statistic Register */
3075#define ENET_RMON_R_CRC_ALIGN_COUNT_MASK (0xFFFFU)
3076#define ENET_RMON_R_CRC_ALIGN_COUNT_SHIFT (0U)
3077#define ENET_RMON_R_CRC_ALIGN_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_CRC_ALIGN_COUNT_SHIFT)) & ENET_RMON_R_CRC_ALIGN_COUNT_MASK)
3078
3079/*! @name RMON_R_UNDERSIZE - Rx Packets with Less Than 64 Bytes and Good CRC Statistic Register */
3080#define ENET_RMON_R_UNDERSIZE_COUNT_MASK (0xFFFFU)
3081#define ENET_RMON_R_UNDERSIZE_COUNT_SHIFT (0U)
3082#define ENET_RMON_R_UNDERSIZE_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_UNDERSIZE_COUNT_SHIFT)) & ENET_RMON_R_UNDERSIZE_COUNT_MASK)
3083
3084/*! @name RMON_R_OVERSIZE - Rx Packets Greater Than MAX_FL and Good CRC Statistic Register */
3085#define ENET_RMON_R_OVERSIZE_COUNT_MASK (0xFFFFU)
3086#define ENET_RMON_R_OVERSIZE_COUNT_SHIFT (0U)
3087#define ENET_RMON_R_OVERSIZE_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_OVERSIZE_COUNT_SHIFT)) & ENET_RMON_R_OVERSIZE_COUNT_MASK)
3088
3089/*! @name RMON_R_FRAG - Rx Packets Less Than 64 Bytes and Bad CRC Statistic Register */
3090#define ENET_RMON_R_FRAG_COUNT_MASK (0xFFFFU)
3091#define ENET_RMON_R_FRAG_COUNT_SHIFT (0U)
3092#define ENET_RMON_R_FRAG_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_FRAG_COUNT_SHIFT)) & ENET_RMON_R_FRAG_COUNT_MASK)
3093
3094/*! @name RMON_R_JAB - Rx Packets Greater Than MAX_FL Bytes and Bad CRC Statistic Register */
3095#define ENET_RMON_R_JAB_COUNT_MASK (0xFFFFU)
3096#define ENET_RMON_R_JAB_COUNT_SHIFT (0U)
3097#define ENET_RMON_R_JAB_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_JAB_COUNT_SHIFT)) & ENET_RMON_R_JAB_COUNT_MASK)
3098
3099/*! @name RMON_R_P64 - Rx 64-Byte Packets Statistic Register */
3100#define ENET_RMON_R_P64_COUNT_MASK (0xFFFFU)
3101#define ENET_RMON_R_P64_COUNT_SHIFT (0U)
3102#define ENET_RMON_R_P64_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P64_COUNT_SHIFT)) & ENET_RMON_R_P64_COUNT_MASK)
3103
3104/*! @name RMON_R_P65TO127 - Rx 65- to 127-Byte Packets Statistic Register */
3105#define ENET_RMON_R_P65TO127_COUNT_MASK (0xFFFFU)
3106#define ENET_RMON_R_P65TO127_COUNT_SHIFT (0U)
3107#define ENET_RMON_R_P65TO127_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P65TO127_COUNT_SHIFT)) & ENET_RMON_R_P65TO127_COUNT_MASK)
3108
3109/*! @name RMON_R_P128TO255 - Rx 128- to 255-Byte Packets Statistic Register */
3110#define ENET_RMON_R_P128TO255_COUNT_MASK (0xFFFFU)
3111#define ENET_RMON_R_P128TO255_COUNT_SHIFT (0U)
3112#define ENET_RMON_R_P128TO255_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P128TO255_COUNT_SHIFT)) & ENET_RMON_R_P128TO255_COUNT_MASK)
3113
3114/*! @name RMON_R_P256TO511 - Rx 256- to 511-Byte Packets Statistic Register */
3115#define ENET_RMON_R_P256TO511_COUNT_MASK (0xFFFFU)
3116#define ENET_RMON_R_P256TO511_COUNT_SHIFT (0U)
3117#define ENET_RMON_R_P256TO511_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P256TO511_COUNT_SHIFT)) & ENET_RMON_R_P256TO511_COUNT_MASK)
3118
3119/*! @name RMON_R_P512TO1023 - Rx 512- to 1023-Byte Packets Statistic Register */
3120#define ENET_RMON_R_P512TO1023_COUNT_MASK (0xFFFFU)
3121#define ENET_RMON_R_P512TO1023_COUNT_SHIFT (0U)
3122#define ENET_RMON_R_P512TO1023_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P512TO1023_COUNT_SHIFT)) & ENET_RMON_R_P512TO1023_COUNT_MASK)
3123
3124/*! @name RMON_R_P1024TO2047 - Rx 1024- to 2047-Byte Packets Statistic Register */
3125#define ENET_RMON_R_P1024TO2047_COUNT_MASK (0xFFFFU)
3126#define ENET_RMON_R_P1024TO2047_COUNT_SHIFT (0U)
3127#define ENET_RMON_R_P1024TO2047_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P1024TO2047_COUNT_SHIFT)) & ENET_RMON_R_P1024TO2047_COUNT_MASK)
3128
3129/*! @name RMON_R_P_GTE2048 - Rx Packets Greater than 2048 Bytes Statistic Register */
3130#define ENET_RMON_R_P_GTE2048_COUNT_MASK (0xFFFFU)
3131#define ENET_RMON_R_P_GTE2048_COUNT_SHIFT (0U)
3132#define ENET_RMON_R_P_GTE2048_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_RMON_R_P_GTE2048_COUNT_SHIFT)) & ENET_RMON_R_P_GTE2048_COUNT_MASK)
3133
3134/*! @name IEEE_R_DROP - Frames not Counted Correctly Statistic Register */
3135#define ENET_IEEE_R_DROP_COUNT_MASK (0xFFFFU)
3136#define ENET_IEEE_R_DROP_COUNT_SHIFT (0U)
3137#define ENET_IEEE_R_DROP_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_DROP_COUNT_SHIFT)) & ENET_IEEE_R_DROP_COUNT_MASK)
3138
3139/*! @name IEEE_R_FRAME_OK - Frames Received OK Statistic Register */
3140#define ENET_IEEE_R_FRAME_OK_COUNT_MASK (0xFFFFU)
3141#define ENET_IEEE_R_FRAME_OK_COUNT_SHIFT (0U)
3142#define ENET_IEEE_R_FRAME_OK_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_FRAME_OK_COUNT_SHIFT)) & ENET_IEEE_R_FRAME_OK_COUNT_MASK)
3143
3144/*! @name IEEE_R_CRC - Frames Received with CRC Error Statistic Register */
3145#define ENET_IEEE_R_CRC_COUNT_MASK (0xFFFFU)
3146#define ENET_IEEE_R_CRC_COUNT_SHIFT (0U)
3147#define ENET_IEEE_R_CRC_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_CRC_COUNT_SHIFT)) & ENET_IEEE_R_CRC_COUNT_MASK)
3148
3149/*! @name IEEE_R_ALIGN - Frames Received with Alignment Error Statistic Register */
3150#define ENET_IEEE_R_ALIGN_COUNT_MASK (0xFFFFU)
3151#define ENET_IEEE_R_ALIGN_COUNT_SHIFT (0U)
3152#define ENET_IEEE_R_ALIGN_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_ALIGN_COUNT_SHIFT)) & ENET_IEEE_R_ALIGN_COUNT_MASK)
3153
3154/*! @name IEEE_R_MACERR - Receive FIFO Overflow Count Statistic Register */
3155#define ENET_IEEE_R_MACERR_COUNT_MASK (0xFFFFU)
3156#define ENET_IEEE_R_MACERR_COUNT_SHIFT (0U)
3157#define ENET_IEEE_R_MACERR_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_MACERR_COUNT_SHIFT)) & ENET_IEEE_R_MACERR_COUNT_MASK)
3158
3159/*! @name IEEE_R_FDXFC - Flow Control Pause Frames Received Statistic Register */
3160#define ENET_IEEE_R_FDXFC_COUNT_MASK (0xFFFFU)
3161#define ENET_IEEE_R_FDXFC_COUNT_SHIFT (0U)
3162#define ENET_IEEE_R_FDXFC_COUNT(x) (((uint32_t)(((uint32_t)(x)) << ENET_IEEE_R_FDXFC_COUNT_SHIFT)) & ENET_IEEE_R_FDXFC_COUNT_MASK)
3163
3164/*! @name ATCR - Adjustable Timer Control Register */
3165#define ENET_ATCR_EN (0x1U)
3166#define ENET_ATCR_OFFEN (0x4U)
3167#define ENET_ATCR_OFFRST (0x8U)
3168#define ENET_ATCR_PEREN (0x10U)
3169#define ENET_ATCR_PINPER (0x80U)
3170#define ENET_ATCR_RESTART (0x200U)
3171#define ENET_ATCR_CAPTURE (0x800U)
3172#define ENET_ATCR_SLAVE (0x2000U)
3173
3174/*! @name ATCOR - Timer Correction Register */
3175#define ENET_ATCOR_COR_MASK (0x7FFFFFFFU)
3176#define ENET_ATCOR_COR_SHIFT (0U)
3177#define ENET_ATCOR_COR(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATCOR_COR_SHIFT)) & ENET_ATCOR_COR_MASK)
3178
3179/*! @name ATINC - Time-Stamping Clock Period Register */
3180#define ENET_ATINC_INC_MASK (0x7FU)
3181#define ENET_ATINC_INC_SHIFT (0U)
3182#define ENET_ATINC_INC(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATINC_INC_SHIFT)) & ENET_ATINC_INC_MASK)
3183#define ENET_ATINC_INC_CORR_MASK (0x7F00U)
3184#define ENET_ATINC_INC_CORR_SHIFT (8U)
3185#define ENET_ATINC_INC_CORR(x) (((uint32_t)(((uint32_t)(x)) << ENET_ATINC_INC_CORR_SHIFT)) & ENET_ATINC_INC_CORR_MASK)
3186
3187/*! @name TGSR - Timer Global Status Register */
3188#define ENET_TGSR_TF0 (0x1U)
3189#define ENET_TGSR_TF1 (0x2U)
3190#define ENET_TGSR_TF2 (0x4U)
3191#define ENET_TGSR_TF3 (0x8U)
3192
3193/*! @name TCSR - Timer Control Status Register */
3194#define ENET_TCSR_TDRE (0x1U)
3195#define ENET_TCSR_TMODE_MASK (0x3CU)
3196#define ENET_TCSR_TMODE_SHIFT (2U)
3197#define ENET_TCSR_TMODE(x) (((uint32_t)(((uint32_t)(x)) << ENET_TCSR_TMODE_SHIFT)) & ENET_TCSR_TMODE_MASK)
3198#define ENET_TCSR_TIE (0x40U)
3199#define ENET_TCSR_TF (0x80U)
3200
3201/* The count of ENET_TCSR */
3202#define ENET_TCSR_COUNT (4U)
3203
3204/* The count of ENET_TCCR */
3205#define ENET_TCCR_COUNT (4U)
3206
3207
3208/*!
3209 * @}
3210 */ /* end of group ENET_Register_Masks */
3211
3212
3213/* ENET - Peripheral instance base addresses */
3214/** Peripheral ENET base address */
3215#define ENET_BASE (0x400C0000u)
3216/** Peripheral ENET base pointer */
3217#define ENET ((ENET_TypeDef *)ENET_BASE)
3218/** Array initializer of ENET peripheral base addresses */
3219#define ENET_BASE_ADDRS { ENET_BASE }
3220/** Array initializer of ENET peripheral base pointers */
3221#define ENET_BASE_PTRS { ENET }
3222/** Interrupt vectors for the ENET peripheral type */
3223#define ENET_Transmit_IRQS { ENET_Transmit_IRQn }
3224#define ENET_Receive_IRQS { ENET_Receive_IRQn }
3225#define ENET_Error_IRQS { ENET_Error_IRQn }
3226#define ENET_1588_Timer_IRQS { ENET_1588_Timer_IRQn }
3227
3228/*!
3229 * @}
3230 */ /* end of group ENET_Peripheral_Access_Layer */
3231
3232
3233/* ----------------------------------------------------------------------------
3234 -- EWM Peripheral Access Layer
3235 ---------------------------------------------------------------------------- */
3236
3237/*!
3238 * @addtogroup EWM_Peripheral_Access_Layer EWM Peripheral Access Layer
3239 * @{
3240 */
3241
3242/** EWM - Register Layout Typedef */
3243typedef struct {
3244 __IO uint8_t CTRL; /**< Control Register, offset: 0x0 */
3245 __O uint8_t SERV; /**< Service Register, offset: 0x1 */
3246 __IO uint8_t CMPL; /**< Compare Low Register, offset: 0x2 */
3247 __IO uint8_t CMPH; /**< Compare High Register, offset: 0x3 */
3248} EWM_TypeDef;
3249
3250/* ----------------------------------------------------------------------------
3251 -- EWM Register Masks
3252 ---------------------------------------------------------------------------- */
3253
3254/*!
3255 * @addtogroup EWM_Register_Masks EWM Register Masks
3256 * @{
3257 */
3258
3259/*! @name CTRL - Control Register */
3260#define EWM_CTRL_EWMEN (0x1U)
3261#define EWM_CTRL_ASSIN (0x2U)
3262#define EWM_CTRL_INEN (0x4U)
3263#define EWM_CTRL_INTEN (0x8U)
3264
3265/*! @name SERV - Service Register */
3266#define EWM_SERV_SERVICE_MASK (0xFFU)
3267#define EWM_SERV_SERVICE_SHIFT (0U)
3268#define EWM_SERV_SERVICE(x) (((uint8_t)(((uint8_t)(x)) << EWM_SERV_SERVICE_SHIFT)) & EWM_SERV_SERVICE_MASK)
3269
3270/*! @name CMPL - Compare Low Register */
3271#define EWM_CMPL_COMPAREL_MASK (0xFFU)
3272#define EWM_CMPL_COMPAREL_SHIFT (0U)
3273#define EWM_CMPL_COMPAREL(x) (((uint8_t)(((uint8_t)(x)) << EWM_CMPL_COMPAREL_SHIFT)) & EWM_CMPL_COMPAREL_MASK)
3274
3275/*! @name CMPH - Compare High Register */
3276#define EWM_CMPH_COMPAREH_MASK (0xFFU)
3277#define EWM_CMPH_COMPAREH_SHIFT (0U)
3278#define EWM_CMPH_COMPAREH(x) (((uint8_t)(((uint8_t)(x)) << EWM_CMPH_COMPAREH_SHIFT)) & EWM_CMPH_COMPAREH_MASK)
3279
3280
3281/*!
3282 * @}
3283 */ /* end of group EWM_Register_Masks */
3284
3285
3286/* EWM - Peripheral instance base addresses */
3287/** Peripheral EWM base address */
3288#define EWM_BASE (0x40061000u)
3289/** Peripheral EWM base pointer */
3290#define EWM ((EWM_TypeDef *)EWM_BASE)
3291/** Array initializer of EWM peripheral base addresses */
3292#define EWM_BASE_ADDRS { EWM_BASE }
3293/** Array initializer of EWM peripheral base pointers */
3294#define EWM_BASE_PTRS { EWM }
3295/** Interrupt vectors for the EWM peripheral type */
3296#define EWM_IRQS { WDOG_EWM_IRQn }
3297
3298/*!
3299 * @}
3300 */ /* end of group EWM_Peripheral_Access_Layer */
3301
3302
3303/* ----------------------------------------------------------------------------
3304 -- FB Peripheral Access Layer
3305 ---------------------------------------------------------------------------- */
3306
3307/*!
3308 * @addtogroup FB_Peripheral_Access_Layer FB Peripheral Access Layer
3309 * @{
3310 */
3311
3312/** FB - Register Layout Typedef */
3313typedef struct {
3314 struct { /* offset: 0x0, array step: 0xC */
3315 __IO uint32_t CSAR; /**< Chip Select Address Register, array offset: 0x0, array step: 0xC */
3316 __IO uint32_t CSMR; /**< Chip Select Mask Register, array offset: 0x4, array step: 0xC */
3317 __IO uint32_t CSCR; /**< Chip Select Control Register, array offset: 0x8, array step: 0xC */
3318 } CS[6];
3319 uint8_t RESERVED_0[24];
3320 __IO uint32_t CSPMCR; /**< Chip Select port Multiplexing Control Register, offset: 0x60 */
3321} FB_TypeDef;
3322
3323/* ----------------------------------------------------------------------------
3324 -- FB Register Masks
3325 ---------------------------------------------------------------------------- */
3326
3327/*!
3328 * @addtogroup FB_Register_Masks FB Register Masks
3329 * @{
3330 */
3331
3332/*! @name CSAR - Chip Select Address Register */
3333#define FB_CSAR_BA_MASK (0xFFFF0000U)
3334#define FB_CSAR_BA_SHIFT (16U)
3335#define FB_CSAR_BA(x) (((uint32_t)(((uint32_t)(x)) << FB_CSAR_BA_SHIFT)) & FB_CSAR_BA_MASK)
3336
3337/* The count of FB_CSAR */
3338#define FB_CSAR_COUNT (6U)
3339
3340/*! @name CSMR - Chip Select Mask Register */
3341#define FB_CSMR_V (0x1U)
3342#define FB_CSMR_WP (0x100U)
3343#define FB_CSMR_BAM_MASK (0xFFFF0000U)
3344#define FB_CSMR_BAM_SHIFT (16U)
3345#define FB_CSMR_BAM(x) (((uint32_t)(((uint32_t)(x)) << FB_CSMR_BAM_SHIFT)) & FB_CSMR_BAM_MASK)
3346
3347/* The count of FB_CSMR */
3348#define FB_CSMR_COUNT (6U)
3349
3350/*! @name CSCR - Chip Select Control Register */
3351#define FB_CSCR_BSTW (0x8U)
3352#define FB_CSCR_BSTR (0x10U)
3353#define FB_CSCR_BEM (0x20U)
3354#define FB_CSCR_PS_MASK (0xC0U)
3355#define FB_CSCR_PS_SHIFT (6U)
3356#define FB_CSCR_PS(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_PS_SHIFT)) & FB_CSCR_PS_MASK)
3357#define FB_CSCR_AA (0x100U)
3358#define FB_CSCR_BLS (0x200U)
3359#define FB_CSCR_WS_MASK (0xFC00U)
3360#define FB_CSCR_WS_SHIFT (10U)
3361#define FB_CSCR_WS(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_WS_SHIFT)) & FB_CSCR_WS_MASK)
3362#define FB_CSCR_WRAH_MASK (0x30000U)
3363#define FB_CSCR_WRAH_SHIFT (16U)
3364#define FB_CSCR_WRAH(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_WRAH_SHIFT)) & FB_CSCR_WRAH_MASK)
3365#define FB_CSCR_RDAH_MASK (0xC0000U)
3366#define FB_CSCR_RDAH_SHIFT (18U)
3367#define FB_CSCR_RDAH(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_RDAH_SHIFT)) & FB_CSCR_RDAH_MASK)
3368#define FB_CSCR_ASET_MASK (0x300000U)
3369#define FB_CSCR_ASET_SHIFT (20U)
3370#define FB_CSCR_ASET(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_ASET_SHIFT)) & FB_CSCR_ASET_MASK)
3371#define FB_CSCR_EXTS (0x400000U)
3372#define FB_CSCR_SWSEN (0x800000U)
3373#define FB_CSCR_SWS_MASK (0xFC000000U)
3374#define FB_CSCR_SWS_SHIFT (26U)
3375#define FB_CSCR_SWS(x) (((uint32_t)(((uint32_t)(x)) << FB_CSCR_SWS_SHIFT)) & FB_CSCR_SWS_MASK)
3376
3377/* The count of FB_CSCR */
3378#define FB_CSCR_COUNT (6U)
3379
3380/*! @name CSPMCR - Chip Select port Multiplexing Control Register */
3381#define FB_CSPMCR_GROUP5_MASK (0xF000U)
3382#define FB_CSPMCR_GROUP5_SHIFT (12U)
3383#define FB_CSPMCR_GROUP5(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP5_SHIFT)) & FB_CSPMCR_GROUP5_MASK)
3384#define FB_CSPMCR_GROUP4_MASK (0xF0000U)
3385#define FB_CSPMCR_GROUP4_SHIFT (16U)
3386#define FB_CSPMCR_GROUP4(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP4_SHIFT)) & FB_CSPMCR_GROUP4_MASK)
3387#define FB_CSPMCR_GROUP3_MASK (0xF00000U)
3388#define FB_CSPMCR_GROUP3_SHIFT (20U)
3389#define FB_CSPMCR_GROUP3(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP3_SHIFT)) & FB_CSPMCR_GROUP3_MASK)
3390#define FB_CSPMCR_GROUP2_MASK (0xF000000U)
3391#define FB_CSPMCR_GROUP2_SHIFT (24U)
3392#define FB_CSPMCR_GROUP2(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP2_SHIFT)) & FB_CSPMCR_GROUP2_MASK)
3393#define FB_CSPMCR_GROUP1_MASK (0xF0000000U)
3394#define FB_CSPMCR_GROUP1_SHIFT (28U)
3395#define FB_CSPMCR_GROUP1(x) (((uint32_t)(((uint32_t)(x)) << FB_CSPMCR_GROUP1_SHIFT)) & FB_CSPMCR_GROUP1_MASK)
3396
3397
3398/*!
3399 * @}
3400 */ /* end of group FB_Register_Masks */
3401
3402
3403/* FB - Peripheral instance base addresses */
3404/** Peripheral FB base address */
3405#define FB_BASE (0x4000C000u)
3406/** Peripheral FB base pointer */
3407#define FB ((FB_TypeDef *)FB_BASE)
3408/** Array initializer of FB peripheral base addresses */
3409#define FB_BASE_ADDRS { FB_BASE }
3410/** Array initializer of FB peripheral base pointers */
3411#define FB_BASE_PTRS { FB }
3412
3413/*!
3414 * @}
3415 */ /* end of group FB_Peripheral_Access_Layer */
3416
3417
3418/* ----------------------------------------------------------------------------
3419 -- FMC Peripheral Access Layer
3420 ---------------------------------------------------------------------------- */
3421
3422/*!
3423 * @addtogroup FMC_Peripheral_Access_Layer FMC Peripheral Access Layer
3424 * @{
3425 */
3426
3427/** FMC - Register Layout Typedef */
3428typedef struct {
3429 __IO uint32_t PFAPR; /**< Flash Access Protection Register, offset: 0x0 */
3430 __IO uint32_t PFB0CR; /**< Flash Bank 0 Control Register, offset: 0x4 */
3431 __IO uint32_t PFB1CR; /**< Flash Bank 1 Control Register, offset: 0x8 */
3432 uint8_t RESERVED_0[244];
3433 __IO uint32_t TAGVDW0S[4]; /**< Cache Tag Storage, array offset: 0x100, array step: 0x4 */
3434 __IO uint32_t TAGVDW1S[4]; /**< Cache Tag Storage, array offset: 0x110, array step: 0x4 */
3435 __IO uint32_t TAGVDW2S[4]; /**< Cache Tag Storage, array offset: 0x120, array step: 0x4 */
3436 __IO uint32_t TAGVDW3S[4]; /**< Cache Tag Storage, array offset: 0x130, array step: 0x4 */
3437 uint8_t RESERVED_1[192];
3438 struct { /* offset: 0x200, array step: index*0x20, index2*0x8 */
3439 __IO uint32_t DATA_U; /**< Cache Data Storage (upper word), array offset: 0x200, array step: index*0x20, index2*0x8 */
3440 __IO uint32_t DATA_L; /**< Cache Data Storage (lower word), array offset: 0x204, array step: index*0x20, index2*0x8 */
3441 } SET[4][4];
3442} FMC_TypeDef;
3443
3444/* ----------------------------------------------------------------------------
3445 -- FMC Register Masks
3446 ---------------------------------------------------------------------------- */
3447
3448/*!
3449 * @addtogroup FMC_Register_Masks FMC Register Masks
3450 * @{
3451 */
3452
3453/*! @name PFAPR - Flash Access Protection Register */
3454#define FMC_PFAPR_M0AP_MASK (0x3U)
3455#define FMC_PFAPR_M0AP_SHIFT (0U)
3456#define FMC_PFAPR_M0AP(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M0AP_SHIFT)) & FMC_PFAPR_M0AP_MASK)
3457#define FMC_PFAPR_M1AP_MASK (0xCU)
3458#define FMC_PFAPR_M1AP_SHIFT (2U)
3459#define FMC_PFAPR_M1AP(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M1AP_SHIFT)) & FMC_PFAPR_M1AP_MASK)
3460#define FMC_PFAPR_M2AP_MASK (0x30U)
3461#define FMC_PFAPR_M2AP_SHIFT (4U)
3462#define FMC_PFAPR_M2AP(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M2AP_SHIFT)) & FMC_PFAPR_M2AP_MASK)
3463#define FMC_PFAPR_M3AP_MASK (0xC0U)
3464#define FMC_PFAPR_M3AP_SHIFT (6U)
3465#define FMC_PFAPR_M3AP(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M3AP_SHIFT)) & FMC_PFAPR_M3AP_MASK)
3466#define FMC_PFAPR_M4AP_MASK (0x300U)
3467#define FMC_PFAPR_M4AP_SHIFT (8U)
3468#define FMC_PFAPR_M4AP(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M4AP_SHIFT)) & FMC_PFAPR_M4AP_MASK)
3469#define FMC_PFAPR_M5AP_MASK (0xC00U)
3470#define FMC_PFAPR_M5AP_SHIFT (10U)
3471#define FMC_PFAPR_M5AP(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M5AP_SHIFT)) & FMC_PFAPR_M5AP_MASK)
3472#define FMC_PFAPR_M6AP_MASK (0x3000U)
3473#define FMC_PFAPR_M6AP_SHIFT (12U)
3474#define FMC_PFAPR_M6AP(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M6AP_SHIFT)) & FMC_PFAPR_M6AP_MASK)
3475#define FMC_PFAPR_M7AP_MASK (0xC000U)
3476#define FMC_PFAPR_M7AP_SHIFT (14U)
3477#define FMC_PFAPR_M7AP(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFAPR_M7AP_SHIFT)) & FMC_PFAPR_M7AP_MASK)
3478#define FMC_PFAPR_M0PFD (0x10000U)
3479#define FMC_PFAPR_M1PFD (0x20000U)
3480#define FMC_PFAPR_M2PFD (0x40000U)
3481#define FMC_PFAPR_M3PFD (0x80000U)
3482#define FMC_PFAPR_M4PFD (0x100000U)
3483#define FMC_PFAPR_M5PFD (0x200000U)
3484#define FMC_PFAPR_M6PFD (0x400000U)
3485#define FMC_PFAPR_M7PFD (0x800000U)
3486
3487/*! @name PFB0CR - Flash Bank 0 Control Register */
3488#define FMC_PFB0CR_B0SEBE (0x1U)
3489#define FMC_PFB0CR_B0IPE (0x2U)
3490#define FMC_PFB0CR_B0DPE (0x4U)
3491#define FMC_PFB0CR_B0ICE (0x8U)
3492#define FMC_PFB0CR_B0DCE (0x10U)
3493#define FMC_PFB0CR_CRC_MASK (0xE0U)
3494#define FMC_PFB0CR_CRC_SHIFT (5U)
3495#define FMC_PFB0CR_CRC(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB0CR_CRC_SHIFT)) & FMC_PFB0CR_CRC_MASK)
3496#define FMC_PFB0CR_B0MW_MASK (0x60000U)
3497#define FMC_PFB0CR_B0MW_SHIFT (17U)
3498#define FMC_PFB0CR_B0MW(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB0CR_B0MW_SHIFT)) & FMC_PFB0CR_B0MW_MASK)
3499#define FMC_PFB0CR_S_B_INV (0x80000U)
3500#define FMC_PFB0CR_CINV_WAY_MASK (0xF00000U)
3501#define FMC_PFB0CR_CINV_WAY_SHIFT (20U)
3502#define FMC_PFB0CR_CINV_WAY(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB0CR_CINV_WAY_SHIFT)) & FMC_PFB0CR_CINV_WAY_MASK)
3503#define FMC_PFB0CR_CLCK_WAY_MASK (0xF000000U)
3504#define FMC_PFB0CR_CLCK_WAY_SHIFT (24U)
3505#define FMC_PFB0CR_CLCK_WAY(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB0CR_CLCK_WAY_SHIFT)) & FMC_PFB0CR_CLCK_WAY_MASK)
3506#define FMC_PFB0CR_B0RWSC_MASK (0xF0000000U)
3507#define FMC_PFB0CR_B0RWSC_SHIFT (28U)
3508#define FMC_PFB0CR_B0RWSC(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB0CR_B0RWSC_SHIFT)) & FMC_PFB0CR_B0RWSC_MASK)
3509
3510/*! @name PFB1CR - Flash Bank 1 Control Register */
3511#define FMC_PFB1CR_B1SEBE (0x1U)
3512#define FMC_PFB1CR_B1IPE (0x2U)
3513#define FMC_PFB1CR_B1DPE (0x4U)
3514#define FMC_PFB1CR_B1ICE (0x8U)
3515#define FMC_PFB1CR_B1DCE (0x10U)
3516#define FMC_PFB1CR_B1MW_MASK (0x60000U)
3517#define FMC_PFB1CR_B1MW_SHIFT (17U)
3518#define FMC_PFB1CR_B1MW(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB1CR_B1MW_SHIFT)) & FMC_PFB1CR_B1MW_MASK)
3519#define FMC_PFB1CR_B1RWSC_MASK (0xF0000000U)
3520#define FMC_PFB1CR_B1RWSC_SHIFT (28U)
3521#define FMC_PFB1CR_B1RWSC(x) (((uint32_t)(((uint32_t)(x)) << FMC_PFB1CR_B1RWSC_SHIFT)) & FMC_PFB1CR_B1RWSC_MASK)
3522
3523/*! @name TAGVDW0S - Cache Tag Storage */
3524#define FMC_TAGVDW0S_valid (0x1U)
3525#define FMC_TAGVDW0S_tag_MASK (0x7FFE0U)
3526#define FMC_TAGVDW0S_tag_SHIFT (5U)
3527#define FMC_TAGVDW0S_tag(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW0S_tag_SHIFT)) & FMC_TAGVDW0S_tag_MASK)
3528
3529/* The count of FMC_TAGVDW0S */
3530#define FMC_TAGVDW0S_COUNT (4U)
3531
3532/*! @name TAGVDW1S - Cache Tag Storage */
3533#define FMC_TAGVDW1S_valid (0x1U)
3534#define FMC_TAGVDW1S_tag_MASK (0x7FFE0U)
3535#define FMC_TAGVDW1S_tag_SHIFT (5U)
3536#define FMC_TAGVDW1S_tag(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW1S_tag_SHIFT)) & FMC_TAGVDW1S_tag_MASK)
3537
3538/* The count of FMC_TAGVDW1S */
3539#define FMC_TAGVDW1S_COUNT (4U)
3540
3541/*! @name TAGVDW2S - Cache Tag Storage */
3542#define FMC_TAGVDW2S_valid (0x1U)
3543#define FMC_TAGVDW2S_tag_MASK (0x7FFE0U)
3544#define FMC_TAGVDW2S_tag_SHIFT (5U)
3545#define FMC_TAGVDW2S_tag(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW2S_tag_SHIFT)) & FMC_TAGVDW2S_tag_MASK)
3546
3547/* The count of FMC_TAGVDW2S */
3548#define FMC_TAGVDW2S_COUNT (4U)
3549
3550/*! @name TAGVDW3S - Cache Tag Storage */
3551#define FMC_TAGVDW3S_valid (0x1U)
3552#define FMC_TAGVDW3S_tag_MASK (0x7FFE0U)
3553#define FMC_TAGVDW3S_tag_SHIFT (5U)
3554#define FMC_TAGVDW3S_tag(x) (((uint32_t)(((uint32_t)(x)) << FMC_TAGVDW3S_tag_SHIFT)) & FMC_TAGVDW3S_tag_MASK)
3555
3556/* The count of FMC_TAGVDW3S */
3557#define FMC_TAGVDW3S_COUNT (4U)
3558
3559/* The count of FMC_DATA_U */
3560#define FMC_DATA_U_COUNT (4U)
3561
3562/* The count of FMC_DATA_U */
3563#define FMC_DATA_U_COUNT2 (4U)
3564
3565/* The count of FMC_DATA_L */
3566#define FMC_DATA_L_COUNT (4U)
3567
3568/* The count of FMC_DATA_L */
3569#define FMC_DATA_L_COUNT2 (4U)
3570
3571
3572/*!
3573 * @}
3574 */ /* end of group FMC_Register_Masks */
3575
3576
3577/* FMC - Peripheral instance base addresses */
3578/** Peripheral FMC base address */
3579#define FMC_BASE (0x4001F000u)
3580/** Peripheral FMC base pointer */
3581#define FMC ((FMC_TypeDef *)FMC_BASE)
3582/** Array initializer of FMC peripheral base addresses */
3583#define FMC_BASE_ADDRS { FMC_BASE }
3584/** Array initializer of FMC peripheral base pointers */
3585#define FMC_BASE_PTRS { FMC }
3586
3587/*!
3588 * @}
3589 */ /* end of group FMC_Peripheral_Access_Layer */
3590
3591
3592/* ----------------------------------------------------------------------------
3593 -- FTFE Peripheral Access Layer
3594 ---------------------------------------------------------------------------- */
3595
3596/*!
3597 * @addtogroup FTFE_Peripheral_Access_Layer FTFE Peripheral Access Layer
3598 * @{
3599 */
3600
3601/** FTFE - Register Layout Typedef */
3602typedef struct {
3603 __IO uint8_t FSTAT; /**< Flash Status Register, offset: 0x0 */
3604 __IO uint8_t FCNFG; /**< Flash Configuration Register, offset: 0x1 */
3605 __I uint8_t FSEC; /**< Flash Security Register, offset: 0x2 */
3606 __I uint8_t FOPT; /**< Flash Option Register, offset: 0x3 */
3607 __IO uint8_t FCCOB3; /**< Flash Common Command Object Registers, offset: 0x4 */
3608 __IO uint8_t FCCOB2; /**< Flash Common Command Object Registers, offset: 0x5 */
3609 __IO uint8_t FCCOB1; /**< Flash Common Command Object Registers, offset: 0x6 */
3610 __IO uint8_t FCCOB0; /**< Flash Common Command Object Registers, offset: 0x7 */
3611 __IO uint8_t FCCOB7; /**< Flash Common Command Object Registers, offset: 0x8 */
3612 __IO uint8_t FCCOB6; /**< Flash Common Command Object Registers, offset: 0x9 */
3613 __IO uint8_t FCCOB5; /**< Flash Common Command Object Registers, offset: 0xA */
3614 __IO uint8_t FCCOB4; /**< Flash Common Command Object Registers, offset: 0xB */
3615 __IO uint8_t FCCOBB; /**< Flash Common Command Object Registers, offset: 0xC */
3616 __IO uint8_t FCCOBA; /**< Flash Common Command Object Registers, offset: 0xD */
3617 __IO uint8_t FCCOB9; /**< Flash Common Command Object Registers, offset: 0xE */
3618 __IO uint8_t FCCOB8; /**< Flash Common Command Object Registers, offset: 0xF */
3619 __IO uint8_t FPROT3; /**< Program Flash Protection Registers, offset: 0x10 */
3620 __IO uint8_t FPROT2; /**< Program Flash Protection Registers, offset: 0x11 */
3621 __IO uint8_t FPROT1; /**< Program Flash Protection Registers, offset: 0x12 */
3622 __IO uint8_t FPROT0; /**< Program Flash Protection Registers, offset: 0x13 */
3623 uint8_t RESERVED_0[2];
3624 __IO uint8_t FEPROT; /**< EEPROM Protection Register, offset: 0x16 */
3625 __IO uint8_t FDPROT; /**< Data Flash Protection Register, offset: 0x17 */
3626} FTFE_TypeDef;
3627
3628/* ----------------------------------------------------------------------------
3629 -- FTFE Register Masks
3630 ---------------------------------------------------------------------------- */
3631
3632/*!
3633 * @addtogroup FTFE_Register_Masks FTFE Register Masks
3634 * @{
3635 */
3636
3637/*! @name FSTAT - Flash Status Register */
3638#define FTFE_FSTAT_MGSTAT0 (0x1U)
3639#define FTFE_FSTAT_FPVIOL (0x10U)
3640#define FTFE_FSTAT_ACCERR (0x20U)
3641#define FTFE_FSTAT_RDCOLERR (0x40U)
3642#define FTFE_FSTAT_CCIF (0x80U)
3643
3644/*! @name FCNFG - Flash Configuration Register */
3645#define FTFE_FCNFG_EEERDY (0x1U)
3646#define FTFE_FCNFG_RAMRDY (0x2U)
3647#define FTFE_FCNFG_PFLSH (0x4U)
3648#define FTFE_FCNFG_SWAP (0x8U)
3649#define FTFE_FCNFG_ERSSUSP (0x10U)
3650#define FTFE_FCNFG_ERSAREQ (0x20U)
3651#define FTFE_FCNFG_RDCOLLIE (0x40U)
3652#define FTFE_FCNFG_CCIE (0x80U)
3653
3654/*! @name FSEC - Flash Security Register */
3655#define FTFE_FSEC_SEC_MASK (0x3U)
3656#define FTFE_FSEC_SEC_SHIFT (0U)
3657#define FTFE_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSEC_SEC_SHIFT)) & FTFE_FSEC_SEC_MASK)
3658#define FTFE_FSEC_FSLACC_MASK (0xCU)
3659#define FTFE_FSEC_FSLACC_SHIFT (2U)
3660#define FTFE_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSEC_FSLACC_SHIFT)) & FTFE_FSEC_FSLACC_MASK)
3661#define FTFE_FSEC_MEEN_MASK (0x30U)
3662#define FTFE_FSEC_MEEN_SHIFT (4U)
3663#define FTFE_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSEC_MEEN_SHIFT)) & FTFE_FSEC_MEEN_MASK)
3664#define FTFE_FSEC_KEYEN_MASK (0xC0U)
3665#define FTFE_FSEC_KEYEN_SHIFT (6U)
3666#define FTFE_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FSEC_KEYEN_SHIFT)) & FTFE_FSEC_KEYEN_MASK)
3667
3668/*! @name FOPT - Flash Option Register */
3669#define FTFE_FOPT_OPT_MASK (0xFFU)
3670#define FTFE_FOPT_OPT_SHIFT (0U)
3671#define FTFE_FOPT_OPT(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FOPT_OPT_SHIFT)) & FTFE_FOPT_OPT_MASK)
3672
3673/*! @name FCCOB3 - Flash Common Command Object Registers */
3674#define FTFE_FCCOB3_CCOBn_MASK (0xFFU)
3675#define FTFE_FCCOB3_CCOBn_SHIFT (0U)
3676#define FTFE_FCCOB3_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB3_CCOBn_SHIFT)) & FTFE_FCCOB3_CCOBn_MASK)
3677
3678/*! @name FCCOB2 - Flash Common Command Object Registers */
3679#define FTFE_FCCOB2_CCOBn_MASK (0xFFU)
3680#define FTFE_FCCOB2_CCOBn_SHIFT (0U)
3681#define FTFE_FCCOB2_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB2_CCOBn_SHIFT)) & FTFE_FCCOB2_CCOBn_MASK)
3682
3683/*! @name FCCOB1 - Flash Common Command Object Registers */
3684#define FTFE_FCCOB1_CCOBn_MASK (0xFFU)
3685#define FTFE_FCCOB1_CCOBn_SHIFT (0U)
3686#define FTFE_FCCOB1_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB1_CCOBn_SHIFT)) & FTFE_FCCOB1_CCOBn_MASK)
3687
3688/*! @name FCCOB0 - Flash Common Command Object Registers */
3689#define FTFE_FCCOB0_CCOBn_MASK (0xFFU)
3690#define FTFE_FCCOB0_CCOBn_SHIFT (0U)
3691#define FTFE_FCCOB0_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB0_CCOBn_SHIFT)) & FTFE_FCCOB0_CCOBn_MASK)
3692
3693/*! @name FCCOB7 - Flash Common Command Object Registers */
3694#define FTFE_FCCOB7_CCOBn_MASK (0xFFU)
3695#define FTFE_FCCOB7_CCOBn_SHIFT (0U)
3696#define FTFE_FCCOB7_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB7_CCOBn_SHIFT)) & FTFE_FCCOB7_CCOBn_MASK)
3697
3698/*! @name FCCOB6 - Flash Common Command Object Registers */
3699#define FTFE_FCCOB6_CCOBn_MASK (0xFFU)
3700#define FTFE_FCCOB6_CCOBn_SHIFT (0U)
3701#define FTFE_FCCOB6_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB6_CCOBn_SHIFT)) & FTFE_FCCOB6_CCOBn_MASK)
3702
3703/*! @name FCCOB5 - Flash Common Command Object Registers */
3704#define FTFE_FCCOB5_CCOBn_MASK (0xFFU)
3705#define FTFE_FCCOB5_CCOBn_SHIFT (0U)
3706#define FTFE_FCCOB5_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB5_CCOBn_SHIFT)) & FTFE_FCCOB5_CCOBn_MASK)
3707
3708/*! @name FCCOB4 - Flash Common Command Object Registers */
3709#define FTFE_FCCOB4_CCOBn_MASK (0xFFU)
3710#define FTFE_FCCOB4_CCOBn_SHIFT (0U)
3711#define FTFE_FCCOB4_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB4_CCOBn_SHIFT)) & FTFE_FCCOB4_CCOBn_MASK)
3712
3713/*! @name FCCOBB - Flash Common Command Object Registers */
3714#define FTFE_FCCOBB_CCOBn_MASK (0xFFU)
3715#define FTFE_FCCOBB_CCOBn_SHIFT (0U)
3716#define FTFE_FCCOBB_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOBB_CCOBn_SHIFT)) & FTFE_FCCOBB_CCOBn_MASK)
3717
3718/*! @name FCCOBA - Flash Common Command Object Registers */
3719#define FTFE_FCCOBA_CCOBn_MASK (0xFFU)
3720#define FTFE_FCCOBA_CCOBn_SHIFT (0U)
3721#define FTFE_FCCOBA_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOBA_CCOBn_SHIFT)) & FTFE_FCCOBA_CCOBn_MASK)
3722
3723/*! @name FCCOB9 - Flash Common Command Object Registers */
3724#define FTFE_FCCOB9_CCOBn_MASK (0xFFU)
3725#define FTFE_FCCOB9_CCOBn_SHIFT (0U)
3726#define FTFE_FCCOB9_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB9_CCOBn_SHIFT)) & FTFE_FCCOB9_CCOBn_MASK)
3727
3728/*! @name FCCOB8 - Flash Common Command Object Registers */
3729#define FTFE_FCCOB8_CCOBn_MASK (0xFFU)
3730#define FTFE_FCCOB8_CCOBn_SHIFT (0U)
3731#define FTFE_FCCOB8_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FCCOB8_CCOBn_SHIFT)) & FTFE_FCCOB8_CCOBn_MASK)
3732
3733/*! @name FPROT3 - Program Flash Protection Registers */
3734#define FTFE_FPROT3_PROT_MASK (0xFFU)
3735#define FTFE_FPROT3_PROT_SHIFT (0U)
3736#define FTFE_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FPROT3_PROT_SHIFT)) & FTFE_FPROT3_PROT_MASK)
3737
3738/*! @name FPROT2 - Program Flash Protection Registers */
3739#define FTFE_FPROT2_PROT_MASK (0xFFU)
3740#define FTFE_FPROT2_PROT_SHIFT (0U)
3741#define FTFE_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FPROT2_PROT_SHIFT)) & FTFE_FPROT2_PROT_MASK)
3742
3743/*! @name FPROT1 - Program Flash Protection Registers */
3744#define FTFE_FPROT1_PROT_MASK (0xFFU)
3745#define FTFE_FPROT1_PROT_SHIFT (0U)
3746#define FTFE_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FPROT1_PROT_SHIFT)) & FTFE_FPROT1_PROT_MASK)
3747
3748/*! @name FPROT0 - Program Flash Protection Registers */
3749#define FTFE_FPROT0_PROT_MASK (0xFFU)
3750#define FTFE_FPROT0_PROT_SHIFT (0U)
3751#define FTFE_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FPROT0_PROT_SHIFT)) & FTFE_FPROT0_PROT_MASK)
3752
3753/*! @name FEPROT - EEPROM Protection Register */
3754#define FTFE_FEPROT_EPROT_MASK (0xFFU)
3755#define FTFE_FEPROT_EPROT_SHIFT (0U)
3756#define FTFE_FEPROT_EPROT(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FEPROT_EPROT_SHIFT)) & FTFE_FEPROT_EPROT_MASK)
3757
3758/*! @name FDPROT - Data Flash Protection Register */
3759#define FTFE_FDPROT_DPROT_MASK (0xFFU)
3760#define FTFE_FDPROT_DPROT_SHIFT (0U)
3761#define FTFE_FDPROT_DPROT(x) (((uint8_t)(((uint8_t)(x)) << FTFE_FDPROT_DPROT_SHIFT)) & FTFE_FDPROT_DPROT_MASK)
3762
3763
3764/*!
3765 * @}
3766 */ /* end of group FTFE_Register_Masks */
3767
3768
3769/* FTFE - Peripheral instance base addresses */
3770/** Peripheral FTFE base address */
3771#define FTFE_BASE (0x40020000u)
3772/** Peripheral FTFE base pointer */
3773#define FTFE ((FTFE_TypeDef *)FTFE_BASE)
3774/** Array initializer of FTFE peripheral base addresses */
3775#define FTFE_BASE_ADDRS { FTFE_BASE }
3776/** Array initializer of FTFE peripheral base pointers */
3777#define FTFE_BASE_PTRS { FTFE }
3778/** Interrupt vectors for the FTFE peripheral type */
3779#define FTFE_COMMAND_COMPLETE_IRQS { FTFE_IRQn }
3780#define FTFE_READ_COLLISION_IRQS { Read_Collision_IRQn }
3781
3782/*!
3783 * @}
3784 */ /* end of group FTFE_Peripheral_Access_Layer */
3785
3786
3787/* ----------------------------------------------------------------------------
3788 -- FTM Peripheral Access Layer
3789 ---------------------------------------------------------------------------- */
3790
3791/*!
3792 * @addtogroup FTM_Peripheral_Access_Layer FTM Peripheral Access Layer
3793 * @{
3794 */
3795
3796/** FTM - Register Layout Typedef */
3797typedef struct {
3798 __IO uint32_t SC; /**< Status And Control, offset: 0x0 */
3799 __IO uint32_t CNT; /**< Counter, offset: 0x4 */
3800 __IO uint32_t MOD; /**< Modulo, offset: 0x8 */
3801 struct { /* offset: 0xC, array step: 0x8 */
3802 __IO uint32_t CnSC; /**< Channel (n) Status And Control, array offset: 0xC, array step: 0x8 */
3803 __IO uint32_t CnV; /**< Channel (n) Value, array offset: 0x10, array step: 0x8 */
3804 } CONTROLS[8];
3805 __IO uint32_t CNTIN; /**< Counter Initial Value, offset: 0x4C */
3806 __IO uint32_t STATUS; /**< Capture And Compare Status, offset: 0x50 */
3807 __IO uint32_t MODE; /**< Features Mode Selection, offset: 0x54 */
3808 __IO uint32_t SYNC; /**< Synchronization, offset: 0x58 */
3809 __IO uint32_t OUTINIT; /**< Initial State For Channels Output, offset: 0x5C */
3810 __IO uint32_t OUTMASK; /**< Output Mask, offset: 0x60 */
3811 __IO uint32_t COMBINE; /**< Function For Linked Channels, offset: 0x64 */
3812 __IO uint32_t DEADTIME; /**< Deadtime Insertion Control, offset: 0x68 */
3813 __IO uint32_t EXTTRIG; /**< FTM External Trigger, offset: 0x6C */
3814 __IO uint32_t POL; /**< Channels Polarity, offset: 0x70 */
3815 __IO uint32_t FMS; /**< Fault Mode Status, offset: 0x74 */
3816 __IO uint32_t FILTER; /**< Input Capture Filter Control, offset: 0x78 */
3817 __IO uint32_t FLTCTRL; /**< Fault Control, offset: 0x7C */
3818 __IO uint32_t QDCTRL; /**< Quadrature Decoder Control And Status, offset: 0x80 */
3819 __IO uint32_t CONF; /**< Configuration, offset: 0x84 */
3820 __IO uint32_t FLTPOL; /**< FTM Fault Input Polarity, offset: 0x88 */
3821 __IO uint32_t SYNCONF; /**< Synchronization Configuration, offset: 0x8C */
3822 __IO uint32_t INVCTRL; /**< FTM Inverting Control, offset: 0x90 */
3823 __IO uint32_t SWOCTRL; /**< FTM Software Output Control, offset: 0x94 */
3824 __IO uint32_t PWMLOAD; /**< FTM PWM Load, offset: 0x98 */
3825} FTM_TypeDef;
3826
3827/* ----------------------------------------------------------------------------
3828 -- FTM Register Masks
3829 ---------------------------------------------------------------------------- */
3830
3831/*!
3832 * @addtogroup FTM_Register_Masks FTM Register Masks
3833 * @{
3834 */
3835
3836/*! @name SC - Status And Control */
3837#define FTM_SC_PS_MASK (0x7U)
3838#define FTM_SC_PS_SHIFT (0U)
3839#define FTM_SC_PS(x) (((uint32_t)(((uint32_t)(x)) << FTM_SC_PS_SHIFT)) & FTM_SC_PS_MASK)
3840#define FTM_SC_CLKS_MASK (0x18U)
3841#define FTM_SC_CLKS_SHIFT (3U)
3842#define FTM_SC_CLKS(x) (((uint32_t)(((uint32_t)(x)) << FTM_SC_CLKS_SHIFT)) & FTM_SC_CLKS_MASK)
3843#define FTM_SC_CPWMS (0x20U)
3844#define FTM_SC_TOIE (0x40U)
3845#define FTM_SC_TOF (0x80U)
3846
3847/*! @name CNT - Counter */
3848#define FTM_CNT_COUNT_MASK (0xFFFFU)
3849#define FTM_CNT_COUNT_SHIFT (0U)
3850#define FTM_CNT_COUNT(x) (((uint32_t)(((uint32_t)(x)) << FTM_CNT_COUNT_SHIFT)) & FTM_CNT_COUNT_MASK)
3851
3852/*! @name MOD - Modulo */
3853#define FTM_MOD_MOD_MASK (0xFFFFU)
3854#define FTM_MOD_MOD_SHIFT (0U)
3855#define FTM_MOD_MOD(x) (((uint32_t)(((uint32_t)(x)) << FTM_MOD_MOD_SHIFT)) & FTM_MOD_MOD_MASK)
3856
3857/*! @name CnSC - Channel (n) Status And Control */
3858#define FTM_CnSC_DMA (0x1U)
3859#define FTM_CnSC_ELSA (0x4U)
3860#define FTM_CnSC_ELSB (0x8U)
3861#define FTM_CnSC_MSA (0x10U)
3862#define FTM_CnSC_MSB (0x20U)
3863#define FTM_CnSC_CHIE (0x40U)
3864#define FTM_CnSC_CHF (0x80U)
3865
3866/* The count of FTM_CnSC */
3867#define FTM_CnSC_COUNT (8U)
3868
3869/*! @name CnV - Channel (n) Value */
3870#define FTM_CnV_VAL_MASK (0xFFFFU)
3871#define FTM_CnV_VAL_SHIFT (0U)
3872#define FTM_CnV_VAL(x) (((uint32_t)(((uint32_t)(x)) << FTM_CnV_VAL_SHIFT)) & FTM_CnV_VAL_MASK)
3873
3874/* The count of FTM_CnV */
3875#define FTM_CnV_COUNT (8U)
3876
3877/*! @name CNTIN - Counter Initial Value */
3878#define FTM_CNTIN_INIT_MASK (0xFFFFU)
3879#define FTM_CNTIN_INIT_SHIFT (0U)
3880#define FTM_CNTIN_INIT(x) (((uint32_t)(((uint32_t)(x)) << FTM_CNTIN_INIT_SHIFT)) & FTM_CNTIN_INIT_MASK)
3881
3882/*! @name STATUS - Capture And Compare Status */
3883#define FTM_STATUS_CH0F (0x1U)
3884#define FTM_STATUS_CH1F (0x2U)
3885#define FTM_STATUS_CH2F (0x4U)
3886#define FTM_STATUS_CH3F (0x8U)
3887#define FTM_STATUS_CH4F (0x10U)
3888#define FTM_STATUS_CH5F (0x20U)
3889#define FTM_STATUS_CH6F (0x40U)
3890#define FTM_STATUS_CH7F (0x80U)
3891
3892/*! @name MODE - Features Mode Selection */
3893#define FTM_MODE_FTMEN (0x1U)
3894#define FTM_MODE_INIT (0x2U)
3895#define FTM_MODE_WPDIS (0x4U)
3896#define FTM_MODE_PWMSYNC (0x8U)
3897#define FTM_MODE_CAPTEST (0x10U)
3898#define FTM_MODE_FAULTM_MASK (0x60U)
3899#define FTM_MODE_FAULTM_SHIFT (5U)
3900#define FTM_MODE_FAULTM(x) (((uint32_t)(((uint32_t)(x)) << FTM_MODE_FAULTM_SHIFT)) & FTM_MODE_FAULTM_MASK)
3901#define FTM_MODE_FAULTIE (0x80U)
3902
3903/*! @name SYNC - Synchronization */
3904#define FTM_SYNC_CNTMIN (0x1U)
3905#define FTM_SYNC_CNTMAX (0x2U)
3906#define FTM_SYNC_REINIT (0x4U)
3907#define FTM_SYNC_SYNCHOM (0x8U)
3908#define FTM_SYNC_TRIG0 (0x10U)
3909#define FTM_SYNC_TRIG1 (0x20U)
3910#define FTM_SYNC_TRIG2 (0x40U)
3911#define FTM_SYNC_SWSYNC (0x80U)
3912
3913/*! @name OUTINIT - Initial State For Channels Output */
3914#define FTM_OUTINIT_CH0OI (0x1U)
3915#define FTM_OUTINIT_CH1OI (0x2U)
3916#define FTM_OUTINIT_CH2OI (0x4U)
3917#define FTM_OUTINIT_CH3OI (0x8U)
3918#define FTM_OUTINIT_CH4OI (0x10U)
3919#define FTM_OUTINIT_CH5OI (0x20U)
3920#define FTM_OUTINIT_CH6OI (0x40U)
3921#define FTM_OUTINIT_CH7OI (0x80U)
3922
3923/*! @name OUTMASK - Output Mask */
3924#define FTM_OUTMASK_CH0OM (0x1U)
3925#define FTM_OUTMASK_CH1OM (0x2U)
3926#define FTM_OUTMASK_CH2OM (0x4U)
3927#define FTM_OUTMASK_CH3OM (0x8U)
3928#define FTM_OUTMASK_CH4OM (0x10U)
3929#define FTM_OUTMASK_CH5OM (0x20U)
3930#define FTM_OUTMASK_CH6OM (0x40U)
3931#define FTM_OUTMASK_CH7OM (0x80U)
3932
3933/*! @name COMBINE - Function For Linked Channels */
3934#define FTM_COMBINE_COMBINE0 (0x1U)
3935#define FTM_COMBINE_COMP0 (0x2U)
3936#define FTM_COMBINE_DECAPEN0 (0x4U)
3937#define FTM_COMBINE_DECAP0 (0x8U)
3938#define FTM_COMBINE_DTEN0 (0x10U)
3939#define FTM_COMBINE_SYNCEN0 (0x20U)
3940#define FTM_COMBINE_FAULTEN0 (0x40U)
3941#define FTM_COMBINE_COMBINE1 (0x100U)
3942#define FTM_COMBINE_COMP1 (0x200U)
3943#define FTM_COMBINE_DECAPEN1 (0x400U)
3944#define FTM_COMBINE_DECAP1 (0x800U)
3945#define FTM_COMBINE_DTEN1 (0x1000U)
3946#define FTM_COMBINE_SYNCEN1 (0x2000U)
3947#define FTM_COMBINE_FAULTEN1 (0x4000U)
3948#define FTM_COMBINE_COMBINE2 (0x10000U)
3949#define FTM_COMBINE_COMP2 (0x20000U)
3950#define FTM_COMBINE_DECAPEN2 (0x40000U)
3951#define FTM_COMBINE_DECAP2 (0x80000U)
3952#define FTM_COMBINE_DTEN2 (0x100000U)
3953#define FTM_COMBINE_SYNCEN2 (0x200000U)
3954#define FTM_COMBINE_FAULTEN2 (0x400000U)
3955#define FTM_COMBINE_COMBINE3 (0x1000000U)
3956#define FTM_COMBINE_COMP3 (0x2000000U)
3957#define FTM_COMBINE_DECAPEN3 (0x4000000U)
3958#define FTM_COMBINE_DECAP3 (0x8000000U)
3959#define FTM_COMBINE_DTEN3 (0x10000000U)
3960#define FTM_COMBINE_SYNCEN3 (0x20000000U)
3961#define FTM_COMBINE_FAULTEN3 (0x40000000U)
3962
3963/*! @name DEADTIME - Deadtime Insertion Control */
3964#define FTM_DEADTIME_DTVAL_MASK (0x3FU)
3965#define FTM_DEADTIME_DTVAL_SHIFT (0U)
3966#define FTM_DEADTIME_DTVAL(x) (((uint32_t)(((uint32_t)(x)) << FTM_DEADTIME_DTVAL_SHIFT)) & FTM_DEADTIME_DTVAL_MASK)
3967#define FTM_DEADTIME_DTPS_MASK (0xC0U)
3968#define FTM_DEADTIME_DTPS_SHIFT (6U)
3969#define FTM_DEADTIME_DTPS(x) (((uint32_t)(((uint32_t)(x)) << FTM_DEADTIME_DTPS_SHIFT)) & FTM_DEADTIME_DTPS_MASK)
3970
3971/*! @name EXTTRIG - FTM External Trigger */
3972#define FTM_EXTTRIG_CH2TRIG (0x1U)
3973#define FTM_EXTTRIG_CH3TRIG (0x2U)
3974#define FTM_EXTTRIG_CH4TRIG (0x4U)
3975#define FTM_EXTTRIG_CH5TRIG (0x8U)
3976#define FTM_EXTTRIG_CH0TRIG (0x10U)
3977#define FTM_EXTTRIG_CH1TRIG (0x20U)
3978#define FTM_EXTTRIG_INITTRIGEN (0x40U)
3979#define FTM_EXTTRIG_TRIGF (0x80U)
3980
3981/*! @name POL - Channels Polarity */
3982#define FTM_POL_POL0 (0x1U)
3983#define FTM_POL_POL1 (0x2U)
3984#define FTM_POL_POL2 (0x4U)
3985#define FTM_POL_POL3 (0x8U)
3986#define FTM_POL_POL4 (0x10U)
3987#define FTM_POL_POL5 (0x20U)
3988#define FTM_POL_POL6 (0x40U)
3989#define FTM_POL_POL7 (0x80U)
3990
3991/*! @name FMS - Fault Mode Status */
3992#define FTM_FMS_FAULTF0 (0x1U)
3993#define FTM_FMS_FAULTF1 (0x2U)
3994#define FTM_FMS_FAULTF2 (0x4U)
3995#define FTM_FMS_FAULTF3 (0x8U)
3996#define FTM_FMS_FAULTIN (0x20U)
3997#define FTM_FMS_WPEN (0x40U)
3998#define FTM_FMS_FAULTF (0x80U)
3999
4000/*! @name FILTER - Input Capture Filter Control */
4001#define FTM_FILTER_CH0FVAL_MASK (0xFU)
4002#define FTM_FILTER_CH0FVAL_SHIFT (0U)
4003#define FTM_FILTER_CH0FVAL(x) (((uint32_t)(((uint32_t)(x)) << FTM_FILTER_CH0FVAL_SHIFT)) & FTM_FILTER_CH0FVAL_MASK)
4004#define FTM_FILTER_CH1FVAL_MASK (0xF0U)
4005#define FTM_FILTER_CH1FVAL_SHIFT (4U)
4006#define FTM_FILTER_CH1FVAL(x) (((uint32_t)(((uint32_t)(x)) << FTM_FILTER_CH1FVAL_SHIFT)) & FTM_FILTER_CH1FVAL_MASK)
4007#define FTM_FILTER_CH2FVAL_MASK (0xF00U)
4008#define FTM_FILTER_CH2FVAL_SHIFT (8U)
4009#define FTM_FILTER_CH2FVAL(x) (((uint32_t)(((uint32_t)(x)) << FTM_FILTER_CH2FVAL_SHIFT)) & FTM_FILTER_CH2FVAL_MASK)
4010#define FTM_FILTER_CH3FVAL_MASK (0xF000U)
4011#define FTM_FILTER_CH3FVAL_SHIFT (12U)
4012#define FTM_FILTER_CH3FVAL(x) (((uint32_t)(((uint32_t)(x)) << FTM_FILTER_CH3FVAL_SHIFT)) & FTM_FILTER_CH3FVAL_MASK)
4013
4014/*! @name FLTCTRL - Fault Control */
4015#define FTM_FLTCTRL_FAULT0EN (0x1U)
4016#define FTM_FLTCTRL_FAULT1EN (0x2U)
4017#define FTM_FLTCTRL_FAULT2EN (0x4U)
4018#define FTM_FLTCTRL_FAULT3EN (0x8U)
4019#define FTM_FLTCTRL_FFLTR0EN (0x10U)
4020#define FTM_FLTCTRL_FFLTR1EN (0x20U)
4021#define FTM_FLTCTRL_FFLTR2EN (0x40U)
4022#define FTM_FLTCTRL_FFLTR3EN (0x80U)
4023#define FTM_FLTCTRL_FFVAL_MASK (0xF00U)
4024#define FTM_FLTCTRL_FFVAL_SHIFT (8U)
4025#define FTM_FLTCTRL_FFVAL(x) (((uint32_t)(((uint32_t)(x)) << FTM_FLTCTRL_FFVAL_SHIFT)) & FTM_FLTCTRL_FFVAL_MASK)
4026
4027/*! @name QDCTRL - Quadrature Decoder Control And Status */
4028#define FTM_QDCTRL_QUADEN (0x1U)
4029#define FTM_QDCTRL_TOFDIR (0x2U)
4030#define FTM_QDCTRL_QUADIR (0x4U)
4031#define FTM_QDCTRL_QUADMODE (0x8U)
4032#define FTM_QDCTRL_PHBPOL (0x10U)
4033#define FTM_QDCTRL_PHAPOL (0x20U)
4034#define FTM_QDCTRL_PHBFLTREN (0x40U)
4035#define FTM_QDCTRL_PHAFLTREN (0x80U)
4036
4037/*! @name CONF - Configuration */
4038#define FTM_CONF_NUMTOF_MASK (0x1FU)
4039#define FTM_CONF_NUMTOF_SHIFT (0U)
4040#define FTM_CONF_NUMTOF(x) (((uint32_t)(((uint32_t)(x)) << FTM_CONF_NUMTOF_SHIFT)) & FTM_CONF_NUMTOF_MASK)
4041#define FTM_CONF_BDMMODE_MASK (0xC0U)
4042#define FTM_CONF_BDMMODE_SHIFT (6U)
4043#define FTM_CONF_BDMMODE(x) (((uint32_t)(((uint32_t)(x)) << FTM_CONF_BDMMODE_SHIFT)) & FTM_CONF_BDMMODE_MASK)
4044#define FTM_CONF_GTBEEN (0x200U)
4045#define FTM_CONF_GTBEOUT (0x400U)
4046
4047/*! @name FLTPOL - FTM Fault Input Polarity */
4048#define FTM_FLTPOL_FLT0POL (0x1U)
4049#define FTM_FLTPOL_FLT1POL (0x2U)
4050#define FTM_FLTPOL_FLT2POL (0x4U)
4051#define FTM_FLTPOL_FLT3POL (0x8U)
4052
4053/*! @name SYNCONF - Synchronization Configuration */
4054#define FTM_SYNCONF_HWTRIGMODE (0x1U)
4055#define FTM_SYNCONF_CNTINC (0x4U)
4056#define FTM_SYNCONF_INVC (0x10U)
4057#define FTM_SYNCONF_SWOC (0x20U)
4058#define FTM_SYNCONF_SYNCMODE (0x80U)
4059#define FTM_SYNCONF_SWRSTCNT (0x100U)
4060#define FTM_SYNCONF_SWWRBUF (0x200U)
4061#define FTM_SYNCONF_SWOM (0x400U)
4062#define FTM_SYNCONF_SWINVC (0x800U)
4063#define FTM_SYNCONF_SWSOC (0x1000U)
4064#define FTM_SYNCONF_HWRSTCNT (0x10000U)
4065#define FTM_SYNCONF_HWWRBUF (0x20000U)
4066#define FTM_SYNCONF_HWOM (0x40000U)
4067#define FTM_SYNCONF_HWINVC (0x80000U)
4068#define FTM_SYNCONF_HWSOC (0x100000U)
4069
4070/*! @name INVCTRL - FTM Inverting Control */
4071#define FTM_INVCTRL_INV0EN (0x1U)
4072#define FTM_INVCTRL_INV1EN (0x2U)
4073#define FTM_INVCTRL_INV2EN (0x4U)
4074#define FTM_INVCTRL_INV3EN (0x8U)
4075
4076/*! @name SWOCTRL - FTM Software Output Control */
4077#define FTM_SWOCTRL_CH0OC (0x1U)
4078#define FTM_SWOCTRL_CH1OC (0x2U)
4079#define FTM_SWOCTRL_CH2OC (0x4U)
4080#define FTM_SWOCTRL_CH3OC (0x8U)
4081#define FTM_SWOCTRL_CH4OC (0x10U)
4082#define FTM_SWOCTRL_CH5OC (0x20U)
4083#define FTM_SWOCTRL_CH6OC (0x40U)
4084#define FTM_SWOCTRL_CH7OC (0x80U)
4085#define FTM_SWOCTRL_CH0OCV (0x100U)
4086#define FTM_SWOCTRL_CH1OCV (0x200U)
4087#define FTM_SWOCTRL_CH2OCV (0x400U)
4088#define FTM_SWOCTRL_CH3OCV (0x800U)
4089#define FTM_SWOCTRL_CH4OCV (0x1000U)
4090#define FTM_SWOCTRL_CH5OCV (0x2000U)
4091#define FTM_SWOCTRL_CH6OCV (0x4000U)
4092#define FTM_SWOCTRL_CH7OCV (0x8000U)
4093
4094/*! @name PWMLOAD - FTM PWM Load */
4095#define FTM_PWMLOAD_CH0SEL (0x1U)
4096#define FTM_PWMLOAD_CH1SEL (0x2U)
4097#define FTM_PWMLOAD_CH2SEL (0x4U)
4098#define FTM_PWMLOAD_CH3SEL (0x8U)
4099#define FTM_PWMLOAD_CH4SEL (0x10U)
4100#define FTM_PWMLOAD_CH5SEL (0x20U)
4101#define FTM_PWMLOAD_CH6SEL (0x40U)
4102#define FTM_PWMLOAD_CH7SEL (0x80U)
4103#define FTM_PWMLOAD_LDOK (0x200U)
4104
4105
4106/*!
4107 * @}
4108 */ /* end of group FTM_Register_Masks */
4109
4110
4111/* FTM - Peripheral instance base addresses */
4112/** Peripheral FTM0 base address */
4113#define FTM0_BASE (0x40038000u)
4114/** Peripheral FTM0 base pointer */
4115#define FTM0 ((FTM_TypeDef *)FTM0_BASE)
4116/** Peripheral FTM1 base address */
4117#define FTM1_BASE (0x40039000u)
4118/** Peripheral FTM1 base pointer */
4119#define FTM1 ((FTM_TypeDef *)FTM1_BASE)
4120/** Peripheral FTM2 base address */
4121#define FTM2_BASE (0x4003A000u)
4122/** Peripheral FTM2 base pointer */
4123#define FTM2 ((FTM_TypeDef *)FTM2_BASE)
4124/** Peripheral FTM3 base address */
4125#define FTM3_BASE (0x400B9000u)
4126/** Peripheral FTM3 base pointer */
4127#define FTM3 ((FTM_TypeDef *)FTM3_BASE)
4128/** Array initializer of FTM peripheral base addresses */
4129#define FTM_BASE_ADDRS { FTM0_BASE, FTM1_BASE, FTM2_BASE, FTM3_BASE }
4130/** Array initializer of FTM peripheral base pointers */
4131#define FTM_BASE_PTRS { FTM0, FTM1, FTM2, FTM3 }
4132/** Interrupt vectors for the FTM peripheral type */
4133#define FTM_IRQS { FTM0_IRQn, FTM1_IRQn, FTM2_IRQn, FTM3_IRQn }
4134
4135/*!
4136 * @}
4137 */ /* end of group FTM_Peripheral_Access_Layer */
4138
4139
4140/* ----------------------------------------------------------------------------
4141 -- GPIO Peripheral Access Layer
4142 ---------------------------------------------------------------------------- */
4143
4144/*!
4145 * @addtogroup GPIO_Peripheral_Access_Layer GPIO Peripheral Access Layer
4146 * @{
4147 */
4148
4149/** GPIO - Register Layout Typedef */
4150typedef struct {
4151 __IO uint32_t PDOR; /**< Port Data Output Register, offset: 0x0 */
4152 __O uint32_t PSOR; /**< Port Set Output Register, offset: 0x4 */
4153 __O uint32_t PCOR; /**< Port Clear Output Register, offset: 0x8 */
4154 __O uint32_t PTOR; /**< Port Toggle Output Register, offset: 0xC */
4155 __I uint32_t PDIR; /**< Port Data Input Register, offset: 0x10 */
4156 __IO uint32_t PDDR; /**< Port Data Direction Register, offset: 0x14 */
4157} GPIO_TypeDef;
4158
4159/* GPIO - Peripheral instance base addresses */
4160/** Peripheral GPIOA base address */
4161#define GPIOA_BASE (0x400FF000u)
4162/** Peripheral GPIOA base pointer */
4163#define GPIOA ((GPIO_TypeDef *)GPIOA_BASE)
4164/** Peripheral GPIOB base address */
4165#define GPIOB_BASE (0x400FF040u)
4166/** Peripheral GPIOB base pointer */
4167#define GPIOB ((GPIO_TypeDef *)GPIOB_BASE)
4168/** Peripheral GPIOC base address */
4169#define GPIOC_BASE (0x400FF080u)
4170/** Peripheral GPIOC base pointer */
4171#define GPIOC ((GPIO_TypeDef *)GPIOC_BASE)
4172/** Peripheral GPIOD base address */
4173#define GPIOD_BASE (0x400FF0C0u)
4174/** Peripheral GPIOD base pointer */
4175#define GPIOD ((GPIO_TypeDef *)GPIOD_BASE)
4176/** Peripheral GPIOE base address */
4177#define GPIOE_BASE (0x400FF100u)
4178/** Peripheral GPIOE base pointer */
4179#define GPIOE ((GPIO_TypeDef *)GPIOE_BASE)
4180/** Array initializer of GPIO peripheral base addresses */
4181#define GPIO_BASE_ADDRS { GPIOA_BASE, GPIOB_BASE, GPIOC_BASE, GPIOD_BASE, GPIOE_BASE }
4182/** Array initializer of GPIO peripheral base pointers */
4183#define GPIO_BASE_PTRS { GPIOA, GPIOB, GPIOC, GPIOD, GPIOE }
4184
4185/*!
4186 * @}
4187 */ /* end of group GPIO_Peripheral_Access_Layer */
4188
4189
4190/* ----------------------------------------------------------------------------
4191 -- I2C Peripheral Access Layer
4192 ---------------------------------------------------------------------------- */
4193
4194/*!
4195 * @addtogroup I2C_Peripheral_Access_Layer I2C Peripheral Access Layer
4196 * @{
4197 */
4198
4199/** I2C - Register Layout Typedef */
4200typedef struct {
4201 __IO uint8_t A1; /**< I2C Address Register 1, offset: 0x0 */
4202 __IO uint8_t F; /**< I2C Frequency Divider register, offset: 0x1 */
4203 __IO uint8_t C1; /**< I2C Control Register 1, offset: 0x2 */
4204 __IO uint8_t S; /**< I2C Status register, offset: 0x3 */
4205 __IO uint8_t D; /**< I2C Data I/O register, offset: 0x4 */
4206 __IO uint8_t C2; /**< I2C Control Register 2, offset: 0x5 */
4207 __IO uint8_t FLT; /**< I2C Programmable Input Glitch Filter register, offset: 0x6 */
4208 __IO uint8_t RA; /**< I2C Range Address register, offset: 0x7 */
4209 __IO uint8_t SMB; /**< I2C SMBus Control and Status register, offset: 0x8 */
4210 __IO uint8_t A2; /**< I2C Address Register 2, offset: 0x9 */
4211 __IO uint8_t SLTH; /**< I2C SCL Low Timeout Register High, offset: 0xA */
4212 __IO uint8_t SLTL; /**< I2C SCL Low Timeout Register Low, offset: 0xB */
4213} I2C_TypeDef;
4214
4215/* ----------------------------------------------------------------------------
4216 -- I2C Register Masks
4217 ---------------------------------------------------------------------------- */
4218
4219/*!
4220 * @addtogroup I2C_Register_Masks I2C Register Masks
4221 * @{
4222 */
4223
4224/*! @name A1 - I2C Address Register 1 */
4225#define I2C_A1_AD_MASK (0xFEU)
4226#define I2C_A1_AD_SHIFT (1U)
4227#define I2C_A1_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_A1_AD_SHIFT)) & I2C_A1_AD_MASK)
4228
4229/*! @name F - I2C Frequency Divider register */
4230#define I2C_F_ICR_MASK (0x3FU)
4231#define I2C_F_ICR_SHIFT (0U)
4232#define I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_ICR_SHIFT)) & I2C_F_ICR_MASK)
4233#define I2C_F_MULT_MASK (0xC0U)
4234#define I2C_F_MULT_SHIFT (6U)
4235#define I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK)
4236
4237/*! @name C1 - I2C Control Register 1 */
4238#define I2C_C1_DMAEN (0x1U)
4239#define I2C_C1_WUEN (0x2U)
4240#define I2C_C1_RSTA (0x4U)
4241#define I2C_C1_TXAK (0x8U)
4242#define I2C_C1_TX (0x10U)
4243#define I2C_C1_MST (0x20U)
4244#define I2C_C1_IICIE (0x40U)
4245#define I2C_C1_IICEN (0x80U)
4246
4247/*! @name S - I2C Status register */
4248#define I2C_S_RXAK (0x1U)
4249#define I2C_S_IICIF (0x2U)
4250#define I2C_S_SRW (0x4U)
4251#define I2C_S_RAM (0x8U)
4252#define I2C_S_ARBL (0x10U)
4253#define I2C_S_BUSY (0x20U)
4254#define I2C_S_IAAS (0x40U)
4255#define I2C_S_TCF (0x80U)
4256
4257/*! @name C2 - I2C Control Register 2 */
4258#define I2C_C2_AD_MASK (0x7U)
4259#define I2C_C2_AD_SHIFT (0U)
4260#define I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_AD_SHIFT)) & I2C_C2_AD_MASK)
4261#define I2C_C2_RMEN (0x8U)
4262#define I2C_C2_SBRC (0x10U)
4263#define I2C_C2_HDRS (0x20U)
4264#define I2C_C2_ADEXT (0x40U)
4265#define I2C_C2_GCAEN (0x80U)
4266
4267/*! @name FLT - I2C Programmable Input Glitch Filter register */
4268#define I2C_FLT_FLT_MASK (0xFU)
4269#define I2C_FLT_FLT_SHIFT (0U)
4270#define I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK)
4271#define I2C_FLT_STARTF (0x10U)
4272#define I2C_FLT_SSIE (0x20U)
4273#define I2C_FLT_STOPF (0x40U)
4274#define I2C_FLT_SHEN (0x80U)
4275
4276/*! @name RA - I2C Range Address register */
4277#define I2C_RA_RAD_MASK (0xFEU)
4278#define I2C_RA_RAD_SHIFT (1U)
4279#define I2C_RA_RAD(x) (((uint8_t)(((uint8_t)(x)) << I2C_RA_RAD_SHIFT)) & I2C_RA_RAD_MASK)
4280
4281/*! @name SMB - I2C SMBus Control and Status register */
4282#define I2C_SMB_SHTF2IE (0x1U)
4283#define I2C_SMB_SHTF2 (0x2U)
4284#define I2C_SMB_SHTF1 (0x4U)
4285#define I2C_SMB_SLTF (0x8U)
4286#define I2C_SMB_TCKSEL (0x10U)
4287#define I2C_SMB_SIICAEN (0x20U)
4288#define I2C_SMB_ALERTEN (0x40U)
4289#define I2C_SMB_FACK (0x80U)
4290
4291/*! @name A2 - I2C Address Register 2 */
4292#define I2C_A2_SAD_MASK (0xFEU)
4293#define I2C_A2_SAD_SHIFT (1U)
4294#define I2C_A2_SAD(x) (((uint8_t)(((uint8_t)(x)) << I2C_A2_SAD_SHIFT)) & I2C_A2_SAD_MASK)
4295
4296/*!
4297 * @}
4298 */ /* end of group I2C_Register_Masks */
4299
4300
4301/* I2C - Peripheral instance base addresses */
4302/** Peripheral I2C0 base address */
4303#define I2C0_BASE (0x40066000u)
4304/** Peripheral I2C0 base pointer */
4305#define I2C0 ((I2C_TypeDef *)I2C0_BASE)
4306/** Peripheral I2C1 base address */
4307#define I2C1_BASE (0x40067000u)
4308/** Peripheral I2C1 base pointer */
4309#define I2C1 ((I2C_TypeDef *)I2C1_BASE)
4310/** Peripheral I2C2 base address */
4311#define I2C2_BASE (0x400E6000u)
4312/** Peripheral I2C2 base pointer */
4313#define I2C2 ((I2C_TypeDef *)I2C2_BASE)
4314/** Array initializer of I2C peripheral base addresses */
4315#define I2C_BASE_ADDRS { I2C0_BASE, I2C1_BASE, I2C2_BASE }
4316/** Array initializer of I2C peripheral base pointers */
4317#define I2C_BASE_PTRS { I2C0, I2C1, I2C2 }
4318/** Interrupt vectors for the I2C peripheral type */
4319#define I2C_IRQS { I2C0_IRQn, I2C1_IRQn, I2C2_IRQn }
4320
4321/*!
4322 * @}
4323 */ /* end of group I2C_Peripheral_Access_Layer */
4324
4325
4326/* ----------------------------------------------------------------------------
4327 -- I2S Peripheral Access Layer
4328 ---------------------------------------------------------------------------- */
4329
4330/*!
4331 * @addtogroup I2S_Peripheral_Access_Layer I2S Peripheral Access Layer
4332 * @{
4333 */
4334
4335/** I2S - Register Layout Typedef */
4336typedef struct {
4337 __IO uint32_t TCSR; /**< SAI Transmit Control Register, offset: 0x0 */
4338 __IO uint32_t TCR1; /**< SAI Transmit Configuration 1 Register, offset: 0x4 */
4339 __IO uint32_t TCR2; /**< SAI Transmit Configuration 2 Register, offset: 0x8 */
4340 __IO uint32_t TCR3; /**< SAI Transmit Configuration 3 Register, offset: 0xC */
4341 __IO uint32_t TCR4; /**< SAI Transmit Configuration 4 Register, offset: 0x10 */
4342 __IO uint32_t TCR5; /**< SAI Transmit Configuration 5 Register, offset: 0x14 */
4343 uint8_t RESERVED_0[8];
4344 __O uint32_t TDR[2]; /**< SAI Transmit Data Register, array offset: 0x20, array step: 0x4 */
4345 uint8_t RESERVED_1[24];
4346 __I uint32_t TFR[2]; /**< SAI Transmit FIFO Register, array offset: 0x40, array step: 0x4 */
4347 uint8_t RESERVED_2[24];
4348 __IO uint32_t TMR; /**< SAI Transmit Mask Register, offset: 0x60 */
4349 uint8_t RESERVED_3[28];
4350 __IO uint32_t RCSR; /**< SAI Receive Control Register, offset: 0x80 */
4351 __IO uint32_t RCR1; /**< SAI Receive Configuration 1 Register, offset: 0x84 */
4352 __IO uint32_t RCR2; /**< SAI Receive Configuration 2 Register, offset: 0x88 */
4353 __IO uint32_t RCR3; /**< SAI Receive Configuration 3 Register, offset: 0x8C */
4354 __IO uint32_t RCR4; /**< SAI Receive Configuration 4 Register, offset: 0x90 */
4355 __IO uint32_t RCR5; /**< SAI Receive Configuration 5 Register, offset: 0x94 */
4356 uint8_t RESERVED_4[8];
4357 __I uint32_t RDR[2]; /**< SAI Receive Data Register, array offset: 0xA0, array step: 0x4 */
4358 uint8_t RESERVED_5[24];
4359 __I uint32_t RFR[2]; /**< SAI Receive FIFO Register, array offset: 0xC0, array step: 0x4 */
4360 uint8_t RESERVED_6[24];
4361 __IO uint32_t RMR; /**< SAI Receive Mask Register, offset: 0xE0 */
4362 uint8_t RESERVED_7[28];
4363 __IO uint32_t MCR; /**< SAI MCLK Control Register, offset: 0x100 */
4364 __IO uint32_t MDR; /**< SAI MCLK Divide Register, offset: 0x104 */
4365} I2S_TypeDef;
4366
4367/* ----------------------------------------------------------------------------
4368 -- I2S Register Masks
4369 ---------------------------------------------------------------------------- */
4370
4371/*!
4372 * @addtogroup I2S_Register_Masks I2S Register Masks
4373 * @{
4374 */
4375
4376/*! @name TCSR - SAI Transmit Control Register */
4377#define I2S_TCSR_FRDE (0x1U)
4378#define I2S_TCSR_FWDE (0x2U)
4379#define I2S_TCSR_FRIE (0x100U)
4380#define I2S_TCSR_FWIE (0x200U)
4381#define I2S_TCSR_FEIE (0x400U)
4382#define I2S_TCSR_SEIE (0x800U)
4383#define I2S_TCSR_WSIE (0x1000U)
4384#define I2S_TCSR_FRF (0x10000U)
4385#define I2S_TCSR_FWF (0x20000U)
4386#define I2S_TCSR_FEF (0x40000U)
4387#define I2S_TCSR_SEF (0x80000U)
4388#define I2S_TCSR_WSF (0x100000U)
4389#define I2S_TCSR_SR (0x1000000U)
4390#define I2S_TCSR_FR (0x2000000U)
4391#define I2S_TCSR_BCE (0x10000000U)
4392#define I2S_TCSR_DBGE (0x20000000U)
4393#define I2S_TCSR_STOPE (0x40000000U)
4394#define I2S_TCSR_TE (0x80000000U)
4395
4396/*! @name TCR1 - SAI Transmit Configuration 1 Register */
4397#define I2S_TCR1_TFW_MASK (0x7U)
4398#define I2S_TCR1_TFW_SHIFT (0U)
4399#define I2S_TCR1_TFW(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR1_TFW_SHIFT)) & I2S_TCR1_TFW_MASK)
4400
4401/*! @name TCR2 - SAI Transmit Configuration 2 Register */
4402#define I2S_TCR2_DIV_MASK (0xFFU)
4403#define I2S_TCR2_DIV_SHIFT (0U)
4404#define I2S_TCR2_DIV(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_DIV_SHIFT)) & I2S_TCR2_DIV_MASK)
4405#define I2S_TCR2_BCD (0x1000000U)
4406#define I2S_TCR2_BCP (0x2000000U)
4407#define I2S_TCR2_MSEL_MASK (0xC000000U)
4408#define I2S_TCR2_MSEL_SHIFT (26U)
4409#define I2S_TCR2_MSEL(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_MSEL_SHIFT)) & I2S_TCR2_MSEL_MASK)
4410#define I2S_TCR2_BCI (0x10000000U)
4411#define I2S_TCR2_BCS (0x20000000U)
4412#define I2S_TCR2_SYNC_MASK (0xC0000000U)
4413#define I2S_TCR2_SYNC_SHIFT (30U)
4414#define I2S_TCR2_SYNC(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_SYNC_SHIFT)) & I2S_TCR2_SYNC_MASK)
4415
4416/*! @name TCR3 - SAI Transmit Configuration 3 Register */
4417#define I2S_TCR3_WDFL_MASK (0x1FU)
4418#define I2S_TCR3_WDFL_SHIFT (0U)
4419#define I2S_TCR3_WDFL(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR3_WDFL_SHIFT)) & I2S_TCR3_WDFL_MASK)
4420#define I2S_TCR3_TCE_MASK (0x30000U)
4421#define I2S_TCR3_TCE_SHIFT (16U)
4422#define I2S_TCR3_TCE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR3_TCE_SHIFT)) & I2S_TCR3_TCE_MASK)
4423
4424/*! @name TCR4 - SAI Transmit Configuration 4 Register */
4425#define I2S_TCR4_FSD (0x1U)
4426#define I2S_TCR4_FSP (0x2U)
4427#define I2S_TCR4_FSE (0x8U)
4428#define I2S_TCR4_MF (0x10U)
4429#define I2S_TCR4_SYWD_MASK (0x1F00U)
4430#define I2S_TCR4_SYWD_SHIFT (8U)
4431#define I2S_TCR4_SYWD(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_SYWD_SHIFT)) & I2S_TCR4_SYWD_MASK)
4432#define I2S_TCR4_FRSZ_MASK (0x1F0000U)
4433#define I2S_TCR4_FRSZ_SHIFT (16U)
4434#define I2S_TCR4_FRSZ(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FRSZ_SHIFT)) & I2S_TCR4_FRSZ_MASK)
4435
4436/*! @name TCR5 - SAI Transmit Configuration 5 Register */
4437#define I2S_TCR5_FBT_MASK (0x1F00U)
4438#define I2S_TCR5_FBT_SHIFT (8U)
4439#define I2S_TCR5_FBT(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_FBT_SHIFT)) & I2S_TCR5_FBT_MASK)
4440#define I2S_TCR5_W0W_MASK (0x1F0000U)
4441#define I2S_TCR5_W0W_SHIFT (16U)
4442#define I2S_TCR5_W0W(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_W0W_SHIFT)) & I2S_TCR5_W0W_MASK)
4443#define I2S_TCR5_WNW_MASK (0x1F000000U)
4444#define I2S_TCR5_WNW_SHIFT (24U)
4445#define I2S_TCR5_WNW(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_WNW_SHIFT)) & I2S_TCR5_WNW_MASK)
4446
4447/* The count of I2S_TDR */
4448#define I2S_TDR_COUNT (2U)
4449
4450/*! @name TFR - SAI Transmit FIFO Register */
4451#define I2S_TFR_RFP_MASK (0xFU)
4452#define I2S_TFR_RFP_SHIFT (0U)
4453#define I2S_TFR_RFP(x) (((uint32_t)(((uint32_t)(x)) << I2S_TFR_RFP_SHIFT)) & I2S_TFR_RFP_MASK)
4454#define I2S_TFR_WFP_MASK (0xF0000U)
4455#define I2S_TFR_WFP_SHIFT (16U)
4456#define I2S_TFR_WFP(x) (((uint32_t)(((uint32_t)(x)) << I2S_TFR_WFP_SHIFT)) & I2S_TFR_WFP_MASK)
4457
4458/* The count of I2S_TFR */
4459#define I2S_TFR_COUNT (2U)
4460
4461/*! @name RCSR - SAI Receive Control Register */
4462#define I2S_RCSR_FRDE (0x1U)
4463#define I2S_RCSR_FWDE (0x2U)
4464#define I2S_RCSR_FRIE (0x100U)
4465#define I2S_RCSR_FWIE (0x200U)
4466#define I2S_RCSR_FEIE (0x400U)
4467#define I2S_RCSR_SEIE (0x800U)
4468#define I2S_RCSR_WSIE (0x1000U)
4469#define I2S_RCSR_FRF (0x10000U)
4470#define I2S_RCSR_FWF (0x20000U)
4471#define I2S_RCSR_FEF (0x40000U)
4472#define I2S_RCSR_SEF (0x80000U)
4473#define I2S_RCSR_WSF (0x100000U)
4474#define I2S_RCSR_SR (0x1000000U)
4475#define I2S_RCSR_FR (0x2000000U)
4476#define I2S_RCSR_BCE (0x10000000U)
4477#define I2S_RCSR_DBGE (0x20000000U)
4478#define I2S_RCSR_STOPE (0x40000000U)
4479#define I2S_RCSR_RE (0x80000000U)
4480
4481/*! @name RCR1 - SAI Receive Configuration 1 Register */
4482#define I2S_RCR1_RFW_MASK (0x7U)
4483#define I2S_RCR1_RFW_SHIFT (0U)
4484#define I2S_RCR1_RFW(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR1_RFW_SHIFT)) & I2S_RCR1_RFW_MASK)
4485
4486/*! @name RCR2 - SAI Receive Configuration 2 Register */
4487#define I2S_RCR2_DIV_MASK (0xFFU)
4488#define I2S_RCR2_DIV_SHIFT (0U)
4489#define I2S_RCR2_DIV(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_DIV_SHIFT)) & I2S_RCR2_DIV_MASK)
4490#define I2S_RCR2_BCD (0x1000000U)
4491#define I2S_RCR2_BCP (0x2000000U)
4492#define I2S_RCR2_MSEL_MASK (0xC000000U)
4493#define I2S_RCR2_MSEL_SHIFT (26U)
4494#define I2S_RCR2_MSEL(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_MSEL_SHIFT)) & I2S_RCR2_MSEL_MASK)
4495#define I2S_RCR2_BCI (0x10000000U)
4496#define I2S_RCR2_BCS (0x20000000U)
4497#define I2S_RCR2_SYNC_MASK (0xC0000000U)
4498#define I2S_RCR2_SYNC_SHIFT (30U)
4499#define I2S_RCR2_SYNC(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_SYNC_SHIFT)) & I2S_RCR2_SYNC_MASK)
4500
4501/*! @name RCR3 - SAI Receive Configuration 3 Register */
4502#define I2S_RCR3_WDFL_MASK (0x1FU)
4503#define I2S_RCR3_WDFL_SHIFT (0U)
4504#define I2S_RCR3_WDFL(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR3_WDFL_SHIFT)) & I2S_RCR3_WDFL_MASK)
4505#define I2S_RCR3_RCE_MASK (0x30000U)
4506#define I2S_RCR3_RCE_SHIFT (16U)
4507#define I2S_RCR3_RCE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR3_RCE_SHIFT)) & I2S_RCR3_RCE_MASK)
4508
4509/*! @name RCR4 - SAI Receive Configuration 4 Register */
4510#define I2S_RCR4_FSD (0x1U)
4511#define I2S_RCR4_FSP (0x2U)
4512#define I2S_RCR4_FSE (0x8U)
4513#define I2S_RCR4_MF (0x10U)
4514#define I2S_RCR4_SYWD_MASK (0x1F00U)
4515#define I2S_RCR4_SYWD_SHIFT (8U)
4516#define I2S_RCR4_SYWD(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_SYWD_SHIFT)) & I2S_RCR4_SYWD_MASK)
4517#define I2S_RCR4_FRSZ_MASK (0x1F0000U)
4518#define I2S_RCR4_FRSZ_SHIFT (16U)
4519#define I2S_RCR4_FRSZ(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FRSZ_SHIFT)) & I2S_RCR4_FRSZ_MASK)
4520
4521/*! @name RCR5 - SAI Receive Configuration 5 Register */
4522#define I2S_RCR5_FBT_MASK (0x1F00U)
4523#define I2S_RCR5_FBT_SHIFT (8U)
4524#define I2S_RCR5_FBT(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_FBT_SHIFT)) & I2S_RCR5_FBT_MASK)
4525#define I2S_RCR5_W0W_MASK (0x1F0000U)
4526#define I2S_RCR5_W0W_SHIFT (16U)
4527#define I2S_RCR5_W0W(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_W0W_SHIFT)) & I2S_RCR5_W0W_MASK)
4528#define I2S_RCR5_WNW_MASK (0x1F000000U)
4529#define I2S_RCR5_WNW_SHIFT (24U)
4530#define I2S_RCR5_WNW(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_WNW_SHIFT)) & I2S_RCR5_WNW_MASK)
4531
4532/* The count of I2S_RDR */
4533#define I2S_RDR_COUNT (2U)
4534
4535/*! @name RFR - SAI Receive FIFO Register */
4536#define I2S_RFR_RFP_MASK (0xFU)
4537#define I2S_RFR_RFP_SHIFT (0U)
4538#define I2S_RFR_RFP(x) (((uint32_t)(((uint32_t)(x)) << I2S_RFR_RFP_SHIFT)) & I2S_RFR_RFP_MASK)
4539#define I2S_RFR_WFP_MASK (0xF0000U)
4540#define I2S_RFR_WFP_SHIFT (16U)
4541#define I2S_RFR_WFP(x) (((uint32_t)(((uint32_t)(x)) << I2S_RFR_WFP_SHIFT)) & I2S_RFR_WFP_MASK)
4542
4543/* The count of I2S_RFR */
4544#define I2S_RFR_COUNT (2U)
4545
4546/*! @name MCR - SAI MCLK Control Register */
4547#define I2S_MCR_MICS_MASK (0x3000000U)
4548#define I2S_MCR_MICS_SHIFT (24U)
4549#define I2S_MCR_MICS(x) (((uint32_t)(((uint32_t)(x)) << I2S_MCR_MICS_SHIFT)) & I2S_MCR_MICS_MASK)
4550#define I2S_MCR_MOE (0x40000000U)
4551#define I2S_MCR_DUF (0x80000000U)
4552
4553/*! @name MDR - SAI MCLK Divide Register */
4554#define I2S_MDR_DIVIDE_MASK (0xFFFU)
4555#define I2S_MDR_DIVIDE_SHIFT (0U)
4556#define I2S_MDR_DIVIDE(x) (((uint32_t)(((uint32_t)(x)) << I2S_MDR_DIVIDE_SHIFT)) & I2S_MDR_DIVIDE_MASK)
4557#define I2S_MDR_FRACT_MASK (0xFF000U)
4558#define I2S_MDR_FRACT_SHIFT (12U)
4559#define I2S_MDR_FRACT(x) (((uint32_t)(((uint32_t)(x)) << I2S_MDR_FRACT_SHIFT)) & I2S_MDR_FRACT_MASK)
4560
4561
4562/*!
4563 * @}
4564 */ /* end of group I2S_Register_Masks */
4565
4566
4567/* I2S - Peripheral instance base addresses */
4568/** Peripheral I2S0 base address */
4569#define I2S0_BASE (0x4002F000u)
4570/** Peripheral I2S0 base pointer */
4571#define I2S0 ((I2S_TypeDef *)I2S0_BASE)
4572/** Array initializer of I2S peripheral base addresses */
4573#define I2S_BASE_ADDRS { I2S0_BASE }
4574/** Array initializer of I2S peripheral base pointers */
4575#define I2S_BASE_PTRS { I2S0 }
4576/** Interrupt vectors for the I2S peripheral type */
4577#define I2S_RX_IRQS { I2S0_Rx_IRQn }
4578#define I2S_TX_IRQS { I2S0_Tx_IRQn }
4579
4580/*!
4581 * @}
4582 */ /* end of group I2S_Peripheral_Access_Layer */
4583
4584
4585/* ----------------------------------------------------------------------------
4586 -- LLWU Peripheral Access Layer
4587 ---------------------------------------------------------------------------- */
4588
4589/*!
4590 * @addtogroup LLWU_Peripheral_Access_Layer LLWU Peripheral Access Layer
4591 * @{
4592 */
4593
4594/** LLWU - Register Layout Typedef */
4595typedef struct {
4596 __IO uint8_t PE1; /**< LLWU Pin Enable 1 register, offset: 0x0 */
4597 __IO uint8_t PE2; /**< LLWU Pin Enable 2 register, offset: 0x1 */
4598 __IO uint8_t PE3; /**< LLWU Pin Enable 3 register, offset: 0x2 */
4599 __IO uint8_t PE4; /**< LLWU Pin Enable 4 register, offset: 0x3 */
4600 __IO uint8_t ME; /**< LLWU Module Enable register, offset: 0x4 */
4601 __IO uint8_t F1; /**< LLWU Flag 1 register, offset: 0x5 */
4602 __IO uint8_t F2; /**< LLWU Flag 2 register, offset: 0x6 */
4603 __I uint8_t F3; /**< LLWU Flag 3 register, offset: 0x7 */
4604 __IO uint8_t FILT1; /**< LLWU Pin Filter 1 register, offset: 0x8 */
4605 __IO uint8_t FILT2; /**< LLWU Pin Filter 2 register, offset: 0x9 */
4606 __IO uint8_t RST; /**< LLWU Reset Enable register, offset: 0xA */
4607} LLWU_TypeDef;
4608
4609/* ----------------------------------------------------------------------------
4610 -- LLWU Register Masks
4611 ---------------------------------------------------------------------------- */
4612
4613/*!
4614 * @addtogroup LLWU_Register_Masks LLWU Register Masks
4615 * @{
4616 */
4617
4618/*! @name PE1 - LLWU Pin Enable 1 register */
4619#define LLWU_PE1_WUPE0_MASK (0x3U)
4620#define LLWU_PE1_WUPE0_SHIFT (0U)
4621#define LLWU_PE1_WUPE0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE0_SHIFT)) & LLWU_PE1_WUPE0_MASK)
4622#define LLWU_PE1_WUPE1_MASK (0xCU)
4623#define LLWU_PE1_WUPE1_SHIFT (2U)
4624#define LLWU_PE1_WUPE1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE1_SHIFT)) & LLWU_PE1_WUPE1_MASK)
4625#define LLWU_PE1_WUPE2_MASK (0x30U)
4626#define LLWU_PE1_WUPE2_SHIFT (4U)
4627#define LLWU_PE1_WUPE2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE2_SHIFT)) & LLWU_PE1_WUPE2_MASK)
4628#define LLWU_PE1_WUPE3_MASK (0xC0U)
4629#define LLWU_PE1_WUPE3_SHIFT (6U)
4630#define LLWU_PE1_WUPE3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE3_SHIFT)) & LLWU_PE1_WUPE3_MASK)
4631
4632/*! @name PE2 - LLWU Pin Enable 2 register */
4633#define LLWU_PE2_WUPE4_MASK (0x3U)
4634#define LLWU_PE2_WUPE4_SHIFT (0U)
4635#define LLWU_PE2_WUPE4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE4_SHIFT)) & LLWU_PE2_WUPE4_MASK)
4636#define LLWU_PE2_WUPE5_MASK (0xCU)
4637#define LLWU_PE2_WUPE5_SHIFT (2U)
4638#define LLWU_PE2_WUPE5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE5_SHIFT)) & LLWU_PE2_WUPE5_MASK)
4639#define LLWU_PE2_WUPE6_MASK (0x30U)
4640#define LLWU_PE2_WUPE6_SHIFT (4U)
4641#define LLWU_PE2_WUPE6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE6_SHIFT)) & LLWU_PE2_WUPE6_MASK)
4642#define LLWU_PE2_WUPE7_MASK (0xC0U)
4643#define LLWU_PE2_WUPE7_SHIFT (6U)
4644#define LLWU_PE2_WUPE7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE7_SHIFT)) & LLWU_PE2_WUPE7_MASK)
4645
4646/*! @name PE3 - LLWU Pin Enable 3 register */
4647#define LLWU_PE3_WUPE8_MASK (0x3U)
4648#define LLWU_PE3_WUPE8_SHIFT (0U)
4649#define LLWU_PE3_WUPE8(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE8_SHIFT)) & LLWU_PE3_WUPE8_MASK)
4650#define LLWU_PE3_WUPE9_MASK (0xCU)
4651#define LLWU_PE3_WUPE9_SHIFT (2U)
4652#define LLWU_PE3_WUPE9(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE9_SHIFT)) & LLWU_PE3_WUPE9_MASK)
4653#define LLWU_PE3_WUPE10_MASK (0x30U)
4654#define LLWU_PE3_WUPE10_SHIFT (4U)
4655#define LLWU_PE3_WUPE10(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE10_SHIFT)) & LLWU_PE3_WUPE10_MASK)
4656#define LLWU_PE3_WUPE11_MASK (0xC0U)
4657#define LLWU_PE3_WUPE11_SHIFT (6U)
4658#define LLWU_PE3_WUPE11(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE11_SHIFT)) & LLWU_PE3_WUPE11_MASK)
4659
4660/*! @name PE4 - LLWU Pin Enable 4 register */
4661#define LLWU_PE4_WUPE12_MASK (0x3U)
4662#define LLWU_PE4_WUPE12_SHIFT (0U)
4663#define LLWU_PE4_WUPE12(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE12_SHIFT)) & LLWU_PE4_WUPE12_MASK)
4664#define LLWU_PE4_WUPE13_MASK (0xCU)
4665#define LLWU_PE4_WUPE13_SHIFT (2U)
4666#define LLWU_PE4_WUPE13(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE13_SHIFT)) & LLWU_PE4_WUPE13_MASK)
4667#define LLWU_PE4_WUPE14_MASK (0x30U)
4668#define LLWU_PE4_WUPE14_SHIFT (4U)
4669#define LLWU_PE4_WUPE14(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE14_SHIFT)) & LLWU_PE4_WUPE14_MASK)
4670#define LLWU_PE4_WUPE15_MASK (0xC0U)
4671#define LLWU_PE4_WUPE15_SHIFT (6U)
4672#define LLWU_PE4_WUPE15(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE15_SHIFT)) & LLWU_PE4_WUPE15_MASK)
4673
4674/*! @name ME - LLWU Module Enable register */
4675#define LLWU_ME_WUME0 (0x1U)
4676#define LLWU_ME_WUME1 (0x2U)
4677#define LLWU_ME_WUME2 (0x4U)
4678#define LLWU_ME_WUME3 (0x8U)
4679#define LLWU_ME_WUME4 (0x10U)
4680#define LLWU_ME_WUME5 (0x20U)
4681#define LLWU_ME_WUME6 (0x40U)
4682#define LLWU_ME_WUME7 (0x80U)
4683
4684/*! @name F1 - LLWU Flag 1 register */
4685#define LLWU_F1_WUF0 (0x1U)
4686#define LLWU_F1_WUF1 (0x2U)
4687#define LLWU_F1_WUF2 (0x4U)
4688#define LLWU_F1_WUF3 (0x8U)
4689#define LLWU_F1_WUF4 (0x10U)
4690#define LLWU_F1_WUF5 (0x20U)
4691#define LLWU_F1_WUF6 (0x40U)
4692#define LLWU_F1_WUF7 (0x80U)
4693
4694/*! @name F2 - LLWU Flag 2 register */
4695#define LLWU_F2_WUF8 (0x1U)
4696#define LLWU_F2_WUF9 (0x2U)
4697#define LLWU_F2_WUF10 (0x4U)
4698#define LLWU_F2_WUF11 (0x8U)
4699#define LLWU_F2_WUF12 (0x10U)
4700#define LLWU_F2_WUF13 (0x20U)
4701#define LLWU_F2_WUF14 (0x40U)
4702#define LLWU_F2_WUF15 (0x80U)
4703
4704/*! @name F3 - LLWU Flag 3 register */
4705#define LLWU_F3_MWUF0 (0x1U)
4706#define LLWU_F3_MWUF1 (0x2U)
4707#define LLWU_F3_MWUF2 (0x4U)
4708#define LLWU_F3_MWUF3 (0x8U)
4709#define LLWU_F3_MWUF4 (0x10U)
4710#define LLWU_F3_MWUF5 (0x20U)
4711#define LLWU_F3_MWUF6 (0x40U)
4712#define LLWU_F3_MWUF7 (0x80U)
4713
4714/*! @name FILT1 - LLWU Pin Filter 1 register */
4715#define LLWU_FILT1_FILTSEL_MASK (0xFU)
4716#define LLWU_FILT1_FILTSEL_SHIFT (0U)
4717#define LLWU_FILT1_FILTSEL(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTSEL_SHIFT)) & LLWU_FILT1_FILTSEL_MASK)
4718#define LLWU_FILT1_FILTE_MASK (0x60U)
4719#define LLWU_FILT1_FILTE_SHIFT (5U)
4720#define LLWU_FILT1_FILTE(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTE_SHIFT)) & LLWU_FILT1_FILTE_MASK)
4721#define LLWU_FILT1_FILTF (0x80U)
4722
4723/*! @name FILT2 - LLWU Pin Filter 2 register */
4724#define LLWU_FILT2_FILTSEL_MASK (0xFU)
4725#define LLWU_FILT2_FILTSEL_SHIFT (0U)
4726#define LLWU_FILT2_FILTSEL(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTSEL_SHIFT)) & LLWU_FILT2_FILTSEL_MASK)
4727#define LLWU_FILT2_FILTE_MASK (0x60U)
4728#define LLWU_FILT2_FILTE_SHIFT (5U)
4729#define LLWU_FILT2_FILTE(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTE_SHIFT)) & LLWU_FILT2_FILTE_MASK)
4730#define LLWU_FILT2_FILTF (0x80U)
4731
4732/*! @name RST - LLWU Reset Enable register */
4733#define LLWU_RST_RSTFILT (0x1U)
4734#define LLWU_RST_LLRSTE (0x2U)
4735
4736
4737/*!
4738 * @}
4739 */ /* end of group LLWU_Register_Masks */
4740
4741
4742/* LLWU - Peripheral instance base addresses */
4743/** Peripheral LLWU base address */
4744#define LLWU_BASE (0x4007C000u)
4745/** Peripheral LLWU base pointer */
4746#define LLWU ((LLWU_TypeDef *)LLWU_BASE)
4747/** Array initializer of LLWU peripheral base addresses */
4748#define LLWU_BASE_ADDRS { LLWU_BASE }
4749/** Array initializer of LLWU peripheral base pointers */
4750#define LLWU_BASE_PTRS { LLWU }
4751/** Interrupt vectors for the LLWU peripheral type */
4752#define LLWU_IRQS { LLWU_IRQn }
4753
4754/*!
4755 * @}
4756 */ /* end of group LLWU_Peripheral_Access_Layer */
4757
4758
4759/* ----------------------------------------------------------------------------
4760 -- LPTMR Peripheral Access Layer
4761 ---------------------------------------------------------------------------- */
4762
4763/*!
4764 * @addtogroup LPTMR_Peripheral_Access_Layer LPTMR Peripheral Access Layer
4765 * @{
4766 */
4767
4768/** LPTMR - Register Layout Typedef */
4769typedef struct {
4770 __IO uint32_t CSR; /**< Low Power Timer Control Status Register, offset: 0x0 */
4771 __IO uint32_t PSR; /**< Low Power Timer Prescale Register, offset: 0x4 */
4772 __IO uint32_t CMR; /**< Low Power Timer Compare Register, offset: 0x8 */
4773 __IO uint32_t CNR; /**< Low Power Timer Counter Register, offset: 0xC */
4774} LPTMR_TypeDef;
4775
4776/* ----------------------------------------------------------------------------
4777 -- LPTMR Register Masks
4778 ---------------------------------------------------------------------------- */
4779
4780/*!
4781 * @addtogroup LPTMR_Register_Masks LPTMR Register Masks
4782 * @{
4783 */
4784
4785/*! @name CSR - Low Power Timer Control Status Register */
4786#define LPTMR_CSR_TEN (0x1U)
4787#define LPTMR_CSR_TMS (0x2U)
4788#define LPTMR_CSR_TFC (0x4U)
4789#define LPTMR_CSR_TPP (0x8U)
4790#define LPTMR_CSR_TPS_MASK (0x30U)
4791#define LPTMR_CSR_TPS_SHIFT (4U)
4792#define LPTMR_CSR_TPS(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TPS_SHIFT)) & LPTMR_CSR_TPS_MASK)
4793#define LPTMR_CSR_TIE (0x40U)
4794#define LPTMR_CSR_TCF (0x80U)
4795
4796/*! @name PSR - Low Power Timer Prescale Register */
4797#define LPTMR_PSR_PCS_MASK (0x3U)
4798#define LPTMR_PSR_PCS_SHIFT (0U)
4799#define LPTMR_PSR_PCS(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_PSR_PCS_SHIFT)) & LPTMR_PSR_PCS_MASK)
4800#define LPTMR_PSR_PBYP (0x4U)
4801#define LPTMR_PSR_PRESCALE_MASK (0x78U)
4802#define LPTMR_PSR_PRESCALE_SHIFT (3U)
4803#define LPTMR_PSR_PRESCALE(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_PSR_PRESCALE_SHIFT)) & LPTMR_PSR_PRESCALE_MASK)
4804
4805/*! @name CMR - Low Power Timer Compare Register */
4806#define LPTMR_CMR_COMPARE_MASK (0xFFFFU)
4807#define LPTMR_CMR_COMPARE_SHIFT (0U)
4808#define LPTMR_CMR_COMPARE(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CMR_COMPARE_SHIFT)) & LPTMR_CMR_COMPARE_MASK)
4809
4810/*! @name CNR - Low Power Timer Counter Register */
4811#define LPTMR_CNR_COUNTER_MASK (0xFFFFU)
4812#define LPTMR_CNR_COUNTER_SHIFT (0U)
4813#define LPTMR_CNR_COUNTER(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CNR_COUNTER_SHIFT)) & LPTMR_CNR_COUNTER_MASK)
4814
4815
4816/*!
4817 * @}
4818 */ /* end of group LPTMR_Register_Masks */
4819
4820
4821/* LPTMR - Peripheral instance base addresses */
4822/** Peripheral LPTMR0 base address */
4823#define LPTMR0_BASE (0x40040000u)
4824/** Peripheral LPTMR0 base pointer */
4825#define LPTMR0 ((LPTMR_TypeDef *)LPTMR0_BASE)
4826/** Array initializer of LPTMR peripheral base addresses */
4827#define LPTMR_BASE_ADDRS { LPTMR0_BASE }
4828/** Array initializer of LPTMR peripheral base pointers */
4829#define LPTMR_BASE_PTRS { LPTMR0 }
4830/** Interrupt vectors for the LPTMR peripheral type */
4831#define LPTMR_IRQS { LPTMR0_IRQn }
4832
4833/*!
4834 * @}
4835 */ /* end of group LPTMR_Peripheral_Access_Layer */
4836
4837
4838/* ----------------------------------------------------------------------------
4839 -- MCG Peripheral Access Layer
4840 ---------------------------------------------------------------------------- */
4841
4842/*!
4843 * @addtogroup MCG_Peripheral_Access_Layer MCG Peripheral Access Layer
4844 * @{
4845 */
4846
4847/** MCG - Register Layout Typedef */
4848typedef struct {
4849 __IO uint8_t C1; /**< MCG Control 1 Register, offset: 0x0 */
4850 __IO uint8_t C2; /**< MCG Control 2 Register, offset: 0x1 */
4851 __IO uint8_t C3; /**< MCG Control 3 Register, offset: 0x2 */
4852 __IO uint8_t C4; /**< MCG Control 4 Register, offset: 0x3 */
4853 __IO uint8_t C5; /**< MCG Control 5 Register, offset: 0x4 */
4854 __IO uint8_t C6; /**< MCG Control 6 Register, offset: 0x5 */
4855 __IO uint8_t S; /**< MCG Status Register, offset: 0x6 */
4856 uint8_t RESERVED_0[1];
4857 __IO uint8_t SC; /**< MCG Status and Control Register, offset: 0x8 */
4858 uint8_t RESERVED_1[1];
4859 __IO uint8_t ATCVH; /**< MCG Auto Trim Compare Value High Register, offset: 0xA */
4860 __IO uint8_t ATCVL; /**< MCG Auto Trim Compare Value Low Register, offset: 0xB */
4861 __IO uint8_t C7; /**< MCG Control 7 Register, offset: 0xC */
4862 __IO uint8_t C8; /**< MCG Control 8 Register, offset: 0xD */
4863} MCG_TypeDef;
4864
4865/* ----------------------------------------------------------------------------
4866 -- MCG Register Masks
4867 ---------------------------------------------------------------------------- */
4868
4869/*!
4870 * @addtogroup MCG_Register_Masks MCG Register Masks
4871 * @{
4872 */
4873
4874/*! @name C1 - MCG Control 1 Register */
4875#define MCG_C1_IREFSTEN (0x1U)
4876#define MCG_C1_IRCLKEN (0x2U)
4877#define MCG_C1_IREFS (0x4U)
4878#define MCG_C1_FRDIV_MASK (0x38U)
4879#define MCG_C1_FRDIV_SHIFT (3U)
4880#define MCG_C1_FRDIV(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_FRDIV_SHIFT)) & MCG_C1_FRDIV_MASK)
4881#define MCG_C1_CLKS_MASK (0xC0U)
4882#define MCG_C1_CLKS_SHIFT (6U)
4883#define MCG_C1_CLKS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_CLKS_SHIFT)) & MCG_C1_CLKS_MASK)
4884
4885/*! @name C2 - MCG Control 2 Register */
4886#define MCG_C2_IRCS (0x1U)
4887#define MCG_C2_LP (0x2U)
4888#define MCG_C2_EREFS (0x4U)
4889#define MCG_C2_EREFS0 MCG_C2_EREFS
4890#define MCG_C2_HGO (0x8U)
4891#define MCG_C2_RANGE_MASK (0x30U)
4892#define MCG_C2_RANGE_SHIFT (4U)
4893#define MCG_C2_RANGE(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_RANGE_SHIFT)) & MCG_C2_RANGE_MASK)
4894#define MCG_C2_FCFTRIM (0x40U)
4895#define MCG_C2_LOCRE0 (0x80U)
4896
4897/*! @name C3 - MCG Control 3 Register */
4898#define MCG_C3_SCTRIM_MASK (0xFFU)
4899#define MCG_C3_SCTRIM_SHIFT (0U)
4900#define MCG_C3_SCTRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_C3_SCTRIM_SHIFT)) & MCG_C3_SCTRIM_MASK)
4901
4902/*! @name C4 - MCG Control 4 Register */
4903#define MCG_C4_SCFTRIM (0x1U)
4904#define MCG_C4_FCTRIM_MASK (0x1EU)
4905#define MCG_C4_FCTRIM_SHIFT (1U)
4906#define MCG_C4_FCTRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_FCTRIM_SHIFT)) & MCG_C4_FCTRIM_MASK)
4907#define MCG_C4_DRST_DRS_MASK (0x60U)
4908#define MCG_C4_DRST_DRS_SHIFT (5U)
4909#define MCG_C4_DRST_DRS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_DRST_DRS_SHIFT)) & MCG_C4_DRST_DRS_MASK)
4910#define MCG_C4_DMX32 (0x80U)
4911
4912/*! @name C5 - MCG Control 5 Register */
4913#define MCG_C5_PRDIV0_MASK (0x1FU)
4914#define MCG_C5_PRDIV0_SHIFT (0U)
4915#define MCG_C5_PRDIV0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C5_PRDIV0_SHIFT)) & MCG_C5_PRDIV0_MASK)
4916#define MCG_C5_PLLSTEN0 (0x20U)
4917#define MCG_C5_PLLCLKEN0 (0x40U)
4918
4919/*! @name C6 - MCG Control 6 Register */
4920#define MCG_C6_VDIV0_MASK (0x1FU)
4921#define MCG_C6_VDIV0_SHIFT (0U)
4922#define MCG_C6_VDIV0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_VDIV0_SHIFT)) & MCG_C6_VDIV0_MASK)
4923#define MCG_C6_CME0 (0x20U)
4924#define MCG_C6_PLLS (0x40U)
4925#define MCG_C6_LOLIE0 (0x80U)
4926
4927/*! @name S - MCG Status Register */
4928#define MCG_S_IRCST (0x1U)
4929#define MCG_S_OSCINIT0 (0x2U)
4930#define MCG_S_CLKST_MASK (0xCU)
4931#define MCG_S_CLKST_SHIFT (2U)
4932#define MCG_S_CLKST(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_CLKST_SHIFT)) & MCG_S_CLKST_MASK)
4933#define MCG_S_CLKST_FLL MCG_S_CLKST(0)
4934#define MCG_S_CLKST_INT MCG_S_CLKST(1)
4935#define MCG_S_CLKST_EXT MCG_S_CLKST(2)
4936#define MCG_S_CLKST_PLL MCG_S_CLKST(3)
4937#define MCG_S_IREFST (0x10U)
4938#define MCG_S_PLLST (0x20U)
4939#define MCG_S_LOCK0 (0x40U)
4940#define MCG_S_LOLS0 (0x80U)
4941
4942/*! @name SC - MCG Status and Control Register */
4943#define MCG_SC_LOCS0 (0x1U)
4944#define MCG_SC_FCRDIV_MASK (0xEU)
4945#define MCG_SC_FCRDIV_SHIFT (1U)
4946#define MCG_SC_FCRDIV(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_FCRDIV_SHIFT)) & MCG_SC_FCRDIV_MASK)
4947#define MCG_SC_FLTPRSRV (0x10U)
4948#define MCG_SC_ATMF (0x20U)
4949#define MCG_SC_ATMS (0x40U)
4950#define MCG_SC_ATME (0x80U)
4951
4952/*! @name ATCVH - MCG Auto Trim Compare Value High Register */
4953#define MCG_ATCVH_ATCVH_MASK (0xFFU)
4954#define MCG_ATCVH_ATCVH_SHIFT (0U)
4955#define MCG_ATCVH_ATCVH(x) (((uint8_t)(((uint8_t)(x)) << MCG_ATCVH_ATCVH_SHIFT)) & MCG_ATCVH_ATCVH_MASK)
4956
4957/*! @name ATCVL - MCG Auto Trim Compare Value Low Register */
4958#define MCG_ATCVL_ATCVL_MASK (0xFFU)
4959#define MCG_ATCVL_ATCVL_SHIFT (0U)
4960#define MCG_ATCVL_ATCVL(x) (((uint8_t)(((uint8_t)(x)) << MCG_ATCVL_ATCVL_SHIFT)) & MCG_ATCVL_ATCVL_MASK)
4961
4962/*! @name C7 - MCG Control 7 Register */
4963#define MCG_C7_OSCSEL_MASK (0x3U)
4964#define MCG_C7_OSCSEL_SHIFT (0U)
4965#define MCG_C7_OSCSEL(x) (((uint8_t)(((uint8_t)(x)) << MCG_C7_OSCSEL_SHIFT)) & MCG_C7_OSCSEL_MASK)
4966
4967/*! @name C8 - MCG Control 8 Register */
4968#define MCG_C8_LOCS1 (0x1U)
4969#define MCG_C8_CME1 (0x20U)
4970#define MCG_C8_LOLRE (0x40U)
4971#define MCG_C8_LOCRE1 (0x80U)
4972
4973
4974/*!
4975 * @}
4976 */ /* end of group MCG_Register_Masks */
4977
4978
4979/* MCG - Peripheral instance base addresses */
4980/** Peripheral MCG base address */
4981#define MCG_BASE (0x40064000u)
4982/** Peripheral MCG base pointer */
4983#define MCG ((MCG_TypeDef *)MCG_BASE)
4984/** Array initializer of MCG peripheral base addresses */
4985#define MCG_BASE_ADDRS { MCG_BASE }
4986/** Array initializer of MCG peripheral base pointers */
4987#define MCG_BASE_PTRS { MCG }
4988
4989/*!
4990 * @}
4991 */ /* end of group MCG_Peripheral_Access_Layer */
4992
4993
4994/* ----------------------------------------------------------------------------
4995 -- MCM Peripheral Access Layer
4996 ---------------------------------------------------------------------------- */
4997
4998/*!
4999 * @addtogroup MCM_Peripheral_Access_Layer MCM Peripheral Access Layer
5000 * @{
5001 */
5002
5003/** MCM - Register Layout Typedef */
5004typedef struct {
5005 uint8_t RESERVED_0[8];
5006 __I uint16_t PLASC; /**< Crossbar Switch (AXBS) Slave Configuration, offset: 0x8 */
5007 __I uint16_t PLAMC; /**< Crossbar Switch (AXBS) Master Configuration, offset: 0xA */
5008 __IO uint32_t CR; /**< Control Register, offset: 0xC */
5009 __IO uint32_t ISCR; /**< Interrupt Status Register, offset: 0x10 */
5010 __IO uint32_t ETBCC; /**< ETB Counter Control register, offset: 0x14 */
5011 __IO uint32_t ETBRL; /**< ETB Reload register, offset: 0x18 */
5012 __I uint32_t ETBCNT; /**< ETB Counter Value register, offset: 0x1C */
5013 uint8_t RESERVED_1[16];
5014 __IO uint32_t PID; /**< Process ID register, offset: 0x30 */
5015} MCM_TypeDef;
5016
5017/* ----------------------------------------------------------------------------
5018 -- MCM Register Masks
5019 ---------------------------------------------------------------------------- */
5020
5021/*!
5022 * @addtogroup MCM_Register_Masks MCM Register Masks
5023 * @{
5024 */
5025
5026/*! @name PLASC - Crossbar Switch (AXBS) Slave Configuration */
5027#define MCM_PLASC_ASC_MASK (0xFFU)
5028#define MCM_PLASC_ASC_SHIFT (0U)
5029#define MCM_PLASC_ASC(x) (((uint16_t)(((uint16_t)(x)) << MCM_PLASC_ASC_SHIFT)) & MCM_PLASC_ASC_MASK)
5030
5031/*! @name PLAMC - Crossbar Switch (AXBS) Master Configuration */
5032#define MCM_PLAMC_AMC_MASK (0xFFU)
5033#define MCM_PLAMC_AMC_SHIFT (0U)
5034#define MCM_PLAMC_AMC(x) (((uint16_t)(((uint16_t)(x)) << MCM_PLAMC_AMC_SHIFT)) & MCM_PLAMC_AMC_MASK)
5035
5036/*! @name CR - Control Register */
5037#define MCM_CR_SRAMUAP_MASK (0x3000000U)
5038#define MCM_CR_SRAMUAP_SHIFT (24U)
5039#define MCM_CR_SRAMUAP(x) (((uint32_t)(((uint32_t)(x)) << MCM_CR_SRAMUAP_SHIFT)) & MCM_CR_SRAMUAP_MASK)
5040#define MCM_CR_SRAMUWP (0x4000000U)
5041#define MCM_CR_SRAMLAP_MASK (0x30000000U)
5042#define MCM_CR_SRAMLAP_SHIFT (28U)
5043#define MCM_CR_SRAMLAP(x) (((uint32_t)(((uint32_t)(x)) << MCM_CR_SRAMLAP_SHIFT)) & MCM_CR_SRAMLAP_MASK)
5044#define MCM_CR_SRAMLWP (0x40000000U)
5045
5046/*! @name ISCR - Interrupt Status Register */
5047#define MCM_ISCR_IRQ (0x2U)
5048#define MCM_ISCR_NMI (0x4U)
5049#define MCM_ISCR_DHREQ (0x8U)
5050#define MCM_ISCR_FIOC (0x100U)
5051#define MCM_ISCR_FDZC (0x200U)
5052#define MCM_ISCR_FOFC (0x400U)
5053#define MCM_ISCR_FUFC (0x800U)
5054#define MCM_ISCR_FIXC (0x1000U)
5055#define MCM_ISCR_FIDC (0x8000U)
5056#define MCM_ISCR_FIOCE (0x1000000U)
5057#define MCM_ISCR_FDZCE (0x2000000U)
5058#define MCM_ISCR_FOFCE (0x4000000U)
5059#define MCM_ISCR_FUFCE (0x8000000U)
5060#define MCM_ISCR_FIXCE (0x10000000U)
5061#define MCM_ISCR_FIDCE (0x80000000U)
5062
5063/*! @name ETBCC - ETB Counter Control register */
5064#define MCM_ETBCC_CNTEN (0x1U)
5065#define MCM_ETBCC_RSPT_MASK (0x6U)
5066#define MCM_ETBCC_RSPT_SHIFT (1U)
5067#define MCM_ETBCC_RSPT(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBCC_RSPT_SHIFT)) & MCM_ETBCC_RSPT_MASK)
5068#define MCM_ETBCC_RLRQ (0x8U)
5069#define MCM_ETBCC_ETDIS (0x10U)
5070#define MCM_ETBCC_ITDIS (0x20U)
5071
5072/*! @name ETBRL - ETB Reload register */
5073#define MCM_ETBRL_RELOAD_MASK (0x7FFU)
5074#define MCM_ETBRL_RELOAD_SHIFT (0U)
5075#define MCM_ETBRL_RELOAD(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBRL_RELOAD_SHIFT)) & MCM_ETBRL_RELOAD_MASK)
5076
5077/*! @name ETBCNT - ETB Counter Value register */
5078#define MCM_ETBCNT_COUNTER_MASK (0x7FFU)
5079#define MCM_ETBCNT_COUNTER_SHIFT (0U)
5080#define MCM_ETBCNT_COUNTER(x) (((uint32_t)(((uint32_t)(x)) << MCM_ETBCNT_COUNTER_SHIFT)) & MCM_ETBCNT_COUNTER_MASK)
5081
5082/*! @name PID - Process ID register */
5083#define MCM_PID_PID_MASK (0xFFU)
5084#define MCM_PID_PID_SHIFT (0U)
5085#define MCM_PID_PID(x) (((uint32_t)(((uint32_t)(x)) << MCM_PID_PID_SHIFT)) & MCM_PID_PID_MASK)
5086
5087
5088/*!
5089 * @}
5090 */ /* end of group MCM_Register_Masks */
5091
5092
5093/* MCM - Peripheral instance base addresses */
5094/** Peripheral MCM base address */
5095#define MCM_BASE (0xE0080000u)
5096/** Peripheral MCM base pointer */
5097#define MCM ((MCM_TypeDef *)MCM_BASE)
5098/** Array initializer of MCM peripheral base addresses */
5099#define MCM_BASE_ADDRS { MCM_BASE }
5100/** Array initializer of MCM peripheral base pointers */
5101#define MCM_BASE_PTRS { MCM }
5102/** Interrupt vectors for the MCM peripheral type */
5103#define MCM_IRQS { MCM_IRQn }
5104
5105/*!
5106 * @}
5107 */ /* end of group MCM_Peripheral_Access_Layer */
5108
5109
5110/* ----------------------------------------------------------------------------
5111 -- MPU Peripheral Access Layer
5112 ---------------------------------------------------------------------------- */
5113
5114/*!
5115 * @addtogroup MPU_Peripheral_Access_Layer MPU Peripheral Access Layer
5116 * @{
5117 */
5118
5119/** MPU - Register Layout Typedef */
5120typedef struct {
5121 __IO uint32_t CESR; /**< Control/Error Status Register, offset: 0x0 */
5122 uint8_t RESERVED_0[12];
5123 struct { /* offset: 0x10, array step: 0x8 */
5124 __I uint32_t EAR; /**< Error Address Register, slave port n, array offset: 0x10, array step: 0x8 */
5125 __I uint32_t EDR; /**< Error Detail Register, slave port n, array offset: 0x14, array step: 0x8 */
5126 } SP[5];
5127 uint8_t RESERVED_1[968];
5128 __IO uint32_t WORD[12][4]; /**< Region Descriptor n, Word 0..Region Descriptor n, Word 3, array offset: 0x400, array step: index*0x10, index2*0x4 */
5129 uint8_t RESERVED_2[832];
5130 __IO uint32_t RGDAAC[12]; /**< Region Descriptor Alternate Access Control n, array offset: 0x800, array step: 0x4 */
5131} MPU_TypeDef;
5132
5133/* ----------------------------------------------------------------------------
5134 -- MPU Register Masks
5135 ---------------------------------------------------------------------------- */
5136
5137/*!
5138 * @addtogroup MPU_Register_Masks MPU Register Masks
5139 * @{
5140 */
5141
5142/*! @name CESR - Control/Error Status Register */
5143#define MPU_CESR_VLD (0x1U)
5144#define MPU_CESR_NRGD_MASK (0xF00U)
5145#define MPU_CESR_NRGD_SHIFT (8U)
5146#define MPU_CESR_NRGD(x) (((uint32_t)(((uint32_t)(x)) << MPU_CESR_NRGD_SHIFT)) & MPU_CESR_NRGD_MASK)
5147#define MPU_CESR_NSP_MASK (0xF000U)
5148#define MPU_CESR_NSP_SHIFT (12U)
5149#define MPU_CESR_NSP(x) (((uint32_t)(((uint32_t)(x)) << MPU_CESR_NSP_SHIFT)) & MPU_CESR_NSP_MASK)
5150#define MPU_CESR_HRL_MASK (0xF0000U)
5151#define MPU_CESR_HRL_SHIFT (16U)
5152#define MPU_CESR_HRL(x) (((uint32_t)(((uint32_t)(x)) << MPU_CESR_HRL_SHIFT)) & MPU_CESR_HRL_MASK)
5153#define MPU_CESR_SPERR_MASK (0xF8000000U)
5154#define MPU_CESR_SPERR_SHIFT (27U)
5155#define MPU_CESR_SPERR(x) (((uint32_t)(((uint32_t)(x)) << MPU_CESR_SPERR_SHIFT)) & MPU_CESR_SPERR_MASK)
5156
5157/* The count of MPU_EAR */
5158#define MPU_EAR_COUNT (5U)
5159
5160/*! @name EDR - Error Detail Register, slave port n */
5161#define MPU_EDR_ERW (0x1U)
5162#define MPU_EDR_EATTR_MASK (0xEU)
5163#define MPU_EDR_EATTR_SHIFT (1U)
5164#define MPU_EDR_EATTR(x) (((uint32_t)(((uint32_t)(x)) << MPU_EDR_EATTR_SHIFT)) & MPU_EDR_EATTR_MASK)
5165#define MPU_EDR_EMN_MASK (0xF0U)
5166#define MPU_EDR_EMN_SHIFT (4U)
5167#define MPU_EDR_EMN(x) (((uint32_t)(((uint32_t)(x)) << MPU_EDR_EMN_SHIFT)) & MPU_EDR_EMN_MASK)
5168#define MPU_EDR_EPID_MASK (0xFF00U)
5169#define MPU_EDR_EPID_SHIFT (8U)
5170#define MPU_EDR_EPID(x) (((uint32_t)(((uint32_t)(x)) << MPU_EDR_EPID_SHIFT)) & MPU_EDR_EPID_MASK)
5171#define MPU_EDR_EACD_MASK (0xFFFF0000U)
5172#define MPU_EDR_EACD_SHIFT (16U)
5173#define MPU_EDR_EACD(x) (((uint32_t)(((uint32_t)(x)) << MPU_EDR_EACD_SHIFT)) & MPU_EDR_EACD_MASK)
5174
5175/* The count of MPU_EDR */
5176#define MPU_EDR_COUNT (5U)
5177
5178/*! @name WORD - Region Descriptor n, Word 0..Region Descriptor n, Word 3 */
5179#define MPU_WORD_VLD (0x1U)
5180#define MPU_WORD_M0UM_MASK (0x7U)
5181#define MPU_WORD_M0UM_SHIFT (0U)
5182#define MPU_WORD_M0UM(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_M0UM_SHIFT)) & MPU_WORD_M0UM_MASK)
5183#define MPU_WORD_M0SM_MASK (0x18U)
5184#define MPU_WORD_M0SM_SHIFT (3U)
5185#define MPU_WORD_M0SM(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_M0SM_SHIFT)) & MPU_WORD_M0SM_MASK)
5186#define MPU_WORD_M0PE (0x20U)
5187#define MPU_WORD_ENDADDR_MASK (0xFFFFFFE0U)
5188#define MPU_WORD_ENDADDR_SHIFT (5U)
5189#define MPU_WORD_ENDADDR(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_ENDADDR_SHIFT)) & MPU_WORD_ENDADDR_MASK)
5190#define MPU_WORD_SRTADDR_MASK (0xFFFFFFE0U)
5191#define MPU_WORD_SRTADDR_SHIFT (5U)
5192#define MPU_WORD_SRTADDR(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_SRTADDR_SHIFT)) & MPU_WORD_SRTADDR_MASK)
5193#define MPU_WORD_M1UM_MASK (0x1C0U)
5194#define MPU_WORD_M1UM_SHIFT (6U)
5195#define MPU_WORD_M1UM(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_M1UM_SHIFT)) & MPU_WORD_M1UM_MASK)
5196#define MPU_WORD_M1SM_MASK (0x600U)
5197#define MPU_WORD_M1SM_SHIFT (9U)
5198#define MPU_WORD_M1SM(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_M1SM_SHIFT)) & MPU_WORD_M1SM_MASK)
5199#define MPU_WORD_M1PE (0x800U)
5200#define MPU_WORD_M2UM_MASK (0x7000U)
5201#define MPU_WORD_M2UM_SHIFT (12U)
5202#define MPU_WORD_M2UM(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_M2UM_SHIFT)) & MPU_WORD_M2UM_MASK)
5203#define MPU_WORD_M2SM_MASK (0x18000U)
5204#define MPU_WORD_M2SM_SHIFT (15U)
5205#define MPU_WORD_M2SM(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_M2SM_SHIFT)) & MPU_WORD_M2SM_MASK)
5206#define MPU_WORD_PIDMASK_MASK (0xFF0000U)
5207#define MPU_WORD_PIDMASK_SHIFT (16U)
5208#define MPU_WORD_PIDMASK(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_PIDMASK_SHIFT)) & MPU_WORD_PIDMASK_MASK)
5209#define MPU_WORD_M2PE (0x20000U)
5210#define MPU_WORD_M3UM_MASK (0x1C0000U)
5211#define MPU_WORD_M3UM_SHIFT (18U)
5212#define MPU_WORD_M3UM(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_M3UM_SHIFT)) & MPU_WORD_M3UM_MASK)
5213#define MPU_WORD_M3SM_MASK (0x600000U)
5214#define MPU_WORD_M3SM_SHIFT (21U)
5215#define MPU_WORD_M3SM(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_M3SM_SHIFT)) & MPU_WORD_M3SM_MASK)
5216#define MPU_WORD_M3PE (0x800000U)
5217#define MPU_WORD_PID_MASK (0xFF000000U)
5218#define MPU_WORD_PID_SHIFT (24U)
5219#define MPU_WORD_PID(x) (((uint32_t)(((uint32_t)(x)) << MPU_WORD_PID_SHIFT)) & MPU_WORD_PID_MASK)
5220#define MPU_WORD_M4WE (0x1000000U)
5221#define MPU_WORD_M4RE (0x2000000U)
5222#define MPU_WORD_M5WE (0x4000000U)
5223#define MPU_WORD_M5RE (0x8000000U)
5224#define MPU_WORD_M6WE (0x10000000U)
5225#define MPU_WORD_M6RE (0x20000000U)
5226#define MPU_WORD_M7WE (0x40000000U)
5227#define MPU_WORD_M7RE (0x80000000U)
5228
5229/* The count of MPU_WORD */
5230#define MPU_WORD_COUNT (12U)
5231
5232/* The count of MPU_WORD */
5233#define MPU_WORD_COUNT2 (4U)
5234
5235/*! @name RGDAAC - Region Descriptor Alternate Access Control n */
5236#define MPU_RGDAAC_M0UM_MASK (0x7U)
5237#define MPU_RGDAAC_M0UM_SHIFT (0U)
5238#define MPU_RGDAAC_M0UM(x) (((uint32_t)(((uint32_t)(x)) << MPU_RGDAAC_M0UM_SHIFT)) & MPU_RGDAAC_M0UM_MASK)
5239#define MPU_RGDAAC_M0SM_MASK (0x18U)
5240#define MPU_RGDAAC_M0SM_SHIFT (3U)
5241#define MPU_RGDAAC_M0SM(x) (((uint32_t)(((uint32_t)(x)) << MPU_RGDAAC_M0SM_SHIFT)) & MPU_RGDAAC_M0SM_MASK)
5242#define MPU_RGDAAC_M0PE (0x20U)
5243#define MPU_RGDAAC_M1UM_MASK (0x1C0U)
5244#define MPU_RGDAAC_M1UM_SHIFT (6U)
5245#define MPU_RGDAAC_M1UM(x) (((uint32_t)(((uint32_t)(x)) << MPU_RGDAAC_M1UM_SHIFT)) & MPU_RGDAAC_M1UM_MASK)
5246#define MPU_RGDAAC_M1SM_MASK (0x600U)
5247#define MPU_RGDAAC_M1SM_SHIFT (9U)
5248#define MPU_RGDAAC_M1SM(x) (((uint32_t)(((uint32_t)(x)) << MPU_RGDAAC_M1SM_SHIFT)) & MPU_RGDAAC_M1SM_MASK)
5249#define MPU_RGDAAC_M1PE (0x800U)
5250#define MPU_RGDAAC_M2UM_MASK (0x7000U)
5251#define MPU_RGDAAC_M2UM_SHIFT (12U)
5252#define MPU_RGDAAC_M2UM(x) (((uint32_t)(((uint32_t)(x)) << MPU_RGDAAC_M2UM_SHIFT)) & MPU_RGDAAC_M2UM_MASK)
5253#define MPU_RGDAAC_M2SM_MASK (0x18000U)
5254#define MPU_RGDAAC_M2SM_SHIFT (15U)
5255#define MPU_RGDAAC_M2SM(x) (((uint32_t)(((uint32_t)(x)) << MPU_RGDAAC_M2SM_SHIFT)) & MPU_RGDAAC_M2SM_MASK)
5256#define MPU_RGDAAC_M2PE (0x20000U)
5257#define MPU_RGDAAC_M3UM_MASK (0x1C0000U)
5258#define MPU_RGDAAC_M3UM_SHIFT (18U)
5259#define MPU_RGDAAC_M3UM(x) (((uint32_t)(((uint32_t)(x)) << MPU_RGDAAC_M3UM_SHIFT)) & MPU_RGDAAC_M3UM_MASK)
5260#define MPU_RGDAAC_M3SM_MASK (0x600000U)
5261#define MPU_RGDAAC_M3SM_SHIFT (21U)
5262#define MPU_RGDAAC_M3SM(x) (((uint32_t)(((uint32_t)(x)) << MPU_RGDAAC_M3SM_SHIFT)) & MPU_RGDAAC_M3SM_MASK)
5263#define MPU_RGDAAC_M3PE (0x800000U)
5264#define MPU_RGDAAC_M4WE (0x1000000U)
5265#define MPU_RGDAAC_M4RE (0x2000000U)
5266#define MPU_RGDAAC_M5WE (0x4000000U)
5267#define MPU_RGDAAC_M5RE (0x8000000U)
5268#define MPU_RGDAAC_M6WE (0x10000000U)
5269#define MPU_RGDAAC_M6RE (0x20000000U)
5270#define MPU_RGDAAC_M7WE (0x40000000U)
5271#define MPU_RGDAAC_M7RE (0x80000000U)
5272
5273/* The count of MPU_RGDAAC */
5274#define MPU_RGDAAC_COUNT (12U)
5275
5276
5277/*!
5278 * @}
5279 */ /* end of group MPU_Register_Masks */
5280
5281
5282/* MPU - Peripheral instance base addresses */
5283/** Peripheral MPU base address */
5284#define MPU_BASE (0x4000D000u)
5285/** Peripheral MPU base pointer */
5286#define MPU ((MPU_TypeDef *)MPU_BASE)
5287/** Array initializer of MPU peripheral base addresses */
5288#define MPU_BASE_ADDRS { MPU_BASE }
5289/** Array initializer of MPU peripheral base pointers */
5290#define MPU_BASE_PTRS { MPU }
5291
5292/*!
5293 * @}
5294 */ /* end of group MPU_Peripheral_Access_Layer */
5295
5296
5297/* ----------------------------------------------------------------------------
5298 -- NV Peripheral Access Layer
5299 ---------------------------------------------------------------------------- */
5300
5301/*!
5302 * @addtogroup NV_Peripheral_Access_Layer NV Peripheral Access Layer
5303 * @{
5304 */
5305
5306/** NV - Register Layout Typedef */
5307typedef struct {
5308 __I uint8_t BACKKEY3; /**< Backdoor Comparison Key 3., offset: 0x0 */
5309 __I uint8_t BACKKEY2; /**< Backdoor Comparison Key 2., offset: 0x1 */
5310 __I uint8_t BACKKEY1; /**< Backdoor Comparison Key 1., offset: 0x2 */
5311 __I uint8_t BACKKEY0; /**< Backdoor Comparison Key 0., offset: 0x3 */
5312 __I uint8_t BACKKEY7; /**< Backdoor Comparison Key 7., offset: 0x4 */
5313 __I uint8_t BACKKEY6; /**< Backdoor Comparison Key 6., offset: 0x5 */
5314 __I uint8_t BACKKEY5; /**< Backdoor Comparison Key 5., offset: 0x6 */
5315 __I uint8_t BACKKEY4; /**< Backdoor Comparison Key 4., offset: 0x7 */
5316 __I uint8_t FPROT3; /**< Non-volatile P-Flash Protection 1 - Low Register, offset: 0x8 */
5317 __I uint8_t FPROT2; /**< Non-volatile P-Flash Protection 1 - High Register, offset: 0x9 */
5318 __I uint8_t FPROT1; /**< Non-volatile P-Flash Protection 0 - Low Register, offset: 0xA */
5319 __I uint8_t FPROT0; /**< Non-volatile P-Flash Protection 0 - High Register, offset: 0xB */
5320 __I uint8_t FSEC; /**< Non-volatile Flash Security Register, offset: 0xC */
5321 __I uint8_t FOPT; /**< Non-volatile Flash Option Register, offset: 0xD */
5322 __I uint8_t FEPROT; /**< Non-volatile EERAM Protection Register, offset: 0xE */
5323 __I uint8_t FDPROT; /**< Non-volatile D-Flash Protection Register, offset: 0xF */
5324} NV_TypeDef;
5325
5326/* ----------------------------------------------------------------------------
5327 -- NV Register Masks
5328 ---------------------------------------------------------------------------- */
5329
5330/*!
5331 * @addtogroup NV_Register_Masks NV Register Masks
5332 * @{
5333 */
5334
5335/*! @name FSEC - Non-volatile Flash Security Register */
5336#define NV_FSEC_SEC_MASK (0x3U)
5337#define NV_FSEC_SEC_SHIFT (0U)
5338#define NV_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_SEC_SHIFT)) & NV_FSEC_SEC_MASK)
5339#define NV_FSEC_FSLACC_MASK (0xCU)
5340#define NV_FSEC_FSLACC_SHIFT (2U)
5341#define NV_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_FSLACC_SHIFT)) & NV_FSEC_FSLACC_MASK)
5342#define NV_FSEC_MEEN_MASK (0x30U)
5343#define NV_FSEC_MEEN_SHIFT (4U)
5344#define NV_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_MEEN_SHIFT)) & NV_FSEC_MEEN_MASK)
5345#define NV_FSEC_KEYEN_MASK (0xC0U)
5346#define NV_FSEC_KEYEN_SHIFT (6U)
5347#define NV_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_KEYEN_SHIFT)) & NV_FSEC_KEYEN_MASK)
5348
5349/*! @name FOPT - Non-volatile Flash Option Register */
5350#define NV_FOPT_LPBOOT (0x1U)
5351#define NV_FOPT_EZPORT_DIS (0x2U)
5352
5353/*!
5354 * @}
5355 */ /* end of group NV_Register_Masks */
5356
5357
5358/* NV - Peripheral instance base addresses */
5359/** Peripheral FTFE_FlashConfig base address */
5360#define FTFE_FlashConfig_BASE (0x400u)
5361/** Peripheral FTFE_FlashConfig base pointer */
5362#define FTFE_FlashConfig ((NV_TypeDef *)FTFE_FlashConfig_BASE)
5363/** Array initializer of NV peripheral base addresses */
5364#define NV_BASE_ADDRS { FTFE_FlashConfig_BASE }
5365/** Array initializer of NV peripheral base pointers */
5366#define NV_BASE_PTRS { FTFE_FlashConfig }
5367
5368/*!
5369 * @}
5370 */ /* end of group NV_Peripheral_Access_Layer */
5371
5372
5373/* ----------------------------------------------------------------------------
5374 -- OSC Peripheral Access Layer
5375 ---------------------------------------------------------------------------- */
5376
5377/*!
5378 * @addtogroup OSC_Peripheral_Access_Layer OSC Peripheral Access Layer
5379 * @{
5380 */
5381
5382/** OSC - Register Layout Typedef */
5383typedef struct {
5384 __IO uint8_t CR; /**< OSC Control Register, offset: 0x0 */
5385} OSC_TypeDef;
5386
5387/* ----------------------------------------------------------------------------
5388 -- OSC Register Masks
5389 ---------------------------------------------------------------------------- */
5390
5391/*!
5392 * @addtogroup OSC_Register_Masks OSC Register Masks
5393 * @{
5394 */
5395
5396/*! @name CR - OSC Control Register */
5397#define OSC_CR_SC16P (0x1U)
5398#define OSC_CR_SC8P (0x2U)
5399#define OSC_CR_SC4P (0x4U)
5400#define OSC_CR_SC2P (0x8U)
5401#define OSC_CR_EREFSTEN (0x20U)
5402#define OSC_CR_ERCLKEN (0x80U)
5403
5404
5405/*!
5406 * @}
5407 */ /* end of group OSC_Register_Masks */
5408
5409
5410/* OSC - Peripheral instance base addresses */
5411/** Peripheral OSC base address */
5412#define OSC_BASE (0x40065000u)
5413#define OSC0_BASE OSC_BASE
5414/** Peripheral OSC base pointer */
5415#define OSC ((OSC_TypeDef *)OSC_BASE)
5416#define OSC0 OSC
5417/** Array initializer of OSC peripheral base addresses */
5418#define OSC_BASE_ADDRS { OSC_BASE }
5419/** Array initializer of OSC peripheral base pointers */
5420#define OSC_BASE_PTRS { OSC }
5421
5422/*!
5423 * @}
5424 */ /* end of group OSC_Peripheral_Access_Layer */
5425
5426
5427/* ----------------------------------------------------------------------------
5428 -- PDB Peripheral Access Layer
5429 ---------------------------------------------------------------------------- */
5430
5431/*!
5432 * @addtogroup PDB_Peripheral_Access_Layer PDB Peripheral Access Layer
5433 * @{
5434 */
5435
5436/** PDB - Register Layout Typedef */
5437typedef struct {
5438 __IO uint32_t SC; /**< Status and Control register, offset: 0x0 */
5439 __IO uint32_t MOD; /**< Modulus register, offset: 0x4 */
5440 __I uint32_t CNT; /**< Counter register, offset: 0x8 */
5441 __IO uint32_t IDLY; /**< Interrupt Delay register, offset: 0xC */
5442 struct { /* offset: 0x10, array step: 0x28 */
5443 __IO uint32_t C1; /**< Channel n Control register 1, array offset: 0x10, array step: 0x28 */
5444 __IO uint32_t S; /**< Channel n Status register, array offset: 0x14, array step: 0x28 */
5445 __IO uint32_t DLY[2]; /**< Channel n Delay 0 register..Channel n Delay 1 register, array offset: 0x18, array step: index*0x28, index2*0x4 */
5446 uint8_t RESERVED_0[24];
5447 } CH[2];
5448 uint8_t RESERVED_0[240];
5449 struct { /* offset: 0x150, array step: 0x8 */
5450 __IO uint32_t INTC; /**< DAC Interval Trigger n Control register, array offset: 0x150, array step: 0x8 */
5451 __IO uint32_t INT; /**< DAC Interval n register, array offset: 0x154, array step: 0x8 */
5452 } DAC[2];
5453 uint8_t RESERVED_1[48];
5454 __IO uint32_t POEN; /**< Pulse-Out n Enable register, offset: 0x190 */
5455 __IO uint32_t PODLY[3]; /**< Pulse-Out n Delay register, array offset: 0x194, array step: 0x4 */
5456} PDB_TypeDef;
5457
5458/* ----------------------------------------------------------------------------
5459 -- PDB Register Masks
5460 ---------------------------------------------------------------------------- */
5461
5462/*!
5463 * @addtogroup PDB_Register_Masks PDB Register Masks
5464 * @{
5465 */
5466
5467/*! @name SC - Status and Control register */
5468#define PDB_SC_LDOK (0x1U)
5469#define PDB_SC_CONT (0x2U)
5470#define PDB_SC_MULT_MASK (0xCU)
5471#define PDB_SC_MULT_SHIFT (2U)
5472#define PDB_SC_MULT(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_MULT_SHIFT)) & PDB_SC_MULT_MASK)
5473#define PDB_SC_PDBIE (0x20U)
5474#define PDB_SC_PDBIF (0x40U)
5475#define PDB_SC_PDBEN (0x80U)
5476#define PDB_SC_TRGSEL_MASK (0xF00U)
5477#define PDB_SC_TRGSEL_SHIFT (8U)
5478#define PDB_SC_TRGSEL(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_TRGSEL_SHIFT)) & PDB_SC_TRGSEL_MASK)
5479#define PDB_SC_PRESCALER_MASK (0x7000U)
5480#define PDB_SC_PRESCALER_SHIFT (12U)
5481#define PDB_SC_PRESCALER(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_PRESCALER_SHIFT)) & PDB_SC_PRESCALER_MASK)
5482#define PDB_SC_DMAEN (0x8000U)
5483#define PDB_SC_SWTRIG (0x10000U)
5484#define PDB_SC_PDBEIE (0x20000U)
5485#define PDB_SC_LDMOD_MASK (0xC0000U)
5486#define PDB_SC_LDMOD_SHIFT (18U)
5487#define PDB_SC_LDMOD(x) (((uint32_t)(((uint32_t)(x)) << PDB_SC_LDMOD_SHIFT)) & PDB_SC_LDMOD_MASK)
5488
5489/*! @name MOD - Modulus register */
5490#define PDB_MOD_MOD_MASK (0xFFFFU)
5491#define PDB_MOD_MOD_SHIFT (0U)
5492#define PDB_MOD_MOD(x) (((uint32_t)(((uint32_t)(x)) << PDB_MOD_MOD_SHIFT)) & PDB_MOD_MOD_MASK)
5493
5494/*! @name CNT - Counter register */
5495#define PDB_CNT_CNT_MASK (0xFFFFU)
5496#define PDB_CNT_CNT_SHIFT (0U)
5497#define PDB_CNT_CNT(x) (((uint32_t)(((uint32_t)(x)) << PDB_CNT_CNT_SHIFT)) & PDB_CNT_CNT_MASK)
5498
5499/*! @name IDLY - Interrupt Delay register */
5500#define PDB_IDLY_IDLY_MASK (0xFFFFU)
5501#define PDB_IDLY_IDLY_SHIFT (0U)
5502#define PDB_IDLY_IDLY(x) (((uint32_t)(((uint32_t)(x)) << PDB_IDLY_IDLY_SHIFT)) & PDB_IDLY_IDLY_MASK)
5503
5504/*! @name C1 - Channel n Control register 1 */
5505#define PDB_C1_EN_MASK (0xFFU)
5506#define PDB_C1_EN_SHIFT (0U)
5507#define PDB_C1_EN(x) (((uint32_t)(((uint32_t)(x)) << PDB_C1_EN_SHIFT)) & PDB_C1_EN_MASK)
5508#define PDB_C1_TOS_MASK (0xFF00U)
5509#define PDB_C1_TOS_SHIFT (8U)
5510#define PDB_C1_TOS(x) (((uint32_t)(((uint32_t)(x)) << PDB_C1_TOS_SHIFT)) & PDB_C1_TOS_MASK)
5511#define PDB_C1_BB_MASK (0xFF0000U)
5512#define PDB_C1_BB_SHIFT (16U)
5513#define PDB_C1_BB(x) (((uint32_t)(((uint32_t)(x)) << PDB_C1_BB_SHIFT)) & PDB_C1_BB_MASK)
5514
5515/* The count of PDB_C1 */
5516#define PDB_C1_COUNT (2U)
5517
5518/*! @name S - Channel n Status register */
5519#define PDB_S_ERR_MASK (0xFFU)
5520#define PDB_S_ERR_SHIFT (0U)
5521#define PDB_S_ERR(x) (((uint32_t)(((uint32_t)(x)) << PDB_S_ERR_SHIFT)) & PDB_S_ERR_MASK)
5522#define PDB_S_CF_MASK (0xFF0000U)
5523#define PDB_S_CF_SHIFT (16U)
5524#define PDB_S_CF(x) (((uint32_t)(((uint32_t)(x)) << PDB_S_CF_SHIFT)) & PDB_S_CF_MASK)
5525
5526/* The count of PDB_S */
5527#define PDB_S_COUNT (2U)
5528
5529/*! @name DLY - Channel n Delay 0 register..Channel n Delay 1 register */
5530#define PDB_DLY_DLY_MASK (0xFFFFU)
5531#define PDB_DLY_DLY_SHIFT (0U)
5532#define PDB_DLY_DLY(x) (((uint32_t)(((uint32_t)(x)) << PDB_DLY_DLY_SHIFT)) & PDB_DLY_DLY_MASK)
5533
5534/* The count of PDB_DLY */
5535#define PDB_DLY_COUNT (2U)
5536
5537/* The count of PDB_DLY */
5538#define PDB_DLY_COUNT2 (2U)
5539
5540/*! @name INTC - DAC Interval Trigger n Control register */
5541#define PDB_INTC_TOE (0x1U)
5542#define PDB_INTC_EXT (0x2U)
5543
5544/* The count of PDB_INTC */
5545#define PDB_INTC_COUNT (2U)
5546
5547/*! @name INT - DAC Interval n register */
5548#define PDB_INT_INT_MASK (0xFFFFU)
5549#define PDB_INT_INT_SHIFT (0U)
5550#define PDB_INT_INT(x) (((uint32_t)(((uint32_t)(x)) << PDB_INT_INT_SHIFT)) & PDB_INT_INT_MASK)
5551
5552/* The count of PDB_INT */
5553#define PDB_INT_COUNT (2U)
5554
5555/*! @name POEN - Pulse-Out n Enable register */
5556#define PDB_POEN_POEN_MASK (0xFFU)
5557#define PDB_POEN_POEN_SHIFT (0U)
5558#define PDB_POEN_POEN(x) (((uint32_t)(((uint32_t)(x)) << PDB_POEN_POEN_SHIFT)) & PDB_POEN_POEN_MASK)
5559
5560/*! @name PODLY - Pulse-Out n Delay register */
5561#define PDB_PODLY_DLY2_MASK (0xFFFFU)
5562#define PDB_PODLY_DLY2_SHIFT (0U)
5563#define PDB_PODLY_DLY2(x) (((uint32_t)(((uint32_t)(x)) << PDB_PODLY_DLY2_SHIFT)) & PDB_PODLY_DLY2_MASK)
5564#define PDB_PODLY_DLY1_MASK (0xFFFF0000U)
5565#define PDB_PODLY_DLY1_SHIFT (16U)
5566#define PDB_PODLY_DLY1(x) (((uint32_t)(((uint32_t)(x)) << PDB_PODLY_DLY1_SHIFT)) & PDB_PODLY_DLY1_MASK)
5567
5568/* The count of PDB_PODLY */
5569#define PDB_PODLY_COUNT (3U)
5570
5571
5572/*!
5573 * @}
5574 */ /* end of group PDB_Register_Masks */
5575
5576
5577/* PDB - Peripheral instance base addresses */
5578/** Peripheral PDB0 base address */
5579#define PDB0_BASE (0x40036000u)
5580/** Peripheral PDB0 base pointer */
5581#define PDB0 ((PDB_TypeDef *)PDB0_BASE)
5582/** Array initializer of PDB peripheral base addresses */
5583#define PDB_BASE_ADDRS { PDB0_BASE }
5584/** Array initializer of PDB peripheral base pointers */
5585#define PDB_BASE_PTRS { PDB0 }
5586/** Interrupt vectors for the PDB peripheral type */
5587#define PDB_IRQS { PDB0_IRQn }
5588
5589/*!
5590 * @}
5591 */ /* end of group PDB_Peripheral_Access_Layer */
5592
5593
5594/* ----------------------------------------------------------------------------
5595 -- PIT Peripheral Access Layer
5596 ---------------------------------------------------------------------------- */
5597
5598/*!
5599 * @addtogroup PIT_Peripheral_Access_Layer PIT Peripheral Access Layer
5600 * @{
5601 */
5602
5603/** PIT - Register Layout Typedef */
5604typedef struct {
5605 __IO uint32_t MCR; /**< PIT Module Control Register, offset: 0x0 */
5606 uint8_t RESERVED_0[252];
5607 struct { /* offset: 0x100, array step: 0x10 */
5608 __IO uint32_t LDVAL; /**< Timer Load Value Register, array offset: 0x100, array step: 0x10 */
5609 __I uint32_t CVAL; /**< Current Timer Value Register, array offset: 0x104, array step: 0x10 */
5610 __IO uint32_t TCTRL; /**< Timer Control Register, array offset: 0x108, array step: 0x10 */
5611 __IO uint32_t TFLG; /**< Timer Flag Register, array offset: 0x10C, array step: 0x10 */
5612 } CHANNEL[4];
5613} PIT_TypeDef;
5614
5615/* ----------------------------------------------------------------------------
5616 -- PIT Register Masks
5617 ---------------------------------------------------------------------------- */
5618
5619/*!
5620 * @addtogroup PIT_Register_Masks PIT Register Masks
5621 * @{
5622 */
5623
5624/*! @name MCR - PIT Module Control Register */
5625#define PIT_MCR_FRZ (0x1U)
5626#define PIT_MCR_MDIS (0x2U)
5627
5628/* The count of PIT_LDVAL */
5629#define PIT_LDVAL_COUNT (4U)
5630
5631/* The count of PIT_CVAL */
5632#define PIT_CVAL_COUNT (4U)
5633
5634/*! @name TCTRL - Timer Control Register */
5635#define PIT_TCTRL_TEN (0x1U)
5636#define PIT_TCTRL_TIE (0x2U)
5637#define PIT_TCTRL_CHN (0x4U)
5638
5639/* The count of PIT_TCTRL */
5640#define PIT_TCTRL_COUNT (4U)
5641
5642/*! @name TFLG - Timer Flag Register */
5643#define PIT_TFLG_TIF (0x1U)
5644
5645/* The count of PIT_TFLG */
5646#define PIT_TFLG_COUNT (4U)
5647
5648
5649/*!
5650 * @}
5651 */ /* end of group PIT_Register_Masks */
5652
5653
5654/* PIT - Peripheral instance base addresses */
5655/** Peripheral PIT base address */
5656#define PIT_BASE (0x40037000u)
5657/** Peripheral PIT base pointer */
5658#define PIT ((PIT_TypeDef *)PIT_BASE)
5659/** Array initializer of PIT peripheral base addresses */
5660#define PIT_BASE_ADDRS { PIT_BASE }
5661/** Array initializer of PIT peripheral base pointers */
5662#define PIT_BASE_PTRS { PIT }
5663/** Interrupt vectors for the PIT peripheral type */
5664#define PIT_IRQS { PIT0_IRQn, PIT1_IRQn, PIT2_IRQn, PIT3_IRQn }
5665
5666/*!
5667 * @}
5668 */ /* end of group PIT_Peripheral_Access_Layer */
5669
5670
5671/* ----------------------------------------------------------------------------
5672 -- PMC Peripheral Access Layer
5673 ---------------------------------------------------------------------------- */
5674
5675/*!
5676 * @addtogroup PMC_Peripheral_Access_Layer PMC Peripheral Access Layer
5677 * @{
5678 */
5679
5680/** PMC - Register Layout Typedef */
5681typedef struct {
5682 __IO uint8_t LVDSC1; /**< Low Voltage Detect Status And Control 1 register, offset: 0x0 */
5683 __IO uint8_t LVDSC2; /**< Low Voltage Detect Status And Control 2 register, offset: 0x1 */
5684 __IO uint8_t REGSC; /**< Regulator Status And Control register, offset: 0x2 */
5685} PMC_TypeDef;
5686
5687/* ----------------------------------------------------------------------------
5688 -- PMC Register Masks
5689 ---------------------------------------------------------------------------- */
5690
5691/*!
5692 * @addtogroup PMC_Register_Masks PMC Register Masks
5693 * @{
5694 */
5695
5696/*! @name LVDSC1 - Low Voltage Detect Status And Control 1 register */
5697#define PMC_LVDSC1_LVDV_MASK (0x3U)
5698#define PMC_LVDSC1_LVDV_SHIFT (0U)
5699#define PMC_LVDSC1_LVDV(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDV_SHIFT)) & PMC_LVDSC1_LVDV_MASK)
5700#define PMC_LVDSC1_LVDRE (0x10U)
5701#define PMC_LVDSC1_LVDIE (0x20U)
5702#define PMC_LVDSC1_LVDACK (0x40U)
5703#define PMC_LVDSC1_LVDF (0x80U)
5704
5705/*! @name LVDSC2 - Low Voltage Detect Status And Control 2 register */
5706#define PMC_LVDSC2_LVWV_MASK (0x3U)
5707#define PMC_LVDSC2_LVWV_SHIFT (0U)
5708#define PMC_LVDSC2_LVWV(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWV_SHIFT)) & PMC_LVDSC2_LVWV_MASK)
5709#define PMC_LVDSC2_LVWIE (0x20U)
5710#define PMC_LVDSC2_LVWACK (0x40U)
5711#define PMC_LVDSC2_LVWF (0x80U)
5712
5713/*! @name REGSC - Regulator Status And Control register */
5714#define PMC_REGSC_BGBE (0x1U)
5715#define PMC_REGSC_REGONS (0x4U)
5716#define PMC_REGSC_ACKISO (0x8U)
5717#define PMC_REGSC_BGEN (0x10U)
5718
5719
5720/*!
5721 * @}
5722 */ /* end of group PMC_Register_Masks */
5723
5724
5725/* PMC - Peripheral instance base addresses */
5726/** Peripheral PMC base address */
5727#define PMC_BASE (0x4007D000u)
5728/** Peripheral PMC base pointer */
5729#define PMC ((PMC_TypeDef *)PMC_BASE)
5730/** Array initializer of PMC peripheral base addresses */
5731#define PMC_BASE_ADDRS { PMC_BASE }
5732/** Array initializer of PMC peripheral base pointers */
5733#define PMC_BASE_PTRS { PMC }
5734/** Interrupt vectors for the PMC peripheral type */
5735#define PMC_IRQS { LVD_LVW_IRQn }
5736
5737/*!
5738 * @}
5739 */ /* end of group PMC_Peripheral_Access_Layer */
5740
5741
5742/* ----------------------------------------------------------------------------
5743 -- PORT Peripheral Access Layer
5744 ---------------------------------------------------------------------------- */
5745
5746/*!
5747 * @addtogroup PORT_Peripheral_Access_Layer PORT Peripheral Access Layer
5748 * @{
5749 */
5750
5751/** PORT - Register Layout Typedef */
5752typedef struct {
5753 __IO uint32_t PCR[32]; /**< Pin Control Register n, array offset: 0x0, array step: 0x4 */
5754 __O uint32_t GPCLR; /**< Global Pin Control Low Register, offset: 0x80 */
5755 __O uint32_t GPCHR; /**< Global Pin Control High Register, offset: 0x84 */
5756 uint8_t RESERVED_0[24];
5757 __IO uint32_t ISFR; /**< Interrupt Status Flag Register, offset: 0xA0 */
5758 uint8_t RESERVED_1[28];
5759 __IO uint32_t DFER; /**< Digital Filter Enable Register, offset: 0xC0 */
5760 __IO uint32_t DFCR; /**< Digital Filter Clock Register, offset: 0xC4 */
5761 __IO uint32_t DFWR; /**< Digital Filter Width Register, offset: 0xC8 */
5762} PORT_TypeDef;
5763
5764/* ----------------------------------------------------------------------------
5765 -- PORT Register Masks
5766 ---------------------------------------------------------------------------- */
5767
5768/*!
5769 * @addtogroup PORT_Register_Masks PORT Register Masks
5770 * @{
5771 */
5772
5773/*! @name PCR - Pin Control Register n */
5774#define PORTx_PCRn_PS (0x1U)
5775#define PORTx_PCRn_PE (0x2U)
5776#define PORTx_PCRn_SRE (0x4U)
5777#define PORTx_PCRn_PFE (0x10U)
5778#define PORTx_PCRn_ODE (0x20U)
5779#define PORTx_PCRn_DSE (0x40U)
5780#define PORTx_PCRn_MUX_MASK (0x700U)
5781#define PORTx_PCRn_MUX_SHIFT (8U)
5782#define PORTx_PCRn_MUX(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_MUX_SHIFT)) & PORTx_PCRn_MUX_MASK)
5783#define PORTx_PCRn_LK (0x8000U)
5784#define PORTx_PCRn_IRQC_MASK (0xF0000U)
5785#define PORTx_PCRn_IRQC_SHIFT (16U)
5786#define PORTx_PCRn_IRQC(x) (((uint32_t)(((uint32_t)(x)) << PORTx_PCRn_IRQC_SHIFT)) & PORTx_PCRn_IRQC_MASK)
5787#define PORTx_PCRn_ISF (0x1000000U)
5788
5789/* The count of PORT_PCR */
5790#define PORT_PCR_COUNT (32U)
5791
5792/*! @name GPCLR - Global Pin Control Low Register */
5793#define PORT_GPCLR_GPWD_MASK (0xFFFFU)
5794#define PORT_GPCLR_GPWD_SHIFT (0U)
5795#define PORT_GPCLR_GPWD(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCLR_GPWD_SHIFT)) & PORT_GPCLR_GPWD_MASK)
5796#define PORT_GPCLR_GPWE_MASK (0xFFFF0000U)
5797#define PORT_GPCLR_GPWE_SHIFT (16U)
5798#define PORT_GPCLR_GPWE(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCLR_GPWE_SHIFT)) & PORT_GPCLR_GPWE_MASK)
5799
5800/*! @name GPCHR - Global Pin Control High Register */
5801#define PORT_GPCHR_GPWD_MASK (0xFFFFU)
5802#define PORT_GPCHR_GPWD_SHIFT (0U)
5803#define PORT_GPCHR_GPWD(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCHR_GPWD_SHIFT)) & PORT_GPCHR_GPWD_MASK)
5804#define PORT_GPCHR_GPWE_MASK (0xFFFF0000U)
5805#define PORT_GPCHR_GPWE_SHIFT (16U)
5806#define PORT_GPCHR_GPWE(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCHR_GPWE_SHIFT)) & PORT_GPCHR_GPWE_MASK)
5807
5808/*! @name DFCR - Digital Filter Clock Register */
5809#define PORT_DFCR_CS (0x1U)
5810
5811/*! @name DFWR - Digital Filter Width Register */
5812#define PORT_DFWR_FILT_MASK (0x1FU)
5813#define PORT_DFWR_FILT_SHIFT (0U)
5814#define PORT_DFWR_FILT(x) (((uint32_t)(((uint32_t)(x)) << PORT_DFWR_FILT_SHIFT)) & PORT_DFWR_FILT_MASK)
5815
5816
5817/*!
5818 * @}
5819 */ /* end of group PORT_Register_Masks */
5820
5821
5822/* PORT - Peripheral instance base addresses */
5823/** Peripheral PORTA base address */
5824#define PORTA_BASE (0x40049000u)
5825/** Peripheral PORTA base pointer */
5826#define PORTA ((PORT_TypeDef *)PORTA_BASE)
5827/** Peripheral PORTB base address */
5828#define PORTB_BASE (0x4004A000u)
5829/** Peripheral PORTB base pointer */
5830#define PORTB ((PORT_TypeDef *)PORTB_BASE)
5831/** Peripheral PORTC base address */
5832#define PORTC_BASE (0x4004B000u)
5833/** Peripheral PORTC base pointer */
5834#define PORTC ((PORT_TypeDef *)PORTC_BASE)
5835/** Peripheral PORTD base address */
5836#define PORTD_BASE (0x4004C000u)
5837/** Peripheral PORTD base pointer */
5838#define PORTD ((PORT_TypeDef *)PORTD_BASE)
5839/** Peripheral PORTE base address */
5840#define PORTE_BASE (0x4004D000u)
5841/** Peripheral PORTE base pointer */
5842#define PORTE ((PORT_TypeDef *)PORTE_BASE)
5843/** Array initializer of PORT peripheral base addresses */
5844#define PORT_BASE_ADDRS { PORTA_BASE, PORTB_BASE, PORTC_BASE, PORTD_BASE, PORTE_BASE }
5845/** Array initializer of PORT peripheral base pointers */
5846#define PORT_BASE_PTRS { PORTA, PORTB, PORTC, PORTD, PORTE }
5847/** Interrupt vectors for the PORT peripheral type */
5848#define PORT_IRQS { PORTA_IRQn, PORTB_IRQn, PORTC_IRQn, PORTD_IRQn, PORTE_IRQn }
5849
5850/*!
5851 * @}
5852 */ /* end of group PORT_Peripheral_Access_Layer */
5853
5854
5855/* ----------------------------------------------------------------------------
5856 -- RCM Peripheral Access Layer
5857 ---------------------------------------------------------------------------- */
5858
5859/*!
5860 * @addtogroup RCM_Peripheral_Access_Layer RCM Peripheral Access Layer
5861 * @{
5862 */
5863
5864/** RCM - Register Layout Typedef */
5865typedef struct {
5866 __I uint8_t SRS0; /**< System Reset Status Register 0, offset: 0x0 */
5867 __I uint8_t SRS1; /**< System Reset Status Register 1, offset: 0x1 */
5868 uint8_t RESERVED_0[2];
5869 __IO uint8_t RPFC; /**< Reset Pin Filter Control register, offset: 0x4 */
5870 __IO uint8_t RPFW; /**< Reset Pin Filter Width register, offset: 0x5 */
5871 uint8_t RESERVED_1[1];
5872 __I uint8_t MR; /**< Mode Register, offset: 0x7 */
5873} RCM_TypeDef;
5874
5875/* ----------------------------------------------------------------------------
5876 -- RCM Register Masks
5877 ---------------------------------------------------------------------------- */
5878
5879/*!
5880 * @addtogroup RCM_Register_Masks RCM Register Masks
5881 * @{
5882 */
5883
5884/*! @name SRS0 - System Reset Status Register 0 */
5885#define RCM_SRS0_WAKEUP (0x1U)
5886#define RCM_SRS0_LVD (0x2U)
5887#define RCM_SRS0_LOC (0x4U)
5888#define RCM_SRS0_LOL (0x8U)
5889#define RCM_SRS0_WDOG (0x20U)
5890#define RCM_SRS0_PIN (0x40U)
5891#define RCM_SRS0_POR (0x80U)
5892
5893/*! @name SRS1 - System Reset Status Register 1 */
5894#define RCM_SRS1_JTAG (0x1U)
5895#define RCM_SRS1_LOCKUP (0x2U)
5896#define RCM_SRS1_SW (0x4U)
5897#define RCM_SRS1_MDM_AP (0x8U)
5898#define RCM_SRS1_EZPT (0x10U)
5899#define RCM_SRS1_SACKERR (0x20U)
5900
5901/*! @name RPFC - Reset Pin Filter Control register */
5902#define RCM_RPFC_RSTFLTSRW_MASK (0x3U)
5903#define RCM_RPFC_RSTFLTSRW_SHIFT (0U)
5904#define RCM_RPFC_RSTFLTSRW(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFC_RSTFLTSRW_SHIFT)) & RCM_RPFC_RSTFLTSRW_MASK)
5905#define RCM_RPFC_RSTFLTSS (0x4U)
5906
5907/*! @name RPFW - Reset Pin Filter Width register */
5908#define RCM_RPFW_RSTFLTSEL_MASK (0x1FU)
5909#define RCM_RPFW_RSTFLTSEL_SHIFT (0U)
5910#define RCM_RPFW_RSTFLTSEL(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFW_RSTFLTSEL_SHIFT)) & RCM_RPFW_RSTFLTSEL_MASK)
5911
5912/*! @name MR - Mode Register */
5913#define RCM_MR_EZP_MS (0x2U)
5914
5915
5916/*!
5917 * @}
5918 */ /* end of group RCM_Register_Masks */
5919
5920
5921/* RCM - Peripheral instance base addresses */
5922/** Peripheral RCM base address */
5923#define RCM_BASE (0x4007F000u)
5924/** Peripheral RCM base pointer */
5925#define RCM ((RCM_TypeDef *)RCM_BASE)
5926/** Array initializer of RCM peripheral base addresses */
5927#define RCM_BASE_ADDRS { RCM_BASE }
5928/** Array initializer of RCM peripheral base pointers */
5929#define RCM_BASE_PTRS { RCM }
5930
5931/*!
5932 * @}
5933 */ /* end of group RCM_Peripheral_Access_Layer */
5934
5935
5936/* ----------------------------------------------------------------------------
5937 -- RFSYS Peripheral Access Layer
5938 ---------------------------------------------------------------------------- */
5939
5940/*!
5941 * @addtogroup RFSYS_Peripheral_Access_Layer RFSYS Peripheral Access Layer
5942 * @{
5943 */
5944
5945/** RFSYS - Register Layout Typedef */
5946typedef struct {
5947 __IO uint32_t REG[8]; /**< Register file register, array offset: 0x0, array step: 0x4 */
5948} RFSYS_TypeDef;
5949
5950/* ----------------------------------------------------------------------------
5951 -- RFSYS Register Masks
5952 ---------------------------------------------------------------------------- */
5953
5954/*!
5955 * @addtogroup RFSYS_Register_Masks RFSYS Register Masks
5956 * @{
5957 */
5958
5959/*! @name REG - Register file register */
5960#define RFSYS_REG_LL_MASK (0xFFU)
5961#define RFSYS_REG_LL_SHIFT (0U)
5962#define RFSYS_REG_LL(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_LL_SHIFT)) & RFSYS_REG_LL_MASK)
5963#define RFSYS_REG_LH_MASK (0xFF00U)
5964#define RFSYS_REG_LH_SHIFT (8U)
5965#define RFSYS_REG_LH(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_LH_SHIFT)) & RFSYS_REG_LH_MASK)
5966#define RFSYS_REG_HL_MASK (0xFF0000U)
5967#define RFSYS_REG_HL_SHIFT (16U)
5968#define RFSYS_REG_HL(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_HL_SHIFT)) & RFSYS_REG_HL_MASK)
5969#define RFSYS_REG_HH_MASK (0xFF000000U)
5970#define RFSYS_REG_HH_SHIFT (24U)
5971#define RFSYS_REG_HH(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_HH_SHIFT)) & RFSYS_REG_HH_MASK)
5972
5973/* The count of RFSYS_REG */
5974#define RFSYS_REG_COUNT (8U)
5975
5976
5977/*!
5978 * @}
5979 */ /* end of group RFSYS_Register_Masks */
5980
5981
5982/* RFSYS - Peripheral instance base addresses */
5983/** Peripheral RFSYS base address */
5984#define RFSYS_BASE (0x40041000u)
5985/** Peripheral RFSYS base pointer */
5986#define RFSYS ((RFSYS_TypeDef *)RFSYS_BASE)
5987/** Array initializer of RFSYS peripheral base addresses */
5988#define RFSYS_BASE_ADDRS { RFSYS_BASE }
5989/** Array initializer of RFSYS peripheral base pointers */
5990#define RFSYS_BASE_PTRS { RFSYS }
5991
5992/*!
5993 * @}
5994 */ /* end of group RFSYS_Peripheral_Access_Layer */
5995
5996
5997/* ----------------------------------------------------------------------------
5998 -- RFVBAT Peripheral Access Layer
5999 ---------------------------------------------------------------------------- */
6000
6001/*!
6002 * @addtogroup RFVBAT_Peripheral_Access_Layer RFVBAT Peripheral Access Layer
6003 * @{
6004 */
6005
6006/** RFVBAT - Register Layout Typedef */
6007typedef struct {
6008 __IO uint32_t REG[8]; /**< VBAT register file register, array offset: 0x0, array step: 0x4 */
6009} RFVBAT_TypeDef;
6010
6011/* ----------------------------------------------------------------------------
6012 -- RFVBAT Register Masks
6013 ---------------------------------------------------------------------------- */
6014
6015/*!
6016 * @addtogroup RFVBAT_Register_Masks RFVBAT Register Masks
6017 * @{
6018 */
6019
6020/*! @name REG - VBAT register file register */
6021#define RFVBAT_REG_LL_MASK (0xFFU)
6022#define RFVBAT_REG_LL_SHIFT (0U)
6023#define RFVBAT_REG_LL(x) (((uint32_t)(((uint32_t)(x)) << RFVBAT_REG_LL_SHIFT)) & RFVBAT_REG_LL_MASK)
6024#define RFVBAT_REG_LH_MASK (0xFF00U)
6025#define RFVBAT_REG_LH_SHIFT (8U)
6026#define RFVBAT_REG_LH(x) (((uint32_t)(((uint32_t)(x)) << RFVBAT_REG_LH_SHIFT)) & RFVBAT_REG_LH_MASK)
6027#define RFVBAT_REG_HL_MASK (0xFF0000U)
6028#define RFVBAT_REG_HL_SHIFT (16U)
6029#define RFVBAT_REG_HL(x) (((uint32_t)(((uint32_t)(x)) << RFVBAT_REG_HL_SHIFT)) & RFVBAT_REG_HL_MASK)
6030#define RFVBAT_REG_HH_MASK (0xFF000000U)
6031#define RFVBAT_REG_HH_SHIFT (24U)
6032#define RFVBAT_REG_HH(x) (((uint32_t)(((uint32_t)(x)) << RFVBAT_REG_HH_SHIFT)) & RFVBAT_REG_HH_MASK)
6033
6034/* The count of RFVBAT_REG */
6035#define RFVBAT_REG_COUNT (8U)
6036
6037
6038/*!
6039 * @}
6040 */ /* end of group RFVBAT_Register_Masks */
6041
6042
6043/* RFVBAT - Peripheral instance base addresses */
6044/** Peripheral RFVBAT base address */
6045#define RFVBAT_BASE (0x4003E000u)
6046/** Peripheral RFVBAT base pointer */
6047#define RFVBAT ((RFVBAT_TypeDef *)RFVBAT_BASE)
6048/** Array initializer of RFVBAT peripheral base addresses */
6049#define RFVBAT_BASE_ADDRS { RFVBAT_BASE }
6050/** Array initializer of RFVBAT peripheral base pointers */
6051#define RFVBAT_BASE_PTRS { RFVBAT }
6052
6053/*!
6054 * @}
6055 */ /* end of group RFVBAT_Peripheral_Access_Layer */
6056
6057
6058/* ----------------------------------------------------------------------------
6059 -- RNG Peripheral Access Layer
6060 ---------------------------------------------------------------------------- */
6061
6062/*!
6063 * @addtogroup RNG_Peripheral_Access_Layer RNG Peripheral Access Layer
6064 * @{
6065 */
6066
6067/** RNG - Register Layout Typedef */
6068typedef struct {
6069 __IO uint32_t CR; /**< RNGA Control Register, offset: 0x0 */
6070 __I uint32_t SR; /**< RNGA Status Register, offset: 0x4 */
6071 __O uint32_t ER; /**< RNGA Entropy Register, offset: 0x8 */
6072 __I uint32_t OR; /**< RNGA Output Register, offset: 0xC */
6073} RNG_TypeDef;
6074
6075/* ----------------------------------------------------------------------------
6076 -- RNG Register Masks
6077 ---------------------------------------------------------------------------- */
6078
6079/*!
6080 * @addtogroup RNG_Register_Masks RNG Register Masks
6081 * @{
6082 */
6083
6084/*! @name CR - RNGA Control Register */
6085#define RNG_CR_GO (0x1U)
6086#define RNG_CR_HA (0x2U)
6087#define RNG_CR_INTM (0x4U)
6088#define RNG_CR_CLRI (0x8U)
6089#define RNG_CR_SLP (0x10U)
6090
6091/*! @name SR - RNGA Status Register */
6092#define RNG_SR_SECV (0x1U)
6093#define RNG_SR_LRS (0x2U)
6094#define RNG_SR_ORU (0x4U)
6095#define RNG_SR_ERRI (0x8U)
6096#define RNG_SR_SLP (0x10U)
6097#define RNG_SR_OREG_LVL_MASK (0xFF00U)
6098#define RNG_SR_OREG_LVL_SHIFT (8U)
6099#define RNG_SR_OREG_LVL(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_LVL_SHIFT)) & RNG_SR_OREG_LVL_MASK)
6100#define RNG_SR_OREG_SIZE_MASK (0xFF0000U)
6101#define RNG_SR_OREG_SIZE_SHIFT (16U)
6102#define RNG_SR_OREG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_SIZE_SHIFT)) & RNG_SR_OREG_SIZE_MASK)
6103
6104/*!
6105 * @}
6106 */ /* end of group RNG_Register_Masks */
6107
6108
6109/* RNG - Peripheral instance base addresses */
6110/** Peripheral RNG base address */
6111#define RNG_BASE (0x40029000u)
6112/** Peripheral RNG base pointer */
6113#define RNG ((RNG_TypeDef *)RNG_BASE)
6114/** Array initializer of RNG peripheral base addresses */
6115#define RNG_BASE_ADDRS { RNG_BASE }
6116/** Array initializer of RNG peripheral base pointers */
6117#define RNG_BASE_PTRS { RNG }
6118/** Interrupt vectors for the RNG peripheral type */
6119#define RNG_IRQS { RNG_IRQn }
6120
6121/*!
6122 * @}
6123 */ /* end of group RNG_Peripheral_Access_Layer */
6124
6125
6126/* ----------------------------------------------------------------------------
6127 -- RTC Peripheral Access Layer
6128 ---------------------------------------------------------------------------- */
6129
6130/*!
6131 * @addtogroup RTC_Peripheral_Access_Layer RTC Peripheral Access Layer
6132 * @{
6133 */
6134
6135/** RTC - Register Layout Typedef */
6136typedef struct {
6137 __IO uint32_t TSR; /**< RTC Time Seconds Register, offset: 0x0 */
6138 __IO uint32_t TPR; /**< RTC Time Prescaler Register, offset: 0x4 */
6139 __IO uint32_t TAR; /**< RTC Time Alarm Register, offset: 0x8 */
6140 __IO uint32_t TCR; /**< RTC Time Compensation Register, offset: 0xC */
6141 __IO uint32_t CR; /**< RTC Control Register, offset: 0x10 */
6142 __IO uint32_t SR; /**< RTC Status Register, offset: 0x14 */
6143 __IO uint32_t LR; /**< RTC Lock Register, offset: 0x18 */
6144 __IO uint32_t IER; /**< RTC Interrupt Enable Register, offset: 0x1C */
6145 uint8_t RESERVED_0[2016];
6146 __IO uint32_t WAR; /**< RTC Write Access Register, offset: 0x800 */
6147 __IO uint32_t RAR; /**< RTC Read Access Register, offset: 0x804 */
6148} RTC_TypeDef;
6149
6150/* ----------------------------------------------------------------------------
6151 -- RTC Register Masks
6152 ---------------------------------------------------------------------------- */
6153
6154/*!
6155 * @addtogroup RTC_Register_Masks RTC Register Masks
6156 * @{
6157 */
6158
6159/*! @name TPR - RTC Time Prescaler Register */
6160#define RTC_TPR_TPR_MASK (0xFFFFU)
6161#define RTC_TPR_TPR_SHIFT (0U)
6162#define RTC_TPR_TPR(x) (((uint32_t)(((uint32_t)(x)) << RTC_TPR_TPR_SHIFT)) & RTC_TPR_TPR_MASK)
6163
6164/*! @name TCR - RTC Time Compensation Register */
6165#define RTC_TCR_TCR_MASK (0xFFU)
6166#define RTC_TCR_TCR_SHIFT (0U)
6167#define RTC_TCR_TCR(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_TCR_SHIFT)) & RTC_TCR_TCR_MASK)
6168#define RTC_TCR_CIR_MASK (0xFF00U)
6169#define RTC_TCR_CIR_SHIFT (8U)
6170#define RTC_TCR_CIR(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_CIR_SHIFT)) & RTC_TCR_CIR_MASK)
6171#define RTC_TCR_TCV_MASK (0xFF0000U)
6172#define RTC_TCR_TCV_SHIFT (16U)
6173#define RTC_TCR_TCV(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_TCV_SHIFT)) & RTC_TCR_TCV_MASK)
6174#define RTC_TCR_CIC_MASK (0xFF000000U)
6175#define RTC_TCR_CIC_SHIFT (24U)
6176#define RTC_TCR_CIC(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_CIC_SHIFT)) & RTC_TCR_CIC_MASK)
6177
6178/*! @name CR - RTC Control Register */
6179#define RTC_CR_SWR (0x1U)
6180#define RTC_CR_WPE (0x2U)
6181#define RTC_CR_SUP (0x4U)
6182#define RTC_CR_UM (0x8U)
6183#define RTC_CR_WPS (0x10U)
6184#define RTC_CR_OSCE (0x100U)
6185#define RTC_CR_CLKO (0x200U)
6186#define RTC_CR_SC16P (0x400U)
6187#define RTC_CR_SC8P (0x800U)
6188#define RTC_CR_SC4P (0x1000U)
6189#define RTC_CR_SC2P (0x2000U)
6190
6191/*! @name SR - RTC Status Register */
6192#define RTC_SR_TIF (0x1U)
6193#define RTC_SR_TOF (0x2U)
6194#define RTC_SR_TAF (0x4U)
6195#define RTC_SR_TCE (0x10U)
6196
6197/*! @name LR - RTC Lock Register */
6198#define RTC_LR_TCL (0x8U)
6199#define RTC_LR_CRL (0x10U)
6200#define RTC_LR_SRL (0x20U)
6201#define RTC_LR_LRL (0x40U)
6202
6203/*! @name IER - RTC Interrupt Enable Register */
6204#define RTC_IER_TIIE (0x1U)
6205#define RTC_IER_TOIE (0x2U)
6206#define RTC_IER_TAIE (0x4U)
6207#define RTC_IER_TSIE (0x10U)
6208#define RTC_IER_WPON (0x80U)
6209
6210/*! @name WAR - RTC Write Access Register */
6211#define RTC_WAR_TSRW (0x1U)
6212#define RTC_WAR_TPRW (0x2U)
6213#define RTC_WAR_TARW (0x4U)
6214#define RTC_WAR_TCRW (0x8U)
6215#define RTC_WAR_CRW (0x10U)
6216#define RTC_WAR_SRW (0x20U)
6217#define RTC_WAR_LRW (0x40U)
6218#define RTC_WAR_IERW (0x80U)
6219
6220/*! @name RAR - RTC Read Access Register */
6221#define RTC_RAR_TSRR (0x1U)
6222#define RTC_RAR_TPRR (0x2U)
6223#define RTC_RAR_TARR (0x4U)
6224#define RTC_RAR_TCRR (0x8U)
6225#define RTC_RAR_CRR (0x10U)
6226#define RTC_RAR_SRR (0x20U)
6227#define RTC_RAR_LRR (0x40U)
6228#define RTC_RAR_IERR (0x80U)
6229
6230
6231/*!
6232 * @}
6233 */ /* end of group RTC_Register_Masks */
6234
6235
6236/* RTC - Peripheral instance base addresses */
6237/** Peripheral RTC base address */
6238#define RTC_BASE (0x4003D000u)
6239/** Peripheral RTC base pointer */
6240#define RTC ((RTC_TypeDef *)RTC_BASE)
6241/** Array initializer of RTC peripheral base addresses */
6242#define RTC_BASE_ADDRS { RTC_BASE }
6243/** Array initializer of RTC peripheral base pointers */
6244#define RTC_BASE_PTRS { RTC }
6245/** Interrupt vectors for the RTC peripheral type */
6246#define RTC_IRQS { RTC_IRQn }
6247#define RTC_SECONDS_IRQS { RTC_Seconds_IRQn }
6248
6249/*!
6250 * @}
6251 */ /* end of group RTC_Peripheral_Access_Layer */
6252
6253
6254/* ----------------------------------------------------------------------------
6255 -- SDHC Peripheral Access Layer
6256 ---------------------------------------------------------------------------- */
6257
6258/*!
6259 * @addtogroup SDHC_Peripheral_Access_Layer SDHC Peripheral Access Layer
6260 * @{
6261 */
6262
6263/** SDHC - Register Layout Typedef */
6264typedef struct {
6265 __IO uint32_t DSADDR; /**< DMA System Address register, offset: 0x0 */
6266 __IO uint32_t BLKATTR; /**< Block Attributes register, offset: 0x4 */
6267 __IO uint32_t CMDARG; /**< Command Argument register, offset: 0x8 */
6268 __IO uint32_t XFERTYP; /**< Transfer Type register, offset: 0xC */
6269 __I uint32_t CMDRSP[4]; /**< Command Response 0..Command Response 3, array offset: 0x10, array step: 0x4 */
6270 __IO uint32_t DATPORT; /**< Buffer Data Port register, offset: 0x20 */
6271 __I uint32_t PRSSTAT; /**< Present State register, offset: 0x24 */
6272 __IO uint32_t PROCTL; /**< Protocol Control register, offset: 0x28 */
6273 __IO uint32_t SYSCTL; /**< System Control register, offset: 0x2C */
6274 __IO uint32_t IRQSTAT; /**< Interrupt Status register, offset: 0x30 */
6275 __IO uint32_t IRQSTATEN; /**< Interrupt Status Enable register, offset: 0x34 */
6276 __IO uint32_t IRQSIGEN; /**< Interrupt Signal Enable register, offset: 0x38 */
6277 __I uint32_t AC12ERR; /**< Auto CMD12 Error Status Register, offset: 0x3C */
6278 __I uint32_t HTCAPBLT; /**< Host Controller Capabilities, offset: 0x40 */
6279 __IO uint32_t WML; /**< Watermark Level Register, offset: 0x44 */
6280 uint8_t RESERVED_0[8];
6281 __O uint32_t FEVT; /**< Force Event register, offset: 0x50 */
6282 __I uint32_t ADMAES; /**< ADMA Error Status register, offset: 0x54 */
6283 __IO uint32_t ADSADDR; /**< ADMA System Addressregister, offset: 0x58 */
6284 uint8_t RESERVED_1[100];
6285 __IO uint32_t VENDOR; /**< Vendor Specific register, offset: 0xC0 */
6286 __IO uint32_t MMCBOOT; /**< MMC Boot register, offset: 0xC4 */
6287 uint8_t RESERVED_2[52];
6288 __I uint32_t HOSTVER; /**< Host Controller Version, offset: 0xFC */
6289} SDHC_TypeDef;
6290
6291/* ----------------------------------------------------------------------------
6292 -- SDHC Register Masks
6293 ---------------------------------------------------------------------------- */
6294
6295/*!
6296 * @addtogroup SDHC_Register_Masks SDHC Register Masks
6297 * @{
6298 */
6299
6300/*! @name BLKATTR - Block Attributes register */
6301#define SDHC_BLKATTR_BLKSIZE_MASK (0x1FFFU)
6302#define SDHC_BLKATTR_BLKSIZE_SHIFT (0U)
6303#define SDHC_BLKATTR_BLKSIZE(x) (((uint32_t)(((uint32_t)(x)) << SDHC_BLKATTR_BLKSIZE_SHIFT)) & SDHC_BLKATTR_BLKSIZE_MASK)
6304#define SDHC_BLKATTR_BLKCNT_MASK (0xFFFF0000U)
6305#define SDHC_BLKATTR_BLKCNT_SHIFT (16U)
6306#define SDHC_BLKATTR_BLKCNT(x) (((uint32_t)(((uint32_t)(x)) << SDHC_BLKATTR_BLKCNT_SHIFT)) & SDHC_BLKATTR_BLKCNT_MASK)
6307
6308/*! @name XFERTYP - Transfer Type register */
6309#define SDHC_XFERTYP_DMAEN (0x1U)
6310#define SDHC_XFERTYP_BCEN (0x2U)
6311#define SDHC_XFERTYP_AC12EN (0x4U)
6312#define SDHC_XFERTYP_DTDSEL (0x10U)
6313#define SDHC_XFERTYP_MSBSEL (0x20U)
6314#define SDHC_XFERTYP_RSPTYP_MASK (0x30000U)
6315#define SDHC_XFERTYP_RSPTYP_SHIFT (16U)
6316#define SDHC_XFERTYP_RSPTYP(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_RSPTYP_SHIFT)) & SDHC_XFERTYP_RSPTYP_MASK)
6317#define SDHC_XFERTYP_CCCEN (0x80000U)
6318#define SDHC_XFERTYP_CICEN (0x100000U)
6319#define SDHC_XFERTYP_DPSEL (0x200000U)
6320#define SDHC_XFERTYP_CMDTYP_MASK (0xC00000U)
6321#define SDHC_XFERTYP_CMDTYP_SHIFT (22U)
6322#define SDHC_XFERTYP_CMDTYP(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_CMDTYP_SHIFT)) & SDHC_XFERTYP_CMDTYP_MASK)
6323#define SDHC_XFERTYP_CMDINX_MASK (0x3F000000U)
6324#define SDHC_XFERTYP_CMDINX_SHIFT (24U)
6325#define SDHC_XFERTYP_CMDINX(x) (((uint32_t)(((uint32_t)(x)) << SDHC_XFERTYP_CMDINX_SHIFT)) & SDHC_XFERTYP_CMDINX_MASK)
6326
6327/* The count of SDHC_CMDRSP */
6328#define SDHC_CMDRSP_COUNT (4U)
6329
6330/*! @name PRSSTAT - Present State register */
6331#define SDHC_PRSSTAT_CIHB (0x1U)
6332#define SDHC_PRSSTAT_CDIHB (0x2U)
6333#define SDHC_PRSSTAT_DLA (0x4U)
6334#define SDHC_PRSSTAT_SDSTB (0x8U)
6335#define SDHC_PRSSTAT_IPGOFF (0x10U)
6336#define SDHC_PRSSTAT_HCKOFF (0x20U)
6337#define SDHC_PRSSTAT_PEROFF (0x40U)
6338#define SDHC_PRSSTAT_SDOFF (0x80U)
6339#define SDHC_PRSSTAT_WTA (0x100U)
6340#define SDHC_PRSSTAT_RTA (0x200U)
6341#define SDHC_PRSSTAT_BWEN (0x400U)
6342#define SDHC_PRSSTAT_BREN (0x800U)
6343#define SDHC_PRSSTAT_CINS (0x10000U)
6344#define SDHC_PRSSTAT_CLSL (0x800000U)
6345#define SDHC_PRSSTAT_DLSL_MASK (0xFF000000U)
6346#define SDHC_PRSSTAT_DLSL_SHIFT (24U)
6347#define SDHC_PRSSTAT_DLSL(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PRSSTAT_DLSL_SHIFT)) & SDHC_PRSSTAT_DLSL_MASK)
6348
6349/*! @name PROCTL - Protocol Control register */
6350#define SDHC_PROCTL_LCTL (0x1U)
6351#define SDHC_PROCTL_DTW_MASK (0x6U)
6352#define SDHC_PROCTL_DTW_SHIFT (1U)
6353#define SDHC_PROCTL_DTW(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_DTW_SHIFT)) & SDHC_PROCTL_DTW_MASK)
6354#define SDHC_PROCTL_D3CD (0x8U)
6355#define SDHC_PROCTL_EMODE_MASK (0x30U)
6356#define SDHC_PROCTL_EMODE_SHIFT (4U)
6357#define SDHC_PROCTL_EMODE(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_EMODE_SHIFT)) & SDHC_PROCTL_EMODE_MASK)
6358#define SDHC_PROCTL_CDTL (0x40U)
6359#define SDHC_PROCTL_CDSS (0x80U)
6360#define SDHC_PROCTL_DMAS_MASK (0x300U)
6361#define SDHC_PROCTL_DMAS_SHIFT (8U)
6362#define SDHC_PROCTL_DMAS(x) (((uint32_t)(((uint32_t)(x)) << SDHC_PROCTL_DMAS_SHIFT)) & SDHC_PROCTL_DMAS_MASK)
6363#define SDHC_PROCTL_SABGREQ (0x10000U)
6364#define SDHC_PROCTL_CREQ (0x20000U)
6365#define SDHC_PROCTL_RWCTL (0x40000U)
6366#define SDHC_PROCTL_IABG (0x80000U)
6367#define SDHC_PROCTL_WECINT (0x1000000U)
6368#define SDHC_PROCTL_WECINS (0x2000000U)
6369#define SDHC_PROCTL_WECRM (0x4000000U)
6370
6371/*! @name SYSCTL - System Control register */
6372#define SDHC_SYSCTL_IPGEN (0x1U)
6373#define SDHC_SYSCTL_HCKEN (0x2U)
6374#define SDHC_SYSCTL_PEREN (0x4U)
6375#define SDHC_SYSCTL_SDCLKEN (0x8U)
6376#define SDHC_SYSCTL_DVS_MASK (0xF0U)
6377#define SDHC_SYSCTL_DVS_SHIFT (4U)
6378#define SDHC_SYSCTL_DVS(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_DVS_SHIFT)) & SDHC_SYSCTL_DVS_MASK)
6379#define SDHC_SYSCTL_SDCLKFS_MASK (0xFF00U)
6380#define SDHC_SYSCTL_SDCLKFS_SHIFT (8U)
6381#define SDHC_SYSCTL_SDCLKFS(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_SDCLKFS_SHIFT)) & SDHC_SYSCTL_SDCLKFS_MASK)
6382#define SDHC_SYSCTL_DTOCV_MASK (0xF0000U)
6383#define SDHC_SYSCTL_DTOCV_SHIFT (16U)
6384#define SDHC_SYSCTL_DTOCV(x) (((uint32_t)(((uint32_t)(x)) << SDHC_SYSCTL_DTOCV_SHIFT)) & SDHC_SYSCTL_DTOCV_MASK)
6385#define SDHC_SYSCTL_RSTA (0x1000000U)
6386#define SDHC_SYSCTL_RSTC (0x2000000U)
6387#define SDHC_SYSCTL_RSTD (0x4000000U)
6388#define SDHC_SYSCTL_INITA (0x8000000U)
6389
6390/*! @name IRQSTAT - Interrupt Status register */
6391#define SDHC_IRQSTAT_CC (0x1U)
6392#define SDHC_IRQSTAT_TC (0x2U)
6393#define SDHC_IRQSTAT_BGE (0x4U)
6394#define SDHC_IRQSTAT_DINT (0x8U)
6395#define SDHC_IRQSTAT_BWR (0x10U)
6396#define SDHC_IRQSTAT_BRR (0x20U)
6397#define SDHC_IRQSTAT_CINS (0x40U)
6398#define SDHC_IRQSTAT_CRM (0x80U)
6399#define SDHC_IRQSTAT_CINT (0x100U)
6400#define SDHC_IRQSTAT_CTOE (0x10000U)
6401#define SDHC_IRQSTAT_CCE (0x20000U)
6402#define SDHC_IRQSTAT_CEBE (0x40000U)
6403#define SDHC_IRQSTAT_CIE (0x80000U)
6404#define SDHC_IRQSTAT_DTOE (0x100000U)
6405#define SDHC_IRQSTAT_DCE (0x200000U)
6406#define SDHC_IRQSTAT_DEBE (0x400000U)
6407#define SDHC_IRQSTAT_AC12E (0x1000000U)
6408#define SDHC_IRQSTAT_DMAE (0x10000000U)
6409
6410/*! @name IRQSTATEN - Interrupt Status Enable register */
6411#define SDHC_IRQSTATEN_CCSEN (0x1U)
6412#define SDHC_IRQSTATEN_TCSEN (0x2U)
6413#define SDHC_IRQSTATEN_BGESEN (0x4U)
6414#define SDHC_IRQSTATEN_DINTSEN (0x8U)
6415#define SDHC_IRQSTATEN_BWRSEN (0x10U)
6416#define SDHC_IRQSTATEN_BRRSEN (0x20U)
6417#define SDHC_IRQSTATEN_CINSEN (0x40U)
6418#define SDHC_IRQSTATEN_CRMSEN (0x80U)
6419#define SDHC_IRQSTATEN_CINTSEN (0x100U)
6420#define SDHC_IRQSTATEN_CTOESEN (0x10000U)
6421#define SDHC_IRQSTATEN_CCESEN (0x20000U)
6422#define SDHC_IRQSTATEN_CEBESEN (0x40000U)
6423#define SDHC_IRQSTATEN_CIESEN (0x80000U)
6424#define SDHC_IRQSTATEN_DTOESEN (0x100000U)
6425#define SDHC_IRQSTATEN_DCESEN (0x200000U)
6426#define SDHC_IRQSTATEN_DEBESEN (0x400000U)
6427#define SDHC_IRQSTATEN_AC12ESEN (0x1000000U)
6428#define SDHC_IRQSTATEN_DMAESEN (0x10000000U)
6429
6430/*! @name IRQSIGEN - Interrupt Signal Enable register */
6431#define SDHC_IRQSIGEN_CCIEN (0x1U)
6432#define SDHC_IRQSIGEN_TCIEN (0x2U)
6433#define SDHC_IRQSIGEN_BGEIEN (0x4U)
6434#define SDHC_IRQSIGEN_DINTIEN (0x8U)
6435#define SDHC_IRQSIGEN_BWRIEN (0x10U)
6436#define SDHC_IRQSIGEN_BRRIEN (0x20U)
6437#define SDHC_IRQSIGEN_CINSIEN (0x40U)
6438#define SDHC_IRQSIGEN_CRMIEN (0x80U)
6439#define SDHC_IRQSIGEN_CINTIEN (0x100U)
6440#define SDHC_IRQSIGEN_CTOEIEN (0x10000U)
6441#define SDHC_IRQSIGEN_CCEIEN (0x20000U)
6442#define SDHC_IRQSIGEN_CEBEIEN (0x40000U)
6443#define SDHC_IRQSIGEN_CIEIEN (0x80000U)
6444#define SDHC_IRQSIGEN_DTOEIEN (0x100000U)
6445#define SDHC_IRQSIGEN_DCEIEN (0x200000U)
6446#define SDHC_IRQSIGEN_DEBEIEN (0x400000U)
6447#define SDHC_IRQSIGEN_AC12EIEN (0x1000000U)
6448#define SDHC_IRQSIGEN_DMAEIEN (0x10000000U)
6449
6450/*! @name AC12ERR - Auto CMD12 Error Status Register */
6451#define SDHC_AC12ERR_AC12NE (0x1U)
6452#define SDHC_AC12ERR_AC12TOE (0x2U)
6453#define SDHC_AC12ERR_AC12EBE (0x4U)
6454#define SDHC_AC12ERR_AC12CE (0x8U)
6455#define SDHC_AC12ERR_AC12IE (0x10U)
6456#define SDHC_AC12ERR_CNIBAC12E (0x80U)
6457
6458/*! @name HTCAPBLT - Host Controller Capabilities */
6459#define SDHC_HTCAPBLT_MBL_MASK (0x70000U)
6460#define SDHC_HTCAPBLT_MBL_SHIFT (16U)
6461#define SDHC_HTCAPBLT_MBL(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HTCAPBLT_MBL_SHIFT)) & SDHC_HTCAPBLT_MBL_MASK)
6462#define SDHC_HTCAPBLT_ADMAS (0x100000U)
6463#define SDHC_HTCAPBLT_HSS (0x200000U)
6464#define SDHC_HTCAPBLT_DMAS (0x400000U)
6465#define SDHC_HTCAPBLT_SRS (0x800000U)
6466#define SDHC_HTCAPBLT_VS33 (0x1000000U)
6467
6468/*! @name WML - Watermark Level Register */
6469#define SDHC_WML_RDWML_MASK (0xFFU)
6470#define SDHC_WML_RDWML_SHIFT (0U)
6471#define SDHC_WML_RDWML(x) (((uint32_t)(((uint32_t)(x)) << SDHC_WML_RDWML_SHIFT)) & SDHC_WML_RDWML_MASK)
6472#define SDHC_WML_WRWML_MASK (0xFF0000U)
6473#define SDHC_WML_WRWML_SHIFT (16U)
6474#define SDHC_WML_WRWML(x) (((uint32_t)(((uint32_t)(x)) << SDHC_WML_WRWML_SHIFT)) & SDHC_WML_WRWML_MASK)
6475
6476/*! @name FEVT - Force Event register */
6477#define SDHC_FEVT_AC12NE (0x1U)
6478#define SDHC_FEVT_AC12TOE (0x2U)
6479#define SDHC_FEVT_AC12CE (0x4U)
6480#define SDHC_FEVT_AC12EBE (0x8U)
6481#define SDHC_FEVT_AC12IE (0x10U)
6482#define SDHC_FEVT_CNIBAC12E (0x80U)
6483#define SDHC_FEVT_CTOE (0x10000U)
6484#define SDHC_FEVT_CCE (0x20000U)
6485#define SDHC_FEVT_CEBE (0x40000U)
6486#define SDHC_FEVT_CIE (0x80000U)
6487#define SDHC_FEVT_DTOE (0x100000U)
6488#define SDHC_FEVT_DCE (0x200000U)
6489#define SDHC_FEVT_DEBE (0x400000U)
6490#define SDHC_FEVT_AC12E (0x1000000U)
6491#define SDHC_FEVT_DMAE (0x10000000U)
6492#define SDHC_FEVT_CINT (0x80000000U)
6493
6494/*! @name ADMAES - ADMA Error Status register */
6495#define SDHC_ADMAES_ADMAES_MASK (0x3U)
6496#define SDHC_ADMAES_ADMAES_SHIFT (0U)
6497#define SDHC_ADMAES_ADMAES(x) (((uint32_t)(((uint32_t)(x)) << SDHC_ADMAES_ADMAES_SHIFT)) & SDHC_ADMAES_ADMAES_MASK)
6498#define SDHC_ADMAES_ADMALME (0x4U)
6499#define SDHC_ADMAES_ADMADCE (0x8U)
6500
6501/*! @name VENDOR - Vendor Specific register */
6502#define SDHC_VENDOR_EXTDMAEN (0x1U)
6503#define SDHC_VENDOR_EXBLKNU (0x2U)
6504#define SDHC_VENDOR_INTSTVAL_MASK (0xFF0000U)
6505#define SDHC_VENDOR_INTSTVAL_SHIFT (16U)
6506#define SDHC_VENDOR_INTSTVAL(x) (((uint32_t)(((uint32_t)(x)) << SDHC_VENDOR_INTSTVAL_SHIFT)) & SDHC_VENDOR_INTSTVAL_MASK)
6507
6508/*! @name MMCBOOT - MMC Boot register */
6509#define SDHC_MMCBOOT_DTOCVACK_MASK (0xFU)
6510#define SDHC_MMCBOOT_DTOCVACK_SHIFT (0U)
6511#define SDHC_MMCBOOT_DTOCVACK(x) (((uint32_t)(((uint32_t)(x)) << SDHC_MMCBOOT_DTOCVACK_SHIFT)) & SDHC_MMCBOOT_DTOCVACK_MASK)
6512#define SDHC_MMCBOOT_BOOTACK (0x10U)
6513#define SDHC_MMCBOOT_BOOTMODE (0x20U)
6514#define SDHC_MMCBOOT_BOOTEN (0x40U)
6515#define SDHC_MMCBOOT_AUTOSABGEN (0x80U)
6516#define SDHC_MMCBOOT_BOOTBLKCNT_MASK (0xFFFF0000U)
6517#define SDHC_MMCBOOT_BOOTBLKCNT_SHIFT (16U)
6518#define SDHC_MMCBOOT_BOOTBLKCNT(x) (((uint32_t)(((uint32_t)(x)) << SDHC_MMCBOOT_BOOTBLKCNT_SHIFT)) & SDHC_MMCBOOT_BOOTBLKCNT_MASK)
6519
6520/*! @name HOSTVER - Host Controller Version */
6521#define SDHC_HOSTVER_SVN_MASK (0xFFU)
6522#define SDHC_HOSTVER_SVN_SHIFT (0U)
6523#define SDHC_HOSTVER_SVN(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HOSTVER_SVN_SHIFT)) & SDHC_HOSTVER_SVN_MASK)
6524#define SDHC_HOSTVER_VVN_MASK (0xFF00U)
6525#define SDHC_HOSTVER_VVN_SHIFT (8U)
6526#define SDHC_HOSTVER_VVN(x) (((uint32_t)(((uint32_t)(x)) << SDHC_HOSTVER_VVN_SHIFT)) & SDHC_HOSTVER_VVN_MASK)
6527
6528
6529/*!
6530 * @}
6531 */ /* end of group SDHC_Register_Masks */
6532
6533
6534/* SDHC - Peripheral instance base addresses */
6535/** Peripheral SDHC base address */
6536#define SDHC_BASE (0x400B1000u)
6537/** Peripheral SDHC base pointer */
6538#define SDHC ((SDHC_TypeDef *)SDHC_BASE)
6539/** Array initializer of SDHC peripheral base addresses */
6540#define SDHC_BASE_ADDRS { SDHC_BASE }
6541/** Array initializer of SDHC peripheral base pointers */
6542#define SDHC_BASE_PTRS { SDHC }
6543/** Interrupt vectors for the SDHC peripheral type */
6544#define SDHC_IRQS { SDHC_IRQn }
6545
6546/*!
6547 * @}
6548 */ /* end of group SDHC_Peripheral_Access_Layer */
6549
6550
6551/* ----------------------------------------------------------------------------
6552 -- SIM Peripheral Access Layer
6553 ---------------------------------------------------------------------------- */
6554
6555/*!
6556 * @addtogroup SIM_Peripheral_Access_Layer SIM Peripheral Access Layer
6557 * @{
6558 */
6559
6560/** SIM - Register Layout Typedef */
6561typedef struct {
6562 __IO uint32_t SOPT1; /**< System Options Register 1, offset: 0x0 */
6563 __IO uint32_t SOPT1CFG; /**< SOPT1 Configuration Register, offset: 0x4 */
6564 uint8_t RESERVED_0[4092];
6565 __IO uint32_t SOPT2; /**< System Options Register 2, offset: 0x1004 */
6566 uint8_t RESERVED_1[4];
6567 __IO uint32_t SOPT4; /**< System Options Register 4, offset: 0x100C */
6568 __IO uint32_t SOPT5; /**< System Options Register 5, offset: 0x1010 */
6569 uint8_t RESERVED_2[4];
6570 __IO uint32_t SOPT7; /**< System Options Register 7, offset: 0x1018 */
6571 uint8_t RESERVED_3[8];
6572 __I uint32_t SDID; /**< System Device Identification Register, offset: 0x1024 */
6573 __IO uint32_t SCGC1; /**< System Clock Gating Control Register 1, offset: 0x1028 */
6574 __IO uint32_t SCGC2; /**< System Clock Gating Control Register 2, offset: 0x102C */
6575 __IO uint32_t SCGC3; /**< System Clock Gating Control Register 3, offset: 0x1030 */
6576 __IO uint32_t SCGC4; /**< System Clock Gating Control Register 4, offset: 0x1034 */
6577 __IO uint32_t SCGC5; /**< System Clock Gating Control Register 5, offset: 0x1038 */
6578 __IO uint32_t SCGC6; /**< System Clock Gating Control Register 6, offset: 0x103C */
6579 __IO uint32_t SCGC7; /**< System Clock Gating Control Register 7, offset: 0x1040 */
6580 __IO uint32_t CLKDIV1; /**< System Clock Divider Register 1, offset: 0x1044 */
6581 __IO uint32_t CLKDIV2; /**< System Clock Divider Register 2, offset: 0x1048 */
6582 __IO uint32_t FCFG1; /**< Flash Configuration Register 1, offset: 0x104C */
6583 __I uint32_t FCFG2; /**< Flash Configuration Register 2, offset: 0x1050 */
6584 __I uint32_t UIDH; /**< Unique Identification Register High, offset: 0x1054 */
6585 __I uint32_t UIDMH; /**< Unique Identification Register Mid-High, offset: 0x1058 */
6586 __I uint32_t UIDML; /**< Unique Identification Register Mid Low, offset: 0x105C */
6587 __I uint32_t UIDL; /**< Unique Identification Register Low, offset: 0x1060 */
6588} SIM_TypeDef;
6589
6590/* ----------------------------------------------------------------------------
6591 -- SIM Register Masks
6592 ---------------------------------------------------------------------------- */
6593
6594/*!
6595 * @addtogroup SIM_Register_Masks SIM Register Masks
6596 * @{
6597 */
6598
6599/*! @name SOPT1 - System Options Register 1 */
6600#define SIM_SOPT1_RAMSIZE_MASK (0xF000U)
6601#define SIM_SOPT1_RAMSIZE_SHIFT (12U)
6602#define SIM_SOPT1_RAMSIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_RAMSIZE_SHIFT)) & SIM_SOPT1_RAMSIZE_MASK)
6603#define SIM_SOPT1_OSC32KSEL_MASK (0xC0000U)
6604#define SIM_SOPT1_OSC32KSEL_SHIFT (18U)
6605#define SIM_SOPT1_OSC32KSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_OSC32KSEL_SHIFT)) & SIM_SOPT1_OSC32KSEL_MASK)
6606#define SIM_SOPT1_USBVSTBY (0x20000000U)
6607#define SIM_SOPT1_USBSSTBY (0x40000000U)
6608#define SIM_SOPT1_USBREGEN (0x80000000U)
6609
6610/*! @name SOPT1CFG - SOPT1 Configuration Register */
6611#define SIM_SOPT1CFG_URWE (0x1000000U)
6612#define SIM_SOPT1CFG_UVSWE (0x2000000U)
6613#define SIM_SOPT1CFG_USSWE (0x4000000U)
6614
6615/*! @name SOPT2 - System Options Register 2 */
6616#define SIM_SOPT2_RTCCLKOUTSEL (0x10U)
6617#define SIM_SOPT2_CLKOUTSEL_MASK (0xE0U)
6618#define SIM_SOPT2_CLKOUTSEL_SHIFT (5U)
6619#define SIM_SOPT2_CLKOUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_CLKOUTSEL_SHIFT)) & SIM_SOPT2_CLKOUTSEL_MASK)
6620#define SIM_SOPT2_FBSL_MASK (0x300U)
6621#define SIM_SOPT2_FBSL_SHIFT (8U)
6622#define SIM_SOPT2_FBSL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_FBSL_SHIFT)) & SIM_SOPT2_FBSL_MASK)
6623#define SIM_SOPT2_PTD7PAD (0x800U)
6624#define SIM_SOPT2_TRACECLKSEL (0x1000U)
6625#define SIM_SOPT2_PLLFLLSEL_MASK (0x30000U)
6626#define SIM_SOPT2_PLLFLLSEL_SHIFT (16U)
6627#define SIM_SOPT2_PLLFLLSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_PLLFLLSEL_SHIFT)) & SIM_SOPT2_PLLFLLSEL_MASK)
6628#define SIM_SOPT2_PLLFLLSEL_MCGFLL SIM_SOPT2_PLLFLLSEL(0)
6629#define SIM_SOPT2_PLLFLLSEL_MCGPLL SIM_SOPT2_PLLFLLSEL(1)
6630#define SIM_SOPT2_PLLFLLSEL_IRC48M SIM_SOPT2_PLLFLLSEL(3)
6631#define SIM_SOPT2_USBSRC (0x40000U)
6632#define SIM_SOPT2_RMIISRC (0x80000U)
6633#define SIM_SOPT2_TIMESRC_MASK (0x300000U)
6634#define SIM_SOPT2_TIMESRC_SHIFT (20U)
6635#define SIM_SOPT2_TIMESRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_TIMESRC_SHIFT)) & SIM_SOPT2_TIMESRC_MASK)
6636#define SIM_SOPT2_SDHCSRC_MASK (0x30000000U)
6637#define SIM_SOPT2_SDHCSRC_SHIFT (28U)
6638#define SIM_SOPT2_SDHCSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_SDHCSRC_SHIFT)) & SIM_SOPT2_SDHCSRC_MASK)
6639
6640/*! @name SOPT4 - System Options Register 4 */
6641#define SIM_SOPT4_FTM0FLT0 (0x1U)
6642#define SIM_SOPT4_FTM0FLT1 (0x2U)
6643#define SIM_SOPT4_FTM0FLT2 (0x4U)
6644#define SIM_SOPT4_FTM1FLT0 (0x10U)
6645#define SIM_SOPT4_FTM2FLT0 (0x100U)
6646#define SIM_SOPT4_FTM3FLT0 (0x1000U)
6647#define SIM_SOPT4_FTM1CH0SRC_MASK (0xC0000U)
6648#define SIM_SOPT4_FTM1CH0SRC_SHIFT (18U)
6649#define SIM_SOPT4_FTM1CH0SRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM1CH0SRC_SHIFT)) & SIM_SOPT4_FTM1CH0SRC_MASK)
6650#define SIM_SOPT4_FTM2CH0SRC_MASK (0x300000U)
6651#define SIM_SOPT4_FTM2CH0SRC_SHIFT (20U)
6652#define SIM_SOPT4_FTM2CH0SRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_FTM2CH0SRC_SHIFT)) & SIM_SOPT4_FTM2CH0SRC_MASK)
6653#define SIM_SOPT4_FTM0CLKSEL (0x1000000U)
6654#define SIM_SOPT4_FTM1CLKSEL (0x2000000U)
6655#define SIM_SOPT4_FTM2CLKSEL (0x4000000U)
6656#define SIM_SOPT4_FTM3CLKSEL (0x8000000U)
6657#define SIM_SOPT4_FTM0TRG0SRC (0x10000000U)
6658#define SIM_SOPT4_FTM0TRG1SRC (0x20000000U)
6659#define SIM_SOPT4_FTM3TRG0SRC (0x40000000U)
6660#define SIM_SOPT4_FTM3TRG1SRC (0x80000000U)
6661
6662/*! @name SOPT5 - System Options Register 5 */
6663#define SIM_SOPT5_UART0TXSRC_MASK (0x3U)
6664#define SIM_SOPT5_UART0TXSRC_SHIFT (0U)
6665#define SIM_SOPT5_UART0TXSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART0TXSRC_SHIFT)) & SIM_SOPT5_UART0TXSRC_MASK)
6666#define SIM_SOPT5_UART0RXSRC_MASK (0xCU)
6667#define SIM_SOPT5_UART0RXSRC_SHIFT (2U)
6668#define SIM_SOPT5_UART0RXSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART0RXSRC_SHIFT)) & SIM_SOPT5_UART0RXSRC_MASK)
6669#define SIM_SOPT5_UART1TXSRC_MASK (0x30U)
6670#define SIM_SOPT5_UART1TXSRC_SHIFT (4U)
6671#define SIM_SOPT5_UART1TXSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART1TXSRC_SHIFT)) & SIM_SOPT5_UART1TXSRC_MASK)
6672#define SIM_SOPT5_UART1RXSRC_MASK (0xC0U)
6673#define SIM_SOPT5_UART1RXSRC_SHIFT (6U)
6674#define SIM_SOPT5_UART1RXSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART1RXSRC_SHIFT)) & SIM_SOPT5_UART1RXSRC_MASK)
6675
6676/*! @name SOPT7 - System Options Register 7 */
6677#define SIM_SOPT7_ADC0TRGSEL_MASK (0xFU)
6678#define SIM_SOPT7_ADC0TRGSEL_SHIFT (0U)
6679#define SIM_SOPT7_ADC0TRGSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC0TRGSEL_SHIFT)) & SIM_SOPT7_ADC0TRGSEL_MASK)
6680#define SIM_SOPT7_ADC0PRETRGSEL (0x10U)
6681#define SIM_SOPT7_ADC0ALTTRGEN (0x80U)
6682#define SIM_SOPT7_ADC1TRGSEL_MASK (0xF00U)
6683#define SIM_SOPT7_ADC1TRGSEL_SHIFT (8U)
6684#define SIM_SOPT7_ADC1TRGSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC1TRGSEL_SHIFT)) & SIM_SOPT7_ADC1TRGSEL_MASK)
6685#define SIM_SOPT7_ADC1PRETRGSEL (0x1000U)
6686#define SIM_SOPT7_ADC1ALTTRGEN (0x8000U)
6687
6688/*! @name SDID - System Device Identification Register */
6689#define SIM_SDID_PINID_MASK (0xFU)
6690#define SIM_SDID_PINID_SHIFT (0U)
6691#define SIM_SDID_PINID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_PINID_SHIFT)) & SIM_SDID_PINID_MASK)
6692#define SIM_SDID_FAMID_MASK (0x70U)
6693#define SIM_SDID_FAMID_SHIFT (4U)
6694#define SIM_SDID_FAMID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_FAMID_SHIFT)) & SIM_SDID_FAMID_MASK)
6695#define SIM_SDID_DIEID_MASK (0xF80U)
6696#define SIM_SDID_DIEID_SHIFT (7U)
6697#define SIM_SDID_DIEID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_DIEID_SHIFT)) & SIM_SDID_DIEID_MASK)
6698#define SIM_SDID_REVID_MASK (0xF000U)
6699#define SIM_SDID_REVID_SHIFT (12U)
6700#define SIM_SDID_REVID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_REVID_SHIFT)) & SIM_SDID_REVID_MASK)
6701#define SIM_SDID_SERIESID_MASK (0xF00000U)
6702#define SIM_SDID_SERIESID_SHIFT (20U)
6703#define SIM_SDID_SERIESID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SERIESID_SHIFT)) & SIM_SDID_SERIESID_MASK)
6704#define SIM_SDID_SUBFAMID_MASK (0xF000000U)
6705#define SIM_SDID_SUBFAMID_SHIFT (24U)
6706#define SIM_SDID_SUBFAMID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SUBFAMID_SHIFT)) & SIM_SDID_SUBFAMID_MASK)
6707#define SIM_SDID_FAMILYID_MASK (0xF0000000U)
6708#define SIM_SDID_FAMILYID_SHIFT (28U)
6709#define SIM_SDID_FAMILYID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_FAMILYID_SHIFT)) & SIM_SDID_FAMILYID_MASK)
6710
6711/*! @name SCGC1 - System Clock Gating Control Register 1 */
6712#define SIM_SCGC1_I2C2 (0x40U)
6713#define SIM_SCGC1_UART4 (0x400U)
6714#define SIM_SCGC1_UART5 (0x800U)
6715
6716/*! @name SCGC2 - System Clock Gating Control Register 2 */
6717#define SIM_SCGC2_ENET (0x1U)
6718#define SIM_SCGC2_DAC0 (0x1000U)
6719#define SIM_SCGC2_DAC1 (0x2000U)
6720
6721/*! @name SCGC3 - System Clock Gating Control Register 3 */
6722#define SIM_SCGC3_RNGA (0x1U)
6723#define SIM_SCGC3_SPI2 (0x1000U)
6724#define SIM_SCGC3_SDHC (0x20000U)
6725#define SIM_SCGC3_FTM2 (0x1000000U)
6726#define SIM_SCGC3_FTM3 (0x2000000U)
6727#define SIM_SCGC3_ADC1 (0x8000000U)
6728
6729/*! @name SCGC4 - System Clock Gating Control Register 4 */
6730#define SIM_SCGC4_EWM (0x2U)
6731#define SIM_SCGC4_CMT (0x4U)
6732#define SIM_SCGC4_I2C0 (0x40U)
6733#define SIM_SCGC4_I2C1 (0x80U)
6734#define SIM_SCGC4_UART0 (0x400U)
6735#define SIM_SCGC4_UART1 (0x800U)
6736#define SIM_SCGC4_UART2 (0x1000U)
6737#define SIM_SCGC4_UART3 (0x2000U)
6738#define SIM_SCGC4_USBOTG (0x40000U)
6739#define SIM_SCGC4_CMP (0x80000U)
6740#define SIM_SCGC4_VREF (0x100000U)
6741
6742/*! @name SCGC5 - System Clock Gating Control Register 5 */
6743#define SIM_SCGC5_LPTMR (0x1U)
6744#define SIM_SCGC5_PORTA (0x200U)
6745#define SIM_SCGC5_PORTB (0x400U)
6746#define SIM_SCGC5_PORTC (0x800U)
6747#define SIM_SCGC5_PORTD (0x1000U)
6748#define SIM_SCGC5_PORTE (0x2000U)
6749
6750/*! @name SCGC6 - System Clock Gating Control Register 6 */
6751#define SIM_SCGC6_FTF (0x1U)
6752#define SIM_SCGC6_DMAMUX (0x2U)
6753#define SIM_SCGC6_FLEXCAN0 (0x10U)
6754#define SIM_SCGC6_RNGA (0x200U)
6755#define SIM_SCGC6_SPI0 (0x1000U)
6756#define SIM_SCGC6_SPI1 (0x2000U)
6757#define SIM_SCGC6_I2S (0x8000U)
6758#define SIM_SCGC6_CRC (0x40000U)
6759#define SIM_SCGC6_USBDCD (0x200000U)
6760#define SIM_SCGC6_PDB (0x400000U)
6761#define SIM_SCGC6_PIT (0x800000U)
6762#define SIM_SCGC6_FTM0 (0x1000000U)
6763#define SIM_SCGC6_FTM1 (0x2000000U)
6764#define SIM_SCGC6_FTM2 (0x4000000U)
6765#define SIM_SCGC6_ADC0 (0x8000000U)
6766#define SIM_SCGC6_RTC (0x20000000U)
6767#define SIM_SCGC6_DAC0 (0x80000000U)
6768
6769/*! @name SCGC7 - System Clock Gating Control Register 7 */
6770#define SIM_SCGC7_FLEXBUS (0x1U)
6771#define SIM_SCGC7_DMA (0x2U)
6772#define SIM_SCGC7_MPU (0x4U)
6773
6774/*! @name CLKDIV1 - System Clock Divider Register 1 */
6775#define SIM_CLKDIV1_OUTDIV4_MASK (0xF0000U)
6776#define SIM_CLKDIV1_OUTDIV4_SHIFT (16U)
6777#define SIM_CLKDIV1_OUTDIV4(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV4_SHIFT)) & SIM_CLKDIV1_OUTDIV4_MASK)
6778#define SIM_CLKDIV1_OUTDIV3_MASK (0xF00000U)
6779#define SIM_CLKDIV1_OUTDIV3_SHIFT (20U)
6780#define SIM_CLKDIV1_OUTDIV3(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV3_SHIFT)) & SIM_CLKDIV1_OUTDIV3_MASK)
6781#define SIM_CLKDIV1_OUTDIV2_MASK (0xF000000U)
6782#define SIM_CLKDIV1_OUTDIV2_SHIFT (24U)
6783#define SIM_CLKDIV1_OUTDIV2(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV2_SHIFT)) & SIM_CLKDIV1_OUTDIV2_MASK)
6784#define SIM_CLKDIV1_OUTDIV1_MASK (0xF0000000U)
6785#define SIM_CLKDIV1_OUTDIV1_SHIFT (28U)
6786#define SIM_CLKDIV1_OUTDIV1(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV1_SHIFT)) & SIM_CLKDIV1_OUTDIV1_MASK)
6787
6788/*! @name CLKDIV2 - System Clock Divider Register 2 */
6789#define SIM_CLKDIV2_USBFRAC (0x1U)
6790#define SIM_CLKDIV2_USBDIV_MASK (0xEU)
6791#define SIM_CLKDIV2_USBDIV_SHIFT (1U)
6792#define SIM_CLKDIV2_USBDIV(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV2_USBDIV_SHIFT)) & SIM_CLKDIV2_USBDIV_MASK)
6793
6794/*! @name FCFG1 - Flash Configuration Register 1 */
6795#define SIM_FCFG1_FLASHDIS (0x1U)
6796#define SIM_FCFG1_FLASHDOZE (0x2U)
6797#define SIM_FCFG1_DEPART_MASK (0xF00U)
6798#define SIM_FCFG1_DEPART_SHIFT (8U)
6799#define SIM_FCFG1_DEPART(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_DEPART_SHIFT)) & SIM_FCFG1_DEPART_MASK)
6800#define SIM_FCFG1_EESIZE_MASK (0xF0000U)
6801#define SIM_FCFG1_EESIZE_SHIFT (16U)
6802#define SIM_FCFG1_EESIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_EESIZE_SHIFT)) & SIM_FCFG1_EESIZE_MASK)
6803#define SIM_FCFG1_PFSIZE_MASK (0xF000000U)
6804#define SIM_FCFG1_PFSIZE_SHIFT (24U)
6805#define SIM_FCFG1_PFSIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_PFSIZE_SHIFT)) & SIM_FCFG1_PFSIZE_MASK)
6806#define SIM_FCFG1_NVMSIZE_MASK (0xF0000000U)
6807#define SIM_FCFG1_NVMSIZE_SHIFT (28U)
6808#define SIM_FCFG1_NVMSIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_NVMSIZE_SHIFT)) & SIM_FCFG1_NVMSIZE_MASK)
6809
6810/*! @name FCFG2 - Flash Configuration Register 2 */
6811#define SIM_FCFG2_MAXADDR1_MASK (0x7F0000U)
6812#define SIM_FCFG2_MAXADDR1_SHIFT (16U)
6813#define SIM_FCFG2_MAXADDR1(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_MAXADDR1_SHIFT)) & SIM_FCFG2_MAXADDR1_MASK)
6814#define SIM_FCFG2_PFLSH (0x800000U)
6815#define SIM_FCFG2_MAXADDR0_MASK (0x7F000000U)
6816#define SIM_FCFG2_MAXADDR0_SHIFT (24U)
6817#define SIM_FCFG2_MAXADDR0(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_MAXADDR0_SHIFT)) & SIM_FCFG2_MAXADDR0_MASK)
6818
6819
6820/*!
6821 * @}
6822 */ /* end of group SIM_Register_Masks */
6823
6824
6825/* SIM - Peripheral instance base addresses */
6826/** Peripheral SIM base address */
6827#define SIM_BASE (0x40047000u)
6828/** Peripheral SIM base pointer */
6829#define SIM ((SIM_TypeDef *)SIM_BASE)
6830/** Array initializer of SIM peripheral base addresses */
6831#define SIM_BASE_ADDRS { SIM_BASE }
6832/** Array initializer of SIM peripheral base pointers */
6833#define SIM_BASE_PTRS { SIM }
6834
6835/*!
6836 * @}
6837 */ /* end of group SIM_Peripheral_Access_Layer */
6838
6839
6840/* ----------------------------------------------------------------------------
6841 -- SMC Peripheral Access Layer
6842 ---------------------------------------------------------------------------- */
6843
6844/*!
6845 * @addtogroup SMC_Peripheral_Access_Layer SMC Peripheral Access Layer
6846 * @{
6847 */
6848
6849/** SMC - Register Layout Typedef */
6850typedef struct {
6851 __IO uint8_t PMPROT; /**< Power Mode Protection register, offset: 0x0 */
6852 __IO uint8_t PMCTRL; /**< Power Mode Control register, offset: 0x1 */
6853 __IO uint8_t VLLSCTRL; /**< VLLS Control register, offset: 0x2 */
6854 __I uint8_t PMSTAT; /**< Power Mode Status register, offset: 0x3 */
6855} SMC_TypeDef;
6856
6857/* ----------------------------------------------------------------------------
6858 -- SMC Register Masks
6859 ---------------------------------------------------------------------------- */
6860
6861/*!
6862 * @addtogroup SMC_Register_Masks SMC Register Masks
6863 * @{
6864 */
6865
6866/*! @name PMPROT - Power Mode Protection register */
6867#define SMC_PMPROT_AVLLS (0x2U)
6868#define SMC_PMPROT_ALLS (0x8U)
6869#define SMC_PMPROT_AVLP (0x20U)
6870
6871/*! @name PMCTRL - Power Mode Control register */
6872#define SMC_PMCTRL_STOPM_MASK (0x7U)
6873#define SMC_PMCTRL_STOPM_SHIFT (0U)
6874#define SMC_PMCTRL_STOPM(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_STOPM_SHIFT)) & SMC_PMCTRL_STOPM_MASK)
6875#define SMC_PMCTRL_STOPA (0x8U)
6876#define SMC_PMCTRL_RUNM_MASK (0x60U)
6877#define SMC_PMCTRL_RUNM_SHIFT (5U)
6878#define SMC_PMCTRL_RUNM(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_RUNM_SHIFT)) & SMC_PMCTRL_RUNM_MASK)
6879#define SMC_PMCTRL_LPWUI (0x80U)
6880
6881/*! @name VLLSCTRL - VLLS Control register */
6882#define SMC_VLLSCTRL_VLLSM_MASK (0x7U)
6883#define SMC_VLLSCTRL_VLLSM_SHIFT (0U)
6884#define SMC_VLLSCTRL_VLLSM(x) (((uint8_t)(((uint8_t)(x)) << SMC_VLLSCTRL_VLLSM_SHIFT)) & SMC_VLLSCTRL_VLLSM_MASK)
6885#define SMC_VLLSCTRL_PORPO (0x20U)
6886
6887/*! @name PMSTAT - Power Mode Status register */
6888#define SMC_PMSTAT_PMSTAT_MASK (0x7FU)
6889#define SMC_PMSTAT_PMSTAT_SHIFT (0U)
6890#define SMC_PMSTAT_PMSTAT(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMSTAT_PMSTAT_SHIFT)) & SMC_PMSTAT_PMSTAT_MASK)
6891
6892
6893/*!
6894 * @}
6895 */ /* end of group SMC_Register_Masks */
6896
6897
6898/* SMC - Peripheral instance base addresses */
6899/** Peripheral SMC base address */
6900#define SMC_BASE (0x4007E000u)
6901/** Peripheral SMC base pointer */
6902#define SMC ((SMC_TypeDef *)SMC_BASE)
6903/** Array initializer of SMC peripheral base addresses */
6904#define SMC_BASE_ADDRS { SMC_BASE }
6905/** Array initializer of SMC peripheral base pointers */
6906#define SMC_BASE_PTRS { SMC }
6907
6908/*!
6909 * @}
6910 */ /* end of group SMC_Peripheral_Access_Layer */
6911
6912
6913/* ----------------------------------------------------------------------------
6914 -- SPI Peripheral Access Layer
6915 ---------------------------------------------------------------------------- */
6916
6917/*!
6918 * @addtogroup SPI_Peripheral_Access_Layer SPI Peripheral Access Layer
6919 * @{
6920 */
6921
6922/** SPI - Register Layout Typedef */
6923typedef struct {
6924 __IO uint32_t MCR; /**< Module Configuration Register, offset: 0x0 */
6925 uint8_t RESERVED_0[4];
6926 __IO uint32_t TCR; /**< Transfer Count Register, offset: 0x8 */
6927 union { /* offset: 0xC */
6928 __IO uint32_t CTAR[2]; /**< Clock and Transfer Attributes Register (In Master Mode), array offset: 0xC, array step: 0x4 */
6929 __IO uint32_t CTAR_SLAVE[1]; /**< Clock and Transfer Attributes Register (In Slave Mode), array offset: 0xC, array step: 0x4 */
6930 };
6931 uint8_t RESERVED_1[24];
6932 __IO uint32_t SR; /**< Status Register, offset: 0x2C */
6933 __IO uint32_t RSER; /**< DMA/Interrupt Request Select and Enable Register, offset: 0x30 */
6934 union { /* offset: 0x34 */
6935 __IO uint32_t PUSHR; /**< PUSH TX FIFO Register In Master Mode, offset: 0x34 */
6936 __IO uint32_t PUSHR_SLAVE; /**< PUSH TX FIFO Register In Slave Mode, offset: 0x34 */
6937 };
6938 __I uint32_t POPR; /**< POP RX FIFO Register, offset: 0x38 */
6939 __I uint32_t TXFR0; /**< Transmit FIFO Registers, offset: 0x3C */
6940 __I uint32_t TXFR1; /**< Transmit FIFO Registers, offset: 0x40 */
6941 __I uint32_t TXFR2; /**< Transmit FIFO Registers, offset: 0x44 */
6942 __I uint32_t TXFR3; /**< Transmit FIFO Registers, offset: 0x48 */
6943 uint8_t RESERVED_2[48];
6944 __I uint32_t RXFR0; /**< Receive FIFO Registers, offset: 0x7C */
6945 __I uint32_t RXFR1; /**< Receive FIFO Registers, offset: 0x80 */
6946 __I uint32_t RXFR2; /**< Receive FIFO Registers, offset: 0x84 */
6947 __I uint32_t RXFR3; /**< Receive FIFO Registers, offset: 0x88 */
6948} SPI_TypeDef;
6949
6950/* ----------------------------------------------------------------------------
6951 -- SPI Register Masks
6952 ---------------------------------------------------------------------------- */
6953
6954/*!
6955 * @addtogroup SPI_Register_Masks SPI Register Masks
6956 * @{
6957 */
6958
6959/*! @name MCR - Module Configuration Register */
6960#define SPI_MCR_HALT (0x1U)
6961#define SPI_MCR_SMPL_PT_MASK (0x300U)
6962#define SPI_MCR_SMPL_PT_SHIFT (8U)
6963#define SPI_MCR_SMPL_PT(x) (((uint32_t)(((uint32_t)(x)) << SPI_MCR_SMPL_PT_SHIFT)) & SPI_MCR_SMPL_PT_MASK)
6964#define SPI_MCR_CLR_RXF (0x400U)
6965#define SPI_MCR_CLR_TXF (0x800U)
6966#define SPI_MCR_DIS_RXF (0x1000U)
6967#define SPI_MCR_DIS_TXF (0x2000U)
6968#define SPI_MCR_MDIS (0x4000U)
6969#define SPI_MCR_DOZE (0x8000U)
6970#define SPI_MCR_PCSIS_MASK (0x3F0000U)
6971#define SPI_MCR_PCSIS_SHIFT (16U)
6972#define SPI_MCR_PCSIS(x) (((uint32_t)(((uint32_t)(x)) << SPI_MCR_PCSIS_SHIFT)) & SPI_MCR_PCSIS_MASK)
6973#define SPI_MCR_ROOE (0x1000000U)
6974#define SPI_MCR_PCSSE (0x2000000U)
6975#define SPI_MCR_MTFE (0x4000000U)
6976#define SPI_MCR_FRZ (0x8000000U)
6977#define SPI_MCR_DCONF_MASK (0x30000000U)
6978#define SPI_MCR_DCONF_SHIFT (28U)
6979#define SPI_MCR_DCONF(x) (((uint32_t)(((uint32_t)(x)) << SPI_MCR_DCONF_SHIFT)) & SPI_MCR_DCONF_MASK)
6980#define SPI_MCR_CONT_SCKE (0x40000000U)
6981#define SPI_MCR_MSTR (0x80000000U)
6982
6983/*! @name TCR - Transfer Count Register */
6984#define SPI_TCR_SPI_TCNT_MASK (0xFFFF0000U)
6985#define SPI_TCR_SPI_TCNT_SHIFT (16U)
6986#define SPI_TCR_SPI_TCNT(x) (((uint32_t)(((uint32_t)(x)) << SPI_TCR_SPI_TCNT_SHIFT)) & SPI_TCR_SPI_TCNT_MASK)
6987
6988/*! @name CTAR - Clock and Transfer Attributes Register (In Master Mode) */
6989#define SPI_CTAR_BR_MASK (0xFU)
6990#define SPI_CTAR_BR_SHIFT (0U)
6991#define SPI_CTAR_BR(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_BR_SHIFT)) & SPI_CTAR_BR_MASK)
6992#define SPI_CTAR_DT_MASK (0xF0U)
6993#define SPI_CTAR_DT_SHIFT (4U)
6994#define SPI_CTAR_DT(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_DT_SHIFT)) & SPI_CTAR_DT_MASK)
6995#define SPI_CTAR_ASC_MASK (0xF00U)
6996#define SPI_CTAR_ASC_SHIFT (8U)
6997#define SPI_CTAR_ASC(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_ASC_SHIFT)) & SPI_CTAR_ASC_MASK)
6998#define SPI_CTAR_CSSCK_MASK (0xF000U)
6999#define SPI_CTAR_CSSCK_SHIFT (12U)
7000#define SPI_CTAR_CSSCK(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_CSSCK_SHIFT)) & SPI_CTAR_CSSCK_MASK)
7001#define SPI_CTAR_PBR_MASK (0x30000U)
7002#define SPI_CTAR_PBR_SHIFT (16U)
7003#define SPI_CTAR_PBR(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_PBR_SHIFT)) & SPI_CTAR_PBR_MASK)
7004#define SPI_CTAR_PDT_MASK (0xC0000U)
7005#define SPI_CTAR_PDT_SHIFT (18U)
7006#define SPI_CTAR_PDT(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_PDT_SHIFT)) & SPI_CTAR_PDT_MASK)
7007#define SPI_CTAR_PASC_MASK (0x300000U)
7008#define SPI_CTAR_PASC_SHIFT (20U)
7009#define SPI_CTAR_PASC(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_PASC_SHIFT)) & SPI_CTAR_PASC_MASK)
7010#define SPI_CTAR_PCSSCK_MASK (0xC00000U)
7011#define SPI_CTAR_PCSSCK_SHIFT (22U)
7012#define SPI_CTAR_PCSSCK(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_PCSSCK_SHIFT)) & SPI_CTAR_PCSSCK_MASK)
7013#define SPI_CTAR_LSBFE (0x1000000U)
7014#define SPI_CTAR_CPHA (0x2000000U)
7015#define SPI_CTAR_CPOL (0x4000000U)
7016#define SPI_CTAR_FMSZ_MASK (0x78000000U)
7017#define SPI_CTAR_FMSZ_SHIFT (27U)
7018#define SPI_CTAR_FMSZ(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_FMSZ_SHIFT)) & SPI_CTAR_FMSZ_MASK)
7019#define SPI_CTAR_DBR (0x80000000U)
7020
7021/* The count of SPI_CTAR */
7022#define SPI_CTAR_COUNT (2U)
7023
7024/*! @name CTAR_SLAVE - Clock and Transfer Attributes Register (In Slave Mode) */
7025#define SPI_CTAR_SLAVE_CPHA (0x2000000U)
7026#define SPI_CTAR_SLAVE_CPOL (0x4000000U)
7027#define SPI_CTAR_SLAVE_FMSZ_MASK (0xF8000000U)
7028#define SPI_CTAR_SLAVE_FMSZ_SHIFT (27U)
7029#define SPI_CTAR_SLAVE_FMSZ(x) (((uint32_t)(((uint32_t)(x)) << SPI_CTAR_SLAVE_FMSZ_SHIFT)) & SPI_CTAR_SLAVE_FMSZ_MASK)
7030
7031/* The count of SPI_CTAR_SLAVE */
7032#define SPI_CTAR_SLAVE_COUNT (1U)
7033
7034/*! @name SR - Status Register */
7035#define SPI_SR_POPNXTPTR_MASK (0xFU)
7036#define SPI_SR_POPNXTPTR_SHIFT (0U)
7037#define SPI_SR_POPNXTPTR(x) (((uint32_t)(((uint32_t)(x)) << SPI_SR_POPNXTPTR_SHIFT)) & SPI_SR_POPNXTPTR_MASK)
7038#define SPI_SR_RXCTR_MASK (0xF0U)
7039#define SPI_SR_RXCTR_SHIFT (4U)
7040#define SPI_SR_RXCTR(x) (((uint32_t)(((uint32_t)(x)) << SPI_SR_RXCTR_SHIFT)) & SPI_SR_RXCTR_MASK)
7041#define SPI_SR_TXNXTPTR_MASK (0xF00U)
7042#define SPI_SR_TXNXTPTR_SHIFT (8U)
7043#define SPI_SR_TXNXTPTR(x) (((uint32_t)(((uint32_t)(x)) << SPI_SR_TXNXTPTR_SHIFT)) & SPI_SR_TXNXTPTR_MASK)
7044#define SPI_SR_TXCTR_MASK (0xF000U)
7045#define SPI_SR_TXCTR_SHIFT (12U)
7046#define SPI_SR_TXCTR(x) (((uint32_t)(((uint32_t)(x)) << SPI_SR_TXCTR_SHIFT)) & SPI_SR_TXCTR_MASK)
7047#define SPI_SR_RFDF (0x20000U)
7048#define SPI_SR_RFOF (0x80000U)
7049#define SPI_SR_TFFF (0x2000000U)
7050#define SPI_SR_TFUF (0x8000000U)
7051#define SPI_SR_EOQF (0x10000000U)
7052#define SPI_SR_TXRXS (0x40000000U)
7053#define SPI_SR_TCF (0x80000000U)
7054
7055/*! @name RSER - DMA/Interrupt Request Select and Enable Register */
7056#define SPI_RSER_RFDF_DIRS (0x10000U)
7057#define SPI_RSER_RFDF_RE (0x20000U)
7058#define SPI_RSER_RFOF_RE (0x80000U)
7059#define SPI_RSER_TFFF_DIRS (0x1000000U)
7060#define SPI_RSER_TFFF_RE (0x2000000U)
7061#define SPI_RSER_TFUF_RE (0x8000000U)
7062#define SPI_RSER_EOQF_RE (0x10000000U)
7063#define SPI_RSER_TCF_RE (0x80000000U)
7064
7065/*! @name PUSHR - PUSH TX FIFO Register In Master Mode */
7066#define SPI_PUSHR_TXDATA_MASK (0xFFFFU)
7067#define SPI_PUSHR_TXDATA_SHIFT (0U)
7068#define SPI_PUSHR_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_PUSHR_TXDATA_SHIFT)) & SPI_PUSHR_TXDATA_MASK)
7069#define SPI_PUSHR_PCS_MASK (0x3F0000U)
7070#define SPI_PUSHR_PCS_SHIFT (16U)
7071#define SPI_PUSHR_PCS(x) (((uint32_t)(((uint32_t)(x)) << SPI_PUSHR_PCS_SHIFT)) & SPI_PUSHR_PCS_MASK)
7072#define SPI_PUSHR_CTCNT (0x4000000U)
7073#define SPI_PUSHR_EOQ (0x8000000U)
7074#define SPI_PUSHR_CTAS_MASK (0x70000000U)
7075#define SPI_PUSHR_CTAS_SHIFT (28U)
7076#define SPI_PUSHR_CTAS(x) (((uint32_t)(((uint32_t)(x)) << SPI_PUSHR_CTAS_SHIFT)) & SPI_PUSHR_CTAS_MASK)
7077#define SPI_PUSHR_CONT (0x80000000U)
7078
7079/*! @name TXFR0 - Transmit FIFO Registers */
7080#define SPI_TXFR0_TXDATA_MASK (0xFFFFU)
7081#define SPI_TXFR0_TXDATA_SHIFT (0U)
7082#define SPI_TXFR0_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_TXFR0_TXDATA_SHIFT)) & SPI_TXFR0_TXDATA_MASK)
7083#define SPI_TXFR0_TXCMD_TXDATA_MASK (0xFFFF0000U)
7084#define SPI_TXFR0_TXCMD_TXDATA_SHIFT (16U)
7085#define SPI_TXFR0_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_TXFR0_TXCMD_TXDATA_SHIFT)) & SPI_TXFR0_TXCMD_TXDATA_MASK)
7086
7087/*! @name TXFR1 - Transmit FIFO Registers */
7088#define SPI_TXFR1_TXDATA_MASK (0xFFFFU)
7089#define SPI_TXFR1_TXDATA_SHIFT (0U)
7090#define SPI_TXFR1_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_TXFR1_TXDATA_SHIFT)) & SPI_TXFR1_TXDATA_MASK)
7091#define SPI_TXFR1_TXCMD_TXDATA_MASK (0xFFFF0000U)
7092#define SPI_TXFR1_TXCMD_TXDATA_SHIFT (16U)
7093#define SPI_TXFR1_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_TXFR1_TXCMD_TXDATA_SHIFT)) & SPI_TXFR1_TXCMD_TXDATA_MASK)
7094
7095/*! @name TXFR2 - Transmit FIFO Registers */
7096#define SPI_TXFR2_TXDATA_MASK (0xFFFFU)
7097#define SPI_TXFR2_TXDATA_SHIFT (0U)
7098#define SPI_TXFR2_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_TXFR2_TXDATA_SHIFT)) & SPI_TXFR2_TXDATA_MASK)
7099#define SPI_TXFR2_TXCMD_TXDATA_MASK (0xFFFF0000U)
7100#define SPI_TXFR2_TXCMD_TXDATA_SHIFT (16U)
7101#define SPI_TXFR2_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_TXFR2_TXCMD_TXDATA_SHIFT)) & SPI_TXFR2_TXCMD_TXDATA_MASK)
7102
7103/*! @name TXFR3 - Transmit FIFO Registers */
7104#define SPI_TXFR3_TXDATA_MASK (0xFFFFU)
7105#define SPI_TXFR3_TXDATA_SHIFT (0U)
7106#define SPI_TXFR3_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_TXFR3_TXDATA_SHIFT)) & SPI_TXFR3_TXDATA_MASK)
7107#define SPI_TXFR3_TXCMD_TXDATA_MASK (0xFFFF0000U)
7108#define SPI_TXFR3_TXCMD_TXDATA_SHIFT (16U)
7109#define SPI_TXFR3_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_TXFR3_TXCMD_TXDATA_SHIFT)) & SPI_TXFR3_TXCMD_TXDATA_MASK)
7110
7111/*!
7112 * @}
7113 */ /* end of group SPI_Register_Masks */
7114
7115
7116/* SPI - Peripheral instance base addresses */
7117/** Peripheral SPI0 base address */
7118#define SPI0_BASE (0x4002C000u)
7119/** Peripheral SPI0 base pointer */
7120#define SPI0 ((SPI_TypeDef *)SPI0_BASE)
7121/** Peripheral SPI1 base address */
7122#define SPI1_BASE (0x4002D000u)
7123/** Peripheral SPI1 base pointer */
7124#define SPI1 ((SPI_TypeDef *)SPI1_BASE)
7125/** Peripheral SPI2 base address */
7126#define SPI2_BASE (0x400AC000u)
7127/** Peripheral SPI2 base pointer */
7128#define SPI2 ((SPI_TypeDef *)SPI2_BASE)
7129/** Array initializer of SPI peripheral base addresses */
7130#define SPI_BASE_ADDRS { SPI0_BASE, SPI1_BASE, SPI2_BASE }
7131/** Array initializer of SPI peripheral base pointers */
7132#define SPI_BASE_PTRS { SPI0, SPI1, SPI2 }
7133/** Interrupt vectors for the SPI peripheral type */
7134#define SPI_IRQS { SPI0_IRQn, SPI1_IRQn, SPI2_IRQn }
7135
7136/*!
7137 * @}
7138 */ /* end of group SPI_Peripheral_Access_Layer */
7139
7140
7141/* ----------------------------------------------------------------------------
7142 -- UART Peripheral Access Layer
7143 ---------------------------------------------------------------------------- */
7144
7145/*!
7146 * @addtogroup UART_Peripheral_Access_Layer UART Peripheral Access Layer
7147 * @{
7148 */
7149
7150/** UART - Register Layout Typedef */
7151typedef struct {
7152 __IO uint8_t BDH; /**< UART Baud Rate Registers: High, offset: 0x0 */
7153 __IO uint8_t BDL; /**< UART Baud Rate Registers: Low, offset: 0x1 */
7154 __IO uint8_t C1; /**< UART Control Register 1, offset: 0x2 */
7155 __IO uint8_t C2; /**< UART Control Register 2, offset: 0x3 */
7156 __I uint8_t S1; /**< UART Status Register 1, offset: 0x4 */
7157 __IO uint8_t S2; /**< UART Status Register 2, offset: 0x5 */
7158 __IO uint8_t C3; /**< UART Control Register 3, offset: 0x6 */
7159 __IO uint8_t D; /**< UART Data Register, offset: 0x7 */
7160 __IO uint8_t MA1; /**< UART Match Address Registers 1, offset: 0x8 */
7161 __IO uint8_t MA2; /**< UART Match Address Registers 2, offset: 0x9 */
7162 __IO uint8_t C4; /**< UART Control Register 4, offset: 0xA */
7163 __IO uint8_t C5; /**< UART Control Register 5, offset: 0xB */
7164 __I uint8_t ED; /**< UART Extended Data Register, offset: 0xC */
7165 __IO uint8_t MODEM; /**< UART Modem Register, offset: 0xD */
7166 __IO uint8_t IR; /**< UART Infrared Register, offset: 0xE */
7167 uint8_t RESERVED_0[1];
7168 __IO uint8_t PFIFO; /**< UART FIFO Parameters, offset: 0x10 */
7169 __IO uint8_t CFIFO; /**< UART FIFO Control Register, offset: 0x11 */
7170 __IO uint8_t SFIFO; /**< UART FIFO Status Register, offset: 0x12 */
7171 __IO uint8_t TWFIFO; /**< UART FIFO Transmit Watermark, offset: 0x13 */
7172 __I uint8_t TCFIFO; /**< UART FIFO Transmit Count, offset: 0x14 */
7173 __IO uint8_t RWFIFO; /**< UART FIFO Receive Watermark, offset: 0x15 */
7174 __I uint8_t RCFIFO; /**< UART FIFO Receive Count, offset: 0x16 */
7175 uint8_t RESERVED_1[1];
7176 __IO uint8_t C7816; /**< UART 7816 Control Register, offset: 0x18 */
7177 __IO uint8_t IE7816; /**< UART 7816 Interrupt Enable Register, offset: 0x19 */
7178 __IO uint8_t IS7816; /**< UART 7816 Interrupt Status Register, offset: 0x1A */
7179 union { /* offset: 0x1B */
7180 __IO uint8_t WP7816T0; /**< UART 7816 Wait Parameter Register, offset: 0x1B */
7181 __IO uint8_t WP7816T1; /**< UART 7816 Wait Parameter Register, offset: 0x1B */
7182 };
7183 __IO uint8_t WN7816; /**< UART 7816 Wait N Register, offset: 0x1C */
7184 __IO uint8_t WF7816; /**< UART 7816 Wait FD Register, offset: 0x1D */
7185 __IO uint8_t ET7816; /**< UART 7816 Error Threshold Register, offset: 0x1E */
7186 __IO uint8_t TL7816; /**< UART 7816 Transmit Length Register, offset: 0x1F */
7187} UART_TypeDef;
7188
7189/* ----------------------------------------------------------------------------
7190 -- UART Register Masks
7191 ---------------------------------------------------------------------------- */
7192
7193/*!
7194 * @addtogroup UART_Register_Masks UART Register Masks
7195 * @{
7196 */
7197
7198/*! @name BDH - UART Baud Rate Registers: High */
7199#define UARTx_BDH_SBR_MASK (0x1FU)
7200#define UARTx_BDH_SBR_SHIFT (0U)
7201#define UARTx_BDH_SBR(x) (((uint8_t)(((uint8_t)(x)) << UARTx_BDH_SBR_SHIFT)) & UARTx_BDH_SBR_MASK)
7202#define UARTx_BDH_SBNS (0x20U)
7203#define UARTx_BDH_RXEDGIE (0x40U)
7204#define UARTx_BDH_LBKDIE (0x80U)
7205
7206/*! @name BDL - UART Baud Rate Registers: Low */
7207#define UARTx_BDL_SBR_MASK (0xFFU)
7208#define UARTx_BDL_SBR_SHIFT (0U)
7209#define UARTx_BDL_SBR(x) (((uint8_t)(((uint8_t)(x)) << UARTx_BDL_SBR_SHIFT)) & UARTx_BDL_SBR_MASK)
7210
7211/*! @name C1 - UART Control Register 1 */
7212#define UARTx_C1_PT (0x1U)
7213#define UARTx_C1_PE (0x2U)
7214#define UARTx_C1_ILT (0x4U)
7215#define UARTx_C1_WAKE (0x8U)
7216#define UARTx_C1_M (0x10U)
7217#define UARTx_C1_RSRC (0x20U)
7218#define UARTx_C1_UARTSWAI (0x40U)
7219#define UARTx_C1_LOOPS (0x80U)
7220
7221/*! @name C2 - UART Control Register 2 */
7222#define UARTx_C2_SBK (0x1U)
7223#define UARTx_C2_RWU (0x2U)
7224#define UARTx_C2_RE (0x4U)
7225#define UARTx_C2_TE (0x8U)
7226#define UARTx_C2_ILIE (0x10U)
7227#define UARTx_C2_RIE (0x20U)
7228#define UARTx_C2_TCIE (0x40U)
7229#define UARTx_C2_TIE (0x80U)
7230
7231/*! @name S1 - UART Status Register 1 */
7232#define UARTx_S1_PF (0x1U)
7233#define UARTx_S1_FE (0x2U)
7234#define UARTx_S1_NF (0x4U)
7235#define UARTx_S1_OR (0x8U)
7236#define UARTx_S1_IDLE (0x10U)
7237#define UARTx_S1_RDRF (0x20U)
7238#define UARTx_S1_TC (0x40U)
7239#define UARTx_S1_TDRE (0x80U)
7240
7241/*! @name S2 - UART Status Register 2 */
7242#define UARTx_S2_RAF (0x1U)
7243#define UARTx_S2_LBKDE (0x2U)
7244#define UARTx_S2_BRK13 (0x4U)
7245#define UARTx_S2_RWUID (0x8U)
7246#define UARTx_S2_RXINV (0x10U)
7247#define UARTx_S2_MSBF (0x20U)
7248#define UARTx_S2_RXEDGIF (0x40U)
7249#define UARTx_S2_LBKDIF (0x80U)
7250
7251/*! @name C3 - UART Control Register 3 */
7252#define UARTx_C3_PEIE (0x1U)
7253#define UARTx_C3_FEIE (0x2U)
7254#define UARTx_C3_NEIE (0x4U)
7255#define UARTx_C3_ORIE (0x8U)
7256#define UARTx_C3_TXINV (0x10U)
7257#define UARTx_C3_TXDIR (0x20U)
7258#define UARTx_C3_T8 (0x40U)
7259#define UARTx_C3_R8 (0x80U)
7260
7261/*! @name C4 - UART Control Register 4 */
7262#define UARTx_C4_BRFA_MASK (0x1FU)
7263#define UARTx_C4_BRFA_SHIFT (0U)
7264#define UARTx_C4_BRFA(x) (((uint8_t)(((uint8_t)(x)) << UARTx_C4_BRFA_SHIFT)) & UARTx_C4_BRFA_MASK)
7265#define UARTx_C4_M10 (0x20U)
7266#define UARTx_C4_MAEN2 (0x40U)
7267#define UARTx_C4_MAEN1 (0x80U)
7268
7269/*! @name C5 - UART Control Register 5 */
7270#define UARTx_C5_LBKDDMAS (0x8U)
7271#define UARTx_C5_ILDMAS (0x10U)
7272#define UARTx_C5_RDMAS (0x20U)
7273#define UARTx_C5_TCDMAS (0x40U)
7274#define UARTx_C5_TDMAS (0x80U)
7275
7276/*! @name ED - UART Extended Data Register */
7277#define UARTx_ED_PARITYE (0x40U)
7278#define UARTx_ED_NOISY (0x80U)
7279
7280/*! @name MODEM - UART Modem Register */
7281#define UARTx_MODEM_TXCTSE (0x1U)
7282#define UARTx_MODEM_TXRTSE (0x2U)
7283#define UARTx_MODEM_TXRTSPOL (0x4U)
7284#define UARTx_MODEM_RXRTSE (0x8U)
7285
7286/*! @name IR - UART Infrared Register */
7287#define UART_IR_TNP_MASK (0x3U)
7288#define UART_IR_TNP_SHIFT (0U)
7289#define UART_IR_TNP(x) (((uint8_t)(((uint8_t)(x)) << UART_IR_TNP_SHIFT)) & UART_IR_TNP_MASK)
7290#define UART_IR_IREN (0x4U)
7291
7292/*! @name PFIFO - UART FIFO Parameters */
7293#define UART_PFIFO_RXFIFOSIZE_MASK (0x7U)
7294#define UART_PFIFO_RXFIFOSIZE_SHIFT (0U)
7295#define UART_PFIFO_RXFIFOSIZE(x) (((uint8_t)(((uint8_t)(x)) << UART_PFIFO_RXFIFOSIZE_SHIFT)) & UART_PFIFO_RXFIFOSIZE_MASK)
7296#define UART_PFIFO_RXFE (0x8U)
7297#define UART_PFIFO_TXFIFOSIZE_MASK (0x70U)
7298#define UART_PFIFO_TXFIFOSIZE_SHIFT (4U)
7299#define UART_PFIFO_TXFIFOSIZE(x) (((uint8_t)(((uint8_t)(x)) << UART_PFIFO_TXFIFOSIZE_SHIFT)) & UART_PFIFO_TXFIFOSIZE_MASK)
7300#define UART_PFIFO_TXFE (0x80U)
7301
7302/*! @name CFIFO - UART FIFO Control Register */
7303#define UART_CFIFO_RXUFE (0x1U)
7304#define UART_CFIFO_TXOFE (0x2U)
7305#define UART_CFIFO_RXOFE (0x4U)
7306#define UART_CFIFO_RXFLUSH (0x40U)
7307#define UART_CFIFO_TXFLUSH (0x80U)
7308
7309/*! @name SFIFO - UART FIFO Status Register */
7310#define UART_SFIFO_RXUF (0x1U)
7311#define UART_SFIFO_TXOF (0x2U)
7312#define UART_SFIFO_RXOF (0x4U)
7313#define UART_SFIFO_RXEMPT (0x40U)
7314#define UART_SFIFO_TXEMPT (0x80U)
7315
7316/*! @name TWFIFO - UART FIFO Transmit Watermark */
7317#define UART_TWFIFO_TXWATER_MASK (0xFFU)
7318#define UART_TWFIFO_TXWATER_SHIFT (0U)
7319#define UART_TWFIFO_TXWATER(x) (((uint8_t)(((uint8_t)(x)) << UART_TWFIFO_TXWATER_SHIFT)) & UART_TWFIFO_TXWATER_MASK)
7320
7321/*! @name TCFIFO - UART FIFO Transmit Count */
7322#define UART_TCFIFO_TXCOUNT_MASK (0xFFU)
7323#define UART_TCFIFO_TXCOUNT_SHIFT (0U)
7324#define UART_TCFIFO_TXCOUNT(x) (((uint8_t)(((uint8_t)(x)) << UART_TCFIFO_TXCOUNT_SHIFT)) & UART_TCFIFO_TXCOUNT_MASK)
7325
7326/*! @name RWFIFO - UART FIFO Receive Watermark */
7327#define UART_RWFIFO_RXWATER_MASK (0xFFU)
7328#define UART_RWFIFO_RXWATER_SHIFT (0U)
7329#define UART_RWFIFO_RXWATER(x) (((uint8_t)(((uint8_t)(x)) << UART_RWFIFO_RXWATER_SHIFT)) & UART_RWFIFO_RXWATER_MASK)
7330
7331/*! @name RCFIFO - UART FIFO Receive Count */
7332#define UART_RCFIFO_RXCOUNT_MASK (0xFFU)
7333#define UART_RCFIFO_RXCOUNT_SHIFT (0U)
7334#define UART_RCFIFO_RXCOUNT(x) (((uint8_t)(((uint8_t)(x)) << UART_RCFIFO_RXCOUNT_SHIFT)) & UART_RCFIFO_RXCOUNT_MASK)
7335
7336/*! @name C7816 - UART 7816 Control Register */
7337#define UART_C7816_ISO_7816E (0x1U)
7338#define UART_C7816_TTYPE (0x2U)
7339#define UART_C7816_INIT (0x4U)
7340#define UART_C7816_ANACK (0x8U)
7341#define UART_C7816_ONACK (0x10U)
7342
7343/*! @name IE7816 - UART 7816 Interrupt Enable Register */
7344#define UART_IE7816_RXTE (0x1U)
7345#define UART_IE7816_TXTE (0x2U)
7346#define UART_IE7816_GTVE (0x4U)
7347#define UART_IE7816_INITDE (0x10U)
7348#define UART_IE7816_BWTE (0x20U)
7349#define UART_IE7816_CWTE (0x40U)
7350#define UART_IE7816_WTE (0x80U)
7351
7352/*! @name IS7816 - UART 7816 Interrupt Status Register */
7353#define UART_IS7816_RXT (0x1U)
7354#define UART_IS7816_TXT (0x2U)
7355#define UART_IS7816_GTV (0x4U)
7356#define UART_IS7816_INITD (0x10U)
7357#define UART_IS7816_BWT (0x20U)
7358#define UART_IS7816_CWT (0x40U)
7359#define UART_IS7816_WT (0x80U)
7360
7361/*! @name WP7816T0 - UART 7816 Wait Parameter Register */
7362#define UART_WP7816T0_WI_MASK (0xFFU)
7363#define UART_WP7816T0_WI_SHIFT (0U)
7364#define UART_WP7816T0_WI(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816T0_WI_SHIFT)) & UART_WP7816T0_WI_MASK)
7365
7366/*! @name WP7816T1 - UART 7816 Wait Parameter Register */
7367#define UART_WP7816T1_BWI_MASK (0xFU)
7368#define UART_WP7816T1_BWI_SHIFT (0U)
7369#define UART_WP7816T1_BWI(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816T1_BWI_SHIFT)) & UART_WP7816T1_BWI_MASK)
7370#define UART_WP7816T1_CWI_MASK (0xF0U)
7371#define UART_WP7816T1_CWI_SHIFT (4U)
7372#define UART_WP7816T1_CWI(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816T1_CWI_SHIFT)) & UART_WP7816T1_CWI_MASK)
7373
7374/*! @name WN7816 - UART 7816 Wait N Register */
7375#define UART_WN7816_GTN_MASK (0xFFU)
7376#define UART_WN7816_GTN_SHIFT (0U)
7377#define UART_WN7816_GTN(x) (((uint8_t)(((uint8_t)(x)) << UART_WN7816_GTN_SHIFT)) & UART_WN7816_GTN_MASK)
7378
7379/*! @name WF7816 - UART 7816 Wait FD Register */
7380#define UART_WF7816_GTFD_MASK (0xFFU)
7381#define UART_WF7816_GTFD_SHIFT (0U)
7382#define UART_WF7816_GTFD(x) (((uint8_t)(((uint8_t)(x)) << UART_WF7816_GTFD_SHIFT)) & UART_WF7816_GTFD_MASK)
7383
7384/*! @name ET7816 - UART 7816 Error Threshold Register */
7385#define UART_ET7816_RXTHRESHOLD_MASK (0xFU)
7386#define UART_ET7816_RXTHRESHOLD_SHIFT (0U)
7387#define UART_ET7816_RXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x)) << UART_ET7816_RXTHRESHOLD_SHIFT)) & UART_ET7816_RXTHRESHOLD_MASK)
7388#define UART_ET7816_TXTHRESHOLD_MASK (0xF0U)
7389#define UART_ET7816_TXTHRESHOLD_SHIFT (4U)
7390#define UART_ET7816_TXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x)) << UART_ET7816_TXTHRESHOLD_SHIFT)) & UART_ET7816_TXTHRESHOLD_MASK)
7391
7392/*! @name TL7816 - UART 7816 Transmit Length Register */
7393#define UART_TL7816_TLEN_MASK (0xFFU)
7394#define UART_TL7816_TLEN_SHIFT (0U)
7395#define UART_TL7816_TLEN(x) (((uint8_t)(((uint8_t)(x)) << UART_TL7816_TLEN_SHIFT)) & UART_TL7816_TLEN_MASK)
7396
7397
7398/*!
7399 * @}
7400 */ /* end of group UART_Register_Masks */
7401
7402
7403/* UART - Peripheral instance base addresses */
7404/** Peripheral UART0 base address */
7405#define UART0_BASE (0x4006A000u)
7406/** Peripheral UART0 base pointer */
7407#define UART0 ((UART_TypeDef *)UART0_BASE)
7408/** Peripheral UART1 base address */
7409#define UART1_BASE (0x4006B000u)
7410/** Peripheral UART1 base pointer */
7411#define UART1 ((UART_TypeDef *)UART1_BASE)
7412/** Peripheral UART2 base address */
7413#define UART2_BASE (0x4006C000u)
7414/** Peripheral UART2 base pointer */
7415#define UART2 ((UART_TypeDef *)UART2_BASE)
7416/** Peripheral UART3 base address */
7417#define UART3_BASE (0x4006D000u)
7418/** Peripheral UART3 base pointer */
7419#define UART3 ((UART_TypeDef *)UART3_BASE)
7420/** Peripheral UART4 base address */
7421#define UART4_BASE (0x400EA000u)
7422/** Peripheral UART4 base pointer */
7423#define UART4 ((UART_TypeDef *)UART4_BASE)
7424/** Peripheral UART5 base address */
7425#define UART5_BASE (0x400EB000u)
7426/** Peripheral UART5 base pointer */
7427#define UART5 ((UART_TypeDef *)UART5_BASE)
7428/** Array initializer of UART peripheral base addresses */
7429#define UART_BASE_ADDRS { UART0_BASE, UART1_BASE, UART2_BASE, UART3_BASE, UART4_BASE, UART5_BASE }
7430/** Array initializer of UART peripheral base pointers */
7431#define UART_BASE_PTRS { UART0, UART1, UART2, UART3, UART4, UART5 }
7432/** Interrupt vectors for the UART peripheral type */
7433#define UARTStatus_IRQS { UART0Status_IRQn, UART1Status_IRQn, UART2Status_IRQn, UART3Status_IRQn, UART4Status_IRQn, UART5Status_IRQn }
7434#define UARTError_IRQS { UART0Error_IRQn, UART1Error_IRQn, UART2Error_IRQn, UART3Error_IRQn, UART4Error_IRQn, UART5Error_IRQn }
7435#define UART_LON_IRQS { UART0_LON_IRQn, NotAvail_IRQn, NotAvail_IRQn, NotAvail_IRQn, NotAvail_IRQn, NotAvail_IRQn }
7436
7437/*!
7438 * @}
7439 */ /* end of group UART_Peripheral_Access_Layer */
7440
7441
7442/* ----------------------------------------------------------------------------
7443 -- USB Peripheral Access Layer
7444 ---------------------------------------------------------------------------- */
7445
7446/*!
7447 * @addtogroup USB_Peripheral_Access_Layer USB Peripheral Access Layer
7448 * @{
7449 */
7450
7451/** USB - Register Layout Typedef */
7452typedef struct {
7453 __I uint8_t PERID; /**< Peripheral ID register, offset: 0x0 */
7454 uint8_t RESERVED_0[3];
7455 __I uint8_t IDCOMP; /**< Peripheral ID Complement register, offset: 0x4 */
7456 uint8_t RESERVED_1[3];
7457 __I uint8_t REV; /**< Peripheral Revision register, offset: 0x8 */
7458 uint8_t RESERVED_2[3];
7459 __I uint8_t ADDINFO; /**< Peripheral Additional Info register, offset: 0xC */
7460 uint8_t RESERVED_3[3];
7461 __IO uint8_t OTGISTAT; /**< OTG Interrupt Status register, offset: 0x10 */
7462 uint8_t RESERVED_4[3];
7463 __IO uint8_t OTGICR; /**< OTG Interrupt Control register, offset: 0x14 */
7464 uint8_t RESERVED_5[3];
7465 __IO uint8_t OTGSTAT; /**< OTG Status register, offset: 0x18 */
7466 uint8_t RESERVED_6[3];
7467 __IO uint8_t OTGCTL; /**< OTG Control register, offset: 0x1C */
7468 uint8_t RESERVED_7[99];
7469 __IO uint8_t ISTAT; /**< Interrupt Status register, offset: 0x80 */
7470 uint8_t RESERVED_8[3];
7471 __IO uint8_t INTEN; /**< Interrupt Enable register, offset: 0x84 */
7472 uint8_t RESERVED_9[3];
7473 __IO uint8_t ERRSTAT; /**< Error Interrupt Status register, offset: 0x88 */
7474 uint8_t RESERVED_10[3];
7475 __IO uint8_t ERREN; /**< Error Interrupt Enable register, offset: 0x8C */
7476 uint8_t RESERVED_11[3];
7477 __I uint8_t STAT; /**< Status register, offset: 0x90 */
7478 uint8_t RESERVED_12[3];
7479 __IO uint8_t CTL; /**< Control register, offset: 0x94 */
7480 uint8_t RESERVED_13[3];
7481 __IO uint8_t ADDR; /**< Address register, offset: 0x98 */
7482 uint8_t RESERVED_14[3];
7483 __IO uint8_t BDTPAGE1; /**< BDT Page register 1, offset: 0x9C */
7484 uint8_t RESERVED_15[3];
7485 __IO uint8_t FRMNUML; /**< Frame Number register Low, offset: 0xA0 */
7486 uint8_t RESERVED_16[3];
7487 __IO uint8_t FRMNUMH; /**< Frame Number register High, offset: 0xA4 */
7488 uint8_t RESERVED_17[3];
7489 __IO uint8_t TOKEN; /**< Token register, offset: 0xA8 */
7490 uint8_t RESERVED_18[3];
7491 __IO uint8_t SOFTHLD; /**< SOF Threshold register, offset: 0xAC */
7492 uint8_t RESERVED_19[3];
7493 __IO uint8_t BDTPAGE2; /**< BDT Page Register 2, offset: 0xB0 */
7494 uint8_t RESERVED_20[3];
7495 __IO uint8_t BDTPAGE3; /**< BDT Page Register 3, offset: 0xB4 */
7496 uint8_t RESERVED_21[11];
7497 struct { /* offset: 0xC0, array step: 0x4 */
7498 __IO uint8_t ENDPT; /**< Endpoint Control register, array offset: 0xC0, array step: 0x4 */
7499 uint8_t RESERVED_0[3];
7500 } ENDPOINT[16];
7501 __IO uint8_t USBCTRL; /**< USB Control register, offset: 0x100 */
7502 uint8_t RESERVED_22[3];
7503 __I uint8_t OBSERVE; /**< USB OTG Observe register, offset: 0x104 */
7504 uint8_t RESERVED_23[3];
7505 __IO uint8_t CONTROL; /**< USB OTG Control register, offset: 0x108 */
7506 uint8_t RESERVED_24[3];
7507 __IO uint8_t USBTRC0; /**< USB Transceiver Control register 0, offset: 0x10C */
7508 uint8_t RESERVED_25[7];
7509 __IO uint8_t USBFRMADJUST; /**< Frame Adjust Register, offset: 0x114 */
7510 uint8_t RESERVED_26[43];
7511 __IO uint8_t CLK_RECOVER_CTRL; /**< USB Clock recovery control, offset: 0x140 */
7512 uint8_t RESERVED_27[3];
7513 __IO uint8_t CLK_RECOVER_IRC_EN; /**< IRC48M oscillator enable register, offset: 0x144 */
7514 uint8_t RESERVED_28[23];
7515 __IO uint8_t CLK_RECOVER_INT_STATUS; /**< Clock recovery separated interrupt status, offset: 0x15C */
7516} USB_TypeDef;
7517
7518/* ----------------------------------------------------------------------------
7519 -- USB Register Masks
7520 ---------------------------------------------------------------------------- */
7521
7522/*!
7523 * @addtogroup USB_Register_Masks USB Register Masks
7524 * @{
7525 */
7526
7527/*! @name PERID - Peripheral ID register */
7528#define USB_PERID_ID_MASK (0x3FU)
7529#define USB_PERID_ID_SHIFT (0U)
7530#define USB_PERID_ID(x) (((uint8_t)(((uint8_t)(x)) << USB_PERID_ID_SHIFT)) & USB_PERID_ID_MASK)
7531
7532/*! @name IDCOMP - Peripheral ID Complement register */
7533#define USB_IDCOMP_NID_MASK (0x3FU)
7534#define USB_IDCOMP_NID_SHIFT (0U)
7535#define USB_IDCOMP_NID(x) (((uint8_t)(((uint8_t)(x)) << USB_IDCOMP_NID_SHIFT)) & USB_IDCOMP_NID_MASK)
7536
7537/*! @name REV - Peripheral Revision register */
7538#define USB_REV_REV_MASK (0xFFU)
7539#define USB_REV_REV_SHIFT (0U)
7540#define USB_REV_REV(x) (((uint8_t)(((uint8_t)(x)) << USB_REV_REV_SHIFT)) & USB_REV_REV_MASK)
7541
7542/*! @name ADDINFO - Peripheral Additional Info register */
7543#define USB_ADDINFO_IEHOST (0x1U)
7544#define USB_ADDINFO_IRQNUM_MASK (0xF8U)
7545#define USB_ADDINFO_IRQNUM_SHIFT (3U)
7546#define USB_ADDINFO_IRQNUM(x) (((uint8_t)(((uint8_t)(x)) << USB_ADDINFO_IRQNUM_SHIFT)) & USB_ADDINFO_IRQNUM_MASK)
7547
7548/*! @name OTGISTAT - OTG Interrupt Status register */
7549#define USB_OTGISTAT_AVBUSCHG (0x1U)
7550#define USB_OTGISTAT_B_SESS_CHG (0x4U)
7551#define USB_OTGISTAT_SESSVLDCHG (0x8U)
7552#define USB_OTGISTAT_LINE_STATE_CHG (0x20U)
7553#define USB_OTGISTAT_ONEMSEC (0x40U)
7554#define USB_OTGISTAT_IDCHG (0x80U)
7555
7556/*! @name OTGICR - OTG Interrupt Control register */
7557#define USB_OTGICR_AVBUSEN (0x1U)
7558#define USB_OTGICR_BSESSEN (0x4U)
7559#define USB_OTGICR_SESSVLDEN (0x8U)
7560#define USB_OTGICR_LINESTATEEN (0x20U)
7561#define USB_OTGICR_ONEMSECEN (0x40U)
7562#define USB_OTGICR_IDEN (0x80U)
7563
7564/*! @name OTGSTAT - OTG Status register */
7565#define USB_OTGSTAT_AVBUSVLD (0x1U)
7566#define USB_OTGSTAT_BSESSEND (0x4U)
7567#define USB_OTGSTAT_SESS_VLD (0x8U)
7568#define USB_OTGSTAT_LINESTATESTABLE (0x20U)
7569#define USB_OTGSTAT_ONEMSECEN (0x40U)
7570#define USB_OTGSTAT_ID (0x80U)
7571
7572/*! @name OTGCTL - OTG Control register */
7573#define USB_OTGCTL_OTGEN (0x4U)
7574#define USB_OTGCTL_DMLOW (0x10U)
7575#define USB_OTGCTL_DPLOW (0x20U)
7576#define USB_OTGCTL_DPHIGH (0x80U)
7577
7578/*! @name ISTAT - Interrupt Status register */
7579#define USB_ISTAT_USBRST (0x1U)
7580#define USB_ISTAT_ERROR (0x2U)
7581#define USB_ISTAT_SOFTOK (0x4U)
7582#define USB_ISTAT_TOKDNE (0x8U)
7583#define USB_ISTAT_SLEEP (0x10U)
7584#define USB_ISTAT_RESUME (0x20U)
7585#define USB_ISTAT_ATTACH (0x40U)
7586#define USB_ISTAT_STALL (0x80U)
7587
7588/*! @name INTEN - Interrupt Enable register */
7589#define USB_INTEN_USBRSTEN (0x1U)
7590#define USB_INTEN_ERROREN (0x2U)
7591#define USB_INTEN_SOFTOKEN (0x4U)
7592#define USB_INTEN_TOKDNEEN (0x8U)
7593#define USB_INTEN_SLEEPEN (0x10U)
7594#define USB_INTEN_RESUMEEN (0x20U)
7595#define USB_INTEN_ATTACHEN (0x40U)
7596#define USB_INTEN_STALLEN (0x80U)
7597
7598/*! @name ERRSTAT - Error Interrupt Status register */
7599#define USB_ERRSTAT_PIDERR (0x1U)
7600#define USB_ERRSTAT_CRC5EOF (0x2U)
7601#define USB_ERRSTAT_CRC16 (0x4U)
7602#define USB_ERRSTAT_DFN8 (0x8U)
7603#define USB_ERRSTAT_BTOERR (0x10U)
7604#define USB_ERRSTAT_DMAERR (0x20U)
7605#define USB_ERRSTAT_BTSERR (0x80U)
7606
7607/*! @name ERREN - Error Interrupt Enable register */
7608#define USB_ERREN_PIDERREN (0x1U)
7609#define USB_ERREN_CRC5EOFEN (0x2U)
7610#define USB_ERREN_CRC16EN (0x4U)
7611#define USB_ERREN_DFN8EN (0x8U)
7612#define USB_ERREN_BTOERREN (0x10U)
7613#define USB_ERREN_DMAERREN (0x20U)
7614#define USB_ERREN_BTSERREN (0x80U)
7615
7616/*! @name STAT - Status register */
7617#define USB_STAT_ODD (0x4U)
7618#define USB_STAT_TX (0x8U)
7619#define USB_STAT_ENDP_MASK (0xF0U)
7620#define USB_STAT_ENDP_SHIFT (4U)
7621#define USB_STAT_ENDP(x) (((uint8_t)(((uint8_t)(x)) << USB_STAT_ENDP_SHIFT)) & USB_STAT_ENDP_MASK)
7622
7623/*! @name CTL - Control register */
7624#define USB_CTL_USBENSOFEN (0x1U)
7625#define USB_CTL_ODDRST (0x2U)
7626#define USB_CTL_RESUME (0x4U)
7627#define USB_CTL_HOSTMODEEN (0x8U)
7628#define USB_CTL_RESET (0x10U)
7629#define USB_CTL_TXSUSPENDTOKENBUSY (0x20U)
7630#define USB_CTL_SE0 (0x40U)
7631#define USB_CTL_JSTATE (0x80U)
7632
7633/*! @name ADDR - Address register */
7634#define USB_ADDR_ADDR_MASK (0x7FU)
7635#define USB_ADDR_ADDR_SHIFT (0U)
7636#define USB_ADDR_ADDR(x) (((uint8_t)(((uint8_t)(x)) << USB_ADDR_ADDR_SHIFT)) & USB_ADDR_ADDR_MASK)
7637#define USB_ADDR_LSEN (0x80U)
7638
7639/*! @name BDTPAGE1 - BDT Page register 1 */
7640#define USB_BDTPAGE1_BDTBA_MASK (0xFEU)
7641#define USB_BDTPAGE1_BDTBA_SHIFT (1U)
7642#define USB_BDTPAGE1_BDTBA(x) (((uint8_t)(((uint8_t)(x)) << USB_BDTPAGE1_BDTBA_SHIFT)) & USB_BDTPAGE1_BDTBA_MASK)
7643
7644/*! @name FRMNUML - Frame Number register Low */
7645#define USB_FRMNUML_FRM_MASK (0xFFU)
7646#define USB_FRMNUML_FRM_SHIFT (0U)
7647#define USB_FRMNUML_FRM(x) (((uint8_t)(((uint8_t)(x)) << USB_FRMNUML_FRM_SHIFT)) & USB_FRMNUML_FRM_MASK)
7648
7649/*! @name FRMNUMH - Frame Number register High */
7650#define USB_FRMNUMH_FRM_MASK (0x7U)
7651#define USB_FRMNUMH_FRM_SHIFT (0U)
7652#define USB_FRMNUMH_FRM(x) (((uint8_t)(((uint8_t)(x)) << USB_FRMNUMH_FRM_SHIFT)) & USB_FRMNUMH_FRM_MASK)
7653
7654/*! @name TOKEN - Token register */
7655#define USB_TOKEN_TOKENENDPT_MASK (0xFU)
7656#define USB_TOKEN_TOKENENDPT_SHIFT (0U)
7657#define USB_TOKEN_TOKENENDPT(x) (((uint8_t)(((uint8_t)(x)) << USB_TOKEN_TOKENENDPT_SHIFT)) & USB_TOKEN_TOKENENDPT_MASK)
7658#define USB_TOKEN_TOKENPID_MASK (0xF0U)
7659#define USB_TOKEN_TOKENPID_SHIFT (4U)
7660#define USB_TOKEN_TOKENPID(x) (((uint8_t)(((uint8_t)(x)) << USB_TOKEN_TOKENPID_SHIFT)) & USB_TOKEN_TOKENPID_MASK)
7661
7662/*! @name SOFTHLD - SOF Threshold register */
7663#define USB_SOFTHLD_CNT_MASK (0xFFU)
7664#define USB_SOFTHLD_CNT_SHIFT (0U)
7665#define USB_SOFTHLD_CNT(x) (((uint8_t)(((uint8_t)(x)) << USB_SOFTHLD_CNT_SHIFT)) & USB_SOFTHLD_CNT_MASK)
7666
7667/*! @name BDTPAGE2 - BDT Page Register 2 */
7668#define USB_BDTPAGE2_BDTBA_MASK (0xFFU)
7669#define USB_BDTPAGE2_BDTBA_SHIFT (0U)
7670#define USB_BDTPAGE2_BDTBA(x) (((uint8_t)(((uint8_t)(x)) << USB_BDTPAGE2_BDTBA_SHIFT)) & USB_BDTPAGE2_BDTBA_MASK)
7671
7672/*! @name BDTPAGE3 - BDT Page Register 3 */
7673#define USB_BDTPAGE3_BDTBA_MASK (0xFFU)
7674#define USB_BDTPAGE3_BDTBA_SHIFT (0U)
7675#define USB_BDTPAGE3_BDTBA(x) (((uint8_t)(((uint8_t)(x)) << USB_BDTPAGE3_BDTBA_SHIFT)) & USB_BDTPAGE3_BDTBA_MASK)
7676
7677/*! @name ENDPT - Endpoint Control register */
7678#define USB_ENDPT_EPHSHK (0x1U)
7679#define USB_ENDPT_EPSTALL (0x2U)
7680#define USB_ENDPT_EPTXEN (0x4U)
7681#define USB_ENDPT_EPRXEN (0x8U)
7682#define USB_ENDPT_EPCTLDIS (0x10U)
7683#define USB_ENDPT_RETRYDIS (0x40U)
7684#define USB_ENDPT_HOSTWOHUB (0x80U)
7685
7686/* The count of USB_ENDPT */
7687#define USB_ENDPT_COUNT (16U)
7688
7689/*! @name USBCTRL - USB Control register */
7690#define USB_USBCTRL_PDE (0x40U)
7691#define USB_USBCTRL_SUSP (0x80U)
7692
7693/*! @name OBSERVE - USB OTG Observe register */
7694#define USB_OBSERVE_DMPD (0x10U)
7695#define USB_OBSERVE_DPPD (0x40U)
7696#define USB_OBSERVE_DPPU (0x80U)
7697
7698/*! @name CONTROL - USB OTG Control register */
7699#define USB_CONTROL_DPPULLUPNONOTG (0x10U)
7700
7701/*! @name USBTRC0 - USB Transceiver Control register 0 */
7702#define USB_USBTRC0_USB_RESUME_INT (0x1U)
7703#define USB_USBTRC0_SYNC_DET (0x2U)
7704#define USB_USBTRC0_USB_CLK_RECOVERY_INT (0x4U)
7705#define USB_USBTRC0_USBRESMEN (0x20U)
7706#define USB_USBTRC0_USBRESET (0x80U)
7707
7708/*! @name USBFRMADJUST - Frame Adjust Register */
7709#define USB_USBFRMADJUST_ADJ_MASK (0xFFU)
7710#define USB_USBFRMADJUST_ADJ_SHIFT (0U)
7711#define USB_USBFRMADJUST_ADJ(x) (((uint8_t)(((uint8_t)(x)) << USB_USBFRMADJUST_ADJ_SHIFT)) & USB_USBFRMADJUST_ADJ_MASK)
7712
7713/*! @name CLK_RECOVER_CTRL - USB Clock recovery control */
7714#define USB_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN (0x20U)
7715#define USB_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN (0x40U)
7716#define USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN (0x80U)
7717
7718/*! @name CLK_RECOVER_IRC_EN - IRC48M oscillator enable register */
7719#define USB_CLK_RECOVER_IRC_EN_REG_EN (0x1U)
7720#define USB_CLK_RECOVER_IRC_EN_IRC_EN (0x2U)
7721
7722/*! @name CLK_RECOVER_INT_STATUS - Clock recovery separated interrupt status */
7723#define USB_CLK_RECOVER_INT_STATUS_OVF_ERROR (0x10U)
7724
7725
7726/*!
7727 * @}
7728 */ /* end of group USB_Register_Masks */
7729
7730
7731/* USB - Peripheral instance base addresses */
7732/** Peripheral USB0 base address */
7733#define USB0_BASE (0x40072000u)
7734/** Peripheral USB0 base pointer */
7735#define USB0 ((USB_TypeDef *)USB0_BASE)
7736/** Array initializer of USB peripheral base addresses */
7737#define USB_BASE_ADDRS { USB0_BASE }
7738/** Array initializer of USB peripheral base pointers */
7739#define USB_BASE_PTRS { USB0 }
7740/** Interrupt vectors for the USB peripheral type */
7741#define USB_IRQS { USB0_IRQn }
7742
7743/*!
7744 * @}
7745 */ /* end of group USB_Peripheral_Access_Layer */
7746
7747
7748/* ----------------------------------------------------------------------------
7749 -- USBDCD Peripheral Access Layer
7750 ---------------------------------------------------------------------------- */
7751
7752/*!
7753 * @addtogroup USBDCD_Peripheral_Access_Layer USBDCD Peripheral Access Layer
7754 * @{
7755 */
7756
7757/** USBDCD - Register Layout Typedef */
7758typedef struct {
7759 __IO uint32_t CONTROL; /**< Control register, offset: 0x0 */
7760 __IO uint32_t CLOCK; /**< Clock register, offset: 0x4 */
7761 __I uint32_t STATUS; /**< Status register, offset: 0x8 */
7762 uint8_t RESERVED_0[4];
7763 __IO uint32_t TIMER0; /**< TIMER0 register, offset: 0x10 */
7764 __IO uint32_t TIMER1; /**< TIMER1 register, offset: 0x14 */
7765 union { /* offset: 0x18 */
7766 __IO uint32_t TIMER2_BC11; /**< TIMER2_BC11 register, offset: 0x18 */
7767 __IO uint32_t TIMER2_BC12; /**< TIMER2_BC12 register, offset: 0x18 */
7768 };
7769} USBDCD_TypeDef;
7770
7771/* ----------------------------------------------------------------------------
7772 -- USBDCD Register Masks
7773 ---------------------------------------------------------------------------- */
7774
7775/*!
7776 * @addtogroup USBDCD_Register_Masks USBDCD Register Masks
7777 * @{
7778 */
7779
7780/*! @name CONTROL - Control register */
7781#define USBDCD_CONTROL_IACK (0x1U)
7782#define USBDCD_CONTROL_IF (0x100U)
7783#define USBDCD_CONTROL_IE (0x10000U)
7784#define USBDCD_CONTROL_BC12 (0x20000U)
7785#define USBDCD_CONTROL_START (0x1000000U)
7786#define USBDCD_CONTROL_SR (0x2000000U)
7787
7788/*! @name CLOCK - Clock register */
7789#define USBDCD_CLOCK_CLOCK_UNIT (0x1U)
7790#define USBDCD_CLOCK_CLOCK_SPEED_MASK (0xFFCU)
7791#define USBDCD_CLOCK_CLOCK_SPEED_SHIFT (2U)
7792#define USBDCD_CLOCK_CLOCK_SPEED(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_CLOCK_CLOCK_SPEED_SHIFT)) & USBDCD_CLOCK_CLOCK_SPEED_MASK)
7793
7794/*! @name STATUS - Status register */
7795#define USBDCD_STATUS_SEQ_RES_MASK (0x30000U)
7796#define USBDCD_STATUS_SEQ_RES_SHIFT (16U)
7797#define USBDCD_STATUS_SEQ_RES(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_RES_SHIFT)) & USBDCD_STATUS_SEQ_RES_MASK)
7798#define USBDCD_STATUS_SEQ_STAT_MASK (0xC0000U)
7799#define USBDCD_STATUS_SEQ_STAT_SHIFT (18U)
7800#define USBDCD_STATUS_SEQ_STAT(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_STATUS_SEQ_STAT_SHIFT)) & USBDCD_STATUS_SEQ_STAT_MASK)
7801#define USBDCD_STATUS_ERR (0x100000U)
7802#define USBDCD_STATUS_TO (0x200000U)
7803#define USBDCD_STATUS_ACTIVE (0x400000U)
7804
7805/*! @name TIMER0 - TIMER0 register */
7806#define USBDCD_TIMER0_TUNITCON_MASK (0xFFFU)
7807#define USBDCD_TIMER0_TUNITCON_SHIFT (0U)
7808#define USBDCD_TIMER0_TUNITCON(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TUNITCON_SHIFT)) & USBDCD_TIMER0_TUNITCON_MASK)
7809#define USBDCD_TIMER0_TSEQ_INIT_MASK (0x3FF0000U)
7810#define USBDCD_TIMER0_TSEQ_INIT_SHIFT (16U)
7811#define USBDCD_TIMER0_TSEQ_INIT(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER0_TSEQ_INIT_SHIFT)) & USBDCD_TIMER0_TSEQ_INIT_MASK)
7812
7813/*! @name TIMER1 - TIMER1 register */
7814#define USBDCD_TIMER1_TVDPSRC_ON_MASK (0x3FFU)
7815#define USBDCD_TIMER1_TVDPSRC_ON_SHIFT (0U)
7816#define USBDCD_TIMER1_TVDPSRC_ON(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TVDPSRC_ON_SHIFT)) & USBDCD_TIMER1_TVDPSRC_ON_MASK)
7817#define USBDCD_TIMER1_TDCD_DBNC_MASK (0x3FF0000U)
7818#define USBDCD_TIMER1_TDCD_DBNC_SHIFT (16U)
7819#define USBDCD_TIMER1_TDCD_DBNC(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER1_TDCD_DBNC_SHIFT)) & USBDCD_TIMER1_TDCD_DBNC_MASK)
7820
7821/*! @name TIMER2_BC11 - TIMER2_BC11 register */
7822#define USBDCD_TIMER2_BC11_CHECK_DM_MASK (0xFU)
7823#define USBDCD_TIMER2_BC11_CHECK_DM_SHIFT (0U)
7824#define USBDCD_TIMER2_BC11_CHECK_DM(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_CHECK_DM_SHIFT)) & USBDCD_TIMER2_BC11_CHECK_DM_MASK)
7825#define USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK (0x3FF0000U)
7826#define USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT (16U)
7827#define USBDCD_TIMER2_BC11_TVDPSRC_CON(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC11_TVDPSRC_CON_SHIFT)) & USBDCD_TIMER2_BC11_TVDPSRC_CON_MASK)
7828
7829/*! @name TIMER2_BC12 - TIMER2_BC12 register */
7830#define USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK (0x3FFU)
7831#define USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT (0U)
7832#define USBDCD_TIMER2_BC12_TVDMSRC_ON(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TVDMSRC_ON_SHIFT)) & USBDCD_TIMER2_BC12_TVDMSRC_ON_MASK)
7833#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK (0x3FF0000U)
7834#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT (16U)
7835#define USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD(x) (((uint32_t)(((uint32_t)(x)) << USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_SHIFT)) & USBDCD_TIMER2_BC12_TWAIT_AFTER_PRD_MASK)
7836
7837
7838/*!
7839 * @}
7840 */ /* end of group USBDCD_Register_Masks */
7841
7842
7843/* USBDCD - Peripheral instance base addresses */
7844/** Peripheral USBDCD base address */
7845#define USBDCD_BASE (0x40035000u)
7846/** Peripheral USBDCD base pointer */
7847#define USBDCD ((USBDCD_TypeDef *)USBDCD_BASE)
7848/** Array initializer of USBDCD peripheral base addresses */
7849#define USBDCD_BASE_ADDRS { USBDCD_BASE }
7850/** Array initializer of USBDCD peripheral base pointers */
7851#define USBDCD_BASE_PTRS { USBDCD }
7852/** Interrupt vectors for the USBDCD peripheral type */
7853#define USBDCD_IRQS { USBDCD_IRQn }
7854
7855/*!
7856 * @}
7857 */ /* end of group USBDCD_Peripheral_Access_Layer */
7858
7859
7860/* ----------------------------------------------------------------------------
7861 -- VREF Peripheral Access Layer
7862 ---------------------------------------------------------------------------- */
7863
7864/*!
7865 * @addtogroup VREF_Peripheral_Access_Layer VREF Peripheral Access Layer
7866 * @{
7867 */
7868
7869/** VREF - Register Layout Typedef */
7870typedef struct {
7871 __IO uint8_t TRM; /**< VREF Trim Register, offset: 0x0 */
7872 __IO uint8_t SC; /**< VREF Status and Control Register, offset: 0x1 */
7873} VREF_TypeDef;
7874
7875/* ----------------------------------------------------------------------------
7876 -- VREF Register Masks
7877 ---------------------------------------------------------------------------- */
7878
7879/*!
7880 * @addtogroup VREF_Register_Masks VREF Register Masks
7881 * @{
7882 */
7883
7884/*! @name TRM - VREF Trim Register */
7885#define VREF_TRM_TRIM_MASK (0x3FU)
7886#define VREF_TRM_TRIM_SHIFT (0U)
7887#define VREF_TRM_TRIM(x) (((uint8_t)(((uint8_t)(x)) << VREF_TRM_TRIM_SHIFT)) & VREF_TRM_TRIM_MASK)
7888#define VREF_TRM_CHOPEN (0x40U)
7889
7890/*! @name SC - VREF Status and Control Register */
7891#define VREF_SC_MODE_LV_MASK (0x3U)
7892#define VREF_SC_MODE_LV_SHIFT (0U)
7893#define VREF_SC_MODE_LV(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_MODE_LV_SHIFT)) & VREF_SC_MODE_LV_MASK)
7894#define VREF_SC_VREFST (0x4U)
7895#define VREF_SC_ICOMPEN (0x20U)
7896#define VREF_SC_REGEN (0x40U)
7897#define VREF_SC_VREFEN (0x80U)
7898
7899
7900/*!
7901 * @}
7902 */ /* end of group VREF_Register_Masks */
7903
7904
7905/* VREF - Peripheral instance base addresses */
7906/** Peripheral VREF base address */
7907#define VREF_BASE (0x40074000u)
7908/** Peripheral VREF base pointer */
7909#define VREF ((VREF_TypeDef *)VREF_BASE)
7910/** Array initializer of VREF peripheral base addresses */
7911#define VREF_BASE_ADDRS { VREF_BASE }
7912/** Array initializer of VREF peripheral base pointers */
7913#define VREF_BASE_PTRS { VREF }
7914
7915/*!
7916 * @}
7917 */ /* end of group VREF_Peripheral_Access_Layer */
7918
7919
7920/* ----------------------------------------------------------------------------
7921 -- WDOG Peripheral Access Layer
7922 ---------------------------------------------------------------------------- */
7923
7924/*!
7925 * @addtogroup WDOG_Peripheral_Access_Layer WDOG Peripheral Access Layer
7926 * @{
7927 */
7928
7929/** WDOG - Register Layout Typedef */
7930typedef struct {
7931 __IO uint16_t STCTRLH; /**< Watchdog Status and Control Register High, offset: 0x0 */
7932 __IO uint16_t STCTRLL; /**< Watchdog Status and Control Register Low, offset: 0x2 */
7933 __IO uint16_t TOVALH; /**< Watchdog Time-out Value Register High, offset: 0x4 */
7934 __IO uint16_t TOVALL; /**< Watchdog Time-out Value Register Low, offset: 0x6 */
7935 __IO uint16_t WINH; /**< Watchdog Window Register High, offset: 0x8 */
7936 __IO uint16_t WINL; /**< Watchdog Window Register Low, offset: 0xA */
7937 __IO uint16_t REFRESH; /**< Watchdog Refresh register, offset: 0xC */
7938 __IO uint16_t UNLOCK; /**< Watchdog Unlock register, offset: 0xE */
7939 __IO uint16_t TMROUTH; /**< Watchdog Timer Output Register High, offset: 0x10 */
7940 __IO uint16_t TMROUTL; /**< Watchdog Timer Output Register Low, offset: 0x12 */
7941 __IO uint16_t RSTCNT; /**< Watchdog Reset Count register, offset: 0x14 */
7942 __IO uint16_t PRESC; /**< Watchdog Prescaler register, offset: 0x16 */
7943} WDOG_TypeDef;
7944
7945/* ----------------------------------------------------------------------------
7946 -- WDOG Register Masks
7947 ---------------------------------------------------------------------------- */
7948
7949/*!
7950 * @addtogroup WDOG_Register_Masks WDOG Register Masks
7951 * @{
7952 */
7953
7954/*! @name STCTRLH - Watchdog Status and Control Register High */
7955#define WDOG_STCTRLH_WDOGEN (0x1U)
7956#define WDOG_STCTRLH_CLKSRC (0x2U)
7957#define WDOG_STCTRLH_IRQRSTEN (0x4U)
7958#define WDOG_STCTRLH_WINEN (0x8U)
7959#define WDOG_STCTRLH_ALLOWUPDATE (0x10U)
7960#define WDOG_STCTRLH_DBGEN (0x20U)
7961#define WDOG_STCTRLH_STOPEN (0x40U)
7962#define WDOG_STCTRLH_WAITEN (0x80U)
7963#define WDOG_STCTRLH_TESTWDOG (0x400U)
7964#define WDOG_STCTRLH_TESTSEL (0x800U)
7965#define WDOG_STCTRLH_BYTESEL_MASK (0x3000U)
7966#define WDOG_STCTRLH_BYTESEL_SHIFT (12U)
7967#define WDOG_STCTRLH_BYTESEL(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_BYTESEL_SHIFT)) & WDOG_STCTRLH_BYTESEL_MASK)
7968#define WDOG_STCTRLH_DISTESTWDOG (0x4000U)
7969
7970/*! @name STCTRLL - Watchdog Status and Control Register Low */
7971#define WDOG_STCTRLL_INTFLG (0x8000U)
7972
7973/*! @name PRESC - Watchdog Prescaler register */
7974#define WDOG_PRESC_PRESCVAL_MASK (0x700U)
7975#define WDOG_PRESC_PRESCVAL_SHIFT (8U)
7976#define WDOG_PRESC_PRESCVAL(x) (((uint16_t)(((uint16_t)(x)) << WDOG_PRESC_PRESCVAL_SHIFT)) & WDOG_PRESC_PRESCVAL_MASK)
7977
7978
7979/*!
7980 * @}
7981 */ /* end of group WDOG_Register_Masks */
7982
7983
7984/* WDOG - Peripheral instance base addresses */
7985/** Peripheral WDOG base address */
7986#define WDOG_BASE (0x40052000u)
7987/** Peripheral WDOG base pointer */
7988#define WDOG ((WDOG_TypeDef *)WDOG_BASE)
7989/** Array initializer of WDOG peripheral base addresses */
7990#define WDOG_BASE_ADDRS { WDOG_BASE }
7991/** Array initializer of WDOG peripheral base pointers */
7992#define WDOG_BASE_PTRS { WDOG }
7993/** Interrupt vectors for the WDOG peripheral type */
7994#define WDOG_IRQS { WDOG_EWM_IRQn }
7995
7996/*!
7997 * @}
7998 */ /* end of group WDOG_Peripheral_Access_Layer */
7999
8000
8001/*
8002** End of section using anonymous unions
8003*/
8004
8005#if defined(__ARMCC_VERSION)
8006 #pragma pop
8007#elif defined(__CWCC__)
8008 #pragma pop
8009#elif defined(__GNUC__)
8010 /* leave anonymous unions enabled */
8011#elif defined(__IAR_SYSTEMS_ICC__)
8012 #pragma language=default
8013#else
8014 #error Not supported compiler type
8015#endif
8016
8017/*!
8018 * @}
8019 */ /* end of group Peripheral_access_layer */
8020
8021
8022/* ----------------------------------------------------------------------------
8023 -- SDK Compatibility
8024 ---------------------------------------------------------------------------- */
8025
8026/*!
8027 * @addtogroup SDK_Compatibility_Symbols SDK Compatibility
8028 * @{
8029 */
8030
8031#define ENET_RMON_R_DROP_REG(base) ENET_IEEE_R_DROP_REG(base)
8032#define ENET_RMON_R_FRAME_OK_REG(base) ENET_IEEE_R_FRAME_OK_REG(base)
8033#define MCG_C2_EREFS0_MASK MCG_C2_EREFS_MASK
8034#define MCG_C2_EREFS0_SHIFT MCG_C2_EREFS_SHIFT
8035#define MCG_C2_HGO0_MASK MCG_C2_HGO_MASK
8036#define MCG_C2_HGO0_SHIFT MCG_C2_HGO_SHIFT
8037#define MCG_C2_RANGE0_MASK MCG_C2_RANGE_MASK
8038#define MCG_C2_RANGE0_SHIFT MCG_C2_RANGE_SHIFT
8039#define MCG_C2_RANGE0(x) MCG_C2_RANGE(x)
8040#define MCM_ISR_REG(base) MCM_ISCR_REG(base)
8041#define MCM_ISR_FIOC_MASK MCM_ISCR_FIOC_MASK
8042#define MCM_ISR_FIOC_SHIFT MCM_ISCR_FIOC_SHIFT
8043#define MCM_ISR_FDZC_MASK MCM_ISCR_FDZC_MASK
8044#define MCM_ISR_FDZC_SHIFT MCM_ISCR_FDZC_SHIFT
8045#define MCM_ISR_FOFC_MASK MCM_ISCR_FOFC_MASK
8046#define MCM_ISR_FOFC_SHIFT MCM_ISCR_FOFC_SHIFT
8047#define MCM_ISR_FUFC_MASK MCM_ISCR_FUFC_MASK
8048#define MCM_ISR_FUFC_SHIFT MCM_ISCR_FUFC_SHIFT
8049#define MCM_ISR_FIXC_MASK MCM_ISCR_FIXC_MASK
8050#define MCM_ISR_FIXC_SHIFT MCM_ISCR_FIXC_SHIFT
8051#define MCM_ISR_FIDC_MASK MCM_ISCR_FIDC_MASK
8052#define MCM_ISR_FIDC_SHIFT MCM_ISCR_FIDC_SHIFT
8053#define MCM_ISR_FIOCE_MASK MCM_ISCR_FIOCE_MASK
8054#define MCM_ISR_FIOCE_SHIFT MCM_ISCR_FIOCE_SHIFT
8055#define MCM_ISR_FDZCE_MASK MCM_ISCR_FDZCE_MASK
8056#define MCM_ISR_FDZCE_SHIFT MCM_ISCR_FDZCE_SHIFT
8057#define MCM_ISR_FOFCE_MASK MCM_ISCR_FOFCE_MASK
8058#define MCM_ISR_FOFCE_SHIFT MCM_ISCR_FOFCE_SHIFT
8059#define MCM_ISR_FUFCE_MASK MCM_ISCR_FUFCE_MASK
8060#define MCM_ISR_FUFCE_SHIFT MCM_ISCR_FUFCE_SHIFT
8061#define MCM_ISR_FIXCE_MASK MCM_ISCR_FIXCE_MASK
8062#define MCM_ISR_FIXCE_SHIFT MCM_ISCR_FIXCE_SHIFT
8063#define MCM_ISR_FIDCE_MASK MCM_ISCR_FIDCE_MASK
8064#define MCM_ISR_FIDCE_SHIFT MCM_ISCR_FIDCE_SHIFT
8065#define DSPI0 SPI0
8066#define DSPI1 SPI1
8067#define DSPI2 SPI2
8068#define FLEXCAN0 CAN0
8069#define PTA_BASE GPIOA_BASE
8070#define PTA GPIOA
8071#define PTB_BASE GPIOB_BASE
8072#define PTB GPIOB
8073#define PTC_BASE GPIOC_BASE
8074#define PTC GPIOC
8075#define PTD_BASE GPIOD_BASE
8076#define PTD GPIOD
8077#define PTE_BASE GPIOE_BASE
8078#define PTE GPIOE
8079#define UART_WP7816_T_TYPE0_REG(base) UART_WP7816T0_REG(base)
8080#define UART_WP7816_T_TYPE1_REG(base) UART_WP7816T1_REG(base)
8081#define UART_WP7816_T_TYPE0_WI_MASK UART_WP7816T0_WI_MASK
8082#define UART_WP7816_T_TYPE0_WI_SHIFT UART_WP7816T0_WI_SHIFT
8083#define UART_WP7816_T_TYPE0_WI(x) UART_WP7816T0_WI(x)
8084#define UART_WP7816_T_TYPE1_BWI_MASK UART_WP7816T1_BWI_MASK
8085#define UART_WP7816_T_TYPE1_BWI_SHIFT UART_WP7816T1_BWI_SHIFT
8086#define UART_WP7816_T_TYPE1_BWI(x) UART_WP7816T1_BWI(x)
8087#define UART_WP7816_T_TYPE1_CWI_MASK UART_WP7816T1_CWI_MASK
8088#define UART_WP7816_T_TYPE1_CWI_SHIFT UART_WP7816T1_CWI_SHIFT
8089#define UART_WP7816_T_TYPE1_CWI(x) UART_WP7816T1_CWI(x)
8090#define Watchdog_IRQn WDOG_EWM_IRQn
8091#define Watchdog_IRQHandler WDOG_EWM_IRQHandler
8092#define LPTimer_IRQn LPTMR0_IRQn
8093#define LPTimer_IRQHandler LPTMR0_IRQHandler
8094#define LLW_IRQn LLWU_IRQn
8095#define LLW_IRQHandler LLWU_IRQHandler
8096#define DMAMUX0 DMAMUX
8097#define WDOG0 WDOG
8098#define MCM0 MCM
8099#define RTC0 RTC
8100
8101/*!
8102 * @}
8103 */ /* end of group SDK_Compatibility_Symbols */
8104
8105
8106#endif /* _MK64F12_H_ */
8107
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl25z.h b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl25z.h
new file mode 100644
index 000000000..2f907e140
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl25z.h
@@ -0,0 +1,1100 @@
1/*
2 * Copyright (C) 2013-2016 Fabio Utzig, http://fabioutzig.com
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
22
23#ifndef _KL25Z_H_
24#define _KL25Z_H_
25
26/**
27 * @brief KL2x Interrupt Number Definition, according to the selected device
28 * in @ref Library_configuration_section
29 */
30#define __MPU_PRESENT 0
31#define __VTOR_PRESENT 1
32#define __NVIC_PRIO_BITS 2
33#define __Vendor_SysTickConfig 0
34
35/*
36 * ==============================================================
37 * ---------- Interrupt Number Definition -----------------------
38 * ==============================================================
39 */
40typedef enum IRQn
41{
42/****** Cortex-M0 Processor Exceptions Numbers ****************/
43 Reset_IRQn = -15,
44 NonMaskableInt_IRQn = -14,
45 HardFault_IRQn = -13,
46 SVCall_IRQn = -5,
47 PendSV_IRQn = -2,
48 SysTick_IRQn = -1,
49
50/****** KL2x Specific Interrupt Numbers ***********************/
51 DMA0_IRQn = 0,
52 DMA1_IRQn = 1,
53 DMA2_IRQn = 2,
54 DMA3_IRQn = 3,
55 Reserved0_IRQn = 4,
56 FTFA_IRQn = 5,
57 PMC_IRQn = 6,
58 LLWU_IRQn = 7,
59 I2C0_IRQn = 8,
60 I2C1_IRQn = 9,
61 SPI0_IRQn = 10,
62 SPI1_IRQn = 11,
63 UART0_IRQn = 12,
64 UART1_IRQn = 13,
65 UART2_IRQn = 14,
66 ADC0_IRQn = 15,
67 CMP0_IRQn = 16,
68 TPM0_IRQn = 17,
69 TPM1_IRQn = 18,
70 TPM2_IRQn = 19,
71 RTC0_IRQn = 20,
72 RTC1_IRQn = 21,
73 PIT_IRQn = 22,
74 Reserved1_IRQn = 23,
75 USB_OTG_IRQn = 24,
76 DAC0_IRQn = 25,
77 TSI0_IRQn = 26,
78 MCG_IRQn = 27,
79 LPTMR0_IRQn = 28,
80 Reserved2_IRQn = 29,
81 PINA_IRQn = 30,
82 PIND_IRQn = 31,
83} IRQn_Type;
84
85#include "core_cm0plus.h" /* Cortex-M0+ processor and core peripherals */
86
87/*
88 * ==========================================================================
89 * ----------- Processor and Core Peripheral Section ------------------------
90 * ==========================================================================
91 */
92
93typedef struct
94{
95 __IO uint8_t C1;
96 __IO uint8_t C2;
97 __IO uint8_t C3;
98 __IO uint8_t C4;
99 __IO uint8_t C5;
100 __IO uint8_t C6;
101 __I uint8_t S;
102 uint8_t RESERVED0[1];
103 __IO uint8_t SC;
104 uint8_t RESERVED1[1];
105 __IO uint8_t ATCVH;
106 __IO uint8_t ATCVL;
107 __IO uint8_t C7;
108 __IO uint8_t C8;
109 __IO uint8_t C9;
110 __IO uint8_t C10;
111} MCG_TypeDef;
112
113typedef struct
114{
115 __IO uint32_t SC;
116 __IO uint32_t CNT;
117 __IO uint32_t MOD;
118 struct { // Channels
119 __IO uint32_t SC;
120 __IO uint32_t V;
121 } C[6];
122 uint32_t RESERVED0[5];
123 __IO uint32_t STATUS;
124 uint32_t RESERVED1[12];
125 __IO uint32_t CONF;
126} TPM_TypeDef;
127
128typedef struct
129{
130 __IO uint32_t GENCS;
131 __IO uint32_t DATA;
132 __IO uint32_t TSHD;
133} TSI_TypeDef;
134
135typedef struct
136{
137 __IO uint8_t C1;
138 __IO uint8_t C2;
139 __IO uint8_t BR;
140 __IO uint8_t S;
141 uint8_t RESERVED0[1];
142 __IO uint8_t D;
143 uint8_t RESERVED1[1];
144 __IO uint8_t M;
145} SPI_TypeDef;
146
147typedef struct
148{
149 __IO uint8_t A1;
150 __IO uint8_t F;
151 __IO uint8_t C1;
152 __IO uint8_t S;
153 __IO uint8_t D;
154 __IO uint8_t C2;
155 __IO uint8_t FLT;
156 __IO uint8_t RA;
157 __IO uint8_t SMB;
158 __IO uint8_t A2;
159 __IO uint8_t SLTH;
160 __IO uint8_t SLTL;
161} I2C_TypeDef;
162
163typedef struct
164{
165 __IO uint8_t BDH;
166 __IO uint8_t BDL;
167 __IO uint8_t C1;
168 __IO uint8_t C2;
169 __I uint8_t S1;
170 __IO uint8_t S2;
171 __IO uint8_t C3;
172 __IO uint8_t D;
173 __IO uint8_t C4;
174} UART_TypeDef;
175
176typedef struct
177{
178 __IO uint8_t BDH;
179 __IO uint8_t BDL;
180 __IO uint8_t C1;
181 __IO uint8_t C2;
182 __IO uint8_t S1;
183 __IO uint8_t S2;
184 __IO uint8_t C3;
185 __IO uint8_t D;
186 __IO uint8_t MA1;
187 __IO uint8_t MA2;
188 __IO uint8_t C4;
189 __IO uint8_t C5;
190} UARTLP_TypeDef;
191
192typedef struct {
193 __I uint8_t PERID; // 0x00
194 uint8_t RESERVED0[3];
195 __I uint8_t IDCOMP; // 0x04
196 uint8_t RESERVED1[3];
197 __I uint8_t REV; // 0x08
198 uint8_t RESERVED2[3];
199 __I uint8_t ADDINFO; // 0x0C
200 uint8_t RESERVED3[3];
201 __IO uint8_t OTGISTAT; // 0x10
202 uint8_t RESERVED4[3];
203 __IO uint8_t OTGICR; // 0x14
204 uint8_t RESERVED5[3];
205 __IO uint8_t OTGSTAT; // 0x18
206 uint8_t RESERVED6[3];
207 __IO uint8_t OTGCTL; // 0x1C
208 uint8_t RESERVED7[99];
209 __IO uint8_t ISTAT; // 0x80
210 uint8_t RESERVED8[3];
211 __IO uint8_t INTEN; // 0x84
212 uint8_t RESERVED9[3];
213 __IO uint8_t ERRSTAT; // 0x88
214 uint8_t RESERVED10[3];
215 __IO uint8_t ERREN; // 0x8C
216 uint8_t RESERVED11[3];
217 __I uint8_t STAT; // 0x90
218 uint8_t RESERVED12[3];
219 __IO uint8_t CTL; // 0x94
220 uint8_t RESERVED13[3];
221 __IO uint8_t ADDR; // 0x98
222 uint8_t RESERVED14[3];
223 __IO uint8_t BDTPAGE1; // 0x9C
224 uint8_t RESERVED15[3];
225 __IO uint8_t FRMNUML; // 0xA0
226 uint8_t RESERVED16[3];
227 __IO uint8_t FRMNUMH; // 0xA4
228 uint8_t RESERVED17[3];
229 __IO uint8_t TOKEN; // 0xA8
230 uint8_t RESERVED18[3];
231 __IO uint8_t SOFTHLD; // 0xAC
232 uint8_t RESERVED19[3];
233 __IO uint8_t BDTPAGE2; // 0xB0
234 uint8_t RESERVED20[3];
235 __IO uint8_t BDTPAGE3; // 0xB4
236 uint8_t RESERVED21[11];
237 struct {
238 __IO uint8_t V; // 0xC0
239 uint8_t RESERVED[3];
240 } ENDPT[16];
241 __IO uint8_t USBCTRL; // 0x100
242 uint8_t RESERVED22[3];
243 __I uint8_t OBSERVE; // 0x104
244 uint8_t RESERVED23[3];
245 __IO uint8_t CONTROL; // 0x108
246 uint8_t RESERVED24[3];
247 __IO uint8_t USBTRC0; // 0x10C
248 uint8_t RESERVED25[7];
249 __IO uint8_t USBFRMADJUST; // 0x114
250} USBOTG_TypeDef;
251
252typedef struct
253{
254 __I uint8_t SRS0;
255 __I uint8_t SRS1;
256 uint8_t RESERVED0[2];
257 __IO uint8_t RPFC;
258 __IO uint8_t RPFW;
259} RCM_TypeDef;
260
261/****************************************************************/
262/* Peripheral memory map */
263/****************************************************************/
264#define DMA_BASE ((uint32_t)0x40008100)
265#define FTFA_BASE ((uint32_t)0x40020000)
266#define DMAMUX_BASE ((uint32_t)0x40021000)
267#define PIT_BASE ((uint32_t)0x40037000)
268#define TPM0_BASE ((uint32_t)0x40038000)
269#define TPM1_BASE ((uint32_t)0x40039000)
270#define TPM2_BASE ((uint32_t)0x4003A000)
271#define ADC0_BASE ((uint32_t)0x4003B000)
272#define RTC_BASE ((uint32_t)0x4003D000)
273#define DAC0_BASE ((uint32_t)0x4003F000)
274#define LPTMR0_BASE ((uint32_t)0x40040000)
275#define TSI0_BASE ((uint32_t)0x40045000)
276#define SIM_BASE ((uint32_t)0x40047000)
277#define PORTA_BASE ((uint32_t)0x40049000)
278#define PORTB_BASE ((uint32_t)0x4004A000)
279#define PORTC_BASE ((uint32_t)0x4004B000)
280#define PORTD_BASE ((uint32_t)0x4004C000)
281#define PORTE_BASE ((uint32_t)0x4004D000)
282#define MCG_BASE ((uint32_t)0x40064000)
283#define OSC0_BASE ((uint32_t)0x40065000)
284#define I2C0_BASE ((uint32_t)0x40066000)
285#define I2C1_BASE ((uint32_t)0x40067000)
286#define UART0_BASE ((uint32_t)0x4006A000)
287#define UART1_BASE ((uint32_t)0x4006B000)
288#define UART2_BASE ((uint32_t)0x4006C000)
289#define USBOTG_BASE ((uint32_t)0x40072000)
290#define CMP_BASE ((uint32_t)0x40073000)
291#define SPI0_BASE ((uint32_t)0x40076000)
292#define SPI1_BASE ((uint32_t)0x40077000)
293#define LLWU_BASE ((uint32_t)0x4007C000)
294#define PMC_BASE ((uint32_t)0x4007D000)
295#define SMC_BASE ((uint32_t)0x4007E000)
296#define RCM_BASE ((uint32_t)0x4007F000)
297#define GPIOA_BASE ((uint32_t)0x400FF000)
298#define GPIOB_BASE ((uint32_t)0x400FF040)
299#define GPIOC_BASE ((uint32_t)0x400FF080)
300#define GPIOD_BASE ((uint32_t)0x400FF0C0)
301#define GPIOE_BASE ((uint32_t)0x400FF100)
302#define MCM_BASE ((uint32_t)0xF0003000)
303
304/****************************************************************/
305/* Peripheral declaration */
306/****************************************************************/
307#define DMA ((DMA_TypeDef *) DMA_BASE)
308#define FTFA ((FTFA_TypeDef *) FTFA_BASE)
309#define DMAMUX ((DMAMUX_TypeDef *) DMAMUX_BASE)
310#define PIT ((PIT_TypeDef *) PIT_BASE)
311#define TPM0 ((TPM_TypeDef *) TPM0_BASE)
312#define TPM1 ((TPM_TypeDef *) TPM1_BASE)
313#define TPM2 ((TPM_TypeDef *) TPM2_BASE)
314#define ADC0 ((ADC_TypeDef *) ADC0_BASE)
315#define RTC0 ((RTC_TypeDef *) RTC0_BASE)
316#define DAC0 ((DAC_TypeDef *) DAC0_BASE)
317#define LPTMR0 ((LPTMR_TypeDef *) LPTMR0_BASE)
318#define TSI0 ((TSI_TypeDef *) TSI0_BASE)
319#define SIM ((SIM_TypeDef *) SIM_BASE)
320#define LLWU ((LLWU_TypeDef *) LLWU_BASE)
321#define PMC ((PMC_TypeDef *) PMC_BASE)
322#define PORTA ((PORT_TypeDef *) PORTA_BASE)
323#define PORTB ((PORT_TypeDef *) PORTB_BASE)
324#define PORTC ((PORT_TypeDef *) PORTC_BASE)
325#define PORTD ((PORT_TypeDef *) PORTD_BASE)
326#define PORTE ((PORT_TypeDef *) PORTE_BASE)
327#define USB0 ((USBOTG_TypeDef *) USBOTG_BASE)
328#define CMP ((CMP_TypeDef *) CMP_BASE)
329#define MCG ((MCG_TypeDef *) MCG_BASE)
330#define OSC0 ((OSC_TypeDef *) OSC0_BASE)
331#define SPI0 ((SPI_TypeDef *) SPI0_BASE)
332#define SPI1 ((SPI_TypeDef *) SPI1_BASE)
333#define I2C0 ((I2C_TypeDef *) I2C0_BASE)
334#define I2C1 ((I2C_TypeDef *) I2C1_BASE)
335#define UART0 ((UARTLP_TypeDef *) UART0_BASE)
336#define UART1 ((UART_TypeDef *) UART1_BASE)
337#define UART2 ((UART_TypeDef *) UART2_BASE)
338#define SMC ((SMC_TypeDef *) SMC_BASE)
339#define RCM ((RCM_TypeDef *) RCM_BASE)
340#define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
341#define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
342#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
343#define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
344#define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
345#define MCM ((MCM_TypeDef *) MCM_BASE)
346
347/****************************************************************/
348/* Peripheral Registers Bits Definition */
349/****************************************************************/
350
351/****************************************************************/
352/* */
353/* System Integration Module (SIM) */
354/* */
355/****************************************************************/
356/********* Bits definition for SIM_SOPT1 register *************/
357#define SIM_SOPT1_USBREGEN ((uint32_t)0x80000000) /*!< USB voltage regulator enable */
358#define SIM_SOPT1_USBSSTBY ((uint32_t)0x40000000) /*!< USB voltage regulator in standby mode during Stop, VLPS, LLS and VLLS modes */
359#define SIM_SOPT1_USBVSTBY ((uint32_t)0x20000000) /*!< USB voltage regulator in standby mode during VLPR and VLPW modes */
360#define SIM_SOPT1_OSC32KSEL_SHIFT 18 /*!< 32K oscillator clock select (shift) */
361#define SIM_SOPT1_OSC32KSEL_MASK ((uint32_t)((uint32_t)0x03 << SIM_SOPT1_OSC32KSEL_SHIFT)) /*!< 32K oscillator clock select (mask) */
362#define SIM_SOPT1_OSC32KSEL(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT1_OSC32KSEL_SHIFT) & SIM_SOPT1_OSC32KSEL_MASK)) /*!< 32K oscillator clock select */
363
364/******* Bits definition for SIM_SOPT1CFG register ************/
365#define SIM_SOPT1CFG_USSWE ((uint32_t)0x04000000) /*!< USB voltage regulator stop standby write enable */
366#define SIM_SOPT1CFG_UVSWE ((uint32_t)0x02000000) /*!< USB voltage regulator VLP standby write enable */
367#define SIM_SOPT1CFG_URWE ((uint32_t)0x01000000) /*!< USB voltage regulator voltage regulator write enable */
368
369/******* Bits definition for SIM_SOPT2 register ************/
370#define SIM_SOPT2_UART0SRC_SHIFT 26 /*!< UART0 clock source select (shift) */
371#define SIM_SOPT2_UART0SRC_MASK ((uint32_t)((uint32_t)0x03 << SIM_SOPT2_UART0SRC_SHIFT)) /*!< UART0 clock source select (mask) */
372#define SIM_SOPT2_UART0SRC(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT2_UART0SRC_SHIFT) & SIM_SOPT2_UART0SRC_MASK)) /*!< UART0 clock source select */
373#define SIM_SOPT2_TPMSRC_SHIFT 24 /*!< TPM clock source select (shift) */
374#define SIM_SOPT2_TPMSRC_MASK ((uint32_t)((uint32_t)0x03 << SIM_SOPT2_TPMSRC_SHIFT)) /*!< TPM clock source select (mask) */
375#define SIM_SOPT2_TPMSRC(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT2_TPMSRC_SHIFT) & SIM_SOPT2_TPMSRC_MASK)) /*!< TPM clock source select */
376#define SIM_SOPT2_USBSRC ((uint32_t)0x00040000) /*!< USB clock source select */
377#define SIM_SOPT2_PLLFLLSEL ((uint32_t)0x00010000) /*!< PLL/FLL clock select */
378#define SIM_SOPT2_CLKOUTSEL_SHIFT 5 /*!< CLKOUT select (shift) */
379#define SIM_SOPT2_CLKOUTSEL_MASK ((uint32_t)((uint32_t)0x07 << SIM_SOPT2_CLKOUTSEL_SHIFT)) /*!< CLKOUT select (mask) */
380#define SIM_SOPT2_CLKOUTSEL(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT2_CLKOUTSEL_SHIFT) & SIM_SOPT2_CLKOUTSEL_MASK)) /*!< CLKOUT select */
381#define SIM_SOPT2_RTCCLKOUTSEL ((uint32_t)0x00000010) /*!< RTC clock out select */
382
383/******* Bits definition for SIM_SOPT4 register ************/
384#define SIM_SOPT4_TPM2CLKSEL ((uint32_t)0x04000000) /*!< TPM2 External Clock Pin Select */
385#define SIM_SOPT4_TPM1CLKSEL ((uint32_t)0x02000000) /*!< TPM1 External Clock Pin Select */
386#define SIM_SOPT4_TPM0CLKSEL ((uint32_t)0x01000000) /*!< TPM0 External Clock Pin Select */
387#define SIM_SOPT4_TPM2CH0SRC ((uint32_t)0x00100000) /*!< TPM2 channel 0 input capture source select */
388#define SIM_SOPT4_TPM1CH0SRC ((uint32_t)0x00040000) /*!< TPM1 channel 0 input capture source select */
389
390/******* Bits definition for SIM_SOPT5 register ************/
391#define SIM_SOPT5_UART2ODE ((uint32_t)0x00040000) /*!< UART2 Open Drain Enable */
392#define SIM_SOPT5_UART1ODE ((uint32_t)0x00020000) /*!< UART1 Open Drain Enable */
393#define SIM_SOPT5_UART0ODE ((uint32_t)0x00010000) /*!< UART0 Open Drain Enable */
394#define SIM_SOPT5_UART1RXSRC ((uint32_t)0x00000040) /*!< UART1 receive data source select */
395#define SIM_SOPT5_UART1TXSRC_SHIFT 4 /*!< UART1 transmit data source select (shift) */
396#define SIM_SOPT5_UART1TXSRC_MASK ((uint32_t)((uint32_t)0x03 << SIM_SOPT5_UART1TXSRC_SHIFT)) /*!< UART1 transmit data source select (mask) */
397#define SIM_SOPT5_UART1TXSRC(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT5_UART1TXSRC_SHIFT) & SIM_SOPT5_UART1TXSRC_MASK)) /*!< UART1 transmit data source select */
398#define SIM_SOPT5_UART0RXSRC ((uint32_t)0x00000040) /*!< UART0 receive data source select */
399#define SIM_SOPT5_UART0TXSRC_SHIFT 0 /*!< UART0 transmit data source select (shift) */
400#define SIM_SOPT5_UART0TXSRC_MASK ((uint32_t)((uint32_t)0x03 << SIM_SOPT5_UART0TXSRC_SHIFT)) /*!< UART0 transmit data source select (mask) */
401#define SIM_SOPT5_UART0TXSRC(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT5_UART0TXSRC_SHIFT) & SIM_SOPT5_UART0TXSRC_MASK)) /*!< UART0 transmit data source select */
402
403/******* Bits definition for SIM_SOPT7 register ************/
404#define SIM_SOPT7_ADC0ALTTRGEN ((uint32_t)0x00000080) /*!< ADC0 Alternate Trigger Enable */
405#define SIM_SOPT7_ADC0PRETRGSEL ((uint32_t)0x00000010) /*!< ADC0 Pretrigger Select */
406#define SIM_SOPT7_ADC0TRGSEL_SHIFT 0 /*!< ADC0 Trigger Select (shift) */
407#define SIM_SOPT7_ADC0TRGSEL_MASK ((uint32_t)((uint32_t)0x0F << SIM_SOPT7_ADC0TRGSEL_SHIFT)) /*!< ADC0 Trigger Select (mask) */
408#define SIM_SOPT7_ADC0TRGSEL(x) ((uint32_t)(((uint32_t)(x) << SIM_SOPT7_ADC0TRGSEL_SHIFT) & SIM_SOPT7_ADC0TRGSEL_MASK)) /*!< ADC0 Trigger Select */
409
410/******** Bits definition for SIM_SDID register ************/
411#define SIM_SDID_FAMID_SHIFT 28 /*!< Kinetis family ID (shift) */
412#define SIM_SDID_FAMID_MASK ((uint32_t)((uint32_t)0x0F << SIM_SDID_FAMID_SHIFT)) /*!< Kinetis family ID (mask) */
413#define SIM_SDID_SUBFAMID_SHIFT 24 /*!< Kinetis Sub-Family ID (shift) */
414#define SIM_SDID_SUBFAMID_MASK ((uint32_t)((uint32_t)0x0F << SIM_SDID_SUBFAMID_SHIFT)) /*!< Kinetis Sub-Family ID (mask) */
415#define SIM_SDID_SERIESID_SHIFT 20 /*!< Kinetis Series ID (shift) */
416#define SIM_SDID_SERIESID_MASK ((uint32_t)((uint32_t)0x0F << SIM_SDID_SERIESID_SHIFT)) /*!< Kinetis Series ID (mask) */
417#define SIM_SDID_SRAMSIZE_SHIFT 16 /*!< System SRAM Size (shift) */
418#define SIM_SDID_SRAMSIZE_MASK ((uint32_t)((uint32_t)0x0F << SIM_SDID_SRAMSIZE_SHIFT)) /*!< System SRAM Size (mask) */
419#define SIM_SDID_REVID_SHIFT 12 /*!< Device revision number (shift) */
420#define SIM_SDID_REVID_MASK ((uint32_t)((uint32_t)0x0F << SIM_SDID_REVID_SHIFT)) /*!< Device revision number (mask) */
421#define SIM_SDID_DIEID_SHIFT 7 /*!< Device die number (shift) */
422#define SIM_SDID_DIEID_MASK ((uint32_t)((uint32_t)0x1F << SIM_SDID_DIEID_SHIFT)) /*!< Device die number (mask) */
423#define SIM_SDID_PINID_SHIFT 0 /*!< Pincount identification (shift) */
424#define SIM_SDID_PINID_MASK ((uint32_t)((uint32_t)0x0F << SIM_SDID_PINID_SHIFT)) /*!< Pincount identification (mask) */
425
426/******* Bits definition for SIM_SCGC4 register ************/
427#define SIM_SCGC4_SPI1 ((uint32_t)0x00800000) /*!< SPI1 Clock Gate Control */
428#define SIM_SCGC4_SPI0 ((uint32_t)0x00400000) /*!< SPI0 Clock Gate Control */
429#define SIM_SCGC4_CMP ((uint32_t)0x00080000) /*!< Comparator Clock Gate Control */
430#define SIM_SCGC4_USBOTG ((uint32_t)0x00040000) /*!< USB Clock Gate Control */
431#define SIM_SCGC4_UART2 ((uint32_t)0x00001000) /*!< UART2 Clock Gate Control */
432#define SIM_SCGC4_UART1 ((uint32_t)0x00000800) /*!< UART1 Clock Gate Control */
433#define SIM_SCGC4_UART0 ((uint32_t)0x00000400) /*!< UART0 Clock Gate Control */
434#define SIM_SCGC4_I2C1 ((uint32_t)0x00000080) /*!< I2C1 Clock Gate Control */
435#define SIM_SCGC4_I2C0 ((uint32_t)0x00000040) /*!< I2C0 Clock Gate Control */
436
437/******* Bits definition for SIM_SCGC5 register ************/
438#define SIM_SCGC5_PORTE ((uint32_t)0x00002000) /*!< Port E Clock Gate Control */
439#define SIM_SCGC5_PORTD ((uint32_t)0x00001000) /*!< Port D Clock Gate Control */
440#define SIM_SCGC5_PORTC ((uint32_t)0x00000800) /*!< Port C Clock Gate Control */
441#define SIM_SCGC5_PORTB ((uint32_t)0x00000400) /*!< Port B Clock Gate Control */
442#define SIM_SCGC5_PORTA ((uint32_t)0x00000200) /*!< Port A Clock Gate Control */
443#define SIM_SCGC5_TSI ((uint32_t)0x00000020) /*!< TSI Access Control */
444#define SIM_SCGC5_LPTMR ((uint32_t)0x00000001) /*!< Low Power Timer Access Control */
445
446/******* Bits definition for SIM_SCGC6 register ************/
447#define SIM_SCGC6_DAC0 ((uint32_t)0x80000000) /*!< DAC0 Clock Gate Control */
448#define SIM_SCGC6_RTC ((uint32_t)0x20000000) /*!< RTC Access Control */
449#define SIM_SCGC6_ADC0 ((uint32_t)0x08000000) /*!< ADC0 Clock Gate Control */
450#define SIM_SCGC6_TPM2 ((uint32_t)0x04000000) /*!< TPM2 Clock Gate Control */
451#define SIM_SCGC6_TPM1 ((uint32_t)0x02000000) /*!< TPM1 Clock Gate Control */
452#define SIM_SCGC6_TPM0 ((uint32_t)0x01000000) /*!< TPM0 Clock Gate Control */
453#define SIM_SCGC6_PIT ((uint32_t)0x00800000) /*!< PIT Clock Gate Control */
454#define SIM_SCGC6_DMAMUX ((uint32_t)0x00000002) /*!< DMA Mux Clock Gate Control */
455#define SIM_SCGC6_FTF ((uint32_t)0x00000001) /*!< Flash Memory Clock Gate Control */
456
457/******* Bits definition for SIM_SCGC7 register ************/
458#define SIM_SCGC7_DMA ((uint32_t)0x00000100) /*!< DMA Clock Gate Control */
459
460/****** Bits definition for SIM_CLKDIV1 register ***********/
461#define SIM_CLKDIV1_OUTDIV1_SHIFT 28 /*!< Clock 1 output divider value (shift) */
462#define SIM_CLKDIV1_OUTDIV1_MASK ((uint32_t)((uint32_t)0x0F << SIM_CLKDIV1_OUTDIV1_SHIFT)) /*!< Clock 1 output divider value (mask) */
463#define SIM_CLKDIV1_OUTDIV1(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV1_OUTDIV1_SHIFT) & SIM_CLKDIV1_OUTDIV1_MASK)) /*!< Clock 1 output divider value */
464#define SIM_CLKDIV1_OUTDIV4_SHIFT 16 /*!< Clock 4 output divider value (shift) */
465#define SIM_CLKDIV1_OUTDIV4_MASK ((uint32_t)((uint32_t)0x07 << SIM_CLKDIV1_OUTDIV4_SHIFT)) /*!< Clock 4 output divider value (mask) */
466#define SIM_CLKDIV1_OUTDIV4(x) ((uint32_t)(((uint32_t)(x) << SIM_CLKDIV1_OUTDIV4_SHIFT) & SIM_CLKDIV1_OUTDIV4_MASK)) /*!< Clock 4 output divider value */
467
468/******* Bits definition for SIM_FCFG1 register ************/
469#define SIM_FCFG1_PFSIZE_SHIFT 24 /*!< Program Flash Size (shift) */
470#define SIM_FCFG1_PFSIZE_MASK ((uint32_t)((uint32_t)0x0F << SIM_FCFG1_PFSIZE_SHIFT)) /*!< Program Flash Size (mask) */
471#define SIM_FCFG1_FLASHDOZE ((uint32_t)0x00000002) /*!< Flash Doze */
472#define SIM_FCFG1_FLASHDIS ((uint32_t)0x00000001) /*!< Flash Disable */
473
474/******* Bits definition for SIM_FCFG2 register ************/
475#define SIM_FCFG2_MAXADDR0_SHIFT 24 /*!< Max address block (shift) */
476#define SIM_FCFG2_MAXADDR0_MASK ((uint32_t)((uint32_t)0x7F << SIM_FCFG2_MAXADDR0_SHIFT)) /*!< Max address block (mask) */
477
478/******* Bits definition for SIM_UIDMH register ************/
479#define SIM_UIDMH_UID_MASK ((uint32_t)0x0000FFFF) /*!< Unique Identification */
480
481/******* Bits definition for SIM_UIDML register ************/
482#define SIM_UIDML_UID_MASK ((uint32_t)0xFFFFFFFF) /*!< Unique Identification */
483
484/******* Bits definition for SIM_UIDL register *************/
485#define SIM_UIDL_UID_MASK ((uint32_t)0xFFFFFFFF) /*!< Unique Identification */
486
487/******* Bits definition for SIM_COPC register *************/
488#define SIM_COPC_COPT_SHIFT 2 /*!< COP Watchdog Timeout (shift) */
489#define SIM_COPC_COPT_MASK ((uint32_t)((uint32_t)0x03 << SIM_COPC_COPT_SHIFT)) /*!< COP Watchdog Timeout (mask) */
490#define SIM_COPC_COPT(x) ((uint32_t)(((uint32_t)(x) << SIM_COPC_COPT_SHIFT) & SIM_COPC_COPT_MASK)) /*!< COP Watchdog Timeout */
491#define SIM_COPC_COPCLKS ((uint32_t)0x00000002) /*!< COP Clock Select */
492#define SIM_COPC_COPW ((uint32_t)0x00000001) /*!< COP windowed mode */
493
494/******* Bits definition for SIM_SRVCOP register ***********/
495#define SIM_SRVCOP_SRVCOP_SHIFT 0 /*!< Sevice COP Register (shift) */
496#define SIM_SRVCOP_SRVCOP_MASK ((uint32_t)((uint32_t)0xFF << SIM_SRVCOP_SRVCOP_SHIFT)) /*!< Sevice COP Register (mask) */
497#define SIM_SRVCOP_SRVCOP(x) ((uint32_t)(((uint32_t)(x) << SIM_SRVCOP_SRVCOP_SHIFT) & SIM_SRVCOP_SRVCOP_MASK)) /*!< Sevice COP Register */
498
499/****************************************************************/
500/* */
501/* Low-Leakage Wakeup Unit (LLWU) */
502/* */
503/****************************************************************/
504
505/* Device independent */
506
507/****************************************************************/
508/* */
509/* Port Control and interrupts (PORT) */
510/* */
511/****************************************************************/
512
513/* Device independent */
514
515/****************************************************************/
516/* */
517/* Oscillator (OSC) */
518/* */
519/****************************************************************/
520
521/* Device independent */
522
523/****************************************************************/
524/* */
525/* Direct Memory Access (DMA) */
526/* */
527/****************************************************************/
528
529/* Device independent */
530
531/****************************************************************/
532/* */
533/* Direct Memory Access Multiplexer (DMAMUX) */
534/* */
535/****************************************************************/
536
537/* Device independent */
538
539/****************************************************************/
540/* */
541/* Periodic Interrupt Timer (PIT) */
542/* */
543/****************************************************************/
544
545/* Device independent */
546
547/****************************************************************/
548/* */
549/* Analog-to-Digital Converter (ADC) */
550/* */
551/****************************************************************/
552
553/* Device independent */
554
555/****************************************************************/
556/* */
557/* Low-Power Timer (LPTMR) */
558/* */
559/****************************************************************/
560
561/* Device independent */
562
563/****************************************************************/
564/* */
565/* Touch Sensing Input (TSI) */
566/* */
567/****************************************************************/
568/********** Bits definition for TSIx_GENCS register ***********/
569#define TSIx_GENCS_OUTRGF ((uint32_t)((uint32_t)1 << 31)) /*!< Out of Range Flag */
570#define TSIx_GENCS_ESOR ((uint32_t)((uint32_t)1 << 28)) /*!< End-of-scan/Out-of-Range Interrupt Selection */
571#define TSIx_GENCS_MODE_SHIFT 24 /*!< TSI analog modes setup and status bits (shift) */
572#define TSIx_GENCS_MODE_MASK ((uint32_t)((uint32_t)0x0F << TSIx_GENCS_MODE_SHIFT)) /*!< TSI analog modes setup and status bits (mask) */
573#define TSIx_GENCS_MODE(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_MODE_SHIFT) & TSIx_GENCS_MODE_MASK)) /*!< TSI analog modes setup and status bits */
574#define TSIx_GENCS_REFCHRG_SHIFT 21 /*!< Reference oscillator charge/discharge current (shift) */
575#define TSIx_GENCS_REFCHRG_MASK ((uint32_t)((uint32_t)0x07 << TSIx_GENCS_REFCHRG_SHIFT)) /*!< Reference oscillator charge/discharge current (mask) */
576#define TSIx_GENCS_REFCHRG(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_REFCHRG_SHIFT) & TSIx_GENCS_REFCHRG_MASK)) /*!< Reference oscillator charge/discharge current */
577#define TSIx_GENCS_DVOLT_SHIFT 19 /*!< Oscillator voltage rails (shift) */
578#define TSIx_GENCS_DVOLT_MASK ((uint32_t)((uint32_t)0x03 << TSIx_GENCS_DVOLT_SHIFT)) /*!< Oscillator voltage rails (mask) */
579#define TSIx_GENCS_DVOLT(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_DVOLT_SHIFT) & TSIx_GENCS_DVOLT_MASK)) /*!< Oscillator voltage rails */
580#define TSIx_GENCS_EXTCHRG_SHIFT 16 /*!< Electrode oscillator charge/discharge current (shift) */
581#define TSIx_GENCS_EXTCHRG_MASK ((uint32_t)((uint32_t)0x07 << TSIx_GENCS_EXTCHRG_SHIFT)) /*!< Electrode oscillator charge/discharge current (mask) */
582#define TSIx_GENCS_EXTCHRG(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_EXTCHRG_SHIFT) & TSIx_GENCS_EXTCHRG_MASK)) /*!< Electrode oscillator charge/discharge current */
583#define TSIx_GENCS_PS_SHIFT 13 /*!< Electrode oscillator prescaler (shift) */
584#define TSIx_GENCS_PS_MASK ((uint32_t)((uint32_t)0x07 << TSIx_GENCS_PS_SHIFT)) /*!< Electrode oscillator prescaler (mask) */
585#define TSIx_GENCS_PS(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_PS_SHIFT) & TSIx_GENCS_PS_MASK)) /*!< Electrode oscillator prescaler */
586#define TSIx_GENCS_NSCN_SHIFT 8 /*!< Number of scans per electrode minus 1 (shift) */
587#define TSIx_GENCS_NSCN_MASK ((uint32_t)((uint32_t)0x1F << TSIx_GENCS_NSCN_SHIFT)) /*!< Number of scans per electrode minus 1 (mask) */
588#define TSIx_GENCS_NSCN(x) ((uint32_t)(((uint32_t)(x) << TSIx_GENCS_NSCN_SHIFT) & TSIx_GENCS_NSCN_MASK)) /*!< Number of scans per electrode minus 1 */
589#define TSIx_GENCS_TSIEN ((uint32_t)((uint32_t)1 << 7)) /*!< TSI Module Enable */
590#define TSIx_GENCS_TSIIEN ((uint32_t)((uint32_t)1 << 6)) /*!< TSI Interrupt Enable */
591#define TSIx_GENCS_STPE ((uint32_t)((uint32_t)1 << 5)) /*!< TSI STOP Enable */
592#define TSIx_GENCS_STM ((uint32_t)((uint32_t)1 << 4)) /*!< Scan Trigger Mode (0=software; 1=hardware) */
593#define TSIx_GENCS_SCNIP ((uint32_t)((uint32_t)1 << 3)) /*!< Scan in Progress Status */
594#define TSIx_GENCS_EOSF ((uint32_t)((uint32_t)1 << 2)) /*!< End of Scan Flag */
595#define TSIx_GENCS_CURSW ((uint32_t)((uint32_t)1 << 1)) /*!< Swap electrode and reference current sources */
596
597/********** Bits definition for TSIx_DATA register ************/
598#define TSIx_DATA_TSICH_SHIFT 28 /*!< Specify channel to be measured (shift) */
599#define TSIx_DATA_TSICH_MASK ((uint32_t)((uint32_t)0x0F << TSIx_DATA_TSICH_SHIFT)) /*!< Specify channel to be measured (mask) */
600#define TSIx_DATA_TSICH(x) ((uint32_t)(((uint32_t)(x) << TSIx_DATA_TSICH_SHIFT) & TSIx_DATA_TSICH_MASK)) /*!< Specify channel to be measured */
601#define TSIx_DATA_DMAEN ((uint32_t)((uint32_t)1 << 23)) /*!< DMA Transfer Enabled */
602#define TSIx_DATA_SWTS ((uint32_t)((uint32_t)1 << 22)) /*!< Software Trigger Start */
603#define TSIx_DATA_TSICNT_SHIFT 0 /*!< TSI Conversion Counter Value (shift) */
604#define TSIx_DATA_TSICNT_MASK ((uint32_t)((uint32_t)0xFFFF << TSIx_DATA_TSICNT_SHIFT)) /*!< TSI Conversion Counter Value (mask) */
605#define TSIx_DATA_TSICNT(x) ((uint32_t)(((uint32_t)(x) << TSIx_DATA_TSICNT_SHIFT) & TSIx_DATA_TSICNT_MASK)) /*!< TSI Conversion Counter Value */
606
607/********** Bits definition for TSIx_TSHD register ************/
608#define TSIx_TSHD_THRESH_SHIFT 16 /*!< TSI Wakeup Channel High-Threshold (shift) */
609#define TSIx_TSHD_THRESH_MASK ((uint32_t)((uint32_t)0xFFFF << TSIx_TSHD_THRESH_SHIFT)) /*!< TSI Wakeup Channel High-Threshold (mask) */
610#define TSIx_TSHD_THRESH(x) ((uint32_t)(((uint32_t)(x) << TSIx_TSHD_THRESH_SHIFT) & TSIx_TSHD_THRESH_MASK)) /*!< TSI Wakeup Channel High-Threshold */
611#define TSIx_TSHD_THRESL_SHIFT 0 /*!< TSI Wakeup Channel Low-Threshold (shift) */
612#define TSIx_TSHD_THRESL_MASK ((uint32_t)((uint32_t)0xFFFF << TSIx_TSHD_THRESL_SHIFT)) /*!< TSI Wakeup Channel Low-Threshold (mask) */
613#define TSIx_TSHD_THRESL(x) ((uint32_t)(((uint32_t)(x) << TSIx_TSHD_THRESL_SHIFT) & TSIx_TSHD_THRESL_MASK)) /*!< TSI Wakeup Channel Low-Threshold */
614
615/****************************************************************/
616/* */
617/* Multipurpose Clock Generator (MCG) */
618/* */
619/****************************************************************/
620/*********** Bits definition for MCG_C1 register **************/
621#define MCG_C1_CLKS_SHIFT 6 /*!< Clock source select (shift) */
622#define MCG_C1_CLKS_MASK ((uint8_t)((uint8_t)0x03 << MCG_C1_CLKS_SHIFT)) /*!< Clock source select (mask) */
623#define MCG_C1_CLKS(x) ((uint8_t)(((uint8_t)(x) << MCG_C1_CLKS_SHIFT) & MCG_C1_CLKS_MASK)) /*!< Clock source select */
624#define MCG_C1_CLKS_FLLPLL MCG_C1_CLKS(0) /*!< Select output of FLL or PLL, depending on PLLS control bit */
625#define MCG_C1_CLKS_IRCLK MCG_C1_CLKS(1) /*!< Select internal reference clock */
626#define MCG_C1_CLKS_ERCLK MCG_C1_CLKS(2) /*!< Select external reference clock */
627#define MCG_C1_FRDIV_SHIFT 3 /*!< FLL External Reference Divider (shift) */
628#define MCG_C1_FRDIV_MASK ((uint8_t)((uint8_t)0x07 << MCG_C1_FRDIV_SHIFT)) /*!< FLL External Reference Divider (mask) */
629#define MCG_C1_FRDIV(x) ((uint8_t)(((uint8_t)(x) << MCG_C1_FRDIV_SHIFT) & MCG_C1_FRDIV_MASK)) /*!< FLL External Reference Divider */
630#define MCG_C1_IREFS ((uint8_t)((uint8_t)1 << 2)) /*!< Internal Reference Select (0=ERCLK; 1=slow IRCLK) */
631#define MCG_C1_IRCLKEN ((uint8_t)((uint8_t)1 << 1)) /*!< Internal Reference Clock Enable */
632#define MCG_C1_IREFSTEN ((uint8_t)((uint8_t)1 << 0)) /*!< Internal Reference Stop Enable */
633
634/*********** Bits definition for MCG_C2 register **************/
635#define MCG_C2_LOCRE0 ((uint8_t)((uint8_t)1 << 7)) /*!< Loss of Clock Reset Enable */
636#define MCG_C2_RANGE0_SHIFT 4 /*!< Frequency Range Select (shift) */
637#define MCG_C2_RANGE0_MASK ((uint8_t)((uint8_t)0x03 << MCG_C2_RANGE0_SHIFT)) /*!< Frequency Range Select (mask) */
638#define MCG_C2_RANGE0(x) ((uint8_t)(((uint8_t)(x) << MCG_C2_RANGE0_SHIFT) & MCG_C2_RANGE0_MASK)) /*!< Frequency Range Select */
639#define MCG_C2_HGO0 ((uint8_t)((uint8_t)1 << 3)) /*!< High Gain Oscillator Select (0=low power; 1=high gain) */
640#define MCG_C2_EREFS0 ((uint8_t)((uint8_t)1 << 2)) /*!< External Reference Select (0=clock; 1=oscillator) */
641#define MCG_C2_LP ((uint8_t)((uint8_t)1 << 1)) /*!< Low Power Select (1=FLL/PLL disabled in bypass modes) */
642#define MCG_C2_IRCS ((uint8_t)((uint8_t)1 << 0)) /*!< Internal Reference Clock Select (0=slow; 1=fast) */
643
644/*********** Bits definition for MCG_C3 register **************/
645#define MCG_C3_SCTRIM_SHIFT 0 /*!< Slow Internal Reference Clock Trim Setting (shift) */
646#define MCG_C3_SCTRIM_MASK ((uint8_t)((uint8_t)0xFF << MCG_C3_SCTRIM_SHIFT)) /*!< Slow Internal Reference Clock Trim Setting (mask) */
647#define MCG_C3_SCTRIM(x) ((uint8_t)(((uint8_t)(x) << MCG_C3_SCTRIM_SHIFT) & MCG_C3_SCTRIM_MASK)) /*!< Slow Internal Reference Clock Trim Setting */
648
649/*********** Bits definition for MCG_C4 register **************/
650#define MCG_C4_DMX32 ((uint8_t)((uint8_t)1 << 7)) /*!< DCO Maximum Frequency with 32.768 kHz Reference */
651#define MCG_C4_DRST_DRS_SHIFT 5 /*!< DCO Range Select (shift) */
652#define MCG_C4_DRST_DRS_MASK ((uint8_t)((uint8_t)0x03 << MCG_C4_DRST_DRS_SHIFT)) /*!< DCO Range Select (mask) */
653#define MCG_C4_DRST_DRS(x) ((uint8_t)(((uint8_t)(x) << MCG_C4_DRST_DRS_SHIFT) & MCG_C4_DRST_DRS_MASK)) /*!< DCO Range Select */
654#define MCG_C4_FCTRIM_SHIFT 1 /*!< Fast Internal Reference Clock Trim Setting (shift) */
655#define MCG_C4_FCTRIM_MASK ((uint8_t)((uint8_t)0x0F << MCG_C4_FCTRIM_SHIFT)) /*!< Fast Internal Reference Clock Trim Setting (mask) */
656#define MCG_C4_FCTRIM(x) ((uint8_t)(((uint8_t)(x) << MCG_C4_FCTRIM_SHIFT) & MCG_C4_FCTRIM_MASK)) /*!< Fast Internal Reference Clock Trim Setting */
657#define MCG_C4_SCFTRIM ((uint8_t)((uint8_t)1 << 0)) /*!< Slow Internal Reference Clock Fine Trim */
658
659/*********** Bits definition for MCG_C5 register **************/
660#define MCG_C5_PLLCLKEN0 ((uint8_t)((uint8_t)1 << 6)) /*!< PLL Clock Enable */
661#define MCG_C5_PLLSTEN0 ((uint8_t)((uint8_t)1 << 5)) /*!< PLL Stop Enable */
662#define MCG_C5_PRDIV0_SHIFT 0 /*!< PLL External Reference Divider (shift) */
663#define MCG_C5_PRDIV0_MASK ((uint8_t)((uint8_t)0x1F << MCG_C5_PRDIV0_SHIFT)) /*!< PLL External Reference Divider (mask) */
664#define MCG_C5_PRDIV0(x) ((uint8_t)(((uint8_t)(x) << MCG_C5_PRDIV0_SHIFT) & MCG_C5_PRDIV0_MASK)) /*!< PLL External Reference Divider */
665
666/*********** Bits definition for MCG_C6 register **************/
667#define MCG_C6_LOLIE0 ((uint8_t)((uint8_t)1 << 7)) /*!< Loss of Lock Interrupt Enable */
668#define MCG_C6_PLLS ((uint8_t)((uint8_t)1 << 6)) /*!< PLL Select */
669#define MCG_C6_CME0 ((uint8_t)((uint8_t)1 << 5)) /*!< Clock Monitor Enable */
670#define MCG_C6_VDIV0_SHIFT 0 /*!< VCO 0 Divider (shift) */
671#define MCG_C6_VDIV0_MASK ((uint8_t)((uint8_t)0x1F << MCG_C6_VDIV0_SHIFT)) /*!< VCO 0 Divider (mask) */
672#define MCG_C6_VDIV0(x) ((uint8_t)(((uint8_t)(x) << MCG_C6_VDIV0_SHIFT) & MCG_C6_VDIV0_MASK)) /*!< VCO 0 Divider */
673
674/************ Bits definition for MCG_S register **************/
675#define MCG_S_LOLS ((uint8_t)((uint8_t)1 << 7)) /*!< Loss of Lock Status */
676#define MCG_S_LOCK0 ((uint8_t)((uint8_t)1 << 6)) /*!< Lock Status */
677#define MCG_S_PLLST ((uint8_t)((uint8_t)1 << 5)) /*!< PLL Select Status */
678#define MCG_S_IREFST ((uint8_t)((uint8_t)1 << 4)) /*!< Internal Reference Status */
679#define MCG_S_CLKST_SHIFT 2 /*!< Clock Mode Status (shift) */
680#define MCG_S_CLKST_MASK ((uint8_t)((uint8_t)0x03 << MCG_S_CLKST_SHIFT)) /*!< Clock Mode Status (mask) */
681#define MCG_S_CLKST(x) ((uint8_t)(((uint8_t)(x) << MCG_S_CLKST_SHIFT) & MCG_S_CLKST_MASK)) /*!< Clock Mode Status */
682#define MCG_S_CLKST_FLL MCG_S_CLKST(0) /*!< Output of the FLL is selected */
683#define MCG_S_CLKST_IRCLK MCG_S_CLKST(1) /*!< Internal reference clock is selected */
684#define MCG_S_CLKST_ERCLK MCG_S_CLKST(2) /*!< External reference clock is selected */
685#define MCG_S_CLKST_PLL MCG_S_CLKST(3) /*!< Output of the PLL is selected */
686#define MCG_S_OSCINIT0 ((uint8_t)((uint8_t)1 << 1)) /*!< OSC Initialization */
687#define MCG_S_IRCST ((uint8_t)((uint8_t)1 << 0)) /*!< Internal Reference Clock Status */
688
689/************ Bits definition for MCG_SC register **************/
690#define MCG_SC_ATME ((uint8_t)((uint8_t)1 << 7)) /*!< Automatic Trim Machine Enable */
691#define MCG_SC_ATMS ((uint8_t)((uint8_t)1 << 6)) /*!< Automatic Trim Machine Select */
692#define MCG_SC_ATMF ((uint8_t)((uint8_t)1 << 5)) /*!< Automatic Trim Machine Fail Flag */
693#define MCG_SC_FLTPRSRV ((uint8_t)((uint8_t)1 << 4) /*!< FLL Filter Preserve Enable */
694#define MCG_SC_FCRDIV_SHIFT 1 /*!< Fast Clock Internal Reference Divider (shift) */
695#define MCG_SC_FCRDIV_MASK ((uint8_t)((uint8_t)0x07 << MCG_SC_FCRDIV_SHIFT)) /*!< Fast Clock Internal Reference Divider (mask) */
696#define MCG_SC_FCRDIV(x) ((uint8_t)(((uint8_t)(x) << MCG_SC_FCRDIV_SHIFT) & MCG_SC_FCRDIV_MASK)) /*!< Fast Clock Internal Reference Divider */
697#define MCG_SC_FCRDIV_DIV1 MCG_SC_FCRDIV(0) /*!< Divide Factor is 1 */
698#define MCG_SC_FCRDIV_DIV2 MCG_SC_FCRDIV(1) /*!< Divide Factor is 2 */
699#define MCG_SC_FCRDIV_DIV4 MCG_SC_FCRDIV(2) /*!< Divide Factor is 4 */
700#define MCG_SC_FCRDIV_DIV8 MCG_SC_FCRDIV(3) /*!< Divide Factor is 8 */
701#define MCG_SC_FCRDIV_DIV16 MCG_SC_FCRDIV(4) /*!< Divide Factor is 16 */
702#define MCG_SC_FCRDIV_DIV32 MCG_SC_FCRDIV(5) /*!< Divide Factor is 32 */
703#define MCG_SC_FCRDIV_DIV64 MCG_SC_FCRDIV(6) /*!< Divide Factor is 64 */
704#define MCG_SC_FCRDIV_DIV128 MCG_SC_FCRDIV(7) /*!< Divide Factor is 128 */
705#define MCG_SC_LOCS0 ((uint8_t)((uint8_t)1 << 0) /*!< OSC0 Loss of Clock Status */
706
707/*********** Bits definition for MCG_ATCVH register ************/
708#define MCG_ATCVH_ATCVH_SHIFT 0 /*!< MCG Auto Trim Compare Value High Register (shift) */
709#define MCG_ATCVH_ATCVH_MASK ((uint8_t)((uint8_t)0xFF << MCG_ATCVH_ATCVH_SHIFT)) /*!< MCG Auto Trim Compare Value High Register (mask) */
710#define MCG_ATCVH_ATCVH(x) ((uint8_t)(((uint8_t)(x) << MCG_ATCVH_ATCVH_SHIFT) & MCG_ATCVH_ATCVH_MASK)) /*!< MCG Auto Trim Compare Value High Register */
711
712/*********** Bits definition for MCG_ATCVL register ************/
713#define MCG_ATCVL_ATCVL_SHIFT 0 /*!< MCG Auto Trim Compare Value Low Register (shift) */
714#define MCG_ATCVL_ATCVL_MASK ((uint8_t)((uint8_t)0xFF << MCG_ATCVL_ATCVL_SHIFT)) /*!< MCG Auto Trim Compare Value Low Register (mask) */
715#define MCG_ATCVL_ATCVL(x) ((uint8_t)(((uint8_t)(x) << MCG_ATCVL_ATCVL_SHIFT) & MCG_ATCVL_ATCVL_MASK)) /*!< MCG Auto Trim Compare Value Low Register */
716
717/************ Bits definition for MCG_C7 register **************/
718/* All MCG_C7 bits are reserved on the KL25Z. */
719
720/************ Bits definition for MCG_C8 register **************/
721#define MCG_C8_LOLRE ((uint8_t)((uint8_t)1 << 6)) /*!< PLL Loss of Lock Reset Enable */
722
723/************ Bits definition for MCG_C9 register **************/
724/* All MCG_C9 bits are reserved on the KL25Z. */
725
726/************ Bits definition for MCG_C10 register *************/
727/* All MCG_C10 bits are reserved on the KL25Z. */
728
729
730/****************************************************************/
731/* */
732/* Serial Peripheral Interface (SPI) */
733/* */
734/****************************************************************/
735/*********** Bits definition for SPIx_C1 register *************/
736#define SPIx_C1_SPIE ((uint8_t)0x80) /*!< SPI Interrupt Enable */
737#define SPIx_C1_SPE ((uint8_t)0x40) /*!< SPI System Enable */
738#define SPIx_C1_SPTIE ((uint8_t)0x20) /*!< SPI Transmit Interrupt Enable */
739#define SPIx_C1_MSTR ((uint8_t)0x10) /*!< Master/Slave Mode Select */
740#define SPIx_C1_CPOL ((uint8_t)0x08) /*!< Clock Polarity */
741#define SPIx_C1_CPHA ((uint8_t)0x04) /*!< Clock Phase */
742#define SPIx_C1_SSOE ((uint8_t)0x02) /*!< Slave Select Output Enable */
743#define SPIx_C1_LSBFE ((uint8_t)0x01) /*!< LSB First */
744
745/*********** Bits definition for SPIx_C2 register *************/
746#define SPIx_C2_SPMIE ((uint8_t)0x80) /*!< SPI Match Interrupt Enable */
747#define SPIx_C2_TXDMAE ((uint8_t)0x20) /*!< Transmit DMA Enable */
748#define SPIx_C2_MODFEN ((uint8_t)0x10) /*!< Master Mode-Fault Function Enable */
749#define SPIx_C2_BIDIROE ((uint8_t)0x08) /*!< Bidirectional Mode Output Enable */
750#define SPIx_C2_RXDMAE ((uint8_t)0x04) /*!< Receive DMA Enable */
751#define SPIx_C2_SPISWAI ((uint8_t)0x02) /*!< SPI Stop in Wait Mode */
752#define SPIx_C2_SPC0 ((uint8_t)0x01) /*!< SPI Pin Control 0 */
753
754/*********** Bits definition for SPIx_BR register *************/
755#define SPIx_BR_SPPR_SHIFT 4 /*!< SPI Baud rate Prescaler Divisor */
756#define SPIx_BR_SPPR_MASK ((uint8_t)((uint8_t)0x7 << SPIx_BR_SPPR_SHIFT))
757#define SPIx_BR_SPPR(x) ((uint8_t)(((uint8_t)(x) << SPIx_BR_SPPR_SHIFT) & SPIx_BR_SPPR_MASK))
758#define SPIx_BR_SPR_SHIFT 0 /*!< SPI Baud rate Divisor */
759#define SPIx_BR_SPR_MASK ((uint8_t)((uint8_t)0x0F << SPIx_BR_SPR_SHIFT))
760#define SPIx_BR_SPR(x) ((uint8_t)(((uint8_t)(x) << SPIx_BR_SPR_SHIFT) & SPIx_BR_SPR_MASK))
761
762/*********** Bits definition for SPIx_S register **************/
763#define SPIx_S_SPRF ((uint8_t)0x80) /*!< SPI Read Buffer Full Flag */
764#define SPIx_S_SPMF ((uint8_t)0x40) /*!< SPI Match Flag */
765#define SPIx_S_SPTEF ((uint8_t)0x20) /*!< SPI Transmit Buffer Empty Flag */
766#define SPIx_S_MODF ((uint8_t)0x10) /*!< Master Mode Fault Flag */
767
768/*********** Bits definition for SPIx_D register **************/
769#define SPIx_D_DATA_SHIFT 0 /*!< Data */
770#define SPIx_D_DATA_MASK ((uint8_t)((uint8_t)0xFF << SPIx_D_DATA_SHIFT))
771#define SPIx_D_DATA(x) ((uint8_t)(((uint8_t)(x) << SPIx_D_DATA_SHIFT) & SPIx_D_DATA_MASK))
772
773/*********** Bits definition for SPIx_M register **************/
774#define SPIx_M_DATA_SHIFT 0 /*!< SPI HW Compare value for Match */
775#define SPIx_M_DATA_MASK ((uint8_t)((uint8_t)0xFF << SPIx_M_DATA_SHIFT))
776#define SPIx_M_DATA(x) ((uint8_t)(((uint8_t)(x) << SPIx_M_DATA_SHIFT) & SPIx_M_DATA_MASK))
777
778/****************************************************************/
779/* */
780/* Inter-Integrated Circuit (I2C): Device dependent part */
781/* */
782/****************************************************************/
783/*********** Bits definition for I2Cx_FLT register ************/
784#define I2Cx_FLT_SHEN ((uint8_t)0x80) /*!< Stop Hold Enable */
785#define I2Cx_FLT_STOPF ((uint8_t)0x40) /*!< I2C Bus Stop Detect Flag */
786#define I2Cx_FLT_STOPIE ((uint8_t)0x20) /*!< I2C Bus Stop Interrupt Enable */
787#define I2Cx_FLT_FLT_SHIFT 0 /*!< I2C Programmable Filter Factor */
788#define I2Cx_FLT_FLT_MASK ((uint8_t)((uint8_t)0x1F << I2Cx_FLT_FLT_SHIFT))
789#define I2Cx_FLT_FLT(x) ((uint8_t)(((uint8_t)(x) << I2Cx_FLT_FLT_SHIFT) & I2Cx_FLT_FLT_MASK))
790
791/****************************************************************/
792/* */
793/* Universal Asynchronous Receiver/Transmitter (UART) */
794/* */
795/****************************************************************/
796/********* Bits definition for UARTx_BDH register *************/
797#define UARTx_BDH_LBKDIE ((uint8_t)0x80) /*!< LIN Break Detect Interrupt Enable */
798#define UARTx_BDH_RXEDGIE ((uint8_t)0x40) /*!< RX Input Active Edge Interrupt Enable */
799#define UARTx_BDH_SBNS ((uint8_t)0x20) /*!< Stop Bit Number Select */
800#define UARTx_BDH_SBR_SHIFT 0 /*!< Baud Rate Modulo Divisor */
801#define UARTx_BDH_SBR_MASK ((uint8_t)((uint8_t)0x1F << UARTx_BDH_SBR_SHIFT))
802#define UARTx_BDH_SBR(x) ((uint8_t)(((uint8_t)(x) << UARTx_BDH_SBR_SHIFT) & UARTx_BDH_SBR_MASK))
803
804/********* Bits definition for UARTx_BDL register *************/
805#define UARTx_BDL_SBR_SHIFT 0 /*!< Baud Rate Modulo Divisor */
806#define UARTx_BDL_SBR_MASK ((uint8_t)((uint8_t)0xFF << UARTx_BDL_SBR_SHIFT))
807#define UARTx_BDL_SBR(x) ((uint8_t)(((uint8_t)(x) << UARTx_BDL_SBR_SHIFT) & UARTx_BDL_SBR_MASK))
808
809/********* Bits definition for UARTx_C1 register **************/
810#define UARTx_C1_LOOPS ((uint8_t)0x80) /*!< Loop Mode Select */
811#define UARTx_C1_DOZEEN ((uint8_t)0x40) /*!< Doze Enable */
812#define UARTx_C1_UARTSWAI ((uint8_t)0x40) /*!< UART Stops in Wait Mode */
813#define UARTx_C1_RSRC ((uint8_t)0x20) /*!< Receiver Source Select */
814#define UARTx_C1_M ((uint8_t)0x10) /*!< 9-Bit or 8-Bit Mode Select */
815#define UARTx_C1_WAKE ((uint8_t)0x08) /*!< Receiver Wakeup Method Select */
816#define UARTx_C1_ILT ((uint8_t)0x04) /*!< Idle Line Type Select */
817#define UARTx_C1_PE ((uint8_t)0x02) /*!< Parity Enable */
818#define UARTx_C1_PT ((uint8_t)0x01) /*!< Parity Type */
819
820/********* Bits definition for UARTx_C2 register **************/
821#define UARTx_C2_TIE ((uint8_t)0x80) /*!< Transmit Interrupt Enable for TDRE */
822#define UARTx_C2_TCIE ((uint8_t)0x40) /*!< Transmission Complete Interrupt Enable for TC */
823#define UARTx_C2_RIE ((uint8_t)0x20) /*!< Receiver Interrupt Enable for RDRF */
824#define UARTx_C2_ILIE ((uint8_t)0x10) /*!< Idle Line Interrupt Enable for IDLE */
825#define UARTx_C2_TE ((uint8_t)0x08) /*!< Transmitter Enable */
826#define UARTx_C2_RE ((uint8_t)0x04) /*!< Receiver Enable */
827#define UARTx_C2_RWU ((uint8_t)0x02) /*!< Receiver Wakeup Control */
828#define UARTx_C2_SBK ((uint8_t)0x01) /*!< Send Break */
829
830/********* Bits definition for UARTx_S1 register **************/
831#define UARTx_S1_TDRE ((uint8_t)0x80) /*!< Transmit Data Register Empty Flag */
832#define UARTx_S1_TC ((uint8_t)0x40) /*!< Transmission Complete Flag */
833#define UARTx_S1_RDRF ((uint8_t)0x20) /*!< Receiver Data Register Full Flag */
834#define UARTx_S1_IDLE ((uint8_t)0x10) /*!< Idle Line Flag */
835#define UARTx_S1_OR ((uint8_t)0x08) /*!< Receiver Overrun Flag */
836#define UARTx_S1_NF ((uint8_t)0x04) /*!< Noise Flag */
837#define UARTx_S1_FE ((uint8_t)0x02) /*!< Framing Error Flag */
838#define UARTx_S1_PF ((uint8_t)0x01) /*!< Parity Error Flag */
839
840/********* Bits definition for UARTx_S2 register **************/
841#define UARTx_S2_LBKDIF ((uint8_t)0x80) /*!< LIN Break Detect Interrupt Flag */
842#define UARTx_S2_RXEDGIF ((uint8_t)0x40) /*!< UART_RX Pin Active Edge Interrupt Flag */
843#define UARTx_S2_MSBF ((uint8_t)0x20) /*!< MSB First */
844#define UARTx_S2_RXINV ((uint8_t)0x10) /*!< Receive Data Inversion */
845#define UARTx_S2_RWUID ((uint8_t)0x08) /*!< Receive Wake Up Idle Detect */
846#define UARTx_S2_BRK13 ((uint8_t)0x04) /*!< Break Character Generation Length */
847#define UARTx_S2_LBKDE ((uint8_t)0x02) /*!< LIN Break Detect Enable */
848#define UARTx_S2_RAF ((uint8_t)0x01) /*!< Receiver Active Flag */
849
850/********* Bits definition for UARTx_C3 register **************/
851#define UARTx_C3_R8T9 ((uint8_t)0x80) /*!< Receive Bit 8 / Transmit Bit 9 */
852#define UARTx_C3_R8 ((uint8_t)0x80) /*!< Ninth Data Bit for Receiver */
853#define UARTx_C3_R9T8 ((uint8_t)0x40) /*!< Receive Bit 9 / Transmit Bit 8 */
854#define UARTx_C3_T8 ((uint8_t)0x40) /*!< Ninth Data Bit for Transmitter */
855#define UARTx_C3_TXDIR ((uint8_t)0x20) /*!< UART_TX Pin Direction in Single-Wire Mode */
856#define UARTx_C3_TXINV ((uint8_t)0x10) /*!< Transmit Data Inversion */
857#define UARTx_C3_ORIE ((uint8_t)0x08) /*!< Overrun Interrupt Enable */
858#define UARTx_C3_NEIE ((uint8_t)0x04) /*!< Noise Error Interrupt Enable */
859#define UARTx_C3_FEIE ((uint8_t)0x02) /*!< Framing Error Interrupt Enable */
860#define UARTx_C3_PEIE ((uint8_t)0x01) /*!< Parity Error Interrupt Enable */
861
862/********* Bits definition for UARTx_D register ***************/
863#define UARTx_D_R7T7 ((uint8_t)0x80) /*!< Read receive data buffer 7 or write transmit data buffer 7 */
864#define UARTx_D_R6T6 ((uint8_t)0x40) /*!< Read receive data buffer 6 or write transmit data buffer 6 */
865#define UARTx_D_R5T5 ((uint8_t)0x20) /*!< Read receive data buffer 5 or write transmit data buffer 5 */
866#define UARTx_D_R4T4 ((uint8_t)0x10) /*!< Read receive data buffer 4 or write transmit data buffer 4 */
867#define UARTx_D_R3T3 ((uint8_t)0x08) /*!< Read receive data buffer 3 or write transmit data buffer 3 */
868#define UARTx_D_R2T2 ((uint8_t)0x04) /*!< Read receive data buffer 2 or write transmit data buffer 2 */
869#define UARTx_D_R1T1 ((uint8_t)0x02) /*!< Read receive data buffer 1 or write transmit data buffer 1 */
870#define UARTx_D_R0T0 ((uint8_t)0x01) /*!< Read receive data buffer 0 or write transmit data buffer 0 */
871#define UARTx_D_RT_SHIFT 0
872#define UARTx_D_RT_MASK ((uint8_t)0xFF)
873
874/********* Bits definition for UARTx_MA1 register *************/
875#define UARTx_MA1_MA_SHIFT 0 /*!< Match Address */
876#define UARTx_MA1_MA_MASK ((uint8_t)((uint8_t)0xFF << UARTx_MA1_MA_SHIFT))
877#define UARTx_MA1_MA(x) ((uint8_t)(((uint8_t)(x) << UARTx_MA1_MA_SHIFT) & UARTx_MA1_MA_MASK))
878
879/********* Bits definition for UARTx_MA2 register *************/
880#define UARTx_MA2_MA_SHIFT 0 /*!< Match Address */
881#define UARTx_MA2_MA_MASK ((uint8_t)((uint8_t)0xFF << UARTx_MA2_MA_SHIFT))
882#define UARTx_MA2_MA(x) ((uint8_t)(((uint8_t)(x) << UARTx_MA2_MA_SHIFT) & UARTx_MA2_MA_MASK))
883
884/********* Bits definition for UARTx_C4 register **************/
885#define UARTx_C4_TDMAS ((uint8_t)0x80) /*!< Transmitter DMA Select */
886#define UARTx_C4_RDMAS ((uint8_t)0x20) /*!< Receiver Full DMA Select */
887#define UARTx_C4_MAEN1 ((uint8_t)0x80) /*!< Match Address Mode Enable 1 */
888#define UARTx_C4_MAEN2 ((uint8_t)0x40) /*!< Match Address Mode Enable 2 */
889#define UARTx_C4_M10 ((uint8_t)0x20) /*!< 10-bit Mode Select */
890#define UARTx_C4_OSR_SHIFT 0 /*!< Over Sampling Ratio */
891#define UARTx_C4_OSR_MASK ((uint8_t)((uint8_t)0x1F << UARTx_C4_OSR_SHIFT))
892#define UARTx_C4_OSR(x) ((uint8_t)(((uint8_t)(x) << UARTx_C4_OSR_SHIFT) & UARTx_C4_OSR_MASK))
893
894/********* Bits definition for UARTx_C5 register **************/
895#define UARTx_C5_TDMAE ((uint8_t)0x80) /*!< Transmitter DMA Enable */
896#define UARTx_C5_RDMAE ((uint8_t)0x20) /*!< Receiver Full DMA Enable */
897#define UARTx_C5_BOTHEDGE ((uint8_t)0x02) /*!< Both Edge Sampling */
898#define UARTx_C5_RESYNCDIS ((uint8_t)0x01) /*!< Resynchronization Disable */
899
900/****************************************************************/
901/* */
902/* Power Management Controller (PMC) */
903/* */
904/****************************************************************/
905
906/* Device independent */
907
908/****************************************************************/
909/* */
910/* Timer/PWM Module (TPM) */
911/* */
912/****************************************************************/
913/********** Bits definition for TPMx_SC register ***************/
914#define TPMx_SC_DMA ((uint32_t)0x100) /*!< DMA Enable */
915#define TPMx_SC_TOF ((uint32_t)0x80) /*!< Timer Overflow Flag */
916#define TPMx_SC_TOIE ((uint32_t)0x40) /*!< Timer Overflow Interrupt Enable */
917#define TPMx_SC_CPWMS ((uint32_t)0x20) /*!< Center-aligned PWM Select */
918#define TPMx_SC_CMOD_SHIFT 3 /*!< Clock Mode Selection */
919#define TPMx_SC_CMOD_MASK ((uint32_t)((uint32_t)0x3 << TPMx_SC_CMOD_SHIFT))
920#define TPMx_SC_CMOD(x) ((uint32_t)(((uint32_t)(x) << TPMx_SC_CMOD_SHIFT) & TPMx_SC_CMOD_MASK))
921#define TPMx_SC_PS_SHIFT 0 /*!< Prescale Factor Selection */
922#define TPMx_SC_PS_MASK ((uint32_t)((uint32_t)0x7 << TPMx_SC_PS_SHIFT))
923#define TPMx_SC_PS(x) ((uint32_t)(((uint32_t)(x) << TPMx_SC_PS_SHIFT) & TPMx_SC_PS_MASK))
924
925#define TPMx_SC_CMOD_DISABLE TPMx_SC_CMOD(0)
926#define TPMx_SC_CMOD_LPTPM_CLK TPMx_SC_CMOD(1)
927#define TPMx_SC_CMOD_LPTPM_EXTCLK TPMx_SC_CMOD(2)
928
929/********** Bits definition for TPMx_CNT register **************/
930#define TPMx_CNT_COUNT_SHIFT 0 /*!< Counter Value */
931#define TPMx_CNT_COUNT_MASK ((uint32_t)((uint32_t)0xFFFF << TPMx_CNT_COUNT_SHIFT))
932#define TPMx_CNT_COUNT(x) ((uint32_t)(((uint32_t)(x) << TPMx_CNT_COUNT_SHIFT) & TPMx_CNT_COUNT_MASK))
933
934/********** Bits definition for TPMx_MOD register **************/
935#define TPMx_MOD_MOD_SHIFT 0 /*!< Modulo Value */
936#define TPMx_MOD_MOD_MASK ((uint32_t)((uint32_t)0xFFFF << TPMx_MOD_MOD_SHIFT))
937#define TPMx_MOD_MOD(x) ((uint32_t)(((uint32_t)(x) << TPMx_MOD_MOD_SHIFT) & TPMx_MOD_MOD_MASK))
938
939/********** Bits definition for TPMx_CnSC register *************/
940#define TPMx_CnSC_CHF ((uint32_t)0x80) /*!< Channel Flag */
941#define TPMx_CnSC_CHIE ((uint32_t)0x40) /*!< Channel Interrupt Enable */
942#define TPMx_CnSC_MSB ((uint32_t)0x20) /*!< Channel Mode Select */
943#define TPMx_CnSC_MSA ((uint32_t)0x10) /*!< Channel Mode Select */
944#define TPMx_CnSC_ELSB ((uint32_t)0x8) /*!< Edge or Level Select */
945#define TPMx_CnSC_ELSA ((uint32_t)0x4) /*!< Edge or Level Select */
946#define TPMx_CnSC_DMA ((uint32_t)0x1) /*!< DMA Enable */
947
948/********** Bits definition for TPMx_CnV register **************/
949#define TPMx_CnV_VAL_SHIFT 0 /*!< Channel Value */
950#define TPMx_CnV_VAL_MASK ((uint32_t)((uint32_t)0xFFFF << TPMx_CnV_VAL_SHIFT))
951#define TPMx_CnV_VAL(x) ((uint32_t)(((uint32_t)(x) << TPMx_CnV_VAL_SHIFT) & TPMx_CnV_VAL_MASK))
952
953/********* Bits definition for TPMx_STATUS register ************/
954#define TPMx_STATUS_TOF ((uint32_t)0x100) /*!< Timer Overflow Flag */
955#define TPMx_STATUS_CH5F ((uint32_t)0x20) /*!< Channel 5 Flag */
956#define TPMx_STATUS_CH4F ((uint32_t)0x10) /*!< Channel 4 Flag */
957#define TPMx_STATUS_CH3F ((uint32_t)0x8) /*!< Channel 3 Flag */
958#define TPMx_STATUS_CH2F ((uint32_t)0x4) /*!< Channel 2 Flag */
959#define TPMx_STATUS_CH1F ((uint32_t)0x2) /*!< Channel 1 Flag */
960#define TPMx_STATUS_CH0F ((uint32_t)0x1) /*!< Channel 0 Flag */
961
962/********** Bits definition for TPMx_CONF register *************/
963#define TPMx_CONF_TRGSEL_SHIFT 24 /*!< Trigger Select */
964#define TPMx_CONF_TRGSEL_MASK ((uint32_t)((uint32_t)0xF << TPMx_CONF_TRGSEL_SHIFT))
965#define TPMx_CONF_TRGSEL(x) ((uint32_t)(((uint32_t)(x) << TPMx_CONF_TRGSEL_SHIFT) & TPMx_CONF_TRGSEL_MASK))
966#define TPMx_CONF_CROT ((uint32_t)0x40000) /*!< Counter Reload On Trigger */
967#define TPMx_CONF_CSOO ((uint32_t)0x20000) /*!< Counter Stop On Overflow */
968#define TPMx_CONF_CSOT ((uint32_t)0x10000) /*!< Counter Start on Trigger */
969#define TPMx_CONF_GTBEEN ((uint32_t)0x200) /*!< Global time base enable */
970#define TPMx_CONF_DBGMODE_SHIFT 6 /*!< Debug Mode */
971#define TPMx_CONF_DBGMODE_MASK ((uint32_t)((uint32_t)0x3 << TPMx_CONF_DBGMODE_SHIFT))
972#define TPMx_CONF_DBGMODE(x) ((uint32_t)(((uint32_t)(x) << TPMx_CONF_DBGMODE_SHIFT) & TPMx_CONF_DBGMODE_MASK))
973#define TPMx_CONF_DOZEEN ((uint32_t)0x20) /*!< Doze Enable */
974
975#define TPMx_CONF_DBGMODE_CONT TPMx_CONF_DBGMODE(3)
976#define TPMx_CONF_DBGMODE_PAUSE TPMx_CONF_DBGMODE(0)
977
978/****************************************************************/
979/* */
980/* USB OTG: device dependent parts */
981/* */
982/****************************************************************/
983/******** Bits definition for USBx_ADDINFO register ***********/
984#define USBx_ADDINFO_IRQNUM_SHIFT 6 /*!< Assigned Interrupt Request Number */
985#define USBx_ADDINFO_IRQNUM_MASK ((uint8_t)((uint8_t)0x1F << USBx_ADDINFO_IRQNUM_SHIFT))
986
987/******** Bits definition for USBx_OTGISTAT register **********/
988#define USBx_OTGISTAT_IDCHG ((uint8_t)0x80) /*!< Change in the ID Signal from the USB connector is sensed. */
989#define USBx_OTGISTAT_ONEMSEC ((uint8_t)0x40) /*!< Set when the 1 millisecond timer expires. */
990#define USBx_OTGISTAT_LINE_STATE_CHG ((uint8_t)0x20) /*!< Set when the USB line state changes. */
991#define USBx_OTGISTAT_SESSVLDCHG ((uint8_t)0x08) /*!< Set when a change in VBUS is detected indicating a session valid or a session no longer valid. */
992#define USBx_OTGISTAT_B_SESS_CHG ((uint8_t)0x04) /*!< Set when a change in VBUS is detected on a B device. */
993#define USBx_OTGISTAT_AVBUSCHG ((uint8_t)0x01) /*!< Set when a change in VBUS is detected on an A device. */
994
995/******** Bits definition for USBx_OTGICR register ************/
996#define USBx_OTGICR_IDEN ((uint8_t)0x80) /*!< ID Interrupt Enable */
997#define USBx_OTGICR_ONEMSECEN ((uint8_t)0x40) /*!< One Millisecond Interrupt Enable */
998#define USBx_OTGICR_LINESTATEEN ((uint8_t)0x20) /*!< Line State Change Interrupt Enable */
999#define USBx_OTGICR_SESSVLDEN ((uint8_t)0x08) /*!< Session Valid Interrupt Enable */
1000#define USBx_OTGICR_BSESSEN ((uint8_t)0x04) /*!< B Session END Interrupt Enable */
1001#define USBx_OTGICR_AVBUSEN ((uint8_t)0x01) /*!< A VBUS Valid Interrupt Enable */
1002
1003/******** Bits definition for USBx_OTGSTAT register ***********/
1004#define USBx_OTGSTAT_ID ((uint8_t)0x80) /*!< Indicates the current state of the ID pin on the USB connector */
1005#define USBx_OTGSTAT_ONEMSECEN ((uint8_t)0x40) /*!< This bit is reserved for the 1ms count, but it is not useful to software. */
1006#define USBx_OTGSTAT_LINESTATESTABLE ((uint8_t)0x20) /*!< Indicates that the internal signals that control the LINE_STATE_CHG field of OTGISTAT are stable for at least 1 millisecond. */
1007#define USBx_OTGSTAT_SESS_VLD ((uint8_t)0x08) /*!< Session Valid */
1008#define USBx_OTGSTAT_BSESSEND ((uint8_t)0x04) /*!< B Session End */
1009#define USBx_OTGSTAT_AVBUSVLD ((uint8_t)0x01) /*!< A VBUS Valid */
1010
1011/******** Bits definition for USBx_OTGCTL register ************/
1012#define USBx_OTGCTL_DPLOW ((uint8_t)0x20) /*!< D+ Data Line pull-down resistor enable */
1013#define USBx_OTGCTL_DMLOW ((uint8_t)0x10) /*!< D– Data Line pull-down resistor enable */
1014#define USBx_OTGCTL_OTGEN ((uint8_t)0x04) /*!< On-The-Go pullup/pulldown resistor enable */
1015
1016/******** Bits definition for USBx_ISTAT register *************/
1017#define USBx_ISTAT_ATTACH ((uint8_t)0x40) /*!< Attach interrupt */
1018
1019/******** Bits definition for USBx_INTEN register ***************/
1020#define USBx_INTEN_ATTACHEN ((uint8_t)0x40) /*!< ATTACH interrupt enable */
1021
1022/******** Bits definition for USBx_CTL register *****************/
1023#define USBx_CTL_RESET ((uint8_t)0x10) /*!< Generates an USB reset signal (host mode) */
1024#define USBx_CTL_HOSTMODEEN ((uint8_t)0x08) /*!< Operate in Host mode */
1025#define USBx_CTL_RESUME ((uint8_t)0x04) /*!< Executes resume signaling */
1026
1027/******** Bits definition for USBx_ADDR register ****************/
1028#define USBx_ADDR_LSEN ((uint8_t)0x80) /*!< Low Speed Enable bit */
1029
1030/******** Bits definition for USBx_TOKEN register ***************/
1031#define USBx_TOKEN_TOKENPID_SHIFT 4 /*!< Contains the token type executed by the USB module. */
1032#define USBx_TOKEN_TOKENPID_MASK ((uint8_t)((uint8_t)0x0F << USBx_TOKEN_TOKENPID_SHIFT))
1033#define USBx_TOKEN_TOKENPID(x) ((uint8_t)(((uint8_t)(x) << USBx_TOKEN_TOKENPID_SHIFT) & USBx_TOKEN_TOKENPID_MASK))
1034#define USBx_TOKEN_TOKENENDPT_SHIFT 0 /*!< Holds the Endpoint address for the token command. */
1035#define USBx_TOKEN_TOKENENDPT_MASK ((uint8_t)((uint8_t)0x0F << USBx_TOKEN_TOKENENDPT_SHIFT))
1036#define USBx_TOKEN_TOKENENDPT(x) ((uint8_t)(((uint8_t)(x) << USBx_TOKEN_TOKENENDPT_SHIFT) & USBx_TOKEN_TOKENENDPT_MASK))
1037#define USBx_TOKEN_TOKENPID_OUT 0x1
1038#define USBx_TOKEN_TOKENPID_IN 0x9
1039#define USBx_TOKEN_TOKENPID_SETUP 0xD
1040
1041/******** Bits definition for USBx_ENDPTn register **************/
1042#define USBx_ENDPTn_HOSTWOHUB ((uint8_t)0x80)
1043#define USBx_ENDPTn_RETRYDIS ((uint8_t)0x40)
1044
1045/****************************************************************/
1046/* */
1047/* Reset Control Module (RCM) */
1048/* */
1049/****************************************************************/
1050
1051/* Only device independent parts */
1052
1053/****************************************************************/
1054/* */
1055/* System Mode Controller (SMC) */
1056/* */
1057/****************************************************************/
1058
1059/* Device independent */
1060
1061/****************************************************************/
1062/* */
1063/* Digital-to-Analog Converter (DAC) */
1064/* */
1065/****************************************************************/
1066
1067/* Mostly Device independent */
1068
1069#define DACx_C1_DACBFMD_SHIFT 2 /*!< DAC Buffer Work Mode Select */
1070#define DACx_C1_DACBFMD_MASK ((uint8_t)((uint8_t)0x01 << DACx_C1_DACBFMD_ SHIFT))
1071#define DACx_C1_DACBFMD(x) ((uint8_t)(((uint8_t)(x) << DACx_C1_DACBFMD_SHIFT) & DACx_C1_DACBFMD_MASK))
1072
1073#define DACx_C1_DACBFMD_MODE_NORMAL 0
1074#define DACx_C1_DACBFMD_MODE_OTS 1
1075
1076/****************************************************************/
1077/* */
1078/* Real Time Clock (RTC) */
1079/* */
1080/****************************************************************/
1081
1082/* Device independent */
1083
1084/****************************************************************/
1085/* */
1086/* Comparator (CMP) */
1087/* */
1088/****************************************************************/
1089
1090/* Device independent */
1091
1092/****************************************************************/
1093/* */
1094/* Flash Memory Module (FTFA) */
1095/* */
1096/****************************************************************/
1097
1098/* Device independent */
1099
1100#endif /* _KL25Z_H_ */
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl26z.h b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl26z.h
new file mode 100644
index 000000000..eefcfd6d3
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/KINETIS/kl26z.h
@@ -0,0 +1,1169 @@
1/*
2 * Copyright (C) 2013-2016 Fabio Utzig, http://fabioutzig.com
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.