1 /**
2   ******************************************************************************
3   * @file    stm32u585xx.h
4   * @author  MCD Application Team
5   * @brief   CMSIS STM32U585xx Device Peripheral Access Layer Header File.
6   *
7   *          This file contains:
8   *           - Data structures and the address mapping for all peripherals
9   *           - Peripheral's registers declarations and bits definition
10   *           - Macros to access peripheral’s registers hardware
11   *
12   ******************************************************************************
13   * @attention
14   *
15   * Copyright (c) 2021 STMicroelectronics.
16   * All rights reserved.
17   *
18   * This software component is licensed by ST under Apache License, Version 2.0,
19   * the "License"; You may not use this file except in compliance with the
20   * License. You may obtain a copy of the License at:
21   *                        opensource.org/licenses/Apache-2.0
22   *
23   ******************************************************************************
24   */
25 
26 #ifndef STM32U585xx_H
27 #define STM32U585xx_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /** @addtogroup ST
34   * @{
35   */
36 
37 
38 /** @addtogroup STM32U585xx
39   * @{
40   */
41 
42 
43 /** @addtogroup Configuration_of_CMSIS
44   * @{
45   */
46 
47 
48 /* =========================================================================================================================== */
49 /* ================                                Interrupt Number Definition                                ================ */
50 /* =========================================================================================================================== */
51 
52 typedef enum
53 {
54 /* =======================================  ARM Cortex-M33 Specific Interrupt Numbers  ======================================= */
55   Reset_IRQn                = -15,    /*!< -15 Reset Vector, invoked on Power up and warm reset              */
56   NonMaskableInt_IRQn       = -14,    /*!< -14 Non maskable Interrupt, cannot be stopped or preempted        */
57   HardFault_IRQn            = -13,    /*!< -13 Hard Fault, all classes of Fault                              */
58   MemoryManagement_IRQn     = -12,    /*!< -12 Memory Management, MPU mismatch, including Access Violation
59                                                and No Match                                                  */
60   BusFault_IRQn             = -11,    /*!< -11 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
61                                                related Fault                                                 */
62   UsageFault_IRQn           = -10,    /*!< -10 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
63   SecureFault_IRQn          =  -9,    /*!< -9  Secure Fault                                                  */
64   SVCall_IRQn               =  -5,    /*!< -5  System Service Call via SVC instruction                       */
65   DebugMonitor_IRQn         =  -4,    /*!< -4  Debug Monitor                                                 */
66   PendSV_IRQn               =  -2,    /*!< -2  Pendable request for system service                           */
67   SysTick_IRQn              =  -1,    /*!< -1  System Tick Timer                                             */
68 
69 /* ===========================================  STM32U585xx Specific Interrupt Numbers  ================================= */
70   WWDG_IRQn                 = 0,      /*!< Window WatchDog interrupt                                         */
71   PVD_AVD_IRQn              = 1,      /*!< PVD/AVD through EXTI Line detection Interrupt                     */
72   RTC_IRQn                  = 2,      /*!< RTC non-secure interrupt                                          */
73   RTC_S_IRQn                = 3,      /*!< RTC secure interrupt                                              */
74   TAMP_IRQn                 = 4,      /*!< Tamper non-secure interrupt                                       */
75   RAMCFG_IRQn               = 5,      /*!< RAMCFG global interrupt                                           */
76   FLASH_IRQn                = 6,      /*!< FLASH non-secure global interrupt                                 */
77   FLASH_S_IRQn              = 7,      /*!< FLASH secure global interrupt                                     */
78   GTZC_IRQn                 = 8,      /*!< Global TrustZone Controller interrupt                             */
79   RCC_IRQn                  = 9,      /*!< RCC non secure global interrupt                                   */
80   RCC_S_IRQn                = 10,     /*!< RCC secure global interrupt                                       */
81   EXTI0_IRQn                = 11,     /*!< EXTI Line0 interrupt                                              */
82   EXTI1_IRQn                = 12,     /*!< EXTI Line1 interrupt                                              */
83   EXTI2_IRQn                = 13,     /*!< EXTI Line2 interrupt                                              */
84   EXTI3_IRQn                = 14,     /*!< EXTI Line3 interrupt                                              */
85   EXTI4_IRQn                = 15,     /*!< EXTI Line4 interrupt                                              */
86   EXTI5_IRQn                = 16,     /*!< EXTI Line5 interrupt                                              */
87   EXTI6_IRQn                = 17,     /*!< EXTI Line6 interrupt                                              */
88   EXTI7_IRQn                = 18,     /*!< EXTI Line7 interrupt                                              */
89   EXTI8_IRQn                = 19,     /*!< EXTI Line8 interrupt                                              */
90   EXTI9_IRQn                = 20,     /*!< EXTI Line9 interrupt                                              */
91   EXTI10_IRQn               = 21,     /*!< EXTI Line10 interrupt                                             */
92   EXTI11_IRQn               = 22,     /*!< EXTI Line11 interrupt                                             */
93   EXTI12_IRQn               = 23,     /*!< EXTI Line12 interrupt                                             */
94   EXTI13_IRQn               = 24,     /*!< EXTI Line13 interrupt                                             */
95   EXTI14_IRQn               = 25,     /*!< EXTI Line14 interrupt                                             */
96   EXTI15_IRQn               = 26,     /*!< EXTI Line15 interrupt                                             */
97   IWDG_IRQn                 = 27,     /*!< IWDG global interrupt                                             */
98   SAES_IRQn                 = 28,     /*!< Secure AES global interrupt                                       */
99   GPDMA1_Channel0_IRQn      = 29,     /*!< GPDMA1 Channel 0 global interrupt                                 */
100   GPDMA1_Channel1_IRQn      = 30,     /*!< GPDMA1 Channel 1 global interrupt                                 */
101   GPDMA1_Channel2_IRQn      = 31,     /*!< GPDMA1 Channel 2 global interrupt                                 */
102   GPDMA1_Channel3_IRQn      = 32,     /*!< GPDMA1 Channel 3 global interrupt                                 */
103   GPDMA1_Channel4_IRQn      = 33,     /*!< GPDMA1 Channel 4 global interrupt                                 */
104   GPDMA1_Channel5_IRQn      = 34,     /*!< GPDMA1 Channel 5 global interrupt                                 */
105   GPDMA1_Channel6_IRQn      = 35,     /*!< GPDMA1 Channel 6 global interrupt                                 */
106   GPDMA1_Channel7_IRQn      = 36,     /*!< GPDMA1 Channel 7 global interrupt                                 */
107   ADC1_IRQn                 = 37,     /*!< ADC1 global interrupt                                             */
108   DAC1_IRQn                 = 38,     /*!< DAC1 global interrupt                                             */
109   FDCAN1_IT0_IRQn           = 39,     /*!< FDCAN1 interrupt 0                                                */
110   FDCAN1_IT1_IRQn           = 40,     /*!< FDCAN1 interrupt 1                                                */
111   TIM1_BRK_IRQn             = 41,     /*!< TIM1 Break interrupt                                              */
112   TIM1_UP_IRQn              = 42,     /*!< TIM1 Update interrupt                                             */
113   TIM1_TRG_COM_IRQn         = 43,     /*!< TIM1 Trigger and Commutation interrupt                            */
114   TIM1_CC_IRQn              = 44,     /*!< TIM1 Capture Compare interrupt                                    */
115   TIM2_IRQn                 = 45,     /*!< TIM2 global interrupt                                             */
116   TIM3_IRQn                 = 46,     /*!< TIM3 global interrupt                                             */
117   TIM4_IRQn                 = 47,     /*!< TIM4 global interrupt                                             */
118   TIM5_IRQn                 = 48,     /*!< TIM5 global interrupt                                             */
119   TIM6_IRQn                 = 49,     /*!< TIM6 global interrupt                                             */
120   TIM7_IRQn                 = 50,     /*!< TIM7 global interrupt                                             */
121   TIM8_BRK_IRQn             = 51,     /*!< TIM8 Break interrupt                                              */
122   TIM8_UP_IRQn              = 52,     /*!< TIM8 Update interrupt                                             */
123   TIM8_TRG_COM_IRQn         = 53,     /*!< TIM8 Trigger and Commutation interrupt                            */
124   TIM8_CC_IRQn              = 54,     /*!< TIM8 Capture Compare interrupt                                    */
125   I2C1_EV_IRQn              = 55,     /*!< I2C1 Event interrupt                                              */
126   I2C1_ER_IRQn              = 56,     /*!< I2C1 Error interrupt                                              */
127   I2C2_EV_IRQn              = 57,     /*!< I2C2 Event interrupt                                              */
128   I2C2_ER_IRQn              = 58,     /*!< I2C2 Error interrupt                                              */
129   SPI1_IRQn                 = 59,     /*!< SPI1 global interrupt                                             */
130   SPI2_IRQn                 = 60,     /*!< SPI2 global interrupt                                             */
131   USART1_IRQn               = 61,     /*!< USART1 global interrupt                                           */
132   USART2_IRQn               = 62,     /*!< USART2 global interrupt                                           */
133   USART3_IRQn               = 63,     /*!< USART3 global interrupt                                           */
134   UART4_IRQn                = 64,     /*!< UART4 global interrupt                                            */
135   UART5_IRQn                = 65,     /*!< UART5 global interrupt                                            */
136   LPUART1_IRQn              = 66,     /*!< LPUART1 global interrupt                                          */
137   LPTIM1_IRQn               = 67,     /*!< LPTIM1 global interrupt                                           */
138   LPTIM2_IRQn               = 68,     /*!< LPTIM2 global interrupt                                           */
139   TIM15_IRQn                = 69,     /*!< TIM15 global interrupt                                            */
140   TIM16_IRQn                = 70,     /*!< TIM16 global interrupt                                            */
141   TIM17_IRQn                = 71,     /*!< TIM17 global interrupt                                            */
142   COMP_IRQn                 = 72,     /*!< COMP1 and COMP2 through EXTI Lines interrupts                     */
143   OTG_FS_IRQn               = 73,     /*!< USB OTG FS global interrupt                                       */
144   CRS_IRQn                  = 74,     /*!< CRS global interrupt                                              */
145   FMC_IRQn                  = 75,     /*!< FSMC global interrupt                                             */
146   OCTOSPI1_IRQn             = 76,     /*!< OctoSPI1 global interrupt                                         */
147   PWR_S3WU_IRQn             = 77,     /*!< PWR wake up from Stop3 interrupt                                  */
148   SDMMC1_IRQn               = 78,     /*!< SDMMC1 global interrupt                                           */
149   SDMMC2_IRQn               = 79,     /*!< SDMMC2 global interrupt                                           */
150   GPDMA1_Channel8_IRQn      = 80,     /*!< GPDMA1 Channel 8 global interrupt                                 */
151   GPDMA1_Channel9_IRQn      = 81,     /*!< GPDMA1 Channel 9 global interrupt                                 */
152   GPDMA1_Channel10_IRQn     = 82,     /*!< GPDMA1 Channel 10 global interrupt                                */
153   GPDMA1_Channel11_IRQn     = 83,     /*!< GPDMA1 Channel 11 global interrupt                                */
154   GPDMA1_Channel12_IRQn     = 84,     /*!< GPDMA1 Channel 12 global interrupt                                */
155   GPDMA1_Channel13_IRQn     = 85,     /*!< GPDMA1 Channel 13 global interrupt                                */
156   GPDMA1_Channel14_IRQn     = 86,     /*!< GPDMA1 Channel 14 global interrupt                                */
157   GPDMA1_Channel15_IRQn     = 87,     /*!< GPDMA1 Channel 15 global interrupt                                */
158   I2C3_EV_IRQn              = 88,     /*!< I2C3 event interrupt                                              */
159   I2C3_ER_IRQn              = 89,     /*!< I2C3 error interrupt                                              */
160   SAI1_IRQn                 = 90,     /*!< Serial Audio Interface 1 global interrupt                         */
161   SAI2_IRQn                 = 91,     /*!< Serial Audio Interface 2 global interrupt                         */
162   TSC_IRQn                  = 92,     /*!< Touch Sense Controller global interrupt                           */
163   AES_IRQn                  = 93,     /*!< AES global interrupt                                              */
164   RNG_IRQn                  = 94,     /*!< RNG global interrupt                                              */
165   FPU_IRQn                  = 95,     /*!< FPU global interrupt                                              */
166   HASH_IRQn                 = 96,     /*!< HASH global interrupt                                             */
167   PKA_IRQn                  = 97,     /*!< PKA global interrupt                                              */
168   LPTIM3_IRQn               = 98,     /*!< LPTIM3 global interrupt                                           */
169   SPI3_IRQn                 = 99,     /*!< SPI3 global interrupt                                             */
170   I2C4_ER_IRQn              = 100,    /*!< I2C4 Error interrupt                                              */
171   I2C4_EV_IRQn              = 101,    /*!< I2C4 Event interrupt                                              */
172   MDF1_FLT0_IRQn            = 102,    /*!< MDF1 Filter 0 global interrupt                                    */
173   MDF1_FLT1_IRQn            = 103,    /*!< MDF1 Filter 1 global interrupt                                    */
174   MDF1_FLT2_IRQn            = 104,    /*!< MDF1 Filter 2 global interrupt                                    */
175   MDF1_FLT3_IRQn            = 105,    /*!< MDF1 Filter 3 global interrupt                                    */
176   UCPD1_IRQn                = 106,    /*!< UCPD1 global interrupt                                            */
177   ICACHE_IRQn               = 107,    /*!< Instruction cache global interrupt                                */
178   OTFDEC1_IRQn              = 108,    /*!< OTFDEC1 global interrupt                                          */
179   OTFDEC2_IRQn              = 109,    /*!< OTFDEC2 global interrupt                                          */
180   LPTIM4_IRQn               = 110,    /*!< LPTIM4 global interrupt                                           */
181   DCACHE1_IRQn              = 111,    /*!< Data cache global interrupt                                       */
182   ADF1_IRQn                 = 112,    /*!< ADF interrupt                                                     */
183   ADC4_IRQn                 = 113,    /*!< ADC4 (12bits) global interrupt                                    */
184   LPDMA1_Channel0_IRQn      = 114,    /*!< LPDMA1 SmartRun Channel 0 global interrupt                        */
185   LPDMA1_Channel1_IRQn      = 115,    /*!< LPDMA1 SmartRun Channel 1 global interrupt                        */
186   LPDMA1_Channel2_IRQn      = 116,    /*!< LPDMA1 SmartRun Channel 2 global interrupt                        */
187   LPDMA1_Channel3_IRQn      = 117,    /*!< LPDMA1 SmartRun Channel 3 global interrupt                        */
188   DMA2D_IRQn                = 118,    /*!< DMA2D global interrupt                                            */
189   DCMI_PSSI_IRQn            = 119,    /*!< DCMI/PSSI global interrupt                                        */
190   OCTOSPI2_IRQn             = 120,    /*!< OCTOSPI2 global interrupt                                         */
191   MDF1_FLT4_IRQn            = 121,    /*!< MDF1 Filter 4 global interrupt                                    */
192   MDF1_FLT5_IRQn            = 122,    /*!< MDF1 Filter 5 global interrupt                                    */
193   CORDIC_IRQn               = 123,    /*!< CORDIC global interrupt                                           */
194   FMAC_IRQn                 = 124,    /*!< FMAC global interrupt                                             */
195 } IRQn_Type;
196 
197 /* =========================================================================================================================== */
198 /* ================                           Processor and Core Peripheral Section                           ================ */
199 /* =========================================================================================================================== */
200 
201 /* -------  Start of section using anonymous unions and disabling warnings  ------- */
202 #if   defined (__CC_ARM)
203   #pragma push
204   #pragma anon_unions
205 #elif defined (__ICCARM__)
206   #pragma language=extended
207 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
208   #pragma clang diagnostic push
209   #pragma clang diagnostic ignored "-Wc11-extensions"
210   #pragma clang diagnostic ignored "-Wreserved-id-macro"
211 #elif defined (__GNUC__)
212   /* anonymous unions are enabled by default */
213 #elif defined (__TMS470__)
214   /* anonymous unions are enabled by default */
215 #elif defined (__TASKING__)
216   #pragma warning 586
217 #elif defined (__CSMC__)
218   /* anonymous unions are enabled by default */
219 #else
220   #warning Not supported compiler type
221 #endif
222 
223 /* --------  Configuration of the Cortex-M33 Processor and Core Peripherals  ------ */
224 #define __CM33_REV                0x0000U   /* Core revision r0p1 */
225 #define __SAUREGION_PRESENT       1U        /* SAU regions present */
226 #define __MPU_PRESENT             1U        /* MPU present */
227 #define __VTOR_PRESENT            1U        /* VTOR present */
228 #define __NVIC_PRIO_BITS          4U        /* Number of Bits used for Priority Levels */
229 #define __Vendor_SysTickConfig    0U        /* Set to 1 if different SysTick Config is used */
230 #define __FPU_PRESENT             1U        /* FPU present */
231 #define __DSP_PRESENT             1U        /* DSP extension present */
232 
233 /** @} */ /* End of group Configuration_of_CMSIS */
234 
235 #include <core_cm33.h>                       /*!< ARM Cortex-M33 processor and core peripherals */
236 #include "system_stm32u5xx.h"                /*!< STM32U5xx System */
237 
238 
239 /* =========================================================================================================================== */
240 /* ================                            Device Specific Peripheral Section                             ================ */
241 /* =========================================================================================================================== */
242 
243 
244 /** @addtogroup STM32U5xx_peripherals
245   * @{
246   */
247 
248 /**
249   * @brief CRC calculation unit
250   */
251 typedef struct
252 {
253   __IO uint32_t DR;             /*!< CRC Data register,                           Address offset: 0x00 */
254   __IO uint32_t IDR;            /*!< CRC Independent data register,               Address offset: 0x04 */
255   __IO uint32_t CR;             /*!< CRC Control register,                        Address offset: 0x08 */
256        uint32_t RESERVED2;      /*!< Reserved,                                                    0x0C */
257   __IO uint32_t INIT;           /*!< Initial CRC value register,                  Address offset: 0x10 */
258   __IO uint32_t POL;            /*!< CRC polynomial register,                     Address offset: 0x14 */
259        uint32_t RESERVED3[246]; /*!< Reserved,                                                         */
260   __IO uint32_t HWCFGR;         /*!< CRC IP HWCFGR register,                     Address offset: 0x3F0 */
261   __IO uint32_t VERR;           /*!< CRC IP version register,                    Address offset: 0x3F4 */
262   __IO uint32_t PIDR;           /*!< CRC IP type identification register,        Address offset: 0x3F8 */
263   __IO uint32_t SIDR;           /*!< CRC IP map Size ID register,                Address offset: 0x3FC */
264 } CRC_TypeDef;
265 
266 /**
267   * @brief Inter-integrated Circuit Interface
268   */
269 typedef struct
270 {
271   __IO uint32_t CR1;         /*!< I2C Control register 1,            Address offset: 0x00 */
272   __IO uint32_t CR2;         /*!< I2C Control register 2,            Address offset: 0x04 */
273   __IO uint32_t OAR1;        /*!< I2C Own address 1 register,        Address offset: 0x08 */
274   __IO uint32_t OAR2;        /*!< I2C Own address 2 register,        Address offset: 0x0C */
275   __IO uint32_t TIMINGR;     /*!< I2C Timing register,               Address offset: 0x10 */
276   __IO uint32_t TIMEOUTR;    /*!< I2C Timeout register,              Address offset: 0x14 */
277   __IO uint32_t ISR;         /*!< I2C Interrupt and status register, Address offset: 0x18 */
278   __IO uint32_t ICR;         /*!< I2C Interrupt clear register,      Address offset: 0x1C */
279   __IO uint32_t PECR;        /*!< I2C PEC register,                  Address offset: 0x20 */
280   __IO uint32_t RXDR;        /*!< I2C Receive data register,         Address offset: 0x24 */
281   __IO uint32_t TXDR;        /*!< I2C Transmit data register,        Address offset: 0x28 */
282   __IO uint32_t AUTOCR;
283 } I2C_TypeDef;
284 
285 /**
286   * @brief DAC
287   */
288 typedef struct
289 {
290   __IO uint32_t CR;       /*!< DAC control register,                                    Address offset: 0x00 */
291   __IO uint32_t SWTRIGR;  /*!< DAC software trigger register,                           Address offset: 0x04 */
292   __IO uint32_t DHR12R1;  /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
293   __IO uint32_t DHR12L1;  /*!< DAC channel1 12-bit left aligned data holding register,  Address offset: 0x0C */
294   __IO uint32_t DHR8R1;   /*!< DAC channel1 8-bit right aligned data holding register,  Address offset: 0x10 */
295   __IO uint32_t DHR12R2;  /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
296   __IO uint32_t DHR12L2;  /*!< DAC channel2 12-bit left aligned data holding register,  Address offset: 0x18 */
297   __IO uint32_t DHR8R2;   /*!< DAC channel2 8-bit right-aligned data holding register,  Address offset: 0x1C */
298   __IO uint32_t DHR12RD;  /*!< Dual DAC 12-bit right-aligned data holding register,     Address offset: 0x20 */
299   __IO uint32_t DHR12LD;  /*!< DUAL DAC 12-bit left aligned data holding register,      Address offset: 0x24 */
300   __IO uint32_t DHR8RD;   /*!< DUAL DAC 8-bit right aligned data holding register,      Address offset: 0x28 */
301   __IO uint32_t DOR1;     /*!< DAC channel1 data output register,                       Address offset: 0x2C */
302   __IO uint32_t DOR2;     /*!< DAC channel2 data output register,                       Address offset: 0x30 */
303   __IO uint32_t SR;       /*!< DAC status register,                                     Address offset: 0x34 */
304   __IO uint32_t CCR;      /*!< DAC calibration control register,                        Address offset: 0x38 */
305   __IO uint32_t MCR;      /*!< DAC mode control register,                               Address offset: 0x3C */
306   __IO uint32_t SHSR1;    /*!< DAC Sample and Hold sample time register 1,              Address offset: 0x40 */
307   __IO uint32_t SHSR2;    /*!< DAC Sample and Hold sample time register 2,              Address offset: 0x44 */
308   __IO uint32_t SHHR;     /*!< DAC Sample and Hold hold time register,                  Address offset: 0x48 */
309   __IO uint32_t SHRR;     /*!< DAC Sample and Hold refresh time register,               Address offset: 0x4C */
310   __IO uint32_t RESERVED[1];
311   __IO uint32_t AUTOCR;      /*!< DAC Autonomous mode register,                         Address offset: 0x54 */
312 } DAC_TypeDef;
313 
314 /**
315   * @brief Clock Recovery System
316   */
317 typedef struct
318 {
319 __IO uint32_t CR;            /*!< CRS ccontrol register,              Address offset: 0x00 */
320 __IO uint32_t CFGR;          /*!< CRS configuration register,         Address offset: 0x04 */
321 __IO uint32_t ISR;           /*!< CRS interrupt and status register,  Address offset: 0x08 */
322 __IO uint32_t ICR;           /*!< CRS interrupt flag clear register,  Address offset: 0x0C */
323 } CRS_TypeDef;
324 
325 /**
326   * @brief AES hardware accelerator
327   */
328 typedef struct
329 {
330   __IO uint32_t CR;          /*!< AES control register,                        Address offset: 0x00 */
331   __IO uint32_t SR;          /*!< AES status register,                         Address offset: 0x04 */
332   __IO uint32_t DINR;        /*!< AES data input register,                     Address offset: 0x08 */
333   __IO uint32_t DOUTR;       /*!< AES data output register,                    Address offset: 0x0C */
334   __IO uint32_t KEYR0;       /*!< AES key register 0,                          Address offset: 0x10 */
335   __IO uint32_t KEYR1;       /*!< AES key register 1,                          Address offset: 0x14 */
336   __IO uint32_t KEYR2;       /*!< AES key register 2,                          Address offset: 0x18 */
337   __IO uint32_t KEYR3;       /*!< AES key register 3,                          Address offset: 0x1C */
338   __IO uint32_t IVR0;        /*!< AES initialization vector register 0,        Address offset: 0x20 */
339   __IO uint32_t IVR1;        /*!< AES initialization vector register 1,        Address offset: 0x24 */
340   __IO uint32_t IVR2;        /*!< AES initialization vector register 2,        Address offset: 0x28 */
341   __IO uint32_t IVR3;        /*!< AES initialization vector register 3,        Address offset: 0x2C */
342   __IO uint32_t KEYR4;       /*!< AES key register 4,                          Address offset: 0x30 */
343   __IO uint32_t KEYR5;       /*!< AES key register 5,                          Address offset: 0x34 */
344   __IO uint32_t KEYR6;       /*!< AES key register 6,                          Address offset: 0x38 */
345   __IO uint32_t KEYR7;       /*!< AES key register 7,                          Address offset: 0x3C */
346   __IO uint32_t SUSP0R;      /*!< AES Suspend register 0,                      Address offset: 0x40 */
347   __IO uint32_t SUSP1R;      /*!< AES Suspend register 1,                      Address offset: 0x44 */
348   __IO uint32_t SUSP2R;      /*!< AES Suspend register 2,                      Address offset: 0x48 */
349   __IO uint32_t SUSP3R;      /*!< AES Suspend register 3,                      Address offset: 0x4C */
350   __IO uint32_t SUSP4R;      /*!< AES Suspend register 4,                      Address offset: 0x50 */
351   __IO uint32_t SUSP5R;      /*!< AES Suspend register 5,                      Address offset: 0x54 */
352   __IO uint32_t SUSP6R;      /*!< AES Suspend register 6,                      Address offset: 0x58 */
353   __IO uint32_t SUSP7R;      /*!< AES Suspend register 7,                      Address offset: 0x5C */
354        uint32_t RESERVED1[168];/*!< Reserved,                                   Address offset: 0x60 -- 0x2FC */
355   __IO uint32_t IER;          /*!< AES Interrupt Enable Register,              Address offset: 0x300 */
356   __IO uint32_t ISR;          /*!< AES Interrupt Status Register,              Address offset: 0x304 */
357   __IO uint32_t ICR;          /*!< AES Interrupt Clear Register,               Address offset: 0x308 */
358 } AES_TypeDef;
359 
360 /**
361   * @brief HASH
362   */
363 typedef struct
364 {
365   __IO uint32_t CR;               /*!< HASH control register,          Address offset: 0x00        */
366   __IO uint32_t DIN;              /*!< HASH data input register,       Address offset: 0x04        */
367   __IO uint32_t STR;              /*!< HASH start register,            Address offset: 0x08        */
368   __IO uint32_t HR[5];            /*!< HASH digest registers,          Address offset: 0x0C-0x1C   */
369   __IO uint32_t IMR;              /*!< HASH interrupt enable register, Address offset: 0x20        */
370   __IO uint32_t SR;               /*!< HASH status register,           Address offset: 0x24        */
371        uint32_t RESERVED[52];     /*!< Reserved, 0x28-0xF4                                         */
372   __IO uint32_t CSR[54];          /*!< HASH context swap registers,    Address offset: 0x0F8-0x1CC */
373 } HASH_TypeDef;
374 
375 /**
376   * @brief HASH_DIGEST
377   */
378 typedef struct
379 {
380   __IO uint32_t HR[8];     /*!< HASH digest registers,          Address offset: 0x310-0x32C */
381 } HASH_DIGEST_TypeDef;
382 
383 /**
384   * @brief RNG
385   */
386 typedef struct
387 {
388   __IO uint32_t CR;  /*!< RNG control register, Address offset: 0x00 */
389   __IO uint32_t SR;  /*!< RNG status register,  Address offset: 0x04 */
390   __IO uint32_t DR;  /*!< RNG data register,    Address offset: 0x08 */
391   uint32_t RESERVED;
392   __IO uint32_t HTCR;  /*!< RNG health test configuration register, Address offset: 0x10 */
393 } RNG_TypeDef;
394 
395 /**
396   * @brief Debug MCU
397   */
398 typedef struct
399 {
400   __IO uint32_t IDCODE;      /*!< MCU device ID code,                 Address offset: 0x00 */
401   __IO uint32_t CR;          /*!< Debug MCU configuration register,   Address offset: 0x04 */
402   __IO uint32_t APB1FZR1;    /*!< Debug MCU APB1 freeze register 1,   Address offset: 0x08 */
403   __IO uint32_t APB1FZR2;    /*!< Debug MCU APB1 freeze register 2,   Address offset: 0x0C */
404   __IO uint32_t APB2FZR;     /*!< Debug MCU APB2 freeze register,     Address offset: 0x10 */
405   __IO uint32_t APB3FZR;     /*!< Debug MCU APB3 freeze register,     Address offset: 0x14 */
406        uint32_t RESERVED1[2];/*!< Reserved,                                    0x18 - 0x1C */
407   __IO uint32_t AHB1FZR;     /*!< Debug MCU AHB1 freeze register,     Address offset: 0x20 */
408        uint32_t RESERVED2;   /*!< Reserved,                                           0x24 */
409   __IO uint32_t AHB3FZR;     /*!< Debug MCU AHB3 freeze register,     Address offset: 0x28 */
410 } DBGMCU_TypeDef;
411 
412 /**
413   * @brief DCMI
414   */
415 typedef struct
416 {
417   __IO uint32_t CR;       /*!< DCMI control register 1,                       Address offset: 0x00 */
418   __IO uint32_t SR;       /*!< DCMI status register,                          Address offset: 0x04 */
419   __IO uint32_t RISR;     /*!< DCMI raw interrupt status register,            Address offset: 0x08 */
420   __IO uint32_t IER;      /*!< DCMI interrupt enable register,                Address offset: 0x0C */
421   __IO uint32_t MISR;     /*!< DCMI masked interrupt status register,         Address offset: 0x10 */
422   __IO uint32_t ICR;      /*!< DCMI interrupt clear register,                 Address offset: 0x14 */
423   __IO uint32_t ESCR;     /*!< DCMI embedded synchronization code register,   Address offset: 0x18 */
424   __IO uint32_t ESUR;     /*!< DCMI embedded synchronization unmask register, Address offset: 0x1C */
425   __IO uint32_t CWSTRTR;  /*!< DCMI crop window start,                        Address offset: 0x20 */
426   __IO uint32_t CWSIZER;  /*!< DCMI crop window size,                         Address offset: 0x24 */
427   __IO uint32_t DR;       /*!< DCMI data register,                            Address offset: 0x28 */
428 } DCMI_TypeDef;
429 
430 /**
431   * @brief DMA Controller
432   */
433 typedef struct
434 {
435   __IO uint32_t SECCFGR;     /*!< DMA secure configuration register,               Address offset: 0x00  */
436   __IO uint32_t PRIVCFGR;    /*!< DMA privileged configuration register,           Address offset: 0x04  */
437   __IO uint32_t RCFGLOCKR;   /*!< DMA lock configuration register,                 Address offset: 0x08  */
438   __IO uint32_t MISR;        /*!< DMA non secure masked interrupt status register, Address offset: 0x0C  */
439   __IO uint32_t SMISR;       /*!< DMA secure masked interrupt status register,     Address offset: 0x10  */
440 } DMA_TypeDef;
441 
442 typedef struct
443 {
444   __IO uint32_t CLBAR;        /*!< DMA channel x linked-list base address register, Address offset: 0x50 + (x * 0x80) */
445        uint32_t RESERVED1[2]; /*!< Reserved 1,                                      Address offset: 0x54 -- 0x58      */
446   __IO uint32_t CFCR;         /*!< DMA channel x flag clear register,               Address offset: 0x5C + (x * 0x80) */
447   __IO uint32_t CSR;          /*!< DMA channel x flag status register,              Address offset: 0x60 + (x * 0x80) */
448   __IO uint32_t CCR;          /*!< DMA channel x control register,                  Address offset: 0x64 + (x * 0x80) */
449        uint32_t RESERVED2[10];/*!< Reserved 2,                                      Address offset: 0x68 -- 0x8C      */
450   __IO uint32_t CTR1;         /*!< DMA channel x transfer register 1,               Address offset: 0x90 + (x * 0x80) */
451   __IO uint32_t CTR2;         /*!< DMA channel x transfer register 2,               Address offset: 0x94 + (x * 0x80) */
452   __IO uint32_t CBR1;         /*!< DMA channel x block register 1,                  Address offset: 0x98 + (x * 0x80) */
453   __IO uint32_t CSAR;         /*!< DMA channel x source address register,           Address offset: 0x9C + (x * 0x80) */
454   __IO uint32_t CDAR;         /*!< DMA channel x destination address register,      Address offset: 0xA0 + (x * 0x80) */
455   __IO uint32_t CTR3;         /*!< DMA channel x transfer register 3,               Address offset: 0xA4 + (x * 0x80) */
456   __IO uint32_t CBR2;         /*!< DMA channel x block register 2,                  Address offset: 0xA8 + (x * 0x80) */
457        uint32_t RESERVED3[8]; /*!< Reserved 3,                                      Address offset: 0xAC -- 0xC8      */
458   __IO uint32_t CLLR;         /*!< DMA channel x linked-list address register,      Address offset: 0xCC + (x * 0x80) */
459 } DMA_Channel_TypeDef;
460 
461 /**
462   * @brief DMA2D Controller
463   */
464 typedef struct
465 {
466   __IO uint32_t CR;            /*!< DMA2D Control Register,                         Address offset: 0x00 */
467   __IO uint32_t ISR;           /*!< DMA2D Interrupt Status Register,                Address offset: 0x04 */
468   __IO uint32_t IFCR;          /*!< DMA2D Interrupt Flag Clear Register,            Address offset: 0x08 */
469   __IO uint32_t FGMAR;         /*!< DMA2D Foreground Memory Address Register,       Address offset: 0x0C */
470   __IO uint32_t FGOR;          /*!< DMA2D Foreground Offset Register,               Address offset: 0x10 */
471   __IO uint32_t BGMAR;         /*!< DMA2D Background Memory Address Register,       Address offset: 0x14 */
472   __IO uint32_t BGOR;          /*!< DMA2D Background Offset Register,               Address offset: 0x18 */
473   __IO uint32_t FGPFCCR;       /*!< DMA2D Foreground PFC Control Register,          Address offset: 0x1C */
474   __IO uint32_t FGCOLR;        /*!< DMA2D Foreground Color Register,                Address offset: 0x20 */
475   __IO uint32_t BGPFCCR;       /*!< DMA2D Background PFC Control Register,          Address offset: 0x24 */
476   __IO uint32_t BGCOLR;        /*!< DMA2D Background Color Register,                Address offset: 0x28 */
477   __IO uint32_t FGCMAR;        /*!< DMA2D Foreground CLUT Memory Address Register,  Address offset: 0x2C */
478   __IO uint32_t BGCMAR;        /*!< DMA2D Background CLUT Memory Address Register,  Address offset: 0x30 */
479   __IO uint32_t OPFCCR;        /*!< DMA2D Output PFC Control Register,              Address offset: 0x34 */
480   __IO uint32_t OCOLR;         /*!< DMA2D Output Color Register,                    Address offset: 0x38 */
481   __IO uint32_t OMAR;          /*!< DMA2D Output Memory Address Register,           Address offset: 0x3C */
482   __IO uint32_t OOR;           /*!< DMA2D Output Offset Register,                   Address offset: 0x40 */
483   __IO uint32_t NLR;           /*!< DMA2D Number of Line Register,                  Address offset: 0x44 */
484   __IO uint32_t LWR;           /*!< DMA2D Line Watermark Register,                  Address offset: 0x48 */
485   __IO uint32_t AMTCR;         /*!< DMA2D AHB Master Timer Configuration Register,  Address offset: 0x4C */
486   uint32_t      RESERVED[236]; /*!< Reserved, 0x50-0x3FC */
487   __IO uint32_t FGCLUT[256];   /*!< DMA2D Foreground CLUT,                          Address offset:400-7FC */
488   __IO uint32_t BGCLUT[256];   /*!< DMA2D Background CLUT,                          Address offset:800-BFC */
489 } DMA2D_TypeDef;
490 
491 /**
492   * @brief Asynch Interrupt/Event Controller (EXTI)
493   */
494 typedef struct
495 {
496   __IO uint32_t RTSR1;          /*!< EXTI Rising Trigger Selection Register 1,        Address offset:   0x00 */
497   __IO uint32_t FTSR1;          /*!< EXTI Falling Trigger Selection Register 1,       Address offset:   0x04 */
498   __IO uint32_t SWIER1;         /*!< EXTI Software Interrupt event Register 1,        Address offset:   0x08 */
499   __IO uint32_t RPR1;           /*!< EXTI Rising Pending Register 1,                  Address offset:   0x0C */
500   __IO uint32_t FPR1;           /*!< EXTI Falling Pending Register 1,                 Address offset:   0x10 */
501   __IO uint32_t SECCFGR1;       /*!< EXTI Security Configuration Register 1,          Address offset:   0x14 */
502   __IO uint32_t PRIVCFGR1;      /*!< EXTI Privilege Configuration Register 1,         Address offset:   0x18 */
503        uint32_t RESERVED1[17];  /*!< Reserved 1,                                                0x1C -- 0x5C */
504   __IO uint32_t EXTICR[4];      /*!< EXIT External Interrupt Configuration Register,            0x60 -- 0x6C */
505   __IO uint32_t LOCKR;          /*!< EXTI Lock Register,                              Address offset:   0x70 */
506        uint32_t RESERVED2[3];   /*!< Reserved 2,                                                0x74 -- 0x7C */
507   __IO uint32_t IMR1;           /*!< EXTI Interrupt Mask Register 1,                  Address offset:   0x80 */
508   __IO uint32_t EMR1;           /*!< EXTI Event Mask Register 1,                      Address offset:   0x84 */
509 } EXTI_TypeDef;
510 
511 /**
512   * @brief FLASH Registers
513   */
514 typedef struct
515 {
516   __IO uint32_t ACR;              /*!< FLASH access control register,                  Address offset: 0x00 */
517        uint32_t RESERVED1;        /*!< Reserved1,                                      Address offset: 0x04 */
518   __IO uint32_t NSKEYR;           /*!< FLASH non-secure key register,                  Address offset: 0x08 */
519   __IO uint32_t SECKEYR;          /*!< FLASH secure key register,                      Address offset: 0x0C */
520   __IO uint32_t OPTKEYR;          /*!< FLASH option key register,                      Address offset: 0x10 */
521   __IO uint32_t RESERVED2;        /*!< Reserved2,                                      Address offset: 0x14 */
522   __IO uint32_t PDKEY1R;          /*!< FLASH Bank 1 power-down key register,           Address offset: 0x18 */
523   __IO uint32_t PDKEY2R;          /*!< FLASH Bank 2 power-down key register,           Address offset: 0x1C */
524   __IO uint32_t NSSR;             /*!< FLASH non-secure status register,               Address offset: 0x20 */
525   __IO uint32_t SECSR;            /*!< FLASH secure status register,                   Address offset: 0x24 */
526   __IO uint32_t NSCR;             /*!< FLASH non-secure control register,              Address offset: 0x28 */
527   __IO uint32_t SECCR;            /*!< FLASH secure control register,                  Address offset: 0x2C */
528   __IO uint32_t ECCR;             /*!< FLASH ECC register,                             Address offset: 0x30 */
529   __IO uint32_t OPSR;             /*!< FLASH OPSR register,                            Address offset: 0x34 */
530        uint32_t RESERVED3[2];     /*!< Reserved3,                                      Address offset: 0x38-0x3C */
531   __IO uint32_t OPTR;             /*!< FLASH option control register,                  Address offset: 0x40 */
532   __IO uint32_t NSBOOTADD0R;      /*!< FLASH non-secure boot address 0 register,       Address offset: 0x44 */
533   __IO uint32_t NSBOOTADD1R;      /*!< FLASH non-secure boot address 1 register,       Address offset: 0x48 */
534   __IO uint32_t SECBOOTADD0R;     /*!< FLASH secure boot address 0 register,           Address offset: 0x4C */
535   __IO uint32_t SECWM1R1;         /*!< FLASH secure watermark1 register 1,             Address offset: 0x50 */
536   __IO uint32_t SECWM1R2;         /*!< FLASH secure watermark1 register 2,             Address offset: 0x54 */
537   __IO uint32_t WRP1AR;           /*!< FLASH WRP1 area A address register,             Address offset: 0x58 */
538   __IO uint32_t WRP1BR;           /*!< FLASH WRP1 area B address register,             Address offset: 0x5C */
539   __IO uint32_t SECWM2R1;         /*!< FLASH secure watermark2 register 1,             Address offset: 0x60 */
540   __IO uint32_t SECWM2R2;         /*!< FLASH secure watermark2 register 2,             Address offset: 0x64 */
541   __IO uint32_t WRP2AR;           /*!< FLASH WRP2 area A address register,             Address offset: 0x68 */
542   __IO uint32_t WRP2BR;           /*!< FLASH WRP2 area B address register,             Address offset: 0x6C */
543   __IO uint32_t OEM1KEYR1;        /*!< FLASH OEM1 key register 1,                      Address offset: 0x70 */
544   __IO uint32_t OEM1KEYR2;        /*!< FLASH OEM1 key register 2,                      Address offset: 0x74 */
545   __IO uint32_t OEM2KEYR1;        /*!< FLASH OEM2 key register 1,                      Address offset: 0x78 */
546   __IO uint32_t OEM2KEYR2;        /*!< FLASH OEM2 key register 2,                      Address offset: 0x7C */
547   __IO uint32_t SECBB1R1;         /*!< FLASH secure block-based bank 1 register 1,     Address offset: 0x80 */
548   __IO uint32_t SECBB1R2;         /*!< FLASH secure block-based bank 1 register 2,     Address offset: 0x84 */
549   __IO uint32_t SECBB1R3;         /*!< FLASH secure block-based bank 1 register 3,     Address offset: 0x88 */
550   __IO uint32_t SECBB1R4;         /*!< FLASH secure block-based bank 1 register 4,     Address offset: 0x8C */
551        uint32_t RESERVED4[4];     /*!< Reserved4,                                      Address offset: 0x90-0x9C */
552   __IO uint32_t SECBB2R1;         /*!< FLASH secure block-based bank 2 register 1,     Address offset: 0xA0 */
553   __IO uint32_t SECBB2R2;         /*!< FLASH secure block-based bank 2 register 2,     Address offset: 0xA4 */
554   __IO uint32_t SECBB2R3;         /*!< FLASH secure block-based bank 2 register 3,     Address offset: 0xA8 */
555   __IO uint32_t SECBB2R4;         /*!< FLASH secure block-based bank 2 register 4,     Address offset: 0xAC */
556        uint32_t RESERVED5[4];     /*!< Reserved5,                                      Address offset: 0xB0-0xBC */
557   __IO uint32_t SECHDPCR;         /*!< FLASH secure HDP control register,              Address offset: 0xC0 */
558   __IO uint32_t PRIVCFGR;         /*!< FLASH privilege configuration register,         Address offset: 0xC4 */
559        uint32_t RESERVED6[2];     /*!< Reserved6,                                      Address offset: 0xC8-0xCC */
560   __IO uint32_t PRIVBB1R1;        /*!< FLASH privilege block-based bank 1 register 1,  Address offset: 0xD0 */
561   __IO uint32_t PRIVBB1R2;        /*!< FLASH privilege block-based bank 1 register 2,  Address offset: 0xD4 */
562   __IO uint32_t PRIVBB1R3;        /*!< FLASH privilege block-based bank 1 register 3,  Address offset: 0xD8 */
563   __IO uint32_t PRIVBB1R4;        /*!< FLASH privilege block-based bank 1 register 4,  Address offset: 0xDC */
564        uint32_t RESERVED7[4];     /*!< Reserved7,                                      Address offset: 0xE0-0xEC */
565   __IO uint32_t PRIVBB2R1;        /*!< FLASH privilege block-based bank 2 register 1,  Address offset: 0xF0 */
566   __IO uint32_t PRIVBB2R2;        /*!< FLASH privilege block-based bank 2 register 2,  Address offset: 0xF4 */
567   __IO uint32_t PRIVBB2R3;        /*!< FLASH privilege block-based bank 2 register 3,  Address offset: 0xF8 */
568   __IO uint32_t PRIVBB2R4;        /*!< FLASH privilege block-based bank 2 register 4,  Address offset: 0xFC */
569 } FLASH_TypeDef;
570 
571 /**
572   * @brief FMAC
573   */
574 typedef struct
575 {
576   __IO uint32_t X1BUFCFG;        /*!< FMAC X1 Buffer Configuration register, Address offset: 0x00          */
577   __IO uint32_t X2BUFCFG;        /*!< FMAC X2 Buffer Configuration register, Address offset: 0x04          */
578   __IO uint32_t YBUFCFG;         /*!< FMAC Y Buffer Configuration register,  Address offset: 0x08          */
579   __IO uint32_t PARAM;           /*!< FMAC Parameter register,               Address offset: 0x0C          */
580   __IO uint32_t CR;              /*!< FMAC Control register,                 Address offset: 0x10          */
581   __IO uint32_t SR;              /*!< FMAC Status register,                  Address offset: 0x14          */
582   __IO uint32_t WDATA;           /*!< FMAC Write Data register,              Address offset: 0x18          */
583   __IO uint32_t RDATA;           /*!< FMAC Read Data register,               Address offset: 0x1C          */
584 } FMAC_TypeDef;
585 
586 /**
587   * @brief General Purpose I/O
588   */
589 typedef struct
590 {
591   __IO uint32_t MODER;       /*!< GPIO port mode register,               Address offset: 0x00      */
592   __IO uint32_t OTYPER;      /*!< GPIO port output type register,        Address offset: 0x04      */
593   __IO uint32_t OSPEEDR;     /*!< GPIO port output speed register,       Address offset: 0x08      */
594   __IO uint32_t PUPDR;       /*!< GPIO port pull-up/pull-down register,  Address offset: 0x0C      */
595   __IO uint32_t IDR;         /*!< GPIO port input data register,         Address offset: 0x10      */
596   __IO uint32_t ODR;         /*!< GPIO port output data register,        Address offset: 0x14      */
597   __IO uint32_t BSRR;        /*!< GPIO port bit set/reset  register,     Address offset: 0x18      */
598   __IO uint32_t LCKR;        /*!< GPIO port configuration lock register, Address offset: 0x1C      */
599   __IO uint32_t AFR[2];      /*!< GPIO alternate function registers,     Address offset: 0x20-0x24 */
600   __IO uint32_t BRR;         /*!< GPIO Bit Reset register,               Address offset: 0x28      */
601   __IO uint32_t HSLVR;       /*!< GPIO high-speed low voltage register,  Address offset: 0x2C      */
602   __IO uint32_t SECCFGR;     /*!< GPIO secure configuration register,    Address offset: 0x30      */
603 } GPIO_TypeDef;
604 
605 /**
606   * @brief Global TrustZone Controller
607   */
608 typedef struct
609 {
610   __IO uint32_t CR;             /*!< TZSC control register,                                                Address offset: 0x00      */
611        uint32_t RESERVED1[3];   /*!< Reserved1,                                                            Address offset: 0x04-0x0C */
612   __IO uint32_t SECCFGR1;       /*!< TZSC secure configuration register 1,                                 Address offset: 0x10      */
613   __IO uint32_t SECCFGR2;       /*!< TZSC secure configuration register 2,                                 Address offset: 0x14      */
614   __IO uint32_t SECCFGR3;       /*!< TZSC secure configuration register 3,                                 Address offset: 0x18      */
615        uint32_t RESERVED2;      /*!< Reserved2,                                                            Address offset: 0x1C      */
616   __IO uint32_t PRIVCFGR1;      /*!< TZSC privilege configuration register 1,                              Address offset: 0x20      */
617   __IO uint32_t PRIVCFGR2;      /*!< TZSC privilege configuration register 2,                              Address offset: 0x24      */
618   __IO uint32_t PRIVCFGR3;      /*!< TZSC privilege configuration register 3,                              Address offset: 0x28      */
619        uint32_t RESERVED3[5];   /*!< Reserved3,                                                            Address offset: 0x2C-0x3C */
620   __IO uint32_t MPCWM1ACFGR;    /*!< TZSC memory 1 sub-region A watermark configuration register,          Address offset: 0x40      */
621   __IO uint32_t MPCWM1AR;       /*!< TZSC memory 1 sub-region A watermark register,                        Address offset: 0x44      */
622   __IO uint32_t MPCWM1BCFGR;    /*!< TZSC memory 1 sub-region B watermark configuration register,          Address offset: 0x48      */
623   __IO uint32_t MPCWM1BR;       /*!< TZSC memory 1 sub-region B watermark register,                        Address offset: 0x4C      */
624   __IO uint32_t MPCWM2ACFGR;    /*!< TZSC memory 2 sub-region A watermark configuration register,          Address offset: 0x50      */
625   __IO uint32_t MPCWM2AR;       /*!< TZSC memory 2 sub-region A watermark register,                        Address offset: 0x54      */
626   __IO uint32_t MPCWM2BCFGR;    /*!< TZSC memory 2 sub-region B watermark configuration register,          Address offset: 0x58      */
627   __IO uint32_t MPCWM2BR;       /*!< TZSC memory 2 sub-region B watermark register,                        Address offset: 0x5C      */
628   __IO uint32_t MPCWM3ACFGR;    /*!< TZSC memory 3 sub-region A watermark configuration register,          Address offset: 0x60      */
629   __IO uint32_t MPCWM3AR;       /*!< TZSC memory 3 sub-region A watermark register,                        Address offset: 0x64      */
630        uint32_t RESERVED4[2];   /*!< Reserved4,                                                            Address offset: 0x68-0x6C */
631   __IO uint32_t MPCWM4ACFGR;    /*!< TZSC memory 4 sub-region A watermark configuration register,          Address offset: 0x70      */
632   __IO uint32_t MPCWM4AR;       /*!< TZSC memory 4 sub-region A watermark register,                        Address offset: 0x74      */
633        uint32_t RESERVED5[2];   /*!< Reserved5,                                                            Address offset: 0x78-0x7C */
634   __IO uint32_t MPCWM5ACFGR;    /*!< TZSC memory 5 sub-region A watermark configuration register,          Address offset: 0x80      */
635   __IO uint32_t MPCWM5AR;       /*!< TZSC memory 5 sub-region A watermark register,                        Address offset: 0x84      */
636   __IO uint32_t MPCWM5BCFGR;    /*!< TZSC memory 5 sub-region B watermark configuration register,          Address offset: 0x88      */
637   __IO uint32_t MPCWM5BR;       /*!< TZSC memory 5 sub-region B watermark register,                        Address offset: 0x8C      */
638 } GTZC_TZSC_TypeDef;
639 
640 typedef struct
641 {
642   __IO uint32_t CR;             /*!< MPCBBx control register,                  Address offset: 0x00        */
643   uint32_t RESERVED1[3];        /*!< Reserved1,                                Address offset: 0x04-0x0C   */
644   __IO uint32_t CFGLOCKR1;      /*!< MPCBBx Configuration lock register,       Address offset: 0x10        */
645   uint32_t RESERVED2[59];       /*!< Reserved2,                                Address offset: 0x14-0xFC   */
646   __IO uint32_t SECCFGR[32];    /*!< MPCBBx security configuration registers,  Address offset: 0x100-0x180 */
647   uint32_t RESERVED3[32];       /*!< Reserved3,                                Address offset: 0x180-0x200 */
648   __IO uint32_t PRIVCFGR[32];   /*!< MPCBBx privilege configuration registers, Address offset: 0x200-0x280 */
649 } GTZC_MPCBB_TypeDef;
650 
651 typedef struct
652 {
653   __IO uint32_t IER1;           /*!< TZIC interrupt enable register 1, Address offset: 0x00 */
654   __IO uint32_t IER2;           /*!< TZIC interrupt enable register 2, Address offset: 0x04 */
655   __IO uint32_t IER3;           /*!< TZIC interrupt enable register 3, Address offset: 0x08 */
656   __IO uint32_t IER4;           /*!< TZIC interrupt enable register 4, Address offset: 0x0C */
657   __IO uint32_t SR1;            /*!< TZIC status register 1,           Address offset: 0x10 */
658   __IO uint32_t SR2;            /*!< TZIC status register 2,           Address offset: 0x14 */
659   __IO uint32_t SR3;            /*!< TZIC status register 3,           Address offset: 0x18 */
660   __IO uint32_t SR4;            /*!< TZIC status register 4,           Address offset: 0x1C */
661   __IO uint32_t FCR1;           /*!< TZIC flag clear register 1,       Address offset: 0x20 */
662   __IO uint32_t FCR2;           /*!< TZIC flag clear register 2,       Address offset: 0x24 */
663   __IO uint32_t FCR3;           /*!< TZIC flag clear register 3,       Address offset: 0x28 */
664   __IO uint32_t FCR4;           /*!< TZIC flag clear register 3,       Address offset: 0x2C */
665 } GTZC_TZIC_TypeDef;
666 
667 /**
668   * @brief Instruction Cache
669   */
670 typedef struct
671 {
672   __IO uint32_t CR;             /*!< ICACHE control register,                Address offset: 0x00 */
673   __IO uint32_t SR;             /*!< ICACHE status register,                 Address offset: 0x04 */
674   __IO uint32_t IER;            /*!< ICACHE interrupt enable register,       Address offset: 0x08 */
675   __IO uint32_t FCR;            /*!< ICACHE Flag clear register,             Address offset: 0x0C */
676   __IO uint32_t HMONR;          /*!< ICACHE hit monitor register,            Address offset: 0x10 */
677   __IO uint32_t MMONR;          /*!< ICACHE miss monitor register,           Address offset: 0x14 */
678        uint32_t RESERVED1[2];   /*!< Reserved,                               Address offset: 0x018-0x01C */
679   __IO uint32_t CRR0;           /*!< ICACHE region 0 configuration register, Address offset: 0x20 */
680   __IO uint32_t CRR1;           /*!< ICACHE region 1 configuration register, Address offset: 0x24 */
681   __IO uint32_t CRR2;           /*!< ICACHE region 2 configuration register, Address offset: 0x28 */
682   __IO uint32_t CRR3;           /*!< ICACHE region 3 configuration register, Address offset: 0x2C */
683        uint32_t RESERVED2[240]; /*!< Reserved,                               Address offset: 0x30-0x3EC */
684   __IO uint32_t HWCFGR;         /*!< ICACHE HW configuration register,       Address offset: 0x3F0 */
685   __IO uint32_t VERR;           /*!< ICACHE version register,                Address offset: 0x3F4 */
686   __IO uint32_t IPIDR;          /*!< ICACHE IP identification register,      Address offset: 0x3F8 */
687   __IO uint32_t SIDR;           /*!< ICACHE size identification register,    Address offset: 0x3FC */
688 } ICACHE_TypeDef;
689 
690 /**
691   * @brief Data Cache
692   */
693 typedef struct
694 {
695   __IO uint32_t CR;             /*!< DCACHE control register,               Address offset: 0x00 */
696   __IO uint32_t SR;             /*!< DCACHE status register,                Address offset: 0x04 */
697   __IO uint32_t IER;            /*!< DCACHE interrupt enable register,      Address offset: 0x08 */
698   __IO uint32_t FCR;            /*!< DCACHE Flag clear register,            Address offset: 0x0C */
699   __IO uint32_t RHMONR;         /*!< DCACHE Read hit monitor register,      Address offset: 0x10 */
700   __IO uint32_t RMMONR;         /*!< DCACHE Read miss monitor register,     Address offset: 0x14 */
701        uint32_t RESERVED1[2];   /*!< Reserved,                              Address offset: 0x18-0x1C */
702   __IO uint32_t WHMONR;         /*!< DCACHE Write hit monitor register,     Address offset: 0x20 */
703   __IO uint32_t WMMONR;         /*!< DCACHE Write miss monitor register,    Address offset: 0x24 */
704   __IO uint32_t CMDRSADDRR;     /*!< DCACHE Command Start Address register, Address offset: 0x28 */
705   __IO uint32_t CMDREADDRR;     /*!< DCACHE Command End Address register,   Address offset: 0x2C */
706 } DCACHE_TypeDef;
707 
708 /**
709   * @brief PSSI
710   */
711 typedef struct
712 {
713   __IO uint32_t CR;             /*!< PSSI control register,                 Address offset: 0x000 */
714   __IO uint32_t SR;             /*!< PSSI status register,                  Address offset: 0x004 */
715   __IO uint32_t RIS;            /*!< PSSI raw interrupt status register,    Address offset: 0x008 */
716   __IO uint32_t IER;            /*!< PSSI interrupt enable register,        Address offset: 0x00C */
717   __IO uint32_t MIS;            /*!< PSSI masked interrupt status register, Address offset: 0x010 */
718   __IO uint32_t ICR;            /*!< PSSI interrupt clear register,         Address offset: 0x014 */
719   __IO uint32_t RESERVED1[4];   /*!< Reserved,                                      0x018 - 0x024 */
720   __IO uint32_t DR;             /*!< PSSI data register,                    Address offset: 0x028 */
721 } PSSI_TypeDef;
722 
723 /**
724   * @brief TIM
725   */
726 typedef struct
727 {
728   __IO uint32_t CR1;         /*!< TIM control register 1,                   Address offset: 0x00 */
729   __IO uint32_t CR2;         /*!< TIM control register 2,                   Address offset: 0x04 */
730   __IO uint32_t SMCR;        /*!< TIM slave mode control register,          Address offset: 0x08 */
731   __IO uint32_t DIER;        /*!< TIM DMA/interrupt enable register,        Address offset: 0x0C */
732   __IO uint32_t SR;          /*!< TIM status register,                      Address offset: 0x10 */
733   __IO uint32_t EGR;         /*!< TIM event generation register,            Address offset: 0x14 */
734   __IO uint32_t CCMR1;       /*!< TIM capture/compare mode register 1,      Address offset: 0x18 */
735   __IO uint32_t CCMR2;       /*!< TIM capture/compare mode register 2,      Address offset: 0x1C */
736   __IO uint32_t CCER;        /*!< TIM capture/compare enable register,      Address offset: 0x20 */
737   __IO uint32_t CNT;         /*!< TIM counter register,                     Address offset: 0x24 */
738   __IO uint32_t PSC;         /*!< TIM prescaler,                            Address offset: 0x28 */
739   __IO uint32_t ARR;         /*!< TIM auto-reload register,                 Address offset: 0x2C */
740   __IO uint32_t RCR;         /*!< TIM repetition counter register,          Address offset: 0x30 */
741   __IO uint32_t CCR1;        /*!< TIM capture/compare register 1,           Address offset: 0x34 */
742   __IO uint32_t CCR2;        /*!< TIM capture/compare register 2,           Address offset: 0x38 */
743   __IO uint32_t CCR3;        /*!< TIM capture/compare register 3,           Address offset: 0x3C */
744   __IO uint32_t CCR4;        /*!< TIM capture/compare register 4,           Address offset: 0x40 */
745   __IO uint32_t BDTR;        /*!< TIM break and dead-time register,         Address offset: 0x44 */
746   __IO uint32_t CCR5;        /*!< TIM capture/compare register 5,           Address offset: 0x48 */
747   __IO uint32_t CCR6;        /*!< TIM capture/compare register 6,           Address offset: 0x4C */
748   __IO uint32_t CCMR3;       /*!< TIM capture/compare mode register 3,      Address offset: 0x50 */
749   __IO uint32_t DTR2;        /*!< TIM deadtime register 2,                  Address offset: 0x54 */
750   __IO uint32_t ECR;         /*!< TIM encoder control register,             Address offset: 0x58 */
751   __IO uint32_t TISEL;       /*!< TIM Input Selection register,             Address offset: 0x5C */
752   __IO uint32_t AF1;         /*!< TIM alternate function option register 1, Address offset: 0x60 */
753   __IO uint32_t AF2;         /*!< TIM alternate function option register 2, Address offset: 0x64 */
754   __IO uint32_t OR1 ;        /*!< TIM option register,                      Address offset: 0x68 */
755        uint32_t RESERVED0[220];/*!< Reserved,                               Address offset: 0x6C */
756   __IO uint32_t DCR;         /*!< TIM DMA control register,                 Address offset: 0x3DC */
757   __IO uint32_t DMAR;        /*!< TIM DMA address for full transfer,        Address offset: 0x3E0 */
758 } TIM_TypeDef;
759 
760 /**
761   * @brief LPTIMER
762   */
763 typedef struct
764 {
765   __IO uint32_t ISR;            /*!< LPTIM Interrupt and Status register,    Address offset: 0x00 */
766   __IO uint32_t ICR;            /*!< LPTIM Interrupt Clear register,         Address offset: 0x04 */
767   __IO uint32_t DIER;           /*!< LPTIM Interrupt Enable register,        Address offset: 0x08 */
768   __IO uint32_t CFGR;           /*!< LPTIM Configuration register,           Address offset: 0x0C */
769   __IO uint32_t CR;             /*!< LPTIM Control register,                 Address offset: 0x10 */
770   __IO uint32_t CCR1;           /*!< LPTIM Capture/Compare register 1,       Address offset: 0x14 */
771   __IO uint32_t ARR;            /*!< LPTIM Autoreload register,              Address offset: 0x18 */
772   __IO uint32_t CNT;            /*!< LPTIM Counter register,                 Address offset: 0x1C */
773   __IO uint32_t RESERVED0;      /*!< Reserved,                               Address offset: 0x20 */
774   __IO uint32_t CFGR2;          /*!< LPTIM Configuration register 2,         Address offset: 0x24 */
775   __IO uint32_t RCR;            /*!< LPTIM Repetition register,              Address offset: 0x28 */
776   __IO uint32_t CCMR1;          /*!< LPTIM Capture/Compare mode register,    Address offset: 0x2C */
777   __IO uint32_t RESERVED1;      /*!< Reserved,                               Address offset: 0x30 */
778   __IO uint32_t CCR2;           /*!< LPTIM Capture/Compare register 2,       Address offset: 0x34 */
779 } LPTIM_TypeDef;
780 
781 /**
782   * @brief Comparator
783   */
784 typedef struct
785 {
786   __IO uint32_t CSR;            /*!< Comparator control/status register  ,   Address offset: 0x00 */
787 } COMP_TypeDef;
788 
789 typedef struct
790 {
791   __IO uint32_t CSR_ODD;        /*!< COMP control and status register located in register of comparator instance odd, used for bits common to several COMP instances, Address offset: 0x00 */
792   __IO uint32_t CSR_EVEN;       /*!< COMP control and status register located in register of comparator instance even, used for bits common to several COMP instances, Address offset: 0x04 */
793 } COMP_Common_TypeDef;
794 
795 /**
796   * @brief Operational Amplifier (OPAMP)
797   */
798 typedef struct
799 {
800   __IO uint32_t CSR;         /*!< OPAMP control/status register,                     Address offset: 0x00 */
801   __IO uint32_t OTR;         /*!< OPAMP offset trimming register for normal mode,    Address offset: 0x04 */
802   __IO uint32_t LPOTR;       /*!< OPAMP offset trimming register for low power mode, Address offset: 0x08 */
803 } OPAMP_TypeDef;
804 
805 /*Aliases */
806 #define OPAMP_Common_TypeDef    OPAMP_TypeDef
807 
808 /**
809   * @brief MDF/ADF
810   */
811 typedef struct
812 {
813  __IO uint32_t GCR;            /*!< MDF Global Control register,             Address offset: 0x00  */
814  __IO uint32_t CKGCR;          /*!< MDF Clock Generator Control Register,    Address offset: 0x04  */
815  uint32_t     RESERVED1[6];    /*!< Reserved, 0x08-0x1C                                            */
816  __IO uint32_t OR;             /*!< MDF  Option Register,                    Address offset: 0x20  */
817 }MDF_TypeDef;
818 
819 /**
820   * @brief MDF/ADF filter
821   */
822 typedef struct
823 {
824  __IO uint32_t SITFCR;         /*!< MDF Serial Interface Control Register,          Address offset: 0x80 */
825  __IO uint32_t BSMXCR;         /*!< MDF Bitstream Matrix Control Register,          Address offset: 0x84 */
826  __IO uint32_t DFLTCR;         /*!< MDF Digital Filter Control Register,            Address offset: 0x88 */
827  __IO uint32_t DFLTCICR;       /*!< MDF MCIC Configuration Register,                Address offset: 0x8C */
828  __IO uint32_t DFLTRSFR;       /*!< MDF Reshape Filter Configuration Register,      Address offset: 0x90 */
829  __IO uint32_t DFLTINTR;       /*!< MDF Integrator Configuration Register,          Address offset: 0x94 */
830  __IO uint32_t OLDCR;          /*!< MDF Out-Of Limit Detector Control Register,     Address offset: 0x98 */
831  __IO uint32_t OLDTHLR;        /*!< MDF OLD Threshold Low Register,                 Address offset: 0x9C */
832  __IO uint32_t OLDTHHR;        /*!< MDF OLD Threshold High Register,                Address offset: 0xA0 */
833  __IO uint32_t DLYCR;          /*!< MDF Delay control Register,                     Address offset: 0xA4 */
834  __IO uint32_t SCDCR;          /*!< MDF short circuit detector control Register,    Address offset: 0xA8 */
835  __IO uint32_t DFLTIER;        /*!< MDF DFLT Interrupt enable Register,             Address offset: 0xAC */
836  __IO uint32_t DFLTISR;        /*!< MDF DFLT Interrupt status Register,             Address offset: 0xB0 */
837  __IO uint32_t OECCR;          /*!< MDF Offset Error Compensation Control Register, Address offset: 0xB4 */
838  __IO uint32_t SADCR;          /*!< MDF SAD Control Register,                       Address offset: 0xB8 */
839  __IO uint32_t SADCFGR;        /*!< MDF SAD configuration register,                 Address offset: 0xBC */
840  __IO uint32_t SADSDLVR;       /*!< MDF SAD Sound level Register,                   Address offset: 0xC0 */
841  __IO uint32_t SADANLVR;       /*!< MDF SAD Ambient Noise level Register,           Address offset: 0xC4 */
842  uint32_t     RESERVED1[9];    /*!< Reserved, 0xC8-0xE8                                                  */
843  __IO uint32_t SNPSDR;         /*!< MDF Snapshot Data Register,                     Address offset: 0xEC */
844  __IO uint32_t DFLTDR;         /*!< MDF Digital Filter Data Register,               Address offset: 0xF0 */
845 } MDF_Filter_TypeDef;
846 
847 /**
848   * @brief OCTO Serial Peripheral Interface
849   */
850 
851 typedef struct
852 {
853   __IO uint32_t CR;          /*!< OCTOSPI Control register,                           Address offset: 0x000 */
854   uint32_t RESERVED;         /*!< Reserved,                                           Address offset: 0x004 */
855   __IO uint32_t DCR1;        /*!< OCTOSPI Device Configuration register 1,            Address offset: 0x008 */
856   __IO uint32_t DCR2;        /*!< OCTOSPI Device Configuration register 2,            Address offset: 0x00C */
857   __IO uint32_t DCR3;        /*!< OCTOSPI Device Configuration register 3,            Address offset: 0x010 */
858   __IO uint32_t DCR4;        /*!< OCTOSPI Device Configuration register 4,            Address offset: 0x014 */
859   uint32_t RESERVED1[2];     /*!< Reserved,                                           Address offset: 0x018-0x01C */
860   __IO uint32_t SR;          /*!< OCTOSPI Status register,                            Address offset: 0x020 */
861   __IO uint32_t FCR;         /*!< OCTOSPI Flag Clear register,                        Address offset: 0x024 */
862   uint32_t RESERVED2[6];     /*!< Reserved,                                           Address offset: 0x028-0x03C */
863   __IO uint32_t DLR;         /*!< OCTOSPI Data Length register,                       Address offset: 0x040 */
864   uint32_t RESERVED3;        /*!< Reserved,                                           Address offset: 0x044 */
865   __IO uint32_t AR;          /*!< OCTOSPI Address register,                           Address offset: 0x048 */
866   uint32_t RESERVED4;        /*!< Reserved,                                           Address offset: 0x04C */
867   __IO uint32_t DR;          /*!< OCTOPSI Data register,                              Address offset: 0x050 */
868   uint32_t RESERVED5[11];    /*!< Reserved,                                           Address offset: 0x054-0x07C */
869   __IO uint32_t PSMKR;       /*!< OCTOSPI Polling Status Mask register,               Address offset: 0x080 */
870   uint32_t RESERVED6;        /*!< Reserved,                                           Address offset: 0x084 */
871   __IO uint32_t PSMAR;       /*!< OCTOSPI Polling Status Match register,              Address offset: 0x088 */
872   uint32_t RESERVED7;        /*!< Reserved,                                           Address offset: 0x08C */
873   __IO uint32_t PIR;         /*!< OCTOSPI Polling Interval register,                  Address offset: 0x090 */
874   uint32_t RESERVED8[27];    /*!< Reserved,                                           Address offset: 0x094-0x0FC */
875   __IO uint32_t CCR;         /*!< OCTOSPI Communication Configuration register,       Address offset: 0x100 */
876   uint32_t RESERVED9;        /*!< Reserved,                                           Address offset: 0x104 */
877   __IO uint32_t TCR;         /*!< OCTOSPI Timing Configuration register,              Address offset: 0x108 */
878   uint32_t RESERVED10;       /*!< Reserved,                                           Address offset: 0x10C */
879   __IO uint32_t IR;          /*!< OCTOSPI Instruction register,                       Address offset: 0x110 */
880   uint32_t RESERVED11[3];    /*!< Reserved,                                           Address offset: 0x114-0x11C */
881   __IO uint32_t ABR;         /*!< OCTOSPI Alternate Bytes register,                   Address offset: 0x120 */
882   uint32_t RESERVED12[3];    /*!< Reserved,                                           Address offset: 0x124-0x12C */
883   __IO uint32_t LPTR;        /*!< OCTOSPI Low Power Timeout register,                 Address offset: 0x130 */
884   uint32_t RESERVED13[3];    /*!< Reserved,                                           Address offset: 0x134-0x13C */
885   __IO uint32_t WPCCR;       /*!< OCTOSPI Wrap Communication Configuration register,  Address offset: 0x140 */
886   uint32_t RESERVED14;       /*!< Reserved,                                           Address offset: 0x144 */
887   __IO uint32_t WPTCR;       /*!< OCTOSPI Wrap Timing Configuration register,         Address offset: 0x148 */
888   uint32_t RESERVED15;       /*!< Reserved,                                           Address offset: 0x14C */
889   __IO uint32_t WPIR;        /*!< OCTOSPI Wrap Instruction register,                  Address offset: 0x150 */
890   uint32_t RESERVED16[3];    /*!< Reserved,                                           Address offset: 0x154-0x15C */
891   __IO uint32_t WPABR;       /*!< OCTOSPI Wrap Alternate Bytes register,              Address offset: 0x160 */
892   uint32_t RESERVED17[7];    /*!< Reserved,                                           Address offset: 0x164-0x17C */
893   __IO uint32_t WCCR;        /*!< OCTOSPI Write Communication Configuration register, Address offset: 0x180 */
894   uint32_t RESERVED18;       /*!< Reserved,                                           Address offset: 0x184 */
895   __IO uint32_t WTCR;        /*!< OCTOSPI Write Timing Configuration register,        Address offset: 0x188 */
896   uint32_t RESERVED19;       /*!< Reserved,                                           Address offset: 0x18C */
897   __IO uint32_t WIR;         /*!< OCTOSPI Write Instruction register,                 Address offset: 0x190 */
898   uint32_t RESERVED20[3];    /*!< Reserved,                                           Address offset: 0x194-0x19C */
899   __IO uint32_t WABR;        /*!< OCTOSPI Write Alternate Bytes register,             Address offset: 0x1A0 */
900   uint32_t RESERVED21[23];   /*!< Reserved,                                           Address offset: 0x1A4-0x1FC */
901   __IO uint32_t HLCR;        /*!< OCTOSPI Hyperbus Latency Configuration register,    Address offset: 0x200 */
902 } OCTOSPI_TypeDef;
903 
904 /**
905   * @brief OTFDEC register
906   */
907 typedef struct
908 {
909   __IO uint32_t REG_CONFIGR;      /*!< OTFDEC Region Configuration register,          Address offset: 0x20 + 0x30 * (x -1) (x = 1 to 4) */
910   __IO uint32_t REG_START_ADDR;   /*!< OTFDEC Region Start Address register,          Address offset: 0x24 + 0x30 * (x -1) (x = 1 to 4) */
911   __IO uint32_t REG_END_ADDR;     /*!< OTFDEC Region End Address register,            Address offset: 0x28 + 0x30 * (x -1) (x = 1 to 4) */
912   __IO uint32_t REG_NONCER0;      /*!< OTFDEC Region Nonce register 0,                Address offset: 0x2C + 0x30 * (x -1) (x = 1 to 4) */
913   __IO uint32_t REG_NONCER1;      /*!< OTFDEC Region Nonce register 1,                Address offset: 0x30 + 0x30 * (x -1) (x = 1 to 4) */
914   __IO uint32_t REG_KEYR0;        /*!< OTFDEC Region Key register 0,                  Address offset: 0x34 + 0x30 * (x -1) (x = 1 to 4) */
915   __IO uint32_t REG_KEYR1;        /*!< OTFDEC Region Key register 1,                  Address offset: 0x38 + 0x30 * (x -1) (x = 1 to 4) */
916   __IO uint32_t REG_KEYR2;        /*!< OTFDEC Region Key register 2,                  Address offset: 0x3C + 0x30 * (x -1) (x = 1 to 4) */
917   __IO uint32_t REG_KEYR3;        /*!< OTFDEC Region Key register 3,                  Address offset: 0x40 + 0x30 * (x -1) (x = 1 to 4) */
918 } OTFDEC_Region_TypeDef;
919 
920 typedef struct
921 {
922   __IO uint32_t CR;               /*!< OTFDEC Control register,                                 Address offset: 0x000 */
923   uint32_t RESERVED1[3];          /*!< Reserved,                                                Address offset: 0x004-0x00C */
924   __IO uint32_t PRIVCFGR;         /*!< OTFDEC Privileged access control Configuration register, Address offset: 0x010 */
925   uint32_t RESERVED2[187];        /*!< Reserved,                                                Address offset: 0x014-0x2FC */
926   __IO uint32_t ISR;              /*!< OTFDEC Interrupt Status register,                        Address offset: 0x300 */
927   __IO uint32_t ICR;              /*!< OTFDEC Interrupt Clear register,                         Address offset: 0x304 */
928   __IO uint32_t IER;              /*!< OTFDEC Interrupt Enable register,                        Address offset: 0x308 */
929 } OTFDEC_TypeDef;
930 
931 /**
932   * @brief OCTO Serial Peripheral Interface IO Manager
933   */
934 typedef struct
935 {
936   __IO uint32_t CR;          /*!< OCTOSPI IO Manager Control register,                 Address offset: 0x00 */
937   __IO uint32_t PCR[8];      /*!< OCTOSPI IO Manager Port[1:8] Configuration register, Address offset: 0x04-0x20 */
938 } OCTOSPIM_TypeDef;
939 
940 /**
941   * @brief Power Control
942   */
943 typedef struct
944 {
945   __IO uint32_t CR1;      /*!< Power control register 1,                          Address offset: 0x00 */
946   __IO uint32_t CR2;      /*!< Power control register 2,                          Address offset: 0x04 */
947   __IO uint32_t CR3;      /*!< Power control register 3,                          Address offset: 0x08 */
948   __IO uint32_t VOSR;     /*!< Power voltage scaling register,                    Address offset: 0x0C */
949   __IO uint32_t SVMCR;    /*!< Power supply voltage monitoring control register,  Address offset: 0x10 */
950   __IO uint32_t WUCR1;    /*!< Power wakeup control register 1,                   Address offset: 0x14 */
951   __IO uint32_t WUCR2;    /*!< Power wakeup control register 2,                   Address offset: 0x18 */
952   __IO uint32_t WUCR3;    /*!< Power wakeup control register 3,                   Address offset: 0x1C */
953   __IO uint32_t BDCR1;    /*!< Power backup domain control register 1,            Address offset: 0x20 */
954   __IO uint32_t BDCR2;    /*!< Power backup domain control register 2,            Address offset: 0x24 */
955   __IO uint32_t DBPR;     /*!< Power disable backup domain register,              Address offset: 0x28 */
956   __IO uint32_t UCPDR;    /*!< Power USB Type-C and Power Delivery register,      Address offset: 0x2C */
957   __IO uint32_t SECCFGR;  /*!< Power Security configuration register,             Address offset: 0x30 */
958   __IO uint32_t PRIVCFGR; /*!< Power privilege control register,                  Address offset: 0x34 */
959   __IO uint32_t SR;       /*!< Power status register,                             Address offset: 0x38 */
960   __IO uint32_t SVMSR;    /*!< Power supply voltage monitoring status register,   Address offset: 0x3C */
961   __IO uint32_t BDSR;     /*!< Power backup domain status register,               Address offset: 0x40 */
962   __IO uint32_t WUSR;     /*!< Power wakeup status register,                      Address offset: 0x44 */
963   __IO uint32_t WUSCR;    /*!< Power wakeup status clear register,                Address offset: 0x48 */
964   __IO uint32_t APCR;     /*!< Power apply pull configuration register,           Address offset: 0x4C */
965   __IO uint32_t PUCRA;    /*!< Power Port A pull-up control register,             Address offset: 0x50 */
966   __IO uint32_t PDCRA;    /*!< Power Port A pull-down control register,           Address offset: 0x54 */
967   __IO uint32_t PUCRB;    /*!< Power Port B pull-up control register,             Address offset: 0x58 */
968   __IO uint32_t PDCRB;    /*!< Power Port B pull-down control register,           Address offset: 0x5C */
969   __IO uint32_t PUCRC;    /*!< Power Port C pull-up control register,             Address offset: 0x60 */
970   __IO uint32_t PDCRC;    /*!< Power Port C pull-down control register,           Address offset: 0x64 */
971   __IO uint32_t PUCRD;    /*!< Power Port D pull-up control register,             Address offset: 0x68 */
972   __IO uint32_t PDCRD;    /*!< Power Port D pull-down control register,           Address offset: 0x6C */
973   __IO uint32_t PUCRE;    /*!< Power Port E pull-up control register,             Address offset: 0x70 */
974   __IO uint32_t PDCRE;    /*!< Power Port E pull-down control register,           Address offset: 0x74 */
975   __IO uint32_t PUCRF;    /*!< Power Port F pull-up control register,             Address offset: 0x78 */
976   __IO uint32_t PDCRF;    /*!< Power Port F pull-down control register,           Address offset: 0x7C */
977   __IO uint32_t PUCRG;    /*!< Power Port G pull-up control register,             Address offset: 0x80 */
978   __IO uint32_t PDCRG;    /*!< Power Port G pull-down control register,           Address offset: 0x84 */
979   __IO uint32_t PUCRH;    /*!< Power Port H pull-up control register,             Address offset: 0x88 */
980   __IO uint32_t PDCRH;    /*!< Power Port H pull-down control register,           Address offset: 0x8C */
981   __IO uint32_t PUCRI;    /*!< Power Port I pull-up control register,             Address offset: 0x90 */
982   __IO uint32_t PDCRI;    /*!< Power Port I pull-down control register,           Address offset: 0x94 */
983 } PWR_TypeDef;
984 
985 /**
986   * @brief SRAMs configuration controller
987   */
988 typedef struct
989 {
990   __IO uint32_t CR;       /*!< Control Register,                  Address offset: 0x00 */
991   __IO uint32_t IER;      /*!< Interrupt Enable Register,         Address offset: 0x04 */
992   __IO uint32_t ISR;      /*!< Interrupt Status Register,         Address offset: 0x08 */
993   __IO uint32_t SEAR;     /*!< ECC Single Error Address Register, Address offset: 0x0C */
994   __IO uint32_t DEAR;     /*!< ECC Double Error Address Register, Address offset: 0x10 */
995   __IO uint32_t ICR;      /*!< Interrupt Clear Register,          Address offset: 0x14 */
996   __IO uint32_t WPR1;     /*!< SRAM Write Protection Register 1,  Address offset: 0x18 */
997   __IO uint32_t WPR2;     /*!< SRAM Write Protection Register 2,  Address offset: 0x1C */
998   uint32_t      RESERVED; /*!< Reserved,                          Address offset: 0x20 */
999   __IO uint32_t ECCKEY;   /*!< SRAM ECC Key Register,             Address offset: 0x24 */
1000   __IO uint32_t ERKEYR;   /*!< SRAM Erase Key Register,           Address offset: 0x28 */
1001 }RAMCFG_TypeDef;
1002 
1003 /**
1004   * @brief Reset and Clock Control
1005   */
1006 typedef struct
1007 {
1008   __IO uint32_t CR;            /*!< RCC clock control register                                               Address offset: 0x00 */
1009   uint32_t      RESERVED0;     /*!< Reserved                                                                 Address offset: 0x04 */
1010   __IO uint32_t ICSCR1;        /*!< RCC internal clock sources calibration register 1                        Address offset: 0x08 */
1011   __IO uint32_t ICSCR2;        /*!< RCC internal clock sources calibration register 2                        Address offset: 0x0C */
1012   __IO uint32_t ICSCR3;        /*!< RCC internal clock sources calibration register 3                        Address offset: 0x10 */
1013   __IO uint32_t CRRCR;         /*!< RCC Clock Recovery RC Register                                           Address offset: 0x14 */
1014   uint32_t      RESERVED1;     /*!< Reserved                                                                 Address offset: 0x18 */
1015   __IO uint32_t CFGR1;         /*!< RCC clock configuration register 1                                       Address offset: 0x1C */
1016   __IO uint32_t CFGR2;         /*!< RCC clock configuration register 2                                       Address offset: 0x20 */
1017   __IO uint32_t CFGR3;         /*!< RCC clock configuration register 3                                       Address offset: 0x24 */
1018   __IO uint32_t PLL1CFGR;      /*!< PLL1 Configuration Register                                              Address offset: 0x28 */
1019   __IO uint32_t PLL2CFGR;      /*!< PLL2 Configuration Register                                              Address offset: 0x2C */
1020   __IO uint32_t PLL3CFGR;      /*!< PLL3 Configuration Register                                              Address offset: 0x30 */
1021   __IO uint32_t PLL1DIVR;      /*!< PLL1 Dividers Configuration Register                                     Address offset: 0x34 */
1022   __IO uint32_t PLL1FRACR;     /*!< PLL1 Fractional Divider Configuration Register                           Address offset: 0x38 */
1023   __IO uint32_t PLL2DIVR;      /*!< PLL2 Dividers Configuration Register                                     Address offset: 0x3C */
1024   __IO uint32_t PLL2FRACR;     /*!< PLL2 Fractional Divider Configuration Register                           Address offset: 0x40 */
1025   __IO uint32_t PLL3DIVR;      /*!< PLL3 Dividers Configuration Register                                     Address offset: 0x44 */
1026   __IO uint32_t PLL3FRACR;     /*!< PLL3 Fractional Divider Configuration Register                           Address offset: 0x48 */
1027   uint32_t      RESERVED2;     /*!< Reserved                                                                 Address offset: 0x4C */
1028   __IO uint32_t CIER;          /*!< Clock Interrupt Enable Register                                          Address offset: 0x50 */
1029   __IO uint32_t CIFR;          /*!< Clock Interrupt Flag Register                                            Address offset: 0x54 */
1030   __IO uint32_t CICR;          /*!< Clock Interrupt Clear Register                                           Address offset: 0x58 */
1031   uint32_t      RESERVED3;     /*!< Reserved                                                                 Address offset: 0x5C */
1032   __IO uint32_t AHB1RSTR;      /*!< AHB1 Peripherals Reset Register                                          Address offset: 0x60 */
1033   __IO uint32_t AHB2RSTR1;     /*!< AHB2 Peripherals Reset Register 1                                        Address offset: 0x64 */
1034   __IO uint32_t AHB2RSTR2;     /*!< AHB2 Peripherals Reset Register 2                                        Address offset: 0x68 */
1035   __IO uint32_t AHB3RSTR;      /*!< AHB3 Peripherals Reset Register                                          Address offset: 0x6C */
1036   uint32_t      RESERVED4;     /*!< Reserved                                                                 Address offset: 0x70 */
1037   __IO uint32_t APB1RSTR1;     /*!< APB1 Peripherals Reset Register 1                                        Address offset: 0x74 */
1038   __IO uint32_t APB1RSTR2;     /*!< APB1 Peripherals Reset Register 2                                        Address offset: 0x78 */
1039   __IO uint32_t APB2RSTR;      /*!< APB2 Peripherals Reset Register                                          Address offset: 0x7C */
1040   __IO uint32_t APB3RSTR;      /*!< APB3 Peripherals Reset Register                                          Address offset: 0x80 */
1041   uint32_t      RESERVED5;     /*!< Reserved                                                                 Address offset: 0x84 */
1042   __IO uint32_t AHB1ENR;       /*!< AHB1 Peripherals Clock Enable Register                                   Address offset: 0x88 */
1043   __IO uint32_t AHB2ENR1;      /*!< AHB2 Peripherals Clock Enable Register 1                                 Address offset: 0x8C */
1044   __IO uint32_t AHB2ENR2;      /*!< AHB2 Peripherals Clock Enable Register 2                                 Address offset: 0x90 */
1045   __IO uint32_t AHB3ENR;       /*!< AHB3 Peripherals Clock Enable Register                                   Address offset: 0x94 */
1046   uint32_t      RESERVED6;     /*!< Reserved                                                                 Address offset: 0x98 */
1047   __IO uint32_t APB1ENR1;      /*!< APB1 Peripherals Clock Enable Register 1                                 Address offset: 0x9C */
1048   __IO uint32_t APB1ENR2;      /*!< APB1 Peripherals Clock Enable Register 2                                 Address offset: 0xA0 */
1049   __IO uint32_t APB2ENR;       /*!< APB2 Peripherals Clock Enable Register                                   Address offset: 0xA4 */
1050   __IO uint32_t APB3ENR;       /*!< APB3 Peripherals Clock Enable Register                                   Address offset: 0xA8 */
1051   uint32_t      RESERVED7;     /*!< Reserved                                                                 Address offset: 0xAC */
1052   __IO uint32_t AHB1SMENR;     /*!< AHB1 Peripherals Clock Enable in Sleep and Stop Modes Register           Address offset: 0xB0 */
1053   __IO uint32_t AHB2SMENR1;    /*!< AHB2 Peripherals Clock Enable in Sleep and Stop Modes Register 1         Address offset: 0xB4 */
1054   __IO uint32_t AHB2SMENR2;    /*!< AHB2 Peripherals Clock Enable in Sleep and Stop Modes Register 2         Address offset: 0xB8 */
1055   __IO uint32_t AHB3SMENR;     /*!< AHB3 Peripherals Clock Enable in Sleep and Stop Modes Register           Address offset: 0xBC */
1056   uint32_t      RESERVED8;     /*!< Reserved                                                                 Address offset: 0xC0 */
1057   __IO uint32_t APB1SMENR1;    /*!< APB1 Peripherals Clock Enable in Sleep and Stop Modes Register 1         Address offset: 0xC4 */
1058   __IO uint32_t APB1SMENR2;    /*!< APB1 Peripherals Clock Enable in Sleep and Stop Modes Register 2         Address offset: 0xC8 */
1059   __IO uint32_t APB2SMENR;     /*!< APB2 Peripherals Clock Enable in Sleep and Stop Modes Register 1         Address offset: 0xCC */
1060   __IO uint32_t APB3SMENR;     /*!< APB3 Peripherals Clock Enable in Sleep and Stop Modes Register 2         Address offset: 0xD0 */
1061   uint32_t      RESERVED9;     /*!< Reserved                                                                 Address offset: 0xD4 */
1062   __IO uint32_t SRDAMR;        /*!< SRD Autonomous Mode Register                                             Address offset: 0xD8 */
1063   uint32_t      RESERVED10;    /*!< Reserved,                                                                Address offset: 0xDC */
1064   __IO uint32_t CCIPR1;        /*!< IPs Clocks Configuration Register 1                                      Address offset: 0xE0 */
1065   __IO uint32_t CCIPR2;        /*!< IPs Clocks Configuration Register 2                                      Address offset: 0xE4 */
1066   __IO uint32_t CCIPR3;        /*!< IPs Clocks Configuration Register 3                                      Address offset: 0xE8 */
1067   uint32_t      RESERVED11;    /*!< Reserved,                                                                Address offset: 0xEC */
1068   __IO uint32_t BDCR;          /*!< Backup Domain Control Register                                           Address offset: 0xF0 */
1069   __IO uint32_t CSR;           /*!< V33 Clock Control & Status Register                                      Address offset: 0xF4 */
1070   uint32_t      RESERVED[6];   /*!< Reserved                                                                 Address offset: 0xF8 */
1071   __IO uint32_t SECCFGR;       /*!< RCC secure configuration register                                        Address offset: 0x110 */
1072   __IO uint32_t PRIVCFGR;      /*!< RCC privilege configuration register                                     Address offset: 0x114 */
1073 } RCC_TypeDef;
1074 
1075 /**
1076   * @brief PKA
1077   */
1078 typedef struct
1079 {
1080   __IO uint32_t CR;            /*!< PKA control register,             Address offset: 0x00 */
1081   __IO uint32_t SR;            /*!< PKA status register,              Address offset: 0x04 */
1082   __IO uint32_t CLRFR;         /*!< PKA clear flag register,          Address offset: 0x08 */
1083   uint32_t Reserved[253];      /*!< Reserved memory area              Address offset: 0x0C  -> 0x03FC */
1084   __IO uint32_t RAM[1334];     /*!< PKA RAM                           Address offset: 0x400 -> 0x18D4 */
1085 } PKA_TypeDef;
1086 
1087 /*
1088 * @brief RTC Specific device feature definitions
1089 */
1090 #define RTC_BKP_NB         32U
1091 #define RTC_TAMP_NB        8U
1092 
1093 /**
1094   * @brief Real-Time Clock
1095   */
1096 typedef struct
1097 {
1098   __IO uint32_t TR;          /*!< RTC time register,                              Address offset: 0x00 */
1099   __IO uint32_t DR;          /*!< RTC date register,                              Address offset: 0x04 */
1100   __IO uint32_t SSR;         /*!< RTC sub second register,                        Address offset: 0x08 */
1101   __IO uint32_t ICSR;        /*!< RTC initialization control and status register, Address offset: 0x0C */
1102   __IO uint32_t PRER;        /*!< RTC prescaler register,                         Address offset: 0x10 */
1103   __IO uint32_t WUTR;        /*!< RTC wakeup timer register,                      Address offset: 0x14 */
1104   __IO uint32_t CR;          /*!< RTC control register,                           Address offset: 0x18 */
1105   __IO uint32_t PRIVCFGR;    /*!< RTC privilege mode control register,            Address offset: 0x1C */
1106   __IO uint32_t SECCFGR;     /*!< RTC secure mode control register,               Address offset: 0x20 */
1107   __IO uint32_t WPR;         /*!< RTC write protection register,                  Address offset: 0x24 */
1108   __IO uint32_t CALR;        /*!< RTC calibration register,                       Address offset: 0x28 */
1109   __IO uint32_t SHIFTR;      /*!< RTC shift control register,                     Address offset: 0x2C */
1110   __IO uint32_t TSTR;        /*!< RTC time stamp time register,                   Address offset: 0x30 */
1111   __IO uint32_t TSDR;        /*!< RTC time stamp date register,                   Address offset: 0x34 */
1112   __IO uint32_t TSSSR;       /*!< RTC time-stamp sub second register,             Address offset: 0x38 */
1113        uint32_t RESERVED0;   /*!< Reserved,                                       Address offset: 0x3C */
1114   __IO uint32_t ALRMAR;      /*!< RTC alarm A register,                           Address offset: 0x40 */
1115   __IO uint32_t ALRMASSR;    /*!< RTC alarm A sub second register,                Address offset: 0x44 */
1116   __IO uint32_t ALRMBR;      /*!< RTC alarm B register,                           Address offset: 0x48 */
1117   __IO uint32_t ALRMBSSR;    /*!< RTC alarm B sub second register,                Address offset: 0x4C */
1118   __IO uint32_t SR;          /*!< RTC Status register,                            Address offset: 0x50 */
1119   __IO uint32_t MISR;        /*!< RTC masked interrupt status register,           Address offset: 0x54 */
1120   __IO uint32_t SMISR;       /*!< RTC secure masked interrupt status register,    Address offset: 0x58 */
1121   __IO uint32_t SCR;         /*!< RTC status Clear register,                      Address offset: 0x5C */
1122        uint32_t RESERVED4[4];/*!< Reserved,                                       Address offset: 0x58 */
1123   __IO uint32_t ALRABINR;    /*!< RTC alarm A binary mode register,               Address offset: 0x70 */
1124   __IO uint32_t ALRBBINR;    /*!< RTC alarm B binary mode register,               Address offset: 0x74 */
1125 } RTC_TypeDef;
1126 
1127 /**
1128   * @brief Tamper and backup registers
1129   */
1130 typedef struct
1131 {
1132   __IO uint32_t CR1;           /*!< TAMP configuration register 1,               Address offset: 0x00 */
1133   __IO uint32_t CR2;           /*!< TAMP configuration register 2,               Address offset: 0x04 */
1134   __IO uint32_t CR3;           /*!< TAMP configuration register 3,               Address offset: 0x08 */
1135   __IO uint32_t FLTCR;         /*!< TAMP filter control register,                Address offset: 0x0C */
1136   __IO uint32_t ATCR1;         /*!< TAMP filter control register 1               Address offset: 0x10 */
1137   __IO uint32_t ATSEEDR;       /*!< TAMP active tamper seed register,            Address offset: 0x14 */
1138   __IO uint32_t ATOR;          /*!< TAMP active tamper output register,          Address offset: 0x18 */
1139   __IO uint32_t ATCR2;         /*!< TAMP filter control register 2,              Address offset: 0x1C */
1140   __IO uint32_t SECCFGR;       /*!< TAMP secure mode control register,           Address offset: 0x20 */
1141   __IO uint32_t PRIVCFGR;      /*!< TAMP privilege mode control register,        Address offset: 0x24 */
1142        uint32_t RESERVED0;     /*!< Reserved,                                    Address offset: 0x28 */
1143   __IO uint32_t IER;           /*!< TAMP interrupt enable register,              Address offset: 0x2C */
1144   __IO uint32_t SR;            /*!< TAMP status register,                        Address offset: 0x30 */
1145   __IO uint32_t MISR;          /*!< TAMP masked interrupt status register,       Address offset: 0x34 */
1146   __IO uint32_t SMISR;         /*!< TAMP secure masked interrupt status register,Address offset: 0x38 */
1147   __IO uint32_t SCR;           /*!< TAMP status clear register,                  Address offset: 0x3C */
1148   __IO uint32_t COUNTR;        /*!< TAMP monotonic counter register,             Address offset: 0x40 */
1149        uint32_t RESERVED1[4];  /*!< Reserved,                                    Address offset: 0x43 -- 0x50 */
1150   __IO uint32_t ERCFGR;        /*!< TAMP erase configuration register,           Address offset: 0x54 */
1151        uint32_t RESERVED2[42]; /*!< Reserved,                                    Address offset: 0x58 -- 0xFC */
1152   __IO uint32_t BKP0R;         /*!< TAMP backup register 0,                      Address offset: 0x100 */
1153   __IO uint32_t BKP1R;         /*!< TAMP backup register 1,                      Address offset: 0x104 */
1154   __IO uint32_t BKP2R;         /*!< TAMP backup register 2,                      Address offset: 0x108 */
1155   __IO uint32_t BKP3R;         /*!< TAMP backup register 3,                      Address offset: 0x10C */
1156   __IO uint32_t BKP4R;         /*!< TAMP backup register 4,                      Address offset: 0x110 */
1157   __IO uint32_t BKP5R;         /*!< TAMP backup register 5,                      Address offset: 0x114 */
1158   __IO uint32_t BKP6R;         /*!< TAMP backup register 6,                      Address offset: 0x118 */
1159   __IO uint32_t BKP7R;         /*!< TAMP backup register 7,                      Address offset: 0x11C */
1160   __IO uint32_t BKP8R;         /*!< TAMP backup register 8,                      Address offset: 0x120 */
1161   __IO uint32_t BKP9R;         /*!< TAMP backup register 9,                      Address offset: 0x124 */
1162   __IO uint32_t BKP10R;        /*!< TAMP backup register 10,                     Address offset: 0x128 */
1163   __IO uint32_t BKP11R;        /*!< TAMP backup register 11,                     Address offset: 0x12C */
1164   __IO uint32_t BKP12R;        /*!< TAMP backup register 12,                     Address offset: 0x130 */
1165   __IO uint32_t BKP13R;        /*!< TAMP backup register 13,                     Address offset: 0x134 */
1166   __IO uint32_t BKP14R;        /*!< TAMP backup register 14,                     Address offset: 0x138 */
1167   __IO uint32_t BKP15R;        /*!< TAMP backup register 15,                     Address offset: 0x13C */
1168   __IO uint32_t BKP16R;        /*!< TAMP backup register 16,                     Address offset: 0x140 */
1169   __IO uint32_t BKP17R;        /*!< TAMP backup register 17,                     Address offset: 0x144 */
1170   __IO uint32_t BKP18R;        /*!< TAMP backup register 18,                     Address offset: 0x148 */
1171   __IO uint32_t BKP19R;        /*!< TAMP backup register 19,                     Address offset: 0x14C */
1172   __IO uint32_t BKP20R;        /*!< TAMP backup register 20,                     Address offset: 0x150 */
1173   __IO uint32_t BKP21R;        /*!< TAMP backup register 21,                     Address offset: 0x154 */
1174   __IO uint32_t BKP22R;        /*!< TAMP backup register 22,                     Address offset: 0x158 */
1175   __IO uint32_t BKP23R;        /*!< TAMP backup register 23,                     Address offset: 0x15C */
1176   __IO uint32_t BKP24R;        /*!< TAMP backup register 24,                     Address offset: 0x160 */
1177   __IO uint32_t BKP25R;        /*!< TAMP backup register 25,                     Address offset: 0x164 */
1178   __IO uint32_t BKP26R;        /*!< TAMP backup register 26,                     Address offset: 0x168 */
1179   __IO uint32_t BKP27R;        /*!< TAMP backup register 27,                     Address offset: 0x16C */
1180   __IO uint32_t BKP28R;        /*!< TAMP backup register 28,                     Address offset: 0x170 */
1181   __IO uint32_t BKP29R;        /*!< TAMP backup register 29,                     Address offset: 0x174 */
1182   __IO uint32_t BKP30R;        /*!< TAMP backup register 30,                     Address offset: 0x178 */
1183   __IO uint32_t BKP31R;        /*!< TAMP backup register 31,                     Address offset: 0x17C */
1184 } TAMP_TypeDef;
1185 
1186 /**
1187   * @brief Universal Synchronous Asynchronous Receiver Transmitter
1188   */
1189 typedef struct
1190 {
1191   __IO uint32_t CR1;         /*!< USART Control register 1,                 Address offset: 0x00  */
1192   __IO uint32_t CR2;         /*!< USART Control register 2,                 Address offset: 0x04  */
1193   __IO uint32_t CR3;         /*!< USART Control register 3,                 Address offset: 0x08  */
1194   __IO uint32_t BRR;         /*!< USART Baud rate register,                 Address offset: 0x0C  */
1195   __IO uint32_t GTPR;        /*!< USART Guard time and prescaler register,  Address offset: 0x10  */
1196   __IO uint32_t RTOR;        /*!< USART Receiver Time Out register,         Address offset: 0x14  */
1197   __IO uint32_t RQR;         /*!< USART Request register,                   Address offset: 0x18  */
1198   __IO uint32_t ISR;         /*!< USART Interrupt and status register,      Address offset: 0x1C  */
1199   __IO uint32_t ICR;         /*!< USART Interrupt flag Clear register,      Address offset: 0x20  */
1200   __IO uint32_t RDR;         /*!< USART Receive Data register,              Address offset: 0x24  */
1201   __IO uint32_t TDR;         /*!< USART Transmit Data register,             Address offset: 0x28  */
1202   __IO uint32_t PRESC;       /*!< USART Prescaler register,                 Address offset: 0x2C  */
1203   __IO uint32_t AUTOCR;      /*!< USART Autonomous mode control register    Address offset: 0x30  */
1204 } USART_TypeDef;
1205 
1206 /**
1207   * @brief Serial Audio Interface
1208   */
1209 typedef struct
1210 {
1211   __IO uint32_t GCR;          /*!< SAI global configuration register,        Address offset: 0x00 */
1212   uint32_t      RESERVED[16]; /*!< Reserved,                         Address offset: 0x04 to 0x40 */
1213   __IO uint32_t PDMCR;        /*!< SAI PDM control register,                 Address offset: 0x44 */
1214   __IO uint32_t PDMDLY;       /*!< SAI PDM delay register,                   Address offset: 0x48 */
1215 } SAI_TypeDef;
1216 
1217 typedef struct
1218 {
1219   __IO uint32_t CR1;         /*!< SAI block x configuration register 1,     Address offset: 0x04 */
1220   __IO uint32_t CR2;         /*!< SAI block x configuration register 2,     Address offset: 0x08 */
1221   __IO uint32_t FRCR;        /*!< SAI block x frame configuration register, Address offset: 0x0C */
1222   __IO uint32_t SLOTR;       /*!< SAI block x slot register,                Address offset: 0x10 */
1223   __IO uint32_t IMR;         /*!< SAI block x interrupt mask register,      Address offset: 0x14 */
1224   __IO uint32_t SR;          /*!< SAI block x status register,              Address offset: 0x18 */
1225   __IO uint32_t CLRFR;       /*!< SAI block x clear flag register,          Address offset: 0x1C */
1226   __IO uint32_t DR;          /*!< SAI block x data register,                Address offset: 0x20 */
1227 } SAI_Block_TypeDef;
1228 
1229 /**
1230   * @brief System configuration controller
1231   */
1232 typedef struct
1233 {
1234   __IO uint32_t SECCFGR;      /*!< SYSCFG secure configuration register,            Address offset: 0x00 */
1235   __IO uint32_t CFGR1;        /*!< SYSCFG configuration register 1,                 Address offset: 0x04 */
1236   __IO uint32_t FPUIMR;       /*!< SYSCFG FPU interrupt mask register,              Address offset: 0x08 */
1237   __IO uint32_t CNSLCKR;      /*!< SYSCFG CPU non-secure lock register,             Address offset: 0x0C */
1238   __IO uint32_t CSLCKR;       /*!< SYSCFG CPU secure lock register,                 Address offset: 0x10 */
1239   __IO uint32_t CFGR2;        /*!< SYSCFG configuration register 2,                 Address offset: 0x14 */
1240   __IO uint32_t MESR;         /*!< SYSCFG Memory Erase Status register,             Address offset: 0x18 */
1241   __IO uint32_t CCCSR;        /*!< SYSCFG Conpensaion Cell Control&Status register, Address offset: 0x1C */
1242   __IO uint32_t CCVR;         /*!< SYSCFG Conpensaion Cell value register,          Address offset: 0x20 */
1243   __IO uint32_t CCCR;         /*!< SYSCFG Conpensaion Cell Code register,           Address offset: 0x24 */
1244        uint32_t RESERVED1;    /*!< RESERVED1,                                       Address offset: 0x28 */
1245   __IO uint32_t RSSCMDR;      /*!< SYSCFG RSS command mode register,                Address offset: 0x2C */
1246        uint32_t RESERVED2[16];/*!< RESERVED2,                                       Address offset: 0x30 - 0x6C */
1247   __IO uint32_t UCPD;         /*!< SYSCFG USB Type C and Power delivery register    Address offset: 0x70 */
1248 } SYSCFG_TypeDef;
1249 
1250 /**
1251   * @brief Secure digital input/output Interface
1252   */
1253 typedef struct
1254 {
1255   __IO uint32_t POWER;          /*!< SDMMC power control register,             Address offset: 0x00  */
1256   __IO uint32_t CLKCR;          /*!< SDMMC clock control register,             Address offset: 0x04  */
1257   __IO uint32_t ARG;            /*!< SDMMC argument register,                  Address offset: 0x08  */
1258   __IO uint32_t CMD;            /*!< SDMMC command register,                   Address offset: 0x0C  */
1259   __I uint32_t  RESPCMD;        /*!< SDMMC command response register,          Address offset: 0x10  */
1260   __I uint32_t  RESP1;          /*!< SDMMC response 1 register,                Address offset: 0x14  */
1261   __I uint32_t  RESP2;          /*!< SDMMC response 2 register,                Address offset: 0x18  */
1262   __I uint32_t  RESP3;          /*!< SDMMC response 3 register,                Address offset: 0x1C  */
1263   __I uint32_t  RESP4;          /*!< SDMMC response 4 register,                Address offset: 0x20  */
1264   __IO uint32_t DTIMER;         /*!< SDMMC data timer register,                Address offset: 0x24  */
1265   __IO uint32_t DLEN;           /*!< SDMMC data length register,               Address offset: 0x28  */
1266   __IO uint32_t DCTRL;          /*!< SDMMC data control register,              Address offset: 0x2C  */
1267   __I uint32_t  DCOUNT;         /*!< SDMMC data counter register,              Address offset: 0x30  */
1268   __I uint32_t  STA;            /*!< SDMMC status register,                    Address offset: 0x34  */
1269   __IO uint32_t ICR;            /*!< SDMMC interrupt clear register,           Address offset: 0x38  */
1270   __IO uint32_t MASK;           /*!< SDMMC mask register,                      Address offset: 0x3C  */
1271   __IO uint32_t ACKTIME;        /*!< SDMMC Acknowledgement timer register,     Address offset: 0x40  */
1272   uint32_t      RESERVED0[3];   /*!< Reserved, 0x44 - 0x4C - 0x4C                                    */
1273   __IO uint32_t IDMACTRL;       /*!< SDMMC DMA control register,               Address offset: 0x50  */
1274   __IO uint32_t IDMABSIZE;      /*!< SDMMC DMA buffer size register,           Address offset: 0x54  */
1275   __IO uint32_t IDMABASER;      /*!< SDMMC DMA buffer base address register,   Address offset: 0x58  */
1276   uint32_t      RESERVED1[2];   /*!< Reserved, 0x60                                             */
1277   __IO uint32_t IDMALAR;        /*!< SDMMC DMA linked list address register,   Address offset: 0x64  */
1278   __IO uint32_t IDMABAR;        /*!< SDMMC DMA linked list memory base register,Address offset: 0x68 */
1279   uint32_t      RESERVED2[5];   /*!< Reserved, 0x6C-0x7C                                             */
1280   __IO uint32_t FIFO;           /*!< SDMMC data FIFO register,                 Address offset: 0x80  */
1281 } SDMMC_TypeDef;
1282 
1283 
1284 
1285 /**
1286   * @brief Delay Block DLYB
1287   */
1288 
1289 typedef struct
1290 {
1291   __IO uint32_t CR;          /*!< DELAY BLOCK control register,  Address offset: 0x00 */
1292   __IO uint32_t CFGR;        /*!< DELAY BLOCK configuration register,  Address offset: 0x04 */
1293 } DLYB_TypeDef;
1294 
1295 /**
1296   * @brief UCPD
1297   */
1298 typedef struct
1299 {
1300   __IO uint32_t CFG1;         /*!< UCPD configuration register 1,             Address offset: 0x00 */
1301   __IO uint32_t CFG2;         /*!< UCPD configuration register 2,             Address offset: 0x04 */
1302   uint32_t      RESERVED0;    /*!< Reserved                                   Address offset: 0x08 */
1303   __IO uint32_t CR;           /*!< UCPD control register,                     Address offset: 0x0C */
1304   __IO uint32_t IMR;          /*!< UCPD interrupt mask register,              Address offset: 0x10 */
1305   __IO uint32_t SR;           /*!< UCPD status register,                      Address offset: 0x14 */
1306   __IO uint32_t ICR;          /*!< UCPD interrupt flag clear register         Address offset: 0x18 */
1307   __IO uint32_t TX_ORDSET;    /*!< UCPD Tx ordered set type register,         Address offset: 0x1C */
1308   __IO uint32_t TX_PAYSZ;     /*!< UCPD Tx payload size register,             Address offset: 0x20 */
1309   __IO uint32_t TXDR;         /*!< UCPD Tx data register,                     Address offset: 0x24 */
1310   __IO uint32_t RX_ORDSET;    /*!< UCPD Rx ordered set type register,         Address offset: 0x28 */
1311   __IO uint32_t RX_PAYSZ;     /*!< UCPD Rx payload size register,             Address offset: 0x2C */
1312   __IO uint32_t RXDR;         /*!< UCPD Rx data register,                     Address offset: 0x30 */
1313   __IO uint32_t RX_ORDEXT1;   /*!< UCPD Rx ordered set extension 1 register,  Address offset: 0x34 */
1314   __IO uint32_t RX_ORDEXT2;   /*!< UCPD Rx ordered set extension 2 register,  Address offset: 0x38 */
1315 } UCPD_TypeDef;
1316 
1317 /**
1318   * @brief USB_OTG_Core_register
1319   */
1320 typedef struct
1321 {
1322   __IO uint32_t GOTGCTL;             /*!< USB_OTG Control and Status Register,       Address offset: 000h */
1323   __IO uint32_t GOTGINT;             /*!< USB_OTG Interrupt Register,                Address offset: 004h */
1324   __IO uint32_t GAHBCFG;             /*!< Core AHB Configuration Register,           Address offset: 008h */
1325   __IO uint32_t GUSBCFG;             /*!< Core USB Configuration Register,           Address offset: 00Ch */
1326   __IO uint32_t GRSTCTL;             /*!< Core Reset Register,                       Address offset: 010h */
1327   __IO uint32_t GINTSTS;             /*!< Core Interrupt Register,                   Address offset: 014h */
1328   __IO uint32_t GINTMSK;             /*!< Core Interrupt Mask Register,              Address offset: 018h */
1329   __IO uint32_t GRXSTSR;             /*!< Receive Sts Q Read Register,               Address offset: 01Ch */
1330   __IO uint32_t GRXSTSP;             /*!< Receive Sts Q Read & POP Register,         Address offset: 020h */
1331   __IO uint32_t GRXFSIZ;             /*!< Receive FIFO Size Register,                Address offset: 024h */
1332   __IO uint32_t DIEPTXF0_HNPTXFSIZ;  /*!< EP0 / Non Periodic Tx FIFO Size Register,  Address offset: 028h */
1333   __IO uint32_t HNPTXSTS;            /*!< Non Periodic Tx FIFO/Queue Sts reg,        Address offset: 02Ch */
1334   __IO uint32_t Reserved30[2];       /*!< Reserved,                                  Address offset: 030h */
1335   __IO uint32_t GCCFG;               /*!< General Purpose IO Register,               Address offset: 038h */
1336   __IO uint32_t CID;                 /*!< User ID Register,                          Address offset: 03Ch */
1337   __IO uint32_t GSNPSID;             /*!< USB_OTG core ID,                           Address offset: 040h */
1338   __IO uint32_t GHWCFG1;             /*!< User HW config1,                           Address offset: 044h */
1339   __IO uint32_t GHWCFG2;             /*!< User HW config2,                           Address offset: 048h */
1340   __IO uint32_t GHWCFG3;             /*!< User HW config3,                           Address offset: 04Ch */
1341   __IO uint32_t  Reserved6;          /*!< Reserved,                                  Address offset: 050h */
1342   __IO uint32_t GLPMCFG;             /*!< LPM Register,                              Address offset: 054h */
1343   __IO uint32_t GPWRDN;              /*!< Power Down Register,                       Address offset: 058h */
1344   __IO uint32_t GDFIFOCFG;           /*!< DFIFO Software Config Register,            Address offset: 05Ch */
1345   __IO uint32_t GADPCTL;             /*!< ADP Timer, Control and Status Register,    Address offset: 60Ch */
1346   __IO uint32_t  Reserved43[39];     /*!< Reserved,                                  Address offset: 058h */
1347   __IO uint32_t HPTXFSIZ;            /*!< Host Periodic Tx FIFO Size Reg,            Address offset: 100h */
1348   __IO uint32_t DIEPTXF[0x0F];       /*!< dev Periodic Transmit FIFO                 Address offset: 104h */
1349 } USB_OTG_GlobalTypeDef;
1350 
1351 /**
1352   * @brief USB_OTG_device_Registers
1353   */
1354 typedef struct
1355 {
1356   __IO uint32_t DCFG;                /*!< dev Configuration Register,   Address offset: 800h */
1357   __IO uint32_t DCTL;                /*!< dev Control Register,         Address offset: 804h */
1358   __IO uint32_t DSTS;                /*!< dev Status Register (RO),     Address offset: 808h */
1359   uint32_t Reserved0C;               /*!< Reserved,                     Address offset: 80Ch */
1360   __IO uint32_t DIEPMSK;             /*!< dev IN Endpoint Mask,         Address offset: 810h */
1361   __IO uint32_t DOEPMSK;             /*!< dev OUT Endpoint Mask,        Address offset: 814h */
1362   __IO uint32_t DAINT;               /*!< dev All Endpoints Itr Reg,    Address offset: 818h */
1363   __IO uint32_t DAINTMSK;            /*!< dev All Endpoints Itr Mask,   Address offset: 81Ch */
1364   uint32_t  Reserved20;              /*!< Reserved,                     Address offset: 820h */
1365   uint32_t Reserved9;                /*!< Reserved,                     Address offset: 824h */
1366   __IO uint32_t DVBUSDIS;            /*!< dev VBUS discharge Register,  Address offset: 828h */
1367   __IO uint32_t DVBUSPULSE;          /*!< dev VBUS Pulse Register,      Address offset: 82Ch */
1368   __IO uint32_t DTHRCTL;             /*!< dev threshold,                Address offset: 830h */
1369   __IO uint32_t DIEPEMPMSK;          /*!< dev empty msk,                Address offset: 834h */
1370   __IO uint32_t DEACHINT;            /*!< dedicated EP interrupt,       Address offset: 838h */
1371   __IO uint32_t DEACHMSK;            /*!< dedicated EP msk,             Address offset: 83Ch */
1372   uint32_t Reserved40;               /*!< dedicated EP mask,            Address offset: 840h */
1373   __IO uint32_t DINEP1MSK;           /*!< dedicated EP mask,            Address offset: 844h */
1374   uint32_t  Reserved44[15];          /*!< Reserved,                     Address offset: 844-87Ch */
1375   __IO uint32_t DOUTEP1MSK;          /*!< dedicated EP msk,             Address offset: 884h */
1376 } USB_OTG_DeviceTypeDef;
1377 
1378 
1379 /**
1380   * @brief USB_OTG_IN_Endpoint-Specific_Register
1381   */
1382 typedef struct
1383 {
1384   __IO uint32_t DIEPCTL;             /*!< dev IN Endpoint Control Register,          Address offset: 900h + (ep_num * 20h) + 00h */
1385   __IO uint32_t Reserved04;          /*!< Reserved,                                  Address offset: 900h + (ep_num * 20h) + 04h */
1386   __IO uint32_t DIEPINT;             /*!< dev IN Endpoint Itr Register,              Address offset: 900h + (ep_num * 20h) + 08h */
1387   __IO uint32_t Reserved0C;          /*!< Reserved,                                  Address offset: 900h + (ep_num * 20h) + 0Ch */
1388   __IO uint32_t DIEPTSIZ;            /*!< IN Endpoint Txfer Size Register,           Address offset: 900h + (ep_num * 20h) + 10h */
1389   __IO uint32_t DIEPDMA;             /*!< IN Endpoint DMA Address Register,          Address offset: 900h + (ep_num * 20h) + 14h */
1390   __IO uint32_t DTXFSTS;             /*!< IN Endpoint Tx FIFO Status Register,       Address offset: 900h + (ep_num * 20h) + 18h */
1391   __IO uint32_t Reserved18;          /*!< Reserved,                                  Address offset: 900h + (ep_num * 20h) + 1Ch */
1392 } USB_OTG_INEndpointTypeDef;
1393 
1394 /**
1395   * @brief USB_OTG_OUT_Endpoint-Specific_Registers
1396   */
1397 typedef struct
1398 {
1399   __IO uint32_t DOEPCTL;             /*!< dev OUT Endpoint Control Register,         Address offset: B00h + (ep_num * 20h) + 00h */
1400   __IO uint32_t Reserved04;          /*!< Reserved,                                  Address offset: B00h + (ep_num * 20h) + 04h */
1401   __IO uint32_t DOEPINT;             /*!< dev OUT Endpoint Itr Register,             Address offset: B00h + (ep_num * 20h) + 08h */
1402   __IO uint32_t Reserved0C;          /*!< Reserved,                                  Address offset: B00h + (ep_num * 20h) + 0Ch */
1403   __IO uint32_t DOEPTSIZ;            /*!< dev OUT Endpoint Txfer Size Register,      Address offset: B00h + (ep_num * 20h) + 10h */
1404   __IO uint32_t DOEPDMA;             /*!< dev OUT Endpoint DMA Address Register,     Address offset: B00h + (ep_num * 20h) + 14h */
1405   __IO uint32_t Reserved18[2];       /*!< Reserved,                                  Address offset: B00h + (ep_num * 20h) + 18h */
1406 } USB_OTG_OUTEndpointTypeDef;
1407 
1408 /**
1409   * @brief USB_OTG_Host_Mode_Register_Structures
1410   */
1411 typedef struct
1412 {
1413   __IO uint32_t HCFG;                 /*!< Host Configuration Register,              Address offset: 400h */
1414   __IO uint32_t HFIR;                 /*!< Host Frame Interval Register,             Address offset: 404h */
1415   __IO uint32_t HFNUM;                /*!< Host Frame Nbr/Frame Remaining,           Address offset: 408h */
1416   uint32_t Reserved40C;               /*!< Reserved,                                 Address offset: 40Ch */
1417   __IO uint32_t HPTXSTS;              /*!< Host Periodic Tx FIFO/ Queue Status,      Address offset: 410h */
1418   __IO uint32_t HAINT;                /*!< Host All Channels Interrupt Register,     Address offset: 414h */
1419   __IO uint32_t HAINTMSK;             /*!< Host All Channels Interrupt Mask,         Address offset: 418h */
1420 } USB_OTG_HostTypeDef;
1421 
1422 /**
1423   * @brief USB_OTG_Host_Channel_Specific_Registers
1424   */
1425 typedef struct
1426 {
1427   __IO uint32_t HCCHAR;               /*!< Host Channel Characteristics Register,    Address offset: 500h */
1428   __IO uint32_t HCSPLT;               /*!< Host Channel Split Control Register,      Address offset: 504h */
1429   __IO uint32_t HCINT;                /*!< Host Channel Interrupt Register,          Address offset: 508h */
1430   __IO uint32_t HCINTMSK;             /*!< Host Channel Interrupt Mask Register,     Address offset: 50Ch */
1431   __IO uint32_t HCTSIZ;               /*!< Host Channel Transfer Size Register,      Address offset: 510h */
1432   __IO uint32_t HCDMA;                /*!< Host Channel DMA Address Register,        Address offset: 514h */
1433   uint32_t Reserved[2];               /*!< Reserved,                                 Address offset: 518h */
1434 } USB_OTG_HostChannelTypeDef;
1435 
1436 /**
1437   * @brief FD Controller Area Network
1438   */
1439 typedef struct
1440 {
1441   __IO uint32_t CREL;         /*!< FDCAN Core Release register,                                     Address offset: 0x000 */
1442   __IO uint32_t ENDN;         /*!< FDCAN Endian register,                                           Address offset: 0x004 */
1443        uint32_t RESERVED1;    /*!< Reserved,                                                                        0x008 */
1444   __IO uint32_t DBTP;         /*!< FDCAN Data Bit Timing & Prescaler register,                      Address offset: 0x00C */
1445   __IO uint32_t TEST;         /*!< FDCAN Test register,                                             Address offset: 0x010 */
1446   __IO uint32_t RWD;          /*!< FDCAN RAM Watchdog register,                                     Address offset: 0x014 */
1447   __IO uint32_t CCCR;         /*!< FDCAN CC Control register,                                       Address offset: 0x018 */
1448   __IO uint32_t NBTP;         /*!< FDCAN Nominal Bit Timing & Prescaler register,                   Address offset: 0x01C */
1449   __IO uint32_t TSCC;         /*!< FDCAN Timestamp Counter Configuration register,                  Address offset: 0x020 */
1450   __IO uint32_t TSCV;         /*!< FDCAN Timestamp Counter Value register,                          Address offset: 0x024 */
1451   __IO uint32_t TOCC;         /*!< FDCAN Timeout Counter Configuration register,                    Address offset: 0x028 */
1452   __IO uint32_t TOCV;         /*!< FDCAN Timeout Counter Value register,                            Address offset: 0x02C */
1453        uint32_t RESERVED2[4]; /*!< Reserved,                                                                0x030 - 0x03C */
1454   __IO uint32_t ECR;          /*!< FDCAN Error Counter register,                                    Address offset: 0x040 */
1455   __IO uint32_t PSR;          /*!< FDCAN Protocol Status register,                                  Address offset: 0x044 */
1456   __IO uint32_t TDCR;         /*!< FDCAN Transmitter Delay Compensation register,                   Address offset: 0x048 */
1457        uint32_t RESERVED3;    /*!< Reserved,                                                                        0x04C */
1458   __IO uint32_t IR;           /*!< FDCAN Interrupt register,                                        Address offset: 0x050 */
1459   __IO uint32_t IE;           /*!< FDCAN Interrupt Enable register,                                 Address offset: 0x054 */
1460   __IO uint32_t ILS;          /*!< FDCAN Interrupt Line Select register,                            Address offset: 0x058 */
1461   __IO uint32_t ILE;          /*!< FDCAN Interrupt Line Enable register,                            Address offset: 0x05C */
1462        uint32_t RESERVED4[8]; /*!< Reserved,                                                                0x060 - 0x07C */
1463   __IO uint32_t RXGFC;        /*!< FDCAN Global Filter Configuration register,                      Address offset: 0x080 */
1464   __IO uint32_t XIDAM;        /*!< FDCAN Extended ID AND Mask register,                             Address offset: 0x084 */
1465   __IO uint32_t HPMS;         /*!< FDCAN High Priority Message Status register,                     Address offset: 0x088 */
1466        uint32_t RESERVED5;    /*!< Reserved,                                                                        0x08C */
1467   __IO uint32_t RXF0S;        /*!< FDCAN Rx FIFO 0 Status register,                                 Address offset: 0x090 */
1468   __IO uint32_t RXF0A;        /*!< FDCAN Rx FIFO 0 Acknowledge register,                            Address offset: 0x094 */
1469   __IO uint32_t RXF1S;        /*!< FDCAN Rx FIFO 1 Status register,                                 Address offset: 0x098 */
1470   __IO uint32_t RXF1A;        /*!< FDCAN Rx FIFO 1 Acknowledge register,                            Address offset: 0x09C */
1471        uint32_t RESERVED6[8]; /*!< Reserved,                                                                0x0A0 - 0x0BC */
1472   __IO uint32_t TXBC;         /*!< FDCAN Tx Buffer Configuration register,                          Address offset: 0x0C0 */
1473   __IO uint32_t TXFQS;        /*!< FDCAN Tx FIFO/Queue Status register,                             Address offset: 0x0C4 */
1474   __IO uint32_t TXBRP;        /*!< FDCAN Tx Buffer Request Pending register,                        Address offset: 0x0C8 */
1475   __IO uint32_t TXBAR;        /*!< FDCAN Tx Buffer Add Request register,                            Address offset: 0x0CC */
1476   __IO uint32_t TXBCR;        /*!< FDCAN Tx Buffer Cancellation Request register,                   Address offset: 0x0D0 */
1477   __IO uint32_t TXBTO;        /*!< FDCAN Tx Buffer Transmission Occurred register,                  Address offset: 0x0D4 */
1478   __IO uint32_t TXBCF;        /*!< FDCAN Tx Buffer Cancellation Finished register,                  Address offset: 0x0D8 */
1479   __IO uint32_t TXBTIE;       /*!< FDCAN Tx Buffer Transmission Interrupt Enable register,          Address offset: 0x0DC */
1480   __IO uint32_t TXBCIE;       /*!< FDCAN Tx Buffer Cancellation Finished Interrupt Enable register, Address offset: 0x0E0 */
1481   __IO uint32_t TXEFS;        /*!< FDCAN Tx Event FIFO Status register,                             Address offset: 0x0E4 */
1482   __IO uint32_t TXEFA;        /*!< FDCAN Tx Event FIFO Acknowledge register,                        Address offset: 0x0E8 */
1483 } FDCAN_GlobalTypeDef;
1484 
1485 /**
1486   * @brief FD Controller Area Network Configuration
1487   */
1488 typedef struct
1489 {
1490   __IO uint32_t CKDIV;        /*!< FDCAN clock divider register,                            Address offset: 0x100 + 0x000 */
1491        uint32_t RESERVED1[128];/*!< Reserved,                                               0x100 + 0x004 - 0x100 + 0x200 */
1492   __IO uint32_t OPTR;         /*!< FDCAN option register,                                   Address offset: 0x100 + 0x204 */
1493        uint32_t RESERVED2[58];/*!< Reserved,                                                0x100 + 0x208 - 0x100 + 0x2EC */
1494   __IO uint32_t HWCFG;        /*!< FDCAN hardware configuration register,                   Address offset: 0x100 + 0x2F0 */
1495   __IO uint32_t VERR;         /*!< FDCAN IP version register,                               Address offset: 0x100 + 0x2F4 */
1496   __IO uint32_t IPIDR;        /*!< FDCAN IP ID register,                                    Address offset: 0x100 + 0x2F8 */
1497   __IO uint32_t SIDR;         /*!< FDCAN size ID register,                                  Address offset: 0x100 + 0x2FC */
1498 } FDCAN_Config_TypeDef;
1499 
1500 /**
1501   * @brief Flexible Memory Controller
1502   */
1503 typedef struct
1504 {
1505   __IO uint32_t BTCR[8];     /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */
1506   __IO uint32_t PCSCNTR;     /*!< PSRAM chip-select counter register,                                               Address offset:    0x20 */
1507 } FMC_Bank1_TypeDef;
1508 
1509 /**
1510   * @brief Flexible Memory Controller Bank1E
1511   */
1512 typedef struct
1513 {
1514   __IO uint32_t BWTR[7];     /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */
1515 } FMC_Bank1E_TypeDef;
1516 
1517 /**
1518   * @brief Flexible Memory Controller Bank3
1519   */
1520 typedef struct
1521 {
1522   __IO uint32_t PCR;        /*!< NAND Flash control register,                       Address offset: 0x80 */
1523   __IO uint32_t SR;         /*!< NAND Flash FIFO status and interrupt register,     Address offset: 0x84 */
1524   __IO uint32_t PMEM;       /*!< NAND Flash Common memory space timing register,    Address offset: 0x88 */
1525   __IO uint32_t PATT;       /*!< NAND Flash Attribute memory space timing register, Address offset: 0x8C */
1526   uint32_t      RESERVED0;  /*!< Reserved, 0x90                                                            */
1527   __IO uint32_t ECCR;       /*!< NAND Flash ECC result registers,                   Address offset: 0x94 */
1528 } FMC_Bank3_TypeDef;
1529 
1530 /**
1531   * @brief VREFBUF
1532   */
1533 typedef struct
1534 {
1535   __IO uint32_t CSR;         /*!< VREFBUF control and status register,         Address offset: 0x00 */
1536   __IO uint32_t CCR;         /*!< VREFBUF calibration and control register,    Address offset: 0x04 */
1537 } VREFBUF_TypeDef;
1538 
1539 /**
1540   * @brief ADC
1541   */
1542 typedef struct
1543 {
1544   __IO uint32_t ISR;              /*!< ADC Interrupt and Status Register,                 Address offset: 0x00 */
1545   __IO uint32_t IER;              /*!< ADC Interrupt Enable Register,                     Address offset: 0x04 */
1546   __IO uint32_t CR;               /*!< ADC control register,                              Address offset: 0x08 */
1547   __IO uint32_t CFGR1;            /*!< ADC Configuration register,                        Address offset: 0x0C */
1548   __IO uint32_t CFGR2;            /*!< ADC Configuration register 2,                      Address offset: 0x10 */
1549   __IO uint32_t SMPR1;            /*!< ADC sample time register 1,                        Address offset: 0x14 */
1550   __IO uint32_t SMPR2;            /*!< ADC sample time register 2,                        Address offset: 0x18 */ /* Specific to ADC 14Bits*/
1551   __IO uint32_t PCSEL;            /*!< ADC pre-channel selection,                         Address offset: 0x1C */
1552   __IO uint32_t AWD1TR;           /*!< ADC watchdog threshold register,                   Address offset: 0x20 */ /* Specific to ADC 12Bits*/
1553   __IO uint32_t AWD2TR;           /*!< ADC watchdog threshold register,                   Address offset: 0x24 */ /* Specific to ADC 12Bits*/
1554   __IO uint32_t CHSELR;           /*!< ADC channel select register,                       Address offset: 0x28 */ /* Specific to ADC 12Bits*/
1555   __IO uint32_t AWD3TR;           /*!< ADC watchdog threshold register,                   Address offset: 0x2C */ /* Specific to ADC 12Bits*/
1556   __IO uint32_t SQR1;             /*!< ADC regular sequence register 1,                   Address offset: 0x30 */ /* Specific to ADC 14Bits*/
1557   __IO uint32_t SQR2;             /*!< ADC regular sequence register 2,                   Address offset: 0x34 */ /* Specific to ADC 14Bits*/
1558   __IO uint32_t SQR3;             /*!< ADC regular sequence register 3,                   Address offset: 0x38 */ /* Specific to ADC 14Bits*/
1559   __IO uint32_t SQR4;             /*!< ADC regular sequence register 4,                   Address offset: 0x3C */ /* Specific to ADC 14Bits*/
1560   __IO uint32_t DR;               /*!< ADC regular data register,                         Address offset: 0x40 */
1561   __IO uint32_t PW;               /*!< ADC power register,                                Address offset: 0x44 */
1562   uint32_t      RESERVED1;        /*!< Reserved, 0x048                                                         */
1563   __IO uint32_t JSQR;             /*!< ADC injected sequence register,                    Address offset: 0x4C */ /* Specific to ADC 14Bits*/
1564   uint32_t      RESERVED2[4];     /*!< Reserved, 0x050 - 0x05C                                                 */
1565   __IO uint32_t OFR1;             /*!< ADC offset register 1,                             Address offset: 0x60 */ /* Specific to ADC 14Bits*/
1566   __IO uint32_t OFR2;             /*!< ADC offset register 2,                             Address offset: 0x64 */ /* Specific to ADC 14Bits*/
1567   __IO uint32_t OFR3;             /*!< ADC offset register 3,                             Address offset: 0x68 */ /* Specific to ADC 14Bits*/
1568   __IO uint32_t OFR4;             /*!< ADC offset register 4,                             Address offset: 0x6C */ /* Specific to ADC 14Bits*/
1569   __IO uint32_t GCOMP;            /*!< ADC gain compensation register,                    Address offset: 0x70 */ /* Specific to ADC 14Bits*/
1570   uint32_t      RESERVED3[3];     /*!< Reserved, 0x074 - 0x07C                                                 */
1571   __IO uint32_t JDR1;             /*!< ADC injected data register 1,                      Address offset: 0x80 */ /* Specific to ADC 14Bits*/
1572   __IO uint32_t JDR2;             /*!< ADC injected data register 2,                      Address offset: 0x84 */ /* Specific to ADC 14Bits*/
1573   __IO uint32_t JDR3;             /*!< ADC injected data register 3,                      Address offset: 0x88 */ /* Specific to ADC 14Bits*/
1574   __IO uint32_t JDR4;             /*!< ADC injected data register 4,                      Address offset: 0x8C */ /* Specific to ADC 14Bits*/
1575   uint32_t      RESERVED4[4];     /*!< Reserved, 0x090 - 0x09C                                                 */
1576   __IO uint32_t AWD2CR;           /*!< ADC  Analog Watchdog 2 Configuration Register,     Address offset: 0xA0 */
1577   __IO uint32_t AWD3CR;           /*!< ADC  Analog Watchdog 3 Configuration Register,     Address offset: 0xA4 */
1578   __IO uint32_t LTR1;             /*!< ADC watchdog Lower threshold register 1,           Address offset: 0xA8 */ /* Specific to ADC 14Bits*/
1579   __IO uint32_t HTR1;             /*!< ADC watchdog higher threshold register 1,          Address offset: 0xAC */ /* Specific to ADC 14Bits*/
1580   __IO uint32_t LTR2;             /*!< ADC watchdog Lower threshold register 2,           Address offset: 0xB0 */ /* Specific to ADC 14Bits*/
1581   __IO uint32_t HTR2;             /*!< ADC watchdog Higher threshold register 2,          Address offset: 0xB4 */ /* Specific to ADC 14Bits*/
1582   __IO uint32_t LTR3;             /*!< ADC watchdog Lower threshold register 3,           Address offset: 0xB8 */ /* Specific to ADC 14Bits*/
1583   __IO uint32_t HTR3;             /*!< ADC watchdog Higher threshold register 3,          Address offset: 0xBC */ /* Specific to ADC 14Bits*/
1584   __IO uint32_t DIFSEL;           /*!< ADC  Differential Mode Selection Register,         Address offset: 0xC0 */ /* Specific to ADC 14Bits*/
1585   __IO uint32_t CALFACT;          /*!< ADC  Calibration Factors,                          Address offset: 0xC4 */
1586   __IO uint32_t CALFACT2;         /*!< ADC  Linearity Calibration Factors,                Address offset: 0xC8 */ /* Specific to ADC 14Bits*/
1587   uint32_t      RESERVED5;        /*!< Reserved, 0x0CC                                                         */
1588   __IO uint32_t OR;               /*!< ADC  Option Register,                              Address offset: 0xD0 */  /* Specific to ADC 12Bits*/
1589 } ADC_TypeDef;
1590 
1591 typedef struct
1592 {
1593   __IO uint32_t CCR;            /*!< ADC common control register,                        Address offset: 0x308 */
1594 } ADC_Common_TypeDef;
1595 
1596 /**
1597   * @brief CORDIC
1598   */
1599 typedef struct
1600 {
1601   __IO uint32_t CSR;           /*!< CORDIC control and status register,        Address offset: 0x00 */
1602   __IO uint32_t WDATA;         /*!< CORDIC argument register,                  Address offset: 0x04 */
1603   __IO uint32_t RDATA;         /*!< CORDIC result register,                    Address offset: 0x08 */
1604 } CORDIC_TypeDef;
1605 
1606 /**
1607   * @brief IWDG
1608   */
1609 typedef struct
1610 {
1611   __IO uint32_t KR;            /*!< IWDG Key register,          Address offset: 0x00 */
1612   __IO uint32_t PR;            /*!< IWDG Prescaler register,    Address offset: 0x04 */
1613   __IO uint32_t RLR;           /*!< IWDG Reload register,       Address offset: 0x08 */
1614   __IO uint32_t SR;            /*!< IWDG Status register,       Address offset: 0x0C */
1615   __IO uint32_t WINR;          /*!< IWDG Window register,       Address offset: 0x10 */
1616   __IO uint32_t EWCR;          /*!< IWDG Early Wakeup register, Address offset: 0x14 */
1617 } IWDG_TypeDef;
1618 
1619 /**
1620   * @brief SPI
1621   */
1622 typedef struct
1623 {
1624   __IO uint32_t CR1;           /*!< SPI/I2S Control register 1,                      Address offset: 0x00 */
1625   __IO uint32_t CR2;           /*!< SPI Control register 2,                          Address offset: 0x04 */
1626   __IO uint32_t CFG1;          /*!< SPI Configuration register 1,                    Address offset: 0x08 */
1627   __IO uint32_t CFG2;          /*!< SPI Configuration register 2,                    Address offset: 0x0C */
1628   __IO uint32_t IER;           /*!< SPI Interrupt Enable register,                   Address offset: 0x10 */
1629   __IO uint32_t SR;            /*!< SPI Status register,                             Address offset: 0x14 */
1630   __IO uint32_t IFCR;          /*!< SPI Interrupt/Status Flags Clear register,       Address offset: 0x18 */
1631   __IO uint32_t AUTOCR;        /*!< SPI Autonomous Mode Control register,            Address offset: 0x1C */
1632   __IO uint32_t TXDR;          /*!< SPI Transmit data register,                      Address offset: 0x20 */
1633   uint32_t      RESERVED1[3];  /*!< Reserved, 0x24-0x2C                                                   */
1634   __IO uint32_t RXDR;          /*!< SPI/I2S data register,                           Address offset: 0x30 */
1635   uint32_t      RESERVED2[3];  /*!< Reserved, 0x34-0x3C                                                   */
1636   __IO uint32_t CRCPOLY;       /*!< SPI CRC Polynomial register,                     Address offset: 0x40 */
1637   __IO uint32_t TXCRC;         /*!< SPI Transmitter CRC register,                    Address offset: 0x44 */
1638   __IO uint32_t RXCRC;         /*!< SPI Receiver CRC register,                       Address offset: 0x48 */
1639   __IO uint32_t UDRDR;         /*!< SPI Underrun data register,                      Address offset: 0x4C */
1640 } SPI_TypeDef;
1641 
1642 /**
1643   * @brief Touch Sensing Controller (TSC)
1644   */
1645 
1646 typedef struct
1647 {
1648   __IO uint32_t CR;          /*!< TSC control register,                                     Address offset: 0x00 */
1649   __IO uint32_t IER;         /*!< TSC interrupt enable register,                            Address offset: 0x04 */
1650   __IO uint32_t ICR;         /*!< TSC interrupt clear register,                             Address offset: 0x08 */
1651   __IO uint32_t ISR;         /*!< TSC interrupt status register,                            Address offset: 0x0C */
1652   __IO uint32_t IOHCR;       /*!< TSC I/O hysteresis control register,                      Address offset: 0x10 */
1653   uint32_t      RESERVED1;   /*!< Reserved,                                                 Address offset: 0x14 */
1654   __IO uint32_t IOASCR;      /*!< TSC I/O analog switch control register,                   Address offset: 0x18 */
1655   uint32_t      RESERVED2;   /*!< Reserved,                                                 Address offset: 0x1C */
1656   __IO uint32_t IOSCR;       /*!< TSC I/O sampling control register,                        Address offset: 0x20 */
1657   uint32_t      RESERVED3;   /*!< Reserved,                                                 Address offset: 0x24 */
1658   __IO uint32_t IOCCR;       /*!< TSC I/O channel control register,                         Address offset: 0x28 */
1659   uint32_t      RESERVED4;   /*!< Reserved,                                                 Address offset: 0x2C */
1660   __IO uint32_t IOGCSR;      /*!< TSC I/O group control status register,                    Address offset: 0x30 */
1661   __IO uint32_t IOGXCR[8];   /*!< TSC I/O group x counter register,                         Address offset: 0x34-50 */
1662 } TSC_TypeDef;
1663 
1664 /**
1665   * @brief WWDG
1666   */
1667 typedef struct
1668 {
1669   __IO uint32_t CR;          /*!< WWDG Control register,       Address offset: 0x00 */
1670   __IO uint32_t CFR;         /*!< WWDG Configuration register, Address offset: 0x04 */
1671   __IO uint32_t SR;          /*!< WWDG Status register,        Address offset: 0x08 */
1672 } WWDG_TypeDef;
1673 
1674 /*@}*/ /* end of group STM32U5xx_peripherals */
1675 
1676 
1677 /* --------  End of section using anonymous unions and disabling warnings  -------- */
1678 #if   defined (__CC_ARM)
1679   #pragma pop
1680 #elif defined (__ICCARM__)
1681   /* leave anonymous unions enabled */
1682 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
1683   #pragma clang diagnostic pop
1684 #elif defined (__GNUC__)
1685   /* anonymous unions are enabled by default */
1686 #elif defined (__TMS470__)
1687   /* anonymous unions are enabled by default */
1688 #elif defined (__TASKING__)
1689   #pragma warning restore
1690 #elif defined (__CSMC__)
1691   /* anonymous unions are enabled by default */
1692 #else
1693   #warning Not supported compiler type
1694 #endif
1695 
1696 
1697 /* =========================================================================================================================== */
1698 /* ================                          Device Specific Peripheral Address Map                           ================ */
1699 /* =========================================================================================================================== */
1700 
1701 
1702 /** @addtogroup STM32U5xx_Peripheral_peripheralAddr
1703   * @{
1704   */
1705 
1706 /* Internal SRAMs size */
1707 #define SRAM1_SIZE               (0x30000UL)    /*!< SRAM1=192k */
1708 #define SRAM2_SIZE               (0x10000UL)    /*!< SRAM2=64k  */
1709 #define SRAM3_SIZE               (0x80000UL)    /*!< SRAM3=512k */
1710 #define SRAM4_SIZE               (0x04000UL)    /*!< SRAM4=16k  */
1711 
1712 /* External memories base addresses - Not aliased */
1713 #define FMC_BASE                 (0x60000000UL) /*!< FMC base address                                   */
1714 #define OCTOSPI2_BASE            (0x70000000UL) /*!< OCTOSPI2 memories accessible over AHB base address */
1715 #define OCTOSPI1_BASE            (0x90000000UL) /*!< OCTOSPI1 memories accessible over AHB base address */
1716 
1717 #define FMC_BANK1                FMC_BASE
1718 #define FMC_BANK1_1              FMC_BANK1
1719 #define FMC_BANK1_2              (FMC_BANK1 + 0x04000000UL)
1720 #define FMC_BANK1_3              (FMC_BANK1 + 0x08000000UL)
1721 #define FMC_BANK1_4              (FMC_BANK1 + 0x0C000000UL)
1722 #define FMC_BANK3                (FMC_BASE  + 0x20000000UL)
1723 
1724 /* Flash, Peripheral and internal SRAMs base addresses - Non secure */
1725 #define FLASH_BASE_NS            (0x08000000UL) /*!< FLASH (up to 2 MB) non-secure base address         */
1726 #define SRAM1_BASE_NS            (0x20000000UL) /*!< SRAM1 (192 KB) non-secure base address             */
1727 #define SRAM2_BASE_NS            (0x20030000UL) /*!< SRAM2 (64 KB) non-secure base address              */
1728 #define SRAM3_BASE_NS            (0x20040000UL) /*!< SRAM3 (512 KB) non-secure base address             */
1729 #define SRAM4_BASE_NS            (0x28000000UL) /*!< SRAM4 (16 KB) non-secure base address              */
1730 #define PERIPH_BASE_NS           (0x40000000UL) /*!< Peripheral non-secure base address                 */
1731 
1732 /* Peripheral memory map - Non secure */
1733 #define APB1PERIPH_BASE_NS       PERIPH_BASE_NS
1734 #define APB2PERIPH_BASE_NS       (PERIPH_BASE_NS + 0x00010000UL)
1735 #define AHB1PERIPH_BASE_NS       (PERIPH_BASE_NS + 0x00020000UL)
1736 #define AHB2PERIPH_BASE_NS       (PERIPH_BASE_NS + 0x02020000UL)
1737 #define APB3PERIPH_BASE_NS       (PERIPH_BASE_NS + 0x06000000UL)
1738 #define AHB3PERIPH_BASE_NS       (PERIPH_BASE_NS + 0x06020000UL)
1739 
1740 /*!< APB1 Non secure peripherals */
1741 #define TIM2_BASE_NS             (APB1PERIPH_BASE_NS + 0x0000UL)
1742 #define TIM3_BASE_NS             (APB1PERIPH_BASE_NS + 0x0400UL)
1743 #define TIM4_BASE_NS             (APB1PERIPH_BASE_NS + 0x0800UL)
1744 #define TIM5_BASE_NS             (APB1PERIPH_BASE_NS + 0x0C00UL)
1745 #define TIM6_BASE_NS             (APB1PERIPH_BASE_NS + 0x1000UL)
1746 #define TIM7_BASE_NS             (APB1PERIPH_BASE_NS + 0x1400UL)
1747 #define WWDG_BASE_NS             (APB1PERIPH_BASE_NS + 0x2C00UL)
1748 #define IWDG_BASE_NS             (APB1PERIPH_BASE_NS + 0x3000UL)
1749 #define SPI2_BASE_NS             (APB1PERIPH_BASE_NS + 0x3800UL)
1750 #define USART2_BASE_NS           (APB1PERIPH_BASE_NS + 0x4400UL)
1751 #define USART3_BASE_NS           (APB1PERIPH_BASE_NS + 0x4800UL)
1752 #define UART4_BASE_NS            (APB1PERIPH_BASE_NS + 0x4C00UL)
1753 #define UART5_BASE_NS            (APB1PERIPH_BASE_NS + 0x5000UL)
1754 #define I2C1_BASE_NS             (APB1PERIPH_BASE_NS + 0x5400UL)
1755 #define I2C2_BASE_NS             (APB1PERIPH_BASE_NS + 0x5800UL)
1756 #define CRS_BASE_NS              (APB1PERIPH_BASE_NS + 0x6000UL)
1757 #define I2C4_BASE_NS             (APB1PERIPH_BASE_NS + 0x8400UL)
1758 #define LPTIM2_BASE_NS           (APB1PERIPH_BASE_NS + 0x9400UL)
1759 #define FDCAN1_BASE_NS           (APB1PERIPH_BASE_NS + 0xA400UL)
1760 #define FDCAN_CONFIG_BASE_NS     (APB1PERIPH_BASE_NS + 0xA500UL)
1761 #define SRAMCAN_BASE_NS          (APB1PERIPH_BASE_NS + 0xAC00UL)
1762 #define UCPD1_BASE_NS            (APB1PERIPH_BASE_NS + 0xDC00UL)
1763 
1764 /*!< APB2 Non secure peripherals */
1765 #define TIM1_BASE_NS             (APB2PERIPH_BASE_NS + 0x2C00UL)
1766 #define SPI1_BASE_NS             (APB2PERIPH_BASE_NS + 0x3000UL)
1767 #define TIM8_BASE_NS             (APB2PERIPH_BASE_NS + 0x3400UL)
1768 #define USART1_BASE_NS           (APB2PERIPH_BASE_NS + 0x3800UL)
1769 #define TIM15_BASE_NS            (APB2PERIPH_BASE_NS + 0x4000UL)
1770 #define TIM16_BASE_NS            (APB2PERIPH_BASE_NS + 0x4400UL)
1771 #define TIM17_BASE_NS            (APB2PERIPH_BASE_NS + 0x4800UL)
1772 #define SAI1_BASE_NS             (APB2PERIPH_BASE_NS + 0x5400UL)
1773 #define SAI1_Block_A_BASE_NS     (SAI1_BASE_NS + 0x004UL)
1774 #define SAI1_Block_B_BASE_NS     (SAI1_BASE_NS + 0x024UL)
1775 #define SAI2_BASE_NS             (APB2PERIPH_BASE_NS + 0x5800UL)
1776 #define SAI2_Block_A_BASE_NS     (SAI2_BASE_NS + 0x004UL)
1777 #define SAI2_Block_B_BASE_NS     (SAI2_BASE_NS + 0x024UL)
1778 
1779 /*!< APB3 Non secure peripherals */
1780 #define SYSCFG_BASE_NS           (APB3PERIPH_BASE_NS + 0x0400UL)
1781 #define SPI3_BASE_NS             (APB3PERIPH_BASE_NS + 0x2000UL)
1782 #define LPUART1_BASE_NS          (APB3PERIPH_BASE_NS + 0x2400UL)
1783 #define I2C3_BASE_NS             (APB3PERIPH_BASE_NS + 0x2800UL)
1784 #define LPTIM1_BASE_NS           (APB3PERIPH_BASE_NS + 0x4400UL)
1785 #define LPTIM3_BASE_NS           (APB3PERIPH_BASE_NS + 0x4800UL)
1786 #define LPTIM4_BASE_NS           (APB3PERIPH_BASE_NS + 0x4C00UL)
1787 #define OPAMP_BASE_NS            (APB3PERIPH_BASE_NS + 0x5000UL)
1788 #define OPAMP1_BASE_NS           (APB3PERIPH_BASE_NS + 0x5000UL)
1789 #define OPAMP2_BASE_NS           (APB3PERIPH_BASE_NS + 0x5010UL)
1790 #define COMP12_BASE_NS           (APB3PERIPH_BASE_NS + 0x5400UL)
1791 #define COMP1_BASE_NS            (COMP12_BASE_NS)
1792 #define COMP2_BASE_NS            (COMP12_BASE_NS + 0x04UL)
1793 #define VREFBUF_BASE_NS          (APB3PERIPH_BASE_NS + 0x7400UL)
1794 #define RTC_BASE_NS              (APB3PERIPH_BASE_NS + 0x7800UL)
1795 #define TAMP_BASE_NS             (APB3PERIPH_BASE_NS + 0x7C00UL)
1796 
1797 /*!< AHB1 Non secure peripherals */
1798 #define GPDMA1_BASE_NS           (AHB1PERIPH_BASE_NS)
1799 #define GPDMA1_Channel0_BASE_NS  (GPDMA1_BASE_NS + 0x0050UL)
1800 #define GPDMA1_Channel1_BASE_NS  (GPDMA1_BASE_NS + 0x00D0UL)
1801 #define GPDMA1_Channel2_BASE_NS  (GPDMA1_BASE_NS + 0x0150UL)
1802 #define GPDMA1_Channel3_BASE_NS  (GPDMA1_BASE_NS + 0x01D0UL)
1803 #define GPDMA1_Channel4_BASE_NS  (GPDMA1_BASE_NS + 0x0250UL)
1804 #define GPDMA1_Channel5_BASE_NS  (GPDMA1_BASE_NS + 0x02D0UL)
1805 #define GPDMA1_Channel6_BASE_NS  (GPDMA1_BASE_NS + 0x0350UL)
1806 #define GPDMA1_Channel7_BASE_NS  (GPDMA1_BASE_NS + 0x03D0UL)
1807 #define GPDMA1_Channel8_BASE_NS  (GPDMA1_BASE_NS + 0x0450UL)
1808 #define GPDMA1_Channel9_BASE_NS  (GPDMA1_BASE_NS + 0x04D0UL)
1809 #define GPDMA1_Channel10_BASE_NS (GPDMA1_BASE_NS + 0x0550UL)
1810 #define GPDMA1_Channel11_BASE_NS (GPDMA1_BASE_NS + 0x05D0UL)
1811 #define GPDMA1_Channel12_BASE_NS (GPDMA1_BASE_NS + 0x0650UL)
1812 #define GPDMA1_Channel13_BASE_NS (GPDMA1_BASE_NS + 0x06D0UL)
1813 #define GPDMA1_Channel14_BASE_NS (GPDMA1_BASE_NS + 0x0750UL)
1814 #define GPDMA1_Channel15_BASE_NS (GPDMA1_BASE_NS + 0x07D0UL)
1815 #define CORDIC_BASE_NS           (AHB1PERIPH_BASE_NS + 0x01000UL)
1816 #define FMAC_BASE_NS             (AHB1PERIPH_BASE_NS + 0x01400UL)
1817 #define FLASH_R_BASE_NS          (AHB1PERIPH_BASE_NS + 0x02000UL)
1818 #define CRC_BASE_NS              (AHB1PERIPH_BASE_NS + 0x03000UL)
1819 #define TSC_BASE_NS              (AHB1PERIPH_BASE_NS + 0x04000UL)
1820 #define MDF1_BASE_NS             (AHB1PERIPH_BASE_NS + 0x05000UL)
1821 #define MDF1_Filter0_BASE_NS     (MDF1_BASE_NS + 0x80UL)
1822 #define MDF1_Filter1_BASE_NS     (MDF1_BASE_NS + 0x100UL)
1823 #define MDF1_Filter2_BASE_NS     (MDF1_BASE_NS + 0x180UL)
1824 #define MDF1_Filter3_BASE_NS     (MDF1_BASE_NS + 0x200UL)
1825 #define MDF1_Filter4_BASE_NS     (MDF1_BASE_NS + 0x280UL)
1826 #define MDF1_Filter5_BASE_NS     (MDF1_BASE_NS + 0x300UL)
1827 #define RAMCFG_BASE_NS           (AHB1PERIPH_BASE_NS + 0x06000UL)
1828 #define RAMCFG_SRAM1_BASE_NS     (RAMCFG_BASE_NS)
1829 #define RAMCFG_SRAM2_BASE_NS     (RAMCFG_BASE_NS + 0x0040UL)
1830 #define RAMCFG_SRAM3_BASE_NS     (RAMCFG_BASE_NS + 0x0080UL)
1831 #define RAMCFG_SRAM4_BASE_NS     (RAMCFG_BASE_NS + 0x00C0UL)
1832 #define RAMCFG_BKPRAM_BASE_NS    (RAMCFG_BASE_NS + 0x0100UL)
1833 
1834 #define DMA2D_BASE_NS            (AHB1PERIPH_BASE_NS + 0x0B000UL)
1835 #define ICACHE_BASE_NS           (AHB1PERIPH_BASE_NS + 0x10400UL)
1836 #define DCACHE1_BASE_NS          (AHB1PERIPH_BASE_NS + 0x11400UL)
1837 #define GTZC_TZSC1_BASE_NS       (AHB1PERIPH_BASE_NS + 0x12400UL)
1838 #define GTZC_TZIC1_BASE_NS       (AHB1PERIPH_BASE_NS + 0x12800UL)
1839 #define GTZC_MPCBB1_BASE_NS      (AHB1PERIPH_BASE_NS + 0x12C00UL)
1840 #define GTZC_MPCBB2_BASE_NS      (AHB1PERIPH_BASE_NS + 0x13000UL)
1841 #define GTZC_MPCBB3_BASE_NS      (AHB1PERIPH_BASE_NS + 0x13400UL)
1842 #define BKPSRAM_BASE_NS          (AHB1PERIPH_BASE_NS + 0x16400UL)
1843 
1844 /*!< AHB2 Non secure peripherals */
1845 #define GPIOA_BASE_NS            (AHB2PERIPH_BASE_NS + 0x00000UL)
1846 #define GPIOB_BASE_NS            (AHB2PERIPH_BASE_NS + 0x00400UL)
1847 #define GPIOC_BASE_NS            (AHB2PERIPH_BASE_NS + 0x00800UL)
1848 #define GPIOD_BASE_NS            (AHB2PERIPH_BASE_NS + 0x00C00UL)
1849 #define GPIOE_BASE_NS            (AHB2PERIPH_BASE_NS + 0x01000UL)
1850 #define GPIOF_BASE_NS            (AHB2PERIPH_BASE_NS + 0x01400UL)
1851 #define GPIOG_BASE_NS            (AHB2PERIPH_BASE_NS + 0x01800UL)
1852 #define GPIOH_BASE_NS            (AHB2PERIPH_BASE_NS + 0x01C00UL)
1853 #define GPIOI_BASE_NS            (AHB2PERIPH_BASE_NS + 0x02000UL)
1854 #define ADC1_BASE_NS             (AHB2PERIPH_BASE_NS + 0x08000UL)
1855 #define ADC12_COMMON_BASE_NS     (AHB2PERIPH_BASE_NS + 0x08308UL)
1856 #define DCMI_BASE_NS             (AHB2PERIPH_BASE_NS + 0x0C000UL)
1857 #define PSSI_BASE_NS             (AHB2PERIPH_BASE_NS + 0x0C400UL)
1858 #define OTG_FS_BASE_NS           (AHB2PERIPH_BASE_NS + 0x20000UL)
1859 #define AES_BASE_NS              (AHB2PERIPH_BASE_NS + 0xA0000UL)
1860 #define HASH_BASE_NS             (AHB2PERIPH_BASE_NS + 0xA0400UL)
1861 #define HASH_DIGEST_BASE_NS      (AHB2PERIPH_BASE_NS + 0xA0710UL)
1862 #define RNG_BASE_NS              (AHB2PERIPH_BASE_NS + 0xA0800UL)
1863 #define SAES_BASE_NS             (AHB2PERIPH_BASE_NS + 0xA0C00UL)
1864 #define PKA_BASE_NS              (AHB2PERIPH_BASE_NS + 0xA2000UL)
1865 #define PKA_RAM_BASE_NS          (AHB2PERIPH_BASE_NS + 0xA2400UL)
1866 #define OCTOSPIM_R_BASE_NS       (AHB2PERIPH_BASE_NS + 0xA4000UL) /*!< OCTOSPIO Manager control registers base address */
1867 #define OTFDEC1_BASE_NS          (AHB2PERIPH_BASE_NS + 0xA5000UL)
1868 #define OTFDEC1_REGION1_BASE_NS  (OTFDEC1_BASE_NS + 0x20UL)
1869 #define OTFDEC1_REGION2_BASE_NS  (OTFDEC1_BASE_NS + 0x50UL)
1870 #define OTFDEC1_REGION3_BASE_NS  (OTFDEC1_BASE_NS + 0x80UL)
1871 #define OTFDEC1_REGION4_BASE_NS  (OTFDEC1_BASE_NS + 0xB0UL)
1872 #define OTFDEC2_BASE_NS          (AHB2PERIPH_BASE_NS + 0xA5400UL)
1873 #define OTFDEC2_REGION1_BASE_NS  (OTFDEC2_BASE_NS + 0x20UL)
1874 #define OTFDEC2_REGION2_BASE_NS  (OTFDEC2_BASE_NS + 0x50UL)
1875 #define OTFDEC2_REGION3_BASE_NS  (OTFDEC2_BASE_NS + 0x80UL)
1876 #define OTFDEC2_REGION4_BASE_NS  (OTFDEC2_BASE_NS + 0xB0UL)
1877 #define SDMMC1_BASE_NS           (AHB2PERIPH_BASE_NS + 0xA8000UL)
1878 #define SDMMC2_BASE_NS           (AHB2PERIPH_BASE_NS + 0xA8C00UL)
1879 #define DLYB_SDMMC1_BASE_NS      (AHB2PERIPH_BASE_NS + 0xA8400UL)
1880 #define DLYB_SDMMC2_BASE_NS      (AHB2PERIPH_BASE_NS + 0xA8800UL)
1881 #define DLYB_OCTOSPI1_BASE_NS    (AHB2PERIPH_BASE_NS + 0xAF000UL)
1882 #define DLYB_OCTOSPI2_BASE_NS    (AHB2PERIPH_BASE_NS + 0xAF400UL)
1883 #define FMC_R_BASE_NS            (AHB2PERIPH_BASE_NS + 0xB0400UL) /*!< FMC control registers base address              */
1884 /*!< FMC Banks Non secure registers base address */
1885 #define FMC_Bank1_R_BASE_NS      (FMC_R_BASE_NS + 0x0000UL)
1886 #define FMC_Bank1E_R_BASE_NS     (FMC_R_BASE_NS + 0x0104UL)
1887 #define FMC_Bank3_R_BASE_NS      (FMC_R_BASE_NS + 0x0080UL)
1888 #define OCTOSPI1_R_BASE_NS       (AHB2PERIPH_BASE_NS + 0xB1400UL) /*!< OCTOSPI1 control registers base address         */
1889 #define OCTOSPI2_R_BASE_NS       (AHB2PERIPH_BASE_NS + 0xB2400UL) /*!< OCTOSPI2 control registers base address         */
1890 
1891 /*!< AHB3 Non secure peripherals */
1892 #define LPGPIO1_BASE_NS          (AHB3PERIPH_BASE_NS)
1893 #define PWR_BASE_NS              (AHB3PERIPH_BASE_NS + 0x0800UL)
1894 #define RCC_BASE_NS              (AHB3PERIPH_BASE_NS + 0x0C00UL)
1895 #define ADC4_BASE_NS             (AHB3PERIPH_BASE_NS + 0x1000UL)
1896 #define ADC4_COMMON_BASE_NS      (AHB3PERIPH_BASE_NS + 0x1308UL)
1897 #define DAC1_BASE_NS             (AHB3PERIPH_BASE_NS + 0x1800UL)
1898 #define EXTI_BASE_NS             (AHB3PERIPH_BASE_NS + 0x2000UL)
1899 #define GTZC_TZSC2_BASE_NS       (AHB3PERIPH_BASE_NS + 0x3000UL)
1900 #define GTZC_TZIC2_BASE_NS       (AHB3PERIPH_BASE_NS + 0x3400UL)
1901 #define GTZC_MPCBB4_BASE_NS      (AHB3PERIPH_BASE_NS + 0x3800UL)
1902 #define ADF1_BASE_NS             (AHB3PERIPH_BASE_NS + 0x4000UL)
1903 #define ADF1_Filter0_BASE_NS     (ADF1_BASE_NS + 0x80UL)
1904 #define LPDMA1_BASE_NS           (AHB3PERIPH_BASE_NS + 0x5000UL)
1905 #define LPDMA1_Channel0_BASE_NS  (LPDMA1_BASE_NS + 0x0050UL)
1906 #define LPDMA1_Channel1_BASE_NS  (LPDMA1_BASE_NS + 0x00D0UL)
1907 #define LPDMA1_Channel2_BASE_NS  (LPDMA1_BASE_NS + 0x0150UL)
1908 #define LPDMA1_Channel3_BASE_NS  (LPDMA1_BASE_NS + 0x01D0UL)
1909 
1910 /* Flash, Peripheral and internal SRAMs base addresses - Secure */
1911 #define FLASH_BASE_S            (0x0C000000UL) /*!< FLASH (up to 2 MB) secure base address */
1912 #define SRAM1_BASE_S            (0x30000000UL) /*!< SRAM1 (192 KB) secure base address     */
1913 #define SRAM2_BASE_S            (0x30030000UL) /*!< SRAM2 (64 KB) secure base address      */
1914 #define SRAM3_BASE_S            (0x30040000UL) /*!< SRAM3 (512 KB) secure base address     */
1915 #define SRAM4_BASE_S            (0x38000000UL) /*!< SRAM4 (16 KB) secure base address      */
1916 #define PERIPH_BASE_S           (0x50000000UL) /*!< Peripheral secure base address         */
1917 
1918 /* Peripheral memory map - Secure */
1919 #define APB1PERIPH_BASE_S       PERIPH_BASE_S
1920 #define APB2PERIPH_BASE_S       (PERIPH_BASE_S + 0x00010000UL)
1921 #define AHB1PERIPH_BASE_S       (PERIPH_BASE_S + 0x00020000UL)
1922 #define AHB2PERIPH_BASE_S       (PERIPH_BASE_S + 0x02020000UL)
1923 #define APB3PERIPH_BASE_S       (PERIPH_BASE_S + 0x06000000UL)
1924 #define AHB3PERIPH_BASE_S       (PERIPH_BASE_S + 0x06020000UL)
1925 
1926 /*!< APB1 Secure peripherals */
1927 #define TIM2_BASE_S             (APB1PERIPH_BASE_S + 0x0000UL)
1928 #define TIM3_BASE_S             (APB1PERIPH_BASE_S + 0x0400UL)
1929 #define TIM4_BASE_S             (APB1PERIPH_BASE_S + 0x0800UL)
1930 #define TIM5_BASE_S             (APB1PERIPH_BASE_S + 0x0C00UL)
1931 #define TIM6_BASE_S             (APB1PERIPH_BASE_S + 0x1000UL)
1932 #define TIM7_BASE_S             (APB1PERIPH_BASE_S + 0x1400UL)
1933 #define WWDG_BASE_S             (APB1PERIPH_BASE_S + 0x2C00UL)
1934 #define IWDG_BASE_S             (APB1PERIPH_BASE_S + 0x3000UL)
1935 #define SPI2_BASE_S             (APB1PERIPH_BASE_S + 0x3800UL)
1936 #define USART2_BASE_S           (APB1PERIPH_BASE_S + 0x4400UL)
1937 #define USART3_BASE_S           (APB1PERIPH_BASE_S + 0x4800UL)
1938 #define UART4_BASE_S            (APB1PERIPH_BASE_S + 0x4C00UL)
1939 #define UART5_BASE_S            (APB1PERIPH_BASE_S + 0x5000UL)
1940 #define I2C1_BASE_S             (APB1PERIPH_BASE_S + 0x5400UL)
1941 #define I2C2_BASE_S             (APB1PERIPH_BASE_S + 0x5800UL)
1942 #define I2C4_BASE_S             (APB1PERIPH_BASE_S + 0x8400UL)
1943 #define CRS_BASE_S              (APB1PERIPH_BASE_S + 0x6000UL)
1944 #define LPTIM2_BASE_S           (APB1PERIPH_BASE_S + 0x9400UL)
1945 #define FDCAN1_BASE_S           (APB1PERIPH_BASE_S + 0xA400UL)
1946 #define FDCAN_CONFIG_BASE_S     (APB1PERIPH_BASE_S + 0xA500UL)
1947 #define SRAMCAN_BASE_S          (APB1PERIPH_BASE_S + 0xAC00UL)
1948 #define UCPD1_BASE_S            (APB1PERIPH_BASE_S + 0xDC00UL)
1949 
1950 /*!< APB2 Secure peripherals */
1951 #define TIM1_BASE_S             (APB2PERIPH_BASE_S + 0x2C00UL)
1952 #define SPI1_BASE_S             (APB2PERIPH_BASE_S + 0x3000UL)
1953 #define TIM8_BASE_S             (APB2PERIPH_BASE_S + 0x3400UL)
1954 #define USART1_BASE_S           (APB2PERIPH_BASE_S + 0x3800UL)
1955 #define TIM15_BASE_S            (APB2PERIPH_BASE_S + 0x4000UL)
1956 #define TIM16_BASE_S            (APB2PERIPH_BASE_S + 0x4400UL)
1957 #define TIM17_BASE_S            (APB2PERIPH_BASE_S + 0x4800UL)
1958 #define SAI1_BASE_S             (APB2PERIPH_BASE_S + 0x5400UL)
1959 #define SAI1_Block_A_BASE_S     (SAI1_BASE_S + 0x004UL)
1960 #define SAI1_Block_B_BASE_S     (SAI1_BASE_S + 0x024UL)
1961 #define SAI2_BASE_S             (APB2PERIPH_BASE_S + 0x5800UL)
1962 #define SAI2_Block_A_BASE_S     (SAI2_BASE_S + 0x004UL)
1963 #define SAI2_Block_B_BASE_S     (SAI2_BASE_S + 0x024UL)
1964 
1965 /*!< APB3 Secure peripherals */
1966 #define SYSCFG_BASE_S           (APB3PERIPH_BASE_S + 0x0400UL)
1967 #define SPI3_BASE_S             (APB3PERIPH_BASE_S + 0x2000UL)
1968 #define LPUART1_BASE_S          (APB3PERIPH_BASE_S + 0x2400UL)
1969 #define I2C3_BASE_S             (APB3PERIPH_BASE_S + 0x2800UL)
1970 #define LPTIM1_BASE_S           (APB3PERIPH_BASE_S + 0x4300UL)
1971 #define LPTIM3_BASE_S           (APB3PERIPH_BASE_S + 0x4800UL)
1972 #define LPTIM4_BASE_S           (APB3PERIPH_BASE_S + 0x4C00UL)
1973 #define OPAMP_BASE_S            (APB3PERIPH_BASE_S + 0x5000UL)
1974 #define OPAMP1_BASE_S           (APB3PERIPH_BASE_S + 0x5000UL)
1975 #define OPAMP2_BASE_S           (APB3PERIPH_BASE_S + 0x5010UL)
1976 #define COMP12_BASE_S           (APB3PERIPH_BASE_S + 0x5400UL)
1977 #define COMP1_BASE_S            (COMP12_BASE_S)
1978 #define COMP2_BASE_S            (COMP12_BASE_S + 0x04UL)
1979 #define VREFBUF_BASE_S          (APB3PERIPH_BASE_S + 0x7400UL)
1980 #define RTC_BASE_S              (APB3PERIPH_BASE_S + 0x7800UL)
1981 #define TAMP_BASE_S             (APB3PERIPH_BASE_S + 0x7C00UL)
1982 
1983 /*!< AHB1 Secure peripherals */
1984 #define GPDMA1_BASE_S           (AHB1PERIPH_BASE_S)
1985 #define GPDMA1_Channel0_BASE_S  (GPDMA1_BASE_S + 0x0050UL)
1986 #define GPDMA1_Channel1_BASE_S  (GPDMA1_BASE_S + 0x00D0UL)
1987 #define GPDMA1_Channel2_BASE_S  (GPDMA1_BASE_S + 0x0150UL)
1988 #define GPDMA1_Channel3_BASE_S  (GPDMA1_BASE_S + 0x01D0UL)
1989 #define GPDMA1_Channel4_BASE_S  (GPDMA1_BASE_S + 0x0250UL)
1990 #define GPDMA1_Channel5_BASE_S  (GPDMA1_BASE_S + 0x02D0UL)
1991 #define GPDMA1_Channel6_BASE_S  (GPDMA1_BASE_S + 0x0350UL)
1992 #define GPDMA1_Channel7_BASE_S  (GPDMA1_BASE_S + 0x03D0UL)
1993 #define GPDMA1_Channel8_BASE_S  (GPDMA1_BASE_S + 0x0450UL)
1994 #define GPDMA1_Channel9_BASE_S  (GPDMA1_BASE_S + 0x04D0UL)
1995 #define GPDMA1_Channel10_BASE_S (GPDMA1_BASE_S + 0x0550UL)
1996 #define GPDMA1_Channel11_BASE_S (GPDMA1_BASE_S + 0x05D0UL)
1997 #define GPDMA1_Channel12_BASE_S (GPDMA1_BASE_S + 0x0650UL)
1998 #define GPDMA1_Channel13_BASE_S (GPDMA1_BASE_S + 0x06D0UL)
1999 #define GPDMA1_Channel14_BASE_S (GPDMA1_BASE_S + 0x0750UL)
2000 #define GPDMA1_Channel15_BASE_S (GPDMA1_BASE_S + 0x07D0UL)
2001 #define CORDIC_BASE_S           (AHB1PERIPH_BASE_S + 0x01000UL)
2002 #define FMAC_BASE_S             (AHB1PERIPH_BASE_S + 0x01400UL)
2003 #define FLASH_R_BASE_S          (AHB1PERIPH_BASE_S + 0x02000UL)
2004 #define CRC_BASE_S              (AHB1PERIPH_BASE_S + 0x03000UL)
2005 #define TSC_BASE_S              (AHB1PERIPH_BASE_S + 0x04000UL)
2006 #define MDF1_BASE_S             (AHB1PERIPH_BASE_S + 0x05000UL)
2007 #define MDF1_Filter0_BASE_S     (MDF1_BASE_S + 0x80UL)
2008 #define MDF1_Filter1_BASE_S     (MDF1_BASE_S + 0x100UL)
2009 #define MDF1_Filter2_BASE_S     (MDF1_BASE_S + 0x180UL)
2010 #define MDF1_Filter3_BASE_S     (MDF1_BASE_S + 0x200UL)
2011 #define MDF1_Filter4_BASE_S     (MDF1_BASE_S + 0x280UL)
2012 #define MDF1_Filter5_BASE_S     (MDF1_BASE_S + 0x300UL)
2013 #define RAMCFG_BASE_S           (AHB1PERIPH_BASE_S + 0x06000UL)
2014 #define RAMCFG_SRAM1_BASE_S     (RAMCFG_BASE_S)
2015 #define RAMCFG_SRAM2_BASE_S     (RAMCFG_BASE_S + 0x0040UL)
2016 #define RAMCFG_SRAM3_BASE_S     (RAMCFG_BASE_S + 0x0080UL)
2017 #define RAMCFG_SRAM4_BASE_S     (RAMCFG_BASE_S + 0x00C0UL)
2018 #define RAMCFG_BKPRAM_BASE_S    (RAMCFG_BASE_S + 0x0100UL)
2019 #define DMA2D_BASE_S            (AHB1PERIPH_BASE_S + 0x0B000UL)
2020 #define ICACHE_BASE_S           (AHB1PERIPH_BASE_S + 0x10400UL)
2021 #define DCACHE1_BASE_S          (AHB1PERIPH_BASE_S + 0x11400UL)
2022 #define GTZC_TZSC1_BASE_S       (AHB1PERIPH_BASE_S + 0x12400UL)
2023 #define GTZC_TZIC1_BASE_S       (AHB1PERIPH_BASE_S + 0x12800UL)
2024 #define GTZC_MPCBB1_BASE_S      (AHB1PERIPH_BASE_S + 0x12C00UL)
2025 #define GTZC_MPCBB2_BASE_S      (AHB1PERIPH_BASE_S + 0x13000UL)
2026 #define GTZC_MPCBB3_BASE_S      (AHB1PERIPH_BASE_S + 0x13400UL)
2027 #define BKPSRAM_BASE_S          (AHB1PERIPH_BASE_S + 0x16400UL)
2028 
2029 /*!< AHB2 Secure peripherals */
2030 #define GPIOA_BASE_S            (AHB2PERIPH_BASE_S + 0x00000UL)
2031 #define GPIOB_BASE_S            (AHB2PERIPH_BASE_S + 0x00400UL)
2032 #define GPIOC_BASE_S            (AHB2PERIPH_BASE_S + 0x00800UL)
2033 #define GPIOD_BASE_S            (AHB2PERIPH_BASE_S + 0x00C00UL)
2034 #define GPIOE_BASE_S            (AHB2PERIPH_BASE_S + 0x01000UL)
2035 #define GPIOF_BASE_S            (AHB2PERIPH_BASE_S + 0x01400UL)
2036 #define GPIOG_BASE_S            (AHB2PERIPH_BASE_S + 0x01800UL)
2037 #define GPIOH_BASE_S            (AHB2PERIPH_BASE_S + 0x01C00UL)
2038 #define GPIOI_BASE_S            (AHB2PERIPH_BASE_S + 0x02000UL)
2039 #define ADC1_BASE_S             (AHB2PERIPH_BASE_S + 0x08000UL)
2040 #define ADC12_COMMON_BASE_S     (AHB2PERIPH_BASE_S + 0x08308UL)
2041 #define DCMI_BASE_S             (AHB2PERIPH_BASE_S + 0x0C000UL)
2042 #define PSSI_BASE_S             (AHB2PERIPH_BASE_S + 0x0C400UL)
2043 #define OTG_FS_BASE_S           (AHB2PERIPH_BASE_S + 0x20000UL)
2044 #define AES_BASE_S              (AHB2PERIPH_BASE_S + 0xA0000UL)
2045 #define HASH_BASE_S             (AHB2PERIPH_BASE_S + 0xA0400UL)
2046 #define HASH_DIGEST_BASE_S      (AHB2PERIPH_BASE_S + 0xA0710UL)
2047 #define RNG_BASE_S              (AHB2PERIPH_BASE_S + 0xA0800UL)
2048 #define SAES_BASE_S             (AHB2PERIPH_BASE_S + 0xA0C00UL)
2049 #define PKA_BASE_S              (AHB2PERIPH_BASE_S + 0xA2000UL)
2050 #define PKA_RAM_BASE_S          (AHB2PERIPH_BASE_S + 0xA2400UL)
2051 #define OCTOSPIM_R_BASE_S       (AHB2PERIPH_BASE_S + 0xA4000UL) /*!< OCTOSPIM control registers base address */
2052 #define OTFDEC1_BASE_S          (AHB2PERIPH_BASE_S + 0xA5000UL)
2053 #define OTFDEC1_REGION1_BASE_S  (OTFDEC1_BASE_S + 0x20UL)
2054 #define OTFDEC1_REGION2_BASE_S  (OTFDEC1_BASE_S + 0x50UL)
2055 #define OTFDEC1_REGION3_BASE_S  (OTFDEC1_BASE_S + 0x80UL)
2056 #define OTFDEC1_REGION4_BASE_S  (OTFDEC1_BASE_S + 0xB0UL)
2057 #define OTFDEC2_BASE_S          (AHB2PERIPH_BASE_S + 0xA5400UL)
2058 #define OTFDEC2_REGION1_BASE_S  (OTFDEC2_BASE_S + 0x20UL)
2059 #define OTFDEC2_REGION2_BASE_S  (OTFDEC2_BASE_S + 0x50UL)
2060 #define OTFDEC2_REGION3_BASE_S  (OTFDEC2_BASE_S + 0x80UL)
2061 #define OTFDEC2_REGION4_BASE_S  (OTFDEC2_BASE_S + 0xB0UL)
2062 #define SDMMC1_BASE_S           (AHB2PERIPH_BASE_S + 0xA8000UL)
2063 #define SDMMC2_BASE_S           (AHB2PERIPH_BASE_S + 0xA8C00UL)
2064 #define DLYB_SDMMC1_BASE_S      (AHB2PERIPH_BASE_S + 0xA8400UL)
2065 #define DLYB_SDMMC2_BASE_S      (AHB2PERIPH_BASE_S + 0xA8800UL)
2066 #define DLYB_OCTOSPI1_BASE_S    (AHB2PERIPH_BASE_S + 0xAF000UL)
2067 #define DLYB_OCTOSPI2_BASE_S    (AHB2PERIPH_BASE_S + 0xAF400UL)
2068 #define FMC_R_BASE_S            (AHB2PERIPH_BASE_S + 0xB0400UL) /*!< FMC  control registers base address     */
2069 #define FMC_Bank1_R_BASE_S      (FMC_R_BASE_S + 0x0000UL)
2070 #define FMC_Bank1E_R_BASE_S     (FMC_R_BASE_S + 0x0104UL)
2071 #define FMC_Bank3_R_BASE_S      (FMC_R_BASE_S + 0x0080UL)
2072 #define OCTOSPI1_R_BASE_S       (AHB2PERIPH_BASE_S + 0xB1400UL) /*!< OCTOSPI1 control registers base address */
2073 #define OCTOSPI2_R_BASE_S       (AHB2PERIPH_BASE_S + 0xB2400UL) /*!< OCTOSPI2 control registers base address */
2074 
2075 /*!< AHB3 Secure peripherals */
2076 #define LPGPIO1_BASE_S          (AHB3PERIPH_BASE_S)
2077 #define PWR_BASE_S              (AHB3PERIPH_BASE_S + 0x0800UL)
2078 #define RCC_BASE_S              (AHB3PERIPH_BASE_S + 0x0C00UL)
2079 #define ADC4_BASE_S             (AHB3PERIPH_BASE_S + 0x1000UL)
2080 #define ADC4_COMMON_BASE_S      (AHB3PERIPH_BASE_S + 0x1308UL)
2081 #define DAC1_BASE_S             (AHB3PERIPH_BASE_S + 0x1800UL)
2082 #define EXTI_BASE_S             (AHB3PERIPH_BASE_S + 0x2000UL)
2083 #define GTZC_TZSC2_BASE_S       (AHB3PERIPH_BASE_S + 0x3000UL)
2084 #define GTZC_TZIC2_BASE_S       (AHB3PERIPH_BASE_S + 0x3400UL)
2085 #define GTZC_MPCBB4_BASE_S      (AHB3PERIPH_BASE_S + 0x3800UL)
2086 #define ADF1_BASE_S             (AHB3PERIPH_BASE_S + 0x4000UL)
2087 #define ADF1_Filter0_BASE_S     (ADF1_BASE_S + 0x80UL)
2088 #define LPDMA1_BASE_S           (AHB3PERIPH_BASE_S + 0x5000UL)
2089 #define LPDMA1_Channel0_BASE_S  (LPDMA1_BASE_S + 0x0050UL)
2090 #define LPDMA1_Channel1_BASE_S  (LPDMA1_BASE_S + 0x00D0UL)
2091 #define LPDMA1_Channel2_BASE_S  (LPDMA1_BASE_S + 0x0150UL)
2092 #define LPDMA1_Channel3_BASE_S  (LPDMA1_BASE_S + 0x01D0UL)
2093 
2094 
2095 /* Debug MCU registers base address */
2096 #define DBGMCU_BASE             (0xE0044000UL)
2097 #define PACKAGE_BASE            (0x0BFA0500UL) /*!< Package data register base address     */
2098 #define UID_BASE                (0x0BFA0700UL) /*!< Unique device ID register base address */
2099 #define FLASHSIZE_BASE          (0x0BFA07A0UL) /*!< Flash size data register base address  */
2100 
2101 /* Internal Flash OTP Area */
2102 #define FLASH_OTP_BASE          (0x0BFA0000UL) /*!< FLASH OTP (one-time programmable) base address */
2103 #define FLASH_OTP_SIZE          (0x200U)       /*!< 512 bytes OTP (one-time programmable)          */
2104 
2105 /* USB OTG registers Base address */
2106 #define USB_OTG_GLOBAL_BASE                  (0x0000UL)
2107 #define USB_OTG_DEVICE_BASE                  (0x0800UL)
2108 #define USB_OTG_IN_ENDPOINT_BASE             (0x0900UL)
2109 #define USB_OTG_OUT_ENDPOINT_BASE            (0x0B00UL)
2110 #define USB_OTG_EP_REG_SIZE                  (0x0020UL)
2111 #define USB_OTG_HOST_BASE                    (0x0400UL)
2112 #define USB_OTG_HOST_PORT_BASE               (0x0440UL)
2113 #define USB_OTG_HOST_CHANNEL_BASE            (0x0500UL)
2114 #define USB_OTG_HOST_CHANNEL_SIZE            (0x0020UL)
2115 #define USB_OTG_PCGCCTL_BASE                 (0x0E00UL)
2116 #define USB_OTG_FIFO_BASE                    (0x1000UL)
2117 #define USB_OTG_FIFO_SIZE                    (0x1000UL)
2118 
2119 /*!< Root Secure Service Library */
2120 /************ RSSLIB SAU system Flash region definition constants *************/
2121 #define RSSLIB_SYS_FLASH_NS_PFUNC_START   (0x0BF99E40UL)
2122 #define RSSLIB_SYS_FLASH_NS_PFUNC_END     (0x0BF99EFFUL)
2123 
2124 /************ RSSLIB function return constants ********************************/
2125 #define RSSLIB_ERROR   (0xF5F5F5F5UL)
2126 #define RSSLIB_SUCCESS (0xEAEAEAEAUL)
2127 
2128 /*!< RSSLIB  pointer function structure address definition */
2129 #define RSSLIB_PFUNC_BASE RSSLIB_SYS_FLASH_NS_PFUNC_START
2130 #define RSSLIB_PFUNC      ((RSSLIB_pFunc_TypeDef *)RSSLIB_PFUNC_BASE)
2131 
2132 /*!< HDP Area constant definition */
2133 #define RSSLIB_HDP_AREA_Pos  (0U)
2134 #define RSSLIB_HDP_AREA_Msk  (0x3UL << RSSLIB_HDP_AREA_Pos )
2135 #define RSSLIB_HDP_AREA1_Pos (0U)
2136 #define RSSLIB_HDP_AREA1_Msk (0x1UL << RSSLIB_HDP_AREA1_Pos )
2137 #define RSSLIB_HDP_AREA2_Pos (1U)
2138 #define RSSLIB_HDP_AREA2_Msk (0x1UL << RSSLIB_HDP_AREA2_Pos )
2139 
2140 /**
2141   * @brief  Prototype of RSSLIB Close and exit HDP Function
2142   * @detail This function close the requested hdp area passed in input
2143   *         parameter and jump to the reset handler present within the
2144   *         Vector table. The function does not return on successful execution.
2145   * @param  HdpArea notifies which hdp area to close, can be a combination of
2146   *         hdpa area 1 and hdp area 2
2147   * @param  pointer on the vector table containing the reset handler the function
2148   *         jumps to.
2149   * @retval RSSLIB_RSS_ERROR on error on input parameter, otherwise does not return.
2150   */
2151 typedef uint32_t ( *RSSLIB_S_CloseExitHDP_TypeDef)( uint32_t HdpArea, uint32_t VectorTableAddr );
2152 
2153 
2154 /**
2155   * @brief RSSLib non-secure callable function pointer structure
2156   */
2157 typedef struct
2158 {
2159   __IM uint32_t Reserved[8];
2160 }NSC_pFuncTypeDef;
2161 
2162 /**
2163   * @brief RSSLib secure callable function pointer structure
2164   */
2165 typedef struct
2166 {
2167   __IM uint32_t Reserved2[2];
2168   __IM RSSLIB_S_CloseExitHDP_TypeDef CloseExitHDP;        /*!< RSSLIB Bootloader Close and exit HDP  Address offset: 0x28 */
2169 }S_pFuncTypeDef;
2170 
2171 /**
2172   * @brief RSSLib function pointer structure
2173   */
2174 typedef struct
2175 {
2176   NSC_pFuncTypeDef NSC;
2177   S_pFuncTypeDef S;
2178 }RSSLIB_pFunc_TypeDef;
2179 
2180 /** @} */ /* End of group STM32U5xx_Peripheral_peripheralAddr */
2181 
2182 
2183 /* =========================================================================================================================== */
2184 /* ================                                  Peripheral declaration                                   ================ */
2185 /* =========================================================================================================================== */
2186 
2187 
2188 /** @addtogroup STM32U5xx_Peripheral_declaration
2189   * @{
2190   */
2191 
2192 /*!< APB1 Non secure peripherals */
2193 #define TIM2_NS                ((TIM_TypeDef *) TIM2_BASE_NS)
2194 #define TIM3_NS                ((TIM_TypeDef *) TIM3_BASE_NS)
2195 #define TIM4_NS                ((TIM_TypeDef *) TIM4_BASE_NS)
2196 #define TIM5_NS                ((TIM_TypeDef *) TIM5_BASE_NS)
2197 #define TIM6_NS                ((TIM_TypeDef *) TIM6_BASE_NS)
2198 #define TIM7_NS                ((TIM_TypeDef *) TIM7_BASE_NS)
2199 #define WWDG_NS                ((WWDG_TypeDef *) WWDG_BASE_NS)
2200 #define IWDG_NS                ((IWDG_TypeDef *) IWDG_BASE_NS)
2201 #define SPI2_NS                ((SPI_TypeDef *) SPI2_BASE_NS)
2202 #define USART2_NS              ((USART_TypeDef *) USART2_BASE_NS)
2203 #define USART3_NS              ((USART_TypeDef *) USART3_BASE_NS)
2204 #define UART4_NS               ((USART_TypeDef *) UART4_BASE_NS)
2205 #define UART5_NS               ((USART_TypeDef *) UART5_BASE_NS)
2206 #define I2C1_NS                ((I2C_TypeDef *) I2C1_BASE_NS)
2207 #define I2C2_NS                ((I2C_TypeDef *) I2C2_BASE_NS)
2208 #define CRS_NS                 ((CRS_TypeDef *) CRS_BASE_NS)
2209 #define I2C4_NS                ((I2C_TypeDef *) I2C4_BASE_NS)
2210 #define LPTIM2_NS              ((LPTIM_TypeDef *) LPTIM2_BASE_NS)
2211 #define FDCAN1_NS              ((FDCAN_GlobalTypeDef *) FDCAN1_BASE_NS)
2212 #define FDCAN_CONFIG_NS        ((FDCAN_Config_TypeDef *) FDCAN_CONFIG_BASE_NS)
2213 #define UCPD1_NS               ((UCPD_TypeDef *) UCPD1_BASE_NS)
2214 
2215 /*!< APB2 Non secure peripherals */
2216 #define TIM1_NS                ((TIM_TypeDef *) TIM1_BASE_NS)
2217 #define SPI1_NS                ((SPI_TypeDef *) SPI1_BASE_NS)
2218 #define TIM8_NS                ((TIM_TypeDef *) TIM8_BASE_NS)
2219 #define USART1_NS              ((USART_TypeDef *) USART1_BASE_NS)
2220 #define TIM15_NS               ((TIM_TypeDef *) TIM15_BASE_NS)
2221 #define TIM16_NS               ((TIM_TypeDef *) TIM16_BASE_NS)
2222 #define TIM17_NS               ((TIM_TypeDef *) TIM17_BASE_NS)
2223 #define SAI1_NS                ((SAI_TypeDef *) SAI1_BASE_NS)
2224 #define SAI1_Block_A_NS        ((SAI_Block_TypeDef *)SAI1_Block_A_BASE_NS)
2225 #define SAI1_Block_B_NS        ((SAI_Block_TypeDef *)SAI1_Block_B_BASE_NS)
2226 #define SAI2_NS                ((SAI_TypeDef *) SAI2_BASE_NS)
2227 #define SAI2_Block_A_NS        ((SAI_Block_TypeDef *)SAI2_Block_A_BASE_NS)
2228 #define SAI2_Block_B_NS        ((SAI_Block_TypeDef *)SAI2_Block_B_BASE_NS)
2229 
2230 /*!< APB3 Non secure peripherals */
2231 #define SYSCFG_NS              ((SYSCFG_TypeDef *) SYSCFG_BASE_NS)
2232 #define SPI3_NS                ((SPI_TypeDef *) SPI3_BASE_NS)
2233 #define LPUART1_NS             ((USART_TypeDef *) LPUART1_BASE_NS)
2234 #define I2C3_NS                ((I2C_TypeDef *) I2C3_BASE_NS)
2235 #define LPTIM1_NS              ((LPTIM_TypeDef *) LPTIM1_BASE_NS)
2236 #define LPTIM3_NS              ((LPTIM_TypeDef *) LPTIM3_BASE_NS)
2237 #define LPTIM4_NS              ((LPTIM_TypeDef *) LPTIM4_BASE_NS)
2238 #define OPAMP_NS               ((OPAMP_TypeDef *) OPAMP_BASE_NS)
2239 #define OPAMP1_NS              ((OPAMP_TypeDef *) OPAMP1_BASE_NS)
2240 #define OPAMP2_NS              ((OPAMP_TypeDef *) OPAMP2_BASE_NS)
2241 #define COMP12_NS              ((COMP_TypeDef *) COMP12_BASE_NS)
2242 #define COMP1_NS               ((COMP_TypeDef *) COMP1_BASE_NS)
2243 #define COMP2_NS               ((COMP_TypeDef *) COMP2_BASE_NS)
2244 #define COMP12_COMMON_NS       ((COMP_Common_TypeDef *) COMP1_BASE_NS)
2245 #define VREFBUF_NS             ((VREFBUF_TypeDef *) VREFBUF_BASE_NS)
2246 #define RTC_NS                 ((RTC_TypeDef *) RTC_BASE_NS)
2247 #define TAMP_NS                ((TAMP_TypeDef *) TAMP_BASE_NS)
2248 
2249 /*!< AHB1 Non secure peripherals */
2250 #define GPDMA1_NS              ((DMA_TypeDef *) GPDMA1_BASE_NS)
2251 #define GPDMA1_Channel0_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel0_BASE_NS)
2252 #define GPDMA1_Channel1_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel1_BASE_NS)
2253 #define GPDMA1_Channel2_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel2_BASE_NS)
2254 #define GPDMA1_Channel3_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel3_BASE_NS)
2255 #define GPDMA1_Channel4_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel4_BASE_NS)
2256 #define GPDMA1_Channel5_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel5_BASE_NS)
2257 #define GPDMA1_Channel6_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel6_BASE_NS)
2258 #define GPDMA1_Channel7_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel7_BASE_NS)
2259 #define GPDMA1_Channel8_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel8_BASE_NS)
2260 #define GPDMA1_Channel9_NS     ((DMA_Channel_TypeDef *) GPDMA1_Channel9_BASE_NS)
2261 #define GPDMA1_Channel10_NS    ((DMA_Channel_TypeDef *) GPDMA1_Channel10_BASE_NS)
2262 #define GPDMA1_Channel11_NS    ((DMA_Channel_TypeDef *) GPDMA1_Channel11_BASE_NS)
2263 #define GPDMA1_Channel12_NS    ((DMA_Channel_TypeDef *) GPDMA1_Channel12_BASE_NS)
2264 #define GPDMA1_Channel13_NS    ((DMA_Channel_TypeDef *) GPDMA1_Channel13_BASE_NS)
2265 #define GPDMA1_Channel14_NS    ((DMA_Channel_TypeDef *) GPDMA1_Channel14_BASE_NS)
2266 #define GPDMA1_Channel15_NS    ((DMA_Channel_TypeDef *) GPDMA1_Channel15_BASE_NS)
2267 #define CORDIC_NS              ((CORDIC_TypeDef *) CORDIC_BASE_NS)
2268 #define FMAC_NS                ((FMAC_TypeDef *) FMAC_BASE_NS)
2269 #define FLASH_NS               ((FLASH_TypeDef *) FLASH_R_BASE_NS)
2270 #define CRC_NS                 ((CRC_TypeDef *) CRC_BASE_NS)
2271 #define TSC_NS                 ((TSC_TypeDef *) TSC_BASE_NS)
2272 #define MDF1_NS                ((MDF_TypeDef *) MDF1_BASE_NS)
2273 #define MDF1_Filter0_NS        ((MDF_Filter_TypeDef*) MDF1_Filter0_BASE_NS)
2274 #define MDF1_Filter1_NS        ((MDF_Filter_TypeDef*) MDF1_Filter1_BASE_NS)
2275 #define MDF1_Filter2_NS        ((MDF_Filter_TypeDef*) MDF1_Filter2_BASE_NS)
2276 #define MDF1_Filter3_NS        ((MDF_Filter_TypeDef*) MDF1_Filter3_BASE_NS)
2277 #define MDF1_Filter4_NS        ((MDF_Filter_TypeDef*) MDF1_Filter4_BASE_NS)
2278 #define MDF1_Filter5_NS        ((MDF_Filter_TypeDef*) MDF1_Filter5_BASE_NS)
2279 #define RAMCFG_SRAM1_NS        ((RAMCFG_TypeDef *) RAMCFG_SRAM1_BASE_NS)
2280 #define RAMCFG_SRAM2_NS        ((RAMCFG_TypeDef *) RAMCFG_SRAM2_BASE_NS)
2281 #define RAMCFG_SRAM3_NS        ((RAMCFG_TypeDef *) RAMCFG_SRAM3_BASE_NS)
2282 #define RAMCFG_SRAM4_NS        ((RAMCFG_TypeDef *) RAMCFG_SRAM4_BASE_NS)
2283 #define RAMCFG_BKPRAM_NS       ((RAMCFG_TypeDef *) RAMCFG_BKPRAM_BASE_NS)
2284 #define DMA2D_NS               ((DMA2D_TypeDef *) DMA2D_BASE_NS)
2285 #define ICACHE_NS              ((ICACHE_TypeDef *) ICACHE_BASE_NS)
2286 #define DCACHE1_NS             ((DCACHE_TypeDef *) DCACHE1_BASE_NS)
2287 #define GTZC_TZSC1_NS          ((GTZC_TZSC_TypeDef *) GTZC_TZSC1_BASE_NS)
2288 #define GTZC_TZIC1_NS          ((GTZC_TZIC_TypeDef *) GTZC_TZIC1_BASE_NS)
2289 #define GTZC_MPCBB1_NS         ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB1_BASE_NS)
2290 #define GTZC_MPCBB2_NS         ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB2_BASE_NS)
2291 #define GTZC_MPCBB3_NS         ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB3_BASE_NS)
2292 
2293 /*!< AHB2 Non secure peripherals */
2294 #define GPIOA_NS               ((GPIO_TypeDef *) GPIOA_BASE_NS)
2295 #define GPIOB_NS               ((GPIO_TypeDef *) GPIOB_BASE_NS)
2296 #define GPIOC_NS               ((GPIO_TypeDef *) GPIOC_BASE_NS)
2297 #define GPIOD_NS               ((GPIO_TypeDef *) GPIOD_BASE_NS)
2298 #define GPIOE_NS               ((GPIO_TypeDef *) GPIOE_BASE_NS)
2299 #define GPIOF_NS               ((GPIO_TypeDef *) GPIOF_BASE_NS)
2300 #define GPIOG_NS               ((GPIO_TypeDef *) GPIOG_BASE_NS)
2301 #define GPIOH_NS               ((GPIO_TypeDef *) GPIOH_BASE_NS)
2302 #define GPIOI_NS               ((GPIO_TypeDef *) GPIOI_BASE_NS)
2303 #define ADC1_NS                ((ADC_TypeDef *) ADC1_BASE_NS)
2304 #define ADC12_COMMON_NS        ((ADC_Common_TypeDef *) ADC12_COMMON_BASE_NS)
2305 #define DCMI_NS                ((DCMI_TypeDef *) DCMI_BASE_NS)
2306 #define PSSI_NS                ((PSSI_TypeDef *) PSSI_BASE_NS)
2307 #define USB_OTG_FS_NS          ((USB_OTG_GlobalTypeDef *) OTG_FS_BASE_NS)
2308 #define AES_NS                 ((AES_TypeDef *) AES_BASE_NS)
2309 #define HASH_NS                ((HASH_TypeDef *) HASH_BASE_NS)
2310 #define HASH_DIGEST_NS         ((HASH_DIGEST_TypeDef *) HASH_DIGEST_BASE_NS)
2311 #define RNG_NS                 ((RNG_TypeDef *) RNG_BASE_NS)
2312 #define SAES_NS                ((AES_TypeDef *) SAES_BASE_NS)
2313 #define PKA_NS                 ((PKA_TypeDef *) PKA_BASE_NS)
2314 #define OTFDEC1_NS             ((OTFDEC_TypeDef *) OTFDEC1_BASE_NS)
2315 #define OTFDEC1_REGION1_NS     ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION1_BASE_NS)
2316 #define OTFDEC1_REGION2_NS     ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION2_BASE_NS)
2317 #define OTFDEC1_REGION3_NS     ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION3_BASE_NS)
2318 #define OTFDEC1_REGION4_NS     ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION4_BASE_NS)
2319 #define OTFDEC2_NS             ((OTFDEC_TypeDef *) OTFDEC2_BASE_NS)
2320 #define OTFDEC2_REGION1_NS     ((OTFDEC_Region_TypeDef *) OTFDEC2_REGION1_BASE_NS)
2321 #define OTFDEC2_REGION2_NS     ((OTFDEC_Region_TypeDef *) OTFDEC2_REGION2_BASE_NS)
2322 #define OTFDEC2_REGION3_NS     ((OTFDEC_Region_TypeDef *) OTFDEC2_REGION3_BASE_NS)
2323 #define OTFDEC2_REGION4_NS     ((OTFDEC_Region_TypeDef *) OTFDEC2_REGION4_BASE_NS)
2324 #define OCTOSPIM_NS            ((OCTOSPIM_TypeDef *) OCTOSPIM_R_BASE_NS)
2325 #define SDMMC1_NS              ((SDMMC_TypeDef *) SDMMC1_BASE_NS)
2326 #define SDMMC2_NS              ((SDMMC_TypeDef *) SDMMC2_BASE_NS)
2327 #define DLYB_SDMMC1_NS         ((DLYB_TypeDef *) DLYB_SDMMC1_BASE_NS)
2328 #define DLYB_SDMMC2_NS         ((DLYB_TypeDef *) DLYB_SDMMC2_BASE_NS)
2329 #define DLYB_OCTOSPI1_NS       ((DLYB_TypeDef *) DLYB_OCTOSPI1_BASE_NS)
2330 #define DLYB_OCTOSPI2_NS       ((DLYB_TypeDef *) DLYB_OCTOSPI2_BASE_NS)
2331 #define FMC_Bank1_R_NS         ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE_NS)
2332 #define FMC_Bank1E_R_NS        ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE_NS)
2333 #define FMC_Bank3_R_NS         ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE_NS)
2334 #define OCTOSPI1_NS            ((OCTOSPI_TypeDef *) OCTOSPI1_R_BASE_NS)
2335 #define OCTOSPI2_NS            ((OCTOSPI_TypeDef *) OCTOSPI2_R_BASE_NS)
2336 
2337 /*!< AHB3 Non secure peripherals */
2338 #define LPGPIO1_NS             ((GPIO_TypeDef *) LPGPIO1_BASE_NS)
2339 #define PWR_NS                 ((PWR_TypeDef *) PWR_BASE_NS)
2340 #define RCC_NS                 ((RCC_TypeDef *) RCC_BASE_NS)
2341 #define ADC4_NS                ((ADC_TypeDef *) ADC4_BASE_NS)
2342 #define ADC4_COMMON_NS         ((ADC_Common_TypeDef *) ADC4_COMMON_BASE_NS)
2343 #define DAC1_NS                ((DAC_TypeDef *) DAC1_BASE_NS)
2344 #define EXTI_NS                ((EXTI_TypeDef *) EXTI_BASE_NS)
2345 #define GTZC_TZSC2_NS          ((GTZC_TZSC_TypeDef *) GTZC_TZSC2_BASE_NS)
2346 #define GTZC_TZIC2_NS          ((GTZC_TZIC_TypeDef *) GTZC_TZIC2_BASE_NS)
2347 #define GTZC_MPCBB4_NS         ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB4_BASE_NS)
2348 #define ADF1_NS                ((MDF_TypeDef *) ADF1_BASE_NS)
2349 #define ADF1_Filter0_NS        ((MDF_Filter_TypeDef*) ADF1_Filter0_BASE_NS)
2350 #define LPDMA1_NS              ((DMA_TypeDef *) LPDMA1_BASE_NS)
2351 #define LPDMA1_Channel0_NS     ((DMA_Channel_TypeDef *) LPDMA1_Channel0_BASE_NS)
2352 #define LPDMA1_Channel1_NS     ((DMA_Channel_TypeDef *) LPDMA1_Channel1_BASE_NS)
2353 #define LPDMA1_Channel2_NS     ((DMA_Channel_TypeDef *) LPDMA1_Channel2_BASE_NS)
2354 #define LPDMA1_Channel3_NS     ((DMA_Channel_TypeDef *) LPDMA1_Channel3_BASE_NS)
2355 
2356 /*!< APB1 Secure peripherals */
2357 #define TIM2_S                 ((TIM_TypeDef *) TIM2_BASE_S)
2358 #define TIM3_S                 ((TIM_TypeDef *) TIM3_BASE_S)
2359 #define TIM4_S                 ((TIM_TypeDef *) TIM4_BASE_S)
2360 #define TIM5_S                 ((TIM_TypeDef *) TIM5_BASE_S)
2361 #define TIM6_S                 ((TIM_TypeDef *) TIM6_BASE_S)
2362 #define TIM7_S                 ((TIM_TypeDef *) TIM7_BASE_S)
2363 #define WWDG_S                 ((WWDG_TypeDef *) WWDG_BASE_S)
2364 #define IWDG_S                 ((IWDG_TypeDef *) IWDG_BASE_S)
2365 #define SPI2_S                 ((SPI_TypeDef *) SPI2_BASE_S)
2366 #define USART2_S               ((USART_TypeDef *) USART2_BASE_S)
2367 #define USART3_S               ((USART_TypeDef *) USART3_BASE_S)
2368 #define UART4_S                ((USART_TypeDef *) UART4_BASE_S)
2369 #define UART5_S                ((USART_TypeDef *) UART5_BASE_S)
2370 #define I2C1_S                 ((I2C_TypeDef *) I2C1_BASE_S)
2371 #define I2C2_S                 ((I2C_TypeDef *) I2C2_BASE_S)
2372 #define CRS_S                  ((CRS_TypeDef *) CRS_BASE_S)
2373 #define I2C4_S                 ((I2C_TypeDef *) I2C4_BASE_S)
2374 #define LPTIM2_S               ((LPTIM_TypeDef *) LPTIM2_BASE_S)
2375 #define FDCAN1_S               ((FDCAN_GlobalTypeDef *) FDCAN1_BASE_S)
2376 #define FDCAN_CONFIG_S         ((FDCAN_Config_TypeDef *) FDCAN_CONFIG_BASE_S)
2377 #define UCPD1_S                ((UCPD_TypeDef *) UCPD1_BASE_S)
2378 
2379 /*!< APB2 Secure peripherals */
2380 #define TIM1_S                 ((TIM_TypeDef *) TIM1_BASE_S)
2381 #define SPI1_S                 ((SPI_TypeDef *) SPI1_BASE_S)
2382 #define TIM8_S                 ((TIM_TypeDef *) TIM8_BASE_S)
2383 #define USART1_S               ((USART_TypeDef *) USART1_BASE_S)
2384 #define TIM15_S                ((TIM_TypeDef *) TIM15_BASE_S)
2385 #define TIM16_S                ((TIM_TypeDef *) TIM16_BASE_S)
2386 #define TIM17_S                ((TIM_TypeDef *) TIM17_BASE_S)
2387 #define SAI1_S                 ((SAI_TypeDef *) SAI1_BASE_S)
2388 #define SAI1_Block_A_S         ((SAI_Block_TypeDef *)SAI1_Block_A_BASE_S)
2389 #define SAI1_Block_B_S         ((SAI_Block_TypeDef *)SAI1_Block_B_BASE_S)
2390 #define SAI2_S                 ((SAI_TypeDef *) SAI2_BASE_S)
2391 #define SAI2_Block_A_S         ((SAI_Block_TypeDef *)SAI2_Block_A_BASE_S)
2392 #define SAI2_Block_B_S         ((SAI_Block_TypeDef *)SAI2_Block_B_BASE_S)
2393 
2394 /*!< APB3 secure peripherals */
2395 #define SYSCFG_S               ((SYSCFG_TypeDef *) SYSCFG_BASE_S)
2396 #define SPI3_S                 ((SPI_TypeDef *) SPI3_BASE_S)
2397 #define LPUART1_S              ((USART_TypeDef *) LPUART1_BASE_S)
2398 #define I2C3_S                 ((I2C_TypeDef *) I2C3_BASE_S)
2399 #define LPTIM1_S               ((LPTIM_TypeDef *) LPTIM1_BASE_S)
2400 #define LPTIM3_S               ((LPTIM_TypeDef *) LPTIM3_BASE_S)
2401 #define LPTIM4_S               ((LPTIM_TypeDef *) LPTIM4_BASE_S)
2402 #define OPAMP_S                ((OPAMP_TypeDef *) OPAMP_BASE_S)
2403 #define OPAMP1_S               ((OPAMP_TypeDef *) OPAMP1_BASE_S)
2404 #define OPAMP2_S               ((OPAMP_TypeDef *) OPAMP2_BASE_S)
2405 #define COMP12_S               ((COMP_TypeDef *) COMP12_BASE_S)
2406 #define COMP1_S                ((COMP_TypeDef *) COMP1_BASE_S)
2407 #define COMP2_S                ((COMP_TypeDef *) COMP2_BASE_S)
2408 #define COMP12_COMMON_S        ((COMP_Common_TypeDef *) COMP1_BASE_S)
2409 #define VREFBUF_S              ((VREFBUF_TypeDef *) VREFBUF_BASE_S)
2410 #define RTC_S                  ((RTC_TypeDef *) RTC_BASE_S)
2411 #define TAMP_S                 ((TAMP_TypeDef *) TAMP_BASE_S)
2412 
2413 /*!< AHB1 Secure peripherals */
2414 #define GPDMA1_S               ((DMA_TypeDef *) GPDMA1_BASE_S)
2415 #define GPDMA1_Channel0_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel0_BASE_S)
2416 #define GPDMA1_Channel1_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel1_BASE_S)
2417 #define GPDMA1_Channel2_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel2_BASE_S)
2418 #define GPDMA1_Channel3_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel3_BASE_S)
2419 #define GPDMA1_Channel4_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel4_BASE_S)
2420 #define GPDMA1_Channel5_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel5_BASE_S)
2421 #define GPDMA1_Channel6_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel6_BASE_S)
2422 #define GPDMA1_Channel7_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel7_BASE_S)
2423 #define GPDMA1_Channel8_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel8_BASE_S)
2424 #define GPDMA1_Channel9_S      ((DMA_Channel_TypeDef *) GPDMA1_Channel9_BASE_S)
2425 #define GPDMA1_Channel10_S     ((DMA_Channel_TypeDef *) GPDMA1_Channel10_BASE_S)
2426 #define GPDMA1_Channel11_S     ((DMA_Channel_TypeDef *) GPDMA1_Channel11_BASE_S)
2427 #define GPDMA1_Channel12_S     ((DMA_Channel_TypeDef *) GPDMA1_Channel12_BASE_S)
2428 #define GPDMA1_Channel13_S     ((DMA_Channel_TypeDef *) GPDMA1_Channel13_BASE_S)
2429 #define GPDMA1_Channel14_S     ((DMA_Channel_TypeDef *) GPDMA1_Channel14_BASE_S)
2430 #define GPDMA1_Channel15_S     ((DMA_Channel_TypeDef *) GPDMA1_Channel15_BASE_S)
2431 #define CORDIC_S               ((CORDIC_TypeDef *) CORDIC_BASE_S)
2432 #define FMAC_S                 ((FMAC_TypeDef *) FMAC_BASE_S)
2433 #define FLASH_S                ((FLASH_TypeDef *) FLASH_R_BASE_S)
2434 #define CRC_S                  ((CRC_TypeDef *) CRC_BASE_S)
2435 #define TSC_S                  ((TSC_TypeDef *) TSC_BASE_S)
2436 #define MDF1_S                 ((MDF_TypeDef *) MDF1_BASE_S)
2437 #define MDF1_Filter0_S         ((MDF_Filter_TypeDef*) MDF1_Filter0_BASE_S)
2438 #define MDF1_Filter1_S         ((MDF_Filter_TypeDef*) MDF1_Filter1_BASE_S)
2439 #define MDF1_Filter2_S         ((MDF_Filter_TypeDef*) MDF1_Filter2_BASE_S)
2440 #define MDF1_Filter3_S         ((MDF_Filter_TypeDef*) MDF1_Filter3_BASE_S)
2441 #define MDF1_Filter4_S         ((MDF_Filter_TypeDef*) MDF1_Filter4_BASE_S)
2442 #define MDF1_Filter5_S         ((MDF_Filter_TypeDef*) MDF1_Filter5_BASE_S)
2443 #define RAMCFG_SRAM1_S         ((RAMCFG_TypeDef *) RAMCFG_SRAM1_BASE_S)
2444 #define RAMCFG_SRAM2_S         ((RAMCFG_TypeDef *) RAMCFG_SRAM2_BASE_S)
2445 #define RAMCFG_SRAM3_S         ((RAMCFG_TypeDef *) RAMCFG_SRAM3_BASE_S)
2446 #define RAMCFG_SRAM4_S         ((RAMCFG_TypeDef *) RAMCFG_SRAM4_BASE_S)
2447 #define RAMCFG_BKPRAM_S        ((RAMCFG_TypeDef *) RAMCFG_BKPRAM_BASE_S)
2448 #define DMA2D_S                ((DMA2D_TypeDef *) DMA2D_BASE_S)
2449 #define ICACHE_S               ((ICACHE_TypeDef *) ICACHE_BASE_S)
2450 #define DCACHE1_S              ((DCACHE_TypeDef *) DCACHE1_BASE_S)
2451 #define GTZC_TZSC1_S           ((GTZC_TZSC_TypeDef *) GTZC_TZSC1_BASE_S)
2452 #define GTZC_TZIC1_S           ((GTZC_TZIC_TypeDef *) GTZC_TZIC1_BASE_S)
2453 #define GTZC_MPCBB1_S          ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB1_BASE_S)
2454 #define GTZC_MPCBB2_S          ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB2_BASE_S)
2455 #define GTZC_MPCBB3_S          ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB3_BASE_S)
2456 
2457 /*!< AHB2 Secure peripherals */
2458 #define GPIOA_S                ((GPIO_TypeDef *) GPIOA_BASE_S)
2459 #define GPIOB_S                ((GPIO_TypeDef *) GPIOB_BASE_S)
2460 #define GPIOC_S                ((GPIO_TypeDef *) GPIOC_BASE_S)
2461 #define GPIOD_S                ((GPIO_TypeDef *) GPIOD_BASE_S)
2462 #define GPIOE_S                ((GPIO_TypeDef *) GPIOE_BASE_S)
2463 #define GPIOF_S                ((GPIO_TypeDef *) GPIOF_BASE_S)
2464 #define GPIOG_S                ((GPIO_TypeDef *) GPIOG_BASE_S)
2465 #define GPIOH_S                ((GPIO_TypeDef *) GPIOH_BASE_S)
2466 #define GPIOI_S                ((GPIO_TypeDef *) GPIOI_BASE_S)
2467 #define ADC1_S                 ((ADC_TypeDef *) ADC1_BASE_S)
2468 #define ADC12_COMMON_S         ((ADC_Common_TypeDef *) ADC12_COMMON_BASE_S)
2469 #define DCMI_S                 ((DCMI_TypeDef *) DCMI_BASE_S)
2470 #define PSSI_S                 ((PSSI_TypeDef *) PSSI_BASE_S)
2471 #define USB_OTG_FS_S           ((USB_OTG_GlobalTypeDef *) OTG_FS_BASE_S)
2472 #define AES_S                  ((AES_TypeDef *) AES_BASE_S)
2473 #define HASH_S                 ((HASH_TypeDef *) HASH_BASE_S)
2474 #define HASH_DIGEST_S          ((HASH_DIGEST_TypeDef *) HASH_DIGEST_BASE_S)
2475 #define RNG_S                  ((RNG_TypeDef *) RNG_BASE_S)
2476 #define SAES_S                 ((AES_TypeDef *) SAES_BASE_S)
2477 #define PKA_S                  ((PKA_TypeDef *) PKA_BASE_S)
2478 #define OTFDEC1_S              ((OTFDEC_TypeDef *) OTFDEC1_BASE_S)
2479 #define OTFDEC1_REGION1_S      ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION1_BASE_S)
2480 #define OTFDEC1_REGION2_S      ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION2_BASE_S)
2481 #define OTFDEC1_REGION3_S      ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION3_BASE_S)
2482 #define OTFDEC1_REGION4_S      ((OTFDEC_Region_TypeDef *) OTFDEC1_REGION4_BASE_S)
2483 #define OTFDEC2_S              ((OTFDEC_TypeDef *) OTFDEC2_BASE_S)
2484 #define OTFDEC2_REGION1_S      ((OTFDEC_Region_TypeDef *) OTFDEC2_REGION1_BASE_S)
2485 #define OTFDEC2_REGION2_S      ((OTFDEC_Region_TypeDef *) OTFDEC2_REGION2_BASE_S)
2486 #define OTFDEC2_REGION3_S      ((OTFDEC_Region_TypeDef *) OTFDEC2_REGION3_BASE_S)
2487 #define OTFDEC2_REGION4_S      ((OTFDEC_Region_TypeDef *) OTFDEC2_REGION4_BASE_S)
2488 #define OCTOSPIM_S             ((OCTOSPIM_TypeDef *) OCTOSPIM_R_BASE_S)
2489 #define SDMMC1_S               ((SDMMC_TypeDef *) SDMMC1_BASE_S)
2490 #define SDMMC2_S               ((SDMMC_TypeDef *) SDMMC2_BASE_S)
2491 #define DLYB_SDMMC1_S          ((DLYB_TypeDef *) DLYB_SDMMC1_BASE_S)
2492 #define DLYB_SDMMC2_S          ((DLYB_TypeDef *) DLYB_SDMMC2_BASE_S)
2493 #define DLYB_OCTOSPI1_S        ((DLYB_TypeDef *) DLYB_OCTOSPI1_BASE_S)
2494 #define DLYB_OCTOSPI2_S        ((DLYB_TypeDef *) DLYB_OCTOSPI2_BASE_S)
2495 #define FMC_Bank1_R_S          ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE_S)
2496 #define FMC_Bank1E_R_S         ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE_S)
2497 #define FMC_Bank3_R_S          ((FMC_Bank3_TypeDef *) FMC_Bank3_R_BASE_S)
2498 #define OCTOSPI1_S             ((OCTOSPI_TypeDef *) OCTOSPI1_R_BASE_S)
2499 #define OCTOSPI2_S             ((OCTOSPI_TypeDef *) OCTOSPI2_R_BASE_S)
2500 
2501 /*!< AHB3 Secure peripherals */
2502 #define LPGPIO1_S              ((GPIO_TypeDef *) LPGPIO1_BASE_S)
2503 #define PWR_S                  ((PWR_TypeDef *) PWR_BASE_S)
2504 #define RCC_S                  ((RCC_TypeDef *) RCC_BASE_S)
2505 #define ADC4_S                 ((ADC_TypeDef *) ADC4_BASE_S)
2506 #define ADC4_COMMON_S          ((ADC_Common_TypeDef *) ADC4_COMMON_BASE_S)
2507 #define DAC1_S                 ((DAC_TypeDef *) DAC1_BASE_S)
2508 #define EXTI_S                 ((EXTI_TypeDef *) EXTI_BASE_S)
2509 #define GTZC_TZSC2_S           ((GTZC_TZSC_TypeDef *) GTZC_TZSC2_BASE_S)
2510 #define GTZC_TZIC2_S           ((GTZC_TZIC_TypeDef *) GTZC_TZIC2_BASE_S)
2511 #define GTZC_MPCBB4_S          ((GTZC_MPCBB_TypeDef *) GTZC_MPCBB4_BASE_S)
2512 #define ADF1_S                 ((MDF_TypeDef *) ADF1_BASE_S)
2513 #define ADF1_Filter0_S         ((MDF_Filter_TypeDef*) ADF1_Filter0_BASE_S)
2514 #define LPDMA1_S               ((DMA_TypeDef *) LPDMA1_BASE_S)
2515 #define LPDMA1_Channel0_S      ((DMA_Channel_TypeDef *) LPDMA1_Channel0_BASE_S)
2516 #define LPDMA1_Channel1_S      ((DMA_Channel_TypeDef *) LPDMA1_Channel1_BASE_S)
2517 #define LPDMA1_Channel2_S      ((DMA_Channel_TypeDef *) LPDMA1_Channel2_BASE_S)
2518 #define LPDMA1_Channel3_S      ((DMA_Channel_TypeDef *) LPDMA1_Channel3_BASE_S)
2519 
2520 /*!< DBGMCU peripheral */
2521 #define DBGMCU                 ((DBGMCU_TypeDef *) DBGMCU_BASE)
2522 
2523 /*!< Memory & Instance aliases and base addresses for Non-Secure/Secure peripherals */
2524 
2525 #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
2526 
2527 /*!< Memory base addresses for Secure peripherals */
2528 #define FLASH_BASE                     FLASH_BASE_S
2529 #define SRAM1_BASE                     SRAM1_BASE_S
2530 #define SRAM2_BASE                     SRAM2_BASE_S
2531 #define SRAM3_BASE                     SRAM3_BASE_S
2532 #define SRAM4_BASE                     SRAM4_BASE_S
2533 #define BKPSRAM_BASE                   BKPSRAM_BASE_S
2534 #define PERIPH_BASE                    PERIPH_BASE_S
2535 #define APB1PERIPH_BASE                APB1PERIPH_BASE_S
2536 #define APB2PERIPH_BASE                APB2PERIPH_BASE_S
2537 #define AHB1PERIPH_BASE                AHB1PERIPH_BASE_S
2538 #define AHB2PERIPH_BASE                AHB2PERIPH_BASE_S
2539 
2540 /*!< Instance aliases and base addresses for Secure peripherals */
2541 #define CORDIC                         CORDIC_S
2542 #define CORDIC_BASE                    CORDIC_BASE_S
2543 
2544 #define RCC                            RCC_S
2545 #define RCC_BASE                       RCC_BASE_S
2546 
2547 #define DCMI                           DCMI_S
2548 #define DCMI_BASE                      DCMI_BASE_S
2549 
2550 #define PSSI                           PSSI_S
2551 #define PSSI_BASE                      PSSI_BASE_S
2552 
2553 #define FLASH                          FLASH_S
2554 #define FLASH_R_BASE                   FLASH_R_BASE_S
2555 
2556 #define FMAC                           FMAC_S
2557 #define FMAC_BASE                      FMAC_BASE_S
2558 
2559 #define GPDMA1                         GPDMA1_S
2560 #define GPDMA1_BASE                    GPDMA1_BASE_S
2561 
2562 #define GPDMA1_Channel0                GPDMA1_Channel0_S
2563 #define GPDMA1_Channel0_BASE           GPDMA1_Channel0_BASE_S
2564 
2565 #define GPDMA1_Channel1                GPDMA1_Channel1_S
2566 #define GPDMA1_Channel1_BASE           GPDMA1_Channel1_BASE_S
2567 
2568 #define GPDMA1_Channel2                GPDMA1_Channel2_S
2569 #define GPDMA1_Channel2_BASE           GPDMA1_Channel2_BASE_S
2570 
2571 #define GPDMA1_Channel3                GPDMA1_Channel3_S
2572 #define GPDMA1_Channel3_BASE           GPDMA1_Channel3_BASE_S
2573 
2574 #define GPDMA1_Channel4                GPDMA1_Channel4_S
2575 #define GPDMA1_Channel4_BASE           GPDMA1_Channel4_BASE_S
2576 
2577 #define GPDMA1_Channel5                GPDMA1_Channel5_S
2578 #define GPDMA1_Channel5_BASE           GPDMA1_Channel5_BASE_S
2579 
2580 #define GPDMA1_Channel6                GPDMA1_Channel6_S
2581 #define GPDMA1_Channel6_BASE           GPDMA1_Channel6_BASE_S
2582 
2583 #define GPDMA1_Channel7                GPDMA1_Channel7_S
2584 #define GPDMA1_Channel7_BASE           GPDMA1_Channel7_BASE_S
2585 
2586 #define GPDMA1_Channel8                GPDMA1_Channel8_S
2587 #define GPDMA1_Channel8_BASE           GPDMA1_Channel8_BASE_S
2588 
2589 #define GPDMA1_Channel9                GPDMA1_Channel9_S
2590 #define GPDMA1_Channel9_BASE           GPDMA1_Channel9_BASE_S
2591 
2592 #define GPDMA1_Channel10               GPDMA1_Channel10_S
2593 #define GPDMA1_Channel10_BASE          GPDMA1_Channel10_BASE_S
2594 
2595 #define GPDMA1_Channel11               GPDMA1_Channel11_S
2596 #define GPDMA1_Channel11_BASE          GPDMA1_Channel11_BASE_S
2597 
2598 #define GPDMA1_Channel12               GPDMA1_Channel12_S
2599 #define GPDMA1_Channel12_BASE          GPDMA1_Channel12_BASE_S
2600 
2601 #define GPDMA1_Channel13               GPDMA1_Channel13_S
2602 #define GPDMA1_Channel13_BASE          GPDMA1_Channel13_BASE_S
2603 
2604 #define GPDMA1_Channel14               GPDMA1_Channel14_S
2605 #define GPDMA1_Channel14_BASE          GPDMA1_Channel14_BASE_S
2606 
2607 #define GPDMA1_Channel15               GPDMA1_Channel15_S
2608 #define GPDMA1_Channel15_BASE          GPDMA1_Channel15_BASE_S
2609 
2610 #define LPDMA1                         LPDMA1_S
2611 #define LPDMA1_BASE                    LPDMA1_BASE_S
2612 
2613 #define LPDMA1_Channel0                LPDMA1_Channel0_S
2614 #define LPDMA1_Channel0_BASE           LPDMA1_Channel0_BASE_S
2615 
2616 #define LPDMA1_Channel1                LPDMA1_Channel1_S
2617 #define LPDMA1_Channel1_BASE           LPDMA1_Channel1_BASE_S
2618 
2619 #define LPDMA1_Channel2                LPDMA1_Channel2_S
2620 #define LPDMA1_Channel2_BASE           LPDMA1_Channel2_BASE_S
2621 
2622 #define LPDMA1_Channel3                LPDMA1_Channel3_S
2623 #define LPDMA1_Channel3_BASE           LPDMA1_Channel3_BASE_S
2624 
2625 #define GPIOA                          GPIOA_S
2626 #define GPIOA_BASE                     GPIOA_BASE_S
2627 
2628 #define GPIOB                          GPIOB_S
2629 #define GPIOB_BASE                     GPIOB_BASE_S
2630 
2631 #define GPIOC                          GPIOC_S
2632 #define GPIOC_BASE                     GPIOC_BASE_S
2633 
2634 #define GPIOD                          GPIOD_S
2635 #define GPIOD_BASE                     GPIOD_BASE_S
2636 
2637 #define GPIOE                          GPIOE_S
2638 #define GPIOE_BASE                     GPIOE_BASE_S
2639 
2640 #define GPIOF                          GPIOF_S
2641 #define GPIOF_BASE                     GPIOF_BASE_S
2642 
2643 #define GPIOG                          GPIOG_S
2644 #define GPIOG_BASE                     GPIOG_BASE_S
2645 
2646 #define GPIOH                          GPIOH_S
2647 #define GPIOH_BASE                     GPIOH_BASE_S
2648 
2649 #define GPIOI                          GPIOI_S
2650 #define GPIOI_BASE                     GPIOI_BASE_S
2651 
2652 #define LPGPIO1                        LPGPIO1_S
2653 #define LPGPIO1_BASE                   LPGPIO1_BASE_S
2654 
2655 #define PWR                            PWR_S
2656 #define PWR_BASE                       PWR_BASE_S
2657 
2658 #define RAMCFG_SRAM1                   RAMCFG_SRAM1_S
2659 #define RAMCFG_SRAM1_BASE              RAMCFG_SRAM1_BASE_S
2660 
2661 #define RAMCFG_SRAM2                   RAMCFG_SRAM2_S
2662 #define RAMCFG_SRAM2_BASE              RAMCFG_SRAM2_BASE_S
2663 
2664 #define RAMCFG_SRAM3                   RAMCFG_SRAM3_S
2665 #define RAMCFG_SRAM3_BASE              RAMCFG_SRAM3_BASE_S
2666 
2667 #define RAMCFG_SRAM4                   RAMCFG_SRAM4_S
2668 #define RAMCFG_SRAM4_BASE              RAMCFG_SRAM4_BASE_S
2669 
2670 #define RAMCFG_BKPRAM                  RAMCFG_BKPRAM_S
2671 #define RAMCFG_BKPRAM_BASE             RAMCFG_BKPRAM_BASE_S
2672 
2673 #define EXTI                           EXTI_S
2674 #define EXTI_BASE                      EXTI_BASE_S
2675 
2676 #define ICACHE                         ICACHE_S
2677 #define ICACHE_BASE                    ICACHE_BASE_S
2678 
2679 #define DCACHE1                        DCACHE1_S
2680 #define DCACHE1_BASE                   DCACHE1_BASE_S
2681 
2682 #define GTZC_TZSC1                     GTZC_TZSC1_S
2683 #define GTZC_TZSC1_BASE                GTZC_TZSC1_BASE_S
2684 
2685 #define GTZC_TZSC2                     GTZC_TZSC2_S
2686 #define GTZC_TZSC2_BASE                GTZC_TZSC2_BASE_S
2687 
2688 #define GTZC_TZIC1                     GTZC_TZIC1_S
2689 #define GTZC_TZIC1_BASE                GTZC_TZIC1_BASE_S
2690 
2691 #define GTZC_TZIC2                     GTZC_TZIC2_S
2692 #define GTZC_TZIC2_BASE                GTZC_TZIC2_BASE_S
2693 
2694 #define GTZC_MPCBB1                    GTZC_MPCBB1_S
2695 #define GTZC_MPCBB1_BASE               GTZC_MPCBB1_BASE_S
2696 
2697 #define GTZC_MPCBB2                    GTZC_MPCBB2_S
2698 #define GTZC_MPCBB2_BASE               GTZC_MPCBB2_BASE_S
2699 
2700 #define GTZC_MPCBB3                    GTZC_MPCBB3_S
2701 #define GTZC_MPCBB3_BASE               GTZC_MPCBB3_BASE_S
2702 
2703 #define GTZC_MPCBB4                    GTZC_MPCBB4_S
2704 #define GTZC_MPCBB4_BASE               GTZC_MPCBB4_BASE_S
2705 
2706 #define RTC                            RTC_S
2707 #define RTC_BASE                       RTC_BASE_S
2708 
2709 #define TAMP                           TAMP_S
2710 #define TAMP_BASE                      TAMP_BASE_S
2711 
2712 #define TIM1                           TIM1_S
2713 #define TIM1_BASE                      TIM1_BASE_S
2714 
2715 #define TIM2                           TIM2_S
2716 #define TIM2_BASE                      TIM2_BASE_S
2717 
2718 #define TIM3                           TIM3_S
2719 #define TIM3_BASE                      TIM3_BASE_S
2720 
2721 #define TIM4                           TIM4_S
2722 #define TIM4_BASE                      TIM4_BASE_S
2723 
2724 #define TIM5                           TIM5_S
2725 #define TIM5_BASE                      TIM5_BASE_S
2726 
2727 #define TIM6                           TIM6_S
2728 #define TIM6_BASE                      TIM6_BASE_S
2729 
2730 #define TIM7                           TIM7_S
2731 #define TIM7_BASE                      TIM7_BASE_S
2732 
2733 #define TIM8                           TIM8_S
2734 #define TIM8_BASE                      TIM8_BASE_S
2735 
2736 #define TIM15                          TIM15_S
2737 #define TIM15_BASE                     TIM15_BASE_S
2738 
2739 #define TIM16                          TIM16_S
2740 #define TIM16_BASE                     TIM16_BASE_S
2741 
2742 #define TIM17                          TIM17_S
2743 #define TIM17_BASE                     TIM17_BASE_S
2744 
2745 #define WWDG                           WWDG_S
2746 #define WWDG_BASE                      WWDG_BASE_S
2747 
2748 #define IWDG                           IWDG_S
2749 #define IWDG_BASE                      IWDG_BASE_S
2750 
2751 #define SPI1                           SPI1_S
2752 #define SPI1_BASE                      SPI1_BASE_S
2753 
2754 #define SPI2                           SPI2_S
2755 #define SPI2_BASE                      SPI2_BASE_S
2756 
2757 #define SPI3                           SPI3_S
2758 #define SPI3_BASE                      SPI3_BASE_S
2759 
2760 #define USART1                         USART1_S
2761 #define USART1_BASE                    USART1_BASE_S
2762 
2763 #define USART2                         USART2_S
2764 #define USART2_BASE                    USART2_BASE_S
2765 
2766 #define USART3                         USART3_S
2767 #define USART3_BASE                    USART3_BASE_S
2768 
2769 #define UART4                          UART4_S
2770 #define UART4_BASE                     UART4_BASE_S
2771 
2772 #define UART5                          UART5_S
2773 #define UART5_BASE                     UART5_BASE_S
2774 
2775 #define I2C1                           I2C1_S
2776 #define I2C1_BASE                      I2C1_BASE_S
2777 
2778 #define I2C2                           I2C2_S
2779 #define I2C2_BASE                      I2C2_BASE_S
2780 
2781 #define I2C3                           I2C3_S
2782 #define I2C3_BASE                      I2C3_BASE_S
2783 
2784 #define I2C4                           I2C4_S
2785 #define I2C4_BASE                      I2C4_BASE_S
2786 
2787 #define CRS                            CRS_S
2788 #define CRS_BASE                       CRS_BASE_S
2789 
2790 #define FDCAN1                         FDCAN1_S
2791 #define FDCAN1_BASE                    FDCAN1_BASE_S
2792 
2793 #define FDCAN_CONFIG                   FDCAN_CONFIG_S
2794 #define FDCAN_CONFIG_BASE              FDCAN_CONFIG_BASE_S
2795 #define SRAMCAN_BASE                   SRAMCAN_BASE_S
2796 
2797 #define DAC                            DAC_S
2798 #define DAC_BASE                       DAC_BASE_S
2799 
2800 #define DAC1                           DAC1_S
2801 #define DAC1_BASE                      DAC1_BASE_S
2802 
2803 #define OPAMP                          OPAMP_S
2804 #define OPAMP_BASE                     OPAMP_BASE_S
2805 
2806 #define OPAMP1                         OPAMP1_S
2807 #define OPAMP1_BASE                    OPAMP1_BASE_S
2808 
2809 #define OPAMP2                         OPAMP2_S
2810 #define OPAMP2_BASE                    OPAMP2_BASE_S
2811 
2812 #define LPTIM1                         LPTIM1_S
2813 #define LPTIM1_BASE                    LPTIM1_BASE_S
2814 
2815 #define LPTIM2                         LPTIM2_S
2816 #define LPTIM2_BASE                    LPTIM2_BASE_S
2817 
2818 #define LPTIM3                         LPTIM3_S
2819 #define LPTIM3_BASE                    LPTIM3_BASE_S
2820 
2821 #define LPTIM4                         LPTIM4_S
2822 #define LPTIM4_BASE                    LPTIM4_BASE_S
2823 
2824 #define LPUART1                        LPUART1_S
2825 #define LPUART1_BASE                   LPUART1_BASE_S
2826 
2827 #define UCPD1                          UCPD1_S
2828 #define UCPD1_BASE                     UCPD1_BASE_S
2829 
2830 #define SYSCFG                         SYSCFG_S
2831 #define SYSCFG_BASE                    SYSCFG_BASE_S
2832 
2833 #define VREFBUF                        VREFBUF_S
2834 #define VREFBUF_BASE                   VREFBUF_BASE_S
2835 
2836 #define COMP12                         COMP12_S
2837 #define COMP12_BASE                    COMP12_BASE_S
2838 
2839 #define COMP1                          COMP1_S
2840 #define COMP1_BASE                     COMP1_BASE_S
2841 
2842 #define COMP2                          COMP2_S
2843 #define COMP2_BASE                     COMP2_BASE_S
2844 
2845 #define COMP12_COMMON                  COMP12_COMMON_S
2846 #define COMP12_COMMON_BASE             COMP1_BASE_S
2847 
2848 #define SAI1                           SAI1_S
2849 #define SAI1_BASE                      SAI1_BASE_S
2850 
2851 #define SAI1_Block_A                   SAI1_Block_A_S
2852 #define SAI1_Block_A_BASE              SAI1_Block_A_BASE_S
2853 
2854 #define SAI1_Block_B                   SAI1_Block_B_S
2855 #define SAI1_Block_B_BASE              SAI1_Block_B_BASE_S
2856 
2857 #define SAI2                           SAI2_S
2858 #define SAI2_BASE                      SAI2_BASE_S
2859 
2860 #define SAI2_Block_A                   SAI2_Block_A_S
2861 #define SAI2_Block_A_BASE              SAI2_Block_A_BASE_S
2862 
2863 #define SAI2_Block_B                   SAI2_Block_B_S
2864 #define SAI2_Block_B_BASE              SAI2_Block_B_BASE_S
2865 
2866 #define CRC                            CRC_S
2867 #define CRC_BASE                       CRC_BASE_S
2868 
2869 #define TSC                            TSC_S
2870 #define TSC_BASE                       TSC_BASE_S
2871 
2872 #define ADC1                           ADC1_S
2873 #define ADC1_BASE                      ADC1_BASE_S
2874 
2875 #define ADC12_COMMON                   ADC12_COMMON_S
2876 #define ADC12_COMMON_BASE              ADC12_COMMON_BASE_S
2877 
2878 
2879 #define ADC4                           ADC4_S
2880 #define ADC4_BASE                      ADC4_BASE_S
2881 
2882 #define ADC4_COMMON                    ADC4_COMMON_S
2883 #define ADC4_COMMON_BASE               ADC4_COMMON_BASE_S
2884 
2885 #define HASH                           HASH_S
2886 #define HASH_BASE                      HASH_BASE_S
2887 
2888 #define HASH_DIGEST                    HASH_DIGEST_S
2889 #define HASH_DIGEST_BASE               HASH_DIGEST_BASE_S
2890 
2891 #define AES                            AES_S
2892 #define AES_BASE                       AES_BASE_S
2893 
2894 #define RNG                            RNG_S
2895 #define RNG_BASE                       RNG_BASE_S
2896 
2897 #define SAES                           SAES_S
2898 #define SAES_BASE                      SAES_BASE_S
2899 
2900 #define PKA                            PKA_S
2901 #define PKA_BASE                       PKA_BASE_S
2902 #define PKA_RAM_BASE                   PKA_RAM_BASE_S
2903 
2904 #define OTFDEC1                        OTFDEC1_S
2905 #define OTFDEC1_BASE                   OTFDEC1_BASE_S
2906 
2907 #define OTFDEC1_REGION1                OTFDEC1_REGION1_S
2908 #define OTFDEC1_REGION1_BASE           OTFDEC1_REGION1_BASE_S
2909 
2910 #define OTFDEC1_REGION2                OTFDEC1_REGION2_S
2911 #define OTFDEC1_REGION2_BASE           OTFDEC1_REGION2_BASE_S
2912 
2913 #define OTFDEC1_REGION3                OTFDEC1_REGION3_S
2914 #define OTFDEC1_REGION3_BASE           OTFDEC1_REGION3_BASE_S
2915 
2916 #define OTFDEC1_REGION4                OTFDEC1_REGION4_S
2917 #define OTFDEC1_REGION4_BASE           OTFDEC1_REGION4_BASE_S
2918 
2919 #define OTFDEC2                        OTFDEC2_S
2920 #define OTFDEC2_BASE                   OTFDEC2_BASE_S
2921 
2922 #define OTFDEC2_REGION1                OTFDEC2_REGION1_S
2923 #define OTFDEC2_REGION1_BASE           OTFDEC2_REGION1_BASE_S
2924 
2925 #define OTFDEC2_REGION2                OTFDEC2_REGION2_S
2926 #define OTFDEC2_REGION2_BASE           OTFDEC2_REGION2_BASE_S
2927 
2928 #define OTFDEC2_REGION3                OTFDEC2_REGION3_S
2929 #define OTFDEC2_REGION3_BASE           OTFDEC2_REGION3_BASE_S
2930 
2931 #define OTFDEC2_REGION4                OTFDEC2_REGION4_S
2932 #define OTFDEC2_REGION4_BASE           OTFDEC2_REGION4_BASE_S
2933 
2934 #define SDMMC1                         SDMMC1_S
2935 #define SDMMC1_BASE                    SDMMC1_BASE_S
2936 
2937 #define SDMMC2                         SDMMC2_S
2938 #define SDMMC2_BASE                    SDMMC2_BASE_S
2939 
2940 #define FMC_Bank1_R                    FMC_Bank1_R_S
2941 #define FMC_Bank1_R_BASE               FMC_Bank1_R_BASE_S
2942 
2943 #define FMC_Bank1E_R                   FMC_Bank1E_R_S
2944 #define FMC_Bank1E_R_BASE              FMC_Bank1E_R_BASE_S
2945 
2946 #define FMC_Bank3_R                    FMC_Bank3_R_S
2947 #define FMC_Bank3_R_BASE               FMC_Bank3_R_BASE_S
2948 
2949 #define OCTOSPI1                       OCTOSPI1_S
2950 #define OCTOSPI1_R_BASE                OCTOSPI1_R_BASE_S
2951 
2952 #define OCTOSPI2                       OCTOSPI2_S
2953 #define OCTOSPI2_R_BASE                OCTOSPI2_R_BASE_S
2954 
2955 #define OCTOSPIM                       OCTOSPIM_S
2956 #define OCTOSPIM_R_BASE                OCTOSPIM_R_BASE_S
2957 
2958 #define DLYB_SDMMC1                    DLYB_SDMMC1_S
2959 #define DLYB_SDMMC1_BASE               DLYB_SDMMC1_BASE_S
2960 
2961 #define DLYB_SDMMC2                    DLYB_SDMMC2_S
2962 #define DLYB_SDMMC2_BASE               DLYB_SDMMC2_BASE_S
2963 
2964 #define DLYB_OCTOSPI1                  DLYB_OCTOSPI1_S
2965 #define DLYB_OCTOSPI1_BASE             DLYB_OCTOSPI1_BASE_S
2966 
2967 #define DLYB_OCTOSPI2                  DLYB_OCTOSPI2_S
2968 #define DLYB_OCTOSPI2_BASE             DLYB_OCTOSPI2_BASE_S
2969 
2970 #define DMA2D                          DMA2D_S
2971 #define DMA2D_BASE                     DMA2D_BASE_S
2972 
2973 #define USB_OTG_FS                     USB_OTG_FS_S
2974 #define USB_OTG_FS_BASE                USB_OTG_FS_BASE_S
2975 
2976 #define MDF1                           MDF1_S
2977 #define MDF1_BASE                      MDF1_BASE_S
2978 
2979 #define MDF1_Filter0                   MDF1_Filter0_S
2980 #define MDF1_Filter0_BASE              MDF1_Filter0_BASE_S
2981 
2982 #define MDF1_Filter1                   MDF1_Filter1_S
2983 #define MDF1_Filter1_BASE              MDF1_Filter1_BASE_S
2984 
2985 #define MDF1_Filter2                   MDF1_Filter2_S
2986 #define MDF1_Filter2_BASE              MDF1_Filter2_BASE_S
2987 
2988 #define MDF1_Filter3                   MDF1_Filter3_S
2989 #define MDF1_Filter3_BASE              MDF1_Filter3_BASE_S
2990 
2991 #define MDF1_Filter4                   MDF1_Filter4_S
2992 #define MDF1_Filter4_BASE              MDF1_Filter4_BASE_S
2993 
2994 #define MDF1_Filter5                   MDF1_Filter5_S
2995 #define MDF1_Filter5_BASE              MDF1_Filter5_BASE_S
2996 
2997 #define ADF1                           ADF1_S
2998 #define ADF1_BASE                      ADF1_BASE_S
2999 
3000 #define ADF1_Filter0                   ADF1_Filter0_S
3001 #define ADF1_Filter0_BASE              ADF1_Filter0_BASE_S
3002 
3003 #else
3004 /*!< Memory base addresses for Non secure peripherals */
3005 #define FLASH_BASE                     FLASH_BASE_NS
3006 #define SRAM1_BASE                     SRAM1_BASE_NS
3007 #define SRAM2_BASE                     SRAM2_BASE_NS
3008 #define SRAM3_BASE                     SRAM3_BASE_NS
3009 #define SRAM4_BASE                     SRAM4_BASE_NS
3010 #define BKPSRAM_BASE                   BKPSRAM_BASE_NS
3011 #define PERIPH_BASE                    PERIPH_BASE_NS
3012 #define APB1PERIPH_BASE                APB1PERIPH_BASE_NS
3013 #define APB2PERIPH_BASE                APB2PERIPH_BASE_NS
3014 #define AHB1PERIPH_BASE                AHB1PERIPH_BASE_NS
3015 #define AHB2PERIPH_BASE                AHB2PERIPH_BASE_NS
3016 
3017 /*!< Instance aliases and base addresses for Non secure peripherals */
3018 #define CORDIC                         CORDIC_NS
3019 #define CORDIC_BASE                    CORDIC_BASE_NS
3020 
3021 #define RCC                            RCC_NS
3022 #define RCC_BASE                       RCC_BASE_NS
3023 
3024 #define DMA2D                          DMA2D_NS
3025 #define DMA2D_BASE                     DMA2D_BASE_NS
3026 
3027 #define DCMI                           DCMI_NS
3028 #define DCMI_BASE                      DCMI_BASE_NS
3029 
3030 #define PSSI                           PSSI_NS
3031 #define PSSI_BASE                      PSSI_BASE_NS
3032 
3033 #define FLASH                          FLASH_NS
3034 #define FLASH_R_BASE                   FLASH_R_BASE_NS
3035 
3036 #define FMAC                           FMAC_NS
3037 #define FMAC_BASE                      FMAC_BASE_NS
3038 
3039 #define GPDMA1                         GPDMA1_NS
3040 #define GPDMA1_BASE                    GPDMA1_BASE_NS
3041 
3042 #define GPDMA1_Channel0                GPDMA1_Channel0_NS
3043 #define GPDMA1_Channel0_BASE           GPDMA1_Channel0_BASE_NS
3044 
3045 #define GPDMA1_Channel1                GPDMA1_Channel1_NS
3046 #define GPDMA1_Channel1_BASE           GPDMA1_Channel1_BASE_NS
3047 
3048 #define GPDMA1_Channel2                GPDMA1_Channel2_NS
3049 #define GPDMA1_Channel2_BASE           GPDMA1_Channel2_BASE_NS
3050 
3051 #define GPDMA1_Channel3                GPDMA1_Channel3_NS
3052 #define GPDMA1_Channel3_BASE           GPDMA1_Channel3_BASE_NS
3053 
3054 #define GPDMA1_Channel4                GPDMA1_Channel4_NS
3055 #define GPDMA1_Channel4_BASE           GPDMA1_Channel4_BASE_NS
3056 
3057 #define GPDMA1_Channel5                GPDMA1_Channel5_NS
3058 #define GPDMA1_Channel5_BASE           GPDMA1_Channel5_BASE_NS
3059 
3060 #define GPDMA1_Channel6                GPDMA1_Channel6_NS
3061 #define GPDMA1_Channel6_BASE           GPDMA1_Channel6_BASE_NS
3062 
3063 #define GPDMA1_Channel7                GPDMA1_Channel7_NS
3064 #define GPDMA1_Channel7_BASE           GPDMA1_Channel7_BASE_NS
3065 
3066 #define GPDMA1_Channel8                GPDMA1_Channel8_NS
3067 #define GPDMA1_Channel8_BASE           GPDMA1_Channel8_BASE_NS
3068 
3069 #define GPDMA1_Channel9                GPDMA1_Channel9_NS
3070 #define GPDMA1_Channel9_BASE           GPDMA1_Channel9_BASE_NS
3071 
3072 #define GPDMA1_Channel10               GPDMA1_Channel10_NS
3073 #define GPDMA1_Channel10_BASE          GPDMA1_Channel10_BASE_NS
3074 
3075 #define GPDMA1_Channel11               GPDMA1_Channel11_NS
3076 #define GPDMA1_Channel11_BASE          GPDMA1_Channel11_BASE_NS
3077 
3078 #define GPDMA1_Channel12               GPDMA1_Channel12_NS
3079 #define GPDMA1_Channel12_BASE          GPDMA1_Channel12_BASE_NS
3080 
3081 #define GPDMA1_Channel13               GPDMA1_Channel13_NS
3082 #define GPDMA1_Channel13_BASE          GPDMA1_Channel13_BASE_NS
3083 
3084 #define GPDMA1_Channel14               GPDMA1_Channel14_NS
3085 #define GPDMA1_Channel14_BASE          GPDMA1_Channel14_BASE_NS
3086 
3087 #define GPDMA1_Channel15               GPDMA1_Channel15_NS
3088 #define GPDMA1_Channel15_BASE          GPDMA1_Channel15_BASE_NS
3089 
3090 #define LPDMA1                         LPDMA1_NS
3091 #define LPDMA1_BASE                    LPDMA1_BASE_NS
3092 
3093 #define LPDMA1_Channel0                LPDMA1_Channel0_NS
3094 #define LPDMA1_Channel0_BASE           LPDMA1_Channel0_BASE_NS
3095 
3096 #define LPDMA1_Channel1                LPDMA1_Channel1_NS
3097 #define LPDMA1_Channel1_BASE           LPDMA1_Channel1_BASE_NS
3098 
3099 #define LPDMA1_Channel2                LPDMA1_Channel2_NS
3100 #define LPDMA1_Channel2_BASE           LPDMA1_Channel2_BASE_NS
3101 
3102 #define LPDMA1_Channel3                LPDMA1_Channel3_NS
3103 #define LPDMA1_Channel3_BASE           LPDMA1_Channel3_BASE_NS
3104 
3105 #define GPIOA                          GPIOA_NS
3106 #define GPIOA_BASE                     GPIOA_BASE_NS
3107 
3108 #define GPIOB                          GPIOB_NS
3109 #define GPIOB_BASE                     GPIOB_BASE_NS
3110 
3111 #define GPIOC                          GPIOC_NS
3112 #define GPIOC_BASE                     GPIOC_BASE_NS
3113 
3114 #define GPIOD                          GPIOD_NS
3115 #define GPIOD_BASE                     GPIOD_BASE_NS
3116 
3117 #define GPIOE                          GPIOE_NS
3118 #define GPIOE_BASE                     GPIOE_BASE_NS
3119 
3120 #define GPIOF                          GPIOF_NS
3121 #define GPIOF_BASE                     GPIOF_BASE_NS
3122 
3123 #define GPIOG                          GPIOG_NS
3124 #define GPIOG_BASE                     GPIOG_BASE_NS
3125 
3126 #define GPIOH                          GPIOH_NS
3127 #define GPIOH_BASE                     GPIOH_BASE_NS
3128 
3129 #define GPIOI                          GPIOI_NS
3130 #define GPIOI_BASE                     GPIOI_BASE_NS
3131 
3132 #define LPGPIO1                        LPGPIO1_NS
3133 #define LPGPIO1_BASE                   LPGPIO1_BASE_NS
3134 
3135 #define PWR                            PWR_NS
3136 #define PWR_BASE                       PWR_BASE_NS
3137 
3138 #define RAMCFG_SRAM1                   RAMCFG_SRAM1_NS
3139 #define RAMCFG_SRAM1_BASE              RAMCFG_SRAM1_BASE_NS
3140 
3141 #define RAMCFG_SRAM2                   RAMCFG_SRAM2_NS
3142 #define RAMCFG_SRAM2_BASE              RAMCFG_SRAM2_BASE_NS
3143 
3144 #define RAMCFG_SRAM3                   RAMCFG_SRAM3_NS
3145 #define RAMCFG_SRAM3_BASE              RAMCFG_SRAM3_BASE_NS
3146 
3147 #define RAMCFG_SRAM4                   RAMCFG_SRAM4_NS
3148 #define RAMCFG_SRAM4_BASE              RAMCFG_SRAM4_BASE_NS
3149 
3150 #define RAMCFG_BKPRAM                  RAMCFG_BKPRAM_NS
3151 #define RAMCFG_BKPRAM_BASE             RAMCFG_BKPRAM_BASE_NS
3152 
3153 #define EXTI                           EXTI_NS
3154 #define EXTI_BASE                      EXTI_BASE_NS
3155 
3156 #define ICACHE                         ICACHE_NS
3157 #define ICACHE_BASE                    ICACHE_BASE_NS
3158 
3159 #define DCACHE1                        DCACHE1_NS
3160 #define DCACHE1_BASE                   DCACHE1_BASE_NS
3161 
3162 #define GTZC_TZSC1                     GTZC_TZSC1_NS
3163 #define GTZC_TZSC1_BASE                GTZC_TZSC1_BASE_NS
3164 
3165 #define GTZC_TZSC2                     GTZC_TZSC2_NS
3166 #define GTZC_TZSC2_BASE                GTZC_TZSC2_BASE_NS
3167 
3168 #define GTZC_TZIC1                     GTZC_TZIC1_NS
3169 #define GTZC_TZIC1_BASE                GTZC_TZIC1_BASE_NS
3170 
3171 #define GTZC_TZIC2                     GTZC_TZIC2_NS
3172 #define GTZC_TZIC2_BASE                GTZC_TZIC2_BASE_NS
3173 
3174 #define GTZC_MPCBB1                    GTZC_MPCBB1_NS
3175 #define GTZC_MPCBB1_BASE               GTZC_MPCBB1_BASE_NS
3176 
3177 #define GTZC_MPCBB2                    GTZC_MPCBB2_NS
3178 #define GTZC_MPCBB2_BASE               GTZC_MPCBB2_BASE_NS
3179 
3180 #define GTZC_MPCBB3                    GTZC_MPCBB3_NS
3181 #define GTZC_MPCBB3_BASE               GTZC_MPCBB3_BASE_NS
3182 
3183 #define GTZC_MPCBB4                    GTZC_MPCBB4_NS
3184 #define GTZC_MPCBB4_BASE               GTZC_MPCBB4_BASE_NS
3185 
3186 #define RTC                            RTC_NS
3187 #define RTC_BASE                       RTC_BASE_NS
3188 
3189 #define TAMP                           TAMP_NS
3190 #define TAMP_BASE                      TAMP_BASE_NS
3191 
3192 #define TIM1                           TIM1_NS
3193 #define TIM1_BASE                      TIM1_BASE_NS
3194 
3195 #define TIM2                           TIM2_NS
3196 #define TIM2_BASE                      TIM2_BASE_NS
3197 
3198 #define TIM3                           TIM3_NS
3199 #define TIM3_BASE                      TIM3_BASE_NS
3200 
3201 #define TIM4                           TIM4_NS
3202 #define TIM4_BASE                      TIM4_BASE_NS
3203 
3204 #define TIM5                           TIM5_NS
3205 #define TIM5_BASE                      TIM5_BASE_NS
3206 
3207 #define TIM6                           TIM6_NS
3208 #define TIM6_BASE                      TIM6_BASE_NS
3209 
3210 #define TIM7                           TIM7_NS
3211 #define TIM7_BASE                      TIM7_BASE_NS
3212 
3213 #define TIM8                           TIM8_NS
3214 #define TIM8_BASE                      TIM8_BASE_NS
3215 
3216 #define TIM15                          TIM15_NS
3217 #define TIM15_BASE                     TIM15_BASE_NS
3218 
3219 #define TIM16                          TIM16_NS
3220 #define TIM16_BASE                     TIM16_BASE_NS
3221 
3222 #define TIM17                          TIM17_NS
3223 #define TIM17_BASE                     TIM17_BASE_NS
3224 
3225 #define WWDG                           WWDG_NS
3226 #define WWDG_BASE                      WWDG_BASE_NS
3227 
3228 #define IWDG                           IWDG_NS
3229 #define IWDG_BASE                      IWDG_BASE_NS
3230 
3231 #define SPI1                           SPI1_NS
3232 #define SPI1_BASE                      SPI1_BASE_NS
3233 
3234 #define SPI2                           SPI2_NS
3235 #define SPI2_BASE                      SPI2_BASE_NS
3236 
3237 #define SPI3                           SPI3_NS
3238 #define SPI3_BASE                      SPI3_BASE_NS
3239 
3240 #define USART1                         USART1_NS
3241 #define USART1_BASE                    USART1_BASE_NS
3242 
3243 #define USART2                         USART2_NS
3244 #define USART2_BASE                    USART2_BASE_NS
3245 
3246 #define USART3                         USART3_NS
3247 #define USART3_BASE                    USART3_BASE_NS
3248 
3249 #define UART4                          UART4_NS
3250 #define UART4_BASE                     UART4_BASE_NS
3251 
3252 #define UART5                          UART5_NS
3253 #define UART5_BASE                     UART5_BASE_NS
3254 
3255 #define I2C1                           I2C1_NS
3256 #define I2C1_BASE                      I2C1_BASE_NS
3257 
3258 #define I2C2                           I2C2_NS
3259 #define I2C2_BASE                      I2C2_BASE_NS
3260 
3261 #define I2C3                           I2C3_NS
3262 #define I2C3_BASE                      I2C3_BASE_NS
3263 
3264 #define I2C4                           I2C4_NS
3265 #define I2C4_BASE                      I2C4_BASE_NS
3266 
3267 #define CRS                            CRS_NS
3268 #define CRS_BASE                       CRS_BASE_NS
3269 
3270 #define FDCAN1                         FDCAN1_NS
3271 #define FDCAN1_BASE                    FDCAN1_BASE_NS
3272 
3273 #define FDCAN_CONFIG                   FDCAN_CONFIG_NS
3274 #define FDCAN_CONFIG_BASE              FDCAN_CONFIG_BASE_NS
3275 #define SRAMCAN_BASE                   SRAMCAN_BASE_NS
3276 
3277 #define DAC1                           DAC1_NS
3278 #define DAC1_BASE                      DAC1_BASE_NS
3279 
3280 #define OPAMP                          OPAMP_NS
3281 #define OPAMP_BASE                     OPAMP_BASE_NS
3282 
3283 #define OPAMP1                         OPAMP1_NS
3284 #define OPAMP1_BASE                    OPAMP1_BASE_NS
3285 
3286 #define OPAMP2                         OPAMP2_NS
3287 #define OPAMP2_BASE                    OPAMP2_BASE_NS
3288 
3289 #define LPTIM1                         LPTIM1_NS
3290 #define LPTIM1_BASE                    LPTIM1_BASE_NS
3291 
3292 #define LPTIM2                         LPTIM2_NS
3293 #define LPTIM2_BASE                    LPTIM2_BASE_NS
3294 
3295 #define LPTIM3                         LPTIM3_NS
3296 #define LPTIM3_BASE                    LPTIM3_BASE_NS
3297 
3298 #define LPTIM4                         LPTIM4_NS
3299 #define LPTIM4_BASE                    LPTIM4_BASE_NS
3300 
3301 #define LPUART1                        LPUART1_NS
3302 #define LPUART1_BASE                   LPUART1_BASE_NS
3303 
3304 #define UCPD1                          UCPD1_NS
3305 #define UCPD1_BASE                     UCPD1_BASE_NS
3306 
3307 #define SYSCFG                         SYSCFG_NS
3308 #define SYSCFG_BASE                    SYSCFG_BASE_NS
3309 
3310 #define VREFBUF                        VREFBUF_NS
3311 #define VREFBUF_BASE                   VREFBUF_BASE_NS
3312 
3313 #define COMP12                         COMP12_NS
3314 #define COMP12_BASE                    COMP12_BASE_NS
3315 
3316 #define COMP1                          COMP1_NS
3317 #define COMP1_BASE                     COMP1_BASE_NS
3318 
3319 #define COMP2                          COMP2_NS
3320 #define COMP2_BASE                     COMP2_BASE_NS
3321 
3322 #define COMP12_COMMON                  COMP12_COMMON_NS
3323 #define COMP12_COMMON_BASE             COMP1_BASE_NS
3324 
3325 #define SAI1                           SAI1_NS
3326 #define SAI1_BASE                      SAI1_BASE_NS
3327 
3328 #define SAI1_Block_A                   SAI1_Block_A_NS
3329 #define SAI1_Block_A_BASE              SAI1_Block_A_BASE_NS
3330 
3331 #define SAI1_Block_B                   SAI1_Block_B_NS
3332 #define SAI1_Block_B_BASE              SAI1_Block_B_BASE_NS
3333 
3334 #define SAI2                           SAI2_NS
3335 #define SAI2_BASE                      SAI2_BASE_NS
3336 
3337 #define SAI2_Block_A                   SAI2_Block_A_NS
3338 #define SAI2_Block_A_BASE              SAI2_Block_A_BASE_NS
3339 
3340 #define SAI2_Block_B                   SAI2_Block_B_NS
3341 #define SAI2_Block_B_BASE              SAI2_Block_B_BASE_NS
3342 
3343 #define CRC                            CRC_NS
3344 #define CRC_BASE                       CRC_BASE_NS
3345 
3346 #define TSC                            TSC_NS
3347 #define TSC_BASE                       TSC_BASE_NS
3348 
3349 #define ADC1                           ADC1_NS
3350 #define ADC1_BASE                      ADC1_BASE_NS
3351 
3352 #define ADC12_COMMON                   ADC12_COMMON_NS
3353 #define ADC12_COMMON_BASE              ADC12_COMMON_BASE_NS
3354 
3355 #define ADC4                           ADC4_NS
3356 #define ADC4_BASE                      ADC4_BASE_NS
3357 
3358 #define ADC4_COMMON                    ADC4_COMMON_NS
3359 #define ADC4_COMMON_BASE               ADC4_COMMON_BASE_NS
3360 
3361 #define HASH                           HASH_NS
3362 #define HASH_BASE                      HASH_BASE_NS
3363 
3364 #define HASH_DIGEST                    HASH_DIGEST_NS
3365 #define HASH_DIGEST_BASE               HASH_DIGEST_BASE_NS
3366 
3367 #define AES                            AES_NS
3368 #define AES_BASE                       AES_BASE_NS
3369 
3370 #define RNG                            RNG_NS
3371 #define RNG_BASE                       RNG_BASE_NS
3372 
3373 #define SAES                            SAES_NS
3374 #define SAES_BASE                       SAES_BASE_NS
3375 
3376 #define PKA                            PKA_NS
3377 #define PKA_BASE                       PKA_BASE_NS
3378 #define PKA_RAM_BASE                   PKA_RAM_BASE_NS
3379 
3380 #define OTFDEC1                        OTFDEC1_NS
3381 #define OTFDEC1_BASE                   OTFDEC1_BASE_NS
3382 
3383 #define OTFDEC1_REGION1                OTFDEC1_REGION1_NS
3384 #define OTFDEC1_REGION1_BASE           OTFDEC1_REGION1_BASE_NS
3385 
3386 #define OTFDEC1_REGION2                OTFDEC1_REGION2_NS
3387 #define OTFDEC1_REGION2_BASE           OTFDEC1_REGION2_BASE_NS
3388 
3389 #define OTFDEC1_REGION3                OTFDEC1_REGION3_NS
3390 #define OTFDEC1_REGION3_BASE           OTFDEC1_REGION3_BASE_NS
3391 
3392 #define OTFDEC1_REGION4                OTFDEC1_REGION4_NS
3393 #define OTFDEC1_REGION4_BASE           OTFDEC1_REGION4_BASE_NS
3394 
3395 #define OTFDEC2                        OTFDEC2_NS
3396 #define OTFDEC2_BASE                   OTFDEC2_BASE_NS
3397 
3398 #define OTFDEC2_REGION1                OTFDEC2_REGION1_NS
3399 #define OTFDEC2_REGION1_BASE           OTFDEC2_REGION1_BASE_NS
3400 
3401 #define OTFDEC2_REGION2                OTFDEC2_REGION2_NS
3402 #define OTFDEC2_REGION2_BASE           OTFDEC2_REGION2_BASE_NS
3403 
3404 #define OTFDEC2_REGION3                OTFDEC2_REGION3_NS
3405 #define OTFDEC2_REGION3_BASE           OTFDEC2_REGION3_BASE_NS
3406 
3407 #define OTFDEC2_REGION4                OTFDEC2_REGION4_NS
3408 #define OTFDEC2_REGION4_BASE           OTFDEC2_REGION4_BASE_NS
3409 
3410 #define SDMMC1                         SDMMC1_NS
3411 #define SDMMC1_BASE                    SDMMC1_BASE_NS
3412 
3413 #define SDMMC2                         SDMMC2_NS
3414 #define SDMMC2_BASE                    SDMMC2_BASE_NS
3415 
3416 #define FMC_Bank1_R                    FMC_Bank1_R_NS
3417 #define FMC_Bank1_R_BASE               FMC_Bank1_R_BASE_NS
3418 
3419 #define FMC_Bank1E_R                   FMC_Bank1E_R_NS
3420 #define FMC_Bank1E_R_BASE              FMC_Bank1E_R_BASE_NS
3421 
3422 #define FMC_Bank3_R                    FMC_Bank3_R_NS
3423 #define FMC_Bank3_R_BASE               FMC_Bank3_R_BASE_NS
3424 
3425 #define OCTOSPI1                       OCTOSPI1_NS
3426 #define OCTOSPI1_R_BASE                OCTOSPI1_R_BASE_NS
3427 
3428 #define OCTOSPI2                       OCTOSPI2_NS
3429 #define OCTOSPI2_R_BASE                OCTOSPI2_R_BASE_NS
3430 
3431 #define OCTOSPIM                       OCTOSPIM_NS
3432 #define OCTOSPIM_R_BASE                OCTOSPIM_R_BASE_NS
3433 
3434 #define DLYB_SDMMC1                    DLYB_SDMMC1_NS
3435 #define DLYB_SDMMC1_BASE               DLYB_SDMMC1_BASE_NS
3436 
3437 #define DLYB_SDMMC2                    DLYB_SDMMC2_NS
3438 #define DLYB_SDMMC2_BASE               DLYB_SDMMC2_BASE_NS
3439 
3440 #define DLYB_OCTOSPI1                  DLYB_OCTOSPI1_NS
3441 #define DLYB_OCTOSPI1_BASE             DLYB_OCTOSPI1_BASE_NS
3442 
3443 #define DLYB_OCTOSPI2                  DLYB_OCTOSPI2_NS
3444 #define DLYB_OCTOSPI2_BASE             DLYB_OCTOSPI2_BASE_NS
3445 
3446 #define USB_OTG_FS                     USB_OTG_FS_NS
3447 #define USB_OTG_FS_BASE                USB_OTG_FS_BASE_NS
3448 
3449 #define MDF1                           MDF1_NS
3450 #define MDF1_BASE                      MDF1_BASE_NS
3451 
3452 #define MDF1_Filter0                   MDF1_Filter0_NS
3453 #define MDF1_Filter0_BASE              MDF1_Filter0_BASE_NS
3454 
3455 #define MDF1_Filter1                   MDF1_Filter1_NS
3456 #define MDF1_Filter1_BASE              MDF1_Filter1_BASE_NS
3457 
3458 #define MDF1_Filter2                   MDF1_Filter2_NS
3459 #define MDF1_Filter2_BASE              MDF1_Filter2_BASE_NS
3460 
3461 #define MDF1_Filter3                   MDF1_Filter3_NS
3462 #define MDF1_Filter3_BASE              MDF1_Filter3_BASE_NS
3463 
3464 #define MDF1_Filter4                   MDF1_Filter4_NS
3465 #define MDF1_Filter4_BASE              MDF1_Filter4_BASE_NS
3466 
3467 #define MDF1_Filter5                   MDF1_Filter5_NS
3468 #define MDF1_Filter5_BASE              MDF1_Filter5_BASE_NS
3469 
3470 #define ADF1                           ADF1_NS
3471 #define ADF1_BASE                      ADF1_BASE_NS
3472 
3473 #define ADF1_Filter0                   ADF1_Filter0_NS
3474 #define ADF1_Filter0_BASE              ADF1_Filter0_BASE_NS
3475 
3476 #endif
3477 
3478 /******************************************************************************/
3479 /*                                                                            */
3480 /*                        Analog to Digital Converter                         */
3481 /*                                                                            */
3482 /******************************************************************************/
3483 /*******************************  ADC VERSION  ********************************/
3484 #define ADC_VER_V5_X
3485 /********************  Bit definition for ADC_ISR register  ********************/
3486 #define ADC_ISR_ADRDY_Pos                 (0U)
3487 #define ADC_ISR_ADRDY_Msk                 (0x1UL << ADC_ISR_ADRDY_Pos)          /*!< 0x00000001 */
3488 #define ADC_ISR_ADRDY                     ADC_ISR_ADRDY_Msk                     /*!< ADC Ready (ADRDY) flag  */
3489 #define ADC_ISR_EOSMP_Pos                 (1U)
3490 #define ADC_ISR_EOSMP_Msk                 (0x1UL << ADC_ISR_EOSMP_Pos)          /*!< 0x00000002 */
3491 #define ADC_ISR_EOSMP                     ADC_ISR_EOSMP_Msk                     /*!< ADC End of Sampling flag */
3492 #define ADC_ISR_EOC_Pos                   (2U)
3493 #define ADC_ISR_EOC_Msk                   (0x1UL << ADC_ISR_EOC_Pos)            /*!< 0x00000004 */
3494 #define ADC_ISR_EOC                       ADC_ISR_EOC_Msk                       /*!< ADC End of Regular Conversion flag */
3495 #define ADC_ISR_EOS_Pos                   (3U)
3496 #define ADC_ISR_EOS_Msk                   (0x1UL << ADC_ISR_EOS_Pos)            /*!< 0x00000008 */
3497 #define ADC_ISR_EOS                       ADC_ISR_EOS_Msk                       /*!< ADC End of Regular sequence of Conversions flag */
3498 #define ADC_ISR_OVR_Pos                   (4U)
3499 #define ADC_ISR_OVR_Msk                   (0x1UL << ADC_ISR_OVR_Pos)            /*!< 0x00000010 */
3500 #define ADC_ISR_OVR                       ADC_ISR_OVR_Msk                       /*!< ADC overrun flag */
3501 #define ADC_ISR_JEOC_Pos                  (5U)
3502 #define ADC_ISR_JEOC_Msk                  (0x1UL << ADC_ISR_JEOC_Pos)           /*!< 0x00000020 */
3503 #define ADC_ISR_JEOC                      ADC_ISR_JEOC_Msk                      /*!< ADC End of Injected Conversion flag */
3504 #define ADC_ISR_JEOS_Pos                  (6U)
3505 #define ADC_ISR_JEOS_Msk                  (0x1UL << ADC_ISR_JEOS_Pos)           /*!< 0x00000040 */
3506 #define ADC_ISR_JEOS                      ADC_ISR_JEOS_Msk                      /*!< ADC End of Injected sequence of Conversions flag */
3507 #define ADC_ISR_AWD1_Pos                  (7U)
3508 #define ADC_ISR_AWD1_Msk                  (0x1UL << ADC_ISR_AWD1_Pos)           /*!< 0x00000080 */
3509 #define ADC_ISR_AWD1                      ADC_ISR_AWD1_Msk                      /*!< ADC Analog watchdog 1 flag */
3510 #define ADC_ISR_AWD2_Pos                  (8U)
3511 #define ADC_ISR_AWD2_Msk                  (0x1UL << ADC_ISR_AWD2_Pos)           /*!< 0x00000100 */
3512 #define ADC_ISR_AWD2                      ADC_ISR_AWD2_Msk                      /*!< ADC Analog watchdog 2 flag */
3513 #define ADC_ISR_AWD3_Pos                  (9U)
3514 #define ADC_ISR_AWD3_Msk                  (0x1UL << ADC_ISR_AWD3_Pos)           /*!< 0x00000200 */
3515 #define ADC_ISR_AWD3                      ADC_ISR_AWD3_Msk                      /*!< ADC Analog watchdog 3 flag */
3516 #define ADC_ISR_JQOVF_Pos                 (10U)
3517 #define ADC_ISR_JQOVF_Msk                 (0x1UL << ADC_ISR_JQOVF_Pos)          /*!< 0x00000400 */
3518 #define ADC_ISR_JQOVF                     ADC_ISR_JQOVF_Msk                     /*!< ADC Injected Context Queue Overflow flag */
3519 #define ADC_ISR_EOCAL_Pos                 (11U)
3520 #define ADC_ISR_EOCAL_Msk                 (0x1UL << ADC_ISR_EOCAL_Pos)          /*!< 0x00000800 */
3521 #define ADC_ISR_EOCAL                     ADC_ISR_EOCAL_Msk                     /*!< ADC End of Calibration flag */
3522 #define ADC_ISR_LDORDY_Pos                (12U)
3523 #define ADC_ISR_LDORDY_Msk                (0x1UL << ADC_ISR_LDORDY_Pos)         /*!< 0x00001000 */
3524 #define ADC_ISR_LDORDY                    ADC_ISR_LDORDY_Msk                    /*!< ADC  Voltage Regulator Ready flag */
3525 
3526 /********************  Bit definition for ADC_IER register  ********************/
3527 #define ADC_IER_ADRDYIE_Pos               (0U)
3528 #define ADC_IER_ADRDYIE_Msk               (0x1UL << ADC_IER_ADRDYIE_Pos)        /*!< 0x00000001 */
3529 #define ADC_IER_ADRDYIE                   ADC_IER_ADRDYIE_Msk                   /*!< ADC Ready (ADRDY) interrupt source */
3530 #define ADC_IER_EOSMPIE_Pos               (1U)
3531 #define ADC_IER_EOSMPIE_Msk               (0x1UL << ADC_IER_EOSMPIE_Pos)        /*!< 0x00000002 */
3532 #define ADC_IER_EOSMPIE                   ADC_IER_EOSMPIE_Msk                   /*!< ADC End of Sampling interrupt source */
3533 #define ADC_IER_EOCIE_Pos                 (2U)
3534 #define ADC_IER_EOCIE_Msk                 (0x1UL << ADC_IER_EOCIE_Pos)          /*!< 0x00000004 */
3535 #define ADC_IER_EOCIE                     ADC_IER_EOCIE_Msk                     /*!< ADC End of Regular Conversion interrupt source */
3536 #define ADC_IER_EOSIE_Pos                 (3U)
3537 #define ADC_IER_EOSIE_Msk                 (0x1UL << ADC_IER_EOSIE_Pos)          /*!< 0x00000008 */
3538 #define ADC_IER_EOSIE                     ADC_IER_EOSIE_Msk                     /*!< ADC End of Regular sequence of Conversions interrupt source */
3539 #define ADC_IER_OVRIE_Pos                 (4U)
3540 #define ADC_IER_OVRIE_Msk                 (0x1UL << ADC_IER_OVRIE_Pos)          /*!< 0x00000010 */
3541 #define ADC_IER_OVRIE                     ADC_IER_OVRIE_Msk                     /*!< ADC overrun interrupt source */
3542 #define ADC_IER_JEOCIE_Pos                (5U)
3543 #define ADC_IER_JEOCIE_Msk                (0x1UL << ADC_IER_JEOCIE_Pos)         /*!< 0x00000020 */
3544 #define ADC_IER_JEOCIE                    ADC_IER_JEOCIE_Msk                    /*!< ADC End of Injected Conversion interrupt source */
3545 #define ADC_IER_JEOSIE_Pos                (6U)
3546 #define ADC_IER_JEOSIE_Msk                (0x1UL << ADC_IER_JEOSIE_Pos)         /*!< 0x00000040 */
3547 #define ADC_IER_JEOSIE                    ADC_IER_JEOSIE_Msk                    /*!< ADC End of Injected sequence of Conversions interrupt source */
3548 #define ADC_IER_AWD1IE_Pos                (7U)
3549 #define ADC_IER_AWD1IE_Msk                (0x1UL << ADC_IER_AWD1IE_Pos)         /*!< 0x00000080 */
3550 #define ADC_IER_AWD1IE                    ADC_IER_AWD1IE_Msk                    /*!< ADC Analog watchdog 1 interrupt source */
3551 #define ADC_IER_AWD2IE_Pos                (8U)
3552 #define ADC_IER_AWD2IE_Msk                (0x1UL << ADC_IER_AWD2IE_Pos)         /*!< 0x00000100 */
3553 #define ADC_IER_AWD2IE                    ADC_IER_AWD2IE_Msk                    /*!< ADC Analog watchdog 2 interrupt source */
3554 #define ADC_IER_AWD3IE_Pos                (9U)
3555 #define ADC_IER_AWD3IE_Msk                (0x1UL << ADC_IER_AWD3IE_Pos)         /*!< 0x00000200 */
3556 #define ADC_IER_AWD3IE                    ADC_IER_AWD3IE_Msk                    /*!< ADC Analog watchdog 3 interrupt source */
3557 #define ADC_IER_JQOVFIE_Pos               (10U)
3558 #define ADC_IER_JQOVFIE_Msk               (0x1UL << ADC_IER_JQOVFIE_Pos)        /*!< 0x00000400 */
3559 #define ADC_IER_JQOVFIE                   ADC_IER_JQOVFIE_Msk                   /*!< ADC Injected Context Queue Overflow interrupt source */
3560 #define ADC_IER_EOCALIE_Pos               (11U)
3561 #define ADC_IER_EOCALIE_Msk               (0x1UL << ADC_IER_EOCALIE_Pos)        /*!< 0x00000800 */
3562 #define ADC_IER_EOCALIE                   ADC_IER_EOCALIE_Msk                   /*!< ADC End of Calibration Enable */
3563 #define ADC_IER_LDORDYIE_Pos              (12U)
3564 #define ADC_IER_LDORDYIE_Msk              (0x1UL << ADC_IER_LDORDYIE_Pos)       /*!< 0x00001000 */
3565 #define ADC_IER_LDORDYIE                  ADC_IER_LDORDYIE_Msk                  /*!< ADC  Voltage Regulator Ready flag */
3566 
3567 /********************  Bit definition for ADC_CR register  ********************/
3568 #define ADC_CR_ADEN_Pos                   (0U)
3569 #define ADC_CR_ADEN_Msk                   (0x1UL << ADC_CR_ADEN_Pos)            /*!< 0x00000001 */
3570 #define ADC_CR_ADEN                       ADC_CR_ADEN_Msk                       /*!< ADC Enable control */
3571 #define ADC_CR_ADDIS_Pos                  (1U)
3572 #define ADC_CR_ADDIS_Msk                  (0x1UL << ADC_CR_ADDIS_Pos)           /*!< 0x00000002 */
3573 #define ADC_CR_ADDIS                      ADC_CR_ADDIS_Msk                      /*!< ADC Disable command */
3574 #define ADC_CR_ADSTART_Pos                (2U)
3575 #define ADC_CR_ADSTART_Msk                (0x1UL << ADC_CR_ADSTART_Pos)         /*!< 0x00000004 */
3576 #define ADC_CR_ADSTART                    ADC_CR_ADSTART_Msk                    /*!< ADC Start of Regular conversion */
3577 #define ADC_CR_JADSTART_Pos               (3U)
3578 #define ADC_CR_JADSTART_Msk               (0x1UL << ADC_CR_JADSTART_Pos)        /*!< 0x00000008 */
3579 #define ADC_CR_JADSTART                   ADC_CR_JADSTART_Msk                   /*!< ADC Start of injected conversion */
3580 #define ADC_CR_ADSTP_Pos                  (4U)
3581 #define ADC_CR_ADSTP_Msk                  (0x1UL << ADC_CR_ADSTP_Pos)           /*!< 0x00000010 */
3582 #define ADC_CR_ADSTP                      ADC_CR_ADSTP_Msk                      /*!< ADC Stop of Regular conversion */
3583 #define ADC_CR_JADSTP_Pos                 (5U)
3584 #define ADC_CR_JADSTP_Msk                 (0x1UL << ADC_CR_JADSTP_Pos)          /*!< 0x00000020 */
3585 #define ADC_CR_JADSTP                     ADC_CR_JADSTP_Msk                     /*!< ADC Stop of injected conversion */
3586 #define ADC_CR_ADCALLIN_Pos               (16U)
3587 #define ADC_CR_ADCALLIN_Msk               (0x1UL << ADC_CR_ADCALLIN_Pos)        /*!< 0x00010000 */
3588 #define ADC_CR_ADCALLIN                   ADC_CR_ADCALLIN_Msk                   /*!< ADC Linearity calibration */
3589 
3590 #define ADC_CR_CALINDEX0_Pos              (24U)
3591 #define ADC_CR_CALINDEX0_Msk              (0x1UL << ADC_CR_CALINDEX0_Pos)       /*!< 0x01000000 */
3592 #define ADC_CR_CALINDEX0                  ADC_CR_CALINDEX0_Msk                  /*!< ADC Linearity calibration ready Word 3 */
3593 #define ADC_CR_CALINDEX1_Pos              (25U)
3594 #define ADC_CR_CALINDEX1_Msk              (0x1UL << ADC_CR_CALINDEX1_Pos)       /*!< 0x02000000 */
3595 #define ADC_CR_CALINDEX1                  ADC_CR_CALINDEX1_Msk                  /*!< ADC Linearity calibration ready Word 4 */
3596 #define ADC_CR_CALINDEX2_Pos              (26U)
3597 #define ADC_CR_CALINDEX2_Msk              (0x1UL << ADC_CR_CALINDEX2_Pos)       /*!< 0x04000000 */
3598 #define ADC_CR_CALINDEX2                  ADC_CR_CALINDEX2_Msk                  /*!< ADC Linearity calibration ready Word 5 */
3599 #define ADC_CR_CALINDEX3_Pos              (27U)
3600 #define ADC_CR_CALINDEX3_Msk              (0x1UL << ADC_CR_CALINDEX3_Pos)       /*!< 0x08000000 */
3601 #define ADC_CR_CALINDEX3                  ADC_CR_CALINDEX3_Msk                  /*!< ADC Linearity calibration ready Word 6 */
3602 #define ADC_CR_ADVREGEN_Pos               (28U)
3603 #define ADC_CR_ADVREGEN_Msk               (0x1UL << ADC_CR_ADVREGEN_Pos)        /*!< 0x10000000 */
3604 #define ADC_CR_ADVREGEN                   ADC_CR_ADVREGEN_Msk                   /*!< ADC Voltage regulator Enable */
3605 #define ADC_CR_DEEPPWD_Pos                (29U)
3606 #define ADC_CR_DEEPPWD_Msk                (0x1UL << ADC_CR_DEEPPWD_Pos)         /*!< 0x20000000 */
3607 #define ADC_CR_DEEPPWD                    ADC_CR_DEEPPWD_Msk                    /*!< ADC Deep power down Enable */
3608 #define ADC_CR_ADCAL_Pos                  (31U)
3609 #define ADC_CR_ADCAL_Msk                  (0x1UL << ADC_CR_ADCAL_Pos)           /*!< 0x80000000 */
3610 #define ADC_CR_ADCAL                      ADC_CR_ADCAL_Msk                      /*!< ADC Calibration */
3611 
3612 /********************  Bit definition for ADC_CFGR register  ********************/
3613 #define ADC_CFGR1_DMNGT_Pos                (0U)
3614 #define ADC_CFGR1_DMNGT_Msk                (0x3UL << ADC_CFGR1_DMNGT_Pos)       /*!< 0x00000003 */
3615 #define ADC_CFGR1_DMNGT                    ADC_CFGR1_DMNGT_Msk                  /*!< ADC Data Management configuration */
3616 #define ADC_CFGR1_DMNGT_0                  (0x1UL << ADC_CFGR1_DMNGT_Pos)       /*!< 0x00000001 */
3617 #define ADC_CFGR1_DMNGT_1                  (0x2UL << ADC_CFGR1_DMNGT_Pos)       /*!< 0x00000002 */
3618 
3619 #define ADC_CFGR1_RES_Pos                  (2U)
3620 #define ADC_CFGR1_RES_Msk                  (0x3UL << ADC_CFGR1_RES_Pos)         /*!< 0x0000000C */
3621 #define ADC_CFGR1_RES                      ADC_CFGR1_RES_Msk                    /*!< ADC Data resolution */
3622 #define ADC_CFGR1_RES_0                    (0x1UL << ADC_CFGR1_RES_Pos)         /*!< 0x00000004 */
3623 #define ADC_CFGR1_RES_1                    (0x2UL << ADC_CFGR1_RES_Pos)         /*!< 0x00000008 */
3624 
3625 #define ADC4_CFGR1_DMAEN_Pos                (0U)
3626 #define ADC4_CFGR1_DMAEN_Msk                (0x1UL << ADC4_CFGR1_DMAEN_Pos)     /*!< 0x00000001 */
3627 #define ADC4_CFGR1_DMAEN                    ADC4_CFGR1_DMAEN_Msk                /*!< ADC DMA transfer enable */
3628 #define ADC4_CFGR1_DMACFG_Pos               (1U)
3629 #define ADC4_CFGR1_DMACFG_Msk               (0x1UL << ADC4_CFGR1_DMACFG_Pos)    /*!< 0x00000002 */
3630 #define ADC4_CFGR1_DMACFG                   ADC4_CFGR1_DMACFG_Msk               /*!< ADC DMA transfer configuration */
3631 
3632 #define ADC4_CFGR1_SCANDIR_Pos              (4U)
3633 #define ADC4_CFGR1_SCANDIR_Msk              (0x1UL << ADC4_CFGR1_SCANDIR_Pos)   /*!< 0x00000004 */
3634 #define ADC4_CFGR1_SCANDIR                  ADC4_CFGR1_SCANDIR_Msk              /*!< ADC group regular sequencer scan direction */
3635 
3636 #define ADC4_CFGR1_ALIGN_Pos                (5U)
3637 #define ADC4_CFGR1_ALIGN_Msk                (0x1UL << ADC4_CFGR1_ALIGN_Pos)     /*!< 0x00000020 */
3638 #define ADC4_CFGR1_ALIGN                    ADC4_CFGR1_ALIGN_Msk                /*!< ADC data alignment */
3639 
3640 #define ADC_CFGR1_EXTSEL_Pos               (5U)
3641 #define ADC_CFGR1_EXTSEL_Msk               (0x1FUL << ADC_CFGR1_EXTSEL_Pos)     /*!< 0x000003E0 */
3642 #define ADC_CFGR1_EXTSEL                   ADC_CFGR1_EXTSEL_Msk                 /*!< ADC External trigger selection for regular group */
3643 #define ADC_CFGR1_EXTSEL_0                 (0x01UL << ADC_CFGR1_EXTSEL_Pos)     /*!< 0x00000020 */
3644 #define ADC_CFGR1_EXTSEL_1                 (0x02UL << ADC_CFGR1_EXTSEL_Pos)     /*!< 0x00000040 */
3645 #define ADC_CFGR1_EXTSEL_2                 (0x04UL << ADC_CFGR1_EXTSEL_Pos)     /*!< 0x00000080 */
3646 #define ADC_CFGR1_EXTSEL_3                 (0x08UL << ADC_CFGR1_EXTSEL_Pos)     /*!< 0x00000100 */
3647 #define ADC_CFGR1_EXTSEL_4                 (0x10UL << ADC_CFGR1_EXTSEL_Pos)     /*!< 0x00000200 */
3648 
3649 #define ADC_CFGR1_EXTEN_Pos                (10U)
3650 #define ADC_CFGR1_EXTEN_Msk                (0x3UL << ADC_CFGR1_EXTEN_Pos)       /*!< 0x00000C00 */
3651 #define ADC_CFGR1_EXTEN                    ADC_CFGR1_EXTEN_Msk                  /*!< ADC External trigger enable and polarity selection for regular channels */
3652 #define ADC_CFGR1_EXTEN_0                  (0x1UL << ADC_CFGR1_EXTEN_Pos)       /*!< 0x00000400 */
3653 #define ADC_CFGR1_EXTEN_1                  (0x2UL << ADC_CFGR1_EXTEN_Pos)       /*!< 0x00000800 */
3654 
3655 #define ADC_CFGR1_OVRMOD_Pos               (12U)
3656 #define ADC_CFGR1_OVRMOD_Msk               (0x1UL << ADC_CFGR1_OVRMOD_Pos)      /*!< 0x00001000 */
3657 #define ADC_CFGR1_OVRMOD                   ADC_CFGR1_OVRMOD_Msk                 /*!< ADC overrun mode */
3658 #define ADC_CFGR1_CONT_Pos                 (13U)
3659 #define ADC_CFGR1_CONT_Msk                 (0x1UL << ADC_CFGR1_CONT_Pos)        /*!< 0x00002000 */
3660 #define ADC_CFGR1_CONT                     ADC_CFGR1_CONT_Msk                   /*!< ADC Single/continuous conversion mode for regular conversion */
3661 
3662 #define ADC_CFGR1_AUTDLY_Pos               (14U)
3663 #define ADC_CFGR1_AUTDLY_Msk               (0x1UL << ADC_CFGR1_AUTDLY_Pos)      /*!< 0x00004000 */
3664 #define ADC_CFGR1_AUTDLY                   ADC_CFGR1_AUTDLY_Msk                 /*!< ADC Delayed conversion mode */
3665 
3666 #define ADC4_CFGR1_WAIT_Pos                (14U)
3667 #define ADC4_CFGR1_WAIT_Msk                (0x1UL << ADC4_CFGR1_WAIT_Pos)       /*!< 0x00004000 */
3668 #define ADC4_CFGR1_WAIT                    ADC4_CFGR1_WAIT_Msk                  /*!< ADC Delayed conversion mode */
3669 
3670 #define ADC_CFGR1_DISCEN_Pos               (16U)
3671 #define ADC_CFGR1_DISCEN_Msk               (0x1UL << ADC_CFGR1_DISCEN_Pos)      /*!< 0x00010000 */
3672 #define ADC_CFGR1_DISCEN                   ADC_CFGR1_DISCEN_Msk                 /*!< ADC Discontinuous mode for regular channels */
3673 
3674 #define ADC_CFGR1_DISCNUM_Pos              (17U)
3675 #define ADC_CFGR1_DISCNUM_Msk              (0x7UL << ADC_CFGR1_DISCNUM_Pos)     /*!< 0x000E0000 */
3676 #define ADC_CFGR1_DISCNUM                  ADC_CFGR1_DISCNUM_Msk                /*!< ADC Discontinuous mode channel count */
3677 #define ADC_CFGR1_DISCNUM_0                (0x1UL << ADC_CFGR1_DISCNUM_Pos)     /*!< 0x00020000 */
3678 #define ADC_CFGR1_DISCNUM_1                (0x2UL << ADC_CFGR1_DISCNUM_Pos)     /*!< 0x00040000 */
3679 #define ADC_CFGR1_DISCNUM_2                (0x4UL << ADC_CFGR1_DISCNUM_Pos)     /*!< 0x00080000 */
3680 
3681 #define ADC_CFGR1_JDISCEN_Pos              (20U)
3682 #define ADC_CFGR1_JDISCEN_Msk              (0x1UL << ADC_CFGR1_JDISCEN_Pos)     /*!< 0x00100000 */
3683 #define ADC_CFGR1_JDISCEN                  ADC_CFGR1_JDISCEN_Msk                /*!< ADC Discontinuous mode on injected channels */
3684 
3685 #define ADC_CFGR1_AWD1SGL_Pos              (22U)
3686 #define ADC_CFGR1_AWD1SGL_Msk              (0x1UL << ADC_CFGR1_AWD1SGL_Pos)     /*!< 0x00400000 */
3687 #define ADC_CFGR1_AWD1SGL                  ADC_CFGR1_AWD1SGL_Msk                /*!< Enable the watchdog 1 on a single channel or on all channels */
3688 #define ADC_CFGR1_AWD1EN_Pos               (23U)
3689 #define ADC_CFGR1_AWD1EN_Msk               (0x1UL << ADC_CFGR1_AWD1EN_Pos)      /*!< 0x00800000 */
3690 #define ADC_CFGR1_AWD1EN                   ADC_CFGR1_AWD1EN_Msk                 /*!< ADC Analog watchdog 1 enable on regular Channels */
3691 #define ADC_CFGR1_JAWD1EN_Pos              (24U)
3692 #define ADC_CFGR1_JAWD1EN_Msk              (0x1UL << ADC_CFGR1_JAWD1EN_Pos)     /*!< 0x01000000 */
3693 #define ADC_CFGR1_JAWD1EN                  ADC_CFGR1_JAWD1EN_Msk                /*!< ADC Analog watchdog 1 enable on injected Channels */
3694 #define ADC_CFGR1_JAUTO_Pos                (25U)
3695 #define ADC_CFGR1_JAUTO_Msk                (0x1UL << ADC_CFGR1_JAUTO_Pos)       /*!< 0x02000000 */
3696 #define ADC_CFGR1_JAUTO                    ADC_CFGR1_JAUTO_Msk                  /*!< ADC Automatic injected group conversion */
3697 
3698 /* Specific ADC4 */
3699 #define ADC4_CFGR1_EXTSEL_Pos               (6U)
3700 #define ADC4_CFGR1_EXTSEL_Msk               (0x7UL << ADC4_CFGR1_EXTSEL_Pos)    /*!< 0x000003E0 */
3701 #define ADC4_CFGR1_EXTSEL                   ADC4_CFGR1_EXTSEL_Msk               /*!< ADC External trigger selection for regular group */
3702 #define ADC4_CFGR1_EXTSEL_0                 (0x01UL << ADC4_CFGR1_EXTSEL_Pos)   /*!< 0x00000020 */
3703 #define ADC4_CFGR1_EXTSEL_1                 (0x02UL << ADC4_CFGR1_EXTSEL_Pos)   /*!< 0x00000040 */
3704 #define ADC4_CFGR1_EXTSEL_2                 (0x04UL << ADC4_CFGR1_EXTSEL_Pos)   /*!< 0x00000080 */
3705 
3706 #define ADC4_CFGR1_CHSELRMOD_Pos           (21U)
3707 #define ADC4_CFGR1_CHSELRMOD_Msk           (0x1UL << ADC4_CFGR1_CHSELRMOD_Pos)  /*!< 0x00200000 */
3708 #define ADC4_CFGR1_CHSELRMOD               ADC4_CFGR1_CHSELRMOD_Msk             /*!< ADC JSQR Queue mode */
3709 
3710 #define ADC_CFGR1_AWD1CH_Pos               (26U)
3711 #define ADC_CFGR1_AWD1CH_Msk               (0x1FUL << ADC_CFGR1_AWD1CH_Pos)     /*!< 0x7C000000 */
3712 #define ADC_CFGR1_AWD1CH                   ADC_CFGR1_AWD1CH_Msk                 /*!< ADC Analog watchdog 1 Channel selection */
3713 #define ADC_CFGR1_AWD1CH_0                 (0x01UL << ADC_CFGR1_AWD1CH_Pos)     /*!< 0x04000000 */
3714 #define ADC_CFGR1_AWD1CH_1                 (0x02UL << ADC_CFGR1_AWD1CH_Pos)     /*!< 0x08000000 */
3715 #define ADC_CFGR1_AWD1CH_2                 (0x04UL << ADC_CFGR1_AWD1CH_Pos)     /*!< 0x10000000 */
3716 #define ADC_CFGR1_AWD1CH_3                 (0x08UL << ADC_CFGR1_AWD1CH_Pos)     /*!< 0x20000000 */
3717 #define ADC_CFGR1_AWD1CH_4                 (0x10UL << ADC_CFGR1_AWD1CH_Pos)     /*!< 0x40000000 */
3718 
3719 /********************  Bit definition for ADC_CFGR2 register  ********************/
3720 #define ADC_CFGR2_ROVSE_Pos               (0U)
3721 #define ADC_CFGR2_ROVSE_Msk               (0x1UL << ADC_CFGR2_ROVSE_Pos)        /*!< 0x00000001 */
3722 #define ADC_CFGR2_ROVSE                   ADC_CFGR2_ROVSE_Msk                   /*!< ADC Regular group oversampler enable */
3723 #define ADC_CFGR2_JOVSE_Pos               (1U)
3724 #define ADC_CFGR2_JOVSE_Msk               (0x1UL << ADC_CFGR2_JOVSE_Pos)        /*!< 0x00000002 */
3725 #define ADC_CFGR2_JOVSE                   ADC_CFGR2_JOVSE_Msk                   /*!< ADC Injected group oversampler enable */
3726 
3727 #define ADC_CFGR2_OVSS_Pos                (5U)
3728 #define ADC_CFGR2_OVSS_Msk                (0xFUL << ADC_CFGR2_OVSS_Pos)         /*!< 0x000001E0 */
3729 #define ADC_CFGR2_OVSS                    ADC_CFGR2_OVSS_Msk                    /*!< ADC Regular Oversampling shift */
3730 #define ADC_CFGR2_OVSS_0                  (0x1UL << ADC_CFGR2_OVSS_Pos)         /*!< 0x00000020 */
3731 #define ADC_CFGR2_OVSS_1                  (0x2UL << ADC_CFGR2_OVSS_Pos)         /*!< 0x00000040 */
3732 #define ADC_CFGR2_OVSS_2                  (0x4UL << ADC_CFGR2_OVSS_Pos)         /*!< 0x00000080 */
3733 #define ADC_CFGR2_OVSS_3                  (0x8UL << ADC_CFGR2_OVSS_Pos)         /*!< 0x00000100 */
3734 
3735 #define ADC_CFGR2_TROVS_Pos               (9U)
3736 #define ADC_CFGR2_TROVS_Msk               (0x1UL << ADC_CFGR2_TROVS_Pos)        /*!< 0x00000200 */
3737 #define ADC_CFGR2_TROVS                   ADC_CFGR2_TROVS_Msk                   /*!< ADC Triggered regular Oversampling */
3738 #define ADC_CFGR2_ROVSM_Pos               (10U)
3739 #define ADC_CFGR2_ROVSM_Msk               (0x1UL << ADC_CFGR2_ROVSM_Pos)        /*!< 0x00000400 */
3740 #define ADC_CFGR2_ROVSM                   ADC_CFGR2_ROVSM_Msk                   /*!< ADC Regular oversampling mode */
3741 
3742 #define ADC_CFGR2_OVSR_Pos                (16U)
3743 #define ADC_CFGR2_OVSR_Msk                (0x3FFUL << ADC_CFGR2_OVSR_Pos)       /*!< 0x03FF0000 */
3744 #define ADC_CFGR2_OVSR                    ADC_CFGR2_OVSR_Msk                    /*!< ADC oversampling Ratio */
3745 #define ADC_CFGR2_OVSR_0                  (0x001UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x00010000 */
3746 #define ADC_CFGR2_OVSR_1                  (0x002UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x00020000 */
3747 #define ADC_CFGR2_OVSR_2                  (0x004UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x00040000 */
3748 #define ADC_CFGR2_OVSR_3                  (0x008UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x00080000 */
3749 #define ADC_CFGR2_OVSR_4                  (0x010UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x00100000 */
3750 #define ADC_CFGR2_OVSR_5                  (0x020UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x00200000 */
3751 #define ADC_CFGR2_OVSR_6                  (0x040UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x00400000 */
3752 #define ADC_CFGR2_OVSR_7                  (0x080UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x00800000 */
3753 #define ADC_CFGR2_OVSR_8                  (0x100UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x01000000 */
3754 #define ADC_CFGR2_OVSR_9                  (0x200UL << ADC_CFGR2_OVSR_Pos)       /*!< 0x02000000 */
3755 
3756 #define ADC_CFGR2_BULB_Pos                (13U)
3757 #define ADC_CFGR2_BULB_Msk                (0x1UL << ADC_CFGR2_BULB_Pos)         /*!< 0x00002000 */
3758 #define ADC_CFGR2_BULB                    ADC_CFGR2_BULB_Msk                    /*!< ADC Bulb sampling mode */
3759 
3760 #define ADC_CFGR2_SWTRIG_Pos              (14U)
3761 #define ADC_CFGR2_SWTRIG_Msk              (0x1UL << ADC_CFGR2_SWTRIG_Pos)       /*!< 0x00004000 */
3762 #define ADC_CFGR2_SWTRIG                  ADC_CFGR2_SWTRIG_Msk                  /*!< ADC Software trigger bit for sampling time control trigger mode */
3763 
3764 #define ADC_CFGR2_SMPTRIG_Pos             (15U)
3765 #define ADC_CFGR2_SMPTRIG_Msk             (0x1UL << ADC_CFGR2_SMPTRIG_Pos)      /*!< 0x00008000 */
3766 #define ADC_CFGR2_SMPTRIG                 ADC_CFGR2_SMPTRIG_Msk                 /*!< ADC Sampling time control trigger mode */
3767 
3768 #define ADC_CFGR2_LFTRIG_Pos              (27U)
3769 #define ADC_CFGR2_LFTRIG_Msk              (0x1UL << ADC_CFGR2_LFTRIG_Pos)       /*!< 0x08000000 */
3770 #define ADC_CFGR2_LFTRIG                  ADC_CFGR2_LFTRIG_Msk                  /*!< ADC low frequency trigger mode */
3771 
3772 #define ADC_CFGR2_LSHIFT_Pos              (28U)
3773 #define ADC_CFGR2_LSHIFT_Msk              (0xFUL << ADC_CFGR2_LSHIFT_Pos)       /*!< 0xF0000000 */
3774 #define ADC_CFGR2_LSHIFT                  ADC_CFGR2_LSHIFT_Msk                  /*!< ADC Left shift factor */
3775 #define ADC_CFGR2_LSHIFT_0                (0x1UL << ADC_CFGR2_LSHIFT_Pos)       /*!< 0x10000000 */
3776 #define ADC_CFGR2_LSHIFT_1                (0x2UL << ADC_CFGR2_LSHIFT_Pos)       /*!< 0x20000000 */
3777 #define ADC_CFGR2_LSHIFT_2                (0x4UL << ADC_CFGR2_LSHIFT_Pos)       /*!< 0x40000000 */
3778 #define ADC_CFGR2_LSHIFT_3                (0x8UL << ADC_CFGR2_LSHIFT_Pos)       /*!< 0x80000000 */
3779 
3780 /* Specific ADC4 */
3781 #define ADC4_CFGR2_OVSR_Pos               (2U)
3782 #define ADC4_CFGR2_OVSR_Msk               (0x7UL << ADC4_CFGR2_OVSR_Pos)        /*!< 0x0000001C */
3783 #define ADC4_CFGR2_OVSR                   ADC4_CFGR2_OVSR_Msk                   /*!< ADC oversampling ratio */
3784 #define ADC4_CFGR2_OVSR_0                 (0x1UL << ADC4_CFGR2_OVSR_Pos)        /*!< 0x00000004 */
3785 #define ADC4_CFGR2_OVSR_1                 (0x2UL << ADC4_CFGR2_OVSR_Pos)        /*!< 0x00000008 */
3786 #define ADC4_CFGR2_OVSR_2                 (0x4UL << ADC4_CFGR2_OVSR_Pos)        /*!< 0x00000010 */
3787 
3788 #define ADC4_CFGR2_LFTRIG_Pos             (29U)
3789 #define ADC4_CFGR2_LFTRIG_Msk             (0x1UL << ADC4_CFGR2_LFTRIG_Pos)      /*!< 0x20000000 */
3790 #define ADC4_CFGR2_LFTRIG                 ADC4_CFGR2_LFTRIG_Msk                 /*!< ADC4 low frequency trigger mode */
3791 
3792 /********************  Bit definition for ADC_SMPR1 register  ********************/
3793 #define ADC_SMPR1_SMP0_Pos                (0U)
3794 #define ADC_SMPR1_SMP0_Msk                (0x7UL << ADC_SMPR1_SMP0_Pos)         /*!< 0x00000007 */
3795 #define ADC_SMPR1_SMP0                    ADC_SMPR1_SMP0_Msk                    /*!< ADC Channel 0 Sampling time selection  */
3796 #define ADC_SMPR1_SMP0_0                  (0x1UL << ADC_SMPR1_SMP0_Pos)         /*!< 0x00000001 */
3797 #define ADC_SMPR1_SMP0_1                  (0x2UL << ADC_SMPR1_SMP0_Pos)         /*!< 0x00000002 */
3798 #define ADC_SMPR1_SMP0_2                  (0x4UL << ADC_SMPR1_SMP0_Pos)         /*!< 0x00000004 */
3799 
3800 #define ADC_SMPR1_SMP1_Pos                (3U)
3801 #define ADC_SMPR1_SMP1_Msk                (0x7UL << ADC_SMPR1_SMP1_Pos)         /*!< 0x00000038 */
3802 #define ADC_SMPR1_SMP1                    ADC_SMPR1_SMP1_Msk                    /*!< ADC Channel 1 Sampling time selection  */
3803 #define ADC_SMPR1_SMP1_0                  (0x1UL << ADC_SMPR1_SMP1_Pos)         /*!< 0x00000008 */
3804 #define ADC_SMPR1_SMP1_1                  (0x2UL << ADC_SMPR1_SMP1_Pos)         /*!< 0x00000010 */
3805 #define ADC_SMPR1_SMP1_2                  (0x4UL << ADC_SMPR1_SMP1_Pos)         /*!< 0x00000020 */
3806 
3807 #define ADC_SMPR1_SMP2_Pos                (6U)
3808 #define ADC_SMPR1_SMP2_Msk                (0x7UL << ADC_SMPR1_SMP2_Pos)         /*!< 0x000001C0 */
3809 #define ADC_SMPR1_SMP2                    ADC_SMPR1_SMP2_Msk                    /*!< ADC Channel 2 Sampling time selection  */
3810 #define ADC_SMPR1_SMP2_0                  (0x1UL << ADC_SMPR1_SMP2_Pos)         /*!< 0x00000040 */
3811 #define ADC_SMPR1_SMP2_1                  (0x2UL << ADC_SMPR1_SMP2_Pos)         /*!< 0x00000080 */
3812 #define ADC_SMPR1_SMP2_2                  (0x4UL << ADC_SMPR1_SMP2_Pos)         /*!< 0x00000100 */
3813 
3814 #define ADC_SMPR1_SMP3_Pos                (9U)
3815 #define ADC_SMPR1_SMP3_Msk                (0x7UL << ADC_SMPR1_SMP3_Pos)         /*!< 0x00000E00 */
3816 #define ADC_SMPR1_SMP3                    ADC_SMPR1_SMP3_Msk                    /*!< ADC Channel 3 Sampling time selection  */
3817 #define ADC_SMPR1_SMP3_0                  (0x1UL << ADC_SMPR1_SMP3_Pos)         /*!< 0x00000200 */
3818 #define ADC_SMPR1_SMP3_1                  (0x2UL << ADC_SMPR1_SMP3_Pos)         /*!< 0x00000400 */
3819 #define ADC_SMPR1_SMP3_2                  (0x4UL << ADC_SMPR1_SMP3_Pos)         /*!< 0x00000800 */
3820 
3821 #define ADC_SMPR1_SMP4_Pos                (12U)
3822 #define ADC_SMPR1_SMP4_Msk                (0x7UL << ADC_SMPR1_SMP4_Pos)         /*!< 0x00007000 */
3823 #define ADC_SMPR1_SMP4                    ADC_SMPR1_SMP4_Msk                    /*!< ADC Channel 4 Sampling time selection  */
3824 #define ADC_SMPR1_SMP4_0                  (0x1UL << ADC_SMPR1_SMP4_Pos)         /*!< 0x00001000 */
3825 #define ADC_SMPR1_SMP4_1                  (0x2UL << ADC_SMPR1_SMP4_Pos)         /*!< 0x00002000 */
3826 #define ADC_SMPR1_SMP4_2                  (0x4UL << ADC_SMPR1_SMP4_Pos)         /*!< 0x00004000 */
3827 
3828 #define ADC_SMPR1_SMP5_Pos                (15U)
3829 #define ADC_SMPR1_SMP5_Msk                (0x7UL << ADC_SMPR1_SMP5_Pos)         /*!< 0x00038000 */
3830 #define ADC_SMPR1_SMP5                    ADC_SMPR1_SMP5_Msk                    /*!< ADC Channel 5 Sampling time selection  */
3831 #define ADC_SMPR1_SMP5_0                  (0x1UL << ADC_SMPR1_SMP5_Pos)         /*!< 0x00008000 */
3832 #define ADC_SMPR1_SMP5_1                  (0x2UL << ADC_SMPR1_SMP5_Pos)         /*!< 0x00010000 */
3833 #define ADC_SMPR1_SMP5_2                  (0x4UL << ADC_SMPR1_SMP5_Pos)         /*!< 0x00020000 */
3834 
3835 #define ADC_SMPR1_SMP6_Pos                (18U)
3836 #define ADC_SMPR1_SMP6_Msk                (0x7UL << ADC_SMPR1_SMP6_Pos)         /*!< 0x001C0000 */
3837 #define ADC_SMPR1_SMP6                    ADC_SMPR1_SMP6_Msk                    /*!< ADC Channel 6 Sampling time selection  */
3838 #define ADC_SMPR1_SMP6_0                  (0x1UL << ADC_SMPR1_SMP6_Pos)         /*!< 0x00040000 */
3839 #define ADC_SMPR1_SMP6_1                  (0x2UL << ADC_SMPR1_SMP6_Pos)         /*!< 0x00080000 */
3840 #define ADC_SMPR1_SMP6_2                  (0x4UL << ADC_SMPR1_SMP6_Pos)         /*!< 0x00100000 */
3841 
3842 #define ADC_SMPR1_SMP7_Pos                (21U)
3843 #define ADC_SMPR1_SMP7_Msk                (0x7UL << ADC_SMPR1_SMP7_Pos)         /*!< 0x00E00000 */
3844 #define ADC_SMPR1_SMP7                    ADC_SMPR1_SMP7_Msk                    /*!< ADC Channel 7 Sampling time selection  */
3845 #define ADC_SMPR1_SMP7_0                  (0x1UL << ADC_SMPR1_SMP7_Pos)         /*!< 0x00200000 */
3846 #define ADC_SMPR1_SMP7_1                  (0x2UL << ADC_SMPR1_SMP7_Pos)         /*!< 0x00400000 */
3847 #define ADC_SMPR1_SMP7_2                  (0x4UL << ADC_SMPR1_SMP7_Pos)         /*!< 0x00800000 */
3848 
3849 #define ADC_SMPR1_SMP8_Pos                (24U)
3850 #define ADC_SMPR1_SMP8_Msk                (0x7UL << ADC_SMPR1_SMP8_Pos)         /*!< 0x07000000 */
3851 #define ADC_SMPR1_SMP8                    ADC_SMPR1_SMP8_Msk                    /*!< ADC Channel 8 Sampling time selection  */
3852 #define ADC_SMPR1_SMP8_0                  (0x1UL << ADC_SMPR1_SMP8_Pos)         /*!< 0x01000000 */
3853 #define ADC_SMPR1_SMP8_1                  (0x2UL << ADC_SMPR1_SMP8_Pos)         /*!< 0x02000000 */
3854 #define ADC_SMPR1_SMP8_2                  (0x4UL << ADC_SMPR1_SMP8_Pos)         /*!< 0x04000000 */
3855 
3856 #define ADC_SMPR1_SMP9_Pos                (27U)
3857 #define ADC_SMPR1_SMP9_Msk                (0x7UL << ADC_SMPR1_SMP9_Pos)         /*!< 0x38000000 */
3858 #define ADC_SMPR1_SMP9                    ADC_SMPR1_SMP9_Msk                    /*!< ADC Channel 9 Sampling time selection  */
3859 #define ADC_SMPR1_SMP9_0                  (0x1UL << ADC_SMPR1_SMP9_Pos)         /*!< 0x08000000 */
3860 #define ADC_SMPR1_SMP9_1                  (0x2UL << ADC_SMPR1_SMP9_Pos)         /*!< 0x10000000 */
3861 #define ADC_SMPR1_SMP9_2                  (0x4UL << ADC_SMPR1_SMP9_Pos)         /*!< 0x20000000 */
3862 
3863 #define ADC4_SMPR_SMP1_Pos                (0U)
3864 #define ADC4_SMPR_SMP1_Msk                (0x7UL << ADC4_SMPR_SMP1_Pos)         /*!< 0x00000007 */
3865 #define ADC4_SMPR_SMP1                    ADC4_SMPR_SMP1_Msk                    /*!< ADC Channel 0 Sampling time selection  */
3866 #define ADC4_SMPR_SMP1_0                  (0x1UL << ADC4_SMPR_SMP1_Pos)         /*!< 0x00000001 */
3867 #define ADC4_SMPR_SMP1_1                  (0x2UL << ADC4_SMPR_SMP1_Pos)         /*!< 0x00000002 */
3868 #define ADC4_SMPR_SMP1_2                  (0x4UL << ADC4_SMPR_SMP1_Pos)         /*!< 0x00000004 */
3869 
3870 #define ADC4_SMPR_SMP2_Pos                (4U)
3871 #define ADC4_SMPR_SMP2_Msk                (0x7UL << ADC4_SMPR_SMP2_Pos)         /*!< 0x00000070 */
3872 #define ADC4_SMPR_SMP2                    ADC4_SMPR_SMP2_Msk                    /*!< ADC group of channels sampling time 2 */
3873 #define ADC4_SMPR_SMP2_0                  (0x1UL << ADC4_SMPR_SMP2_Pos)         /*!< 0x00000010 */
3874 #define ADC4_SMPR_SMP2_1                  (0x2UL << ADC4_SMPR_SMP2_Pos)         /*!< 0x00000020 */
3875 #define ADC4_SMPR_SMP2_2                  (0x4UL << ADC4_SMPR_SMP2_Pos)         /*!< 0x00000040 */
3876 
3877 #define ADC4_SMPR_SMPSEL_Pos              (8U)
3878 #define ADC4_SMPR_SMPSEL_Msk              (0xFFFFFFUL << ADC4_SMPR_SMPSEL_Pos)  /*!< 0xFFFFFF00 */
3879 #define ADC4_SMPR_SMPSEL                  ADC4_SMPR_SMPSEL_Msk                  /*!< ADC4 all channels sampling time selection */
3880 #define ADC4_SMPR_SMPSEL0_Pos             (8U)
3881 #define ADC4_SMPR_SMPSEL0_Msk             (0x1UL << ADC4_SMPR_SMPSEL0_Pos)      /*!< 0x00000100 */
3882 #define ADC4_SMPR_SMPSEL0                 ADC4_SMPR_SMPSEL0_Msk                 /*!< ADC4 channel 0 sampling time selection */
3883 #define ADC4_SMPR_SMPSEL1_Pos             (9U)
3884 #define ADC4_SMPR_SMPSEL1_Msk             (0x1UL << ADC4_SMPR_SMPSEL1_Pos)      /*!< 0x00000200 */
3885 #define ADC4_SMPR_SMPSEL1                 ADC4_SMPR_SMPSEL1_Msk                 /*!< ADC4 channel 1 sampling time selection */
3886 #define ADC4_SMPR_SMPSEL2_Pos             (10U)
3887 #define ADC4_SMPR_SMPSEL2_Msk             (0x1UL << ADC4_SMPR_SMPSEL2_Pos)      /*!< 0x00000400 */
3888 #define ADC4_SMPR_SMPSEL2                 ADC4_SMPR_SMPSEL2_Msk                 /*!< ADC4 channel 2 sampling time selection */
3889 #define ADC4_SMPR_SMPSEL3_Pos             (11U)
3890 #define ADC4_SMPR_SMPSEL3_Msk             (0x1UL << ADC4_SMPR_SMPSEL3_Pos)      /*!< 0x00000800 */
3891 #define ADC4_SMPR_SMPSEL3                 ADC4_SMPR_SMPSEL3_Msk                 /*!< ADC4 channel 3 sampling time selection */
3892 #define ADC4_SMPR_SMPSEL4_Pos             (12U)
3893 #define ADC4_SMPR_SMPSEL4_Msk             (0x1UL << ADC4_SMPR_SMPSEL4_Pos)      /*!< 0x00001000 */
3894 #define ADC4_SMPR_SMPSEL4                 ADC4_SMPR_SMPSEL4_Msk                 /*!< ADC4 channel 4 sampling time selection */
3895 #define ADC4_SMPR_SMPSEL5_Pos             (13U)
3896 #define ADC4_SMPR_SMPSEL5_Msk             (0x1UL << ADC4_SMPR_SMPSEL5_Pos)      /*!< 0x00002000 */
3897 #define ADC4_SMPR_SMPSEL5                 ADC4_SMPR_SMPSEL5_Msk                 /*!< ADC4 channel 5 sampling time selection */
3898 #define ADC4_SMPR_SMPSEL6_Pos             (14U)
3899 #define ADC4_SMPR_SMPSEL6_Msk             (0x1UL << ADC4_SMPR_SMPSEL6_Pos)      /*!< 0x00004000 */
3900 #define ADC4_SMPR_SMPSEL6                 ADC4_SMPR_SMPSEL6_Msk                 /*!< ADC4 channel 6 sampling time selection */
3901 #define ADC4_SMPR_SMPSEL7_Pos             (15U)
3902 #define ADC4_SMPR_SMPSEL7_Msk             (0x1UL << ADC4_SMPR_SMPSEL7_Pos)      /*!< 0x00008000 */
3903 #define ADC4_SMPR_SMPSEL7                 ADC4_SMPR_SMPSEL7_Msk                 /*!< ADC4 channel 7 sampling time selection */
3904 #define ADC4_SMPR_SMPSEL8_Pos             (16U)
3905 #define ADC4_SMPR_SMPSEL8_Msk             (0x1UL << ADC4_SMPR_SMPSEL8_Pos)      /*!< 0x00010000 */
3906 #define ADC4_SMPR_SMPSEL8                 ADC4_SMPR_SMPSEL8_Msk                 /*!< ADC4 channel 8 sampling time selection */
3907 #define ADC4_SMPR_SMPSEL9_Pos             (17U)
3908 #define ADC4_SMPR_SMPSEL9_Msk             (0x1UL << ADC4_SMPR_SMPSEL9_Pos)      /*!< 0x00020000 */
3909 #define ADC4_SMPR_SMPSEL9                 ADC4_SMPR_SMPSEL9_Msk                 /*!< ADC4 channel 9 sampling time selection */
3910 #define ADC4_SMPR_SMPSEL10_Pos            (18U)
3911 #define ADC4_SMPR_SMPSEL10_Msk            (0x1UL << ADC4_SMPR_SMPSEL10_Pos)     /*!< 0x00040000 */
3912 #define ADC4_SMPR_SMPSEL10                ADC4_SMPR_SMPSEL10_Msk                /*!< ADC4 channel 10 sampling time selection */
3913 #define ADC4_SMPR_SMPSEL11_Pos            (19U)
3914 #define ADC4_SMPR_SMPSEL11_Msk            (0x1UL << ADC4_SMPR_SMPSEL11_Pos)     /*!< 0x00080000 */
3915 #define ADC4_SMPR_SMPSEL11                ADC4_SMPR_SMPSEL11_Msk                /*!< ADC4 channel 11 sampling time selection */
3916 #define ADC4_SMPR_SMPSEL12_Pos            (20U)
3917 #define ADC4_SMPR_SMPSEL12_Msk            (0x1UL << ADC4_SMPR_SMPSEL12_Pos)     /*!< 0x00100000 */
3918 #define ADC4_SMPR_SMPSEL12                ADC4_SMPR_SMPSEL12_Msk                /*!< ADC4 channel 12 sampling time selection */
3919 #define ADC4_SMPR_SMPSEL13_Pos            (21U)
3920 #define ADC4_SMPR_SMPSEL13_Msk            (0x1UL << ADC4_SMPR_SMPSEL13_Pos)     /*!< 0x00200000 */
3921 #define ADC4_SMPR_SMPSEL13                ADC4_SMPR_SMPSEL13_Msk                /*!< ADC4 channel 13 sampling time selection */
3922 #define ADC4_SMPR_SMPSEL14_Pos            (22U)
3923 #define ADC4_SMPR_SMPSEL14_Msk            (0x1UL << ADC4_SMPR_SMPSEL14_Pos)     /*!< 0x00400000 */
3924 #define ADC4_SMPR_SMPSEL14                ADC4_SMPR_SMPSEL14_Msk                /*!< ADC4 channel 14 sampling time selection */
3925 #define ADC4_SMPR_SMPSEL15_Pos            (23U)
3926 #define ADC4_SMPR_SMPSEL15_Msk            (0x1UL << ADC4_SMPR_SMPSEL15_Pos)     /*!< 0x00800000 */
3927 #define ADC4_SMPR_SMPSEL15                ADC4_SMPR_SMPSEL15_Msk                /*!< ADC4 channel 15 sampling time selection */
3928 #define ADC4_SMPR_SMPSEL16_Pos            (24U)
3929 #define ADC4_SMPR_SMPSEL16_Msk            (0x1UL << ADC4_SMPR_SMPSEL16_Pos)     /*!< 0x01000000 */
3930 #define ADC4_SMPR_SMPSEL16                ADC4_SMPR_SMPSEL16_Msk                /*!< ADC4 channel 16 sampling time selection */
3931 #define ADC4_SMPR_SMPSEL17_Pos            (25U)
3932 #define ADC4_SMPR_SMPSEL17_Msk            (0x1UL << ADC4_SMPR_SMPSEL17_Pos)     /*!< 0x02000000 */
3933 #define ADC4_SMPR_SMPSEL17                ADC4_SMPR_SMPSEL17_Msk                /*!< ADC4 channel 17 sampling time selection */
3934 #define ADC4_SMPR_SMPSEL18_Pos            (26U)
3935 #define ADC4_SMPR_SMPSEL18_Msk            (0x1UL << ADC4_SMPR_SMPSEL18_Pos)     /*!< 0x04000000 */
3936 #define ADC4_SMPR_SMPSEL18                ADC4_SMPR_SMPSEL18_Msk                /*!< ADC4 channel 18 sampling time selection */
3937 #define ADC4_SMPR_SMPSEL19_Pos            (27U)
3938 #define ADC4_SMPR_SMPSEL19_Msk            (0x1UL << ADC4_SMPR_SMPSEL19_Pos)     /*!< 0x08000000 */
3939 #define ADC4_SMPR_SMPSEL19                ADC4_SMPR_SMPSEL19_Msk                /*!< ADC4 channel 19 sampling time selection */
3940 #define ADC4_SMPR_SMPSEL20_Pos            (26U)
3941 #define ADC4_SMPR_SMPSEL20_Msk            (0x1UL << ADC4_SMPR_SMPSEL20_Pos)     /*!< 0x10000000 */
3942 #define ADC4_SMPR_SMPSEL20                ADC4_SMPR_SMPSEL20_Msk                /*!< ADC4 channel 20 sampling time selection */
3943 #define ADC4_SMPR_SMPSEL21_Pos            (26U)
3944 #define ADC4_SMPR_SMPSEL21_Msk            (0x1UL << ADC4_SMPR_SMPSEL21_Pos)     /*!< 0x20000000 */
3945 #define ADC4_SMPR_SMPSEL21                ADC4_SMPR_SMPSEL21_Msk                /*!< ADC4 channel 20 sampling time selection */
3946 #define ADC4_SMPR_SMPSEL22_Pos            (30U)
3947 #define ADC4_SMPR_SMPSEL22_Msk            (0x1UL << ADC4_SMPR_SMPSEL22_Pos)     /*!< 0x40000000 */
3948 #define ADC4_SMPR_SMPSEL22                ADC4_SMPR_SMPSEL22_Msk                /*!< ADC4 channel 21 sampling time selection */
3949 #define ADC4_SMPR_SMPSEL23_Pos            (31U)
3950 #define ADC4_SMPR_SMPSEL23_Msk            (0x1UL << ADC4_SMPR_SMPSEL23_Pos)     /*!< 0x80000000 */
3951 #define ADC4_SMPR_SMPSEL23                ADC4_SMPR_SMPSEL23_Msk                /*!< ADC4 channel 23 sampling time selection */
3952 
3953 /********************  Bit definition for ADC_SMPR2 register  ********************/
3954 #define ADC_SMPR2_SMP10_Pos               (0U)
3955 #define ADC_SMPR2_SMP10_Msk               (0x7UL << ADC_SMPR2_SMP10_Pos)        /*!< 0x00000007 */
3956 #define ADC_SMPR2_SMP10                   ADC_SMPR2_SMP10_Msk                   /*!< ADC Channel 10 Sampling time selection  */
3957 #define ADC_SMPR2_SMP10_0                 (0x1UL << ADC_SMPR2_SMP10_Pos)        /*!< 0x00000001 */
3958 #define ADC_SMPR2_SMP10_1                 (0x2UL << ADC_SMPR2_SMP10_Pos)        /*!< 0x00000002 */
3959 #define ADC_SMPR2_SMP10_2                 (0x4UL << ADC_SMPR2_SMP10_Pos)        /*!< 0x00000004 */
3960 
3961 #define ADC_SMPR2_SMP11_Pos               (3U)
3962 #define ADC_SMPR2_SMP11_Msk               (0x7UL << ADC_SMPR2_SMP11_Pos)        /*!< 0x00000038 */
3963 #define ADC_SMPR2_SMP11                   ADC_SMPR2_SMP11_Msk                   /*!< ADC Channel 11 Sampling time selection  */
3964 #define ADC_SMPR2_SMP11_0                 (0x1UL << ADC_SMPR2_SMP11_Pos)        /*!< 0x00000008 */
3965 #define ADC_SMPR2_SMP11_1                 (0x2UL << ADC_SMPR2_SMP11_Pos)        /*!< 0x00000010 */
3966 #define ADC_SMPR2_SMP11_2                 (0x4UL << ADC_SMPR2_SMP11_Pos)        /*!< 0x00000020 */
3967 
3968 #define ADC_SMPR2_SMP12_Pos               (6U)
3969 #define ADC_SMPR2_SMP12_Msk               (0x7UL << ADC_SMPR2_SMP12_Pos)        /*!< 0x000001C0 */
3970 #define ADC_SMPR2_SMP12                   ADC_SMPR2_SMP12_Msk                   /*!< ADC Channel 12 Sampling time selection  */
3971 #define ADC_SMPR2_SMP12_0                 (0x1UL << ADC_SMPR2_SMP12_Pos)        /*!< 0x00000040 */
3972 #define ADC_SMPR2_SMP12_1                 (0x2UL << ADC_SMPR2_SMP12_Pos)        /*!< 0x00000080 */
3973 #define ADC_SMPR2_SMP12_2                 (0x4UL << ADC_SMPR2_SMP12_Pos)        /*!< 0x00000100 */
3974 
3975 #define ADC_SMPR2_SMP13_Pos               (9U)
3976 #define ADC_SMPR2_SMP13_Msk               (0x7UL << ADC_SMPR2_SMP13_Pos)        /*!< 0x00000E00 */
3977 #define ADC_SMPR2_SMP13                   ADC_SMPR2_SMP13_Msk                   /*!< ADC Channel 13 Sampling time selection  */
3978 #define ADC_SMPR2_SMP13_0                 (0x1UL << ADC_SMPR2_SMP13_Pos)        /*!< 0x00000200 */
3979 #define ADC_SMPR2_SMP13_1                 (0x2UL << ADC_SMPR2_SMP13_Pos)        /*!< 0x00000400 */
3980 #define ADC_SMPR2_SMP13_2                 (0x4UL << ADC_SMPR2_SMP13_Pos)        /*!< 0x00000800 */
3981 
3982 #define ADC_SMPR2_SMP14_Pos               (12U)
3983 #define ADC_SMPR2_SMP14_Msk               (0x7UL << ADC_SMPR2_SMP14_Pos)        /*!< 0x00007000 */
3984 #define ADC_SMPR2_SMP14                   ADC_SMPR2_SMP14_Msk                   /*!< ADC Channel 14 Sampling time selection  */
3985 #define ADC_SMPR2_SMP14_0                 (0x1UL << ADC_SMPR2_SMP14_Pos)        /*!< 0x00001000 */
3986 #define ADC_SMPR2_SMP14_1                 (0x2UL << ADC_SMPR2_SMP14_Pos)        /*!< 0x00002000 */
3987 #define ADC_SMPR2_SMP14_2                 (0x4UL << ADC_SMPR2_SMP14_Pos)        /*!< 0x00004000 */
3988 
3989 #define ADC_SMPR2_SMP15_Pos               (15U)
3990 #define ADC_SMPR2_SMP15_Msk               (0x7UL << ADC_SMPR2_SMP15_Pos)        /*!< 0x00038000 */
3991 #define ADC_SMPR2_SMP15                   ADC_SMPR2_SMP15_Msk                   /*!< ADC Channel 15 Sampling time selection  */
3992 #define ADC_SMPR2_SMP15_0                 (0x1UL << ADC_SMPR2_SMP15_Pos)        /*!< 0x00008000 */
3993 #define ADC_SMPR2_SMP15_1                 (0x2UL << ADC_SMPR2_SMP15_Pos)        /*!< 0x00010000 */
3994 #define ADC_SMPR2_SMP15_2                 (0x4UL << ADC_SMPR2_SMP15_Pos)        /*!< 0x00020000 */
3995 
3996 #define ADC_SMPR2_SMP16_Pos               (18U)
3997 #define ADC_SMPR2_SMP16_Msk               (0x7UL << ADC_SMPR2_SMP16_Pos)        /*!< 0x001C0000 */
3998 #define ADC_SMPR2_SMP16                   ADC_SMPR2_SMP16_Msk                   /*!< ADC Channel 16 Sampling time selection  */
3999 #define ADC_SMPR2_SMP16_0                 (0x1UL << ADC_SMPR2_SMP16_Pos)        /*!< 0x00040000 */
4000 #define ADC_SMPR2_SMP16_1                 (0x2UL << ADC_SMPR2_SMP16_Pos)        /*!< 0x00080000 */
4001 #define ADC_SMPR2_SMP16_2                 (0x4UL << ADC_SMPR2_SMP16_Pos)        /*!< 0x00100000 */
4002 
4003 #define ADC_SMPR2_SMP17_Pos               (21U)
4004 #define ADC_SMPR2_SMP17_Msk               (0x7UL << ADC_SMPR2_SMP17_Pos)        /*!< 0x00E00000 */
4005 #define ADC_SMPR2_SMP17                   ADC_SMPR2_SMP17_Msk                   /*!< ADC Channel 17 Sampling time selection  */
4006 #define ADC_SMPR2_SMP17_0                 (0x1UL << ADC_SMPR2_SMP17_Pos)        /*!< 0x00200000 */
4007 #define ADC_SMPR2_SMP17_1                 (0x2UL << ADC_SMPR2_SMP17_Pos)        /*!< 0x00400000 */
4008 #define ADC_SMPR2_SMP17_2                 (0x4UL << ADC_SMPR2_SMP17_Pos)        /*!< 0x00800000 */
4009 
4010 #define ADC_SMPR2_SMP18_Pos               (24U)
4011 #define ADC_SMPR2_SMP18_Msk               (0x7UL << ADC_SMPR2_SMP18_Pos)        /*!< 0x07000000 */
4012 #define ADC_SMPR2_SMP18                   ADC_SMPR2_SMP18_Msk                   /*!< ADC Channel 18 Sampling time selection  */
4013 #define ADC_SMPR2_SMP18_0                 (0x1UL << ADC_SMPR2_SMP18_Pos)        /*!< 0x01000000 */
4014 #define ADC_SMPR2_SMP18_1                 (0x2UL << ADC_SMPR2_SMP18_Pos)        /*!< 0x02000000 */
4015 #define ADC_SMPR2_SMP18_2                 (0x4UL << ADC_SMPR2_SMP18_Pos)        /*!< 0x04000000 */
4016 
4017 #define ADC_SMPR2_SMP19_Pos               (27U)
4018 #define ADC_SMPR2_SMP19_Msk               (0x7UL << ADC_SMPR2_SMP19_Pos)        /*!< 0x38000000 */
4019 #define ADC_SMPR2_SMP19                   ADC_SMPR2_SMP19_Msk                   /*!< ADC Channel 19 Sampling time selection  */
4020 #define ADC_SMPR2_SMP19_0                 (0x1UL << ADC_SMPR2_SMP19_Pos)        /*!< 0x08000000 */
4021 #define ADC_SMPR2_SMP19_1                 (0x2UL << ADC_SMPR2_SMP19_Pos)        /*!< 0x10000000 */
4022 #define ADC_SMPR2_SMP19_2                 (0x4UL << ADC_SMPR2_SMP19_Pos)        /*!< 0x20000000 */
4023 
4024 /********************  Bit definition for ADC_PCSEL register  ********************/
4025 #define ADC_PCSEL_PCSEL_Pos               (0U)
4026 #define ADC_PCSEL_PCSEL_Msk               (0xFFFFFUL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x000FFFFF */
4027 #define ADC_PCSEL_PCSEL                   ADC_PCSEL_PCSEL_Msk                   /*!< ADC pre channel selection */
4028 #define ADC_PCSEL_PCSEL_0                 (0x00001UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000001 */
4029 #define ADC_PCSEL_PCSEL_1                 (0x00002UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000002 */
4030 #define ADC_PCSEL_PCSEL_2                 (0x00004UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000004 */
4031 #define ADC_PCSEL_PCSEL_3                 (0x00008UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000008 */
4032 #define ADC_PCSEL_PCSEL_4                 (0x00010UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000010 */
4033 #define ADC_PCSEL_PCSEL_5                 (0x00020UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000020 */
4034 #define ADC_PCSEL_PCSEL_6                 (0x00040UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000040 */
4035 #define ADC_PCSEL_PCSEL_7                 (0x00080UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000080 */
4036 #define ADC_PCSEL_PCSEL_8                 (0x00100UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000100 */
4037 #define ADC_PCSEL_PCSEL_9                 (0x00200UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000200 */
4038 #define ADC_PCSEL_PCSEL_10                (0x00400UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000400 */
4039 #define ADC_PCSEL_PCSEL_11                (0x00800UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00000800 */
4040 #define ADC_PCSEL_PCSEL_12                (0x01000UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00001000 */
4041 #define ADC_PCSEL_PCSEL_13                (0x02000UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00002000 */
4042 #define ADC_PCSEL_PCSEL_14                (0x04000UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00004000 */
4043 #define ADC_PCSEL_PCSEL_15                (0x08000UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00008000 */
4044 #define ADC_PCSEL_PCSEL_16                (0x10000UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00010000 */
4045 #define ADC_PCSEL_PCSEL_17                (0x20000UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00020000 */
4046 #define ADC_PCSEL_PCSEL_18                (0x40000UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00040000 */
4047 #define ADC_PCSEL_PCSEL_19                (0x80000UL << ADC_PCSEL_PCSEL_Pos)    /*!< 0x00080000 */
4048 
4049 /*****************  Bit definition for ADC_LTR1, 2, 3 registers *****************/
4050 #define ADC_LTR_LT_Pos                    (0U)
4051 #define ADC_LTR_LT_Msk                    (0x01FFFFFFUL << ADC_LTR_LT_Pos)      /*!< 0x01FFFFFF */
4052 #define ADC_LTR_LT                        ADC_LTR_LT_Msk                        /*!< ADC Analog watchdog 1, 2 and 3 lower threshold */
4053 
4054 /*****************  Bit definition for ADC_HTR1, 2, 3 registers  ****************/
4055 #define ADC_HTR_HT_Pos                    (0U)
4056 #define ADC_HTR_HT_Msk                    (0x01FFFFFFUL << ADC_HTR_HT_Pos)      /*!< 0x01FFFFFF */
4057 #define ADC_HTR_HT                        ADC_HTR_HT_Msk                        /*!< ADC Analog watchdog 1,2 and 3 higher threshold */
4058 
4059 #define ADC_HTR_AWDFILT_Pos               (29U)
4060 #define ADC_HTR_AWDFILT_Msk               (0x7UL << ADC_HTR_AWDFILT_Pos)        /*!< 0xE0000000 */
4061 #define ADC_HTR_AWDFILT                    ADC_HTR_HT_Msk                       /*!< Analog watchdog filtering parameter, HTR1 only */
4062 #define ADC_HTR_AWDFILT_0                 (0x1UL << ADC_HTR_AWDFILT_Pos)        /*!< 0x20000000 */
4063 #define ADC_HTR_AWDFILT_1                 (0x2UL << ADC_HTR_AWDFILT_Pos)        /*!< 0x40000000 */
4064 #define ADC_HTR_AWDFILT_2                 (0x4UL << ADC_HTR_AWDFILT_Pos)        /*!< 0x80000000 */
4065 
4066 /********************  Bit definition for ADC_SQR1 register  ********************/
4067 #define ADC_SQR1_L_Pos                    (0U)
4068 #define ADC_SQR1_L_Msk                    (0xFUL << ADC_SQR1_L_Pos)             /*!< 0x0000000F */
4069 #define ADC_SQR1_L                        ADC_SQR1_L_Msk                        /*!< ADC regular channel sequence length */
4070 #define ADC_SQR1_L_0                      (0x1UL << ADC_SQR1_L_Pos)             /*!< 0x00000001 */
4071 #define ADC_SQR1_L_1                      (0x2UL << ADC_SQR1_L_Pos)             /*!< 0x00000002 */
4072 #define ADC_SQR1_L_2                      (0x4UL << ADC_SQR1_L_Pos)             /*!< 0x00000004 */
4073 #define ADC_SQR1_L_3                      (0x8UL << ADC_SQR1_L_Pos)             /*!< 0x00000008 */
4074 
4075 #define ADC_SQR1_SQ1_Pos                  (6U)
4076 #define ADC_SQR1_SQ1_Msk                  (0x1FUL << ADC_SQR1_SQ1_Pos)          /*!< 0x000007C0 */
4077 #define ADC_SQR1_SQ1                      ADC_SQR1_SQ1_Msk                      /*!< ADC 1st conversion in regular sequence */
4078 #define ADC_SQR1_SQ1_0                    (0x01UL << ADC_SQR1_SQ1_Pos)          /*!< 0x00000040 */
4079 #define ADC_SQR1_SQ1_1                    (0x02UL << ADC_SQR1_SQ1_Pos)          /*!< 0x00000080 */
4080 #define ADC_SQR1_SQ1_2                    (0x04UL << ADC_SQR1_SQ1_Pos)          /*!< 0x00000100 */
4081 #define ADC_SQR1_SQ1_3                    (0x08UL << ADC_SQR1_SQ1_Pos)          /*!< 0x00000200 */
4082 #define ADC_SQR1_SQ1_4                    (0x10UL << ADC_SQR1_SQ1_Pos)          /*!< 0x00000400 */
4083 
4084 #define ADC_SQR1_SQ2_Pos                  (12U)
4085 #define ADC_SQR1_SQ2_Msk                  (0x1FUL << ADC_SQR1_SQ2_Pos)          /*!< 0x0001F000 */
4086 #define ADC_SQR1_SQ2                      ADC_SQR1_SQ2_Msk                      /*!< ADC 2nd conversion in regular sequence */
4087 #define ADC_SQR1_SQ2_0                    (0x01UL << ADC_SQR1_SQ2_Pos)          /*!< 0x00001000 */
4088 #define ADC_SQR1_SQ2_1                    (0x02UL << ADC_SQR1_SQ2_Pos)          /*!< 0x00002000 */
4089 #define ADC_SQR1_SQ2_2                    (0x04UL << ADC_SQR1_SQ2_Pos)          /*!< 0x00004000 */
4090 #define ADC_SQR1_SQ2_3                    (0x08UL << ADC_SQR1_SQ2_Pos)          /*!< 0x00008000 */
4091 #define ADC_SQR1_SQ2_4                    (0x10UL << ADC_SQR1_SQ2_Pos)          /*!< 0x00010000 */
4092 
4093 #define ADC_SQR1_SQ3_Pos                  (18U)
4094 #define ADC_SQR1_SQ3_Msk                  (0x1FUL << ADC_SQR1_SQ3_Pos)          /*!< 0x007C0000 */
4095 #define ADC_SQR1_SQ3                      ADC_SQR1_SQ3_Msk                      /*!< ADC 3rd conversion in regular sequence */
4096 #define ADC_SQR1_SQ3_0                    (0x01UL << ADC_SQR1_SQ3_Pos)          /*!< 0x00040000 */
4097 #define ADC_SQR1_SQ3_1                    (0x02UL << ADC_SQR1_SQ3_Pos)          /*!< 0x00080000 */
4098 #define ADC_SQR1_SQ3_2                    (0x04UL << ADC_SQR1_SQ3_Pos)          /*!< 0x00100000 */
4099 #define ADC_SQR1_SQ3_3                    (0x08UL << ADC_SQR1_SQ3_Pos)          /*!< 0x00200000 */
4100 #define ADC_SQR1_SQ3_4                    (0x10UL << ADC_SQR1_SQ3_Pos)          /*!< 0x00400000 */
4101 
4102 #define ADC_SQR1_SQ4_Pos                  (24U)
4103 #define ADC_SQR1_SQ4_Msk                  (0x1FUL << ADC_SQR1_SQ4_Pos)          /*!< 0x1F000000 */
4104 #define ADC_SQR1_SQ4                      ADC_SQR1_SQ4_Msk                      /*!< ADC 4th conversion in regular sequence */
4105 #define ADC_SQR1_SQ4_0                    (0x01UL << ADC_SQR1_SQ4_Pos)          /*!< 0x01000000 */
4106 #define ADC_SQR1_SQ4_1                    (0x02UL << ADC_SQR1_SQ4_Pos)          /*!< 0x02000000 */
4107 #define ADC_SQR1_SQ4_2                    (0x04UL << ADC_SQR1_SQ4_Pos)          /*!< 0x04000000 */
4108 #define ADC_SQR1_SQ4_3                    (0x08UL << ADC_SQR1_SQ4_Pos)          /*!< 0x08000000 */
4109 #define ADC_SQR1_SQ4_4                    (0x10UL << ADC_SQR1_SQ4_Pos)          /*!< 0x10000000 */
4110 
4111 /********************  Bit definition for ADC_SQR2 register  ********************/
4112 #define ADC_SQR2_SQ5_Pos                  (0U)
4113 #define ADC_SQR2_SQ5_Msk                  (0x1FUL << ADC_SQR2_SQ5_Pos)          /*!< 0x0000001F */
4114 #define ADC_SQR2_SQ5                      ADC_SQR2_SQ5_Msk                      /*!< ADC 5th conversion in regular sequence */
4115 #define ADC_SQR2_SQ5_0                    (0x01UL << ADC_SQR2_SQ5_Pos)          /*!< 0x00000001 */
4116 #define ADC_SQR2_SQ5_1                    (0x02UL << ADC_SQR2_SQ5_Pos)          /*!< 0x00000002 */
4117 #define ADC_SQR2_SQ5_2                    (0x04UL << ADC_SQR2_SQ5_Pos)          /*!< 0x00000004 */
4118 #define ADC_SQR2_SQ5_3                    (0x08UL << ADC_SQR2_SQ5_Pos)          /*!< 0x00000008 */
4119 #define ADC_SQR2_SQ5_4                    (0x10UL << ADC_SQR2_SQ5_Pos)          /*!< 0x00000010 */
4120 
4121 #define ADC_SQR2_SQ6_Pos                  (6U)
4122 #define ADC_SQR2_SQ6_Msk                  (0x1FUL << ADC_SQR2_SQ6_Pos)          /*!< 0x000007C0 */
4123 #define ADC_SQR2_SQ6                      ADC_SQR2_SQ6_Msk                      /*!< ADC 6th conversion in regular sequence */
4124 #define ADC_SQR2_SQ6_0                    (0x01UL << ADC_SQR2_SQ6_Pos)          /*!< 0x00000040 */
4125 #define ADC_SQR2_SQ6_1                    (0x02UL << ADC_SQR2_SQ6_Pos)          /*!< 0x00000080 */
4126 #define ADC_SQR2_SQ6_2                    (0x04UL << ADC_SQR2_SQ6_Pos)          /*!< 0x00000100 */
4127 #define ADC_SQR2_SQ6_3                    (0x08UL << ADC_SQR2_SQ6_Pos)          /*!< 0x00000200 */
4128 #define ADC_SQR2_SQ6_4                    (0x10UL << ADC_SQR2_SQ6_Pos)          /*!< 0x00000400 */
4129 
4130 #define ADC_SQR2_SQ7_Pos                  (12U)
4131 #define ADC_SQR2_SQ7_Msk                  (0x1FUL << ADC_SQR2_SQ7_Pos)          /*!< 0x0001F000 */
4132 #define ADC_SQR2_SQ7                      ADC_SQR2_SQ7_Msk                      /*!< ADC 7th conversion in regular sequence */
4133 #define ADC_SQR2_SQ7_0                    (0x01UL << ADC_SQR2_SQ7_Pos)          /*!< 0x00001000 */
4134 #define ADC_SQR2_SQ7_1                    (0x02UL << ADC_SQR2_SQ7_Pos)          /*!< 0x00002000 */
4135 #define ADC_SQR2_SQ7_2                    (0x04UL << ADC_SQR2_SQ7_Pos)          /*!< 0x00004000 */
4136 #define ADC_SQR2_SQ7_3                    (0x08UL << ADC_SQR2_SQ7_Pos)          /*!< 0x00008000 */
4137 #define ADC_SQR2_SQ7_4                    (0x10UL << ADC_SQR2_SQ7_Pos)          /*!< 0x00010000 */
4138 
4139 #define ADC_SQR2_SQ8_Pos                  (18U)
4140 #define ADC_SQR2_SQ8_Msk                  (0x1FUL << ADC_SQR2_SQ8_Pos)          /*!< 0x007C0000 */
4141 #define ADC_SQR2_SQ8                      ADC_SQR2_SQ8_Msk                      /*!< ADC 8th conversion in regular sequence */
4142 #define ADC_SQR2_SQ8_0                    (0x01UL << ADC_SQR2_SQ8_Pos)          /*!< 0x00040000 */
4143 #define ADC_SQR2_SQ8_1                    (0x02UL << ADC_SQR2_SQ8_Pos)          /*!< 0x00080000 */
4144 #define ADC_SQR2_SQ8_2                    (0x04UL << ADC_SQR2_SQ8_Pos)          /*!< 0x00100000 */
4145 #define ADC_SQR2_SQ8_3                    (0x08UL << ADC_SQR2_SQ8_Pos)          /*!< 0x00200000 */
4146 #define ADC_SQR2_SQ8_4                    (0x10UL << ADC_SQR2_SQ8_Pos)          /*!< 0x00400000 */
4147 
4148 #define ADC_SQR2_SQ9_Pos                  (24U)
4149 #define ADC_SQR2_SQ9_Msk                  (0x1FUL << ADC_SQR2_SQ9_Pos)          /*!< 0x1F000000 */
4150 #define ADC_SQR2_SQ9                      ADC_SQR2_SQ9_Msk                      /*!< ADC 9th conversion in regular sequence */
4151 #define ADC_SQR2_SQ9_0                    (0x01UL << ADC_SQR2_SQ9_Pos)          /*!< 0x01000000 */
4152 #define ADC_SQR2_SQ9_1                    (0x02UL << ADC_SQR2_SQ9_Pos)          /*!< 0x02000000 */
4153 #define ADC_SQR2_SQ9_2                    (0x04UL << ADC_SQR2_SQ9_Pos)          /*!< 0x04000000 */
4154 #define ADC_SQR2_SQ9_3                    (0x08UL << ADC_SQR2_SQ9_Pos)          /*!< 0x08000000 */
4155 #define ADC_SQR2_SQ9_4                    (0x10UL << ADC_SQR2_SQ9_Pos)          /*!< 0x10000000 */
4156 
4157 /********************  Bit definition for ADC_SQR3 register  ********************/
4158 #define ADC_SQR3_SQ10_Pos                 (0U)
4159 #define ADC_SQR3_SQ10_Msk                 (0x1FUL << ADC_SQR3_SQ10_Pos)         /*!< 0x0000001F */
4160 #define ADC_SQR3_SQ10                     ADC_SQR3_SQ10_Msk                     /*!< ADC 10th conversion in regular sequence */
4161 #define ADC_SQR3_SQ10_0                   (0x01UL << ADC_SQR3_SQ10_Pos)         /*!< 0x00000001 */
4162 #define ADC_SQR3_SQ10_1                   (0x02UL << ADC_SQR3_SQ10_Pos)         /*!< 0x00000002 */
4163 #define ADC_SQR3_SQ10_2                   (0x04UL << ADC_SQR3_SQ10_Pos)         /*!< 0x00000004 */
4164 #define ADC_SQR3_SQ10_3                   (0x08UL << ADC_SQR3_SQ10_Pos)         /*!< 0x00000008 */
4165 #define ADC_SQR3_SQ10_4                   (0x10UL << ADC_SQR3_SQ10_Pos)         /*!< 0x00000010 */
4166 
4167 #define ADC_SQR3_SQ11_Pos                 (6U)
4168 #define ADC_SQR3_SQ11_Msk                 (0x1FUL << ADC_SQR3_SQ11_Pos)         /*!< 0x000007C0 */
4169 #define ADC_SQR3_SQ11                     ADC_SQR3_SQ11_Msk                     /*!< ADC 11th conversion in regular sequence */
4170 #define ADC_SQR3_SQ11_0                   (0x01UL << ADC_SQR3_SQ11_Pos)         /*!< 0x00000040 */
4171 #define ADC_SQR3_SQ11_1                   (0x02UL << ADC_SQR3_SQ11_Pos)         /*!< 0x00000080 */
4172 #define ADC_SQR3_SQ11_2                   (0x04UL << ADC_SQR3_SQ11_Pos)         /*!< 0x00000100 */
4173 #define ADC_SQR3_SQ11_3                   (0x08UL << ADC_SQR3_SQ11_Pos)         /*!< 0x00000200 */
4174 #define ADC_SQR3_SQ11_4                   (0x10UL << ADC_SQR3_SQ11_Pos)         /*!< 0x00000400 */
4175 
4176 #define ADC_SQR3_SQ12_Pos                 (12U)
4177 #define ADC_SQR3_SQ12_Msk                 (0x1FUL << ADC_SQR3_SQ12_Pos)         /*!< 0x0001F000 */
4178 #define ADC_SQR3_SQ12                     ADC_SQR3_SQ12_Msk                     /*!< ADC 12th conversion in regular sequence */
4179 #define ADC_SQR3_SQ12_0                   (0x01UL << ADC_SQR3_SQ12_Pos)         /*!< 0x00001000 */
4180 #define ADC_SQR3_SQ12_1                   (0x02UL << ADC_SQR3_SQ12_Pos)         /*!< 0x00002000 */
4181 #define ADC_SQR3_SQ12_2                   (0x04UL << ADC_SQR3_SQ12_Pos)         /*!< 0x00004000 */
4182 #define ADC_SQR3_SQ12_3                   (0x08UL << ADC_SQR3_SQ12_Pos)         /*!< 0x00008000 */
4183 #define ADC_SQR3_SQ12_4                   (0x10UL << ADC_SQR3_SQ12_Pos)         /*!< 0x00010000 */
4184 
4185 #define ADC_SQR3_SQ13_Pos                 (18U)
4186 #define ADC_SQR3_SQ13_Msk                 (0x1FUL << ADC_SQR3_SQ13_Pos)         /*!< 0x007C0000 */
4187 #define ADC_SQR3_SQ13                     ADC_SQR3_SQ13_Msk                     /*!< ADC 13th conversion in regular sequence */
4188 #define ADC_SQR3_SQ13_0                   (0x01UL << ADC_SQR3_SQ13_Pos)         /*!< 0x00040000 */
4189 #define ADC_SQR3_SQ13_1                   (0x02UL << ADC_SQR3_SQ13_Pos)         /*!< 0x00080000 */
4190 #define ADC_SQR3_SQ13_2                   (0x04UL << ADC_SQR3_SQ13_Pos)         /*!< 0x00100000 */
4191 #define ADC_SQR3_SQ13_3                   (0x08UL << ADC_SQR3_SQ13_Pos)         /*!< 0x00200000 */
4192 #define ADC_SQR3_SQ13_4                   (0x10UL << ADC_SQR3_SQ13_Pos)         /*!< 0x00400000 */
4193 
4194 #define ADC_SQR3_SQ14_Pos                 (24U)
4195 #define ADC_SQR3_SQ14_Msk                 (0x1FUL << ADC_SQR3_SQ14_Pos)         /*!< 0x1F000000 */
4196 #define ADC_SQR3_SQ14                     ADC_SQR3_SQ14_Msk                     /*!< ADC 14th conversion in regular sequence */
4197 #define ADC_SQR3_SQ14_0                   (0x01UL << ADC_SQR3_SQ14_Pos)         /*!< 0x01000000 */
4198 #define ADC_SQR3_SQ14_1                   (0x02UL << ADC_SQR3_SQ14_Pos)         /*!< 0x02000000 */
4199 #define ADC_SQR3_SQ14_2                   (0x04UL << ADC_SQR3_SQ14_Pos)         /*!< 0x04000000 */
4200 #define ADC_SQR3_SQ14_3                   (0x08UL << ADC_SQR3_SQ14_Pos)         /*!< 0x08000000 */
4201 #define ADC_SQR3_SQ14_4                   (0x10UL << ADC_SQR3_SQ14_Pos)         /*!< 0x10000000 */
4202 
4203 /********************  Bit definition for ADC_SQR4 register  ********************/
4204 #define ADC_SQR4_SQ15_Pos                 (0U)
4205 #define ADC_SQR4_SQ15_Msk                 (0x1FUL << ADC_SQR4_SQ15_Pos)         /*!< 0x0000001F */
4206 #define ADC_SQR4_SQ15                     ADC_SQR4_SQ15_Msk                     /*!< ADC 15th conversion in regular sequence */
4207 #define ADC_SQR4_SQ15_0                   (0x01UL << ADC_SQR4_SQ15_Pos)         /*!< 0x00000001 */
4208 #define ADC_SQR4_SQ15_1                   (0x02UL << ADC_SQR4_SQ15_Pos)         /*!< 0x00000002 */
4209 #define ADC_SQR4_SQ15_2                   (0x04UL << ADC_SQR4_SQ15_Pos)         /*!< 0x00000004 */
4210 #define ADC_SQR4_SQ15_3                   (0x08UL << ADC_SQR4_SQ15_Pos)         /*!< 0x00000008 */
4211 #define ADC_SQR4_SQ15_4                   (0x10UL << ADC_SQR4_SQ15_Pos)         /*!< 0x00000010 */
4212 
4213 #define ADC_SQR4_SQ16_Pos                 (6U)
4214 #define ADC_SQR4_SQ16_Msk                 (0x1FUL << ADC_SQR4_SQ16_Pos)         /*!< 0x000007C0 */
4215 #define ADC_SQR4_SQ16                     ADC_SQR4_SQ16_Msk                     /*!< ADC 16th conversion in regular sequence */
4216 #define ADC_SQR4_SQ16_0                   (0x01UL << ADC_SQR4_SQ16_Pos)         /*!< 0x00000040 */
4217 #define ADC_SQR4_SQ16_1                   (0x02UL << ADC_SQR4_SQ16_Pos)         /*!< 0x00000080 */
4218 #define ADC_SQR4_SQ16_2                   (0x04UL << ADC_SQR4_SQ16_Pos)         /*!< 0x00000100 */
4219 #define ADC_SQR4_SQ16_3                   (0x08UL << ADC_SQR4_SQ16_Pos)         /*!< 0x00000200 */
4220 #define ADC_SQR4_SQ16_4                   (0x10UL << ADC_SQR4_SQ16_Pos)         /*!< 0x00000400 */
4221 /********************  Bit definition for ADC_DR register  ********************/
4222 #define ADC_DR_RDATA_Pos                  (0U)
4223 #define ADC_DR_RDATA_Msk                  (0xFFFFFFFFUL << ADC_DR_RDATA_Pos)    /*!< 0xFFFFFFFF */
4224 #define ADC_DR_RDATA                      ADC_DR_RDATA_Msk                      /*!< ADC regular Data converted */
4225 
4226 /********************  Bit definition for ADC_PW register  ********************/
4227 #define ADC4_PW_AUTOFF_Pos                 (0U)
4228 #define ADC4_PW_AUTOFF_Msk                 (0x1UL << ADC4_PW_AUTOFF_Pos)        /*!< 0x00000001 */
4229 #define ADC4_PW_AUTOFF                     ADC4_PW_AUTOFF_Msk                   /*!< ADC Auto-Off mode */
4230 #define ADC4_PW_DPD_Pos                    (1U)
4231 #define ADC4_PW_DPD_Msk                    (0x1UL << ADC4_PW_DPD_Pos)           /*!< 0x00000002 */
4232 #define ADC4_PW_DPD                        ADC4_PW_DPD_Msk                      /*!< ADC Deep Power mode */
4233 #define ADC4_PW_VREFPROT_Pos               (2U)
4234 #define ADC4_PW_VREFPROT_Msk               (0x1UL << ADC4_PW_VREFPROT_Pos)      /*!< 0x00000004 */
4235 #define ADC4_PW_VREFPROT                   ADC4_PW_VREFPROT_Msk                 /*!< ADC Vref protection */
4236 #define ADC4_PW_VREFSECSMP_Pos             (3U)
4237 #define ADC4_PW_VREFSECSMP_Msk             (0x1UL << ADC4_PW_VREFSECSMP_Pos)    /*!< 0x00000008 */
4238 #define ADC4_PW_VREFSECSMP                 ADC4_PW_VREFSECSMP_Msk               /*!< ADC Vref Second Sample */
4239 
4240 /********************  Bit definition for ADC_JSQR register  ********************/
4241 #define ADC_JSQR_JL_Pos                   (0U)
4242 #define ADC_JSQR_JL_Msk                   (0x3UL << ADC_JSQR_JL_Pos)            /*!< 0x00000003 */
4243 #define ADC_JSQR_JL                       ADC_JSQR_JL_Msk                       /*!< ADC injected channel sequence length */
4244 #define ADC_JSQR_JL_0                     (0x1UL << ADC_JSQR_JL_Pos)            /*!< 0x00000001 */
4245 #define ADC_JSQR_JL_1                     (0x2UL << ADC_JSQR_JL_Pos)            /*!< 0x00000002 */
4246 
4247 #define ADC_JSQR_JEXTSEL_Pos              (2U)
4248 #define ADC_JSQR_JEXTSEL_Msk              (0x1FUL << ADC_JSQR_JEXTSEL_Pos)      /*!< 0x0000007C */
4249 #define ADC_JSQR_JEXTSEL                  ADC_JSQR_JEXTSEL_Msk                  /*!< ADC external trigger selection for injected group */
4250 #define ADC_JSQR_JEXTSEL_0                (0x01UL << ADC_JSQR_JEXTSEL_Pos)      /*!< 0x00000004 */
4251 #define ADC_JSQR_JEXTSEL_1                (0x02UL << ADC_JSQR_JEXTSEL_Pos)      /*!< 0x00000008 */
4252 #define ADC_JSQR_JEXTSEL_2                (0x04UL << ADC_JSQR_JEXTSEL_Pos)      /*!< 0x00000010 */
4253 #define ADC_JSQR_JEXTSEL_3                (0x08UL << ADC_JSQR_JEXTSEL_Pos)      /*!< 0x00000020 */
4254 #define ADC_JSQR_JEXTSEL_4                (0x10UL << ADC_JSQR_JEXTSEL_Pos)      /*!< 0x00000040 */
4255 
4256 #define ADC_JSQR_JEXTEN_Pos               (7U)
4257 #define ADC_JSQR_JEXTEN_Msk               (0x3UL << ADC_JSQR_JEXTEN_Pos)        /*!< 0x00000180 */
4258 #define ADC_JSQR_JEXTEN                   ADC_JSQR_JEXTEN_Msk                   /*!< ADC external trigger enable and polarity selection for injected channels */
4259 #define ADC_JSQR_JEXTEN_0                 (0x1UL << ADC_JSQR_JEXTEN_Pos)        /*!< 0x00000080 */
4260 #define ADC_JSQR_JEXTEN_1                 (0x2UL << ADC_JSQR_JEXTEN_Pos)        /*!< 0x00000100 */
4261 
4262 #define ADC_JSQR_JSQ1_Pos                 (9U)
4263 #define ADC_JSQR_JSQ1_Msk                 (0x1FUL << ADC_JSQR_JSQ1_Pos)         /*!< 0x00003E00 */
4264 #define ADC_JSQR_JSQ1                     ADC_JSQR_JSQ1_Msk                     /*!< ADC 1st conversion in injected sequence */
4265 #define ADC_JSQR_JSQ1_0                   (0x01UL << ADC_JSQR_JSQ1_Pos)         /*!< 0x00000200 */
4266 #define ADC_JSQR_JSQ1_1                   (0x02UL << ADC_JSQR_JSQ1_Pos)         /*!< 0x00000400 */
4267 #define ADC_JSQR_JSQ1_2                   (0x04UL << ADC_JSQR_JSQ1_Pos)         /*!< 0x00000800 */
4268 #define ADC_JSQR_JSQ1_3                   (0x08UL << ADC_JSQR_JSQ1_Pos)         /*!< 0x00001000 */
4269 #define ADC_JSQR_JSQ1_4                   (0x10UL << ADC_JSQR_JSQ1_Pos)         /*!< 0x00002000 */
4270 
4271 #define ADC_JSQR_JSQ2_Pos                 (15U)
4272 #define ADC_JSQR_JSQ2_Msk                 (0x1FUL << ADC_JSQR_JSQ2_Pos)         /*!< 0x000F8000 */
4273 #define ADC_JSQR_JSQ2                     ADC_JSQR_JSQ2_Msk                     /*!< ADC 2nd conversion in injected sequence */
4274 #define ADC_JSQR_JSQ2_0                   (0x01UL << ADC_JSQR_JSQ2_Pos)         /*!< 0x00008000 */
4275 #define ADC_JSQR_JSQ2_1                   (0x02UL << ADC_JSQR_JSQ2_Pos)         /*!< 0x00010000 */
4276 #define ADC_JSQR_JSQ2_2                   (0x04UL << ADC_JSQR_JSQ2_Pos)         /*!< 0x00020000 */
4277 #define ADC_JSQR_JSQ2_3                   (0x08UL << ADC_JSQR_JSQ2_Pos)         /*!< 0x00040000 */
4278 #define ADC_JSQR_JSQ2_4                   (0x10UL << ADC_JSQR_JSQ2_Pos)         /*!< 0x00080000 */
4279 
4280 #define ADC_JSQR_JSQ3_Pos                 (21U)
4281 #define ADC_JSQR_JSQ3_Msk                 (0x1FUL << ADC_JSQR_JSQ3_Pos)         /*!< 0x03E00000 */
4282 #define ADC_JSQR_JSQ3                     ADC_JSQR_JSQ3_Msk                     /*!< ADC 3rd conversion in injected sequence */
4283 #define ADC_JSQR_JSQ3_0                   (0x01UL << ADC_JSQR_JSQ3_Pos)         /*!< 0x00200000 */
4284 #define ADC_JSQR_JSQ3_1                   (0x02UL << ADC_JSQR_JSQ3_Pos)         /*!< 0x00400000 */
4285 #define ADC_JSQR_JSQ3_2                   (0x04UL << ADC_JSQR_JSQ3_Pos)         /*!< 0x00800000 */
4286 #define ADC_JSQR_JSQ3_3                   (0x08UL << ADC_JSQR_JSQ3_Pos)         /*!< 0x01000000 */
4287 #define ADC_JSQR_JSQ3_4                   (0x10UL << ADC_JSQR_JSQ3_Pos)         /*!< 0x02000000 */
4288 
4289 #define ADC_JSQR_JSQ4_Pos                 (27U)
4290 #define ADC_JSQR_JSQ4_Msk                 (0x1FUL << ADC_JSQR_JSQ4_Pos)         /*!< 0xF8000000 */
4291 #define ADC_JSQR_JSQ4                     ADC_JSQR_JSQ4_Msk                     /*!< ADC 4th conversion in injected sequence */
4292 #define ADC_JSQR_JSQ4_0                   (0x01UL << ADC_JSQR_JSQ4_Pos)         /*!< 0x08000000 */
4293 #define ADC_JSQR_JSQ4_1                   (0x02UL << ADC_JSQR_JSQ4_Pos)         /*!< 0x10000000 */
4294 #define ADC_JSQR_JSQ4_2                   (0x04UL << ADC_JSQR_JSQ4_Pos)         /*!< 0x20000000 */
4295 #define ADC_JSQR_JSQ4_3                   (0x08UL << ADC_JSQR_JSQ4_Pos)         /*!< 0x40000000 */
4296 #define ADC_JSQR_JSQ4_4                   (0x10UL << ADC_JSQR_JSQ4_Pos)         /*!< 0x80000000 */
4297 
4298 /********************  Bit definition for ADC_OFR1 register  ********************/
4299 #define ADC_OFR1_OFFSET1_Pos              (0U)
4300 #define ADC_OFR1_OFFSET1_Msk              (0x00FFFFFFUL << ADC_OFR1_OFFSET1_Pos)/*!< 0x00FFFFFF */
4301 #define ADC_OFR1_OFFSET1                  ADC_OFR1_OFFSET1_Msk                  /*!< ADC data offset 1 for channel programmed into bits OFFSET1_CH[4:0] */
4302 #define ADC_OFR1_OFFSET1_0                (0x0000001UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */
4303 #define ADC_OFR1_OFFSET1_1                (0x0000002UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */
4304 #define ADC_OFR1_OFFSET1_2                (0x0000004UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */
4305 #define ADC_OFR1_OFFSET1_3                (0x0000008UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */
4306 #define ADC_OFR1_OFFSET1_4                (0x0000010UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */
4307 #define ADC_OFR1_OFFSET1_5                (0x0000020UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */
4308 #define ADC_OFR1_OFFSET1_6                (0x0000040UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */
4309 #define ADC_OFR1_OFFSET1_7                (0x0000080UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */
4310 #define ADC_OFR1_OFFSET1_8                (0x0000100UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */
4311 #define ADC_OFR1_OFFSET1_9                (0x0000200UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */
4312 #define ADC_OFR1_OFFSET1_10               (0x0000400UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */
4313 #define ADC_OFR1_OFFSET1_11               (0x0000800UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */
4314 #define ADC_OFR1_OFFSET1_12               (0x0001000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00001000 */
4315 #define ADC_OFR1_OFFSET1_13               (0x0002000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00002000 */
4316 #define ADC_OFR1_OFFSET1_14               (0x0004000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00004000 */
4317 #define ADC_OFR1_OFFSET1_15               (0x0008000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00008000 */
4318 #define ADC_OFR1_OFFSET1_16               (0x0010000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00010000 */
4319 #define ADC_OFR1_OFFSET1_17               (0x0020000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00020000 */
4320 #define ADC_OFR1_OFFSET1_18               (0x0040000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00040000 */
4321 #define ADC_OFR1_OFFSET1_19               (0x0080000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00080000 */
4322 #define ADC_OFR1_OFFSET1_20               (0x0100000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00100000 */
4323 #define ADC_OFR1_OFFSET1_21               (0x0200000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00200000 */
4324 #define ADC_OFR1_OFFSET1_22               (0x0400000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00400000 */
4325 #define ADC_OFR1_OFFSET1_23               (0x0800000UL << ADC_OFR1_OFFSET1_Pos) /*!< 0x00800000 */
4326 
4327 #define ADC_OFR1_OFFSETPOS_Pos            (24U)
4328 #define ADC_OFR1_OFFSETPOS_Msk            (0x1UL << ADC_OFR1_OFFSETPOS_Pos)     /*!< 0x01000000 */
4329 #define ADC_OFR1_OFFSETPOS                ADC_OFR1_OFFSETPOS_Msk                /*!< ADC offset number 1 positive */
4330 #define ADC_OFR1_USAT_Pos                 (25U)
4331 #define ADC_OFR1_USAT_Msk                 (0x1UL << ADC_OFR1_USAT_Pos)          /*!< 0x02000000 */
4332 #define ADC_OFR1_USAT                     ADC_OFR1_USAT_Msk                     /*!< ADC offset number 1 saturation enable */
4333 
4334 #define ADC_OFR1_SSAT_Pos                 (26U)
4335 #define ADC_OFR1_SSAT_Msk                 (0x1UL << ADC_OFR1_SSAT_Pos)          /*!< 0x80000000 */
4336 #define ADC_OFR1_SSAT                     ADC_OFR1_SSAT_Msk                     /*!< ADC Signed saturation Enable */
4337 
4338 #define ADC_OFR1_OFFSET1_CH_Pos           (27U)
4339 #define ADC_OFR1_OFFSET1_CH_Msk           (0x1FUL << ADC_OFR1_OFFSET1_CH_Pos)   /*!< 0x7C000000 */
4340 #define ADC_OFR1_OFFSET1_CH               ADC_OFR1_OFFSET1_CH_Msk               /*!< ADC Channel selection for the data offset 1 */
4341 #define ADC_OFR1_OFFSET1_CH_0             (0x01UL << ADC_OFR1_OFFSET1_CH_Pos)   /*!< 0x04000000 */
4342 #define ADC_OFR1_OFFSET1_CH_1             (0x02UL << ADC_OFR1_OFFSET1_CH_Pos)   /*!< 0x08000000 */
4343 #define ADC_OFR1_OFFSET1_CH_2             (0x04UL << ADC_OFR1_OFFSET1_CH_Pos)   /*!< 0x10000000 */
4344 #define ADC_OFR1_OFFSET1_CH_3             (0x08UL << ADC_OFR1_OFFSET1_CH_Pos)   /*!< 0x20000000 */
4345 #define ADC_OFR1_OFFSET1_CH_4             (0x10UL << ADC_OFR1_OFFSET1_CH_Pos)   /*!< 0x40000000 */
4346 
4347 /********************  Bit definition for ADC_OFR2 register  ********************/
4348 #define ADC_OFR2_OFFSET2_Pos              (0U)
4349 #define ADC_OFR2_OFFSET2_Msk              (0x3FFFFFFUL << ADC_OFR2_OFFSET2_Pos) /*!< 0x03FFFFFF */
4350 #define ADC_OFR2_OFFSET2                  ADC_OFR2_OFFSET2_Msk                  /*!< ADC data offset 2 for channel programmed into bits OFFSET2_CH[4:0] */
4351 #define ADC_OFR2_OFFSET2_0                (0x0000001UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */
4352 #define ADC_OFR2_OFFSET2_1                (0x0000002UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */
4353 #define ADC_OFR2_OFFSET2_2                (0x0000004UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */
4354 #define ADC_OFR2_OFFSET2_3                (0x0000008UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */
4355 #define ADC_OFR2_OFFSET2_4                (0x0000010UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */
4356 #define ADC_OFR2_OFFSET2_5                (0x0000020UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */
4357 #define ADC_OFR2_OFFSET2_6                (0x0000040UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */
4358 #define ADC_OFR2_OFFSET2_7                (0x0000080UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */
4359 #define ADC_OFR2_OFFSET2_8                (0x0000100UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */
4360 #define ADC_OFR2_OFFSET2_9                (0x0000200UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */
4361 #define ADC_OFR2_OFFSET2_10               (0x0000400UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */
4362 #define ADC_OFR2_OFFSET2_11               (0x0000800UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */
4363 #define ADC_OFR2_OFFSET2_12               (0x0001000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00001000 */
4364 #define ADC_OFR2_OFFSET2_13               (0x0002000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00002000 */
4365 #define ADC_OFR2_OFFSET2_14               (0x0004000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00004000 */
4366 #define ADC_OFR2_OFFSET2_15               (0x0008000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00008000 */
4367 #define ADC_OFR2_OFFSET2_16               (0x0010000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00010000 */
4368 #define ADC_OFR2_OFFSET2_17               (0x0020000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00020000 */
4369 #define ADC_OFR2_OFFSET2_18               (0x0040000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00040000 */
4370 #define ADC_OFR2_OFFSET2_19               (0x0080000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00080000 */
4371 #define ADC_OFR2_OFFSET2_20               (0x0100000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00100000 */
4372 #define ADC_OFR2_OFFSET2_21               (0x0200000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00200000 */
4373 #define ADC_OFR2_OFFSET2_22               (0x0400000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00400000 */
4374 #define ADC_OFR2_OFFSET2_23               (0x0800000UL << ADC_OFR2_OFFSET2_Pos) /*!< 0x00800000 */
4375 
4376 #define ADC_OFR2_OFFSETPOS_Pos            (24U)
4377 #define ADC_OFR2_OFFSETPOS_Msk            (0x1UL << ADC_OFR2_OFFSETPOS_Pos)     /*!< 0x01000000 */
4378 #define ADC_OFR2_OFFSETPOS                ADC_OFR2_OFFSETPOS_Msk                /*!< ADC offset number 1 positive */
4379 #define ADC_OFR2_USAT_Pos                 (25U)
4380 #define ADC_OFR2_USAT_Msk                 (0x1UL << ADC_OFR2_USAT_Pos)          /*!< 0x02000000 */
4381 #define ADC_OFR2_USAT                      ADC_OFR2_USAT_Msk                    /*!< ADC offset number 1 saturation enable */
4382 
4383 #define ADC_OFR2_SSAT_Pos                  (26U)
4384 #define ADC_OFR2_SSAT_Msk                  (0x1UL << ADC_OFR2_SSAT_Pos)         /*!< 0x80000000 */
4385 #define ADC_OFR2_SSAT                      ADC_OFR2_SSAT_Msk                    /*!< ADC Signed saturation Enable */
4386 
4387 #define ADC_OFR2_OFFSET2_CH_Pos           (27U)
4388 #define ADC_OFR2_OFFSET2_CH_Msk           (0x1FUL << ADC_OFR2_OFFSET2_CH_Pos)   /*!< 0x7C000000 */
4389 #define ADC_OFR2_OFFSET2_CH               ADC_OFR2_OFFSET2_CH_Msk               /*!< ADC Channel selection for the data offset 2 */
4390 #define ADC_OFR2_OFFSET2_CH_0             (0x01UL << ADC_OFR2_OFFSET2_CH_Pos)   /*!< 0x04000000 */
4391 #define ADC_OFR2_OFFSET2_CH_1             (0x02UL << ADC_OFR2_OFFSET2_CH_Pos)   /*!< 0x08000000 */
4392 #define ADC_OFR2_OFFSET2_CH_2             (0x04UL << ADC_OFR2_OFFSET2_CH_Pos)   /*!< 0x10000000 */
4393 #define ADC_OFR2_OFFSET2_CH_3             (0x08UL << ADC_OFR2_OFFSET2_CH_Pos)   /*!< 0x20000000 */
4394 #define ADC_OFR2_OFFSET2_CH_4             (0x10UL << ADC_OFR2_OFFSET2_CH_Pos)   /*!< 0x40000000 */
4395 
4396 /********************  Bit definition for ADC_OFR3 register  ********************/
4397 #define ADC_OFR3_OFFSET3_Pos              (0U)
4398 #define ADC_OFR3_OFFSET3_Msk              (0x3FFFFFFUL << ADC_OFR3_OFFSET3_Pos) /*!< 0x03FFFFFF */
4399 #define ADC_OFR3_OFFSET3                  ADC_OFR3_OFFSET3_Msk                  /*!< ADC data offset 3 for channel programmed into bits OFFSET3_CH[4:0] */
4400 #define ADC_OFR3_OFFSET3_0                (0x0000001UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */
4401 #define ADC_OFR3_OFFSET3_1                (0x0000002UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */
4402 #define ADC_OFR3_OFFSET3_2                (0x0000004UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */
4403 #define ADC_OFR3_OFFSET3_3                (0x0000008UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */
4404 #define ADC_OFR3_OFFSET3_4                (0x0000010UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */
4405 #define ADC_OFR3_OFFSET3_5                (0x0000020UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */
4406 #define ADC_OFR3_OFFSET3_6                (0x0000040UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */
4407 #define ADC_OFR3_OFFSET3_7                (0x0000080UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */
4408 #define ADC_OFR3_OFFSET3_8                (0x0000100UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */
4409 #define ADC_OFR3_OFFSET3_9                (0x0000200UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */
4410 #define ADC_OFR3_OFFSET3_10               (0x0000400UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */
4411 #define ADC_OFR3_OFFSET3_11               (0x0000800UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */
4412 #define ADC_OFR3_OFFSET3_12               (0x0001000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00001000 */
4413 #define ADC_OFR3_OFFSET3_13               (0x0002000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00002000 */
4414 #define ADC_OFR3_OFFSET3_14               (0x0004000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00004000 */
4415 #define ADC_OFR3_OFFSET3_15               (0x0008000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00008000 */
4416 #define ADC_OFR3_OFFSET3_16               (0x0010000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00010000 */
4417 #define ADC_OFR3_OFFSET3_17               (0x0020000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00020000 */
4418 #define ADC_OFR3_OFFSET3_18               (0x0040000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00040000 */
4419 #define ADC_OFR3_OFFSET3_19               (0x0080000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00080000 */
4420 #define ADC_OFR3_OFFSET3_20               (0x0100000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00100000 */
4421 #define ADC_OFR3_OFFSET3_21               (0x0200000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00200000 */
4422 #define ADC_OFR3_OFFSET3_22               (0x0400000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00400000 */
4423 #define ADC_OFR3_OFFSET3_23               (0x0800000UL << ADC_OFR3_OFFSET3_Pos) /*!< 0x00800000 */
4424 
4425 #define ADC_OFR3_OFFSETPOS_Pos            (24U)
4426 #define ADC_OFR3_OFFSETPOS_Msk            (0x1UL << ADC_OFR3_OFFSETPOS_Pos)     /*!< 0x01000000 */
4427 #define ADC_OFR3_OFFSETPOS                ADC_OFR3_OFFSETPOS_Msk                /*!< ADC offset number 1 positive */
4428 #define ADC_OFR3_USAT_Pos                 (25U)
4429 #define ADC_OFR3_USAT_Msk                 (0x1UL << ADC_OFR3_USAT_Pos)          /*!< 0x02000000 */
4430 #define ADC_OFR3_USAT                     ADC_OFR3_USAT_Msk                     /*!< ADC offset number 1 saturation enable */
4431 
4432 #define ADC_OFR3_SSAT_Pos                 (26U)
4433 #define ADC_OFR3_SSAT_Msk                 (0x1UL << ADC_OFR3_SSAT_Pos)          /*!< 0x80000000 */
4434 #define ADC_OFR3_SSAT                     ADC_OFR3_SSAT_Msk                     /*!< ADC Signed saturation Enable */
4435 
4436 #define ADC_OFR3_OFFSET3_CH_Pos           (27U)
4437 #define ADC_OFR3_OFFSET3_CH_Msk           (0x1FUL << ADC_OFR3_OFFSET3_CH_Pos)   /*!< 0x7C000000 */
4438 #define ADC_OFR3_OFFSET3_CH               ADC_OFR3_OFFSET3_CH_Msk               /*!< ADC Channel selection for the data offset 3 */
4439 #define ADC_OFR3_OFFSET3_CH_0             (0x01UL << ADC_OFR3_OFFSET3_CH_Pos)   /*!< 0x04000000 */
4440 #define ADC_OFR3_OFFSET3_CH_1             (0x02UL << ADC_OFR3_OFFSET3_CH_Pos)   /*!< 0x08000000 */
4441 #define ADC_OFR3_OFFSET3_CH_2             (0x04UL << ADC_OFR3_OFFSET3_CH_Pos)   /*!< 0x10000000 */
4442 #define ADC_OFR3_OFFSET3_CH_3             (0x08UL << ADC_OFR3_OFFSET3_CH_Pos)   /*!< 0x20000000 */
4443 #define ADC_OFR3_OFFSET3_CH_4             (0x10UL << ADC_OFR3_OFFSET3_CH_Pos)   /*!< 0x40000000 */
4444 
4445 /********************  Bit definition for ADC_OFR4 register  ********************/
4446 #define ADC_OFR4_OFFSET4_Pos              (0U)
4447 #define ADC_OFR4_OFFSET4_Msk              (0x3FFFFFFUL << ADC_OFR4_OFFSET4_Pos) /*!< 0x03FFFFFF */
4448 #define ADC_OFR4_OFFSET4                  ADC_OFR4_OFFSET4_Msk                  /*!< ADC data offset 4 for channel programmed into bits OFFSET4_CH[4:0] */
4449 #define ADC_OFR4_OFFSET4_0                (0x0000001UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */
4450 #define ADC_OFR4_OFFSET4_1                (0x0000002UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */
4451 #define ADC_OFR4_OFFSET4_2                (0x0000004UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */
4452 #define ADC_OFR4_OFFSET4_3                (0x0000008UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */
4453 #define ADC_OFR4_OFFSET4_4                (0x0000010UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */
4454 #define ADC_OFR4_OFFSET4_5                (0x0000020UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */
4455 #define ADC_OFR4_OFFSET4_6                (0x0000040UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */
4456 #define ADC_OFR4_OFFSET4_7                (0x0000080UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */
4457 #define ADC_OFR4_OFFSET4_8                (0x0000100UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */
4458 #define ADC_OFR4_OFFSET4_9                (0x0000200UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */
4459 #define ADC_OFR4_OFFSET4_10               (0x0000400UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */
4460 #define ADC_OFR4_OFFSET4_11               (0x0000800UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */
4461 #define ADC_OFR4_OFFSET4_12               (0x0001000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00001000 */
4462 #define ADC_OFR4_OFFSET4_13               (0x0002000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00002000 */
4463 #define ADC_OFR4_OFFSET4_14               (0x0004000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00004000 */
4464 #define ADC_OFR4_OFFSET4_15               (0x0008000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00008000 */
4465 #define ADC_OFR4_OFFSET4_16               (0x0010000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00010000 */
4466 #define ADC_OFR4_OFFSET4_17               (0x0020000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00020000 */
4467 #define ADC_OFR4_OFFSET4_18               (0x0040000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00040000 */
4468 #define ADC_OFR4_OFFSET4_19               (0x0080000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00080000 */
4469 #define ADC_OFR4_OFFSET4_20               (0x0100000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00100000 */
4470 #define ADC_OFR4_OFFSET4_21               (0x0200000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00200000 */
4471 #define ADC_OFR4_OFFSET4_22               (0x0400000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00400000 */
4472 #define ADC_OFR4_OFFSET4_23               (0x0800000UL << ADC_OFR4_OFFSET4_Pos) /*!< 0x00800000 */
4473 
4474 #define ADC_OFR4_OFFSETPOS_Pos            (24U)
4475 #define ADC_OFR4_OFFSETPOS_Msk            (0x1UL << ADC_OFR4_OFFSETPOS_Pos)     /*!< 0x01000000 */
4476 #define ADC_OFR4_OFFSETPOS                ADC_OFR4_OFFSETPOS_Msk                /*!< ADC offset number 1 positive */
4477 #define ADC_OFR4_USAT_Pos                 (25U)
4478 #define ADC_OFR4_USAT_Msk                 (0x1UL << ADC_OFR4_USAT_Pos)          /*!< 0x02000000 */
4479 #define ADC_OFR4_USAT                     ADC_OFR4_USAT_Msk                     /*!< ADC offset number 1 saturation enable */
4480 
4481 #define ADC_OFR4_SSAT_Pos                 (26U)
4482 #define ADC_OFR4_SSAT_Msk                 (0x1UL << ADC_OFR4_SSAT_Pos)          /*!< 0x80000000 */
4483 #define ADC_OFR4_SSAT                     ADC_OFR4_SSAT_Msk                     /*!< ADC Signed saturation Enable */
4484 
4485 #define ADC_OFR4_OFFSET4_CH_Pos           (27U)
4486 #define ADC_OFR4_OFFSET4_CH_Msk           (0x1FUL << ADC_OFR4_OFFSET4_CH_Pos)   /*!< 0x7C000000 */
4487 #define ADC_OFR4_OFFSET4_CH               ADC_OFR4_OFFSET4_CH_Msk               /*!< ADC Channel selection for the data offset 4 */
4488 #define ADC_OFR4_OFFSET4_CH_0             (0x01UL << ADC_OFR4_OFFSET4_CH_Pos)   /*!< 0x04000000 */
4489 #define ADC_OFR4_OFFSET4_CH_1             (0x02UL << ADC_OFR4_OFFSET4_CH_Pos)   /*!< 0x08000000 */
4490 #define ADC_OFR4_OFFSET4_CH_2             (0x04UL << ADC_OFR4_OFFSET4_CH_Pos)   /*!< 0x10000000 */
4491 #define ADC_OFR4_OFFSET4_CH_3             (0x08UL << ADC_OFR4_OFFSET4_CH_Pos)   /*!< 0x20000000 */
4492 #define ADC_OFR4_OFFSET4_CH_4             (0x10UL << ADC_OFR4_OFFSET4_CH_Pos)   /*!< 0x40000000 */
4493 
4494 /********************  Bit definition for ADC_GCOMP register  ********************/
4495 #define ADC_GCOMP_GCOMPCOEFF_Pos          (0U)
4496 #define ADC_GCOMP_GCOMPCOEFF_Msk          (0x3FFFUL << ADC_GCOMP_GCOMPCOEFF_Pos)/*!< 0x00003FFF */
4497 #define ADC_GCOMP_GCOMPCOEFF               ADC_GCOMP_GCOMPCOEFF_Msk             /*!< ADC Injected DATA */
4498 #define ADC_GCOMP_GCOMP_Pos               (31U)
4499 #define ADC_GCOMP_GCOMP_Msk               (0x1UL << ADC_GCOMP_GCOMP_Pos)        /*!< 0x00003FFF */
4500 #define ADC_GCOMP_GCOMP                   ADC_GCOMP_GCOMP_Msk                   /*!< ADC Injected DATA */
4501 
4502 /********************  Bit definition for ADC_JDR1 register  ********************/
4503 #define ADC_JDR1_JDATA_Pos                (0U)
4504 #define ADC_JDR1_JDATA_Msk                (0xFFFFFFFFUL << ADC_JDR1_JDATA_Pos)  /*!< 0xFFFFFFFF */
4505 #define ADC_JDR1_JDATA                    ADC_JDR1_JDATA_Msk                    /*!< ADC Injected DATA */
4506 #define ADC_JDR1_JDATA_0                  (0x00000001UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000001 */
4507 #define ADC_JDR1_JDATA_1                  (0x00000002UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000002 */
4508 #define ADC_JDR1_JDATA_2                  (0x00000004UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000004 */
4509 #define ADC_JDR1_JDATA_3                  (0x00000008UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000008 */
4510 #define ADC_JDR1_JDATA_4                  (0x00000010UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000010 */
4511 #define ADC_JDR1_JDATA_5                  (0x00000020UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000020 */
4512 #define ADC_JDR1_JDATA_6                  (0x00000040UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000040 */
4513 #define ADC_JDR1_JDATA_7                  (0x00000080UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000080 */
4514 #define ADC_JDR1_JDATA_8                  (0x00000100UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000100 */
4515 #define ADC_JDR1_JDATA_9                  (0x00000200UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000200 */
4516 #define ADC_JDR1_JDATA_10                 (0x00000400UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000400 */
4517 #define ADC_JDR1_JDATA_11                 (0x00000800UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00000800 */
4518 #define ADC_JDR1_JDATA_12                 (0x00001000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00001000 */
4519 #define ADC_JDR1_JDATA_13                 (0x00002000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00002000 */
4520 #define ADC_JDR1_JDATA_14                 (0x00004000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00004000 */
4521 #define ADC_JDR1_JDATA_15                 (0x00008000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00008000 */
4522 #define ADC_JDR1_JDATA_16                 (0x00010000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00010000 */
4523 #define ADC_JDR1_JDATA_17                 (0x00020000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00020000 */
4524 #define ADC_JDR1_JDATA_18                 (0x00040000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00040000 */
4525 #define ADC_JDR1_JDATA_19                 (0x00080000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00080000 */
4526 #define ADC_JDR1_JDATA_20                 (0x00100000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00100000 */
4527 #define ADC_JDR1_JDATA_21                 (0x00200000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00200000 */
4528 #define ADC_JDR1_JDATA_22                 (0x00400000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00400000 */
4529 #define ADC_JDR1_JDATA_23                 (0x00800000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x00800000 */
4530 #define ADC_JDR1_JDATA_24                 (0x01000000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x01000000 */
4531 #define ADC_JDR1_JDATA_25                 (0x02000000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x02000000 */
4532 #define ADC_JDR1_JDATA_26                 (0x04000000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x04000000 */
4533 #define ADC_JDR1_JDATA_27                 (0x08000000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x08000000 */
4534 #define ADC_JDR1_JDATA_28                 (0x10000000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x10000000 */
4535 #define ADC_JDR1_JDATA_29                 (0x20000000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x20000000 */
4536 #define ADC_JDR1_JDATA_30                 (0x40000000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x40000000 */
4537 #define ADC_JDR1_JDATA_31                 (0x80000000UL << ADC_JDR1_JDATA_Pos)  /*!< 0x80000000 */
4538 
4539 /********************  Bit definition for ADC_JDR2 register  ********************/
4540 #define ADC_JDR2_JDATA_Pos                (0U)
4541 #define ADC_JDR2_JDATA_Msk                (0xFFFFFFFFUL << ADC_JDR2_JDATA_Pos)  /*!< 0xFFFFFFFF */
4542 #define ADC_JDR2_JDATA                    ADC_JDR2_JDATA_Msk                    /*!< ADC Injected DATA */
4543 #define ADC_JDR2_JDATA_0                  (0x00000001UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000001 */
4544 #define ADC_JDR2_JDATA_1                  (0x00000002UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000002 */
4545 #define ADC_JDR2_JDATA_2                  (0x00000004UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000004 */
4546 #define ADC_JDR2_JDATA_3                  (0x00000008UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000008 */
4547 #define ADC_JDR2_JDATA_4                  (0x00000010UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000010 */
4548 #define ADC_JDR2_JDATA_5                  (0x00000020UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000020 */
4549 #define ADC_JDR2_JDATA_6                  (0x00000040UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000040 */
4550 #define ADC_JDR2_JDATA_7                  (0x00000080UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000080 */
4551 #define ADC_JDR2_JDATA_8                  (0x00000100UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000100 */
4552 #define ADC_JDR2_JDATA_9                  (0x00000200UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000200 */
4553 #define ADC_JDR2_JDATA_10                 (0x00000400UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000400 */
4554 #define ADC_JDR2_JDATA_11                 (0x00000800UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00000800 */
4555 #define ADC_JDR2_JDATA_12                 (0x00001000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00001000 */
4556 #define ADC_JDR2_JDATA_13                 (0x00002000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00002000 */
4557 #define ADC_JDR2_JDATA_14                 (0x00004000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00004000 */
4558 #define ADC_JDR2_JDATA_15                 (0x00008000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00008000 */
4559 #define ADC_JDR2_JDATA_16                 (0x00010000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00010000 */
4560 #define ADC_JDR2_JDATA_17                 (0x00020000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00020000 */
4561 #define ADC_JDR2_JDATA_18                 (0x00040000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00040000 */
4562 #define ADC_JDR2_JDATA_19                 (0x00080000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00080000 */
4563 #define ADC_JDR2_JDATA_20                 (0x00100000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00100000 */
4564 #define ADC_JDR2_JDATA_21                 (0x00200000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00200000 */
4565 #define ADC_JDR2_JDATA_22                 (0x00400000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00400000 */
4566 #define ADC_JDR2_JDATA_23                 (0x00800000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x00800000 */
4567 #define ADC_JDR2_JDATA_24                 (0x01000000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x01000000 */
4568 #define ADC_JDR2_JDATA_25                 (0x02000000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x02000000 */
4569 #define ADC_JDR2_JDATA_26                 (0x04000000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x04000000 */
4570 #define ADC_JDR2_JDATA_27                 (0x08000000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x08000000 */
4571 #define ADC_JDR2_JDATA_28                 (0x10000000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x10000000 */
4572 #define ADC_JDR2_JDATA_29                 (0x20000000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x20000000 */
4573 #define ADC_JDR2_JDATA_30                 (0x40000000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x40000000 */
4574 #define ADC_JDR2_JDATA_31                 (0x80000000UL << ADC_JDR2_JDATA_Pos)  /*!< 0x80000000 */
4575 
4576 /********************  Bit definition for ADC_JDR3 register  ********************/
4577 #define ADC_JDR3_JDATA_Pos                (0U)
4578 #define ADC_JDR3_JDATA_Msk                (0xFFFFFFFFUL << ADC_JDR3_JDATA_Pos)  /*!< 0xFFFFFFFF */
4579 #define ADC_JDR3_JDATA                    ADC_JDR3_JDATA_Msk                    /*!< ADC Injected DATA */
4580 #define ADC_JDR3_JDATA_0                  (0x00000001UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000001 */
4581 #define ADC_JDR3_JDATA_1                  (0x00000002UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000002 */
4582 #define ADC_JDR3_JDATA_2                  (0x00000004UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000004 */
4583 #define ADC_JDR3_JDATA_3                  (0x00000008UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000008 */
4584 #define ADC_JDR3_JDATA_4                  (0x00000010UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000010 */
4585 #define ADC_JDR3_JDATA_5                  (0x00000020UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000020 */
4586 #define ADC_JDR3_JDATA_6                  (0x00000040UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000040 */
4587 #define ADC_JDR3_JDATA_7                  (0x00000080UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000080 */
4588 #define ADC_JDR3_JDATA_8                  (0x00000100UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000100 */
4589 #define ADC_JDR3_JDATA_9                  (0x00000200UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000200 */
4590 #define ADC_JDR3_JDATA_10                 (0x00000400UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000400 */
4591 #define ADC_JDR3_JDATA_11                 (0x00000800UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00000800 */
4592 #define ADC_JDR3_JDATA_12                 (0x00001000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00001000 */
4593 #define ADC_JDR3_JDATA_13                 (0x00002000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00002000 */
4594 #define ADC_JDR3_JDATA_14                 (0x00004000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00004000 */
4595 #define ADC_JDR3_JDATA_15                 (0x00008000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00008000 */
4596 #define ADC_JDR3_JDATA_16                 (0x00010000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00010000 */
4597 #define ADC_JDR3_JDATA_17                 (0x00020000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00020000 */
4598 #define ADC_JDR3_JDATA_18                 (0x00040000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00040000 */
4599 #define ADC_JDR3_JDATA_19                 (0x00080000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00080000 */
4600 #define ADC_JDR3_JDATA_20                 (0x00100000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00100000 */
4601 #define ADC_JDR3_JDATA_21                 (0x00200000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00200000 */
4602 #define ADC_JDR3_JDATA_22                 (0x00400000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00400000 */
4603 #define ADC_JDR3_JDATA_23                 (0x00800000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x00800000 */
4604 #define ADC_JDR3_JDATA_24                 (0x01000000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x01000000 */
4605 #define ADC_JDR3_JDATA_25                 (0x02000000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x02000000 */
4606 #define ADC_JDR3_JDATA_26                 (0x04000000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x04000000 */
4607 #define ADC_JDR3_JDATA_27                 (0x08000000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x08000000 */
4608 #define ADC_JDR3_JDATA_28                 (0x10000000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x10000000 */
4609 #define ADC_JDR3_JDATA_29                 (0x20000000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x20000000 */
4610 #define ADC_JDR3_JDATA_30                 (0x40000000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x40000000 */
4611 #define ADC_JDR3_JDATA_31                 (0x80000000UL << ADC_JDR3_JDATA_Pos)  /*!< 0x80000000 */
4612 
4613 /********************  Bit definition for ADC_JDR4 register  ********************/
4614 #define ADC_JDR4_JDATA_Pos                (0U)
4615 #define ADC_JDR4_JDATA_Msk                (0xFFFFFFFFUL << ADC_JDR4_JDATA_Pos)  /*!< 0xFFFFFFFF */
4616 #define ADC_JDR4_JDATA                    ADC_JDR4_JDATA_Msk                    /*!< ADC Injected DATA */
4617 #define ADC_JDR4_JDATA_0                  (0x00000001UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000001 */
4618 #define ADC_JDR4_JDATA_1                  (0x00000002UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000002 */
4619 #define ADC_JDR4_JDATA_2                  (0x00000004UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000004 */
4620 #define ADC_JDR4_JDATA_3                  (0x00000008UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000008 */
4621 #define ADC_JDR4_JDATA_4                  (0x00000010UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000010 */
4622 #define ADC_JDR4_JDATA_5                  (0x00000020UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000020 */
4623 #define ADC_JDR4_JDATA_6                  (0x00000040UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000040 */
4624 #define ADC_JDR4_JDATA_7                  (0x00000080UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000080 */
4625 #define ADC_JDR4_JDATA_8                  (0x00000100UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000100 */
4626 #define ADC_JDR4_JDATA_9                  (0x00000200UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000200 */
4627 #define ADC_JDR4_JDATA_10                 (0x00000400UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000400 */
4628 #define ADC_JDR4_JDATA_11                 (0x00000800UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00000800 */
4629 #define ADC_JDR4_JDATA_12                 (0x00001000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00001000 */
4630 #define ADC_JDR4_JDATA_13                 (0x00002000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00002000 */
4631 #define ADC_JDR4_JDATA_14                 (0x00004000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00004000 */
4632 #define ADC_JDR4_JDATA_15                 (0x00008000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00008000 */
4633 #define ADC_JDR4_JDATA_16                 (0x00010000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00010000 */
4634 #define ADC_JDR4_JDATA_17                 (0x00020000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00020000 */
4635 #define ADC_JDR4_JDATA_18                 (0x00040000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00040000 */
4636 #define ADC_JDR4_JDATA_19                 (0x00080000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00080000 */
4637 #define ADC_JDR4_JDATA_20                 (0x00100000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00100000 */
4638 #define ADC_JDR4_JDATA_21                 (0x00200000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00200000 */
4639 #define ADC_JDR4_JDATA_22                 (0x00400000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00400000 */
4640 #define ADC_JDR4_JDATA_23                 (0x00800000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x00800000 */
4641 #define ADC_JDR4_JDATA_24                 (0x01000000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x01000000 */
4642 #define ADC_JDR4_JDATA_25                 (0x02000000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x02000000 */
4643 #define ADC_JDR4_JDATA_26                 (0x04000000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x04000000 */
4644 #define ADC_JDR4_JDATA_27                 (0x08000000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x08000000 */
4645 #define ADC_JDR4_JDATA_28                 (0x10000000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x10000000 */
4646 #define ADC_JDR4_JDATA_29                 (0x20000000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x20000000 */
4647 #define ADC_JDR4_JDATA_30                 (0x40000000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x40000000 */
4648 #define ADC_JDR4_JDATA_31                 (0x80000000UL << ADC_JDR4_JDATA_Pos)  /*!< 0x80000000 */
4649 
4650 /********************  Bit definition for ADC_AWD2CR register  ********************/
4651 #define ADC_AWD2CR_AWD2CH_Pos             (0U)
4652 #define ADC_AWD2CR_AWD2CH_Msk             (0xFFFFFFUL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00FFFFFF */
4653 #define ADC_AWD2CR_AWD2CH                 ADC_AWD2CR_AWD2CH_Msk                 /*!< ADC Analog watchdog 2 channel selection */
4654 #define ADC_AWD2CR_AWD2CH_0               (0x00001UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000001 */
4655 #define ADC_AWD2CR_AWD2CH_1               (0x00002UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000002 */
4656 #define ADC_AWD2CR_AWD2CH_2               (0x00004UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000004 */
4657 #define ADC_AWD2CR_AWD2CH_3               (0x00008UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000008 */
4658 #define ADC_AWD2CR_AWD2CH_4               (0x00010UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000010 */
4659 #define ADC_AWD2CR_AWD2CH_5               (0x00020UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000020 */
4660 #define ADC_AWD2CR_AWD2CH_6               (0x00040UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000040 */
4661 #define ADC_AWD2CR_AWD2CH_7               (0x00080UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000080 */
4662 #define ADC_AWD2CR_AWD2CH_8               (0x00100UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000100 */
4663 #define ADC_AWD2CR_AWD2CH_9               (0x00200UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000200 */
4664 #define ADC_AWD2CR_AWD2CH_10              (0x00400UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000400 */
4665 #define ADC_AWD2CR_AWD2CH_11              (0x00800UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00000800 */
4666 #define ADC_AWD2CR_AWD2CH_12              (0x01000UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00001000 */
4667 #define ADC_AWD2CR_AWD2CH_13              (0x02000UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00002000 */
4668 #define ADC_AWD2CR_AWD2CH_14              (0x04000UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00004000 */
4669 #define ADC_AWD2CR_AWD2CH_15              (0x08000UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00008000 */
4670 #define ADC_AWD2CR_AWD2CH_16              (0x10000UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00010000 */
4671 #define ADC_AWD2CR_AWD2CH_17              (0x20000UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00020000 */
4672 #define ADC_AWD2CR_AWD2CH_18              (0x40000UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00040000 */
4673 #define ADC_AWD2CR_AWD2CH_19              (0x80000UL << ADC_AWD2CR_AWD2CH_Pos)  /*!< 0x00080000 */
4674 #define ADC_AWD2CR_AWD2CH_20              (0x100000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00100000 */
4675 #define ADC_AWD2CR_AWD2CH_21              (0x200000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00200000 */
4676 #define ADC_AWD2CR_AWD2CH_22              (0x400000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00400000 */
4677 #define ADC_AWD2CR_AWD2CH_23              (0x800000UL << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00800000 */
4678 
4679 /********************  Bit definition for ADC_AWD1TR register  *******************/
4680 #define ADC_AWD1TR_LT1_Pos                (0U)
4681 #define ADC_AWD1TR_LT1_Msk                (0xFFFUL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000FFF */
4682 #define ADC_AWD1TR_LT1                    ADC_AWD1TR_LT1_Msk                   /*!< ADC analog watchdog 1 threshold low */
4683 #define ADC_AWD1TR_LT1_0                  (0x001UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000001 */
4684 #define ADC_AWD1TR_LT1_1                  (0x002UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000002 */
4685 #define ADC_AWD1TR_LT1_2                  (0x004UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000004 */
4686 #define ADC_AWD1TR_LT1_3                  (0x008UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000008 */
4687 #define ADC_AWD1TR_LT1_4                  (0x010UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000010 */
4688 #define ADC_AWD1TR_LT1_5                  (0x020UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000020 */
4689 #define ADC_AWD1TR_LT1_6                  (0x040UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000040 */
4690 #define ADC_AWD1TR_LT1_7                  (0x080UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000080 */
4691 #define ADC_AWD1TR_LT1_8                  (0x100UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000100 */
4692 #define ADC_AWD1TR_LT1_9                  (0x200UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000200 */
4693 #define ADC_AWD1TR_LT1_10                 (0x400UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000400 */
4694 #define ADC_AWD1TR_LT1_11                 (0x800UL << ADC_AWD1TR_LT1_Pos)      /*!< 0x00000800 */
4695 
4696 #define ADC_AWD1TR_HT1_Pos                (16U)
4697 #define ADC_AWD1TR_HT1_Msk                (0xFFFUL << ADC_AWD1TR_HT1_Pos)      /*!< 0x0FFF0000 */
4698 #define ADC_AWD1TR_HT1                    ADC_AWD1TR_HT1_Msk                   /*!< ADC Analog watchdog 1 threshold high */
4699 #define ADC_AWD1TR_HT1_0                  (0x001UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x00010000 */
4700 #define ADC_AWD1TR_HT1_1                  (0x002UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x00020000 */
4701 #define ADC_AWD1TR_HT1_2                  (0x004UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x00040000 */
4702 #define ADC_AWD1TR_HT1_3                  (0x008UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x00080000 */
4703 #define ADC_AWD1TR_HT1_4                  (0x010UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x00100000 */
4704 #define ADC_AWD1TR_HT1_5                  (0x020UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x00200000 */
4705 #define ADC_AWD1TR_HT1_6                  (0x040UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x00400000 */
4706 #define ADC_AWD1TR_HT1_7                  (0x080UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x00800000 */
4707 #define ADC_AWD1TR_HT1_8                  (0x100UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x01000000 */
4708 #define ADC_AWD1TR_HT1_9                  (0x200UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x02000000 */
4709 #define ADC_AWD1TR_HT1_10                 (0x400UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x04000000 */
4710 #define ADC_AWD1TR_HT1_11                 (0x800UL << ADC_AWD1TR_HT1_Pos)      /*!< 0x08000000 */
4711 
4712 /********************  Bit definition for ADC_AWDTR2 register  *******************/
4713 #define ADC_AWD2TR_LT2_Pos                (0U)
4714 #define ADC_AWD2TR_LT2_Msk                (0xFFFUL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000FFF */
4715 #define ADC_AWD2TR_LT2                    ADC_AWD2TR_LT2_Msk                   /*!< ADC analog watchdog 2 threshold low */
4716 #define ADC_AWD2TR_LT2_0                  (0x001UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000001 */
4717 #define ADC_AWD2TR_LT2_1                  (0x002UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000002 */
4718 #define ADC_AWD2TR_LT2_2                  (0x004UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000004 */
4719 #define ADC_AWD2TR_LT2_3                  (0x008UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000008 */
4720 #define ADC_AWD2TR_LT2_4                  (0x010UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000010 */
4721 #define ADC_AWD2TR_LT2_5                  (0x020UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000020 */
4722 #define ADC_AWD2TR_LT2_6                  (0x040UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000040 */
4723 #define ADC_AWD2TR_LT2_7                  (0x080UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000080 */
4724 #define ADC_AWD2TR_LT2_8                  (0x100UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000100 */
4725 #define ADC_AWD2TR_LT2_9                  (0x200UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000200 */
4726 #define ADC_AWD2TR_LT2_10                 (0x400UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000400 */
4727 #define ADC_AWD2TR_LT2_11                 (0x800UL << ADC_AWD2TR_LT2_Pos)      /*!< 0x00000800 */
4728 
4729 #define ADC_AWD2TR_HT2_Pos                (16U)
4730 #define ADC_AWD2TR_HT2_Msk                (0xFFFUL << ADC_AWD2TR_HT2_Pos)      /*!< 0x0FFF0000 */
4731 #define ADC_AWD2TR_HT2                    ADC_AWD2TR_HT2_Msk                   /*!< ADC analog watchdog 2 threshold high */
4732 #define ADC_AWD2TR_HT2_0                  (0x001UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x00010000 */
4733 #define ADC_AWD2TR_HT2_1                  (0x002UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x00020000 */
4734 #define ADC_AWD2TR_HT2_2                  (0x004UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x00040000 */
4735 #define ADC_AWD2TR_HT2_3                  (0x008UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x00080000 */
4736 #define ADC_AWD2TR_HT2_4                  (0x010UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x00100000 */
4737 #define ADC_AWD2TR_HT2_5                  (0x020UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x00200000 */
4738 #define ADC_AWD2TR_HT2_6                  (0x040UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x00400000 */
4739 #define ADC_AWD2TR_HT2_7                  (0x080UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x00800000 */
4740 #define ADC_AWD2TR_HT2_8                  (0x100UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x01000000 */
4741 #define ADC_AWD2TR_HT2_9                  (0x200UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x02000000 */
4742 #define ADC_AWD2TR_HT2_10                 (0x400UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x04000000 */
4743 #define ADC_AWD2TR_HT2_11                 (0x800UL << ADC_AWD2TR_HT2_Pos)      /*!< 0x08000000 */
4744 
4745 /********************  Bit definition for ADC_CHSELR register  ****************/
4746 #define ADC_CHSELR_CHSEL_Pos           (0U)
4747 #define ADC_CHSELR_CHSEL_Msk           (0xFFFFFFUL << ADC_CHSELR_CHSEL_Pos)    /*!< 0x0007FFFF */
4748 #define ADC_CHSELR_CHSEL               ADC_CHSELR_CHSEL_Msk                    /*!< ADC group regular sequencer channels, available when ADC_CFGR1_CHSELRMOD is reset */
4749 
4750 #define ADC_CHSELR_CHSEL0_Pos          (0U)
4751 #define ADC_CHSELR_CHSEL0_Msk          (0x1UL << ADC_CHSELR_CHSEL0_Pos)        /*!< 0x00000001 */
4752 #define ADC_CHSELR_CHSEL0              ADC_CHSELR_CHSEL0_Msk                   /*!< ADC group regular sequencer channel 0, available when ADC_CFGR1_CHSELRMOD is reset */
4753 #define ADC_CHSELR_CHSEL1_Pos          (1U)
4754 #define ADC_CHSELR_CHSEL1_Msk          (0x1UL << ADC_CHSELR_CHSEL1_Pos)        /*!< 0x00000002 */
4755 #define ADC_CHSELR_CHSEL1              ADC_CHSELR_CHSEL1_Msk                   /*!< ADC group regular sequencer channel 1, available when ADC_CFGR1_CHSELRMOD is reset */
4756 #define ADC_CHSELR_CHSEL2_Pos          (2U)
4757 #define ADC_CHSELR_CHSEL2_Msk          (0x1UL << ADC_CHSELR_CHSEL2_Pos)        /*!< 0x00000004 */
4758 #define ADC_CHSELR_CHSEL2              ADC_CHSELR_CHSEL2_Msk                   /*!< ADC group regular sequencer channel 2, available when ADC_CFGR1_CHSELRMOD is reset */
4759 #define ADC_CHSELR_CHSEL3_Pos          (3U)
4760 #define ADC_CHSELR_CHSEL3_Msk          (0x1UL << ADC_CHSELR_CHSEL3_Pos)        /*!< 0x00000008 */
4761 #define ADC_CHSELR_CHSEL3              ADC_CHSELR_CHSEL3_Msk                   /*!< ADC group regular sequencer channel 3, available when ADC_CFGR1_CHSELRMOD is reset */
4762 #define ADC_CHSELR_CHSEL4_Pos          (4U)
4763 #define ADC_CHSELR_CHSEL4_Msk          (0x1UL << ADC_CHSELR_CHSEL4_Pos)        /*!< 0x00000010 */
4764 #define ADC_CHSELR_CHSEL4              ADC_CHSELR_CHSEL4_Msk                   /*!< ADC group regular sequencer channel 4, available when ADC_CFGR1_CHSELRMOD is reset */
4765 #define ADC_CHSELR_CHSEL5_Pos          (5U)
4766 #define ADC_CHSELR_CHSEL5_Msk          (0x1UL << ADC_CHSELR_CHSEL5_Pos)        /*!< 0x00000020 */
4767 #define ADC_CHSELR_CHSEL5              ADC_CHSELR_CHSEL5_Msk                   /*!< ADC group regular sequencer channel 5, available when ADC_CFGR1_CHSELRMOD is reset */
4768 #define ADC_CHSELR_CHSEL6_Pos          (6U)
4769 #define ADC_CHSELR_CHSEL6_Msk          (0x1UL << ADC_CHSELR_CHSEL6_Pos)        /*!< 0x00000040 */
4770 #define ADC_CHSELR_CHSEL6              ADC_CHSELR_CHSEL6_Msk                   /*!< ADC group regular sequencer channel 6, available when ADC_CFGR1_CHSELRMOD is reset */
4771 #define ADC_CHSELR_CHSEL7_Pos          (7U)
4772 #define ADC_CHSELR_CHSEL7_Msk          (0x1UL << ADC_CHSELR_CHSEL7_Pos)        /*!< 0x00000080 */
4773 #define ADC_CHSELR_CHSEL7              ADC_CHSELR_CHSEL7_Msk                   /*!< ADC group regular sequencer channel 7, available when ADC_CFGR1_CHSELRMOD is reset */
4774 #define ADC_CHSELR_CHSEL8_Pos          (8U)
4775 #define ADC_CHSELR_CHSEL8_Msk          (0x1UL << ADC_CHSELR_CHSEL8_Pos)        /*!< 0x00000100 */
4776 #define ADC_CHSELR_CHSEL8              ADC_CHSELR_CHSEL8_Msk                   /*!< ADC group regular sequencer channel 8, available when ADC_CFGR1_CHSELRMOD is reset */
4777 #define ADC_CHSELR_CHSEL9_Pos          (9U)
4778 #define ADC_CHSELR_CHSEL9_Msk          (0x1UL << ADC_CHSELR_CHSEL9_Pos)        /*!< 0x00000200 */
4779 #define ADC_CHSELR_CHSEL9              ADC_CHSELR_CHSEL9_Msk                   /*!< ADC group regular sequencer channel 9, available when ADC_CFGR1_CHSELRMOD is reset */
4780 #define ADC_CHSELR_CHSEL10_Pos         (10U)
4781 #define ADC_CHSELR_CHSEL10_Msk         (0x1UL << ADC_CHSELR_CHSEL10_Pos)       /*!< 0x00000400 */
4782 #define ADC_CHSELR_CHSEL10             ADC_CHSELR_CHSEL10_Msk                  /*!< ADC group regular sequencer channel 10, available when ADC_CFGR1_CHSELRMOD is reset */
4783 #define ADC_CHSELR_CHSEL11_Pos         (11U)
4784 #define ADC_CHSELR_CHSEL11_Msk         (0x1UL << ADC_CHSELR_CHSEL11_Pos)       /*!< 0x00000800 */
4785 #define ADC_CHSELR_CHSEL11             ADC_CHSELR_CHSEL11_Msk                  /*!< ADC group regular sequencer channel 11, available when ADC_CFGR1_CHSELRMOD is reset */
4786 #define ADC_CHSELR_CHSEL12_Pos         (12U)
4787 #define ADC_CHSELR_CHSEL12_Msk         (0x1UL << ADC_CHSELR_CHSEL12_Pos)       /*!< 0x00001000 */
4788 #define ADC_CHSELR_CHSEL12             ADC_CHSELR_CHSEL12_Msk                  /*!< ADC group regular sequencer channel 12, available when ADC_CFGR1_CHSELRMOD is reset */
4789 #define ADC_CHSELR_CHSEL13_Pos         (13U)
4790 #define ADC_CHSELR_CHSEL13_Msk         (0x1UL << ADC_CHSELR_CHSEL13_Pos)       /*!< 0x00002000 */
4791 #define ADC_CHSELR_CHSEL13             ADC_CHSELR_CHSEL13_Msk                  /*!< ADC group regular sequencer channel 13, available when ADC_CFGR1_CHSELRMOD is reset */
4792 #define ADC_CHSELR_CHSEL14_Pos         (14U)
4793 #define ADC_CHSELR_CHSEL14_Msk         (0x1UL << ADC_CHSELR_CHSEL14_Pos)       /*!< 0x00004000 */
4794 #define ADC_CHSELR_CHSEL14             ADC_CHSELR_CHSEL14_Msk                  /*!< ADC group regular sequencer channel 14, available when ADC_CFGR1_CHSELRMOD is reset */
4795 #define ADC_CHSELR_CHSEL15_Pos         (15U)
4796 #define ADC_CHSELR_CHSEL15_Msk         (0x1UL << ADC_CHSELR_CHSEL15_Pos)       /*!< 0x00008000 */
4797 #define ADC_CHSELR_CHSEL15             ADC_CHSELR_CHSEL15_Msk                  /*!< ADC group regular sequencer channel 15, available when ADC_CFGR1_CHSELRMOD is reset */
4798 #define ADC_CHSELR_CHSEL16_Pos         (16U)
4799 #define ADC_CHSELR_CHSEL16_Msk         (0x1UL << ADC_CHSELR_CHSEL16_Pos)       /*!< 0x00010000 */
4800 #define ADC_CHSELR_CHSEL16             ADC_CHSELR_CHSEL16_Msk                  /*!< ADC group regular sequencer channel 16, available when ADC_CFGR1_CHSELRMOD is reset */
4801 #define ADC_CHSELR_CHSEL17_Pos         (17U)
4802 #define ADC_CHSELR_CHSEL17_Msk         (0x1UL << ADC_CHSELR_CHSEL17_Pos)       /*!< 0x00020000 */
4803 #define ADC_CHSELR_CHSEL17             ADC_CHSELR_CHSEL17_Msk                  /*!< ADC group regular sequencer channel 17, available when ADC_CFGR1_CHSELRMOD is reset */
4804 #define ADC_CHSELR_CHSEL18_Pos         (18U)
4805 #define ADC_CHSELR_CHSEL18_Msk         (0x1UL << ADC_CHSELR_CHSEL18_Pos)       /*!< 0x00040000 */
4806 #define ADC_CHSELR_CHSEL18             ADC_CHSELR_CHSEL18_Msk                  /*!< ADC group regular sequencer channel 18, available when ADC_CFGR1_CHSELRMOD is reset */
4807 #define ADC_CHSELR_CHSEL19_Pos         (19U)
4808 #define ADC_CHSELR_CHSEL19_Msk         (0x1UL << ADC_CHSELR_CHSEL19_Pos)       /*!< 0x00040000 */
4809 #define ADC_CHSELR_CHSEL19             ADC_CHSELR_CHSEL19_Msk                  /*!< ADC group regular sequencer channel 18, available when ADC_CFGR1_CHSELRMOD is reset */
4810 #define ADC_CHSELR_CHSEL20_Pos         (20U)
4811 #define ADC_CHSELR_CHSEL20_Msk         (0x1UL << ADC_CHSELR_CHSEL20_Pos)       /*!< 0x00040000 */
4812 #define ADC_CHSELR_CHSEL20             ADC_CHSELR_CHSEL20_Msk                  /*!< ADC group regular sequencer channel 18, available when ADC_CFGR1_CHSELRMOD is reset */
4813 #define ADC_CHSELR_CHSEL21_Pos         (21U)
4814 #define ADC_CHSELR_CHSEL21_Msk         (0x1UL << ADC_CHSELR_CHSEL21_Pos)       /*!< 0x00040000 */
4815 #define ADC_CHSELR_CHSEL21             ADC_CHSELR_CHSEL21_Msk                  /*!< ADC group regular sequencer channel 18, available when ADC_CFGR1_CHSELRMOD is reset */
4816 #define ADC_CHSELR_CHSEL22_Pos         (22U)
4817 #define ADC_CHSELR_CHSEL22_Msk         (0x1UL << ADC_CHSELR_CHSEL22_Pos)       /*!< 0x00040000 */
4818 #define ADC_CHSELR_CHSEL22             ADC_CHSELR_CHSEL22_Msk                  /*!< ADC group regular sequencer channel 18, available when ADC_CFGR1_CHSELRMOD is reset */
4819 #define ADC_CHSELR_CHSEL23_Pos         (23U)
4820 #define ADC_CHSELR_CHSEL23_Msk         (0x1UL << ADC_CHSELR_CHSEL23_Pos)       /*!< 0x00040000 */
4821 #define ADC_CHSELR_CHSEL23             ADC_CHSELR_CHSEL23_Msk                  /*!< ADC group regular sequencer channel 18, available when ADC_CFGR1_CHSELRMOD is reset */
4822 
4823 #define ADC_CHSELR_SQ_ALL_Pos          (0U)
4824 #define ADC_CHSELR_SQ_ALL_Msk          (0xFFFFFFFFUL << ADC_CHSELR_SQ_ALL_Pos) /*!< 0xFFFFFFFF */
4825 #define ADC_CHSELR_SQ_ALL              ADC_CHSELR_SQ_ALL_Msk                   /*!< ADC group regular sequencer all ranks, available when ADC_CFGR1_CHSELRMOD is set */
4826 
4827 #define ADC_CHSELR_SQ1_Pos             (0U)
4828 #define ADC_CHSELR_SQ1_Msk             (0xFUL << ADC_CHSELR_SQ1_Pos)           /*!< 0x0000000F */
4829 #define ADC_CHSELR_SQ1                 ADC_CHSELR_SQ1_Msk                      /*!< ADC group regular sequencer rank 1, available when ADC_CFGR1_CHSELRMOD is set */
4830 #define ADC_CHSELR_SQ1_0               (0x1UL << ADC_CHSELR_SQ1_Pos)           /*!< 0x00000001 */
4831 #define ADC_CHSELR_SQ1_1               (0x2UL << ADC_CHSELR_SQ1_Pos)           /*!< 0x00000002 */
4832 #define ADC_CHSELR_SQ1_2               (0x4UL << ADC_CHSELR_SQ1_Pos)           /*!< 0x00000004 */
4833 #define ADC_CHSELR_SQ1_3               (0x8UL << ADC_CHSELR_SQ1_Pos)           /*!< 0x00000008 */
4834 
4835 #define ADC_CHSELR_SQ2_Pos             (4U)
4836 #define ADC_CHSELR_SQ2_Msk             (0xFUL << ADC_CHSELR_SQ2_Pos)           /*!< 0x000000F0 */
4837 #define ADC_CHSELR_SQ2                 ADC_CHSELR_SQ2_Msk                      /*!< ADC group regular sequencer rank 2, available when ADC_CFGR1_CHSELRMOD is set */
4838 #define ADC_CHSELR_SQ2_0               (0x1UL << ADC_CHSELR_SQ2_Pos)           /*!< 0x00000010 */
4839 #define ADC_CHSELR_SQ2_1               (0x2UL << ADC_CHSELR_SQ2_Pos)           /*!< 0x00000020 */
4840 #define ADC_CHSELR_SQ2_2               (0x4UL << ADC_CHSELR_SQ2_Pos)           /*!< 0x00000040 */
4841 #define ADC_CHSELR_SQ2_3               (0x8UL << ADC_CHSELR_SQ2_Pos)           /*!< 0x00000080 */
4842 
4843 #define ADC_CHSELR_SQ3_Pos             (8U)
4844 #define ADC_CHSELR_SQ3_Msk             (0xFUL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000F00 */
4845 #define ADC_CHSELR_SQ3                 ADC_CHSELR_SQ3_Msk                      /*!< ADC group regular sequencer rank 3, available when ADC_CFGR1_CHSELRMOD is set */
4846 #define ADC_CHSELR_SQ3_0               (0x1UL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000100 */
4847 #define ADC_CHSELR_SQ3_1               (0x2UL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000200 */
4848 #define ADC_CHSELR_SQ3_2               (0x4UL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000400 */
4849 #define ADC_CHSELR_SQ3_3               (0x8UL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000800 */
4850 
4851 #define ADC_CHSELR_SQ4_Pos             (12U)
4852 #define ADC_CHSELR_SQ4_Msk             (0xFUL << ADC_CHSELR_SQ4_Pos)           /*!< 0x0000F000 */
4853 #define ADC_CHSELR_SQ4                 ADC_CHSELR_SQ4_Msk                      /*!< ADC group regular sequencer rank 4, available when ADC_CFGR1_CHSELRMOD is set */
4854 #define ADC_CHSELR_SQ4_0               (0x1UL << ADC_CHSELR_SQ4_Pos)           /*!< 0x00001000 */
4855 #define ADC_CHSELR_SQ4_1               (0x2UL << ADC_CHSELR_SQ4_Pos)           /*!< 0x00002000 */
4856 #define ADC_CHSELR_SQ4_2               (0x4UL << ADC_CHSELR_SQ4_Pos)           /*!< 0x00004000 */
4857 #define ADC_CHSELR_SQ4_3               (0x8UL << ADC_CHSELR_SQ4_Pos)           /*!< 0x00008000 */
4858 
4859 #define ADC_CHSELR_SQ5_Pos             (16U)
4860 #define ADC_CHSELR_SQ5_Msk             (0xFUL << ADC_CHSELR_SQ5_Pos)           /*!< 0x000F0000 */
4861 #define ADC_CHSELR_SQ5                 ADC_CHSELR_SQ5_Msk                      /*!< ADC group regular sequencer rank 5, available when ADC_CFGR1_CHSELRMOD is set */
4862 #define ADC_CHSELR_SQ5_0               (0x1UL << ADC_CHSELR_SQ5_Pos)           /*!< 0x00010000 */
4863 #define ADC_CHSELR_SQ5_1               (0x2UL << ADC_CHSELR_SQ5_Pos)           /*!< 0x00020000 */
4864 #define ADC_CHSELR_SQ5_2               (0x4UL << ADC_CHSELR_SQ5_Pos)           /*!< 0x00040000 */
4865 #define ADC_CHSELR_SQ5_3               (0x8UL << ADC_CHSELR_SQ5_Pos)           /*!< 0x00080000 */
4866 
4867 #define ADC_CHSELR_SQ6_Pos             (20U)
4868 #define ADC_CHSELR_SQ6_Msk             (0xFUL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00F00000 */
4869 #define ADC_CHSELR_SQ6                 ADC_CHSELR_SQ6_Msk                      /*!< ADC group regular sequencer rank 6, available when ADC_CFGR1_CHSELRMOD is set */
4870 #define ADC_CHSELR_SQ6_0               (0x1UL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00100000 */
4871 #define ADC_CHSELR_SQ6_1               (0x2UL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00200000 */
4872 #define ADC_CHSELR_SQ6_2               (0x4UL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00400000 */
4873 #define ADC_CHSELR_SQ6_3               (0x8UL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00800000 */
4874 
4875 #define ADC_CHSELR_SQ7_Pos             (24U)
4876 #define ADC_CHSELR_SQ7_Msk             (0xFUL << ADC_CHSELR_SQ7_Pos)           /*!< 0x0F000000 */
4877 #define ADC_CHSELR_SQ7                 ADC_CHSELR_SQ7_Msk                      /*!< ADC group regular sequencer rank 7, available when ADC_CFGR1_CHSELRMOD is set */
4878 #define ADC_CHSELR_SQ7_0               (0x1UL << ADC_CHSELR_SQ7_Pos)           /*!< 0x01000000 */
4879 #define ADC_CHSELR_SQ7_1               (0x2UL << ADC_CHSELR_SQ7_Pos)           /*!< 0x02000000 */
4880 #define ADC_CHSELR_SQ7_2               (0x4UL << ADC_CHSELR_SQ7_Pos)           /*!< 0x04000000 */
4881 #define ADC_CHSELR_SQ7_3               (0x8UL << ADC_CHSELR_SQ7_Pos)           /*!< 0x08000000 */
4882 
4883 #define ADC_CHSELR_SQ8_Pos             (28U)
4884 #define ADC_CHSELR_SQ8_Msk             (0xFUL << ADC_CHSELR_SQ8_Pos)           /*!< 0xF0000000 */
4885 #define ADC_CHSELR_SQ8                 ADC_CHSELR_SQ8_Msk                      /*!< ADC group regular sequencer rank 8, available when ADC_CFGR1_CHSELRMOD is set */
4886 #define ADC_CHSELR_SQ8_0               (0x1UL << ADC_CHSELR_SQ8_Pos)           /*!< 0x10000000 */
4887 #define ADC_CHSELR_SQ8_1               (0x2UL << ADC_CHSELR_SQ8_Pos)           /*!< 0x20000000 */
4888 #define ADC_CHSELR_SQ8_2               (0x4UL << ADC_CHSELR_SQ8_Pos)           /*!< 0x40000000 */
4889 #define ADC_CHSELR_SQ8_3               (0x8UL << ADC_CHSELR_SQ8_Pos)           /*!< 0x80000000 */
4890 
4891 /********************  Bit definition for ADC_AWD3TR register  *******************/
4892 #define ADC_AWD3TR_LT3_Pos                (0U)
4893 #define ADC_AWD3TR_LT3_Msk                (0xFFFUL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000FFF */
4894 #define ADC_AWD3TR_LT3                    ADC_AWD3TR_LT3_Msk                   /*!< ADC analog watchdog 3 threshold low */
4895 #define ADC_AWD3TR_LT3_0                  (0x001UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000001 */
4896 #define ADC_AWD3TR_LT3_1                  (0x002UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000002 */
4897 #define ADC_AWD3TR_LT3_2                  (0x004UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000004 */
4898 #define ADC_AWD3TR_LT3_3                  (0x008UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000008 */
4899 #define ADC_AWD3TR_LT3_4                  (0x010UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000010 */
4900 #define ADC_AWD3TR_LT3_5                  (0x020UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000020 */
4901 #define ADC_AWD3TR_LT3_6                  (0x040UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000040 */
4902 #define ADC_AWD3TR_LT3_7                  (0x080UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000080 */
4903 #define ADC_AWD3TR_LT3_8                  (0x100UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000100 */
4904 #define ADC_AWD3TR_LT3_9                  (0x200UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000200 */
4905 #define ADC_AWD3TR_LT3_10                 (0x400UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000400 */
4906 #define ADC_AWD3TR_LT3_11                 (0x800UL << ADC_AWD3TR_LT3_Pos)      /*!< 0x00000800 */
4907 
4908 #define ADC_AWD3TR_HT3_Pos                (16U)
4909 #define ADC_AWD3TR_HT3_Msk                (0xFFFUL << ADC_AWD3TR_HT3_Pos)      /*!< 0x0FFF0000 */
4910 #define ADC_AWD3TR_HT3                    ADC_AWD3TR_HT3_Msk                   /*!< ADC analog watchdog 3 threshold high */
4911 #define ADC_AWD3TR_HT3_0                  (0x001UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x00010000 */
4912 #define ADC_AWD3TR_HT3_1                  (0x002UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x00020000 */
4913 #define ADC_AWD3TR_HT3_2                  (0x004UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x00040000 */
4914 #define ADC_AWD3TR_HT3_3                  (0x008UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x00080000 */
4915 #define ADC_AWD3TR_HT3_4                  (0x010UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x00100000 */
4916 #define ADC_AWD3TR_HT3_5                  (0x020UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x00200000 */
4917 #define ADC_AWD3TR_HT3_6                  (0x040UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x00400000 */
4918 #define ADC_AWD3TR_HT3_7                  (0x080UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x00800000 */
4919 #define ADC_AWD3TR_HT3_8                  (0x100UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x01000000 */
4920 #define ADC_AWD3TR_HT3_9                  (0x200UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x02000000 */
4921 #define ADC_AWD3TR_HT3_10                 (0x400UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x04000000 */
4922 #define ADC_AWD3TR_HT3_11                 (0x800UL << ADC_AWD3TR_HT3_Pos)      /*!< 0x08000000 */
4923 
4924 /********************  Bit definition for ADC_AWD3CR register  ********************/
4925 #define ADC_AWD3CR_AWD3CH_Pos             (0U)
4926 #define ADC_AWD3CR_AWD3CH_Msk             (0xFFFFFFUL << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00FFFFFF */
4927 #define ADC_AWD3CR_AWD3CH                 ADC_AWD3CR_AWD3CH_Msk                 /*!< ADC Analog watchdog 2 channel selection */
4928 #define ADC_AWD3CR_AWD3CH_0               (0x00001UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000001 */
4929 #define ADC_AWD3CR_AWD3CH_1               (0x00002UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000002 */
4930 #define ADC_AWD3CR_AWD3CH_2               (0x00004UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000004 */
4931 #define ADC_AWD3CR_AWD3CH_3               (0x00008UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000008 */
4932 #define ADC_AWD3CR_AWD3CH_4               (0x00010UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000010 */
4933 #define ADC_AWD3CR_AWD3CH_5               (0x00020UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000020 */
4934 #define ADC_AWD3CR_AWD3CH_6               (0x00040UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000040 */
4935 #define ADC_AWD3CR_AWD3CH_7               (0x00080UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000080 */
4936 #define ADC_AWD3CR_AWD3CH_8               (0x00100UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000100 */
4937 #define ADC_AWD3CR_AWD3CH_9               (0x00200UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000200 */
4938 #define ADC_AWD3CR_AWD3CH_10              (0x00400UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000400 */
4939 #define ADC_AWD3CR_AWD3CH_11              (0x00800UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00000800 */
4940 #define ADC_AWD3CR_AWD3CH_12              (0x01000UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00001000 */
4941 #define ADC_AWD3CR_AWD3CH_13              (0x02000UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00002000 */
4942 #define ADC_AWD3CR_AWD3CH_14              (0x04000UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00004000 */
4943 #define ADC_AWD3CR_AWD3CH_15              (0x08000UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00008000 */
4944 #define ADC_AWD3CR_AWD3CH_16              (0x10000UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00010000 */
4945 #define ADC_AWD3CR_AWD3CH_17              (0x20000UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00020000 */
4946 #define ADC_AWD3CR_AWD3CH_18              (0x40000UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00040000 */
4947 #define ADC_AWD3CR_AWD3CH_19              (0x80000UL << ADC_AWD3CR_AWD3CH_Pos)  /*!< 0x00080000 */
4948 #define ADC_AWD3CR_AWD2CH_20              (0x100000UL << ADC_AWD3CR_AWD2CH_Pos) /*!< 0x00100000 */
4949 #define ADC_AWD3CR_AWD2CH_21              (0x200000UL << ADC_AWD3CR_AWD2CH_Pos) /*!< 0x00200000 */
4950 #define ADC_AWD3CR_AWD2CH_22              (0x400000UL << ADC_AWD3CR_AWD2CH_Pos) /*!< 0x00400000 */
4951 #define ADC_AWD3CR_AWD2CH_23              (0x800000UL << ADC_AWD3CR_AWD2CH_Pos) /*!< 0x00800000 */
4952 
4953 /********************  Bit definition for ADC_DIFSEL register  ********************/
4954 #define ADC_DIFSEL_DIFSEL_Pos             (0U)
4955 #define ADC_DIFSEL_DIFSEL_Msk             (0xFFFFFUL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x000FFFFF */
4956 #define ADC_DIFSEL_DIFSEL                 ADC_DIFSEL_DIFSEL_Msk                 /*!< ADC differential modes for channels 1 to 18 */
4957 #define ADC_DIFSEL_DIFSEL_0               (0x00001UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000001 */
4958 #define ADC_DIFSEL_DIFSEL_1               (0x00002UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000002 */
4959 #define ADC_DIFSEL_DIFSEL_2               (0x00004UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000004 */
4960 #define ADC_DIFSEL_DIFSEL_3               (0x00008UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000008 */
4961 #define ADC_DIFSEL_DIFSEL_4               (0x00010UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000010 */
4962 #define ADC_DIFSEL_DIFSEL_5               (0x00020UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000020 */
4963 #define ADC_DIFSEL_DIFSEL_6               (0x00040UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000040 */
4964 #define ADC_DIFSEL_DIFSEL_7               (0x00080UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000080 */
4965 #define ADC_DIFSEL_DIFSEL_8               (0x00100UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000100 */
4966 #define ADC_DIFSEL_DIFSEL_9               (0x00200UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000200 */
4967 #define ADC_DIFSEL_DIFSEL_10              (0x00400UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000400 */
4968 #define ADC_DIFSEL_DIFSEL_11              (0x00800UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00000800 */
4969 #define ADC_DIFSEL_DIFSEL_12              (0x01000UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00001000 */
4970 #define ADC_DIFSEL_DIFSEL_13              (0x02000UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00002000 */
4971 #define ADC_DIFSEL_DIFSEL_14              (0x04000UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00004000 */
4972 #define ADC_DIFSEL_DIFSEL_15              (0x08000UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00008000 */
4973 #define ADC_DIFSEL_DIFSEL_16              (0x10000UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00010000 */
4974 #define ADC_DIFSEL_DIFSEL_17              (0x20000UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00020000 */
4975 #define ADC_DIFSEL_DIFSEL_18              (0x40000UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00040000 */
4976 #define ADC_DIFSEL_DIFSEL_19              (0x80000UL << ADC_DIFSEL_DIFSEL_Pos)  /*!< 0x00080000 */
4977 
4978 /********************  Bit definition for ADC_CALFACT register  ********************/
4979 #define ADC_CALFACT_I_APB_ADDR_Pos         (0U)
4980 #define ADC_CALFACT_I_APB_ADDR_Msk         (0xFFUL << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x000000FF */
4981 #define ADC_CALFACT_I_APB_ADDR             ADC_CALFACT_I_APB_ADDR_Msk             /*!< ADC calibration factors in single-ended mode */
4982 #define ADC_CALFACT_I_APB_ADDR_0           (0x001U << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x00000001 */
4983 #define ADC_CALFACT_I_APB_ADDR_1           (0x002U << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x00000002 */
4984 #define ADC_CALFACT_I_APB_ADDR_2           (0x004U << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x00000004 */
4985 #define ADC_CALFACT_I_APB_ADDR_3           (0x008U << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x00000008 */
4986 #define ADC_CALFACT_I_APB_ADDR_4           (0x010U << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x00000010 */
4987 #define ADC_CALFACT_I_APB_ADDR_5           (0x020U << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x00000020 */
4988 #define ADC_CALFACT_I_APB_ADDR_6           (0x040U << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x00000040 */
4989 #define ADC_CALFACT_I_APB_ADDR_7           (0x080U << ADC_CALFACT_I_APB_ADDR_Pos) /*!< 0x00000080 */
4990 
4991 #define ADC_CALFACT_I_APB_DATA_Pos         (08U)
4992 #define ADC_CALFACT_I_APB_DATA_Msk         (0xFFUL << ADC_CALFACT_I_APB_DATA_Pos) /*!< 0x0000FF00 */
4993 #define ADC_CALFACT_I_APB_DATA             ADC_CALFACT_I_APB_DATA_Msk             /*!< ADC calibration factors in differential mode */
4994 #define ADC_CALFACT_APB_DATA_0             (0x001U << ADC_CALFACT_APB_DATA_Pos)   /*!< 0x00000100 */
4995 #define ADC_CALFACT_APB_DATA_1             (0x002U << ADC_CALFACT_APB_DATA_Pos)   /*!< 0x00000200 */
4996 #define ADC_CALFACT_APB_DATA_2             (0x004U << ADC_CALFACT_APB_DATA_Pos)   /*!< 0x00000400 */
4997 #define ADC_CALFACT_APB_DATA_3             (0x008U << ADC_CALFACT_APB_DATA_Pos)   /*!< 0x00000800 */
4998 #define ADC_CALFACT_APB_DATA_4             (0x010U << ADC_CALFACT_APB_DATA_Pos)   /*!< 0x00001000 */
4999 #define ADC_CALFACT_APB_DATA_5             (0x020U << ADC_CALFACT_APB_DATA_Pos)   /*!< 0x00002000 */
5000 #define ADC_CALFACT_APB_DATA_6             (0x040U << ADC_CALFACT_APB_DATA_Pos)   /*!< 0x00004000 */
5001 #define ADC_CALFACT_APB_DATA_7             (0x080U << ADC_CALFACT_APB_DATA_Pos)   /*!< 0x00008000 */
5002 
5003 #define ADC_CALFACT_VALIDITY_Pos           (16U)
5004 #define ADC_CALFACT_VALIDITY_Msk           (0x1UL << ADC_CALFACT_VALIDITY_Pos)     /*!< 0x00010000 */
5005 #define ADC_CALFACT_VALIDITY               ADC_CALFACT_VALIDITY_Msk                /*!< ADC calibration factors in differential mode */
5006 #define ADC_CALFACT_LATCH_COEF_Pos         (24U)
5007 #define ADC_CALFACT_LATCH_COEF_Msk         (0x1UL << ADC_CALFACT_LATCH_COEF_Pos)   /*!< 0x01000000 */
5008 #define ADC_CALFACT_LATCH_COEF             ADC_CALFACT_LATCH_COEF_Msk              /*!< ADC calibration factors in differential mode */
5009 #define ADC_CALFACT_CAPTURE_COEF_Pos       (25U)
5010 #define ADC_CALFACT_CAPTURE_COEF_Msk       (0x1UL << ADC_CALFACT_CAPTURE_COEF_Pos) /*!< 0x01000000 */
5011 #define ADC_CALFACT_CAPTURE_COEF           ADC_CALFACT_CAPTURE_COEF_Msk            /*!< ADC calibration factors in differential mode */
5012 
5013 #define ADC4_CALFACT_CALFACT_Pos        (0U)
5014 #define ADC4_CALFACT_CALFACT_Msk        (0x7FUL << ADC4_CALFACT_CALFACT_Pos)     /*!< 0x0000007F */
5015 #define ADC4_CALFACT_CALFACT            ADC4_CALFACT_CALFACT_Msk                 /*!< ADC calibration factor in single-ended mode */
5016 #define ADC4_CALFACT_CALFACT_0          (0x01UL << ADC4_CALFACT_CALFACT_Pos)     /*!< 0x00000001 */
5017 #define ADC4_CALFACT_CALFACT_1          (0x02UL << ADC4_CALFACT_CALFACT_Pos)     /*!< 0x00000002 */
5018 #define ADC4_CALFACT_CALFACT_2          (0x04UL << ADC4_CALFACT_CALFACT_Pos)     /*!< 0x00000004 */
5019 #define ADC4_CALFACT_CALFACT_3          (0x08UL << ADC4_CALFACT_CALFACT_Pos)     /*!< 0x00000008 */
5020 #define ADC4_CALFACT_CALFACT_4          (0x10UL << ADC4_CALFACT_CALFACT_Pos)     /*!< 0x00000010 */
5021 #define ADC4_CALFACT_CALFACT_5          (0x20UL << ADC4_CALFACT_CALFACT_Pos)     /*!< 0x00000020 */
5022 #define ADC4_CALFACT_CALFACT_6          (0x40UL << ADC4_CALFACT_CALFACT_Pos)     /*!< 0x00000040 */
5023 
5024 /********************  Bit definition for ADC_CALFACT2 register  ********************/
5025 #define ADC_CALFACT2_CALFACT_Pos       (0U)
5026 #define ADC_CALFACT2_CALFACT_Msk       (0xFFFFFFFFUL << ADC_CALFACT2_CALFACT_Pos) /*!< 0xFFFFFFFF */
5027 #define ADC_CALFACT2_CALFACT           ADC_CALFACT2_CALFACT_Msk                   /*!< ADC Linearity calibration factors */
5028 #define ADC_CALFACT2_CALFACT_0         (0x00000001UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000001 */
5029 #define ADC_CALFACT2_CALFACT_1         (0x00000002UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000002 */
5030 #define ADC_CALFACT2_CALFACT_2         (0x00000004UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000004 */
5031 #define ADC_CALFACT2_CALFACT_3         (0x00000008UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000008 */
5032 #define ADC_CALFACT2_CALFACT_4         (0x00000010UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000010 */
5033 #define ADC_CALFACT2_CALFACT_5         (0x00000020UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000020 */
5034 #define ADC_CALFACT2_CALFACT_6         (0x00000040UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000040 */
5035 #define ADC_CALFACT2_CALFACT_7         (0x00000080UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000080 */
5036 #define ADC_CALFACT2_CALFACT_8         (0x00000100UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000100 */
5037 #define ADC_CALFACT2_CALFACT_9         (0x00000200UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000200 */
5038 #define ADC_CALFACT2_CALFACT_10        (0x00000400UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000400 */
5039 #define ADC_CALFACT2_CALFACT_11        (0x00000800UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00000800 */
5040 #define ADC_CALFACT2_CALFACT_12        (0x00001000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00001000 */
5041 #define ADC_CALFACT2_CALFACT_13        (0x00002000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00002000 */
5042 #define ADC_CALFACT2_CALFACT_14        (0x00004000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00004000 */
5043 #define ADC_CALFACT2_CALFACT_15        (0x00008000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00008000 */
5044 #define ADC_CALFACT2_CALFACT_16        (0x00010000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00010000 */
5045 #define ADC_CALFACT2_CALFACT_17        (0x00020000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00020000 */
5046 #define ADC_CALFACT2_CALFACT_18        (0x00040000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00040000 */
5047 #define ADC_CALFACT2_CALFACT_19        (0x00080000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00080000 */
5048 #define ADC_CALFACT2_CALFACT_20        (0x00100000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00100000 */
5049 #define ADC_CALFACT2_CALFACT_21        (0x00200000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00200000 */
5050 #define ADC_CALFACT2_CALFACT_22        (0x00400000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00400000 */
5051 #define ADC_CALFACT2_CALFACT_23        (0x00800000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x00800000 */
5052 #define ADC_CALFACT2_CALFACT_24        (0x01000000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x01000000 */
5053 #define ADC_CALFACT2_CALFACT_25        (0x02000000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x02000000 */
5054 #define ADC_CALFACT2_CALFACT_26        (0x04000000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x04000000 */
5055 #define ADC_CALFACT2_CALFACT_27        (0x08000000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x08000000 */
5056 #define ADC_CALFACT2_CALFACT_28        (0x10000000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x10000000 */
5057 #define ADC_CALFACT2_CALFACT_29        (0x20000000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x20000000 */
5058 #define ADC_CALFACT2_CALFACT_30        (0x40000000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x40000000 */
5059 #define ADC_CALFACT2_CALFACT_31        (0x80000000UL << ADC_CALFACT2_CALFACT_Pos) /*!< 0x80000000 */
5060 
5061 /********************  Bit definition for ADC_OR register  ********************/
5062 #define ADC_OR_CHN0SEL_Pos             (0U)
5063 #define ADC_OR_CHN0SEL_Msk             (0x1UL << ADC_OR_CHN0SEL_Pos)              /*!< 0x00000001 */
5064 #define ADC_OR_CHN0SEL                 ADC_OR_CHN0SEL_Msk                         /*!< ADC Channel 0 selection */
5065 
5066 /*************************  ADC Common registers  *****************************/
5067 
5068 #define ADC_CCR_PRESC_Pos                 (18U)
5069 #define ADC_CCR_PRESC_Msk                 (0xFUL << ADC_CCR_PRESC_Pos)          /*!< 0x003C0000 */
5070 #define ADC_CCR_PRESC                     ADC_CCR_PRESC_Msk                     /*!< ADC prescaler */
5071 #define ADC_CCR_PRESC_0                   (0x1UL << ADC_CCR_PRESC_Pos)          /*!< 0x00040000 */
5072 #define ADC_CCR_PRESC_1                   (0x2UL << ADC_CCR_PRESC_Pos)          /*!< 0x00080000 */
5073 #define ADC_CCR_PRESC_2                   (0x4UL << ADC_CCR_PRESC_Pos)          /*!< 0x00100000 */
5074 #define ADC_CCR_PRESC_3                   (0x8UL << ADC_CCR_PRESC_Pos)          /*!< 0x00200000 */
5075 
5076 #define ADC_CCR_VREFEN_Pos                (22U)
5077 #define ADC_CCR_VREFEN_Msk                (0x1UL << ADC_CCR_VREFEN_Pos)         /*!< 0x00400000 */
5078 #define ADC_CCR_VREFEN                    ADC_CCR_VREFEN_Msk                    /*!< VREFINT enable */
5079 #define ADC_CCR_VSENSEEN_Pos              (23U)
5080 #define ADC_CCR_VSENSEEN_Msk              (0x1UL << ADC_CCR_VSENSEEN_Pos)       /*!< 0x00800000 */
5081 #define ADC_CCR_VSENSEEN                  ADC_CCR_VSENSEEN_Msk                  /*!< Temperature sensor enable */
5082 #define ADC_CCR_VBATEN_Pos                (24U)
5083 #define ADC_CCR_VBATEN_Msk                (0x1UL << ADC_CCR_VBATEN_Pos)         /*!< 0x01000000 */
5084 #define ADC_CCR_VBATEN                    ADC_CCR_VBATEN_Msk                    /*!< VBAT enable */
5085 #define ADC_CCR_LFMEN_Pos                 (25U)
5086 #define ADC_CCR_LFMEN_Msk                 (0x1UL << ADC_CCR_LFMEN_Pos)          /*!< 0x02000000 */
5087 #define ADC_CCR_LFMEN                     ADC_CCR_LFMEN_Msk                     /*!< Low Frequency Mode Enable, specific ADC4*/
5088 #define ADC_CCR_VDDCOREN_Pos              (26U)
5089 #define ADC_CCR_VDDCOREN_Msk              (0x1UL << ADC_CCR_VDDCOREN_Pos)       /*!< 0x04000000 */
5090 #define ADC_CCR_VDDCOREN                  ADC_CCR_VDDCOREN_Msk                  /*!< VDDCode enable */
5091 
5092 
5093 /******************************************************************************/
5094 /*                                                                            */
5095 /*                          CORDIC calculation unit                           */
5096 /*                                                                            */
5097 /******************************************************************************/
5098 /*******************  Bit definition for CORDIC_CSR register  *****************/
5099 #define CORDIC_CSR_FUNC_Pos                 (0U)
5100 #define CORDIC_CSR_FUNC_Msk                 (0xFUL << CORDIC_CSR_FUNC_Pos)          /*!< 0x0000000F */
5101 #define CORDIC_CSR_FUNC                     CORDIC_CSR_FUNC_Msk                     /*!< Function */
5102 #define CORDIC_CSR_FUNC_0                   (0x1UL << CORDIC_CSR_FUNC_Pos)          /*!< 0x00000001 */
5103 #define CORDIC_CSR_FUNC_1                   (0x2UL << CORDIC_CSR_FUNC_Pos)          /*!< 0x00000002 */
5104 #define CORDIC_CSR_FUNC_2                   (0x4UL << CORDIC_CSR_FUNC_Pos)          /*!< 0x00000004 */
5105 #define CORDIC_CSR_FUNC_3                   (0x8UL << CORDIC_CSR_FUNC_Pos)          /*!< 0x00000008 */
5106 #define CORDIC_CSR_PRECISION_Pos            (4U)
5107 #define CORDIC_CSR_PRECISION_Msk            (0xFUL << CORDIC_CSR_PRECISION_Pos)     /*!< 0x000000F0 */
5108 #define CORDIC_CSR_PRECISION                CORDIC_CSR_PRECISION_Msk                /*!< Precision */
5109 #define CORDIC_CSR_PRECISION_0              (0x1UL << CORDIC_CSR_PRECISION_Pos)     /*!< 0x00000010 */
5110 #define CORDIC_CSR_PRECISION_1              (0x2UL << CORDIC_CSR_PRECISION_Pos)     /*!< 0x00000020 */
5111 #define CORDIC_CSR_PRECISION_2              (0x4UL << CORDIC_CSR_PRECISION_Pos)     /*!< 0x00000040 */
5112 #define CORDIC_CSR_PRECISION_3              (0x8UL << CORDIC_CSR_PRECISION_Pos)     /*!< 0x00000080 */
5113 #define CORDIC_CSR_SCALE_Pos                (8U)
5114 #define CORDIC_CSR_SCALE_Msk                (0x7UL << CORDIC_CSR_SCALE_Pos)         /*!< 0x00000700 */
5115 #define CORDIC_CSR_SCALE                    CORDIC_CSR_SCALE_Msk                    /*!< Scaling factor */
5116 #define CORDIC_CSR_SCALE_0                  (0x1UL << CORDIC_CSR_SCALE_Pos)         /*!< 0x00000100 */
5117 #define CORDIC_CSR_SCALE_1                  (0x2UL << CORDIC_CSR_SCALE_Pos)         /*!< 0x00000200 */
5118 #define CORDIC_CSR_SCALE_2                  (0x4UL << CORDIC_CSR_SCALE_Pos)         /*!< 0x00000400 */
5119 #define CORDIC_CSR_IEN_Pos                  (16U)
5120 #define CORDIC_CSR_IEN_Msk                  (0x1UL << CORDIC_CSR_IEN_Pos)           /*!< 0x00010000 */
5121 #define CORDIC_CSR_IEN                      CORDIC_CSR_IEN_Msk                      /*!< Interrupt Enable */
5122 #define CORDIC_CSR_DMAREN_Pos               (17U)
5123 #define CORDIC_CSR_DMAREN_Msk               (0x1UL << CORDIC_CSR_DMAREN_Pos)        /*!< 0x00020000 */
5124 #define CORDIC_CSR_DMAREN                   CORDIC_CSR_DMAREN_Msk                   /*!< DMA Read channel Enable */
5125 #define CORDIC_CSR_DMAWEN_Pos               (18U)
5126 #define CORDIC_CSR_DMAWEN_Msk               (0x1UL << CORDIC_CSR_DMAWEN_Pos)        /*!< 0x00040000 */
5127 #define CORDIC_CSR_DMAWEN                   CORDIC_CSR_DMAWEN_Msk                   /*!< DMA Write channel Enable */
5128 #define CORDIC_CSR_NRES_Pos                 (19U)
5129 #define CORDIC_CSR_NRES_Msk                 (0x1UL << CORDIC_CSR_NRES_Pos)          /*!< 0x00080000 */
5130 #define CORDIC_CSR_NRES                     CORDIC_CSR_NRES_Msk                     /*!< Number of results in WDATA register */
5131 #define CORDIC_CSR_NARGS_Pos                (20U)
5132 #define CORDIC_CSR_NARGS_Msk                (0x1UL << CORDIC_CSR_NARGS_Pos)         /*!< 0x00100000 */
5133 #define CORDIC_CSR_NARGS                    CORDIC_CSR_NARGS_Msk                    /*!< Number of arguments in RDATA register */
5134 #define CORDIC_CSR_RESSIZE_Pos              (21U)
5135 #define CORDIC_CSR_RESSIZE_Msk              (0x1UL << CORDIC_CSR_RESSIZE_Pos)       /*!< 0x00200000 */
5136 #define CORDIC_CSR_RESSIZE                  CORDIC_CSR_RESSIZE_Msk                  /*!< Width of output data */
5137 #define CORDIC_CSR_ARGSIZE_Pos              (22U)
5138 #define CORDIC_CSR_ARGSIZE_Msk              (0x1UL << CORDIC_CSR_ARGSIZE_Pos)       /*!< 0x00400000 */
5139 #define CORDIC_CSR_ARGSIZE                  CORDIC_CSR_ARGSIZE_Msk                  /*!< Width of input data */
5140 #define CORDIC_CSR_RRDY_Pos                 (31U)
5141 #define CORDIC_CSR_RRDY_Msk                 (0x1UL << CORDIC_CSR_RRDY_Pos)          /*!< 0x80000000 */
5142 #define CORDIC_CSR_RRDY                     CORDIC_CSR_RRDY_Msk                     /*!< Result Ready Flag */
5143 
5144 /*******************  Bit definition for CORDIC_WDATA register  ***************/
5145 #define CORDIC_WDATA_ARG_Pos                (0U)
5146 #define CORDIC_WDATA_ARG_Msk                (0xFFFFFFFFUL << CORDIC_WDATA_ARG_Pos)  /*!< 0xFFFFFFFF */
5147 #define CORDIC_WDATA_ARG                    CORDIC_WDATA_ARG_Msk                    /*!< Input Argument */
5148 
5149 /*******************  Bit definition for CORDIC_RDATA register  ***************/
5150 #define CORDIC_RDATA_RES_Pos                (0U)
5151 #define CORDIC_RDATA_RES_Msk                (0xFFFFFFFFUL << CORDIC_RDATA_RES_Pos)  /*!< 0xFFFFFFFF */
5152 #define CORDIC_RDATA_RES                    CORDIC_RDATA_RES_Msk                    /*!< Output Result */
5153 
5154 /******************************************************************************/
5155 /*                                                                            */
5156 /*                          CRC calculation unit                              */
5157 /*                                                                            */
5158 /******************************************************************************/
5159 /*******************  Bit definition for CRC_DR register  *********************/
5160 #define CRC_DR_DR_Pos                       (0U)
5161 #define CRC_DR_DR_Msk                       (0xFFFFFFFFUL << CRC_DR_DR_Pos)         /*!< 0xFFFFFFFF */
5162 #define CRC_DR_DR                           CRC_DR_DR_Msk                           /*!< Data register bits */
5163 
5164 /*******************  Bit definition for CRC_IDR register  ********************/
5165 #define CRC_IDR_IDR_Pos                     (0U)
5166 #define CRC_IDR_IDR_Msk                     (0xFFFFFFFFUL << CRC_IDR_IDR_Pos)       /*!< 0xFFFFFFFF */
5167 #define CRC_IDR_IDR                         CRC_IDR_IDR_Msk                         /*!< General-purpose 32-bits data register bits */
5168 
5169 /********************  Bit definition for CRC_CR register  ********************/
5170 #define CRC_CR_RESET_Pos                    (0U)
5171 #define CRC_CR_RESET_Msk                    (0x1UL << CRC_CR_RESET_Pos)             /*!< 0x00000001 */
5172 #define CRC_CR_RESET                        CRC_CR_RESET_Msk                        /*!< RESET the CRC computation unit bit */
5173 #define CRC_CR_POLYSIZE_Pos                 (3U)
5174 #define CRC_CR_POLYSIZE_Msk                 (0x3UL << CRC_CR_POLYSIZE_Pos)          /*!< 0x00000018 */
5175 #define CRC_CR_POLYSIZE                     CRC_CR_POLYSIZE_Msk                     /*!< Polynomial size bits */
5176 #define CRC_CR_POLYSIZE_0                   (0x1UL << CRC_CR_POLYSIZE_Pos)          /*!< 0x00000008 */
5177 #define CRC_CR_POLYSIZE_1                   (0x2UL << CRC_CR_POLYSIZE_Pos)          /*!< 0x00000010 */
5178 #define CRC_CR_REV_IN_Pos                   (5U)
5179 #define CRC_CR_REV_IN_Msk                   (0x3UL << CRC_CR_REV_IN_Pos)            /*!< 0x00000060 */
5180 #define CRC_CR_REV_IN                       CRC_CR_REV_IN_Msk                       /*!< REV_IN Reverse Input Data bits */
5181 #define CRC_CR_REV_IN_0                     (0x1UL << CRC_CR_REV_IN_Pos)            /*!< 0x00000020 */
5182 #define CRC_CR_REV_IN_1                     (0x2UL << CRC_CR_REV_IN_Pos)            /*!< 0x00000040 */
5183 #define CRC_CR_REV_OUT_Pos                  (7U)
5184 #define CRC_CR_REV_OUT_Msk                  (0x1UL << CRC_CR_REV_OUT_Pos)           /*!< 0x00000080 */
5185 #define CRC_CR_REV_OUT                      CRC_CR_REV_OUT_Msk                      /*!< REV_OUT Reverse Output Data bits */
5186 
5187 /*******************  Bit definition for CRC_INIT register  *******************/
5188 #define CRC_INIT_INIT_Pos                   (0U)
5189 #define CRC_INIT_INIT_Msk                   (0xFFFFFFFFUL << CRC_INIT_INIT_Pos)     /*!< 0xFFFFFFFF */
5190 #define CRC_INIT_INIT                       CRC_INIT_INIT_Msk                       /*!< Initial CRC value bits */
5191 
5192 /*******************  Bit definition for CRC_POL register  ********************/
5193 #define CRC_POL_POL_Pos                     (0U)
5194 #define CRC_POL_POL_Msk                     (0xFFFFFFFFUL << CRC_POL_POL_Pos)       /*!< 0xFFFFFFFF */
5195 #define CRC_POL_POL                         CRC_POL_POL_Msk                         /*!< Coefficients of the polynomial */
5196 
5197 /******************************************************************************/
5198 /*                                                                            */
5199 /*                          CRS Clock Recovery System                         */
5200 /******************************************************************************/
5201 /*******************  Bit definition for CRS_CR register  *********************/
5202 #define CRS_CR_SYNCOKIE_Pos                 (0U)
5203 #define CRS_CR_SYNCOKIE_Msk                 (0x1UL << CRS_CR_SYNCOKIE_Pos)          /*!< 0x00000001 */
5204 #define CRS_CR_SYNCOKIE                     CRS_CR_SYNCOKIE_Msk                     /*!< SYNC event OK interrupt enable */
5205 #define CRS_CR_SYNCWARNIE_Pos               (1U)
5206 #define CRS_CR_SYNCWARNIE_Msk               (0x1UL << CRS_CR_SYNCWARNIE_Pos)        /*!< 0x00000002 */
5207 #define CRS_CR_SYNCWARNIE                   CRS_CR_SYNCWARNIE_Msk                   /*!< SYNC warning interrupt enable */
5208 #define CRS_CR_ERRIE_Pos                    (2U)
5209 #define CRS_CR_ERRIE_Msk                    (0x1UL << CRS_CR_ERRIE_Pos)             /*!< 0x00000004 */
5210 #define CRS_CR_ERRIE                        CRS_CR_ERRIE_Msk                        /*!< SYNC error or trimming error interrupt enable */
5211 #define CRS_CR_ESYNCIE_Pos                  (3U)
5212 #define CRS_CR_ESYNCIE_Msk                  (0x1UL << CRS_CR_ESYNCIE_Pos)           /*!< 0x00000008 */
5213 #define CRS_CR_ESYNCIE                      CRS_CR_ESYNCIE_Msk                      /*!< Expected SYNC interrupt enable */
5214 #define CRS_CR_CEN_Pos                      (5U)
5215 #define CRS_CR_CEN_Msk                      (0x1UL << CRS_CR_CEN_Pos)               /*!< 0x00000020 */
5216 #define CRS_CR_CEN                          CRS_CR_CEN_Msk                          /*!< Frequency error counter enable */
5217 #define CRS_CR_AUTOTRIMEN_Pos               (6U)
5218 #define CRS_CR_AUTOTRIMEN_Msk               (0x1UL << CRS_CR_AUTOTRIMEN_Pos)        /*!< 0x00000040 */
5219 #define CRS_CR_AUTOTRIMEN                   CRS_CR_AUTOTRIMEN_Msk                   /*!< Automatic trimming enable */
5220 #define CRS_CR_SWSYNC_Pos                   (7U)
5221 #define CRS_CR_SWSYNC_Msk                   (0x1UL << CRS_CR_SWSYNC_Pos)            /*!< 0x00000080 */
5222 #define CRS_CR_SWSYNC                       CRS_CR_SWSYNC_Msk                       /*!< Generate software SYNC event */
5223 #define CRS_CR_TRIM_Pos                     (8U)
5224 #define CRS_CR_TRIM_Msk                     (0x3FUL << CRS_CR_TRIM_Pos)             /*!< 0x00003F00 */
5225 #define CRS_CR_TRIM                         CRS_CR_TRIM_Msk                         /*!< HSI48 oscillator smooth trimming */
5226 
5227 /*******************  Bit definition for CRS_CFGR register  *********************/
5228 #define CRS_CFGR_RELOAD_Pos                 (0U)
5229 #define CRS_CFGR_RELOAD_Msk                 (0xFFFFUL << CRS_CFGR_RELOAD_Pos)       /*!< 0x0000FFFF */
5230 #define CRS_CFGR_RELOAD                     CRS_CFGR_RELOAD_Msk                     /*!< Counter reload value */
5231 #define CRS_CFGR_FELIM_Pos                  (16U)
5232 #define CRS_CFGR_FELIM_Msk                  (0xFFUL << CRS_CFGR_FELIM_Pos)          /*!< 0x00FF0000 */
5233 #define CRS_CFGR_FELIM                      CRS_CFGR_FELIM_Msk                      /*!< Frequency error limit */
5234 #define CRS_CFGR_SYNCDIV_Pos                (24U)
5235 #define CRS_CFGR_SYNCDIV_Msk                (0x7UL << CRS_CFGR_SYNCDIV_Pos)         /*!< 0x07000000 */
5236 #define CRS_CFGR_SYNCDIV                    CRS_CFGR_SYNCDIV_Msk                    /*!< SYNC divider */
5237 #define CRS_CFGR_SYNCDIV_0                  (0x1UL << CRS_CFGR_SYNCDIV_Pos)         /*!< 0x01000000 */
5238 #define CRS_CFGR_SYNCDIV_1                  (0x2UL << CRS_CFGR_SYNCDIV_Pos)         /*!< 0x02000000 */
5239 #define CRS_CFGR_SYNCDIV_2                  (0x4UL << CRS_CFGR_SYNCDIV_Pos)         /*!< 0x04000000 */
5240 #define CRS_CFGR_SYNCSRC_Pos                (28U)
5241 #define CRS_CFGR_SYNCSRC_Msk                (0x3UL << CRS_CFGR_SYNCSRC_Pos)         /*!< 0x30000000 */
5242 #define CRS_CFGR_SYNCSRC                    CRS_CFGR_SYNCSRC_Msk                    /*!< SYNC signal source selection */
5243 #define CRS_CFGR_SYNCSRC_0                  (0x1UL << CRS_CFGR_SYNCSRC_Pos)         /*!< 0x10000000 */
5244 #define CRS_CFGR_SYNCSRC_1                  (0x2UL << CRS_CFGR_SYNCSRC_Pos)         /*!< 0x20000000 */
5245 #define CRS_CFGR_SYNCPOL_Pos                (31U)
5246 #define CRS_CFGR_SYNCPOL_Msk                (0x1UL << CRS_CFGR_SYNCPOL_Pos)         /*!< 0x80000000 */
5247 #define CRS_CFGR_SYNCPOL                    CRS_CFGR_SYNCPOL_Msk                    /*!< SYNC polarity selection */
5248 
5249 /*******************  Bit definition for CRS_ISR register  *********************/
5250 #define CRS_ISR_SYNCOKF_Pos                 (0U)
5251 #define CRS_ISR_SYNCOKF_Msk                 (0x1UL << CRS_ISR_SYNCOKF_Pos)          /*!< 0x00000001 */
5252 #define CRS_ISR_SYNCOKF                     CRS_ISR_SYNCOKF_Msk                     /*!< SYNC event OK flag */
5253 #define CRS_ISR_SYNCWARNF_Pos               (1U)
5254 #define CRS_ISR_SYNCWARNF_Msk               (0x1UL << CRS_ISR_SYNCWARNF_Pos)        /*!< 0x00000002 */
5255 #define CRS_ISR_SYNCWARNF                   CRS_ISR_SYNCWARNF_Msk                   /*!< SYNC warning flag */
5256 #define CRS_ISR_ERRF_Pos                    (2U)
5257 #define CRS_ISR_ERRF_Msk                    (0x1UL << CRS_ISR_ERRF_Pos)             /*!< 0x00000004 */
5258 #define CRS_ISR_ERRF                        CRS_ISR_ERRF_Msk                        /*!< Error flag */
5259 #define CRS_ISR_ESYNCF_Pos                  (3U)
5260 #define CRS_ISR_ESYNCF_Msk                  (0x1UL << CRS_ISR_ESYNCF_Pos)           /*!< 0x00000008 */
5261 #define CRS_ISR_ESYNCF                      CRS_ISR_ESYNCF_Msk                      /*!< Expected SYNC flag */
5262 #define CRS_ISR_SYNCERR_Pos                 (8U)
5263 #define CRS_ISR_SYNCERR_Msk                 (0x1UL << CRS_ISR_SYNCERR_Pos)          /*!< 0x00000100 */
5264 #define CRS_ISR_SYNCERR                     CRS_ISR_SYNCERR_Msk                     /*!< SYNC error */
5265 #define CRS_ISR_SYNCMISS_Pos                (9U)
5266 #define CRS_ISR_SYNCMISS_Msk                (0x1UL << CRS_ISR_SYNCMISS_Pos)         /*!< 0x00000200 */
5267 #define CRS_ISR_SYNCMISS                    CRS_ISR_SYNCMISS_Msk                    /*!< SYNC missed */
5268 #define CRS_ISR_TRIMOVF_Pos                 (10U)
5269 #define CRS_ISR_TRIMOVF_Msk                 (0x1UL << CRS_ISR_TRIMOVF_Pos)          /*!< 0x00000400 */
5270 #define CRS_ISR_TRIMOVF                     CRS_ISR_TRIMOVF_Msk                     /*!< Trimming overflow or underflow */
5271 #define CRS_ISR_FEDIR_Pos                   (15U)
5272 #define CRS_ISR_FEDIR_Msk                   (0x1UL << CRS_ISR_FEDIR_Pos)            /*!< 0x00008000 */
5273 #define CRS_ISR_FEDIR                       CRS_ISR_FEDIR_Msk                       /*!< Frequency error direction */
5274 #define CRS_ISR_FECAP_Pos                   (16U)
5275 #define CRS_ISR_FECAP_Msk                   (0xFFFFUL << CRS_ISR_FECAP_Pos)         /*!< 0xFFFF0000 */
5276 #define CRS_ISR_FECAP                       CRS_ISR_FECAP_Msk                       /*!< Frequency error capture */
5277 
5278 /*******************  Bit definition for CRS_ICR register  *********************/
5279 #define CRS_ICR_SYNCOKC_Pos                 (0U)
5280 #define CRS_ICR_SYNCOKC_Msk                 (0x1UL << CRS_ICR_SYNCOKC_Pos)          /*!< 0x00000001 */
5281 #define CRS_ICR_SYNCOKC                     CRS_ICR_SYNCOKC_Msk                     /*!< SYNC event OK clear flag */
5282 #define CRS_ICR_SYNCWARNC_Pos               (1U)
5283 #define CRS_ICR_SYNCWARNC_Msk               (0x1UL << CRS_ICR_SYNCWARNC_Pos)        /*!< 0x00000002 */
5284 #define CRS_ICR_SYNCWARNC                   CRS_ICR_SYNCWARNC_Msk                   /*!< SYNC warning clear flag */
5285 #define CRS_ICR_ERRC_Pos                    (2U)
5286 #define CRS_ICR_ERRC_Msk                    (0x1UL << CRS_ICR_ERRC_Pos)             /*!< 0x00000004 */
5287 #define CRS_ICR_ERRC                        CRS_ICR_ERRC_Msk                        /*!< Error clear flag */
5288 #define CRS_ICR_ESYNCC_Pos                  (3U)
5289 #define CRS_ICR_ESYNCC_Msk                  (0x1UL << CRS_ICR_ESYNCC_Pos)           /*!< 0x00000008 */
5290 #define CRS_ICR_ESYNCC                      CRS_ICR_ESYNCC_Msk                      /*!< Expected SYNC clear flag */
5291 
5292 /******************************************************************************/
5293 /*                                                                            */
5294 /*                                    RNG                                     */
5295 /*                                                                            */
5296 /******************************************************************************/
5297 /********************  Bits definition for RNG_CR register  *******************/
5298 #define RNG_CR_RNGEN_Pos                    (2U)
5299 #define RNG_CR_RNGEN_Msk                    (0x1UL << RNG_CR_RNGEN_Pos)             /*!< 0x00000004 */
5300 #define RNG_CR_RNGEN                        RNG_CR_RNGEN_Msk
5301 #define RNG_CR_IE_Pos                       (3U)
5302 #define RNG_CR_IE_Msk                       (0x1UL << RNG_CR_IE_Pos)                /*!< 0x00000008 */
5303 #define RNG_CR_IE                           RNG_CR_IE_Msk
5304 #define RNG_CR_CED_Pos                      (5U)
5305 #define RNG_CR_CED_Msk                      (0x1UL << RNG_CR_CED_Pos)               /*!< 0x00000020 */
5306 #define RNG_CR_CED                          RNG_CR_CED_Msk
5307 #define RNG_CR_ARDIS_Pos                    (7U)
5308 #define RNG_CR_ARDIS_Msk                    (0x1UL << RNG_CR_ARDIS_Pos)
5309 #define RNG_CR_ARDIS                        RNG_CR_ARDIS_Msk
5310 #define RNG_CR_RNG_CONFIG3_Pos              (8U)
5311 #define RNG_CR_RNG_CONFIG3_Msk              (0xFUL << RNG_CR_RNG_CONFIG3_Pos)
5312 #define RNG_CR_RNG_CONFIG3                  RNG_CR_RNG_CONFIG3_Msk
5313 #define RNG_CR_NISTC_Pos                    (12U)
5314 #define RNG_CR_NISTC_Msk                    (0x1UL << RNG_CR_NISTC_Pos)
5315 #define RNG_CR_NISTC                        RNG_CR_NISTC_Msk
5316 #define RNG_CR_RNG_CONFIG2_Pos              (13U)
5317 #define RNG_CR_RNG_CONFIG2_Msk              (0x7UL << RNG_CR_RNG_CONFIG2_Pos)
5318 #define RNG_CR_RNG_CONFIG2                  RNG_CR_RNG_CONFIG2_Msk
5319 #define RNG_CR_CLKDIV_Pos                   (16U)
5320 #define RNG_CR_CLKDIV_Msk                   (0xFUL << RNG_CR_CLKDIV_Pos)
5321 #define RNG_CR_CLKDIV                       RNG_CR_CLKDIV_Msk
5322 #define RNG_CR_CLKDIV_0                     (0x1UL << RNG_CR_CLKDIV_Pos)            /*!< 0x00010000 */
5323 #define RNG_CR_CLKDIV_1                     (0x2UL << RNG_CR_CLKDIV_Pos)            /*!< 0x00020000 */
5324 #define RNG_CR_CLKDIV_2                     (0x4UL << RNG_CR_CLKDIV_Pos)            /*!< 0x00040000 */
5325 #define RNG_CR_CLKDIV_3                     (0x8UL << RNG_CR_CLKDIV_Pos)            /*!< 0x00080000 */
5326 #define RNG_CR_RNG_CONFIG1_Pos              (20U)
5327 #define RNG_CR_RNG_CONFIG1_Msk              (0x3FUL << RNG_CR_RNG_CONFIG1_Pos)
5328 #define RNG_CR_RNG_CONFIG1                  RNG_CR_RNG_CONFIG1_Msk
5329 #define RNG_CR_CONDRST_Pos                  (30U)
5330 #define RNG_CR_CONDRST_Msk                  (0x1UL << RNG_CR_CONDRST_Pos)
5331 #define RNG_CR_CONDRST                      RNG_CR_CONDRST_Msk
5332 #define RNG_CR_CONFIGLOCK_Pos               (31U)
5333 #define RNG_CR_CONFIGLOCK_Msk               (0x1UL << RNG_CR_CONFIGLOCK_Pos)
5334 #define RNG_CR_CONFIGLOCK                   RNG_CR_CONFIGLOCK_Msk
5335 
5336 /********************  Bits definition for RNG_SR register  *******************/
5337 #define RNG_SR_DRDY_Pos                     (0U)
5338 #define RNG_SR_DRDY_Msk                     (0x1UL << RNG_SR_DRDY_Pos)              /*!< 0x00000001 */
5339 #define RNG_SR_DRDY                         RNG_SR_DRDY_Msk
5340 #define RNG_SR_CECS_Pos                     (1U)
5341 #define RNG_SR_CECS_Msk                     (0x1UL << RNG_SR_CECS_Pos)              /*!< 0x00000002 */
5342 #define RNG_SR_CECS                         RNG_SR_CECS_Msk
5343 #define RNG_SR_SECS_Pos                     (2U)
5344 #define RNG_SR_SECS_Msk                     (0x1UL << RNG_SR_SECS_Pos)              /*!< 0x00000004 */
5345 #define RNG_SR_SECS                         RNG_SR_SECS_Msk
5346 #define RNG_SR_CEIS_Pos                     (5U)
5347 #define RNG_SR_CEIS_Msk                     (0x1UL << RNG_SR_CEIS_Pos)              /*!< 0x00000020 */
5348 #define RNG_SR_CEIS                         RNG_SR_CEIS_Msk
5349 #define RNG_SR_SEIS_Pos                     (6U)
5350 #define RNG_SR_SEIS_Msk                     (0x1UL << RNG_SR_SEIS_Pos)              /*!< 0x00000040 */
5351 #define RNG_SR_SEIS                         RNG_SR_SEIS_Msk
5352 
5353 /********************  Bits definition for RNG_HTCR register  *******************/
5354 #define RNG_HTCR_HTCFG_Pos                  (0U)
5355 #define RNG_HTCR_HTCFG_Msk                  (0xFFFFFFFFUL << RNG_HTCR_HTCFG_Pos)    /*!< 0xFFFFFFFF */
5356 #define RNG_HTCR_HTCFG                      RNG_HTCR_HTCFG_Msk
5357 
5358 /******************************************************************************/
5359 /*                                                                            */
5360 /*                      Digital to Analog Converter                           */
5361 /*                                                                            */
5362 /******************************************************************************/
5363 #define DAC_CHANNEL2_SUPPORT                                                        /*!< DAC feature available only on specific devices: DAC channel 2 available */
5364 
5365 /********************  Bit definition for DAC_CR register  ********************/
5366 #define DAC_CR_EN1_Pos                      (0U)
5367 #define DAC_CR_EN1_Msk                      (0x1UL << DAC_CR_EN1_Pos)               /*!< 0x00000001 */
5368 #define DAC_CR_EN1                          DAC_CR_EN1_Msk                          /*!<DAC channel1 enable */
5369 #define DAC_CR_TEN1_Pos                     (1U)
5370 #define DAC_CR_TEN1_Msk                     (0x1UL << DAC_CR_TEN1_Pos)              /*!< 0x00000002 */
5371 #define DAC_CR_TEN1                         DAC_CR_TEN1_Msk                         /*!<DAC channel1 Trigger enable */
5372 #define DAC_CR_TSEL1_Pos                    (2U)
5373 #define DAC_CR_TSEL1_Msk                    (0xFUL << DAC_CR_TSEL1_Pos)             /*!< 0x0000003C */
5374 #define DAC_CR_TSEL1                        DAC_CR_TSEL1_Msk                        /*!<TSEL1[3:0] (DAC channel1 Trigger selection) */
5375 #define DAC_CR_TSEL1_0                      (0x1UL << DAC_CR_TSEL1_Pos)             /*!< 0x00000004 */
5376 #define DAC_CR_TSEL1_1                      (0x2UL << DAC_CR_TSEL1_Pos)             /*!< 0x00000008 */
5377 #define DAC_CR_TSEL1_2                      (0x4UL << DAC_CR_TSEL1_Pos)             /*!< 0x00000010 */
5378 #define DAC_CR_TSEL1_3                      (0x8UL << DAC_CR_TSEL1_Pos)             /*!< 0x00000020 */
5379 #define DAC_CR_WAVE1_Pos                    (6U)
5380 #define DAC_CR_WAVE1_Msk                    (0x3UL << DAC_CR_WAVE1_Pos)             /*!< 0x000000C0 */
5381 #define DAC_CR_WAVE1                        DAC_CR_WAVE1_Msk                        /*!<WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
5382 #define DAC_CR_WAVE1_0                      (0x1UL << DAC_CR_WAVE1_Pos)             /*!< 0x00000040 */
5383 #define DAC_CR_WAVE1_1                      (0x2UL << DAC_CR_WAVE1_Pos)             /*!< 0x00000080 */
5384 #define DAC_CR_MAMP1_Pos                    (8U)
5385 #define DAC_CR_MAMP1_Msk                    (0xFUL << DAC_CR_MAMP1_Pos)             /*!< 0x00000F00 */
5386 #define DAC_CR_MAMP1                        DAC_CR_MAMP1_Msk                        /*!<MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
5387 #define DAC_CR_MAMP1_0                      (0x1UL << DAC_CR_MAMP1_Pos)             /*!< 0x00000100 */
5388 #define DAC_CR_MAMP1_1                      (0x2UL << DAC_CR_MAMP1_Pos)             /*!< 0x00000200 */
5389 #define DAC_CR_MAMP1_2                      (0x4UL << DAC_CR_MAMP1_Pos)             /*!< 0x00000400 */
5390 #define DAC_CR_MAMP1_3                      (0x8UL << DAC_CR_MAMP1_Pos)             /*!< 0x00000800 */
5391 #define DAC_CR_DMAEN1_Pos                   (12U)
5392 #define DAC_CR_DMAEN1_Msk                   (0x1UL << DAC_CR_DMAEN1_Pos)            /*!< 0x00001000 */
5393 #define DAC_CR_DMAEN1                       DAC_CR_DMAEN1_Msk                       /*!<DAC channel1 DMA enable */
5394 #define DAC_CR_DMAUDRIE1_Pos                (13U)
5395 #define DAC_CR_DMAUDRIE1_Msk                (0x1UL << DAC_CR_DMAUDRIE1_Pos)         /*!< 0x00002000 */
5396 #define DAC_CR_DMAUDRIE1                    DAC_CR_DMAUDRIE1_Msk                    /*!<DAC channel 1 DMA underrun interrupt enable  >*/
5397 #define DAC_CR_CEN1_Pos                     (14U)
5398 #define DAC_CR_CEN1_Msk                     (0x1UL << DAC_CR_CEN1_Pos)              /*!< 0x00004000 */
5399 #define DAC_CR_CEN1                         DAC_CR_CEN1_Msk                         /*!<DAC channel 1 calibration enable >*/
5400 #define DAC_CR_EN2_Pos                      (16U)
5401 #define DAC_CR_EN2_Msk                      (0x1UL << DAC_CR_EN2_Pos)               /*!< 0x00010000 */
5402 #define DAC_CR_EN2                          DAC_CR_EN2_Msk                          /*!<DAC channel2 enable */
5403 #define DAC_CR_TEN2_Pos                     (17U)
5404 #define DAC_CR_TEN2_Msk                     (0x1UL << DAC_CR_TEN2_Pos)              /*!< 0x00020000 */
5405 #define DAC_CR_TEN2                         DAC_CR_TEN2_Msk                         /*!<DAC channel2 Trigger enable */
5406 #define DAC_CR_TSEL2_Pos                    (18U)
5407 #define DAC_CR_TSEL2_Msk                    (0xFUL << DAC_CR_TSEL2_Pos)             /*!< 0x003C0000 */
5408 #define DAC_CR_TSEL2                        DAC_CR_TSEL2_Msk                        /*!<TSEL2[3:0] (DAC channel2 Trigger selection) */
5409 #define DAC_CR_TSEL2_0                      (0x1UL << DAC_CR_TSEL2_Pos)             /*!< 0x00040000 */
5410 #define DAC_CR_TSEL2_1                      (0x2UL << DAC_CR_TSEL2_Pos)             /*!< 0x00080000 */
5411 #define DAC_CR_TSEL2_2                      (0x4UL << DAC_CR_TSEL2_Pos)             /*!< 0x00100000 */
5412 #define DAC_CR_TSEL2_3                      (0x8UL << DAC_CR_TSEL2_Pos)             /*!< 0x00200000 */
5413 #define DAC_CR_WAVE2_Pos                    (22U)
5414 #define DAC_CR_WAVE2_Msk                    (0x3UL << DAC_CR_WAVE2_Pos)             /*!< 0x00C00000 */
5415 #define DAC_CR_WAVE2                        DAC_CR_WAVE2_Msk                        /*!<WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
5416 #define DAC_CR_WAVE2_0                      (0x1UL << DAC_CR_WAVE2_Pos)             /*!< 0x00400000 */
5417 #define DAC_CR_WAVE2_1                      (0x2UL << DAC_CR_WAVE2_Pos)             /*!< 0x00800000 */
5418 #define DAC_CR_MAMP2_Pos                    (24U)
5419 #define DAC_CR_MAMP2_Msk                    (0xFUL << DAC_CR_MAMP2_Pos)             /*!< 0x0F000000 */
5420 #define DAC_CR_MAMP2                        DAC_CR_MAMP2_Msk                        /*!<MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
5421 #define DAC_CR_MAMP2_0                      (0x1UL << DAC_CR_MAMP2_Pos)             /*!< 0x01000000 */
5422 #define DAC_CR_MAMP2_1                      (0x2UL << DAC_CR_MAMP2_Pos)             /*!< 0x02000000 */
5423 #define DAC_CR_MAMP2_2                      (0x4UL << DAC_CR_MAMP2_Pos)             /*!< 0x04000000 */
5424 #define DAC_CR_MAMP2_3                      (0x8UL << DAC_CR_MAMP2_Pos)             /*!< 0x08000000 */
5425 #define DAC_CR_DMAEN2_Pos                   (28U)
5426 #define DAC_CR_DMAEN2_Msk                   (0x1UL << DAC_CR_DMAEN2_Pos)            /*!< 0x10000000 */
5427 #define DAC_CR_DMAEN2                       DAC_CR_DMAEN2_Msk                       /*!<DAC channel2 DMA enabled */
5428 #define DAC_CR_DMAUDRIE2_Pos                (29U)
5429 #define DAC_CR_DMAUDRIE2_Msk                (0x1UL << DAC_CR_DMAUDRIE2_Pos)         /*!< 0x20000000 */
5430 #define DAC_CR_DMAUDRIE2                    DAC_CR_DMAUDRIE2_Msk                    /*!<DAC channel2 DMA underrun interrupt enable  >*/
5431 #define DAC_CR_CEN2_Pos                     (30U)
5432 #define DAC_CR_CEN2_Msk                     (0x1UL << DAC_CR_CEN2_Pos)              /*!< 0x40000000 */
5433 #define DAC_CR_CEN2                         DAC_CR_CEN2_Msk                         /*!<DAC channel2 calibration enable >*/
5434 
5435 /*****************  Bit definition for DAC_SWTRIGR register  ******************/
5436 #define DAC_SWTRIGR_SWTRIG1_Pos             (0U)
5437 #define DAC_SWTRIGR_SWTRIG1_Msk             (0x1UL << DAC_SWTRIGR_SWTRIG1_Pos)      /*!< 0x00000001 */
5438 #define DAC_SWTRIGR_SWTRIG1                 DAC_SWTRIGR_SWTRIG1_Msk                 /*!<DAC channel1 software trigger */
5439 #define DAC_SWTRIGR_SWTRIG2_Pos             (1U)
5440 #define DAC_SWTRIGR_SWTRIG2_Msk             (0x1UL << DAC_SWTRIGR_SWTRIG2_Pos)      /*!< 0x00000002 */
5441 #define DAC_SWTRIGR_SWTRIG2                 DAC_SWTRIGR_SWTRIG2_Msk                 /*!<DAC channel2 software trigger */
5442 #define DAC_SWTRIGR_SWTRIGB1_Pos            (16U)
5443 #define DAC_SWTRIGR_SWTRIGB1_Msk            (0x1UL << DAC_SWTRIGR_SWTRIGB1_Pos)     /*!< 0x00010000 */
5444 #define DAC_SWTRIGR_SWTRIGB1                DAC_SWTRIGR_SWTRIGB1_Msk                /*!<DAC channel1 software trigger B */
5445 #define DAC_SWTRIGR_SWTRIGB2_Pos            (17U)
5446 #define DAC_SWTRIGR_SWTRIGB2_Msk            (0x1UL << DAC_SWTRIGR_SWTRIGB2_Pos)     /*!< 0x00020000 */
5447 #define DAC_SWTRIGR_SWTRIGB2                DAC_SWTRIGR_SWTRIGB2_Msk                /*!<DAC channel2 software trigger B */
5448 
5449 /*****************  Bit definition for DAC_DHR12R1 register  ******************/
5450 #define DAC_DHR12R1_DACC1DHR_Pos            (0U)
5451 #define DAC_DHR12R1_DACC1DHR_Msk            (0xFFFUL << DAC_DHR12R1_DACC1DHR_Pos)   /*!< 0x00000FFF */
5452 #define DAC_DHR12R1_DACC1DHR                DAC_DHR12R1_DACC1DHR_Msk                /*!<DAC channel1 12-bit Right aligned data */
5453 #define DAC_DHR12R1_DACC1DHRB_Pos           (16U)
5454 #define DAC_DHR12R1_DACC1DHRB_Msk           (0xFFFUL << DAC_DHR12R1_DACC1DHRB_Pos)  /*!< 0x0FFF0000 */
5455 #define DAC_DHR12R1_DACC1DHRB               DAC_DHR12R1_DACC1DHRB_Msk               /*!<DAC channel1 12-bit Right-aligned data B */
5456 
5457 /*****************  Bit definition for DAC_DHR12L1 register  ******************/
5458 #define DAC_DHR12L1_DACC1DHR_Pos            (4U)
5459 #define DAC_DHR12L1_DACC1DHR_Msk            (0xFFFUL << DAC_DHR12L1_DACC1DHR_Pos)   /*!< 0x0000FFF0 */
5460 #define DAC_DHR12L1_DACC1DHR                DAC_DHR12L1_DACC1DHR_Msk                /*!<DAC channel1 12-bit Left aligned data */
5461 #define DAC_DHR12L1_DACC1DHRB_Pos           (20U)
5462 #define DAC_DHR12L1_DACC1DHRB_Msk           (0xFFFUL << DAC_DHR12L1_DACC1DHRB_Pos)  /*!< 0xFFF00000 */
5463 #define DAC_DHR12L1_DACC1DHRB               DAC_DHR12L1_DACC1DHRB_Msk               /*!<DAC channel1 12-bit Left aligned data B */
5464 
5465 /******************  Bit definition for DAC_DHR8R1 register  ******************/
5466 #define DAC_DHR8R1_DACC1DHR_Pos             (0U)
5467 #define DAC_DHR8R1_DACC1DHR_Msk             (0xFFUL << DAC_DHR8R1_DACC1DHR_Pos)     /*!< 0x000000FF */
5468 #define DAC_DHR8R1_DACC1DHR                 DAC_DHR8R1_DACC1DHR_Msk                 /*!<DAC channel1 8-bit Right aligned data */
5469 #define DAC_DHR8R1_DACC1DHRB_Pos            (8U)
5470 #define DAC_DHR8R1_DACC1DHRB_Msk            (0xFFUL << DAC_DHR8R1_DACC1DHRB_Pos)    /*!< 0x0000FF00 */
5471 #define DAC_DHR8R1_DACC1DHRB                DAC_DHR8R1_DACC1DHRB_Msk                /*!<DAC channel1 8-bit Right aligned data B */
5472 
5473 /*****************  Bit definition for DAC_DHR12R2 register  ******************/
5474 #define DAC_DHR12R2_DACC2DHR_Pos            (0U)
5475 #define DAC_DHR12R2_DACC2DHR_Msk            (0xFFFUL << DAC_DHR12R2_DACC2DHR_Pos)   /*!< 0x00000FFF */
5476 #define DAC_DHR12R2_DACC2DHR                DAC_DHR12R2_DACC2DHR_Msk                /*!<DAC channel2 12-bit Right aligned data */
5477 #define DAC_DHR12R2_DACC2DHRB_Pos           (16U)
5478 #define DAC_DHR12R2_DACC2DHRB_Msk           (0xFFFUL << DAC_DHR12R2_DACC2DHRB_Pos)  /*!< 0x0FFF0000 */
5479 #define DAC_DHR12R2_DACC2DHRB               DAC_DHR12R2_DACC2DHRB_Msk               /*!<DAC channel2 12-bit Right-aligned data B */
5480 
5481 /*****************  Bit definition for DAC_DHR12L2 register  ******************/
5482 #define DAC_DHR12L2_DACC2DHR_Pos            (4U)
5483 #define DAC_DHR12L2_DACC2DHR_Msk            (0xFFFUL << DAC_DHR12L2_DACC2DHR_Pos)   /*!< 0x0000FFF0 */
5484 #define DAC_DHR12L2_DACC2DHR                DAC_DHR12L2_DACC2DHR_Msk                /*!<DAC channel2 12-bit Left aligned data */
5485 #define DAC_DHR12L2_DACC2DHRB_Pos           (20U)
5486 #define DAC_DHR12L2_DACC2DHRB_Msk           (0xFFFUL << DAC_DHR12L2_DACC2DHRB_Pos)  /*!< 0xFFF00000 */
5487 #define DAC_DHR12L2_DACC2DHRB               DAC_DHR12L2_DACC2DHRB_Msk               /*!<DAC channel2 12-bit Left aligned data B */
5488 
5489 /******************  Bit definition for DAC_DHR8R2 register  ******************/
5490 #define DAC_DHR8R2_DACC2DHR_Pos             (0U)
5491 #define DAC_DHR8R2_DACC2DHR_Msk             (0xFFUL << DAC_DHR8R2_DACC2DHR_Pos)     /*!< 0x000000FF */
5492 #define DAC_DHR8R2_DACC2DHR                 DAC_DHR8R2_DACC2DHR_Msk                 /*!<DAC channel2 8-bit Right aligned data */
5493 #define DAC_DHR8R2_DACC2DHRB_Pos            (8U)
5494 #define DAC_DHR8R2_DACC2DHRB_Msk            (0xFFUL << DAC_DHR8R2_DACC2DHRB_Pos)    /*!< 0x0000FF00 */
5495 #define DAC_DHR8R2_DACC2DHRB                DAC_DHR8R2_DACC2DHRB_Msk                /*!<DAC channel2 8-bit Right aligned data B */
5496 
5497 /*****************  Bit definition for DAC_DHR12RD register  ******************/
5498 #define DAC_DHR12RD_DACC1DHR_Pos            (0U)
5499 #define DAC_DHR12RD_DACC1DHR_Msk            (0xFFFUL << DAC_DHR12RD_DACC1DHR_Pos)   /*!< 0x00000FFF */
5500 #define DAC_DHR12RD_DACC1DHR                DAC_DHR12RD_DACC1DHR_Msk                /*!<DAC channel1 12-bit Right aligned data */
5501 #define DAC_DHR12RD_DACC2DHR_Pos            (16U)
5502 #define DAC_DHR12RD_DACC2DHR_Msk            (0xFFFUL << DAC_DHR12RD_DACC2DHR_Pos)   /*!< 0x0FFF0000 */
5503 #define DAC_DHR12RD_DACC2DHR                DAC_DHR12RD_DACC2DHR_Msk                /*!<DAC channel2 12-bit Right aligned data */
5504 
5505 /*****************  Bit definition for DAC_DHR12LD register  ******************/
5506 #define DAC_DHR12LD_DACC1DHR_Pos            (4U)
5507 #define DAC_DHR12LD_DACC1DHR_Msk            (0xFFFUL << DAC_DHR12LD_DACC1DHR_Pos)   /*!< 0x0000FFF0 */
5508 #define DAC_DHR12LD_DACC1DHR                DAC_DHR12LD_DACC1DHR_Msk                /*!<DAC channel1 12-bit Left aligned data */
5509 #define DAC_DHR12LD_DACC2DHR_Pos            (20U)
5510 #define DAC_DHR12LD_DACC2DHR_Msk            (0xFFFUL << DAC_DHR12LD_DACC2DHR_Pos)   /*!< 0xFFF00000 */
5511 #define DAC_DHR12LD_DACC2DHR                DAC_DHR12LD_DACC2DHR_Msk                /*!<DAC channel2 12-bit Left aligned data */
5512 
5513 /******************  Bit definition for DAC_DHR8RD register  ******************/
5514 #define DAC_DHR8RD_DACC1DHR_Pos             (0U)
5515 #define DAC_DHR8RD_DACC1DHR_Msk             (0xFFUL << DAC_DHR8RD_DACC1DHR_Pos)     /*!< 0x000000FF */
5516 #define DAC_DHR8RD_DACC1DHR                 DAC_DHR8RD_DACC1DHR_Msk                 /*!<DAC channel1 8-bit Right aligned data */
5517 #define DAC_DHR8RD_DACC2DHR_Pos             (8U)
5518 #define DAC_DHR8RD_DACC2DHR_Msk             (0xFFUL << DAC_DHR8RD_DACC2DHR_Pos)     /*!< 0x0000FF00 */
5519 #define DAC_DHR8RD_DACC2DHR                 DAC_DHR8RD_DACC2DHR_Msk                 /*!<DAC channel2 8-bit Right aligned data */
5520 
5521 /*******************  Bit definition for DAC_DOR1 register  *******************/
5522 #define DAC_DOR1_DACC1DOR_Pos               (0U)
5523 #define DAC_DOR1_DACC1DOR_Msk               (0xFFFUL << DAC_DOR1_DACC1DOR_Pos)      /*!< 0x00000FFF */
5524 #define DAC_DOR1_DACC1DOR                   DAC_DOR1_DACC1DOR_Msk                   /*!<DAC channel1 data output */
5525 #define DAC_DOR1_DACC1DORB_Pos              (16U)
5526 #define DAC_DOR1_DACC1DORB_Msk              (0xFFFUL << DAC_DOR1_DACC1DORB_Pos)     /*!< 0x0FFF0000 */
5527 #define DAC_DOR1_DACC1DORB                  DAC_DOR1_DACC1DORB_Msk                  /*!<DAC channel1 data output B */
5528 
5529 /*******************  Bit definition for DAC_DOR2 register  *******************/
5530 #define DAC_DOR2_DACC2DOR_Pos               (0U)
5531 #define DAC_DOR2_DACC2DOR_Msk               (0xFFFUL << DAC_DOR2_DACC2DOR_Pos)      /*!< 0x00000FFF */
5532 #define DAC_DOR2_DACC2DOR                   DAC_DOR2_DACC2DOR_Msk                   /*!<DAC channel2 data output */
5533 #define DAC_DOR2_DACC2DORB_Pos              (16U)
5534 #define DAC_DOR2_DACC2DORB_Msk              (0xFFFUL << DAC_DOR2_DACC2DORB_Pos)     /*!< 0x0FFF0000 */
5535 #define DAC_DOR2_DACC2DORB                  DAC_DOR2_DACC2DORB_Msk                  /*!<DAC channel2 data output B */
5536 
5537 /********************  Bit definition for DAC_SR register  ********************/
5538 #define DAC_SR_DAC1RDY_Pos                  (11U)
5539 #define DAC_SR_DAC1RDY_Msk                  (0x1UL << DAC_SR_DAC1RDY_Pos)           /*!< 0x00000800 */
5540 #define DAC_SR_DAC1RDY                      DAC_SR_DAC1RDY_Msk                      /*!<DAC channel 1 ready status bit */
5541 #define DAC_SR_DORSTAT1_Pos                 (12U)
5542 #define DAC_SR_DORSTAT1_Msk                 (0x1UL << DAC_SR_DORSTAT1_Pos)          /*!< 0x00001000 */
5543 #define DAC_SR_DORSTAT1                     DAC_SR_DORSTAT1_Msk                     /*!<DAC channel 1 output register status bit */
5544 #define DAC_SR_DMAUDR1_Pos                  (13U)
5545 #define DAC_SR_DMAUDR1_Msk                  (0x1UL << DAC_SR_DMAUDR1_Pos)           /*!< 0x00002000 */
5546 #define DAC_SR_DMAUDR1                      DAC_SR_DMAUDR1_Msk                      /*!<DAC channel1 DMA underrun flag */
5547 #define DAC_SR_CAL_FLAG1_Pos                (14U)
5548 #define DAC_SR_CAL_FLAG1_Msk                (0x1UL << DAC_SR_CAL_FLAG1_Pos)         /*!< 0x00004000 */
5549 #define DAC_SR_CAL_FLAG1                    DAC_SR_CAL_FLAG1_Msk                    /*!<DAC channel1 calibration offset status */
5550 #define DAC_SR_BWST1_Pos                    (15U)
5551 #define DAC_SR_BWST1_Msk                    (0x1UL << DAC_SR_BWST1_Pos)             /*!< 0x00008000 */
5552 #define DAC_SR_BWST1                        DAC_SR_BWST1_Msk                        /*!<DAC channel1 busy writing sample time flag */
5553 
5554 #define DAC_SR_DAC2RDY_Pos                  (27U)
5555 #define DAC_SR_DAC2RDY_Msk                  (0x1UL << DAC_SR_DAC2RDY_Pos)           /*!< 0x08000000 */
5556 #define DAC_SR_DAC2RDY                      DAC_SR_DAC2RDY_Msk                      /*!<DAC channel 2 ready status bit */
5557 #define DAC_SR_DORSTAT2_Pos                 (28U)
5558 #define DAC_SR_DORSTAT2_Msk                 (0x1UL << DAC_SR_DORSTAT2_Pos)          /*!< 0x10000000 */
5559 #define DAC_SR_DORSTAT2                     DAC_SR_DORSTAT2_Msk                     /*!<DAC channel 2 output register status bit */
5560 #define DAC_SR_DMAUDR2_Pos                  (29U)
5561 #define DAC_SR_DMAUDR2_Msk                  (0x1UL << DAC_SR_DMAUDR2_Pos)           /*!< 0x20000000 */
5562 #define DAC_SR_DMAUDR2                      DAC_SR_DMAUDR2_Msk                      /*!<DAC channel2 DMA underrun flag */
5563 #define DAC_SR_CAL_FLAG2_Pos                (30U)
5564 #define DAC_SR_CAL_FLAG2_Msk                (0x1UL << DAC_SR_CAL_FLAG2_Pos)         /*!< 0x40000000 */
5565 #define DAC_SR_CAL_FLAG2                    DAC_SR_CAL_FLAG2_Msk                    /*!<DAC channel2 calibration offset status */
5566 #define DAC_SR_BWST2_Pos                    (31U)
5567 #define DAC_SR_BWST2_Msk                    (0x1UL << DAC_SR_BWST2_Pos)             /*!< 0x80000000 */
5568 #define DAC_SR_BWST2                        DAC_SR_BWST2_Msk                        /*!<DAC channel2 busy writing sample time flag */
5569 
5570 /*******************  Bit definition for DAC_CCR register  ********************/
5571 #define DAC_CCR_OTRIM1_Pos                  (0U)
5572 #define DAC_CCR_OTRIM1_Msk                  (0x1FUL << DAC_CCR_OTRIM1_Pos)          /*!< 0x0000001F */
5573 #define DAC_CCR_OTRIM1                      DAC_CCR_OTRIM1_Msk                      /*!<DAC channel1 offset trimming value */
5574 #define DAC_CCR_OTRIM2_Pos                  (16U)
5575 #define DAC_CCR_OTRIM2_Msk                  (0x1FUL << DAC_CCR_OTRIM2_Pos)          /*!< 0x001F0000 */
5576 #define DAC_CCR_OTRIM2                      DAC_CCR_OTRIM2_Msk                      /*!<DAC channel2 offset trimming value */
5577 
5578 /*******************  Bit definition for DAC_MCR register  *******************/
5579 #define DAC_MCR_MODE1_Pos                   (0U)
5580 #define DAC_MCR_MODE1_Msk                   (0x7UL << DAC_MCR_MODE1_Pos)            /*!< 0x00000007 */
5581 #define DAC_MCR_MODE1                       DAC_MCR_MODE1_Msk                       /*!<MODE1[2:0] (DAC channel1 mode) */
5582 #define DAC_MCR_MODE1_0                     (0x1UL << DAC_MCR_MODE1_Pos)            /*!< 0x00000001 */
5583 #define DAC_MCR_MODE1_1                     (0x2UL << DAC_MCR_MODE1_Pos)            /*!< 0x00000002 */
5584 #define DAC_MCR_MODE1_2                     (0x4UL << DAC_MCR_MODE1_Pos)            /*!< 0x00000004 */
5585 #define DAC_MCR_DMADOUBLE1_Pos              (8U)
5586 #define DAC_MCR_DMADOUBLE1_Msk              (0x1UL << DAC_MCR_DMADOUBLE1_Pos)       /*!< 0x00000100 */
5587 #define DAC_MCR_DMADOUBLE1                  DAC_MCR_DMADOUBLE1_Msk                  /*!<DAC Channel 1 DMA double data mode */
5588 #define DAC_MCR_SINFORMAT1_Pos              (9U)
5589 #define DAC_MCR_SINFORMAT1_Msk              (0x1UL << DAC_MCR_SINFORMAT1_Pos)       /*!< 0x00000200 */
5590 #define DAC_MCR_SINFORMAT1                  DAC_MCR_SINFORMAT1_Msk                  /*!<DAC Channel 1 enable signed format */
5591 #define DAC_MCR_HFSEL_Pos                   (14U)
5592 #define DAC_MCR_HFSEL_Msk                   (0x3UL << DAC_MCR_HFSEL_Pos)            /*!< 0x0000C000 */
5593 #define DAC_MCR_HFSEL                       DAC_MCR_HFSEL_Msk                       /*!<HFSEL[1:0] (High Frequency interface mode selection) */
5594 #define DAC_MCR_HFSEL_0                     (0x1UL << DAC_MCR_HFSEL_Pos)            /*!< 0x00004000 */
5595 #define DAC_MCR_HFSEL_1                     (0x2UL << DAC_MCR_HFSEL_Pos)            /*!< 0x00008000 */
5596 #define DAC_MCR_MODE2_Pos                   (16U)
5597 #define DAC_MCR_MODE2_Msk                   (0x7UL << DAC_MCR_MODE2_Pos)            /*!< 0x00070000 */
5598 #define DAC_MCR_MODE2                       DAC_MCR_MODE2_Msk                       /*!<MODE2[2:0] (DAC channel2 mode) */
5599 #define DAC_MCR_MODE2_0                     (0x1UL << DAC_MCR_MODE2_Pos)            /*!< 0x00010000 */
5600 #define DAC_MCR_MODE2_1                     (0x2UL << DAC_MCR_MODE2_Pos)            /*!< 0x00020000 */
5601 #define DAC_MCR_MODE2_2                     (0x4UL << DAC_MCR_MODE2_Pos)            /*!< 0x00040000 */
5602 #define DAC_MCR_DMADOUBLE2_Pos              (24U)
5603 #define DAC_MCR_DMADOUBLE2_Msk              (0x1UL << DAC_MCR_DMADOUBLE2_Pos)       /*!< 0x01000000 */
5604 #define DAC_MCR_DMADOUBLE2                  DAC_MCR_DMADOUBLE2_Msk                  /*!<DAC Channel 2 DMA double data mode */
5605 #define DAC_MCR_SINFORMAT2_Pos              (25U)
5606 #define DAC_MCR_SINFORMAT2_Msk              (0x1UL << DAC_MCR_SINFORMAT2_Pos)       /*!< 0x02000000 */
5607 #define DAC_MCR_SINFORMAT2                  DAC_MCR_SINFORMAT2_Msk                  /*!<DAC Channel 2 enable signed format */
5608 
5609 /******************  Bit definition for DAC_SHSR1 register  ******************/
5610 #define DAC_SHSR1_TSAMPLE1_Pos              (0U)
5611 #define DAC_SHSR1_TSAMPLE1_Msk              (0x3FFUL << DAC_SHSR1_TSAMPLE1_Pos)     /*!< 0x000003FF */
5612 #define DAC_SHSR1_TSAMPLE1                  DAC_SHSR1_TSAMPLE1_Msk                  /*!<DAC channel1 sample time */
5613 
5614 /******************  Bit definition for DAC_SHSR2 register  ******************/
5615 #define DAC_SHSR2_TSAMPLE2_Pos              (0U)
5616 #define DAC_SHSR2_TSAMPLE2_Msk              (0x3FFUL << DAC_SHSR2_TSAMPLE2_Pos)     /*!< 0x000003FF */
5617 #define DAC_SHSR2_TSAMPLE2                  DAC_SHSR2_TSAMPLE2_Msk                  /*!<DAC channel2 sample time */
5618 
5619 /******************  Bit definition for DAC_SHHR register  ******************/
5620 #define DAC_SHHR_THOLD1_Pos                 (0U)
5621 #define DAC_SHHR_THOLD1_Msk                 (0x3FFUL << DAC_SHHR_THOLD1_Pos)        /*!< 0x000003FF */
5622 #define DAC_SHHR_THOLD1                     DAC_SHHR_THOLD1_Msk                     /*!<DAC channel1 hold time */
5623 #define DAC_SHHR_THOLD2_Pos                 (16U)
5624 #define DAC_SHHR_THOLD2_Msk                 (0x3FFUL << DAC_SHHR_THOLD2_Pos)        /*!< 0x03FF0000 */
5625 #define DAC_SHHR_THOLD2                     DAC_SHHR_THOLD2_Msk                     /*!<DAC channel2 hold time */
5626 
5627 /******************  Bit definition for DAC_SHRR register  ******************/
5628 #define DAC_SHRR_TREFRESH1_Pos              (0U)
5629 #define DAC_SHRR_TREFRESH1_Msk              (0xFFUL << DAC_SHRR_TREFRESH1_Pos)      /*!< 0x000000FF */
5630 #define DAC_SHRR_TREFRESH1                  DAC_SHRR_TREFRESH1_Msk                  /*!<DAC channel1 refresh time */
5631 #define DAC_SHRR_TREFRESH2_Pos              (16U)
5632 #define DAC_SHRR_TREFRESH2_Msk              (0xFFUL << DAC_SHRR_TREFRESH2_Pos)      /*!< 0x00FF0000 */
5633 #define DAC_SHRR_TREFRESH2                  DAC_SHRR_TREFRESH2_Msk                  /*!<DAC channel2 refresh time */
5634 
5635 /******************  Bit definition for DAC_AUTOCR register  ******************/
5636 #define DAC_AUTOCR_AUTOMODE_Pos             (22U)
5637 #define DAC_AUTOCR_AUTOMODE_Msk             (0x1UL << DAC_AUTOCR_AUTOMODE_Pos)      /*!< 0x00400000 */
5638 #define DAC_AUTOCR_AUTOMODE                 DAC_AUTOCR_AUTOMODE_Msk                 /*!< AUTOCR Enable */
5639 
5640 /******************************************************************************/
5641 /*                                                                            */
5642 /*                       Advanced Encryption Standard (AES)                   */
5643 /*                                                                            */
5644 /******************************************************************************/
5645 /*******************  Bit definition for AES_CR register  *********************/
5646 #define AES_CR_EN_Pos                       (0U)
5647 #define AES_CR_EN_Msk                       (0x1UL << AES_CR_EN_Pos)                /*!< 0x00000001 */
5648 #define AES_CR_EN                           AES_CR_EN_Msk                           /*!< AES Enable */
5649 #define AES_CR_DATATYPE_Pos                 (1U)
5650 #define AES_CR_DATATYPE_Msk                 (0x3UL << AES_CR_DATATYPE_Pos)          /*!< 0x00000006 */
5651 #define AES_CR_DATATYPE                     AES_CR_DATATYPE_Msk                     /*!< Data type selection */
5652 #define AES_CR_DATATYPE_0                   (0x1UL << AES_CR_DATATYPE_Pos)          /*!< 0x00000002 */
5653 #define AES_CR_DATATYPE_1                   (0x2UL << AES_CR_DATATYPE_Pos)          /*!< 0x00000004 */
5654 #define AES_CR_MODE_Pos                     (3U)
5655 #define AES_CR_MODE_Msk                     (0x3UL << AES_CR_MODE_Pos)              /*!< 0x00000018 */
5656 #define AES_CR_MODE                         AES_CR_MODE_Msk                         /*!< AES Mode Of Operation */
5657 #define AES_CR_MODE_0                       (0x1UL << AES_CR_MODE_Pos)              /*!< 0x00000008 */
5658 #define AES_CR_MODE_1                       (0x2UL << AES_CR_MODE_Pos)              /*!< 0x00000010 */
5659 #define AES_CR_CHMOD_Pos                    (5U)
5660 #define AES_CR_CHMOD_Msk                    (0x803UL << AES_CR_CHMOD_Pos)           /*!< 0x00010060 */
5661 #define AES_CR_CHMOD                        AES_CR_CHMOD_Msk                        /*!< AES Chaining Mode */
5662 #define AES_CR_CHMOD_0                      (0x001UL << AES_CR_CHMOD_Pos)           /*!< 0x00000020 */
5663 #define AES_CR_CHMOD_1                      (0x002UL << AES_CR_CHMOD_Pos)           /*!< 0x00000040 */
5664 #define AES_CR_CHMOD_2                      (0x800UL << AES_CR_CHMOD_Pos)           /*!< 0x00010000 */
5665 #define AES_CR_DMAINEN_Pos                  (11U)
5666 #define AES_CR_DMAINEN_Msk                  (0x1UL << AES_CR_DMAINEN_Pos)           /*!< 0x00000800 */
5667 #define AES_CR_DMAINEN                      AES_CR_DMAINEN_Msk                      /*!< Enable data input phase DMA management  */
5668 #define AES_CR_DMAOUTEN_Pos                 (12U)
5669 #define AES_CR_DMAOUTEN_Msk                 (0x1UL << AES_CR_DMAOUTEN_Pos)          /*!< 0x00001000 */
5670 #define AES_CR_DMAOUTEN                     AES_CR_DMAOUTEN_Msk                     /*!< Enable data output phase DMA management */
5671 #define AES_CR_GCMPH_Pos                    (13U)
5672 #define AES_CR_GCMPH_Msk                    (0x3UL << AES_CR_GCMPH_Pos)             /*!< 0x00006000 */
5673 #define AES_CR_GCMPH                        AES_CR_GCMPH_Msk                        /*!< GCM Phase */
5674 #define AES_CR_GCMPH_0                      (0x1UL << AES_CR_GCMPH_Pos)             /*!< 0x00002000 */
5675 #define AES_CR_GCMPH_1                      (0x2UL << AES_CR_GCMPH_Pos)             /*!< 0x00004000 */
5676 #define AES_CR_KEYSIZE_Pos                  (18U)
5677 #define AES_CR_KEYSIZE_Msk                  (0x1UL << AES_CR_KEYSIZE_Pos)           /*!< 0x00040000 */
5678 #define AES_CR_KEYSIZE                      AES_CR_KEYSIZE_Msk                      /*!< Key size selection */
5679 #define AES_CR_KEYPROT_Pos                 (19U)
5680 #define AES_CR_KEYPROT_Msk                 (0x1UL << AES_CR_KEYPROT_Pos)          /*!< 0x00040000 */
5681 #define AES_CR_KEYPROT                     AES_CR_KEYPROT_Msk                     /*!<  Key protection */
5682 #define AES_CR_NPBLB_Pos                    (20U)
5683 #define AES_CR_NPBLB_Msk                    (0xFUL << AES_CR_NPBLB_Pos)             /*!< 0x00F00000 */
5684 #define AES_CR_NPBLB                        AES_CR_NPBLB_Msk                        /*!< Number of padding bytes in payload last block */
5685 #define AES_CR_NPBLB_0                      (0x1UL << AES_CR_NPBLB_Pos)             /*!< 0x00100000 */
5686 #define AES_CR_NPBLB_1                      (0x2UL << AES_CR_NPBLB_Pos)             /*!< 0x00200000 */
5687 #define AES_CR_NPBLB_2                      (0x4UL << AES_CR_NPBLB_Pos)             /*!< 0x00400000 */
5688 #define AES_CR_NPBLB_3                      (0x8UL << AES_CR_NPBLB_Pos)             /*!< 0x00800000 */
5689 #define AES_CR_KMOD_Pos                     (24U)
5690 #define AES_CR_KMOD_Msk                     (0x3UL << AES_CR_KMOD_Pos)              /*!< 0x00000006 */
5691 #define AES_CR_KMOD                         AES_CR_KMOD_Msk                         /*!< Key mode selection */
5692 #define AES_CR_KMOD_0                       (0x1UL << AES_CR_KMOD_Pos)             /*!< 0x01000000 */
5693 #define AES_CR_KMOD_1                       (0x2UL << AES_CR_KMOD_Pos)              /*!< 0x02000000 */
5694 #define AES_CR_KSHAREID_Pos                (26U)
5695 #define AES_CR_KSHAREID_Msk                (0x3UL << AES_CR_KSHAREID_Pos)         /*!< 0x00000006 */
5696 #define AES_CR_KSHAREID                    AES_CR_KSHAREID_Msk                    /*!< Key Shared ID */
5697 #define AES_CR_KEYSEL_Pos                  (28U)
5698 #define AES_CR_KEYSEL_Msk                  (0x7UL << AES_CR_KEYSEL_Pos)           /*!< 0x00000006 */
5699 #define AES_CR_KEYSEL                      AES_CR_KEYSEL_Msk                      /*!< Key Selection */
5700 #define AES_CR_KEYSEL_0                    (0x1UL << AES_CR_KEYSEL_Pos)           /*!< 0x02000000 */
5701 #define AES_CR_KEYSEL_1                    (0x2UL << AES_CR_KEYSEL_Pos)           /*!< 0x02000000 */
5702 #define AES_CR_KEYSEL_2                    (0x4UL << AES_CR_KEYSEL_Pos)           /*!< 0x02000000 */
5703 #define AES_CR_IPRST_Pos                    (31U)
5704 #define AES_CR_IPRST_Msk                    (0x1UL << AES_CR_IPRST_Pos)             /*!< 0x80000001 */
5705 #define AES_CR_IPRST                        AES_CR_IPRST_Msk                        /*!< AES IP software reset */
5706 
5707 /*******************  Bit definition for AES_SR register  *********************/
5708 #define AES_SR_CCF_Pos                      (0U)
5709 #define AES_SR_CCF_Msk                      (0x1UL << AES_SR_CCF_Pos)               /*!< 0x00000001 */
5710 #define AES_SR_CCF                          AES_SR_CCF_Msk                          /*!< Computation Complete Flag */
5711 #define AES_SR_RDERR_Pos                    (1U)
5712 #define AES_SR_RDERR_Msk                    (0x1UL << AES_SR_RDERR_Pos)             /*!< 0x00000002 */
5713 #define AES_SR_RDERR                        AES_SR_RDERR_Msk                        /*!< Read Error Flag */
5714 #define AES_SR_WRERR_Pos                    (2U)
5715 #define AES_SR_WRERR_Msk                    (0x1UL << AES_SR_WRERR_Pos)             /*!< 0x00000004 */
5716 #define AES_SR_WRERR                        AES_SR_WRERR_Msk                        /*!< Write Error Flag */
5717 #define AES_SR_BUSY_Pos                     (3U)
5718 #define AES_SR_BUSY_Msk                     (0x1UL << AES_SR_BUSY_Pos)              /*!< 0x00000008 */
5719 #define AES_SR_BUSY                         AES_SR_BUSY_Msk                         /*!< Busy Flag */
5720 #define AES_SR_KEYVALID_Pos                 (7U)
5721 #define AES_SR_KEYVALID_Msk                 (0x1UL << AES_SR_KEYVALID_Pos)          /*!< 0x00000008 */
5722 #define AES_SR_KEYVALID                     AES_SR_KEYVALID_Msk                     /*!< KEYVALID Flag */
5723 
5724 /*******************  Bit definition for AES_DINR register  *******************/
5725 #define AES_DINR_Pos                        (0U)
5726 #define AES_DINR_Msk                        (0xFFFFFFFFUL << AES_DINR_Pos)          /*!< 0xFFFFFFFF */
5727 #define AES_DINR                            AES_DINR_Msk                            /*!< AES Data Input Register */
5728 
5729 /*******************  Bit definition for AES_DOUTR register  ******************/
5730 #define AES_DOUTR_Pos                       (0U)
5731 #define AES_DOUTR_Msk                       (0xFFFFFFFFUL << AES_DOUTR_Pos)         /*!< 0xFFFFFFFF */
5732 #define AES_DOUTR                           AES_DOUTR_Msk                           /*!< AES Data Output Register */
5733 
5734 /*******************  Bit definition for AES_KEYR0 register  ******************/
5735 #define AES_KEYR0_Pos                       (0U)
5736 #define AES_KEYR0_Msk                       (0xFFFFFFFFUL << AES_KEYR0_Pos)         /*!< 0xFFFFFFFF */
5737 #define AES_KEYR0                           AES_KEYR0_Msk                           /*!< AES Key Register 0 */
5738 
5739 /*******************  Bit definition for AES_KEYR1 register  ******************/
5740 #define AES_KEYR1_Pos                       (0U)
5741 #define AES_KEYR1_Msk                       (0xFFFFFFFFUL << AES_KEYR1_Pos)         /*!< 0xFFFFFFFF */
5742 #define AES_KEYR1                           AES_KEYR1_Msk                           /*!< AES Key Register 1 */
5743 
5744 /*******************  Bit definition for AES_KEYR2 register  ******************/
5745 #define AES_KEYR2_Pos                       (0U)
5746 #define AES_KEYR2_Msk                       (0xFFFFFFFFUL << AES_KEYR2_Pos)         /*!< 0xFFFFFFFF */
5747 #define AES_KEYR2                           AES_KEYR2_Msk                           /*!< AES Key Register 2 */
5748 
5749 /*******************  Bit definition for AES_KEYR3 register  ******************/
5750 #define AES_KEYR3_Pos                       (0U)
5751 #define AES_KEYR3_Msk                       (0xFFFFFFFFUL << AES_KEYR3_Pos)         /*!< 0xFFFFFFFF */
5752 #define AES_KEYR3                           AES_KEYR3_Msk                           /*!< AES Key Register 3 */
5753 
5754 /*******************  Bit definition for AES_KEYR4 register  ******************/
5755 #define AES_KEYR4_Pos                       (0U)
5756 #define AES_KEYR4_Msk                       (0xFFFFFFFFUL << AES_KEYR4_Pos)         /*!< 0xFFFFFFFF */
5757 #define AES_KEYR4                           AES_KEYR4_Msk                           /*!< AES Key Register 4 */
5758 
5759 /*******************  Bit definition for AES_KEYR5 register  ******************/
5760 #define AES_KEYR5_Pos                       (0U)
5761 #define AES_KEYR5_Msk                       (0xFFFFFFFFUL << AES_KEYR5_Pos)         /*!< 0xFFFFFFFF */
5762 #define AES_KEYR5                           AES_KEYR5_Msk                           /*!< AES Key Register 5 */
5763 
5764 /*******************  Bit definition for AES_KEYR6 register  ******************/
5765 #define AES_KEYR6_Pos                       (0U)
5766 #define AES_KEYR6_Msk                       (0xFFFFFFFFUL << AES_KEYR6_Pos)         /*!< 0xFFFFFFFF */
5767 #define AES_KEYR6                           AES_KEYR6_Msk                           /*!< AES Key Register 6 */
5768 
5769 /*******************  Bit definition for AES_KEYR7 register  ******************/
5770 #define AES_KEYR7_Pos                       (0U)
5771 #define AES_KEYR7_Msk                       (0xFFFFFFFFUL << AES_KEYR7_Pos)         /*!< 0xFFFFFFFF */
5772 #define AES_KEYR7                           AES_KEYR7_Msk                           /*!< AES Key Register 7 */
5773 
5774 /*******************  Bit definition for AES_IVR0 register   ******************/
5775 #define AES_IVR0_Pos                        (0U)
5776 #define AES_IVR0_Msk                        (0xFFFFFFFFUL << AES_IVR0_Pos)          /*!< 0xFFFFFFFF */
5777 #define AES_IVR0                            AES_IVR0_Msk                            /*!< AES Initialization Vector Register 0 */
5778 
5779 /*******************  Bit definition for AES_IVR1 register   ******************/
5780 #define AES_IVR1_Pos                        (0U)
5781 #define AES_IVR1_Msk                        (0xFFFFFFFFUL << AES_IVR1_Pos)          /*!< 0xFFFFFFFF */
5782 #define AES_IVR1                            AES_IVR1_Msk                            /*!< AES Initialization Vector Register 1 */
5783 
5784 /*******************  Bit definition for AES_IVR2 register   ******************/
5785 #define AES_IVR2_Pos                        (0U)
5786 #define AES_IVR2_Msk                        (0xFFFFFFFFUL << AES_IVR2_Pos)          /*!< 0xFFFFFFFF */
5787 #define AES_IVR2                            AES_IVR2_Msk                            /*!< AES Initialization Vector Register 2 */
5788 
5789 /*******************  Bit definition for AES_IVR3 register   ******************/
5790 #define AES_IVR3_Pos                        (0U)
5791 #define AES_IVR3_Msk                        (0xFFFFFFFFUL << AES_IVR3_Pos)          /*!< 0xFFFFFFFF */
5792 #define AES_IVR3                            AES_IVR3_Msk                            /*!< AES Initialization Vector Register 3 */
5793 
5794 /*******************  Bit definition for AES_SUSP0R register  ******************/
5795 #define AES_SUSP0R_Pos                      (0U)
5796 #define AES_SUSP0R_Msk                      (0xFFFFFFFFUL << AES_SUSP0R_Pos)        /*!< 0xFFFFFFFF */
5797 #define AES_SUSP0R                          AES_SUSP0R_Msk                          /*!< AES Suspend registers 0 */
5798 
5799 /*******************  Bit definition for AES_SUSP1R register  ******************/
5800 #define AES_SUSP1R_Pos                      (0U)
5801 #define AES_SUSP1R_Msk                      (0xFFFFFFFFUL << AES_SUSP1R_Pos)        /*!< 0xFFFFFFFF */
5802 #define AES_SUSP1R                          AES_SUSP1R_Msk                          /*!< AES Suspend registers 1 */
5803 
5804 /*******************  Bit definition for AES_SUSP2R register  ******************/
5805 #define AES_SUSP2R_Pos                      (0U)
5806 #define AES_SUSP2R_Msk                      (0xFFFFFFFFUL << AES_SUSP2R_Pos)        /*!< 0xFFFFFFFF */
5807 #define AES_SUSP2R                          AES_SUSP2R_Msk                          /*!< AES Suspend registers 2 */
5808 
5809 /*******************  Bit definition for AES_SUSP3R register  ******************/
5810 #define AES_SUSP3R_Pos                      (0U)
5811 #define AES_SUSP3R_Msk                      (0xFFFFFFFFUL << AES_SUSP3R_Pos)        /*!< 0xFFFFFFFF */
5812 #define AES_SUSP3R                          AES_SUSP3R_Msk                          /*!< AES Suspend registers 3 */
5813 
5814 /*******************  Bit definition for AES_SUSP4R register  ******************/
5815 #define AES_SUSP4R_Pos                      (0U)
5816 #define AES_SUSP4R_Msk                      (0xFFFFFFFFUL << AES_SUSP4R_Pos)        /*!< 0xFFFFFFFF */
5817 #define AES_SUSP4R                          AES_SUSP4R_Msk                          /*!< AES Suspend registers 4 */
5818 
5819 /*******************  Bit definition for AES_SUSP5R register  ******************/
5820 #define AES_SUSP5R_Pos                      (0U)
5821 #define AES_SUSP5R_Msk                      (0xFFFFFFFFUL << AES_SUSP5R_Pos)        /*!< 0xFFFFFFFF */
5822 #define AES_SUSP5R                          AES_SUSP5R_Msk                          /*!< AES Suspend registers 5 */
5823 
5824 /*******************  Bit definition for AES_SUSP6R register  ******************/
5825 #define AES_SUSP6R_Pos                      (0U)
5826 #define AES_SUSP6R_Msk                      (0xFFFFFFFFUL << AES_SUSP6R_Pos)        /*!< 0xFFFFFFFF */
5827 #define AES_SUSP6R                          AES_SUSP6R_Msk                          /*!< AES Suspend registers 6 */
5828 
5829 /*******************  Bit definition for AES_SUSP7R register  ******************/
5830 #define AES_SUSP7R_Pos                      (0U)
5831 #define AES_SUSP7R_Msk                      (0xFFFFFFFFUL << AES_SUSP7R_Pos)        /*!< 0xFFFFFFFF */
5832 #define AES_SUSP7R                          AES_SUSP7R_Msk                          /*!< AES Suspend registers 7 */
5833 
5834 /*******************  Bit definition for AES_IER register     ******************/
5835 #define AES_IER_CCFIE_Pos                   (0U)
5836 #define AES_IER_CCFIE_Msk                   (0x1UL << AES_IER_CCFIE_Pos)            /*!< 0x00000001 */
5837 #define AES_IER_CCFIE                       AES_IER_CCFIE_Msk                       /*!< Computation complete flag interrupt enable */
5838 #define AES_IER_RWEIE_Pos                   (1U)
5839 #define AES_IER_RWEIE_Msk                   (0x1UL << AES_IER_RWEIE_Pos)            /*!< 0x00000002 */
5840 #define AES_IER_RWEIE                       AES_IER_RWEIE_Msk                       /*!< Read or write error Interrupt Enable */
5841 #define AES_IER_KEIE_Pos                    (2U)
5842 #define AES_IER_KEIE_Msk                    (0x1UL << AES_IER_KEIE_Pos)             /*!< 0x00000004 */
5843 #define AES_IER_KEIE                        AES_IER_KEIE_Msk                        /*!< Key error interrupt enable */
5844 
5845 /*******************  Bit definition for AES_ISR register     ******************/
5846 #define AES_ISR_CCF_Pos                     (0U)
5847 #define AES_ISR_CCF_Msk                     (0x1UL << AES_ISR_CCF_Pos)              /*!< 0x00000001 */
5848 #define AES_ISR_CCF                         AES_ISR_CCF_Msk                         /*!< Computation complete flag */
5849 #define AES_ISR_RWEIF_Pos                   (1U)
5850 #define AES_ISR_RWEIF_Msk                   (0x1UL << AES_ISR_RWEIF_Pos)            /*!< 0x00000002 */
5851 #define AES_ISR_RWEIF                       AES_ISR_RWEIF_Msk                       /*!< Read or write error Interrupt flag */
5852 #define AES_ISR_KEIF_Pos                    (2U)
5853 #define AES_ISR_KEIF_Msk                    (0x1UL << AES_ISR_KEIF_Pos)             /*!< 0x00000004 */
5854 #define AES_ISR_KEIF                        AES_ISR_KEIF_Msk                        /*!< Key error interrupt flag */
5855 
5856 /*******************  Bit definition for AES_ICR register     ******************/
5857 #define AES_ICR_CCF_Pos                     (0U)
5858 #define AES_ICR_CCF_Msk                     (0x1UL << AES_ICR_CCF_Pos)              /*!< 0x00000001 */
5859 #define AES_ICR_CCF                         AES_ICR_CCF_Msk                         /*!< Computation complete flag clear */
5860 #define AES_ICR_RWEIF_Pos                   (1U)
5861 #define AES_ICR_RWEIF_Msk                   (0x1UL << AES_ICR_RWEIF_Pos)            /*!< 0x00000002 */
5862 #define AES_ICR_RWEIF                       AES_ICR_RWEIF_Msk                       /*!< Read or write error Interrupt flag clear */
5863 #define AES_ICR_KEIF_Pos                    (2U)
5864 #define AES_ICR_KEIF_Msk                    (0x1UL << AES_ICR_KEIF_Pos)             /*!< 0x00000004 */
5865 #define AES_ICR_KEIF                        AES_ICR_KEIF_Msk                        /*!< Key error interrupt flag clear */
5866 
5867 /******************************************************************************/
5868 /*                                                                            */
5869 /*                                    HASH                                    */
5870 /*                                                                            */
5871 /******************************************************************************/
5872 /******************  Bits definition for HASH_CR register  ********************/
5873 #define HASH_CR_INIT_Pos                    (2U)
5874 #define HASH_CR_INIT_Msk                    (0x1UL << HASH_CR_INIT_Pos)             /*!< 0x00000004 */
5875 #define HASH_CR_INIT                        HASH_CR_INIT_Msk
5876 #define HASH_CR_DMAE_Pos                    (3U)
5877 #define HASH_CR_DMAE_Msk                    (0x1UL << HASH_CR_DMAE_Pos)             /*!< 0x00000008 */
5878 #define HASH_CR_DMAE                        HASH_CR_DMAE_Msk
5879 #define HASH_CR_DATATYPE_Pos                (4U)
5880 #define HASH_CR_DATATYPE_Msk                (0x3UL << HASH_CR_DATATYPE_Pos)         /*!< 0x00000030 */
5881 #define HASH_CR_DATATYPE                    HASH_CR_DATATYPE_Msk
5882 #define HASH_CR_DATATYPE_0                  (0x1UL << HASH_CR_DATATYPE_Pos)         /*!< 0x00000010 */
5883 #define HASH_CR_DATATYPE_1                  (0x2UL << HASH_CR_DATATYPE_Pos)         /*!< 0x00000020 */
5884 #define HASH_CR_MODE_Pos                    (6U)
5885 #define HASH_CR_MODE_Msk                    (0x1UL << HASH_CR_MODE_Pos)             /*!< 0x00000040 */
5886 #define HASH_CR_MODE                        HASH_CR_MODE_Msk
5887 #define HASH_CR_NBW_Pos                     (8U)
5888 #define HASH_CR_NBW_Msk                     (0xFUL << HASH_CR_NBW_Pos)              /*!< 0x00000F00 */
5889 #define HASH_CR_NBW                         HASH_CR_NBW_Msk
5890 #define HASH_CR_NBW_0                       (0x1UL << HASH_CR_NBW_Pos)              /*!< 0x00000100 */
5891 #define HASH_CR_NBW_1                       (0x2UL << HASH_CR_NBW_Pos)              /*!< 0x00000200 */
5892 #define HASH_CR_NBW_2                       (0x4UL << HASH_CR_NBW_Pos)              /*!< 0x00000400 */
5893 #define HASH_CR_NBW_3                       (0x8UL << HASH_CR_NBW_Pos)              /*!< 0x00000800 */
5894 #define HASH_CR_DINNE_Pos                   (12U)
5895 #define HASH_CR_DINNE_Msk                   (0x1UL << HASH_CR_DINNE_Pos)            /*!< 0x00001000 */
5896 #define HASH_CR_DINNE                       HASH_CR_DINNE_Msk
5897 #define HASH_CR_MDMAT_Pos                   (13U)
5898 #define HASH_CR_MDMAT_Msk                   (0x1UL << HASH_CR_MDMAT_Pos)            /*!< 0x00002000 */
5899 #define HASH_CR_MDMAT                       HASH_CR_MDMAT_Msk
5900 #define HASH_CR_LKEY_Pos                    (16U)
5901 #define HASH_CR_LKEY_Msk                    (0x1UL << HASH_CR_LKEY_Pos)             /*!< 0x00010000 */
5902 #define HASH_CR_LKEY                        HASH_CR_LKEY_Msk
5903 #define HASH_CR_ALGO_Pos                    (17U)
5904 #define HASH_CR_ALGO_Msk                    (0x3UL << HASH_CR_ALGO_Pos)             /*!< 0x00040080 */
5905 #define HASH_CR_ALGO                        HASH_CR_ALGO_Msk
5906 #define HASH_CR_ALGO_0                      (0x1UL << HASH_CR_ALGO_Pos)             /*!< 0x00000080 */
5907 #define HASH_CR_ALGO_1                      (0x2UL << HASH_CR_ALGO_Pos)             /*!< 0x00040000 */
5908 
5909 /******************  Bits definition for HASH_STR register  *******************/
5910 #define HASH_STR_NBLW_Pos                   (0U)
5911 #define HASH_STR_NBLW_Msk                   (0x1FUL << HASH_STR_NBLW_Pos)           /*!< 0x0000001F */
5912 #define HASH_STR_NBLW                       HASH_STR_NBLW_Msk
5913 #define HASH_STR_NBLW_0                     (0x01UL << HASH_STR_NBLW_Pos)           /*!< 0x00000001 */
5914 #define HASH_STR_NBLW_1                     (0x02UL << HASH_STR_NBLW_Pos)           /*!< 0x00000002 */
5915 #define HASH_STR_NBLW_2                     (0x04UL << HASH_STR_NBLW_Pos)           /*!< 0x00000004 */
5916 #define HASH_STR_NBLW_3                     (0x08UL << HASH_STR_NBLW_Pos)           /*!< 0x00000008 */
5917 #define HASH_STR_NBLW_4                     (0x10UL << HASH_STR_NBLW_Pos)           /*!< 0x00000010 */
5918 #define HASH_STR_DCAL_Pos                   (8U)
5919 #define HASH_STR_DCAL_Msk                   (0x1UL << HASH_STR_DCAL_Pos)            /*!< 0x00000100 */
5920 #define HASH_STR_DCAL                       HASH_STR_DCAL_Msk
5921 
5922 /******************  Bits definition for HASH_IMR register  *******************/
5923 #define HASH_IMR_DINIE_Pos                  (0U)
5924 #define HASH_IMR_DINIE_Msk                  (0x1UL << HASH_IMR_DINIE_Pos)           /*!< 0x00000001 */
5925 #define HASH_IMR_DINIE                      HASH_IMR_DINIE_Msk
5926 #define HASH_IMR_DCIE_Pos                   (1U)
5927 #define HASH_IMR_DCIE_Msk                   (0x1UL << HASH_IMR_DCIE_Pos)            /*!< 0x00000002 */
5928 #define HASH_IMR_DCIE                       HASH_IMR_DCIE_Msk
5929 
5930 /******************  Bits definition for HASH_SR register  ********************/
5931 #define HASH_SR_DINIS_Pos                   (0U)
5932 #define HASH_SR_DINIS_Msk                   (0x1UL << HASH_SR_DINIS_Pos)            /*!< 0x00000001 */
5933 #define HASH_SR_DINIS                       HASH_SR_DINIS_Msk
5934 #define HASH_SR_DCIS_Pos                    (1U)
5935 #define HASH_SR_DCIS_Msk                    (0x1UL << HASH_SR_DCIS_Pos)             /*!< 0x00000002 */
5936 #define HASH_SR_DCIS                        HASH_SR_DCIS_Msk
5937 #define HASH_SR_DMAS_Pos                    (2U)
5938 #define HASH_SR_DMAS_Msk                    (0x1UL << HASH_SR_DMAS_Pos)             /*!< 0x00000004 */
5939 #define HASH_SR_DMAS                        HASH_SR_DMAS_Msk
5940 #define HASH_SR_BUSY_Pos                    (3U)
5941 #define HASH_SR_BUSY_Msk                    (0x1UL << HASH_SR_BUSY_Pos)             /*!< 0x00000008 */
5942 #define HASH_SR_BUSY                        HASH_SR_BUSY_Msk
5943 #define HASH_SR_NBWE_Pos                    (16U)
5944 #define HASH_SR_NBWE_Msk                    (0xFUL << HASH_SR_NBWE_Pos)             /*!< 0x000F0000 */
5945 #define HASH_SR_NBWE                        HASH_SR_NBWE_Msk
5946 #define HASH_SR_NBWE_0                      (0x01UL << HASH_SR_NBWE_Pos)            /*!< 0x00010000 */
5947 #define HASH_SR_NBWE_1                      (0x02UL << HASH_SR_NBWE_Pos)            /*!< 0x00020000 */
5948 #define HASH_SR_NBWE_2                      (0x04UL << HASH_SR_NBWE_Pos)            /*!< 0x00040000 */
5949 #define HASH_SR_NBWE_3                      (0x08UL << HASH_SR_NBWE_Pos)            /*!< 0x00080000 */
5950 #define HASH_SR_DINNE_Pos                   (15U)
5951 #define HASH_SR_DINNE_Msk                   (0x1UL << HASH_SR_DINNE_Pos)            /*!< 0x00008000 */
5952 #define HASH_SR_DINNE                       HASH_SR_DINNE_Msk
5953 #define HASH_SR_NBWP_Pos                    (9U)
5954 #define HASH_SR_NBWP_Msk                    (0xFUL << HASH_SR_NBWP_Pos)             /*!< 0x000F0000 */
5955 #define HASH_SR_NBWP                        HASH_SR_NBWP_Msk
5956 #define HASH_SR_NBWP_0                      (0x01UL << HASH_SR_NBWP_Pos)            /*!< 0x000O0200 */
5957 #define HASH_SR_NBWP_1                      (0x02UL << HASH_SR_NBWP_Pos)            /*!< 0x00000400 */
5958 #define HASH_SR_NBWP_2                      (0x04UL << HASH_SR_NBWP_Pos)            /*!< 0x00000800 */
5959 #define HASH_SR_NBWP_3                      (0x08UL << HASH_SR_NBWP_Pos)            /*!< 0x00001000 */
5960 
5961 /******************************************************************************/
5962 /*                                                                            */
5963 /*                                 Debug MCU                                  */
5964 /*                                                                            */
5965 /******************************************************************************/
5966 /********************  Bit definition for DBGMCU_IDCODE register  *************/
5967 #define DBGMCU_IDCODE_DEV_ID_Pos            (0U)
5968 #define DBGMCU_IDCODE_DEV_ID_Msk            (0xFFFUL << DBGMCU_IDCODE_DEV_ID_Pos)   /*!< 0x00000FFF */
5969 #define DBGMCU_IDCODE_DEV_ID                DBGMCU_IDCODE_DEV_ID_Msk
5970 #define DBGMCU_IDCODE_REV_ID_Pos            (16U)
5971 #define DBGMCU_IDCODE_REV_ID_Msk            (0xFFFFUL << DBGMCU_IDCODE_REV_ID_Pos)  /*!< 0xFFFF0000 */
5972 #define DBGMCU_IDCODE_REV_ID                DBGMCU_IDCODE_REV_ID_Msk
5973 
5974 /********************  Bit definition for DBGMCU_CR register  *****************/
5975 #define DBGMCU_CR_DBG_STOP_Pos              (1U)
5976 #define DBGMCU_CR_DBG_STOP_Msk              (0x1UL << DBGMCU_CR_DBG_STOP_Pos)       /*!< 0x00000002 */
5977 #define DBGMCU_CR_DBG_STOP                  DBGMCU_CR_DBG_STOP_Msk
5978 #define DBGMCU_CR_DBG_STANDBY_Pos           (2U)
5979 #define DBGMCU_CR_DBG_STANDBY_Msk           (0x1UL << DBGMCU_CR_DBG_STANDBY_Pos)    /*!< 0x00000004 */
5980 #define DBGMCU_CR_DBG_STANDBY               DBGMCU_CR_DBG_STANDBY_Msk
5981 #define DBGMCU_CR_TRACE_IOEN_Pos            (4U)
5982 #define DBGMCU_CR_TRACE_IOEN_Msk            (0x1UL << DBGMCU_CR_TRACE_IOEN_Pos)     /*!< 0x00000010 */
5983 #define DBGMCU_CR_TRACE_IOEN                DBGMCU_CR_TRACE_IOEN_Msk
5984 #define DBGMCU_CR_TRACE_CLKEN_Pos           (5U)
5985 #define DBGMCU_CR_TRACE_CLKEN_Msk           (0x1UL << DBGMCU_CR_TRACE_CLKEN_Pos)    /*!< 0x00000020 */
5986 #define DBGMCU_CR_TRACE_CLKEN               DBGMCU_CR_TRACE_CLKEN_Msk
5987 #define DBGMCU_CR_TRACE_MODE_Pos            (6U)
5988 #define DBGMCU_CR_TRACE_MODE_Msk            (0x3UL << DBGMCU_CR_TRACE_MODE_Pos)     /*!< 0x000000C0 */
5989 #define DBGMCU_CR_TRACE_MODE                DBGMCU_CR_TRACE_MODE_Msk
5990 #define DBGMCU_CR_TRACE_MODE_0              (0x1UL << DBGMCU_CR_TRACE_MODE_Pos)     /*!< 0x00000040 */
5991 #define DBGMCU_CR_TRACE_MODE_1              (0x2UL << DBGMCU_CR_TRACE_MODE_Pos)     /*!< 0x00000080 */
5992 
5993 /********************  Bit definition for DBGMCU_APB1FZR1 register  ***********/
5994 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos   (0U)
5995 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos)
5996 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP       DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk
5997 #define DBGMCU_APB1FZR1_DBG_TIM3_STOP_Pos   (1U)
5998 #define DBGMCU_APB1FZR1_DBG_TIM3_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_TIM3_STOP_Pos)
5999 #define DBGMCU_APB1FZR1_DBG_TIM3_STOP       DBGMCU_APB1FZR1_DBG_TIM3_STOP_Msk
6000 #define DBGMCU_APB1FZR1_DBG_TIM4_STOP_Pos   (2U)
6001 #define DBGMCU_APB1FZR1_DBG_TIM4_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_TIM4_STOP_Pos)
6002 #define DBGMCU_APB1FZR1_DBG_TIM4_STOP       DBGMCU_APB1FZR1_DBG_TIM4_STOP_Msk
6003 #define DBGMCU_APB1FZR1_DBG_TIM5_STOP_Pos   (3U)
6004 #define DBGMCU_APB1FZR1_DBG_TIM5_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_TIM5_STOP_Pos)
6005 #define DBGMCU_APB1FZR1_DBG_TIM5_STOP       DBGMCU_APB1FZR1_DBG_TIM5_STOP_Msk
6006 #define DBGMCU_APB1FZR1_DBG_TIM6_STOP_Pos   (4U)
6007 #define DBGMCU_APB1FZR1_DBG_TIM6_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_TIM6_STOP_Pos)
6008 #define DBGMCU_APB1FZR1_DBG_TIM6_STOP       DBGMCU_APB1FZR1_DBG_TIM6_STOP_Msk
6009 #define DBGMCU_APB1FZR1_DBG_TIM7_STOP_Pos   (5U)
6010 #define DBGMCU_APB1FZR1_DBG_TIM7_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_TIM7_STOP_Pos)
6011 #define DBGMCU_APB1FZR1_DBG_TIM7_STOP       DBGMCU_APB1FZR1_DBG_TIM7_STOP_Msk
6012 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos   (11U)
6013 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos)
6014 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP       DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk
6015 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos   (12U)
6016 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos)
6017 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP       DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk
6018 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos   (21U)
6019 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos)
6020 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP       DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk
6021 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos   (22U)
6022 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk   (0x1UL << DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos)
6023 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP       DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk
6024 
6025 /********************  Bit definition for DBGMCU_APB1FZR2 register  ***********/
6026 #define DBGMCU_APB1FZR2_DBG_I2C4_STOP_Pos   (1U)
6027 #define DBGMCU_APB1FZR2_DBG_I2C4_STOP_Msk   (0x1UL << DBGMCU_APB1FZR2_DBG_I2C4_STOP_Pos)
6028 #define DBGMCU_APB1FZR2_DBG_I2C4_STOP       DBGMCU_APB1FZR2_DBG_I2C4_STOP_Msk
6029 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos (5U)
6030 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk (0x1UL << DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos)
6031 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP     DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk
6032 #define DBGMCU_APB1FZR2_DBG_FDCAN_STOP_Pos  (9U)
6033 #define DBGMCU_APB1FZR2_DBG_FDCAN_STOP_Msk  (0x1UL << DBGMCU_APB1FZR2_DBG_FDCAN_STOP_Pos)
6034 #define DBGMCU_APB1FZR2_DBG_FDCAN_STOP      DBGMCU_APB1FZR2_DBG_FDCAN_STOP_Msk
6035 
6036 /********************  Bit definition for DBGMCU_APB2FZR register  ***********/
6037 #define DBGMCU_APB2FZR_DBG_TIM1_STOP_Pos    (11U)
6038 #define DBGMCU_APB2FZR_DBG_TIM1_STOP_Msk    (0x1UL << DBGMCU_APB2FZR_DBG_TIM1_STOP_Pos)
6039 #define DBGMCU_APB2FZR_DBG_TIM1_STOP        DBGMCU_APB2FZR_DBG_TIM1_STOP_Msk
6040 #define DBGMCU_APB2FZR_DBG_TIM8_STOP_Pos    (13U)
6041 #define DBGMCU_APB2FZR_DBG_TIM8_STOP_Msk    (0x1UL << DBGMCU_APB2FZR_DBG_TIM8_STOP_Pos)
6042 #define DBGMCU_APB2FZR_DBG_TIM8_STOP        DBGMCU_APB2FZR_DBG_TIM8_STOP_Msk
6043 #define DBGMCU_APB2FZR_DBG_TIM15_STOP_Pos   (16U)
6044 #define DBGMCU_APB2FZR_DBG_TIM15_STOP_Msk   (0x1UL << DBGMCU_APB2FZR_DBG_TIM15_STOP_Pos)
6045 #define DBGMCU_APB2FZR_DBG_TIM15_STOP       DBGMCU_APB2FZR_DBG_TIM15_STOP_Msk
6046 #define DBGMCU_APB2FZR_DBG_TIM16_STOP_Pos   (17U)
6047 #define DBGMCU_APB2FZR_DBG_TIM16_STOP_Msk   (0x1UL << DBGMCU_APB2FZR_DBG_TIM16_STOP_Pos)
6048 #define DBGMCU_APB2FZR_DBG_TIM16_STOP       DBGMCU_APB2FZR_DBG_TIM16_STOP_Msk
6049 #define DBGMCU_APB2FZR_DBG_TIM17_STOP_Pos   (18U)
6050 #define DBGMCU_APB2FZR_DBG_TIM17_STOP_Msk   (0x1UL << DBGMCU_APB2FZR_DBG_TIM17_STOP_Pos)
6051 #define DBGMCU_APB2FZR_DBG_TIM17_STOP       DBGMCU_APB2FZR_DBG_TIM17_STOP_Msk
6052 
6053 /********************  Bit definition for DBGMCU_APB3FZR register  ***********/
6054 #define DBGMCU_APB3FZR_DBG_I2C3_STOP_Pos    (10U)
6055 #define DBGMCU_APB3FZR_DBG_I2C3_STOP_Msk    (0x1UL << DBGMCU_APB3FZR_DBG_I2C3_STOP_Pos)
6056 #define DBGMCU_APB3FZR_DBG_I2C3_STOP        DBGMCU_APB3FZR_DBG_I2C3_STOP_Msk
6057 #define DBGMCU_APB3FZR_DBG_LPTIM1_STOP_Pos  (17U)
6058 #define DBGMCU_APB3FZR_DBG_LPTIM1_STOP_Msk  (0x1UL << DBGMCU_APB3FZR_DBG_LPTIM1_STOP_Pos)
6059 #define DBGMCU_APB3FZR_DBG_LPTIM1_STOP      DBGMCU_APB3FZR_DBG_LPTIM1_STOP_Msk
6060 #define DBGMCU_APB3FZR_DBG_LPTIM3_STOP_Pos  (18U)
6061 #define DBGMCU_APB3FZR_DBG_LPTIM3_STOP_Msk  (0x1UL << DBGMCU_APB3FZR_DBG_LPTIM3_STOP_Pos)
6062 #define DBGMCU_APB3FZR_DBG_LPTIM3_STOP      DBGMCU_APB3FZR_DBG_LPTIM3_STOP_Msk
6063 #define DBGMCU_APB3FZR_DBG_LPTIM4_STOP_Pos  (19U)
6064 #define DBGMCU_APB3FZR_DBG_LPTIM4_STOP_Msk  (0x1UL << DBGMCU_APB3FZR_DBG_LPTIM4_STOP_Pos)
6065 #define DBGMCU_APB3FZR_DBG_LPTIM4_STOP      DBGMCU_APB3FZR_DBG_LPTIM4_STOP_Msk
6066 #define DBGMCU_APB3FZR_DBG_RTC_STOP_Pos     (30U)
6067 #define DBGMCU_APB3FZR_DBG_RTC_STOP_Msk     (0x1UL << DBGMCU_APB3FZR_DBG_RTC_STOP_Pos)
6068 #define DBGMCU_APB3FZR_DBG_RTC_STOP         DBGMCU_APB3FZR_DBG_RTC_STOP_Msk
6069 
6070 /********************  Bit definition for DBGMCU_AHB1FZR register  ***********/
6071 #define DBGMCU_AHB1FZR_DBG_GPDMA0_STOP_Pos  (0U)
6072 #define DBGMCU_AHB1FZR_DBG_GPDMA0_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA0_STOP_Pos)
6073 #define DBGMCU_AHB1FZR_DBG_GPDMA0_STOP      DBGMCU_AHB1FZR_DBG_GPDMA0_STOP_Msk
6074 #define DBGMCU_AHB1FZR_DBG_GPDMA1_STOP_Pos  (1U)
6075 #define DBGMCU_AHB1FZR_DBG_GPDMA1_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA1_STOP_Pos)
6076 #define DBGMCU_AHB1FZR_DBG_GPDMA1_STOP      DBGMCU_AHB1FZR_DBG_GPDMA1_STOP_Msk
6077 #define DBGMCU_AHB1FZR_DBG_GPDMA2_STOP_Pos  (2U)
6078 #define DBGMCU_AHB1FZR_DBG_GPDMA2_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA2_STOP_Pos)
6079 #define DBGMCU_AHB1FZR_DBG_GPDMA2_STOP      DBGMCU_AHB1FZR_DBG_GPDMA2_STOP_Msk
6080 #define DBGMCU_AHB1FZR_DBG_GPDMA3_STOP_Pos  (3U)
6081 #define DBGMCU_AHB1FZR_DBG_GPDMA3_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA3_STOP_Pos)
6082 #define DBGMCU_AHB1FZR_DBG_GPDMA3_STOP      DBGMCU_AHB1FZR_DBG_GPDMA3_STOP_Msk
6083 #define DBGMCU_AHB1FZR_DBG_GPDMA4_STOP_Pos  (4U)
6084 #define DBGMCU_AHB1FZR_DBG_GPDMA4_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA4_STOP_Pos)
6085 #define DBGMCU_AHB1FZR_DBG_GPDMA4_STOP      DBGMCU_AHB1FZR_DBG_GPDMA4_STOP_Msk
6086 #define DBGMCU_AHB1FZR_DBG_GPDMA5_STOP_Pos  (5U)
6087 #define DBGMCU_AHB1FZR_DBG_GPDMA5_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA5_STOP_Pos)
6088 #define DBGMCU_AHB1FZR_DBG_GPDMA5_STOP      DBGMCU_AHB1FZR_DBG_GPDMA5_STOP_Msk
6089 #define DBGMCU_AHB1FZR_DBG_GPDMA6_STOP_Pos  (6U)
6090 #define DBGMCU_AHB1FZR_DBG_GPDMA6_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA6_STOP_Pos)
6091 #define DBGMCU_AHB1FZR_DBG_GPDMA6_STOP      DBGMCU_AHB1FZR_DBG_GPDMA6_STOP_Msk
6092 #define DBGMCU_AHB1FZR_DBG_GPDMA7_STOP_Pos  (7U)
6093 #define DBGMCU_AHB1FZR_DBG_GPDMA7_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA7_STOP_Pos)
6094 #define DBGMCU_AHB1FZR_DBG_GPDMA7_STOP      DBGMCU_AHB1FZR_DBG_GPDMA7_STOP_Msk
6095 #define DBGMCU_AHB1FZR_DBG_GPDMA8_STOP_Pos  (8U)
6096 #define DBGMCU_AHB1FZR_DBG_GPDMA8_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA8_STOP_Pos)
6097 #define DBGMCU_AHB1FZR_DBG_GPDMA8_STOP      DBGMCU_AHB1FZR_DBG_GPDMA8_STOP_Msk
6098 #define DBGMCU_AHB1FZR_DBG_GPDMA9_STOP_Pos  (9U)
6099 #define DBGMCU_AHB1FZR_DBG_GPDMA9_STOP_Msk  (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA9_STOP_Pos)
6100 #define DBGMCU_AHB1FZR_DBG_GPDMA9_STOP      DBGMCU_AHB1FZR_DBG_GPDMA9_STOP_Msk
6101 #define DBGMCU_AHB1FZR_DBG_GPDMA10_STOP_Pos (10U)
6102 #define DBGMCU_AHB1FZR_DBG_GPDMA10_STOP_Msk (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA10_STOP_Pos)
6103 #define DBGMCU_AHB1FZR_DBG_GPDMA10_STOP     DBGMCU_AHB1FZR_DBG_GPDMA10_STOP_Msk
6104 #define DBGMCU_AHB1FZR_DBG_GPDMA11_STOP_Pos (11U)
6105 #define DBGMCU_AHB1FZR_DBG_GPDMA11_STOP_Msk (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA11_STOP_Pos)
6106 #define DBGMCU_AHB1FZR_DBG_GPDMA11_STOP     DBGMCU_AHB1FZR_DBG_GPDMA11_STOP_Msk
6107 #define DBGMCU_AHB1FZR_DBG_GPDMA12_STOP_Pos (12U)
6108 #define DBGMCU_AHB1FZR_DBG_GPDMA12_STOP_Msk (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA12_STOP_Pos)
6109 #define DBGMCU_AHB1FZR_DBG_GPDMA12_STOP     DBGMCU_AHB1FZR_DBG_GPDMA12_STOP_Msk
6110 #define DBGMCU_AHB1FZR_DBG_GPDMA13_STOP_Pos (13U)
6111 #define DBGMCU_AHB1FZR_DBG_GPDMA13_STOP_Msk (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA13_STOP_Pos)
6112 #define DBGMCU_AHB1FZR_DBG_GPDMA13_STOP     DBGMCU_AHB1FZR_DBG_GPDMA13_STOP_Msk
6113 #define DBGMCU_AHB1FZR_DBG_GPDMA14_STOP_Pos (14U)
6114 #define DBGMCU_AHB1FZR_DBG_GPDMA14_STOP_Msk (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA14_STOP_Pos)
6115 #define DBGMCU_AHB1FZR_DBG_GPDMA14_STOP     DBGMCU_AHB1FZR_DBG_GPDMA14_STOP_Msk
6116 #define DBGMCU_AHB1FZR_DBG_GPDMA15_STOP_Pos (15U)
6117 #define DBGMCU_AHB1FZR_DBG_GPDMA15_STOP_Msk (0x1UL << DBGMCU_AHB1FZR_DBG_GPDMA15_STOP_Pos)
6118 #define DBGMCU_AHB1FZR_DBG_GPDMA15_STOP     DBGMCU_AHB1FZR_DBG_GPDMA15_STOP_Msk
6119 
6120 /********************  Bit definition for DBGMCU_AHB3FZR register  ***********/
6121 #define DBGMCU_AHB3FZR_DBG_LPDMA0_STOP_Pos  (0U)
6122 #define DBGMCU_AHB3FZR_DBG_LPDMA0_STOP_Msk  (0x1UL << DBGMCU_AHB3FZR_DBG_LPDMA0_STOP_Pos)
6123 #define DBGMCU_AHB3FZR_DBG_LPDMA0_STOP      DBGMCU_AHB3FZR_DBG_LPDMA0_STOP_Msk
6124 #define DBGMCU_AHB3FZR_DBG_LPDMA1_STOP_Pos  (1U)
6125 #define DBGMCU_AHB3FZR_DBG_LPDMA1_STOP_Msk  (0x1UL << DBGMCU_AHB3FZR_DBG_LPDMA1_STOP_Pos)
6126 #define DBGMCU_AHB3FZR_DBG_LPDMA1_STOP      DBGMCU_AHB3FZR_DBG_LPDMA1_STOP_Msk
6127 #define DBGMCU_AHB3FZR_DBG_LPDMA2_STOP_Pos  (2U)
6128 #define DBGMCU_AHB3FZR_DBG_LPDMA2_STOP_Msk  (0x1UL << DBGMCU_AHB3FZR_DBG_LPDMA2_STOP_Pos)
6129 #define DBGMCU_AHB3FZR_DBG_LPDMA2_STOP      DBGMCU_AHB3FZR_DBG_LPDMA2_STOP_Msk
6130 #define DBGMCU_AHB3FZR_DBG_LPDMA3_STOP_Pos  (3U)
6131 #define DBGMCU_AHB3FZR_DBG_LPDMA3_STOP_Msk  (0x1UL << DBGMCU_AHB3FZR_DBG_LPDMA3_STOP_Pos)
6132 #define DBGMCU_AHB3FZR_DBG_LPDMA3_STOP      DBGMCU_AHB3FZR_DBG_LPDMA3_STOP_Msk
6133 
6134 /******************************************************************************/
6135 /*                                                                            */
6136 /*                                    DCMI                                    */
6137 /*                                                                            */
6138 /******************************************************************************/
6139 /********************  Bits definition for DCMI_CR register  ******************/
6140 #define DCMI_CR_CAPTURE_Pos                 (0U)
6141 #define DCMI_CR_CAPTURE_Msk                 (0x1UL << DCMI_CR_CAPTURE_Pos)          /*!< 0x00000001 */
6142 #define DCMI_CR_CAPTURE                     DCMI_CR_CAPTURE_Msk
6143 #define DCMI_CR_CM_Pos                      (1U)
6144 #define DCMI_CR_CM_Msk                      (0x1UL << DCMI_CR_CM_Pos)               /*!< 0x00000002 */
6145 #define DCMI_CR_CM                          DCMI_CR_CM_Msk
6146 #define DCMI_CR_CROP_Pos                    (2U)
6147 #define DCMI_CR_CROP_Msk                    (0x1UL << DCMI_CR_CROP_Pos)             /*!< 0x00000004 */
6148 #define DCMI_CR_CROP                        DCMI_CR_CROP_Msk
6149 #define DCMI_CR_JPEG_Pos                    (3U)
6150 #define DCMI_CR_JPEG_Msk                    (0x1UL << DCMI_CR_JPEG_Pos)             /*!< 0x00000008 */
6151 #define DCMI_CR_JPEG                        DCMI_CR_JPEG_Msk
6152 #define DCMI_CR_ESS_Pos                     (4U)
6153 #define DCMI_CR_ESS_Msk                     (0x1UL << DCMI_CR_ESS_Pos)              /*!< 0x00000010 */
6154 #define DCMI_CR_ESS                         DCMI_CR_ESS_Msk
6155 #define DCMI_CR_PCKPOL_Pos                  (5U)
6156 #define DCMI_CR_PCKPOL_Msk                  (0x1UL << DCMI_CR_PCKPOL_Pos)           /*!< 0x00000020 */
6157 #define DCMI_CR_PCKPOL                      DCMI_CR_PCKPOL_Msk
6158 #define DCMI_CR_HSPOL_Pos                   (6U)
6159 #define DCMI_CR_HSPOL_Msk                   (0x1UL << DCMI_CR_HSPOL_Pos)            /*!< 0x00000040 */
6160 #define DCMI_CR_HSPOL                       DCMI_CR_HSPOL_Msk
6161 #define DCMI_CR_VSPOL_Pos                   (7U)
6162 #define DCMI_CR_VSPOL_Msk                   (0x1UL << DCMI_CR_VSPOL_Pos)            /*!< 0x00000080 */
6163 #define DCMI_CR_VSPOL                       DCMI_CR_VSPOL_Msk
6164 #define DCMI_CR_FCRC_Pos                    (8U)
6165 #define DCMI_CR_FCRC_Msk                    (0x3UL << DCMI_CR_FCRC_Pos)             /*!< 0x00000300 */
6166 #define DCMI_CR_FCRC                        DCMI_CR_FCRC_Msk                        /*!< DCMI Frame capture rate control FCRC[1:0] */
6167 #define DCMI_CR_FCRC_0                      (0x1UL << DCMI_CR_FCRC_Pos)             /*!< 0x00000100 */
6168 #define DCMI_CR_FCRC_1                      (0x2UL << DCMI_CR_FCRC_Pos)             /*!< 0x00000200 */
6169 #define DCMI_CR_EDM_Pos                     (10U)
6170 #define DCMI_CR_EDM_Msk                     (0x3UL << DCMI_CR_EDM_Pos)              /*!< 0x00000C00 */
6171 #define DCMI_CR_EDM                         DCMI_CR_EDM_Msk                         /*!< DCMI Extended data mode EDM[1:0] */
6172 #define DCMI_CR_EDM_0                       (0x1UL << DCMI_CR_EDM_Pos)              /*!< 0x00000400 */
6173 #define DCMI_CR_EDM_1                       (0x2UL << DCMI_CR_EDM_Pos)              /*!< 0x00000800 */
6174 #define DCMI_CR_ENABLE_Pos                  (14U)
6175 #define DCMI_CR_ENABLE_Msk                  (0x1UL << DCMI_CR_ENABLE_Pos)           /*!< 0x00004000 */
6176 #define DCMI_CR_ENABLE                      DCMI_CR_ENABLE_Msk
6177 #define DCMI_CR_BSM_Pos                     (16U)
6178 #define DCMI_CR_BSM_Msk                     (0x3UL << DCMI_CR_BSM_Pos)              /*!< 0x00030000 */
6179 #define DCMI_CR_BSM                         DCMI_CR_BSM_Msk
6180 #define DCMI_CR_BSM_0                       (0x1UL << DCMI_CR_BSM_Pos)              /*!< 0x00010000 */
6181 #define DCMI_CR_BSM_1                       (0x2UL << DCMI_CR_BSM_Pos)              /*!< 0x00020000 */
6182 #define DCMI_CR_OEBS_Pos                    (18U)
6183 #define DCMI_CR_OEBS_Msk                    (0x1UL << DCMI_CR_OEBS_Pos)             /*!< 0x00040000 */
6184 #define DCMI_CR_OEBS                        DCMI_CR_OEBS_Msk
6185 #define DCMI_CR_LSM_Pos                     (19U)
6186 #define DCMI_CR_LSM_Msk                     (0x1UL << DCMI_CR_LSM_Pos)              /*!< 0x00080000 */
6187 #define DCMI_CR_LSM                         DCMI_CR_LSM_Msk
6188 #define DCMI_CR_OELS_Pos                    (20U)
6189 #define DCMI_CR_OELS_Msk                    (0x1UL << DCMI_CR_OELS_Pos)             /*!< 0x00100000 */
6190 #define DCMI_CR_OELS                        DCMI_CR_OELS_Msk
6191 #define DCMI_CR_PSDM_Pos                    (31U)
6192 #define DCMI_CR_PSDM_Msk                    (0x0UL << DCMI_CR_PSDM_Pos)             /*!< 0x00000000 */
6193 #define DCMI_CR_PSDM                        DCMI_CR_PSDM_Msk                        /*PSDM: Parallel Synchronous raw Data Mode (PSDM = 0)*/
6194 
6195 /********************  Bits definition for DCMI_SR register  ******************/
6196 #define DCMI_SR_HSYNC_Pos                   (0U)
6197 #define DCMI_SR_HSYNC_Msk                   (0x1UL << DCMI_SR_HSYNC_Pos)            /*!< 0x00000001 */
6198 #define DCMI_SR_HSYNC                       DCMI_SR_HSYNC_Msk
6199 #define DCMI_SR_VSYNC_Pos                   (1U)
6200 #define DCMI_SR_VSYNC_Msk                   (0x1UL << DCMI_SR_VSYNC_Pos)            /*!< 0x00000002 */
6201 #define DCMI_SR_VSYNC                       DCMI_SR_VSYNC_Msk
6202 #define DCMI_SR_FNE_Pos                     (2U)
6203 #define DCMI_SR_FNE_Msk                     (0x1UL << DCMI_SR_FNE_Pos)              /*!< 0x00000004 */
6204 #define DCMI_SR_FNE                         DCMI_SR_FNE_Msk
6205 
6206 /********************  Bits definition for DCMI_RIS register   ****************/
6207 #define DCMI_RIS_FRAME_RIS_Pos              (0U)
6208 #define DCMI_RIS_FRAME_RIS_Msk              (0x1UL << DCMI_RIS_FRAME_RIS_Pos)       /*!< 0x00000001 */
6209 #define DCMI_RIS_FRAME_RIS                  DCMI_RIS_FRAME_RIS_Msk
6210 #define DCMI_RIS_OVR_RIS_Pos                (1U)
6211 #define DCMI_RIS_OVR_RIS_Msk                (0x1UL << DCMI_RIS_OVR_RIS_Pos)         /*!< 0x00000002 */
6212 #define DCMI_RIS_OVR_RIS                    DCMI_RIS_OVR_RIS_Msk
6213 #define DCMI_RIS_ERR_RIS_Pos                (2U)
6214 #define DCMI_RIS_ERR_RIS_Msk                (0x1UL << DCMI_RIS_ERR_RIS_Pos)         /*!< 0x00000004 */
6215 #define DCMI_RIS_ERR_RIS                    DCMI_RIS_ERR_RIS_Msk
6216 #define DCMI_RIS_VSYNC_RIS_Pos              (3U)
6217 #define DCMI_RIS_VSYNC_RIS_Msk              (0x1UL << DCMI_RIS_VSYNC_RIS_Pos)       /*!< 0x00000008 */
6218 #define DCMI_RIS_VSYNC_RIS                  DCMI_RIS_VSYNC_RIS_Msk
6219 #define DCMI_RIS_LINE_RIS_Pos               (4U)
6220 #define DCMI_RIS_LINE_RIS_Msk               (0x1UL << DCMI_RIS_LINE_RIS_Pos)        /*!< 0x00000010 */
6221 #define DCMI_RIS_LINE_RIS                   DCMI_RIS_LINE_RIS_Msk
6222 
6223 /********************  Bits definition for DCMI_IER register  *****************/
6224 #define DCMI_IER_FRAME_IE_Pos               (0U)
6225 #define DCMI_IER_FRAME_IE_Msk               (0x1UL << DCMI_IER_FRAME_IE_Pos)        /*!< 0x00000001 */
6226 #define DCMI_IER_FRAME_IE                   DCMI_IER_FRAME_IE_Msk
6227 #define DCMI_IER_OVR_IE_Pos                 (1U)
6228 #define DCMI_IER_OVR_IE_Msk                 (0x1UL << DCMI_IER_OVR_IE_Pos)          /*!< 0x00000002 */
6229 #define DCMI_IER_OVR_IE                     DCMI_IER_OVR_IE_Msk
6230 #define DCMI_IER_ERR_IE_Pos                 (2U)
6231 #define DCMI_IER_ERR_IE_Msk                 (0x1UL << DCMI_IER_ERR_IE_Pos)          /*!< 0x00000004 */
6232 #define DCMI_IER_ERR_IE                     DCMI_IER_ERR_IE_Msk
6233 #define DCMI_IER_VSYNC_IE_Pos               (3U)
6234 #define DCMI_IER_VSYNC_IE_Msk               (0x1UL << DCMI_IER_VSYNC_IE_Pos)        /*!< 0x00000008 */
6235 #define DCMI_IER_VSYNC_IE                   DCMI_IER_VSYNC_IE_Msk
6236 #define DCMI_IER_LINE_IE_Pos                (4U)
6237 #define DCMI_IER_LINE_IE_Msk                (0x1UL << DCMI_IER_LINE_IE_Pos)         /*!< 0x00000010 */
6238 #define DCMI_IER_LINE_IE                    DCMI_IER_LINE_IE_Msk
6239 
6240 /********************  Bits definition for DCMI_MIS register  *****************/
6241 #define DCMI_MIS_FRAME_MIS_Pos              (0U)
6242 #define DCMI_MIS_FRAME_MIS_Msk              (0x1UL << DCMI_MIS_FRAME_MIS_Pos)       /*!< 0x00000001 */
6243 #define DCMI_MIS_FRAME_MIS                  DCMI_MIS_FRAME_MIS_Msk
6244 #define DCMI_MIS_OVR_MIS_Pos                (1U)
6245 #define DCMI_MIS_OVR_MIS_Msk                (0x1UL << DCMI_MIS_OVR_MIS_Pos)         /*!< 0x00000002 */
6246 #define DCMI_MIS_OVR_MIS                    DCMI_MIS_OVR_MIS_Msk
6247 #define DCMI_MIS_ERR_MIS_Pos                (2U)
6248 #define DCMI_MIS_ERR_MIS_Msk                (0x1UL << DCMI_MIS_ERR_MIS_Pos)         /*!< 0x00000004 */
6249 #define DCMI_MIS_ERR_MIS                    DCMI_MIS_ERR_MIS_Msk
6250 #define DCMI_MIS_VSYNC_MIS_Pos              (3U)
6251 #define DCMI_MIS_VSYNC_MIS_Msk              (0x1UL << DCMI_MIS_VSYNC_MIS_Pos)       /*!< 0x00000008 */
6252 #define DCMI_MIS_VSYNC_MIS                  DCMI_MIS_VSYNC_MIS_Msk
6253 #define DCMI_MIS_LINE_MIS_Pos               (4U)
6254 #define DCMI_MIS_LINE_MIS_Msk               (0x1UL << DCMI_MIS_LINE_MIS_Pos)        /*!< 0x00000010 */
6255 #define DCMI_MIS_LINE_MIS                   DCMI_MIS_LINE_MIS_Msk
6256 
6257 /********************  Bits definition for DCMI_ICR register  *****************/
6258 #define DCMI_ICR_FRAME_ISC_Pos              (0U)
6259 #define DCMI_ICR_FRAME_ISC_Msk              (0x1UL << DCMI_ICR_FRAME_ISC_Pos)       /*!< 0x00000001 */
6260 #define DCMI_ICR_FRAME_ISC                  DCMI_ICR_FRAME_ISC_Msk
6261 #define DCMI_ICR_OVR_ISC_Pos                (1U)
6262 #define DCMI_ICR_OVR_ISC_Msk                (0x1UL << DCMI_ICR_OVR_ISC_Pos)         /*!< 0x00000002 */
6263 #define DCMI_ICR_OVR_ISC                    DCMI_ICR_OVR_ISC_Msk
6264 #define DCMI_ICR_ERR_ISC_Pos                (2U)
6265 #define DCMI_ICR_ERR_ISC_Msk                (0x1UL << DCMI_ICR_ERR_ISC_Pos)         /*!< 0x00000004 */
6266 #define DCMI_ICR_ERR_ISC                    DCMI_ICR_ERR_ISC_Msk
6267 #define DCMI_ICR_VSYNC_ISC_Pos              (3U)
6268 #define DCMI_ICR_VSYNC_ISC_Msk              (0x1UL << DCMI_ICR_VSYNC_ISC_Pos)       /*!< 0x00000008 */
6269 #define DCMI_ICR_VSYNC_ISC                  DCMI_ICR_VSYNC_ISC_Msk
6270 #define DCMI_ICR_LINE_ISC_Pos               (4U)
6271 #define DCMI_ICR_LINE_ISC_Msk               (0x1UL << DCMI_ICR_LINE_ISC_Pos)        /*!< 0x00000010 */
6272 #define DCMI_ICR_LINE_ISC                   DCMI_ICR_LINE_ISC_Msk
6273 
6274 /********************  Bits definition for DCMI_ESCR register  ******************/
6275 #define DCMI_ESCR_FSC_Pos                   (0U)
6276 #define DCMI_ESCR_FSC_Msk                   (0xFFUL << DCMI_ESCR_FSC_Pos)           /*!< 0x000000FF */
6277 #define DCMI_ESCR_FSC                       DCMI_ESCR_FSC_Msk
6278 #define DCMI_ESCR_LSC_Pos                   (8U)
6279 #define DCMI_ESCR_LSC_Msk                   (0xFFUL << DCMI_ESCR_LSC_Pos)           /*!< 0x0000FF00 */
6280 #define DCMI_ESCR_LSC                       DCMI_ESCR_LSC_Msk
6281 #define DCMI_ESCR_LEC_Pos                   (16U)
6282 #define DCMI_ESCR_LEC_Msk                   (0xFFUL << DCMI_ESCR_LEC_Pos)           /*!< 0x00FF0000 */
6283 #define DCMI_ESCR_LEC                       DCMI_ESCR_LEC_Msk
6284 #define DCMI_ESCR_FEC_Pos                   (24U)
6285 #define DCMI_ESCR_FEC_Msk                   (0xFFUL << DCMI_ESCR_FEC_Pos)           /*!< 0xFF000000 */
6286 #define DCMI_ESCR_FEC                       DCMI_ESCR_FEC_Msk
6287 
6288 /********************  Bits definition for DCMI_ESUR register  ******************/
6289 #define DCMI_ESUR_FSU_Pos                   (0U)
6290 #define DCMI_ESUR_FSU_Msk                   (0xFFUL << DCMI_ESUR_FSU_Pos)           /*!< 0x000000FF */
6291 #define DCMI_ESUR_FSU                       DCMI_ESUR_FSU_Msk
6292 #define DCMI_ESUR_LSU_Pos                   (8U)
6293 #define DCMI_ESUR_LSU_Msk                   (0xFFUL << DCMI_ESUR_LSU_Pos)           /*!< 0x0000FF00 */
6294 #define DCMI_ESUR_LSU                       DCMI_ESUR_LSU_Msk
6295 #define DCMI_ESUR_LEU_Pos                   (16U)
6296 #define DCMI_ESUR_LEU_Msk                   (0xFFUL << DCMI_ESUR_LEU_Pos)           /*!< 0x00FF0000 */
6297 #define DCMI_ESUR_LEU                       DCMI_ESUR_LEU_Msk
6298 #define DCMI_ESUR_FEU_Pos                   (24U)
6299 #define DCMI_ESUR_FEU_Msk                   (0xFFUL << DCMI_ESUR_FEU_Pos)           /*!< 0xFF000000 */
6300 #define DCMI_ESUR_FEU                       DCMI_ESUR_FEU_Msk
6301 
6302 /********************  Bits definition for DCMI_CWSTRT register  ******************/
6303 #define DCMI_CWSTRT_HOFFCNT_Pos             (0U)
6304 #define DCMI_CWSTRT_HOFFCNT_Msk             (0x3FFFUL << DCMI_CWSTRT_HOFFCNT_Pos)   /*!< 0x00003FFF */
6305 #define DCMI_CWSTRT_HOFFCNT                 DCMI_CWSTRT_HOFFCNT_Msk
6306 #define DCMI_CWSTRT_VST_Pos                 (16U)
6307 #define DCMI_CWSTRT_VST_Msk                 (0x1FFFUL << DCMI_CWSTRT_VST_Pos)       /*!< 0x1FFF0000 */
6308 #define DCMI_CWSTRT_VST                     DCMI_CWSTRT_VST_Msk
6309 
6310 /********************  Bits definition for DCMI_CWSIZE register  ******************/
6311 #define DCMI_CWSIZE_CAPCNT_Pos              (0U)
6312 #define DCMI_CWSIZE_CAPCNT_Msk              (0x3FFFUL << DCMI_CWSIZE_CAPCNT_Pos)    /*!< 0x00003FFF */
6313 #define DCMI_CWSIZE_CAPCNT                  DCMI_CWSIZE_CAPCNT_Msk
6314 #define DCMI_CWSIZE_VLINE_Pos               (16U)
6315 #define DCMI_CWSIZE_VLINE_Msk               (0x3FFFUL << DCMI_CWSIZE_VLINE_Pos)     /*!< 0x3FFF0000 */
6316 #define DCMI_CWSIZE_VLINE                   DCMI_CWSIZE_VLINE_Msk
6317 
6318 /********************  Bits definition for DCMI_DR register  ******************/
6319 #define DCMI_DR_BYTE0_Pos                   (0U)
6320 #define DCMI_DR_BYTE0_Msk                   (0xFFUL << DCMI_DR_BYTE0_Pos)           /*!< 0x000000FF */
6321 #define DCMI_DR_BYTE0                       DCMI_DR_BYTE0_Msk
6322 #define DCMI_DR_BYTE1_Pos                   (8U)
6323 #define DCMI_DR_BYTE1_Msk                   (0xFFUL << DCMI_DR_BYTE1_Pos)           /*!< 0x0000FF00 */
6324 #define DCMI_DR_BYTE1                       DCMI_DR_BYTE1_Msk
6325 #define DCMI_DR_BYTE2_Pos                   (16U)
6326 #define DCMI_DR_BYTE2_Msk                   (0xFFUL << DCMI_DR_BYTE2_Pos)           /*!< 0x00FF0000 */
6327 #define DCMI_DR_BYTE2                       DCMI_DR_BYTE2_Msk
6328 #define DCMI_DR_BYTE3_Pos                   (24U)
6329 #define DCMI_DR_BYTE3_Msk                   (0xFFUL << DCMI_DR_BYTE3_Pos)           /*!< 0xFF000000 */
6330 #define DCMI_DR_BYTE3                       DCMI_DR_BYTE3_Msk
6331 
6332 /******************************************************************************/
6333 /*                                                                            */
6334 /*                           DMA Controller (DMA)                             */
6335 /*                                                                            */
6336 /******************************************************************************/
6337 /*******************  Bit definition for DMA_SECCFGR register  ****************/
6338 #define DMA_SECCFGR_SEC0_Pos                (0U)
6339 #define DMA_SECCFGR_SEC0_Msk                (0x1UL << DMA_SECCFGR_SEC0_Pos)         /*!< 0x00000001 */
6340 #define DMA_SECCFGR_SEC0                    DMA_SECCFGR_SEC0_Msk                    /*!< Secure State of Channel 0  */
6341 #define DMA_SECCFGR_SEC1_Pos                (1U)
6342 #define DMA_SECCFGR_SEC1_Msk                (0x1UL << DMA_SECCFGR_SEC1_Pos)         /*!< 0x00000002 */
6343 #define DMA_SECCFGR_SEC1                    DMA_SECCFGR_SEC1_Msk                    /*!< Secure State of Channel 1  */
6344 #define DMA_SECCFGR_SEC2_Pos                (2U)
6345 #define DMA_SECCFGR_SEC2_Msk                (0x1UL << DMA_SECCFGR_SEC2_Pos)         /*!< 0x00000004 */
6346 #define DMA_SECCFGR_SEC2                    DMA_SECCFGR_SEC2_Msk                    /*!< Secure State of Channel 2  */
6347 #define DMA_SECCFGR_SEC3_Pos                (3U)
6348 #define DMA_SECCFGR_SEC3_Msk                (0x1UL << DMA_SECCFGR_SEC3_Pos)         /*!< 0x00000008 */
6349 #define DMA_SECCFGR_SEC3                    DMA_SECCFGR_SEC3_Msk                    /*!< Secure State of Channel 3  */
6350 #define DMA_SECCFGR_SEC4_Pos                (4U)
6351 #define DMA_SECCFGR_SEC4_Msk                (0x1UL << DMA_SECCFGR_SEC4_Pos)         /*!< 0x00000010 */
6352 #define DMA_SECCFGR_SEC4                    DMA_SECCFGR_SEC4_Msk                    /*!< Secure State of Channel 4  */
6353 #define DMA_SECCFGR_SEC5_Pos                (5U)
6354 #define DMA_SECCFGR_SEC5_Msk                (0x1UL << DMA_SECCFGR_SEC5_Pos)         /*!< 0x00000020 */
6355 #define DMA_SECCFGR_SEC5                    DMA_SECCFGR_SEC5_Msk                    /*!< Secure State of Channel 5  */
6356 #define DMA_SECCFGR_SEC6_Pos                (6U)
6357 #define DMA_SECCFGR_SEC6_Msk                (0x1UL << DMA_SECCFGR_SEC6_Pos)         /*!< 0x00000040 */
6358 #define DMA_SECCFGR_SEC6                    DMA_SECCFGR_SEC6_Msk                    /*!< Secure State of Channel 6  */
6359 #define DMA_SECCFGR_SEC7_Pos                (7U)
6360 #define DMA_SECCFGR_SEC7_Msk                (0x1UL << DMA_SECCFGR_SEC7_Pos)         /*!< 0x00000080 */
6361 #define DMA_SECCFGR_SEC7                    DMA_SECCFGR_SEC7_Msk                    /*!< Secure State of Channel 7  */
6362 #define DMA_SECCFGR_SEC8_Pos                (8U)
6363 #define DMA_SECCFGR_SEC8_Msk                (0x1UL << DMA_SECCFGR_SEC8_Pos)         /*!< 0x00000100 */
6364 #define DMA_SECCFGR_SEC8                    DMA_SECCFGR_SEC8_Msk                    /*!< Secure State of Channel 8  */
6365 #define DMA_SECCFGR_SEC9_Pos                (9U)
6366 #define DMA_SECCFGR_SEC9_Msk                (0x1UL << DMA_SECCFGR_SEC9_Pos)         /*!< 0x00000200 */
6367 #define DMA_SECCFGR_SEC9                    DMA_SECCFGR_SEC9_Msk                    /*!< Secure State of Channel 9  */
6368 #define DMA_SECCFGR_SEC10_Pos               (10U)
6369 #define DMA_SECCFGR_SEC10_Msk               (0x1UL << DMA_SECCFGR_SEC10_Pos)        /*!< 0x00000400 */
6370 #define DMA_SECCFGR_SEC10                   DMA_SECCFGR_SEC10_Msk                   /*!< Secure State of Channel 10 */
6371 #define DMA_SECCFGR_SEC11_Pos               (11U)
6372 #define DMA_SECCFGR_SEC11_Msk               (0x1UL << DMA_SECCFGR_SEC11_Pos)        /*!< 0x00000800 */
6373 #define DMA_SECCFGR_SEC11                   DMA_SECCFGR_SEC11_Msk                   /*!< Secure State of Channel 11 */
6374 #define DMA_SECCFGR_SEC12_Pos               (12U)
6375 #define DMA_SECCFGR_SEC12_Msk               (0x1UL << DMA_SECCFGR_SEC12_Pos)        /*!< 0x00001000 */
6376 #define DMA_SECCFGR_SEC12                   DMA_SECCFGR_SEC12_Msk                   /*!< Secure State of Channel 12 */
6377 #define DMA_SECCFGR_SEC13_Pos               (13U)
6378 #define DMA_SECCFGR_SEC13_Msk               (0x1UL << DMA_SECCFGR_SEC13_Pos)        /*!< 0x00002000 */
6379 #define DMA_SECCFGR_SEC13                   DMA_SECCFGR_SEC13_Msk                   /*!< Secure State of Channel 13 */
6380 #define DMA_SECCFGR_SEC14_Pos               (14U)
6381 #define DMA_SECCFGR_SEC14_Msk               (0x1UL << DMA_SECCFGR_SEC14_Pos)        /*!< 0x00004000 */
6382 #define DMA_SECCFGR_SEC14                   DMA_SECCFGR_SEC14_Msk                   /*!< Secure State of Channel 14 */
6383 #define DMA_SECCFGR_SEC15_Pos               (15U)
6384 #define DMA_SECCFGR_SEC15_Msk               (0x1UL << DMA_SECCFGR_SEC15_Pos)        /*!< 0x00008000 */
6385 #define DMA_SECCFGR_SEC15                   DMA_SECCFGR_SEC15_Msk                   /*!< Secure State of Channel 15 */
6386 
6387 /*******************  Bit definition for DMA_PRIVCFGR register  ****************/
6388 #define DMA_PRIVCFGR_PRIV0_Pos              (0U)
6389 #define DMA_PRIVCFGR_PRIV0_Msk              (0x1UL << DMA_PRIVCFGR_PRIV0_Pos)       /*!< 0x00000001 */
6390 #define DMA_PRIVCFGR_PRIV0                  DMA_PRIVCFGR_PRIV0_Msk                  /*!< Privileged State of Channel 0  */
6391 #define DMA_PRIVCFGR_PRIV1_Pos              (1U)
6392 #define DMA_PRIVCFGR_PRIV1_Msk              (0x1UL << DMA_PRIVCFGR_PRIV1_Pos)       /*!< 0x00000002 */
6393 #define DMA_PRIVCFGR_PRIV1                  DMA_PRIVCFGR_PRIV1_Msk                  /*!< Privileged State of Channel 1  */
6394 #define DMA_PRIVCFGR_PRIV2_Pos              (2U)
6395 #define DMA_PRIVCFGR_PRIV2_Msk              (0x1UL << DMA_PRIVCFGR_PRIV2_Pos)       /*!< 0x00000004 */
6396 #define DMA_PRIVCFGR_PRIV2                  DMA_PRIVCFGR_PRIV2_Msk                  /*!< Privileged State of Channel 2  */
6397 #define DMA_PRIVCFGR_PRIV3_Pos              (3U)
6398 #define DMA_PRIVCFGR_PRIV3_Msk              (0x1UL << DMA_PRIVCFGR_PRIV3_Pos)       /*!< 0x00000008 */
6399 #define DMA_PRIVCFGR_PRIV3                  DMA_PRIVCFGR_PRIV3_Msk                  /*!< Privileged State of Channel 3  */
6400 #define DMA_PRIVCFGR_PRIV4_Pos              (4U)
6401 #define DMA_PRIVCFGR_PRIV4_Msk              (0x1UL << DMA_PRIVCFGR_PRIV4_Pos)       /*!< 0x00000010 */
6402 #define DMA_PRIVCFGR_PRIV4                  DMA_PRIVCFGR_PRIV4_Msk                  /*!< Privileged State of Channel 4  */
6403 #define DMA_PRIVCFGR_PRIV5_Pos              (5U)
6404 #define DMA_PRIVCFGR_PRIV5_Msk              (0x1UL << DMA_PRIVCFGR_PRIV5_Pos)       /*!< 0x00000020 */
6405 #define DMA_PRIVCFGR_PRIV5                  DMA_PRIVCFGR_PRIV5_Msk                  /*!< Privileged State of Channel 5  */
6406 #define DMA_PRIVCFGR_PRIV6_Pos              (6U)
6407 #define DMA_PRIVCFGR_PRIV6_Msk              (0x1UL << DMA_PRIVCFGR_PRIV6_Pos)       /*!< 0x00000040 */
6408 #define DMA_PRIVCFGR_PRIV6                  DMA_PRIVCFGR_PRIV6_Msk                  /*!< Privileged State of Channel 6  */
6409 #define DMA_PRIVCFGR_PRIV7_Pos              (7U)
6410 #define DMA_PRIVCFGR_PRIV7_Msk              (0x1UL << DMA_PRIVCFGR_PRIV7_Pos)       /*!< 0x00000080 */
6411 #define DMA_PRIVCFGR_PRIV7                  DMA_PRIVCFGR_PRIV7_Msk                  /*!< Privileged State of Channel 7  */
6412 #define DMA_PRIVCFGR_PRIV8_Pos              (8U)
6413 #define DMA_PRIVCFGR_PRIV8_Msk              (0x1UL << DMA_PRIVCFGR_PRIV8_Pos)       /*!< 0x00000100 */
6414 #define DMA_PRIVCFGR_PRIV8                  DMA_PRIVCFGR_PRIV8_Msk                  /*!< Privileged State of Channel 8  */
6415 #define DMA_PRIVCFGR_PRIV9_Pos              (9U)
6416 #define DMA_PRIVCFGR_PRIV9_Msk              (0x1UL << DMA_PRIVCFGR_PRIV9_Pos)       /*!< 0x00000200 */
6417 #define DMA_PRIVCFGR_PRIV9                  DMA_PRIVCFGR_PRIV9_Msk                  /*!< Privileged State of Channel 9  */
6418 #define DMA_PRIVCFGR_PRIV10_Pos             (10U)
6419 #define DMA_PRIVCFGR_PRIV10_Msk             (0x1UL << DMA_PRIVCFGR_PRIV10_Pos)      /*!< 0x00000400 */
6420 #define DMA_PRIVCFGR_PRIV10                 DMA_PRIVCFGR_PRIV10_Msk                 /*!< Privileged State of Channel 10 */
6421 #define DMA_PRIVCFGR_PRIV11_Pos             (11U)
6422 #define DMA_PRIVCFGR_PRIV11_Msk             (0x1UL << DMA_PRIVCFGR_PRIV11_Pos)      /*!< 0x00000800 */
6423 #define DMA_PRIVCFGR_PRIV11                 DMA_PRIVCFGR_PRIV11_Msk                 /*!< Privileged State of Channel 11 */
6424 #define DMA_PRIVCFGR_PRIV12_Pos             (12U)
6425 #define DMA_PRIVCFGR_PRIV12_Msk             (0x1UL << DMA_PRIVCFGR_PRIV12_Pos)      /*!< 0x00001000 */
6426 #define DMA_PRIVCFGR_PRIV12                 DMA_PRIVCFGR_PRIV12_Msk                 /*!< Privileged State of Channel 12 */
6427 #define DMA_PRIVCFGR_PRIV13_Pos             (13U)
6428 #define DMA_PRIVCFGR_PRIV13_Msk             (0x1UL << DMA_PRIVCFGR_PRIV13_Pos)      /*!< 0x00002000 */
6429 #define DMA_PRIVCFGR_PRIV13                 DMA_PRIVCFGR_PRIV13_Msk                 /*!< Privileged State of Channel 13 */
6430 #define DMA_PRIVCFGR_PRIV14_Pos             (14U)
6431 #define DMA_PRIVCFGR_PRIV14_Msk             (0x1UL << DMA_PRIVCFGR_PRIV14_Pos)      /*!< 0x00004000 */
6432 #define DMA_PRIVCFGR_PRIV14                 DMA_PRIVCFGR_PRIV14_Msk                 /*!< Privileged State of Channel 14 */
6433 #define DMA_PRIVCFGR_PRIV15_Pos             (15U)
6434 #define DMA_PRIVCFGR_PRIV15_Msk             (0x1UL << DMA_PRIVCFGR_PRIV15_Pos)      /*!< 0x00008000 */
6435 #define DMA_PRIVCFGR_PRIV15                 DMA_PRIVCFGR_PRIV15_Msk                 /*!< Privileged State of Channel 15 */
6436 
6437 /*******************  Bit definition for DMA_RCFGLOCKR register  ****************/
6438 #define DMA_RCFGLOCKR_LOCK0_Pos              (0U)
6439 #define DMA_RCFGLOCKR_LOCK0_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK0_Pos)       /*!< 0x00000001 */
6440 #define DMA_RCFGLOCKR_LOCK0                  DMA_RCFGLOCKR_LOCK0_Msk                  /*!< Lock the configuration of Channel 0  */
6441 #define DMA_RCFGLOCKR_LOCK1_Pos              (1U)
6442 #define DMA_RCFGLOCKR_LOCK1_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK1_Pos)       /*!< 0x00000002 */
6443 #define DMA_RCFGLOCKR_LOCK1                  DMA_RCFGLOCKR_LOCK1_Msk                  /*!< Lock the configuration of Channel 1  */
6444 #define DMA_RCFGLOCKR_LOCK2_Pos              (2U)
6445 #define DMA_RCFGLOCKR_LOCK2_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK2_Pos)       /*!< 0x00000004 */
6446 #define DMA_RCFGLOCKR_LOCK2                  DMA_RCFGLOCKR_LOCK2_Msk                  /*!< Lock the configuration of Channel 2  */
6447 #define DMA_RCFGLOCKR_LOCK3_Pos              (3U)
6448 #define DMA_RCFGLOCKR_LOCK3_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK3_Pos)       /*!< 0x00000008 */
6449 #define DMA_RCFGLOCKR_LOCK3                  DMA_RCFGLOCKR_LOCK3_Msk                  /*!< Lock the configuration of Channel 3  */
6450 #define DMA_RCFGLOCKR_LOCK4_Pos              (4U)
6451 #define DMA_RCFGLOCKR_LOCK4_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK4_Pos)       /*!< 0x00000010 */
6452 #define DMA_RCFGLOCKR_LOCK4                  DMA_RCFGLOCKR_LOCK4_Msk                  /*!< Lock the configuration of Channel 4  */
6453 #define DMA_RCFGLOCKR_LOCK5_Pos              (5U)
6454 #define DMA_RCFGLOCKR_LOCK5_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK5_Pos)       /*!< 0x00000020 */
6455 #define DMA_RCFGLOCKR_LOCK5                  DMA_RCFGLOCKR_LOCK5_Msk                  /*!< Lock the configuration of Channel 5  */
6456 #define DMA_RCFGLOCKR_LOCK6_Pos              (6U)
6457 #define DMA_RCFGLOCKR_LOCK6_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK6_Pos)       /*!< 0x00000040 */
6458 #define DMA_RCFGLOCKR_LOCK6                  DMA_RCFGLOCKR_LOCK6_Msk                  /*!< Lock the configuration of Channel 6  */
6459 #define DMA_RCFGLOCKR_LOCK7_Pos              (7U)
6460 #define DMA_RCFGLOCKR_LOCK7_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK7_Pos)       /*!< 0x00000080 */
6461 #define DMA_RCFGLOCKR_LOCK7                  DMA_RCFGLOCKR_LOCK7_Msk                  /*!< Lock the configuration of Channel 7  */
6462 #define DMA_RCFGLOCKR_LOCK8_Pos              (8U)
6463 #define DMA_RCFGLOCKR_LOCK8_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK8_Pos)       /*!< 0x00000100 */
6464 #define DMA_RCFGLOCKR_LOCK8                  DMA_RCFGLOCKR_LOCK8_Msk                  /*!< Lock the configuration of Channel 8  */
6465 #define DMA_RCFGLOCKR_LOCK9_Pos              (9U)
6466 #define DMA_RCFGLOCKR_LOCK9_Msk              (0x1UL << DMA_RCFGLOCKR_LOCK9_Pos)       /*!< 0x00000200 */
6467 #define DMA_RCFGLOCKR_LOCK9                  DMA_RCFGLOCKR_LOCK9_Msk                  /*!< Lock the configuration of Channel 9  */
6468 #define DMA_RCFGLOCKR_LOCK10_Pos             (10U)
6469 #define DMA_RCFGLOCKR_LOCK10_Msk             (0x1UL << DMA_RCFGLOCKR_LOCK10_Pos)      /*!< 0x00000400 */
6470 #define DMA_RCFGLOCKR_LOCK10                 DMA_RCFGLOCKR_LOCK10_Msk                 /*!< Lock the configuration of Channel 10 */
6471 #define DMA_RCFGLOCKR_LOCK11_Pos             (11U)
6472 #define DMA_RCFGLOCKR_LOCK11_Msk             (0x1UL << DMA_RCFGLOCKR_LOCK11_Pos)      /*!< 0x00000800 */
6473 #define DMA_RCFGLOCKR_LOCK11                 DMA_RCFGLOCKR_LOCK11_Msk                 /*!< Lock the configuration of Channel 11 */
6474 #define DMA_RCFGLOCKR_LOCK12_Pos             (12U)
6475 #define DMA_RCFGLOCKR_LOCK12_Msk             (0x1UL << DMA_RCFGLOCKR_LOCK12_Pos)      /*!< 0x00001000 */
6476 #define DMA_RCFGLOCKR_LOCK12                 DMA_RCFGLOCKR_LOCK12_Msk                 /*!< Lock the configuration of Channel 12 */
6477 #define DMA_RCFGLOCKR_LOCK13_Pos             (13U)
6478 #define DMA_RCFGLOCKR_LOCK13_Msk             (0x1UL << DMA_RCFGLOCKR_LOCK13_Pos)      /*!< 0x00002000 */
6479 #define DMA_RCFGLOCKR_LOCK13                 DMA_RCFGLOCKR_LOCK13_Msk                 /*!< Lock the configuration of Channel 13 */
6480 #define DMA_RCFGLOCKR_LOCK14_Pos             (14U)
6481 #define DMA_RCFGLOCKR_LOCK14_Msk             (0x1UL << DMA_RCFGLOCKR_LOCK14_Pos)      /*!< 0x00004000 */
6482 #define DMA_RCFGLOCKR_LOCK14                 DMA_RCFGLOCKR_LOCK14_Msk                 /*!< Lock the configuration of Channel 14 */
6483 #define DMA_RCFGLOCKR_LOCK15_Pos             (15U)
6484 #define DMA_RCFGLOCKR_LOCK15_Msk             (0x1UL << DMA_RCFGLOCKR_LOCK15_Pos)      /*!< 0x00008000 */
6485 #define DMA_RCFGLOCKR_LOCK15                 DMA_RCFGLOCKR_LOCK15_Msk                 /*!< Lock the configuration of Channel 15 */
6486 
6487 /*******************  Bit definition for DMA_MISR register  ****************/
6488 #define DMA_MISR_MIS0_Pos                   (0U)
6489 #define DMA_MISR_MIS0_Msk                   (0x1UL << DMA_MISR_MIS0_Pos)            /*!< 0x00000001 */
6490 #define DMA_MISR_MIS0                       DMA_MISR_MIS0_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 0  */
6491 #define DMA_MISR_MIS1_Pos                   (1U)
6492 #define DMA_MISR_MIS1_Msk                   (0x1UL << DMA_MISR_MIS1_Pos)            /*!< 0x00000002 */
6493 #define DMA_MISR_MIS1                       DMA_MISR_MIS1_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 1  */
6494 #define DMA_MISR_MIS2_Pos                   (2U)
6495 #define DMA_MISR_MIS2_Msk                   (0x1UL << DMA_MISR_MIS2_Pos)            /*!< 0x00000004 */
6496 #define DMA_MISR_MIS2                       DMA_MISR_MIS2_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 2  */
6497 #define DMA_MISR_MIS3_Pos                   (3U)
6498 #define DMA_MISR_MIS3_Msk                   (0x1UL << DMA_MISR_MIS3_Pos)            /*!< 0x00000008 */
6499 #define DMA_MISR_MIS3                       DMA_MISR_MIS3_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 3  */
6500 #define DMA_MISR_MIS4_Pos                   (4U)
6501 #define DMA_MISR_MIS4_Msk                   (0x1UL << DMA_MISR_MIS4_Pos)            /*!< 0x00000010 */
6502 #define DMA_MISR_MIS4                       DMA_MISR_MIS4_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 4  */
6503 #define DMA_MISR_MIS5_Pos                   (5U)
6504 #define DMA_MISR_MIS5_Msk                   (0x1UL << DMA_MISR_MIS5_Pos)            /*!< 0x00000020 */
6505 #define DMA_MISR_MIS5                       DMA_MISR_MIS5_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 5  */
6506 #define DMA_MISR_MIS6_Pos                   (6U)
6507 #define DMA_MISR_MIS6_Msk                   (0x1UL << DMA_MISR_MIS6_Pos)            /*!< 0x00000040 */
6508 #define DMA_MISR_MIS6                       DMA_MISR_MIS6_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 6  */
6509 #define DMA_MISR_MIS7_Pos                   (7U)
6510 #define DMA_MISR_MIS7_Msk                   (0x1UL << DMA_MISR_MIS7_Pos)            /*!< 0x00000080 */
6511 #define DMA_MISR_MIS7                       DMA_MISR_MIS7_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 7  */
6512 #define DMA_MISR_MIS8_Pos                   (8U)
6513 #define DMA_MISR_MIS8_Msk                   (0x1UL << DMA_MISR_MIS8_Pos)            /*!< 0x00000100 */
6514 #define DMA_MISR_MIS8                       DMA_MISR_MIS8_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 8  */
6515 #define DMA_MISR_MIS9_Pos                   (9U)
6516 #define DMA_MISR_MIS9_Msk                   (0x1UL << DMA_MISR_MIS9_Pos)            /*!< 0x00000200 */
6517 #define DMA_MISR_MIS9                       DMA_MISR_MIS9_Msk                       /*!< Masked Interrupt State of Non-Secure Channel 9  */
6518 #define DMA_MISR_MIS10_Pos                  (10U)
6519 #define DMA_MISR_MIS10_Msk                  (0x1UL << DMA_MISR_MIS10_Pos)           /*!< 0x00000400 */
6520 #define DMA_MISR_MIS10                      DMA_MISR_MIS10_Msk                      /*!< Masked Interrupt State of Non-Secure Channel 10 */
6521 #define DMA_MISR_MIS11_Pos                  (11U)
6522 #define DMA_MISR_MIS11_Msk                  (0x1UL << DMA_MISR_MIS11_Pos)           /*!< 0x00000800 */
6523 #define DMA_MISR_MIS11                      DMA_MISR_MIS11_Msk                      /*!< Masked Interrupt State of Non-Secure Channel 11 */
6524 #define DMA_MISR_MIS12_Pos                  (12U)
6525 #define DMA_MISR_MIS12_Msk                  (0x1UL << DMA_MISR_MIS12_Pos)           /*!< 0x00001000 */
6526 #define DMA_MISR_MIS12                      DMA_MISR_MIS12_Msk                      /*!< Masked Interrupt State of Non-Secure Channel 12 */
6527 #define DMA_MISR_MIS13_Pos                  (13U)
6528 #define DMA_MISR_MIS13_Msk                  (0x1UL << DMA_MISR_MIS13_Pos)           /*!< 0x00002000 */
6529 #define DMA_MISR_MIS13                      DMA_MISR_MIS13_Msk                      /*!< Masked Interrupt State of Non-Secure Channel 13 */
6530 #define DMA_MISR_MIS14_Pos                  (14U)
6531 #define DMA_MISR_MIS14_Msk                  (0x1UL << DMA_MISR_MIS14_Pos)           /*!< 0x00004000 */
6532 #define DMA_MISR_MIS14                      DMA_MISR_MIS14_Msk                      /*!< Masked Interrupt State of Non-Secure Channel 14 */
6533 #define DMA_MISR_MIS15_Pos                  (15U)
6534 #define DMA_MISR_MIS15_Msk                  (0x1UL << DMA_MISR_MIS15_Pos)           /*!< 0x00008000 */
6535 #define DMA_MISR_MIS15                      DMA_MISR_MIS14_Msk                      /*!< Masked Interrupt State of Non-Secure Channel 15 */
6536 
6537 /*******************  Bit definition for DMA_SMISR register  ****************/
6538 #define DMA_SMISR_MIS0_Pos                  (0U)
6539 #define DMA_SMISR_MIS0_Msk                  (0x1UL << DMA_SMISR_MIS0_Pos)           /*!< 0x00000001 */
6540 #define DMA_SMISR_MIS0                      DMA_SMISR_MIS0_Msk                      /*!< Masked Interrupt State of Secure Channel 0  */
6541 #define DMA_SMISR_MIS1_Pos                  (1U)
6542 #define DMA_SMISR_MIS1_Msk                  (0x1UL << DMA_SMISR_MIS1_Pos)           /*!< 0x00000002 */
6543 #define DMA_SMISR_MIS1                      DMA_SMISR_MIS1_Msk                      /*!< Masked Interrupt State of Secure Channel 1  */
6544 #define DMA_SMISR_MIS2_Pos                  (2U)
6545 #define DMA_SMISR_MIS2_Msk                  (0x1UL << DMA_SMISR_MIS2_Pos)           /*!< 0x00000004 */
6546 #define DMA_SMISR_MIS2                      DMA_SMISR_MIS2_Msk                      /*!< Masked Interrupt State of Secure Channel 2  */
6547 #define DMA_SMISR_MIS3_Pos                  (3U)
6548 #define DMA_SMISR_MIS3_Msk                  (0x1UL << DMA_SMISR_MIS3_Pos)           /*!< 0x00000008 */
6549 #define DMA_SMISR_MIS3                      DMA_SMISR_MIS3_Msk                      /*!< Masked Interrupt State of Secure Channel 3  */
6550 #define DMA_SMISR_MIS4_Pos                  (4U)
6551 #define DMA_SMISR_MIS4_Msk                  (0x1UL << DMA_SMISR_MIS4_Pos)           /*!< 0x00000010 */
6552 #define DMA_SMISR_MIS4                      DMA_SMISR_MIS4_Msk                      /*!< Masked Interrupt State of Secure Channel 4  */
6553 #define DMA_SMISR_MIS5_Pos                  (5U)
6554 #define DMA_SMISR_MIS5_Msk                  (0x1UL << DMA_SMISR_MIS5_Pos)           /*!< 0x00000020 */
6555 #define DMA_SMISR_MIS5                      DMA_SMISR_MIS5_Msk                      /*!< Masked Interrupt State of Secure Channel 5  */
6556 #define DMA_SMISR_MIS6_Pos                  (6U)
6557 #define DMA_SMISR_MIS6_Msk                  (0x1UL << DMA_SMISR_MIS6_Pos)           /*!< 0x00000040 */
6558 #define DMA_SMISR_MIS6                      DMA_SMISR_MIS6_Msk                      /*!< Masked Interrupt State of Secure Channel 6  */
6559 #define DMA_SMISR_MIS7_Pos                  (7U)
6560 #define DMA_SMISR_MIS7_Msk                  (0x1UL << DMA_SMISR_MIS7_Pos)           /*!< 0x00000080 */
6561 #define DMA_SMISR_MIS7                      DMA_SMISR_MIS7_Msk                      /*!< Masked Interrupt State of Secure Channel 7  */
6562 #define DMA_SMISR_MIS8_Pos                  (8U)
6563 #define DMA_SMISR_MIS8_Msk                  (0x1UL << DMA_SMISR_MIS8_Pos)           /*!< 0x00000100 */
6564 #define DMA_SMISR_MIS8                      DMA_SMISR_MIS8_Msk                      /*!< Masked Interrupt State of Secure Channel 8  */
6565 #define DMA_SMISR_MIS9_Pos                  (9U)
6566 #define DMA_SMISR_MIS9_Msk                  (0x1UL << DMA_SMISR_MIS9_Pos)           /*!< 0x00000200 */
6567 #define DMA_SMISR_MIS9                      DMA_SMISR_MIS9_Msk                      /*!< Masked Interrupt State of Secure Channel 9  */
6568 #define DMA_SMISR_MIS10_Pos                 (10U)
6569 #define DMA_SMISR_MIS10_Msk                 (0x1UL << DMA_SMISR_MIS10_Pos)          /*!< 0x00000400 */
6570 #define DMA_SMISR_MIS10                     DMA_SMISR_MIS10_Msk                     /*!< Masked Interrupt State of Secure Channel 10 */
6571 #define DMA_SMISR_MIS11_Pos                 (11U)
6572 #define DMA_SMISR_MIS11_Msk                 (0x1UL << DMA_SMISR_MIS11_Pos)          /*!< 0x00000800 */
6573 #define DMA_SMISR_MIS11                     DMA_SMISR_MIS11_Msk                     /*!< Masked Interrupt State of Secure Channel 11 */
6574 #define DMA_SMISR_MIS12_Pos                 (12U)
6575 #define DMA_SMISR_MIS12_Msk                 (0x1UL << DMA_SMISR_MIS12_Pos)          /*!< 0x00001000 */
6576 #define DMA_SMISR_MIS12                     DMA_SMISR_MIS12_Msk                     /*!< Masked Interrupt State of Secure Channel 12 */
6577 #define DMA_SMISR_MIS13_Pos                 (13U)
6578 #define DMA_SMISR_MIS13_Msk                 (0x1UL << DMA_SMISR_MIS13_Pos)          /*!< 0x00002000 */
6579 #define DMA_SMISR_MIS13                     DMA_SMISR_MIS13_Msk                     /*!< Masked Interrupt State of Secure Channel 13 */
6580 #define DMA_SMISR_MIS14_Pos                 (14U)
6581 #define DMA_SMISR_MIS14_Msk                 (0x1UL << DMA_SMISR_MIS14_Pos)          /*!< 0x00004000 */
6582 #define DMA_SMISR_MIS14                     DMA_SMISR_MIS14_Msk                     /*!< Masked Interrupt State of Secure Channel 14 */
6583 #define DMA_SMISR_MIS15_Pos                 (15U)
6584 #define DMA_SMISR_MIS15_Msk                 (0x1UL << DMA_SMISR_MIS15_Pos)          /*!< 0x00008000 */
6585 #define DMA_SMISR_MIS15                     DMA_SMISR_MIS14_Msk                     /*!< Masked Interrupt State of Secure Channel 15 */
6586 
6587 /*******************  Bit definition for DMA_CLBAR register  ****************/
6588 #define DMA_CLBAR_LBA_Pos                   (16U)
6589 #define DMA_CLBAR_LBA_Msk                   (0xFFFFUL << DMA_CLBAR_LBA_Pos)         /*!< 0xFFFF0000 */
6590 #define DMA_CLBAR_LBA                       DMA_CLBAR_LBA_Msk                       /*!< Linked-list Base Address of DMA channel x */
6591 
6592 /*******************  Bit definition for DMA_CFCR register  *******************/
6593 #define DMA_CFCR_TCF_Pos                    (8U)
6594 #define DMA_CFCR_TCF_Msk                    (0x1UL << DMA_CFCR_TCF_Pos)             /*!< 0x00000100 */
6595 #define DMA_CFCR_TCF                        DMA_CFCR_TCF_Msk                        /*!< Transfer complete flag clear             */
6596 #define DMA_CFCR_HTF_Pos                    (9U)
6597 #define DMA_CFCR_HTF_Msk                    (0x1UL << DMA_CFCR_HTF_Pos)             /*!< 0x00000200 */
6598 #define DMA_CFCR_HTF                        DMA_CFCR_HTF_Msk                        /*!< Half transfer complete flag clear        */
6599 #define DMA_CFCR_DTEF_Pos                   (10U)
6600 #define DMA_CFCR_DTEF_Msk                   (0x1UL << DMA_CFCR_DTEF_Pos)            /*!< 0x00000400 */
6601 #define DMA_CFCR_DTEF                       DMA_CFCR_DTEF_Msk                       /*!< Data transfer error flag clear           */
6602 #define DMA_CFCR_ULEF_Pos                   (11U)
6603 #define DMA_CFCR_ULEF_Msk                   (0x1UL << DMA_CFCR_ULEF_Pos)            /*!< 0x00000800 */
6604 #define DMA_CFCR_ULEF                       DMA_CFCR_ULEF_Msk                       /*!< Update linked-list item error flag clear */
6605 #define DMA_CFCR_USEF_Pos                   (12U)
6606 #define DMA_CFCR_USEF_Msk                   (0x1UL << DMA_CFCR_USEF_Pos)            /*!< 0x00001000 */
6607 #define DMA_CFCR_USEF                       DMA_CFCR_USEF_Msk                       /*!< User setting error flag clear            */
6608 #define DMA_CFCR_SUSPF_Pos                  (13U)
6609 #define DMA_CFCR_SUSPF_Msk                  (0x1UL << DMA_CFCR_SUSPF_Pos)           /*!< 0x00002000 */
6610 #define DMA_CFCR_SUSPF                      DMA_CFCR_SUSPF_Msk                      /*!< Completed suspension flag clear          */
6611 #define DMA_CFCR_TOF_Pos                    (14U)
6612 #define DMA_CFCR_TOF_Msk                    (0x1UL << DMA_CFCR_TOF_Pos)             /*!< 0x00004000 */
6613 #define DMA_CFCR_TOF                        DMA_CFCR_TOF_Msk                        /*!< Trigger overrun flag clear               */
6614 
6615 /*******************  Bit definition for DMA_CSR register  *******************/
6616 #define DMA_CSR_IDLEF_Pos                   (0U)
6617 #define DMA_CSR_IDLEF_Msk                   (0x1UL << DMA_CSR_IDLEF_Pos)            /*!< 0x00000001 */
6618 #define DMA_CSR_IDLEF                       DMA_CSR_IDLEF_Msk                       /*!< Idle flag                          */
6619 #define DMA_CSR_TCF_Pos                     (8U)
6620 #define DMA_CSR_TCF_Msk                     (0x1UL << DMA_CSR_TCF_Pos)              /*!< 0x00000100 */
6621 #define DMA_CSR_TCF                         DMA_CSR_TCF_Msk                         /*!< Transfer complete flag             */
6622 #define DMA_CSR_HTF_Pos                     (9U)
6623 #define DMA_CSR_HTF_Msk                     (0x1UL << DMA_CSR_HTF_Pos)              /*!< 0x00000200 */
6624 #define DMA_CSR_HTF                         DMA_CSR_HTF_Msk                         /*!< Half transfer complete flag        */
6625 #define DMA_CSR_DTEF_Pos                    (10U)
6626 #define DMA_CSR_DTEF_Msk                    (0x1UL << DMA_CSR_DTEF_Pos)             /*!< 0x00000400 */
6627 #define DMA_CSR_DTEF                        DMA_CSR_DTEF_Msk                        /*!< Data transfer error flag           */
6628 #define DMA_CSR_ULEF_Pos                    (11U)
6629 #define DMA_CSR_ULEF_Msk                    (0x1UL << DMA_CSR_ULEF_Pos)             /*!< 0x00000800 */
6630 #define DMA_CSR_ULEF                        DMA_CSR_ULEF_Msk                        /*!< Update linked-list item error flag */
6631 #define DMA_CSR_USEF_Pos                    (12U)
6632 #define DMA_CSR_USEF_Msk                    (0x1UL << DMA_CSR_USEF_Pos)             /*!< 0x00001000 */
6633 #define DMA_CSR_USEF                        DMA_CSR_USEF_Msk                        /*!< User setting error flag            */
6634 #define DMA_CSR_SUSPF_Pos                   (13U)
6635 #define DMA_CSR_SUSPF_Msk                   (0x1UL << DMA_CSR_SUSPF_Pos)            /*!< 0x00002000 */
6636 #define DMA_CSR_SUSPF                       DMA_CSR_SUSPF_Msk                       /*!< User setting error flag            */
6637 #define DMA_CSR_TOF_Pos                     (14U)
6638 #define DMA_CSR_TOF_Msk                     (0x1UL << DMA_CSR_TOF_Pos)              /*!< 0x00004000 */
6639 #define DMA_CSR_TOF                         DMA_CSR_TOF_Msk                         /*!< Trigger overrun flag               */
6640 #define DMA_CSR_FIFOL_Pos                   (16U)
6641 #define DMA_CSR_FIFOL_Msk                   (0xFFUL << DMA_CSR_FIFOL_Pos)           /*!< 0x00FF0000 */
6642 #define DMA_CSR_FIFOL                       DMA_CSR_FIFOL_Msk                       /*!< Monitored FIFO level in bytes      */
6643 
6644 /*******************  Bit definition for DMA_CCR register  ********************/
6645 #define DMA_CCR_EN_Pos                      (0U)
6646 #define DMA_CCR_EN_Msk                      (0x1UL << DMA_CCR_EN_Pos)               /*!< 0x00000001 */
6647 #define DMA_CCR_EN                          DMA_CCR_EN_Msk                          /*!< Channel enable                                 */
6648 #define DMA_CCR_RESET_Pos                   (1U)
6649 #define DMA_CCR_RESET_Msk                   (0x1UL << DMA_CCR_RESET_Pos)            /*!< 0x00000002 */
6650 #define DMA_CCR_RESET                       DMA_CCR_RESET_Msk                       /*!< Channel reset                                  */
6651 #define DMA_CCR_SUSP_Pos                    (2U)
6652 #define DMA_CCR_SUSP_Msk                    (0x1UL << DMA_CCR_SUSP_Pos)             /*!< 0x00000004 */
6653 #define DMA_CCR_SUSP                        DMA_CCR_SUSP_Msk                        /*!< Channel suspend                                */
6654 #define DMA_CCR_TCIE_Pos                    (8U)
6655 #define DMA_CCR_TCIE_Msk                    (0x1UL << DMA_CCR_TCIE_Pos)             /*!< 0x00000100 */
6656 #define DMA_CCR_TCIE                        DMA_CCR_TCIE_Msk                        /*!< Transfer complete interrupt enable             */
6657 #define DMA_CCR_HTIE_Pos                    (9U)
6658 #define DMA_CCR_HTIE_Msk                    (0x1UL << DMA_CCR_HTIE_Pos)             /*!< 0x00000200 */
6659 #define DMA_CCR_HTIE                        DMA_CCR_HTIE_Msk                        /*!< Half transfer complete interrupt enable        */
6660 #define DMA_CCR_DTEIE_Pos                   (10U)
6661 #define DMA_CCR_DTEIE_Msk                   (0x1UL << DMA_CCR_DTEIE_Pos)            /*!< 0x00000400 */
6662 #define DMA_CCR_DTEIE                       DMA_CCR_DTEIE_Msk                       /*!< Data transfer error interrupt enable           */
6663 #define DMA_CCR_ULEIE_Pos                   (11U)
6664 #define DMA_CCR_ULEIE_Msk                   (0x1UL << DMA_CCR_ULEIE_Pos)            /*!< 0x00000800 */
6665 #define DMA_CCR_ULEIE                       DMA_CCR_ULEIE_Msk                       /*!< Update linked-list item error interrupt enable */
6666 #define DMA_CCR_USEIE_Pos                   (12U)
6667 #define DMA_CCR_USEIE_Msk                   (0x1UL << DMA_CCR_USEIE_Pos)            /*!< 0x00001000 */
6668 #define DMA_CCR_USEIE                       DMA_CCR_USEIE_Msk                       /*!< User setting error interrupt enable            */
6669 #define DMA_CCR_SUSPIE_Pos                  (13U)
6670 #define DMA_CCR_SUSPIE_Msk                  (0x1UL << DMA_CCR_SUSPIE_Pos)           /*!< 0x00002000 */
6671 #define DMA_CCR_SUSPIE                      DMA_CCR_SUSPIE_Msk                      /*!< Completed suspension interrupt enable          */
6672 #define DMA_CCR_TOIE_Pos                    (14U)
6673 #define DMA_CCR_TOIE_Msk                    (0x1UL << DMA_CCR_TOIE_Pos)             /*!< 0x00004000 */
6674 #define DMA_CCR_TOIE                        DMA_CCR_TOIE_Msk                        /*!< Trigger overrun interrupt enable               */
6675 #define DMA_CCR_LSM_Pos                     (16U)
6676 #define DMA_CCR_LSM_Msk                     (0x1UL << DMA_CCR_LSM_Pos)              /*!< 0x00010000 */
6677 #define DMA_CCR_LSM                         DMA_CCR_LSM_Msk                         /*!< Link step mode                                 */
6678 #define DMA_CCR_LAP_Pos                     (17U)
6679 #define DMA_CCR_LAP_Msk                     (0x1UL << DMA_CCR_LAP_Pos)              /*!< 0x00020000 */
6680 #define DMA_CCR_LAP                         DMA_CCR_LAP_Msk                         /*!< Linked-list allocated port                     */
6681 #define DMA_CCR_PRIO_Pos                    (22U)
6682 #define DMA_CCR_PRIO_Msk                    (0x3UL << DMA_CCR_PRIO_Pos)             /*!< 0x00C00000 */
6683 #define DMA_CCR_PRIO                        DMA_CCR_PRIO_Msk                        /*!< Priority level                                 */
6684 #define DMA_CCR_PRIO_0                      (0x1UL << DMA_CCR_PRIO_Pos)             /*!< 0x00400000 */
6685 #define DMA_CCR_PRIO_1                      (0x2UL << DMA_CCR_PRIO_Pos)             /*!< 0x00800000 */
6686 
6687 /*******************  Bit definition for DMA_CTR1 register  *******************/
6688 #define DMA_CTR1_SDW_LOG2_Pos               (0U)
6689 #define DMA_CTR1_SDW_LOG2_Msk               (0x3UL << DMA_CTR1_SDW_LOG2_Pos)        /*!< 0x00000003 */
6690 #define DMA_CTR1_SDW_LOG2                   DMA_CTR1_SDW_LOG2_Msk                   /*!< Binary logarithm of the source data width of a burst                    */
6691 #define DMA_CTR1_SDW_LOG2_0                 (0x1UL << DMA_CTR1_SDW_LOG2_Pos)        /*!< Bit 0 */
6692 #define DMA_CTR1_SDW_LOG2_1                 (0x2UL << DMA_CTR1_SDW_LOG2_Pos)        /*!< Bit 1 */
6693 #define DMA_CTR1_SINC_Pos                   (3U)
6694 #define DMA_CTR1_SINC_Msk                   (0x1UL << DMA_CTR1_SINC_Pos)            /*!< 0x00000008 */
6695 #define DMA_CTR1_SINC                       DMA_CTR1_SINC_Msk                       /*!< Source incrementing burst                                               */
6696 #define DMA_CTR1_SBL_1_Pos                  (4U)
6697 #define DMA_CTR1_SBL_1_Msk                  (0x3FUL << DMA_CTR1_SBL_1_Pos)          /*!< 0x000003F0 */
6698 #define DMA_CTR1_SBL_1                      DMA_CTR1_SBL_1_Msk                      /*!< Source burst length minus 1                                             */
6699 #define DMA_CTR1_PAM_Pos                    (11U)
6700 #define DMA_CTR1_PAM_Msk                    (0x3UL << DMA_CTR1_PAM_Pos)             /*!< 0x0001800 */
6701 #define DMA_CTR1_PAM                        DMA_CTR1_PAM_Msk                        /*!< Padding / alignment mode                                                */
6702 #define DMA_CTR1_PAM_0                      (0x1UL << DMA_CTR1_PAM_Pos)             /*!< Bit 0 */
6703 #define DMA_CTR1_PAM_1                      (0x2UL << DMA_CTR1_PAM_Pos)             /*!< Bit 1 */
6704 #define DMA_CTR1_SBX_Pos                    (13U)
6705 #define DMA_CTR1_SBX_Msk                    (0x1UL << DMA_CTR1_SBX_Pos)             /*!< 0x00002000 */
6706 #define DMA_CTR1_SBX                        DMA_CTR1_SBX_Msk                        /*!< Source byte exchange within the unaligned half-word of each source word */
6707 #define DMA_CTR1_SAP_Pos                    (14U)
6708 #define DMA_CTR1_SAP_Msk                    (0x1UL << DMA_CTR1_SAP_Pos)             /*!< 0x00004000 */
6709 #define DMA_CTR1_SAP                        DMA_CTR1_SAP_Msk                        /*!< Source allocated port                                                   */
6710 #define DMA_CTR1_SSEC_Pos                   (15U)
6711 #define DMA_CTR1_SSEC_Msk                   (0x1UL << DMA_CTR1_SSEC_Pos)            /*!< 0x00008000 */
6712 #define DMA_CTR1_SSEC                       DMA_CTR1_SSEC_Msk                       /*!< Security attribute of the DMA transfer from the source                  */
6713 #define DMA_CTR1_DDW_LOG2_Pos               (16U)
6714 #define DMA_CTR1_DDW_LOG2_Msk               (0x3UL << DMA_CTR1_DDW_LOG2_Pos)        /*!< 0x00030000 */
6715 #define DMA_CTR1_DDW_LOG2                   DMA_CTR1_DDW_LOG2_Msk                   /*!< Binary logarithm of the destination data width of a burst               */
6716 #define DMA_CTR1_DDW_LOG2_0                 (0x1UL << DMA_CTR1_DDW_LOG2_Pos)        /*!< Bit 0 */
6717 #define DMA_CTR1_DDW_LOG2_1                 (0x2UL << DMA_CTR1_DDW_LOG2_Pos)        /*!< Bit 1 */
6718 #define DMA_CTR1_DINC_Pos                   (19U)
6719 #define DMA_CTR1_DINC_Msk                   (0x1UL << DMA_CTR1_DINC_Pos)            /*!< 0x00080000 */
6720 #define DMA_CTR1_DINC                       DMA_CTR1_DINC_Msk                       /*!< Destination incrementing burst                                          */
6721 #define DMA_CTR1_DBL_1_Pos                  (20U)
6722 #define DMA_CTR1_DBL_1_Msk                  (0x3FUL << DMA_CTR1_DBL_1_Pos)          /*!< 0x03F00000 */
6723 #define DMA_CTR1_DBL_1                      DMA_CTR1_DBL_1_Msk                      /*!< Destination burst length minus 1                                        */
6724 #define DMA_CTR1_DBX_Pos                    (26U)
6725 #define DMA_CTR1_DBX_Msk                    (0x1UL << DMA_CTR1_DBX_Pos)             /*!< 0x04000000 */
6726 #define DMA_CTR1_DBX                        DMA_CTR1_DBX_Msk                        /*!< Destination byte exchange                                               */
6727 #define DMA_CTR1_DHX_Pos                    (27U)
6728 #define DMA_CTR1_DHX_Msk                    (0x1UL << DMA_CTR1_DHX_Pos)             /*!< 0x08000000 */
6729 #define DMA_CTR1_DHX                        DMA_CTR1_DHX_Msk                        /*!< Destination half-word exchange                                          */
6730 #define DMA_CTR1_DAP_Pos                    (30U)
6731 #define DMA_CTR1_DAP_Msk                    (0x1UL << DMA_CTR1_DAP_Pos)             /*!< 0x40000000 */
6732 #define DMA_CTR1_DAP                        DMA_CTR1_DAP_Msk                        /*!< Destination allocated port                                              */
6733 #define DMA_CTR1_DSEC_Pos                   (31U)
6734 #define DMA_CTR1_DSEC_Msk                   (0x1UL << DMA_CTR1_DSEC_Pos)            /*!< 0x80000000 */
6735 #define DMA_CTR1_DSEC                       DMA_CTR1_DSEC_Msk                       /*!< Security attribute of the DMA transfer from the destination             */
6736 
6737 /******************  Bit definition for DMA_CTR2 register  *******************/
6738 #define DMA_CTR2_REQSEL_Pos                 (0U)
6739 #define DMA_CTR2_REQSEL_Msk                 (0x7FUL << DMA_CTR2_REQSEL_Pos)         /*!< 0x0000007F */
6740 #define DMA_CTR2_REQSEL                     DMA_CTR2_REQSEL_Msk                     /*!< DMA hardware request selection */
6741 #define DMA_CTR2_SWREQ_Pos                  (9U)
6742 #define DMA_CTR2_SWREQ_Msk                  (0x1UL << DMA_CTR2_SWREQ_Pos)           /*!< 0x00000200 */
6743 #define DMA_CTR2_SWREQ                      DMA_CTR2_SWREQ_Msk                      /*!< Software request               */
6744 #define DMA_CTR2_DREQ_Pos                   (10U)
6745 #define DMA_CTR2_DREQ_Msk                   (0x1UL << DMA_CTR2_DREQ_Pos)            /*!< 0x00000400 */
6746 #define DMA_CTR2_DREQ                       DMA_CTR2_DREQ_Msk                       /*!< Destination hardware request   */
6747 #define DMA_CTR2_BREQ_Pos                   (11U)
6748 #define DMA_CTR2_BREQ_Msk                   (0x1UL << DMA_CTR2_BREQ_Pos)            /*!< 0x00000800 */
6749 #define DMA_CTR2_BREQ                       DMA_CTR2_BREQ_Msk                       /*!< Block hardware request         */
6750 #define DMA_CTR2_TRIGM_Pos                  (14U)
6751 #define DMA_CTR2_TRIGM_Msk                  (0x3UL << DMA_CTR2_TRIGM_Pos)           /*!< 0x0000C000 */
6752 #define DMA_CTR2_TRIGM                      DMA_CTR2_TRIGM_Msk                      /*!< Trigger mode                   */
6753 #define DMA_CTR2_TRIGM_0                    (0x1UL << DMA_CTR2_TRIGM_Pos)           /*!< Bit 0 */
6754 #define DMA_CTR2_TRIGM_1                    (0x2UL << DMA_CTR2_TRIGM_Pos)           /*!< Bit 1 */
6755 #define DMA_CTR2_TRIGSEL_Pos                (16U)
6756 #define DMA_CTR2_TRIGSEL_Msk                (0x3FUL << DMA_CTR2_TRIGSEL_Pos)        /*!< 0x003F0000 */
6757 #define DMA_CTR2_TRIGSEL                    DMA_CTR2_TRIGSEL_Msk                    /*!< Trigger event input selection  */
6758 #define DMA_CTR2_TRIGPOL_Pos                (24U)
6759 #define DMA_CTR2_TRIGPOL_Msk                (0x3UL << DMA_CTR2_TRIGPOL_Pos)         /*!< 0x03000000 */
6760 #define DMA_CTR2_TRIGPOL                    DMA_CTR2_TRIGPOL_Msk                    /*!< Trigger event polarity         */
6761 #define DMA_CTR2_TRIGPOL_0                  (0x1UL << DMA_CTR2_TRIGPOL_Pos)         /*!< Bit 0 */
6762 #define DMA_CTR2_TRIGPOL_1                  (0x2UL << DMA_CTR2_TRIGPOL_Pos)         /*!< Bit 1 */
6763 #define DMA_CTR2_TCEM_Pos                   (30U)
6764 #define DMA_CTR2_TCEM_Msk                   (0x3UL << DMA_CTR2_TCEM_Pos)            /*!< 0xC0000000 */
6765 #define DMA_CTR2_TCEM                       DMA_CTR2_TCEM_Msk                       /*!< Transfer complete event mode   */
6766 #define DMA_CTR2_TCEM_0                     (0x1UL << DMA_CTR2_TCEM_Pos)            /*!< Bit 0 */
6767 #define DMA_CTR2_TCEM_1                     (0x2UL << DMA_CTR2_TCEM_Pos)            /*!< Bit 1 */
6768 
6769 /******************  Bit definition for DMA_CBR1 register  *******************/
6770 #define DMA_CBR1_BNDT_Pos                   (0U)
6771 #define DMA_CBR1_BNDT_Msk                   (0xFFFFUL << DMA_CBR1_BNDT_Pos)         /*!< 0x0000FFFF */
6772 #define DMA_CBR1_BNDT                       DMA_CBR1_BNDT_Msk                       /*!< Block number of data bytes to transfer from the source */
6773 #define DMA_CBR1_BRC_Pos                    (16U)
6774 #define DMA_CBR1_BRC_Msk                    (0x7FFUL << DMA_CBR1_BRC_Pos)           /*!< 0x07FF0000 */
6775 #define DMA_CBR1_BRC                        DMA_CBR1_BRC_Msk                        /*!< Block repeat counter                                   */
6776 #define DMA_CBR1_SDEC_Pos                   (28U)
6777 #define DMA_CBR1_SDEC_Msk                   (0x1UL << DMA_CBR1_SDEC_Pos)            /*!< 0x10000000 */
6778 #define DMA_CBR1_SDEC                       DMA_CBR1_SDEC_Msk                       /*!< Source address decrement                               */
6779 #define DMA_CBR1_DDEC_Pos                   (29U)
6780 #define DMA_CBR1_DDEC_Msk                   (0x1UL << DMA_CBR1_DDEC_Pos)            /*!< 0x20000000 */
6781 #define DMA_CBR1_DDEC                       DMA_CBR1_DDEC_Msk                       /*!< Destination address decrement                          */
6782 #define DMA_CBR1_BRSDEC_Pos                 (30U)
6783 #define DMA_CBR1_BRSDEC_Msk                 (0x1UL << DMA_CBR1_BRSDEC_Pos)          /*!< 0x40000000 */
6784 #define DMA_CBR1_BRSDEC                     DMA_CBR1_BRSDEC_Msk                     /*!< Block repeat source address decrement                  */
6785 #define DMA_CBR1_BRDDEC_Pos                 (31U)
6786 #define DMA_CBR1_BRDDEC_Msk                 (0x1UL << DMA_CBR1_BRDDEC_Pos)          /*!< 0x80000000 */
6787 #define DMA_CBR1_BRDDEC                     DMA_CBR1_BRDDEC_Msk                     /*!< Block repeat destination address decrement             */
6788 
6789 /******************  Bit definition for DMA_CSAR register  ********************/
6790 #define DMA_CSAR_SA_Pos                     (0U)
6791 #define DMA_CSAR_SA_Msk                     (0xFFFFFFFFUL << DMA_CSAR_SA_Pos)       /*!< 0xFFFFFFFF */
6792 #define DMA_CSAR_SA                         DMA_CSAR_SA_Msk                         /*!< Source Address */
6793 
6794 /******************  Bit definition for DMA_CDAR register  *******************/
6795 #define DMA_CDAR_DA_Pos                     (0U)
6796 #define DMA_CDAR_DA_Msk                     (0xFFFFFFFFUL << DMA_CDAR_DA_Pos)       /*!< 0xFFFFFFFF */
6797 #define DMA_CDAR_DA                         DMA_CDAR_DA_Msk                         /*!< Destination address */
6798 
6799 /******************  Bit definition for DMA_CTR3 register  *******************/
6800 #define DMA_CTR3_SAO_Pos                    (0U)
6801 #define DMA_CTR3_SAO_Msk                    (0x1FFFUL << DMA_CTR3_SAO_Pos)          /*!< 0x00001FFF */
6802 #define DMA_CTR3_SAO                        DMA_CTR3_SAO_Msk                        /*!< Source address offset increment      */
6803 #define DMA_CTR3_DAO_Pos                    (16U)
6804 #define DMA_CTR3_DAO_Msk                    (0x1FFFUL << DMA_CTR3_DAO_Pos)          /*!< 0x1FFF0000 */
6805 #define DMA_CTR3_DAO                        DMA_CTR3_DAO_Msk                        /*!< Destination address offset increment */
6806 
6807 /******************  Bit definition for DMA_CBR2 register  *******************/
6808 #define DMA_CBR2_BRSAO_Pos                  (0U)
6809 #define DMA_CBR2_BRSAO_Msk                  (0xFFFFUL << DMA_CBR2_BRSAO_Pos)        /*!< 0x0000FFFF */
6810 #define DMA_CBR2_BRSAO                      DMA_CBR2_BRSAO_Msk                      /*!< Block repeated source address offset      */
6811 #define DMA_CBR2_BRDAO_Pos                  (16U)
6812 #define DMA_CBR2_BRDAO_Msk                  (0xFFFFUL << DMA_CBR2_BRDAO_Pos)        /*!< 0xFFFF0000 */
6813 #define DMA_CBR2_BRDAO                      DMA_CBR2_BRDAO_Msk                      /*!< Block repeated destination address offset */
6814 
6815 /******************  Bit definition for DMA_CLLR register  *******************/
6816 #define DMA_CLLR_LA_Pos                     (2U)
6817 #define DMA_CLLR_LA_Msk                     (0x3FFFUL << DMA_CLLR_LA_Pos)           /*!< 0x0000FFFC */
6818 #define DMA_CLLR_LA                         DMA_CLLR_LA_Msk                         /*!< Pointer to the next linked-list data structure */
6819 #define DMA_CLLR_ULL_Pos                    (16U)
6820 #define DMA_CLLR_ULL_Msk                    (0x1UL << DMA_CLLR_ULL_Pos)             /*!< 0x00010000 */
6821 #define DMA_CLLR_ULL                        DMA_CLLR_ULL_Msk                        /*!< Update link address register from memory       */
6822 #define DMA_CLLR_UB2_Pos                    (25U)
6823 #define DMA_CLLR_UB2_Msk                    (0x1UL << DMA_CLLR_UB2_Pos)             /*!< 0x02000000 */
6824 #define DMA_CLLR_UB2                        DMA_CLLR_UB2_Msk                        /*!< Update block register 2 from memory            */
6825 #define DMA_CLLR_UT3_Pos                    (26U)
6826 #define DMA_CLLR_UT3_Msk                    (0x1UL << DMA_CLLR_UT3_Pos)             /*!< 0x04000000 */
6827 #define DMA_CLLR_UT3                        DMA_CLLR_UT3_Msk                        /*!< Update transfer register 3 from SRAM           */
6828 #define DMA_CLLR_UDA_Pos                    (27U)
6829 #define DMA_CLLR_UDA_Msk                    (0x1UL << DMA_CLLR_UDA_Pos)             /*!< 0x08000000 */
6830 #define DMA_CLLR_UDA                        DMA_CLLR_UDA_Msk                        /*!< Update destination address register from SRAM  */
6831 #define DMA_CLLR_USA_Pos                    (28U)
6832 #define DMA_CLLR_USA_Msk                    (0x1UL << DMA_CLLR_USA_Pos)             /*!< 0x10000000 */
6833 #define DMA_CLLR_USA                        DMA_CLLR_USA_Msk                        /*!< Update source address register from SRAM       */
6834 #define DMA_CLLR_UB1_Pos                    (29U)
6835 #define DMA_CLLR_UB1_Msk                    (0x1UL << DMA_CLLR_UB1_Pos)             /*!< 0x20000000 */
6836 #define DMA_CLLR_UB1                        DMA_CLLR_UB1_Msk                        /*!< Update block register 1 from SRAM              */
6837 #define DMA_CLLR_UT2_Pos                    (30U)
6838 #define DMA_CLLR_UT2_Msk                    (0x1UL << DMA_CLLR_UT2_Pos)             /*!< 0x40000000 */
6839 #define DMA_CLLR_UT2                        DMA_CLLR_UT2_Msk                        /*!< Update transfer register 2 from SRAM           */
6840 #define DMA_CLLR_UT1_Pos                    (31U)
6841 #define DMA_CLLR_UT1_Msk                    (0x1UL << DMA_CLLR_UT1_Pos)             /*!< 0x80000000 */
6842 #define DMA_CLLR_UT1                        DMA_CLLR_UT1_Msk                        /*!< Update transfer register 1 from SRAM           */
6843 
6844 /******************************************************************************/
6845 /*                                                                            */
6846 /*                         AHB Master DMA2D Controller (DMA2D)                */
6847 /*                                                                            */
6848 /******************************************************************************/
6849 
6850 /********************  Bit definition for DMA2D_CR register  ******************/
6851 #define DMA2D_CR_START_Pos                  (0U)
6852 #define DMA2D_CR_START_Msk                  (0x1UL << DMA2D_CR_START_Pos)           /*!< 0x00000001 */
6853 #define DMA2D_CR_START                      DMA2D_CR_START_Msk                      /*!< Start transfer                          */
6854 #define DMA2D_CR_SUSP_Pos                   (1U)
6855 #define DMA2D_CR_SUSP_Msk                   (0x1UL << DMA2D_CR_SUSP_Pos)            /*!< 0x00000002 */
6856 #define DMA2D_CR_SUSP                       DMA2D_CR_SUSP_Msk                       /*!< Suspend transfer                        */
6857 #define DMA2D_CR_ABORT_Pos                  (2U)
6858 #define DMA2D_CR_ABORT_Msk                  (0x1UL << DMA2D_CR_ABORT_Pos)           /*!< 0x00000004 */
6859 #define DMA2D_CR_ABORT                      DMA2D_CR_ABORT_Msk                      /*!< Abort transfer                          */
6860 #define DMA2D_CR_LOM_Pos                    (6U)
6861 #define DMA2D_CR_LOM_Msk                    (0x1UL << DMA2D_CR_LOM_Pos)             /*!< 0x00000040 */
6862 #define DMA2D_CR_LOM                        DMA2D_CR_LOM_Msk
6863 #define DMA2D_CR_TEIE_Pos                   (8U)
6864 #define DMA2D_CR_TEIE_Msk                   (0x1UL << DMA2D_CR_TEIE_Pos)            /*!< 0x00000100 */
6865 #define DMA2D_CR_TEIE                       DMA2D_CR_TEIE_Msk                       /*!< Transfer Error Interrupt Enable         */
6866 #define DMA2D_CR_TCIE_Pos                   (9U)
6867 #define DMA2D_CR_TCIE_Msk                   (0x1UL << DMA2D_CR_TCIE_Pos)            /*!< 0x00000200 */
6868 #define DMA2D_CR_TCIE                       DMA2D_CR_TCIE_Msk                       /*!< Transfer Complete Interrupt Enable      */
6869 #define DMA2D_CR_TWIE_Pos                   (10U)
6870 #define DMA2D_CR_TWIE_Msk                   (0x1UL << DMA2D_CR_TWIE_Pos)            /*!< 0x00000400 */
6871 #define DMA2D_CR_TWIE                       DMA2D_CR_TWIE_Msk                       /*!< Transfer Watermark Interrupt Enable     */
6872 #define DMA2D_CR_CAEIE_Pos                  (11U)
6873 #define DMA2D_CR_CAEIE_Msk                  (0x1UL << DMA2D_CR_CAEIE_Pos)           /*!< 0x00000800 */
6874 #define DMA2D_CR_CAEIE                      DMA2D_CR_CAEIE_Msk                      /*!< CLUT Access Error Interrupt Enable      */
6875 #define DMA2D_CR_CTCIE_Pos                  (12U)
6876 #define DMA2D_CR_CTCIE_Msk                  (0x1UL << DMA2D_CR_CTCIE_Pos)           /*!< 0x00001000 */
6877 #define DMA2D_CR_CTCIE                      DMA2D_CR_CTCIE_Msk                      /*!< CLUT Transfer Complete Interrupt Enable */
6878 #define DMA2D_CR_CEIE_Pos                   (13U)
6879 #define DMA2D_CR_CEIE_Msk                   (0x1UL << DMA2D_CR_CEIE_Pos)            /*!< 0x00002000 */
6880 #define DMA2D_CR_CEIE                       DMA2D_CR_CEIE_Msk                       /*!< Configuration Error Interrupt Enable    */
6881 #define DMA2D_CR_MODE_Pos                   (16U)
6882 #define DMA2D_CR_MODE_Msk                   (0x7UL << DMA2D_CR_MODE_Pos)            /*!< 0x00070000 */
6883 #define DMA2D_CR_MODE                       DMA2D_CR_MODE_Msk                       /*!< DMA2D Mode[2:0]                         */
6884 #define DMA2D_CR_MODE_0                     (0x1UL << DMA2D_CR_MODE_Pos)            /*!< 0x00010000 */
6885 #define DMA2D_CR_MODE_1                     (0x2UL << DMA2D_CR_MODE_Pos)            /*!< 0x00020000 */
6886 #define DMA2D_CR_MODE_2                     (0x4UL << DMA2D_CR_MODE_Pos)            /*!< 0x00040000 */
6887 
6888 /********************  Bit definition for DMA2D_ISR register  *****************/
6889 #define DMA2D_ISR_TEIF_Pos                  (0U)
6890 #define DMA2D_ISR_TEIF_Msk                  (0x1UL << DMA2D_ISR_TEIF_Pos)           /*!< 0x00000001 */
6891 #define DMA2D_ISR_TEIF                      DMA2D_ISR_TEIF_Msk                      /*!< Transfer Error Interrupt Flag         */
6892 #define DMA2D_ISR_TCIF_Pos                  (1U)
6893 #define DMA2D_ISR_TCIF_Msk                  (0x1UL << DMA2D_ISR_TCIF_Pos)           /*!< 0x00000002 */
6894 #define DMA2D_ISR_TCIF                      DMA2D_ISR_TCIF_Msk                      /*!< Transfer Complete Interrupt Flag      */
6895 #define DMA2D_ISR_TWIF_Pos                  (2U)
6896 #define DMA2D_ISR_TWIF_Msk                  (0x1UL << DMA2D_ISR_TWIF_Pos)           /*!< 0x00000004 */
6897 #define DMA2D_ISR_TWIF                      DMA2D_ISR_TWIF_Msk                      /*!< Transfer Watermark Interrupt Flag     */
6898 #define DMA2D_ISR_CAEIF_Pos                 (3U)
6899 #define DMA2D_ISR_CAEIF_Msk                 (0x1UL << DMA2D_ISR_CAEIF_Pos)          /*!< 0x00000008 */
6900 #define DMA2D_ISR_CAEIF                     DMA2D_ISR_CAEIF_Msk                     /*!< CLUT Access Error Interrupt Flag      */
6901 #define DMA2D_ISR_CTCIF_Pos                 (4U)
6902 #define DMA2D_ISR_CTCIF_Msk                 (0x1UL << DMA2D_ISR_CTCIF_Pos)          /*!< 0x00000010 */
6903 #define DMA2D_ISR_CTCIF                     DMA2D_ISR_CTCIF_Msk                     /*!< CLUT Transfer Complete Interrupt Flag */
6904 #define DMA2D_ISR_CEIF_Pos                  (5U)
6905 #define DMA2D_ISR_CEIF_Msk                  (0x1UL << DMA2D_ISR_CEIF_Pos)           /*!< 0x00000020 */
6906 #define DMA2D_ISR_CEIF                      DMA2D_ISR_CEIF_Msk                      /*!< Configuration Error Interrupt Flag    */
6907 
6908 /********************  Bit definition for DMA2D_IFCR register  ****************/
6909 #define DMA2D_IFCR_CTEIF_Pos                (0U)
6910 #define DMA2D_IFCR_CTEIF_Msk                (0x1UL << DMA2D_IFCR_CTEIF_Pos)         /*!< 0x00000001 */
6911 #define DMA2D_IFCR_CTEIF                    DMA2D_IFCR_CTEIF_Msk                    /*!< Clears Transfer Error Interrupt Flag         */
6912 #define DMA2D_IFCR_CTCIF_Pos                (1U)
6913 #define DMA2D_IFCR_CTCIF_Msk                (0x1UL << DMA2D_IFCR_CTCIF_Pos)         /*!< 0x00000002 */
6914 #define DMA2D_IFCR_CTCIF                    DMA2D_IFCR_CTCIF_Msk                    /*!< Clears Transfer Complete Interrupt Flag      */
6915 #define DMA2D_IFCR_CTWIF_Pos                (2U)
6916 #define DMA2D_IFCR_CTWIF_Msk                (0x1UL << DMA2D_IFCR_CTWIF_Pos)         /*!< 0x00000004 */
6917 #define DMA2D_IFCR_CTWIF                    DMA2D_IFCR_CTWIF_Msk                    /*!< Clears Transfer Watermark Interrupt Flag     */
6918 #define DMA2D_IFCR_CAECIF_Pos               (3U)
6919 #define DMA2D_IFCR_CAECIF_Msk               (0x1UL << DMA2D_IFCR_CAECIF_Pos)        /*!< 0x00000008 */
6920 #define DMA2D_IFCR_CAECIF                   DMA2D_IFCR_CAECIF_Msk                   /*!< Clears CLUT Access Error Interrupt Flag      */
6921 #define DMA2D_IFCR_CCTCIF_Pos               (4U)
6922 #define DMA2D_IFCR_CCTCIF_Msk               (0x1UL << DMA2D_IFCR_CCTCIF_Pos)        /*!< 0x00000010 */
6923 #define DMA2D_IFCR_CCTCIF                   DMA2D_IFCR_CCTCIF_Msk                   /*!< Clears CLUT Transfer Complete Interrupt Flag */
6924 #define DMA2D_IFCR_CCEIF_Pos                (5U)
6925 #define DMA2D_IFCR_CCEIF_Msk                (0x1UL << DMA2D_IFCR_CCEIF_Pos)         /*!< 0x00000020 */
6926 #define DMA2D_IFCR_CCEIF                    DMA2D_IFCR_CCEIF_Msk                    /*!< Clears Configuration Error Interrupt Flag    */
6927 
6928 /********************  Bit definition for DMA2D_FGMAR register  ***************/
6929 #define DMA2D_FGMAR_MA_Pos                  (0U)
6930 #define DMA2D_FGMAR_MA_Msk                  (0xFFFFFFFFUL << DMA2D_FGMAR_MA_Pos)    /*!< 0xFFFFFFFF */
6931 #define DMA2D_FGMAR_MA                      DMA2D_FGMAR_MA_Msk                      /*!< Foreground Memory Address */
6932 
6933 /********************  Bit definition for DMA2D_FGOR register  ****************/
6934 #define DMA2D_FGOR_LO_Pos                   (0U)
6935 #define DMA2D_FGOR_LO_Msk                   (0xFFFFUL << DMA2D_FGOR_LO_Pos)         /*!< 0x0000FFFF */
6936 #define DMA2D_FGOR_LO                       DMA2D_FGOR_LO_Msk                       /*!< Line Offset */
6937 
6938 /********************  Bit definition for DMA2D_BGMAR register  ***************/
6939 #define DMA2D_BGMAR_MA_Pos                  (0U)
6940 #define DMA2D_BGMAR_MA_Msk                  (0xFFFFFFFFUL << DMA2D_BGMAR_MA_Pos)    /*!< 0xFFFFFFFF */
6941 #define DMA2D_BGMAR_MA                      DMA2D_BGMAR_MA_Msk                      /*!< Background Memory Address */
6942 
6943 /********************  Bit definition for DMA2D_BGOR register  ****************/
6944 #define DMA2D_BGOR_LO_Pos                   (0U)
6945 #define DMA2D_BGOR_LO_Msk                   (0xFFFFUL << DMA2D_BGOR_LO_Pos)         /*!< 0x0000FFFF */
6946 #define DMA2D_BGOR_LO                       DMA2D_BGOR_LO_Msk                       /*!< Line Offset */
6947 
6948 /********************  Bit definition for DMA2D_FGPFCCR register  *************/
6949 #define DMA2D_FGPFCCR_CM_Pos                (0U)
6950 #define DMA2D_FGPFCCR_CM_Msk                (0xFUL << DMA2D_FGPFCCR_CM_Pos)         /*!< 0x0000000F */
6951 #define DMA2D_FGPFCCR_CM                    DMA2D_FGPFCCR_CM_Msk                    /*!< Input color mode CM[3:0] */
6952 #define DMA2D_FGPFCCR_CM_0                  (0x1UL << DMA2D_FGPFCCR_CM_Pos)         /*!< 0x00000001 */
6953 #define DMA2D_FGPFCCR_CM_1                  (0x2UL << DMA2D_FGPFCCR_CM_Pos)         /*!< 0x00000002 */
6954 #define DMA2D_FGPFCCR_CM_2                  (0x4UL << DMA2D_FGPFCCR_CM_Pos)         /*!< 0x00000004 */
6955 #define DMA2D_FGPFCCR_CM_3                  (0x8UL << DMA2D_FGPFCCR_CM_Pos)         /*!< 0x00000008 */
6956 #define DMA2D_FGPFCCR_CCM_Pos               (4U)
6957 #define DMA2D_FGPFCCR_CCM_Msk               (0x1UL << DMA2D_FGPFCCR_CCM_Pos)        /*!< 0x00000010 */
6958 #define DMA2D_FGPFCCR_CCM                   DMA2D_FGPFCCR_CCM_Msk                   /*!< CLUT Color mode */
6959 #define DMA2D_FGPFCCR_START_Pos             (5U)
6960 #define DMA2D_FGPFCCR_START_Msk             (0x1UL << DMA2D_FGPFCCR_START_Pos)      /*!< 0x00000020 */
6961 #define DMA2D_FGPFCCR_START                 DMA2D_FGPFCCR_START_Msk                 /*!< Start */
6962 #define DMA2D_FGPFCCR_CS_Pos                (8U)
6963 #define DMA2D_FGPFCCR_CS_Msk                (0xFFUL << DMA2D_FGPFCCR_CS_Pos)        /*!< 0x0000FF00 */
6964 #define DMA2D_FGPFCCR_CS                    DMA2D_FGPFCCR_CS_Msk                    /*!< CLUT size */
6965 #define DMA2D_FGPFCCR_AM_Pos                (16U)
6966 #define DMA2D_FGPFCCR_AM_Msk                (0x3UL << DMA2D_FGPFCCR_AM_Pos)         /*!< 0x00030000 */
6967 #define DMA2D_FGPFCCR_AM                    DMA2D_FGPFCCR_AM_Msk                    /*!< Alpha mode AM[1:0] */
6968 #define DMA2D_FGPFCCR_AM_0                  (0x1UL << DMA2D_FGPFCCR_AM_Pos)         /*!< 0x00010000 */
6969 #define DMA2D_FGPFCCR_AM_1                  (0x2UL << DMA2D_FGPFCCR_AM_Pos)         /*!< 0x00020000 */
6970 #define DMA2D_FGPFCCR_CSS_Pos               (18U)
6971 #define DMA2D_FGPFCCR_CSS_Msk               (0x3UL << DMA2D_FGPFCCR_CSS_Pos)        /*!< 0x000C0000 */
6972 #define DMA2D_FGPFCCR_CSS                   DMA2D_FGPFCCR_CSS_Msk                   /* !< Chroma Sub-Sampling */
6973 #define DMA2D_FGPFCCR_CSS_0                 (0x1UL << DMA2D_FGPFCCR_CSS_Pos)        /*!< 0x00040000 */
6974 #define DMA2D_FGPFCCR_CSS_1                 (0x2UL << DMA2D_FGPFCCR_CSS_Pos)        /*!< 0x00080000 */
6975 #define DMA2D_FGPFCCR_AI_Pos                (20U)
6976 #define DMA2D_FGPFCCR_AI_Msk                (0x1UL << DMA2D_FGPFCCR_AI_Pos)         /*!< 0x00100000 */
6977 #define DMA2D_FGPFCCR_AI                    DMA2D_FGPFCCR_AI_Msk                    /*!< Foreground Input Alpha Inverted */
6978 #define DMA2D_FGPFCCR_RBS_Pos               (21U)
6979 #define DMA2D_FGPFCCR_RBS_Msk               (0x1UL << DMA2D_FGPFCCR_RBS_Pos)        /*!< 0x00200000 */
6980 #define DMA2D_FGPFCCR_RBS                   DMA2D_FGPFCCR_RBS_Msk                   /*!< Foreground Input Red Blue Swap */
6981 #define DMA2D_FGPFCCR_ALPHA_Pos             (24U)
6982 #define DMA2D_FGPFCCR_ALPHA_Msk             (0xFFUL << DMA2D_FGPFCCR_ALPHA_Pos)     /*!< 0xFF000000 */
6983 #define DMA2D_FGPFCCR_ALPHA                 DMA2D_FGPFCCR_ALPHA_Msk                 /*!< Alpha value */
6984 
6985 /********************  Bit definition for DMA2D_FGCOLR register  **************/
6986 #define DMA2D_FGCOLR_BLUE_Pos               (0U)
6987 #define DMA2D_FGCOLR_BLUE_Msk               (0xFFUL << DMA2D_FGCOLR_BLUE_Pos)       /*!< 0x000000FF */
6988 #define DMA2D_FGCOLR_BLUE                   DMA2D_FGCOLR_BLUE_Msk                   /*!< Foreground Blue Value */
6989 #define DMA2D_FGCOLR_GREEN_Pos              (8U)
6990 #define DMA2D_FGCOLR_GREEN_Msk              (0xFFUL << DMA2D_FGCOLR_GREEN_Pos)      /*!< 0x0000FF00 */
6991 #define DMA2D_FGCOLR_GREEN                  DMA2D_FGCOLR_GREEN_Msk                  /*!< Foreground Green Value */
6992 #define DMA2D_FGCOLR_RED_Pos                (16U)
6993 #define DMA2D_FGCOLR_RED_Msk                (0xFFUL << DMA2D_FGCOLR_RED_Pos)        /*!< 0x00FF0000 */
6994 #define DMA2D_FGCOLR_RED                    DMA2D_FGCOLR_RED_Msk                    /*!< Foreground Red Value */
6995 
6996 /********************  Bit definition for DMA2D_BGPFCCR register  *************/
6997 #define DMA2D_BGPFCCR_CM_Pos                (0U)
6998 #define DMA2D_BGPFCCR_CM_Msk                (0xFUL << DMA2D_BGPFCCR_CM_Pos)         /*!< 0x0000000F */
6999 #define DMA2D_BGPFCCR_CM                    DMA2D_BGPFCCR_CM_Msk                    /*!< Input color mode CM[3:0] */
7000 #define DMA2D_BGPFCCR_CM_0                  (0x1UL << DMA2D_BGPFCCR_CM_Pos)         /*!< 0x00000001 */
7001 #define DMA2D_BGPFCCR_CM_1                  (0x2UL << DMA2D_BGPFCCR_CM_Pos)         /*!< 0x00000002 */
7002 #define DMA2D_BGPFCCR_CM_2                  (0x4UL << DMA2D_BGPFCCR_CM_Pos)         /*!< 0x00000004 */
7003 #define DMA2D_BGPFCCR_CM_3                  (0x8UL << DMA2D_BGPFCCR_CM_Pos)         /*!< 0x00000008 */
7004 #define DMA2D_BGPFCCR_CCM_Pos               (4U)
7005 #define DMA2D_BGPFCCR_CCM_Msk               (0x1UL << DMA2D_BGPFCCR_CCM_Pos)        /*!< 0x00000010 */
7006 #define DMA2D_BGPFCCR_CCM                   DMA2D_BGPFCCR_CCM_Msk                   /*!< CLUT Color mode */
7007 #define DMA2D_BGPFCCR_START_Pos             (5U)
7008 #define DMA2D_BGPFCCR_START_Msk             (0x1UL << DMA2D_BGPFCCR_START_Pos)      /*!< 0x00000020 */
7009 #define DMA2D_BGPFCCR_START                 DMA2D_BGPFCCR_START_Msk                 /*!< Start */
7010 #define DMA2D_BGPFCCR_CS_Pos                (8U)
7011 #define DMA2D_BGPFCCR_CS_Msk                (0xFFUL << DMA2D_BGPFCCR_CS_Pos)        /*!< 0x0000FF00 */
7012 #define DMA2D_BGPFCCR_CS                    DMA2D_BGPFCCR_CS_Msk                    /*!< CLUT size */
7013 #define DMA2D_BGPFCCR_AM_Pos                (16U)
7014 #define DMA2D_BGPFCCR_AM_Msk                (0x3UL << DMA2D_BGPFCCR_AM_Pos)         /*!< 0x00030000 */
7015 #define DMA2D_BGPFCCR_AM                    DMA2D_BGPFCCR_AM_Msk                    /*!< Alpha mode AM[1:0] */
7016 #define DMA2D_BGPFCCR_AM_0                  (0x1UL << DMA2D_BGPFCCR_AM_Pos)         /*!< 0x00010000 */
7017 #define DMA2D_BGPFCCR_AM_1                  (0x2UL << DMA2D_BGPFCCR_AM_Pos)         /*!< 0x00020000 */
7018 #define DMA2D_BGPFCCR_AI_Pos                (20U)
7019 #define DMA2D_BGPFCCR_AI_Msk                (0x1UL << DMA2D_BGPFCCR_AI_Pos)         /*!< 0x00100000 */
7020 #define DMA2D_BGPFCCR_AI                    DMA2D_BGPFCCR_AI_Msk                    /*!< background Input Alpha Inverted */
7021 #define DMA2D_BGPFCCR_RBS_Pos               (21U)
7022 #define DMA2D_BGPFCCR_RBS_Msk               (0x1UL << DMA2D_BGPFCCR_RBS_Pos)        /*!< 0x00200000 */
7023 #define DMA2D_BGPFCCR_RBS                   DMA2D_BGPFCCR_RBS_Msk                   /*!< Background Input Red Blue Swap */
7024 #define DMA2D_BGPFCCR_ALPHA_Pos             (24U)
7025 #define DMA2D_BGPFCCR_ALPHA_Msk             (0xFFUL << DMA2D_BGPFCCR_ALPHA_Pos)     /*!< 0xFF000000 */
7026 #define DMA2D_BGPFCCR_ALPHA                 DMA2D_BGPFCCR_ALPHA_Msk                 /*!< background Input Alpha value */
7027 
7028 /********************  Bit definition for DMA2D_BGCOLR register  **************/
7029 #define DMA2D_BGCOLR_BLUE_Pos               (0U)
7030 #define DMA2D_BGCOLR_BLUE_Msk               (0xFFUL << DMA2D_BGCOLR_BLUE_Pos)       /*!< 0x000000FF */
7031 #define DMA2D_BGCOLR_BLUE                   DMA2D_BGCOLR_BLUE_Msk                   /*!< Background Blue Value */
7032 #define DMA2D_BGCOLR_GREEN_Pos              (8U)
7033 #define DMA2D_BGCOLR_GREEN_Msk              (0xFFUL << DMA2D_BGCOLR_GREEN_Pos)      /*!< 0x0000FF00 */
7034 #define DMA2D_BGCOLR_GREEN                  DMA2D_BGCOLR_GREEN_Msk                  /*!< Background Green Value */
7035 #define DMA2D_BGCOLR_RED_Pos                (16U)
7036 #define DMA2D_BGCOLR_RED_Msk                (0xFFUL << DMA2D_BGCOLR_RED_Pos)        /*!< 0x00FF0000 */
7037 #define DMA2D_BGCOLR_RED                    DMA2D_BGCOLR_RED_Msk                    /*!< Background Red Value */
7038 
7039 /********************  Bit definition for DMA2D_FGCMAR register  **************/
7040 #define DMA2D_FGCMAR_MA_Pos                 (0U)
7041 #define DMA2D_FGCMAR_MA_Msk                 (0xFFFFFFFFUL << DMA2D_FGCMAR_MA_Pos)   /*!< 0xFFFFFFFF */
7042 #define DMA2D_FGCMAR_MA                     DMA2D_FGCMAR_MA_Msk                     /*!< Foreground CLUT Memory Address */
7043 
7044 /********************  Bit definition for DMA2D_BGCMAR register  **************/
7045 #define DMA2D_BGCMAR_MA_Pos                 (0U)
7046 #define DMA2D_BGCMAR_MA_Msk                 (0xFFFFFFFFUL << DMA2D_BGCMAR_MA_Pos)   /*!< 0xFFFFFFFF */
7047 #define DMA2D_BGCMAR_MA                     DMA2D_BGCMAR_MA_Msk                     /*!< Background CLUT Memory Address */
7048 
7049 /********************  Bit definition for DMA2D_OPFCCR register  **************/
7050 #define DMA2D_OPFCCR_CM_Pos                 (0U)
7051 #define DMA2D_OPFCCR_CM_Msk                 (0x7UL << DMA2D_OPFCCR_CM_Pos)          /*!< 0x00000007 */
7052 #define DMA2D_OPFCCR_CM                     DMA2D_OPFCCR_CM_Msk                     /*!< Output Color mode CM[2:0] */
7053 #define DMA2D_OPFCCR_CM_0                   (0x1UL << DMA2D_OPFCCR_CM_Pos)          /*!< 0x00000001 */
7054 #define DMA2D_OPFCCR_CM_1                   (0x2UL << DMA2D_OPFCCR_CM_Pos)          /*!< 0x00000002 */
7055 #define DMA2D_OPFCCR_CM_2                   (0x4UL << DMA2D_OPFCCR_CM_Pos)          /*!< 0x00000004 */
7056 #define DMA2D_OPFCCR_SB_Pos                 (8U)
7057 #define DMA2D_OPFCCR_SB_Msk                 (0x1UL << DMA2D_OPFCCR_SB_Pos)          /*!< 0x00000100 */
7058 #define DMA2D_OPFCCR_SB                     DMA2D_OPFCCR_SB_Msk                     /*!< Swap Bytes */
7059 #define DMA2D_OPFCCR_AI_Pos                 (20U)
7060 #define DMA2D_OPFCCR_AI_Msk                 (0x1UL << DMA2D_OPFCCR_AI_Pos)          /*!< 0x00100000 */
7061 #define DMA2D_OPFCCR_AI                     DMA2D_OPFCCR_AI_Msk                     /*!< Output Alpha Inverted */
7062 #define DMA2D_OPFCCR_RBS_Pos                (21U)
7063 #define DMA2D_OPFCCR_RBS_Msk                (0x1UL << DMA2D_OPFCCR_RBS_Pos)         /*!< 0x00200000 */
7064 #define DMA2D_OPFCCR_RBS                    DMA2D_OPFCCR_RBS_Msk                    /*!< Output Red Blue Swap */
7065 
7066 /********************  Bit definition for DMA2D_OCOLR register  ***************/
7067 /*!<Mode_ARGB8888/RGB888 */
7068 #define DMA2D_OCOLR_BLUE_1_Pos              (0U)
7069 #define DMA2D_OCOLR_BLUE_1_Msk              (0xFFUL << DMA2D_OCOLR_BLUE_1_Pos)      /*0x000000FFU*/
7070 #define DMA2D_OCOLR_BLUE_1                  DMA2D_OCOLR_BLUE_1_Msk                  /*!< Output BLUE Value */
7071 #define DMA2D_OCOLR_GREEN_1_Pos             (8U)
7072 #define DMA2D_OCOLR_GREEN_1_Msk             (0xFFUL << DMA2D_OCOLR_GREEN_1_Pos)     /*0x0000FF00U)*/
7073 #define DMA2D_OCOLR_GREEN_1                 DMA2D_OCOLR_GREEN_1_Msk                 /*!< Output GREEN Value  */
7074 #define DMA2D_OCOLR_RED_1_Pos               (16U)
7075 #define DMA2D_OCOLR_RED_1_Msk               (0xFFUL << DMA2D_OCOLR_RED_1_Pos)       /*0x00FF0000U */
7076 #define DMA2D_OCOLR_RED_1                   DMA2D_OCOLR_RED_1_Msk                   /*!< Output Red Value */
7077 #define DMA2D_OCOLR_ALPHA_1_Pos             (24U)
7078 #define DMA2D_OCOLR_ALPHA_1_Msk             (0xFFUL << DMA2D_OCOLR_ALPHA_1_Pos)     /*0xFF000000U*/
7079 #define DMA2D_OCOLR_ALPHA_1                 DMA2D_OCOLR_ALPHA_1_Msk                 /*!< Output Alpha Channel Value */
7080 /*!<Mode_RGB565 */
7081 #define DMA2D_OCOLR_BLUE_2_Pos              (0U)
7082 #define DMA2D_OCOLR_BLUE_2_Msk              (0x1FUL << DMA2D_OCOLR_BLUE_2_Pos)      /*0x0000001FU*/
7083 #define DMA2D_OCOLR_BLUE_2                  DMA2D_OCOLR_BLUE_2_Msk                  /*!< Output BLUE Value */
7084 #define DMA2D_OCOLR_GREEN_2_Pos             (5U)
7085 #define DMA2D_OCOLR_GREEN_2_Msk             (0x7EUL << DMA2D_OCOLR_GREEN_2_Pos)     /* 0x000007E0U */
7086 #define DMA2D_OCOLR_GREEN_2                 DMA2D_OCOLR_GREEN_2_Msk                 /*!< Output GREEN Value  */
7087 #define DMA2D_OCOLR_RED_2_Pos               (11U)
7088 #define DMA2D_OCOLR_RED_2_Msk               (0xF8UL << DMA2D_OCOLR_RED_2_Pos)       /*0x0000F800U*/
7089 #define DMA2D_OCOLR_RED_2                   DMA2D_OCOLR_RED_2_Msk                   /*!< Output Red Value */
7090 /*!<Mode_ARGB1555 */
7091 #define DMA2D_OCOLR_BLUE_3_Pos              (0U)
7092 #define DMA2D_OCOLR_BLUE_3_Msk              (0x1FUL << DMA2D_OCOLR_BLUE_3_Pos)      /*0x0000001FU*/
7093 #define DMA2D_OCOLR_BLUE_3                  DMA2D_OCOLR_BLUE_3_Msk                  /*!< Output BLUE Value */
7094 #define DMA2D_OCOLR_GREEN_3_Pos             (5U)
7095 #define DMA2D_OCOLR_GREEN_3_Msk             (0x3EUL << DMA2D_OCOLR_GREEN_3_Pos)     /*0x000003E0U*/
7096 #define DMA2D_OCOLR_GREEN_3                 DMA2D_OCOLR_GREEN_3_Msk                 /*!< Output GREEN Value  */
7097 #define DMA2D_OCOLR_RED_3_Pos               (10U)
7098 #define DMA2D_OCOLR_RED_3_Msk               (0x7CUL << DMA2D_OCOLR_RED_3_Pos)       /* 0x00007C00U*/
7099 #define DMA2D_OCOLR_RED_3                   DMA2D_OCOLR_RED_3_Msk                   /*!< Output Red Value */
7100 #define DMA2D_OCOLR_ALPHA_3_Pos             (15U)
7101 #define DMA2D_OCOLR_ALPHA_3_Msk             (0x1UL << DMA2D_OCOLR_ALPHA_3_Pos)      /*0x00008000U*/
7102 #define DMA2D_OCOLR_ALPHA_3                 DMA2D_OCOLR_ALPHA_3_Msk                 /*!< Output Alpha Channel Value */
7103 /*!<Mode_ARGB4444 */
7104 #define DMA2D_OCOLR_BLUE_4_Pos              (0U)
7105 #define DMA2D_OCOLR_BLUE_4_Msk              (0xFUL << DMA2D_OCOLR_BLUE_4_Pos)       /*0x0000000FU*/
7106 #define DMA2D_OCOLR_BLUE_4                  DMA2D_OCOLR_BLUE_4_Msk                  /*!< Output BLUE Value */
7107 #define DMA2D_OCOLR_GREEN_4_Pos             (4U)
7108 #define DMA2D_OCOLR_GREEN_4_Msk             (0xFUL << DMA2D_OCOLR_GREEN_4_Pos)      /*0x000000F0U*/
7109 #define DMA2D_OCOLR_GREEN_4                 DMA2D_OCOLR_GREEN_4_Msk                 /*!< Output GREEN Value  */
7110 #define DMA2D_OCOLR_RED_4_Pos               (8U)
7111 #define DMA2D_OCOLR_RED_4_Msk               (0xFUL << DMA2D_OCOLR_RED_4_Pos)        /*0x00000F00U*/
7112 #define DMA2D_OCOLR_RED_4                   DMA2D_OCOLR_RED_4_Msk                   /*!< Output Red Value */
7113 #define DMA2D_OCOLR_ALPHA_4_Pos             (12U)
7114 #define DMA2D_OCOLR_ALPHA_4_Msk             (0xF << DMA2D_OCOLR_ALPHA_4_Pos)        /*0x0000F000U*/
7115 #define DMA2D_OCOLR_ALPHA_4                 DMA2D_OCOLR_ALPHA_4_Msk                 /*!< Output Alpha Channel Value */
7116 
7117 /********************  Bit definition for DMA2D_OMAR register  ****************/
7118 #define DMA2D_OMAR_MA_Pos                   (0U)
7119 #define DMA2D_OMAR_MA_Msk                   (0xFFFFFFFFUL << DMA2D_OMAR_MA_Pos)     /*!< 0xFFFFFFFF */
7120 #define DMA2D_OMAR_MA                       DMA2D_OMAR_MA_Msk                       /*!< Output Memory Address */
7121 
7122 /********************  Bit definition for DMA2D_OOR register  *****************/
7123 #define DMA2D_OOR_LO_Pos                    (0U)
7124 #define DMA2D_OOR_LO_Msk                    (0xFFFFUL << DMA2D_OOR_LO_Pos)          /*!< 0x0000FFFF */
7125 #define DMA2D_OOR_LO                        DMA2D_OOR_LO_Msk                        /*!< Output Line Offset */
7126 
7127 /********************  Bit definition for DMA2D_NLR register  *****************/
7128 #define DMA2D_NLR_NL_Pos                    (0U)
7129 #define DMA2D_NLR_NL_Msk                    (0xFFFFUL << DMA2D_NLR_NL_Pos)          /*!< 0x0000FFFF */
7130 #define DMA2D_NLR_NL                        DMA2D_NLR_NL_Msk                        /*!< Number of Lines */
7131 #define DMA2D_NLR_PL_Pos                    (16U)
7132 #define DMA2D_NLR_PL_Msk                    (0x3FFFUL << DMA2D_NLR_PL_Pos)          /*!< 0x3FFF0000 */
7133 #define DMA2D_NLR_PL                        DMA2D_NLR_PL_Msk                        /*!< Pixel per Lines */
7134 
7135 /********************  Bit definition for DMA2D_LWR register  *****************/
7136 #define DMA2D_LWR_LW_Pos                    (0U)
7137 #define DMA2D_LWR_LW_Msk                    (0xFFFFUL << DMA2D_LWR_LW_Pos)          /*!< 0x0000FFFF */
7138 #define DMA2D_LWR_LW                        DMA2D_LWR_LW_Msk                        /*!< Line Watermark */
7139 
7140 /********************  Bit definition for DMA2D_AMTCR register  ***************/
7141 #define DMA2D_AMTCR_EN_Pos                  (0U)
7142 #define DMA2D_AMTCR_EN_Msk                  (0x1UL << DMA2D_AMTCR_EN_Pos)           /*!< 0x00000001 */
7143 #define DMA2D_AMTCR_EN                      DMA2D_AMTCR_EN_Msk                      /*!< Enable */
7144 #define DMA2D_AMTCR_DT_Pos                  (8U)
7145 #define DMA2D_AMTCR_DT_Msk                  (0xFFUL << DMA2D_AMTCR_DT_Pos)          /*!< 0x0000FF00 */
7146 #define DMA2D_AMTCR_DT                      DMA2D_AMTCR_DT_Msk                      /*!< Dead Time */
7147 
7148 /******************************************************************************/
7149 /*                                                                            */
7150 /*                    External Interrupt/Event Controller                     */
7151 /*                                                                            */
7152 /******************************************************************************/
7153 /******************  Bit definition for EXTI_RTSR1 register  ******************/
7154 #define EXTI_RTSR1_RT0_Pos                  (0U)
7155 #define EXTI_RTSR1_RT0_Msk                  (0x1UL << EXTI_RTSR1_RT0_Pos)           /*!< 0x00000001 */
7156 #define EXTI_RTSR1_RT0                      EXTI_RTSR1_RT0_Msk                      /*!< Rising trigger configuration for input line 0 */
7157 #define EXTI_RTSR1_RT1_Pos                  (1U)
7158 #define EXTI_RTSR1_RT1_Msk                  (0x1UL << EXTI_RTSR1_RT1_Pos)           /*!< 0x00000002 */
7159 #define EXTI_RTSR1_RT1                      EXTI_RTSR1_RT1_Msk                      /*!< Rising trigger configuration for input line 1 */
7160 #define EXTI_RTSR1_RT2_Pos                  (2U)
7161 #define EXTI_RTSR1_RT2_Msk                  (0x1UL << EXTI_RTSR1_RT2_Pos)           /*!< 0x00000004 */
7162 #define EXTI_RTSR1_RT2                      EXTI_RTSR1_RT2_Msk                      /*!< Rising trigger configuration for input line 2 */
7163 #define EXTI_RTSR1_RT3_Pos                  (3U)
7164 #define EXTI_RTSR1_RT3_Msk                  (0x1UL << EXTI_RTSR1_RT3_Pos)           /*!< 0x00000008 */
7165 #define EXTI_RTSR1_RT3                      EXTI_RTSR1_RT3_Msk                      /*!< Rising trigger configuration for input line 3 */
7166 #define EXTI_RTSR1_RT4_Pos                  (4U)
7167 #define EXTI_RTSR1_RT4_Msk                  (0x1UL << EXTI_RTSR1_RT4_Pos)           /*!< 0x00000010 */
7168 #define EXTI_RTSR1_RT4                      EXTI_RTSR1_RT4_Msk                      /*!< Rising trigger configuration for input line 4 */
7169 #define EXTI_RTSR1_RT5_Pos                  (5U)
7170 #define EXTI_RTSR1_RT5_Msk                  (0x1UL << EXTI_RTSR1_RT5_Pos)           /*!< 0x00000020 */
7171 #define EXTI_RTSR1_RT5                      EXTI_RTSR1_RT5_Msk                      /*!< Rising trigger configuration for input line 5 */
7172 #define EXTI_RTSR1_RT6_Pos                  (6U)
7173 #define EXTI_RTSR1_RT6_Msk                  (0x1UL << EXTI_RTSR1_RT6_Pos)           /*!< 0x00000040 */
7174 #define EXTI_RTSR1_RT6                      EXTI_RTSR1_RT6_Msk                      /*!< Rising trigger configuration for input line 6 */
7175 #define EXTI_RTSR1_RT7_Pos                  (7U)
7176 #define EXTI_RTSR1_RT7_Msk                  (0x1UL << EXTI_RTSR1_RT7_Pos)           /*!< 0x00000080 */
7177 #define EXTI_RTSR1_RT7                      EXTI_RTSR1_RT7_Msk                      /*!< Rising trigger configuration for input line 7 */
7178 #define EXTI_RTSR1_RT8_Pos                  (8U)
7179 #define EXTI_RTSR1_RT8_Msk                  (0x1UL << EXTI_RTSR1_RT8_Pos)           /*!< 0x00000100 */
7180 #define EXTI_RTSR1_RT8                      EXTI_RTSR1_RT8_Msk                      /*!< Rising trigger configuration for input line 8 */
7181 #define EXTI_RTSR1_RT9_Pos                  (9U)
7182 #define EXTI_RTSR1_RT9_Msk                  (0x1UL << EXTI_RTSR1_RT9_Pos)           /*!< 0x00000200 */
7183 #define EXTI_RTSR1_RT9                      EXTI_RTSR1_RT9_Msk                      /*!< Rising trigger configuration for input line 9 */
7184 #define EXTI_RTSR1_RT10_Pos                 (10U)
7185 #define EXTI_RTSR1_RT10_Msk                 (0x1UL << EXTI_RTSR1_RT10_Pos)          /*!< 0x00000400 */
7186 #define EXTI_RTSR1_RT10                     EXTI_RTSR1_RT10_Msk                     /*!< Rising trigger configuration for input line 10 */
7187 #define EXTI_RTSR1_RT11_Pos                 (11U)
7188 #define EXTI_RTSR1_RT11_Msk                 (0x1UL << EXTI_RTSR1_RT11_Pos)          /*!< 0x00000800 */
7189 #define EXTI_RTSR1_RT11                     EXTI_RTSR1_RT11_Msk                     /*!< Rising trigger configuration for input line 11 */
7190 #define EXTI_RTSR1_RT12_Pos                 (12U)
7191 #define EXTI_RTSR1_RT12_Msk                 (0x1UL << EXTI_RTSR1_RT12_Pos)          /*!< 0x00001000 */
7192 #define EXTI_RTSR1_RT12                     EXTI_RTSR1_RT12_Msk                     /*!< Rising trigger configuration for input line 12 */
7193 #define EXTI_RTSR1_RT13_Pos                 (13U)
7194 #define EXTI_RTSR1_RT13_Msk                 (0x1UL << EXTI_RTSR1_RT13_Pos)          /*!< 0x00002000 */
7195 #define EXTI_RTSR1_RT13                     EXTI_RTSR1_RT13_Msk                     /*!< Rising trigger configuration for input line 13 */
7196 #define EXTI_RTSR1_RT14_Pos                 (14U)
7197 #define EXTI_RTSR1_RT14_Msk                 (0x1UL << EXTI_RTSR1_RT14_Pos)          /*!< 0x00004000 */
7198 #define EXTI_RTSR1_RT14                     EXTI_RTSR1_RT14_Msk                     /*!< Rising trigger configuration for input line 14 */
7199 #define EXTI_RTSR1_RT15_Pos                 (15U)
7200 #define EXTI_RTSR1_RT15_Msk                 (0x1UL << EXTI_RTSR1_RT15_Pos)          /*!< 0x00008000 */
7201 #define EXTI_RTSR1_RT15                     EXTI_RTSR1_RT15_Msk                     /*!< Rising trigger configuration for input line 15 */
7202 #define EXTI_RTSR1_RT16_Pos                 (16U)
7203 #define EXTI_RTSR1_RT16_Msk                 (0x1UL << EXTI_RTSR1_RT16_Pos)          /*!< 0x00010000 */
7204 #define EXTI_RTSR1_RT16                     EXTI_RTSR1_RT16_Msk                     /*!< Rising trigger configuration for input line 16 */
7205 #define EXTI_RTSR1_RT17_Pos                 (17U)
7206 #define EXTI_RTSR1_RT17_Msk                 (0x1UL << EXTI_RTSR1_RT17_Pos)          /*!< 0x00020000 */
7207 #define EXTI_RTSR1_RT17                     EXTI_RTSR1_RT17_Msk                     /*!< Rising trigger configuration for input line 17 */
7208 #define EXTI_RTSR1_RT18_Pos                 (18U)
7209 #define EXTI_RTSR1_RT18_Msk                 (0x1UL << EXTI_RTSR1_RT18_Pos)          /*!< 0x00040000 */
7210 #define EXTI_RTSR1_RT18                     EXTI_RTSR1_RT18_Msk                     /*!< Rising trigger configuration for input line 18 */
7211 #define EXTI_RTSR1_RT19_Pos                 (19U)
7212 #define EXTI_RTSR1_RT19_Msk                 (0x1UL << EXTI_RTSR1_RT19_Pos)          /*!< 0x00080000 */
7213 #define EXTI_RTSR1_RT19                     EXTI_RTSR1_RT19_Msk                     /*!< Rising trigger configuration for input line 19 */
7214 #define EXTI_RTSR1_RT20_Pos                 (20U)
7215 #define EXTI_RTSR1_RT20_Msk                 (0x1UL << EXTI_RTSR1_RT20_Pos)          /*!< 0x00100000 */
7216 #define EXTI_RTSR1_RT20                     EXTI_RTSR1_RT20_Msk                     /*!< Rising trigger configuration for input line 20 */
7217 #define EXTI_RTSR1_RT21_Pos                 (21U)
7218 #define EXTI_RTSR1_RT21_Msk                 (0x1UL << EXTI_RTSR1_RT21_Pos)          /*!< 0x00200000 */
7219 #define EXTI_RTSR1_RT21                     EXTI_RTSR1_RT21_Msk                     /*!< Rising trigger configuration for input line 21 */
7220 #define EXTI_RTSR1_RT22_Pos                 (22U)
7221 #define EXTI_RTSR1_RT22_Msk                 (0x1UL << EXTI_RTSR1_RT22_Pos)          /*!< 0x00400000 */
7222 #define EXTI_RTSR1_RT22                     EXTI_RTSR1_RT22_Msk                     /*!< Rising trigger configuration for input line 22 */
7223 #define EXTI_RTSR1_RT23_Pos                 (23U)
7224 #define EXTI_RTSR1_RT23_Msk                 (0x1UL << EXTI_RTSR1_RT23_Pos)          /*!< 0x00800000 */
7225 #define EXTI_RTSR1_RT23                     EXTI_RTSR1_RT23_Msk                     /*!< Rising trigger configuration for input line 23 */
7226 #define EXTI_RTSR1_RT24_Pos                 (24U)
7227 #define EXTI_RTSR1_RT24_Msk                 (0x1UL << EXTI_RTSR1_RT24_Pos)          /*!< 0x01000000 */
7228 #define EXTI_RTSR1_RT24                     EXTI_RTSR1_RT24_Msk                     /*!< Rising trigger configuration for input line 24 */
7229 
7230 /******************  Bit definition for EXTI_FTSR1 register  ******************/
7231 #define EXTI_FTSR1_FT0_Pos                  (0U)
7232 #define EXTI_FTSR1_FT0_Msk                  (0x1UL << EXTI_FTSR1_FT0_Pos)           /*!< 0x00000001 */
7233 #define EXTI_FTSR1_FT0                      EXTI_FTSR1_FT0_Msk                      /*!< Falling trigger configuration for input line 0 */
7234 #define EXTI_FTSR1_FT1_Pos                  (1U)
7235 #define EXTI_FTSR1_FT1_Msk                  (0x1UL << EXTI_FTSR1_FT1_Pos)           /*!< 0x00000002 */
7236 #define EXTI_FTSR1_FT1                      EXTI_FTSR1_FT1_Msk                      /*!< Falling trigger configuration for input line 1 */
7237 #define EXTI_FTSR1_FT2_Pos                  (2U)
7238 #define EXTI_FTSR1_FT2_Msk                  (0x1UL << EXTI_FTSR1_FT2_Pos)           /*!< 0x00000004 */
7239 #define EXTI_FTSR1_FT2                      EXTI_FTSR1_FT2_Msk                      /*!< Falling trigger configuration for input line 2 */
7240 #define EXTI_FTSR1_FT3_Pos                  (3U)
7241 #define EXTI_FTSR1_FT3_Msk                  (0x1UL << EXTI_FTSR1_FT3_Pos)           /*!< 0x00000008 */
7242 #define EXTI_FTSR1_FT3                      EXTI_FTSR1_FT3_Msk                      /*!< Falling trigger configuration for input line 3 */
7243 #define EXTI_FTSR1_FT4_Pos                  (4U)
7244 #define EXTI_FTSR1_FT4_Msk                  (0x1UL << EXTI_FTSR1_FT4_Pos)           /*!< 0x00000010 */
7245 #define EXTI_FTSR1_FT4                      EXTI_FTSR1_FT4_Msk                      /*!< Falling trigger configuration for input line 4 */
7246 #define EXTI_FTSR1_FT5_Pos                  (5U)
7247 #define EXTI_FTSR1_FT5_Msk                  (0x1UL << EXTI_FTSR1_FT5_Pos)           /*!< 0x00000020 */
7248 #define EXTI_FTSR1_FT5                      EXTI_FTSR1_FT5_Msk                      /*!< Falling trigger configuration for input line 5 */
7249 #define EXTI_FTSR1_FT6_Pos                  (6U)
7250 #define EXTI_FTSR1_FT6_Msk                  (0x1UL << EXTI_FTSR1_FT6_Pos)           /*!< 0x00000040 */
7251 #define EXTI_FTSR1_FT6                      EXTI_FTSR1_FT6_Msk                      /*!< Falling trigger configuration for input line 6 */
7252 #define EXTI_FTSR1_FT7_Pos                  (7U)
7253 #define EXTI_FTSR1_FT7_Msk                  (0x1UL << EXTI_FTSR1_FT7_Pos)           /*!< 0x00000080 */
7254 #define EXTI_FTSR1_FT7                      EXTI_FTSR1_FT7_Msk                      /*!< Falling trigger configuration for input line 7 */
7255 #define EXTI_FTSR1_FT8_Pos                  (8U)
7256 #define EXTI_FTSR1_FT8_Msk                  (0x1UL << EXTI_FTSR1_FT8_Pos)           /*!< 0x00000100 */
7257 #define EXTI_FTSR1_FT8                      EXTI_FTSR1_FT8_Msk                      /*!< Falling trigger configuration for input line 8 */
7258 #define EXTI_FTSR1_FT9_Pos                  (9U)
7259 #define EXTI_FTSR1_FT9_Msk                  (0x1UL << EXTI_FTSR1_FT9_Pos)           /*!< 0x00000200 */
7260 #define EXTI_FTSR1_FT9                      EXTI_FTSR1_FT9_Msk                      /*!< Falling trigger configuration for input line 9 */
7261 #define EXTI_FTSR1_FT10_Pos                 (10U)
7262 #define EXTI_FTSR1_FT10_Msk                 (0x1UL << EXTI_FTSR1_FT10_Pos)          /*!< 0x00000400 */
7263 #define EXTI_FTSR1_FT10                     EXTI_FTSR1_FT10_Msk                     /*!< Falling trigger configuration for input line 10 */
7264 #define EXTI_FTSR1_FT11_Pos                 (11U)
7265 #define EXTI_FTSR1_FT11_Msk                 (0x1UL << EXTI_FTSR1_FT11_Pos)          /*!< 0x00000800 */
7266 #define EXTI_FTSR1_FT11                     EXTI_FTSR1_FT11_Msk                     /*!< Falling trigger configuration for input line 11 */
7267 #define EXTI_FTSR1_FT12_Pos                 (12U)
7268 #define EXTI_FTSR1_FT12_Msk                 (0x1UL << EXTI_FTSR1_FT12_Pos)          /*!< 0x00001000 */
7269 #define EXTI_FTSR1_FT12                     EXTI_FTSR1_FT12_Msk                     /*!< Falling trigger configuration for input line 12 */
7270 #define EXTI_FTSR1_FT13_Pos                 (13U)
7271 #define EXTI_FTSR1_FT13_Msk                 (0x1UL << EXTI_FTSR1_FT13_Pos)          /*!< 0x00002000 */
7272 #define EXTI_FTSR1_FT13                     EXTI_FTSR1_FT13_Msk                     /*!< Falling trigger configuration for input line 13 */
7273 #define EXTI_FTSR1_FT14_Pos                 (14U)
7274 #define EXTI_FTSR1_FT14_Msk                 (0x1UL << EXTI_FTSR1_FT14_Pos)          /*!< 0x00004000 */
7275 #define EXTI_FTSR1_FT14                     EXTI_FTSR1_FT14_Msk                     /*!< Falling trigger configuration for input line 14 */
7276 #define EXTI_FTSR1_FT15_Pos                 (15U)
7277 #define EXTI_FTSR1_FT15_Msk                 (0x1UL << EXTI_FTSR1_FT15_Pos)          /*!< 0x00008000 */
7278 #define EXTI_FTSR1_FT15                     EXTI_FTSR1_FT15_Msk                     /*!< Falling trigger configuration for input line 15 */
7279 #define EXTI_FTSR1_FT16_Pos                 (16U)
7280 #define EXTI_FTSR1_FT16_Msk                 (0x1UL << EXTI_FTSR1_FT16_Pos)          /*!< 0x00010000 */
7281 #define EXTI_FTSR1_FT16                     EXTI_FTSR1_FT16_Msk                     /*!< Falling trigger configuration for input line 16 */
7282 #define EXTI_FTSR1_FT17_Pos                 (17U)
7283 #define EXTI_FTSR1_FT17_Msk                 (0x1UL << EXTI_FTSR1_FT17_Pos)          /*!< 0x00020000 */
7284 #define EXTI_FTSR1_FT17                     EXTI_FTSR1_FT17_Msk                     /*!< Falling trigger configuration for input line 17 */
7285 #define EXTI_FTSR1_FT18_Pos                 (18U)
7286 #define EXTI_FTSR1_FT18_Msk                 (0x1UL << EXTI_FTSR1_FT18_Pos)          /*!< 0x00040000 */
7287 #define EXTI_FTSR1_FT18                     EXTI_FTSR1_FT18_Msk                     /*!< Falling trigger configuration for input line 18 */
7288 #define EXTI_FTSR1_FT19_Pos                 (19U)
7289 #define EXTI_FTSR1_FT19_Msk                 (0x1UL << EXTI_FTSR1_FT19_Pos)          /*!< 0x00080000 */
7290 #define EXTI_FTSR1_FT19                     EXTI_FTSR1_FT19_Msk                     /*!< Falling trigger configuration for input line 19 */
7291 #define EXTI_FTSR1_FT20_Pos                 (20U)
7292 #define EXTI_FTSR1_FT20_Msk                 (0x1UL << EXTI_FTSR1_FT20_Pos)          /*!< 0x00100000 */
7293 #define EXTI_FTSR1_FT20                     EXTI_FTSR1_FT20_Msk                     /*!< Falling trigger configuration for input line 20 */
7294 #define EXTI_FTSR1_FT21_Pos                 (21U)
7295 #define EXTI_FTSR1_FT21_Msk                 (0x1UL << EXTI_FTSR1_FT21_Pos)          /*!< 0x00200000 */
7296 #define EXTI_FTSR1_FT21                     EXTI_FTSR1_FT21_Msk                     /*!< Falling trigger configuration for input line 21 */
7297 #define EXTI_FTSR1_FT22_Pos                 (22U)
7298 #define EXTI_FTSR1_FT22_Msk                 (0x1UL << EXTI_FTSR1_FT22_Pos)          /*!< 0x00400000 */
7299 #define EXTI_FTSR1_FT22                     EXTI_FTSR1_FT22_Msk                     /*!< Falling trigger configuration for input line 22 */
7300 #define EXTI_FTSR1_FT23_Pos                 (23U)
7301 #define EXTI_FTSR1_FT23_Msk                 (0x1UL << EXTI_FTSR1_FT23_Pos)          /*!< 0x00800000 */
7302 #define EXTI_FTSR1_FT23                     EXTI_FTSR1_FT23_Msk                     /*!< Falling trigger configuration for input line 23 */
7303 #define EXTI_FTSR1_FT24_Pos                 (24U)
7304 #define EXTI_FTSR1_FT24_Msk                 (0x1UL << EXTI_FTSR1_FT24_Pos)          /*!< 0x01000000 */
7305 #define EXTI_FTSR1_FT24                     EXTI_FTSR1_FT24_Msk                     /*!< Falling trigger configuration for input line 24 */
7306 
7307 /******************  Bit definition for EXTI_SWIER1 register  *****************/
7308 #define EXTI_SWIER1_SWI0_Pos                (0U)
7309 #define EXTI_SWIER1_SWI0_Msk                (0x1UL << EXTI_SWIER1_SWI0_Pos)         /*!< 0x00000001 */
7310 #define EXTI_SWIER1_SWI0                    EXTI_SWIER1_SWI0_Msk                    /*!< Software Interrupt on line 0 */
7311 #define EXTI_SWIER1_SWI1_Pos                (1U)
7312 #define EXTI_SWIER1_SWI1_Msk                (0x1UL << EXTI_SWIER1_SWI1_Pos)         /*!< 0x00000002 */
7313 #define EXTI_SWIER1_SWI1                    EXTI_SWIER1_SWI1_Msk                    /*!< Software Interrupt on line 1 */
7314 #define EXTI_SWIER1_SWI2_Pos                (2U)
7315 #define EXTI_SWIER1_SWI2_Msk                (0x1UL << EXTI_SWIER1_SWI2_Pos)         /*!< 0x00000004 */
7316 #define EXTI_SWIER1_SWI2                    EXTI_SWIER1_SWI2_Msk                    /*!< Software Interrupt on line 2 */
7317 #define EXTI_SWIER1_SWI3_Pos                (3U)
7318 #define EXTI_SWIER1_SWI3_Msk                (0x1UL << EXTI_SWIER1_SWI3_Pos)         /*!< 0x00000008 */
7319 #define EXTI_SWIER1_SWI3                    EXTI_SWIER1_SWI3_Msk                    /*!< Software Interrupt on line 3 */
7320 #define EXTI_SWIER1_SWI4_Pos                (4U)
7321 #define EXTI_SWIER1_SWI4_Msk                (0x1UL << EXTI_SWIER1_SWI4_Pos)         /*!< 0x00000010 */
7322 #define EXTI_SWIER1_SWI4                    EXTI_SWIER1_SWI4_Msk                    /*!< Software Interrupt on line 4 */
7323 #define EXTI_SWIER1_SWI5_Pos                (5U)
7324 #define EXTI_SWIER1_SWI5_Msk                (0x1UL << EXTI_SWIER1_SWI5_Pos)         /*!< 0x00000020 */
7325 #define EXTI_SWIER1_SWI5                    EXTI_SWIER1_SWI5_Msk                    /*!< Software Interrupt on line 5 */
7326 #define EXTI_SWIER1_SWI6_Pos                (6U)
7327 #define EXTI_SWIER1_SWI6_Msk                (0x1UL << EXTI_SWIER1_SWI6_Pos)         /*!< 0x00000040 */
7328 #define EXTI_SWIER1_SWI6                    EXTI_SWIER1_SWI6_Msk                    /*!< Software Interrupt on line 6 */
7329 #define EXTI_SWIER1_SWI7_Pos                (7U)
7330 #define EXTI_SWIER1_SWI7_Msk                (0x1UL << EXTI_SWIER1_SWI7_Pos)         /*!< 0x00000080 */
7331 #define EXTI_SWIER1_SWI7                    EXTI_SWIER1_SWI7_Msk                    /*!< Software Interrupt on line 7 */
7332 #define EXTI_SWIER1_SWI8_Pos                (8U)
7333 #define EXTI_SWIER1_SWI8_Msk                (0x1UL << EXTI_SWIER1_SWI8_Pos)         /*!< 0x00000100 */
7334 #define EXTI_SWIER1_SWI8                    EXTI_SWIER1_SWI8_Msk                    /*!< Software Interrupt on line 8 */
7335 #define EXTI_SWIER1_SWI9_Pos                (9U)
7336 #define EXTI_SWIER1_SWI9_Msk                (0x1UL << EXTI_SWIER1_SWI9_Pos)         /*!< 0x00000200 */
7337 #define EXTI_SWIER1_SWI9                    EXTI_SWIER1_SWI9_Msk                    /*!< Software Interrupt on line 9 */
7338 #define EXTI_SWIER1_SWI10_Pos               (10U)
7339 #define EXTI_SWIER1_SWI10_Msk               (0x1UL << EXTI_SWIER1_SWI10_Pos)        /*!< 0x00000400 */
7340 #define EXTI_SWIER1_SWI10                   EXTI_SWIER1_SWI10_Msk                   /*!< Software Interrupt on line 10 */
7341 #define EXTI_SWIER1_SWI11_Pos               (11U)
7342 #define EXTI_SWIER1_SWI11_Msk               (0x1UL << EXTI_SWIER1_SWI11_Pos)        /*!< 0x00000800 */
7343 #define EXTI_SWIER1_SWI11                   EXTI_SWIER1_SWI11_Msk                   /*!< Software Interrupt on line 11 */
7344 #define EXTI_SWIER1_SWI12_Pos               (12U)
7345 #define EXTI_SWIER1_SWI12_Msk               (0x1UL << EXTI_SWIER1_SWI12_Pos)        /*!< 0x00001000 */
7346 #define EXTI_SWIER1_SWI12                   EXTI_SWIER1_SWI12_Msk                   /*!< Software Interrupt on line 12 */
7347 #define EXTI_SWIER1_SWI13_Pos               (13U)
7348 #define EXTI_SWIER1_SWI13_Msk               (0x1UL << EXTI_SWIER1_SWI13_Pos)        /*!< 0x00002000 */
7349 #define EXTI_SWIER1_SWI13                   EXTI_SWIER1_SWI13_Msk                   /*!< Software Interrupt on line 13 */
7350 #define EXTI_SWIER1_SWI14_Pos               (14U)
7351 #define EXTI_SWIER1_SWI14_Msk               (0x1UL << EXTI_SWIER1_SWI14_Pos)        /*!< 0x00004000 */
7352 #define EXTI_SWIER1_SWI14                   EXTI_SWIER1_SWI14_Msk                   /*!< Software Interrupt on line 14 */
7353 #define EXTI_SWIER1_SWI15_Pos               (15U)
7354 #define EXTI_SWIER1_SWI15_Msk               (0x1UL << EXTI_SWIER1_SWI15_Pos)        /*!< 0x00008000 */
7355 #define EXTI_SWIER1_SWI15                   EXTI_SWIER1_SWI15_Msk                   /*!< Software Interrupt on line 15 */
7356 #define EXTI_SWIER1_SWI16_Pos               (16U)
7357 #define EXTI_SWIER1_SWI16_Msk               (0x1UL << EXTI_SWIER1_SWI16_Pos)        /*!< 0x00010000 */
7358 #define EXTI_SWIER1_SWI16                   EXTI_SWIER1_SWI16_Msk                   /*!< Software Interrupt on line 16 */
7359 #define EXTI_SWIER1_SWI17_Pos               (17U)
7360 #define EXTI_SWIER1_SWI17_Msk               (0x1UL << EXTI_SWIER1_SWI17_Pos)        /*!< 0x00020000 */
7361 #define EXTI_SWIER1_SWI17                   EXTI_SWIER1_SWI17_Msk                   /*!< Software Interrupt on line 17 */
7362 #define EXTI_SWIER1_SWI18_Pos               (18U)
7363 #define EXTI_SWIER1_SWI18_Msk               (0x1UL << EXTI_SWIER1_SWI18_Pos)        /*!< 0x00040000 */
7364 #define EXTI_SWIER1_SWI18                   EXTI_SWIER1_SWI18_Msk                   /*!< Software Interrupt on line 18 */
7365 #define EXTI_SWIER1_SWI19_Pos               (19U)
7366 #define EXTI_SWIER1_SWI19_Msk               (0x1UL << EXTI_SWIER1_SWI19_Pos)        /*!< 0x00080000 */
7367 #define EXTI_SWIER1_SWI19                   EXTI_SWIER1_SWI19_Msk                   /*!< Software Interrupt on line 19 */
7368 #define EXTI_SWIER1_SWI20_Pos               (20U)
7369 #define EXTI_SWIER1_SWI20_Msk               (0x1UL << EXTI_SWIER1_SWI20_Pos)        /*!< 0x00100000 */
7370 #define EXTI_SWIER1_SWI20                   EXTI_SWIER1_SWI20_Msk                   /*!< Software Interrupt on line 20 */
7371 #define EXTI_SWIER1_SWI21_Pos               (21U)
7372 #define EXTI_SWIER1_SWI21_Msk               (0x1UL << EXTI_SWIER1_SWI21_Pos)        /*!< 0x00200000 */
7373 #define EXTI_SWIER1_SWI21                   EXTI_SWIER1_SWI21_Msk                   /*!< Software Interrupt on line 21 */
7374 #define EXTI_SWIER1_SWI22_Pos               (22U)
7375 #define EXTI_SWIER1_SWI22_Msk               (0x1UL << EXTI_SWIER1_SWI22_Pos)        /*!< 0x00400000 */
7376 #define EXTI_SWIER1_SWI22                   EXTI_SWIER1_SWI22_Msk                   /*!< Software Interrupt on line 22 */
7377 #define EXTI_SWIER1_SWI23_Pos               (23U)
7378 #define EXTI_SWIER1_SWI23_Msk               (0x1UL << EXTI_SWIER1_SWI23_Pos)        /*!< 0x00800000 */
7379 #define EXTI_SWIER1_SWI23                   EXTI_SWIER1_SWI23_Msk                   /*!< Software Interrupt on line 23 */
7380 #define EXTI_SWIER1_SWI24_Pos               (24U)
7381 #define EXTI_SWIER1_SWI24_Msk               (0x1UL << EXTI_SWIER1_SWI24_Pos)        /*!< 0x01000000 */
7382 #define EXTI_SWIER1_SWI24                   EXTI_SWIER1_SWI24_Msk                   /*!< Software Interrupt on line 24 */
7383 
7384 /*******************  Bit definition for EXTI_RPR1 register  ******************/
7385 #define EXTI_RPR1_RPIF0_Pos                 (0U)
7386 #define EXTI_RPR1_RPIF0_Msk                 (0x1UL << EXTI_RPR1_RPIF0_Pos)          /*!< 0x00000001 */
7387 #define EXTI_RPR1_RPIF0                     EXTI_RPR1_RPIF0_Msk                     /*!< Rising Pending Interrupt Flag on line 0 */
7388 #define EXTI_RPR1_RPIF1_Pos                 (1U)
7389 #define EXTI_RPR1_RPIF1_Msk                 (0x1UL << EXTI_RPR1_RPIF1_Pos)          /*!< 0x00000002 */
7390 #define EXTI_RPR1_RPIF1                     EXTI_RPR1_RPIF1_Msk                     /*!< Rising Pending Interrupt Flag on line 1 */
7391 #define EXTI_RPR1_RPIF2_Pos                 (2U)
7392 #define EXTI_RPR1_RPIF2_Msk                 (0x1UL << EXTI_RPR1_RPIF2_Pos)          /*!< 0x00000004 */
7393 #define EXTI_RPR1_RPIF2                     EXTI_RPR1_RPIF2_Msk                     /*!< Rising Pending Interrupt Flag on line 2 */
7394 #define EXTI_RPR1_RPIF3_Pos                 (3U)
7395 #define EXTI_RPR1_RPIF3_Msk                 (0x1UL << EXTI_RPR1_RPIF3_Pos)          /*!< 0x00000008 */
7396 #define EXTI_RPR1_RPIF3                     EXTI_RPR1_RPIF3_Msk                     /*!< Rising Pending Interrupt Flag on line 3 */
7397 #define EXTI_RPR1_RPIF4_Pos                 (4U)
7398 #define EXTI_RPR1_RPIF4_Msk                 (0x1UL << EXTI_RPR1_RPIF4_Pos)          /*!< 0x00000010 */
7399 #define EXTI_RPR1_RPIF4                     EXTI_RPR1_RPIF4_Msk                     /*!< Rising Pending Interrupt Flag on line 4 */
7400 #define EXTI_RPR1_RPIF5_Pos                 (5U)
7401 #define EXTI_RPR1_RPIF5_Msk                 (0x1UL << EXTI_RPR1_RPIF5_Pos)          /*!< 0x00000020 */
7402 #define EXTI_RPR1_RPIF5                     EXTI_RPR1_RPIF5_Msk                     /*!< Rising Pending Interrupt Flag on line 5 */
7403 #define EXTI_RPR1_RPIF6_Pos                 (6U)
7404 #define EXTI_RPR1_RPIF6_Msk                 (0x1UL << EXTI_RPR1_RPIF6_Pos)          /*!< 0x00000040 */
7405 #define EXTI_RPR1_RPIF6                     EXTI_RPR1_RPIF6_Msk                     /*!< Rising Pending Interrupt Flag on line 6 */
7406 #define EXTI_RPR1_RPIF7_Pos                 (7U)
7407 #define EXTI_RPR1_RPIF7_Msk                 (0x1UL << EXTI_RPR1_RPIF7_Pos)          /*!< 0x00000080 */
7408 #define EXTI_RPR1_RPIF7                     EXTI_RPR1_RPIF7_Msk                     /*!< Rising Pending Interrupt Flag on line 7 */
7409 #define EXTI_RPR1_RPIF8_Pos                 (8U)
7410 #define EXTI_RPR1_RPIF8_Msk                 (0x1UL << EXTI_RPR1_RPIF8_Pos)          /*!< 0x00000100 */
7411 #define EXTI_RPR1_RPIF8                     EXTI_RPR1_RPIF8_Msk                     /*!< Rising Pending Interrupt Flag on line 8 */
7412 #define EXTI_RPR1_RPIF9_Pos                 (9U)
7413 #define EXTI_RPR1_RPIF9_Msk                 (0x1UL << EXTI_RPR1_RPIF9_Pos)          /*!< 0x00000200 */
7414 #define EXTI_RPR1_RPIF9                     EXTI_RPR1_RPIF9_Msk                     /*!< Rising Pending Interrupt Flag on line 9 */
7415 #define EXTI_RPR1_RPIF10_Pos                (10U)
7416 #define EXTI_RPR1_RPIF10_Msk                (0x1UL << EXTI_RPR1_RPIF10_Pos)         /*!< 0x00000400 */
7417 #define EXTI_RPR1_RPIF10                    EXTI_RPR1_RPIF10_Msk                    /*!< Rising Pending Interrupt Flag on line 10 */
7418 #define EXTI_RPR1_RPIF11_Pos                (11U)
7419 #define EXTI_RPR1_RPIF11_Msk                (0x1UL << EXTI_RPR1_RPIF11_Pos)         /*!< 0x00000800 */
7420 #define EXTI_RPR1_RPIF11                    EXTI_RPR1_RPIF11_Msk                    /*!< Rising Pending Interrupt Flag on line 11 */
7421 #define EXTI_RPR1_RPIF12_Pos                (12U)
7422 #define EXTI_RPR1_RPIF12_Msk                (0x1UL << EXTI_RPR1_RPIF12_Pos)         /*!< 0x00001000 */
7423 #define EXTI_RPR1_RPIF12                    EXTI_RPR1_RPIF12_Msk                    /*!< Rising Pending Interrupt Flag on line 12 */
7424 #define EXTI_RPR1_RPIF13_Pos                (13U)
7425 #define EXTI_RPR1_RPIF13_Msk                (0x1UL << EXTI_RPR1_RPIF13_Pos)         /*!< 0x00002000 */
7426 #define EXTI_RPR1_RPIF13                    EXTI_RPR1_RPIF13_Msk                    /*!< Rising Pending Interrupt Flag on line 13 */
7427 #define EXTI_RPR1_RPIF14_Pos                (14U)
7428 #define EXTI_RPR1_RPIF14_Msk                (0x1UL << EXTI_RPR1_RPIF14_Pos)         /*!< 0x00004000 */
7429 #define EXTI_RPR1_RPIF14                    EXTI_RPR1_RPIF14_Msk                    /*!< Rising Pending Interrupt Flag on line 14 */
7430 #define EXTI_RPR1_RPIF15_Pos                (15U)
7431 #define EXTI_RPR1_RPIF15_Msk                (0x1UL << EXTI_RPR1_RPIF15_Pos)         /*!< 0x00008000 */
7432 #define EXTI_RPR1_RPIF15                    EXTI_RPR1_RPIF15_Msk                    /*!< Rising Pending Interrupt Flag on line 15 */
7433 #define EXTI_RPR1_RPIF16_Pos                (16U)
7434 #define EXTI_RPR1_RPIF16_Msk                (0x1UL << EXTI_RPR1_RPIF16_Pos)         /*!< 0x00010000 */
7435 #define EXTI_RPR1_RPIF16                    EXTI_RPR1_RPIF16_Msk                    /*!< Rising Pending Interrupt Flag on line 16 */
7436 #define EXTI_RPR1_RPIF17_Pos                (17U)
7437 #define EXTI_RPR1_RPIF17_Msk                (0x1UL << EXTI_RPR1_RPIF17_Pos)         /*!< 0x00020000 */
7438 #define EXTI_RPR1_RPIF17                    EXTI_RPR1_RPIF17_Msk                    /*!< Rising Pending Interrupt Flag on line 17 */
7439 #define EXTI_RPR1_RPIF18_Pos                (18U)
7440 #define EXTI_RPR1_RPIF18_Msk                (0x1UL << EXTI_RPR1_RPIF18_Pos)         /*!< 0x00040000 */
7441 #define EXTI_RPR1_RPIF18                    EXTI_RPR1_RPIF18_Msk                    /*!< Rising Pending Interrupt Flag on line 18 */
7442 #define EXTI_RPR1_RPIF19_Pos                (19U)
7443 #define EXTI_RPR1_RPIF19_Msk                (0x1UL << EXTI_RPR1_RPIF19_Pos)         /*!< 0x00080000 */
7444 #define EXTI_RPR1_RPIF19                    EXTI_RPR1_RPIF19_Msk                    /*!< Rising Pending Interrupt Flag on line 19 */
7445 #define EXTI_RPR1_RPIF20_Pos                (20U)
7446 #define EXTI_RPR1_RPIF20_Msk                (0x1UL << EXTI_RPR1_RPIF20_Pos)         /*!< 0x00100000 */
7447 #define EXTI_RPR1_RPIF20                    EXTI_RPR1_RPIF20_Msk                    /*!< Rising Pending Interrupt Flag on line 20 */
7448 #define EXTI_RPR1_RPIF21_Pos                (21U)
7449 #define EXTI_RPR1_RPIF21_Msk                (0x1UL << EXTI_RPR1_RPIF21_Pos)         /*!< 0x00200000 */
7450 #define EXTI_RPR1_RPIF21                    EXTI_RPR1_RPIF21_Msk                    /*!< Rising Pending Interrupt Flag on line 21 */
7451 #define EXTI_RPR1_RPIF22_Pos                (22U)
7452 #define EXTI_RPR1_RPIF22_Msk                (0x1UL << EXTI_RPR1_RPIF22_Pos)         /*!< 0x00400000 */
7453 #define EXTI_RPR1_RPIF22                    EXTI_RPR1_RPIF22_Msk                    /*!< Rising Pending Interrupt Flag on line 22 */
7454 #define EXTI_RPR1_RPIF23_Pos                (23U)
7455 #define EXTI_RPR1_RPIF23_Msk                (0x1UL << EXTI_RPR1_RPIF23_Pos)         /*!< 0x00800000 */
7456 #define EXTI_RPR1_RPIF23                    EXTI_RPR1_RPIF23_Msk                    /*!< Rising Pending Interrupt Flag on line 23 */
7457 #define EXTI_RPR1_RPIF24_Pos                (24U)
7458 #define EXTI_RPR1_RPIF24_Msk                (0x1UL << EXTI_RPR1_RPIF24_Pos)         /*!< 0x01000000 */
7459 #define EXTI_RPR1_RPIF24                    EXTI_RPR1_RPIF24_Msk                    /*!< Rising Pending Interrupt Flag on line 24 */
7460 
7461 /*******************  Bit definition for EXTI_FPR1 register  ******************/
7462 #define EXTI_FPR1_FPIF0_Pos                 (0U)
7463 #define EXTI_FPR1_FPIF0_Msk                 (0x1UL << EXTI_FPR1_FPIF0_Pos)          /*!< 0x00000001 */
7464 #define EXTI_FPR1_FPIF0                     EXTI_FPR1_FPIF0_Msk                     /*!< Falling Pending Interrupt Flag on line 0 */
7465 #define EXTI_FPR1_FPIF1_Pos                 (1U)
7466 #define EXTI_FPR1_FPIF1_Msk                 (0x1UL << EXTI_FPR1_FPIF1_Pos)          /*!< 0x00000002 */
7467 #define EXTI_FPR1_FPIF1                     EXTI_FPR1_FPIF1_Msk                     /*!< Falling Pending Interrupt Flag on line 1 */
7468 #define EXTI_FPR1_FPIF2_Pos                 (2U)
7469 #define EXTI_FPR1_FPIF2_Msk                 (0x1UL << EXTI_FPR1_FPIF2_Pos)          /*!< 0x00000004 */
7470 #define EXTI_FPR1_FPIF2                     EXTI_FPR1_FPIF2_Msk                     /*!< Falling Pending Interrupt Flag on line 2 */
7471 #define EXTI_FPR1_FPIF3_Pos                 (3U)
7472 #define EXTI_FPR1_FPIF3_Msk                 (0x1UL << EXTI_FPR1_FPIF3_Pos)          /*!< 0x00000008 */
7473 #define EXTI_FPR1_FPIF3                     EXTI_FPR1_FPIF3_Msk                     /*!< Falling Pending Interrupt Flag on line 3 */
7474 #define EXTI_FPR1_FPIF4_Pos                 (4U)
7475 #define EXTI_FPR1_FPIF4_Msk                 (0x1UL << EXTI_FPR1_FPIF4_Pos)          /*!< 0x00000010 */
7476 #define EXTI_FPR1_FPIF4                     EXTI_FPR1_FPIF4_Msk                     /*!< Falling Pending Interrupt Flag on line 4 */
7477 #define EXTI_FPR1_FPIF5_Pos                 (5U)
7478 #define EXTI_FPR1_FPIF5_Msk                 (0x1UL << EXTI_FPR1_FPIF5_Pos)          /*!< 0x00000020 */
7479 #define EXTI_FPR1_FPIF5                     EXTI_FPR1_FPIF5_Msk                     /*!< Falling Pending Interrupt Flag on line 5 */
7480 #define EXTI_FPR1_FPIF6_Pos                 (6U)
7481 #define EXTI_FPR1_FPIF6_Msk                 (0x1UL << EXTI_FPR1_FPIF6_Pos)          /*!< 0x00000040 */
7482 #define EXTI_FPR1_FPIF6                     EXTI_FPR1_FPIF6_Msk                     /*!< Falling Pending Interrupt Flag on line 6 */
7483 #define EXTI_FPR1_FPIF7_Pos                 (7U)
7484 #define EXTI_FPR1_FPIF7_Msk                 (0x1UL << EXTI_FPR1_FPIF7_Pos)          /*!< 0x00000080 */
7485 #define EXTI_FPR1_FPIF7                     EXTI_FPR1_FPIF7_Msk                     /*!< Falling Pending Interrupt Flag on line 7 */
7486 #define EXTI_FPR1_FPIF8_Pos                 (8U)
7487 #define EXTI_FPR1_FPIF8_Msk                 (0x1UL << EXTI_FPR1_FPIF8_Pos)          /*!< 0x00000100 */
7488 #define EXTI_FPR1_FPIF8                     EXTI_FPR1_FPIF8_Msk                     /*!< Falling Pending Interrupt Flag on line 8 */
7489 #define EXTI_FPR1_FPIF9_Pos                 (9U)
7490 #define EXTI_FPR1_FPIF9_Msk                 (0x1UL << EXTI_FPR1_FPIF9_Pos)          /*!< 0x00000200 */
7491 #define EXTI_FPR1_FPIF9                     EXTI_FPR1_FPIF9_Msk                     /*!< Falling Pending Interrupt Flag on line 9 */
7492 #define EXTI_FPR1_FPIF10_Pos                (10U)
7493 #define EXTI_FPR1_FPIF10_Msk                (0x1UL << EXTI_FPR1_FPIF10_Pos)         /*!< 0x00000400 */
7494 #define EXTI_FPR1_FPIF10                    EXTI_FPR1_FPIF10_Msk                    /*!< Falling Pending Interrupt Flag on line 10 */
7495 #define EXTI_FPR1_FPIF11_Pos                (11U)
7496 #define EXTI_FPR1_FPIF11_Msk                (0x1UL << EXTI_FPR1_FPIF11_Pos)         /*!< 0x00000800 */
7497 #define EXTI_FPR1_FPIF11                    EXTI_FPR1_FPIF11_Msk                    /*!< Falling Pending Interrupt Flag on line 11 */
7498 #define EXTI_FPR1_FPIF12_Pos                (12U)
7499 #define EXTI_FPR1_FPIF12_Msk                (0x1UL << EXTI_FPR1_FPIF12_Pos)         /*!< 0x00001000 */
7500 #define EXTI_FPR1_FPIF12                    EXTI_FPR1_FPIF12_Msk                    /*!< Falling Pending Interrupt Flag on line 12 */
7501 #define EXTI_FPR1_FPIF13_Pos                (13U)
7502 #define EXTI_FPR1_FPIF13_Msk                (0x1UL << EXTI_FPR1_FPIF13_Pos)         /*!< 0x00002000 */
7503 #define EXTI_FPR1_FPIF13                    EXTI_FPR1_FPIF13_Msk                    /*!< Falling Pending Interrupt Flag on line 13 */
7504 #define EXTI_FPR1_FPIF14_Pos                (14U)
7505 #define EXTI_FPR1_FPIF14_Msk                (0x1UL << EXTI_FPR1_FPIF14_Pos)         /*!< 0x00004000 */
7506 #define EXTI_FPR1_FPIF14                    EXTI_FPR1_FPIF14_Msk                    /*!< Falling Pending Interrupt Flag on line 14 */
7507 #define EXTI_FPR1_FPIF15_Pos                (15U)
7508 #define EXTI_FPR1_FPIF15_Msk                (0x1UL << EXTI_FPR1_FPIF15_Pos)         /*!< 0x00008000 */
7509 #define EXTI_FPR1_FPIF15                    EXTI_FPR1_FPIF15_Msk                    /*!< Falling Pending Interrupt Flag on line 15 */
7510 #define EXTI_FPR1_FPIF16_Pos                (16U)
7511 #define EXTI_FPR1_FPIF16_Msk                (0x1UL << EXTI_FPR1_FPIF16_Pos)         /*!< 0x00010000 */
7512 #define EXTI_FPR1_FPIF16                    EXTI_FPR1_FPIF16_Msk                    /*!< Falling Pending Interrupt Flag on line 16 */
7513 #define EXTI_FPR1_FPIF17_Pos                (17U)
7514 #define EXTI_FPR1_FPIF17_Msk                (0x1UL << EXTI_FPR1_FPIF17_Pos)         /*!< 0x00020000 */
7515 #define EXTI_FPR1_FPIF17                    EXTI_FPR1_FPIF17_Msk                    /*!< Falling Pending Interrupt Flag on line 17 */
7516 #define EXTI_FPR1_FPIF18_Pos                (18U)
7517 #define EXTI_FPR1_FPIF18_Msk                (0x1UL << EXTI_FPR1_FPIF18_Pos)         /*!< 0x00040000 */
7518 #define EXTI_FPR1_FPIF18                    EXTI_FPR1_FPIF18_Msk                    /*!< Falling Pending Interrupt Flag on line 18 */
7519 #define EXTI_FPR1_FPIF19_Pos                (19U)
7520 #define EXTI_FPR1_FPIF19_Msk                (0x1UL << EXTI_FPR1_FPIF19_Pos)         /*!< 0x00080000 */
7521 #define EXTI_FPR1_FPIF19                    EXTI_FPR1_FPIF19_Msk                    /*!< Falling Pending Interrupt Flag on line 19 */
7522 #define EXTI_FPR1_FPIF20_Pos                (20U)
7523 #define EXTI_FPR1_FPIF20_Msk                (0x1UL << EXTI_FPR1_FPIF20_Pos)         /*!< 0x00100000 */
7524 #define EXTI_FPR1_FPIF20                    EXTI_FPR1_FPIF20_Msk                    /*!< Falling Pending Interrupt Flag on line 20 */
7525 #define EXTI_FPR1_FPIF21_Pos                (21U)
7526 #define EXTI_FPR1_FPIF21_Msk                (0x1UL << EXTI_FPR1_FPIF21_Pos)         /*!< 0x00200000 */
7527 #define EXTI_FPR1_FPIF21                    EXTI_FPR1_FPIF21_Msk                    /*!< Falling Pending Interrupt Flag on line 21 */
7528 #define EXTI_FPR1_FPIF22_Pos                (22U)
7529 #define EXTI_FPR1_FPIF22_Msk                (0x1UL << EXTI_FPR1_FPIF22_Pos)         /*!< 0x00400000 */
7530 #define EXTI_FPR1_FPIF22                    EXTI_FPR1_FPIF22_Msk                    /*!< Falling Pending Interrupt Flag on line 22 */
7531 #define EXTI_FPR1_FPIF23_Pos                (23U)
7532 #define EXTI_FPR1_FPIF23_Msk                (0x1UL << EXTI_FPR1_FPIF23_Pos)         /*!< 0x00800000 */
7533 #define EXTI_FPR1_FPIF23                    EXTI_FPR1_FPIF23_Msk                    /*!< Falling Pending Interrupt Flag on line 23 */
7534 #define EXTI_FPR1_FPIF24_Pos                (24U)
7535 #define EXTI_FPR1_FPIF24_Msk                (0x1UL << EXTI_FPR1_FPIF24_Pos)         /*!< 0x01000000 */
7536 #define EXTI_FPR1_FPIF24                    EXTI_FPR1_FPIF24_Msk                    /*!< Falling Pending Interrupt Flag on line 24 */
7537 
7538 /*******************  Bit definition for EXTI_SECENR1 register  ******************/
7539 #define EXTI_SECENR1_RPIF0_Pos              (0U)
7540 #define EXTI_SECENR1_RPIF0_Msk              (0x1UL << EXTI_SECENR1_RPIF0_Pos)       /*!< 0x00000001 */
7541 #define EXTI_SECENR1_RPIF0                  EXTI_SECENR1_RPIF0_Msk                  /*!< Security enable on line 0 */
7542 #define EXTI_SECENR1_RPIF1_Pos              (1U)
7543 #define EXTI_SECENR1_RPIF1_Msk              (0x1UL << EXTI_SECENR1_RPIF1_Pos)       /*!< 0x00000002 */
7544 #define EXTI_SECENR1_RPIF1                  EXTI_SECENR1_RPIF1_Msk                  /*!< Security enable on line 1 */
7545 #define EXTI_SECENR1_RPIF2_Pos              (2U)
7546 #define EXTI_SECENR1_RPIF2_Msk              (0x1UL << EXTI_SECENR1_RPIF2_Pos)       /*!< 0x00000004 */
7547 #define EXTI_SECENR1_RPIF2                  EXTI_SECENR1_RPIF2_Msk                  /*!< Security enable on line 2 */
7548 #define EXTI_SECENR1_RPIF3_Pos              (3U)
7549 #define EXTI_SECENR1_RPIF3_Msk              (0x1UL << EXTI_SECENR1_RPIF3_Pos)       /*!< 0x00000008 */
7550 #define EXTI_SECENR1_RPIF3                  EXTI_SECENR1_RPIF3_Msk                  /*!< Security enable on line 3 */
7551 #define EXTI_SECENR1_RPIF4_Pos              (4U)
7552 #define EXTI_SECENR1_RPIF4_Msk              (0x1UL << EXTI_SECENR1_RPIF4_Pos)       /*!< 0x00000010 */
7553 #define EXTI_SECENR1_RPIF4                  EXTI_SECENR1_RPIF4_Msk                  /*!< Security enable on line 4 */
7554 #define EXTI_SECENR1_RPIF5_Pos              (5U)
7555 #define EXTI_SECENR1_RPIF5_Msk              (0x1UL << EXTI_SECENR1_RPIF5_Pos)       /*!< 0x00000020 */
7556 #define EXTI_SECENR1_RPIF5                  EXTI_SECENR1_RPIF5_Msk                  /*!< Security enable on line 5 */
7557 #define EXTI_SECENR1_RPIF6_Pos              (6U)
7558 #define EXTI_SECENR1_RPIF6_Msk              (0x1UL << EXTI_SECENR1_RPIF6_Pos)       /*!< 0x00000040 */
7559 #define EXTI_SECENR1_RPIF6                  EXTI_SECENR1_RPIF6_Msk                  /*!< Security enable on line 6 */
7560 #define EXTI_SECENR1_RPIF7_Pos              (7U)
7561 #define EXTI_SECENR1_RPIF7_Msk              (0x1UL << EXTI_SECENR1_RPIF7_Pos)       /*!< 0x00000080 */
7562 #define EXTI_SECENR1_RPIF7                  EXTI_SECENR1_RPIF7_Msk                  /*!< Security enable on line 7 */
7563 #define EXTI_SECENR1_RPIF8_Pos              (8U)
7564 #define EXTI_SECENR1_RPIF8_Msk              (0x1UL << EXTI_SECENR1_RPIF8_Pos)       /*!< 0x00000100 */
7565 #define EXTI_SECENR1_RPIF8                  EXTI_SECENR1_RPIF8_Msk                  /*!< Security enable on line 8 */
7566 #define EXTI_SECENR1_RPIF9_Pos              (9U)
7567 #define EXTI_SECENR1_RPIF9_Msk              (0x1UL << EXTI_SECENR1_RPIF9_Pos)       /*!< 0x00000200 */
7568 #define EXTI_SECENR1_RPIF9                  EXTI_SECENR1_RPIF9_Msk                  /*!< Security enable on line 9 */
7569 #define EXTI_SECENR1_RPIF10_Pos             (10U)
7570 #define EXTI_SECENR1_RPIF10_Msk             (0x1UL << EXTI_SECENR1_RPIF10_Pos)      /*!< 0x00000400 */
7571 #define EXTI_SECENR1_RPIF10                 EXTI_SECENR1_RPIF10_Msk                 /*!< Security enable on line 10 */
7572 #define EXTI_SECENR1_RPIF11_Pos             (11U)
7573 #define EXTI_SECENR1_RPIF11_Msk             (0x1UL << EXTI_SECENR1_RPIF11_Pos)      /*!< 0x00000800 */
7574 #define EXTI_SECENR1_RPIF11                 EXTI_SECENR1_RPIF11_Msk                 /*!< Security enable on line 11 */
7575 #define EXTI_SECENR1_RPIF12_Pos             (12U)
7576 #define EXTI_SECENR1_RPIF12_Msk             (0x1UL << EXTI_SECENR1_RPIF12_Pos)      /*!< 0x00001000 */
7577 #define EXTI_SECENR1_RPIF12                 EXTI_SECENR1_RPIF12_Msk                 /*!< Security enable on line 12 */
7578 #define EXTI_SECENR1_RPIF13_Pos             (13U)
7579 #define EXTI_SECENR1_RPIF13_Msk             (0x1UL << EXTI_SECENR1_RPIF13_Pos)      /*!< 0x00002000 */
7580 #define EXTI_SECENR1_RPIF13                 EXTI_SECENR1_RPIF13_Msk                 /*!< Security enable on line 13 */
7581 #define EXTI_SECENR1_RPIF14_Pos             (14U)
7582 #define EXTI_SECENR1_RPIF14_Msk             (0x1UL << EXTI_SECENR1_RPIF14_Pos)      /*!< 0x00004000 */
7583 #define EXTI_SECENR1_RPIF14                 EXTI_SECENR1_RPIF14_Msk                 /*!< Security enable on line 14 */
7584 #define EXTI_SECENR1_RPIF15_Pos             (15U)
7585 #define EXTI_SECENR1_RPIF15_Msk             (0x1UL << EXTI_SECENR1_RPIF15_Pos)      /*!< 0x00008000 */
7586 #define EXTI_SECENR1_RPIF15                 EXTI_SECENR1_RPIF15_Msk                 /*!< Security enable on line 15 */
7587 #define EXTI_SECENR1_RPIF16_Pos             (16U)
7588 #define EXTI_SECENR1_RPIF16_Msk             (0x1UL << EXTI_SECENR1_RPIF16_Pos)      /*!< 0x00010000 */
7589 #define EXTI_SECENR1_RPIF16                 EXTI_SECENR1_RPIF16_Msk                 /*!< Security enable on line 16 */
7590 #define EXTI_SECENR1_RPIF17_Pos             (17U)
7591 #define EXTI_SECENR1_RPIF17_Msk             (0x1UL << EXTI_SECENR1_RPIF17_Pos)      /*!< 0x00020000 */
7592 #define EXTI_SECENR1_RPIF17                 EXTI_SECENR1_RPIF17_Msk                 /*!< Security enable on line 17 */
7593 #define EXTI_SECENR1_RPIF18_Pos             (18U)
7594 #define EXTI_SECENR1_RPIF18_Msk             (0x1UL << EXTI_SECENR1_RPIF18_Pos)      /*!< 0x00040000 */
7595 #define EXTI_SECENR1_RPIF18                 EXTI_SECENR1_RPIF18_Msk                 /*!< Security enable on line 18 */
7596 #define EXTI_SECENR1_RPIF19_Pos             (19U)
7597 #define EXTI_SECENR1_RPIF19_Msk             (0x1UL << EXTI_SECENR1_RPIF19_Pos)      /*!< 0x00080000 */
7598 #define EXTI_SECENR1_RPIF19                 EXTI_SECENR1_RPIF19_Msk                 /*!< Security enable on line 19 */
7599 #define EXTI_SECENR1_RPIF20_Pos             (20U)
7600 #define EXTI_SECENR1_RPIF20_Msk             (0x1UL << EXTI_SECENR1_RPIF20_Pos)      /*!< 0x00100000 */
7601 #define EXTI_SECENR1_RPIF20                 EXTI_SECENR1_RPIF20_Msk                 /*!< Security enable on line 20 */
7602 #define EXTI_SECENR1_RPIF21_Pos             (21U)
7603 #define EXTI_SECENR1_RPIF21_Msk             (0x1UL << EXTI_SECENR1_RPIF21_Pos)      /*!< 0x00200000 */
7604 #define EXTI_SECENR1_RPIF21                 EXTI_SECENR1_RPIF21_Msk                 /*!< Security enable on line 21 */
7605 #define EXTI_SECENR1_RPIF22_Pos             (22U)
7606 #define EXTI_SECENR1_RPIF22_Msk             (0x1UL << EXTI_SECENR1_RPIF22_Pos)      /*!< 0x00400000 */
7607 #define EXTI_SECENR1_RPIF22                 EXTI_SECENR1_RPIF22_Msk                 /*!< Security enable on line 22 */
7608 #define EXTI_SECENR1_RPIF23_Pos             (23U)
7609 #define EXTI_SECENR1_RPIF23_Msk             (0x1UL << EXTI_SECENR1_RPIF23_Pos)      /*!< 0x00800000 */
7610 #define EXTI_SECENR1_RPIF23                 EXTI_SECENR1_RPIF23_Msk                 /*!< Security enable on line 23 */
7611 #define EXTI_SECENR1_RPIF24_Pos             (24U)
7612 #define EXTI_SECENR1_RPIF24_Msk             (0x1UL << EXTI_SECENR1_RPIF24_Pos)      /*!< 0x01000000 */
7613 #define EXTI_SECENR1_RPIF24                 EXTI_SECENR1_RPIF24_Msk                 /*!< Security enable on line 24 */
7614 
7615 /*******************  Bit definition for EXTI_PRIVENR1 register  ******************/
7616 #define EXTI_PRIVENR1_RPIF0_Pos             (0U)
7617 #define EXTI_PRIVENR1_RPIF0_Msk             (0x1UL << EXTI_PRIVENR1_RPIF0_Pos)      /*!< 0x00000001 */
7618 #define EXTI_PRIVENR1_RPIF0                 EXTI_PRIVENR1_RPIF0_Msk                 /*!< Privilege enable on line 0 */
7619 #define EXTI_PRIVENR1_RPIF1_Pos             (1U)
7620 #define EXTI_PRIVENR1_RPIF1_Msk             (0x1UL << EXTI_PRIVENR1_RPIF1_Pos)      /*!< 0x00000002 */
7621 #define EXTI_PRIVENR1_RPIF1                 EXTI_PRIVENR1_RPIF1_Msk                 /*!< Privilege enable on line 1 */
7622 #define EXTI_PRIVENR1_RPIF2_Pos             (2U)
7623 #define EXTI_PRIVENR1_RPIF2_Msk             (0x1UL << EXTI_PRIVENR1_RPIF2_Pos)      /*!< 0x00000004 */
7624 #define EXTI_PRIVENR1_RPIF2                 EXTI_PRIVENR1_RPIF2_Msk                 /*!< Privilege enable on line 2 */
7625 #define EXTI_PRIVENR1_RPIF3_Pos             (3U)
7626 #define EXTI_PRIVENR1_RPIF3_Msk             (0x1UL << EXTI_PRIVENR1_RPIF3_Pos)      /*!< 0x00000008 */
7627 #define EXTI_PRIVENR1_RPIF3                 EXTI_PRIVENR1_RPIF3_Msk                 /*!< Privilege enable on line 3 */
7628 #define EXTI_PRIVENR1_RPIF4_Pos             (4U)
7629 #define EXTI_PRIVENR1_RPIF4_Msk             (0x1UL << EXTI_PRIVENR1_RPIF4_Pos)      /*!< 0x00000010 */
7630 #define EXTI_PRIVENR1_RPIF4                 EXTI_PRIVENR1_RPIF4_Msk                 /*!< Privilege enable on line 4 */
7631 #define EXTI_PRIVENR1_RPIF5_Pos             (5U)
7632 #define EXTI_PRIVENR1_RPIF5_Msk             (0x1UL << EXTI_PRIVENR1_RPIF5_Pos)      /*!< 0x00000020 */
7633 #define EXTI_PRIVENR1_RPIF5                 EXTI_PRIVENR1_RPIF5_Msk                 /*!< Privilege enable on line 5 */
7634 #define EXTI_PRIVENR1_RPIF6_Pos             (6U)
7635 #define EXTI_PRIVENR1_RPIF6_Msk             (0x1UL << EXTI_PRIVENR1_RPIF6_Pos)      /*!< 0x00000040 */
7636 #define EXTI_PRIVENR1_RPIF6                 EXTI_PRIVENR1_RPIF6_Msk                 /*!< Privilege enable on line 6 */
7637 #define EXTI_PRIVENR1_RPIF7_Pos             (7U)
7638 #define EXTI_PRIVENR1_RPIF7_Msk             (0x1UL << EXTI_PRIVENR1_RPIF7_Pos)      /*!< 0x00000080 */
7639 #define EXTI_PRIVENR1_RPIF7                 EXTI_PRIVENR1_RPIF7_Msk                 /*!< Privilege enable on line 7 */
7640 #define EXTI_PRIVENR1_RPIF8_Pos             (8U)
7641 #define EXTI_PRIVENR1_RPIF8_Msk             (0x1UL << EXTI_PRIVENR1_RPIF8_Pos)      /*!< 0x00000100 */
7642 #define EXTI_PRIVENR1_RPIF8                 EXTI_PRIVENR1_RPIF8_Msk                 /*!< Privilege enable on line 8 */
7643 #define EXTI_PRIVENR1_RPIF9_Pos             (9U)
7644 #define EXTI_PRIVENR1_RPIF9_Msk             (0x1UL << EXTI_PRIVENR1_RPIF9_Pos)      /*!< 0x00000200 */
7645 #define EXTI_PRIVENR1_RPIF9                 EXTI_PRIVENR1_RPIF9_Msk                 /*!< Privilege enable on line 9 */
7646 #define EXTI_PRIVENR1_RPIF10_Pos            (10U)
7647 #define EXTI_PRIVENR1_RPIF10_Msk            (0x1UL << EXTI_PRIVENR1_RPIF10_Pos)     /*!< 0x00000400 */
7648 #define EXTI_PRIVENR1_RPIF10                EXTI_PRIVENR1_RPIF10_Msk                /*!< Privilege enable on line 10 */
7649 #define EXTI_PRIVENR1_RPIF11_Pos            (11U)
7650 #define EXTI_PRIVENR1_RPIF11_Msk            (0x1UL << EXTI_PRIVENR1_RPIF11_Pos)     /*!< 0x00000800 */
7651 #define EXTI_PRIVENR1_RPIF11                EXTI_PRIVENR1_RPIF11_Msk                /*!< Privilege enable on line 11 */
7652 #define EXTI_PRIVENR1_RPIF12_Pos            (12U)
7653 #define EXTI_PRIVENR1_RPIF12_Msk            (0x1UL << EXTI_PRIVENR1_RPIF12_Pos)     /*!< 0x00001000 */
7654 #define EXTI_PRIVENR1_RPIF12                EXTI_PRIVENR1_RPIF12_Msk                /*!< Privilege enable on line 12 */
7655 #define EXTI_PRIVENR1_RPIF13_Pos            (13U)
7656 #define EXTI_PRIVENR1_RPIF13_Msk            (0x1UL << EXTI_PRIVENR1_RPIF13_Pos)     /*!< 0x00002000 */
7657 #define EXTI_PRIVENR1_RPIF13                EXTI_PRIVENR1_RPIF13_Msk                /*!< Privilege enable on line 13 */
7658 #define EXTI_PRIVENR1_RPIF14_Pos            (14U)
7659 #define EXTI_PRIVENR1_RPIF14_Msk            (0x1UL << EXTI_PRIVENR1_RPIF14_Pos)     /*!< 0x00004000 */
7660 #define EXTI_PRIVENR1_RPIF14                EXTI_PRIVENR1_RPIF14_Msk                /*!< Privilege enable on line 14 */
7661 #define EXTI_PRIVENR1_RPIF15_Pos            (15U)
7662 #define EXTI_PRIVENR1_RPIF15_Msk            (0x1UL << EXTI_PRIVENR1_RPIF15_Pos)     /*!< 0x00008000 */
7663 #define EXTI_PRIVENR1_RPIF15                EXTI_PRIVENR1_RPIF15_Msk                /*!< Privilege enable on line 15 */
7664 #define EXTI_PRIVENR1_RPIF16_Pos            (16U)
7665 #define EXTI_PRIVENR1_RPIF16_Msk            (0x1UL << EXTI_PRIVENR1_RPIF16_Pos)     /*!< 0x00010000 */
7666 #define EXTI_PRIVENR1_RPIF16                EXTI_PRIVENR1_RPIF16_Msk                /*!< Privilege enable on line 16 */
7667 #define EXTI_PRIVENR1_RPIF17_Pos            (17U)
7668 #define EXTI_PRIVENR1_RPIF17_Msk            (0x1UL << EXTI_PRIVENR1_RPIF17_Pos)     /*!< 0x00020000 */
7669 #define EXTI_PRIVENR1_RPIF17                EXTI_PRIVENR1_RPIF17_Msk                /*!< Privilege enable on line 17 */
7670 #define EXTI_PRIVENR1_RPIF18_Pos            (18U)
7671 #define EXTI_PRIVENR1_RPIF18_Msk            (0x1UL << EXTI_PRIVENR1_RPIF18_Pos)     /*!< 0x00040000 */
7672 #define EXTI_PRIVENR1_RPIF18                EXTI_PRIVENR1_RPIF18_Msk                /*!< Privilege enable on line 18 */
7673 #define EXTI_PRIVENR1_RPIF19_Pos            (19U)
7674 #define EXTI_PRIVENR1_RPIF19_Msk            (0x1UL << EXTI_PRIVENR1_RPIF19_Pos)     /*!< 0x00080000 */
7675 #define EXTI_PRIVENR1_RPIF19                EXTI_PRIVENR1_RPIF19_Msk                /*!< Privilege enable on line 19 */
7676 #define EXTI_PRIVENR1_RPIF20_Pos            (20U)
7677 #define EXTI_PRIVENR1_RPIF20_Msk            (0x1UL << EXTI_PRIVENR1_RPIF20_Pos)     /*!< 0x00100000 */
7678 #define EXTI_PRIVENR1_RPIF20                EXTI_PRIVENR1_RPIF20_Msk                /*!< Privilege enable on line 20 */
7679 #define EXTI_PRIVENR1_RPIF21_Pos            (21U)
7680 #define EXTI_PRIVENR1_RPIF21_Msk            (0x1UL << EXTI_PRIVENR1_RPIF21_Pos)     /*!< 0x00200000 */
7681 #define EXTI_PRIVENR1_RPIF21                EXTI_PRIVENR1_RPIF21_Msk                /*!< Privilege enable on line 21 */
7682 #define EXTI_PRIVENR1_RPIF22_Pos            (22U)
7683 #define EXTI_PRIVENR1_RPIF22_Msk            (0x1UL << EXTI_PRIVENR1_RPIF22_Pos)     /*!< 0x00400000 */
7684 #define EXTI_PRIVENR1_RPIF22                EXTI_PRIVENR1_RPIF22_Msk                /*!< Privilege enable on line 22 */
7685 #define EXTI_PRIVENR1_RPIF23_Pos            (23U)
7686 #define EXTI_PRIVENR1_RPIF23_Msk            (0x1UL << EXTI_PRIVENR1_RPIF23_Pos)     /*!< 0x00800000 */
7687 #define EXTI_PRIVENR1_RPIF23                EXTI_PRIVENR1_RPIF23_Msk                /*!< Privilege enable on line 23 */
7688 #define EXTI_PRIVENR1_RPIF24_Pos            (24U)
7689 #define EXTI_PRIVENR1_RPIF24_Msk            (0x1UL << EXTI_PRIVENR1_RPIF24_Pos)     /*!< 0x01000000 */
7690 #define EXTI_PRIVENR1_RPIF24                EXTI_PRIVENR1_RPIF24_Msk                /*!< Privilege enable on line 24 */
7691 
7692 /*****************  Bit definition for EXTI_EXTICR1 register  **************/
7693 #define EXTI_EXTICR1_EXTI0_Pos              (0U)
7694 #define EXTI_EXTICR1_EXTI0_Msk              (0xFUL << EXTI_EXTICR1_EXTI0_Pos)       /*!< 0x00000007 */
7695 #define EXTI_EXTICR1_EXTI0                  EXTI_EXTICR1_EXTI0_Msk                  /*!< EXTI 0 configuration */
7696 #define EXTI_EXTICR1_EXTI0_0                (0x1UL << EXTI_EXTICR1_EXTI0_Pos)       /*!< 0x00000001 */
7697 #define EXTI_EXTICR1_EXTI0_1                (0x2UL << EXTI_EXTICR1_EXTI0_Pos)       /*!< 0x00000002 */
7698 #define EXTI_EXTICR1_EXTI0_2                (0x4UL << EXTI_EXTICR1_EXTI0_Pos)       /*!< 0x00000004 */
7699 #define EXTI_EXTICR1_EXTI0_3                (0x8UL << EXTI_EXTICR1_EXTI0_Pos)       /*!< 0x00000008 */
7700 #define EXTI_EXTICR1_EXTI1_Pos              (8U)
7701 #define EXTI_EXTICR1_EXTI1_Msk              (0xFUL << EXTI_EXTICR1_EXTI1_Pos)       /*!< 0x00000700 */
7702 #define EXTI_EXTICR1_EXTI1                  EXTI_EXTICR1_EXTI1_Msk                  /*!< EXTI 1 configuration */
7703 #define EXTI_EXTICR1_EXTI1_0                (0x1UL << EXTI_EXTICR1_EXTI1_Pos)       /*!< 0x00000100 */
7704 #define EXTI_EXTICR1_EXTI1_1                (0x2UL << EXTI_EXTICR1_EXTI1_Pos)       /*!< 0x00000200 */
7705 #define EXTI_EXTICR1_EXTI1_2                (0x4UL << EXTI_EXTICR1_EXTI1_Pos)       /*!< 0x00000400 */
7706 #define EXTI_EXTICR1_EXTI1_3                (0x8UL << EXTI_EXTICR1_EXTI1_Pos)       /*!< 0x00000800 */
7707 #define EXTI_EXTICR1_EXTI2_Pos              (16U)
7708 #define EXTI_EXTICR1_EXTI2_Msk              (0xFUL << EXTI_EXTICR1_EXTI2_Pos)       /*!< 0x00070000 */
7709 #define EXTI_EXTICR1_EXTI2                  EXTI_EXTICR1_EXTI2_Msk                  /*!< EXTI 2 configuration */
7710 #define EXTI_EXTICR1_EXTI2_0                (0x1UL << EXTI_EXTICR1_EXTI2_Pos)       /*!< 0x00010000 */
7711 #define EXTI_EXTICR1_EXTI2_1                (0x2UL << EXTI_EXTICR1_EXTI2_Pos)       /*!< 0x00020000 */
7712 #define EXTI_EXTICR1_EXTI2_2                (0x4UL << EXTI_EXTICR1_EXTI2_Pos)       /*!< 0x00040000 */
7713 #define EXTI_EXTICR1_EXTI2_3                (0x8UL << EXTI_EXTICR1_EXTI2_Pos)       /*!< 0x00080000 */
7714 #define EXTI_EXTICR1_EXTI3_Pos              (24U)
7715 #define EXTI_EXTICR1_EXTI3_Msk              (0xFUL << EXTI_EXTICR1_EXTI3_Pos)       /*!< 0x07000000 */
7716 #define EXTI_EXTICR1_EXTI3                  EXTI_EXTICR1_EXTI3_Msk                  /*!< EXTI 3 configuration */
7717 #define EXTI_EXTICR1_EXTI3_0                (0x1UL << EXTI_EXTICR1_EXTI3_Pos)       /*!< 0x01000000 */
7718 #define EXTI_EXTICR1_EXTI3_1                (0x2UL << EXTI_EXTICR1_EXTI3_Pos)       /*!< 0x02000000 */
7719 #define EXTI_EXTICR1_EXTI3_2                (0x4UL << EXTI_EXTICR1_EXTI3_Pos)       /*!< 0x04000000 */
7720 #define EXTI_EXTICR1_EXTI3_3                (0x8UL << EXTI_EXTICR1_EXTI3_Pos)       /*!< 0x08000000 */
7721 
7722 /*****************  Bit definition for EXTI_EXTICR2 register  **************/
7723 #define EXTI_EXTICR2_EXTI4_Pos              (0U)
7724 #define EXTI_EXTICR2_EXTI4_Msk              (0xFUL << EXTI_EXTICR2_EXTI4_Pos)       /*!< 0x00000007 */
7725 #define EXTI_EXTICR2_EXTI4                  EXTI_EXTICR2_EXTI4_Msk                  /*!< EXTI 4 configuration */
7726 #define EXTI_EXTICR2_EXTI4_0                (0x1UL << EXTI_EXTICR2_EXTI4_Pos)       /*!< 0x00000001 */
7727 #define EXTI_EXTICR2_EXTI4_1                (0x2UL << EXTI_EXTICR2_EXTI4_Pos)       /*!< 0x00000002 */
7728 #define EXTI_EXTICR2_EXTI4_2                (0x4UL << EXTI_EXTICR2_EXTI4_Pos)       /*!< 0x00000004 */
7729 #define EXTI_EXTICR2_EXTI4_3                (0x8UL << EXTI_EXTICR2_EXTI4_Pos)       /*!< 0x00000008 */
7730 #define EXTI_EXTICR2_EXTI5_Pos              (8U)
7731 #define EXTI_EXTICR2_EXTI5_Msk              (0xFUL << EXTI_EXTICR2_EXTI5_Pos)       /*!< 0x00000700 */
7732 #define EXTI_EXTICR2_EXTI5                  EXTI_EXTICR2_EXTI5_Msk                  /*!< EXTI 5 configuration */
7733 #define EXTI_EXTICR2_EXTI5_0                (0x1UL << EXTI_EXTICR2_EXTI5_Pos)       /*!< 0x00000100 */
7734 #define EXTI_EXTICR2_EXTI5_1                (0x2UL << EXTI_EXTICR2_EXTI5_Pos)       /*!< 0x00000200 */
7735 #define EXTI_EXTICR2_EXTI5_2                (0x4UL << EXTI_EXTICR2_EXTI5_Pos)       /*!< 0x00000400 */
7736 #define EXTI_EXTICR2_EXTI5_3                (0x8UL << EXTI_EXTICR2_EXTI5_Pos)       /*!< 0x00000800 */
7737 #define EXTI_EXTICR2_EXTI6_Pos              (16U)
7738 #define EXTI_EXTICR2_EXTI6_Msk              (0xFUL << EXTI_EXTICR2_EXTI6_Pos)       /*!< 0x00070000 */
7739 #define EXTI_EXTICR2_EXTI6                  EXTI_EXTICR2_EXTI6_Msk                  /*!< EXTI 6 configuration */
7740 #define EXTI_EXTICR2_EXTI6_0                (0x1UL << EXTI_EXTICR2_EXTI6_Pos)       /*!< 0x00010000 */
7741 #define EXTI_EXTICR2_EXTI6_1                (0x2UL << EXTI_EXTICR2_EXTI6_Pos)       /*!< 0x00020000 */
7742 #define EXTI_EXTICR2_EXTI6_2                (0x4UL << EXTI_EXTICR2_EXTI6_Pos)       /*!< 0x00040000 */
7743 #define EXTI_EXTICR2_EXTI6_3                (0x8UL << EXTI_EXTICR2_EXTI6_Pos)       /*!< 0x00080000 */
7744 #define EXTI_EXTICR2_EXTI7_Pos              (24U)
7745 #define EXTI_EXTICR2_EXTI7_Msk              (0xFUL << EXTI_EXTICR2_EXTI7_Pos)       /*!< 0x07000000 */
7746 #define EXTI_EXTICR2_EXTI7                  EXTI_EXTICR2_EXTI7_Msk                  /*!< EXTI 7 configuration */
7747 #define EXTI_EXTICR2_EXTI7_0                (0x1UL << EXTI_EXTICR2_EXTI7_Pos)       /*!< 0x01000000 */
7748 #define EXTI_EXTICR2_EXTI7_1                (0x2UL << EXTI_EXTICR2_EXTI7_Pos)       /*!< 0x02000000 */
7749 #define EXTI_EXTICR2_EXTI7_2                (0x4UL << EXTI_EXTICR2_EXTI7_Pos)       /*!< 0x04000000 */
7750 #define EXTI_EXTICR2_EXTI7_3                (0x8UL << EXTI_EXTICR2_EXTI7_Pos)       /*!< 0x08000000 */
7751 
7752 /*****************  Bit definition for EXTI_EXTICR3 register  **************/
7753 #define EXTI_EXTICR3_EXTI8_Pos              (0U)
7754 #define EXTI_EXTICR3_EXTI8_Msk              (0xFUL << EXTI_EXTICR3_EXTI8_Pos)       /*!< 0x00000007 */
7755 #define EXTI_EXTICR3_EXTI8                  EXTI_EXTICR3_EXTI8_Msk                  /*!< EXTI 8 configuration */
7756 #define EXTI_EXTICR3_EXTI8_0                (0x1UL << EXTI_EXTICR3_EXTI8_Pos)       /*!< 0x00000001 */
7757 #define EXTI_EXTICR3_EXTI8_1                (0x2UL << EXTI_EXTICR3_EXTI8_Pos)       /*!< 0x00000002 */
7758 #define EXTI_EXTICR3_EXTI8_2                (0x4UL << EXTI_EXTICR3_EXTI8_Pos)       /*!< 0x00000004 */
7759 #define EXTI_EXTICR3_EXTI8_3                (0x8UL << EXTI_EXTICR3_EXTI8_Pos)       /*!< 0x00000008 */
7760 #define EXTI_EXTICR3_EXTI9_Pos              (8U)
7761 #define EXTI_EXTICR3_EXTI9_Msk              (0xFUL << EXTI_EXTICR3_EXTI9_Pos)       /*!< 0x00000700 */
7762 #define EXTI_EXTICR3_EXTI9                  EXTI_EXTICR3_EXTI9_Msk                  /*!< EXTI 9 configuration */
7763 #define EXTI_EXTICR3_EXTI9_0                (0x1UL << EXTI_EXTICR3_EXTI9_Pos)       /*!< 0x00000100 */
7764 #define EXTI_EXTICR3_EXTI9_1                (0x2UL << EXTI_EXTICR3_EXTI9_Pos)       /*!< 0x00000200 */
7765 #define EXTI_EXTICR3_EXTI9_2                (0x4UL << EXTI_EXTICR3_EXTI9_Pos)       /*!< 0x00000400 */
7766 #define EXTI_EXTICR3_EXTI9_3                (0x8UL << EXTI_EXTICR3_EXTI9_Pos)       /*!< 0x00000800 */
7767 #define EXTI_EXTICR3_EXTI10_Pos             (16U)
7768 #define EXTI_EXTICR3_EXTI10_Msk             (0xFUL << EXTI_EXTICR3_EXTI10_Pos)      /*!< 0x00070000 */
7769 #define EXTI_EXTICR3_EXTI10                 EXTI_EXTICR3_EXTI10_Msk                 /*!< EXTI 10 configuration */
7770 #define EXTI_EXTICR3_EXTI10_0               (0x1UL << EXTI_EXTICR3_EXTI10_Pos)      /*!< 0x00010000 */
7771 #define EXTI_EXTICR3_EXTI10_1               (0x2UL << EXTI_EXTICR3_EXTI10_Pos)      /*!< 0x00020000 */
7772 #define EXTI_EXTICR3_EXTI10_2               (0x4UL << EXTI_EXTICR3_EXTI10_Pos)      /*!< 0x00040000 */
7773 #define EXTI_EXTICR3_EXTI10_3               (0x8UL << EXTI_EXTICR3_EXTI10_Pos)      /*!< 0x00080000 */
7774 #define EXTI_EXTICR3_EXTI11_Pos             (24U)
7775 #define EXTI_EXTICR3_EXTI11_Msk             (0xFUL << EXTI_EXTICR3_EXTI11_Pos)      /*!< 0x07000000 */
7776 #define EXTI_EXTICR3_EXTI11                 EXTI_EXTICR3_EXTI11_Msk                 /*!< EXTI 11 configuration */
7777 #define EXTI_EXTICR3_EXTI11_0               (0x1UL << EXTI_EXTICR3_EXTI11_Pos)      /*!< 0x01000000 */
7778 #define EXTI_EXTICR3_EXTI11_1               (0x2UL << EXTI_EXTICR3_EXTI11_Pos)      /*!< 0x02000000 */
7779 #define EXTI_EXTICR3_EXTI11_2               (0x4UL << EXTI_EXTICR3_EXTI11_Pos)      /*!< 0x04000000 */
7780 #define EXTI_EXTICR3_EXTI11_3               (0x8UL << EXTI_EXTICR3_EXTI11_Pos)      /*!< 0x08000000 */
7781 
7782 /*****************  Bit definition for EXTI_EXTICR4 register  **************/
7783 #define EXTI_EXTICR4_EXTI12_Pos             (0U)
7784 #define EXTI_EXTICR4_EXTI12_Msk             (0xFUL << EXTI_EXTICR4_EXTI12_Pos)      /*!< 0x00000007 */
7785 #define EXTI_EXTICR4_EXTI12                 EXTI_EXTICR4_EXTI12_Msk                 /*!< EXTI 12 configuration */
7786 #define EXTI_EXTICR4_EXTI12_0               (0x1UL << EXTI_EXTICR4_EXTI12_Pos)      /*!< 0x00000001 */
7787 #define EXTI_EXTICR4_EXTI12_1               (0x2UL << EXTI_EXTICR4_EXTI12_Pos)      /*!< 0x00000002 */
7788 #define EXTI_EXTICR4_EXTI12_2               (0x4UL << EXTI_EXTICR4_EXTI12_Pos)      /*!< 0x00000004 */
7789 #define EXTI_EXTICR4_EXTI12_3               (0x8UL << EXTI_EXTICR4_EXTI12_Pos)      /*!< 0x00000008 */
7790 #define EXTI_EXTICR4_EXTI13_Pos             (8U)
7791 #define EXTI_EXTICR4_EXTI13_Msk             (0xFUL << EXTI_EXTICR4_EXTI13_Pos)      /*!< 0x00000700 */
7792 #define EXTI_EXTICR4_EXTI13                 EXTI_EXTICR4_EXTI13_Msk                 /*!< EXTI 13 configuration */
7793 #define EXTI_EXTICR4_EXTI13_0               (0x1UL << EXTI_EXTICR4_EXTI13_Pos)      /*!< 0x00000100 */
7794 #define EXTI_EXTICR4_EXTI13_1               (0x2UL << EXTI_EXTICR4_EXTI13_Pos)      /*!< 0x00000200 */
7795 #define EXTI_EXTICR4_EXTI13_2               (0x4UL << EXTI_EXTICR4_EXTI13_Pos)      /*!< 0x00000400 */
7796 #define EXTI_EXTICR4_EXTI13_3               (0x8UL << EXTI_EXTICR4_EXTI13_Pos)      /*!< 0x00000800 */
7797 #define EXTI_EXTICR4_EXTI14_Pos             (16U)
7798 #define EXTI_EXTICR4_EXTI14_Msk             (0xFUL << EXTI_EXTICR4_EXTI14_Pos)      /*!< 0x00070000 */
7799 #define EXTI_EXTICR4_EXTI14                 EXTI_EXTICR4_EXTI14_Msk                 /*!< EXTI 14 configuration */
7800 #define EXTI_EXTICR4_EXTI14_0               (0x1UL << EXTI_EXTICR4_EXTI14_Pos)      /*!< 0x00010000 */
7801 #define EXTI_EXTICR4_EXTI14_1               (0x2UL << EXTI_EXTICR4_EXTI14_Pos)      /*!< 0x00020000 */
7802 #define EXTI_EXTICR4_EXTI14_2               (0x4UL << EXTI_EXTICR4_EXTI14_Pos)      /*!< 0x00040000 */
7803 #define EXTI_EXTICR4_EXTI14_3               (0x8UL << EXTI_EXTICR4_EXTI14_Pos)      /*!< 0x00080000 */
7804 #define EXTI_EXTICR4_EXTI15_Pos             (24U)
7805 #define EXTI_EXTICR4_EXTI15_Msk             (0xFUL << EXTI_EXTICR4_EXTI15_Pos)      /*!< 0x07000000 */
7806 #define EXTI_EXTICR4_EXTI15                 EXTI_EXTICR4_EXTI15_Msk                 /*!< EXTI 15 configuration */
7807 #define EXTI_EXTICR4_EXTI15_0               (0x1UL << EXTI_EXTICR4_EXTI15_Pos)      /*!< 0x01000000 */
7808 #define EXTI_EXTICR4_EXTI15_1               (0x2UL << EXTI_EXTICR4_EXTI15_Pos)      /*!< 0x02000000 */
7809 #define EXTI_EXTICR4_EXTI15_2               (0x4UL << EXTI_EXTICR4_EXTI15_Pos)      /*!< 0x04000000 */
7810 #define EXTI_EXTICR4_EXTI15_3               (0x8UL << EXTI_EXTICR4_EXTI15_Pos)      /*!< 0x08000000 */
7811 
7812 /*******************  Bit definition for EXTI_IMR1 register  ******************/
7813 #define EXTI_IMR1_IM0_Pos                   (0U)
7814 #define EXTI_IMR1_IM0_Msk                   (0x1UL << EXTI_IMR1_IM0_Pos)            /*!< 0x00000001 */
7815 #define EXTI_IMR1_IM0                       EXTI_IMR1_IM0_Msk                       /*!< Interrupt Mask on line 0 */
7816 #define EXTI_IMR1_IM1_Pos                   (1U)
7817 #define EXTI_IMR1_IM1_Msk                   (0x1UL << EXTI_IMR1_IM1_Pos)            /*!< 0x00000002 */
7818 #define EXTI_IMR1_IM1                       EXTI_IMR1_IM1_Msk                       /*!< Interrupt Mask on line 1 */
7819 #define EXTI_IMR1_IM2_Pos                   (2U)
7820 #define EXTI_IMR1_IM2_Msk                   (0x1UL << EXTI_IMR1_IM2_Pos)            /*!< 0x00000004 */
7821 #define EXTI_IMR1_IM2                       EXTI_IMR1_IM2_Msk                       /*!< Interrupt Mask on line 2 */
7822 #define EXTI_IMR1_IM3_Pos                   (3U)
7823 #define EXTI_IMR1_IM3_Msk                   (0x1UL << EXTI_IMR1_IM3_Pos)            /*!< 0x00000008 */
7824 #define EXTI_IMR1_IM3                       EXTI_IMR1_IM3_Msk                       /*!< Interrupt Mask on line 3 */
7825 #define EXTI_IMR1_IM4_Pos                   (4U)
7826 #define EXTI_IMR1_IM4_Msk                   (0x1UL << EXTI_IMR1_IM4_Pos)            /*!< 0x00000010 */
7827 #define EXTI_IMR1_IM4                       EXTI_IMR1_IM4_Msk                       /*!< Interrupt Mask on line 4 */
7828 #define EXTI_IMR1_IM5_Pos                   (5U)
7829 #define EXTI_IMR1_IM5_Msk                   (0x1UL << EXTI_IMR1_IM5_Pos)            /*!< 0x00000020 */
7830 #define EXTI_IMR1_IM5                       EXTI_IMR1_IM5_Msk                       /*!< Interrupt Mask on line 5 */
7831 #define EXTI_IMR1_IM6_Pos                   (6U)
7832 #define EXTI_IMR1_IM6_Msk                   (0x1UL << EXTI_IMR1_IM6_Pos)            /*!< 0x00000040 */
7833 #define EXTI_IMR1_IM6                       EXTI_IMR1_IM6_Msk                       /*!< Interrupt Mask on line 6 */
7834 #define EXTI_IMR1_IM7_Pos                   (7U)
7835 #define EXTI_IMR1_IM7_Msk                   (0x1UL << EXTI_IMR1_IM7_Pos)            /*!< 0x00000080 */
7836 #define EXTI_IMR1_IM7                       EXTI_IMR1_IM7_Msk                       /*!< Interrupt Mask on line 7 */
7837 #define EXTI_IMR1_IM8_Pos                   (8U)
7838 #define EXTI_IMR1_IM8_Msk                   (0x1UL << EXTI_IMR1_IM8_Pos)            /*!< 0x00000100 */
7839 #define EXTI_IMR1_IM8                       EXTI_IMR1_IM8_Msk                       /*!< Interrupt Mask on line 8 */
7840 #define EXTI_IMR1_IM9_Pos                   (9U)
7841 #define EXTI_IMR1_IM9_Msk                   (0x1UL << EXTI_IMR1_IM9_Pos)            /*!< 0x00000200 */
7842 #define EXTI_IMR1_IM9                       EXTI_IMR1_IM9_Msk                       /*!< Interrupt Mask on line 9 */
7843 #define EXTI_IMR1_IM10_Pos                  (10U)
7844 #define EXTI_IMR1_IM10_Msk                  (0x1UL << EXTI_IMR1_IM10_Pos)           /*!< 0x00000400 */
7845 #define EXTI_IMR1_IM10                      EXTI_IMR1_IM10_Msk                      /*!< Interrupt Mask on line 10 */
7846 #define EXTI_IMR1_IM11_Pos                  (11U)
7847 #define EXTI_IMR1_IM11_Msk                  (0x1UL << EXTI_IMR1_IM11_Pos)           /*!< 0x00000800 */
7848 #define EXTI_IMR1_IM11                      EXTI_IMR1_IM11_Msk                      /*!< Interrupt Mask on line 11 */
7849 #define EXTI_IMR1_IM12_Pos                  (12U)
7850 #define EXTI_IMR1_IM12_Msk                  (0x1UL << EXTI_IMR1_IM12_Pos)           /*!< 0x00001000 */
7851 #define EXTI_IMR1_IM12                      EXTI_IMR1_IM12_Msk                      /*!< Interrupt Mask on line 12 */
7852 #define EXTI_IMR1_IM13_Pos                  (13U)
7853 #define EXTI_IMR1_IM13_Msk                  (0x1UL << EXTI_IMR1_IM13_Pos)           /*!< 0x00002000 */
7854 #define EXTI_IMR1_IM13                      EXTI_IMR1_IM13_Msk                      /*!< Interrupt Mask on line 13 */
7855 #define EXTI_IMR1_IM14_Pos                  (14U)
7856 #define EXTI_IMR1_IM14_Msk                  (0x1UL << EXTI_IMR1_IM14_Pos)           /*!< 0x00004000 */
7857 #define EXTI_IMR1_IM14                      EXTI_IMR1_IM14_Msk                      /*!< Interrupt Mask on line 14 */
7858 #define EXTI_IMR1_IM15_Pos                  (15U)
7859 #define EXTI_IMR1_IM15_Msk                  (0x1UL << EXTI_IMR1_IM15_Pos)           /*!< 0x00008000 */
7860 #define EXTI_IMR1_IM15                      EXTI_IMR1_IM15_Msk                      /*!< Interrupt Mask on line 15 */
7861 #define EXTI_IMR1_IM16_Pos                  (16U)
7862 #define EXTI_IMR1_IM16_Msk                  (0x1UL << EXTI_IMR1_IM16_Pos)           /*!< 0x00010000 */
7863 #define EXTI_IMR1_IM16                      EXTI_IMR1_IM16_Msk                      /*!< Interrupt Mask on line 16 */
7864 #define EXTI_IMR1_IM17_Pos                  (17U)
7865 #define EXTI_IMR1_IM17_Msk                  (0x1UL << EXTI_IMR1_IM17_Pos)           /*!< 0x00020000 */
7866 #define EXTI_IMR1_IM17                      EXTI_IMR1_IM17_Msk                      /*!< Interrupt Mask on line 17 */
7867 #define EXTI_IMR1_IM18_Pos                  (18U)
7868 #define EXTI_IMR1_IM18_Msk                  (0x1UL << EXTI_IMR1_IM18_Pos)           /*!< 0x00040000 */
7869 #define EXTI_IMR1_IM18                      EXTI_IMR1_IM18_Msk                      /*!< Interrupt Mask on line 18 */
7870 #define EXTI_IMR1_IM19_Pos                  (19U)
7871 #define EXTI_IMR1_IM19_Msk                  (0x1UL << EXTI_IMR1_IM19_Pos)           /*!< 0x00080000 */
7872 #define EXTI_IMR1_IM19                      EXTI_IMR1_IM19_Msk                      /*!< Interrupt Mask on line 19 */
7873 #define EXTI_IMR1_IM20_Pos                  (20U)
7874 #define EXTI_IMR1_IM20_Msk                  (0x1UL << EXTI_IMR1_IM20_Pos)           /*!< 0x00100000 */
7875 #define EXTI_IMR1_IM20                      EXTI_IMR1_IM20_Msk                      /*!< Interrupt Mask on line 20 */
7876 #define EXTI_IMR1_IM21_Pos                  (21U)
7877 #define EXTI_IMR1_IM21_Msk                  (0x1UL << EXTI_IMR1_IM21_Pos)           /*!< 0x00200000 */
7878 #define EXTI_IMR1_IM21                      EXTI_IMR1_IM21_Msk                      /*!< Interrupt Mask on line 21 */
7879 #define EXTI_IMR1_IM22_Pos                  (22U)
7880 #define EXTI_IMR1_IM22_Msk                  (0x1UL << EXTI_IMR1_IM22_Pos)           /*!< 0x00400000 */
7881 #define EXTI_IMR1_IM22                      EXTI_IMR1_IM22_Msk                      /*!< Interrupt Mask on line 22 */
7882 #define EXTI_IMR1_IM23_Pos                  (23U)
7883 #define EXTI_IMR1_IM23_Msk                  (0x1UL << EXTI_IMR1_IM23_Pos)           /*!< 0x00800000 */
7884 #define EXTI_IMR1_IM23                      EXTI_IMR1_IM23_Msk                      /*!< Interrupt Mask on line 23 */
7885 #define EXTI_IMR1_IM24_Pos                  (24U)
7886 #define EXTI_IMR1_IM24_Msk                  (0x1UL << EXTI_IMR1_IM24_Pos)           /*!< 0x01000000 */
7887 #define EXTI_IMR1_IM24                      EXTI_IMR1_IM24_Msk                      /*!< Interrupt Mask on line 24 */
7888 
7889 /*******************  Bit definition for EXTI_EMR1 register  ******************/
7890 #define EXTI_EMR1_EM0_Pos                   (0U)
7891 #define EXTI_EMR1_EM0_Msk                   (0x1UL << EXTI_EMR1_EM0_Pos)            /*!< 0x00000001 */
7892 #define EXTI_EMR1_EM0                       EXTI_EMR1_EM0_Msk                       /*!< Event Mask on line 0 */
7893 #define EXTI_EMR1_EM1_Pos                   (1U)
7894 #define EXTI_EMR1_EM1_Msk                   (0x1UL << EXTI_EMR1_EM1_Pos)            /*!< 0x00000002 */
7895 #define EXTI_EMR1_EM1                       EXTI_EMR1_EM1_Msk                       /*!< Event Mask on line 1 */
7896 #define EXTI_EMR1_EM2_Pos                   (2U)
7897 #define EXTI_EMR1_EM2_Msk                   (0x1UL << EXTI_EMR1_EM2_Pos)            /*!< 0x00000004 */
7898 #define EXTI_EMR1_EM2                       EXTI_EMR1_EM2_Msk                       /*!< Event Mask on line 2 */
7899 #define EXTI_EMR1_EM3_Pos                   (3U)
7900 #define EXTI_EMR1_EM3_Msk                   (0x1UL << EXTI_EMR1_EM3_Pos)            /*!< 0x00000008 */
7901 #define EXTI_EMR1_EM3                       EXTI_EMR1_EM3_Msk                       /*!< Event Mask on line 3 */
7902 #define EXTI_EMR1_EM4_Pos                   (4U)
7903 #define EXTI_EMR1_EM4_Msk                   (0x1UL << EXTI_EMR1_EM4_Pos)            /*!< 0x00000010 */
7904 #define EXTI_EMR1_EM4                       EXTI_EMR1_EM4_Msk                       /*!< Event Mask on line 4 */
7905 #define EXTI_EMR1_EM5_Pos                   (5U)
7906 #define EXTI_EMR1_EM5_Msk                   (0x1UL << EXTI_EMR1_EM5_Pos)            /*!< 0x00000020 */
7907 #define EXTI_EMR1_EM5                       EXTI_EMR1_EM5_Msk                       /*!< Event Mask on line 5 */
7908 #define EXTI_EMR1_EM6_Pos                   (6U)
7909 #define EXTI_EMR1_EM6_Msk                   (0x1UL << EXTI_EMR1_EM6_Pos)            /*!< 0x00000040 */
7910 #define EXTI_EMR1_EM6                       EXTI_EMR1_EM6_Msk                       /*!< Event Mask on line 6 */
7911 #define EXTI_EMR1_EM7_Pos                   (7U)
7912 #define EXTI_EMR1_EM7_Msk                   (0x1UL << EXTI_EMR1_EM7_Pos)            /*!< 0x00000080 */
7913 #define EXTI_EMR1_EM7                       EXTI_EMR1_EM7_Msk                       /*!< Event Mask on line 7 */
7914 #define EXTI_EMR1_EM8_Pos                   (8U)
7915 #define EXTI_EMR1_EM8_Msk                   (0x1UL << EXTI_EMR1_EM8_Pos)            /*!< 0x00000100 */
7916 #define EXTI_EMR1_EM8                       EXTI_EMR1_EM8_Msk                       /*!< Event Mask on line 8 */
7917 #define EXTI_EMR1_EM9_Pos                   (9U)
7918 #define EXTI_EMR1_EM9_Msk                   (0x1UL << EXTI_EMR1_EM9_Pos)            /*!< 0x00000200 */
7919 #define EXTI_EMR1_EM9                       EXTI_EMR1_EM9_Msk                       /*!< Event Mask on line 9 */
7920 #define EXTI_EMR1_EM10_Pos                  (10U)
7921 #define EXTI_EMR1_EM10_Msk                  (0x1UL << EXTI_EMR1_EM10_Pos)           /*!< 0x00000400 */
7922 #define EXTI_EMR1_EM10                      EXTI_EMR1_EM10_Msk                      /*!< Event Mask on line 10 */
7923 #define EXTI_EMR1_EM11_Pos                  (11U)
7924 #define EXTI_EMR1_EM11_Msk                  (0x1UL << EXTI_EMR1_EM11_Pos)           /*!< 0x00000800 */
7925 #define EXTI_EMR1_EM11                      EXTI_EMR1_EM11_Msk                      /*!< Event Mask on line 11 */
7926 #define EXTI_EMR1_EM12_Pos                  (12U)
7927 #define EXTI_EMR1_EM12_Msk                  (0x1UL << EXTI_EMR1_EM12_Pos)           /*!< 0x00001000 */
7928 #define EXTI_EMR1_EM12                      EXTI_EMR1_EM12_Msk                      /*!< Event Mask on line 12 */
7929 #define EXTI_EMR1_EM13_Pos                  (13U)
7930 #define EXTI_EMR1_EM13_Msk                  (0x1UL << EXTI_EMR1_EM13_Pos)           /*!< 0x00002000 */
7931 #define EXTI_EMR1_EM13                      EXTI_EMR1_EM13_Msk                      /*!< Event Mask on line 13 */
7932 #define EXTI_EMR1_EM14_Pos                  (14U)
7933 #define EXTI_EMR1_EM14_Msk                  (0x1UL << EXTI_EMR1_EM14_Pos)           /*!< 0x00004000 */
7934 #define EXTI_EMR1_EM14                      EXTI_EMR1_EM14_Msk                      /*!< Event Mask on line 14 */
7935 #define EXTI_EMR1_EM15_Pos                  (15U)
7936 #define EXTI_EMR1_EM15_Msk                  (0x1UL << EXTI_EMR1_EM15_Pos)           /*!< 0x00008000 */
7937 #define EXTI_EMR1_EM15                      EXTI_EMR1_EM15_Msk                      /*!< Event Mask on line 15 */
7938 #define EXTI_EMR1_EM16_Pos                  (16U)
7939 #define EXTI_EMR1_EM16_Msk                  (0x1UL << EXTI_EMR1_EM16_Pos)           /*!< 0x00010000 */
7940 #define EXTI_EMR1_EM16                      EXTI_EMR1_EM16_Msk                      /*!< Event Mask on line 16 */
7941 #define EXTI_EMR1_EM17_Pos                  (17U)
7942 #define EXTI_EMR1_EM17_Msk                  (0x1UL << EXTI_EMR1_EM17_Pos)           /*!< 0x00020000 */
7943 #define EXTI_EMR1_EM17                      EXTI_EMR1_EM17_Msk                      /*!< Event Mask on line 17 */
7944 #define EXTI_EMR1_EM18_Pos                  (18U)
7945 #define EXTI_EMR1_EM18_Msk                  (0x1UL << EXTI_EMR1_EM18_Pos)           /*!< 0x00040000 */
7946 #define EXTI_EMR1_EM18                      EXTI_EMR1_EM18_Msk                      /*!< Event Mask on line 18 */
7947 #define EXTI_EMR1_EM19_Pos                  (19U)
7948 #define EXTI_EMR1_EM19_Msk                  (0x1UL << EXTI_EMR1_EM19_Pos)           /*!< 0x00080000 */
7949 #define EXTI_EMR1_EM19                      EXTI_EMR1_EM19_Msk                      /*!< Event Mask on line 19 */
7950 #define EXTI_EMR1_EM20_Pos                  (20U)
7951 #define EXTI_EMR1_EM20_Msk                  (0x1UL << EXTI_EMR1_EM20_Pos)           /*!< 0x00100000 */
7952 #define EXTI_EMR1_EM20                      EXTI_EMR1_EM20_Msk                      /*!< Event Mask on line 20 */
7953 #define EXTI_EMR1_EM21_Pos                  (21U)
7954 #define EXTI_EMR1_EM21_Msk                  (0x1UL << EXTI_EMR1_EM21_Pos)           /*!< 0x00200000 */
7955 #define EXTI_EMR1_EM21                      EXTI_EMR1_EM21_Msk                      /*!< Event Mask on line 21 */
7956 #define EXTI_EMR1_EM22_Pos                  (22U)
7957 #define EXTI_EMR1_EM22_Msk                  (0x1UL << EXTI_EMR1_EM22_Pos)           /*!< 0x00400000 */
7958 #define EXTI_EMR1_EM22                      EXTI_EMR1_EM22_Msk                      /*!< Event Mask on line 22 */
7959 #define EXTI_EMR1_EM23_Pos                  (23U)
7960 #define EXTI_EMR1_EM23_Msk                  (0x1UL << EXTI_EMR1_EM23_Pos)           /*!< 0x00800000 */
7961 #define EXTI_EMR1_EM23                      EXTI_EMR1_EM23_Msk                      /*!< Event Mask on line 23 */
7962 #define EXTI_EMR1_EM24_Pos                  (24U)
7963 #define EXTI_EMR1_EM24_Msk                  (0x1UL << EXTI_EMR1_EM24_Pos)           /*!< 0x01000000 */
7964 #define EXTI_EMR1_EM24                      EXTI_EMR1_EM24_Msk                      /*!< Event Mask on line 24 */
7965 
7966 /******************************************************************************/
7967 /*                                                                            */
7968 /*                 Flexible Datarate Controller Area Network                  */
7969 /*                                                                            */
7970 /******************************************************************************/
7971 /*!<FDCAN control and status registers */
7972 /*****************  Bit definition for FDCAN_CREL register  *******************/
7973 #define FDCAN_CREL_DAY_Pos                  (0U)
7974 #define FDCAN_CREL_DAY_Msk                  (0xFFUL << FDCAN_CREL_DAY_Pos)          /*!< 0x000000FF */
7975 #define FDCAN_CREL_DAY                      FDCAN_CREL_DAY_Msk                      /*!<Timestamp Day                           */
7976 #define FDCAN_CREL_MON_Pos                  (8U)
7977 #define FDCAN_CREL_MON_Msk                  (0xFFUL << FDCAN_CREL_MON_Pos)          /*!< 0x0000FF00 */
7978 #define FDCAN_CREL_MON                      FDCAN_CREL_MON_Msk                      /*!<Timestamp Month                         */
7979 #define FDCAN_CREL_YEAR_Pos                 (16U)
7980 #define FDCAN_CREL_YEAR_Msk                 (0xFUL << FDCAN_CREL_YEAR_Pos)          /*!< 0x000F0000 */
7981 #define FDCAN_CREL_YEAR                     FDCAN_CREL_YEAR_Msk                     /*!<Timestamp Year                          */
7982 #define FDCAN_CREL_SUBSTEP_Pos              (20U)
7983 #define FDCAN_CREL_SUBSTEP_Msk              (0xFUL << FDCAN_CREL_SUBSTEP_Pos)       /*!< 0x00F00000 */
7984 #define FDCAN_CREL_SUBSTEP                  FDCAN_CREL_SUBSTEP_Msk                  /*!<Sub-step of Core release                */
7985 #define FDCAN_CREL_STEP_Pos                 (24U)
7986 #define FDCAN_CREL_STEP_Msk                 (0xFUL << FDCAN_CREL_STEP_Pos)          /*!< 0x0F000000 */
7987 #define FDCAN_CREL_STEP                     FDCAN_CREL_STEP_Msk                     /*!<Step of Core release                    */
7988 #define FDCAN_CREL_REL_Pos                  (28U)
7989 #define FDCAN_CREL_REL_Msk                  (0xFUL << FDCAN_CREL_REL_Pos)           /*!< 0xF0000000 */
7990 #define FDCAN_CREL_REL                      FDCAN_CREL_REL_Msk                      /*!<Core release                            */
7991 
7992 /*****************  Bit definition for FDCAN_ENDN register  *******************/
7993 #define FDCAN_ENDN_ETV_Pos                  (0U)
7994 #define FDCAN_ENDN_ETV_Msk                  (0xFFFFFFFFUL << FDCAN_ENDN_ETV_Pos)    /*!< 0xFFFFFFFF */
7995 #define FDCAN_ENDN_ETV                      FDCAN_ENDN_ETV_Msk                      /*!<Endianness Test Value                    */
7996 
7997 /*****************  Bit definition for FDCAN_DBTP register  *******************/
7998 #define FDCAN_DBTP_DSJW_Pos                 (0U)
7999 #define FDCAN_DBTP_DSJW_Msk                 (0xFUL << FDCAN_DBTP_DSJW_Pos)          /*!< 0x0000000F */
8000 #define FDCAN_DBTP_DSJW                     FDCAN_DBTP_DSJW_Msk                     /*!<Synchronization Jump Width              */
8001 #define FDCAN_DBTP_DTSEG2_Pos               (4U)
8002 #define FDCAN_DBTP_DTSEG2_Msk               (0xFUL << FDCAN_DBTP_DTSEG2_Pos)        /*!< 0x000000F0 */
8003 #define FDCAN_DBTP_DTSEG2                   FDCAN_DBTP_DTSEG2_Msk                   /*!<Data time segment after sample point    */
8004 #define FDCAN_DBTP_DTSEG1_Pos               (8U)
8005 #define FDCAN_DBTP_DTSEG1_Msk               (0x1FUL << FDCAN_DBTP_DTSEG1_Pos)       /*!< 0x00001F00 */
8006 #define FDCAN_DBTP_DTSEG1                   FDCAN_DBTP_DTSEG1_Msk                   /*!<Data time segment before sample point   */
8007 #define FDCAN_DBTP_DBRP_Pos                 (16U)
8008 #define FDCAN_DBTP_DBRP_Msk                 (0x1FUL << FDCAN_DBTP_DBRP_Pos)         /*!< 0x001F0000 */
8009 #define FDCAN_DBTP_DBRP                     FDCAN_DBTP_DBRP_Msk                     /*!<Data BIt Rate Prescaler                 */
8010 #define FDCAN_DBTP_TDC_Pos                  (23U)
8011 #define FDCAN_DBTP_TDC_Msk                  (0x1UL << FDCAN_DBTP_TDC_Pos)           /*!< 0x00800000 */
8012 #define FDCAN_DBTP_TDC                      FDCAN_DBTP_TDC_Msk                      /*!<Transceiver Delay Compensation          */
8013 
8014 /*****************  Bit definition for FDCAN_TEST register  *******************/
8015 #define FDCAN_TEST_LBCK_Pos                 (4U)
8016 #define FDCAN_TEST_LBCK_Msk                 (0x1UL << FDCAN_TEST_LBCK_Pos)          /*!< 0x00000010 */
8017 #define FDCAN_TEST_LBCK                     FDCAN_TEST_LBCK_Msk                     /*!<Loop Back mode                           */
8018 #define FDCAN_TEST_TX_Pos                   (5U)
8019 #define FDCAN_TEST_TX_Msk                   (0x3UL << FDCAN_TEST_TX_Pos)            /*!< 0x00000060 */
8020 #define FDCAN_TEST_TX                       FDCAN_TEST_TX_Msk                       /*!<Control of Transmit Pin                  */
8021 #define FDCAN_TEST_RX_Pos                   (7U)
8022 #define FDCAN_TEST_RX_Msk                   (0x1UL << FDCAN_TEST_RX_Pos)            /*!< 0x00000080 */
8023 #define FDCAN_TEST_RX                       FDCAN_TEST_RX_Msk                       /*!<Receive Pin                              */
8024 
8025 /*****************  Bit definition for FDCAN_RWD register  ********************/
8026 #define FDCAN_RWD_WDC_Pos                   (0U)
8027 #define FDCAN_RWD_WDC_Msk                   (0xFFUL << FDCAN_RWD_WDC_Pos)           /*!< 0x000000FF */
8028 #define FDCAN_RWD_WDC                       FDCAN_RWD_WDC_Msk                       /*!<Watchdog configuration                   */
8029 #define FDCAN_RWD_WDV_Pos                   (8U)
8030 #define FDCAN_RWD_WDV_Msk                   (0xFFUL << FDCAN_RWD_WDV_Pos)           /*!< 0x0000FF00 */
8031 #define FDCAN_RWD_WDV                       FDCAN_RWD_WDV_Msk                       /*!<Watchdog value                           */
8032 
8033 /*****************  Bit definition for FDCAN_CCCR register  ********************/
8034 #define FDCAN_CCCR_INIT_Pos                 (0U)
8035 #define FDCAN_CCCR_INIT_Msk                 (0x1UL << FDCAN_CCCR_INIT_Pos)          /*!< 0x00000001 */
8036 #define FDCAN_CCCR_INIT                     FDCAN_CCCR_INIT_Msk                     /*!<Initialization                           */
8037 #define FDCAN_CCCR_CCE_Pos                  (1U)
8038 #define FDCAN_CCCR_CCE_Msk                  (0x1UL << FDCAN_CCCR_CCE_Pos)           /*!< 0x00000002 */
8039 #define FDCAN_CCCR_CCE                      FDCAN_CCCR_CCE_Msk                      /*!<Configuration Change Enable              */
8040 #define FDCAN_CCCR_ASM_Pos                  (2U)
8041 #define FDCAN_CCCR_ASM_Msk                  (0x1UL << FDCAN_CCCR_ASM_Pos)           /*!< 0x00000004 */
8042 #define FDCAN_CCCR_ASM                      FDCAN_CCCR_ASM_Msk                      /*!<ASM Restricted Operation Mode            */
8043 #define FDCAN_CCCR_CSA_Pos                  (3U)
8044 #define FDCAN_CCCR_CSA_Msk                  (0x1UL << FDCAN_CCCR_CSA_Pos)           /*!< 0x00000008 */
8045 #define FDCAN_CCCR_CSA                      FDCAN_CCCR_CSA_Msk                      /*!<Clock Stop Acknowledge                   */
8046 #define FDCAN_CCCR_CSR_Pos                  (4U)
8047 #define FDCAN_CCCR_CSR_Msk                  (0x1UL << FDCAN_CCCR_CSR_Pos)           /*!< 0x00000010 */
8048 #define FDCAN_CCCR_CSR                      FDCAN_CCCR_CSR_Msk                      /*!<Clock Stop Request                       */
8049 #define FDCAN_CCCR_MON_Pos                  (5U)
8050 #define FDCAN_CCCR_MON_Msk                  (0x1UL << FDCAN_CCCR_MON_Pos)           /*!< 0x00000020 */
8051 #define FDCAN_CCCR_MON                      FDCAN_CCCR_MON_Msk                      /*!<Bus Monitoring Mode                      */
8052 #define FDCAN_CCCR_DAR_Pos                  (6U)
8053 #define FDCAN_CCCR_DAR_Msk                  (0x1UL << FDCAN_CCCR_DAR_Pos)           /*!< 0x00000040 */
8054 #define FDCAN_CCCR_DAR                      FDCAN_CCCR_DAR_Msk                      /*!<Disable Automatic Retransmission         */
8055 #define FDCAN_CCCR_TEST_Pos                 (7U)
8056 #define FDCAN_CCCR_TEST_Msk                 (0x1UL << FDCAN_CCCR_TEST_Pos)          /*!< 0x00000080 */
8057 #define FDCAN_CCCR_TEST                     FDCAN_CCCR_TEST_Msk                     /*!<Test Mode Enable                         */
8058 #define FDCAN_CCCR_FDOE_Pos                 (8U)
8059 #define FDCAN_CCCR_FDOE_Msk                 (0x1UL << FDCAN_CCCR_FDOE_Pos)          /*!< 0x00000100 */
8060 #define FDCAN_CCCR_FDOE                     FDCAN_CCCR_FDOE_Msk                     /*!<FD Operation Enable                      */
8061 #define FDCAN_CCCR_BRSE_Pos                 (9U)
8062 #define FDCAN_CCCR_BRSE_Msk                 (0x1UL << FDCAN_CCCR_BRSE_Pos)          /*!< 0x00000200 */
8063 #define FDCAN_CCCR_BRSE                     FDCAN_CCCR_BRSE_Msk                     /*!<FDCAN Bit Rate Switching                 */
8064 #define FDCAN_CCCR_PXHD_Pos                 (12U)
8065 #define FDCAN_CCCR_PXHD_Msk                 (0x1UL << FDCAN_CCCR_PXHD_Pos)          /*!< 0x00001000 */
8066 #define FDCAN_CCCR_PXHD                     FDCAN_CCCR_PXHD_Msk                     /*!<Protocol Exception Handling Disable      */
8067 #define FDCAN_CCCR_EFBI_Pos                 (13U)
8068 #define FDCAN_CCCR_EFBI_Msk                 (0x1UL << FDCAN_CCCR_EFBI_Pos)          /*!< 0x00002000 */
8069 #define FDCAN_CCCR_EFBI                     FDCAN_CCCR_EFBI_Msk                     /*!<Edge Filtering during Bus Integration    */
8070 #define FDCAN_CCCR_TXP_Pos                  (14U)
8071 #define FDCAN_CCCR_TXP_Msk                  (0x1UL << FDCAN_CCCR_TXP_Pos)           /*!< 0x00004000 */
8072 #define FDCAN_CCCR_TXP                      FDCAN_CCCR_TXP_Msk                      /*!<Two CAN bit times Pause                  */
8073 #define FDCAN_CCCR_NISO_Pos                 (15U)
8074 #define FDCAN_CCCR_NISO_Msk                 (0x1UL << FDCAN_CCCR_NISO_Pos)          /*!< 0x00008000 */
8075 #define FDCAN_CCCR_NISO                     FDCAN_CCCR_NISO_Msk                     /*!<Non ISO Operation                        */
8076 
8077 /*****************  Bit definition for FDCAN_NBTP register  ******************* */
8078 #define FDCAN_NBTP_NTSEG2_Pos               (0U)
8079 #define FDCAN_NBTP_NTSEG2_Msk               (0x7FUL << FDCAN_NBTP_NTSEG2_Pos)       /*!< 0x0000007F */
8080 #define FDCAN_NBTP_NTSEG2                   FDCAN_NBTP_NTSEG2_Msk                   /*!<Nominal Time segment after sample point  */
8081 #define FDCAN_NBTP_NTSEG1_Pos               (8U)
8082 #define FDCAN_NBTP_NTSEG1_Msk               (0xFFUL << FDCAN_NBTP_NTSEG1_Pos)       /*!< 0x0000FF00 */
8083 #define FDCAN_NBTP_NTSEG1                   FDCAN_NBTP_NTSEG1_Msk                   /*!<Nominal Time segment before sample point */
8084 #define FDCAN_NBTP_NBRP_Pos                 (16U)
8085 #define FDCAN_NBTP_NBRP_Msk                 (0x1FFUL << FDCAN_NBTP_NBRP_Pos)        /*!< 0x01FF0000 */
8086 #define FDCAN_NBTP_NBRP                     FDCAN_NBTP_NBRP_Msk                     /*!<Bit Rate Prescaler                       */
8087 #define FDCAN_NBTP_NSJW_Pos                 (25U)
8088 #define FDCAN_NBTP_NSJW_Msk                 (0x7FUL << FDCAN_NBTP_NSJW_Pos)         /*!< 0xFE000000 */
8089 #define FDCAN_NBTP_NSJW                     FDCAN_NBTP_NSJW_Msk                     /*!<Nominal (Re)Synchronization Jump Width   */
8090 
8091 /*****************  Bit definition for FDCAN_TSCC register  ********************/
8092 #define FDCAN_TSCC_TSS_Pos                  (0U)
8093 #define FDCAN_TSCC_TSS_Msk                  (0x3UL << FDCAN_TSCC_TSS_Pos)           /*!< 0x00000003 */
8094 #define FDCAN_TSCC_TSS                      FDCAN_TSCC_TSS_Msk                      /*!<Timestamp Select                         */
8095 #define FDCAN_TSCC_TCP_Pos                  (16U)
8096 #define FDCAN_TSCC_TCP_Msk                  (0xFUL << FDCAN_TSCC_TCP_Pos)           /*!< 0x000F0000 */
8097 #define FDCAN_TSCC_TCP                      FDCAN_TSCC_TCP_Msk                      /*!<Timestamp Counter Prescaler              */
8098 
8099 /*****************  Bit definition for FDCAN_TSCV register  ********************/
8100 #define FDCAN_TSCV_TSC_Pos                  (0U)
8101 #define FDCAN_TSCV_TSC_Msk                  (0xFFFFUL << FDCAN_TSCV_TSC_Pos)        /*!< 0x0000FFFF */
8102 #define FDCAN_TSCV_TSC                      FDCAN_TSCV_TSC_Msk                      /*!<Timestamp Counter                        */
8103 
8104 /*****************  Bit definition for FDCAN_TOCC register  ********************/
8105 #define FDCAN_TOCC_ETOC_Pos                 (0U)
8106 #define FDCAN_TOCC_ETOC_Msk                 (0x1UL << FDCAN_TOCC_ETOC_Pos)          /*!< 0x00000001 */
8107 #define FDCAN_TOCC_ETOC                     FDCAN_TOCC_ETOC_Msk                     /*!<Enable Timeout Counter                   */
8108 #define FDCAN_TOCC_TOS_Pos                  (1U)
8109 #define FDCAN_TOCC_TOS_Msk                  (0x3UL << FDCAN_TOCC_TOS_Pos)           /*!< 0x00000006 */
8110 #define FDCAN_TOCC_TOS                      FDCAN_TOCC_TOS_Msk                      /*!<Timeout Select                           */
8111 #define FDCAN_TOCC_TOP_Pos                  (16U)
8112 #define FDCAN_TOCC_TOP_Msk                  (0xFFFFUL << FDCAN_TOCC_TOP_Pos)        /*!< 0xFFFF0000 */
8113 #define FDCAN_TOCC_TOP                      FDCAN_TOCC_TOP_Msk                      /*!<Timeout Period                           */
8114 
8115 /*****************  Bit definition for FDCAN_TOCV register  ******************* */
8116 #define FDCAN_TOCV_TOC_Pos                  (0U)
8117 #define FDCAN_TOCV_TOC_Msk                  (0xFFFFUL << FDCAN_TOCV_TOC_Pos)        /*!< 0x0000FFFF */
8118 #define FDCAN_TOCV_TOC                      FDCAN_TOCV_TOC_Msk                      /*!<Timeout Counter                          */
8119 
8120 /*****************  Bit definition for FDCAN_ECR register  ******************** */
8121 #define FDCAN_ECR_TEC_Pos                   (0U)
8122 #define FDCAN_ECR_TEC_Msk                   (0xFFUL << FDCAN_ECR_TEC_Pos)           /*!< 0x000000FF */
8123 #define FDCAN_ECR_TEC                       FDCAN_ECR_TEC_Msk                       /*!<Transmit Error Counter                   */
8124 #define FDCAN_ECR_REC_Pos                   (8U)
8125 #define FDCAN_ECR_REC_Msk                   (0x7FUL << FDCAN_ECR_REC_Pos)           /*!< 0x00007F00 */
8126 #define FDCAN_ECR_REC                       FDCAN_ECR_REC_Msk                       /*!<Receive Error Counter                    */
8127 #define FDCAN_ECR_RP_Pos                    (15U)
8128 #define FDCAN_ECR_RP_Msk                    (0x1UL << FDCAN_ECR_RP_Pos)             /*!< 0x00008000 */
8129 #define FDCAN_ECR_RP                        FDCAN_ECR_RP_Msk                        /*!<Receive Error Passive                    */
8130 #define FDCAN_ECR_CEL_Pos                   (16U)
8131 #define FDCAN_ECR_CEL_Msk                   (0xFFUL << FDCAN_ECR_CEL_Pos)           /*!< 0x00FF0000 */
8132 #define FDCAN_ECR_CEL                       FDCAN_ECR_CEL_Msk                       /*!<CAN Error Logging                        */
8133 
8134 /*****************  Bit definition for FDCAN_PSR register  ******************** */
8135 #define FDCAN_PSR_LEC_Pos                   (0U)
8136 #define FDCAN_PSR_LEC_Msk                   (0x7UL << FDCAN_PSR_LEC_Pos)            /*!< 0x00000007 */
8137 #define FDCAN_PSR_LEC                       FDCAN_PSR_LEC_Msk                       /*!<Last Error Code                          */
8138 #define FDCAN_PSR_ACT_Pos                   (3U)
8139 #define FDCAN_PSR_ACT_Msk                   (0x3UL << FDCAN_PSR_ACT_Pos)            /*!< 0x00000018 */
8140 #define FDCAN_PSR_ACT                       FDCAN_PSR_ACT_Msk                       /*!<Activity                                 */
8141 #define FDCAN_PSR_EP_Pos                    (5U)
8142 #define FDCAN_PSR_EP_Msk                    (0x1UL << FDCAN_PSR_EP_Pos)             /*!< 0x00000020 */
8143 #define FDCAN_PSR_EP                        FDCAN_PSR_EP_Msk                        /*!<Error Passive                            */
8144 #define FDCAN_PSR_EW_Pos                    (6U)
8145 #define FDCAN_PSR_EW_Msk                    (0x1UL << FDCAN_PSR_EW_Pos)             /*!< 0x00000040 */
8146 #define FDCAN_PSR_EW                        FDCAN_PSR_EW_Msk                        /*!<Warning Status                           */
8147 #define FDCAN_PSR_BO_Pos                    (7U)
8148 #define FDCAN_PSR_BO_Msk                    (0x1UL << FDCAN_PSR_BO_Pos)             /*!< 0x00000080 */
8149 #define FDCAN_PSR_BO                        FDCAN_PSR_BO_Msk                        /*!<Bus_Off Status                           */
8150 #define FDCAN_PSR_DLEC_Pos                  (8U)
8151 #define FDCAN_PSR_DLEC_Msk                  (0x7UL << FDCAN_PSR_DLEC_Pos)           /*!< 0x00000700 */
8152 #define FDCAN_PSR_DLEC                      FDCAN_PSR_DLEC_Msk                      /*!<Data Last Error Code                     */
8153 #define FDCAN_PSR_RESI_Pos                  (11U)
8154 #define FDCAN_PSR_RESI_Msk                  (0x1UL << FDCAN_PSR_RESI_Pos)           /*!< 0x00000800 */
8155 #define FDCAN_PSR_RESI                      FDCAN_PSR_RESI_Msk                      /*!<ESI flag of last received FDCAN Message  */
8156 #define FDCAN_PSR_RBRS_Pos                  (12U)
8157 #define FDCAN_PSR_RBRS_Msk                  (0x1UL << FDCAN_PSR_RBRS_Pos)           /*!< 0x00001000 */
8158 #define FDCAN_PSR_RBRS                      FDCAN_PSR_RBRS_Msk                      /*!<BRS flag of last received FDCAN Message  */
8159 #define FDCAN_PSR_REDL_Pos                  (13U)
8160 #define FDCAN_PSR_REDL_Msk                  (0x1UL << FDCAN_PSR_REDL_Pos)           /*!< 0x00002000 */
8161 #define FDCAN_PSR_REDL                      FDCAN_PSR_REDL_Msk                      /*!<Received FDCAN Message                   */
8162 #define FDCAN_PSR_PXE_Pos                   (14U)
8163 #define FDCAN_PSR_PXE_Msk                   (0x1UL << FDCAN_PSR_PXE_Pos)            /*!< 0x00004000 */
8164 #define FDCAN_PSR_PXE                       FDCAN_PSR_PXE_Msk                       /*!<Protocol Exception Event                 */
8165 #define FDCAN_PSR_TDCV_Pos                  (16U)
8166 #define FDCAN_PSR_TDCV_Msk                  (0x7FUL << FDCAN_PSR_TDCV_Pos)          /*!< 0x007F0000 */
8167 #define FDCAN_PSR_TDCV                      FDCAN_PSR_TDCV_Msk                      /*!<Transmitter Delay Compensation Value     */
8168 
8169 /*****************  Bit definition for FDCAN_TDCR register  ******************* */
8170 #define FDCAN_TDCR_TDCF_Pos                 (0U)
8171 #define FDCAN_TDCR_TDCF_Msk                 (0x7FUL << FDCAN_TDCR_TDCF_Pos)         /*!< 0x0000007F */
8172 #define FDCAN_TDCR_TDCF                     FDCAN_TDCR_TDCF_Msk                     /*!<Transmitter Delay Compensation Filter    */
8173 #define FDCAN_TDCR_TDCO_Pos                 (8U)
8174 #define FDCAN_TDCR_TDCO_Msk                 (0x7FUL << FDCAN_TDCR_TDCO_Pos)         /*!< 0x00007F00 */
8175 #define FDCAN_TDCR_TDCO                     FDCAN_TDCR_TDCO_Msk                     /*!<Transmitter Delay Compensation Offset    */
8176 
8177 /*****************  Bit definition for FDCAN_IR register  ********************* */
8178 #define FDCAN_IR_RF0N_Pos                   (0U)
8179 #define FDCAN_IR_RF0N_Msk                   (0x1UL << FDCAN_IR_RF0N_Pos)            /*!< 0x00000001 */
8180 #define FDCAN_IR_RF0N                       FDCAN_IR_RF0N_Msk                       /*!<Rx FIFO 0 New Message                    */
8181 #define FDCAN_IR_RF0F_Pos                   (1U)
8182 #define FDCAN_IR_RF0F_Msk                   (0x1UL << FDCAN_IR_RF0F_Pos)            /*!< 0x00000002 */
8183 #define FDCAN_IR_RF0F                       FDCAN_IR_RF0F_Msk                       /*!<Rx FIFO 0 Full                           */
8184 #define FDCAN_IR_RF0L_Pos                   (2U)
8185 #define FDCAN_IR_RF0L_Msk                   (0x1UL << FDCAN_IR_RF0L_Pos)            /*!< 0x00000004 */
8186 #define FDCAN_IR_RF0L                       FDCAN_IR_RF0L_Msk                       /*!<Rx FIFO 0 Message Lost                   */
8187 #define FDCAN_IR_RF1N_Pos                   (3U)
8188 #define FDCAN_IR_RF1N_Msk                   (0x1UL << FDCAN_IR_RF1N_Pos)            /*!< 0x00000008 */
8189 #define FDCAN_IR_RF1N                       FDCAN_IR_RF1N_Msk                       /*!<Rx FIFO 1 New Message                    */
8190 #define FDCAN_IR_RF1F_Pos                   (4U)
8191 #define FDCAN_IR_RF1F_Msk                   (0x1UL << FDCAN_IR_RF1F_Pos)            /*!< 0x00000010 */
8192 #define FDCAN_IR_RF1F                       FDCAN_IR_RF1F_Msk                       /*!<Rx FIFO 1 Full                           */
8193 #define FDCAN_IR_RF1L_Pos                   (5U)
8194 #define FDCAN_IR_RF1L_Msk                   (0x1UL << FDCAN_IR_RF1L_Pos)            /*!< 0x00000020 */
8195 #define FDCAN_IR_RF1L                       FDCAN_IR_RF1L_Msk                       /*!<Rx FIFO 1 Message Lost                   */
8196 #define FDCAN_IR_HPM_Pos                    (6U)
8197 #define FDCAN_IR_HPM_Msk                    (0x1UL << FDCAN_IR_HPM_Pos)             /*!< 0x00000040 */
8198 #define FDCAN_IR_HPM                        FDCAN_IR_HPM_Msk                        /*!<High Priority Message                    */
8199 #define FDCAN_IR_TC_Pos                     (7U)
8200 #define FDCAN_IR_TC_Msk                     (0x1UL << FDCAN_IR_TC_Pos)              /*!< 0x00000080 */
8201 #define FDCAN_IR_TC                         FDCAN_IR_TC_Msk                         /*!<Transmission Completed                   */
8202 #define FDCAN_IR_TCF_Pos                    (8U)
8203 #define FDCAN_IR_TCF_Msk                    (0x1UL << FDCAN_IR_TCF_Pos)             /*!< 0x00000100 */
8204 #define FDCAN_IR_TCF                        FDCAN_IR_TCF_Msk                        /*!<Transmission Cancellation Finished       */
8205 #define FDCAN_IR_TFE_Pos                    (9U)
8206 #define FDCAN_IR_TFE_Msk                    (0x1UL << FDCAN_IR_TFE_Pos)             /*!< 0x00000200 */
8207 #define FDCAN_IR_TFE                        FDCAN_IR_TFE_Msk                        /*!<Tx FIFO Empty                            */
8208 #define FDCAN_IR_TEFN_Pos                   (10U)
8209 #define FDCAN_IR_TEFN_Msk                   (0x1UL << FDCAN_IR_TEFN_Pos)            /*!< 0x00000400 */
8210 #define FDCAN_IR_TEFN                       FDCAN_IR_TEFN_Msk                       /*!<Tx Event FIFO New Entry                  */
8211 #define FDCAN_IR_TEFF_Pos                   (11U)
8212 #define FDCAN_IR_TEFF_Msk                   (0x1UL << FDCAN_IR_TEFF_Pos)            /*!< 0x00000800 */
8213 #define FDCAN_IR_TEFF                       FDCAN_IR_TEFF_Msk                       /*!<Tx Event FIFO Full                       */
8214 #define FDCAN_IR_TEFL_Pos                   (12U)
8215 #define FDCAN_IR_TEFL_Msk                   (0x1UL << FDCAN_IR_TEFL_Pos)            /*!< 0x00001000 */
8216 #define FDCAN_IR_TEFL                       FDCAN_IR_TEFL_Msk                       /*!<Tx Event FIFO Element Lost               */
8217 #define FDCAN_IR_TSW_Pos                    (13U)
8218 #define FDCAN_IR_TSW_Msk                    (0x1UL << FDCAN_IR_TSW_Pos)             /*!< 0x00002000 */
8219 #define FDCAN_IR_TSW                        FDCAN_IR_TSW_Msk                        /*!<Timestamp Wraparound                     */
8220 #define FDCAN_IR_MRAF_Pos                   (14U)
8221 #define FDCAN_IR_MRAF_Msk                   (0x1UL << FDCAN_IR_MRAF_Pos)            /*!< 0x00004000 */
8222 #define FDCAN_IR_MRAF                       FDCAN_IR_MRAF_Msk                       /*!<Message RAM Access Failure               */
8223 #define FDCAN_IR_TOO_Pos                    (15U)
8224 #define FDCAN_IR_TOO_Msk                    (0x1UL << FDCAN_IR_TOO_Pos)             /*!< 0x00008000 */
8225 #define FDCAN_IR_TOO                        FDCAN_IR_TOO_Msk                        /*!<Timeout Occurred                         */
8226 #define FDCAN_IR_ELO_Pos                    (16U)
8227 #define FDCAN_IR_ELO_Msk                    (0x1UL << FDCAN_IR_ELO_Pos)             /*!< 0x00010000 */
8228 #define FDCAN_IR_ELO                        FDCAN_IR_ELO_Msk                        /*!<Error Logging Overflow                   */
8229 #define FDCAN_IR_EP_Pos                     (17U)
8230 #define FDCAN_IR_EP_Msk                     (0x1UL << FDCAN_IR_EP_Pos)              /*!< 0x00020000 */
8231 #define FDCAN_IR_EP                         FDCAN_IR_EP_Msk                         /*!<Error Passive                            */
8232 #define FDCAN_IR_EW_Pos                     (18U)
8233 #define FDCAN_IR_EW_Msk                     (0x1UL << FDCAN_IR_EW_Pos)              /*!< 0x00040000 */
8234 #define FDCAN_IR_EW                         FDCAN_IR_EW_Msk                         /*!<Warning Status                           */
8235 #define FDCAN_IR_BO_Pos                     (19U)
8236 #define FDCAN_IR_BO_Msk                     (0x1UL << FDCAN_IR_BO_Pos)              /*!< 0x00080000 */
8237 #define FDCAN_IR_BO                         FDCAN_IR_BO_Msk                         /*!<Bus_Off Status                           */
8238 #define FDCAN_IR_WDI_Pos                    (20U)
8239 #define FDCAN_IR_WDI_Msk                    (0x1UL << FDCAN_IR_WDI_Pos)             /*!< 0x00100000 */
8240 #define FDCAN_IR_WDI                        FDCAN_IR_WDI_Msk                        /*!<Watchdog Interrupt                       */
8241 #define FDCAN_IR_PEA_Pos                    (21U)
8242 #define FDCAN_IR_PEA_Msk                    (0x1UL << FDCAN_IR_PEA_Pos)             /*!< 0x00200000 */
8243 #define FDCAN_IR_PEA                        FDCAN_IR_PEA_Msk                        /*!<Protocol Error in Arbitration Phase      */
8244 #define FDCAN_IR_PED_Pos                    (22U)
8245 #define FDCAN_IR_PED_Msk                    (0x1UL << FDCAN_IR_PED_Pos)             /*!< 0x00400000 */
8246 #define FDCAN_IR_PED                        FDCAN_IR_PED_Msk                        /*!<Protocol Error in Data Phase             */
8247 #define FDCAN_IR_ARA_Pos                    (23U)
8248 #define FDCAN_IR_ARA_Msk                    (0x1UL << FDCAN_IR_ARA_Pos)             /*!< 0x00800000 */
8249 #define FDCAN_IR_ARA                        FDCAN_IR_ARA_Msk                        /*!<Access to Reserved Address               */
8250 
8251 /*****************  Bit definition for FDCAN_IE register  ********************* */
8252 #define FDCAN_IE_RF0NE_Pos                  (0U)
8253 #define FDCAN_IE_RF0NE_Msk                  (0x1UL << FDCAN_IE_RF0NE_Pos)           /*!< 0x00000001 */
8254 #define FDCAN_IE_RF0NE                      FDCAN_IE_RF0NE_Msk                      /*!<Rx FIFO 0 New Message Enable             */
8255 #define FDCAN_IE_RF0FE_Pos                  (1U)
8256 #define FDCAN_IE_RF0FE_Msk                  (0x1UL << FDCAN_IE_RF0FE_Pos)           /*!< 0x00000002 */
8257 #define FDCAN_IE_RF0FE                      FDCAN_IE_RF0FE_Msk                      /*!<Rx FIFO 0 Full Enable                    */
8258 #define FDCAN_IE_RF0LE_Pos                  (2U)
8259 #define FDCAN_IE_RF0LE_Msk                  (0x1UL << FDCAN_IE_RF0LE_Pos)           /*!< 0x00000004 */
8260 #define FDCAN_IE_RF0LE                      FDCAN_IE_RF0LE_Msk                      /*!<Rx FIFO 0 Message Lost Enable            */
8261 #define FDCAN_IE_RF1NE_Pos                  (3U)
8262 #define FDCAN_IE_RF1NE_Msk                  (0x1UL << FDCAN_IE_RF1NE_Pos)           /*!< 0x00000008 */
8263 #define FDCAN_IE_RF1NE                      FDCAN_IE_RF1NE_Msk                      /*!<Rx FIFO 1 New Message Enable             */
8264 #define FDCAN_IE_RF1FE_Pos                  (4U)
8265 #define FDCAN_IE_RF1FE_Msk                  (0x1UL << FDCAN_IE_RF1FE_Pos)           /*!< 0x00000010 */
8266 #define FDCAN_IE_RF1FE                      FDCAN_IE_RF1FE_Msk                      /*!<Rx FIFO 1 Full Enable                    */
8267 #define FDCAN_IE_RF1LE_Pos                  (5U)
8268 #define FDCAN_IE_RF1LE_Msk                  (0x1UL << FDCAN_IE_RF1LE_Pos)           /*!< 0x00000020 */
8269 #define FDCAN_IE_RF1LE                      FDCAN_IE_RF1LE_Msk                      /*!<Rx FIFO 1 Message Lost Enable            */
8270 #define FDCAN_IE_HPME_Pos                   (6U)
8271 #define FDCAN_IE_HPME_Msk                   (0x1UL << FDCAN_IE_HPME_Pos)            /*!< 0x00000040 */
8272 #define FDCAN_IE_HPME                       FDCAN_IE_HPME_Msk                       /*!<High Priority Message Enable             */
8273 #define FDCAN_IE_TCE_Pos                    (7U)
8274 #define FDCAN_IE_TCE_Msk                    (0x1UL << FDCAN_IE_TCE_Pos)             /*!< 0x00000080 */
8275 #define FDCAN_IE_TCE                        FDCAN_IE_TCE_Msk                        /*!<Transmission Completed Enable            */
8276 #define FDCAN_IE_TCFE_Pos                   (8U)
8277 #define FDCAN_IE_TCFE_Msk                   (0x1UL << FDCAN_IE_TCFE_Pos)            /*!< 0x00000100 */
8278 #define FDCAN_IE_TCFE                       FDCAN_IE_TCFE_Msk                       /*!<Transmission Cancellation Finished Enable*/
8279 #define FDCAN_IE_TFEE_Pos                   (9U)
8280 #define FDCAN_IE_TFEE_Msk                   (0x1UL << FDCAN_IE_TFEE_Pos)            /*!< 0x00000200 */
8281 #define FDCAN_IE_TFEE                       FDCAN_IE_TFEE_Msk                       /*!<Tx FIFO Empty Enable                     */
8282 #define FDCAN_IE_TEFNE_Pos                  (10U)
8283 #define FDCAN_IE_TEFNE_Msk                  (0x1UL << FDCAN_IE_TEFNE_Pos)           /*!< 0x00000400 */
8284 #define FDCAN_IE_TEFNE                      FDCAN_IE_TEFNE_Msk                      /*!<Tx Event FIFO New Entry Enable           */
8285 #define FDCAN_IE_TEFFE_Pos                  (11U)
8286 #define FDCAN_IE_TEFFE_Msk                  (0x1UL << FDCAN_IE_TEFFE_Pos)           /*!< 0x00000800 */
8287 #define FDCAN_IE_TEFFE                      FDCAN_IE_TEFFE_Msk                      /*!<Tx Event FIFO Full Enable                */
8288 #define FDCAN_IE_TEFLE_Pos                  (12U)
8289 #define FDCAN_IE_TEFLE_Msk                  (0x1UL << FDCAN_IE_TEFLE_Pos)           /*!< 0x00001000 */
8290 #define FDCAN_IE_TEFLE                      FDCAN_IE_TEFLE_Msk                      /*!<Tx Event FIFO Element Lost Enable        */
8291 #define FDCAN_IE_TSWE_Pos                   (13U)
8292 #define FDCAN_IE_TSWE_Msk                   (0x1UL << FDCAN_IE_TSWE_Pos)            /*!< 0x00002000 */
8293 #define FDCAN_IE_TSWE                       FDCAN_IE_TSWE_Msk                       /*!<Timestamp Wraparound Enable              */
8294 #define FDCAN_IE_MRAFE_Pos                  (14U)
8295 #define FDCAN_IE_MRAFE_Msk                  (0x1UL << FDCAN_IE_MRAFE_Pos)           /*!< 0x00004000 */
8296 #define FDCAN_IE_MRAFE                      FDCAN_IE_MRAFE_Msk                      /*!<Message RAM Access Failure Enable        */
8297 #define FDCAN_IE_TOOE_Pos                   (15U)
8298 #define FDCAN_IE_TOOE_Msk                   (0x1UL << FDCAN_IE_TOOE_Pos)            /*!< 0x00008000 */
8299 #define FDCAN_IE_TOOE                       FDCAN_IE_TOOE_Msk                       /*!<Timeout Occurred Enable                  */
8300 #define FDCAN_IE_ELOE_Pos                   (16U)
8301 #define FDCAN_IE_ELOE_Msk                   (0x1UL << FDCAN_IE_ELOE_Pos)            /*!< 0x00010000 */
8302 #define FDCAN_IE_ELOE                       FDCAN_IE_ELOE_Msk                       /*!<Error Logging Overflow Enable            */
8303 #define FDCAN_IE_EPE_Pos                    (17U)
8304 #define FDCAN_IE_EPE_Msk                    (0x1UL << FDCAN_IE_EPE_Pos)             /*!< 0x00020000 */
8305 #define FDCAN_IE_EPE                        FDCAN_IE_EPE_Msk                        /*!<Error Passive Enable                     */
8306 #define FDCAN_IE_EWE_Pos                    (18U)
8307 #define FDCAN_IE_EWE_Msk                    (0x1UL << FDCAN_IE_EWE_Pos)             /*!< 0x00040000 */
8308 #define FDCAN_IE_EWE                        FDCAN_IE_EWE_Msk                        /*!<Warning Status Enable                    */
8309 #define FDCAN_IE_BOE_Pos                    (19U)
8310 #define FDCAN_IE_BOE_Msk                    (0x1UL << FDCAN_IE_BOE_Pos)             /*!< 0x00080000 */
8311 #define FDCAN_IE_BOE                        FDCAN_IE_BOE_Msk                        /*!<Bus_Off Status Enable                    */
8312 #define FDCAN_IE_WDIE_Pos                   (20U)
8313 #define FDCAN_IE_WDIE_Msk                   (0x1UL << FDCAN_IE_WDIE_Pos)            /*!< 0x00100000 */
8314 #define FDCAN_IE_WDIE                       FDCAN_IE_WDIE_Msk                       /*!<Watchdog Interrupt Enable                */
8315 #define FDCAN_IE_PEAE_Pos                   (21U)
8316 #define FDCAN_IE_PEAE_Msk                   (0x1UL << FDCAN_IE_PEAE_Pos)            /*!< 0x00200000 */
8317 #define FDCAN_IE_PEAE                       FDCAN_IE_PEAE_Msk                       /*!<Protocol Error in Arbitration Phase Enable*/
8318 #define FDCAN_IE_PEDE_Pos                   (22U)
8319 #define FDCAN_IE_PEDE_Msk                   (0x1UL << FDCAN_IE_PEDE_Pos)            /*!< 0x00400000 */
8320 #define FDCAN_IE_PEDE                       FDCAN_IE_PEDE_Msk                       /*!<Protocol Error in Data Phase Enable      */
8321 #define FDCAN_IE_ARAE_Pos                   (23U)
8322 #define FDCAN_IE_ARAE_Msk                   (0x1UL << FDCAN_IE_ARAE_Pos)            /*!< 0x00800000 */
8323 #define FDCAN_IE_ARAE                       FDCAN_IE_ARAE_Msk                       /*!<Access to Reserved Address Enable        */
8324 
8325 /*****************  Bit definition for FDCAN_ILS register  ******************** **/
8326 #define FDCAN_ILS_RXFIFO0_Pos               (0U)
8327 #define FDCAN_ILS_RXFIFO0_Msk               (0x1UL << FDCAN_ILS_RXFIFO0_Pos)        /*!< 0x00000001 */
8328 #define FDCAN_ILS_RXFIFO0                   FDCAN_ILS_RXFIFO0_Msk                   /*!<Rx FIFO 0 Message Lost
8329                                                                                         Rx FIFO 0 is Full
8330                                                                                         Rx FIFO 0 Has New Message                */
8331 #define FDCAN_ILS_RXFIFO1_Pos               (1U)
8332 #define FDCAN_ILS_RXFIFO1_Msk               (0x1UL << FDCAN_ILS_RXFIFO1_Pos)        /*!< 0x00000002 */
8333 #define FDCAN_ILS_RXFIFO1                   FDCAN_ILS_RXFIFO1_Msk                   /*!<Rx FIFO 1 Message Lost
8334                                                                                         Rx FIFO 1 is Full
8335                                                                                         Rx FIFO 1 Has New Message                */
8336 #define FDCAN_ILS_SMSG_Pos                  (2U)
8337 #define FDCAN_ILS_SMSG_Msk                  (0x1UL << FDCAN_ILS_SMSG_Pos)           /*!< 0x00000004 */
8338 #define FDCAN_ILS_SMSG                      FDCAN_ILS_SMSG_Msk                      /*!<Transmission Cancellation Finished
8339                                                                                         Transmission Completed
8340                                                                                         High Priority Message                    */
8341 #define FDCAN_ILS_TFERR_Pos                 (3U)
8342 #define FDCAN_ILS_TFERR_Msk                 (0x1UL << FDCAN_ILS_TFERR_Pos)          /*!< 0x00000008 */
8343 #define FDCAN_ILS_TFERR                     FDCAN_ILS_TFERR_Msk                     /*!<Tx Event FIFO Element Lost
8344                                                                                         Tx Event FIFO Full
8345                                                                                         Tx Event FIFO New Entry
8346                                                                                         Tx FIFO Empty Interrupt Line             */
8347 #define FDCAN_ILS_MISC_Pos                  (4U)
8348 #define FDCAN_ILS_MISC_Msk                  (0x1UL << FDCAN_ILS_MISC_Pos)           /*!< 0x00000010 */
8349 #define FDCAN_ILS_MISC                      FDCAN_ILS_MISC_Msk                      /*!<Timeout Occurred
8350                                                                                         Message RAM Access Failure
8351                                                                                         Timestamp Wraparound                    */
8352 #define FDCAN_ILS_BERR_Pos                  (5U)
8353 #define FDCAN_ILS_BERR_Msk                  (0x1UL << FDCAN_ILS_BERR_Pos)           /*!< 0x00000020 */
8354 #define FDCAN_ILS_BERR                      FDCAN_ILS_BERR_Msk                      /*!<Error Passive
8355                                                                                         Error Logging Overflow                   */
8356 #define FDCAN_ILS_PERR_Pos                  (6U)
8357 #define FDCAN_ILS_PERR_Msk                  (0x1UL << FDCAN_ILS_PERR_Pos)           /*!< 0x00000040 */
8358 #define FDCAN_ILS_PERR                      FDCAN_ILS_PERR_Msk                      /*!<Access to Reserved Address Line
8359                                                                                         Protocol Error in Data Phase Line
8360                                                                                         Protocol Error in Arbitration Phase Line
8361                                                                                         Watchdog Interrupt Line
8362                                                                                         Bus_Off Status
8363                                                                                         Warning Status                           */
8364 
8365 /*****************  Bit definition for FDCAN_ILE register  ******************** **/
8366 #define FDCAN_ILE_EINT0_Pos                 (0U)
8367 #define FDCAN_ILE_EINT0_Msk                 (0x1UL << FDCAN_ILE_EINT0_Pos)          /*!< 0x00000001 */
8368 #define FDCAN_ILE_EINT0                     FDCAN_ILE_EINT0_Msk                     /*!<Enable Interrupt Line 0                  */
8369 #define FDCAN_ILE_EINT1_Pos                 (1U)
8370 #define FDCAN_ILE_EINT1_Msk                 (0x1UL << FDCAN_ILE_EINT1_Pos)          /*!< 0x00000002 */
8371 #define FDCAN_ILE_EINT1                     FDCAN_ILE_EINT1_Msk                     /*!<Enable Interrupt Line 1                  */
8372 
8373 /*****************  Bit definition for FDCAN_RXGFC register  ****************** **/
8374 #define FDCAN_RXGFC_RRFE_Pos                (0U)
8375 #define FDCAN_RXGFC_RRFE_Msk                (0x1UL << FDCAN_RXGFC_RRFE_Pos)         /*!< 0x00000001 */
8376 #define FDCAN_RXGFC_RRFE                    FDCAN_RXGFC_RRFE_Msk                    /*!<Reject Remote Frames Extended            */
8377 #define FDCAN_RXGFC_RRFS_Pos                (1U)
8378 #define FDCAN_RXGFC_RRFS_Msk                (0x1UL << FDCAN_RXGFC_RRFS_Pos)         /*!< 0x00000002 */
8379 #define FDCAN_RXGFC_RRFS                    FDCAN_RXGFC_RRFS_Msk                    /*!<Reject Remote Frames Standard            */
8380 #define FDCAN_RXGFC_ANFE_Pos                (2U)
8381 #define FDCAN_RXGFC_ANFE_Msk                (0x3UL << FDCAN_RXGFC_ANFE_Pos)         /*!< 0x0000000C */
8382 #define FDCAN_RXGFC_ANFE                    FDCAN_RXGFC_ANFE_Msk                    /*!<Accept Non-matching Frames Extended      */
8383 #define FDCAN_RXGFC_ANFS_Pos                (4U)
8384 #define FDCAN_RXGFC_ANFS_Msk                (0x3UL << FDCAN_RXGFC_ANFS_Pos)         /*!< 0x00000030 */
8385 #define FDCAN_RXGFC_ANFS                    FDCAN_RXGFC_ANFS_Msk                    /*!<Accept Non-matching Frames Standard      */
8386 #define FDCAN_RXGFC_F1OM_Pos                (8U)
8387 #define FDCAN_RXGFC_F1OM_Msk                (0x1UL << FDCAN_RXGFC_F1OM_Pos)         /*!< 0x00000100 */
8388 #define FDCAN_RXGFC_F1OM                    FDCAN_RXGFC_F1OM_Msk                    /*!<FIFO 1 operation mode                    */
8389 #define FDCAN_RXGFC_F0OM_Pos                (9U)
8390 #define FDCAN_RXGFC_F0OM_Msk                (0x1UL << FDCAN_RXGFC_F0OM_Pos)         /*!< 0x00000200 */
8391 #define FDCAN_RXGFC_F0OM                    FDCAN_RXGFC_F0OM_Msk                    /*!<FIFO 0 operation mode                    */
8392 #define FDCAN_RXGFC_LSS_Pos                 (16U)
8393 #define FDCAN_RXGFC_LSS_Msk                 (0x1FUL << FDCAN_RXGFC_LSS_Pos)         /*!< 0x001F0000 */
8394 #define FDCAN_RXGFC_LSS                     FDCAN_RXGFC_LSS_Msk                     /*!<List Size Standard                       */
8395 #define FDCAN_RXGFC_LSE_Pos                 (24U)
8396 #define FDCAN_RXGFC_LSE_Msk                 (0xFUL << FDCAN_RXGFC_LSE_Pos)          /*!< 0x0F000000 */
8397 #define FDCAN_RXGFC_LSE                     FDCAN_RXGFC_LSE_Msk                     /*!<List Size Extended                       */
8398 
8399 /*****************  Bit definition for FDCAN_XIDAM register  ****************** **/
8400 #define FDCAN_XIDAM_EIDM_Pos                (0U)
8401 #define FDCAN_XIDAM_EIDM_Msk                (0x1FFFFFFFUL << FDCAN_XIDAM_EIDM_Pos)  /*!< 0x1FFFFFFF */
8402 #define FDCAN_XIDAM_EIDM                    FDCAN_XIDAM_EIDM_Msk                    /*!<Extended ID Mask                         */
8403 
8404 /*****************  Bit definition for FDCAN_HPMS register  ******************* **/
8405 #define FDCAN_HPMS_BIDX_Pos                 (0U)
8406 #define FDCAN_HPMS_BIDX_Msk                 (0x7UL << FDCAN_HPMS_BIDX_Pos)          /*!< 0x00000007 */
8407 #define FDCAN_HPMS_BIDX                     FDCAN_HPMS_BIDX_Msk                     /*!<Buffer Index                             */
8408 #define FDCAN_HPMS_MSI_Pos                  (6U)
8409 #define FDCAN_HPMS_MSI_Msk                  (0x3UL << FDCAN_HPMS_MSI_Pos)           /*!< 0x000000C0 */
8410 #define FDCAN_HPMS_MSI                      FDCAN_HPMS_MSI_Msk                      /*!<Message Storage Indicator                */
8411 #define FDCAN_HPMS_FIDX_Pos                 (8U)
8412 #define FDCAN_HPMS_FIDX_Msk                 (0x1FUL << FDCAN_HPMS_FIDX_Pos)         /*!< 0x00001F00 */
8413 #define FDCAN_HPMS_FIDX                     FDCAN_HPMS_FIDX_Msk                     /*!<Filter Index                             */
8414 #define FDCAN_HPMS_FLST_Pos                 (15U)
8415 #define FDCAN_HPMS_FLST_Msk                 (0x1UL << FDCAN_HPMS_FLST_Pos)          /*!< 0x00008000 */
8416 #define FDCAN_HPMS_FLST                     FDCAN_HPMS_FLST_Msk                     /*!<Filter List                              */
8417 
8418 /*****************  Bit definition for FDCAN_RXF0S register  ****************** **/
8419 #define FDCAN_RXF0S_F0FL_Pos                (0U)
8420 #define FDCAN_RXF0S_F0FL_Msk                (0xFUL << FDCAN_RXF0S_F0FL_Pos)         /*!< 0x0000000F */
8421 #define FDCAN_RXF0S_F0FL                    FDCAN_RXF0S_F0FL_Msk                    /*!<Rx FIFO 0 Fill Level                     */
8422 #define FDCAN_RXF0S_F0GI_Pos                (8U)
8423 #define FDCAN_RXF0S_F0GI_Msk                (0x3UL << FDCAN_RXF0S_F0GI_Pos)         /*!< 0x00000300 */
8424 #define FDCAN_RXF0S_F0GI                    FDCAN_RXF0S_F0GI_Msk                    /*!<Rx FIFO 0 Get Index                      */
8425 #define FDCAN_RXF0S_F0PI_Pos                (16U)
8426 #define FDCAN_RXF0S_F0PI_Msk                (0x3UL << FDCAN_RXF0S_F0PI_Pos)         /*!< 0x00030000 */
8427 #define FDCAN_RXF0S_F0PI                    FDCAN_RXF0S_F0PI_Msk                    /*!<Rx FIFO 0 Put Index                      */
8428 #define FDCAN_RXF0S_F0F_Pos                 (24U)
8429 #define FDCAN_RXF0S_F0F_Msk                 (0x1UL << FDCAN_RXF0S_F0F_Pos)          /*!< 0x01000000 */
8430 #define FDCAN_RXF0S_F0F                     FDCAN_RXF0S_F0F_Msk                     /*!<Rx FIFO 0 Full                           */
8431 #define FDCAN_RXF0S_RF0L_Pos                (25U)
8432 #define FDCAN_RXF0S_RF0L_Msk                (0x1UL << FDCAN_RXF0S_RF0L_Pos)         /*!< 0x02000000 */
8433 #define FDCAN_RXF0S_RF0L                    FDCAN_RXF0S_RF0L_Msk                    /*!<Rx FIFO 0 Message Lost                   */
8434 
8435 /*****************  Bit definition for FDCAN_RXF0A register  ****************** **/
8436 #define FDCAN_RXF0A_F0AI_Pos                (0U)
8437 #define FDCAN_RXF0A_F0AI_Msk                (0x7UL << FDCAN_RXF0A_F0AI_Pos)         /*!< 0x00000007 */
8438 #define FDCAN_RXF0A_F0AI                    FDCAN_RXF0A_F0AI_Msk                    /*!<Rx FIFO 0 Acknowledge Index              */
8439 
8440 /*****************  Bit definition for FDCAN_RXF1S register  ****************** **/
8441 #define FDCAN_RXF1S_F1FL_Pos                (0U)
8442 #define FDCAN_RXF1S_F1FL_Msk                (0xFUL << FDCAN_RXF1S_F1FL_Pos)         /*!< 0x0000000F */
8443 #define FDCAN_RXF1S_F1FL                    FDCAN_RXF1S_F1FL_Msk                    /*!<Rx FIFO 1 Fill Level                     */
8444 #define FDCAN_RXF1S_F1GI_Pos                (8U)
8445 #define FDCAN_RXF1S_F1GI_Msk                (0x3UL << FDCAN_RXF1S_F1GI_Pos)         /*!< 0x00000300 */
8446 #define FDCAN_RXF1S_F1GI                    FDCAN_RXF1S_F1GI_Msk                    /*!<Rx FIFO 1 Get Index                      */
8447 #define FDCAN_RXF1S_F1PI_Pos                (16U)
8448 #define FDCAN_RXF1S_F1PI_Msk                (0x3UL << FDCAN_RXF1S_F1PI_Pos)         /*!< 0x00030000 */
8449 #define FDCAN_RXF1S_F1PI                    FDCAN_RXF1S_F1PI_Msk                    /*!<Rx FIFO 1 Put Index                      */
8450 #define FDCAN_RXF1S_F1F_Pos                 (24U)
8451 #define FDCAN_RXF1S_F1F_Msk                 (0x1UL << FDCAN_RXF1S_F1F_Pos)          /*!< 0x01000000 */
8452 #define FDCAN_RXF1S_F1F                     FDCAN_RXF1S_F1F_Msk                     /*!<Rx FIFO 1 Full                           */
8453 #define FDCAN_RXF1S_RF1L_Pos                (25U)
8454 #define FDCAN_RXF1S_RF1L_Msk                (0x1UL << FDCAN_RXF1S_RF1L_Pos)         /*!< 0x02000000 */
8455 #define FDCAN_RXF1S_RF1L                    FDCAN_RXF1S_RF1L_Msk                    /*!<Rx FIFO 1 Message Lost                   */
8456 
8457 /*****************  Bit definition for FDCAN_RXF1A register  ****************** **/
8458 #define FDCAN_RXF1A_F1AI_Pos                (0U)
8459 #define FDCAN_RXF1A_F1AI_Msk                (0x7UL << FDCAN_RXF1A_F1AI_Pos)         /*!< 0x00000007 */
8460 #define FDCAN_RXF1A_F1AI                    FDCAN_RXF1A_F1AI_Msk                    /*!<Rx FIFO 1 Acknowledge Index              */
8461 
8462 /*****************  Bit definition for FDCAN_TXBC register  ******************* **/
8463 #define FDCAN_TXBC_TFQM_Pos                 (24U)
8464 #define FDCAN_TXBC_TFQM_Msk                 (0x1UL << FDCAN_TXBC_TFQM_Pos)          /*!< 0x01000000 */
8465 #define FDCAN_TXBC_TFQM                     FDCAN_TXBC_TFQM_Msk                     /*!<Tx FIFO/Queue Mode                       */
8466 
8467 /*****************  Bit definition for FDCAN_TXFQS register  ****************** ***/
8468 #define FDCAN_TXFQS_TFFL_Pos                (0U)
8469 #define FDCAN_TXFQS_TFFL_Msk                (0x7UL << FDCAN_TXFQS_TFFL_Pos)         /*!< 0x00000007 */
8470 #define FDCAN_TXFQS_TFFL                    FDCAN_TXFQS_TFFL_Msk                    /*!<Tx FIFO Free Level                       */
8471 #define FDCAN_TXFQS_TFGI_Pos                (8U)
8472 #define FDCAN_TXFQS_TFGI_Msk                (0x3UL << FDCAN_TXFQS_TFGI_Pos)         /*!< 0x00000300 */
8473 #define FDCAN_TXFQS_TFGI                    FDCAN_TXFQS_TFGI_Msk                    /*!<Tx FIFO Get Index                        */
8474 #define FDCAN_TXFQS_TFQPI_Pos               (16U)
8475 #define FDCAN_TXFQS_TFQPI_Msk               (0x3UL << FDCAN_TXFQS_TFQPI_Pos)        /*!< 0x00030000 */
8476 #define FDCAN_TXFQS_TFQPI                   FDCAN_TXFQS_TFQPI_Msk                   /*!<Tx FIFO/Queue Put Index                  */
8477 #define FDCAN_TXFQS_TFQF_Pos                (21U)
8478 #define FDCAN_TXFQS_TFQF_Msk                (0x1UL << FDCAN_TXFQS_TFQF_Pos)         /*!< 0x00200000 */
8479 #define FDCAN_TXFQS_TFQF                    FDCAN_TXFQS_TFQF_Msk                    /*!<Tx FIFO/Queue Full                       */
8480 
8481 /*****************  Bit definition for FDCAN_TXBRP register  ****************** ***/
8482 #define FDCAN_TXBRP_TRP_Pos                 (0U)
8483 #define FDCAN_TXBRP_TRP_Msk                 (0x7UL << FDCAN_TXBRP_TRP_Pos)          /*!< 0x00000007 */
8484 #define FDCAN_TXBRP_TRP                     FDCAN_TXBRP_TRP_Msk                     /*!<Transmission Request Pending             */
8485 
8486 /*****************  Bit definition for FDCAN_TXBAR register  ****************** ***/
8487 #define FDCAN_TXBAR_AR_Pos                  (0U)
8488 #define FDCAN_TXBAR_AR_Msk                  (0x7UL << FDCAN_TXBAR_AR_Pos)           /*!< 0x00000007 */
8489 #define FDCAN_TXBAR_AR                      FDCAN_TXBAR_AR_Msk                      /*!<Add Request                              */
8490 
8491 /*****************  Bit definition for FDCAN_TXBCR register  ****************** ***/
8492 #define FDCAN_TXBCR_CR_Pos                  (0U)
8493 #define FDCAN_TXBCR_CR_Msk                  (0x7UL << FDCAN_TXBCR_CR_Pos)           /*!< 0x00000007 */
8494 #define FDCAN_TXBCR_CR                      FDCAN_TXBCR_CR_Msk                      /*!<Cancellation Request                     */
8495 
8496 /*****************  Bit definition for FDCAN_TXBTO register  ****************** ***/
8497 #define FDCAN_TXBTO_TO_Pos                  (0U)
8498 #define FDCAN_TXBTO_TO_Msk                  (0x7UL << FDCAN_TXBTO_TO_Pos)           /*!< 0x00000007 */
8499 #define FDCAN_TXBTO_TO                      FDCAN_TXBTO_TO_Msk                      /*!<Transmission Occurred                    */
8500 
8501 /*****************  Bit definition for FDCAN_TXBCF register  ****************** ***/
8502 #define FDCAN_TXBCF_CF_Pos                  (0U)
8503 #define FDCAN_TXBCF_CF_Msk                  (0x7UL << FDCAN_TXBCF_CF_Pos)           /*!< 0x00000007 */
8504 #define FDCAN_TXBCF_CF                      FDCAN_TXBCF_CF_Msk                      /*!<Cancellation Finished                    */
8505 
8506 /*****************  Bit definition for FDCAN_TXBTIE register  ***************** ***/
8507 #define FDCAN_TXBTIE_TIE_Pos                (0U)
8508 #define FDCAN_TXBTIE_TIE_Msk                (0x7UL << FDCAN_TXBTIE_TIE_Pos)         /*!< 0x00000007 */
8509 #define FDCAN_TXBTIE_TIE                    FDCAN_TXBTIE_TIE_Msk                    /*!<Transmission Interrupt Enable            */
8510 
8511 /*****************  Bit definition for FDCAN_ TXBCIE register  **************** ***/
8512 #define FDCAN_TXBCIE_CFIE_Pos               (0U)
8513 #define FDCAN_TXBCIE_CFIE_Msk               (0x7UL << FDCAN_TXBCIE_CFIE_Pos)        /*!< 0x00000007 */
8514 #define FDCAN_TXBCIE_CFIE                   FDCAN_TXBCIE_CFIE_Msk                   /*!<Cancellation Finished Interrupt Enable   */
8515 
8516 /*****************  Bit definition for FDCAN_TXEFS register  ****************** ***/
8517 #define FDCAN_TXEFS_EFFL_Pos                (0U)
8518 #define FDCAN_TXEFS_EFFL_Msk                (0x7UL << FDCAN_TXEFS_EFFL_Pos)         /*!< 0x00000007 */
8519 #define FDCAN_TXEFS_EFFL                    FDCAN_TXEFS_EFFL_Msk                    /*!<Event FIFO Fill Level                    */
8520 #define FDCAN_TXEFS_EFGI_Pos                (8U)
8521 #define FDCAN_TXEFS_EFGI_Msk                (0x3UL << FDCAN_TXEFS_EFGI_Pos)         /*!< 0x00000300 */
8522 #define FDCAN_TXEFS_EFGI                    FDCAN_TXEFS_EFGI_Msk                    /*!<Event FIFO Get Index                     */
8523 #define FDCAN_TXEFS_EFPI_Pos                (16U)
8524 #define FDCAN_TXEFS_EFPI_Msk                (0x3UL << FDCAN_TXEFS_EFPI_Pos)         /*!< 0x00030000 */
8525 #define FDCAN_TXEFS_EFPI                    FDCAN_TXEFS_EFPI_Msk                    /*!<Event FIFO Put Index                     */
8526 #define FDCAN_TXEFS_EFF_Pos                 (24U)
8527 #define FDCAN_TXEFS_EFF_Msk                 (0x1UL << FDCAN_TXEFS_EFF_Pos)          /*!< 0x01000000 */
8528 #define FDCAN_TXEFS_EFF                     FDCAN_TXEFS_EFF_Msk                     /*!<Event FIFO Full                          */
8529 #define FDCAN_TXEFS_TEFL_Pos                (25U)
8530 #define FDCAN_TXEFS_TEFL_Msk                (0x1UL << FDCAN_TXEFS_TEFL_Pos)         /*!< 0x02000000 */
8531 #define FDCAN_TXEFS_TEFL                    FDCAN_TXEFS_TEFL_Msk                    /*!<Tx Event FIFO Element Lost               */
8532 
8533 /*****************  Bit definition for FDCAN_TXEFA register  ****************** ***/
8534 #define FDCAN_TXEFA_EFAI_Pos                (0U)
8535 #define FDCAN_TXEFA_EFAI_Msk                (0x3UL << FDCAN_TXEFA_EFAI_Pos)         /*!< 0x00000003 */
8536 #define FDCAN_TXEFA_EFAI                    FDCAN_TXEFA_EFAI_Msk                    /*!<Event FIFO Acknowledge Index             */
8537 
8538 /*!<FDCAN config registers */
8539 /*****************  Bit definition for FDCAN_CKDIV register  ****************** ***/
8540 #define FDCAN_CKDIV_PDIV_Pos                (0U)
8541 #define FDCAN_CKDIV_PDIV_Msk                (0xFUL << FDCAN_CKDIV_PDIV_Pos)         /*!< 0x0000000F */
8542 #define FDCAN_CKDIV_PDIV                    FDCAN_CKDIV_PDIV_Msk                    /*!<Input Clock Divider                      */
8543 
8544 /******************************************************************************/
8545 /*                                                                            */
8546 /*                                    FLASH                                   */
8547 /*                                                                            */
8548 /******************************************************************************/
8549 #define FLASH_LATENCY_DEFAULT               FLASH_ACR_LATENCY_3WS                   /* FLASH Three Latency cycles   */
8550 
8551 #define FLASH_BLOCKBASED_NB_REG             (4U)     /* 4 Block-based registers for each Flash bank */
8552 
8553 #define FLASH_SIZE                          ((((*((uint16_t *)FLASHSIZE_BASE)) == 0xFFFFU)) ? 0x200000U : \
8554                                              ((((*((uint16_t *)FLASHSIZE_BASE)) == 0x0000U)) ? 0x200000U : \
8555                                               (((uint32_t)(*((uint16_t *)FLASHSIZE_BASE)) & (0x0FFFU)) << 10U)))
8556 
8557 #define FLASH_BANK_SIZE                     (FLASH_SIZE >> 1U)
8558 
8559 #define FLASH_PAGE_SIZE                     0x2000U  /* 8 KB */
8560 
8561 #define FLASH_PAGE_NB                       (FLASH_BANK_SIZE / FLASH_PAGE_SIZE)
8562 
8563 /*******************  Bits definition for FLASH_ACR register  *****************/
8564 #define FLASH_ACR_LATENCY_Pos               (0U)
8565 #define FLASH_ACR_LATENCY_Msk               (0xFUL << FLASH_ACR_LATENCY_Pos)        /*!< 0x0000000F */
8566 #define FLASH_ACR_LATENCY                   FLASH_ACR_LATENCY_Msk                   /*!< Latency    */
8567 #define FLASH_ACR_LATENCY_0WS               (0x00000000U)
8568 #define FLASH_ACR_LATENCY_1WS               (0x00000001U)
8569 #define FLASH_ACR_LATENCY_2WS               (0x00000002U)
8570 #define FLASH_ACR_LATENCY_3WS               (0x00000003U)
8571 #define FLASH_ACR_LATENCY_4WS               (0x00000004U)
8572 #define FLASH_ACR_LATENCY_5WS               (0x00000005U)
8573 #define FLASH_ACR_LATENCY_6WS               (0x00000006U)
8574 #define FLASH_ACR_LATENCY_7WS               (0x00000007U)
8575 #define FLASH_ACR_LATENCY_8WS               (0x00000008U)
8576 #define FLASH_ACR_LATENCY_9WS               (0x00000009U)
8577 #define FLASH_ACR_LATENCY_10WS              (0x0000000AU)
8578 #define FLASH_ACR_LATENCY_11WS              (0x0000000BU)
8579 #define FLASH_ACR_LATENCY_12WS              (0x0000000CU)
8580 #define FLASH_ACR_LATENCY_13WS              (0x0000000DU)
8581 #define FLASH_ACR_LATENCY_14WS              (0x0000000EU)
8582 #define FLASH_ACR_LATENCY_15WS              (0x0000000FU)
8583 #define FLASH_ACR_PRFTEN_Pos                (8U)
8584 #define FLASH_ACR_PRFTEN_Msk                (0x1UL << FLASH_ACR_PRFTEN_Pos)         /*!< 0x00000100 */
8585 #define FLASH_ACR_PRFTEN                    FLASH_ACR_PRFTEN_Msk                    /*!< Prefetch enable */
8586 #define FLASH_ACR_LPM_Pos                   (11U)
8587 #define FLASH_ACR_LPM_Msk                   (0x1UL << FLASH_ACR_LPM_Pos)            /*!< 0x00000800 */
8588 #define FLASH_ACR_LPM                       FLASH_ACR_LPM_Msk                       /*!< Low-Power read mode */
8589 #define FLASH_ACR_PDREQ1_Pos                (12U)
8590 #define FLASH_ACR_PDREQ1_Msk                (0x1UL << FLASH_ACR_PDREQ1_Pos)         /*!< 0x00001000 */
8591 #define FLASH_ACR_PDREQ1                    FLASH_ACR_PDREQ1_Msk                    /*!< Bank 1 power-down mode request */
8592 #define FLASH_ACR_PDREQ2_Pos                (13U)
8593 #define FLASH_ACR_PDREQ2_Msk                (0x1UL << FLASH_ACR_PDREQ2_Pos)         /*!< 0x00002000 */
8594 #define FLASH_ACR_PDREQ2                    FLASH_ACR_PDREQ2_Msk                    /*!< Bank 2 power-down mode request */
8595 #define FLASH_ACR_SLEEP_PD_Pos              (14U)
8596 #define FLASH_ACR_SLEEP_PD_Msk              (0x1UL << FLASH_ACR_SLEEP_PD_Pos)       /*!< 0x00004000 */
8597 #define FLASH_ACR_SLEEP_PD                  FLASH_ACR_SLEEP_PD_Msk                  /*!< Flash power-down mode during sleep */
8598 
8599 /******************  Bits definition for FLASH_NSSR register  *****************/
8600 #define FLASH_NSSR_EOP_Pos                  (0U)
8601 #define FLASH_NSSR_EOP_Msk                  (0x1UL << FLASH_NSSR_EOP_Pos)           /*!< 0x00000001 */
8602 #define FLASH_NSSR_EOP                      FLASH_NSSR_EOP_Msk                      /*!< Non-secure end of operation */
8603 #define FLASH_NSSR_OPERR_Pos                (1U)
8604 #define FLASH_NSSR_OPERR_Msk                (0x1UL << FLASH_NSSR_OPERR_Pos)         /*!< 0x00000002 */
8605 #define FLASH_NSSR_OPERR                    FLASH_NSSR_OPERR_Msk                    /*!< Non-secure operation error */
8606 #define FLASH_NSSR_PROGERR_Pos              (3U)
8607 #define FLASH_NSSR_PROGERR_Msk              (0x1UL << FLASH_NSSR_PROGERR_Pos)       /*!< 0x00000008 */
8608 #define FLASH_NSSR_PROGERR                  FLASH_NSSR_PROGERR_Msk                  /*!< Non-secure programming error */
8609 #define FLASH_NSSR_WRPERR_Pos               (4U)
8610 #define FLASH_NSSR_WRPERR_Msk               (0x1UL << FLASH_NSSR_WRPERR_Pos)        /*!< 0x00000010 */
8611 #define FLASH_NSSR_WRPERR                   FLASH_NSSR_WRPERR_Msk                   /*!< Non-secure write protection error */
8612 #define FLASH_NSSR_PGAERR_Pos               (5U)
8613 #define FLASH_NSSR_PGAERR_Msk               (0x1UL << FLASH_NSSR_PGAERR_Pos)        /*!< 0x00000020 */
8614 #define FLASH_NSSR_PGAERR                   FLASH_NSSR_PGAERR_Msk                   /*!< Non-secure programming alignment error */
8615 #define FLASH_NSSR_SIZERR_Pos               (6U)
8616 #define FLASH_NSSR_SIZERR_Msk               (0x1UL << FLASH_NSSR_SIZERR_Pos)        /*!< 0x00000040 */
8617 #define FLASH_NSSR_SIZERR                   FLASH_NSSR_SIZERR_Msk                   /*!< Non-secure size error */
8618 #define FLASH_NSSR_PGSERR_Pos               (7U)
8619 #define FLASH_NSSR_PGSERR_Msk               (0x1UL << FLASH_NSSR_PGSERR_Pos)        /*!< 0x00000080 */
8620 #define FLASH_NSSR_PGSERR                   FLASH_NSSR_PGSERR_Msk                   /*!< Non-secure programming sequence error */
8621 #define FLASH_NSSR_OPTWERR_Pos              (13U)
8622 #define FLASH_NSSR_OPTWERR_Msk              (0x1UL << FLASH_NSSR_OPTWERR_Pos)       /*!< 0x00002000 */
8623 #define FLASH_NSSR_OPTWERR                  FLASH_NSSR_OPTWERR_Msk                  /*!< Option write error */
8624 #define FLASH_NSSR_BSY_Pos                  (16U)
8625 #define FLASH_NSSR_BSY_Msk                  (0x1UL << FLASH_NSSR_BSY_Pos)           /*!< 0x00010000 */
8626 #define FLASH_NSSR_BSY                      FLASH_NSSR_BSY_Msk                      /*!< Non-secure busy */
8627 #define FLASH_NSSR_WDW_Pos                  (17U)
8628 #define FLASH_NSSR_WDW_Msk                  (0x1UL << FLASH_NSSR_WDW_Pos)           /*!< 0x00020000 */
8629 #define FLASH_NSSR_WDW                      FLASH_NSSR_WDW_Msk                      /*!< Non-secure wait data to write */
8630 #define FLASH_NSSR_OEM1LOCK_Pos             (18U)
8631 #define FLASH_NSSR_OEM1LOCK_Msk             (0x1UL << FLASH_NSSR_OEM1LOCK_Pos)      /*!< 0x00040000 */
8632 #define FLASH_NSSR_OEM1LOCK                 FLASH_NSSR_OEM1LOCK_Msk                 /*!< OEM1 lock */
8633 #define FLASH_NSSR_OEM2LOCK_Pos             (19U)
8634 #define FLASH_NSSR_OEM2LOCK_Msk             (0x1UL << FLASH_NSSR_OEM2LOCK_Pos)      /*!< 0x00080000 */
8635 #define FLASH_NSSR_OEM2LOCK                 FLASH_NSSR_OEM2LOCK_Msk                 /*!< OEM2 lock */
8636 #define FLASH_NSSR_PD1_Pos                  (20U)
8637 #define FLASH_NSSR_PD1_Msk                  (0x1UL << FLASH_NSSR_PD1_Pos)           /*!< 0x00100000 */
8638 #define FLASH_NSSR_PD1                      FLASH_NSSR_PD1_Msk                      /*!< Bank 1 in power-down mode */
8639 #define FLASH_NSSR_PD2_Pos                  (21U)
8640 #define FLASH_NSSR_PD2_Msk                  (0x1UL << FLASH_NSSR_PD2_Pos)           /*!< 0x00200000 */
8641 #define FLASH_NSSR_PD2                      FLASH_NSSR_PD2_Msk                      /*!< Bank 2 in power-down mode */
8642 
8643 /******************  Bits definition for FLASH_SECSR register  ****************/
8644 #define FLASH_SECSR_EOP_Pos                 (0U)
8645 #define FLASH_SECSR_EOP_Msk                 (0x1UL << FLASH_SECSR_EOP_Pos)          /*!< 0x00000001 */
8646 #define FLASH_SECSR_EOP                     FLASH_SECSR_EOP_Msk                     /*!< Secure end of operation */
8647 #define FLASH_SECSR_OPERR_Pos               (1U)
8648 #define FLASH_SECSR_OPERR_Msk               (0x1UL << FLASH_SECSR_OPERR_Pos)        /*!< 0x00000002 */
8649 #define FLASH_SECSR_OPERR                   FLASH_SECSR_OPERR_Msk                   /*!< Secure operation error */
8650 #define FLASH_SECSR_PROGERR_Pos             (3U)
8651 #define FLASH_SECSR_PROGERR_Msk             (0x1UL << FLASH_SECSR_PROGERR_Pos)      /*!< 0x00000008 */
8652 #define FLASH_SECSR_PROGERR                 FLASH_SECSR_PROGERR_Msk                 /*!< Secure programming error */
8653 #define FLASH_SECSR_WRPERR_Pos              (4U)
8654 #define FLASH_SECSR_WRPERR_Msk              (0x1UL << FLASH_SECSR_WRPERR_Pos)       /*!< 0x00000010 */
8655 #define FLASH_SECSR_WRPERR                  FLASH_SECSR_WRPERR_Msk                  /*!< Secure write protection error */
8656 #define FLASH_SECSR_PGAERR_Pos              (5U)
8657 #define FLASH_SECSR_PGAERR_Msk              (0x1UL << FLASH_SECSR_PGAERR_Pos)       /*!< 0x00000020 */
8658 #define FLASH_SECSR_PGAERR                  FLASH_SECSR_PGAERR_Msk                  /*!< Secure programming alignment error */
8659 #define FLASH_SECSR_SIZERR_Pos              (6U)
8660 #define FLASH_SECSR_SIZERR_Msk              (0x1UL << FLASH_SECSR_SIZERR_Pos)       /*!< 0x00000040 */
8661 #define FLASH_SECSR_SIZERR                  FLASH_SECSR_SIZERR_Msk                  /*!< Secure size error */
8662 #define FLASH_SECSR_PGSERR_Pos              (7U)
8663 #define FLASH_SECSR_PGSERR_Msk              (0x1UL << FLASH_SECSR_PGSERR_Pos)       /*!< 0x00000080 */
8664 #define FLASH_SECSR_PGSERR                  FLASH_SECSR_PGSERR_Msk                  /*!< Secure programming sequence error */
8665 #define FLASH_SECSR_BSY_Pos                 (16U)
8666 #define FLASH_SECSR_BSY_Msk                 (0x1UL << FLASH_SECSR_BSY_Pos)          /*!< 0x00010000 */
8667 #define FLASH_SECSR_BSY                     FLASH_SECSR_BSY_Msk                     /*!< Secure busy */
8668 #define FLASH_SECSR_WDW_Pos                 (17U)
8669 #define FLASH_SECSR_WDW_Msk                 (0x1UL << FLASH_SECSR_WDW_Pos)          /*!< 0x00020000 */
8670 #define FLASH_SECSR_WDW                     FLASH_SECSR_WDW_Msk                     /*!< Secure wait data to write */
8671 
8672 /******************  Bits definition for FLASH_NSCR register  *****************/
8673 #define FLASH_NSCR_PG_Pos                   (0U)
8674 #define FLASH_NSCR_PG_Msk                   (0x1UL << FLASH_NSCR_PG_Pos)            /*!< 0x00000001 */
8675 #define FLASH_NSCR_PG                       FLASH_NSCR_PG_Msk                       /*!< Non-secure Programming */
8676 #define FLASH_NSCR_PER_Pos                  (1U)
8677 #define FLASH_NSCR_PER_Msk                  (0x1UL << FLASH_NSCR_PER_Pos)           /*!< 0x00000002 */
8678 #define FLASH_NSCR_PER                      FLASH_NSCR_PER_Msk                      /*!< Non-secure Page Erase */
8679 #define FLASH_NSCR_MER1_Pos                 (2U)
8680 #define FLASH_NSCR_MER1_Msk                 (0x1UL << FLASH_NSCR_MER1_Pos)          /*!< 0x00000004 */
8681 #define FLASH_NSCR_MER1                     FLASH_NSCR_MER1_Msk                     /*!< Non-secure Bank 1 Mass Erase */
8682 #define FLASH_NSCR_PNB_Pos                  (3U)
8683 #define FLASH_NSCR_PNB_Msk                  (0x7FUL << FLASH_NSCR_PNB_Pos)          /*!< 0x000003F8 */
8684 #define FLASH_NSCR_PNB                      FLASH_NSCR_PNB_Msk                      /*!< Non-secure Page Number selection */
8685 #define FLASH_NSCR_BKER_Pos                 (11U)
8686 #define FLASH_NSCR_BKER_Msk                 (0x1UL << FLASH_NSCR_BKER_Pos)          /*!< 0x00000800 */
8687 #define FLASH_NSCR_BKER                     FLASH_NSCR_BKER_Msk                     /*!< Non-secure Bank Selection for Page Erase */
8688 #define FLASH_NSCR_BWR_Pos                  (14U)
8689 #define FLASH_NSCR_BWR_Msk                  (0x1UL << FLASH_NSCR_BWR_Pos)           /*!< 0x00004000 */
8690 #define FLASH_NSCR_BWR                      FLASH_NSCR_BWR_Msk                      /*!< Non-secure Burst Write Programming mode */
8691 #define FLASH_NSCR_MER2_Pos                 (15U)
8692 #define FLASH_NSCR_MER2_Msk                 (0x1UL << FLASH_NSCR_MER2_Pos)          /*!< 0x00008000 */
8693 #define FLASH_NSCR_MER2                     FLASH_NSCR_MER2_Msk                     /*!< Non-secure Bank 2 Mass Erase */
8694 #define FLASH_NSCR_STRT_Pos                 (16U)
8695 #define FLASH_NSCR_STRT_Msk                 (0x1UL << FLASH_NSCR_STRT_Pos)          /*!< 0x00010000 */
8696 #define FLASH_NSCR_STRT                     FLASH_NSCR_STRT_Msk                     /*!< Non-secure Start */
8697 #define FLASH_NSCR_OPTSTRT_Pos              (17U)
8698 #define FLASH_NSCR_OPTSTRT_Msk              (0x1UL << FLASH_NSCR_OPTSTRT_Pos)       /*!< 0x00020000 */
8699 #define FLASH_NSCR_OPTSTRT                  FLASH_NSCR_OPTSTRT_Msk                  /*!< Option Modification Start */
8700 #define FLASH_NSCR_EOPIE_Pos                (24U)
8701 #define FLASH_NSCR_EOPIE_Msk                (0x1UL << FLASH_NSCR_EOPIE_Pos)         /*!< 0x01000000 */
8702 #define FLASH_NSCR_EOPIE                    FLASH_NSCR_EOPIE_Msk                    /*!< Non-secure End of operation interrupt enable */
8703 #define FLASH_NSCR_ERRIE_Pos                (25U)
8704 #define FLASH_NSCR_ERRIE_Msk                (0x1UL << FLASH_NSCR_ERRIE_Pos)         /*!< 0x02000000 */
8705 #define FLASH_NSCR_ERRIE                    FLASH_NSCR_ERRIE_Msk                    /*!< Non-secure error interrupt enable */
8706 #define FLASH_NSCR_OBL_LAUNCH_Pos           (27U)
8707 #define FLASH_NSCR_OBL_LAUNCH_Msk           (0x1UL << FLASH_NSCR_OBL_LAUNCH_Pos)    /*!< 0x08000000 */
8708 #define FLASH_NSCR_OBL_LAUNCH               FLASH_NSCR_OBL_LAUNCH_Msk               /*!< Force the option byte loading */
8709 #define FLASH_NSCR_OPTLOCK_Pos              (30U)
8710 #define FLASH_NSCR_OPTLOCK_Msk              (0x1UL << FLASH_NSCR_OPTLOCK_Pos)       /*!< 0x40000000 */
8711 #define FLASH_NSCR_OPTLOCK                  FLASH_NSCR_OPTLOCK_Msk                  /*!< Option Lock */
8712 #define FLASH_NSCR_LOCK_Pos                 (31U)
8713 #define FLASH_NSCR_LOCK_Msk                 (0x1UL << FLASH_NSCR_LOCK_Pos)          /*!< 0x80000000 */
8714 #define FLASH_NSCR_LOCK                     FLASH_NSCR_LOCK_Msk                     /*!< Non-secure Lock */
8715 
8716 /******************  Bits definition for FLASH_SECCR register  ****************/
8717 #define FLASH_SECCR_PG_Pos                  (0U)
8718 #define FLASH_SECCR_PG_Msk                  (0x1UL << FLASH_SECCR_PG_Pos)           /*!< 0x00000001 */
8719 #define FLASH_SECCR_PG                      FLASH_SECCR_PG_Msk                      /*!< Secure Programming */
8720 #define FLASH_SECCR_PER_Pos                 (1U)
8721 #define FLASH_SECCR_PER_Msk                 (0x1UL << FLASH_SECCR_PER_Pos)          /*!< 0x00000002 */
8722 #define FLASH_SECCR_PER                     FLASH_SECCR_PER_Msk                     /*!< Secure Page Erase */
8723 #define FLASH_SECCR_MER1_Pos                (2U)
8724 #define FLASH_SECCR_MER1_Msk                (0x1UL << FLASH_SECCR_MER1_Pos)         /*!< 0x00000004 */
8725 #define FLASH_SECCR_MER1                    FLASH_SECCR_MER1_Msk                    /*!< Secure Bank 1 Mass Erase */
8726 #define FLASH_SECCR_PNB_Pos                 (3U)
8727 #define FLASH_SECCR_PNB_Msk                 (0x7FUL << FLASH_SECCR_PNB_Pos)         /*!< 0x000003F8 */
8728 #define FLASH_SECCR_PNB                     FLASH_SECCR_PNB_Msk                     /*!< Secure Page Number selection */
8729 #define FLASH_SECCR_BKER_Pos                (11U)
8730 #define FLASH_SECCR_BKER_Msk                (0x1UL << FLASH_SECCR_BKER_Pos)         /*!< 0x00000800 */
8731 #define FLASH_SECCR_BKER                    FLASH_SECCR_BKER_Msk                    /*!< Secure Bank Selection for Page Erase */
8732 #define FLASH_SECCR_BWR_Pos                 (14U)
8733 #define FLASH_SECCR_BWR_Msk                 (0x1UL << FLASH_SECCR_BWR_Pos)          /*!< 0x00004000 */
8734 #define FLASH_SECCR_BWR                     FLASH_SECCR_BWR_Msk                     /*!< Secure Burst Write programming mode */
8735 #define FLASH_SECCR_MER2_Pos                (15U)
8736 #define FLASH_SECCR_MER2_Msk                (0x1UL << FLASH_SECCR_MER2_Pos)         /*!< 0x00008000 */
8737 #define FLASH_SECCR_MER2                    FLASH_SECCR_MER2_Msk                    /*!< Secure Bank 2 Mass Erase */
8738 #define FLASH_SECCR_STRT_Pos                (16U)
8739 #define FLASH_SECCR_STRT_Msk                (0x1UL << FLASH_SECCR_STRT_Pos)         /*!< 0x00010000 */
8740 #define FLASH_SECCR_STRT                    FLASH_SECCR_STRT_Msk                    /*!< Secure Start */
8741 #define FLASH_SECCR_EOPIE_Pos               (24U)
8742 #define FLASH_SECCR_EOPIE_Msk               (0x1UL << FLASH_SECCR_EOPIE_Pos)        /*!< 0x01000000 */
8743 #define FLASH_SECCR_EOPIE                   FLASH_SECCR_EOPIE_Msk                   /*!< Secure end of operation interrupt enable */
8744 #define FLASH_SECCR_ERRIE_Pos               (25U)
8745 #define FLASH_SECCR_ERRIE_Msk               (0x1UL << FLASH_SECCR_ERRIE_Pos)        /*!< 0x02000000 */
8746 #define FLASH_SECCR_ERRIE                   FLASH_SECCR_ERRIE_Msk                   /*!< Secure error interrupt enable */
8747 #define FLASH_SECCR_INV_Pos                 (29U)
8748 #define FLASH_SECCR_INV_Msk                 (0x1UL << FLASH_SECCR_INV_Pos)          /*!< 0x20000000 */
8749 #define FLASH_SECCR_INV                     FLASH_SECCR_INV_Msk                     /*!< Flash Security State Invert */
8750 #define FLASH_SECCR_LOCK_Pos                (31U)
8751 #define FLASH_SECCR_LOCK_Msk                (0x1UL << FLASH_SECCR_LOCK_Pos)         /*!< 0x80000000 */
8752 #define FLASH_SECCR_LOCK                    FLASH_SECCR_LOCK_Msk                    /*!< Secure Lock */
8753 
8754 /*******************  Bits definition for FLASH_ECCR register  ***************/
8755 #define FLASH_ECCR_ADDR_ECC_Pos             (0U)
8756 #define FLASH_ECCR_ADDR_ECC_Msk             (0xFFFFFUL << FLASH_ECCR_ADDR_ECC_Pos)  /*!< 0x000FFFFF */
8757 #define FLASH_ECCR_ADDR_ECC                 FLASH_ECCR_ADDR_ECC_Msk                 /*!< ECC fail address */
8758 #define FLASH_ECCR_BK_ECC_Pos               (21U)
8759 #define FLASH_ECCR_BK_ECC_Msk               (0x1UL << FLASH_ECCR_BK_ECC_Pos)        /*!< 0x00200000 */
8760 #define FLASH_ECCR_BK_ECC                   FLASH_ECCR_BK_ECC_Msk                   /*!< ECC fail bank */
8761 #define FLASH_ECCR_SYSF_ECC_Pos             (22U)
8762 #define FLASH_ECCR_SYSF_ECC_Msk             (0x1UL << FLASH_ECCR_SYSF_ECC_Pos)      /*!< 0x00400000 */
8763 #define FLASH_ECCR_SYSF_ECC                 FLASH_ECCR_SYSF_ECC_Msk                 /*!< System Flash ECC fail */
8764 #define FLASH_ECCR_ECCIE_Pos                (24U)
8765 #define FLASH_ECCR_ECCIE_Msk                (0x1UL << FLASH_ECCR_ECCIE_Pos)         /*!< 0x01000000 */
8766 #define FLASH_ECCR_ECCIE                    FLASH_ECCR_ECCIE_Msk                    /*!< ECC correction interrupt enable */
8767 #define FLASH_ECCR_ECCC_Pos                 (30U)
8768 #define FLASH_ECCR_ECCC_Msk                 (0x1UL << FLASH_ECCR_ECCC_Pos)          /*!< 0x40000000 */
8769 #define FLASH_ECCR_ECCC                     FLASH_ECCR_ECCC_Msk                     /*!< ECC correction */
8770 #define FLASH_ECCR_ECCD_Pos                 (31U)
8771 #define FLASH_ECCR_ECCD_Msk                 (0x1UL << FLASH_ECCR_ECCD_Pos)          /*!< 0x80000000 */
8772 #define FLASH_ECCR_ECCD                     FLASH_ECCR_ECCD_Msk                     /*!< ECC detection */
8773 
8774 /*******************  Bits definition for FLASH_OPSR register  ***************/
8775 #define FLASH_OPSR_ADDR_OP_Pos              (0U)
8776 #define FLASH_OPSR_ADDR_OP_Msk              (0xFFFFFUL << FLASH_OPSR_ADDR_OP_Pos)   /*!< 0x000FFFFF */
8777 #define FLASH_OPSR_ADDR_OP                  FLASH_OPSR_ADDR_OP_Msk                  /*!< Flash operation address */
8778 #define FLASH_OPSR_BK_OP_Pos                (21U)
8779 #define FLASH_OPSR_BK_OP_Msk                (0x1UL << FLASH_OPSR_BK_OP_Pos)         /*!< 0x00200000 */
8780 #define FLASH_OPSR_BK_OP                    FLASH_OPSR_BK_OP_Msk                    /*!< Interrupted operation bank */
8781 #define FLASH_OPSR_SYSF_OP_Pos              (22U)
8782 #define FLASH_OPSR_SYSF_OP_Msk              (0x1UL << FLASH_OPSR_SYSF_OP_Pos)       /*!< 0x00400000 */
8783 #define FLASH_OPSR_SYSF_OP                  FLASH_OPSR_SYSF_OP_Msk                  /*!< Operation in System Flash interrupted */
8784 #define FLASH_OPSR_CODE_OP_Pos              (29U)
8785 #define FLASH_OPSR_CODE_OP_Msk              (0x7UL << FLASH_OPSR_CODE_OP_Pos)       /*!< 0xE0000000 */
8786 #define FLASH_OPSR_CODE_OP                  FLASH_OPSR_CODE_OP_Msk                  /*!< Flash operation code */
8787 #define FLASH_OPSR_CODE_OP_0                (0x1UL << FLASH_OPSR_CODE_OP_Pos)       /*!< 0x20000000 */
8788 #define FLASH_OPSR_CODE_OP_1                (0x2UL << FLASH_OPSR_CODE_OP_Pos)       /*!< 0x40000000 */
8789 #define FLASH_OPSR_CODE_OP_2                (0x4UL << FLASH_OPSR_CODE_OP_Pos)       /*!< 0x80000000 */
8790 
8791 /*******************  Bits definition for FLASH_OPTR register  ***************/
8792 #define FLASH_OPTR_RDP_Pos                  (0U)
8793 #define FLASH_OPTR_RDP_Msk                  (0xFFUL << FLASH_OPTR_RDP_Pos)          /*!< 0x000000FF */
8794 #define FLASH_OPTR_RDP                      FLASH_OPTR_RDP_Msk                      /*!< Readout protection level */
8795 #define FLASH_OPTR_BOR_LEV_Pos              (8U)
8796 #define FLASH_OPTR_BOR_LEV_Msk              (0x7UL << FLASH_OPTR_BOR_LEV_Pos)       /*!< 0x00000700 */
8797 #define FLASH_OPTR_BOR_LEV                  FLASH_OPTR_BOR_LEV_Msk                  /*!< BOR reset Level */
8798 #define FLASH_OPTR_BOR_LEV_0                (0x1UL << FLASH_OPTR_BOR_LEV_Pos)       /*!< 0x00000100 */
8799 #define FLASH_OPTR_BOR_LEV_1                (0x2UL << FLASH_OPTR_BOR_LEV_Pos)       /*!< 0x00000200 */
8800 #define FLASH_OPTR_BOR_LEV_2                (0x4UL << FLASH_OPTR_BOR_LEV_Pos)       /*!< 0x00000400 */
8801 #define FLASH_OPTR_nRST_STOP_Pos            (12U)
8802 #define FLASH_OPTR_nRST_STOP_Msk            (0x1UL << FLASH_OPTR_nRST_STOP_Pos)     /*!< 0x00001000 */
8803 #define FLASH_OPTR_nRST_STOP                FLASH_OPTR_nRST_STOP_Msk                /*!< nRST_STOP */
8804 #define FLASH_OPTR_nRST_STDBY_Pos           (13U)
8805 #define FLASH_OPTR_nRST_STDBY_Msk           (0x1UL << FLASH_OPTR_nRST_STDBY_Pos)    /*!< 0x00002000 */
8806 #define FLASH_OPTR_nRST_STDBY               FLASH_OPTR_nRST_STDBY_Msk               /*!< nRST_STDBY */
8807 #define FLASH_OPTR_nRST_SHDW_Pos            (14U)
8808 #define FLASH_OPTR_nRST_SHDW_Msk            (0x1UL << FLASH_OPTR_nRST_SHDW_Pos)     /*!< 0x00004000 */
8809 #define FLASH_OPTR_nRST_SHDW                FLASH_OPTR_nRST_SHDW_Msk                /*!< nRST_SHDW */
8810 #define FLASH_OPTR_SRAM134_RST_Pos          (15U)
8811 #define FLASH_OPTR_SRAM134_RST_Msk          (0x1UL << FLASH_OPTR_SRAM134_RST_Pos)   /*!< 0x00008000 */
8812 #define FLASH_OPTR_SRAM134_RST              FLASH_OPTR_SRAM134_RST_Msk              /*!< SRAM1, SRAM3 and SRAM4 erase upon system reset */
8813 #define FLASH_OPTR_IWDG_SW_Pos              (16U)
8814 #define FLASH_OPTR_IWDG_SW_Msk              (0x1UL << FLASH_OPTR_IWDG_SW_Pos)       /*!< 0x00010000 */
8815 #define FLASH_OPTR_IWDG_SW                  FLASH_OPTR_IWDG_SW_Msk                  /*!< Independent watchdog selection */
8816 #define FLASH_OPTR_IWDG_STOP_Pos            (17U)
8817 #define FLASH_OPTR_IWDG_STOP_Msk            (0x1UL << FLASH_OPTR_IWDG_STOP_Pos)     /*!< 0x00020000 */
8818 #define FLASH_OPTR_IWDG_STOP                FLASH_OPTR_IWDG_STOP_Msk                /*!< Independent watchdog counter freeze in Stop mode */
8819 #define FLASH_OPTR_IWDG_STDBY_Pos           (18U)
8820 #define FLASH_OPTR_IWDG_STDBY_Msk           (0x1UL << FLASH_OPTR_IWDG_STDBY_Pos)    /*!< 0x00040000 */
8821 #define FLASH_OPTR_IWDG_STDBY               FLASH_OPTR_IWDG_STDBY_Msk               /*!< Independent watchdog counter freeze in Standby mode */
8822 #define FLASH_OPTR_WWDG_SW_Pos              (19U)
8823 #define FLASH_OPTR_WWDG_SW_Msk              (0x1UL << FLASH_OPTR_WWDG_SW_Pos)       /*!< 0x00080000 */
8824 #define FLASH_OPTR_WWDG_SW                  FLASH_OPTR_WWDG_SW_Msk                  /*!< Window watchdog selection */
8825 #define FLASH_OPTR_SWAP_BANK_Pos            (20U)
8826 #define FLASH_OPTR_SWAP_BANK_Msk            (0x1UL << FLASH_OPTR_SWAP_BANK_Pos)     /*!< 0x00100000 */
8827 #define FLASH_OPTR_SWAP_BANK                FLASH_OPTR_SWAP_BANK_Msk                /*!< Swap banks */
8828 #define FLASH_OPTR_DUALBANK_Pos             (21U)
8829 #define FLASH_OPTR_DUALBANK_Msk             (0x1UL << FLASH_OPTR_DUALBANK_Pos)      /*!< 0x00200000 */
8830 #define FLASH_OPTR_DUALBANK                 FLASH_OPTR_DUALBANK_Msk                 /*!< Dual-bank on 1M and 512 Kbytes Flash memory devices */
8831 #define FLASH_OPTR_BKPRAM_ECC_Pos           (22U)
8832 #define FLASH_OPTR_BKPRAM_ECC_Msk           (0x1UL << FLASH_OPTR_BKPRAM_ECC_Pos)    /*!< 0x00400000 */
8833 #define FLASH_OPTR_BKPRAM_ECC               FLASH_OPTR_BKPRAM_ECC_Msk               /*!< Backup RAM ECC detection and correction enable */
8834 #define FLASH_OPTR_SRAM3_ECC_Pos            (23U)
8835 #define FLASH_OPTR_SRAM3_ECC_Msk            (0x1UL << FLASH_OPTR_SRAM3_ECC_Pos)     /*!< 0x00800000 */
8836 #define FLASH_OPTR_SRAM3_ECC                FLASH_OPTR_SRAM3_ECC_Msk                /*!< SRAM3 ECC detection and correction enable */
8837 #define FLASH_OPTR_SRAM2_ECC_Pos            (24U)
8838 #define FLASH_OPTR_SRAM2_ECC_Msk            (0x1UL << FLASH_OPTR_SRAM2_ECC_Pos)     /*!< 0x01000000 */
8839 #define FLASH_OPTR_SRAM2_ECC                FLASH_OPTR_SRAM2_ECC_Msk                /*!< SRAM2 ECC detection and correction enable*/
8840 #define FLASH_OPTR_SRAM2_RST_Pos            (25U)
8841 #define FLASH_OPTR_SRAM2_RST_Msk            (0x1UL << FLASH_OPTR_SRAM2_RST_Pos)     /*!< 0x02000000 */
8842 #define FLASH_OPTR_SRAM2_RST                FLASH_OPTR_SRAM2_RST_Msk                /*!< SRAM2 erase when system reset */
8843 #define FLASH_OPTR_nSWBOOT0_Pos             (26U)
8844 #define FLASH_OPTR_nSWBOOT0_Msk             (0x1UL << FLASH_OPTR_nSWBOOT0_Pos)      /*!< 0x04000000 */
8845 #define FLASH_OPTR_nSWBOOT0                 FLASH_OPTR_nSWBOOT0_Msk                 /*!< Software BOOT0 */
8846 #define FLASH_OPTR_nBOOT0_Pos               (27U)
8847 #define FLASH_OPTR_nBOOT0_Msk               (0x1UL << FLASH_OPTR_nBOOT0_Pos)        /*!< 0x08000000 */
8848 #define FLASH_OPTR_nBOOT0                   FLASH_OPTR_nBOOT0_Msk                   /*!< nBOOT0 option bit */
8849 #define FLASH_OPTR_PA15_PUPEN_Pos           (28U)
8850 #define FLASH_OPTR_PA15_PUPEN_Msk           (0x1UL << FLASH_OPTR_PA15_PUPEN_Pos)    /*!< 0x10000000 */
8851 #define FLASH_OPTR_PA15_PUPEN               FLASH_OPTR_PA15_PUPEN_Msk               /*!< PA15 pull-up enable */
8852 #define FLASH_OPTR_IO_VDD_HSLV_Pos          (29U)
8853 #define FLASH_OPTR_IO_VDD_HSLV_Msk          (0x1UL << FLASH_OPTR_IO_VDD_HSLV_Pos)   /*!< 0x20000000 */
8854 #define FLASH_OPTR_IO_VDD_HSLV              FLASH_OPTR_IO_VDD_HSLV_Msk              /*!< High speed IO at low voltage configuration bit */
8855 #define FLASH_OPTR_IO_VDDIO2_HSLV_Pos       (30U)
8856 #define FLASH_OPTR_IO_VDDIO2_HSLV_Msk       (0x1UL << FLASH_OPTR_IO_VDDIO2_HSLV_Pos) /*!< 0x40000000 */
8857 #define FLASH_OPTR_IO_VDDIO2_HSLV           FLASH_OPTR_IO_VDDIO2_HSLV_Msk           /*!< High speed IO at low VDDIO2 voltage configuration bit */
8858 #define FLASH_OPTR_TZEN_Pos                 (31U)
8859 #define FLASH_OPTR_TZEN_Msk                 (0x1UL << FLASH_OPTR_TZEN_Pos)          /*!< 0x80000000 */
8860 #define FLASH_OPTR_TZEN                     FLASH_OPTR_TZEN_Msk                     /*!< Global TrustZone security enable */
8861 
8862 /****************  Bits definition for FLASH_NSBOOTADD0R register  ************/
8863 #define FLASH_NSBOOTADD0R_NSBOOTADD0_Pos    (7U)
8864 #define FLASH_NSBOOTADD0R_NSBOOTADD0_Msk    (0x1FFFFFFUL << FLASH_NSBOOTADD0R_NSBOOTADD0_Pos) /*!< 0xFFFFFF80 */
8865 #define FLASH_NSBOOTADD0R_NSBOOTADD0        FLASH_NSBOOTADD0R_NSBOOTADD0_Msk        /*!< Non-secure boot address 0 */
8866 
8867 /****************  Bits definition for FLASH_NSBOOTADD1R register  ************/
8868 #define FLASH_NSBOOTADD1R_NSBOOTADD1_Pos    (7U)
8869 #define FLASH_NSBOOTADD1R_NSBOOTADD1_Msk    (0x1FFFFFFUL << FLASH_NSBOOTADD1R_NSBOOTADD1_Pos) /*!< 0xFFFFFF80 */
8870 #define FLASH_NSBOOTADD1R_NSBOOTADD1        FLASH_NSBOOTADD1R_NSBOOTADD1_Msk        /*!< Non-secure boot address 1 */
8871 
8872 /****************  Bits definition for FLASH_SECBOOTADD0R register  ***********/
8873 #define FLASH_SECBOOTADD0R_BOOT_LOCK_Pos    (0U)
8874 #define FLASH_SECBOOTADD0R_BOOT_LOCK_Msk    (0x1UL << FLASH_SECBOOTADD0R_BOOT_LOCK_Pos) /*!< 0x00000001 */
8875 #define FLASH_SECBOOTADD0R_BOOT_LOCK        FLASH_SECBOOTADD0R_BOOT_LOCK_Msk        /*!< Boot Lock */
8876 #define FLASH_SECBOOTADD0R_SECBOOTADD0_Pos  (7U)
8877 #define FLASH_SECBOOTADD0R_SECBOOTADD0_Msk  (0x1FFFFFFUL << FLASH_SECBOOTADD0R_SECBOOTADD0_Pos) /*!< 0xFFFFFF80 */
8878 #define FLASH_SECBOOTADD0R_SECBOOTADD0      FLASH_SECBOOTADD0R_SECBOOTADD0_Msk      /*!< Secure boot address 0 */
8879 
8880 /*****************  Bits definition for FLASH_SECWM1R1 register  **************/
8881 #define FLASH_SECWM1R1_SECWM1_PSTRT_Pos     (0U)
8882 #define FLASH_SECWM1R1_SECWM1_PSTRT_Msk     (0x7FUL << FLASH_SECWM1R1_SECWM1_PSTRT_Pos) /*!< 0x0000007F */
8883 #define FLASH_SECWM1R1_SECWM1_PSTRT         FLASH_SECWM1R1_SECWM1_PSTRT_Msk         /*!< Start page of first secure area */
8884 #define FLASH_SECWM1R1_SECWM1_PEND_Pos      (16U)
8885 #define FLASH_SECWM1R1_SECWM1_PEND_Msk      (0x7FUL << FLASH_SECWM1R1_SECWM1_PEND_Pos) /*!< 0x007F0000 */
8886 #define FLASH_SECWM1R1_SECWM1_PEND          FLASH_SECWM1R1_SECWM1_PEND_Msk          /*!< End page of first secure area */
8887 
8888 /*****************  Bits definition for FLASH_SECWM1R2 register  **************/
8889 #define FLASH_SECWM1R2_HDP1_PEND_Pos        (16U)
8890 #define FLASH_SECWM1R2_HDP1_PEND_Msk        (0x7FUL << FLASH_SECWM1R2_HDP1_PEND_Pos) /*!< 0x007F0000 */
8891 #define FLASH_SECWM1R2_HDP1_PEND            FLASH_SECWM1R2_HDP1_PEND_Msk            /*!< End page of first hide protection area */
8892 #define FLASH_SECWM1R2_HDP1EN_Pos           (31U)
8893 #define FLASH_SECWM1R2_HDP1EN_Msk           (0x1UL << FLASH_SECWM1R2_HDP1EN_Pos)    /*!< 0x80000000 */
8894 #define FLASH_SECWM1R2_HDP1EN               FLASH_SECWM1R2_HDP1EN_Msk               /*!< Hide protection first area enable */
8895 
8896 /******************  Bits definition for FLASH_WRP1AR register  ***************/
8897 #define FLASH_WRP1AR_WRP1A_PSTRT_Pos        (0U)
8898 #define FLASH_WRP1AR_WRP1A_PSTRT_Msk        (0x7FUL << FLASH_WRP1AR_WRP1A_PSTRT_Pos) /*!< 0x0000007F */
8899 #define FLASH_WRP1AR_WRP1A_PSTRT            FLASH_WRP1AR_WRP1A_PSTRT_Msk            /*!< Bank 1 WPR first area A start page */
8900 #define FLASH_WRP1AR_WRP1A_PEND_Pos         (16U)
8901 #define FLASH_WRP1AR_WRP1A_PEND_Msk         (0x7FUL << FLASH_WRP1AR_WRP1A_PEND_Pos) /*!< 0x007F0000 */
8902 #define FLASH_WRP1AR_WRP1A_PEND             FLASH_WRP1AR_WRP1A_PEND_Msk             /*!< Bank 1 WPR first area A end page */
8903 #define FLASH_WRP1AR_UNLOCK_Pos             (31U)
8904 #define FLASH_WRP1AR_UNLOCK_Msk             (0x1UL << FLASH_WRP1AR_UNLOCK_Pos)      /*!< 0x80000000 */
8905 #define FLASH_WRP1AR_UNLOCK                 FLASH_WRP1AR_UNLOCK_Msk                 /*!< Bank 1 WPR first area A unlock */
8906 
8907 /******************  Bits definition for FLASH_WRP1BR register  ***************/
8908 #define FLASH_WRP1BR_WRP1B_PSTRT_Pos        (0U)
8909 #define FLASH_WRP1BR_WRP1B_PSTRT_Msk        (0x7FUL << FLASH_WRP1BR_WRP1B_PSTRT_Pos) /*!< 0x0000007F */
8910 #define FLASH_WRP1BR_WRP1B_PSTRT            FLASH_WRP1BR_WRP1B_PSTRT_Msk            /*!< Bank 1 WPR second area B start page */
8911 #define FLASH_WRP1BR_WRP1B_PEND_Pos         (16U)
8912 #define FLASH_WRP1BR_WRP1B_PEND_Msk         (0x7FUL << FLASH_WRP1BR_WRP1B_PEND_Pos) /*!< 0x007F0000 */
8913 #define FLASH_WRP1BR_WRP1B_PEND             FLASH_WRP1BR_WRP1B_PEND_Msk             /*!< Bank 1 WPR second area B end page */
8914 #define FLASH_WRP1BR_UNLOCK_Pos             (31U)
8915 #define FLASH_WRP1BR_UNLOCK_Msk             (0x1UL << FLASH_WRP1BR_UNLOCK_Pos)      /*!< 0x80000000 */
8916 #define FLASH_WRP1BR_UNLOCK                 FLASH_WRP1BR_UNLOCK_Msk                 /*!< Bank 1 WPR first area B unlock */
8917 
8918 /*****************  Bits definition for FLASH_SECWM2R1 register  **************/
8919 #define FLASH_SECWM2R1_SECWM2_PSTRT_Pos     (0U)
8920 #define FLASH_SECWM2R1_SECWM2_PSTRT_Msk     (0x7FUL << FLASH_SECWM2R1_SECWM2_PSTRT_Pos) /*!< 0x0000007F */
8921 #define FLASH_SECWM2R1_SECWM2_PSTRT         FLASH_SECWM2R1_SECWM2_PSTRT_Msk         /*!< Start page of second secure area */
8922 #define FLASH_SECWM2R1_SECWM2_PEND_Pos      (16U)
8923 #define FLASH_SECWM2R1_SECWM2_PEND_Msk      (0x7FUL << FLASH_SECWM2R1_SECWM2_PEND_Pos) /*!< 0x007F0000 */
8924 #define FLASH_SECWM2R1_SECWM2_PEND          FLASH_SECWM2R1_SECWM2_PEND_Msk          /*!< End page of second secure area */
8925 
8926 /*****************  Bits definition for FLASH_SECWM2R2 register  **************/
8927 #define FLASH_SECWM2R2_HDP2_PEND_Pos        (16U)
8928 #define FLASH_SECWM2R2_HDP2_PEND_Msk        (0x7FUL << FLASH_SECWM2R2_HDP2_PEND_Pos) /*!< 0x007F0000 */
8929 #define FLASH_SECWM2R2_HDP2_PEND            FLASH_SECWM2R2_HDP2_PEND_Msk            /*!< End page of hide protection second area */
8930 #define FLASH_SECWM2R2_HDP2EN_Pos           (31U)
8931 #define FLASH_SECWM2R2_HDP2EN_Msk           (0x1UL << FLASH_SECWM2R2_HDP2EN_Pos)    /*!< 0x80000000 */
8932 #define FLASH_SECWM2R2_HDP2EN               FLASH_SECWM2R2_HDP2EN_Msk               /*!< Hide protection second area enable */
8933 
8934 /******************  Bits definition for FLASH_WRP2AR register  ***************/
8935 #define FLASH_WRP2AR_WRP2A_PSTRT_Pos        (0U)
8936 #define FLASH_WRP2AR_WRP2A_PSTRT_Msk        (0x7FUL << FLASH_WRP2AR_WRP2A_PSTRT_Pos) /*!< 0x0000007F */
8937 #define FLASH_WRP2AR_WRP2A_PSTRT            FLASH_WRP2AR_WRP2A_PSTRT_Msk            /*!< Bank 2 WPR first area A start page */
8938 #define FLASH_WRP2AR_WRP2A_PEND_Pos         (16U)
8939 #define FLASH_WRP2AR_WRP2A_PEND_Msk         (0x7FUL << FLASH_WRP2AR_WRP2A_PEND_Pos) /*!< 0x007F0000 */
8940 #define FLASH_WRP2AR_WRP2A_PEND             FLASH_WRP2AR_WRP2A_PEND_Msk             /*!< Bank 2 WPR first area A end page */
8941 #define FLASH_WRP2AR_UNLOCK_Pos             (31U)
8942 #define FLASH_WRP2AR_UNLOCK_Msk             (0x1UL << FLASH_WRP2AR_UNLOCK_Pos)      /*!< 0x80000000 */
8943 #define FLASH_WRP2AR_UNLOCK                 FLASH_WRP2AR_UNLOCK_Msk                 /*!< Bank 2 WPR first area A unlock */
8944 
8945 /******************  Bits definition for FLASH_WRP2BR register  ***************/
8946 #define FLASH_WRP2BR_WRP2B_PSTRT_Pos        (0U)
8947 #define FLASH_WRP2BR_WRP2B_PSTRT_Msk        (0x7FUL << FLASH_WRP2BR_WRP2B_PSTRT_Pos) /*!< 0x0000007F */
8948 #define FLASH_WRP2BR_WRP2B_PSTRT            FLASH_WRP2BR_WRP2B_PSTRT_Msk            /*!< Bank 2 WPR first area B start page */
8949 #define FLASH_WRP2BR_WRP2B_PEND_Pos         (16U)
8950 #define FLASH_WRP2BR_WRP2B_PEND_Msk         (0x7FUL << FLASH_WRP2BR_WRP2B_PEND_Pos) /*!< 0x007F0000 */
8951 #define FLASH_WRP2BR_WRP2B_PEND             FLASH_WRP2BR_WRP2B_PEND_Msk             /*!< Bank 2 WPR first area B end page */
8952 #define FLASH_WRP2BR_UNLOCK_Pos             (31U)
8953 #define FLASH_WRP2BR_UNLOCK_Msk             (0x1UL << FLASH_WRP2BR_UNLOCK_Pos)      /*!< 0x80000000 */
8954 #define FLASH_WRP2BR_UNLOCK                 FLASH_WRP2BR_UNLOCK_Msk                 /*!< Bank 2 WPR first area B unlock */
8955 
8956 /******************  Bits definition for FLASH_SECHDPCR register  ***********/
8957 #define FLASH_SECHDPCR_HDP1_ACCDIS_Pos      (0U)
8958 #define FLASH_SECHDPCR_HDP1_ACCDIS_Msk      (0x1UL << FLASH_SECHDPCR_HDP1_ACCDIS_Pos) /*!< 0x00000001 */
8959 #define FLASH_SECHDPCR_HDP1_ACCDIS          FLASH_SECHDPCR_HDP1_ACCDIS_Msk          /*!< HDP1 area access disable */
8960 #define FLASH_SECHDPCR_HDP2_ACCDIS_Pos      (1U)
8961 #define FLASH_SECHDPCR_HDP2_ACCDIS_Msk      (0x1UL << FLASH_SECHDPCR_HDP2_ACCDIS_Pos) /*!< 0x00000002 */
8962 #define FLASH_SECHDPCR_HDP2_ACCDIS          FLASH_SECHDPCR_HDP2_ACCDIS_Msk          /*!< HDP2 area access disable */
8963 
8964 /******************  Bits definition for FLASH_PRIVCFGR register  ***********/
8965 #define FLASH_PRIVCFGR_SPRIV_Pos            (0U)
8966 #define FLASH_PRIVCFGR_SPRIV_Msk            (0x1UL << FLASH_PRIVCFGR_SPRIV_Pos)     /*!< 0x00000001 */
8967 #define FLASH_PRIVCFGR_SPRIV                FLASH_PRIVCFGR_SPRIV_Msk                /*!< Privilege protection for secure registers */
8968 #define FLASH_PRIVCFGR_NSPRIV_Pos           (1U)
8969 #define FLASH_PRIVCFGR_NSPRIV_Msk           (0x1UL << FLASH_PRIVCFGR_NSPRIV_Pos)    /*!< 0x00000002 */
8970 #define FLASH_PRIVCFGR_NSPRIV               FLASH_PRIVCFGR_NSPRIV_Msk               /*!< Privilege protection for non-secure registers */
8971 
8972 /******************************************************************************/
8973 /*                                                                            */
8974 /*                Filter Mathematical ACcelerator unit (FMAC)                 */
8975 /*                                                                            */
8976 /******************************************************************************/
8977 /*****************  Bit definition for FMAC_X1BUFCFG register  ****************/
8978 #define FMAC_X1BUFCFG_X1_BASE_Pos           (0U)
8979 #define FMAC_X1BUFCFG_X1_BASE_Msk           (0xFFUL << FMAC_X1BUFCFG_X1_BASE_Pos)   /*!< 0x000000FF */
8980 #define FMAC_X1BUFCFG_X1_BASE               FMAC_X1BUFCFG_X1_BASE_Msk               /*!< Base address of X1 buffer */
8981 #define FMAC_X1BUFCFG_X1_BUF_SIZE_Pos       (8U)
8982 #define FMAC_X1BUFCFG_X1_BUF_SIZE_Msk       (0xFFUL << FMAC_X1BUFCFG_X1_BUF_SIZE_Pos) /*!< 0x0000FF00 */
8983 #define FMAC_X1BUFCFG_X1_BUF_SIZE           FMAC_X1BUFCFG_X1_BUF_SIZE_Msk           /*!< Allocated size of X1 buffer in 16-bit words */
8984 #define FMAC_X1BUFCFG_FULL_WM_Pos           (24U)
8985 #define FMAC_X1BUFCFG_FULL_WM_Msk           (0x3UL << FMAC_X1BUFCFG_FULL_WM_Pos)    /*!< 0x03000000 */
8986 #define FMAC_X1BUFCFG_FULL_WM               FMAC_X1BUFCFG_FULL_WM_Msk               /*!< Watermark for buffer full flag */
8987 
8988 /*****************  Bit definition for FMAC_X2BUFCFG register  ****************/
8989 #define FMAC_X2BUFCFG_X2_BASE_Pos           (0U)
8990 #define FMAC_X2BUFCFG_X2_BASE_Msk           (0xFFUL << FMAC_X2BUFCFG_X2_BASE_Pos)   /*!< 0x000000FF */
8991 #define FMAC_X2BUFCFG_X2_BASE               FMAC_X2BUFCFG_X2_BASE_Msk               /*!< Base address of X2 buffer */
8992 #define FMAC_X2BUFCFG_X2_BUF_SIZE_Pos       (8U)
8993 #define FMAC_X2BUFCFG_X2_BUF_SIZE_Msk       (0xFFUL << FMAC_X2BUFCFG_X2_BUF_SIZE_Pos) /*!< 0x0000FF00 */
8994 #define FMAC_X2BUFCFG_X2_BUF_SIZE           FMAC_X2BUFCFG_X2_BUF_SIZE_Msk           /*!< Size of X2 buffer in 16-bit words */
8995 
8996 /*****************  Bit definition for FMAC_YBUFCFG register  *****************/
8997 #define FMAC_YBUFCFG_Y_BASE_Pos             (0U)
8998 #define FMAC_YBUFCFG_Y_BASE_Msk             (0xFFUL << FMAC_YBUFCFG_Y_BASE_Pos)     /*!< 0x000000FF */
8999 #define FMAC_YBUFCFG_Y_BASE                 FMAC_YBUFCFG_Y_BASE_Msk                 /*!< Base address of Y buffer */
9000 #define FMAC_YBUFCFG_Y_BUF_SIZE_Pos         (8U)
9001 #define FMAC_YBUFCFG_Y_BUF_SIZE_Msk         (0xFFUL << FMAC_YBUFCFG_Y_BUF_SIZE_Pos) /*!< 0x0000FF00 */
9002 #define FMAC_YBUFCFG_Y_BUF_SIZE             FMAC_YBUFCFG_Y_BUF_SIZE_Msk             /*!< Size of Y buffer in 16-bit words */
9003 #define FMAC_YBUFCFG_EMPTY_WM_Pos           (24U)
9004 #define FMAC_YBUFCFG_EMPTY_WM_Msk           (0x3UL << FMAC_YBUFCFG_EMPTY_WM_Pos)    /*!< 0x03000000 */
9005 #define FMAC_YBUFCFG_EMPTY_WM               FMAC_YBUFCFG_EMPTY_WM_Msk               /*!< Watermark for buffer empty flag */
9006 
9007 /******************  Bit definition for FMAC_PARAM register  ******************/
9008 #define FMAC_PARAM_P_Pos                    (0U)
9009 #define FMAC_PARAM_P_Msk                    (0xFFUL << FMAC_PARAM_P_Pos)            /*!< 0x000000FF */
9010 #define FMAC_PARAM_P                        FMAC_PARAM_P_Msk                        /*!< Input parameter P */
9011 #define FMAC_PARAM_Q_Pos                    (8U)
9012 #define FMAC_PARAM_Q_Msk                    (0xFFUL << FMAC_PARAM_Q_Pos)            /*!< 0x0000FF00 */
9013 #define FMAC_PARAM_Q                        FMAC_PARAM_Q_Msk                        /*!< Input parameter Q */
9014 #define FMAC_PARAM_R_Pos                    (16U)
9015 #define FMAC_PARAM_R_Msk                    (0xFFUL << FMAC_PARAM_R_Pos)            /*!< 0x00FF0000 */
9016 #define FMAC_PARAM_R                        FMAC_PARAM_R_Msk                        /*!< Input parameter R */
9017 #define FMAC_PARAM_FUNC_Pos                 (24U)
9018 #define FMAC_PARAM_FUNC_Msk                 (0x7FUL << FMAC_PARAM_FUNC_Pos)         /*!< 0x7F000000 */
9019 #define FMAC_PARAM_FUNC                     FMAC_PARAM_FUNC_Msk                     /*!< Function */
9020 #define FMAC_PARAM_FUNC_0                   (0x1UL << FMAC_PARAM_FUNC_Pos)          /*!< 0x01000000 */
9021 #define FMAC_PARAM_FUNC_1                   (0x2UL << FMAC_PARAM_FUNC_Pos)          /*!< 0x02000000 */
9022 #define FMAC_PARAM_FUNC_2                   (0x4UL << FMAC_PARAM_FUNC_Pos)          /*!< 0x04000000 */
9023 #define FMAC_PARAM_FUNC_3                   (0x8UL << FMAC_PARAM_FUNC_Pos)          /*!< 0x08000000 */
9024 #define FMAC_PARAM_FUNC_4                   (0x10UL << FMAC_PARAM_FUNC_Pos)         /*!< 0x10000000 */
9025 #define FMAC_PARAM_FUNC_5                   (0x20UL << FMAC_PARAM_FUNC_Pos)         /*!< 0x20000000 */
9026 #define FMAC_PARAM_FUNC_6                   (0x40UL << FMAC_PARAM_FUNC_Pos)         /*!< 0x40000000 */
9027 #define FMAC_PARAM_START_Pos                (31U)
9028 #define FMAC_PARAM_START_Msk                (0x1UL << FMAC_PARAM_START_Pos)         /*!< 0x80000000 */
9029 #define FMAC_PARAM_START                    FMAC_PARAM_START_Msk                    /*!< Enable execution */
9030 
9031 /********************  Bit definition for FMAC_CR register  *******************/
9032 #define FMAC_CR_RIEN_Pos                    (0U)
9033 #define FMAC_CR_RIEN_Msk                    (0x1UL << FMAC_CR_RIEN_Pos)             /*!< 0x00000001 */
9034 #define FMAC_CR_RIEN                        FMAC_CR_RIEN_Msk                        /*!< Enable read interrupt */
9035 #define FMAC_CR_WIEN_Pos                    (1U)
9036 #define FMAC_CR_WIEN_Msk                    (0x1UL << FMAC_CR_WIEN_Pos)             /*!< 0x00000002 */
9037 #define FMAC_CR_WIEN                        FMAC_CR_WIEN_Msk                        /*!< Enable write interrupt */
9038 #define FMAC_CR_OVFLIEN_Pos                 (2U)
9039 #define FMAC_CR_OVFLIEN_Msk                 (0x1UL << FMAC_CR_OVFLIEN_Pos)          /*!< 0x00000004 */
9040 #define FMAC_CR_OVFLIEN                     FMAC_CR_OVFLIEN_Msk                     /*!< Enable overflow error interrupts */
9041 #define FMAC_CR_UNFLIEN_Pos                 (3U)
9042 #define FMAC_CR_UNFLIEN_Msk                 (0x1UL << FMAC_CR_UNFLIEN_Pos)          /*!< 0x00000008 */
9043 #define FMAC_CR_UNFLIEN                     FMAC_CR_UNFLIEN_Msk                     /*!< Enable underflow error interrupts */
9044 #define FMAC_CR_SATIEN_Pos                  (4U)
9045 #define FMAC_CR_SATIEN_Msk                  (0x1UL << FMAC_CR_SATIEN_Pos)           /*!< 0x00000010 */
9046 #define FMAC_CR_SATIEN                      FMAC_CR_SATIEN_Msk                      /*!< Enable saturation error interrupts */
9047 #define FMAC_CR_DMAREN_Pos                  (8U)
9048 #define FMAC_CR_DMAREN_Msk                  (0x1UL << FMAC_CR_DMAREN_Pos)           /*!< 0x00000100 */
9049 #define FMAC_CR_DMAREN                      FMAC_CR_DMAREN_Msk                      /*!< Enable DMA read channel requests */
9050 #define FMAC_CR_DMAWEN_Pos                  (9U)
9051 #define FMAC_CR_DMAWEN_Msk                  (0x1UL << FMAC_CR_DMAWEN_Pos)           /*!< 0x00000200 */
9052 #define FMAC_CR_DMAWEN                      FMAC_CR_DMAWEN_Msk                      /*!< Enable DMA write channel requests */
9053 #define FMAC_CR_CLIPEN_Pos                  (15U)
9054 #define FMAC_CR_CLIPEN_Msk                  (0x1UL << FMAC_CR_CLIPEN_Pos)           /*!< 0x00008000 */
9055 #define FMAC_CR_CLIPEN                      FMAC_CR_CLIPEN_Msk                      /*!< Enable clipping */
9056 #define FMAC_CR_RESET_Pos                   (16U)
9057 #define FMAC_CR_RESET_Msk                   (0x1UL << FMAC_CR_RESET_Pos)            /*!< 0x00010000 */
9058 #define FMAC_CR_RESET                       FMAC_CR_RESET_Msk                       /*!< Reset filter mathematical accelerator unit */
9059 
9060 /*******************  Bit definition for FMAC_SR register  ********************/
9061 #define FMAC_SR_YEMPTY_Pos                  (0U)
9062 #define FMAC_SR_YEMPTY_Msk                  (0x1UL << FMAC_SR_YEMPTY_Pos)           /*!< 0x00000001 */
9063 #define FMAC_SR_YEMPTY                      FMAC_SR_YEMPTY_Msk                      /*!< Y buffer empty flag */
9064 #define FMAC_SR_X1FULL_Pos                  (1U)
9065 #define FMAC_SR_X1FULL_Msk                  (0x1UL << FMAC_SR_X1FULL_Pos)           /*!< 0x00000002 */
9066 #define FMAC_SR_X1FULL                      FMAC_SR_X1FULL_Msk                      /*!< X1 buffer full flag */
9067 #define FMAC_SR_OVFL_Pos                    (8U)
9068 #define FMAC_SR_OVFL_Msk                    (0x1UL << FMAC_SR_OVFL_Pos)             /*!< 0x00000100 */
9069 #define FMAC_SR_OVFL                        FMAC_SR_OVFL_Msk                        /*!< Overflow error flag */
9070 #define FMAC_SR_UNFL_Pos                    (9U)
9071 #define FMAC_SR_UNFL_Msk                    (0x1UL << FMAC_SR_UNFL_Pos)             /*!< 0x00000200 */
9072 #define FMAC_SR_UNFL                        FMAC_SR_UNFL_Msk                        /*!< Underflow error flag */
9073 #define FMAC_SR_SAT_Pos                     (10U)
9074 #define FMAC_SR_SAT_Msk                     (0x1UL << FMAC_SR_SAT_Pos)              /*!< 0x00000400 */
9075 #define FMAC_SR_SAT                         FMAC_SR_SAT_Msk                         /*!< Saturation error flag */
9076 
9077 /******************  Bit definition for FMAC_WDATA register  ******************/
9078 #define FMAC_WDATA_WDATA_Pos                (0U)
9079 #define FMAC_WDATA_WDATA_Msk                (0xFFFFUL << FMAC_WDATA_WDATA_Pos)      /*!< 0x0000FFFF */
9080 #define FMAC_WDATA_WDATA                    FMAC_WDATA_WDATA_Msk                    /*!< Write data */
9081 
9082 /******************  Bit definition for FMACX_RDATA register  *****************/
9083 #define FMAC_RDATA_RDATA_Pos                (0U)
9084 #define FMAC_RDATA_RDATA_Msk                (0xFFFFUL << FMAC_RDATA_RDATA_Pos)      /*!< 0x0000FFFF */
9085 #define FMAC_RDATA_RDATA                    FMAC_RDATA_RDATA_Msk                    /*!< Read data */
9086 
9087 /******************************************************************************/
9088 /*                                                                            */
9089 /*                          Flexible Memory Controller                        */
9090 /*                                                                            */
9091 /******************************************************************************/
9092 /******************  Bit definition for FMC_BCR1 register  *******************/
9093 #define FMC_BCR1_CCLKEN_Pos                 (20U)
9094 #define FMC_BCR1_CCLKEN_Msk                 (0x1UL << FMC_BCR1_CCLKEN_Pos)          /*!< 0x00100000 */
9095 #define FMC_BCR1_CCLKEN                     FMC_BCR1_CCLKEN_Msk                     /*!<Continuous clock enable     */
9096 #define FMC_BCR1_WFDIS_Pos                  (21U)
9097 #define FMC_BCR1_WFDIS_Msk                  (0x1UL << FMC_BCR1_WFDIS_Pos)           /*!< 0x00200000 */
9098 #define FMC_BCR1_WFDIS                      FMC_BCR1_WFDIS_Msk                      /*!<Write FIFO Disable         */
9099 #define FMC_BCR1_FMCEN_Pos                  (31U)
9100 #define FMC_BCR1_FMCEN_Msk                  (0x1UL << FMC_BCR1_FMCEN_Pos)           /*!< 0x80000000 */
9101 #define FMC_BCR1_FMCEN                      FMC_BCR1_FMCEN_Msk                      /*!<FMC controller Enable */
9102 
9103 /******************  Bit definition for FMC_BCRx registers (x=1..4)  *********/
9104 #define FMC_BCRx_MBKEN_Pos                  (0U)
9105 #define FMC_BCRx_MBKEN_Msk                  (0x1UL << FMC_BCRx_MBKEN_Pos)           /*!< 0x00000001 */
9106 #define FMC_BCRx_MBKEN                      FMC_BCRx_MBKEN_Msk                      /*!<Memory bank enable bit                 */
9107 #define FMC_BCRx_MUXEN_Pos                  (1U)
9108 #define FMC_BCRx_MUXEN_Msk                  (0x1UL << FMC_BCRx_MUXEN_Pos)           /*!< 0x00000002 */
9109 #define FMC_BCRx_MUXEN                      FMC_BCRx_MUXEN_Msk                      /*!<Address/data multiplexing enable bit   */
9110 #define FMC_BCRx_MTYP_Pos                   (2U)
9111 #define FMC_BCRx_MTYP_Msk                   (0x3UL << FMC_BCRx_MTYP_Pos)            /*!< 0x0000000C */
9112 #define FMC_BCRx_MTYP                       FMC_BCRx_MTYP_Msk                       /*!<MTYP[1:0] bits (Memory type)           */
9113 #define FMC_BCRx_MTYP_0                     (0x1UL << FMC_BCRx_MTYP_Pos)            /*!< 0x00000004 */
9114 #define FMC_BCRx_MTYP_1                     (0x2UL << FMC_BCRx_MTYP_Pos)            /*!< 0x00000008 */
9115 #define FMC_BCRx_MWID_Pos                   (4U)
9116 #define FMC_BCRx_MWID_Msk                   (0x3UL << FMC_BCRx_MWID_Pos)            /*!< 0x00000030 */
9117 #define FMC_BCRx_MWID                       FMC_BCRx_MWID_Msk                       /*!<MWID[1:0] bits (Memory data bus width) */
9118 #define FMC_BCRx_MWID_0                     (0x1UL << FMC_BCRx_MWID_Pos)            /*!< 0x00000010 */
9119 #define FMC_BCRx_MWID_1                     (0x2UL << FMC_BCRx_MWID_Pos)            /*!< 0x00000020 */
9120 #define FMC_BCRx_FACCEN_Pos                 (6U)
9121 #define FMC_BCRx_FACCEN_Msk                 (0x1UL << FMC_BCRx_FACCEN_Pos)          /*!< 0x00000040 */
9122 #define FMC_BCRx_FACCEN                     FMC_BCRx_FACCEN_Msk                     /*!<Flash access enable        */
9123 #define FMC_BCRx_BURSTEN_Pos                (8U)
9124 #define FMC_BCRx_BURSTEN_Msk                (0x1UL << FMC_BCRx_BURSTEN_Pos)         /*!< 0x00000100 */
9125 #define FMC_BCRx_BURSTEN                    FMC_BCRx_BURSTEN_Msk                    /*!<Burst enable bit           */
9126 #define FMC_BCRx_WAITPOL_Pos                (9U)
9127 #define FMC_BCRx_WAITPOL_Msk                (0x1UL << FMC_BCRx_WAITPOL_Pos)         /*!< 0x00000200 */
9128 #define FMC_BCRx_WAITPOL                    FMC_BCRx_WAITPOL_Msk                    /*!<Wait signal polarity bit   */
9129 #define FMC_BCRx_WAITCFG_Pos                (11U)
9130 #define FMC_BCRx_WAITCFG_Msk                (0x1UL << FMC_BCRx_WAITCFG_Pos)         /*!< 0x00000800 */
9131 #define FMC_BCRx_WAITCFG                    FMC_BCRx_WAITCFG_Msk                    /*!<Wait timing configuration  */
9132 #define FMC_BCRx_WREN_Pos                   (12U)
9133 #define FMC_BCRx_WREN_Msk                   (0x1UL << FMC_BCRx_WREN_Pos)            /*!< 0x00001000 */
9134 #define FMC_BCRx_WREN                       FMC_BCRx_WREN_Msk                       /*!<Write enable bit           */
9135 #define FMC_BCRx_WAITEN_Pos                 (13U)
9136 #define FMC_BCRx_WAITEN_Msk                 (0x1UL << FMC_BCRx_WAITEN_Pos)          /*!< 0x00002000 */
9137 #define FMC_BCRx_WAITEN                     FMC_BCRx_WAITEN_Msk                     /*!<Wait enable bit            */
9138 #define FMC_BCRx_EXTMOD_Pos                 (14U)
9139 #define FMC_BCRx_EXTMOD_Msk                 (0x1UL << FMC_BCRx_EXTMOD_Pos)          /*!< 0x00004000 */
9140 #define FMC_BCRx_EXTMOD                     FMC_BCRx_EXTMOD_Msk                     /*!<Extended mode enable       */
9141 #define FMC_BCRx_ASYNCWAIT_Pos              (15U)
9142 #define FMC_BCRx_ASYNCWAIT_Msk              (0x1UL << FMC_BCRx_ASYNCWAIT_Pos)       /*!< 0x00008000 */
9143 #define FMC_BCRx_ASYNCWAIT                  FMC_BCRx_ASYNCWAIT_Msk                  /*!<Asynchronous wait          */
9144 #define FMC_BCRx_CPSIZE_Pos                 (16U)
9145 #define FMC_BCRx_CPSIZE_Msk                 (0x7UL << FMC_BCRx_CPSIZE_Pos)          /*!< 0x00070000 */
9146 #define FMC_BCRx_CPSIZE                     FMC_BCRx_CPSIZE_Msk                     /*!<PSIZE[2:0] bits CRAM Page Size */
9147 #define FMC_BCRx_CPSIZE_0                   (0x1UL << FMC_BCRx_CPSIZE_Pos)          /*!< 0x00010000 */
9148 #define FMC_BCRx_CPSIZE_1                   (0x2UL << FMC_BCRx_CPSIZE_Pos)          /*!< 0x00020000 */
9149 #define FMC_BCRx_CPSIZE_2                   (0x4UL << FMC_BCRx_CPSIZE_Pos)          /*!< 0x00040000 */
9150 #define FMC_BCRx_CBURSTRW_Pos               (19U)
9151 #define FMC_BCRx_CBURSTRW_Msk               (0x1UL << FMC_BCRx_CBURSTRW_Pos)        /*!< 0x00080000 */
9152 #define FMC_BCRx_CBURSTRW                   FMC_BCRx_CBURSTRW_Msk                   /*!<Write burst enable         */
9153 #define FMC_BCRx_NBLSET_Pos                 (22U)
9154 #define FMC_BCRx_NBLSET_Msk                 (0x3UL << FMC_BCRx_NBLSET_Pos)          /*!< 0x00C00000 */
9155 #define FMC_BCRx_NBLSET                     FMC_BCRx_NBLSET_Msk                     /*!<Byte lane (NBL) setup      */
9156 #define FMC_BCRx_NBLSET_0                   (0x1UL << FMC_BCRx_NBLSET_Pos)          /*!< 0x00400000 */
9157 #define FMC_BCRx_NBLSET_1                   (0x2UL << FMC_BCRx_NBLSET_Pos)          /*!< 0x00800000 */
9158 
9159 /******************  Bit definition for FMC_BTRx registers (x=1..4)  *********/
9160 #define FMC_BTRx_ADDSET_Pos                 (0U)
9161 #define FMC_BTRx_ADDSET_Msk                 (0xFUL << FMC_BTRx_ADDSET_Pos)          /*!< 0x0000000F */
9162 #define FMC_BTRx_ADDSET                     FMC_BTRx_ADDSET_Msk                     /*!<ADDSET[3:0] bits (Address setup phase duration) */
9163 #define FMC_BTRx_ADDSET_0                   (0x1UL << FMC_BTRx_ADDSET_Pos)          /*!< 0x00000001 */
9164 #define FMC_BTRx_ADDSET_1                   (0x2UL << FMC_BTRx_ADDSET_Pos)          /*!< 0x00000002 */
9165 #define FMC_BTRx_ADDSET_2                   (0x4UL << FMC_BTRx_ADDSET_Pos)          /*!< 0x00000004 */
9166 #define FMC_BTRx_ADDSET_3                   (0x8UL << FMC_BTRx_ADDSET_Pos)          /*!< 0x00000008 */
9167 #define FMC_BTRx_ADDHLD_Pos                 (4U)
9168 #define FMC_BTRx_ADDHLD_Msk                 (0xFUL << FMC_BTRx_ADDHLD_Pos)          /*!< 0x000000F0 */
9169 #define FMC_BTRx_ADDHLD                     FMC_BTRx_ADDHLD_Msk                     /*!<ADDHLD[3:0] bits (Address-hold phase duration)  */
9170 #define FMC_BTRx_ADDHLD_0                   (0x1UL << FMC_BTRx_ADDHLD_Pos)          /*!< 0x00000010 */
9171 #define FMC_BTRx_ADDHLD_1                   (0x2UL << FMC_BTRx_ADDHLD_Pos)          /*!< 0x00000020 */
9172 #define FMC_BTRx_ADDHLD_2                   (0x4UL << FMC_BTRx_ADDHLD_Pos)          /*!< 0x00000040 */
9173 #define FMC_BTRx_ADDHLD_3                   (0x8UL << FMC_BTRx_ADDHLD_Pos)          /*!< 0x00000080 */
9174 #define FMC_BTRx_DATAST_Pos                 (8U)
9175 #define FMC_BTRx_DATAST_Msk                 (0xFFUL << FMC_BTRx_DATAST_Pos)         /*!< 0x0000FF00 */
9176 #define FMC_BTRx_DATAST                     FMC_BTRx_DATAST_Msk                     /*!<DATAST [3:0] bits (Data-phase duration) */
9177 #define FMC_BTRx_DATAST_0                   (0x01UL << FMC_BTRx_DATAST_Pos)         /*!< 0x00000100 */
9178 #define FMC_BTRx_DATAST_1                   (0x02UL << FMC_BTRx_DATAST_Pos)         /*!< 0x00000200 */
9179 #define FMC_BTRx_DATAST_2                   (0x04UL << FMC_BTRx_DATAST_Pos)         /*!< 0x00000400 */
9180 #define FMC_BTRx_DATAST_3                   (0x08UL << FMC_BTRx_DATAST_Pos)         /*!< 0x00000800 */
9181 #define FMC_BTRx_DATAST_4                   (0x10UL << FMC_BTRx_DATAST_Pos)         /*!< 0x00001000 */
9182 #define FMC_BTRx_DATAST_5                   (0x20UL << FMC_BTRx_DATAST_Pos)         /*!< 0x00002000 */
9183 #define FMC_BTRx_DATAST_6                   (0x40UL << FMC_BTRx_DATAST_Pos)         /*!< 0x00004000 */
9184 #define FMC_BTRx_DATAST_7                   (0x80UL << FMC_BTRx_DATAST_Pos)         /*!< 0x00008000 */
9185 #define FMC_BTRx_BUSTURN_Pos                (16U)
9186 #define FMC_BTRx_BUSTURN_Msk                (0xFUL << FMC_BTRx_BUSTURN_Pos)         /*!< 0x000F0000 */
9187 #define FMC_BTRx_BUSTURN                    FMC_BTRx_BUSTURN_Msk                    /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
9188 #define FMC_BTRx_BUSTURN_0                  (0x1UL << FMC_BTRx_BUSTURN_Pos)         /*!< 0x00010000 */
9189 #define FMC_BTRx_BUSTURN_1                  (0x2UL << FMC_BTRx_BUSTURN_Pos)         /*!< 0x00020000 */
9190 #define FMC_BTRx_BUSTURN_2                  (0x4UL << FMC_BTRx_BUSTURN_Pos)         /*!< 0x00040000 */
9191 #define FMC_BTRx_BUSTURN_3                  (0x8UL << FMC_BTRx_BUSTURN_Pos)         /*!< 0x00080000 */
9192 #define FMC_BTRx_CLKDIV_Pos                 (20U)
9193 #define FMC_BTRx_CLKDIV_Msk                 (0xFUL << FMC_BTRx_CLKDIV_Pos)          /*!< 0x00F00000 */
9194 #define FMC_BTRx_CLKDIV                     FMC_BTRx_CLKDIV_Msk                     /*!<CLKDIV[3:0] bits (Clock divide ratio) */
9195 #define FMC_BTRx_CLKDIV_0                   (0x1UL << FMC_BTRx_CLKDIV_Pos)          /*!< 0x00100000 */
9196 #define FMC_BTRx_CLKDIV_1                   (0x2UL << FMC_BTRx_CLKDIV_Pos)          /*!< 0x00200000 */
9197 #define FMC_BTRx_CLKDIV_2                   (0x4UL << FMC_BTRx_CLKDIV_Pos)          /*!< 0x00400000 */
9198 #define FMC_BTRx_CLKDIV_3                   (0x8UL << FMC_BTRx_CLKDIV_Pos)          /*!< 0x00800000 */
9199 #define FMC_BTRx_DATLAT_Pos                 (24U)
9200 #define FMC_BTRx_DATLAT_Msk                 (0xFUL << FMC_BTRx_DATLAT_Pos)          /*!< 0x0F000000 */
9201 #define FMC_BTRx_DATLAT                     FMC_BTRx_DATLAT_Msk                     /*!<DATLA[3:0] bits (Data latency) */
9202 #define FMC_BTRx_DATLAT_0                   (0x1UL << FMC_BTRx_DATLAT_Pos)          /*!< 0x01000000 */
9203 #define FMC_BTRx_DATLAT_1                   (0x2UL << FMC_BTRx_DATLAT_Pos)          /*!< 0x02000000 */
9204 #define FMC_BTRx_DATLAT_2                   (0x4UL << FMC_BTRx_DATLAT_Pos)          /*!< 0x04000000 */
9205 #define FMC_BTRx_DATLAT_3                   (0x8UL << FMC_BTRx_DATLAT_Pos)          /*!< 0x08000000 */
9206 #define FMC_BTRx_ACCMOD_Pos                 (28U)
9207 #define FMC_BTRx_ACCMOD_Msk                 (0x3UL << FMC_BTRx_ACCMOD_Pos)          /*!< 0x30000000 */
9208 #define FMC_BTRx_ACCMOD                     FMC_BTRx_ACCMOD_Msk                     /*!<ACCMOD[1:0] bits (Access mode) */
9209 #define FMC_BTRx_ACCMOD_0                   (0x1UL << FMC_BTRx_ACCMOD_Pos)          /*!< 0x10000000 */
9210 #define FMC_BTRx_ACCMOD_1                   (0x2UL << FMC_BTRx_ACCMOD_Pos)          /*!< 0x20000000 */
9211 #define FMC_BTRx_DATAHLD_Pos                (30U)
9212 #define FMC_BTRx_DATAHLD_Msk                (0x3UL << FMC_BTRx_DATAHLD_Pos)         /*!< 0xC0000000 */
9213 #define FMC_BTRx_DATAHLD                    FMC_BTRx_DATAHLD_Msk                    /*!<DATAHLD[1:0] bits (Data hold phase duration) */
9214 #define FMC_BTRx_DATAHLD_0                  (0x1UL << FMC_BTRx_DATAHLD_Pos)         /*!< 0x40000000 */
9215 #define FMC_BTRx_DATAHLD_1                  (0x2UL << FMC_BTRx_DATAHLD_Pos)         /*!< 0x80000000 */
9216 
9217 /******************  Bit definition for FMC_BWTRx registers (x=1..4)  *********/
9218 #define FMC_BWTRx_ADDSET_Pos                (0U)
9219 #define FMC_BWTRx_ADDSET_Msk                (0xFUL << FMC_BWTRx_ADDSET_Pos)         /*!< 0x0000000F */
9220 #define FMC_BWTRx_ADDSET                    FMC_BWTRx_ADDSET_Msk                    /*!<ADDSET[3:0] bits (Address setup phase duration) */
9221 #define FMC_BWTRx_ADDSET_0                  (0x1UL << FMC_BWTRx_ADDSET_Pos)         /*!< 0x00000001 */
9222 #define FMC_BWTRx_ADDSET_1                  (0x2UL << FMC_BWTRx_ADDSET_Pos)         /*!< 0x00000002 */
9223 #define FMC_BWTRx_ADDSET_2                  (0x4UL << FMC_BWTRx_ADDSET_Pos)         /*!< 0x00000004 */
9224 #define FMC_BWTRx_ADDSET_3                  (0x8UL << FMC_BWTRx_ADDSET_Pos)         /*!< 0x00000008 */
9225 #define FMC_BWTRx_ADDHLD_Pos                (4U)
9226 #define FMC_BWTRx_ADDHLD_Msk                (0xFUL << FMC_BWTRx_ADDHLD_Pos)         /*!< 0x000000F0 */
9227 #define FMC_BWTRx_ADDHLD                    FMC_BWTRx_ADDHLD_Msk                    /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
9228 #define FMC_BWTRx_ADDHLD_0                  (0x1UL << FMC_BWTRx_ADDHLD_Pos)         /*!< 0x00000010 */
9229 #define FMC_BWTRx_ADDHLD_1                  (0x2UL << FMC_BWTRx_ADDHLD_Pos)         /*!< 0x00000020 */
9230 #define FMC_BWTRx_ADDHLD_2                  (0x4UL << FMC_BWTRx_ADDHLD_Pos)         /*!< 0x00000040 */
9231 #define FMC_BWTRx_ADDHLD_3                  (0x8UL << FMC_BWTRx_ADDHLD_Pos)         /*!< 0x00000080 */
9232 #define FMC_BWTRx_DATAST_Pos                (8U)
9233 #define FMC_BWTRx_DATAST_Msk                (0xFFUL << FMC_BWTRx_DATAST_Pos)        /*!< 0x0000FF00 */
9234 #define FMC_BWTRx_DATAST                    FMC_BWTRx_DATAST_Msk                    /*!<DATAST [3:0] bits (Data-phase duration) */
9235 #define FMC_BWTRx_DATAST_0                  (0x01UL << FMC_BWTRx_DATAST_Pos)        /*!< 0x00000100 */
9236 #define FMC_BWTRx_DATAST_1                  (0x02UL << FMC_BWTRx_DATAST_Pos)        /*!< 0x00000200 */
9237 #define FMC_BWTRx_DATAST_2                  (0x04UL << FMC_BWTRx_DATAST_Pos)        /*!< 0x00000400 */
9238 #define FMC_BWTRx_DATAST_3                  (0x08UL << FMC_BWTRx_DATAST_Pos)        /*!< 0x00000800 */
9239 #define FMC_BWTRx_DATAST_4                  (0x10UL << FMC_BWTRx_DATAST_Pos)        /*!< 0x00001000 */
9240 #define FMC_BWTRx_DATAST_5                  (0x20UL << FMC_BWTRx_DATAST_Pos)        /*!< 0x00002000 */
9241 #define FMC_BWTRx_DATAST_6                  (0x40UL << FMC_BWTRx_DATAST_Pos)        /*!< 0x00004000 */
9242 #define FMC_BWTRx_DATAST_7                  (0x80UL << FMC_BWTRx_DATAST_Pos)        /*!< 0x00008000 */
9243 #define FMC_BWTRx_BUSTURN_Pos               (16U)
9244 #define FMC_BWTRx_BUSTURN_Msk               (0xFUL << FMC_BWTRx_BUSTURN_Pos)        /*!< 0x000F0000 */
9245 #define FMC_BWTRx_BUSTURN                   FMC_BWTRx_BUSTURN_Msk                   /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
9246 #define FMC_BWTRx_BUSTURN_0                 (0x1UL << FMC_BWTRx_BUSTURN_Pos)        /*!< 0x00010000 */
9247 #define FMC_BWTRx_BUSTURN_1                 (0x2UL << FMC_BWTRx_BUSTURN_Pos)        /*!< 0x00020000 */
9248 #define FMC_BWTRx_BUSTURN_2                 (0x4UL << FMC_BWTRx_BUSTURN_Pos)        /*!< 0x00040000 */
9249 #define FMC_BWTRx_BUSTURN_3                 (0x8UL << FMC_BWTRx_BUSTURN_Pos)        /*!< 0x00080000 */
9250 #define FMC_BWTRx_ACCMOD_Pos                (28U)
9251 #define FMC_BWTRx_ACCMOD_Msk                (0x3UL << FMC_BWTRx_ACCMOD_Pos)         /*!< 0x30000000 */
9252 #define FMC_BWTRx_ACCMOD                    FMC_BWTRx_ACCMOD_Msk                    /*!<ACCMOD[1:0] bits (Access mode) */
9253 #define FMC_BWTRx_ACCMOD_0                  (0x1UL << FMC_BWTRx_ACCMOD_Pos)         /*!< 0x10000000 */
9254 #define FMC_BWTRx_ACCMOD_1                  (0x2UL << FMC_BWTRx_ACCMOD_Pos)         /*!< 0x20000000 */
9255 #define FMC_BWTRx_DATAHLD_Pos               (30U)
9256 #define FMC_BWTRx_DATAHLD_Msk               (0x3UL << FMC_BWTRx_DATAHLD_Pos)        /*!< 0xC0000000 */
9257 #define FMC_BWTRx_DATAHLD                   FMC_BWTRx_DATAHLD_Msk                   /*!<DATAHLD[1:0] bits (Data hold phase duration) */
9258 #define FMC_BWTRx_DATAHLD_0                 (0x1UL << FMC_BWTRx_DATAHLD_Pos)        /*!< 0x40000000 */
9259 #define FMC_BWTRx_DATAHLD_1                 (0x2UL << FMC_BWTRx_DATAHLD_Pos)        /*!< 0x80000000 */
9260 
9261 /******************  Bit definition for FMC_PCSCNTR register ******************/
9262 #define FMC_PCSCNTR_CSCOUNT_Pos             (0U)
9263 #define FMC_PCSCNTR_CSCOUNT_Msk             (0xFFFFUL << FMC_PCSCNTR_CSCOUNT_Pos)   /*!< 0x0000FFFF */
9264 #define FMC_PCSCNTR_CSCOUNT                 FMC_PCSCNTR_CSCOUNT_Msk                 /*!<CSCOUNT[15:0] bits (Chip select counter) */
9265 #define FMC_PCSCNTR_CNTB1EN_Pos             (16U)
9266 #define FMC_PCSCNTR_CNTB1EN_Msk             (0x1UL << FMC_PCSCNTR_CNTB1EN_Pos)      /*!< 0x00010000 */
9267 #define FMC_PCSCNTR_CNTB1EN                 FMC_PCSCNTR_CNTB1EN_Msk                 /*!<Counter PSRAM/NOR Bank1_1 enable */
9268 #define FMC_PCSCNTR_CNTB2EN_Pos             (17U)
9269 #define FMC_PCSCNTR_CNTB2EN_Msk             (0x1UL << FMC_PCSCNTR_CNTB2EN_Pos)      /*!< 0x00020000 */
9270 #define FMC_PCSCNTR_CNTB2EN                 FMC_PCSCNTR_CNTB2EN_Msk                 /*!<Counter PSRAM/NOR Bank1_2 enable */
9271 #define FMC_PCSCNTR_CNTB3EN_Pos             (18U)
9272 #define FMC_PCSCNTR_CNTB3EN_Msk             (0x1UL << FMC_PCSCNTR_CNTB3EN_Pos)      /*!< 0x00040000 */
9273 #define FMC_PCSCNTR_CNTB3EN                 FMC_PCSCNTR_CNTB3EN_Msk                 /*!<Counter PSRAM/NOR Bank1_3 enable */
9274 #define FMC_PCSCNTR_CNTB4EN_Pos             (19U)
9275 #define FMC_PCSCNTR_CNTB4EN_Msk             (0x1UL << FMC_PCSCNTR_CNTB4EN_Pos)      /*!< 0x00080000 */
9276 #define FMC_PCSCNTR_CNTB4EN                 FMC_PCSCNTR_CNTB4EN_Msk                 /*!<Counter PSRAM/NOR Bank1_4 enable */
9277 
9278 /******************  Bit definition for FMC_PCR register  *******************/
9279 #define FMC_PCR_PWAITEN_Pos                 (1U)
9280 #define FMC_PCR_PWAITEN_Msk                 (0x1UL << FMC_PCR_PWAITEN_Pos)          /*!< 0x00000002 */
9281 #define FMC_PCR_PWAITEN                     FMC_PCR_PWAITEN_Msk                     /*!<Wait feature enable bit                   */
9282 #define FMC_PCR_PBKEN_Pos                   (2U)
9283 #define FMC_PCR_PBKEN_Msk                   (0x1UL << FMC_PCR_PBKEN_Pos)            /*!< 0x00000004 */
9284 #define FMC_PCR_PBKEN                       FMC_PCR_PBKEN_Msk                       /*!<NAND Flash memory bank enable bit */
9285 #define FMC_PCR_PTYP_Pos                    (3U)
9286 #define FMC_PCR_PTYP_Msk                    (0x1UL << FMC_PCR_PTYP_Pos)             /*!< 0x00000008 */
9287 #define FMC_PCR_PTYP                        FMC_PCR_PTYP_Msk                        /*!<Memory type                               */
9288 #define FMC_PCR_PWID_Pos                    (4U)
9289 #define FMC_PCR_PWID_Msk                    (0x3UL << FMC_PCR_PWID_Pos)             /*!< 0x00000030 */
9290 #define FMC_PCR_PWID                        FMC_PCR_PWID_Msk                        /*!<PWID[1:0] bits (NAND Flash databus width) */
9291 #define FMC_PCR_PWID_0                      (0x1UL << FMC_PCR_PWID_Pos)             /*!< 0x00000010 */
9292 #define FMC_PCR_PWID_1                      (0x2UL << FMC_PCR_PWID_Pos)             /*!< 0x00000020 */
9293 #define FMC_PCR_ECCEN_Pos                   (6U)
9294 #define FMC_PCR_ECCEN_Msk                   (0x1UL << FMC_PCR_ECCEN_Pos)            /*!< 0x00000040 */
9295 #define FMC_PCR_ECCEN                       FMC_PCR_ECCEN_Msk                       /*!<ECC computation logic enable bit          */
9296 #define FMC_PCR_TCLR_Pos                    (9U)
9297 #define FMC_PCR_TCLR_Msk                    (0xFUL << FMC_PCR_TCLR_Pos)             /*!< 0x00001E00 */
9298 #define FMC_PCR_TCLR                        FMC_PCR_TCLR_Msk                        /*!<TCLR[3:0] bits (CLE to RE delay)          */
9299 #define FMC_PCR_TCLR_0                      (0x1UL << FMC_PCR_TCLR_Pos)             /*!< 0x00000200 */
9300 #define FMC_PCR_TCLR_1                      (0x2UL << FMC_PCR_TCLR_Pos)             /*!< 0x00000400 */
9301 #define FMC_PCR_TCLR_2                      (0x4UL << FMC_PCR_TCLR_Pos)             /*!< 0x00000800 */
9302 #define FMC_PCR_TCLR_3                      (0x8UL << FMC_PCR_TCLR_Pos)             /*!< 0x00001000 */
9303 #define FMC_PCR_TAR_Pos                     (13U)
9304 #define FMC_PCR_TAR_Msk                     (0xFUL << FMC_PCR_TAR_Pos)              /*!< 0x0001E000 */
9305 #define FMC_PCR_TAR                         FMC_PCR_TAR_Msk                         /*!<TAR[3:0] bits (ALE to RE delay)           */
9306 #define FMC_PCR_TAR_0                       (0x1UL << FMC_PCR_TAR_Pos)              /*!< 0x00002000 */
9307 #define FMC_PCR_TAR_1                       (0x2UL << FMC_PCR_TAR_Pos)              /*!< 0x00004000 */
9308 #define FMC_PCR_TAR_2                       (0x4UL << FMC_PCR_TAR_Pos)              /*!< 0x00008000 */
9309 #define FMC_PCR_TAR_3                       (0x8UL << FMC_PCR_TAR_Pos)              /*!< 0x00010000 */
9310 #define FMC_PCR_ECCPS_Pos                   (17U)
9311 #define FMC_PCR_ECCPS_Msk                   (0x7UL << FMC_PCR_ECCPS_Pos)            /*!< 0x000E0000 */
9312 #define FMC_PCR_ECCPS                       FMC_PCR_ECCPS_Msk                       /*!<ECCPS[1:0] bits (ECC page size)           */
9313 #define FMC_PCR_ECCPS_0                     (0x1UL << FMC_PCR_ECCPS_Pos)            /*!< 0x00020000 */
9314 #define FMC_PCR_ECCPS_1                     (0x2UL << FMC_PCR_ECCPS_Pos)            /*!< 0x00040000 */
9315 #define FMC_PCR_ECCPS_2                     (0x4UL << FMC_PCR_ECCPS_Pos)            /*!< 0x00080000 */
9316 
9317 /*******************  Bit definition for FMC_SR register  *******************/
9318 #define FMC_SR_IRS_Pos                      (0U)
9319 #define FMC_SR_IRS_Msk                      (0x1UL << FMC_SR_IRS_Pos)               /*!< 0x00000001 */
9320 #define FMC_SR_IRS                          FMC_SR_IRS_Msk                          /*!<Interrupt Rising Edge status                */
9321 #define FMC_SR_ILS_Pos                      (1U)
9322 #define FMC_SR_ILS_Msk                      (0x1UL << FMC_SR_ILS_Pos)               /*!< 0x00000002 */
9323 #define FMC_SR_ILS                          FMC_SR_ILS_Msk                          /*!<Interrupt Level status                      */
9324 #define FMC_SR_IFS_Pos                      (2U)
9325 #define FMC_SR_IFS_Msk                      (0x1UL << FMC_SR_IFS_Pos)               /*!< 0x00000004 */
9326 #define FMC_SR_IFS                          FMC_SR_IFS_Msk                          /*!<Interrupt Falling Edge status               */
9327 #define FMC_SR_IREN_Pos                     (3U)
9328 #define FMC_SR_IREN_Msk                     (0x1UL << FMC_SR_IREN_Pos)              /*!< 0x00000008 */
9329 #define FMC_SR_IREN                         FMC_SR_IREN_Msk                         /*!<Interrupt Rising Edge detection Enable bit  */
9330 #define FMC_SR_ILEN_Pos                     (4U)
9331 #define FMC_SR_ILEN_Msk                     (0x1UL << FMC_SR_ILEN_Pos)              /*!< 0x00000010 */
9332 #define FMC_SR_ILEN                         FMC_SR_ILEN_Msk                         /*!<Interrupt Level detection Enable bit        */
9333 #define FMC_SR_IFEN_Pos                     (5U)
9334 #define FMC_SR_IFEN_Msk                     (0x1UL << FMC_SR_IFEN_Pos)              /*!< 0x00000020 */
9335 #define FMC_SR_IFEN                         FMC_SR_IFEN_Msk                         /*!<Interrupt Falling Edge detection Enable bit */
9336 #define FMC_SR_FEMPT_Pos                    (6U)
9337 #define FMC_SR_FEMPT_Msk                    (0x1UL << FMC_SR_FEMPT_Pos)             /*!< 0x00000040 */
9338 #define FMC_SR_FEMPT                        FMC_SR_FEMPT_Msk                        /*!<FIFO empty                                  */
9339 
9340 /******************  Bit definition for FMC_PMEM register  ******************/
9341 #define FMC_PMEM_MEMSET_Pos                 (0U)
9342 #define FMC_PMEM_MEMSET_Msk                 (0xFFUL << FMC_PMEM_MEMSET_Pos)         /*!< 0x000000FF */
9343 #define FMC_PMEM_MEMSET                     FMC_PMEM_MEMSET_Msk                     /*!<MEMSET[7:0] bits (Common memory setup time) */
9344 #define FMC_PMEM_MEMSET_0                   (0x01UL << FMC_PMEM_MEMSET_Pos)         /*!< 0x00000001 */
9345 #define FMC_PMEM_MEMSET_1                   (0x02UL << FMC_PMEM_MEMSET_Pos)         /*!< 0x00000002 */
9346 #define FMC_PMEM_MEMSET_2                   (0x04UL << FMC_PMEM_MEMSET_Pos)         /*!< 0x00000004 */
9347 #define FMC_PMEM_MEMSET_3                   (0x08UL << FMC_PMEM_MEMSET_Pos)         /*!< 0x00000008 */
9348 #define FMC_PMEM_MEMSET_4                   (0x10UL << FMC_PMEM_MEMSET_Pos)         /*!< 0x00000010 */
9349 #define FMC_PMEM_MEMSET_5                   (0x20UL << FMC_PMEM_MEMSET_Pos)         /*!< 0x00000020 */
9350 #define FMC_PMEM_MEMSET_6                   (0x40UL << FMC_PMEM_MEMSET_Pos)         /*!< 0x00000040 */
9351 #define FMC_PMEM_MEMSET_7                   (0x80UL << FMC_PMEM_MEMSET_Pos)         /*!< 0x00000080 */
9352 #define FMC_PMEM_MEMWAIT_Pos                (8U)
9353 #define FMC_PMEM_MEMWAIT_Msk                (0xFFUL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x0000FF00 */
9354 #define FMC_PMEM_MEMWAIT                    FMC_PMEM_MEMWAIT_Msk                    /*!<MEMWAIT[7:0] bits (Common memory wait time) */
9355 #define FMC_PMEM_MEMWAIT_0                  (0x01UL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x00000100 */
9356 #define FMC_PMEM_MEMWAIT_1                  (0x02UL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x00000200 */
9357 #define FMC_PMEM_MEMWAIT_2                  (0x04UL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x00000400 */
9358 #define FMC_PMEM_MEMWAIT_3                  (0x08UL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x00000800 */
9359 #define FMC_PMEM_MEMWAIT_4                  (0x10UL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x00001000 */
9360 #define FMC_PMEM_MEMWAIT_5                  (0x20UL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x00002000 */
9361 #define FMC_PMEM_MEMWAIT_6                  (0x40UL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x00004000 */
9362 #define FMC_PMEM_MEMWAIT_7                  (0x80UL << FMC_PMEM_MEMWAIT_Pos)        /*!< 0x00008000 */
9363 #define FMC_PMEM_MEMHOLD_Pos                (16U)
9364 #define FMC_PMEM_MEMHOLD_Msk                (0xFFUL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00FF0000 */
9365 #define FMC_PMEM_MEMHOLD                    FMC_PMEM_MEMHOLD_Msk                    /*!<MEMHOLD[7:0] bits (Common memory hold time) */
9366 #define FMC_PMEM_MEMHOLD_0                  (0x01UL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00010000 */
9367 #define FMC_PMEM_MEMHOLD_1                  (0x02UL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00020000 */
9368 #define FMC_PMEM_MEMHOLD_2                  (0x04UL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00040000 */
9369 #define FMC_PMEM_MEMHOLD_3                  (0x08UL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00080000 */
9370 #define FMC_PMEM_MEMHOLD_4                  (0x10UL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00100000 */
9371 #define FMC_PMEM_MEMHOLD_5                  (0x20UL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00200000 */
9372 #define FMC_PMEM_MEMHOLD_6                  (0x40UL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00400000 */
9373 #define FMC_PMEM_MEMHOLD_7                  (0x80UL << FMC_PMEM_MEMHOLD_Pos)        /*!< 0x00800000 */
9374 #define FMC_PMEM_MEMHIZ_Pos                 (24U)
9375 #define FMC_PMEM_MEMHIZ_Msk                 (0xFFUL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0xFF000000 */
9376 #define FMC_PMEM_MEMHIZ                     FMC_PMEM_MEMHIZ_Msk                     /*!<MEMHIZ[7:0] bits (Common memory databus HiZ time) */
9377 #define FMC_PMEM_MEMHIZ_0                   (0x01UL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0x01000000 */
9378 #define FMC_PMEM_MEMHIZ_1                   (0x02UL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0x02000000 */
9379 #define FMC_PMEM_MEMHIZ_2                   (0x04UL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0x04000000 */
9380 #define FMC_PMEM_MEMHIZ_3                   (0x08UL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0x08000000 */
9381 #define FMC_PMEM_MEMHIZ_4                   (0x10UL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0x10000000 */
9382 #define FMC_PMEM_MEMHIZ_5                   (0x20UL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0x20000000 */
9383 #define FMC_PMEM_MEMHIZ_6                   (0x40UL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0x40000000 */
9384 #define FMC_PMEM_MEMHIZ_7                   (0x80UL << FMC_PMEM_MEMHIZ_Pos)         /*!< 0x80000000 */
9385 
9386 /******************  Bit definition for FMC_PATT register  ******************/
9387 #define FMC_PATT_ATTSET_Pos                 (0U)
9388 #define FMC_PATT_ATTSET_Msk                 (0xFFUL << FMC_PATT_ATTSET_Pos)         /*!< 0x000000FF */
9389 #define FMC_PATT_ATTSET                     FMC_PATT_ATTSET_Msk                     /*!<ATTSET[7:0] bits (Attribute memory setup time) */
9390 #define FMC_PATT_ATTSET_0                   (0x01UL << FMC_PATT_ATTSET_Pos)         /*!< 0x00000001 */
9391 #define FMC_PATT_ATTSET_1                   (0x02UL << FMC_PATT_ATTSET_Pos)         /*!< 0x00000002 */
9392 #define FMC_PATT_ATTSET_2                   (0x04UL << FMC_PATT_ATTSET_Pos)         /*!< 0x00000004 */
9393 #define FMC_PATT_ATTSET_3                   (0x08UL << FMC_PATT_ATTSET_Pos)         /*!< 0x00000008 */
9394 #define FMC_PATT_ATTSET_4                   (0x10UL << FMC_PATT_ATTSET_Pos)         /*!< 0x00000010 */
9395 #define FMC_PATT_ATTSET_5                   (0x20UL << FMC_PATT_ATTSET_Pos)         /*!< 0x00000020 */
9396 #define FMC_PATT_ATTSET_6                   (0x40UL << FMC_PATT_ATTSET_Pos)         /*!< 0x00000040 */
9397 #define FMC_PATT_ATTSET_7                   (0x80UL << FMC_PATT_ATTSET_Pos)         /*!< 0x00000080 */
9398 #define FMC_PATT_ATTWAIT_Pos                (8U)
9399 #define FMC_PATT_ATTWAIT_Msk                (0xFFUL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x0000FF00 */
9400 #define FMC_PATT_ATTWAIT                    FMC_PATT_ATTWAIT_Msk                    /*!<ATTWAIT[7:0] bits (Attribute memory wait time) */
9401 #define FMC_PATT_ATTWAIT_0                  (0x01UL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x00000100 */
9402 #define FMC_PATT_ATTWAIT_1                  (0x02UL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x00000200 */
9403 #define FMC_PATT_ATTWAIT_2                  (0x04UL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x00000400 */
9404 #define FMC_PATT_ATTWAIT_3                  (0x08UL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x00000800 */
9405 #define FMC_PATT_ATTWAIT_4                  (0x10UL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x00001000 */
9406 #define FMC_PATT_ATTWAIT_5                  (0x20UL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x00002000 */
9407 #define FMC_PATT_ATTWAIT_6                  (0x40UL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x00004000 */
9408 #define FMC_PATT_ATTWAIT_7                  (0x80UL << FMC_PATT_ATTWAIT_Pos)        /*!< 0x00008000 */
9409 #define FMC_PATT_ATTHOLD_Pos                (16U)
9410 #define FMC_PATT_ATTHOLD_Msk                (0xFFUL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00FF0000 */
9411 #define FMC_PATT_ATTHOLD                    FMC_PATT_ATTHOLD_Msk                    /*!<ATTHOLD[7:0] bits (Attribute memory hold time) */
9412 #define FMC_PATT_ATTHOLD_0                  (0x01UL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00010000 */
9413 #define FMC_PATT_ATTHOLD_1                  (0x02UL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00020000 */
9414 #define FMC_PATT_ATTHOLD_2                  (0x04UL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00040000 */
9415 #define FMC_PATT_ATTHOLD_3                  (0x08UL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00080000 */
9416 #define FMC_PATT_ATTHOLD_4                  (0x10UL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00100000 */
9417 #define FMC_PATT_ATTHOLD_5                  (0x20UL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00200000 */
9418 #define FMC_PATT_ATTHOLD_6                  (0x40UL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00400000 */
9419 #define FMC_PATT_ATTHOLD_7                  (0x80UL << FMC_PATT_ATTHOLD_Pos)        /*!< 0x00800000 */
9420 #define FMC_PATT_ATTHIZ_Pos                 (24U)
9421 #define FMC_PATT_ATTHIZ_Msk                 (0xFFUL << FMC_PATT_ATTHIZ_Pos)         /*!< 0xFF000000 */
9422 #define FMC_PATT_ATTHIZ                     FMC_PATT_ATTHIZ_Msk                     /*!<ATTHIZ[7:0] bits (Attribute memory databus HiZ time) */
9423 #define FMC_PATT_ATTHIZ_0                   (0x01UL << FMC_PATT_ATTHIZ_Pos)         /*!< 0x01000000 */
9424 #define FMC_PATT_ATTHIZ_1                   (0x02UL << FMC_PATT_ATTHIZ_Pos)         /*!< 0x02000000 */
9425 #define FMC_PATT_ATTHIZ_2                   (0x04UL << FMC_PATT_ATTHIZ_Pos)         /*!< 0x04000000 */
9426 #define FMC_PATT_ATTHIZ_3                   (0x08UL << FMC_PATT_ATTHIZ_Pos)         /*!< 0x08000000 */
9427 #define FMC_PATT_ATTHIZ_4                   (0x10UL << FMC_PATT_ATTHIZ_Pos)         /*!< 0x10000000 */
9428 #define FMC_PATT_ATTHIZ_5                   (0x20UL << FMC_PATT_ATTHIZ_Pos)         /*!< 0x20000000 */
9429 #define FMC_PATT_ATTHIZ_6                   (0x40UL << FMC_PATT_ATTHIZ_Pos)         /*!< 0x40000000 */
9430 #define FMC_PATT_ATTHIZ_7                   (0x80UL << FMC_PATT_ATTHIZ_Pos)         /*!< 0x80000000 */
9431 
9432 /******************  Bit definition for FMC_ECCR3 register  ******************/
9433 #define FMC_ECCR3_ECC3_Pos                  (0U)
9434 #define FMC_ECCR3_ECC3_Msk                  (0xFFFFFFFFUL << FMC_ECCR3_ECC3_Pos)    /*!< 0xFFFFFFFF */
9435 #define FMC_ECCR3_ECC3                      FMC_ECCR3_ECC3_Msk                      /*!<ECC result */
9436 
9437 /******************************************************************************/
9438 /*                                                                            */
9439 /*                       General Purpose IOs (GPIO)                           */
9440 /*                                                                            */
9441 /******************************************************************************/
9442 /******************  Bits definition for GPIO_MODER register  *****************/
9443 #define GPIO_MODER_MODE0_Pos                (0U)
9444 #define GPIO_MODER_MODE0_Msk                (0x3UL << GPIO_MODER_MODE0_Pos)         /*!< 0x00000003 */
9445 #define GPIO_MODER_MODE0                    GPIO_MODER_MODE0_Msk
9446 #define GPIO_MODER_MODE0_0                  (0x1UL << GPIO_MODER_MODE0_Pos)         /*!< 0x00000001 */
9447 #define GPIO_MODER_MODE0_1                  (0x2UL << GPIO_MODER_MODE0_Pos)         /*!< 0x00000002 */
9448 #define GPIO_MODER_MODE1_Pos                (2U)
9449 #define GPIO_MODER_MODE1_Msk                (0x3UL << GPIO_MODER_MODE1_Pos)         /*!< 0x0000000C */
9450 #define GPIO_MODER_MODE1                    GPIO_MODER_MODE1_Msk
9451 #define GPIO_MODER_MODE1_0                  (0x1UL << GPIO_MODER_MODE1_Pos)         /*!< 0x00000004 */
9452 #define GPIO_MODER_MODE1_1                  (0x2UL << GPIO_MODER_MODE1_Pos)         /*!< 0x00000008 */
9453 #define GPIO_MODER_MODE2_Pos                (4U)
9454 #define GPIO_MODER_MODE2_Msk                (0x3UL << GPIO_MODER_MODE2_Pos)         /*!< 0x00000030 */
9455 #define GPIO_MODER_MODE2                    GPIO_MODER_MODE2_Msk
9456 #define GPIO_MODER_MODE2_0                  (0x1UL << GPIO_MODER_MODE2_Pos)         /*!< 0x00000010 */
9457 #define GPIO_MODER_MODE2_1                  (0x2UL << GPIO_MODER_MODE2_Pos)         /*!< 0x00000020 */
9458 #define GPIO_MODER_MODE3_Pos                (6U)
9459 #define GPIO_MODER_MODE3_Msk                (0x3UL << GPIO_MODER_MODE3_Pos)         /*!< 0x000000C0 */
9460 #define GPIO_MODER_MODE3                    GPIO_MODER_MODE3_Msk
9461 #define GPIO_MODER_MODE3_0                  (0x1UL << GPIO_MODER_MODE3_Pos)         /*!< 0x00000040 */
9462 #define GPIO_MODER_MODE3_1                  (0x2UL << GPIO_MODER_MODE3_Pos)         /*!< 0x00000080 */
9463 #define GPIO_MODER_MODE4_Pos                (8U)
9464 #define GPIO_MODER_MODE4_Msk                (0x3UL << GPIO_MODER_MODE4_Pos)         /*!< 0x00000300 */
9465 #define GPIO_MODER_MODE4                    GPIO_MODER_MODE4_Msk
9466 #define GPIO_MODER_MODE4_0                  (0x1UL << GPIO_MODER_MODE4_Pos)         /*!< 0x00000100 */
9467 #define GPIO_MODER_MODE4_1                  (0x2UL << GPIO_MODER_MODE4_Pos)         /*!< 0x00000200 */
9468 #define GPIO_MODER_MODE5_Pos                (10U)
9469 #define GPIO_MODER_MODE5_Msk                (0x3UL << GPIO_MODER_MODE5_Pos)         /*!< 0x00000C00 */
9470 #define GPIO_MODER_MODE5                    GPIO_MODER_MODE5_Msk
9471 #define GPIO_MODER_MODE5_0                  (0x1UL << GPIO_MODER_MODE5_Pos)         /*!< 0x00000400 */
9472 #define GPIO_MODER_MODE5_1                  (0x2UL << GPIO_MODER_MODE5_Pos)         /*!< 0x00000800 */
9473 #define GPIO_MODER_MODE6_Pos                (12U)
9474 #define GPIO_MODER_MODE6_Msk                (0x3UL << GPIO_MODER_MODE6_Pos)         /*!< 0x00003000 */
9475 #define GPIO_MODER_MODE6                    GPIO_MODER_MODE6_Msk
9476 #define GPIO_MODER_MODE6_0                  (0x1UL << GPIO_MODER_MODE6_Pos)         /*!< 0x00001000 */
9477 #define GPIO_MODER_MODE6_1                  (0x2UL << GPIO_MODER_MODE6_Pos)         /*!< 0x00002000 */
9478 #define GPIO_MODER_MODE7_Pos                (14U)
9479 #define GPIO_MODER_MODE7_Msk                (0x3UL << GPIO_MODER_MODE7_Pos)         /*!< 0x0000C000 */
9480 #define GPIO_MODER_MODE7                    GPIO_MODER_MODE7_Msk
9481 #define GPIO_MODER_MODE7_0                  (0x1UL << GPIO_MODER_MODE7_Pos)         /*!< 0x00004000 */
9482 #define GPIO_MODER_MODE7_1                  (0x2UL << GPIO_MODER_MODE7_Pos)         /*!< 0x00008000 */
9483 #define GPIO_MODER_MODE8_Pos                (16U)
9484 #define GPIO_MODER_MODE8_Msk                (0x3UL << GPIO_MODER_MODE8_Pos)         /*!< 0x00030000 */
9485 #define GPIO_MODER_MODE8                    GPIO_MODER_MODE8_Msk
9486 #define GPIO_MODER_MODE8_0                  (0x1UL << GPIO_MODER_MODE8_Pos)         /*!< 0x00010000 */
9487 #define GPIO_MODER_MODE8_1                  (0x2UL << GPIO_MODER_MODE8_Pos)         /*!< 0x00020000 */
9488 #define GPIO_MODER_MODE9_Pos                (18U)
9489 #define GPIO_MODER_MODE9_Msk                (0x3UL << GPIO_MODER_MODE9_Pos)         /*!< 0x000C0000 */
9490 #define GPIO_MODER_MODE9                    GPIO_MODER_MODE9_Msk
9491 #define GPIO_MODER_MODE9_0                  (0x1UL << GPIO_MODER_MODE9_Pos)         /*!< 0x00040000 */
9492 #define GPIO_MODER_MODE9_1                  (0x2UL << GPIO_MODER_MODE9_Pos)         /*!< 0x00080000 */
9493 #define GPIO_MODER_MODE10_Pos               (20U)
9494 #define GPIO_MODER_MODE10_Msk               (0x3UL << GPIO_MODER_MODE10_Pos)        /*!< 0x00300000 */
9495 #define GPIO_MODER_MODE10                   GPIO_MODER_MODE10_Msk
9496 #define GPIO_MODER_MODE10_0                 (0x1UL << GPIO_MODER_MODE10_Pos)        /*!< 0x00100000 */
9497 #define GPIO_MODER_MODE10_1                 (0x2UL << GPIO_MODER_MODE10_Pos)        /*!< 0x00200000 */
9498 #define GPIO_MODER_MODE11_Pos               (22U)
9499 #define GPIO_MODER_MODE11_Msk               (0x3UL << GPIO_MODER_MODE11_Pos)        /*!< 0x00C00000 */
9500 #define GPIO_MODER_MODE11                   GPIO_MODER_MODE11_Msk
9501 #define GPIO_MODER_MODE11_0                 (0x1UL << GPIO_MODER_MODE11_Pos)        /*!< 0x00400000 */
9502 #define GPIO_MODER_MODE11_1                 (0x2UL << GPIO_MODER_MODE11_Pos)        /*!< 0x00800000 */
9503 #define GPIO_MODER_MODE12_Pos               (24U)
9504 #define GPIO_MODER_MODE12_Msk               (0x3UL << GPIO_MODER_MODE12_Pos)        /*!< 0x03000000 */
9505 #define GPIO_MODER_MODE12                   GPIO_MODER_MODE12_Msk
9506 #define GPIO_MODER_MODE12_0                 (0x1UL << GPIO_MODER_MODE12_Pos)        /*!< 0x01000000 */
9507 #define GPIO_MODER_MODE12_1                 (0x2UL << GPIO_MODER_MODE12_Pos)        /*!< 0x02000000 */
9508 #define GPIO_MODER_MODE13_Pos               (26U)
9509 #define GPIO_MODER_MODE13_Msk               (0x3UL << GPIO_MODER_MODE13_Pos)        /*!< 0x0C000000 */
9510 #define GPIO_MODER_MODE13                   GPIO_MODER_MODE13_Msk
9511 #define GPIO_MODER_MODE13_0                 (0x1UL << GPIO_MODER_MODE13_Pos)        /*!< 0x04000000 */
9512 #define GPIO_MODER_MODE13_1                 (0x2UL << GPIO_MODER_MODE13_Pos)        /*!< 0x08000000 */
9513 #define GPIO_MODER_MODE14_Pos               (28U)
9514 #define GPIO_MODER_MODE14_Msk               (0x3UL << GPIO_MODER_MODE14_Pos)        /*!< 0x30000000 */
9515 #define GPIO_MODER_MODE14                   GPIO_MODER_MODE14_Msk
9516 #define GPIO_MODER_MODE14_0                 (0x1UL << GPIO_MODER_MODE14_Pos)        /*!< 0x10000000 */
9517 #define GPIO_MODER_MODE14_1                 (0x2UL << GPIO_MODER_MODE14_Pos)        /*!< 0x20000000 */
9518 #define GPIO_MODER_MODE15_Pos               (30U)
9519 #define GPIO_MODER_MODE15_Msk               (0x3UL << GPIO_MODER_MODE15_Pos)        /*!< 0xC0000000 */
9520 #define GPIO_MODER_MODE15                   GPIO_MODER_MODE15_Msk
9521 #define GPIO_MODER_MODE15_0                 (0x1UL << GPIO_MODER_MODE15_Pos)        /*!< 0x40000000 */
9522 #define GPIO_MODER_MODE15_1                 (0x2UL << GPIO_MODER_MODE15_Pos)        /*!< 0x80000000 */
9523 
9524 /******************  Bits definition for GPIO_OTYPER register  ****************/
9525 #define GPIO_OTYPER_OT0_Pos                 (0U)
9526 #define GPIO_OTYPER_OT0_Msk                 (0x1UL << GPIO_OTYPER_OT0_Pos)          /*!< 0x00000001 */
9527 #define GPIO_OTYPER_OT0                     GPIO_OTYPER_OT0_Msk
9528 #define GPIO_OTYPER_OT1_Pos                 (1U)
9529 #define GPIO_OTYPER_OT1_Msk                 (0x1UL << GPIO_OTYPER_OT1_Pos)          /*!< 0x00000002 */
9530 #define GPIO_OTYPER_OT1                     GPIO_OTYPER_OT1_Msk
9531 #define GPIO_OTYPER_OT2_Pos                 (2U)
9532 #define GPIO_OTYPER_OT2_Msk                 (0x1UL << GPIO_OTYPER_OT2_Pos)          /*!< 0x00000004 */
9533 #define GPIO_OTYPER_OT2                     GPIO_OTYPER_OT2_Msk
9534 #define GPIO_OTYPER_OT3_Pos                 (3U)
9535 #define GPIO_OTYPER_OT3_Msk                 (0x1UL << GPIO_OTYPER_OT3_Pos)          /*!< 0x00000008 */
9536 #define GPIO_OTYPER_OT3                     GPIO_OTYPER_OT3_Msk
9537 #define GPIO_OTYPER_OT4_Pos                 (4U)
9538 #define GPIO_OTYPER_OT4_Msk                 (0x1UL << GPIO_OTYPER_OT4_Pos)          /*!< 0x00000010 */
9539 #define GPIO_OTYPER_OT4                     GPIO_OTYPER_OT4_Msk
9540 #define GPIO_OTYPER_OT5_Pos                 (5U)
9541 #define GPIO_OTYPER_OT5_Msk                 (0x1UL << GPIO_OTYPER_OT5_Pos)          /*!< 0x00000020 */
9542 #define GPIO_OTYPER_OT5                     GPIO_OTYPER_OT5_Msk
9543 #define GPIO_OTYPER_OT6_Pos                 (6U)
9544 #define GPIO_OTYPER_OT6_Msk                 (0x1UL << GPIO_OTYPER_OT6_Pos)          /*!< 0x00000040 */
9545 #define GPIO_OTYPER_OT6                     GPIO_OTYPER_OT6_Msk
9546 #define GPIO_OTYPER_OT7_Pos                 (7U)
9547 #define GPIO_OTYPER_OT7_Msk                 (0x1UL << GPIO_OTYPER_OT7_Pos)          /*!< 0x00000080 */
9548 #define GPIO_OTYPER_OT7                     GPIO_OTYPER_OT7_Msk
9549 #define GPIO_OTYPER_OT8_Pos                 (8U)
9550 #define GPIO_OTYPER_OT8_Msk                 (0x1UL << GPIO_OTYPER_OT8_Pos)          /*!< 0x00000100 */
9551 #define GPIO_OTYPER_OT8                     GPIO_OTYPER_OT8_Msk
9552 #define GPIO_OTYPER_OT9_Pos                 (9U)
9553 #define GPIO_OTYPER_OT9_Msk                 (0x1UL << GPIO_OTYPER_OT9_Pos)          /*!< 0x00000200 */
9554 #define GPIO_OTYPER_OT9                     GPIO_OTYPER_OT9_Msk
9555 #define GPIO_OTYPER_OT10_Pos                (10U)
9556 #define GPIO_OTYPER_OT10_Msk                (0x1UL << GPIO_OTYPER_OT10_Pos)         /*!< 0x00000400 */
9557 #define GPIO_OTYPER_OT10                    GPIO_OTYPER_OT10_Msk
9558 #define GPIO_OTYPER_OT11_Pos                (11U)
9559 #define GPIO_OTYPER_OT11_Msk                (0x1UL << GPIO_OTYPER_OT11_Pos)         /*!< 0x00000800 */
9560 #define GPIO_OTYPER_OT11                    GPIO_OTYPER_OT11_Msk
9561 #define GPIO_OTYPER_OT12_Pos                (12U)
9562 #define GPIO_OTYPER_OT12_Msk                (0x1UL << GPIO_OTYPER_OT12_Pos)         /*!< 0x00001000 */
9563 #define GPIO_OTYPER_OT12                    GPIO_OTYPER_OT12_Msk
9564 #define GPIO_OTYPER_OT13_Pos                (13U)
9565 #define GPIO_OTYPER_OT13_Msk                (0x1UL << GPIO_OTYPER_OT13_Pos)         /*!< 0x00002000 */
9566 #define GPIO_OTYPER_OT13                    GPIO_OTYPER_OT13_Msk
9567 #define GPIO_OTYPER_OT14_Pos                (14U)
9568 #define GPIO_OTYPER_OT14_Msk                (0x1UL << GPIO_OTYPER_OT14_Pos)         /*!< 0x00004000 */
9569 #define GPIO_OTYPER_OT14                    GPIO_OTYPER_OT14_Msk
9570 #define GPIO_OTYPER_OT15_Pos                (15U)
9571 #define GPIO_OTYPER_OT15_Msk                (0x1UL << GPIO_OTYPER_OT15_Pos)         /*!< 0x00008000 */
9572 #define GPIO_OTYPER_OT15                    GPIO_OTYPER_OT15_Msk
9573 
9574 /******************  Bits definition for GPIO_OSPEEDR register  ***************/
9575 #define GPIO_OSPEEDR_OSPEED0_Pos            (0U)
9576 #define GPIO_OSPEEDR_OSPEED0_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED0_Pos)     /*!< 0x00000003 */
9577 #define GPIO_OSPEEDR_OSPEED0                GPIO_OSPEEDR_OSPEED0_Msk
9578 #define GPIO_OSPEEDR_OSPEED0_0              (0x1UL << GPIO_OSPEEDR_OSPEED0_Pos)     /*!< 0x00000001 */
9579 #define GPIO_OSPEEDR_OSPEED0_1              (0x2UL << GPIO_OSPEEDR_OSPEED0_Pos)     /*!< 0x00000002 */
9580 #define GPIO_OSPEEDR_OSPEED1_Pos            (2U)
9581 #define GPIO_OSPEEDR_OSPEED1_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED1_Pos)     /*!< 0x0000000C */
9582 #define GPIO_OSPEEDR_OSPEED1                GPIO_OSPEEDR_OSPEED1_Msk
9583 #define GPIO_OSPEEDR_OSPEED1_0              (0x1UL << GPIO_OSPEEDR_OSPEED1_Pos)     /*!< 0x00000004 */
9584 #define GPIO_OSPEEDR_OSPEED1_1              (0x2UL << GPIO_OSPEEDR_OSPEED1_Pos)     /*!< 0x00000008 */
9585 #define GPIO_OSPEEDR_OSPEED2_Pos            (4U)
9586 #define GPIO_OSPEEDR_OSPEED2_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED2_Pos)     /*!< 0x00000030 */
9587 #define GPIO_OSPEEDR_OSPEED2                GPIO_OSPEEDR_OSPEED2_Msk
9588 #define GPIO_OSPEEDR_OSPEED2_0              (0x1UL << GPIO_OSPEEDR_OSPEED2_Pos)     /*!< 0x00000010 */
9589 #define GPIO_OSPEEDR_OSPEED2_1              (0x2UL << GPIO_OSPEEDR_OSPEED2_Pos)     /*!< 0x00000020 */
9590 #define GPIO_OSPEEDR_OSPEED3_Pos            (6U)
9591 #define GPIO_OSPEEDR_OSPEED3_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED3_Pos)     /*!< 0x000000C0 */
9592 #define GPIO_OSPEEDR_OSPEED3                GPIO_OSPEEDR_OSPEED3_Msk
9593 #define GPIO_OSPEEDR_OSPEED3_0              (0x1UL << GPIO_OSPEEDR_OSPEED3_Pos)     /*!< 0x00000040 */
9594 #define GPIO_OSPEEDR_OSPEED3_1              (0x2UL << GPIO_OSPEEDR_OSPEED3_Pos)     /*!< 0x00000080 */
9595 #define GPIO_OSPEEDR_OSPEED4_Pos            (8U)
9596 #define GPIO_OSPEEDR_OSPEED4_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED4_Pos)     /*!< 0x00000300 */
9597 #define GPIO_OSPEEDR_OSPEED4                GPIO_OSPEEDR_OSPEED4_Msk
9598 #define GPIO_OSPEEDR_OSPEED4_0              (0x1UL << GPIO_OSPEEDR_OSPEED4_Pos)     /*!< 0x00000100 */
9599 #define GPIO_OSPEEDR_OSPEED4_1              (0x2UL << GPIO_OSPEEDR_OSPEED4_Pos)     /*!< 0x00000200 */
9600 #define GPIO_OSPEEDR_OSPEED5_Pos            (10U)
9601 #define GPIO_OSPEEDR_OSPEED5_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED5_Pos)     /*!< 0x00000C00 */
9602 #define GPIO_OSPEEDR_OSPEED5                GPIO_OSPEEDR_OSPEED5_Msk
9603 #define GPIO_OSPEEDR_OSPEED5_0              (0x1UL << GPIO_OSPEEDR_OSPEED5_Pos)     /*!< 0x00000400 */
9604 #define GPIO_OSPEEDR_OSPEED5_1              (0x2UL << GPIO_OSPEEDR_OSPEED5_Pos)     /*!< 0x00000800 */
9605 #define GPIO_OSPEEDR_OSPEED6_Pos            (12U)
9606 #define GPIO_OSPEEDR_OSPEED6_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED6_Pos)     /*!< 0x00003000 */
9607 #define GPIO_OSPEEDR_OSPEED6                GPIO_OSPEEDR_OSPEED6_Msk
9608 #define GPIO_OSPEEDR_OSPEED6_0              (0x1UL << GPIO_OSPEEDR_OSPEED6_Pos)     /*!< 0x00001000 */
9609 #define GPIO_OSPEEDR_OSPEED6_1              (0x2UL << GPIO_OSPEEDR_OSPEED6_Pos)     /*!< 0x00002000 */
9610 #define GPIO_OSPEEDR_OSPEED7_Pos            (14U)
9611 #define GPIO_OSPEEDR_OSPEED7_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED7_Pos)     /*!< 0x0000C000 */
9612 #define GPIO_OSPEEDR_OSPEED7                GPIO_OSPEEDR_OSPEED7_Msk
9613 #define GPIO_OSPEEDR_OSPEED7_0              (0x1UL << GPIO_OSPEEDR_OSPEED7_Pos)     /*!< 0x00004000 */
9614 #define GPIO_OSPEEDR_OSPEED7_1              (0x2UL << GPIO_OSPEEDR_OSPEED7_Pos)     /*!< 0x00008000 */
9615 #define GPIO_OSPEEDR_OSPEED8_Pos            (16U)
9616 #define GPIO_OSPEEDR_OSPEED8_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED8_Pos)     /*!< 0x00030000 */
9617 #define GPIO_OSPEEDR_OSPEED8                GPIO_OSPEEDR_OSPEED8_Msk
9618 #define GPIO_OSPEEDR_OSPEED8_0              (0x1UL << GPIO_OSPEEDR_OSPEED8_Pos)     /*!< 0x00010000 */
9619 #define GPIO_OSPEEDR_OSPEED8_1              (0x2UL << GPIO_OSPEEDR_OSPEED8_Pos)     /*!< 0x00020000 */
9620 #define GPIO_OSPEEDR_OSPEED9_Pos            (18U)
9621 #define GPIO_OSPEEDR_OSPEED9_Msk            (0x3UL << GPIO_OSPEEDR_OSPEED9_Pos)     /*!< 0x000C0000 */
9622 #define GPIO_OSPEEDR_OSPEED9                GPIO_OSPEEDR_OSPEED9_Msk
9623 #define GPIO_OSPEEDR_OSPEED9_0              (0x1UL << GPIO_OSPEEDR_OSPEED9_Pos)     /*!< 0x00040000 */
9624 #define GPIO_OSPEEDR_OSPEED9_1              (0x2UL << GPIO_OSPEEDR_OSPEED9_Pos)     /*!< 0x00080000 */
9625 #define GPIO_OSPEEDR_OSPEED10_Pos           (20U)
9626 #define GPIO_OSPEEDR_OSPEED10_Msk           (0x3UL << GPIO_OSPEEDR_OSPEED10_Pos)    /*!< 0x00300000 */
9627 #define GPIO_OSPEEDR_OSPEED10               GPIO_OSPEEDR_OSPEED10_Msk
9628 #define GPIO_OSPEEDR_OSPEED10_0             (0x1UL << GPIO_OSPEEDR_OSPEED10_Pos)    /*!< 0x00100000 */
9629 #define GPIO_OSPEEDR_OSPEED10_1             (0x2UL << GPIO_OSPEEDR_OSPEED10_Pos)    /*!< 0x00200000 */
9630 #define GPIO_OSPEEDR_OSPEED11_Pos           (22U)
9631 #define GPIO_OSPEEDR_OSPEED11_Msk           (0x3UL << GPIO_OSPEEDR_OSPEED11_Pos)    /*!< 0x00C00000 */
9632 #define GPIO_OSPEEDR_OSPEED11               GPIO_OSPEEDR_OSPEED11_Msk
9633 #define GPIO_OSPEEDR_OSPEED11_0             (0x1UL << GPIO_OSPEEDR_OSPEED11_Pos)    /*!< 0x00400000 */
9634 #define GPIO_OSPEEDR_OSPEED11_1             (0x2UL << GPIO_OSPEEDR_OSPEED11_Pos)    /*!< 0x00800000 */
9635 #define GPIO_OSPEEDR_OSPEED12_Pos           (24U)
9636 #define GPIO_OSPEEDR_OSPEED12_Msk           (0x3UL << GPIO_OSPEEDR_OSPEED12_Pos)    /*!< 0x03000000 */
9637 #define GPIO_OSPEEDR_OSPEED12               GPIO_OSPEEDR_OSPEED12_Msk
9638 #define GPIO_OSPEEDR_OSPEED12_0             (0x1UL << GPIO_OSPEEDR_OSPEED12_Pos)    /*!< 0x01000000 */
9639 #define GPIO_OSPEEDR_OSPEED12_1             (0x2UL << GPIO_OSPEEDR_OSPEED12_Pos)    /*!< 0x02000000 */
9640 #define GPIO_OSPEEDR_OSPEED13_Pos           (26U)
9641 #define GPIO_OSPEEDR_OSPEED13_Msk           (0x3UL << GPIO_OSPEEDR_OSPEED13_Pos)    /*!< 0x0C000000 */
9642 #define GPIO_OSPEEDR_OSPEED13               GPIO_OSPEEDR_OSPEED13_Msk
9643 #define GPIO_OSPEEDR_OSPEED13_0             (0x1UL << GPIO_OSPEEDR_OSPEED13_Pos)    /*!< 0x04000000 */
9644 #define GPIO_OSPEEDR_OSPEED13_1             (0x2UL << GPIO_OSPEEDR_OSPEED13_Pos)    /*!< 0x08000000 */
9645 #define GPIO_OSPEEDR_OSPEED14_Pos           (28U)
9646 #define GPIO_OSPEEDR_OSPEED14_Msk           (0x3UL << GPIO_OSPEEDR_OSPEED14_Pos)    /*!< 0x30000000 */
9647 #define GPIO_OSPEEDR_OSPEED14               GPIO_OSPEEDR_OSPEED14_Msk
9648 #define GPIO_OSPEEDR_OSPEED14_0             (0x1UL << GPIO_OSPEEDR_OSPEED14_Pos)    /*!< 0x10000000 */
9649 #define GPIO_OSPEEDR_OSPEED14_1             (0x2UL << GPIO_OSPEEDR_OSPEED14_Pos)    /*!< 0x20000000 */
9650 #define GPIO_OSPEEDR_OSPEED15_Pos           (30U)
9651 #define GPIO_OSPEEDR_OSPEED15_Msk           (0x3UL << GPIO_OSPEEDR_OSPEED15_Pos)    /*!< 0xC0000000 */
9652 #define GPIO_OSPEEDR_OSPEED15               GPIO_OSPEEDR_OSPEED15_Msk
9653 #define GPIO_OSPEEDR_OSPEED15_0             (0x1UL << GPIO_OSPEEDR_OSPEED15_Pos)    /*!< 0x40000000 */
9654 #define GPIO_OSPEEDR_OSPEED15_1             (0x2UL << GPIO_OSPEEDR_OSPEED15_Pos)    /*!< 0x80000000 */
9655 
9656 /******************  Bits definition for GPIO_PUPDR register  *****************/
9657 #define GPIO_PUPDR_PUPD0_Pos                (0U)
9658 #define GPIO_PUPDR_PUPD0_Msk                (0x3UL << GPIO_PUPDR_PUPD0_Pos)         /*!< 0x00000003 */
9659 #define GPIO_PUPDR_PUPD0                    GPIO_PUPDR_PUPD0_Msk
9660 #define GPIO_PUPDR_PUPD0_0                  (0x1UL << GPIO_PUPDR_PUPD0_Pos)         /*!< 0x00000001 */
9661 #define GPIO_PUPDR_PUPD0_1                  (0x2UL << GPIO_PUPDR_PUPD0_Pos)         /*!< 0x00000002 */
9662 #define GPIO_PUPDR_PUPD1_Pos                (2U)
9663 #define GPIO_PUPDR_PUPD1_Msk                (0x3UL << GPIO_PUPDR_PUPD1_Pos)         /*!< 0x0000000C */
9664 #define GPIO_PUPDR_PUPD1                    GPIO_PUPDR_PUPD1_Msk
9665 #define GPIO_PUPDR_PUPD1_0                  (0x1UL << GPIO_PUPDR_PUPD1_Pos)         /*!< 0x00000004 */
9666 #define GPIO_PUPDR_PUPD1_1                  (0x2UL << GPIO_PUPDR_PUPD1_Pos)         /*!< 0x00000008 */
9667 #define GPIO_PUPDR_PUPD2_Pos                (4U)
9668 #define GPIO_PUPDR_PUPD2_Msk                (0x3UL << GPIO_PUPDR_PUPD2_Pos)         /*!< 0x00000030 */
9669 #define GPIO_PUPDR_PUPD2                    GPIO_PUPDR_PUPD2_Msk
9670 #define GPIO_PUPDR_PUPD2_0                  (0x1UL << GPIO_PUPDR_PUPD2_Pos)         /*!< 0x00000010 */
9671 #define GPIO_PUPDR_PUPD2_1                  (0x2UL << GPIO_PUPDR_PUPD2_Pos)         /*!< 0x00000020 */
9672 #define GPIO_PUPDR_PUPD3_Pos                (6U)
9673 #define GPIO_PUPDR_PUPD3_Msk                (0x3UL << GPIO_PUPDR_PUPD3_Pos)         /*!< 0x000000C0 */
9674 #define GPIO_PUPDR_PUPD3                    GPIO_PUPDR_PUPD3_Msk
9675 #define GPIO_PUPDR_PUPD3_0                  (0x1UL << GPIO_PUPDR_PUPD3_Pos)         /*!< 0x00000040 */
9676 #define GPIO_PUPDR_PUPD3_1                  (0x2UL << GPIO_PUPDR_PUPD3_Pos)         /*!< 0x00000080 */
9677 #define GPIO_PUPDR_PUPD4_Pos                (8U)
9678 #define GPIO_PUPDR_PUPD4_Msk                (0x3UL << GPIO_PUPDR_PUPD4_Pos)         /*!< 0x00000300 */
9679 #define GPIO_PUPDR_PUPD4                    GPIO_PUPDR_PUPD4_Msk
9680 #define GPIO_PUPDR_PUPD4_0                  (0x1UL << GPIO_PUPDR_PUPD4_Pos)         /*!< 0x00000100 */
9681 #define GPIO_PUPDR_PUPD4_1                  (0x2UL << GPIO_PUPDR_PUPD4_Pos)         /*!< 0x00000200 */
9682 #define GPIO_PUPDR_PUPD5_Pos                (10U)
9683 #define GPIO_PUPDR_PUPD5_Msk                (0x3UL << GPIO_PUPDR_PUPD5_Pos)         /*!< 0x00000C00 */
9684 #define GPIO_PUPDR_PUPD5                    GPIO_PUPDR_PUPD5_Msk
9685 #define GPIO_PUPDR_PUPD5_0                  (0x1UL << GPIO_PUPDR_PUPD5_Pos)         /*!< 0x00000400 */
9686 #define GPIO_PUPDR_PUPD5_1                  (0x2UL << GPIO_PUPDR_PUPD5_Pos)         /*!< 0x00000800 */
9687 #define GPIO_PUPDR_PUPD6_Pos                (12U)
9688 #define GPIO_PUPDR_PUPD6_Msk                (0x3UL << GPIO_PUPDR_PUPD6_Pos)         /*!< 0x00003000 */
9689 #define GPIO_PUPDR_PUPD6                    GPIO_PUPDR_PUPD6_Msk
9690 #define GPIO_PUPDR_PUPD6_0                  (0x1UL << GPIO_PUPDR_PUPD6_Pos)         /*!< 0x00001000 */
9691 #define GPIO_PUPDR_PUPD6_1                  (0x2UL << GPIO_PUPDR_PUPD6_Pos)         /*!< 0x00002000 */
9692 #define GPIO_PUPDR_PUPD7_Pos                (14U)
9693 #define GPIO_PUPDR_PUPD7_Msk                (0x3UL << GPIO_PUPDR_PUPD7_Pos)         /*!< 0x0000C000 */
9694 #define GPIO_PUPDR_PUPD7                    GPIO_PUPDR_PUPD7_Msk
9695 #define GPIO_PUPDR_PUPD7_0                  (0x1UL << GPIO_PUPDR_PUPD7_Pos)         /*!< 0x00004000 */
9696 #define GPIO_PUPDR_PUPD7_1                  (0x2UL << GPIO_PUPDR_PUPD7_Pos)         /*!< 0x00008000 */
9697 #define GPIO_PUPDR_PUPD8_Pos                (16U)
9698 #define GPIO_PUPDR_PUPD8_Msk                (0x3UL << GPIO_PUPDR_PUPD8_Pos)         /*!< 0x00030000 */
9699 #define GPIO_PUPDR_PUPD8                    GPIO_PUPDR_PUPD8_Msk
9700 #define GPIO_PUPDR_PUPD8_0                  (0x1UL << GPIO_PUPDR_PUPD8_Pos)         /*!< 0x00010000 */
9701 #define GPIO_PUPDR_PUPD8_1                  (0x2UL << GPIO_PUPDR_PUPD8_Pos)         /*!< 0x00020000 */
9702 #define GPIO_PUPDR_PUPD9_Pos                (18U)
9703 #define GPIO_PUPDR_PUPD9_Msk                (0x3UL << GPIO_PUPDR_PUPD9_Pos)         /*!< 0x000C0000 */
9704 #define GPIO_PUPDR_PUPD9                    GPIO_PUPDR_PUPD9_Msk
9705 #define GPIO_PUPDR_PUPD9_0                  (0x1UL << GPIO_PUPDR_PUPD9_Pos)         /*!< 0x00040000 */
9706 #define GPIO_PUPDR_PUPD9_1                  (0x2UL << GPIO_PUPDR_PUPD9_Pos)         /*!< 0x00080000 */
9707 #define GPIO_PUPDR_PUPD10_Pos               (20U)
9708 #define GPIO_PUPDR_PUPD10_Msk               (0x3UL << GPIO_PUPDR_PUPD10_Pos)        /*!< 0x00300000 */
9709 #define GPIO_PUPDR_PUPD10                   GPIO_PUPDR_PUPD10_Msk
9710 #define GPIO_PUPDR_PUPD10_0                 (0x1UL << GPIO_PUPDR_PUPD10_Pos)        /*!< 0x00100000 */
9711 #define GPIO_PUPDR_PUPD10_1                 (0x2UL << GPIO_PUPDR_PUPD10_Pos)        /*!< 0x00200000 */
9712 #define GPIO_PUPDR_PUPD11_Pos               (22U)
9713 #define GPIO_PUPDR_PUPD11_Msk               (0x3UL << GPIO_PUPDR_PUPD11_Pos)        /*!< 0x00C00000 */
9714 #define GPIO_PUPDR_PUPD11                   GPIO_PUPDR_PUPD11_Msk
9715 #define GPIO_PUPDR_PUPD11_0                 (0x1UL << GPIO_PUPDR_PUPD11_Pos)        /*!< 0x00400000 */
9716 #define GPIO_PUPDR_PUPD11_1                 (0x2UL << GPIO_PUPDR_PUPD11_Pos)        /*!< 0x00800000 */
9717 #define GPIO_PUPDR_PUPD12_Pos               (24U)
9718 #define GPIO_PUPDR_PUPD12_Msk               (0x3UL << GPIO_PUPDR_PUPD12_Pos)        /*!< 0x03000000 */
9719 #define GPIO_PUPDR_PUPD12                   GPIO_PUPDR_PUPD12_Msk
9720 #define GPIO_PUPDR_PUPD12_0                 (0x1UL << GPIO_PUPDR_PUPD12_Pos)        /*!< 0x01000000 */
9721 #define GPIO_PUPDR_PUPD12_1                 (0x2UL << GPIO_PUPDR_PUPD12_Pos)        /*!< 0x02000000 */
9722 #define GPIO_PUPDR_PUPD13_Pos               (26U)
9723 #define GPIO_PUPDR_PUPD13_Msk               (0x3UL << GPIO_PUPDR_PUPD13_Pos)        /*!< 0x0C000000 */
9724 #define GPIO_PUPDR_PUPD13                   GPIO_PUPDR_PUPD13_Msk
9725 #define GPIO_PUPDR_PUPD13_0                 (0x1UL << GPIO_PUPDR_PUPD13_Pos)        /*!< 0x04000000 */
9726 #define GPIO_PUPDR_PUPD13_1                 (0x2UL << GPIO_PUPDR_PUPD13_Pos)        /*!< 0x08000000 */
9727 #define GPIO_PUPDR_PUPD14_Pos               (28U)
9728 #define GPIO_PUPDR_PUPD14_Msk               (0x3UL << GPIO_PUPDR_PUPD14_Pos)        /*!< 0x30000000 */
9729 #define GPIO_PUPDR_PUPD14                   GPIO_PUPDR_PUPD14_Msk
9730 #define GPIO_PUPDR_PUPD14_0                 (0x1UL << GPIO_PUPDR_PUPD14_Pos)        /*!< 0x10000000 */
9731 #define GPIO_PUPDR_PUPD14_1                 (0x2UL << GPIO_PUPDR_PUPD14_Pos)        /*!< 0x20000000 */
9732 #define GPIO_PUPDR_PUPD15_Pos               (30U)
9733 #define GPIO_PUPDR_PUPD15_Msk               (0x3UL << GPIO_PUPDR_PUPD15_Pos)        /*!< 0xC0000000 */
9734 #define GPIO_PUPDR_PUPD15                   GPIO_PUPDR_PUPD15_Msk
9735 #define GPIO_PUPDR_PUPD15_0                 (0x1UL << GPIO_PUPDR_PUPD15_Pos)        /*!< 0x40000000 */
9736 #define GPIO_PUPDR_PUPD15_1                 (0x2UL << GPIO_PUPDR_PUPD15_Pos)        /*!< 0x80000000 */
9737 
9738 /******************  Bits definition for GPIO_IDR register  *******************/
9739 #define GPIO_IDR_ID0_Pos                    (0U)
9740 #define GPIO_IDR_ID0_Msk                    (0x1UL << GPIO_IDR_ID0_Pos)             /*!< 0x00000001 */
9741 #define GPIO_IDR_ID0                        GPIO_IDR_ID0_Msk
9742 #define GPIO_IDR_ID1_Pos                    (1U)
9743 #define GPIO_IDR_ID1_Msk                    (0x1UL << GPIO_IDR_ID1_Pos)             /*!< 0x00000002 */
9744 #define GPIO_IDR_ID1                        GPIO_IDR_ID1_Msk
9745 #define GPIO_IDR_ID2_Pos                    (2U)
9746 #define GPIO_IDR_ID2_Msk                    (0x1UL << GPIO_IDR_ID2_Pos)             /*!< 0x00000004 */
9747 #define GPIO_IDR_ID2                        GPIO_IDR_ID2_Msk
9748 #define GPIO_IDR_ID3_Pos                    (3U)
9749 #define GPIO_IDR_ID3_Msk                    (0x1UL << GPIO_IDR_ID3_Pos)             /*!< 0x00000008 */
9750 #define GPIO_IDR_ID3                        GPIO_IDR_ID3_Msk
9751 #define GPIO_IDR_ID4_Pos                    (4U)
9752 #define GPIO_IDR_ID4_Msk                    (0x1UL << GPIO_IDR_ID4_Pos)             /*!< 0x00000010 */
9753 #define GPIO_IDR_ID4                        GPIO_IDR_ID4_Msk
9754 #define GPIO_IDR_ID5_Pos                    (5U)
9755 #define GPIO_IDR_ID5_Msk                    (0x1UL << GPIO_IDR_ID5_Pos)             /*!< 0x00000020 */
9756 #define GPIO_IDR_ID5                        GPIO_IDR_ID5_Msk
9757 #define GPIO_IDR_ID6_Pos                    (6U)
9758 #define GPIO_IDR_ID6_Msk                    (0x1UL << GPIO_IDR_ID6_Pos)             /*!< 0x00000040 */
9759 #define GPIO_IDR_ID6                        GPIO_IDR_ID6_Msk
9760 #define GPIO_IDR_ID7_Pos                    (7U)
9761 #define GPIO_IDR_ID7_Msk                    (0x1UL << GPIO_IDR_ID7_Pos)             /*!< 0x00000080 */
9762 #define GPIO_IDR_ID7                        GPIO_IDR_ID7_Msk
9763 #define GPIO_IDR_ID8_Pos                    (8U)
9764 #define GPIO_IDR_ID8_Msk                    (0x1UL << GPIO_IDR_ID8_Pos)             /*!< 0x00000100 */
9765 #define GPIO_IDR_ID8                        GPIO_IDR_ID8_Msk
9766 #define GPIO_IDR_ID9_Pos                    (9U)
9767 #define GPIO_IDR_ID9_Msk                    (0x1UL << GPIO_IDR_ID9_Pos)             /*!< 0x00000200 */
9768 #define GPIO_IDR_ID9                        GPIO_IDR_ID9_Msk
9769 #define GPIO_IDR_ID10_Pos                   (10U)
9770 #define GPIO_IDR_ID10_Msk                   (0x1UL << GPIO_IDR_ID10_Pos)            /*!< 0x00000400 */
9771 #define GPIO_IDR_ID10                       GPIO_IDR_ID10_Msk
9772 #define GPIO_IDR_ID11_Pos                   (11U)
9773 #define GPIO_IDR_ID11_Msk                   (0x1UL << GPIO_IDR_ID11_Pos)            /*!< 0x00000800 */
9774 #define GPIO_IDR_ID11                       GPIO_IDR_ID11_Msk
9775 #define GPIO_IDR_ID12_Pos                   (12U)
9776 #define GPIO_IDR_ID12_Msk                   (0x1UL << GPIO_IDR_ID12_Pos)            /*!< 0x00001000 */
9777 #define GPIO_IDR_ID12                       GPIO_IDR_ID12_Msk
9778 #define GPIO_IDR_ID13_Pos                   (13U)
9779 #define GPIO_IDR_ID13_Msk                   (0x1UL << GPIO_IDR_ID13_Pos)            /*!< 0x00002000 */
9780 #define GPIO_IDR_ID13                       GPIO_IDR_ID13_Msk
9781 #define GPIO_IDR_ID14_Pos                   (14U)
9782 #define GPIO_IDR_ID14_Msk                   (0x1UL << GPIO_IDR_ID14_Pos)            /*!< 0x00004000 */
9783 #define GPIO_IDR_ID14                       GPIO_IDR_ID14_Msk
9784 #define GPIO_IDR_ID15_Pos                   (15U)
9785 #define GPIO_IDR_ID15_Msk                   (0x1UL << GPIO_IDR_ID15_Pos)            /*!< 0x00008000 */
9786 #define GPIO_IDR_ID15                       GPIO_IDR_ID15_Msk
9787 
9788 /******************  Bits definition for GPIO_ODR register  *******************/
9789 #define GPIO_ODR_OD0_Pos                    (0U)
9790 #define GPIO_ODR_OD0_Msk                    (0x1UL << GPIO_ODR_OD0_Pos)             /*!< 0x00000001 */
9791 #define GPIO_ODR_OD0                        GPIO_ODR_OD0_Msk
9792 #define GPIO_ODR_OD1_Pos                    (1U)
9793 #define GPIO_ODR_OD1_Msk                    (0x1UL << GPIO_ODR_OD1_Pos)             /*!< 0x00000002 */
9794 #define GPIO_ODR_OD1                        GPIO_ODR_OD1_Msk
9795 #define GPIO_ODR_OD2_Pos                    (2U)
9796 #define GPIO_ODR_OD2_Msk                    (0x1UL << GPIO_ODR_OD2_Pos)             /*!< 0x00000004 */
9797 #define GPIO_ODR_OD2                        GPIO_ODR_OD2_Msk
9798 #define GPIO_ODR_OD3_Pos                    (3U)
9799 #define GPIO_ODR_OD3_Msk                    (0x1UL << GPIO_ODR_OD3_Pos)             /*!< 0x00000008 */
9800 #define GPIO_ODR_OD3                        GPIO_ODR_OD3_Msk
9801 #define GPIO_ODR_OD4_Pos                    (4U)
9802 #define GPIO_ODR_OD4_Msk                    (0x1UL << GPIO_ODR_OD4_Pos)             /*!< 0x00000010 */
9803 #define GPIO_ODR_OD4                        GPIO_ODR_OD4_Msk
9804 #define GPIO_ODR_OD5_Pos                    (5U)
9805 #define GPIO_ODR_OD5_Msk                    (0x1UL << GPIO_ODR_OD5_Pos)             /*!< 0x00000020 */
9806 #define GPIO_ODR_OD5                        GPIO_ODR_OD5_Msk
9807 #define GPIO_ODR_OD6_Pos                    (6U)
9808 #define GPIO_ODR_OD6_Msk                    (0x1UL << GPIO_ODR_OD6_Pos)             /*!< 0x00000040 */
9809 #define GPIO_ODR_OD6                        GPIO_ODR_OD6_Msk
9810 #define GPIO_ODR_OD7_Pos                    (7U)
9811 #define GPIO_ODR_OD7_Msk                    (0x1UL << GPIO_ODR_OD7_Pos)             /*!< 0x00000080 */
9812 #define GPIO_ODR_OD7                        GPIO_ODR_OD7_Msk
9813 #define GPIO_ODR_OD8_Pos                    (8U)
9814 #define GPIO_ODR_OD8_Msk                    (0x1UL << GPIO_ODR_OD8_Pos)             /*!< 0x00000100 */
9815 #define GPIO_ODR_OD8                        GPIO_ODR_OD8_Msk
9816 #define GPIO_ODR_OD9_Pos                    (9U)
9817 #define GPIO_ODR_OD9_Msk                    (0x1UL << GPIO_ODR_OD9_Pos)             /*!< 0x00000200 */
9818 #define GPIO_ODR_OD9                        GPIO_ODR_OD9_Msk
9819 #define GPIO_ODR_OD10_Pos                   (10U)
9820 #define GPIO_ODR_OD10_Msk                   (0x1UL << GPIO_ODR_OD10_Pos)            /*!< 0x00000400 */
9821 #define GPIO_ODR_OD10                       GPIO_ODR_OD10_Msk
9822 #define GPIO_ODR_OD11_Pos                   (11U)
9823 #define GPIO_ODR_OD11_Msk                   (0x1UL << GPIO_ODR_OD11_Pos)            /*!< 0x00000800 */
9824 #define GPIO_ODR_OD11                       GPIO_ODR_OD11_Msk
9825 #define GPIO_ODR_OD12_Pos                   (12U)
9826 #define GPIO_ODR_OD12_Msk                   (0x1UL << GPIO_ODR_OD12_Pos)            /*!< 0x00001000 */
9827 #define GPIO_ODR_OD12                       GPIO_ODR_OD12_Msk
9828 #define GPIO_ODR_OD13_Pos                   (13U)
9829 #define GPIO_ODR_OD13_Msk                   (0x1UL << GPIO_ODR_OD13_Pos)            /*!< 0x00002000 */
9830 #define GPIO_ODR_OD13                       GPIO_ODR_OD13_Msk
9831 #define GPIO_ODR_OD14_Pos                   (14U)
9832 #define GPIO_ODR_OD14_Msk                   (0x1UL << GPIO_ODR_OD14_Pos)            /*!< 0x00004000 */
9833 #define GPIO_ODR_OD14                       GPIO_ODR_OD14_Msk
9834 #define GPIO_ODR_OD15_Pos                   (15U)
9835 #define GPIO_ODR_OD15_Msk                   (0x1UL << GPIO_ODR_OD15_Pos)            /*!< 0x00008000 */
9836 #define GPIO_ODR_OD15                       GPIO_ODR_OD15_Msk
9837 
9838 /******************  Bits definition for GPIO_BSRR register  ******************/
9839 #define GPIO_BSRR_BS0_Pos                   (0U)
9840 #define GPIO_BSRR_BS0_Msk                   (0x1UL << GPIO_BSRR_BS0_Pos)            /*!< 0x00000001 */
9841 #define GPIO_BSRR_BS0                       GPIO_BSRR_BS0_Msk
9842 #define GPIO_BSRR_BS1_Pos                   (1U)
9843 #define GPIO_BSRR_BS1_Msk                   (0x1UL << GPIO_BSRR_BS1_Pos)            /*!< 0x00000002 */
9844 #define GPIO_BSRR_BS1                       GPIO_BSRR_BS1_Msk
9845 #define GPIO_BSRR_BS2_Pos                   (2U)
9846 #define GPIO_BSRR_BS2_Msk                   (0x1UL << GPIO_BSRR_BS2_Pos)            /*!< 0x00000004 */
9847 #define GPIO_BSRR_BS2                       GPIO_BSRR_BS2_Msk
9848 #define GPIO_BSRR_BS3_Pos                   (3U)
9849 #define GPIO_BSRR_BS3_Msk                   (0x1UL << GPIO_BSRR_BS3_Pos)            /*!< 0x00000008 */
9850 #define GPIO_BSRR_BS3                       GPIO_BSRR_BS3_Msk
9851 #define GPIO_BSRR_BS4_Pos                   (4U)
9852 #define GPIO_BSRR_BS4_Msk                   (0x1UL << GPIO_BSRR_BS4_Pos)            /*!< 0x00000010 */
9853 #define GPIO_BSRR_BS4                       GPIO_BSRR_BS4_Msk
9854 #define GPIO_BSRR_BS5_Pos                   (5U)
9855 #define GPIO_BSRR_BS5_Msk                   (0x1UL << GPIO_BSRR_BS5_Pos)            /*!< 0x00000020 */
9856 #define GPIO_BSRR_BS5                       GPIO_BSRR_BS5_Msk
9857 #define GPIO_BSRR_BS6_Pos                   (6U)
9858 #define GPIO_BSRR_BS6_Msk                   (0x1UL << GPIO_BSRR_BS6_Pos)            /*!< 0x00000040 */
9859 #define GPIO_BSRR_BS6                       GPIO_BSRR_BS6_Msk
9860 #define GPIO_BSRR_BS7_Pos                   (7U)
9861 #define GPIO_BSRR_BS7_Msk                   (0x1UL << GPIO_BSRR_BS7_Pos)            /*!< 0x00000080 */
9862 #define GPIO_BSRR_BS7                       GPIO_BSRR_BS7_Msk
9863 #define GPIO_BSRR_BS8_Pos                   (8U)
9864 #define GPIO_BSRR_BS8_Msk                   (0x1UL << GPIO_BSRR_BS8_Pos)            /*!< 0x00000100 */
9865 #define GPIO_BSRR_BS8                       GPIO_BSRR_BS8_Msk
9866 #define GPIO_BSRR_BS9_Pos                   (9U)
9867 #define GPIO_BSRR_BS9_Msk                   (0x1UL << GPIO_BSRR_BS9_Pos)            /*!< 0x00000200 */
9868 #define GPIO_BSRR_BS9                       GPIO_BSRR_BS9_Msk
9869 #define GPIO_BSRR_BS10_Pos                  (10U)
9870 #define GPIO_BSRR_BS10_Msk                  (0x1UL << GPIO_BSRR_BS10_Pos)           /*!< 0x00000400 */
9871 #define GPIO_BSRR_BS10                      GPIO_BSRR_BS10_Msk
9872 #define GPIO_BSRR_BS11_Pos                  (11U)
9873 #define GPIO_BSRR_BS11_Msk                  (0x1UL << GPIO_BSRR_BS11_Pos)           /*!< 0x00000800 */
9874 #define GPIO_BSRR_BS11                      GPIO_BSRR_BS11_Msk
9875 #define GPIO_BSRR_BS12_Pos                  (12U)
9876 #define GPIO_BSRR_BS12_Msk                  (0x1UL << GPIO_BSRR_BS12_Pos)           /*!< 0x00001000 */
9877 #define GPIO_BSRR_BS12                      GPIO_BSRR_BS12_Msk
9878 #define GPIO_BSRR_BS13_Pos                  (13U)
9879 #define GPIO_BSRR_BS13_Msk                  (0x1UL << GPIO_BSRR_BS13_Pos)           /*!< 0x00002000 */
9880 #define GPIO_BSRR_BS13                      GPIO_BSRR_BS13_Msk
9881 #define GPIO_BSRR_BS14_Pos                  (14U)
9882 #define GPIO_BSRR_BS14_Msk                  (0x1UL << GPIO_BSRR_BS14_Pos)           /*!< 0x00004000 */
9883 #define GPIO_BSRR_BS14                      GPIO_BSRR_BS14_Msk
9884 #define GPIO_BSRR_BS15_Pos                  (15U)
9885 #define GPIO_BSRR_BS15_Msk                  (0x1UL << GPIO_BSRR_BS15_Pos)           /*!< 0x00008000 */
9886 #define GPIO_BSRR_BS15                      GPIO_BSRR_BS15_Msk
9887 #define GPIO_BSRR_BR0_Pos                   (16U)
9888 #define GPIO_BSRR_BR0_Msk                   (0x1UL << GPIO_BSRR_BR0_Pos)            /*!< 0x00010000 */
9889 #define GPIO_BSRR_BR0                       GPIO_BSRR_BR0_Msk
9890 #define GPIO_BSRR_BR1_Pos                   (17U)
9891 #define GPIO_BSRR_BR1_Msk                   (0x1UL << GPIO_BSRR_BR1_Pos)            /*!< 0x00020000 */
9892 #define GPIO_BSRR_BR1                       GPIO_BSRR_BR1_Msk
9893 #define GPIO_BSRR_BR2_Pos                   (18U)
9894 #define GPIO_BSRR_BR2_Msk                   (0x1UL << GPIO_BSRR_BR2_Pos)            /*!< 0x00040000 */
9895 #define GPIO_BSRR_BR2                       GPIO_BSRR_BR2_Msk
9896 #define GPIO_BSRR_BR3_Pos                   (19U)
9897 #define GPIO_BSRR_BR3_Msk                   (0x1UL << GPIO_BSRR_BR3_Pos)            /*!< 0x00080000 */
9898 #define GPIO_BSRR_BR3                       GPIO_BSRR_BR3_Msk
9899 #define GPIO_BSRR_BR4_Pos                   (20U)
9900 #define GPIO_BSRR_BR4_Msk                   (0x1UL << GPIO_BSRR_BR4_Pos)            /*!< 0x00100000 */
9901 #define GPIO_BSRR_BR4                       GPIO_BSRR_BR4_Msk
9902 #define GPIO_BSRR_BR5_Pos                   (21U)
9903 #define GPIO_BSRR_BR5_Msk                   (0x1UL << GPIO_BSRR_BR5_Pos)            /*!< 0x00200000 */
9904 #define GPIO_BSRR_BR5                       GPIO_BSRR_BR5_Msk
9905 #define GPIO_BSRR_BR6_Pos                   (22U)
9906 #define GPIO_BSRR_BR6_Msk                   (0x1UL << GPIO_BSRR_BR6_Pos)            /*!< 0x00400000 */
9907 #define GPIO_BSRR_BR6                       GPIO_BSRR_BR6_Msk
9908 #define GPIO_BSRR_BR7_Pos                   (23U)
9909 #define GPIO_BSRR_BR7_Msk                   (0x1UL << GPIO_BSRR_BR7_Pos)            /*!< 0x00800000 */
9910 #define GPIO_BSRR_BR7                       GPIO_BSRR_BR7_Msk
9911 #define GPIO_BSRR_BR8_Pos                   (24U)
9912 #define GPIO_BSRR_BR8_Msk                   (0x1UL << GPIO_BSRR_BR8_Pos)            /*!< 0x01000000 */
9913 #define GPIO_BSRR_BR8                       GPIO_BSRR_BR8_Msk
9914 #define GPIO_BSRR_BR9_Pos                   (25U)
9915 #define GPIO_BSRR_BR9_Msk                   (0x1UL << GPIO_BSRR_BR9_Pos)            /*!< 0x02000000 */
9916 #define GPIO_BSRR_BR9                       GPIO_BSRR_BR9_Msk
9917 #define GPIO_BSRR_BR10_Pos                  (26U)
9918 #define GPIO_BSRR_BR10_Msk                  (0x1UL << GPIO_BSRR_BR10_Pos)           /*!< 0x04000000 */
9919 #define GPIO_BSRR_BR10                      GPIO_BSRR_BR10_Msk
9920 #define GPIO_BSRR_BR11_Pos                  (27U)
9921 #define GPIO_BSRR_BR11_Msk                  (0x1UL << GPIO_BSRR_BR11_Pos)           /*!< 0x08000000 */
9922 #define GPIO_BSRR_BR11                      GPIO_BSRR_BR11_Msk
9923 #define GPIO_BSRR_BR12_Pos                  (28U)
9924 #define GPIO_BSRR_BR12_Msk                  (0x1UL << GPIO_BSRR_BR12_Pos)           /*!< 0x10000000 */
9925 #define GPIO_BSRR_BR12                      GPIO_BSRR_BR12_Msk
9926 #define GPIO_BSRR_BR13_Pos                  (29U)
9927 #define GPIO_BSRR_BR13_Msk                  (0x1UL << GPIO_BSRR_BR13_Pos)           /*!< 0x20000000 */
9928 #define GPIO_BSRR_BR13                      GPIO_BSRR_BR13_Msk
9929 #define GPIO_BSRR_BR14_Pos                  (30U)
9930 #define GPIO_BSRR_BR14_Msk                  (0x1UL << GPIO_BSRR_BR14_Pos)           /*!< 0x40000000 */
9931 #define GPIO_BSRR_BR14                      GPIO_BSRR_BR14_Msk
9932 #define GPIO_BSRR_BR15_Pos                  (31U)
9933 #define GPIO_BSRR_BR15_Msk                  (0x1UL << GPIO_BSRR_BR15_Pos)           /*!< 0x80000000 */
9934 #define GPIO_BSRR_BR15                      GPIO_BSRR_BR15_Msk
9935 
9936 /****************** Bit definition for GPIO_LCKR register *********************/
9937 #define GPIO_LCKR_LCK0_Pos                  (0U)
9938 #define GPIO_LCKR_LCK0_Msk                  (0x1UL << GPIO_LCKR_LCK0_Pos)           /*!< 0x00000001 */
9939 #define GPIO_LCKR_LCK0                      GPIO_LCKR_LCK0_Msk
9940 #define GPIO_LCKR_LCK1_Pos                  (1U)
9941 #define GPIO_LCKR_LCK1_Msk                  (0x1UL << GPIO_LCKR_LCK1_Pos)           /*!< 0x00000002 */
9942 #define GPIO_LCKR_LCK1                      GPIO_LCKR_LCK1_Msk
9943 #define GPIO_LCKR_LCK2_Pos                  (2U)
9944 #define GPIO_LCKR_LCK2_Msk                  (0x1UL << GPIO_LCKR_LCK2_Pos)           /*!< 0x00000004 */
9945 #define GPIO_LCKR_LCK2                      GPIO_LCKR_LCK2_Msk
9946 #define GPIO_LCKR_LCK3_Pos                  (3U)
9947 #define GPIO_LCKR_LCK3_Msk                  (0x1UL << GPIO_LCKR_LCK3_Pos)           /*!< 0x00000008 */
9948 #define GPIO_LCKR_LCK3                      GPIO_LCKR_LCK3_Msk
9949 #define GPIO_LCKR_LCK4_Pos                  (4U)
9950 #define GPIO_LCKR_LCK4_Msk                  (0x1UL << GPIO_LCKR_LCK4_Pos)           /*!< 0x00000010 */
9951 #define GPIO_LCKR_LCK4                      GPIO_LCKR_LCK4_Msk
9952 #define GPIO_LCKR_LCK5_Pos                  (5U)
9953 #define GPIO_LCKR_LCK5_Msk                  (0x1UL << GPIO_LCKR_LCK5_Pos)           /*!< 0x00000020 */
9954 #define GPIO_LCKR_LCK5                      GPIO_LCKR_LCK5_Msk
9955 #define GPIO_LCKR_LCK6_Pos                  (6U)
9956 #define GPIO_LCKR_LCK6_Msk                  (0x1UL << GPIO_LCKR_LCK6_Pos)           /*!< 0x00000040 */
9957 #define GPIO_LCKR_LCK6                      GPIO_LCKR_LCK6_Msk
9958 #define GPIO_LCKR_LCK7_Pos                  (7U)
9959 #define GPIO_LCKR_LCK7_Msk                  (0x1UL << GPIO_LCKR_LCK7_Pos)           /*!< 0x00000080 */
9960 #define GPIO_LCKR_LCK7                      GPIO_LCKR_LCK7_Msk
9961 #define GPIO_LCKR_LCK8_Pos                  (8U)
9962 #define GPIO_LCKR_LCK8_Msk                  (0x1UL << GPIO_LCKR_LCK8_Pos)           /*!< 0x00000100 */
9963 #define GPIO_LCKR_LCK8                      GPIO_LCKR_LCK8_Msk
9964 #define GPIO_LCKR_LCK9_Pos                  (9U)
9965 #define GPIO_LCKR_LCK9_Msk                  (0x1UL << GPIO_LCKR_LCK9_Pos)           /*!< 0x00000200 */
9966 #define GPIO_LCKR_LCK9                      GPIO_LCKR_LCK9_Msk
9967 #define GPIO_LCKR_LCK10_Pos                 (10U)
9968 #define GPIO_LCKR_LCK10_Msk                 (0x1UL << GPIO_LCKR_LCK10_Pos)          /*!< 0x00000400 */
9969 #define GPIO_LCKR_LCK10                     GPIO_LCKR_LCK10_Msk
9970 #define GPIO_LCKR_LCK11_Pos                 (11U)
9971 #define GPIO_LCKR_LCK11_Msk                 (0x1UL << GPIO_LCKR_LCK11_Pos)          /*!< 0x00000800 */
9972 #define GPIO_LCKR_LCK11                     GPIO_LCKR_LCK11_Msk
9973 #define GPIO_LCKR_LCK12_Pos                 (12U)
9974 #define GPIO_LCKR_LCK12_Msk                 (0x1UL << GPIO_LCKR_LCK12_Pos)          /*!< 0x00001000 */
9975 #define GPIO_LCKR_LCK12                     GPIO_LCKR_LCK12_Msk
9976 #define GPIO_LCKR_LCK13_Pos                 (13U)
9977 #define GPIO_LCKR_LCK13_Msk                 (0x1UL << GPIO_LCKR_LCK13_Pos)          /*!< 0x00002000 */
9978 #define GPIO_LCKR_LCK13                     GPIO_LCKR_LCK13_Msk
9979 #define GPIO_LCKR_LCK14_Pos                 (14U)
9980 #define GPIO_LCKR_LCK14_Msk                 (0x1UL << GPIO_LCKR_LCK14_Pos)          /*!< 0x00004000 */
9981 #define GPIO_LCKR_LCK14                     GPIO_LCKR_LCK14_Msk
9982 #define GPIO_LCKR_LCK15_Pos                 (15U)
9983 #define GPIO_LCKR_LCK15_Msk                 (0x1UL << GPIO_LCKR_LCK15_Pos)          /*!< 0x00008000 */
9984 #define GPIO_LCKR_LCK15                     GPIO_LCKR_LCK15_Msk
9985 #define GPIO_LCKR_LCKK_Pos                  (16U)
9986 #define GPIO_LCKR_LCKK_Msk                  (0x1UL << GPIO_LCKR_LCKK_Pos)           /*!< 0x00010000 */
9987 #define GPIO_LCKR_LCKK                      GPIO_LCKR_LCKK_Msk
9988 
9989 /****************** Bit definition for GPIO_AFRL register *********************/
9990 #define GPIO_AFRL_AFSEL0_Pos                (0U)
9991 #define GPIO_AFRL_AFSEL0_Msk                (0xFUL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x0000000F */
9992 #define GPIO_AFRL_AFSEL0                    GPIO_AFRL_AFSEL0_Msk
9993 #define GPIO_AFRL_AFSEL0_0                  (0x1UL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x00000001 */
9994 #define GPIO_AFRL_AFSEL0_1                  (0x2UL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x00000002 */
9995 #define GPIO_AFRL_AFSEL0_2                  (0x4UL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x00000004 */
9996 #define GPIO_AFRL_AFSEL0_3                  (0x8UL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x00000008 */
9997 #define GPIO_AFRL_AFSEL1_Pos                (4U)
9998 #define GPIO_AFRL_AFSEL1_Msk                (0xFUL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x000000F0 */
9999 #define GPIO_AFRL_AFSEL1                    GPIO_AFRL_AFSEL1_Msk
10000 #define GPIO_AFRL_AFSEL1_0                  (0x1UL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x00000010 */
10001 #define GPIO_AFRL_AFSEL1_1                  (0x2UL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x00000020 */
10002 #define GPIO_AFRL_AFSEL1_2                  (0x4UL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x00000040 */
10003 #define GPIO_AFRL_AFSEL1_3                  (0x8UL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x00000080 */
10004 #define GPIO_AFRL_AFSEL2_Pos                (8U)
10005 #define GPIO_AFRL_AFSEL2_Msk                (0xFUL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000F00 */
10006 #define GPIO_AFRL_AFSEL2                    GPIO_AFRL_AFSEL2_Msk
10007 #define GPIO_AFRL_AFSEL2_0                  (0x1UL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000100 */
10008 #define GPIO_AFRL_AFSEL2_1                  (0x2UL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000200 */
10009 #define GPIO_AFRL_AFSEL2_2                  (0x4UL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000400 */
10010 #define GPIO_AFRL_AFSEL2_3                  (0x8UL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000800 */
10011 #define GPIO_AFRL_AFSEL3_Pos                (12U)
10012 #define GPIO_AFRL_AFSEL3_Msk                (0xFUL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x0000F000 */
10013 #define GPIO_AFRL_AFSEL3                    GPIO_AFRL_AFSEL3_Msk
10014 #define GPIO_AFRL_AFSEL3_0                  (0x1UL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x00001000 */
10015 #define GPIO_AFRL_AFSEL3_1                  (0x2UL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x00002000 */
10016 #define GPIO_AFRL_AFSEL3_2                  (0x4UL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x00004000 */
10017 #define GPIO_AFRL_AFSEL3_3                  (0x8UL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x00008000 */
10018 #define GPIO_AFRL_AFSEL4_Pos                (16U)
10019 #define GPIO_AFRL_AFSEL4_Msk                (0xFUL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x000F0000 */
10020 #define GPIO_AFRL_AFSEL4                    GPIO_AFRL_AFSEL4_Msk
10021 #define GPIO_AFRL_AFSEL4_0                  (0x1UL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x00010000 */
10022 #define GPIO_AFRL_AFSEL4_1                  (0x2UL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x00020000 */
10023 #define GPIO_AFRL_AFSEL4_2                  (0x4UL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x00040000 */
10024 #define GPIO_AFRL_AFSEL4_3                  (0x8UL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x00080000 */
10025 #define GPIO_AFRL_AFSEL5_Pos                (20U)
10026 #define GPIO_AFRL_AFSEL5_Msk                (0xFUL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00F00000 */
10027 #define GPIO_AFRL_AFSEL5                    GPIO_AFRL_AFSEL5_Msk
10028 #define GPIO_AFRL_AFSEL5_0                  (0x1UL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00100000 */
10029 #define GPIO_AFRL_AFSEL5_1                  (0x2UL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00200000 */
10030 #define GPIO_AFRL_AFSEL5_2                  (0x4UL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00400000 */
10031 #define GPIO_AFRL_AFSEL5_3                  (0x8UL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00800000 */
10032 #define GPIO_AFRL_AFSEL6_Pos                (24U)
10033 #define GPIO_AFRL_AFSEL6_Msk                (0xFUL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x0F000000 */
10034 #define GPIO_AFRL_AFSEL6                    GPIO_AFRL_AFSEL6_Msk
10035 #define GPIO_AFRL_AFSEL6_0                  (0x1UL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x01000000 */
10036 #define GPIO_AFRL_AFSEL6_1                  (0x2UL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x02000000 */
10037 #define GPIO_AFRL_AFSEL6_2                  (0x4UL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x04000000 */
10038 #define GPIO_AFRL_AFSEL6_3                  (0x8UL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x08000000 */
10039 #define GPIO_AFRL_AFSEL7_Pos                (28U)
10040 #define GPIO_AFRL_AFSEL7_Msk                (0xFUL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0xF0000000 */
10041 #define GPIO_AFRL_AFSEL7                    GPIO_AFRL_AFSEL7_Msk
10042 #define GPIO_AFRL_AFSEL7_0                  (0x1UL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0x10000000 */
10043 #define GPIO_AFRL_AFSEL7_1                  (0x2UL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0x20000000 */
10044 #define GPIO_AFRL_AFSEL7_2                  (0x4UL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0x40000000 */
10045 #define GPIO_AFRL_AFSEL7_3                  (0x8UL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0x80000000 */
10046 
10047 /****************** Bit definition for GPIO_AFRH register *********************/
10048 #define GPIO_AFRH_AFSEL8_Pos                (0U)
10049 #define GPIO_AFRH_AFSEL8_Msk                (0xFUL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x0000000F */
10050 #define GPIO_AFRH_AFSEL8                    GPIO_AFRH_AFSEL8_Msk
10051 #define GPIO_AFRH_AFSEL8_0                  (0x1UL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x00000001 */
10052 #define GPIO_AFRH_AFSEL8_1                  (0x2UL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x00000002 */
10053 #define GPIO_AFRH_AFSEL8_2                  (0x4UL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x00000004 */
10054 #define GPIO_AFRH_AFSEL8_3                  (0x8UL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x00000008 */
10055 #define GPIO_AFRH_AFSEL9_Pos                (4U)
10056 #define GPIO_AFRH_AFSEL9_Msk                (0xFUL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x000000F0 */
10057 #define GPIO_AFRH_AFSEL9                    GPIO_AFRH_AFSEL9_Msk
10058 #define GPIO_AFRH_AFSEL9_0                  (0x1UL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x00000010 */
10059 #define GPIO_AFRH_AFSEL9_1                  (0x2UL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x00000020 */
10060 #define GPIO_AFRH_AFSEL9_2                  (0x4UL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x00000040 */
10061 #define GPIO_AFRH_AFSEL9_3                  (0x8UL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x00000080 */
10062 #define GPIO_AFRH_AFSEL10_Pos               (8U)
10063 #define GPIO_AFRH_AFSEL10_Msk               (0xFUL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000F00 */
10064 #define GPIO_AFRH_AFSEL10                   GPIO_AFRH_AFSEL10_Msk
10065 #define GPIO_AFRH_AFSEL10_0                 (0x1UL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000100 */
10066 #define GPIO_AFRH_AFSEL10_1                 (0x2UL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000200 */
10067 #define GPIO_AFRH_AFSEL10_2                 (0x4UL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000400 */
10068 #define GPIO_AFRH_AFSEL10_3                 (0x8UL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000800 */
10069 #define GPIO_AFRH_AFSEL11_Pos               (12U)
10070 #define GPIO_AFRH_AFSEL11_Msk               (0xFUL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x0000F000 */
10071 #define GPIO_AFRH_AFSEL11                   GPIO_AFRH_AFSEL11_Msk
10072 #define GPIO_AFRH_AFSEL11_0                 (0x1UL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x00001000 */
10073 #define GPIO_AFRH_AFSEL11_1                 (0x2UL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x00002000 */
10074 #define GPIO_AFRH_AFSEL11_2                 (0x4UL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x00004000 */
10075 #define GPIO_AFRH_AFSEL11_3                 (0x8UL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x00008000 */
10076 #define GPIO_AFRH_AFSEL12_Pos               (16U)
10077 #define GPIO_AFRH_AFSEL12_Msk               (0xFUL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x000F0000 */
10078 #define GPIO_AFRH_AFSEL12                   GPIO_AFRH_AFSEL12_Msk
10079 #define GPIO_AFRH_AFSEL12_0                 (0x1UL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x00010000 */
10080 #define GPIO_AFRH_AFSEL12_1                 (0x2UL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x00020000 */
10081 #define GPIO_AFRH_AFSEL12_2                 (0x4UL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x00040000 */
10082 #define GPIO_AFRH_AFSEL12_3                 (0x8UL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x00080000 */
10083 #define GPIO_AFRH_AFSEL13_Pos               (20U)
10084 #define GPIO_AFRH_AFSEL13_Msk               (0xFUL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00F00000 */
10085 #define GPIO_AFRH_AFSEL13                   GPIO_AFRH_AFSEL13_Msk
10086 #define GPIO_AFRH_AFSEL13_0                 (0x1UL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00100000 */
10087 #define GPIO_AFRH_AFSEL13_1                 (0x2UL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00200000 */
10088 #define GPIO_AFRH_AFSEL13_2                 (0x4UL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00400000 */
10089 #define GPIO_AFRH_AFSEL13_3                 (0x8UL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00800000 */
10090 #define GPIO_AFRH_AFSEL14_Pos               (24U)
10091 #define GPIO_AFRH_AFSEL14_Msk               (0xFUL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x0F000000 */
10092 #define GPIO_AFRH_AFSEL14                   GPIO_AFRH_AFSEL14_Msk
10093 #define GPIO_AFRH_AFSEL14_0                 (0x1UL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x01000000 */
10094 #define GPIO_AFRH_AFSEL14_1                 (0x2UL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x02000000 */
10095 #define GPIO_AFRH_AFSEL14_2                 (0x4UL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x04000000 */
10096 #define GPIO_AFRH_AFSEL14_3                 (0x8UL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x08000000 */
10097 #define GPIO_AFRH_AFSEL15_Pos               (28U)
10098 #define GPIO_AFRH_AFSEL15_Msk               (0xFUL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0xF0000000 */
10099 #define GPIO_AFRH_AFSEL15                   GPIO_AFRH_AFSEL15_Msk
10100 #define GPIO_AFRH_AFSEL15_0                 (0x1UL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0x10000000 */
10101 #define GPIO_AFRH_AFSEL15_1                 (0x2UL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0x20000000 */
10102 #define GPIO_AFRH_AFSEL15_2                 (0x4UL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0x40000000 */
10103 #define GPIO_AFRH_AFSEL15_3                 (0x8UL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0x80000000 */
10104 
10105 /******************  Bits definition for GPIO_BRR register  ******************/
10106 #define GPIO_BRR_BR0_Pos                    (0U)
10107 #define GPIO_BRR_BR0_Msk                    (0x1UL << GPIO_BRR_BR0_Pos)             /*!< 0x00000001 */
10108 #define GPIO_BRR_BR0                        GPIO_BRR_BR0_Msk
10109 #define GPIO_BRR_BR1_Pos                    (1U)
10110 #define GPIO_BRR_BR1_Msk                    (0x1UL << GPIO_BRR_BR1_Pos)             /*!< 0x00000002 */
10111 #define GPIO_BRR_BR1                        GPIO_BRR_BR1_Msk
10112 #define GPIO_BRR_BR2_Pos                    (2U)
10113 #define GPIO_BRR_BR2_Msk                    (0x1UL << GPIO_BRR_BR2_Pos)             /*!< 0x00000004 */
10114 #define GPIO_BRR_BR2                        GPIO_BRR_BR2_Msk
10115 #define GPIO_BRR_BR3_Pos                    (3U)
10116 #define GPIO_BRR_BR3_Msk                    (0x1UL << GPIO_BRR_BR3_Pos)             /*!< 0x00000008 */
10117 #define GPIO_BRR_BR3                        GPIO_BRR_BR3_Msk
10118 #define GPIO_BRR_BR4_Pos                    (4U)
10119 #define GPIO_BRR_BR4_Msk                    (0x1UL << GPIO_BRR_BR4_Pos)             /*!< 0x00000010 */
10120 #define GPIO_BRR_BR4                        GPIO_BRR_BR4_Msk
10121 #define GPIO_BRR_BR5_Pos                    (5U)
10122 #define GPIO_BRR_BR5_Msk                    (0x1UL << GPIO_BRR_BR5_Pos)             /*!< 0x00000020 */
10123 #define GPIO_BRR_BR5                        GPIO_BRR_BR5_Msk
10124 #define GPIO_BRR_BR6_Pos                    (6U)
10125 #define GPIO_BRR_BR6_Msk                    (0x1UL << GPIO_BRR_BR6_Pos)             /*!< 0x00000040 */
10126 #define GPIO_BRR_BR6                        GPIO_BRR_BR6_Msk
10127 #define GPIO_BRR_BR7_Pos                    (7U)
10128 #define GPIO_BRR_BR7_Msk                    (0x1UL << GPIO_BRR_BR7_Pos)             /*!< 0x00000080 */
10129 #define GPIO_BRR_BR7                        GPIO_BRR_BR7_Msk
10130 #define GPIO_BRR_BR8_Pos                    (8U)
10131 #define GPIO_BRR_BR8_Msk                    (0x1UL << GPIO_BRR_BR8_Pos)             /*!< 0x00000100 */
10132 #define GPIO_BRR_BR8                        GPIO_BRR_BR8_Msk
10133 #define GPIO_BRR_BR9_Pos                    (9U)
10134 #define GPIO_BRR_BR9_Msk                    (0x1UL << GPIO_BRR_BR9_Pos)             /*!< 0x00000200 */
10135 #define GPIO_BRR_BR9                        GPIO_BRR_BR9_Msk
10136 #define GPIO_BRR_BR10_Pos                   (10U)
10137 #define GPIO_BRR_BR10_Msk                   (0x1UL << GPIO_BRR_BR10_Pos)            /*!< 0x00000400 */
10138 #define GPIO_BRR_BR10                       GPIO_BRR_BR10_Msk
10139 #define GPIO_BRR_BR11_Pos                   (11U)
10140 #define GPIO_BRR_BR11_Msk                   (0x1UL << GPIO_BRR_BR11_Pos)            /*!< 0x00000800 */
10141 #define GPIO_BRR_BR11                       GPIO_BRR_BR11_Msk
10142 #define GPIO_BRR_BR12_Pos                   (12U)
10143 #define GPIO_BRR_BR12_Msk                   (0x1UL << GPIO_BRR_BR12_Pos)            /*!< 0x00001000 */
10144 #define GPIO_BRR_BR12                       GPIO_BRR_BR12_Msk
10145 #define GPIO_BRR_BR13_Pos                   (13U)
10146 #define GPIO_BRR_BR13_Msk                   (0x1UL << GPIO_BRR_BR13_Pos)            /*!< 0x00002000 */
10147 #define GPIO_BRR_BR13                       GPIO_BRR_BR13_Msk
10148 #define GPIO_BRR_BR14_Pos                   (14U)
10149 #define GPIO_BRR_BR14_Msk                   (0x1UL << GPIO_BRR_BR14_Pos)            /*!< 0x00004000 */
10150 #define GPIO_BRR_BR14                       GPIO_BRR_BR14_Msk
10151 #define GPIO_BRR_BR15_Pos                   (15U)
10152 #define GPIO_BRR_BR15_Msk                   (0x1UL << GPIO_BRR_BR15_Pos)            /*!< 0x00008000 */
10153 #define GPIO_BRR_BR15                       GPIO_BRR_BR15_Msk
10154 
10155 /******************  Bits definition for GPIO_HSLVR register  ******************/
10156 #define GPIO_HSLVR_HSLV0_Pos                (0U)
10157 #define GPIO_HSLVR_HSLV0_Msk                (0x1UL << GPIO_HSLVR_HSLV0_Pos)         /*!< 0x00000001 */
10158 #define GPIO_HSLVR_HSLV0                    GPIO_HSLVR_HSLV0_Msk
10159 #define GPIO_HSLVR_HSLV1_Pos                (1U)
10160 #define GPIO_HSLVR_HSLV1_Msk                (0x1UL << GPIO_HSLVR_HSLV1_Pos)         /*!< 0x00000002 */
10161 #define GPIO_HSLVR_HSLV1                    GPIO_HSLVR_HSLV1_Msk
10162 #define GPIO_HSLVR_HSLV2_Pos                (2U)
10163 #define GPIO_HSLVR_HSLV2_Msk                (0x1UL << GPIO_HSLVR_HSLV2_Pos)         /*!< 0x00000004 */
10164 #define GPIO_HSLVR_HSLV2                    GPIO_HSLVR_HSLV2_Msk
10165 #define GPIO_HSLVR_HSLV3_Pos                (3U)
10166 #define GPIO_HSLVR_HSLV3_Msk                (0x1UL << GPIO_HSLVR_HSLV3_Pos)         /*!< 0x00000008 */
10167 #define GPIO_HSLVR_HSLV3                    GPIO_HSLVR_HSLV3_Msk
10168 #define GPIO_HSLVR_HSLV4_Pos                (4U)
10169 #define GPIO_HSLVR_HSLV4_Msk                (0x1UL << GPIO_HSLVR_HSLV4_Pos)         /*!< 0x00000010 */
10170 #define GPIO_HSLVR_HSLV4                    GPIO_HSLVR_HSLV4_Msk
10171 #define GPIO_HSLVR_HSLV5_Pos                (5U)
10172 #define GPIO_HSLVR_HSLV5_Msk                (0x1UL << GPIO_HSLVR_HSLV5_Pos)         /*!< 0x00000020 */
10173 #define GPIO_HSLVR_HSLV5                    GPIO_HSLVR_HSLV5_Msk
10174 #define GPIO_HSLVR_HSLV6_Pos                (6U)
10175 #define GPIO_HSLVR_HSLV6_Msk                (0x1UL << GPIO_HSLVR_HSLV6_Pos)         /*!< 0x00000040 */
10176 #define GPIO_HSLVR_HSLV6                    GPIO_HSLVR_HSLV6_Msk
10177 #define GPIO_HSLVR_HSLV7_Pos                (7U)
10178 #define GPIO_HSLVR_HSLV7_Msk                (0x1UL << GPIO_HSLVR_HSLV7_Pos)         /*!< 0x00000080 */
10179 #define GPIO_HSLVR_HSLV7                    GPIO_HSLVR_HSLV7_Msk
10180 #define GPIO_HSLVR_HSLV8_Pos                (8U)
10181 #define GPIO_HSLVR_HSLV8_Msk                (0x1UL << GPIO_HSLVR_HSLV8_Pos)         /*!< 0x00000100 */
10182 #define GPIO_HSLVR_HSLV8                    GPIO_HSLVR_HSLV8_Msk
10183 #define GPIO_HSLVR_HSLV9_Pos                (9U)
10184 #define GPIO_HSLVR_HSLV9_Msk                (0x1UL << GPIO_HSLVR_HSLV9_Pos)         /*!< 0x00000200 */
10185 #define GPIO_HSLVR_HSLV9                    GPIO_HSLVR_HSLV9_Msk
10186 #define GPIO_HSLVR_HSLV10_Pos               (10U)
10187 #define GPIO_HSLVR_HSLV10_Msk               (0x1UL << GPIO_HSLVR_HSLV10_Pos)        /*!< 0x00000400 */
10188 #define GPIO_HSLVR_HSLV10                   GPIO_HSLVR_HSLV10_Msk
10189 #define GPIO_HSLVR_HSLV11_Pos               (11U)
10190 #define GPIO_HSLVR_HSLV11_Msk               (x1UL << GPIO_HSLVR_HSLV11_Pos)         /*!< 0x00000800 */
10191 #define GPIO_HSLVR_HSLV11                   GPIO_HSLVR_HSLV11_Msk
10192 #define GPIO_HSLVR_HSLV12_Pos               (12U)
10193 #define GPIO_HSLVR_HSLV12_Msk               (0x1UL << GPIO_HSLVR_HSLV12_Pos)        /*!< 0x00001000 */
10194 #define GPIO_HSLVR_HSLV12                   GPIO_HSLVR_HSLV12_Msk
10195 #define GPIO_HSLVR_HSLV13_Pos               (13U)
10196 #define GPIO_HSLVR_HSLV13_Msk               (0x1UL << GPIO_HSLVR_HSLV13_Pos)        /*!< 0x00002000 */
10197 #define GPIO_HSLVR_HSLV13                   GPIO_HSLVR_HSLV13_Msk
10198 #define GPIO_HSLVR_HSLV14_Pos               (14U)
10199 #define GPIO_HSLVR_HSLV14_Msk               (0x1UL << GPIO_HSLVR_HSLV14_Pos)        /*!< 0x00004000 */
10200 #define GPIO_HSLVR_HSLV14                   GPIO_HSLVR_HSLV14_Msk
10201 #define GPIO_HSLVR_HSLV15_Pos               (15U)
10202 #define GPIO_HSLVR_HSLV15_Msk               (0x1UL << GPIO_HSLVR_HSLV15_Pos)        /*!< 0x00008000 */
10203 #define GPIO_HSLVR_HSLV15                   GPIO_HSLVR_HSLV15_Msk
10204 
10205 /******************  Bits definition for GPIO_SECCFGR register  ******************/
10206 #define GPIO_SECCFGR_SEC0_Pos               (0U)
10207 #define GPIO_SECCFGR_SEC0_Msk               (0x1UL << GPIO_SECCFGR_SEC0_Pos)        /*!< 0x00000001 */
10208 #define GPIO_SECCFGR_SEC0                   GPIO_SECCFGR_SEC0_Msk
10209 #define GPIO_SECCFGR_SEC1_Pos               (1U)
10210 #define GPIO_SECCFGR_SEC1_Msk               (0x1UL << GPIO_SECCFGR_SEC1_Pos)        /*!< 0x00000002 */
10211 #define GPIO_SECCFGR_SEC1                   GPIO_SECCFGR_SEC1_Msk
10212 #define GPIO_SECCFGR_SEC2_Pos               (2U)
10213 #define GPIO_SECCFGR_SEC2_Msk               (0x1UL << GPIO_SECCFGR_SEC2_Pos)        /*!< 0x00000004 */
10214 #define GPIO_SECCFGR_SEC2                   GPIO_SECCFGR_SEC2_Msk
10215 #define GPIO_SECCFGR_SEC3_Pos               (3U)
10216 #define GPIO_SECCFGR_SEC3_Msk               (0x1UL << GPIO_SECCFGR_SEC3_Pos)        /*!< 0x00000008 */
10217 #define GPIO_SECCFGR_SEC3                   GPIO_SECCFGR_SEC3_Msk
10218 #define GPIO_SECCFGR_SEC4_Pos               (4U)
10219 #define GPIO_SECCFGR_SEC4_Msk               (0x1UL << GPIO_SECCFGR_SEC4_Pos)        /*!< 0x00000010 */
10220 #define GPIO_SECCFGR_SEC4                   GPIO_SECCFGR_SEC4_Msk
10221 #define GPIO_SECCFGR_SEC5_Pos               (5U)
10222 #define GPIO_SECCFGR_SEC5_Msk               (0x1UL << GPIO_SECCFGR_SEC5_Pos)        /*!< 0x00000020 */
10223 #define GPIO_SECCFGR_SEC5                   GPIO_SECCFGR_SEC5_Msk
10224 #define GPIO_SECCFGR_SEC6_Pos               (6U)
10225 #define GPIO_SECCFGR_SEC6_Msk               (0x1UL << GPIO_SECCFGR_SEC6_Pos)        /*!< 0x00000040 */
10226 #define GPIO_SECCFGR_SEC6                   GPIO_SECCFGR_SEC6_Msk
10227 #define GPIO_SECCFGR_SEC7_Pos               (7U)
10228 #define GPIO_SECCFGR_SEC7_Msk               (0x1UL << GPIO_SECCFGR_SEC7_Pos)        /*!< 0x00000080 */
10229 #define GPIO_SECCFGR_SEC7                   GPIO_SECCFGR_SEC7_Msk
10230 #define GPIO_SECCFGR_SEC8_Pos               (8U)
10231 #define GPIO_SECCFGR_SEC8_Msk               (0x1UL << GPIO_SECCFGR_SEC8_Pos)        /*!< 0x00000100 */
10232 #define GPIO_SECCFGR_SEC8                   GPIO_SECCFGR_SEC8_Msk
10233 #define GPIO_SECCFGR_SEC9_Pos               (9U)
10234 #define GPIO_SECCFGR_SEC9_Msk               (0x1UL << GPIO_SECCFGR_SEC9_Pos)        /*!< 0x00000200 */
10235 #define GPIO_SECCFGR_SEC9                   GPIO_SECCFGR_SEC9_Msk
10236 #define GPIO_SECCFGR_SEC10_Pos              (10U)
10237 #define GPIO_SECCFGR_SEC10_Msk              (0x1UL << GPIO_SECCFGR_SEC10_Pos)       /*!< 0x00000400 */
10238 #define GPIO_SECCFGR_SEC10                  GPIO_SECCFGR_SEC10_Msk
10239 #define GPIO_SECCFGR_SEC11_Pos              (11U)
10240 #define GPIO_SECCFGR_SEC11_Msk              (x1UL << GPIO_SECCFGR_SEC11_Pos)        /*!< 0x00000800 */
10241 #define GPIO_SECCFGR_SEC11                  GPIO_SECCFGR_SEC11_Msk
10242 #define GPIO_SECCFGR_SEC12_Pos              (12U)
10243 #define GPIO_SECCFGR_SEC12_Msk              (0x1UL << GPIO_SECCFGR_SEC12_Pos)       /*!< 0x00001000 */
10244 #define GPIO_SECCFGR_SEC12                  GPIO_SECCFGR_SEC12_Msk
10245 #define GPIO_SECCFGR_SEC13_Pos              (13U)
10246 #define GPIO_SECCFGR_SEC13_Msk              (0x1UL << GPIO_SECCFGR_SEC13_Pos)       /*!< 0x00002000 */
10247 #define GPIO_SECCFGR_SEC13                  GPIO_SECCFGR_SEC13_Msk
10248 #define GPIO_SECCFGR_SEC14_Pos              (14U)
10249 #define GPIO_SECCFGR_SEC14_Msk              (0x1UL << GPIO_SECCFGR_SEC14_Pos)       /*!< 0x00004000 */
10250 #define GPIO_SECCFGR_SEC14                  GPIO_SECCFGR_SEC14_Msk
10251 #define GPIO_SECCFGR_SEC15_Pos              (15U)
10252 #define GPIO_SECCFGR_SEC15_Msk              (0x1UL << GPIO_SECCFGR_SEC15_Pos)       /*!< 0x00008000 */
10253 #define GPIO_SECCFGR_SEC15                  GPIO_SECCFGR_SEC15_Msk
10254 /******************************************************************************/
10255 /*                                                                            */
10256 /*                       Low Power General Purpose IOs (LPGPIO)               */
10257 /*                                                                            */
10258 /******************************************************************************/
10259 /******************  Bits definition for LPGPIO_MODER register  *****************/
10260 #define LPGPIO_MODER_MOD0_Pos               (0U)
10261 #define LPGPIO_MODER_MOD0_Msk               (0x1UL << LPGPIO_MODER_MOD0_Pos)        /*!< 0x00000001 */
10262 #define LPGPIO_MODER_MOD0                   LPGPIO_MODER_MOD0_Msk
10263 #define LPGPIO_MODER_MOD1_Pos               (1U)
10264 #define LPGPIO_MODER_MOD1_Msk               (0x1UL << LPGPIO_MODER_MOD1_Pos)        /*!< 0x00000002 */
10265 #define LPGPIO_MODER_MOD1                   LPGPIO_MODER_MOD1_Msk
10266 #define LPGPIO_MODER_MOD2_Pos               (2U)
10267 #define LPGPIO_MODER_MOD2_Msk               (0x1UL << LPGPIO_MODER_MOD2_Pos)        /*!< 0x00000004 */
10268 #define LPGPIO_MODER_MOD2                   LPGPIO_MODER_MOD2_Msk
10269 #define LPGPIO_MODER_MOD3_Pos               (3U)
10270 #define LPGPIO_MODER_MOD3_Msk               (0x1UL << LPGPIO_MODER_MOD3_Pos)        /*!< 0x00000008 */
10271 #define LPGPIO_MODER_MOD3                   LPGPIO_MODER_MOD3_Msk
10272 #define LPGPIO_MODER_MOD4_Pos               (4U)
10273 #define LPGPIO_MODER_MOD4_Msk               (0x1UL << LPGPIO_MODER_MOD4_Pos)        /*!< 0x00000010 */
10274 #define LPGPIO_MODER_MOD4                   LPGPIO_MODER_MOD4_Msk
10275 #define LPGPIO_MODER_MOD5_Pos               (5U)
10276 #define LPGPIO_MODER_MOD5_Msk               (0x1UL << LPGPIO_MODER_MOD5_Pos)        /*!< 0x00000020 */
10277 #define LPGPIO_MODER_MOD5                   LPGPIO_MODER_MOD5_Msk
10278 #define LPGPIO_MODER_MOD6_Pos               (6U)
10279 #define LPGPIO_MODER_MOD6_Msk               (0x1UL << LPGPIO_MODER_MOD6_Pos)        /*!< 0x00000040 */
10280 #define LPGPIO_MODER_MOD6                   LPGPIO_MODER_MOD6_Msk
10281 #define LPGPIO_MODER_MOD7_Pos               (7U)
10282 #define LPGPIO_MODER_MOD7_Msk               (0x1UL << LPGPIO_MODER_MOD7_Pos)        /*!< 0x00000080 */
10283 #define LPGPIO_MODER_MOD7                   LPGPIO_MODER_MOD7_Msk
10284 #define LPGPIO_MODER_MOD8_Pos               (8U)
10285 #define LPGPIO_MODER_MOD8_Msk               (0x1UL << LPGPIO_MODER_MOD8_Pos)        /*!< 0x00000100 */
10286 #define LPGPIO_MODER_MOD8                   LPGPIO_MODER_MOD8_Msk
10287 #define LPGPIO_MODER_MOD9_Pos               (9U)
10288 #define LPGPIO_MODER_MOD9_Msk               (0x1UL << LPGPIO_MODER_MOD9_Pos)        /*!< 0x00000200 */
10289 #define LPGPIO_MODER_MOD9                   LPGPIO_MODER_MOD9_Msk
10290 #define LPGPIO_MODER_MOD10_Pos              (10U)
10291 #define LPGPIO_MODER_MOD10_Msk              (0x1UL << LPGPIO_MODER_MOD10_Pos)       /*!< 0x00000400 */
10292 #define LPGPIO_MODER_MOD10                  LPGPIO_MODER_MOD10_Msk
10293 #define LPGPIO_MODER_MOD11_Pos              (11U)
10294 #define LPGPIO_MODER_MOD11_Msk              (0x1UL << LPGPIO_MODER_MOD11_Pos)       /*!< 0x00000800 */
10295 #define LPGPIO_MODER_MOD11                  LPGPIO_MODER_MOD11_Msk
10296 #define LPGPIO_MODER_MOD12_Pos              (12U)
10297 #define LPGPIO_MODER_MOD12_Msk              (0x1UL << LPGPIO_MODER_MOD12_Pos)       /*!< 0x00001000 */
10298 #define LPGPIO_MODER_MOD12                  LPGPIO_MODER_MOD12_Msk
10299 #define LPGPIO_MODER_MOD13_Pos              (13U)
10300 #define LPGPIO_MODER_MOD13_Msk              (0x1UL << LPGPIO_MODER_MOD13_Pos)       /*!< 0x00002000 */
10301 #define LPGPIO_MODER_MOD13                  LPGPIO_MODER_MOD13_Msk
10302 #define LPGPIO_MODER_MOD14_Pos              (14U)
10303 #define LPGPIO_MODER_MOD14_Msk              (0x1UL << LPGPIO_MODER_MOD14_Pos)       /*!< 0x00004000 */
10304 #define LPGPIO_MODER_MOD14                  LPGPIO_MODER_MOD14_Msk
10305 #define LPGPIO_MODER_MOD15_Pos              (15U)
10306 #define LPGPIO_MODER_MOD15_Msk              (0x1UL << LPGPIO_MODER_MOD15_Pos)       /*!< 0x00008000 */
10307 #define LPGPIO_MODER_MOD15                  LPGPIO_MODER_MOD15_Msk
10308 
10309 /******************  Bits definition for LPGPIO_IDR register  *******************/
10310 #define LPGPIO_IDR_ID0_Pos                  (0U)
10311 #define LPGPIO_IDR_ID0_Msk                  (0x1UL << LPGPIO_IDR_ID0_Pos)           /*!< 0x00000001 */
10312 #define LPGPIO_IDR_ID0                      LPGPIO_IDR_ID0_Msk
10313 #define LPGPIO_IDR_ID1_Pos                  (1U)
10314 #define LPGPIO_IDR_ID1_Msk                  (0x1UL << GPIO_IDR_ID1_Pos)             /*!< 0x00000002 */
10315 #define LPGPIO_IDR_ID1                      LPGPIO_IDR_ID1_Msk
10316 #define LPGPIO_IDR_ID2_Pos                  (2U)
10317 #define LPGPIO_IDR_ID2_Msk                  (0x1UL << LPGPIO_IDR_ID2_Pos)           /*!< 0x00000004 */
10318 #define LPGPIO_IDR_ID2                      LPGPIO_IDR_ID2_Msk
10319 #define LPGPIO_IDR_ID3_Pos                  (3U)
10320 #define LPGPIO_IDR_ID3_Msk                  (0x1UL << LPGPIO_IDR_ID3_Pos)           /*!< 0x00000008 */
10321 #define LPGPIO_IDR_ID3                      LPGPIO_IDR_ID3_Msk
10322 #define LPGPIO_IDR_ID4_Pos                  (4U)
10323 #define LPGPIO_IDR_ID4_Msk                  (0x1UL << LPGPIO_IDR_ID4_Pos)           /*!< 0x00000010 */
10324 #define LPGPIO_IDR_ID4                      LPGPIO_IDR_ID4_Msk
10325 #define LPGPIO_IDR_ID5_Pos                  (5U)
10326 #define LPGPIO_IDR_ID5_Msk                  (0x1UL << LPGPIO_IDR_ID5_Pos)           /*!< 0x00000020 */
10327 #define LPGPIO_IDR_ID5                      LPGPIO_IDR_ID5_Msk
10328 #define LPGPIO_IDR_ID6_Pos                  (6U)
10329 #define LPGPIO_IDR_ID6_Msk                  (0x1UL << LPGPIO_IDR_ID6_Pos)           /*!< 0x00000040 */
10330 #define LPGPIO_IDR_ID6                      LPGPIO_IDR_ID6_Msk
10331 #define LPGPIO_IDR_ID7_Pos                  (7U)
10332 #define LPGPIO_IDR_ID7_Msk                  (0x1UL << LPGPIO_IDR_ID7_Pos)           /*!< 0x00000080 */
10333 #define LPGPIO_IDR_ID7                      LPGPIO_IDR_ID7_Msk
10334 #define LPGPIO_IDR_ID8_Pos                  (8U)
10335 #define LPGPIO_IDR_ID8_Msk                  (0x1UL << LPGPIO_IDR_ID8_Pos)           /*!< 0x00000100 */
10336 #define LPGPIO_IDR_ID8                      LPGPIO_IDR_ID8_Msk
10337 #define LPGPIO_IDR_ID9_Pos                  (9U)
10338 #define LPGPIO_IDR_ID9_Msk                  (0x1UL << LPGPIO_IDR_ID9_Pos)           /*!< 0x00000200 */
10339 #define LPGPIO_IDR_ID9                      LPGPIO_IDR_ID9_Msk
10340 #define LPGPIO_IDR_ID10_Pos                 (10U)
10341 #define LPGPIO_IDR_ID10_Msk                 (0x1UL << LPGPIO_IDR_ID10_Pos)          /*!< 0x00000400 */
10342 #define LPGPIO_IDR_ID10                     LPGPIO_IDR_ID10_Msk
10343 #define LPGPIO_IDR_ID11_Pos                 (11U)
10344 #define LPGPIO_IDR_ID11_Msk                 (0x1UL << LPGPIO_IDR_ID11_Pos)          /*!< 0x00000800 */
10345 #define LPGPIO_IDR_ID11                     LPGPIO_IDR_ID11_Msk
10346 #define LPGPIO_IDR_ID12_Pos                 (12U)
10347 #define LPGPIO_IDR_ID12_Msk                 (0x1UL << LPGPIO_IDR_ID12_Pos)          /*!< 0x00001000 */
10348 #define LPGPIO_IDR_ID12                     LPGPIO_IDR_ID12_Msk
10349 #define LPGPIO_IDR_ID13_Pos                 (13U)
10350 #define LPGPIO_IDR_ID13_Msk                 (0x1UL << LPGPIO_IDR_ID13_Pos)          /*!< 0x00002000 */
10351 #define LPGPIO_IDR_ID13                     LPGPIO_IDR_ID13_Msk
10352 #define LPGPIO_IDR_ID14_Pos                 (14U)
10353 #define LPGPIO_IDR_ID14_Msk                 (0x1UL << LPGPIO_IDR_ID14_Pos)          /*!< 0x00004000 */
10354 #define LPGPIO_IDR_ID14                     LPGPIO_IDR_ID14_Msk
10355 #define LPGPIO_IDR_ID15_Pos                 (15U)
10356 #define LPGPIO_IDR_ID15_Msk                 (0x1UL << LPGPIO_IDR_ID15_Pos)          /*!< 0x00008000 */
10357 #define LPGPIO_IDR_ID15                     LPGPIO_IDR_ID15_Msk
10358 
10359 /******************  Bits definition for LPGPIO_ODR register  *******************/
10360 #define LPGPIO_ODR_OD0_Pos                  (0U)
10361 #define LPGPIO_ODR_OD0_Msk                  (0x1UL << LPGPIO_ODR_OD0_Pos)           /*!< 0x00000001 */
10362 #define LPGPIO_ODR_OD0                      LPGPIO_ODR_OD0_Msk
10363 #define LPGPIO_ODR_OD1_Pos                  (1U)
10364 #define LPGPIO_ODR_OD1_Msk                  (0x1UL << LPGPIO_ODR_OD1_Pos)           /*!< 0x00000002 */
10365 #define LPGPIO_ODR_OD1                      LPGPIO_ODR_OD1_Msk
10366 #define LPGPIO_ODR_OD2_Pos                  (2U)
10367 #define LPGPIO_ODR_OD2_Msk                  (0x1UL << LPGPIO_ODR_OD2_Pos)           /*!< 0x00000004 */
10368 #define LPGPIO_ODR_OD2                      LPGPIO_ODR_OD2_Msk
10369 #define LPGPIO_ODR_OD3_Pos                  (3U)
10370 #define LPGPIO_ODR_OD3_Msk                  (0x1UL << LPGPIO_ODR_OD3_Pos)           /*!< 0x00000008 */
10371 #define LPGPIO_ODR_OD3                      LPGPIO_ODR_OD3_Msk
10372 #define LPGPIO_ODR_OD4_Pos                  (4U)
10373 #define LPGPIO_ODR_OD4_Msk                  (0x1UL << LPGPIO_ODR_OD4_Pos)           /*!< 0x00000010 */
10374 #define LPGPIO_ODR_OD4                      LPGPIO_ODR_OD4_Msk
10375 #define LPGPIO_ODR_OD5_Pos                  (5U)
10376 #define LPGPIO_ODR_OD5_Msk                  (0x1UL << LPGPIO_ODR_OD5_Pos)           /*!< 0x00000020 */
10377 #define LPGPIO_ODR_OD5                      LPGPIO_ODR_OD5_Msk
10378 #define LPGPIO_ODR_OD6_Pos                  (6U)
10379 #define LPGPIO_ODR_OD6_Msk                  (0x1UL << LPGPIO_ODR_OD6_Pos)           /*!< 0x00000040 */
10380 #define LPGPIO_ODR_OD6                      LPGPIO_ODR_OD6_Msk
10381 #define LPGPIO_ODR_OD7_Pos                  (7U)
10382 #define LPGPIO_ODR_OD7_Msk                  (0x1UL << LPGPIO_ODR_OD7_Pos)           /*!< 0x00000080 */
10383 #define LPGPIO_ODR_OD7                      LPGPIO_ODR_OD7_Msk
10384 #define LPGPIO_ODR_OD8_Pos                  (8U)
10385 #define LPGPIO_ODR_OD8_Msk                  (0x1UL << LPGPIO_ODR_OD8_Pos)           /*!< 0x00000100 */
10386 #define LPGPIO_ODR_OD8                      LPGPIO_ODR_OD8_Msk
10387 #define LPGPIO_ODR_OD9_Pos                  (9U)
10388 #define LPGPIO_ODR_OD9_Msk                  (0x1UL << LPGPIO_ODR_OD9_Pos)           /*!< 0x00000200 */
10389 #define LPGPIO_ODR_OD9                      LPGPIO_ODR_OD9_Msk
10390 #define LPGPIO_ODR_OD10_Pos                 (10U)
10391 #define LPGPIO_ODR_OD10_Msk                 (0x1UL << LPGPIO_ODR_OD10_Pos)          /*!< 0x00000400 */
10392 #define LPGPIO_ODR_OD10                     LPGPIO_ODR_OD10_Msk
10393 #define LPGPIO_ODR_OD11_Pos                 (11U)
10394 #define LPGPIO_ODR_OD11_Msk                 (0x1UL << LPGPIO_ODR_OD11_Pos)          /*!< 0x00000800 */
10395 #define LPGPIO_ODR_OD11                     LPGPIO_ODR_OD11_Msk
10396 #define LPGPIO_ODR_OD12_Pos                 (12U)
10397 #define LPGPIO_ODR_OD12_Msk                 (0x1UL << LPGPIO_ODR_OD12_Pos)          /*!< 0x00001000 */
10398 #define LPGPIO_ODR_OD12                     LPGPIO_ODR_OD12_Msk
10399 #define LPGPIO_ODR_OD13_Pos                 (13U)
10400 #define LPGPIO_ODR_OD13_Msk                 (0x1UL << LPGPIO_ODR_OD13_Pos)          /*!< 0x00002000 */
10401 #define LPGPIO_ODR_OD13                     LPGPIO_ODR_OD13_Msk
10402 #define LPGPIO_ODR_OD14_Pos                 (14U)
10403 #define LPGPIO_ODR_OD14_Msk                 (0x1UL << LPGPIO_ODR_OD14_Pos)          /*!< 0x00004000 */
10404 #define LPGPIO_ODR_OD14                     LPGPIO_ODR_OD14_Msk
10405 #define LPGPIO_ODR_OD15_Pos                 (15U)
10406 #define LPGPIO_ODR_OD15_Msk                 (0x1UL << LPGPIO_ODR_OD15_Pos)          /*!< 0x00008000 */
10407 #define LPGPIO_ODR_OD15                     LPGPIO_ODR_OD15_Msk
10408 
10409 /******************  Bits definition for LPGPIO_BSRR register  ******************/
10410 #define LPGPIO_BSRR_BS0_Pos                 (0U)
10411 #define LPGPIO_BSRR_BS0_Msk                 (0x1UL << LPGPIO_BSRR_BS0_Pos)          /*!< 0x00000001 */
10412 #define LPGPIO_BSRR_BS0                     LPGPIO_BSRR_BS0_Msk
10413 #define LPGPIO_BSRR_BS1_Pos                 (1U)
10414 #define LPGPIO_BSRR_BS1_Msk                 (0x1UL << LPGPIO_BSRR_BS1_Pos)          /*!< 0x00000002 */
10415 #define LPGPIO_BSRR_BS1                     LPGPIO_BSRR_BS1_Msk
10416 #define LPGPIO_BSRR_BS2_Pos                 (2U)
10417 #define LPGPIO_BSRR_BS2_Msk                 (0x1UL << LPGPIO_BSRR_BS2_Pos)          /*!< 0x00000004 */
10418 #define LPGPIO_BSRR_BS2                     LPGPIO_BSRR_BS2_Msk
10419 #define LPGPIO_BSRR_BS3_Pos                 (3U)
10420 #define LPGPIO_BSRR_BS3_Msk                 (0x1UL << LPGPIO_BSRR_BS3_Pos)          /*!< 0x00000008 */
10421 #define LPGPIO_BSRR_BS3                     LPGPIO_BSRR_BS3_Msk
10422 #define LPGPIO_BSRR_BS4_Pos                 (4U)
10423 #define LPGPIO_BSRR_BS4_Msk                 (0x1UL << LPGPIO_BSRR_BS4_Pos)          /*!< 0x00000010 */
10424 #define LPGPIO_BSRR_BS4                     LPGPIO_BSRR_BS4_Msk
10425 #define LPGPIO_BSRR_BS5_Pos                 (5U)
10426 #define LPGPIO_BSRR_BS5_Msk                 (0x1UL << LPGPIO_BSRR_BS5_Pos)          /*!< 0x00000020 */
10427 #define LPGPIO_BSRR_BS5                     LPGPIO_BSRR_BS5_Msk
10428 #define LPGPIO_BSRR_BS6_Pos                 (6U)
10429 #define LPGPIO_BSRR_BS6_Msk                 (0x1UL << LPGPIO_BSRR_BS6_Pos)          /*!< 0x00000040 */
10430 #define LPGPIO_BSRR_BS6                     LPGPIO_BSRR_BS6_Msk
10431 #define LPGPIO_BSRR_BS7_Pos                 (7U)
10432 #define LPGPIO_BSRR_BS7_Msk                 (0x1UL << LPGPIO_BSRR_BS7_Pos)          /*!< 0x00000080 */
10433 #define LPGPIO_BSRR_BS7                     LPGPIO_BSRR_BS7_Msk
10434 #define LPGPIO_BSRR_BS8_Pos                 (8U)
10435 #define LPGPIO_BSRR_BS8_Msk                 (0x1UL << LPGPIO_BSRR_BS8_Pos)          /*!< 0x00000100 */
10436 #define LPGPIO_BSRR_BS8                     LPGPIO_BSRR_BS8_Msk
10437 #define LPGPIO_BSRR_BS9_Pos                 (9U)
10438 #define LPGPIO_BSRR_BS9_Msk                 (0x1UL << LPGPIO_BSRR_BS9_Pos)          /*!< 0x00000200 */
10439 #define LPGPIO_BSRR_BS9                     LPGPIO_BSRR_BS9_Msk
10440 #define LPGPIO_BSRR_BS10_Pos                (10U)
10441 #define LPGPIO_BSRR_BS10_Msk                (0x1UL << LPGPIO_BSRR_BS10_Pos)         /*!< 0x00000400 */
10442 #define LPGPIO_BSRR_BS10                    LPGPIO_BSRR_BS10_Msk
10443 #define LPGPIO_BSRR_BS11_Pos                (11U)
10444 #define LPGPIO_BSRR_BS11_Msk                (0x1UL << LPGPIO_BSRR_BS11_Pos)         /*!< 0x00000800 */
10445 #define LPGPIO_BSRR_BS11                    LPGPIO_BSRR_BS11_Msk
10446 #define LPGPIO_BSRR_BS12_Pos                (12U)
10447 #define LPGPIO_BSRR_BS12_Msk                (0x1UL << LPGPIO_BSRR_BS12_Pos)         /*!< 0x00001000 */
10448 #define LPGPIO_BSRR_BS12                    LPGPIO_BSRR_BS12_Msk
10449 #define LPGPIO_BSRR_BS13_Pos                (13U)
10450 #define LPGPIO_BSRR_BS13_Msk                (0x1UL << LPGPIO_BSRR_BS13_Pos)         /*!< 0x00002000 */
10451 #define LPGPIO_BSRR_BS13                    LPGPIO_BSRR_BS13_Msk
10452 #define LPGPIO_BSRR_BS14_Pos                (14U)
10453 #define LPGPIO_BSRR_BS14_Msk                (0x1UL << LPGPIO_BSRR_BS14_Pos)         /*!< 0x00004000 */
10454 #define LPGPIO_BSRR_BS14                    LPGPIO_BSRR_BS14_Msk
10455 #define LPGPIO_BSRR_BS15_Pos                (15U)
10456 #define LPGPIO_BSRR_BS15_Msk                (0x1UL << LPGPIO_BSRR_BS15_Pos)         /*!< 0x00008000 */
10457 #define LPGPIO_BSRR_BS15                    LPGPIO_BSRR_BS15_Msk
10458 #define LPGPIO_BSRR_BR0_Pos                 (16U)
10459 #define LPGPIO_BSRR_BR0_Msk                 (0x1UL << LPGPIO_BSRR_BR0_Pos)          /*!< 0x00010000 */
10460 #define LPGPIO_BSRR_BR0                     LPGPIO_BSRR_BR0_Msk
10461 #define LPGPIO_BSRR_BR1_Pos                 (17U)
10462 #define LPGPIO_BSRR_BR1_Msk                 (0x1UL << LPGPIO_BSRR_BR1_Pos)          /*!< 0x00020000 */
10463 #define LPGPIO_BSRR_BR1                     LPGPIO_BSRR_BR1_Msk
10464 #define LPGPIO_BSRR_BR2_Pos                 (18U)
10465 #define LPGPIO_BSRR_BR2_Msk                 (0x1UL << LPGPIO_BSRR_BR2_Pos)          /*!< 0x00040000 */
10466 #define LPGPIO_BSRR_BR2                     LPGPIO_BSRR_BR2_Msk
10467 #define LPGPIO_BSRR_BR3_Pos                 (19U)
10468 #define LPGPIO_BSRR_BR3_Msk                 (0x1UL << LPGPIO_BSRR_BR3_Pos)          /*!< 0x00080000 */
10469 #define LPGPIO_BSRR_BR3                     LPGPIO_BSRR_BR3_Msk
10470 #define LPGPIO_BSRR_BR4_Pos                 (20U)
10471 #define LPGPIO_BSRR_BR4_Msk                 (0x1UL << LPGPIO_BSRR_BR4_Pos)          /*!< 0x00100000 */
10472 #define LPGPIO_BSRR_BR4                     LPGPIO_BSRR_BR4_Msk
10473 #define LPGPIO_BSRR_BR5_Pos                 (21U)
10474 #define LPGPIO_BSRR_BR5_Msk                 (0x1UL << LPGPIO_BSRR_BR5_Pos)          /*!< 0x00200000 */
10475 #define LPGPIO_BSRR_BR5                     LPGPIO_BSRR_BR5_Msk
10476 #define LPGPIO_BSRR_BR6_Pos                 (22U)
10477 #define LPGPIO_BSRR_BR6_Msk                 (0x1UL << LPGPIO_BSRR_BR6_Pos)          /*!< 0x00400000 */
10478 #define LPGPIO_BSRR_BR6                     LPGPIO_BSRR_BR6_Msk
10479 #define LPGPIO_BSRR_BR7_Pos                 (23U)
10480 #define LPGPIO_BSRR_BR7_Msk                 (0x1UL << LPGPIO_BSRR_BR7_Pos)          /*!< 0x00800000 */
10481 #define LPGPIO_BSRR_BR7                     LPGPIO_BSRR_BR7_Msk
10482 #define LPGPIO_BSRR_BR8_Pos                 (24U)
10483 #define LPGPIO_BSRR_BR8_Msk                 (0x1UL << LPGPIO_BSRR_BR8_Pos)          /*!< 0x01000000 */
10484 #define LPGPIO_BSRR_BR8                     LPGPIO_BSRR_BR8_Msk
10485 #define LPGPIO_BSRR_BR9_Pos                 (25U)
10486 #define LPGPIO_BSRR_BR9_Msk                 (0x1UL << LPGPIO_BSRR_BR9_Pos)          /*!< 0x02000000 */
10487 #define LPGPIO_BSRR_BR9                     LPGPIO_BSRR_BR9_Msk
10488 #define LPGPIO_BSRR_BR10_Pos                (26U)
10489 #define LPGPIO_BSRR_BR10_Msk                (0x1UL << LPGPIO_BSRR_BR10_Pos)         /*!< 0x04000000 */
10490 #define LPGPIO_BSRR_BR10                    LPGPIO_BSRR_BR10_Msk
10491 #define LPGPIO_BSRR_BR11_Pos                (27U)
10492 #define LPGPIO_BSRR_BR11_Msk                (0x1UL << LPGPIO_BSRR_BR11_Pos)         /*!< 0x08000000 */
10493 #define LPGPIO_BSRR_BR11                    LPGPIO_BSRR_BR11_Msk
10494 #define LPGPIO_BSRR_BR12_Pos                (28U)
10495 #define LPGPIO_BSRR_BR12_Msk                (0x1UL << LPGPIO_BSRR_BR12_Pos)         /*!< 0x10000000 */
10496 #define LPGPIO_BSRR_BR12                    LPGPIO_BSRR_BR12_Msk
10497 #define LPGPIO_BSRR_BR13_Pos                (29U)
10498 #define LPGPIO_BSRR_BR13_Msk                (0x1UL << LPGPIO_BSRR_BR13_Pos)         /*!< 0x20000000 */
10499 #define LPGPIO_BSRR_BR13                    LPGPIO_BSRR_BR13_Msk
10500 #define LPGPIO_BSRR_BR14_Pos                (30U)
10501 #define LPGPIO_BSRR_BR14_Msk                (0x1UL << LPGPIO_BSRR_BR14_Pos)         /*!< 0x40000000 */
10502 #define LPGPIO_BSRR_BR14                    LPGPIO_BSRR_BR14_Msk
10503 #define LPGPIO_BSRR_BR15_Pos                (31U)
10504 #define LPGPIO_BSRR_BR15_Msk                (0x1UL << LPGPIO_BSRR_BR15_Pos)         /*!< 0x80000000 */
10505 #define LPGPIO_BSRR_BR15                    LPGPIO_BSRR_BR15_Msk
10506 
10507 /******************  Bits definition for LPGPIO_BRR register  ******************/
10508 #define LPGPIO_BRR_BR0_Pos                  (0U)
10509 #define LPGPIO_BRR_BR0_Msk                  (0x1UL << LPGPIO_BRR_BR0_Pos)           /*!< 0x00000001 */
10510 #define LPGPIO_BRR_BR0                      LPGPIO_BRR_BR0_Msk
10511 #define LPGPIO_BRR_BR1_Pos                  (1U)
10512 #define LPGPIO_BRR_BR1_Msk                  (0x1UL << LPGPIO_BRR_BR1_Pos)           /*!< 0x00000002 */
10513 #define LPGPIO_BRR_BR1                      LPGPIO_BRR_BR1_Msk
10514 #define LPGPIO_BRR_BR2_Pos                  (2U)
10515 #define LPGPIO_BRR_BR2_Msk                  (0x1UL << LPGPIO_BRR_BR2_Pos)           /*!< 0x00000004 */
10516 #define LPGPIO_BRR_BR2                      LPGPIO_BRR_BR2_Msk
10517 #define LPGPIO_BRR_BR3_Pos                  (3U)
10518 #define LPGPIO_BRR_BR3_Msk                  (0x1UL << LPGPIO_BRR_BR3_Pos)           /*!< 0x00000008 */
10519 #define LPGPIO_BRR_BR3                      LPGPIO_BRR_BR3_Msk
10520 #define LPGPIO_BRR_BR4_Pos                  (4U)
10521 #define LPGPIO_BRR_BR4_Msk                  (0x1UL << LPGPIO_BRR_BR4_Pos)           /*!< 0x00000010 */
10522 #define LPGPIO_BRR_BR4                      LPGPIO_BRR_BR4_Msk
10523 #define LPGPIO_BRR_BR5_Pos                  (5U)
10524 #define LPGPIO_BRR_BR5_Msk                  (0x1UL << LPGPIO_BRR_BR5_Pos)           /*!< 0x00000020 */
10525 #define LPGPIO_BRR_BR5                      LPGPIO_BRR_BR5_Msk
10526 #define LPGPIO_BRR_BR6_Pos                  (6U)
10527 #define LPGPIO_BRR_BR6_Msk                  (0x1UL << LPGPIO_BRR_BR6_Pos)           /*!< 0x00000040 */
10528 #define LPGPIO_BRR_BR6                      LPGPIO_BRR_BR6_Msk
10529 #define LPGPIO_BRR_BR7_Pos                  (7U)
10530 #define LPGPIO_BRR_BR7_Msk                  (0x1UL << LPGPIO_BRR_BR7_Pos)           /*!< 0x00000080 */
10531 #define LPGPIO_BRR_BR7                      LPGPIO_BRR_BR7_Msk
10532 #define LPGPIO_BRR_BR8_Pos                  (8U)
10533 #define LPGPIO_BRR_BR8_Msk                  (0x1UL << LPGPIO_BRR_BR8_Pos)           /*!< 0x00000100 */
10534 #define LPGPIO_BRR_BR8                      LPGPIO_BRR_BR8_Msk
10535 #define LPGPIO_BRR_BR9_Pos                  (9U)
10536 #define LPGPIO_BRR_BR9_Msk                  (0x1UL << LPGPIO_BRR_BR9_Pos)           /*!< 0x00000200 */
10537 #define LPGPIO_BRR_BR9                      LPGPIO_BRR_BR9_Msk
10538 #define LPGPIO_BRR_BR10_Pos                 (10U)
10539 #define LPGPIO_BRR_BR10_Msk                 (0x1UL << LPGPIO_BRR_BR10_Pos)          /*!< 0x00000400 */
10540 #define LPGPIO_BRR_BR10                     LPGPIO_BRR_BR10_Msk
10541 #define LPGPIO_BRR_BR11_Pos                 (11U)
10542 #define LPGPIO_BRR_BR11_Msk                 (0x1UL << LPGPIO_BRR_BR11_Pos)          /*!< 0x00000800 */
10543 #define LPGPIO_BRR_BR11                     LPGPIO_BRR_BR11_Msk
10544 #define LPGPIO_BRR_BR12_Pos                 (12U)
10545 #define LPGPIO_BRR_BR12_Msk                 (0x1UL << LPGPIO_BRR_BR12_Pos)          /*!< 0x00001000 */
10546 #define LPGPIO_BRR_BR12                     LPGPIO_BRR_BR12_Msk
10547 #define LPGPIO_BRR_BR13_Pos                 (13U)
10548 #define LPGPIO_BRR_BR13_Msk                 (0x1UL << LPGPIO_BRR_BR13_Pos)          /*!< 0x00002000 */
10549 #define LPGPIO_BRR_BR13                     LPGPIO_BRR_BR13_Msk
10550 #define LPGPIO_BRR_BR14_Pos                 (14U)
10551 #define LPGPIO_BRR_BR14_Msk                 (0x1UL << LPGPIO_BRR_BR14_Pos)          /*!< 0x00004000 */
10552 #define LPGPIO_BRR_BR14                     LPGPIO_BRR_BR14_Msk
10553 #define LPGPIO_BRR_BR15_Pos                 (15U)
10554 #define LPGPIO_BRR_BR15_Msk                 (0x1UL << LPGPIO_BRR_BR15_Pos)          /*!< 0x00008000 */
10555 #define LPGPIO_BRR_BR15                     LPGPIO_BRR_BR15_Msk
10556 
10557 /******************************************************************************/
10558 /*                                                                            */
10559 /*                                 ICACHE                                     */
10560 /*                                                                            */
10561 /******************************************************************************/
10562 /******************  Bit definition for ICACHE_CR register  *******************/
10563 #define ICACHE_CR_EN_Pos                    (0U)
10564 #define ICACHE_CR_EN_Msk                    (0x1UL << ICACHE_CR_EN_Pos)             /*!< 0x00000001 */
10565 #define ICACHE_CR_EN                        ICACHE_CR_EN_Msk                        /*!< Enable */
10566 #define ICACHE_CR_CACHEINV_Pos              (1U)
10567 #define ICACHE_CR_CACHEINV_Msk              (0x1UL << ICACHE_CR_CACHEINV_Pos)       /*!< 0x00000002 */
10568 #define ICACHE_CR_CACHEINV                  ICACHE_CR_CACHEINV_Msk                  /*!< Cache invalidation */
10569 #define ICACHE_CR_WAYSEL_Pos                (2U)
10570 #define ICACHE_CR_WAYSEL_Msk                (0x1UL << ICACHE_CR_WAYSEL_Pos)         /*!< 0x00000004 */
10571 #define ICACHE_CR_WAYSEL                    ICACHE_CR_WAYSEL_Msk                    /*!< Ways selection */
10572 #define ICACHE_CR_HITMEN_Pos                (16U)
10573 #define ICACHE_CR_HITMEN_Msk                (0x1UL << ICACHE_CR_HITMEN_Pos)         /*!< 0x00010000 */
10574 #define ICACHE_CR_HITMEN                    ICACHE_CR_HITMEN_Msk                    /*!< Hit monitor enable */
10575 #define ICACHE_CR_MISSMEN_Pos               (17U)
10576 #define ICACHE_CR_MISSMEN_Msk               (0x1UL << ICACHE_CR_MISSMEN_Pos)        /*!< 0x00020000 */
10577 #define ICACHE_CR_MISSMEN                   ICACHE_CR_MISSMEN_Msk                   /*!< Miss monitor enable */
10578 #define ICACHE_CR_HITMRST_Pos               (18U)
10579 #define ICACHE_CR_HITMRST_Msk               (0x1UL << ICACHE_CR_HITMRST_Pos)        /*!< 0x00040000 */
10580 #define ICACHE_CR_HITMRST                   ICACHE_CR_HITMRST_Msk                   /*!< Hit monitor reset */
10581 #define ICACHE_CR_MISSMRST_Pos              (19U)
10582 #define ICACHE_CR_MISSMRST_Msk              (0x1UL << ICACHE_CR_MISSMRST_Pos)       /*!< 0x00080000 */
10583 #define ICACHE_CR_MISSMRST                  ICACHE_CR_MISSMRST_Msk                  /*!< Miss monitor reset */
10584 
10585 /******************  Bit definition for ICACHE_SR register  *******************/
10586 #define ICACHE_SR_BUSYF_Pos                 (0U)
10587 #define ICACHE_SR_BUSYF_Msk                 (0x1UL << ICACHE_SR_BUSYF_Pos)          /*!< 0x00000001 */
10588 #define ICACHE_SR_BUSYF                     ICACHE_SR_BUSYF_Msk                     /*!< Busy flag */
10589 #define ICACHE_SR_BSYENDF_Pos               (1U)
10590 #define ICACHE_SR_BSYENDF_Msk               (0x1UL << ICACHE_SR_BSYENDF_Pos)        /*!< 0x00000002 */
10591 #define ICACHE_SR_BSYENDF                   ICACHE_SR_BSYENDF_Msk                   /*!< Busy end flag */
10592 #define ICACHE_SR_ERRF_Pos                  (2U)
10593 #define ICACHE_SR_ERRF_Msk                  (0x1UL << ICACHE_SR_ERRF_Pos)           /*!< 0x00000004 */
10594 #define ICACHE_SR_ERRF                      ICACHE_SR_ERRF_Msk                      /*!< Cache error flag */
10595 
10596 /******************  Bit definition for ICACHE_IER register  ******************/
10597 #define ICACHE_IER_BSYENDIE_Pos             (1U)
10598 #define ICACHE_IER_BSYENDIE_Msk             (0x1UL << ICACHE_IER_BSYENDIE_Pos)      /*!< 0x00000002 */
10599 #define ICACHE_IER_BSYENDIE                 ICACHE_IER_BSYENDIE_Msk                 /*!< Busy end interrupt enable */
10600 #define ICACHE_IER_ERRIE_Pos                (2U)
10601 #define ICACHE_IER_ERRIE_Msk                (0x1UL << ICACHE_IER_ERRIE_Pos)         /*!< 0x00000004 */
10602 #define ICACHE_IER_ERRIE                    ICACHE_IER_ERRIE_Msk                    /*!< Cache error interrupt enable */
10603 
10604 /******************  Bit definition for ICACHE_FCR register  ******************/
10605 #define ICACHE_FCR_CBSYENDF_Pos             (1U)
10606 #define ICACHE_FCR_CBSYENDF_Msk             (0x1UL << ICACHE_FCR_CBSYENDF_Pos)      /*!< 0x00000002 */
10607 #define ICACHE_FCR_CBSYENDF                 ICACHE_FCR_CBSYENDF_Msk                 /*!< Busy end flag clear */
10608 #define ICACHE_FCR_CERRF_Pos                (2U)
10609 #define ICACHE_FCR_CERRF_Msk                (0x1UL << ICACHE_FCR_CERRF_Pos)         /*!< 0x00000004 */
10610 #define ICACHE_FCR_CERRF                    ICACHE_FCR_CERRF_Msk                    /*!< Cache error flag clear */
10611 
10612 /******************  Bit definition for ICACHE_HMONR register  ****************/
10613 #define ICACHE_HMONR_HITMON_Pos             (0U)
10614 #define ICACHE_HMONR_HITMON_Msk             (0xFFFFFFFFUL << ICACHE_HMONR_HITMON_Pos) /*!< 0xFFFFFFFF */
10615 #define ICACHE_HMONR_HITMON                 ICACHE_HMONR_HITMON_Msk                 /*!< Cache hit monitor register */
10616 
10617 /******************  Bit definition for ICACHE_MMONR register  ****************/
10618 #define ICACHE_MMONR_MISSMON_Pos            (0U)
10619 #define ICACHE_MMONR_MISSMON_Msk            (0xFFFFUL << ICACHE_MMONR_MISSMON_Pos)  /*!< 0x0000FFFF */
10620 #define ICACHE_MMONR_MISSMON                ICACHE_MMONR_MISSMON_Msk                /*!< Cache miss monitor register */
10621 
10622 /******************  Bit definition for ICACHE_CRRx register  *****************/
10623 #define ICACHE_CRRx_BASEADDR_Pos            (0U)
10624 #define ICACHE_CRRx_BASEADDR_Msk            (0xFFUL << ICACHE_CRRx_BASEADDR_Pos)    /*!< 0x000000FF */
10625 #define ICACHE_CRRx_BASEADDR                ICACHE_CRRx_BASEADDR_Msk                /*!< Base address of region X to remap */
10626 #define ICACHE_CRRx_RSIZE_Pos               (9U)
10627 #define ICACHE_CRRx_RSIZE_Msk               (0x7UL << ICACHE_CRRx_RSIZE_Pos)        /*!< 0x00000E00 */
10628 #define ICACHE_CRRx_RSIZE                   ICACHE_CRRx_RSIZE_Msk                   /*!< Region X size */
10629 #define ICACHE_CRRx_RSIZE_0                 (0x1UL << ICACHE_CRRx_RSIZE_Pos)        /*!< 0x00000200 */
10630 #define ICACHE_CRRx_RSIZE_1                 (0x2UL << ICACHE_CRRx_RSIZE_Pos)        /*!< 0x00000400 */
10631 #define ICACHE_CRRx_RSIZE_2                 (0x4UL << ICACHE_CRRx_RSIZE_Pos)        /*!< 0x00000800 */
10632 #define ICACHE_CRRx_REN_Pos                 (15U)
10633 #define ICACHE_CRRx_REN_Msk                 (0x1UL << ICACHE_CRRx_REN_Pos)          /*!< 0x00008000 */
10634 #define ICACHE_CRRx_REN                     ICACHE_CRRx_REN_Msk                     /*!< Region X enable */
10635 #define ICACHE_CRRx_REMAPADDR_Pos           (16U)
10636 #define ICACHE_CRRx_REMAPADDR_Msk           (0x7FFUL << ICACHE_CRRx_REMAPADDR_Pos)  /*!< 0x07FF0000 */
10637 #define ICACHE_CRRx_REMAPADDR               ICACHE_CRRx_REMAPADDR_Msk               /*!< Remap address of Region X to be remapped */
10638 #define ICACHE_CRRx_MSTSEL_Pos              (28U)
10639 #define ICACHE_CRRx_MSTSEL_Msk              (0x1UL << ICACHE_CRRx_MSTSEL_Pos)       /*!< 0x10000000 */
10640 #define ICACHE_CRRx_MSTSEL                  ICACHE_CRRx_MSTSEL_Msk                  /*!< Region X AHB cache master selection */
10641 #define ICACHE_CRRx_HBURST_Pos              (31U)
10642 #define ICACHE_CRRx_HBURST_Msk              (0x1UL << ICACHE_CRRx_HBURST_Pos)       /*!< 0x80000000 */
10643 #define ICACHE_CRRx_HBURST                  ICACHE_CRRx_HBURST_Msk                  /*!< Region X output burst type */
10644 
10645 /******************************************************************************/
10646 /*                                                                            */
10647 /*                                 DCACHE                                     */
10648 /*                                                                            */
10649 /******************************************************************************/
10650 /******************  Bit definition for DCACHE_CR register  *******************/
10651 #define DCACHE_CR_EN_Pos                    (0U)
10652 #define DCACHE_CR_EN_Msk                    (0x1UL << DCACHE_CR_EN_Pos)             /*!< 0x00000001 */
10653 #define DCACHE_CR_EN                        DCACHE_CR_EN_Msk                        /*!< Enable */
10654 #define DCACHE_CR_CACHEINV_Pos              (1U)
10655 #define DCACHE_CR_CACHEINV_Msk              (0x1UL << DCACHE_CR_CACHEINV_Pos)       /*!< 0x00000002 */
10656 #define DCACHE_CR_CACHEINV                  DCACHE_CR_CACHEINV_Msk                  /*!< Cache invalidation */
10657 #define DCACHE_CR_CACHECMD_Pos              (8U)
10658 #define DCACHE_CR_CACHECMD_Msk              (0x7UL << DCACHE_CR_CACHECMD_Pos)       /*!< 0x00000700 */
10659 #define DCACHE_CR_CACHECMD                  DCACHE_CR_CACHECMD_Msk                  /*!< Cache command */
10660 #define DCACHE_CR_CACHECMD_0                (0x1UL << DCACHE_CR_CACHECMD_Pos)       /*!< 0x00000100 */
10661 #define DCACHE_CR_CACHECMD_1                (0x2UL << DCACHE_CR_CACHECMD_Pos)       /*!< 0x00000200 */
10662 #define DCACHE_CR_CACHECMD_2                (0x4UL << DCACHE_CR_CACHECMD_Pos)       /*!< 0x00000400 */
10663 #define DCACHE_CR_STARTCMD_Pos              (11U)
10664 #define DCACHE_CR_STARTCMD_Msk              (0x1UL << DCACHE_CR_STARTCMD_Pos)       /*!< 0x00000800 */
10665 #define DCACHE_CR_STARTCMD                  DCACHE_CR_STARTCMD_Msk                  /*!< Start command */
10666 #define DCACHE_CR_RHITMEN_Pos               (16U)
10667 #define DCACHE_CR_RHITMEN_Msk               (0x1UL << DCACHE_CR_RHITMEN_Pos)        /*!< 0x00010000 */
10668 #define DCACHE_CR_RHITMEN                   DCACHE_CR_RHITMEN_Msk                   /*!< Read Hit monitor enable */
10669 #define DCACHE_CR_RMISSMEN_Pos              (17U)
10670 #define DCACHE_CR_RMISSMEN_Msk              (0x1UL << DCACHE_CR_RMISSMEN_Pos)       /*!< 0x00020000 */
10671 #define DCACHE_CR_RMISSMEN                  DCACHE_CR_RMISSMEN_Msk                  /*!< Read Miss monitor enable */
10672 #define DCACHE_CR_RHITMRST_Pos              (18U)
10673 #define DCACHE_CR_RHITMRST_Msk              (0x1UL << DCACHE_CR_RHITMRST_Pos)       /*!< 0x00040000 */
10674 #define DCACHE_CR_RHITMRST                  DCACHE_CR_RHITMRST_Msk                  /*!< Read Hit monitor reset */
10675 #define DCACHE_CR_RMISSMRST_Pos             (19U)
10676 #define DCACHE_CR_RMISSMRST_Msk             (0x1UL << DCACHE_CR_RMISSMRST_Pos)      /*!< 0x00080000 */
10677 #define DCACHE_CR_RMISSMRST                 DCACHE_CR_RMISSMRST_Msk                 /*!< Read Miss monitor reset */
10678 #define DCACHE_CR_WHITMEN_Pos               (20U)
10679 #define DCACHE_CR_WHITMEN_Msk               (0x1UL << DCACHE_CR_WHITMEN_Pos)        /*!< 0x00100000 */
10680 #define DCACHE_CR_WHITMEN                   DCACHE_CR_WHITMEN_Msk                   /*!< Write Hit monitor enable */
10681 #define DCACHE_CR_WMISSMEN_Pos              (21U)
10682 #define DCACHE_CR_WMISSMEN_Msk              (0x1UL << DCACHE_CR_WMISSMEN_Pos)       /*!< 0x00200000 */
10683 #define DCACHE_CR_WMISSMEN                  DCACHE_CR_WMISSMEN_Msk                  /*!< Write Miss monitor enable */
10684 #define DCACHE_CR_WHITMRST_Pos              (22U)
10685 #define DCACHE_CR_WHITMRST_Msk              (0x1UL << DCACHE_CR_WHITMRST_Pos)       /*!< 0x00400000 */
10686 #define DCACHE_CR_WHITMRST                  DCACHE_CR_WHITMRST_Msk                  /*!< Write Hit monitor reset */
10687 #define DCACHE_CR_WMISSMRST_Pos             (23U)
10688 #define DCACHE_CR_WMISSMRST_Msk             (0x1UL << DCACHE_CR_WMISSMRST_Pos)      /*!< 0x00800000 */
10689 #define DCACHE_CR_WMISSMRST                 DCACHE_CR_WMISSMRST_Msk                 /*!< Write Miss monitor reset */
10690 #define DCACHE_CR_HBURST_Pos                (31U)
10691 #define DCACHE_CR_HBURST_Msk                (0x1UL << DCACHE_CR_HBURST_Pos)         /*!< 0x80000000 */
10692 #define DCACHE_CR_HBURST                    DCACHE_CR_HBURST_Msk                    /*!< Read burst type */
10693 
10694 /******************  Bit definition for DCACHE_SR register  *******************/
10695 #define DCACHE_SR_BUSYF_Pos                 (0U)
10696 #define DCACHE_SR_BUSYF_Msk                 (0x1UL << DCACHE_SR_BUSYF_Pos)          /*!< 0x00000001 */
10697 #define DCACHE_SR_BUSYF                     DCACHE_SR_BUSYF_Msk                     /*!< Busy flag */
10698 #define DCACHE_SR_BSYENDF_Pos               (1U)
10699 #define DCACHE_SR_BSYENDF_Msk               (0x1UL << DCACHE_SR_BSYENDF_Pos)        /*!< 0x00000002 */
10700 #define DCACHE_SR_BSYENDF                   DCACHE_SR_BSYENDF_Msk                   /*!< Busy end flag */
10701 #define DCACHE_SR_ERRF_Pos                  (2U)
10702 #define DCACHE_SR_ERRF_Msk                  (0x1UL << DCACHE_SR_ERRF_Pos)           /*!< 0x00000004 */
10703 #define DCACHE_SR_ERRF                      DCACHE_SR_ERRF_Msk                      /*!< Cache error flag */
10704 #define DCACHE_SR_BUSYCMDF_Pos              (3U)
10705 #define DCACHE_SR_BUSYCMDF_Msk              (0x1UL << DCACHE_SR_BUSYCMDF_Pos)       /*!< 0x00000008 */
10706 #define DCACHE_SR_BUSYCMDF                  DCACHE_SR_BUSYCMDF_Msk                  /*!< Busy command flag */
10707 #define DCACHE_SR_CMDENDF_Pos               (4U)
10708 #define DCACHE_SR_CMDENDF_Msk               (0x1UL << DCACHE_SR_CMDENDF_Pos)        /*!< 0x00000010 */
10709 #define DCACHE_SR_CMDENDF                   DCACHE_SR_CMDENDF_Msk                   /*!< Command end flag */
10710 
10711 /******************  Bit definition for DCACHE_IER register  ******************/
10712 #define DCACHE_IER_BSYENDIE_Pos             (1U)
10713 #define DCACHE_IER_BSYENDIE_Msk             (0x1UL << DCACHE_IER_BSYENDIE_Pos)      /*!< 0x00000002 */
10714 #define DCACHE_IER_BSYENDIE                 DCACHE_IER_BSYENDIE_Msk                 /*!< Busy end interrupt enable */
10715 #define DCACHE_IER_ERRIE_Pos                (2U)
10716 #define DCACHE_IER_ERRIE_Msk                (0x1UL << DCACHE_IER_ERRIE_Pos)         /*!< 0x00000004 */
10717 #define DCACHE_IER_ERRIE                    DCACHE_IER_ERRIE_Msk                    /*!< Cache error interrupt enable */
10718 #define DCACHE_IER_CMDENDIE_Pos             (4U)
10719 #define DCACHE_IER_CMDENDIE_Msk             (0x1UL << DCACHE_IER_CMDENDIE_Pos)      /*!< 0x00000010 */
10720 #define DCACHE_IER_CMDENDIE                 DCACHE_IER_CMDENDIE_Msk                 /*!< Command end interrupt enable */
10721 
10722 /******************  Bit definition for DCACHE_FCR register  ******************/
10723 #define DCACHE_FCR_CBSYENDF_Pos             (1U)
10724 #define DCACHE_FCR_CBSYENDF_Msk             (0x1UL << DCACHE_FCR_CBSYENDF_Pos)       /*!< 0x00000002 */
10725 #define DCACHE_FCR_CBSYENDF                 DCACHE_FCR_CBSYENDF_Msk                  /*!< Busy end flag clear */
10726 #define DCACHE_FCR_CERRF_Pos                (2U)
10727 #define DCACHE_FCR_CERRF_Msk                (0x1UL << DCACHE_FCR_CERRF_Pos)          /*!< 0x00000004 */
10728 #define DCACHE_FCR_CERRF                    DCACHE_FCR_CERRF_Msk                     /*!< Cache error flag clear */
10729 #define DCACHE_FCR_CCMDENDF_Pos             (4U)
10730 #define DCACHE_FCR_CCMDENDF_Msk             (0x1UL << DCACHE_FCR_CCMDENDF_Pos)       /*!< 0x00000010 */
10731 #define DCACHE_FCR_CCMDENDF                 DCACHE_FCR_CCMDENDF_Msk                  /*!< Command end flag clear */
10732 
10733 /******************  Bit definition for DCACHE_RHMONR register  ****************/
10734 #define DCACHE_RHMONR_RHITMON_Pos           (0U)
10735 #define DCACHE_RHMONR_RHITMON_Msk           (0xFFFFFFFFUL << DCACHE_RHMONR_RHITMON_Pos) /*!< 0xFFFFFFFF */
10736 #define DCACHE_RHMONR_RHITMON               DCACHE_RHMONR_RHITMON_Msk               /*!< Cache Read hit monitor register */
10737 
10738 /******************  Bit definition for DCACHE_RMMONR register  ****************/
10739 #define DCACHE_RMMONR_RMISSMON_Pos          (0U)
10740 #define DCACHE_RMMONR_RMISSMON_Msk          (0xFFFFUL << DCACHE_RMMONR_RMISSMON_Pos) /*!< 0x0000FFFF */
10741 #define DCACHE_RMMONR_RMISSMON              DCACHE_RMMONR_RMISSMON_Msk              /*!< Cache Read miss monitor register */
10742 
10743 /******************  Bit definition for DCACHE_WHMONR register  ****************/
10744 #define DCACHE_WHMONR_WHITMON_Pos           (0U)
10745 #define DCACHE_WHMONR_WHITMON_Msk           (0xFFFFFFFFUL << DCACHE_WHMONR_WHITMON_Pos) /*!< 0xFFFFFFFF */
10746 #define DCACHE_WHMONR_WHITMON               DCACHE_WHMONR_WHITMON_Msk               /*!< Cache Read hit monitor register */
10747 
10748 /******************  Bit definition for DCACHE_WMMONR register  ****************/
10749 #define DCACHE_WMMONR_WMISSMON_Pos          (0U)
10750 #define DCACHE_WMMONR_WMISSMON_Msk          (0xFFFFUL << DCACHE_WMMONR_WMISSMON_Pos) /*!< 0x0000FFFF */
10751 #define DCACHE_WMMONR_WMISSMON              DCACHE_WMMONR_WMISSMON_Msk              /*!< Cache Read miss monitor register */
10752 
10753 /******************  Bit definition for DCACHE_CMDRSADDRR register  ****************/
10754 #define DCACHE_CMDRSADDRR_CMDSTARTADDR_Pos  (0U)
10755 #define DCACHE_CMDRSADDRR_CMDSTARTADDR_Msk  (0xFFFFFFF0UL << DCACHE_CMDRSADDRR_CMDSTARTADDR_Pos) /*!< 0xFFFFFFF0 */
10756 #define DCACHE_CMDRSADDRR_CMDSTARTADDR      DCACHE_CMDRSADDRR_CMDSTARTADDR_Msk      /*!< Command start address */
10757 
10758 /******************  Bit definition for DCACHE_CMDREADDRR register  ****************/
10759 #define DCACHE_CMDREADDRR_CMDENDADDR_Pos    (0U)
10760 #define DCACHE_CMDREADDRR_CMDENDADDR_Msk    (0xFFFFFFF0UL << DCACHE_CMDREADDRR_CMDENDADDR_Pos) /*!< 0xFFFFFFF0 */
10761 #define DCACHE_CMDREADDRR_CMDENDADDR        DCACHE_CMDREADDRR_CMDENDADDR_Msk        /*!< Command end address */
10762 
10763 /******************************************************************************/
10764 /*                                                                            */
10765 /*                      Analog Comparators (COMP)                             */
10766 /*                                                                            */
10767 /******************************************************************************/
10768 /*!< ******************  Bit definition for COMPx_CSR register  ********************/
10769 #define COMP_CSR_EN_Pos                     (0U)
10770 #define COMP_CSR_EN_Msk                     (0x1UL << COMP_CSR_EN_Pos)              /*!< 0x00000001 */
10771 #define COMP_CSR_EN                         COMP_CSR_EN_Msk                         /*!< COMPx enable bit */
10772 #define COMP_CSR_INMSEL_Pos                 (4U)
10773 #define COMP_CSR_INMSEL_Msk                 (0xFUL << COMP_CSR_INMSEL_Pos)          /*!< 0x00070000 */
10774 #define COMP_CSR_INMSEL                     COMP_CSR_INMSEL_Msk                     /*!< COMPx input minus selection bit  */
10775 #define COMP_CSR_INMSEL_0                   (0x1UL << COMP_CSR_INMSEL_Pos)          /*!< 0x00010000 */
10776 #define COMP_CSR_INMSEL_1                   (0x2UL << COMP_CSR_INMSEL_Pos)          /*!< 0x00020000 */
10777 #define COMP_CSR_INMSEL_2                   (0x4UL << COMP_CSR_INMSEL_Pos)          /*!< 0x00040000 */
10778 #define COMP_CSR_INMSEL_3                   (0x8UL << COMP_CSR_INMSEL_Pos)          /*!< 0x00080000 */
10779 #define COMP_CSR_INPSEL_Pos                 (8U)
10780 #define COMP_CSR_INPSEL_Msk                 (0x3UL << COMP_CSR_INPSEL_Pos)          /*!< 0x00100000 */
10781 #define COMP_CSR_INPSEL                     COMP_CSR_INPSEL_Msk                     /*!< COMPx input plus selection bit */
10782 #define COMP_CSR_INPSEL_0                   (0x1UL << COMP_CSR_INPSEL_Pos)
10783 #define COMP_CSR_INPSEL_1                   (0x2UL << COMP_CSR_INPSEL_Pos)
10784 #define COMP_CSR_WINMODE_Pos                (11U)
10785 #define COMP_CSR_WINMODE_Msk                (0x1UL << COMP_CSR_WINMODE_Pos)         /*!< 0x00000010 */
10786 #define COMP_CSR_WINMODE                    COMP_CSR_WINMODE_Msk                    /*!< COMPx Windows mode selection bit */
10787 #define COMP_CSR_WINOUT_Pos                 (14U)
10788 #define COMP_CSR_WINOUT_Msk                 (0x1UL << COMP_CSR_WINOUT_Pos)          /*!< 0x00000008 */
10789 #define COMP_CSR_WINOUT                     COMP_CSR_WINOUT_Msk                     /*!< COMPx polarity selection bit */
10790 #define COMP_CSR_POLARITY_Pos               (15U)
10791 #define COMP_CSR_POLARITY_Msk               (0x1UL << COMP_CSR_POLARITY_Pos)        /*!< 0x00000008 */
10792 #define COMP_CSR_POLARITY                   COMP_CSR_POLARITY_Msk                   /*!< COMPx polarity selection bit */
10793 #define COMP_CSR_HYST_Pos                   (16U)
10794 #define COMP_CSR_HYST_Msk                   (0x3UL << COMP_CSR_HYST_Pos)            /*!< 0x00000300 */
10795 #define COMP_CSR_HYST                       COMP_CSR_HYST_Msk                       /*!< COMPx hysteresis selection bits */
10796 #define COMP_CSR_HYST_0                     (0x1UL << COMP_CSR_HYST_Pos)            /*!< 0x00000100 */
10797 #define COMP_CSR_HYST_1                     (0x2UL << COMP_CSR_HYST_Pos)            /*!< 0x00000200 */
10798 #define COMP_CSR_PWRMODE_Pos                (18U)
10799 #define COMP_CSR_PWRMODE_Msk                (0x3UL << COMP_CSR_PWRMODE_Pos)         /*!< 0x00003000 */
10800 #define COMP_CSR_PWRMODE                    COMP_CSR_PWRMODE_Msk                    /*!< COMPx Power Mode of the comparator */
10801 #define COMP_CSR_PWRMODE_0                  (0x1UL << COMP_CSR_PWRMODE_Pos)         /*!< 0x00001000 */
10802 #define COMP_CSR_PWRMODE_1                  (0x2UL << COMP_CSR_PWRMODE_Pos)         /*!< 0x00002000 */
10803 #define COMP_CSR_BLANKSEL_Pos               (20U)
10804 #define COMP_CSR_BLANKSEL_Msk               (0x1FUL << COMP_CSR_BLANKSEL_Pos)       /*!< 0x0F000000 */
10805 #define COMP_CSR_BLANKSEL                   COMP_CSR_BLANKSEL_Msk                   /*!< COMPx blanking source selection bits */
10806 #define COMP_CSR_BLANKSEL_0                 (0x1UL << COMP_CSR_BLANKSEL_Pos)        /*!< 0x01000000 */
10807 #define COMP_CSR_BLANKSEL_1                 (0x2UL << COMP_CSR_BLANKSEL_Pos)        /*!< 0x02000000 */
10808 #define COMP_CSR_BLANKSEL_2                 (0x4UL << COMP_CSR_BLANKSEL_Pos)        /*!< 0x04000000 */
10809 #define COMP_CSR_BLANKSEL_3                 (0x8UL << COMP_CSR_BLANKSEL_Pos)        /*!< 0x08000000 */
10810 #define COMP_CSR_BLANKSEL_4                 (0x10UL << COMP_CSR_BLANKSEL_Pos)       /*!< 0x01000000 */
10811 #define COMP_CSR_VALUE_Pos                  (30U)
10812 #define COMP_CSR_VALUE_Msk                  (0x1UL << COMP_CSR_VALUE_Pos)           /*!< 0x00000001 */
10813 #define COMP_CSR_VALUE                      COMP_CSR_VALUE_Msk                      /*!< COMPx enable bit */
10814 #define COMP_CSR_LOCK_Pos                   (31U)
10815 #define COMP_CSR_LOCK_Msk                   (0x1UL << COMP_CSR_LOCK_Pos)            /*!< 0x80000000 */
10816 #define COMP_CSR_LOCK                       COMP_CSR_LOCK_Msk                       /*!< COMPx Lock Bit */
10817 
10818 /******************************************************************************/
10819 /*                                                                            */
10820 /*                         Operational Amplifier (OPAMP)                      */
10821 /*                                                                            */
10822 /******************************************************************************/
10823 /*********************  Bit definition for OPAMPx_CSR register  ***************/
10824 #define OPAMP_CSR_OPAEN_Pos                 (0U)
10825 #define OPAMP_CSR_OPAEN_Msk                 (0x1UL << OPAMP_CSR_OPAEN_Pos)            /*!< 0x00000001 */
10826 #define OPAMP_CSR_OPAEN                     OPAMP_CSR_OPAEN_Msk                       /*!< OPAMP enable */
10827 #define OPAMP_CSR_OPALPM_Pos                (1U)
10828 #define OPAMP_CSR_OPALPM_Msk                (0x1UL << OPAMP_CSR_OPALPM_Pos)           /*!< 0x00000002 */
10829 #define OPAMP_CSR_OPALPM                    OPAMP_CSR_OPALPM_Msk                      /*!< Operational amplifier Low Power Mode */
10830 #define OPAMP_CSR_OPAMODE_Pos               (2U)
10831 #define OPAMP_CSR_OPAMODE_Msk               (0x3UL << OPAMP_CSR_OPAMODE_Pos)          /*!< 0x0000000C */
10832 #define OPAMP_CSR_OPAMODE                   OPAMP_CSR_OPAMODE_Msk                     /*!< Operational amplifier PGA mode */
10833 #define OPAMP_CSR_OPAMODE_0                 (0x1UL << OPAMP_CSR_OPAMODE_Pos)          /*!< 0x00000004 */
10834 #define OPAMP_CSR_OPAMODE_1                 (0x2UL << OPAMP_CSR_OPAMODE_Pos)          /*!< 0x00000008 */
10835 #define OPAMP_CSR_PGA_GAIN_Pos              (4U)
10836 #define OPAMP_CSR_PGA_GAIN_Msk              (0x3UL << OPAMP_CSR_PGA_GAIN_Pos)         /*!< 0x00000030 */
10837 #define OPAMP_CSR_PGA_GAIN                  OPAMP_CSR_PGA_GAIN_Msk                    /*!< Operational amplifier Programmable amplifier gain value */
10838 #define OPAMP_CSR_PGA_GAIN_0                (0x1UL << OPAMP_CSR_PGA_GAIN_Pos)         /*!< 0x00000010 */
10839 #define OPAMP_CSR_PGA_GAIN_1                (0x2UL << OPAMP_CSR_PGA_GAIN_Pos)         /*!< 0x00000020 */
10840 #define OPAMP_CSR_VM_SEL_Pos                (8U)
10841 #define OPAMP_CSR_VM_SEL_Msk                (0x3UL << OPAMP_CSR_VM_SEL_Pos)           /*!< 0x00000300 */
10842 #define OPAMP_CSR_VM_SEL                    OPAMP_CSR_VM_SEL_Msk                      /*!< Inverting input selection */
10843 #define OPAMP_CSR_VM_SEL_0                  (0x1UL << OPAMP_CSR_VM_SEL_Pos)           /*!< 0x00000100 */
10844 #define OPAMP_CSR_VM_SEL_1                  (0x2UL << OPAMP_CSR_VM_SEL_Pos)           /*!< 0x00000200 */
10845 #define OPAMP_CSR_VP_SEL_Pos                (10U)
10846 #define OPAMP_CSR_VP_SEL_Msk                (0x1UL << OPAMP_CSR_VP_SEL_Pos)           /*!< 0x00000400 */
10847 #define OPAMP_CSR_VP_SEL                    OPAMP_CSR_VP_SEL_Msk                      /*!< Non inverted input selection */
10848 #define OPAMP_CSR_CALON_Pos                 (12U)
10849 #define OPAMP_CSR_CALON_Msk                 (0x1UL << OPAMP_CSR_CALON_Pos)            /*!< 0x00001000 */
10850 #define OPAMP_CSR_CALON                     OPAMP_CSR_CALON_Msk                       /*!< Calibration mode enable */
10851 #define OPAMP_CSR_CALSEL_Pos                (13U)
10852 #define OPAMP_CSR_CALSEL_Msk                (0x1UL << OPAMP_CSR_CALSEL_Pos)           /*!< 0x00002000 */
10853 #define OPAMP_CSR_CALSEL                    OPAMP_CSR_CALSEL_Msk                      /*!< Calibration selection */
10854 #define OPAMP_CSR_USERTRIM_Pos              (14U)
10855 #define OPAMP_CSR_USERTRIM_Msk              (0x1UL << OPAMP_CSR_USERTRIM_Pos)         /*!< 0x00004000 */
10856 #define OPAMP_CSR_USERTRIM                  OPAMP_CSR_USERTRIM_Msk                    /*!< User trimming enable */
10857 #define OPAMP_CSR_CALOUT_Pos                (15U)
10858 #define OPAMP_CSR_CALOUT_Msk                (0x1UL << OPAMP_CSR_CALOUT_Pos)           /*!< 0x00008000 */
10859 #define OPAMP_CSR_CALOUT                    OPAMP_CSR_CALOUT_Msk                      /*!< Operational amplifier calibration output */
10860 #define OPAMP_CSR_HSM_Pos                   (30U)
10861 #define OPAMP_CSR_HSM_Msk                   (0x1UL << OPAMP_CSR_HSM_Pos)              /*!< 0x40000000 */
10862 #define OPAMP_CSR_HSM                       OPAMP_CSR_HSM_Msk                         /*!< Operational amplifier high speed mode */
10863 #define OPAMP_CSR_OPARANGE_Pos              (31U)
10864 #define OPAMP_CSR_OPARANGE_Msk              (0x1UL << OPAMP_CSR_OPARANGE_Pos)         /*!< 0x80000000 */
10865 #define OPAMP_CSR_OPARANGE                  OPAMP_CSR_OPARANGE_Msk                    /*!< Operational amplifier range setting */
10866 
10867 /*******************  Bit definition for OPAMPx_OTR register  ******************/
10868 #define OPAMP_OTR_TRIMOFFSETN_Pos           (0U)
10869 #define OPAMP_OTR_TRIMOFFSETN_Msk           (0x1FUL << OPAMP_OTR_TRIMOFFSETN_Pos)     /*!< 0x0000001F */
10870 #define OPAMP_OTR_TRIMOFFSETN               OPAMP_OTR_TRIMOFFSETN_Msk                 /*!< Trim for NMOS differential pairs */
10871 #define OPAMP_OTR_TRIMOFFSETP_Pos           (8U)
10872 #define OPAMP_OTR_TRIMOFFSETP_Msk           (0x1FUL << OPAMP_OTR_TRIMOFFSETP_Pos)     /*!< 0x00001F00 */
10873 #define OPAMP_OTR_TRIMOFFSETP               OPAMP_OTR_TRIMOFFSETP_Msk                 /*!< Trim for PMOS differential pairs */
10874 
10875 /*******************  Bit definition for OPAMPx_LPOTR register  ****************/
10876 #define OPAMP_LPOTR_TRIMLPOFFSETN_Pos       (0U)
10877 #define OPAMP_LPOTR_TRIMLPOFFSETN_Msk       (0x1FUL << OPAMP_LPOTR_TRIMLPOFFSETN_Pos) /*!< 0x0000001F */
10878 #define OPAMP_LPOTR_TRIMLPOFFSETN           OPAMP_LPOTR_TRIMLPOFFSETN_Msk             /*!< Trim for NMOS differential pairs */
10879 #define OPAMP_LPOTR_TRIMLPOFFSETP_Pos       (8U)
10880 #define OPAMP_LPOTR_TRIMLPOFFSETP_Msk       (0x1FUL << OPAMP_LPOTR_TRIMLPOFFSETP_Pos) /*!< 0x00001F00 */
10881 #define OPAMP_LPOTR_TRIMLPOFFSETP           OPAMP_LPOTR_TRIMLPOFFSETP_Msk             /*!< Trim for PMOS differential pairs */
10882 
10883 /******************************************************************************/
10884 /*                                                                            */
10885 /*                                 MDF/ADF                                    */
10886 /*                                                                            */
10887 /******************************************************************************/
10888 /*******************  Bit definition for MDF/ADF_GCR register  ********************/
10889 #define MDF_GCR_TRGO_Pos                    (0U)
10890 #define MDF_GCR_TRGO_Msk                    (0x1UL << MDF_GCR_TRGO_Pos)             /*!< 0x00000001 */
10891 #define MDF_GCR_TRGO                        MDF_GCR_TRGO_Msk                        /*!<Trigger output control */
10892 #define MDF_GCR_ILVNB_Pos                   (4U)
10893 #define MDF_GCR_ILVNB_Msk                   (0xFUL << MDF_GCR_ILVNB_Pos)            /*!< 0x000000F0 */
10894 #define MDF_GCR_ILVNB                       MDF_GCR_ILVNB_Msk                       /*!< Interleaved Number */
10895 
10896 /*******************  Bit definition for MDF/ADF_CKGCR register  ********************/
10897 #define MDF_CKGCR_CKDEN_Pos                 (0U)
10898 #define MDF_CKGCR_CKDEN_Msk                 (0x1UL << MDF_CKGCR_CKDEN_Pos)          /*!< 0x00000001 */
10899 #define MDF_CKGCR_CKDEN                     MDF_CKGCR_CKDEN_Msk                     /*!<CKGEN diveders enable */
10900 #define MDF_CKGCR_CCK0EN_Pos                (1U)
10901 #define MDF_CKGCR_CCK0EN_Msk                (0x1UL << MDF_CKGCR_CCK0EN_Pos)         /*!< 0x00000002 */
10902 #define MDF_CKGCR_CCK0EN                    MDF_CKGCR_CCK0EN_Msk                    /*!<CCK0 clock enable */
10903 #define MDF_CKGCR_CCK1EN_Pos                (2U)
10904 #define MDF_CKGCR_CCK1EN_Msk                (0x1UL << MDF_CKGCR_CCK1EN_Pos)         /*!< 0x00000004 */
10905 #define MDF_CKGCR_CCK1EN                    MDF_CKGCR_CCK1EN_Msk                    /*!<CCK1 clock enable */
10906 #define MDF_CKGCR_CKGMOD_Pos                (4U)
10907 #define MDF_CKGCR_CKGMOD_Msk                (0x1UL << MDF_CKGCR_CKGMOD_Pos)         /*!< 0x00000010 */
10908 #define MDF_CKGCR_CKGMOD                    MDF_CKGCR_CKGMOD_Msk                    /*!<Clock genartor mode */
10909 #define MDF_CKGCR_CCK0DIR_Pos               (5U)
10910 #define MDF_CKGCR_CCK0DIR_Msk               (0x1UL << MDF_CKGCR_CCK0DIR_Pos)        /*!< 0x00000020 */
10911 #define MDF_CKGCR_CCK0DIR                   MDF_CKGCR_CCK0DIR_Msk                   /*!<CCK0 clock direction */
10912 #define MDF_CKGCR_CCK1DIR_Pos               (6U)
10913 #define MDF_CKGCR_CCK1DIR_Msk               (0x1UL << MDF_CKGCR_CCK1DIR_Pos)        /*!< 0x00000040 */
10914 #define MDF_CKGCR_CCK1DIR                   MDF_CKGCR_CCK1DIR_Msk                   /*!<CCK1 clock direction */
10915 #define MDF_CKGCR_TRGSENS_Pos               (8U)
10916 #define MDF_CKGCR_TRGSENS_Msk               (0x1UL << MDF_CKGCR_TRGSENS_Pos)        /*!< 0x00000100 */
10917 #define MDF_CKGCR_TRGSENS                   MDF_CKGCR_TRGSENS_Msk                   /*!<CKGEN trigger sensitivity selection */
10918 #define MDF_CKGCR_TRGSRC_Pos                (12U)
10919 #define MDF_CKGCR_TRGSRC_Msk                (0xFUL << MDF_CKGCR_TRGSRC_Pos)         /*!< 0x0000F000 */
10920 #define MDF_CKGCR_TRGSRC                    MDF_CKGCR_TRGSRC_Msk                    /*!<Digital Filter trigger signal selection */
10921 #define MDF_CKGCR_TRGSRC_0                  (0x1UL << MDF_CKGCR_TRGSRC_Pos)         /*!< 0x00001000 */
10922 #define MDF_CKGCR_TRGSRC_1                  (0x2UL << MDF_CKGCR_TRGSRC_Pos)         /*!< 0x00002000 */
10923 #define MDF_CKGCR_TRGSRC_2                  (0x4UL << MDF_CKGCR_TRGSRC_Pos)         /*!< 0x00004000 */
10924 #define MDF_CKGCR_TRGSRC_3                  (0x8UL << MDF_CKGCR_TRGSRC_Pos)         /*!< 0x00008000 */
10925 #define MDF_CKGCR_CCKDIV_Pos                (16U)
10926 #define MDF_CKGCR_CCKDIV_Msk                (0xFUL << MDF_CKGCR_CCKDIV_Pos)         /*!< 0x000F0000 */
10927 #define MDF_CKGCR_CCKDIV                    MDF_CKGCR_CCKDIV_Msk                    /*!<Divider to control the MDF_CCK clock */
10928 #define MDF_CKGCR_PROCDIV_Pos               (24U)
10929 #define MDF_CKGCR_PROCDIV_Msk               (0x7FUL << MDF_CKGCR_PROCDIV_Pos)       /*!< 0x7F000000 */
10930 #define MDF_CKGCR_PROCDIV                   MDF_CKGCR_PROCDIV_Msk                   /*!<Divider to control the serial interface clock */
10931 #define MDF_CKGCR_CCKACTIVE_Pos             (31U)
10932 #define MDF_CKGCR_CCKACTIVE_Msk             (0x1UL << MDF_CKGCR_CCKACTIVE_Pos)      /*!< 0x80000000 */
10933 #define MDF_CKGCR_CCKACTIVE                 MDF_CKGCR_CCKACTIVE_Msk                 /*!<Clock generator active flag */
10934 
10935 /*******************  Bit definition for MDF/ADF_OR register  ********************/
10936 #define MDF_OR_OPTION_Pos                   (0U)
10937 #define MDF_OR_OPTION_Msk                   (0xFFFFFFFFUL << MDF_OR_OPTION_Pos)     /*!< 0xFFFFFFFF */
10938 #define MDF_OR_OPTION                       MDF_OR_OPTION_Msk                       /*!<Option Control Bits */
10939 
10940 /*******************  Bit definition for MDF/ADF_SITFxCR register  ********************/
10941 #define MDF_SITFCR_SITFEN_Pos               (0U)
10942 #define MDF_SITFCR_SITFEN_Msk               (0x1UL << MDF_SITFCR_SITFEN_Pos)        /*!< 0x00000001 */
10943 #define MDF_SITFCR_SITFEN                   MDF_SITFCR_SITFEN_Msk                   /*!<Serial interface enable */
10944 #define MDF_SITFCR_SCKSRC_Pos               (1U)
10945 #define MDF_SITFCR_SCKSRC_Msk               (0x3UL << MDF_SITFCR_SCKSRC_Pos)        /*!< 0x00000006 */
10946 #define MDF_SITFCR_SCKSRC                   MDF_SITFCR_SCKSRC_Msk                   /*!<Serial clock source */
10947 #define MDF_SITFCR_SCKSRC_0                 (0x1UL << MDF_SITFCR_SCKSRC_Pos)
10948 #define MDF_SITFCR_SCKSRC_1                 (0x2UL << MDF_SITFCR_SCKSRC_Pos)
10949 #define MDF_SITFCR_SITFMOD_Pos              (4U)
10950 #define MDF_SITFCR_SITFMOD_Msk              (0x3UL << MDF_SITFCR_SITFMOD_Pos)       /*!< 0x00000030 */
10951 #define MDF_SITFCR_SITFMOD                  MDF_SITFCR_SITFMOD_Msk                  /*!<Serial interface type */
10952 #define MDF_SITFCR_SITFMOD_0                (0x1UL << MDF_SITFCR_SITFMOD_Pos)       /*!< 0x00000010 */
10953 #define MDF_SITFCR_SITFMOD_1                (0x2UL << MDF_SITFCR_SITFMOD_Pos)       /*!< 0x00000020 */
10954 #define MDF_SITFCR_STH_Pos                  (8U)
10955 #define MDF_SITFCR_STH_Msk                  (0x1FUL << MDF_SITFCR_STH_Pos)          /*!< 0x00001F00 */
10956 #define MDF_SITFCR_STH                      MDF_SITFCR_STH_Msk                      /*!<Manchester Symbol threshold / SPI threshold */
10957 #define MDF_SITFCR_SITFACTIVE_Pos           (31U)
10958 #define MDF_SITFCR_SITFACTIVE_Msk           (0x1UL << MDF_SITFCR_SITFACTIVE_Pos)    /*!< 0x80000000 */
10959 #define MDF_SITFCR_SITFACTIVE               MDF_SITFCR_SITFACTIVE_Msk               /*!<Serial interface active flag */
10960 
10961 /*******************  Bit definition for MDF/ADF_BSMXxCR register  ********************/
10962 #define MDF_BSMXCR_BSSEL_Pos                (0U)
10963 #define MDF_BSMXCR_BSSEL_Msk                (0x1FUL << MDF_BSMXCR_BSSEL_Pos)        /*!< 0x0000001F */
10964 #define MDF_BSMXCR_BSSEL                    MDF_BSMXCR_BSSEL_Msk                    /*!<Bit Streal selection */
10965 #define MDF_BSMXCR_BSSEL_0                  (0x1UL  << MDF_BSMXCR_BSSEL_Pos)        /*!< 0x00000001 */
10966 #define MDF_BSMXCR_BSSEL_1                  (0x2UL  << MDF_BSMXCR_BSSEL_Pos)        /*!< 0x00000002 */
10967 #define MDF_BSMXCR_BSSEL_2                  (0x4UL  << MDF_BSMXCR_BSSEL_Pos)        /*!< 0x00000004 */
10968 #define MDF_BSMXCR_BSSEL_3                  (0x8UL  << MDF_BSMXCR_BSSEL_Pos)        /*!< 0x00000008 */
10969 #define MDF_BSMXCR_BSSEL_4                  (0x10UL  << MDF_BSMXCR_BSSEL_Pos)       /*!< 0x00000010 */
10970 #define MDF_BSMXCR_BSMXACTIVATE_Pos         (31U)
10971 #define MDF_BSMXCR_BSMXACTIVATE_Msk         (0x1UL << MDF_BSMXCR_BSMXACTIVATE_Pos)  /*!< 0x80000000 */
10972 #define MDF_BSMXCR_BSMXACTIVATE             MDF_BSMXCR_BSMXACTIVATE_Msk             /*!<Bit Streal activation flag */
10973 
10974 /*******************  Bit definition for MDF/ADF_DFLTxCR register  ********************/
10975 #define MDF_DFLTCR_DFLTEN_Pos               (0U)
10976 #define MDF_DFLTCR_DFLTEN_Msk               (0x1UL << MDF_DFLTCR_DFLTEN_Pos)        /*!< 0x00000001 */
10977 #define MDF_DFLTCR_DFLTEN                   MDF_DFLTCR_DFLTEN_Msk                   /*!<Digital filter enable */
10978 #define MDF_DFLTCR_DMAEN_Pos                (1U)
10979 #define MDF_DFLTCR_DMAEN_Msk                (0x1UL << MDF_DFLTCR_DMAEN_Pos)         /*!< 0x00000002 */
10980 #define MDF_DFLTCR_DMAEN                    MDF_DFLTCR_DMAEN_Msk                    /*!<DMA request enable */
10981 #define MDF_DFLTCR_FTH_Pos                  (2U)
10982 #define MDF_DFLTCR_FTH_Msk                  (0x1UL << MDF_DFLTCR_FTH_Pos)           /*!< 0x00000004 */
10983 #define MDF_DFLTCR_FTH                      MDF_DFLTCR_FTH_Msk                      /*!<RXFIFO Threshold selection */
10984 #define MDF_DFLTCR_ACQMOD_Pos               (4U)
10985 #define MDF_DFLTCR_ACQMOD_Msk               (0x7UL << MDF_DFLTCR_ACQMOD_Pos)        /*!< 0x00000004 */
10986 #define MDF_DFLTCR_ACQMOD                   MDF_DFLTCR_ACQMOD_Msk                   /*!<Digital filter trigger mode */
10987 #define MDF_DFLTCR_ACQMOD_0                 (0x1UL << MDF_DFLTCR_ACQMOD_Pos)        /*!< 0x00000010 */
10988 #define MDF_DFLTCR_ACQMOD_1                 (0x2UL << MDF_DFLTCR_ACQMOD_Pos)        /*!< 0x00000020 */
10989 #define MDF_DFLTCR_ACQMOD_2                 (0x4UL << MDF_DFLTCR_ACQMOD_Pos)        /*!< 0x00000040 */
10990 #define MDF_DFLTCR_TRGSENS_Pos              (8U)
10991 #define MDF_DFLTCR_TRGSENS_Msk              (0x1UL << MDF_DFLTCR_TRGSENS_Pos)       /*!< 0x00000004 */
10992 #define MDF_DFLTCR_TRGSENS                  MDF_DFLTCR_TRGSENS_Msk                  /*!<Digital filter trigger sensitivity selection */
10993 #define MDF_DFLTCR_TRGSRC_Pos               (12U)
10994 #define MDF_DFLTCR_TRGSRC_Msk               (0xFUL << MDF_DFLTCR_TRGSRC_Pos)        /*!< 0x00000004 */
10995 #define MDF_DFLTCR_TRGSRC                   MDF_DFLTCR_TRGSRC_Msk                   /*!<Digital filter trigger signal selection */
10996 #define MDF_DFLTCR_TRGSRC_0                 (0x1UL << MDF_DFLTCR_TRGSRC_Pos)        /*!< 0x00001000 */
10997 #define MDF_DFLTCR_TRGSRC_1                 (0x2UL << MDF_DFLTCR_TRGSRC_Pos)        /*!< 0x00002000 */
10998 #define MDF_DFLTCR_TRGSRC_2                 (0x4UL << MDF_DFLTCR_TRGSRC_Pos)        /*!< 0x00004000 */
10999 #define MDF_DFLTCR_TRGSRC_3                 (0x8UL << MDF_DFLTCR_TRGSRC_Pos)        /*!< 0x00008000 */
11000 #define MDF_DFLTCR_SNPSFMT_Pos              (16U)
11001 #define MDF_DFLTCR_SNPSFMT_Msk              (0x1UL << MDF_DFLTCR_SNPSFMT_Pos)       /*!< 0x00000004 */
11002 #define MDF_DFLTCR_SNPSFMT                  MDF_DFLTCR_SNPSFMT_Msk                  /*!<SnapShot Data format */
11003 #define MDF_DFLTCR_NBDIS_Pos                (20U)
11004 #define MDF_DFLTCR_NBDIS_Msk                (0xFFUL << MDF_DFLTCR_NBDIS_Pos)        /*!< 0x00000004 */
11005 #define MDF_DFLTCR_NBDIS                    MDF_DFLTCR_NBDIS_Msk                    /*!<Number of samples to be discard */
11006 #define MDF_DFLTCR_DFLTRUN_Pos              (30U)
11007 #define MDF_DFLTCR_DFLTRUN_Msk              (0x1UL << MDF_DFLTCR_DFLTRUN_Pos)       /*!< 0x00000004 */
11008 #define MDF_DFLTCR_DFLTRUN                  MDF_DFLTCR_DFLTRUN_Msk                  /*!<Digital filter run status flag */
11009 #define MDF_DFLTCR_DFLTACTIVE_Pos           (31U)
11010 #define MDF_DFLTCR_DFLTACTIVE_Msk           (0x1UL << MDF_DFLTCR_DFLTACTIVE_Pos)    /*!< 0x00000004 */
11011 #define MDF_DFLTCR_DFLTACTIVE               MDF_DFLTCR_DFLTACTIVE_Msk               /*!<Digital filter active flag */
11012 
11013 /*******************  Bit definition for MDF/ADF_DFLTxCICR register  ********************/
11014 #define MDF_DFLTCICR_DATSRC_Pos             (0U)
11015 #define MDF_DFLTCICR_DATSRC_Msk             (0x3UL << MDF_DFLTCICR_DATSRC_Pos)      /*!< 0x00000003 */
11016 #define MDF_DFLTCICR_DATSRC                 MDF_DFLTCICR_DATSRC_Msk                 /*!<Source Data for the digital filter */
11017 #define MDF_DFLTCICR_DATSRC_0               (0x1UL << MDF_DFLTCICR_DATSRC_Pos)      /*!< 0x00000001 */
11018 #define MDF_DFLTCICR_DATSRC_1               (0x2UL << MDF_DFLTCICR_DATSRC_Pos)      /*!< 0x00000002 */
11019 #define MDF_DFLTCICR_CICMOD_Pos             (4U)
11020 #define MDF_DFLTCICR_CICMOD_Msk             (0x7UL << MDF_DFLTCICR_CICMOD_Pos)      /*!< 0x00000070 */
11021 #define MDF_DFLTCICR_CICMOD                 MDF_DFLTCICR_CICMOD_Msk                 /*!<Select the CIC Mode*/
11022 #define MDF_DFLTCICR_CICMOD_0               (0x1UL << MDF_DFLTCICR_CICMOD_Pos)      /*!< 0x00000010 */
11023 #define MDF_DFLTCICR_CICMOD_1               (0x2UL << MDF_DFLTCICR_CICMOD_Pos)      /*!< 0x00000020 */
11024 #define MDF_DFLTCICR_CICMOD_2               (0x4UL << MDF_DFLTCICR_CICMOD_Pos)      /*!< 0x00000030 */
11025 #define MDF_DFLTCICR_MCICD_Pos              (8U)
11026 #define MDF_DFLTCICR_MCICD_Msk              (0x1FFUL << MDF_DFLTCICR_MCICD_Pos)     /*!< 0x0001FF00 */
11027 #define MDF_DFLTCICR_MCICD                  MDF_DFLTCICR_MCICD_Msk                  /*!<CIC decimation ratio selection*/
11028 #define MDF_DFLTCICR_SCALE_Pos              (20U)
11029 #define MDF_DFLTCICR_SCALE_Msk              (0x3FUL << MDF_DFLTCICR_SCALE_Pos)      /*!< 0x03F00000 */
11030 #define MDF_DFLTCICR_SCALE                  MDF_DFLTCICR_SCALE_Msk                  /*!<Scaling factor selection*/
11031 
11032 /*******************  Bit definition for MDF/ADF_DFLTxRSFR register  ********************/
11033 #define MDF_DFLTRSFR_RSFLTBYP_Pos           (0U)
11034 #define MDF_DFLTRSFR_RSFLTBYP_Msk           (0x1UL << MDF_DFLTRSFR_RSFLTBYP_Pos)    /*!< 0x00000001 */
11035 #define MDF_DFLTRSFR_RSFLTBYP               MDF_DFLTRSFR_RSFLTBYP_Msk               /*!<Reshape filter bypass*/
11036 #define MDF_DFLTRSFR_RSFLTD_Pos             (4U)
11037 #define MDF_DFLTRSFR_RSFLTD_Msk             (0x1UL << MDF_DFLTRSFR_RSFLTD_Pos)      /*!< 0x00000010 */
11038 #define MDF_DFLTRSFR_RSFLTD                 MDF_DFLTRSFR_RSFLTD_Msk                 /*!<Reshape filter decimation ratio*/
11039 #define MDF_DFLTRSFR_HPFBYP_Pos             (7U)
11040 #define MDF_DFLTRSFR_HPFBYP_Msk             (0x1UL << MDF_DFLTRSFR_HPFBYP_Pos)      /*!< 0x00000080 */
11041 #define MDF_DFLTRSFR_HPFBYP                 MDF_DFLTRSFR_HPFBYP_Msk                 /*!<High-pass filter bypass*/
11042 #define MDF_DFLTRSFR_HPFC_Pos               (8U)
11043 #define MDF_DFLTRSFR_HPFC_Msk               (0x3UL << MDF_DFLTRSFR_HPFC_Pos)        /*!< 0x00000080 */
11044 #define MDF_DFLTRSFR_HPFC                   MDF_DFLTRSFR_HPFC_Msk                   /*!<High-pass filter cut-off frequency*/
11045 #define MDF_DFLTRSFR_HPFC_0                 (0x1UL << MDF_DFLTRSFR_HPFC_Pos)
11046 #define MDF_DFLTRSFR_HPFC_1                 (0x2UL << MDF_DFLTRSFR_HPFC_Pos)
11047 
11048 /*******************  Bit definition for MDF/ADF_DFLTxINTR register  ********************/
11049 #define MDF_DFLTINTR_INTDIV_Pos             (0U)
11050 #define MDF_DFLTINTR_INTDIV_Msk             (0x3UL << MDF_DFLTINTR_INTDIV_Pos)      /*!< 0x00000003 */
11051 #define MDF_DFLTINTR_INTDIV                 MDF_DFLTINTR_INTDIV_Msk                 /*!<Integrator output dividion*/
11052 #define MDF_DFLTINTR_INTDIV_0               (0x1UL << MDF_DFLTINTR_INTDIV_Pos)      /*!< 0x00000001 */
11053 #define MDF_DFLTINTR_INTDIV_1               (0x2UL << MDF_DFLTINTR_INTDIV_Pos)      /*!< 0x00000002 */
11054 #define MDF_DFLTINTR_INTVAL_Pos             (4U)
11055 #define MDF_DFLTINTR_INTVAL_Msk             (0x7FUL << MDF_DFLTINTR_INTVAL_Pos)     /*!< 0x000007F0 */
11056 #define MDF_DFLTINTR_INTVAL                 MDF_DFLTINTR_INTVAL_Msk                 /*!<Integrator value selection*/
11057 
11058 /*******************  Bit definition for MDF/ADF_OLDxCR register  ********************/
11059 #define MDF_OLDCR_OLDEN_Pos                 (0U)
11060 #define MDF_OLDCR_OLDEN_Msk                 (0x1UL << MDF_OLDCR_OLDEN_Pos)          /*!< 0x00000001 */
11061 #define MDF_OLDCR_OLDEN                     MDF_OLDCR_OLDEN_Msk                     /*!<OLD enable*/
11062 #define MDF_OLDCR_THINB_Pos                 (1U)
11063 #define MDF_OLDCR_THINB_Msk                 (0x1UL << MDF_OLDCR_THINB_Pos)          /*!< 0x00000002 */
11064 #define MDF_OLDCR_THINB                     MDF_OLDCR_THINB_Msk                     /*!<OLD threshold in band*/
11065 #define MDF_OLDCR_BKOLD_Pos                 (4U)
11066 #define MDF_OLDCR_BKOLD_Msk                 (0xFUL << MDF_OLDCR_BKOLD_Pos)          /*!< 0x000000F0 */
11067 #define MDF_OLDCR_BKOLD                     MDF_OLDCR_BKOLD_Msk                     /*!<Bteak signal assignment for OLD*/
11068 #define MDF_OLDCR_BKOLD_0                   (0x1UL << MDF_OLDCR_BKOLD_Pos)          /*!< 0x00000010 */
11069 #define MDF_OLDCR_BKOLD_1                   (0x2UL << MDF_OLDCR_BKOLD_Pos)          /*!< 0x00000020 */
11070 #define MDF_OLDCR_BKOLD_2                   (0x4UL << MDF_OLDCR_BKOLD_Pos)          /*!< 0x00000040 */
11071 #define MDF_OLDCR_BKOLD_3                   (0x8UL << MDF_OLDCR_BKOLD_Pos)          /*!< 0x00000080 */
11072 #define MDF_OLDCR_ACICN_Pos                 (12U)
11073 #define MDF_OLDCR_ACICN_Msk                 (0x3UL << MDF_OLDCR_ACICN_Pos)          /*!< 0x00003000 */
11074 #define MDF_OLDCR_ACICN                     MDF_OLDCR_ACICN_Msk                     /*!<OLD CIC order selection*/
11075 #define MDF_OLDCR_ACICN_0                   (0x1UL << MDF_OLDCR_ACICN_Pos)          /*!< 0x00001000 */
11076 #define MDF_OLDCR_ACICN_1                   (0x2UL << MDF_OLDCR_ACICN_Pos)          /*!< 0x00002000 */
11077 #define MDF_OLDCR_ACICD_Pos                 (17U)
11078 #define MDF_OLDCR_ACICD_Msk                 (0x1FUL << MDF_OLDCR_ACICD_Pos)         /*!< 0x003E0000 */
11079 #define MDF_OLDCR_ACICD                     MDF_OLDCR_ACICD_Msk                     /*!<OLD CIC decimation ratio selection*/
11080 #define MDF_OLDCR_OLDACTIVE_Pos             (31U)
11081 #define MDF_OLDCR_OLDACTIVE_Msk             (0x1UL << MDF_OLDCR_OLDACTIVE_Pos)      /*!< 0x80000000 */
11082 #define MDF_OLDCR_OLDACTIVE                 MDF_OLDCR_OLDACTIVE_Msk                 /*!<OLD active flag*/
11083 
11084 /*******************  Bit definition for MDF/ADF_OLDxTHLR register  ********************/
11085 #define MDF_OLDTHLR_OLDTHL_Pos              (0U)
11086 #define MDF_OLDTHLR_OLDTHL_Msk              (0x3FFFFFFUL << MDF_OLDTHLR_OLDTHL_Pos) /*!< 0x03FFFFFF */
11087 #define MDF_OLDTHLR_OLDTHL                  MDF_OLDTHLR_OLDTHL_Msk                  /*!<OLD Low threshold value*/
11088 
11089 /*******************  Bit definition for MDF/ADF_OLDxTHHR register  ********************/
11090 #define MDF_OLDTHHR_OLDTHH_Pos              (0U)
11091 #define MDF_OLDTHHR_OLDTHH_Msk              (0x3FFFFFFUL << MDF_OLDTHHR_OLDTHH_Pos) /*!< 0x03FFFFFF */
11092 #define MDF_OLDTHHR_OLDTHH                  MDF_OLDTHHR_OLDTHH_Msk                  /*!<OLD High threshold value*/
11093 
11094 /*******************  Bit definition for MDF/ADF_DLYxCR register  ********************/
11095 #define MDF_DLYCR_SKPDLY_Pos                (0U)
11096 #define MDF_DLYCR_SKPDLY_Msk                (0x7FUL << MDF_DLYCR_SKPDLY_Pos)        /*!< 0x0000007F */
11097 #define MDF_DLYCR_SKPDLY                    MDF_DLYCR_SKPDLY_Msk                    /*!<Delay to apply to a bitstream*/
11098 #define MDF_DLYCR_SKPBF_Pos                 (31U)
11099 #define MDF_DLYCR_SKPBF_Msk                 (0x1UL << MDF_DLYCR_SKPBF_Pos)          /*!< 0x80000000 */
11100 #define MDF_DLYCR_SKPBF                     MDF_DLYCR_SKPBF_Msk                     /*!<DSkip Busy Flag*/
11101 
11102 /*******************  Bit definition for MDF/ADF_SCDxCR register  ********************/
11103 #define MDF_SCDCR_SCDEN_Pos                 (0U)
11104 #define MDF_SCDCR_SCDEN_Msk                 (0x1UL << MDF_SCDCR_SCDEN_Pos)          /*!< 0x00000001 */
11105 #define MDF_SCDCR_SCDEN                     MDF_SCDCR_SCDEN_Msk                     /*!<Short circuit detector enable*/
11106 #define MDF_SCDCR_BKSCD_Pos                 (4U)
11107 #define MDF_SCDCR_BKSCD_Msk                 (0xFUL << MDF_SCDCR_BKSCD_Pos)          /*!< 0x000000F0 */
11108 #define MDF_SCDCR_BKSCD                     MDF_SCDCR_BKSCD_Msk                     /*!<Break signal assignment to short circuit detector */
11109 #define MDF_SCDCR_BKSCD_0                   (0x1UL << MDF_SCDCR_BKSCD_Pos)          /*!< 0x00000010 */
11110 #define MDF_SCDCR_BKSCD_1                   (0x2UL << MDF_SCDCR_BKSCD_Pos)          /*!< 0x00000020 */
11111 #define MDF_SCDCR_BKSCD_2                   (0x4UL << MDF_SCDCR_BKSCD_Pos)          /*!< 0x00000040 */
11112 #define MDF_SCDCR_BKSCD_3                   (0x8UL << MDF_SCDCR_BKSCD_Pos)          /*!< 0x00000080 */
11113 #define MDF_SCDCR_SCDT_Pos                  (12U)
11114 #define MDF_SCDCR_SCDT_Msk                  (0xFFUL << MDF_SCDCR_SCDT_Pos)          /*!< 0x00000FF00 */
11115 #define MDF_SCDCR_SCDT                      MDF_SCDCR_SCDT_Msk                      /*!<Short circuit detector threshold*/
11116 #define MDF_SCDCR_SCDACTIVE_Pos             (31U)
11117 #define MDF_SCDCR_SCDACTIVE_Msk             (0x1UL << MDF_SCDCR_SCDACTIVE_Pos)      /*!< 0x80000000 */
11118 #define MDF_SCDCR_SCDACTIVE                 MDF_SCDCR_SCDACTIVE_Msk                 /*!<Short circuit detector active flag*/
11119 
11120 /*******************  Bit definition for MDF/ADF_DFLTIER register  ********************/
11121 #define MDF_DFLTIER_FTHIE_Pos               (0U)
11122 #define MDF_DFLTIER_FTHIE_Msk               (0x1UL << MDF_DFLTIER_FTHIE_Pos)        /*!< 0x00000001 */
11123 #define MDF_DFLTIER_FTHIE                   MDF_DFLTIER_FTHIE_Msk                   /*!<RXFIFO threshold interrupt enable*/
11124 #define MDF_DFLTIER_DOVRIE_Pos              (1U)
11125 #define MDF_DFLTIER_DOVRIE_Msk              (0x1UL << MDF_DFLTIER_DOVRIE_Pos)       /*!< 0x00000002 */
11126 #define MDF_DFLTIER_DOVRIE                  MDF_DFLTIER_DOVRIE_Msk                  /*!<Data overflow interrupt enable*/
11127 #define MDF_DFLTIER_SSDRIE_Pos              (2U)
11128 #define MDF_DFLTIER_SSDRIE_Msk              (0x1UL << MDF_DFLTIER_SSDRIE_Pos)       /*!< 0x00000004 */
11129 #define MDF_DFLTIER_SSDRIE                  MDF_DFLTIER_SSDRIE_Msk                  /*!<Snapshot data ready interrupt enable*/
11130 #define MDF_DFLTIER_OLDIE_Pos               (4U)
11131 #define MDF_DFLTIER_OLDIE_Msk               (0x1UL << MDF_DFLTIER_OLDIE_Pos)        /*!< 0x00000010 */
11132 #define MDF_DFLTIER_OLDIE                   MDF_DFLTIER_OLDIE_Msk                   /*!<OLD interrupt enable*/
11133 #define MDF_DFLTIER_SSOVRIE_Pos             (7U)
11134 #define MDF_DFLTIER_SSOVRIE_Msk             (0x1UL << MDF_DFLTIER_SSOVRIE_Pos)      /*!< 0x00000080 */
11135 #define MDF_DFLTIER_SSOVRIE                 MDF_DFLTIER_SSOVRIE_Msk                 /*!<Snapshot overrun interrupt enable*/
11136 #define MDF_DFLTIER_SCDIE_Pos               (8U)
11137 #define MDF_DFLTIER_SCDIE_Msk               (0x1UL << MDF_DFLTIER_SCDIE_Pos)        /*!< 0x00000100 */
11138 #define MDF_DFLTIER_SCDIE                   MDF_DFLTIER_SCDIE_Msk                   /*!<Short circuit dtector interrupt enable*/
11139 #define MDF_DFLTIER_SATIE_Pos               (9U)
11140 #define MDF_DFLTIER_SATIE_Msk               (0x1UL << MDF_DFLTIER_SATIE_Pos)        /*!< 0x00000200 */
11141 #define MDF_DFLTIER_SATIE                   MDF_DFLTIER_SATIE_Msk                   /*!<Saturation detection interrupt enable*/
11142 #define MDF_DFLTIER_CKABIE_Pos              (10U)
11143 #define MDF_DFLTIER_CKABIE_Msk              (0x1UL << MDF_DFLTIER_CKABIE_Pos)       /*!< 0x00000400 */
11144 #define MDF_DFLTIER_CKABIE                  MDF_DFLTIER_CKABIE_Msk                  /*!<Clock absence detection interrupt enable*/
11145 #define MDF_DFLTIER_RFOVRIE_Pos             (11U)
11146 #define MDF_DFLTIER_RFOVRIE_Msk             (0x1UL << MDF_DFLTIER_RFOVRIE_Pos)      /*!< 0x00000800 */
11147 #define MDF_DFLTIER_RFOVRIE                 MDF_DFLTIER_RFOVRIE_Msk                 /*!<reshape filter overrun interrupt enable*/
11148 #define MDF_DFLTIER_SDDETIE_Pos             (12U)
11149 #define MDF_DFLTIER_SDDETIE_Msk             (0x1UL << MDF_DFLTIER_SDDETIE_Pos)      /*!< 0x00001000 */
11150 #define MDF_DFLTIER_SDDETIE                 MDF_DFLTIER_SDDETIE_Msk                 /*!<SAD interrupt enable*/
11151 #define MDF_DFLTIER_SDLVLIE_Pos             (13U)
11152 #define MDF_DFLTIER_SDLVLIE_Msk             (0x1UL << MDF_DFLTIER_SDLVLIE_Pos)      /*!< 0x00002000 */
11153 #define MDF_DFLTIER_SDLVLIE                 MDF_DFLTIER_SDLVLIE_Msk                 /*!<Sound level value ready interrupt enable*/
11154 
11155 /*******************  Bit definition for MDF/ADF_DFLTISR register  ********************/
11156 #define MDF_DFLTISR_FTHF_Pos                (0U)
11157 #define MDF_DFLTISR_FTHF_Msk                (0x1UL << MDF_DFLTISR_FTHF_Pos)         /*!< 0x00000001 */
11158 #define MDF_DFLTISR_FTHF                    MDF_DFLTISR_FTHF_Msk                    /*!<RXFIFO threshold interrupt flag*/
11159 #define MDF_DFLTISR_DOVRF_Pos               (1U)
11160 #define MDF_DFLTISR_DOVRF_Msk               (0x1UL << MDF_DFLTISR_DOVRF_Pos)        /*!< 0x00000002 */
11161 #define MDF_DFLTISR_DOVRF                   MDF_DFLTISR_DOVRF_Msk                   /*!<Data overflow interrupt flag*/
11162 #define MDF_DFLTISR_SSDRF_Pos               (2U)
11163 #define MDF_DFLTISR_SSDRF_Msk               (0x1UL << MDF_DFLTISR_SSDRF_Pos)        /*!< 0x00000004 */
11164 #define MDF_DFLTISR_SSDRF                   MDF_DFLTISR_SSDRF_Msk                   /*!<Snapshot data ready interrupt flag*/
11165 #define MDF_DFLTISR_RXNEF_Pos               (3U)
11166 #define MDF_DFLTISR_RXNEF_Msk               (0x1UL << MDF_DFLTISR_RXNEF_Pos)        /*!< 0x00000008 */
11167 #define MDF_DFLTISR_RXNEF                   MDF_DFLTISR_RXNEF_Msk                   /*!<Snapshot data ready interrupt flag*/
11168 #define MDF_DFLTISR_OLDF_Pos                (4U)
11169 #define MDF_DFLTISR_OLDF_Msk                (0x1UL << MDF_DFLTISR_OLDF_Pos)         /*!< 0x00000010 */
11170 #define MDF_DFLTISR_OLDF                    MDF_DFLTISR_OLDF_Msk                    /*!<OLD interrupt flag*/
11171 #define MDF_DFLTISR_THLF_Pos                (5U)
11172 #define MDF_DFLTISR_THLF_Msk                (0x1UL << MDF_DFLTISR_THLF_Pos)         /*!< 0x00000010 */
11173 #define MDF_DFLTISR_THLF                    MDF_DFLTISR_THLF_Msk                    /*!<OLD interrupt flag*/
11174 #define MDF_DFLTISR_THHF_Pos                (6U)
11175 #define MDF_DFLTISR_THHF_Msk                (0x1UL << MDF_DFLTISR_THHF_Pos)         /*!< 0x00000010 */
11176 #define MDF_DFLTISR_THHF                    MDF_DFLTISR_THHF_Msk                    /*!<OLD interrupt flag*/
11177 #define MDF_DFLTISR_SSOVRF_Pos              (7U)
11178 #define MDF_DFLTISR_SSOVRF_Msk              (0x1UL << MDF_DFLTISR_SSOVRF_Pos)      /*!< 0x00000080 */
11179 #define MDF_DFLTISR_SSOVRF                  MDF_DFLTISR_SSOVRF_Msk                  /*!<Snapshot overrun interrupt flag*/
11180 #define MDF_DFLTISR_SCDF_Pos                (8U)
11181 #define MDF_DFLTISR_SCDF_Msk                (0x1UL << MDF_DFLTISR_SCDF_Pos)         /*!< 0x00000100 */
11182 #define MDF_DFLTISR_SCDF                    MDF_DFLTISR_SCDF_Msk                    /*!<Short circuit dtector interrupt flag*/
11183 #define MDF_DFLTISR_SATF_Pos                (9U)
11184 #define MDF_DFLTISR_SATF_Msk                (0x1UL << MDF_DFLTISR_SATF_Pos)         /*!< 0x00000200 */
11185 #define MDF_DFLTISR_SATF                    MDF_DFLTISR_SATF_Msk                    /*!<Saturation detection interrupt flag*/
11186 #define MDF_DFLTISR_CKABF_Pos               (10U)
11187 #define MDF_DFLTISR_CKABF_Msk               (0x1UL << MDF_DFLTISR_CKABF_Pos)        /*!< 0x00000400 */
11188 #define MDF_DFLTISR_CKABF                   MDF_DFLTISR_CKABF_Msk                   /*!<Clock absence detection interrupt flag*/
11189 #define MDF_DFLTISR_RFOVRF_Pos              (11U)
11190 #define MDF_DFLTISR_RFOVRF_Msk              (0x1UL << MDF_DFLTISR_RFOVRF_Pos)       /*!< 0x00000800 */
11191 #define MDF_DFLTISR_RFOVRF                  MDF_DFLTISR_RFOVRF_Msk                  /*!<reshape filter overrun interrupt flag*/
11192 #define MDF_DFLTISR_SDDETF_Pos              (12U)
11193 #define MDF_DFLTISR_SDDETF_Msk              (0x1UL << MDF_DFLTISR_SDDETF_Pos)        /*!< 0x00001000 */
11194 #define MDF_DFLTISR_SDDETF                  MDF_DFLTISR_SDDETF_Msk                  /*!<SAD interrupt flag*/
11195 #define MDF_DFLTISR_SDLVLF_Pos              (13U)
11196 #define MDF_DFLTISR_SDLVLF_Msk              (0x1UL << MDF_DFLTISR_SDLVLF_Pos)       /*!< 0x00002000 */
11197 #define MDF_DFLTISR_SDLVLF                  MDF_DFLTISR_SDLVLF_Msk                  /*!<Sound level value ready interrupt flag*/
11198 
11199 /*******************  Bit definition for MDF/ADF_OECCR register  ********************/
11200 #define MDF_OECCR_OFFSET_Pos                (0U)
11201 #define MDF_OECCR_OFFSET_Msk                (0x3FFFFFFUL << MDF_OECCR_OFFSET_Pos)   /*!< 0x03FFFFFF */
11202 #define MDF_OECCR_OFFSET                    MDF_OECCR_OFFSET_Msk                    /*!<Short circuit detector enable*/
11203 
11204 /*******************  Bit definition for MDF/ADF_SADCR register  ********************/
11205 #define MDF_SADCR_SADEN_Pos                 (0U)
11206 #define MDF_SADCR_SADEN_Msk                 (0x1UL << MDF_SADCR_SADEN_Pos)          /*!< 0x00000001 */
11207 #define MDF_SADCR_SADEN                     MDF_SADCR_SADEN_Msk                     /*!<SAD enable*/
11208 #define MDF_SADCR_DATCAP_Pos                (1U)
11209 #define MDF_SADCR_DATCAP_Msk                (0x3UL << MDF_SADCR_DATCAP_Pos)         /*!< 0x00000003 */
11210 #define MDF_SADCR_DATCAP                    MDF_SADCR_DATCAP_Msk                    /*!<SAD data capture mode*/
11211 #define MDF_SADCR_DATCAP_0                  (0x1UL << MDF_SADCR_DATCAP_Pos)         /*!< 0x00000002 */
11212 #define MDF_SADCR_DATCAP_1                  (0x2UL << MDF_SADCR_DATCAP_Pos)         /*!< 0x00000004 */
11213 #define MDF_SADCR_DETCFG_Pos                (3U)
11214 #define MDF_SADCR_DETCFG_Msk                (0x1UL << MDF_SADCR_DETCFG_Pos)         /*!< 0x00000008 */
11215 #define MDF_SADCR_DETCFG                    MDF_SADCR_DETCFG_Msk                    /*!<SAD trigger event configuration*/
11216 #define MDF_SADCR_SADST_Pos                 (4U)
11217 #define MDF_SADCR_SADST_Msk                 (0x3UL << MDF_SADCR_SADST_Pos)          /*!< 0x00000030 */
11218 #define MDF_SADCR_SADST                     MDF_SADCR_SADST_Msk                     /*!<SAD state*/
11219 #define MDF_SADCR_HYSTEN_Pos                (7U)
11220 #define MDF_SADCR_HYSTEN_Msk                (0x1UL << MDF_SADCR_HYSTEN_Pos)         /*!< 0x00000080 */
11221 #define MDF_SADCR_HYSTEN                    MDF_SADCR_HYSTEN_Msk                    /*!<Hysteresis enable*/
11222 #define MDF_SADCR_FRSIZE_Pos                (8U)
11223 #define MDF_SADCR_FRSIZE_Msk                (0x7UL << MDF_SADCR_FRSIZE_Pos)         /*!< 0x00000700 */
11224 #define MDF_SADCR_FRSIZE                    MDF_SADCR_FRSIZE_Msk                    /*!<Frame size*/
11225 #define MDF_SADCR_FRSIZE_0                  (0x1UL << MDF_SADCR_FRSIZE_Pos)         /*!< 0x00000100 */
11226 #define MDF_SADCR_FRSIZE_1                  (0x2UL << MDF_SADCR_FRSIZE_Pos)         /*!< 0x00000200 */
11227 #define MDF_SADCR_FRSIZE_2                  (0x4UL << MDF_SADCR_FRSIZE_Pos)         /*!< 0x00000300 */
11228 #define MDF_SADCR_SADMOD_Pos                (12U)
11229 #define MDF_SADCR_SADMOD_Msk                (0x3UL << MDF_SADCR_SADMOD_Pos)         /*!< 0x00003000 */
11230 #define MDF_SADCR_SADMOD                    MDF_SADCR_SADMOD_Msk                    /*!<SAD working mode*/
11231 #define MDF_SADCR_SADMOD_0                  (0x1UL << MDF_SADCR_SADMOD_Pos)         /*!< 0x00001000 */
11232 #define MDF_SADCR_SADMOD_1                  (0x2UL << MDF_SADCR_SADMOD_Pos)         /*!< 0x00002000 */
11233 #define MDF_SADCR_SADACTIVE_Pos             (31U)
11234 #define MDF_SADCR_SADACTIVE_Msk             (0x1UL << MDF_SADCR_SADACTIVE_Pos)      /*!< 0x80000000 */
11235 #define MDF_SADCR_SADACTIVE                 MDF_SADCR_SADACTIVE_Msk                 /*!<SAD active flag*/
11236 
11237 /*******************  Bit definition for MDF/ADF_SADCFGR register  ********************/
11238 #define MDF_SADCFGR_SNTHR_Pos               (0U)
11239 #define MDF_SADCFGR_SNTHR_Msk               (0xFUL << MDF_SADCFGR_SNTHR_Pos)        /*!< 0x0000000F */
11240 #define MDF_SADCFGR_SNTHR                   MDF_SADCFGR_SNTHR_Msk                   /*!<Signal to noise threshold*/
11241 #define MDF_SADCFGR_SNTHR_0                 (0x1UL << MDF_SADCFGR_SNTHR_Pos)        /*!< 0x00000001 */
11242 #define MDF_SADCFGR_SNTHR_1                 (0x2UL << MDF_SADCFGR_SNTHR_Pos)        /*!< 0x00000002 */
11243 #define MDF_SADCFGR_SNTHR_2                 (0x4UL << MDF_SADCFGR_SNTHR_Pos)        /*!< 0x00000004 */
11244 #define MDF_SADCFGR_SNTHR_3                 (0x8UL << MDF_SADCFGR_SNTHR_Pos)        /*!< 0x00000008 */
11245 #define MDF_SADCFGR_ANSLP_Pos               (4U)
11246 #define MDF_SADCFGR_ANSLP_Msk               (0x7UL << MDF_SADCFGR_ANSLP_Pos)        /*!< 0x00000070 */
11247 #define MDF_SADCFGR_ANSLP                   MDF_SADCFGR_ANSLP_Msk                   /*!<Ambiant noise slope control*/
11248 #define MDF_SADCFGR_LFRNB_Pos               (8U)
11249 #define MDF_SADCFGR_LFRNB_Msk               (0x7UL << MDF_SADCFGR_LFRNB_Pos)        /*!< 0x00000700 */
11250 #define MDF_SADCFGR_LFRNB                   MDF_SADCFGR_LFRNB_Msk                   /*!<Number of learning frames*/
11251 #define MDF_SADCFGR_LFRNB_0                 (0x1UL << MDF_SADCFGR_LFRNB_Pos)        /*!< 0x00000100 */
11252 #define MDF_SADCFGR_LFRNB_1                 (0x2UL << MDF_SADCFGR_LFRNB_Pos)        /*!< 0x00000200 */
11253 #define MDF_SADCFGR_LFRNB_2                 (0x4UL << MDF_SADCFGR_LFRNB_Pos)        /*!< 0x00000400 */
11254 #define MDF_SADCFGR_HGOVR_Pos               (12U)
11255 #define MDF_SADCFGR_HGOVR_Msk               (0x7UL << MDF_SADCFGR_HGOVR_Pos)        /*!< 0x00007000 */
11256 #define MDF_SADCFGR_HGOVR                   MDF_SADCFGR_HGOVR_Msk                   /*!<Hangover time window*/
11257 #define MDF_SADCFGR_HGOVR_0                 (0x1UL << MDF_SADCFGR_HGOVR_Pos)        /*!< 0x00001000 */
11258 #define MDF_SADCFGR_HGOVR_1                 (0x2UL << MDF_SADCFGR_HGOVR_Pos)        /*!< 0x00002000 */
11259 #define MDF_SADCFGR_HGOVR_2                 (0x4UL << MDF_SADCFGR_HGOVR_Pos)        /*!< 0x00004000 */
11260 #define MDF_SADCFGR_ANMIN_Pos               (16U)
11261 #define MDF_SADCFGR_ANMIN_Msk               (0x1FFFUL << MDF_SADCFGR_ANMIN_Pos)     /*!< 0x1FFF0000 */
11262 #define MDF_SADCFGR_ANMIN                   MDF_SADCFGR_ANMIN_Msk                   /*!<Hangover time window*/
11263 
11264 /*******************  Bit definition for MDF/ADF_SADSDLVR register  ********************/
11265 #define MDF_SADSDLVR_SDLVL_Pos              (0U)
11266 #define MDF_SADSDLVR_SDLVL_Msk              (0x7FFFUL << MDF_SADSDLVR_SDLVL_Pos)    /*!< 0x00007FFF */
11267 #define MDF_SADSDLVR_SDLVL                  MDF_SADSDLVR_SDLVL_Msk                  /*!<Short term sound level*/
11268 
11269 /*******************  Bit definition for MDF/ADF_SADANLVR register  ********************/
11270 #define MDF_SADANLVR_ANLVL_Pos              (0U)
11271 #define MDF_SADANLVR_ANLVL_Msk              (0x7FFFUL << MDF_SADANLVR_ANLVL_Pos)    /*!< 0x00007FFF */
11272 #define MDF_SADANLVR_ANLVL                  MDF_SADANLVR_ANLVL_Msk                  /*!<Ambiant noise level estimation*/
11273 
11274 /*******************  Bit definition for MDF/ADF_SNPSDR register  ********************/
11275 #define MDF_SNPSDR_MCICDC_Pos               (0U)
11276 #define MDF_SNPSDR_MCICDC_Msk               (0x1FFUL << MDF_SNPSDR_MCICDC_Pos)      /*!< 0x000001FF */
11277 #define MDF_SNPSDR_MCICDC                   MDF_SNPSDR_MCICDC_Msk                   /*!<MCIC decimation counter*/
11278 #define MDF_SNPSDR_EXTSDR_Pos               (9U)
11279 #define MDF_SNPSDR_EXTSDR_Msk               (0x7FUL << MDF_SNPSDR_EXTSDR_Pos)       /*!< 0x0000FE00 */
11280 #define MDF_SNPSDR_EXTSDR                   MDF_SNPSDR_EXTSDR_Msk                   /*!<Extended data size*/
11281 #define MDF_SNPSDR_SDR_Pos                  (16U)
11282 #define MDF_SNPSDR_SDR_Msk                  (0xFFFFUL << MDF_SNPSDR_SDR_Pos)        /*!< 0xFFFF0000 */
11283 #define MDF_SNPSDR_SDR                      MDF_SNPSDR_SDR_Msk                      /*!<Extended data size*/
11284 
11285 /*******************  Bit definition for MDF/ADF_DFLTDR register  ********************/
11286 #define MDF_DFLTDR_DR_Pos                   (8U)
11287 #define MDF_DFLTDR_DR_Msk                   (0xFFFFFFUL << MDF_DFLTDR_DR_Pos)       /*!< 0xFFFFFF00 */
11288 #define MDF_DFLTDR_DR                       MDF_DFLTDR_DR_Msk                       /*!<MCIC decimation counter*/
11289 
11290 /******************************************************************************/
11291 /*                                                                            */
11292 /*                                    TIM                                     */
11293 /*                                                                            */
11294 /******************************************************************************/
11295 /*******************  Bit definition for TIM_CR1 register  ********************/
11296 #define TIM_CR1_CEN_Pos                     (0U)
11297 #define TIM_CR1_CEN_Msk                     (0x1UL << TIM_CR1_CEN_Pos)              /*!< 0x00000001 */
11298 #define TIM_CR1_CEN                         TIM_CR1_CEN_Msk                         /*!<Counter enable */
11299 #define TIM_CR1_UDIS_Pos                    (1U)
11300 #define TIM_CR1_UDIS_Msk                    (0x1UL << TIM_CR1_UDIS_Pos)             /*!< 0x00000002 */
11301 #define TIM_CR1_UDIS                        TIM_CR1_UDIS_Msk                        /*!<Update disable */
11302 #define TIM_CR1_URS_Pos                     (2U)
11303 #define TIM_CR1_URS_Msk                     (0x1UL << TIM_CR1_URS_Pos)              /*!< 0x00000004 */
11304 #define TIM_CR1_URS                         TIM_CR1_URS_Msk                         /*!<Update request source */
11305 #define TIM_CR1_OPM_Pos                     (3U)
11306 #define TIM_CR1_OPM_Msk                     (0x1UL << TIM_CR1_OPM_Pos)              /*!< 0x00000008 */
11307 #define TIM_CR1_OPM                         TIM_CR1_OPM_Msk                         /*!<One pulse mode */
11308 #define TIM_CR1_DIR_Pos                     (4U)
11309 #define TIM_CR1_DIR_Msk                     (0x1UL << TIM_CR1_DIR_Pos)              /*!< 0x00000010 */
11310 #define TIM_CR1_DIR                         TIM_CR1_DIR_Msk                         /*!<Direction */
11311 #define TIM_CR1_CMS_Pos                     (5U)
11312 #define TIM_CR1_CMS_Msk                     (0x3UL << TIM_CR1_CMS_Pos)              /*!< 0x00000060 */
11313 #define TIM_CR1_CMS                         TIM_CR1_CMS_Msk                         /*!<CMS[1:0] bits (Center-aligned mode selection) */
11314 #define TIM_CR1_CMS_0                       (0x1UL << TIM_CR1_CMS_Pos)              /*!< 0x00000020 */
11315 #define TIM_CR1_CMS_1                       (0x2UL << TIM_CR1_CMS_Pos)              /*!< 0x00000040 */
11316 #define TIM_CR1_ARPE_Pos                    (7U)
11317 #define TIM_CR1_ARPE_Msk                    (0x1UL << TIM_CR1_ARPE_Pos)             /*!< 0x00000080 */
11318 #define TIM_CR1_ARPE                        TIM_CR1_ARPE_Msk                        /*!<Auto-reload preload enable */
11319 #define TIM_CR1_CKD_Pos                     (8U)
11320 #define TIM_CR1_CKD_Msk                     (0x3UL << TIM_CR1_CKD_Pos)              /*!< 0x00000300 */
11321 #define TIM_CR1_CKD                         TIM_CR1_CKD_Msk                         /*!<CKD[1:0] bits (clock division) */
11322 #define TIM_CR1_CKD_0                       (0x1UL << TIM_CR1_CKD_Pos)              /*!< 0x00000100 */
11323 #define TIM_CR1_CKD_1                       (0x2UL << TIM_CR1_CKD_Pos)              /*!< 0x00000200 */
11324 #define TIM_CR1_UIFREMAP_Pos                (11U)
11325 #define TIM_CR1_UIFREMAP_Msk                (0x1UL << TIM_CR1_UIFREMAP_Pos)         /*!< 0x00000800 */
11326 #define TIM_CR1_UIFREMAP                    TIM_CR1_UIFREMAP_Msk                    /*!<Update interrupt flag remap */
11327 #define TIM_CR1_DITHEN_Pos                  (12U)
11328 #define TIM_CR1_DITHEN_Msk                  (0x1UL << TIM_CR1_DITHEN_Pos)           /*!< 0x00001000 */
11329 #define TIM_CR1_DITHEN                      TIM_CR1_DITHEN_Msk                      /*!<Dithering enable */
11330 
11331 /*******************  Bit definition for TIM_CR2 register  ********************/
11332 #define TIM_CR2_CCPC_Pos                    (0U)
11333 #define TIM_CR2_CCPC_Msk                    (0x1UL << TIM_CR2_CCPC_Pos)             /*!< 0x00000001 */
11334 #define TIM_CR2_CCPC                        TIM_CR2_CCPC_Msk                        /*!<Capture/Compare Preloaded Control */
11335 #define TIM_CR2_CCUS_Pos                    (2U)
11336 #define TIM_CR2_CCUS_Msk                    (0x1UL << TIM_CR2_CCUS_Pos)             /*!< 0x00000004 */
11337 #define TIM_CR2_CCUS                        TIM_CR2_CCUS_Msk                        /*!<Capture/Compare Control Update Selection */
11338 #define TIM_CR2_CCDS_Pos                    (3U)
11339 #define TIM_CR2_CCDS_Msk                    (0x1UL << TIM_CR2_CCDS_Pos)             /*!< 0x00000008 */
11340 #define TIM_CR2_CCDS                        TIM_CR2_CCDS_Msk                        /*!<Capture/Compare DMA Selection */
11341 #define TIM_CR2_MMS_Pos                     (4U)
11342 #define TIM_CR2_MMS_Msk                     (0x200007UL << TIM_CR2_MMS_Pos)         /*!< 0x02000070 */
11343 #define TIM_CR2_MMS                         TIM_CR2_MMS_Msk                         /*!<MMS[3:0] bits (Master Mode Selection) */
11344 #define TIM_CR2_MMS_0                       (0x000001UL << TIM_CR2_MMS_Pos)         /*!< 0x00000010 */
11345 #define TIM_CR2_MMS_1                       (0x000002UL << TIM_CR2_MMS_Pos)         /*!< 0x00000020 */
11346 #define TIM_CR2_MMS_2                       (0x000004UL << TIM_CR2_MMS_Pos)         /*!< 0x00000040 */
11347 #define TIM_CR2_MMS_3                       (0x200000UL << TIM_CR2_MMS_Pos)         /*!< 0x02000000 */
11348 #define TIM_CR2_TI1S_Pos                    (7U)
11349 #define TIM_CR2_TI1S_Msk                    (0x1UL << TIM_CR2_TI1S_Pos)             /*!< 0x00000080 */
11350 #define TIM_CR2_TI1S                        TIM_CR2_TI1S_Msk                        /*!<TI1 Selection */
11351 #define TIM_CR2_OIS1_Pos                    (8U)
11352 #define TIM_CR2_OIS1_Msk                    (0x1UL << TIM_CR2_OIS1_Pos)             /*!< 0x00000100 */
11353 #define TIM_CR2_OIS1                        TIM_CR2_OIS1_Msk                        /*!<Output Idle state 1 (OC1 output) */
11354 #define TIM_CR2_OIS1N_Pos                   (9U)
11355 #define TIM_CR2_OIS1N_Msk                   (0x1UL << TIM_CR2_OIS1N_Pos)            /*!< 0x00000200 */
11356 #define TIM_CR2_OIS1N                       TIM_CR2_OIS1N_Msk                       /*!<Output Idle state 1 (OC1N output) */
11357 #define TIM_CR2_OIS2_Pos                    (10U)
11358 #define TIM_CR2_OIS2_Msk                    (0x1UL << TIM_CR2_OIS2_Pos)             /*!< 0x00000400 */
11359 #define TIM_CR2_OIS2                        TIM_CR2_OIS2_Msk                        /*!<Output Idle state 2 (OC2 output) */
11360 #define TIM_CR2_OIS2N_Pos                   (11U)
11361 #define TIM_CR2_OIS2N_Msk                   (0x1UL << TIM_CR2_OIS2N_Pos)            /*!< 0x00000800 */
11362 #define TIM_CR2_OIS2N                       TIM_CR2_OIS2N_Msk                       /*!<Output Idle state 2 (OC2N output) */
11363 #define TIM_CR2_OIS3_Pos                    (12U)
11364 #define TIM_CR2_OIS3_Msk                    (0x1UL << TIM_CR2_OIS3_Pos)             /*!< 0x00001000 */
11365 #define TIM_CR2_OIS3                        TIM_CR2_OIS3_Msk                        /*!<Output Idle state 3 (OC3 output) */
11366 #define TIM_CR2_OIS3N_Pos                   (13U)
11367 #define TIM_CR2_OIS3N_Msk                   (0x1UL << TIM_CR2_OIS3N_Pos)            /*!< 0x00002000 */
11368 #define TIM_CR2_OIS3N                       TIM_CR2_OIS3N_Msk                       /*!<Output Idle state 3 (OC3N output) */
11369 #define TIM_CR2_OIS4_Pos                    (14U)
11370 #define TIM_CR2_OIS4_Msk                    (0x1UL << TIM_CR2_OIS4_Pos)             /*!< 0x00004000 */
11371 #define TIM_CR2_OIS4                        TIM_CR2_OIS4_Msk                        /*!<Output Idle state 4 (OC4 output) */
11372 #define TIM_CR2_OIS4N_Pos                   (15U)
11373 #define TIM_CR2_OIS4N_Msk                   (0x1UL << TIM_CR2_OIS4N_Pos)            /*!< 0x00008000 */
11374 #define TIM_CR2_OIS4N                       TIM_CR2_OIS4N_Msk                       /*!<Output Idle state 4 (OC4N output) */
11375 #define TIM_CR2_OIS5_Pos                    (16U)
11376 #define TIM_CR2_OIS5_Msk                    (0x1UL << TIM_CR2_OIS5_Pos)             /*!< 0x00010000 */
11377 #define TIM_CR2_OIS5                        TIM_CR2_OIS5_Msk                        /*!<Output Idle state 5 (OC5 output) */
11378 #define TIM_CR2_OIS6_Pos                    (18U)
11379 #define TIM_CR2_OIS6_Msk                    (0x1UL << TIM_CR2_OIS6_Pos)             /*!< 0x00040000 */
11380 #define TIM_CR2_OIS6                        TIM_CR2_OIS6_Msk                        /*!<Output Idle state 6 (OC6 output) */
11381 #define TIM_CR2_MMS2_Pos                    (20U)
11382 #define TIM_CR2_MMS2_Msk                    (0xFUL << TIM_CR2_MMS2_Pos)             /*!< 0x00F00000 */
11383 #define TIM_CR2_MMS2                        TIM_CR2_MMS2_Msk                        /*!<MMS[2:0] bits (Master Mode Selection) */
11384 #define TIM_CR2_MMS2_0                      (0x1UL << TIM_CR2_MMS2_Pos)             /*!< 0x00100000 */
11385 #define TIM_CR2_MMS2_1                      (0x2UL << TIM_CR2_MMS2_Pos)             /*!< 0x00200000 */
11386 #define TIM_CR2_MMS2_2                      (0x4UL << TIM_CR2_MMS2_Pos)             /*!< 0x00400000 */
11387 #define TIM_CR2_MMS2_3                      (0x8UL << TIM_CR2_MMS2_Pos)             /*!< 0x00800000 */
11388 
11389 /*******************  Bit definition for TIM_SMCR register  *******************/
11390 #define TIM_SMCR_SMS_Pos                    (0U)
11391 #define TIM_SMCR_SMS_Msk                    (0x10007UL << TIM_SMCR_SMS_Pos)         /*!< 0x00010007 */
11392 #define TIM_SMCR_SMS                        TIM_SMCR_SMS_Msk                        /*!<SMS[2:0] bits (Slave mode selection) */
11393 #define TIM_SMCR_SMS_0                      (0x00001UL << TIM_SMCR_SMS_Pos)         /*!< 0x00000001 */
11394 #define TIM_SMCR_SMS_1                      (0x00002UL << TIM_SMCR_SMS_Pos)         /*!< 0x00000002 */
11395 #define TIM_SMCR_SMS_2                      (0x00004UL << TIM_SMCR_SMS_Pos)         /*!< 0x00000004 */
11396 #define TIM_SMCR_SMS_3                      (0x10000UL << TIM_SMCR_SMS_Pos)         /*!< 0x00010000 */
11397 #define TIM_SMCR_OCCS_Pos                   (3U)
11398 #define TIM_SMCR_OCCS_Msk                   (0x1UL << TIM_SMCR_OCCS_Pos)            /*!< 0x00000008 */
11399 #define TIM_SMCR_OCCS                       TIM_SMCR_OCCS_Msk                       /*!< OCREF clear selection */
11400 #define TIM_SMCR_TS_Pos                     (4U)
11401 #define TIM_SMCR_TS_Msk                     (0x30007UL << TIM_SMCR_TS_Pos)          /*!< 0x00300070 */
11402 #define TIM_SMCR_TS                         TIM_SMCR_TS_Msk                         /*!<TS[2:0] bits (Trigger selection) */
11403 #define TIM_SMCR_TS_0                       (0x00001UL << TIM_SMCR_TS_Pos)          /*!< 0x00000010 */
11404 #define TIM_SMCR_TS_1                       (0x00002UL << TIM_SMCR_TS_Pos)          /*!< 0x00000020 */
11405 #define TIM_SMCR_TS_2                       (0x00004UL << TIM_SMCR_TS_Pos)          /*!< 0x00000040 */
11406 #define TIM_SMCR_TS_3                       (0x10000UL << TIM_SMCR_TS_Pos)          /*!< 0x00100000 */
11407 #define TIM_SMCR_TS_4                       (0x20000UL << TIM_SMCR_TS_Pos)          /*!< 0x00200000 */
11408 #define TIM_SMCR_MSM_Pos                    (7U)
11409 #define TIM_SMCR_MSM_Msk                    (0x1UL << TIM_SMCR_MSM_Pos)             /*!< 0x00000080 */
11410 #define TIM_SMCR_MSM                        TIM_SMCR_MSM_Msk                        /*!<Master/slave mode */
11411 #define TIM_SMCR_ETF_Pos                    (8U)
11412 #define TIM_SMCR_ETF_Msk                    (0xFUL << TIM_SMCR_ETF_Pos)             /*!< 0x00000F00 */
11413 #define TIM_SMCR_ETF                        TIM_SMCR_ETF_Msk                        /*!<ETF[3:0] bits (External trigger filter) */
11414 #define TIM_SMCR_ETF_0                      (0x1UL << TIM_SMCR_ETF_Pos)             /*!< 0x00000100 */
11415 #define TIM_SMCR_ETF_1                      (0x2UL << TIM_SMCR_ETF_Pos)             /*!< 0x00000200 */
11416 #define TIM_SMCR_ETF_2                      (0x4UL << TIM_SMCR_ETF_Pos)             /*!< 0x00000400 */
11417 #define TIM_SMCR_ETF_3                      (0x8UL << TIM_SMCR_ETF_Pos)             /*!< 0x00000800 */
11418 #define TIM_SMCR_ETPS_Pos                   (12U)
11419 #define TIM_SMCR_ETPS_Msk                   (0x3UL << TIM_SMCR_ETPS_Pos)            /*!< 0x00003000 */
11420 #define TIM_SMCR_ETPS                       TIM_SMCR_ETPS_Msk                       /*!<ETPS[1:0] bits (External trigger prescaler) */
11421 #define TIM_SMCR_ETPS_0                     (0x1UL << TIM_SMCR_ETPS_Pos)            /*!< 0x00001000 */
11422 #define TIM_SMCR_ETPS_1                     (0x2UL << TIM_SMCR_ETPS_Pos)            /*!< 0x00002000 */
11423 #define TIM_SMCR_ECE_Pos                    (14U)
11424 #define TIM_SMCR_ECE_Msk                    (0x1UL << TIM_SMCR_ECE_Pos)             /*!< 0x00004000 */
11425 #define TIM_SMCR_ECE                        TIM_SMCR_ECE_Msk                        /*!<External clock enable */
11426 #define TIM_SMCR_ETP_Pos                    (15U)
11427 #define TIM_SMCR_ETP_Msk                    (0x1UL << TIM_SMCR_ETP_Pos)             /*!< 0x00008000 */
11428 #define TIM_SMCR_ETP                        TIM_SMCR_ETP_Msk                        /*!<External trigger polarity */
11429 #define TIM_SMCR_SMSPE_Pos                  (24U)
11430 #define TIM_SMCR_SMSPE_Msk                  (0x1UL << TIM_SMCR_SMSPE_Pos)           /*!< 0x02000000 */
11431 #define TIM_SMCR_SMSPE                      TIM_SMCR_SMSPE_Msk                      /*!<SMS preload enable */
11432 #define TIM_SMCR_SMSPS_Pos                  (25U)
11433 #define TIM_SMCR_SMSPS_Msk                  (0x1UL << TIM_SMCR_SMSPS_Pos)           /*!< 0x04000000 */
11434 #define TIM_SMCR_SMSPS                      TIM_SMCR_SMSPS_Msk                      /*!<SMS preload source */
11435 
11436 /*******************  Bit definition for TIM_DIER register  *******************/
11437 #define TIM_DIER_UIE_Pos                    (0U)
11438 #define TIM_DIER_UIE_Msk                    (0x1UL << TIM_DIER_UIE_Pos)             /*!< 0x00000001 */
11439 #define TIM_DIER_UIE                        TIM_DIER_UIE_Msk                        /*!<Update interrupt enable */
11440 #define TIM_DIER_CC1IE_Pos                  (1U)
11441 #define TIM_DIER_CC1IE_Msk                  (0x1UL << TIM_DIER_CC1IE_Pos)           /*!< 0x00000002 */
11442 #define TIM_DIER_CC1IE                      TIM_DIER_CC1IE_Msk                      /*!<Capture/Compare 1 interrupt enable */
11443 #define TIM_DIER_CC2IE_Pos                  (2U)
11444 #define TIM_DIER_CC2IE_Msk                  (0x1UL << TIM_DIER_CC2IE_Pos)           /*!< 0x00000004 */
11445 #define TIM_DIER_CC2IE                      TIM_DIER_CC2IE_Msk                      /*!<Capture/Compare 2 interrupt enable */
11446 #define TIM_DIER_CC3IE_Pos                  (3U)
11447 #define TIM_DIER_CC3IE_Msk                  (0x1UL << TIM_DIER_CC3IE_Pos)           /*!< 0x00000008 */
11448 #define TIM_DIER_CC3IE                      TIM_DIER_CC3IE_Msk                      /*!<Capture/Compare 3 interrupt enable */
11449 #define TIM_DIER_CC4IE_Pos                  (4U)
11450 #define TIM_DIER_CC4IE_Msk                  (0x1UL << TIM_DIER_CC4IE_Pos)           /*!< 0x00000010 */
11451 #define TIM_DIER_CC4IE                      TIM_DIER_CC4IE_Msk                      /*!<Capture/Compare 4 interrupt enable */
11452 #define TIM_DIER_COMIE_Pos                  (5U)
11453 #define TIM_DIER_COMIE_Msk                  (0x1UL << TIM_DIER_COMIE_Pos)           /*!< 0x00000020 */
11454 #define TIM_DIER_COMIE                      TIM_DIER_COMIE_Msk                      /*!<COM interrupt enable */
11455 #define TIM_DIER_TIE_Pos                    (6U)
11456 #define TIM_DIER_TIE_Msk                    (0x1UL << TIM_DIER_TIE_Pos)             /*!< 0x00000040 */
11457 #define TIM_DIER_TIE                        TIM_DIER_TIE_Msk                        /*!<Trigger interrupt enable */
11458 #define TIM_DIER_BIE_Pos                    (7U)
11459 #define TIM_DIER_BIE_Msk                    (0x1UL << TIM_DIER_BIE_Pos)             /*!< 0x00000080 */
11460 #define TIM_DIER_BIE                        TIM_DIER_BIE_Msk                        /*!<Break interrupt enable */
11461 #define TIM_DIER_UDE_Pos                    (8U)
11462 #define TIM_DIER_UDE_Msk                    (0x1UL << TIM_DIER_UDE_Pos)             /*!< 0x00000100 */
11463 #define TIM_DIER_UDE                        TIM_DIER_UDE_Msk                        /*!<Update DMA request enable */
11464 #define TIM_DIER_CC1DE_Pos                  (9U)
11465 #define TIM_DIER_CC1DE_Msk                  (0x1UL << TIM_DIER_CC1DE_Pos)           /*!< 0x00000200 */
11466 #define TIM_DIER_CC1DE                      TIM_DIER_CC1DE_Msk                      /*!<Capture/Compare 1 DMA request enable */
11467 #define TIM_DIER_CC2DE_Pos                  (10U)
11468 #define TIM_DIER_CC2DE_Msk                  (0x1UL << TIM_DIER_CC2DE_Pos)           /*!< 0x00000400 */
11469 #define TIM_DIER_CC2DE                      TIM_DIER_CC2DE_Msk                      /*!<Capture/Compare 2 DMA request enable */
11470 #define TIM_DIER_CC3DE_Pos                  (11U)
11471 #define TIM_DIER_CC3DE_Msk                  (0x1UL << TIM_DIER_CC3DE_Pos)           /*!< 0x00000800 */
11472 #define TIM_DIER_CC3DE                      TIM_DIER_CC3DE_Msk                      /*!<Capture/Compare 3 DMA request enable */
11473 #define TIM_DIER_CC4DE_Pos                  (12U)
11474 #define TIM_DIER_CC4DE_Msk                  (0x1UL << TIM_DIER_CC4DE_Pos)           /*!< 0x00001000 */
11475 #define TIM_DIER_CC4DE                      TIM_DIER_CC4DE_Msk                      /*!<Capture/Compare 4 DMA request enable */
11476 #define TIM_DIER_COMDE_Pos                  (13U)
11477 #define TIM_DIER_COMDE_Msk                  (0x1UL << TIM_DIER_COMDE_Pos)           /*!< 0x00002000 */
11478 #define TIM_DIER_COMDE                      TIM_DIER_COMDE_Msk                      /*!<COM DMA request enable */
11479 #define TIM_DIER_TDE_Pos                    (14U)
11480 #define TIM_DIER_TDE_Msk                    (0x1UL << TIM_DIER_TDE_Pos)             /*!< 0x00004000 */
11481 #define TIM_DIER_TDE                        TIM_DIER_TDE_Msk                        /*!<Trigger DMA request enable */
11482 #define TIM_DIER_IDXIE_Pos                  (20U)
11483 #define TIM_DIER_IDXIE_Msk                  (0x1UL << TIM_DIER_IDXIE_Pos)           /*!< 0x00100000 */
11484 #define TIM_DIER_IDXIE                      TIM_DIER_IDXIE_Msk                      /*!<Encoder index interrupt enable */
11485 #define TIM_DIER_DIRIE_Pos                  (21U)
11486 #define TIM_DIER_DIRIE_Msk                  (0x1UL << TIM_DIER_DIRIE_Pos)           /*!< 0x00200000 */
11487 #define TIM_DIER_DIRIE                      TIM_DIER_DIRIE_Msk                      /*!<Encoder direction change interrupt enable */
11488 #define TIM_DIER_IERRIE_Pos                 (22U)
11489 #define TIM_DIER_IERRIE_Msk                 (0x1UL << TIM_DIER_IERRIE_Pos)          /*!< 0x00400000 */
11490 #define TIM_DIER_IERRIE                     TIM_DIER_IERRIE_Msk                     /*!<Encoder index error enable */
11491 #define TIM_DIER_TERRIE_Pos                 (23U)
11492 #define TIM_DIER_TERRIE_Msk                 (0x1UL << TIM_DIER_TERRIE_Pos)          /*!< 0x00800000 */
11493 #define TIM_DIER_TERRIE                     TIM_DIER_TERRIE_Msk                     /*!<Encoder transition error enable */
11494 
11495 /********************  Bit definition for TIM_SR register  ********************/
11496 #define TIM_SR_UIF_Pos                      (0U)
11497 #define TIM_SR_UIF_Msk                      (0x1UL << TIM_SR_UIF_Pos)               /*!< 0x00000001 */
11498 #define TIM_SR_UIF                          TIM_SR_UIF_Msk                          /*!<Update interrupt Flag */
11499 #define TIM_SR_CC1IF_Pos                    (1U)
11500 #define TIM_SR_CC1IF_Msk                    (0x1UL << TIM_SR_CC1IF_Pos)             /*!< 0x00000002 */
11501 #define TIM_SR_CC1IF                        TIM_SR_CC1IF_Msk                        /*!<Capture/Compare 1 interrupt Flag */
11502 #define TIM_SR_CC2IF_Pos                    (2U)
11503 #define TIM_SR_CC2IF_Msk                    (0x1UL << TIM_SR_CC2IF_Pos)             /*!< 0x00000004 */
11504 #define TIM_SR_CC2IF                        TIM_SR_CC2IF_Msk                        /*!<Capture/Compare 2 interrupt Flag */
11505 #define TIM_SR_CC3IF_Pos                    (3U)
11506 #define TIM_SR_CC3IF_Msk                    (0x1UL << TIM_SR_CC3IF_Pos)             /*!< 0x00000008 */
11507 #define TIM_SR_CC3IF                        TIM_SR_CC3IF_Msk                        /*!<Capture/Compare 3 interrupt Flag */
11508 #define TIM_SR_CC4IF_Pos                    (4U)
11509 #define TIM_SR_CC4IF_Msk                    (0x1UL << TIM_SR_CC4IF_Pos)             /*!< 0x00000010 */
11510 #define TIM_SR_CC4IF                        TIM_SR_CC4IF_Msk                        /*!<Capture/Compare 4 interrupt Flag */
11511 #define TIM_SR_COMIF_Pos                    (5U)
11512 #define TIM_SR_COMIF_Msk                    (0x1UL << TIM_SR_COMIF_Pos)             /*!< 0x00000020 */
11513 #define TIM_SR_COMIF                        TIM_SR_COMIF_Msk                        /*!<COM interrupt Flag */
11514 #define TIM_SR_TIF_Pos                      (6U)
11515 #define TIM_SR_TIF_Msk                      (0x1UL << TIM_SR_TIF_Pos)               /*!< 0x00000040 */
11516 #define TIM_SR_TIF                          TIM_SR_TIF_Msk                          /*!<Trigger interrupt Flag */
11517 #define TIM_SR_BIF_Pos                      (7U)
11518 #define TIM_SR_BIF_Msk                      (0x1UL << TIM_SR_BIF_Pos)               /*!< 0x00000080 */
11519 #define TIM_SR_BIF                          TIM_SR_BIF_Msk                          /*!<Break interrupt Flag */
11520 #define TIM_SR_B2IF_Pos                     (8U)
11521 #define TIM_SR_B2IF_Msk                     (0x1UL << TIM_SR_B2IF_Pos)              /*!< 0x00000100 */
11522 #define TIM_SR_B2IF                         TIM_SR_B2IF_Msk                         /*!<Break 2 interrupt Flag */
11523 #define TIM_SR_CC1OF_Pos                    (9U)
11524 #define TIM_SR_CC1OF_Msk                    (0x1UL << TIM_SR_CC1OF_Pos)             /*!< 0x00000200 */
11525 #define TIM_SR_CC1OF                        TIM_SR_CC1OF_Msk                        /*!<Capture/Compare 1 Overcapture Flag */
11526 #define TIM_SR_CC2OF_Pos                    (10U)
11527 #define TIM_SR_CC2OF_Msk                    (0x1UL << TIM_SR_CC2OF_Pos)             /*!< 0x00000400 */
11528 #define TIM_SR_CC2OF                        TIM_SR_CC2OF_Msk                        /*!<Capture/Compare 2 Overcapture Flag */
11529 #define TIM_SR_CC3OF_Pos                    (11U)
11530 #define TIM_SR_CC3OF_Msk                    (0x1UL << TIM_SR_CC3OF_Pos)             /*!< 0x00000800 */
11531 #define TIM_SR_CC3OF                        TIM_SR_CC3OF_Msk                        /*!<Capture/Compare 3 Overcapture Flag */
11532 #define TIM_SR_CC4OF_Pos                    (12U)
11533 #define TIM_SR_CC4OF_Msk                    (0x1UL << TIM_SR_CC4OF_Pos)             /*!< 0x00001000 */
11534 #define TIM_SR_CC4OF                        TIM_SR_CC4OF_Msk                        /*!<Capture/Compare 4 Overcapture Flag */
11535 #define TIM_SR_SBIF_Pos                     (13U)
11536 #define TIM_SR_SBIF_Msk                     (0x1UL << TIM_SR_SBIF_Pos)              /*!< 0x00002000 */
11537 #define TIM_SR_SBIF                         TIM_SR_SBIF_Msk                         /*!<System Break interrupt Flag */
11538 #define TIM_SR_CC5IF_Pos                    (16U)
11539 #define TIM_SR_CC5IF_Msk                    (0x1UL << TIM_SR_CC5IF_Pos)             /*!< 0x00010000 */
11540 #define TIM_SR_CC5IF                        TIM_SR_CC5IF_Msk                        /*!<Capture/Compare 5 interrupt Flag */
11541 #define TIM_SR_CC6IF_Pos                    (17U)
11542 #define TIM_SR_CC6IF_Msk                    (0x1UL << TIM_SR_CC6IF_Pos)             /*!< 0x00020000 */
11543 #define TIM_SR_CC6IF                        TIM_SR_CC6IF_Msk                        /*!<Capture/Compare 6 interrupt Flag */
11544 #define TIM_SR_IDXF_Pos                     (20U)
11545 #define TIM_SR_IDXF_Msk                     (0x1UL << TIM_SR_IDXF_Pos)              /*!< 0x00100000 */
11546 #define TIM_SR_IDXF                         TIM_SR_IDXF_Msk                         /*!<Encoder index interrupt flag */
11547 #define TIM_SR_DIRF_Pos                     (21U)
11548 #define TIM_SR_DIRF_Msk                     (0x1UL << TIM_SR_DIRF_Pos)              /*!< 0x00200000 */
11549 #define TIM_SR_DIRF                         TIM_SR_DIRF_Msk                         /*!<Encoder direction change interrupt flag */
11550 #define TIM_SR_IERRF_Pos                    (22U)
11551 #define TIM_SR_IERRF_Msk                    (0x1UL << TIM_SR_IERRF_Pos)             /*!< 0x00400000 */
11552 #define TIM_SR_IERRF                        TIM_SR_IERRF_Msk                        /*!<Encoder index error flag */
11553 #define TIM_SR_TERRF_Pos                    (23U)
11554 #define TIM_SR_TERRF_Msk                    (0x1UL << TIM_SR_TERRF_Pos)             /*!< 0x00800000 */
11555 #define TIM_SR_TERRF                        TIM_SR_TERRF_Msk                        /*!<Encoder transition error flag */
11556 
11557 /*******************  Bit definition for TIM_EGR register  ********************/
11558 #define TIM_EGR_UG_Pos                      (0U)
11559 #define TIM_EGR_UG_Msk                      (0x1UL << TIM_EGR_UG_Pos)               /*!< 0x00000001 */
11560 #define TIM_EGR_UG                          TIM_EGR_UG_Msk                          /*!<Update Generation */
11561 #define TIM_EGR_CC1G_Pos                    (1U)
11562 #define TIM_EGR_CC1G_Msk                    (0x1UL << TIM_EGR_CC1G_Pos)             /*!< 0x00000002 */
11563 #define TIM_EGR_CC1G                        TIM_EGR_CC1G_Msk                        /*!<Capture/Compare 1 Generation */
11564 #define TIM_EGR_CC2G_Pos                    (2U)
11565 #define TIM_EGR_CC2G_Msk                    (0x1UL << TIM_EGR_CC2G_Pos)             /*!< 0x00000004 */
11566 #define TIM_EGR_CC2G                        TIM_EGR_CC2G_Msk                        /*!<Capture/Compare 2 Generation */
11567 #define TIM_EGR_CC3G_Pos                    (3U)
11568 #define TIM_EGR_CC3G_Msk                    (0x1UL << TIM_EGR_CC3G_Pos)             /*!< 0x00000008 */
11569 #define TIM_EGR_CC3G                        TIM_EGR_CC3G_Msk                        /*!<Capture/Compare 3 Generation */
11570 #define TIM_EGR_CC4G_Pos                    (4U)
11571 #define TIM_EGR_CC4G_Msk                    (0x1UL << TIM_EGR_CC4G_Pos)             /*!< 0x00000010 */
11572 #define TIM_EGR_CC4G                        TIM_EGR_CC4G_Msk                        /*!<Capture/Compare 4 Generation */
11573 #define TIM_EGR_COMG_Pos                    (5U)
11574 #define TIM_EGR_COMG_Msk                    (0x1UL << TIM_EGR_COMG_Pos)             /*!< 0x00000020 */
11575 #define TIM_EGR_COMG                        TIM_EGR_COMG_Msk                        /*!<Capture/Compare Control Update Generation */
11576 #define TIM_EGR_TG_Pos                      (6U)
11577 #define TIM_EGR_TG_Msk                      (0x1UL << TIM_EGR_TG_Pos)               /*!< 0x00000040 */
11578 #define TIM_EGR_TG                          TIM_EGR_TG_Msk                          /*!<Trigger Generation */
11579 #define TIM_EGR_BG_Pos                      (7U)
11580 #define TIM_EGR_BG_Msk                      (0x1UL << TIM_EGR_BG_Pos)               /*!< 0x00000080 */
11581 #define TIM_EGR_BG                          TIM_EGR_BG_Msk                          /*!<Break Generation */
11582 #define TIM_EGR_B2G_Pos                     (8U)
11583 #define TIM_EGR_B2G_Msk                     (0x1UL << TIM_EGR_B2G_Pos)              /*!< 0x00000100 */
11584 #define TIM_EGR_B2G                         TIM_EGR_B2G_Msk                         /*!<Break 2 Generation */
11585 
11586 /******************  Bit definition for TIM_CCMR1 register  *******************/
11587 #define TIM_CCMR1_CC1S_Pos                  (0U)
11588 #define TIM_CCMR1_CC1S_Msk                  (0x3UL << TIM_CCMR1_CC1S_Pos)           /*!< 0x00000003 */
11589 #define TIM_CCMR1_CC1S                      TIM_CCMR1_CC1S_Msk                      /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
11590 #define TIM_CCMR1_CC1S_0                    (0x1UL << TIM_CCMR1_CC1S_Pos)           /*!< 0x00000001 */
11591 #define TIM_CCMR1_CC1S_1                    (0x2UL << TIM_CCMR1_CC1S_Pos)           /*!< 0x00000002 */
11592 #define TIM_CCMR1_OC1FE_Pos                 (2U)
11593 #define TIM_CCMR1_OC1FE_Msk                 (0x1UL << TIM_CCMR1_OC1FE_Pos)          /*!< 0x00000004 */
11594 #define TIM_CCMR1_OC1FE                     TIM_CCMR1_OC1FE_Msk                     /*!<Output Compare 1 Fast enable */
11595 #define TIM_CCMR1_OC1PE_Pos                 (3U)
11596 #define TIM_CCMR1_OC1PE_Msk                 (0x1UL << TIM_CCMR1_OC1PE_Pos)          /*!< 0x00000008 */
11597 #define TIM_CCMR1_OC1PE                     TIM_CCMR1_OC1PE_Msk                     /*!<Output Compare 1 Preload enable */
11598 #define TIM_CCMR1_OC1M_Pos                  (4U)
11599 #define TIM_CCMR1_OC1M_Msk                  (0x1007UL << TIM_CCMR1_OC1M_Pos)        /*!< 0x00010070 */
11600 #define TIM_CCMR1_OC1M                      TIM_CCMR1_OC1M_Msk                      /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
11601 #define TIM_CCMR1_OC1M_0                    (0x0001UL << TIM_CCMR1_OC1M_Pos)        /*!< 0x00000010 */
11602 #define TIM_CCMR1_OC1M_1                    (0x0002UL << TIM_CCMR1_OC1M_Pos)        /*!< 0x00000020 */
11603 #define TIM_CCMR1_OC1M_2                    (0x0004UL << TIM_CCMR1_OC1M_Pos)        /*!< 0x00000040 */
11604 #define TIM_CCMR1_OC1M_3                    (0x1000UL << TIM_CCMR1_OC1M_Pos)        /*!< 0x00010000 */
11605 #define TIM_CCMR1_OC1CE_Pos                 (7U)
11606 #define TIM_CCMR1_OC1CE_Msk                 (0x1UL << TIM_CCMR1_OC1CE_Pos)          /*!< 0x00000080 */
11607 #define TIM_CCMR1_OC1CE                     TIM_CCMR1_OC1CE_Msk                     /*!<Output Compare 1 Clear Enable */
11608 #define TIM_CCMR1_CC2S_Pos                  (8U)
11609 #define TIM_CCMR1_CC2S_Msk                  (0x3UL << TIM_CCMR1_CC2S_Pos)           /*!< 0x00000300 */
11610 #define TIM_CCMR1_CC2S                      TIM_CCMR1_CC2S_Msk                      /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
11611 #define TIM_CCMR1_CC2S_0                    (0x1UL << TIM_CCMR1_CC2S_Pos)           /*!< 0x00000100 */
11612 #define TIM_CCMR1_CC2S_1                    (0x2UL << TIM_CCMR1_CC2S_Pos)           /*!< 0x00000200 */
11613 #define TIM_CCMR1_OC2FE_Pos                 (10U)
11614 #define TIM_CCMR1_OC2FE_Msk                 (0x1UL << TIM_CCMR1_OC2FE_Pos)          /*!< 0x00000400 */
11615 #define TIM_CCMR1_OC2FE                     TIM_CCMR1_OC2FE_Msk                     /*!<Output Compare 2 Fast enable */
11616 #define TIM_CCMR1_OC2PE_Pos                 (11U)
11617 #define TIM_CCMR1_OC2PE_Msk                 (0x1UL << TIM_CCMR1_OC2PE_Pos)          /*!< 0x00000800 */
11618 #define TIM_CCMR1_OC2PE                     TIM_CCMR1_OC2PE_Msk                     /*!<Output Compare 2 Preload enable */
11619 #define TIM_CCMR1_OC2M_Pos                  (12U)
11620 #define TIM_CCMR1_OC2M_Msk                  (0x1007UL << TIM_CCMR1_OC2M_Pos)        /*!< 0x01007000 */
11621 #define TIM_CCMR1_OC2M                      TIM_CCMR1_OC2M_Msk                      /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
11622 #define TIM_CCMR1_OC2M_0                    (0x0001UL << TIM_CCMR1_OC2M_Pos)        /*!< 0x00001000 */
11623 #define TIM_CCMR1_OC2M_1                    (0x0002UL << TIM_CCMR1_OC2M_Pos)        /*!< 0x00002000 */
11624 #define TIM_CCMR1_OC2M_2                    (0x0004UL << TIM_CCMR1_OC2M_Pos)        /*!< 0x00004000 */
11625 #define TIM_CCMR1_OC2M_3                    (0x1000UL << TIM_CCMR1_OC2M_Pos)        /*!< 0x01000000 */
11626 #define TIM_CCMR1_OC2CE_Pos                 (15U)
11627 #define TIM_CCMR1_OC2CE_Msk                 (0x1UL << TIM_CCMR1_OC2CE_Pos)          /*!< 0x00008000 */
11628 #define TIM_CCMR1_OC2CE                     TIM_CCMR1_OC2CE_Msk                     /*!<Output Compare 2 Clear Enable */
11629 
11630 /*----------------------------------------------------------------------------*/
11631 #define TIM_CCMR1_IC1PSC_Pos                (2U)
11632 #define TIM_CCMR1_IC1PSC_Msk                (0x3UL << TIM_CCMR1_IC1PSC_Pos)         /*!< 0x0000000C */
11633 #define TIM_CCMR1_IC1PSC                    TIM_CCMR1_IC1PSC_Msk                    /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
11634 #define TIM_CCMR1_IC1PSC_0                  (0x1UL << TIM_CCMR1_IC1PSC_Pos)         /*!< 0x00000004 */
11635 #define TIM_CCMR1_IC1PSC_1                  (0x2UL << TIM_CCMR1_IC1PSC_Pos)         /*!< 0x00000008 */
11636 #define TIM_CCMR1_IC1F_Pos                  (4U)
11637 #define TIM_CCMR1_IC1F_Msk                  (0xFUL << TIM_CCMR1_IC1F_Pos)           /*!< 0x000000F0 */
11638 #define TIM_CCMR1_IC1F                      TIM_CCMR1_IC1F_Msk                      /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
11639 #define TIM_CCMR1_IC1F_0                    (0x1UL << TIM_CCMR1_IC1F_Pos)           /*!< 0x00000010 */
11640 #define TIM_CCMR1_IC1F_1                    (0x2UL << TIM_CCMR1_IC1F_Pos)           /*!< 0x00000020 */
11641 #define TIM_CCMR1_IC1F_2                    (0x4UL << TIM_CCMR1_IC1F_Pos)           /*!< 0x00000040 */
11642 #define TIM_CCMR1_IC1F_3                    (0x8UL << TIM_CCMR1_IC1F_Pos)           /*!< 0x00000080 */
11643 #define TIM_CCMR1_IC2PSC_Pos                (10U)
11644 #define TIM_CCMR1_IC2PSC_Msk                (0x3UL << TIM_CCMR1_IC2PSC_Pos)         /*!< 0x00000C00 */
11645 #define TIM_CCMR1_IC2PSC                    TIM_CCMR1_IC2PSC_Msk                    /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
11646 #define TIM_CCMR1_IC2PSC_0                  (0x1UL << TIM_CCMR1_IC2PSC_Pos)         /*!< 0x00000400 */
11647 #define TIM_CCMR1_IC2PSC_1                  (0x2UL << TIM_CCMR1_IC2PSC_Pos)         /*!< 0x00000800 */
11648 #define TIM_CCMR1_IC2F_Pos                  (12U)
11649 #define TIM_CCMR1_IC2F_Msk                  (0xFUL << TIM_CCMR1_IC2F_Pos)           /*!< 0x0000F000 */
11650 #define TIM_CCMR1_IC2F                      TIM_CCMR1_IC2F_Msk                      /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
11651 #define TIM_CCMR1_IC2F_0                    (0x1UL << TIM_CCMR1_IC2F_Pos)           /*!< 0x00001000 */
11652 #define TIM_CCMR1_IC2F_1                    (0x2UL << TIM_CCMR1_IC2F_Pos)           /*!< 0x00002000 */
11653 #define TIM_CCMR1_IC2F_2                    (0x4UL << TIM_CCMR1_IC2F_Pos)           /*!< 0x00004000 */
11654 #define TIM_CCMR1_IC2F_3                    (0x8UL << TIM_CCMR1_IC2F_Pos)           /*!< 0x00008000 */
11655 
11656 /******************  Bit definition for TIM_CCMR2 register  *******************/
11657 #define TIM_CCMR2_CC3S_Pos                  (0U)
11658 #define TIM_CCMR2_CC3S_Msk                  (0x3UL << TIM_CCMR2_CC3S_Pos)           /*!< 0x00000003 */
11659 #define TIM_CCMR2_CC3S                      TIM_CCMR2_CC3S_Msk                      /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
11660 #define TIM_CCMR2_CC3S_0                    (0x1UL << TIM_CCMR2_CC3S_Pos)           /*!< 0x00000001 */
11661 #define TIM_CCMR2_CC3S_1                    (0x2UL << TIM_CCMR2_CC3S_Pos)           /*!< 0x00000002 */
11662 #define TIM_CCMR2_OC3FE_Pos                 (2U)
11663 #define TIM_CCMR2_OC3FE_Msk                 (0x1UL << TIM_CCMR2_OC3FE_Pos)          /*!< 0x00000004 */
11664 #define TIM_CCMR2_OC3FE                     TIM_CCMR2_OC3FE_Msk                     /*!<Output Compare 3 Fast enable */
11665 #define TIM_CCMR2_OC3PE_Pos                 (3U)
11666 #define TIM_CCMR2_OC3PE_Msk                 (0x1UL << TIM_CCMR2_OC3PE_Pos)          /*!< 0x00000008 */
11667 #define TIM_CCMR2_OC3PE                     TIM_CCMR2_OC3PE_Msk                     /*!<Output Compare 3 Preload enable */
11668 #define TIM_CCMR2_OC3M_Pos                  (4U)
11669 #define TIM_CCMR2_OC3M_Msk                  (0x1007UL << TIM_CCMR2_OC3M_Pos)        /*!< 0x00010070 */
11670 #define TIM_CCMR2_OC3M                      TIM_CCMR2_OC3M_Msk                      /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
11671 #define TIM_CCMR2_OC3M_0                    (0x0001UL << TIM_CCMR2_OC3M_Pos)        /*!< 0x00000010 */
11672 #define TIM_CCMR2_OC3M_1                    (0x0002UL << TIM_CCMR2_OC3M_Pos)        /*!< 0x00000020 */
11673 #define TIM_CCMR2_OC3M_2                    (0x0004UL << TIM_CCMR2_OC3M_Pos)        /*!< 0x00000040 */
11674 #define TIM_CCMR2_OC3M_3                    (0x1000UL << TIM_CCMR2_OC3M_Pos)        /*!< 0x00010000 */
11675 #define TIM_CCMR2_OC3CE_Pos                 (7U)
11676 #define TIM_CCMR2_OC3CE_Msk                 (0x1UL << TIM_CCMR2_OC3CE_Pos)          /*!< 0x00000080 */
11677 #define TIM_CCMR2_OC3CE                     TIM_CCMR2_OC3CE_Msk                     /*!<Output Compare 3 Clear Enable */
11678 #define TIM_CCMR2_CC4S_Pos                  (8U)
11679 #define TIM_CCMR2_CC4S_Msk                  (0x3UL << TIM_CCMR2_CC4S_Pos)           /*!< 0x00000300 */
11680 #define TIM_CCMR2_CC4S                      TIM_CCMR2_CC4S_Msk                      /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
11681 #define TIM_CCMR2_CC4S_0                    (0x1UL << TIM_CCMR2_CC4S_Pos)           /*!< 0x00000100 */
11682 #define TIM_CCMR2_CC4S_1                    (0x2UL << TIM_CCMR2_CC4S_Pos)           /*!< 0x00000200 */
11683 #define TIM_CCMR2_OC4FE_Pos                 (10U)
11684 #define TIM_CCMR2_OC4FE_Msk                 (0x1UL << TIM_CCMR2_OC4FE_Pos)          /*!< 0x00000400 */
11685 #define TIM_CCMR2_OC4FE                     TIM_CCMR2_OC4FE_Msk                     /*!<Output Compare 4 Fast enable */
11686 #define TIM_CCMR2_OC4PE_Pos                 (11U)
11687 #define TIM_CCMR2_OC4PE_Msk                 (0x1UL << TIM_CCMR2_OC4PE_Pos)          /*!< 0x00000800 */
11688 #define TIM_CCMR2_OC4PE                     TIM_CCMR2_OC4PE_Msk                     /*!<Output Compare 4 Preload enable */
11689 #define TIM_CCMR2_OC4M_Pos                  (12U)
11690 #define TIM_CCMR2_OC4M_Msk                  (0x1007UL << TIM_CCMR2_OC4M_Pos)        /*!< 0x01007000 */
11691 #define TIM_CCMR2_OC4M                      TIM_CCMR2_OC4M_Msk                      /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
11692 #define TIM_CCMR2_OC4M_0                    (0x0001UL << TIM_CCMR2_OC4M_Pos)        /*!< 0x00001000 */
11693 #define TIM_CCMR2_OC4M_1                    (0x0002UL << TIM_CCMR2_OC4M_Pos)        /*!< 0x00002000 */
11694 #define TIM_CCMR2_OC4M_2                    (0x0004UL << TIM_CCMR2_OC4M_Pos)        /*!< 0x00004000 */
11695 #define TIM_CCMR2_OC4M_3                    (0x1000UL << TIM_CCMR2_OC4M_Pos)        /*!< 0x01000000 */
11696 #define TIM_CCMR2_OC4CE_Pos                 (15U)
11697 #define TIM_CCMR2_OC4CE_Msk                 (0x1UL << TIM_CCMR2_OC4CE_Pos)          /*!< 0x00008000 */
11698 #define TIM_CCMR2_OC4CE                     TIM_CCMR2_OC4CE_Msk                     /*!<Output Compare 4 Clear Enable */
11699 
11700 /*----------------------------------------------------------------------------*/
11701 #define TIM_CCMR2_IC3PSC_Pos                (2U)
11702 #define TIM_CCMR2_IC3PSC_Msk                (0x3UL << TIM_CCMR2_IC3PSC_Pos)         /*!< 0x0000000C */
11703 #define TIM_CCMR2_IC3PSC                    TIM_CCMR2_IC3PSC_Msk                    /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
11704 #define TIM_CCMR2_IC3PSC_0                  (0x1UL << TIM_CCMR2_IC3PSC_Pos)         /*!< 0x00000004 */
11705 #define TIM_CCMR2_IC3PSC_1                  (0x2UL << TIM_CCMR2_IC3PSC_Pos)         /*!< 0x00000008 */
11706 #define TIM_CCMR2_IC3F_Pos                  (4U)
11707 #define TIM_CCMR2_IC3F_Msk                  (0xFUL << TIM_CCMR2_IC3F_Pos)           /*!< 0x000000F0 */
11708 #define TIM_CCMR2_IC3F                      TIM_CCMR2_IC3F_Msk                      /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
11709 #define TIM_CCMR2_IC3F_0                    (0x1UL << TIM_CCMR2_IC3F_Pos)           /*!< 0x00000010 */
11710 #define TIM_CCMR2_IC3F_1                    (0x2UL << TIM_CCMR2_IC3F_Pos)           /*!< 0x00000020 */
11711 #define TIM_CCMR2_IC3F_2                    (0x4UL << TIM_CCMR2_IC3F_Pos)           /*!< 0x00000040 */
11712 #define TIM_CCMR2_IC3F_3                    (0x8UL << TIM_CCMR2_IC3F_Pos)           /*!< 0x00000080 */
11713 #define TIM_CCMR2_IC4PSC_Pos                (10U)
11714 #define TIM_CCMR2_IC4PSC_Msk                (0x3UL << TIM_CCMR2_IC4PSC_Pos)         /*!< 0x00000C00 */
11715 #define TIM_CCMR2_IC4PSC                    TIM_CCMR2_IC4PSC_Msk                    /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
11716 #define TIM_CCMR2_IC4PSC_0                  (0x1UL << TIM_CCMR2_IC4PSC_Pos)         /*!< 0x00000400 */
11717 #define TIM_CCMR2_IC4PSC_1                  (0x2UL << TIM_CCMR2_IC4PSC_Pos)         /*!< 0x00000800 */
11718 #define TIM_CCMR2_IC4F_Pos                  (12U)
11719 #define TIM_CCMR2_IC4F_Msk                  (0xFUL << TIM_CCMR2_IC4F_Pos)           /*!< 0x0000F000 */
11720 #define TIM_CCMR2_IC4F                      TIM_CCMR2_IC4F_Msk                      /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
11721 #define TIM_CCMR2_IC4F_0                    (0x1UL << TIM_CCMR2_IC4F_Pos)           /*!< 0x00001000 */
11722 #define TIM_CCMR2_IC4F_1                    (0x2UL << TIM_CCMR2_IC4F_Pos)           /*!< 0x00002000 */
11723 #define TIM_CCMR2_IC4F_2                    (0x4UL << TIM_CCMR2_IC4F_Pos)           /*!< 0x00004000 */
11724 #define TIM_CCMR2_IC4F_3                    (0x8UL << TIM_CCMR2_IC4F_Pos)           /*!< 0x00008000 */
11725 
11726 /******************  Bit definition for TIM_CCMR3 register  *******************/
11727 #define TIM_CCMR3_OC5FE_Pos                 (2U)
11728 #define TIM_CCMR3_OC5FE_Msk                 (0x1UL << TIM_CCMR3_OC5FE_Pos)          /*!< 0x00000004 */
11729 #define TIM_CCMR3_OC5FE                     TIM_CCMR3_OC5FE_Msk                     /*!<Output Compare 5 Fast enable */
11730 #define TIM_CCMR3_OC5PE_Pos                 (3U)
11731 #define TIM_CCMR3_OC5PE_Msk                 (0x1UL << TIM_CCMR3_OC5PE_Pos)          /*!< 0x00000008 */
11732 #define TIM_CCMR3_OC5PE                     TIM_CCMR3_OC5PE_Msk                     /*!<Output Compare 5 Preload enable */
11733 #define TIM_CCMR3_OC5M_Pos                  (4U)
11734 #define TIM_CCMR3_OC5M_Msk                  (0x1007UL << TIM_CCMR3_OC5M_Pos)        /*!< 0x00010070 */
11735 #define TIM_CCMR3_OC5M                      TIM_CCMR3_OC5M_Msk                      /*!<OC5M[3:0] bits (Output Compare 5 Mode) */
11736 #define TIM_CCMR3_OC5M_0                    (0x0001UL << TIM_CCMR3_OC5M_Pos)        /*!< 0x00000010 */
11737 #define TIM_CCMR3_OC5M_1                    (0x0002UL << TIM_CCMR3_OC5M_Pos)        /*!< 0x00000020 */
11738 #define TIM_CCMR3_OC5M_2                    (0x0004UL << TIM_CCMR3_OC5M_Pos)        /*!< 0x00000040 */
11739 #define TIM_CCMR3_OC5M_3                    (0x1000UL << TIM_CCMR3_OC5M_Pos)        /*!< 0x00010000 */
11740 #define TIM_CCMR3_OC5CE_Pos                 (7U)
11741 #define TIM_CCMR3_OC5CE_Msk                 (0x1UL << TIM_CCMR3_OC5CE_Pos)          /*!< 0x00000080 */
11742 #define TIM_CCMR3_OC5CE                     TIM_CCMR3_OC5CE_Msk                     /*!<Output Compare 5 Clear Enable */
11743 #define TIM_CCMR3_OC6FE_Pos                 (10U)
11744 #define TIM_CCMR3_OC6FE_Msk                 (0x1UL << TIM_CCMR3_OC6FE_Pos)          /*!< 0x00000400 */
11745 #define TIM_CCMR3_OC6FE                     TIM_CCMR3_OC6FE_Msk                     /*!<Output Compare 6 Fast enable */
11746 #define TIM_CCMR3_OC6PE_Pos                 (11U)
11747 #define TIM_CCMR3_OC6PE_Msk                 (0x1UL << TIM_CCMR3_OC6PE_Pos)          /*!< 0x00000800 */
11748 #define TIM_CCMR3_OC6PE                     TIM_CCMR3_OC6PE_Msk                     /*!<Output Compare 6 Preload enable */
11749 #define TIM_CCMR3_OC6M_Pos                  (12U)
11750 #define TIM_CCMR3_OC6M_Msk                  (0x1007UL << TIM_CCMR3_OC6M_Pos)        /*!< 0x01007000 */
11751 #define TIM_CCMR3_OC6M                      TIM_CCMR3_OC6M_Msk                      /*!<OC6M[3:0] bits (Output Compare 6 Mode) */
11752 #define TIM_CCMR3_OC6M_0                    (0x0001UL << TIM_CCMR3_OC6M_Pos)        /*!< 0x00001000 */
11753 #define TIM_CCMR3_OC6M_1                    (0x0002UL << TIM_CCMR3_OC6M_Pos)        /*!< 0x00002000 */
11754 #define TIM_CCMR3_OC6M_2                    (0x0004UL << TIM_CCMR3_OC6M_Pos)        /*!< 0x00004000 */
11755 #define TIM_CCMR3_OC6M_3                    (0x1000UL << TIM_CCMR3_OC6M_Pos)        /*!< 0x01000000 */
11756 #define TIM_CCMR3_OC6CE_Pos                 (15U)
11757 #define TIM_CCMR3_OC6CE_Msk                 (0x1UL << TIM_CCMR3_OC6CE_Pos)          /*!< 0x00008000 */
11758 #define TIM_CCMR3_OC6CE                     TIM_CCMR3_OC6CE_Msk                     /*!<Output Compare 6 Clear Enable */
11759 
11760 /*******************  Bit definition for TIM_CCER register  *******************/
11761 #define TIM_CCER_CC1E_Pos                   (0U)
11762 #define TIM_CCER_CC1E_Msk                   (0x1UL << TIM_CCER_CC1E_Pos)            /*!< 0x00000001 */
11763 #define TIM_CCER_CC1E                       TIM_CCER_CC1E_Msk                       /*!<Capture/Compare 1 output enable */
11764 #define TIM_CCER_CC1P_Pos                   (1U)
11765 #define TIM_CCER_CC1P_Msk                   (0x1UL << TIM_CCER_CC1P_Pos)            /*!< 0x00000002 */
11766 #define TIM_CCER_CC1P                       TIM_CCER_CC1P_Msk                       /*!<Capture/Compare 1 output Polarity */
11767 #define TIM_CCER_CC1NE_Pos                  (2U)
11768 #define TIM_CCER_CC1NE_Msk                  (0x1UL << TIM_CCER_CC1NE_Pos)           /*!< 0x00000004 */
11769 #define TIM_CCER_CC1NE                      TIM_CCER_CC1NE_Msk                      /*!<Capture/Compare 1 Complementary output enable */
11770 #define TIM_CCER_CC1NP_Pos                  (3U)
11771 #define TIM_CCER_CC1NP_Msk                  (0x1UL << TIM_CCER_CC1NP_Pos)           /*!< 0x00000008 */
11772 #define TIM_CCER_CC1NP                      TIM_CCER_CC1NP_Msk                      /*!<Capture/Compare 1 Complementary output Polarity */
11773 #define TIM_CCER_CC2E_Pos                   (4U)
11774 #define TIM_CCER_CC2E_Msk                   (0x1UL << TIM_CCER_CC2E_Pos)            /*!< 0x00000010 */
11775 #define TIM_CCER_CC2E                       TIM_CCER_CC2E_Msk                       /*!<Capture/Compare 2 output enable */
11776 #define TIM_CCER_CC2P_Pos                   (5U)
11777 #define TIM_CCER_CC2P_Msk                   (0x1UL << TIM_CCER_CC2P_Pos)            /*!< 0x00000020 */
11778 #define TIM_CCER_CC2P                       TIM_CCER_CC2P_Msk                       /*!<Capture/Compare 2 output Polarity */
11779 #define TIM_CCER_CC2NE_Pos                  (6U)
11780 #define TIM_CCER_CC2NE_Msk                  (0x1UL << TIM_CCER_CC2NE_Pos)           /*!< 0x00000040 */
11781 #define TIM_CCER_CC2NE                      TIM_CCER_CC2NE_Msk                      /*!<Capture/Compare 2 Complementary output enable */
11782 #define TIM_CCER_CC2NP_Pos                  (7U)
11783 #define TIM_CCER_CC2NP_Msk                  (0x1UL << TIM_CCER_CC2NP_Pos)           /*!< 0x00000080 */
11784 #define TIM_CCER_CC2NP                      TIM_CCER_CC2NP_Msk                      /*!<Capture/Compare 2 Complementary output Polarity */
11785 #define TIM_CCER_CC3E_Pos                   (8U)
11786 #define TIM_CCER_CC3E_Msk                   (0x1UL << TIM_CCER_CC3E_Pos)            /*!< 0x00000100 */
11787 #define TIM_CCER_CC3E                       TIM_CCER_CC3E_Msk                       /*!<Capture/Compare 3 output enable */
11788 #define TIM_CCER_CC3P_Pos                   (9U)
11789 #define TIM_CCER_CC3P_Msk                   (0x1UL << TIM_CCER_CC3P_Pos)            /*!< 0x00000200 */
11790 #define TIM_CCER_CC3P                       TIM_CCER_CC3P_Msk                       /*!<Capture/Compare 3 output Polarity */
11791 #define TIM_CCER_CC3NE_Pos                  (10U)
11792 #define TIM_CCER_CC3NE_Msk                  (0x1UL << TIM_CCER_CC3NE_Pos)           /*!< 0x00000400 */
11793 #define TIM_CCER_CC3NE                      TIM_CCER_CC3NE_Msk                      /*!<Capture/Compare 3 Complementary output enable */
11794 #define TIM_CCER_CC3NP_Pos                  (11U)
11795 #define TIM_CCER_CC3NP_Msk                  (0x1UL << TIM_CCER_CC3NP_Pos)           /*!< 0x00000800 */
11796 #define TIM_CCER_CC3NP                      TIM_CCER_CC3NP_Msk                      /*!<Capture/Compare 3 Complementary output Polarity */
11797 #define TIM_CCER_CC4E_Pos                   (12U)
11798 #define TIM_CCER_CC4E_Msk                   (0x1UL << TIM_CCER_CC4E_Pos)            /*!< 0x00001000 */
11799 #define TIM_CCER_CC4E                       TIM_CCER_CC4E_Msk                       /*!<Capture/Compare 4 output enable */
11800 #define TIM_CCER_CC4P_Pos                   (13U)
11801 #define TIM_CCER_CC4P_Msk                   (0x1UL << TIM_CCER_CC4P_Pos)            /*!< 0x00002000 */
11802 #define TIM_CCER_CC4P                       TIM_CCER_CC4P_Msk                       /*!<Capture/Compare 4 output Polarity */
11803 #define TIM_CCER_CC4NE_Pos                  (14U)
11804 #define TIM_CCER_CC4NE_Msk                  (0x1UL << TIM_CCER_CC4NE_Pos)           /*!< 0x00004000 */
11805 #define TIM_CCER_CC4NE                      TIM_CCER_CC4NE_Msk                      /*!<Capture/Compare 4 Complementary output enable */
11806 #define TIM_CCER_CC4NP_Pos                  (15U)
11807 #define TIM_CCER_CC4NP_Msk                  (0x1UL << TIM_CCER_CC4NP_Pos)           /*!< 0x00008000 */
11808 #define TIM_CCER_CC4NP                      TIM_CCER_CC4NP_Msk                      /*!<Capture/Compare 4 Complementary output Polarity */
11809 #define TIM_CCER_CC5E_Pos                   (16U)
11810 #define TIM_CCER_CC5E_Msk                   (0x1UL << TIM_CCER_CC5E_Pos)            /*!< 0x00010000 */
11811 #define TIM_CCER_CC5E                       TIM_CCER_CC5E_Msk                       /*!<Capture/Compare 5 output enable */
11812 #define TIM_CCER_CC5P_Pos                   (17U)
11813 #define TIM_CCER_CC5P_Msk                   (0x1UL << TIM_CCER_CC5P_Pos)            /*!< 0x00020000 */
11814 #define TIM_CCER_CC5P                       TIM_CCER_CC5P_Msk                       /*!<Capture/Compare 5 output Polarity */
11815 #define TIM_CCER_CC6E_Pos                   (20U)
11816 #define TIM_CCER_CC6E_Msk                   (0x1UL << TIM_CCER_CC6E_Pos)            /*!< 0x00100000 */
11817 #define TIM_CCER_CC6E                       TIM_CCER_CC6E_Msk                       /*!<Capture/Compare 6 output enable */
11818 #define TIM_CCER_CC6P_Pos                   (21U)
11819 #define TIM_CCER_CC6P_Msk                   (0x1UL << TIM_CCER_CC6P_Pos)            /*!< 0x00200000 */
11820 #define TIM_CCER_CC6P                       TIM_CCER_CC6P_Msk                       /*!<Capture/Compare 6 output Polarity */
11821 
11822 /*******************  Bit definition for TIM_CNT register  ********************/
11823 #define TIM_CNT_CNT_Pos                     (0U)
11824 #define TIM_CNT_CNT_Msk                     (0xFFFFFFFFUL << TIM_CNT_CNT_Pos)       /*!< 0xFFFFFFFF */
11825 #define TIM_CNT_CNT                         TIM_CNT_CNT_Msk                         /*!<Counter Value */
11826 #define TIM_CNT_UIFCPY_Pos                  (31U)
11827 #define TIM_CNT_UIFCPY_Msk                  (0x1UL << TIM_CNT_UIFCPY_Pos)           /*!< 0x80000000 */
11828 #define TIM_CNT_UIFCPY                      TIM_CNT_UIFCPY_Msk                      /*!<Update interrupt flag copy (if UIFREMAP=1) */
11829 
11830 /*******************  Bit definition for TIM_PSC register  ********************/
11831 #define TIM_PSC_PSC_Pos                     (0U)
11832 #define TIM_PSC_PSC_Msk                     (0xFFFFUL << TIM_PSC_PSC_Pos)           /*!< 0x0000FFFF */
11833 #define TIM_PSC_PSC                         TIM_PSC_PSC_Msk                         /*!<Prescaler Value */
11834 
11835 /*******************  Bit definition for TIM_ARR register  ********************/
11836 #define TIM_ARR_ARR_Pos                     (0U)
11837 #define TIM_ARR_ARR_Msk                     (0xFFFFFFFFUL << TIM_ARR_ARR_Pos)       /*!< 0xFFFFFFFF */
11838 #define TIM_ARR_ARR                         TIM_ARR_ARR_Msk                         /*!<Actual auto-reload Value */
11839 
11840 /*******************  Bit definition for TIM_RCR register  ********************/
11841 #define TIM_RCR_REP_Pos                     (0U)
11842 #define TIM_RCR_REP_Msk                     (0xFFFFUL << TIM_RCR_REP_Pos)           /*!< 0x0000FFFF */
11843 #define TIM_RCR_REP                         TIM_RCR_REP_Msk                         /*!<Repetition Counter Value */
11844 
11845 /*******************  Bit definition for TIM_CCR1 register  *******************/
11846 #define TIM_CCR1_CCR1_Pos                   (0U)
11847 #define TIM_CCR1_CCR1_Msk                   (0xFFFFUL << TIM_CCR1_CCR1_Pos)         /*!< 0x0000FFFF */
11848 #define TIM_CCR1_CCR1                       TIM_CCR1_CCR1_Msk                       /*!<Capture/Compare 1 Value */
11849 
11850 /*******************  Bit definition for TIM_CCR2 register  *******************/
11851 #define TIM_CCR2_CCR2_Pos                   (0U)
11852 #define TIM_CCR2_CCR2_Msk                   (0xFFFFUL << TIM_CCR2_CCR2_Pos)         /*!< 0x0000FFFF */
11853 #define TIM_CCR2_CCR2                       TIM_CCR2_CCR2_Msk                       /*!<Capture/Compare 2 Value */
11854 
11855 /*******************  Bit definition for TIM_CCR3 register  *******************/
11856 #define TIM_CCR3_CCR3_Pos                   (0U)
11857 #define TIM_CCR3_CCR3_Msk                   (0xFFFFUL << TIM_CCR3_CCR3_Pos)         /*!< 0x0000FFFF */
11858 #define TIM_CCR3_CCR3                       TIM_CCR3_CCR3_Msk                       /*!<Capture/Compare 3 Value */
11859 
11860 /*******************  Bit definition for TIM_CCR4 register  *******************/
11861 #define TIM_CCR4_CCR4_Pos                   (0U)
11862 #define TIM_CCR4_CCR4_Msk                   (0xFFFFUL << TIM_CCR4_CCR4_Pos)         /*!< 0x0000FFFF */
11863 #define TIM_CCR4_CCR4                       TIM_CCR4_CCR4_Msk                       /*!<Capture/Compare 4 Value */
11864 
11865 /*******************  Bit definition for TIM_CCR5 register  *******************/
11866 #define TIM_CCR5_CCR5_Pos                   (0U)
11867 #define TIM_CCR5_CCR5_Msk                   (0xFFFFFFFFUL << TIM_CCR5_CCR5_Pos)     /*!< 0xFFFFFFFF */
11868 #define TIM_CCR5_CCR5                       TIM_CCR5_CCR5_Msk                       /*!<Capture/Compare 5 Value */
11869 #define TIM_CCR5_GC5C1_Pos                  (29U)
11870 #define TIM_CCR5_GC5C1_Msk                  (0x1UL << TIM_CCR5_GC5C1_Pos)           /*!< 0x20000000 */
11871 #define TIM_CCR5_GC5C1                      TIM_CCR5_GC5C1_Msk                      /*!<Group Channel 5 and Channel 1 */
11872 #define TIM_CCR5_GC5C2_Pos                  (30U)
11873 #define TIM_CCR5_GC5C2_Msk                  (0x1UL << TIM_CCR5_GC5C2_Pos)           /*!< 0x40000000 */
11874 #define TIM_CCR5_GC5C2                      TIM_CCR5_GC5C2_Msk                      /*!<Group Channel 5 and Channel 2 */
11875 #define TIM_CCR5_GC5C3_Pos                  (31U)
11876 #define TIM_CCR5_GC5C3_Msk                  (0x1UL << TIM_CCR5_GC5C3_Pos)           /*!< 0x80000000 */
11877 #define TIM_CCR5_GC5C3                      TIM_CCR5_GC5C3_Msk                      /*!<Group Channel 5 and Channel 3 */
11878 
11879 /*******************  Bit definition for TIM_CCR6 register  *******************/
11880 #define TIM_CCR6_CCR6_Pos                   (0U)
11881 #define TIM_CCR6_CCR6_Msk                   (0xFFFFUL << TIM_CCR6_CCR6_Pos)         /*!< 0x0000FFFF */
11882 #define TIM_CCR6_CCR6                       TIM_CCR6_CCR6_Msk                       /*!<Capture/Compare 6 Value */
11883 
11884 /*******************  Bit definition for TIM_BDTR register  *******************/
11885 #define TIM_BDTR_DTG_Pos                    (0U)
11886 #define TIM_BDTR_DTG_Msk                    (0xFFUL << TIM_BDTR_DTG_Pos)            /*!< 0x000000FF */
11887 #define TIM_BDTR_DTG                        TIM_BDTR_DTG_Msk                        /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
11888 #define TIM_BDTR_DTG_0                      (0x01UL << TIM_BDTR_DTG_Pos)            /*!< 0x00000001 */
11889 #define TIM_BDTR_DTG_1                      (0x02UL << TIM_BDTR_DTG_Pos)            /*!< 0x00000002 */
11890 #define TIM_BDTR_DTG_2                      (0x04UL << TIM_BDTR_DTG_Pos)            /*!< 0x00000004 */
11891 #define TIM_BDTR_DTG_3                      (0x08UL << TIM_BDTR_DTG_Pos)            /*!< 0x00000008 */
11892 #define TIM_BDTR_DTG_4                      (0x10UL << TIM_BDTR_DTG_Pos)            /*!< 0x00000010 */
11893 #define TIM_BDTR_DTG_5                      (0x20UL << TIM_BDTR_DTG_Pos)            /*!< 0x00000020 */
11894 #define TIM_BDTR_DTG_6                      (0x40UL << TIM_BDTR_DTG_Pos)            /*!< 0x00000040 */
11895 #define TIM_BDTR_DTG_7                      (0x80UL << TIM_BDTR_DTG_Pos)            /*!< 0x00000080 */
11896 #define TIM_BDTR_LOCK_Pos                   (8U)
11897 #define TIM_BDTR_LOCK_Msk                   (0x3UL << TIM_BDTR_LOCK_Pos)            /*!< 0x00000300 */
11898 #define TIM_BDTR_LOCK                       TIM_BDTR_LOCK_Msk                       /*!<LOCK[1:0] bits (Lock Configuration) */
11899 #define TIM_BDTR_LOCK_0                     (0x1UL << TIM_BDTR_LOCK_Pos)            /*!< 0x00000100 */
11900 #define TIM_BDTR_LOCK_1                     (0x2UL << TIM_BDTR_LOCK_Pos)            /*!< 0x00000200 */
11901 #define TIM_BDTR_OSSI_Pos                   (10U)
11902 #define TIM_BDTR_OSSI_Msk                   (0x1UL << TIM_BDTR_OSSI_Pos)            /*!< 0x00000400 */
11903 #define TIM_BDTR_OSSI                       TIM_BDTR_OSSI_Msk                       /*!<Off-State Selection for Idle mode */
11904 #define TIM_BDTR_OSSR_Pos                   (11U)
11905 #define TIM_BDTR_OSSR_Msk                   (0x1UL << TIM_BDTR_OSSR_Pos)            /*!< 0x00000800 */
11906 #define TIM_BDTR_OSSR                       TIM_BDTR_OSSR_Msk                       /*!<Off-State Selection for Run mode */
11907 #define TIM_BDTR_BKE_Pos                    (12U)
11908 #define TIM_BDTR_BKE_Msk                    (0x1UL << TIM_BDTR_BKE_Pos)             /*!< 0x00001000 */
11909 #define TIM_BDTR_BKE                        TIM_BDTR_BKE_Msk                        /*!<Break enable for Break 1 */
11910 #define TIM_BDTR_BKP_Pos                    (13U)
11911 #define TIM_BDTR_BKP_Msk                    (0x1UL << TIM_BDTR_BKP_Pos)             /*!< 0x00002000 */
11912 #define TIM_BDTR_BKP                        TIM_BDTR_BKP_Msk                        /*!<Break Polarity for Break 1 */
11913 #define TIM_BDTR_AOE_Pos                    (14U)
11914 #define TIM_BDTR_AOE_Msk                    (0x1UL << TIM_BDTR_AOE_Pos)             /*!< 0x00004000 */
11915 #define TIM_BDTR_AOE                        TIM_BDTR_AOE_Msk                        /*!<Automatic Output enable */
11916 #define TIM_BDTR_MOE_Pos                    (15U)
11917 #define TIM_BDTR_MOE_Msk                    (0x1UL << TIM_BDTR_MOE_Pos)             /*!< 0x00008000 */
11918 #define TIM_BDTR_MOE                        TIM_BDTR_MOE_Msk                        /*!<Main Output enable */
11919 #define TIM_BDTR_BKF_Pos                    (16U)
11920 #define TIM_BDTR_BKF_Msk                    (0xFUL << TIM_BDTR_BKF_Pos)             /*!< 0x000F0000 */
11921 #define TIM_BDTR_BKF                        TIM_BDTR_BKF_Msk                        /*!<Break Filter for Break 1 */
11922 #define TIM_BDTR_BK2F_Pos                   (20U)
11923 #define TIM_BDTR_BK2F_Msk                   (0xFUL << TIM_BDTR_BK2F_Pos)            /*!< 0x00F00000 */
11924 #define TIM_BDTR_BK2F                       TIM_BDTR_BK2F_Msk                       /*!<Break Filter for Break 2 */
11925 #define TIM_BDTR_BK2E_Pos                   (24U)
11926 #define TIM_BDTR_BK2E_Msk                   (0x1UL << TIM_BDTR_BK2E_Pos)            /*!< 0x01000000 */
11927 #define TIM_BDTR_BK2E                       TIM_BDTR_BK2E_Msk                       /*!<Break enable for Break 2 */
11928 #define TIM_BDTR_BK2P_Pos                   (25U)
11929 #define TIM_BDTR_BK2P_Msk                   (0x1UL << TIM_BDTR_BK2P_Pos)            /*!< 0x02000000 */
11930 #define TIM_BDTR_BK2P                       TIM_BDTR_BK2P_Msk                       /*!<Break Polarity for Break 2 */
11931 #define TIM_BDTR_BKDSRM_Pos                 (26U)
11932 #define TIM_BDTR_BKDSRM_Msk                 (0x1UL << TIM_BDTR_BKDSRM_Pos)          /*!< 0x04000000 */
11933 #define TIM_BDTR_BKDSRM                     TIM_BDTR_BKDSRM_Msk                     /*!<Break disarming/re-arming */
11934 #define TIM_BDTR_BK2DSRM_Pos                (27U)
11935 #define TIM_BDTR_BK2DSRM_Msk                (0x1UL << TIM_BDTR_BK2DSRM_Pos)         /*!< 0x08000000 */
11936 #define TIM_BDTR_BK2DSRM                    TIM_BDTR_BK2DSRM_Msk                    /*!<Break2 disarming/re-arming */
11937 #define TIM_BDTR_BKBID_Pos                  (28U)
11938 #define TIM_BDTR_BKBID_Msk                  (0x1UL << TIM_BDTR_BKBID_Pos)           /*!< 0x10000000 */
11939 #define TIM_BDTR_BKBID                      TIM_BDTR_BKBID_Msk                      /*!<Break BIDirectional */
11940 #define TIM_BDTR_BK2BID_Pos                 (29U)
11941 #define TIM_BDTR_BK2BID_Msk                 (0x1UL << TIM_BDTR_BK2BID_Pos)          /*!< 0x20000000 */
11942 #define TIM_BDTR_BK2BID                     TIM_BDTR_BK2BID_Msk                     /*!<Break2 BIDirectional */
11943 
11944 /*******************  Bit definition for TIM_DCR register  ********************/
11945 #define TIM_DCR_DBA_Pos                     (0U)
11946 #define TIM_DCR_DBA_Msk                     (0x1FUL << TIM_DCR_DBA_Pos)             /*!< 0x0000001F */
11947 #define TIM_DCR_DBA                         TIM_DCR_DBA_Msk                         /*!<DBA[4:0] bits (DMA Base Address) */
11948 #define TIM_DCR_DBA_0                       (0x01UL << TIM_DCR_DBA_Pos)             /*!< 0x00000001 */
11949 #define TIM_DCR_DBA_1                       (0x02UL << TIM_DCR_DBA_Pos)             /*!< 0x00000002 */
11950 #define TIM_DCR_DBA_2                       (0x04UL << TIM_DCR_DBA_Pos)             /*!< 0x00000004 */
11951 #define TIM_DCR_DBA_3                       (0x08UL << TIM_DCR_DBA_Pos)             /*!< 0x00000008 */
11952 #define TIM_DCR_DBA_4                       (0x10UL << TIM_DCR_DBA_Pos)             /*!< 0x00000010 */
11953 #define TIM_DCR_DBL_Pos                     (8U)
11954 #define TIM_DCR_DBL_Msk                     (0x1FUL << TIM_DCR_DBL_Pos)             /*!< 0x00001F00 */
11955 #define TIM_DCR_DBL                         TIM_DCR_DBL_Msk                         /*!<DBL[4:0] bits (DMA Burst Length) */
11956 #define TIM_DCR_DBL_0                       (0x01UL << TIM_DCR_DBL_Pos)             /*!< 0x00000100 */
11957 #define TIM_DCR_DBL_1                       (0x02UL << TIM_DCR_DBL_Pos)             /*!< 0x00000200 */
11958 #define TIM_DCR_DBL_2                       (0x04UL << TIM_DCR_DBL_Pos)             /*!< 0x00000400 */
11959 #define TIM_DCR_DBL_3                       (0x08UL << TIM_DCR_DBL_Pos)             /*!< 0x00000800 */
11960 #define TIM_DCR_DBL_4                       (0x10UL << TIM_DCR_DBL_Pos)             /*!< 0x00001000 */
11961 #define TIM_DCR_DBSS_Pos                    (16U)
11962 #define TIM_DCR_DBSS_Msk                    (0xFUL << TIM_DCR_DBSS_Pos)             /*!< 0x00000F00 */
11963 #define TIM_DCR_DBSS                        TIM_DCR_DBSS_Msk                        /*!<DBSS[19:16] bits (DMA Burst Source Selection) */
11964 #define TIM_DCR_DBSS_0                      (0x01UL << TIM_DCR_DBSS_Pos)            /*!< 0x00000100 */
11965 #define TIM_DCR_DBSS_1                      (0x02UL << TIM_DCR_DBSS_Pos)            /*!< 0x00000200 */
11966 #define TIM_DCR_DBSS_2                      (0x04UL << TIM_DCR_DBSS_Pos)            /*!< 0x00000400 */
11967 #define TIM_DCR_DBSS_3                      (0x08UL << TIM_DCR_DBSS_Pos)            /*!< 0x00000800 */
11968 
11969 /*******************  Bit definition for TIM1_AF1 register  *******************/
11970 #define TIM1_AF1_BKINE_Pos                  (0U)
11971 #define TIM1_AF1_BKINE_Msk                  (0x1UL << TIM1_AF1_BKINE_Pos)           /*!< 0x00000001 */
11972 #define TIM1_AF1_BKINE                      TIM1_AF1_BKINE_Msk                      /*!<BRK BKIN input enable */
11973 #define TIM1_AF1_BKCMP1E_Pos                (1U)
11974 #define TIM1_AF1_BKCMP1E_Msk                (0x1UL << TIM1_AF1_BKCMP1E_Pos)         /*!< 0x00000002 */
11975 #define TIM1_AF1_BKCMP1E                    TIM1_AF1_BKCMP1E_Msk                    /*!<BRK COMP1 enable */
11976 #define TIM1_AF1_BKCMP2E_Pos                (2U)
11977 #define TIM1_AF1_BKCMP2E_Msk                (0x1UL << TIM1_AF1_BKCMP2E_Pos)         /*!< 0x00000004 */
11978 #define TIM1_AF1_BKCMP2E                    TIM1_AF1_BKCMP2E_Msk                    /*!<BRK COMP2 enable */
11979 #define TIM1_AF1_BKDF1BK0E_Pos              (8U)
11980 #define TIM1_AF1_BKDF1BK0E_Msk              (0x1UL << TIM1_AF1_BKDF1BK0E_Pos)       /*!< 0x00000100 */
11981 #define TIM1_AF1_BKDF1BK0E                  TIM1_AF1_BKDF1BK0E_Msk                  /*!<BRK mdf1_break[0](TIM1) or mdf1_break[2](TIM2) enable */
11982 #define TIM1_AF1_BKINP_Pos                  (9U)
11983 #define TIM1_AF1_BKINP_Msk                  (0x1UL << TIM1_AF1_BKINP_Pos)           /*!< 0x00000200 */
11984 #define TIM1_AF1_BKINP                      TIM1_AF1_BKINP_Msk                      /*!<BRK BKIN input polarity */
11985 #define TIM1_AF1_BKCMP1P_Pos                (10U)
11986 #define TIM1_AF1_BKCMP1P_Msk                (0x1UL << TIM1_AF1_BKCMP1P_Pos)         /*!< 0x00000400 */
11987 #define TIM1_AF1_BKCMP1P                    TIM1_AF1_BKCMP1P_Msk                    /*!<BRK COMP1 input polarity */
11988 #define TIM1_AF1_BKCMP2P_Pos                (11U)
11989 #define TIM1_AF1_BKCMP2P_Msk                (0x1UL << TIM1_AF1_BKCMP2P_Pos)         /*!< 0x00000800 */
11990 #define TIM1_AF1_BKCMP2P                    TIM1_AF1_BKCMP2P_Msk                    /*!<BRK COMP2 input polarity */
11991 #define TIM1_AF1_ETRSEL_Pos                 (14U)
11992 #define TIM1_AF1_ETRSEL_Msk                 (0xFUL << TIM1_AF1_ETRSEL_Pos)          /*!< 0x0003C000 */
11993 #define TIM1_AF1_ETRSEL                     TIM1_AF1_ETRSEL_Msk                     /*!<ETRSEL[3:0] bits (TIM1 ETR source selection) */
11994 #define TIM1_AF1_ETRSEL_0                   (0x1UL << TIM1_AF1_ETRSEL_Pos)          /*!< 0x00004000 */
11995 #define TIM1_AF1_ETRSEL_1                   (0x2UL << TIM1_AF1_ETRSEL_Pos)          /*!< 0x00008000 */
11996 #define TIM1_AF1_ETRSEL_2                   (0x4UL << TIM1_AF1_ETRSEL_Pos)          /*!< 0x00010000 */
11997 #define TIM1_AF1_ETRSEL_3                   (0x8UL << TIM1_AF1_ETRSEL_Pos)          /*!< 0x00020000 */
11998 
11999 /*******************  Bit definition for TIM1_AF2 register  *********************/
12000 #define TIM1_AF2_BK2INE_Pos                 (0U)
12001 #define TIM1_AF2_BK2INE_Msk                 (0x1UL << TIM1_AF2_BK2INE_Pos)          /*!< 0x00000001 */
12002 #define TIM1_AF2_BK2INE                     TIM1_AF2_BK2INE_Msk                     /*!<BRK2 BKIN input enable */
12003 #define TIM1_AF2_BK2CMP1E_Pos               (1U)
12004 #define TIM1_AF2_BK2CMP1E_Msk               (0x1UL << TIM1_AF2_BK2CMP1E_Pos)        /*!< 0x00000002 */
12005 #define TIM1_AF2_BK2CMP1E                   TIM1_AF2_BK2CMP1E_Msk                   /*!<BRK2 COMP1 enable */
12006 #define TIM1_AF2_BK2CMP2E_Pos               (2U)
12007 #define TIM1_AF2_BK2CMP2E_Msk               (0x1UL << TIM1_AF2_BK2CMP2E_Pos)        /*!< 0x00000004 */
12008 #define TIM1_AF2_BK2CMP2E                   TIM1_AF2_BK2CMP2E_Msk                   /*!<BRK2 COMP2 enable */
12009 #define TIM1_AF2_BK2DF1BK1E_Pos             (8U)
12010 #define TIM1_AF2_BK2DF1BK1E_Msk             (0x1UL << TIM1_AF2_BK2DF1BK1E_Pos)      /*!< 0x00000100 */
12011 #define TIM1_AF2_BK2DF1BK1E                 TIM1_AF2_BK2DF1BK1E_Msk                 /*!<BRK2 mdf1_break[1](TIM1) or mdf1_break[3](TIM8) enable */
12012 #define TIM1_AF2_BK2INP_Pos                 (9U)
12013 #define TIM1_AF2_BK2INP_Msk                 (0x1UL << TIM1_AF2_BK2INP_Pos)          /*!< 0x00000200 */
12014 #define TIM1_AF2_BK2INP                     TIM1_AF2_BK2INP_Msk                     /*!<BRK2 BKIN input polarity */
12015 #define TIM1_AF2_BK2CMP1P_Pos               (10U)
12016 #define TIM1_AF2_BK2CMP1P_Msk               (0x1UL << TIM1_AF2_BK2CMP1P_Pos)        /*!< 0x00000400 */
12017 #define TIM1_AF2_BK2CMP1P                   TIM1_AF2_BK2CMP1P_Msk                   /*!<BRK2 COMP1 input polarity */
12018 #define TIM1_AF2_BK2CMP2P_Pos               (11U)
12019 #define TIM1_AF2_BK2CMP2P_Msk               (0x1UL << TIM1_AF2_BK2CMP2P_Pos)        /*!< 0x00000800 */
12020 #define TIM1_AF2_BK2CMP2P                   TIM1_AF2_BK2CMP2P_Msk                   /*!<BRK2 COMP2 input polarity */
12021 #define TIM1_AF2_OCRSEL_Pos                 (16U)
12022 #define TIM1_AF2_OCRSEL_Msk                 (0x1UL << TIM1_AF2_OCRSEL_Pos)          /*!< 0x00010000 */
12023 #define TIM1_AF2_OCRSEL                     TIM1_AF2_OCRSEL_Msk                     /*!<OCREF_CLR source selection */
12024 #define TIM1_AF2_OCRSEL_0                   (0x1UL << TIM1_AF2_OCRSEL_Pos)          /*!< 0x00010000 */
12025 
12026 /*******************  Bit definition for TIM_OR register  *********************/
12027 #define TIM_OR1_HSE32EN_Pos                 (1U)
12028 #define TIM_OR1_HSE32EN_Msk                 (0x1UL << TIM_OR1_HSE32EN_Pos)           /*!< 0x00000002 */
12029 #define TIM_OR1_HSE32EN                     TIM_OR1_HSE32EN_Msk                      /*!< HSE/32 clock enable */
12030 
12031 /*******************  Bit definition for TIM_TISEL register  *********************/
12032 #define TIM_TISEL_TI1SEL_Pos                (0U)
12033 #define TIM_TISEL_TI1SEL_Msk                (0xFUL << TIM_TISEL_TI1SEL_Pos)         /*!< 0x0000000F */
12034 #define TIM_TISEL_TI1SEL                    TIM_TISEL_TI1SEL_Msk                    /*!<TI1SEL[3:0] bits (TIM1 TI1 SEL)*/
12035 #define TIM_TISEL_TI1SEL_0                  (0x1UL << TIM_TISEL_TI1SEL_Pos)         /*!< 0x00000001 */
12036 #define TIM_TISEL_TI1SEL_1                  (0x2UL << TIM_TISEL_TI1SEL_Pos)         /*!< 0x00000002 */
12037 #define TIM_TISEL_TI1SEL_2                  (0x4UL << TIM_TISEL_TI1SEL_Pos)         /*!< 0x00000004 */
12038 #define TIM_TISEL_TI1SEL_3                  (0x8UL << TIM_TISEL_TI1SEL_Pos)         /*!< 0x00000008 */
12039 #define TIM_TISEL_TI2SEL_Pos                (8U)
12040 #define TIM_TISEL_TI2SEL_Msk                (0xFUL << TIM_TISEL_TI2SEL_Pos)         /*!< 0x00000F00 */
12041 #define TIM_TISEL_TI2SEL                    TIM_TISEL_TI2SEL_Msk                    /*!<TI2SEL[3:0] bits (TIM1 TI2 SEL)*/
12042 #define TIM_TISEL_TI2SEL_0                  (0x1UL << TIM_TISEL_TI2SEL_Pos)         /*!< 0x00000100 */
12043 #define TIM_TISEL_TI2SEL_1                  (0x2UL << TIM_TISEL_TI2SEL_Pos)         /*!< 0x00000200 */
12044 #define TIM_TISEL_TI2SEL_2                  (0x4UL << TIM_TISEL_TI2SEL_Pos)         /*!< 0x00000400 */
12045 #define TIM_TISEL_TI2SEL_3                  (0x8UL << TIM_TISEL_TI2SEL_Pos)         /*!< 0x00000800 */
12046 #define TIM_TISEL_TI3SEL_Pos                (16U)
12047 #define TIM_TISEL_TI3SEL_Msk                (0xFUL << TIM_TISEL_TI3SEL_Pos)         /*!< 0x000F0000 */
12048 #define TIM_TISEL_TI3SEL                    TIM_TISEL_TI3SEL_Msk                    /*!<TI3SEL[3:0] bits (TIM1 TI3 SEL)*/
12049 #define TIM_TISEL_TI3SEL_0                  (0x1UL << TIM_TISEL_TI3SEL_Pos)         /*!< 0x00010000 */
12050 #define TIM_TISEL_TI3SEL_1                  (0x2UL << TIM_TISEL_TI3SEL_Pos)         /*!< 0x00020000 */
12051 #define TIM_TISEL_TI3SEL_2                  (0x4UL << TIM_TISEL_TI3SEL_Pos)         /*!< 0x00040000 */
12052 #define TIM_TISEL_TI3SEL_3                  (0x8UL << TIM_TISEL_TI3SEL_Pos)         /*!< 0x00080000 */
12053 #define TIM_TISEL_TI4SEL_Pos                (24U)
12054 #define TIM_TISEL_TI4SEL_Msk                (0xFUL << TIM_TISEL_TI4SEL_Pos)         /*!< 0x0F000000 */
12055 #define TIM_TISEL_TI4SEL                    TIM_TISEL_TI4SEL_Msk                    /*!<TI4SEL[3:0] bits (TIM1 TI4 SEL)*/
12056 #define TIM_TISEL_TI4SEL_0                  (0x1UL << TIM_TISEL_TI4SEL_Pos)         /*!< 0x01000000 */
12057 #define TIM_TISEL_TI4SEL_1                  (0x2UL << TIM_TISEL_TI4SEL_Pos)         /*!< 0x02000000 */
12058 #define TIM_TISEL_TI4SEL_2                  (0x4UL << TIM_TISEL_TI4SEL_Pos)         /*!< 0x04000000 */
12059 #define TIM_TISEL_TI4SEL_3                  (0x8UL << TIM_TISEL_TI4SEL_Pos)         /*!< 0x08000000 */
12060 
12061 /*******************  Bit definition for TIM_DTR2 register  *********************/
12062 #define TIM_DTR2_DTGF_Pos                   (0U)
12063 #define TIM_DTR2_DTGF_Msk                   (0xFFUL << TIM_DTR2_DTGF_Pos)           /*!< 0x0000000F */
12064 #define TIM_DTR2_DTGF                       TIM_DTR2_DTGF_Msk                       /*!<DTGF[7:0] bits (Deadtime falling edge generator setup)*/
12065 #define TIM_DTR2_DTGF_0                     (0x01UL << TIM_DTR2_DTGF_Pos)           /*!< 0x00000001 */
12066 #define TIM_DTR2_DTGF_1                     (0x02UL << TIM_DTR2_DTGF_Pos)           /*!< 0x00000002 */
12067 #define TIM_DTR2_DTGF_2                     (0x04UL << TIM_DTR2_DTGF_Pos)           /*!< 0x00000004 */
12068 #define TIM_DTR2_DTGF_3                     (0x08UL << TIM_DTR2_DTGF_Pos)           /*!< 0x00000008 */
12069 #define TIM_DTR2_DTGF_4                     (0x10UL << TIM_DTR2_DTGF_Pos)           /*!< 0x00000010 */
12070 #define TIM_DTR2_DTGF_5                     (0x20UL << TIM_DTR2_DTGF_Pos)           /*!< 0x00000020 */
12071 #define TIM_DTR2_DTGF_6                     (0x40UL << TIM_DTR2_DTGF_Pos)           /*!< 0x00000040 */
12072 #define TIM_DTR2_DTGF_7                     (0x80UL << TIM_DTR2_DTGF_Pos)           /*!< 0x00000080 */
12073 #define TIM_DTR2_DTAE_Pos                   (16U)
12074 #define TIM_DTR2_DTAE_Msk                   (0x1UL << TIM_DTR2_DTAE_Pos)            /*!< 0x00004000 */
12075 #define TIM_DTR2_DTAE                       TIM_DTR2_DTAE_Msk                       /*!<Deadtime asymmetric enable */
12076 #define TIM_DTR2_DTPE_Pos                   (17U)
12077 #define TIM_DTR2_DTPE_Msk                   (0x1UL << TIM_DTR2_DTPE_Pos)            /*!< 0x00008000 */
12078 #define TIM_DTR2_DTPE                       TIM_DTR2_DTPE_Msk                       /*!<Deadtime prelaod enable */
12079 
12080 /*******************  Bit definition for TIM_ECR register  *********************/
12081 #define TIM_ECR_IE_Pos                      (0U)
12082 #define TIM_ECR_IE_Msk                      (0x1UL << TIM_ECR_IE_Pos)               /*!< 0x00000001 */
12083 #define TIM_ECR_IE                          TIM_ECR_IE_Msk                          /*!<Index enable */
12084 #define TIM_ECR_IDIR_Pos                    (1U)
12085 #define TIM_ECR_IDIR_Msk                    (0x3UL << TIM_ECR_IDIR_Pos)             /*!< 0x00000006 */
12086 #define TIM_ECR_IDIR                        TIM_ECR_IDIR_Msk                        /*!<IDIR[1:0] bits (Index direction)*/
12087 #define TIM_ECR_IDIR_0                      (0x01UL << TIM_ECR_IDIR_Pos)            /*!< 0x00000001 */
12088 #define TIM_ECR_IDIR_1                      (0x02UL << TIM_ECR_IDIR_Pos)            /*!< 0x00000002 */
12089 #define TIM_ECR_IBLK_Pos                    (3U)
12090 #define TIM_ECR_IBLK_Msk                    (0x5UL << TIM_ECR_IBLK_Pos)             /*!< 0x00000018 */
12091 #define TIM_ECR_IBLK                        TIM_ECR_IBLK_Msk                        /*!<IBLK[1:0] bits (Index blanking)*/
12092 #define TIM_ECR_IBLK_0                      (0x01UL << TIM_ECR_IBLK_Pos)            /*!< 0x00000008 */
12093 #define TIM_ECR_IBLK_1                      (0x02UL << TIM_ECR_IBLK_Pos)            /*!< 0x00000010 */
12094 #define TIM_ECR_FIDX_Pos                    (5U)
12095 #define TIM_ECR_FIDX_Msk                    (0x1UL << TIM_ECR_FIDX_Pos)             /*!< 0x00000020 */
12096 #define TIM_ECR_FIDX                        TIM_ECR_FIDX_Msk                        /*!<First index enable */
12097 #define TIM_ECR_IPOS_Pos                    (6U)
12098 #define TIM_ECR_IPOS_Msk                    (0x3UL << TIM_ECR_IPOS_Pos)             /*!< 0x000000C0 */
12099 #define TIM_ECR_IPOS                        TIM_ECR_IPOS_Msk                        /*!<IPOS[1:0] bits (Index positioning)*/
12100 #define TIM_ECR_IPOS_0                      (0x01UL << TIM_ECR_IPOS_Pos)            /*!< 0x00000040 */
12101 #define TIM_ECR_IPOS_1                      (0x02UL << TIM_ECR_IPOS_Pos)            /*!< 0x00000080 */
12102 #define TIM_ECR_PW_Pos                      (16U)
12103 #define TIM_ECR_PW_Msk                      (0xFFUL << TIM_ECR_PW_Pos)              /*!< 0x00FF0000 */
12104 #define TIM_ECR_PW                          TIM_ECR_PW_Msk                          /*!<PW[7:0] bits (Pulse width)*/
12105 #define TIM_ECR_PW_0                        (0x01UL << TIM_ECR_PW_Pos)              /*!< 0x00010000 */
12106 #define TIM_ECR_PW_1                        (0x02UL << TIM_ECR_PW_Pos)              /*!< 0x00020000 */
12107 #define TIM_ECR_PW_2                        (0x04UL << TIM_ECR_PW_Pos)              /*!< 0x00040000 */
12108 #define TIM_ECR_PW_3                        (0x08UL << TIM_ECR_PW_Pos)              /*!< 0x00080000 */
12109 #define TIM_ECR_PW_4                        (0x10UL << TIM_ECR_PW_Pos)              /*!< 0x00100000 */
12110 #define TIM_ECR_PW_5                        (0x20UL << TIM_ECR_PW_Pos)              /*!< 0x00200000 */
12111 #define TIM_ECR_PW_6                        (0x40UL << TIM_ECR_PW_Pos)              /*!< 0x00400000 */
12112 #define TIM_ECR_PW_7                        (0x80UL << TIM_ECR_PW_Pos)              /*!< 0x00800000 */
12113 #define TIM_ECR_PWPRSC_Pos                  (24U)
12114 #define TIM_ECR_PWPRSC_Msk                  (0x7UL << TIM_ECR_PWPRSC_Pos)           /*!< 0x07000000 */
12115 #define TIM_ECR_PWPRSC                      TIM_ECR_PWPRSC_Msk                      /*!<PWPRSC[2:0] bits (Pulse width prescaler)*/
12116 #define TIM_ECR_PWPRSC_0                    (0x01UL << TIM_ECR_PWPRSC_Pos)          /*!< 0x01000000 */
12117 #define TIM_ECR_PWPRSC_1                    (0x02UL << TIM_ECR_PWPRSC_Pos)          /*!< 0x02000000 */
12118 #define TIM_ECR_PWPRSC_2                    (0x04UL << TIM_ECR_PWPRSC_Pos)          /*!< 0x04000000 */
12119 
12120 /*******************  Bit definition for TIM_DMAR register  *******************/
12121 #define TIM_DMAR_DMAB_Pos                   (0U)
12122 #define TIM_DMAR_DMAB_Msk                   (0xFFFFFFFFUL << TIM_DMAR_DMAB_Pos)     /*!< 0xFFFFFFFF */
12123 #define TIM_DMAR_DMAB                       TIM_DMAR_DMAB_Msk                       /*!<DMA register for burst accesses */
12124 
12125 /******************************************************************************/
12126 /*                                                                            */
12127 /*                         Low Power Timer (LPTIM)                            */
12128 /*                                                                            */
12129 /******************************************************************************/
12130 /******************  Bit definition for LPTIM_ISR register  *******************/
12131 #define LPTIM_ISR_CC1IF_Pos                 (0U)
12132 #define LPTIM_ISR_CC1IF_Msk                 (0x1UL << LPTIM_ISR_CC1IF_Pos)            /*!< 0x00000001 */
12133 #define LPTIM_ISR_CC1IF                     LPTIM_ISR_CC1IF_Msk                       /*!< Capture/Compare 1 interrupt flag */
12134 #define LPTIM_ISR_ARRM_Pos                  (1U)
12135 #define LPTIM_ISR_ARRM_Msk                  (0x1UL << LPTIM_ISR_ARRM_Pos)           /*!< 0x00000002 */
12136 #define LPTIM_ISR_ARRM                      LPTIM_ISR_ARRM_Msk                      /*!< Autoreload match */
12137 #define LPTIM_ISR_EXTTRIG_Pos               (2U)
12138 #define LPTIM_ISR_EXTTRIG_Msk               (0x1UL << LPTIM_ISR_EXTTRIG_Pos)        /*!< 0x00000004 */
12139 #define LPTIM_ISR_EXTTRIG                   LPTIM_ISR_EXTTRIG_Msk                   /*!< External trigger edge event */
12140 #define LPTIM_ISR_CMP1OK_Pos                (3U)
12141 #define LPTIM_ISR_CMP1OK_Msk                (0x1UL << LPTIM_ISR_CMP1OK_Pos)         /*!< 0x00000008 */
12142 #define LPTIM_ISR_CMP1OK                    LPTIM_ISR_CMP1OK_Msk                    /*!< Compare register 1 update OK */
12143 #define LPTIM_ISR_ARROK_Pos                 (4U)
12144 #define LPTIM_ISR_ARROK_Msk                 (0x1UL << LPTIM_ISR_ARROK_Pos)          /*!< 0x00000010 */
12145 #define LPTIM_ISR_ARROK                     LPTIM_ISR_ARROK_Msk                     /*!< Autoreload register update OK */
12146 #define LPTIM_ISR_UP_Pos                    (5U)
12147 #define LPTIM_ISR_UP_Msk                    (0x1UL << LPTIM_ISR_UP_Pos)             /*!< 0x00000020 */
12148 #define LPTIM_ISR_UP                        LPTIM_ISR_UP_Msk                        /*!< Counter direction change down to up */
12149 #define LPTIM_ISR_DOWN_Pos                  (6U)
12150 #define LPTIM_ISR_DOWN_Msk                  (0x1UL << LPTIM_ISR_DOWN_Pos)           /*!< 0x00000040 */
12151 #define LPTIM_ISR_DOWN                      LPTIM_ISR_DOWN_Msk                      /*!< Counter direction change up to down */
12152 #define LPTIM_ISR_UE_Pos                    (7U)
12153 #define LPTIM_ISR_UE_Msk                    (0x1UL << LPTIM_ISR_UE_Pos)             /*!< 0x00000080 */
12154 #define LPTIM_ISR_UE                        LPTIM_ISR_UE_Msk                        /*!< Update event */
12155 #define LPTIM_ISR_REPOK_Pos                 (8U)
12156 #define LPTIM_ISR_REPOK_Msk                 (0x1UL << LPTIM_ISR_REPOK_Pos)          /*!< 0x00000100 */
12157 #define LPTIM_ISR_REPOK                     LPTIM_ISR_REPOK_Msk                     /*!< Repetition register update OK */
12158 #define LPTIM_ISR_CC2IF_Pos                 (9U)
12159 #define LPTIM_ISR_CC2IF_Msk                 (0x1UL << LPTIM_ISR_CC2IF_Pos)          /*!< 0x00000200 */
12160 #define LPTIM_ISR_CC2IF                     LPTIM_ISR_CC2IF_Msk                     /*!< Capture/Compare 2 interrupt flag */
12161 #define LPTIM_ISR_CC1OF_Pos                 (12U)
12162 #define LPTIM_ISR_CC1OF_Msk                 (0x1UL << LPTIM_ISR_CC1OF_Pos)          /*!< 0x00001000 */
12163 #define LPTIM_ISR_CC1OF                     LPTIM_ISR_CC1OF_Msk                     /*!< Capture/Compare 1 over-capture flag */
12164 #define LPTIM_ISR_CC2OF_Pos                 (13U)
12165 #define LPTIM_ISR_CC2OF_Msk                 (0x1UL << LPTIM_ISR_CC2OF_Pos)          /*!< 0x00002000 */
12166 #define LPTIM_ISR_CC2OF                     LPTIM_ISR_CC2OF_Msk                     /*!< Capture/Compare 2 over-capture flag */
12167 #define LPTIM_ISR_CMP2OK_Pos                (19U)
12168 #define LPTIM_ISR_CMP2OK_Msk                (0x1UL << LPTIM_ISR_CMP2OK_Pos)         /*!< 0x00080000 */
12169 #define LPTIM_ISR_CMP2OK                    LPTIM_ISR_CMP2OK_Msk                    /*!< Compare register 2 update OK */
12170 #define LPTIM_ISR_DIEROK_Pos                (24U)
12171 #define LPTIM_ISR_DIEROK_Msk                (0x1UL << LPTIM_ISR_DIEROK_Pos)         /*!< 0x01000000 */
12172 #define LPTIM_ISR_DIEROK                    LPTIM_ISR_DIEROK_Msk                    /*!< DMA & interrupt enable update OK */
12173 
12174 /******************  Bit definition for LPTIM_ICR register  *******************/
12175 #define LPTIM_ICR_CC1CF_Pos                 (0U)
12176 #define LPTIM_ICR_CC1CF_Msk                 (0x1UL << LPTIM_ICR_CC1CF_Pos)          /*!< 0x00000001 */
12177 #define LPTIM_ICR_CC1CF                     LPTIM_ICR_CC1CF_Msk                     /*!< Capture/Compare 1 clear flag  */
12178 #define LPTIM_ICR_ARRMCF_Pos                (1U)
12179 #define LPTIM_ICR_ARRMCF_Msk                (0x1UL << LPTIM_ICR_ARRMCF_Pos)         /*!< 0x00000002 */
12180 #define LPTIM_ICR_ARRMCF                    LPTIM_ICR_ARRMCF_Msk                    /*!< Autoreload match clear flag */
12181 #define LPTIM_ICR_EXTTRIGCF_Pos             (2U)
12182 #define LPTIM_ICR_EXTTRIGCF_Msk             (0x1UL << LPTIM_ICR_EXTTRIGCF_Pos)      /*!< 0x00000004 */
12183 #define LPTIM_ICR_EXTTRIGCF                 LPTIM_ICR_EXTTRIGCF_Msk                 /*!< External trigger edge event clear flag */
12184 #define LPTIM_ICR_CMP1OKCF_Pos              (3U)
12185 #define LPTIM_ICR_CMP1OKCF_Msk              (0x1UL << LPTIM_ICR_CMP1OKCF_Pos)       /*!< 0x00000008 */
12186 #define LPTIM_ICR_CMP1OKCF                  LPTIM_ICR_CMP1OKCF_Msk                  /*!< Compare register 1 update OK clear flag */
12187 #define LPTIM_ICR_ARROKCF_Pos               (4U)
12188 #define LPTIM_ICR_ARROKCF_Msk               (0x1UL << LPTIM_ICR_ARROKCF_Pos)        /*!< 0x00000010 */
12189 #define LPTIM_ICR_ARROKCF                   LPTIM_ICR_ARROKCF_Msk                   /*!< Autoreload register update OK clear flag */
12190 #define LPTIM_ICR_UPCF_Pos                  (5U)
12191 #define LPTIM_ICR_UPCF_Msk                  (0x1UL << LPTIM_ICR_UPCF_Pos)           /*!< 0x00000020 */
12192 #define LPTIM_ICR_UPCF                      LPTIM_ICR_UPCF_Msk                      /*!< Counter direction change down to up clear flag */
12193 #define LPTIM_ICR_DOWNCF_Pos                (6U)
12194 #define LPTIM_ICR_DOWNCF_Msk                (0x1UL << LPTIM_ICR_DOWNCF_Pos)         /*!< 0x00000040 */
12195 #define LPTIM_ICR_DOWNCF                    LPTIM_ICR_DOWNCF_Msk                    /*!< Counter direction change up to down clear flag */
12196 #define LPTIM_ICR_UECF_Pos                  (7U)
12197 #define LPTIM_ICR_UECF_Msk                  (0x1UL << LPTIM_ICR_UECF_Pos)           /*!< 0x00000080 */
12198 #define LPTIM_ICR_UECF                      LPTIM_ICR_UECF_Msk                      /*!< Update event clear flag */
12199 #define LPTIM_ICR_REPOKCF_Pos               (8U)
12200 #define LPTIM_ICR_REPOKCF_Msk               (0x1UL << LPTIM_ICR_REPOKCF_Pos)        /*!< 0x00000100 */
12201 #define LPTIM_ICR_REPOKCF                   LPTIM_ICR_REPOKCF_Msk                   /*!< Repetition register update OK clear flag */
12202 #define LPTIM_ICR_CC2CF_Pos                 (9U)
12203 #define LPTIM_ICR_CC2CF_Msk                 (0x1UL << LPTIM_ICR_CC2CF_Pos)          /*!< 0x00000200 */
12204 #define LPTIM_ICR_CC2CF                     LPTIM_ICR_CC2CF_Msk                     /*!< Capture/Compare 2 clear flag  */
12205 #define LPTIM_ICR_CC1OCF_Pos                (12U)
12206 #define LPTIM_ICR_CC1OCF_Msk                (0x1UL << LPTIM_ICR_CC1OCF_Pos)         /*!< 0x00001000 */
12207 #define LPTIM_ICR_CC1OCF                    LPTIM_ICR_CC1OCF_Msk                    /*!< Capture/Compare 1 over-capture clear flag */
12208 #define LPTIM_ICR_CC2OCF_Pos                (13U)
12209 #define LPTIM_ICR_CC2OCF_Msk                (0x1UL << LPTIM_ICR_CC2OCF_Pos)         /*!< 0x00002000 */
12210 #define LPTIM_ICR_CC2OCF                    LPTIM_ICR_CC2OCF_Msk                    /*!< Capture/Compare 2 over-capture clear flag */
12211 #define LPTIM_ICR_CMP2OKCF_Pos              (19U)
12212 #define LPTIM_ICR_CMP2OKCF_Msk              (0x1UL << LPTIM_ICR_CMP2OKCF_Pos)       /*!< 0x00080000 */
12213 #define LPTIM_ICR_CMP2OKCF                  LPTIM_ICR_CMP2OKCF_Msk                  /*!< Compare register 2 update OK clear flag */
12214 #define LPTIM_ICR_DIEROKCF_Pos              (24U)
12215 #define LPTIM_ICR_DIEROKCF_Msk              (0x1UL << LPTIM_ICR_DIEROKCF_Pos)       /*!< 0x01000000 */
12216 #define LPTIM_ICR_DIEROKCF                  LPTIM_ICR_DIEROKCF_Msk                  /*!< Interrupt enable register update OK clear flag */
12217 /******************  Bit definition for LPTIM_DIER register *******************/
12218 #define LPTIM_DIER_CC1IE_Pos                (0U)
12219 #define LPTIM_DIER_CC1IE_Msk                (0x1UL << LPTIM_DIER_CC1IE_Pos)         /*!< 0x00000001 */
12220 #define LPTIM_DIER_CC1IE                    LPTIM_DIER_CC1IE_Msk                    /*!< Compare/Compare interrupt enable */
12221 #define LPTIM_DIER_ARRMIE_Pos               (1U)
12222 #define LPTIM_DIER_ARRMIE_Msk               (0x1UL << LPTIM_DIER_ARRMIE_Pos)        /*!< 0x00000002 */
12223 #define LPTIM_DIER_ARRMIE                   LPTIM_DIER_ARRMIE_Msk                   /*!< Autoreload match interrupt enable */
12224 #define LPTIM_DIER_EXTTRIGIE_Pos            (2U)
12225 #define LPTIM_DIER_EXTTRIGIE_Msk            (0x1UL << LPTIM_DIER_EXTTRIGIE_Pos)     /*!< 0x00000004 */
12226 #define LPTIM_DIER_EXTTRIGIE                LPTIM_DIER_EXTTRIGIE_Msk                /*!< External trigger edge event interrupt enable */
12227 #define LPTIM_DIER_CMP1OKIE_Pos             (3U)
12228 #define LPTIM_DIER_CMP1OKIE_Msk             (0x1UL << LPTIM_DIER_CMP1OKIE_Pos)      /*!< 0x00000008 */
12229 #define LPTIM_DIER_CMP1OKIE                 LPTIM_DIER_CMP1OKIE_Msk                 /*!< Compare register 1 update OK interrupt enable */
12230 #define LPTIM_DIER_ARROKIE_Pos              (4U)
12231 #define LPTIM_DIER_ARROKIE_Msk              (0x1UL << LPTIM_DIER_ARROKIE_Pos)       /*!< 0x00000010 */
12232 #define LPTIM_DIER_ARROKIE                  LPTIM_DIER_ARROKIE_Msk                  /*!< Autoreload register update OK interrupt enable */
12233 #define LPTIM_DIER_UPIE_Pos                 (5U)
12234 #define LPTIM_DIER_UPIE_Msk                 (0x1UL << LPTIM_DIER_UPIE_Pos)          /*!< 0x00000020 */
12235 #define LPTIM_DIER_UPIE                     LPTIM_DIER_UPIE_Msk                     /*!< Counter direction change down to up interrupt enable */
12236 #define LPTIM_DIER_DOWNIE_Pos               (6U)
12237 #define LPTIM_DIER_DOWNIE_Msk               (0x1UL << LPTIM_DIER_DOWNIE_Pos)        /*!< 0x00000040 */
12238 #define LPTIM_DIER_DOWNIE                   LPTIM_DIER_DOWNIE_Msk                   /*!< Counter direction change up to down interrupt enable */
12239 #define LPTIM_DIER_UEIE_Pos                 (7U)
12240 #define LPTIM_DIER_UEIE_Msk                 (0x1UL << LPTIM_DIER_UEIE_Pos)          /*!< 0x00000080 */
12241 #define LPTIM_DIER_UEIE                     LPTIM_DIER_UEIE_Msk                     /*!< Update event interrupt enable */
12242 #define LPTIM_DIER_REPOKIE_Pos              (8U)
12243 #define LPTIM_DIER_REPOKIE_Msk              (0x1UL << LPTIM_DIER_REPOKIE_Pos)       /*!< 0x00000100 */
12244 #define LPTIM_DIER_REPOKIE                  LPTIM_DIER_REPOKIE_Msk                  /*!< Repetition register update OK interrupt enable */
12245 #define LPTIM_DIER_CC2IE_Pos                (9U)
12246 #define LPTIM_DIER_CC2IE_Msk                (0x1UL << LPTIM_DIER_CC2IE_Pos)         /*!< 0x00000200 */
12247 #define LPTIM_DIER_CC2IE                    LPTIM_DIER_CC2IE_Msk                    /*!< Capture/Compare 2 interrupt interrupt enable */
12248 #define LPTIM_DIER_CC1OIE_Pos               (12U)
12249 #define LPTIM_DIER_CC1OIE_Msk               (0x1UL << LPTIM_DIER_CC1OIE_Pos)        /*!< 0x00001000 */
12250 #define LPTIM_DIER_CC1OIE                   LPTIM_DIER_CC1OIE_Msk                   /*!< Capture/Compare 1 over-capture interrupt enable */
12251 #define LPTIM_DIER_CC2OIE_Pos               (13U)
12252 #define LPTIM_DIER_CC2OIE_Msk               (0x1UL << LPTIM_DIER_CC2OIE_Pos)        /*!< 0x00002000 */
12253 #define LPTIM_DIER_CC2OIE                   LPTIM_DIER_CC2OIE_Msk                   /*!< Capture/Compare 2 over-capture interrupt enable */
12254 #define LPTIM_DIER_CC1DE_Pos                (16U)
12255 #define LPTIM_DIER_CC1DE_Msk                (0x1UL << LPTIM_DIER_CC1DE_Pos)         /*!< 0x00010000 */
12256 #define LPTIM_DIER_CC1DE                    LPTIM_DIER_CC1DE_Msk                    /*!< Capture/Compare 1 DMA request enable */
12257 #define LPTIM_DIER_CMP2OKIE_Pos             (19U)
12258 #define LPTIM_DIER_CMP2OKIE_Msk             (0x1UL << LPTIM_DIER_CMP2OKIE_Pos)      /*!< 0x00080000 */
12259 #define LPTIM_DIER_CMP2OKIE                 LPTIM_DIER_CMP2OKIE_Msk                 /*!< Compare register 2 update OK interrupt enable */
12260 #define LPTIM_DIER_UEDE_Pos                 (23U)
12261 #define LPTIM_DIER_UEDE_Msk                 (0x1UL << LPTIM_DIER_UEDE_Pos)          /*!< 0x00800000 */
12262 #define LPTIM_DIER_UEDE                     LPTIM_DIER_UEDE_Msk                     /*!< Update event DMA request enable */
12263 #define LPTIM_DIER_CC2DE_Pos                (25U)
12264 #define LPTIM_DIER_CC2DE_Msk                (0x1UL << LPTIM_DIER_CC2DE_Pos)         /*!< 0x02000000 */
12265 #define LPTIM_DIER_CC2DE                    LPTIM_DIER_CC2DE_Msk                    /*!< Capture/Compare 2 DMA request enable */
12266 
12267 /******************  Bit definition for LPTIM_CFGR register *******************/
12268 #define LPTIM_CFGR_CKSEL_Pos                (0U)
12269 #define LPTIM_CFGR_CKSEL_Msk                (0x1UL << LPTIM_CFGR_CKSEL_Pos)         /*!< 0x00000001 */
12270 #define LPTIM_CFGR_CKSEL                    LPTIM_CFGR_CKSEL_Msk                    /*!< Clock selector */
12271 #define LPTIM_CFGR_CKPOL_Pos                (1U)
12272 #define LPTIM_CFGR_CKPOL_Msk                (0x3UL << LPTIM_CFGR_CKPOL_Pos)         /*!< 0x00000006 */
12273 #define LPTIM_CFGR_CKPOL                    LPTIM_CFGR_CKPOL_Msk                    /*!< CKPOL[1:0] bits (Clock polarity) */
12274 #define LPTIM_CFGR_CKPOL_0                  (0x1UL << LPTIM_CFGR_CKPOL_Pos)         /*!< 0x00000002 */
12275 #define LPTIM_CFGR_CKPOL_1                  (0x2UL << LPTIM_CFGR_CKPOL_Pos)         /*!< 0x00000004 */
12276 #define LPTIM_CFGR_CKFLT_Pos                (3U)
12277 #define LPTIM_CFGR_CKFLT_Msk                (0x3UL << LPTIM_CFGR_CKFLT_Pos)         /*!< 0x00000018 */
12278 #define LPTIM_CFGR_CKFLT                    LPTIM_CFGR_CKFLT_Msk                    /*!< CKFLT[1:0] bits (Configurable digital filter for external clock) */
12279 #define LPTIM_CFGR_CKFLT_0                  (0x1UL << LPTIM_CFGR_CKFLT_Pos)         /*!< 0x00000008 */
12280 #define LPTIM_CFGR_CKFLT_1                  (0x2UL << LPTIM_CFGR_CKFLT_Pos)         /*!< 0x00000010 */
12281 #define LPTIM_CFGR_TRGFLT_Pos               (6U)
12282 #define LPTIM_CFGR_TRGFLT_Msk               (0x3UL << LPTIM_CFGR_TRGFLT_Pos)        /*!< 0x000000C0 */
12283 #define LPTIM_CFGR_TRGFLT                   LPTIM_CFGR_TRGFLT_Msk                   /*!< TRGFLT[1:0] bits (Configurable digital filter for trigger) */
12284 #define LPTIM_CFGR_TRGFLT_0                 (0x1UL << LPTIM_CFGR_TRGFLT_Pos)        /*!< 0x00000040 */
12285 #define LPTIM_CFGR_TRGFLT_1                 (0x2UL << LPTIM_CFGR_TRGFLT_Pos)        /*!< 0x00000080 */
12286 #define LPTIM_CFGR_PRESC_Pos                (9U)
12287 #define LPTIM_CFGR_PRESC_Msk                (0x7UL << LPTIM_CFGR_PRESC_Pos)         /*!< 0x00000E00 */
12288 #define LPTIM_CFGR_PRESC                    LPTIM_CFGR_PRESC_Msk                    /*!< PRESC[2:0] bits (Clock prescaler) */
12289 #define LPTIM_CFGR_PRESC_0                  (0x1UL << LPTIM_CFGR_PRESC_Pos)         /*!< 0x00000200 */
12290 #define LPTIM_CFGR_PRESC_1                  (0x2UL << LPTIM_CFGR_PRESC_Pos)         /*!< 0x00000400 */
12291 #define LPTIM_CFGR_PRESC_2                  (0x4UL << LPTIM_CFGR_PRESC_Pos)         /*!< 0x00000800 */
12292 #define LPTIM_CFGR_TRIGSEL_Pos              (13U)
12293 #define LPTIM_CFGR_TRIGSEL_Msk              (0x7UL << LPTIM_CFGR_TRIGSEL_Pos)       /*!< 0x0000E000 */
12294 #define LPTIM_CFGR_TRIGSEL                  LPTIM_CFGR_TRIGSEL_Msk                  /*!< TRIGSEL[2:0]] bits (Trigger selector) */
12295 #define LPTIM_CFGR_TRIGSEL_0                (0x1UL << LPTIM_CFGR_TRIGSEL_Pos)       /*!< 0x00002000 */
12296 #define LPTIM_CFGR_TRIGSEL_1                (0x2UL << LPTIM_CFGR_TRIGSEL_Pos)       /*!< 0x00004000 */
12297 #define LPTIM_CFGR_TRIGSEL_2                (0x4UL << LPTIM_CFGR_TRIGSEL_Pos)       /*!< 0x00008000 */
12298 #define LPTIM_CFGR_TRIGEN_Pos               (17U)
12299 #define LPTIM_CFGR_TRIGEN_Msk               (0x3UL << LPTIM_CFGR_TRIGEN_Pos)        /*!< 0x00060000 */
12300 #define LPTIM_CFGR_TRIGEN                   LPTIM_CFGR_TRIGEN_Msk                   /*!< TRIGEN[1:0] bits (Trigger enable and polarity) */
12301 #define LPTIM_CFGR_TRIGEN_0                 (0x1UL << LPTIM_CFGR_TRIGEN_Pos)        /*!< 0x00020000 */
12302 #define LPTIM_CFGR_TRIGEN_1                 (0x2UL << LPTIM_CFGR_TRIGEN_Pos)        /*!< 0x00040000 */
12303 #define LPTIM_CFGR_TIMOUT_Pos               (19U)
12304 #define LPTIM_CFGR_TIMOUT_Msk               (0x1UL << LPTIM_CFGR_TIMOUT_Pos)        /*!< 0x00080000 */
12305 #define LPTIM_CFGR_TIMOUT                   LPTIM_CFGR_TIMOUT_Msk                   /*!< Timout enable */
12306 #define LPTIM_CFGR_WAVE_Pos                 (20U)
12307 #define LPTIM_CFGR_WAVE_Msk                 (0x1UL << LPTIM_CFGR_WAVE_Pos)          /*!< 0x00100000 */
12308 #define LPTIM_CFGR_WAVE                     LPTIM_CFGR_WAVE_Msk                     /*!< Waveform shape */
12309 #define LPTIM_CFGR_WAVPOL_Pos               (21U)
12310 #define LPTIM_CFGR_WAVPOL_Msk               (0x1UL << LPTIM_CFGR_WAVPOL_Pos)        /*!< 0x00200000 */
12311 #define LPTIM_CFGR_WAVPOL                   LPTIM_CFGR_WAVPOL_Msk                   /*!< Waveform shape */
12312 #define LPTIM_CFGR_PRELOAD_Pos              (22U)
12313 #define LPTIM_CFGR_PRELOAD_Msk              (0x1UL << LPTIM_CFGR_PRELOAD_Pos)       /*!< 0x00400000 */
12314 #define LPTIM_CFGR_PRELOAD                  LPTIM_CFGR_PRELOAD_Msk                  /*!< Reg update mode */
12315 #define LPTIM_CFGR_COUNTMODE_Pos            (23U)
12316 #define LPTIM_CFGR_COUNTMODE_Msk            (0x1UL << LPTIM_CFGR_COUNTMODE_Pos)     /*!< 0x00800000 */
12317 #define LPTIM_CFGR_COUNTMODE                LPTIM_CFGR_COUNTMODE_Msk                /*!< Counter mode enable */
12318 #define LPTIM_CFGR_ENC_Pos                  (24U)
12319 #define LPTIM_CFGR_ENC_Msk                  (0x1UL << LPTIM_CFGR_ENC_Pos)           /*!< 0x01000000 */
12320 #define LPTIM_CFGR_ENC                      LPTIM_CFGR_ENC_Msk                      /*!< Encoder mode enable */
12321 
12322 /******************  Bit definition for LPTIM_CR register  ********************/
12323 #define LPTIM_CR_ENABLE_Pos                 (0U)
12324 #define LPTIM_CR_ENABLE_Msk                 (0x1UL << LPTIM_CR_ENABLE_Pos)          /*!< 0x00000001 */
12325 #define LPTIM_CR_ENABLE                     LPTIM_CR_ENABLE_Msk                     /*!< LPTIMer enable */
12326 #define LPTIM_CR_SNGSTRT_Pos                (1U)
12327 #define LPTIM_CR_SNGSTRT_Msk                (0x1UL << LPTIM_CR_SNGSTRT_Pos)         /*!< 0x00000002 */
12328 #define LPTIM_CR_SNGSTRT                    LPTIM_CR_SNGSTRT_Msk                    /*!< Timer start in single mode */
12329 #define LPTIM_CR_CNTSTRT_Pos                (2U)
12330 #define LPTIM_CR_CNTSTRT_Msk                (0x1UL << LPTIM_CR_CNTSTRT_Pos)         /*!< 0x00000004 */
12331 #define LPTIM_CR_CNTSTRT                    LPTIM_CR_CNTSTRT_Msk                    /*!< Timer start in continuous mode */
12332 #define LPTIM_CR_COUNTRST_Pos               (3U)
12333 #define LPTIM_CR_COUNTRST_Msk               (0x1UL << LPTIM_CR_COUNTRST_Pos)        /*!< 0x00000008 */
12334 #define LPTIM_CR_COUNTRST                   LPTIM_CR_COUNTRST_Msk                   /*!< Timer Counter reset in synchronous mode*/
12335 #define LPTIM_CR_RSTARE_Pos                 (4U)
12336 #define LPTIM_CR_RSTARE_Msk                 (0x1UL << LPTIM_CR_RSTARE_Pos)          /*!< 0x00000010 */
12337 #define LPTIM_CR_RSTARE                     LPTIM_CR_RSTARE_Msk                     /*!< Timer Counter reset after read enable (asynchronously)*/
12338 
12339 /******************  Bit definition for LPTIM_CCR1 register  ******************/
12340 #define LPTIM_CCR1_CCR1_Pos                 (0U)
12341 #define LPTIM_CCR1_CCR1_Msk                 (0xFFFFUL << LPTIM_CCR1_CCR1_Pos)       /*!< 0x0000FFFF */
12342 #define LPTIM_CCR1_CCR1                     LPTIM_CCR1_CCR1_Msk                     /*!< Compare register 1 */
12343 
12344 /******************  Bit definition for LPTIM_ARR register  *******************/
12345 #define LPTIM_ARR_ARR_Pos                   (0U)
12346 #define LPTIM_ARR_ARR_Msk                   (0xFFFFUL << LPTIM_ARR_ARR_Pos)         /*!< 0x0000FFFF */
12347 #define LPTIM_ARR_ARR                       LPTIM_ARR_ARR_Msk                       /*!< Auto reload register */
12348 
12349 /******************  Bit definition for LPTIM_CNT register  *******************/
12350 #define LPTIM_CNT_CNT_Pos                   (0U)
12351 #define LPTIM_CNT_CNT_Msk                   (0xFFFFUL << LPTIM_CNT_CNT_Pos)         /*!< 0x0000FFFF */
12352 #define LPTIM_CNT_CNT                       LPTIM_CNT_CNT_Msk                       /*!< Counter register */
12353 
12354 /******************  Bit definition for LPTIM_CFGR2 register  *****************/
12355 #define LPTIM_CFGR2_IN1SEL_Pos              (0U)
12356 #define LPTIM_CFGR2_IN1SEL_Msk              (0x3UL << LPTIM_CFGR2_IN1SEL_Pos)       /*!< 0x00000003 */
12357 #define LPTIM_CFGR2_IN1SEL                  LPTIM_CFGR2_IN1SEL_Msk                  /*!< IN1SEL[1:0] bits (Remap selection) */
12358 #define LPTIM_CFGR2_IN1SEL_0                (0x1UL << LPTIM_CFGR2_IN1SEL_Pos)       /*!< 0x00000001 */
12359 #define LPTIM_CFGR2_IN1SEL_1                (0x2UL << LPTIM_CFGR2_IN1SEL_Pos)       /*!< 0x00000002 */
12360 #define LPTIM_CFGR2_IN2SEL_Pos              (4U)
12361 #define LPTIM_CFGR2_IN2SEL_Msk              (0x3UL << LPTIM_CFGR2_IN2SEL_Pos)       /*!< 0x00000030 */
12362 #define LPTIM_CFGR2_IN2SEL                  LPTIM_CFGR2_IN2SEL_Msk                  /*!< IN2SEL[5:4] bits (Remap selection) */
12363 #define LPTIM_CFGR2_IN2SEL_0                (0x1UL << LPTIM_CFGR2_IN2SEL_Pos)       /*!< 0x00000010 */
12364 #define LPTIM_CFGR2_IN2SEL_1                (0x2UL << LPTIM_CFGR2_IN2SEL_Pos)       /*!< 0x00000020 */
12365 #define LPTIM_CFGR2_IC1SEL_Pos              (16U)
12366 #define LPTIM_CFGR2_IC1SEL_Msk              (0x3UL << LPTIM_CFGR2_IC1SEL_Pos)       /*!< 0x00000003 */
12367 #define LPTIM_CFGR2_IC1SEL                  LPTIM_CFGR2_IC1SEL_Msk                  /*!< IC1SEL[17:16] bits */
12368 #define LPTIM_CFGR2_IC1SEL_0                (0x1UL << LPTIM_CFGR2_IC1SEL_Pos)       /*!< 0x00010000 */
12369 #define LPTIM_CFGR2_IC1SEL_1                (0x2UL << LPTIM_CFGR2_IC1SEL_Pos)       /*!< 0x00020000 */
12370 #define LPTIM_CFGR2_IC2SEL_Pos              (20U)
12371 #define LPTIM_CFGR2_IC2SEL_Msk              (0x3UL << LPTIM_CFGR2_IC2SEL_Pos)       /*!< 0x00000030 */
12372 #define LPTIM_CFGR2_IC2SEL                  LPTIM_CFGR2_IC2SEL_Msk                  /*!< IC2SEL[21:20] bits */
12373 #define LPTIM_CFGR2_IC2SEL_0                (0x1UL << LPTIM_CFGR2_IC2SEL_Pos)       /*!< 0x00100000 */
12374 #define LPTIM_CFGR2_IC2SEL_1                (0x2UL << LPTIM_CFGR2_IC2SEL_Pos)       /*!< 0x00200000 */
12375 
12376 /******************  Bit definition for LPTIM_RCR register  *******************/
12377 #define LPTIM_RCR_REP_Pos                   (0U)
12378 #define LPTIM_RCR_REP_Msk                   (0xFFUL << LPTIM_RCR_REP_Pos)           /*!< 0x000000FF */
12379 #define LPTIM_RCR_REP                       LPTIM_RCR_REP_Msk                       /*!< Repetition register value */
12380 
12381 /*****************  Bit definition for LPTIM_CCMR1 register  ******************/
12382 #define LPTIM_CCMR1_CC1SEL_Pos              (0U)
12383 #define LPTIM_CCMR1_CC1SEL_Msk              (0x1UL << LPTIM_CCMR1_CC1SEL_Pos)       /*!< 0x00000001 */
12384 #define LPTIM_CCMR1_CC1SEL                  LPTIM_CCMR1_CC1SEL_Msk                  /*!< Capture/Compare 1 selection */
12385 #define LPTIM_CCMR1_CC1E_Pos                (1U)
12386 #define LPTIM_CCMR1_CC1E_Msk                (0x1UL << LPTIM_CCMR1_CC1E_Pos)         /*!< 0x00000002 */
12387 #define LPTIM_CCMR1_CC1E                    LPTIM_CCMR1_CC1E_Msk                    /*!< Capture/Compare 1 output enable */
12388 #define LPTIM_CCMR1_CC1P_Pos                (2U)
12389 #define LPTIM_CCMR1_CC1P_Msk                (0x3UL << LPTIM_CCMR1_CC1P_Pos)         /*!< 0x0000000C */
12390 #define LPTIM_CCMR1_CC1P                    LPTIM_CCMR1_CC1P_Msk                    /*!< Capture/Compare 1 output polarity */
12391 #define LPTIM_CCMR1_CC1P_0                  (0x1UL << LPTIM_CCMR1_CC1P_Pos)         /*!< 0x00000004 */
12392 #define LPTIM_CCMR1_CC1P_1                  (0x2UL << LPTIM_CCMR1_CC1P_Pos)         /*!< 0x00000008 */
12393 #define LPTIM_CCMR1_IC1PSC_Pos              (8U)
12394 #define LPTIM_CCMR1_IC1PSC_Msk              (0x3UL << LPTIM_CCMR1_IC1PSC_Pos)       /*!< 0x00000300 */
12395 #define LPTIM_CCMR1_IC1PSC                  LPTIM_CCMR1_IC1PSC_Msk                  /*!< Input capture 1 prescaler */
12396 #define LPTIM_CCMR1_IC1PSC_0                (0x1UL << LPTIM_CCMR1_IC1PSC_Pos)       /*!< 0x00000100 */
12397 #define LPTIM_CCMR1_IC1PSC_1                (0x2UL << LPTIM_CCMR1_IC1PSC_Pos)       /*!< 0x00000200 */
12398 #define LPTIM_CCMR1_IC1F_Pos                (12U)
12399 #define LPTIM_CCMR1_IC1F_Msk                (0x3UL << LPTIM_CCMR1_IC1F_Pos)         /*!< 0x00003000 */
12400 #define LPTIM_CCMR1_IC1F                    LPTIM_CCMR1_IC1F_Msk                    /*!< Input capture 1 filter */
12401 #define LPTIM_CCMR1_IC1F_0                  (0x1UL << LPTIM_CCMR1_IC1F_Pos)         /*!< 0x00001000 */
12402 #define LPTIM_CCMR1_IC1F_1                  (0x2UL << LPTIM_CCMR1_IC1F_Pos)         /*!< 0x00002000 */
12403 #define LPTIM_CCMR1_CC2SEL_Pos              (16U)
12404 #define LPTIM_CCMR1_CC2SEL_Msk              (0x1UL << LPTIM_CCMR1_CC2SEL_Pos)       /*!< 0x00010000 */
12405 #define LPTIM_CCMR1_CC2SEL                  LPTIM_CCMR1_CC2SEL_Msk                  /*!< Capture/Compare 2 selection */
12406 #define LPTIM_CCMR1_CC2E_Pos                (17U)
12407 #define LPTIM_CCMR1_CC2E_Msk                (0x1UL << LPTIM_CCMR1_CC2E_Pos)         /*!< 0x00020000 */
12408 #define LPTIM_CCMR1_CC2E                    LPTIM_CCMR1_CC2E_Msk                    /*!< Capture/Compare 2 output enable */
12409 #define LPTIM_CCMR1_CC2P_Pos                (18U)
12410 #define LPTIM_CCMR1_CC2P_Msk                (0x3UL << LPTIM_CCMR1_CC2P_Pos)         /*!< 0x000C0000 */
12411 #define LPTIM_CCMR1_CC2P                    LPTIM_CCMR1_CC2P_Msk                    /*!< Capture/Compare 2 output polarity */
12412 #define LPTIM_CCMR1_CC2P_0                  (0x1UL << LPTIM_CCMR1_CC2P_Pos)         /*!< 0x00040000 */
12413 #define LPTIM_CCMR1_CC2P_1                  (0x2UL << LPTIM_CCMR1_CC2P_Pos)         /*!< 0x00080000 */
12414 #define LPTIM_CCMR1_IC2PSC_Pos              (24U)
12415 #define LPTIM_CCMR1_IC2PSC_Msk              (0x3UL << LPTIM_CCMR1_IC2PSC_Pos)       /*!< 0x03000000 */
12416 #define LPTIM_CCMR1_IC2PSC                  LPTIM_CCMR1_IC2PSC_Msk                  /*!< Input capture 2 prescaler */
12417 #define LPTIM_CCMR1_IC2PSC_0                (0x1UL << LPTIM_CCMR1_IC2PSC_Pos)       /*!< 0x01000000 */
12418 #define LPTIM_CCMR1_IC2PSC_1                (0x2UL << LPTIM_CCMR1_IC2PSC_Pos)       /*!< 0x02000000 */
12419 #define LPTIM_CCMR1_IC2F_Pos                (28U)
12420 #define LPTIM_CCMR1_IC2F_Msk                (0x3UL << LPTIM_CCMR1_IC2F_Pos)         /*!< 0x30000000 */
12421 #define LPTIM_CCMR1_IC2F                    LPTIM_CCMR1_IC2F_Msk                    /*!< Input capture 2 filter */
12422 #define LPTIM_CCMR1_IC2F_0                  (0x1UL << LPTIM_CCMR1_IC2F_Pos)         /*!< 0x10000000 */
12423 #define LPTIM_CCMR1_IC2F_1                  (0x2UL << LPTIM_CCMR1_IC2F_Pos)         /*!< 0x20000000 */
12424 
12425 /******************  Bit definition for LPTIM_CCR2 register  ******************/
12426 #define LPTIM_CCR2_CCR2_Pos                 (0U)
12427 #define LPTIM_CCR2_CCR2_Msk                 (0xFFFFUL << LPTIM_CCR2_CCR2_Pos)       /*!< 0x0000FFFF */
12428 #define LPTIM_CCR2_CCR2                     LPTIM_CCR2_CCR2_Msk                     /*!< Compare register 2 */
12429 
12430 /******************************************************************************/
12431 /*                                                                            */
12432 /*                Parallel Synchronous Slave Interface (PSSI )                */
12433 /*                                                                            */
12434 /******************************************************************************/
12435 /********************  Bit definition for PSSI_CR register  *******************/
12436 #define PSSI_CR_CKPOL_Pos                   (5U)
12437 #define PSSI_CR_CKPOL_Msk                   (0x1UL << PSSI_CR_CKPOL_Pos)            /*!< 0x00000020 */
12438 #define PSSI_CR_CKPOL                       PSSI_CR_CKPOL_Msk                       /*!< Parallel data clock polarity */
12439 #define PSSI_CR_DEPOL_Pos                   (6U)
12440 #define PSSI_CR_DEPOL_Msk                   (0x1UL << PSSI_CR_DEPOL_Pos)            /*!< 0x00000040 */
12441 #define PSSI_CR_DEPOL                       PSSI_CR_DEPOL_Msk                       /*!<  Data enable polarity */
12442 #define PSSI_CR_RDYPOL_Pos                  (8U)
12443 #define PSSI_CR_RDYPOL_Msk                  (0x1UL << PSSI_CR_RDYPOL_Pos)           /*!< 0x00000100 */
12444 #define PSSI_CR_RDYPOL                      PSSI_CR_RDYPOL_Msk                      /*!< Ready polarity */
12445 #define PSSI_CR_EDM_Pos                     (10U)
12446 #define PSSI_CR_EDM_Msk                     (0x3UL << PSSI_CR_EDM_Pos)              /*!< 0x00000C00 */
12447 #define PSSI_CR_EDM                         PSSI_CR_EDM_Msk                         /*!< Extended data mode */
12448 #define PSSI_CR_ENABLE_Pos                  (14U)
12449 #define PSSI_CR_ENABLE_Msk                  (0x1UL << PSSI_CR_ENABLE_Pos)           /*!< 0x00004000 */
12450 #define PSSI_CR_ENABLE                      PSSI_CR_ENABLE_Msk                      /*!< PSSI enable */
12451 #define PSSI_CR_DERDYCFG_Pos                (18U)
12452 #define PSSI_CR_DERDYCFG_Msk                (0x7UL << PSSI_CR_DERDYCFG_Pos)         /*!< 0x001C0000 */
12453 #define PSSI_CR_DERDYCFG                    PSSI_CR_DERDYCFG_Msk                    /*!< Data enable and ready configuration */
12454 #define PSSI_CR_DMAEN_Pos                   (30U)
12455 #define PSSI_CR_DMAEN_Msk                   (0x1UL << PSSI_CR_DMAEN_Pos)            /*!< 0x40000000 */
12456 #define PSSI_CR_DMAEN                       PSSI_CR_DMAEN_Msk                       /*!< DMA enable */
12457 #define PSSI_CR_OUTEN_Pos                   (31U)
12458 #define PSSI_CR_OUTEN_Msk                   (0x1UL << PSSI_CR_OUTEN_Pos)            /*!< 0x80000000 */
12459 #define PSSI_CR_OUTEN                       PSSI_CR_OUTEN_Msk                       /*!< Data direction selection */
12460 
12461 /********************  Bit definition for PSSI_SR register  *******************/
12462 #define PSSI_SR_RTT4B_Pos                   (2U)
12463 #define PSSI_SR_RTT4B_Msk                   (0x1UL << PSSI_SR_RTT4B_Pos)            /*!< 0x00000004 */
12464 #define PSSI_SR_RTT4B                       PSSI_SR_RTT4B_Msk                       /*!< Ready to transfer four bytes */
12465 #define PSSI_SR_RTT1B_Pos                   (3U)
12466 #define PSSI_SR_RTT1B_Msk                   (0x1UL << PSSI_SR_RTT1B_Pos)            /*!< 0x00000008 */
12467 #define PSSI_SR_RTT1B                       PSSI_SR_RTT1B_Msk                       /*!< Ready to transfer one byte */
12468 
12469 /********************  Bit definition for PSSI_RIS register  *******************/
12470 #define PSSI_RIS_OVR_RIS_Pos                (1U)
12471 #define PSSI_RIS_OVR_RIS_Msk                (0x1UL << PSSI_RIS_OVR_RIS_Pos)         /*!< 0x00000002 */
12472 #define PSSI_RIS_OVR_RIS                    PSSI_RIS_OVR_RIS_Msk                    /*!< Data buffer overrun/underrun raw interrupt status */
12473 
12474 /********************  Bit definition for PSSI_IER register  *******************/
12475 #define PSSI_IER_OVR_IE_Pos                 (1U)
12476 #define PSSI_IER_OVR_IE_Msk                 (0x1UL << PSSI_IER_OVR_IE_Pos)          /*!< 0x00000002 */
12477 #define PSSI_IER_OVR_IE                     PSSI_IER_OVR_IE_Msk                     /*!< Data buffer overrun/underrun interrupt enable */
12478 
12479 /********************  Bit definition for PSSI_MIS register  *******************/
12480 #define PSSI_MIS_OVR_MIS_Pos                (1U)
12481 #define PSSI_MIS_OVR_MIS_Msk                (0x1UL << PSSI_MIS_OVR_MIS_Pos)         /*!< 0x00000002 */
12482 #define PSSI_MIS_OVR_MIS                    PSSI_MIS_OVR_MIS_Msk                    /*!< Data buffer overrun/underrun masked interrupt status */
12483 
12484 /********************  Bit definition for PSSI_ICR register  *******************/
12485 #define PSSI_ICR_OVR_ISC_Pos                (1U)
12486 #define PSSI_ICR_OVR_ISC_Msk                (0x1UL << PSSI_ICR_OVR_ISC_Pos)         /*!< 0x00000002 */
12487 #define PSSI_ICR_OVR_ISC                    PSSI_ICR_OVR_ISC_Msk                    /*!< Data buffer overrun/underrun interrupt status clear */
12488 
12489 /********************  Bit definition for PSSI_DR register  *******************/
12490 #define PSSI_DR_DR_Pos                      (0U)
12491 #define PSSI_DR_DR_Msk                      (0xFFFFFFFFUL << PSSI_DR_DR_Pos)        /*!< 0xFFFFFFF */
12492 #define PSSI_DR_DR                          PSSI_DR_DR_Msk                          /*!< Data register  */
12493 
12494 /******************************************************************************/
12495 /*                                                                            */
12496 /*                           SDMMC Interface                                  */
12497 /*                                                                            */
12498 /******************************************************************************/
12499 /******************  Bit definition for SDMMC_POWER register  ******************/
12500 #define SDMMC_POWER_PWRCTRL_Pos             (0U)
12501 #define SDMMC_POWER_PWRCTRL_Msk             (0x3UL << SDMMC_POWER_PWRCTRL_Pos)      /*!< 0x00000003 */
12502 #define SDMMC_POWER_PWRCTRL                 SDMMC_POWER_PWRCTRL_Msk                 /*!<PWRCTRL[1:0] bits (Power supply control bits) */
12503 #define SDMMC_POWER_PWRCTRL_0               (0x1UL << SDMMC_POWER_PWRCTRL_Pos)      /*!< 0x00000001 */
12504 #define SDMMC_POWER_PWRCTRL_1               (0x2UL << SDMMC_POWER_PWRCTRL_Pos)      /*!< 0x00000002 */
12505 #define SDMMC_POWER_VSWITCH_Pos             (2U)
12506 #define SDMMC_POWER_VSWITCH_Msk             (0x1UL << SDMMC_POWER_VSWITCH_Pos)      /*!< 0x00000004 */
12507 #define SDMMC_POWER_VSWITCH                 SDMMC_POWER_VSWITCH_Msk                 /*!<Voltage switch sequence start */
12508 #define SDMMC_POWER_VSWITCHEN_Pos           (3U)
12509 #define SDMMC_POWER_VSWITCHEN_Msk           (0x1UL << SDMMC_POWER_VSWITCHEN_Pos)    /*!< 0x00000008 */
12510 #define SDMMC_POWER_VSWITCHEN               SDMMC_POWER_VSWITCHEN_Msk               /*!<Voltage switch procedure enable */
12511 #define SDMMC_POWER_DIRPOL_Pos              (4U)
12512 #define SDMMC_POWER_DIRPOL_Msk              (0x1UL << SDMMC_POWER_DIRPOL_Pos)       /*!< 0x00000010 */
12513 #define SDMMC_POWER_DIRPOL                  SDMMC_POWER_DIRPOL_Msk                  /*!<Data and Command direction signals polarity selection */
12514 
12515 /******************  Bit definition for SDMMC_CLKCR register  ******************/
12516 #define SDMMC_CLKCR_CLKDIV_Pos              (0U)
12517 #define SDMMC_CLKCR_CLKDIV_Msk              (0x3FFUL << SDMMC_CLKCR_CLKDIV_Pos)     /*!< 0x000003FF */
12518 #define SDMMC_CLKCR_CLKDIV                  SDMMC_CLKCR_CLKDIV_Msk                  /*!<Clock divide factor             */
12519 #define SDMMC_CLKCR_PWRSAV_Pos              (12U)
12520 #define SDMMC_CLKCR_PWRSAV_Msk              (0x1UL << SDMMC_CLKCR_PWRSAV_Pos)       /*!< 0x00001000 */
12521 #define SDMMC_CLKCR_PWRSAV                  SDMMC_CLKCR_PWRSAV_Msk                  /*!<Power saving configuration bit  */
12522 #define SDMMC_CLKCR_WIDBUS_Pos              (14U)
12523 #define SDMMC_CLKCR_WIDBUS_Msk              (0x3UL << SDMMC_CLKCR_WIDBUS_Pos)       /*!< 0x0000C000 */
12524 #define SDMMC_CLKCR_WIDBUS                  SDMMC_CLKCR_WIDBUS_Msk                  /*!<WIDBUS[1:0] bits (Wide bus mode enable bit) */
12525 #define SDMMC_CLKCR_WIDBUS_0                (0x1UL << SDMMC_CLKCR_WIDBUS_Pos)       /*!< 0x00004000 */
12526 #define SDMMC_CLKCR_WIDBUS_1                (0x2UL << SDMMC_CLKCR_WIDBUS_Pos)       /*!< 0x00008000 */
12527 #define SDMMC_CLKCR_NEGEDGE_Pos             (16U)
12528 #define SDMMC_CLKCR_NEGEDGE_Msk             (0x1UL << SDMMC_CLKCR_NEGEDGE_Pos)      /*!< 0x00010000 */
12529 #define SDMMC_CLKCR_NEGEDGE                 SDMMC_CLKCR_NEGEDGE_Msk                 /*!<SDMMC_CK dephasing selection bit */
12530 #define SDMMC_CLKCR_HWFC_EN_Pos             (17U)
12531 #define SDMMC_CLKCR_HWFC_EN_Msk             (0x1UL << SDMMC_CLKCR_HWFC_EN_Pos)      /*!< 0x00020000 */
12532 #define SDMMC_CLKCR_HWFC_EN                 SDMMC_CLKCR_HWFC_EN_Msk                 /*!<HW Flow Control enable           */
12533 #define SDMMC_CLKCR_DDR_Pos                 (18U)
12534 #define SDMMC_CLKCR_DDR_Msk                 (0x1UL << SDMMC_CLKCR_DDR_Pos)          /*!< 0x00040000 */
12535 #define SDMMC_CLKCR_DDR                     SDMMC_CLKCR_DDR_Msk                     /*!<Data rate signaling selection    */
12536 #define SDMMC_CLKCR_BUSSPEED_Pos            (19U)
12537 #define SDMMC_CLKCR_BUSSPEED_Msk            (0x1UL << SDMMC_CLKCR_BUSSPEED_Pos)     /*!< 0x00080000 */
12538 #define SDMMC_CLKCR_BUSSPEED                SDMMC_CLKCR_BUSSPEED_Msk                /*!<Bus speed mode selection         */
12539 #define SDMMC_CLKCR_SELCLKRX_Pos            (20U)
12540 #define SDMMC_CLKCR_SELCLKRX_Msk            (0x3UL << SDMMC_CLKCR_SELCLKRX_Pos)     /*!< 0x00300000 */
12541 #define SDMMC_CLKCR_SELCLKRX                SDMMC_CLKCR_SELCLKRX_Msk                /*!<SELCLKRX[1:0] bits (Receive clock selection) */
12542 #define SDMMC_CLKCR_SELCLKRX_0              (0x1UL << SDMMC_CLKCR_SELCLKRX_Pos)     /*!< 0x00100000 */
12543 #define SDMMC_CLKCR_SELCLKRX_1              (0x2UL << SDMMC_CLKCR_SELCLKRX_Pos)     /*!< 0x00200000 */
12544 
12545 /*******************  Bit definition for SDMMC_ARG register  *******************/
12546 #define SDMMC_ARG_CMDARG_Pos                (0U)
12547 #define SDMMC_ARG_CMDARG_Msk                (0xFFFFFFFFUL << SDMMC_ARG_CMDARG_Pos)  /*!< 0xFFFFFFFF */
12548 #define SDMMC_ARG_CMDARG                    SDMMC_ARG_CMDARG_Msk                    /*!<Command argument */
12549 
12550 /*******************  Bit definition for SDMMC_CMD register  *******************/
12551 #define SDMMC_CMD_CMDINDEX_Pos              (0U)
12552 #define SDMMC_CMD_CMDINDEX_Msk              (0x3FUL << SDMMC_CMD_CMDINDEX_Pos)      /*!< 0x0000003F */
12553 #define SDMMC_CMD_CMDINDEX                  SDMMC_CMD_CMDINDEX_Msk                  /*!<Command Index                               */
12554 #define SDMMC_CMD_CMDTRANS_Pos              (6U)
12555 #define SDMMC_CMD_CMDTRANS_Msk              (0x1UL << SDMMC_CMD_CMDTRANS_Pos)       /*!< 0x00000040 */
12556 #define SDMMC_CMD_CMDTRANS                  SDMMC_CMD_CMDTRANS_Msk                  /*!<CPSM Treats command as a Data Transfer      */
12557 #define SDMMC_CMD_CMDSTOP_Pos               (7U)
12558 #define SDMMC_CMD_CMDSTOP_Msk               (0x1UL << SDMMC_CMD_CMDSTOP_Pos)        /*!< 0x00000080 */
12559 #define SDMMC_CMD_CMDSTOP                   SDMMC_CMD_CMDSTOP_Msk                   /*!<CPSM Treats command as a Stop               */
12560 #define SDMMC_CMD_WAITRESP_Pos              (8U)
12561 #define SDMMC_CMD_WAITRESP_Msk              (0x3UL << SDMMC_CMD_WAITRESP_Pos)       /*!< 0x00000300 */
12562 #define SDMMC_CMD_WAITRESP                  SDMMC_CMD_WAITRESP_Msk                  /*!<WAITRESP[1:0] bits (Wait for response bits) */
12563 #define SDMMC_CMD_WAITRESP_0                (0x1UL << SDMMC_CMD_WAITRESP_Pos)       /*!< 0x00000100 */
12564 #define SDMMC_CMD_WAITRESP_1                (0x2UL << SDMMC_CMD_WAITRESP_Pos)       /*!< 0x00000200 */
12565 #define SDMMC_CMD_WAITINT_Pos               (10U)
12566 #define SDMMC_CMD_WAITINT_Msk               (0x1UL << SDMMC_CMD_WAITINT_Pos)        /*!< 0x00000400 */
12567 #define SDMMC_CMD_WAITINT                   SDMMC_CMD_WAITINT_Msk                   /*!<CPSM Waits for Interrupt Request                               */
12568 #define SDMMC_CMD_WAITPEND_Pos              (11U)
12569 #define SDMMC_CMD_WAITPEND_Msk              (0x1UL << SDMMC_CMD_WAITPEND_Pos)       /*!< 0x00000800 */
12570 #define SDMMC_CMD_WAITPEND                  SDMMC_CMD_WAITPEND_Msk                  /*!<CPSM Waits for ends of data transfer (CmdPend internal signal) */
12571 #define SDMMC_CMD_CPSMEN_Pos                (12U)
12572 #define SDMMC_CMD_CPSMEN_Msk                (0x1UL << SDMMC_CMD_CPSMEN_Pos)         /*!< 0x00001000 */
12573 #define SDMMC_CMD_CPSMEN                    SDMMC_CMD_CPSMEN_Msk                    /*!<Command path state machine (CPSM) Enable bit                   */
12574 #define SDMMC_CMD_DTHOLD_Pos                (13U)
12575 #define SDMMC_CMD_DTHOLD_Msk                (0x1UL << SDMMC_CMD_DTHOLD_Pos)         /*!< 0x00002000 */
12576 #define SDMMC_CMD_DTHOLD                    SDMMC_CMD_DTHOLD_Msk                    /*!<Hold new data block transmission and reception in the DPSM     */
12577 #define SDMMC_CMD_BOOTMODE_Pos              (14U)
12578 #define SDMMC_CMD_BOOTMODE_Msk              (0x1UL << SDMMC_CMD_BOOTMODE_Pos)       /*!< 0x00004000 */
12579 #define SDMMC_CMD_BOOTMODE                  SDMMC_CMD_BOOTMODE_Msk                  /*!<Boot mode                                                      */
12580 #define SDMMC_CMD_BOOTEN_Pos                (15U)
12581 #define SDMMC_CMD_BOOTEN_Msk                (0x1UL << SDMMC_CMD_BOOTEN_Pos)         /*!< 0x00008000 */
12582 #define SDMMC_CMD_BOOTEN                    SDMMC_CMD_BOOTEN_Msk                    /*!<Enable Boot mode procedure                                     */
12583 #define SDMMC_CMD_CMDSUSPEND_Pos            (16U)
12584 #define SDMMC_CMD_CMDSUSPEND_Msk            (0x1UL << SDMMC_CMD_CMDSUSPEND_Pos)     /*!< 0x00010000 */
12585 #define SDMMC_CMD_CMDSUSPEND                SDMMC_CMD_CMDSUSPEND_Msk                /*!<CPSM Treats command as a Suspend or Resume command             */
12586 
12587 /*****************  Bit definition for SDMMC_RESPCMD register  *****************/
12588 #define SDMMC_RESPCMD_RESPCMD_Pos           (0U)
12589 #define SDMMC_RESPCMD_RESPCMD_Msk           (0x3FUL << SDMMC_RESPCMD_RESPCMD_Pos)   /*!< 0x0000003F */
12590 #define SDMMC_RESPCMD_RESPCMD               SDMMC_RESPCMD_RESPCMD_Msk               /*!<Response command index */
12591 
12592 /******************  Bit definition for SDMMC_RESP1 register  ******************/
12593 #define SDMMC_RESP1_CARDSTATUS1_Pos         (0U)
12594 #define SDMMC_RESP1_CARDSTATUS1_Msk         (0xFFFFFFFFUL << SDMMC_RESP1_CARDSTATUS1_Pos) /*!< 0xFFFFFFFF */
12595 #define SDMMC_RESP1_CARDSTATUS1             SDMMC_RESP1_CARDSTATUS1_Msk             /*!<Card Status */
12596 
12597 /******************  Bit definition for SDMMC_RESP2 register  ******************/
12598 #define SDMMC_RESP2_CARDSTATUS2_Pos         (0U)
12599 #define SDMMC_RESP2_CARDSTATUS2_Msk         (0xFFFFFFFFUL << SDMMC_RESP2_CARDSTATUS2_Pos) /*!< 0xFFFFFFFF */
12600 #define SDMMC_RESP2_CARDSTATUS2             SDMMC_RESP2_CARDSTATUS2_Msk             /*!<Card Status */
12601 
12602 /******************  Bit definition for SDMMC_RESP3 register  ******************/
12603 #define SDMMC_RESP3_CARDSTATUS3_Pos         (0U)
12604 #define SDMMC_RESP3_CARDSTATUS3_Msk         (0xFFFFFFFFUL << SDMMC_RESP3_CARDSTATUS3_Pos) /*!< 0xFFFFFFFF */
12605 #define SDMMC_RESP3_CARDSTATUS3             SDMMC_RESP3_CARDSTATUS3_Msk             /*!<Card Status */
12606 
12607 /******************  Bit definition for SDMMC_RESP4 register  ******************/
12608 #define SDMMC_RESP4_CARDSTATUS4_Pos         (0U)
12609 #define SDMMC_RESP4_CARDSTATUS4_Msk         (0xFFFFFFFFUL << SDMMC_RESP4_CARDSTATUS4_Pos) /*!< 0xFFFFFFFF */
12610 #define SDMMC_RESP4_CARDSTATUS4             SDMMC_RESP4_CARDSTATUS4_Msk             /*!<Card Status */
12611 
12612 /******************  Bit definition for SDMMC_DTIMER register  *****************/
12613 #define SDMMC_DTIMER_DATATIME_Pos           (0U)
12614 #define SDMMC_DTIMER_DATATIME_Msk           (0xFFFFFFFFUL << SDMMC_DTIMER_DATATIME_Pos) /*!< 0xFFFFFFFF */
12615 #define SDMMC_DTIMER_DATATIME               SDMMC_DTIMER_DATATIME_Msk               /*!<Data timeout period. */
12616 
12617 /******************  Bit definition for SDMMC_DLEN register  *******************/
12618 #define SDMMC_DLEN_DATALENGTH_Pos           (0U)
12619 #define SDMMC_DLEN_DATALENGTH_Msk           (0x1FFFFFFUL << SDMMC_DLEN_DATALENGTH_Pos) /*!< 0x01FFFFFF */
12620 #define SDMMC_DLEN_DATALENGTH               SDMMC_DLEN_DATALENGTH_Msk               /*!<Data length value    */
12621 
12622 /******************  Bit definition for SDMMC_DCTRL register  ******************/
12623 #define SDMMC_DCTRL_DTEN_Pos                (0U)
12624 #define SDMMC_DCTRL_DTEN_Msk                (0x1UL << SDMMC_DCTRL_DTEN_Pos)         /*!< 0x00000001 */
12625 #define SDMMC_DCTRL_DTEN                    SDMMC_DCTRL_DTEN_Msk                    /*!<Data transfer enabled bit                */
12626 #define SDMMC_DCTRL_DTDIR_Pos               (1U)
12627 #define SDMMC_DCTRL_DTDIR_Msk               (0x1UL << SDMMC_DCTRL_DTDIR_Pos)        /*!< 0x00000002 */
12628 #define SDMMC_DCTRL_DTDIR                   SDMMC_DCTRL_DTDIR_Msk                   /*!<Data transfer direction selection        */
12629 #define SDMMC_DCTRL_DTMODE_Pos              (2U)
12630 #define SDMMC_DCTRL_DTMODE_Msk              (0x3UL << SDMMC_DCTRL_DTMODE_Pos)       /*!< 0x0000000C */
12631 #define SDMMC_DCTRL_DTMODE                  SDMMC_DCTRL_DTMODE_Msk                  /*!<DTMODE[1:0] Data transfer mode selection */
12632 #define SDMMC_DCTRL_DTMODE_0                (0x1UL << SDMMC_DCTRL_DTMODE_Pos)       /*!< 0x00000004 */
12633 #define SDMMC_DCTRL_DTMODE_1                (0x2UL << SDMMC_DCTRL_DTMODE_Pos)       /*!< 0x00000008 */
12634 #define SDMMC_DCTRL_DBLOCKSIZE_Pos          (4U)
12635 #define SDMMC_DCTRL_DBLOCKSIZE_Msk          (0xFUL << SDMMC_DCTRL_DBLOCKSIZE_Pos)   /*!< 0x000000F0 */
12636 #define SDMMC_DCTRL_DBLOCKSIZE              SDMMC_DCTRL_DBLOCKSIZE_Msk              /*!<DBLOCKSIZE[3:0] bits (Data block size) */
12637 #define SDMMC_DCTRL_DBLOCKSIZE_0            (0x1UL << SDMMC_DCTRL_DBLOCKSIZE_Pos)   /*!< 0x00000010 */
12638 #define SDMMC_DCTRL_DBLOCKSIZE_1            (0x2UL << SDMMC_DCTRL_DBLOCKSIZE_Pos)   /*!< 0x00000020 */
12639 #define SDMMC_DCTRL_DBLOCKSIZE_2            (0x4UL << SDMMC_DCTRL_DBLOCKSIZE_Pos)   /*!< 0x00000040 */
12640 #define SDMMC_DCTRL_DBLOCKSIZE_3            (0x8UL << SDMMC_DCTRL_DBLOCKSIZE_Pos)   /*!< 0x00000080 */
12641 #define SDMMC_DCTRL_RWSTART_Pos             (8U)
12642 #define SDMMC_DCTRL_RWSTART_Msk             (0x1UL << SDMMC_DCTRL_RWSTART_Pos)      /*!< 0x00000100 */
12643 #define SDMMC_DCTRL_RWSTART                 SDMMC_DCTRL_RWSTART_Msk                 /*!<Read wait start                                 */
12644 #define SDMMC_DCTRL_RWSTOP_Pos              (9U)
12645 #define SDMMC_DCTRL_RWSTOP_Msk              (0x1UL << SDMMC_DCTRL_RWSTOP_Pos)       /*!< 0x00000200 */
12646 #define SDMMC_DCTRL_RWSTOP                  SDMMC_DCTRL_RWSTOP_Msk                  /*!<Read wait stop                                  */
12647 #define SDMMC_DCTRL_RWMOD_Pos               (10U)
12648 #define SDMMC_DCTRL_RWMOD_Msk               (0x1UL << SDMMC_DCTRL_RWMOD_Pos)        /*!< 0x00000400 */
12649 #define SDMMC_DCTRL_RWMOD                   SDMMC_DCTRL_RWMOD_Msk                   /*!<Read wait mode                                  */
12650 #define SDMMC_DCTRL_SDIOEN_Pos              (11U)
12651 #define SDMMC_DCTRL_SDIOEN_Msk              (0x1UL << SDMMC_DCTRL_SDIOEN_Pos)       /*!< 0x00000800 */
12652 #define SDMMC_DCTRL_SDIOEN                  SDMMC_DCTRL_SDIOEN_Msk                  /*!<SD I/O enable functions                         */
12653 #define SDMMC_DCTRL_BOOTACKEN_Pos           (12U)
12654 #define SDMMC_DCTRL_BOOTACKEN_Msk           (0x1UL << SDMMC_DCTRL_BOOTACKEN_Pos)    /*!< 0x00001000 */
12655 #define SDMMC_DCTRL_BOOTACKEN               SDMMC_DCTRL_BOOTACKEN_Msk               /*!<Enable the reception of the Boot Acknowledgment */
12656 #define SDMMC_DCTRL_FIFORST_Pos             (13U)
12657 #define SDMMC_DCTRL_FIFORST_Msk             (0x1UL << SDMMC_DCTRL_FIFORST_Pos)      /*!< 0x00002000 */
12658 #define SDMMC_DCTRL_FIFORST                 SDMMC_DCTRL_FIFORST_Msk                 /*!<FIFO reset                                      */
12659 
12660 /******************  Bit definition for SDMMC_DCOUNT register  *****************/
12661 #define SDMMC_DCOUNT_DATACOUNT_Pos          (0U)
12662 #define SDMMC_DCOUNT_DATACOUNT_Msk          (0x1FFFFFFUL << SDMMC_DCOUNT_DATACOUNT_Pos) /*!< 0x01FFFFFF */
12663 #define SDMMC_DCOUNT_DATACOUNT              SDMMC_DCOUNT_DATACOUNT_Msk              /*!<Data count value */
12664 
12665 /******************  Bit definition for SDMMC_STA register  ********************/
12666 #define SDMMC_STA_CCRCFAIL_Pos              (0U)
12667 #define SDMMC_STA_CCRCFAIL_Msk              (0x1UL << SDMMC_STA_CCRCFAIL_Pos)       /*!< 0x00000001 */
12668 #define SDMMC_STA_CCRCFAIL                  SDMMC_STA_CCRCFAIL_Msk                  /*!<Command response received (CRC check failed)  */
12669 #define SDMMC_STA_DCRCFAIL_Pos              (1U)
12670 #define SDMMC_STA_DCRCFAIL_Msk              (0x1UL << SDMMC_STA_DCRCFAIL_Pos)       /*!< 0x00000002 */
12671 #define SDMMC_STA_DCRCFAIL                  SDMMC_STA_DCRCFAIL_Msk                  /*!<Data block sent/received (CRC check failed)   */
12672 #define SDMMC_STA_CTIMEOUT_Pos              (2U)
12673 #define SDMMC_STA_CTIMEOUT_Msk              (0x1UL << SDMMC_STA_CTIMEOUT_Pos)       /*!< 0x00000004 */
12674 #define SDMMC_STA_CTIMEOUT                  SDMMC_STA_CTIMEOUT_Msk                  /*!<Command response timeout                      */
12675 #define SDMMC_STA_DTIMEOUT_Pos              (3U)
12676 #define SDMMC_STA_DTIMEOUT_Msk              (0x1UL << SDMMC_STA_DTIMEOUT_Pos)       /*!< 0x00000008 */
12677 #define SDMMC_STA_DTIMEOUT                  SDMMC_STA_DTIMEOUT_Msk                  /*!<Data timeout                                  */
12678 #define SDMMC_STA_TXUNDERR_Pos              (4U)
12679 #define SDMMC_STA_TXUNDERR_Msk              (0x1UL << SDMMC_STA_TXUNDERR_Pos)       /*!< 0x00000010 */
12680 #define SDMMC_STA_TXUNDERR                  SDMMC_STA_TXUNDERR_Msk                  /*!<Transmit FIFO underrun error                  */
12681 #define SDMMC_STA_RXOVERR_Pos               (5U)
12682 #define SDMMC_STA_RXOVERR_Msk               (0x1UL << SDMMC_STA_RXOVERR_Pos)        /*!< 0x00000020 */
12683 #define SDMMC_STA_RXOVERR                   SDMMC_STA_RXOVERR_Msk                   /*!<Received FIFO overrun error                   */
12684 #define SDMMC_STA_CMDREND_Pos               (6U)
12685 #define SDMMC_STA_CMDREND_Msk               (0x1UL << SDMMC_STA_CMDREND_Pos)        /*!< 0x00000040 */
12686 #define SDMMC_STA_CMDREND                   SDMMC_STA_CMDREND_Msk                   /*!<Command response received (CRC check passed)  */
12687 #define SDMMC_STA_CMDSENT_Pos               (7U)
12688 #define SDMMC_STA_CMDSENT_Msk               (0x1UL << SDMMC_STA_CMDSENT_Pos)        /*!< 0x00000080 */
12689 #define SDMMC_STA_CMDSENT                   SDMMC_STA_CMDSENT_Msk                   /*!<Command sent (no response required)           */
12690 #define SDMMC_STA_DATAEND_Pos               (8U)
12691 #define SDMMC_STA_DATAEND_Msk               (0x1UL << SDMMC_STA_DATAEND_Pos)        /*!< 0x00000100 */
12692 #define SDMMC_STA_DATAEND                   SDMMC_STA_DATAEND_Msk                   /*!<Data end (data counter, SDIDCOUNT, is zero)   */
12693 #define SDMMC_STA_DHOLD_Pos                 (9U)
12694 #define SDMMC_STA_DHOLD_Msk                 (0x1UL << SDMMC_STA_DHOLD_Pos)          /*!< 0x00000200 */
12695 #define SDMMC_STA_DHOLD                     SDMMC_STA_DHOLD_Msk                     /*!<Data transfer Hold                                                      */
12696 #define SDMMC_STA_DBCKEND_Pos               (10U)
12697 #define SDMMC_STA_DBCKEND_Msk               (0x1UL << SDMMC_STA_DBCKEND_Pos)        /*!< 0x00000400 */
12698 #define SDMMC_STA_DBCKEND                   SDMMC_STA_DBCKEND_Msk                   /*!<Data block sent/received (CRC check passed)   */
12699 #define SDMMC_STA_DABORT_Pos                (11U)
12700 #define SDMMC_STA_DABORT_Msk                (0x1UL << SDMMC_STA_DABORT_Pos)         /*!< 0x00000800 */
12701 #define SDMMC_STA_DABORT                    SDMMC_STA_DABORT_Msk                    /*!<Data transfer aborted by CMD12                                          */
12702 #define SDMMC_STA_DPSMACT_Pos               (12U)
12703 #define SDMMC_STA_DPSMACT_Msk               (0x1UL << SDMMC_STA_DPSMACT_Pos)        /*!< 0x00001000 */
12704 #define SDMMC_STA_DPSMACT                   SDMMC_STA_DPSMACT_Msk                   /*!<Data path state machine active                                       */
12705 #define SDMMC_STA_CPSMACT_Pos               (13U)
12706 #define SDMMC_STA_CPSMACT_Msk               (0x1UL << SDMMC_STA_CPSMACT_Pos)        /*!< 0x00002000 */
12707 #define SDMMC_STA_CPSMACT                   SDMMC_STA_CPSMACT_Msk                   /*!<Command path state machine active                                          */
12708 #define SDMMC_STA_TXFIFOHE_Pos              (14U)
12709 #define SDMMC_STA_TXFIFOHE_Msk              (0x1UL << SDMMC_STA_TXFIFOHE_Pos)       /*!< 0x00004000 */
12710 #define SDMMC_STA_TXFIFOHE                  SDMMC_STA_TXFIFOHE_Msk                  /*!<Transmit FIFO Half Empty: at least 8 words can be written into the FIFO */
12711 #define SDMMC_STA_RXFIFOHF_Pos              (15U)
12712 #define SDMMC_STA_RXFIFOHF_Msk              (0x1UL << SDMMC_STA_RXFIFOHF_Pos)       /*!< 0x00008000 */
12713 #define SDMMC_STA_RXFIFOHF                  SDMMC_STA_RXFIFOHF_Msk                  /*!<Receive FIFO Half Full: there are at least 8 words in the FIFO */
12714 #define SDMMC_STA_TXFIFOF_Pos               (16U)
12715 #define SDMMC_STA_TXFIFOF_Msk               (0x1UL << SDMMC_STA_TXFIFOF_Pos)        /*!< 0x00010000 */
12716 #define SDMMC_STA_TXFIFOF                   SDMMC_STA_TXFIFOF_Msk                   /*!<Transmit FIFO full                            */
12717 #define SDMMC_STA_RXFIFOF_Pos               (17U)
12718 #define SDMMC_STA_RXFIFOF_Msk               (0x1UL << SDMMC_STA_RXFIFOF_Pos)        /*!< 0x00020000 */
12719 #define SDMMC_STA_RXFIFOF                   SDMMC_STA_RXFIFOF_Msk                   /*!<Receive FIFO full                             */
12720 #define SDMMC_STA_TXFIFOE_Pos               (18U)
12721 #define SDMMC_STA_TXFIFOE_Msk               (0x1UL << SDMMC_STA_TXFIFOE_Pos)        /*!< 0x00040000 */
12722 #define SDMMC_STA_TXFIFOE                   SDMMC_STA_TXFIFOE_Msk                   /*!<Transmit FIFO empty                           */
12723 #define SDMMC_STA_RXFIFOE_Pos               (19U)
12724 #define SDMMC_STA_RXFIFOE_Msk               (0x1UL << SDMMC_STA_RXFIFOE_Pos)        /*!< 0x00080000 */
12725 #define SDMMC_STA_RXFIFOE                   SDMMC_STA_RXFIFOE_Msk                   /*!<Receive FIFO empty                            */
12726 #define SDMMC_STA_BUSYD0_Pos                (20U)
12727 #define SDMMC_STA_BUSYD0_Msk                (0x1UL << SDMMC_STA_BUSYD0_Pos)         /*!< 0x00100000 */
12728 #define SDMMC_STA_BUSYD0                    SDMMC_STA_BUSYD0_Msk                    /*!<Inverted value of SDMMC_D0 line (Busy)                                  */
12729 #define SDMMC_STA_BUSYD0END_Pos             (21U)
12730 #define SDMMC_STA_BUSYD0END_Msk             (0x1UL << SDMMC_STA_BUSYD0END_Pos)      /*!< 0x00200000 */
12731 #define SDMMC_STA_BUSYD0END                 SDMMC_STA_BUSYD0END_Msk                 /*!<End of SDMMC_D0 Busy following a CMD response detected                  */
12732 #define SDMMC_STA_SDIOIT_Pos                (22U)
12733 #define SDMMC_STA_SDIOIT_Msk                (0x1UL << SDMMC_STA_SDIOIT_Pos)         /*!< 0x00400000 */
12734 #define SDMMC_STA_SDIOIT                    SDMMC_STA_SDIOIT_Msk                    /*!<SDIO interrupt received                                                 */
12735 #define SDMMC_STA_ACKFAIL_Pos               (23U)
12736 #define SDMMC_STA_ACKFAIL_Msk               (0x1UL << SDMMC_STA_ACKFAIL_Pos)        /*!< 0x00800000 */
12737 #define SDMMC_STA_ACKFAIL                   SDMMC_STA_ACKFAIL_Msk                   /*!<Boot Acknowledgment received (BootAck check fail)                       */
12738 #define SDMMC_STA_ACKTIMEOUT_Pos            (24U)
12739 #define SDMMC_STA_ACKTIMEOUT_Msk            (0x1UL << SDMMC_STA_ACKTIMEOUT_Pos)     /*!< 0x01000000 */
12740 #define SDMMC_STA_ACKTIMEOUT                SDMMC_STA_ACKTIMEOUT_Msk                /*!<Boot Acknowledgment timeout                                             */
12741 #define SDMMC_STA_VSWEND_Pos                (25U)
12742 #define SDMMC_STA_VSWEND_Msk                (0x1UL << SDMMC_STA_VSWEND_Pos)         /*!< 0x02000000 */
12743 #define SDMMC_STA_VSWEND                    SDMMC_STA_VSWEND_Msk                    /*!<Voltage switch critical timing section completion                       */
12744 #define SDMMC_STA_CKSTOP_Pos                (26U)
12745 #define SDMMC_STA_CKSTOP_Msk                (0x1UL << SDMMC_STA_CKSTOP_Pos)         /*!< 0x04000000 */
12746 #define SDMMC_STA_CKSTOP                    SDMMC_STA_CKSTOP_Msk                    /*!<SDMMC_CK stopped in Voltage switch procedure                            */
12747 #define SDMMC_STA_IDMATE_Pos                (27U)
12748 #define SDMMC_STA_IDMATE_Msk                (0x1UL << SDMMC_STA_IDMATE_Pos)         /*!< 0x08000000 */
12749 #define SDMMC_STA_IDMATE                    SDMMC_STA_IDMATE_Msk                    /*!<IDMA transfer error                                                     */
12750 #define SDMMC_STA_IDMABTC_Pos               (28U)
12751 #define SDMMC_STA_IDMABTC_Msk               (0x1UL << SDMMC_STA_IDMABTC_Pos)        /*!< 0x10000000 */
12752 #define SDMMC_STA_IDMABTC                   SDMMC_STA_IDMABTC_Msk                   /*!<IDMA buffer transfer complete                                           */
12753 
12754 /*******************  Bit definition for SDMMC_ICR register  *******************/
12755 #define SDMMC_ICR_CCRCFAILC_Pos             (0U)
12756 #define SDMMC_ICR_CCRCFAILC_Msk             (0x1UL << SDMMC_ICR_CCRCFAILC_Pos)      /*!< 0x00000001 */
12757 #define SDMMC_ICR_CCRCFAILC                 SDMMC_ICR_CCRCFAILC_Msk                 /*!<CCRCFAIL flag clear bit */
12758 #define SDMMC_ICR_DCRCFAILC_Pos             (1U)
12759 #define SDMMC_ICR_DCRCFAILC_Msk             (0x1UL << SDMMC_ICR_DCRCFAILC_Pos)      /*!< 0x00000002 */
12760 #define SDMMC_ICR_DCRCFAILC                 SDMMC_ICR_DCRCFAILC_Msk                 /*!<DCRCFAIL flag clear bit */
12761 #define SDMMC_ICR_CTIMEOUTC_Pos             (2U)
12762 #define SDMMC_ICR_CTIMEOUTC_Msk             (0x1UL << SDMMC_ICR_CTIMEOUTC_Pos)      /*!< 0x00000004 */
12763 #define SDMMC_ICR_CTIMEOUTC                 SDMMC_ICR_CTIMEOUTC_Msk                 /*!<CTIMEOUT flag clear bit */
12764 #define SDMMC_ICR_DTIMEOUTC_Pos             (3U)
12765 #define SDMMC_ICR_DTIMEOUTC_Msk             (0x1UL << SDMMC_ICR_DTIMEOUTC_Pos)      /*!< 0x00000008 */
12766 #define SDMMC_ICR_DTIMEOUTC                 SDMMC_ICR_DTIMEOUTC_Msk                 /*!<DTIMEOUT flag clear bit */
12767 #define SDMMC_ICR_TXUNDERRC_Pos             (4U)
12768 #define SDMMC_ICR_TXUNDERRC_Msk             (0x1UL << SDMMC_ICR_TXUNDERRC_Pos)      /*!< 0x00000010 */
12769 #define SDMMC_ICR_TXUNDERRC                 SDMMC_ICR_TXUNDERRC_Msk                 /*!<TXUNDERR flag clear bit */
12770 #define SDMMC_ICR_RXOVERRC_Pos              (5U)
12771 #define SDMMC_ICR_RXOVERRC_Msk              (0x1UL << SDMMC_ICR_RXOVERRC_Pos)       /*!< 0x00000020 */
12772 #define SDMMC_ICR_RXOVERRC                  SDMMC_ICR_RXOVERRC_Msk                  /*!<RXOVERR flag clear bit  */
12773 #define SDMMC_ICR_CMDRENDC_Pos              (6U)
12774 #define SDMMC_ICR_CMDRENDC_Msk              (0x1UL << SDMMC_ICR_CMDRENDC_Pos)       /*!< 0x00000040 */
12775 #define SDMMC_ICR_CMDRENDC                  SDMMC_ICR_CMDRENDC_Msk                  /*!<CMDREND flag clear bit  */
12776 #define SDMMC_ICR_CMDSENTC_Pos              (7U)
12777 #define SDMMC_ICR_CMDSENTC_Msk              (0x1UL << SDMMC_ICR_CMDSENTC_Pos)       /*!< 0x00000080 */
12778 #define SDMMC_ICR_CMDSENTC                  SDMMC_ICR_CMDSENTC_Msk                  /*!<CMDSENT flag clear bit  */
12779 #define SDMMC_ICR_DATAENDC_Pos              (8U)
12780 #define SDMMC_ICR_DATAENDC_Msk              (0x1UL << SDMMC_ICR_DATAENDC_Pos)       /*!< 0x00000100 */
12781 #define SDMMC_ICR_DATAENDC                  SDMMC_ICR_DATAENDC_Msk                  /*!<DATAEND flag clear bit  */
12782 #define SDMMC_ICR_DHOLDC_Pos                (9U)
12783 #define SDMMC_ICR_DHOLDC_Msk                (0x1UL << SDMMC_ICR_DHOLDC_Pos)         /*!< 0x00000200 */
12784 #define SDMMC_ICR_DHOLDC                    SDMMC_ICR_DHOLDC_Msk                    /*!<DHOLD flag clear bit       */
12785 #define SDMMC_ICR_DBCKENDC_Pos              (10U)
12786 #define SDMMC_ICR_DBCKENDC_Msk              (0x1UL << SDMMC_ICR_DBCKENDC_Pos)       /*!< 0x00000400 */
12787 #define SDMMC_ICR_DBCKENDC                  SDMMC_ICR_DBCKENDC_Msk                  /*!<DBCKEND flag clear bit  */
12788 #define SDMMC_ICR_DABORTC_Pos               (11U)
12789 #define SDMMC_ICR_DABORTC_Msk               (0x1UL << SDMMC_ICR_DABORTC_Pos)        /*!< 0x00000800 */
12790 #define SDMMC_ICR_DABORTC                   SDMMC_ICR_DABORTC_Msk                   /*!<DABORTC flag clear bit     */
12791 #define SDMMC_ICR_BUSYD0ENDC_Pos            (21U)
12792 #define SDMMC_ICR_BUSYD0ENDC_Msk            (0x1UL << SDMMC_ICR_BUSYD0ENDC_Pos)     /*!< 0x00200000 */
12793 #define SDMMC_ICR_BUSYD0ENDC                SDMMC_ICR_BUSYD0ENDC_Msk                /*!<BUSYD0ENDC flag clear bit  */
12794 #define SDMMC_ICR_SDIOITC_Pos               (22U)
12795 #define SDMMC_ICR_SDIOITC_Msk               (0x1UL << SDMMC_ICR_SDIOITC_Pos)        /*!< 0x00400000 */
12796 #define SDMMC_ICR_SDIOITC                   SDMMC_ICR_SDIOITC_Msk                   /*!<SDIOIT flag clear bit      */
12797 #define SDMMC_ICR_ACKFAILC_Pos              (23U)
12798 #define SDMMC_ICR_ACKFAILC_Msk              (0x1UL << SDMMC_ICR_ACKFAILC_Pos)       /*!< 0x00800000 */
12799 #define SDMMC_ICR_ACKFAILC                  SDMMC_ICR_ACKFAILC_Msk                  /*!<ACKFAILC flag clear bit    */
12800 #define SDMMC_ICR_ACKTIMEOUTC_Pos           (24U)
12801 #define SDMMC_ICR_ACKTIMEOUTC_Msk           (0x1UL << SDMMC_ICR_ACKTIMEOUTC_Pos)    /*!< 0x01000000 */
12802 #define SDMMC_ICR_ACKTIMEOUTC               SDMMC_ICR_ACKTIMEOUTC_Msk               /*!<ACKTIMEOUTC flag clear bit */
12803 #define SDMMC_ICR_VSWENDC_Pos               (25U)
12804 #define SDMMC_ICR_VSWENDC_Msk               (0x1UL << SDMMC_ICR_VSWENDC_Pos)        /*!< 0x02000000 */
12805 #define SDMMC_ICR_VSWENDC                   SDMMC_ICR_VSWENDC_Msk                   /*!<VSWENDC flag clear bit     */
12806 #define SDMMC_ICR_CKSTOPC_Pos               (26U)
12807 #define SDMMC_ICR_CKSTOPC_Msk               (0x1UL << SDMMC_ICR_CKSTOPC_Pos)        /*!< 0x04000000 */
12808 #define SDMMC_ICR_CKSTOPC                   SDMMC_ICR_CKSTOPC_Msk                   /*!<CKSTOPC flag clear bit     */
12809 #define SDMMC_ICR_IDMATEC_Pos               (27U)
12810 #define SDMMC_ICR_IDMATEC_Msk               (0x1UL << SDMMC_ICR_IDMATEC_Pos)        /*!< 0x08000000 */
12811 #define SDMMC_ICR_IDMATEC                   SDMMC_ICR_IDMATEC_Msk                   /*!<IDMATEC flag clear bit     */
12812 #define SDMMC_ICR_IDMABTCC_Pos              (28U)
12813 #define SDMMC_ICR_IDMABTCC_Msk              (0x1UL << SDMMC_ICR_IDMABTCC_Pos)       /*!< 0x10000000 */
12814 #define SDMMC_ICR_IDMABTCC                  SDMMC_ICR_IDMABTCC_Msk                  /*!<IDMABTCC flag clear bit    */
12815 
12816 /******************  Bit definition for SDMMC_MASK register  *******************/
12817 #define SDMMC_MASK_CCRCFAILIE_Pos           (0U)
12818 #define SDMMC_MASK_CCRCFAILIE_Msk           (0x1UL << SDMMC_MASK_CCRCFAILIE_Pos)    /*!< 0x00000001 */
12819 #define SDMMC_MASK_CCRCFAILIE               SDMMC_MASK_CCRCFAILIE_Msk               /*!<Command CRC Fail Interrupt Enable          */
12820 #define SDMMC_MASK_DCRCFAILIE_Pos           (1U)
12821 #define SDMMC_MASK_DCRCFAILIE_Msk           (0x1UL << SDMMC_MASK_DCRCFAILIE_Pos)    /*!< 0x00000002 */
12822 #define SDMMC_MASK_DCRCFAILIE               SDMMC_MASK_DCRCFAILIE_Msk               /*!<Data CRC Fail Interrupt Enable             */
12823 #define SDMMC_MASK_CTIMEOUTIE_Pos           (2U)
12824 #define SDMMC_MASK_CTIMEOUTIE_Msk           (0x1UL << SDMMC_MASK_CTIMEOUTIE_Pos)    /*!< 0x00000004 */
12825 #define SDMMC_MASK_CTIMEOUTIE               SDMMC_MASK_CTIMEOUTIE_Msk               /*!<Command TimeOut Interrupt Enable           */
12826 #define SDMMC_MASK_DTIMEOUTIE_Pos           (3U)
12827 #define SDMMC_MASK_DTIMEOUTIE_Msk           (0x1UL << SDMMC_MASK_DTIMEOUTIE_Pos)    /*!< 0x00000008 */
12828 #define SDMMC_MASK_DTIMEOUTIE               SDMMC_MASK_DTIMEOUTIE_Msk               /*!<Data TimeOut Interrupt Enable              */
12829 #define SDMMC_MASK_TXUNDERRIE_Pos           (4U)
12830 #define SDMMC_MASK_TXUNDERRIE_Msk           (0x1UL << SDMMC_MASK_TXUNDERRIE_Pos)    /*!< 0x00000010 */
12831 #define SDMMC_MASK_TXUNDERRIE               SDMMC_MASK_TXUNDERRIE_Msk               /*!<Tx FIFO UnderRun Error Interrupt Enable    */
12832 #define SDMMC_MASK_RXOVERRIE_Pos            (5U)
12833 #define SDMMC_MASK_RXOVERRIE_Msk            (0x1UL << SDMMC_MASK_RXOVERRIE_Pos)     /*!< 0x00000020 */
12834 #define SDMMC_MASK_RXOVERRIE                SDMMC_MASK_RXOVERRIE_Msk                /*!<Rx FIFO OverRun Error Interrupt Enable     */
12835 #define SDMMC_MASK_CMDRENDIE_Pos            (6U)
12836 #define SDMMC_MASK_CMDRENDIE_Msk            (0x1UL << SDMMC_MASK_CMDRENDIE_Pos)     /*!< 0x00000040 */
12837 #define SDMMC_MASK_CMDRENDIE                SDMMC_MASK_CMDRENDIE_Msk                /*!<Command Response Received Interrupt Enable */
12838 #define SDMMC_MASK_CMDSENTIE_Pos            (7U)
12839 #define SDMMC_MASK_CMDSENTIE_Msk            (0x1UL << SDMMC_MASK_CMDSENTIE_Pos)     /*!< 0x00000080 */
12840 #define SDMMC_MASK_CMDSENTIE                SDMMC_MASK_CMDSENTIE_Msk                /*!<Command Sent Interrupt Enable              */
12841 #define SDMMC_MASK_DATAENDIE_Pos            (8U)
12842 #define SDMMC_MASK_DATAENDIE_Msk            (0x1UL << SDMMC_MASK_DATAENDIE_Pos)     /*!< 0x00000100 */
12843 #define SDMMC_MASK_DATAENDIE                SDMMC_MASK_DATAENDIE_Msk                /*!<Data End Interrupt Enable                  */
12844 #define SDMMC_MASK_DHOLDIE_Pos              (9U)
12845 #define SDMMC_MASK_DHOLDIE_Msk              (0x1UL << SDMMC_MASK_DHOLDIE_Pos)       /*!< 0x00000200 */
12846 #define SDMMC_MASK_DHOLDIE                  SDMMC_MASK_DHOLDIE_Msk                  /*!<Data Hold Interrupt Enable                 */
12847 #define SDMMC_MASK_DBCKENDIE_Pos            (10U)
12848 #define SDMMC_MASK_DBCKENDIE_Msk            (0x1UL << SDMMC_MASK_DBCKENDIE_Pos)     /*!< 0x00000400 */
12849 #define SDMMC_MASK_DBCKENDIE                SDMMC_MASK_DBCKENDIE_Msk                /*!<Data Block End Interrupt Enable            */
12850 #define SDMMC_MASK_DABORTIE_Pos             (11U)
12851 #define SDMMC_MASK_DABORTIE_Msk             (0x1UL << SDMMC_MASK_DABORTIE_Pos)      /*!< 0x00000800 */
12852 #define SDMMC_MASK_DABORTIE                 SDMMC_MASK_DABORTIE_Msk                 /*!<Data transfer aborted interrupt enable     */
12853 #define SDMMC_MASK_TXFIFOHEIE_Pos           (14U)
12854 #define SDMMC_MASK_TXFIFOHEIE_Msk           (0x1UL << SDMMC_MASK_TXFIFOHEIE_Pos)    /*!< 0x00004000 */
12855 #define SDMMC_MASK_TXFIFOHEIE               SDMMC_MASK_TXFIFOHEIE_Msk               /*!<Tx FIFO Half Empty interrupt Enable        */
12856 #define SDMMC_MASK_RXFIFOHFIE_Pos           (15U)
12857 #define SDMMC_MASK_RXFIFOHFIE_Msk           (0x1UL << SDMMC_MASK_RXFIFOHFIE_Pos)    /*!< 0x00008000 */
12858 #define SDMMC_MASK_RXFIFOHFIE               SDMMC_MASK_RXFIFOHFIE_Msk               /*!<Rx FIFO Half Full interrupt Enable         */
12859 #define SDMMC_MASK_RXFIFOFIE_Pos            (17U)
12860 #define SDMMC_MASK_RXFIFOFIE_Msk            (0x1UL << SDMMC_MASK_RXFIFOFIE_Pos)     /*!< 0x00020000 */
12861 #define SDMMC_MASK_RXFIFOFIE                SDMMC_MASK_RXFIFOFIE_Msk                /*!<Rx FIFO Full interrupt Enable              */
12862 #define SDMMC_MASK_TXFIFOEIE_Pos            (18U)
12863 #define SDMMC_MASK_TXFIFOEIE_Msk            (0x1UL << SDMMC_MASK_TXFIFOEIE_Pos)     /*!< 0x00040000 */
12864 #define SDMMC_MASK_TXFIFOEIE                SDMMC_MASK_TXFIFOEIE_Msk                /*!<Tx FIFO Empty interrupt Enable             */
12865 #define SDMMC_MASK_BUSYD0ENDIE_Pos          (21U)
12866 #define SDMMC_MASK_BUSYD0ENDIE_Msk          (0x1UL << SDMMC_MASK_BUSYD0ENDIE_Pos)   /*!< 0x00200000 */
12867 #define SDMMC_MASK_BUSYD0ENDIE              SDMMC_MASK_BUSYD0ENDIE_Msk              /*!<BUSYD0ENDIE interrupt Enable */
12868 #define SDMMC_MASK_SDIOITIE_Pos             (22U)
12869 #define SDMMC_MASK_SDIOITIE_Msk             (0x1UL << SDMMC_MASK_SDIOITIE_Pos)      /*!< 0x00400000 */
12870 #define SDMMC_MASK_SDIOITIE                 SDMMC_MASK_SDIOITIE_Msk                 /*!<SDMMC Mode Interrupt Received interrupt Enable */
12871 #define SDMMC_MASK_ACKFAILIE_Pos            (23U)
12872 #define SDMMC_MASK_ACKFAILIE_Msk            (0x1UL << SDMMC_MASK_ACKFAILIE_Pos)     /*!< 0x00800000 */
12873 #define SDMMC_MASK_ACKFAILIE                SDMMC_MASK_ACKFAILIE_Msk                /*!<Acknowledgment Fail Interrupt Enable */
12874 #define SDMMC_MASK_ACKTIMEOUTIE_Pos         (24U)
12875 #define SDMMC_MASK_ACKTIMEOUTIE_Msk         (0x1UL << SDMMC_MASK_ACKTIMEOUTIE_Pos)  /*!< 0x01000000 */
12876 #define SDMMC_MASK_ACKTIMEOUTIE             SDMMC_MASK_ACKTIMEOUTIE_Msk             /*!<Acknowledgment timeout Interrupt Enable */
12877 #define SDMMC_MASK_VSWENDIE_Pos             (25U)
12878 #define SDMMC_MASK_VSWENDIE_Msk             (0x1UL << SDMMC_MASK_VSWENDIE_Pos)      /*!< 0x02000000 */
12879 #define SDMMC_MASK_VSWENDIE                 SDMMC_MASK_VSWENDIE_Msk                 /*!<Voltage switch critical timing section completion Interrupt Enable */
12880 #define SDMMC_MASK_CKSTOPIE_Pos             (26U)
12881 #define SDMMC_MASK_CKSTOPIE_Msk             (0x1UL << SDMMC_MASK_CKSTOPIE_Pos)      /*!< 0x04000000 */
12882 #define SDMMC_MASK_CKSTOPIE                 SDMMC_MASK_CKSTOPIE_Msk                 /*!<Voltage Switch clock stopped Interrupt Enable */
12883 #define SDMMC_MASK_IDMABTCIE_Pos            (28U)
12884 #define SDMMC_MASK_IDMABTCIE_Msk            (0x1UL << SDMMC_MASK_IDMABTCIE_Pos)     /*!< 0x10000000 */
12885 #define SDMMC_MASK_IDMABTCIE                SDMMC_MASK_IDMABTCIE_Msk                /*!<IDMA buffer transfer complete Interrupt Enable */
12886 
12887 /*****************  Bit definition for SDMMC_ACKTIME register  *****************/
12888 #define SDMMC_ACKTIME_ACKTIME_Pos           (0U)
12889 #define SDMMC_ACKTIME_ACKTIME_Msk           (0x1FFFFFFUL << SDMMC_ACKTIME_ACKTIME_Pos) /*!< 0x01FFFFFF */
12890 #define SDMMC_ACKTIME_ACKTIME               SDMMC_ACKTIME_ACKTIME_Msk               /*!<Boot acknowledgment timeout period */
12891 
12892 /******************  Bit definition for SDMMC_FIFO register  *******************/
12893 #define SDMMC_FIFO_FIFODATA_Pos             (0U)
12894 #define SDMMC_FIFO_FIFODATA_Msk             (0xFFFFFFFFUL << SDMMC_FIFO_FIFODATA_Pos) /*!< 0xFFFFFFFF */
12895 #define SDMMC_FIFO_FIFODATA                 SDMMC_FIFO_FIFODATA_Msk                 /*!<Receive and transmit FIFO data */
12896 
12897 /******************  Bit definition for SDMMC_IDMACTRL register ****************/
12898 #define SDMMC_IDMA_IDMAEN_Pos               (0U)
12899 #define SDMMC_IDMA_IDMAEN_Msk               (0x1UL << SDMMC_IDMA_IDMAEN_Pos)        /*!< 0x00000001 */
12900 #define SDMMC_IDMA_IDMAEN                   SDMMC_IDMA_IDMAEN_Msk                   /*!< Enable the internal DMA of the SDMMC peripheral */
12901 #define SDMMC_IDMA_IDMABMODE_Pos            (1U)
12902 #define SDMMC_IDMA_IDMABMODE_Msk            (0x1UL << SDMMC_IDMA_IDMABMODE_Pos)     /*!< 0x00000002 */
12903 #define SDMMC_IDMA_IDMABMODE                SDMMC_IDMA_IDMABMODE_Msk                /*!< Enable Linked List mode for IDMA */
12904 
12905 /*****************  Bit definition for SDMMC_IDMABSIZE register  ***************/
12906 #define SDMMC_IDMABSIZE_IDMABNDT_Pos        (5U)
12907 #define SDMMC_IDMABSIZE_IDMABNDT_Msk        (0xFFFUL << SDMMC_IDMABSIZE_IDMABNDT_Pos) /*!< 0x0000FFE0 */
12908 #define SDMMC_IDMABSIZE_IDMABNDT            SDMMC_IDMABSIZE_IDMABNDT_Msk            /*!< Number of transfers per buffer */
12909 
12910 /*****************  Bit definition for SDMMC_IDMABASER register  ***************/
12911 #define SDMMC_IDMABASER_IDMABASER           ((uint32_t)0xFFFFFFFF)                  /*!< Memory base address register */
12912 
12913 /*****************  Bit definition for SDMMC_IDMALAR) register  ***************/
12914 #define SDMMC_IDMALAR_IDMALA_Pos            (0U)
12915 #define SDMMC_IDMALAR_IDMALA_Msk            (0x3FFFUL << SDMMC_IDMALAR_IDMALA_Pos)  /*!< 0x00003FFF */
12916 #define SDMMC_IDMALAR_IDMALA                SDMMC_IDMALAR_IDMALA_Msk                /*!< Linked list item address offset */
12917 #define SDMMC_IDMALAR_ABR_Pos               (29U)
12918 #define SDMMC_IDMALAR_ABR_Msk               (0x1UL << SDMMC_IDMALAR_ABR_Pos)        /*!< 0x20000000 */
12919 #define SDMMC_IDMALAR_ABR                   SDMMC_IDMALAR_ABR_Msk                   /*!< Acknowledge linked list buffer ready */
12920 #define SDMMC_IDMALAR_ULS_Pos               (30U)
12921 #define SDMMC_IDMALAR_ULS_Msk               (0x1UL << SDMMC_IDMALAR_ULS_Pos)        /*!< 0x40000000 */
12922 #define SDMMC_IDMALAR_ULS                   SDMMC_IDMALAR_ULS_Msk                   /*!< Update Size from linked list */
12923 #define SDMMC_IDMALAR_ULA_Pos               (31U)
12924 #define SDMMC_IDMALAR_ULA_Msk               (0x1UL << SDMMC_IDMALAR_ULA_Pos)        /*!< 0x80000000 */
12925 #define SDMMC_IDMALAR_ULA                   SDMMC_IDMALAR_ULA_Msk                   /*!< Update Address from linked list */
12926 
12927 /*****************  Bit definition for SDMMC_IDMABAR) register  ***************/
12928 #define SDMMC_IDMABAR_IDMABAR               ((uint32_t)0xFFFFFFFF)                  /*!< linked list memory base register */
12929 
12930 /******************************************************************************/
12931 /*                                                                            */
12932 /*                                    OCTOSPI                                 */
12933 /*                                                                            */
12934 /******************************************************************************/
12935 /*****************  Bit definition for OCTOSPI_CR register  *******************/
12936 #define OCTOSPI_CR_EN_Pos                   (0U)
12937 #define OCTOSPI_CR_EN_Msk                   (0x1UL << OCTOSPI_CR_EN_Pos)            /*!< 0x00000001 */
12938 #define OCTOSPI_CR_EN                       OCTOSPI_CR_EN_Msk                       /*!< Enable */
12939 #define OCTOSPI_CR_ABORT_Pos                (1U)
12940 #define OCTOSPI_CR_ABORT_Msk                (0x1UL << OCTOSPI_CR_ABORT_Pos)         /*!< 0x00000002 */
12941 #define OCTOSPI_CR_ABORT                    OCTOSPI_CR_ABORT_Msk                    /*!< Abort request */
12942 #define OCTOSPI_CR_DMAEN_Pos                (2U)
12943 #define OCTOSPI_CR_DMAEN_Msk                (0x1UL << OCTOSPI_CR_DMAEN_Pos)         /*!< 0x00000004 */
12944 #define OCTOSPI_CR_DMAEN                    OCTOSPI_CR_DMAEN_Msk                    /*!< DMA Enable */
12945 #define OCTOSPI_CR_TCEN_Pos                 (3U)
12946 #define OCTOSPI_CR_TCEN_Msk                 (0x1UL << OCTOSPI_CR_TCEN_Pos)          /*!< 0x00000008 */
12947 #define OCTOSPI_CR_TCEN                     OCTOSPI_CR_TCEN_Msk                     /*!< Timeout Counter Enable */
12948 #define OCTOSPI_CR_DQM_Pos                  (6U)
12949 #define OCTOSPI_CR_DQM_Msk                  (0x1UL << OCTOSPI_CR_DQM_Pos)           /*!< 0x00000040 */
12950 #define OCTOSPI_CR_DQM                      OCTOSPI_CR_DQM_Msk                      /*!< Dual-Quad Mode */
12951 #define OCTOSPI_CR_FSEL_Pos                 (7U)
12952 #define OCTOSPI_CR_FSEL_Msk                 (0x1UL << OCTOSPI_CR_FSEL_Pos)          /*!< 0x00000080 */
12953 #define OCTOSPI_CR_FSEL                     OCTOSPI_CR_FSEL_Msk                     /*!< Flash Select */
12954 #define OCTOSPI_CR_FTHRES_Pos               (8U)
12955 #define OCTOSPI_CR_FTHRES_Msk               (0x1FUL << OCTOSPI_CR_FTHRES_Pos)       /*!< 0x00001F00 */
12956 #define OCTOSPI_CR_FTHRES                   OCTOSPI_CR_FTHRES_Msk                   /*!< FIFO Threshold Level */
12957 #define OCTOSPI_CR_TEIE_Pos                 (16U)
12958 #define OCTOSPI_CR_TEIE_Msk                 (0x1UL << OCTOSPI_CR_TEIE_Pos)          /*!< 0x00010000 */
12959 #define OCTOSPI_CR_TEIE                     OCTOSPI_CR_TEIE_Msk                     /*!< Transfer Error Interrupt Enable */
12960 #define OCTOSPI_CR_TCIE_Pos                 (17U)
12961 #define OCTOSPI_CR_TCIE_Msk                 (0x1UL << OCTOSPI_CR_TCIE_Pos)          /*!< 0x00020000 */
12962 #define OCTOSPI_CR_TCIE                     OCTOSPI_CR_TCIE_Msk                     /*!< Transfer Complete Interrupt Enable */
12963 #define OCTOSPI_CR_FTIE_Pos                 (18U)
12964 #define OCTOSPI_CR_FTIE_Msk                 (0x1UL << OCTOSPI_CR_FTIE_Pos)          /*!< 0x00040000 */
12965 #define OCTOSPI_CR_FTIE                     OCTOSPI_CR_FTIE_Msk                     /*!< FIFO Threshold Interrupt Enable */
12966 #define OCTOSPI_CR_SMIE_Pos                 (19U)
12967 #define OCTOSPI_CR_SMIE_Msk                 (0x1UL << OCTOSPI_CR_SMIE_Pos)          /*!< 0x00080000 */
12968 #define OCTOSPI_CR_SMIE                     OCTOSPI_CR_SMIE_Msk                     /*!< Status Match Interrupt Enable */
12969 #define OCTOSPI_CR_TOIE_Pos                 (20U)
12970 #define OCTOSPI_CR_TOIE_Msk                 (0x1UL << OCTOSPI_CR_TOIE_Pos)          /*!< 0x00100000 */
12971 #define OCTOSPI_CR_TOIE                     OCTOSPI_CR_TOIE_Msk                     /*!< TimeOut Interrupt Enable */
12972 #define OCTOSPI_CR_APMS_Pos                 (22U)
12973 #define OCTOSPI_CR_APMS_Msk                 (0x1UL << OCTOSPI_CR_APMS_Pos)          /*!< 0x00400000 */
12974 #define OCTOSPI_CR_APMS                     OCTOSPI_CR_APMS_Msk                     /*!< Automatic Poll Mode Stop */
12975 #define OCTOSPI_CR_PMM_Pos                  (23U)
12976 #define OCTOSPI_CR_PMM_Msk                  (0x1UL << OCTOSPI_CR_PMM_Pos)           /*!< 0x00800000 */
12977 #define OCTOSPI_CR_PMM                      OCTOSPI_CR_PMM_Msk                      /*!< Polling Match Mode */
12978 #define OCTOSPI_CR_FMODE_Pos                (28U)
12979 #define OCTOSPI_CR_FMODE_Msk                (0x3UL << OCTOSPI_CR_FMODE_Pos)         /*!< 0x30000000 */
12980 #define OCTOSPI_CR_FMODE                    OCTOSPI_CR_FMODE_Msk                    /*!< Functional Mode */
12981 #define OCTOSPI_CR_FMODE_0                  (0x1UL << OCTOSPI_CR_FMODE_Pos)         /*!< 0x10000000 */
12982 #define OCTOSPI_CR_FMODE_1                  (0x2UL << OCTOSPI_CR_FMODE_Pos)         /*!< 0x20000000 */
12983 
12984 /****************  Bit definition for OCTOSPI_DCR1 register  ******************/
12985 #define OCTOSPI_DCR1_CKMODE_Pos             (0U)
12986 #define OCTOSPI_DCR1_CKMODE_Msk             (0x1UL << OCTOSPI_DCR1_CKMODE_Pos)      /*!< 0x00000001 */
12987 #define OCTOSPI_DCR1_CKMODE                 OCTOSPI_DCR1_CKMODE_Msk                 /*!< Mode 0 / Mode 3 */
12988 #define OCTOSPI_DCR1_FRCK_Pos               (1U)
12989 #define OCTOSPI_DCR1_FRCK_Msk               (0x1UL << OCTOSPI_DCR1_FRCK_Pos)        /*!< 0x00000002 */
12990 #define OCTOSPI_DCR1_FRCK                   OCTOSPI_DCR1_FRCK_Msk                   /*!< Free Running Clock */
12991 #define OCTOSPI_DCR1_DLYBYP_Pos             (3U)
12992 #define OCTOSPI_DCR1_DLYBYP_Msk             (0x1UL << OCTOSPI_DCR1_DLYBYP_Pos)      /*!< 0x00000008 */
12993 #define OCTOSPI_DCR1_DLYBYP                 OCTOSPI_DCR1_DLYBYP_Msk                 /*!< Delay Block Bypass */
12994 #define OCTOSPI_DCR1_CSHT_Pos               (8U)
12995 #define OCTOSPI_DCR1_CSHT_Msk               (0x3FUL << OCTOSPI_DCR1_CSHT_Pos)       /*!< 0x00003F00 */
12996 #define OCTOSPI_DCR1_CSHT                   OCTOSPI_DCR1_CSHT_Msk                   /*!< Chip Select High Time */
12997 #define OCTOSPI_DCR1_DEVSIZE_Pos            (16U)
12998 #define OCTOSPI_DCR1_DEVSIZE_Msk            (0x1FUL << OCTOSPI_DCR1_DEVSIZE_Pos)    /*!< 0x001F0000 */
12999 #define OCTOSPI_DCR1_DEVSIZE                OCTOSPI_DCR1_DEVSIZE_Msk                /*!< Device Size */
13000 #define OCTOSPI_DCR1_MTYP_Pos               (24U)
13001 #define OCTOSPI_DCR1_MTYP_Msk               (0x7UL << OCTOSPI_DCR1_MTYP_Pos)        /*!< 0x07000000 */
13002 #define OCTOSPI_DCR1_MTYP                   OCTOSPI_DCR1_MTYP_Msk                   /*!< Memory Type */
13003 #define OCTOSPI_DCR1_MTYP_0                 (0x1UL << OCTOSPI_DCR1_MTYP_Pos)        /*!< 0x01000000 */
13004 #define OCTOSPI_DCR1_MTYP_1                 (0x2UL << OCTOSPI_DCR1_MTYP_Pos)        /*!< 0x02000000 */
13005 #define OCTOSPI_DCR1_MTYP_2                 (0x4UL << OCTOSPI_DCR1_MTYP_Pos)        /*!< 0x04000000 */
13006 
13007 /****************  Bit definition for OCTOSPI_DCR2 register  ******************/
13008 #define OCTOSPI_DCR2_PRESCALER_Pos          (0U)
13009 #define OCTOSPI_DCR2_PRESCALER_Msk          (0xFFUL << OCTOSPI_DCR2_PRESCALER_Pos)  /*!< 0x000000FF */
13010 #define OCTOSPI_DCR2_PRESCALER              OCTOSPI_DCR2_PRESCALER_Msk              /*!< Clock prescaler */
13011 #define OCTOSPI_DCR2_WRAPSIZE_Pos           (16U)
13012 #define OCTOSPI_DCR2_WRAPSIZE_Msk           (0x7UL << OCTOSPI_DCR2_WRAPSIZE_Pos)    /*!< 0x00070000 */
13013 #define OCTOSPI_DCR2_WRAPSIZE               OCTOSPI_DCR2_WRAPSIZE_Msk               /*!< Wrap Size */
13014 #define OCTOSPI_DCR2_WRAPSIZE_0             (0x1UL << OCTOSPI_DCR2_WRAPSIZE_Pos)    /*!< 0x00010000 */
13015 #define OCTOSPI_DCR2_WRAPSIZE_1             (0x2UL << OCTOSPI_DCR2_WRAPSIZE_Pos)    /*!< 0x00020000 */
13016 #define OCTOSPI_DCR2_WRAPSIZE_2             (0x4UL << OCTOSPI_DCR2_WRAPSIZE_Pos)    /*!< 0x00040000 */
13017 
13018 /****************  Bit definition for OCTOSPI_DCR3 register  ******************/
13019 #define OCTOSPI_DCR3_MAXTRAN_Pos            (0U)
13020 #define OCTOSPI_DCR3_MAXTRAN_Msk            (0xFFUL << OCTOSPI_DCR3_MAXTRAN_Pos)    /*!< 0x000000FF */
13021 #define OCTOSPI_DCR3_MAXTRAN                OCTOSPI_DCR3_MAXTRAN_Msk                /*!< Maximum transfer */
13022 #define OCTOSPI_DCR3_CSBOUND_Pos            (16U)
13023 #define OCTOSPI_DCR3_CSBOUND_Msk            (0x1FUL << OCTOSPI_DCR3_CSBOUND_Pos)    /*!< 0x001F0000 */
13024 #define OCTOSPI_DCR3_CSBOUND                OCTOSPI_DCR3_CSBOUND_Msk                /*!< Maximum transfer */
13025 
13026 /****************  Bit definition for OCTOSPI_DCR4 register  ******************/
13027 #define OCTOSPI_DCR4_REFRESH_Pos            (0U)
13028 #define OCTOSPI_DCR4_REFRESH_Msk            (0xFFFFFFFFUL << OCTOSPI_DCR4_REFRESH_Pos) /*!< 0xFFFFFFFF */
13029 #define OCTOSPI_DCR4_REFRESH                OCTOSPI_DCR4_REFRESH_Msk                /*!< Refresh rate */
13030 
13031 /*****************  Bit definition for OCTOSPI_SR register  *******************/
13032 #define OCTOSPI_SR_TEF_Pos                  (0U)
13033 #define OCTOSPI_SR_TEF_Msk                  (0x1UL << OCTOSPI_SR_TEF_Pos)           /*!< 0x00000001 */
13034 #define OCTOSPI_SR_TEF                      OCTOSPI_SR_TEF_Msk                      /*!< Transfer Error Flag */
13035 #define OCTOSPI_SR_TCF_Pos                  (1U)
13036 #define OCTOSPI_SR_TCF_Msk                  (0x1UL << OCTOSPI_SR_TCF_Pos)           /*!< 0x00000002 */
13037 #define OCTOSPI_SR_TCF                      OCTOSPI_SR_TCF_Msk                      /*!< Transfer Complete Flag */
13038 #define OCTOSPI_SR_FTF_Pos                  (2U)
13039 #define OCTOSPI_SR_FTF_Msk                  (0x1UL << OCTOSPI_SR_FTF_Pos)           /*!< 0x00000004 */
13040 #define OCTOSPI_SR_FTF                      OCTOSPI_SR_FTF_Msk                      /*!< FIFO Threshold Flag */
13041 #define OCTOSPI_SR_SMF_Pos                  (3U)
13042 #define OCTOSPI_SR_SMF_Msk                  (0x1UL << OCTOSPI_SR_SMF_Pos)           /*!< 0x00000008 */
13043 #define OCTOSPI_SR_SMF                      OCTOSPI_SR_SMF_Msk                      /*!< Status Match Flag */
13044 #define OCTOSPI_SR_TOF_Pos                  (4U)
13045 #define OCTOSPI_SR_TOF_Msk                  (0x1UL << OCTOSPI_SR_TOF_Pos)           /*!< 0x00000010 */
13046 #define OCTOSPI_SR_TOF                      OCTOSPI_SR_TOF_Msk                      /*!< Timeout Flag */
13047 #define OCTOSPI_SR_BUSY_Pos                 (5U)
13048 #define OCTOSPI_SR_BUSY_Msk                 (0x1UL << OCTOSPI_SR_BUSY_Pos)          /*!< 0x00000020 */
13049 #define OCTOSPI_SR_BUSY                     OCTOSPI_SR_BUSY_Msk                     /*!< Busy */
13050 #define OCTOSPI_SR_FLEVEL_Pos               (8U)
13051 #define OCTOSPI_SR_FLEVEL_Msk               (0x3FUL << OCTOSPI_SR_FLEVEL_Pos)       /*!< 0x00003F00 */
13052 #define OCTOSPI_SR_FLEVEL                   OCTOSPI_SR_FLEVEL_Msk                   /*!< FIFO Level */
13053 
13054 /****************  Bit definition for OCTOSPI_FCR register  *******************/
13055 #define OCTOSPI_FCR_CTEF_Pos                (0U)
13056 #define OCTOSPI_FCR_CTEF_Msk                (0x1UL << OCTOSPI_FCR_CTEF_Pos)         /*!< 0x00000001 */
13057 #define OCTOSPI_FCR_CTEF                    OCTOSPI_FCR_CTEF_Msk                    /*!< Clear Transfer Error Flag */
13058 #define OCTOSPI_FCR_CTCF_Pos                (1U)
13059 #define OCTOSPI_FCR_CTCF_Msk                (0x1UL << OCTOSPI_FCR_CTCF_Pos)         /*!< 0x00000002 */
13060 #define OCTOSPI_FCR_CTCF                    OCTOSPI_FCR_CTCF_Msk                    /*!< Clear Transfer Complete Flag */
13061 #define OCTOSPI_FCR_CSMF_Pos                (3U)
13062 #define OCTOSPI_FCR_CSMF_Msk                (0x1UL << OCTOSPI_FCR_CSMF_Pos)         /*!< 0x00000008 */
13063 #define OCTOSPI_FCR_CSMF                    OCTOSPI_FCR_CSMF_Msk                    /*!< Clear Status Match Flag */
13064 #define OCTOSPI_FCR_CTOF_Pos                (4U)
13065 #define OCTOSPI_FCR_CTOF_Msk                (0x1UL << OCTOSPI_FCR_CTOF_Pos)         /*!< 0x00000010 */
13066 #define OCTOSPI_FCR_CTOF                    OCTOSPI_FCR_CTOF_Msk                    /*!< Clear Timeout Flag */
13067 
13068 /****************  Bit definition for OCTOSPI_DLR register  *******************/
13069 #define OCTOSPI_DLR_DL_Pos                  (0U)
13070 #define OCTOSPI_DLR_DL_Msk                  (0xFFFFFFFFUL << OCTOSPI_DLR_DL_Pos)    /*!< 0xFFFFFFFF */
13071 #define OCTOSPI_DLR_DL                      OCTOSPI_DLR_DL_Msk                      /*!< Data Length */
13072 
13073 /*****************  Bit definition for OCTOSPI_AR register  *******************/
13074 #define OCTOSPI_AR_ADDRESS_Pos              (0U)
13075 #define OCTOSPI_AR_ADDRESS_Msk              (0xFFFFFFFFUL << OCTOSPI_AR_ADDRESS_Pos) /*!< 0xFFFFFFFF */
13076 #define OCTOSPI_AR_ADDRESS                  OCTOSPI_AR_ADDRESS_Msk                  /*!< Address */
13077 
13078 /*****************  Bit definition for OCTOSPI_DR register  *******************/
13079 #define OCTOSPI_DR_DATA_Pos                 (0U)
13080 #define OCTOSPI_DR_DATA_Msk                 (0xFFFFFFFFUL << OCTOSPI_DR_DATA_Pos)   /*!< 0xFFFFFFFF */
13081 #define OCTOSPI_DR_DATA                     OCTOSPI_DR_DATA_Msk                     /*!< Data */
13082 
13083 /***************  Bit definition for OCTOSPI_PSMKR register  ******************/
13084 #define OCTOSPI_PSMKR_MASK_Pos              (0U)
13085 #define OCTOSPI_PSMKR_MASK_Msk              (0xFFFFFFFFUL << OCTOSPI_PSMKR_MASK_Pos) /*!< 0xFFFFFFFF */
13086 #define OCTOSPI_PSMKR_MASK                  OCTOSPI_PSMKR_MASK_Msk                  /*!< Status mask */
13087 
13088 /***************  Bit definition for OCTOSPI_PSMAR register  ******************/
13089 #define OCTOSPI_PSMAR_MATCH_Pos             (0U)
13090 #define OCTOSPI_PSMAR_MATCH_Msk             (0xFFFFFFFFUL << OCTOSPI_PSMAR_MATCH_Pos) /*!< 0xFFFFFFFF */
13091 #define OCTOSPI_PSMAR_MATCH                 OCTOSPI_PSMAR_MATCH_Msk                 /*!< Status match */
13092 
13093 /****************  Bit definition for OCTOSPI_PIR register  *******************/
13094 #define OCTOSPI_PIR_INTERVAL_Pos            (0U)
13095 #define OCTOSPI_PIR_INTERVAL_Msk            (0xFFFFUL << OCTOSPI_PIR_INTERVAL_Pos)  /*!< 0x0000FFFF */
13096 #define OCTOSPI_PIR_INTERVAL                OCTOSPI_PIR_INTERVAL_Msk                /*!< Polling Interval */
13097 
13098 /****************  Bit definition for OCTOSPI_CCR register  *******************/
13099 #define OCTOSPI_CCR_IMODE_Pos               (0U)
13100 #define OCTOSPI_CCR_IMODE_Msk               (0x7UL << OCTOSPI_CCR_IMODE_Pos)        /*!< 0x00000007 */
13101 #define OCTOSPI_CCR_IMODE                   OCTOSPI_CCR_IMODE_Msk                   /*!< Instruction Mode */
13102 #define OCTOSPI_CCR_IMODE_0                 (0x1UL << OCTOSPI_CCR_IMODE_Pos)        /*!< 0x00000001 */
13103 #define OCTOSPI_CCR_IMODE_1                 (0x2UL << OCTOSPI_CCR_IMODE_Pos)        /*!< 0x00000002 */
13104 #define OCTOSPI_CCR_IMODE_2                 (0x4UL << OCTOSPI_CCR_IMODE_Pos)        /*!< 0x00000004 */
13105 #define OCTOSPI_CCR_IDTR_Pos                (3U)
13106 #define OCTOSPI_CCR_IDTR_Msk                (0x1UL << OCTOSPI_CCR_IDTR_Pos)         /*!< 0x00000008 */
13107 #define OCTOSPI_CCR_IDTR                    OCTOSPI_CCR_IDTR_Msk                    /*!< Instruction Double Transfer Rate */
13108 #define OCTOSPI_CCR_ISIZE_Pos               (4U)
13109 #define OCTOSPI_CCR_ISIZE_Msk               (0x3UL << OCTOSPI_CCR_ISIZE_Pos)        /*!< 0x00000030 */
13110 #define OCTOSPI_CCR_ISIZE                   OCTOSPI_CCR_ISIZE_Msk                   /*!< Instruction Size */
13111 #define OCTOSPI_CCR_ISIZE_0                 (0x1UL << OCTOSPI_CCR_ISIZE_Pos)        /*!< 0x00000010 */
13112 #define OCTOSPI_CCR_ISIZE_1                 (0x2UL << OCTOSPI_CCR_ISIZE_Pos)        /*!< 0x00000020 */
13113 #define OCTOSPI_CCR_ADMODE_Pos              (8U)
13114 #define OCTOSPI_CCR_ADMODE_Msk              (0x7UL << OCTOSPI_CCR_ADMODE_Pos)       /*!< 0x00000700 */
13115 #define OCTOSPI_CCR_ADMODE                  OCTOSPI_CCR_ADMODE_Msk                  /*!< Address Mode */
13116 #define OCTOSPI_CCR_ADMODE_0                (0x1UL << OCTOSPI_CCR_ADMODE_Pos)       /*!< 0x00000100 */
13117 #define OCTOSPI_CCR_ADMODE_1                (0x2UL << OCTOSPI_CCR_ADMODE_Pos)       /*!< 0x00000200 */
13118 #define OCTOSPI_CCR_ADMODE_2                (0x4UL << OCTOSPI_CCR_ADMODE_Pos)       /*!< 0x00000400 */
13119 #define OCTOSPI_CCR_ADDTR_Pos               (11U)
13120 #define OCTOSPI_CCR_ADDTR_Msk               (0x1UL << OCTOSPI_CCR_ADDTR_Pos)        /*!< 0x00000800 */
13121 #define OCTOSPI_CCR_ADDTR                   OCTOSPI_CCR_ADDTR_Msk                   /*!< Address Double Transfer Rate */
13122 #define OCTOSPI_CCR_ADSIZE_Pos              (12U)
13123 #define OCTOSPI_CCR_ADSIZE_Msk              (0x3UL << OCTOSPI_CCR_ADSIZE_Pos)       /*!< 0x00003000 */
13124 #define OCTOSPI_CCR_ADSIZE                  OCTOSPI_CCR_ADSIZE_Msk                  /*!< Address Size */
13125 #define OCTOSPI_CCR_ADSIZE_0                (0x1UL << OCTOSPI_CCR_ADSIZE_Pos)       /*!< 0x00001000 */
13126 #define OCTOSPI_CCR_ADSIZE_1                (0x2UL << OCTOSPI_CCR_ADSIZE_Pos)       /*!< 0x00002000 */
13127 #define OCTOSPI_CCR_ABMODE_Pos              (16U)
13128 #define OCTOSPI_CCR_ABMODE_Msk              (0x7UL << OCTOSPI_CCR_ABMODE_Pos)       /*!< 0x00070000 */
13129 #define OCTOSPI_CCR_ABMODE                  OCTOSPI_CCR_ABMODE_Msk                  /*!< Alternate Bytes Mode */
13130 #define OCTOSPI_CCR_ABMODE_0                (0x1UL << OCTOSPI_CCR_ABMODE_Pos)       /*!< 0x00010000 */
13131 #define OCTOSPI_CCR_ABMODE_1                (0x2UL << OCTOSPI_CCR_ABMODE_Pos)       /*!< 0x00020000 */
13132 #define OCTOSPI_CCR_ABMODE_2                (0x4UL << OCTOSPI_CCR_ABMODE_Pos)       /*!< 0x00040000 */
13133 #define OCTOSPI_CCR_ABDTR_Pos               (19U)
13134 #define OCTOSPI_CCR_ABDTR_Msk               (0x1UL << OCTOSPI_CCR_ABDTR_Pos)        /*!< 0x00080000 */
13135 #define OCTOSPI_CCR_ABDTR                   OCTOSPI_CCR_ABDTR_Msk                   /*!< Alternate Bytes Double Transfer Rate */
13136 #define OCTOSPI_CCR_ABSIZE_Pos              (20U)
13137 #define OCTOSPI_CCR_ABSIZE_Msk              (0x3UL << OCTOSPI_CCR_ABSIZE_Pos)       /*!< 0x00300000 */
13138 #define OCTOSPI_CCR_ABSIZE                  OCTOSPI_CCR_ABSIZE_Msk                  /*!< Alternate Bytes Size */
13139 #define OCTOSPI_CCR_ABSIZE_0                (0x1UL << OCTOSPI_CCR_ABSIZE_Pos)       /*!< 0x00100000 */
13140 #define OCTOSPI_CCR_ABSIZE_1                (0x2UL << OCTOSPI_CCR_ABSIZE_Pos)       /*!< 0x00200000 */
13141 #define OCTOSPI_CCR_DMODE_Pos               (24U)
13142 #define OCTOSPI_CCR_DMODE_Msk               (0x7UL << OCTOSPI_CCR_DMODE_Pos)        /*!< 0x07000000 */
13143 #define OCTOSPI_CCR_DMODE                   OCTOSPI_CCR_DMODE_Msk                   /*!< Data Mode */
13144 #define OCTOSPI_CCR_DMODE_0                 (0x1UL << OCTOSPI_CCR_DMODE_Pos)        /*!< 0x01000000 */
13145 #define OCTOSPI_CCR_DMODE_1                 (0x2UL << OCTOSPI_CCR_DMODE_Pos)        /*!< 0x02000000 */
13146 #define OCTOSPI_CCR_DMODE_2                 (0x4UL << OCTOSPI_CCR_DMODE_Pos)        /*!< 0x04000000 */
13147 #define OCTOSPI_CCR_DDTR_Pos                (27U)
13148 #define OCTOSPI_CCR_DDTR_Msk                (0x1UL << OCTOSPI_CCR_DDTR_Pos)         /*!< 0x08000000 */
13149 #define OCTOSPI_CCR_DDTR                    OCTOSPI_CCR_DDTR_Msk                    /*!< Data Double Transfer Rate */
13150 #define OCTOSPI_CCR_DQSE_Pos                (29U)
13151 #define OCTOSPI_CCR_DQSE_Msk                (0x1UL << OCTOSPI_CCR_DQSE_Pos)         /*!< 0x20000000 */
13152 #define OCTOSPI_CCR_DQSE                    OCTOSPI_CCR_DQSE_Msk                    /*!< DQS Enable */
13153 #define OCTOSPI_CCR_SIOO_Pos                (31U)
13154 #define OCTOSPI_CCR_SIOO_Msk                (0x1UL << OCTOSPI_CCR_SIOO_Pos)         /*!< 0x80000000 */
13155 #define OCTOSPI_CCR_SIOO                    OCTOSPI_CCR_SIOO_Msk                    /*!< Send Instruction Only Once Mode */
13156 
13157 /****************  Bit definition for OCTOSPI_TCR register  *******************/
13158 #define OCTOSPI_TCR_DCYC_Pos                (0U)
13159 #define OCTOSPI_TCR_DCYC_Msk                (0x1FUL << OCTOSPI_TCR_DCYC_Pos)        /*!< 0x0000001F */
13160 #define OCTOSPI_TCR_DCYC                    OCTOSPI_TCR_DCYC_Msk                    /*!< Number of Dummy Cycles */
13161 #define OCTOSPI_TCR_DHQC_Pos                (28U)
13162 #define OCTOSPI_TCR_DHQC_Msk                (0x1UL << OCTOSPI_TCR_DHQC_Pos)         /*!< 0x10000000 */
13163 #define OCTOSPI_TCR_DHQC                    OCTOSPI_TCR_DHQC_Msk                    /*!< Delay Hold Quarter Cycle */
13164 #define OCTOSPI_TCR_SSHIFT_Pos              (30U)
13165 #define OCTOSPI_TCR_SSHIFT_Msk              (0x1UL << OCTOSPI_TCR_SSHIFT_Pos)       /*!< 0x40000000 */
13166 #define OCTOSPI_TCR_SSHIFT                  OCTOSPI_TCR_SSHIFT_Msk                  /*!< Sample Shift */
13167 
13168 /*****************  Bit definition for OCTOSPI_IR register  *******************/
13169 #define OCTOSPI_IR_INSTRUCTION_Pos          (0U)
13170 #define OCTOSPI_IR_INSTRUCTION_Msk          (0xFFFFFFFFUL << OCTOSPI_IR_INSTRUCTION_Pos) /*!< 0xFFFFFFFF */
13171 #define OCTOSPI_IR_INSTRUCTION              OCTOSPI_IR_INSTRUCTION_Msk              /*!< Instruction */
13172 
13173 /****************  Bit definition for OCTOSPI_ABR register  *******************/
13174 #define OCTOSPI_ABR_ALTERNATE_Pos           (0U)
13175 #define OCTOSPI_ABR_ALTERNATE_Msk           (0xFFFFFFFFUL << OCTOSPI_ABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */
13176 #define OCTOSPI_ABR_ALTERNATE               OCTOSPI_ABR_ALTERNATE_Msk               /*!< Alternate Bytes */
13177 
13178 /****************  Bit definition for OCTOSPI_LPTR register  ******************/
13179 #define OCTOSPI_LPTR_TIMEOUT_Pos            (0U)
13180 #define OCTOSPI_LPTR_TIMEOUT_Msk            (0xFFFFUL << OCTOSPI_LPTR_TIMEOUT_Pos)  /*!< 0x0000FFFF */
13181 #define OCTOSPI_LPTR_TIMEOUT                OCTOSPI_LPTR_TIMEOUT_Msk                /*!< Timeout period */
13182 
13183 /****************  Bit definition for OCTOSPI_WPCCR register  *******************/
13184 #define OCTOSPI_WPCCR_IMODE_Pos             (0U)
13185 #define OCTOSPI_WPCCR_IMODE_Msk             (0x7UL << OCTOSPI_WPCCR_IMODE_Pos)      /*!< 0x00000007 */
13186 #define OCTOSPI_WPCCR_IMODE                 OCTOSPI_WPCCR_IMODE_Msk                 /*!< Instruction Mode */
13187 #define OCTOSPI_WPCCR_IMODE_0               (0x1UL << OCTOSPI_WPCCR_IMODE_Pos)      /*!< 0x00000001 */
13188 #define OCTOSPI_WPCCR_IMODE_1               (0x2UL << OCTOSPI_WPCCR_IMODE_Pos)      /*!< 0x00000002 */
13189 #define OCTOSPI_WPCCR_IMODE_2               (0x4UL << OCTOSPI_WPCCR_IMODE_Pos)      /*!< 0x00000004 */
13190 #define OCTOSPI_WPCCR_IDTR_Pos              (3U)
13191 #define OCTOSPI_WPCCR_IDTR_Msk              (0x1UL << OCTOSPI_WPCCR_IDTR_Pos)       /*!< 0x00000008 */
13192 #define OCTOSPI_WPCCR_IDTR                  OCTOSPI_WPCCR_IDTR_Msk                  /*!< Instruction Double Transfer Rate */
13193 #define OCTOSPI_WPCCR_ISIZE_Pos             (4U)
13194 #define OCTOSPI_WPCCR_ISIZE_Msk             (0x3UL << OCTOSPI_WPCCR_ISIZE_Pos)      /*!< 0x00000030 */
13195 #define OCTOSPI_WPCCR_ISIZE                 OCTOSPI_WPCCR_ISIZE_Msk                 /*!< Instruction Size */
13196 #define OCTOSPI_WPCCR_ISIZE_0               (0x1UL << OCTOSPI_WPCCR_ISIZE_Pos)      /*!< 0x00000010 */
13197 #define OCTOSPI_WPCCR_ISIZE_1               (0x2UL << OCTOSPI_WPCCR_ISIZE_Pos)      /*!< 0x00000020 */
13198 #define OCTOSPI_WPCCR_ADMODE_Pos            (8U)
13199 #define OCTOSPI_WPCCR_ADMODE_Msk            (0x7UL << OCTOSPI_WPCCR_ADMODE_Pos)     /*!< 0x00000700 */
13200 #define OCTOSPI_WPCCR_ADMODE                OCTOSPI_WPCCR_ADMODE_Msk                /*!< Address Mode */
13201 #define OCTOSPI_WPCCR_ADMODE_0              (0x1UL << OCTOSPI_WPCCR_ADMODE_Pos)     /*!< 0x00000100 */
13202 #define OCTOSPI_WPCCR_ADMODE_1              (0x2UL << OCTOSPI_WPCCR_ADMODE_Pos)     /*!< 0x00000200 */
13203 #define OCTOSPI_WPCCR_ADMODE_2              (0x4UL << OCTOSPI_WPCCR_ADMODE_Pos)     /*!< 0x00000400 */
13204 #define OCTOSPI_WPCCR_ADDTR_Pos             (11U)
13205 #define OCTOSPI_WPCCR_ADDTR_Msk             (0x1UL << OCTOSPI_WPCCR_ADDTR_Pos)      /*!< 0x00000800 */
13206 #define OCTOSPI_WPCCR_ADDTR                 OCTOSPI_WPCCR_ADDTR_Msk                 /*!< Address Double Transfer Rate */
13207 #define OCTOSPI_WPCCR_ADSIZE_Pos            (12U)
13208 #define OCTOSPI_WPCCR_ADSIZE_Msk            (0x3UL << OCTOSPI_WPCCR_ADSIZE_Pos)     /*!< 0x00003000 */
13209 #define OCTOSPI_WPCCR_ADSIZE                OCTOSPI_WPCCR_ADSIZE_Msk                /*!< Address Size */
13210 #define OCTOSPI_WPCCR_ADSIZE_0              (0x1UL << OCTOSPI_WPCCR_ADSIZE_Pos)     /*!< 0x00001000 */
13211 #define OCTOSPI_WPCCR_ADSIZE_1              (0x2UL << OCTOSPI_WPCCR_ADSIZE_Pos)     /*!< 0x00002000 */
13212 #define OCTOSPI_WPCCR_ABMODE_Pos            (16U)
13213 #define OCTOSPI_WPCCR_ABMODE_Msk            (0x7UL << OCTOSPI_WPCCR_ABMODE_Pos)     /*!< 0x00070000 */
13214 #define OCTOSPI_WPCCR_ABMODE                OCTOSPI_WPCCR_ABMODE_Msk                /*!< Alternate Bytes Mode */
13215 #define OCTOSPI_WPCCR_ABMODE_0              (0x1UL << OCTOSPI_WPCCR_ABMODE_Pos)     /*!< 0x00010000 */
13216 #define OCTOSPI_WPCCR_ABMODE_1              (0x2UL << OCTOSPI_WPCCR_ABMODE_Pos)     /*!< 0x00020000 */
13217 #define OCTOSPI_WPCCR_ABMODE_2              (0x4UL << OCTOSPI_WPCCR_ABMODE_Pos)     /*!< 0x00040000 */
13218 #define OCTOSPI_WPCCR_ABDTR_Pos             (19U)
13219 #define OCTOSPI_WPCCR_ABDTR_Msk             (0x1UL << OCTOSPI_WPCCR_ABDTR_Pos)      /*!< 0x00080000 */
13220 #define OCTOSPI_WPCCR_ABDTR                 OCTOSPI_WPCCR_ABDTR_Msk                 /*!< Alternate Bytes Double Transfer Rate */
13221 #define OCTOSPI_WPCCR_ABSIZE_Pos            (20U)
13222 #define OCTOSPI_WPCCR_ABSIZE_Msk            (0x3UL << OCTOSPI_WPCCR_ABSIZE_Pos)     /*!< 0x00300000 */
13223 #define OCTOSPI_WPCCR_ABSIZE                OCTOSPI_WPCCR_ABSIZE_Msk                /*!< Alternate Bytes Size */
13224 #define OCTOSPI_WPCCR_ABSIZE_0              (0x1UL << OCTOSPI_WPCCR_ABSIZE_Pos)     /*!< 0x00100000 */
13225 #define OCTOSPI_WPCCR_ABSIZE_1              (0x2UL << OCTOSPI_WPCCR_ABSIZE_Pos)     /*!< 0x00200000 */
13226 #define OCTOSPI_WPCCR_DMODE_Pos             (24U)
13227 #define OCTOSPI_WPCCR_DMODE_Msk             (0x7UL << OCTOSPI_WPCCR_DMODE_Pos)      /*!< 0x07000000 */
13228 #define OCTOSPI_WPCCR_DMODE                 OCTOSPI_WPCCR_DMODE_Msk                 /*!< Data Mode */
13229 #define OCTOSPI_WPCCR_DMODE_0               (0x1UL << OCTOSPI_WPCCR_DMODE_Pos)      /*!< 0x01000000 */
13230 #define OCTOSPI_WPCCR_DMODE_1               (0x2UL << OCTOSPI_WPCCR_DMODE_Pos)      /*!< 0x02000000 */
13231 #define OCTOSPI_WPCCR_DMODE_2               (0x4UL << OCTOSPI_WPCCR_DMODE_Pos)      /*!< 0x04000000 */
13232 #define OCTOSPI_WPCCR_DDTR_Pos              (27U)
13233 #define OCTOSPI_WPCCR_DDTR_Msk              (0x1UL << OCTOSPI_WPCCR_DDTR_Pos)       /*!< 0x08000000 */
13234 #define OCTOSPI_WPCCR_DDTR                  OCTOSPI_WPCCR_DDTR_Msk                  /*!< Data Double Transfer Rate */
13235 #define OCTOSPI_WPCCR_DQSE_Pos              (29U)
13236 #define OCTOSPI_WPCCR_DQSE_Msk              (0x1UL << OCTOSPI_WPCCR_DQSE_Pos)       /*!< 0x20000000 */
13237 #define OCTOSPI_WPCCR_DQSE                  OCTOSPI_WPCCR_DQSE_Msk                  /*!< DQS Enable */
13238 
13239 /****************  Bit definition for OCTOSPI_WPTCR register  *******************/
13240 #define OCTOSPI_WPTCR_DCYC_Pos              (0U)
13241 #define OCTOSPI_WPTCR_DCYC_Msk              (0x1FUL << OCTOSPI_WPTCR_DCYC_Pos)      /*!< 0x0000001F */
13242 #define OCTOSPI_WPTCR_DCYC                  OCTOSPI_WPTCR_DCYC_Msk                  /*!< Number of Dummy Cycles */
13243 #define OCTOSPI_WPTCR_DHQC_Pos              (28U)
13244 #define OCTOSPI_WPTCR_DHQC_Msk              (0x1UL << OCTOSPI_WPTCR_DHQC_Pos)       /*!< 0x10000000 */
13245 #define OCTOSPI_WPTCR_DHQC                  OCTOSPI_WPTCR_DHQC_Msk                  /*!< Delay Hold Quarter Cycle */
13246 #define OCTOSPI_WPTCR_SSHIFT_Pos            (30U)
13247 #define OCTOSPI_WPTCR_SSHIFT_Msk            (0x1UL << OCTOSPI_WPTCR_SSHIFT_Pos)     /*!< 0x40000000 */
13248 #define OCTOSPI_WPTCR_SSHIFT                OCTOSPI_WPTCR_SSHIFT_Msk                /*!< Sample Shift */
13249 
13250 /*****************  Bit definition for OCTOSPI_WPIR register  *******************/
13251 #define OCTOSPI_WPIR_INSTRUCTION_Pos        (0U)
13252 #define OCTOSPI_WPIR_INSTRUCTION_Msk        (0xFFFFFFFFUL << OCTOSPI_WPIR_INSTRUCTION_Pos) /*!< 0xFFFFFFFF */
13253 #define OCTOSPI_WPIR_INSTRUCTION            OCTOSPI_WPIR_INSTRUCTION_Msk            /*!< Instruction */
13254 
13255 /****************  Bit definition for OCTOSPI_WPABR register  *******************/
13256 #define OCTOSPI_WPABR_ALTERNATE_Pos         (0U)
13257 #define OCTOSPI_WPABR_ALTERNATE_Msk         (0xFFFFFFFFUL << OCTOSPI_WPABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */
13258 #define OCTOSPI_WPABR_ALTERNATE             OCTOSPI_WPABR_ALTERNATE_Msk             /*!< Alternate Bytes */
13259 
13260 /****************  Bit definition for OCTOSPI_WCCR register  ******************/
13261 #define OCTOSPI_WCCR_IMODE_Pos              (0U)
13262 #define OCTOSPI_WCCR_IMODE_Msk              (0x7UL << OCTOSPI_WCCR_IMODE_Pos)       /*!< 0x00000007 */
13263 #define OCTOSPI_WCCR_IMODE                  OCTOSPI_WCCR_IMODE_Msk                  /*!< Instruction Mode */
13264 #define OCTOSPI_WCCR_IMODE_0                (0x1UL << OCTOSPI_WCCR_IMODE_Pos)       /*!< 0x00000001 */
13265 #define OCTOSPI_WCCR_IMODE_1                (0x2UL << OCTOSPI_WCCR_IMODE_Pos)       /*!< 0x00000002 */
13266 #define OCTOSPI_WCCR_IMODE_2                (0x4UL << OCTOSPI_WCCR_IMODE_Pos)       /*!< 0x00000004 */
13267 #define OCTOSPI_WCCR_IDTR_Pos               (3U)
13268 #define OCTOSPI_WCCR_IDTR_Msk               (0x1UL << OCTOSPI_WCCR_IDTR_Pos)        /*!< 0x00000008 */
13269 #define OCTOSPI_WCCR_IDTR                   OCTOSPI_WCCR_IDTR_Msk                   /*!< Instruction Double Transfer Rate */
13270 #define OCTOSPI_WCCR_ISIZE_Pos              (4U)
13271 #define OCTOSPI_WCCR_ISIZE_Msk              (0x3UL << OCTOSPI_WCCR_ISIZE_Pos)       /*!< 0x00000030 */
13272 #define OCTOSPI_WCCR_ISIZE                  OCTOSPI_WCCR_ISIZE_Msk                  /*!< Instruction Size */
13273 #define OCTOSPI_WCCR_ISIZE_0                (0x1UL << OCTOSPI_WCCR_ISIZE_Pos)       /*!< 0x00000010 */
13274 #define OCTOSPI_WCCR_ISIZE_1                (0x2UL << OCTOSPI_WCCR_ISIZE_Pos)       /*!< 0x00000020 */
13275 #define OCTOSPI_WCCR_ADMODE_Pos             (8U)
13276 #define OCTOSPI_WCCR_ADMODE_Msk             (0x7UL << OCTOSPI_WCCR_ADMODE_Pos)      /*!< 0x00000700 */
13277 #define OCTOSPI_WCCR_ADMODE                 OCTOSPI_WCCR_ADMODE_Msk                 /*!< Address Mode */
13278 #define OCTOSPI_WCCR_ADMODE_0               (0x1UL << OCTOSPI_WCCR_ADMODE_Pos)      /*!< 0x00000100 */
13279 #define OCTOSPI_WCCR_ADMODE_1               (0x2UL << OCTOSPI_WCCR_ADMODE_Pos)      /*!< 0x00000200 */
13280 #define OCTOSPI_WCCR_ADMODE_2               (0x4UL << OCTOSPI_WCCR_ADMODE_Pos)      /*!< 0x00000400 */
13281 #define OCTOSPI_WCCR_ADDTR_Pos              (11U)
13282 #define OCTOSPI_WCCR_ADDTR_Msk              (0x1UL << OCTOSPI_WCCR_ADDTR_Pos)       /*!< 0x00000800 */
13283 #define OCTOSPI_WCCR_ADDTR                  OCTOSPI_WCCR_ADDTR_Msk                  /*!< Address Double Transfer Rate */
13284 #define OCTOSPI_WCCR_ADSIZE_Pos             (12U)
13285 #define OCTOSPI_WCCR_ADSIZE_Msk             (0x3UL << OCTOSPI_WCCR_ADSIZE_Pos)      /*!< 0x00003000 */
13286 #define OCTOSPI_WCCR_ADSIZE                 OCTOSPI_WCCR_ADSIZE_Msk                 /*!< Address Size */
13287 #define OCTOSPI_WCCR_ADSIZE_0               (0x1UL << OCTOSPI_WCCR_ADSIZE_Pos)      /*!< 0x00001000 */
13288 #define OCTOSPI_WCCR_ADSIZE_1               (0x2UL << OCTOSPI_WCCR_ADSIZE_Pos)      /*!< 0x00002000 */
13289 #define OCTOSPI_WCCR_ABMODE_Pos             (16U)
13290 #define OCTOSPI_WCCR_ABMODE_Msk             (0x7UL << OCTOSPI_WCCR_ABMODE_Pos)      /*!< 0x00070000 */
13291 #define OCTOSPI_WCCR_ABMODE                 OCTOSPI_WCCR_ABMODE_Msk                 /*!< Alternate Bytes Mode */
13292 #define OCTOSPI_WCCR_ABMODE_0               (0x1UL << OCTOSPI_WCCR_ABMODE_Pos)      /*!< 0x00010000 */
13293 #define OCTOSPI_WCCR_ABMODE_1               (0x2UL << OCTOSPI_WCCR_ABMODE_Pos)      /*!< 0x00020000 */
13294 #define OCTOSPI_WCCR_ABMODE_2               (0x4UL << OCTOSPI_WCCR_ABMODE_Pos)      /*!< 0x00040000 */
13295 #define OCTOSPI_WCCR_ABDTR_Pos              (19U)
13296 #define OCTOSPI_WCCR_ABDTR_Msk              (0x1UL << OCTOSPI_WCCR_ABDTR_Pos)       /*!< 0x00080000 */
13297 #define OCTOSPI_WCCR_ABDTR                  OCTOSPI_WCCR_ABDTR_Msk                  /*!< Alternate Bytes Double Transfer Rate */
13298 #define OCTOSPI_WCCR_ABSIZE_Pos             (20U)
13299 #define OCTOSPI_WCCR_ABSIZE_Msk             (0x3UL << OCTOSPI_WCCR_ABSIZE_Pos)      /*!< 0x00300000 */
13300 #define OCTOSPI_WCCR_ABSIZE                 OCTOSPI_WCCR_ABSIZE_Msk                 /*!< Alternate Bytes Size */
13301 #define OCTOSPI_WCCR_ABSIZE_0               (0x1UL << OCTOSPI_WCCR_ABSIZE_Pos)      /*!< 0x00100000 */
13302 #define OCTOSPI_WCCR_ABSIZE_1               (0x2UL << OCTOSPI_WCCR_ABSIZE_Pos)      /*!< 0x00200000 */
13303 #define OCTOSPI_WCCR_DMODE_Pos              (24U)
13304 #define OCTOSPI_WCCR_DMODE_Msk              (0x7UL << OCTOSPI_WCCR_DMODE_Pos)       /*!< 0x07000000 */
13305 #define OCTOSPI_WCCR_DMODE                  OCTOSPI_WCCR_DMODE_Msk                  /*!< Data Mode */
13306 #define OCTOSPI_WCCR_DMODE_0                (0x1UL << OCTOSPI_WCCR_DMODE_Pos)       /*!< 0x01000000 */
13307 #define OCTOSPI_WCCR_DMODE_1                (0x2UL << OCTOSPI_WCCR_DMODE_Pos)       /*!< 0x02000000 */
13308 #define OCTOSPI_WCCR_DMODE_2                (0x4UL << OCTOSPI_WCCR_DMODE_Pos)       /*!< 0x04000000 */
13309 #define OCTOSPI_WCCR_DDTR_Pos               (27U)
13310 #define OCTOSPI_WCCR_DDTR_Msk               (0x1UL << OCTOSPI_WCCR_DDTR_Pos)        /*!< 0x08000000 */
13311 #define OCTOSPI_WCCR_DDTR                   OCTOSPI_WCCR_DDTR_Msk                   /*!< Data Double Transfer Rate */
13312 #define OCTOSPI_WCCR_DQSE_Pos               (29U)
13313 #define OCTOSPI_WCCR_DQSE_Msk               (0x1UL << OCTOSPI_WCCR_DQSE_Pos)        /*!< 0x20000000 */
13314 #define OCTOSPI_WCCR_DQSE                   OCTOSPI_WCCR_DQSE_Msk                   /*!< DQS Enable */
13315 
13316 /****************  Bit definition for OCTOSPI_WTCR register  ******************/
13317 #define OCTOSPI_WTCR_DCYC_Pos               (0U)
13318 #define OCTOSPI_WTCR_DCYC_Msk               (0x1FUL << OCTOSPI_WTCR_DCYC_Pos)       /*!< 0x0000001F */
13319 #define OCTOSPI_WTCR_DCYC                   OCTOSPI_WTCR_DCYC_Msk                   /*!< Number of Dummy Cycles */
13320 
13321 /****************  Bit definition for OCTOSPI_WIR register  *******************/
13322 #define OCTOSPI_WIR_INSTRUCTION_Pos         (0U)
13323 #define OCTOSPI_WIR_INSTRUCTION_Msk         (0xFFFFFFFFUL << OCTOSPI_WIR_INSTRUCTION_Pos) /*!< 0xFFFFFFFF */
13324 #define OCTOSPI_WIR_INSTRUCTION             OCTOSPI_WIR_INSTRUCTION_Msk             /*!< Instruction */
13325 
13326 /****************  Bit definition for OCTOSPI_WABR register  ******************/
13327 #define OCTOSPI_WABR_ALTERNATE_Pos          (0U)
13328 #define OCTOSPI_WABR_ALTERNATE_Msk          (0xFFFFFFFFUL << OCTOSPI_WABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */
13329 #define OCTOSPI_WABR_ALTERNATE              OCTOSPI_WABR_ALTERNATE_Msk              /*!< Alternate Bytes */
13330 
13331 /****************  Bit definition for OCTOSPI_HLCR register  ******************/
13332 #define OCTOSPI_HLCR_LM_Pos                 (0U)
13333 #define OCTOSPI_HLCR_LM_Msk                 (0x1UL << OCTOSPI_HLCR_LM_Pos)          /*!< 0x00000001 */
13334 #define OCTOSPI_HLCR_LM                     OCTOSPI_HLCR_LM_Msk                     /*!< Latency Mode */
13335 #define OCTOSPI_HLCR_WZL_Pos                (1U)
13336 #define OCTOSPI_HLCR_WZL_Msk                (0x1UL << OCTOSPI_HLCR_WZL_Pos)         /*!< 0x00000002 */
13337 #define OCTOSPI_HLCR_WZL                    OCTOSPI_HLCR_WZL_Msk                    /*!< Write Zero Latency */
13338 #define OCTOSPI_HLCR_TACC_Pos               (8U)
13339 #define OCTOSPI_HLCR_TACC_Msk               (0xFFUL << OCTOSPI_HLCR_TACC_Pos)       /*!< 0x0000FF00 */
13340 #define OCTOSPI_HLCR_TACC                   OCTOSPI_HLCR_TACC_Msk                   /*!< Access Time */
13341 #define OCTOSPI_HLCR_TRWR_Pos               (16U)
13342 #define OCTOSPI_HLCR_TRWR_Msk               (0xFFUL << OCTOSPI_HLCR_TRWR_Pos)       /*!< 0x00FF0000 */
13343 #define OCTOSPI_HLCR_TRWR                   OCTOSPI_HLCR_TRWR_Msk                   /*!< Read Write Recovery Time */
13344 
13345 /******************************************************************************/
13346 /*                                                                            */
13347 /*                                  OCTOSPIM                                  */
13348 /*                                                                            */
13349 /******************************************************************************/
13350 /***************  Bit definition for OCTOSPIM_CR register  ********************/
13351 #define OCTOSPIM_CR_MUXEN_Pos               (0U)
13352 #define OCTOSPIM_CR_MUXEN_Msk               (0x1UL << OCTOSPIM_CR_MUXEN_Pos)        /*!< 0x00000001 */
13353 #define OCTOSPIM_CR_MUXEN                   OCTOSPIM_CR_MUXEN_Msk                   /*!< Multiplexed Mode Enable */
13354 #define OCTOSPIM_CR_REQ2ACK_TIME_Pos        (16U)
13355 #define OCTOSPIM_CR_REQ2ACK_TIME_Msk        (0xFFUL << OCTOSPIM_CR_REQ2ACK_TIME_Pos) /*!< 0x00FF0000 */
13356 #define OCTOSPIM_CR_REQ2ACK_TIME            OCTOSPIM_CR_REQ2ACK_TIME_Msk            /*!< REQ to ACK Time */
13357 
13358 /***************  Bit definition for OCTOSPIM_PCR register  *****************/
13359 #define OCTOSPIM_PCR_CLKEN_Pos              (0U)
13360 #define OCTOSPIM_PCR_CLKEN_Msk              (0x1UL << OCTOSPIM_PCR_CLKEN_Pos)       /*!< 0x00000001 */
13361 #define OCTOSPIM_PCR_CLKEN                  OCTOSPIM_PCR_CLKEN_Msk                  /*!< CLK/CLKn Enable for Port n */
13362 #define OCTOSPIM_PCR_CLKSRC_Pos             (1U)
13363 #define OCTOSPIM_PCR_CLKSRC_Msk             (0x1UL << OCTOSPIM_PCR_CLKSRC_Pos)      /*!< 0x00000002 */
13364 #define OCTOSPIM_PCR_CLKSRC                 OCTOSPIM_PCR_CLKSRC_Msk                 /*!< CLK/CLKn Source for Port n*/
13365 #define OCTOSPIM_PCR_DQSEN_Pos              (4U)
13366 #define OCTOSPIM_PCR_DQSEN_Msk              (0x1UL << OCTOSPIM_PCR_DQSEN_Pos)       /*!< 0x00000010 */
13367 #define OCTOSPIM_PCR_DQSEN                  OCTOSPIM_PCR_DQSEN_Msk                  /*!< DQS Enable for Port n */
13368 #define OCTOSPIM_PCR_DQSSRC_Pos             (5U)
13369 #define OCTOSPIM_PCR_DQSSRC_Msk             (0x1UL << OCTOSPIM_PCR_DQSSRC_Pos)      /*!< 0x00000020 */
13370 #define OCTOSPIM_PCR_DQSSRC                 OCTOSPIM_PCR_DQSSRC_Msk                 /*!< DQS Source for Port n */
13371 #define OCTOSPIM_PCR_NCSEN_Pos              (8U)
13372 #define OCTOSPIM_PCR_NCSEN_Msk              (0x1UL << OCTOSPIM_PCR_NCSEN_Pos)       /*!< 0x00000100U */
13373 #define OCTOSPIM_PCR_NCSEN                  OCTOSPIM_PCR_NCSEN_Msk                  /*!< nCS Enable for Port n*/
13374 #define OCTOSPIM_PCR_NCSSRC_Pos             (9U)
13375 #define OCTOSPIM_PCR_NCSSRC_Msk             (0x1UL << OCTOSPIM_PCR_NCSSRC_Pos)      /*!< 0x00000200U */
13376 #define OCTOSPIM_PCR_NCSSRC                 OCTOSPIM_PCR_NCSSRC_Msk                 /*!< nCS Source for Port n */
13377 #define OCTOSPIM_PCR_IOLEN_Pos              (16U)
13378 #define OCTOSPIM_PCR_IOLEN_Msk              (0x1UL << OCTOSPIM_PCR_IOLEN_Pos)       /*!< 0x00010000U */
13379 #define OCTOSPIM_PCR_IOLEN                  OCTOSPIM_PCR_IOLEN_Msk                  /*!< IO[3:0] Enable for Port n */
13380 #define OCTOSPIM_PCR_IOLSRC_Pos             (17U)
13381 #define OCTOSPIM_PCR_IOLSRC_Msk             (0x3UL << OCTOSPIM_PCR_IOLSRC_Pos)      /*!< 0x00060000U */
13382 #define OCTOSPIM_PCR_IOLSRC                 OCTOSPIM_PCR_IOLSRC_Msk                 /*!< IO[3:0] Source for Port n */
13383 #define OCTOSPIM_PCR_IOLSRC_0               (0x1UL << OCTOSPIM_PCR_IOLSRC_Pos)      /*!< 0x00020000 */
13384 #define OCTOSPIM_PCR_IOLSRC_1               (0x2UL << OCTOSPIM_PCR_IOLSRC_Pos)      /*!< 0x00040000 */
13385 #define OCTOSPIM_PCR_IOHEN_Pos              (24U)
13386 #define OCTOSPIM_PCR_IOHEN_Msk              (0x1UL << OCTOSPIM_PCR_IOHEN_Pos)       /*!< 0x01000000U */
13387 #define OCTOSPIM_PCR_IOHEN                  OCTOSPIM_PCR_IOHEN_Msk                  /*!< IO[7:4] Enable for Port n */
13388 #define OCTOSPIM_PCR_IOHSRC_Pos             (25U)
13389 #define OCTOSPIM_PCR_IOHSRC_Msk             (0x3UL << OCTOSPIM_PCR_IOHSRC_Pos)      /*!< 0x06000000U */
13390 #define OCTOSPIM_PCR_IOHSRC                 OCTOSPIM_PCR_IOHSRC_Msk                 /*!< IO[7:4] Source for Port n */
13391 #define OCTOSPIM_PCR_IOHSRC_0               (0x1UL << OCTOSPIM_PCR_IOHSRC_Pos)      /*!< 0x02000000U */
13392 #define OCTOSPIM_PCR_IOHSRC_1               (0x2UL << OCTOSPIM_PCR_IOHSRC_Pos)      /*!< 0x04000000U */
13393 
13394 /******************************************************************************/
13395 /*                                                                            */
13396 /*                        Delay Block Interface (DLYB)                        */
13397 /*                                                                            */
13398 /******************************************************************************/
13399 /*******************  Bit definition for DLYB_CR register  ********************/
13400 #define DLYB_CR_DEN_Pos                     (0U)
13401 #define DLYB_CR_DEN_Msk                     (0x1UL << DLYB_CR_DEN_Pos)              /*!< 0x00000001 */
13402 #define DLYB_CR_DEN                         DLYB_CR_DEN_Msk                         /*!<Delay Block enable */
13403 #define DLYB_CR_SEN_Pos                     (1U)
13404 #define DLYB_CR_SEN_Msk                     (0x1UL << DLYB_CR_SEN_Pos)              /*!< 0x00000002 */
13405 #define DLYB_CR_SEN                         DLYB_CR_SEN_Msk                         /*!<Sampler length enable */
13406 
13407 /*******************  Bit definition for DLYB_CFGR register  ********************/
13408 #define DLYB_CFGR_SEL_Pos                   (0U)
13409 #define DLYB_CFGR_SEL_Msk                   (0xFUL << DLYB_CFGR_SEL_Pos)            /*!< 0x0000000F */
13410 #define DLYB_CFGR_SEL                       DLYB_CFGR_SEL_Msk                       /*!<Select the phase for the Output clock[3:0] */
13411 #define DLYB_CFGR_SEL_0                     (0x1UL << DLYB_CFGR_SEL_Pos)            /*!< 0x00000001 */
13412 #define DLYB_CFGR_SEL_1                     (0x2UL << DLYB_CFGR_SEL_Pos)            /*!< 0x00000002 */
13413 #define DLYB_CFGR_SEL_2                     (0x3UL << DLYB_CFGR_SEL_Pos)            /*!< 0x00000003 */
13414 #define DLYB_CFGR_SEL_3                     (0x8UL << DLYB_CFGR_SEL_Pos)            /*!< 0x00000008 */
13415 
13416 #define DLYB_CFGR_UNIT_Pos                  (8U)
13417 #define DLYB_CFGR_UNIT_Msk                  (0x7FUL << DLYB_CFGR_UNIT_Pos)          /*!< 0x00007F00 */
13418 #define DLYB_CFGR_UNIT                      DLYB_CFGR_UNIT_Msk                      /*!<Delay Defines the delay of a Unit delay cell[6:0] */
13419 #define DLYB_CFGR_UNIT_0                    (0x01UL << DLYB_CFGR_UNIT_Pos)          /*!< 0x00000100 */
13420 #define DLYB_CFGR_UNIT_1                    (0x02UL << DLYB_CFGR_UNIT_Pos)          /*!< 0x00000200 */
13421 #define DLYB_CFGR_UNIT_2                    (0x04UL << DLYB_CFGR_UNIT_Pos)          /*!< 0x00000400 */
13422 #define DLYB_CFGR_UNIT_3                    (0x08UL << DLYB_CFGR_UNIT_Pos)          /*!< 0x00000800 */
13423 #define DLYB_CFGR_UNIT_4                    (0x10UL << DLYB_CFGR_UNIT_Pos)          /*!< 0x00001000 */
13424 #define DLYB_CFGR_UNIT_5                    (0x20UL << DLYB_CFGR_UNIT_Pos)          /*!< 0x00002000 */
13425 #define DLYB_CFGR_UNIT_6                    (0x40UL << DLYB_CFGR_UNIT_Pos)          /*!< 0x00004000 */
13426 
13427 #define DLYB_CFGR_LNG_Pos                   (16U)
13428 #define DLYB_CFGR_LNG_Msk                   (0xFFFUL << DLYB_CFGR_LNG_Pos)          /*!< 0x0FFF0000 */
13429 #define DLYB_CFGR_LNG                       DLYB_CFGR_LNG_Msk                       /*!<Delay line length value[11:0] */
13430 #define DLYB_CFGR_LNG_0                     (0x001UL << DLYB_CFGR_LNG_Pos)          /*!< 0x00010000 */
13431 #define DLYB_CFGR_LNG_1                     (0x002UL << DLYB_CFGR_LNG_Pos)          /*!< 0x00020000 */
13432 #define DLYB_CFGR_LNG_2                     (0x004UL << DLYB_CFGR_LNG_Pos)          /*!< 0x00040000 */
13433 #define DLYB_CFGR_LNG_3                     (0x008UL << DLYB_CFGR_LNG_Pos)          /*!< 0x00080000 */
13434 #define DLYB_CFGR_LNG_4                     (0x010UL << DLYB_CFGR_LNG_Pos)          /*!< 0x00100000 */
13435 #define DLYB_CFGR_LNG_5                     (0x020UL << DLYB_CFGR_LNG_Pos)          /*!< 0x00200000 */
13436 #define DLYB_CFGR_LNG_6                     (0x040UL << DLYB_CFGR_LNG_Pos)          /*!< 0x00400000 */
13437 #define DLYB_CFGR_LNG_7                     (0x080UL << DLYB_CFGR_LNG_Pos)          /*!< 0x00800000 */
13438 #define DLYB_CFGR_LNG_8                     (0x100UL << DLYB_CFGR_LNG_Pos)          /*!< 0x01000000 */
13439 #define DLYB_CFGR_LNG_9                     (0x200UL << DLYB_CFGR_LNG_Pos)          /*!< 0x02000000 */
13440 #define DLYB_CFGR_LNG_10                    (0x400UL << DLYB_CFGR_LNG_Pos)          /*!< 0x04000000 */
13441 #define DLYB_CFGR_LNG_11                    (0x800UL << DLYB_CFGR_LNG_Pos)          /*!< 0x08000000 */
13442 
13443 #define DLYB_CFGR_LNGF_Pos                  (31U)
13444 #define DLYB_CFGR_LNGF_Msk                  (0x1UL << DLYB_CFGR_LNGF_Pos)            /*!< 0x80000000 */
13445 #define DLYB_CFGR_LNGF                      DLYB_CFGR_LNGF_Msk                       /*!<Length valid flag */
13446 
13447 /******************************************************************************/
13448 /*                                                                            */
13449 /*                              On The Fly Decryption                         */
13450 /*                                                                            */
13451 /******************************************************************************/
13452 /******************  Bit definition for OTFDEC_CR register  ******************/
13453 #define OTFDEC_CR_ENC_Pos                   (0U)
13454 #define OTFDEC_CR_ENC_Msk                   (0x1UL << OTFDEC_CR_ENC_Pos)            /*!< 0x00000001 */
13455 #define OTFDEC_CR_ENC                       OTFDEC_CR_ENC_Msk                       /*!< Encryption mode bit */
13456 
13457 /******************  Bit definition for OTFDEC_PRIVCFGR register  ************/
13458 #define OTFDEC_PRIVCFGR_PRIV_Pos            (0U)
13459 #define OTFDEC_PRIVCFGR_PRIV_Msk            (0x1UL << OTFDEC_PRIVCFGR_PRIV_Pos)     /*!< 0x00000001 */
13460 #define OTFDEC_PRIVCFGR_PRIV                OTFDEC_PRIVCFGR_PRIV_Msk                /*!< Privileged access protection */
13461 
13462 /******************  Bit definition for OTFDEC_REG_CONFIGR register  *********/
13463 #define OTFDEC_REG_CONFIGR_REG_EN_Pos       (0U)
13464 #define OTFDEC_REG_CONFIGR_REG_EN_Msk       (0x1UL << OTFDEC_REG_CONFIGR_REG_EN_Pos) /*!< 0x00000001 */
13465 #define OTFDEC_REG_CONFIGR_REG_EN           OTFDEC_REG_CONFIGR_REG_EN_Msk           /*!< Region on-the-fly decryption enable */
13466 #define OTFDEC_REG_CONFIGR_CONFIGLOCK_Pos   (1U)
13467 #define OTFDEC_REG_CONFIGR_CONFIGLOCK_Msk   (0x1UL << OTFDEC_REG_CONFIGR_CONFIGLOCK_Pos) /*!< 0x00000002 */
13468 #define OTFDEC_REG_CONFIGR_CONFIGLOCK       OTFDEC_REG_CONFIGR_CONFIGLOCK_Msk       /*!< Region config lock */
13469 #define OTFDEC_REG_CONFIGR_KEYLOCK_Pos      (2U)
13470 #define OTFDEC_REG_CONFIGR_KEYLOCK_Msk      (0x1UL << OTFDEC_REG_CONFIGR_KEYLOCK_Pos) /*!< 0x00000004 */
13471 #define OTFDEC_REG_CONFIGR_KEYLOCK          OTFDEC_REG_CONFIGR_KEYLOCK_Msk          /*!< Region key lock */
13472 #define OTFDEC_REG_CONFIGR_MODE_Pos         (4U)
13473 #define OTFDEC_REG_CONFIGR_MODE_Msk         (0x3UL << OTFDEC_REG_CONFIGR_MODE_Pos)  /*!< 0x00000030 */
13474 #define OTFDEC_REG_CONFIGR_MODE             OTFDEC_REG_CONFIGR_MODE_Msk             /*!< Region operating mode */
13475 #define OTFDEC_REG_CONFIGR_MODE_0           (0x1UL << OTFDEC_REG_CONFIGR_MODE_Pos)  /*!< 0x00000010 */
13476 #define OTFDEC_REG_CONFIGR_MODE_1           (0x2UL << OTFDEC_REG_CONFIGR_MODE_Pos)  /*!< 0x00000020 */
13477 #define OTFDEC_REG_CONFIGR_KEYCRC_Pos       (8U)
13478 #define OTFDEC_REG_CONFIGR_KEYCRC_Msk       (0xFFUL << OTFDEC_REG_CONFIGR_KEYCRC_Pos) /*!< 0x0000FF00 */
13479 #define OTFDEC_REG_CONFIGR_KEYCRC           OTFDEC_REG_CONFIGR_KEYCRC_Msk           /*!< Region key 8-bit CRC */
13480 #define OTFDEC_REG_CONFIGR_VERSION_Pos      (16U)
13481 #define OTFDEC_REG_CONFIGR_VERSION_Msk      (0xFFFFUL << OTFDEC_REG_CONFIGR_VERSION_Pos) /*!< 0xFFFF0000 */
13482 #define OTFDEC_REG_CONFIGR_VERSION          OTFDEC_REG_CONFIGR_VERSION_Msk          /*!< Region firmware version */
13483 
13484 /******************  Bit definition for OTFDEC_REG_START_ADDR register  ******/
13485 #define OTFDEC_REG_START_ADDR_Pos           (0U)
13486 #define OTFDEC_REG_START_ADDR_Msk           (0xFFFFFFFFUL << OTFDEC_REG_START_ADDR_Pos) /*!< 0xFFFFFFFF */
13487 #define OTFDEC_REG_START_ADDR               OTFDEC_REG_START_ADDR_Msk               /*!< Region AHB start address */
13488 
13489 /******************  Bit definition for OTFDEC_REG_END_ADDR register  ********/
13490 #define OTFDEC_REG_END_ADDR_Pos             (0U)
13491 #define OTFDEC_REG_END_ADDR_Msk             (0xFFFFFFFFUL << OTFDEC_REG_END_ADDR_Pos) /*!< 0xFFFFFFFF */
13492 #define OTFDEC_REG_END_ADDR                 OTFDEC_REG_END_ADDR_Msk                 /*!< Region AHB end address */
13493 
13494 /******************  Bit definition for OTFDEC_REG_NONCER0 register  *********/
13495 #define OTFDEC_REG_NONCER0_Pos              (0U)
13496 #define OTFDEC_REG_NONCER0_Msk              (0xFFFFFFFFUL << OTFDEC_REG_NONCER0_Pos) /*!< 0xFFFFFFFF */
13497 #define OTFDEC_REG_NONCER0                  OTFDEC_REG_NONCER0_Msk                  /*!< Region Nonce Register (LSB nonce[31:0]) */
13498 
13499 /******************  Bit definition for OTFDEC_REG_NONCER1 register  *********/
13500 #define OTFDEC_REG_NONCER1_Pos              (0U)
13501 #define OTFDEC_REG_NONCER1_Msk              (0xFFFFFFFFUL << OTFDEC_REG_NONCER1_Pos) /*!< 0xFFFFFFFF */
13502 #define OTFDEC_REG_NONCER1                  OTFDEC_REG_NONCER1_Msk                  /*!< Region Nonce Register (MSB nonce[63:32]) */
13503 
13504 /******************  Bit definition for OTFDEC_REG_KEYR0 register  ***********/
13505 #define OTFDEC_REG_KEYR0_Pos                (0U)
13506 #define OTFDEC_REG_KEYR0_Msk                (0xFFFFFFFFUL << OTFDEC_REG_KEYR0_Pos)  /*!< 0xFFFFFFFF */
13507 #define OTFDEC_REG_KEYR0                    OTFDEC_REG_KEYR0_Msk                    /*!< Region Key Register (LSB key[31:0]) */
13508 
13509 /******************  Bit definition for OTFDEC_REG_KEYR1 register  ***********/
13510 #define OTFDEC_REG_KEYR1_Pos                (0U)
13511 #define OTFDEC_REG_KEYR1_Msk                (0xFFFFFFFFUL << OTFDEC_REG_KEYR1_Pos)  /*!< 0xFFFFFFFF */
13512 #define OTFDEC_REG_KEYR1                    OTFDEC_REG_KEYR1_Msk                    /*!< Region Key Register (key[63:32]) */
13513 
13514 /******************  Bit definition for OTFDEC_REG_KEYR2 register  ***********/
13515 #define OTFDEC_REG_KEYR2_Pos                (0U)
13516 #define OTFDEC_REG_KEYR2_Msk                (0xFFFFFFFFUL << OTFDEC_REG_KEYR2_Pos)  /*!< 0xFFFFFFFF */
13517 #define OTFDEC_REG_KEYR2                    OTFDEC_REG_KEYR2_Msk                    /*!< Region Key Register (key[95:64]) */
13518 
13519 /******************  Bit definition for OTFDEC_REG_KEYR3 register  ***********/
13520 #define OTFDEC_REG_KEYR3_Pos                (0U)
13521 #define OTFDEC_REG_KEYR3_Msk                (0xFFFFFFFFUL << OTFDEC_REG_KEYR3_Pos)  /*!< 0xFFFFFFFF */
13522 #define OTFDEC_REG_KEYR3                    OTFDEC_REG_KEYR3_Msk                    /*!< Region Key Register (key[127:96]) */
13523 
13524 /******************  Bit definition for OTFDEC_ISR register  *****************/
13525 #define OTFDEC_ISR_SEIF_Pos                 (0U)
13526 #define OTFDEC_ISR_SEIF_Msk                 (0x1UL << OTFDEC_ISR_SEIF_Pos)          /*!< 0x00000001 */
13527 #define OTFDEC_ISR_SEIF                     OTFDEC_ISR_SEIF_Msk                     /*!< Security Error Interrupt Flag status bit before enable (mask) */
13528 #define OTFDEC_ISR_XONEIF_Pos               (1U)
13529 #define OTFDEC_ISR_XONEIF_Msk               (0x1UL << OTFDEC_ISR_XONEIF_Pos)        /*!< 0x00000002 */
13530 #define OTFDEC_ISR_XONEIF                   OTFDEC_ISR_XONEIF_Msk                   /*!< Execute-only Error Interrupt Flag status bit before enable (mask) */
13531 #define OTFDEC_ISR_KEIF_Pos                 (2U)
13532 #define OTFDEC_ISR_KEIF_Msk                 (0x1UL << OTFDEC_ISR_KEIF_Pos)          /*!< 0x00000004 */
13533 #define OTFDEC_ISR_KEIF                     OTFDEC_ISR_KEIF_Msk                     /*!< Key Error Interrupt Flag status bit before enable (mask) */
13534 
13535 /******************  Bit definition  for OTFDEC_ICR register  *****************/
13536 #define OTFDEC_ICR_SEIF_Pos                 (0U)
13537 #define OTFDEC_ICR_SEIF_Msk                 (0x1UL << OTFDEC_ICR_SEIF_Pos)          /*!< 0x00000001 */
13538 #define OTFDEC_ICR_SEIF                     OTFDEC_ICR_SEIF_Msk                     /*!< Security Error Interrupt Flag clear bit */
13539 #define OTFDEC_ICR_XONEIF_Pos               (1U)
13540 #define OTFDEC_ICR_XONEIF_Msk               (0x1UL << OTFDEC_ICR_XONEIF_Pos)        /*!< 0x00000002 */
13541 #define OTFDEC_ICR_XONEIF                   OTFDEC_ICR_XONEIF_Msk                   /*!< Execute-only Error Interrupt Flag clear bit */
13542 #define OTFDEC_ICR_KEIF_Pos                 (2U)
13543 #define OTFDEC_ICR_KEIF_Msk                 (0x1UL << OTFDEC_ICR_KEIF_Pos)          /*!< 0x00000004 */
13544 #define OTFDEC_ICR_KEIF                     OTFDEC_ICR_KEIF_Msk                     /*!< Key Error Interrupt Flag clear bit */
13545 
13546 /******************  Bit definition for OTFDEC_IER register  *****************/
13547 #define OTFDEC_IER_SEIE_Pos                 (0U)
13548 #define OTFDEC_IER_SEIE_Msk                 (0x1UL << OTFDEC_IER_SEIE_Pos)          /*!< 0x00000001 */
13549 #define OTFDEC_IER_SEIE                     OTFDEC_IER_SEIE_Msk                     /*!< Security Error Interrupt Enable bit */
13550 #define OTFDEC_IER_XONEIE_Pos               (1U)
13551 #define OTFDEC_IER_XONEIE_Msk               (0x1UL << OTFDEC_IER_XONEIE_Pos)        /*!< 0x00000002 */
13552 #define OTFDEC_IER_XONEIE                   OTFDEC_IER_XONEIE_Msk                   /*!< Execute-only Error Interrupt Enable bit */
13553 #define OTFDEC_IER_KEIE_Pos                 (2U)
13554 #define OTFDEC_IER_KEIE_Msk                 (0x1UL << OTFDEC_IER_KEIE_Pos)          /*!< 0x00000004 */
13555 #define OTFDEC_IER_KEIE                     OTFDEC_IER_KEIE_Msk
13556 
13557 /******************************************************************************/
13558 /*                                                                            */
13559 /*                             Power Control                                  */
13560 /*                                                                            */
13561 /******************************************************************************/
13562 /********************  Bit definition for PWR_CR1 register  *******************/
13563 #define PWR_CR1_LPMS_Pos                    (0U)
13564 #define PWR_CR1_LPMS_Msk                    (0x7UL << PWR_CR1_LPMS_Pos)             /*!< 0x00000007 */
13565 #define PWR_CR1_LPMS                        PWR_CR1_LPMS_Msk                        /*!< LPMS[2:0] Low-power mode selection field     */
13566 #define PWR_CR1_LPMS_0                      (0x1UL << PWR_CR1_LPMS_Pos)             /*!< 0x00000001 */
13567 #define PWR_CR1_LPMS_1                      (0x2UL << PWR_CR1_LPMS_Pos)             /*!< 0x00000002 */
13568 #define PWR_CR1_LPMS_2                      (0x4UL << PWR_CR1_LPMS_Pos)             /*!< 0x00000004 */
13569 #define PWR_CR1_RRSB1_Pos                   (5U)
13570 #define PWR_CR1_RRSB1_Msk                   (0x1UL << PWR_CR1_RRSB1_Pos)            /*!< 0x00000020 */
13571 #define PWR_CR1_RRSB1                       PWR_CR1_RRSB1_Msk                       /*!< SRAM2 page 2 Retention in Standby            */
13572 #define PWR_CR1_RRSB2_Pos                   (6U)
13573 #define PWR_CR1_RRSB2_Msk                   (0x1UL << PWR_CR1_RRSB2_Pos)            /*!< 0x00000040 */
13574 #define PWR_CR1_RRSB2                       PWR_CR1_RRSB2_Msk                       /*!< SRAM2 page 1 Retention in Standby            */
13575 #define PWR_CR1_ULPMEN_Pos                  (7U)
13576 #define PWR_CR1_ULPMEN_Msk                  (0x1UL << PWR_CR1_ULPMEN_Pos)           /*!< 0x00000080 */
13577 #define PWR_CR1_ULPMEN                      PWR_CR1_ULPMEN_Msk                      /*!< BOR ultra-low power mode in Standby/Shutdown */
13578 #define PWR_CR1_SRAM1PD_Pos                 (8U)
13579 #define PWR_CR1_SRAM1PD_Msk                 (0x1UL << PWR_CR1_SRAM1PD_Pos)          /*!< 0x00000100 */
13580 #define PWR_CR1_SRAM1PD                     PWR_CR1_SRAM1PD_Msk                     /*!< SRAM1 power-down in Run mode                 */
13581 #define PWR_CR1_SRAM2PD_Pos                 (9U)
13582 #define PWR_CR1_SRAM2PD_Msk                 (0x1UL << PWR_CR1_SRAM2PD_Pos)          /*!< 0x00000200 */
13583 #define PWR_CR1_SRAM2PD                     PWR_CR1_SRAM2PD_Msk                     /*!< SRAM2 power-down in Run mode                 */
13584 #define PWR_CR1_SRAM3PD_Pos                 (10U)
13585 #define PWR_CR1_SRAM3PD_Msk                 (0x1UL << PWR_CR1_SRAM3PD_Pos)          /*!< 0x00000400 */
13586 #define PWR_CR1_SRAM3PD                     PWR_CR1_SRAM3PD_Msk                     /*!< SRAM3 power-down in Run mode                 */
13587 #define PWR_CR1_SRAM4PD_Pos                 (11U)
13588 #define PWR_CR1_SRAM4PD_Msk                 (0x1UL << PWR_CR1_SRAM4PD_Pos)          /*!< 0x00000800 */
13589 #define PWR_CR1_SRAM4PD                     PWR_CR1_SRAM4PD_Msk                     /*!< SRAM4 power-down in Run mode                 */
13590 
13591 /********************  Bit definition for PWR_CR2 register  *******************/
13592 #define PWR_CR2_SRAM1PDS1_Pos               (0U)
13593 #define PWR_CR2_SRAM1PDS1_Msk               (0x1UL << PWR_CR2_SRAM1PDS1_Pos)        /*!< 0x00000001 */
13594 #define PWR_CR2_SRAM1PDS1                   PWR_CR2_SRAM1PDS1_Msk                   /*!< SRAM1 page 1 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13595 #define PWR_CR2_SRAM1PDS2_Pos               (1U)
13596 #define PWR_CR2_SRAM1PDS2_Msk               (0x1UL << PWR_CR2_SRAM1PDS2_Pos)        /*!< 0x00000002 */
13597 #define PWR_CR2_SRAM1PDS2                   PWR_CR2_SRAM1PDS2_Msk                   /*!< SRAM1 page 2 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13598 #define PWR_CR2_SRAM1PDS3_Pos               (2U)
13599 #define PWR_CR2_SRAM1PDS3_Msk               (0x1UL << PWR_CR2_SRAM1PDS3_Pos)        /*!< 0x00000004 */
13600 #define PWR_CR2_SRAM1PDS3                   PWR_CR2_SRAM1PDS3_Msk                   /*!< SRAM1 page 3 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13601 #define PWR_CR2_SRAM2PDS1_Pos               (4U)
13602 #define PWR_CR2_SRAM2PDS1_Msk               (0x1UL << PWR_CR2_SRAM2PDS1_Pos)        /*!< 0x00000010 */
13603 #define PWR_CR2_SRAM2PDS1                   PWR_CR2_SRAM2PDS1_Msk                   /*!< SRAM2 page 1 (8 KB) power-down in Stop modes (Stop 0, 1, 2, 3)            */
13604 #define PWR_CR2_SRAM2PDS2_Pos               (5U)
13605 #define PWR_CR2_SRAM2PDS2_Msk               (0x1UL << PWR_CR2_SRAM2PDS2_Pos)        /*!< 0x00000020 */
13606 #define PWR_CR2_SRAM2PDS2                   PWR_CR2_SRAM2PDS2_Msk                   /*!< SRAM2 page 2 (56 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13607 #define PWR_CR2_SRAM4PDS_Pos                (6U)
13608 #define PWR_CR2_SRAM4PDS_Msk                (0x1UL << PWR_CR2_SRAM4PDS_Pos)         /*!< 0x00000040 */
13609 #define PWR_CR2_SRAM4PDS                    PWR_CR2_SRAM4PDS_Msk                    /*!< SRAM4 power-down in Stop modes (Stop 0, 1, 2, 3)                          */
13610 #define PWR_CR2_ICRAMPDS_Pos                (8U)
13611 #define PWR_CR2_ICRAMPDS_Msk                (0x1UL << PWR_CR2_ICRAMPDS_Pos)         /*!< 0x00000100 */
13612 #define PWR_CR2_ICRAMPDS                    PWR_CR2_ICRAMPDS_Msk                    /*!< ICACHE SRAM power-down in Stop modes (Stop 0, 1, 2, 3)                    */
13613 #define PWR_CR2_DC1RAMPDS_Pos               (9U)
13614 #define PWR_CR2_DC1RAMPDS_Msk               (0x1UL << PWR_CR2_DC1RAMPDS_Pos)        /*!< 0x00000200 */
13615 #define PWR_CR2_DC1RAMPDS                   PWR_CR2_DC1RAMPDS_Msk                   /*!< DCACHE1 SRAM power-down in Stop modes (Stop 0, 1, 2, 3)                   */
13616 #define PWR_CR2_DMA2DRAMPDS_Pos             (10U)
13617 #define PWR_CR2_DMA2DRAMPDS_Msk             (0x1UL << PWR_CR2_DMA2DRAMPDS_Pos)      /*!< 0x00000400 */
13618 #define PWR_CR2_DMA2DRAMPDS                 PWR_CR2_DMA2DRAMPDS_Msk                 /*!< DMA2D SRAM power-down in Stop modes (Stop 0, 1, 2, 3)                     */
13619 #define PWR_CR2_PRAMPDS_Pos                 (11U)
13620 #define PWR_CR2_PRAMPDS_Msk                 (0x1UL << PWR_CR2_PRAMPDS_Pos)          /*!< 0x00000800 */
13621 #define PWR_CR2_PRAMPDS                     PWR_CR2_PRAMPDS_Msk                     /*!< FDCAN and USB peripherals SRAM power-down in Stop modes (Stop 0, 1, 2, 3) */
13622 #define PWR_CR2_PKARAMPDS_Pos               (12U)
13623 #define PWR_CR2_PKARAMPDS_Msk               (0x1UL << PWR_CR2_PKARAMPDS_Pos)        /*!< 0x00001000 */
13624 #define PWR_CR2_PKARAMPDS                   PWR_CR2_PKARAMPDS_Msk                   /*!< PKA32 SRAM power-down in Stop modes (Stop 0, 1, 2, 3)                     */
13625 #define PWR_CR2_SRAM4FWU_Pos                (13U)
13626 #define PWR_CR2_SRAM4FWU_Msk                (0x1UL << PWR_CR2_SRAM4FWU_Pos)         /*!< 0x00002000 */
13627 #define PWR_CR2_SRAM4FWU                    PWR_CR2_SRAM4FWU_Msk                    /*!< SRAM4 fast wakeup from Stop modes (Stop 0, 1, 2)                          */
13628 #define PWR_CR2_FLASHFWU_Pos                (14U)
13629 #define PWR_CR2_FLASHFWU_Msk                (0x1UL << PWR_CR2_FLASHFWU_Pos)         /*!< 0x00004000 */
13630 #define PWR_CR2_FLASHFWU                    PWR_CR2_FLASHFWU_Msk                    /*!< Flash memory fast wakeup from Stop modes (Stop 0, 1)                      */
13631 #define PWR_CR2_SRAM3PDS1_Pos               (16U)
13632 #define PWR_CR2_SRAM3PDS1_Msk               (0x1UL << PWR_CR2_SRAM3PDS1_Pos)        /*!< 0x00010000 */
13633 #define PWR_CR2_SRAM3PDS1                   PWR_CR2_SRAM3PDS1_Msk                   /*!< SRAM3 page 1 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13634 #define PWR_CR2_SRAM3PDS2_Pos               (17U)
13635 #define PWR_CR2_SRAM3PDS2_Msk               (0x1UL << PWR_CR2_SRAM3PDS2_Pos)        /*!< 0x00020000 */
13636 #define PWR_CR2_SRAM3PDS2                   PWR_CR2_SRAM3PDS2_Msk                   /*!< SRAM3 page 2 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13637 #define PWR_CR2_SRAM3PDS3_Pos               (18U)
13638 #define PWR_CR2_SRAM3PDS3_Msk               (0x1UL << PWR_CR2_SRAM3PDS3_Pos)        /*!< 0x00040000 */
13639 #define PWR_CR2_SRAM3PDS3                   PWR_CR2_SRAM3PDS3_Msk                   /*!< SRAM3 page 3 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13640 #define PWR_CR2_SRAM3PDS4_Pos               (19U)
13641 #define PWR_CR2_SRAM3PDS4_Msk               (0x1UL << PWR_CR2_SRAM3PDS4_Pos)        /*!< 0x00080000 */
13642 #define PWR_CR2_SRAM3PDS4                   PWR_CR2_SRAM3PDS4_Msk                   /*!< SRAM3 page 4 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13643 #define PWR_CR2_SRAM3PDS5_Pos               (20U)
13644 #define PWR_CR2_SRAM3PDS5_Msk               (0x1UL << PWR_CR2_SRAM3PDS5_Pos)        /*!< 0x00100000 */
13645 #define PWR_CR2_SRAM3PDS5                   PWR_CR2_SRAM3PDS5_Msk                   /*!< SRAM3 page 5 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13646 #define PWR_CR2_SRAM3PDS6_Pos               (21U)
13647 #define PWR_CR2_SRAM3PDS6_Msk               (0x1UL << PWR_CR2_SRAM3PDS6_Pos)        /*!< 0x00200000 */
13648 #define PWR_CR2_SRAM3PDS6                   PWR_CR2_SRAM3PDS6_Msk                   /*!< SRAM3 page 6 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13649 #define PWR_CR2_SRAM3PDS7_Pos               (22U)
13650 #define PWR_CR2_SRAM3PDS7_Msk               (0x1UL << PWR_CR2_SRAM3PDS7_Pos)        /*!< 0x00400000 */
13651 #define PWR_CR2_SRAM3PDS7                   PWR_CR2_SRAM3PDS7_Msk                   /*!< SRAM3 page 7 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13652 #define PWR_CR2_SRAM3PDS8_Pos               (23U)
13653 #define PWR_CR2_SRAM3PDS8_Msk               (0x1UL << PWR_CR2_SRAM3PDS8_Pos)        /*!< 0x00800000 */
13654 #define PWR_CR2_SRAM3PDS8                   PWR_CR2_SRAM3PDS8_Msk                   /*!< SRAM3 page 8 (64 KB) power-down in Stop modes (Stop 0, 1, 2, 3)           */
13655 #define PWR_CR2_SRDRUN_Pos                  (31U)
13656 #define PWR_CR2_SRDRUN_Msk                  (0x1UL << PWR_CR2_SRDRUN_Pos)           /*!< 0x80000000 */
13657 #define PWR_CR2_SRDRUN                      PWR_CR2_SRDRUN_Msk                      /*!< SmartRun domain in Run mode */
13658 
13659 /********************  Bit definition for PWR_CR3 register  *******************/
13660 #define PWR_CR3_REGSEL_Pos                  (1U)
13661 #define PWR_CR3_REGSEL_Msk                  (0x1UL << PWR_CR3_REGSEL_Pos)           /*!< 0x00000002 */
13662 #define PWR_CR3_REGSEL                      PWR_CR3_REGSEL_Msk                      /*!< Regulator selection */
13663 #define PWR_CR3_FSTEN_Pos                   (2U)
13664 #define PWR_CR3_FSTEN_Msk                   (0x1UL << PWR_CR3_FSTEN_Pos)            /*!< 0x00000004 */
13665 #define PWR_CR3_FSTEN                       PWR_CR3_FSTEN_Msk                       /*!< Fast soft start     */
13666 
13667 /*******************  Bit definition for PWR_VOSR register  *******************/
13668 #define PWR_VOSR_BOOSTRDY_Pos               (14U)
13669 #define PWR_VOSR_BOOSTRDY_Msk               (0x1UL << PWR_VOSR_BOOSTRDY_Pos)        /*!< 0x00004000 */
13670 #define PWR_VOSR_BOOSTRDY                   PWR_VOSR_BOOSTRDY_Msk                   /*!< EPOD booster ready                                   */
13671 #define PWR_VOSR_VOSRDY_Pos                 (15U)
13672 #define PWR_VOSR_VOSRDY_Msk                 (0x1UL << PWR_VOSR_VOSRDY_Pos)          /*!< 0x00008000 */
13673 #define PWR_VOSR_VOSRDY                     PWR_VOSR_VOSRDY_Msk                     /*!< Ready bit for VCORE voltage scaling output selection */
13674 #define PWR_VOSR_VOS_Pos                    (16U)
13675 #define PWR_VOSR_VOS_Msk                    (0x3UL << PWR_VOSR_VOS_Pos)             /*!< 0x00030000 */
13676 #define PWR_VOSR_VOS                        PWR_VOSR_VOS_Msk                        /*!< VOS[1:0] Voltage scaling range selection field       */
13677 #define PWR_VOSR_VOS_0                      (0x1UL << PWR_VOSR_VOS_Pos)             /*!< 0x00010000 */
13678 #define PWR_VOSR_VOS_1                      (0x2UL << PWR_VOSR_VOS_Pos)             /*!< 0x00020000 */
13679 #define PWR_VOSR_BOOSTEN_Pos                (18U)
13680 #define PWR_VOSR_BOOSTEN_Msk                (0x1UL << PWR_VOSR_BOOSTEN_Pos)         /*!< 0x00040000 */
13681 #define PWR_VOSR_BOOSTEN                    PWR_VOSR_BOOSTEN_Msk                    /*!< EPOD booster enable                                  */
13682 
13683 /*******************  Bit definition for PWR_SVMCR register  ******************/
13684 #define PWR_SVMCR_PVDE_Pos                  (4U)
13685 #define PWR_SVMCR_PVDE_Msk                  (0x1UL << PWR_SVMCR_PVDE_Pos)           /*!< 0x00000010 */
13686 #define PWR_SVMCR_PVDE                      PWR_SVMCR_PVDE_Msk                      /*!< Programmable voltage detector enable                            */
13687 #define PWR_SVMCR_PVDLS_Pos                 (5U)
13688 #define PWR_SVMCR_PVDLS_Msk                 (0x7UL << PWR_SVMCR_PVDLS_Pos)          /*!< 0x000000E0 */
13689 #define PWR_SVMCR_PVDLS                     PWR_SVMCR_PVDLS_Msk                     /*!< PVDLS[2:0] Programmable voltage detector level selection field  */
13690 #define PWR_SVMCR_PVDLS_0                   (0x1UL << PWR_SVMCR_PVDLS_Pos)          /*!< 0x00000020 */
13691 #define PWR_SVMCR_PVDLS_1                   (0x2UL << PWR_SVMCR_PVDLS_Pos)          /*!< 0x00000040 */
13692 #define PWR_SVMCR_PVDLS_2                   (0x4UL << PWR_SVMCR_PVDLS_Pos)          /*!< 0x00000080 */
13693 #define PWR_SVMCR_UVMEN_Pos                 (24U)
13694 #define PWR_SVMCR_UVMEN_Msk                 (0x1UL << PWR_SVMCR_UVMEN_Pos)          /*!< 0x01000000 */
13695 #define PWR_SVMCR_UVMEN                     PWR_SVMCR_UVMEN_Msk                     /*!< VDDUSB Independent USB supply voltage monitor enable            */
13696 #define PWR_SVMCR_IO2VMEN_Pos               (25U)
13697 #define PWR_SVMCR_IO2VMEN_Msk               (0x1UL << PWR_SVMCR_IO2VMEN_Pos)        /*!< 0x02000000 */
13698 #define PWR_SVMCR_IO2VMEN                   PWR_SVMCR_IO2VMEN_Msk                   /*!< VDDIO2 Independent I/Os voltage monitor enable                  */
13699 #define PWR_SVMCR_AVM1EN_Pos                (26U)
13700 #define PWR_SVMCR_AVM1EN_Msk                (0x1UL << PWR_SVMCR_AVM1EN_Pos)         /*!< 0x04000000 */
13701 #define PWR_SVMCR_AVM1EN                    PWR_SVMCR_AVM1EN_Msk                    /*!< VDDA Independent analog supply voltage monitor 1 enable         */
13702 #define PWR_SVMCR_AVM2EN_Pos                (27U)
13703 #define PWR_SVMCR_AVM2EN_Msk                (0x1UL << PWR_SVMCR_AVM2EN_Pos)         /*!< 0x08000000 */
13704 #define PWR_SVMCR_AVM2EN                    PWR_SVMCR_AVM2EN_Msk                    /*!< VDDA Independent analog supply voltage monitor 2 enable         */
13705 #define PWR_SVMCR_USV_Pos                   (28U)
13706 #define PWR_SVMCR_USV_Msk                   (0x1UL << PWR_SVMCR_USV_Pos)            /*!< 0x10000000 */
13707 #define PWR_SVMCR_USV                       PWR_SVMCR_USV_Msk                       /*!< VDDUSB Independent USB supply valid                             */
13708 #define PWR_SVMCR_IO2SV_Pos                 (29U)
13709 #define PWR_SVMCR_IO2SV_Msk                 (0x1UL << PWR_SVMCR_IO2SV_Pos)          /*!< 0x20000000 */
13710 #define PWR_SVMCR_IO2SV                     PWR_SVMCR_IO2SV_Msk                     /*!< VDDIO2 Independent I/Os supply valid                            */
13711 #define PWR_SVMCR_ASV_Pos                   (30U)
13712 #define PWR_SVMCR_ASV_Msk                   (0x1UL << PWR_SVMCR_ASV_Pos)            /*!< 0x40000000 */
13713 #define PWR_SVMCR_ASV                       PWR_SVMCR_ASV_Msk                       /*!< VDDA Independent analog supply valid                            */
13714 
13715 /*******************  Bit definition for PWR_WUCR1 register  ******************/
13716 #define PWR_WUCR1_WUPEN1_Pos                (0U)
13717 #define PWR_WUCR1_WUPEN1_Msk                (0x1UL << PWR_WUCR1_WUPEN1_Pos)         /*!< 0x00000001 */
13718 #define PWR_WUCR1_WUPEN1                    PWR_WUCR1_WUPEN1_Msk                    /*!< Wakeup pin WKUP1 enable */
13719 #define PWR_WUCR1_WUPEN2_Pos                (1U)
13720 #define PWR_WUCR1_WUPEN2_Msk                (0x1UL << PWR_WUCR1_WUPEN2_Pos)         /*!< 0x00000002 */
13721 #define PWR_WUCR1_WUPEN2                    PWR_WUCR1_WUPEN2_Msk                    /*!< Wakeup pin WKUP2 enable */
13722 #define PWR_WUCR1_WUPEN3_Pos                (2U)
13723 #define PWR_WUCR1_WUPEN3_Msk                (0x1UL << PWR_WUCR1_WUPEN3_Pos)         /*!< 0x00000004 */
13724 #define PWR_WUCR1_WUPEN3                    PWR_WUCR1_WUPEN3_Msk                    /*!< Wakeup pin WKUP3 enable */
13725 #define PWR_WUCR1_WUPEN4_Pos                (3U)
13726 #define PWR_WUCR1_WUPEN4_Msk                (0x1UL << PWR_WUCR1_WUPEN4_Pos)         /*!< 0x00000008 */
13727 #define PWR_WUCR1_WUPEN4                    PWR_WUCR1_WUPEN4_Msk                    /*!< Wakeup pin WKUP4 enable */
13728 #define PWR_WUCR1_WUPEN5_Pos                (4U)
13729 #define PWR_WUCR1_WUPEN5_Msk                (0x1UL << PWR_WUCR1_WUPEN5_Pos)         /*!< 0x00000010 */
13730 #define PWR_WUCR1_WUPEN5                    PWR_WUCR1_WUPEN5_Msk                    /*!< Wakeup pin WKUP5 enable */
13731 #define PWR_WUCR1_WUPEN6_Pos                (5U)
13732 #define PWR_WUCR1_WUPEN6_Msk                (0x1UL << PWR_WUCR1_WUPEN6_Pos)         /*!< 0x00000020 */
13733 #define PWR_WUCR1_WUPEN6                    PWR_WUCR1_WUPEN6_Msk                    /*!< Wakeup pin WKUP6 enable */
13734 #define PWR_WUCR1_WUPEN7_Pos                (6U)
13735 #define PWR_WUCR1_WUPEN7_Msk                (0x1UL << PWR_WUCR1_WUPEN7_Pos)         /*!< 0x00000040 */
13736 #define PWR_WUCR1_WUPEN7                    PWR_WUCR1_WUPEN7_Msk                    /*!< Wakeup pin WKUP7 enable */
13737 #define PWR_WUCR1_WUPEN8_Pos                (7U)
13738 #define PWR_WUCR1_WUPEN8_Msk                (0x1UL << PWR_WUCR1_WUPEN8_Pos)         /*!< 0x00000080 */
13739 #define PWR_WUCR1_WUPEN8                    PWR_WUCR1_WUPEN8_Msk                    /*!< Wakeup pin WKUP8 enable */
13740 
13741 /*******************  Bit definition for PWR_WUCR2 register  ******************/
13742 #define PWR_WUCR2_WUPP1_Pos                 (0U)
13743 #define PWR_WUCR2_WUPP1_Msk                 (0x1UL << PWR_WUCR2_WUPP1_Pos)          /*!< 0x00000001 */
13744 #define PWR_WUCR2_WUPP1                     PWR_WUCR2_WUPP1_Msk                     /*!< Wakeup pin WKUP1 polarity */
13745 #define PWR_WUCR2_WUPP2_Pos                 (1U)
13746 #define PWR_WUCR2_WUPP2_Msk                 (0x1UL << PWR_WUCR2_WUPP2_Pos)          /*!< 0x00000002 */
13747 #define PWR_WUCR2_WUPP2                     PWR_WUCR2_WUPP2_Msk                     /*!< Wakeup pin WKUP2 polarity */
13748 #define PWR_WUCR2_WUPP3_Pos                 (2U)
13749 #define PWR_WUCR2_WUPP3_Msk                 (0x1UL << PWR_WUCR2_WUPP3_Pos)          /*!< 0x00000004 */
13750 #define PWR_WUCR2_WUPP3                     PWR_WUCR2_WUPP3_Msk                     /*!< Wakeup pin WKUP3 polarity */
13751 #define PWR_WUCR2_WUPP4_Pos                 (3U)
13752 #define PWR_WUCR2_WUPP4_Msk                 (0x1UL << PWR_WUCR2_WUPP4_Pos)          /*!< 0x00000008 */
13753 #define PWR_WUCR2_WUPP4                     PWR_WUCR2_WUPP4_Msk                     /*!< Wakeup pin WKUP4 polarity */
13754 #define PWR_WUCR2_WUPP5_Pos                 (4U)
13755 #define PWR_WUCR2_WUPP5_Msk                 (0x1UL << PWR_WUCR2_WUPP5_Pos)          /*!< 0x00000010 */
13756 #define PWR_WUCR2_WUPP5                     PWR_WUCR2_WUPP5_Msk                     /*!< Wakeup pin WKUP5 polarity */
13757 #define PWR_WUCR2_WUPP6_Pos                 (5U)
13758 #define PWR_WUCR2_WUPP6_Msk                 (0x1UL << PWR_WUCR2_WUPP6_Pos)          /*!< 0x00000020 */
13759 #define PWR_WUCR2_WUPP6                     PWR_WUCR2_WUPP6_Msk                     /*!< Wakeup pin WKUP6 polarity */
13760 #define PWR_WUCR2_WUPP7_Pos                 (6U)
13761 #define PWR_WUCR2_WUPP7_Msk                 (0x1UL << PWR_WUCR2_WUPP7_Pos)          /*!< 0x00000040 */
13762 #define PWR_WUCR2_WUPP7                     PWR_WUCR2_WUPP7_Msk                     /*!< Wakeup pin WKUP7 polarity */
13763 #define PWR_WUCR2_WUPP8_Pos                 (7U)
13764 #define PWR_WUCR2_WUPP8_Msk                 (0x1UL << PWR_WUCR2_WUPP8_Pos)          /*!< 0x00000080 */
13765 #define PWR_WUCR2_WUPP8                     PWR_WUCR2_WUPP8_Msk                     /*!< Wakeup pin WKUP8 polarity */
13766 
13767 /*******************  Bit definition for PWR_WUCR3 register  ******************/
13768 #define PWR_WUCR3_WUSEL1_Pos                (0U)
13769 #define PWR_WUCR3_WUSEL1_Msk                (0x3UL << PWR_WUCR3_WUSEL1_Pos)         /*!< 0x00000003 */
13770 #define PWR_WUCR3_WUSEL1                    PWR_WUCR3_WUSEL1_Msk                    /*!< Wakeup pin WKUP1 selection field */
13771 #define PWR_WUCR3_WUSEL1_0                  (0x1UL << PWR_WUCR3_WUSEL1_Pos)         /*!< 0x00000001 */
13772 #define PWR_WUCR3_WUSEL1_1                  (0x2UL << PWR_WUCR3_WUSEL1_Pos)         /*!< 0x00000002 */
13773 #define PWR_WUCR3_WUSEL2_Pos                (2U)
13774 #define PWR_WUCR3_WUSEL2_Msk                (0x3UL << PWR_WUCR3_WUSEL2_Pos)         /*!< 0x0000000C */
13775 #define PWR_WUCR3_WUSEL2                    PWR_WUCR3_WUSEL2_Msk                    /*!< Wakeup pin WKUP2 selection field */
13776 #define PWR_WUCR3_WUSEL2_0                  (0x1UL << PWR_WUCR3_WUSEL2_Pos)         /*!< 0x00000004 */
13777 #define PWR_WUCR3_WUSEL2_1                  (0x2UL << PWR_WUCR3_WUSEL2_Pos)         /*!< 0x00000008 */
13778 #define PWR_WUCR3_WUSEL3_Pos                (4U)
13779 #define PWR_WUCR3_WUSEL3_Msk                (0x3UL << PWR_WUCR3_WUSEL3_Pos)         /*!< 0x00000030 */
13780 #define PWR_WUCR3_WUSEL3                    PWR_WUCR3_WUSEL3_Msk                    /*!< Wakeup pin WKUP3 selection field */
13781 #define PWR_WUCR3_WUSEL3_0                  (0x1UL << PWR_WUCR3_WUSEL3_Pos)         /*!< 0x00000010 */
13782 #define PWR_WUCR3_WUSEL3_1                  (0x2UL << PWR_WUCR3_WUSEL3_Pos)         /*!< 0x00000020 */
13783 #define PWR_WUCR3_WUSEL4_Pos                (6U)
13784 #define PWR_WUCR3_WUSEL4_Msk                (0x3UL << PWR_WUCR3_WUSEL4_Pos)         /*!< 0x000000C0 */
13785 #define PWR_WUCR3_WUSEL4                    PWR_WUCR3_WUSEL4_Msk                    /*!< Wakeup pin WKUP4 selection field */
13786 #define PWR_WUCR3_WUSEL4_0                  (0x1UL << PWR_WUCR3_WUSEL4_Pos)         /*!< 0x00000040 */
13787 #define PWR_WUCR3_WUSEL4_1                  (0x2UL << PWR_WUCR3_WUSEL4_Pos)         /*!< 0x00000080 */
13788 #define PWR_WUCR3_WUSEL5_Pos                (8U)
13789 #define PWR_WUCR3_WUSEL5_Msk                (0x3UL << PWR_WUCR3_WUSEL5_Pos)         /*!< 0x00000300 */
13790 #define PWR_WUCR3_WUSEL5                    PWR_WUCR3_WUSEL5_Msk                    /*!< Wakeup pin WKUP5 selection field */
13791 #define PWR_WUCR3_WUSEL5_0                  (0x1UL << PWR_WUCR3_WUSEL5_Pos)         /*!< 0x00000100 */
13792 #define PWR_WUCR3_WUSEL5_1                  (0x2UL << PWR_WUCR3_WUSEL5_Pos)         /*!< 0x00000200 */
13793 #define PWR_WUCR3_WUSEL6_Pos                (10U)
13794 #define PWR_WUCR3_WUSEL6_Msk                (0x3UL << PWR_WUCR3_WUSEL6_Pos)         /*!< 0x00000C00 */
13795 #define PWR_WUCR3_WUSEL6                    PWR_WUCR3_WUSEL6_Msk                    /*!< Wakeup pin WKUP6 selection field */
13796 #define PWR_WUCR3_WUSEL6_0                  (0x1UL << PWR_WUCR3_WUSEL6_Pos)         /*!< 0x00000400 */
13797 #define PWR_WUCR3_WUSEL6_1                  (0x2UL << PWR_WUCR3_WUSEL6_Pos)         /*!< 0x00000800 */
13798 #define PWR_WUCR3_WUSEL7_Pos                (12U)
13799 #define PWR_WUCR3_WUSEL7_Msk                (0x3UL << PWR_WUCR3_WUSEL7_Pos)         /*!< 0x00003000 */
13800 #define PWR_WUCR3_WUSEL7                    PWR_WUCR3_WUSEL7_Msk                    /*!< Wakeup pin WKUP7 selection field */
13801 #define PWR_WUCR3_WUSEL7_0                  (0x1UL << PWR_WUCR3_WUSEL7_Pos)         /*!< 0x00001000 */
13802 #define PWR_WUCR3_WUSEL7_1                  (0x2UL << PWR_WUCR3_WUSEL7_Pos)         /*!< 0x00002000 */
13803 #define PWR_WUCR3_WUSEL8_Pos                (14U)
13804 #define PWR_WUCR3_WUSEL8_Msk                (0x3UL << PWR_WUCR3_WUSEL8_Pos)         /*!< 0x0000C000 */
13805 #define PWR_WUCR3_WUSEL8                    PWR_WUCR3_WUSEL8_Msk                    /*!< Wakeup pin WKUP8 selection field */
13806 #define PWR_WUCR3_WUSEL8_0                  (0x1UL << PWR_WUCR3_WUSEL8_Pos)         /*!< 0x00004000 */
13807 #define PWR_WUCR3_WUSEL8_1                  (0x2UL << PWR_WUCR3_WUSEL8_Pos)         /*!< 0x00008000 */
13808 
13809 /*******************  Bit definition for PWR_BDCR1 register  ******************/
13810 #define PWR_BDCR1_BREN_Pos                  (0U)
13811 #define PWR_BDCR1_BREN_Msk                  (0x1UL << PWR_BDCR1_BREN_Pos)           /*!< 0x00000001 */
13812 #define PWR_BDCR1_BREN                      PWR_BDCR1_BREN_Msk                      /*!< Backup regulator enable                                 */
13813 #define PWR_BDCR1_MONEN_Pos                 (4U)
13814 #define PWR_BDCR1_MONEN_Msk                 (0x1UL << PWR_BDCR1_MONEN_Pos)          /*!< 0x00000010 */
13815 #define PWR_BDCR1_MONEN                     PWR_BDCR1_MONEN_Msk                     /*!< Backup Domain voltage and temperature monitoring enable */
13816 
13817 /*******************  Bit definition for PWR_BDCR2 register  ******************/
13818 #define PWR_BDCR2_VBE_Pos                   (0U)
13819 #define PWR_BDCR2_VBE_Msk                   (0x1UL << PWR_BDCR2_VBE_Pos)            /*!< 0x00000001 */
13820 #define PWR_BDCR2_VBE                       PWR_BDCR2_VBE_Msk                       /*!< VBAT charging enable             */
13821 #define PWR_BDCR2_VBRS_Pos                  (1U)
13822 #define PWR_BDCR2_VBRS_Msk                  (0x1UL << PWR_BDCR2_VBRS_Pos)           /*!< 0x00000002 */
13823 #define PWR_BDCR2_VBRS                      PWR_BDCR2_VBRS_Msk                      /*!< VBAT charging resistor selection */
13824 
13825 /********************  Bit definition for PWR_DBPR register  ******************/
13826 #define PWR_DBPR_DBP_Pos                    (0U)
13827 #define PWR_DBPR_DBP_Msk                    (0x1UL << PWR_DBPR_DBP_Pos)             /*!< 0x00000001 */
13828 #define PWR_DBPR_DBP                        PWR_DBPR_DBP_Msk                        /*!< Disable backup domain write protection */
13829 
13830 /********************  Bit definition for PWR_UCPDR register  *****************/
13831 #define PWR_UCPDR_UCPD_DBDIS_Pos            (0U)
13832 #define PWR_UCPDR_UCPD_DBDIS_Msk            (0x1UL << PWR_UCPDR_UCPD_DBDIS_Pos)     /*!< 0x00000001 */
13833 #define PWR_UCPDR_UCPD_DBDIS                PWR_UCPDR_UCPD_DBDIS_Msk                /*!< USB Type-C and Power Delivery Dead Battery disable */
13834 #define PWR_UCPDR_UCPD_STDBY_Pos            (1U)
13835 #define PWR_UCPDR_UCPD_STDBY_Msk            (0x1UL << PWR_UCPDR_UCPD_STDBY_Pos)     /*!< 0x00000002 */
13836 #define PWR_UCPDR_UCPD_STDBY                PWR_UCPDR_UCPD_STDBY_Msk                /*!< USB Type-C and Power Delivery Standby mode         */
13837 
13838 /*******************  Bit definition for PWR_SECCFGR register  ****************/
13839 #define PWR_SECCFGR_WUP1SEC_Pos             (0U)
13840 #define PWR_SECCFGR_WUP1SEC_Msk             (0x1UL << PWR_SECCFGR_WUP1SEC_Pos)      /*!< 0x00000001 */
13841 #define PWR_SECCFGR_WUP1SEC                 PWR_SECCFGR_WUP1SEC_Msk                 /*!< WUP1 secure protection                             */
13842 #define PWR_SECCFGR_WUP2SEC_Pos             (1U)
13843 #define PWR_SECCFGR_WUP2SEC_Msk             (0x1UL << PWR_SECCFGR_WUP2SEC_Pos)      /*!< 0x00000002 */
13844 #define PWR_SECCFGR_WUP2SEC                 PWR_SECCFGR_WUP2SEC_Msk                 /*!< WUP2 secure protection                             */
13845 #define PWR_SECCFGR_WUP3SEC_Pos             (2U)
13846 #define PWR_SECCFGR_WUP3SEC_Msk             (0x1UL << PWR_SECCFGR_WUP3SEC_Pos)      /*!< 0x00000004 */
13847 #define PWR_SECCFGR_WUP3SEC                 PWR_SECCFGR_WUP3SEC_Msk                 /*!< WUP3 secure protection                             */
13848 #define PWR_SECCFGR_WUP4SEC_Pos             (3U)
13849 #define PWR_SECCFGR_WUP4SEC_Msk             (0x1UL << PWR_SECCFGR_WUP4SEC_Pos)      /*!< 0x00000008 */
13850 #define PWR_SECCFGR_WUP4SEC                 PWR_SECCFGR_WUP4SEC_Msk                 /*!< WUP4 secure protection                             */
13851 #define PWR_SECCFGR_WUP5SEC_Pos             (4U)
13852 #define PWR_SECCFGR_WUP5SEC_Msk             (0x1UL << PWR_SECCFGR_WUP5SEC_Pos)      /*!< 0x00000010 */
13853 #define PWR_SECCFGR_WUP5SEC                 PWR_SECCFGR_WUP5SEC_Msk                 /*!< WUP5 secure protection                             */
13854 #define PWR_SECCFGR_WUP6SEC_Pos             (5U)
13855 #define PWR_SECCFGR_WUP6SEC_Msk             (0x1UL << PWR_SECCFGR_WUP6SEC_Pos)      /*!< 0x00000020 */
13856 #define PWR_SECCFGR_WUP6SEC                 PWR_SECCFGR_WUP6SEC_Msk                 /*!< WUP6 secure protection                             */
13857 #define PWR_SECCFGR_WUP7SEC_Pos             (6U)
13858 #define PWR_SECCFGR_WUP7SEC_Msk             (0x1UL << PWR_SECCFGR_WUP7SEC_Pos)      /*!< 0x00000040 */
13859 #define PWR_SECCFGR_WUP7SEC                 PWR_SECCFGR_WUP7SEC_Msk                 /*!< WUP7 secure protection                             */
13860 #define PWR_SECCFGR_WUP8SEC_Pos             (7U)
13861 #define PWR_SECCFGR_WUP8SEC_Msk             (0x1UL << PWR_SECCFGR_WUP8SEC_Pos)      /*!< 0x00000080 */
13862 #define PWR_SECCFGR_WUP8SEC                 PWR_SECCFGR_WUP8SEC_Msk                 /*!< WUP8 secure protection                             */
13863 #define PWR_SECCFGR_LPMSEC_Pos              (12U)
13864 #define PWR_SECCFGR_LPMSEC_Msk              (0x1UL << PWR_SECCFGR_LPMSEC_Pos)       /*!< 0x00001000 */
13865 #define PWR_SECCFGR_LPMSEC                  PWR_SECCFGR_LPMSEC_Msk                  /*!< Low-power modes secure protection                  */
13866 #define PWR_SECCFGR_VDMSEC_Pos              (13U)
13867 #define PWR_SECCFGR_VDMSEC_Msk              (0x1UL << PWR_SECCFGR_VDMSEC_Pos)       /*!< 0x00002000 */
13868 #define PWR_SECCFGR_VDMSEC                  PWR_SECCFGR_VDMSEC_Msk                  /*!< Voltage detection and monitoring secure protection */
13869 #define PWR_SECCFGR_VBSEC_Pos               (14U)
13870 #define PWR_SECCFGR_VBSEC_Msk               (0x1UL << PWR_SECCFGR_VBSEC_Pos)        /*!< 0x00004000 */
13871 #define PWR_SECCFGR_VBSEC                   PWR_SECCFGR_VBSEC_Msk                   /*!< Backup domain secure protection                    */
13872 #define PWR_SECCFGR_APCSEC_Pos              (15U)
13873 #define PWR_SECCFGR_APCSEC_Msk              (0x1UL << PWR_SECCFGR_APCSEC_Pos)       /*!< 0x00008000 */
13874 #define PWR_SECCFGR_APCSEC                  PWR_SECCFGR_APCSEC_Msk                  /*!< Pull-up/pull-down secure protection                */
13875 
13876 /*******************  Bit definition for PWR_PRIVCFGR register  ***************/
13877 #define PWR_PRIVCFGR_SPRIV_Pos              (0U)
13878 #define PWR_PRIVCFGR_SPRIV_Msk              (0x1UL << PWR_PRIVCFGR_SPRIV_Pos)       /*!< 0x00000001 */
13879 #define PWR_PRIVCFGR_SPRIV                  PWR_PRIVCFGR_SPRIV_Msk                  /*!< RCC secure functions privilege configuration     */
13880 #define PWR_PRIVCFGR_NSPRIV_Pos             (1U)
13881 #define PWR_PRIVCFGR_NSPRIV_Msk             (0x1UL << PWR_PRIVCFGR_NSPRIV_Pos)      /*!< 0x00000002 */
13882 #define PWR_PRIVCFGR_NSPRIV                 PWR_PRIVCFGR_NSPRIV_Msk                 /*!< RCC non-secure functions privilege configuration */
13883 
13884 /**********************  Bit definition for PWR_SR register  ******************/
13885 #define PWR_SR_CSSF_Pos                     (0U)
13886 #define PWR_SR_CSSF_Msk                     (0x1UL << PWR_SR_CSSF_Pos)              /*!< 0x00000001 */
13887 #define PWR_SR_CSSF                         PWR_SR_CSSF_Msk                         /*!< Clear Stop and Standby/Shutdown flags */
13888 #define PWR_SR_STOPF_Pos                    (1U)
13889 #define PWR_SR_STOPF_Msk                    (0x1UL << PWR_SR_STOPF_Pos)             /*!< 0x00000002 */
13890 #define PWR_SR_STOPF                        PWR_SR_STOPF_Msk                        /*!< Stop flag                             */
13891 #define PWR_SR_SBF_Pos                      (2U)
13892 #define PWR_SR_SBF_Msk                      (0x1UL << PWR_SR_SBF_Pos)               /*!< 0x00000004 */
13893 #define PWR_SR_SBF                          PWR_SR_SBF_Msk                          /*!< Standby/Shutdown flag                 */
13894 
13895 /********************  Bit definition for PWR_SVMSR register  *****************/
13896 #define PWR_SVMSR_REGS_Pos                  (1U)
13897 #define PWR_SVMSR_REGS_Msk                  (0x1UL << PWR_SVMSR_REGS_Pos)           /*!< 0x00000002 */
13898 #define PWR_SVMSR_REGS                      PWR_SVMSR_REGS_Msk                      /*!< Regulator status                                  */
13899 #define PWR_SVMSR_PVDO_Pos                  (4U)
13900 #define PWR_SVMSR_PVDO_Msk                  (0x1UL << PWR_SVMSR_PVDO_Pos)           /*!< 0x00000010 */
13901 #define PWR_SVMSR_PVDO                      PWR_SVMSR_PVDO_Msk                      /*!< VDD voltage detector output                       */
13902 #define PWR_SVMSR_ACTVOSRDY_Pos             (15U)
13903 #define PWR_SVMSR_ACTVOSRDY_Msk             (0x1UL << PWR_SVMSR_ACTVOSRDY_Pos)      /*!< 0x00008000 */
13904 #define PWR_SVMSR_ACTVOSRDY                 PWR_SVMSR_ACTVOSRDY_Msk                 /*!< Voltage level ready for currently used VOS        */
13905 #define PWR_SVMSR_ACTVOS_Pos                (16U)
13906 #define PWR_SVMSR_ACTVOS_Msk                (0x3UL << PWR_SVMSR_ACTVOS_Pos)         /*!< 0x00030000 */
13907 #define PWR_SVMSR_ACTVOS                    PWR_SVMSR_ACTVOS_Msk                    /*!< Voltage Output Scaling currently applied to VCORE */
13908 #define PWR_SVMSR_ACTVOS_0                  (0x1UL << PWR_SVMSR_ACTVOS_Pos)         /*!< 0x00010000 */
13909 #define PWR_SVMSR_ACTVOS_1                  (0x2UL << PWR_SVMSR_ACTVOS_Pos)         /*!< 0x00020000 */
13910 #define PWR_SVMSR_VDDUSBRDY_Pos             (24U)
13911 #define PWR_SVMSR_VDDUSBRDY_Msk             (0x1UL << PWR_SVMSR_VDDUSBRDY_Pos)      /*!< 0x01000000 */
13912 #define PWR_SVMSR_VDDUSBRDY                 PWR_SVMSR_VDDUSBRDY_Msk                 /*!< VDDUSB ready                                      */
13913 #define PWR_SVMSR_VDDIO2RDY_Pos             (25U)
13914 #define PWR_SVMSR_VDDIO2RDY_Msk             (0x1UL << PWR_SVMSR_VDDIO2RDY_Pos)      /*!< 0x02000000 */
13915 #define PWR_SVMSR_VDDIO2RDY                 PWR_SVMSR_VDDIO2RDY_Msk                 /*!< VDDIO2 ready                                      */
13916 #define PWR_SVMSR_VDDA1RDY_Pos              (26U)
13917 #define PWR_SVMSR_VDDA1RDY_Msk              (0x1UL << PWR_SVMSR_VDDA1RDY_Pos)       /*!< 0x04000000 */
13918 #define PWR_SVMSR_VDDA1RDY                  PWR_SVMSR_VDDA1RDY_Msk                  /*!< VDDA ready versus 1.6V voltage monitor            */
13919 #define PWR_SVMSR_VDDA2RDY_Pos              (27U)
13920 #define PWR_SVMSR_VDDA2RDY_Msk              (0x1UL << PWR_SVMSR_VDDA2RDY_Pos)       /*!< 0x08000000 */
13921 #define PWR_SVMSR_VDDA2RDY                  PWR_SVMSR_VDDA2RDY_Msk                  /*!< VDDA ready versus 1.8V voltage monitor            */
13922 
13923 /*********************  Bit definition for PWR_BDSR register  *****************/
13924 #define PWR_BDSR_VBATH_Pos                  (1U)
13925 #define PWR_BDSR_VBATH_Msk                  (0x1UL << PWR_BDSR_VBATH_Pos)           /*!< 0x00000002 */
13926 #define PWR_BDSR_VBATH                      PWR_BDSR_VBATH_Msk                      /*!< VBAT level monitoring versus high threshold        */
13927 #define PWR_BDSR_TEMPL_Pos                  (2U)
13928 #define PWR_BDSR_TEMPL_Msk                  (0x1UL << PWR_BDSR_TEMPL_Pos)           /*!< 0x00000004 */
13929 #define PWR_BDSR_TEMPL                      PWR_BDSR_TEMPL_Msk                      /*!< Temperature level monitoring versus low threshold  */
13930 #define PWR_BDSR_TEMPH_Pos                  (3U)
13931 #define PWR_BDSR_TEMPH_Msk                  (0x1UL << PWR_BDSR_TEMPH_Pos)           /*!< 0x00000008 */
13932 #define PWR_BDSR_TEMPH                      PWR_BDSR_TEMPH_Msk                      /*!< Temperature level monitoring versus high threshold */
13933 
13934 /*********************  Bit definition for PWR_WUSR register  *****************/
13935 #define PWR_WUSR_WUF1_Pos                   (0U)
13936 #define PWR_WUSR_WUF1_Msk                   (0x1UL << PWR_WUSR_WUF1_Pos)            /*!< 0x00000001 */
13937 #define PWR_WUSR_WUF1                       PWR_WUSR_WUF1_Msk                       /*!< Wakeup flag 1   */
13938 #define PWR_WUSR_WUF2_Pos                   (1U)
13939 #define PWR_WUSR_WUF2_Msk                   (0x1UL << PWR_WUSR_WUF2_Pos)            /*!< 0x00000002 */
13940 #define PWR_WUSR_WUF2                       PWR_WUSR_WUF2_Msk                       /*!< Wakeup flag 2   */
13941 #define PWR_WUSR_WUF3_Pos                   (2U)
13942 #define PWR_WUSR_WUF3_Msk                   (0x1UL << PWR_WUSR_WUF3_Pos)            /*!< 0x00000004 */
13943 #define PWR_WUSR_WUF3                       PWR_WUSR_WUF3_Msk                       /*!< Wakeup flag 3   */
13944 #define PWR_WUSR_WUF4_Pos                   (3U)
13945 #define PWR_WUSR_WUF4_Msk                   (0x1UL << PWR_WUSR_WUF4_Pos)            /*!< 0x00000008 */
13946 #define PWR_WUSR_WUF4                       PWR_WUSR_WUF4_Msk                       /*!< Wakeup flag 4   */
13947 #define PWR_WUSR_WUF5_Pos                   (4U)
13948 #define PWR_WUSR_WUF5_Msk                   (0x1UL << PWR_WUSR_WUF5_Pos)            /*!< 0x00000010 */
13949 #define PWR_WUSR_WUF5                       PWR_WUSR_WUF5_Msk                       /*!< Wakeup flag 5   */
13950 #define PWR_WUSR_WUF6_Pos                   (5U)
13951 #define PWR_WUSR_WUF6_Msk                   (0x1UL << PWR_WUSR_WUF6_Pos)            /*!< 0x00000020 */
13952 #define PWR_WUSR_WUF6                       PWR_WUSR_WUF6_Msk                       /*!< Wakeup flag 6   */
13953 #define PWR_WUSR_WUF7_Pos                   (6U)
13954 #define PWR_WUSR_WUF7_Msk                   (0x1UL << PWR_WUSR_WUF7_Pos)            /*!< 0x00000040 */
13955 #define PWR_WUSR_WUF7                       PWR_WUSR_WUF7_Msk                       /*!< Wakeup flag 7   */
13956 #define PWR_WUSR_WUF8_Pos                   (7U)
13957 #define PWR_WUSR_WUF8_Msk                   (0x1UL << PWR_WUSR_WUF8_Pos)            /*!< 0x00000080 */
13958 #define PWR_WUSR_WUF8                       PWR_WUSR_WUF8_Msk                       /*!< Wakeup flag 8   */
13959 #define PWR_WUSR_WUF_Pos                    (0U)
13960 #define PWR_WUSR_WUF_Msk                    (0xFFUL << PWR_WUSR_WUF_Pos)            /*!< 0x000000FF */
13961 #define PWR_WUSR_WUF                        PWR_WUSR_WUF_Msk                        /*!< all Wakeup flag */
13962 
13963 /*********************  Bit definition for PWR_WUSCR register  ****************/
13964 #define PWR_WUSCR_CWUF1_Pos                 (0U)
13965 #define PWR_WUSCR_CWUF1_Msk                 (0x1UL << PWR_WUSCR_CWUF1_Pos)          /*!< 0x00000001*/
13966 #define PWR_WUSCR_CWUF1                     PWR_WUSCR_CWUF1_Msk                     /*!< Wakeup clear flag 1   */
13967 #define PWR_WUSCR_CWUF2_Pos                 (1U)
13968 #define PWR_WUSCR_CWUF2_Msk                 (0x1UL << PWR_WUSCR_CWUF2_Pos)          /*!< 0x00000002 */
13969 #define PWR_WUSCR_CWUF2                     PWR_WUSCR_CWUF2_Msk                     /*!< Wakeup clear flag 2   */
13970 #define PWR_WUSCR_CWUF3_Pos                 (2U)
13971 #define PWR_WUSCR_CWUF3_Msk                 (0x1UL << PWR_WUSCR_CWUF3_Pos)          /*!< 0x00000004 */
13972 #define PWR_WUSCR_CWUF3                     PWR_WUSCR_CWUF3_Msk                     /*!< Wakeup clear flag 3   */
13973 #define PWR_WUSCR_CWUF4_Pos                 (3U)
13974 #define PWR_WUSCR_CWUF4_Msk                 (0x1UL << PWR_WUSCR_CWUF4_Pos)          /*!< 0x00000008 */
13975 #define PWR_WUSCR_CWUF4                     PWR_WUSCR_CWUF4_Msk                     /*!< Wakeup clear flag 4   */
13976 #define PWR_WUSCR_CWUF5_Pos                 (4U)
13977 #define PWR_WUSCR_CWUF5_Msk                 (0x1UL << PWR_WUSCR_CWUF5_Pos)          /*!< 0x00000010 */
13978 #define PWR_WUSCR_CWUF5                     PWR_WUSCR_CWUF5_Msk                     /*!< Wakeup clear flag 5   */
13979 #define PWR_WUSCR_CWUF6_Pos                 (5U)
13980 #define PWR_WUSCR_CWUF6_Msk                 (0x1UL << PWR_WUSCR_CWUF6_Pos)          /*!< 0x00000020 */
13981 #define PWR_WUSCR_CWUF6                     PWR_WUSCR_CWUF6_Msk                     /*!< Wakeup clear flag 6   */
13982 #define PWR_WUSCR_CWUF7_Pos                 (6U)
13983 #define PWR_WUSCR_CWUF7_Msk                 (0x1UL << PWR_WUSCR_CWUF7_Pos)          /*!< 0x00000040 */
13984 #define PWR_WUSCR_CWUF7                     PWR_WUSCR_CWUF7_Msk                     /*!< Wakeup clear flag 7   */
13985 #define PWR_WUSCR_CWUF8_Pos                 (7U)
13986 #define PWR_WUSCR_CWUF8_Msk                 (0x1UL << PWR_WUSCR_CWUF8_Pos)          /*!< 0x00000080 */
13987 #define PWR_WUSCR_CWUF8                     PWR_WUSCR_CWUF8_Msk                     /*!< Wakeup clear flag 8   */
13988 #define PWR_WUSCR_CWUF_Pos                  (0U)
13989 #define PWR_WUSCR_CWUF_Msk                  (0xFFUL << PWR_WUSCR_CWUF_Pos)          /*!< 0x000000FF */
13990 #define PWR_WUSCR_CWUF                      PWR_WUSCR_CWUF_Msk                      /*!< all Wakeup clear flag */
13991 
13992 /*********************  Bit definition for PWR_APCR register  *****************/
13993 #define PWR_APCR_APC_Pos                    (0U)
13994 #define PWR_APCR_APC_Msk                    (0x1UL << PWR_APCR_APC_Pos)             /*!< 0x00000001 */
13995 #define PWR_APCR_APC                        PWR_APCR_APC_Msk                        /*!< Apply pull-up and pull-down configuration */
13996 
13997 /********************  Bit definition for PWR_PUCRA register  *****************/
13998 #define PWR_PUCRA_PU0_Pos                   (0U)
13999 #define PWR_PUCRA_PU0_Msk                   (0x1UL << PWR_PUCRA_PU0_Pos)            /*!< 0x00000001 */
14000 #define PWR_PUCRA_PU0                       PWR_PUCRA_PU0_Msk                       /*!< Apply pull-up for PA0  */
14001 #define PWR_PUCRA_PU1_Pos                   (1U)
14002 #define PWR_PUCRA_PU1_Msk                   (0x1UL << PWR_PUCRA_PU1_Pos)            /*!< 0x00000002 */
14003 #define PWR_PUCRA_PU1                       PWR_PUCRA_PU1_Msk                       /*!< Apply pull-up for PA1  */
14004 #define PWR_PUCRA_PU2_Pos                   (2U)
14005 #define PWR_PUCRA_PU2_Msk                   (0x1UL << PWR_PUCRA_PU2_Pos)            /*!< 0x00000004 */
14006 #define PWR_PUCRA_PU2                       PWR_PUCRA_PU2_Msk                       /*!< Apply pull-up for PA2  */
14007 #define PWR_PUCRA_PU3_Pos                   (3U)
14008 #define PWR_PUCRA_PU3_Msk                   (0x1UL << PWR_PUCRA_PU3_Pos)            /*!< 0x00000008 */
14009 #define PWR_PUCRA_PU3                       PWR_PUCRA_PU3_Msk                       /*!< Apply pull-up for PA3  */
14010 #define PWR_PUCRA_PU4_Pos                   (4U)
14011 #define PWR_PUCRA_PU4_Msk                   (0x1UL << PWR_PUCRA_PU4_Pos)            /*!< 0x00000010 */
14012 #define PWR_PUCRA_PU4                       PWR_PUCRA_PU4_Msk                       /*!< Apply pull-up for PA4  */
14013 #define PWR_PUCRA_PU5_Pos                   (5U)
14014 #define PWR_PUCRA_PU5_Msk                   (0x1UL << PWR_PUCRA_PU5_Pos)            /*!< 0x00000020 */
14015 #define PWR_PUCRA_PU5                       PWR_PUCRA_PU5_Msk                       /*!< Apply pull-up for PA5  */
14016 #define PWR_PUCRA_PU6_Pos                   (6U)
14017 #define PWR_PUCRA_PU6_Msk                   (0x1UL << PWR_PUCRA_PU6_Pos)            /*!< 0x00000040 */
14018 #define PWR_PUCRA_PU6                       PWR_PUCRA_PU6_Msk                       /*!< Apply pull-up for PA6  */
14019 #define PWR_PUCRA_PU7_Pos                   (7U)
14020 #define PWR_PUCRA_PU7_Msk                   (0x1UL << PWR_PUCRA_PU7_Pos)            /*!< 0x00000080 */
14021 #define PWR_PUCRA_PU7                       PWR_PUCRA_PU7_Msk                       /*!< Apply pull-up for PA7  */
14022 #define PWR_PUCRA_PU8_Pos                   (8U)
14023 #define PWR_PUCRA_PU8_Msk                   (0x1UL << PWR_PUCRA_PU8_Pos)            /*!< 0x00000100 */
14024 #define PWR_PUCRA_PU8                       PWR_PUCRA_PU8_Msk                       /*!< Apply pull-up for PA8  */
14025 #define PWR_PUCRA_PU9_Pos                   (9U)
14026 #define PWR_PUCRA_PU9_Msk                   (0x1UL << PWR_PUCRA_PU9_Pos)            /*!< 0x00000200 */
14027 #define PWR_PUCRA_PU9                       PWR_PUCRA_PU9_Msk                       /*!< Apply pull-up for PA9  */
14028 #define PWR_PUCRA_PU10_Pos                  (10U)
14029 #define PWR_PUCRA_PU10_Msk                  (0x1UL << PWR_PUCRA_PU10_Pos)           /*!< 0x00000400 */
14030 #define PWR_PUCRA_PU10                      PWR_PUCRA_PU10_Msk                      /*!< Apply pull-up for PA10 */
14031 #define PWR_PUCRA_PU11_Pos                  (11U)
14032 #define PWR_PUCRA_PU11_Msk                  (0x1UL << PWR_PUCRA_PU11_Pos)           /*!< 0x00000800 */
14033 #define PWR_PUCRA_PU11                      PWR_PUCRA_PU11_Msk                      /*!< Apply pull-up for PA11 */
14034 #define PWR_PUCRA_PU12_Pos                  (12U)
14035 #define PWR_PUCRA_PU12_Msk                  (0x1UL << PWR_PUCRA_PU12_Pos)           /*!< 0x00001000 */
14036 #define PWR_PUCRA_PU12                      PWR_PUCRA_PU12_Msk                      /*!< Apply pull-up for PA12 */
14037 #define PWR_PUCRA_PU13_Pos                  (13U)
14038 #define PWR_PUCRA_PU13_Msk                  (0x1UL << PWR_PUCRA_PU13_Pos)           /*!< 0x00002000 */
14039 #define PWR_PUCRA_PU13                      PWR_PUCRA_PU13_Msk                      /*!< Apply pull-up for PA13 */
14040 #define PWR_PUCRA_PU15_Pos                  (15U)
14041 #define PWR_PUCRA_PU15_Msk                  (0x1UL << PWR_PUCRA_PU15_Pos)           /*!< 0x00008000 */
14042 #define PWR_PUCRA_PU15                      PWR_PUCRA_PU15_Msk                      /*!< Apply pull-up for PA15 */
14043 
14044 /********************  Bit definition for PWR_PDCRA register  *****************/
14045 #define PWR_PDCRA_PD0_Pos                   (0U)
14046 #define PWR_PDCRA_PD0_Msk                   (0x1UL << PWR_PDCRA_PD0_Pos)            /*!< 0x00000001 */
14047 #define PWR_PDCRA_PD0                       PWR_PDCRA_PD0_Msk                       /*!< Apply pull-down for PA0  */
14048 #define PWR_PDCRA_PD1_Pos                   (1U)
14049 #define PWR_PDCRA_PD1_Msk                   (0x1UL << PWR_PDCRA_PD1_Pos)            /*!< 0x00000002 */
14050 #define PWR_PDCRA_PD1                       PWR_PDCRA_PD1_Msk                       /*!< Apply pull-down for PA1  */
14051 #define PWR_PDCRA_PD2_Pos                   (2U)
14052 #define PWR_PDCRA_PD2_Msk                   (0x1UL << PWR_PDCRA_PD2_Pos)            /*!< 0x00000004 */
14053 #define PWR_PDCRA_PD2                       PWR_PDCRA_PD2_Msk                       /*!< Apply pull-down for PA2  */
14054 #define PWR_PDCRA_PD3_Pos                   (3U)
14055 #define PWR_PDCRA_PD3_Msk                   (0x1UL << PWR_PDCRA_PD3_Pos)            /*!< 0x00000008 */
14056 #define PWR_PDCRA_PD3                       PWR_PDCRA_PD3_Msk                       /*!< Apply pull-down for PA3  */
14057 #define PWR_PDCRA_PD4_Pos                   (4U)
14058 #define PWR_PDCRA_PD4_Msk                   (0x1UL << PWR_PDCRA_PD4_Pos)            /*!< 0x00000010 */
14059 #define PWR_PDCRA_PD4                       PWR_PDCRA_PD4_Msk                       /*!< Apply pull-down for PA4  */
14060 #define PWR_PDCRA_PD5_Pos                   (5U)
14061 #define PWR_PDCRA_PD5_Msk                   (0x1UL << PWR_PDCRA_PD5_Pos)            /*!< 0x00000020 */
14062 #define PWR_PDCRA_PD5                       PWR_PDCRA_PD5_Msk                       /*!< Apply pull-down for PA5  */
14063 #define PWR_PDCRA_PD6_Pos                   (6U)
14064 #define PWR_PDCRA_PD6_Msk                   (0x1UL << PWR_PDCRA_PD6_Pos)            /*!< 0x00000040 */
14065 #define PWR_PDCRA_PD6                       PWR_PDCRA_PD6_Msk                       /*!< Apply pull-down for PA6  */
14066 #define PWR_PDCRA_PD7_Pos                   (7U)
14067 #define PWR_PDCRA_PD7_Msk                   (0x1UL << PWR_PDCRA_PD7_Pos)            /*!< 0x00000080 */
14068 #define PWR_PDCRA_PD7                       PWR_PDCRA_PD7_Msk                       /*!< Apply pull-down for PA7  */
14069 #define PWR_PDCRA_PD8_Pos                   (8U)
14070 #define PWR_PDCRA_PD8_Msk                   (0x1UL << PWR_PDCRA_PD8_Pos)            /*!< 0x00000100 */
14071 #define PWR_PDCRA_PD8                       PWR_PDCRA_PD8_Msk                       /*!< Apply pull-down for PA8  */
14072 #define PWR_PDCRA_PD9_Pos                   (9U)
14073 #define PWR_PDCRA_PD9_Msk                   (0x1UL << PWR_PDCRA_PD9_Pos)            /*!< 0x00000200 */
14074 #define PWR_PDCRA_PD9                       PWR_PDCRA_PD9_Msk                       /*!< Apply pull-down for PA9  */
14075 #define PWR_PDCRA_PD10_Pos                  (10U)
14076 #define PWR_PDCRA_PD10_Msk                  (0x1UL << PWR_PDCRA_PD10_Pos)           /*!< 0x00000400 */
14077 #define PWR_PDCRA_PD10                      PWR_PDCRA_PD10_Msk                      /*!< Apply pull-down for PA10 */
14078 #define PWR_PDCRA_PD11_Pos                  (11U)
14079 #define PWR_PDCRA_PD11_Msk                  (0x1UL << PWR_PDCRA_PD11_Pos)           /*!< 0x00000800 */
14080 #define PWR_PDCRA_PD11                      PWR_PDCRA_PD11_Msk                      /*!< Apply pull-down for PA11 */
14081 #define PWR_PDCRA_PD12_Pos                  (12U)
14082 #define PWR_PDCRA_PD12_Msk                  (0x1UL << PWR_PDCRA_PD12_Pos)           /*!< 0x00001000 */
14083 #define PWR_PDCRA_PD12                      PWR_PDCRA_PD12_Msk                      /*!< Apply pull-down for PA12 */
14084 #define PWR_PDCRA_PD14_Pos                  (14U)
14085 #define PWR_PDCRA_PD14_Msk                  (0x1UL << PWR_PDCRA_PD14_Pos)           /*!< 0x00004000 */
14086 #define PWR_PDCRA_PD14                      PWR_PDCRA_PD14_Msk                      /*!< Apply pull-down for PA14 */
14087 
14088 /********************  Bit definition for PWR_PUCRB register  *****************/
14089 #define PWR_PUCRB_PU0_Pos                   (0U)
14090 #define PWR_PUCRB_PU0_Msk                   (0x1UL << PWR_PUCRB_PU0_Pos)            /*!< 0x00000001 */
14091 #define PWR_PUCRB_PU0                       PWR_PUCRB_PU0_Msk                       /*!< Apply pull-up for PB0  */
14092 #define PWR_PUCRB_PU1_Pos                   (1U)
14093 #define PWR_PUCRB_PU1_Msk                   (0x1UL << PWR_PUCRB_PU1_Pos)            /*!< 0x00000002 */
14094 #define PWR_PUCRB_PU1                       PWR_PUCRB_PU1_Msk                       /*!< Apply pull-up for PB1  */
14095 #define PWR_PUCRB_PU2_Pos                   (2U)
14096 #define PWR_PUCRB_PU2_Msk                   (0x1UL << PWR_PUCRB_PU2_Pos)            /*!< 0x00000004 */
14097 #define PWR_PUCRB_PU2                       PWR_PUCRB_PU2_Msk                       /*!< Apply pull-up for PB2  */
14098 #define PWR_PUCRB_PU3_Pos                   (3U)
14099 #define PWR_PUCRB_PU3_Msk                   (0x1UL << PWR_PUCRB_PU3_Pos)            /*!< 0x00000008 */
14100 #define PWR_PUCRB_PU3                       PWR_PUCRB_PU3_Msk                       /*!< Apply pull-up for PB3  */
14101 #define PWR_PUCRB_PU4_Pos                   (4U)
14102 #define PWR_PUCRB_PU4_Msk                   (0x1UL << PWR_PUCRB_PU4_Pos)            /*!< 0x00000010 */
14103 #define PWR_PUCRB_PU4                       PWR_PUCRB_PU4_Msk                       /*!< Apply pull-up for PB4  */
14104 #define PWR_PUCRB_PU5_Pos                   (5U)
14105 #define PWR_PUCRB_PU5_Msk                   (0x1UL << PWR_PUCRB_PU5_Pos)            /*!< 0x00000020 */
14106 #define PWR_PUCRB_PU5                       PWR_PUCRB_PU5_Msk                       /*!< Apply pull-up for PB5  */
14107 #define PWR_PUCRB_PU6_Pos                   (6U)
14108 #define PWR_PUCRB_PU6_Msk                   (0x1UL << PWR_PUCRB_PU6_Pos)            /*!< 0x00000040 */
14109 #define PWR_PUCRB_PU6                       PWR_PUCRB_PU6_Msk                       /*!< Apply pull-up for PB6  */
14110 #define PWR_PUCRB_PU7_Pos                   (7U)
14111 #define PWR_PUCRB_PU7_Msk                   (0x1UL << PWR_PUCRB_PU7_Pos)            /*!< 0x00000080 */
14112 #define PWR_PUCRB_PU7                       PWR_PUCRB_PU7_Msk                       /*!< Apply pull-up for PB7  */
14113 #define PWR_PUCRB_PU8_Pos                   (8U)
14114 #define PWR_PUCRB_PU8_Msk                   (0x1UL << PWR_PUCRB_PU8_Pos)            /*!< 0x00000100 */
14115 #define PWR_PUCRB_PU8                       PWR_PUCRB_PU8_Msk                       /*!< Apply pull-up for PB8  */
14116 #define PWR_PUCRB_PU9_Pos                   (9U)
14117 #define PWR_PUCRB_PU9_Msk                   (0x1UL << PWR_PUCRB_PU9_Pos)            /*!< 0x00000200 */
14118 #define PWR_PUCRB_PU9                       PWR_PUCRB_PU9_Msk                       /*!< Apply pull-up for PB9  */
14119 #define PWR_PUCRB_PU10_Pos                  (10U)
14120 #define PWR_PUCRB_PU10_Msk                  (0x1UL << PWR_PUCRB_PU10_Pos)           /*!< 0x00000400 */
14121 #define PWR_PUCRB_PU10                      PWR_PUCRB_PU10_Msk                      /*!< Apply pull-up for PB10 */
14122 #define PWR_PUCRB_PU11_Pos                  (11U)
14123 #define PWR_PUCRB_PU11_Msk                  (0x1UL << PWR_PUCRB_PU11_Pos)           /*!< 0x00000800 */
14124 #define PWR_PUCRB_PU11                      PWR_PUCRB_PU11_Msk                      /*!< Apply pull-up for PB11 */
14125 #define PWR_PUCRB_PU12_Pos                  (12U)
14126 #define PWR_PUCRB_PU12_Msk                  (0x1UL << PWR_PUCRB_PU12_Pos)           /*!< 0x00001000 */
14127 #define PWR_PUCRB_PU12                      PWR_PUCRB_PU12_Msk                      /*!< Apply pull-up for PB12 */
14128 #define PWR_PUCRB_PU13_Pos                  (13U)
14129 #define PWR_PUCRB_PU13_Msk                  (0x1UL << PWR_PUCRB_PU13_Pos)           /*!< 0x00002000 */
14130 #define PWR_PUCRB_PU13                      PWR_PUCRB_PU13_Msk                      /*!< Apply pull-up for PB13 */
14131 #define PWR_PUCRB_PU14_Pos                  (14U)
14132 #define PWR_PUCRB_PU14_Msk                  (0x1UL << PWR_PUCRB_PU14_Pos)           /*!< 0x00004000 */
14133 #define PWR_PUCRB_PU14                      PWR_PUCRB_PU14_Msk                      /*!< Apply pull-up for PB14 */
14134 #define PWR_PUCRB_PU15_Pos                  (15U)
14135 #define PWR_PUCRB_PU15_Msk                  (0x1UL << PWR_PUCRB_PU15_Pos)           /*!< 0x00008000 */
14136 #define PWR_PUCRB_PU15                      PWR_PUCRB_PU15_Msk                      /*!< Apply pull-up for PB15 */
14137 
14138 /********************  Bit definition for PWR_PDCRB register  *****************/
14139 #define PWR_PDCRB_PD0_Pos                   (0U)
14140 #define PWR_PDCRB_PD0_Msk                   (0x1UL << PWR_PDCRB_PD0_Pos)            /*!< 0x00000001 */
14141 #define PWR_PDCRB_PD0                       PWR_PDCRB_PD0_Msk                       /*!< Apply pull-down for PB0  */
14142 #define PWR_PDCRB_PD1_Pos                   (1U)
14143 #define PWR_PDCRB_PD1_Msk                   (0x1UL << PWR_PDCRB_PD1_Pos)            /*!< 0x00000002 */
14144 #define PWR_PDCRB_PD1                       PWR_PDCRB_PD1_Msk                       /*!< Apply pull-down for PB1  */
14145 #define PWR_PDCRB_PD2_Pos                   (2U)
14146 #define PWR_PDCRB_PD2_Msk                   (0x1UL << PWR_PDCRB_PD2_Pos)            /*!< 0x00000004 */
14147 #define PWR_PDCRB_PD2                       PWR_PDCRB_PD2_Msk                       /*!< Apply pull-down for PB2  */
14148 #define PWR_PDCRB_PD3_Pos                   (3U)
14149 #define PWR_PDCRB_PD3_Msk                   (0x1UL << PWR_PDCRB_PD3_Pos)            /*!< 0x00000008 */
14150 #define PWR_PDCRB_PD3                       PWR_PDCRB_PD3_Msk                       /*!< Apply pull-down for PB3  */
14151 #define PWR_PDCRB_PD5_Pos                   (5U)
14152 #define PWR_PDCRB_PD5_Msk                   (0x1UL << PWR_PDCRB_PD5_Pos)            /*!< 0x00000020 */
14153 #define PWR_PDCRB_PD5                       PWR_PDCRB_PD5_Msk                       /*!< Apply pull-down for PB5  */
14154 #define PWR_PDCRB_PD6_Pos                   (6U)
14155 #define PWR_PDCRB_PD6_Msk                   (0x1UL << PWR_PDCRB_PD6_Pos)            /*!< 0x00000040 */
14156 #define PWR_PDCRB_PD6                       PWR_PDCRB_PD6_Msk                       /*!< Apply pull-down for PB6  */
14157 #define PWR_PDCRB_PD7_Pos                   (7U)
14158 #define PWR_PDCRB_PD7_Msk                   (0x1UL << PWR_PDCRB_PD7_Pos)            /*!< 0x00000080 */
14159 #define PWR_PDCRB_PD7                       PWR_PDCRB_PD7_Msk                       /*!< Apply pull-down for PB7  */
14160 #define PWR_PDCRB_PD8_Pos                   (8U)
14161 #define PWR_PDCRB_PD8_Msk                   (0x1UL << PWR_PDCRB_PD8_Pos)            /*!< 0x00000100 */
14162 #define PWR_PDCRB_PD8                       PWR_PDCRB_PD8_Msk                       /*!< Apply pull-down for PB8  */
14163 #define PWR_PDCRB_PD9_Pos                   (9U)
14164 #define PWR_PDCRB_PD9_Msk                   (0x1UL << PWR_PDCRB_PD9_Pos)            /*!< 0x00000200 */
14165 #define PWR_PDCRB_PD9                       PWR_PDCRB_PD9_Msk                       /*!< Apply pull-down for PB9  */
14166 #define PWR_PDCRB_PD10_Pos                  (10U)
14167 #define PWR_PDCRB_PD10_Msk                  (0x1UL << PWR_PDCRB_PD10_Pos)           /*!< 0x00000400 */
14168 #define PWR_PDCRB_PD10                      PWR_PDCRB_PD10_Msk                      /*!< Apply pull-down for PB10 */
14169 #define PWR_PDCRB_PD11_Pos                  (11U)
14170 #define PWR_PDCRB_PD11_Msk                  (0x1UL << PWR_PDCRB_PD11_Pos)           /*!< 0x00000800 */
14171 #define PWR_PDCRB_PD11                      PWR_PDCRB_PD11_Msk                      /*!< Apply pull-down for PB11 */
14172 #define PWR_PDCRB_PD12_Pos                  (12U)
14173 #define PWR_PDCRB_PD12_Msk                  (0x1UL << PWR_PDCRB_PD12_Pos)           /*!< 0x00001000 */
14174 #define PWR_PDCRB_PD12                      PWR_PDCRB_PD12_Msk                      /*!< Apply pull-down for PB12 */
14175 #define PWR_PDCRB_PD13_Pos                  (13U)
14176 #define PWR_PDCRB_PD13_Msk                  (0x1UL << PWR_PDCRB_PD13_Pos)           /*!< 0x00002000 */
14177 #define PWR_PDCRB_PD13                      PWR_PDCRB_PD13_Msk                      /*!< Apply pull-down for PB13 */
14178 #define PWR_PDCRB_PD14_Pos                  (14U)
14179 #define PWR_PDCRB_PD14_Msk                  (0x1UL << PWR_PDCRB_PD14_Pos)           /*!< 0x00004000 */
14180 #define PWR_PDCRB_PD14                      PWR_PDCRB_PD14_Msk                      /*!< Apply pull-down for PB14 */
14181 #define PWR_PDCRB_PD15_Pos                  (15U)
14182 #define PWR_PDCRB_PD15_Msk                  (0x1UL << PWR_PDCRB_PD15_Pos)           /*!< 0x00008000 */
14183 #define PWR_PDCRB_PD15                      PWR_PDCRB_PD15_Msk                      /*!< Apply pull-down for PB15 */
14184 
14185 /********************  Bit definition for PWR_PUCRC register  *****************/
14186 #define PWR_PUCRC_PU0_Pos                   (0U)
14187 #define PWR_PUCRC_PU0_Msk                   (0x1UL << PWR_PUCRC_PU0_Pos)            /*!< 0x00000001 */
14188 #define PWR_PUCRC_PU0                       PWR_PUCRC_PU0_Msk                       /*!< Apply pull-up for PC0  */
14189 #define PWR_PUCRC_PU1_Pos                   (1U)
14190 #define PWR_PUCRC_PU1_Msk                   (0x1UL << PWR_PUCRC_PU1_Pos)            /*!< 0x00000002 */
14191 #define PWR_PUCRC_PU1                       PWR_PUCRC_PU1_Msk                       /*!< Apply pull-up for PC1  */
14192 #define PWR_PUCRC_PU2_Pos                   (2U)
14193 #define PWR_PUCRC_PU2_Msk                   (0x1UL << PWR_PUCRC_PU2_Pos)            /*!< 0x00000004 */
14194 #define PWR_PUCRC_PU2                       PWR_PUCRC_PU2_Msk                       /*!< Apply pull-up for PC2  */
14195 #define PWR_PUCRC_PU3_Pos                   (3U)
14196 #define PWR_PUCRC_PU3_Msk                   (0x1UL << PWR_PUCRC_PU3_Pos)            /*!< 0x00000008 */
14197 #define PWR_PUCRC_PU3                       PWR_PUCRC_PU3_Msk                       /*!< Apply pull-up for PC3  */
14198 #define PWR_PUCRC_PU4_Pos                   (4U)
14199 #define PWR_PUCRC_PU4_Msk                   (0x1UL << PWR_PUCRC_PU4_Pos)            /*!< 0x00000010 */
14200 #define PWR_PUCRC_PU4                       PWR_PUCRC_PU4_Msk                       /*!< Apply pull-up for PC4  */
14201 #define PWR_PUCRC_PU5_Pos                   (5U)
14202 #define PWR_PUCRC_PU5_Msk                   (0x1UL << PWR_PUCRC_PU5_Pos)            /*!< 0x00000020 */
14203 #define PWR_PUCRC_PU5                       PWR_PUCRC_PU5_Msk                       /*!< Apply pull-up for PC5  */
14204 #define PWR_PUCRC_PU6_Pos                   (6U)
14205 #define PWR_PUCRC_PU6_Msk                   (0x1UL << PWR_PUCRC_PU6_Pos)            /*!< 0x00000040 */
14206 #define PWR_PUCRC_PU6                       PWR_PUCRC_PU6_Msk                       /*!< Apply pull-up for PC6  */
14207 #define PWR_PUCRC_PU7_Pos                   (7U)
14208 #define PWR_PUCRC_PU7_Msk                   (0x1UL << PWR_PUCRC_PU7_Pos)            /*!< 0x00000080 */
14209 #define PWR_PUCRC_PU7                       PWR_PUCRC_PU7_Msk                       /*!< Apply pull-up for PC7  */
14210 #define PWR_PUCRC_PU8_Pos                   (8U)
14211 #define PWR_PUCRC_PU8_Msk                   (0x1UL << PWR_PUCRC_PU8_Pos)            /*!< 0x00000100 */
14212 #define PWR_PUCRC_PU8                       PWR_PUCRC_PU8_Msk                       /*!< Apply pull-up for PC8  */
14213 #define PWR_PUCRC_PU9_Pos                   (9U)
14214 #define PWR_PUCRC_PU9_Msk                   (0x1UL << PWR_PUCRC_PU9_Pos)            /*!< 0x00000200 */
14215 #define PWR_PUCRC_PU9                       PWR_PUCRC_PU9_Msk                       /*!< Apply pull-up for PC9  */
14216 #define PWR_PUCRC_PU10_Pos                  (10U)
14217 #define PWR_PUCRC_PU10_Msk                  (0x1UL << PWR_PUCRC_PU10_Pos)           /*!< 0x00000400 */
14218 #define PWR_PUCRC_PU10                      PWR_PUCRC_PU10_Msk                      /*!< Apply pull-up for PC10 */
14219 #define PWR_PUCRC_PU11_Pos                  (11U)
14220 #define PWR_PUCRC_PU11_Msk                  (0x1UL << PWR_PUCRC_PU11_Pos)           /*!< 0x00000800 */
14221 #define PWR_PUCRC_PU11                      PWR_PUCRC_PU11_Msk                      /*!< Apply pull-up for PC11 */
14222 #define PWR_PUCRC_PU12_Pos                  (12U)
14223 #define PWR_PUCRC_PU12_Msk                  (0x1UL << PWR_PUCRC_PU12_Pos)           /*!< 0x00001000 */
14224 #define PWR_PUCRC_PU12                      PWR_PUCRC_PU12_Msk                      /*!< Apply pull-up for PC12 */
14225 #define PWR_PUCRC_PU13_Pos                  (13U)
14226 #define PWR_PUCRC_PU13_Msk                  (0x1UL << PWR_PUCRC_PU13_Pos)           /*!< 0x00002000 */
14227 #define PWR_PUCRC_PU13                      PWR_PUCRC_PU13_Msk                      /*!< Apply pull-up for PC13 */
14228 #define PWR_PUCRC_PU14_Pos                  (14U)
14229 #define PWR_PUCRC_PU14_Msk                  (0x1UL << PWR_PUCRC_PU14_Pos)           /*!< 0x00004000 */
14230 #define PWR_PUCRC_PU14                      PWR_PUCRC_PU14_Msk                      /*!< Apply pull-up for PC14 */
14231 #define PWR_PUCRC_PU15_Pos                  (15U)
14232 #define PWR_PUCRC_PU15_Msk                  (0x1UL << PWR_PUCRC_PU15_Pos)           /*!< 0x00008000 */
14233 #define PWR_PUCRC_PU15                      PWR_PUCRC_PU15_Msk                      /*!< Apply pull-up for PC15 */
14234 
14235 /********************  Bit definition for PWR_PDCRC register  *****************/
14236 #define PWR_PDCRC_PD0_Pos                   (0U)
14237 #define PWR_PDCRC_PD0_Msk                   (0x1UL << PWR_PDCRC_PD0_Pos)            /*!< 0x00000001 */
14238 #define PWR_PDCRC_PD0                       PWR_PDCRC_PD0_Msk                       /*!< Apply pull-down for PC0  */
14239 #define PWR_PDCRC_PD1_Pos                   (1U)
14240 #define PWR_PDCRC_PD1_Msk                   (0x1UL << PWR_PDCRC_PD1_Pos)            /*!< 0x00000002 */
14241 #define PWR_PDCRC_PD1                       PWR_PDCRC_PD1_Msk                       /*!< Apply pull-down for PC1  */
14242 #define PWR_PDCRC_PD2_Pos                   (2U)
14243 #define PWR_PDCRC_PD2_Msk                   (0x1UL << PWR_PDCRC_PD2_Pos)            /*!< 0x00000004 */
14244 #define PWR_PDCRC_PD2                       PWR_PDCRC_PD2_Msk                       /*!< Apply pull-down for PC2  */
14245 #define PWR_PDCRC_PD3_Pos                   (3U)
14246 #define PWR_PDCRC_PD3_Msk                   (0x1UL << PWR_PDCRC_PD3_Pos)            /*!< 0x00000008 */
14247 #define PWR_PDCRC_PD3                       PWR_PDCRC_PD3_Msk                       /*!< Apply pull-down for PC3  */
14248 #define PWR_PDCRC_PD4_Pos                   (4U)
14249 #define PWR_PDCRC_PD4_Msk                   (0x1UL << PWR_PDCRC_PD4_Pos)            /*!< 0x00000010 */
14250 #define PWR_PDCRC_PD4                       PWR_PDCRC_PD4_Msk                       /*!< Apply pull-down for PC4  */
14251 #define PWR_PDCRC_PD5_Pos                   (5U)
14252 #define PWR_PDCRC_PD5_Msk                   (0x1UL << PWR_PDCRC_PD5_Pos)            /*!< 0x00000020 */
14253 #define PWR_PDCRC_PD5                       PWR_PDCRC_PD5_Msk                       /*!< Apply pull-down for PC5  */
14254 #define PWR_PDCRC_PD6_Pos                   (6U)
14255 #define PWR_PDCRC_PD6_Msk                   (0x1UL << PWR_PDCRC_PD6_Pos)            /*!< 0x00000040 */
14256 #define PWR_PDCRC_PD6                       PWR_PDCRC_PD6_Msk                       /*!< Apply pull-down for PC6  */
14257 #define PWR_PDCRC_PD7_Pos                   (7U)
14258 #define PWR_PDCRC_PD7_Msk                   (0x1UL << PWR_PDCRC_PD7_Pos)            /*!< 0x00000080 */
14259 #define PWR_PDCRC_PD7                       PWR_PDCRC_PD7_Msk                       /*!< Apply pull-down for PC7  */
14260 #define PWR_PDCRC_PD8_Pos                   (8U)
14261 #define PWR_PDCRC_PD8_Msk                   (0x1UL << PWR_PDCRC_PD8_Pos)            /*!< 0x00000100 */
14262 #define PWR_PDCRC_PD8                       PWR_PDCRC_PD8_Msk                       /*!< Apply pull-down for PC8  */
14263 #define PWR_PDCRC_PD9_Pos                   (9U)
14264 #define PWR_PDCRC_PD9_Msk                   (0x1UL << PWR_PDCRC_PD9_Pos)            /*!< 0x00000200 */
14265 #define PWR_PDCRC_PD9                       PWR_PDCRC_PD9_Msk                       /*!< Apply pull-down for PC9  */
14266 #define PWR_PDCRC_PD10_Pos                  (10U)
14267 #define PWR_PDCRC_PD10_Msk                  (0x1UL << PWR_PDCRC_PD10_Pos)           /*!< 0x00000400 */
14268 #define PWR_PDCRC_PD10                      PWR_PDCRC_PD10_Msk                      /*!< Apply pull-down for PC10 */
14269 #define PWR_PDCRC_PD11_Pos                  (11U)
14270 #define PWR_PDCRC_PD11_Msk                  (0x1UL << PWR_PDCRC_PD11_Pos)           /*!< 0x00000800 */
14271 #define PWR_PDCRC_PD11                      PWR_PDCRC_PD11_Msk                      /*!< Apply pull-down for PC11 */
14272 #define PWR_PDCRC_PD12_Pos                  (12U)
14273 #define PWR_PDCRC_PD12_Msk                  (0x1UL << PWR_PDCRC_PD12_Pos)           /*!< 0x00001000 */
14274 #define PWR_PDCRC_PD12                      PWR_PDCRC_PD12_Msk                      /*!< Apply pull-down for PC12 */
14275 #define PWR_PDCRC_PD13_Pos                  (13U)
14276 #define PWR_PDCRC_PD13_Msk                  (0x1UL << PWR_PDCRC_PD13_Pos)           /*!< 0x00002000 */
14277 #define PWR_PDCRC_PD13                      PWR_PDCRC_PD13_Msk                      /*!< Apply pull-down for PC13 */
14278 #define PWR_PDCRC_PD14_Pos                  (14U)
14279 #define PWR_PDCRC_PD14_Msk                  (0x1UL << PWR_PDCRC_PD14_Pos)           /*!< 0x00004000 */
14280 #define PWR_PDCRC_PD14                      PWR_PDCRC_PD14_Msk                      /*!< Apply pull-down for PC14 */
14281 #define PWR_PDCRC_PD15_Pos                  (15U)
14282 #define PWR_PDCRC_PD15_Msk                  (0x1UL << PWR_PDCRC_PD15_Pos)           /*!< 0x00008000 */
14283 #define PWR_PDCRC_PD15                      PWR_PDCRC_PD15_Msk                      /*!< Apply pull-down for PC15 */
14284 
14285 /********************  Bit definition for PWR_PUCRD register  *****************/
14286 #define PWR_PUCRD_PU0_Pos                   (0U)
14287 #define PWR_PUCRD_PU0_Msk                   (0x1UL << PWR_PUCRD_PU0_Pos)            /*!< 0x00000001 */
14288 #define PWR_PUCRD_PU0                       PWR_PUCRD_PU0_Msk                       /*!< Apply pull-up for PD0  */
14289 #define PWR_PUCRD_PU1_Pos                   (1U)
14290 #define PWR_PUCRD_PU1_Msk                   (0x1UL << PWR_PUCRD_PU1_Pos)            /*!< 0x00000002 */
14291 #define PWR_PUCRD_PU1                       PWR_PUCRD_PU1_Msk                       /*!< Apply pull-up for PD1  */
14292 #define PWR_PUCRD_PU2_Pos                   (2U)
14293 #define PWR_PUCRD_PU2_Msk                   (0x1UL << PWR_PUCRD_PU2_Pos)            /*!< 0x00000004 */
14294 #define PWR_PUCRD_PU2                       PWR_PUCRD_PU2_Msk                       /*!< Apply pull-up for PD2  */
14295 #define PWR_PUCRD_PU3_Pos                   (3U)
14296 #define PWR_PUCRD_PU3_Msk                   (0x1UL << PWR_PUCRD_PU3_Pos)            /*!< 0x00000008 */
14297 #define PWR_PUCRD_PU3                       PWR_PUCRD_PU3_Msk                       /*!< Apply pull-up for PD3  */
14298 #define PWR_PUCRD_PU4_Pos                   (4U)
14299 #define PWR_PUCRD_PU4_Msk                   (0x1UL << PWR_PUCRD_PU4_Pos)            /*!< 0x00000010 */
14300 #define PWR_PUCRD_PU4                       PWR_PUCRD_PU4_Msk                       /*!< Apply pull-up for PD4  */
14301 #define PWR_PUCRD_PU5_Pos                   (5U)
14302 #define PWR_PUCRD_PU5_Msk                   (0x1UL << PWR_PUCRD_PU5_Pos)            /*!< 0x00000020 */
14303 #define PWR_PUCRD_PU5                       PWR_PUCRD_PU5_Msk                       /*!< Apply pull-up for PD5  */
14304 #define PWR_PUCRD_PU6_Pos                   (6U)
14305 #define PWR_PUCRD_PU6_Msk                   (0x1UL << PWR_PUCRD_PU6_Pos)            /*!< 0x00000040 */
14306 #define PWR_PUCRD_PU6                       PWR_PUCRD_PU6_Msk                       /*!< Apply pull-up for PD6  */
14307 #define PWR_PUCRD_PU7_Pos                   (7U)
14308 #define PWR_PUCRD_PU7_Msk                   (0x1UL << PWR_PUCRD_PU7_Pos)            /*!< 0x00000080 */
14309 #define PWR_PUCRD_PU7                       PWR_PUCRD_PU7_Msk                       /*!< Apply pull-up for PD7  */
14310 #define PWR_PUCRD_PU8_Pos                   (8U)
14311 #define PWR_PUCRD_PU8_Msk                   (0x1UL << PWR_PUCRD_PU8_Pos)            /*!< 0x00000100 */
14312 #define PWR_PUCRD_PU8                       PWR_PUCRD_PU8_Msk                       /*!< Apply pull-up for PD8  */
14313 #define PWR_PUCRD_PU9_Pos                   (9U)
14314 #define PWR_PUCRD_PU9_Msk                   (0x1UL << PWR_PUCRD_PU9_Pos)            /*!< 0x00000200 */
14315 #define PWR_PUCRD_PU9                       PWR_PUCRD_PU9_Msk                       /*!< Apply pull-up for PD9  */
14316 #define PWR_PUCRD_PU10_Pos                  (10U)
14317 #define PWR_PUCRD_PU10_Msk                  (0x1UL << PWR_PUCRD_PU10_Pos)           /*!< 0x00000400 */
14318 #define PWR_PUCRD_PU10                      PWR_PUCRD_PU10_Msk                      /*!< Apply pull-up for PD10 */
14319 #define PWR_PUCRD_PU11_Pos                  (11U)
14320 #define PWR_PUCRD_PU11_Msk                  (0x1UL << PWR_PUCRD_PU11_Pos)           /*!< 0x00000800 */
14321 #define PWR_PUCRD_PU11                      PWR_PUCRD_PU11_Msk                      /*!< Apply pull-up for PD11 */
14322 #define PWR_PUCRD_PU12_Pos                  (12U)
14323 #define PWR_PUCRD_PU12_Msk                  (0x1UL << PWR_PUCRD_PU12_Pos)           /*!< 0x00001000 */
14324 #define PWR_PUCRD_PU12                      PWR_PUCRD_PU12_Msk                      /*!< Apply pull-up for PD12 */
14325 #define PWR_PUCRD_PU13_Pos                  (13U)
14326 #define PWR_PUCRD_PU13_Msk                  (0x1UL << PWR_PUCRD_PU13_Pos)           /*!< 0x00002000 */
14327 #define PWR_PUCRD_PU13                      PWR_PUCRD_PU13_Msk                      /*!< Apply pull-up for PD13 */
14328 #define PWR_PUCRD_PU14_Pos                  (14U)
14329 #define PWR_PUCRD_PU14_Msk                  (0x1UL << PWR_PUCRD_PU14_Pos)           /*!< 0x00004000 */
14330 #define PWR_PUCRD_PU14                      PWR_PUCRD_PU14_Msk                      /*!< Apply pull-up for PD14 */
14331 #define PWR_PUCRD_PU15_Pos                  (15U)
14332 #define PWR_PUCRD_PU15_Msk                  (0x1UL << PWR_PUCRD_PU15_Pos)           /*!< 0x00008000 */
14333 #define PWR_PUCRD_PU15                      PWR_PUCRD_PU15_Msk                      /*!< Apply pull-up for PD15 */
14334 
14335 /********************  Bit definition for PWR_PDCRD register  *****************/
14336 #define PWR_PDCRD_PD0_Pos                   (0U)
14337 #define PWR_PDCRD_PD0_Msk                   (0x1UL << PWR_PDCRD_PD0_Pos)            /*!< 0x00000001 */
14338 #define PWR_PDCRD_PD0                       PWR_PDCRD_PD0_Msk                       /*!< Apply pull-down for PD0  */
14339 #define PWR_PDCRD_PD1_Pos                   (1U)
14340 #define PWR_PDCRD_PD1_Msk                   (0x1UL << PWR_PDCRD_PD1_Pos)            /*!< 0x00000002 */
14341 #define PWR_PDCRD_PD1                       PWR_PDCRD_PD1_Msk                       /*!< Apply pull-down for PD1  */
14342 #define PWR_PDCRD_PD2_Pos                   (2U)
14343 #define PWR_PDCRD_PD2_Msk                   (0x1UL << PWR_PDCRD_PD2_Pos)            /*!< 0x00000004 */
14344 #define PWR_PDCRD_PD2                       PWR_PDCRD_PD2_Msk                       /*!< Apply pull-down for PD2  */
14345 #define PWR_PDCRD_PD3_Pos                   (3U)
14346 #define PWR_PDCRD_PD3_Msk                   (0x1UL << PWR_PDCRD_PD3_Pos)            /*!< 0x00000008 */
14347 #define PWR_PDCRD_PD3                       PWR_PDCRD_PD3_Msk                       /*!< Apply pull-down for PD3  */
14348 #define PWR_PDCRD_PD4_Pos                   (4U)
14349 #define PWR_PDCRD_PD4_Msk                   (0x1UL << PWR_PDCRD_PD4_Pos)            /*!< 0x00000010 */
14350 #define PWR_PDCRD_PD4                       PWR_PDCRD_PD4_Msk                       /*!< Apply pull-down for PD4  */
14351 #define PWR_PDCRD_PD5_Pos                   (5U)
14352 #define PWR_PDCRD_PD5_Msk                   (0x1UL << PWR_PDCRD_PD5_Pos)            /*!< 0x00000020 */
14353 #define PWR_PDCRD_PD5                       PWR_PDCRD_PD5_Msk                       /*!< Apply pull-down for PD5  */
14354 #define PWR_PDCRD_PD6_Pos                   (6U)
14355 #define PWR_PDCRD_PD6_Msk                   (0x1UL << PWR_PDCRD_PD6_Pos)            /*!< 0x00000040 */
14356 #define PWR_PDCRD_PD6                       PWR_PDCRD_PD6_Msk                       /*!< Apply pull-down for PD6  */
14357 #define PWR_PDCRD_PD7_Pos                   (7U)
14358 #define PWR_PDCRD_PD7_Msk                   (0x1UL << PWR_PDCRD_PD7_Pos)            /*!< 0x00000080 */
14359 #define PWR_PDCRD_PD7                       PWR_PDCRD_PD7_Msk                       /*!< Apply pull-down for PD7  */
14360 #define PWR_PDCRD_PD8_Pos                   (8U)
14361 #define PWR_PDCRD_PD8_Msk                   (0x1UL << PWR_PDCRD_PD8_Pos)            /*!< 0x00000100 */
14362 #define PWR_PDCRD_PD8                       PWR_PDCRD_PD8_Msk                       /*!< Apply pull-down for PD8  */
14363 #define PWR_PDCRD_PD9_Pos                   (9U)
14364 #define PWR_PDCRD_PD9_Msk                   (0x1UL << PWR_PDCRD_PD9_Pos)            /*!< 0x00000200 */
14365 #define PWR_PDCRD_PD9                       PWR_PDCRD_PD9_Msk                       /*!< Apply pull-down for PD9  */
14366 #define PWR_PDCRD_PD10_Pos                  (10U)
14367 #define PWR_PDCRD_PD10_Msk                  (0x1UL << PWR_PDCRD_PD10_Pos)           /*!< 0x00000400 */
14368 #define PWR_PDCRD_PD10                      PWR_PDCRD_PD10_Msk                      /*!< Apply pull-down for PD10 */
14369 #define PWR_PDCRD_PD11_Pos                  (11U)
14370 #define PWR_PDCRD_PD11_Msk                  (0x1UL << PWR_PDCRD_PD11_Pos)           /*!< 0x00000800 */
14371 #define PWR_PDCRD_PD11                      PWR_PDCRD_PD11_Msk                      /*!< Apply pull-down for PD11 */
14372 #define PWR_PDCRD_PD12_Pos                  (12U)
14373 #define PWR_PDCRD_PD12_Msk                  (0x1UL << PWR_PDCRD_PD12_Pos)           /*!< 0x00001000 */
14374 #define PWR_PDCRD_PD12                      PWR_PDCRD_PD12_Msk                      /*!< Apply pull-down for PD12 */
14375 #define PWR_PDCRD_PD13_Pos                  (13U)
14376 #define PWR_PDCRD_PD13_Msk                  (0x1UL << PWR_PDCRD_PD13_Pos)           /*!< 0x00002000 */
14377 #define PWR_PDCRD_PD13                      PWR_PDCRD_PD13_Msk                      /*!< Apply pull-down for PD13 */
14378 #define PWR_PDCRD_PD14_Pos                  (14U)
14379 #define PWR_PDCRD_PD14_Msk                  (0x1UL << PWR_PDCRD_PD14_Pos)           /*!< 0x00004000 */
14380 #define PWR_PDCRD_PD14                      PWR_PDCRD_PD14_Msk                      /*!< Apply pull-down for PD14 */
14381 #define PWR_PDCRD_PD15_Pos                  (15U)
14382 #define PWR_PDCRD_PD15_Msk                  (0x1UL << PWR_PDCRD_PD15_Pos)           /*!< 0x00008000 */
14383 #define PWR_PDCRD_PD15                      PWR_PDCRD_PD15_Msk                      /*!< Apply pull-down for PD15 */
14384 
14385 /********************  Bit definition for PWR_PUCRE register  *****************/
14386 #define PWR_PUCRE_PU0_Pos                   (0U)
14387 #define PWR_PUCRE_PU0_Msk                   (0x1UL << PWR_PUCRE_PU0_Pos)            /*!< 0x00000001 */
14388 #define PWR_PUCRE_PU0                       PWR_PUCRE_PU0_Msk                       /*!< Apply pull-up for PE0  */
14389 #define PWR_PUCRE_PU1_Pos                   (1U)
14390 #define PWR_PUCRE_PU1_Msk                   (0x1UL << PWR_PUCRE_PU1_Pos)            /*!< 0x00000002 */
14391 #define PWR_PUCRE_PU1                       PWR_PUCRE_PU1_Msk                       /*!< Apply pull-up for PE1  */
14392 #define PWR_PUCRE_PU2_Pos                   (2U)
14393 #define PWR_PUCRE_PU2_Msk                   (0x1UL << PWR_PUCRE_PU2_Pos)            /*!< 0x00000004 */
14394 #define PWR_PUCRE_PU2                       PWR_PUCRE_PU2_Msk                       /*!< Apply pull-up for PE2  */
14395 #define PWR_PUCRE_PU3_Pos                   (3U)
14396 #define PWR_PUCRE_PU3_Msk                   (0x1UL << PWR_PUCRE_PU3_Pos)            /*!< 0x00000008 */
14397 #define PWR_PUCRE_PU3                       PWR_PUCRE_PU3_Msk                       /*!< Apply pull-up for PE3  */
14398 #define PWR_PUCRE_PU4_Pos                   (4U)
14399 #define PWR_PUCRE_PU4_Msk                   (0x1UL << PWR_PUCRE_PU4_Pos)            /*!< 0x00000010 */
14400 #define PWR_PUCRE_PU4                       PWR_PUCRE_PU4_Msk                       /*!< Apply pull-up for PE4  */
14401 #define PWR_PUCRE_PU5_Pos                   (5U)
14402 #define PWR_PUCRE_PU5_Msk                   (0x1UL << PWR_PUCRE_PU5_Pos)            /*!< 0x00000020 */
14403 #define PWR_PUCRE_PU5                       PWR_PUCRE_PU5_Msk                       /*!< Apply pull-up for PE5  */
14404 #define PWR_PUCRE_PU6_Pos                   (6U)
14405 #define PWR_PUCRE_PU6_Msk                   (0x1UL << PWR_PUCRE_PU6_Pos)            /*!< 0x00000040 */
14406 #define PWR_PUCRE_PU6                       PWR_PUCRE_PU6_Msk                       /*!< Apply pull-up for PE6  */
14407 #define PWR_PUCRE_PU7_Pos                   (7U)
14408 #define PWR_PUCRE_PU7_Msk                   (0x1UL << PWR_PUCRE_PU7_Pos)            /*!< 0x00000080 */
14409 #define PWR_PUCRE_PU7                       PWR_PUCRE_PU7_Msk                       /*!< Apply pull-up for PE7  */
14410 #define PWR_PUCRE_PU8_Pos                   (8U)
14411 #define PWR_PUCRE_PU8_Msk                   (0x1UL << PWR_PUCRE_PU8_Pos)            /*!< 0x00000100 */
14412 #define PWR_PUCRE_PU8                       PWR_PUCRE_PU8_Msk                       /*!< Apply pull-up for PE8  */
14413 #define PWR_PUCRE_PU9_Pos                   (9U)
14414 #define PWR_PUCRE_PU9_Msk                   (0x1UL << PWR_PUCRE_PU9_Pos)            /*!< 0x00000200 */
14415 #define PWR_PUCRE_PU9                       PWR_PUCRE_PU9_Msk                       /*!< Apply pull-up for PE9  */
14416 #define PWR_PUCRE_PU10_Pos                  (10U)
14417 #define PWR_PUCRE_PU10_Msk                  (0x1UL << PWR_PUCRE_PU10_Pos)           /*!< 0x00000400 */
14418 #define PWR_PUCRE_PU10                      PWR_PUCRE_PU10_Msk                      /*!< Apply pull-up for PE10 */
14419 #define PWR_PUCRE_PU11_Pos                  (11U)
14420 #define PWR_PUCRE_PU11_Msk                  (0x1UL << PWR_PUCRE_PU11_Pos)           /*!< 0x00000800 */
14421 #define PWR_PUCRE_PU11                      PWR_PUCRE_PU11_Msk                      /*!< Apply pull-up for PE11 */
14422 #define PWR_PUCRE_PU12_Pos                  (12U)
14423 #define PWR_PUCRE_PU12_Msk                  (0x1UL << PWR_PUCRE_PU12_Pos)           /*!< 0x00001000 */
14424 #define PWR_PUCRE_PU12                      PWR_PUCRE_PU12_Msk                      /*!< Apply pull-up for PE12 */
14425 #define PWR_PUCRE_PU13_Pos                  (13U)
14426 #define PWR_PUCRE_PU13_Msk                  (0x1UL << PWR_PUCRE_PU13_Pos)           /*!< 0x00002000 */
14427 #define PWR_PUCRE_PU13                      PWR_PUCRE_PU13_Msk                      /*!< Apply pull-up for PE13 */
14428 #define PWR_PUCRE_PU14_Pos                  (14U)
14429 #define PWR_PUCRE_PU14_Msk                  (0x1UL << PWR_PUCRE_PU14_Pos)           /*!< 0x00004000 */
14430 #define PWR_PUCRE_PU14                      PWR_PUCRE_PU14_Msk                      /*!< Apply pull-up for PE14 */
14431 #define PWR_PUCRE_PU15_Pos                  (15U)
14432 #define PWR_PUCRE_PU15_Msk                  (0x1UL << PWR_PUCRE_PU15_Pos)           /*!< 0x00008000 */
14433 #define PWR_PUCRE_PU15                      PWR_PUCRE_PU15_Msk                      /*!< Apply pull-up for PE15 */
14434 
14435 /********************  Bit definition for PWR_PDCRE register  *****************/
14436 #define PWR_PDCRE_PD0_Pos                   (0U)
14437 #define PWR_PDCRE_PD0_Msk                   (0x1UL << PWR_PDCRE_PD0_Pos)            /*!< 0x00000001 */
14438 #define PWR_PDCRE_PD0                       PWR_PDCRE_PD0_Msk                       /*!< Apply pull-down for PE0  */
14439 #define PWR_PDCRE_PD1_Pos                   (1U)
14440 #define PWR_PDCRE_PD1_Msk                   (0x1UL << PWR_PDCRE_PD1_Pos)            /*!< 0x00000002 */
14441 #define PWR_PDCRE_PD1                       PWR_PDCRE_PD1_Msk                       /*!< Apply pull-down for PE1  */
14442 #define PWR_PDCRE_PD2_Pos                   (2U)
14443 #define PWR_PDCRE_PD2_Msk                   (0x1UL << PWR_PDCRE_PD2_Pos)            /*!< 0x00000004 */
14444 #define PWR_PDCRE_PD2                       PWR_PDCRE_PD2_Msk                       /*!< Apply pull-down for PE2  */
14445 #define PWR_PDCRE_PD3_Pos                   (3U)
14446 #define PWR_PDCRE_PD3_Msk                   (0x1UL << PWR_PDCRE_PD3_Pos)            /*!< 0x00000008 */
14447 #define PWR_PDCRE_PD3                       PWR_PDCRE_PD3_Msk                       /*!< Apply pull-down for PE3  */
14448 #define PWR_PDCRE_PD4_Pos                   (4U)
14449 #define PWR_PDCRE_PD4_Msk                   (0x1UL << PWR_PDCRE_PD4_Pos)            /*!< 0x00000010 */
14450 #define PWR_PDCRE_PD4                       PWR_PDCRE_PD4_Msk                       /*!< Apply pull-down for PE4  */
14451 #define PWR_PDCRE_PD5_Pos                   (5U)
14452 #define PWR_PDCRE_PD5_Msk                   (0x1UL << PWR_PDCRE_PD5_Pos)            /*!< 0x00000020 */
14453 #define PWR_PDCRE_PD5                       PWR_PDCRE_PD5_Msk                       /*!< Apply pull-down for PE5  */
14454 #define PWR_PDCRE_PD6_Pos                   (6U)
14455 #define PWR_PDCRE_PD6_Msk                   (0x1UL << PWR_PDCRE_PD6_Pos)            /*!< 0x00000040 */
14456 #define PWR_PDCRE_PD6                       PWR_PDCRE_PD6_Msk                       /*!< Apply pull-down for PE6  */
14457 #define PWR_PDCRE_PD7_Pos                   (7U)
14458 #define PWR_PDCRE_PD7_Msk                   (0x1UL << PWR_PDCRE_PD7_Pos)            /*!< 0x00000080 */
14459 #define PWR_PDCRE_PD7                       PWR_PDCRE_PD7_Msk                       /*!< Apply pull-down for PE7  */
14460 #define PWR_PDCRE_PD8_Pos                   (8U)
14461 #define PWR_PDCRE_PD8_Msk                   (0x1UL << PWR_PDCRE_PD8_Pos)            /*!< 0x00000100 */
14462 #define PWR_PDCRE_PD8                       PWR_PDCRE_PD8_Msk                       /*!< Apply pull-down for PE8  */
14463 #define PWR_PDCRE_PD9_Pos                   (9U)
14464 #define PWR_PDCRE_PD9_Msk                   (0x1UL << PWR_PDCRE_PD9_Pos)            /*!< 0x00000200 */
14465 #define PWR_PDCRE_PD9                       PWR_PDCRE_PD9_Msk                       /*!< Apply pull-down for PE9  */
14466 #define PWR_PDCRE_PD10_Pos                  (10U)
14467 #define PWR_PDCRE_PD10_Msk                  (0x1UL << PWR_PDCRE_PD10_Pos)           /*!< 0x00000400 */
14468 #define PWR_PDCRE_PD10                      PWR_PDCRE_PD10_Msk                      /*!< Apply pull-down for PE10 */
14469 #define PWR_PDCRE_PD11_Pos                  (11U)
14470 #define PWR_PDCRE_PD11_Msk                  (0x1UL << PWR_PDCRE_PD11_Pos)           /*!< 0x00000800 */
14471 #define PWR_PDCRE_PD11                      PWR_PDCRE_PD11_Msk                      /*!< Apply pull-down for PE11 */
14472 #define PWR_PDCRE_PD12_Pos                  (12U)
14473 #define PWR_PDCRE_PD12_Msk                  (0x1UL << PWR_PDCRE_PD12_Pos)           /*!< 0x00001000 */
14474 #define PWR_PDCRE_PD12                      PWR_PDCRE_PD12_Msk                      /*!< Apply pull-down for PE12 */
14475 #define PWR_PDCRE_PD13_Pos                  (13U)
14476 #define PWR_PDCRE_PD13_Msk                  (0x1UL << PWR_PDCRE_PD13_Pos)           /*!< 0x00002000 */
14477 #define PWR_PDCRE_PD13                      PWR_PDCRE_PD13_Msk                      /*!< Apply pull-down for PE13 */
14478 #define PWR_PDCRE_PD14_Pos                  (14U)
14479 #define PWR_PDCRE_PD14_Msk                  (0x1UL << PWR_PDCRE_PD14_Pos)           /*!< 0x00004000 */
14480 #define PWR_PDCRE_PD14                      PWR_PDCRE_PD14_Msk                      /*!< Apply pull-down for PE14 */
14481 #define PWR_PDCRE_PD15_Pos                  (15U)
14482 #define PWR_PDCRE_PD15_Msk                  (0x1UL << PWR_PDCRE_PD15_Pos)           /*!< 0x00008000 */
14483 #define PWR_PDCRE_PD15                      PWR_PDCRE_PD15_Msk                      /*!< Apply pull-down for PE15 */
14484 
14485 /********************  Bit definition for PWR_PUCRF register  *****************/
14486 #define PWR_PUCRF_PU0_Pos                   (0U)
14487 #define PWR_PUCRF_PU0_Msk                   (0x1UL << PWR_PUCRF_PU0_Pos)            /*!< 0x00000001 */
14488 #define PWR_PUCRF_PU0                       PWR_PUCRF_PU0_Msk                       /*!< Apply pull-up for PF0  */
14489 #define PWR_PUCRF_PU1_Pos                   (1U)
14490 #define PWR_PUCRF_PU1_Msk                   (0x1UL << PWR_PUCRF_PU1_Pos)            /*!< 0x00000002 */
14491 #define PWR_PUCRF_PU1                       PWR_PUCRF_PU1_Msk                       /*!< Apply pull-up for PF1  */
14492 #define PWR_PUCRF_PU2_Pos                   (2U)
14493 #define PWR_PUCRF_PU2_Msk                   (0x1UL << PWR_PUCRF_PU2_Pos)            /*!< 0x00000004 */
14494 #define PWR_PUCRF_PU2                       PWR_PUCRF_PU2_Msk                       /*!< Apply pull-up for PF2  */
14495 #define PWR_PUCRF_PU3_Pos                   (3U)
14496 #define PWR_PUCRF_PU3_Msk                   (0x1UL << PWR_PUCRF_PU3_Pos)            /*!< 0x00000008 */
14497 #define PWR_PUCRF_PU3                       PWR_PUCRF_PU3_Msk                       /*!< Apply pull-up for PF3  */
14498 #define PWR_PUCRF_PU4_Pos                   (4U)
14499 #define PWR_PUCRF_PU4_Msk                   (0x1UL << PWR_PUCRF_PU4_Pos)            /*!< 0x00000010 */
14500 #define PWR_PUCRF_PU4                       PWR_PUCRF_PU4_Msk                       /*!< Apply pull-up for PF4  */
14501 #define PWR_PUCRF_PU5_Pos                   (5U)
14502 #define PWR_PUCRF_PU5_Msk                   (0x1UL << PWR_PUCRF_PU5_Pos)            /*!< 0x00000020 */
14503 #define PWR_PUCRF_PU5                       PWR_PUCRF_PU5_Msk                       /*!< Apply pull-up for PF5  */
14504 #define PWR_PUCRF_PU6_Pos                   (6U)
14505 #define PWR_PUCRF_PU6_Msk                   (0x1UL << PWR_PUCRF_PU6_Pos)            /*!< 0x00000040 */
14506 #define PWR_PUCRF_PU6                       PWR_PUCRF_PU6_Msk                       /*!< Apply pull-up for PF6  */
14507 #define PWR_PUCRF_PU7_Pos                   (7U)
14508 #define PWR_PUCRF_PU7_Msk                   (0x1UL << PWR_PUCRF_PU7_Pos)            /*!< 0x00000080 */
14509 #define PWR_PUCRF_PU7                       PWR_PUCRF_PU7_Msk                       /*!< Apply pull-up for PF7  */
14510 #define PWR_PUCRF_PU8_Pos                   (8U)
14511 #define PWR_PUCRF_PU8_Msk                   (0x1UL << PWR_PUCRF_PU8_Pos)            /*!< 0x00000100 */
14512 #define PWR_PUCRF_PU8                       PWR_PUCRF_PU8_Msk                       /*!< Apply pull-up for PF8  */
14513 #define PWR_PUCRF_PU9_Pos                   (9U)
14514 #define PWR_PUCRF_PU9_Msk                   (0x1UL << PWR_PUCRF_PU9_Pos)            /*!< 0x00000200 */
14515 #define PWR_PUCRF_PU9                       PWR_PUCRF_PU9_Msk                       /*!< Apply pull-up for PF9  */
14516 #define PWR_PUCRF_PU10_Pos                  (10U)
14517 #define PWR_PUCRF_PU10_Msk                  (0x1UL << PWR_PUCRF_PU10_Pos)           /*!< 0x00000400 */
14518 #define PWR_PUCRF_PU10                      PWR_PUCRF_PU10_Msk                      /*!< Apply pull-up for PF10 */
14519 #define PWR_PUCRF_PU11_Pos                  (11U)
14520 #define PWR_PUCRF_PU11_Msk                  (0x1UL << PWR_PUCRF_PU11_Pos)           /*!< 0x00000800 */
14521 #define PWR_PUCRF_PU11                      PWR_PUCRF_PU11_Msk                      /*!< Apply pull-up for PF11 */
14522 #define PWR_PUCRF_PU12_Pos                  (12U)
14523 #define PWR_PUCRF_PU12_Msk                  (0x1UL << PWR_PUCRF_PU12_Pos)           /*!< 0x00001000 */
14524 #define PWR_PUCRF_PU12                      PWR_PUCRF_PU12_Msk                      /*!< Apply pull-up for PF12 */
14525 #define PWR_PUCRF_PU13_Pos                  (13U)
14526 #define PWR_PUCRF_PU13_Msk                  (0x1UL << PWR_PUCRF_PU13_Pos)           /*!< 0x00002000 */
14527 #define PWR_PUCRF_PU13                      PWR_PUCRF_PU13_Msk                      /*!< Apply pull-up for PF13 */
14528 #define PWR_PUCRF_PU14_Pos                  (14U)
14529 #define PWR_PUCRF_PU14_Msk                  (0x1UL << PWR_PUCRF_PU14_Pos)           /*!< 0x00004000 */
14530 #define PWR_PUCRF_PU14                      PWR_PUCRF_PU14_Msk                      /*!< Apply pull-up for PF14 */
14531 #define PWR_PUCRF_PU15_Pos                  (15U)
14532 #define PWR_PUCRF_PU15_Msk                  (0x1UL << PWR_PUCRF_PU15_Pos)           /*!< 0x00008000 */
14533 #define PWR_PUCRF_PU15                      PWR_PUCRF_PU15_Msk                      /*!< Apply pull-up for PF15 */
14534 
14535 /********************  Bit definition for PWR_PDCRF register  *****************/
14536 #define PWR_PDCRF_PD0_Pos                   (0U)
14537 #define PWR_PDCRF_PD0_Msk                   (0x1UL << PWR_PDCRF_PD0_Pos)            /*!< 0x00000001 */
14538 #define PWR_PDCRF_PD0                       PWR_PDCRF_PD0_Msk                       /*!< Apply pull-down for PF0  */
14539 #define PWR_PDCRF_PD1_Pos                   (1U)
14540 #define PWR_PDCRF_PD1_Msk                   (0x1UL << PWR_PDCRF_PD1_Pos)            /*!< 0x00000002 */
14541 #define PWR_PDCRF_PD1                       PWR_PDCRF_PD1_Msk                       /*!< Apply pull-down for PF1  */
14542 #define PWR_PDCRF_PD2_Pos                   (2U)
14543 #define PWR_PDCRF_PD2_Msk                   (0x1UL << PWR_PDCRF_PD2_Pos)            /*!< 0x00000004 */
14544 #define PWR_PDCRF_PD2                       PWR_PDCRF_PD2_Msk                       /*!< Apply pull-down for PF2  */
14545 #define PWR_PDCRF_PD3_Pos                   (3U)
14546 #define PWR_PDCRF_PD3_Msk                   (0x1UL << PWR_PDCRF_PD3_Pos)            /*!< 0x00000008 */
14547 #define PWR_PDCRF_PD3                       PWR_PDCRF_PD3_Msk                       /*!< Apply pull-down for PF3  */
14548 #define PWR_PDCRF_PD4_Pos                   (4U)
14549 #define PWR_PDCRF_PD4_Msk                   (0x1UL << PWR_PDCRF_PD4_Pos)            /*!< 0x00000010 */
14550 #define PWR_PDCRF_PD4                       PWR_PDCRF_PD4_Msk                       /*!< Apply pull-down for PF4  */
14551 #define PWR_PDCRF_PD5_Pos                   (5U)
14552 #define PWR_PDCRF_PD5_Msk                   (0x1UL << PWR_PDCRF_PD5_Pos)            /*!< 0x00000020 */
14553 #define PWR_PDCRF_PD5                       PWR_PDCRF_PD5_Msk                       /*!< Apply pull-down for PF5  */
14554 #define PWR_PDCRF_PD6_Pos                   (6U)
14555 #define PWR_PDCRF_PD6_Msk                   (0x1UL << PWR_PDCRF_PD6_Pos)            /*!< 0x00000040 */
14556 #define PWR_PDCRF_PD6                       PWR_PDCRF_PD6_Msk                       /*!< Apply pull-down for PF6  */
14557 #define PWR_PDCRF_PD7_Pos                   (7U)
14558 #define PWR_PDCRF_PD7_Msk                   (0x1UL << PWR_PDCRF_PD7_Pos)            /*!< 0x00000080 */
14559 #define PWR_PDCRF_PD7                       PWR_PDCRF_PD7_Msk                       /*!< Apply pull-down for PF7  */
14560 #define PWR_PDCRF_PD8_Pos                   (8U)
14561 #define PWR_PDCRF_PD8_Msk                   (0x1UL << PWR_PDCRF_PD8_Pos)            /*!< 0x00000100 */
14562 #define PWR_PDCRF_PD8                       PWR_PDCRF_PD8_Msk                       /*!< Apply pull-down for PF8  */
14563 #define PWR_PDCRF_PD9_Pos                   (9U)
14564 #define PWR_PDCRF_PD9_Msk                   (0x1UL << PWR_PDCRF_PD9_Pos)            /*!< 0x00000200 */
14565 #define PWR_PDCRF_PD9                       PWR_PDCRF_PD9_Msk                       /*!< Apply pull-down for PF9  */
14566 #define PWR_PDCRF_PD10_Pos                  (10U)
14567 #define PWR_PDCRF_PD10_Msk                  (0x1UL << PWR_PDCRF_PD10_Pos)           /*!< 0x00000400 */
14568 #define PWR_PDCRF_PD10                      PWR_PDCRF_PD10_Msk                      /*!< Apply pull-down for PF10 */
14569 #define PWR_PDCRF_PD11_Pos                  (11U)
14570 #define PWR_PDCRF_PD11_Msk                  (0x1UL << PWR_PDCRF_PD11_Pos)           /*!< 0x00000800 */
14571 #define PWR_PDCRF_PD11                      PWR_PDCRF_PD11_Msk                      /*!< Apply pull-down for PF11 */
14572 #define PWR_PDCRF_PD12_Pos                  (12U)
14573 #define PWR_PDCRF_PD12_Msk                  (0x1UL << PWR_PDCRF_PD12_Pos)           /*!< 0x00001000 */
14574 #define PWR_PDCRF_PD12                      PWR_PDCRF_PD12_Msk                      /*!< Apply pull-down for PF12 */
14575 #define PWR_PDCRF_PD13_Pos                  (13U)
14576 #define PWR_PDCRF_PD13_Msk                  (0x1UL << PWR_PDCRF_PD13_Pos)           /*!< 0x00002000 */
14577 #define PWR_PDCRF_PD13                      PWR_PDCRF_PD13_Msk                      /*!< Apply pull-down for PF13 */
14578 #define PWR_PDCRF_PD14_Pos                  (14U)
14579 #define PWR_PDCRF_PD14_Msk                  (0x1UL << PWR_PDCRF_PD14_Pos)           /*!< 0x00004000 */
14580 #define PWR_PDCRF_PD14                      PWR_PDCRF_PD14_Msk                      /*!< Apply pull-down for PF14 */
14581 #define PWR_PDCRF_PD15_Pos                  (15U)
14582 #define PWR_PDCRF_PD15_Msk                  (0x1UL << PWR_PDCRF_PD15_Pos)           /*!< 0x00008000 */
14583 #define PWR_PDCRF_PD15                      PWR_PDCRF_PD15_Msk                      /*!< Apply pull-down for PF15 */
14584 
14585 /********************  Bit definition for PWR_PUCRG register  *****************/
14586 #define PWR_PUCRG_PU0_Pos                   (0U)
14587 #define PWR_PUCRG_PU0_Msk                   (0x1UL << PWR_PUCRG_PU0_Pos)            /*!< 0x00000001 */
14588 #define PWR_PUCRG_PU0                       PWR_PUCRG_PU0_Msk                       /*!< Apply pull-up for PG0  */
14589 #define PWR_PUCRG_PU1_Pos                   (1U)
14590 #define PWR_PUCRG_PU1_Msk                   (0x1UL << PWR_PUCRG_PU1_Pos)            /*!< 0x00000002 */
14591 #define PWR_PUCRG_PU1                       PWR_PUCRG_PU1_Msk                       /*!< Apply pull-up for PG1  */
14592 #define PWR_PUCRG_PU2_Pos                   (2U)
14593 #define PWR_PUCRG_PU2_Msk                   (0x1UL << PWR_PUCRG_PU2_Pos)            /*!< 0x00000004 */
14594 #define PWR_PUCRG_PU2                       PWR_PUCRG_PU2_Msk                       /*!< Apply pull-up for PG2  */
14595 #define PWR_PUCRG_PU3_Pos                   (3U)
14596 #define PWR_PUCRG_PU3_Msk                   (0x1UL << PWR_PUCRG_PU3_Pos)            /*!< 0x00000008 */
14597 #define PWR_PUCRG_PU3                       PWR_PUCRG_PU3_Msk                       /*!< Apply pull-up for PG3  */
14598 #define PWR_PUCRG_PU4_Pos                   (4U)
14599 #define PWR_PUCRG_PU4_Msk                   (0x1UL << PWR_PUCRG_PU4_Pos)            /*!< 0x00000010 */
14600 #define PWR_PUCRG_PU4                       PWR_PUCRG_PU4_Msk                       /*!< Apply pull-up for PG4  */
14601 #define PWR_PUCRG_PU5_Pos                   (5U)
14602 #define PWR_PUCRG_PU5_Msk                   (0x1UL << PWR_PUCRG_PU5_Pos)            /*!< 0x00000020 */
14603 #define PWR_PUCRG_PU5                       PWR_PUCRG_PU5_Msk                       /*!< Apply pull-up for PG5  */
14604 #define PWR_PUCRG_PU6_Pos                   (6U)
14605 #define PWR_PUCRG_PU6_Msk                   (0x1UL << PWR_PUCRG_PU6_Pos)            /*!< 0x00000040 */
14606 #define PWR_PUCRG_PU6                       PWR_PUCRG_PU6_Msk                       /*!< Apply pull-up for PG6  */
14607 #define PWR_PUCRG_PU7_Pos                   (7U)
14608 #define PWR_PUCRG_PU7_Msk                   (0x1UL << PWR_PUCRG_PU7_Pos)            /*!< 0x00000080 */
14609 #define PWR_PUCRG_PU7                       PWR_PUCRG_PU7_Msk                       /*!< Apply pull-up for PG7  */
14610 #define PWR_PUCRG_PU8_Pos                   (8U)
14611 #define PWR_PUCRG_PU8_Msk                   (0x1UL << PWR_PUCRG_PU8_Pos)            /*!< 0x00000100 */
14612 #define PWR_PUCRG_PU8                       PWR_PUCRG_PU8_Msk                       /*!< Apply pull-up for PG8  */
14613 #define PWR_PUCRG_PU9_Pos                   (9U)
14614 #define PWR_PUCRG_PU9_Msk                   (0x1UL << PWR_PUCRG_PU9_Pos)            /*!< 0x00000200 */
14615 #define PWR_PUCRG_PU9                       PWR_PUCRG_PU9_Msk                       /*!< Apply pull-up for PG9  */
14616 #define PWR_PUCRG_PU10_Pos                  (10U)
14617 #define PWR_PUCRG_PU10_Msk                  (0x1UL << PWR_PUCRG_PU10_Pos)           /*!< 0x00000400 */
14618 #define PWR_PUCRG_PU10                      PWR_PUCRG_PU10_Msk                      /*!< Apply pull-up for PG10 */
14619 #define PWR_PUCRG_PU11_Pos                  (11U)
14620 #define PWR_PUCRG_PU11_Msk                  (0x1UL << PWR_PUCRG_PU11_Pos)           /*!< 0x00000800 */
14621 #define PWR_PUCRG_PU11                      PWR_PUCRG_PU11_Msk                      /*!< Apply pull-up for PG11 */
14622 #define PWR_PUCRG_PU12_Pos                  (12U)
14623 #define PWR_PUCRG_PU12_Msk                  (0x1UL << PWR_PUCRG_PU12_Pos)           /*!< 0x00001000 */
14624 #define PWR_PUCRG_PU12                      PWR_PUCRG_PU12_Msk                      /*!< Apply pull-up for PG12 */
14625 #define PWR_PUCRG_PU13_Pos                  (13U)
14626 #define PWR_PUCRG_PU13_Msk                  (0x1UL << PWR_PUCRG_PU13_Pos)           /*!< 0x00002000 */
14627 #define PWR_PUCRG_PU13                      PWR_PUCRG_PU13_Msk                      /*!< Apply pull-up for PG13 */
14628 #define PWR_PUCRG_PU14_Pos                  (14U)
14629 #define PWR_PUCRG_PU14_Msk                  (0x1UL << PWR_PUCRG_PU14_Pos)           /*!< 0x00004000 */
14630 #define PWR_PUCRG_PU14                      PWR_PUCRG_PU14_Msk                      /*!< Apply pull-up for PG14 */
14631 #define PWR_PUCRG_PU15_Pos                  (15U)
14632 #define PWR_PUCRG_PU15_Msk                  (0x1UL << PWR_PUCRG_PU15_Pos)           /*!< 0x00008000 */
14633 #define PWR_PUCRG_PU15                      PWR_PUCRG_PU15_Msk                      /*!< Apply pull-up for PG15 */
14634 
14635 /********************  Bit definition for PWR_PDCRG register  *****************/
14636 #define PWR_PDCRG_PD0_Pos                   (0U)
14637 #define PWR_PDCRG_PD0_Msk                   (0x1UL << PWR_PDCRG_PD0_Pos)            /*!< 0x00000001 */
14638 #define PWR_PDCRG_PD0                       PWR_PDCRG_PD0_Msk                       /*!< Apply pull-down for PG0  */
14639 #define PWR_PDCRG_PD1_Pos                   (1U)
14640 #define PWR_PDCRG_PD1_Msk                   (0x1UL << PWR_PDCRG_PD1_Pos)            /*!< 0x00000002 */
14641 #define PWR_PDCRG_PD1                       PWR_PDCRG_PD1_Msk                       /*!< Apply pull-down for PG1  */
14642 #define PWR_PDCRG_PD2_Pos                   (2U)
14643 #define PWR_PDCRG_PD2_Msk                   (0x1UL << PWR_PDCRG_PD2_Pos)            /*!< 0x00000004 */
14644 #define PWR_PDCRG_PD2                       PWR_PDCRG_PD2_Msk                       /*!< Apply pull-down for PG2  */
14645 #define PWR_PDCRG_PD3_Pos                   (3U)
14646 #define PWR_PDCRG_PD3_Msk                   (0x1UL << PWR_PDCRG_PD3_Pos)            /*!< 0x00000008 */
14647 #define PWR_PDCRG_PD3                       PWR_PDCRG_PD3_Msk                       /*!< Apply pull-down for PG3  */
14648 #define PWR_PDCRG_PD4_Pos                   (4U)
14649 #define PWR_PDCRG_PD4_Msk                   (0x1UL << PWR_PDCRG_PD4_Pos)            /*!< 0x00000010 */
14650 #define PWR_PDCRG_PD4                       PWR_PDCRG_PD4_Msk                       /*!< Apply pull-down for PG4  */
14651 #define PWR_PDCRG_PD5_Pos                   (5U)
14652 #define PWR_PDCRG_PD5_Msk                   (0x1UL << PWR_PDCRG_PD5_Pos)            /*!< 0x00000020 */
14653 #define PWR_PDCRG_PD5                       PWR_PDCRG_PD5_Msk                       /*!< Apply pull-down for PG5  */
14654 #define PWR_PDCRG_PD6_Pos                   (6U)
14655 #define PWR_PDCRG_PD6_Msk                   (0x1UL << PWR_PDCRG_PD6_Pos)            /*!< 0x00000040 */
14656 #define PWR_PDCRG_PD6                       PWR_PDCRG_PD6_Msk                       /*!< Apply pull-down for PG6  */
14657 #define PWR_PDCRG_PD7_Pos                   (7U)
14658 #define PWR_PDCRG_PD7_Msk                   (0x1UL << PWR_PDCRG_PD7_Pos)            /*!< 0x00000080 */
14659 #define PWR_PDCRG_PD7                       PWR_PDCRG_PD7_Msk                       /*!< Apply pull-down for PG7  */
14660 #define PWR_PDCRG_PD8_Pos                   (8U)
14661 #define PWR_PDCRG_PD8_Msk                   (0x1UL << PWR_PDCRG_PD8_Pos)            /*!< 0x00000100 */
14662 #define PWR_PDCRG_PD8                       PWR_PDCRG_PD8_Msk                       /*!< Apply pull-down for PG8  */
14663 #define PWR_PDCRG_PD9_Pos                   (9U)
14664 #define PWR_PDCRG_PD9_Msk                   (0x1UL << PWR_PDCRG_PD9_Pos)            /*!< 0x00000200 */
14665 #define PWR_PDCRG_PD9                       PWR_PDCRG_PD9_Msk                       /*!< Apply pull-down for PG9  */
14666 #define PWR_PDCRG_PD10_Pos                  (10U)
14667 #define PWR_PDCRG_PD10_Msk                  (0x1UL << PWR_PDCRG_PD10_Pos)           /*!< 0x00000400 */
14668 #define PWR_PDCRG_PD10                      PWR_PDCRG_PD10_Msk                      /*!< Apply pull-down for PG10 */
14669 #define PWR_PDCRG_PD11_Pos                  (11U)
14670 #define PWR_PDCRG_PD11_Msk                  (0x1UL << PWR_PDCRG_PD11_Pos)           /*!< 0x00000800 */
14671 #define PWR_PDCRG_PD11                      PWR_PDCRG_PD11_Msk                      /*!< Apply pull-down for PG11 */
14672 #define PWR_PDCRG_PD12_Pos                  (12U)
14673 #define PWR_PDCRG_PD12_Msk                  (0x1UL << PWR_PDCRG_PD12_Pos)           /*!< 0x00001000 */
14674 #define PWR_PDCRG_PD12                      PWR_PDCRG_PD12_Msk                      /*!< Apply pull-down for PG12 */
14675 #define PWR_PDCRG_PD13_Pos                  (13U)
14676 #define PWR_PDCRG_PD13_Msk                  (0x1UL << PWR_PDCRG_PD13_Pos)           /*!< 0x00002000 */
14677 #define PWR_PDCRG_PD13                      PWR_PDCRG_PD13_Msk                      /*!< Apply pull-down for PG13 */
14678 #define PWR_PDCRG_PD14_Pos                  (14U)
14679 #define PWR_PDCRG_PD14_Msk                  (0x1UL << PWR_PDCRG_PD14_Pos)           /*!< 0x00004000 */
14680 #define PWR_PDCRG_PD14                      PWR_PDCRG_PD14_Msk                      /*!< Apply pull-down for PG14 */
14681 #define PWR_PDCRG_PD15_Pos                  (15U)
14682 #define PWR_PDCRG_PD15_Msk                  (0x1UL << PWR_PDCRG_PD15_Pos)           /*!< 0x00008000 */
14683 #define PWR_PDCRG_PD15                      PWR_PDCRG_PD15_Msk                      /*!< Apply pull-down for PG15 */
14684 
14685 /********************  Bit definition for PWR_PUCRH register  *****************/
14686 #define PWR_PUCRH_PU0_Pos                   (0U)
14687 #define PWR_PUCRH_PU0_Msk                   (0x1UL << PWR_PUCRH_PU0_Pos)            /*!< 0x00000001 */
14688 #define PWR_PUCRH_PU0                       PWR_PUCRH_PU0_Msk                       /*!< Apply pull-up for PH0  */
14689 #define PWR_PUCRH_PU1_Pos                   (1U)
14690 #define PWR_PUCRH_PU1_Msk                   (0x1UL << PWR_PUCRH_PU1_Pos)            /*!< 0x00000002 */
14691 #define PWR_PUCRH_PU1                       PWR_PUCRH_PU1_Msk                       /*!< Apply pull-up for PH1  */
14692 #define PWR_PUCRH_PU2_Pos                   (2U)
14693 #define PWR_PUCRH_PU2_Msk                   (0x1UL << PWR_PUCRH_PU2_Pos)            /*!< 0x00000004 */
14694 #define PWR_PUCRH_PU2                       PWR_PUCRH_PU2_Msk                       /*!< Apply pull-up for PH2  */
14695 #define PWR_PUCRH_PU3_Pos                   (3U)
14696 #define PWR_PUCRH_PU3_Msk                   (0x1UL << PWR_PUCRH_PU3_Pos)            /*!< 0x00000008 */
14697 #define PWR_PUCRH_PU3                       PWR_PUCRH_PU3_Msk                       /*!< Apply pull-up for PH3  */
14698 #define PWR_PUCRH_PU4_Pos                   (4U)
14699 #define PWR_PUCRH_PU4_Msk                   (0x1UL << PWR_PUCRH_PU4_Pos)            /*!< 0x00000010 */
14700 #define PWR_PUCRH_PU4                       PWR_PUCRH_PU4_Msk                       /*!< Apply pull-up for PH4  */
14701 #define PWR_PUCRH_PU5_Pos                   (5U)
14702 #define PWR_PUCRH_PU5_Msk                   (0x1UL << PWR_PUCRH_PU5_Pos)            /*!< 0x00000020 */
14703 #define PWR_PUCRH_PU5                       PWR_PUCRH_PU5_Msk                       /*!< Apply pull-up for PH5  */
14704 #define PWR_PUCRH_PU6_Pos                   (6U)
14705 #define PWR_PUCRH_PU6_Msk                   (0x1UL << PWR_PUCRH_PU6_Pos)            /*!< 0x00000040 */
14706 #define PWR_PUCRH_PU6                       PWR_PUCRH_PU6_Msk                       /*!< Apply pull-up for PH6  */
14707 #define PWR_PUCRH_PU7_Pos                   (7U)
14708 #define PWR_PUCRH_PU7_Msk                   (0x1UL << PWR_PUCRH_PU7_Pos)            /*!< 0x00000080 */
14709 #define PWR_PUCRH_PU7                       PWR_PUCRH_PU7_Msk                       /*!< Apply pull-up for PH7  */
14710 #define PWR_PUCRH_PU8_Pos                   (8U)
14711 #define PWR_PUCRH_PU8_Msk                   (0x1UL << PWR_PUCRH_PU8_Pos)            /*!< 0x00000100 */
14712 #define PWR_PUCRH_PU8                       PWR_PUCRH_PU8_Msk                       /*!< Apply pull-up for PH8  */
14713 #define PWR_PUCRH_PU9_Pos                   (9U)
14714 #define PWR_PUCRH_PU9_Msk                   (0x1UL << PWR_PUCRH_PU9_Pos)            /*!< 0x00000200 */
14715 #define PWR_PUCRH_PU9                       PWR_PUCRH_PU9_Msk                       /*!< Apply pull-up for PH9  */
14716 #define PWR_PUCRH_PU10_Pos                  (10U)
14717 #define PWR_PUCRH_PU10_Msk                  (0x1UL << PWR_PUCRH_PU10_Pos)           /*!< 0x00000400 */
14718 #define PWR_PUCRH_PU10                      PWR_PUCRH_PU10_Msk                      /*!< Apply pull-up for PH10 */
14719 #define PWR_PUCRH_PU11_Pos                  (11U)
14720 #define PWR_PUCRH_PU11_Msk                  (0x1UL << PWR_PUCRH_PU11_Pos)           /*!< 0x00000800 */
14721 #define PWR_PUCRH_PU11                      PWR_PUCRH_PU11_Msk                      /*!< Apply pull-up for PH11 */
14722 #define PWR_PUCRH_PU12_Pos                  (12U)
14723 #define PWR_PUCRH_PU12_Msk                  (0x1UL << PWR_PUCRH_PU12_Pos)           /*!< 0x00001000 */
14724 #define PWR_PUCRH_PU12                      PWR_PUCRH_PU12_Msk                      /*!< Apply pull-up for PH12 */
14725 #define PWR_PUCRH_PU13_Pos                  (13U)
14726 #define PWR_PUCRH_PU13_Msk                  (0x1UL << PWR_PUCRH_PU13_Pos)           /*!< 0x00002000 */
14727 #define PWR_PUCRH_PU13                      PWR_PUCRH_PU13_Msk                      /*!< Apply pull-up for PH13 */
14728 #define PWR_PUCRH_PU14_Pos                  (14U)
14729 #define PWR_PUCRH_PU14_Msk                  (0x1UL << PWR_PUCRH_PU14_Pos)           /*!< 0x00004000 */
14730 #define PWR_PUCRH_PU14                      PWR_PUCRH_PU14_Msk                      /*!< Apply pull-up for PH14 */
14731 #define PWR_PUCRH_PU15_Pos                  (15U)
14732 #define PWR_PUCRH_PU15_Msk                  (0x1UL << PWR_PUCRH_PU15_Pos)           /*!< 0x00008000 */
14733 #define PWR_PUCRH_PU15                      PWR_PUCRH_PU15_Msk                      /*!< Apply pull-up for PH15 */
14734 
14735 /********************  Bit definition for PWR_PDCRH register  *****************/
14736 #define PWR_PDCRH_PD0_Pos                   (0U)
14737 #define PWR_PDCRH_PD0_Msk                   (0x1UL << PWR_PDCRH_PD0_Pos)            /*!< 0x00000001 */
14738 #define PWR_PDCRH_PD0                       PWR_PDCRH_PD0_Msk                       /*!< Apply pull-down for PH0  */
14739 #define PWR_PDCRH_PD1_Pos                   (1U)
14740 #define PWR_PDCRH_PD1_Msk                   (0x1UL << PWR_PDCRH_PD1_Pos)            /*!< 0x00000002 */
14741 #define PWR_PDCRH_PD1                       PWR_PDCRH_PD1_Msk                       /*!< Apply pull-down for PH1  */
14742 #define PWR_PDCRH_PD2_Pos                   (2U)
14743 #define PWR_PDCRH_PD2_Msk                   (0x1UL << PWR_PDCRH_PD2_Pos)            /*!< 0x00000004 */
14744 #define PWR_PDCRH_PD2                       PWR_PDCRH_PD2_Msk                       /*!< Apply pull-down for PH2  */
14745 #define PWR_PDCRH_PD3_Pos                   (3U)
14746 #define PWR_PDCRH_PD3_Msk                   (0x1UL << PWR_PDCRH_PD3_Pos)            /*!< 0x00000008 */
14747 #define PWR_PDCRH_PD3                       PWR_PDCRH_PD3_Msk                       /*!< Apply pull-down for PH3  */
14748 #define PWR_PDCRH_PD4_Pos                   (4U)
14749 #define PWR_PDCRH_PD4_Msk                   (0x1UL << PWR_PDCRH_PD4_Pos)            /*!< 0x00000010 */
14750 #define PWR_PDCRH_PD4                       PWR_PDCRH_PD4_Msk                       /*!< Apply pull-down for PH4  */
14751 #define PWR_PDCRH_PD5_Pos                   (5U)
14752 #define PWR_PDCRH_PD5_Msk                   (0x1UL << PWR_PDCRH_PD5_Pos)            /*!< 0x00000020 */
14753 #define PWR_PDCRH_PD5                       PWR_PDCRH_PD5_Msk                       /*!< Apply pull-down for PH5  */
14754 #define PWR_PDCRH_PD6_Pos                   (6U)
14755 #define PWR_PDCRH_PD6_Msk                   (0x1UL << PWR_PDCRH_PD6_Pos)            /*!< 0x00000040 */
14756 #define PWR_PDCRH_PD6                       PWR_PDCRH_PD6_Msk                       /*!< Apply pull-down for PH6  */
14757 #define PWR_PDCRH_PD7_Pos                   (7U)
14758 #define PWR_PDCRH_PD7_Msk                   (0x1UL << PWR_PDCRH_PD7_Pos)            /*!< 0x00000080 */
14759 #define PWR_PDCRH_PD7                       PWR_PDCRH_PD7_Msk                       /*!< Apply pull-down for PH7  */
14760 #define PWR_PDCRH_PD8_Pos                   (8U)
14761 #define PWR_PDCRH_PD8_Msk                   (0x1UL << PWR_PDCRH_PD8_Pos)            /*!< 0x00000100 */
14762 #define PWR_PDCRH_PD8                       PWR_PDCRH_PD8_Msk                       /*!< Apply pull-down for PH8  */
14763 #define PWR_PDCRH_PD9_Pos                   (9U)
14764 #define PWR_PDCRH_PD9_Msk                   (0x1UL << PWR_PDCRH_PD9_Pos)            /*!< 0x00000200 */
14765 #define PWR_PDCRH_PD9                       PWR_PDCRH_PD9_Msk                       /*!< Apply pull-down for PH9  */
14766 #define PWR_PDCRH_PD10_Pos                  (10U)
14767 #define PWR_PDCRH_PD10_Msk                  (0x1UL << PWR_PDCRH_PD10_Pos)           /*!< 0x00000400 */
14768 #define PWR_PDCRH_PD10                      PWR_PDCRH_PD10_Msk                      /*!< Apply pull-down for PH10 */
14769 #define PWR_PDCRH_PD11_Pos                  (11U)
14770 #define PWR_PDCRH_PD11_Msk                  (0x1UL << PWR_PDCRH_PD11_Pos)           /*!< 0x00000800 */
14771 #define PWR_PDCRH_PD11                      PWR_PDCRH_PD11_Msk                      /*!< Apply pull-down for PH11 */
14772 #define PWR_PDCRH_PD12_Pos                  (12U)
14773 #define PWR_PDCRH_PD12_Msk                  (0x1UL << PWR_PDCRH_PD12_Pos)           /*!< 0x00001000 */
14774 #define PWR_PDCRH_PD12                      PWR_PDCRH_PD12_Msk                      /*!< Apply pull-down for PH12 */
14775 #define PWR_PDCRH_PD13_Pos                  (13U)
14776 #define PWR_PDCRH_PD13_Msk                  (0x1UL << PWR_PDCRH_PD13_Pos)           /*!< 0x00002000 */
14777 #define PWR_PDCRH_PD13                      PWR_PDCRH_PD13_Msk                      /*!< Apply pull-down for PH13 */
14778 #define PWR_PDCRH_PD14_Pos                  (14U)
14779 #define PWR_PDCRH_PD14_Msk                  (0x1UL << PWR_PDCRH_PD14_Pos)           /*!< 0x00004000 */
14780 #define PWR_PDCRH_PD14                      PWR_PDCRH_PD14_Msk                      /*!< Apply pull-down for PH14 */
14781 #define PWR_PDCRH_PD15_Pos                  (15U)
14782 #define PWR_PDCRH_PD15_Msk                  (0x1UL << PWR_PDCRH_PD15_Pos)           /*!< 0x00008000 */
14783 #define PWR_PDCRH_PD15                      PWR_PDCRH_PD15_Msk                      /*!< Apply pull-down for PH15 */
14784 
14785 /********************  Bit definition for PWR_PUCRI register  *****************/
14786 #define PWR_PUCRI_PU0_Pos                   (0U)
14787 #define PWR_PUCRI_PU0_Msk                   (0x1UL << PWR_PUCRI_PU0_Pos)            /*!< 0x00000001 */
14788 #define PWR_PUCRI_PU0                       PWR_PUCRI_PU0_Msk                       /*!< Apply pull-up for PI0  */
14789 #define PWR_PUCRI_PU1_Pos                   (1U)
14790 #define PWR_PUCRI_PU1_Msk                   (0x1UL << PWR_PUCRI_PU1_Pos)            /*!< 0x00000002 */
14791 #define PWR_PUCRI_PU1                       PWR_PUCRI_PU1_Msk                       /*!< Apply pull-up for PI1  */
14792 #define PWR_PUCRI_PU2_Pos                   (2U)
14793 #define PWR_PUCRI_PU2_Msk                   (0x1UL << PWR_PUCRI_PU2_Pos)            /*!< 0x00000004 */
14794 #define PWR_PUCRI_PU2                       PWR_PUCRI_PU2_Msk                       /*!< Apply pull-up for PI2  */
14795 #define PWR_PUCRI_PU3_Pos                   (3U)
14796 #define PWR_PUCRI_PU3_Msk                   (0x1UL << PWR_PUCRI_PU3_Pos)            /*!< 0x00000008 */
14797 #define PWR_PUCRI_PU3                       PWR_PUCRI_PU3_Msk                       /*!< Apply pull-up for PI3  */
14798 #define PWR_PUCRI_PU4_Pos                   (4U)
14799 #define PWR_PUCRI_PU4_Msk                   (0x1UL << PWR_PUCRI_PU4_Pos)            /*!< 0x00000010 */
14800 #define PWR_PUCRI_PU4                       PWR_PUCRI_PU4_Msk                       /*!< Apply pull-up for PI4  */
14801 #define PWR_PUCRI_PU5_Pos                   (5U)
14802 #define PWR_PUCRI_PU5_Msk                   (0x1UL << PWR_PUCRI_PU5_Pos)            /*!< 0x00000020 */
14803 #define PWR_PUCRI_PU5                       PWR_PUCRI_PU5_Msk                       /*!< Apply pull-up for PI5  */
14804 #define PWR_PUCRI_PU6_Pos                   (6U)
14805 #define PWR_PUCRI_PU6_Msk                   (0x1UL << PWR_PUCRI_PU6_Pos)            /*!< 0x00000040 */
14806 #define PWR_PUCRI_PU6                       PWR_PUCRI_PU6_Msk                       /*!< Apply pull-up for PI6  */
14807 #define PWR_PUCRI_PU7_Pos                   (7U)
14808 #define PWR_PUCRI_PU7_Msk                   (0x1UL << PWR_PUCRI_PU7_Pos)            /*!< 0x00000080 */
14809 #define PWR_PUCRI_PU7                       PWR_PUCRI_PU7_Msk                       /*!< Apply pull-up for PI7  */
14810 
14811 /********************  Bit definition for PWR_PDCRI register  *****************/
14812 #define PWR_PDCRI_PD0_Pos                   (0U)
14813 #define PWR_PDCRI_PD0_Msk                   (0x1UL << PWR_PDCRI_PD0_Pos)            /*!< 0x00000001 */
14814 #define PWR_PDCRI_PD0                       PWR_PDCRI_PD0_Msk                       /*!< Apply pull-down for PI0  */
14815 #define PWR_PDCRI_PD1_Pos                   (1U)
14816 #define PWR_PDCRI_PD1_Msk                   (0x1UL << PWR_PDCRI_PD1_Pos)            /*!< 0x00000002 */
14817 #define PWR_PDCRI_PD1                       PWR_PDCRI_PD1_Msk                       /*!< Apply pull-down for PI1  */
14818 #define PWR_PDCRI_PD2_Pos                   (2U)
14819 #define PWR_PDCRI_PD2_Msk                   (0x1UL << PWR_PDCRI_PD2_Pos)            /*!< 0x00000004 */
14820 #define PWR_PDCRI_PD2                       PWR_PDCRI_PD2_Msk                       /*!< Apply pull-down for PI2  */
14821 #define PWR_PDCRI_PD3_Pos                   (3U)
14822 #define PWR_PDCRI_PD3_Msk                   (0x1UL << PWR_PDCRI_PD3_Pos)            /*!< 0x00000008 */
14823 #define PWR_PDCRI_PD3                       PWR_PDCRI_PD3_Msk                       /*!< Apply pull-down for PI3  */
14824 #define PWR_PDCRI_PD4_Pos                   (4U)
14825 #define PWR_PDCRI_PD4_Msk                   (0x1UL << PWR_PDCRI_PD4_Pos)            /*!< 0x00000010 */
14826 #define PWR_PDCRI_PD4                       PWR_PDCRI_PD4_Msk                       /*!< Apply pull-down for PI4  */
14827 #define PWR_PDCRI_PD5_Pos                   (5U)
14828 #define PWR_PDCRI_PD5_Msk                   (0x1UL << PWR_PDCRI_PD5_Pos)            /*!< 0x00000020 */
14829 #define PWR_PDCRI_PD5                       PWR_PDCRI_PD5_Msk                       /*!< Apply pull-down for PI5  */
14830 #define PWR_PDCRI_PD6_Pos                   (6U)
14831 #define PWR_PDCRI_PD6_Msk                   (0x1UL << PWR_PDCRI_PD6_Pos)            /*!< 0x00000040 */
14832 #define PWR_PDCRI_PD6                       PWR_PDCRI_PD6_Msk                       /*!< Apply pull-down for PI6  */
14833 #define PWR_PDCRI_PD7_Pos                   (7U)
14834 #define PWR_PDCRI_PD7_Msk                   (0x1UL << PWR_PDCRI_PD7_Pos)            /*!< 0x00000080 */
14835 #define PWR_PDCRI_PD7                       PWR_PDCRI_PD7_Msk                       /*!< Apply pull-down for PI7  */
14836 
14837 /******************************************************************************/
14838 /*                                                                            */
14839 /*                      SRAMs configuration controller                        */
14840 /*                                                                            */
14841 /******************************************************************************/
14842 /*******************  Bit definition for RAMCFG_CR register  ******************/
14843 #define RAMCFG_CR_ECCE_Pos                  (0U)
14844 #define RAMCFG_CR_ECCE_Msk                  (0x1UL << RAMCFG_CR_ECCE_Pos)           /*!< 0x00000001 */
14845 #define RAMCFG_CR_ECCE                      RAMCFG_CR_ECCE_Msk                      /*!< ECC Enable */
14846 #define RAMCFG_CR_ALE_Pos                   (4U)
14847 #define RAMCFG_CR_ALE_Msk                   (0x1UL << RAMCFG_CR_ALE_Pos)            /*!< 0x00000010 */
14848 #define RAMCFG_CR_ALE                       RAMCFG_CR_ALE_Msk                       /*!< Address Latching Enable */
14849 #define RAMCFG_CR_SRAMER_Pos                (8U)
14850 #define RAMCFG_CR_SRAMER_Msk                (0x1UL << RAMCFG_CR_SRAMER_Pos)         /*!< 0x00000100 */
14851 #define RAMCFG_CR_SRAMER                    RAMCFG_CR_SRAMER_Msk                    /*!< Start Erase */
14852 #define RAMCFG_CR_WSC_Pos                   (16U)
14853 #define RAMCFG_CR_WSC_Msk                   (0x7UL << RAMCFG_CR_WSC_Pos)            /*!< 0x00070000 */
14854 #define RAMCFG_CR_WSC                       RAMCFG_CR_WSC_Msk                       /*!< WSC[18:16] Wait State Configuration field */
14855 #define RAMCFG_CR_WSC_0                     (0x1UL << RAMCFG_CR_WSC_Pos)            /*!< 0x00010000 */
14856 #define RAMCFG_CR_WSC_1                     (0x2UL << RAMCFG_CR_WSC_Pos)            /*!< 0x00020000 */
14857 #define RAMCFG_CR_WSC_2                     (0x4UL << RAMCFG_CR_WSC_Pos)            /*!< 0x00040000 */
14858 
14859 /*******************  Bit definition for RAMCFG_IER register  *****************/
14860 #define RAMCFG_IER_SEIE_Pos                 (0U)
14861 #define RAMCFG_IER_SEIE_Msk                 (0x1UL << RAMCFG_IER_SEIE_Pos)          /*!< 0x00000001 */
14862 #define RAMCFG_IER_SEIE                     RAMCFG_IER_SEIE_Msk                     /*!< Single Error Interrupt Enable */
14863 #define RAMCFG_IER_DEIE_Pos                 (1U)
14864 #define RAMCFG_IER_DEIE_Msk                 (0x1UL << RAMCFG_IER_DEIE_Pos)          /*!< 0x00000002 */
14865 #define RAMCFG_IER_DEIE                     RAMCFG_IER_DEIE_Msk                     /*!< Double Error Interrupt Enable */
14866 #define RAMCFG_IER_ECCNMI_Pos               (3U)
14867 #define RAMCFG_IER_ECCNMI_Msk               (0x1UL << RAMCFG_IER_ECCNMI_Pos)        /*!< 0x00000008 */
14868 #define RAMCFG_IER_ECCNMI                   RAMCFG_IER_ECCNMI_Msk                   /*!< NMI redirection interrupt */
14869 
14870 /*******************  Bit definition for RAMCFG_ISR register  *****************/
14871 #define RAMCFG_ISR_SEDC_Pos                 (0U)
14872 #define RAMCFG_ISR_SEDC_Msk                 (0x1UL << RAMCFG_ISR_SEDC_Pos)          /*!< 0x00000001 */
14873 #define RAMCFG_ISR_SEDC                     RAMCFG_ISR_SEDC_Msk                     /*!< Single Error Detected and Corrected flag */
14874 #define RAMCFG_ISR_DED_Pos                  (1U)
14875 #define RAMCFG_ISR_DED_Msk                  (0x1UL << RAMCFG_ISR_DED_Pos)           /*!< 0x00000002 */
14876 #define RAMCFG_ISR_DED                      RAMCFG_ISR_DED_Msk                      /*!< Double Error Detected flag */
14877 #define RAMCFG_ISR_SRAMBUSY_Pos             (8U)
14878 #define RAMCFG_ISR_SRAMBUSY_Msk             (0x1UL << RAMCFG_ISR_SRAMBUSY_Pos)      /*!< 0x00000100 */
14879 #define RAMCFG_ISR_SRAMBUSY                 RAMCFG_ISR_SRAMBUSY_Msk                 /*!< SRAM busy flag */
14880 
14881 /*******************  Bit definition for RAMCFG_SEAR register  ****************/
14882 #define RAMCFG_SEAR_ESEA_Pos                (0U)
14883 #define RAMCFG_SEAR_ESEA_Msk                (0xFFFFFFFFUL << RAMCFG_SEAR_ESEA_Pos)  /*!< 0xFFFFFFFF */
14884 #define RAMCFG_SEAR_ESEA                    RAMCFG_SEAR_ESEA_Msk                    /*!< ECC Single Error Address */
14885 
14886 /*******************  Bit definition for RAMCFG_DEAR register  ****************/
14887 #define RAMCFG_DEAR_EDEA_Pos                (0U)
14888 #define RAMCFG_DEAR_EDEA_Msk                (0xFFFFFFFFUL << RAMCFG_DEAR_EDEA_Pos)  /*!< 0xFFFFFFFF */
14889 #define RAMCFG_DEAR_EDEA                    RAMCFG_DEAR_EDEA_Msk                    /*!< ECC Double Error Address */
14890 
14891 /*******************  Bit definition for RAMCFG_ICR register  *****************/
14892 #define RAMCFG_ICR_CSEDC_Pos                (0U)
14893 #define RAMCFG_ICR_CSEDC_Msk                (0x1UL << RAMCFG_ICR_CSEDC_Pos)         /*!< 0x00000001 */
14894 #define RAMCFG_ICR_CSEDC                    RAMCFG_ICR_CSEDC_Msk                    /*!< Clear ECC Single Error Detected and Corrected Flag */
14895 #define RAMCFG_ICR_CDED_Pos                 (1U)
14896 #define RAMCFG_ICR_CDED_Msk                 (0x1UL << RAMCFG_ICR_CDED_Pos)          /*!< 0x00000002 */
14897 #define RAMCFG_ICR_CDED                     RAMCFG_ICR_CDED_Msk                     /*!< Clear ECC Double Error Detected Flag*/
14898 
14899 /******************  Bit definition for RAMCFG_WPR1 register  *****************/
14900 #define RAMCFG_WPR1_P0WP_Pos                (0U)
14901 #define RAMCFG_WPR1_P0WP_Msk                (0x1UL << RAMCFG_WPR1_P0WP_Pos)         /*!< 0x00000001 */
14902 #define RAMCFG_WPR1_P0WP                    RAMCFG_WPR1_P0WP_Msk                    /*!< Write Protection Page 00 */
14903 #define RAMCFG_WPR1_P1WP_Pos                (1U)
14904 #define RAMCFG_WPR1_P1WP_Msk                (0x1UL << RAMCFG_WPR1_P1WP_Pos)         /*!< 0x00000002 */
14905 #define RAMCFG_WPR1_P1WP                    RAMCFG_WPR1_P1WP_Msk                    /*!< Write Protection Page 01 */
14906 #define RAMCFG_WPR1_P2WP_Pos                (2U)
14907 #define RAMCFG_WPR1_P2WP_Msk                (0x1UL << RAMCFG_WPR1_P2WP_Pos)         /*!< 0x00000004 */
14908 #define RAMCFG_WPR1_P2WP                    RAMCFG_WPR1_P2WP_Msk                    /*!< Write Protection Page 02 */
14909 #define RAMCFG_WPR1_P3WP_Pos                (3U)
14910 #define RAMCFG_WPR1_P3WP_Msk                (0x1UL << RAMCFG_WPR1_P3WP_Pos)         /*!< 0x00000008 */
14911 #define RAMCFG_WPR1_P3WP                    RAMCFG_WPR1_P3WP_Msk                    /*!< Write Protection Page 03 */
14912 #define RAMCFG_WPR1_P4WP_Pos                (4U)
14913 #define RAMCFG_WPR1_P4WP_Msk                (0x1UL << RAMCFG_WPR1_P4WP_Pos)         /*!< 0x00000010 */
14914 #define RAMCFG_WPR1_P4WP                    RAMCFG_WPR1_P4WP_Msk                    /*!< Write Protection Page 04 */
14915 #define RAMCFG_WPR1_P5WP_Pos                (5U)
14916 #define RAMCFG_WPR1_P5WP_Msk                (0x1UL << RAMCFG_WPR1_P5WP_Pos)         /*!< 0x00000020 */
14917 #define RAMCFG_WPR1_P5WP                    RAMCFG_WPR1_P5WP_Msk                    /*!< Write Protection Page 05 */
14918 #define RAMCFG_WPR1_P6WP_Pos                (6U)
14919 #define RAMCFG_WPR1_P6WP_Msk                (0x1UL << RAMCFG_WPR1_P6WP_Pos)         /*!< 0x00000040 */
14920 #define RAMCFG_WPR1_P6WP                    RAMCFG_WPR1_P6WP_Msk                    /*!< Write Protection Page 06 */
14921 #define RAMCFG_WPR1_P7WP_Pos                (7U)
14922 #define RAMCFG_WPR1_P7WP_Msk                (0x1UL << RAMCFG_WPR1_P7WP_Pos)         /*!< 0x00000080 */
14923 #define RAMCFG_WPR1_P7WP                    RAMCFG_WPR1_P7WP_Msk                    /*!< Write Protection Page 07 */
14924 #define RAMCFG_WPR1_P8WP_Pos                (8U)
14925 #define RAMCFG_WPR1_P8WP_Msk                (0x1UL << RAMCFG_WPR1_P8WP_Pos)         /*!< 0x00000100 */
14926 #define RAMCFG_WPR1_P8WP                    RAMCFG_WPR1_P8WP_Msk                    /*!< Write Protection Page 08 */
14927 #define RAMCFG_WPR1_P9WP_Pos                (9U)
14928 #define RAMCFG_WPR1_P9WP_Msk                (0x1UL << RAMCFG_WPR1_P9WP_Pos)         /*!< 0x00000200 */
14929 #define RAMCFG_WPR1_P9WP                    RAMCFG_WPR1_P9WP_Msk                    /*!< Write Protection Page 09 */
14930 #define RAMCFG_WPR1_P10WP_Pos               (10U)
14931 #define RAMCFG_WPR1_P10WP_Msk               (0x1UL << RAMCFG_WPR1_P10WP_Pos)        /*!< 0x00000400 */
14932 #define RAMCFG_WPR1_P10WP                   RAMCFG_WPR1_P10WP_Msk                   /*!< Write Protection Page 10 */
14933 #define RAMCFG_WPR1_P11WP_Pos               (11U)
14934 #define RAMCFG_WPR1_P11WP_Msk               (0x1UL << RAMCFG_WPR1_P11WP_Pos)        /*!< 0x00000800 */
14935 #define RAMCFG_WPR1_P11WP                   RAMCFG_WPR1_P11WP_Msk                   /*!< Write Protection Page 11 */
14936 #define RAMCFG_WPR1_P12WP_Pos               (12U)
14937 #define RAMCFG_WPR1_P12WP_Msk               (0x1UL << RAMCFG_WPR1_P12WP_Pos)        /*!< 0x00001000 */
14938 #define RAMCFG_WPR1_P12WP                   RAMCFG_WPR1_P12WP_Msk                   /*!< Write Protection Page 12 */
14939 #define RAMCFG_WPR1_P13WP_Pos               (13U)
14940 #define RAMCFG_WPR1_P13WP_Msk               (0x1UL << RAMCFG_WPR1_P13WP_Pos)        /*!< 0x00002000 */
14941 #define RAMCFG_WPR1_P13WP                   RAMCFG_WPR1_P13WP_Msk                   /*!< Write Protection Page 13 */
14942 #define RAMCFG_WPR1_P14WP_Pos               (14U)
14943 #define RAMCFG_WPR1_P14WP_Msk               (0x1UL << RAMCFG_WPR1_P14WP_Pos)        /*!< 0x00004000 */
14944 #define RAMCFG_WPR1_P14WP                   RAMCFG_WPR1_P14WP_Msk                   /*!< Write Protection Page 14 */
14945 #define RAMCFG_WPR1_P15WP_Pos               (15U)
14946 #define RAMCFG_WPR1_P15WP_Msk               (0x1UL << RAMCFG_WPR1_P15WP_Pos)        /*!< 0x00008000 */
14947 #define RAMCFG_WPR1_P15WP                   RAMCFG_WPR1_P15WP_Msk                   /*!< Write Protection Page 15 */
14948 #define RAMCFG_WPR1_P16WP_Pos               (16U)
14949 #define RAMCFG_WPR1_P16WP_Msk               (0x1UL << RAMCFG_WPR1_P16WP_Pos)        /*!< 0x00010000 */
14950 #define RAMCFG_WPR1_P16WP                   RAMCFG_WPR1_P16WP_Msk                   /*!< Write Protection Page 16 */
14951 #define RAMCFG_WPR1_P17WP_Pos               (17U)
14952 #define RAMCFG_WPR1_P17WP_Msk               (0x1UL << RAMCFG_WPR1_P17WP_Pos)        /*!< 0x00020000 */
14953 #define RAMCFG_WPR1_P17WP                   RAMCFG_WPR1_P17WP_Msk                   /*!< Write Protection Page 17 */
14954 #define RAMCFG_WPR1_P18WP_Pos               (18U)
14955 #define RAMCFG_WPR1_P18WP_Msk               (0x1UL << RAMCFG_WPR1_P18WP_Pos)        /*!< 0x00040000 */
14956 #define RAMCFG_WPR1_P18WP                   RAMCFG_WPR1_P18WP_Msk                   /*!< Write Protection Page 18 */
14957 #define RAMCFG_WPR1_P19WP_Pos               (19U)
14958 #define RAMCFG_WPR1_P19WP_Msk               (0x1UL << RAMCFG_WPR1_P19WP_Pos)        /*!< 0x00080000 */
14959 #define RAMCFG_WPR1_P19WP                   RAMCFG_WPR1_P19WP_Msk                   /*!< Write Protection Page 19 */
14960 #define RAMCFG_WPR1_P20WP_Pos               (20U)
14961 #define RAMCFG_WPR1_P20WP_Msk               (0x1UL << RAMCFG_WPR1_P20WP_Pos)        /*!< 0x00100000 */
14962 #define RAMCFG_WPR1_P20WP                   RAMCFG_WPR1_P20WP_Msk                   /*!< Write Protection Page 20 */
14963 #define RAMCFG_WPR1_P21WP_Pos               (21U)
14964 #define RAMCFG_WPR1_P21WP_Msk               (0x1UL << RAMCFG_WPR1_P21WP_Pos)        /*!< 0x00200000 */
14965 #define RAMCFG_WPR1_P21WP                   RAMCFG_WPR1_P21WP_Msk                   /*!< Write Protection Page 21 */
14966 #define RAMCFG_WPR1_P22WP_Pos               (22U)
14967 #define RAMCFG_WPR1_P22WP_Msk               (0x1UL << RAMCFG_WPR1_P22WP_Pos)        /*!< 0x00400000 */
14968 #define RAMCFG_WPR1_P22WP                   RAMCFG_WPR1_P22WP_Msk                   /*!< Write Protection Page 22 */
14969 #define RAMCFG_WPR1_P23WP_Pos               (23U)
14970 #define RAMCFG_WPR1_P23WP_Msk               (0x1UL << RAMCFG_WPR1_P23WP_Pos)        /*!< 0x00800000 */
14971 #define RAMCFG_WPR1_P23WP                   RAMCFG_WPR1_P23WP_Msk                   /*!< Write Protection Page 23 */
14972 #define RAMCFG_WPR1_P24WP_Pos               (24U)
14973 #define RAMCFG_WPR1_P24WP_Msk               (0x1UL << RAMCFG_WPR1_P24WP_Pos)        /*!< 0x01000000 */
14974 #define RAMCFG_WPR1_P24WP                   RAMCFG_WPR1_P24WP_Msk                   /*!< Write Protection Page 24 */
14975 #define RAMCFG_WPR1_P25WP_Pos               (25U)
14976 #define RAMCFG_WPR1_P25WP_Msk               (0x1UL << RAMCFG_WPR1_P25WP_Pos)        /*!< 0x02000000 */
14977 #define RAMCFG_WPR1_P25WP                   RAMCFG_WPR1_P25WP_Msk                   /*!< Write Protection Page 25 */
14978 #define RAMCFG_WPR1_P26WP_Pos               (26U)
14979 #define RAMCFG_WPR1_P26WP_Msk               (0x1UL << RAMCFG_WPR1_P26WP_Pos)        /*!< 0x04000000 */
14980 #define RAMCFG_WPR1_P26WP                   RAMCFG_WPR1_P26WP_Msk                   /*!< Write Protection Page 26 */
14981 #define RAMCFG_WPR1_P27WP_Pos               (27U)
14982 #define RAMCFG_WPR1_P27WP_Msk               (0x1UL << RAMCFG_WPR1_P27WP_Pos)        /*!< 0x08000000 */
14983 #define RAMCFG_WPR1_P27WP                   RAMCFG_WPR1_P27WP_Msk                   /*!< Write Protection Page 27 */
14984 #define RAMCFG_WPR1_P28WP_Pos               (28U)
14985 #define RAMCFG_WPR1_P28WP_Msk               (0x1UL << RAMCFG_WPR1_P28WP_Pos)        /*!< 0x10000000 */
14986 #define RAMCFG_WPR1_P28WP                   RAMCFG_WPR1_P28WP_Msk                   /*!< Write Protection Page 28 */
14987 #define RAMCFG_WPR1_P29WP_Pos               (29U)
14988 #define RAMCFG_WPR1_P29WP_Msk               (0x1UL << RAMCFG_WPR1_P29WP_Pos)        /*!< 0x20000000 */
14989 #define RAMCFG_WPR1_P29WP                   RAMCFG_WPR1_P29WP_Msk                   /*!< Write Protection Page 29 */
14990 #define RAMCFG_WPR1_P30WP_Pos               (30U)
14991 #define RAMCFG_WPR1_P30WP_Msk               (0x1UL << RAMCFG_WPR1_P30WP_Pos)        /*!< 0x40000000 */
14992 #define RAMCFG_WPR1_P30WP                   RAMCFG_WPR1_P30WP_Msk                   /*!< Write Protection Page 30 */
14993 #define RAMCFG_WPR1_P31WP_Pos               (31U)
14994 #define RAMCFG_WPR1_P31WP_Msk               (0x1UL << RAMCFG_WPR1_P31WP_Pos)        /*!< 0x80000000 */
14995 #define RAMCFG_WPR1_P31WP                   RAMCFG_WPR1_P31WP_Msk                   /*!< Write Protection Page 31 */
14996 
14997 /******************  Bit definition for RAMCFG_WPR2 register  ****************/
14998 #define RAMCFG_WPR2_P32WP_Pos               (0U)
14999 #define RAMCFG_WPR2_P32WP_Msk               (0x1UL << RAMCFG_WPR2_P32WP_Pos)        /*!< 0x00000001 */
15000 #define RAMCFG_WPR2_P32WP                   RAMCFG_WPR2_P32WP_Msk                   /*!< Write Protection Page 32 */
15001 #define RAMCFG_WPR2_P33WP_Pos               (1U)
15002 #define RAMCFG_WPR2_P33WP_Msk               (0x1UL << RAMCFG_WPR2_P33WP_Pos)        /*!< 0x00000002 */
15003 #define RAMCFG_WPR2_P33WP                   RAMCFG_WPR2_P33WP_Msk                   /*!< Write Protection Page 33 */
15004 #define RAMCFG_WPR2_P34WP_Pos               (2U)
15005 #define RAMCFG_WPR2_P34WP_Msk               (0x1UL << RAMCFG_WPR2_P34WP_Pos)        /*!< 0x00000004 */
15006 #define RAMCFG_WPR2_P34WP                   RAMCFG_WPR2_P34WP_Msk                   /*!< Write Protection Page 34 */
15007 #define RAMCFG_WPR2_P35WP_Pos               (3U)
15008 #define RAMCFG_WPR2_P35WP_Msk               (0x1UL << RAMCFG_WPR2_P35WP_Pos)        /*!< 0x00000008 */
15009 #define RAMCFG_WPR2_P35WP                   RAMCFG_WPR2_P35WP_Msk                   /*!< Write Protection Page 35 */
15010 #define RAMCFG_WPR2_P36WP_Pos               (4U)
15011 #define RAMCFG_WPR2_P36WP_Msk               (0x1UL << RAMCFG_WPR2_P36WP_Pos)        /*!< 0x00000010 */
15012 #define RAMCFG_WPR2_P36WP                   RAMCFG_WPR2_P36WP_Msk                   /*!< Write Protection Page 36 */
15013 #define RAMCFG_WPR2_P37WP_Pos               (5U)
15014 #define RAMCFG_WPR2_P37WP_Msk               (0x1UL << RAMCFG_WPR2_P37WP_Pos)        /*!< 0x00000020 */
15015 #define RAMCFG_WPR2_P37WP                   RAMCFG_WPR2_P37WP_Msk                   /*!< Write Protection Page 37 */
15016 #define RAMCFG_WPR2_P38WP_Pos               (6U)
15017 #define RAMCFG_WPR2_P38WP_Msk               (0x1UL << RAMCFG_WPR2_P38WP_Pos)        /*!< 0x00000040 */
15018 #define RAMCFG_WPR2_P38WP                   RAMCFG_WPR2_P38WP_Msk                   /*!< Write Protection Page 38 */
15019 #define RAMCFG_WPR2_P39WP_Pos               (7U)
15020 #define RAMCFG_WPR2_P39WP_Msk               (0x1UL << RAMCFG_WPR2_P39WP_Pos)        /*!< 0x00000080 */
15021 #define RAMCFG_WPR2_P39WP                   RAMCFG_WPR2_P39WP_Msk                   /*!< Write Protection Page 39 */
15022 #define RAMCFG_WPR2_P40WP_Pos               (8U)
15023 #define RAMCFG_WPR2_P40WP_Msk               (0x1UL << RAMCFG_WPR2_P40WP_Pos)        /*!< 0x00000100 */
15024 #define RAMCFG_WPR2_P40WP                   RAMCFG_WPR2_P40WP_Msk                   /*!< Write Protection Page 40 */
15025 #define RAMCFG_WPR2_P41WP_Pos               (9U)
15026 #define RAMCFG_WPR2_P41WP_Msk               (0x1UL << RAMCFG_WPR2_P41WP_Pos)        /*!< 0x00000200 */
15027 #define RAMCFG_WPR2_P41WP                   RAMCFG_WPR2_P41WP_Msk                   /*!< Write Protection Page 41 */
15028 #define RAMCFG_WPR2_P42WP_Pos               (10U)
15029 #define RAMCFG_WPR2_P42WP_Msk               (0x1UL << RAMCFG_WPR2_P42WP_Pos)        /*!< 0x00000400 */
15030 #define RAMCFG_WPR2_P42WP                   RAMCFG_WPR2_P42WP_Msk                   /*!< Write Protection Page 42 */
15031 #define RAMCFG_WPR2_P43WP_Pos               (11U)
15032 #define RAMCFG_WPR2_P43WP_Msk               (0x1UL << RAMCFG_WPR2_P43WP_Pos)        /*!< 0x00000800 */
15033 #define RAMCFG_WPR2_P43WP                   RAMCFG_WPR2_P43WP_Msk                   /*!< Write Protection Page 43 */
15034 #define RAMCFG_WPR2_P44WP_Pos               (12U)
15035 #define RAMCFG_WPR2_P44WP_Msk               (0x1UL << RAMCFG_WPR2_P44WP_Pos)        /*!< 0x00001000 */
15036 #define RAMCFG_WPR2_P44WP                   RAMCFG_WPR2_P44WP_Msk                   /*!< Write Protection Page 44 */
15037 #define RAMCFG_WPR2_P45WP_Pos               (13U)
15038 #define RAMCFG_WPR2_P45WP_Msk               (0x1UL << RAMCFG_WPR2_P45WP_Pos)        /*!< 0x00002000 */
15039 #define RAMCFG_WPR2_P45WP                   RAMCFG_WPR2_P45WP_Msk                   /*!< Write Protection Page 45 */
15040 #define RAMCFG_WPR2_P46WP_Pos               (14U)
15041 #define RAMCFG_WPR2_P46WP_Msk               (0x1UL << RAMCFG_WPR2_P46WP_Pos)        /*!< 0x00004000 */
15042 #define RAMCFG_WPR2_P46WP                   RAMCFG_WPR2_P46WP_Msk                   /*!< Write Protection Page 46 */
15043 #define RAMCFG_WPR2_P47WP_Pos               (15U)
15044 #define RAMCFG_WPR2_P47WP_Msk               (0x1UL << RAMCFG_WPR2_P47WP_Pos)        /*!< 0x00008000 */
15045 #define RAMCFG_WPR2_P47WP                   RAMCFG_WPR2_P47WP_Msk                   /*!< Write Protection Page 47 */
15046 #define RAMCFG_WPR2_P48WP_Pos               (16U)
15047 #define RAMCFG_WPR2_P48WP_Msk               (0x1UL << RAMCFG_WPR2_P48WP_Pos)        /*!< 0x00010000 */
15048 #define RAMCFG_WPR2_P48WP                   RAMCFG_WPR2_P48WP_Msk                   /*!< Write Protection Page 48 */
15049 #define RAMCFG_WPR2_P49WP_Pos               (17U)
15050 #define RAMCFG_WPR2_P49WP_Msk               (0x1UL << RAMCFG_WPR2_P49WP_Pos)        /*!< 0x00020000 */
15051 #define RAMCFG_WPR2_P49WP                   RAMCFG_WPR2_P49WP_Msk                   /*!< Write Protection Page 49 */
15052 #define RAMCFG_WPR2_P50WP_Pos               (18U)
15053 #define RAMCFG_WPR2_P50WP_Msk               (0x1UL << RAMCFG_WPR2_P50WP_Pos)        /*!< 0x00040000 */
15054 #define RAMCFG_WPR2_P50WP                   RAMCFG_WPR2_P50WP_Msk                   /*!< Write Protection Page 50 */
15055 #define RAMCFG_WPR2_P51WP_Pos               (19U)
15056 #define RAMCFG_WPR2_P51WP_Msk               (0x1UL << RAMCFG_WPR2_P51WP_Pos)        /*!< 0x00080000 */
15057 #define RAMCFG_WPR2_P51WP                   RAMCFG_WPR2_P51WP_Msk                   /*!< Write Protection Page 51 */
15058 #define RAMCFG_WPR2_P52WP_Pos               (20U)
15059 #define RAMCFG_WPR2_P52WP_Msk               (0x1UL << RAMCFG_WPR2_P52WP_Pos)        /*!< 0x00100000 */
15060 #define RAMCFG_WPR2_P52WP                   RAMCFG_WPR2_P52WP_Msk                   /*!< Write Protection Page 52 */
15061 #define RAMCFG_WPR2_P53WP_Pos               (21U)
15062 #define RAMCFG_WPR2_P53WP_Msk               (0x1UL << RAMCFG_WPR2_P53WP_Pos)        /*!< 0x00200000 */
15063 #define RAMCFG_WPR2_P53WP                   RAMCFG_WPR2_P53WP_Msk                   /*!< Write Protection Page 53 */
15064 #define RAMCFG_WPR2_P54WP_Pos               (22U)
15065 #define RAMCFG_WPR2_P54WP_Msk               (0x1UL << RAMCFG_WPR2_P54WP_Pos)        /*!< 0x00400000 */
15066 #define RAMCFG_WPR2_P54WP                   RAMCFG_WPR2_P54WP_Msk                   /*!< Write Protection Page 54 */
15067 #define RAMCFG_WPR2_P55WP_Pos               (23U)
15068 #define RAMCFG_WPR2_P55WP_Msk               (0x1UL << RAMCFG_WPR2_P55WP_Pos)        /*!< 0x00800000 */
15069 #define RAMCFG_WPR2_P55WP                   RAMCFG_WPR2_P55WP_Msk                   /*!< Write Protection Page 55 */
15070 #define RAMCFG_WPR2_P56WP_Pos               (25U)
15071 #define RAMCFG_WPR2_P56WP_Msk               (0x1UL << RAMCFG_WPR2_P56WP_Pos)        /*!< 0x01000000 */
15072 #define RAMCFG_WPR2_P56WP                   RAMCFG_WPR2_P56WP_Msk                   /*!< Write Protection Page 56 */
15073 #define RAMCFG_WPR2_P57WP_Pos               (26U)
15074 #define RAMCFG_WPR2_P57WP_Msk               (0x1UL << RAMCFG_WPR2_P57WP_Pos)        /*!< 0x02000000 */
15075 #define RAMCFG_WPR2_P57WP                   RAMCFG_WPR2_P57WP_Msk                   /*!< Write Protection Page 57 */
15076 #define RAMCFG_WPR2_P58WP_Pos               (27U)
15077 #define RAMCFG_WPR2_P58WP_Msk               (0x1UL << RAMCFG_WPR2_P58WP_Pos)        /*!< 0x04000000 */
15078 #define RAMCFG_WPR2_P58WP                   RAMCFG_WPR2_P58WP_Msk                   /*!< Write Protection Page 58 */
15079 #define RAMCFG_WPR2_P59WP_Pos               (28U)
15080 #define RAMCFG_WPR2_P59WP_Msk               (0x1UL << RAMCFG_WPR2_P59WP_Pos)        /*!< 0x08000000 */
15081 #define RAMCFG_WPR2_P59WP                   RAMCFG_WPR2_P59WP_Msk                   /*!< Write Protection Page 59 */
15082 #define RAMCFG_WPR2_P60WP_Pos               (29U)
15083 #define RAMCFG_WPR2_P60WP_Msk               (0x1UL << RAMCFG_WPR2_P60WP_Pos)        /*!< 0x10000000 */
15084 #define RAMCFG_WPR2_P60WP                   RAMCFG_WPR2_P60WP_Msk                   /*!< Write Protection Page 60 */
15085 #define RAMCFG_WPR2_P61WP_Pos               (30U)
15086 #define RAMCFG_WPR2_P61WP_Msk               (0x1UL << RAMCFG_WPR2_P61WP_Pos)        /*!< 0x20000000 */
15087 #define RAMCFG_WPR2_P61WP                   RAMCFG_WPR2_P61WP_Msk                   /*!< Write Protection Page 61 */
15088 #define RAMCFG_WPR2_P62WP_Pos               (31U)
15089 #define RAMCFG_WPR2_P62WP_Msk               (0x1UL << RAMCFG_WPR2_P62WP_Pos)        /*!< 0x40000000 */
15090 #define RAMCFG_WPR2_P62WP                   RAMCFG_WPR2_P62WP_Msk                   /*!< Write Protection Page 62 */
15091 #define RAMCFG_WPR2_P63WP_Pos               (31U)
15092 #define RAMCFG_WPR2_P63WP_Msk               (0x1UL << RAMCFG_WPR2_P63WP_Pos)        /*!< 0x80000000 */
15093 #define RAMCFG_WPR2_P63WP                   RAMCFG_WPR2_P63WP_Msk                   /*!< Write Protection Page 63 */
15094 
15095 /*****************  Bit definition for RAMCFG_ECCKEYR register  ***************/
15096 #define RAMCFG_ECCKEYR_ECCKEY_Pos           (0U)
15097 #define RAMCFG_ECCKEYR_ECCKEY_Msk           (0xFFUL << RAMCFG_ECCKEYR_ECCKEY_Pos)   /*!< 0x000000FF */
15098 #define RAMCFG_ECCKEYR_ECCKEY               RAMCFG_ECCKEYR_ECCKEY_Msk               /*!< ECC Write Protection Key */
15099 
15100 /*****************  Bit definition for RAMCFG_ERKEYR register  ****************/
15101 #define RAMCFG_ERKEYR_ERASEKEY_Pos          (0U)
15102 #define RAMCFG_ERKEYR_ERASEKEY_Msk          (0xFFUL << RAMCFG_ERKEYR_ERASEKEY_Pos)  /*!< 0x000000FF */
15103 #define RAMCFG_ERKEYR_ERASEKEY              RAMCFG_ERKEYR_ERASEKEY_Msk              /*!< Erase Write Protection Key */
15104 
15105 /******************************************************************************/
15106 /*                                                                            */
15107 /*                         Reset and Clock Control                            */
15108 /*                                                                            */
15109 /******************************************************************************/
15110 /********************  Bit definition for RCC_CR register  ********************/
15111 #define RCC_CR_MSISON_Pos                   (0U)
15112 #define RCC_CR_MSISON_Msk                   (0x1UL << RCC_CR_MSISON_Pos)            /*!< 0x00000001 */
15113 #define RCC_CR_MSISON                       RCC_CR_MSISON_Msk                       /*!< Internal Multi Speed Oscillator (MSIS) Clock Enable */
15114 #define RCC_CR_MSIKERON_Pos                 (1U)
15115 #define RCC_CR_MSIKERON_Msk                 (0x1UL << RCC_CR_MSIKERON_Pos)          /*!< 0x00000002 */
15116 #define RCC_CR_MSIKERON                     RCC_CR_MSIKERON_Msk                     /*!< MSI Enable for Some IPs Kernels */
15117 #define RCC_CR_MSISRDY_Pos                  (2U)
15118 #define RCC_CR_MSISRDY_Msk                  (0x1UL << RCC_CR_MSISRDY_Pos)           /*!< 0x00000004 */
15119 #define RCC_CR_MSISRDY                      RCC_CR_MSISRDY_Msk                      /*!< Internal Multi Speed Oscillator (MSIS) Clock Ready Flag */
15120 #define RCC_CR_MSIPLLEN_Pos                 (3U)
15121 #define RCC_CR_MSIPLLEN_Msk                 (0x1UL << RCC_CR_MSIPLLEN_Pos)          /*!< 0x00000008 */
15122 #define RCC_CR_MSIPLLEN                     RCC_CR_MSIPLLEN_Msk                     /*!< Internal Multi Speed Oscillator (MSI) PLL Mode Enable */
15123 #define RCC_CR_MSIKON_Pos                   (4U)
15124 #define RCC_CR_MSIKON_Msk                   (0x1UL << RCC_CR_MSIKON_Pos)            /*!< 0x00000010 */
15125 #define RCC_CR_MSIKON                       RCC_CR_MSIKON_Msk                       /*!< Internal Multi Speed Oscillator Kernel (MSIK) Enable */
15126 #define RCC_CR_MSIKRDY_Pos                  (5U)
15127 #define RCC_CR_MSIKRDY_Msk                  (0x1UL << RCC_CR_MSIKRDY_Pos)           /*!< 0x00000020 */
15128 #define RCC_CR_MSIKRDY                      RCC_CR_MSIKRDY_Msk                      /*!< Internal Multi Speed Oscillator Kernel (MSIK) Ready Flag */
15129 #define RCC_CR_MSIPLLSEL_Pos                (6U)
15130 #define RCC_CR_MSIPLLSEL_Msk                (0x1UL << RCC_CR_MSIPLLSEL_Pos)         /*!< 0x00000040 */
15131 #define RCC_CR_MSIPLLSEL                    RCC_CR_MSIPLLSEL_Msk                    /*!< Internal Multi Speed Oscillator (MSI) PLL Mode Selection */
15132 #define RCC_CR_MSIPLLFAST_Pos               (7U)
15133 #define RCC_CR_MSIPLLFAST_Msk               (0x1UL << RCC_CR_MSIPLLFAST_Pos)        /*!< 0x00000080 */
15134 #define RCC_CR_MSIPLLFAST                   RCC_CR_MSIPLLFAST_Msk                   /*!< Internal Multi Speed Oscillator (MSI) PLL Fast Mode Selection */
15135 #define RCC_CR_HSION_Pos                    (8U)
15136 #define RCC_CR_HSION_Msk                    (0x1UL << RCC_CR_HSION_Pos)             /*!< 0x00000100 */
15137 #define RCC_CR_HSION                        RCC_CR_HSION_Msk                        /*!< Internal High Speed Oscillator (HSI16) Clock Enable */
15138 #define RCC_CR_HSIKERON_Pos                 (9U)
15139 #define RCC_CR_HSIKERON_Msk                 (0x1UL << RCC_CR_HSIKERON_Pos)          /*!< 0x00000200 */
15140 #define RCC_CR_HSIKERON                     RCC_CR_HSIKERON_Msk                     /*!< Internal High Speed Oscillator (HSI16) Clock Enable for some IPs Kernel */
15141 #define RCC_CR_HSIRDY_Pos                   (10U)
15142 #define RCC_CR_HSIRDY_Msk                   (0x1UL << RCC_CR_HSIRDY_Pos)            /*!< 0x00000400 */
15143 #define RCC_CR_HSIRDY                       RCC_CR_HSIRDY_Msk                       /*!< Internal High Speed Oscillator (HSI16) Clock Ready Flag */
15144 #define RCC_CR_HSI48ON_Pos                  (12U)
15145 #define RCC_CR_HSI48ON_Msk                  (0x1UL << RCC_CR_HSI48ON_Pos)           /*!< 0x000001000 */
15146 #define RCC_CR_HSI48ON                      RCC_CR_HSI48ON_Msk                      /*!< Internal High Speed Oscillator (HSI48) Clock Enable */
15147 #define RCC_CR_HSI48RDY_Pos                 (13U)
15148 #define RCC_CR_HSI48RDY_Msk                 (0x1UL << RCC_CR_HSI48RDY_Pos)          /*!< 0x000002000 */
15149 #define RCC_CR_HSI48RDY                     RCC_CR_HSI48RDY_Msk                     /*!< Internal High Speed Oscillator (HSI48) Clock Ready Flag */
15150 #define RCC_CR_SHSION_Pos                   (14U)
15151 #define RCC_CR_SHSION_Msk                   (0x1UL << RCC_CR_SHSION_Pos)            /*!< 0x000004000 */
15152 #define RCC_CR_SHSION                       RCC_CR_SHSION_Msk                       /*!< Internal High Speed Secure (SHSI) Clock Enable */
15153 #define RCC_CR_SHSIRDY_Pos                  (15U)
15154 #define RCC_CR_SHSIRDY_Msk                  (0x1UL << RCC_CR_SHSIRDY_Pos)           /*!< 0x000008000 */
15155 #define RCC_CR_SHSIRDY                      RCC_CR_SHSIRDY_Msk                      /*!< Internal High Speed Secure (SHSI) Clock Ready Flag */
15156 #define RCC_CR_HSEON_Pos                    (16U)
15157 #define RCC_CR_HSEON_Msk                    (0x1UL << RCC_CR_HSEON_Pos)             /*!< 0x00010000 */
15158 #define RCC_CR_HSEON                        RCC_CR_HSEON_Msk                        /*!< External High Speed Oscillator (HSE) Clock Enable */
15159 #define RCC_CR_HSERDY_Pos                   (17U)
15160 #define RCC_CR_HSERDY_Msk                   (0x1UL << RCC_CR_HSERDY_Pos)            /*!< 0x00020000 */
15161 #define RCC_CR_HSERDY                       RCC_CR_HSERDY_Msk                       /*!< External High Speed Oscillator (HSE) Clock Ready */
15162 #define RCC_CR_HSEBYP_Pos                   (18U)
15163 #define RCC_CR_HSEBYP_Msk                   (0x1UL << RCC_CR_HSEBYP_Pos)            /*!< 0x00040000 */
15164 #define RCC_CR_HSEBYP                       RCC_CR_HSEBYP_Msk                       /*!< External High Speed Oscillator (HSE) Clock Bypass */
15165 #define RCC_CR_CSSON_Pos                    (19U)
15166 #define RCC_CR_CSSON_Msk                    (0x1UL << RCC_CR_CSSON_Pos)             /*!< 0x00080000 */
15167 #define RCC_CR_CSSON                        RCC_CR_CSSON_Msk                        /*!< HSE Clock Security System Enable */
15168 #define RCC_CR_HSEEXT_Pos                   (20U)
15169 #define RCC_CR_HSEEXT_Msk                   (0x1UL << RCC_CR_HSEEXT_Pos)            /*!< 0x00100000 */
15170 #define RCC_CR_HSEEXT                       RCC_CR_HSEEXT_Msk                       /*!< External High Speed clock type in Bypass Mode */
15171 #define RCC_CR_PLL1ON_Pos                   (24U)
15172 #define RCC_CR_PLL1ON_Msk                   (0x1UL << RCC_CR_PLL1ON_Pos)            /*!< 0x01000000 */
15173 #define RCC_CR_PLL1ON                       RCC_CR_PLL1ON_Msk                       /*!< System PLL 1 Clock Enable */
15174 #define RCC_CR_PLL1RDY_Pos                  (25U)
15175 #define RCC_CR_PLL1RDY_Msk                  (0x1UL << RCC_CR_PLL1RDY_Pos)           /*!< 0x02000000 */
15176 #define RCC_CR_PLL1RDY                      RCC_CR_PLL1RDY_Msk                      /*!< System PLL 1 Clock Ready Flag */
15177 #define RCC_CR_PLL2ON_Pos                   (26U)
15178 #define RCC_CR_PLL2ON_Msk                   (0x1UL << RCC_CR_PLL2ON_Pos)            /*!< 0x04000000 */
15179 #define RCC_CR_PLL2ON                       RCC_CR_PLL2ON_Msk                       /*!< System PLL 2 Enable */
15180 #define RCC_CR_PLL2RDY_Pos                  (27U)
15181 #define RCC_CR_PLL2RDY_Msk                  (0x1UL << RCC_CR_PLL2RDY_Pos)           /*!< 0x08000000 */
15182 #define RCC_CR_PLL2RDY                      RCC_CR_PLL2RDY_Msk                      /*!< System PLL 2 Ready Flag */
15183 #define RCC_CR_PLL3ON_Pos                   (28U)
15184 #define RCC_CR_PLL3ON_Msk                   (0x1UL << RCC_CR_PLL3ON_Pos)            /*!< 0x10000000 */
15185 #define RCC_CR_PLL3ON                       RCC_CR_PLL3ON_Msk                       /*!< System PLL 3 Enable */
15186 #define RCC_CR_PLL3RDY_Pos                  (29U)
15187 #define RCC_CR_PLL3RDY_Msk                  (0x1UL << RCC_CR_PLL3RDY_Pos)           /*!< 0x20000000 */
15188 #define RCC_CR_PLL3RDY                      RCC_CR_PLL3RDY_Msk                      /*!< System PLL 3 Ready Flag */
15189 
15190 /********************  Bit definition for RCC_ICSCR1 register  ***************/
15191 /*!< MSICAL configuration */
15192 #define RCC_ICSCR1_MSICAL3_Pos              (0U)
15193 #define RCC_ICSCR1_MSICAL3_Msk              (0x1FUL << RCC_ICSCR1_MSICAL3_Pos)      /*!< 0x0000001F */
15194 #define RCC_ICSCR1_MSICAL3                  RCC_ICSCR1_MSICAL3_Msk                  /*!< MSICAL[4:0] bits: MSIRC3 Clock Calibration for MSI Ranges 12 to 15 */
15195 #define RCC_ICSCR1_MSICAL3_0                (0x01UL << RCC_ICSCR1_MSICAL3_Pos)      /*!< 0x00000001 */
15196 #define RCC_ICSCR1_MSICAL3_1                (0x02UL << RCC_ICSCR1_MSICAL3_Pos)      /*!< 0x00000002 */
15197 #define RCC_ICSCR1_MSICAL3_2                (0x04UL << RCC_ICSCR1_MSICAL3_Pos)      /*!< 0x00000004 */
15198 #define RCC_ICSCR1_MSICAL3_3                (0x08UL << RCC_ICSCR1_MSICAL3_Pos)      /*!< 0x00000008 */
15199 #define RCC_ICSCR1_MSICAL3_4                (0x10UL << RCC_ICSCR1_MSICAL3_Pos)      /*!< 0x00000010 */
15200 #define RCC_ICSCR1_MSICAL2_Pos              (5U)
15201 #define RCC_ICSCR1_MSICAL2_Msk              (0x1FUL << RCC_ICSCR1_MSICAL2_Pos)      /*!< 0x000003E0 */
15202 #define RCC_ICSCR1_MSICAL2                  RCC_ICSCR1_MSICAL2_Msk                  /*!< MSICAL[4:0] bits: MSIRC2 Clock Calibration for MSI Ranges 8 to 11*/
15203 #define RCC_ICSCR1_MSICAL2_0                (0x01UL << RCC_ICSCR1_MSICAL2_Pos)      /*!< 0x00000020 */
15204 #define RCC_ICSCR1_MSICAL2_1                (0x02UL << RCC_ICSCR1_MSICAL2_Pos)      /*!< 0x00000040 */
15205 #define RCC_ICSCR1_MSICAL2_2                (0x04UL << RCC_ICSCR1_MSICAL2_Pos)      /*!< 0x00000080 */
15206 #define RCC_ICSCR1_MSICAL2_3                (0x08UL << RCC_ICSCR1_MSICAL2_Pos)      /*!< 0x000000C0 */
15207 #define RCC_ICSCR1_MSICAL2_4                (0x10UL << RCC_ICSCR1_MSICAL2_Pos)      /*!< 0x00000100 */
15208 #define RCC_ICSCR1_MSICAL1_Pos              (10U)
15209 #define RCC_ICSCR1_MSICAL1_Msk              (0x1FUL << RCC_ICSCR1_MSICAL1_Pos)      /*!< 0x00007C00 */
15210 #define RCC_ICSCR1_MSICAL1                  RCC_ICSCR1_MSICAL1_Msk                  /*!< MSICAL[4:0] bits: MSIRC1 Clock Calibration for MSI Ranges 4 to 7 */
15211 #define RCC_ICSCR1_MSICAL1_0                (0x01UL << RCC_ICSCR1_MSICAL1_Pos)      /*!< 0x00000200 */
15212 #define RCC_ICSCR1_MSICAL1_1                (0x02UL << RCC_ICSCR1_MSICAL1_Pos)      /*!< 0x00000400 */
15213 #define RCC_ICSCR1_MSICAL1_2                (0x04UL << RCC_ICSCR1_MSICAL1_Pos)      /*!< 0x00000800 */
15214 #define RCC_ICSCR1_MSICAL1_3                (0x08UL << RCC_ICSCR1_MSICAL1_Pos)      /*!< 0x00000C00 */
15215 #define RCC_ICSCR1_MSICAL1_4                (0x10UL << RCC_ICSCR1_MSICAL1_Pos)      /*!< 0x00001000 */
15216 #define RCC_ICSCR1_MSICAL0_Pos              (15U)
15217 #define RCC_ICSCR1_MSICAL0_Msk              (0x1FUL << RCC_ICSCR1_MSICAL0_Pos)      /*!< 0x000F8000 */
15218 #define RCC_ICSCR1_MSICAL0                  RCC_ICSCR1_MSICAL0_Msk                  /*!< MSICAL[4:0] bits: MSIRC0 Clock Calibration for MSI Ranges 0 to 3 */
15219 #define RCC_ICSCR1_MSICAL0_0                (0x01UL << RCC_ICSCR1_MSICAL0_Pos)      /*!< 0x00002000 */
15220 #define RCC_ICSCR1_MSICAL0_1                (0x02UL << RCC_ICSCR1_MSICAL0_Pos)      /*!< 0x00004000 */
15221 #define RCC_ICSCR1_MSICAL0_2                (0x04UL << RCC_ICSCR1_MSICAL0_Pos)      /*!< 0x00008000 */
15222 #define RCC_ICSCR1_MSICAL0_3                (0x08UL << RCC_ICSCR1_MSICAL0_Pos)      /*!< 0x0000C000 */
15223 #define RCC_ICSCR1_MSICAL0_4                (0x10UL << RCC_ICSCR1_MSICAL0_Pos)      /*!< 0x00010000 */
15224 #define RCC_ICSCR1_MSIBIAS_Pos              (22U)
15225 #define RCC_ICSCR1_MSIBIAS_Msk              (0x1UL << RCC_ICSCR1_MSIBIAS_Pos)       /*!< 0x00400000 */
15226 #define RCC_ICSCR1_MSIBIAS                  RCC_ICSCR1_MSIBIAS_Msk                  /*!< Internal Multi Speed oscillator (MSI) BIAS mode selection */
15227 #define RCC_ICSCR1_MSIRGSEL_Pos             (23U)
15228 #define RCC_ICSCR1_MSIRGSEL_Msk             (0x1UL << RCC_ICSCR1_MSIRGSEL_Pos)      /*!< 0x00000008 */
15229 #define RCC_ICSCR1_MSIRGSEL                 RCC_ICSCR1_MSIRGSEL_Msk                 /*!< Internal Multi Speed oscillator (MSI) range selection */
15230 
15231 /*!< MSIKRANGE configuration : 16 frequency ranges available */
15232 #define RCC_ICSCR1_MSIKRANGE_Pos            (24U)
15233 #define RCC_ICSCR1_MSIKRANGE_Msk            (0xFUL << RCC_ICSCR1_MSIKRANGE_Pos)     /*!< 0x0F000000 */
15234 #define RCC_ICSCR1_MSIKRANGE                RCC_ICSCR1_MSIKRANGE_Msk                /*!< Internal Multi Speed oscillator Kernel (MSIK) clock Ranges */
15235 #define RCC_ICSCR1_MSIKRANGE_0              (0x1UL << RCC_ICSCR1_MSIKRANGE_Pos)     /*!< 0x01000000 */
15236 #define RCC_ICSCR1_MSIKRANGE_1              (0x2UL << RCC_ICSCR1_MSIKRANGE_Pos)     /*!< 0x02000000 */
15237 #define RCC_ICSCR1_MSIKRANGE_2              (0x4UL << RCC_ICSCR1_MSIKRANGE_Pos)     /*!< 0x04000000 */
15238 #define RCC_ICSCR1_MSIKRANGE_3              (0x8UL << RCC_ICSCR1_MSIKRANGE_Pos)     /*!< 0x08000000 */
15239 
15240 /*!< MSIRANGE configuration : 16 frequency ranges available */
15241 #define RCC_ICSCR1_MSISRANGE_Pos            (28U)
15242 #define RCC_ICSCR1_MSISRANGE_Msk            (0xFUL << RCC_ICSCR1_MSISRANGE_Pos)     /*!< 0xF0000000 */
15243 #define RCC_ICSCR1_MSISRANGE                RCC_ICSCR1_MSISRANGE_Msk                /*!< Internal Multi Speed oscillator (MSI) clock Ranges */
15244 #define RCC_ICSCR1_MSISRANGE_0              (0x1UL << RCC_ICSCR1_MSISRANGE_Pos)     /*!< 0x10000000 */
15245 #define RCC_ICSCR1_MSISRANGE_1              (0x2UL << RCC_ICSCR1_MSISRANGE_Pos)     /*!< 0x20000000 */
15246 #define RCC_ICSCR1_MSISRANGE_2              (0x4UL << RCC_ICSCR1_MSISRANGE_Pos)     /*!< 0x40000000 */
15247 #define RCC_ICSCR1_MSISRANGE_3              (0x8UL << RCC_ICSCR1_MSISRANGE_Pos)     /*!< 0x80000000 */
15248 
15249 /********************  Bit definition for RCC_ICSCR2 register  ***************/
15250 /*!< MSITRIM configuration */
15251 #define RCC_ICSCR2_MSITRIM3_Pos             (0U)
15252 #define RCC_ICSCR2_MSITRIM3_Msk             (0x1FUL << RCC_ICSCR2_MSITRIM3_Pos)     /*!< 0x0000001F */
15253 #define RCC_ICSCR2_MSITRIM3                 RCC_ICSCR2_MSITRIM3_Msk                 /*!< MSITRIM[4:0] bits: MSI Clock Trimming for Ranges 12 to 15 */
15254 #define RCC_ICSCR2_MSITRIM3_0               (0x01UL << RCC_ICSCR2_MSITRIM3_Pos)     /*!< 0x00000001 */
15255 #define RCC_ICSCR2_MSITRIM3_1               (0x02UL << RCC_ICSCR2_MSITRIM3_Pos)     /*!< 0x00000002 */
15256 #define RCC_ICSCR2_MSITRIM3_2               (0x04UL << RCC_ICSCR2_MSITRIM3_Pos)     /*!< 0x00000004 */
15257 #define RCC_ICSCR2_MSITRIM3_3               (0x08UL << RCC_ICSCR2_MSITRIM3_Pos)     /*!< 0x00000008 */
15258 #define RCC_ICSCR2_MSITRIM3_4               (0x10UL << RCC_ICSCR2_MSITRIM3_Pos)     /*!< 0x00000010 */
15259 #define RCC_ICSCR2_MSITRIM2_Pos             (5U)
15260 #define RCC_ICSCR2_MSITRIM2_Msk             (0x1FUL << RCC_ICSCR2_MSITRIM2_Pos)     /*!< 0x000003E0 */
15261 #define RCC_ICSCR2_MSITRIM2                 RCC_ICSCR2_MSITRIM2_Msk                 /*!< MSITRIM[4:0] bits: MSI Clock Trimming for Ranges 8 to 11 */
15262 #define RCC_ICSCR2_MSITRIM2_0               (0x01UL << RCC_ICSCR2_MSITRIM2_Pos)     /*!< 0x00000020 */
15263 #define RCC_ICSCR2_MSITRIM2_1               (0x02UL << RCC_ICSCR2_MSITRIM2_Pos)     /*!< 0x00000040 */
15264 #define RCC_ICSCR2_MSITRIM2_2               (0x04UL << RCC_ICSCR2_MSITRIM2_Pos)     /*!< 0x00000080 */
15265 #define RCC_ICSCR2_MSITRIM2_3               (0x08UL << RCC_ICSCR2_MSITRIM2_Pos)     /*!< 0x000000C0 */
15266 #define RCC_ICSCR2_MSITRIM2_4               (0x10UL << RCC_ICSCR2_MSITRIM2_Pos)     /*!< 0x00000100 */
15267 #define RCC_ICSCR2_MSITRIM1_Pos             (10U)
15268 #define RCC_ICSCR2_MSITRIM1_Msk             (0x1FUL << RCC_ICSCR2_MSITRIM1_Pos)     /*!< 0x00007C00 */
15269 #define RCC_ICSCR2_MSITRIM1                 RCC_ICSCR2_MSITRIM1_Msk                 /*!< MSITRIM[4:0] bits: MSI Clock Trimming for Ranges 4 to 7 */
15270 #define RCC_ICSCR2_MSITRIM1_0               (0x01UL << RCC_ICSCR2_MSITRIM1_Pos)     /*!< 0x00000200 */
15271 #define RCC_ICSCR2_MSITRIM1_1               (0x02UL << RCC_ICSCR2_MSITRIM1_Pos)     /*!< 0x00000400 */
15272 #define RCC_ICSCR2_MSITRIM1_2               (0x04UL << RCC_ICSCR2_MSITRIM1_Pos)     /*!< 0x00000800 */
15273 #define RCC_ICSCR2_MSITRIM1_3               (0x08UL << RCC_ICSCR2_MSITRIM1_Pos)     /*!< 0x00000C00 */
15274 #define RCC_ICSCR2_MSITRIM1_4               (0x10UL << RCC_ICSCR2_MSITRIM1_Pos)     /*!< 0x00001000 */
15275 #define RCC_ICSCR2_MSITRIM0_Pos             (15U)
15276 #define RCC_ICSCR2_MSITRIM0_Msk             (0x1FUL << RCC_ICSCR2_MSITRIM0_Pos)     /*!< 0x000F8000 */
15277 #define RCC_ICSCR2_MSITRIM0                 RCC_ICSCR2_MSITRIM0_Msk                 /*!< MSITRIM[4:0] bits: MSI Clock Trimming for Ranges 0 to 3 */
15278 #define RCC_ICSCR2_MSITRIM0_0               (0x01UL << RCC_ICSCR2_MSITRIM0_Pos)     /*!< 0x00002000 */
15279 #define RCC_ICSCR2_MSITRIM0_1               (0x02UL << RCC_ICSCR2_MSITRIM0_Pos)     /*!< 0x00004000 */
15280 #define RCC_ICSCR2_MSITRIM0_2               (0x04UL << RCC_ICSCR2_MSITRIM0_Pos)     /*!< 0x00008000 */
15281 #define RCC_ICSCR2_MSITRIM0_3               (0x08UL << RCC_ICSCR2_MSITRIM0_Pos)     /*!< 0x0000C000 */
15282 #define RCC_ICSCR2_MSITRIM0_4               (0x10UL << RCC_ICSCR2_MSITRIM0_Pos)     /*!< 0x00010000 */
15283 
15284 /********************  Bit definition for RCC_ICSCR3 register  ***************/
15285 /*!< HSICAL configuration */
15286 #define RCC_ICSCR3_HSICAL_Pos               (0U)
15287 #define RCC_ICSCR3_HSICAL_Msk               (0xFFFUL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000FFF */
15288 #define RCC_ICSCR3_HSICAL                   RCC_ICSCR3_HSICAL_Msk                   /*!< HSICAL[11:0] bits: HSI Clock Calibration */
15289 #define RCC_ICSCR3_HSICAL_0                 (0x001UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000001 */
15290 #define RCC_ICSCR3_HSICAL_1                 (0x002UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000002 */
15291 #define RCC_ICSCR3_HSICAL_2                 (0x004UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000004 */
15292 #define RCC_ICSCR3_HSICAL_3                 (0x008UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000008 */
15293 #define RCC_ICSCR3_HSICAL_4                 (0x010UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000010 */
15294 #define RCC_ICSCR3_HSICAL_5                 (0x020UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000020 */
15295 #define RCC_ICSCR3_HSICAL_6                 (0x040UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000040 */
15296 #define RCC_ICSCR3_HSICAL_7                 (0x080UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000040 */
15297 #define RCC_ICSCR3_HSICAL_8                 (0x100UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000080 */
15298 #define RCC_ICSCR3_HSICAL_9                 (0x200UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000100 */
15299 #define RCC_ICSCR3_HSICAL_10                (0x400UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000200 */
15300 #define RCC_ICSCR3_HSICAL_11                (0x800UL << RCC_ICSCR3_HSICAL_Pos)      /*!< 0x00000400 */
15301 
15302 /*!< HSITRIM configuration */
15303 #define RCC_ICSCR3_HSITRIM_Pos              (16U)
15304 #define RCC_ICSCR3_HSITRIM_Msk              (0x1FUL << RCC_ICSCR3_HSITRIM_Pos)      /*!< 0x7F000000 */
15305 #define RCC_ICSCR3_HSITRIM                  RCC_ICSCR3_HSITRIM_Msk                  /*!< HSITRIM[4:0] bits: HSI Clock Trimming */
15306 #define RCC_ICSCR3_HSITRIM_0                (0x01UL << RCC_ICSCR3_HSITRIM_Pos)      /*!< 0x00010000 */
15307 #define RCC_ICSCR3_HSITRIM_1                (0x02UL << RCC_ICSCR3_HSITRIM_Pos)      /*!< 0x00020000 */
15308 #define RCC_ICSCR3_HSITRIM_2                (0x04UL << RCC_ICSCR3_HSITRIM_Pos)      /*!< 0x00040000 */
15309 #define RCC_ICSCR3_HSITRIM_3                (0x08UL << RCC_ICSCR3_HSITRIM_Pos)      /*!< 0x00080000 */
15310 #define RCC_ICSCR3_HSITRIM_4                (0x10UL << RCC_ICSCR3_HSITRIM_Pos)      /*!< 0x00100000 */
15311 
15312 /********************  Bit definition for RCC_CRRCR register  *****************/
15313 /*!< HSI48CAL configuration */
15314 #define RCC_CRRCR_HSI48CAL_Pos              (0U)
15315 #define RCC_CRRCR_HSI48CAL_Msk              (0x1FFUL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x000001FF */
15316 #define RCC_CRRCR_HSI48CAL                  RCC_CRRCR_HSI48CAL_Msk                  /*!< HSI48CAL[4:0] bits: HSI48 Clock Calibration */
15317 #define RCC_CRRCR_HSI48CAL_0                (0x001UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000001 */
15318 #define RCC_CRRCR_HSI48CAL_1                (0x002UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000002 */
15319 #define RCC_CRRCR_HSI48CAL_2                (0x004UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000004 */
15320 #define RCC_CRRCR_HSI48CAL_3                (0x008UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000008 */
15321 #define RCC_CRRCR_HSI48CAL_4                (0x010UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000010 */
15322 #define RCC_CRRCR_HSI48CAL_5                (0x020UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000020 */
15323 #define RCC_CRRCR_HSI48CAL_6                (0x040UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000040 */
15324 #define RCC_CRRCR_HSI48CAL_7                (0x080UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000080 */
15325 #define RCC_CRRCR_HSI48CAL_8                (0x100UL << RCC_CRRCR_HSI48CAL_Pos)     /*!< 0x00000100 */
15326 
15327 /********************  Bit definition for RCC_CFGR register  ******************/
15328 /*!< SW configuration */
15329 #define RCC_CFGR1_SW_Pos                    (0U)
15330 #define RCC_CFGR1_SW_Msk                    (0x3UL << RCC_CFGR1_SW_Pos)             /*!< 0x00000003 */
15331 #define RCC_CFGR1_SW                        RCC_CFGR1_SW_Msk                        /*!< SW[1:0] bits (System clock Switch) */
15332 #define RCC_CFGR1_SW_0                      (0x1UL << RCC_CFGR1_SW_Pos)             /*!< 0x00000001 */
15333 #define RCC_CFGR1_SW_1                      (0x2UL << RCC_CFGR1_SW_Pos)             /*!< 0x00000002 */
15334 /*!< SWS configuration */
15335 #define RCC_CFGR1_SWS_Pos                   (2U)
15336 #define RCC_CFGR1_SWS_Msk                   (0x3UL << RCC_CFGR1_SWS_Pos)            /*!< 0x0000000C */
15337 #define RCC_CFGR1_SWS                       RCC_CFGR1_SWS_Msk                       /*!< SWS[1:0] bits (System Clock Switch Status) */
15338 #define RCC_CFGR1_SWS_0                     (0x1UL << RCC_CFGR1_SWS_Pos)            /*!< 0x00000004 */
15339 #define RCC_CFGR1_SWS_1                     (0x2UL << RCC_CFGR1_SWS_Pos)            /*!< 0x00000008 */
15340 #define RCC_CFGR1_STOPWUCK_Pos              (4U)
15341 #define RCC_CFGR1_STOPWUCK_Msk              (0x1UL << RCC_CFGR1_STOPWUCK_Pos)       /*!< 0x00008000 */
15342 #define RCC_CFGR1_STOPWUCK                  RCC_CFGR1_STOPWUCK_Msk                  /*!< Wake Up from stop and CSS backup clock selection */
15343 #define RCC_CFGR1_STOPKERWUCK_Pos           (5U)
15344 #define RCC_CFGR1_STOPKERWUCK_Msk           (0x1UL << RCC_CFGR1_STOPKERWUCK_Pos)    /*!< 0x00008000 */
15345 #define RCC_CFGR1_STOPKERWUCK               RCC_CFGR1_STOPKERWUCK_Msk               /*!< Kernel Clock Selection after a Wake Up from STOP */
15346 /*!< MCOSEL configuration */
15347 #define RCC_CFGR1_MCOSEL_Pos                (24U)
15348 #define RCC_CFGR1_MCOSEL_Msk                (0xFUL << RCC_CFGR1_MCOSEL_Pos)         /*!< 0x0F000000 */
15349 #define RCC_CFGR1_MCOSEL                    RCC_CFGR1_MCOSEL_Msk                    /*!< MCOSEL [3:0] bits (Microcontroller Clock Output (MCO) Selection) */
15350 #define RCC_CFGR1_MCOSEL_0                  (0x1UL << RCC_CFGR1_MCOSEL_Pos)         /*!< 0x01000000 */
15351 #define RCC_CFGR1_MCOSEL_1                  (0x2UL << RCC_CFGR1_MCOSEL_Pos)         /*!< 0x02000000 */
15352 #define RCC_CFGR1_MCOSEL_2                  (0x4UL << RCC_CFGR1_MCOSEL_Pos)         /*!< 0x04000000 */
15353 #define RCC_CFGR1_MCOSEL_3                  (0x8UL << RCC_CFGR1_MCOSEL_Pos)         /*!< 0x08000000 */
15354 #define RCC_CFGR1_MCOPRE_Pos                (28U)
15355 #define RCC_CFGR1_MCOPRE_Msk                (0x7UL << RCC_CFGR1_MCOPRE_Pos)         /*!< 0x70000000 */
15356 #define RCC_CFGR1_MCOPRE                    RCC_CFGR1_MCOPRE_Msk                    /*!< MCOPRE [2:0] bits (Microcontroller Clock Output (MCO) Prescaler) */
15357 #define RCC_CFGR1_MCOPRE_0                  (0x1UL << RCC_CFGR1_MCOPRE_Pos)         /*!< 0x10000000 */
15358 #define RCC_CFGR1_MCOPRE_1                  (0x2UL << RCC_CFGR1_MCOPRE_Pos)         /*!< 0x20000000 */
15359 #define RCC_CFGR1_MCOPRE_2                  (0x4UL << RCC_CFGR1_MCOPRE_Pos)         /*!< 0x40000000 */
15360 
15361 /********************  Bit definition for RCC_CFGR2 register  ******************/
15362 /*!< CDHPRE configuration */
15363 #define RCC_CFGR2_HPRE_Pos                  (0U)
15364 #define RCC_CFGR2_HPRE_Msk                  (0xFUL << RCC_CFGR2_HPRE_Pos)           /*!< 0x0000000F */
15365 #define RCC_CFGR2_HPRE                      RCC_CFGR2_HPRE_Msk                      /*!< HPRE[3:0] bits (AHB prescaler) */
15366 #define RCC_CFGR2_HPRE_0                    (0x1UL << RCC_CFGR2_HPRE_Pos)           /*!< 0x00000001 */
15367 #define RCC_CFGR2_HPRE_1                    (0x2UL << RCC_CFGR2_HPRE_Pos)           /*!< 0x00000002 */
15368 #define RCC_CFGR2_HPRE_2                    (0x4UL << RCC_CFGR2_HPRE_Pos)           /*!< 0x00000004 */
15369 #define RCC_CFGR2_HPRE_3                    (0x8UL << RCC_CFGR2_HPRE_Pos)           /*!< 0x00000008 */
15370 /*!< PPRE1 configuration */
15371 #define RCC_CFGR2_PPRE1_Pos                 (4U)
15372 #define RCC_CFGR2_PPRE1_Msk                 (0x7UL << RCC_CFGR2_PPRE1_Pos)          /*!< 0x00000070 */
15373 #define RCC_CFGR2_PPRE1                     RCC_CFGR2_PPRE1_Msk                     /*!< PPRE1[2:0] bits (APB1 prescaler) */
15374 #define RCC_CFGR2_PPRE1_0                   (0x1UL << RCC_CFGR2_PPRE1_Pos)          /*!< 0x00000010 */
15375 #define RCC_CFGR2_PPRE1_1                   (0x2UL << RCC_CFGR2_PPRE1_Pos)          /*!< 0x00000020 */
15376 #define RCC_CFGR2_PPRE1_2                   (0x4UL << RCC_CFGR2_PPRE1_Pos)          /*!< 0x00000040 */
15377 /*!< PPRE2 configuration */
15378 #define RCC_CFGR2_PPRE2_Pos                 (8U)
15379 #define RCC_CFGR2_PPRE2_Msk                 (0x7UL << RCC_CFGR2_PPRE2_Pos)          /*!< 0x00000F00 */
15380 #define RCC_CFGR2_PPRE2                     RCC_CFGR2_PPRE2_Msk                     /*!< PPRE2[2:0] bits (APB2 prescaler) */
15381 #define RCC_CFGR2_PPRE2_0                   (0x1UL << RCC_CFGR2_PPRE2_Pos)          /*!< 0x00000100 */
15382 #define RCC_CFGR2_PPRE2_1                   (0x2UL << RCC_CFGR2_PPRE2_Pos)          /*!< 0x00000200 */
15383 #define RCC_CFGR2_PPRE2_2                   (0x4UL << RCC_CFGR2_PPRE2_Pos)          /*!< 0x00000400 */
15384 #define RCC_CFGR2_AHB1DIS_Pos               (16U)
15385 #define RCC_CFGR2_AHB1DIS_Msk               (0x1UL << RCC_CFGR2_AHB1DIS_Pos)        /*!< 0x00010000 */
15386 #define RCC_CFGR2_AHB1DIS                   RCC_CFGR2_AHB1DIS_Msk                   /*!< AHB1 clock disable */
15387 #define RCC_CFGR2_AHB2DIS1_Pos              (17U)
15388 #define RCC_CFGR2_AHB2DIS1_Msk              (0x1UL << RCC_CFGR2_AHB2DIS1_Pos)       /*!< 0x00020000 */
15389 #define RCC_CFGR2_AHB2DIS1                  RCC_CFGR2_AHB2DIS1_Msk                  /*!< AHB2 clock disable */
15390 #define RCC_CFGR2_AHB2DIS2_Pos              (18U)
15391 #define RCC_CFGR2_AHB2DIS2_Msk              (0x1UL << RCC_CFGR2_AHB2DIS2_Pos)       /*!< 0x00040000 */
15392 #define RCC_CFGR2_AHB2DIS2                  RCC_CFGR2_AHB2DIS2_Msk                  /*!< AHB2 clock disable */
15393 #define RCC_CFGR2_APB1DIS_Pos               (19U)
15394 #define RCC_CFGR2_APB1DIS_Msk               (0x1UL << RCC_CFGR2_APB1DIS_Pos)        /*!< 0x00080000 */
15395 #define RCC_CFGR2_APB1DIS                   RCC_CFGR2_APB1DIS_Msk                   /*!< APB1 clock disable */
15396 #define RCC_CFGR2_APB2DIS_Pos               (20U)
15397 #define RCC_CFGR2_APB2DIS_Msk               (0x1UL << RCC_CFGR2_APB2DIS_Pos)        /*!< 0x00100000 */
15398 #define RCC_CFGR2_APB2DIS                   RCC_CFGR2_APB2DIS_Msk                   /*!< APB2 clock disable */
15399 
15400 /********************  Bit definition for RCC_CFGR3 register  ******************/
15401 /*!< PPRE3 configuration */
15402 #define RCC_CFGR3_PPRE3_Pos                 (4U)
15403 #define RCC_CFGR3_PPRE3_Msk                 (0x7UL << RCC_CFGR3_PPRE3_Pos)          /*!< 0x00000070 */
15404 #define RCC_CFGR3_PPRE3                     RCC_CFGR3_PPRE3_Msk                     /*!< PPRE31[2:0] bits (APB3 prescaler) */
15405 #define RCC_CFGR3_PPRE3_0                   (0x1UL << RCC_CFGR3_PPRE3_Pos)          /*!< 0x00000010 */
15406 #define RCC_CFGR3_PPRE3_1                   (0x2UL << RCC_CFGR3_PPRE3_Pos)          /*!< 0x00000020 */
15407 #define RCC_CFGR3_PPRE3_2                   (0x4UL << RCC_CFGR3_PPRE3_Pos)          /*!< 0x00000040 */
15408 
15409 #define RCC_CFGR3_AHB3DIS_Pos               (16U)
15410 #define RCC_CFGR3_AHB3DIS_Msk               (0x1UL << RCC_CFGR3_AHB3DIS_Pos)        /*!< 0x00010000 */
15411 #define RCC_CFGR3_AHB3DIS                   RCC_CFGR3_AHB3DIS_Msk                   /*!< AHB3 clock disable */
15412 
15413 #define RCC_CFGR3_APB3DIS_Pos               (17U)
15414 #define RCC_CFGR3_APB3DIS_Msk               (0x1UL << RCC_CFGR3_APB3DIS_Pos)        /*!< 0x00020000 */
15415 #define RCC_CFGR3_APB3DIS                   RCC_CFGR3_APB3DIS_Msk                   /*!< APB3 clock disable */
15416 
15417 /********************  Bit definition for RCC_PLL1CFGR register  ***************/
15418 #define RCC_PLL1CFGR_PLL1SRC_Pos            (0U)
15419 #define RCC_PLL1CFGR_PLL1SRC_Msk            (0x3UL << RCC_PLL1CFGR_PLL1SRC_Pos)     /*!< 0x00000003 */
15420 #define RCC_PLL1CFGR_PLL1SRC                RCC_PLL1CFGR_PLL1SRC_Msk                /*!< PLL1SRC[1:0] bits (PLL1 Entry Clock Source) */
15421 #define RCC_PLL1CFGR_PLL1SRC_0              (0x1UL << RCC_PLL1CFGR_PLL1SRC_Pos)     /*!< 0x00000001 */
15422 #define RCC_PLL1CFGR_PLL1SRC_1              (0x2UL << RCC_PLL1CFGR_PLL1SRC_Pos)     /*!< 0x00000002 */
15423 #define RCC_PLL1CFGR_PLL1RGE_Pos            (2U)
15424 #define RCC_PLL1CFGR_PLL1RGE_Msk            (0x3UL << RCC_PLL1CFGR_PLL1RGE_Pos)     /*!< 0x0000000C */
15425 #define RCC_PLL1CFGR_PLL1RGE                RCC_PLL1CFGR_PLL1RGE_Msk                /*!< PLL1RGE[1:0] bits (PLL1 Input Frequency Range) */
15426 #define RCC_PLL1CFGR_PLL1RGE_0              (0x1UL << RCC_PLL1CFGR_PLL1RGE_Pos)     /*!< 0x00000004 */
15427 #define RCC_PLL1CFGR_PLL1RGE_1              (0x2UL << RCC_PLL1CFGR_PLL1RGE_Pos)     /*!< 0x00000008 */
15428 #define RCC_PLL1CFGR_PLL1FRACEN_Pos         (4U)
15429 #define RCC_PLL1CFGR_PLL1FRACEN_Msk         (0x1UL << RCC_PLL1CFGR_PLL1FRACEN_Pos)  /*!< 0x00000010 */
15430 #define RCC_PLL1CFGR_PLL1FRACEN             RCC_PLL1CFGR_PLL1FRACEN_Msk             /*!< PLL1 Fractional Latch Enable */
15431 #define RCC_PLL1CFGR_PLL1M_Pos              (8U)
15432 #define RCC_PLL1CFGR_PLL1M_Msk              (0xFUL << RCC_PLL1CFGR_PLL1M_Pos)       /*!< 0x000003F0 */
15433 #define RCC_PLL1CFGR_PLL1M                  RCC_PLL1CFGR_PLL1M_Msk                  /*!< PLL1M[3:0]: bits (Prescaler for PLL1) */
15434 #define RCC_PLL1CFGR_PLL1M_0                (0x01UL << RCC_PLL1CFGR_PLL1M_Pos)      /*!< 0x00000100 */
15435 #define RCC_PLL1CFGR_PLL1M_1                (0x02UL << RCC_PLL1CFGR_PLL1M_Pos)      /*!< 0x00000200 */
15436 #define RCC_PLL1CFGR_PLL1M_2                (0x04UL << RCC_PLL1CFGR_PLL1M_Pos)      /*!< 0x00000400 */
15437 #define RCC_PLL1CFGR_PLL1M_3                (0x08UL << RCC_PLL1CFGR_PLL1M_Pos)      /*!< 0x00000800 */
15438 #define RCC_PLL1CFGR_PLL1MBOOST_Pos         (12U)
15439 #define RCC_PLL1CFGR_PLL1MBOOST_Msk         (0xFUL << RCC_PLL1CFGR_PLL1MBOOST_Pos)  /*!< 0x000003F0 */
15440 #define RCC_PLL1CFGR_PLL1MBOOST             RCC_PLL1CFGR_PLL1MBOOST_Msk             /*!< PLL1MBOOST[3:0]: bits (Prescaler for EPOD booster input clock) */
15441 #define RCC_PLL1CFGR_PLL1MBOOST_0           (0x01UL << RCC_PLL1CFGR_PLL1MBOOST_Pos) /*!< 0x00001000 */
15442 #define RCC_PLL1CFGR_PLL1MBOOST_1           (0x02UL << RCC_PLL1CFGR_PLL1MBOOST_Pos) /*!< 0x00002000 */
15443 #define RCC_PLL1CFGR_PLL1MBOOST_2           (0x04UL << RCC_PLL1CFGR_PLL1MBOOST_Pos) /*!< 0x00004000 */
15444 #define RCC_PLL1CFGR_PLL1MBOOST_3           (0x08UL << RCC_PLL1CFGR_PLL1MBOOST_Pos) /*!< 0x00008000 */
15445 #define RCC_PLL1CFGR_PLL1PEN_Pos            (16U)
15446 #define RCC_PLL1CFGR_PLL1PEN_Msk            (0x1UL << RCC_PLL1CFGR_PLL1PEN_Pos)     /*!< 0x00010000 */
15447 #define RCC_PLL1CFGR_PLL1PEN                RCC_PLL1CFGR_PLL1PEN_Msk                /*!< PLL1 DIVP Divider Output Enable */
15448 #define RCC_PLL1CFGR_PLL1QEN_Pos            (17U)
15449 #define RCC_PLL1CFGR_PLL1QEN_Msk            (0x1UL << RCC_PLL1CFGR_PLL1QEN_Pos)     /*!< 0x00020000 */
15450 #define RCC_PLL1CFGR_PLL1QEN                RCC_PLL1CFGR_PLL1QEN_Msk                /*!< PLL1 DIVQ Divider Output Enable */
15451 #define RCC_PLL1CFGR_PLL1REN_Pos            (18U)
15452 #define RCC_PLL1CFGR_PLL1REN_Msk            (0x1UL << RCC_PLL1CFGR_PLL1REN_Pos)     /*!< 0x00040000 */
15453 #define RCC_PLL1CFGR_PLL1REN                RCC_PLL1CFGR_PLL1REN_Msk                /*!< PLL1 DIVR Divider Output Enable */
15454 
15455 /********************  Bit definition for RCC_PLL2CFGR register  ***************/
15456 #define RCC_PLL2CFGR_PLL2SRC_Pos            (0U)
15457 #define RCC_PLL2CFGR_PLL2SRC_Msk            (0x3UL << RCC_PLL2CFGR_PLL2SRC_Pos)     /*!< 0x00000003 */
15458 #define RCC_PLL2CFGR_PLL2SRC                RCC_PLL2CFGR_PLL2SRC_Msk                /*!< PLL2SRC[1:0] bits (PLL2 Entry Clock Source) */
15459 #define RCC_PLL2CFGR_PLL2SRC_0              (0x1UL << RCC_PLL2CFGR_PLL2SRC_Pos)     /*!< 0x00000001 */
15460 #define RCC_PLL2CFGR_PLL2SRC_1              (0x2UL << RCC_PLL2CFGR_PLL2SRC_Pos)     /*!< 0x00000002 */
15461 #define RCC_PLL2CFGR_PLL2RGE_Pos            (2U)
15462 #define RCC_PLL2CFGR_PLL2RGE_Msk            (0x3UL << RCC_PLL2CFGR_PLL2RGE_Pos)     /*!< 0x0000000C */
15463 #define RCC_PLL2CFGR_PLL2RGE                RCC_PLL2CFGR_PLL2RGE_Msk                /*!< PLL2RGE[1:0] bits (PLL2 Input Frequency Range) */
15464 #define RCC_PLL2CFGR_PLL2RGE_0              (0x1UL << RCC_PLL2CFGR_PLL2RGE_Pos)     /*!< 0x00000004 */
15465 #define RCC_PLL2CFGR_PLL2RGE_1              (0x2UL << RCC_PLL2CFGR_PLL2RGE_Pos)     /*!< 0x00000008 */
15466 #define RCC_PLL2CFGR_PLL2FRACEN_Pos         (4U)
15467 #define RCC_PLL2CFGR_PLL2FRACEN_Msk         (0x1UL << RCC_PLL2CFGR_PLL2FRACEN_Pos)  /*!< 0x00000010 */
15468 #define RCC_PLL2CFGR_PLL2FRACEN             RCC_PLL2CFGR_PLL2FRACEN_Msk             /*!< PLL2 Fractional Latch Enable */
15469 #define RCC_PLL2CFGR_PLL2M_Pos              (8U)
15470 #define RCC_PLL2CFGR_PLL2M_Msk              (0xFUL << RCC_PLL2CFGR_PLL2M_Pos)       /*!< 0x000003F0 */
15471 #define RCC_PLL2CFGR_PLL2M                  RCC_PLL2CFGR_PLL2M_Msk                  /*!< PLL2M[3:0]: bits (Prescaler for PLL2) */
15472 #define RCC_PLL2CFGR_PLL2M_0                (0x01UL << RCC_PLL2CFGR_PLL2M_Pos)      /*!< 0x00000100 */
15473 #define RCC_PLL2CFGR_PLL2M_1                (0x02UL << RCC_PLL2CFGR_PLL2M_Pos)      /*!< 0x00000200 */
15474 #define RCC_PLL2CFGR_PLL2M_2                (0x04UL << RCC_PLL2CFGR_PLL2M_Pos)      /*!< 0x00000400 */
15475 #define RCC_PLL2CFGR_PLL2M_3                (0x08UL << RCC_PLL2CFGR_PLL2M_Pos)      /*!< 0x00000800 */
15476 #define RCC_PLL2CFGR_PLL2PEN_Pos            (16U)
15477 #define RCC_PLL2CFGR_PLL2PEN_Msk            (0x1UL << RCC_PLL2CFGR_PLL2PEN_Pos)     /*!< 0x00010000 */
15478 #define RCC_PLL2CFGR_PLL2PEN                RCC_PLL2CFGR_PLL2PEN_Msk                /*!< PLL2 DIVP Divider Output Enable */
15479 #define RCC_PLL2CFGR_PLL2QEN_Pos            (17U)
15480 #define RCC_PLL2CFGR_PLL2QEN_Msk            (0x1UL << RCC_PLL2CFGR_PLL2QEN_Pos)     /*!< 0x00020000 */
15481 #define RCC_PLL2CFGR_PLL2QEN                RCC_PLL2CFGR_PLL2QEN_Msk                /*!< PLL2 DIVQ Divider Output Enable */
15482 #define RCC_PLL2CFGR_PLL2REN_Pos            (18U)
15483 #define RCC_PLL2CFGR_PLL2REN_Msk            (0x1UL << RCC_PLL2CFGR_PLL2REN_Pos)     /*!< 0x00040000 */
15484 #define RCC_PLL2CFGR_PLL2REN                RCC_PLL2CFGR_PLL2REN_Msk                /*!< PLL2 DIVR Divider Output Enable */
15485 
15486 /********************  Bit definition for RCC_PLL3CFGR register  ***************/
15487 #define RCC_PLL3CFGR_PLL3SRC_Pos            (0U)
15488 #define RCC_PLL3CFGR_PLL3SRC_Msk            (0x3UL << RCC_PLL3CFGR_PLL3SRC_Pos)     /*!< 0x00000003 */
15489 #define RCC_PLL3CFGR_PLL3SRC                RCC_PLL3CFGR_PLL3SRC_Msk                /*!< PLL3SRC[1:0] bits (PLL3 Entry Clock Source) */
15490 #define RCC_PLL3CFGR_PLL3SRC_0              (0x1UL << RCC_PLL3CFGR_PLL3SRC_Pos)     /*!< 0x00000001 */
15491 #define RCC_PLL3CFGR_PLL3SRC_1              (0x2UL << RCC_PLL3CFGR_PLL3SRC_Pos)     /*!< 0x00000002 */
15492 #define RCC_PLL3CFGR_PLL3RGE_Pos            (2U)
15493 #define RCC_PLL3CFGR_PLL3RGE_Msk            (0x3UL << RCC_PLL3CFGR_PLL3RGE_Pos)     /*!< 0x0000000C */
15494 #define RCC_PLL3CFGR_PLL3RGE                RCC_PLL3CFGR_PLL3RGE_Msk                /*!< PLL3RGE[1:0] bits (PLL3 Input Frequency Range) */
15495 #define RCC_PLL3CFGR_PLL3RGE_0              (0x1UL << RCC_PLL3CFGR_PLL3RGE_Pos)     /*!< 0x00000004 */
15496 #define RCC_PLL3CFGR_PLL3RGE_1              (0x2UL << RCC_PLL3CFGR_PLL3RGE_Pos)     /*!< 0x00000008 */
15497 #define RCC_PLL3CFGR_PLL3FRACEN_Pos         (4U)
15498 #define RCC_PLL3CFGR_PLL3FRACEN_Msk         (0x1UL << RCC_PLL3CFGR_PLL3FRACEN_Pos)  /*!< 0x00000010 */
15499 #define RCC_PLL3CFGR_PLL3FRACEN             RCC_PLL3CFGR_PLL3FRACEN_Msk             /*!< PLL3 Fractional Latch Enable */
15500 #define RCC_PLL3CFGR_PLL3M_Pos              (8U)
15501 #define RCC_PLL3CFGR_PLL3M_Msk              (0xFUL << RCC_PLL3CFGR_PLL3M_Pos)       /*!< 0x000003F0 */
15502 #define RCC_PLL3CFGR_PLL3M                  RCC_PLL3CFGR_PLL3M_Msk                  /*!< PLL3M[3:0]: bits (Prescaler for PLL3) */
15503 #define RCC_PLL3CFGR_PLL3M_0                (0x01UL << RCC_PLL3CFGR_PLL3M_Pos)      /*!< 0x00000100 */
15504 #define RCC_PLL3CFGR_PLL3M_1                (0x02UL << RCC_PLL3CFGR_PLL3M_Pos)      /*!< 0x00000200 */
15505 #define RCC_PLL3CFGR_PLL3M_2                (0x04UL << RCC_PLL3CFGR_PLL3M_Pos)      /*!< 0x00000400 */
15506 #define RCC_PLL3CFGR_PLL3M_3                (0x08UL << RCC_PLL3CFGR_PLL3M_Pos)      /*!< 0x00000800 */
15507 #define RCC_PLL3CFGR_PLL3PEN_Pos            (16U)
15508 #define RCC_PLL3CFGR_PLL3PEN_Msk            (0x1UL << RCC_PLL3CFGR_PLL3PEN_Pos)     /*!< 0x00010000 */
15509 #define RCC_PLL3CFGR_PLL3PEN                RCC_PLL3CFGR_PLL3PEN_Msk                /*!< PLL3 DIVP Divider Output Enable */
15510 #define RCC_PLL3CFGR_PLL3QEN_Pos            (17U)
15511 #define RCC_PLL3CFGR_PLL3QEN_Msk            (0x1UL << RCC_PLL3CFGR_PLL3QEN_Pos)     /*!< 0x00020000 */
15512 #define RCC_PLL3CFGR_PLL3QEN                RCC_PLL3CFGR_PLL3QEN_Msk                /*!< PLL3 DIVQ Divider Output Enable */
15513 #define RCC_PLL3CFGR_PLL3REN_Pos            (18U)
15514 #define RCC_PLL3CFGR_PLL3REN_Msk            (0x1UL << RCC_PLL3CFGR_PLL3REN_Pos)     /*!< 0x00040000 */
15515 #define RCC_PLL3CFGR_PLL3REN                RCC_PLL3CFGR_PLL3REN_Msk                /*!< PLL3 DIVR Divider Output Enable */
15516 
15517 /********************  Bit definition for RCC_PLL1DIVR register  ***************/
15518 #define RCC_PLL1DIVR_PLL1N_Pos              (0U)
15519 #define RCC_PLL1DIVR_PLL1N_Msk              (0x1FFUL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x000001FF */
15520 #define RCC_PLL1DIVR_PLL1N                  RCC_PLL1DIVR_PLL1N_Msk                  /*!< PLL1N[8:0]: bits (Multiplication Factor For PLL1 VCO) */
15521 #define RCC_PLL1DIVR_PLL1N_0                (0x001UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000001 */
15522 #define RCC_PLL1DIVR_PLL1N_1                (0x002UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000002 */
15523 #define RCC_PLL1DIVR_PLL1N_2                (0x004UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000004 */
15524 #define RCC_PLL1DIVR_PLL1N_3                (0x008UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000008 */
15525 #define RCC_PLL1DIVR_PLL1N_4                (0x010UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000010 */
15526 #define RCC_PLL1DIVR_PLL1N_5                (0x020UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000020 */
15527 #define RCC_PLL1DIVR_PLL1N_6                (0x040UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000040 */
15528 #define RCC_PLL1DIVR_PLL1N_7                (0x080UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000080 */
15529 #define RCC_PLL1DIVR_PLL1N_8                (0x100UL << RCC_PLL1DIVR_PLL1N_Pos)     /*!< 0x00000100 */
15530 #define RCC_PLL1DIVR_PLL1P_Pos              (9U)
15531 #define RCC_PLL1DIVR_PLL1P_Msk              (0x7FUL << RCC_PLL1DIVR_PLL1P_Pos)      /*!< 0x0000FE00 */
15532 #define RCC_PLL1DIVR_PLL1P                  RCC_PLL1DIVR_PLL1P_Msk                  /*!< PLL1P[6:0]: bits (PLL1 DIVP Division Factor) */
15533 #define RCC_PLL1DIVR_PLL1P_0                (0x001UL << RCC_PLL1DIVR_PLL1P_Pos)     /*!< 0x00000200 */
15534 #define RCC_PLL1DIVR_PLL1P_1                (0x002UL << RCC_PLL1DIVR_PLL1P_Pos)     /*!< 0x00000400 */
15535 #define RCC_PLL1DIVR_PLL1P_2                (0x004UL << RCC_PLL1DIVR_PLL1P_Pos)     /*!< 0x00000800 */
15536 #define RCC_PLL1DIVR_PLL1P_3                (0x008UL << RCC_PLL1DIVR_PLL1P_Pos)     /*!< 0x00001000 */
15537 #define RCC_PLL1DIVR_PLL1P_4                (0x010UL << RCC_PLL1DIVR_PLL1P_Pos)     /*!< 0x00002000 */
15538 #define RCC_PLL1DIVR_PLL1P_5                (0x020UL << RCC_PLL1DIVR_PLL1P_Pos)     /*!< 0x00004000 */
15539 #define RCC_PLL1DIVR_PLL1P_6                (0x040UL << RCC_PLL1DIVR_PLL1P_Pos)     /*!< 0x00008000 */
15540 #define RCC_PLL1DIVR_PLL1Q_Pos              (16U)
15541 #define RCC_PLL1DIVR_PLL1Q_Msk              (0x7FUL << RCC_PLL1DIVR_PLL1Q_Pos)      /*!< 0x007F0000 */
15542 #define RCC_PLL1DIVR_PLL1Q                  RCC_PLL1DIVR_PLL1Q_Msk                  /*!< PLL1Q[6:0]: bits (PLL1 DIVQ Division Factor) */
15543 #define RCC_PLL1DIVR_PLL1Q_0                (0x001UL << RCC_PLL1DIVR_PLL1Q_Pos)     /*!< 0x00010000 */
15544 #define RCC_PLL1DIVR_PLL1Q_1                (0x002UL << RCC_PLL1DIVR_PLL1Q_Pos)     /*!< 0x00020000 */
15545 #define RCC_PLL1DIVR_PLL1Q_2                (0x004UL << RCC_PLL1DIVR_PLL1Q_Pos)     /*!< 0x00040000 */
15546 #define RCC_PLL1DIVR_PLL1Q_3                (0x008UL << RCC_PLL1DIVR_PLL1Q_Pos)     /*!< 0x00080000 */
15547 #define RCC_PLL1DIVR_PLL1Q_4                (0x010UL << RCC_PLL1DIVR_PLL1Q_Pos)     /*!< 0x00100000 */
15548 #define RCC_PLL1DIVR_PLL1Q_5                (0x020UL << RCC_PLL1DIVR_PLL1Q_Pos)     /*!< 0x00200020 */
15549 #define RCC_PLL1DIVR_PLL1Q_6                (0x040UL << RCC_PLL1DIVR_PLL1Q_Pos)     /*!< 0x00400000 */
15550 #define RCC_PLL1DIVR_PLL1R_Pos              (24U)
15551 #define RCC_PLL1DIVR_PLL1R_Msk              (0x7FUL << RCC_PLL1DIVR_PLL1R_Pos)      /*!< 0x7F000000 */
15552 #define RCC_PLL1DIVR_PLL1R                  RCC_PLL1DIVR_PLL1R_Msk                  /*!< PLL1R[6:0]: bits (PLL1 DIVR Division Factor) */
15553 #define RCC_PLL1DIVR_PLL1R_0                (0x001UL << RCC_PLL1DIVR_PLL1R_Pos)     /*!< 0x01000000 */
15554 #define RCC_PLL1DIVR_PLL1R_1                (0x002UL << RCC_PLL1DIVR_PLL1R_Pos)     /*!< 0x02000000 */
15555 #define RCC_PLL1DIVR_PLL1R_2                (0x004UL << RCC_PLL1DIVR_PLL1R_Pos)     /*!< 0x04000000 */
15556 #define RCC_PLL1DIVR_PLL1R_3                (0x008UL << RCC_PLL1DIVR_PLL1R_Pos)     /*!< 0x08000000 */
15557 #define RCC_PLL1DIVR_PLL1R_4                (0x010UL << RCC_PLL1DIVR_PLL1R_Pos)     /*!< 0x10000000 */
15558 #define RCC_PLL1DIVR_PLL1R_5                (0x020UL << RCC_PLL1DIVR_PLL1R_Pos)     /*!< 0x20000000 */
15559 #define RCC_PLL1DIVR_PLL1R_6                (0x040UL << RCC_PLL1DIVR_PLL1R_Pos)     /*!< 0x40000000 */
15560 
15561 /********************  Bit definition for RCC_PLL1FRACR register  ***************/
15562 #define RCC_PLL1FRACR_PLL1FRACN_Pos         (3U)
15563 #define RCC_PLL1FRACR_PLL1FRACN_Msk         (0x1FFFUL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x0000FFF8 */
15564 #define RCC_PLL1FRACR_PLL1FRACN             RCC_PLL1FRACR_PLL1FRACN_Msk               /*!< PLL1FRACN[12:0]: bits (Fractional Part of the Multiplication Factor for PLL1 VCO) */
15565 #define RCC_PLL1FRACR_PLL1FRACN_0           (0x0001UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000008 */
15566 #define RCC_PLL1FRACR_PLL1FRACN_1           (0x0002UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000010 */
15567 #define RCC_PLL1FRACR_PLL1FRACN_2           (0x0004UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000020 */
15568 #define RCC_PLL1FRACR_PLL1FRACN_3           (0x0008UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000040 */
15569 #define RCC_PLL1FRACR_PLL1FRACN_4           (0x0010UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000080 */
15570 #define RCC_PLL1FRACR_PLL1FRACN_5           (0x0020UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000100 */
15571 #define RCC_PLL1FRACR_PLL1FRACN_6           (0x0040UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000200 */
15572 #define RCC_PLL1FRACR_PLL1FRACN_7           (0x0080UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000400 */
15573 #define RCC_PLL1FRACR_PLL1FRACN_8           (0x0100UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00000800 */
15574 #define RCC_PLL1FRACR_PLL1FRACN_9           (0x0200UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00001000 */
15575 #define RCC_PLL1FRACR_PLL1FRACN_10          (0x0400UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00002000 */
15576 #define RCC_PLL1FRACR_PLL1FRACN_11          (0x0800UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00004000 */
15577 #define RCC_PLL1FRACR_PLL1FRACN_12          (0x1000UL << RCC_PLL1FRACR_PLL1FRACN_Pos) /*!< 0x00008000 */
15578 
15579 /********************  Bit definition for RCC_PLL2DIVR register  ***************/
15580 #define RCC_PLL2DIVR_PLL2N_Pos              (0U)
15581 #define RCC_PLL2DIVR_PLL2N_Msk              (0x1FFUL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x000001FF */
15582 #define RCC_PLL2DIVR_PLL2N                  RCC_PLL2DIVR_PLL2N_Msk                  /*!< PLL2N[8:0]: bits (Multiplication Factor for PLL2 VCO) */
15583 #define RCC_PLL2DIVR_PLL2N_0                (0x001UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000001 */
15584 #define RCC_PLL2DIVR_PLL2N_1                (0x002UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000002 */
15585 #define RCC_PLL2DIVR_PLL2N_2                (0x004UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000004 */
15586 #define RCC_PLL2DIVR_PLL2N_3                (0x008UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000008 */
15587 #define RCC_PLL2DIVR_PLL2N_4                (0x010UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000010 */
15588 #define RCC_PLL2DIVR_PLL2N_5                (0x020UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000020 */
15589 #define RCC_PLL2DIVR_PLL2N_6                (0x040UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000040 */
15590 #define RCC_PLL2DIVR_PLL2N_7                (0x080UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000080 */
15591 #define RCC_PLL2DIVR_PLL2N_8                (0x100UL << RCC_PLL2DIVR_PLL2N_Pos)     /*!< 0x00000100 */
15592 #define RCC_PLL2DIVR_PLL2P_Pos              (9U)
15593 #define RCC_PLL2DIVR_PLL2P_Msk              (0x7FUL << RCC_PLL2DIVR_PLL2P_Pos)      /*!< 0x0000FE00 */
15594 #define RCC_PLL2DIVR_PLL2P                  RCC_PLL2DIVR_PLL2P_Msk                  /*!< PLL2P[6:0]: bits (PLL2 DIVP Division Factor) */
15595 #define RCC_PLL2DIVR_PLL2P_0                (0x001UL << RCC_PLL2DIVR_PLL2P_Pos)     /*!< 0x00000200 */
15596 #define RCC_PLL2DIVR_PLL2P_1                (0x002UL << RCC_PLL2DIVR_PLL2P_Pos)     /*!< 0x00000400 */
15597 #define RCC_PLL2DIVR_PLL2P_2                (0x004UL << RCC_PLL2DIVR_PLL2P_Pos)     /*!< 0x00000800 */
15598 #define RCC_PLL2DIVR_PLL2P_3                (0x008UL << RCC_PLL2DIVR_PLL2P_Pos)     /*!< 0x00001000 */
15599 #define RCC_PLL2DIVR_PLL2P_4                (0x010UL << RCC_PLL2DIVR_PLL2P_Pos)     /*!< 0x00002000 */
15600 #define RCC_PLL2DIVR_PLL2P_5                (0x020UL << RCC_PLL2DIVR_PLL2P_Pos)     /*!< 0x00004000 */
15601 #define RCC_PLL2DIVR_PLL2P_6                (0x040UL << RCC_PLL2DIVR_PLL2P_Pos)     /*!< 0x00008000 */
15602 #define RCC_PLL2DIVR_PLL2Q_Pos              (16U)
15603 #define RCC_PLL2DIVR_PLL2Q_Msk              (0x7FUL << RCC_PLL2DIVR_PLL2Q_Pos)      /*!< 0x007F0000 */
15604 #define RCC_PLL2DIVR_PLL2Q                  RCC_PLL2DIVR_PLL2Q_Msk                  /*!< PLL2Q[6:0]: bits (PLL2 DIVQ Division Factor) */
15605 #define RCC_PLL2DIVR_PLL2Q_0                (0x001UL << RCC_PLL2DIVR_PLL2Q_Pos)     /*!< 0x00010000 */
15606 #define RCC_PLL2DIVR_PLL2Q_1                (0x002UL << RCC_PLL2DIVR_PLL2Q_Pos)     /*!< 0x00020000 */
15607 #define RCC_PLL2DIVR_PLL2Q_2                (0x004UL << RCC_PLL2DIVR_PLL2Q_Pos)     /*!< 0x00040000 */
15608 #define RCC_PLL2DIVR_PLL2Q_3                (0x008UL << RCC_PLL2DIVR_PLL2Q_Pos)     /*!< 0x00080000 */
15609 #define RCC_PLL2DIVR_PLL2Q_4                (0x010UL << RCC_PLL2DIVR_PLL2Q_Pos)     /*!< 0x00100000 */
15610 #define RCC_PLL2DIVR_PLL2Q_5                (0x020UL << RCC_PLL2DIVR_PLL2Q_Pos)     /*!< 0x00200020 */
15611 #define RCC_PLL2DIVR_PLL2Q_6                (0x040UL << RCC_PLL2DIVR_PLL2Q_Pos)     /*!< 0x00400000 */
15612 #define RCC_PLL2DIVR_PLL2R_Pos              (24U)
15613 #define RCC_PLL2DIVR_PLL2R_Msk              (0x7FUL << RCC_PLL2DIVR_PLL2R_Pos)      /*!< 0x7F000000 */
15614 #define RCC_PLL2DIVR_PLL2R                  RCC_PLL2DIVR_PLL2R_Msk                  /*!< PLL2R[6:0]: bits (PLL2 DIVR Division Factor) */
15615 #define RCC_PLL2DIVR_PLL2R_0                (0x001UL << RCC_PLL2DIVR_PLL2R_Pos)     /*!< 0x01000000 */
15616 #define RCC_PLL2DIVR_PLL2R_1                (0x002UL << RCC_PLL2DIVR_PLL2R_Pos)     /*!< 0x02000000 */
15617 #define RCC_PLL2DIVR_PLL2R_2                (0x004UL << RCC_PLL2DIVR_PLL2R_Pos)     /*!< 0x04000000 */
15618 #define RCC_PLL2DIVR_PLL2R_3                (0x008UL << RCC_PLL2DIVR_PLL2R_Pos)     /*!< 0x08000000 */
15619 #define RCC_PLL2DIVR_PLL2R_4                (0x010UL << RCC_PLL2DIVR_PLL2R_Pos)     /*!< 0x10000000 */
15620 #define RCC_PLL2DIVR_PLL2R_5                (0x020UL << RCC_PLL2DIVR_PLL2R_Pos)     /*!< 0x20000000 */
15621 #define RCC_PLL2DIVR_PLL2R_6                (0x040UL << RCC_PLL2DIVR_PLL2R_Pos)     /*!< 0x40000000 */
15622 
15623 /********************  Bit definition for RCC_PLL2FRACR register  ***************/
15624 #define RCC_PLL2FRACR_PLL2FRACN_Pos         (3U)
15625 #define RCC_PLL2FRACR_PLL2FRACN_Msk         (0x1FFFUL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x0000FFF8 */
15626 #define RCC_PLL2FRACR_PLL2FRACN             RCC_PLL2FRACR_PLL2FRACN_Msk               /*!< PLL2FRACN[12:0]: bits (Fractional Part of the Multiplication Factor for PLL2 VCO) */
15627 #define RCC_PLL2FRACR_PLL2FRACN_0           (0x0001UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000008 */
15628 #define RCC_PLL2FRACR_PLL2FRACN_1           (0x0002UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000010 */
15629 #define RCC_PLL2FRACR_PLL2FRACN_2           (0x0004UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000020 */
15630 #define RCC_PLL2FRACR_PLL2FRACN_3           (0x0008UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000040 */
15631 #define RCC_PLL2FRACR_PLL2FRACN_4           (0x0010UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000080 */
15632 #define RCC_PLL2FRACR_PLL2FRACN_5           (0x0020UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000100 */
15633 #define RCC_PLL2FRACR_PLL2FRACN_6           (0x0040UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000200 */
15634 #define RCC_PLL2FRACR_PLL2FRACN_7           (0x0080UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000400 */
15635 #define RCC_PLL2FRACR_PLL2FRACN_8           (0x0100UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00000800 */
15636 #define RCC_PLL2FRACR_PLL2FRACN_9           (0x0200UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00001000 */
15637 #define RCC_PLL2FRACR_PLL2FRACN_10          (0x0400UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00002000 */
15638 #define RCC_PLL2FRACR_PLL2FRACN_11          (0x0800UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00004000 */
15639 #define RCC_PLL2FRACR_PLL2FRACN_12          (0x1000UL << RCC_PLL2FRACR_PLL2FRACN_Pos) /*!< 0x00008000 */
15640 
15641 /********************  Bit definition for RCC_PLL3DIVR register  ***************/
15642 #define RCC_PLL3DIVR_PLL3N_Pos              (0U)
15643 #define RCC_PLL3DIVR_PLL3N_Msk              (0x1FFUL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x000001FF */
15644 #define RCC_PLL3DIVR_PLL3N                  RCC_PLL3DIVR_PLL3N_Msk                  /*!< PLL3N[8:0]: bits (Multiplication Factor for PLL3 VCO) */
15645 #define RCC_PLL3DIVR_PLL3N_0                (0x001UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000001 */
15646 #define RCC_PLL3DIVR_PLL3N_1                (0x002UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000002 */
15647 #define RCC_PLL3DIVR_PLL3N_2                (0x004UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000004 */
15648 #define RCC_PLL3DIVR_PLL3N_3                (0x008UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000008 */
15649 #define RCC_PLL3DIVR_PLL3N_4                (0x010UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000010 */
15650 #define RCC_PLL3DIVR_PLL3N_5                (0x020UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000020 */
15651 #define RCC_PLL3DIVR_PLL3N_6                (0x040UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000040 */
15652 #define RCC_PLL3DIVR_PLL3N_7                (0x080UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000080 */
15653 #define RCC_PLL3DIVR_PLL3N_8                (0x100UL << RCC_PLL3DIVR_PLL3N_Pos)     /*!< 0x00000100 */
15654 #define RCC_PLL3DIVR_PLL3P_Pos              (9U)
15655 #define RCC_PLL3DIVR_PLL3P_Msk              (0x7FUL << RCC_PLL3DIVR_PLL3P_Pos)      /*!< 0x0000FE00 */
15656 #define RCC_PLL3DIVR_PLL3P                  RCC_PLL3DIVR_PLL3P_Msk                  /*!< PLL3P[6:0]: bits (PLL2 DIVP Division Factor) */
15657 #define RCC_PLL3DIVR_PLL3P_0                (0x001UL << RCC_PLL3DIVR_PLL3P_Pos)     /*!< 0x00000200 */
15658 #define RCC_PLL3DIVR_PLL3P_1                (0x002UL << RCC_PLL3DIVR_PLL3P_Pos)     /*!< 0x00000400 */
15659 #define RCC_PLL3DIVR_PLL3P_2                (0x004UL << RCC_PLL3DIVR_PLL3P_Pos)     /*!< 0x00000800 */
15660 #define RCC_PLL3DIVR_PLL3P_3                (0x008UL << RCC_PLL3DIVR_PLL3P_Pos)     /*!< 0x00001000 */
15661 #define RCC_PLL3DIVR_PLL3P_4                (0x010UL << RCC_PLL3DIVR_PLL3P_Pos)     /*!< 0x00002000 */
15662 #define RCC_PLL3DIVR_PLL3P_5                (0x020UL << RCC_PLL3DIVR_PLL3P_Pos)     /*!< 0x00004000 */
15663 #define RCC_PLL3DIVR_PLL3P_6                (0x040UL << RCC_PLL3DIVR_PLL3P_Pos)     /*!< 0x00008000 */
15664 #define RCC_PLL3DIVR_PLL3Q_Pos              (16U)
15665 #define RCC_PLL3DIVR_PLL3Q_Msk              (0x7FUL << RCC_PLL3DIVR_PLL3Q_Pos)      /*!< 0x007F0000 */
15666 #define RCC_PLL3DIVR_PLL3Q                  RCC_PLL3DIVR_PLL3Q_Msk                  /*!< PLL3Q[6:0]: bits (PLL3 DIVQ Division Factor) */
15667 #define RCC_PLL3DIVR_PLL3Q_0                (0x001UL << RCC_PLL3DIVR_PLL3Q_Pos)     /*!< 0x00010000 */
15668 #define RCC_PLL3DIVR_PLL3Q_1                (0x002UL << RCC_PLL3DIVR_PLL3Q_Pos)     /*!< 0x00020000 */
15669 #define RCC_PLL3DIVR_PLL3Q_2                (0x004UL << RCC_PLL3DIVR_PLL3Q_Pos)     /*!< 0x00040000 */
15670 #define RCC_PLL3DIVR_PLL3Q_3                (0x008UL << RCC_PLL3DIVR_PLL3Q_Pos)     /*!< 0x00080000 */
15671 #define RCC_PLL3DIVR_PLL3Q_4                (0x010UL << RCC_PLL3DIVR_PLL3Q_Pos)     /*!< 0x00100000 */
15672 #define RCC_PLL3DIVR_PLL3Q_5                (0x020UL << RCC_PLL3DIVR_PLL3Q_Pos)     /*!< 0x00200020 */
15673 #define RCC_PLL3DIVR_PLL3Q_6                (0x040UL << RCC_PLL3DIVR_PLL3Q_Pos)     /*!< 0x00400000 */
15674 #define RCC_PLL3DIVR_PLL3R_Pos              (24U)
15675 #define RCC_PLL3DIVR_PLL3R_Msk              (0x7FUL << RCC_PLL3DIVR_PLL3R_Pos)      /*!< 0x7F000000 */
15676 #define RCC_PLL3DIVR_PLL3R                  RCC_PLL3DIVR_PLL3R_Msk                  /*!< PLL3R[6:0]: bits (PLL3 DIVR Division Factor) */
15677 #define RCC_PLL3DIVR_PLL3R_0                (0x001UL << RCC_PLL3DIVR_PLL3R_Pos)     /*!< 0x01000000 */
15678 #define RCC_PLL3DIVR_PLL3R_1                (0x002UL << RCC_PLL3DIVR_PLL3R_Pos)     /*!< 0x02000000 */
15679 #define RCC_PLL3DIVR_PLL3R_2                (0x004UL << RCC_PLL3DIVR_PLL3R_Pos)     /*!< 0x04000000 */
15680 #define RCC_PLL3DIVR_PLL3R_3                (0x008UL << RCC_PLL3DIVR_PLL3R_Pos)     /*!< 0x08000000 */
15681 #define RCC_PLL3DIVR_PLL3R_4                (0x010UL << RCC_PLL3DIVR_PLL3R_Pos)     /*!< 0x10000000 */
15682 #define RCC_PLL3DIVR_PLL3R_5                (0x020UL << RCC_PLL3DIVR_PLL3R_Pos)     /*!< 0x20000000 */
15683 #define RCC_PLL3DIVR_PLL3R_6                (0x040UL << RCC_PLL3DIVR_PLL3R_Pos)     /*!< 0x40000000 */
15684 
15685 /********************  Bit definition for RCC_PLL3FRACR register  ***************/
15686 #define RCC_PLL3FRACR_PLL3FRACN_Pos         (3U)
15687 #define RCC_PLL3FRACR_PLL3FRACN_Msk         (0x1FFFUL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x0000FFF8 */
15688 #define RCC_PLL3FRACR_PLL3FRACN             RCC_PLL3FRACR_PLL3FRACN_Msk               /*!< PLL3FRACN[12:0]: bits (Fractional Part of the Multiplication Factor for PLL3 VCO) */
15689 #define RCC_PLL3FRACR_PLL3FRACN_0           (0x0001UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000008 */
15690 #define RCC_PLL3FRACR_PLL3FRACN_1           (0x0002UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000010 */
15691 #define RCC_PLL3FRACR_PLL3FRACN_2           (0x0004UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000020 */
15692 #define RCC_PLL3FRACR_PLL3FRACN_3           (0x0008UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000040 */
15693 #define RCC_PLL3FRACR_PLL3FRACN_4           (0x0010UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000080 */
15694 #define RCC_PLL3FRACR_PLL3FRACN_5           (0x0020UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000100 */
15695 #define RCC_PLL3FRACR_PLL3FRACN_6           (0x0040UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000200 */
15696 #define RCC_PLL3FRACR_PLL3FRACN_7           (0x0080UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000400 */
15697 #define RCC_PLL3FRACR_PLL3FRACN_8           (0x0100UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00000800 */
15698 #define RCC_PLL3FRACR_PLL3FRACN_9           (0x0200UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00001000 */
15699 #define RCC_PLL3FRACR_PLL3FRACN_10          (0x0400UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00002000 */
15700 #define RCC_PLL3FRACR_PLL3FRACN_11          (0x0800UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00004000 */
15701 #define RCC_PLL3FRACR_PLL3FRACN_12          (0x1000UL << RCC_PLL3FRACR_PLL3FRACN_Pos) /*!< 0x00008000 */
15702 
15703 /********************  Bit definition for RCC_CIER register  ******************/
15704 #define RCC_CIER_LSIRDYIE_Pos               (0U)
15705 #define RCC_CIER_LSIRDYIE_Msk               (0x1UL << RCC_CIER_LSIRDYIE_Pos)        /*!< 0x00000001 */
15706 #define RCC_CIER_LSIRDYIE                   RCC_CIER_LSIRDYIE_Msk                   /*!< LSI Ready Interrupt Enable */
15707 #define RCC_CIER_LSERDYIE_Pos               (1U)
15708 #define RCC_CIER_LSERDYIE_Msk               (0x1UL << RCC_CIER_LSERDYIE_Pos)        /*!< 0x00000002 */
15709 #define RCC_CIER_LSERDYIE                   RCC_CIER_LSERDYIE_Msk                   /*!< LSE Ready Interrupt Enable */
15710 #define RCC_CIER_MSISRDYIE_Pos              (2U)
15711 #define RCC_CIER_MSISRDYIE_Msk              (0x1UL << RCC_CIER_MSISRDYIE_Pos)       /*!< 0x00000004 */
15712 #define RCC_CIER_MSISRDYIE                  RCC_CIER_MSISRDYIE_Msk                  /*!< MSIS Ready Interrupt Enable */
15713 #define RCC_CIER_HSIRDYIE_Pos               (3U)
15714 #define RCC_CIER_HSIRDYIE_Msk               (0x1UL << RCC_CIER_HSIRDYIE_Pos)        /*!< 0x00000008 */
15715 #define RCC_CIER_HSIRDYIE                   RCC_CIER_HSIRDYIE_Msk                   /*!< HSI16 Ready Interrupt Enable */
15716 #define RCC_CIER_HSERDYIE_Pos               (4U)
15717 #define RCC_CIER_HSERDYIE_Msk               (0x1UL << RCC_CIER_HSERDYIE_Pos)        /*!< 0x00000010 */
15718 #define RCC_CIER_HSERDYIE                   RCC_CIER_HSERDYIE_Msk                   /*!< HSE Ready Interrupt Enable */
15719 #define RCC_CIER_HSI48RDYIE_Pos             (5U)
15720 #define RCC_CIER_HSI48RDYIE_Msk             (0x1UL << RCC_CIER_HSI48RDYIE_Pos)      /*!< 0x00000020 */
15721 #define RCC_CIER_HSI48RDYIE                 RCC_CIER_HSI48RDYIE_Msk                 /*!< HSI48 Ready Interrupt Enable */
15722 #define RCC_CIER_PLL1RDYIE_Pos              (6U)
15723 #define RCC_CIER_PLL1RDYIE_Msk              (0x1UL << RCC_CIER_PLL1RDYIE_Pos)       /*!< 0x00000040 */
15724 #define RCC_CIER_PLL1RDYIE                  RCC_CIER_PLL1RDYIE_Msk                  /*!< PLL Ready Interrupt Enable */
15725 #define RCC_CIER_PLL2RDYIE_Pos              (7U)
15726 #define RCC_CIER_PLL2RDYIE_Msk              (0x1UL << RCC_CIER_PLL2RDYIE_Pos)       /*!< 0x00000080 */
15727 #define RCC_CIER_PLL2RDYIE                  RCC_CIER_PLL2RDYIE_Msk                  /*!< PLL2 Ready Interrupt Enable */
15728 #define RCC_CIER_PLL3RDYIE_Pos              (8U)
15729 #define RCC_CIER_PLL3RDYIE_Msk              (0x1UL << RCC_CIER_PLL3RDYIE_Pos)       /*!< 0x00000100 */
15730 #define RCC_CIER_PLL3RDYIE                  RCC_CIER_PLL3RDYIE_Msk                  /*!< PLL3 Ready Interrupt Enable */
15731 #define RCC_CIER_MSIKRDYIE_Pos              (11U)
15732 #define RCC_CIER_MSIKRDYIE_Msk              (0x1UL << RCC_CIER_MSIKRDYIE_Pos)       /*!< 0x00000080 */
15733 #define RCC_CIER_MSIKRDYIE                  RCC_CIER_MSIKRDYIE_Msk                  /*!< MSIK Ready Interrupt Enable */
15734 #define RCC_CIER_SHSIRDYIE_Pos              (12U)
15735 #define RCC_CIER_SHSIRDYIE_Msk              (0x1UL << RCC_CIER_SHSIRDYIE_Pos)       /*!< 0x00000100 */
15736 #define RCC_CIER_SHSIRDYIE                  RCC_CIER_SHSIRDYIE_Msk                  /*!< SHSI Ready Interrupt Enable */
15737 
15738 /********************  Bit definition for RCC_CIFR register  ****************/
15739 #define RCC_CIFR_LSIRDYF_Pos                (0U)
15740 #define RCC_CIFR_LSIRDYF_Msk                (0x1UL << RCC_CIFR_LSIRDYF_Pos)         /*!< 0x00000001 */
15741 #define RCC_CIFR_LSIRDYF                    RCC_CIFR_LSIRDYF_Msk                    /*!< LSI Ready Interrupt Flag */
15742 #define RCC_CIFR_LSERDYF_Pos                (1U)
15743 #define RCC_CIFR_LSERDYF_Msk                (0x1UL << RCC_CIFR_LSERDYF_Pos)         /*!< 0x00000002 */
15744 #define RCC_CIFR_LSERDYF                    RCC_CIFR_LSERDYF_Msk                    /*!< LSE Ready Interrupt Flag */
15745 #define RCC_CIFR_MSISRDYF_Pos               (2U)
15746 #define RCC_CIFR_MSISRDYF_Msk               (0x1UL << RCC_CIFR_MSISRDYF_Pos)        /*!< 0x00000004 */
15747 #define RCC_CIFR_MSISRDYF                   RCC_CIFR_MSISRDYF_Msk                   /*!< MSIS Ready Interrupt Flag */
15748 #define RCC_CIFR_HSIRDYF_Pos                (3U)
15749 #define RCC_CIFR_HSIRDYF_Msk                (0x1UL << RCC_CIFR_HSIRDYF_Pos)         /*!< 0x00000008 */
15750 #define RCC_CIFR_HSIRDYF                    RCC_CIFR_HSIRDYF_Msk                    /*!< HSI16 Ready Interrupt Flag */
15751 #define RCC_CIFR_HSERDYF_Pos                (4U)
15752 #define RCC_CIFR_HSERDYF_Msk                (0x1UL << RCC_CIFR_HSERDYF_Pos)         /*!< 0x00000010 */
15753 #define RCC_CIFR_HSERDYF                    RCC_CIFR_HSERDYF_Msk                    /*!< HSE Ready Interrupt Flag */
15754 #define RCC_CIFR_HSI48RDYF_Pos              (5U)
15755 #define RCC_CIFR_HSI48RDYF_Msk              (0x1UL << RCC_CIFR_HSI48RDYF_Pos)       /*!< 0x00000020 */
15756 #define RCC_CIFR_HSI48RDYF                  RCC_CIFR_HSI48RDYF_Msk                  /*!< HSI48 Ready Interrupt Flag */
15757 #define RCC_CIFR_PLL1RDYF_Pos               (6U)
15758 #define RCC_CIFR_PLL1RDYF_Msk               (0x1UL << RCC_CIFR_PLL1RDYF_Pos)        /*!< 0x00000040 */
15759 #define RCC_CIFR_PLL1RDYF                   RCC_CIFR_PLL1RDYF_Msk                   /*!< PLL1 Ready Interrupt Flag */
15760 #define RCC_CIFR_PLL2RDYF_Pos               (7U)
15761 #define RCC_CIFR_PLL2RDYF_Msk               (0x1UL << RCC_CIFR_PLL2RDYF_Pos)        /*!< 0x00000080 */
15762 #define RCC_CIFR_PLL2RDYF                   RCC_CIFR_PLL2RDYF_Msk                   /*!< PLL2 Ready Interrupt Flag */
15763 #define RCC_CIFR_PLL3RDYF_Pos               (8U)
15764 #define RCC_CIFR_PLL3RDYF_Msk               (0x1UL << RCC_CIFR_PLL3RDYF_Pos)        /*!< 0x00000100 */
15765 #define RCC_CIFR_PLL3RDYF                   RCC_CIFR_PLL3RDYF_Msk                   /*!< PLL3 Ready Interrupt Flag */
15766 #define RCC_CIFR_CSSF_Pos                   (10U)
15767 #define RCC_CIFR_CSSF_Msk                   (0x1UL << RCC_CIFR_CSSF_Pos)            /*!< 0x00000400 */
15768 #define RCC_CIFR_CSSF                       RCC_CIFR_CSSF_Msk                       /*!< Clock Security System Interrupt Flag */
15769 #define RCC_CIFR_MSIKRDYF_Pos               (11U)
15770 #define RCC_CIFR_MSIKRDYF_Msk               (0x1UL << RCC_CIFR_MSIKRDYF_Pos)        /*!< 0x00000080 */
15771 #define RCC_CIFR_MSIKRDYF                   RCC_CIFR_MSIKRDYF_Msk                   /*!< MSIK Ready Interrupt Flag */
15772 #define RCC_CIFR_SHSIRDYF_Pos               (12U)
15773 #define RCC_CIFR_SHSIRDYF_Msk               (0x1UL << RCC_CIFR_SHSIRDYF_Pos)        /*!< 0x00000100 */
15774 #define RCC_CIFR_SHSIRDYF                   RCC_CIFR_SHSIRDYF_Msk                   /*!< SHSI Ready Interrupt Flag */
15775 
15776 /********************  Bit definition for RCC_CICR register  ****************/
15777 #define RCC_CICR_LSIRDYC_Pos                (0U)
15778 #define RCC_CICR_LSIRDYC_Msk                (0x1UL << RCC_CICR_LSIRDYC_Pos)         /*!< 0x00000001 */
15779 #define RCC_CICR_LSIRDYC                    RCC_CICR_LSIRDYC_Msk                    /*!< LSI Ready Interrupt Clear */
15780 #define RCC_CICR_LSERDYC_Pos                (1U)
15781 #define RCC_CICR_LSERDYC_Msk                (0x1UL << RCC_CICR_LSERDYC_Pos)         /*!< 0x00000002 */
15782 #define RCC_CICR_LSERDYC                    RCC_CICR_LSERDYC_Msk                    /*!< LSE Ready Interrupt Clear */
15783 #define RCC_CICR_MSISRDYC_Pos               (2U)
15784 #define RCC_CICR_MSISRDYC_Msk               (0x1UL << RCC_CICR_MSISRDYC_Pos)        /*!< 0x00000004 */
15785 #define RCC_CICR_MSISRDYC                   RCC_CICR_MSISRDYC_Msk                   /*!< MSIS Ready Interrupt Clear */
15786 #define RCC_CICR_HSIRDYC_Pos                (3U)
15787 #define RCC_CICR_HSIRDYC_Msk                (0x1UL << RCC_CICR_HSIRDYC_Pos)         /*!< 0x00000008 */
15788 #define RCC_CICR_HSIRDYC                    RCC_CICR_HSIRDYC_Msk                    /*!< HSI16 Ready Interrupt Clear */
15789 #define RCC_CICR_HSERDYC_Pos                (4U)
15790 #define RCC_CICR_HSERDYC_Msk                (0x1UL << RCC_CICR_HSERDYC_Pos)         /*!< 0x00000010 */
15791 #define RCC_CICR_HSERDYC                    RCC_CICR_HSERDYC_Msk                    /*!< HSE Ready Interrupt Clear */
15792 #define RCC_CICR_HSI48RDYC_Pos              (5U)
15793 #define RCC_CICR_HSI48RDYC_Msk              (0x1UL << RCC_CICR_HSI48RDYC_Pos)       /*!< 0x00000020 */
15794 #define RCC_CICR_HSI48RDYC                  RCC_CICR_HSI48RDYC_Msk                  /*!< HSI48 Ready Interrupt Clear */
15795 #define RCC_CICR_PLL1RDYC_Pos               (6U)
15796 #define RCC_CICR_PLL1RDYC_Msk               (0x1UL << RCC_CICR_PLL1RDYC_Pos)        /*!< 0x00000040 */
15797 #define RCC_CICR_PLL1RDYC                   RCC_CICR_PLL1RDYC_Msk                   /*!< PLL1 Ready Interrupt Clear */
15798 #define RCC_CICR_PLL2RDYC_Pos               (7U)
15799 #define RCC_CICR_PLL2RDYC_Msk               (0x1UL << RCC_CICR_PLL2RDYC_Pos)        /*!< 0x00000080 */
15800 #define RCC_CICR_PLL2RDYC                   RCC_CICR_PLL2RDYC_Msk                   /*!< PLL2 Ready Interrupt Clear */
15801 #define RCC_CICR_PLL3RDYC_Pos               (8U)
15802 #define RCC_CICR_PLL3RDYC_Msk               (0x1UL << RCC_CICR_PLL3RDYC_Pos)        /*!< 0x00000100 */
15803 #define RCC_CICR_PLL3RDYC                   RCC_CICR_PLL3RDYC_Msk                   /*!< PLL3 Ready Interrupt Clear */
15804 #define RCC_CICR_CSSC_Pos                   (10U)
15805 #define RCC_CICR_CSSC_Msk                   (0x1UL << RCC_CICR_CSSC_Pos)            /*!< 0x00000400 */
15806 #define RCC_CICR_CSSC                       RCC_CICR_CSSC_Msk                       /*!< Clock Security System Interrupt Clear */
15807 #define RCC_CICR_MSIKRDYC_Pos               (11U)
15808 #define RCC_CICR_MSIKRDYC_Msk               (0x1UL << RCC_CICR_MSIKRDYC_Pos)        /*!< 0x00000080 */
15809 #define RCC_CICR_MSIKRDYC                   RCC_CICR_MSIKRDYC_Msk                   /*!< MSIK Ready Interrupt Clear */
15810 #define RCC_CICR_SHSIRDYC_Pos               (12U)
15811 #define RCC_CICR_SHSIRDYC_Msk               (0x1UL << RCC_CICR_SHSIRDYC_Pos)        /*!< 0x00000100 */
15812 #define RCC_CICR_SHSIRDYC                   RCC_CICR_SHSIRDYC_Msk                   /*!< SHSI Ready Interrupt Clear */
15813 
15814 /********************  Bit definition for RCC_AHB1RSTR register  **************/
15815 #define RCC_AHB1RSTR_GPDMA1RST_Pos          (0U)
15816 #define RCC_AHB1RSTR_GPDMA1RST_Msk          (0x1UL << RCC_AHB1RSTR_GPDMA1RST_Pos)   /*!< 0x00000001 */
15817 #define RCC_AHB1RSTR_GPDMA1RST              RCC_AHB1RSTR_GPDMA1RST_Msk              /*!< GPDMA1 Reset */
15818 #define RCC_AHB1RSTR_CORDICRST_Pos          (1U)
15819 #define RCC_AHB1RSTR_CORDICRST_Msk          (0x1UL << RCC_AHB1RSTR_CORDICRST_Pos)   /*!< 0x00000008 */
15820 #define RCC_AHB1RSTR_CORDICRST              RCC_AHB1RSTR_CORDICRST_Msk              /*!< CORDIC Reset */
15821 #define RCC_AHB1RSTR_FMACRST_Pos            (2U)
15822 #define RCC_AHB1RSTR_FMACRST_Msk            (0x1UL << RCC_AHB1RSTR_FMACRST_Pos)     /*!< 0x00000008 */
15823 #define RCC_AHB1RSTR_FMACRST                RCC_AHB1RSTR_FMACRST_Msk                /*!< FMAC Reset */
15824 #define RCC_AHB1RSTR_MDF1RST_Pos            (3U)
15825 #define RCC_AHB1RSTR_MDF1RST_Msk            (0x1UL << RCC_AHB1RSTR_MDF1RST_Pos)     /*!< 0x00000008 */
15826 #define RCC_AHB1RSTR_MDF1RST                RCC_AHB1RSTR_MDF1RST_Msk                /*!< MDF1 Reset */
15827 #define RCC_AHB1RSTR_CRCRST_Pos             (12U)
15828 #define RCC_AHB1RSTR_CRCRST_Msk             (0x1UL << RCC_AHB1RSTR_CRCRST_Pos)      /*!< 0x00001000 */
15829 #define RCC_AHB1RSTR_CRCRST                 RCC_AHB1RSTR_CRCRST_Msk                 /*!< CRC Reset */
15830 #define RCC_AHB1RSTR_TSCRST_Pos             (16U)
15831 #define RCC_AHB1RSTR_TSCRST_Msk             (0x1UL << RCC_AHB1RSTR_TSCRST_Pos)      /*!< 0x00010000 */
15832 #define RCC_AHB1RSTR_TSCRST                 RCC_AHB1RSTR_TSCRST_Msk                 /*!< TSC Reset */
15833 #define RCC_AHB1RSTR_RAMCFGRST_Pos          (17U)
15834 #define RCC_AHB1RSTR_RAMCFGRST_Msk          (0x1UL << RCC_AHB1RSTR_RAMCFGRST_Pos)   /*!< 0x00040000 */
15835 #define RCC_AHB1RSTR_RAMCFGRST              RCC_AHB1RSTR_RAMCFGRST_Msk              /*!< RAMCFG Reset */
15836 #define RCC_AHB1RSTR_DMA2DRST_Pos           (18U)
15837 #define RCC_AHB1RSTR_DMA2DRST_Msk           (0x1UL << RCC_AHB1RSTR_DMA2DRST_Pos)    /*!< 0x00040000 */
15838 #define RCC_AHB1RSTR_DMA2DRST               RCC_AHB1RSTR_DMA2DRST_Msk               /*!< DMA2D Reset */
15839 
15840 /********************  Bit definition for RCC_AHB2RSTR1 register  **************/
15841 #define RCC_AHB2RSTR1_GPIOARST_Pos          (0U)
15842 #define RCC_AHB2RSTR1_GPIOARST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIOARST_Pos)    /*!< 0x00000001 */
15843 #define RCC_AHB2RSTR1_GPIOARST              RCC_AHB2RSTR1_GPIOARST_Msk               /*!< IO port A Reset */
15844 #define RCC_AHB2RSTR1_GPIOBRST_Pos          (1U)
15845 #define RCC_AHB2RSTR1_GPIOBRST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIOBRST_Pos)    /*!< 0x00000002 */
15846 #define RCC_AHB2RSTR1_GPIOBRST              RCC_AHB2RSTR1_GPIOBRST_Msk               /*!< IO port B Reset */
15847 #define RCC_AHB2RSTR1_GPIOCRST_Pos          (2U)
15848 #define RCC_AHB2RSTR1_GPIOCRST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIOCRST_Pos)    /*!< 0x00000004 */
15849 #define RCC_AHB2RSTR1_GPIOCRST              RCC_AHB2RSTR1_GPIOCRST_Msk               /*!< IO port C Reset */
15850 #define RCC_AHB2RSTR1_GPIODRST_Pos          (3U)
15851 #define RCC_AHB2RSTR1_GPIODRST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIODRST_Pos)    /*!< 0x00000008 */
15852 #define RCC_AHB2RSTR1_GPIODRST              RCC_AHB2RSTR1_GPIODRST_Msk               /*!< IO port D Reset */
15853 #define RCC_AHB2RSTR1_GPIOERST_Pos          (4U)
15854 #define RCC_AHB2RSTR1_GPIOERST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIOERST_Pos)    /*!< 0x00000010 */
15855 #define RCC_AHB2RSTR1_GPIOERST              RCC_AHB2RSTR1_GPIOERST_Msk               /*!< IO port E Reset */
15856 #define RCC_AHB2RSTR1_GPIOFRST_Pos          (5U)
15857 #define RCC_AHB2RSTR1_GPIOFRST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIOFRST_Pos)    /*!< 0x00000020 */
15858 #define RCC_AHB2RSTR1_GPIOFRST              RCC_AHB2RSTR1_GPIOFRST_Msk               /*!< IO port F Reset */
15859 #define RCC_AHB2RSTR1_GPIOGRST_Pos          (6U)
15860 #define RCC_AHB2RSTR1_GPIOGRST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIOGRST_Pos)    /*!< 0x00000040 */
15861 #define RCC_AHB2RSTR1_GPIOGRST              RCC_AHB2RSTR1_GPIOGRST_Msk               /*!< IO port G Reset */
15862 #define RCC_AHB2RSTR1_GPIOHRST_Pos          (7U)
15863 #define RCC_AHB2RSTR1_GPIOHRST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIOHRST_Pos)    /*!< 0x00000080 */
15864 #define RCC_AHB2RSTR1_GPIOHRST              RCC_AHB2RSTR1_GPIOHRST_Msk               /*!< IO port H Reset */
15865 #define RCC_AHB2RSTR1_GPIOIRST_Pos          (8U)
15866 #define RCC_AHB2RSTR1_GPIOIRST_Msk          (0x1UL << RCC_AHB2RSTR1_GPIOIRST_Pos)    /*!< 0x00000100 */
15867 #define RCC_AHB2RSTR1_GPIOIRST              RCC_AHB2RSTR1_GPIOIRST_Msk               /*!< IO port I Reset */
15868 #define RCC_AHB2RSTR1_ADC1RST_Pos           (10U)
15869 #define RCC_AHB2RSTR1_ADC1RST_Msk           (0x1UL << RCC_AHB2RSTR1_ADC1RST_Pos)     /*!< 0x00000400 */
15870 #define RCC_AHB2RSTR1_ADC1RST               RCC_AHB2RSTR1_ADC1RST_Msk                /*!< ADC1 Reset */
15871 #define RCC_AHB2RSTR1_DCMI_PSSIRST_Pos      (12U)
15872 #define RCC_AHB2RSTR1_DCMI_PSSIRST_Msk      (0x1UL << RCC_AHB2RSTR1_DCMI_PSSIRST_Pos) /*!< 0x00001000 */
15873 #define RCC_AHB2RSTR1_DCMI_PSSIRST          RCC_AHB2RSTR1_DCMI_PSSIRST_Msk            /*!< DCMI and PSSI Reset */
15874 #define RCC_AHB2RSTR1_OTGRST_Pos            (14U)
15875 #define RCC_AHB2RSTR1_OTGRST_Msk            (0x1UL << RCC_AHB2RSTR1_OTGRST_Pos)    /*!< 0x00004000 */
15876 #define RCC_AHB2RSTR1_OTGRST                RCC_AHB2RSTR1_OTGRST_Msk               /*!< OTG Reset */
15877 #define RCC_AHB2RSTR1_AESRST_Pos            (16U)
15878 #define RCC_AHB2RSTR1_AESRST_Msk            (0x1UL << RCC_AHB2RSTR1_AESRST_Pos)      /*!< 0x00010000 */
15879 #define RCC_AHB2RSTR1_AESRST                RCC_AHB2RSTR1_AESRST_Msk                 /*!< AES Hardware Accelerator Reset */
15880 #define RCC_AHB2RSTR1_HASHRST_Pos           (17U)
15881 #define RCC_AHB2RSTR1_HASHRST_Msk           (0x1UL << RCC_AHB2RSTR1_HASHRST_Pos)     /*!< 0x00020000 */
15882 #define RCC_AHB2RSTR1_HASHRST               RCC_AHB2RSTR1_HASHRST_Msk                /*!< Hash Reset */
15883 #define RCC_AHB2RSTR1_RNGRST_Pos            (18U)
15884 #define RCC_AHB2RSTR1_RNGRST_Msk            (0x1UL << RCC_AHB2RSTR1_RNGRST_Pos)      /*!< 0x00040000 */
15885 #define RCC_AHB2RSTR1_RNGRST                RCC_AHB2RSTR1_RNGRST_Msk                 /*!< Random Number Generator Reset */
15886 #define RCC_AHB2RSTR1_PKARST_Pos            (19U)
15887 #define RCC_AHB2RSTR1_PKARST_Msk            (0x1UL << RCC_AHB2RSTR1_PKARST_Pos)      /*!< 0x00080000 */
15888 #define RCC_AHB2RSTR1_PKARST                RCC_AHB2RSTR1_PKARST_Msk                 /*!< PKA reset */
15889 #define RCC_AHB2RSTR1_SAESRST_Pos           (20U)
15890 #define RCC_AHB2RSTR1_SAESRST_Msk           (0x1UL << RCC_AHB2RSTR1_SAESRST_Pos)     /*!< 0x00080000 */
15891 #define RCC_AHB2RSTR1_SAESRST               RCC_AHB2RSTR1_SAESRST_Msk                /*!< SAES Hardware Accelerator Reset */
15892 #define RCC_AHB2RSTR1_OCTOSPIMRST_Pos       (21U)
15893 #define RCC_AHB2RSTR1_OCTOSPIMRST_Msk       (0x1UL << RCC_AHB2RSTR1_OCTOSPIMRST_Pos) /*!< 0x00200000 */
15894 #define RCC_AHB2RSTR1_OCTOSPIMRST           RCC_AHB2RSTR1_OCTOSPIMRST_Msk            /*!< OCTOSPIM Reset */
15895 #define RCC_AHB2RSTR1_OTFDEC1RST_Pos        (23U)
15896 #define RCC_AHB2RSTR1_OTFDEC1RST_Msk        (0x1UL << RCC_AHB2RSTR1_OTFDEC1RST_Pos)  /*!< 0x00800000 */
15897 #define RCC_AHB2RSTR1_OTFDEC1RST            RCC_AHB2RSTR1_OTFDEC1RST_Msk             /*!< OTFDEC1 Reset */
15898 #define RCC_AHB2RSTR1_OTFDEC2RST_Pos        (24U)
15899 #define RCC_AHB2RSTR1_OTFDEC2RST_Msk        (0x1UL << RCC_AHB2RSTR1_OTFDEC2RST_Pos)  /*!< 0x01000000 */
15900 #define RCC_AHB2RSTR1_OTFDEC2RST            RCC_AHB2RSTR1_OTFDEC2RST_Msk             /*!< OTFDEC2 Reset */
15901 #define RCC_AHB2RSTR1_SDMMC1RST_Pos         (27U)
15902 #define RCC_AHB2RSTR1_SDMMC1RST_Msk         (0x1UL << RCC_AHB2RSTR1_SDMMC1RST_Pos)   /*!< 0x08000000 */
15903 #define RCC_AHB2RSTR1_SDMMC1RST             RCC_AHB2RSTR1_SDMMC1RST_Msk              /*!< SDMMC1 Reset */
15904 #define RCC_AHB2RSTR1_SDMMC2RST_Pos         (28U)
15905 #define RCC_AHB2RSTR1_SDMMC2RST_Msk         (0x1UL << RCC_AHB2RSTR1_SDMMC2RST_Pos)   /*!< 0x08000000 */
15906 #define RCC_AHB2RSTR1_SDMMC2RST             RCC_AHB2RSTR1_SDMMC2RST_Msk              /*!< SDMMC2 Reset */
15907 
15908 /********************  Bit definition for RCC_AHB2RSTR2 register  **************/
15909 #define RCC_AHB2RSTR2_FSMCRST_Pos           (0U)
15910 #define RCC_AHB2RSTR2_FSMCRST_Msk           (0x1UL << RCC_AHB2RSTR2_FSMCRST_Pos)     /*!< 0x00000001 */
15911 #define RCC_AHB2RSTR2_FSMCRST               RCC_AHB2RSTR2_FSMCRST_Msk                /*!< Flexible Memory Controller Reset */
15912 #define RCC_AHB2RSTR2_OCTOSPI1RST_Pos       (4U)
15913 #define RCC_AHB2RSTR2_OCTOSPI1RST_Msk       (0x1UL << RCC_AHB2RSTR2_OCTOSPI1RST_Pos) /*!< 0x00000010 */
15914 #define RCC_AHB2RSTR2_OCTOSPI1RST           RCC_AHB2RSTR2_OCTOSPI1RST_Msk            /*!< OCTOSPI1 Reset */
15915 #define RCC_AHB2RSTR2_OCTOSPI2RST_Pos       (8U)
15916 #define RCC_AHB2RSTR2_OCTOSPI2RST_Msk       (0x1UL << RCC_AHB2RSTR2_OCTOSPI2RST_Pos) /*!< 0x00000100 */
15917 #define RCC_AHB2RSTR2_OCTOSPI2RST           RCC_AHB2RSTR2_OCTOSPI2RST_Msk            /*!< OCTOSPI2 Reset */
15918 
15919 /********************  Bit definition for RCC_AHB3RSTR register  **************/
15920 #define RCC_AHB3RSTR_LPGPIO1RST_Pos         (0U)
15921 #define RCC_AHB3RSTR_LPGPIO1RST_Msk         (0x1UL << RCC_AHB3RSTR_LPGPIO1RST_Pos)  /*!< 0x00000001 */
15922 #define RCC_AHB3RSTR_LPGPIO1RST             RCC_AHB3RSTR_LPGPIO1RST_Msk             /*!< LPGPIO1 Reset */
15923 #define RCC_AHB3RSTR_ADC4RST_Pos            (5U)
15924 #define RCC_AHB3RSTR_ADC4RST_Msk            (0x1UL << RCC_AHB3RSTR_ADC4RST_Pos)     /*!< 0x00000040 */
15925 #define RCC_AHB3RSTR_ADC4RST                RCC_AHB3RSTR_ADC4RST_Msk                /*!< ADC4 Reset */
15926 #define RCC_AHB3RSTR_DAC1RST_Pos            (6U)
15927 #define RCC_AHB3RSTR_DAC1RST_Msk            (0x1UL << RCC_AHB3RSTR_DAC1RST_Pos)     /*!< 0x00000040 */
15928 #define RCC_AHB3RSTR_DAC1RST                RCC_AHB3RSTR_DAC1RST_Msk                /*!< DAC1 Reset */
15929 #define RCC_AHB3RSTR_LPDMA1RST_Pos          (9U)
15930 #define RCC_AHB3RSTR_LPDMA1RST_Msk          (0x1UL << RCC_AHB3RSTR_LPDMA1RST_Pos)   /*!< 0x000000080 */
15931 #define RCC_AHB3RSTR_LPDMA1RST              RCC_AHB3RSTR_LPDMA1RST_Msk              /*!< LPDMA1 Reset */
15932 #define RCC_AHB3RSTR_ADF1RST_Pos            (10U)
15933 #define RCC_AHB3RSTR_ADF1RST_Msk            (0x1UL << RCC_AHB3RSTR_ADF1RST_Pos)     /*!< 0x000000400 */
15934 #define RCC_AHB3RSTR_ADF1RST                RCC_AHB3RSTR_ADF1RST_Msk                /*!< ADF1 Reset */
15935 
15936 /********************  Bit definition for RCC_APB1RSTR1 register  **************/
15937 #define RCC_APB1RSTR1_TIM2RST_Pos           (0U)
15938 #define RCC_APB1RSTR1_TIM2RST_Msk           (0x1UL << RCC_APB1RSTR1_TIM2RST_Pos)    /*!< 0x00000001 */
15939 #define RCC_APB1RSTR1_TIM2RST               RCC_APB1RSTR1_TIM2RST_Msk               /*!< TIM2 Reset */
15940 #define RCC_APB1RSTR1_TIM3RST_Pos           (1U)
15941 #define RCC_APB1RSTR1_TIM3RST_Msk           (0x1UL << RCC_APB1RSTR1_TIM3RST_Pos)    /*!< 0x00000002 */
15942 #define RCC_APB1RSTR1_TIM3RST               RCC_APB1RSTR1_TIM3RST_Msk               /*!< TIM3 Reset */
15943 #define RCC_APB1RSTR1_TIM4RST_Pos           (2U)
15944 #define RCC_APB1RSTR1_TIM4RST_Msk           (0x1UL << RCC_APB1RSTR1_TIM4RST_Pos)    /*!< 0x00000004 */
15945 #define RCC_APB1RSTR1_TIM4RST               RCC_APB1RSTR1_TIM4RST_Msk               /*!< TIM4 Reset */
15946 #define RCC_APB1RSTR1_TIM5RST_Pos           (3U)
15947 #define RCC_APB1RSTR1_TIM5RST_Msk           (0x1UL << RCC_APB1RSTR1_TIM5RST_Pos)    /*!< 0x00000008 */
15948 #define RCC_APB1RSTR1_TIM5RST               RCC_APB1RSTR1_TIM5RST_Msk               /*!< TIM5 Reset */
15949 #define RCC_APB1RSTR1_TIM6RST_Pos           (4U)
15950 #define RCC_APB1RSTR1_TIM6RST_Msk           (0x1UL << RCC_APB1RSTR1_TIM6RST_Pos)    /*!< 0x00000010 */
15951 #define RCC_APB1RSTR1_TIM6RST               RCC_APB1RSTR1_TIM6RST_Msk               /*!< TIM6 Reset */
15952 #define RCC_APB1RSTR1_TIM7RST_Pos           (5U)
15953 #define RCC_APB1RSTR1_TIM7RST_Msk           (0x1UL << RCC_APB1RSTR1_TIM7RST_Pos)    /*!< 0x00000020 */
15954 #define RCC_APB1RSTR1_TIM7RST               RCC_APB1RSTR1_TIM7RST_Msk               /*!< TIM7 Reset */
15955 #define RCC_APB1RSTR1_SPI2RST_Pos           (14U)
15956 #define RCC_APB1RSTR1_SPI2RST_Msk           (0x1UL << RCC_APB1RSTR1_SPI2RST_Pos)    /*!< 0x00004000 */
15957 #define RCC_APB1RSTR1_SPI2RST               RCC_APB1RSTR1_SPI2RST_Msk               /*!< SPI2 Reset */
15958 #define RCC_APB1RSTR1_USART2RST_Pos         (17U)
15959 #define RCC_APB1RSTR1_USART2RST_Msk         (0x1UL << RCC_APB1RSTR1_USART2RST_Pos)  /*!< 0x00020000 */
15960 #define RCC_APB1RSTR1_USART2RST             RCC_APB1RSTR1_USART2RST_Msk             /*!< USART2 Reset */
15961 #define RCC_APB1RSTR1_USART3RST_Pos         (18U)
15962 #define RCC_APB1RSTR1_USART3RST_Msk         (0x1UL << RCC_APB1RSTR1_USART3RST_Pos)  /*!< 0x00040000 */
15963 #define RCC_APB1RSTR1_USART3RST             RCC_APB1RSTR1_USART3RST_Msk             /*!< USART3 Reset */
15964 #define RCC_APB1RSTR1_UART4RST_Pos          (19U)
15965 #define RCC_APB1RSTR1_UART4RST_Msk          (0x1UL << RCC_APB1RSTR1_UART4RST_Pos)   /*!< 0x00080000 */
15966 #define RCC_APB1RSTR1_UART4RST              RCC_APB1RSTR1_UART4RST_Msk              /*!< UART4 Reset */
15967 #define RCC_APB1RSTR1_UART5RST_Pos          (20U)
15968 #define RCC_APB1RSTR1_UART5RST_Msk          (0x1UL << RCC_APB1RSTR1_UART5RST_Pos)   /*!< 0x00100000 */
15969 #define RCC_APB1RSTR1_UART5RST              RCC_APB1RSTR1_UART5RST_Msk              /*!< UART5 Reset */
15970 #define RCC_APB1RSTR1_I2C1RST_Pos           (21U)
15971 #define RCC_APB1RSTR1_I2C1RST_Msk           (0x1UL << RCC_APB1RSTR1_I2C1RST_Pos)    /*!< 0x00200000 */
15972 #define RCC_APB1RSTR1_I2C1RST               RCC_APB1RSTR1_I2C1RST_Msk               /*!< I2C1 Reset */
15973 #define RCC_APB1RSTR1_I2C2RST_Pos           (22U)
15974 #define RCC_APB1RSTR1_I2C2RST_Msk           (0x1UL << RCC_APB1RSTR1_I2C2RST_Pos)    /*!< 0x00400000 */
15975 #define RCC_APB1RSTR1_I2C2RST               RCC_APB1RSTR1_I2C2RST_Msk               /*!< I2C2 Reset */
15976 #define RCC_APB1RSTR1_CRSRST_Pos            (24U)
15977 #define RCC_APB1RSTR1_CRSRST_Msk            (0x1UL << RCC_APB1RSTR1_CRSRST_Pos)     /*!< 0x01000000 */
15978 #define RCC_APB1RSTR1_CRSRST                RCC_APB1RSTR1_CRSRST_Msk                /*!< CRS Reset */
15979 
15980 /********************  Bit definition for RCC_APB1RSTR2 register  **************/
15981 #define RCC_APB1RSTR2_I2C4RST_Pos           (1U)
15982 #define RCC_APB1RSTR2_I2C4RST_Msk           (0x1UL << RCC_APB1RSTR2_I2C4RST_Pos)    /*!< 0x00000002 */
15983 #define RCC_APB1RSTR2_I2C4RST               RCC_APB1RSTR2_I2C4RST_Msk               /*!< I2C4 Reset */
15984 #define RCC_APB1RSTR2_LPTIM2RST_Pos         (5U)
15985 #define RCC_APB1RSTR2_LPTIM2RST_Msk         (0x1UL << RCC_APB1RSTR2_LPTIM2RST_Pos)  /*!< 0x00000020 */
15986 #define RCC_APB1RSTR2_LPTIM2RST             RCC_APB1RSTR2_LPTIM2RST_Msk             /*!< LPTIM2 Reset */
15987 #define RCC_APB1RSTR2_FDCAN1RST_Pos         (9U)
15988 #define RCC_APB1RSTR2_FDCAN1RST_Msk         (0x1UL << RCC_APB1RSTR2_FDCAN1RST_Pos)  /*!< 0x00000200 */
15989 #define RCC_APB1RSTR2_FDCAN1RST             RCC_APB1RSTR2_FDCAN1RST_Msk             /*!< FDCAN1 Reset */
15990 #define RCC_APB1RSTR2_UCPD1RST_Pos          (23U)
15991 #define RCC_APB1RSTR2_UCPD1RST_Msk          (0x1UL << RCC_APB1RSTR2_UCPD1RST_Pos)   /*!< 0x00800000 */
15992 #define RCC_APB1RSTR2_UCPD1RST              RCC_APB1RSTR2_UCPD1RST_Msk              /*!< UCPD1 Reset */
15993 
15994 /********************  Bit definition for RCC_APB2RSTR register  **************/
15995 #define RCC_APB2RSTR_TIM1RST_Pos            (11U)
15996 #define RCC_APB2RSTR_TIM1RST_Msk            (0x1UL << RCC_APB2RSTR_TIM1RST_Pos)     /*!< 0x00000800 */
15997 #define RCC_APB2RSTR_TIM1RST                RCC_APB2RSTR_TIM1RST_Msk                /*!< TIM1 Reset */
15998 #define RCC_APB2RSTR_SPI1RST_Pos            (12U)
15999 #define RCC_APB2RSTR_SPI1RST_Msk            (0x1UL << RCC_APB2RSTR_SPI1RST_Pos)     /*!< 0x00001000 */
16000 #define RCC_APB2RSTR_SPI1RST                RCC_APB2RSTR_SPI1RST_Msk                /*!< SPI1 Reset */
16001 #define RCC_APB2RSTR_TIM8RST_Pos            (13U)
16002 #define RCC_APB2RSTR_TIM8RST_Msk            (0x1UL << RCC_APB2RSTR_TIM8RST_Pos)     /*!< 0x00002000 */
16003 #define RCC_APB2RSTR_TIM8RST                RCC_APB2RSTR_TIM8RST_Msk                /*!< TIM8 Reset */
16004 #define RCC_APB2RSTR_USART1RST_Pos          (14U)
16005 #define RCC_APB2RSTR_USART1RST_Msk          (0x1UL << RCC_APB2RSTR_USART1RST_Pos)   /*!< 0x00004000 */
16006 #define RCC_APB2RSTR_USART1RST              RCC_APB2RSTR_USART1RST_Msk              /*!< USART1 Reset */
16007 #define RCC_APB2RSTR_TIM15RST_Pos           (16U)
16008 #define RCC_APB2RSTR_TIM15RST_Msk           (0x1UL << RCC_APB2RSTR_TIM15RST_Pos)    /*!< 0x00010000 */
16009 #define RCC_APB2RSTR_TIM15RST               RCC_APB2RSTR_TIM15RST_Msk               /*!< TIM15 Reset */
16010 #define RCC_APB2RSTR_TIM16RST_Pos           (17U)
16011 #define RCC_APB2RSTR_TIM16RST_Msk           (0x1UL << RCC_APB2RSTR_TIM16RST_Pos)    /*!< 0x00020000 */
16012 #define RCC_APB2RSTR_TIM16RST               RCC_APB2RSTR_TIM16RST_Msk               /*!< TIM16 Reset */
16013 #define RCC_APB2RSTR_TIM17RST_Pos           (18U)
16014 #define RCC_APB2RSTR_TIM17RST_Msk           (0x1UL << RCC_APB2RSTR_TIM17RST_Pos)    /*!< 0x00040000 */
16015 #define RCC_APB2RSTR_TIM17RST               RCC_APB2RSTR_TIM17RST_Msk               /*!< TIM17 Reset */
16016 #define RCC_APB2RSTR_SAI1RST_Pos            (21U)
16017 #define RCC_APB2RSTR_SAI1RST_Msk            (0x1UL << RCC_APB2RSTR_SAI1RST_Pos)     /*!< 0x00200000 */
16018 #define RCC_APB2RSTR_SAI1RST                RCC_APB2RSTR_SAI1RST_Msk                /*!< SAI1 Reset */
16019 #define RCC_APB2RSTR_SAI2RST_Pos            (22U)
16020 #define RCC_APB2RSTR_SAI2RST_Msk            (0x1UL << RCC_APB2RSTR_SAI2RST_Pos)     /*!< 0x00400000 */
16021 #define RCC_APB2RSTR_SAI2RST                RCC_APB2RSTR_SAI2RST_Msk                /*!< SAI2 Reset */
16022 
16023 /********************  Bit definition for RCC_APB3RSTR register  **************/
16024 #define RCC_APB3RSTR_SYSCFGRST_Pos          (1U)
16025 #define RCC_APB3RSTR_SYSCFGRST_Msk          (0x1UL << RCC_APB3RSTR_SYSCFGRST_Pos)   /*!< 0x00000002 */
16026 #define RCC_APB3RSTR_SYSCFGRST              RCC_APB3RSTR_SYSCFGRST_Msk              /*!< SYSCFG Reset */
16027 #define RCC_APB3RSTR_SPI3RST_Pos            (5U)
16028 #define RCC_APB3RSTR_SPI3RST_Msk            (0x1UL << RCC_APB3RSTR_SPI3RST_Pos)     /*!< 0x00000020 */
16029 #define RCC_APB3RSTR_SPI3RST                RCC_APB3RSTR_SPI3RST_Msk                /*!< SPI3 Reset */
16030 #define RCC_APB3RSTR_LPUART1RST_Pos         (6U)
16031 #define RCC_APB3RSTR_LPUART1RST_Msk         (0x1UL << RCC_APB3RSTR_LPUART1RST_Pos)  /*!< 0x00000040 */
16032 #define RCC_APB3RSTR_LPUART1RST             RCC_APB3RSTR_LPUART1RST_Msk             /*!< LPUART1 Reset */
16033 #define RCC_APB3RSTR_I2C3RST_Pos            (7U)
16034 #define RCC_APB3RSTR_I2C3RST_Msk            (0x1UL << RCC_APB3RSTR_I2C3RST_Pos)     /*!< 0x000000080 */
16035 #define RCC_APB3RSTR_I2C3RST                RCC_APB3RSTR_I2C3RST_Msk                /*!< I2C3 Reset */
16036 #define RCC_APB3RSTR_LPTIM1RST_Pos          (11U)
16037 #define RCC_APB3RSTR_LPTIM1RST_Msk          (0x1UL << RCC_APB3RSTR_LPTIM1RST_Pos)   /*!< 0x000000800 */
16038 #define RCC_APB3RSTR_LPTIM1RST              RCC_APB3RSTR_LPTIM1RST_Msk              /*!< LPTIM1 Reset */
16039 #define RCC_APB3RSTR_LPTIM3RST_Pos          (12U)
16040 #define RCC_APB3RSTR_LPTIM3RST_Msk          (0x1UL << RCC_APB3RSTR_LPTIM3RST_Pos)   /*!< 0x000001000 */
16041 #define RCC_APB3RSTR_LPTIM3RST              RCC_APB3RSTR_LPTIM3RST_Msk              /*!< LPTIM3 Reset */
16042 #define RCC_APB3RSTR_LPTIM4RST_Pos          (13U)
16043 #define RCC_APB3RSTR_LPTIM4RST_Msk          (0x1UL << RCC_APB3RSTR_LPTIM4RST_Pos)   /*!< 0x0000002000 */
16044 #define RCC_APB3RSTR_LPTIM4RST              RCC_APB3RSTR_LPTIM4RST_Msk              /*!< LPTIM4 Reset */
16045 #define RCC_APB3RSTR_OPAMPRST_Pos           (14U)
16046 #define RCC_APB3RSTR_OPAMPRST_Msk           (0x1UL << RCC_APB3RSTR_OPAMPRST_Pos)    /*!< 0x000004000 */
16047 #define RCC_APB3RSTR_OPAMPRST               RCC_APB3RSTR_OPAMPRST_Msk               /*!< OPAMP Reset */
16048 #define RCC_APB3RSTR_COMPRST_Pos            (15U)
16049 #define RCC_APB3RSTR_COMPRST_Msk            (0x1UL << RCC_APB3RSTR_COMPRST_Pos)     /*!< 0x000008000 */
16050 #define RCC_APB3RSTR_COMPRST                RCC_APB3RSTR_COMPRST_Msk                /*!< COMP Reset */
16051 #define RCC_APB3RSTR_VREFRST_Pos            (20U)
16052 #define RCC_APB3RSTR_VREFRST_Msk            (0x1UL << RCC_APB3RSTR_VREFRST_Pos)     /*!< 0x000100000 */
16053 #define RCC_APB3RSTR_VREFRST                RCC_APB3RSTR_VREFRST_Msk                /*!< VREFBUF Reset */
16054 
16055 /********************  Bit definition for RCC_AHB1ENR register  **************/
16056 #define RCC_AHB1ENR_GPDMA1EN_Pos            (0U)
16057 #define RCC_AHB1ENR_GPDMA1EN_Msk            (0x1UL << RCC_AHB1ENR_GPDMA1EN_Pos)     /*!< 0x00000001 */
16058 #define RCC_AHB1ENR_GPDMA1EN                RCC_AHB1ENR_GPDMA1EN_Msk                /*!< GPDMA1 Clock Enable */
16059 #define RCC_AHB1ENR_CORDICEN_Pos            (1U)
16060 #define RCC_AHB1ENR_CORDICEN_Msk            (0x1UL << RCC_AHB1ENR_CORDICEN_Pos)     /*!< 0x00000001 */
16061 #define RCC_AHB1ENR_CORDICEN                RCC_AHB1ENR_CORDICEN_Msk                /*!< CORDIC Clock Enable */
16062 #define RCC_AHB1ENR_FMACEN_Pos              (2U)
16063 #define RCC_AHB1ENR_FMACEN_Msk              (0x1UL << RCC_AHB1ENR_FMACEN_Pos)       /*!< 0x00000001 */
16064 #define RCC_AHB1ENR_FMACEN                  RCC_AHB1ENR_FMACEN_Msk                  /*!< FMAC Clock Enable */
16065 #define RCC_AHB1ENR_MDF1EN_Pos              (3U)
16066 #define RCC_AHB1ENR_MDF1EN_Msk              (0x1UL << RCC_AHB1ENR_MDF1EN_Pos)       /*!< 0x00000008 */
16067 #define RCC_AHB1ENR_MDF1EN                  RCC_AHB1ENR_MDF1EN_Msk                  /*!< MDF1 Clock Enable */
16068 #define RCC_AHB1ENR_FLASHEN_Pos             (8U)
16069 #define RCC_AHB1ENR_FLASHEN_Msk             (0x1UL << RCC_AHB1ENR_FLASHEN_Pos)      /*!< 0x00000100 */
16070 #define RCC_AHB1ENR_FLASHEN                 RCC_AHB1ENR_FLASHEN_Msk                 /*!< FLASH Clock Enable */
16071 #define RCC_AHB1ENR_CRCEN_Pos               (12U)
16072 #define RCC_AHB1ENR_CRCEN_Msk               (0x1UL << RCC_AHB1ENR_CRCEN_Pos)        /*!< 0x00001000 */
16073 #define RCC_AHB1ENR_CRCEN                   RCC_AHB1ENR_CRCEN_Msk                   /*!< CRC Clock Enable */
16074 #define RCC_AHB1ENR_TSCEN_Pos               (16U)
16075 #define RCC_AHB1ENR_TSCEN_Msk               (0x1UL << RCC_AHB1ENR_TSCEN_Pos)        /*!< 0x00010000 */
16076 #define RCC_AHB1ENR_TSCEN                   RCC_AHB1ENR_TSCEN_Msk                   /*!< Touch Sensing Controller Clock Enable */
16077 #define RCC_AHB1ENR_RAMCFGEN_Pos            (17U)
16078 #define RCC_AHB1ENR_RAMCFGEN_Msk            (0x1UL << RCC_AHB1ENR_RAMCFGEN_Pos)     /*!< 0x00040000 */
16079 #define RCC_AHB1ENR_RAMCFGEN                RCC_AHB1ENR_RAMCFGEN_Msk                /*!< RAMCFG Clock Enable */
16080 #define RCC_AHB1ENR_DMA2DEN_Pos             (18U)
16081 #define RCC_AHB1ENR_DMA2DEN_Msk             (0x1UL << RCC_AHB1ENR_DMA2DEN_Pos)      /*!< 0x00040000 */
16082 #define RCC_AHB1ENR_DMA2DEN                 RCC_AHB1ENR_DMA2DEN_Msk                 /*!< DMA2D Clock Enable */
16083 #define RCC_AHB1ENR_GTZC1EN_Pos             (24U)
16084 #define RCC_AHB1ENR_GTZC1EN_Msk             (0x1UL << RCC_AHB1ENR_GTZC1EN_Pos)      /*!< 0x01000000 */
16085 #define RCC_AHB1ENR_GTZC1EN                 RCC_AHB1ENR_GTZC1EN_Msk                 /*!< GTZC1 Clock Enable */
16086 #define RCC_AHB1ENR_BKPSRAMEN_Pos           (28U)
16087 #define RCC_AHB1ENR_BKPSRAMEN_Msk           (0x1UL << RCC_AHB1ENR_BKPSRAMEN_Pos)    /*!< 0x10000000 */
16088 #define RCC_AHB1ENR_BKPSRAMEN               RCC_AHB1ENR_BKPSRAMEN_Msk               /*!< BKPSRAM Clock Enable */
16089 #define RCC_AHB1ENR_DCACHE1EN_Pos           (30U)
16090 #define RCC_AHB1ENR_DCACHE1EN_Msk           (0x1UL << RCC_AHB1ENR_DCACHE1EN_Pos)     /*!< 0x40000000 */
16091 #define RCC_AHB1ENR_DCACHE1EN               RCC_AHB1ENR_DCACHE1EN_Msk                /*!< DCACHE Clock Enable */
16092 #define RCC_AHB1ENR_SRAM1EN_Pos             (31U)
16093 #define RCC_AHB1ENR_SRAM1EN_Msk             (0x1UL << RCC_AHB1ENR_SRAM1EN_Pos)      /*!< 0x80000000 */
16094 #define RCC_AHB1ENR_SRAM1EN                 RCC_AHB1ENR_SRAM1EN_Msk                 /*!< SRAM1 Clock Enable */
16095 
16096 /********************  Bit definition for RCC_AHB2ENR1 register  **************/
16097 #define RCC_AHB2ENR1_GPIOAEN_Pos            (0U)
16098 #define RCC_AHB2ENR1_GPIOAEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIOAEN_Pos)      /*!< 0x00000001 */
16099 #define RCC_AHB2ENR1_GPIOAEN                RCC_AHB2ENR1_GPIOAEN_Msk                 /*!< IO port A Clock Enable */
16100 #define RCC_AHB2ENR1_GPIOBEN_Pos            (1U)
16101 #define RCC_AHB2ENR1_GPIOBEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIOBEN_Pos)      /*!< 0x00000002 */
16102 #define RCC_AHB2ENR1_GPIOBEN                RCC_AHB2ENR1_GPIOBEN_Msk                 /*!< IO port B Clock Enable */
16103 #define RCC_AHB2ENR1_GPIOCEN_Pos            (2U)
16104 #define RCC_AHB2ENR1_GPIOCEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIOCEN_Pos)      /*!< 0x00000004 */
16105 #define RCC_AHB2ENR1_GPIOCEN                RCC_AHB2ENR1_GPIOCEN_Msk                 /*!< IO port C Clock Enable */
16106 #define RCC_AHB2ENR1_GPIODEN_Pos            (3U)
16107 #define RCC_AHB2ENR1_GPIODEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIODEN_Pos)      /*!< 0x00000008 */
16108 #define RCC_AHB2ENR1_GPIODEN                RCC_AHB2ENR1_GPIODEN_Msk                 /*!< IO port D Clock Enable */
16109 #define RCC_AHB2ENR1_GPIOEEN_Pos            (4U)
16110 #define RCC_AHB2ENR1_GPIOEEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIOEEN_Pos)      /*!< 0x00000010 */
16111 #define RCC_AHB2ENR1_GPIOEEN                RCC_AHB2ENR1_GPIOEEN_Msk                 /*!< IO port E Clock Enable */
16112 #define RCC_AHB2ENR1_GPIOFEN_Pos            (5U)
16113 #define RCC_AHB2ENR1_GPIOFEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIOFEN_Pos)      /*!< 0x00000020 */
16114 #define RCC_AHB2ENR1_GPIOFEN                RCC_AHB2ENR1_GPIOFEN_Msk                 /*!< IO port F Clock Enable */
16115 #define RCC_AHB2ENR1_GPIOGEN_Pos            (6U)
16116 #define RCC_AHB2ENR1_GPIOGEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIOGEN_Pos)      /*!< 0x00000040 */
16117 #define RCC_AHB2ENR1_GPIOGEN                RCC_AHB2ENR1_GPIOGEN_Msk                 /*!< IO port G Clock Enable */
16118 #define RCC_AHB2ENR1_GPIOHEN_Pos            (7U)
16119 #define RCC_AHB2ENR1_GPIOHEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIOHEN_Pos)      /*!< 0x00000080 */
16120 #define RCC_AHB2ENR1_GPIOHEN                RCC_AHB2ENR1_GPIOHEN_Msk                 /*!< IO port H Clock Enable */
16121 #define RCC_AHB2ENR1_GPIOIEN_Pos            (8U)
16122 #define RCC_AHB2ENR1_GPIOIEN_Msk            (0x1UL << RCC_AHB2ENR1_GPIOIEN_Pos)      /*!< 0x00000100 */
16123 #define RCC_AHB2ENR1_GPIOIEN                RCC_AHB2ENR1_GPIOIEN_Msk                 /*!< IO port I Clock Enable */
16124 #define RCC_AHB2ENR1_ADC1EN_Pos             (10U)
16125 #define RCC_AHB2ENR1_ADC1EN_Msk             (0x1UL << RCC_AHB2ENR1_ADC1EN_Pos)       /*!< 0x00000400 */
16126 #define RCC_AHB2ENR1_ADC1EN                 RCC_AHB2ENR1_ADC1EN_Msk                  /*!< ADC1 Clock Enable */
16127 #define RCC_AHB2ENR1_DCMI_PSSIEN_Pos        (12U)
16128 #define RCC_AHB2ENR1_DCMI_PSSIEN_Msk        (0x1UL << RCC_AHB2ENR1_DCMI_PSSIEN_Pos)  /*!< 0x00001000 */
16129 #define RCC_AHB2ENR1_DCMI_PSSIEN            RCC_AHB2ENR1_DCMI_PSSIEN_Msk             /*!< DCMI and PSSI Clock Enable */
16130 #define RCC_AHB2ENR1_OTGEN_Pos              (14U)
16131 #define RCC_AHB2ENR1_OTGEN_Msk              (0x1UL << RCC_AHB2ENR1_OTGEN_Pos)      /*!< 0x00004000 */
16132 #define RCC_AHB2ENR1_OTGEN                  RCC_AHB2ENR1_OTGEN_Msk                 /*!< OTG Clock Enable */
16133 #define RCC_AHB2ENR1_AESEN_Pos              (16U)
16134 #define RCC_AHB2ENR1_AESEN_Msk              (0x1UL << RCC_AHB2ENR1_AESEN_Pos)        /*!< 0x00010000 */
16135 #define RCC_AHB2ENR1_AESEN                  RCC_AHB2ENR1_AESEN_Msk                   /*!< AES Clock Enable */
16136 #define RCC_AHB2ENR1_HASHEN_Pos             (17U)
16137 #define RCC_AHB2ENR1_HASHEN_Msk             (0x1UL << RCC_AHB2ENR1_HASHEN_Pos)       /*!< 0x00020000 */
16138 #define RCC_AHB2ENR1_HASHEN                 RCC_AHB2ENR1_HASHEN_Msk                  /*!< HASH Clock Enable */
16139 #define RCC_AHB2ENR1_RNGEN_Pos              (18U)
16140 #define RCC_AHB2ENR1_RNGEN_Msk              (0x1UL << RCC_AHB2ENR1_RNGEN_Pos)        /*!< 0x00040000 */
16141 #define RCC_AHB2ENR1_RNGEN                  RCC_AHB2ENR1_RNGEN_Msk                   /*!< RNG Clock Enable */
16142 #define RCC_AHB2ENR1_PKAEN_Pos              (19U)
16143 #define RCC_AHB2ENR1_PKAEN_Msk              (0x1UL << RCC_AHB2ENR1_PKAEN_Pos)        /*!< 0x00080000 */
16144 #define RCC_AHB2ENR1_PKAEN                  RCC_AHB2ENR1_PKAEN_Msk                   /*!< PKA Clock Enable */
16145 #define RCC_AHB2ENR1_SAESEN_Pos             (20U)
16146 #define RCC_AHB2ENR1_SAESEN_Msk             (0x1UL << RCC_AHB2ENR1_SAESEN_Pos)       /*!< 0x00100000 */
16147 #define RCC_AHB2ENR1_SAESEN                 RCC_AHB2ENR1_SAESEN_Msk                  /*!< SAES Clock Enable */
16148 #define RCC_AHB2ENR1_OCTOSPIMEN_Pos         (21U)
16149 #define RCC_AHB2ENR1_OCTOSPIMEN_Msk         (0x1UL << RCC_AHB2ENR1_OCTOSPIMEN_Pos)   /*!< 0x00200000 */
16150 #define RCC_AHB2ENR1_OCTOSPIMEN             RCC_AHB2ENR1_OCTOSPIMEN_Msk              /*!< OCTOSPIM Clock Enable */
16151 #define RCC_AHB2ENR1_OTFDEC1EN_Pos          (23U)
16152 #define RCC_AHB2ENR1_OTFDEC1EN_Msk          (0x1UL << RCC_AHB2ENR1_OTFDEC1EN_Pos)    /*!< 0x00800000 */
16153 #define RCC_AHB2ENR1_OTFDEC1EN              RCC_AHB2ENR1_OTFDEC1EN_Msk               /*!< OTFDEC1 Clock Enable */
16154 #define RCC_AHB2ENR1_OTFDEC2EN_Pos          (24U)
16155 #define RCC_AHB2ENR1_OTFDEC2EN_Msk          (0x1UL << RCC_AHB2ENR1_OTFDEC2EN_Pos)    /*!< 0x01000000 */
16156 #define RCC_AHB2ENR1_OTFDEC2EN              RCC_AHB2ENR1_OTFDEC2EN_Msk               /*!< OTFDEC2 Clock Enable */
16157 #define RCC_AHB2ENR1_SDMMC1EN_Pos           (27U)
16158 #define RCC_AHB2ENR1_SDMMC1EN_Msk           (0x1UL << RCC_AHB2ENR1_SDMMC1EN_Pos)     /*!< 0x08000000 */
16159 #define RCC_AHB2ENR1_SDMMC1EN               RCC_AHB2ENR1_SDMMC1EN_Msk                /*!< SDMMC1 Clock Enable */
16160 #define RCC_AHB2ENR1_SDMMC2EN_Pos           (28U)
16161 #define RCC_AHB2ENR1_SDMMC2EN_Msk           (0x1UL << RCC_AHB2ENR1_SDMMC2EN_Pos)     /*!< 0x10000000 */
16162 #define RCC_AHB2ENR1_SDMMC2EN               RCC_AHB2ENR1_SDMMC2EN_Msk                /*!< SDMMC2 Clock Enable */
16163 #define RCC_AHB2ENR1_SRAM2EN_Pos            (30U)
16164 #define RCC_AHB2ENR1_SRAM2EN_Msk            (0x1UL << RCC_AHB2ENR1_SRAM2EN_Pos)       /*!< 0x40000000 */
16165 #define RCC_AHB2ENR1_SRAM2EN                RCC_AHB2ENR1_SRAM2EN_Msk                 /*!< SRAM2 Clock Enable */
16166 #define RCC_AHB2ENR1_SRAM3EN_Pos            (31U)
16167 #define RCC_AHB2ENR1_SRAM3EN_Msk            (0x1UL << RCC_AHB2ENR1_SRAM3EN_Pos)      /*!< 0x80000000 */
16168 #define RCC_AHB2ENR1_SRAM3EN                RCC_AHB2ENR1_SRAM3EN_Msk                 /*!< SRAM3 Clock Enable */
16169 
16170 /********************  Bit definition for RCC_AHB2ENR2 register  **************/
16171 #define RCC_AHB2ENR2_FSMCEN_Pos             (0U)
16172 #define RCC_AHB2ENR2_FSMCEN_Msk             (0x1UL << RCC_AHB2ENR2_FSMCEN_Pos)       /*!< 0x00000001 */
16173 #define RCC_AHB2ENR2_FSMCEN                 RCC_AHB2ENR2_FSMCEN_Msk                  /*!< FSMC Clock Enable */
16174 #define RCC_AHB2ENR2_OCTOSPI1EN_Pos         (4U)
16175 #define RCC_AHB2ENR2_OCTOSPI1EN_Msk         (0x1UL << RCC_AHB2ENR2_OCTOSPI1EN_Pos)   /*!< 0x00000010 */
16176 #define RCC_AHB2ENR2_OCTOSPI1EN             RCC_AHB2ENR2_OCTOSPI1EN_Msk              /*!< OCTOSPI1 Clock Enable */
16177 #define RCC_AHB2ENR2_OCTOSPI2EN_Pos         (8U)
16178 #define RCC_AHB2ENR2_OCTOSPI2EN_Msk         (0x1UL << RCC_AHB2ENR2_OCTOSPI2EN_Pos)   /*!< 0x00000100 */
16179 #define RCC_AHB2ENR2_OCTOSPI2EN             RCC_AHB2ENR2_OCTOSPI2EN_Msk              /*!< OCTOSPI2 Clock Enable */
16180 
16181 /********************  Bit definition for RCC_AHB3ENR register  **************/
16182 #define RCC_AHB3ENR_LPGPIO1EN_Pos           (0U)
16183 #define RCC_AHB3ENR_LPGPIO1EN_Msk           (0x1UL << RCC_AHB3ENR_LPGPIO1EN_Pos)    /*!< 0x00000001 */
16184 #define RCC_AHB3ENR_LPGPIO1EN               RCC_AHB3ENR_LPGPIO1EN_Msk               /*!< LPGPIO1 Enable */
16185 #define RCC_AHB3ENR_PWREN_Pos               (2U)
16186 #define RCC_AHB3ENR_PWREN_Msk               (0x1UL << RCC_AHB3ENR_PWREN_Pos)        /*!< 0x00000004 */
16187 #define RCC_AHB3ENR_PWREN                   RCC_AHB3ENR_PWREN_Msk                   /*!< PWR Clock Enable */
16188 #define RCC_AHB3ENR_ADC4EN_Pos              (5U)
16189 #define RCC_AHB3ENR_ADC4EN_Msk              (0x1UL << RCC_AHB3ENR_ADC4EN_Pos)       /*!< 0x00000040 */
16190 #define RCC_AHB3ENR_ADC4EN                  RCC_AHB3ENR_ADC4EN_Msk                  /*!< ADC4 Clock Enable */
16191 #define RCC_AHB3ENR_DAC1EN_Pos              (6U)
16192 #define RCC_AHB3ENR_DAC1EN_Msk              (0x1UL << RCC_AHB3ENR_DAC1EN_Pos)       /*!< 0x00000040 */
16193 #define RCC_AHB3ENR_DAC1EN                  RCC_AHB3ENR_DAC1EN_Msk                  /*!< DAC1 Clock Enable */
16194 #define RCC_AHB3ENR_LPDMA1EN_Pos            (9U)
16195 #define RCC_AHB3ENR_LPDMA1EN_Msk            (0x1UL << RCC_AHB3ENR_LPDMA1EN_Pos)     /*!< 0x000000080 */
16196 #define RCC_AHB3ENR_LPDMA1EN                RCC_AHB3ENR_LPDMA1EN_Msk                /*!< LPDMA1 Clock Enable */
16197 #define RCC_AHB3ENR_ADF1EN_Pos              (10U)
16198 #define RCC_AHB3ENR_ADF1EN_Msk              (0x1UL << RCC_AHB3ENR_ADF1EN_Pos)       /*!< 0x000000400 */
16199 #define RCC_AHB3ENR_ADF1EN                  RCC_AHB3ENR_ADF1EN_Msk                  /*!< ADF1 Clock Enable */
16200 #define RCC_AHB3ENR_GTZC2EN_Pos             (12U)
16201 #define RCC_AHB3ENR_GTZC2EN_Msk             (0x1UL << RCC_AHB3ENR_GTZC2EN_Pos)      /*!< 0x000001000 */
16202 #define RCC_AHB3ENR_GTZC2EN                 RCC_AHB3ENR_GTZC2EN_Msk                 /*!< GTZC2 Clock Enable */
16203 #define RCC_AHB3ENR_SRAM4EN_Pos             (31U)
16204 #define RCC_AHB3ENR_SRAM4EN_Msk             (0x1UL << RCC_AHB3ENR_SRAM4EN_Pos)      /*!< 0x800000000 */
16205 #define RCC_AHB3ENR_SRAM4EN                 RCC_AHB3ENR_SRAM4EN_Msk                 /*!< SRAM4 Clock Enable */
16206 
16207 /********************  Bit definition for RCC_APB1ENR1 register  **************/
16208 #define RCC_APB1ENR1_TIM2EN_Pos             (0U)
16209 #define RCC_APB1ENR1_TIM2EN_Msk             (0x1UL << RCC_APB1ENR1_TIM2EN_Pos)      /*!< 0x00000001 */
16210 #define RCC_APB1ENR1_TIM2EN                 RCC_APB1ENR1_TIM2EN_Msk                 /*!< TIM2 Clock Enable */
16211 #define RCC_APB1ENR1_TIM3EN_Pos             (1U)
16212 #define RCC_APB1ENR1_TIM3EN_Msk             (0x1UL << RCC_APB1ENR1_TIM3EN_Pos)      /*!< 0x00000002 */
16213 #define RCC_APB1ENR1_TIM3EN                 RCC_APB1ENR1_TIM3EN_Msk                 /*!< TIM3 Clock Enable */
16214 #define RCC_APB1ENR1_TIM4EN_Pos             (2U)
16215 #define RCC_APB1ENR1_TIM4EN_Msk             (0x1UL << RCC_APB1ENR1_TIM4EN_Pos)      /*!< 0x00000004 */
16216 #define RCC_APB1ENR1_TIM4EN                 RCC_APB1ENR1_TIM4EN_Msk                 /*!< TIM4 Clock Enable */
16217 #define RCC_APB1ENR1_TIM5EN_Pos             (3U)
16218 #define RCC_APB1ENR1_TIM5EN_Msk             (0x1UL << RCC_APB1ENR1_TIM5EN_Pos)      /*!< 0x00000008 */
16219 #define RCC_APB1ENR1_TIM5EN                 RCC_APB1ENR1_TIM5EN_Msk                 /*!< TIM5 Clock Enable */
16220 #define RCC_APB1ENR1_TIM6EN_Pos             (4U)
16221 #define RCC_APB1ENR1_TIM6EN_Msk             (0x1UL << RCC_APB1ENR1_TIM6EN_Pos)      /*!< 0x00000010 */
16222 #define RCC_APB1ENR1_TIM6EN                 RCC_APB1ENR1_TIM6EN_Msk                 /*!< TIM6 Clock Enable */
16223 #define RCC_APB1ENR1_TIM7EN_Pos             (5U)
16224 #define RCC_APB1ENR1_TIM7EN_Msk             (0x1UL << RCC_APB1ENR1_TIM7EN_Pos)      /*!< 0x00000020 */
16225 #define RCC_APB1ENR1_TIM7EN                 RCC_APB1ENR1_TIM7EN_Msk                 /*!< TIM7 Clock Enable */
16226 #define RCC_APB1ENR1_WWDGEN_Pos             (11U)
16227 #define RCC_APB1ENR1_WWDGEN_Msk             (0x1UL << RCC_APB1ENR1_WWDGEN_Pos)      /*!< 0x00000800 */
16228 #define RCC_APB1ENR1_WWDGEN                 RCC_APB1ENR1_WWDGEN_Msk                 /*!< WWDG Clock Enable */
16229 #define RCC_APB1ENR1_SPI2EN_Pos             (14U)
16230 #define RCC_APB1ENR1_SPI2EN_Msk             (0x1UL << RCC_APB1ENR1_SPI2EN_Pos)      /*!< 0x00004000 */
16231 #define RCC_APB1ENR1_SPI2EN                 RCC_APB1ENR1_SPI2EN_Msk                 /*!< SPI2 Clock Enable */
16232 #define RCC_APB1ENR1_USART2EN_Pos           (17U)
16233 #define RCC_APB1ENR1_USART2EN_Msk           (0x1UL << RCC_APB1ENR1_USART2EN_Pos)    /*!< 0x00020000 */
16234 #define RCC_APB1ENR1_USART2EN               RCC_APB1ENR1_USART2EN_Msk               /*!< USART2 Clock Enable */
16235 #define RCC_APB1ENR1_USART3EN_Pos           (18U)
16236 #define RCC_APB1ENR1_USART3EN_Msk           (0x1UL << RCC_APB1ENR1_USART3EN_Pos)    /*!< 0x00040000 */
16237 #define RCC_APB1ENR1_USART3EN               RCC_APB1ENR1_USART3EN_Msk               /*!< USART3 Clock Enable */
16238 #define RCC_APB1ENR1_UART4EN_Pos            (19U)
16239 #define RCC_APB1ENR1_UART4EN_Msk            (0x1UL << RCC_APB1ENR1_UART4EN_Pos)     /*!< 0x00080000 */
16240 #define RCC_APB1ENR1_UART4EN                RCC_APB1ENR1_UART4EN_Msk                /*!< UART4 Clock Enable */
16241 #define RCC_APB1ENR1_UART5EN_Pos            (20U)
16242 #define RCC_APB1ENR1_UART5EN_Msk            (0x1UL << RCC_APB1ENR1_UART5EN_Pos)     /*!< 0x00100000 */
16243 #define RCC_APB1ENR1_UART5EN                RCC_APB1ENR1_UART5EN_Msk                /*!< UART5 Clock Enable */
16244 #define RCC_APB1ENR1_I2C1EN_Pos             (21U)
16245 #define RCC_APB1ENR1_I2C1EN_Msk             (0x1UL << RCC_APB1ENR1_I2C1EN_Pos)      /*!< 0x00200000 */
16246 #define RCC_APB1ENR1_I2C1EN                 RCC_APB1ENR1_I2C1EN_Msk                 /*!< I2C1 Clock Enable */
16247 #define RCC_APB1ENR1_I2C2EN_Pos             (22U)
16248 #define RCC_APB1ENR1_I2C2EN_Msk             (0x1UL << RCC_APB1ENR1_I2C2EN_Pos)      /*!< 0x00400000 */
16249 #define RCC_APB1ENR1_I2C2EN                 RCC_APB1ENR1_I2C2EN_Msk                 /*!< I2C2 Clock Enable */
16250 #define RCC_APB1ENR1_CRSEN_Pos              (24U)
16251 #define RCC_APB1ENR1_CRSEN_Msk              (0x1UL << RCC_APB1ENR1_CRSEN_Pos)       /*!< 0x01000000 */
16252 #define RCC_APB1ENR1_CRSEN                  RCC_APB1ENR1_CRSEN_Msk                  /*!< CRS Clock Enable */
16253 
16254 /********************  Bit definition for RCC_APB1ENR2 register  **************/
16255 #define RCC_APB1ENR2_I2C4EN_Pos             (1U)
16256 #define RCC_APB1ENR2_I2C4EN_Msk             (0x1UL << RCC_APB1ENR2_I2C4EN_Pos)      /*!< 0x00000002 */
16257 #define RCC_APB1ENR2_I2C4EN                 RCC_APB1ENR2_I2C4EN_Msk                 /*!< I2C4 Clock Enable */
16258 #define RCC_APB1ENR2_LPTIM2EN_Pos           (5U)
16259 #define RCC_APB1ENR2_LPTIM2EN_Msk           (0x1UL << RCC_APB1ENR2_LPTIM2EN_Pos)    /*!< 0x00000020 */
16260 #define RCC_APB1ENR2_LPTIM2EN               RCC_APB1ENR2_LPTIM2EN_Msk               /*!< LPTIM2 Clock Enable */
16261 #define RCC_APB1ENR2_FDCAN1EN_Pos           (9U)
16262 #define RCC_APB1ENR2_FDCAN1EN_Msk           (0x1UL << RCC_APB1ENR2_FDCAN1EN_Pos)    /*!< 0x00000200 */
16263 #define RCC_APB1ENR2_FDCAN1EN               RCC_APB1ENR2_FDCAN1EN_Msk               /*!< FDCAN1 Clock Enable */
16264 #define RCC_APB1ENR2_UCPD1EN_Pos            (23U)
16265 #define RCC_APB1ENR2_UCPD1EN_Msk            (0x1UL << RCC_APB1ENR2_UCPD1EN_Pos)     /*!< 0x00800000 */
16266 #define RCC_APB1ENR2_UCPD1EN                RCC_APB1ENR2_UCPD1EN_Msk                /*!< UCPD1 Clock Enable */
16267 
16268 /********************  Bit definition for RCC_APB2ENR register  **************/
16269 #define RCC_APB2ENR_TIM1EN_Pos              (11U)
16270 #define RCC_APB2ENR_TIM1EN_Msk              (0x1UL << RCC_APB2ENR_TIM1EN_Pos)       /*!< 0x00000800 */
16271 #define RCC_APB2ENR_TIM1EN                  RCC_APB2ENR_TIM1EN_Msk                  /*!< TIM1 Clock Enable */
16272 #define RCC_APB2ENR_SPI1EN_Pos              (12U)
16273 #define RCC_APB2ENR_SPI1EN_Msk              (0x1UL << RCC_APB2ENR_SPI1EN_Pos)       /*!< 0x00001000 */
16274 #define RCC_APB2ENR_SPI1EN                  RCC_APB2ENR_SPI1EN_Msk                  /*!< SPI1 Clock Enable */
16275 #define RCC_APB2ENR_TIM8EN_Pos              (13U)
16276 #define RCC_APB2ENR_TIM8EN_Msk              (0x1UL << RCC_APB2ENR_TIM8EN_Pos)       /*!< 0x00002000 */
16277 #define RCC_APB2ENR_TIM8EN                  RCC_APB2ENR_TIM8EN_Msk                  /*!< TIM8 Clock Enable */
16278 #define RCC_APB2ENR_USART1EN_Pos            (14U)
16279 #define RCC_APB2ENR_USART1EN_Msk            (0x1UL << RCC_APB2ENR_USART1EN_Pos)     /*!< 0x00004000 */
16280 #define RCC_APB2ENR_USART1EN                RCC_APB2ENR_USART1EN_Msk                /*!< USART1 Clock Enable */
16281 #define RCC_APB2ENR_TIM15EN_Pos             (16U)
16282 #define RCC_APB2ENR_TIM15EN_Msk             (0x1UL << RCC_APB2ENR_TIM15EN_Pos)      /*!< 0x00010000 */
16283 #define RCC_APB2ENR_TIM15EN                 RCC_APB2ENR_TIM15EN_Msk                 /*!< TIM15 Clock Enable */
16284 #define RCC_APB2ENR_TIM16EN_Pos             (17U)
16285 #define RCC_APB2ENR_TIM16EN_Msk             (0x1UL << RCC_APB2ENR_TIM16EN_Pos)      /*!< 0x00020000 */
16286 #define RCC_APB2ENR_TIM16EN                 RCC_APB2ENR_TIM16EN_Msk                 /*!< TIM16 Clock Enable */
16287 #define RCC_APB2ENR_TIM17EN_Pos             (18U)
16288 #define RCC_APB2ENR_TIM17EN_Msk             (0x1UL << RCC_APB2ENR_TIM17EN_Pos)      /*!< 0x00040000 */
16289 #define RCC_APB2ENR_TIM17EN                 RCC_APB2ENR_TIM17EN_Msk                 /*!< TIM17 Clock Enable */
16290 #define RCC_APB2ENR_SAI1EN_Pos              (21U)
16291 #define RCC_APB2ENR_SAI1EN_Msk              (0x1UL << RCC_APB2ENR_SAI1EN_Pos)       /*!< 0x00200000 */
16292 #define RCC_APB2ENR_SAI1EN                  RCC_APB2ENR_SAI1EN_Msk                  /*!< SAI1 Clock Enable */
16293 #define RCC_APB2ENR_SAI2EN_Pos              (22U)
16294 #define RCC_APB2ENR_SAI2EN_Msk              (0x1UL << RCC_APB2ENR_SAI2EN_Pos)       /*!< 0x00400000 */
16295 #define RCC_APB2ENR_SAI2EN                  RCC_APB2ENR_SAI2EN_Msk                  /*!< SAI2 Clock Enable */
16296 
16297 /********************  Bit definition for RCC_APB3ENR register  **************/
16298 #define RCC_APB3ENR_SYSCFGEN_Pos            (1U)
16299 #define RCC_APB3ENR_SYSCFGEN_Msk            (0x1UL << RCC_APB3ENR_SYSCFGEN_Pos)     /*!< 0x00000002 */
16300 #define RCC_APB3ENR_SYSCFGEN                RCC_APB3ENR_SYSCFGEN_Msk                /*!< SYSCFG Clock Enable */
16301 #define RCC_APB3ENR_SPI3EN_Pos              (5U)
16302 #define RCC_APB3ENR_SPI3EN_Msk              (0x1UL << RCC_APB3ENR_SPI3EN_Pos)       /*!< 0x00000010 */
16303 #define RCC_APB3ENR_SPI3EN                  RCC_APB3ENR_SPI3EN_Msk                  /*!< SPI3 Clock Enable */
16304 #define RCC_APB3ENR_LPUART1EN_Pos           (6U)
16305 #define RCC_APB3ENR_LPUART1EN_Msk           (0x1UL << RCC_APB3ENR_LPUART1EN_Pos)    /*!< 0x00000040 */
16306 #define RCC_APB3ENR_LPUART1EN               RCC_APB3ENR_LPUART1EN_Msk               /*!< LPUART1 Clock Enable */
16307 #define RCC_APB3ENR_I2C3EN_Pos              (7U)
16308 #define RCC_APB3ENR_I2C3EN_Msk              (0x1UL << RCC_APB3ENR_I2C3EN_Pos)       /*!< 0x000000080 */
16309 #define RCC_APB3ENR_I2C3EN                  RCC_APB3ENR_I2C3EN_Msk                  /*!< I2C3 Clock Enable */
16310 #define RCC_APB3ENR_LPTIM1EN_Pos            (11U)
16311 #define RCC_APB3ENR_LPTIM1EN_Msk            (0x1UL << RCC_APB3ENR_LPTIM1EN_Pos)     /*!< 0x000000800 */
16312 #define RCC_APB3ENR_LPTIM1EN                RCC_APB3ENR_LPTIM1EN_Msk                /*!< LPTIM1 Clock Enable */
16313 #define RCC_APB3ENR_LPTIM3EN_Pos            (12U)
16314 #define RCC_APB3ENR_LPTIM3EN_Msk            (0x1UL << RCC_APB3ENR_LPTIM3EN_Pos)     /*!< 0x000001000 */
16315 #define RCC_APB3ENR_LPTIM3EN                RCC_APB3ENR_LPTIM3EN_Msk                /*!< LPTIM3 Clock Enable */
16316 #define RCC_APB3ENR_LPTIM4EN_Pos            (13U)
16317 #define RCC_APB3ENR_LPTIM4EN_Msk            (0x1UL << RCC_APB3ENR_LPTIM4EN_Pos)     /*!< 0x0000002000 */
16318 #define RCC_APB3ENR_LPTIM4EN                RCC_APB3ENR_LPTIM4EN_Msk                /*!< LPTIM4 Clock Enable */
16319 #define RCC_APB3ENR_OPAMPEN_Pos             (14U)
16320 #define RCC_APB3ENR_OPAMPEN_Msk             (0x1UL << RCC_APB3ENR_OPAMPEN_Pos)      /*!< 0x000004000 */
16321 #define RCC_APB3ENR_OPAMPEN                 RCC_APB3ENR_OPAMPEN_Msk                 /*!< OPAMP Clock Enable */
16322 #define RCC_APB3ENR_COMPEN_Pos              (15U)
16323 #define RCC_APB3ENR_COMPEN_Msk              (0x1UL << RCC_APB3ENR_COMPEN_Pos)       /*!< 0x000004000 */
16324 #define RCC_APB3ENR_COMPEN                  RCC_APB3ENR_COMPEN_Msk                  /*!< COMP Clock Enable */
16325 #define RCC_APB3ENR_VREFEN_Pos              (20U)
16326 #define RCC_APB3ENR_VREFEN_Msk              (0x1UL << RCC_APB3ENR_VREFEN_Pos)       /*!< 0x000100000 */
16327 #define RCC_APB3ENR_VREFEN                  RCC_APB3ENR_VREFEN_Msk                  /*!< VREFBUF Clock Enable */
16328 #define RCC_APB3ENR_RTCAPBEN_Pos            (21U)
16329 #define RCC_APB3ENR_RTCAPBEN_Msk            (0x1UL << RCC_APB3ENR_RTCAPBEN_Pos)     /*!< 0x000200000 */
16330 #define RCC_APB3ENR_RTCAPBEN                RCC_APB3ENR_RTCAPBEN_Msk                /*!< RTC APB Clock Enable */
16331 
16332 /********************  Bit definition for RCC_AHB1SMENR register  **************/
16333 #define RCC_AHB1SMENR_GPDMA1SMEN_Pos        (0U)
16334 #define RCC_AHB1SMENR_GPDMA1SMEN_Msk        (0x1UL << RCC_AHB1SMENR_GPDMA1SMEN_Pos) /*!< 0x00000000*/
16335 #define RCC_AHB1SMENR_GPDMA1SMEN            RCC_AHB1SMENR_GPDMA1SMEN_Msk            /*!< GPDMA1 Clocks Enable During Sleep and Stop Modes */
16336 #define RCC_AHB1SMENR_CORDICSMEN_Pos        (1U)
16337 #define RCC_AHB1SMENR_CORDICSMEN_Msk        (0x1UL << RCC_AHB1SMENR_CORDICSMEN_Pos) /*!< 0x00000001*/
16338 #define RCC_AHB1SMENR_CORDICSMEN            RCC_AHB1SMENR_CORDICSMEN_Msk            /*!< CORDIC Clocks Enable During Sleep and Stop Modes */
16339 #define RCC_AHB1SMENR_FMACSMEN_Pos          (2U)
16340 #define RCC_AHB1SMENR_FMACSMEN_Msk          (0x1UL << RCC_AHB1SMENR_FMACSMEN_Pos)   /*!< 0x00000002*/
16341 #define RCC_AHB1SMENR_FMACSMEN              RCC_AHB1SMENR_FMACSMEN_Msk              /*!< FMAC Clocks Enable During Sleep and Stop Modes */
16342 #define RCC_AHB1SMENR_MDF1SMEN_Pos          (3U)
16343 #define RCC_AHB1SMENR_MDF1SMEN_Msk          (0x1UL << RCC_AHB1SMENR_MDF1SMEN_Pos)   /*!< 0x00000004 */
16344 #define RCC_AHB1SMENR_MDF1SMEN              RCC_AHB1SMENR_MDF1SMEN_Msk              /*!< MDF1 Clocks Enable During Sleep and Stop Modes */
16345 #define RCC_AHB1SMENR_FLASHSMEN_Pos         (8U)
16346 #define RCC_AHB1SMENR_FLASHSMEN_Msk         (0x1UL << RCC_AHB1SMENR_FLASHSMEN_Pos)  /*!< 0x00000100 */
16347 #define RCC_AHB1SMENR_FLASHSMEN             RCC_AHB1SMENR_FLASHSMEN_Msk             /*!< FLASH Clocks Enable During Sleep and Stop Modes */
16348 #define RCC_AHB1SMENR_CRCSMEN_Pos           (12U)
16349 #define RCC_AHB1SMENR_CRCSMEN_Msk           (0x1UL << RCC_AHB1SMENR_CRCSMEN_Pos)    /*!< 0x00001000 */
16350 #define RCC_AHB1SMENR_CRCSMEN               RCC_AHB1SMENR_CRCSMEN_Msk               /*!< CRC Clocks Enable During Sleep and Stop Modes */
16351 #define RCC_AHB1SMENR_TSCSMEN_Pos           (16U)
16352 #define RCC_AHB1SMENR_TSCSMEN_Msk           (0x1UL << RCC_AHB1SMENR_TSCSMEN_Pos)    /*!< 0x00010000 */
16353 #define RCC_AHB1SMENR_TSCSMEN               RCC_AHB1SMENR_TSCSMEN_Msk               /*!< TSC Clocks Enable During Sleep and Stop Modes */
16354 #define RCC_AHB1SMENR_RAMCFGSMEN_Pos        (17U)
16355 #define RCC_AHB1SMENR_RAMCFGSMEN_Msk        (0x1UL << RCC_AHB1SMENR_RAMCFGSMEN_Pos) /*!< 0x00020000 */
16356 #define RCC_AHB1SMENR_RAMCFGSMEN            RCC_AHB1SMENR_RAMCFGSMEN_Msk            /*!< RAMCFG Clocks Enable During Sleep and Stop Modes */
16357 #define RCC_AHB1SMENR_DMA2DSMEN_Pos         (18U)
16358 #define RCC_AHB1SMENR_DMA2DSMEN_Msk         (0x1UL << RCC_AHB1SMENR_DMA2DSMEN_Pos)  /*!< 0x00040000 */
16359 #define RCC_AHB1SMENR_DMA2DSMEN             RCC_AHB1SMENR_DMA2DSMEN_Msk             /*!< DMA2D Clocks Enable During Sleep and Stop Modes */
16360 #define RCC_AHB1SMENR_GTZC1SMEN_Pos         (24U)
16361 #define RCC_AHB1SMENR_GTZC1SMEN_Msk         (0x1UL << RCC_AHB1SMENR_GTZC1SMEN_Pos)  /*!< 0x01000000 */
16362 #define RCC_AHB1SMENR_GTZC1SMEN             RCC_AHB1SMENR_GTZC1SMEN_Msk             /*!< GTZC1 Clocks Enable During Sleep and Stop Modes */
16363 #define RCC_AHB1SMENR_BKPSRAMSMEN_Pos       (28U)
16364 #define RCC_AHB1SMENR_BKPSRAMSMEN_Msk       (0x1UL << RCC_AHB1SMENR_BKPSRAMSMEN_Pos) /*!< 0x10000000 */
16365 #define RCC_AHB1SMENR_BKPSRAMSMEN           RCC_AHB1SMENR_BKPSRAMSMEN_Msk            /*!< BKPSRAM Clocks Enable During Sleep and Stop Modes */
16366 #define RCC_AHB1SMENR_ICACHESMEN_Pos        (29U)
16367 #define RCC_AHB1SMENR_ICACHESMEN_Msk        (0x1UL << RCC_AHB1SMENR_ICACHESMEN_Pos) /*!< 0x20000000 */
16368 #define RCC_AHB1SMENR_ICACHESMEN            RCC_AHB1SMENR_ICACHESMEN_Msk            /*!< ICACHE Clocks Enable During Sleep and Stop Modes */
16369 #define RCC_AHB1SMENR_DCACHE1SMEN_Pos       (30U)
16370 #define RCC_AHB1SMENR_DCACHE1SMEN_Msk       (0x1UL << RCC_AHB1SMENR_DCACHE1SMEN_Pos) /*!< 0x40000000 */
16371 #define RCC_AHB1SMENR_DCACHE1SMEN           RCC_AHB1SMENR_DCACHE1SMEN_Msk            /*!< DCACHE Clocks Enable During Sleep and Stop Modes */
16372 #define RCC_AHB1SMENR_SRAM1SMEN_Pos         (31U)
16373 #define RCC_AHB1SMENR_SRAM1SMEN_Msk         (0x1UL << RCC_AHB1SMENR_SRAM1SMEN_Pos)  /*!< 0x80000000 */
16374 #define RCC_AHB1SMENR_SRAM1SMEN             RCC_AHB1SMENR_SRAM1SMEN_Msk             /*!< SRAM1 Clocks Enable During Sleep and Stop Modes */
16375 
16376 /********************  Bit definition for RCC_AHB2SMENR1 register  **************/
16377 #define RCC_AHB2SMENR1_GPIOASMEN_Pos        (0U)
16378 #define RCC_AHB2SMENR1_GPIOASMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIOASMEN_Pos)  /*!< 0x00000001 */
16379 #define RCC_AHB2SMENR1_GPIOASMEN            RCC_AHB2SMENR1_GPIOASMEN_Msk             /*!< IO port A Clocks Enable During Sleep and Stop Modes */
16380 #define RCC_AHB2SMENR1_GPIOBSMEN_Pos        (1U)
16381 #define RCC_AHB2SMENR1_GPIOBSMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIOBSMEN_Pos)  /*!< 0x00000002 */
16382 #define RCC_AHB2SMENR1_GPIOBSMEN            RCC_AHB2SMENR1_GPIOBSMEN_Msk             /*!< IO port B Clocks Enable During Sleep and Stop Modes */
16383 #define RCC_AHB2SMENR1_GPIOCSMEN_Pos        (2U)
16384 #define RCC_AHB2SMENR1_GPIOCSMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIOCSMEN_Pos)  /*!< 0x00000004 */
16385 #define RCC_AHB2SMENR1_GPIOCSMEN            RCC_AHB2SMENR1_GPIOCSMEN_Msk             /*!< IO port C Clocks Enable During Sleep and Stop Modes */
16386 #define RCC_AHB2SMENR1_GPIODSMEN_Pos        (3U)
16387 #define RCC_AHB2SMENR1_GPIODSMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIODSMEN_Pos)  /*!< 0x00000008 */
16388 #define RCC_AHB2SMENR1_GPIODSMEN            RCC_AHB2SMENR1_GPIODSMEN_Msk             /*!< IO port D Clocks Enable During Sleep and Stop Modes */
16389 #define RCC_AHB2SMENR1_GPIOESMEN_Pos        (4U)
16390 #define RCC_AHB2SMENR1_GPIOESMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIOESMEN_Pos)  /*!< 0x00000010 */
16391 #define RCC_AHB2SMENR1_GPIOESMEN            RCC_AHB2SMENR1_GPIOESMEN_Msk             /*!< IO port E Clocks Enable During Sleep and Stop Modes */
16392 #define RCC_AHB2SMENR1_GPIOFSMEN_Pos        (5U)
16393 #define RCC_AHB2SMENR1_GPIOFSMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIOFSMEN_Pos)  /*!< 0x00000020 */
16394 #define RCC_AHB2SMENR1_GPIOFSMEN            RCC_AHB2SMENR1_GPIOFSMEN_Msk             /*!< IO port F Clocks Enable During Sleep and Stop Modes */
16395 #define RCC_AHB2SMENR1_GPIOGSMEN_Pos        (6U)
16396 #define RCC_AHB2SMENR1_GPIOGSMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIOGSMEN_Pos)  /*!< 0x00000040 */
16397 #define RCC_AHB2SMENR1_GPIOGSMEN            RCC_AHB2SMENR1_GPIOGSMEN_Msk             /*!< IO port G Clocks Enable During Sleep and Stop Modes */
16398 #define RCC_AHB2SMENR1_GPIOHSMEN_Pos        (7U)
16399 #define RCC_AHB2SMENR1_GPIOHSMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIOHSMEN_Pos)  /*!< 0x00000080 */
16400 #define RCC_AHB2SMENR1_GPIOHSMEN            RCC_AHB2SMENR1_GPIOHSMEN_Msk             /*!< IO port H Clocks Enable During Sleep and Stop Modes */
16401 #define RCC_AHB2SMENR1_GPIOISMEN_Pos        (8U)
16402 #define RCC_AHB2SMENR1_GPIOISMEN_Msk        (0x1UL << RCC_AHB2SMENR1_GPIOISMEN_Pos)  /*!< 0x00000100 */
16403 #define RCC_AHB2SMENR1_GPIOISMEN            RCC_AHB2SMENR1_GPIOISMEN_Msk             /*!< IO port I Clocks Enable During Sleep and Stop Modes */
16404 #define RCC_AHB2SMENR1_ADC1SMEN_Pos         (10U)
16405 #define RCC_AHB2SMENR1_ADC1SMEN_Msk         (0x1UL << RCC_AHB2SMENR1_ADC1SMEN_Pos)   /*!< 0x00000400 */
16406 #define RCC_AHB2SMENR1_ADC1SMEN             RCC_AHB2SMENR1_ADC1SMEN_Msk              /*!< ADC1 Clocks Enable During Sleep and Stop Modes */
16407 #define RCC_AHB2SMENR1_DCMI_PSSISMEN_Pos    (12U)
16408 #define RCC_AHB2SMENR1_DCMI_PSSISMEN_Msk    (0x1UL << RCC_AHB2SMENR1_DCMI_PSSISMEN_Pos) /*!< 0x00001000 */
16409 #define RCC_AHB2SMENR1_DCMI_PSSISMEN        RCC_AHB2SMENR1_DCMI_PSSISMEN_Msk            /*!< DCMI and PSSI Clocks Enable During Sleep and Stop Modes */
16410 #define RCC_AHB2SMENR1_OTGSMEN_Pos          (14U)
16411 #define RCC_AHB2SMENR1_OTGSMEN_Msk          (0x1UL << RCC_AHB2SMENR1_OTGSMEN_Pos)       /*!< 0x00004000 */
16412 #define RCC_AHB2SMENR1_OTGSMEN              RCC_AHB2SMENR1_OTGSMEN_Msk                  /*!< OTG Clocks Enable During Sleep and Stop Modes */
16413 #define RCC_AHB2SMENR1_AESSMEN_Pos           (16U)
16414 #define RCC_AHB2SMENR1_AESSMEN_Msk          (0x1UL << RCC_AHB2SMENR1_AESSMEN_Pos)    /*!< 0x00010000 */
16415 #define RCC_AHB2SMENR1_AESSMEN              RCC_AHB2SMENR1_AESSMEN_Msk               /*!< AES Clocks Enable During Sleep and Stop Modes */
16416 #define RCC_AHB2SMENR1_HASHSMEN_Pos         (17U)
16417 #define RCC_AHB2SMENR1_HASHSMEN_Msk         (0x1UL << RCC_AHB2SMENR1_HASHSMEN_Pos)   /*!< 0x00020000 */
16418 #define RCC_AHB2SMENR1_HASHSMEN             RCC_AHB2SMENR1_HASHSMEN_Msk              /*!< HASH Clocks Enable During Sleep and Stop Modes */
16419 #define RCC_AHB2SMENR1_RNGSMEN_Pos          (18U)
16420 #define RCC_AHB2SMENR1_RNGSMEN_Msk          (0x1UL << RCC_AHB2SMENR1_RNGSMEN_Pos)    /*!< 0x00040000 */
16421 #define RCC_AHB2SMENR1_RNGSMEN              RCC_AHB2SMENR1_RNGSMEN_Msk               /*!< Random Number Generator (RNG) Clocks Enable During Sleep and Stop Modes */
16422 #define RCC_AHB2SMENR1_PKASMEN_Pos          (19U)
16423 #define RCC_AHB2SMENR1_PKASMEN_Msk          (0x1UL << RCC_AHB2SMENR1_PKASMEN_Pos)    /*!< 0x00080000 */
16424 #define RCC_AHB2SMENR1_PKASMEN              RCC_AHB2SMENR1_PKASMEN_Msk               /*!< PKA Clocks Enable During Sleep and Stop Modes */
16425 #define RCC_AHB2SMENR1_SAESSMEN_Pos         (20U)
16426 #define RCC_AHB2SMENR1_SAESSMEN_Msk         (0x1UL << RCC_AHB2SMENR1_SAESSMEN_Pos)   /*!< 0x00100000 */
16427 #define RCC_AHB2SMENR1_SAESSMEN              RCC_AHB2SMENR1_SAESSMEN_Msk              /*!< SAES Clocks Enable During Sleep and Stop Modes */
16428 #define RCC_AHB2SMENR1_OCTOSPIMSMEN_Pos     (21U)
16429 #define RCC_AHB2SMENR1_OCTOSPIMSMEN_Msk     (0x1UL << RCC_AHB2SMENR1_OCTOSPIMSMEN_Pos)  /*!< 0x00200000 */
16430 #define RCC_AHB2SMENR1_OCTOSPIMSMEN         RCC_AHB2SMENR1_OCTOSPIMSMEN_Msk             /*!< OCTOSPIM Clocks Enable During Sleep and Stop Modes */
16431 #define RCC_AHB2SMENR1_OTFDEC1SMEN_Pos      (23U)
16432 #define RCC_AHB2SMENR1_OTFDEC1SMEN_Msk      (0x1UL << RCC_AHB2SMENR1_OTFDEC1SMEN_Pos) /*!< 0x00800000 */
16433 #define RCC_AHB2SMENR1_OTFDEC1SMEN          RCC_AHB2SMENR1_OTFDEC1SMEN_Msk            /*!< OTFDEC1 Clocks Enable During Sleep and Stop Modes */
16434 #define RCC_AHB2SMENR1_OTFDEC2SMEN_Pos      (24U)
16435 #define RCC_AHB2SMENR1_OTFDEC2SMEN_Msk      (0x1UL << RCC_AHB2SMENR1_OTFDEC2SMEN_Pos) /*!< 0x01000000 */
16436 #define RCC_AHB2SMENR1_OTFDEC2SMEN          RCC_AHB2SMENR1_OTFDEC2SMEN_Msk            /*!< OTFDEC2 Clocks Enable During Sleep and Stop Modes */
16437 #define RCC_AHB2SMENR1_SDMMC1SMEN_Pos       (27U)
16438 #define RCC_AHB2SMENR1_SDMMC1SMEN_Msk       (0x1UL << RCC_AHB2SMENR1_SDMMC1SMEN_Pos) /*!< 0x08000000 */
16439 #define RCC_AHB2SMENR1_SDMMC1SMEN           RCC_AHB2SMENR1_SDMMC1SMEN_Msk            /*!< SDMMC1 Clocks Enable During Sleep and Stop Modes */
16440 #define RCC_AHB2SMENR1_SDMMC2SMEN_Pos       (28U)
16441 #define RCC_AHB2SMENR1_SDMMC2SMEN_Msk       (0x1UL << RCC_AHB2SMENR1_SDMMC2SMEN_Pos) /*!< 0x10000000 */
16442 #define RCC_AHB2SMENR1_SDMMC2SMEN           RCC_AHB2SMENR1_SDMMC2SMEN_Msk            /*!< SDMMC2 Clocks Enable During Sleep and Stop Modes */
16443 #define RCC_AHB2SMENR1_SRAM2SMEN_Pos        (30U)
16444 #define RCC_AHB2SMENR1_SRAM2SMEN_Msk        (0x1UL << RCC_AHB2SMENR1_SRAM2SMEN_Pos)  /*!< 0x40000000 */
16445 #define RCC_AHB2SMENR1_SRAM2SMEN            RCC_AHB2SMENR1_SRAM2SMEN_Msk             /*!< SRAM2 Clocks Enable During Sleep and Stop Modes */
16446 #define RCC_AHB2SMENR1_SRAM3SMEN_Pos        (31U)
16447 #define RCC_AHB2SMENR1_SRAM3SMEN_Msk        (0x1UL << RCC_AHB2SMENR1_SRAM3SMEN_Pos)  /*!< 0x80000000 */
16448 #define RCC_AHB2SMENR1_SRAM3SMEN            RCC_AHB2SMENR1_SRAM3SMEN_Msk             /*!< SRAM3 Clocks Enable During Sleep and Stop Modes */
16449 
16450 /********************  Bit definition for RCC_AHB2SMENR2 register  **************/
16451 #define RCC_AHB2SMENR2_FSMCSMEN_Pos         (0U)
16452 #define RCC_AHB2SMENR2_FSMCSMEN_Msk         (0x1UL << RCC_AHB2SMENR2_FSMCSMEN_Pos)      /*!< 0x00000001 */
16453 #define RCC_AHB2SMENR2_FSMCSMEN             RCC_AHB2SMENR2_FSMCSMEN_Msk                 /*!< FSMC Clocks Enable During Sleep and Stop Modes */
16454 #define RCC_AHB2SMENR2_OCTOSPI1SMEN_Pos     (4U)
16455 #define RCC_AHB2SMENR2_OCTOSPI1SMEN_Msk     (0x1UL << RCC_AHB2SMENR2_OCTOSPI1SMEN_Pos)  /*!< 0x00000010 */
16456 #define RCC_AHB2SMENR2_OCTOSPI1SMEN         RCC_AHB2SMENR2_OCTOSPI1SMEN_Msk             /*!< OCTOSPI1 Clocks Enable During Sleep and Stop Modes */
16457 #define RCC_AHB2SMENR2_OCTOSPI2SMEN_Pos     (8U)
16458 #define RCC_AHB2SMENR2_OCTOSPI2SMEN_Msk     (0x1UL << RCC_AHB2SMENR2_OCTOSPI2SMEN_Pos)  /*!< 0x00000100 */
16459 #define RCC_AHB2SMENR2_OCTOSPI2SMEN         RCC_AHB2SMENR2_OCTOSPI2SMEN_Msk             /*!< OCTOSPI2 Clocks Enable During Sleep and Stop Modes */
16460 
16461 /********************  Bit definition for RCC_AHB3SMENR register  **************/
16462 #define RCC_AHB3SMENR_LPGPIO1SMEN_Pos       (0U)
16463 #define RCC_AHB3SMENR_LPGPIO1SMEN_Msk       (0x1UL << RCC_AHB3SMENR_LPGPIO1SMEN_Pos) /*!< 0x00000001 */
16464 #define RCC_AHB3SMENR_LPGPIO1SMEN           RCC_AHB3SMENR_LPGPIO1SMEN_Msk            /*!< LPGPIO1 Clocks Enable During Sleep and Stop Modes */
16465 #define RCC_AHB3SMENR_PWRSMEN_Pos           (2U)
16466 #define RCC_AHB3SMENR_PWRSMEN_Msk           (0x1UL << RCC_AHB3SMENR_PWRSMEN_Pos)     /*!< 0x00000004 */
16467 #define RCC_AHB3SMENR_PWRSMEN               RCC_AHB3SMENR_PWRSMEN_Msk                /*!< PWR Clocks Enable During Sleep and Stop Modes */
16468 #define RCC_AHB3SMENR_ADC4SMEN_Pos          (5U)
16469 #define RCC_AHB3SMENR_ADC4SMEN_Msk          (0x1UL << RCC_AHB3SMENR_ADC4SMEN_Pos)    /*!< 0x00000040 */
16470 #define RCC_AHB3SMENR_ADC4SMEN              RCC_AHB3SMENR_ADC4SMEN_Msk               /*!< ADC4 Clocks Enable During Sleep and Stop Modes */
16471 #define RCC_AHB3SMENR_DAC1SMEN_Pos          (6U)
16472 #define RCC_AHB3SMENR_DAC1SMEN_Msk          (0x1UL << RCC_AHB3SMENR_DAC1SMEN_Pos)    /*!< 0x00000040 */
16473 #define RCC_AHB3SMENR_DAC1SMEN              RCC_AHB3SMENR_DAC1SMEN_Msk               /*!< DAC1 Clocks Enable During Sleep and Stop Modes */
16474 #define RCC_AHB3SMENR_LPDMA1SMEN_Pos        (9U)
16475 #define RCC_AHB3SMENR_LPDMA1SMEN_Msk        (0x1UL << RCC_AHB3SMENR_LPDMA1SMEN_Pos)  /*!< 0x000000080 */
16476 #define RCC_AHB3SMENR_LPDMA1SMEN            RCC_AHB3SMENR_LPDMA1SMEN_Msk             /*!< LPDMA1 Clocks Enable During Sleep and Stop Modes */
16477 #define RCC_AHB3SMENR_ADF1SMEN_Pos          (10U)
16478 #define RCC_AHB3SMENR_ADF1SMEN_Msk          (0x1UL << RCC_AHB3SMENR_ADF1SMEN_Pos)    /*!< 0x000000400 */
16479 #define RCC_AHB3SMENR_ADF1SMEN              RCC_AHB3SMENR_ADF1SMEN_Msk               /*!< ADF1 Clocks Enable During Sleep and Stop Modes */
16480 #define RCC_AHB3SMENR_GTZC2SMEN_Pos         (12U)
16481 #define RCC_AHB3SMENR_GTZC2SMEN_Msk         (0x1UL << RCC_AHB3SMENR_GTZC2SMEN_Pos)   /*!< 0x000001000 */
16482 #define RCC_AHB3SMENR_GTZC2SMEN             RCC_AHB3SMENR_GTZC2SMEN_Msk              /*!< GTZC2 Clocks Enable During Sleep and Stop Modes */
16483 #define RCC_AHB3SMENR_SRAM4SMEN_Pos         (31U)
16484 #define RCC_AHB3SMENR_SRAM4SMEN_Msk         (0x1UL << RCC_AHB3SMENR_SRAM4SMEN_Pos)   /*!< 0x800000000 */
16485 #define RCC_AHB3SMENR_SRAM4SMEN             RCC_AHB3SMENR_SRAM4SMEN_Msk              /*!< SRAM4 Clocks Enable During Sleep and Stop Modes */
16486 
16487 /********************  Bit definition for RCC_APB1SMENR1 register  **************/
16488 #define RCC_APB1SMENR1_TIM2SMEN_Pos         (0U)
16489 #define RCC_APB1SMENR1_TIM2SMEN_Msk         (0x1UL << RCC_APB1SMENR1_TIM2SMEN_Pos)  /*!< 0x00000001 */
16490 #define RCC_APB1SMENR1_TIM2SMEN             RCC_APB1SMENR1_TIM2SMEN_Msk             /*!< TIM2 Clocks Enable During Sleep and Stop Modes */
16491 #define RCC_APB1SMENR1_TIM3SMEN_Pos         (1U)
16492 #define RCC_APB1SMENR1_TIM3SMEN_Msk         (0x1UL << RCC_APB1SMENR1_TIM3SMEN_Pos)  /*!< 0x00000002 */
16493 #define RCC_APB1SMENR1_TIM3SMEN             RCC_APB1SMENR1_TIM3SMEN_Msk             /*!< TIM3 Clocks Enable During Sleep and Stop Modes */
16494 #define RCC_APB1SMENR1_TIM4SMEN_Pos         (2U)
16495 #define RCC_APB1SMENR1_TIM4SMEN_Msk         (0x1UL << RCC_APB1SMENR1_TIM4SMEN_Pos)  /*!< 0x00000004 */
16496 #define RCC_APB1SMENR1_TIM4SMEN             RCC_APB1SMENR1_TIM4SMEN_Msk             /*!< TIM4 Clocks Enable During Sleep and Stop Modes */
16497 #define RCC_APB1SMENR1_TIM5SMEN_Pos         (3U)
16498 #define RCC_APB1SMENR1_TIM5SMEN_Msk         (0x1UL << RCC_APB1SMENR1_TIM5SMEN_Pos)  /*!< 0x00000008 */
16499 #define RCC_APB1SMENR1_TIM5SMEN             RCC_APB1SMENR1_TIM5SMEN_Msk             /*!< TIM5 Clocks Enable During Sleep and Stop Modes */
16500 #define RCC_APB1SMENR1_TIM6SMEN_Pos         (4U)
16501 #define RCC_APB1SMENR1_TIM6SMEN_Msk         (0x1UL << RCC_APB1SMENR1_TIM6SMEN_Pos)  /*!< 0x00000010 */
16502 #define RCC_APB1SMENR1_TIM6SMEN             RCC_APB1SMENR1_TIM6SMEN_Msk             /*!< TIM6 Clocks Enable During Sleep and Stop Modes */
16503 #define RCC_APB1SMENR1_TIM7SMEN_Pos         (5U)
16504 #define RCC_APB1SMENR1_TIM7SMEN_Msk         (0x1UL << RCC_APB1SMENR1_TIM7SMEN_Pos)  /*!< 0x00000020 */
16505 #define RCC_APB1SMENR1_TIM7SMEN             RCC_APB1SMENR1_TIM7SMEN_Msk             /*!< TIM7 Clocks Enable During Sleep and Stop Modes */
16506 #define RCC_APB1SMENR1_WWDGSMEN_Pos         (11U)
16507 #define RCC_APB1SMENR1_WWDGSMEN_Msk         (0x1UL << RCC_APB1SMENR1_WWDGSMEN_Pos)  /*!< 0x00000800 */
16508 #define RCC_APB1SMENR1_WWDGSMEN             RCC_APB1SMENR1_WWDGSMEN_Msk             /*!< Window Watchdog Clocks Enable During Sleep and Stop Modes */
16509 #define RCC_APB1SMENR1_SPI2SMEN_Pos         (14U)
16510 #define RCC_APB1SMENR1_SPI2SMEN_Msk         (0x1UL << RCC_APB1SMENR1_SPI2SMEN_Pos)  /*!< 0x00004000 */
16511 #define RCC_APB1SMENR1_SPI2SMEN             RCC_APB1SMENR1_SPI2SMEN_Msk             /*!< SPI2 Clocks Enable During Sleep and Stop Modes */
16512 #define RCC_APB1SMENR1_USART2SMEN_Pos       (17U)
16513 #define RCC_APB1SMENR1_USART2SMEN_Msk       (0x1UL << RCC_APB1SMENR1_USART2SMEN_Pos) /*!< 0x00020000 */
16514 #define RCC_APB1SMENR1_USART2SMEN           RCC_APB1SMENR1_USART2SMEN_Msk            /*!< USART2 Clocks Enable During Sleep and Stop Modes */
16515 #define RCC_APB1SMENR1_USART3SMEN_Pos       (18U)
16516 #define RCC_APB1SMENR1_USART3SMEN_Msk       (0x1UL << RCC_APB1SMENR1_USART3SMEN_Pos) /*!< 0x00040000 */
16517 #define RCC_APB1SMENR1_USART3SMEN           RCC_APB1SMENR1_USART3SMEN_Msk            /*!< USART3 Clocks Enable During Sleep and Stop Modes */
16518 #define RCC_APB1SMENR1_UART4SMEN_Pos        (19U)
16519 #define RCC_APB1SMENR1_UART4SMEN_Msk        (0x1UL << RCC_APB1SMENR1_UART4SMEN_Pos) /*!< 0x00080000 */
16520 #define RCC_APB1SMENR1_UART4SMEN            RCC_APB1SMENR1_UART4SMEN_Msk            /*!< UART4 Clocks Enable During Sleep and Stop Modes */
16521 #define RCC_APB1SMENR1_UART5SMEN_Pos        (20U)
16522 #define RCC_APB1SMENR1_UART5SMEN_Msk        (0x1UL << RCC_APB1SMENR1_UART5SMEN_Pos) /*!< 0x00100000 */
16523 #define RCC_APB1SMENR1_UART5SMEN            RCC_APB1SMENR1_UART5SMEN_Msk            /*!< UART5 Clocks Enable During Sleep and Stop Modes */
16524 #define RCC_APB1SMENR1_I2C1SMEN_Pos         (21U)
16525 #define RCC_APB1SMENR1_I2C1SMEN_Msk         (0x1UL << RCC_APB1SMENR1_I2C1SMEN_Pos)  /*!< 0x00200000 */
16526 #define RCC_APB1SMENR1_I2C1SMEN             RCC_APB1SMENR1_I2C1SMEN_Msk             /*!< I2C1 Clocks Enable During Sleep and Stop Modes */
16527 #define RCC_APB1SMENR1_I2C2SMEN_Pos         (22U)
16528 #define RCC_APB1SMENR1_I2C2SMEN_Msk         (0x1UL << RCC_APB1SMENR1_I2C2SMEN_Pos)  /*!< 0x00400000 */
16529 #define RCC_APB1SMENR1_I2C2SMEN             RCC_APB1SMENR1_I2C2SMEN_Msk             /*!< I2C2 Clocks Enable During Sleep and Stop Modes */
16530 #define RCC_APB1SMENR1_CRSSMEN_Pos          (24U)
16531 #define RCC_APB1SMENR1_CRSSMEN_Msk          (0x1UL << RCC_APB1SMENR1_CRSSMEN_Pos)   /*!< 0x01000000 */
16532 #define RCC_APB1SMENR1_CRSSMEN              RCC_APB1SMENR1_CRSSMEN_Msk              /*!< CRS Clocks Enable During Sleep and Stop Modes */
16533 
16534 /********************  Bit definition for RCC_APB1SMENR2 register  **************/
16535 #define RCC_APB1SMENR2_I2C4SMEN_Pos         (1U)
16536 #define RCC_APB1SMENR2_I2C4SMEN_Msk         (0x1UL << RCC_APB1SMENR2_I2C4SMEN_Pos)   /*!< 0x00000002 */
16537 #define RCC_APB1SMENR2_I2C4SMEN             RCC_APB1SMENR2_I2C4SMEN_Msk              /*!< I2C4 Clocks Enable During Sleep and Stop Modes */
16538 #define RCC_APB1SMENR2_LPTIM2SMEN_Pos       (5U)
16539 #define RCC_APB1SMENR2_LPTIM2SMEN_Msk       (0x1UL << RCC_APB1SMENR2_LPTIM2SMEN_Pos) /*!< 0x00000020 */
16540 #define RCC_APB1SMENR2_LPTIM2SMEN           RCC_APB1SMENR2_LPTIM2SMEN_Msk            /*!< LPTIM2 Clocks Enable During Sleep and Stop Modes */
16541 #define RCC_APB1SMENR2_FDCAN1SMEN_Pos       (9U)
16542 #define RCC_APB1SMENR2_FDCAN1SMEN_Msk       (0x1UL << RCC_APB1SMENR2_FDCAN1SMEN_Pos) /*!< 0x00000200 */
16543 #define RCC_APB1SMENR2_FDCAN1SMEN           RCC_APB1SMENR2_FDCAN1SMEN_Msk            /*!< FDCAN1 Clocks Enable During Sleep and Stop Modes */
16544 #define RCC_APB1SMENR2_UCPD1SMEN_Pos        (23U)
16545 #define RCC_APB1SMENR2_UCPD1SMEN_Msk        (0x1UL << RCC_APB1SMENR2_UCPD1SMEN_Pos)  /*!< 0x00800000 */
16546 #define RCC_APB1SMENR2_UCPD1SMEN            RCC_APB1SMENR2_UCPD1SMEN_Msk             /*!< UCPD1 Clocks Enable During Sleep and Stop Modes */
16547 
16548 /********************  Bit definition for RCC_APB2SMENR register  **************/
16549 #define RCC_APB2SMENR_TIM1SMEN_Pos          (11U)
16550 #define RCC_APB2SMENR_TIM1SMEN_Msk          (0x1UL << RCC_APB2SMENR_TIM1SMEN_Pos)   /*!< 0x00000800 */
16551 #define RCC_APB2SMENR_TIM1SMEN              RCC_APB2SMENR_TIM1SMEN_Msk              /*!< TIM1 Clocks Enable During Sleep and Stop Modes */
16552 #define RCC_APB2SMENR_SPI1SMEN_Pos          (12U)
16553 #define RCC_APB2SMENR_SPI1SMEN_Msk          (0x1UL << RCC_APB2SMENR_SPI1SMEN_Pos)   /*!< 0x00001000 */
16554 #define RCC_APB2SMENR_SPI1SMEN              RCC_APB2SMENR_SPI1SMEN_Msk              /*!< SPI1 Clocks Enable During Sleep and Stop Modes */
16555 #define RCC_APB2SMENR_TIM8SMEN_Pos          (13U)
16556 #define RCC_APB2SMENR_TIM8SMEN_Msk          (0x1UL << RCC_APB2SMENR_TIM8SMEN_Pos)   /*!< 0x00002000 */
16557 #define RCC_APB2SMENR_TIM8SMEN              RCC_APB2SMENR_TIM8SMEN_Msk              /*!< TIM8 Clocks Enable During Sleep and Stop Modes */
16558 #define RCC_APB2SMENR_USART1SMEN_Pos        (14U)
16559 #define RCC_APB2SMENR_USART1SMEN_Msk        (0x1UL << RCC_APB2SMENR_USART1SMEN_Pos) /*!< 0x00004000 */
16560 #define RCC_APB2SMENR_USART1SMEN            RCC_APB2SMENR_USART1SMEN_Msk            /*!< USART1 Clocks Enable During Sleep and Stop Modes */
16561 #define RCC_APB2SMENR_TIM15SMEN_Pos         (16U)
16562 #define RCC_APB2SMENR_TIM15SMEN_Msk         (0x1UL << RCC_APB2SMENR_TIM15SMEN_Pos)  /*!< 0x00010000 */
16563 #define RCC_APB2SMENR_TIM15SMEN             RCC_APB2SMENR_TIM15SMEN_Msk             /*!< TIM15 Clocks Enable During Sleep and Stop Modes */
16564 #define RCC_APB2SMENR_TIM16SMEN_Pos         (17U)
16565 #define RCC_APB2SMENR_TIM16SMEN_Msk         (0x1UL << RCC_APB2SMENR_TIM16SMEN_Pos)  /*!< 0x00020000 */
16566 #define RCC_APB2SMENR_TIM16SMEN             RCC_APB2SMENR_TIM16SMEN_Msk             /*!< TIM16 Clocks Enable During Sleep and Stop Modes */
16567 #define RCC_APB2SMENR_TIM17SMEN_Pos         (18U)
16568 #define RCC_APB2SMENR_TIM17SMEN_Msk         (0x1UL << RCC_APB2SMENR_TIM17SMEN_Pos)  /*!< 0x00040000 */
16569 #define RCC_APB2SMENR_TIM17SMEN             RCC_APB2SMENR_TIM17SMEN_Msk             /*!< TIM17 Clocks Enable During Sleep and Stop Modes */
16570 #define RCC_APB2SMENR_SAI1SMEN_Pos          (21U)
16571 #define RCC_APB2SMENR_SAI1SMEN_Msk          (0x1UL << RCC_APB2SMENR_SAI1SMEN_Pos)   /*!< 0x00200000 */
16572 #define RCC_APB2SMENR_SAI1SMEN              RCC_APB2SMENR_SAI1SMEN_Msk              /*!< SAI1 Clocks Enable During Sleep and Stop Modes */
16573 #define RCC_APB2SMENR_SAI2SMEN_Pos          (22U)
16574 #define RCC_APB2SMENR_SAI2SMEN_Msk          (0x1UL << RCC_APB2SMENR_SAI2SMEN_Pos)   /*!< 0x00400000 */
16575 #define RCC_APB2SMENR_SAI2SMEN              RCC_APB2SMENR_SAI2SMEN_Msk              /*!< SAI2 Clocks Enable During Sleep and Stop Modes */
16576 
16577 /********************  Bit definition for RCC_APB3SMENR register  **************/
16578 #define RCC_APB3SMENR_SYSCFGSMEN_Pos        (1U)
16579 #define RCC_APB3SMENR_SYSCFGSMEN_Msk        (0x1UL << RCC_APB3SMENR_SYSCFGSMEN_Pos) /*!< 0x00000001 */
16580 #define RCC_APB3SMENR_SYSCFGSMEN            RCC_APB3SMENR_SYSCFGSMEN_Msk            /*!< SYSCFG Clocks Enable During Sleep and Stop Modes */
16581 #define RCC_APB3SMENR_SPI3SMEN_Pos          (5U)
16582 #define RCC_APB3SMENR_SPI3SMEN_Msk          (0x1UL << RCC_APB3SMENR_SPI3SMEN_Pos)   /*!< 0x00000010 */
16583 #define RCC_APB3SMENR_SPI3SMEN              RCC_APB3SMENR_SPI3SMEN_Msk              /*!< SPI3 Clocks Enable During Sleep and Stop Modes */
16584 #define RCC_APB3SMENR_LPUART1SMEN_Pos       (6U)
16585 #define RCC_APB3SMENR_LPUART1SMEN_Msk       (0x1UL << RCC_APB3SMENR_LPUART1SMEN_Pos) /*!< 0x00000040 */
16586 #define RCC_APB3SMENR_LPUART1SMEN           RCC_APB3SMENR_LPUART1SMEN_Msk            /*!< LPUART1 Clocks Enable During Sleep and Stop Modes */
16587 #define RCC_APB3SMENR_I2C3SMEN_Pos          (7U)
16588 #define RCC_APB3SMENR_I2C3SMEN_Msk          (0x1UL << RCC_APB3SMENR_I2C3SMEN_Pos)   /*!< 0x000000080 */
16589 #define RCC_APB3SMENR_I2C3SMEN              RCC_APB3SMENR_I2C3SMEN_Msk              /*!< I2C3 Clocks Enable During Sleep and Stop Modes */
16590 #define RCC_APB3SMENR_LPTIM1SMEN_Pos        (11U)
16591 #define RCC_APB3SMENR_LPTIM1SMEN_Msk        (0x1UL << RCC_APB3SMENR_LPTIM1SMEN_Pos) /*!< 0x000000800 */
16592 #define RCC_APB3SMENR_LPTIM1SMEN            RCC_APB3SMENR_LPTIM1SMEN_Msk            /*!< LPTIM1 Clocks Enable During Sleep and Stop Modes */
16593 #define RCC_APB3SMENR_LPTIM3SMEN_Pos        (12U)
16594 #define RCC_APB3SMENR_LPTIM3SMEN_Msk        (0x1UL << RCC_APB3SMENR_LPTIM3SMEN_Pos) /*!< 0x000001000 */
16595 #define RCC_APB3SMENR_LPTIM3SMEN            RCC_APB3SMENR_LPTIM3SMEN_Msk            /*!< LPTIM3 Clocks Enable During Sleep and Stop Modes */
16596 #define RCC_APB3SMENR_LPTIM4SMEN_Pos        (13U)
16597 #define RCC_APB3SMENR_LPTIM4SMEN_Msk        (0x1UL << RCC_APB3SMENR_LPTIM4SMEN_Pos) /*!< 0x0000002000*/
16598 #define RCC_APB3SMENR_LPTIM4SMEN            RCC_APB3SMENR_LPTIM4SMEN_Msk            /*!< LPTIM4 Clocks Enable During Sleep and Stop Modes */
16599 #define RCC_APB3SMENR_OPAMPSMEN_Pos         (14U)
16600 #define RCC_APB3SMENR_OPAMPSMEN_Msk         (0x1UL << RCC_APB3SMENR_OPAMPSMEN_Pos)  /*!< 0x000004000 */
16601 #define RCC_APB3SMENR_OPAMPSMEN             RCC_APB3SMENR_OPAMPSMEN_Msk             /*!< OPAMP Clocks Enable During Sleep and Stop Modes */
16602 #define RCC_APB3SMENR_COMPSMEN_Pos          (15U)
16603 #define RCC_APB3SMENR_COMPSMEN_Msk          (0x1UL << RCC_APB3SMENR_COMPSMEN_Pos)   /*!< 0x000004000 */
16604 #define RCC_APB3SMENR_COMPSMEN              RCC_APB3SMENR_COMPSMEN_Msk              /*!< COMP Clocks Enable During Sleep and Stop Modes */
16605 #define RCC_APB3SMENR_VREFSMEN_Pos          (20U)
16606 #define RCC_APB3SMENR_VREFSMEN_Msk          (0x1UL << RCC_APB3SMENR_VREFSMEN_Pos)   /*!< 0x000100000 */
16607 #define RCC_APB3SMENR_VREFSMEN              RCC_APB3SMENR_VREFSMEN_Msk              /*!< VREFBUF Clocks Enable During Sleep and Stop Modes */
16608 #define RCC_APB3SMENR_RTCAPBSMEN_Pos        (21U)
16609 #define RCC_APB3SMENR_RTCAPBSMEN_Msk        (0x1UL << RCC_APB3SMENR_RTCAPBSMEN_Pos) /*!< 0x000100000 */
16610 #define RCC_APB3SMENR_RTCAPBSMEN            RCC_APB3SMENR_RTCAPBSMEN_Msk            /*!< RTC APB Clocks Enable During Sleep and Stop Modes */
16611 
16612 /********************  Bit definition for RCC_SRDAMR register  ********************/
16613 #define RCC_SRDAMR_SPI3AMEN_Pos             (5U)
16614 #define RCC_SRDAMR_SPI3AMEN_Msk             (0x1UL << RCC_SRDAMR_SPI3AMEN_Pos)      /*!< 0x00000020 */
16615 #define RCC_SRDAMR_SPI3AMEN                 RCC_SRDAMR_SPI3AMEN_Msk                 /*!< SPI3 Autonomous Mode Enable in Stop 0,1,2 Mode */
16616 #define RCC_SRDAMR_LPUART1AMEN_Pos          (6U)
16617 #define RCC_SRDAMR_LPUART1AMEN_Msk          (0x1UL << RCC_SRDAMR_LPUART1AMEN_Pos)   /*!< 0x00000040 */
16618 #define RCC_SRDAMR_LPUART1AMEN              RCC_SRDAMR_LPUART1AMEN_Msk              /*!< LPUART1 Autonomous Mode Enable in Stop 0,1,2 Mode */
16619 #define RCC_SRDAMR_I2C3AMEN_Pos             (7U)
16620 #define RCC_SRDAMR_I2C3AMEN_Msk             (0x1UL << RCC_SRDAMR_I2C3AMEN_Pos)      /*!< 0x00000080 */
16621 #define RCC_SRDAMR_I2C3AMEN                 RCC_SRDAMR_I2C3AMEN_Msk                 /*!< I2C3 Autonomous Mode Enable in Stop 0,1,2 Mode */
16622 #define RCC_SRDAMR_LPTIM1AMEN_Pos           (11U)
16623 #define RCC_SRDAMR_LPTIM1AMEN_Msk           (0x1UL << RCC_SRDAMR_LPTIM1AMEN_Pos)    /*!< 0x00000800 */
16624 #define RCC_SRDAMR_LPTIM1AMEN               RCC_SRDAMR_LPTIM1AMEN_Msk               /*!< LPTIM1 Autonomous Mode Enable in Stop 0,1,2 Mode */
16625 #define RCC_SRDAMR_LPTIM3AMEN_Pos           (12U)
16626 #define RCC_SRDAMR_LPTIM3AMEN_Msk           (0x1UL << RCC_SRDAMR_LPTIM3AMEN_Pos)    /*!< 0x00001000 */
16627 #define RCC_SRDAMR_LPTIM3AMEN               RCC_SRDAMR_LPTIM3AMEN_Msk               /*!< LPTIM3 Autonomous Mode Enable in Stop 0,1,2 Mode */
16628 #define RCC_SRDAMR_LPTIM4AMEN_Pos           (13U)
16629 #define RCC_SRDAMR_LPTIM4AMEN_Msk           (0x1UL << RCC_SRDAMR_LPTIM4AMEN_Pos)    /*!< 0x00002000 */
16630 #define RCC_SRDAMR_LPTIM4AMEN               RCC_SRDAMR_LPTIM4AMEN_Msk               /*!< LPTIM4 Autonomous Mode Enable in Stop 0,1,2 Mode */
16631 #define RCC_SRDAMR_OPAMPAMEN_Pos            (14U)
16632 #define RCC_SRDAMR_OPAMPAMEN_Msk            (0x1UL << RCC_SRDAMR_OPAMPAMEN_Pos)     /*!< 0x00004000 */
16633 #define RCC_SRDAMR_OPAMPAMEN                RCC_SRDAMR_OPAMPAMEN_Msk                /*!< OPAMP Autonomous Mode Enable in Stop 0,1,2 Mode */
16634 #define RCC_SRDAMR_COMPAMEN_Pos             (15U)
16635 #define RCC_SRDAMR_COMPAMEN_Msk             (0x1UL << RCC_SRDAMR_COMPAMEN_Pos)      /*!< 0x00008000 */
16636 #define RCC_SRDAMR_COMPAMEN                 RCC_SRDAMR_COMPAMEN_Msk                 /*!< COMP Autonomous Mode Enable in Stop 0,1,2 Mode */
16637 #define RCC_SRDAMR_VREFAMEN_Pos             (20U)
16638 #define RCC_SRDAMR_VREFAMEN_Msk             (0x1UL << RCC_SRDAMR_VREFAMEN_Pos)      /*!< 0x00100000 */
16639 #define RCC_SRDAMR_VREFAMEN                 RCC_SRDAMR_VREFAMEN_Msk                 /*!< VREFBUF Autonomous Mode Enable in Stop 0,1,2 Mode */
16640 #define RCC_SRDAMR_RTCAPBAMEN_Pos           (21U)
16641 #define RCC_SRDAMR_RTCAPBAMEN_Msk           (0x1UL << RCC_SRDAMR_RTCAPBAMEN_Pos)    /*!< 0x00200000 */
16642 #define RCC_SRDAMR_RTCAPBAMEN               RCC_SRDAMR_RTCAPBAMEN_Msk               /*!< RTC Autonomous Mode Enable in Stop 0,1,2 Mode */
16643 #define RCC_SRDAMR_ADC4AMEN_Pos             (25U)
16644 #define RCC_SRDAMR_ADC4AMEN_Msk             (0x1UL << RCC_SRDAMR_ADC4AMEN_Pos)      /*!< 0x02000000 */
16645 #define RCC_SRDAMR_ADC4AMEN                 RCC_SRDAMR_ADC4AMEN_Msk                 /*!< ADC4 Autonomous Mode Enable in Stop 0,1,2 Mode */
16646 #define RCC_SRDAMR_LPGPIO1AMEN_Pos          (26U)
16647 #define RCC_SRDAMR_LPGPIO1AMEN_Msk          (0x1UL << RCC_SRDAMR_LPGPIO1AMEN_Pos)   /*!< 0x04000000 */
16648 #define RCC_SRDAMR_LPGPIO1AMEN              RCC_SRDAMR_LPGPIO1AMEN_Msk              /*!< LPGPIO1 Autonomous Mode Enable in Stop 0,1,2 Mode */
16649 #define RCC_SRDAMR_DAC1AMEN_Pos             (27U)
16650 #define RCC_SRDAMR_DAC1AMEN_Msk             (0x1UL << RCC_SRDAMR_DAC1AMEN_Pos)      /*!< 0x08000000 */
16651 #define RCC_SRDAMR_DAC1AMEN                 RCC_SRDAMR_DAC1AMEN_Msk                 /*!< DAC1 Autonomous Mode Enable in Stop 0,1,2 Mode */
16652 #define RCC_SRDAMR_LPDMA1AMEN_Pos           (28U)
16653 #define RCC_SRDAMR_LPDMA1AMEN_Msk           (0x1UL << RCC_SRDAMR_LPDMA1AMEN_Pos)    /*!< 0x10000000 */
16654 #define RCC_SRDAMR_LPDMA1AMEN               RCC_SRDAMR_LPDMA1AMEN_Msk               /*!< LPDMA1 Autonomous Mode Enable in Stop 0,1,2 Mode */
16655 #define RCC_SRDAMR_ADF1AMEN_Pos             (29U)
16656 #define RCC_SRDAMR_ADF1AMEN_Msk             (0x1UL << RCC_SRDAMR_ADF1AMEN_Pos)      /*!< 0x20000000 */
16657 #define RCC_SRDAMR_ADF1AMEN                 RCC_SRDAMR_ADF1AMEN_Msk                 /*!< ADF1 Autonomous Mode Enable in Stop 0,1,2 Mode */
16658 #define RCC_SRDAMR_SRAM4AMEN_Pos            (31U)
16659 #define RCC_SRDAMR_SRAM4AMEN_Msk            (0x1UL << RCC_SRDAMR_SRAM4AMEN_Pos)     /*!< 0x80000000 */
16660 #define RCC_SRDAMR_SRAM4AMEN                RCC_SRDAMR_SRAM4AMEN_Msk                /*!< SRAM4 Autonomous Mode Enable in Stop 0,1,2 Mode */
16661 
16662 /********************  Bit definition for RCC_CCIPR1 register  ******************/
16663 #define RCC_CCIPR1_USART1SEL_Pos            (0U)
16664 #define RCC_CCIPR1_USART1SEL_Msk            (0x3UL << RCC_CCIPR1_USART1SEL_Pos)     /*!< 0x00000003 */
16665 #define RCC_CCIPR1_USART1SEL                RCC_CCIPR1_USART1SEL_Msk                /*!< USART1SEL[1:0]: bits (USART1 Kernel Clock Source Selection) */
16666 #define RCC_CCIPR1_USART1SEL_0              (0x1UL << RCC_CCIPR1_USART1SEL_Pos)     /*!< 0x00000001 */
16667 #define RCC_CCIPR1_USART1SEL_1              (0x2UL << RCC_CCIPR1_USART1SEL_Pos)     /*!< 0x00000002 */
16668 #define RCC_CCIPR1_USART2SEL_Pos            (2U)
16669 #define RCC_CCIPR1_USART2SEL_Msk            (0x3UL << RCC_CCIPR1_USART2SEL_Pos)     /*!< 0x0000000C */
16670 #define RCC_CCIPR1_USART2SEL                RCC_CCIPR1_USART2SEL_Msk                /*!< USART2SEL[1:0]: bits (USART2 Kernel Clock Source Selection) */
16671 #define RCC_CCIPR1_USART2SEL_0              (0x1UL << RCC_CCIPR1_USART2SEL_Pos)     /*!< 0x00000004 */
16672 #define RCC_CCIPR1_USART2SEL_1              (0x2UL << RCC_CCIPR1_USART2SEL_Pos)     /*!< 0x00000008 */
16673 #define RCC_CCIPR1_USART3SEL_Pos            (4U)
16674 #define RCC_CCIPR1_USART3SEL_Msk            (0x3UL << RCC_CCIPR1_USART3SEL_Pos)     /*!< 0x00000030 */
16675 #define RCC_CCIPR1_USART3SEL                RCC_CCIPR1_USART3SEL_Msk                /*!< USART3SEL[1:0]: bits (USART3 Kernel Clock Source Selection) */
16676 #define RCC_CCIPR1_USART3SEL_0              (0x1UL << RCC_CCIPR1_USART3SEL_Pos)     /*!< 0x00000010 */
16677 #define RCC_CCIPR1_USART3SEL_1              (0x2UL << RCC_CCIPR1_USART3SEL_Pos)     /*!< 0x00000020 */
16678 #define RCC_CCIPR1_UART4SEL_Pos             (6U)
16679 #define RCC_CCIPR1_UART4SEL_Msk             (0x3UL << RCC_CCIPR1_UART4SEL_Pos)      /*!< 0x000000C0 */
16680 #define RCC_CCIPR1_UART4SEL                 RCC_CCIPR1_UART4SEL_Msk                 /*!< UART4SEL[1:0]: bits (UART4 Kernel Clock Source Selection) */
16681 #define RCC_CCIPR1_UART4SEL_0               (0x1UL << RCC_CCIPR1_UART4SEL_Pos)      /*!< 0x00000040 */
16682 #define RCC_CCIPR1_UART4SEL_1               (0x2UL << RCC_CCIPR1_UART4SEL_Pos)      /*!< 0x00000080 */
16683 #define RCC_CCIPR1_UART5SEL_Pos             (8U)
16684 #define RCC_CCIPR1_UART5SEL_Msk             (0x3UL << RCC_CCIPR1_UART5SEL_Pos)      /*!< 0x00000300 */
16685 #define RCC_CCIPR1_UART5SEL                 RCC_CCIPR1_UART5SEL_Msk                 /*!< UART5SEL[1:0]: bits (UART5 Kernel Clock Source Selection) */
16686 #define RCC_CCIPR1_UART5SEL_0               (0x1UL << RCC_CCIPR1_UART5SEL_Pos)      /*!< 0x00000100 */
16687 #define RCC_CCIPR1_UART5SEL_1               (0x2UL << RCC_CCIPR1_UART5SEL_Pos)      /*!< 0x00000200 */
16688 #define RCC_CCIPR1_I2C1SEL_Pos              (10U)
16689 #define RCC_CCIPR1_I2C1SEL_Msk              (0x3UL << RCC_CCIPR1_I2C1SEL_Pos)       /*!< 0x00000C00 */
16690 #define RCC_CCIPR1_I2C1SEL                  RCC_CCIPR1_I2C1SEL_Msk                  /*!< I2C1SEL[1:0]: bits (I2C1 Kernel Clock Source Selection) */
16691 #define RCC_CCIPR1_I2C1SEL_0                (0x1UL << RCC_CCIPR1_I2C1SEL_Pos)       /*!< 0x00000400 */
16692 #define RCC_CCIPR1_I2C1SEL_1                (0x2UL << RCC_CCIPR1_I2C1SEL_Pos)       /*!< 0x00000800 */
16693 #define RCC_CCIPR1_I2C2SEL_Pos              (12U)
16694 #define RCC_CCIPR1_I2C2SEL_Msk              (0x3UL << RCC_CCIPR1_I2C2SEL_Pos)       /*!< 0x00003000 */
16695 #define RCC_CCIPR1_I2C2SEL                  RCC_CCIPR1_I2C2SEL_Msk                  /*!< I2C2SEL[1:0]: bits (I2C2 Kernel Clock Source Selection) */
16696 #define RCC_CCIPR1_I2C2SEL_0                (0x1UL << RCC_CCIPR1_I2C2SEL_Pos)       /*!< 0x00001000 */
16697 #define RCC_CCIPR1_I2C2SEL_1                (0x2UL << RCC_CCIPR1_I2C2SEL_Pos)       /*!< 0x00002000 */
16698 #define RCC_CCIPR1_I2C4SEL_Pos              (14U)
16699 #define RCC_CCIPR1_I2C4SEL_Msk              (0x3UL << RCC_CCIPR1_I2C4SEL_Pos)       /*!< 0x0000C000 */
16700 #define RCC_CCIPR1_I2C4SEL                  RCC_CCIPR1_I2C4SEL_Msk                  /*!< I2C4SEL[1:0]: bits (I2C4 Kernel Clock Source Selection) */
16701 #define RCC_CCIPR1_I2C4SEL_0                (0x1UL << RCC_CCIPR1_I2C4SEL_Pos)       /*!< 0x00004000 */
16702 #define RCC_CCIPR1_I2C4SEL_1                (0x2UL << RCC_CCIPR1_I2C4SEL_Pos)       /*!< 0x00008000 */
16703 #define RCC_CCIPR1_SPI2SEL_Pos              (16U)
16704 #define RCC_CCIPR1_SPI2SEL_Msk              (0x3UL << RCC_CCIPR1_SPI2SEL_Pos)       /*!< 0x00030000 */
16705 #define RCC_CCIPR1_SPI2SEL                  RCC_CCIPR1_SPI2SEL_Msk                  /*!< SPI2SEL[1:0]: bits (SPI2 Kernel Clock Source Selection) */
16706 #define RCC_CCIPR1_SPI2SEL_0                (0x1UL << RCC_CCIPR1_SPI2SEL_Pos)       /*!< 0x00010000 */
16707 #define RCC_CCIPR1_SPI2SEL_1                (0x2UL << RCC_CCIPR1_SPI2SEL_Pos)       /*!< 0x00020000 */
16708 #define RCC_CCIPR1_LPTIM2SEL_Pos            (18U)
16709 #define RCC_CCIPR1_LPTIM2SEL_Msk            (0x3UL << RCC_CCIPR1_LPTIM2SEL_Pos)     /*!< 0x000C0000 */
16710 #define RCC_CCIPR1_LPTIM2SEL                RCC_CCIPR1_LPTIM2SEL_Msk                /*!< LPTIM2SEL[1:0]: bits (Low-power Timer 2 Kernel Clock Source Selection) */
16711 #define RCC_CCIPR1_LPTIM2SEL_0              (0x1UL << RCC_CCIPR1_LPTIM2SEL_Pos)     /*!< 0x00040000 */
16712 #define RCC_CCIPR1_LPTIM2SEL_1              (0x2UL << RCC_CCIPR1_LPTIM2SEL_Pos)     /*!< 0x00080000 */
16713 #define RCC_CCIPR1_SPI1SEL_Pos              (20U)
16714 #define RCC_CCIPR1_SPI1SEL_Msk              (0x3UL << RCC_CCIPR1_SPI1SEL_Pos)       /*!< 0x00300000 */
16715 #define RCC_CCIPR1_SPI1SEL                  RCC_CCIPR1_SPI1SEL_Msk                  /*!< SPI1SEL[1:0]: bits (SPI1 Kernel Clock Source Selection) */
16716 #define RCC_CCIPR1_SPI1SEL_0                (0x1UL << RCC_CCIPR1_SPI1SEL_Pos)       /*!< 0x00100000 */
16717 #define RCC_CCIPR1_SPI1SEL_1                (0x2UL << RCC_CCIPR1_SPI1SEL_Pos)       /*!< 0x00200000 */
16718 #define RCC_CCIPR1_SYSTICKSEL_Pos           (22U)
16719 #define RCC_CCIPR1_SYSTICKSEL_Msk           (0x3UL << RCC_CCIPR1_SYSTICKSEL_Pos)    /*!< 0x00C00000 */
16720 #define RCC_CCIPR1_SYSTICKSEL               RCC_CCIPR1_SYSTICKSEL_Msk               /*!< SYSTICKSEL[1:0]: bits (SYSTICK Clock Source Selection) */
16721 #define RCC_CCIPR1_SYSTICKSEL_0             (0x1UL << RCC_CCIPR1_SYSTICKSEL_Pos)    /*!< 0x00400000 */
16722 #define RCC_CCIPR1_SYSTICKSEL_1             (0x2UL << RCC_CCIPR1_SYSTICKSEL_Pos)    /*!< 0x00800000 */
16723 #define RCC_CCIPR1_FDCANSEL_Pos             (24U)
16724 #define RCC_CCIPR1_FDCANSEL_Msk             (0x3UL << RCC_CCIPR1_FDCANSEL_Pos)      /*!< 0x03000000 */
16725 #define RCC_CCIPR1_FDCANSEL                 RCC_CCIPR1_FDCANSEL_Msk                 /*!< FDCAN1SEL[1:0]: bits (FDCAN1 Kernel Clock Source Selection) */
16726 #define RCC_CCIPR1_FDCANSEL_0               (0x1UL << RCC_CCIPR1_FDCANSEL_Pos)      /*!< 0x01000000 */
16727 #define RCC_CCIPR1_FDCANSEL_1               (0x2UL << RCC_CCIPR1_FDCANSEL_Pos)      /*!< 0x02000000 */
16728 #define RCC_CCIPR1_CLK48MSEL_Pos            (26U)
16729 #define RCC_CCIPR1_CLK48MSEL_Msk            (0x3UL << RCC_CCIPR1_CLK48MSEL_Pos)     /*!< 0x0C000000 */
16730 #define RCC_CCIPR1_CLK48MSEL                RCC_CCIPR1_CLK48MSEL_Msk                /*!< CLK48MSEL[1:0]: bits (48 MHz Clock Source Selection) */
16731 #define RCC_CCIPR1_CLK48MSEL_0              (0x1UL << RCC_CCIPR1_CLK48MSEL_Pos)     /*!< 0x04000000 */
16732 #define RCC_CCIPR1_CLK48MSEL_1              (0x2UL << RCC_CCIPR1_CLK48MSEL_Pos)     /*!< 0x08000000 */
16733 #define RCC_CCIPR1_TIMICSEL_Pos             (29U)
16734 #define RCC_CCIPR1_TIMICSEL_Msk             (0x7UL << RCC_CCIPR1_TIMICSEL_Pos)      /*!< 0xE0000000 */
16735 #define RCC_CCIPR1_TIMICSEL                 RCC_CCIPR1_TIMICSEL_Msk                 /*!< TIMICSEL[2:0]: bits (Clocks Sources for TIM16,TIM17 and LPTIM2 Internal Input Capture) */
16736 #define RCC_CCIPR1_TIMICSEL_0               (0x1UL << RCC_CCIPR1_TIMICSEL_Pos)      /*!< 0x20000000 */
16737 #define RCC_CCIPR1_TIMICSEL_1               (0x2UL << RCC_CCIPR1_TIMICSEL_Pos)      /*!< 0x40000000 */
16738 #define RCC_CCIPR1_TIMICSEL_2               (0x4UL << RCC_CCIPR1_TIMICSEL_Pos)      /*!< 0x80000000 */
16739 
16740 /********************  Bit definition for RCC_CCIPR2 register  ******************/
16741 #define RCC_CCIPR2_MDF1SEL_Pos              (0U)
16742 #define RCC_CCIPR2_MDF1SEL_Msk              (0x7UL << RCC_CCIPR2_MDF1SEL_Pos)       /*!< 0x00000007 */
16743 #define RCC_CCIPR2_MDF1SEL                  RCC_CCIPR2_MDF1SEL_Msk                  /*!< MDF1SEL[2:0]: bits (MDF1 Kernel Clock Source Selection) */
16744 #define RCC_CCIPR2_MDF1SEL_0                (0x1UL << RCC_CCIPR2_MDF1SEL_Pos)       /*!< 0x00000001 */
16745 #define RCC_CCIPR2_MDF1SEL_1                (0x2UL << RCC_CCIPR2_MDF1SEL_Pos)       /*!< 0x00000002 */
16746 #define RCC_CCIPR2_MDF1SEL_2                (0x4UL << RCC_CCIPR2_MDF1SEL_Pos)       /*!< 0x00000004 */
16747 #define RCC_CCIPR2_SAI1SEL_Pos              (5U)
16748 #define RCC_CCIPR2_SAI1SEL_Msk              (0x7UL << RCC_CCIPR2_SAI1SEL_Pos)       /*!< 0x000000E0 */
16749 #define RCC_CCIPR2_SAI1SEL                  RCC_CCIPR2_SAI1SEL_Msk                  /*!< SAI1SEL[2:0]: bits (SAI1 Kernel Clock Source Selection) */
16750 #define RCC_CCIPR2_SAI1SEL_0                (0x1UL << RCC_CCIPR2_SAI1SEL_Pos)       /*!< 0x00000020 */
16751 #define RCC_CCIPR2_SAI1SEL_1                (0x2UL << RCC_CCIPR2_SAI1SEL_Pos)       /*!< 0x00000040 */
16752 #define RCC_CCIPR2_SAI1SEL_2                (0x4UL << RCC_CCIPR2_SAI1SEL_Pos)       /*!< 0x00000080 */
16753 #define RCC_CCIPR2_SAI2SEL_Pos              (8U)
16754 #define RCC_CCIPR2_SAI2SEL_Msk              (0x7UL << RCC_CCIPR2_SAI2SEL_Pos)       /*!< 0x00000700 */
16755 #define RCC_CCIPR2_SAI2SEL                  RCC_CCIPR2_SAI2SEL_Msk                  /*!< SAI2SEL[2:0]: bits (SAI2 Kernel Clock Source Selection) */
16756 #define RCC_CCIPR2_SAI2SEL_0                (0x1UL << RCC_CCIPR2_SAI2SEL_Pos)       /*!< 0x00000100 */
16757 #define RCC_CCIPR2_SAI2SEL_1                (0x2UL << RCC_CCIPR2_SAI2SEL_Pos)       /*!< 0x00000200 */
16758 #define RCC_CCIPR2_SAI2SEL_2                (0x4UL << RCC_CCIPR2_SAI2SEL_Pos)       /*!< 0x00000400 */
16759 #define RCC_CCIPR2_SAESSEL_Pos              (11U)
16760 #define RCC_CCIPR2_SAESSEL_Msk              (0x1UL << RCC_CCIPR2_SAESSEL_Pos)       /*!< 0x00004000 */
16761 #define RCC_CCIPR2_SAESSEL                  RCC_CCIPR2_SAESSEL_Msk                  /*!< SAES Kernel Clock Source Selection */
16762 #define RCC_CCIPR2_RNGSEL_Pos               (12U)
16763 #define RCC_CCIPR2_RNGSEL_Msk               (0x3UL << RCC_CCIPR2_RNGSEL_Pos)        /*!< 0x00300000 */
16764 #define RCC_CCIPR2_RNGSEL                   RCC_CCIPR2_RNGSEL_Msk                   /*!< RNGSEL[1:0]: bits (RNGSEL Kernel Clock Source Selection) */
16765 #define RCC_CCIPR2_RNGSEL_0                 (0x1UL << RCC_CCIPR2_RNGSEL_Pos)        /*!< 0x00100000 */
16766 #define RCC_CCIPR2_RNGSEL_1                 (0x2UL << RCC_CCIPR2_RNGSEL_Pos)        /*!< 0x00200000 */
16767 #define RCC_CCIPR2_SDMMCSEL_Pos             (14U)
16768 #define RCC_CCIPR2_SDMMCSEL_Msk             (0x1UL << RCC_CCIPR2_SDMMCSEL_Pos)      /*!< 0x00004000 */
16769 #define RCC_CCIPR2_SDMMCSEL                 RCC_CCIPR2_SDMMCSEL_Msk                 /*!< SDMMC1 Kernel Clock Source Selection */
16770 #define RCC_CCIPR2_OCTOSPISEL_Pos           (20U)
16771 #define RCC_CCIPR2_OCTOSPISEL_Msk           (0x3UL << RCC_CCIPR2_OCTOSPISEL_Pos)    /*!< 0x00300000 */
16772 #define RCC_CCIPR2_OCTOSPISEL               RCC_CCIPR2_OCTOSPISEL_Msk               /*!< OCTOSPISEL[1:0]: bits (OCTOSPI1 and OCTOSPI2 Kernel Clock Source Selection) */
16773 #define RCC_CCIPR2_OCTOSPISEL_0             (0x1UL << RCC_CCIPR2_OCTOSPISEL_Pos)    /*!< 0x00100000 */
16774 #define RCC_CCIPR2_OCTOSPISEL_1             (0x2UL << RCC_CCIPR2_OCTOSPISEL_Pos)    /*!< 0x00200000 */
16775 
16776 /********************  Bit definition for RCC_CCIPR3 register  ***************/
16777 #define RCC_CCIPR3_LPUART1SEL_Pos           (0U)
16778 #define RCC_CCIPR3_LPUART1SEL_Msk           (0x7UL << RCC_CCIPR3_LPUART1SEL_Pos)    /*!< 0x00000007 */
16779 #define RCC_CCIPR3_LPUART1SEL               RCC_CCIPR3_LPUART1SEL_Msk               /*!< LPUART1SEL[2:0]: bits (LPUART1 Kernel Clock Source Selection) */
16780 #define RCC_CCIPR3_LPUART1SEL_0             (0x1UL << RCC_CCIPR3_LPUART1SEL_Pos)    /*!< 0x00000001 */
16781 #define RCC_CCIPR3_LPUART1SEL_1             (0x2UL << RCC_CCIPR3_LPUART1SEL_Pos)    /*!< 0x00000002 */
16782 #define RCC_CCIPR3_LPUART1SEL_2             (0x4UL << RCC_CCIPR3_LPUART1SEL_Pos)    /*!< 0x00000004 */
16783 #define RCC_CCIPR3_SPI3SEL_Pos              (3U)
16784 #define RCC_CCIPR3_SPI3SEL_Msk              (0x3UL << RCC_CCIPR3_SPI3SEL_Pos)       /*!< 0x00000008 */
16785 #define RCC_CCIPR3_SPI3SEL                  RCC_CCIPR3_SPI3SEL_Msk                  /*!< SPI3SEL[1:0]: bits (SPI3 Kernel Clock Source Selection) */
16786 #define RCC_CCIPR3_SPI3SEL_0                (0x1UL << RCC_CCIPR3_SPI3SEL_Pos)       /*!< 0x00000008 */
16787 #define RCC_CCIPR3_SPI3SEL_1                (0x2UL << RCC_CCIPR3_SPI3SEL_Pos)       /*!< 0x00000010 */
16788 #define RCC_CCIPR3_I2C3SEL_Pos              (6U)
16789 #define RCC_CCIPR3_I2C3SEL_Msk              (0x3UL << RCC_CCIPR3_I2C3SEL_Pos)       /*!< 0x00000300 */
16790 #define RCC_CCIPR3_I2C3SEL                  RCC_CCIPR3_I2C3SEL_Msk                  /*!< I2C3SEL[1:0]: bits (I2C3 Kernel Clock Source Selection) */
16791 #define RCC_CCIPR3_I2C3SEL_0                (0x1UL << RCC_CCIPR3_I2C3SEL_Pos)       /*!< 0x00000100 */
16792 #define RCC_CCIPR3_I2C3SEL_1                (0x2UL << RCC_CCIPR3_I2C3SEL_Pos)       /*!< 0x00000200 */
16793 #define RCC_CCIPR3_LPTIM34SEL_Pos           (8U)
16794 #define RCC_CCIPR3_LPTIM34SEL_Msk           (0x3UL << RCC_CCIPR3_LPTIM34SEL_Pos)    /*!< 0x0000E000 */
16795 #define RCC_CCIPR3_LPTIM34SEL               RCC_CCIPR3_LPTIM34SEL_Msk               /*!< LPTIM34SEL[1:0]: bits (LPTIM3 and LPTIM4 Kernel Clock Source Selection) */
16796 #define RCC_CCIPR3_LPTIM34SEL_0             (0x1UL << RCC_CCIPR3_LPTIM34SEL_Pos)    /*!< 0x00002000 */
16797 #define RCC_CCIPR3_LPTIM34SEL_1             (0x2UL << RCC_CCIPR3_LPTIM34SEL_Pos)    /*!< 0x00004000 */
16798 #define RCC_CCIPR3_LPTIM1SEL_Pos            (10U)
16799 #define RCC_CCIPR3_LPTIM1SEL_Msk            (0x3UL << RCC_CCIPR3_LPTIM1SEL_Pos)     /*!< 0x0000E000 */
16800 #define RCC_CCIPR3_LPTIM1SEL                RCC_CCIPR3_LPTIM1SEL_Msk                /*!< LPTIM1SEL[1:0]: bits (LPTIM1 Kernel Clock Source Selection) */
16801 #define RCC_CCIPR3_LPTIM1SEL_0              (0x1UL << RCC_CCIPR3_LPTIM1SEL_Pos)     /*!< 0x00002000 */
16802 #define RCC_CCIPR3_LPTIM1SEL_1              (0x2UL << RCC_CCIPR3_LPTIM1SEL_Pos)     /*!< 0x00004000 */
16803 #define RCC_CCIPR3_ADCDACSEL_Pos            (12U)
16804 #define RCC_CCIPR3_ADCDACSEL_Msk            (0x7UL << RCC_CCIPR3_ADCDACSEL_Pos)     /*!< 0x00030000 */
16805 #define RCC_CCIPR3_ADCDACSEL                RCC_CCIPR3_ADCDACSEL_Msk                /*!< ADCDACSEL[2:0]: bits (ADC1, ADC4 and DAC1 Kernel Clock Source Selection) */
16806 #define RCC_CCIPR3_ADCDACSEL_0              (0x1UL << RCC_CCIPR3_ADCDACSEL_Pos)     /*!< 0x00010000 */
16807 #define RCC_CCIPR3_ADCDACSEL_1              (0x2UL << RCC_CCIPR3_ADCDACSEL_Pos)     /*!< 0x00020000 */
16808 #define RCC_CCIPR3_ADCDACSEL_2              (0x4UL << RCC_CCIPR3_ADCDACSEL_Pos)     /*!< 0x00040000 */
16809 #define RCC_CCIPR3_DAC1SEL_Pos              (15U)
16810 #define RCC_CCIPR3_DAC1SEL_Msk              (0x1UL << RCC_CCIPR3_DAC1SEL_Pos)       /*!< 0x00300000 */
16811 #define RCC_CCIPR3_DAC1SEL                  RCC_CCIPR3_DAC1SEL_Msk                  /*!< DAC1 Sample & Hold Clock Source Selection */
16812 #define RCC_CCIPR3_ADF1SEL_Pos              (16U)
16813 #define RCC_CCIPR3_ADF1SEL_Msk              (0x7UL << RCC_CCIPR3_ADF1SEL_Pos)       /*!< 0x00070000 */
16814 #define RCC_CCIPR3_ADF1SEL                  RCC_CCIPR3_ADF1SEL_Msk                  /*!< ADF1SEL[2:0]: bits (ADF1 Kernel Clock Source Selection) */
16815 #define RCC_CCIPR3_ADF1SEL_0                (0x1UL << RCC_CCIPR3_ADF1SEL_Pos)       /*!< 0x00010000 */
16816 #define RCC_CCIPR3_ADF1SEL_1                (0x2UL << RCC_CCIPR3_ADF1SEL_Pos)       /*!< 0x00020000 */
16817 #define RCC_CCIPR3_ADF1SEL_2                (0x4UL << RCC_CCIPR3_ADF1SEL_Pos)       /*!< 0x00040000 */
16818 
16819 /********************  Bit definition for RCC_BDCR register  ******************/
16820 #define RCC_BDCR_LSEON_Pos                  (0U)
16821 #define RCC_BDCR_LSEON_Msk                  (0x1UL << RCC_BDCR_LSEON_Pos)           /*!< 0x00000001 */
16822 #define RCC_BDCR_LSEON                      RCC_BDCR_LSEON_Msk                      /*!< LSE Oscillator Enable */
16823 #define RCC_BDCR_LSERDY_Pos                 (1U)
16824 #define RCC_BDCR_LSERDY_Msk                 (0x1UL << RCC_BDCR_LSERDY_Pos)          /*!< 0x00000002 */
16825 #define RCC_BDCR_LSERDY                     RCC_BDCR_LSERDY_Msk                     /*!< LSE Oscillator Ready */
16826 #define RCC_BDCR_LSEBYP_Pos                 (2U)
16827 #define RCC_BDCR_LSEBYP_Msk                 (0x1UL << RCC_BDCR_LSEBYP_Pos)          /*!< 0x00000004 */
16828 #define RCC_BDCR_LSEBYP                     RCC_BDCR_LSEBYP_Msk                     /*!< LSE Oscillator Bypass */
16829 #define RCC_BDCR_LSEDRV_Pos                 (3U)
16830 #define RCC_BDCR_LSEDRV_Msk                 (0x3UL << RCC_BDCR_LSEDRV_Pos)          /*!< 0x00000018 */
16831 #define RCC_BDCR_LSEDRV                     RCC_BDCR_LSEDRV_Msk                     /*!< LSEDRV[1:0]: bits (LSE Oscillator Drive Capability) */
16832 #define RCC_BDCR_LSEDRV_0                   (0x1UL << RCC_BDCR_LSEDRV_Pos)          /*!< 0x00000008 */
16833 #define RCC_BDCR_LSEDRV_1                   (0x2UL << RCC_BDCR_LSEDRV_Pos)          /*!< 0x00000010 */
16834 #define RCC_BDCR_LSECSSON_Pos               (5U)
16835 #define RCC_BDCR_LSECSSON_Msk               (0x1UL << RCC_BDCR_LSECSSON_Pos)        /*!< 0x00000020 */
16836 #define RCC_BDCR_LSECSSON                   RCC_BDCR_LSECSSON_Msk                   /*!< CSS on LSE Enable */
16837 #define RCC_BDCR_LSECSSD_Pos                (6U)
16838 #define RCC_BDCR_LSECSSD_Msk                (0x1UL << RCC_BDCR_LSECSSD_Pos)         /*!< 0x00000040 */
16839 #define RCC_BDCR_LSECSSD                    RCC_BDCR_LSECSSD_Msk                    /*!< CSS on LSE failure Detection */
16840 #define RCC_BDCR_LSESYSEN_Pos               (7U)
16841 #define RCC_BDCR_LSESYSEN_Msk               (0x1UL << RCC_BDCR_LSESYSEN_Pos)        /*!< 0x00000080 */
16842 #define RCC_BDCR_LSESYSEN                   RCC_BDCR_LSESYSEN_Msk                   /*!< LSE System Clock (LSESYS) Enable */
16843 #define RCC_BDCR_RTCSEL_Pos                 (8U)
16844 #define RCC_BDCR_RTCSEL_Msk                 (0x3UL << RCC_BDCR_RTCSEL_Pos)          /*!< 0x00000300 */
16845 #define RCC_BDCR_RTCSEL                     RCC_BDCR_RTCSEL_Msk                     /*!< RTCSEL[1:0]: bits (RTC Clock Source Selection) */
16846 #define RCC_BDCR_RTCSEL_0                   (0x1UL << RCC_BDCR_RTCSEL_Pos)          /*!< 0x00000100 */
16847 #define RCC_BDCR_RTCSEL_1                   (0x2UL << RCC_BDCR_RTCSEL_Pos)          /*!< 0x00000200 */
16848 #define RCC_BDCR_LSESYSRDY_Pos              (11U)
16849 #define RCC_BDCR_LSESYSRDY_Msk              (0x1UL << RCC_BDCR_LSESYSRDY_Pos)       /*!< 0x00000800 */
16850 #define RCC_BDCR_LSESYSRDY                  RCC_BDCR_LSESYSRDY_Msk                  /*!< LSE System Clock (LSESYS) Ready */
16851 #define RCC_BDCR_LSEGFON_Pos                (12U)
16852 #define RCC_BDCR_LSEGFON_Msk                (0x1UL << RCC_BDCR_LSEGFON_Pos)         /*!< 0x00001000 */
16853 #define RCC_BDCR_LSEGFON                    RCC_BDCR_LSEGFON_Msk                    /*!< LSE Clock Glitch Filter Enable */
16854 #define RCC_BDCR_RTCEN_Pos                  (15U)
16855 #define RCC_BDCR_RTCEN_Msk                  (0x1UL << RCC_BDCR_RTCEN_Pos)           /*!< 0x00008000 */
16856 #define RCC_BDCR_RTCEN                      RCC_BDCR_RTCEN_Msk                      /*!< RTC Clock Enable */
16857 #define RCC_BDCR_BDRST_Pos                  (16U)
16858 #define RCC_BDCR_BDRST_Msk                  (0x1UL << RCC_BDCR_BDRST_Pos)           /*!< 0x00010000 */
16859 #define RCC_BDCR_BDRST                      RCC_BDCR_BDRST_Msk                      /*!< Backup Domain Software Reset */
16860 #define RCC_BDCR_LSCOEN_Pos                 (24U)
16861 #define RCC_BDCR_LSCOEN_Msk                 (0x1UL << RCC_BDCR_LSCOEN_Pos)          /*!< 0x01000000 */
16862 #define RCC_BDCR_LSCOEN                     RCC_BDCR_LSCOEN_Msk                     /*!< Low-speed Clock Output (LSCO) Enable */
16863 #define RCC_BDCR_LSCOSEL_Pos                (25U)
16864 #define RCC_BDCR_LSCOSEL_Msk                (0x1UL << RCC_BDCR_LSCOSEL_Pos)         /*!< 0x02000000 */
16865 #define RCC_BDCR_LSCOSEL                    RCC_BDCR_LSCOSEL_Msk                    /*!< Low-speed Clock Output Selection */
16866 #define RCC_BDCR_LSION_Pos                  (26U)
16867 #define RCC_BDCR_LSION_Msk                  (0x1UL << RCC_BDCR_LSION_Pos)           /*!< 0x00010000 */
16868 #define RCC_BDCR_LSION                      RCC_BDCR_LSION_Msk                      /*!< LSI Oscillator Enable */
16869 #define RCC_BDCR_LSIRDY_Pos                 (27U)
16870 #define RCC_BDCR_LSIRDY_Msk                 (0x1UL << RCC_BDCR_LSIRDY_Pos)          /*!< 0x01000000 */
16871 #define RCC_BDCR_LSIRDY                     RCC_BDCR_LSIRDY_Msk                     /*!< LSI Oscillator Ready */
16872 #define RCC_BDCR_LSIPREDIV_Pos              (28U)
16873 #define RCC_BDCR_LSIPREDIV_Msk              (0x1UL << RCC_BDCR_LSIPREDIV_Pos)       /*!< 0x02000000 */
16874 #define RCC_BDCR_LSIPREDIV                  RCC_BDCR_LSIPREDIV_Msk                  /*!< Low-speed Clock Divider Configuration */
16875 
16876 /********************  Bit definition for RCC_CSR register  *******************/
16877 #define RCC_CSR_MSIKSRANGE_Pos              (8U)
16878 #define RCC_CSR_MSIKSRANGE_Msk              (0xFUL << RCC_CSR_MSIKSRANGE_Pos)       /*!< 0x00000F00 */
16879 #define RCC_CSR_MSIKSRANGE                  RCC_CSR_MSIKSRANGE_Msk                  /*!< MSIKSRANGE[3:0]:bits (MSIK Range After Standby Mode) */
16880 #define RCC_CSR_MSIKSRANGE_0                (0x1UL << RCC_CSR_MSIKSRANGE_Pos)       /*!< 0x00000100 */
16881 #define RCC_CSR_MSIKSRANGE_1                (0x2UL << RCC_CSR_MSIKSRANGE_Pos)       /*!< 0x00000200 */
16882 #define RCC_CSR_MSIKSRANGE_2                (0x4UL << RCC_CSR_MSIKSRANGE_Pos)       /*!< 0x00000400 */
16883 #define RCC_CSR_MSIKSRANGE_3                (0x8UL << RCC_CSR_MSIKSRANGE_Pos)       /*!< 0x00000800 */
16884 #define RCC_CSR_MSISSRANGE_Pos              (12U)
16885 #define RCC_CSR_MSISSRANGE_Msk              (0xFUL << RCC_CSR_MSISSRANGE_Pos)       /*!< 0x0000F000 */
16886 #define RCC_CSR_MSISSRANGE                  RCC_CSR_MSISSRANGE_Msk                  /*!< MSISSRANGE[3:0]:bits (MSIS Range After Standby Mode) */
16887 #define RCC_CSR_MSISSRANGE_0                (0x1UL << RCC_CSR_MSISSRANGE_Pos)       /*!< 0x00001000 */
16888 #define RCC_CSR_MSISSRANGE_1                (0x2UL << RCC_CSR_MSISSRANGE_Pos)       /*!< 0x00002000 */
16889 #define RCC_CSR_MSISSRANGE_2                (0x4UL << RCC_CSR_MSISSRANGE_Pos)       /*!< 0x00004000 */
16890 #define RCC_CSR_MSISSRANGE_3                (0x8UL << RCC_CSR_MSISSRANGE_Pos)       /*!< 0x00008000 */
16891 #define RCC_CSR_RMVF_Pos                    (23U)
16892 #define RCC_CSR_RMVF_Msk                    (0x1UL << RCC_CSR_RMVF_Pos)             /*!< 0x00800000 */
16893 #define RCC_CSR_RMVF                        RCC_CSR_RMVF_Msk                        /*!< Remove Reset Flag */
16894 #define RCC_CSR_OBLRSTF_Pos                 (25U)
16895 #define RCC_CSR_OBLRSTF_Msk                 (0x1UL << RCC_CSR_OBLRSTF_Pos)          /*!< 0x02000000 */
16896 #define RCC_CSR_OBLRSTF                     RCC_CSR_OBLRSTF_Msk                     /*!< Option Byte Loader Reset Flag */
16897 #define RCC_CSR_PINRSTF_Pos                 (26U)
16898 #define RCC_CSR_PINRSTF_Msk                 (0x1UL << RCC_CSR_PINRSTF_Pos)          /*!< 0x04000000 */
16899 #define RCC_CSR_PINRSTF                     RCC_CSR_PINRSTF_Msk                     /*!< NRST Pin Reset Flag */
16900 #define RCC_CSR_BORRSTF_Pos                 (27U)
16901 #define RCC_CSR_BORRSTF_Msk                 (0x1UL << RCC_CSR_BORRSTF_Pos)          /*!< 0x08000000 */
16902 #define RCC_CSR_BORRSTF                     RCC_CSR_BORRSTF_Msk                     /*!< BOR Flag */
16903 #define RCC_CSR_SFTRSTF_Pos                 (28U)
16904 #define RCC_CSR_SFTRSTF_Msk                 (0x1UL << RCC_CSR_SFTRSTF_Pos)          /*!< 0x10000000 */
16905 #define RCC_CSR_SFTRSTF                     RCC_CSR_SFTRSTF_Msk                     /*!< Software Reset Flag */
16906 #define RCC_CSR_IWDGRSTF_Pos                (29U)
16907 #define RCC_CSR_IWDGRSTF_Msk                (0x1UL << RCC_CSR_IWDGRSTF_Pos)         /*!< 0x20000000 */
16908 #define RCC_CSR_IWDGRSTF                    RCC_CSR_IWDGRSTF_Msk                    /*!< Independent Watchdog Reset Flag */
16909 #define RCC_CSR_WWDGRSTF_Pos                (30U)
16910 #define RCC_CSR_WWDGRSTF_Msk                (0x1UL << RCC_CSR_WWDGRSTF_Pos)         /*!< 0x40000000 */
16911 #define RCC_CSR_WWDGRSTF                    RCC_CSR_WWDGRSTF_Msk                    /*!< Window Watchdog Reset Flag */
16912 #define RCC_CSR_LPWRRSTF_Pos                (31U)
16913 #define RCC_CSR_LPWRRSTF_Msk                (0x1UL << RCC_CSR_LPWRRSTF_Pos)         /*!< 0x80000000 */
16914 #define RCC_CSR_LPWRRSTF                    RCC_CSR_LPWRRSTF_Msk                    /*!< Low-power Reset Flag */
16915 
16916 /********************  Bit definition for RCC_SECCFGR register  **************/
16917 #define RCC_SECCFGR_HSISEC_Pos              (0U)
16918 #define RCC_SECCFGR_HSISEC_Msk              (0x1UL << RCC_SECCFGR_HSISEC_Pos)       /*!< 0x00000001 */
16919 #define RCC_SECCFGR_HSISEC                  RCC_SECCFGR_HSISEC_Msk                  /*!< HSI Clock Configuration and Status Bits Security */
16920 #define RCC_SECCFGR_HSESEC_Pos              (1U)
16921 #define RCC_SECCFGR_HSESEC_Msk              (0x1UL << RCC_SECCFGR_HSESEC_Pos)       /*!< 0x00000002 */
16922 #define RCC_SECCFGR_HSESEC                  RCC_SECCFGR_HSESEC_Msk                  /*!< HSE Clock Configuration Bits, Status Bits and HSE_CSS Security */
16923 #define RCC_SECCFGR_MSISEC_Pos              (2U)
16924 #define RCC_SECCFGR_MSISEC_Msk              (0x1UL << RCC_SECCFGR_MSISEC_Pos)       /*!< 0x00000004 */
16925 #define RCC_SECCFGR_MSISEC                  RCC_SECCFGR_MSISEC_Msk                  /*!< MSI Clock Configuration and Status Bits Security */
16926 #define RCC_SECCFGR_LSISEC_Pos              (3U)
16927 #define RCC_SECCFGR_LSISEC_Msk              (0x1UL << RCC_SECCFGR_LSISEC_Pos)       /*!< 0x00000008 */
16928 #define RCC_SECCFGR_LSISEC                  RCC_SECCFGR_LSISEC_Msk                  /*!< LSI Clock Configuration and Status Bits Security */
16929 #define RCC_SECCFGR_LSESEC_Pos              (4U)
16930 #define RCC_SECCFGR_LSESEC_Msk              (0x1UL << RCC_SECCFGR_LSESEC_Pos)       /*!< 0x00000010 */
16931 #define RCC_SECCFGR_LSESEC                  RCC_SECCFGR_LSESEC_Msk                  /*!< LSE Clock Configuration and Status Bits Security */
16932 #define RCC_SECCFGR_SYSCLKSEC_Pos           (5U)
16933 #define RCC_SECCFGR_SYSCLKSEC_Msk           (0x1UL << RCC_SECCFGR_SYSCLKSEC_Pos)    /*!< 0x00000020 */
16934 #define RCC_SECCFGR_SYSCLKSEC               RCC_SECCFGR_SYSCLKSEC_Msk               /*!< SYSCLK Clock Selection, STOPWUCK bit, Clock Output on MCO Configuration Security */
16935 #define RCC_SECCFGR_PRESCSEC_Pos            (6U)
16936 #define RCC_SECCFGR_PRESCSEC_Msk            (0x1UL << RCC_SECCFGR_PRESCSEC_Pos)     /*!< 0x00000040 */
16937 #define RCC_SECCFGR_PRESCSEC                RCC_SECCFGR_PRESCSEC_Msk                /*!< AHBx/APBx Prescaler Configuration Bits Security */
16938 #define RCC_SECCFGR_PLL1SEC_Pos             (7U)
16939 #define RCC_SECCFGR_PLL1SEC_Msk             (0x1UL << RCC_SECCFGR_PLL1SEC_Pos)      /*!< 0x00000080 */
16940 #define RCC_SECCFGR_PLL1SEC                 RCC_SECCFGR_PLL1SEC_Msk                 /*!< PLL1 Clock Configuration and Status Bits Security */
16941 #define RCC_SECCFGR_PLL2SEC_Pos             (8U)
16942 #define RCC_SECCFGR_PLL2SEC_Msk             (0x1UL << RCC_SECCFGR_PLL2SEC_Pos)      /*!< 0x00000100 */
16943 #define RCC_SECCFGR_PLL2SEC                 RCC_SECCFGR_PLL2SEC_Msk                 /*!< PLL2 Clock Configuration and Status Bits Security */
16944 #define RCC_SECCFGR_PLL3SEC_Pos             (9U)
16945 #define RCC_SECCFGR_PLL3SEC_Msk             (0x1UL << RCC_SECCFGR_PLL3SEC_Pos)      /*!< 0x00000200 */
16946 #define RCC_SECCFGR_PLL3SEC                 RCC_SECCFGR_PLL3SEC_Msk                 /*!< PLL3 Clock Configuration and Status Bits Security */
16947 #define RCC_SECCFGR_CLK48MSEC_Pos           (10U)
16948 #define RCC_SECCFGR_CLK48MSEC_Msk           (0x1UL << RCC_SECCFGR_CLK48MSEC_Pos)    /*!< 0x00000400 */
16949 #define RCC_SECCFGR_CLK48MSEC               RCC_SECCFGR_CLK48MSEC_Msk               /*!< 48 MHz Clock Source Selection Security */
16950 #define RCC_SECCFGR_HSI48SEC_Pos            (11U)
16951 #define RCC_SECCFGR_HSI48SEC_Msk            (0x1UL << RCC_SECCFGR_HSI48SEC_Pos)     /*!< 0x00000800 */
16952 #define RCC_SECCFGR_HSI48SEC                RCC_SECCFGR_HSI48SEC_Msk                /*!< HSI48 Clock Configuration and Status Bits Security */
16953 #define RCC_SECCFGR_RMVFSEC_Pos             (12U)
16954 #define RCC_SECCFGR_RMVFSEC_Msk             (0x1UL << RCC_SECCFGR_RMVFSEC_Pos)      /*!< 0x00001000 */
16955 #define RCC_SECCFGR_RMVFSEC                 RCC_SECCFGR_RMVFSEC_Msk                 /*!< Remove Reset Flag Security */
16956 
16957 /********************  Bit definition for RCC_PRIVCFGR register  **************/
16958 #define RCC_PRIVCFGR_SPRIV_Pos              (0U)
16959 #define RCC_PRIVCFGR_SPRIV_Msk              (0x1UL << RCC_PRIVCFGR_SPRIV_Pos)       /*!< 0x00000001 */
16960 #define RCC_PRIVCFGR_SPRIV                  RCC_PRIVCFGR_SPRIV_Msk                  /*!< RCC Secure Functions Privilege Configuration */
16961 #define RCC_PRIVCFGR_NSPRIV_Pos             (1U)
16962 #define RCC_PRIVCFGR_NSPRIV_Msk             (0x1UL << RCC_PRIVCFGR_NSPRIV_Pos)      /*!< 0x00000002 */
16963 #define RCC_PRIVCFGR_NSPRIV                 RCC_PRIVCFGR_NSPRIV_Msk                 /*!< RCC Non-Secure Functions Privilege Configuration */
16964 
16965 /******************************************************************************/
16966 /*                                                                            */
16967 /*                           Real-Time Clock (RTC)                            */
16968 /*                                                                            */
16969 /******************************************************************************/
16970 /********************  Bits definition for RTC_TR register  *******************/
16971 #define RTC_TR_SU_Pos                       (0U)
16972 #define RTC_TR_SU_Msk                       (0xFUL << RTC_TR_SU_Pos)                /*!< 0x0000000F */
16973 #define RTC_TR_SU                           RTC_TR_SU_Msk
16974 #define RTC_TR_SU_0                         (0x1UL << RTC_TR_SU_Pos)                /*!< 0x00000001 */
16975 #define RTC_TR_SU_1                         (0x2UL << RTC_TR_SU_Pos)                /*!< 0x00000002 */
16976 #define RTC_TR_SU_2                         (0x4UL << RTC_TR_SU_Pos)                /*!< 0x00000004 */
16977 #define RTC_TR_SU_3                         (0x8UL << RTC_TR_SU_Pos)                /*!< 0x00000008 */
16978 #define RTC_TR_ST_Pos                       (4U)
16979 #define RTC_TR_ST_Msk                       (0x7UL << RTC_TR_ST_Pos)                /*!< 0x00000070 */
16980 #define RTC_TR_ST                           RTC_TR_ST_Msk
16981 #define RTC_TR_ST_0                         (0x1UL << RTC_TR_ST_Pos)                /*!< 0x00000010 */
16982 #define RTC_TR_ST_1                         (0x2UL << RTC_TR_ST_Pos)                /*!< 0x00000020 */
16983 #define RTC_TR_ST_2                         (0x4UL << RTC_TR_ST_Pos)                /*!< 0x00000040 */
16984 #define RTC_TR_MNU_Pos                      (8U)
16985 #define RTC_TR_MNU_Msk                      (0xFUL << RTC_TR_MNU_Pos)               /*!< 0x00000F00 */
16986 #define RTC_TR_MNU                          RTC_TR_MNU_Msk
16987 #define RTC_TR_MNU_0                        (0x1UL << RTC_TR_MNU_Pos)               /*!< 0x00000100 */
16988 #define RTC_TR_MNU_1                        (0x2UL << RTC_TR_MNU_Pos)               /*!< 0x00000200 */
16989 #define RTC_TR_MNU_2                        (0x4UL << RTC_TR_MNU_Pos)               /*!< 0x00000400 */
16990 #define RTC_TR_MNU_3                        (0x8UL << RTC_TR_MNU_Pos)               /*!< 0x00000800 */
16991 #define RTC_TR_MNT_Pos                      (12U)
16992 #define RTC_TR_MNT_Msk                      (0x7UL << RTC_TR_MNT_Pos)               /*!< 0x00007000 */
16993 #define RTC_TR_MNT                          RTC_TR_MNT_Msk
16994 #define RTC_TR_MNT_0                        (0x1UL << RTC_TR_MNT_Pos)               /*!< 0x00001000 */
16995 #define RTC_TR_MNT_1                        (0x2UL << RTC_TR_MNT_Pos)               /*!< 0x00002000 */
16996 #define RTC_TR_MNT_2                        (0x4UL << RTC_TR_MNT_Pos)               /*!< 0x00004000 */
16997 #define RTC_TR_HU_Pos                       (16U)
16998 #define RTC_TR_HU_Msk                       (0xFUL << RTC_TR_HU_Pos)                /*!< 0x000F0000 */
16999 #define RTC_TR_HU                           RTC_TR_HU_Msk
17000 #define RTC_TR_HU_0                         (0x1UL << RTC_TR_HU_Pos)                /*!< 0x00010000 */
17001 #define RTC_TR_HU_1                         (0x2UL << RTC_TR_HU_Pos)                /*!< 0x00020000 */
17002 #define RTC_TR_HU_2                         (0x4UL << RTC_TR_HU_Pos)                /*!< 0x00040000 */
17003 #define RTC_TR_HU_3                         (0x8UL << RTC_TR_HU_Pos)                /*!< 0x00080000 */
17004 #define RTC_TR_HT_Pos                       (20U)
17005 #define RTC_TR_HT_Msk                       (0x3UL << RTC_TR_HT_Pos)                /*!< 0x00300000 */
17006 #define RTC_TR_HT                           RTC_TR_HT_Msk
17007 #define RTC_TR_HT_0                         (0x1UL << RTC_TR_HT_Pos)                /*!< 0x00100000 */
17008 #define RTC_TR_HT_1                         (0x2UL << RTC_TR_HT_Pos)                /*!< 0x00200000 */
17009 #define RTC_TR_PM_Pos                       (22U)
17010 #define RTC_TR_PM_Msk                       (0x1UL << RTC_TR_PM_Pos)                /*!< 0x00400000 */
17011 #define RTC_TR_PM                           RTC_TR_PM_Msk
17012 
17013 /********************  Bits definition for RTC_DR register  *******************/
17014 #define RTC_DR_DU_Pos                       (0U)
17015 #define RTC_DR_DU_Msk                       (0xFUL << RTC_DR_DU_Pos)                /*!< 0x0000000F */
17016 #define RTC_DR_DU                           RTC_DR_DU_Msk
17017 #define RTC_DR_DU_0                         (0x1UL << RTC_DR_DU_Pos)                /*!< 0x00000001 */
17018 #define RTC_DR_DU_1                         (0x2UL << RTC_DR_DU_Pos)                /*!< 0x00000002 */
17019 #define RTC_DR_DU_2                         (0x4UL << RTC_DR_DU_Pos)                /*!< 0x00000004 */
17020 #define RTC_DR_DU_3                         (0x8UL << RTC_DR_DU_Pos)                /*!< 0x00000008 */
17021 #define RTC_DR_DT_Pos                       (4U)
17022 #define RTC_DR_DT_Msk                       (0x3UL << RTC_DR_DT_Pos)                /*!< 0x00000030 */
17023 #define RTC_DR_DT                           RTC_DR_DT_Msk
17024 #define RTC_DR_DT_0                         (0x1UL << RTC_DR_DT_Pos)                /*!< 0x00000010 */
17025 #define RTC_DR_DT_1                         (0x2UL << RTC_DR_DT_Pos)                /*!< 0x00000020 */
17026 #define RTC_DR_MU_Pos                       (8U)
17027 #define RTC_DR_MU_Msk                       (0xFUL << RTC_DR_MU_Pos)                /*!< 0x00000F00 */
17028 #define RTC_DR_MU                           RTC_DR_MU_Msk
17029 #define RTC_DR_MU_0                         (0x1UL << RTC_DR_MU_Pos)                /*!< 0x00000100 */
17030 #define RTC_DR_MU_1                         (0x2UL << RTC_DR_MU_Pos)                /*!< 0x00000200 */
17031 #define RTC_DR_MU_2                         (0x4UL << RTC_DR_MU_Pos)                /*!< 0x00000400 */
17032 #define RTC_DR_MU_3                         (0x8UL << RTC_DR_MU_Pos)                /*!< 0x00000800 */
17033 #define RTC_DR_MT_Pos                       (12U)
17034 #define RTC_DR_MT_Msk                       (0x1UL << RTC_DR_MT_Pos)                /*!< 0x00001000 */
17035 #define RTC_DR_MT                           RTC_DR_MT_Msk
17036 #define RTC_DR_WDU_Pos                      (13U)
17037 #define RTC_DR_WDU_Msk                      (0x7UL << RTC_DR_WDU_Pos)               /*!< 0x0000E000 */
17038 #define RTC_DR_WDU                          RTC_DR_WDU_Msk
17039 #define RTC_DR_WDU_0                        (0x1UL << RTC_DR_WDU_Pos)               /*!< 0x00002000 */
17040 #define RTC_DR_WDU_1                        (0x2UL << RTC_DR_WDU_Pos)               /*!< 0x00004000 */
17041 #define RTC_DR_WDU_2                        (0x4UL << RTC_DR_WDU_Pos)               /*!< 0x00008000 */
17042 #define RTC_DR_YU_Pos                       (16U)
17043 #define RTC_DR_YU_Msk                       (0xFUL << RTC_DR_YU_Pos)                /*!< 0x000F0000 */
17044 #define RTC_DR_YU                           RTC_DR_YU_Msk
17045 #define RTC_DR_YU_0                         (0x1UL << RTC_DR_YU_Pos)                /*!< 0x00010000 */
17046 #define RTC_DR_YU_1                         (0x2UL << RTC_DR_YU_Pos)                /*!< 0x00020000 */
17047 #define RTC_DR_YU_2                         (0x4UL << RTC_DR_YU_Pos)                /*!< 0x00040000 */
17048 #define RTC_DR_YU_3                         (0x8UL << RTC_DR_YU_Pos)                /*!< 0x00080000 */
17049 #define RTC_DR_YT_Pos                       (20U)
17050 #define RTC_DR_YT_Msk                       (0xFUL << RTC_DR_YT_Pos)                /*!< 0x00F00000 */
17051 #define RTC_DR_YT                           RTC_DR_YT_Msk
17052 #define RTC_DR_YT_0                         (0x1UL << RTC_DR_YT_Pos)                /*!< 0x00100000 */
17053 #define RTC_DR_YT_1                         (0x2UL << RTC_DR_YT_Pos)                /*!< 0x00200000 */
17054 #define RTC_DR_YT_2                         (0x4UL << RTC_DR_YT_Pos)                /*!< 0x00400000 */
17055 #define RTC_DR_YT_3                         (0x8UL << RTC_DR_YT_Pos)                /*!< 0x00800000 */
17056 
17057 /********************  Bits definition for RTC_SSR register  ******************/
17058 #define RTC_SSR_SS_Pos                      (0U)
17059 #define RTC_SSR_SS_Msk                      (0xFFFFFFFFUL << RTC_SSR_SS_Pos)        /*!< 0xFFFFFFFF */
17060 #define RTC_SSR_SS                          RTC_SSR_SS_Msk
17061 
17062 /********************  Bits definition for RTC_ICSR register  ******************/
17063 #define RTC_ICSR_WUTWF_Pos                  (2U)
17064 #define RTC_ICSR_WUTWF_Msk                  (0x1UL << RTC_ICSR_WUTWF_Pos)           /*!< 0x00000004 */
17065 #define RTC_ICSR_WUTWF                      RTC_ICSR_WUTWF_Msk
17066 #define RTC_ICSR_SHPF_Pos                   (3U)
17067 #define RTC_ICSR_SHPF_Msk                   (0x1UL << RTC_ICSR_SHPF_Pos)            /*!< 0x00000008 */
17068 #define RTC_ICSR_SHPF                       RTC_ICSR_SHPF_Msk
17069 #define RTC_ICSR_INITS_Pos                  (4U)
17070 #define RTC_ICSR_INITS_Msk                  (0x1UL << RTC_ICSR_INITS_Pos)           /*!< 0x00000010 */
17071 #define RTC_ICSR_INITS                      RTC_ICSR_INITS_Msk
17072 #define RTC_ICSR_RSF_Pos                    (5U)
17073 #define RTC_ICSR_RSF_Msk                    (0x1UL << RTC_ICSR_RSF_Pos)             /*!< 0x00000020 */
17074 #define RTC_ICSR_RSF                        RTC_ICSR_RSF_Msk
17075 #define RTC_ICSR_INITF_Pos                  (6U)
17076 #define RTC_ICSR_INITF_Msk                  (0x1UL << RTC_ICSR_INITF_Pos)           /*!< 0x00000040 */
17077 #define RTC_ICSR_INITF                      RTC_ICSR_INITF_Msk
17078 #define RTC_ICSR_INIT_Pos                   (7U)
17079 #define RTC_ICSR_INIT_Msk                   (0x1UL << RTC_ICSR_INIT_Pos)            /*!< 0x00000080 */
17080 #define RTC_ICSR_INIT                       RTC_ICSR_INIT_Msk
17081 #define RTC_ICSR_BIN_Pos                    (8U)
17082 #define RTC_ICSR_BIN_Msk                    (0x3UL << RTC_ICSR_BIN_Pos)             /*!< 0x00000300 */
17083 #define RTC_ICSR_BIN                        RTC_ICSR_BIN_Msk
17084 #define RTC_ICSR_BIN_0                      (0x1UL << RTC_ICSR_BIN_Pos)             /*!< 0x00000100 */
17085 #define RTC_ICSR_BIN_1                      (0x2UL << RTC_ICSR_BIN_Pos)             /*!< 0x00000200 */
17086 #define RTC_ICSR_BCDU_Pos                   (10U)
17087 #define RTC_ICSR_BCDU_Msk                   (0x7UL << RTC_ICSR_BCDU_Pos)            /*!< 0x00001C00 */
17088 #define RTC_ICSR_BCDU                       RTC_ICSR_BCDU_Msk
17089 #define RTC_ICSR_BCDU_0                     (0x1UL << RTC_ICSR_BCDU_Pos)            /*!< 0x00000400 */
17090 #define RTC_ICSR_BCDU_1                     (0x2UL << RTC_ICSR_BCDU_Pos)            /*!< 0x00000800 */
17091 #define RTC_ICSR_BCDU_2                     (0x4UL << RTC_ICSR_BCDU_Pos)            /*!< 0x00001000 */
17092 #define RTC_ICSR_RECALPF_Pos                (16U)
17093 #define RTC_ICSR_RECALPF_Msk                (0x1UL << RTC_ICSR_RECALPF_Pos)         /*!< 0x00010000 */
17094 #define RTC_ICSR_RECALPF                    RTC_ICSR_RECALPF_Msk
17095 
17096 /********************  Bits definition for RTC_PRER register  *****************/
17097 #define RTC_PRER_PREDIV_S_Pos               (0U)
17098 #define RTC_PRER_PREDIV_S_Msk               (0x7FFFUL << RTC_PRER_PREDIV_S_Pos)     /*!< 0x00007FFF */
17099 #define RTC_PRER_PREDIV_S                   RTC_PRER_PREDIV_S_Msk
17100 #define RTC_PRER_PREDIV_A_Pos               (16U)
17101 #define RTC_PRER_PREDIV_A_Msk               (0x7FUL << RTC_PRER_PREDIV_A_Pos)       /*!< 0x007F0000 */
17102 #define RTC_PRER_PREDIV_A                   RTC_PRER_PREDIV_A_Msk
17103 
17104 /********************  Bits definition for RTC_WUTR register  *****************/
17105 #define RTC_WUTR_WUT_Pos                    (0U)
17106 #define RTC_WUTR_WUT_Msk                    (0xFFFFUL << RTC_WUTR_WUT_Pos)          /*!< 0x0000FFFF */
17107 #define RTC_WUTR_WUT                        RTC_WUTR_WUT_Msk
17108 #define RTC_WUTR_WUTOCLR_Pos                (16U)
17109 #define RTC_WUTR_WUTOCLR_Msk                (0xFFFFUL << RTC_WUTR_WUTOCLR_Pos)      /*!< 0x0000FFFF */
17110 #define RTC_WUTR_WUTOCLR                    RTC_WUTR_WUTOCLR_Msk
17111 
17112 /********************  Bits definition for RTC_CR register  *******************/
17113 #define RTC_CR_WUCKSEL_Pos                  (0U)
17114 #define RTC_CR_WUCKSEL_Msk                  (0x7UL << RTC_CR_WUCKSEL_Pos)           /*!< 0x00000007 */
17115 #define RTC_CR_WUCKSEL                      RTC_CR_WUCKSEL_Msk
17116 #define RTC_CR_WUCKSEL_0                    (0x1UL << RTC_CR_WUCKSEL_Pos)           /*!< 0x00000001 */
17117 #define RTC_CR_WUCKSEL_1                    (0x2UL << RTC_CR_WUCKSEL_Pos)           /*!< 0x00000002 */
17118 #define RTC_CR_WUCKSEL_2                    (0x4UL << RTC_CR_WUCKSEL_Pos)           /*!< 0x00000004 */
17119 #define RTC_CR_TSEDGE_Pos                   (3U)
17120 #define RTC_CR_TSEDGE_Msk                   (0x1UL << RTC_CR_TSEDGE_Pos)            /*!< 0x00000008 */
17121 #define RTC_CR_TSEDGE                       RTC_CR_TSEDGE_Msk
17122 #define RTC_CR_REFCKON_Pos                  (4U)
17123 #define RTC_CR_REFCKON_Msk                  (0x1UL << RTC_CR_REFCKON_Pos)           /*!< 0x00000010 */
17124 #define RTC_CR_REFCKON                      RTC_CR_REFCKON_Msk
17125 #define RTC_CR_BYPSHAD_Pos                  (5U)
17126 #define RTC_CR_BYPSHAD_Msk                  (0x1UL << RTC_CR_BYPSHAD_Pos)           /*!< 0x00000020 */
17127 #define RTC_CR_BYPSHAD                      RTC_CR_BYPSHAD_Msk
17128 #define RTC_CR_FMT_Pos                      (6U)
17129 #define RTC_CR_FMT_Msk                      (0x1UL << RTC_CR_FMT_Pos)               /*!< 0x00000040 */
17130 #define RTC_CR_FMT                          RTC_CR_FMT_Msk
17131 #define RTC_CR_SSRUIE_Pos                   (7U)
17132 #define RTC_CR_SSRUIE_Msk                   (0x1UL << RTC_CR_SSRUIE_Pos)            /*!< 0x00000080 */
17133 #define RTC_CR_SSRUIE                       RTC_CR_SSRUIE_Msk
17134 #define RTC_CR_ALRAE_Pos                    (8U)
17135 #define RTC_CR_ALRAE_Msk                    (0x1UL << RTC_CR_ALRAE_Pos)             /*!< 0x00000100 */
17136 #define RTC_CR_ALRAE                        RTC_CR_ALRAE_Msk
17137 #define RTC_CR_ALRBE_Pos                    (9U)
17138 #define RTC_CR_ALRBE_Msk                    (0x1UL << RTC_CR_ALRBE_Pos)             /*!< 0x00000200 */
17139 #define RTC_CR_ALRBE                        RTC_CR_ALRBE_Msk
17140 #define RTC_CR_WUTE_Pos                     (10U)
17141 #define RTC_CR_WUTE_Msk                     (0x1UL << RTC_CR_WUTE_Pos)              /*!< 0x00000400 */
17142 #define RTC_CR_WUTE                         RTC_CR_WUTE_Msk
17143 #define RTC_CR_TSE_Pos                      (11U)
17144 #define RTC_CR_TSE_Msk                      (0x1UL << RTC_CR_TSE_Pos)               /*!< 0x00000800 */
17145 #define RTC_CR_TSE                          RTC_CR_TSE_Msk
17146 #define RTC_CR_ALRAIE_Pos                   (12U)
17147 #define RTC_CR_ALRAIE_Msk                   (0x1UL << RTC_CR_ALRAIE_Pos)            /*!< 0x00001000 */
17148 #define RTC_CR_ALRAIE                       RTC_CR_ALRAIE_Msk
17149 #define RTC_CR_ALRBIE_Pos                   (13U)
17150 #define RTC_CR_ALRBIE_Msk                   (0x1UL << RTC_CR_ALRBIE_Pos)            /*!< 0x00002000 */
17151 #define RTC_CR_ALRBIE                       RTC_CR_ALRBIE_Msk
17152 #define RTC_CR_WUTIE_Pos                    (14U)
17153 #define RTC_CR_WUTIE_Msk                    (0x1UL << RTC_CR_WUTIE_Pos)             /*!< 0x00004000 */
17154 #define RTC_CR_WUTIE                        RTC_CR_WUTIE_Msk
17155 #define RTC_CR_TSIE_Pos                     (15U)
17156 #define RTC_CR_TSIE_Msk                     (0x1UL << RTC_CR_TSIE_Pos)              /*!< 0x00008000 */
17157 #define RTC_CR_TSIE                         RTC_CR_TSIE_Msk
17158 #define RTC_CR_ADD1H_Pos                    (16U)
17159 #define RTC_CR_ADD1H_Msk                    (0x1UL << RTC_CR_ADD1H_Pos)             /*!< 0x00010000 */
17160 #define RTC_CR_ADD1H                        RTC_CR_ADD1H_Msk
17161 #define RTC_CR_SUB1H_Pos                    (17U)
17162 #define RTC_CR_SUB1H_Msk                    (0x1UL << RTC_CR_SUB1H_Pos)             /*!< 0x00020000 */
17163 #define RTC_CR_SUB1H                        RTC_CR_SUB1H_Msk
17164 #define RTC_CR_BKP_Pos                      (18U)
17165 #define RTC_CR_BKP_Msk                      (0x1UL << RTC_CR_BKP_Pos)               /*!< 0x00040000 */
17166 #define RTC_CR_BKP                          RTC_CR_BKP_Msk
17167 #define RTC_CR_COSEL_Pos                    (19U)
17168 #define RTC_CR_COSEL_Msk                    (0x1UL << RTC_CR_COSEL_Pos)             /*!< 0x00080000 */
17169 #define RTC_CR_COSEL                        RTC_CR_COSEL_Msk
17170 #define RTC_CR_POL_Pos                      (20U)
17171 #define RTC_CR_POL_Msk                      (0x1UL << RTC_CR_POL_Pos)               /*!< 0x00100000 */
17172 #define RTC_CR_POL                          RTC_CR_POL_Msk
17173 #define RTC_CR_OSEL_Pos                     (21U)
17174 #define RTC_CR_OSEL_Msk                     (0x3UL << RTC_CR_OSEL_Pos)              /*!< 0x00600000 */
17175 #define RTC_CR_OSEL                         RTC_CR_OSEL_Msk
17176 #define RTC_CR_OSEL_0                       (0x1UL << RTC_CR_OSEL_Pos)              /*!< 0x00200000 */
17177 #define RTC_CR_OSEL_1                       (0x2UL << RTC_CR_OSEL_Pos)              /*!< 0x00400000 */
17178 #define RTC_CR_COE_Pos                      (23U)
17179 #define RTC_CR_COE_Msk                      (0x1UL << RTC_CR_COE_Pos)               /*!< 0x00800000 */
17180 #define RTC_CR_COE                          RTC_CR_COE_Msk
17181 #define RTC_CR_ITSE_Pos                     (24U)
17182 #define RTC_CR_ITSE_Msk                     (0x1UL << RTC_CR_ITSE_Pos)              /*!< 0x01000000 */
17183 #define RTC_CR_ITSE                         RTC_CR_ITSE_Msk                         /*!<Timestamp on internal event enable  */
17184 #define RTC_CR_TAMPTS_Pos                   (25U)
17185 #define RTC_CR_TAMPTS_Msk                   (0x1UL << RTC_CR_TAMPTS_Pos)            /*!< 0x02000000 */
17186 #define RTC_CR_TAMPTS                       RTC_CR_TAMPTS_Msk                       /*!<Activate timestamp on tamper detection event  */
17187 #define RTC_CR_TAMPOE_Pos                   (26U)
17188 #define RTC_CR_TAMPOE_Msk                   (0x1UL << RTC_CR_TAMPOE_Pos)            /*!< 0x04000000 */
17189 #define RTC_CR_TAMPOE                       RTC_CR_TAMPOE_Msk                       /*!<Tamper detection output enable on TAMPALARM  */
17190 #define RTC_CR_ALRAOCLR_Pos                 (27U)
17191 #define RTC_CR_ALRAOCLR_Msk                 (0x1UL << RTC_CR_ALRAOCLR_Pos)          /*!< 0x8000000 */
17192 #define RTC_CR_ALRAOCLR                     RTC_CR_ALRAOCLR_Msk                     /*!<Alarm A mask */
17193 #define RTC_CR_ALRBOCLR_Pos                 (28U)
17194 #define RTC_CR_ALRBOCLR_Msk                 (0x1UL << RTC_CR_ALRBOCLR_Pos)          /*!< 0x10000000 */
17195 #define RTC_CR_ALRBOCLR                     RTC_CR_ALRBOCLR_Msk                     /*!<Alarm B mask */
17196 #define RTC_CR_TAMPALRM_PU_Pos              (29U)
17197 #define RTC_CR_TAMPALRM_PU_Msk              (0x1UL << RTC_CR_TAMPALRM_PU_Pos)       /*!< 0x20000000 */
17198 #define RTC_CR_TAMPALRM_PU                  RTC_CR_TAMPALRM_PU_Msk                  /*!<TAMPALARM output pull-up config */
17199 #define RTC_CR_TAMPALRM_TYPE_Pos            (30U)
17200 #define RTC_CR_TAMPALRM_TYPE_Msk            (0x1UL << RTC_CR_TAMPALRM_TYPE_Pos)     /*!< 0x40000000 */
17201 #define RTC_CR_TAMPALRM_TYPE                RTC_CR_TAMPALRM_TYPE_Msk                /*!<TAMPALARM output type  */
17202 #define RTC_CR_OUT2EN_Pos                   (31U)
17203 #define RTC_CR_OUT2EN_Msk                   (0x1UL << RTC_CR_OUT2EN_Pos)            /*!< 0x80000000 */
17204 #define RTC_CR_OUT2EN                       RTC_CR_OUT2EN_Msk                       /*!<RTC_OUT2 output enable */
17205 
17206 /********************  Bits definition for RTC_PRIVCFGR register  *****************/
17207 #define RTC_PRIVCFGR_ALRAPRIV_Pos           (0U)
17208 #define RTC_PRIVCFGR_ALRAPRIV_Msk           (0x1UL << RTC_PRIVCFGR_ALRAPRIV_Pos)    /*!< 0x00000001 */
17209 #define RTC_PRIVCFGR_ALRAPRIV               RTC_PRIVCFGR_ALRAPRIV_Msk
17210 #define RTC_PRIVCFGR_ALRBPRIV_Pos           (1U)
17211 #define RTC_PRIVCFGR_ALRBPRIV_Msk           (0x1UL << RTC_PRIVCFGR_ALRBPRIV_Pos)    /*!< 0x00000002 */
17212 #define RTC_PRIVCFGR_ALRBPRIV               RTC_PRIVCFGR_ALRBPRIV_Msk
17213 #define RTC_PRIVCFGR_WUTPRIV_Pos            (2U)
17214 #define RTC_PRIVCFGR_WUTPRIV_Msk            (0x1UL << RTC_PRIVCFGR_WUTPRIV_Pos)     /*!< 0x00000004 */
17215 #define RTC_PRIVCFGR_WUTPRIV                RTC_PRIVCFGR_WUTPRIV_Msk
17216 #define RTC_PRIVCFGR_TSPRIV_Pos             (3U)
17217 #define RTC_PRIVCFGR_TSPRIV_Msk             (0x1UL << RTC_PRIVCFGR_TSPRIV_Pos)      /*!< 0x00000008 */
17218 #define RTC_PRIVCFGR_TSPRIV                 RTC_PRIVCFGR_TSPRIV_Msk
17219 #define RTC_PRIVCFGR_CALPRIV_Pos            (13U)
17220 #define RTC_PRIVCFGR_CALPRIV_Msk            (0x1UL << RTC_PRIVCFGR_CALPRIV_Pos)     /*!< 0x00002000 */
17221 #define RTC_PRIVCFGR_CALPRIV                RTC_PRIVCFGR_CALPRIV_Msk
17222 #define RTC_PRIVCFGR_INITPRIV_Pos           (14U)
17223 #define RTC_PRIVCFGR_INITPRIV_Msk           (0x1UL << RTC_PRIVCFGR_INITPRIV_Pos)    /*!< 0x00004000 */
17224 #define RTC_PRIVCFGR_INITPRIV               RTC_PRIVCFGR_INITPRIV_Msk
17225 #define RTC_PRIVCFGR_PRIV_Pos               (15U)
17226 #define RTC_PRIVCFGR_PRIV_Msk               (0x1UL << RTC_PRIVCFGR_PRIV_Pos)        /*!< 0x00008000 */
17227 #define RTC_PRIVCFGR_PRIV                   RTC_PRIVCFGR_PRIV_Msk
17228 
17229 /********************  Bits definition for RTC_SECCFGR register  ******************/
17230 #define RTC_SECCFGR_ALRASEC_Pos             (0U)
17231 #define RTC_SECCFGR_ALRASEC_Msk             (0x1UL << RTC_SECCFGR_ALRASEC_Pos)      /*!< 0x00000001 */
17232 #define RTC_SECCFGR_ALRASEC                 RTC_SECCFGR_ALRASEC_Msk
17233 #define RTC_SECCFGR_ALRBSEC_Pos             (1U)
17234 #define RTC_SECCFGR_ALRBSEC_Msk             (0x1UL << RTC_SECCFGR_ALRBSEC_Pos)      /*!< 0x00000002 */
17235 #define RTC_SECCFGR_ALRBSEC                 RTC_SECCFGR_ALRBSEC_Msk
17236 #define RTC_SECCFGR_WUTSEC_Pos              (2U)
17237 #define RTC_SECCFGR_WUTSEC_Msk              (0x1UL << RTC_SECCFGR_WUTSEC_Pos)       /*!< 0x00000004 */
17238 #define RTC_SECCFGR_WUTSEC                  RTC_SECCFGR_WUTSEC_Msk
17239 #define RTC_SECCFGR_TSSEC_Pos               (3U)
17240 #define RTC_SECCFGR_TSSEC_Msk               (0x1UL << RTC_SECCFGR_TSSEC_Pos)        /*!< 0x00000008 */
17241 #define RTC_SECCFGR_TSSEC                   RTC_SECCFGR_TSSEC_Msk
17242 #define RTC_SECCFGR_CALSEC_Pos              (13U)
17243 #define RTC_SECCFGR_CALSEC_Msk              (0x1UL << RTC_SECCFGR_CALSEC_Pos)       /*!< 0x00002000 */
17244 #define RTC_SECCFGR_CALSEC                  RTC_SECCFGR_CALSEC_Msk
17245 #define RTC_SECCFGR_INITSEC_Pos             (14U)
17246 #define RTC_SECCFGR_INITSEC_Msk             (0x1UL << RTC_SECCFGR_INITSEC_Pos)      /*!< 0x00004000 */
17247 #define RTC_SECCFGR_INITSEC                 RTC_SECCFGR_INITSEC_Msk
17248 #define RTC_SECCFGR_SEC_Pos                 (15U)
17249 #define RTC_SECCFGR_SEC_Msk                 (0x1UL << RTC_SECCFGR_SEC_Pos)          /*!< 0x00008000 */
17250 #define RTC_SECCFGR_SEC                     RTC_SECCFGR_SEC_Msk
17251 
17252 /********************  Bits definition for RTC_WPR register  ******************/
17253 #define RTC_WPR_KEY_Pos                     (0U)
17254 #define RTC_WPR_KEY_Msk                     (0xFFUL << RTC_WPR_KEY_Pos)             /*!< 0x000000FF */
17255 #define RTC_WPR_KEY                         RTC_WPR_KEY_Msk
17256 
17257 /********************  Bits definition for RTC_CALR register  *****************/
17258 #define RTC_CALR_CALM_Pos                   (0U)
17259 #define RTC_CALR_CALM_Msk                   (0x1FFUL << RTC_CALR_CALM_Pos)          /*!< 0x000001FF */
17260 #define RTC_CALR_CALM                       RTC_CALR_CALM_Msk
17261 #define RTC_CALR_CALM_0                     (0x001UL << RTC_CALR_CALM_Pos)          /*!< 0x00000001 */
17262 #define RTC_CALR_CALM_1                     (0x002UL << RTC_CALR_CALM_Pos)          /*!< 0x00000002 */
17263 #define RTC_CALR_CALM_2                     (0x004UL << RTC_CALR_CALM_Pos)          /*!< 0x00000004 */
17264 #define RTC_CALR_CALM_3                     (0x008UL << RTC_CALR_CALM_Pos)          /*!< 0x00000008 */
17265 #define RTC_CALR_CALM_4                     (0x010UL << RTC_CALR_CALM_Pos)          /*!< 0x00000010 */
17266 #define RTC_CALR_CALM_5                     (0x020UL << RTC_CALR_CALM_Pos)          /*!< 0x00000020 */
17267 #define RTC_CALR_CALM_6                     (0x040UL << RTC_CALR_CALM_Pos)          /*!< 0x00000040 */
17268 #define RTC_CALR_CALM_7                     (0x080UL << RTC_CALR_CALM_Pos)          /*!< 0x00000080 */
17269 #define RTC_CALR_CALM_8                     (0x100UL << RTC_CALR_CALM_Pos)          /*!< 0x00000100 */
17270 #define RTC_CALR_LPCAL_Pos                  (12U)
17271 #define RTC_CALR_LPCAL_Msk                  (0x1UL << RTC_CALR_LPCAL_Pos)           /*!< 0x00001000 */
17272 #define RTC_CALR_CALW16                     RTC_CALR_CALW16_Msk
17273 #define RTC_CALR_CALW16_Pos                 (13U)
17274 #define RTC_CALR_CALW16_Msk                 (0x1UL << RTC_CALR_CALW16_Pos)          /*!< 0x00002000 */
17275 #define RTC_CALR_LPCAL                      RTC_CALR_LPCAL_Msk
17276 #define RTC_CALR_CALW8_Pos                  (14U)
17277 #define RTC_CALR_CALW8_Msk                  (0x1UL << RTC_CALR_CALW8_Pos)           /*!< 0x00004000 */
17278 #define RTC_CALR_CALW8                      RTC_CALR_CALW8_Msk
17279 #define RTC_CALR_CALP_Pos                   (15U)
17280 #define RTC_CALR_CALP_Msk                   (0x1UL << RTC_CALR_CALP_Pos)            /*!< 0x00008000 */
17281 #define RTC_CALR_CALP                       RTC_CALR_CALP_Msk
17282 
17283 /********************  Bits definition for RTC_SHIFTR register  ***************/
17284 #define RTC_SHIFTR_SUBFS_Pos                (0U)
17285 #define RTC_SHIFTR_SUBFS_Msk                (0x7FFFUL << RTC_SHIFTR_SUBFS_Pos)      /*!< 0x00007FFF */
17286 #define RTC_SHIFTR_SUBFS                    RTC_SHIFTR_SUBFS_Msk
17287 #define RTC_SHIFTR_ADD1S_Pos                (31U)
17288 #define RTC_SHIFTR_ADD1S_Msk                (0x1UL << RTC_SHIFTR_ADD1S_Pos)         /*!< 0x80000000 */
17289 #define RTC_SHIFTR_ADD1S                    RTC_SHIFTR_ADD1S_Msk
17290 
17291 /********************  Bits definition for RTC_TSTR register  *****************/
17292 #define RTC_TSTR_SU_Pos                     (0U)
17293 #define RTC_TSTR_SU_Msk                     (0xFUL << RTC_TSTR_SU_Pos)              /*!< 0x0000000F */
17294 #define RTC_TSTR_SU                         RTC_TSTR_SU_Msk
17295 #define RTC_TSTR_SU_0                       (0x1UL << RTC_TSTR_SU_Pos)              /*!< 0x00000001 */
17296 #define RTC_TSTR_SU_1                       (0x2UL << RTC_TSTR_SU_Pos)              /*!< 0x00000002 */
17297 #define RTC_TSTR_SU_2                       (0x4UL << RTC_TSTR_SU_Pos)              /*!< 0x00000004 */
17298 #define RTC_TSTR_SU_3                       (0x8UL << RTC_TSTR_SU_Pos)              /*!< 0x00000008 */
17299 #define RTC_TSTR_ST_Pos                     (4U)
17300 #define RTC_TSTR_ST_Msk                     (0x7UL << RTC_TSTR_ST_Pos)              /*!< 0x00000070 */
17301 #define RTC_TSTR_ST                         RTC_TSTR_ST_Msk
17302 #define RTC_TSTR_ST_0                       (0x1UL << RTC_TSTR_ST_Pos)              /*!< 0x00000010 */
17303 #define RTC_TSTR_ST_1                       (0x2UL << RTC_TSTR_ST_Pos)              /*!< 0x00000020 */
17304 #define RTC_TSTR_ST_2                       (0x4UL << RTC_TSTR_ST_Pos)              /*!< 0x00000040 */
17305 #define RTC_TSTR_MNU_Pos                    (8U)
17306 #define RTC_TSTR_MNU_Msk                    (0xFUL << RTC_TSTR_MNU_Pos)             /*!< 0x00000F00 */
17307 #define RTC_TSTR_MNU                        RTC_TSTR_MNU_Msk
17308 #define RTC_TSTR_MNU_0                      (0x1UL << RTC_TSTR_MNU_Pos)             /*!< 0x00000100 */
17309 #define RTC_TSTR_MNU_1                      (0x2UL << RTC_TSTR_MNU_Pos)             /*!< 0x00000200 */
17310 #define RTC_TSTR_MNU_2                      (0x4UL << RTC_TSTR_MNU_Pos)             /*!< 0x00000400 */
17311 #define RTC_TSTR_MNU_3                      (0x8UL << RTC_TSTR_MNU_Pos)             /*!< 0x00000800 */
17312 #define RTC_TSTR_MNT_Pos                    (12U)
17313 #define RTC_TSTR_MNT_Msk                    (0x7UL << RTC_TSTR_MNT_Pos)             /*!< 0x00007000 */
17314 #define RTC_TSTR_MNT                        RTC_TSTR_MNT_Msk
17315 #define RTC_TSTR_MNT_0                      (0x1UL << RTC_TSTR_MNT_Pos)             /*!< 0x00001000 */
17316 #define RTC_TSTR_MNT_1                      (0x2UL << RTC_TSTR_MNT_Pos)             /*!< 0x00002000 */
17317 #define RTC_TSTR_MNT_2                      (0x4UL << RTC_TSTR_MNT_Pos)             /*!< 0x00004000 */
17318 #define RTC_TSTR_HU_Pos                     (16U)
17319 #define RTC_TSTR_HU_Msk                     (0xFUL << RTC_TSTR_HU_Pos)              /*!< 0x000F0000 */
17320 #define RTC_TSTR_HU                         RTC_TSTR_HU_Msk
17321 #define RTC_TSTR_HU_0                       (0x1UL << RTC_TSTR_HU_Pos)              /*!< 0x00010000 */
17322 #define RTC_TSTR_HU_1                       (0x2UL << RTC_TSTR_HU_Pos)              /*!< 0x00020000 */
17323 #define RTC_TSTR_HU_2                       (0x4UL << RTC_TSTR_HU_Pos)              /*!< 0x00040000 */
17324 #define RTC_TSTR_HU_3                       (0x8UL << RTC_TSTR_HU_Pos)              /*!< 0x00080000 */
17325 #define RTC_TSTR_HT_Pos                     (20U)
17326 #define RTC_TSTR_HT_Msk                     (0x3UL << RTC_TSTR_HT_Pos)              /*!< 0x00300000 */
17327 #define RTC_TSTR_HT                         RTC_TSTR_HT_Msk
17328 #define RTC_TSTR_HT_0                       (0x1UL << RTC_TSTR_HT_Pos)              /*!< 0x00100000 */
17329 #define RTC_TSTR_HT_1                       (0x2UL << RTC_TSTR_HT_Pos)              /*!< 0x00200000 */
17330 #define RTC_TSTR_PM_Pos                     (22U)
17331 #define RTC_TSTR_PM_Msk                     (0x1UL << RTC_TSTR_PM_Pos)              /*!< 0x00400000 */
17332 #define RTC_TSTR_PM                         RTC_TSTR_PM_Msk
17333 
17334 /********************  Bits definition for RTC_TSDR register  *****************/
17335 #define RTC_TSDR_DU_Pos                     (0U)
17336 #define RTC_TSDR_DU_Msk                     (0xFUL << RTC_TSDR_DU_Pos)              /*!< 0x0000000F */
17337 #define RTC_TSDR_DU                         RTC_TSDR_DU_Msk
17338 #define RTC_TSDR_DU_0                       (0x1UL << RTC_TSDR_DU_Pos)              /*!< 0x00000001 */
17339 #define RTC_TSDR_DU_1                       (0x2UL << RTC_TSDR_DU_Pos)              /*!< 0x00000002 */
17340 #define RTC_TSDR_DU_2                       (0x4UL << RTC_TSDR_DU_Pos)              /*!< 0x00000004 */
17341 #define RTC_TSDR_DU_3                       (0x8UL << RTC_TSDR_DU_Pos)              /*!< 0x00000008 */
17342 #define RTC_TSDR_DT_Pos                     (4U)
17343 #define RTC_TSDR_DT_Msk                     (0x3UL << RTC_TSDR_DT_Pos)              /*!< 0x00000030 */
17344 #define RTC_TSDR_DT                         RTC_TSDR_DT_Msk
17345 #define RTC_TSDR_DT_0                       (0x1UL << RTC_TSDR_DT_Pos)              /*!< 0x00000010 */
17346 #define RTC_TSDR_DT_1                       (0x2UL << RTC_TSDR_DT_Pos)              /*!< 0x00000020 */
17347 #define RTC_TSDR_MU_Pos                     (8U)
17348 #define RTC_TSDR_MU_Msk                     (0xFUL << RTC_TSDR_MU_Pos)              /*!< 0x00000F00 */
17349 #define RTC_TSDR_MU                         RTC_TSDR_MU_Msk
17350 #define RTC_TSDR_MU_0                       (0x1UL << RTC_TSDR_MU_Pos)              /*!< 0x00000100 */
17351 #define RTC_TSDR_MU_1                       (0x2UL << RTC_TSDR_MU_Pos)              /*!< 0x00000200 */
17352 #define RTC_TSDR_MU_2                       (0x4UL << RTC_TSDR_MU_Pos)              /*!< 0x00000400 */
17353 #define RTC_TSDR_MU_3                       (0x8UL << RTC_TSDR_MU_Pos)              /*!< 0x00000800 */
17354 #define RTC_TSDR_MT_Pos                     (12U)
17355 #define RTC_TSDR_MT_Msk                     (0x1UL << RTC_TSDR_MT_Pos)              /*!< 0x00001000 */
17356 #define RTC_TSDR_MT                         RTC_TSDR_MT_Msk
17357 #define RTC_TSDR_WDU_Pos                    (13U)
17358 #define RTC_TSDR_WDU_Msk                    (0x7UL << RTC_TSDR_WDU_Pos)             /*!< 0x0000E000 */
17359 #define RTC_TSDR_WDU                        RTC_TSDR_WDU_Msk
17360 #define RTC_TSDR_WDU_0                      (0x1UL << RTC_TSDR_WDU_Pos)             /*!< 0x00002000 */
17361 #define RTC_TSDR_WDU_1                      (0x2UL << RTC_TSDR_WDU_Pos)             /*!< 0x00004000 */
17362 #define RTC_TSDR_WDU_2                      (0x4UL << RTC_TSDR_WDU_Pos)             /*!< 0x00008000 */
17363 
17364 /********************  Bits definition for RTC_TSSSR register  ****************/
17365 #define RTC_TSSSR_SS_Pos                    (0U)
17366 #define RTC_TSSSR_SS_Msk                    (0xFFFFFFFFUL << RTC_TSSSR_SS_Pos)      /*!< 0xFFFFFFFF */
17367 #define RTC_TSSSR_SS                        RTC_TSSSR_SS_Msk                        /*!< rtc timestamp sub second > */
17368 
17369 /********************  Bits definition for RTC_ALRMAR register  ***************/
17370 #define RTC_ALRMAR_SU_Pos                   (0U)
17371 #define RTC_ALRMAR_SU_Msk                   (0xFUL << RTC_ALRMAR_SU_Pos)            /*!< 0x0000000F */
17372 #define RTC_ALRMAR_SU                       RTC_ALRMAR_SU_Msk
17373 #define RTC_ALRMAR_SU_0                     (0x1UL << RTC_ALRMAR_SU_Pos)            /*!< 0x00000001 */
17374 #define RTC_ALRMAR_SU_1                     (0x2UL << RTC_ALRMAR_SU_Pos)            /*!< 0x00000002 */
17375 #define RTC_ALRMAR_SU_2                     (0x4UL << RTC_ALRMAR_SU_Pos)            /*!< 0x00000004 */
17376 #define RTC_ALRMAR_SU_3                     (0x8UL << RTC_ALRMAR_SU_Pos)            /*!< 0x00000008 */
17377 #define RTC_ALRMAR_ST_Pos                   (4U)
17378 #define RTC_ALRMAR_ST_Msk                   (0x7UL << RTC_ALRMAR_ST_Pos)            /*!< 0x00000070 */
17379 #define RTC_ALRMAR_ST                       RTC_ALRMAR_ST_Msk
17380 #define RTC_ALRMAR_ST_0                     (0x1UL << RTC_ALRMAR_ST_Pos)            /*!< 0x00000010 */
17381 #define RTC_ALRMAR_ST_1                     (0x2UL << RTC_ALRMAR_ST_Pos)            /*!< 0x00000020 */
17382 #define RTC_ALRMAR_ST_2                     (0x4UL << RTC_ALRMAR_ST_Pos)            /*!< 0x00000040 */
17383 #define RTC_ALRMAR_MSK1_Pos                 (7U)
17384 #define RTC_ALRMAR_MSK1_Msk                 (0x1UL << RTC_ALRMAR_MSK1_Pos)          /*!< 0x00000080 */
17385 #define RTC_ALRMAR_MSK1                     RTC_ALRMAR_MSK1_Msk
17386 #define RTC_ALRMAR_MNU_Pos                  (8U)
17387 #define RTC_ALRMAR_MNU_Msk                  (0xFUL << RTC_ALRMAR_MNU_Pos)           /*!< 0x00000F00 */
17388 #define RTC_ALRMAR_MNU                      RTC_ALRMAR_MNU_Msk
17389 #define RTC_ALRMAR_MNU_0                    (0x1UL << RTC_ALRMAR_MNU_Pos)           /*!< 0x00000100 */
17390 #define RTC_ALRMAR_MNU_1                    (0x2UL << RTC_ALRMAR_MNU_Pos)           /*!< 0x00000200 */
17391 #define RTC_ALRMAR_MNU_2                    (0x4UL << RTC_ALRMAR_MNU_Pos)           /*!< 0x00000400 */
17392 #define RTC_ALRMAR_MNU_3                    (0x8UL << RTC_ALRMAR_MNU_Pos)           /*!< 0x00000800 */
17393 #define RTC_ALRMAR_MNT_Pos                  (12U)
17394 #define RTC_ALRMAR_MNT_Msk                  (0x7UL << RTC_ALRMAR_MNT_Pos)           /*!< 0x00007000 */
17395 #define RTC_ALRMAR_MNT                      RTC_ALRMAR_MNT_Msk
17396 #define RTC_ALRMAR_MNT_0                    (0x1UL << RTC_ALRMAR_MNT_Pos)           /*!< 0x00001000 */
17397 #define RTC_ALRMAR_MNT_1                    (0x2UL << RTC_ALRMAR_MNT_Pos)           /*!< 0x00002000 */
17398 #define RTC_ALRMAR_MNT_2                    (0x4UL << RTC_ALRMAR_MNT_Pos)           /*!< 0x00004000 */
17399 #define RTC_ALRMAR_MSK2_Pos                 (15U)
17400 #define RTC_ALRMAR_MSK2_Msk                 (0x1UL << RTC_ALRMAR_MSK2_Pos)          /*!< 0x00008000 */
17401 #define RTC_ALRMAR_MSK2                     RTC_ALRMAR_MSK2_Msk
17402 #define RTC_ALRMAR_HU_Pos                   (16U)
17403 #define RTC_ALRMAR_HU_Msk                   (0xFUL << RTC_ALRMAR_HU_Pos)            /*!< 0x000F0000 */
17404 #define RTC_ALRMAR_HU                       RTC_ALRMAR_HU_Msk
17405 #define RTC_ALRMAR_HU_0                     (0x1UL << RTC_ALRMAR_HU_Pos)            /*!< 0x00010000 */
17406 #define RTC_ALRMAR_HU_1                     (0x2UL << RTC_ALRMAR_HU_Pos)            /*!< 0x00020000 */
17407 #define RTC_ALRMAR_HU_2                     (0x4UL << RTC_ALRMAR_HU_Pos)            /*!< 0x00040000 */
17408 #define RTC_ALRMAR_HU_3                     (0x8UL << RTC_ALRMAR_HU_Pos)            /*!< 0x00080000 */
17409 #define RTC_ALRMAR_HT_Pos                   (20U)
17410 #define RTC_ALRMAR_HT_Msk                   (0x3UL << RTC_ALRMAR_HT_Pos)            /*!< 0x00300000 */
17411 #define RTC_ALRMAR_HT                       RTC_ALRMAR_HT_Msk
17412 #define RTC_ALRMAR_HT_0                     (0x1UL << RTC_ALRMAR_HT_Pos)            /*!< 0x00100000 */
17413 #define RTC_ALRMAR_HT_1                     (0x2UL << RTC_ALRMAR_HT_Pos)            /*!< 0x00200000 */
17414 #define RTC_ALRMAR_PM_Pos                   (22U)
17415 #define RTC_ALRMAR_PM_Msk                   (0x1UL << RTC_ALRMAR_PM_Pos)            /*!< 0x00400000 */
17416 #define RTC_ALRMAR_PM                       RTC_ALRMAR_PM_Msk
17417 #define RTC_ALRMAR_MSK3_Pos                 (23U)
17418 #define RTC_ALRMAR_MSK3_Msk                 (0x1UL << RTC_ALRMAR_MSK3_Pos)          /*!< 0x00800000 */
17419 #define RTC_ALRMAR_MSK3                     RTC_ALRMAR_MSK3_Msk
17420 #define RTC_ALRMAR_DU_Pos                   (24U)
17421 #define RTC_ALRMAR_DU_Msk                   (0xFUL << RTC_ALRMAR_DU_Pos)            /*!< 0x0F000000 */
17422 #define RTC_ALRMAR_DU                       RTC_ALRMAR_DU_Msk
17423 #define RTC_ALRMAR_DU_0                     (0x1UL << RTC_ALRMAR_DU_Pos)            /*!< 0x01000000 */
17424 #define RTC_ALRMAR_DU_1                     (0x2UL << RTC_ALRMAR_DU_Pos)            /*!< 0x02000000 */
17425 #define RTC_ALRMAR_DU_2                     (0x4UL << RTC_ALRMAR_DU_Pos)            /*!< 0x04000000 */
17426 #define RTC_ALRMAR_DU_3                     (0x8UL << RTC_ALRMAR_DU_Pos)            /*!< 0x08000000 */
17427 #define RTC_ALRMAR_DT_Pos                   (28U)
17428 #define RTC_ALRMAR_DT_Msk                   (0x3UL << RTC_ALRMAR_DT_Pos)            /*!< 0x30000000 */
17429 #define RTC_ALRMAR_DT                       RTC_ALRMAR_DT_Msk
17430 #define RTC_ALRMAR_DT_0                     (0x1UL << RTC_ALRMAR_DT_Pos)            /*!< 0x10000000 */
17431 #define RTC_ALRMAR_DT_1                     (0x2UL << RTC_ALRMAR_DT_Pos)            /*!< 0x20000000 */
17432 #define RTC_ALRMAR_WDSEL_Pos                (30U)
17433 #define RTC_ALRMAR_WDSEL_Msk                (0x1UL << RTC_ALRMAR_WDSEL_Pos)         /*!< 0x40000000 */
17434 #define RTC_ALRMAR_WDSEL                    RTC_ALRMAR_WDSEL_Msk
17435 #define RTC_ALRMAR_MSK4_Pos                 (31U)
17436 #define RTC_ALRMAR_MSK4_Msk                 (0x1UL << RTC_ALRMAR_MSK4_Pos)          /*!< 0x80000000 */
17437 #define RTC_ALRMAR_MSK4                     RTC_ALRMAR_MSK4_Msk
17438 
17439 /********************  Bits definition for RTC_ALRMASSR register  *************/
17440 #define RTC_ALRMASSR_SS_Pos                 (0U)
17441 #define RTC_ALRMASSR_SS_Msk                 (0x7FFFUL << RTC_ALRMASSR_SS_Pos)       /*!< 0x00007FFF */
17442 #define RTC_ALRMASSR_SS                     RTC_ALRMASSR_SS_Msk
17443 #define RTC_ALRMASSR_MASKSS_Pos             (24U)
17444 #define RTC_ALRMASSR_MASKSS_Msk             (0xFUL << RTC_ALRMASSR_MASKSS_Pos)      /*!< 0x0F000000 */
17445 #define RTC_ALRMASSR_MASKSS                 RTC_ALRMASSR_MASKSS_Msk
17446 #define RTC_ALRMASSR_MASKSS_0               (0x1UL << RTC_ALRMASSR_MASKSS_Pos)      /*!< 0x01000000 */
17447 #define RTC_ALRMASSR_MASKSS_1               (0x2UL << RTC_ALRMASSR_MASKSS_Pos)      /*!< 0x02000000 */
17448 #define RTC_ALRMASSR_MASKSS_2               (0x4UL << RTC_ALRMASSR_MASKSS_Pos)      /*!< 0x04000000 */
17449 #define RTC_ALRMASSR_MASKSS_3               (0x8UL << RTC_ALRMASSR_MASKSS_Pos)      /*!< 0x08000000 */
17450 #define RTC_ALRMASSR_SSCLR_Pos              (31U)
17451 #define RTC_ALRMASSR_SSCLR_Msk              (0x1UL << RTC_ALRMASSR_SSCLR_Pos)       /*!< 0x80000000 */
17452 #define RTC_ALRMASSR_SSCLR                  RTC_ALRMASSR_SSCLR_Msk
17453 
17454 /********************  Bits definition for RTC_ALRMBR register  ***************/
17455 #define RTC_ALRMBR_SU_Pos                   (0U)
17456 #define RTC_ALRMBR_SU_Msk                   (0xFUL << RTC_ALRMBR_SU_Pos)            /*!< 0x0000000F */
17457 #define RTC_ALRMBR_SU                       RTC_ALRMBR_SU_Msk
17458 #define RTC_ALRMBR_SU_0                     (0x1UL << RTC_ALRMBR_SU_Pos)            /*!< 0x00000001 */
17459 #define RTC_ALRMBR_SU_1                     (0x2UL << RTC_ALRMBR_SU_Pos)            /*!< 0x00000002 */
17460 #define RTC_ALRMBR_SU_2                     (0x4UL << RTC_ALRMBR_SU_Pos)            /*!< 0x00000004 */
17461 #define RTC_ALRMBR_SU_3                     (0x8UL << RTC_ALRMBR_SU_Pos)            /*!< 0x00000008 */
17462 #define RTC_ALRMBR_ST_Pos                   (4U)
17463 #define RTC_ALRMBR_ST_Msk                   (0x7UL << RTC_ALRMBR_ST_Pos)            /*!< 0x00000070 */
17464 #define RTC_ALRMBR_ST                       RTC_ALRMBR_ST_Msk
17465 #define RTC_ALRMBR_ST_0                     (0x1UL << RTC_ALRMBR_ST_Pos)            /*!< 0x00000010 */
17466 #define RTC_ALRMBR_ST_1                     (0x2UL << RTC_ALRMBR_ST_Pos)            /*!< 0x00000020 */
17467 #define RTC_ALRMBR_ST_2                     (0x4UL << RTC_ALRMBR_ST_Pos)            /*!< 0x00000040 */
17468 #define RTC_ALRMBR_MSK1_Pos                 (7U)
17469 #define RTC_ALRMBR_MSK1_Msk                 (0x1UL << RTC_ALRMBR_MSK1_Pos)          /*!< 0x00000080 */
17470 #define RTC_ALRMBR_MSK1                     RTC_ALRMBR_MSK1_Msk
17471 #define RTC_ALRMBR_MNU_Pos                  (8U)
17472 #define RTC_ALRMBR_MNU_Msk                  (0xFUL << RTC_ALRMBR_MNU_Pos)           /*!< 0x00000F00 */
17473 #define RTC_ALRMBR_MNU                      RTC_ALRMBR_MNU_Msk
17474 #define RTC_ALRMBR_MNU_0                    (0x1UL << RTC_ALRMBR_MNU_Pos)           /*!< 0x00000100 */
17475 #define RTC_ALRMBR_MNU_1                    (0x2UL << RTC_ALRMBR_MNU_Pos)           /*!< 0x00000200 */
17476 #define RTC_ALRMBR_MNU_2                    (0x4UL << RTC_ALRMBR_MNU_Pos)           /*!< 0x00000400 */
17477 #define RTC_ALRMBR_MNU_3                    (0x8UL << RTC_ALRMBR_MNU_Pos)           /*!< 0x00000800 */
17478 #define RTC_ALRMBR_MNT_Pos                  (12U)
17479 #define RTC_ALRMBR_MNT_Msk                  (0x7UL << RTC_ALRMBR_MNT_Pos)           /*!< 0x00007000 */
17480 #define RTC_ALRMBR_MNT                      RTC_ALRMBR_MNT_Msk
17481 #define RTC_ALRMBR_MNT_0                    (0x1UL << RTC_ALRMBR_MNT_Pos)           /*!< 0x00001000 */
17482 #define RTC_ALRMBR_MNT_1                    (0x2UL << RTC_ALRMBR_MNT_Pos)           /*!< 0x00002000 */
17483 #define RTC_ALRMBR_MNT_2                    (0x4UL << RTC_ALRMBR_MNT_Pos)           /*!< 0x00004000 */
17484 #define RTC_ALRMBR_MSK2_Pos                 (15U)
17485 #define RTC_ALRMBR_MSK2_Msk                 (0x1UL << RTC_ALRMBR_MSK2_Pos)          /*!< 0x00008000 */
17486 #define RTC_ALRMBR_MSK2                     RTC_ALRMBR_MSK2_Msk
17487 #define RTC_ALRMBR_HU_Pos                   (16U)
17488 #define RTC_ALRMBR_HU_Msk                   (0xFUL << RTC_ALRMBR_HU_Pos)            /*!< 0x000F0000 */
17489 #define RTC_ALRMBR_HU                       RTC_ALRMBR_HU_Msk
17490 #define RTC_ALRMBR_HU_0                     (0x1UL << RTC_ALRMBR_HU_Pos)            /*!< 0x00010000 */
17491 #define RTC_ALRMBR_HU_1                     (0x2UL << RTC_ALRMBR_HU_Pos)            /*!< 0x00020000 */
17492 #define RTC_ALRMBR_HU_2                     (0x4UL << RTC_ALRMBR_HU_Pos)            /*!< 0x00040000 */
17493 #define RTC_ALRMBR_HU_3                     (0x8UL << RTC_ALRMBR_HU_Pos)            /*!< 0x00080000 */
17494 #define RTC_ALRMBR_HT_Pos                   (20U)
17495 #define RTC_ALRMBR_HT_Msk                   (0x3UL << RTC_ALRMBR_HT_Pos)            /*!< 0x00300000 */
17496 #define RTC_ALRMBR_HT                       RTC_ALRMBR_HT_Msk
17497 #define RTC_ALRMBR_HT_0                     (0x1UL << RTC_ALRMBR_HT_Pos)            /*!< 0x00100000 */
17498 #define RTC_ALRMBR_HT_1                     (0x2UL << RTC_ALRMBR_HT_Pos)            /*!< 0x00200000 */
17499 #define RTC_ALRMBR_PM_Pos                   (22U)
17500 #define RTC_ALRMBR_PM_Msk                   (0x1UL << RTC_ALRMBR_PM_Pos)            /*!< 0x00400000 */
17501 #define RTC_ALRMBR_PM                       RTC_ALRMBR_PM_Msk
17502 #define RTC_ALRMBR_MSK3_Pos                 (23U)
17503 #define RTC_ALRMBR_MSK3_Msk                 (0x1UL << RTC_ALRMBR_MSK3_Pos)          /*!< 0x00800000 */
17504 #define RTC_ALRMBR_MSK3                     RTC_ALRMBR_MSK3_Msk
17505 #define RTC_ALRMBR_DU_Pos                   (24U)
17506 #define RTC_ALRMBR_DU_Msk                   (0xFUL << RTC_ALRMBR_DU_Pos)            /*!< 0x0F000000 */
17507 #define RTC_ALRMBR_DU                       RTC_ALRMBR_DU_Msk
17508 #define RTC_ALRMBR_DU_0                     (0x1UL << RTC_ALRMBR_DU_Pos)            /*!< 0x01000000 */
17509 #define RTC_ALRMBR_DU_1                     (0x2UL << RTC_ALRMBR_DU_Pos)            /*!< 0x02000000 */
17510 #define RTC_ALRMBR_DU_2                     (0x4UL << RTC_ALRMBR_DU_Pos)            /*!< 0x04000000 */
17511 #define RTC_ALRMBR_DU_3                     (0x8UL << RTC_ALRMBR_DU_Pos)            /*!< 0x08000000 */
17512 #define RTC_ALRMBR_DT_Pos                   (28U)
17513 #define RTC_ALRMBR_DT_Msk                   (0x3UL << RTC_ALRMBR_DT_Pos)            /*!< 0x30000000 */
17514 #define RTC_ALRMBR_DT                       RTC_ALRMBR_DT_Msk
17515 #define RTC_ALRMBR_DT_0                     (0x1UL << RTC_ALRMBR_DT_Pos)            /*!< 0x10000000 */
17516 #define RTC_ALRMBR_DT_1                     (0x2UL << RTC_ALRMBR_DT_Pos)            /*!< 0x20000000 */
17517 #define RTC_ALRMBR_WDSEL_Pos                (30U)
17518 #define RTC_ALRMBR_WDSEL_Msk                (0x1UL << RTC_ALRMBR_WDSEL_Pos)         /*!< 0x40000000 */
17519 #define RTC_ALRMBR_WDSEL                    RTC_ALRMBR_WDSEL_Msk
17520 #define RTC_ALRMBR_MSK4_Pos                 (31U)
17521 #define RTC_ALRMBR_MSK4_Msk                 (0x1UL << RTC_ALRMBR_MSK4_Pos)          /*!< 0x80000000 */
17522 #define RTC_ALRMBR_MSK4                     RTC_ALRMBR_MSK4_Msk
17523 
17524 /********************  Bits definition for RTC_ALRMBSSR register  *************/
17525 #define RTC_ALRMBSSR_SS_Pos                 (0U)
17526 #define RTC_ALRMBSSR_SS_Msk                 (0x7FFFUL << RTC_ALRMBSSR_SS_Pos)       /*!< 0x00007FFF */
17527 #define RTC_ALRMBSSR_SS                     RTC_ALRMBSSR_SS_Msk
17528 #define RTC_ALRMBSSR_MASKSS_Pos             (24U)
17529 #define RTC_ALRMBSSR_MASKSS_Msk             (0xFUL << RTC_ALRMBSSR_MASKSS_Pos)      /*!< 0x0F000000 */
17530 #define RTC_ALRMBSSR_MASKSS                 RTC_ALRMBSSR_MASKSS_Msk
17531 #define RTC_ALRMBSSR_MASKSS_0               (0x1UL << RTC_ALRMBSSR_MASKSS_Pos)      /*!< 0x01000000 */
17532 #define RTC_ALRMBSSR_MASKSS_1               (0x2UL << RTC_ALRMBSSR_MASKSS_Pos)      /*!< 0x02000000 */
17533 #define RTC_ALRMBSSR_MASKSS_2               (0x4UL << RTC_ALRMBSSR_MASKSS_Pos)      /*!< 0x04000000 */
17534 #define RTC_ALRMBSSR_MASKSS_3               (0x8UL << RTC_ALRMBSSR_MASKSS_Pos)      /*!< 0x08000000 */
17535 #define RTC_ALRMBSSR_SSCLR_Pos              (31U)
17536 #define RTC_ALRMBSSR_SSCLR_Msk              (0x1UL << RTC_ALRMBSSR_SSCLR_Pos)       /*!< 0x80000000 */
17537 #define RTC_ALRMBSSR_SSCLR                  RTC_ALRMBSSR_SSCLR_Msk
17538 
17539 /********************  Bits definition for RTC_SR register  *******************/
17540 #define RTC_SR_ALRAF_Pos                    (0U)
17541 #define RTC_SR_ALRAF_Msk                    (0x1UL << RTC_SR_ALRAF_Pos)             /*!< 0x00000001 */
17542 #define RTC_SR_ALRAF                        RTC_SR_ALRAF_Msk
17543 #define RTC_SR_ALRBF_Pos                    (1U)
17544 #define RTC_SR_ALRBF_Msk                    (0x1UL << RTC_SR_ALRBF_Pos)             /*!< 0x00000002 */
17545 #define RTC_SR_ALRBF                        RTC_SR_ALRBF_Msk
17546 #define RTC_SR_WUTF_Pos                     (2U)
17547 #define RTC_SR_WUTF_Msk                     (0x1UL << RTC_SR_WUTF_Pos)              /*!< 0x00000004 */
17548 #define RTC_SR_WUTF                         RTC_SR_WUTF_Msk
17549 #define RTC_SR_TSF_Pos                      (3U)
17550 #define RTC_SR_TSF_Msk                      (0x1UL << RTC_SR_TSF_Pos)               /*!< 0x00000008 */
17551 #define RTC_SR_TSF                          RTC_SR_TSF_Msk
17552 #define RTC_SR_TSOVF_Pos                    (4U)
17553 #define RTC_SR_TSOVF_Msk                    (0x1UL << RTC_SR_TSOVF_Pos)             /*!< 0x00000010 */
17554 #define RTC_SR_TSOVF                        RTC_SR_TSOVF_Msk
17555 #define RTC_SR_ITSF_Pos                     (5U)
17556 #define RTC_SR_ITSF_Msk                     (0x1UL << RTC_SR_ITSF_Pos)              /*!< 0x00000020 */
17557 #define RTC_SR_ITSF                         RTC_SR_ITSF_Msk
17558 #define RTC_SR_SSRUF_Pos                    (6U)
17559 #define RTC_SR_SSRUF_Msk                    (0x1UL << RTC_SR_SSRUF_Pos)             /*!< 0x00000040 */
17560 #define RTC_SR_SSRUF                        RTC_SR_SSRUF_Msk
17561 
17562 /********************  Bits definition for RTC_MISR register  *****************/
17563 #define RTC_MISR_ALRAMF_Pos                 (0U)
17564 #define RTC_MISR_ALRAMF_Msk                 (0x1UL << RTC_MISR_ALRAMF_Pos)          /*!< 0x00000001 */
17565 #define RTC_MISR_ALRAMF                     RTC_MISR_ALRAMF_Msk
17566 #define RTC_MISR_ALRBMF_Pos                 (1U)
17567 #define RTC_MISR_ALRBMF_Msk                 (0x1UL << RTC_MISR_ALRBMF_Pos)          /*!< 0x00000002 */
17568 #define RTC_MISR_ALRBMF                     RTC_MISR_ALRBMF_Msk
17569 #define RTC_MISR_WUTMF_Pos                  (2U)
17570 #define RTC_MISR_WUTMF_Msk                  (0x1UL << RTC_MISR_WUTMF_Pos)           /*!< 0x00000004 */
17571 #define RTC_MISR_WUTMF                      RTC_MISR_WUTMF_Msk
17572 #define RTC_MISR_TSMF_Pos                   (3U)
17573 #define RTC_MISR_TSMF_Msk                   (0x1UL << RTC_MISR_TSMF_Pos)            /*!< 0x00000008 */
17574 #define RTC_MISR_TSMF                       RTC_MISR_TSMF_Msk
17575 #define RTC_MISR_TSOVMF_Pos                 (4U)
17576 #define RTC_MISR_TSOVMF_Msk                 (0x1UL << RTC_MISR_TSOVMF_Pos)          /*!< 0x00000010 */
17577 #define RTC_MISR_TSOVMF                     RTC_MISR_TSOVMF_Msk
17578 #define RTC_MISR_ITSMF_Pos                  (5U)
17579 #define RTC_MISR_ITSMF_Msk                  (0x1UL << RTC_MISR_ITSMF_Pos)           /*!< 0x00000020 */
17580 #define RTC_MISR_ITSMF                      RTC_MISR_ITSMF_Msk
17581 #define RTC_MISR_SSRUMF_Pos                 (6U)
17582 #define RTC_MISR_SSRUMF_Msk                 (0x1UL << RTC_MISR_SSRUMF_Pos)          /*!< 0x00000040 */
17583 #define RTC_MISR_SSRUMF                     RTC_MISR_SSRUMF_Msk
17584 
17585 /********************  Bits definition for RTC_SMISR register  *****************/
17586 #define RTC_SMISR_ALRAMF_Pos                (0U)
17587 #define RTC_SMISR_ALRAMF_Msk                (0x1UL << RTC_SMISR_ALRAMF_Pos)         /*!< 0x00000001 */
17588 #define RTC_SMISR_ALRAMF                    RTC_SMISR_ALRAMF_Msk
17589 #define RTC_SMISR_ALRBMF_Pos                (1U)
17590 #define RTC_SMISR_ALRBMF_Msk                (0x1UL << RTC_SMISR_ALRBMF_Pos)         /*!< 0x00000002 */
17591 #define RTC_SMISR_ALRBMF                    RTC_SMISR_ALRBMF_Msk
17592 #define RTC_SMISR_WUTMF_Pos                 (2U)
17593 #define RTC_SMISR_WUTMF_Msk                 (0x1UL << RTC_SMISR_WUTMF_Pos)          /*!< 0x00000004 */
17594 #define RTC_SMISR_WUTMF                     RTC_SMISR_WUTMF_Msk
17595 #define RTC_SMISR_TSMF_Pos                  (3U)
17596 #define RTC_SMISR_TSMF_Msk                  (0x1UL << RTC_SMISR_TSMF_Pos)           /*!< 0x00000008 */
17597 #define RTC_SMISR_TSMF                      RTC_SMISR_TSMF_Msk
17598 #define RTC_SMISR_TSOVMF_Pos                (4U)
17599 #define RTC_SMISR_TSOVMF_Msk                (0x1UL << RTC_SMISR_TSOVMF_Pos)         /*!< 0x00000010 */
17600 #define RTC_SMISR_TSOVMF                    RTC_SMISR_TSOVMF_Msk
17601 #define RTC_SMISR_ITSMF_Pos                 (5U)
17602 #define RTC_SMISR_ITSMF_Msk                 (0x1UL << RTC_SMISR_ITSMF_Pos)          /*!< 0x00000020 */
17603 #define RTC_SMISR_ITSMF                     RTC_SMISR_ITSMF_Msk
17604 #define RTC_SMISR_SSRUMF_Pos                (6U)
17605 #define RTC_SMISR_SSRUMF_Msk                (0x1UL << RTC_SMISR_SSRUMF_Pos)         /*!< 0x00000040 */
17606 #define RTC_SMISR_SSRUMF                    RTC_SMISR_SSRUMF_Msk
17607 
17608 /********************  Bits definition for RTC_SCR register  ******************/
17609 #define RTC_SCR_CALRAF_Pos                  (0U)
17610 #define RTC_SCR_CALRAF_Msk                  (0x1UL << RTC_SCR_CALRAF_Pos)           /*!< 0x00000001 */
17611 #define RTC_SCR_CALRAF                      RTC_SCR_CALRAF_Msk
17612 #define RTC_SCR_CALRBF_Pos                  (1U)
17613 #define RTC_SCR_CALRBF_Msk                  (0x1UL << RTC_SCR_CALRBF_Pos)           /*!< 0x00000002 */
17614 #define RTC_SCR_CALRBF                      RTC_SCR_CALRBF_Msk
17615 #define RTC_SCR_CWUTF_Pos                   (2U)
17616 #define RTC_SCR_CWUTF_Msk                   (0x1UL << RTC_SCR_CWUTF_Pos)            /*!< 0x00000004 */
17617 #define RTC_SCR_CWUTF                       RTC_SCR_CWUTF_Msk
17618 #define RTC_SCR_CTSF_Pos                    (3U)
17619 #define RTC_SCR_CTSF_Msk                    (0x1UL << RTC_SCR_CTSF_Pos)             /*!< 0x00000008 */
17620 #define RTC_SCR_CTSF                        RTC_SCR_CTSF_Msk
17621 #define RTC_SCR_CTSOVF_Pos                  (4U)
17622 #define RTC_SCR_CTSOVF_Msk                  (0x1UL << RTC_SCR_CTSOVF_Pos)           /*!< 0x00000010 */
17623 #define RTC_SCR_CTSOVF                      RTC_SCR_CTSOVF_Msk
17624 #define RTC_SCR_CITSF_Pos                   (5U)
17625 #define RTC_SCR_CITSF_Msk                   (0x1UL << RTC_SCR_CITSF_Pos)            /*!< 0x00000020 */
17626 #define RTC_SCR_CITSF                       RTC_SCR_CITSF_Msk
17627 #define RTC_SCR_CSSRUF_Pos                  (6U)
17628 #define RTC_SCR_CSSRUF_Msk                  (0x1UL << RTC_SCR_CSSRUF_Pos)           /*!< 0x00000040 */
17629 #define RTC_SCR_CSSRUF                      RTC_SCR_CSSRUF_Msk
17630 
17631 /********************  Bits definition for RTC_ALRABINR register  ******************/
17632 #define RTC_ALRABINR_SS_Pos                 (0U)
17633 #define RTC_ALRABINR_SS_Msk                 (0xFFFFFFFFUL << RTC_ALRABINR_SS_Pos)   /*!< 0xFFFFFFFF */
17634 #define RTC_ALRABINR_SS                     RTC_ALRABINR_SS_Msk
17635 
17636 /********************  Bits definition for RTC_ALRBBINR register  ******************/
17637 #define RTC_ALRBBINR_SS_Pos                 (0U)
17638 #define RTC_ALRBBINR_SS_Msk                 (0xFFFFFFFFUL << RTC_ALRBBINR_SS_Pos)   /*!< 0xFFFFFFFF */
17639 #define RTC_ALRBBINR_SS                     RTC_ALRBBINR_SS_Msk
17640 
17641 /******************************************************************************/
17642 /*                                                                            */
17643 /*                     Tamper and backup register (TAMP)                      */
17644 /*                                                                            */
17645 /******************************************************************************/
17646 /********************  Bits definition for TAMP_CR1 register  *****************/
17647 #define TAMP_CR1_TAMP1E_Pos                 (0U)
17648 #define TAMP_CR1_TAMP1E_Msk                 (0x1UL << TAMP_CR1_TAMP1E_Pos)          /*!< 0x00000001 */
17649 #define TAMP_CR1_TAMP1E                     TAMP_CR1_TAMP1E_Msk
17650 #define TAMP_CR1_TAMP2E_Pos                 (1U)
17651 #define TAMP_CR1_TAMP2E_Msk                 (0x1UL << TAMP_CR1_TAMP2E_Pos)          /*!< 0x00000002 */
17652 #define TAMP_CR1_TAMP2E                     TAMP_CR1_TAMP2E_Msk
17653 #define TAMP_CR1_TAMP3E_Pos                 (2U)
17654 #define TAMP_CR1_TAMP3E_Msk                 (0x1UL << TAMP_CR1_TAMP3E_Pos)          /*!< 0x00000004 */
17655 #define TAMP_CR1_TAMP3E                     TAMP_CR1_TAMP3E_Msk
17656 #define TAMP_CR1_TAMP4E_Pos                 (3U)
17657 #define TAMP_CR1_TAMP4E_Msk                 (0x1UL << TAMP_CR1_TAMP4E_Pos)          /*!< 0x00000008 */
17658 #define TAMP_CR1_TAMP4E                     TAMP_CR1_TAMP4E_Msk
17659 #define TAMP_CR1_TAMP5E_Pos                 (4U)
17660 #define TAMP_CR1_TAMP5E_Msk                 (0x1UL << TAMP_CR1_TAMP5E_Pos)          /*!< 0x00000010 */
17661 #define TAMP_CR1_TAMP5E                     TAMP_CR1_TAMP5E_Msk
17662 #define TAMP_CR1_TAMP6E_Pos                 (5U)
17663 #define TAMP_CR1_TAMP6E_Msk                 (0x1UL << TAMP_CR1_TAMP6E_Pos)          /*!< 0x00000020 */
17664 #define TAMP_CR1_TAMP6E                     TAMP_CR1_TAMP6E_Msk
17665 #define TAMP_CR1_TAMP7E_Pos                 (6U)
17666 #define TAMP_CR1_TAMP7E_Msk                 (0x1UL << TAMP_CR1_TAMP7E_Pos)          /*!< 0x00000040 */
17667 #define TAMP_CR1_TAMP7E                     TAMP_CR1_TAMP7E_Msk
17668 #define TAMP_CR1_TAMP8E_Pos                 (7U)
17669 #define TAMP_CR1_TAMP8E_Msk                 (0x1UL << TAMP_CR1_TAMP8E_Pos)          /*!< 0x00000080 */
17670 #define TAMP_CR1_TAMP8E                     TAMP_CR1_TAMP8E_Msk
17671 #define TAMP_CR1_ITAMP1E_Pos                (16U)
17672 #define TAMP_CR1_ITAMP1E_Msk                (0x1UL << TAMP_CR1_ITAMP1E_Pos)         /*!< 0x00010000 */
17673 #define TAMP_CR1_ITAMP1E                    TAMP_CR1_ITAMP1E_Msk
17674 #define TAMP_CR1_ITAMP2E_Pos                (17U)
17675 #define TAMP_CR1_ITAMP2E_Msk                (0x1UL << TAMP_CR1_ITAMP2E_Pos)         /*!< 0x00040000 */
17676 #define TAMP_CR1_ITAMP2E                    TAMP_CR1_ITAMP2E_Msk
17677 #define TAMP_CR1_ITAMP3E_Pos                (18U)
17678 #define TAMP_CR1_ITAMP3E_Msk                (0x1UL << TAMP_CR1_ITAMP3E_Pos)         /*!< 0x00040000 */
17679 #define TAMP_CR1_ITAMP3E                    TAMP_CR1_ITAMP3E_Msk
17680 #define TAMP_CR1_ITAMP5E_Pos                (20U)
17681 #define TAMP_CR1_ITAMP5E_Msk                (0x1UL << TAMP_CR1_ITAMP5E_Pos)         /*!< 0x00100000 */
17682 #define TAMP_CR1_ITAMP5E                    TAMP_CR1_ITAMP5E_Msk
17683 #define TAMP_CR1_ITAMP6E_Pos                (21U)
17684 #define TAMP_CR1_ITAMP6E_Msk                (0x1UL << TAMP_CR1_ITAMP6E_Pos)         /*!< 0x00200000 */
17685 #define TAMP_CR1_ITAMP6E                    TAMP_CR1_ITAMP6E_Msk
17686 #define TAMP_CR1_ITAMP7E_Pos                (22U)
17687 #define TAMP_CR1_ITAMP7E_Msk                (0x1UL << TAMP_CR1_ITAMP7E_Pos)         /*!< 0x00400000 */
17688 #define TAMP_CR1_ITAMP7E                    TAMP_CR1_ITAMP7E_Msk
17689 #define TAMP_CR1_ITAMP8E_Pos                (23U)
17690 #define TAMP_CR1_ITAMP8E_Msk                (0x1UL << TAMP_CR1_ITAMP8E_Pos)         /*!< 0x00800000 */
17691 #define TAMP_CR1_ITAMP8E                    TAMP_CR1_ITAMP8E_Msk
17692 #define TAMP_CR1_ITAMP9E_Pos                (24U)
17693 #define TAMP_CR1_ITAMP9E_Msk                (0x1UL << TAMP_CR1_ITAMP9E_Pos)         /*!< 0x01000000 */
17694 #define TAMP_CR1_ITAMP9E                    TAMP_CR1_ITAMP9E_Msk
17695 #define TAMP_CR1_ITAMP11E_Pos               (26U)
17696 #define TAMP_CR1_ITAMP11E_Msk               (0x1UL << TAMP_CR1_ITAMP11E_Pos)        /*!< 0x04000000 */
17697 #define TAMP_CR1_ITAMP11E                   TAMP_CR1_ITAMP11E_Msk
17698 #define TAMP_CR1_ITAMP12E_Pos               (27U)
17699 #define TAMP_CR1_ITAMP12E_Msk               (0x1UL << TAMP_CR1_ITAMP12E_Pos)        /*!< 0x04000000 */
17700 #define TAMP_CR1_ITAMP12E                   TAMP_CR1_ITAMP12E_Msk
17701 #define TAMP_CR1_ITAMP13E_Pos               (28U)
17702 #define TAMP_CR1_ITAMP13E_Msk               (0x1UL << TAMP_CR1_ITAMP13E_Pos)        /*!< 0x04000000 */
17703 #define TAMP_CR1_ITAMP13E                   TAMP_CR1_ITAMP13E_Msk
17704 
17705 /********************  Bits definition for TAMP_CR2 register  *****************/
17706 #define TAMP_CR2_TAMP1NOERASE_Pos           (0U)
17707 #define TAMP_CR2_TAMP1NOERASE_Msk           (0x1UL << TAMP_CR2_TAMP1NOERASE_Pos)    /*!< 0x00000001 */
17708 #define TAMP_CR2_TAMP1NOERASE               TAMP_CR2_TAMP1NOERASE_Msk
17709 #define TAMP_CR2_TAMP2NOERASE_Pos           (1U)
17710 #define TAMP_CR2_TAMP2NOERASE_Msk           (0x1UL << TAMP_CR2_TAMP2NOERASE_Pos)    /*!< 0x00000002 */
17711 #define TAMP_CR2_TAMP2NOERASE               TAMP_CR2_TAMP2NOERASE_Msk
17712 #define TAMP_CR2_TAMP3NOERASE_Pos           (2U)
17713 #define TAMP_CR2_TAMP3NOERASE_Msk           (0x1UL << TAMP_CR2_TAMP3NOERASE_Pos)    /*!< 0x00000004 */
17714 #define TAMP_CR2_TAMP3NOERASE               TAMP_CR2_TAMP3NOERASE_Msk
17715 #define TAMP_CR2_TAMP4NOERASE_Pos           (3U)
17716 #define TAMP_CR2_TAMP4NOERASE_Msk           (0x1UL << TAMP_CR2_TAMP4NOERASE_Pos)    /*!< 0x00000008 */
17717 #define TAMP_CR2_TAMP4NOERASE               TAMP_CR2_TAMP4NOERASE_Msk
17718 #define TAMP_CR2_TAMP5NOERASE_Pos           (4U)
17719 #define TAMP_CR2_TAMP5NOERASE_Msk           (0x1UL << TAMP_CR2_TAMP5NOERASE_Pos)    /*!< 0x00000010 */
17720 #define TAMP_CR2_TAMP5NOERASE               TAMP_CR2_TAMP5NOERASE_Msk
17721 #define TAMP_CR2_TAMP6NOERASE_Pos           (5U)
17722 #define TAMP_CR2_TAMP6NOERASE_Msk           (0x1UL << TAMP_CR2_TAMP6NOERASE_Pos)    /*!< 0x00000020 */
17723 #define TAMP_CR2_TAMP6NOERASE               TAMP_CR2_TAMP6NOERASE_Msk
17724 #define TAMP_CR2_TAMP7NOERASE_Pos           (6U)
17725 #define TAMP_CR2_TAMP7NOERASE_Msk           (0x1UL << TAMP_CR2_TAMP7NOERASE_Pos)    /*!< 0x00000040 */
17726 #define TAMP_CR2_TAMP7NOERASE               TAMP_CR2_TAMP7NOERASE_Msk
17727 #define TAMP_CR2_TAMP8NOERASE_Pos           (7U)
17728 #define TAMP_CR2_TAMP8NOERASE_Msk           (0x1UL << TAMP_CR2_TAMP8NOERASE_Pos)    /*!< 0x00000080 */
17729 #define TAMP_CR2_TAMP8NOERASE               TAMP_CR2_TAMP8NOERASE_Msk
17730 #define TAMP_CR2_TAMP1MSK_Pos               (16U)
17731 #define TAMP_CR2_TAMP1MSK_Msk               (0x1UL << TAMP_CR2_TAMP1MSK_Pos)        /*!< 0x00010000 */
17732 #define TAMP_CR2_TAMP1MSK                   TAMP_CR2_TAMP1MSK_Msk
17733 #define TAMP_CR2_TAMP2MSK_Pos               (17U)
17734 #define TAMP_CR2_TAMP2MSK_Msk               (0x1UL << TAMP_CR2_TAMP2MSK_Pos)        /*!< 0x00020000 */
17735 #define TAMP_CR2_TAMP2MSK                   TAMP_CR2_TAMP2MSK_Msk
17736 #define TAMP_CR2_TAMP3MSK_Pos               (18U)
17737 #define TAMP_CR2_TAMP3MSK_Msk               (0x1UL << TAMP_CR2_TAMP3MSK_Pos)        /*!< 0x00040000 */
17738 #define TAMP_CR2_TAMP3MSK                   TAMP_CR2_TAMP3MSK_Msk
17739 #define TAMP_CR2_BKBLOCK_Pos                (22U)
17740 #define TAMP_CR2_BKBLOCK_Msk                (0x1UL << TAMP_CR2_BKBLOCK_Pos)         /*!< 0x00800000 */
17741 #define TAMP_CR2_BKBLOCK                    TAMP_CR2_BKBLOCK_Msk
17742 #define TAMP_CR2_BKERASE_Pos                (23U)
17743 #define TAMP_CR2_BKERASE_Msk                (0x1UL << TAMP_CR2_BKERASE_Pos)         /*!< 0x00800000 */
17744 #define TAMP_CR2_BKERASE                    TAMP_CR2_BKERASE_Msk
17745 #define TAMP_CR2_TAMP1TRG_Pos               (24U)
17746 #define TAMP_CR2_TAMP1TRG_Msk               (0x1UL << TAMP_CR2_TAMP1TRG_Pos)        /*!< 0x01000000 */
17747 #define TAMP_CR2_TAMP1TRG                   TAMP_CR2_TAMP1TRG_Msk
17748 #define TAMP_CR2_TAMP2TRG_Pos               (25U)
17749 #define TAMP_CR2_TAMP2TRG_Msk               (0x1UL << TAMP_CR2_TAMP2TRG_Pos)        /*!< 0x02000000 */
17750 #define TAMP_CR2_TAMP2TRG                   TAMP_CR2_TAMP2TRG_Msk
17751 #define TAMP_CR2_TAMP3TRG_Pos               (26U)
17752 #define TAMP_CR2_TAMP3TRG_Msk               (0x1UL << TAMP_CR2_TAMP3TRG_Pos)        /*!< 0x02000000 */
17753 #define TAMP_CR2_TAMP3TRG                   TAMP_CR2_TAMP3TRG_Msk
17754 #define TAMP_CR2_TAMP4TRG_Pos               (27U)
17755 #define TAMP_CR2_TAMP4TRG_Msk               (0x1UL << TAMP_CR2_TAMP4TRG_Pos)        /*!< 0x02000000 */
17756 #define TAMP_CR2_TAMP4TRG                   TAMP_CR2_TAMP4TRG_Msk
17757 #define TAMP_CR2_TAMP5TRG_Pos               (28U)
17758 #define TAMP_CR2_TAMP5TRG_Msk               (0x1UL << TAMP_CR2_TAMP5TRG_Pos)        /*!< 0x02000000 */
17759 #define TAMP_CR2_TAMP5TRG                   TAMP_CR2_TAMP5TRG_Msk
17760 #define TAMP_CR2_TAMP6TRG_Pos               (29U)
17761 #define TAMP_CR2_TAMP6TRG_Msk               (0x1UL << TAMP_CR2_TAMP6TRG_Pos)        /*!< 0x02000000 */
17762 #define TAMP_CR2_TAMP6TRG                   TAMP_CR2_TAMP6TRG_Msk
17763 #define TAMP_CR2_TAMP7TRG_Pos               (30U)
17764 #define TAMP_CR2_TAMP7TRG_Msk               (0x1UL << TAMP_CR2_TAMP7TRG_Pos)        /*!< 0x02000000 */
17765 #define TAMP_CR2_TAMP7TRG                   TAMP_CR2_TAMP7TRG_Msk
17766 #define TAMP_CR2_TAMP8TRG_Pos               (31U)
17767 #define TAMP_CR2_TAMP8TRG_Msk               (0x1UL << TAMP_CR2_TAMP8TRG_Pos)        /*!< 0x02000000 */
17768 #define TAMP_CR2_TAMP8TRG                   TAMP_CR2_TAMP8TRG_Msk
17769 
17770 /********************  Bits definition for TAMP_CR3 register  *****************/
17771 #define TAMP_CR3_ITAMP1NOER_Pos             (0U)
17772 #define TAMP_CR3_ITAMP1NOER_Msk             (0x1UL << TAMP_CR3_ITAMP1NOER_Pos)      /*!< 0x00000001 */
17773 #define TAMP_CR3_ITAMP1NOER                 TAMP_CR3_ITAMP1NOER_Msk
17774 #define TAMP_CR3_ITAMP2NOER_Pos             (1U)
17775 #define TAMP_CR3_ITAMP2NOER_Msk             (0x1UL << TAMP_CR3_ITAMP2NOER_Pos)      /*!< 0x00000002 */
17776 #define TAMP_CR3_ITAMP2NOER                 TAMP_CR3_ITAMP2NOER_Msk
17777 #define TAMP_CR3_ITAMP3NOER_Pos             (2U)
17778 #define TAMP_CR3_ITAMP3NOER_Msk             (0x1UL << TAMP_CR3_ITAMP3NOER_Pos)      /*!< 0x00000004 */
17779 #define TAMP_CR3_ITAMP3NOER                 TAMP_CR3_ITAMP3NOER_Msk
17780 #define TAMP_CR3_ITAMP5NOER_Pos             (4U)
17781 #define TAMP_CR3_ITAMP5NOER_Msk             (0x1UL << TAMP_CR3_ITAMP5NOER_Pos)      /*!< 0x00000010 */
17782 #define TAMP_CR3_ITAMP5NOER                 TAMP_CR3_ITAMP5NOER_Msk
17783 #define TAMP_CR3_ITAMP6NOER_Pos             (5U)
17784 #define TAMP_CR3_ITAMP6NOER_Msk             (0x1UL << TAMP_CR3_ITAMP6NOER_Pos)      /*!< 0x00000020 */
17785 #define TAMP_CR3_ITAMP6NOER                 TAMP_CR3_ITAMP6NOER_Msk
17786 #define TAMP_CR3_ITAMP7NOER_Pos             (6U)
17787 #define TAMP_CR3_ITAMP7NOER_Msk             (0x1UL << TAMP_CR3_ITAMP7NOER)
17788 #define TAMP_CR3_ITAMP7NOER                 TAMP_CR3_ITAMP7NOER_Msk
17789 #define TAMP_CR3_ITAMP8NOER_Pos             (7U)
17790 #define TAMP_CR3_ITAMP8NOER_Msk             (0x1UL << TAMP_CR3_ITAMP8NOER_Pos)      /*!< 0x00000040 */
17791 #define TAMP_CR3_ITAMP8NOER                 TAMP_CR3_ITAMP8NOER_Msk
17792 #define TAMP_CR3_ITAMP9NOER_Pos             (8U)
17793 #define TAMP_CR3_ITAMP9NOER_Msk             (0x1UL << TAMP_CR3_ITAMP9NOER_Pos)      /*!< 0x00000100 */
17794 #define TAMP_CR3_ITAMP9NOER                 TAMP_CR3_ITAMP9NOER_Msk
17795 #define TAMP_CR3_ITAMP11NOER_Pos            (10U)
17796 #define TAMP_CR3_ITAMP11NOER_Msk            (0x1UL << TAMP_CR3_ITAMP11NOER_Pos)     /*!< 0x00000800 */
17797 #define TAMP_CR3_ITAMP11NOER                TAMP_CR3_ITAMP11NOER_Msk
17798 #define TAMP_CR3_ITAMP12NOER_Pos            (11U)
17799 #define TAMP_CR3_ITAMP12NOER_Msk            (0x1UL << TAMP_CR3_ITAMP12NOER_Pos)     /*!< 0x00000800 */
17800 #define TAMP_CR3_ITAMP12NOER                TAMP_CR3_ITAMP12NOER_Msk
17801 #define TAMP_CR3_ITAMP13NOER_Pos            (12U)
17802 #define TAMP_CR3_ITAMP13NOER_Msk            (0x1UL << TAMP_CR3_ITAMP13NOER_Pos)     /*!< 0x00000800 */
17803 #define TAMP_CR3_ITAMP13NOER                TAMP_CR3_ITAMP13NOER_Msk
17804 
17805 /********************  Bits definition for TAMP_FLTCR register  ***************/
17806 #define TAMP_FLTCR_TAMPFREQ_Pos             (0U)
17807 #define TAMP_FLTCR_TAMPFREQ_Msk             (0x7UL << TAMP_FLTCR_TAMPFREQ_Pos)      /*!< 0x00000007 */
17808 #define TAMP_FLTCR_TAMPFREQ                 TAMP_FLTCR_TAMPFREQ_Msk
17809 #define TAMP_FLTCR_TAMPFREQ_0               (0x1UL << TAMP_FLTCR_TAMPFREQ_Pos)      /*!< 0x00000001 */
17810 #define TAMP_FLTCR_TAMPFREQ_1               (0x2UL << TAMP_FLTCR_TAMPFREQ_Pos)      /*!< 0x00000002 */
17811 #define TAMP_FLTCR_TAMPFREQ_2               (0x4UL << TAMP_FLTCR_TAMPFREQ_Pos)      /*!< 0x00000004 */
17812 #define TAMP_FLTCR_TAMPFLT_Pos              (3U)
17813 #define TAMP_FLTCR_TAMPFLT_Msk              (0x3UL << TAMP_FLTCR_TAMPFLT_Pos)       /*!< 0x00000018 */
17814 #define TAMP_FLTCR_TAMPFLT                  TAMP_FLTCR_TAMPFLT_Msk
17815 #define TAMP_FLTCR_TAMPFLT_0                (0x1UL << TAMP_FLTCR_TAMPFLT_Pos)       /*!< 0x00000008 */
17816 #define TAMP_FLTCR_TAMPFLT_1                (0x2UL << TAMP_FLTCR_TAMPFLT_Pos)       /*!< 0x00000010 */
17817 #define TAMP_FLTCR_TAMPPRCH_Pos             (5U)
17818 #define TAMP_FLTCR_TAMPPRCH_Msk             (0x3UL << TAMP_FLTCR_TAMPPRCH_Pos)      /*!< 0x00000060 */
17819 #define TAMP_FLTCR_TAMPPRCH                 TAMP_FLTCR_TAMPPRCH_Msk
17820 #define TAMP_FLTCR_TAMPPRCH_0               (0x1UL << TAMP_FLTCR_TAMPPRCH_Pos)      /*!< 0x00000020 */
17821 #define TAMP_FLTCR_TAMPPRCH_1               (0x2UL << TAMP_FLTCR_TAMPPRCH_Pos)      /*!< 0x00000040 */
17822 #define TAMP_FLTCR_TAMPPUDIS_Pos            (7U)
17823 #define TAMP_FLTCR_TAMPPUDIS_Msk            (0x1UL << TAMP_FLTCR_TAMPPUDIS_Pos)     /*!< 0x00000080 */
17824 #define TAMP_FLTCR_TAMPPUDIS                TAMP_FLTCR_TAMPPUDIS_Msk
17825 
17826 /********************  Bits definition for TAMP_ATCR1 register  ***************/
17827 #define TAMP_ATCR1_TAMP1AM_Pos              (0U)
17828 #define TAMP_ATCR1_TAMP1AM_Msk              (0x1UL << TAMP_ATCR1_TAMP1AM_Pos)       /*!< 0x00000001 */
17829 #define TAMP_ATCR1_TAMP1AM                  TAMP_ATCR1_TAMP1AM_Msk
17830 #define TAMP_ATCR1_TAMP2AM_Pos              (1U)
17831 #define TAMP_ATCR1_TAMP2AM_Msk              (0x1UL << TAMP_ATCR1_TAMP2AM_Pos)       /*!< 0x00000002 */
17832 #define TAMP_ATCR1_TAMP2AM                  TAMP_ATCR1_TAMP2AM_Msk
17833 #define TAMP_ATCR1_TAMP3AM_Pos              (2U)
17834 #define TAMP_ATCR1_TAMP3AM_Msk              (0x1UL << TAMP_ATCR1_TAMP3AM_Pos)       /*!< 0x00000004 */
17835 #define TAMP_ATCR1_TAMP3AM                  TAMP_ATCR1_TAMP3AM_Msk
17836 #define TAMP_ATCR1_TAMP4AM_Pos              (3U)
17837 #define TAMP_ATCR1_TAMP4AM_Msk              (0x1UL << TAMP_ATCR1_TAMP4AM_Pos)       /*!< 0x00000008 */
17838 #define TAMP_ATCR1_TAMP4AM                  TAMP_ATCR1_TAMP4AM_Msk
17839 #define TAMP_ATCR1_TAMP5AM_Pos              (4U)
17840 #define TAMP_ATCR1_TAMP5AM_Msk              (0x1UL << TAMP_ATCR1_TAMP5AM_Pos)       /*!< 0x00000010 */
17841 #define TAMP_ATCR1_TAMP5AM                  TAMP_ATCR1_TAMP5AM_Msk
17842 #define TAMP_ATCR1_TAMP6AM_Pos              (5U)
17843 #define TAMP_ATCR1_TAMP6AM_Msk              (0x1UL << TAMP_ATCR1_TAMP6AM_Pos)       /*!< 0x00000010 */
17844 #define TAMP_ATCR1_TAMP6AM                  TAMP_ATCR1_TAMP6AM_Msk
17845 #define TAMP_ATCR1_TAMP7AM_Pos              (6U)
17846 #define TAMP_ATCR1_TAMP7AM_Msk              (0x1UL << TAMP_ATCR1_TAMP7AM_Pos)       /*!< 0x00000040 */
17847 #define TAMP_ATCR1_TAMP7AM                  TAMP_ATCR1_TAMP7AM_Msk
17848 #define TAMP_ATCR1_TAMP8AM_Pos              (7U)
17849 #define TAMP_ATCR1_TAMP8AM_Msk              (0x1UL << TAMP_ATCR1_TAMP8AM_Pos)       /*!< 0x00000080 */
17850 #define TAMP_ATCR1_TAMP8AM                  TAMP_ATCR1_TAMP8AM_Msk
17851 #define TAMP_ATCR1_ATOSEL1_Pos              (8U)
17852 #define TAMP_ATCR1_ATOSEL1_Msk              (0x3UL << TAMP_ATCR1_ATOSEL1_Pos)       /*!< 0x00000300 */
17853 #define TAMP_ATCR1_ATOSEL1                  TAMP_ATCR1_ATOSEL1_Msk
17854 #define TAMP_ATCR1_ATOSEL1_0                (0x1UL << TAMP_ATCR1_ATOSEL1_Pos)       /*!< 0x00000100 */
17855 #define TAMP_ATCR1_ATOSEL1_1                (0x2UL << TAMP_ATCR1_ATOSEL1_Pos)       /*!< 0x00000200 */
17856 #define TAMP_ATCR1_ATOSEL2_Pos              (10U)
17857 #define TAMP_ATCR1_ATOSEL2_Msk              (0x3UL << TAMP_ATCR1_ATOSEL2_Pos)       /*!< 0x00000C00 */
17858 #define TAMP_ATCR1_ATOSEL2                  TAMP_ATCR1_ATOSEL2_Msk
17859 #define TAMP_ATCR1_ATOSEL2_0                (0x1UL << TAMP_ATCR1_ATOSEL2_Pos)       /*!< 0x00000400 */
17860 #define TAMP_ATCR1_ATOSEL2_1                (0x2UL << TAMP_ATCR1_ATOSEL2_Pos)       /*!< 0x00000800 */
17861 #define TAMP_ATCR1_ATOSEL3_Pos              (12U)
17862 #define TAMP_ATCR1_ATOSEL3_Msk              (0x3UL << TAMP_ATCR1_ATOSEL3_Pos)       /*!< 0x00003000 */
17863 #define TAMP_ATCR1_ATOSEL3                  TAMP_ATCR1_ATOSEL3_Msk
17864 #define TAMP_ATCR1_ATOSEL3_0                (0x1UL << TAMP_ATCR1_ATOSEL3_Pos)       /*!< 0x00001000 */
17865 #define TAMP_ATCR1_ATOSEL3_1                (0x2UL << TAMP_ATCR1_ATOSEL3_Pos)       /*!< 0x00002000 */
17866 #define TAMP_ATCR1_ATOSEL4_Pos              (14U)
17867 #define TAMP_ATCR1_ATOSEL4_Msk              (0x3UL << TAMP_ATCR1_ATOSEL4_Pos)       /*!< 0x0000C000 */
17868 #define TAMP_ATCR1_ATOSEL4                  TAMP_ATCR1_ATOSEL4_Msk
17869 #define TAMP_ATCR1_ATOSEL4_0                (0x1UL << TAMP_ATCR1_ATOSEL4_Pos)       /*!< 0x00004000 */
17870 #define TAMP_ATCR1_ATOSEL4_1                (0x2UL << TAMP_ATCR1_ATOSEL4_Pos)       /*!< 0x00008000 */
17871 #define TAMP_ATCR1_ATCKSEL_Pos              (16U)
17872 #define TAMP_ATCR1_ATCKSEL_Msk              (0x7UL << TAMP_ATCR1_ATCKSEL_Pos)       /*!< 0x00070000 */
17873 #define TAMP_ATCR1_ATCKSEL                  TAMP_ATCR1_ATCKSEL_Msk
17874 #define TAMP_ATCR1_ATCKSEL_0                (0x1UL << TAMP_ATCR1_ATCKSEL_Pos)       /*!< 0x00010000 */
17875 #define TAMP_ATCR1_ATCKSEL_1                (0x2UL << TAMP_ATCR1_ATCKSEL_Pos)       /*!< 0x00020000 */
17876 #define TAMP_ATCR1_ATCKSEL_2                (0x4UL << TAMP_ATCR1_ATCKSEL_Pos)       /*!< 0x00040000 */
17877 #define TAMP_ATCR1_ATPER_Pos                (24U)
17878 #define TAMP_ATCR1_ATPER_Msk                (0x7UL << TAMP_ATCR1_ATPER_Pos)         /*!< 0x07000000 */
17879 #define TAMP_ATCR1_ATPER                    TAMP_ATCR1_ATPER_Msk
17880 #define TAMP_ATCR1_ATPER_0                  (0x1UL << TAMP_ATCR1_ATPER_Pos)         /*!< 0x01000000 */
17881 #define TAMP_ATCR1_ATPER_1                  (0x2UL << TAMP_ATCR1_ATPER_Pos)         /*!< 0x02000000 */
17882 #define TAMP_ATCR1_ATPER_2                  (0x4UL << TAMP_ATCR1_ATPER_Pos)         /*!< 0x04000000 */
17883 #define TAMP_ATCR1_ATOSHARE_Pos             (30U)
17884 #define TAMP_ATCR1_ATOSHARE_Msk             (0x1UL << TAMP_ATCR1_ATOSHARE_Pos)      /*!< 0x40000000 */
17885 #define TAMP_ATCR1_ATOSHARE                 TAMP_ATCR1_ATOSHARE_Msk
17886 #define TAMP_ATCR1_FLTEN_Pos                (31U)
17887 #define TAMP_ATCR1_FLTEN_Msk                (0x1UL << TAMP_ATCR1_FLTEN_Pos)         /*!< 0x80000000 */
17888 #define TAMP_ATCR1_FLTEN                    TAMP_ATCR1_FLTEN_Msk
17889 
17890 /********************  Bits definition for TAMP_ATSEEDR register  ******************/
17891 #define TAMP_ATSEEDR_SEED_Pos               (0U)
17892 #define TAMP_ATSEEDR_SEED_Msk               (0xFFFFFFFFUL << TAMP_ATSEEDR_SEED_Pos) /*!< 0xFFFFFFFF */
17893 #define TAMP_ATSEEDR_SEED                   TAMP_ATSEEDR_SEED_Msk
17894 
17895 /********************  Bits definition for TAMP_ATOR register  ******************/
17896 #define TAMP_ATOR_PRNG_Pos                  (0U)
17897 #define TAMP_ATOR_PRNG_Msk                  (0xFF << TAMP_ATOR_PRNG_Pos)            /*!< 0x000000FF */
17898 #define TAMP_ATOR_PRNG                      TAMP_ATOR_PRNG_Msk
17899 #define TAMP_ATOR_PRNG_0                    (0x1UL << TAMP_ATOR_PRNG_Pos)           /*!< 0x00000001 */
17900 #define TAMP_ATOR_PRNG_1                    (0x2UL << TAMP_ATOR_PRNG_Pos)           /*!< 0x00000002 */
17901 #define TAMP_ATOR_PRNG_2                    (0x4UL << TAMP_ATOR_PRNG_Pos)           /*!< 0x00000004 */
17902 #define TAMP_ATOR_PRNG_3                    (0x8UL << TAMP_ATOR_PRNG_Pos)           /*!< 0x00000008 */
17903 #define TAMP_ATOR_PRNG_4                    (0x10UL << TAMP_ATOR_PRNG_Pos)          /*!< 0x00000010 */
17904 #define TAMP_ATOR_PRNG_5                    (0x20UL << TAMP_ATOR_PRNG_Pos)          /*!< 0x00000020 */
17905 #define TAMP_ATOR_PRNG_6                    (0x40UL << TAMP_ATOR_PRNG_Pos)          /*!< 0x00000040 */
17906 #define TAMP_ATOR_PRNG_7                    (0x80UL << TAMP_ATOR_PRNG_Pos)          /*!< 0x00000080 */
17907 #define TAMP_ATOR_SEEDF_Pos                 (14U)
17908 #define TAMP_ATOR_SEEDF_Msk                 (1UL << TAMP_ATOR_SEEDF_Pos)            /*!< 0x00004000 */
17909 #define TAMP_ATOR_SEEDF                     TAMP_ATOR_SEEDF_Msk
17910 #define TAMP_ATOR_INITS_Pos                 (15U)
17911 #define TAMP_ATOR_INITS_Msk                 (1UL << TAMP_ATOR_INITS_Pos)            /*!< 0x00008000 */
17912 #define TAMP_ATOR_INITS                     TAMP_ATOR_INITS_Msk
17913 
17914 /********************  Bits definition for TAMP_ATCR2 register  ***************/
17915 #define TAMP_ATCR2_ATOSEL1_Pos              (8U)
17916 #define TAMP_ATCR2_ATOSEL1_Msk              (0x7UL << TAMP_ATCR2_ATOSEL1_Pos)       /*!< 0x00000700 */
17917 #define TAMP_ATCR2_ATOSEL1                  TAMP_ATCR2_ATOSEL1_Msk
17918 #define TAMP_ATCR2_ATOSEL1_0                (0x1UL << TAMP_ATCR2_ATOSEL1_Pos)       /*!< 0x00000100 */
17919 #define TAMP_ATCR2_ATOSEL1_1                (0x2UL << TAMP_ATCR2_ATOSEL1_Pos)       /*!< 0x00000200 */
17920 #define TAMP_ATCR2_ATOSEL1_2                (0x4UL << TAMP_ATCR2_ATOSEL1_Pos)       /*!< 0x00000400 */
17921 #define TAMP_ATCR2_ATOSEL2_Pos              (11U)
17922 #define TAMP_ATCR2_ATOSEL2_Msk              (0x7UL << TAMP_ATCR2_ATOSEL2_Pos)       /*!< 0x00003800 */
17923 #define TAMP_ATCR2_ATOSEL2                  TAMP_ATCR2_ATOSEL2_Msk
17924 #define TAMP_ATCR2_ATOSEL2_0                (0x1UL << TAMP_ATCR2_ATOSEL2_Pos)       /*!< 0x00000800 */
17925 #define TAMP_ATCR2_ATOSEL2_1                (0x2UL << TAMP_ATCR2_ATOSEL2_Pos)       /*!< 0x00001000 */
17926 #define TAMP_ATCR2_ATOSEL2_2                (0x4UL << TAMP_ATCR2_ATOSEL2_Pos)       /*!< 0x00002000 */
17927 #define TAMP_ATCR2_ATOSEL3_Pos              (14U)
17928 #define TAMP_ATCR2_ATOSEL3_Msk              (0x7UL << TAMP_ATCR2_ATOSEL3_Pos)       /*!< 0x0001C000 */
17929 #define TAMP_ATCR2_ATOSEL3                  TAMP_ATCR2_ATOSEL3_Msk
17930 #define TAMP_ATCR2_ATOSEL3_0                (0x1UL << TAMP_ATCR2_ATOSEL3_Pos)       /*!< 0x00004000 */
17931 #define TAMP_ATCR2_ATOSEL3_1                (0x2UL << TAMP_ATCR2_ATOSEL3_Pos)       /*!< 0x00008000 */
17932 #define TAMP_ATCR2_ATOSEL3_2                (0x4UL << TAMP_ATCR2_ATOSEL3_Pos)       /*!< 0x00010000 */
17933 #define TAMP_ATCR2_ATOSEL4_Pos              (17U)
17934 #define TAMP_ATCR2_ATOSEL4_Msk              (0x7UL << TAMP_ATCR2_ATOSEL4_Pos)       /*!< 0x000E0000 */
17935 #define TAMP_ATCR2_ATOSEL4                  TAMP_ATCR2_ATOSEL4_Msk
17936 #define TAMP_ATCR2_ATOSEL4_0                (0x1UL << TAMP_ATCR2_ATOSEL4_Pos)       /*!< 0x00020000 */
17937 #define TAMP_ATCR2_ATOSEL4_1                (0x2UL << TAMP_ATCR2_ATOSEL4_Pos)       /*!< 0x00040000 */
17938 #define TAMP_ATCR2_ATOSEL4_2                (0x4UL << TAMP_ATCR2_ATOSEL4_Pos)       /*!< 0x00080000 */
17939 #define TAMP_ATCR2_ATOSEL5_Pos              (20U)
17940 #define TAMP_ATCR2_ATOSEL5_Msk              (0x7UL << TAMP_ATCR2_ATOSEL5_Pos)       /*!< 0x00700000 */
17941 #define TAMP_ATCR2_ATOSEL5                  TAMP_ATCR2_ATOSEL5_Msk
17942 #define TAMP_ATCR2_ATOSEL5_0                (0x1UL << TAMP_ATCR2_ATOSEL5_Pos)       /*!< 0x00100000 */
17943 #define TAMP_ATCR2_ATOSEL5_1                (0x2UL << TAMP_ATCR2_ATOSEL5_Pos)       /*!< 0x00200000 */
17944 #define TAMP_ATCR2_ATOSEL5_2                (0x4UL << TAMP_ATCR2_ATOSEL5_Pos)       /*!< 0x00400000 */
17945 #define TAMP_ATCR2_ATOSEL6_Pos              (23U)
17946 #define TAMP_ATCR2_ATOSEL6_Msk              (0x7UL << TAMP_ATCR2_ATOSEL6_Pos)       /*!< 0x03800000 */
17947 #define TAMP_ATCR2_ATOSEL6                  TAMP_ATCR2_ATOSEL6_Msk
17948 #define TAMP_ATCR2_ATOSEL6_0                (0x1UL << TAMP_ATCR2_ATOSEL6_Pos)       /*!< 0x00800000 */
17949 #define TAMP_ATCR2_ATOSEL6_1                (0x2UL << TAMP_ATCR2_ATOSEL6_Pos)       /*!< 0x01000000 */
17950 #define TAMP_ATCR2_ATOSEL6_2                (0x4UL << TAMP_ATCR2_ATOSEL6_Pos)       /*!< 0x02000000 */
17951 #define TAMP_ATCR2_ATOSEL7_Pos              (26U)
17952 #define TAMP_ATCR2_ATOSEL7_Msk              (0x7UL << TAMP_ATCR2_ATOSEL7_Pos)       /*!< 0x1C000000 */
17953 #define TAMP_ATCR2_ATOSEL7                  TAMP_ATCR2_ATOSEL7_Msk
17954 #define TAMP_ATCR2_ATOSEL7_0                (0x1UL << TAMP_ATCR2_ATOSEL7_Pos)       /*!< 0x04000000 */
17955 #define TAMP_ATCR2_ATOSEL7_1                (0x2UL << TAMP_ATCR2_ATOSEL7_Pos)       /*!< 0x08000000 */
17956 #define TAMP_ATCR2_ATOSEL7_2                (0x4UL << TAMP_ATCR2_ATOSEL7_Pos)       /*!< 0x10000000 */
17957 #define TAMP_ATCR2_ATOSEL8_Pos              (29U)
17958 #define TAMP_ATCR2_ATOSEL8_Msk              (0x7UL << TAMP_ATCR2_ATOSEL8_Pos)       /*!< 0xE0000000 */
17959 #define TAMP_ATCR2_ATOSEL8                  TAMP_ATCR2_ATOSEL8_Msk
17960 #define TAMP_ATCR2_ATOSEL8_0                (0x1UL << TAMP_ATCR2_ATOSEL8_Pos)       /*!< 0x20000000 */
17961 #define TAMP_ATCR2_ATOSEL8_1                (0x2UL << TAMP_ATCR2_ATOSEL8_Pos)       /*!< 0x40000000 */
17962 #define TAMP_ATCR2_ATOSEL8_2                (0x4UL << TAMP_ATCR2_ATOSEL8_Pos)       /*!< 0x80000000 */
17963 
17964 /********************  Bits definition for TAMP_SECCFGR register  *************/
17965 #define TAMP_SECCFGR_BKPRWSEC_Pos           (0U)
17966 #define TAMP_SECCFGR_BKPRWSEC_Msk           (0xFFUL << TAMP_SECCFGR_BKPRWSEC_Pos)   /*!< 0x000000FF */
17967 #define TAMP_SECCFGR_BKPRWSEC               TAMP_SECCFGR_BKPRWSEC_Msk
17968 #define TAMP_SECCFGR_BKPRWSEC_0             (0x1UL << TAMP_SECCFGR_BKPRWSEC_Pos)    /*!< 0x00000001 */
17969 #define TAMP_SECCFGR_BKPRWSEC_1             (0x2UL << TAMP_SECCFGR_BKPRWSEC_Pos)    /*!< 0x00000002 */
17970 #define TAMP_SECCFGR_BKPRWSEC_2             (0x4UL << TAMP_SECCFGR_BKPRWSEC_Pos)    /*!< 0x00000004 */
17971 #define TAMP_SECCFGR_BKPRWSEC_3             (0x8UL << TAMP_SECCFGR_BKPRWSEC_Pos)    /*!< 0x00000008 */
17972 #define TAMP_SECCFGR_BKPRWSEC_4             (0x10UL << TAMP_SECCFGR_BKPRWSEC_Pos)   /*!< 0x00000010 */
17973 #define TAMP_SECCFGR_BKPRWSEC_5             (0x20UL << TAMP_SECCFGR_BKPRWSEC_Pos)   /*!< 0x00000020 */
17974 #define TAMP_SECCFGR_BKPRWSEC_6             (0x40UL << TAMP_SECCFGR_BKPRWSEC_Pos)   /*!< 0x00000040 */
17975 #define TAMP_SECCFGR_BKPRWSEC_7             (0x80UL << TAMP_SECCFGR_BKPRWSEC_Pos)   /*!< 0x00000080 */
17976 #define TAMP_SECCFGR_CNT1SEC_Pos            (15U)
17977 #define TAMP_SECCFGR_CNT1SEC_Msk            (0x1UL << TAMP_SECCFGR_CNT1SEC_Pos)     /*!< 0x00008000 */
17978 #define TAMP_SECCFGR_CNT1SEC                TAMP_SECCFGR_CNT1SEC_Msk
17979 #define TAMP_SECCFGR_BKPWSEC_Pos            (16U)
17980 #define TAMP_SECCFGR_BKPWSEC_Msk            (0xFFUL << TAMP_SECCFGR_BKPWSEC_Pos)    /*!< 0x00FF0000 */
17981 #define TAMP_SECCFGR_BKPWSEC                TAMP_SECCFGR_BKPWSEC_Msk
17982 #define TAMP_SECCFGR_BKPWSEC_0              (0x1UL << TAMP_SECCFGR_BKPWSEC_Pos)     /*!< 0x00010000 */
17983 #define TAMP_SECCFGR_BKPWSEC_1              (0x2UL << TAMP_SECCFGR_BKPWSEC_Pos)     /*!< 0x00020000 */
17984 #define TAMP_SECCFGR_BKPWSEC_2              (0x4UL << TAMP_SECCFGR_BKPWSEC_Pos)     /*!< 0x00040000 */
17985 #define TAMP_SECCFGR_BKPWSEC_3              (0x8UL << TAMP_SECCFGR_BKPWSEC_Pos)     /*!< 0x00080000 */
17986 #define TAMP_SECCFGR_BKPWSEC_4              (0x10UL << TAMP_SECCFGR_BKPWSEC_Pos)    /*!< 0x00100000 */
17987 #define TAMP_SECCFGR_BKPWSEC_5              (0x20UL << TAMP_SECCFGR_BKPWSEC_Pos)    /*!< 0x00200000 */
17988 #define TAMP_SECCFGR_BKPWSEC_6              (0x40UL << TAMP_SECCFGR_BKPWSEC_Pos)    /*!< 0x00400000 */
17989 #define TAMP_SECCFGR_BKPWSEC_7              (0x80UL << TAMP_SECCFGR_BKPWSEC_Pos)    /*!< 0x00800000 */
17990 #define TAMP_SECCFGR_BHKLOCK_Pos            (30U)
17991 #define TAMP_SECCFGR_BHKLOCK_Msk            (0x1UL << TAMP_SECCFGR_BHKLOCK_Pos)     /*!< 0x40000000 */
17992 #define TAMP_SECCFGR_BHKLOCK                TAMP_SECCFGR_BHKLOCK_Msk
17993 #define TAMP_SECCFGR_TAMPSEC_Pos            (31U)
17994 #define TAMP_SECCFGR_TAMPSEC_Msk            (0x1UL << TAMP_SECCFGR_TAMPSEC_Pos)     /*!< 0x80000000 */
17995 #define TAMP_SECCFGR_TAMPSEC                TAMP_SECCFGR_TAMPSEC_Msk
17996 
17997 /********************  Bits definition for TAMP_PRIVCFGR register  ************/
17998 #define TAMP_PRIVCFGR_CNT1PRIV_Pos          (15U)
17999 #define TAMP_PRIVCFGR_CNT1PRIV_Msk          (0x1UL << TAMP_PRIVCFGR_CNT1PRIV_Pos)   /*!< 0x20000000 */
18000 #define TAMP_PRIVCFGR_CNT1PRIV              TAMP_PRIVCFGR_CNT1PRIV_Msk
18001 #define TAMP_PRIVCFGR_BKPRWPRIV_Pos         (29U)
18002 #define TAMP_PRIVCFGR_BKPRWPRIV_Msk         (0x1UL << TAMP_PRIVCFGR_BKPRWPRIV_Pos)  /*!< 0x20000000 */
18003 #define TAMP_PRIVCFGR_BKPRWPRIV             TAMP_PRIVCFGR_BKPRWPRIV_Msk
18004 #define TAMP_PRIVCFGR_BKPWPRIV_Pos          (30U)
18005 #define TAMP_PRIVCFGR_BKPWPRIV_Msk          (0x1UL << TAMP_PRIVCFGR_BKPWPRIV_Pos)   /*!< 0x40000000 */
18006 #define TAMP_PRIVCFGR_BKPWPRIV              TAMP_PRIVCFGR_BKPWPRIV_Msk
18007 #define TAMP_PRIVCFGR_TAMPPRIV_Pos          (31U)
18008 #define TAMP_PRIVCFGR_TAMPPRIV_Msk          (0x1UL << TAMP_PRIVCFGR_TAMPPRIV_Pos)   /*!< 0x80000000 */
18009 #define TAMP_PRIVCFGR_TAMPPRIV              TAMP_PRIVCFGR_TAMPPRIV_Msk
18010 
18011 /********************  Bits definition for TAMP_IER register  *****************/
18012 #define TAMP_IER_TAMP1IE_Pos                (0U)
18013 #define TAMP_IER_TAMP1IE_Msk                (0x1UL << TAMP_IER_TAMP1IE_Pos)         /*!< 0x00000001 */
18014 #define TAMP_IER_TAMP1IE                    TAMP_IER_TAMP1IE_Msk
18015 #define TAMP_IER_TAMP2IE_Pos                (1U)
18016 #define TAMP_IER_TAMP2IE_Msk                (0x1UL << TAMP_IER_TAMP2IE_Pos)         /*!< 0x00000002 */
18017 #define TAMP_IER_TAMP2IE                    TAMP_IER_TAMP2IE_Msk
18018 #define TAMP_IER_TAMP3IE_Pos                (2U)
18019 #define TAMP_IER_TAMP3IE_Msk                (0x1UL << TAMP_IER_TAMP3IE_Pos)         /*!< 0x00000004 */
18020 #define TAMP_IER_TAMP3IE                    TAMP_IER_TAMP3IE_Msk
18021 #define TAMP_IER_TAMP4IE_Pos                (3U)
18022 #define TAMP_IER_TAMP4IE_Msk                (0x1UL << TAMP_IER_TAMP4IE_Pos)         /*!< 0x00000008 */
18023 #define TAMP_IER_TAMP4IE                    TAMP_IER_TAMP4IE_Msk
18024 #define TAMP_IER_TAMP5IE_Pos                (4U)
18025 #define TAMP_IER_TAMP5IE_Msk                (0x1UL << TAMP_IER_TAMP5IE_Pos)         /*!< 0x00000010 */
18026 #define TAMP_IER_TAMP5IE                    TAMP_IER_TAMP5IE_Msk
18027 #define TAMP_IER_TAMP6IE_Pos                (5U)
18028 #define TAMP_IER_TAMP6IE_Msk                (0x1UL << TAMP_IER_TAMP6IE_Pos)         /*!< 0x00000020 */
18029 #define TAMP_IER_TAMP6IE                    TAMP_IER_TAMP6IE_Msk
18030 #define TAMP_IER_TAMP7IE_Pos                (6U)
18031 #define TAMP_IER_TAMP7IE_Msk                (0x1UL << TAMP_IER_TAMP7IE_Pos)         /*!< 0x00000040 */
18032 #define TAMP_IER_TAMP7IE                    TAMP_IER_TAMP7IE_Msk
18033 #define TAMP_IER_TAMP8IE_Pos                (7U)
18034 #define TAMP_IER_TAMP8IE_Msk                (0x1UL << TAMP_IER_TAMP8IE_Pos)         /*!< 0x00000080 */
18035 #define TAMP_IER_TAMP8IE                    TAMP_IER_TAMP8IE_Msk
18036 #define TAMP_IER_ITAMP1IE_Pos               (16U)
18037 #define TAMP_IER_ITAMP1IE_Msk               (0x1UL << TAMP_IER_ITAMP1IE_Pos)        /*!< 0x00010000 */
18038 #define TAMP_IER_ITAMP1IE                   TAMP_IER_ITAMP1IE_Msk
18039 #define TAMP_IER_ITAMP2IE_Pos               (17U)
18040 #define TAMP_IER_ITAMP2IE_Msk               (0x1UL << TAMP_IER_ITAMP2IE_Pos)        /*!< 0x00020000 */
18041 #define TAMP_IER_ITAMP2IE                   TAMP_IER_ITAMP2IE_Msk
18042 #define TAMP_IER_ITAMP3IE_Pos               (18U)
18043 #define TAMP_IER_ITAMP3IE_Msk               (0x1UL << TAMP_IER_ITAMP3IE_Pos)        /*!< 0x00040000 */
18044 #define TAMP_IER_ITAMP3IE                   TAMP_IER_ITAMP3IE_Msk
18045 #define TAMP_IER_ITAMP5IE_Pos               (20U)
18046 #define TAMP_IER_ITAMP5IE_Msk               (0x1UL << TAMP_IER_ITAMP5IE_Pos)        /*!< 0x00100000 */
18047 #define TAMP_IER_ITAMP5IE                   TAMP_IER_ITAMP5IE_Msk
18048 #define TAMP_IER_ITAMP6IE_Pos               (21U)
18049 #define TAMP_IER_ITAMP6IE_Msk               (0x1UL << TAMP_IER_ITAMP6IE_Pos)        /*!< 0x00200000 */
18050 #define TAMP_IER_ITAMP6IE                   TAMP_IER_ITAMP6IE_Msk
18051 #define TAMP_IER_ITAMP7IE_Pos               (22U)
18052 #define TAMP_IER_ITAMP7IE_Msk               (0x1UL << TAMP_IER_ITAMP7IE_Pos)        /*!< 0x00400000 */
18053 #define TAMP_IER_ITAMP7IE                   TAMP_IER_ITAMP7IE_Msk
18054 #define TAMP_IER_ITAMP8IE_Pos               (23U)
18055 #define TAMP_IER_ITAMP8IE_Msk               (0x1UL << TAMP_IER_ITAMP8IE_Pos)        /*!< 0x00800000 */
18056 #define TAMP_IER_ITAMP8IE                   TAMP_IER_ITAMP8IE_Msk
18057 #define TAMP_IER_ITAMP9IE_Pos               (24U)
18058 #define TAMP_IER_ITAMP9IE_Msk               (0x1UL << TAMP_IER_ITAMP9IE_Pos)        /*!< 0x01000000 */
18059 #define TAMP_IER_ITAMP9IE                   TAMP_IER_ITAMP9IE_Msk
18060 #define TAMP_IER_ITAMP11IE_Pos              (26U)
18061 #define TAMP_IER_ITAMP11IE_Msk              (0x1UL << TAMP_IER_ITAMP11IE_Pos)       /*!< 0x04000000 */
18062 #define TAMP_IER_ITAMP11IE                  TAMP_IER_ITAMP11IE_Msk
18063 #define TAMP_IER_ITAMP12IE_Pos              (27U)
18064 #define TAMP_IER_ITAMP12IE_Msk              (0x1UL << TAMP_IER_ITAMP12IE_Pos)       /*!< 0x08000000 */
18065 #define TAMP_IER_ITAMP12IE                  TAMP_IER_ITAMP12IE_Msk
18066 #define TAMP_IER_ITAMP13IE_Pos              (28U)
18067 #define TAMP_IER_ITAMP13IE_Msk              (0x1UL << TAMP_IER_ITAMP13IE_Pos)       /*!< 0x10000000 */
18068 #define TAMP_IER_ITAMP13IE                  TAMP_IER_ITAMP13IE_Msk
18069 
18070 /********************  Bits definition for TAMP_SR register  *****************/
18071 #define TAMP_SR_TAMP1F_Pos                  (0U)
18072 #define TAMP_SR_TAMP1F_Msk                  (0x1UL << TAMP_SR_TAMP1F_Pos)           /*!< 0x00000001 */
18073 #define TAMP_SR_TAMP1F                      TAMP_SR_TAMP1F_Msk
18074 #define TAMP_SR_TAMP2F_Pos                  (1U)
18075 #define TAMP_SR_TAMP2F_Msk                  (0x1UL << TAMP_SR_TAMP2F_Pos)           /*!< 0x00000002 */
18076 #define TAMP_SR_TAMP2F                      TAMP_SR_TAMP2F_Msk
18077 #define TAMP_SR_TAMP3F_Pos                  (2U)
18078 #define TAMP_SR_TAMP3F_Msk                  (0x1UL << TAMP_SR_TAMP3F_Pos)           /*!< 0x00000004 */
18079 #define TAMP_SR_TAMP3F                      TAMP_SR_TAMP3F_Msk
18080 #define TAMP_SR_TAMP4F_Pos                  (3U)
18081 #define TAMP_SR_TAMP4F_Msk                  (0x1UL << TAMP_SR_TAMP4F_Pos)           /*!< 0x00000008 */
18082 #define TAMP_SR_TAMP4F                      TAMP_SR_TAMP4F_Msk
18083 #define TAMP_SR_TAMP5F_Pos                  (4U)
18084 #define TAMP_SR_TAMP5F_Msk                  (0x1UL << TAMP_SR_TAMP5F_Pos)           /*!< 0x00000010 */
18085 #define TAMP_SR_TAMP5F                      TAMP_SR_TAMP5F_Msk
18086 #define TAMP_SR_TAMP6F_Pos                  (5U)
18087 #define TAMP_SR_TAMP6F_Msk                  (0x1UL << TAMP_SR_TAMP6F_Pos)           /*!< 0x00000020 */
18088 #define TAMP_SR_TAMP6F                      TAMP_SR_TAMP6F_Msk
18089 #define TAMP_SR_TAMP7F_Pos                  (6U)
18090 #define TAMP_SR_TAMP7F_Msk                  (0x1UL << TAMP_SR_TAMP7F_Pos)           /*!< 0x00000040 */
18091 #define TAMP_SR_TAMP7F                      TAMP_SR_TAMP7F_Msk
18092 #define TAMP_SR_TAMP8F_Pos                  (7U)
18093 #define TAMP_SR_TAMP8F_Msk                  (0x1UL << TAMP_SR_TAMP8F_Pos)           /*!< 0x00000080 */
18094 #define TAMP_SR_TAMP8F                      TAMP_SR_TAMP8F_Msk
18095 #define TAMP_SR_ITAMP1F_Pos                 (16U)
18096 #define TAMP_SR_ITAMP1F_Msk                 (0x1UL << TAMP_SR_ITAMP1F_Pos)          /*!< 0x00010000 */
18097 #define TAMP_SR_ITAMP1F                     TAMP_SR_ITAMP1F_Msk
18098 #define TAMP_SR_ITAMP2F_Pos                 (17U)
18099 #define TAMP_SR_ITAMP2F_Msk                 (0x1UL << TAMP_SR_ITAMP2F_Pos)          /*!< 0x00010000 */
18100 #define TAMP_SR_ITAMP2F                     TAMP_SR_ITAMP2F_Msk
18101 #define TAMP_SR_ITAMP3F_Pos                 (18U)
18102 #define TAMP_SR_ITAMP3F_Msk                 (0x1UL << TAMP_SR_ITAMP3F_Pos)          /*!< 0x00040000 */
18103 #define TAMP_SR_ITAMP3F                     TAMP_SR_ITAMP3F_Msk
18104 #define TAMP_SR_ITAMP5F_Pos                 (20U)
18105 #define TAMP_SR_ITAMP5F_Msk                 (0x1UL << TAMP_SR_ITAMP5F_Pos)          /*!< 0x00100000 */
18106 #define TAMP_SR_ITAMP5F                     TAMP_SR_ITAMP5F_Msk
18107 #define TAMP_SR_ITAMP6F_Pos                 (21U)
18108 #define TAMP_SR_ITAMP6F_Msk                 (0x1UL << TAMP_SR_ITAMP6F_Pos)          /*!< 0x00200000 */
18109 #define TAMP_SR_ITAMP6F                     TAMP_SR_ITAMP6F_Msk
18110 #define TAMP_SR_ITAMP7F_Pos                 (22U)
18111 #define TAMP_SR_ITAMP7F_Msk                 (0x1UL << TAMP_SR_ITAMP7F_Pos)          /*!< 0x00400000 */
18112 #define TAMP_SR_ITAMP7F                     TAMP_SR_ITAMP7F_Msk
18113 #define TAMP_SR_ITAMP8F_Pos                 (23U)
18114 #define TAMP_SR_ITAMP8F_Msk                 (0x1UL << TAMP_SR_ITAMP8F_Pos)          /*!< 0x00800000 */
18115 #define TAMP_SR_ITAMP8F                     TAMP_SR_ITAMP8F_Msk
18116 #define TAMP_SR_ITAMP9F_Pos                 (24U)
18117 #define TAMP_SR_ITAMP9F_Msk                 (0x1UL << TAMP_SR_ITAMP9F_Pos)          /*!< 0x01000000 */
18118 #define TAMP_SR_ITAMP9F                     TAMP_SR_ITAMP9F_Msk
18119 #define TAMP_SR_ITAMP11F_Pos                (26U)
18120 #define TAMP_SR_ITAMP11F_Msk                (0x1UL << TAMP_SR_ITAMP11F_Pos)         /*!< 0x04000000 */
18121 #define TAMP_SR_ITAMP11F                    TAMP_SR_ITAMP11F_Msk
18122 #define TAMP_SR_ITAMP12F_Pos                (27U)
18123 #define TAMP_SR_ITAMP12F_Msk                (0x1UL << TAMP_SR_ITAMP12F_Pos)         /*!< 0x08000000 */
18124 #define TAMP_SR_ITAMP12F                    TAMP_SR_ITAMP12F_Msk
18125 #define TAMP_SR_ITAMP13F_Pos                (28U)
18126 #define TAMP_SR_ITAMP13F_Msk                (0x1UL << TAMP_SR_ITAMP13F_Pos)         /*!< 0x10000000 */
18127 #define TAMP_SR_ITAMP13F                    TAMP_SR_ITAMP13F_Msk
18128 
18129 /********************  Bits definition for TAMP_MISR register  ****************/
18130 #define TAMP_MISR_TAMP1MF_Pos               (0U)
18131 #define TAMP_MISR_TAMP1MF_Msk               (0x1UL << TAMP_MISR_TAMP1MF_Pos)        /*!< 0x00000001 */
18132 #define TAMP_MISR_TAMP1MF                   TAMP_MISR_TAMP1MF_Msk
18133 #define TAMP_MISR_TAMP2MF_Pos               (1U)
18134 #define TAMP_MISR_TAMP2MF_Msk               (0x1UL << TAMP_MISR_TAMP2MF_Pos)        /*!< 0x00000002 */
18135 #define TAMP_MISR_TAMP2MF                   TAMP_MISR_TAMP2MF_Msk
18136 #define TAMP_MISR_TAMP3MF_Pos               (2U)
18137 #define TAMP_MISR_TAMP3MF_Msk               (0x1UL << TAMP_MISR_TAMP3MF_Pos)        /*!< 0x00000004 */
18138 #define TAMP_MISR_TAMP3MF                   TAMP_MISR_TAMP3MF_Msk
18139 #define TAMP_MISR_TAMP4MF_Pos               (3U)
18140 #define TAMP_MISR_TAMP4MF_Msk               (0x1UL << TAMP_MISR_TAMP4MF_Pos)        /*!< 0x00000008 */
18141 #define TAMP_MISR_TAMP4MF                   TAMP_MISR_TAMP4MF_Msk
18142 #define TAMP_MISR_TAMP5MF_Pos               (4U)
18143 #define TAMP_MISR_TAMP5MF_Msk               (0x1UL << TAMP_MISR_TAMP5MF_Pos)        /*!< 0x00000010 */
18144 #define TAMP_MISR_TAMP5MF                   TAMP_MISR_TAMP5MF_Msk
18145 #define TAMP_MISR_TAMP6MF_Pos               (5U)
18146 #define TAMP_MISR_TAMP6MF_Msk               (0x1UL << TAMP_MISR_TAMP6MF_Pos)        /*!< 0x00000020 */
18147 #define TAMP_MISR_TAMP6MF                   TAMP_MISR_TAMP6MF_Msk
18148 #define TAMP_MISR_TAMP7MF_Pos               (6U)
18149 #define TAMP_MISR_TAMP7MF_Msk               (0x1UL << TAMP_MISR_TAMP7MF_Pos)        /*!< 0x00000040 */
18150 #define TAMP_MISR_TAMP7MF                   TAMP_MISR_TAMP7MF_Msk
18151 #define TAMP_MISR_TAMP8MF_Pos               (7U)
18152 #define TAMP_MISR_TAMP8MF_Msk               (0x1UL << TAMP_MISR_TAMP8MF_Pos)        /*!< 0x00000080 */
18153 #define TAMP_MISR_TAMP8MF                   TAMP_MISR_TAMP8MF_Msk
18154 #define TAMP_MISR_ITAMP1MF_Pos              (16U)
18155 #define TAMP_MISR_ITAMP1MF_Msk              (0x1UL << TAMP_MISR_ITAMP1MF_Pos)       /*!< 0x00010000 */
18156 #define TAMP_MISR_ITAMP1MF                  TAMP_MISR_ITAMP1MF_Msk
18157 #define TAMP_MISR_ITAMP2MF_Pos              (17U)
18158 #define TAMP_MISR_ITAMP2MF_Msk              (0x1UL << TAMP_MISR_ITAMP2MF_Pos)       /*!< 0x00010000 */
18159 #define TAMP_MISR_ITAMP2MF                  TAMP_MISR_ITAMP2MF_Msk
18160 #define TAMP_MISR_ITAMP3MF_Pos              (18U)
18161 #define TAMP_MISR_ITAMP3MF_Msk              (0x1UL << TAMP_MISR_ITAMP3MF_Pos)       /*!< 0x00040000 */
18162 #define TAMP_MISR_ITAMP3MF                  TAMP_MISR_ITAMP3MF_Msk
18163 #define TAMP_MISR_ITAMP5MF_Pos              (20U)
18164 #define TAMP_MISR_ITAMP5MF_Msk              (0x1UL << TAMP_MISR_ITAMP5MF_Pos)       /*!< 0x00100000 */
18165 #define TAMP_MISR_ITAMP5MF                  TAMP_MISR_ITAMP5MF_Msk
18166 #define TAMP_MISR_ITAMP6MF_Pos              (21U)
18167 #define TAMP_MISR_ITAMP6MF_Msk              (0x1UL << TAMP_MISR_ITAMP6MF_Pos)       /*!< 0x00200000 */
18168 #define TAMP_MISR_ITAMP6MF                  TAMP_MISR_ITAMP6MF_Msk
18169 #define TAMP_MISR_ITAMP7MF_Pos              (22U)
18170 #define TAMP_MISR_ITAMP7MF_Msk              (0x1UL << TAMP_MISR_ITAMP7MF_Pos)       /*!< 0x00400000 */
18171 #define TAMP_MISR_ITAMP7MF                  TAMP_MISR_ITAMP7MF_Msk
18172 #define TAMP_MISR_ITAMP8MF_Pos              (23U)
18173 #define TAMP_MISR_ITAMP8MF_Msk              (0x1UL << TAMP_MISR_ITAMP8MF_Pos)       /*!< 0x00800000 */
18174 #define TAMP_MISR_ITAMP8MF                  TAMP_MISR_ITAMP8MF_Msk
18175 #define TAMP_MISR_ITAMP9MF_Pos              (24U)
18176 #define TAMP_MISR_ITAMP9MF_Msk              (0x1UL << TAMP_MISR_ITAMP9MF_Pos)       /*!< 0x01000000 */
18177 #define TAMP_MISR_ITAMP9MF                  TAMP_MISR_ITAMP9MF_Msk
18178 #define TAMP_MISR_ITAMP11MF_Pos             (26U)
18179 #define TAMP_MISR_ITAMP11MF_Msk             (0x1UL << TAMP_MISR_ITAMP11MF_Pos)      /*!< 0x04000000 */
18180 #define TAMP_MISR_ITAMP11MF                 TAMP_MISR_ITAMP11MF_Msk
18181 #define TAMP_MISR_ITAMP12MF_Pos             (27U)
18182 #define TAMP_MISR_ITAMP12MF_Msk             (0x1UL << TAMP_MISR_ITAMP12MF_Pos)      /*!< 0x08000000 */
18183 #define TAMP_MISR_ITAMP12MF                 TAMP_MISR_ITAMP12MF_Msk
18184 #define TAMP_MISR_ITAMP13MF_Pos             (28U)
18185 #define TAMP_MISR_ITAMP13MF_Msk             (0x1UL << TAMP_MISR_ITAMP13MF_Pos)      /*!< 0x10000000 */
18186 #define TAMP_MISR_ITAMP13MF                 TAMP_MISR_ITAMP13MF_Msk
18187 
18188 /********************  Bits definition for TAMP_SMISR register  ************ *****/
18189 #define TAMP_SMISR_TAMP1MF_Pos              (0U)
18190 #define TAMP_SMISR_TAMP1MF_Msk              (0x1UL << TAMP_SMISR_TAMP1MF_Pos)       /*!< 0x00000001 */
18191 #define TAMP_SMISR_TAMP1MF                  TAMP_SMISR_TAMP1MF_Msk
18192 #define TAMP_SMISR_TAMP2MF_Pos              (1U)
18193 #define TAMP_SMISR_TAMP2MF_Msk              (0x1UL << TAMP_SMISR_TAMP2MF_Pos)       /*!< 0x00000002 */
18194 #define TAMP_SMISR_TAMP2MF                  TAMP_SMISR_TAMP2MF_Msk
18195 #define TAMP_SMISR_TAMP3MF_Pos              (2U)
18196 #define TAMP_SMISR_TAMP3MF_Msk              (0x1UL << TAMP_SMISR_TAMP3MF_Pos)       /*!< 0x00000004 */
18197 #define TAMP_SMISR_TAMP3MF                  TAMP_SMISR_TAMP3MF_Msk
18198 #define TAMP_SMISR_TAMP4MF_Pos              (3U)
18199 #define TAMP_SMISR_TAMP4MF_Msk              (0x1UL << TAMP_SMISR_TAMP4MF_Pos)       /*!< 0x00000008 */
18200 #define TAMP_SMISR_TAMP4MF                  TAMP_SMISR_TAMP4MF_Msk
18201 #define TAMP_SMISR_TAMP5MF_Pos              (4U)
18202 #define TAMP_SMISR_TAMP5MF_Msk              (0x1UL << TAMP_SMISR_TAMP5MF_Pos)       /*!< 0x00000010 */
18203 #define TAMP_SMISR_TAMP5MF                  TAMP_SMISR_TAMP5MF_Msk
18204 #define TAMP_SMISR_TAMP6MF_Pos              (5U)
18205 #define TAMP_SMISR_TAMP6MF_Msk              (0x1UL << TAMP_SMISR_TAMP6MF_Pos)       /*!< 0x00000020 */
18206 #define TAMP_SMISR_TAMP6MF                  TAMP_SMISR_TAMP6MF_Msk
18207 #define TAMP_SMISR_TAMP7MF_Pos              (6U)
18208 #define TAMP_SMISR_TAMP7MF_Msk              (0x1UL << TAMP_SMISR_TAMP7MF_Pos)       /*!< 0x00000040 */
18209 #define TAMP_SMISR_TAMP7MF                  TAMP_SMISR_TAMP7MF_Msk
18210 #define TAMP_SMISR_TAMP8MF_Pos              (7U)
18211 #define TAMP_SMISR_TAMP8MF_Msk              (0x1UL << TAMP_SMISR_TAMP8MF_Pos)       /*!< 0x00000080 */
18212 #define TAMP_SMISR_TAMP8MF                  TAMP_SMISR_TAMP8MF_Msk
18213 #define TAMP_SMISR_ITAMP1MF_Pos             (16U)
18214 #define TAMP_SMISR_ITAMP1MF_Msk             (0x1UL << TAMP_SMISR_ITAMP1MF_Pos)      /*!< 0x00010000 */
18215 #define TAMP_SMISR_ITAMP1MF                 TAMP_SMISR_ITAMP1MF_Msk
18216 #define TAMP_SMISR_ITAMP2MF_Pos             (17U)
18217 #define TAMP_SMISR_ITAMP2MF_Msk             (0x1UL << TAMP_SMISR_ITAMP2MF_Pos)      /*!< 0x00010000 */
18218 #define TAMP_SMISR_ITAMP2MF                 TAMP_SMISR_ITAMP2MF_Msk
18219 #define TAMP_SMISR_ITAMP3MF_Pos             (18U)
18220 #define TAMP_SMISR_ITAMP3MF_Msk             (0x1UL << TAMP_SMISR_ITAMP3MF_Pos)      /*!< 0x00040000 */
18221 #define TAMP_SMISR_ITAMP3MF                 TAMP_SMISR_ITAMP3MF_Msk
18222 #define TAMP_SMISR_ITAMP5MF_Pos             (20U)
18223 #define TAMP_SMISR_ITAMP5MF_Msk             (0x1UL << TAMP_SMISR_ITAMP5MF_Pos)      /*!< 0x00100000 */
18224 #define TAMP_SMISR_ITAMP5MF                 TAMP_SMISR_ITAMP5MF_Msk
18225 #define TAMP_SMISR_ITAMP6MF_Pos             (21U)
18226 #define TAMP_SMISR_ITAMP6MF_Msk             (0x1UL << TAMP_SMISR_ITAMP6MF_Pos)      /*!< 0x00200000 */
18227 #define TAMP_SMISR_ITAMP6MF                 TAMP_SMISR_ITAMP6MF_Msk
18228 #define TAMP_SMISR_ITAMP7MF_Pos             (22U)
18229 #define TAMP_SMISR_ITAMP7MF_Msk             (0x1UL << TAMP_SMISR_ITAMP7MF_Pos)      /*!< 0x00400000 */
18230 #define TAMP_SMISR_ITAMP7MF                 TAMP_SMISR_ITAMP7MF_Msk
18231 #define TAMP_SMISR_ITAMP8MF_Pos             (23U)
18232 #define TAMP_SMISR_ITAMP8MF_Msk             (0x1UL << TAMP_SMISR_ITAMP8MF_Pos)      /*!< 0x00800000 */
18233 #define TAMP_SMISR_ITAMP8MF                 TAMP_SMISR_ITAMP8MF_Msk
18234 #define TAMP_SMISR_ITAMP9MF_Pos             (24U)
18235 #define TAMP_SMISR_ITAMP9MF_Msk             (0x1UL << TAMP_SMISR_ITAMP9MF_Pos)      /*!< 0x01000000 */
18236 #define TAMP_SMISR_ITAMP9MF                 TAMP_SMISR_ITAMP9MF_Msk
18237 #define TAMP_SMISR_ITAMP11MF_Pos            (26U)
18238 #define TAMP_SMISR_ITAMP11MF_Msk            (0x1UL << TAMP_SMISR_ITAMP11MF_Pos)     /*!< 0x04000000 */
18239 #define TAMP_SMISR_ITAMP11MF                TAMP_SMISR_ITAMP11MF_Msk
18240 #define TAMP_SMISR_ITAMP12MF_Pos            (27U)
18241 #define TAMP_SMISR_ITAMP12MF_Msk            (0x1UL << TAMP_SMISR_ITAMP12MF_Pos)     /*!< 0x08000000 */
18242 #define TAMP_SMISR_ITAMP12MF                TAMP_SMISR_ITAMP12MF_Msk
18243 #define TAMP_SMISR_ITAMP13MF_Pos            (28U)
18244 #define TAMP_SMISR_ITAMP13MF_Msk            (0x1UL << TAMP_SMISR_ITAMP13MF_Pos)     /*!< 0x10000000 */
18245 #define TAMP_SMISR_ITAMP13MF                TAMP_SMISR_ITAMP13MF_Msk
18246 
18247 /********************  Bits definition for TAMP_SCR register  *****************/
18248 #define TAMP_SCR_CTAMP1F_Pos                (0U)
18249 #define TAMP_SCR_CTAMP1F_Msk                (0x1UL << TAMP_SCR_CTAMP1F_Pos)         /*!< 0x00000001 */
18250 #define TAMP_SCR_CTAMP1F                    TAMP_SCR_CTAMP1F_Msk
18251 #define TAMP_SCR_CTAMP2F_Pos                (1U)
18252 #define TAMP_SCR_CTAMP2F_Msk                (0x1UL << TAMP_SCR_CTAMP2F_Pos)         /*!< 0x00000002 */
18253 #define TAMP_SCR_CTAMP2F                    TAMP_SCR_CTAMP2F_Msk
18254 #define TAMP_SCR_CTAMP3F_Pos                (2U)
18255 #define TAMP_SCR_CTAMP3F_Msk                (0x1UL << TAMP_SCR_CTAMP3F_Pos)         /*!< 0x00000004 */
18256 #define TAMP_SCR_CTAMP3F                    TAMP_SCR_CTAMP3F_Msk
18257 #define TAMP_SCR_CTAMP4F_Pos                (3U)
18258 #define TAMP_SCR_CTAMP4F_Msk                (0x1UL << TAMP_SCR_CTAMP4F_Pos)         /*!< 0x00000008 */
18259 #define TAMP_SCR_CTAMP4F                    TAMP_SCR_CTAMP4F_Msk
18260 #define TAMP_SCR_CTAMP5F_Pos                (4U)
18261 #define TAMP_SCR_CTAMP5F_Msk                (0x1UL << TAMP_SCR_CTAMP5F_Pos)         /*!< 0x00000010 */
18262 #define TAMP_SCR_CTAMP5F                    TAMP_SCR_CTAMP5F_Msk
18263 #define TAMP_SCR_CTAMP6F_Pos                (5U)
18264 #define TAMP_SCR_CTAMP6F_Msk                (0x1UL << TAMP_SCR_CTAMP6F_Pos)         /*!< 0x00000020 */
18265 #define TAMP_SCR_CTAMP6F                    TAMP_SCR_CTAMP6F_Msk
18266 #define TAMP_SCR_CTAMP7F_Pos                (6U)
18267 #define TAMP_SCR_CTAMP7F_Msk                (0x1UL << TAMP_SCR_CTAMP7F_Pos)         /*!< 0x00000040 */
18268 #define TAMP_SCR_CTAMP7F                    TAMP_SCR_CTAMP7F_Msk
18269 #define TAMP_SCR_CTAMP8F_Pos                (7U)
18270 #define TAMP_SCR_CTAMP8F_Msk                (0x1UL << TAMP_SCR_CTAMP8F_Pos)         /*!< 0x00000080 */
18271 #define TAMP_SCR_CTAMP8F                    TAMP_SCR_CTAMP8F_Msk
18272 #define TAMP_SCR_CITAMP1F_Pos               (16U)
18273 #define TAMP_SCR_CITAMP1F_Msk               (0x1UL << TAMP_SCR_CITAMP1F_Pos)        /*!< 0x00010000 */
18274 #define TAMP_SCR_CITAMP1F                   TAMP_SCR_CITAMP1F_Msk
18275 #define TAMP_SCR_CITAMP2F_Pos               (17U)
18276 #define TAMP_SCR_CITAMP2F_Msk               (0x1UL << TAMP_SCR_CITAMP2F_Pos)        /*!< 0x00010000 */
18277 #define TAMP_SCR_CITAMP2F                   TAMP_SCR_CITAMP2F_Msk
18278 #define TAMP_SCR_CITAMP3F_Pos               (18U)
18279 #define TAMP_SCR_CITAMP3F_Msk               (0x1UL << TAMP_SCR_CITAMP3F_Pos)        /*!< 0x00040000 */
18280 #define TAMP_SCR_CITAMP3F                   TAMP_SCR_CITAMP3F_Msk
18281 #define TAMP_SCR_CITAMP5F_Pos               (20U)
18282 #define TAMP_SCR_CITAMP5F_Msk               (0x1UL << TAMP_SCR_CITAMP5F_Pos)        /*!< 0x00100000 */
18283 #define TAMP_SCR_CITAMP5F                   TAMP_SCR_CITAMP5F_Msk
18284 #define TAMP_SCR_CITAMP6F_Pos               (21U)
18285 #define TAMP_SCR_CITAMP6F_Msk               (0x1UL << TAMP_SCR_CITAMP6F_Pos)        /*!< 0x00200000 */
18286 #define TAMP_SCR_CITAMP6F                   TAMP_SCR_CITAMP6F_Msk
18287 #define TAMP_SCR_CITAMP7F_Pos               (22U)
18288 #define TAMP_SCR_CITAMP7F_Msk               (0x1UL << TAMP_SCR_CITAMP7F_Pos)        /*!< 0x00400000 */
18289 #define TAMP_SCR_CITAMP7F                   TAMP_SCR_CITAMP7F_Msk
18290 #define TAMP_SCR_CITAMP8F_Pos               (23U)
18291 #define TAMP_SCR_CITAMP8F_Msk               (0x1UL << TAMP_SCR_CITAMP8F_Pos)        /*!< 0x00800000 */
18292 #define TAMP_SCR_CITAMP8F                   TAMP_SCR_CITAMP8F_Msk
18293 #define TAMP_SCR_CITAMP9F_Pos               (24U)
18294 #define TAMP_SCR_CITAMP9F_Msk               (0x1UL << TAMP_SCR_CITAMP9F_Pos)        /*!< 0x01000000 */
18295 #define TAMP_SCR_CITAMP9F                   TAMP_SCR_CITAMP9F_Msk
18296 #define TAMP_SCR_CITAMP11F_Pos              (26U)
18297 #define TAMP_SCR_CITAMP11F_Msk              (0x1UL << TAMP_SCR_CITAMP11F_Pos)       /*!< 0x04000000 */
18298 #define TAMP_SCR_CITAMP11F                  TAMP_SCR_CITAMP11F_Msk
18299 #define TAMP_SCR_CITAMP12F_Pos              (27U)
18300 #define TAMP_SCR_CITAMP12F_Msk              (0x1UL << TAMP_SCR_CITAMP12F_Pos)       /*!< 0x08000000 */
18301 #define TAMP_SCR_CITAMP12F                  TAMP_SCR_CITAMP12F_Msk
18302 #define TAMP_SCR_CITAMP13F_Pos              (28U)
18303 #define TAMP_SCR_CITAMP13F_Msk              (0x1UL << TAMP_SCR_CITAMP13F_Pos)       /*!< 0x10000000 */
18304 #define TAMP_SCR_CITAMP13F                  TAMP_SCR_CITAMP13F_Msk
18305 
18306 /********************  Bits definition for TAMP_COUNTR register  ***************/
18307 #define TAMP_COUNTR_Pos                     (16U)
18308 #define TAMP_COUNTR_Msk                     (0xFFFFUL << TAMP_COUNTR_Pos)           /*!< 0xFFFF0000 */
18309 #define TAMP_COUNTR                         TAMP_COUNTR_Msk
18310 
18311 /********************  Bits definition for TAMP_ERCFGR register  ***************/
18312 #define TAMP_ERCFGR0_Pos                    (0U)
18313 #define TAMP_ERCFGR0_Msk                    (0x1UL << TAMP_ERCFGR0_Pos)            /*!< 0x00000001 */
18314 #define TAMP_ERCFGR0                        TAMP_ERCFGR0_Msk
18315 
18316 /********************  Bits definition for TAMP_BKP0R register  ***************/
18317 #define TAMP_BKP0R_Pos                      (0U)
18318 #define TAMP_BKP0R_Msk                      (0xFFFFFFFFUL << TAMP_BKP0R_Pos)        /*!< 0xFFFFFFFF */
18319 #define TAMP_BKP0R                          TAMP_BKP0R_Msk
18320 
18321 /********************  Bits definition for TAMP_BKP1R register  ****************/
18322 #define TAMP_BKP1R_Pos                      (0U)
18323 #define TAMP_BKP1R_Msk                      (0xFFFFFFFFUL << TAMP_BKP1R_Pos)        /*!< 0xFFFFFFFF */
18324 #define TAMP_BKP1R                          TAMP_BKP1R_Msk
18325 
18326 /********************  Bits definition for TAMP_BKP2R register  ****************/
18327 #define TAMP_BKP2R_Pos                      (0U)
18328 #define TAMP_BKP2R_Msk                      (0xFFFFFFFFUL << TAMP_BKP2R_Pos)        /*!< 0xFFFFFFFF */
18329 #define TAMP_BKP2R                          TAMP_BKP2R_Msk
18330 
18331 /********************  Bits definition for TAMP_BKP3R register  ****************/
18332 #define TAMP_BKP3R_Pos                      (0U)
18333 #define TAMP_BKP3R_Msk                      (0xFFFFFFFFUL << TAMP_BKP3R_Pos)        /*!< 0xFFFFFFFF */
18334 #define TAMP_BKP3R                          TAMP_BKP3R_Msk
18335 
18336 /********************  Bits definition for TAMP_BKP4R register  ****************/
18337 #define TAMP_BKP4R_Pos                      (0U)
18338 #define TAMP_BKP4R_Msk                      (0xFFFFFFFFUL << TAMP_BKP4R_Pos)        /*!< 0xFFFFFFFF */
18339 #define TAMP_BKP4R                          TAMP_BKP4R_Msk
18340 
18341 /********************  Bits definition for TAMP_BKP5R register  ****************/
18342 #define TAMP_BKP5R_Pos                      (0U)
18343 #define TAMP_BKP5R_Msk                      (0xFFFFFFFFUL << TAMP_BKP5R_Pos)        /*!< 0xFFFFFFFF */
18344 #define TAMP_BKP5R                          TAMP_BKP5R_Msk
18345 
18346 /********************  Bits definition for TAMP_BKP6R register  ****************/
18347 #define TAMP_BKP6R_Pos                      (0U)
18348 #define TAMP_BKP6R_Msk                      (0xFFFFFFFFUL << TAMP_BKP6R_Pos)        /*!< 0xFFFFFFFF */
18349 #define TAMP_BKP6R                          TAMP_BKP6R_Msk
18350 
18351 /********************  Bits definition for TAMP_BKP7R register  ****************/
18352 #define TAMP_BKP7R_Pos                      (0U)
18353 #define TAMP_BKP7R_Msk                      (0xFFFFFFFFUL << TAMP_BKP7R_Pos)        /*!< 0xFFFFFFFF */
18354 #define TAMP_BKP7R                          TAMP_BKP7R_Msk
18355 
18356 /********************  Bits definition for TAMP_BKP8R register  ****************/
18357 #define TAMP_BKP8R_Pos                      (0U)
18358 #define TAMP_BKP8R_Msk                      (0xFFFFFFFFUL << TAMP_BKP8R_Pos)        /*!< 0xFFFFFFFF */
18359 #define TAMP_BKP8R                          TAMP_BKP8R_Msk
18360 
18361 /********************  Bits definition for TAMP_BKP9R register  ****************/
18362 #define TAMP_BKP9R_Pos                      (0U)
18363 #define TAMP_BKP9R_Msk                      (0xFFFFFFFFUL << TAMP_BKP9R_Pos)        /*!< 0xFFFFFFFF */
18364 #define TAMP_BKP9R                          TAMP_BKP9R_Msk
18365 
18366 /********************  Bits definition for TAMP_BKP10R register  ***************/
18367 #define TAMP_BKP10R_Pos                     (0U)
18368 #define TAMP_BKP10R_Msk                     (0xFFFFFFFFUL << TAMP_BKP10R_Pos)       /*!< 0xFFFFFFFF */
18369 #define TAMP_BKP10R                         TAMP_BKP10R_Msk
18370 
18371 /********************  Bits definition for TAMP_BKP11R register  ***************/
18372 #define TAMP_BKP11R_Pos                     (0U)
18373 #define TAMP_BKP11R_Msk                     (0xFFFFFFFFUL << TAMP_BKP11R_Pos)       /*!< 0xFFFFFFFF */
18374 #define TAMP_BKP11R                         TAMP_BKP11R_Msk
18375 
18376 /********************  Bits definition for TAMP_BKP12R register  ***************/
18377 #define TAMP_BKP12R_Pos                     (0U)
18378 #define TAMP_BKP12R_Msk                     (0xFFFFFFFFUL << TAMP_BKP12R_Pos)       /*!< 0xFFFFFFFF */
18379 #define TAMP_BKP12R                         TAMP_BKP12R_Msk
18380 
18381 /********************  Bits definition for TAMP_BKP13R register  ***************/
18382 #define TAMP_BKP13R_Pos                     (0U)
18383 #define TAMP_BKP13R_Msk                     (0xFFFFFFFFUL << TAMP_BKP13R_Pos)       /*!< 0xFFFFFFFF */
18384 #define TAMP_BKP13R                         TAMP_BKP13R_Msk
18385 
18386 /********************  Bits definition for TAMP_BKP14R register  ***************/
18387 #define TAMP_BKP14R_Pos                     (0U)
18388 #define TAMP_BKP14R_Msk                     (0xFFFFFFFFUL << TAMP_BKP14R_Pos)       /*!< 0xFFFFFFFF */
18389 #define TAMP_BKP14R                         TAMP_BKP14R_Msk
18390 
18391 /********************  Bits definition for TAMP_BKP15R register  ***************/
18392 #define TAMP_BKP15R_Pos                     (0U)
18393 #define TAMP_BKP15R_Msk                     (0xFFFFFFFFUL << TAMP_BKP15R_Pos)       /*!< 0xFFFFFFFF */
18394 #define TAMP_BKP15R                         TAMP_BKP15R_Msk
18395 
18396 /********************  Bits definition for TAMP_BKP16R register  ***************/
18397 #define TAMP_BKP16R_Pos                     (0U)
18398 #define TAMP_BKP16R_Msk                     (0xFFFFFFFFUL << TAMP_BKP16R_Pos)       /*!< 0xFFFFFFFF */
18399 #define TAMP_BKP16R                         TAMP_BKP16R_Msk
18400 
18401 /********************  Bits definition for TAMP_BKP17R register  ***************/
18402 #define TAMP_BKP17R_Pos                     (0U)
18403 #define TAMP_BKP17R_Msk                     (0xFFFFFFFFUL << TAMP_BKP17R_Pos)       /*!< 0xFFFFFFFF */
18404 #define TAMP_BKP17R                         TAMP_BKP17R_Msk
18405 
18406 /********************  Bits definition for TAMP_BKP18R register  ***************/
18407 #define TAMP_BKP18R_Pos                     (0U)
18408 #define TAMP_BKP18R_Msk                     (0xFFFFFFFFUL << TAMP_BKP18R_Pos)       /*!< 0xFFFFFFFF */
18409 #define TAMP_BKP18R                         TAMP_BKP18R_Msk
18410 
18411 /********************  Bits definition for TAMP_BKP19R register  ***************/
18412 #define TAMP_BKP19R_Pos                     (0U)
18413 #define TAMP_BKP19R_Msk                     (0xFFFFFFFFUL << TAMP_BKP19R_Pos)       /*!< 0xFFFFFFFF */
18414 #define TAMP_BKP19R                         TAMP_BKP19R_Msk
18415 
18416 /********************  Bits definition for TAMP_BKP20R register  ***************/
18417 #define TAMP_BKP20R_Pos                     (0U)
18418 #define TAMP_BKP20R_Msk                     (0xFFFFFFFFUL << TAMP_BKP20R_Pos)       /*!< 0xFFFFFFFF */
18419 #define TAMP_BKP20R                         TAMP_BKP20R_Msk
18420 
18421 /********************  Bits definition for TAMP_BKP21R register  ***************/
18422 #define TAMP_BKP21R_Pos                     (0U)
18423 #define TAMP_BKP21R_Msk                     (0xFFFFFFFFUL << TAMP_BKP21R_Pos)       /*!< 0xFFFFFFFF */
18424 #define TAMP_BKP21R                         TAMP_BKP21R_Msk
18425 
18426 /********************  Bits definition for TAMP_BKP22R register  ***************/
18427 #define TAMP_BKP22R_Pos                     (0U)
18428 #define TAMP_BKP22R_Msk                     (0xFFFFFFFFUL << TAMP_BKP22R_Pos)       /*!< 0xFFFFFFFF */
18429 #define TAMP_BKP22R                         TAMP_BKP22R_Msk
18430 
18431 /********************  Bits definition for TAMP_BKP23R register  ***************/
18432 #define TAMP_BKP23R_Pos                     (0U)
18433 #define TAMP_BKP23R_Msk                     (0xFFFFFFFFUL << TAMP_BKP23R_Pos)       /*!< 0xFFFFFFFF */
18434 #define TAMP_BKP23R                         TAMP_BKP23R_Msk
18435 
18436 /********************  Bits definition for TAMP_BKP24R register  ***************/
18437 #define TAMP_BKP24R_Pos                     (0U)
18438 #define TAMP_BKP24R_Msk                     (0xFFFFFFFFUL << TAMP_BKP24R_Pos)       /*!< 0xFFFFFFFF */
18439 #define TAMP_BKP24R                         TAMP_BKP24R_Msk
18440 
18441 /********************  Bits definition for TAMP_BKP25R register  ***************/
18442 #define TAMP_BKP25R_Pos                     (0U)
18443 #define TAMP_BKP25R_Msk                     (0xFFFFFFFFUL << TAMP_BKP25R_Pos)       /*!< 0xFFFFFFFF */
18444 #define TAMP_BKP25R                         TAMP_BKP25R_Msk
18445 
18446 /********************  Bits definition for TAMP_BKP26R register  ***************/
18447 #define TAMP_BKP26R_Pos                     (0U)
18448 #define TAMP_BKP26R_Msk                     (0xFFFFFFFFUL << TAMP_BKP26R_Pos)       /*!< 0xFFFFFFFF */
18449 #define TAMP_BKP26R                         TAMP_BKP26R_Msk
18450 
18451 /********************  Bits definition for TAMP_BKP27R register  ***************/
18452 #define TAMP_BKP27R_Pos                     (0U)
18453 #define TAMP_BKP27R_Msk                     (0xFFFFFFFFUL << TAMP_BKP27R_Pos)       /*!< 0xFFFFFFFF */
18454 #define TAMP_BKP27R                         TAMP_BKP27R_Msk
18455 
18456 /********************  Bits definition for TAMP_BKP28R register  ***************/
18457 #define TAMP_BKP28R_Pos                     (0U)
18458 #define TAMP_BKP28R_Msk                     (0xFFFFFFFFUL << TAMP_BKP28R_Pos)       /*!< 0xFFFFFFFF */
18459 #define TAMP_BKP28R                         TAMP_BKP28R_Msk
18460 
18461 /********************  Bits definition for TAMP_BKP29R register  ***************/
18462 #define TAMP_BKP29R_Pos                     (0U)
18463 #define TAMP_BKP29R_Msk                     (0xFFFFFFFFUL << TAMP_BKP29R_Pos)       /*!< 0xFFFFFFFF */
18464 #define TAMP_BKP29R                         TAMP_BKP29R_Msk
18465 
18466 /********************  Bits definition for TAMP_BKP30R register  ***************/
18467 #define TAMP_BKP30R_Pos                     (0U)
18468 #define TAMP_BKP30R_Msk                     (0xFFFFFFFFUL << TAMP_BKP30R_Pos)       /*!< 0xFFFFFFFF */
18469 #define TAMP_BKP30R                         TAMP_BKP30R_Msk
18470 
18471 /********************  Bits definition for TAMP_BKP31R register  ***************/
18472 #define TAMP_BKP31R_Pos                     (0U)
18473 #define TAMP_BKP31R_Msk                     (0xFFFFFFFFUL << TAMP_BKP31R_Pos)       /*!< 0xFFFFFFFF */
18474 #define TAMP_BKP31R                         TAMP_BKP31R_Msk
18475 
18476 /******************************************************************************/
18477 /*                                                                            */
18478 /*                          Touch Sensing Controller (TSC)                    */
18479 /*                                                                            */
18480 /******************************************************************************/
18481 /*******************  Bit definition for TSC_CR register  *********************/
18482 #define TSC_CR_TSCE_Pos          (0U)
18483 #define TSC_CR_TSCE_Msk          (0x1UL << TSC_CR_TSCE_Pos)                    /*!< 0x00000001 */
18484 #define TSC_CR_TSCE              TSC_CR_TSCE_Msk                               /*!<Touch sensing controller enable */
18485 #define TSC_CR_START_Pos         (1U)
18486 #define TSC_CR_START_Msk         (0x1UL << TSC_CR_START_Pos)                   /*!< 0x00000002 */
18487 #define TSC_CR_START             TSC_CR_START_Msk                              /*!<Start acquisition */
18488 #define TSC_CR_AM_Pos            (2U)
18489 #define TSC_CR_AM_Msk            (0x1UL << TSC_CR_AM_Pos)                      /*!< 0x00000004 */
18490 #define TSC_CR_AM                TSC_CR_AM_Msk                                 /*!<Acquisition mode */
18491 #define TSC_CR_SYNCPOL_Pos       (3U)
18492 #define TSC_CR_SYNCPOL_Msk       (0x1UL << TSC_CR_SYNCPOL_Pos)                 /*!< 0x00000008 */
18493 #define TSC_CR_SYNCPOL           TSC_CR_SYNCPOL_Msk                            /*!<Synchronization pin polarity */
18494 #define TSC_CR_IODEF_Pos         (4U)
18495 #define TSC_CR_IODEF_Msk         (0x1UL << TSC_CR_IODEF_Pos)                   /*!< 0x00000010 */
18496 #define TSC_CR_IODEF             TSC_CR_IODEF_Msk                              /*!<IO default mode */
18497 
18498 #define TSC_CR_MCV_Pos           (5U)
18499 #define TSC_CR_MCV_Msk           (0x7UL << TSC_CR_MCV_Pos)                     /*!< 0x000000E0 */
18500 #define TSC_CR_MCV               TSC_CR_MCV_Msk                                /*!<MCV[2:0] bits (Max Count Value) */
18501 #define TSC_CR_MCV_0             (0x1UL << TSC_CR_MCV_Pos)                     /*!< 0x00000020 */
18502 #define TSC_CR_MCV_1             (0x2UL << TSC_CR_MCV_Pos)                     /*!< 0x00000040 */
18503 #define TSC_CR_MCV_2             (0x4UL << TSC_CR_MCV_Pos)                     /*!< 0x00000080 */
18504 
18505 #define TSC_CR_PGPSC_Pos         (12U)
18506 #define TSC_CR_PGPSC_Msk         (0x7UL << TSC_CR_PGPSC_Pos)                   /*!< 0x00007000 */
18507 #define TSC_CR_PGPSC             TSC_CR_PGPSC_Msk                              /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */
18508 #define TSC_CR_PGPSC_0           (0x1UL << TSC_CR_PGPSC_Pos)                   /*!< 0x00001000 */
18509 #define TSC_CR_PGPSC_1           (0x2UL << TSC_CR_PGPSC_Pos)                   /*!< 0x00002000 */
18510 #define TSC_CR_PGPSC_2           (0x4UL << TSC_CR_PGPSC_Pos)                   /*!< 0x00004000 */
18511 
18512 #define TSC_CR_SSPSC_Pos         (15U)
18513 #define TSC_CR_SSPSC_Msk         (0x1UL << TSC_CR_SSPSC_Pos)                   /*!< 0x00008000 */
18514 #define TSC_CR_SSPSC             TSC_CR_SSPSC_Msk                              /*!<Spread Spectrum Prescaler */
18515 #define TSC_CR_SSE_Pos           (16U)
18516 #define TSC_CR_SSE_Msk           (0x1UL << TSC_CR_SSE_Pos)                     /*!< 0x00010000 */
18517 #define TSC_CR_SSE               TSC_CR_SSE_Msk                                /*!<Spread Spectrum Enable */
18518 
18519 #define TSC_CR_SSD_Pos           (17U)
18520 #define TSC_CR_SSD_Msk           (0x7FUL << TSC_CR_SSD_Pos)                    /*!< 0x00FE0000 */
18521 #define TSC_CR_SSD               TSC_CR_SSD_Msk                                /*!<SSD[6:0] bits (Spread Spectrum Deviation) */
18522 #define TSC_CR_SSD_0             (0x01UL << TSC_CR_SSD_Pos)                    /*!< 0x00020000 */
18523 #define TSC_CR_SSD_1             (0x02UL << TSC_CR_SSD_Pos)                    /*!< 0x00040000 */
18524 #define TSC_CR_SSD_2             (0x04UL << TSC_CR_SSD_Pos)                    /*!< 0x00080000 */
18525 #define TSC_CR_SSD_3             (0x08UL << TSC_CR_SSD_Pos)                    /*!< 0x00100000 */
18526 #define TSC_CR_SSD_4             (0x10UL << TSC_CR_SSD_Pos)                    /*!< 0x00200000 */
18527 #define TSC_CR_SSD_5             (0x20UL << TSC_CR_SSD_Pos)                    /*!< 0x00400000 */
18528 #define TSC_CR_SSD_6             (0x40UL << TSC_CR_SSD_Pos)                    /*!< 0x00800000 */
18529 
18530 #define TSC_CR_CTPL_Pos          (24U)
18531 #define TSC_CR_CTPL_Msk          (0xFUL << TSC_CR_CTPL_Pos)                    /*!< 0x0F000000 */
18532 #define TSC_CR_CTPL              TSC_CR_CTPL_Msk                               /*!<CTPL[3:0] bits (Charge Transfer pulse low) */
18533 #define TSC_CR_CTPL_0            (0x1UL << TSC_CR_CTPL_Pos)                    /*!< 0x01000000 */
18534 #define TSC_CR_CTPL_1            (0x2UL << TSC_CR_CTPL_Pos)                    /*!< 0x02000000 */
18535 #define TSC_CR_CTPL_2            (0x4UL << TSC_CR_CTPL_Pos)                    /*!< 0x04000000 */
18536 #define TSC_CR_CTPL_3            (0x8UL << TSC_CR_CTPL_Pos)                    /*!< 0x08000000 */
18537 
18538 #define TSC_CR_CTPH_Pos          (28U)
18539 #define TSC_CR_CTPH_Msk          (0xFUL << TSC_CR_CTPH_Pos)                    /*!< 0xF0000000 */
18540 #define TSC_CR_CTPH              TSC_CR_CTPH_Msk                               /*!<CTPH[3:0] bits (Charge Transfer pulse high) */
18541 #define TSC_CR_CTPH_0            (0x1UL << TSC_CR_CTPH_Pos)                    /*!< 0x10000000 */
18542 #define TSC_CR_CTPH_1            (0x2UL << TSC_CR_CTPH_Pos)                    /*!< 0x20000000 */
18543 #define TSC_CR_CTPH_2            (0x4UL << TSC_CR_CTPH_Pos)                    /*!< 0x40000000 */
18544 #define TSC_CR_CTPH_3            (0x8UL << TSC_CR_CTPH_Pos)                    /*!< 0x80000000 */
18545 
18546 /*******************  Bit definition for TSC_IER register  ********************/
18547 #define TSC_IER_EOAIE_Pos        (0U)
18548 #define TSC_IER_EOAIE_Msk        (0x1UL << TSC_IER_EOAIE_Pos)                  /*!< 0x00000001 */
18549 #define TSC_IER_EOAIE            TSC_IER_EOAIE_Msk                             /*!<End of acquisition interrupt enable */
18550 #define TSC_IER_MCEIE_Pos        (1U)
18551 #define TSC_IER_MCEIE_Msk        (0x1UL << TSC_IER_MCEIE_Pos)                  /*!< 0x00000002 */
18552 #define TSC_IER_MCEIE            TSC_IER_MCEIE_Msk                             /*!<Max count error interrupt enable */
18553 
18554 /*******************  Bit definition for TSC_ICR register  ********************/
18555 #define TSC_ICR_EOAIC_Pos        (0U)
18556 #define TSC_ICR_EOAIC_Msk        (0x1UL << TSC_ICR_EOAIC_Pos)                  /*!< 0x00000001 */
18557 #define TSC_ICR_EOAIC            TSC_ICR_EOAIC_Msk                             /*!<End of acquisition interrupt clear */
18558 #define TSC_ICR_MCEIC_Pos        (1U)
18559 #define TSC_ICR_MCEIC_Msk        (0x1UL << TSC_ICR_MCEIC_Pos)                  /*!< 0x00000002 */
18560 #define TSC_ICR_MCEIC            TSC_ICR_MCEIC_Msk                             /*!<Max count error interrupt clear */
18561 
18562 /*******************  Bit definition for TSC_ISR register  ********************/
18563 #define TSC_ISR_EOAF_Pos         (0U)
18564 #define TSC_ISR_EOAF_Msk         (0x1UL << TSC_ISR_EOAF_Pos)                   /*!< 0x00000001 */
18565 #define TSC_ISR_EOAF             TSC_ISR_EOAF_Msk                              /*!<End of acquisition flag */
18566 #define TSC_ISR_MCEF_Pos         (1U)
18567 #define TSC_ISR_MCEF_Msk         (0x1UL << TSC_ISR_MCEF_Pos)                   /*!< 0x00000002 */
18568 #define TSC_ISR_MCEF             TSC_ISR_MCEF_Msk                              /*!<Max count error flag */
18569 
18570 /*******************  Bit definition for TSC_IOHCR register  ******************/
18571 #define TSC_IOHCR_G1_IO1_Pos     (0U)
18572 #define TSC_IOHCR_G1_IO1_Msk     (0x1UL << TSC_IOHCR_G1_IO1_Pos)               /*!< 0x00000001 */
18573 #define TSC_IOHCR_G1_IO1         TSC_IOHCR_G1_IO1_Msk                          /*!<GROUP1_IO1 schmitt trigger hysteresis mode */
18574 #define TSC_IOHCR_G1_IO2_Pos     (1U)
18575 #define TSC_IOHCR_G1_IO2_Msk     (0x1UL << TSC_IOHCR_G1_IO2_Pos)               /*!< 0x00000002 */
18576 #define TSC_IOHCR_G1_IO2         TSC_IOHCR_G1_IO2_Msk                          /*!<GROUP1_IO2 schmitt trigger hysteresis mode */
18577 #define TSC_IOHCR_G1_IO3_Pos     (2U)
18578 #define TSC_IOHCR_G1_IO3_Msk     (0x1UL << TSC_IOHCR_G1_IO3_Pos)               /*!< 0x00000004 */
18579 #define TSC_IOHCR_G1_IO3         TSC_IOHCR_G1_IO3_Msk                          /*!<GROUP1_IO3 schmitt trigger hysteresis mode */
18580 #define TSC_IOHCR_G1_IO4_Pos     (3U)
18581 #define TSC_IOHCR_G1_IO4_Msk     (0x1UL << TSC_IOHCR_G1_IO4_Pos)               /*!< 0x00000008 */
18582 #define TSC_IOHCR_G1_IO4         TSC_IOHCR_G1_IO4_Msk                          /*!<GROUP1_IO4 schmitt trigger hysteresis mode */
18583 #define TSC_IOHCR_G2_IO1_Pos     (4U)
18584 #define TSC_IOHCR_G2_IO1_Msk     (0x1UL << TSC_IOHCR_G2_IO1_Pos)               /*!< 0x00000010 */
18585 #define TSC_IOHCR_G2_IO1         TSC_IOHCR_G2_IO1_Msk                          /*!<GROUP2_IO1 schmitt trigger hysteresis mode */
18586 #define TSC_IOHCR_G2_IO2_Pos     (5U)
18587 #define TSC_IOHCR_G2_IO2_Msk     (0x1UL << TSC_IOHCR_G2_IO2_Pos)               /*!< 0x00000020 */
18588 #define TSC_IOHCR_G2_IO2         TSC_IOHCR_G2_IO2_Msk                          /*!<GROUP2_IO2 schmitt trigger hysteresis mode */
18589 #define TSC_IOHCR_G2_IO3_Pos     (6U)
18590 #define TSC_IOHCR_G2_IO3_Msk     (0x1UL << TSC_IOHCR_G2_IO3_Pos)               /*!< 0x00000040 */
18591 #define TSC_IOHCR_G2_IO3         TSC_IOHCR_G2_IO3_Msk                          /*!<GROUP2_IO3 schmitt trigger hysteresis mode */
18592 #define TSC_IOHCR_G2_IO4_Pos     (7U)
18593 #define TSC_IOHCR_G2_IO4_Msk     (0x1UL << TSC_IOHCR_G2_IO4_Pos)               /*!< 0x00000080 */
18594 #define TSC_IOHCR_G2_IO4         TSC_IOHCR_G2_IO4_Msk                          /*!<GROUP2_IO4 schmitt trigger hysteresis mode */
18595 #define TSC_IOHCR_G3_IO1_Pos     (8U)
18596 #define TSC_IOHCR_G3_IO1_Msk     (0x1UL << TSC_IOHCR_G3_IO1_Pos)               /*!< 0x00000100 */
18597 #define TSC_IOHCR_G3_IO1         TSC_IOHCR_G3_IO1_Msk                          /*!<GROUP3_IO1 schmitt trigger hysteresis mode */
18598 #define TSC_IOHCR_G3_IO2_Pos     (9U)
18599 #define TSC_IOHCR_G3_IO2_Msk     (0x1UL << TSC_IOHCR_G3_IO2_Pos)               /*!< 0x00000200 */
18600 #define TSC_IOHCR_G3_IO2         TSC_IOHCR_G3_IO2_Msk                          /*!<GROUP3_IO2 schmitt trigger hysteresis mode */
18601 #define TSC_IOHCR_G3_IO3_Pos     (10U)
18602 #define TSC_IOHCR_G3_IO3_Msk     (0x1UL << TSC_IOHCR_G3_IO3_Pos)               /*!< 0x00000400 */
18603 #define TSC_IOHCR_G3_IO3         TSC_IOHCR_G3_IO3_Msk                          /*!<GROUP3_IO3 schmitt trigger hysteresis mode */
18604 #define TSC_IOHCR_G3_IO4_Pos     (11U)
18605 #define TSC_IOHCR_G3_IO4_Msk     (0x1UL << TSC_IOHCR_G3_IO4_Pos)               /*!< 0x00000800 */
18606 #define TSC_IOHCR_G3_IO4         TSC_IOHCR_G3_IO4_Msk                          /*!<GROUP3_IO4 schmitt trigger hysteresis mode */
18607 #define TSC_IOHCR_G4_IO1_Pos     (12U)
18608 #define TSC_IOHCR_G4_IO1_Msk     (0x1UL << TSC_IOHCR_G4_IO1_Pos)               /*!< 0x00001000 */
18609 #define TSC_IOHCR_G4_IO1         TSC_IOHCR_G4_IO1_Msk                          /*!<GROUP4_IO1 schmitt trigger hysteresis mode */
18610 #define TSC_IOHCR_G4_IO2_Pos     (13U)
18611 #define TSC_IOHCR_G4_IO2_Msk     (0x1UL << TSC_IOHCR_G4_IO2_Pos)               /*!< 0x00002000 */
18612 #define TSC_IOHCR_G4_IO2         TSC_IOHCR_G4_IO2_Msk                          /*!<GROUP4_IO2 schmitt trigger hysteresis mode */
18613 #define TSC_IOHCR_G4_IO3_Pos     (14U)
18614 #define TSC_IOHCR_G4_IO3_Msk     (0x1UL << TSC_IOHCR_G4_IO3_Pos)               /*!< 0x00004000 */
18615 #define TSC_IOHCR_G4_IO3         TSC_IOHCR_G4_IO3_Msk                          /*!<GROUP4_IO3 schmitt trigger hysteresis mode */
18616 #define TSC_IOHCR_G4_IO4_Pos     (15U)
18617 #define TSC_IOHCR_G4_IO4_Msk     (0x1UL << TSC_IOHCR_G4_IO4_Pos)               /*!< 0x00008000 */
18618 #define TSC_IOHCR_G4_IO4         TSC_IOHCR_G4_IO4_Msk                          /*!<GROUP4_IO4 schmitt trigger hysteresis mode */
18619 #define TSC_IOHCR_G5_IO1_Pos     (16U)
18620 #define TSC_IOHCR_G5_IO1_Msk     (0x1UL << TSC_IOHCR_G5_IO1_Pos)               /*!< 0x00010000 */
18621 #define TSC_IOHCR_G5_IO1         TSC_IOHCR_G5_IO1_Msk                          /*!<GROUP5_IO1 schmitt trigger hysteresis mode */
18622 #define TSC_IOHCR_G5_IO2_Pos     (17U)
18623 #define TSC_IOHCR_G5_IO2_Msk     (0x1UL << TSC_IOHCR_G5_IO2_Pos)               /*!< 0x00020000 */
18624 #define TSC_IOHCR_G5_IO2         TSC_IOHCR_G5_IO2_Msk                          /*!<GROUP5_IO2 schmitt trigger hysteresis mode */
18625 #define TSC_IOHCR_G5_IO3_Pos     (18U)
18626 #define TSC_IOHCR_G5_IO3_Msk     (0x1UL << TSC_IOHCR_G5_IO3_Pos)               /*!< 0x00040000 */
18627 #define TSC_IOHCR_G5_IO3         TSC_IOHCR_G5_IO3_Msk                          /*!<GROUP5_IO3 schmitt trigger hysteresis mode */
18628 #define TSC_IOHCR_G5_IO4_Pos     (19U)
18629 #define TSC_IOHCR_G5_IO4_Msk     (0x1UL << TSC_IOHCR_G5_IO4_Pos)               /*!< 0x00080000 */
18630 #define TSC_IOHCR_G5_IO4         TSC_IOHCR_G5_IO4_Msk                          /*!<GROUP5_IO4 schmitt trigger hysteresis mode */
18631 #define TSC_IOHCR_G6_IO1_Pos     (20U)
18632 #define TSC_IOHCR_G6_IO1_Msk     (0x1UL << TSC_IOHCR_G6_IO1_Pos)               /*!< 0x00100000 */
18633 #define TSC_IOHCR_G6_IO1         TSC_IOHCR_G6_IO1_Msk                          /*!<GROUP6_IO1 schmitt trigger hysteresis mode */
18634 #define TSC_IOHCR_G6_IO2_Pos     (21U)
18635 #define TSC_IOHCR_G6_IO2_Msk     (0x1UL << TSC_IOHCR_G6_IO2_Pos)               /*!< 0x00200000 */
18636 #define TSC_IOHCR_G6_IO2         TSC_IOHCR_G6_IO2_Msk                          /*!<GROUP6_IO2 schmitt trigger hysteresis mode */
18637 #define TSC_IOHCR_G6_IO3_Pos     (22U)
18638 #define TSC_IOHCR_G6_IO3_Msk     (0x1UL << TSC_IOHCR_G6_IO3_Pos)               /*!< 0x00400000 */
18639 #define TSC_IOHCR_G6_IO3         TSC_IOHCR_G6_IO3_Msk                          /*!<GROUP6_IO3 schmitt trigger hysteresis mode */
18640 #define TSC_IOHCR_G6_IO4_Pos     (23U)
18641 #define TSC_IOHCR_G6_IO4_Msk     (0x1UL << TSC_IOHCR_G6_IO4_Pos)               /*!< 0x00800000 */
18642 #define TSC_IOHCR_G6_IO4         TSC_IOHCR_G6_IO4_Msk                          /*!<GROUP6_IO4 schmitt trigger hysteresis mode */
18643 #define TSC_IOHCR_G7_IO1_Pos     (24U)
18644 #define TSC_IOHCR_G7_IO1_Msk     (0x1UL << TSC_IOHCR_G7_IO1_Pos)               /*!< 0x01000000 */
18645 #define TSC_IOHCR_G7_IO1         TSC_IOHCR_G7_IO1_Msk                          /*!<GROUP7_IO1 schmitt trigger hysteresis mode */
18646 #define TSC_IOHCR_G7_IO2_Pos     (25U)
18647 #define TSC_IOHCR_G7_IO2_Msk     (0x1UL << TSC_IOHCR_G7_IO2_Pos)               /*!< 0x02000000 */
18648 #define TSC_IOHCR_G7_IO2         TSC_IOHCR_G7_IO2_Msk                          /*!<GROUP7_IO2 schmitt trigger hysteresis mode */
18649 #define TSC_IOHCR_G7_IO3_Pos     (26U)
18650 #define TSC_IOHCR_G7_IO3_Msk     (0x1UL << TSC_IOHCR_G7_IO3_Pos)               /*!< 0x04000000 */
18651 #define TSC_IOHCR_G7_IO3         TSC_IOHCR_G7_IO3_Msk                          /*!<GROUP7_IO3 schmitt trigger hysteresis mode */
18652 #define TSC_IOHCR_G7_IO4_Pos     (27U)
18653 #define TSC_IOHCR_G7_IO4_Msk     (0x1UL << TSC_IOHCR_G7_IO4_Pos)               /*!< 0x08000000 */
18654 #define TSC_IOHCR_G7_IO4         TSC_IOHCR_G7_IO4_Msk                          /*!<GROUP7_IO4 schmitt trigger hysteresis mode */
18655 #define TSC_IOHCR_G8_IO1_Pos     (28U)
18656 #define TSC_IOHCR_G8_IO1_Msk     (0x1UL << TSC_IOHCR_G8_IO1_Pos)               /*!< 0x10000000 */
18657 #define TSC_IOHCR_G8_IO1         TSC_IOHCR_G8_IO1_Msk                          /*!<GROUP8_IO1 schmitt trigger hysteresis mode */
18658 #define TSC_IOHCR_G8_IO2_Pos     (29U)
18659 #define TSC_IOHCR_G8_IO2_Msk     (0x1UL << TSC_IOHCR_G8_IO2_Pos)               /*!< 0x20000000 */
18660 #define TSC_IOHCR_G8_IO2         TSC_IOHCR_G8_IO2_Msk                          /*!<GROUP8_IO2 schmitt trigger hysteresis mode */
18661 #define TSC_IOHCR_G8_IO3_Pos     (30U)
18662 #define TSC_IOHCR_G8_IO3_Msk     (0x1UL << TSC_IOHCR_G8_IO3_Pos)               /*!< 0x40000000 */
18663 #define TSC_IOHCR_G8_IO3         TSC_IOHCR_G8_IO3_Msk                          /*!<GROUP8_IO3 schmitt trigger hysteresis mode */
18664 #define TSC_IOHCR_G8_IO4_Pos     (31U)
18665 #define TSC_IOHCR_G8_IO4_Msk     (0x1UL << TSC_IOHCR_G8_IO4_Pos)               /*!< 0x80000000 */
18666 #define TSC_IOHCR_G8_IO4         TSC_IOHCR_G8_IO4_Msk                          /*!<GROUP8_IO4 schmitt trigger hysteresis mode */
18667 
18668 /*******************  Bit definition for TSC_IOASCR register  *****************/
18669 #define TSC_IOASCR_G1_IO1_Pos    (0U)
18670 #define TSC_IOASCR_G1_IO1_Msk    (0x1UL << TSC_IOASCR_G1_IO1_Pos)              /*!< 0x00000001 */
18671 #define TSC_IOASCR_G1_IO1        TSC_IOASCR_G1_IO1_Msk                         /*!<GROUP1_IO1 analog switch enable */
18672 #define TSC_IOASCR_G1_IO2_Pos    (1U)
18673 #define TSC_IOASCR_G1_IO2_Msk    (0x1UL << TSC_IOASCR_G1_IO2_Pos)              /*!< 0x00000002 */
18674 #define TSC_IOASCR_G1_IO2        TSC_IOASCR_G1_IO2_Msk                         /*!<GROUP1_IO2 analog switch enable */
18675 #define TSC_IOASCR_G1_IO3_Pos    (2U)
18676 #define TSC_IOASCR_G1_IO3_Msk    (0x1UL << TSC_IOASCR_G1_IO3_Pos)              /*!< 0x00000004 */
18677 #define TSC_IOASCR_G1_IO3        TSC_IOASCR_G1_IO3_Msk                         /*!<GROUP1_IO3 analog switch enable */
18678 #define TSC_IOASCR_G1_IO4_Pos    (3U)
18679 #define TSC_IOASCR_G1_IO4_Msk    (0x1UL << TSC_IOASCR_G1_IO4_Pos)              /*!< 0x00000008 */
18680 #define TSC_IOASCR_G1_IO4        TSC_IOASCR_G1_IO4_Msk                         /*!<GROUP1_IO4 analog switch enable */
18681 #define TSC_IOASCR_G2_IO1_Pos    (4U)
18682 #define TSC_IOASCR_G2_IO1_Msk    (0x1UL << TSC_IOASCR_G2_IO1_Pos)              /*!< 0x00000010 */
18683 #define TSC_IOASCR_G2_IO1        TSC_IOASCR_G2_IO1_Msk                         /*!<GROUP2_IO1 analog switch enable */
18684 #define TSC_IOASCR_G2_IO2_Pos    (5U)
18685 #define TSC_IOASCR_G2_IO2_Msk    (0x1UL << TSC_IOASCR_G2_IO2_Pos)              /*!< 0x00000020 */
18686 #define TSC_IOASCR_G2_IO2        TSC_IOASCR_G2_IO2_Msk                         /*!<GROUP2_IO2 analog switch enable */
18687 #define TSC_IOASCR_G2_IO3_Pos    (6U)
18688 #define TSC_IOASCR_G2_IO3_Msk    (0x1UL << TSC_IOASCR_G2_IO3_Pos)              /*!< 0x00000040 */
18689 #define TSC_IOASCR_G2_IO3        TSC_IOASCR_G2_IO3_Msk                         /*!<GROUP2_IO3 analog switch enable */
18690 #define TSC_IOASCR_G2_IO4_Pos    (7U)
18691 #define TSC_IOASCR_G2_IO4_Msk    (0x1UL << TSC_IOASCR_G2_IO4_Pos)              /*!< 0x00000080 */
18692 #define TSC_IOASCR_G2_IO4        TSC_IOASCR_G2_IO4_Msk                         /*!<GROUP2_IO4 analog switch enable */
18693 #define TSC_IOASCR_G3_IO1_Pos    (8U)
18694 #define TSC_IOASCR_G3_IO1_Msk    (0x1UL << TSC_IOASCR_G3_IO1_Pos)              /*!< 0x00000100 */
18695 #define TSC_IOASCR_G3_IO1        TSC_IOASCR_G3_IO1_Msk                         /*!<GROUP3_IO1 analog switch enable */
18696 #define TSC_IOASCR_G3_IO2_Pos    (9U)
18697 #define TSC_IOASCR_G3_IO2_Msk    (0x1UL << TSC_IOASCR_G3_IO2_Pos)              /*!< 0x00000200 */
18698 #define TSC_IOASCR_G3_IO2        TSC_IOASCR_G3_IO2_Msk                         /*!<GROUP3_IO2 analog switch enable */
18699 #define TSC_IOASCR_G3_IO3_Pos    (10U)
18700 #define TSC_IOASCR_G3_IO3_Msk    (0x1UL << TSC_IOASCR_G3_IO3_Pos)              /*!< 0x00000400 */
18701 #define TSC_IOASCR_G3_IO3        TSC_IOASCR_G3_IO3_Msk                         /*!<GROUP3_IO3 analog switch enable */
18702 #define TSC_IOASCR_G3_IO4_Pos    (11U)
18703 #define TSC_IOASCR_G3_IO4_Msk    (0x1UL << TSC_IOASCR_G3_IO4_Pos)              /*!< 0x00000800 */
18704 #define TSC_IOASCR_G3_IO4        TSC_IOASCR_G3_IO4_Msk                         /*!<GROUP3_IO4 analog switch enable */
18705 #define TSC_IOASCR_G4_IO1_Pos    (12U)
18706 #define TSC_IOASCR_G4_IO1_Msk    (0x1UL << TSC_IOASCR_G4_IO1_Pos)              /*!< 0x00001000 */
18707 #define TSC_IOASCR_G4_IO1        TSC_IOASCR_G4_IO1_Msk                         /*!<GROUP4_IO1 analog switch enable */
18708 #define TSC_IOASCR_G4_IO2_Pos    (13U)
18709 #define TSC_IOASCR_G4_IO2_Msk    (0x1UL << TSC_IOASCR_G4_IO2_Pos)              /*!< 0x00002000 */
18710 #define TSC_IOASCR_G4_IO2        TSC_IOASCR_G4_IO2_Msk                         /*!<GROUP4_IO2 analog switch enable */
18711 #define TSC_IOASCR_G4_IO3_Pos    (14U)
18712 #define TSC_IOASCR_G4_IO3_Msk    (0x1UL << TSC_IOASCR_G4_IO3_Pos)              /*!< 0x00004000 */
18713 #define TSC_IOASCR_G4_IO3        TSC_IOASCR_G4_IO3_Msk                         /*!<GROUP4_IO3 analog switch enable */
18714 #define TSC_IOASCR_G4_IO4_Pos    (15U)
18715 #define TSC_IOASCR_G4_IO4_Msk    (0x1UL << TSC_IOASCR_G4_IO4_Pos)              /*!< 0x00008000 */
18716 #define TSC_IOASCR_G4_IO4        TSC_IOASCR_G4_IO4_Msk                         /*!<GROUP4_IO4 analog switch enable */
18717 #define TSC_IOASCR_G5_IO1_Pos    (16U)
18718 #define TSC_IOASCR_G5_IO1_Msk    (0x1UL << TSC_IOASCR_G5_IO1_Pos)              /*!< 0x00010000 */
18719 #define TSC_IOASCR_G5_IO1        TSC_IOASCR_G5_IO1_Msk                         /*!<GROUP5_IO1 analog switch enable */
18720 #define TSC_IOASCR_G5_IO2_Pos    (17U)
18721 #define TSC_IOASCR_G5_IO2_Msk    (0x1UL << TSC_IOASCR_G5_IO2_Pos)              /*!< 0x00020000 */
18722 #define TSC_IOASCR_G5_IO2        TSC_IOASCR_G5_IO2_Msk                         /*!<GROUP5_IO2 analog switch enable */
18723 #define TSC_IOASCR_G5_IO3_Pos    (18U)
18724 #define TSC_IOASCR_G5_IO3_Msk    (0x1UL << TSC_IOASCR_G5_IO3_Pos)              /*!< 0x00040000 */
18725 #define TSC_IOASCR_G5_IO3        TSC_IOASCR_G5_IO3_Msk                         /*!<GROUP5_IO3 analog switch enable */
18726 #define TSC_IOASCR_G5_IO4_Pos    (19U)
18727 #define TSC_IOASCR_G5_IO4_Msk    (0x1UL << TSC_IOASCR_G5_IO4_Pos)              /*!< 0x00080000 */
18728 #define TSC_IOASCR_G5_IO4        TSC_IOASCR_G5_IO4_Msk                         /*!<GROUP5_IO4 analog switch enable */
18729 #define TSC_IOASCR_G6_IO1_Pos    (20U)
18730 #define TSC_IOASCR_G6_IO1_Msk    (0x1UL << TSC_IOASCR_G6_IO1_Pos)              /*!< 0x00100000 */
18731 #define TSC_IOASCR_G6_IO1        TSC_IOASCR_G6_IO1_Msk                         /*!<GROUP6_IO1 analog switch enable */
18732 #define TSC_IOASCR_G6_IO2_Pos    (21U)
18733 #define TSC_IOASCR_G6_IO2_Msk    (0x1UL << TSC_IOASCR_G6_IO2_Pos)              /*!< 0x00200000 */
18734 #define TSC_IOASCR_G6_IO2        TSC_IOASCR_G6_IO2_Msk                         /*!<GROUP6_IO2 analog switch enable */
18735 #define TSC_IOASCR_G6_IO3_Pos    (22U)
18736 #define TSC_IOASCR_G6_IO3_Msk    (0x1UL << TSC_IOASCR_G6_IO3_Pos)              /*!< 0x00400000 */
18737 #define TSC_IOASCR_G6_IO3        TSC_IOASCR_G6_IO3_Msk                         /*!<GROUP6_IO3 analog switch enable */
18738 #define TSC_IOASCR_G6_IO4_Pos    (23U)
18739 #define TSC_IOASCR_G6_IO4_Msk    (0x1UL << TSC_IOASCR_G6_IO4_Pos)              /*!< 0x00800000 */
18740 #define TSC_IOASCR_G6_IO4        TSC_IOASCR_G6_IO4_Msk                         /*!<GROUP6_IO4 analog switch enable */
18741 #define TSC_IOASCR_G7_IO1_Pos    (24U)
18742 #define TSC_IOASCR_G7_IO1_Msk    (0x1UL << TSC_IOASCR_G7_IO1_Pos)              /*!< 0x01000000 */
18743 #define TSC_IOASCR_G7_IO1        TSC_IOASCR_G7_IO1_Msk                         /*!<GROUP7_IO1 analog switch enable */
18744 #define TSC_IOASCR_G7_IO2_Pos    (25U)
18745 #define TSC_IOASCR_G7_IO2_Msk    (0x1UL << TSC_IOASCR_G7_IO2_Pos)              /*!< 0x02000000 */
18746 #define TSC_IOASCR_G7_IO2        TSC_IOASCR_G7_IO2_Msk                         /*!<GROUP7_IO2 analog switch enable */
18747 #define TSC_IOASCR_G7_IO3_Pos    (26U)
18748 #define TSC_IOASCR_G7_IO3_Msk    (0x1UL << TSC_IOASCR_G7_IO3_Pos)              /*!< 0x04000000 */
18749 #define TSC_IOASCR_G7_IO3        TSC_IOASCR_G7_IO3_Msk                         /*!<GROUP7_IO3 analog switch enable */
18750 #define TSC_IOASCR_G7_IO4_Pos    (27U)
18751 #define TSC_IOASCR_G7_IO4_Msk    (0x1UL << TSC_IOASCR_G7_IO4_Pos)              /*!< 0x08000000 */
18752 #define TSC_IOASCR_G7_IO4        TSC_IOASCR_G7_IO4_Msk                         /*!<GROUP7_IO4 analog switch enable */
18753 #define TSC_IOASCR_G8_IO1_Pos    (28U)
18754 #define TSC_IOASCR_G8_IO1_Msk    (0x1UL << TSC_IOASCR_G8_IO1_Pos)              /*!< 0x10000000 */
18755 #define TSC_IOASCR_G8_IO1        TSC_IOASCR_G8_IO1_Msk                         /*!<GROUP8_IO1 analog switch enable */
18756 #define TSC_IOASCR_G8_IO2_Pos    (29U)
18757 #define TSC_IOASCR_G8_IO2_Msk    (0x1UL << TSC_IOASCR_G8_IO2_Pos)              /*!< 0x20000000 */
18758 #define TSC_IOASCR_G8_IO2        TSC_IOASCR_G8_IO2_Msk                         /*!<GROUP8_IO2 analog switch enable */
18759 #define TSC_IOASCR_G8_IO3_Pos    (30U)
18760 #define TSC_IOASCR_G8_IO3_Msk    (0x1UL << TSC_IOASCR_G8_IO3_Pos)              /*!< 0x40000000 */
18761 #define TSC_IOASCR_G8_IO3        TSC_IOASCR_G8_IO3_Msk                         /*!<GROUP8_IO3 analog switch enable */
18762 #define TSC_IOASCR_G8_IO4_Pos    (31U)
18763 #define TSC_IOASCR_G8_IO4_Msk    (0x1UL << TSC_IOASCR_G8_IO4_Pos)              /*!< 0x80000000 */
18764 #define TSC_IOASCR_G8_IO4        TSC_IOASCR_G8_IO4_Msk                         /*!<GROUP8_IO4 analog switch enable */
18765 
18766 /*******************  Bit definition for TSC_IOSCR register  ******************/
18767 #define TSC_IOSCR_G1_IO1_Pos     (0U)
18768 #define TSC_IOSCR_G1_IO1_Msk     (0x1UL << TSC_IOSCR_G1_IO1_Pos)               /*!< 0x00000001 */
18769 #define TSC_IOSCR_G1_IO1         TSC_IOSCR_G1_IO1_Msk                          /*!<GROUP1_IO1 sampling mode */
18770 #define TSC_IOSCR_G1_IO2_Pos     (1U)
18771 #define TSC_IOSCR_G1_IO2_Msk     (0x1UL << TSC_IOSCR_G1_IO2_Pos)               /*!< 0x00000002 */
18772 #define TSC_IOSCR_G1_IO2         TSC_IOSCR_G1_IO2_Msk                          /*!<GROUP1_IO2 sampling mode */
18773 #define TSC_IOSCR_G1_IO3_Pos     (2U)
18774 #define TSC_IOSCR_G1_IO3_Msk     (0x1UL << TSC_IOSCR_G1_IO3_Pos)               /*!< 0x00000004 */
18775 #define TSC_IOSCR_G1_IO3         TSC_IOSCR_G1_IO3_Msk                          /*!<GROUP1_IO3 sampling mode */
18776 #define TSC_IOSCR_G1_IO4_Pos     (3U)
18777 #define TSC_IOSCR_G1_IO4_Msk     (0x1UL << TSC_IOSCR_G1_IO4_Pos)               /*!< 0x00000008 */
18778 #define TSC_IOSCR_G1_IO4         TSC_IOSCR_G1_IO4_Msk                          /*!<GROUP1_IO4 sampling mode */
18779 #define TSC_IOSCR_G2_IO1_Pos     (4U)
18780 #define TSC_IOSCR_G2_IO1_Msk     (0x1UL << TSC_IOSCR_G2_IO1_Pos)               /*!< 0x00000010 */
18781 #define TSC_IOSCR_G2_IO1         TSC_IOSCR_G2_IO1_Msk                          /*!<GROUP2_IO1 sampling mode */
18782 #define TSC_IOSCR_G2_IO2_Pos     (5U)
18783 #define TSC_IOSCR_G2_IO2_Msk     (0x1UL << TSC_IOSCR_G2_IO2_Pos)               /*!< 0x00000020 */
18784 #define TSC_IOSCR_G2_IO2         TSC_IOSCR_G2_IO2_Msk                          /*!<GROUP2_IO2 sampling mode */
18785 #define TSC_IOSCR_G2_IO3_Pos     (6U)
18786 #define TSC_IOSCR_G2_IO3_Msk     (0x1UL << TSC_IOSCR_G2_IO3_Pos)               /*!< 0x00000040 */
18787 #define TSC_IOSCR_G2_IO3         TSC_IOSCR_G2_IO3_Msk                          /*!<GROUP2_IO3 sampling mode */
18788 #define TSC_IOSCR_G2_IO4_Pos     (7U)
18789 #define TSC_IOSCR_G2_IO4_Msk     (0x1UL << TSC_IOSCR_G2_IO4_Pos)               /*!< 0x00000080 */
18790 #define TSC_IOSCR_G2_IO4         TSC_IOSCR_G2_IO4_Msk                          /*!<GROUP2_IO4 sampling mode */
18791 #define TSC_IOSCR_G3_IO1_Pos     (8U)
18792 #define TSC_IOSCR_G3_IO1_Msk     (0x1UL << TSC_IOSCR_G3_IO1_Pos)               /*!< 0x00000100 */
18793 #define TSC_IOSCR_G3_IO1         TSC_IOSCR_G3_IO1_Msk                          /*!<GROUP3_IO1 sampling mode */
18794 #define TSC_IOSCR_G3_IO2_Pos     (9U)
18795 #define TSC_IOSCR_G3_IO2_Msk     (0x1UL << TSC_IOSCR_G3_IO2_Pos)               /*!< 0x00000200 */
18796 #define TSC_IOSCR_G3_IO2         TSC_IOSCR_G3_IO2_Msk                          /*!<GROUP3_IO2 sampling mode */
18797 #define TSC_IOSCR_G3_IO3_Pos     (10U)
18798 #define TSC_IOSCR_G3_IO3_Msk     (0x1UL << TSC_IOSCR_G3_IO3_Pos)               /*!< 0x00000400 */
18799 #define TSC_IOSCR_G3_IO3         TSC_IOSCR_G3_IO3_Msk                          /*!<GROUP3_IO3 sampling mode */
18800 #define TSC_IOSCR_G3_IO4_Pos     (11U)
18801 #define TSC_IOSCR_G3_IO4_Msk     (0x1UL << TSC_IOSCR_G3_IO4_Pos)               /*!< 0x00000800 */
18802 #define TSC_IOSCR_G3_IO4         TSC_IOSCR_G3_IO4_Msk                          /*!<GROUP3_IO4 sampling mode */
18803 #define TSC_IOSCR_G4_IO1_Pos     (12U)
18804 #define TSC_IOSCR_G4_IO1_Msk     (0x1UL << TSC_IOSCR_G4_IO1_Pos)               /*!< 0x00001000 */
18805 #define TSC_IOSCR_G4_IO1         TSC_IOSCR_G4_IO1_Msk                          /*!<GROUP4_IO1 sampling mode */
18806 #define TSC_IOSCR_G4_IO2_Pos     (13U)
18807 #define TSC_IOSCR_G4_IO2_Msk     (0x1UL << TSC_IOSCR_G4_IO2_Pos)               /*!< 0x00002000 */
18808 #define TSC_IOSCR_G4_IO2         TSC_IOSCR_G4_IO2_Msk                          /*!<GROUP4_IO2 sampling mode */
18809 #define TSC_IOSCR_G4_IO3_Pos     (14U)
18810 #define TSC_IOSCR_G4_IO3_Msk     (0x1UL << TSC_IOSCR_G4_IO3_Pos)               /*!< 0x00004000 */
18811 #define TSC_IOSCR_G4_IO3         TSC_IOSCR_G4_IO3_Msk                          /*!<GROUP4_IO3 sampling mode */
18812 #define TSC_IOSCR_G4_IO4_Pos     (15U)
18813 #define TSC_IOSCR_G4_IO4_Msk     (0x1UL << TSC_IOSCR_G4_IO4_Pos)               /*!< 0x00008000 */
18814 #define TSC_IOSCR_G4_IO4         TSC_IOSCR_G4_IO4_Msk                          /*!<GROUP4_IO4 sampling mode */
18815 #define TSC_IOSCR_G5_IO1_Pos     (16U)
18816 #define TSC_IOSCR_G5_IO1_Msk     (0x1UL << TSC_IOSCR_G5_IO1_Pos)               /*!< 0x00010000 */
18817 #define TSC_IOSCR_G5_IO1         TSC_IOSCR_G5_IO1_Msk                          /*!<GROUP5_IO1 sampling mode */
18818 #define TSC_IOSCR_G5_IO2_Pos     (17U)
18819 #define TSC_IOSCR_G5_IO2_Msk     (0x1UL << TSC_IOSCR_G5_IO2_Pos)               /*!< 0x00020000 */
18820 #define TSC_IOSCR_G5_IO2         TSC_IOSCR_G5_IO2_Msk                          /*!<GROUP5_IO2 sampling mode */
18821 #define TSC_IOSCR_G5_IO3_Pos     (18U)
18822 #define TSC_IOSCR_G5_IO3_Msk     (0x1UL << TSC_IOSCR_G5_IO3_Pos)               /*!< 0x00040000 */
18823 #define TSC_IOSCR_G5_IO3         TSC_IOSCR_G5_IO3_Msk                          /*!<GROUP5_IO3 sampling mode */
18824 #define TSC_IOSCR_G5_IO4_Pos     (19U)
18825 #define TSC_IOSCR_G5_IO4_Msk     (0x1UL << TSC_IOSCR_G5_IO4_Pos)               /*!< 0x00080000 */
18826 #define TSC_IOSCR_G5_IO4         TSC_IOSCR_G5_IO4_Msk                          /*!<GROUP5_IO4 sampling mode */
18827 #define TSC_IOSCR_G6_IO1_Pos     (20U)
18828 #define TSC_IOSCR_G6_IO1_Msk     (0x1UL << TSC_IOSCR_G6_IO1_Pos)               /*!< 0x00100000 */
18829 #define TSC_IOSCR_G6_IO1         TSC_IOSCR_G6_IO1_Msk                          /*!<GROUP6_IO1 sampling mode */
18830 #define TSC_IOSCR_G6_IO2_Pos     (21U)
18831 #define TSC_IOSCR_G6_IO2_Msk     (0x1UL << TSC_IOSCR_G6_IO2_Pos)               /*!< 0x00200000 */
18832 #define TSC_IOSCR_G6_IO2         TSC_IOSCR_G6_IO2_Msk                          /*!<GROUP6_IO2 sampling mode */
18833 #define TSC_IOSCR_G6_IO3_Pos     (22U)
18834 #define TSC_IOSCR_G6_IO3_Msk     (0x1UL << TSC_IOSCR_G6_IO3_Pos)               /*!< 0x00400000 */
18835 #define TSC_IOSCR_G6_IO3         TSC_IOSCR_G6_IO3_Msk                          /*!<GROUP6_IO3 sampling mode */
18836 #define TSC_IOSCR_G6_IO4_Pos     (23U)
18837 #define TSC_IOSCR_G6_IO4_Msk     (0x1UL << TSC_IOSCR_G6_IO4_Pos)               /*!< 0x00800000 */
18838 #define TSC_IOSCR_G6_IO4         TSC_IOSCR_G6_IO4_Msk                          /*!<GROUP6_IO4 sampling mode */
18839 #define TSC_IOSCR_G7_IO1_Pos     (24U)
18840 #define TSC_IOSCR_G7_IO1_Msk     (0x1UL << TSC_IOSCR_G7_IO1_Pos)               /*!< 0x01000000 */
18841 #define TSC_IOSCR_G7_IO1         TSC_IOSCR_G7_IO1_Msk                          /*!<GROUP7_IO1 sampling mode */
18842 #define TSC_IOSCR_G7_IO2_Pos     (25U)
18843 #define TSC_IOSCR_G7_IO2_Msk     (0x1UL << TSC_IOSCR_G7_IO2_Pos)               /*!< 0x02000000 */
18844 #define TSC_IOSCR_G7_IO2         TSC_IOSCR_G7_IO2_Msk                          /*!<GROUP7_IO2 sampling mode */
18845 #define TSC_IOSCR_G7_IO3_Pos     (26U)
18846 #define TSC_IOSCR_G7_IO3_Msk     (0x1UL << TSC_IOSCR_G7_IO3_Pos)               /*!< 0x04000000 */
18847 #define TSC_IOSCR_G7_IO3         TSC_IOSCR_G7_IO3_Msk                          /*!<GROUP7_IO3 sampling mode */
18848 #define TSC_IOSCR_G7_IO4_Pos     (27U)
18849 #define TSC_IOSCR_G7_IO4_Msk     (0x1UL << TSC_IOSCR_G7_IO4_Pos)               /*!< 0x08000000 */
18850 #define TSC_IOSCR_G7_IO4         TSC_IOSCR_G7_IO4_Msk                          /*!<GROUP7_IO4 sampling mode */
18851 #define TSC_IOSCR_G8_IO1_Pos     (28U)
18852 #define TSC_IOSCR_G8_IO1_Msk     (0x1UL << TSC_IOSCR_G8_IO1_Pos)               /*!< 0x10000000 */
18853 #define TSC_IOSCR_G8_IO1         TSC_IOSCR_G8_IO1_Msk                          /*!<GROUP8_IO1 sampling mode */
18854 #define TSC_IOSCR_G8_IO2_Pos     (29U)
18855 #define TSC_IOSCR_G8_IO2_Msk     (0x1UL << TSC_IOSCR_G8_IO2_Pos)               /*!< 0x20000000 */
18856 #define TSC_IOSCR_G8_IO2         TSC_IOSCR_G8_IO2_Msk                          /*!<GROUP8_IO2 sampling mode */
18857 #define TSC_IOSCR_G8_IO3_Pos     (30U)
18858 #define TSC_IOSCR_G8_IO3_Msk     (0x1UL << TSC_IOSCR_G8_IO3_Pos)               /*!< 0x40000000 */
18859 #define TSC_IOSCR_G8_IO3         TSC_IOSCR_G8_IO3_Msk                          /*!<GROUP8_IO3 sampling mode */
18860 #define TSC_IOSCR_G8_IO4_Pos     (31U)
18861 #define TSC_IOSCR_G8_IO4_Msk     (0x1UL << TSC_IOSCR_G8_IO4_Pos)               /*!< 0x80000000 */
18862 #define TSC_IOSCR_G8_IO4         TSC_IOSCR_G8_IO4_Msk                          /*!<GROUP8_IO4 sampling mode */
18863 
18864 /*******************  Bit definition for TSC_IOCCR register  ******************/
18865 #define TSC_IOCCR_G1_IO1_Pos     (0U)
18866 #define TSC_IOCCR_G1_IO1_Msk     (0x1UL << TSC_IOCCR_G1_IO1_Pos)               /*!< 0x00000001 */
18867 #define TSC_IOCCR_G1_IO1         TSC_IOCCR_G1_IO1_Msk                          /*!<GROUP1_IO1 channel mode */
18868 #define TSC_IOCCR_G1_IO2_Pos     (1U)
18869 #define TSC_IOCCR_G1_IO2_Msk     (0x1UL << TSC_IOCCR_G1_IO2_Pos)               /*!< 0x00000002 */
18870 #define TSC_IOCCR_G1_IO2         TSC_IOCCR_G1_IO2_Msk                          /*!<GROUP1_IO2 channel mode */
18871 #define TSC_IOCCR_G1_IO3_Pos     (2U)
18872 #define TSC_IOCCR_G1_IO3_Msk     (0x1UL << TSC_IOCCR_G1_IO3_Pos)               /*!< 0x00000004 */
18873 #define TSC_IOCCR_G1_IO3         TSC_IOCCR_G1_IO3_Msk                          /*!<GROUP1_IO3 channel mode */
18874 #define TSC_IOCCR_G1_IO4_Pos     (3U)
18875 #define TSC_IOCCR_G1_IO4_Msk     (0x1UL << TSC_IOCCR_G1_IO4_Pos)               /*!< 0x00000008 */
18876 #define TSC_IOCCR_G1_IO4         TSC_IOCCR_G1_IO4_Msk                          /*!<GROUP1_IO4 channel mode */
18877 #define TSC_IOCCR_G2_IO1_Pos     (4U)
18878 #define TSC_IOCCR_G2_IO1_Msk     (0x1UL << TSC_IOCCR_G2_IO1_Pos)               /*!< 0x00000010 */
18879 #define TSC_IOCCR_G2_IO1         TSC_IOCCR_G2_IO1_Msk                          /*!<GROUP2_IO1 channel mode */
18880 #define TSC_IOCCR_G2_IO2_Pos     (5U)
18881 #define TSC_IOCCR_G2_IO2_Msk     (0x1UL << TSC_IOCCR_G2_IO2_Pos)               /*!< 0x00000020 */
18882 #define TSC_IOCCR_G2_IO2         TSC_IOCCR_G2_IO2_Msk                          /*!<GROUP2_IO2 channel mode */
18883 #define TSC_IOCCR_G2_IO3_Pos     (6U)
18884 #define TSC_IOCCR_G2_IO3_Msk     (0x1UL << TSC_IOCCR_G2_IO3_Pos)               /*!< 0x00000040 */
18885 #define TSC_IOCCR_G2_IO3         TSC_IOCCR_G2_IO3_Msk                          /*!<GROUP2_IO3 channel mode */
18886 #define TSC_IOCCR_G2_IO4_Pos     (7U)
18887 #define TSC_IOCCR_G2_IO4_Msk     (0x1UL << TSC_IOCCR_G2_IO4_Pos)               /*!< 0x00000080 */
18888 #define TSC_IOCCR_G2_IO4         TSC_IOCCR_G2_IO4_Msk                          /*!<GROUP2_IO4 channel mode */
18889 #define TSC_IOCCR_G3_IO1_Pos     (8U)
18890 #define TSC_IOCCR_G3_IO1_Msk     (0x1UL << TSC_IOCCR_G3_IO1_Pos)               /*!< 0x00000100 */
18891 #define TSC_IOCCR_G3_IO1         TSC_IOCCR_G3_IO1_Msk                          /*!<GROUP3_IO1 channel mode */
18892 #define TSC_IOCCR_G3_IO2_Pos     (9U)
18893 #define TSC_IOCCR_G3_IO2_Msk     (0x1UL << TSC_IOCCR_G3_IO2_Pos)               /*!< 0x00000200 */
18894 #define TSC_IOCCR_G3_IO2         TSC_IOCCR_G3_IO2_Msk                          /*!<GROUP3_IO2 channel mode */
18895 #define TSC_IOCCR_G3_IO3_Pos     (10U)
18896 #define TSC_IOCCR_G3_IO3_Msk     (0x1UL << TSC_IOCCR_G3_IO3_Pos)               /*!< 0x00000400 */
18897 #define TSC_IOCCR_G3_IO3         TSC_IOCCR_G3_IO3_Msk                          /*!<GROUP3_IO3 channel mode */
18898 #define TSC_IOCCR_G3_IO4_Pos     (11U)
18899 #define TSC_IOCCR_G3_IO4_Msk     (0x1UL << TSC_IOCCR_G3_IO4_Pos)               /*!< 0x00000800 */
18900 #define TSC_IOCCR_G3_IO4         TSC_IOCCR_G3_IO4_Msk                          /*!<GROUP3_IO4 channel mode */
18901 #define TSC_IOCCR_G4_IO1_Pos     (12U)
18902 #define TSC_IOCCR_G4_IO1_Msk     (0x1UL << TSC_IOCCR_G4_IO1_Pos)               /*!< 0x00001000 */
18903 #define TSC_IOCCR_G4_IO1         TSC_IOCCR_G4_IO1_Msk                          /*!<GROUP4_IO1 channel mode */
18904 #define TSC_IOCCR_G4_IO2_Pos     (13U)
18905 #define TSC_IOCCR_G4_IO2_Msk     (0x1UL << TSC_IOCCR_G4_IO2_Pos)               /*!< 0x00002000 */
18906 #define TSC_IOCCR_G4_IO2         TSC_IOCCR_G4_IO2_Msk                          /*!<GROUP4_IO2 channel mode */
18907 #define TSC_IOCCR_G4_IO3_Pos     (14U)
18908 #define TSC_IOCCR_G4_IO3_Msk     (0x1UL << TSC_IOCCR_G4_IO3_Pos)               /*!< 0x00004000 */
18909 #define TSC_IOCCR_G4_IO3         TSC_IOCCR_G4_IO3_Msk                          /*!<GROUP4_IO3 channel mode */
18910 #define TSC_IOCCR_G4_IO4_Pos     (15U)
18911 #define TSC_IOCCR_G4_IO4_Msk     (0x1UL << TSC_IOCCR_G4_IO4_Pos)               /*!< 0x00008000 */
18912 #define TSC_IOCCR_G4_IO4         TSC_IOCCR_G4_IO4_Msk                          /*!<GROUP4_IO4 channel mode */
18913 #define TSC_IOCCR_G5_IO1_Pos     (16U)
18914 #define TSC_IOCCR_G5_IO1_Msk     (0x1UL << TSC_IOCCR_G5_IO1_Pos)               /*!< 0x00010000 */
18915 #define TSC_IOCCR_G5_IO1         TSC_IOCCR_G5_IO1_Msk                          /*!<GROUP5_IO1 channel mode */
18916 #define TSC_IOCCR_G5_IO2_Pos     (17U)
18917 #define TSC_IOCCR_G5_IO2_Msk     (0x1UL << TSC_IOCCR_G5_IO2_Pos)               /*!< 0x00020000 */
18918 #define TSC_IOCCR_G5_IO2         TSC_IOCCR_G5_IO2_Msk                          /*!<GROUP5_IO2 channel mode */
18919 #define TSC_IOCCR_G5_IO3_Pos     (18U)
18920 #define TSC_IOCCR_G5_IO3_Msk     (0x1UL << TSC_IOCCR_G5_IO3_Pos)               /*!< 0x00040000 */
18921 #define TSC_IOCCR_G5_IO3         TSC_IOCCR_G5_IO3_Msk                          /*!<GROUP5_IO3 channel mode */
18922 #define TSC_IOCCR_G5_IO4_Pos     (19U)
18923 #define TSC_IOCCR_G5_IO4_Msk     (0x1UL << TSC_IOCCR_G5_IO4_Pos)               /*!< 0x00080000 */
18924 #define TSC_IOCCR_G5_IO4         TSC_IOCCR_G5_IO4_Msk                          /*!<GROUP5_IO4 channel mode */
18925 #define TSC_IOCCR_G6_IO1_Pos     (20U)
18926 #define TSC_IOCCR_G6_IO1_Msk     (0x1UL << TSC_IOCCR_G6_IO1_Pos)               /*!< 0x00100000 */
18927 #define TSC_IOCCR_G6_IO1         TSC_IOCCR_G6_IO1_Msk                          /*!<GROUP6_IO1 channel mode */
18928 #define TSC_IOCCR_G6_IO2_Pos     (21U)
18929 #define TSC_IOCCR_G6_IO2_Msk     (0x1UL << TSC_IOCCR_G6_IO2_Pos)               /*!< 0x00200000 */
18930 #define TSC_IOCCR_G6_IO2         TSC_IOCCR_G6_IO2_Msk                          /*!<GROUP6_IO2 channel mode */
18931 #define TSC_IOCCR_G6_IO3_Pos     (22U)
18932 #define TSC_IOCCR_G6_IO3_Msk     (0x1UL << TSC_IOCCR_G6_IO3_Pos)               /*!< 0x00400000 */
18933 #define TSC_IOCCR_G6_IO3         TSC_IOCCR_G6_IO3_Msk                          /*!<GROUP6_IO3 channel mode */
18934 #define TSC_IOCCR_G6_IO4_Pos     (23U)
18935 #define TSC_IOCCR_G6_IO4_Msk     (0x1UL << TSC_IOCCR_G6_IO4_Pos)               /*!< 0x00800000 */
18936 #define TSC_IOCCR_G6_IO4         TSC_IOCCR_G6_IO4_Msk                          /*!<GROUP6_IO4 channel mode */
18937 #define TSC_IOCCR_G7_IO1_Pos     (24U)
18938 #define TSC_IOCCR_G7_IO1_Msk     (0x1UL << TSC_IOCCR_G7_IO1_Pos)               /*!< 0x01000000 */
18939 #define TSC_IOCCR_G7_IO1         TSC_IOCCR_G7_IO1_Msk                          /*!<GROUP7_IO1 channel mode */
18940 #define TSC_IOCCR_G7_IO2_Pos     (25U)
18941 #define TSC_IOCCR_G7_IO2_Msk     (0x1UL << TSC_IOCCR_G7_IO2_Pos)               /*!< 0x02000000 */
18942 #define TSC_IOCCR_G7_IO2         TSC_IOCCR_G7_IO2_Msk                          /*!<GROUP7_IO2 channel mode */
18943 #define TSC_IOCCR_G7_IO3_Pos     (26U)
18944 #define TSC_IOCCR_G7_IO3_Msk     (0x1UL << TSC_IOCCR_G7_IO3_Pos)               /*!< 0x04000000 */
18945 #define TSC_IOCCR_G7_IO3         TSC_IOCCR_G7_IO3_Msk                          /*!<GROUP7_IO3 channel mode */
18946 #define TSC_IOCCR_G7_IO4_Pos     (27U)
18947 #define TSC_IOCCR_G7_IO4_Msk     (0x1UL << TSC_IOCCR_G7_IO4_Pos)               /*!< 0x08000000 */
18948 #define TSC_IOCCR_G7_IO4         TSC_IOCCR_G7_IO4_Msk                          /*!<GROUP7_IO4 channel mode */
18949 #define TSC_IOCCR_G8_IO1_Pos     (28U)
18950 #define TSC_IOCCR_G8_IO1_Msk     (0x1UL << TSC_IOCCR_G8_IO1_Pos)               /*!< 0x10000000 */
18951 #define TSC_IOCCR_G8_IO1         TSC_IOCCR_G8_IO1_Msk                          /*!<GROUP8_IO1 channel mode */
18952 #define TSC_IOCCR_G8_IO2_Pos     (29U)
18953 #define TSC_IOCCR_G8_IO2_Msk     (0x1UL << TSC_IOCCR_G8_IO2_Pos)               /*!< 0x20000000 */
18954 #define TSC_IOCCR_G8_IO2         TSC_IOCCR_G8_IO2_Msk                          /*!<GROUP8_IO2 channel mode */
18955 #define TSC_IOCCR_G8_IO3_Pos     (30U)
18956 #define TSC_IOCCR_G8_IO3_Msk     (0x1UL << TSC_IOCCR_G8_IO3_Pos)               /*!< 0x40000000 */
18957 #define TSC_IOCCR_G8_IO3         TSC_IOCCR_G8_IO3_Msk                          /*!<GROUP8_IO3 channel mode */
18958 #define TSC_IOCCR_G8_IO4_Pos     (31U)
18959 #define TSC_IOCCR_G8_IO4_Msk     (0x1UL << TSC_IOCCR_G8_IO4_Pos)               /*!< 0x80000000 */
18960 #define TSC_IOCCR_G8_IO4         TSC_IOCCR_G8_IO4_Msk                          /*!<GROUP8_IO4 channel mode */
18961 
18962 /*******************  Bit definition for TSC_IOGCSR register  *****************/
18963 #define TSC_IOGCSR_G1E_Pos       (0U)
18964 #define TSC_IOGCSR_G1E_Msk       (0x1UL << TSC_IOGCSR_G1E_Pos)                 /*!< 0x00000001 */
18965 #define TSC_IOGCSR_G1E           TSC_IOGCSR_G1E_Msk                            /*!<Analog IO GROUP1 enable */
18966 #define TSC_IOGCSR_G2E_Pos       (1U)
18967 #define TSC_IOGCSR_G2E_Msk       (0x1UL << TSC_IOGCSR_G2E_Pos)                 /*!< 0x00000002 */
18968 #define TSC_IOGCSR_G2E           TSC_IOGCSR_G2E_Msk                            /*!<Analog IO GROUP2 enable */
18969 #define TSC_IOGCSR_G3E_Pos       (2U)
18970 #define TSC_IOGCSR_G3E_Msk       (0x1UL << TSC_IOGCSR_G3E_Pos)                 /*!< 0x00000004 */
18971 #define TSC_IOGCSR_G3E           TSC_IOGCSR_G3E_Msk                            /*!<Analog IO GROUP3 enable */
18972 #define TSC_IOGCSR_G4E_Pos       (3U)
18973 #define TSC_IOGCSR_G4E_Msk       (0x1UL << TSC_IOGCSR_G4E_Pos)                 /*!< 0x00000008 */
18974 #define TSC_IOGCSR_G4E           TSC_IOGCSR_G4E_Msk                            /*!<Analog IO GROUP4 enable */
18975 #define TSC_IOGCSR_G5E_Pos       (4U)
18976 #define TSC_IOGCSR_G5E_Msk       (0x1UL << TSC_IOGCSR_G5E_Pos)                 /*!< 0x00000010 */
18977 #define TSC_IOGCSR_G5E           TSC_IOGCSR_G5E_Msk                            /*!<Analog IO GROUP5 enable */
18978 #define TSC_IOGCSR_G6E_Pos       (5U)
18979 #define TSC_IOGCSR_G6E_Msk       (0x1UL << TSC_IOGCSR_G6E_Pos)                 /*!< 0x00000020 */
18980 #define TSC_IOGCSR_G6E           TSC_IOGCSR_G6E_Msk                            /*!<Analog IO GROUP6 enable */
18981 #define TSC_IOGCSR_G7E_Pos       (6U)
18982 #define TSC_IOGCSR_G7E_Msk       (0x1UL << TSC_IOGCSR_G7E_Pos)                 /*!< 0x00000040 */
18983 #define TSC_IOGCSR_G7E           TSC_IOGCSR_G7E_Msk                            /*!<Analog IO GROUP7 enable */
18984 #define TSC_IOGCSR_G8E_Pos       (7U)
18985 #define TSC_IOGCSR_G8E_Msk       (0x1UL << TSC_IOGCSR_G8E_Pos)                 /*!< 0x00000080 */
18986 #define TSC_IOGCSR_G8E           TSC_IOGCSR_G8E_Msk                            /*!<Analog IO GROUP8 enable */
18987 #define TSC_IOGCSR_G1S_Pos       (16U)
18988 #define TSC_IOGCSR_G1S_Msk       (0x1UL << TSC_IOGCSR_G1S_Pos)                 /*!< 0x00010000 */
18989 #define TSC_IOGCSR_G1S           TSC_IOGCSR_G1S_Msk                            /*!<Analog IO GROUP1 status */
18990 #define TSC_IOGCSR_G2S_Pos       (17U)
18991 #define TSC_IOGCSR_G2S_Msk       (0x1UL << TSC_IOGCSR_G2S_Pos)                 /*!< 0x00020000 */
18992 #define TSC_IOGCSR_G2S           TSC_IOGCSR_G2S_Msk                            /*!<Analog IO GROUP2 status */
18993 #define TSC_IOGCSR_G3S_Pos       (18U)
18994 #define TSC_IOGCSR_G3S_Msk       (0x1UL << TSC_IOGCSR_G3S_Pos)                 /*!< 0x00040000 */
18995 #define TSC_IOGCSR_G3S           TSC_IOGCSR_G3S_Msk                            /*!<Analog IO GROUP3 status */
18996 #define TSC_IOGCSR_G4S_Pos       (19U)
18997 #define TSC_IOGCSR_G4S_Msk       (0x1UL << TSC_IOGCSR_G4S_Pos)                 /*!< 0x00080000 */
18998 #define TSC_IOGCSR_G4S           TSC_IOGCSR_G4S_Msk                            /*!<Analog IO GROUP4 status */
18999 #define TSC_IOGCSR_G5S_Pos       (20U)
19000 #define TSC_IOGCSR_G5S_Msk       (0x1UL << TSC_IOGCSR_G5S_Pos)                 /*!< 0x00100000 */
19001 #define TSC_IOGCSR_G5S           TSC_IOGCSR_G5S_Msk                            /*!<Analog IO GROUP5 status */
19002 #define TSC_IOGCSR_G6S_Pos       (21U)
19003 #define TSC_IOGCSR_G6S_Msk       (0x1UL << TSC_IOGCSR_G6S_Pos)                 /*!< 0x00200000 */
19004 #define TSC_IOGCSR_G6S           TSC_IOGCSR_G6S_Msk                            /*!<Analog IO GROUP6 status */
19005 #define TSC_IOGCSR_G7S_Pos       (22U)
19006 #define TSC_IOGCSR_G7S_Msk       (0x1UL << TSC_IOGCSR_G7S_Pos)                 /*!< 0x00400000 */
19007 #define TSC_IOGCSR_G7S           TSC_IOGCSR_G7S_Msk                            /*!<Analog IO GROUP7 status */
19008 #define TSC_IOGCSR_G8S_Pos       (23U)
19009 #define TSC_IOGCSR_G8S_Msk       (0x1UL << TSC_IOGCSR_G8S_Pos)                 /*!< 0x00800000 */
19010 #define TSC_IOGCSR_G8S           TSC_IOGCSR_G8S_Msk                            /*!<Analog IO GROUP8 status */
19011 
19012 /*******************  Bit definition for TSC_IOGXCR register  *****************/
19013 #define TSC_IOGXCR_CNT_Pos       (0U)
19014 #define TSC_IOGXCR_CNT_Msk       (0x3FFFUL << TSC_IOGXCR_CNT_Pos)              /*!< 0x00003FFF */
19015 #define TSC_IOGXCR_CNT           TSC_IOGXCR_CNT_Msk                            /*!<CNT[13:0] bits (Counter value) */
19016 
19017 /******************************************************************************/
19018 /*                                                                            */
19019 /*                          Serial Audio Interface                            */
19020 /*                                                                            */
19021 /******************************************************************************/
19022 /********************  Bit definition for SAI_GCR register  *******************/
19023 #define SAI_GCR_SYNCIN_Pos                  (0U)
19024 #define SAI_GCR_SYNCIN_Msk                  (0x3UL << SAI_GCR_SYNCIN_Pos)           /*!< 0x00000003 */
19025 #define SAI_GCR_SYNCIN                      SAI_GCR_SYNCIN_Msk                      /*!<SYNCIN[1:0] bits (Synchronization Inputs)   */
19026 #define SAI_GCR_SYNCIN_0                    (0x1UL << SAI_GCR_SYNCIN_Pos)           /*!< 0x00000001 */
19027 #define SAI_GCR_SYNCIN_1                    (0x2UL << SAI_GCR_SYNCIN_Pos)           /*!< 0x00000002 */
19028 #define SAI_GCR_SYNCOUT_Pos                 (4U)
19029 #define SAI_GCR_SYNCOUT_Msk                 (0x3UL << SAI_GCR_SYNCOUT_Pos)          /*!< 0x00000030 */
19030 #define SAI_GCR_SYNCOUT                     SAI_GCR_SYNCOUT_Msk                     /*!<SYNCOUT[1:0] bits (Synchronization Outputs) */
19031 #define SAI_GCR_SYNCOUT_0                   (0x1UL << SAI_GCR_SYNCOUT_Pos)          /*!< 0x00000010 */
19032 #define SAI_GCR_SYNCOUT_1                   (0x2UL << SAI_GCR_SYNCOUT_Pos)          /*!< 0x00000020 */
19033 
19034 /*******************  Bit definition for SAI_xCR1 register  *******************/
19035 #define SAI_xCR1_MODE_Pos                   (0U)
19036 #define SAI_xCR1_MODE_Msk                   (0x3UL << SAI_xCR1_MODE_Pos)            /*!< 0x00000003 */
19037 #define SAI_xCR1_MODE                       SAI_xCR1_MODE_Msk                       /*!<MODE[1:0] bits (Audio Block Mode)           */
19038 #define SAI_xCR1_MODE_0                     (0x1UL << SAI_xCR1_MODE_Pos)            /*!< 0x00000001 */
19039 #define SAI_xCR1_MODE_1                     (0x2UL << SAI_xCR1_MODE_Pos)            /*!< 0x00000002 */
19040 #define SAI_xCR1_PRTCFG_Pos                 (2U)
19041 #define SAI_xCR1_PRTCFG_Msk                 (0x3UL << SAI_xCR1_PRTCFG_Pos)          /*!< 0x0000000C */
19042 #define SAI_xCR1_PRTCFG                     SAI_xCR1_PRTCFG_Msk                     /*!<PRTCFG[1:0] bits (Protocol Configuration)   */
19043 #define SAI_xCR1_PRTCFG_0                   (0x1UL << SAI_xCR1_PRTCFG_Pos)          /*!< 0x00000004 */
19044 #define SAI_xCR1_PRTCFG_1                   (0x2UL << SAI_xCR1_PRTCFG_Pos)          /*!< 0x00000008 */
19045 #define SAI_xCR1_DS_Pos                     (5U)
19046 #define SAI_xCR1_DS_Msk                     (0x7UL << SAI_xCR1_DS_Pos)              /*!< 0x000000E0 */
19047 #define SAI_xCR1_DS                         SAI_xCR1_DS_Msk                         /*!<DS[1:0] bits (Data Size) */
19048 #define SAI_xCR1_DS_0                       (0x1UL << SAI_xCR1_DS_Pos)              /*!< 0x00000020 */
19049 #define SAI_xCR1_DS_1                       (0x2UL << SAI_xCR1_DS_Pos)              /*!< 0x00000040 */
19050 #define SAI_xCR1_DS_2                       (0x4UL << SAI_xCR1_DS_Pos)              /*!< 0x00000080 */
19051 #define SAI_xCR1_LSBFIRST_Pos               (8U)
19052 #define SAI_xCR1_LSBFIRST_Msk               (0x1UL << SAI_xCR1_LSBFIRST_Pos)        /*!< 0x00000100 */
19053 #define SAI_xCR1_LSBFIRST                   SAI_xCR1_LSBFIRST_Msk                   /*!<LSB First Configuration  */
19054 #define SAI_xCR1_CKSTR_Pos                  (9U)
19055 #define SAI_xCR1_CKSTR_Msk                  (0x1UL << SAI_xCR1_CKSTR_Pos)           /*!< 0x00000200 */
19056 #define SAI_xCR1_CKSTR                      SAI_xCR1_CKSTR_Msk                      /*!<ClocK STRobing edge      */
19057 #define SAI_xCR1_SYNCEN_Pos                 (10U)
19058 #define SAI_xCR1_SYNCEN_Msk                 (0x3UL << SAI_xCR1_SYNCEN_Pos)          /*!< 0x00000C00 */
19059 #define SAI_xCR1_SYNCEN                     SAI_xCR1_SYNCEN_Msk                     /*!<SYNCEN[1:0](SYNChronization ENable) */
19060 #define SAI_xCR1_SYNCEN_0                   (0x1UL << SAI_xCR1_SYNCEN_Pos)          /*!< 0x00000400 */
19061 #define SAI_xCR1_SYNCEN_1                   (0x2UL << SAI_xCR1_SYNCEN_Pos)          /*!< 0x00000800 */
19062 #define SAI_xCR1_MONO_Pos                   (12U)
19063 #define SAI_xCR1_MONO_Msk                   (0x1UL << SAI_xCR1_MONO_Pos)            /*!< 0x00001000 */
19064 #define SAI_xCR1_MONO                       SAI_xCR1_MONO_Msk                       /*!<Mono mode                  */
19065 #define SAI_xCR1_OUTDRIV_Pos                (13U)
19066 #define SAI_xCR1_OUTDRIV_Msk                (0x1UL << SAI_xCR1_OUTDRIV_Pos)         /*!< 0x00002000 */
19067 #define SAI_xCR1_OUTDRIV                    SAI_xCR1_OUTDRIV_Msk                    /*!<Output Drive               */
19068 #define SAI_xCR1_SAIEN_Pos                  (16U)
19069 #define SAI_xCR1_SAIEN_Msk                  (0x1UL << SAI_xCR1_SAIEN_Pos)           /*!< 0x00010000 */
19070 #define SAI_xCR1_SAIEN                      SAI_xCR1_SAIEN_Msk                      /*!<Audio Block enable         */
19071 #define SAI_xCR1_DMAEN_Pos                  (17U)
19072 #define SAI_xCR1_DMAEN_Msk                  (0x1UL << SAI_xCR1_DMAEN_Pos)           /*!< 0x00020000 */
19073 #define SAI_xCR1_DMAEN                      SAI_xCR1_DMAEN_Msk                      /*!<DMA enable                 */
19074 #define SAI_xCR1_NODIV_Pos                  (19U)
19075 #define SAI_xCR1_NODIV_Msk                  (0x1UL << SAI_xCR1_NODIV_Pos)           /*!< 0x00080000 */
19076 #define SAI_xCR1_NODIV                      SAI_xCR1_NODIV_Msk                      /*!<No Divider Configuration   */
19077 #define SAI_xCR1_MCKDIV_Pos                 (20U)
19078 #define SAI_xCR1_MCKDIV_Msk                 (0x3FUL << SAI_xCR1_MCKDIV_Pos)         /*!< 0x03F00000 */
19079 #define SAI_xCR1_MCKDIV                     SAI_xCR1_MCKDIV_Msk                     /*!<MCKDIV[5:0] (Master ClocK Divider)  */
19080 #define SAI_xCR1_MCKDIV_0                   (0x00100000UL)                          /*!<Bit 0  */
19081 #define SAI_xCR1_MCKDIV_1                   (0x00200000UL)                          /*!<Bit 1  */
19082 #define SAI_xCR1_MCKDIV_2                   (0x00400000UL)                          /*!<Bit 2  */
19083 #define SAI_xCR1_MCKDIV_3                   (0x00800000UL)                          /*!<Bit 3  */
19084 #define SAI_xCR1_MCKDIV_4                   (0x01000000UL)                          /*!<Bit 4  */
19085 #define SAI_xCR1_MCKDIV_5                   (0x02000000UL)                          /*!<Bit 5  */
19086 #define SAI_xCR1_OSR_Pos                    (26U)
19087 #define SAI_xCR1_OSR_Msk                    (0x1UL << SAI_xCR1_OSR_Pos)             /*!< 0x04000000 */
19088 #define SAI_xCR1_OSR                        SAI_xCR1_OSR_Msk                        /*!<Oversampling ratio for master clock */
19089 #define SAI_xCR1_MCKEN_Pos                  (27U)
19090 #define SAI_xCR1_MCKEN_Msk                  (0x1UL << SAI_xCR1_MCKEN_Pos)           /*!< 0x08000000 */
19091 #define SAI_xCR1_MCKEN                      SAI_xCR1_MCKEN_Msk                      /*!<Master clock generation enable */
19092 
19093 /*******************  Bit definition for SAI_xCR2 register  *******************/
19094 #define SAI_xCR2_FTH_Pos                    (0U)
19095 #define SAI_xCR2_FTH_Msk                    (0x7UL << SAI_xCR2_FTH_Pos)             /*!< 0x00000007 */
19096 #define SAI_xCR2_FTH                        SAI_xCR2_FTH_Msk                        /*!<FTH[2:0](Fifo THreshold)  */
19097 #define SAI_xCR2_FTH_0                      (0x1UL << SAI_xCR2_FTH_Pos)             /*!< 0x00000001 */
19098 #define SAI_xCR2_FTH_1                      (0x2UL << SAI_xCR2_FTH_Pos)             /*!< 0x00000002 */
19099 #define SAI_xCR2_FTH_2                      (0x4UL << SAI_xCR2_FTH_Pos)             /*!< 0x00000004 */
19100 #define SAI_xCR2_FFLUSH_Pos                 (3U)
19101 #define SAI_xCR2_FFLUSH_Msk                 (0x1UL << SAI_xCR2_FFLUSH_Pos)          /*!< 0x00000008 */
19102 #define SAI_xCR2_FFLUSH                     SAI_xCR2_FFLUSH_Msk                     /*!<Fifo FLUSH                       */
19103 #define SAI_xCR2_TRIS_Pos                   (4U)
19104 #define SAI_xCR2_TRIS_Msk                   (0x1UL << SAI_xCR2_TRIS_Pos)            /*!< 0x00000010 */
19105 #define SAI_xCR2_TRIS                       SAI_xCR2_TRIS_Msk                       /*!<TRIState Management on data line */
19106 #define SAI_xCR2_MUTE_Pos                   (5U)
19107 #define SAI_xCR2_MUTE_Msk                   (0x1UL << SAI_xCR2_MUTE_Pos)            /*!< 0x00000020 */
19108 #define SAI_xCR2_MUTE                       SAI_xCR2_MUTE_Msk                       /*!<Mute mode                        */
19109 #define SAI_xCR2_MUTEVAL_Pos                (6U)
19110 #define SAI_xCR2_MUTEVAL_Msk                (0x1UL << SAI_xCR2_MUTEVAL_Pos)         /*!< 0x00000040 */
19111 #define SAI_xCR2_MUTEVAL                    SAI_xCR2_MUTEVAL_Msk                    /*!<Muate value                      */
19112 #define SAI_xCR2_MUTECNT_Pos                (7U)
19113 #define SAI_xCR2_MUTECNT_Msk                (0x3FUL << SAI_xCR2_MUTECNT_Pos)        /*!< 0x00001F80 */
19114 #define SAI_xCR2_MUTECNT                    SAI_xCR2_MUTECNT_Msk                    /*!<MUTECNT[5:0] (MUTE counter) */
19115 #define SAI_xCR2_MUTECNT_0                  (0x01UL << SAI_xCR2_MUTECNT_Pos)        /*!< 0x00000080 */
19116 #define SAI_xCR2_MUTECNT_1                  (0x02UL << SAI_xCR2_MUTECNT_Pos)        /*!< 0x00000100 */
19117 #define SAI_xCR2_MUTECNT_2                  (0x04UL << SAI_xCR2_MUTECNT_Pos)        /*!< 0x00000200 */
19118 #define SAI_xCR2_MUTECNT_3                  (0x08UL << SAI_xCR2_MUTECNT_Pos)        /*!< 0x00000400 */
19119 #define SAI_xCR2_MUTECNT_4                  (0x10UL << SAI_xCR2_MUTECNT_Pos)        /*!< 0x00000800 */
19120 #define SAI_xCR2_MUTECNT_5                  (0x20UL << SAI_xCR2_MUTECNT_Pos)        /*!< 0x00001000 */
19121 #define SAI_xCR2_CPL_Pos                    (13U)
19122 #define SAI_xCR2_CPL_Msk                    (0x1UL << SAI_xCR2_CPL_Pos)             /*!< 0x00002000 */
19123 #define SAI_xCR2_CPL                        SAI_xCR2_CPL_Msk                        /*!<CPL mode                    */
19124 #define SAI_xCR2_COMP_Pos                   (14U)
19125 #define SAI_xCR2_COMP_Msk                   (0x3UL << SAI_xCR2_COMP_Pos)            /*!< 0x0000C000 */
19126 #define SAI_xCR2_COMP                       SAI_xCR2_COMP_Msk                       /*!<COMP[1:0] (Companding mode) */
19127 #define SAI_xCR2_COMP_0                     (0x1UL << SAI_xCR2_COMP_Pos)            /*!< 0x00004000 */
19128 #define SAI_xCR2_COMP_1                     (0x2UL << SAI_xCR2_COMP_Pos)            /*!< 0x00008000 */
19129 
19130 /******************  Bit definition for SAI_xFRCR register  *******************/
19131 #define SAI_xFRCR_FRL_Pos                   (0U)
19132 #define SAI_xFRCR_FRL_Msk                   (0xFFUL << SAI_xFRCR_FRL_Pos)           /*!< 0x000000FF */
19133 #define SAI_xFRCR_FRL                       SAI_xFRCR_FRL_Msk                       /*!<FRL[7:0](Frame length)  */
19134 #define SAI_xFRCR_FRL_0                     (0x01UL << SAI_xFRCR_FRL_Pos)           /*!< 0x00000001 */
19135 #define SAI_xFRCR_FRL_1                     (0x02UL << SAI_xFRCR_FRL_Pos)           /*!< 0x00000002 */
19136 #define SAI_xFRCR_FRL_2                     (0x04UL << SAI_xFRCR_FRL_Pos)           /*!< 0x00000004 */
19137 #define SAI_xFRCR_FRL_3                     (0x08UL << SAI_xFRCR_FRL_Pos)           /*!< 0x00000008 */
19138 #define SAI_xFRCR_FRL_4                     (0x10UL << SAI_xFRCR_FRL_Pos)           /*!< 0x00000010 */
19139 #define SAI_xFRCR_FRL_5                     (0x20UL << SAI_xFRCR_FRL_Pos)           /*!< 0x00000020 */
19140 #define SAI_xFRCR_FRL_6                     (0x40UL << SAI_xFRCR_FRL_Pos)           /*!< 0x00000040 */
19141 #define SAI_xFRCR_FRL_7                     (0x80UL << SAI_xFRCR_FRL_Pos)           /*!< 0x00000080 */
19142 #define SAI_xFRCR_FSALL_Pos                 (8U)
19143 #define SAI_xFRCR_FSALL_Msk                 (0x7FUL << SAI_xFRCR_FSALL_Pos)         /*!< 0x00007F00 */
19144 #define SAI_xFRCR_FSALL                     SAI_xFRCR_FSALL_Msk                     /*!<FRL[6:0] (Frame synchronization active level length)  */
19145 #define SAI_xFRCR_FSALL_0                   (0x01UL << SAI_xFRCR_FSALL_Pos)         /*!< 0x00000100 */
19146 #define SAI_xFRCR_FSALL_1                   (0x02UL << SAI_xFRCR_FSALL_Pos)         /*!< 0x00000200 */
19147 #define SAI_xFRCR_FSALL_2                   (0x04UL << SAI_xFRCR_FSALL_Pos)         /*!< 0x00000400 */
19148 #define SAI_xFRCR_FSALL_3                   (0x08UL << SAI_xFRCR_FSALL_Pos)         /*!< 0x00000800 */
19149 #define SAI_xFRCR_FSALL_4                   (0x10UL << SAI_xFRCR_FSALL_Pos)         /*!< 0x00001000 */
19150 #define SAI_xFRCR_FSALL_5                   (0x20UL << SAI_xFRCR_FSALL_Pos)         /*!< 0x00002000 */
19151 #define SAI_xFRCR_FSALL_6                   (0x40UL << SAI_xFRCR_FSALL_Pos)         /*!< 0x00004000 */
19152 #define SAI_xFRCR_FSDEF_Pos                 (16U)
19153 #define SAI_xFRCR_FSDEF_Msk                 (0x1UL << SAI_xFRCR_FSDEF_Pos)          /*!< 0x00010000 */
19154 #define SAI_xFRCR_FSDEF                     SAI_xFRCR_FSDEF_Msk                     /*!< Frame Synchronization Definition */
19155 #define SAI_xFRCR_FSPOL_Pos                 (17U)
19156 #define SAI_xFRCR_FSPOL_Msk                 (0x1UL << SAI_xFRCR_FSPOL_Pos)          /*!< 0x00020000 */
19157 #define SAI_xFRCR_FSPOL                     SAI_xFRCR_FSPOL_Msk                     /*!<Frame Synchronization POLarity    */
19158 #define SAI_xFRCR_FSOFF_Pos                 (18U)
19159 #define SAI_xFRCR_FSOFF_Msk                 (0x1UL << SAI_xFRCR_FSOFF_Pos)          /*!< 0x00040000 */
19160 #define SAI_xFRCR_FSOFF                     SAI_xFRCR_FSOFF_Msk                     /*!<Frame Synchronization OFFset      */
19161 
19162 /******************  Bit definition for SAI_xSLOTR register  *******************/
19163 #define SAI_xSLOTR_FBOFF_Pos                (0U)
19164 #define SAI_xSLOTR_FBOFF_Msk                (0x1FUL << SAI_xSLOTR_FBOFF_Pos)        /*!< 0x0000001F */
19165 #define SAI_xSLOTR_FBOFF                    SAI_xSLOTR_FBOFF_Msk                    /*!<FRL[4:0](First Bit Offset)  */
19166 #define SAI_xSLOTR_FBOFF_0                  (0x01UL << SAI_xSLOTR_FBOFF_Pos)        /*!< 0x00000001 */
19167 #define SAI_xSLOTR_FBOFF_1                  (0x02UL << SAI_xSLOTR_FBOFF_Pos)        /*!< 0x00000002 */
19168 #define SAI_xSLOTR_FBOFF_2                  (0x04UL << SAI_xSLOTR_FBOFF_Pos)        /*!< 0x00000004 */
19169 #define SAI_xSLOTR_FBOFF_3                  (0x08UL << SAI_xSLOTR_FBOFF_Pos)        /*!< 0x00000008 */
19170 #define SAI_xSLOTR_FBOFF_4                  (0x10UL << SAI_xSLOTR_FBOFF_Pos)        /*!< 0x00000010 */
19171 #define SAI_xSLOTR_SLOTSZ_Pos               (6U)
19172 #define SAI_xSLOTR_SLOTSZ_Msk               (0x3UL << SAI_xSLOTR_SLOTSZ_Pos)        /*!< 0x000000C0 */
19173 #define SAI_xSLOTR_SLOTSZ                   SAI_xSLOTR_SLOTSZ_Msk                   /*!<SLOTSZ[1:0] (Slot size)  */
19174 #define SAI_xSLOTR_SLOTSZ_0                 (0x1UL << SAI_xSLOTR_SLOTSZ_Pos)        /*!< 0x00000040 */
19175 #define SAI_xSLOTR_SLOTSZ_1                 (0x2UL << SAI_xSLOTR_SLOTSZ_Pos)        /*!< 0x00000080 */
19176 #define SAI_xSLOTR_NBSLOT_Pos               (8U)
19177 #define SAI_xSLOTR_NBSLOT_Msk               (0xFUL << SAI_xSLOTR_NBSLOT_Pos)        /*!< 0x00000F00 */
19178 #define SAI_xSLOTR_NBSLOT                   SAI_xSLOTR_NBSLOT_Msk                   /*!<NBSLOT[3:0] (Number of Slot in audio Frame)  */
19179 #define SAI_xSLOTR_NBSLOT_0                 (0x1UL << SAI_xSLOTR_NBSLOT_Pos)        /*!< 0x00000100 */
19180 #define SAI_xSLOTR_NBSLOT_1                 (0x2UL << SAI_xSLOTR_NBSLOT_Pos)        /*!< 0x00000200 */
19181 #define SAI_xSLOTR_NBSLOT_2                 (0x4UL << SAI_xSLOTR_NBSLOT_Pos)        /*!< 0x00000400 */
19182 #define SAI_xSLOTR_NBSLOT_3                 (0x8UL << SAI_xSLOTR_NBSLOT_Pos)        /*!< 0x00000800 */
19183 #define SAI_xSLOTR_SLOTEN_Pos               (16U)
19184 #define SAI_xSLOTR_SLOTEN_Msk               (0xFFFFUL << SAI_xSLOTR_SLOTEN_Pos)     /*!< 0xFFFF0000 */
19185 #define SAI_xSLOTR_SLOTEN                   SAI_xSLOTR_SLOTEN_Msk                   /*!<SLOTEN[15:0] (Slot Enable)  */
19186 
19187 /*******************  Bit definition for SAI_xIMR register  *******************/
19188 #define SAI_xIMR_OVRUDRIE_Pos               (0U)
19189 #define SAI_xIMR_OVRUDRIE_Msk               (0x1UL << SAI_xIMR_OVRUDRIE_Pos)        /*!< 0x00000001 */
19190 #define SAI_xIMR_OVRUDRIE                   SAI_xIMR_OVRUDRIE_Msk                   /*!<Overrun underrun interrupt enable                              */
19191 #define SAI_xIMR_MUTEDETIE_Pos              (1U)
19192 #define SAI_xIMR_MUTEDETIE_Msk              (0x1UL << SAI_xIMR_MUTEDETIE_Pos)       /*!< 0x00000002 */
19193 #define SAI_xIMR_MUTEDETIE                  SAI_xIMR_MUTEDETIE_Msk                  /*!<Mute detection interrupt enable                                */
19194 #define SAI_xIMR_WCKCFGIE_Pos               (2U)
19195 #define SAI_xIMR_WCKCFGIE_Msk               (0x1UL << SAI_xIMR_WCKCFGIE_Pos)        /*!< 0x00000004 */
19196 #define SAI_xIMR_WCKCFGIE                   SAI_xIMR_WCKCFGIE_Msk                   /*!<Wrong Clock Configuration interrupt enable                     */
19197 #define SAI_xIMR_FREQIE_Pos                 (3U)
19198 #define SAI_xIMR_FREQIE_Msk                 (0x1UL << SAI_xIMR_FREQIE_Pos)          /*!< 0x00000008 */
19199 #define SAI_xIMR_FREQIE                     SAI_xIMR_FREQIE_Msk                     /*!<FIFO request interrupt enable                                  */
19200 #define SAI_xIMR_CNRDYIE_Pos                (4U)
19201 #define SAI_xIMR_CNRDYIE_Msk                (0x1UL << SAI_xIMR_CNRDYIE_Pos)         /*!< 0x00000010 */
19202 #define SAI_xIMR_CNRDYIE                    SAI_xIMR_CNRDYIE_Msk                    /*!<Codec not ready interrupt enable                               */
19203 #define SAI_xIMR_AFSDETIE_Pos               (5U)
19204 #define SAI_xIMR_AFSDETIE_Msk               (0x1UL << SAI_xIMR_AFSDETIE_Pos)        /*!< 0x00000020 */
19205 #define SAI_xIMR_AFSDETIE                   SAI_xIMR_AFSDETIE_Msk                   /*!<Anticipated frame synchronization detection interrupt enable   */
19206 #define SAI_xIMR_LFSDETIE_Pos               (6U)
19207 #define SAI_xIMR_LFSDETIE_Msk               (0x1UL << SAI_xIMR_LFSDETIE_Pos)        /*!< 0x00000040 */
19208 #define SAI_xIMR_LFSDETIE                   SAI_xIMR_LFSDETIE_Msk                   /*!<Late frame synchronization detection interrupt enable          */
19209 
19210 /********************  Bit definition for SAI_xSR register  *******************/
19211 #define SAI_xSR_OVRUDR_Pos                  (0U)
19212 #define SAI_xSR_OVRUDR_Msk                  (0x1UL << SAI_xSR_OVRUDR_Pos)           /*!< 0x00000001 */
19213 #define SAI_xSR_OVRUDR                      SAI_xSR_OVRUDR_Msk                      /*!<Overrun underrun                               */
19214 #define SAI_xSR_MUTEDET_Pos                 (1U)
19215 #define SAI_xSR_MUTEDET_Msk                 (0x1UL << SAI_xSR_MUTEDET_Pos)          /*!< 0x00000002 */
19216 #define SAI_xSR_MUTEDET                     SAI_xSR_MUTEDET_Msk                     /*!<Mute detection                                 */
19217 #define SAI_xSR_WCKCFG_Pos                  (2U)
19218 #define SAI_xSR_WCKCFG_Msk                  (0x1UL << SAI_xSR_WCKCFG_Pos)           /*!< 0x00000004 */
19219 #define SAI_xSR_WCKCFG                      SAI_xSR_WCKCFG_Msk                      /*!<Wrong Clock Configuration                      */
19220 #define SAI_xSR_FREQ_Pos                    (3U)
19221 #define SAI_xSR_FREQ_Msk                    (0x1UL << SAI_xSR_FREQ_Pos)             /*!< 0x00000008 */
19222 #define SAI_xSR_FREQ                        SAI_xSR_FREQ_Msk                        /*!<FIFO request                                   */
19223 #define SAI_xSR_CNRDY_Pos                   (4U)
19224 #define SAI_xSR_CNRDY_Msk                   (0x1UL << SAI_xSR_CNRDY_Pos)            /*!< 0x00000010 */
19225 #define SAI_xSR_CNRDY                       SAI_xSR_CNRDY_Msk                       /*!<Codec not ready                                */
19226 #define SAI_xSR_AFSDET_Pos                  (5U)
19227 #define SAI_xSR_AFSDET_Msk                  (0x1UL << SAI_xSR_AFSDET_Pos)           /*!< 0x00000020 */
19228 #define SAI_xSR_AFSDET                      SAI_xSR_AFSDET_Msk                      /*!<Anticipated frame synchronization detection    */
19229 #define SAI_xSR_LFSDET_Pos                  (6U)
19230 #define SAI_xSR_LFSDET_Msk                  (0x1UL << SAI_xSR_LFSDET_Pos)           /*!< 0x00000040 */
19231 #define SAI_xSR_LFSDET                      SAI_xSR_LFSDET_Msk                      /*!<Late frame synchronization detection           */
19232 #define SAI_xSR_FLVL_Pos                    (16U)
19233 #define SAI_xSR_FLVL_Msk                    (0x7UL << SAI_xSR_FLVL_Pos)             /*!< 0x00070000 */
19234 #define SAI_xSR_FLVL                        SAI_xSR_FLVL_Msk                        /*!<FLVL[2:0] (FIFO Level Threshold)               */
19235 #define SAI_xSR_FLVL_0                      (0x1UL << SAI_xSR_FLVL_Pos)             /*!< 0x00010000 */
19236 #define SAI_xSR_FLVL_1                      (0x2UL << SAI_xSR_FLVL_Pos)             /*!< 0x00020000 */
19237 #define SAI_xSR_FLVL_2                      (0x4UL << SAI_xSR_FLVL_Pos)             /*!< 0x00040000 */
19238 
19239 /******************  Bit definition for SAI_xCLRFR register  ******************/
19240 #define SAI_xCLRFR_COVRUDR_Pos              (0U)
19241 #define SAI_xCLRFR_COVRUDR_Msk              (0x1UL << SAI_xCLRFR_COVRUDR_Pos)       /*!< 0x00000001 */
19242 #define SAI_xCLRFR_COVRUDR                  SAI_xCLRFR_COVRUDR_Msk                  /*!<Clear Overrun underrun                               */
19243 #define SAI_xCLRFR_CMUTEDET_Pos             (1U)
19244 #define SAI_xCLRFR_CMUTEDET_Msk             (0x1UL << SAI_xCLRFR_CMUTEDET_Pos)      /*!< 0x00000002 */
19245 #define SAI_xCLRFR_CMUTEDET                 SAI_xCLRFR_CMUTEDET_Msk                 /*!<Clear Mute detection                                 */
19246 #define SAI_xCLRFR_CWCKCFG_Pos              (2U)
19247 #define SAI_xCLRFR_CWCKCFG_Msk              (0x1UL << SAI_xCLRFR_CWCKCFG_Pos)       /*!< 0x00000004 */
19248 #define SAI_xCLRFR_CWCKCFG                  SAI_xCLRFR_CWCKCFG_Msk                  /*!<Clear Wrong Clock Configuration                      */
19249 #define SAI_xCLRFR_CFREQ_Pos                (3U)
19250 #define SAI_xCLRFR_CFREQ_Msk                (0x1UL << SAI_xCLRFR_CFREQ_Pos)         /*!< 0x00000008 */
19251 #define SAI_xCLRFR_CFREQ                    SAI_xCLRFR_CFREQ_Msk                    /*!<Clear FIFO request                                   */
19252 #define SAI_xCLRFR_CCNRDY_Pos               (4U)
19253 #define SAI_xCLRFR_CCNRDY_Msk               (0x1UL << SAI_xCLRFR_CCNRDY_Pos)        /*!< 0x00000010 */
19254 #define SAI_xCLRFR_CCNRDY                   SAI_xCLRFR_CCNRDY_Msk                   /*!<Clear Codec not ready                                */
19255 #define SAI_xCLRFR_CAFSDET_Pos              (5U)
19256 #define SAI_xCLRFR_CAFSDET_Msk              (0x1UL << SAI_xCLRFR_CAFSDET_Pos)       /*!< 0x00000020 */
19257 #define SAI_xCLRFR_CAFSDET                  SAI_xCLRFR_CAFSDET_Msk                  /*!<Clear Anticipated frame synchronization detection    */
19258 #define SAI_xCLRFR_CLFSDET_Pos              (6U)
19259 #define SAI_xCLRFR_CLFSDET_Msk              (0x1UL << SAI_xCLRFR_CLFSDET_Pos)       /*!< 0x00000040 */
19260 #define SAI_xCLRFR_CLFSDET                  SAI_xCLRFR_CLFSDET_Msk                  /*!<Clear Late frame synchronization detection           */
19261 
19262 /******************  Bit definition for SAI_xDR register  ******************/
19263 #define SAI_xDR_DATA_Pos                    (0U)
19264 #define SAI_xDR_DATA_Msk                    (0xFFFFFFFFUL << SAI_xDR_DATA_Pos)      /*!< 0xFFFFFFFF */
19265 #define SAI_xDR_DATA                        SAI_xDR_DATA_Msk
19266 
19267 /******************  Bit definition for SAI_PDMCR register  *******************/
19268 #define SAI_PDMCR_PDMEN_Pos                 (0U)
19269 #define SAI_PDMCR_PDMEN_Msk                 (0x1UL << SAI_PDMCR_PDMEN_Pos)          /*!< 0x00000001 */
19270 #define SAI_PDMCR_PDMEN                     SAI_PDMCR_PDMEN_Msk                     /*!<PDM enable */
19271 #define SAI_PDMCR_MICNBR_Pos                (4U)
19272 #define SAI_PDMCR_MICNBR_Msk                (0x3UL << SAI_PDMCR_MICNBR_Pos)         /*!< 0x00000030 */
19273 #define SAI_PDMCR_MICNBR                    SAI_PDMCR_MICNBR_Msk                    /*!<MICNBR[1:0] (Number of microphones) */
19274 #define SAI_PDMCR_MICNBR_0                  (0x1UL << SAI_PDMCR_MICNBR_Pos)         /*!< 0x00000010 */
19275 #define SAI_PDMCR_MICNBR_1                  (0x2UL << SAI_PDMCR_MICNBR_Pos)         /*!< 0x00000020 */
19276 #define SAI_PDMCR_CKEN1_Pos                 (8U)
19277 #define SAI_PDMCR_CKEN1_Msk                 (0x1UL << SAI_PDMCR_CKEN1_Pos)          /*!< 0x00000100 */
19278 #define SAI_PDMCR_CKEN1                     SAI_PDMCR_CKEN1_Msk                     /*!<Clock 1 enable */
19279 #define SAI_PDMCR_CKEN2_Pos                 (9U)
19280 #define SAI_PDMCR_CKEN2_Msk                 (0x1UL << SAI_PDMCR_CKEN2_Pos)          /*!< 0x00000200 */
19281 #define SAI_PDMCR_CKEN2                     SAI_PDMCR_CKEN2_Msk                     /*!<Clock 2 enable */
19282 #define SAI_PDMCR_CKEN3_Pos                 (10U)
19283 #define SAI_PDMCR_CKEN3_Msk                 (0x1UL << SAI_PDMCR_CKEN3_Pos)          /*!< 0x00000400 */
19284 #define SAI_PDMCR_CKEN3                     SAI_PDMCR_CKEN3_Msk                     /*!<Clock 3 enable */
19285 #define SAI_PDMCR_CKEN4_Pos                 (11U)
19286 #define SAI_PDMCR_CKEN4_Msk                 (0x1UL << SAI_PDMCR_CKEN4_Pos)          /*!< 0x00000800 */
19287 #define SAI_PDMCR_CKEN4                     SAI_PDMCR_CKEN4_Msk                     /*!<Clock 4 enable */
19288 
19289 /******************  Bit definition for SAI_PDMDLY register  ******************/
19290 #define SAI_PDMDLY_DLYM1L_Pos               (0U)
19291 #define SAI_PDMDLY_DLYM1L_Msk               (0x7UL << SAI_PDMDLY_DLYM1L_Pos)        /*!< 0x00000007 */
19292 #define SAI_PDMDLY_DLYM1L                   SAI_PDMDLY_DLYM1L_Msk                   /*!<DLYM1L[2:0] (Delay line adjust for left microphone of pair 1) */
19293 #define SAI_PDMDLY_DLYM1L_0                 (0x1UL << SAI_PDMDLY_DLYM1L_Pos)        /*!< 0x00000001 */
19294 #define SAI_PDMDLY_DLYM1L_1                 (0x2UL << SAI_PDMDLY_DLYM1L_Pos)        /*!< 0x00000002 */
19295 #define SAI_PDMDLY_DLYM1L_2                 (0x4UL << SAI_PDMDLY_DLYM1L_Pos)        /*!< 0x00000004 */
19296 #define SAI_PDMDLY_DLYM1R_Pos               (4U)
19297 #define SAI_PDMDLY_DLYM1R_Msk               (0x7UL << SAI_PDMDLY_DLYM1R_Pos)        /*!< 0x00000070 */
19298 #define SAI_PDMDLY_DLYM1R                   SAI_PDMDLY_DLYM1R_Msk                   /*!<DLYM1R[2:0] (Delay line adjust for right microphone of pair 1) */
19299 #define SAI_PDMDLY_DLYM1R_0                 (0x1UL << SAI_PDMDLY_DLYM1R_Pos)        /*!< 0x00000010 */
19300 #define SAI_PDMDLY_DLYM1R_1                 (0x2UL << SAI_PDMDLY_DLYM1R_Pos)        /*!< 0x00000020 */
19301 #define SAI_PDMDLY_DLYM1R_2                 (0x4UL << SAI_PDMDLY_DLYM1R_Pos)        /*!< 0x00000040 */
19302 #define SAI_PDMDLY_DLYM2L_Pos               (8U)
19303 #define SAI_PDMDLY_DLYM2L_Msk               (0x7UL << SAI_PDMDLY_DLYM2L_Pos)        /*!< 0x00000700 */
19304 #define SAI_PDMDLY_DLYM2L                   SAI_PDMDLY_DLYM2L_Msk                   /*!<DLYM2L[2:0] (Delay line adjust for left microphone of pair 2) */
19305 #define SAI_PDMDLY_DLYM2L_0                 (0x1UL << SAI_PDMDLY_DLYM2L_Pos)        /*!< 0x00000100 */
19306 #define SAI_PDMDLY_DLYM2L_1                 (0x2UL << SAI_PDMDLY_DLYM2L_Pos)        /*!< 0x00000200 */
19307 #define SAI_PDMDLY_DLYM2L_2                 (0x4UL << SAI_PDMDLY_DLYM2L_Pos)        /*!< 0x00000400 */
19308 #define SAI_PDMDLY_DLYM2R_Pos               (12U)
19309 #define SAI_PDMDLY_DLYM2R_Msk               (0x7UL << SAI_PDMDLY_DLYM2R_Pos)        /*!< 0x00007000 */
19310 #define SAI_PDMDLY_DLYM2R                   SAI_PDMDLY_DLYM2R_Msk                   /*!<DLYM2R[2:0] (Delay line adjust for right microphone of pair 2) */
19311 #define SAI_PDMDLY_DLYM2R_0                 (0x1UL << SAI_PDMDLY_DLYM2R_Pos)        /*!< 0x00001000 */
19312 #define SAI_PDMDLY_DLYM2R_1                 (0x2UL << SAI_PDMDLY_DLYM2R_Pos)        /*!< 0x00002000 */
19313 #define SAI_PDMDLY_DLYM2R_2                 (0x4UL << SAI_PDMDLY_DLYM2R_Pos)        /*!< 0x00004000 */
19314 #define SAI_PDMDLY_DLYM3L_Pos               (16U)
19315 #define SAI_PDMDLY_DLYM3L_Msk               (0x7UL << SAI_PDMDLY_DLYM3L_Pos)        /*!< 0x00070000 */
19316 #define SAI_PDMDLY_DLYM3L                   SAI_PDMDLY_DLYM3L_Msk                   /*!<DLYM3L[2:0] (Delay line adjust for left microphone of pair 3) */
19317 #define SAI_PDMDLY_DLYM3L_0                 (0x1UL << SAI_PDMDLY_DLYM3L_Pos)        /*!< 0x00010000 */
19318 #define SAI_PDMDLY_DLYM3L_1                 (0x2UL << SAI_PDMDLY_DLYM3L_Pos)        /*!< 0x00020000 */
19319 #define SAI_PDMDLY_DLYM3L_2                 (0x4UL << SAI_PDMDLY_DLYM3L_Pos)        /*!< 0x00040000 */
19320 #define SAI_PDMDLY_DLYM3R_Pos               (20U)
19321 #define SAI_PDMDLY_DLYM3R_Msk               (0x7UL << SAI_PDMDLY_DLYM3R_Pos)        /*!< 0x00700000 */
19322 #define SAI_PDMDLY_DLYM3R                   SAI_PDMDLY_DLYM3R_Msk                   /*!<DLYM3R[2:0] (Delay line adjust for right microphone of pair 3) */
19323 #define SAI_PDMDLY_DLYM3R_0                 (0x1UL << SAI_PDMDLY_DLYM3R_Pos)        /*!< 0x00100000 */
19324 #define SAI_PDMDLY_DLYM3R_1                 (0x2UL << SAI_PDMDLY_DLYM3R_Pos)        /*!< 0x00200000 */
19325 #define SAI_PDMDLY_DLYM3R_2                 (0x4UL << SAI_PDMDLY_DLYM3R_Pos)        /*!< 0x00400000 */
19326 #define SAI_PDMDLY_DLYM4L_Pos               (24U)
19327 #define SAI_PDMDLY_DLYM4L_Msk               (0x7UL << SAI_PDMDLY_DLYM4L_Pos)        /*!< 0x07000000 */
19328 #define SAI_PDMDLY_DLYM4L                   SAI_PDMDLY_DLYM4L_Msk                   /*!<DLYM4L[2:0] (Delay line adjust for left microphone of pair 4) */
19329 #define SAI_PDMDLY_DLYM4L_0                 (0x1UL << SAI_PDMDLY_DLYM4L_Pos)        /*!< 0x01000000 */
19330 #define SAI_PDMDLY_DLYM4L_1                 (0x2UL << SAI_PDMDLY_DLYM4L_Pos)        /*!< 0x02000000 */
19331 #define SAI_PDMDLY_DLYM4L_2                 (0x4UL << SAI_PDMDLY_DLYM4L_Pos)        /*!< 0x04000000 */
19332 #define SAI_PDMDLY_DLYM4R_Pos               (28U)
19333 #define SAI_PDMDLY_DLYM4R_Msk               (0x7UL << SAI_PDMDLY_DLYM4R_Pos)        /*!< 0x70000000 */
19334 #define SAI_PDMDLY_DLYM4R                   SAI_PDMDLY_DLYM4R_Msk                   /*!<DLYM4R[2:0] (Delay line adjust for right microphone of pair 4) */
19335 #define SAI_PDMDLY_DLYM4R_0                 (0x1UL << SAI_PDMDLY_DLYM4R_Pos)        /*!< 0x10000000 */
19336 #define SAI_PDMDLY_DLYM4R_1                 (0x2UL << SAI_PDMDLY_DLYM4R_Pos)        /*!< 0x20000000 */
19337 #define SAI_PDMDLY_DLYM4R_2                 (0x4UL << SAI_PDMDLY_DLYM4R_Pos)        /*!< 0x40000000 */
19338 
19339 /******************************************************************************/
19340 /*                                                                            */
19341 /*                                 SYSCFG                                     */
19342 /*                                                                            */
19343 /******************************************************************************/
19344 /******************  Bit definition for SYSCFG_SECRX register  ****************/
19345 #define SYSCFG_SECCFGR_SYSCFGSEC_Pos        (0U)
19346 #define SYSCFG_SECCFGR_SYSCFGSEC_Msk        (0x1UL << SYSCFG_SECCFGR_SYSCFGSEC_Pos) /*!< 0x00000001 */
19347 #define SYSCFG_SECCFGR_SYSCFGSEC            SYSCFG_SECCFGR_SYSCFGSEC_Msk            /*!< SYSCFG clock control security enable */
19348 #define SYSCFG_SECCFGR_CLASSBSEC_Pos        (1U)
19349 #define SYSCFG_SECCFGR_CLASSBSEC_Msk        (0x1UL << SYSCFG_SECCFGR_CLASSBSEC_Pos) /*!< 0x00000002 */
19350 #define SYSCFG_SECCFGR_CLASSBSEC            SYSCFG_SECCFGR_CLASSBSEC_Msk            /*!< ClassB SYSCFG security enable */
19351 #define SYSCFG_SECCFGR_FPUSEC_Pos           (3U)
19352 #define SYSCFG_SECCFGR_FPUSEC_Msk           (0x1UL << SYSCFG_SECCFGR_FPUSEC_Pos)    /*!< 0x00000008 */
19353 #define SYSCFG_SECCFGR_FPUSEC               SYSCFG_SECCFGR_FPUSEC_Msk               /*!< FPU SYSCFG security enable */
19354 
19355 /******************  Bit definition for SYSCFG_CFGR1 register  ****************/
19356 #define SYSCFG_CFGR1_BOOSTEN_Pos            (8U)
19357 #define SYSCFG_CFGR1_BOOSTEN_Msk            (0x1UL << SYSCFG_CFGR1_BOOSTEN_Pos)     /*!< 0x00000100 */
19358 #define SYSCFG_CFGR1_BOOSTEN                SYSCFG_CFGR1_BOOSTEN_Msk                /*!< I/O analog switch voltage booster enable */
19359 #define SYSCFG_CFGR1_ANASWVDD_Pos           (9U)
19360 #define SYSCFG_CFGR1_ANASWVDD_Msk           (0x1UL << SYSCFG_CFGR1_ANASWVDD_Pos)    /*!< 0x00000200 */
19361 #define SYSCFG_CFGR1_ANASWVDD               SYSCFG_CFGR1_ANASWVDD_Msk               /*!< GPIO analog switch control voltage selection */
19362 #define SYSCFG_CFGR1_PB6_FMP_Pos            (16U)
19363 #define SYSCFG_CFGR1_PB6_FMP_Msk            (0x1UL << SYSCFG_CFGR1_PB6_FMP_Pos)     /*!< 0x00010000 */
19364 #define SYSCFG_CFGR1_PB6_FMP                SYSCFG_CFGR1_PB6_FMP_Msk                /*!< PB6 Fast mode plus */
19365 #define SYSCFG_CFGR1_PB7_FMP_Pos            (17U)
19366 #define SYSCFG_CFGR1_PB7_FMP_Msk            (0x1UL << SYSCFG_CFGR1_PB7_FMP_Pos)     /*!< 0x00020000 */
19367 #define SYSCFG_CFGR1_PB7_FMP                SYSCFG_CFGR1_PB7_FMP_Msk                /*!< PB7 Fast mode plus */
19368 #define SYSCFG_CFGR1_PB8_FMP_Pos            (18U)
19369 #define SYSCFG_CFGR1_PB8_FMP_Msk            (0x1UL << SYSCFG_CFGR1_PB8_FMP_Pos)     /*!< 0x00040000 */
19370 #define SYSCFG_CFGR1_PB8_FMP                SYSCFG_CFGR1_PB8_FMP_Msk                /*!< PB8 Fast mode plus */
19371 #define SYSCFG_CFGR1_PB9_FMP_Pos            (19U)
19372 #define SYSCFG_CFGR1_PB9_FMP_Msk            (0x1UL << SYSCFG_CFGR1_PB9_FMP_Pos)     /*!< 0x00080000 */
19373 #define SYSCFG_CFGR1_PB9_FMP                SYSCFG_CFGR1_PB9_FMP_Msk                /*!< PB9 Fast mode plus */
19374 
19375 /******************  Bit definition for SYSCFG_FPUIMR register  ***************/
19376 #define SYSCFG_FPUIMR_FPU_IE_Pos            (0U)
19377 #define SYSCFG_FPUIMR_FPU_IE_Msk            (0x3FUL << SYSCFG_FPUIMR_FPU_IE_Pos)    /*!< 0x0000003F - */
19378 #define SYSCFG_FPUIMR_FPU_IE                SYSCFG_FPUIMR_FPU_IE_Msk                /*!<  All FPU interrupts enable */
19379 #define SYSCFG_FPUIMR_FPU_IE_0              (0x1UL << SYSCFG_FPUIMR_FPU_IE_Pos)     /*!< 0x00000001 - Invalid operation Interrupt enable */
19380 #define SYSCFG_FPUIMR_FPU_IE_1              (0x2UL << SYSCFG_FPUIMR_FPU_IE_Pos)     /*!< 0x00000002 - Divide-by-zero Interrupt enable */
19381 #define SYSCFG_FPUIMR_FPU_IE_2              (0x4UL << SYSCFG_FPUIMR_FPU_IE_Pos)     /*!< 0x00000004 - Underflow Interrupt enable */
19382 #define SYSCFG_FPUIMR_FPU_IE_3              (0x8UL << SYSCFG_FPUIMR_FPU_IE_Pos)     /*!< 0x00000008 - Overflow Interrupt enable */
19383 #define SYSCFG_FPUIMR_FPU_IE_4              (0x10UL << SYSCFG_FPUIMR_FPU_IE_Pos)    /*!< 0x00000010 - Input denormal Interrupt enable */
19384 #define SYSCFG_FPUIMR_FPU_IE_5              (0x20UL << SYSCFG_FPUIMR_FPU_IE_Pos)    /*!< 0x00000020 - Inexact Interrupt enable (interrupt disabled at reset) */
19385 
19386 /******************  Bit definition for SYSCFG_CNSLCKR register  **************/
19387 #define SYSCFG_CNSLCKR_LOCKNSVTOR_Pos       (0U)
19388 #define SYSCFG_CNSLCKR_LOCKNSVTOR_Msk       (0x1UL << SYSCFG_CNSLCKR_LOCKNSVTOR_Pos) /*!< 0x00000001 */
19389 #define SYSCFG_CNSLCKR_LOCKNSVTOR           SYSCFG_CNSLCKR_LOCKNSVTOR_Msk           /*!< Disable VTOR_NS register writes by SW or debug agent */
19390 #define SYSCFG_CNSLCKR_LOCKNSMPU_Pos        (1U)
19391 #define SYSCFG_CNSLCKR_LOCKNSMPU_Msk        (0x1UL << SYSCFG_CNSLCKR_LOCKNSMPU_Pos) /*!< 0x00000002 */
19392 #define SYSCFG_CNSLCKR_LOCKNSMPU            SYSCFG_CNSLCKR_LOCKNSMPU_Msk            /*!< Disable Non-Secure MPU registers writes by SW or debug agent */
19393 
19394 /******************  Bit definition for SYSCFG_CSLCKR register  ***************/
19395 #define SYSCFG_CSLCKR_LOCKSVTAIRCR_Pos      (0U)
19396 #define SYSCFG_CSLCKR_LOCKSVTAIRCR_Msk      (0x1UL << SYSCFG_CSLCKR_LOCKSVTAIRCR_Pos) /*!< 0x00000001 */
19397 #define SYSCFG_CSLCKR_LOCKSVTAIRCR          SYSCFG_CSLCKR_LOCKSVTAIRCR_Msk          /*!< Disable changes to the secure vectror table address, handling of system faults */
19398 #define SYSCFG_CSLCKR_LOCKSMPU_Pos          (1U)
19399 #define SYSCFG_CSLCKR_LOCKSMPU_Msk          (0x1UL << SYSCFG_CSLCKR_LOCKSMPU_Pos)   /*!< 0x00000002 */
19400 #define SYSCFG_CSLCKR_LOCKSMPU              SYSCFG_CSLCKR_LOCKSMPU_Msk              /*!< Disable changes to the secure MPU registers writes by SW or debug agent */
19401 #define SYSCFG_CSLCKR_LOCKSAU_Pos           (2U)
19402 #define SYSCFG_CSLCKR_LOCKSAU_Msk           (0x1UL << SYSCFG_CSLCKR_LOCKSAU_Pos)    /*!< 0x00000004 */
19403 #define SYSCFG_CSLCKR_LOCKSAU               SYSCFG_CSLCKR_LOCKSAU_Msk               /*!< Disable changes to SAU registers */
19404 
19405 /******************  Bit definition for SYSCFG_CFGR2 register  ****************/
19406 #define SYSCFG_CFGR2_CLL_Pos                (0U)
19407 #define SYSCFG_CFGR2_CLL_Msk                (0x1UL << SYSCFG_CFGR2_CLL_Pos)         /*!< 0x00000001 */
19408 #define SYSCFG_CFGR2_CLL                    SYSCFG_CFGR2_CLL_Msk                    /*!< Core Lockup Lock */
19409 #define SYSCFG_CFGR2_SPL_Pos                (1U)
19410 #define SYSCFG_CFGR2_SPL_Msk                (0x1UL << SYSCFG_CFGR2_SPL_Pos)         /*!< 0x00000002 */
19411 #define SYSCFG_CFGR2_SPL                    SYSCFG_CFGR2_SPL_Msk                    /*!< SRAM ECC Lock */
19412 #define SYSCFG_CFGR2_PVDL_Pos               (2U)
19413 #define SYSCFG_CFGR2_PVDL_Msk               (0x1UL << SYSCFG_CFGR2_PVDL_Pos)        /*!< 0x00000004 */
19414 #define SYSCFG_CFGR2_PVDL                   SYSCFG_CFGR2_PVDL_Msk                   /*!<  PVD Lock */
19415 #define SYSCFG_CFGR2_ECCL_Pos               (3U)
19416 #define SYSCFG_CFGR2_ECCL_Msk               (0x1UL << SYSCFG_CFGR2_ECCL_Pos)        /*!< 0x00000008 */
19417 #define SYSCFG_CFGR2_ECCL                   SYSCFG_CFGR2_ECCL_Msk                   /*!< ECC Lock*/
19418 
19419 /******************  Bit definition for SYSCFG_MESR register  ****************/
19420 #define SYSCFG_MESR_MCLR_Pos                (0U)
19421 #define SYSCFG_MESR_MCLR_Msk                (0x1UL << SYSCFG_MESR_MCLR_Pos)         /*!< 0x00000001 */
19422 #define SYSCFG_MESR_MCLR                    SYSCFG_MESR_MCLR_Msk                    /*!< Status of Erase after Reset */
19423 #define SYSCFG_MESR_IPMEE_Pos               (16U)
19424 #define SYSCFG_MESR_IPMEE_Msk               (0x1UL << SYSCFG_MESR_IPMEE_Pos)        /*!< 0x00010000 */
19425 #define SYSCFG_MESR_IPMEE                   SYSCFG_MESR_IPMEE_Msk                   /*!< Status of End of Erase for ICache and PKA RAMs */
19426 
19427 /******************  Bit definition for SYSCFG_CCCSR register  ****************/
19428 #define SYSCFG_CCCSR_EN1_Pos                (0U)
19429 #define SYSCFG_CCCSR_EN1_Msk                (0x1UL << SYSCFG_CCCSR_EN1_Pos)         /*!< 0x00000001 */
19430 #define SYSCFG_CCCSR_EN1                    SYSCFG_CCCSR_EN1_Msk                    /*!< Enable compensation cell for VDD power rail */
19431 #define SYSCFG_CCCSR_CS1_Pos                (1U)
19432 #define SYSCFG_CCCSR_CS1_Msk                (0x1UL << SYSCFG_CCCSR_CS1_Pos)         /*!< 0x00000002 */
19433 #define SYSCFG_CCCSR_CS1                    SYSCFG_CCCSR_CS1_Msk                    /*!< Code selection for VDD power rail */
19434 #define SYSCFG_CCCSR_EN2_Pos                (2U)
19435 #define SYSCFG_CCCSR_EN2_Msk                (0x1UL << SYSCFG_CCCSR_EN2_Pos)         /*!< 0x00000004 */
19436 #define SYSCFG_CCCSR_EN2                    SYSCFG_CCCSR_EN2_Msk                    /*!< Enable compensation cell for VDDIO power rail */
19437 #define SYSCFG_CCCSR_CS2_Pos                (3U)
19438 #define SYSCFG_CCCSR_CS2_Msk                (0x1UL << SYSCFG_CCCSR_CS2_Pos)         /*!< 0x00000008 */
19439 #define SYSCFG_CCCSR_CS2                    SYSCFG_CCCSR_CS2_Msk                    /*!< Code selection for VDDIO power rail */
19440 #define SYSCFG_CCCSR_RDY1_Pos               (8U)
19441 #define SYSCFG_CCCSR_RDY1_Msk               (0x1UL << SYSCFG_CCCSR_RDY1_Pos)        /*!< 0x00000100 */
19442 #define SYSCFG_CCCSR_RDY1                   SYSCFG_CCCSR_RDY1_Msk                   /*!< VDD compensation cell ready flag */
19443 #define SYSCFG_CCCSR_RDY2_Pos               (9U)
19444 #define SYSCFG_CCCSR_RDY2_Msk               (0x1UL << SYSCFG_CCCSR_RDY2_Pos)        /*!< 0x00000200 */
19445 #define SYSCFG_CCCSR_RDY2                   SYSCFG_CCCSR_RDY2_Msk                   /*!< VDDIO compensation cell ready flag */
19446 
19447 /******************  Bit definition for SYSCFG_CCVR register  ****************/
19448 #define SYSCFG_CCVR_NCV1_Pos                (0U)
19449 #define SYSCFG_CCVR_NCV1_Msk                (0xFUL << SYSCFG_CCVR_NCV1_Pos)         /*!< 0x0000000F */
19450 #define SYSCFG_CCVR_NCV1                    SYSCFG_CCVR_NCV1_Msk                    /*!< NMOS compensation value for VDD Power Rail */
19451 #define SYSCFG_CCVR_PCV1_Pos                (4U)
19452 #define SYSCFG_CCVR_PCV1_Msk                (0xFUL << SYSCFG_CCVR_PCV1_Pos)         /*!< 0x000000F0 */
19453 #define SYSCFG_CCVR_PCV1                    SYSCFG_CCVR_PCV1_Msk                    /*!< PMOS compensation value for VDD Power Rail */
19454 #define SYSCFG_CCVR_NCV2_Pos                (8U)
19455 #define SYSCFG_CCVR_NCV2_Msk                (0xFUL << SYSCFG_CCVR_NCV2_Pos)         /*!< 0x00000F00 */
19456 #define SYSCFG_CCVR_NCV2                    SYSCFG_CCVR_NCV2_Msk                    /*!< NMOS compensation value for VDDIO Power Rail */
19457 #define SYSCFG_CCVR_PCV2_Pos                (12U)
19458 #define SYSCFG_CCVR_PCV2_Msk                (0xFUL << SYSCFG_CCVR_PCV2_Pos)         /*!< 0x0000F000 */
19459 #define SYSCFG_CCVR_PCV2                    SYSCFG_CCVR_PCV2_Msk                    /*!< PMOS compensation value for VDDIO Power Rail */
19460 
19461 /******************  Bit definition for SYSCFG_CCCR register  ****************/
19462 #define SYSCFG_CCCR_NCC1_Pos                (0U)
19463 #define SYSCFG_CCCR_NCC1_Msk                (0xFUL << SYSCFG_CCCR_NCC1_Pos)         /*!< 0x0000000F */
19464 #define SYSCFG_CCCR_NCC1                    SYSCFG_CCCR_NCC1_Msk                    /*!< NMOS compensation code for VDD Power Rail */
19465 #define SYSCFG_CCCR_PCC1_Pos                (4U)
19466 #define SYSCFG_CCCR_PCC1_Msk                (0xFUL << SYSCFG_CCCR_PCC1_Pos)         /*!< 0x000000F0 */
19467 #define SYSCFG_CCCR_PCC1                    SYSCFG_CCCR_PCC1_Msk                    /*!< PMOS compensation code for VDD Power Rail */
19468 #define SYSCFG_CCCR_NCC2_Pos                (8U)
19469 #define SYSCFG_CCCR_NCC2_Msk                (0xFUL << SYSCFG_CCCR_NCC2_Pos)         /*!< 0x00000F00 */
19470 #define SYSCFG_CCCR_NCC2                    SYSCFG_CCCR_NCC2_Msk                    /*!< NMOS compensation code for VDDIO Power Rail */
19471 #define SYSCFG_CCCR_PCC2_Pos                (12U)
19472 #define SYSCFG_CCCR_PCC2_Msk                (0xFUL << SYSCFG_CCCR_PCC2_Pos)         /*!< 0x0000F000 */
19473 #define SYSCFG_CCCR_PCC2                    SYSCFG_CCCR_PCC2_Msk                    /*!< PMOS compensation code for VDDIO Power Rail */
19474 
19475 /******************  Bit definition for SYSCFG_RSSCMDR register  *************/
19476 #define SYSCFG_RSSCMDR_RSSCMD_Pos           (0U)
19477 #define SYSCFG_RSSCMDR_RSSCMD_Msk           (0xFFFFUL << SYSCFG_RSSCMDR_RSSCMD_Pos) /*!< 0x0000FFFF */
19478 #define SYSCFG_RSSCMDR_RSSCMD               SYSCFG_RSSCMDR_RSSCMD_Msk                /*!< RSS command */
19479 
19480 /******************  Bit definition for SYSCFG_UCPD register  ***************/
19481 #define SYSCFG_UCPD_CC1ENRXFILTER_Pos       (0U)
19482 #define SYSCFG_UCPD_CC1ENRXFILTER_Msk       (0x1UL << SYSCFG_UCPD_CC1ENRXFILTER_Pos) /*!< 0x0000001 */
19483 #define SYSCFG_UCPD_CC1ENRXFILTER           SYSCFG_UCPD_CC1ENRXFILTER_Msk           /*!< USB PD BMC receiver 1 low-power analog filter */
19484 #define SYSCFG_UCPD_CC2ENRXFILTER_Pos       (1U)
19485 #define SYSCFG_UCPD_CC2ENRXFILTER_Msk       (0x1UL << SYSCFG_UCPD_CC2ENRXFILTER_Pos) /*!< 0x0000002 */
19486 #define SYSCFG_UCPD_CC2ENRXFILTER           SYSCFG_UCPD_CC2ENRXFILTER_Msk           /*!< USB PD BMC receiver 2 low-power analog filter */
19487 
19488 /*****************************************************************************/
19489 /*                                                                           */
19490 /*                        Global TrustZone Control                           */
19491 /*                                                                           */
19492 /*****************************************************************************/
19493 /*******************  Bits definition for GTZC_TZSC_CR register  ******************/
19494 #define GTZC_TZSC_CR_LCK_Pos                (0U)
19495 #define GTZC_TZSC_CR_LCK_Msk                (0x01UL << GTZC_TZSC_CR_LCK_Pos)        /*!< 0x00000001 */
19496 
19497 /*******************  Bits definition for GTZC_TZSC_MPCWM_CFGR register  **********/
19498 #define GTZC_TZSC_MPCWM_CFGR_SREN_Pos       (0U)
19499 #define GTZC_TZSC_MPCWM_CFGR_SREN_Msk       (0x1UL << GTZC_TZSC_MPCWM_CFGR_SREN_Pos)
19500 #define GTZC_TZSC_MPCWM_CFGR_SREN           GTZC_TZSC_MPCWM_CFGR_SREN_Msk
19501 #define GTZC_TZSC_MPCWM_CFGR_SRLOCK_Pos     (1U)
19502 #define GTZC_TZSC_MPCWM_CFGR_SRLOCK_Msk     (0x1UL << GTZC_TZSC_MPCWM_CFGR_SRLOCK_Pos)
19503 #define GTZC_TZSC_MPCWM_CFGR_SRLOCK         GTZC_TZSC_MPCWM_CFGR_SRLOCK_Msk
19504 #define GTZC_TZSC_MPCWM_CFGR_SEC_Pos        (8U)
19505 #define GTZC_TZSC_MPCWM_CFGR_SEC_Msk        (0x1UL << GTZC_TZSC_MPCWM_CFGR_SEC_Pos)
19506 #define GTZC_TZSC_MPCWM_CFGR_SEC            GTZC_TZSC_MPCWM_CFGR_SEC_Msk
19507 #define GTZC_TZSC_MPCWM_CFGR_PRIV_Pos       (9U)
19508 #define GTZC_TZSC_MPCWM_CFGR_PRIV_Msk       (0x1UL << GTZC_TZSC_MPCWM_CFGR_PRIV_Pos)
19509 #define GTZC_TZSC_MPCWM_CFGR_PRIV           GTZC_TZSC_MPCWM_CFGR_PRIV_Msk
19510 
19511 /*******************  Bits definition for GTZC_TZSC_MPCWMR register  **************/
19512 #define GTZC_TZSC_MPCWMR_SUBZ_START_Pos     (0U)
19513 #define GTZC_TZSC_MPCWMR_SUBZ_START_Msk     (0x7FFUL << GTZC_TZSC_MPCWMR_SUBZ_START_Pos)
19514 #define GTZC_TZSC_MPCWMR_SUBZ_START         GTZC_TZSC_MPCWMR_SUBZ_START_Msk
19515 #define GTZC_TZSC_MPCWMR_SUBZ_LENGTH_Pos    (16U)
19516 #define GTZC_TZSC_MPCWMR_SUBZ_LENGTH_Msk    (0xFFFUL << GTZC_TZSC_MPCWMR_SUBZ_LENGTH_Pos)
19517 #define GTZC_TZSC_MPCWMR_SUBZ_LENGTH        GTZC_TZSC_MPCWMR_SUBZ_LENGTH_Msk
19518 
19519 /*******  Bits definition for TZSC _SECCFGRx/_PRIVCFGRx registers  *****/
19520 /*******  Bits definition for TZIC _IERx/_SRx/_IFCRx registers  ********/
19521 
19522 /***************  Bits definition for register x=1 (TZSC1) *************/
19523 #define GTZC_CFGR1_TIM2_Pos                 (0U)
19524 #define GTZC_CFGR1_TIM2_Msk                 (0x01UL << GTZC_CFGR1_TIM2_Pos)
19525 #define GTZC_CFGR1_TIM3_Pos                 (1U)
19526 #define GTZC_CFGR1_TIM3_Msk                 (0x01UL << GTZC_CFGR1_TIM3_Pos)
19527 #define GTZC_CFGR1_TIM4_Pos                 (2U)
19528 #define GTZC_CFGR1_TIM4_Msk                 (0x01UL << GTZC_CFGR1_TIM4_Pos)
19529 #define GTZC_CFGR1_TIM5_Pos                 (3U)
19530 #define GTZC_CFGR1_TIM5_Msk                 (0x01UL << GTZC_CFGR1_TIM5_Pos)
19531 #define GTZC_CFGR1_TIM6_Pos                 (4U)
19532 #define GTZC_CFGR1_TIM6_Msk                 (0x01UL << GTZC_CFGR1_TIM6_Pos)
19533 #define GTZC_CFGR1_TIM7_Pos                 (5U)
19534 #define GTZC_CFGR1_TIM7_Msk                 (0x01UL << GTZC_CFGR1_TIM7_Pos)
19535 #define GTZC_CFGR1_WWDG_Pos                 (6U)
19536 #define GTZC_CFGR1_WWDG_Msk                 (0x01UL << GTZC_CFGR1_WWDG_Pos)
19537 #define GTZC_CFGR1_IWDG_Pos                 (7U)
19538 #define GTZC_CFGR1_IWDG_Msk                 (0x01UL << GTZC_CFGR1_IWDG_Pos)
19539 #define GTZC_CFGR1_SPI2_Pos                 (8U)
19540 #define GTZC_CFGR1_SPI2_Msk                 (0x01UL << GTZC_CFGR1_SPI2_Pos)
19541 #define GTZC_CFGR1_USART2_Pos               (9U)
19542 #define GTZC_CFGR1_USART2_Msk               (0x01UL << GTZC_CFGR1_USART2_Pos)
19543 #define GTZC_CFGR1_USART3_Pos               (10U)
19544 #define GTZC_CFGR1_USART3_Msk               (0x01UL << GTZC_CFGR1_USART3_Pos)
19545 #define GTZC_CFGR1_UART4_Pos                (11U)
19546 #define GTZC_CFGR1_UART4_Msk                (0x01UL << GTZC_CFGR1_UART4_Pos)
19547 #define GTZC_CFGR1_UART5_Pos                (12U)
19548 #define GTZC_CFGR1_UART5_Msk                (0x01UL << GTZC_CFGR1_UART5_Pos)
19549 #define GTZC_CFGR1_I2C1_Pos                 (13U)
19550 #define GTZC_CFGR1_I2C1_Msk                 (0x01UL << GTZC_CFGR1_I2C1_Pos)
19551 #define GTZC_CFGR1_I2C2_Pos                 (14U)
19552 #define GTZC_CFGR1_I2C2_Msk                 (0x01UL << GTZC_CFGR1_I2C2_Pos)
19553 #define GTZC_CFGR1_CRS_Pos                  (15U)
19554 #define GTZC_CFGR1_CRS_Msk                  (0x01UL << GTZC_CFGR1_CRS_Pos)
19555 #define GTZC_CFGR1_I2C4_Pos                 (16U)
19556 #define GTZC_CFGR1_I2C4_Msk                 (0x01UL << GTZC_CFGR1_I2C4_Pos)
19557 #define GTZC_CFGR1_LPTIM2_Pos               (17U)
19558 #define GTZC_CFGR1_LPTIM2_Msk               (0x01UL << GTZC_CFGR1_LPTIM2_Pos)
19559 #define GTZC_CFGR1_FDCAN1_Pos               (18U)
19560 #define GTZC_CFGR1_FDCAN1_Msk               (0x01UL << GTZC_CFGR1_FDCAN1_Pos)
19561 #define GTZC_CFGR1_UCPD1_Pos                (19U)
19562 #define GTZC_CFGR1_UCPD1_Msk                (0x01UL << GTZC_CFGR1_UCPD1_Pos)
19563 
19564 /***************  Bits definition for register x=2 (TZSC1) *************/
19565 #define GTZC_CFGR2_TIM1_Pos                 (0U)
19566 #define GTZC_CFGR2_TIM1_Msk                 (0x01UL << GTZC_CFGR2_TIM1_Pos)
19567 #define GTZC_CFGR2_SPI1_Pos                 (1U)
19568 #define GTZC_CFGR2_SPI1_Msk                 (0x01UL << GTZC_CFGR2_SPI1_Pos)
19569 #define GTZC_CFGR2_TIM8_Pos                 (2U)
19570 #define GTZC_CFGR2_TIM8_Msk                 (0x01UL << GTZC_CFGR2_TIM8_Pos)
19571 #define GTZC_CFGR2_USART1_Pos               (3U)
19572 #define GTZC_CFGR2_USART1_Msk               (0x01UL << GTZC_CFGR2_USART1_Pos)
19573 #define GTZC_CFGR2_TIM15_Pos                (4U)
19574 #define GTZC_CFGR2_TIM15_Msk                (0x01UL << GTZC_CFGR2_TIM15_Pos)
19575 #define GTZC_CFGR2_TIM16_Pos                (5U)
19576 #define GTZC_CFGR2_TIM16_Msk                (0x01UL << GTZC_CFGR2_TIM16_Pos)
19577 #define GTZC_CFGR2_TIM17_Pos                (6U)
19578 #define GTZC_CFGR2_TIM17_Msk                (0x01UL << GTZC_CFGR2_TIM17_Pos)
19579 #define GTZC_CFGR2_SAI1_Pos                 (7U)
19580 #define GTZC_CFGR2_SAI1_Msk                 (0x01UL << GTZC_CFGR2_SAI1_Pos)
19581 #define GTZC_CFGR2_SAI2_Pos                 (8U)
19582 #define GTZC_CFGR2_SAI2_Msk                 (0x01UL << GTZC_CFGR2_SAI2_Pos)
19583 
19584 /***************  Bits definition for register x=3 (TZSC1) *************/
19585 #define GTZC_CFGR3_MDF1_Pos                 (0U)
19586 #define GTZC_CFGR3_MDF1_Msk                 (0x01UL << GTZC_CFGR3_MDF1_Pos)
19587 #define GTZC_CFGR3_CORDIC_Pos               (1U)
19588 #define GTZC_CFGR3_CORDIC_Msk               (0x01UL << GTZC_CFGR3_CORDIC_Pos)
19589 #define GTZC_CFGR3_FMAC_Pos                 (2U)
19590 #define GTZC_CFGR3_FMAC_Msk                 (0x01UL << GTZC_CFGR3_FMAC_Pos)
19591 #define GTZC_CFGR3_CRC_Pos                  (3U)
19592 #define GTZC_CFGR3_CRC_Msk                  (0x01UL << GTZC_CFGR3_CRC_Pos)
19593 #define GTZC_CFGR3_TSC_Pos                  (4U)
19594 #define GTZC_CFGR3_TSC_Msk                  (0x01UL << GTZC_CFGR3_TSC_Pos)
19595 #define GTZC_CFGR3_DMA2D_Pos                (5U)
19596 #define GTZC_CFGR3_DMA2D_Msk                (0x01UL << GTZC_CFGR3_DMA2D_Pos)
19597 #define GTZC_CFGR3_ICACHE_REG_Pos           (6U)
19598 #define GTZC_CFGR3_ICACHE_REG_Msk           (0x01UL << GTZC_CFGR3_ICACHE_REG_Pos)
19599 #define GTZC_CFGR3_DCACHE1_REG_Pos          (7U)
19600 #define GTZC_CFGR3_DCACHE1_REG_Msk          (0x01UL << GTZC_CFGR3_DCACHE1_REG_Pos)
19601 #define GTZC_CFGR3_ADC12_Pos                (8U)
19602 #define GTZC_CFGR3_ADC12_Msk                (0x01UL << GTZC_CFGR3_ADC12_Pos)
19603 #define GTZC_CFGR3_DCMI_Pos                 (9U)
19604 #define GTZC_CFGR3_DCMI_Msk                 (0x01UL << GTZC_CFGR3_DCMI_Pos)
19605 #define GTZC_CFGR3_OTG_Pos                  (10U)
19606 #define GTZC_CFGR3_OTG_Msk                  (0x01UL << GTZC_CFGR3_OTG_Pos)
19607 #define GTZC_CFGR3_AES_Pos                  (11U)
19608 #define GTZC_CFGR3_AES_Msk                  (0x01UL << GTZC_CFGR3_AES_Pos)
19609 #define GTZC_CFGR3_HASH_Pos                 (12U)
19610 #define GTZC_CFGR3_HASH_Msk                 (0x01UL << GTZC_CFGR3_HASH_Pos)
19611 #define GTZC_CFGR3_RNG_Pos                  (13U)
19612 #define GTZC_CFGR3_RNG_Msk                  (0x01UL << GTZC_CFGR3_RNG_Pos)
19613 #define GTZC_CFGR3_PKA_Pos                  (14U)
19614 #define GTZC_CFGR3_PKA_Msk                  (0x01UL << GTZC_CFGR3_PKA_Pos)
19615 #define GTZC_CFGR3_SAES_Pos                 (15U)
19616 #define GTZC_CFGR3_SAES_Msk                 (0x01UL << GTZC_CFGR3_SAES_Pos)
19617 #define GTZC_CFGR3_OCTOSPIM_Pos             (16U)
19618 #define GTZC_CFGR3_OCTOSPIM_Msk             (0x01UL << GTZC_CFGR3_OCTOSPIM_Pos)
19619 #define GTZC_CFGR3_SDMMC1_Pos               (17U)
19620 #define GTZC_CFGR3_SDMMC1_Msk               (0x01UL << GTZC_CFGR3_SDMMC1_Pos)
19621 #define GTZC_CFGR3_SDMMC2_Pos               (18U)
19622 #define GTZC_CFGR3_SDMMC2_Msk               (0x01UL << GTZC_CFGR3_SDMMC2_Pos)
19623 #define GTZC_CFGR3_FSMC_REG_Pos             (19U)
19624 #define GTZC_CFGR3_FSMC_REG_Msk             (0x01UL << GTZC_CFGR3_FSMC_REG_Pos)
19625 #define GTZC_CFGR3_OCTOSPI1_REG_Pos         (20U)
19626 #define GTZC_CFGR3_OCTOSPI1_REG_Msk         (0x01UL << GTZC_CFGR3_OCTOSPI1_REG_Pos)
19627 #define GTZC_CFGR3_OCTOSPI2_REG_Pos         (21U)
19628 #define GTZC_CFGR3_OCTOSPI2_REG_Msk         (0x01UL << GTZC_CFGR3_OCTOSPI2_REG_Pos)
19629 #define GTZC_CFGR3_RAMCFG_Pos               (22U)
19630 #define GTZC_CFGR3_RAMCFG_Msk               (0x01UL << GTZC_CFGR3_RAMCFG_Pos)
19631 
19632 /***************  Bits definition for register x=4 (TZSC1) *************/
19633 #define GTZC_CFGR4_GPDMA1_Pos               (0U)
19634 #define GTZC_CFGR4_GPDMA1_Msk               (0x01UL << GTZC_CFGR4_GPDMA1_Pos)
19635 #define GTZC_CFGR4_FLASH_REG_Pos            (1U)
19636 #define GTZC_CFGR4_FLASH_REG_Msk            (0x01UL << GTZC_CFGR4_FLASH_REG_Pos)
19637 #define GTZC_CFGR4_FLASH_Pos                (2U)
19638 #define GTZC_CFGR4_FLASH_Msk                (0x01UL << GTZC_CFGR4_FLASH_Pos)
19639 #define GTZC_CFGR4_OTFDEC1_Pos              (3U)
19640 #define GTZC_CFGR4_OTFDEC1_Msk              (0x01UL << GTZC_CFGR4_OTFDEC1_Pos)
19641 #define GTZC_CFGR4_OTFDEC2_Pos              (4U)
19642 #define GTZC_CFGR4_OTFDEC2_Msk              (0x01UL << GTZC_CFGR4_OTFDEC2_Pos)
19643 #define GTZC_CFGR4_TZSC1_Pos                (14U)
19644 #define GTZC_CFGR4_TZSC1_Msk                (0x01UL << GTZC_CFGR4_TZSC1_Pos)
19645 #define GTZC_CFGR4_TZIC1_Pos                (15U)
19646 #define GTZC_CFGR4_TZIC1_Msk                (0x01UL << GTZC_CFGR4_TZIC1_Pos)
19647 #define GTZC_CFGR4_OCTOSPI1_MEM_Pos         (16U)
19648 #define GTZC_CFGR4_OCTOSPI1_MEM_Msk         (0x01UL << GTZC_CFGR4_OCTOSPI1_MEM_Pos)
19649 #define GTZC_CFGR4_FSMC_MEM_Pos             (17U)
19650 #define GTZC_CFGR4_FSMC_MEM_Msk             (0x01UL << GTZC_CFGR4_FSMC_MEM_Pos)
19651 #define GTZC_CFGR4_BKPSRAM_Pos              (18U)
19652 #define GTZC_CFGR4_BKPSRAM_Msk              (0x01UL << GTZC_CFGR4_BKPSRAM_Pos)
19653 #define GTZC_CFGR4_OCTOSPI2_MEM_Pos         (19U)
19654 #define GTZC_CFGR4_OCTOSPI2_MEM_Msk         (0x01UL << GTZC_CFGR4_OCTOSPI2_MEM_Pos)
19655 #define GTZC_CFGR4_SRAM1_Pos                (24U)
19656 #define GTZC_CFGR4_SRAM1_Msk                (0x01UL << GTZC_CFGR4_SRAM1_Pos)
19657 #define GTZC_CFGR4_MPCBB1_REG_Pos           (25U)
19658 #define GTZC_CFGR4_MPCBB1_REG_Msk           (0x01UL << GTZC_CFGR4_MPCBB1_REG_Pos)
19659 #define GTZC_CFGR4_SRAM2_Pos                (26U)
19660 #define GTZC_CFGR4_SRAM2_Msk                (0x01UL << GTZC_CFGR4_SRAM2_Pos)
19661 #define GTZC_CFGR4_MPCBB2_REG_Pos           (27U)
19662 #define GTZC_CFGR4_MPCBB2_REG_Msk           (0x01UL << GTZC_CFGR4_MPCBB2_REG_Pos)
19663 #define GTZC_CFGR4_SRAM3_Pos                (28U)
19664 #define GTZC_CFGR4_SRAM3_Msk                (0x01UL << GTZC_CFGR4_SRAM3_Pos)
19665 #define GTZC_CFGR4_MPCBB3_REG_Pos           (29U)
19666 #define GTZC_CFGR4_MPCBB3_REG_Msk           (0x01UL << GTZC_CFGR4_MPCBB3_REG_Pos)
19667 
19668 /***************  Bits definition for register x=1 (TZSC2) *************/
19669 #define GTZC_CFGR1_SPI3_Pos                 (0U)
19670 #define GTZC_CFGR1_SPI3_Msk                 (0x01UL << GTZC_CFGR1_SPI3_Pos)
19671 #define GTZC_CFGR1_LPUART1_Pos              (1U)
19672 #define GTZC_CFGR1_LPUART1_Msk              (0x01UL << GTZC_CFGR1_LPUART1_Pos)
19673 #define GTZC_CFGR1_I2C3_Pos                 (2U)
19674 #define GTZC_CFGR1_I2C3_Msk                 (0x01UL << GTZC_CFGR1_I2C3_Pos)
19675 #define GTZC_CFGR1_LPTIM1_Pos               (3U)
19676 #define GTZC_CFGR1_LPTIM1_Msk               (0x01UL << GTZC_CFGR1_LPTIM1_Pos)
19677 #define GTZC_CFGR1_LPTIM3_Pos               (4U)
19678 #define GTZC_CFGR1_LPTIM3_Msk               (0x01UL << GTZC_CFGR1_LPTIM3_Pos)
19679 #define GTZC_CFGR1_LPTIM4_Pos               (5U)
19680 #define GTZC_CFGR1_LPTIM4_Msk               (0x01UL << GTZC_CFGR1_LPTIM4_Pos)
19681 #define GTZC_CFGR1_OPAMP_Pos                (6U)
19682 #define GTZC_CFGR1_OPAMP_Msk                (0x01UL << GTZC_CFGR1_OPAMP_Pos)
19683 #define GTZC_CFGR1_COMP_Pos                 (7U)
19684 #define GTZC_CFGR1_COMP_Msk                 (0x01UL << GTZC_CFGR1_COMP_Pos)
19685 #define GTZC_CFGR1_ADC4_Pos                 (8U)
19686 #define GTZC_CFGR1_ADC4_Msk                 (0x01UL << GTZC_CFGR1_ADC4_Pos)
19687 #define GTZC_CFGR1_VREFBUF_Pos              (9U)
19688 #define GTZC_CFGR1_VREFBUF_Msk              (0x01UL << GTZC_CFGR1_VREFBUF_Pos)
19689 #define GTZC_CFGR1_DAC1_Pos                 (11U)
19690 #define GTZC_CFGR1_DAC1_Msk                 (0x01UL << GTZC_CFGR1_DAC1_Pos)
19691 #define GTZC_CFGR1_ADF1_Pos                 (12U)
19692 #define GTZC_CFGR1_ADF1_Msk                 (0x01UL << GTZC_CFGR1_ADF1_Pos)
19693 
19694 /***************  Bits definition for register x=2 (TZSC2) *************/
19695 #define GTZC_CFGR2_SYSCFG_Pos               (0U)
19696 #define GTZC_CFGR2_SYSCFG_Msk               (0x01UL << GTZC_CFGR2_SYSCFG_Pos)
19697 #define GTZC_CFGR2_RTC_Pos                  (1U)
19698 #define GTZC_CFGR2_RTC_Msk                  (0x01UL << GTZC_CFGR2_RTC_Pos)
19699 #define GTZC_CFGR2_TAMP_Pos                 (2U)
19700 #define GTZC_CFGR2_TAMP_Msk                 (0x01UL << GTZC_CFGR2_TAMP_Pos)
19701 #define GTZC_CFGR2_PWR_Pos                  (3U)
19702 #define GTZC_CFGR2_PWR_Msk                  (0x01UL << GTZC_CFGR2_PWR_Pos)
19703 #define GTZC_CFGR2_RCC_Pos                  (4U)
19704 #define GTZC_CFGR2_RCC_Msk                  (0x01UL << GTZC_CFGR2_RCC_Pos)
19705 #define GTZC_CFGR2_LPDMA1_Pos               (5U)
19706 #define GTZC_CFGR2_LPDMA1_Msk               (0x01UL << GTZC_CFGR2_LPDMA1_Pos)
19707 #define GTZC_CFGR2_EXTI_Pos                 (6U)
19708 #define GTZC_CFGR2_EXTI_Msk                 (0x01UL << GTZC_CFGR2_EXTI_Pos)
19709 #define GTZC_CFGR2_TZSC2_Pos                (14U)
19710 #define GTZC_CFGR2_TZSC2_Msk                (0x01UL << GTZC_CFGR2_TZSC2_Pos)
19711 #define GTZC_CFGR2_TZIC2_Pos                (15U)
19712 #define GTZC_CFGR2_TZIC2_Msk                (0x01UL << GTZC_CFGR2_TZIC2_Pos)
19713 #define GTZC_CFGR2_SRAM4_Pos                (24U)
19714 #define GTZC_CFGR2_SRAM4_Msk                (0x01UL << GTZC_CFGR2_SRAM4_Pos)
19715 #define GTZC_CFGR2_MPCBB4_REG_Pos           (25U)
19716 #define GTZC_CFGR2_MPCBB4_REG_Msk           (0x01UL << GTZC_CFGR2_MPCBB4_REG_Pos)
19717 
19718 /*******************  Bits definition for GTZC_TZSC1_SECCFGR1 register  ***************/
19719 #define GTZC_TZSC1_SECCFGR1_TIM2_Pos            GTZC_CFGR1_TIM2_Pos
19720 #define GTZC_TZSC1_SECCFGR1_TIM2_Msk            GTZC_CFGR1_TIM2_Msk
19721 #define GTZC_TZSC1_SECCFGR1_TIM3_Pos            GTZC_CFGR1_TIM3_Pos
19722 #define GTZC_TZSC1_SECCFGR1_TIM3_Msk            GTZC_CFGR1_TIM3_Msk
19723 #define GTZC_TZSC1_SECCFGR1_TIM4_Pos            GTZC_CFGR1_TIM4_Pos
19724 #define GTZC_TZSC1_SECCFGR1_TIM4_Msk            GTZC_CFGR1_TIM4_Msk
19725 #define GTZC_TZSC1_SECCFGR1_TIM5_Pos            GTZC_CFGR1_TIM5_Pos
19726 #define GTZC_TZSC1_SECCFGR1_TIM5_Msk            GTZC_CFGR1_TIM5_Msk
19727 #define GTZC_TZSC1_SECCFGR1_TIM6_Pos            GTZC_CFGR1_TIM6_Pos
19728 #define GTZC_TZSC1_SECCFGR1_TIM6_Msk            GTZC_CFGR1_TIM6_Msk
19729 #define GTZC_TZSC1_SECCFGR1_TIM7_Pos            GTZC_CFGR1_TIM7_Pos
19730 #define GTZC_TZSC1_SECCFGR1_TIM7_Msk            GTZC_CFGR1_TIM7_Msk
19731 #define GTZC_TZSC1_SECCFGR1_WWDG_Pos            GTZC_CFGR1_WWDG_Pos
19732 #define GTZC_TZSC1_SECCFGR1_WWDG_Msk            GTZC_CFGR1_WWDG_Msk
19733 #define GTZC_TZSC1_SECCFGR1_IWDG_Pos            GTZC_CFGR1_IWDG_Pos
19734 #define GTZC_TZSC1_SECCFGR1_IWDG_Msk            GTZC_CFGR1_IWDG_Msk
19735 #define GTZC_TZSC1_SECCFGR1_SPI2_Pos            GTZC_CFGR1_SPI2_Pos
19736 #define GTZC_TZSC1_SECCFGR1_SPI2_Msk            GTZC_CFGR1_SPI2_Msk
19737 #define GTZC_TZSC1_SECCFGR1_USART2_Pos          GTZC_CFGR1_USART2_Pos
19738 #define GTZC_TZSC1_SECCFGR1_USART2_Msk          GTZC_CFGR1_USART2_Msk
19739 #define GTZC_TZSC1_SECCFGR1_USART3_Pos          GTZC_CFGR1_USART3_Pos
19740 #define GTZC_TZSC1_SECCFGR1_USART3_Msk          GTZC_CFGR1_USART3_Msk
19741 #define GTZC_TZSC1_SECCFGR1_UART4_Pos           GTZC_CFGR1_UART4_Pos
19742 #define GTZC_TZSC1_SECCFGR1_UART4_Msk           GTZC_CFGR1_UART4_Msk
19743 #define GTZC_TZSC1_SECCFGR1_UART5_Pos           GTZC_CFGR1_UART5_Pos
19744 #define GTZC_TZSC1_SECCFGR1_UART5_Msk           GTZC_CFGR1_UART5_Msk
19745 #define GTZC_TZSC1_SECCFGR1_I2C1_Pos            GTZC_CFGR1_I2C1_Pos
19746 #define GTZC_TZSC1_SECCFGR1_I2C1_Msk            GTZC_CFGR1_I2C1_Msk
19747 #define GTZC_TZSC1_SECCFGR1_I2C2_Pos            GTZC_CFGR1_I2C2_Pos
19748 #define GTZC_TZSC1_SECCFGR1_I2C2_Msk            GTZC_CFGR1_I2C2_Msk
19749 #define GTZC_TZSC1_SECCFGR1_CRS_Pos             GTZC_CFGR1_CRS_Pos
19750 #define GTZC_TZSC1_SECCFGR1_CRS_Msk             GTZC_CFGR1_CRS_Msk
19751 #define GTZC_TZSC1_SECCFGR1_I2C4_Pos            GTZC_CFGR1_I2C4_Pos
19752 #define GTZC_TZSC1_SECCFGR1_I2C4_Msk            GTZC_CFGR1_I2C4_Msk
19753 #define GTZC_TZSC1_SECCFGR1_LPTIM2_Pos          GTZC_CFGR1_LPTIM2_Pos
19754 #define GTZC_TZSC1_SECCFGR1_LPTIM2_Msk          GTZC_CFGR1_LPTIM2_Msk
19755 #define GTZC_TZSC1_SECCFGR1_FDCAN1_Pos          GTZC_CFGR1_FDCAN1_Pos
19756 #define GTZC_TZSC1_SECCFGR1_FDCAN1_Msk          GTZC_CFGR1_FDCAN1_Msk
19757 #define GTZC_TZSC1_SECCFGR1_UCPD1_Pos           GTZC_CFGR1_UCPD1_Pos
19758 #define GTZC_TZSC1_SECCFGR1_UCPD1_Msk           GTZC_CFGR1_UCPD1_Msk
19759 
19760 /*******************  Bits definition for GTZC_TZSC1_SECCFGR2 register  ***************/
19761 #define GTZC_TZSC1_SECCFGR2_TIM1_Pos            GTZC_CFGR2_TIM1_Pos
19762 #define GTZC_TZSC1_SECCFGR2_TIM1_Msk            GTZC_CFGR2_TIM1_Msk
19763 #define GTZC_TZSC1_SECCFGR2_SPI1_Pos            GTZC_CFGR2_SPI1_Pos
19764 #define GTZC_TZSC1_SECCFGR2_SPI1_Msk            GTZC_CFGR2_SPI1_Msk
19765 #define GTZC_TZSC1_SECCFGR2_TIM8_Pos            GTZC_CFGR2_TIM8_Pos
19766 #define GTZC_TZSC1_SECCFGR2_TIM8_Msk            GTZC_CFGR2_TIM8_Msk
19767 #define GTZC_TZSC1_SECCFGR2_USART1_Pos          GTZC_CFGR2_USART1_Pos
19768 #define GTZC_TZSC1_SECCFGR2_USART1_Msk          GTZC_CFGR2_USART1_Msk
19769 #define GTZC_TZSC1_SECCFGR2_TIM15_Pos           GTZC_CFGR2_TIM15_Pos
19770 #define GTZC_TZSC1_SECCFGR2_TIM15_Msk           GTZC_CFGR2_TIM15_Msk
19771 #define GTZC_TZSC1_SECCFGR2_TIM16_Pos           GTZC_CFGR2_TIM16_Pos
19772 #define GTZC_TZSC1_SECCFGR2_TIM16_Msk           GTZC_CFGR2_TIM16_Msk
19773 #define GTZC_TZSC1_SECCFGR2_TIM17_Pos           GTZC_CFGR2_TIM17_Pos
19774 #define GTZC_TZSC1_SECCFGR2_TIM17_Msk           GTZC_CFGR2_TIM17_Msk
19775 #define GTZC_TZSC1_SECCFGR2_SAI1_Pos            GTZC_CFGR2_SAI1_Pos
19776 #define GTZC_TZSC1_SECCFGR2_SAI1_Msk            GTZC_CFGR2_SAI1_Msk
19777 #define GTZC_TZSC1_SECCFGR2_SAI2_Pos            GTZC_CFGR2_SAI2_Pos
19778 #define GTZC_TZSC1_SECCFGR2_SAI2_Msk            GTZC_CFGR2_SAI2_Msk
19779 
19780 /*******************  Bits definition for GTZC_TZSC1_SECCFGR3 register  ***************/
19781 #define GTZC_TZSC1_SECCFGR3_MDF1_Pos            GTZC_CFGR3_MDF1_Pos
19782 #define GTZC_TZSC1_SECCFGR3_MDF1_Msk            GTZC_CFGR3_MDF1_Msk
19783 #define GTZC_TZSC1_SECCFGR3_CORDIC_Pos          GTZC_CFGR3_CORDIC_Pos
19784 #define GTZC_TZSC1_SECCFGR3_CORDIC_Msk          GTZC_CFGR3_CORDIC_Msk
19785 #define GTZC_TZSC1_SECCFGR3_FMAC_Pos            GTZC_CFGR3_FMAC_Pos
19786 #define GTZC_TZSC1_SECCFGR3_FMAC_Msk            GTZC_CFGR3_FMAC_Msk
19787 #define GTZC_TZSC1_SECCFGR3_CRC_Pos             GTZC_CFGR3_CRC_Pos
19788 #define GTZC_TZSC1_SECCFGR3_CRC_Msk             GTZC_CFGR3_CRC_Msk
19789 #define GTZC_TZSC1_SECCFGR3_TSC_Pos             GTZC_CFGR3_TSC_Pos
19790 #define GTZC_TZSC1_SECCFGR3_TSC_Msk             GTZC_CFGR3_TSC_Msk
19791 #define GTZC_TZSC1_SECCFGR3_DMA2D_Pos           GTZC_CFGR3_DMA2D_Pos
19792 #define GTZC_TZSC1_SECCFGR3_DMA2D_Msk           GTZC_CFGR3_DMA2D_Msk
19793 #define GTZC_TZSC1_SECCFGR3_ICACHE_REG_Pos      GTZC_CFGR3_ICACHE_REG_Pos
19794 #define GTZC_TZSC1_SECCFGR3_ICACHE_REG_Msk      GTZC_CFGR3_ICACHE_REG_Msk
19795 #define GTZC_TZSC1_SECCFGR3_DCACHE1_REG_Pos     GTZC_CFGR3_DCACHE1_REG_Pos
19796 #define GTZC_TZSC1_SECCFGR3_DCACHE1_REG_Msk     GTZC_CFGR3_DCACHE1_REG_Msk
19797 #define GTZC_TZSC1_SECCFGR3_ADC12_Pos           GTZC_CFGR3_ADC12_Pos
19798 #define GTZC_TZSC1_SECCFGR3_ADC12_Msk           GTZC_CFGR3_ADC12_Msk
19799 #define GTZC_TZSC1_SECCFGR3_DCMI_Pos            GTZC_CFGR3_DCMI_Pos
19800 #define GTZC_TZSC1_SECCFGR3_DCMI_Msk            GTZC_CFGR3_DCMI_Msk
19801 #define GTZC_TZSC1_SECCFGR3_OTG_Pos             GTZC_CFGR3_OTG_Pos
19802 #define GTZC_TZSC1_SECCFGR3_OTG_Msk             GTZC_CFGR3_OTG_Msk
19803 #define GTZC_TZSC1_SECCFGR3_AES_Pos             GTZC_CFGR3_AES_Pos
19804 #define GTZC_TZSC1_SECCFGR3_AES_Msk             GTZC_CFGR3_AES_Msk
19805 #define GTZC_TZSC1_SECCFGR3_HASH_Pos            GTZC_CFGR3_HASH_Pos
19806 #define GTZC_TZSC1_SECCFGR3_HASH_Msk            GTZC_CFGR3_HASH_Msk
19807 #define GTZC_TZSC1_SECCFGR3_RNG_Pos             GTZC_CFGR3_RNG_Pos
19808 #define GTZC_TZSC1_SECCFGR3_RNG_Msk             GTZC_CFGR3_RNG_Msk
19809 #define GTZC_TZSC1_SECCFGR3_PKA_Pos             GTZC_CFGR3_PKA_Pos
19810 #define GTZC_TZSC1_SECCFGR3_PKA_Msk             GTZC_CFGR3_PKA_Msk
19811 #define GTZC_TZSC1_SECCFGR3_SAES_Pos            GTZC_CFGR3_SAES_Pos
19812 #define GTZC_TZSC1_SECCFGR3_SAES_Msk            GTZC_CFGR3_SAES_Msk
19813 #define GTZC_TZSC1_SECCFGR3_OCTOSPIM_Pos        GTZC_CFGR3_OCTOSPIM_Pos
19814 #define GTZC_TZSC1_SECCFGR3_OCTOSPIM_Msk        GTZC_CFGR3_OCTOSPIM_Msk
19815 #define GTZC_TZSC1_SECCFGR3_SDMMC1_Pos          GTZC_CFGR3_SDMMC1_Pos
19816 #define GTZC_TZSC1_SECCFGR3_SDMMC1_Msk          GTZC_CFGR3_SDMMC1_Msk
19817 #define GTZC_TZSC1_SECCFGR3_SDMMC2_Pos          GTZC_CFGR3_SDMMC2_Pos
19818 #define GTZC_TZSC1_SECCFGR3_SDMMC2_Msk          GTZC_CFGR3_SDMMC2_Msk
19819 #define GTZC_TZSC1_SECCFGR3_FSMC_REG_Pos        GTZC_CFGR3_FSMC_REG_Pos
19820 #define GTZC_TZSC1_SECCFGR3_FSMC_REG_Msk        GTZC_CFGR3_FSMC_REG_Msk
19821 #define GTZC_TZSC1_SECCFGR3_OCTOSPI1_REG_Pos    GTZC_CFGR3_OCTOSPI1_REG_Pos
19822 #define GTZC_TZSC1_SECCFGR3_OCTOSPI1_REG_Msk    GTZC_CFGR3_OCTOSPI1_REG_Msk
19823 #define GTZC_TZSC1_SECCFGR3_OCTOSPI2_REG_Pos    GTZC_CFGR3_OCTOSPI2_REG_Pos
19824 #define GTZC_TZSC1_SECCFGR3_OCTOSPI2_REG_Msk    GTZC_CFGR3_OCTOSPI2_REG_Msk
19825 #define GTZC_TZSC1_SECCFGR3_RAMCFG_Pos          GTZC_CFGR3_RAMCFG_Pos
19826 #define GTZC_TZSC1_SECCFGR3_RAMCFG_Msk          GTZC_CFGR3_RAMCFG_Msk
19827 
19828 /*******************  Bits definition for GTZC_TZSC2_SECCFGR1 register  ***************/
19829 #define GTZC_TZSC2_SECCFGR1_SPI3_Pos            GTZC_CFGR1_SPI3_Pos
19830 #define GTZC_TZSC2_SECCFGR1_SPI3_Msk            GTZC_CFGR1_SPI3_Msk
19831 #define GTZC_TZSC2_SECCFGR1_LPUART1_Pos         GTZC_CFGR1_LPUART1_Pos
19832 #define GTZC_TZSC2_SECCFGR1_LPUART1_Msk         GTZC_CFGR1_LPUART1_Msk
19833 #define GTZC_TZSC2_SECCFGR1_I2C3_Pos            GTZC_CFGR1_I2C3_Pos
19834 #define GTZC_TZSC2_SECCFGR1_I2C3_Msk            GTZC_CFGR1_I2C3_Msk
19835 #define GTZC_TZSC2_SECCFGR1_LPTIM1_Pos          GTZC_CFGR1_LPTIM1_Pos
19836 #define GTZC_TZSC2_SECCFGR1_LPTIM1_Msk          GTZC_CFGR1_LPTIM1_Msk
19837 #define GTZC_TZSC2_SECCFGR1_LPTIM3_Pos          GTZC_CFGR1_LPTIM3_Pos
19838 #define GTZC_TZSC2_SECCFGR1_LPTIM3_Msk          GTZC_CFGR1_LPTIM3_Msk
19839 #define GTZC_TZSC2_SECCFGR1_LPTIM4_Pos          GTZC_CFGR1_LPTIM4_Pos
19840 #define GTZC_TZSC2_SECCFGR1_LPTIM4_Msk          GTZC_CFGR1_LPTIM4_Msk
19841 #define GTZC_TZSC2_SECCFGR1_OPAMP_Pos           GTZC_CFGR1_OPAMP_Pos
19842 #define GTZC_TZSC2_SECCFGR1_OPAMP_Msk           GTZC_CFGR1_OPAMP_Msk
19843 #define GTZC_TZSC2_SECCFGR1_COMP_Pos            GTZC_CFGR1_COMP_Pos
19844 #define GTZC_TZSC2_SECCFGR1_COMP_Msk            GTZC_CFGR1_COMP_Msk
19845 #define GTZC_TZSC2_SECCFGR1_ADC4_Pos            GTZC_CFGR1_ADC4_Pos
19846 #define GTZC_TZSC2_SECCFGR1_ADC4_Msk            GTZC_CFGR1_ADC4_Msk
19847 #define GTZC_TZSC2_SECCFGR1_VREFBUF_Pos         GTZC_CFGR1_VREFBUF_Pos
19848 #define GTZC_TZSC2_SECCFGR1_VREFBUF_Msk         GTZC_CFGR1_VREFBUF_Msk
19849 #define GTZC_TZSC2_SECCFGR1_DAC1_Pos            GTZC_CFGR1_DAC1_Pos
19850 #define GTZC_TZSC2_SECCFGR1_DAC1_Msk            GTZC_CFGR1_DAC1_Msk
19851 #define GTZC_TZSC2_SECCFGR1_ADF1_Pos            GTZC_CFGR1_ADF1_Pos
19852 #define GTZC_TZSC2_SECCFGR1_ADF1_Msk            GTZC_CFGR1_ADF1_Msk
19853 
19854 /*******************  Bits definition for GTZC_TZSC1_PRIVCFGR1 register  ***************/
19855 #define GTZC_TZSC1_PRIVCFGR1_TIM2_Pos           GTZC_CFGR1_TIM2_Pos
19856 #define GTZC_TZSC1_PRIVCFGR1_TIM2_Msk           GTZC_CFGR1_TIM2_Msk
19857 #define GTZC_TZSC1_PRIVCFGR1_TIM3_Pos           GTZC_CFGR1_TIM3_Pos
19858 #define GTZC_TZSC1_PRIVCFGR1_TIM3_Msk           GTZC_CFGR1_TIM3_Msk
19859 #define GTZC_TZSC1_PRIVCFGR1_TIM4_Pos           GTZC_CFGR1_TIM4_Pos
19860 #define GTZC_TZSC1_PRIVCFGR1_TIM4_Msk           GTZC_CFGR1_TIM4_Msk
19861 #define GTZC_TZSC1_PRIVCFGR1_TIM5_Pos           GTZC_CFGR1_TIM5_Pos
19862 #define GTZC_TZSC1_PRIVCFGR1_TIM5_Msk           GTZC_CFGR1_TIM5_Msk
19863 #define GTZC_TZSC1_PRIVCFGR1_TIM6_Pos           GTZC_CFGR1_TIM6_Pos
19864 #define GTZC_TZSC1_PRIVCFGR1_TIM6_Msk           GTZC_CFGR1_TIM6_Msk
19865 #define GTZC_TZSC1_PRIVCFGR1_TIM7_Pos           GTZC_CFGR1_TIM7_Pos
19866 #define GTZC_TZSC1_PRIVCFGR1_TIM7_Msk           GTZC_CFGR1_TIM7_Msk
19867 #define GTZC_TZSC1_PRIVCFGR1_WWDG_Pos           GTZC_CFGR1_WWDG_Pos
19868 #define GTZC_TZSC1_PRIVCFGR1_WWDG_Msk           GTZC_CFGR1_WWDG_Msk
19869 #define GTZC_TZSC1_PRIVCFGR1_IWDG_Pos           GTZC_CFGR1_IWDG_Pos
19870 #define GTZC_TZSC1_PRIVCFGR1_IWDG_Msk           GTZC_CFGR1_IWDG_Msk
19871 #define GTZC_TZSC1_PRIVCFGR1_SPI2_Pos           GTZC_CFGR1_SPI2_Pos
19872 #define GTZC_TZSC1_PRIVCFGR1_SPI2_Msk           GTZC_CFGR1_SPI2_Msk
19873 #define GTZC_TZSC1_PRIVCFGR1_USART2_Pos         GTZC_CFGR1_USART2_Pos
19874 #define GTZC_TZSC1_PRIVCFGR1_USART2_Msk         GTZC_CFGR1_USART2_Msk
19875 #define GTZC_TZSC1_PRIVCFGR1_USART3_Pos         GTZC_CFGR1_USART3_Pos
19876 #define GTZC_TZSC1_PRIVCFGR1_USART3_Msk         GTZC_CFGR1_USART3_Msk
19877 #define GTZC_TZSC1_PRIVCFGR1_UART4_Pos          GTZC_CFGR1_UART4_Pos
19878 #define GTZC_TZSC1_PRIVCFGR1_UART4_Msk          GTZC_CFGR1_UART4_Msk
19879 #define GTZC_TZSC1_PRIVCFGR1_UART5_Pos          GTZC_CFGR1_UART5_Pos
19880 #define GTZC_TZSC1_PRIVCFGR1_UART5_Msk          GTZC_CFGR1_UART5_Msk
19881 #define GTZC_TZSC1_PRIVCFGR1_I2C1_Pos           GTZC_CFGR1_I2C1_Pos
19882 #define GTZC_TZSC1_PRIVCFGR1_I2C1_Msk           GTZC_CFGR1_I2C1_Msk
19883 #define GTZC_TZSC1_PRIVCFGR1_I2C2_Pos           GTZC_CFGR1_I2C2_Pos
19884 #define GTZC_TZSC1_PRIVCFGR1_I2C2_Msk           GTZC_CFGR1_I2C2_Msk
19885 #define GTZC_TZSC1_PRIVCFGR1_CRS_Pos            GTZC_CFGR1_CRS_Pos
19886 #define GTZC_TZSC1_PRIVCFGR1_CRS_Msk            GTZC_CFGR1_CRS_Msk
19887 #define GTZC_TZSC1_PRIVCFGR1_I2C4_Pos           GTZC_CFGR1_I2C4_Pos
19888 #define GTZC_TZSC1_PRIVCFGR1_I2C4_Msk           GTZC_CFGR1_I2C4_Msk
19889 #define GTZC_TZSC1_PRIVCFGR1_LPTIM2_Pos         GTZC_CFGR1_LPTIM2_Pos
19890 #define GTZC_TZSC1_PRIVCFGR1_LPTIM2_Msk         GTZC_CFGR1_LPTIM2_Msk
19891 #define GTZC_TZSC1_PRIVCFGR1_FDCAN1_Pos         GTZC_CFGR1_FDCAN1_Pos
19892 #define GTZC_TZSC1_PRIVCFGR1_FDCAN1_Msk         GTZC_CFGR1_FDCAN1_Msk
19893 #define GTZC_TZSC1_PRIVCFGR1_UCPD1_Pos          GTZC_CFGR1_UCPD1_Pos
19894 #define GTZC_TZSC1_PRIVCFGR1_UCPD1_Msk          GTZC_CFGR1_UCPD1_Msk
19895 
19896 /*******************  Bits definition for GTZC_TZSC1_PRIVCFGR2 register  ***************/
19897 #define GTZC_TZSC1_PRIVCFGR2_TIM1_Pos           GTZC_CFGR2_TIM1_Pos
19898 #define GTZC_TZSC1_PRIVCFGR2_TIM1_Msk           GTZC_CFGR2_TIM1_Msk
19899 #define GTZC_TZSC1_PRIVCFGR2_SPI1_Pos           GTZC_CFGR2_SPI1_Pos
19900 #define GTZC_TZSC1_PRIVCFGR2_SPI1_Msk           GTZC_CFGR2_SPI1_Msk
19901 #define GTZC_TZSC1_PRIVCFGR2_TIM8_Pos           GTZC_CFGR2_TIM8_Pos
19902 #define GTZC_TZSC1_PRIVCFGR2_TIM8_Msk           GTZC_CFGR2_TIM8_Msk
19903 #define GTZC_TZSC1_PRIVCFGR2_USART1_Pos         GTZC_CFGR2_USART1_Pos
19904 #define GTZC_TZSC1_PRIVCFGR2_USART1_Msk         GTZC_CFGR2_USART1_Msk
19905 #define GTZC_TZSC1_PRIVCFGR2_TIM15_Pos          GTZC_CFGR2_TIM15_Pos
19906 #define GTZC_TZSC1_PRIVCFGR2_TIM15_Msk          GTZC_CFGR2_TIM15_Msk
19907 #define GTZC_TZSC1_PRIVCFGR2_TIM16_Pos          GTZC_CFGR2_TIM16_Pos
19908 #define GTZC_TZSC1_PRIVCFGR2_TIM16_Msk          GTZC_CFGR2_TIM16_Msk
19909 #define GTZC_TZSC1_PRIVCFGR2_TIM17_Pos          GTZC_CFGR2_TIM17_Pos
19910 #define GTZC_TZSC1_PRIVCFGR2_TIM17_Msk          GTZC_CFGR2_TIM17_Msk
19911 #define GTZC_TZSC1_PRIVCFGR2_SAI1_Pos           GTZC_CFGR2_SAI1_Pos
19912 #define GTZC_TZSC1_PRIVCFGR2_SAI1_Msk           GTZC_CFGR2_SAI1_Msk
19913 #define GTZC_TZSC1_PRIVCFGR2_SAI2_Pos           GTZC_CFGR2_SAI2_Pos
19914 #define GTZC_TZSC1_PRIVCFGR2_SAI2_Msk           GTZC_CFGR2_SAI2_Msk
19915 
19916 /*******************  Bits definition for GTZC_TZSC1_PRIVCFGR3 register  ***************/
19917 #define GTZC_TZSC1_PRIVCFGR3_MDF1_Pos           GTZC_CFGR3_MDF1_Pos
19918 #define GTZC_TZSC1_PRIVCFGR3_MDF1_Msk           GTZC_CFGR3_MDF1_Msk
19919 #define GTZC_TZSC1_PRIVCFGR3_CORDIC_Pos         GTZC_CFGR3_CORDIC_Pos
19920 #define GTZC_TZSC1_PRIVCFGR3_CORDIC_Msk         GTZC_CFGR3_CORDIC_Msk
19921 #define GTZC_TZSC1_PRIVCFGR3_FMAC_Pos           GTZC_CFGR3_FMAC_Pos
19922 #define GTZC_TZSC1_PRIVCFGR3_FMAC_Msk           GTZC_CFGR3_FMAC_Msk
19923 #define GTZC_TZSC1_PRIVCFGR3_CRC_Pos            GTZC_CFGR3_CRC_Pos
19924 #define GTZC_TZSC1_PRIVCFGR3_CRC_Msk            GTZC_CFGR3_CRC_Msk
19925 #define GTZC_TZSC1_PRIVCFGR3_TSC_Pos            GTZC_CFGR3_TSC_Pos
19926 #define GTZC_TZSC1_PRIVCFGR3_TSC_Msk            GTZC_CFGR3_TSC_Msk
19927 #define GTZC_TZSC1_PRIVCFGR3_DMA2D_Pos          GTZC_CFGR3_DMA2D_Pos
19928 #define GTZC_TZSC1_PRIVCFGR3_DMA2D_Msk          GTZC_CFGR3_DMA2D_Msk
19929 #define GTZC_TZSC1_PRIVCFGR3_ICACHE_REG_Pos     GTZC_CFGR3_ICACHE_REG_Pos
19930 #define GTZC_TZSC1_PRIVCFGR3_ICACHE_REG_Msk     GTZC_CFGR3_ICACHE_REG_Msk
19931 #define GTZC_TZSC1_PRIVCFGR3_DCACHE1_REG_Pos    GTZC_CFGR3_DCACHE1_REG_Pos
19932 #define GTZC_TZSC1_PRIVCFGR3_DCACHE1_REG_Msk    GTZC_CFGR3_DCACHE1_REG_Msk
19933 #define GTZC_TZSC1_PRIVCFGR3_ADC12_Pos          GTZC_CFGR3_ADC12_Pos
19934 #define GTZC_TZSC1_PRIVCFGR3_ADC12_Msk          GTZC_CFGR3_ADC12_Msk
19935 #define GTZC_TZSC1_PRIVCFGR3_DCMI_Pos           GTZC_CFGR3_DCMI_Pos
19936 #define GTZC_TZSC1_PRIVCFGR3_DCMI_Msk           GTZC_CFGR3_DCMI_Msk
19937 #define GTZC_TZSC1_PRIVCFGR3_OTG_Pos            GTZC_CFGR3_OTG_Pos
19938 #define GTZC_TZSC1_PRIVCFGR3_OTG_Msk            GTZC_CFGR3_OTG_Msk
19939 #define GTZC_TZSC1_PRIVCFGR3_AES_Pos            GTZC_CFGR3_AES_Pos
19940 #define GTZC_TZSC1_PRIVCFGR3_AES_Msk            GTZC_CFGR3_AES_Msk
19941 #define GTZC_TZSC1_PRIVCFGR3_HASH_Pos           GTZC_CFGR3_HASH_Pos
19942 #define GTZC_TZSC1_PRIVCFGR3_HASH_Msk           GTZC_CFGR3_HASH_Msk
19943 #define GTZC_TZSC1_PRIVCFGR3_RNG_Pos            GTZC_CFGR3_RNG_Pos
19944 #define GTZC_TZSC1_PRIVCFGR3_RNG_Msk            GTZC_CFGR3_RNG_Msk
19945 #define GTZC_TZSC1_PRIVCFGR3_PKA_Pos            GTZC_CFGR3_PKA_Pos
19946 #define GTZC_TZSC1_PRIVCFGR3_PKA_Msk            GTZC_CFGR3_PKA_Msk
19947 #define GTZC_TZSC1_PRIVCFGR3_SAES_Pos           GTZC_CFGR3_SAES_Pos
19948 #define GTZC_TZSC1_PRIVCFGR3_SAES_Msk           GTZC_CFGR3_SAES_Msk
19949 #define GTZC_TZSC1_PRIVCFGR3_OCTOSPIM_Pos       GTZC_CFGR3_OCTOSPIM_Pos
19950 #define GTZC_TZSC1_PRIVCFGR3_OCTOSPIM_Msk       GTZC_CFGR3_OCTOSPIM_Msk
19951 #define GTZC_TZSC1_PRIVCFGR3_SDMMC1_Pos         GTZC_CFGR3_SDMMC1_Pos
19952 #define GTZC_TZSC1_PRIVCFGR3_SDMMC1_Msk         GTZC_CFGR3_SDMMC1_Msk
19953 #define GTZC_TZSC1_PRIVCFGR3_SDMMC2_Pos         GTZC_CFGR3_SDMMC2_Pos
19954 #define GTZC_TZSC1_PRIVCFGR3_SDMMC2_Msk         GTZC_CFGR3_SDMMC2_Msk
19955 #define GTZC_TZSC1_PRIVCFGR3_FSMC_REG_Pos       GTZC_CFGR3_FSMC_REG_Pos
19956 #define GTZC_TZSC1_PRIVCFGR3_FSMC_REG_Msk       GTZC_CFGR3_FSMC_REG_Msk
19957 #define GTZC_TZSC1_PRIVCFGR3_OCTOSPI1_REG_Pos   GTZC_CFGR3_OCTOSPI1_REG_Pos
19958 #define GTZC_TZSC1_PRIVCFGR3_OCTOSPI1_REG_Msk   GTZC_CFGR3_OCTOSPI1_REG_Msk
19959 #define GTZC_TZSC1_PRIVCFGR3_OCTOSPI2_REG_Pos   GTZC_CFGR3_OCTOSPI2_REG_Pos
19960 #define GTZC_TZSC1_PRIVCFGR3_OCTOSPI2_REG_Msk   GTZC_CFGR3_OCTOSPI2_REG_Msk
19961 #define GTZC_TZSC1_PRIVCFGR3_RAMCFG_Pos         GTZC_CFGR3_RAMCFG_Pos
19962 #define GTZC_TZSC1_PRIVCFGR3_RAMCFG_Msk         GTZC_CFGR3_RAMCFG_Msk
19963 
19964 /*******************  Bits definition for GTZC_TZSC2_SECCFGR1 register  ***************/
19965 #define GTZC_TZSC2_PRIVCFGR1_SPI3_Pos           GTZC_CFGR1_SPI3_Pos
19966 #define GTZC_TZSC2_PRIVCFGR1_SPI3_Msk           GTZC_CFGR1_SPI3_Msk
19967 #define GTZC_TZSC2_PRIVCFGR1_LPUART1_Pos        GTZC_CFGR1_LPUART1_Pos
19968 #define GTZC_TZSC2_PRIVCFGR1_LPUART1_Msk        GTZC_CFGR1_LPUART1_Msk
19969 #define GTZC_TZSC2_PRIVCFGR1_I2C3_Pos           GTZC_CFGR1_I2C3_Pos
19970 #define GTZC_TZSC2_PRIVCFGR1_I2C3_Msk           GTZC_CFGR1_I2C3_Msk
19971 #define GTZC_TZSC2_PRIVCFGR1_LPTIM1_Pos         GTZC_CFGR1_LPTIM1_Pos
19972 #define GTZC_TZSC2_PRIVCFGR1_LPTIM1_Msk         GTZC_CFGR1_LPTIM1_Msk
19973 #define GTZC_TZSC2_PRIVCFGR1_LPTIM3_Pos         GTZC_CFGR1_LPTIM3_Pos
19974 #define GTZC_TZSC2_PRIVCFGR1_LPTIM3_Msk         GTZC_CFGR1_LPTIM3_Msk
19975 #define GTZC_TZSC2_PRIVCFGR1_LPTIM4_Pos         GTZC_CFGR1_LPTIM4_Pos
19976 #define GTZC_TZSC2_PRIVCFGR1_LPTIM4_Msk         GTZC_CFGR1_LPTIM4_Msk
19977 #define GTZC_TZSC2_PRIVCFGR1_OPAMP_Pos          GTZC_CFGR1_OPAMP_Pos
19978 #define GTZC_TZSC2_PRIVCFGR1_OPAMP_Msk          GTZC_CFGR1_OPAMP_Msk
19979 #define GTZC_TZSC2_PRIVCFGR1_COMP_Pos           GTZC_CFGR1_COMP_Pos
19980 #define GTZC_TZSC2_PRIVCFGR1_COMP_Msk           GTZC_CFGR1_COMP_Msk
19981 #define GTZC_TZSC2_PRIVCFGR1_ADC4_Pos           GTZC_CFGR1_ADC4_Pos
19982 #define GTZC_TZSC2_PRIVCFGR1_ADC4_Msk           GTZC_CFGR1_ADC4_Msk
19983 #define GTZC_TZSC2_PRIVCFGR1_VREFBUF_Pos        GTZC_CFGR1_VREFBUF_Pos
19984 #define GTZC_TZSC2_PRIVCFGR1_VREFBUF_Msk        GTZC_CFGR1_VREFBUF_Msk
19985 #define GTZC_TZSC2_PRIVCFGR1_DAC1_Pos           GTZC_CFGR1_DAC1_Pos
19986 #define GTZC_TZSC2_PRIVCFGR1_DAC1_Msk           GTZC_CFGR1_DAC1_Msk
19987 #define GTZC_TZSC2_PRIVCFGR1_ADF1_Pos           GTZC_CFGR1_ADF1_Pos
19988 #define GTZC_TZSC2_PRIVCFGR1_ADF1_Msk           GTZC_CFGR1_ADF1_Msk
19989 
19990 /*******************  Bits definition for GTZC_TZIC1_IER1 register  ***************/
19991 #define GTZC_TZIC1_IER1_TIM2_Pos            GTZC_CFGR1_TIM2_Pos
19992 #define GTZC_TZIC1_IER1_TIM2_Msk            GTZC_CFGR1_TIM2_Msk
19993 #define GTZC_TZIC1_IER1_TIM3_Pos            GTZC_CFGR1_TIM3_Pos
19994 #define GTZC_TZIC1_IER1_TIM3_Msk            GTZC_CFGR1_TIM3_Msk
19995 #define GTZC_TZIC1_IER1_TIM4_Pos            GTZC_CFGR1_TIM4_Pos
19996 #define GTZC_TZIC1_IER1_TIM4_Msk            GTZC_CFGR1_TIM4_Msk
19997 #define GTZC_TZIC1_IER1_TIM5_Pos            GTZC_CFGR1_TIM5_Pos
19998 #define GTZC_TZIC1_IER1_TIM5_Msk            GTZC_CFGR1_TIM5_Msk
19999 #define GTZC_TZIC1_IER1_TIM6_Pos            GTZC_CFGR1_TIM6_Pos
20000 #define GTZC_TZIC1_IER1_TIM6_Msk            GTZC_CFGR1_TIM6_Msk
20001 #define GTZC_TZIC1_IER1_TIM7_Pos            GTZC_CFGR1_TIM7_Pos
20002 #define GTZC_TZIC1_IER1_TIM7_Msk            GTZC_CFGR1_TIM7_Msk
20003 #define GTZC_TZIC1_IER1_WWDG_Pos            GTZC_CFGR1_WWDG_Pos
20004 #define GTZC_TZIC1_IER1_WWDG_Msk            GTZC_CFGR1_WWDG_Msk
20005 #define GTZC_TZIC1_IER1_IWDG_Pos            GTZC_CFGR1_IWDG_Pos
20006 #define GTZC_TZIC1_IER1_IWDG_Msk            GTZC_CFGR1_IWDG_Msk
20007 #define GTZC_TZIC1_IER1_SPI2_Pos            GTZC_CFGR1_SPI2_Pos
20008 #define GTZC_TZIC1_IER1_SPI2_Msk            GTZC_CFGR1_SPI2_Msk
20009 #define GTZC_TZIC1_IER1_USART2_Pos          GTZC_CFGR1_USART2_Pos
20010 #define GTZC_TZIC1_IER1_USART2_Msk          GTZC_CFGR1_USART2_Msk
20011 #define GTZC_TZIC1_IER1_USART3_Pos          GTZC_CFGR1_USART3_Pos
20012 #define GTZC_TZIC1_IER1_USART3_Msk          GTZC_CFGR1_USART3_Msk
20013 #define GTZC_TZIC1_IER1_UART4_Pos           GTZC_CFGR1_UART4_Pos
20014 #define GTZC_TZIC1_IER1_UART4_Msk           GTZC_CFGR1_UART4_Msk
20015 #define GTZC_TZIC1_IER1_UART5_Pos           GTZC_CFGR1_UART5_Pos
20016 #define GTZC_TZIC1_IER1_UART5_Msk           GTZC_CFGR1_UART5_Msk
20017 #define GTZC_TZIC1_IER1_I2C1_Pos            GTZC_CFGR1_I2C1_Pos
20018 #define GTZC_TZIC1_IER1_I2C1_Msk            GTZC_CFGR1_I2C1_Msk
20019 #define GTZC_TZIC1_IER1_I2C2_Pos            GTZC_CFGR1_I2C2_Pos
20020 #define GTZC_TZIC1_IER1_I2C2_Msk            GTZC_CFGR1_I2C2_Msk
20021 #define GTZC_TZIC1_IER1_CRS_Pos             GTZC_CFGR1_CRS_Pos
20022 #define GTZC_TZIC1_IER1_CRS_Msk             GTZC_CFGR1_CRS_Msk
20023 #define GTZC_TZIC1_IER1_I2C4_Pos            GTZC_CFGR1_I2C4_Pos
20024 #define GTZC_TZIC1_IER1_I2C4_Msk            GTZC_CFGR1_I2C4_Msk
20025 #define GTZC_TZIC1_IER1_LPTIM2_Pos          GTZC_CFGR1_LPTIM2_Pos
20026 #define GTZC_TZIC1_IER1_LPTIM2_Msk          GTZC_CFGR1_LPTIM2_Msk
20027 #define GTZC_TZIC1_IER1_FDCAN1_Pos          GTZC_CFGR1_FDCAN1_Pos
20028 #define GTZC_TZIC1_IER1_FDCAN1_Msk          GTZC_CFGR1_FDCAN1_Msk
20029 #define GTZC_TZIC1_IER1_UCPD1_Pos           GTZC_CFGR1_UCPD1_Pos
20030 #define GTZC_TZIC1_IER1_UCPD1_Msk           GTZC_CFGR1_UCPD1_Msk
20031 
20032 /*******************  Bits definition for GTZC_TZIC1_IER2 register  ***************/
20033 #define GTZC_TZIC1_IER2_TIM1_Pos            GTZC_CFGR2_TIM1_Pos
20034 #define GTZC_TZIC1_IER2_TIM1_Msk            GTZC_CFGR2_TIM1_Msk
20035 #define GTZC_TZIC1_IER2_SPI1_Pos            GTZC_CFGR2_SPI1_Pos
20036 #define GTZC_TZIC1_IER2_SPI1_Msk            GTZC_CFGR2_SPI1_Msk
20037 #define GTZC_TZIC1_IER2_TIM8_Pos            GTZC_CFGR2_TIM8_Pos
20038 #define GTZC_TZIC1_IER2_TIM8_Msk            GTZC_CFGR2_TIM8_Msk
20039 #define GTZC_TZIC1_IER2_USART1_Pos          GTZC_CFGR2_USART1_Pos
20040 #define GTZC_TZIC1_IER2_USART1_Msk          GTZC_CFGR2_USART1_Msk
20041 #define GTZC_TZIC1_IER2_TIM15_Pos           GTZC_CFGR2_TIM15_Pos
20042 #define GTZC_TZIC1_IER2_TIM15_Msk           GTZC_CFGR2_TIM15_Msk
20043 #define GTZC_TZIC1_IER2_TIM16_Pos           GTZC_CFGR2_TIM16_Pos
20044 #define GTZC_TZIC1_IER2_TIM16_Msk           GTZC_CFGR2_TIM16_Msk
20045 #define GTZC_TZIC1_IER2_TIM17_Pos           GTZC_CFGR2_TIM17_Pos
20046 #define GTZC_TZIC1_IER2_TIM17_Msk           GTZC_CFGR2_TIM17_Msk
20047 #define GTZC_TZIC1_IER2_SAI1_Pos            GTZC_CFGR2_SAI1_Pos
20048 #define GTZC_TZIC1_IER2_SAI1_Msk            GTZC_CFGR2_SAI1_Msk
20049 #define GTZC_TZIC1_IER2_SAI2_Pos            GTZC_CFGR2_SAI2_Pos
20050 #define GTZC_TZIC1_IER2_SAI2_Msk            GTZC_CFGR2_SAI2_Msk
20051 
20052 /*******************  Bits definition for GTZC_TZIC1_IER3 register  ***************/
20053 #define GTZC_TZIC1_IER3_MDF1_Pos            GTZC_CFGR3_MDF1_Pos
20054 #define GTZC_TZIC1_IER3_MDF1_Msk            GTZC_CFGR3_MDF1_Msk
20055 #define GTZC_TZIC1_IER3_CORDIC_Pos          GTZC_CFGR3_CORDIC_Pos
20056 #define GTZC_TZIC1_IER3_CORDIC_Msk          GTZC_CFGR3_CORDIC_Msk
20057 #define GTZC_TZIC1_IER3_FMAC_Pos            GTZC_CFGR3_FMAC_Pos
20058 #define GTZC_TZIC1_IER3_FMAC_Msk            GTZC_CFGR3_FMAC_Msk
20059 #define GTZC_TZIC1_IER3_CRC_Pos             GTZC_CFGR3_CRC_Pos
20060 #define GTZC_TZIC1_IER3_CRC_Msk             GTZC_CFGR3_CRC_Msk
20061 #define GTZC_TZIC1_IER3_TSC_Pos             GTZC_CFGR3_TSC_Pos
20062 #define GTZC_TZIC1_IER3_TSC_Msk             GTZC_CFGR3_TSC_Msk
20063 #define GTZC_TZIC1_IER3_DMA2D_Pos           GTZC_CFGR3_DMA2D_Pos
20064 #define GTZC_TZIC1_IER3_DMA2D_Msk           GTZC_CFGR3_DMA2D_Msk
20065 #define GTZC_TZIC1_IER3_ICACHE_REG_Pos      GTZC_CFGR3_ICACHE_REG_Pos
20066 #define GTZC_TZIC1_IER3_ICACHE_REG_Msk      GTZC_CFGR3_ICACHE_REG_Msk
20067 #define GTZC_TZIC1_IER3_DCACHE1_REG_Pos     GTZC_CFGR3_DCACHE1_REG_Pos
20068 #define GTZC_TZIC1_IER3_DCACHE1_REG_Msk     GTZC_CFGR3_DCACHE1_REG_Msk
20069 #define GTZC_TZIC1_IER3_ADC12_Pos           GTZC_CFGR3_ADC12_Pos
20070 #define GTZC_TZIC1_IER3_ADC12_Msk           GTZC_CFGR3_ADC12_Msk
20071 #define GTZC_TZIC1_IER3_DCMI_Pos            GTZC_CFGR3_DCMI_Pos
20072 #define GTZC_TZIC1_IER3_DCMI_Msk            GTZC_CFGR3_DCMI_Msk
20073 #define GTZC_TZIC1_IER3_OTG_Pos             GTZC_CFGR3_OTG_Pos
20074 #define GTZC_TZIC1_IER3_OTG_Msk             GTZC_CFGR3_OTG_Msk
20075 #define GTZC_TZIC1_IER3_AES_Pos             GTZC_CFGR3_AES_Pos
20076 #define GTZC_TZIC1_IER3_AES_Msk             GTZC_CFGR3_AES_Msk
20077 #define GTZC_TZIC1_IER3_HASH_Pos            GTZC_CFGR3_HASH_Pos
20078 #define GTZC_TZIC1_IER3_HASH_Msk            GTZC_CFGR3_HASH_Msk
20079 #define GTZC_TZIC1_IER3_RNG_Pos             GTZC_CFGR3_RNG_Pos
20080 #define GTZC_TZIC1_IER3_RNG_Msk             GTZC_CFGR3_RNG_Msk
20081 #define GTZC_TZIC1_IER3_PKA_Pos             GTZC_CFGR3_PKA_Pos
20082 #define GTZC_TZIC1_IER3_PKA_Msk             GTZC_CFGR3_PKA_Msk
20083 #define GTZC_TZIC1_IER3_SAES_Pos            GTZC_CFGR3_SAES_Pos
20084 #define GTZC_TZIC1_IER3_SAES_Msk            GTZC_CFGR3_SAES_Msk
20085 #define GTZC_TZIC1_IER3_OCTOSPIM_Pos        GTZC_CFGR3_OCTOSPIM_Pos
20086 #define GTZC_TZIC1_IER3_OCTOSPIM_Msk        GTZC_CFGR3_OCTOSPIM_Msk
20087 #define GTZC_TZIC1_IER3_SDMMC1_Pos          GTZC_CFGR3_SDMMC1_Pos
20088 #define GTZC_TZIC1_IER3_SDMMC1_Msk          GTZC_CFGR3_SDMMC1_Msk
20089 #define GTZC_TZIC1_IER3_SDMMC2_Pos          GTZC_CFGR3_SDMMC2_Pos
20090 #define GTZC_TZIC1_IER3_SDMMC2_Msk          GTZC_CFGR3_SDMMC2_Msk
20091 #define GTZC_TZIC1_IER3_FSMC_REG_Pos        GTZC_CFGR3_FSMC_REG_Pos
20092 #define GTZC_TZIC1_IER3_FSMC_REG_Msk        GTZC_CFGR3_FSMC_REG_Msk
20093 #define GTZC_TZIC1_IER3_OCTOSPI1_REG_Pos    GTZC_CFGR3_OCTOSPI1_REG_Pos
20094 #define GTZC_TZIC1_IER3_OCTOSPI1_REG_Msk    GTZC_CFGR3_OCTOSPI1_REG_Msk
20095 #define GTZC_TZIC1_IER3_OCTOSPI2_REG_Pos    GTZC_CFGR3_OCTOSPI2_REG_Pos
20096 #define GTZC_TZIC1_IER3_OCTOSPI2_REG_Msk    GTZC_CFGR3_OCTOSPI2_REG_Msk
20097 #define GTZC_TZIC1_IER3_RAMCFG_Pos          GTZC_CFGR3_RAMCFG_Pos
20098 #define GTZC_TZIC1_IER3_RAMCFG_Msk          GTZC_CFGR3_RAMCFG_Msk
20099 
20100 /*******************  Bits definition for GTZC_TZIC1_IER4 register  ***************/
20101 #define GTZC_TZIC1_IER4_GPDMA1_Pos          GTZC_CFGR4_GPDMA1_Pos
20102 #define GTZC_TZIC1_IER4_GPDMA1_Msk          GTZC_CFGR4_GPDMA1_Msk
20103 #define GTZC_TZIC1_IER4_FLASH_REG_Pos       GTZC_CFGR4_FLASH_REG_Pos
20104 #define GTZC_TZIC1_IER4_FLASH_REG_Msk       GTZC_CFGR4_FLASH_REG_Msk
20105 #define GTZC_TZIC1_IER4_FLASH_Pos           GTZC_CFGR4_FLASH_Pos
20106 #define GTZC_TZIC1_IER4_FLASH_Msk           GTZC_CFGR4_FLASH_Msk
20107 #define GTZC_TZIC1_IER4_OTFDEC1_Pos         GTZC_CFGR4_OTFDEC1_Pos
20108 #define GTZC_TZIC1_IER4_OTFDEC1_Msk         GTZC_CFGR4_OTFDEC1_Msk
20109 #define GTZC_TZIC1_IER4_OTFDEC2_Pos         GTZC_CFGR4_OTFDEC2_Pos
20110 #define GTZC_TZIC1_IER4_OTFDEC2_Msk         GTZC_CFGR4_OTFDEC2_Msk
20111 #define GTZC_TZIC1_IER4_TZSC1_Pos           GTZC_CFGR4_TZSC1_Pos
20112 #define GTZC_TZIC1_IER4_TZSC1_Msk           GTZC_CFGR4_TZSC1_Msk
20113 #define GTZC_TZIC1_IER4_TZIC1_Pos           GTZC_CFGR4_TZIC1_Pos
20114 #define GTZC_TZIC1_IER4_TZIC1_Msk           GTZC_CFGR4_TZIC1_Msk
20115 #define GTZC_TZIC1_IER4_OCTOSPI1_MEM_Pos    GTZC_CFGR4_OCTOSPI1_MEM_Pos
20116 #define GTZC_TZIC1_IER4_OCTOSPI1_MEM_Msk    GTZC_CFGR4_OCTOSPI1_MEM_Msk
20117 #define GTZC_TZIC1_IER4_FSMC_MEM_Pos        GTZC_CFGR4_FSMC_MEM_Pos
20118 #define GTZC_TZIC1_IER4_FSMC_MEM_Msk        GTZC_CFGR4_FSMC_MEM_Msk
20119 #define GTZC_TZIC1_IER4_BKPSRAM_Pos         GTZC_CFGR4_BKPSRAM_Pos
20120 #define GTZC_TZIC1_IER4_BKPSRAM_Msk         GTZC_CFGR4_BKPSRAM_Msk
20121 #define GTZC_TZIC1_IER4_OCTOSPI2_MEM_Pos    GTZC_CFGR4_OCTOSPI2_MEM_Pos
20122 #define GTZC_TZIC1_IER4_OCTOSPI2_MEM_Msk    GTZC_CFGR4_OCTOSPI2_MEM_Msk
20123 #define GTZC_TZIC1_IER4_SRAM1_Pos           GTZC_CFGR4_SRAM1_Pos
20124 #define GTZC_TZIC1_IER4_SRAM1_Msk           GTZC_CFGR4_SRAM1_Msk
20125 #define GTZC_TZIC1_IER4_MPCBB1_REG_Pos      GTZC_CFGR4_MPCBB1_REG_Pos
20126 #define GTZC_TZIC1_IER4_MPCBB1_REG_Msk      GTZC_CFGR4_MPCBB1_REG_Msk
20127 #define GTZC_TZIC1_IER4_SRAM2_Pos           GTZC_CFGR4_SRAM2_Pos
20128 #define GTZC_TZIC1_IER4_SRAM2_Msk           GTZC_CFGR4_SRAM2_Msk
20129 #define GTZC_TZIC1_IER4_MPCBB2_REG_Pos      GTZC_CFGR4_MPCBB2_REG_Pos
20130 #define GTZC_TZIC1_IER4_MPCBB2_REG_Msk      GTZC_CFGR4_MPCBB2_REG_Msk
20131 #define GTZC_TZIC1_IER4_SRAM3_Pos           GTZC_CFGR4_SRAM3_Pos
20132 #define GTZC_TZIC1_IER4_SRAM3_Msk           GTZC_CFGR4_SRAM3_Msk
20133 #define GTZC_TZIC1_IER4_MPCBB3_REG_Pos      GTZC_CFGR4_MPCBB3_REG_Pos
20134 #define GTZC_TZIC1_IER4_MPCBB3_REG_Msk      GTZC_CFGR4_MPCBB3_REG_Msk
20135 
20136 /*******************  Bits definition for GTZC_TZIC2_IER1 register  ***************/
20137 #define GTZC_TZIC2_IER1_SPI3_Pos            GTZC_CFGR1_SPI3_Pos
20138 #define GTZC_TZIC2_IER1_SPI3_Msk            GTZC_CFGR1_SPI3_Msk
20139 #define GTZC_TZIC2_IER1_LPUART1_Pos         GTZC_CFGR1_LPUART1_Pos
20140 #define GTZC_TZIC2_IER1_LPUART1_Msk         GTZC_CFGR1_LPUART1_Msk
20141 #define GTZC_TZIC2_IER1_I2C3_Pos            GTZC_CFGR1_I2C3_Pos
20142 #define GTZC_TZIC2_IER1_I2C3_Msk            GTZC_CFGR1_I2C3_Msk
20143 #define GTZC_TZIC2_IER1_LPTIM1_Pos          GTZC_CFGR1_LPTIM1_Pos
20144 #define GTZC_TZIC2_IER1_LPTIM1_Msk          GTZC_CFGR1_LPTIM1_Msk
20145 #define GTZC_TZIC2_IER1_LPTIM3_Pos          GTZC_CFGR1_LPTIM3_Pos
20146 #define GTZC_TZIC2_IER1_LPTIM3_Msk          GTZC_CFGR1_LPTIM3_Msk
20147 #define GTZC_TZIC2_IER1_LPTIM4_Pos          GTZC_CFGR1_LPTIM4_Pos
20148 #define GTZC_TZIC2_IER1_LPTIM4_Msk          GTZC_CFGR1_LPTIM4_Msk
20149 #define GTZC_TZIC2_IER1_OPAMP_Pos           GTZC_CFGR1_OPAMP_Pos
20150 #define GTZC_TZIC2_IER1_OPAMP_Msk           GTZC_CFGR1_OPAMP_Msk
20151 #define GTZC_TZIC2_IER1_COMP_Pos            GTZC_CFGR1_COMP_Pos
20152 #define GTZC_TZIC2_IER1_COMP_Msk            GTZC_CFGR1_COMP_Msk
20153 #define GTZC_TZIC2_IER1_ADC4_Pos            GTZC_CFGR1_ADC4_Pos
20154 #define GTZC_TZIC2_IER1_ADC4_Msk            GTZC_CFGR1_ADC4_Msk
20155 #define GTZC_TZIC2_IER1_VREFBUF_Pos         GTZC_CFGR1_VREFBUF_Pos
20156 #define GTZC_TZIC2_IER1_VREFBUF_Msk         GTZC_CFGR1_VREFBUF_Msk
20157 #define GTZC_TZIC2_IER1_DAC1_Pos            GTZC_CFGR1_DAC1_Pos
20158 #define GTZC_TZIC2_IER1_DAC1_Msk            GTZC_CFGR1_DAC1_Msk
20159 #define GTZC_TZIC2_IER1_ADF1_Pos            GTZC_CFGR1_ADF1_Pos
20160 #define GTZC_TZIC2_IER1_ADF1_Msk            GTZC_CFGR1_ADF1_Msk
20161 
20162 /*******************  Bits definition for GTZC_TZIC2_IER2 register  ***************/
20163 #define GTZC_TZIC2_IER2_SYSCFG_Pos          GTZC_CFGR2_SYSCFG_Pos
20164 #define GTZC_TZIC2_IER2_SYSCFG_Msk          GTZC_CFGR2_SYSCFG_Msk
20165 #define GTZC_TZIC2_IER2_RTC_Pos             GTZC_CFGR2_RTC_Pos
20166 #define GTZC_TZIC2_IER2_RTC_Msk             GTZC_CFGR2_RTC_Msk
20167 #define GTZC_TZIC2_IER2_TAMP_Pos            GTZC_CFGR2_TAMP_Pos
20168 #define GTZC_TZIC2_IER2_TAMP_Msk            GTZC_CFGR2_TAMP_Msk
20169 #define GTZC_TZIC2_IER2_PWR_Pos             GTZC_CFGR2_PWR_Pos
20170 #define GTZC_TZIC2_IER2_PWR_Msk             GTZC_CFGR2_PWR_Msk
20171 #define GTZC_TZIC2_IER2_RCC_Pos             GTZC_CFGR2_RCC_Pos
20172 #define GTZC_TZIC2_IER2_RCC_Msk             GTZC_CFGR2_RCC_Msk
20173 #define GTZC_TZIC2_IER2_LPDMA1_Pos          GTZC_CFGR2_LPDMA1_Pos
20174 #define GTZC_TZIC2_IER2_LPDMA1_Msk          GTZC_CFGR2_LPDMA1_Msk
20175 #define GTZC_TZIC2_IER2_EXTI_Pos            GTZC_CFGR2_EXTI_Pos
20176 #define GTZC_TZIC2_IER2_EXTI_Msk            GTZC_CFGR2_EXTI_Msk
20177 #define GTZC_TZIC2_IER2_TZSC2_Pos           GTZC_CFGR2_TZSC2_Pos
20178 #define GTZC_TZIC2_IER2_TZSC2_Msk           GTZC_CFGR2_TZSC2_Msk
20179 #define GTZC_TZIC2_IER2_TZIC2_Pos           GTZC_CFGR2_TZIC2_Pos
20180 #define GTZC_TZIC2_IER2_TZIC2_Msk           GTZC_CFGR2_TZIC2_Msk
20181 #define GTZC_TZIC2_IER2_SRAM4_Pos           GTZC_CFGR2_SRAM4_Pos
20182 #define GTZC_TZIC2_IER2_SRAM4_Msk           GTZC_CFGR2_SRAM4_Msk
20183 #define GTZC_TZIC2_IER2_MPCBB4_REG_Pos      GTZC_CFGR2_MPCBB4_REG_Pos
20184 #define GTZC_TZIC2_IER2_MPCBB4_REG_Msk      GTZC_CFGR2_MPCBB4_REG_Msk
20185 
20186 /*******************  Bits definition for GTZC_TZIC1_SR1 register  **************/
20187 #define GTZC_TZIC1_SR1_TIM2_Pos             GTZC_CFGR1_TIM2_Pos
20188 #define GTZC_TZIC1_SR1_TIM2_Msk             GTZC_CFGR1_TIM2_Msk
20189 #define GTZC_TZIC1_SR1_TIM3_Pos             GTZC_CFGR1_TIM3_Pos
20190 #define GTZC_TZIC1_SR1_TIM3_Msk             GTZC_CFGR1_TIM3_Msk
20191 #define GTZC_TZIC1_SR1_TIM4_Pos             GTZC_CFGR1_TIM4_Pos
20192 #define GTZC_TZIC1_SR1_TIM4_Msk             GTZC_CFGR1_TIM4_Msk
20193 #define GTZC_TZIC1_SR1_TIM5_Pos             GTZC_CFGR1_TIM5_Pos
20194 #define GTZC_TZIC1_SR1_TIM5_Msk             GTZC_CFGR1_TIM5_Msk
20195 #define GTZC_TZIC1_SR1_TIM6_Pos             GTZC_CFGR1_TIM6_Pos
20196 #define GTZC_TZIC1_SR1_TIM6_Msk             GTZC_CFGR1_TIM6_Msk
20197 #define GTZC_TZIC1_SR1_TIM7_Pos             GTZC_CFGR1_TIM7_Pos
20198 #define GTZC_TZIC1_SR1_TIM7_Msk             GTZC_CFGR1_TIM7_Msk
20199 #define GTZC_TZIC1_SR1_WWDG_Pos             GTZC_CFGR1_WWDG_Pos
20200 #define GTZC_TZIC1_SR1_WWDG_Msk             GTZC_CFGR1_WWDG_Msk
20201 #define GTZC_TZIC1_SR1_IWDG_Pos             GTZC_CFGR1_IWDG_Pos
20202 #define GTZC_TZIC1_SR1_IWDG_Msk             GTZC_CFGR1_IWDG_Msk
20203 #define GTZC_TZIC1_SR1_SPI2_Pos             GTZC_CFGR1_SPI2_Pos
20204 #define GTZC_TZIC1_SR1_SPI2_Msk             GTZC_CFGR1_SPI2_Msk
20205 #define GTZC_TZIC1_SR1_USART2_Pos           GTZC_CFGR1_USART2_Pos
20206 #define GTZC_TZIC1_SR1_USART2_Msk           GTZC_CFGR1_USART2_Msk
20207 #define GTZC_TZIC1_SR1_USART3_Pos           GTZC_CFGR1_USART3_Pos
20208 #define GTZC_TZIC1_SR1_USART3_Msk           GTZC_CFGR1_USART3_Msk
20209 #define GTZC_TZIC1_SR1_UART4_Pos            GTZC_CFGR1_UART4_Pos
20210 #define GTZC_TZIC1_SR1_UART4_Msk            GTZC_CFGR1_UART4_Msk
20211 #define GTZC_TZIC1_SR1_UART5_Pos            GTZC_CFGR1_UART5_Pos
20212 #define GTZC_TZIC1_SR1_UART5_Msk            GTZC_CFGR1_UART5_Msk
20213 #define GTZC_TZIC1_SR1_I2C1_Pos             GTZC_CFGR1_I2C1_Pos
20214 #define GTZC_TZIC1_SR1_I2C1_Msk             GTZC_CFGR1_I2C1_Msk
20215 #define GTZC_TZIC1_SR1_I2C2_Pos             GTZC_CFGR1_I2C2_Pos
20216 #define GTZC_TZIC1_SR1_I2C2_Msk             GTZC_CFGR1_I2C2_Msk
20217 #define GTZC_TZIC1_SR1_CRS_Pos              GTZC_CFGR1_CRS_Pos
20218 #define GTZC_TZIC1_SR1_CRS_Msk              GTZC_CFGR1_CRS_Msk
20219 #define GTZC_TZIC1_SR1_I2C4_Pos             GTZC_CFGR1_I2C4_Pos
20220 #define GTZC_TZIC1_SR1_I2C4_Msk             GTZC_CFGR1_I2C4_Msk
20221 #define GTZC_TZIC1_SR1_LPTIM2_Pos           GTZC_CFGR1_LPTIM2_Pos
20222 #define GTZC_TZIC1_SR1_LPTIM2_Msk           GTZC_CFGR1_LPTIM2_Msk
20223 #define GTZC_TZIC1_SR1_FDCAN1_Pos           GTZC_CFGR1_FDCAN1_Pos
20224 #define GTZC_TZIC1_SR1_FDCAN1_Msk           GTZC_CFGR1_FDCAN1_Msk
20225 #define GTZC_TZIC1_SR1_UCPD1_Pos            GTZC_CFGR1_UCPD1_Pos
20226 #define GTZC_TZIC1_SR1_UCPD1_Msk            GTZC_CFGR1_UCPD1_Msk
20227 
20228 /*******************  Bits definition for GTZC_TZIC1_SR2 register  **************/
20229 #define GTZC_TZIC1_SR2_TIM1_Pos             GTZC_CFGR2_TIM1_Pos
20230 #define GTZC_TZIC1_SR2_TIM1_Msk             GTZC_CFGR2_TIM1_Msk
20231 #define GTZC_TZIC1_SR2_SPI1_Pos             GTZC_CFGR2_SPI1_Pos
20232 #define GTZC_TZIC1_SR2_SPI1_Msk             GTZC_CFGR2_SPI1_Msk
20233 #define GTZC_TZIC1_SR2_TIM8_Pos             GTZC_CFGR2_TIM8_Pos
20234 #define GTZC_TZIC1_SR2_TIM8_Msk             GTZC_CFGR2_TIM8_Msk
20235 #define GTZC_TZIC1_SR2_USART1_Pos           GTZC_CFGR2_USART1_Pos
20236 #define GTZC_TZIC1_SR2_USART1_Msk           GTZC_CFGR2_USART1_Msk
20237 #define GTZC_TZIC1_SR2_TIM15_Pos            GTZC_CFGR2_TIM15_Pos
20238 #define GTZC_TZIC1_SR2_TIM15_Msk            GTZC_CFGR2_TIM15_Msk
20239 #define GTZC_TZIC1_SR2_TIM16_Pos            GTZC_CFGR2_TIM16_Pos
20240 #define GTZC_TZIC1_SR2_TIM16_Msk            GTZC_CFGR2_TIM16_Msk
20241 #define GTZC_TZIC1_SR2_TIM17_Pos            GTZC_CFGR2_TIM17_Pos
20242 #define GTZC_TZIC1_SR2_TIM17_Msk            GTZC_CFGR2_TIM17_Msk
20243 #define GTZC_TZIC1_SR2_SAI1_Pos             GTZC_CFGR2_SAI1_Pos
20244 #define GTZC_TZIC1_SR2_SAI1_Msk             GTZC_CFGR2_SAI1_Msk
20245 #define GTZC_TZIC1_SR2_SAI2_Pos             GTZC_CFGR2_SAI2_Pos
20246 #define GTZC_TZIC1_SR2_SAI2_Msk             GTZC_CFGR2_SAI2_Msk
20247 
20248 /*******************  Bits definition for GTZC_TZIC1_SR3 register  **************/
20249 #define GTZC_TZIC1_SR3_MDF1_Pos             GTZC_CFGR3_MDF1_Pos
20250 #define GTZC_TZIC1_SR3_MDF1_Msk             GTZC_CFGR3_MDF1_Msk
20251 #define GTZC_TZIC1_SR3_CORDIC_Pos           GTZC_CFGR3_CORDIC_Pos
20252 #define GTZC_TZIC1_SR3_CORDIC_Msk           GTZC_CFGR3_CORDIC_Msk
20253 #define GTZC_TZIC1_SR3_FMAC_Pos             GTZC_CFGR3_FMAC_Pos
20254 #define GTZC_TZIC1_SR3_FMAC_Msk             GTZC_CFGR3_FMAC_Msk
20255 #define GTZC_TZIC1_SR3_CRC_Pos              GTZC_CFGR3_CRC_Pos
20256 #define GTZC_TZIC1_SR3_CRC_Msk              GTZC_CFGR3_CRC_Msk
20257 #define GTZC_TZIC1_SR3_TSC_Pos              GTZC_CFGR3_TSC_Pos
20258 #define GTZC_TZIC1_SR3_TSC_Msk              GTZC_CFGR3_TSC_Msk
20259 #define GTZC_TZIC1_SR3_DMA2D_Pos            GTZC_CFGR3_DMA2D_Pos
20260 #define GTZC_TZIC1_SR3_DMA2D_Msk            GTZC_CFGR3_DMA2D_Msk
20261 #define GTZC_TZIC1_SR3_ICACHE_REG_Pos       GTZC_CFGR3_ICACHE_REG_Pos
20262 #define GTZC_TZIC1_SR3_ICACHE_REG_Msk       GTZC_CFGR3_ICACHE_REG_Msk
20263 #define GTZC_TZIC1_SR3_DCACHE1_REG_Pos      GTZC_CFGR3_DCACHE1_REG_Pos
20264 #define GTZC_TZIC1_SR3_DCACHE1_REG_Msk      GTZC_CFGR3_DCACHE1_REG_Msk
20265 #define GTZC_TZIC1_SR3_ADC12_Pos            GTZC_CFGR3_ADC12_Pos
20266 #define GTZC_TZIC1_SR3_ADC12_Msk            GTZC_CFGR3_ADC12_Msk
20267 #define GTZC_TZIC1_SR3_DCMI_Pos             GTZC_CFGR3_DCMI_Pos
20268 #define GTZC_TZIC1_SR3_DCMI_Msk             GTZC_CFGR3_DCMI_Msk
20269 #define GTZC_TZIC1_SR3_OTG_Pos              GTZC_CFGR3_OTG_Pos
20270 #define GTZC_TZIC1_SR3_OTG_Msk              GTZC_CFGR3_OTG_Msk
20271 #define GTZC_TZIC1_SR3_AES_Pos              GTZC_CFGR3_AES_Pos
20272 #define GTZC_TZIC1_SR3_AES_Msk              GTZC_CFGR3_AES_Msk
20273 #define GTZC_TZIC1_SR3_HASH_Pos             GTZC_CFGR3_HASH_Pos
20274 #define GTZC_TZIC1_SR3_HASH_Msk             GTZC_CFGR3_HASH_Msk
20275 #define GTZC_TZIC1_SR3_RNG_Pos              GTZC_CFGR3_RNG_Pos
20276 #define GTZC_TZIC1_SR3_RNG_Msk              GTZC_CFGR3_RNG_Msk
20277 #define GTZC_TZIC1_SR3_PKA_Pos              GTZC_CFGR3_PKA_Pos
20278 #define GTZC_TZIC1_SR3_PKA_Msk              GTZC_CFGR3_PKA_Msk
20279 #define GTZC_TZIC1_SR3_SAES_Pos             GTZC_CFGR3_SAES_Pos
20280 #define GTZC_TZIC1_SR3_SAES_Msk             GTZC_CFGR3_SAES_Msk
20281 #define GTZC_TZIC1_SR3_OCTOSPIM_Pos         GTZC_CFGR3_OCTOSPIM_Pos
20282 #define GTZC_TZIC1_SR3_OCTOSPIM_Msk         GTZC_CFGR3_OCTOSPIM_Msk
20283 #define GTZC_TZIC1_SR3_SDMMC1_Pos           GTZC_CFGR3_SDMMC1_Pos
20284 #define GTZC_TZIC1_SR3_SDMMC1_Msk           GTZC_CFGR3_SDMMC1_Msk
20285 #define GTZC_TZIC1_SR3_SDMMC2_Pos           GTZC_CFGR3_SDMMC2_Pos
20286 #define GTZC_TZIC1_SR3_SDMMC2_Msk           GTZC_CFGR3_SDMMC2_Msk
20287 #define GTZC_TZIC1_SR3_FSMC_REG_Pos         GTZC_CFGR3_FSMC_REG_Pos
20288 #define GTZC_TZIC1_SR3_FSMC_REG_Msk         GTZC_CFGR3_FSMC_REG_Msk
20289 #define GTZC_TZIC1_SR3_OCTOSPI1_REG_Pos     GTZC_CFGR3_OCTOSPI1_REG_Pos
20290 #define GTZC_TZIC1_SR3_OCTOSPI1_REG_Msk     GTZC_CFGR3_OCTOSPI1_REG_Msk
20291 #define GTZC_TZIC1_SR3_OCTOSPI2_REG_Pos     GTZC_CFGR3_OCTOSPI2_REG_Pos
20292 #define GTZC_TZIC1_SR3_OCTOSPI2_REG_Msk     GTZC_CFGR3_OCTOSPI2_REG_Msk
20293 #define GTZC_TZIC1_SR3_RAMCFG_Pos           GTZC_CFGR3_RAMCFG_Pos
20294 #define GTZC_TZIC1_SR3_RAMCFG_Msk           GTZC_CFGR3_RAMCFG_Msk
20295 
20296 /*******************  Bits definition for GTZC_TZIC1_SR4 register  ***************/
20297 #define GTZC_TZIC1_SR4_GPDMA1_Pos           GTZC_CFGR4_GPDMA1_Pos
20298 #define GTZC_TZIC1_SR4_GPDMA1_Msk           GTZC_CFGR4_GPDMA1_Msk
20299 #define GTZC_TZIC1_SR4_FLASH_REG_Pos        GTZC_CFGR4_FLASH_REG_Pos
20300 #define GTZC_TZIC1_SR4_FLASH_REG_Msk        GTZC_CFGR4_FLASH_REG_Msk
20301 #define GTZC_TZIC1_SR4_FLASH_Pos            GTZC_CFGR4_FLASH_Pos
20302 #define GTZC_TZIC1_SR4_FLASH_Msk            GTZC_CFGR4_FLASH_Msk
20303 #define GTZC_TZIC1_SR4_OTFDEC1_Pos          GTZC_CFGR4_OTFDEC1_Pos
20304 #define GTZC_TZIC1_SR4_OTFDEC1_Msk          GTZC_CFGR4_OTFDEC1_Msk
20305 #define GTZC_TZIC1_SR4_OTFDEC2_Pos          GTZC_CFGR4_OTFDEC2_Pos
20306 #define GTZC_TZIC1_SR4_OTFDEC2_Msk          GTZC_CFGR4_OTFDEC2_Msk
20307 #define GTZC_TZIC1_SR4_TZSC1_Pos            GTZC_CFGR4_TZSC1_Pos
20308 #define GTZC_TZIC1_SR4_TZSC1_Msk            GTZC_CFGR4_TZSC1_Msk
20309 #define GTZC_TZIC1_SR4_TZIC1_Pos            GTZC_CFGR4_TZIC1_Pos
20310 #define GTZC_TZIC1_SR4_TZIC1_Msk            GTZC_CFGR4_TZIC1_Msk
20311 #define GTZC_TZIC1_SR4_OCTOSPI1_MEM_Pos     GTZC_CFGR4_OCTOSPI1_MEM_Pos
20312 #define GTZC_TZIC1_SR4_OCTOSPI1_MEM_Msk     GTZC_CFGR4_OCTOSPI1_MEM_Msk
20313 #define GTZC_TZIC1_SR4_FSMC_MEM_Pos         GTZC_CFGR4_FSMC_MEM_Pos
20314 #define GTZC_TZIC1_SR4_FSMC_MEM_Msk         GTZC_CFGR4_FSMC_MEM_Msk
20315 #define GTZC_TZIC1_SR4_BKPSRAM_Pos          GTZC_CFGR4_BKPSRAM_Pos
20316 #define GTZC_TZIC1_SR4_BKPSRAM_Msk          GTZC_CFGR4_BKPSRAM_Msk
20317 #define GTZC_TZIC1_SR4_OCTOSPI2_MEM_Pos     GTZC_CFGR4_OCTOSPI2_MEM_Pos
20318 #define GTZC_TZIC1_SR4_OCTOSPI2_MEM_Msk     GTZC_CFGR4_OCTOSPI2_MEM_Msk
20319 #define GTZC_TZIC1_SR4_SRAM1_Pos            GTZC_CFGR4_SRAM1_Pos
20320 #define GTZC_TZIC1_SR4_SRAM1_Msk            GTZC_CFGR4_SRAM1_Msk
20321 #define GTZC_TZIC1_SR4_MPCBB1_REG_Pos       GTZC_CFGR4_MPCBB1_REG_Pos
20322 #define GTZC_TZIC1_SR4_MPCBB1_REG_Msk       GTZC_CFGR4_MPCBB1_REG_Msk
20323 #define GTZC_TZIC1_SR4_SRAM2_Pos            GTZC_CFGR4_SRAM2_Pos
20324 #define GTZC_TZIC1_SR4_SRAM2_Msk            GTZC_CFGR4_SRAM2_Msk
20325 #define GTZC_TZIC1_SR4_MPCBB2_REG_Pos       GTZC_CFGR4_MPCBB2_REG_Pos
20326 #define GTZC_TZIC1_SR4_MPCBB2_REG_Msk       GTZC_CFGR4_MPCBB2_REG_Msk
20327 #define GTZC_TZIC1_SR4_SRAM3_Pos            GTZC_CFGR4_SRAM3_Pos
20328 #define GTZC_TZIC1_SR4_SRAM3_Msk            GTZC_CFGR4_SRAM3_Msk
20329 #define GTZC_TZIC1_SR4_MPCBB3_REG_Pos       GTZC_CFGR4_MPCBB3_REG_Pos
20330 #define GTZC_TZIC1_SR4_MPCBB3_REG_Msk       GTZC_CFGR4_MPCBB3_REG_Msk
20331 
20332 /*******************  Bits definition for GTZC_TZIC2_SR1 register  ***************/
20333 #define GTZC_TZIC2_SR1_SPI3_Pos             GTZC_CFGR1_SPI3_Pos
20334 #define GTZC_TZIC2_SR1_SPI3_Msk             GTZC_CFGR1_SPI3_Msk
20335 #define GTZC_TZIC2_SR1_LPUART1_Pos          GTZC_CFGR1_LPUART1_Pos
20336 #define GTZC_TZIC2_SR1_LPUART1_Msk          GTZC_CFGR1_LPUART1_Msk
20337 #define GTZC_TZIC2_SR1_I2C3_Pos             GTZC_CFGR1_I2C3_Pos
20338 #define GTZC_TZIC2_SR1_I2C3_Msk             GTZC_CFGR1_I2C3_Msk
20339 #define GTZC_TZIC2_SR1_LPTIM1_Pos           GTZC_CFGR1_LPTIM1_Pos
20340 #define GTZC_TZIC2_SR1_LPTIM1_Msk           GTZC_CFGR1_LPTIM1_Msk
20341 #define GTZC_TZIC2_SR1_LPTIM3_Pos           GTZC_CFGR1_LPTIM3_Pos
20342 #define GTZC_TZIC2_SR1_LPTIM3_Msk           GTZC_CFGR1_LPTIM3_Msk
20343 #define GTZC_TZIC2_SR1_LPTIM4_Pos           GTZC_CFGR1_LPTIM4_Pos
20344 #define GTZC_TZIC2_SR1_LPTIM4_Msk           GTZC_CFGR1_LPTIM4_Msk
20345 #define GTZC_TZIC2_SR1_OPAMP_Pos            GTZC_CFGR1_OPAMP_Pos
20346 #define GTZC_TZIC2_SR1_OPAMP_Msk            GTZC_CFGR1_OPAMP_Msk
20347 #define GTZC_TZIC2_SR1_COMP_Pos             GTZC_CFGR1_COMP_Pos
20348 #define GTZC_TZIC2_SR1_COMP_Msk             GTZC_CFGR1_COMP_Msk
20349 #define GTZC_TZIC2_SR1_ADC4_Pos             GTZC_CFGR1_ADC4_Pos
20350 #define GTZC_TZIC2_SR1_ADC4_Msk             GTZC_CFGR1_ADC4_Msk
20351 #define GTZC_TZIC2_SR1_VREFBUF_Pos          GTZC_CFGR1_VREFBUF_Pos
20352 #define GTZC_TZIC2_SR1_VREFBUF_Msk          GTZC_CFGR1_VREFBUF_Msk
20353 #define GTZC_TZIC2_SR1_DAC1_Pos             GTZC_CFGR1_DAC1_Pos
20354 #define GTZC_TZIC2_SR1_DAC1_Msk             GTZC_CFGR1_DAC1_Msk
20355 #define GTZC_TZIC2_SR1_ADF1_Pos             GTZC_CFGR1_ADF1_Pos
20356 #define GTZC_TZIC2_SR1_ADF1_Msk             GTZC_CFGR1_ADF1_Msk
20357 
20358 /*******************  Bits definition for GTZC_TZIC2_SR2 register  ***************/
20359 #define GTZC_TZIC2_SR2_SYSCFG_Pos           GTZC_CFGR2_SYSCFG_Pos
20360 #define GTZC_TZIC2_SR2_SYSCFG_Msk           GTZC_CFGR2_SYSCFG_Msk
20361 #define GTZC_TZIC2_SR2_RTC_Pos              GTZC_CFGR2_RTC_Pos
20362 #define GTZC_TZIC2_SR2_RTC_Msk              GTZC_CFGR2_RTC_Msk
20363 #define GTZC_TZIC2_SR2_TAMP_Pos             GTZC_CFGR2_TAMP_Pos
20364 #define GTZC_TZIC2_SR2_TAMP_Msk             GTZC_CFGR2_TAMP_Msk
20365 #define GTZC_TZIC2_SR2_PWR_Pos              GTZC_CFGR2_PWR_Pos
20366 #define GTZC_TZIC2_SR2_PWR_Msk              GTZC_CFGR2_PWR_Msk
20367 #define GTZC_TZIC2_SR2_RCC_Pos              GTZC_CFGR2_RCC_Pos
20368 #define GTZC_TZIC2_SR2_RCC_Msk              GTZC_CFGR2_RCC_Msk
20369 #define GTZC_TZIC2_SR2_LPDMA1_Pos           GTZC_CFGR2_LPDMA1_Pos
20370 #define GTZC_TZIC2_SR2_LPDMA1_Msk           GTZC_CFGR2_LPDMA1_Msk
20371 #define GTZC_TZIC2_SR2_EXTI_Pos             GTZC_CFGR2_EXTI_Pos
20372 #define GTZC_TZIC2_SR2_EXTI_Msk             GTZC_CFGR2_EXTI_Msk
20373 #define GTZC_TZIC2_SR2_TZSC2_Pos            GTZC_CFGR2_TZSC2_Pos
20374 #define GTZC_TZIC2_SR2_TZSC2_Msk            GTZC_CFGR2_TZSC2_Msk
20375 #define GTZC_TZIC2_SR2_TZIC2_Pos            GTZC_CFGR2_TZIC2_Pos
20376 #define GTZC_TZIC2_SR2_TZIC2_Msk            GTZC_CFGR2_TZIC2_Msk
20377 #define GTZC_TZIC2_SR2_SRAM4_Pos            GTZC_CFGR2_SRAM4_Pos
20378 #define GTZC_TZIC2_SR2_SRAM4_Msk            GTZC_CFGR2_SRAM4_Msk
20379 #define GTZC_TZIC2_SR2_MPCBB4_REG_Pos       GTZC_CFGR2_MPCBB4_REG_Pos
20380 #define GTZC_TZIC2_SR2_MPCBB4_REG_Msk       GTZC_CFGR2_MPCBB4_REG_Msk
20381 
20382 /******************  Bits definition for GTZC_TZIC1_FCR1 register  ****************/
20383 #define GTZC_TZIC1_FCR1_TIM2_Pos            GTZC_CFGR1_TIM2_Pos
20384 #define GTZC_TZIC1_FCR1_TIM2_Msk            GTZC_CFGR1_TIM2_Msk
20385 #define GTZC_TZIC1_FCR1_TIM3_Pos            GTZC_CFGR1_TIM3_Pos
20386 #define GTZC_TZIC1_FCR1_TIM3_Msk            GTZC_CFGR1_TIM3_Msk
20387 #define GTZC_TZIC1_FCR1_TIM4_Pos            GTZC_CFGR1_TIM4_Pos
20388 #define GTZC_TZIC1_FCR1_TIM4_Msk            GTZC_CFGR1_TIM4_Msk
20389 #define GTZC_TZIC1_FCR1_TIM5_Pos            GTZC_CFGR1_TIM5_Pos
20390 #define GTZC_TZIC1_FCR1_TIM5_Msk            GTZC_CFGR1_TIM5_Msk
20391 #define GTZC_TZIC1_FCR1_TIM6_Pos            GTZC_CFGR1_TIM6_Pos
20392 #define GTZC_TZIC1_FCR1_TIM6_Msk            GTZC_CFGR1_TIM6_Msk
20393 #define GTZC_TZIC1_FCR1_TIM7_Pos            GTZC_CFGR1_TIM7_Pos
20394 #define GTZC_TZIC1_FCR1_TIM7_Msk            GTZC_CFGR1_TIM7_Msk
20395 #define GTZC_TZIC1_FCR1_WWDG_Pos            GTZC_CFGR1_WWDG_Pos
20396 #define GTZC_TZIC1_FCR1_WWDG_Msk            GTZC_CFGR1_WWDG_Msk
20397 #define GTZC_TZIC1_FCR1_IWDG_Pos            GTZC_CFGR1_IWDG_Pos
20398 #define GTZC_TZIC1_FCR1_IWDG_Msk            GTZC_CFGR1_IWDG_Msk
20399 #define GTZC_TZIC1_FCR1_SPI2_Pos            GTZC_CFGR1_SPI2_Pos
20400 #define GTZC_TZIC1_FCR1_SPI2_Msk            GTZC_CFGR1_SPI2_Msk
20401 #define GTZC_TZIC1_FCR1_USART2_Pos          GTZC_CFGR1_USART2_Pos
20402 #define GTZC_TZIC1_FCR1_USART2_Msk          GTZC_CFGR1_USART2_Msk
20403 #define GTZC_TZIC1_FCR1_USART3_Pos          GTZC_CFGR1_USART3_Pos
20404 #define GTZC_TZIC1_FCR1_USART3_Msk          GTZC_CFGR1_USART3_Msk
20405 #define GTZC_TZIC1_FCR1_UART4_Pos           GTZC_CFGR1_UART4_Pos
20406 #define GTZC_TZIC1_FCR1_UART4_Msk           GTZC_CFGR1_UART4_Msk
20407 #define GTZC_TZIC1_FCR1_UART5_Pos           GTZC_CFGR1_UART5_Pos
20408 #define GTZC_TZIC1_FCR1_UART5_Msk           GTZC_CFGR1_UART5_Msk
20409 #define GTZC_TZIC1_FCR1_I2C1_Pos            GTZC_CFGR1_I2C1_Pos
20410 #define GTZC_TZIC1_FCR1_I2C1_Msk            GTZC_CFGR1_I2C1_Msk
20411 #define GTZC_TZIC1_FCR1_I2C2_Pos            GTZC_CFGR1_I2C2_Pos
20412 #define GTZC_TZIC1_FCR1_I2C2_Msk            GTZC_CFGR1_I2C2_Msk
20413 #define GTZC_TZIC1_FCR1_CRS_Pos             GTZC_CFGR1_CRS_Pos
20414 #define GTZC_TZIC1_FCR1_CRS_Msk             GTZC_CFGR1_CRS_Msk
20415 #define GTZC_TZIC1_FCR1_I2C4_Pos            GTZC_CFGR1_I2C4_Pos
20416 #define GTZC_TZIC1_FCR1_I2C4_Msk            GTZC_CFGR1_I2C4_Msk
20417 #define GTZC_TZIC1_FCR1_LPTIM2_Pos          GTZC_CFGR1_LPTIM2_Pos
20418 #define GTZC_TZIC1_FCR1_LPTIM2_Msk          GTZC_CFGR1_LPTIM2_Msk
20419 #define GTZC_TZIC1_FCR1_FDCAN1_Pos          GTZC_CFGR1_FDCAN1_Pos
20420 #define GTZC_TZIC1_FCR1_FDCAN1_Msk          GTZC_CFGR1_FDCAN1_Msk
20421 #define GTZC_TZIC1_FCR1_UCPD1_Pos           GTZC_CFGR1_UCPD1_Pos
20422 #define GTZC_TZIC1_FCR1_UCPD1_Msk           GTZC_CFGR1_UCPD1_Msk
20423 
20424 /*******************  Bits definition for GTZC_TZIC1_FCR2 register  **************/
20425 #define GTZC_TZIC1_FCR2_TIM1_Pos            GTZC_CFGR2_TIM1_Pos
20426 #define GTZC_TZIC1_FCR2_TIM1_Msk            GTZC_CFGR2_TIM1_Msk
20427 #define GTZC_TZIC1_FCR2_SPI1_Pos            GTZC_CFGR2_SPI1_Pos
20428 #define GTZC_TZIC1_FCR2_SPI1_Msk            GTZC_CFGR2_SPI1_Msk
20429 #define GTZC_TZIC1_FCR2_TIM8_Pos            GTZC_CFGR2_TIM8_Pos
20430 #define GTZC_TZIC1_FCR2_TIM8_Msk            GTZC_CFGR2_TIM8_Msk
20431 #define GTZC_TZIC1_FCR2_USART1_Pos          GTZC_CFGR2_USART1_Pos
20432 #define GTZC_TZIC1_FCR2_USART1_Msk          GTZC_CFGR2_USART1_Msk
20433 #define GTZC_TZIC1_FCR2_TIM15_Pos           GTZC_CFGR2_TIM15_Pos
20434 #define GTZC_TZIC1_FCR2_TIM15_Msk           GTZC_CFGR2_TIM15_Msk
20435 #define GTZC_TZIC1_FCR2_TIM16_Pos           GTZC_CFGR2_TIM16_Pos
20436 #define GTZC_TZIC1_FCR2_TIM16_Msk           GTZC_CFGR2_TIM16_Msk
20437 #define GTZC_TZIC1_FCR2_TIM17_Pos           GTZC_CFGR2_TIM17_Pos
20438 #define GTZC_TZIC1_FCR2_TIM17_Msk           GTZC_CFGR2_TIM17_Msk
20439 #define GTZC_TZIC1_FCR2_SAI1_Pos            GTZC_CFGR2_SAI1_Pos
20440 #define GTZC_TZIC1_FCR2_SAI1_Msk            GTZC_CFGR2_SAI1_Msk
20441 #define GTZC_TZIC1_FCR2_SAI2_Pos            GTZC_CFGR2_SAI2_Pos
20442 #define GTZC_TZIC1_FCR2_SAI2_Msk            GTZC_CFGR2_SAI2_Msk
20443 
20444 /******************  Bits definition for GTZC_TZIC1_FCR3 register  ****************/
20445 #define GTZC_TZIC1_FCR3_MDF1_Pos            GTZC_CFGR3_MDF1_Pos
20446 #define GTZC_TZIC1_FCR3_MDF1_Msk            GTZC_CFGR3_MDF1_Msk
20447 #define GTZC_TZIC1_FCR3_CORDIC_Pos          GTZC_CFGR3_CORDIC_Pos
20448 #define GTZC_TZIC1_FCR3_CORDIC_Msk          GTZC_CFGR3_CORDIC_Msk
20449 #define GTZC_TZIC1_FCR3_FMAC_Pos            GTZC_CFGR3_FMAC_Pos
20450 #define GTZC_TZIC1_FCR3_FMAC_Msk            GTZC_CFGR3_FMAC_Msk
20451 #define GTZC_TZIC1_FCR3_CRC_Pos             GTZC_CFGR3_CRC_Pos
20452 #define GTZC_TZIC1_FCR3_CRC_Msk             GTZC_CFGR3_CRC_Msk
20453 #define GTZC_TZIC1_FCR3_TSC_Pos             GTZC_CFGR3_TSC_Pos
20454 #define GTZC_TZIC1_FCR3_TSC_Msk             GTZC_CFGR3_TSC_Msk
20455 #define GTZC_TZIC1_FCR3_DMA2D_Pos           GTZC_CFGR3_DMA2D_Pos
20456 #define GTZC_TZIC1_FCR3_DMA2D_Msk           GTZC_CFGR3_DMA2D_Msk
20457 #define GTZC_TZIC1_FCR3_ICACHE_REG_Pos      GTZC_CFGR3_ICACHE_REG_Pos
20458 #define GTZC_TZIC1_FCR3_ICACHE_REG_Msk      GTZC_CFGR3_ICACHE_REG_Msk
20459 #define GTZC_TZIC1_FCR3_DCACHE1_REG_Pos     GTZC_CFGR3_DCACHE1_REG_Pos
20460 #define GTZC_TZIC1_FCR3_DCACHE1_REG_Msk     GTZC_CFGR3_DCACHE1_REG_Msk
20461 #define GTZC_TZIC1_FCR3_ADC12_Pos           GTZC_CFGR3_ADC12_Pos
20462 #define GTZC_TZIC1_FCR3_ADC12_Msk           GTZC_CFGR3_ADC12_Msk
20463 #define GTZC_TZIC1_FCR3_DCMI_Pos            GTZC_CFGR3_DCMI_Pos
20464 #define GTZC_TZIC1_FCR3_DCMI_Msk            GTZC_CFGR3_DCMI_Msk
20465 #define GTZC_TZIC1_FCR3_OTG_Pos             GTZC_CFGR3_OTG_Pos
20466 #define GTZC_TZIC1_FCR3_OTG_Msk             GTZC_CFGR3_OTG_Msk
20467 #define GTZC_TZIC1_FCR3_AES_Pos             GTZC_CFGR3_AES_Pos
20468 #define GTZC_TZIC1_FCR3_AES_Msk             GTZC_CFGR3_AES_Msk
20469 #define GTZC_TZIC1_FCR3_HASH_Pos            GTZC_CFGR3_HASH_Pos
20470 #define GTZC_TZIC1_FCR3_HASH_Msk            GTZC_CFGR3_HASH_Msk
20471 #define GTZC_TZIC1_FCR3_RNG_Pos             GTZC_CFGR3_RNG_Pos
20472 #define GTZC_TZIC1_FCR3_RNG_Msk             GTZC_CFGR3_RNG_Msk
20473 #define GTZC_TZIC1_FCR3_PKA_Pos             GTZC_CFGR3_PKA_Pos
20474 #define GTZC_TZIC1_FCR3_PKA_Msk             GTZC_CFGR3_PKA_Msk
20475 #define GTZC_TZIC1_FCR3_SAES_Pos            GTZC_CFGR3_SAES_Pos
20476 #define GTZC_TZIC1_FCR3_SAES_Msk            GTZC_CFGR3_SAES_Msk
20477 #define GTZC_TZIC1_FCR3_OCTOSPIM_Pos        GTZC_CFGR3_OCTOSPIM_Pos
20478 #define GTZC_TZIC1_FCR3_OCTOSPIM_Msk        GTZC_CFGR3_OCTOSPIM_Msk
20479 #define GTZC_TZIC1_FCR3_SDMMC1_Pos          GTZC_CFGR3_SDMMC1_Pos
20480 #define GTZC_TZIC1_FCR3_SDMMC1_Msk          GTZC_CFGR3_SDMMC1_Msk
20481 #define GTZC_TZIC1_FCR3_SDMMC2_Pos          GTZC_CFGR3_SDMMC2_Pos
20482 #define GTZC_TZIC1_FCR3_SDMMC2_Msk          GTZC_CFGR3_SDMMC2_Msk
20483 #define GTZC_TZIC1_FCR3_FSMC_REG_Pos        GTZC_CFGR3_FSMC_REG_Pos
20484 #define GTZC_TZIC1_FCR3_FSMC_REG_Msk        GTZC_CFGR3_FSMC_REG_Msk
20485 #define GTZC_TZIC1_FCR3_OCTOSPI1_REG_Pos    GTZC_CFGR3_OCTOSPI1_REG_Pos
20486 #define GTZC_TZIC1_FCR3_OCTOSPI1_REG_Msk    GTZC_CFGR3_OCTOSPI1_REG_Msk
20487 #define GTZC_TZIC1_FCR3_OCTOSPI2_REG_Pos    GTZC_CFGR3_OCTOSPI2_REG_Pos
20488 #define GTZC_TZIC1_FCR3_OCTOSPI2_REG_Msk    GTZC_CFGR3_OCTOSPI2_REG_Msk
20489 #define GTZC_TZIC1_FCR3_RAMCFG_Pos          GTZC_CFGR3_RAMCFG_Pos
20490 #define GTZC_TZIC1_FCR3_RAMCFG_Msk          GTZC_CFGR3_RAMCFG_Msk
20491 
20492 /*******************  Bits definition for GTZC_TZIC1_FCR4 register  ***************/
20493 #define GTZC_TZIC1_FCR4_GPDMA1_Pos          GTZC_CFGR4_GPDMA1_Pos
20494 #define GTZC_TZIC1_FCR4_GPDMA1_Msk          GTZC_CFGR4_GPDMA1_Msk
20495 #define GTZC_TZIC1_FCR4_FLASH_REG_Pos       GTZC_CFGR4_FLASH_REG_Pos
20496 #define GTZC_TZIC1_FCR4_FLASH_REG_Msk       GTZC_CFGR4_FLASH_REG_Msk
20497 #define GTZC_TZIC1_FCR4_FLASH_Pos           GTZC_CFGR4_FLASH_Pos
20498 #define GTZC_TZIC1_FCR4_FLASH_Msk           GTZC_CFGR4_FLASH_Msk
20499 #define GTZC_TZIC1_FCR4_OTFDEC1_Pos         GTZC_CFGR4_OTFDEC1_Pos
20500 #define GTZC_TZIC1_FCR4_OTFDEC1_Msk         GTZC_CFGR4_OTFDEC1_Msk
20501 #define GTZC_TZIC1_FCR4_OTFDEC2_Pos         GTZC_CFGR4_OTFDEC2_Pos
20502 #define GTZC_TZIC1_FCR4_OTFDEC2_Msk         GTZC_CFGR4_OTFDEC2_Msk
20503 #define GTZC_TZIC1_FCR4_TZSC1_Pos           GTZC_CFGR4_TZSC1_Pos
20504 #define GTZC_TZIC1_FCR4_TZSC1_Msk           GTZC_CFGR4_TZSC1_Msk
20505 #define GTZC_TZIC1_FCR4_TZIC1_Pos           GTZC_CFGR4_TZIC1_Pos
20506 #define GTZC_TZIC1_FCR4_TZIC1_Msk           GTZC_CFGR4_TZIC1_Msk
20507 #define GTZC_TZIC1_FCR4_OCTOSPI1_MEM_Pos    GTZC_CFGR4_OCTOSPI1_MEM_Pos
20508 #define GTZC_TZIC1_FCR4_OCTOSPI1_MEM_Msk    GTZC_CFGR4_OCTOSPI1_MEM_Msk
20509 #define GTZC_TZIC1_FCR4_FSMC_MEM_Pos        GTZC_CFGR4_FSMC_MEM_Pos
20510 #define GTZC_TZIC1_FCR4_FSMC_MEM_Msk        GTZC_CFGR4_FSMC_MEM_Msk
20511 #define GTZC_TZIC1_FCR4_BKPSRAM_Pos         GTZC_CFGR4_BKPSRAM_Pos
20512 #define GTZC_TZIC1_FCR4_BKPSRAM_Msk         GTZC_CFGR4_BKPSRAM_Msk
20513 #define GTZC_TZIC1_FCR4_OCTOSPI2_MEM_Pos    GTZC_CFGR4_OCTOSPI2_MEM_Pos
20514 #define GTZC_TZIC1_FCR4_OCTOSPI2_MEM_Msk    GTZC_CFGR4_OCTOSPI2_MEM_Msk
20515 #define GTZC_TZIC1_FCR4_SRAM1_Pos           GTZC_CFGR4_SRAM1_Pos
20516 #define GTZC_TZIC1_FCR4_SRAM1_Msk           GTZC_CFGR4_SRAM1_Msk
20517 #define GTZC_TZIC1_FCR4_MPCBB1_REG_Pos      GTZC_CFGR4_MPCBB1_REG_Pos
20518 #define GTZC_TZIC1_FCR4_MPCBB1_REG_Msk      GTZC_CFGR4_MPCBB1_REG_Msk
20519 #define GTZC_TZIC1_FCR4_SRAM2_Pos           GTZC_CFGR4_SRAM2_Pos
20520 #define GTZC_TZIC1_FCR4_SRAM2_Msk           GTZC_CFGR4_SRAM2_Msk
20521 #define GTZC_TZIC1_FCR4_MPCBB2_REG_Pos      GTZC_CFGR4_MPCBB2_REG_Pos
20522 #define GTZC_TZIC1_FCR4_MPCBB2_REG_Msk      GTZC_CFGR4_MPCBB2_REG_Msk
20523 #define GTZC_TZIC1_FCR4_SRAM3_Pos           GTZC_CFGR4_SRAM3_Pos
20524 #define GTZC_TZIC1_FCR4_SRAM3_Msk           GTZC_CFGR4_SRAM3_Msk
20525 #define GTZC_TZIC1_FCR4_MPCBB3_REG_Pos      GTZC_CFGR4_MPCBB3_REG_Pos
20526 #define GTZC_TZIC1_FCR4_MPCBB3_REG_Msk      GTZC_CFGR4_MPCBB3_REG_Msk
20527 
20528 /*******************  Bits definition for GTZC_TZIC2_FCR1 register  ***************/
20529 #define GTZC_TZIC2_FCR1_SPI3_Pos            GTZC_CFGR1_SPI3_Pos
20530 #define GTZC_TZIC2_FCR1_SPI3_Msk            GTZC_CFGR1_SPI3_Msk
20531 #define GTZC_TZIC2_FCR1_LPUART1_Pos         GTZC_CFGR1_LPUART1_Pos
20532 #define GTZC_TZIC2_FCR1_LPUART1_Msk         GTZC_CFGR1_LPUART1_Msk
20533 #define GTZC_TZIC2_FCR1_I2C3_Pos            GTZC_CFGR1_I2C3_Pos
20534 #define GTZC_TZIC2_FCR1_I2C3_Msk            GTZC_CFGR1_I2C3_Msk
20535 #define GTZC_TZIC2_FCR1_LPTIM1_Pos          GTZC_CFGR1_LPTIM1_Pos
20536 #define GTZC_TZIC2_FCR1_LPTIM1_Msk          GTZC_CFGR1_LPTIM1_Msk
20537 #define GTZC_TZIC2_FCR1_LPTIM3_Pos          GTZC_CFGR1_LPTIM3_Pos
20538 #define GTZC_TZIC2_FCR1_LPTIM3_Msk          GTZC_CFGR1_LPTIM3_Msk
20539 #define GTZC_TZIC2_FCR1_LPTIM4_Pos          GTZC_CFGR1_LPTIM4_Pos
20540 #define GTZC_TZIC2_FCR1_LPTIM4_Msk          GTZC_CFGR1_LPTIM4_Msk
20541 #define GTZC_TZIC2_FCR1_OPAMP_Pos           GTZC_CFGR1_OPAMP_Pos
20542 #define GTZC_TZIC2_FCR1_OPAMP_Msk           GTZC_CFGR1_OPAMP_Msk
20543 #define GTZC_TZIC2_FCR1_COMP_Pos            GTZC_CFGR1_COMP_Pos
20544 #define GTZC_TZIC2_FCR1_COMP_Msk            GTZC_CFGR1_COMP_Msk
20545 #define GTZC_TZIC2_FCR1_ADC4_Pos            GTZC_CFGR1_ADC4_Pos
20546 #define GTZC_TZIC2_FCR1_ADC4_Msk            GTZC_CFGR1_ADC4_Msk
20547 #define GTZC_TZIC2_FCR1_VREFBUF_Pos         GTZC_CFGR1_VREFBUF_Pos
20548 #define GTZC_TZIC2_FCR1_VREFBUF_Msk         GTZC_CFGR1_VREFBUF_Msk
20549 #define GTZC_TZIC2_FCR1_DAC1_Pos            GTZC_CFGR1_DAC1_Pos
20550 #define GTZC_TZIC2_FCR1_DAC1_Msk            GTZC_CFGR1_DAC1_Msk
20551 #define GTZC_TZIC2_FCR1_ADF1_Pos            GTZC_CFGR1_ADF1_Pos
20552 #define GTZC_TZIC2_FCR1_ADF1_Msk            GTZC_CFGR1_ADF1_Msk
20553 
20554 /*******************  Bits definition for GTZC_TZIC2_FCR2 register  ***************/
20555 #define GTZC_TZIC2_FCR2_SYSCFG_Pos          GTZC_CFGR2_SYSCFG_Pos
20556 #define GTZC_TZIC2_FCR2_SYSCFG_Msk          GTZC_CFGR2_SYSCFG_Msk
20557 #define GTZC_TZIC2_FCR2_RTC_Pos             GTZC_CFGR2_RTC_Pos
20558 #define GTZC_TZIC2_FCR2_RTC_Msk             GTZC_CFGR2_RTC_Msk
20559 #define GTZC_TZIC2_FCR2_TAMP_Pos            GTZC_CFGR2_TAMP_Pos
20560 #define GTZC_TZIC2_FCR2_TAMP_Msk            GTZC_CFGR2_TAMP_Msk
20561 #define GTZC_TZIC2_FCR2_PWR_Pos             GTZC_CFGR2_PWR_Pos
20562 #define GTZC_TZIC2_FCR2_PWR_Msk             GTZC_CFGR2_PWR_Msk
20563 #define GTZC_TZIC2_FCR2_RCC_Pos             GTZC_CFGR2_RCC_Pos
20564 #define GTZC_TZIC2_FCR2_RCC_Msk             GTZC_CFGR2_RCC_Msk
20565 #define GTZC_TZIC2_FCR2_LPDMA1_Pos          GTZC_CFGR2_LPDMA1_Pos
20566 #define GTZC_TZIC2_FCR2_LPDMA1_Msk          GTZC_CFGR2_LPDMA1_Msk
20567 #define GTZC_TZIC2_FCR2_EXTI_Pos            GTZC_CFGR2_EXTI_Pos
20568 #define GTZC_TZIC2_FCR2_EXTI_Msk            GTZC_CFGR2_EXTI_Msk
20569 #define GTZC_TZIC2_FCR2_TZSC2_Pos           GTZC_CFGR2_TZSC2_Pos
20570 #define GTZC_TZIC2_FCR2_TZSC2_Msk           GTZC_CFGR2_TZSC2_Msk
20571 #define GTZC_TZIC2_FCR2_TZIC2_Pos           GTZC_CFGR2_TZIC2_Pos
20572 #define GTZC_TZIC2_FCR2_TZIC2_Msk           GTZC_CFGR2_TZIC2_Msk
20573 #define GTZC_TZIC2_FCR2_SRAM4_Pos           GTZC_CFGR2_SRAM4_Pos
20574 #define GTZC_TZIC2_FCR2_SRAM4_Msk           GTZC_CFGR2_SRAM4_Msk
20575 #define GTZC_TZIC2_FCR2_MPCBB4_REG_Pos      GTZC_CFGR2_MPCBB4_REG_Pos
20576 #define GTZC_TZIC2_FCR2_MPCBB4_REG_Msk      GTZC_CFGR2_MPCBB4_REG_Msk
20577 
20578 /*******************  Bits definition for GTZC_MPCBB_CR register  *****************/
20579 #define GTZC_MPCBB_CR_GLOCK_Pos             (0U)
20580 #define GTZC_MPCBB_CR_GLOCK_Msk             (0x01UL << GTZC_MPCBB_CR_GLOCK_Pos)       /*!< 0x00000001 */
20581 #define GTZC_MPCBB_CR_INVSECSTATE_Pos       (30U)
20582 #define GTZC_MPCBB_CR_INVSECSTATE_Msk       (0x01UL << GTZC_MPCBB_CR_INVSECSTATE_Pos) /*!< 0x40000000 */
20583 #define GTZC_MPCBB_CR_SRWILADIS_Pos         (31U)
20584 #define GTZC_MPCBB_CR_SRWILADIS_Msk         (0x01UL << GTZC_MPCBB_CR_SRWILADIS_Pos) /*!< 0x80000000 */
20585 
20586 /*******************  Bits definition for GTZC_MPCBB_CFGLOCKR1 register  ************/
20587 #define GTZC_MPCBB_CFGLOCKR1_SPLCK0_Pos      (0U)
20588 #define GTZC_MPCBB_CFGLOCKR1_SPLCK0_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK0_Pos) /*!< 0x00000001 */
20589 #define GTZC_MPCBB_CFGLOCKR1_SPLCK1_Pos      (1U)
20590 #define GTZC_MPCBB_CFGLOCKR1_SPLCK1_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK1_Pos) /*!< 0x00000002 */
20591 #define GTZC_MPCBB_CFGLOCKR1_SPLCK2_Pos      (2U)
20592 #define GTZC_MPCBB_CFGLOCKR1_SPLCK2_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK2_Pos) /*!< 0x00000004 */
20593 #define GTZC_MPCBB_CFGLOCKR1_SPLCK3_Pos      (3U)
20594 #define GTZC_MPCBB_CFGLOCKR1_SPLCK3_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK3_Pos) /*!< 0x00000008 */
20595 #define GTZC_MPCBB_CFGLOCKR1_SPLCK4_Pos      (4U)
20596 #define GTZC_MPCBB_CFGLOCKR1_SPLCK4_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK4_Pos) /*!< 0x00000010 */
20597 #define GTZC_MPCBB_CFGLOCKR1_SPLCK5_Pos      (5U)
20598 #define GTZC_MPCBB_CFGLOCKR1_SPLCK5_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK5_Pos) /*!< 0x00000020 */
20599 #define GTZC_MPCBB_CFGLOCKR1_SPLCK6_Pos      (6U)
20600 #define GTZC_MPCBB_CFGLOCKR1_SPLCK6_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK6_Pos) /*!< 0x00000040 */
20601 #define GTZC_MPCBB_CFGLOCKR1_SPLCK7_Pos      (7U)
20602 #define GTZC_MPCBB_CFGLOCKR1_SPLCK7_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK7_Pos) /*!< 0x00000080 */
20603 #define GTZC_MPCBB_CFGLOCKR1_SPLCK8_Pos      (8U)
20604 #define GTZC_MPCBB_CFGLOCKR1_SPLCK8_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK8_Pos) /*!< 0x00000100 */
20605 #define GTZC_MPCBB_CFGLOCKR1_SPLCK9_Pos      (9U)
20606 #define GTZC_MPCBB_CFGLOCKR1_SPLCK9_Msk      (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK9_Pos) /*!< 0x00000200 */
20607 #define GTZC_MPCBB_CFGLOCKR1_SPLCK10_Pos     (10U)
20608 #define GTZC_MPCBB_CFGLOCKR1_SPLCK10_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK10_Pos) /*!< 0x00000400 */
20609 #define GTZC_MPCBB_CFGLOCKR1_SPLCK11_Pos     (11U)
20610 #define GTZC_MPCBB_CFGLOCKR1_SPLCK11_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK11_Pos) /*!< 0x00000800 */
20611 #define GTZC_MPCBB_CFGLOCKR1_SPLCK12_Pos     (12U)
20612 #define GTZC_MPCBB_CFGLOCKR1_SPLCK12_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK12_Pos) /*!< 0x00001000 */
20613 #define GTZC_MPCBB_CFGLOCKR1_SPLCK13_Pos     (13U)
20614 #define GTZC_MPCBB_CFGLOCKR1_SPLCK13_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK13_Pos) /*!< 0x00002000 */
20615 #define GTZC_MPCBB_CFGLOCKR1_SPLCK14_Pos     (14U)
20616 #define GTZC_MPCBB_CFGLOCKR1_SPLCK14_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK14_Pos) /*!< 0x00004000 */
20617 #define GTZC_MPCBB_CFGLOCKR1_SPLCK15_Pos     (15U)
20618 #define GTZC_MPCBB_CFGLOCKR1_SPLCK15_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK15_Pos) /*!< 0x00008000 */
20619 #define GTZC_MPCBB_CFGLOCKR1_SPLCK16_Pos     (16U)
20620 #define GTZC_MPCBB_CFGLOCKR1_SPLCK16_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK16_Pos) /*!< 0x00010000 */
20621 #define GTZC_MPCBB_CFGLOCKR1_SPLCK17_Pos     (17U)
20622 #define GTZC_MPCBB_CFGLOCKR1_SPLCK17_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK17_Pos) /*!< 0x00020000 */
20623 #define GTZC_MPCBB_CFGLOCKR1_SPLCK18_Pos     (18U)
20624 #define GTZC_MPCBB_CFGLOCKR1_SPLCK18_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK18_Pos) /*!< 0x00040000 */
20625 #define GTZC_MPCBB_CFGLOCKR1_SPLCK19_Pos     (19U)
20626 #define GTZC_MPCBB_CFGLOCKR1_SPLCK19_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK19_Pos) /*!< 0x00080000 */
20627 #define GTZC_MPCBB_CFGLOCKR1_SPLCK20_Pos     (20U)
20628 #define GTZC_MPCBB_CFGLOCKR1_SPLCK20_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK20_Pos) /*!< 0x00100000 */
20629 #define GTZC_MPCBB_CFGLOCKR1_SPLCK21_Pos     (21U)
20630 #define GTZC_MPCBB_CFGLOCKR1_SPLCK21_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK21_Pos) /*!< 0x00200000 */
20631 #define GTZC_MPCBB_CFGLOCKR1_SPLCK22_Pos     (22U)
20632 #define GTZC_MPCBB_CFGLOCKR1_SPLCK22_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK22_Pos) /*!< 0x00400000 */
20633 #define GTZC_MPCBB_CFGLOCKR1_SPLCK23_Pos     (23U)
20634 #define GTZC_MPCBB_CFGLOCKR1_SPLCK23_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK23_Pos) /*!< 0x00800000 */
20635 #define GTZC_MPCBB_CFGLOCKR1_SPLCK24_Pos     (24U)
20636 #define GTZC_MPCBB_CFGLOCKR1_SPLCK24_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK24_Pos) /*!< 0x01000000 */
20637 #define GTZC_MPCBB_CFGLOCKR1_SPLCK25_Pos     (25U)
20638 #define GTZC_MPCBB_CFGLOCKR1_SPLCK25_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK25_Pos) /*!< 0x02000000 */
20639 #define GTZC_MPCBB_CFGLOCKR1_SPLCK26_Pos     (26U)
20640 #define GTZC_MPCBB_CFGLOCKR1_SPLCK26_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK26_Pos) /*!< 0x04000000 */
20641 #define GTZC_MPCBB_CFGLOCKR1_SPLCK27_Pos     (27U)
20642 #define GTZC_MPCBB_CFGLOCKR1_SPLCK27_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK27_Pos) /*!< 0x08000000 */
20643 #define GTZC_MPCBB_CFGLOCKR1_SPLCK28_Pos     (28U)
20644 #define GTZC_MPCBB_CFGLOCKR1_SPLCK28_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK28_Pos) /*!< 0x10000000 */
20645 #define GTZC_MPCBB_CFGLOCKR1_SPLCK29_Pos     (29U)
20646 #define GTZC_MPCBB_CFGLOCKR1_SPLCK29_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK29_Pos) /*!< 0x20000000 */
20647 #define GTZC_MPCBB_CFGLOCKR1_SPLCK30_Pos     (30U)
20648 #define GTZC_MPCBB_CFGLOCKR1_SPLCK30_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK30_Pos) /*!< 0x40000000 */
20649 #define GTZC_MPCBB_CFGLOCKR1_SPLCK31_Pos     (31U)
20650 #define GTZC_MPCBB_CFGLOCKR1_SPLCK31_Msk     (0x01UL << GTZC_MPCBB_CFGLOCKR1_SPLCK31_Pos) /*!< 0x80000000 */
20651 
20652 
20653 /******************************************************************************/
20654 /*                                                                            */
20655 /*                                    UCPD                                    */
20656 /*                                                                            */
20657 /******************************************************************************/
20658 /********************  Bits definition for UCPD_CFG1 register  *******************/
20659 #define UCPD_CFG1_HBITCLKDIV_Pos            (0U)
20660 #define UCPD_CFG1_HBITCLKDIV_Msk            (0x3FUL << UCPD_CFG1_HBITCLKDIV_Pos)    /*!< 0x0000003F */
20661 #define UCPD_CFG1_HBITCLKDIV                UCPD_CFG1_HBITCLKDIV_Msk                /*!< Number of cycles (minus 1) for a half bit clock */
20662 #define UCPD_CFG1_HBITCLKDIV_0              (0x01UL << UCPD_CFG1_HBITCLKDIV_Pos)    /*!< 0x00000001 */
20663 #define UCPD_CFG1_HBITCLKDIV_1              (0x02UL << UCPD_CFG1_HBITCLKDIV_Pos)    /*!< 0x00000002 */
20664 #define UCPD_CFG1_HBITCLKDIV_2              (0x04UL << UCPD_CFG1_HBITCLKDIV_Pos)    /*!< 0x00000004 */
20665 #define UCPD_CFG1_HBITCLKDIV_3              (0x08UL << UCPD_CFG1_HBITCLKDIV_Pos)    /*!< 0x00000008 */
20666 #define UCPD_CFG1_HBITCLKDIV_4              (0x10UL << UCPD_CFG1_HBITCLKDIV_Pos)    /*!< 0x00000010 */
20667 #define UCPD_CFG1_HBITCLKDIV_5              (0x20UL << UCPD_CFG1_HBITCLKDIV_Pos)    /*!< 0x00000020 */
20668 #define UCPD_CFG1_IFRGAP_Pos                (6U)
20669 #define UCPD_CFG1_IFRGAP_Msk                (0x1FUL << UCPD_CFG1_IFRGAP_Pos)        /*!< 0x000007C0 */
20670 #define UCPD_CFG1_IFRGAP                    UCPD_CFG1_IFRGAP_Msk                    /*!< Clock divider value to generates Interframe gap */
20671 #define UCPD_CFG1_IFRGAP_0                  (0x01UL << UCPD_CFG1_IFRGAP_Pos)        /*!< 0x00000040 */
20672 #define UCPD_CFG1_IFRGAP_1                  (0x02UL << UCPD_CFG1_IFRGAP_Pos)        /*!< 0x00000080 */
20673 #define UCPD_CFG1_IFRGAP_2                  (0x04UL << UCPD_CFG1_IFRGAP_Pos)        /*!< 0x00000100 */
20674 #define UCPD_CFG1_IFRGAP_3                  (0x08UL << UCPD_CFG1_IFRGAP_Pos)        /*!< 0x00000200 */
20675 #define UCPD_CFG1_IFRGAP_4                  (0x10UL << UCPD_CFG1_IFRGAP_Pos)        /*!< 0x00000400 */
20676 #define UCPD_CFG1_TRANSWIN_Pos              (11U)
20677 #define UCPD_CFG1_TRANSWIN_Msk              (0x1FUL << UCPD_CFG1_TRANSWIN_Pos)      /*!< 0x0000F800 */
20678 #define UCPD_CFG1_TRANSWIN                  UCPD_CFG1_TRANSWIN_Msk                  /*!< Number of cycles (minus 1) of the half bit clock */
20679 #define UCPD_CFG1_TRANSWIN_0                (0x01UL << UCPD_CFG1_TRANSWIN_Pos)      /*!< 0x00000800 */
20680 #define UCPD_CFG1_TRANSWIN_1                (0x02UL << UCPD_CFG1_TRANSWIN_Pos)      /*!< 0x00001000 */
20681 #define UCPD_CFG1_TRANSWIN_2                (0x04UL << UCPD_CFG1_TRANSWIN_Pos)      /*!< 0x00002000 */
20682 #define UCPD_CFG1_TRANSWIN_3                (0x08UL << UCPD_CFG1_TRANSWIN_Pos)      /*!< 0x00004000 */
20683 #define UCPD_CFG1_TRANSWIN_4                (0x10UL << UCPD_CFG1_TRANSWIN_Pos)      /*!< 0x00008000 */
20684 #define UCPD_CFG1_PSC_UCPDCLK_Pos           (17U)
20685 #define UCPD_CFG1_PSC_UCPDCLK_Msk           (0x7UL << UCPD_CFG1_PSC_UCPDCLK_Pos)    /*!< 0x000E0000 */
20686 #define UCPD_CFG1_PSC_UCPDCLK               UCPD_CFG1_PSC_UCPDCLK_Msk               /*!< Prescaler for UCPDCLK */
20687 #define UCPD_CFG1_PSC_UCPDCLK_0             (0x1UL << UCPD_CFG1_PSC_UCPDCLK_Pos)    /*!< 0x00020000 */
20688 #define UCPD_CFG1_PSC_UCPDCLK_1             (0x2UL << UCPD_CFG1_PSC_UCPDCLK_Pos)    /*!< 0x00040000 */
20689 #define UCPD_CFG1_PSC_UCPDCLK_2             (0x4UL << UCPD_CFG1_PSC_UCPDCLK_Pos)    /*!< 0x00080000 */
20690 #define UCPD_CFG1_RXORDSETEN_Pos            (20U)
20691 #define UCPD_CFG1_RXORDSETEN_Msk            (0x1FFUL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x1FF00000 */
20692 #define UCPD_CFG1_RXORDSETEN                UCPD_CFG1_RXORDSETEN_Msk                /*!< Receiver ordered set detection enable */
20693 #define UCPD_CFG1_RXORDSETEN_0              (0x001UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x00100000 */
20694 #define UCPD_CFG1_RXORDSETEN_1              (0x002UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x00200000 */
20695 #define UCPD_CFG1_RXORDSETEN_2              (0x004UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x00400000 */
20696 #define UCPD_CFG1_RXORDSETEN_3              (0x008UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x00800000 */
20697 #define UCPD_CFG1_RXORDSETEN_4              (0x010UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x01000000 */
20698 #define UCPD_CFG1_RXORDSETEN_5              (0x020UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x02000000 */
20699 #define UCPD_CFG1_RXORDSETEN_6              (0x040UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x04000000 */
20700 #define UCPD_CFG1_RXORDSETEN_7              (0x080UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x08000000 */
20701 #define UCPD_CFG1_RXORDSETEN_8              (0x100UL << UCPD_CFG1_RXORDSETEN_Pos)   /*!< 0x10000000 */
20702 #define UCPD_CFG1_TXDMAEN_Pos               (29U)
20703 #define UCPD_CFG1_TXDMAEN_Msk               (0x1UL << UCPD_CFG1_TXDMAEN_Pos)        /*!< 0x20000000 */
20704 #define UCPD_CFG1_TXDMAEN                   UCPD_CFG1_TXDMAEN_Msk                   /*!< DMA transmission requests enable   */
20705 #define UCPD_CFG1_RXDMAEN_Pos               (30U)
20706 #define UCPD_CFG1_RXDMAEN_Msk               (0x1UL << UCPD_CFG1_RXDMAEN_Pos)        /*!< 0x40000000 */
20707 #define UCPD_CFG1_RXDMAEN                   UCPD_CFG1_RXDMAEN_Msk                   /*!< DMA reception requests enable   */
20708 #define UCPD_CFG1_UCPDEN_Pos                (31U)
20709 #define UCPD_CFG1_UCPDEN_Msk                (0x1UL << UCPD_CFG1_UCPDEN_Pos)         /*!< 0x80000000 */
20710 #define UCPD_CFG1_UCPDEN                    UCPD_CFG1_UCPDEN_Msk                    /*!< USB Power Delivery Block Enable */
20711 
20712 /********************  Bits definition for UCPD_CFG2 register  *******************/
20713 #define UCPD_CFG2_RXFILTDIS_Pos             (0U)
20714 #define UCPD_CFG2_RXFILTDIS_Msk             (0x1UL << UCPD_CFG2_RXFILTDIS_Pos)      /*!< 0x00000001 */
20715 #define UCPD_CFG2_RXFILTDIS                 UCPD_CFG2_RXFILTDIS_Msk                 /*!< Enables an Rx pre-filter for the BMC decoder */
20716 #define UCPD_CFG2_RXFILT2N3_Pos             (1U)
20717 #define UCPD_CFG2_RXFILT2N3_Msk             (0x1UL << UCPD_CFG2_RXFILT2N3_Pos)      /*!< 0x00000002 */
20718 #define UCPD_CFG2_RXFILT2N3                 UCPD_CFG2_RXFILT2N3_Msk                 /*!< Controls the sampling method for an Rx pre-filter for the BMC decode */
20719 #define UCPD_CFG2_FORCECLK_Pos              (2U)
20720 #define UCPD_CFG2_FORCECLK_Msk              (0x1UL << UCPD_CFG2_FORCECLK_Pos)       /*!< 0x00000004 */
20721 #define UCPD_CFG2_FORCECLK                  UCPD_CFG2_FORCECLK_Msk                  /*!< Controls forcing of the clock request UCPDCLK_REQ */
20722 #define UCPD_CFG2_WUPEN_Pos                 (3U)
20723 #define UCPD_CFG2_WUPEN_Msk                 (0x1UL << UCPD_CFG2_WUPEN_Pos)          /*!< 0x00000008 */
20724 #define UCPD_CFG2_WUPEN                     UCPD_CFG2_WUPEN_Msk                     /*!< Wakeup from STOP enable */
20725 #define UCPD_CFG2_RXAFILTEN_Pos             (8U)
20726 #define UCPD_CFG2_RXAFILTEN_Msk             (0x1UL << UCPD_CFG2_RXAFILTEN_Pos)      /*!< 0x00000100 */
20727 #define UCPD_CFG2_RXAFILTEN                 UCPD_CFG2_RXAFILTEN_Msk                 /*!< RX Analog Filter enable */
20728 
20729 /********************  Bits definition for UCPD_CR register  ********************/
20730 #define UCPD_CR_TXMODE_Pos                  (0U)
20731 #define UCPD_CR_TXMODE_Msk                  (0x3UL << UCPD_CR_TXMODE_Pos)           /*!< 0x00000003 */
20732 #define UCPD_CR_TXMODE                      UCPD_CR_TXMODE_Msk                      /*!< Type of Tx packet  */
20733 #define UCPD_CR_TXMODE_0                    (0x1UL << UCPD_CR_TXMODE_Pos)           /*!< 0x00000001 */
20734 #define UCPD_CR_TXMODE_1                    (0x2UL << UCPD_CR_TXMODE_Pos)           /*!< 0x00000002 */
20735 #define UCPD_CR_TXSEND_Pos                  (2U)
20736 #define UCPD_CR_TXSEND_Msk                  (0x1UL << UCPD_CR_TXSEND_Pos)           /*!< 0x00000004 */
20737 #define UCPD_CR_TXSEND                      UCPD_CR_TXSEND_Msk                      /*!< Type of Tx packet  */
20738 #define UCPD_CR_TXHRST_Pos                  (3U)
20739 #define UCPD_CR_TXHRST_Msk                  (0x1UL << UCPD_CR_TXHRST_Pos)           /*!< 0x00000008 */
20740 #define UCPD_CR_TXHRST                      UCPD_CR_TXHRST_Msk                      /*!< Command to send a Tx Hard Reset  */
20741 #define UCPD_CR_RXMODE_Pos                  (4U)
20742 #define UCPD_CR_RXMODE_Msk                  (0x1UL << UCPD_CR_RXMODE_Pos)           /*!< 0x00000010 */
20743 #define UCPD_CR_RXMODE                      UCPD_CR_RXMODE_Msk                      /*!< Receiver mode  */
20744 #define UCPD_CR_PHYRXEN_Pos                 (5U)
20745 #define UCPD_CR_PHYRXEN_Msk                 (0x1UL << UCPD_CR_PHYRXEN_Pos)          /*!< 0x00000020 */
20746 #define UCPD_CR_PHYRXEN                     UCPD_CR_PHYRXEN_Msk                     /*!< Controls enable of USB Power Delivery receiver  */
20747 #define UCPD_CR_PHYCCSEL_Pos                (6U)
20748 #define UCPD_CR_PHYCCSEL_Msk                (0x1UL << UCPD_CR_PHYCCSEL_Pos)         /*!< 0x00000040 */
20749 #define UCPD_CR_PHYCCSEL                    UCPD_CR_PHYCCSEL_Msk                    /*!<  */
20750 #define UCPD_CR_ANASUBMODE_Pos              (7U)
20751 #define UCPD_CR_ANASUBMODE_Msk              (0x3UL << UCPD_CR_ANASUBMODE_Pos)       /*!< 0x00000180 */
20752 #define UCPD_CR_ANASUBMODE                  UCPD_CR_ANASUBMODE_Msk                  /*!< Analog PHY sub-mode   */
20753 #define UCPD_CR_ANASUBMODE_0                (0x1UL << UCPD_CR_ANASUBMODE_Pos)       /*!< 0x00000080 */
20754 #define UCPD_CR_ANASUBMODE_1                (0x2UL << UCPD_CR_ANASUBMODE_Pos)       /*!< 0x00000100 */
20755 #define UCPD_CR_ANAMODE_Pos                 (9U)
20756 #define UCPD_CR_ANAMODE_Msk                 (0x1UL << UCPD_CR_ANAMODE_Pos)          /*!< 0x00000200 */
20757 #define UCPD_CR_ANAMODE                     UCPD_CR_ANAMODE_Msk                     /*!< Analog PHY working mode   */
20758 #define UCPD_CR_CCENABLE_Pos                (10U)
20759 #define UCPD_CR_CCENABLE_Msk                (0x3UL << UCPD_CR_CCENABLE_Pos)         /*!< 0x00000C00 */
20760 #define UCPD_CR_CCENABLE                    UCPD_CR_CCENABLE_Msk                    /*!<  */
20761 #define UCPD_CR_CCENABLE_0                  (0x1UL << UCPD_CR_CCENABLE_Pos)         /*!< 0x00000400 */
20762 #define UCPD_CR_CCENABLE_1                  (0x2UL << UCPD_CR_CCENABLE_Pos)         /*!< 0x00000800 */
20763 #define UCPD_CR_FRSRXEN_Pos                 (16U)
20764 #define UCPD_CR_FRSRXEN_Msk                 (0x1UL << UCPD_CR_FRSRXEN_Pos)          /*!< 0x00010000 */
20765 #define UCPD_CR_FRSRXEN                     UCPD_CR_FRSRXEN_Msk                     /*!< Enable FRS request detection function */
20766 #define UCPD_CR_FRSTX_Pos                   (17U)
20767 #define UCPD_CR_FRSTX_Msk                   (0x1UL << UCPD_CR_FRSTX_Pos)            /*!< 0x00020000 */
20768 #define UCPD_CR_FRSTX                       UCPD_CR_FRSTX_Msk                       /*!< Signal Fast Role Swap request */
20769 #define UCPD_CR_RDCH_Pos                    (18U)
20770 #define UCPD_CR_RDCH_Msk                    (0x1UL << UCPD_CR_RDCH_Pos)             /*!< 0x00040000 */
20771 #define UCPD_CR_RDCH                        UCPD_CR_RDCH_Msk                        /*!<  */
20772 #define UCPD_CR_CC1TCDIS_Pos                (20U)
20773 #define UCPD_CR_CC1TCDIS_Msk                (0x1UL << UCPD_CR_CC1TCDIS_Pos)         /*!< 0x00100000 */
20774 #define UCPD_CR_CC1TCDIS                    UCPD_CR_CC1TCDIS_Msk                    /*!< The bit allows the Type-C detector for CC0 to be disabled. */
20775 #define UCPD_CR_CC2TCDIS_Pos                (21U)
20776 #define UCPD_CR_CC2TCDIS_Msk                (0x1UL << UCPD_CR_CC2TCDIS_Pos)         /*!< 0x00200000 */
20777 #define UCPD_CR_CC2TCDIS                    UCPD_CR_CC2TCDIS_Msk                    /*!< The bit allows the Type-C detector for CC2 to be disabled. */
20778 
20779 /********************  Bits definition for UCPD_IMR register  *******************/
20780 #define UCPD_IMR_TXISIE_Pos                 (0U)
20781 #define UCPD_IMR_TXISIE_Msk                 (0x1UL << UCPD_IMR_TXISIE_Pos)          /*!< 0x00000001 */
20782 #define UCPD_IMR_TXISIE                     UCPD_IMR_TXISIE_Msk                     /*!< Enable TXIS interrupt  */
20783 #define UCPD_IMR_TXMSGDISCIE_Pos            (1U)
20784 #define UCPD_IMR_TXMSGDISCIE_Msk            (0x1UL << UCPD_IMR_TXMSGDISCIE_Pos)     /*!< 0x00000002 */
20785 #define UCPD_IMR_TXMSGDISCIE                UCPD_IMR_TXMSGDISCIE_Msk                /*!< Enable TXMSGDISC interrupt  */
20786 #define UCPD_IMR_TXMSGSENTIE_Pos            (2U)
20787 #define UCPD_IMR_TXMSGSENTIE_Msk            (0x1UL << UCPD_IMR_TXMSGSENTIE_Pos)     /*!< 0x00000004 */
20788 #define UCPD_IMR_TXMSGSENTIE                UCPD_IMR_TXMSGSENTIE_Msk                /*!< Enable TXMSGSENT interrupt  */
20789 #define UCPD_IMR_TXMSGABTIE_Pos             (3U)
20790 #define UCPD_IMR_TXMSGABTIE_Msk             (0x1UL << UCPD_IMR_TXMSGABTIE_Pos)      /*!< 0x00000008 */
20791 #define UCPD_IMR_TXMSGABTIE                 UCPD_IMR_TXMSGABTIE_Msk                 /*!< Enable TXMSGABT interrupt  */
20792 #define UCPD_IMR_HRSTDISCIE_Pos             (4U)
20793 #define UCPD_IMR_HRSTDISCIE_Msk             (0x1UL << UCPD_IMR_HRSTDISCIE_Pos)      /*!< 0x00000010 */
20794 #define UCPD_IMR_HRSTDISCIE                 UCPD_IMR_HRSTDISCIE_Msk                 /*!< Enable HRSTDISC interrupt  */
20795 #define UCPD_IMR_HRSTSENTIE_Pos             (5U)
20796 #define UCPD_IMR_HRSTSENTIE_Msk             (0x1UL << UCPD_IMR_HRSTSENTIE_Pos)      /*!< 0x00000020 */
20797 #define UCPD_IMR_HRSTSENTIE                 UCPD_IMR_HRSTSENTIE_Msk                 /*!< Enable HRSTSENT interrupt  */
20798 #define UCPD_IMR_TXUNDIE_Pos                (6U)
20799 #define UCPD_IMR_TXUNDIE_Msk                (0x1UL << UCPD_IMR_TXUNDIE_Pos)         /*!< 0x00000040 */
20800 #define UCPD_IMR_TXUNDIE                    UCPD_IMR_TXUNDIE_Msk                    /*!< Enable TXUND interrupt  */
20801 #define UCPD_IMR_RXNEIE_Pos                 (8U)
20802 #define UCPD_IMR_RXNEIE_Msk                 (0x1UL << UCPD_IMR_RXNEIE_Pos)          /*!< 0x00000100 */
20803 #define UCPD_IMR_RXNEIE                     UCPD_IMR_RXNEIE_Msk                     /*!< Enable RXNE interrupt  */
20804 #define UCPD_IMR_RXORDDETIE_Pos             (9U)
20805 #define UCPD_IMR_RXORDDETIE_Msk             (0x1UL << UCPD_IMR_RXORDDETIE_Pos)      /*!< 0x00000200 */
20806 #define UCPD_IMR_RXORDDETIE                 UCPD_IMR_RXORDDETIE_Msk                 /*!< Enable RXORDDET interrupt  */
20807 #define UCPD_IMR_RXHRSTDETIE_Pos            (10U)
20808 #define UCPD_IMR_RXHRSTDETIE_Msk            (0x1UL << UCPD_IMR_RXHRSTDETIE_Pos)     /*!< 0x00000400 */
20809 #define UCPD_IMR_RXHRSTDETIE                UCPD_IMR_RXHRSTDETIE_Msk                /*!< Enable RXHRSTDET interrupt  */
20810 #define UCPD_IMR_RXOVRIE_Pos                (11U)
20811 #define UCPD_IMR_RXOVRIE_Msk                (0x1UL << UCPD_IMR_RXOVRIE_Pos)         /*!< 0x00000800 */
20812 #define UCPD_IMR_RXOVRIE                    UCPD_IMR_RXOVRIE_Msk                    /*!< Enable RXOVR interrupt  */
20813 #define UCPD_IMR_RXMSGENDIE_Pos             (12U)
20814 #define UCPD_IMR_RXMSGENDIE_Msk             (0x1UL << UCPD_IMR_RXMSGENDIE_Pos)      /*!< 0x00001000 */
20815 #define UCPD_IMR_RXMSGENDIE                 UCPD_IMR_RXMSGENDIE_Msk                 /*!< Enable RXMSGEND interrupt  */
20816 #define UCPD_IMR_TYPECEVT1IE_Pos            (14U)
20817 #define UCPD_IMR_TYPECEVT1IE_Msk            (0x1UL << UCPD_IMR_TYPECEVT1IE_Pos)     /*!< 0x00004000 */
20818 #define UCPD_IMR_TYPECEVT1IE                UCPD_IMR_TYPECEVT1IE_Msk                /*!< Enable TYPECEVT1IE interrupt  */
20819 #define UCPD_IMR_TYPECEVT2IE_Pos            (15U)
20820 #define UCPD_IMR_TYPECEVT2IE_Msk            (0x1UL << UCPD_IMR_TYPECEVT2IE_Pos)     /*!< 0x00008000 */
20821 #define UCPD_IMR_TYPECEVT2IE                UCPD_IMR_TYPECEVT2IE_Msk                /*!< Enable TYPECEVT2IE interrupt  */
20822 #define UCPD_IMR_FRSEVTIE_Pos               (20U)
20823 #define UCPD_IMR_FRSEVTIE_Msk               (0x1UL << UCPD_IMR_FRSEVTIE_Pos)        /*!< 0x00100000 */
20824 #define UCPD_IMR_FRSEVTIE                   UCPD_IMR_FRSEVTIE_Msk                   /*!< Fast Role Swap interrupt  */
20825 
20826 /********************  Bits definition for UCPD_SR register  ********************/
20827 #define UCPD_SR_TXIS_Pos                    (0U)
20828 #define UCPD_SR_TXIS_Msk                    (0x1UL << UCPD_SR_TXIS_Pos)             /*!< 0x00000001 */
20829 #define UCPD_SR_TXIS                        UCPD_SR_TXIS_Msk                        /*!< Transmit interrupt status  */
20830 #define UCPD_SR_TXMSGDISC_Pos               (1U)
20831 #define UCPD_SR_TXMSGDISC_Msk               (0x1UL << UCPD_SR_TXMSGDISC_Pos)        /*!< 0x00000002 */
20832 #define UCPD_SR_TXMSGDISC                   UCPD_SR_TXMSGDISC_Msk                   /*!< Transmit message discarded interrupt  */
20833 #define UCPD_SR_TXMSGSENT_Pos               (2U)
20834 #define UCPD_SR_TXMSGSENT_Msk               (0x1UL << UCPD_SR_TXMSGSENT_Pos)        /*!< 0x00000004 */
20835 #define UCPD_SR_TXMSGSENT                   UCPD_SR_TXMSGSENT_Msk                   /*!< Transmit message sent interrupt  */
20836 #define UCPD_SR_TXMSGABT_Pos                (3U)
20837 #define UCPD_SR_TXMSGABT_Msk                (0x1UL << UCPD_SR_TXMSGABT_Pos)         /*!< 0x00000008 */
20838 #define UCPD_SR_TXMSGABT                    UCPD_SR_TXMSGABT_Msk                    /*!< Transmit message abort interrupt  */
20839 #define UCPD_SR_HRSTDISC_Pos                (4U)
20840 #define UCPD_SR_HRSTDISC_Msk                (0x1UL << UCPD_SR_HRSTDISC_Pos)         /*!< 0x00000010 */
20841 #define UCPD_SR_HRSTDISC                    UCPD_SR_HRSTDISC_Msk                    /*!< HRST discarded interrupt  */
20842 #define UCPD_SR_HRSTSENT_Pos                (5U)
20843 #define UCPD_SR_HRSTSENT_Msk                (0x1UL << UCPD_SR_HRSTSENT_Pos)         /*!< 0x00000020 */
20844 #define UCPD_SR_HRSTSENT                    UCPD_SR_HRSTSENT_Msk                    /*!< HRST sent interrupt  */
20845 #define UCPD_SR_TXUND_Pos                   (6U)
20846 #define UCPD_SR_TXUND_Msk                   (0x1UL << UCPD_SR_TXUND_Pos)            /*!< 0x00000040 */
20847 #define UCPD_SR_TXUND                       UCPD_SR_TXUND_Msk                       /*!< Tx data underrun condition interrupt  */
20848 #define UCPD_SR_RXNE_Pos                    (8U)
20849 #define UCPD_SR_RXNE_Msk                    (0x1UL << UCPD_SR_RXNE_Pos)             /*!< 0x00000100 */
20850 #define UCPD_SR_RXNE                        UCPD_SR_RXNE_Msk                        /*!< Receive data register not empty interrupt  */
20851 #define UCPD_SR_RXORDDET_Pos                (9U)
20852 #define UCPD_SR_RXORDDET_Msk                (0x1UL << UCPD_SR_RXORDDET_Pos)         /*!< 0x00000200 */
20853 #define UCPD_SR_RXORDDET                    UCPD_SR_RXORDDET_Msk                    /*!< Rx ordered set (4 K-codes) detected interrupt  */
20854 #define UCPD_SR_RXHRSTDET_Pos               (10U)
20855 #define UCPD_SR_RXHRSTDET_Msk               (0x1UL << UCPD_SR_RXHRSTDET_Pos)        /*!< 0x00000400 */
20856 #define UCPD_SR_RXHRSTDET                   UCPD_SR_RXHRSTDET_Msk                   /*!< Rx Hard Reset detect interrupt  */
20857 #define UCPD_SR_RXOVR_Pos                   (11U)
20858 #define UCPD_SR_RXOVR_Msk                   (0x1UL << UCPD_SR_RXOVR_Pos)            /*!< 0x00000800 */
20859 #define UCPD_SR_RXOVR                       UCPD_SR_RXOVR_Msk                       /*!< Rx data overflow interrupt  */
20860 #define UCPD_SR_RXMSGEND_Pos                (12U)
20861 #define UCPD_SR_RXMSGEND_Msk                (0x1UL << UCPD_SR_RXMSGEND_Pos)         /*!< 0x00001000 */
20862 #define UCPD_SR_RXMSGEND                    UCPD_SR_RXMSGEND_Msk                    /*!< Rx message received  */
20863 #define UCPD_SR_RXERR_Pos                   (13U)
20864 #define UCPD_SR_RXERR_Msk                   (0x1UL << UCPD_SR_RXERR_Pos)            /*!< 0x00002000 */
20865 #define UCPD_SR_RXERR                       UCPD_SR_RXERR_Msk                       /*!< RX Error */
20866 #define UCPD_SR_TYPECEVT1_Pos               (14U)
20867 #define UCPD_SR_TYPECEVT1_Msk               (0x1UL << UCPD_SR_TYPECEVT1_Pos)        /*!< 0x00004000 */
20868 #define UCPD_SR_TYPECEVT1                   UCPD_SR_TYPECEVT1_Msk                   /*!< Type C voltage level event on CC1  */
20869 #define UCPD_SR_TYPECEVT2_Pos               (15U)
20870 #define UCPD_SR_TYPECEVT2_Msk               (0x1UL << UCPD_SR_TYPECEVT2_Pos)        /*!< 0x00008000 */
20871 #define UCPD_SR_TYPECEVT2                   UCPD_SR_TYPECEVT2_Msk                   /*!< Type C voltage level event on CC2  */
20872 #define UCPD_SR_TYPEC_VSTATE_CC1_Pos        (16U)
20873 #define UCPD_SR_TYPEC_VSTATE_CC1_Msk        (0x3UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos) /*!< 0x00030000 */
20874 #define UCPD_SR_TYPEC_VSTATE_CC1            UCPD_SR_TYPEC_VSTATE_CC1_Msk            /*!< Status of DC level on CC1 pin  */
20875 #define UCPD_SR_TYPEC_VSTATE_CC1_0          (0x1UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos) /*!< 0x00010000 */
20876 #define UCPD_SR_TYPEC_VSTATE_CC1_1          (0x2UL << UCPD_SR_TYPEC_VSTATE_CC1_Pos) /*!< 0x00020000 */
20877 #define UCPD_SR_TYPEC_VSTATE_CC2_Pos        (18U)
20878 #define UCPD_SR_TYPEC_VSTATE_CC2_Msk        (0x3UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos) /*!< 0x000C0000 */
20879 #define UCPD_SR_TYPEC_VSTATE_CC2            UCPD_SR_TYPEC_VSTATE_CC2_Msk            /*!<Status of DC level on CC2 pin  */
20880 #define UCPD_SR_TYPEC_VSTATE_CC2_0          (0x1UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos) /*!< 0x00040000 */
20881 #define UCPD_SR_TYPEC_VSTATE_CC2_1          (0x2UL << UCPD_SR_TYPEC_VSTATE_CC2_Pos) /*!< 0x00080000 */
20882 #define UCPD_SR_FRSEVT_Pos                  (20U)
20883 #define UCPD_SR_FRSEVT_Msk                  (0x1UL << UCPD_SR_FRSEVT_Pos)           /*!< 0x00100000 */
20884 #define UCPD_SR_FRSEVT                      UCPD_SR_FRSEVT_Msk                      /*!< Fast Role Swap detection event  */
20885 
20886 /********************  Bits definition for UCPD_ICR register  *******************/
20887 #define UCPD_ICR_TXMSGDISCCF_Pos            (1U)
20888 #define UCPD_ICR_TXMSGDISCCF_Msk            (0x1UL << UCPD_ICR_TXMSGDISCCF_Pos)     /*!< 0x00000002 */
20889 #define UCPD_ICR_TXMSGDISCCF                UCPD_ICR_TXMSGDISCCF_Msk                /*!< Tx message discarded flag (TXMSGDISC) clear  */
20890 #define UCPD_ICR_TXMSGSENTCF_Pos            (2U)
20891 #define UCPD_ICR_TXMSGSENTCF_Msk            (0x1UL << UCPD_ICR_TXMSGSENTCF_Pos)     /*!< 0x00000004 */
20892 #define UCPD_ICR_TXMSGSENTCF                UCPD_ICR_TXMSGSENTCF_Msk                /*!< Tx message sent flag (TXMSGSENT) clear  */
20893 #define UCPD_ICR_TXMSGABTCF_Pos             (3U)
20894 #define UCPD_ICR_TXMSGABTCF_Msk             (0x1UL << UCPD_ICR_TXMSGABTCF_Pos)      /*!< 0x00000008 */
20895 #define UCPD_ICR_TXMSGABTCF                 UCPD_ICR_TXMSGABTCF_Msk                 /*!< Tx message abort flag (TXMSGABT) clear  */
20896 #define UCPD_ICR_HRSTDISCCF_Pos             (4U)
20897 #define UCPD_ICR_HRSTDISCCF_Msk             (0x1UL << UCPD_ICR_HRSTDISCCF_Pos)      /*!< 0x00000010 */
20898 #define UCPD_ICR_HRSTDISCCF                 UCPD_ICR_HRSTDISCCF_Msk                 /*!< Hard reset discarded flag (HRSTDISC) clear  */
20899 #define UCPD_ICR_HRSTSENTCF_Pos             (5U)
20900 #define UCPD_ICR_HRSTSENTCF_Msk             (0x1UL << UCPD_ICR_HRSTSENTCF_Pos)      /*!< 0x00000020 */
20901 #define UCPD_ICR_HRSTSENTCF                 UCPD_ICR_HRSTSENTCF_Msk                 /*!< Hard reset sent flag (HRSTSENT) clear  */
20902 #define UCPD_ICR_TXUNDCF_Pos                (6U)
20903 #define UCPD_ICR_TXUNDCF_Msk                (0x1UL << UCPD_ICR_TXUNDCF_Pos)         /*!< 0x00000040 */
20904 #define UCPD_ICR_TXUNDCF                    UCPD_ICR_TXUNDCF_Msk                    /*!< Tx underflow flag (TXUND) clear  */
20905 #define UCPD_ICR_RXORDDETCF_Pos             (9U)
20906 #define UCPD_ICR_RXORDDETCF_Msk             (0x1UL << UCPD_ICR_RXORDDETCF_Pos)      /*!< 0x00000200 */
20907 #define UCPD_ICR_RXORDDETCF                 UCPD_ICR_RXORDDETCF_Msk                 /*!< Rx ordered set detect flag (RXORDDET) clear  */
20908 #define UCPD_ICR_RXHRSTDETCF_Pos            (10U)
20909 #define UCPD_ICR_RXHRSTDETCF_Msk            (0x1UL << UCPD_ICR_RXHRSTDETCF_Pos)     /*!< 0x00000400 */
20910 #define UCPD_ICR_RXHRSTDETCF                UCPD_ICR_RXHRSTDETCF_Msk                /*!< Rx Hard Reset detected flag (RXHRSTDET) clear  */
20911 #define UCPD_ICR_RXOVRCF_Pos                (11U)
20912 #define UCPD_ICR_RXOVRCF_Msk                (0x1UL << UCPD_ICR_RXOVRCF_Pos)         /*!< 0x00000800 */
20913 #define UCPD_ICR_RXOVRCF                    UCPD_ICR_RXOVRCF_Msk                    /*!< Rx overflow flag (RXOVR) clear  */
20914 #define UCPD_ICR_RXMSGENDCF_Pos             (12U)
20915 #define UCPD_ICR_RXMSGENDCF_Msk             (0x1UL << UCPD_ICR_RXMSGENDCF_Pos)      /*!< 0x00001000 */
20916 #define UCPD_ICR_RXMSGENDCF                 UCPD_ICR_RXMSGENDCF_Msk                 /*!< Rx message received flag (RXMSGEND) clear  */
20917 #define UCPD_ICR_TYPECEVT1CF_Pos            (14U)
20918 #define UCPD_ICR_TYPECEVT1CF_Msk            (0x1UL << UCPD_ICR_TYPECEVT1CF_Pos)     /*!< 0x00004000 */
20919 #define UCPD_ICR_TYPECEVT1CF                UCPD_ICR_TYPECEVT1CF_Msk                /*!< TypeC event (CC1) flag (TYPECEVT1) clear  */
20920 #define UCPD_ICR_TYPECEVT2CF_Pos            (15U)
20921 #define UCPD_ICR_TYPECEVT2CF_Msk            (0x1UL << UCPD_ICR_TYPECEVT2CF_Pos)     /*!< 0x00008000 */
20922 #define UCPD_ICR_TYPECEVT2CF                UCPD_ICR_TYPECEVT2CF_Msk                /*!< TypeC event (CC2) flag (TYPECEVT2) clear  */
20923 #define UCPD_ICR_FRSEVTCF_Pos               (20U)
20924 #define UCPD_ICR_FRSEVTCF_Msk               (0x1UL << UCPD_ICR_FRSEVTCF_Pos)        /*!< 0x00100000 */
20925 #define UCPD_ICR_FRSEVTCF                   UCPD_ICR_FRSEVTCF_Msk                   /*!< Fast Role Swap event flag clear  */
20926 
20927 /********************  Bits definition for UCPD_TXORDSET register  **************/
20928 #define UCPD_TX_ORDSET_TXORDSET_Pos         (0U)
20929 #define UCPD_TX_ORDSET_TXORDSET_Msk         (0xFFFFFUL << UCPD_TX_ORDSET_TXORDSET_Pos) /*!< 0x000FFFFF */
20930 #define UCPD_TX_ORDSET_TXORDSET             UCPD_TX_ORDSET_TXORDSET_Msk             /*!< Tx Ordered Set */
20931 
20932 /********************  Bits definition for UCPD_TXPAYSZ register  ****************/
20933 #define UCPD_TX_PAYSZ_TXPAYSZ_Pos           (0U)
20934 #define UCPD_TX_PAYSZ_TXPAYSZ_Msk           (0x3FFUL << UCPD_TX_PAYSZ_TXPAYSZ_Pos)  /*!< 0x000003FF */
20935 #define UCPD_TX_PAYSZ_TXPAYSZ               UCPD_TX_PAYSZ_TXPAYSZ_Msk               /*!< Tx payload size in bytes  */
20936 
20937 /********************  Bits definition for UCPD_TXDR register  *******************/
20938 #define UCPD_TXDR_TXDATA_Pos                (0U)
20939 #define UCPD_TXDR_TXDATA_Msk                (0xFFUL << UCPD_TXDR_TXDATA_Pos)        /*!< 0x000000FF */
20940 #define UCPD_TXDR_TXDATA                    UCPD_TXDR_TXDATA_Msk                    /*!< Tx Data Register */
20941 
20942 /********************  Bits definition for UCPD_RXORDSET register  **************/
20943 #define UCPD_RX_ORDSET_RXORDSET_Pos         (0U)
20944 #define UCPD_RX_ORDSET_RXORDSET_Msk         (0x7UL << UCPD_RX_ORDSET_RXORDSET_Pos)  /*!< 0x00000007 */
20945 #define UCPD_RX_ORDSET_RXORDSET             UCPD_RX_ORDSET_RXORDSET_Msk             /*!< Rx Ordered Set Code detected  */
20946 #define UCPD_RX_ORDSET_RXORDSET_0           (0x1UL << UCPD_RX_ORDSET_RXORDSET_Pos)  /*!< 0x00000001 */
20947 #define UCPD_RX_ORDSET_RXORDSET_1           (0x2UL << UCPD_RX_ORDSET_RXORDSET_Pos)  /*!< 0x00000002 */
20948 #define UCPD_RX_ORDSET_RXORDSET_2           (0x4UL << UCPD_RX_ORDSET_RXORDSET_Pos)  /*!< 0x00000004 */
20949 #define UCPD_RX_ORDSET_RXSOP3OF4_Pos        (3U)
20950 #define UCPD_RX_ORDSET_RXSOP3OF4_Msk        (0x1UL << UCPD_RX_ORDSET_RXSOP3OF4_Pos) /*!< 0x00000008 */
20951 #define UCPD_RX_ORDSET_RXSOP3OF4            UCPD_RX_ORDSET_RXSOP3OF4_Msk            /*!< Rx Ordered Set Debug indication */
20952 #define UCPD_RX_ORDSET_RXSOPKINVALID_Pos    (4U)
20953 #define UCPD_RX_ORDSET_RXSOPKINVALID_Msk    (0x7UL << UCPD_RX_ORDSET_RXSOPKINVALID_Pos) /*!< 0x00000070 */
20954 #define UCPD_RX_ORDSET_RXSOPKINVALID        UCPD_RX_ORDSET_RXSOPKINVALID_Msk        /*!< Rx Ordered Set corrupted K-Codes (Debug) */
20955 
20956 /********************  Bits definition for UCPD_RXPAYSZ register  ****************/
20957 #define UCPD_RX_PAYSZ_RXPAYSZ_Pos           (0U)
20958 #define UCPD_RX_PAYSZ_RXPAYSZ_Msk           (0x3FFUL << UCPD_RX_PAYSZ_RXPAYSZ_Pos)  /*!< 0x000003FF */
20959 #define UCPD_RX_PAYSZ_RXPAYSZ               UCPD_RX_PAYSZ_RXPAYSZ_Msk               /*!< Rx payload size in bytes  */
20960 
20961 /********************  Bits definition for UCPD_RXDR register  *******************/
20962 #define UCPD_RXDR_RXDATA_Pos                (0U)
20963 #define UCPD_RXDR_RXDATA_Msk                (0xFFUL << UCPD_RXDR_RXDATA_Pos)        /*!< 0x000000FF */
20964 #define UCPD_RXDR_RXDATA                    UCPD_RXDR_RXDATA_Msk                    /*!< 8-bit receive data  */
20965 
20966 /********************  Bits definition for UCPD_RXORDEXT1 register  **************/
20967 #define UCPD_RX_ORDEXT1_RXSOPX1_Pos         (0U)
20968 #define UCPD_RX_ORDEXT1_RXSOPX1_Msk         (0xFFFFFUL << UCPD_RX_ORDEXT1_RXSOPX1_Pos) /*!< 0x000FFFFF */
20969 #define UCPD_RX_ORDEXT1_RXSOPX1             UCPD_RX_ORDEXT1_RXSOPX1_Msk             /*!< RX Ordered Set Extension Register 1 */
20970 
20971 /********************  Bits definition for UCPD_RXORDEXT2 register  **************/
20972 #define UCPD_RX_ORDEXT2_RXSOPX2_Pos         (0U)
20973 #define UCPD_RX_ORDEXT2_RXSOPX2_Msk         (0xFFFFFUL << UCPD_RX_ORDEXT2_RXSOPX2_Pos) /*!< 0x000FFFFF */
20974 #define UCPD_RX_ORDEXT2_RXSOPX2             UCPD_RX_ORDEXT2_RXSOPX2_Msk             /*!< RX Ordered Set Extension Register 1 */
20975 
20976 /******************************************************************************/
20977 /*                                                                            */
20978 /*                                       USB_OTG                              */
20979 /*                                                                            */
20980 /******************************************************************************/
20981 /********************  Bit definition for USB_OTG_GOTGCTL register  ********************/
20982 #define USB_OTG_GOTGCTL_SRQSCS_Pos               (0U)
20983 #define USB_OTG_GOTGCTL_SRQSCS_Msk               (0x1U << USB_OTG_GOTGCTL_SRQSCS_Pos)      /*!< 0x00000001 */
20984 #define USB_OTG_GOTGCTL_SRQSCS                   USB_OTG_GOTGCTL_SRQSCS_Msk                /*!< Session request success */
20985 #define USB_OTG_GOTGCTL_SRQ_Pos                  (1U)
20986 #define USB_OTG_GOTGCTL_SRQ_Msk                  (0x1U << USB_OTG_GOTGCTL_SRQ_Pos)         /*!< 0x00000002 */
20987 #define USB_OTG_GOTGCTL_SRQ                      USB_OTG_GOTGCTL_SRQ_Msk                   /*!< Session request */
20988 #define USB_OTG_GOTGCTL_VBVALOEN_Pos             (2U)
20989 #define USB_OTG_GOTGCTL_VBVALOEN_Msk             (0x1U << USB_OTG_GOTGCTL_VBVALOEN_Pos)    /*!< 0x00000004 */
20990 #define USB_OTG_GOTGCTL_VBVALOEN                 USB_OTG_GOTGCTL_VBVALOEN_Msk              /*!< VBUS valid override enable */
20991 #define USB_OTG_GOTGCTL_VBVALOVAL_Pos            (3U)
20992 #define USB_OTG_GOTGCTL_VBVALOVAL_Msk            (0x1U << USB_OTG_GOTGCTL_VBVALOVAL_Pos)   /*!< 0x00000008 */
20993 #define USB_OTG_GOTGCTL_VBVALOVAL                USB_OTG_GOTGCTL_VBVALOVAL_Msk             /*!< VBUS valid override value */
20994 #define USB_OTG_GOTGCTL_AVALOEN_Pos              (4U)
20995 #define USB_OTG_GOTGCTL_AVALOEN_Msk              (0x1U << USB_OTG_GOTGCTL_AVALOEN_Pos)     /*!< 0x00000010 */
20996 #define USB_OTG_GOTGCTL_AVALOEN                  USB_OTG_GOTGCTL_AVALOEN_Msk               /*!< A-peripheral session valid override enable */
20997 #define USB_OTG_GOTGCTL_AVALOVAL_Pos             (5U)
20998 #define USB_OTG_GOTGCTL_AVALOVAL_Msk             (0x1U << USB_OTG_GOTGCTL_AVALOVAL_Pos)    /*!< 0x00000020 */
20999 #define USB_OTG_GOTGCTL_AVALOVAL                 USB_OTG_GOTGCTL_AVALOVAL_Msk              /*!< A-peripheral session valid override value */
21000 #define USB_OTG_GOTGCTL_BVALOEN_Pos              (6U)
21001 #define USB_OTG_GOTGCTL_BVALOEN_Msk              (0x1U << USB_OTG_GOTGCTL_BVALOEN_Pos)     /*!< 0x00000040 */
21002 #define USB_OTG_GOTGCTL_BVALOEN                  USB_OTG_GOTGCTL_BVALOEN_Msk               /*!< B-peripheral session valid override enable */
21003 #define USB_OTG_GOTGCTL_BVALOVAL_Pos             (7U)
21004 #define USB_OTG_GOTGCTL_BVALOVAL_Msk             (0x1U << USB_OTG_GOTGCTL_BVALOVAL_Pos)    /*!< 0x00000080 */
21005 #define USB_OTG_GOTGCTL_BVALOVAL                 USB_OTG_GOTGCTL_BVALOVAL_Msk              /*!< B-peripheral session valid override value  */
21006 #define USB_OTG_GOTGCTL_BSESVLD_Pos              (19U)
21007 #define USB_OTG_GOTGCTL_BSESVLD_Msk              (0x1U << USB_OTG_GOTGCTL_BSESVLD_Pos)     /*!< 0x00080000 */
21008 #define USB_OTG_GOTGCTL_BSESVLD                  USB_OTG_GOTGCTL_BSESVLD_Msk               /*!<  B-session valid*/
21009 
21010 /********************  Bit definition for USB_OTG_HCFG register  ********************/
21011 #define USB_OTG_HCFG_FSLSPCS_Pos                 (0U)
21012 #define USB_OTG_HCFG_FSLSPCS_Msk                 (0x3U << USB_OTG_HCFG_FSLSPCS_Pos)        /*!< 0x00000003 */
21013 #define USB_OTG_HCFG_FSLSPCS                     USB_OTG_HCFG_FSLSPCS_Msk                  /*!< FS/LS PHY clock select */
21014 #define USB_OTG_HCFG_FSLSPCS_0                   (0x1U << USB_OTG_HCFG_FSLSPCS_Pos)        /*!< 0x00000001 */
21015 #define USB_OTG_HCFG_FSLSPCS_1                   (0x2U << USB_OTG_HCFG_FSLSPCS_Pos)        /*!< 0x00000002 */
21016 #define USB_OTG_HCFG_FSLSS_Pos                   (2U)
21017 #define USB_OTG_HCFG_FSLSS_Msk                   (0x1U << USB_OTG_HCFG_FSLSS_Pos)          /*!< 0x00000004 */
21018 #define USB_OTG_HCFG_FSLSS                       USB_OTG_HCFG_FSLSS_Msk                    /*!< FS- and LS-only support */
21019 
21020 /********************  Bit definition for USB_OTG_DCFG register  ********************/
21021 #define USB_OTG_DCFG_DSPD_Pos                    (0U)
21022 #define USB_OTG_DCFG_DSPD_Msk                    (0x3U << USB_OTG_DCFG_DSPD_Pos)           /*!< 0x00000003 */
21023 #define USB_OTG_DCFG_DSPD                        USB_OTG_DCFG_DSPD_Msk                     /*!< Device speed */
21024 #define USB_OTG_DCFG_DSPD_0                      (0x1U << USB_OTG_DCFG_DSPD_Pos)           /*!< 0x00000001 */
21025 #define USB_OTG_DCFG_DSPD_1                      (0x2U << USB_OTG_DCFG_DSPD_Pos)           /*!< 0x00000002 */
21026 #define USB_OTG_DCFG_NZLSOHSK_Pos                (2U)
21027 #define USB_OTG_DCFG_NZLSOHSK_Msk                (0x1U << USB_OTG_DCFG_NZLSOHSK_Pos)       /*!< 0x00000004 */
21028 #define USB_OTG_DCFG_NZLSOHSK                    USB_OTG_DCFG_NZLSOHSK_Msk                 /*!< Nonzero-length status OUT handshake */
21029 #define USB_OTG_DCFG_DAD_Pos                     (4U)
21030 #define USB_OTG_DCFG_DAD_Msk                     (0x7FU << USB_OTG_DCFG_DAD_Pos)           /*!< 0x000007F0 */
21031 #define USB_OTG_DCFG_DAD                         USB_OTG_DCFG_DAD_Msk                      /*!< Device address */
21032 #define USB_OTG_DCFG_DAD_0                       (0x01U << USB_OTG_DCFG_DAD_Pos)           /*!< 0x00000010 */
21033 #define USB_OTG_DCFG_DAD_1                       (0x02U << USB_OTG_DCFG_DAD_Pos)           /*!< 0x00000020 */
21034 #define USB_OTG_DCFG_DAD_2                       (0x04U << USB_OTG_DCFG_DAD_Pos)           /*!< 0x00000040 */
21035 #define USB_OTG_DCFG_DAD_3                       (0x08U << USB_OTG_DCFG_DAD_Pos)           /*!< 0x00000080 */
21036 #define USB_OTG_DCFG_DAD_4                       (0x10U << USB_OTG_DCFG_DAD_Pos)           /*!< 0x00000100 */
21037 #define USB_OTG_DCFG_DAD_5                       (0x20U << USB_OTG_DCFG_DAD_Pos)           /*!< 0x00000200 */
21038 #define USB_OTG_DCFG_DAD_6                       (0x40U << USB_OTG_DCFG_DAD_Pos)           /*!< 0x00000400 */
21039 #define USB_OTG_DCFG_PFIVL_Pos                   (11U)
21040 #define USB_OTG_DCFG_PFIVL_Msk                   (0x3U << USB_OTG_DCFG_PFIVL_Pos)          /*!< 0x00001800 */
21041 #define USB_OTG_DCFG_PFIVL                       USB_OTG_DCFG_PFIVL_Msk                    /*!< Periodic (micro)frame interval */
21042 #define USB_OTG_DCFG_PFIVL_0                     (0x1U << USB_OTG_DCFG_PFIVL_Pos)          /*!< 0x00000800 */
21043 #define USB_OTG_DCFG_PFIVL_1                     (0x2U << USB_OTG_DCFG_PFIVL_Pos)          /*!< 0x00001000 */
21044 #define USB_OTG_DCFG_PERSCHIVL_Pos               (24U)
21045 #define USB_OTG_DCFG_PERSCHIVL_Msk               (0x3U << USB_OTG_DCFG_PERSCHIVL_Pos)      /*!< 0x03000000 */
21046 #define USB_OTG_DCFG_PERSCHIVL                   USB_OTG_DCFG_PERSCHIVL_Msk                /*!< Periodic scheduling interval */
21047 #define USB_OTG_DCFG_PERSCHIVL_0                 (0x1U << USB_OTG_DCFG_PERSCHIVL_Pos)      /*!< 0x01000000 */
21048 #define USB_OTG_DCFG_PERSCHIVL_1                 (0x2U << USB_OTG_DCFG_PERSCHIVL_Pos)      /*!< 0x02000000 */
21049 
21050 /********************  Bit definition for USB_OTG_PCGCR register  ********************/
21051 #define USB_OTG_PCGCR_STPPCLK_Pos                (0U)
21052 #define USB_OTG_PCGCR_STPPCLK_Msk                (0x1U << USB_OTG_PCGCR_STPPCLK_Pos)       /*!< 0x00000001 */
21053 #define USB_OTG_PCGCR_STPPCLK                    USB_OTG_PCGCR_STPPCLK_Msk                 /*!< Stop PHY clock */
21054 #define USB_OTG_PCGCR_GATEHCLK_Pos               (1U)
21055 #define USB_OTG_PCGCR_GATEHCLK_Msk               (0x1U << USB_OTG_PCGCR_GATEHCLK_Pos)      /*!< 0x00000002 */
21056 #define USB_OTG_PCGCR_GATEHCLK                   USB_OTG_PCGCR_GATEHCLK_Msk                /*!< Gate HCLK */
21057 #define USB_OTG_PCGCR_PHYSUSP_Pos                (4U)
21058 #define USB_OTG_PCGCR_PHYSUSP_Msk                (0x1U << USB_OTG_PCGCR_PHYSUSP_Pos)       /*!< 0x00000010 */
21059 #define USB_OTG_PCGCR_PHYSUSP                    USB_OTG_PCGCR_PHYSUSP_Msk                 /*!< PHY suspended */
21060 
21061 /********************  Bit definition for USB_OTG_GOTGINT register  ********************/
21062 #define USB_OTG_GOTGINT_SEDET_Pos                (2U)
21063 #define USB_OTG_GOTGINT_SEDET_Msk                (0x1U << USB_OTG_GOTGINT_SEDET_Pos)       /*!< 0x00000004 */
21064 #define USB_OTG_GOTGINT_SEDET                    USB_OTG_GOTGINT_SEDET_Msk                 /*!< Session end detected */
21065 #define USB_OTG_GOTGINT_SRSSCHG_Pos              (8U)
21066 #define USB_OTG_GOTGINT_SRSSCHG_Msk              (0x1U << USB_OTG_GOTGINT_SRSSCHG_Pos)     /*!< 0x00000100 */
21067 #define USB_OTG_GOTGINT_SRSSCHG                  USB_OTG_GOTGINT_SRSSCHG_Msk               /*!< Session request success status change */
21068 #define USB_OTG_GOTGINT_HNSSCHG_Pos              (9U)
21069 #define USB_OTG_GOTGINT_HNSSCHG_Msk              (0x1U << USB_OTG_GOTGINT_HNSSCHG_Pos)     /*!< 0x00000200 */
21070 #define USB_OTG_GOTGINT_HNSSCHG                  USB_OTG_GOTGINT_HNSSCHG_Msk               /*!< Host negotiation success status change */
21071 #define USB_OTG_GOTGINT_HNGDET_Pos               (17U)
21072 #define USB_OTG_GOTGINT_HNGDET_Msk               (0x1U << USB_OTG_GOTGINT_HNGDET_Pos)      /*!< 0x00020000 */
21073 #define USB_OTG_GOTGINT_HNGDET                   USB_OTG_GOTGINT_HNGDET_Msk                /*!< Host negotiation detected */
21074 #define USB_OTG_GOTGINT_ADTOCHG_Pos              (18U)
21075 #define USB_OTG_GOTGINT_ADTOCHG_Msk              (0x1U << USB_OTG_GOTGINT_ADTOCHG_Pos)     /*!< 0x00040000 */
21076 #define USB_OTG_GOTGINT_ADTOCHG                  USB_OTG_GOTGINT_ADTOCHG_Msk               /*!< A-device timeout change */
21077 #define USB_OTG_GOTGINT_DBCDNE_Pos               (19U)
21078 #define USB_OTG_GOTGINT_DBCDNE_Msk               (0x1U << USB_OTG_GOTGINT_DBCDNE_Pos)      /*!< 0x00080000 */
21079 #define USB_OTG_GOTGINT_DBCDNE                   USB_OTG_GOTGINT_DBCDNE_Msk                /*!< Debounce done */
21080 
21081 /********************  Bit definition for USB_OTG_DCTL register  ********************/
21082 #define USB_OTG_DCTL_RWUSIG_Pos                  (0U)
21083 #define USB_OTG_DCTL_RWUSIG_Msk                  (0x1U << USB_OTG_DCTL_RWUSIG_Pos)         /*!< 0x00000001 */
21084 #define USB_OTG_DCTL_RWUSIG                      USB_OTG_DCTL_RWUSIG_Msk                   /*!< Remote wakeup signaling */
21085 #define USB_OTG_DCTL_SDIS_Pos                    (1U)
21086 #define USB_OTG_DCTL_SDIS_Msk                    (0x1U << USB_OTG_DCTL_SDIS_Pos)           /*!< 0x00000002 */
21087 #define USB_OTG_DCTL_SDIS                        USB_OTG_DCTL_SDIS_Msk                     /*!< Soft disconnect */
21088 #define USB_OTG_DCTL_GINSTS_Pos                  (2U)
21089 #define USB_OTG_DCTL_GINSTS_Msk                  (0x1U << USB_OTG_DCTL_GINSTS_Pos)         /*!< 0x00000004 */
21090 #define USB_OTG_DCTL_GINSTS                      USB_OTG_DCTL_GINSTS_Msk                   /*!< Global IN NAK status */
21091 #define USB_OTG_DCTL_GONSTS_Pos                  (3U)
21092 #define USB_OTG_DCTL_GONSTS_Msk                  (0x1U << USB_OTG_DCTL_GONSTS_Pos)         /*!< 0x00000008 */
21093 #define USB_OTG_DCTL_GONSTS                      USB_OTG_DCTL_GONSTS_Msk                   /*!< Global OUT NAK status */
21094 #define USB_OTG_DCTL_TCTL_Pos                    (4U)
21095 #define USB_OTG_DCTL_TCTL_Msk                    (0x7U << USB_OTG_DCTL_TCTL_Pos)           /*!< 0x00000070 */
21096 #define USB_OTG_DCTL_TCTL                        USB_OTG_DCTL_TCTL_Msk                     /*!< Test control */
21097 #define USB_OTG_DCTL_TCTL_0                      (0x1U << USB_OTG_DCTL_TCTL_Pos)           /*!< 0x00000010 */
21098 #define USB_OTG_DCTL_TCTL_1                      (0x2U << USB_OTG_DCTL_TCTL_Pos)           /*!< 0x00000020 */
21099 #define USB_OTG_DCTL_TCTL_2                      (0x4U << USB_OTG_DCTL_TCTL_Pos)           /*!< 0x00000040 */
21100 #define USB_OTG_DCTL_SGINAK_Pos                  (7U)
21101 #define USB_OTG_DCTL_SGINAK_Msk                  (0x1U << USB_OTG_DCTL_SGINAK_Pos)         /*!< 0x00000080 */
21102 #define USB_OTG_DCTL_SGINAK                      USB_OTG_DCTL_SGINAK_Msk                   /*!< Set global IN NAK */
21103 #define USB_OTG_DCTL_CGINAK_Pos                  (8U)
21104 #define USB_OTG_DCTL_CGINAK_Msk                  (0x1U << USB_OTG_DCTL_CGINAK_Pos)         /*!< 0x00000100 */
21105 #define USB_OTG_DCTL_CGINAK                      USB_OTG_DCTL_CGINAK_Msk                   /*!< Clear global IN NAK */
21106 #define USB_OTG_DCTL_SGONAK_Pos                  (9U)
21107 #define USB_OTG_DCTL_SGONAK_Msk                  (0x1U << USB_OTG_DCTL_SGONAK_Pos)         /*!< 0x00000200 */
21108 #define USB_OTG_DCTL_SGONAK                      USB_OTG_DCTL_SGONAK_Msk                   /*!< Set global OUT NAK */
21109 #define USB_OTG_DCTL_CGONAK_Pos                  (10U)
21110 #define USB_OTG_DCTL_CGONAK_Msk                  (0x1U << USB_OTG_DCTL_CGONAK_Pos)         /*!< 0x00000400 */
21111 #define USB_OTG_DCTL_CGONAK                      USB_OTG_DCTL_CGONAK_Msk                   /*!< Clear global OUT NAK */
21112 #define USB_OTG_DCTL_POPRGDNE_Pos                (11U)
21113 #define USB_OTG_DCTL_POPRGDNE_Msk                (0x1U << USB_OTG_DCTL_POPRGDNE_Pos)       /*!< 0x00000800 */
21114 #define USB_OTG_DCTL_POPRGDNE                    USB_OTG_DCTL_POPRGDNE_Msk                 /*!< Power-on programming done */
21115 
21116 /********************  Bit definition for USB_OTG_HFIR register  ********************/
21117 #define USB_OTG_HFIR_FRIVL_Pos                   (0U)
21118 #define USB_OTG_HFIR_FRIVL_Msk                   (0xFFFFU << USB_OTG_HFIR_FRIVL_Pos)       /*!< 0x0000FFFF */
21119 #define USB_OTG_HFIR_FRIVL                       USB_OTG_HFIR_FRIVL_Msk                    /*!< Frame interval */
21120 
21121 /********************  Bit definition for USB_OTG_HFNUM register  ********************/
21122 #define USB_OTG_HFNUM_FRNUM_Pos                  (0U)
21123 #define USB_OTG_HFNUM_FRNUM_Msk                  (0xFFFFU << USB_OTG_HFNUM_FRNUM_Pos)      /*!< 0x0000FFFF */
21124 #define USB_OTG_HFNUM_FRNUM                      USB_OTG_HFNUM_FRNUM_Msk                   /*!< Frame number */
21125 #define USB_OTG_HFNUM_FTREM_Pos                  (16U)
21126 #define USB_OTG_HFNUM_FTREM_Msk                  (0xFFFFU << USB_OTG_HFNUM_FTREM_Pos)      /*!< 0xFFFF0000 */
21127 #define USB_OTG_HFNUM_FTREM                      USB_OTG_HFNUM_FTREM_Msk                   /*!< Frame time remaining */
21128 
21129 /********************  Bit definition for USB_OTG_DSTS register  ********************/
21130 #define USB_OTG_DSTS_SUSPSTS_Pos                 (0U)
21131 #define USB_OTG_DSTS_SUSPSTS_Msk                 (0x1U << USB_OTG_DSTS_SUSPSTS_Pos)        /*!< 0x00000001 */
21132 #define USB_OTG_DSTS_SUSPSTS                     USB_OTG_DSTS_SUSPSTS_Msk                  /*!< Suspend status */
21133 
21134 #define USB_OTG_DSTS_ENUMSPD_Pos                 (1U)
21135 #define USB_OTG_DSTS_ENUMSPD_Msk                 (0x3U << USB_OTG_DSTS_ENUMSPD_Pos)        /*!< 0x00000006 */
21136 #define USB_OTG_DSTS_ENUMSPD                     USB_OTG_DSTS_ENUMSPD_Msk                  /*!< Enumerated speed */
21137 #define USB_OTG_DSTS_ENUMSPD_0                   (0x1U << USB_OTG_DSTS_ENUMSPD_Pos)        /*!< 0x00000002 */
21138 #define USB_OTG_DSTS_ENUMSPD_1                   (0x2U << USB_OTG_DSTS_ENUMSPD_Pos)        /*!< 0x00000004 */
21139 #define USB_OTG_DSTS_EERR_Pos                    (3U)
21140 #define USB_OTG_DSTS_EERR_Msk                    (0x1U << USB_OTG_DSTS_EERR_Pos)           /*!< 0x00000008 */
21141 #define USB_OTG_DSTS_EERR                        USB_OTG_DSTS_EERR_Msk                     /*!< Erratic error */
21142 #define USB_OTG_DSTS_FNSOF_Pos                   (8U)
21143 #define USB_OTG_DSTS_FNSOF_Msk                   (0x3FFFU << USB_OTG_DSTS_FNSOF_Pos)       /*!< 0x003FFF00 */
21144 #define USB_OTG_DSTS_FNSOF                       USB_OTG_DSTS_FNSOF_Msk                    /*!< Frame number of the received SOF */
21145 
21146 /********************  Bit definition for USB_OTG_GAHBCFG register  ********************/
21147 #define USB_OTG_GAHBCFG_GINT_Pos                 (0U)
21148 #define USB_OTG_GAHBCFG_GINT_Msk                 (0x1U << USB_OTG_GAHBCFG_GINT_Pos)        /*!< 0x00000001 */
21149 #define USB_OTG_GAHBCFG_GINT                     USB_OTG_GAHBCFG_GINT_Msk                  /*!< Global interrupt mask */
21150 #define USB_OTG_GAHBCFG_HBSTLEN_Pos              (1U)
21151 #define USB_OTG_GAHBCFG_HBSTLEN_Msk              (0xFU << USB_OTG_GAHBCFG_HBSTLEN_Pos)     /*!< 0x0000001E */
21152 #define USB_OTG_GAHBCFG_HBSTLEN                  USB_OTG_GAHBCFG_HBSTLEN_Msk               /*!< Burst length/type */
21153 #define USB_OTG_GAHBCFG_HBSTLEN_0                (0x1U << USB_OTG_GAHBCFG_HBSTLEN_Pos)     /*!< 0x00000002 */
21154 #define USB_OTG_GAHBCFG_HBSTLEN_1                (0x2U << USB_OTG_GAHBCFG_HBSTLEN_Pos)     /*!< 0x00000004 */
21155 #define USB_OTG_GAHBCFG_HBSTLEN_2                (0x4U << USB_OTG_GAHBCFG_HBSTLEN_Pos)     /*!< 0x00000008 */
21156 #define USB_OTG_GAHBCFG_HBSTLEN_3                (0x8U << USB_OTG_GAHBCFG_HBSTLEN_Pos)     /*!< 0x00000010 */
21157 #define USB_OTG_GAHBCFG_DMAEN_Pos                (5U)
21158 #define USB_OTG_GAHBCFG_DMAEN_Msk                (0x1U << USB_OTG_GAHBCFG_DMAEN_Pos)       /*!< 0x00000020 */
21159 #define USB_OTG_GAHBCFG_DMAEN                    USB_OTG_GAHBCFG_DMAEN_Msk                 /*!< DMA enable */
21160 #define USB_OTG_GAHBCFG_TXFELVL_Pos              (7U)
21161 #define USB_OTG_GAHBCFG_TXFELVL_Msk              (0x1U << USB_OTG_GAHBCFG_TXFELVL_Pos)     /*!< 0x00000080 */
21162 #define USB_OTG_GAHBCFG_TXFELVL                  USB_OTG_GAHBCFG_TXFELVL_Msk               /*!< TxFIFO empty level */
21163 #define USB_OTG_GAHBCFG_PTXFELVL_Pos             (8U)
21164 #define USB_OTG_GAHBCFG_PTXFELVL_Msk             (0x1U << USB_OTG_GAHBCFG_PTXFELVL_Pos)    /*!< 0x00000100 */
21165 #define USB_OTG_GAHBCFG_PTXFELVL                 USB_OTG_GAHBCFG_PTXFELVL_Msk              /*!< Periodic TxFIFO empty level */
21166 
21167 /********************  Bit definition for USB_OTG_GUSBCFG register  ********************/
21168 #define USB_OTG_GUSBCFG_TOCAL_Pos                (0U)
21169 #define USB_OTG_GUSBCFG_TOCAL_Msk                (0x7U << USB_OTG_GUSBCFG_TOCAL_Pos)       /*!< 0x00000007 */
21170 #define USB_OTG_GUSBCFG_TOCAL                    USB_OTG_GUSBCFG_TOCAL_Msk                 /*!< FS timeout calibration */
21171 #define USB_OTG_GUSBCFG_TOCAL_0                  (0x1U << USB_OTG_GUSBCFG_TOCAL_Pos)       /*!< 0x00000001 */
21172 #define USB_OTG_GUSBCFG_TOCAL_1                  (0x2U << USB_OTG_GUSBCFG_TOCAL_Pos)       /*!< 0x00000002 */
21173 #define USB_OTG_GUSBCFG_TOCAL_2                  (0x4U << USB_OTG_GUSBCFG_TOCAL_Pos)       /*!< 0x00000004 */
21174 #define USB_OTG_GUSBCFG_PHYSEL_Pos               (6U)
21175 #define USB_OTG_GUSBCFG_PHYSEL_Msk               (0x1U << USB_OTG_GUSBCFG_PHYSEL_Pos)      /*!< 0x00000040 */
21176 #define USB_OTG_GUSBCFG_PHYSEL                   USB_OTG_GUSBCFG_PHYSEL_Msk                /*!< USB 2.0 high-speed ULPI PHY or USB 1.1 full-speed serial transceiver select */
21177 #define USB_OTG_GUSBCFG_SRPCAP_Pos               (8U)
21178 #define USB_OTG_GUSBCFG_SRPCAP_Msk               (0x1U << USB_OTG_GUSBCFG_SRPCAP_Pos)      /*!< 0x00000100 */
21179 #define USB_OTG_GUSBCFG_SRPCAP                   USB_OTG_GUSBCFG_SRPCAP_Msk                /*!< SRP-capable */
21180 #define USB_OTG_GUSBCFG_HNPCAP_Pos               (9U)
21181 #define USB_OTG_GUSBCFG_HNPCAP_Msk               (0x1U << USB_OTG_GUSBCFG_HNPCAP_Pos)      /*!< 0x00000200 */
21182 #define USB_OTG_GUSBCFG_HNPCAP                   USB_OTG_GUSBCFG_HNPCAP_Msk                /*!< HNP-capable */
21183 #define USB_OTG_GUSBCFG_TRDT_Pos                 (10U)
21184 #define USB_OTG_GUSBCFG_TRDT_Msk                 (0xFU << USB_OTG_GUSBCFG_TRDT_Pos)        /*!< 0x00003C00 */
21185 #define USB_OTG_GUSBCFG_TRDT                     USB_OTG_GUSBCFG_TRDT_Msk                  /*!< USB turnaround time */
21186 #define USB_OTG_GUSBCFG_TRDT_0                   (0x1U << USB_OTG_GUSBCFG_TRDT_Pos)        /*!< 0x00000400 */
21187 #define USB_OTG_GUSBCFG_TRDT_1                   (0x2U << USB_OTG_GUSBCFG_TRDT_Pos)        /*!< 0x00000800 */
21188 #define USB_OTG_GUSBCFG_TRDT_2                   (0x4U << USB_OTG_GUSBCFG_TRDT_Pos)        /*!< 0x00001000 */
21189 #define USB_OTG_GUSBCFG_TRDT_3                   (0x8U << USB_OTG_GUSBCFG_TRDT_Pos)        /*!< 0x00002000 */
21190 #define USB_OTG_GUSBCFG_PHYLPCS_Pos              (15U)
21191 #define USB_OTG_GUSBCFG_PHYLPCS_Msk              (0x1U << USB_OTG_GUSBCFG_PHYLPCS_Pos)     /*!< 0x00008000 */
21192 #define USB_OTG_GUSBCFG_PHYLPCS                  USB_OTG_GUSBCFG_PHYLPCS_Msk               /*!< PHY Low-power clock select */
21193 #define USB_OTG_GUSBCFG_ULPIFSLS_Pos             (17U)
21194 #define USB_OTG_GUSBCFG_ULPIFSLS_Msk             (0x1U << USB_OTG_GUSBCFG_ULPIFSLS_Pos)    /*!< 0x00020000 */
21195 #define USB_OTG_GUSBCFG_ULPIFSLS                 USB_OTG_GUSBCFG_ULPIFSLS_Msk              /*!< ULPI FS/LS select */
21196 #define USB_OTG_GUSBCFG_ULPIAR_Pos               (18U)
21197 #define USB_OTG_GUSBCFG_ULPIAR_Msk               (0x1U << USB_OTG_GUSBCFG_ULPIAR_Pos)      /*!< 0x00040000 */
21198 #define USB_OTG_GUSBCFG_ULPIAR                   USB_OTG_GUSBCFG_ULPIAR_Msk                /*!< ULPI Auto-resume */
21199 #define USB_OTG_GUSBCFG_ULPICSM_Pos              (19U)
21200 #define USB_OTG_GUSBCFG_ULPICSM_Msk              (0x1U << USB_OTG_GUSBCFG_ULPICSM_Pos)     /*!< 0x00080000 */
21201 #define USB_OTG_GUSBCFG_ULPICSM                  USB_OTG_GUSBCFG_ULPICSM_Msk               /*!< ULPI Clock SuspendM */
21202 #define USB_OTG_GUSBCFG_ULPIEVBUSD_Pos           (20U)
21203 #define USB_OTG_GUSBCFG_ULPIEVBUSD_Msk           (0x1U << USB_OTG_GUSBCFG_ULPIEVBUSD_Pos)  /*!< 0x00100000 */
21204 #define USB_OTG_GUSBCFG_ULPIEVBUSD               USB_OTG_GUSBCFG_ULPIEVBUSD_Msk            /*!< ULPI External VBUS Drive */
21205 #define USB_OTG_GUSBCFG_ULPIEVBUSI_Pos           (21U)
21206 #define USB_OTG_GUSBCFG_ULPIEVBUSI_Msk           (0x1U << USB_OTG_GUSBCFG_ULPIEVBUSI_Pos)  /*!< 0x00200000 */
21207 #define USB_OTG_GUSBCFG_ULPIEVBUSI               USB_OTG_GUSBCFG_ULPIEVBUSI_Msk            /*!< ULPI external VBUS indicator */
21208 #define USB_OTG_GUSBCFG_TSDPS_Pos                (22U)
21209 #define USB_OTG_GUSBCFG_TSDPS_Msk                (0x1U << USB_OTG_GUSBCFG_TSDPS_Pos)       /*!< 0x00400000 */
21210 #define USB_OTG_GUSBCFG_TSDPS                    USB_OTG_GUSBCFG_TSDPS_Msk                 /*!< TermSel DLine pulsing selection */
21211 #define USB_OTG_GUSBCFG_PCCI_Pos                 (23U)
21212 #define USB_OTG_GUSBCFG_PCCI_Msk                 (0x1U << USB_OTG_GUSBCFG_PCCI_Pos)        /*!< 0x00800000 */
21213 #define USB_OTG_GUSBCFG_PCCI                     USB_OTG_GUSBCFG_PCCI_Msk                  /*!< Indicator complement */
21214 #define USB_OTG_GUSBCFG_PTCI_Pos                 (24U)
21215 #define USB_OTG_GUSBCFG_PTCI_Msk                 (0x1U << USB_OTG_GUSBCFG_PTCI_Pos)        /*!< 0x01000000 */
21216 #define USB_OTG_GUSBCFG_PTCI                     USB_OTG_GUSBCFG_PTCI_Msk                  /*!< Indicator pass through */
21217 #define USB_OTG_GUSBCFG_ULPIIPD_Pos              (25U)
21218 #define USB_OTG_GUSBCFG_ULPIIPD_Msk              (0x1U << USB_OTG_GUSBCFG_ULPIIPD_Pos)     /*!< 0x02000000 */
21219 #define USB_OTG_GUSBCFG_ULPIIPD                  USB_OTG_GUSBCFG_ULPIIPD_Msk               /*!< ULPI interface protect disable */
21220 #define USB_OTG_GUSBCFG_FHMOD_Pos                (29U)
21221 #define USB_OTG_GUSBCFG_FHMOD_Msk                (0x1U << USB_OTG_GUSBCFG_FHMOD_Pos)       /*!< 0x20000000 */
21222 #define USB_OTG_GUSBCFG_FHMOD                    USB_OTG_GUSBCFG_FHMOD_Msk                 /*!< Forced host mode */
21223 #define USB_OTG_GUSBCFG_FDMOD_Pos                (30U)
21224 #define USB_OTG_GUSBCFG_FDMOD_Msk                (0x1U << USB_OTG_GUSBCFG_FDMOD_Pos)       /*!< 0x40000000 */
21225 #define USB_OTG_GUSBCFG_FDMOD                    USB_OTG_GUSBCFG_FDMOD_Msk                 /*!< Forced peripheral mode */
21226 #define USB_OTG_GUSBCFG_CTXPKT_Pos               (31U)
21227 #define USB_OTG_GUSBCFG_CTXPKT_Msk               (0x1U << USB_OTG_GUSBCFG_CTXPKT_Pos)      /*!< 0x80000000 */
21228 #define USB_OTG_GUSBCFG_CTXPKT                   USB_OTG_GUSBCFG_CTXPKT_Msk                /*!< Corrupt Tx packet */
21229 
21230 /********************  Bit definition for USB_OTG_GRSTCTL register  ********************/
21231 #define USB_OTG_GRSTCTL_CSRST_Pos                (0U)
21232 #define USB_OTG_GRSTCTL_CSRST_Msk                (0x1U << USB_OTG_GRSTCTL_CSRST_Pos)       /*!< 0x00000001 */
21233 #define USB_OTG_GRSTCTL_CSRST                    USB_OTG_GRSTCTL_CSRST_Msk                 /*!< Core soft reset */
21234 #define USB_OTG_GRSTCTL_HSRST_Pos                (1U)
21235 #define USB_OTG_GRSTCTL_HSRST_Msk                (0x1U << USB_OTG_GRSTCTL_HSRST_Pos)       /*!< 0x00000002 */
21236 #define USB_OTG_GRSTCTL_HSRST                    USB_OTG_GRSTCTL_HSRST_Msk                 /*!< HCLK soft reset */
21237 #define USB_OTG_GRSTCTL_FCRST_Pos                (2U)
21238 #define USB_OTG_GRSTCTL_FCRST_Msk                (0x1U << USB_OTG_GRSTCTL_FCRST_Pos)       /*!< 0x00000004 */
21239 #define USB_OTG_GRSTCTL_FCRST                    USB_OTG_GRSTCTL_FCRST_Msk                 /*!< Host frame counter reset */
21240 #define USB_OTG_GRSTCTL_RXFFLSH_Pos              (4U)
21241 #define USB_OTG_GRSTCTL_RXFFLSH_Msk              (0x1U << USB_OTG_GRSTCTL_RXFFLSH_Pos)     /*!< 0x00000010 */
21242 #define USB_OTG_GRSTCTL_RXFFLSH                  USB_OTG_GRSTCTL_RXFFLSH_Msk               /*!< RxFIFO flush */
21243 #define USB_OTG_GRSTCTL_TXFFLSH_Pos              (5U)
21244 #define USB_OTG_GRSTCTL_TXFFLSH_Msk              (0x1U << USB_OTG_GRSTCTL_TXFFLSH_Pos)     /*!< 0x00000020 */
21245 #define USB_OTG_GRSTCTL_TXFFLSH                  USB_OTG_GRSTCTL_TXFFLSH_Msk               /*!< TxFIFO flush */
21246 #define USB_OTG_GRSTCTL_TXFNUM_Pos               (6U)
21247 #define USB_OTG_GRSTCTL_TXFNUM_Msk               (0x1FU << USB_OTG_GRSTCTL_TXFNUM_Pos)     /*!< 0x000007C0 */
21248 #define USB_OTG_GRSTCTL_TXFNUM                   USB_OTG_GRSTCTL_TXFNUM_Msk                /*!< TxFIFO number */
21249 #define USB_OTG_GRSTCTL_TXFNUM_0                 (0x01U << USB_OTG_GRSTCTL_TXFNUM_Pos)     /*!< 0x00000040 */
21250 #define USB_OTG_GRSTCTL_TXFNUM_1                 (0x02U << USB_OTG_GRSTCTL_TXFNUM_Pos)     /*!< 0x00000080 */
21251 #define USB_OTG_GRSTCTL_TXFNUM_2                 (0x04U << USB_OTG_GRSTCTL_TXFNUM_Pos)     /*!< 0x00000100 */
21252 #define USB_OTG_GRSTCTL_TXFNUM_3                 (0x08U << USB_OTG_GRSTCTL_TXFNUM_Pos)     /*!< 0x00000200 */
21253 #define USB_OTG_GRSTCTL_TXFNUM_4                 (0x10U << USB_OTG_GRSTCTL_TXFNUM_Pos)     /*!< 0x00000400 */
21254 #define USB_OTG_GRSTCTL_DMAREQ_Pos               (30U)
21255 #define USB_OTG_GRSTCTL_DMAREQ_Msk               (0x1U << USB_OTG_GRSTCTL_DMAREQ_Pos)      /*!< 0x40000000 */
21256 #define USB_OTG_GRSTCTL_DMAREQ                   USB_OTG_GRSTCTL_DMAREQ_Msk                /*!< DMA request signal */
21257 #define USB_OTG_GRSTCTL_AHBIDL_Pos               (31U)
21258 #define USB_OTG_GRSTCTL_AHBIDL_Msk               (0x1U << USB_OTG_GRSTCTL_AHBIDL_Pos)      /*!< 0x80000000 */
21259 #define USB_OTG_GRSTCTL_AHBIDL                   USB_OTG_GRSTCTL_AHBIDL_Msk                /*!< AHB master idle */
21260 
21261 /********************  Bit definition for USB_OTG_DIEPMSK register  ********************/
21262 #define USB_OTG_DIEPMSK_XFRCM_Pos                (0U)
21263 #define USB_OTG_DIEPMSK_XFRCM_Msk                (0x1U << USB_OTG_DIEPMSK_XFRCM_Pos)       /*!< 0x00000001 */
21264 #define USB_OTG_DIEPMSK_XFRCM                    USB_OTG_DIEPMSK_XFRCM_Msk                 /*!< Transfer completed interrupt mask */
21265 #define USB_OTG_DIEPMSK_EPDM_Pos                 (1U)
21266 #define USB_OTG_DIEPMSK_EPDM_Msk                 (0x1U << USB_OTG_DIEPMSK_EPDM_Pos)        /*!< 0x00000002 */
21267 #define USB_OTG_DIEPMSK_EPDM                     USB_OTG_DIEPMSK_EPDM_Msk                  /*!< Endpoint disabled interrupt mask */
21268 #define USB_OTG_DIEPMSK_TOM_Pos                  (3U)
21269 #define USB_OTG_DIEPMSK_TOM_Msk                  (0x1U << USB_OTG_DIEPMSK_TOM_Pos)         /*!< 0x00000008 */
21270 #define USB_OTG_DIEPMSK_TOM                      USB_OTG_DIEPMSK_TOM_Msk                   /*!< Timeout condition mask (nonisochronous endpoints) */
21271 #define USB_OTG_DIEPMSK_ITTXFEMSK_Pos            (4U)
21272 #define USB_OTG_DIEPMSK_ITTXFEMSK_Msk            (0x1U << USB_OTG_DIEPMSK_ITTXFEMSK_Pos)   /*!< 0x00000010 */
21273 #define USB_OTG_DIEPMSK_ITTXFEMSK                USB_OTG_DIEPMSK_ITTXFEMSK_Msk             /*!< IN token received when TxFIFO empty mask */
21274 #define USB_OTG_DIEPMSK_INEPNMM_Pos              (5U)
21275 #define USB_OTG_DIEPMSK_INEPNMM_Msk              (0x1U << USB_OTG_DIEPMSK_INEPNMM_Pos)     /*!< 0x00000020 */
21276 #define USB_OTG_DIEPMSK_INEPNMM                  USB_OTG_DIEPMSK_INEPNMM_Msk               /*!< IN token received with EP mismatch mask */
21277 #define USB_OTG_DIEPMSK_INEPNEM_Pos              (6U)
21278 #define USB_OTG_DIEPMSK_INEPNEM_Msk              (0x1U << USB_OTG_DIEPMSK_INEPNEM_Pos)     /*!< 0x00000040 */
21279 #define USB_OTG_DIEPMSK_INEPNEM                  USB_OTG_DIEPMSK_INEPNEM_Msk               /*!< IN endpoint NAK effective mask */
21280 #define USB_OTG_DIEPMSK_TXFURM_Pos               (8U)
21281 #define USB_OTG_DIEPMSK_TXFURM_Msk               (0x1U << USB_OTG_DIEPMSK_TXFURM_Pos)      /*!< 0x00000100 */
21282 #define USB_OTG_DIEPMSK_TXFURM                   USB_OTG_DIEPMSK_TXFURM_Msk                /*!< FIFO underrun mask */
21283 #define USB_OTG_DIEPMSK_BIM_Pos                  (9U)
21284 #define USB_OTG_DIEPMSK_BIM_Msk                  (0x1U << USB_OTG_DIEPMSK_BIM_Pos)         /*!< 0x00000200 */
21285 #define USB_OTG_DIEPMSK_BIM                      USB_OTG_DIEPMSK_BIM_Msk                   /*!< BNA interrupt mask */
21286 
21287 /********************  Bit definition for USB_OTG_HPTXSTS register  ********************/
21288 #define USB_OTG_HPTXSTS_PTXFSAVL_Pos             (0U)
21289 #define USB_OTG_HPTXSTS_PTXFSAVL_Msk             (0xFFFFU << USB_OTG_HPTXSTS_PTXFSAVL_Pos) /*!< 0x0000FFFF */
21290 #define USB_OTG_HPTXSTS_PTXFSAVL                 USB_OTG_HPTXSTS_PTXFSAVL_Msk              /*!< Periodic transmit data FIFO space available */
21291 #define USB_OTG_HPTXSTS_PTXQSAV_Pos              (16U)
21292 #define USB_OTG_HPTXSTS_PTXQSAV_Msk              (0xFFU << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00FF0000 */
21293 #define USB_OTG_HPTXSTS_PTXQSAV                  USB_OTG_HPTXSTS_PTXQSAV_Msk               /*!< Periodic transmit request queue space available */
21294 #define USB_OTG_HPTXSTS_PTXQSAV_0                (0x01U << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00010000 */
21295 #define USB_OTG_HPTXSTS_PTXQSAV_1                (0x02U << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00020000 */
21296 #define USB_OTG_HPTXSTS_PTXQSAV_2                (0x04U << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00040000 */
21297 #define USB_OTG_HPTXSTS_PTXQSAV_3                (0x08U << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00080000 */
21298 #define USB_OTG_HPTXSTS_PTXQSAV_4                (0x10U << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00100000 */
21299 #define USB_OTG_HPTXSTS_PTXQSAV_5                (0x20U << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00200000 */
21300 #define USB_OTG_HPTXSTS_PTXQSAV_6                (0x40U << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00400000 */
21301 #define USB_OTG_HPTXSTS_PTXQSAV_7                (0x80U << USB_OTG_HPTXSTS_PTXQSAV_Pos)    /*!< 0x00800000 */
21302 
21303 #define USB_OTG_HPTXSTS_PTXQTOP_Pos              (24U)
21304 #define USB_OTG_HPTXSTS_PTXQTOP_Msk              (0xFFU << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0xFF000000 */
21305 #define USB_OTG_HPTXSTS_PTXQTOP                  USB_OTG_HPTXSTS_PTXQTOP_Msk               /*!< Top of the periodic transmit request queue */
21306 #define USB_OTG_HPTXSTS_PTXQTOP_0                (0x01U << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0x01000000 */
21307 #define USB_OTG_HPTXSTS_PTXQTOP_1                (0x02U << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0x02000000 */
21308 #define USB_OTG_HPTXSTS_PTXQTOP_2                (0x04U << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0x04000000 */
21309 #define USB_OTG_HPTXSTS_PTXQTOP_3                (0x08U << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0x08000000 */
21310 #define USB_OTG_HPTXSTS_PTXQTOP_4                (0x10U << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0x10000000 */
21311 #define USB_OTG_HPTXSTS_PTXQTOP_5                (0x20U << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0x20000000 */
21312 #define USB_OTG_HPTXSTS_PTXQTOP_6                (0x40U << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0x40000000 */
21313 #define USB_OTG_HPTXSTS_PTXQTOP_7                (0x80U << USB_OTG_HPTXSTS_PTXQTOP_Pos)    /*!< 0x80000000 */
21314 
21315 /********************  Bit definition for USB_OTG_HAINT register  ********************/
21316 #define USB_OTG_HAINT_HAINT_Pos                  (0U)
21317 #define USB_OTG_HAINT_HAINT_Msk                  (0xFFFFU << USB_OTG_HAINT_HAINT_Pos)      /*!< 0x0000FFFF */
21318 #define USB_OTG_HAINT_HAINT                      USB_OTG_HAINT_HAINT_Msk                   /*!< Channel interrupts */
21319 
21320 /********************  Bit definition for USB_OTG_DOEPMSK register  ********************/
21321 #define USB_OTG_DOEPMSK_XFRCM_Pos                (0U)
21322 #define USB_OTG_DOEPMSK_XFRCM_Msk                (0x1U << USB_OTG_DOEPMSK_XFRCM_Pos)       /*!< 0x00000001 */
21323 #define USB_OTG_DOEPMSK_XFRCM                    USB_OTG_DOEPMSK_XFRCM_Msk                 /*!< Transfer completed interrupt mask */
21324 #define USB_OTG_DOEPMSK_EPDM_Pos                 (1U)
21325 #define USB_OTG_DOEPMSK_EPDM_Msk                 (0x1U << USB_OTG_DOEPMSK_EPDM_Pos)        /*!< 0x00000002 */
21326 #define USB_OTG_DOEPMSK_EPDM                     USB_OTG_DOEPMSK_EPDM_Msk                  /*!< Endpoint disabled interrupt mask */
21327 #define USB_OTG_DOEPMSK_STUPM_Pos                (3U)
21328 #define USB_OTG_DOEPMSK_STUPM_Msk                (0x1U << USB_OTG_DOEPMSK_STUPM_Pos)       /*!< 0x00000008 */
21329 #define USB_OTG_DOEPMSK_STUPM                    USB_OTG_DOEPMSK_STUPM_Msk                 /*!< SETUP phase done mask */
21330 #define USB_OTG_DOEPMSK_OTEPDM_Pos               (4U)
21331 #define USB_OTG_DOEPMSK_OTEPDM_Msk               (0x1U << USB_OTG_DOEPMSK_OTEPDM_Pos)      /*!< 0x00000010 */
21332 #define USB_OTG_DOEPMSK_OTEPDM                   USB_OTG_DOEPMSK_OTEPDM_Msk                /*!< OUT token received when endpoint disabled mask */
21333 #define USB_OTG_DOEPMSK_B2BSTUP_Pos              (6U)
21334 #define USB_OTG_DOEPMSK_B2BSTUP_Msk              (0x1U << USB_OTG_DOEPMSK_B2BSTUP_Pos)     /*!< 0x00000040 */
21335 #define USB_OTG_DOEPMSK_B2BSTUP                  USB_OTG_DOEPMSK_B2BSTUP_Msk               /*!< Back-to-back SETUP packets received mask */
21336 #define USB_OTG_DOEPMSK_OPEM_Pos                 (8U)
21337 #define USB_OTG_DOEPMSK_OPEM_Msk                 (0x1U << USB_OTG_DOEPMSK_OPEM_Pos)        /*!< 0x00000100 */
21338 #define USB_OTG_DOEPMSK_OPEM                     USB_OTG_DOEPMSK_OPEM_Msk                  /*!< OUT packet error mask */
21339 #define USB_OTG_DOEPMSK_BOIM_Pos                 (9U)
21340 #define USB_OTG_DOEPMSK_BOIM_Msk                 (0x1U << USB_OTG_DOEPMSK_BOIM_Pos)        /*!< 0x00000200 */
21341 #define USB_OTG_DOEPMSK_BOIM                     USB_OTG_DOEPMSK_BOIM_Msk                  /*!< BNA interrupt mask */
21342 
21343 /********************  Bit definition for USB_OTG_GINTSTS register  ********************/
21344 #define USB_OTG_GINTSTS_CMOD_Pos                 (0U)
21345 #define USB_OTG_GINTSTS_CMOD_Msk                 (0x1U << USB_OTG_GINTSTS_CMOD_Pos)              /*!< 0x00000001 */
21346 #define USB_OTG_GINTSTS_CMOD                     USB_OTG_GINTSTS_CMOD_Msk                        /*!< Current mode of operation */
21347 #define USB_OTG_GINTSTS_MMIS_Pos                 (1U)
21348 #define USB_OTG_GINTSTS_MMIS_Msk                 (0x1U << USB_OTG_GINTSTS_MMIS_Pos)              /*!< 0x00000002 */
21349 #define USB_OTG_GINTSTS_MMIS                     USB_OTG_GINTSTS_MMIS_Msk                        /*!< Mode mismatch interrupt */
21350 #define USB_OTG_GINTSTS_OTGINT_Pos               (2U)
21351 #define USB_OTG_GINTSTS_OTGINT_Msk               (0x1U << USB_OTG_GINTSTS_OTGINT_Pos)            /*!< 0x00000004 */
21352 #define USB_OTG_GINTSTS_OTGINT                   USB_OTG_GINTSTS_OTGINT_Msk                      /*!< OTG interrupt */
21353 #define USB_OTG_GINTSTS_SOF_Pos                  (3U)
21354 #define USB_OTG_GINTSTS_SOF_Msk                  (0x1U << USB_OTG_GINTSTS_SOF_Pos)               /*!< 0x00000008 */
21355 #define USB_OTG_GINTSTS_SOF                      USB_OTG_GINTSTS_SOF_Msk                         /*!< Start of frame */
21356 #define USB_OTG_GINTSTS_RXFLVL_Pos               (4U)
21357 #define USB_OTG_GINTSTS_RXFLVL_Msk               (0x1U << USB_OTG_GINTSTS_RXFLVL_Pos)            /*!< 0x00000010 */
21358 #define USB_OTG_GINTSTS_RXFLVL                   USB_OTG_GINTSTS_RXFLVL_Msk                      /*!< RxFIFO nonempty */
21359 #define USB_OTG_GINTSTS_NPTXFE_Pos               (5U)
21360 #define USB_OTG_GINTSTS_NPTXFE_Msk               (0x1U << USB_OTG_GINTSTS_NPTXFE_Pos)            /*!< 0x00000020 */
21361 #define USB_OTG_GINTSTS_NPTXFE                   USB_OTG_GINTSTS_NPTXFE_Msk                      /*!< Nonperiodic TxFIFO empty */
21362 #define USB_OTG_GINTSTS_GINAKEFF_Pos             (6U)
21363 #define USB_OTG_GINTSTS_GINAKEFF_Msk             (0x1U << USB_OTG_GINTSTS_GINAKEFF_Pos)          /*!< 0x00000040 */
21364 #define USB_OTG_GINTSTS_GINAKEFF                 USB_OTG_GINTSTS_GINAKEFF_Msk                    /*!< Global IN nonperiodic NAK effective */
21365 #define USB_OTG_GINTSTS_BOUTNAKEFF_Pos           (7U)
21366 #define USB_OTG_GINTSTS_BOUTNAKEFF_Msk           (0x1U << USB_OTG_GINTSTS_BOUTNAKEFF_Pos)        /*!< 0x00000080 */
21367 #define USB_OTG_GINTSTS_BOUTNAKEFF               USB_OTG_GINTSTS_BOUTNAKEFF_Msk                  /*!< Global OUT NAK effective */
21368 #define USB_OTG_GINTSTS_ESUSP_Pos                (10U)
21369 #define USB_OTG_GINTSTS_ESUSP_Msk                (0x1U << USB_OTG_GINTSTS_ESUSP_Pos)             /*!< 0x00000400 */
21370 #define USB_OTG_GINTSTS_ESUSP                    USB_OTG_GINTSTS_ESUSP_Msk                       /*!< Early suspend */
21371 #define USB_OTG_GINTSTS_USBSUSP_Pos              (11U)
21372 #define USB_OTG_GINTSTS_USBSUSP_Msk              (0x1U << USB_OTG_GINTSTS_USBSUSP_Pos)           /*!< 0x00000800 */
21373 #define USB_OTG_GINTSTS_USBSUSP                  USB_OTG_GINTSTS_USBSUSP_Msk                     /*!< USB suspend */
21374 #define USB_OTG_GINTSTS_USBRST_Pos               (12U)
21375 #define USB_OTG_GINTSTS_USBRST_Msk               (0x1U << USB_OTG_GINTSTS_USBRST_Pos)            /*!< 0x00001000 */
21376 #define USB_OTG_GINTSTS_USBRST                   USB_OTG_GINTSTS_USBRST_Msk                      /*!< USB reset */
21377 #define USB_OTG_GINTSTS_ENUMDNE_Pos              (13U)
21378 #define USB_OTG_GINTSTS_ENUMDNE_Msk              (0x1U << USB_OTG_GINTSTS_ENUMDNE_Pos)           /*!< 0x00002000 */
21379 #define USB_OTG_GINTSTS_ENUMDNE                  USB_OTG_GINTSTS_ENUMDNE_Msk                     /*!< Enumeration done */
21380 #define USB_OTG_GINTSTS_ISOODRP_Pos              (14U)
21381 #define USB_OTG_GINTSTS_ISOODRP_Msk              (0x1U << USB_OTG_GINTSTS_ISOODRP_Pos)           /*!< 0x00004000 */
21382 #define USB_OTG_GINTSTS_ISOODRP                  USB_OTG_GINTSTS_ISOODRP_Msk                     /*!< Isochronous OUT packet dropped interrupt */
21383 #define USB_OTG_GINTSTS_EOPF_Pos                 (15U)
21384 #define USB_OTG_GINTSTS_EOPF_Msk                 (0x1U << USB_OTG_GINTSTS_EOPF_Pos)              /*!< 0x00008000 */
21385 #define USB_OTG_GINTSTS_EOPF                     USB_OTG_GINTSTS_EOPF_Msk                        /*!< End of periodic frame interrupt */
21386 #define USB_OTG_GINTSTS_IEPINT_Pos               (18U)
21387 #define USB_OTG_GINTSTS_IEPINT_Msk               (0x1U << USB_OTG_GINTSTS_IEPINT_Pos)            /*!< 0x00040000 */
21388 #define USB_OTG_GINTSTS_IEPINT                   USB_OTG_GINTSTS_IEPINT_Msk                      /*!< IN endpoint interrupt */
21389 #define USB_OTG_GINTSTS_OEPINT_Pos               (19U)
21390 #define USB_OTG_GINTSTS_OEPINT_Msk               (0x1U << USB_OTG_GINTSTS_OEPINT_Pos)            /*!< 0x00080000 */
21391 #define USB_OTG_GINTSTS_OEPINT                   USB_OTG_GINTSTS_OEPINT_Msk                      /*!< OUT endpoint interrupt */
21392 #define USB_OTG_GINTSTS_IISOIXFR_Pos             (20U)
21393 #define USB_OTG_GINTSTS_IISOIXFR_Msk             (0x1U << USB_OTG_GINTSTS_IISOIXFR_Pos)          /*!< 0x00100000 */
21394 #define USB_OTG_GINTSTS_IISOIXFR                 USB_OTG_GINTSTS_IISOIXFR_Msk                    /*!< Incomplete isochronous IN transfer */
21395 #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos    (21U)
21396 #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk    (0x1U << USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Pos) /*!< 0x00200000 */
21397 #define USB_OTG_GINTSTS_PXFR_INCOMPISOOUT        USB_OTG_GINTSTS_PXFR_INCOMPISOOUT_Msk           /*!< Incomplete periodic transfer */
21398 #define USB_OTG_GINTSTS_DATAFSUSP_Pos            (22U)
21399 #define USB_OTG_GINTSTS_DATAFSUSP_Msk            (0x1U << USB_OTG_GINTSTS_DATAFSUSP_Pos)         /*!< 0x00400000 */
21400 #define USB_OTG_GINTSTS_DATAFSUSP                USB_OTG_GINTSTS_DATAFSUSP_Msk                   /*!< Data fetch suspended */
21401 #define USB_OTG_GINTSTS_HPRTINT_Pos              (24U)
21402 #define USB_OTG_GINTSTS_HPRTINT_Msk              (0x1U << USB_OTG_GINTSTS_HPRTINT_Pos)           /*!< 0x01000000 */
21403 #define USB_OTG_GINTSTS_HPRTINT                  USB_OTG_GINTSTS_HPRTINT_Msk                     /*!< Host port interrupt */
21404 #define USB_OTG_GINTSTS_HCINT_Pos                (25U)
21405 #define USB_OTG_GINTSTS_HCINT_Msk                (0x1U << USB_OTG_GINTSTS_HCINT_Pos)             /*!< 0x02000000 */
21406 #define USB_OTG_GINTSTS_HCINT                    USB_OTG_GINTSTS_HCINT_Msk                       /*!< Host channels interrupt */
21407 #define USB_OTG_GINTSTS_PTXFE_Pos                (26U)
21408 #define USB_OTG_GINTSTS_PTXFE_Msk                (0x1U << USB_OTG_GINTSTS_PTXFE_Pos)             /*!< 0x04000000 */
21409 #define USB_OTG_GINTSTS_PTXFE                    USB_OTG_GINTSTS_PTXFE_Msk                       /*!< Periodic TxFIFO empty */
21410 #define USB_OTG_GINTSTS_LPMINT_Pos               (27U)
21411 #define USB_OTG_GINTSTS_LPMINT_Msk               (0x1U << USB_OTG_GINTSTS_LPMINT_Pos)            /*!< 0x08000000 */
21412 #define USB_OTG_GINTSTS_LPMINT                   USB_OTG_GINTSTS_LPMINT_Msk                      /*!< LPM interrupt */
21413 #define USB_OTG_GINTSTS_CIDSCHG_Pos              (28U)
21414 #define USB_OTG_GINTSTS_CIDSCHG_Msk              (0x1U << USB_OTG_GINTSTS_CIDSCHG_Pos)           /*!< 0x10000000 */
21415 #define USB_OTG_GINTSTS_CIDSCHG                  USB_OTG_GINTSTS_CIDSCHG_Msk                     /*!< Connector ID status change */
21416 #define USB_OTG_GINTSTS_DISCINT_Pos              (29U)
21417 #define USB_OTG_GINTSTS_DISCINT_Msk              (0x1U << USB_OTG_GINTSTS_DISCINT_Pos)           /*!< 0x20000000 */
21418 #define USB_OTG_GINTSTS_DISCINT                  USB_OTG_GINTSTS_DISCINT_Msk                     /*!< Disconnect detected interrupt */
21419 #define USB_OTG_GINTSTS_SRQINT_Pos               (30U)
21420 #define USB_OTG_GINTSTS_SRQINT_Msk               (0x1U << USB_OTG_GINTSTS_SRQINT_Pos)            /*!< 0x40000000 */
21421 #define USB_OTG_GINTSTS_SRQINT                   USB_OTG_GINTSTS_SRQINT_Msk                      /*!< Session request/new session detected interrupt */
21422 #define USB_OTG_GINTSTS_WKUINT_Pos               (31U)
21423 #define USB_OTG_GINTSTS_WKUINT_Msk               (0x1U << USB_OTG_GINTSTS_WKUINT_Pos)            /*!< 0x80000000 */
21424 #define USB_OTG_GINTSTS_WKUINT                   USB_OTG_GINTSTS_WKUINT_Msk                      /*!< Resume/remote wakeup detected interrupt */
21425 
21426 /********************  Bit definition for USB_OTG_GINTMSK register  ********************/
21427 #define USB_OTG_GINTMSK_MMISM_Pos                (1U)
21428 #define USB_OTG_GINTMSK_MMISM_Msk                (0x1U << USB_OTG_GINTMSK_MMISM_Pos)           /*!< 0x00000002 */
21429 #define USB_OTG_GINTMSK_MMISM                    USB_OTG_GINTMSK_MMISM_Msk                     /*!< Mode mismatch interrupt mask */
21430 #define USB_OTG_GINTMSK_OTGINT_Pos               (2U)
21431 #define USB_OTG_GINTMSK_OTGINT_Msk               (0x1U << USB_OTG_GINTMSK_OTGINT_Pos)          /*!< 0x00000004 */
21432 #define USB_OTG_GINTMSK_OTGINT                   USB_OTG_GINTMSK_OTGINT_Msk                    /*!< OTG interrupt mask */
21433 #define USB_OTG_GINTMSK_SOFM_Pos                 (3U)
21434 #define USB_OTG_GINTMSK_SOFM_Msk                 (0x1U << USB_OTG_GINTMSK_SOFM_Pos)            /*!< 0x00000008 */
21435 #define USB_OTG_GINTMSK_SOFM                     USB_OTG_GINTMSK_SOFM_Msk                      /*!< Start of frame mask */
21436 #define USB_OTG_GINTMSK_RXFLVLM_Pos              (4U)
21437 #define USB_OTG_GINTMSK_RXFLVLM_Msk              (0x1U << USB_OTG_GINTMSK_RXFLVLM_Pos)         /*!< 0x00000010 */
21438 #define USB_OTG_GINTMSK_RXFLVLM                  USB_OTG_GINTMSK_RXFLVLM_Msk                   /*!< Receive FIFO nonempty mask */
21439 #define USB_OTG_GINTMSK_NPTXFEM_Pos              (5U)
21440 #define USB_OTG_GINTMSK_NPTXFEM_Msk              (0x1U << USB_OTG_GINTMSK_NPTXFEM_Pos)         /*!< 0x00000020 */
21441 #define USB_OTG_GINTMSK_NPTXFEM                  USB_OTG_GINTMSK_NPTXFEM_Msk                   /*!< Nonperiodic TxFIFO empty mask */
21442 #define USB_OTG_GINTMSK_GINAKEFFM_Pos            (6U)
21443 #define USB_OTG_GINTMSK_GINAKEFFM_Msk            (0x1U << USB_OTG_GINTMSK_GINAKEFFM_Pos)       /*!< 0x00000040 */
21444 #define USB_OTG_GINTMSK_GINAKEFFM                USB_OTG_GINTMSK_GINAKEFFM_Msk                 /*!< Global nonperiodic IN NAK effective mask */
21445 #define USB_OTG_GINTMSK_GONAKEFFM_Pos            (7U)
21446 #define USB_OTG_GINTMSK_GONAKEFFM_Msk            (0x1U << USB_OTG_GINTMSK_GONAKEFFM_Pos)       /*!< 0x00000080 */
21447 #define USB_OTG_GINTMSK_GONAKEFFM                USB_OTG_GINTMSK_GONAKEFFM_Msk                 /*!< Global OUT NAK effective mask */
21448 #define USB_OTG_GINTMSK_ESUSPM_Pos               (10U)
21449 #define USB_OTG_GINTMSK_ESUSPM_Msk               (0x1U << USB_OTG_GINTMSK_ESUSPM_Pos)          /*!< 0x00000400 */
21450 #define USB_OTG_GINTMSK_ESUSPM                   USB_OTG_GINTMSK_ESUSPM_Msk                    /*!< Early suspend mask */
21451 #define USB_OTG_GINTMSK_USBSUSPM_Pos             (11U)
21452 #define USB_OTG_GINTMSK_USBSUSPM_Msk             (0x1U << USB_OTG_GINTMSK_USBSUSPM_Pos)        /*!< 0x00000800 */
21453 #define USB_OTG_GINTMSK_USBSUSPM                 USB_OTG_GINTMSK_USBSUSPM_Msk                  /*!< USB suspend mask */
21454 #define USB_OTG_GINTMSK_USBRST_Pos               (12U)
21455 #define USB_OTG_GINTMSK_USBRST_Msk               (0x1U << USB_OTG_GINTMSK_USBRST_Pos)          /*!< 0x00001000 */
21456 #define USB_OTG_GINTMSK_USBRST                   USB_OTG_GINTMSK_USBRST_Msk                    /*!< USB reset mask */
21457 #define USB_OTG_GINTMSK_ENUMDNEM_Pos             (13U)
21458 #define USB_OTG_GINTMSK_ENUMDNEM_Msk             (0x1U << USB_OTG_GINTMSK_ENUMDNEM_Pos)        /*!< 0x00002000 */
21459 #define USB_OTG_GINTMSK_ENUMDNEM                 USB_OTG_GINTMSK_ENUMDNEM_Msk                  /*!< Enumeration done mask */
21460 #define USB_OTG_GINTMSK_ISOODRPM_Pos             (14U)
21461 #define USB_OTG_GINTMSK_ISOODRPM_Msk             (0x1U << USB_OTG_GINTMSK_ISOODRPM_Pos)        /*!< 0x00004000 */
21462 #define USB_OTG_GINTMSK_ISOODRPM                 USB_OTG_GINTMSK_ISOODRPM_Msk                  /*!< Isochronous OUT packet dropped interrupt mask */
21463 #define USB_OTG_GINTMSK_EOPFM_Pos                (15U)
21464 #define USB_OTG_GINTMSK_EOPFM_Msk                (0x1U << USB_OTG_GINTMSK_EOPFM_Pos)           /*!< 0x00008000 */
21465 #define USB_OTG_GINTMSK_EOPFM                    USB_OTG_GINTMSK_EOPFM_Msk                     /*!< End of periodic frame interrupt mask */
21466 #define USB_OTG_GINTMSK_EPMISM_Pos               (17U)
21467 #define USB_OTG_GINTMSK_EPMISM_Msk               (0x1U << USB_OTG_GINTMSK_EPMISM_Pos)          /*!< 0x00020000 */
21468 #define USB_OTG_GINTMSK_EPMISM                   USB_OTG_GINTMSK_EPMISM_Msk                    /*!< Endpoint mismatch interrupt mask */
21469 #define USB_OTG_GINTMSK_IEPINT_Pos               (18U)
21470 #define USB_OTG_GINTMSK_IEPINT_Msk               (0x1U << USB_OTG_GINTMSK_IEPINT_Pos)          /*!< 0x00040000 */
21471 #define USB_OTG_GINTMSK_IEPINT                   USB_OTG_GINTMSK_IEPINT_Msk                    /*!< IN endpoints interrupt mask */
21472 #define USB_OTG_GINTMSK_OEPINT_Pos               (19U)
21473 #define USB_OTG_GINTMSK_OEPINT_Msk               (0x1U << USB_OTG_GINTMSK_OEPINT_Pos)          /*!< 0x00080000 */
21474 #define USB_OTG_GINTMSK_OEPINT                   USB_OTG_GINTMSK_OEPINT_Msk                    /*!< OUT endpoints interrupt mask */
21475 #define USB_OTG_GINTMSK_IISOIXFRM_Pos            (20U)
21476 #define USB_OTG_GINTMSK_IISOIXFRM_Msk            (0x1U << USB_OTG_GINTMSK_IISOIXFRM_Pos)       /*!< 0x00100000 */
21477 #define USB_OTG_GINTMSK_IISOIXFRM                USB_OTG_GINTMSK_IISOIXFRM_Msk                 /*!< Incomplete isochronous IN transfer mask */
21478 #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos      (21U)
21479 #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk      (0x1U << USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Pos) /*!< 0x00200000 */
21480 #define USB_OTG_GINTMSK_PXFRM_IISOOXFRM          USB_OTG_GINTMSK_PXFRM_IISOOXFRM_Msk           /*!< Incomplete periodic transfer mask */
21481 #define USB_OTG_GINTMSK_FSUSPM_Pos               (22U)
21482 #define USB_OTG_GINTMSK_FSUSPM_Msk               (0x1U << USB_OTG_GINTMSK_FSUSPM_Pos)          /*!< 0x00400000 */
21483 #define USB_OTG_GINTMSK_FSUSPM                   USB_OTG_GINTMSK_FSUSPM_Msk                    /*!< Data fetch suspended mask */
21484 #define USB_OTG_GINTMSK_PRTIM_Pos                (24U)
21485 #define USB_OTG_GINTMSK_PRTIM_Msk                (0x1U << USB_OTG_GINTMSK_PRTIM_Pos)           /*!< 0x01000000 */
21486 #define USB_OTG_GINTMSK_PRTIM                    USB_OTG_GINTMSK_PRTIM_Msk                     /*!< Host port interrupt mask */
21487 #define USB_OTG_GINTMSK_HCIM_Pos                 (25U)
21488 #define USB_OTG_GINTMSK_HCIM_Msk                 (0x1U << USB_OTG_GINTMSK_HCIM_Pos)            /*!< 0x02000000 */
21489 #define USB_OTG_GINTMSK_HCIM                     USB_OTG_GINTMSK_HCIM_Msk                      /*!< Host channels interrupt mask */
21490 #define USB_OTG_GINTMSK_PTXFEM_Pos               (26U)
21491 #define USB_OTG_GINTMSK_PTXFEM_Msk               (0x1U << USB_OTG_GINTMSK_PTXFEM_Pos)          /*!< 0x04000000 */
21492 #define USB_OTG_GINTMSK_PTXFEM                   USB_OTG_GINTMSK_PTXFEM_Msk                    /*!< Periodic TxFIFO empty mask */
21493 #define USB_OTG_GINTMSK_LPMINTM_Pos              (27U)
21494 #define USB_OTG_GINTMSK_LPMINTM_Msk              (0x1U << USB_OTG_GINTMSK_LPMINTM_Pos)         /*!< 0x08000000 */
21495 #define USB_OTG_GINTMSK_LPMINTM                  USB_OTG_GINTMSK_LPMINTM_Msk                   /*!< LPM interrupt Mask */
21496 #define USB_OTG_GINTMSK_CIDSCHGM_Pos             (28U)
21497 #define USB_OTG_GINTMSK_CIDSCHGM_Msk             (0x1U << USB_OTG_GINTMSK_CIDSCHGM_Pos)        /*!< 0x10000000 */
21498 #define USB_OTG_GINTMSK_CIDSCHGM                 USB_OTG_GINTMSK_CIDSCHGM_Msk                  /*!< Connector ID status change mask */
21499 #define USB_OTG_GINTMSK_DISCINT_Pos              (29U)
21500 #define USB_OTG_GINTMSK_DISCINT_Msk              (0x1U << USB_OTG_GINTMSK_DISCINT_Pos)         /*!< 0x20000000 */
21501 #define USB_OTG_GINTMSK_DISCINT                  USB_OTG_GINTMSK_DISCINT_Msk                   /*!< Disconnect detected interrupt mask */
21502 #define USB_OTG_GINTMSK_SRQIM_Pos                (30U)
21503 #define USB_OTG_GINTMSK_SRQIM_Msk                (0x1U << USB_OTG_GINTMSK_SRQIM_Pos)           /*!< 0x40000000 */
21504 #define USB_OTG_GINTMSK_SRQIM                    USB_OTG_GINTMSK_SRQIM_Msk                     /*!< Session request/new session detected interrupt mask */
21505 #define USB_OTG_GINTMSK_WUIM_Pos                 (31U)
21506 #define USB_OTG_GINTMSK_WUIM_Msk                 (0x1U << USB_OTG_GINTMSK_WUIM_Pos)            /*!< 0x80000000 */
21507 #define USB_OTG_GINTMSK_WUIM                     USB_OTG_GINTMSK_WUIM_Msk                      /*!< Resume/remote wakeup detected interrupt mask */
21508 
21509 /********************  Bit definition for USB_OTG_DAINT register  ********************/
21510 #define USB_OTG_DAINT_IEPINT_Pos                 (0U)
21511 #define USB_OTG_DAINT_IEPINT_Msk                 (0xFFFFU << USB_OTG_DAINT_IEPINT_Pos)         /*!< 0x0000FFFF */
21512 #define USB_OTG_DAINT_IEPINT                     USB_OTG_DAINT_IEPINT_Msk                      /*!< IN endpoint interrupt bits */
21513 #define USB_OTG_DAINT_OEPINT_Pos                 (16U)
21514 #define USB_OTG_DAINT_OEPINT_Msk                 (0xFFFFU << USB_OTG_DAINT_OEPINT_Pos)         /*!< 0xFFFF0000 */
21515 #define USB_OTG_DAINT_OEPINT                     USB_OTG_DAINT_OEPINT_Msk                      /*!< OUT endpoint interrupt bits */
21516 
21517 /********************  Bit definition for USB_OTG_HAINTMSK register  ********************/
21518 #define USB_OTG_HAINTMSK_HAINTM_Pos              (0U)
21519 #define USB_OTG_HAINTMSK_HAINTM_Msk              (0xFFFFU << USB_OTG_HAINTMSK_HAINTM_Pos)      /*!< 0x0000FFFF */
21520 #define USB_OTG_HAINTMSK_HAINTM                  USB_OTG_HAINTMSK_HAINTM_Msk                   /*!< Channel interrupt mask */
21521 
21522 /********************  Bit definition for USB_OTG_GRXSTSP register  ********************/
21523 #define USB_OTG_GRXSTSP_EPNUM_Pos                (0U)
21524 #define USB_OTG_GRXSTSP_EPNUM_Msk                (0xFU << USB_OTG_GRXSTSP_EPNUM_Pos)           /*!< 0x0000000F */
21525 #define USB_OTG_GRXSTSP_EPNUM                    USB_OTG_GRXSTSP_EPNUM_Msk                     /*!< IN EP interrupt mask bits */
21526 #define USB_OTG_GRXSTSP_BCNT_Pos                 (4U)
21527 #define USB_OTG_GRXSTSP_BCNT_Msk                 (0x7FFU << USB_OTG_GRXSTSP_BCNT_Pos)          /*!< 0x00007FF0 */
21528 #define USB_OTG_GRXSTSP_BCNT                     USB_OTG_GRXSTSP_BCNT_Msk                      /*!< OUT EP interrupt mask bits */
21529 #define USB_OTG_GRXSTSP_DPID_Pos                 (15U)
21530 #define USB_OTG_GRXSTSP_DPID_Msk                 (0x3U << USB_OTG_GRXSTSP_DPID_Pos)            /*!< 0x00018000 */
21531 #define USB_OTG_GRXSTSP_DPID                     USB_OTG_GRXSTSP_DPID_Msk                      /*!< OUT EP interrupt mask bits */
21532 #define USB_OTG_GRXSTSP_PKTSTS_Pos               (17U)
21533 #define USB_OTG_GRXSTSP_PKTSTS_Msk               (0xFU << USB_OTG_GRXSTSP_PKTSTS_Pos)          /*!< 0x001E0000 */
21534 #define USB_OTG_GRXSTSP_PKTSTS                   USB_OTG_GRXSTSP_PKTSTS_Msk                    /*!< OUT EP interrupt mask bits */
21535 
21536 /********************  Bit definition for USB_OTG_DAINTMSK register  ********************/
21537 #define USB_OTG_DAINTMSK_IEPM_Pos                (0U)
21538 #define USB_OTG_DAINTMSK_IEPM_Msk                (0xFFFFU << USB_OTG_DAINTMSK_IEPM_Pos)        /*!< 0x0000FFFF */
21539 #define USB_OTG_DAINTMSK_IEPM                    USB_OTG_DAINTMSK_IEPM_Msk                     /*!< IN EP interrupt mask bits */
21540 #define USB_OTG_DAINTMSK_OEPM_Pos                (16U)
21541 #define USB_OTG_DAINTMSK_OEPM_Msk                (0xFFFFU << USB_OTG_DAINTMSK_OEPM_Pos)        /*!< 0xFFFF0000 */
21542 #define USB_OTG_DAINTMSK_OEPM                    USB_OTG_DAINTMSK_OEPM_Msk                     /*!< OUT EP interrupt mask bits */
21543 
21544 /********************  Bit definition for OTG register  ********************/
21545 #define USB_OTG_CHNUM_Pos                        (0U)
21546 #define USB_OTG_CHNUM_Msk                        (0xFU << USB_OTG_CHNUM_Pos)                  /*!< 0x0000000F */
21547 #define USB_OTG_CHNUM                            USB_OTG_CHNUM_Msk                            /*!< Channel number */
21548 #define USB_OTG_CHNUM_0                          (0x1U << USB_OTG_CHNUM_Pos)                  /*!< 0x00000001 */
21549 #define USB_OTG_CHNUM_1                          (0x2U << USB_OTG_CHNUM_Pos)                  /*!< 0x00000002 */
21550 #define USB_OTG_CHNUM_2                          (0x4U << USB_OTG_CHNUM_Pos)                  /*!< 0x00000004 */
21551 #define USB_OTG_CHNUM_3                          (0x8U << USB_OTG_CHNUM_Pos)                  /*!< 0x00000008 */
21552 #define USB_OTG_BCNT_Pos                         (4U)
21553 #define USB_OTG_BCNT_Msk                         (0x7FFU << USB_OTG_BCNT_Pos)                 /*!< 0x00007FF0 */
21554 #define USB_OTG_BCNT                             USB_OTG_BCNT_Msk                             /*!< Byte count */
21555 #define USB_OTG_DPID_Pos                         (15U)
21556 #define USB_OTG_DPID_Msk                         (0x3U << USB_OTG_DPID_Pos)                   /*!< 0x00018000 */
21557 #define USB_OTG_DPID                             USB_OTG_DPID_Msk                             /*!< Data PID */
21558 #define USB_OTG_DPID_0                           (0x1U << USB_OTG_DPID_Pos)                   /*!< 0x00008000 */
21559 #define USB_OTG_DPID_1                           (0x2U << USB_OTG_DPID_Pos)                   /*!< 0x00010000 */
21560 #define USB_OTG_PKTSTS_Pos                       (17U)
21561 #define USB_OTG_PKTSTS_Msk                       (0xFU << USB_OTG_PKTSTS_Pos)                 /*!< 0x001E0000 */
21562 #define USB_OTG_PKTSTS                           USB_OTG_PKTSTS_Msk                           /*!< Packet status */
21563 #define USB_OTG_PKTSTS_0                         (0x1U << USB_OTG_PKTSTS_Pos)                 /*!< 0x00020000 */
21564 #define USB_OTG_PKTSTS_1                         (0x2U << USB_OTG_PKTSTS_Pos)                 /*!< 0x00040000 */
21565 #define USB_OTG_PKTSTS_2                         (0x4U << USB_OTG_PKTSTS_Pos)                 /*!< 0x00080000 */
21566 #define USB_OTG_PKTSTS_3                         (0x8U << USB_OTG_PKTSTS_Pos)                 /*!< 0x00100000 */
21567 #define USB_OTG_EPNUM_Pos                        (0U)
21568 #define USB_OTG_EPNUM_Msk                        (0xFU << USB_OTG_EPNUM_Pos)                  /*!< 0x0000000F */
21569 #define USB_OTG_EPNUM                            USB_OTG_EPNUM_Msk                            /*!< Endpoint number */
21570 #define USB_OTG_EPNUM_0                          (0x1U << USB_OTG_EPNUM_Pos)                  /*!< 0x00000001 */
21571 #define USB_OTG_EPNUM_1                          (0x2U << USB_OTG_EPNUM_Pos)                  /*!< 0x00000002 */
21572 #define USB_OTG_EPNUM_2                          (0x4U << USB_OTG_EPNUM_Pos)                  /*!< 0x00000004 */
21573 #define USB_OTG_EPNUM_3                          (0x8U << USB_OTG_EPNUM_Pos)                  /*!< 0x00000008 */
21574 #define USB_OTG_FRMNUM_Pos                       (21U)
21575 #define USB_OTG_FRMNUM_Msk                       (0xFU << USB_OTG_FRMNUM_Pos)                 /*!< 0x01E00000 */
21576 #define USB_OTG_FRMNUM                           USB_OTG_FRMNUM_Msk                           /*!< Frame number */
21577 #define USB_OTG_FRMNUM_0                         (0x1U << USB_OTG_FRMNUM_Pos)                 /*!< 0x00200000 */
21578 #define USB_OTG_FRMNUM_1                         (0x2U << USB_OTG_FRMNUM_Pos)                 /*!< 0x00400000 */
21579 #define USB_OTG_FRMNUM_2                         (0x4U << USB_OTG_FRMNUM_Pos)                 /*!< 0x00800000 */
21580 #define USB_OTG_FRMNUM_3                         (0x8U << USB_OTG_FRMNUM_Pos)                 /*!< 0x01000000 */
21581 
21582 /********************  Bit definition for USB_OTG_GRXFSIZ register  ********************/
21583 #define USB_OTG_GRXFSIZ_RXFD_Pos                 (0U)
21584 #define USB_OTG_GRXFSIZ_RXFD_Msk                 (0xFFFFU << USB_OTG_GRXFSIZ_RXFD_Pos)        /*!< 0x0000FFFF */
21585 #define USB_OTG_GRXFSIZ_RXFD                     USB_OTG_GRXFSIZ_RXFD_Msk                     /*!< RxFIFO depth */
21586 
21587 /********************  Bit definition for USB_OTG_DVBUSDIS register  ********************/
21588 #define USB_OTG_DVBUSDIS_VBUSDT_Pos              (0U)
21589 #define USB_OTG_DVBUSDIS_VBUSDT_Msk              (0xFFFFU << USB_OTG_DVBUSDIS_VBUSDT_Pos)     /*!< 0x0000FFFF */
21590 #define USB_OTG_DVBUSDIS_VBUSDT                  USB_OTG_DVBUSDIS_VBUSDT_Msk                  /*!< Device VBUS discharge time */
21591 
21592 /********************  Bit definition for OTG register  ********************/
21593 #define USB_OTG_NPTXFSA_Pos                      (0U)
21594 #define USB_OTG_NPTXFSA_Msk                      (0xFFFFU << USB_OTG_NPTXFSA_Pos)             /*!< 0x0000FFFF */
21595 #define USB_OTG_NPTXFSA                          USB_OTG_NPTXFSA_Msk                          /*!< Nonperiodic transmit RAM start address */
21596 #define USB_OTG_NPTXFD_Pos                       (16U)
21597 #define USB_OTG_NPTXFD_Msk                       (0xFFFFU << USB_OTG_NPTXFD_Pos)              /*!< 0xFFFF0000 */
21598 #define USB_OTG_NPTXFD                           USB_OTG_NPTXFD_Msk                           /*!< Nonperiodic TxFIFO depth */
21599 #define USB_OTG_TX0FSA_Pos                       (0U)
21600 #define USB_OTG_TX0FSA_Msk                       (0xFFFFU << USB_OTG_TX0FSA_Pos)              /*!< 0x0000FFFF */
21601 #define USB_OTG_TX0FSA                           USB_OTG_TX0FSA_Msk                           /*!< Endpoint 0 transmit RAM start address */
21602 #define USB_OTG_TX0FD_Pos                        (16U)
21603 #define USB_OTG_TX0FD_Msk                        (0xFFFFU << USB_OTG_TX0FD_Pos)               /*!< 0xFFFF0000 */
21604 #define USB_OTG_TX0FD                            USB_OTG_TX0FD_Msk                            /*!< Endpoint 0 TxFIFO depth */
21605 
21606 /********************  Bit definition for USB_OTG_DVBUSPULSE register  ********************/
21607 #define USB_OTG_DVBUSPULSE_DVBUSP_Pos            (0U)
21608 #define USB_OTG_DVBUSPULSE_DVBUSP_Msk            (0xFFFU << USB_OTG_DVBUSPULSE_DVBUSP_Pos)    /*!< 0x00000FFF */
21609 #define USB_OTG_DVBUSPULSE_DVBUSP                USB_OTG_DVBUSPULSE_DVBUSP_Msk                /*!< Device VBUS pulsing time */
21610 
21611 /********************  Bit definition for USB_OTG_GNPTXSTS register  ********************/
21612 #define USB_OTG_GNPTXSTS_NPTXFSAV_Pos            (0U)
21613 #define USB_OTG_GNPTXSTS_NPTXFSAV_Msk            (0xFFFFU << USB_OTG_GNPTXSTS_NPTXFSAV_Pos)   /*!< 0x0000FFFF */
21614 #define USB_OTG_GNPTXSTS_NPTXFSAV                USB_OTG_GNPTXSTS_NPTXFSAV_Msk                /*!< Nonperiodic TxFIFO space available */
21615 
21616 #define USB_OTG_GNPTXSTS_NPTQXSAV_Pos            (16U)
21617 #define USB_OTG_GNPTXSTS_NPTQXSAV_Msk            (0xFFU << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00FF0000 */
21618 #define USB_OTG_GNPTXSTS_NPTQXSAV                USB_OTG_GNPTXSTS_NPTQXSAV_Msk                /*!< Nonperiodic transmit request queue space available */
21619 #define USB_OTG_GNPTXSTS_NPTQXSAV_0              (0x01U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00010000 */
21620 #define USB_OTG_GNPTXSTS_NPTQXSAV_1              (0x02U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00020000 */
21621 #define USB_OTG_GNPTXSTS_NPTQXSAV_2              (0x04U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00040000 */
21622 #define USB_OTG_GNPTXSTS_NPTQXSAV_3              (0x08U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00080000 */
21623 #define USB_OTG_GNPTXSTS_NPTQXSAV_4              (0x10U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00100000 */
21624 #define USB_OTG_GNPTXSTS_NPTQXSAV_5              (0x20U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00200000 */
21625 #define USB_OTG_GNPTXSTS_NPTQXSAV_6              (0x40U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00400000 */
21626 #define USB_OTG_GNPTXSTS_NPTQXSAV_7              (0x80U << USB_OTG_GNPTXSTS_NPTQXSAV_Pos)     /*!< 0x00800000 */
21627 
21628 #define USB_OTG_GNPTXSTS_NPTXQTOP_Pos            (24U)
21629 #define USB_OTG_GNPTXSTS_NPTXQTOP_Msk            (0x7FU << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)     /*!< 0x7F000000 */
21630 #define USB_OTG_GNPTXSTS_NPTXQTOP                USB_OTG_GNPTXSTS_NPTXQTOP_Msk                /*!< Top of the nonperiodic transmit request queue */
21631 #define USB_OTG_GNPTXSTS_NPTXQTOP_0              (0x01U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)     /*!< 0x01000000 */
21632 #define USB_OTG_GNPTXSTS_NPTXQTOP_1              (0x02U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)     /*!< 0x02000000 */
21633 #define USB_OTG_GNPTXSTS_NPTXQTOP_2              (0x04U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)     /*!< 0x04000000 */
21634 #define USB_OTG_GNPTXSTS_NPTXQTOP_3              (0x08U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)     /*!< 0x08000000 */
21635 #define USB_OTG_GNPTXSTS_NPTXQTOP_4              (0x10U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)     /*!< 0x10000000 */
21636 #define USB_OTG_GNPTXSTS_NPTXQTOP_5              (0x20U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)     /*!< 0x20000000 */
21637 #define USB_OTG_GNPTXSTS_NPTXQTOP_6              (0x40U << USB_OTG_GNPTXSTS_NPTXQTOP_Pos)     /*!< 0x40000000 */
21638 
21639 /********************  Bit definition for USB_OTG_DTHRCTL register  ***************/
21640 #define USB_OTG_DTHRCTL_NONISOTHREN_Pos          (0U)
21641 #define USB_OTG_DTHRCTL_NONISOTHREN_Msk          (0x1U << USB_OTG_DTHRCTL_NONISOTHREN_Pos)    /*!< 0x00000001 */
21642 #define USB_OTG_DTHRCTL_NONISOTHREN              USB_OTG_DTHRCTL_NONISOTHREN_Msk              /*!< Nonisochronous IN endpoints threshold enable */
21643 #define USB_OTG_DTHRCTL_ISOTHREN_Pos             (1U)
21644 #define USB_OTG_DTHRCTL_ISOTHREN_Msk             (0x1U << USB_OTG_DTHRCTL_ISOTHREN_Pos)       /*!< 0x00000002 */
21645 #define USB_OTG_DTHRCTL_ISOTHREN                 USB_OTG_DTHRCTL_ISOTHREN_Msk                 /*!< ISO IN endpoint threshold enable */
21646 #define USB_OTG_DTHRCTL_TXTHRLEN_Pos             (2U)
21647 #define USB_OTG_DTHRCTL_TXTHRLEN_Msk             (0x1FFU << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x000007FC */
21648 #define USB_OTG_DTHRCTL_TXTHRLEN                 USB_OTG_DTHRCTL_TXTHRLEN_Msk                 /*!< Transmit threshold length */
21649 #define USB_OTG_DTHRCTL_TXTHRLEN_0               (0x001U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000004 */
21650 #define USB_OTG_DTHRCTL_TXTHRLEN_1               (0x002U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000008 */
21651 #define USB_OTG_DTHRCTL_TXTHRLEN_2               (0x004U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000010 */
21652 #define USB_OTG_DTHRCTL_TXTHRLEN_3               (0x008U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000020 */
21653 #define USB_OTG_DTHRCTL_TXTHRLEN_4               (0x010U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000040 */
21654 #define USB_OTG_DTHRCTL_TXTHRLEN_5               (0x020U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000080 */
21655 #define USB_OTG_DTHRCTL_TXTHRLEN_6               (0x040U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000100 */
21656 #define USB_OTG_DTHRCTL_TXTHRLEN_7               (0x080U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000200 */
21657 #define USB_OTG_DTHRCTL_TXTHRLEN_8               (0x100U << USB_OTG_DTHRCTL_TXTHRLEN_Pos)     /*!< 0x00000400 */
21658 
21659 #define USB_OTG_DTHRCTL_RXTHREN_Pos              (16U)
21660 #define USB_OTG_DTHRCTL_RXTHREN_Msk              (0x1U << USB_OTG_DTHRCTL_RXTHREN_Pos)        /*!< 0x00010000 */
21661 #define USB_OTG_DTHRCTL_RXTHREN                  USB_OTG_DTHRCTL_RXTHREN_Msk                  /*!< Receive threshold enable */
21662 #define USB_OTG_DTHRCTL_RXTHRLEN_Pos             (17U)
21663 #define USB_OTG_DTHRCTL_RXTHRLEN_Msk             (0x1FFU << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x03FE0000 */
21664 #define USB_OTG_DTHRCTL_RXTHRLEN                 USB_OTG_DTHRCTL_RXTHRLEN_Msk                 /*!< Receive threshold length */
21665 #define USB_OTG_DTHRCTL_RXTHRLEN_0               (0x001U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x00020000 */
21666 #define USB_OTG_DTHRCTL_RXTHRLEN_1               (0x002U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x00040000 */
21667 #define USB_OTG_DTHRCTL_RXTHRLEN_2               (0x004U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x00080000 */
21668 #define USB_OTG_DTHRCTL_RXTHRLEN_3               (0x008U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x00100000 */
21669 #define USB_OTG_DTHRCTL_RXTHRLEN_4               (0x010U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x00200000 */
21670 #define USB_OTG_DTHRCTL_RXTHRLEN_5               (0x020U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x00400000 */
21671 #define USB_OTG_DTHRCTL_RXTHRLEN_6               (0x040U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x00800000 */
21672 #define USB_OTG_DTHRCTL_RXTHRLEN_7               (0x080U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x01000000 */
21673 #define USB_OTG_DTHRCTL_RXTHRLEN_8               (0x100U << USB_OTG_DTHRCTL_RXTHRLEN_Pos)     /*!< 0x02000000 */
21674 #define USB_OTG_DTHRCTL_ARPEN_Pos                (27U)
21675 #define USB_OTG_DTHRCTL_ARPEN_Msk                (0x1U << USB_OTG_DTHRCTL_ARPEN_Pos)          /*!< 0x08000000 */
21676 #define USB_OTG_DTHRCTL_ARPEN                    USB_OTG_DTHRCTL_ARPEN_Msk                    /*!< Arbiter parking enable */
21677 
21678 /********************  Bit definition for USB_OTG_DIEPEMPMSK register  ***************/
21679 #define USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos         (0U)
21680 #define USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk         (0xFFFFU << USB_OTG_DIEPEMPMSK_INEPTXFEM_Pos) /*!< 0x0000FFFF */
21681 #define USB_OTG_DIEPEMPMSK_INEPTXFEM             USB_OTG_DIEPEMPMSK_INEPTXFEM_Msk              /*!< IN EP Tx FIFO empty interrupt mask bits */
21682 
21683 /********************  Bit definition for USB_OTG_DEACHINT register  ********************/
21684 #define USB_OTG_DEACHINT_IEP1INT_Pos             (1U)
21685 #define USB_OTG_DEACHINT_IEP1INT_Msk             (0x1U << USB_OTG_DEACHINT_IEP1INT_Pos)       /*!< 0x00000002 */
21686 #define USB_OTG_DEACHINT_IEP1INT                 USB_OTG_DEACHINT_IEP1INT_Msk                 /*!< IN endpoint 1interrupt bit */
21687 #define USB_OTG_DEACHINT_OEP1INT_Pos             (17U)
21688 #define USB_OTG_DEACHINT_OEP1INT_Msk             (0x1U << USB_OTG_DEACHINT_OEP1INT_Pos)       /*!< 0x00020000 */
21689 #define USB_OTG_DEACHINT_OEP1INT                 USB_OTG_DEACHINT_OEP1INT_Msk                 /*!< OUT endpoint 1 interrupt bit */
21690 
21691 /********************  Bit definition for USB_OTG_GCCFG register  ********************/
21692 #define USB_OTG_GCCFG_DCDET_Pos                  (0U)
21693 #define USB_OTG_GCCFG_DCDET_Msk                  (0x1U << USB_OTG_GCCFG_DCDET_Pos)            /*!< 0x00000001 */
21694 #define USB_OTG_GCCFG_DCDET                      USB_OTG_GCCFG_DCDET_Msk                      /*!< Data contact detection (DCD) status */
21695 #define USB_OTG_GCCFG_PDET_Pos                   (1U)
21696 #define USB_OTG_GCCFG_PDET_Msk                   (0x1U << USB_OTG_GCCFG_PDET_Pos)             /*!< 0x00000002 */
21697 #define USB_OTG_GCCFG_PDET                       USB_OTG_GCCFG_PDET_Msk                       /*!< Primary detection (PD) status */
21698 #define USB_OTG_GCCFG_SDET_Pos                   (2U)
21699 #define USB_OTG_GCCFG_SDET_Msk                   (0x1U << USB_OTG_GCCFG_SDET_Pos)             /*!< 0x00000004 */
21700 #define USB_OTG_GCCFG_SDET                       USB_OTG_GCCFG_SDET_Msk                       /*!< Secondary detection (SD) status */
21701 #define USB_OTG_GCCFG_PS2DET_Pos                 (3U)
21702 #define USB_OTG_GCCFG_PS2DET_Msk                 (0x1U << USB_OTG_GCCFG_PS2DET_Pos)           /*!< 0x00000008 */
21703 #define USB_OTG_GCCFG_PS2DET                     USB_OTG_GCCFG_PS2DET_Msk                     /*!< DM pull-up detection status */
21704 #define USB_OTG_GCCFG_PWRDWN_Pos                 (16U)
21705 #define USB_OTG_GCCFG_PWRDWN_Msk                 (0x1U << USB_OTG_GCCFG_PWRDWN_Pos)           /*!< 0x00010000 */
21706 #define USB_OTG_GCCFG_PWRDWN                     USB_OTG_GCCFG_PWRDWN_Msk                     /*!< Power down */
21707 #define USB_OTG_GCCFG_BCDEN_Pos                  (17U)
21708 #define USB_OTG_GCCFG_BCDEN_Msk                  (0x1U << USB_OTG_GCCFG_BCDEN_Pos)            /*!< 0x00020000 */
21709 #define USB_OTG_GCCFG_BCDEN                      USB_OTG_GCCFG_BCDEN_Msk                      /*!< Battery charging detector (BCD) enable */
21710 #define USB_OTG_GCCFG_DCDEN_Pos                  (18U)
21711 #define USB_OTG_GCCFG_DCDEN_Msk                  (0x1U << USB_OTG_GCCFG_DCDEN_Pos)            /*!< 0x00040000 */
21712 #define USB_OTG_GCCFG_DCDEN                      USB_OTG_GCCFG_DCDEN_Msk                      /*!< Data contact detection (DCD) mode enable */
21713 #define USB_OTG_GCCFG_PDEN_Pos                   (19U)
21714 #define USB_OTG_GCCFG_PDEN_Msk                   (0x1U << USB_OTG_GCCFG_PDEN_Pos)             /*!< 0x00080000 */
21715 #define USB_OTG_GCCFG_PDEN                       USB_OTG_GCCFG_PDEN_Msk                       /*!< Primary detection (PD) mode enable */
21716 #define USB_OTG_GCCFG_SDEN_Pos                   (20U)
21717 #define USB_OTG_GCCFG_SDEN_Msk                   (0x1U << USB_OTG_GCCFG_SDEN_Pos)             /*!< 0x00100000 */
21718 #define USB_OTG_GCCFG_SDEN                       USB_OTG_GCCFG_SDEN_Msk                       /*!< Secondary detection (SD) mode enable */
21719 #define USB_OTG_GCCFG_VBDEN_Pos                  (21U)
21720 #define USB_OTG_GCCFG_VBDEN_Msk                  (0x1U << USB_OTG_GCCFG_VBDEN_Pos)            /*!< 0x00200000 */
21721 #define USB_OTG_GCCFG_VBDEN                      USB_OTG_GCCFG_VBDEN_Msk                      /*!< Vbus detection enable */
21722 
21723 /********************  Bit definition for USB_OTG_GPWRDN) register  ********************/
21724 #define USB_OTG_GPWRDN_DISABLEVBUS_Pos           (6U)
21725 #define USB_OTG_GPWRDN_DISABLEVBUS_Msk           (0x1U << USB_OTG_GPWRDN_DISABLEVBUS_Pos)     /*!< 0x00000040 */
21726 #define USB_OTG_GPWRDN_DISABLEVBUS               USB_OTG_GPWRDN_DISABLEVBUS_Msk               /*!< Power down */
21727 
21728 /********************  Bit definition for USB_OTG_DEACHINTMSK register  ********************/
21729 #define USB_OTG_DEACHINTMSK_IEP1INTM_Pos         (1U)
21730 #define USB_OTG_DEACHINTMSK_IEP1INTM_Msk         (0x1U << USB_OTG_DEACHINTMSK_IEP1INTM_Pos)   /*!< 0x00000002 */
21731 #define USB_OTG_DEACHINTMSK_IEP1INTM             USB_OTG_DEACHINTMSK_IEP1INTM_Msk             /*!< IN Endpoint 1 interrupt mask bit */
21732 #define USB_OTG_DEACHINTMSK_OEP1INTM_Pos         (17U)
21733 #define USB_OTG_DEACHINTMSK_OEP1INTM_Msk         (0x1U << USB_OTG_DEACHINTMSK_OEP1INTM_Pos)   /*!< 0x00020000 */
21734 #define USB_OTG_DEACHINTMSK_OEP1INTM             USB_OTG_DEACHINTMSK_OEP1INTM_Msk             /*!< OUT Endpoint 1 interrupt mask bit */
21735 
21736 /********************  Bit definition for USB_OTG_CID register  ********************/
21737 #define USB_OTG_CID_PRODUCT_ID_Pos               (0U)
21738 #define USB_OTG_CID_PRODUCT_ID_Msk               (0xFFFFFFFFU << USB_OTG_CID_PRODUCT_ID_Pos)  /*!< 0xFFFFFFFF */
21739 #define USB_OTG_CID_PRODUCT_ID                   USB_OTG_CID_PRODUCT_ID_Msk                   /*!< Product ID field */
21740 
21741 /********************  Bit definition for USB_OTG_GHWCFG3 register  ********************/
21742 #define USB_OTG_GHWCFG3_LPMMode_Pos              (14U)
21743 #define USB_OTG_GHWCFG3_LPMMode_Msk              (0x1U << USB_OTG_GHWCFG3_LPMMode_Pos)        /*!< 0x00004000 */
21744 #define USB_OTG_GHWCFG3_LPMMode                  USB_OTG_GHWCFG3_LPMMode_Msk                  /* LPM mode specified for Mode of Operation */
21745 
21746 /********************  Bit definition for USB_OTG_GLPMCFG register  ********************/
21747 #define USB_OTG_GLPMCFG_ENBESL_Pos               (28U)
21748 #define USB_OTG_GLPMCFG_ENBESL_Msk               (0x1U << USB_OTG_GLPMCFG_ENBESL_Pos)         /*!< 0x10000000 */
21749 #define USB_OTG_GLPMCFG_ENBESL                   USB_OTG_GLPMCFG_ENBESL_Msk                   /* Enable best effort service latency */
21750 #define USB_OTG_GLPMCFG_LPMRCNTSTS_Pos           (25U)
21751 #define USB_OTG_GLPMCFG_LPMRCNTSTS_Msk           (0x7U << USB_OTG_GLPMCFG_LPMRCNTSTS_Pos)     /*!< 0x0E000000 */
21752 #define USB_OTG_GLPMCFG_LPMRCNTSTS               USB_OTG_GLPMCFG_LPMRCNTSTS_Msk               /* LPM retry count status */
21753 #define USB_OTG_GLPMCFG_SNDLPM_Pos               (24U)
21754 #define USB_OTG_GLPMCFG_SNDLPM_Msk               (0x1U << USB_OTG_GLPMCFG_SNDLPM_Pos)         /*!< 0x01000000 */
21755 #define USB_OTG_GLPMCFG_SNDLPM                   USB_OTG_GLPMCFG_SNDLPM_Msk                   /* Send LPM transaction */
21756 #define USB_OTG_GLPMCFG_LPMRCNT_Pos              (21U)
21757 #define USB_OTG_GLPMCFG_LPMRCNT_Msk              (0x7U << USB_OTG_GLPMCFG_LPMRCNT_Pos)        /*!< 0x00E00000 */
21758 #define USB_OTG_GLPMCFG_LPMRCNT                  USB_OTG_GLPMCFG_LPMRCNT_Msk                  /* LPM retry count */
21759 #define USB_OTG_GLPMCFG_LPMCHIDX_Pos             (17U)
21760 #define USB_OTG_GLPMCFG_LPMCHIDX_Msk             (0xFU << USB_OTG_GLPMCFG_LPMCHIDX_Pos)       /*!< 0x001E0000 */
21761 #define USB_OTG_GLPMCFG_LPMCHIDX                 USB_OTG_GLPMCFG_LPMCHIDX_Msk                 /* LPMCHIDX: */
21762 #define USB_OTG_GLPMCFG_L1ResumeOK_Pos           (16U)
21763 #define USB_OTG_GLPMCFG_L1ResumeOK_Msk           (0x1U << USB_OTG_GLPMCFG_L1ResumeOK_Pos)     /*!< 0x00010000 */
21764 #define USB_OTG_GLPMCFG_L1ResumeOK               USB_OTG_GLPMCFG_L1ResumeOK_Msk               /* Sleep State Resume OK */
21765 #define USB_OTG_GLPMCFG_SLPSTS_Pos               (15U)
21766 #define USB_OTG_GLPMCFG_SLPSTS_Msk               (0x1U << USB_OTG_GLPMCFG_SLPSTS_Pos)         /*!< 0x00008000 */
21767 #define USB_OTG_GLPMCFG_SLPSTS                   USB_OTG_GLPMCFG_SLPSTS_Msk                   /* Port sleep status */
21768 #define USB_OTG_GLPMCFG_LPMRSP_Pos               (13U)
21769 #define USB_OTG_GLPMCFG_LPMRSP_Msk               (0x3U << USB_OTG_GLPMCFG_LPMRSP_Pos)         /*!< 0x00006000 */
21770 #define USB_OTG_GLPMCFG_LPMRSP                   USB_OTG_GLPMCFG_LPMRSP_Msk                   /* LPM response */
21771 #define USB_OTG_GLPMCFG_L1DSEN_Pos               (12U)
21772 #define USB_OTG_GLPMCFG_L1DSEN_Msk               (0x1U << USB_OTG_GLPMCFG_L1DSEN_Pos)         /*!< 0x00001000 */
21773 #define USB_OTG_GLPMCFG_L1DSEN                   USB_OTG_GLPMCFG_L1DSEN_Msk                   /* L1 deep sleep enable */
21774 #define USB_OTG_GLPMCFG_BESLTHRS_Pos             (8U)
21775 #define USB_OTG_GLPMCFG_BESLTHRS_Msk             (0xFU << USB_OTG_GLPMCFG_BESLTHRS_Pos)       /*!< 0x00000F00 */
21776 #define USB_OTG_GLPMCFG_BESLTHRS                 USB_OTG_GLPMCFG_BESLTHRS_Msk                 /* BESL threshold */
21777 #define USB_OTG_GLPMCFG_L1SSEN_Pos               (7U)
21778 #define USB_OTG_GLPMCFG_L1SSEN_Msk               (0x1U << USB_OTG_GLPMCFG_L1SSEN_Pos)         /*!< 0x00000080 */
21779 #define USB_OTG_GLPMCFG_L1SSEN                   USB_OTG_GLPMCFG_L1SSEN_Msk                   /* L1 shallow sleep enable */
21780 #define USB_OTG_GLPMCFG_REMWAKE_Pos              (6U)
21781 #define USB_OTG_GLPMCFG_REMWAKE_Msk              (0x1U << USB_OTG_GLPMCFG_REMWAKE_Pos)        /*!< 0x00000040 */
21782 #define USB_OTG_GLPMCFG_REMWAKE                  USB_OTG_GLPMCFG_REMWAKE_Msk                  /* bRemoteWake value received with last ACKed LPM Token */
21783 #define USB_OTG_GLPMCFG_BESL_Pos                 (2U)
21784 #define USB_OTG_GLPMCFG_BESL_Msk                 (0xFU << USB_OTG_GLPMCFG_BESL_Pos)           /*!< 0x0000003C */
21785 #define USB_OTG_GLPMCFG_BESL                     USB_OTG_GLPMCFG_BESL_Msk                     /* BESL value received with last ACKed LPM Token  */
21786 #define USB_OTG_GLPMCFG_LPMACK_Pos               (1U)
21787 #define USB_OTG_GLPMCFG_LPMACK_Msk               (0x1U << USB_OTG_GLPMCFG_LPMACK_Pos)         /*!< 0x00000002 */
21788 #define USB_OTG_GLPMCFG_LPMACK                   USB_OTG_GLPMCFG_LPMACK_Msk                   /* LPM Token acknowledge enable*/
21789 #define USB_OTG_GLPMCFG_LPMEN_Pos                (0U)
21790 #define USB_OTG_GLPMCFG_LPMEN_Msk                (0x1U << USB_OTG_GLPMCFG_LPMEN_Pos)          /*!< 0x00000001 */
21791 #define USB_OTG_GLPMCFG_LPMEN                    USB_OTG_GLPMCFG_LPMEN_Msk                    /* LPM support enable  */
21792 
21793 /********************  Bit definition for USB_OTG_DIEPEACHMSK1 register  ********************/
21794 #define USB_OTG_DIEPEACHMSK1_XFRCM_Pos           (0U)
21795 #define USB_OTG_DIEPEACHMSK1_XFRCM_Msk           (0x1U << USB_OTG_DIEPEACHMSK1_XFRCM_Pos)     /*!< 0x00000001 */
21796 #define USB_OTG_DIEPEACHMSK1_XFRCM               USB_OTG_DIEPEACHMSK1_XFRCM_Msk               /*!< Transfer completed interrupt mask */
21797 #define USB_OTG_DIEPEACHMSK1_EPDM_Pos            (1U)
21798 #define USB_OTG_DIEPEACHMSK1_EPDM_Msk            (0x1U << USB_OTG_DIEPEACHMSK1_EPDM_Pos)      /*!< 0x00000002 */
21799 #define USB_OTG_DIEPEACHMSK1_EPDM                USB_OTG_DIEPEACHMSK1_EPDM_Msk                /*!< Endpoint disabled interrupt mask */
21800 #define USB_OTG_DIEPEACHMSK1_TOM_Pos             (3U)
21801 #define USB_OTG_DIEPEACHMSK1_TOM_Msk             (0x1U << USB_OTG_DIEPEACHMSK1_TOM_Pos)       /*!< 0x00000008 */
21802 #define USB_OTG_DIEPEACHMSK1_TOM                 USB_OTG_DIEPEACHMSK1_TOM_Msk                 /*!< Timeout condition mask (nonisochronous endpoints) */
21803 #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos       (4U)
21804 #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk       (0x1U << USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Pos) /*!< 0x00000010 */
21805 #define USB_OTG_DIEPEACHMSK1_ITTXFEMSK           USB_OTG_DIEPEACHMSK1_ITTXFEMSK_Msk           /*!< IN token received when TxFIFO empty mask */
21806 #define USB_OTG_DIEPEACHMSK1_INEPNMM_Pos         (5U)
21807 #define USB_OTG_DIEPEACHMSK1_INEPNMM_Msk         (0x1U << USB_OTG_DIEPEACHMSK1_INEPNMM_Pos)   /*!< 0x00000020 */
21808 #define USB_OTG_DIEPEACHMSK1_INEPNMM             USB_OTG_DIEPEACHMSK1_INEPNMM_Msk             /*!< IN token received with EP mismatch mask */
21809 #define USB_OTG_DIEPEACHMSK1_INEPNEM_Pos         (6U)
21810 #define USB_OTG_DIEPEACHMSK1_INEPNEM_Msk         (0x1U << USB_OTG_DIEPEACHMSK1_INEPNEM_Pos)   /*!< 0x00000040 */
21811 #define USB_OTG_DIEPEACHMSK1_INEPNEM             USB_OTG_DIEPEACHMSK1_INEPNEM_Msk             /*!< IN endpoint NAK effective mask */
21812 #define USB_OTG_DIEPEACHMSK1_TXFURM_Pos          (8U)
21813 #define USB_OTG_DIEPEACHMSK1_TXFURM_Msk          (0x1U << USB_OTG_DIEPEACHMSK1_TXFURM_Pos)    /*!< 0x00000100 */
21814 #define USB_OTG_DIEPEACHMSK1_TXFURM              USB_OTG_DIEPEACHMSK1_TXFURM_Msk              /*!< FIFO underrun mask */
21815 #define USB_OTG_DIEPEACHMSK1_BIM_Pos             (9U)
21816 #define USB_OTG_DIEPEACHMSK1_BIM_Msk             (0x1U << USB_OTG_DIEPEACHMSK1_BIM_Pos)       /*!< 0x00000200 */
21817 #define USB_OTG_DIEPEACHMSK1_BIM                 USB_OTG_DIEPEACHMSK1_BIM_Msk                 /*!< BNA interrupt mask */
21818 #define USB_OTG_DIEPEACHMSK1_NAKM_Pos            (13U)
21819 #define USB_OTG_DIEPEACHMSK1_NAKM_Msk            (0x1U << USB_OTG_DIEPEACHMSK1_NAKM_Pos)      /*!< 0x00002000 */
21820 #define USB_OTG_DIEPEACHMSK1_NAKM                USB_OTG_DIEPEACHMSK1_NAKM_Msk                /*!< NAK interrupt mask */
21821 
21822 /********************  Bit definition for USB_OTG_HPRT register  ********************/
21823 #define USB_OTG_HPRT_PCSTS_Pos                   (0U)
21824 #define USB_OTG_HPRT_PCSTS_Msk                   (0x1U << USB_OTG_HPRT_PCSTS_Pos)             /*!< 0x00000001 */
21825 #define USB_OTG_HPRT_PCSTS                       USB_OTG_HPRT_PCSTS_Msk                       /*!< Port connect status */
21826 #define USB_OTG_HPRT_PCDET_Pos                   (1U)
21827 #define USB_OTG_HPRT_PCDET_Msk                   (0x1U << USB_OTG_HPRT_PCDET_Pos)             /*!< 0x00000002 */
21828 #define USB_OTG_HPRT_PCDET                       USB_OTG_HPRT_PCDET_Msk                       /*!< Port connect detected */
21829 #define USB_OTG_HPRT_PENA_Pos                    (2U)
21830 #define USB_OTG_HPRT_PENA_Msk                    (0x1U << USB_OTG_HPRT_PENA_Pos)              /*!< 0x00000004 */
21831 #define USB_OTG_HPRT_PENA                        USB_OTG_HPRT_PENA_Msk                        /*!< Port enable */
21832 #define USB_OTG_HPRT_PENCHNG_Pos                 (3U)
21833 #define USB_OTG_HPRT_PENCHNG_Msk                 (0x1U << USB_OTG_HPRT_PENCHNG_Pos)           /*!< 0x00000008 */
21834 #define USB_OTG_HPRT_PENCHNG                     USB_OTG_HPRT_PENCHNG_Msk                     /*!< Port enable/disable change */
21835 #define USB_OTG_HPRT_POCA_Pos                    (4U)
21836 #define USB_OTG_HPRT_POCA_Msk                    (0x1U << USB_OTG_HPRT_POCA_Pos)              /*!< 0x00000010 */
21837 #define USB_OTG_HPRT_POCA                        USB_OTG_HPRT_POCA_Msk                        /*!< Port overcurrent active */
21838 #define USB_OTG_HPRT_POCCHNG_Pos                 (5U)
21839 #define USB_OTG_HPRT_POCCHNG_Msk                 (0x1U << USB_OTG_HPRT_POCCHNG_Pos)           /*!< 0x00000020 */
21840 #define USB_OTG_HPRT_POCCHNG                     USB_OTG_HPRT_POCCHNG_Msk                     /*!< Port overcurrent change */
21841 #define USB_OTG_HPRT_PRES_Pos                    (6U)
21842 #define USB_OTG_HPRT_PRES_Msk                    (0x1U << USB_OTG_HPRT_PRES_Pos)              /*!< 0x00000040 */
21843 #define USB_OTG_HPRT_PRES                        USB_OTG_HPRT_PRES_Msk                        /*!< Port resume */
21844 #define USB_OTG_HPRT_PSUSP_Pos                   (7U)
21845 #define USB_OTG_HPRT_PSUSP_Msk                   (0x1U << USB_OTG_HPRT_PSUSP_Pos)             /*!< 0x00000080 */
21846 #define USB_OTG_HPRT_PSUSP                       USB_OTG_HPRT_PSUSP_Msk                       /*!< Port suspend */
21847 #define USB_OTG_HPRT_PRST_Pos                    (8U)
21848 #define USB_OTG_HPRT_PRST_Msk                    (0x1U << USB_OTG_HPRT_PRST_Pos)              /*!< 0x00000100 */
21849 #define USB_OTG_HPRT_PRST                        USB_OTG_HPRT_PRST_Msk                        /*!< Port reset */
21850 
21851 #define USB_OTG_HPRT_PLSTS_Pos                   (10U)
21852 #define USB_OTG_HPRT_PLSTS_Msk                   (0x3U << USB_OTG_HPRT_PLSTS_Pos)             /*!< 0x00000C00 */
21853 #define USB_OTG_HPRT_PLSTS                       USB_OTG_HPRT_PLSTS_Msk                       /*!< Port line status */
21854 #define USB_OTG_HPRT_PLSTS_0                     (0x1U << USB_OTG_HPRT_PLSTS_Pos)             /*!< 0x00000400 */
21855 #define USB_OTG_HPRT_PLSTS_1                     (0x2U << USB_OTG_HPRT_PLSTS_Pos)             /*!< 0x00000800 */
21856 #define USB_OTG_HPRT_PPWR_Pos                    (12U)
21857 #define USB_OTG_HPRT_PPWR_Msk                    (0x1U << USB_OTG_HPRT_PPWR_Pos)              /*!< 0x00001000 */
21858 #define USB_OTG_HPRT_PPWR                        USB_OTG_HPRT_PPWR_Msk                        /*!< Port power */
21859 
21860 #define USB_OTG_HPRT_PTCTL_Pos                   (13U)
21861 #define USB_OTG_HPRT_PTCTL_Msk                   (0xFU << USB_OTG_HPRT_PTCTL_Pos)             /*!< 0x0001E000 */
21862 #define USB_OTG_HPRT_PTCTL                       USB_OTG_HPRT_PTCTL_Msk                       /*!< Port test control */
21863 #define USB_OTG_HPRT_PTCTL_0                     (0x1U << USB_OTG_HPRT_PTCTL_Pos)             /*!< 0x00002000 */
21864 #define USB_OTG_HPRT_PTCTL_1                     (0x2U << USB_OTG_HPRT_PTCTL_Pos)             /*!< 0x00004000 */
21865 #define USB_OTG_HPRT_PTCTL_2                     (0x4U << USB_OTG_HPRT_PTCTL_Pos)             /*!< 0x00008000 */
21866 #define USB_OTG_HPRT_PTCTL_3                     (0x8U << USB_OTG_HPRT_PTCTL_Pos)             /*!< 0x00010000 */
21867 
21868 #define USB_OTG_HPRT_PSPD_Pos                    (17U)
21869 #define USB_OTG_HPRT_PSPD_Msk                    (0x3U << USB_OTG_HPRT_PSPD_Pos)              /*!< 0x00060000 */
21870 #define USB_OTG_HPRT_PSPD                        USB_OTG_HPRT_PSPD_Msk                        /*!< Port speed */
21871 #define USB_OTG_HPRT_PSPD_0                      (0x1U << USB_OTG_HPRT_PSPD_Pos)              /*!< 0x00020000 */
21872 #define USB_OTG_HPRT_PSPD_1                      (0x2U << USB_OTG_HPRT_PSPD_Pos)              /*!< 0x00040000 */
21873 
21874 /********************  Bit definition for USB_OTG_DOEPEACHMSK1 register  ********************/
21875 #define USB_OTG_DOEPEACHMSK1_XFRCM_Pos           (0U)
21876 #define USB_OTG_DOEPEACHMSK1_XFRCM_Msk           (0x1U << USB_OTG_DOEPEACHMSK1_XFRCM_Pos)     /*!< 0x00000001 */
21877 #define USB_OTG_DOEPEACHMSK1_XFRCM               USB_OTG_DOEPEACHMSK1_XFRCM_Msk               /*!< Transfer completed interrupt mask */
21878 #define USB_OTG_DOEPEACHMSK1_EPDM_Pos            (1U)
21879 #define USB_OTG_DOEPEACHMSK1_EPDM_Msk            (0x1U << USB_OTG_DOEPEACHMSK1_EPDM_Pos)      /*!< 0x00000002 */
21880 #define USB_OTG_DOEPEACHMSK1_EPDM                USB_OTG_DOEPEACHMSK1_EPDM_Msk                /*!< Endpoint disabled interrupt mask */
21881 #define USB_OTG_DOEPEACHMSK1_TOM_Pos             (3U)
21882 #define USB_OTG_DOEPEACHMSK1_TOM_Msk             (0x1U << USB_OTG_DOEPEACHMSK1_TOM_Pos)       /*!< 0x00000008 */
21883 #define USB_OTG_DOEPEACHMSK1_TOM                 USB_OTG_DOEPEACHMSK1_TOM_Msk                 /*!< Timeout condition mask */
21884 #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos       (4U)
21885 #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk       (0x1U << USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Pos) /*!< 0x00000010 */
21886 #define USB_OTG_DOEPEACHMSK1_ITTXFEMSK           USB_OTG_DOEPEACHMSK1_ITTXFEMSK_Msk           /*!< IN token received when TxFIFO empty mask */
21887 #define USB_OTG_DOEPEACHMSK1_INEPNMM_Pos         (5U)
21888 #define USB_OTG_DOEPEACHMSK1_INEPNMM_Msk         (0x1U << USB_OTG_DOEPEACHMSK1_INEPNMM_Pos)   /*!< 0x00000020 */
21889 #define USB_OTG_DOEPEACHMSK1_INEPNMM             USB_OTG_DOEPEACHMSK1_INEPNMM_Msk             /*!< IN token received with EP mismatch mask */
21890 #define USB_OTG_DOEPEACHMSK1_INEPNEM_Pos         (6U)
21891 #define USB_OTG_DOEPEACHMSK1_INEPNEM_Msk         (0x1U << USB_OTG_DOEPEACHMSK1_INEPNEM_Pos)   /*!< 0x00000040 */
21892 #define USB_OTG_DOEPEACHMSK1_INEPNEM             USB_OTG_DOEPEACHMSK1_INEPNEM_Msk             /*!< IN endpoint NAK effective mask */
21893 #define USB_OTG_DOEPEACHMSK1_TXFURM_Pos          (8U)
21894 #define USB_OTG_DOEPEACHMSK1_TXFURM_Msk          (0x1U << USB_OTG_DOEPEACHMSK1_TXFURM_Pos)    /*!< 0x00000100 */
21895 #define USB_OTG_DOEPEACHMSK1_TXFURM              USB_OTG_DOEPEACHMSK1_TXFURM_Msk              /*!< OUT packet error mask */
21896 #define USB_OTG_DOEPEACHMSK1_BIM_Pos             (9U)
21897 #define USB_OTG_DOEPEACHMSK1_BIM_Msk             (0x1U << USB_OTG_DOEPEACHMSK1_BIM_Pos)       /*!< 0x00000200 */
21898 #define USB_OTG_DOEPEACHMSK1_BIM                 USB_OTG_DOEPEACHMSK1_BIM_Msk                 /*!< BNA interrupt mask */
21899 #define USB_OTG_DOEPEACHMSK1_BERRM_Pos           (12U)
21900 #define USB_OTG_DOEPEACHMSK1_BERRM_Msk           (0x1U << USB_OTG_DOEPEACHMSK1_BERRM_Pos)     /*!< 0x00001000 */
21901 #define USB_OTG_DOEPEACHMSK1_BERRM               USB_OTG_DOEPEACHMSK1_BERRM_Msk               /*!< Bubble error interrupt mask */
21902 #define USB_OTG_DOEPEACHMSK1_NAKM_Pos            (13U)
21903 #define USB_OTG_DOEPEACHMSK1_NAKM_Msk            (0x1U << USB_OTG_DOEPEACHMSK1_NAKM_Pos)      /*!< 0x00002000 */
21904 #define USB_OTG_DOEPEACHMSK1_NAKM                USB_OTG_DOEPEACHMSK1_NAKM_Msk                /*!< NAK interrupt mask */
21905 #define USB_OTG_DOEPEACHMSK1_NYETM_Pos           (14U)
21906 #define USB_OTG_DOEPEACHMSK1_NYETM_Msk           (0x1U << USB_OTG_DOEPEACHMSK1_NYETM_Pos)     /*!< 0x00004000 */
21907 #define USB_OTG_DOEPEACHMSK1_NYETM               USB_OTG_DOEPEACHMSK1_NYETM_Msk               /*!< NYET interrupt mask */
21908 
21909 /********************  Bit definition for USB_OTG_HPTXFSIZ register  ********************/
21910 #define USB_OTG_HPTXFSIZ_PTXSA_Pos               (0U)
21911 #define USB_OTG_HPTXFSIZ_PTXSA_Msk               (0xFFFFU << USB_OTG_HPTXFSIZ_PTXSA_Pos)      /*!< 0x0000FFFF */
21912 #define USB_OTG_HPTXFSIZ_PTXSA                   USB_OTG_HPTXFSIZ_PTXSA_Msk                   /*!< Host periodic TxFIFO start address */
21913 #define USB_OTG_HPTXFSIZ_PTXFD_Pos               (16U)
21914 #define USB_OTG_HPTXFSIZ_PTXFD_Msk               (0xFFFFU << USB_OTG_HPTXFSIZ_PTXFD_Pos)      /*!< 0xFFFF0000 */
21915 #define USB_OTG_HPTXFSIZ_PTXFD                   USB_OTG_HPTXFSIZ_PTXFD_Msk                   /*!< Host periodic TxFIFO depth */
21916 
21917 /********************  Bit definition for USB_OTG_DIEPCTL register  ********************/
21918 #define USB_OTG_DIEPCTL_MPSIZ_Pos                (0U)
21919 #define USB_OTG_DIEPCTL_MPSIZ_Msk                (0x7FFU << USB_OTG_DIEPCTL_MPSIZ_Pos)        /*!< 0x000007FF */
21920 #define USB_OTG_DIEPCTL_MPSIZ                    USB_OTG_DIEPCTL_MPSIZ_Msk                    /*!< Maximum packet size */
21921 #define USB_OTG_DIEPCTL_USBAEP_Pos               (15U)
21922 #define USB_OTG_DIEPCTL_USBAEP_Msk               (0x1U << USB_OTG_DIEPCTL_USBAEP_Pos)         /*!< 0x00008000 */
21923 #define USB_OTG_DIEPCTL_USBAEP                   USB_OTG_DIEPCTL_USBAEP_Msk                   /*!< USB active endpoint */
21924 #define USB_OTG_DIEPCTL_EONUM_DPID_Pos           (16U)
21925 #define USB_OTG_DIEPCTL_EONUM_DPID_Msk           (0x1U << USB_OTG_DIEPCTL_EONUM_DPID_Pos)     /*!< 0x00010000 */
21926 #define USB_OTG_DIEPCTL_EONUM_DPID               USB_OTG_DIEPCTL_EONUM_DPID_Msk               /*!< Even/odd frame */
21927 #define USB_OTG_DIEPCTL_NAKSTS_Pos               (17U)
21928 #define USB_OTG_DIEPCTL_NAKSTS_Msk               (0x1U << USB_OTG_DIEPCTL_NAKSTS_Pos)         /*!< 0x00020000 */
21929 #define USB_OTG_DIEPCTL_NAKSTS                   USB_OTG_DIEPCTL_NAKSTS_Msk                   /*!< NAK status */
21930 
21931 #define USB_OTG_DIEPCTL_EPTYP_Pos                (18U)
21932 #define USB_OTG_DIEPCTL_EPTYP_Msk                (0x3U << USB_OTG_DIEPCTL_EPTYP_Pos)          /*!< 0x000C0000 */
21933 #define USB_OTG_DIEPCTL_EPTYP                    USB_OTG_DIEPCTL_EPTYP_Msk                    /*!< Endpoint type */
21934 #define USB_OTG_DIEPCTL_EPTYP_0                  (0x1U << USB_OTG_DIEPCTL_EPTYP_Pos)          /*!< 0x00040000 */
21935 #define USB_OTG_DIEPCTL_EPTYP_1                  (0x2U << USB_OTG_DIEPCTL_EPTYP_Pos)          /*!< 0x00080000 */
21936 #define USB_OTG_DIEPCTL_STALL_Pos                (21U)
21937 #define USB_OTG_DIEPCTL_STALL_Msk                (0x1U << USB_OTG_DIEPCTL_STALL_Pos)          /*!< 0x00200000 */
21938 #define USB_OTG_DIEPCTL_STALL                    USB_OTG_DIEPCTL_STALL_Msk                    /*!< STALL handshake */
21939 
21940 #define USB_OTG_DIEPCTL_TXFNUM_Pos               (22U)
21941 #define USB_OTG_DIEPCTL_TXFNUM_Msk               (0xFU << USB_OTG_DIEPCTL_TXFNUM_Pos)         /*!< 0x03C00000 */
21942 #define USB_OTG_DIEPCTL_TXFNUM                   USB_OTG_DIEPCTL_TXFNUM_Msk                   /*!< TxFIFO number */
21943 #define USB_OTG_DIEPCTL_TXFNUM_0                 (0x1U << USB_OTG_DIEPCTL_TXFNUM_Pos)         /*!< 0x00400000 */
21944 #define USB_OTG_DIEPCTL_TXFNUM_1                 (0x2U << USB_OTG_DIEPCTL_TXFNUM_Pos)         /*!< 0x00800000 */
21945 #define USB_OTG_DIEPCTL_TXFNUM_2                 (0x4U << USB_OTG_DIEPCTL_TXFNUM_Pos)         /*!< 0x01000000 */
21946 #define USB_OTG_DIEPCTL_TXFNUM_3                 (0x8U << USB_OTG_DIEPCTL_TXFNUM_Pos)         /*!< 0x02000000 */
21947 #define USB_OTG_DIEPCTL_CNAK_Pos                 (26U)
21948 #define USB_OTG_DIEPCTL_CNAK_Msk                 (0x1U << USB_OTG_DIEPCTL_CNAK_Pos)           /*!< 0x04000000 */
21949 #define USB_OTG_DIEPCTL_CNAK                     USB_OTG_DIEPCTL_CNAK_Msk                     /*!< Clear NAK */
21950 #define USB_OTG_DIEPCTL_SNAK_Pos                 (27U)
21951 #define USB_OTG_DIEPCTL_SNAK_Msk                 (0x1U << USB_OTG_DIEPCTL_SNAK_Pos)           /*!< 0x08000000 */
21952 #define USB_OTG_DIEPCTL_SNAK                     USB_OTG_DIEPCTL_SNAK_Msk                     /*!< Set NAK */
21953 #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos       (28U)
21954 #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk       (0x1U << USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Pos) /*!< 0x10000000 */
21955 #define USB_OTG_DIEPCTL_SD0PID_SEVNFRM           USB_OTG_DIEPCTL_SD0PID_SEVNFRM_Msk           /*!< Set DATA0 PID */
21956 #define USB_OTG_DIEPCTL_SODDFRM_Pos              (29U)
21957 #define USB_OTG_DIEPCTL_SODDFRM_Msk              (0x1U << USB_OTG_DIEPCTL_SODDFRM_Pos)        /*!< 0x20000000 */
21958 #define USB_OTG_DIEPCTL_SODDFRM                  USB_OTG_DIEPCTL_SODDFRM_Msk                  /*!< Set odd frame */
21959 #define USB_OTG_DIEPCTL_EPDIS_Pos                (30U)
21960 #define USB_OTG_DIEPCTL_EPDIS_Msk                (0x1U << USB_OTG_DIEPCTL_EPDIS_Pos)          /*!< 0x40000000 */
21961 #define USB_OTG_DIEPCTL_EPDIS                    USB_OTG_DIEPCTL_EPDIS_Msk                    /*!< Endpoint disable */
21962 #define USB_OTG_DIEPCTL_EPENA_Pos                (31U)
21963 #define USB_OTG_DIEPCTL_EPENA_Msk                (0x1U << USB_OTG_DIEPCTL_EPENA_Pos)          /*!< 0x80000000 */
21964 #define USB_OTG_DIEPCTL_EPENA                    USB_OTG_DIEPCTL_EPENA_Msk                    /*!< Endpoint enable */
21965 
21966 /********************  Bit definition for USB_OTG_HCCHAR register  ********************/
21967 #define USB_OTG_HCCHAR_MPSIZ_Pos                 (0U)
21968 #define USB_OTG_HCCHAR_MPSIZ_Msk                 (0x7FFU << USB_OTG_HCCHAR_MPSIZ_Pos)         /*!< 0x000007FF */
21969 #define USB_OTG_HCCHAR_MPSIZ                     USB_OTG_HCCHAR_MPSIZ_Msk                     /*!< Maximum packet size */
21970 
21971 #define USB_OTG_HCCHAR_EPNUM_Pos                 (11U)
21972 #define USB_OTG_HCCHAR_EPNUM_Msk                 (0xFU << USB_OTG_HCCHAR_EPNUM_Pos)           /*!< 0x00007800 */
21973 #define USB_OTG_HCCHAR_EPNUM                     USB_OTG_HCCHAR_EPNUM_Msk                     /*!< Endpoint number */
21974 #define USB_OTG_HCCHAR_EPNUM_0                   (0x1U << USB_OTG_HCCHAR_EPNUM_Pos)           /*!< 0x00000800 */
21975 #define USB_OTG_HCCHAR_EPNUM_1                   (0x2U << USB_OTG_HCCHAR_EPNUM_Pos)           /*!< 0x00001000 */
21976 #define USB_OTG_HCCHAR_EPNUM_2                   (0x4U << USB_OTG_HCCHAR_EPNUM_Pos)           /*!< 0x00002000 */
21977 #define USB_OTG_HCCHAR_EPNUM_3                   (0x8U << USB_OTG_HCCHAR_EPNUM_Pos)           /*!< 0x00004000 */
21978 #define USB_OTG_HCCHAR_EPDIR_Pos                 (15U)
21979 #define USB_OTG_HCCHAR_EPDIR_Msk                 (0x1U << USB_OTG_HCCHAR_EPDIR_Pos)           /*!< 0x00008000 */
21980 #define USB_OTG_HCCHAR_EPDIR                     USB_OTG_HCCHAR_EPDIR_Msk                     /*!< Endpoint direction */
21981 #define USB_OTG_HCCHAR_LSDEV_Pos                 (17U)
21982 #define USB_OTG_HCCHAR_LSDEV_Msk                 (0x1U << USB_OTG_HCCHAR_LSDEV_Pos)           /*!< 0x00020000 */
21983 #define USB_OTG_HCCHAR_LSDEV                     USB_OTG_HCCHAR_LSDEV_Msk                     /*!< Low-speed device */
21984 
21985 #define USB_OTG_HCCHAR_EPTYP_Pos                 (18U)
21986 #define USB_OTG_HCCHAR_EPTYP_Msk                 (0x3U << USB_OTG_HCCHAR_EPTYP_Pos)           /*!< 0x000C0000 */
21987 #define USB_OTG_HCCHAR_EPTYP                     USB_OTG_HCCHAR_EPTYP_Msk                     /*!< Endpoint type */
21988 #define USB_OTG_HCCHAR_EPTYP_0                   (0x1U << USB_OTG_HCCHAR_EPTYP_Pos)           /*!< 0x00040000 */
21989 #define USB_OTG_HCCHAR_EPTYP_1                   (0x2U << USB_OTG_HCCHAR_EPTYP_Pos)           /*!< 0x00080000 */
21990 
21991 #define USB_OTG_HCCHAR_MC_Pos                    (20U)
21992 #define USB_OTG_HCCHAR_MC_Msk                    (0x3U << USB_OTG_HCCHAR_MC_Pos)              /*!< 0x00300000 */
21993 #define USB_OTG_HCCHAR_MC                        USB_OTG_HCCHAR_MC_Msk                        /*!< Multi Count (MC) / Error Count (EC) */
21994 #define USB_OTG_HCCHAR_MC_0                      (0x1U << USB_OTG_HCCHAR_MC_Pos)              /*!< 0x00100000 */
21995 #define USB_OTG_HCCHAR_MC_1                      (0x2U << USB_OTG_HCCHAR_MC_Pos)              /*!< 0x00200000 */
21996 
21997 #define USB_OTG_HCCHAR_DAD_Pos                   (22U)
21998 #define USB_OTG_HCCHAR_DAD_Msk                   (0x7FU << USB_OTG_HCCHAR_DAD_Pos)            /*!< 0x1FC00000 */
21999 #define USB_OTG_HCCHAR_DAD                       USB_OTG_HCCHAR_DAD_Msk                       /*!< Device address */
22000 #define USB_OTG_HCCHAR_DAD_0                     (0x01U << USB_OTG_HCCHAR_DAD_Pos)            /*!< 0x00400000 */
22001 #define USB_OTG_HCCHAR_DAD_1                     (0x02U << USB_OTG_HCCHAR_DAD_Pos)            /*!< 0x00800000 */
22002 #define USB_OTG_HCCHAR_DAD_2                     (0x04U << USB_OTG_HCCHAR_DAD_Pos)            /*!< 0x01000000 */
22003 #define USB_OTG_HCCHAR_DAD_3                     (0x08U << USB_OTG_HCCHAR_DAD_Pos)            /*!< 0x02000000 */
22004 #define USB_OTG_HCCHAR_DAD_4                     (0x10U << USB_OTG_HCCHAR_DAD_Pos)            /*!< 0x04000000 */
22005 #define USB_OTG_HCCHAR_DAD_5                     (0x20U << USB_OTG_HCCHAR_DAD_Pos)            /*!< 0x08000000 */
22006 #define USB_OTG_HCCHAR_DAD_6                     (0x40U << USB_OTG_HCCHAR_DAD_Pos)            /*!< 0x10000000 */
22007 #define USB_OTG_HCCHAR_ODDFRM_Pos                (29U)
22008 #define USB_OTG_HCCHAR_ODDFRM_Msk                (0x1U << USB_OTG_HCCHAR_ODDFRM_Pos)          /*!< 0x20000000 */
22009 #define USB_OTG_HCCHAR_ODDFRM                    USB_OTG_HCCHAR_ODDFRM_Msk                    /*!< Odd frame */
22010 #define USB_OTG_HCCHAR_CHDIS_Pos                 (30U)
22011 #define USB_OTG_HCCHAR_CHDIS_Msk                 (0x1U << USB_OTG_HCCHAR_CHDIS_Pos)           /*!< 0x40000000 */
22012 #define USB_OTG_HCCHAR_CHDIS                     USB_OTG_HCCHAR_CHDIS_Msk                     /*!< Channel disable */
22013 #define USB_OTG_HCCHAR_CHENA_Pos                 (31U)
22014 #define USB_OTG_HCCHAR_CHENA_Msk                 (0x1U << USB_OTG_HCCHAR_CHENA_Pos)           /*!< 0x80000000 */
22015 #define USB_OTG_HCCHAR_CHENA                     USB_OTG_HCCHAR_CHENA_Msk                     /*!< Channel enable */
22016 
22017 /********************  Bit definition for USB_OTG_HCSPLT register  ********************/
22018 #define USB_OTG_HCSPLT_PRTADDR_Pos               (0U)
22019 #define USB_OTG_HCSPLT_PRTADDR_Msk               (0x7FU << USB_OTG_HCSPLT_PRTADDR_Pos)        /*!< 0x0000007F */
22020 #define USB_OTG_HCSPLT_PRTADDR                   USB_OTG_HCSPLT_PRTADDR_Msk                   /*!< Port address */
22021 #define USB_OTG_HCSPLT_PRTADDR_0                 (0x01U << USB_OTG_HCSPLT_PRTADDR_Pos)        /*!< 0x00000001 */
22022 #define USB_OTG_HCSPLT_PRTADDR_1                 (0x02U << USB_OTG_HCSPLT_PRTADDR_Pos)        /*!< 0x00000002 */
22023 #define USB_OTG_HCSPLT_PRTADDR_2                 (0x04U << USB_OTG_HCSPLT_PRTADDR_Pos)        /*!< 0x00000004 */
22024 #define USB_OTG_HCSPLT_PRTADDR_3                 (0x08U << USB_OTG_HCSPLT_PRTADDR_Pos)        /*!< 0x00000008 */
22025 #define USB_OTG_HCSPLT_PRTADDR_4                 (0x10U << USB_OTG_HCSPLT_PRTADDR_Pos)        /*!< 0x00000010 */
22026 #define USB_OTG_HCSPLT_PRTADDR_5                 (0x20U << USB_OTG_HCSPLT_PRTADDR_Pos)        /*!< 0x00000020 */
22027 #define USB_OTG_HCSPLT_PRTADDR_6                 (0x40U << USB_OTG_HCSPLT_PRTADDR_Pos)        /*!< 0x00000040 */
22028 
22029 #define USB_OTG_HCSPLT_HUBADDR_Pos               (7U)
22030 #define USB_OTG_HCSPLT_HUBADDR_Msk               (0x7FU << USB_OTG_HCSPLT_HUBADDR_Pos)        /*!< 0x00003F80 */
22031 #define USB_OTG_HCSPLT_HUBADDR                   USB_OTG_HCSPLT_HUBADDR_Msk                   /*!< Hub address */
22032 #define USB_OTG_HCSPLT_HUBADDR_0                 (0x01U << USB_OTG_HCSPLT_HUBADDR_Pos)        /*!< 0x00000080 */
22033 #define USB_OTG_HCSPLT_HUBADDR_1                 (0x02U << USB_OTG_HCSPLT_HUBADDR_Pos)        /*!< 0x00000100 */
22034 #define USB_OTG_HCSPLT_HUBADDR_2                 (0x04U << USB_OTG_HCSPLT_HUBADDR_Pos)        /*!< 0x00000200 */
22035 #define USB_OTG_HCSPLT_HUBADDR_3                 (0x08U << USB_OTG_HCSPLT_HUBADDR_Pos)        /*!< 0x00000400 */
22036 #define USB_OTG_HCSPLT_HUBADDR_4                 (0x10U << USB_OTG_HCSPLT_HUBADDR_Pos)        /*!< 0x00000800 */
22037 #define USB_OTG_HCSPLT_HUBADDR_5                 (0x20U << USB_OTG_HCSPLT_HUBADDR_Pos)        /*!< 0x00001000 */
22038 #define USB_OTG_HCSPLT_HUBADDR_6                 (0x40U << USB_OTG_HCSPLT_HUBADDR_Pos)        /*!< 0x00002000 */
22039 
22040 #define USB_OTG_HCSPLT_XACTPOS_Pos               (14U)
22041 #define USB_OTG_HCSPLT_XACTPOS_Msk               (0x3U << USB_OTG_HCSPLT_XACTPOS_Pos)         /*!< 0x0000C000 */
22042 #define USB_OTG_HCSPLT_XACTPOS                   USB_OTG_HCSPLT_XACTPOS_Msk                   /*!< XACTPOS */
22043 #define USB_OTG_HCSPLT_XACTPOS_0                 (0x1U << USB_OTG_HCSPLT_XACTPOS_Pos)         /*!< 0x00004000 */
22044 #define USB_OTG_HCSPLT_XACTPOS_1                 (0x2U << USB_OTG_HCSPLT_XACTPOS_Pos)         /*!< 0x00008000 */
22045 #define USB_OTG_HCSPLT_COMPLSPLT_Pos             (16U)
22046 #define USB_OTG_HCSPLT_COMPLSPLT_Msk             (0x1U << USB_OTG_HCSPLT_COMPLSPLT_Pos)       /*!< 0x00010000 */
22047 #define USB_OTG_HCSPLT_COMPLSPLT                 USB_OTG_HCSPLT_COMPLSPLT_Msk                 /*!< Do complete split */
22048 #define USB_OTG_HCSPLT_SPLITEN_Pos               (31U)
22049 #define USB_OTG_HCSPLT_SPLITEN_Msk               (0x1U << USB_OTG_HCSPLT_SPLITEN_Pos)         /*!< 0x80000000 */
22050 #define USB_OTG_HCSPLT_SPLITEN                   USB_OTG_HCSPLT_SPLITEN_Msk                   /*!< Split enable */
22051 
22052 /********************  Bit definition for USB_OTG_HCINT register  ********************/
22053 #define USB_OTG_HCINT_XFRC_Pos                   (0U)
22054 #define USB_OTG_HCINT_XFRC_Msk                   (0x1U << USB_OTG_HCINT_XFRC_Pos)             /*!< 0x00000001 */
22055 #define USB_OTG_HCINT_XFRC                       USB_OTG_HCINT_XFRC_Msk                       /*!< Transfer completed */
22056 #define USB_OTG_HCINT_CHH_Pos                    (1U)
22057 #define USB_OTG_HCINT_CHH_Msk                    (0x1U << USB_OTG_HCINT_CHH_Pos)              /*!< 0x00000002 */
22058 #define USB_OTG_HCINT_CHH                        USB_OTG_HCINT_CHH_Msk                        /*!< Channel halted */
22059 #define USB_OTG_HCINT_AHBERR_Pos                 (2U)
22060 #define USB_OTG_HCINT_AHBERR_Msk                 (0x1U << USB_OTG_HCINT_AHBERR_Pos)           /*!< 0x00000004 */
22061 #define USB_OTG_HCINT_AHBERR                     USB_OTG_HCINT_AHBERR_Msk                     /*!< AHB error */
22062 #define USB_OTG_HCINT_STALL_Pos                  (3U)
22063 #define USB_OTG_HCINT_STALL_Msk                  (0x1U << USB_OTG_HCINT_STALL_Pos)            /*!< 0x00000008 */
22064 #define USB_OTG_HCINT_STALL                      USB_OTG_HCINT_STALL_Msk                      /*!< STALL response received interrupt */
22065 #define USB_OTG_HCINT_NAK_Pos                    (4U)
22066 #define USB_OTG_HCINT_NAK_Msk                    (0x1U << USB_OTG_HCINT_NAK_Pos)              /*!< 0x00000010 */
22067 #define USB_OTG_HCINT_NAK                        USB_OTG_HCINT_NAK_Msk                        /*!< NAK response received interrupt */
22068 #define USB_OTG_HCINT_ACK_Pos                    (5U)
22069 #define USB_OTG_HCINT_ACK_Msk                    (0x1U << USB_OTG_HCINT_ACK_Pos)              /*!< 0x00000020 */
22070 #define USB_OTG_HCINT_ACK                        USB_OTG_HCINT_ACK_Msk                        /*!< ACK response received/transmitted interrupt */
22071 #define USB_OTG_HCINT_NYET_Pos                   (6U)
22072 #define USB_OTG_HCINT_NYET_Msk                   (0x1U << USB_OTG_HCINT_NYET_Pos)             /*!< 0x00000040 */
22073 #define USB_OTG_HCINT_NYET                       USB_OTG_HCINT_NYET_Msk                       /*!< Response received interrupt */
22074 #define USB_OTG_HCINT_TXERR_Pos                  (7U)
22075 #define USB_OTG_HCINT_TXERR_Msk                  (0x1U << USB_OTG_HCINT_TXERR_Pos)            /*!< 0x00000080 */
22076 #define USB_OTG_HCINT_TXERR                      USB_OTG_HCINT_TXERR_Msk                      /*!< Transaction error */
22077 #define USB_OTG_HCINT_BBERR_Pos                  (8U)
22078 #define USB_OTG_HCINT_BBERR_Msk                  (0x1U << USB_OTG_HCINT_BBERR_Pos)            /*!< 0x00000100 */
22079 #define USB_OTG_HCINT_BBERR                      USB_OTG_HCINT_BBERR_Msk                      /*!< Babble error */
22080 #define USB_OTG_HCINT_FRMOR_Pos                  (9U)
22081 #define USB_OTG_HCINT_FRMOR_Msk                  (0x1U << USB_OTG_HCINT_FRMOR_Pos)            /*!< 0x00000200 */
22082 #define USB_OTG_HCINT_FRMOR                      USB_OTG_HCINT_FRMOR_Msk                      /*!< Frame overrun */
22083 #define USB_OTG_HCINT_DTERR_Pos                  (10U)
22084 #define USB_OTG_HCINT_DTERR_Msk                  (0x1U << USB_OTG_HCINT_DTERR_Pos)            /*!< 0x00000400 */
22085 #define USB_OTG_HCINT_DTERR                      USB_OTG_HCINT_DTERR_Msk                      /*!< Data toggle error */
22086 
22087 /********************  Bit definition for USB_OTG_DIEPINT register  ********************/
22088 #define USB_OTG_DIEPINT_XFRC_Pos                 (0U)
22089 #define USB_OTG_DIEPINT_XFRC_Msk                 (0x1U << USB_OTG_DIEPINT_XFRC_Pos)           /*!< 0x00000001 */
22090 #define USB_OTG_DIEPINT_XFRC                     USB_OTG_DIEPINT_XFRC_Msk                     /*!< Transfer completed interrupt */
22091 #define USB_OTG_DIEPINT_EPDISD_Pos               (1U)
22092 #define USB_OTG_DIEPINT_EPDISD_Msk               (0x1U << USB_OTG_DIEPINT_EPDISD_Pos)         /*!< 0x00000002 */
22093 #define USB_OTG_DIEPINT_EPDISD                   USB_OTG_DIEPINT_EPDISD_Msk                   /*!< Endpoint disabled interrupt */
22094 #define USB_OTG_DIEPINT_TOC_Pos                  (3U)
22095 #define USB_OTG_DIEPINT_TOC_Msk                  (0x1U << USB_OTG_DIEPINT_TOC_Pos)            /*!< 0x00000008 */
22096 #define USB_OTG_DIEPINT_TOC                      USB_OTG_DIEPINT_TOC_Msk                      /*!< Timeout condition */
22097 #define USB_OTG_DIEPINT_ITTXFE_Pos               (4U)
22098 #define USB_OTG_DIEPINT_ITTXFE_Msk               (0x1U << USB_OTG_DIEPINT_ITTXFE_Pos)         /*!< 0x00000010 */
22099 #define USB_OTG_DIEPINT_ITTXFE                   USB_OTG_DIEPINT_ITTXFE_Msk                   /*!< IN token received when TxFIFO is empty */
22100 #define USB_OTG_DIEPINT_INEPNE_Pos               (6U)
22101 #define USB_OTG_DIEPINT_INEPNE_Msk               (0x1U << USB_OTG_DIEPINT_INEPNE_Pos)         /*!< 0x00000040 */
22102 #define USB_OTG_DIEPINT_INEPNE                   USB_OTG_DIEPINT_INEPNE_Msk                   /*!< IN endpoint NAK effective */
22103 #define USB_OTG_DIEPINT_TXFE_Pos                 (7U)
22104 #define USB_OTG_DIEPINT_TXFE_Msk                 (0x1U << USB_OTG_DIEPINT_TXFE_Pos)           /*!< 0x00000080 */
22105 #define USB_OTG_DIEPINT_TXFE                     USB_OTG_DIEPINT_TXFE_Msk                     /*!< Transmit FIFO empty */
22106 #define USB_OTG_DIEPINT_TXFIFOUDRN_Pos           (8U)
22107 #define USB_OTG_DIEPINT_TXFIFOUDRN_Msk           (0x1U << USB_OTG_DIEPINT_TXFIFOUDRN_Pos)     /*!< 0x00000100 */
22108 #define USB_OTG_DIEPINT_TXFIFOUDRN               USB_OTG_DIEPINT_TXFIFOUDRN_Msk               /*!< Transmit Fifo Underrun */
22109 #define USB_OTG_DIEPINT_BNA_Pos                  (9U)
22110 #define USB_OTG_DIEPINT_BNA_Msk                  (0x1U << USB_OTG_DIEPINT_BNA_Pos)            /*!< 0x00000200 */
22111 #define USB_OTG_DIEPINT_BNA                      USB_OTG_DIEPINT_BNA_Msk                      /*!< Buffer not available interrupt */
22112 #define USB_OTG_DIEPINT_PKTDRPSTS_Pos            (11U)
22113 #define USB_OTG_DIEPINT_PKTDRPSTS_Msk            (0x1U << USB_OTG_DIEPINT_PKTDRPSTS_Pos)      /*!< 0x00000800 */
22114 #define USB_OTG_DIEPINT_PKTDRPSTS                USB_OTG_DIEPINT_PKTDRPSTS_Msk                /*!< Packet dropped status */
22115 #define USB_OTG_DIEPINT_BERR_Pos                 (12U)
22116 #define USB_OTG_DIEPINT_BERR_Msk                 (0x1U << USB_OTG_DIEPINT_BERR_Pos)           /*!< 0x00001000 */
22117 #define USB_OTG_DIEPINT_BERR                     USB_OTG_DIEPINT_BERR_Msk                     /*!< Babble error interrupt */
22118 #define USB_OTG_DIEPINT_NAK_Pos                  (13U)
22119 #define USB_OTG_DIEPINT_NAK_Msk                  (0x1U << USB_OTG_DIEPINT_NAK_Pos)            /*!< 0x00002000 */
22120 #define USB_OTG_DIEPINT_NAK                      USB_OTG_DIEPINT_NAK_Msk                      /*!< NAK interrupt */
22121 
22122 /********************  Bit definition for USB_OTG_HCINTMSK register  ********************/
22123 #define USB_OTG_HCINTMSK_XFRCM_Pos               (0U)
22124 #define USB_OTG_HCINTMSK_XFRCM_Msk               (0x1U << USB_OTG_HCINTMSK_XFRCM_Pos)         /*!< 0x00000001 */
22125 #define USB_OTG_HCINTMSK_XFRCM                   USB_OTG_HCINTMSK_XFRCM_Msk                   /*!< Transfer completed mask */
22126 #define USB_OTG_HCINTMSK_CHHM_Pos                (1U)
22127 #define USB_OTG_HCINTMSK_CHHM_Msk                (0x1U << USB_OTG_HCINTMSK_CHHM_Pos)          /*!< 0x00000002 */
22128 #define USB_OTG_HCINTMSK_CHHM                    USB_OTG_HCINTMSK_CHHM_Msk                    /*!< Channel halted mask */
22129 #define USB_OTG_HCINTMSK_AHBERR_Pos              (2U)
22130 #define USB_OTG_HCINTMSK_AHBERR_Msk              (0x1U << USB_OTG_HCINTMSK_AHBERR_Pos)        /*!< 0x00000004 */
22131 #define USB_OTG_HCINTMSK_AHBERR                  USB_OTG_HCINTMSK_AHBERR_Msk                  /*!< AHB error */
22132 #define USB_OTG_HCINTMSK_STALLM_Pos              (3U)
22133 #define USB_OTG_HCINTMSK_STALLM_Msk              (0x1U << USB_OTG_HCINTMSK_STALLM_Pos)        /*!< 0x00000008 */
22134 #define USB_OTG_HCINTMSK_STALLM                  USB_OTG_HCINTMSK_STALLM_Msk                  /*!< STALL response received interrupt mask */
22135 #define USB_OTG_HCINTMSK_NAKM_Pos                (4U)
22136 #define USB_OTG_HCINTMSK_NAKM_Msk                (0x1U << USB_OTG_HCINTMSK_NAKM_Pos)          /*!< 0x00000010 */
22137 #define USB_OTG_HCINTMSK_NAKM                    USB_OTG_HCINTMSK_NAKM_Msk                    /*!< NAK response received interrupt mask */
22138 #define USB_OTG_HCINTMSK_ACKM_Pos                (5U)
22139 #define USB_OTG_HCINTMSK_ACKM_Msk                (0x1U << USB_OTG_HCINTMSK_ACKM_Pos)          /*!< 0x00000020 */
22140 #define USB_OTG_HCINTMSK_ACKM                    USB_OTG_HCINTMSK_ACKM_Msk                    /*!< ACK response received/transmitted interrupt mask */
22141 #define USB_OTG_HCINTMSK_NYET_Pos                (6U)
22142 #define USB_OTG_HCINTMSK_NYET_Msk                (0x1U << USB_OTG_HCINTMSK_NYET_Pos)          /*!< 0x00000040 */
22143 #define USB_OTG_HCINTMSK_NYET                    USB_OTG_HCINTMSK_NYET_Msk                    /*!< response received interrupt mask */
22144 #define USB_OTG_HCINTMSK_TXERRM_Pos              (7U)
22145 #define USB_OTG_HCINTMSK_TXERRM_Msk              (0x1U << USB_OTG_HCINTMSK_TXERRM_Pos)        /*!< 0x00000080 */
22146 #define USB_OTG_HCINTMSK_TXERRM                  USB_OTG_HCINTMSK_TXERRM_Msk                  /*!< Transaction error mask */
22147 #define USB_OTG_HCINTMSK_BBERRM_Pos              (8U)
22148 #define USB_OTG_HCINTMSK_BBERRM_Msk              (0x1U << USB_OTG_HCINTMSK_BBERRM_Pos)        /*!< 0x00000100 */
22149 #define USB_OTG_HCINTMSK_BBERRM                  USB_OTG_HCINTMSK_BBERRM_Msk                  /*!< Babble error mask */
22150 #define USB_OTG_HCINTMSK_FRMORM_Pos              (9U)
22151 #define USB_OTG_HCINTMSK_FRMORM_Msk              (0x1U << USB_OTG_HCINTMSK_FRMORM_Pos)        /*!< 0x00000200 */
22152 #define USB_OTG_HCINTMSK_FRMORM                  USB_OTG_HCINTMSK_FRMORM_Msk                  /*!< Frame overrun mask */
22153 #define USB_OTG_HCINTMSK_DTERRM_Pos              (10U)
22154 #define USB_OTG_HCINTMSK_DTERRM_Msk              (0x1U << USB_OTG_HCINTMSK_DTERRM_Pos)        /*!< 0x00000400 */
22155 #define USB_OTG_HCINTMSK_DTERRM                  USB_OTG_HCINTMSK_DTERRM_Msk                  /*!< Data toggle error mask */
22156 
22157 /********************  Bit definition for USB_OTG_DIEPTSIZ register  ********************/
22158 #define USB_OTG_DIEPTSIZ_XFRSIZ_Pos              (0U)
22159 #define USB_OTG_DIEPTSIZ_XFRSIZ_Msk              (0x7FFFFU << USB_OTG_DIEPTSIZ_XFRSIZ_Pos)    /*!< 0x0007FFFF */
22160 #define USB_OTG_DIEPTSIZ_XFRSIZ                  USB_OTG_DIEPTSIZ_XFRSIZ_Msk                  /*!< Transfer size */
22161 #define USB_OTG_DIEPTSIZ_PKTCNT_Pos              (19U)
22162 #define USB_OTG_DIEPTSIZ_PKTCNT_Msk              (0x3FFU << USB_OTG_DIEPTSIZ_PKTCNT_Pos)      /*!< 0x1FF80000 */
22163 #define USB_OTG_DIEPTSIZ_PKTCNT                  USB_OTG_DIEPTSIZ_PKTCNT_Msk                  /*!< Packet count */
22164 #define USB_OTG_DIEPTSIZ_MULCNT_Pos              (29U)
22165 #define USB_OTG_DIEPTSIZ_MULCNT_Msk              (0x3U << USB_OTG_DIEPTSIZ_MULCNT_Pos)        /*!< 0x60000000 */
22166 #define USB_OTG_DIEPTSIZ_MULCNT                  USB_OTG_DIEPTSIZ_MULCNT_Msk                  /*!< Packet count */
22167 
22168 /********************  Bit definition for USB_OTG_HCTSIZ register  ********************/
22169 #define USB_OTG_HCTSIZ_XFRSIZ_Pos                (0U)
22170 #define USB_OTG_HCTSIZ_XFRSIZ_Msk                (0x7FFFFU << USB_OTG_HCTSIZ_XFRSIZ_Pos)      /*!< 0x0007FFFF */
22171 #define USB_OTG_HCTSIZ_XFRSIZ                    USB_OTG_HCTSIZ_XFRSIZ_Msk                    /*!< Transfer size */
22172 #define USB_OTG_HCTSIZ_PKTCNT_Pos                (19U)
22173 #define USB_OTG_HCTSIZ_PKTCNT_Msk                (0x3FFU << USB_OTG_HCTSIZ_PKTCNT_Pos)        /*!< 0x1FF80000 */
22174 #define USB_OTG_HCTSIZ_PKTCNT                    USB_OTG_HCTSIZ_PKTCNT_Msk                    /*!< Packet count */
22175 #define USB_OTG_HCTSIZ_DOPING_Pos                (31U)
22176 #define USB_OTG_HCTSIZ_DOPING_Msk                (0x1U << USB_OTG_HCTSIZ_DOPING_Pos)          /*!< 0x80000000 */
22177 #define USB_OTG_HCTSIZ_DOPING                    USB_OTG_HCTSIZ_DOPING_Msk                    /*!< Do PING */
22178 #define USB_OTG_HCTSIZ_DPID_Pos                  (29U)
22179 #define USB_OTG_HCTSIZ_DPID_Msk                  (0x3U << USB_OTG_HCTSIZ_DPID_Pos)            /*!< 0x60000000 */
22180 #define USB_OTG_HCTSIZ_DPID                      USB_OTG_HCTSIZ_DPID_Msk                      /*!< Data PID */
22181 #define USB_OTG_HCTSIZ_DPID_0                    (0x1U << USB_OTG_HCTSIZ_DPID_Pos)            /*!< 0x20000000 */
22182 #define USB_OTG_HCTSIZ_DPID_1                    (0x2U << USB_OTG_HCTSIZ_DPID_Pos)            /*!< 0x40000000 */
22183 
22184 /********************  Bit definition for USB_OTG_DIEPDMA register  ********************/
22185 #define USB_OTG_DIEPDMA_DMAADDR_Pos              (0U)
22186 #define USB_OTG_DIEPDMA_DMAADDR_Msk              (0xFFFFFFFFU << USB_OTG_DIEPDMA_DMAADDR_Pos) /*!< 0xFFFFFFFF */
22187 #define USB_OTG_DIEPDMA_DMAADDR                  USB_OTG_DIEPDMA_DMAADDR_Msk                  /*!< DMA address */
22188 
22189 /********************  Bit definition for USB_OTG_HCDMA register  ********************/
22190 #define USB_OTG_HCDMA_DMAADDR_Pos                (0U)
22191 #define USB_OTG_HCDMA_DMAADDR_Msk                (0xFFFFFFFFU << USB_OTG_HCDMA_DMAADDR_Pos)   /*!< 0xFFFFFFFF */
22192 #define USB_OTG_HCDMA_DMAADDR                    USB_OTG_HCDMA_DMAADDR_Msk                    /*!< DMA address */
22193 
22194 /********************  Bit definition for USB_OTG_DTXFSTS register  ********************/
22195 #define USB_OTG_DTXFSTS_INEPTFSAV_Pos            (0U)
22196 #define USB_OTG_DTXFSTS_INEPTFSAV_Msk            (0xFFFFU << USB_OTG_DTXFSTS_INEPTFSAV_Pos)   /*!< 0x0000FFFF */
22197 #define USB_OTG_DTXFSTS_INEPTFSAV                USB_OTG_DTXFSTS_INEPTFSAV_Msk                /*!< IN endpoint TxFIFO space avail */
22198 
22199 /********************  Bit definition for USB_OTG_DIEPTXF register  ********************/
22200 #define USB_OTG_DIEPTXF_INEPTXSA_Pos             (0U)
22201 #define USB_OTG_DIEPTXF_INEPTXSA_Msk             (0xFFFFU << USB_OTG_DIEPTXF_INEPTXSA_Pos)    /*!< 0x0000FFFF */
22202 #define USB_OTG_DIEPTXF_INEPTXSA                 USB_OTG_DIEPTXF_INEPTXSA_Msk                 /*!< IN endpoint FIFOx transmit RAM start address */
22203 #define USB_OTG_DIEPTXF_INEPTXFD_Pos             (16U)
22204 #define USB_OTG_DIEPTXF_INEPTXFD_Msk             (0xFFFFU << USB_OTG_DIEPTXF_INEPTXFD_Pos)    /*!< 0xFFFF0000 */
22205 #define USB_OTG_DIEPTXF_INEPTXFD                 USB_OTG_DIEPTXF_INEPTXFD_Msk                 /*!< IN endpoint TxFIFO depth */
22206 
22207 /********************  Bit definition for USB_OTG_DOEPCTL register  ********************/
22208 #define USB_OTG_DOEPCTL_MPSIZ_Pos                (0U)
22209 #define USB_OTG_DOEPCTL_MPSIZ_Msk                (0x7FFU << USB_OTG_DOEPCTL_MPSIZ_Pos)        /*!< 0x000007FF */
22210 #define USB_OTG_DOEPCTL_MPSIZ                    USB_OTG_DOEPCTL_MPSIZ_Msk                    /*!< Maximum packet size */
22211 #define USB_OTG_DOEPCTL_USBAEP_Pos               (15U)
22212 #define USB_OTG_DOEPCTL_USBAEP_Msk               (0x1U << USB_OTG_DOEPCTL_USBAEP_Pos)         /*!< 0x00008000 */
22213 #define USB_OTG_DOEPCTL_USBAEP                   USB_OTG_DOEPCTL_USBAEP_Msk                   /*!< USB active endpoint */
22214 #define USB_OTG_DOEPCTL_NAKSTS_Pos               (17U)
22215 #define USB_OTG_DOEPCTL_NAKSTS_Msk               (0x1U << USB_OTG_DOEPCTL_NAKSTS_Pos)         /*!< 0x00020000 */
22216 #define USB_OTG_DOEPCTL_NAKSTS                   USB_OTG_DOEPCTL_NAKSTS_Msk                   /*!< NAK status */
22217 #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos       (28U)
22218 #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk       (0x1U << USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Pos) /*!< 0x10000000 */
22219 #define USB_OTG_DOEPCTL_SD0PID_SEVNFRM           USB_OTG_DOEPCTL_SD0PID_SEVNFRM_Msk           /*!< Set DATA0 PID */
22220 #define USB_OTG_DOEPCTL_SODDFRM_Pos              (29U)
22221 #define USB_OTG_DOEPCTL_SODDFRM_Msk              (0x1U << USB_OTG_DOEPCTL_SODDFRM_Pos)        /*!< 0x20000000 */
22222 #define USB_OTG_DOEPCTL_SODDFRM                  USB_OTG_DOEPCTL_SODDFRM_Msk                  /*!< Set odd frame */
22223 #define USB_OTG_DOEPCTL_EPTYP_Pos                (18U)
22224 #define USB_OTG_DOEPCTL_EPTYP_Msk                (0x3U << USB_OTG_DOEPCTL_EPTYP_Pos)          /*!< 0x000C0000 */
22225 #define USB_OTG_DOEPCTL_EPTYP                    USB_OTG_DOEPCTL_EPTYP_Msk                    /*!< Endpoint type */
22226 #define USB_OTG_DOEPCTL_EPTYP_0                  (0x1U << USB_OTG_DOEPCTL_EPTYP_Pos)          /*!< 0x00040000 */
22227 #define USB_OTG_DOEPCTL_EPTYP_1                  (0x2U << USB_OTG_DOEPCTL_EPTYP_Pos)          /*!< 0x00080000 */
22228 #define USB_OTG_DOEPCTL_SNPM_Pos                 (20U)
22229 #define USB_OTG_DOEPCTL_SNPM_Msk                 (0x1U << USB_OTG_DOEPCTL_SNPM_Pos)           /*!< 0x00100000 */
22230 #define USB_OTG_DOEPCTL_SNPM                     USB_OTG_DOEPCTL_SNPM_Msk                     /*!< Snoop mode */
22231 #define USB_OTG_DOEPCTL_STALL_Pos                (21U)
22232 #define USB_OTG_DOEPCTL_STALL_Msk                (0x1U << USB_OTG_DOEPCTL_STALL_Pos)          /*!< 0x00200000 */
22233 #define USB_OTG_DOEPCTL_STALL                    USB_OTG_DOEPCTL_STALL_Msk                    /*!< STALL handshake */
22234 #define USB_OTG_DOEPCTL_CNAK_Pos                 (26U)
22235 #define USB_OTG_DOEPCTL_CNAK_Msk                 (0x1U << USB_OTG_DOEPCTL_CNAK_Pos)           /*!< 0x04000000 */
22236 #define USB_OTG_DOEPCTL_CNAK                     USB_OTG_DOEPCTL_CNAK_Msk                     /*!< Clear NAK */
22237 #define USB_OTG_DOEPCTL_SNAK_Pos                 (27U)
22238 #define USB_OTG_DOEPCTL_SNAK_Msk                 (0x1U << USB_OTG_DOEPCTL_SNAK_Pos)           /*!< 0x08000000 */
22239 #define USB_OTG_DOEPCTL_SNAK                     USB_OTG_DOEPCTL_SNAK_Msk                     /*!< Set NAK */
22240 #define USB_OTG_DOEPCTL_EPDIS_Pos                (30U)
22241 #define USB_OTG_DOEPCTL_EPDIS_Msk                (0x1U << USB_OTG_DOEPCTL_EPDIS_Pos)          /*!< 0x40000000 */
22242 #define USB_OTG_DOEPCTL_EPDIS                    USB_OTG_DOEPCTL_EPDIS_Msk                    /*!< Endpoint disable */
22243 #define USB_OTG_DOEPCTL_EPENA_Pos                (31U)
22244 #define USB_OTG_DOEPCTL_EPENA_Msk                (0x1U << USB_OTG_DOEPCTL_EPENA_Pos)          /*!< 0x80000000 */
22245 #define USB_OTG_DOEPCTL_EPENA                    USB_OTG_DOEPCTL_EPENA_Msk                    /*!< Endpoint enable */
22246 
22247 /********************  Bit definition for USB_OTG_DOEPINT register  ********************/
22248 #define USB_OTG_DOEPINT_XFRC_Pos                 (0U)
22249 #define USB_OTG_DOEPINT_XFRC_Msk                 (0x1U << USB_OTG_DOEPINT_XFRC_Pos)           /*!< 0x00000001 */
22250 #define USB_OTG_DOEPINT_XFRC                     USB_OTG_DOEPINT_XFRC_Msk                     /*!< Transfer completed interrupt */
22251 #define USB_OTG_DOEPINT_EPDISD_Pos               (1U)
22252 #define USB_OTG_DOEPINT_EPDISD_Msk               (0x1U << USB_OTG_DOEPINT_EPDISD_Pos)         /*!< 0x00000002 */
22253 #define USB_OTG_DOEPINT_EPDISD                   USB_OTG_DOEPINT_EPDISD_Msk                   /*!< Endpoint disabled interrupt */
22254 #define USB_OTG_DOEPINT_STUP_Pos                 (3U)
22255 #define USB_OTG_DOEPINT_STUP_Msk                 (0x1U << USB_OTG_DOEPINT_STUP_Pos)           /*!< 0x00000008 */
22256 #define USB_OTG_DOEPINT_STUP                     USB_OTG_DOEPINT_STUP_Msk                     /*!< SETUP phase done */
22257 #define USB_OTG_DOEPINT_OTEPDIS_Pos              (4U)
22258 #define USB_OTG_DOEPINT_OTEPDIS_Msk              (0x1U << USB_OTG_DOEPINT_OTEPDIS_Pos)        /*!< 0x00000010 */
22259 #define USB_OTG_DOEPINT_OTEPDIS                  USB_OTG_DOEPINT_OTEPDIS_Msk                  /*!< OUT token received when endpoint disabled */
22260 #define USB_OTG_DOEPINT_B2BSTUP_Pos              (6U)
22261 #define USB_OTG_DOEPINT_B2BSTUP_Msk              (0x1U << USB_OTG_DOEPINT_B2BSTUP_Pos)        /*!< 0x00000040 */
22262 #define USB_OTG_DOEPINT_B2BSTUP                  USB_OTG_DOEPINT_B2BSTUP_Msk                  /*!< Back-to-back SETUP packets received */
22263 #define USB_OTG_DOEPINT_NYET_Pos                 (14U)
22264 #define USB_OTG_DOEPINT_NYET_Msk                 (0x1U << USB_OTG_DOEPINT_NYET_Pos)           /*!< 0x00004000 */
22265 #define USB_OTG_DOEPINT_NYET                     USB_OTG_DOEPINT_NYET_Msk                     /*!< NYET interrupt */
22266 
22267 /********************  Bit definition for USB_OTG_DOEPTSIZ register  ********************/
22268 #define USB_OTG_DOEPTSIZ_XFRSIZ_Pos              (0U)
22269 #define USB_OTG_DOEPTSIZ_XFRSIZ_Msk              (0x7FFFFU << USB_OTG_DOEPTSIZ_XFRSIZ_Pos)    /*!< 0x0007FFFF */
22270 #define USB_OTG_DOEPTSIZ_XFRSIZ                  USB_OTG_DOEPTSIZ_XFRSIZ_Msk                  /*!< Transfer size */
22271 #define USB_OTG_DOEPTSIZ_PKTCNT_Pos              (19U)
22272 #define USB_OTG_DOEPTSIZ_PKTCNT_Msk              (0x3FFU << USB_OTG_DOEPTSIZ_PKTCNT_Pos)      /*!< 0x1FF80000 */
22273 #define USB_OTG_DOEPTSIZ_PKTCNT                  USB_OTG_DOEPTSIZ_PKTCNT_Msk                  /*!< Packet count */
22274 
22275 #define USB_OTG_DOEPTSIZ_STUPCNT_Pos             (29U)
22276 #define USB_OTG_DOEPTSIZ_STUPCNT_Msk             (0x3U << USB_OTG_DOEPTSIZ_STUPCNT_Pos)       /*!< 0x60000000 */
22277 #define USB_OTG_DOEPTSIZ_STUPCNT                 USB_OTG_DOEPTSIZ_STUPCNT_Msk                 /*!< SETUP packet count */
22278 #define USB_OTG_DOEPTSIZ_STUPCNT_0               (0x1U << USB_OTG_DOEPTSIZ_STUPCNT_Pos)       /*!< 0x20000000 */
22279 #define USB_OTG_DOEPTSIZ_STUPCNT_1               (0x2U << USB_OTG_DOEPTSIZ_STUPCNT_Pos)       /*!< 0x40000000 */
22280 
22281 /********************  Bit definition for PCGCCTL register  ********************/
22282 #define USB_OTG_PCGCCTL_STOPCLK_Pos              (0U)
22283 #define USB_OTG_PCGCCTL_STOPCLK_Msk              (0x1U << USB_OTG_PCGCCTL_STOPCLK_Pos)        /*!< 0x00000001 */
22284 #define USB_OTG_PCGCCTL_STOPCLK                  USB_OTG_PCGCCTL_STOPCLK_Msk                  /*!< SETUP packet count */
22285 #define USB_OTG_PCGCCTL_GATECLK_Pos              (1U)
22286 #define USB_OTG_PCGCCTL_GATECLK_Msk              (0x1U << USB_OTG_PCGCCTL_GATECLK_Pos)        /*!< 0x00000002 */
22287 #define USB_OTG_PCGCCTL_GATECLK                  USB_OTG_PCGCCTL_GATECLK_Msk                  /*!<Bit 0 */
22288 #define USB_OTG_PCGCCTL_PHYSUSP_Pos              (4U)
22289 #define USB_OTG_PCGCCTL_PHYSUSP_Msk              (0x1U << USB_OTG_PCGCCTL_PHYSUSP_Pos)        /*!< 0x00000010 */
22290 #define USB_OTG_PCGCCTL_PHYSUSP                  USB_OTG_PCGCCTL_PHYSUSP_Msk                  /*!<Bit 1 */
22291 
22292 /******************************************************************************/
22293 /*                                                                            */
22294 /*      Universal Synchronous Asynchronous Receiver Transmitter (USART)       */
22295 /*                                                                            */
22296 /******************************************************************************/
22297 /******************  Bit definition for USART_CR1 register  *******************/
22298 #define USART_CR1_UE_Pos                    (0U)
22299 #define USART_CR1_UE_Msk                    (0x1UL << USART_CR1_UE_Pos)             /*!< 0x00000001 */
22300 #define USART_CR1_UE                        USART_CR1_UE_Msk                        /*!< USART Enable */
22301 #define USART_CR1_UESM_Pos                  (1U)
22302 #define USART_CR1_UESM_Msk                  (0x1UL << USART_CR1_UESM_Pos)           /*!< 0x00000002 */
22303 #define USART_CR1_UESM                      USART_CR1_UESM_Msk                      /*!< USART Enable in STOP Mode */
22304 #define USART_CR1_RE_Pos                    (2U)
22305 #define USART_CR1_RE_Msk                    (0x1UL << USART_CR1_RE_Pos)             /*!< 0x00000004 */
22306 #define USART_CR1_RE                        USART_CR1_RE_Msk                        /*!< Receiver Enable */
22307 #define USART_CR1_TE_Pos                    (3U)
22308 #define USART_CR1_TE_Msk                    (0x1UL << USART_CR1_TE_Pos)             /*!< 0x00000008 */
22309 #define USART_CR1_TE                        USART_CR1_TE_Msk                        /*!< Transmitter Enable */
22310 #define USART_CR1_IDLEIE_Pos                (4U)
22311 #define USART_CR1_IDLEIE_Msk                (0x1UL << USART_CR1_IDLEIE_Pos)         /*!< 0x00000010 */
22312 #define USART_CR1_IDLEIE                    USART_CR1_IDLEIE_Msk                    /*!< IDLE Interrupt Enable */
22313 #define USART_CR1_RXNEIE_Pos                (5U)
22314 #define USART_CR1_RXNEIE_Msk                (0x1UL << USART_CR1_RXNEIE_Pos)         /*!< 0x00000020 */
22315 #define USART_CR1_RXNEIE                    USART_CR1_RXNEIE_Msk                    /*!< RXNE Interrupt Enable */
22316 #define USART_CR1_RXNEIE_RXFNEIE_Pos        USART_CR1_RXNEIE_Pos
22317 #define USART_CR1_RXNEIE_RXFNEIE_Msk        USART_CR1_RXNEIE_Msk                    /*!< 0x00000020 */
22318 #define USART_CR1_RXNEIE_RXFNEIE            USART_CR1_RXNEIE_Msk                    /*!< RXNE and RX FIFO Not Empty Interrupt Enable */
22319 #define USART_CR1_TCIE_Pos                  (6U)
22320 #define USART_CR1_TCIE_Msk                  (0x1UL << USART_CR1_TCIE_Pos)           /*!< 0x00000040 */
22321 #define USART_CR1_TCIE                      USART_CR1_TCIE_Msk                      /*!< Transmission Complete Interrupt Enable */
22322 #define USART_CR1_TXEIE_Pos                 (7U)
22323 #define USART_CR1_TXEIE_Msk                 (0x1UL << USART_CR1_TXEIE_Pos)          /*!< 0x00000080 */
22324 #define USART_CR1_TXEIE                     USART_CR1_TXEIE_Msk                     /*!< TXE Interrupt Enable */
22325 #define USART_CR1_TXEIE_TXFNFIE_Pos         (7U)
22326 #define USART_CR1_TXEIE_TXFNFIE_Msk         (0x1UL << USART_CR1_TXEIE_Pos)          /*!< 0x00000080 */
22327 #define USART_CR1_TXEIE_TXFNFIE             USART_CR1_TXEIE                         /*!< TXE and TX FIFO Not Full Interrupt Enable */
22328 #define USART_CR1_PEIE_Pos                  (8U)
22329 #define USART_CR1_PEIE_Msk                  (0x1UL << USART_CR1_PEIE_Pos)           /*!< 0x00000100 */
22330 #define USART_CR1_PEIE                      USART_CR1_PEIE_Msk                      /*!< PE Interrupt Enable */
22331 #define USART_CR1_PS_Pos                    (9U)
22332 #define USART_CR1_PS_Msk                    (0x1UL << USART_CR1_PS_Pos)             /*!< 0x00000200 */
22333 #define USART_CR1_PS                        USART_CR1_PS_Msk                        /*!< Parity Selection */
22334 #define USART_CR1_PCE_Pos                   (10U)
22335 #define USART_CR1_PCE_Msk                   (0x1UL << USART_CR1_PCE_Pos)            /*!< 0x00000400 */
22336 #define USART_CR1_PCE                       USART_CR1_PCE_Msk                       /*!< Parity Control Enable */
22337 #define USART_CR1_WAKE_Pos                  (11U)
22338 #define USART_CR1_WAKE_Msk                  (0x1UL << USART_CR1_WAKE_Pos)           /*!< 0x00000800 */
22339 #define USART_CR1_WAKE                      USART_CR1_WAKE_Msk                      /*!< Receiver Wakeup method */
22340 #define USART_CR1_M_Pos                     (12U)
22341 #define USART_CR1_M_Msk                     (0x10001UL << USART_CR1_M_Pos)          /*!< 0x10001000 */
22342 #define USART_CR1_M                         USART_CR1_M_Msk                         /*!< Word length */
22343 #define USART_CR1_M0_Pos                    (12U)
22344 #define USART_CR1_M0_Msk                    (0x1UL << USART_CR1_M0_Pos)             /*!< 0x00001000 */
22345 #define USART_CR1_M0                        USART_CR1_M0_Msk                        /*!< Word length - Bit 0 */
22346 #define USART_CR1_MME_Pos                   (13U)
22347 #define USART_CR1_MME_Msk                   (0x1UL << USART_CR1_MME_Pos)            /*!< 0x00002000 */
22348 #define USART_CR1_MME                       USART_CR1_MME_Msk                       /*!< Mute Mode Enable */
22349 #define USART_CR1_CMIE_Pos                  (14U)
22350 #define USART_CR1_CMIE_Msk                  (0x1UL << USART_CR1_CMIE_Pos)           /*!< 0x00004000 */
22351 #define USART_CR1_CMIE                      USART_CR1_CMIE_Msk                      /*!< Character match interrupt enable */
22352 #define USART_CR1_OVER8_Pos                 (15U)
22353 #define USART_CR1_OVER8_Msk                 (0x1UL << USART_CR1_OVER8_Pos)          /*!< 0x00008000 */
22354 #define USART_CR1_OVER8                     USART_CR1_OVER8_Msk                     /*!< Oversampling by 8-bit or 16-bit mode */
22355 #define USART_CR1_DEDT_Pos                  (16U)
22356 #define USART_CR1_DEDT_Msk                  (0x1FUL << USART_CR1_DEDT_Pos)          /*!< 0x001F0000 */
22357 #define USART_CR1_DEDT                      USART_CR1_DEDT_Msk                      /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
22358 #define USART_CR1_DEDT_0                    (0x01UL << USART_CR1_DEDT_Pos)          /*!< 0x00010000 */
22359 #define USART_CR1_DEDT_1                    (0x02UL << USART_CR1_DEDT_Pos)          /*!< 0x00020000 */
22360 #define USART_CR1_DEDT_2                    (0x04UL << USART_CR1_DEDT_Pos)          /*!< 0x00040000 */
22361 #define USART_CR1_DEDT_3                    (0x08UL << USART_CR1_DEDT_Pos)          /*!< 0x00080000 */
22362 #define USART_CR1_DEDT_4                    (0x10UL << USART_CR1_DEDT_Pos)          /*!< 0x00100000 */
22363 #define USART_CR1_DEAT_Pos                  (21U)
22364 #define USART_CR1_DEAT_Msk                  (0x1FUL << USART_CR1_DEAT_Pos)          /*!< 0x03E00000 */
22365 #define USART_CR1_DEAT                      USART_CR1_DEAT_Msk                      /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
22366 #define USART_CR1_DEAT_0                    (0x01UL << USART_CR1_DEAT_Pos)          /*!< 0x00200000 */
22367 #define USART_CR1_DEAT_1                    (0x02UL << USART_CR1_DEAT_Pos)          /*!< 0x00400000 */
22368 #define USART_CR1_DEAT_2                    (0x04UL << USART_CR1_DEAT_Pos)          /*!< 0x00800000 */
22369 #define USART_CR1_DEAT_3                    (0x08UL << USART_CR1_DEAT_Pos)          /*!< 0x01000000 */
22370 #define USART_CR1_DEAT_4                    (0x10UL << USART_CR1_DEAT_Pos)          /*!< 0x02000000 */
22371 #define USART_CR1_RTOIE_Pos                 (26U)
22372 #define USART_CR1_RTOIE_Msk                 (0x1UL << USART_CR1_RTOIE_Pos)          /*!< 0x04000000 */
22373 #define USART_CR1_RTOIE                     USART_CR1_RTOIE_Msk                     /*!< Receive Time Out interrupt enable */
22374 #define USART_CR1_EOBIE_Pos                 (27U)
22375 #define USART_CR1_EOBIE_Msk                 (0x1UL << USART_CR1_EOBIE_Pos)          /*!< 0x08000000 */
22376 #define USART_CR1_EOBIE                     USART_CR1_EOBIE_Msk                     /*!< End of Block interrupt enable */
22377 #define USART_CR1_M1_Pos                    (28U)
22378 #define USART_CR1_M1_Msk                    (0x1UL << USART_CR1_M1_Pos)             /*!< 0x10000000 */
22379 #define USART_CR1_M1                        USART_CR1_M1_Msk                        /*!< Word length - Bit 1 */
22380 #define USART_CR1_FIFOEN_Pos                (29U)
22381 #define USART_CR1_FIFOEN_Msk                (0x1UL << USART_CR1_FIFOEN_Pos)         /*!< 0x20000000 */
22382 #define USART_CR1_FIFOEN                    USART_CR1_FIFOEN_Msk                    /*!< FIFO mode enable */
22383 #define USART_CR1_TXFEIE_Pos                (30U)
22384 #define USART_CR1_TXFEIE_Msk                (0x1UL << USART_CR1_TXFEIE_Pos)         /*!< 0x40000000 */
22385 #define USART_CR1_TXFEIE                    USART_CR1_TXFEIE_Msk                    /*!< TXFIFO empty interrupt enable */
22386 #define USART_CR1_RXFFIE_Pos                (31U)
22387 #define USART_CR1_RXFFIE_Msk                (0x1UL << USART_CR1_RXFFIE_Pos)         /*!< 0x80000000 */
22388 #define USART_CR1_RXFFIE                    USART_CR1_RXFFIE_Msk                    /*!< RXFIFO Full interrupt enable */
22389 
22390 /******************  Bit definition for USART_CR2 register  *******************/
22391 #define USART_CR2_SLVEN_Pos                 (0U)
22392 #define USART_CR2_SLVEN_Msk                 (0x1UL << USART_CR2_SLVEN_Pos)          /*!< 0x00000001 */
22393 #define USART_CR2_SLVEN                     USART_CR2_SLVEN_Msk                     /*!< Synchronous Slave mode enable */
22394 #define USART_CR2_DIS_NSS_Pos               (3U)
22395 #define USART_CR2_DIS_NSS_Msk               (0x1UL << USART_CR2_DIS_NSS_Pos)        /*!< 0x00000008 */
22396 #define USART_CR2_DIS_NSS                   USART_CR2_DIS_NSS_Msk                   /*!< Slave Select (NSS) pin management */
22397 #define USART_CR2_ADDM7_Pos                 (4U)
22398 #define USART_CR2_ADDM7_Msk                 (0x1UL << USART_CR2_ADDM7_Pos)          /*!< 0x00000010 */
22399 #define USART_CR2_ADDM7                     USART_CR2_ADDM7_Msk                     /*!< 7-bit or 4-bit Address Detection */
22400 #define USART_CR2_LBDL_Pos                  (5U)
22401 #define USART_CR2_LBDL_Msk                  (0x1UL << USART_CR2_LBDL_Pos)           /*!< 0x00000020 */
22402 #define USART_CR2_LBDL                      USART_CR2_LBDL_Msk                      /*!< LIN Break Detection Length */
22403 #define USART_CR2_LBDIE_Pos                 (6U)
22404 #define USART_CR2_LBDIE_Msk                 (0x1UL << USART_CR2_LBDIE_Pos)          /*!< 0x00000040 */
22405 #define USART_CR2_LBDIE                     USART_CR2_LBDIE_Msk                     /*!< LIN Break Detection Interrupt Enable */
22406 #define USART_CR2_LBCL_Pos                  (8U)
22407 #define USART_CR2_LBCL_Msk                  (0x1UL << USART_CR2_LBCL_Pos)           /*!< 0x00000100 */
22408 #define USART_CR2_LBCL                      USART_CR2_LBCL_Msk                      /*!< Last Bit Clock pulse */
22409 #define USART_CR2_CPHA_Pos                  (9U)
22410 #define USART_CR2_CPHA_Msk                  (0x1UL << USART_CR2_CPHA_Pos)           /*!< 0x00000200 */
22411 #define USART_CR2_CPHA                      USART_CR2_CPHA_Msk                      /*!< Clock Phase */
22412 #define USART_CR2_CPOL_Pos                  (10U)
22413 #define USART_CR2_CPOL_Msk                  (0x1UL << USART_CR2_CPOL_Pos)           /*!< 0x00000400 */
22414 #define USART_CR2_CPOL                      USART_CR2_CPOL_Msk                      /*!< Clock Polarity */
22415 #define USART_CR2_CLKEN_Pos                 (11U)
22416 #define USART_CR2_CLKEN_Msk                 (0x1UL << USART_CR2_CLKEN_Pos)          /*!< 0x00000800 */
22417 #define USART_CR2_CLKEN                     USART_CR2_CLKEN_Msk                     /*!< Clock Enable */
22418 #define USART_CR2_STOP_Pos                  (12U)
22419 #define USART_CR2_STOP_Msk                  (0x3UL << USART_CR2_STOP_Pos)           /*!< 0x00003000 */
22420 #define USART_CR2_STOP                      USART_CR2_STOP_Msk                      /*!< STOP[1:0] bits (STOP bits) */
22421 #define USART_CR2_STOP_0                    (0x1UL << USART_CR2_STOP_Pos)           /*!< 0x00001000 */
22422 #define USART_CR2_STOP_1                    (0x2UL << USART_CR2_STOP_Pos)           /*!< 0x00002000 */
22423 #define USART_CR2_LINEN_Pos                 (14U)
22424 #define USART_CR2_LINEN_Msk                 (0x1UL << USART_CR2_LINEN_Pos)          /*!< 0x00004000 */
22425 #define USART_CR2_LINEN                     USART_CR2_LINEN_Msk                     /*!< LIN mode enable */
22426 #define USART_CR2_SWAP_Pos                  (15U)
22427 #define USART_CR2_SWAP_Msk                  (0x1UL << USART_CR2_SWAP_Pos)           /*!< 0x00008000 */
22428 #define USART_CR2_SWAP                      USART_CR2_SWAP_Msk                      /*!< SWAP TX/RX pins */
22429 #define USART_CR2_RXINV_Pos                 (16U)
22430 #define USART_CR2_RXINV_Msk                 (0x1UL << USART_CR2_RXINV_Pos)          /*!< 0x00010000 */
22431 #define USART_CR2_RXINV                     USART_CR2_RXINV_Msk                     /*!< RX pin active level inversion */
22432 #define USART_CR2_TXINV_Pos                 (17U)
22433 #define USART_CR2_TXINV_Msk                 (0x1UL << USART_CR2_TXINV_Pos)          /*!< 0x00020000 */
22434 #define USART_CR2_TXINV                     USART_CR2_TXINV_Msk                     /*!< TX pin active level inversion */
22435 #define USART_CR2_DATAINV_Pos               (18U)
22436 #define USART_CR2_DATAINV_Msk               (0x1UL << USART_CR2_DATAINV_Pos)        /*!< 0x00040000 */
22437 #define USART_CR2_DATAINV                   USART_CR2_DATAINV_Msk                   /*!< Binary data inversion */
22438 #define USART_CR2_MSBFIRST_Pos              (19U)
22439 #define USART_CR2_MSBFIRST_Msk              (0x1UL << USART_CR2_MSBFIRST_Pos)       /*!< 0x00080000 */
22440 #define USART_CR2_MSBFIRST                  USART_CR2_MSBFIRST_Msk                  /*!< Most Significant Bit First */
22441 #define USART_CR2_ABREN_Pos                 (20U)
22442 #define USART_CR2_ABREN_Msk                 (0x1UL << USART_CR2_ABREN_Pos)          /*!< 0x00100000 */
22443 #define USART_CR2_ABREN                     USART_CR2_ABREN_Msk                     /*!< Auto Baud-Rate Enable*/
22444 #define USART_CR2_ABRMODE_Pos               (21U)
22445 #define USART_CR2_ABRMODE_Msk               (0x3UL << USART_CR2_ABRMODE_Pos)        /*!< 0x00600000 */
22446 #define USART_CR2_ABRMODE                   USART_CR2_ABRMODE_Msk                   /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
22447 #define USART_CR2_ABRMODE_0                 (0x1UL << USART_CR2_ABRMODE_Pos)        /*!< 0x00200000 */
22448 #define USART_CR2_ABRMODE_1                 (0x2UL << USART_CR2_ABRMODE_Pos)        /*!< 0x00400000 */
22449 #define USART_CR2_RTOEN_Pos                 (23U)
22450 #define USART_CR2_RTOEN_Msk                 (0x1UL << USART_CR2_RTOEN_Pos)          /*!< 0x00800000 */
22451 #define USART_CR2_RTOEN                     USART_CR2_RTOEN_Msk                     /*!< Receiver Time-Out enable */
22452 #define USART_CR2_ADD_Pos                   (24U)
22453 #define USART_CR2_ADD_Msk                   (0xFFUL << USART_CR2_ADD_Pos)           /*!< 0xFF000000 */
22454 #define USART_CR2_ADD                       USART_CR2_ADD_Msk                       /*!< Address of the USART node */
22455 
22456 /******************  Bit definition for USART_CR3 register  *******************/
22457 #define USART_CR3_EIE_Pos                   (0U)
22458 #define USART_CR3_EIE_Msk                   (0x1UL << USART_CR3_EIE_Pos)            /*!< 0x00000001 */
22459 #define USART_CR3_EIE                       USART_CR3_EIE_Msk                       /*!< Error Interrupt Enable */
22460 #define USART_CR3_IREN_Pos                  (1U)
22461 #define USART_CR3_IREN_Msk                  (0x1UL << USART_CR3_IREN_Pos)           /*!< 0x00000002 */
22462 #define USART_CR3_IREN                      USART_CR3_IREN_Msk                      /*!< IrDA mode Enable */
22463 #define USART_CR3_IRLP_Pos                  (2U)
22464 #define USART_CR3_IRLP_Msk                  (0x1UL << USART_CR3_IRLP_Pos)           /*!< 0x00000004 */
22465 #define USART_CR3_IRLP                      USART_CR3_IRLP_Msk                      /*!< IrDA Low-Power */
22466 #define USART_CR3_HDSEL_Pos                 (3U)
22467 #define USART_CR3_HDSEL_Msk                 (0x1UL << USART_CR3_HDSEL_Pos)          /*!< 0x00000008 */
22468 #define USART_CR3_HDSEL                     USART_CR3_HDSEL_Msk                     /*!< Half-Duplex Selection */
22469 #define USART_CR3_NACK_Pos                  (4U)
22470 #define USART_CR3_NACK_Msk                  (0x1UL << USART_CR3_NACK_Pos)           /*!< 0x00000010 */
22471 #define USART_CR3_NACK                      USART_CR3_NACK_Msk                      /*!< SmartCard NACK enable */
22472 #define USART_CR3_SCEN_Pos                  (5U)
22473 #define USART_CR3_SCEN_Msk                  (0x1UL << USART_CR3_SCEN_Pos)           /*!< 0x00000020 */
22474 #define USART_CR3_SCEN                      USART_CR3_SCEN_Msk                      /*!< SmartCard mode enable */
22475 #define USART_CR3_DMAR_Pos                  (6U)
22476 #define USART_CR3_DMAR_Msk                  (0x1UL << USART_CR3_DMAR_Pos)           /*!< 0x00000040 */
22477 #define USART_CR3_DMAR                      USART_CR3_DMAR_Msk                      /*!< DMA Enable Receiver */
22478 #define USART_CR3_DMAT_Pos                  (7U)
22479 #define USART_CR3_DMAT_Msk                  (0x1UL << USART_CR3_DMAT_Pos)           /*!< 0x00000080 */
22480 #define USART_CR3_DMAT                      USART_CR3_DMAT_Msk                      /*!< DMA Enable Transmitter */
22481 #define USART_CR3_RTSE_Pos                  (8U)
22482 #define USART_CR3_RTSE_Msk                  (0x1UL << USART_CR3_RTSE_Pos)           /*!< 0x00000100 */
22483 #define USART_CR3_RTSE                      USART_CR3_RTSE_Msk                      /*!< RTS Enable */
22484 #define USART_CR3_CTSE_Pos                  (9U)
22485 #define USART_CR3_CTSE_Msk                  (0x1UL << USART_CR3_CTSE_Pos)           /*!< 0x00000200 */
22486 #define USART_CR3_CTSE                      USART_CR3_CTSE_Msk                      /*!< CTS Enable */
22487 #define USART_CR3_CTSIE_Pos                 (10U)
22488 #define USART_CR3_CTSIE_Msk                 (0x1UL << USART_CR3_CTSIE_Pos)          /*!< 0x00000400 */
22489 #define USART_CR3_CTSIE                     USART_CR3_CTSIE_Msk                     /*!< CTS Interrupt Enable */
22490 #define USART_CR3_ONEBIT_Pos                (11U)
22491 #define USART_CR3_ONEBIT_Msk                (0x1UL << USART_CR3_ONEBIT_Pos)         /*!< 0x00000800 */
22492 #define USART_CR3_ONEBIT                    USART_CR3_ONEBIT_Msk                    /*!< One sample bit method enable */
22493 #define USART_CR3_OVRDIS_Pos                (12U)
22494 #define USART_CR3_OVRDIS_Msk                (0x1UL << USART_CR3_OVRDIS_Pos)         /*!< 0x00001000 */
22495 #define USART_CR3_OVRDIS                    USART_CR3_OVRDIS_Msk                    /*!< Overrun Disable */
22496 #define USART_CR3_DDRE_Pos                  (13U)
22497 #define USART_CR3_DDRE_Msk                  (0x1UL << USART_CR3_DDRE_Pos)           /*!< 0x00002000 */
22498 #define USART_CR3_DDRE                      USART_CR3_DDRE_Msk                      /*!< DMA Disable on Reception Error */
22499 #define USART_CR3_DEM_Pos                   (14U)
22500 #define USART_CR3_DEM_Msk                   (0x1UL << USART_CR3_DEM_Pos)            /*!< 0x00004000 */
22501 #define USART_CR3_DEM                       USART_CR3_DEM_Msk                       /*!< Driver Enable Mode */
22502 #define USART_CR3_DEP_Pos                   (15U)
22503 #define USART_CR3_DEP_Msk                   (0x1UL << USART_CR3_DEP_Pos)            /*!< 0x00008000 */
22504 #define USART_CR3_DEP                       USART_CR3_DEP_Msk                       /*!< Driver Enable Polarity Selection */
22505 #define USART_CR3_SCARCNT_Pos               (17U)
22506 #define USART_CR3_SCARCNT_Msk               (0x7UL << USART_CR3_SCARCNT_Pos)        /*!< 0x000E0000 */
22507 #define USART_CR3_SCARCNT                   USART_CR3_SCARCNT_Msk                   /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
22508 #define USART_CR3_SCARCNT_0                 (0x1UL << USART_CR3_SCARCNT_Pos)        /*!< 0x00020000 */
22509 #define USART_CR3_SCARCNT_1                 (0x2UL << USART_CR3_SCARCNT_Pos)        /*!< 0x00040000 */
22510 #define USART_CR3_SCARCNT_2                 (0x4UL << USART_CR3_SCARCNT_Pos)        /*!< 0x00080000 */
22511 #define USART_CR3_TXFTIE_Pos                (23U)
22512 #define USART_CR3_TXFTIE_Msk                (0x1UL << USART_CR3_TXFTIE_Pos)         /*!< 0x00800000 */
22513 #define USART_CR3_TXFTIE                    USART_CR3_TXFTIE_Msk                    /*!< TXFIFO threshold interrupt enable */
22514 #define USART_CR3_TCBGTIE_Pos               (24U)
22515 #define USART_CR3_TCBGTIE_Msk               (0x1UL << USART_CR3_TCBGTIE_Pos)        /*!< 0x01000000 */
22516 #define USART_CR3_TCBGTIE                   USART_CR3_TCBGTIE_Msk                   /*!< Transmission Complete Before Guard Time Interrupt Enable */
22517 #define USART_CR3_RXFTCFG_Pos               (25U)
22518 #define USART_CR3_RXFTCFG_Msk               (0x7UL << USART_CR3_RXFTCFG_Pos)        /*!< 0x0E000000 */
22519 #define USART_CR3_RXFTCFG                   USART_CR3_RXFTCFG_Msk                   /*!< RXFIFO FIFO threshold configuration */
22520 #define USART_CR3_RXFTCFG_0                 (0x1UL << USART_CR3_RXFTCFG_Pos)        /*!< 0x02000000 */
22521 #define USART_CR3_RXFTCFG_1                 (0x2UL << USART_CR3_RXFTCFG_Pos)        /*!< 0x04000000 */
22522 #define USART_CR3_RXFTCFG_2                 (0x4UL << USART_CR3_RXFTCFG_Pos)        /*!< 0x08000000 */
22523 #define USART_CR3_RXFTIE_Pos                (28U)
22524 #define USART_CR3_RXFTIE_Msk                (0x1UL << USART_CR3_RXFTIE_Pos)         /*!< 0x10000000 */
22525 #define USART_CR3_RXFTIE                    USART_CR3_RXFTIE_Msk                    /*!< RXFIFO threshold interrupt enable */
22526 #define USART_CR3_TXFTCFG_Pos               (29U)
22527 #define USART_CR3_TXFTCFG_Msk               (0x7UL << USART_CR3_TXFTCFG_Pos)        /*!< 0xE0000000 */
22528 #define USART_CR3_TXFTCFG                   USART_CR3_TXFTCFG_Msk                   /*!< TXFIFO threshold configuration */
22529 #define USART_CR3_TXFTCFG_0                 (0x1UL << USART_CR3_TXFTCFG_Pos)        /*!< 0x20000000 */
22530 #define USART_CR3_TXFTCFG_1                 (0x2UL << USART_CR3_TXFTCFG_Pos)        /*!< 0x40000000 */
22531 #define USART_CR3_TXFTCFG_2                 (0x4UL << USART_CR3_TXFTCFG_Pos)        /*!< 0x80000000 */
22532 
22533 /******************  Bit definition for USART_BRR register  *******************/
22534 #define USART_BRR_LPUART_Pos                (0U)
22535 #define USART_BRR_LPUART_Msk                (0xFFFFFUL << USART_BRR_LPUART_Pos)     /*!< 0x000FFFFF */
22536 #define USART_BRR_LPUART                    USART_BRR_LPUART_Msk                    /*!< LPUART Baud rate register [19:0] */
22537 #define USART_BRR_BRR                       ((uint16_t)0xFFFF)                      /*!< USART  Baud rate register [15:0] */
22538 
22539 /******************  Bit definition for USART_GTPR register  ******************/
22540 #define USART_GTPR_PSC_Pos                  (0U)
22541 #define USART_GTPR_PSC_Msk                  (0xFFUL << USART_GTPR_PSC_Pos)          /*!< 0x000000FF */
22542 #define USART_GTPR_PSC                      USART_GTPR_PSC_Msk                      /*!< PSC[7:0] bits (Prescaler value) */
22543 #define USART_GTPR_GT_Pos                   (8U)
22544 #define USART_GTPR_GT_Msk                   (0xFFUL << USART_GTPR_GT_Pos)           /*!< 0x0000FF00 */
22545 #define USART_GTPR_GT                       USART_GTPR_GT_Msk                       /*!< GT[7:0] bits (Guard time value) */
22546 
22547 /*******************  Bit definition for USART_RTOR register  *****************/
22548 #define USART_RTOR_RTO_Pos                  (0U)
22549 #define USART_RTOR_RTO_Msk                  (0xFFFFFFUL << USART_RTOR_RTO_Pos)      /*!< 0x00FFFFFF */
22550 #define USART_RTOR_RTO                      USART_RTOR_RTO_Msk                      /*!< Receiver Time Out Value */
22551 #define USART_RTOR_BLEN_Pos                 (24U)
22552 #define USART_RTOR_BLEN_Msk                 (0xFFUL << USART_RTOR_BLEN_Pos)         /*!< 0xFF000000 */
22553 #define USART_RTOR_BLEN                     USART_RTOR_BLEN_Msk                     /*!< Block Length */
22554 
22555 /*******************  Bit definition for USART_RQR register  ******************/
22556 #define USART_RQR_ABRRQ                     ((uint16_t)0x0001)                      /*!< Auto-Baud Rate Request */
22557 #define USART_RQR_SBKRQ                     ((uint16_t)0x0002)                      /*!< Send Break Request */
22558 #define USART_RQR_MMRQ                      ((uint16_t)0x0004)                      /*!< Mute Mode Request */
22559 #define USART_RQR_RXFRQ                     ((uint16_t)0x0008)                      /*!< Receive Data flush Request */
22560 #define USART_RQR_TXFRQ                     ((uint16_t)0x0010)                      /*!< Transmit data flush Request */
22561 
22562 /*******************  Bit definition for USART_ISR register  ******************/
22563 #define USART_ISR_PE_Pos                    (0U)
22564 #define USART_ISR_PE_Msk                    (0x1UL << USART_ISR_PE_Pos)             /*!< 0x00000001 */
22565 #define USART_ISR_PE                        USART_ISR_PE_Msk                        /*!< Parity Error */
22566 #define USART_ISR_FE_Pos                    (1U)
22567 #define USART_ISR_FE_Msk                    (0x1UL << USART_ISR_FE_Pos)             /*!< 0x00000002 */
22568 #define USART_ISR_FE                        USART_ISR_FE_Msk                        /*!< Framing Error */
22569 #define USART_ISR_NE_Pos                    (2U)
22570 #define USART_ISR_NE_Msk                    (0x1UL << USART_ISR_NE_Pos)             /*!< 0x00000004 */
22571 #define USART_ISR_NE                        USART_ISR_NE_Msk                        /*!< Noise detected Flag */
22572 #define USART_ISR_ORE_Pos                   (3U)
22573 #define USART_ISR_ORE_Msk                   (0x1UL << USART_ISR_ORE_Pos)            /*!< 0x00000008 */
22574 #define USART_ISR_ORE                       USART_ISR_ORE_Msk                       /*!< OverRun Error */
22575 #define USART_ISR_IDLE_Pos                  (4U)
22576 #define USART_ISR_IDLE_Msk                  (0x1UL << USART_ISR_IDLE_Pos)           /*!< 0x00000010 */
22577 #define USART_ISR_IDLE                      USART_ISR_IDLE_Msk                      /*!< IDLE line detected */
22578 #define USART_ISR_RXNE_Pos                  (5U)
22579 #define USART_ISR_RXNE_Msk                  (0x1UL << USART_ISR_RXNE_Pos)           /*!< 0x00000020 */
22580 #define USART_ISR_RXNE                      USART_ISR_RXNE_Msk                      /*!< Read Data Register Not Empty */
22581 #define USART_ISR_RXNE_RXFNE_Pos            USART_ISR_RXNE_Pos
22582 #define USART_ISR_RXNE_RXFNE_Msk            USART_ISR_RXNE_Msk                      /*!< 0x00000020 */
22583 #define USART_ISR_RXNE_RXFNE                USART_ISR_RXNE_Msk                      /*!< Read Data Register or RX FIFO Not Empty */
22584 #define USART_ISR_TC_Pos                    (6U)
22585 #define USART_ISR_TC_Msk                    (0x1UL << USART_ISR_TC_Pos)             /*!< 0x00000040 */
22586 #define USART_ISR_TC                        USART_ISR_TC_Msk                        /*!< Transmission Complete */
22587 #define USART_ISR_TXE_Pos                   (7U)
22588 #define USART_ISR_TXE_Msk                   (0x1UL << USART_ISR_TXE_Pos)            /*!< 0x00000080 */
22589 #define USART_ISR_TXE                       USART_ISR_TXE_Msk                       /*!< Transmit Data Register Empty */
22590 #define USART_ISR_TXE_TXFNF_Pos             USART_ISR_TXE_Pos
22591 #define USART_ISR_TXE_TXFNF_Msk             USART_ISR_TXE_Msk                       /*!< 0x00000080 */
22592 #define USART_ISR_TXE_TXFNF                 USART_ISR_TXE_Msk                       /*!< Transmit Data Register Empty or TX FIFO Not Full Flag */
22593 #define USART_ISR_LBDF_Pos                  (8U)
22594 #define USART_ISR_LBDF_Msk                  (0x1UL << USART_ISR_LBDF_Pos)           /*!< 0x00000100 */
22595 #define USART_ISR_LBDF                      USART_ISR_LBDF_Msk                      /*!< LIN Break Detection Flag */
22596 #define USART_ISR_CTSIF_Pos                 (9U)
22597 #define USART_ISR_CTSIF_Msk                 (0x1UL << USART_ISR_CTSIF_Pos)          /*!< 0x00000200 */
22598 #define USART_ISR_CTSIF                     USART_ISR_CTSIF_Msk                     /*!< CTS interrupt flag */
22599 #define USART_ISR_CTS_Pos                   (10U)
22600 #define USART_ISR_CTS_Msk                   (0x1UL << USART_ISR_CTS_Pos)            /*!< 0x00000400 */
22601 #define USART_ISR_CTS                       USART_ISR_CTS_Msk                       /*!< CTS flag */
22602 #define USART_ISR_RTOF_Pos                  (11U)
22603 #define USART_ISR_RTOF_Msk                  (0x1UL << USART_ISR_RTOF_Pos)           /*!< 0x00000800 */
22604 #define USART_ISR_RTOF                      USART_ISR_RTOF_Msk                      /*!< Receiver Time Out */
22605 #define USART_ISR_EOBF_Pos                  (12U)
22606 #define USART_ISR_EOBF_Msk                  (0x1UL << USART_ISR_EOBF_Pos)           /*!< 0x00001000 */
22607 #define USART_ISR_EOBF                      USART_ISR_EOBF_Msk                      /*!< End Of Block Flag */
22608 #define USART_ISR_UDR_Pos                   (13U)
22609 #define USART_ISR_UDR_Msk                   (0x1UL << USART_ISR_UDR_Pos)            /*!< 0x00002000 */
22610 #define USART_ISR_UDR                       USART_ISR_UDR_Msk                       /*!< SPI slave underrun error flag */
22611 #define USART_ISR_ABRE_Pos                  (14U)
22612 #define USART_ISR_ABRE_Msk                  (0x1UL << USART_ISR_ABRE_Pos)           /*!< 0x00004000 */
22613 #define USART_ISR_ABRE                      USART_ISR_ABRE_Msk                      /*!< Auto-Baud Rate Error */
22614 #define USART_ISR_ABRF_Pos                  (15U)
22615 #define USART_ISR_ABRF_Msk                  (0x1UL << USART_ISR_ABRF_Pos)           /*!< 0x00008000 */
22616 #define USART_ISR_ABRF                      USART_ISR_ABRF_Msk                      /*!< Auto-Baud Rate Flag */
22617 #define USART_ISR_BUSY_Pos                  (16U)
22618 #define USART_ISR_BUSY_Msk                  (0x1UL << USART_ISR_BUSY_Pos)           /*!< 0x00010000 */
22619 #define USART_ISR_BUSY                      USART_ISR_BUSY_Msk                      /*!< Busy Flag */
22620 #define USART_ISR_CMF_Pos                   (17U)
22621 #define USART_ISR_CMF_Msk                   (0x1UL << USART_ISR_CMF_Pos)            /*!< 0x00020000 */
22622 #define USART_ISR_CMF                       USART_ISR_CMF_Msk                       /*!< Character Match Flag */
22623 #define USART_ISR_SBKF_Pos                  (18U)
22624 #define USART_ISR_SBKF_Msk                  (0x1UL << USART_ISR_SBKF_Pos)           /*!< 0x00040000 */
22625 #define USART_ISR_SBKF                      USART_ISR_SBKF_Msk                      /*!< Send Break Flag */
22626 #define USART_ISR_RWU_Pos                   (19U)
22627 #define USART_ISR_RWU_Msk                   (0x1UL << USART_ISR_RWU_Pos)            /*!< 0x00080000 */
22628 #define USART_ISR_RWU                       USART_ISR_RWU_Msk                       /*!< Receive Wake Up from mute mode Flag */
22629 #define USART_ISR_TEACK_Pos                 (21U)
22630 #define USART_ISR_TEACK_Msk                 (0x1UL << USART_ISR_TEACK_Pos)          /*!< 0x00200000 */
22631 #define USART_ISR_TEACK                     USART_ISR_TEACK_Msk                     /*!< Transmit Enable Acknowledge Flag */
22632 #define USART_ISR_REACK_Pos                 (22U)
22633 #define USART_ISR_REACK_Msk                 (0x1UL << USART_ISR_REACK_Pos)          /*!< 0x00400000 */
22634 #define USART_ISR_REACK                     USART_ISR_REACK_Msk                     /*!< Receive Enable Acknowledge Flag */
22635 #define USART_ISR_TXFE_Pos                  (23U)
22636 #define USART_ISR_TXFE_Msk                  (0x1UL << USART_ISR_TXFE_Pos)           /*!< 0x00800000 */
22637 #define USART_ISR_TXFE                      USART_ISR_TXFE_Msk                      /*!< TXFIFO Empty */
22638 #define USART_ISR_RXFF_Pos                  (24U)
22639 #define USART_ISR_RXFF_Msk                  (0x1UL << USART_ISR_RXFF_Pos)           /*!< 0x01000000 */
22640 #define USART_ISR_RXFF                      USART_ISR_RXFF_Msk                      /*!< RXFIFO Full */
22641 #define USART_ISR_TCBGT_Pos                 (25U)
22642 #define USART_ISR_TCBGT_Msk                 (0x1UL << USART_ISR_TCBGT_Pos)          /*!< 0x02000000 */
22643 #define USART_ISR_TCBGT                     USART_ISR_TCBGT_Msk                     /*!< Transmission Complete Before Guard Time completion */
22644 #define USART_ISR_RXFT_Pos                  (26U)
22645 #define USART_ISR_RXFT_Msk                  (0x1UL << USART_ISR_RXFT_Pos)           /*!< 0x04000000 */
22646 #define USART_ISR_RXFT                      USART_ISR_RXFT_Msk                      /*!< RXFIFO threshold flag */
22647 #define USART_ISR_TXFT_Pos                  (27U)
22648 #define USART_ISR_TXFT_Msk                  (0x1UL << USART_ISR_TXFT_Pos)           /*!< 0x08000000 */
22649 #define USART_ISR_TXFT                      USART_ISR_TXFT_Msk                      /*!< TXFIFO threshold flag */
22650 
22651 /*******************  Bit definition for USART_ICR register  ******************/
22652 #define USART_ICR_PECF_Pos                  (0U)
22653 #define USART_ICR_PECF_Msk                  (0x1UL << USART_ICR_PECF_Pos)           /*!< 0x00000001 */
22654 #define USART_ICR_PECF                      USART_ICR_PECF_Msk                      /*!< Parity Error Clear Flag */
22655 #define USART_ICR_FECF_Pos                  (1U)
22656 #define USART_ICR_FECF_Msk                  (0x1UL << USART_ICR_FECF_Pos)           /*!< 0x00000002 */
22657 #define USART_ICR_FECF                      USART_ICR_FECF_Msk                      /*!< Framing Error Clear Flag */
22658 #define USART_ICR_NECF_Pos                  (2U)
22659 #define USART_ICR_NECF_Msk                  (0x1UL << USART_ICR_NECF_Pos)           /*!< 0x00000004 */
22660 #define USART_ICR_NECF                      USART_ICR_NECF_Msk                      /*!< Noise detected Clear Flag */
22661 #define USART_ICR_ORECF_Pos                 (3U)
22662 #define USART_ICR_ORECF_Msk                 (0x1UL << USART_ICR_ORECF_Pos)          /*!< 0x00000008 */
22663 #define USART_ICR_ORECF                     USART_ICR_ORECF_Msk                     /*!< OverRun Error Clear Flag */
22664 #define USART_ICR_IDLECF_Pos                (4U)
22665 #define USART_ICR_IDLECF_Msk                (0x1UL << USART_ICR_IDLECF_Pos)         /*!< 0x00000010 */
22666 #define USART_ICR_IDLECF                    USART_ICR_IDLECF_Msk                    /*!< IDLE line detected Clear Flag */
22667 #define USART_ICR_TXFECF_Pos                (5U)
22668 #define USART_ICR_TXFECF_Msk                (0x1UL << USART_ICR_TXFECF_Pos)         /*!< 0x00000020 */
22669 #define USART_ICR_TXFECF                    USART_ICR_TXFECF_Msk                    /*!< TXFIFO empty Clear flag */
22670 #define USART_ICR_TCCF_Pos                  (6U)
22671 #define USART_ICR_TCCF_Msk                  (0x1UL << USART_ICR_TCCF_Pos)           /*!< 0x00000040 */
22672 #define USART_ICR_TCCF                      USART_ICR_TCCF_Msk                      /*!< Transmission Complete Clear Flag */
22673 #define USART_ICR_TCBGTCF_Pos               (7U)
22674 #define USART_ICR_TCBGTCF_Msk               (0x1UL << USART_ICR_TCBGTCF_Pos)        /*!< 0x00000080 */
22675 #define USART_ICR_TCBGTCF                   USART_ICR_TCBGTCF_Msk                   /*!< Transmission Complete Before Guard Time Clear Flag */
22676 #define USART_ICR_LBDCF_Pos                 (8U)
22677 #define USART_ICR_LBDCF_Msk                 (0x1UL << USART_ICR_LBDCF_Pos)          /*!< 0x00000100 */
22678 #define USART_ICR_LBDCF                     USART_ICR_LBDCF_Msk                     /*!< LIN Break Detection Clear Flag */
22679 #define USART_ICR_CTSCF_Pos                 (9U)
22680 #define USART_ICR_CTSCF_Msk                 (0x1UL << USART_ICR_CTSCF_Pos)          /*!< 0x00000200 */
22681 #define USART_ICR_CTSCF                     USART_ICR_CTSCF_Msk                     /*!< CTS Interrupt Clear Flag */
22682 #define USART_ICR_RTOCF_Pos                 (11U)
22683 #define USART_ICR_RTOCF_Msk                 (0x1UL << USART_ICR_RTOCF_Pos)          /*!< 0x00000800 */
22684 #define USART_ICR_RTOCF                     USART_ICR_RTOCF_Msk                     /*!< Receiver Time Out Clear Flag */
22685 #define USART_ICR_EOBCF_Pos                 (12U)
22686 #define USART_ICR_EOBCF_Msk                 (0x1UL << USART_ICR_EOBCF_Pos)          /*!< 0x00001000 */
22687 #define USART_ICR_EOBCF                     USART_ICR_EOBCF_Msk                     /*!< End Of Block Clear Flag */
22688 #define USART_ICR_UDRCF_Pos                 (13U)
22689 #define USART_ICR_UDRCF_Msk                 (0x1UL << USART_ICR_UDRCF_Pos)          /*!< 0x00002000 */
22690 #define USART_ICR_UDRCF                     USART_ICR_UDRCF_Msk                     /*!< SPI Slave Underrun Clear Flag */
22691 #define USART_ICR_CMCF_Pos                  (17U)
22692 #define USART_ICR_CMCF_Msk                  (0x1UL << USART_ICR_CMCF_Pos)           /*!< 0x00020000 */
22693 #define USART_ICR_CMCF                      USART_ICR_CMCF_Msk                      /*!< Character Match Clear Flag */
22694 
22695 /*******************  Bit definition for USART_RDR register  ******************/
22696 #define USART_RDR_RDR                       ((uint16_t)0x01FF)                      /*!< RDR[8:0] bits (Receive Data value) */
22697 
22698 /*******************  Bit definition for USART_TDR register  ******************/
22699 #define USART_TDR_TDR                       ((uint16_t)0x01FF)                      /*!< TDR[8:0] bits (Transmit Data value) */
22700 
22701 /*******************  Bit definition for USART_PRESC register  ****************/
22702 #define USART_PRESC_PRESCALER_Pos           (0U)
22703 #define USART_PRESC_PRESCALER_Msk           (0xFUL << USART_PRESC_PRESCALER_Pos)    /*!< 0x0000000F */
22704 #define USART_PRESC_PRESCALER               USART_PRESC_PRESCALER_Msk               /*!< PRESCALER[3:0] bits (Clock prescaler) */
22705 #define USART_PRESC_PRESCALER_0             (0x1UL << USART_PRESC_PRESCALER_Pos)    /*!< 0x00000001 */
22706 #define USART_PRESC_PRESCALER_1             (0x2UL << USART_PRESC_PRESCALER_Pos)    /*!< 0x00000002 */
22707 #define USART_PRESC_PRESCALER_2             (0x4UL << USART_PRESC_PRESCALER_Pos)    /*!< 0x00000004 */
22708 #define USART_PRESC_PRESCALER_3             (0x8UL << USART_PRESC_PRESCALER_Pos)    /*!< 0x00000008 */
22709 
22710 /*******************  Bit definition for USART_AUTOCR register  ******************/
22711 #define USART_AUTOCR_TDN_Pos                (0U)
22712 #define USART_AUTOCR_TDN_Msk                (0xFFFFUL << USART_AUTOCR_TDN_Pos)      /*!< 0x0000FFFF */
22713 #define USART_AUTOCR_TDN                    USART_AUTOCR_TDN_Msk                    /*!< TDN[15:0] bits (Transmission Data Number) */
22714 #define USART_AUTOCR_TRIGPOL_Pos            (16U)
22715 #define USART_AUTOCR_TRIGPOL_Msk            (0x1UL << USART_AUTOCR_TRIGPOL_Pos)     /*!< 0x00010000 */
22716 #define USART_AUTOCR_TRIGPOL                USART_AUTOCR_TRIGPOL_Msk                /*!< Trigger Polarity Bit (Rising/Falling edge) */
22717 #define USART_AUTOCR_TRIGEN_Pos             (17U)
22718 #define USART_AUTOCR_TRIGEN_Msk             (0x1UL << USART_AUTOCR_TRIGEN_Pos)      /*!< 0x00020000 */
22719 #define USART_AUTOCR_TRIGEN                 USART_AUTOCR_TRIGEN_Msk                 /*!< Trigger Enable Bit */
22720 #define USART_AUTOCR_IDLEDIS_Pos            (18U)
22721 #define USART_AUTOCR_IDLEDIS_Msk            (0x1UL << USART_AUTOCR_IDLEDIS_Pos)     /*!< 0x00040000 */
22722 #define USART_AUTOCR_IDLEDIS                USART_AUTOCR_IDLEDIS_Msk                /*!< Idle Frame Transmission Disable Bit*/
22723 #define USART_AUTOCR_TRIGSEL_Pos            (19U)
22724 #define USART_AUTOCR_TRIGSEL_Msk            (0xFUL << USART_AUTOCR_TRIGSEL_Pos)     /*!< 0x00780000 */
22725 #define USART_AUTOCR_TRIGSEL                USART_AUTOCR_TRIGSEL_Msk                /*!< Trigger Selection Bits */
22726 #define USART_AUTOCR_TRIGSEL_0              (0x0001UL << USART_AUTOCR_TRIGSEL_Pos)  /*!< 0x00000001 */
22727 #define USART_AUTOCR_TRIGSEL_1              (0x0002UL << USART_AUTOCR_TRIGSEL_Pos)  /*!< 0x00000002 */
22728 #define USART_AUTOCR_TRIGSEL_2              (0x0004UL << USART_AUTOCR_TRIGSEL_Pos)  /*!< 0x00000004 */
22729 #define USART_AUTOCR_TRIGSEL_3              (0x0008UL << USART_AUTOCR_TRIGSEL_Pos)  /*!< 0x00000008 */
22730 
22731 /*******************  Bit definition for USART_HWCFGR2 register  **************/
22732 #define USART_HWCFGR2_CFG1_Pos              (0U)
22733 #define USART_HWCFGR2_CFG1_Msk              (0xFUL << USART_HWCFGR2_CFG1_Pos)       /*!< 0x0000000F */
22734 #define USART_HWCFGR2_CFG1                  USART_HWCFGR2_CFG1_Msk                  /*!< CFG1[3:0] bits (USART hardware configuration 1) */
22735 #define USART_HWCFGR2_CFG2_Pos              (4U)
22736 #define USART_HWCFGR2_CFG2_Msk              (0xFUL << USART_HWCFGR2_CFG2_Pos)       /*!< 0x000000F0 */
22737 #define USART_HWCFGR2_CFG2                  USART_HWCFGR2_CFG2_Msk                  /*!< CFG2[7:4] bits (USART hardware configuration 2) */
22738 
22739 /*******************  Bit definition for USART_HWCFGR1 register  **************/
22740 #define USART_HWCFGR1_CFG1_Pos              (0U)
22741 #define USART_HWCFGR1_CFG1_Msk              (0xFUL << USART_HWCFGR1_CFG1_Pos)       /*!< 0x0000000F */
22742 #define USART_HWCFGR1_CFG1                  USART_HWCFGR1_CFG1_Msk                  /*!< CFG1[3:0] bits (USART hardware configuration 1) */
22743 #define USART_HWCFGR1_CFG2_Pos              (4U)
22744 #define USART_HWCFGR1_CFG2_Msk              (0xFUL << USART_HWCFGR1_CFG2_Pos)       /*!< 0x000000F0 */
22745 #define USART_HWCFGR1_CFG2                  USART_HWCFGR1_CFG2_Msk                  /*!< CFG2[7:4] bits (USART hardware configuration 2) */
22746 #define USART_HWCFGR1_CFG3_Pos              (8U)
22747 #define USART_HWCFGR1_CFG3_Msk              (0xFUL << USART_HWCFGR1_CFG3_Pos)       /*!< 0x00000F00 */
22748 #define USART_HWCFGR1_CFG3                  USART_HWCFGR1_CFG3_Msk                  /*!< CFG3[11:8] bits (USART hardware configuration 3) */
22749 #define USART_HWCFGR1_CFG4_Pos              (12U)
22750 #define USART_HWCFGR1_CFG4_Msk              (0xFUL << USART_HWCFGR1_CFG4_Pos)       /*!< 0x0000F000 */
22751 #define USART_HWCFGR1_CFG4                  USART_HWCFGR1_CFG4_Msk                  /*!< CFG4[15:12] bits (USART hardware configuration 4) */
22752 #define USART_HWCFGR1_CFG5_Pos              (16U)
22753 #define USART_HWCFGR1_CFG5_Msk              (0xFUL << USART_HWCFGR1_CFG5_Pos)       /*!< 0x000F0000 */
22754 #define USART_HWCFGR1_CFG5                  USART_HWCFGR1_CFG5_Msk                  /*!< CFG5[19:16] bits (USART hardware configuration 5) */
22755 #define USART_HWCFGR1_CFG6_Pos              (20U)
22756 #define USART_HWCFGR1_CFG6_Msk              (0xFUL << USART_HWCFGR1_CFG6_Pos)       /*!< 0x00F00000 */
22757 #define USART_HWCFGR1_CFG6                  USART_HWCFGR1_CFG6_Msk                  /*!< CFG6[23:20] bits (USART hardware configuration 6) */
22758 #define USART_HWCFGR1_CFG7_Pos              (24U)
22759 #define USART_HWCFGR1_CFG7_Msk              (0xFUL << USART_HWCFGR1_CFG7_Pos)       /*!< 0x0F000000 */
22760 #define USART_HWCFGR1_CFG7                  USART_HWCFGR1_CFG7_Msk                  /*!< CFG7[27:24] bits (USART hardware configuration 7) */
22761 #define USART_HWCFGR1_CFG8_Pos              (28U)
22762 #define USART_HWCFGR1_CFG8_Msk              (0xFUL << USART_HWCFGR1_CFG8_Pos)       /*!< 0xF0000000 */
22763 #define USART_HWCFGR1_CFG8                  USART_HWCFGR1_CFG8_Msk                  /*!< CFG8[31:28] bits (USART hardware configuration 8) */
22764 
22765 /*******************  Bit definition for USART_VERR register  *****************/
22766 #define USART_VERR_MINREV_Pos               (0U)
22767 #define USART_VERR_MINREV_Msk               (0xFUL << USART_VERR_MINREV_Pos)        /*!< 0x0000000F */
22768 #define USART_VERR_MINREV                   USART_VERR_MINREV_Msk                   /*!< MAJREV[3:0] bits (Minor revision) */
22769 #define USART_VERR_MAJREV_Pos               (4U)
22770 #define USART_VERR_MAJREV_Msk               (0xFUL << USART_VERR_MAJREV_Pos)        /*!< 0x000000F0 */
22771 #define USART_VERR_MAJREV                   USART_VERR_MAJREV_Msk                   /*!< MINREV[3:0] bits (Major revision) */
22772 
22773 /*******************  Bit definition for USART_IPIDR register  ****************/
22774 #define USART_IPIDR_ID_Pos                  (0U)
22775 #define USART_IPIDR_ID_Msk                  (0xFFFFFFFFUL << USART_IPIDR_ID_Pos)    /*!< 0xFFFFFFFF */
22776 #define USART_IPIDR_ID                      USART_IPIDR_ID_Msk                      /*!< ID[31:0] bits (Peripheral identifier) */
22777 
22778 /*******************  Bit definition for USART_SIDR register  ****************/
22779 #define USART_SIDR_ID_Pos                   (0U)
22780 #define USART_SIDR_ID_Msk                   (0xFFFFFFFFUL << USART_SIDR_ID_Pos)     /*!< 0xFFFFFFFF */
22781 #define USART_SIDR_ID                       USART_SIDR_ID_Msk                       /*!< SID[31:0] bits (Size identification) */
22782 
22783 /******************************************************************************/
22784 /*                                                                            */
22785 /*                      Inter-integrated Circuit Interface (I2C)              */
22786 /*                                                                            */
22787 /******************************************************************************/
22788 /*******************  Bit definition for I2C_CR1 register  *******************/
22789 #define I2C_CR1_PE_Pos                      (0U)
22790 #define I2C_CR1_PE_Msk                      (0x1UL << I2C_CR1_PE_Pos)               /*!< 0x00000001 */
22791 #define I2C_CR1_PE                          I2C_CR1_PE_Msk                          /*!< Peripheral enable */
22792 #define I2C_CR1_TXIE_Pos                    (1U)
22793 #define I2C_CR1_TXIE_Msk                    (0x1UL << I2C_CR1_TXIE_Pos)             /*!< 0x00000002 */
22794 #define I2C_CR1_TXIE                        I2C_CR1_TXIE_Msk                        /*!< TX interrupt enable */
22795 #define I2C_CR1_RXIE_Pos                    (2U)
22796 #define I2C_CR1_RXIE_Msk                    (0x1UL << I2C_CR1_RXIE_Pos)             /*!< 0x00000004 */
22797 #define I2C_CR1_RXIE                        I2C_CR1_RXIE_Msk                        /*!< RX interrupt enable */
22798 #define I2C_CR1_ADDRIE_Pos                  (3U)
22799 #define I2C_CR1_ADDRIE_Msk                  (0x1UL << I2C_CR1_ADDRIE_Pos)           /*!< 0x00000008 */
22800 #define I2C_CR1_ADDRIE                      I2C_CR1_ADDRIE_Msk                      /*!< Address match interrupt enable */
22801 #define I2C_CR1_NACKIE_Pos                  (4U)
22802 #define I2C_CR1_NACKIE_Msk                  (0x1UL << I2C_CR1_NACKIE_Pos)           /*!< 0x00000010 */
22803 #define I2C_CR1_NACKIE                      I2C_CR1_NACKIE_Msk                      /*!< NACK received interrupt enable */
22804 #define I2C_CR1_STOPIE_Pos                  (5U)
22805 #define I2C_CR1_STOPIE_Msk                  (0x1UL << I2C_CR1_STOPIE_Pos)           /*!< 0x00000020 */
22806 #define I2C_CR1_STOPIE                      I2C_CR1_STOPIE_Msk                      /*!< STOP detection interrupt enable */
22807 #define I2C_CR1_TCIE_Pos                    (6U)
22808 #define I2C_CR1_TCIE_Msk                    (0x1UL << I2C_CR1_TCIE_Pos)             /*!< 0x00000040 */
22809 #define I2C_CR1_TCIE                        I2C_CR1_TCIE_Msk                        /*!< Transfer complete interrupt enable */
22810 #define I2C_CR1_ERRIE_Pos                   (7U)
22811 #define I2C_CR1_ERRIE_Msk                   (0x1UL << I2C_CR1_ERRIE_Pos)            /*!< 0x00000080 */
22812 #define I2C_CR1_ERRIE                       I2C_CR1_ERRIE_Msk                       /*!< Errors interrupt enable */
22813 #define I2C_CR1_DNF_Pos                     (8U)
22814 #define I2C_CR1_DNF_Msk                     (0xFUL << I2C_CR1_DNF_Pos)              /*!< 0x00000F00 */
22815 #define I2C_CR1_DNF                         I2C_CR1_DNF_Msk                         /*!< Digital noise filter */
22816 #define I2C_CR1_ANFOFF_Pos                  (12U)
22817 #define I2C_CR1_ANFOFF_Msk                  (0x1UL << I2C_CR1_ANFOFF_Pos)           /*!< 0x00001000 */
22818 #define I2C_CR1_ANFOFF                      I2C_CR1_ANFOFF_Msk                      /*!< Analog noise filter OFF */
22819 #define I2C_CR1_SWRST_Pos                   (13U)
22820 #define I2C_CR1_SWRST_Msk                   (0x1UL << I2C_CR1_SWRST_Pos)            /*!< 0x00002000 */
22821 #define I2C_CR1_SWRST                       I2C_CR1_SWRST_Msk                       /*!< Software reset */
22822 #define I2C_CR1_TXDMAEN_Pos                 (14U)
22823 #define I2C_CR1_TXDMAEN_Msk                 (0x1UL << I2C_CR1_TXDMAEN_Pos)          /*!< 0x00004000 */
22824 #define I2C_CR1_TXDMAEN                     I2C_CR1_TXDMAEN_Msk                     /*!< DMA transmission requests enable */
22825 #define I2C_CR1_RXDMAEN_Pos                 (15U)
22826 #define I2C_CR1_RXDMAEN_Msk                 (0x1UL << I2C_CR1_RXDMAEN_Pos)          /*!< 0x00008000 */
22827 #define I2C_CR1_RXDMAEN                     I2C_CR1_RXDMAEN_Msk                     /*!< DMA reception requests enable */
22828 #define I2C_CR1_SBC_Pos                     (16U)
22829 #define I2C_CR1_SBC_Msk                     (0x1UL << I2C_CR1_SBC_Pos)              /*!< 0x00010000 */
22830 #define I2C_CR1_SBC                         I2C_CR1_SBC_Msk                         /*!< Slave byte control */
22831 #define I2C_CR1_NOSTRETCH_Pos               (17U)
22832 #define I2C_CR1_NOSTRETCH_Msk               (0x1UL << I2C_CR1_NOSTRETCH_Pos)        /*!< 0x00020000 */
22833 #define I2C_CR1_NOSTRETCH                   I2C_CR1_NOSTRETCH_Msk                   /*!< Clock stretching disable */
22834 #define I2C_CR1_WUPEN_Pos                   (18U)
22835 #define I2C_CR1_WUPEN_Msk                   (0x1UL << I2C_CR1_WUPEN_Pos)            /*!< 0x00040000 */
22836 #define I2C_CR1_WUPEN                       I2C_CR1_WUPEN_Msk                       /*!< Wakeup from STOP enable */
22837 #define I2C_CR1_GCEN_Pos                    (19U)
22838 #define I2C_CR1_GCEN_Msk                    (0x1UL << I2C_CR1_GCEN_Pos)             /*!< 0x00080000 */
22839 #define I2C_CR1_GCEN                        I2C_CR1_GCEN_Msk                        /*!< General call enable */
22840 #define I2C_CR1_SMBHEN_Pos                  (20U)
22841 #define I2C_CR1_SMBHEN_Msk                  (0x1UL << I2C_CR1_SMBHEN_Pos)           /*!< 0x00100000 */
22842 #define I2C_CR1_SMBHEN                      I2C_CR1_SMBHEN_Msk                      /*!< SMBus host address enable */
22843 #define I2C_CR1_SMBDEN_Pos                  (21U)
22844 #define I2C_CR1_SMBDEN_Msk                  (0x1UL << I2C_CR1_SMBDEN_Pos)           /*!< 0x00200000 */
22845 #define I2C_CR1_SMBDEN                      I2C_CR1_SMBDEN_Msk                      /*!< SMBus device default address enable */
22846 #define I2C_CR1_ALERTEN_Pos                 (22U)
22847 #define I2C_CR1_ALERTEN_Msk                 (0x1UL << I2C_CR1_ALERTEN_Pos)          /*!< 0x00400000 */
22848 #define I2C_CR1_ALERTEN                     I2C_CR1_ALERTEN_Msk                     /*!< SMBus alert enable */
22849 #define I2C_CR1_PECEN_Pos                   (23U)
22850 #define I2C_CR1_PECEN_Msk                   (0x1UL << I2C_CR1_PECEN_Pos)            /*!< 0x00800000 */
22851 #define I2C_CR1_PECEN                       I2C_CR1_PECEN_Msk                       /*!< PEC enable */
22852 #define I2C_CR1_FMP_Pos                     (24U)
22853 #define I2C_CR1_FMP_Msk                     (0x1UL << I2C_CR1_FMP_Pos)              /*!< 0x01000000 */
22854 #define I2C_CR1_FMP                         I2C_CR1_FMP_Msk                         /*!< FMP enable */
22855 #define I2C_CR1_ADDRACLR_Pos                (30U)
22856 #define I2C_CR1_ADDRACLR_Msk                (0x1UL << I2C_CR1_ADDRACLR_Pos)         /*!< 0x40000000 */
22857 #define I2C_CR1_ADDRACLR                    I2C_CR1_ADDRACLR_Msk                    /*!< ADDRACLR enable */
22858 #define I2C_CR1_STOPFACLR_Pos               (31U)
22859 #define I2C_CR1_STOPFACLR_Msk               (0x1UL << I2C_CR1_STOPFACLR_Pos)        /*!< 0x80000000 */
22860 #define I2C_CR1_STOPFACLR                   I2C_CR1_STOPFACLR_Msk                   /*!< STOPFACLR enable */
22861 
22862 /******************  Bit definition for I2C_CR2 register  ********************/
22863 #define I2C_CR2_SADD_Pos                    (0U)
22864 #define I2C_CR2_SADD_Msk                    (0x3FFUL << I2C_CR2_SADD_Pos)           /*!< 0x000003FF */
22865 #define I2C_CR2_SADD                        I2C_CR2_SADD_Msk                        /*!< Slave address (master mode) */
22866 #define I2C_CR2_RD_WRN_Pos                  (10U)
22867 #define I2C_CR2_RD_WRN_Msk                  (0x1UL << I2C_CR2_RD_WRN_Pos)           /*!< 0x00000400 */
22868 #define I2C_CR2_RD_WRN                      I2C_CR2_RD_WRN_Msk                      /*!< Transfer direction (master mode) */
22869 #define I2C_CR2_ADD10_Pos                   (11U)
22870 #define I2C_CR2_ADD10_Msk                   (0x1UL << I2C_CR2_ADD10_Pos)            /*!< 0x00000800 */
22871 #define I2C_CR2_ADD10                       I2C_CR2_ADD10_Msk                       /*!< 10-bit addressing mode (master mode) */
22872 #define I2C_CR2_HEAD10R_Pos                 (12U)
22873 #define I2C_CR2_HEAD10R_Msk                 (0x1UL << I2C_CR2_HEAD10R_Pos)          /*!< 0x00001000 */
22874 #define I2C_CR2_HEAD10R                     I2C_CR2_HEAD10R_Msk                     /*!< 10-bit address header only read direction (master mode) */
22875 #define I2C_CR2_START_Pos                   (13U)
22876 #define I2C_CR2_START_Msk                   (0x1UL << I2C_CR2_START_Pos)            /*!< 0x00002000 */
22877 #define I2C_CR2_START                       I2C_CR2_START_Msk                       /*!< START generation */
22878 #define I2C_CR2_STOP_Pos                    (14U)
22879 #define I2C_CR2_STOP_Msk                    (0x1UL << I2C_CR2_STOP_Pos)             /*!< 0x00004000 */
22880 #define I2C_CR2_STOP                        I2C_CR2_STOP_Msk                        /*!< STOP generation (master mode) */
22881 #define I2C_CR2_NACK_Pos                    (15U)
22882 #define I2C_CR2_NACK_Msk                    (0x1UL << I2C_CR2_NACK_Pos)             /*!< 0x00008000 */
22883 #define I2C_CR2_NACK                        I2C_CR2_NACK_Msk                        /*!< NACK generation (slave mode) */
22884 #define I2C_CR2_NBYTES_Pos                  (16U)
22885 #define I2C_CR2_NBYTES_Msk                  (0xFFUL << I2C_CR2_NBYTES_Pos)          /*!< 0x00FF0000 */
22886 #define I2C_CR2_NBYTES                      I2C_CR2_NBYTES_Msk                      /*!< Number of bytes */
22887 #define I2C_CR2_RELOAD_Pos                  (24U)
22888 #define I2C_CR2_RELOAD_Msk                  (0x1UL << I2C_CR2_RELOAD_Pos)           /*!< 0x01000000 */
22889 #define I2C_CR2_RELOAD                      I2C_CR2_RELOAD_Msk                      /*!< NBYTES reload mode */
22890 #define I2C_CR2_AUTOEND_Pos                 (25U)
22891 #define I2C_CR2_AUTOEND_Msk                 (0x1UL << I2C_CR2_AUTOEND_Pos)          /*!< 0x02000000 */
22892 #define I2C_CR2_AUTOEND                     I2C_CR2_AUTOEND_Msk                     /*!< Automatic end mode (master mode) */
22893 #define I2C_CR2_PECBYTE_Pos                 (26U)
22894 #define I2C_CR2_PECBYTE_Msk                 (0x1UL << I2C_CR2_PECBYTE_Pos)          /*!< 0x04000000 */
22895 #define I2C_CR2_PECBYTE                     I2C_CR2_PECBYTE_Msk                     /*!< Packet error checking byte */
22896 
22897 /*******************  Bit definition for I2C_OAR1 register  ******************/
22898 #define I2C_OAR1_OA1_Pos                    (0U)
22899 #define I2C_OAR1_OA1_Msk                    (0x3FFUL << I2C_OAR1_OA1_Pos)           /*!< 0x000003FF */
22900 #define I2C_OAR1_OA1                        I2C_OAR1_OA1_Msk                        /*!< Interface own address 1 */
22901 #define I2C_OAR1_OA1MODE_Pos                (10U)
22902 #define I2C_OAR1_OA1MODE_Msk                (0x1UL << I2C_OAR1_OA1MODE_Pos)         /*!< 0x00000400 */
22903 #define I2C_OAR1_OA1MODE                    I2C_OAR1_OA1MODE_Msk                    /*!< Own address 1 10-bit mode */
22904 #define I2C_OAR1_OA1EN_Pos                  (15U)
22905 #define I2C_OAR1_OA1EN_Msk                  (0x1UL << I2C_OAR1_OA1EN_Pos)           /*!< 0x00008000 */
22906 #define I2C_OAR1_OA1EN                      I2C_OAR1_OA1EN_Msk                      /*!< Own address 1 enable */
22907 
22908 /*******************  Bit definition for I2C_OAR2 register  ******************/
22909 #define I2C_OAR2_OA2_Pos                    (1U)
22910 #define I2C_OAR2_OA2_Msk                    (0x7FUL << I2C_OAR2_OA2_Pos)            /*!< 0x000000FE */
22911 #define I2C_OAR2_OA2                        I2C_OAR2_OA2_Msk                        /*!< Interface own address 2 */
22912 #define I2C_OAR2_OA2MSK_Pos                 (8U)
22913 #define I2C_OAR2_OA2MSK_Msk                 (0x7UL << I2C_OAR2_OA2MSK_Pos)          /*!< 0x00000700 */
22914 #define I2C_OAR2_OA2MSK                     I2C_OAR2_OA2MSK_Msk                     /*!< Own address 2 masks */
22915 #define I2C_OAR2_OA2NOMASK                  (0x00000000UL)                          /*!< No mask                                        */
22916 #define I2C_OAR2_OA2MASK01_Pos              (8U)
22917 #define I2C_OAR2_OA2MASK01_Msk              (0x1UL << I2C_OAR2_OA2MASK01_Pos)       /*!< 0x00000100 */
22918 #define I2C_OAR2_OA2MASK01                  I2C_OAR2_OA2MASK01_Msk                  /*!< OA2[1] is masked, Only OA2[7:2] are compared   */
22919 #define I2C_OAR2_OA2MASK02_Pos              (9U)
22920 #define I2C_OAR2_OA2MASK02_Msk              (0x1UL << I2C_OAR2_OA2MASK02_Pos)       /*!< 0x00000200 */
22921 #define I2C_OAR2_OA2MASK02                  I2C_OAR2_OA2MASK02_Msk                  /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
22922 #define I2C_OAR2_OA2MASK03_Pos              (8U)
22923 #define I2C_OAR2_OA2MASK03_Msk              (0x3UL << I2C_OAR2_OA2MASK03_Pos)       /*!< 0x00000300 */
22924 #define I2C_OAR2_OA2MASK03                  I2C_OAR2_OA2MASK03_Msk                  /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
22925 #define I2C_OAR2_OA2MASK04_Pos              (10U)
22926 #define I2C_OAR2_OA2MASK04_Msk              (0x1UL << I2C_OAR2_OA2MASK04_Pos)       /*!< 0x00000400 */
22927 #define I2C_OAR2_OA2MASK04                  I2C_OAR2_OA2MASK04_Msk                  /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
22928 #define I2C_OAR2_OA2MASK05_Pos              (8U)
22929 #define I2C_OAR2_OA2MASK05_Msk              (0x5UL << I2C_OAR2_OA2MASK05_Pos)       /*!< 0x00000500 */
22930 #define I2C_OAR2_OA2MASK05                  I2C_OAR2_OA2MASK05_Msk                  /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
22931 #define I2C_OAR2_OA2MASK06_Pos              (9U)
22932 #define I2C_OAR2_OA2MASK06_Msk              (0x3UL << I2C_OAR2_OA2MASK06_Pos)       /*!< 0x00000600 */
22933 #define I2C_OAR2_OA2MASK06                  I2C_OAR2_OA2MASK06_Msk                  /*!< OA2[6:1] is masked, Only OA2[7] are compared   */
22934 #define I2C_OAR2_OA2MASK07_Pos              (8U)
22935 #define I2C_OAR2_OA2MASK07_Msk              (0x7UL << I2C_OAR2_OA2MASK07_Pos)       /*!< 0x00000700 */
22936 #define I2C_OAR2_OA2MASK07                  I2C_OAR2_OA2MASK07_Msk                  /*!< OA2[7:1] is masked, No comparison is done      */
22937 #define I2C_OAR2_OA2EN_Pos                  (15U)
22938 #define I2C_OAR2_OA2EN_Msk                  (0x1UL << I2C_OAR2_OA2EN_Pos)           /*!< 0x00008000 */
22939 #define I2C_OAR2_OA2EN                      I2C_OAR2_OA2EN_Msk                      /*!< Own address 2 enable */
22940 
22941 /*******************  Bit definition for I2C_TIMINGR register *******************/
22942 #define I2C_TIMINGR_SCLL_Pos                (0U)
22943 #define I2C_TIMINGR_SCLL_Msk                (0xFFUL << I2C_TIMINGR_SCLL_Pos)        /*!< 0x000000FF */
22944 #define I2C_TIMINGR_SCLL                    I2C_TIMINGR_SCLL_Msk                    /*!< SCL low period (master mode) */
22945 #define I2C_TIMINGR_SCLH_Pos                (8U)
22946 #define I2C_TIMINGR_SCLH_Msk                (0xFFUL << I2C_TIMINGR_SCLH_Pos)        /*!< 0x0000FF00 */
22947 #define I2C_TIMINGR_SCLH                    I2C_TIMINGR_SCLH_Msk                    /*!< SCL high period (master mode) */
22948 #define I2C_TIMINGR_SDADEL_Pos              (16U)
22949 #define I2C_TIMINGR_SDADEL_Msk              (0xFUL << I2C_TIMINGR_SDADEL_Pos)       /*!< 0x000F0000 */
22950 #define I2C_TIMINGR_SDADEL                  I2C_TIMINGR_SDADEL_Msk                  /*!< Data hold time */
22951 #define I2C_TIMINGR_SCLDEL_Pos              (20U)
22952 #define I2C_TIMINGR_SCLDEL_Msk              (0xFUL << I2C_TIMINGR_SCLDEL_Pos)       /*!< 0x00F00000 */
22953 #define I2C_TIMINGR_SCLDEL                  I2C_TIMINGR_SCLDEL_Msk                  /*!< Data setup time */
22954 #define I2C_TIMINGR_PRESC_Pos               (28U)
22955 #define I2C_TIMINGR_PRESC_Msk               (0xFUL << I2C_TIMINGR_PRESC_Pos)        /*!< 0xF0000000 */
22956 #define I2C_TIMINGR_PRESC                   I2C_TIMINGR_PRESC_Msk                   /*!< Timings prescaler */
22957 
22958 /******************* Bit definition for I2C_TIMEOUTR register *******************/
22959 #define I2C_TIMEOUTR_TIMEOUTA_Pos           (0U)
22960 #define I2C_TIMEOUTR_TIMEOUTA_Msk           (0xFFFUL << I2C_TIMEOUTR_TIMEOUTA_Pos)  /*!< 0x00000FFF */
22961 #define I2C_TIMEOUTR_TIMEOUTA               I2C_TIMEOUTR_TIMEOUTA_Msk               /*!< Bus timeout A */
22962 #define I2C_TIMEOUTR_TIDLE_Pos              (12U)
22963 #define I2C_TIMEOUTR_TIDLE_Msk              (0x1UL << I2C_TIMEOUTR_TIDLE_Pos)       /*!< 0x00001000 */
22964 #define I2C_TIMEOUTR_TIDLE                  I2C_TIMEOUTR_TIDLE_Msk                  /*!< Idle clock timeout detection */
22965 #define I2C_TIMEOUTR_TIMOUTEN_Pos           (15U)
22966 #define I2C_TIMEOUTR_TIMOUTEN_Msk           (0x1UL << I2C_TIMEOUTR_TIMOUTEN_Pos)    /*!< 0x00008000 */
22967 #define I2C_TIMEOUTR_TIMOUTEN               I2C_TIMEOUTR_TIMOUTEN_Msk               /*!< Clock timeout enable */
22968 #define I2C_TIMEOUTR_TIMEOUTB_Pos           (16U)
22969 #define I2C_TIMEOUTR_TIMEOUTB_Msk           (0xFFFUL << I2C_TIMEOUTR_TIMEOUTB_Pos)  /*!< 0x0FFF0000 */
22970 #define I2C_TIMEOUTR_TIMEOUTB               I2C_TIMEOUTR_TIMEOUTB_Msk               /*!< Bus timeout B*/
22971 #define I2C_TIMEOUTR_TEXTEN_Pos             (31U)
22972 #define I2C_TIMEOUTR_TEXTEN_Msk             (0x1UL << I2C_TIMEOUTR_TEXTEN_Pos)      /*!< 0x80000000 */
22973 #define I2C_TIMEOUTR_TEXTEN                 I2C_TIMEOUTR_TEXTEN_Msk                 /*!< Extended clock timeout enable */
22974 
22975 /******************  Bit definition for I2C_ISR register  *********************/
22976 #define I2C_ISR_TXE_Pos                     (0U)
22977 #define I2C_ISR_TXE_Msk                     (0x1UL << I2C_ISR_TXE_Pos)              /*!< 0x00000001 */
22978 #define I2C_ISR_TXE                         I2C_ISR_TXE_Msk                         /*!< Transmit data register empty */
22979 #define I2C_ISR_TXIS_Pos                    (1U)
22980 #define I2C_ISR_TXIS_Msk                    (0x1UL << I2C_ISR_TXIS_Pos)             /*!< 0x00000002 */
22981 #define I2C_ISR_TXIS                        I2C_ISR_TXIS_Msk                        /*!< Transmit interrupt status */
22982 #define I2C_ISR_RXNE_Pos                    (2U)
22983 #define I2C_ISR_RXNE_Msk                    (0x1UL << I2C_ISR_RXNE_Pos)             /*!< 0x00000004 */
22984 #define I2C_ISR_RXNE                        I2C_ISR_RXNE_Msk                        /*!< Receive data register not empty */
22985 #define I2C_ISR_ADDR_Pos                    (3U)
22986 #define I2C_ISR_ADDR_Msk                    (0x1UL << I2C_ISR_ADDR_Pos)             /*!< 0x00000008 */
22987 #define I2C_ISR_ADDR                        I2C_ISR_ADDR_Msk                        /*!< Address matched (slave mode)*/
22988 #define I2C_ISR_NACKF_Pos                   (4U)
22989 #define I2C_ISR_NACKF_Msk                   (0x1UL << I2C_ISR_NACKF_Pos)            /*!< 0x00000010 */
22990 #define I2C_ISR_NACKF                       I2C_ISR_NACKF_Msk                       /*!< NACK received flag */
22991 #define I2C_ISR_STOPF_Pos                   (5U)
22992 #define I2C_ISR_STOPF_Msk                   (0x1UL << I2C_ISR_STOPF_Pos)            /*!< 0x00000020 */
22993 #define I2C_ISR_STOPF                       I2C_ISR_STOPF_Msk                       /*!< STOP detection flag */
22994 #define I2C_ISR_TC_Pos                      (6U)
22995 #define I2C_ISR_TC_Msk                      (0x1UL << I2C_ISR_TC_Pos)               /*!< 0x00000040 */
22996 #define I2C_ISR_TC                          I2C_ISR_TC_Msk                          /*!< Transfer complete (master mode) */
22997 #define I2C_ISR_TCR_Pos                     (7U)
22998 #define I2C_ISR_TCR_Msk                     (0x1UL << I2C_ISR_TCR_Pos)              /*!< 0x00000080 */
22999 #define I2C_ISR_TCR                         I2C_ISR_TCR_Msk                         /*!< Transfer complete reload */
23000 #define I2C_ISR_BERR_Pos                    (8U)
23001 #define I2C_ISR_BERR_Msk                    (0x1UL << I2C_ISR_BERR_Pos)             /*!< 0x00000100 */
23002 #define I2C_ISR_BERR                        I2C_ISR_BERR_Msk                        /*!< Bus error */
23003 #define I2C_ISR_ARLO_Pos                    (9U)
23004 #define I2C_ISR_ARLO_Msk                    (0x1UL << I2C_ISR_ARLO_Pos)             /*!< 0x00000200 */
23005 #define I2C_ISR_ARLO                        I2C_ISR_ARLO_Msk                        /*!< Arbitration lost */
23006 #define I2C_ISR_OVR_Pos                     (10U)
23007 #define I2C_ISR_OVR_Msk                     (0x1UL << I2C_ISR_OVR_Pos)              /*!< 0x00000400 */
23008 #define I2C_ISR_OVR                         I2C_ISR_OVR_Msk                         /*!< Overrun/Underrun */
23009 #define I2C_ISR_PECERR_Pos                  (11U)
23010 #define I2C_ISR_PECERR_Msk                  (0x1UL << I2C_ISR_PECERR_Pos)           /*!< 0x00000800 */
23011 #define I2C_ISR_PECERR                      I2C_ISR_PECERR_Msk                      /*!< PEC error in reception */
23012 #define I2C_ISR_TIMEOUT_Pos                 (12U)
23013 #define I2C_ISR_TIMEOUT_Msk                 (0x1UL << I2C_ISR_TIMEOUT_Pos)          /*!< 0x00001000 */
23014 #define I2C_ISR_TIMEOUT                     I2C_ISR_TIMEOUT_Msk                     /*!< Timeout or Tlow detection flag */
23015 #define I2C_ISR_ALERT_Pos                   (13U)
23016 #define I2C_ISR_ALERT_Msk                   (0x1UL << I2C_ISR_ALERT_Pos)            /*!< 0x00002000 */
23017 #define I2C_ISR_ALERT                       I2C_ISR_ALERT_Msk                       /*!< SMBus alert */
23018 #define I2C_ISR_BUSY_Pos                    (15U)
23019 #define I2C_ISR_BUSY_Msk                    (0x1UL << I2C_ISR_BUSY_Pos)             /*!< 0x00008000 */
23020 #define I2C_ISR_BUSY                        I2C_ISR_BUSY_Msk                        /*!< Bus busy */
23021 #define I2C_ISR_DIR_Pos                     (16U)
23022 #define I2C_ISR_DIR_Msk                     (0x1UL << I2C_ISR_DIR_Pos)              /*!< 0x00010000 */
23023 #define I2C_ISR_DIR                         I2C_ISR_DIR_Msk                         /*!< Transfer direction (slave mode) */
23024 #define I2C_ISR_ADDCODE_Pos                 (17U)
23025 #define I2C_ISR_ADDCODE_Msk                 (0x7FUL << I2C_ISR_ADDCODE_Pos)         /*!< 0x00FE0000 */
23026 #define I2C_ISR_ADDCODE                     I2C_ISR_ADDCODE_Msk                     /*!< Address match code (slave mode) */
23027 
23028 /******************  Bit definition for I2C_ICR register  *********************/
23029 #define I2C_ICR_ADDRCF_Pos                  (3U)
23030 #define I2C_ICR_ADDRCF_Msk                  (0x1UL << I2C_ICR_ADDRCF_Pos)           /*!< 0x00000008 */
23031 #define I2C_ICR_ADDRCF                      I2C_ICR_ADDRCF_Msk                      /*!< Address matched clear flag */
23032 #define I2C_ICR_NACKCF_Pos                  (4U)
23033 #define I2C_ICR_NACKCF_Msk                  (0x1UL << I2C_ICR_NACKCF_Pos)           /*!< 0x00000010 */
23034 #define I2C_ICR_NACKCF                      I2C_ICR_NACKCF_Msk                      /*!< NACK clear flag */
23035 #define I2C_ICR_STOPCF_Pos                  (5U)
23036 #define I2C_ICR_STOPCF_Msk                  (0x1UL << I2C_ICR_STOPCF_Pos)           /*!< 0x00000020 */
23037 #define I2C_ICR_STOPCF                      I2C_ICR_STOPCF_Msk                      /*!< STOP detection clear flag */
23038 #define I2C_ICR_BERRCF_Pos                  (8U)
23039 #define I2C_ICR_BERRCF_Msk                  (0x1UL << I2C_ICR_BERRCF_Pos)           /*!< 0x00000100 */
23040 #define I2C_ICR_BERRCF                      I2C_ICR_BERRCF_Msk                      /*!< Bus error clear flag */
23041 #define I2C_ICR_ARLOCF_Pos                  (9U)
23042 #define I2C_ICR_ARLOCF_Msk                  (0x1UL << I2C_ICR_ARLOCF_Pos)           /*!< 0x00000200 */
23043 #define I2C_ICR_ARLOCF                      I2C_ICR_ARLOCF_Msk                      /*!< Arbitration lost clear flag */
23044 #define I2C_ICR_OVRCF_Pos                   (10U)
23045 #define I2C_ICR_OVRCF_Msk                   (0x1UL << I2C_ICR_OVRCF_Pos)            /*!< 0x00000400 */
23046 #define I2C_ICR_OVRCF                       I2C_ICR_OVRCF_Msk                       /*!< Overrun/Underrun clear flag */
23047 #define I2C_ICR_PECCF_Pos                   (11U)
23048 #define I2C_ICR_PECCF_Msk                   (0x1UL << I2C_ICR_PECCF_Pos)            /*!< 0x00000800 */
23049 #define I2C_ICR_PECCF                       I2C_ICR_PECCF_Msk                       /*!< PAC error clear flag */
23050 #define I2C_ICR_TIMOUTCF_Pos                (12U)
23051 #define I2C_ICR_TIMOUTCF_Msk                (0x1UL << I2C_ICR_TIMOUTCF_Pos)         /*!< 0x00001000 */
23052 #define I2C_ICR_TIMOUTCF                    I2C_ICR_TIMOUTCF_Msk                    /*!< Timeout clear flag */
23053 #define I2C_ICR_ALERTCF_Pos                 (13U)
23054 #define I2C_ICR_ALERTCF_Msk                 (0x1UL << I2C_ICR_ALERTCF_Pos)          /*!< 0x00002000 */
23055 #define I2C_ICR_ALERTCF                     I2C_ICR_ALERTCF_Msk                     /*!< Alert clear flag */
23056 
23057 /******************  Bit definition for I2C_PECR register  *********************/
23058 #define I2C_PECR_PEC_Pos                    (0U)
23059 #define I2C_PECR_PEC_Msk                    (0xFFUL << I2C_PECR_PEC_Pos)            /*!< 0x000000FF */
23060 #define I2C_PECR_PEC                        I2C_PECR_PEC_Msk                        /*!< PEC register */
23061 
23062 /******************  Bit definition for I2C_RXDR register  *********************/
23063 #define I2C_RXDR_RXDATA_Pos                 (0U)
23064 #define I2C_RXDR_RXDATA_Msk                 (0xFFUL << I2C_RXDR_RXDATA_Pos)         /*!< 0x000000FF */
23065 #define I2C_RXDR_RXDATA                     I2C_RXDR_RXDATA_Msk                     /*!< 8-bit receive data */
23066 
23067 /******************  Bit definition for I2C_TXDR register  *********************/
23068 #define I2C_TXDR_TXDATA_Pos                 (0U)
23069 #define I2C_TXDR_TXDATA_Msk                 (0xFFUL << I2C_TXDR_TXDATA_Pos)         /*!< 0x000000FF */
23070 #define I2C_TXDR_TXDATA                     I2C_TXDR_TXDATA_Msk                     /*!< 8-bit transmit data */
23071 
23072 /******************  Bit definition for I2C_AUTOCR register  ********************/
23073 #define I2C_AUTOCR_TCDMAEN_Pos              (6U)
23074 #define I2C_AUTOCR_TCDMAEN_Msk              (0x1UL << I2C_AUTOCR_TCDMAEN_Pos)       /*!< 0x00000040 */
23075 #define I2C_AUTOCR_TCDMAEN                  I2C_AUTOCR_TCDMAEN_Msk                  /*!< DMA request enable on Transfer Complete event */
23076 #define I2C_AUTOCR_TCRDMAEN_Pos             (7U)
23077 #define I2C_AUTOCR_TCRDMAEN_Msk             (0x1UL << I2C_AUTOCR_TCRDMAEN_Pos)      /*!< 0x00000080 */
23078 #define I2C_AUTOCR_TCRDMAEN                 I2C_AUTOCR_TCRDMAEN_Msk                 /*!< DMA request enable on Transfer Complete Reload event */
23079 #define I2C_AUTOCR_TRIGSEL_Pos              (16U)
23080 #define I2C_AUTOCR_TRIGSEL_Msk              (0xFUL << I2C_AUTOCR_TRIGSEL_Pos)       /*!< 0x000F0000 */
23081 #define I2C_AUTOCR_TRIGSEL                  I2C_AUTOCR_TRIGSEL_Msk                  /*!< Trigger selection */
23082 #define I2C_AUTOCR_TRIGPOL_Pos              (20U)
23083 #define I2C_AUTOCR_TRIGPOL_Msk              (0x1UL << I2C_AUTOCR_TRIGPOL_Pos)       /*!< 0x000100000 */
23084 #define I2C_AUTOCR_TRIGPOL                  I2C_AUTOCR_TRIGPOL_Msk                  /*!< Trigger polarity */
23085 #define I2C_AUTOCR_TRIGEN_Pos               (21U)
23086 #define I2C_AUTOCR_TRIGEN_Msk               (0x1UL << I2C_AUTOCR_TRIGEN_Pos)        /*!< 0x000200000 */
23087 #define I2C_AUTOCR_TRIGEN                   I2C_AUTOCR_TRIGEN_Msk                   /*!< Trigger enable */
23088 
23089 /******************************************************************************/
23090 /*                                                                            */
23091 /*                           Independent WATCHDOG                             */
23092 /*                                                                            */
23093 /******************************************************************************/
23094 /*******************  Bit definition for IWDG_KR register  ********************/
23095 #define IWDG_KR_KEY_Pos                     (0U)
23096 #define IWDG_KR_KEY_Msk                     (0xFFFFUL << IWDG_KR_KEY_Pos)           /*!< 0x0000FFFF */
23097 #define IWDG_KR_KEY                         IWDG_KR_KEY_Msk                         /*!<Key value (write only, read 0000h)  */
23098 
23099 /*******************  Bit definition for IWDG_PR register  ********************/
23100 #define IWDG_PR_PR_Pos                      (0U)
23101 #define IWDG_PR_PR_Msk                      (0xFUL << IWDG_PR_PR_Pos)               /*!< 0x0000000F */
23102 #define IWDG_PR_PR                          IWDG_PR_PR_Msk                          /*!<PR[3:0] (Prescaler divider)         */
23103 #define IWDG_PR_PR_0                        (0x1UL << IWDG_PR_PR_Pos)               /*!< 0x00000001 */
23104 #define IWDG_PR_PR_1                        (0x2UL << IWDG_PR_PR_Pos)               /*!< 0x00000002 */
23105 #define IWDG_PR_PR_2                        (0x4UL << IWDG_PR_PR_Pos)               /*!< 0x00000004 */
23106 #define IWDG_PR_PR_3                        (0x8UL << IWDG_PR_PR_Pos)               /*!< 0x00000008 */
23107 
23108 /*******************  Bit definition for IWDG_RLR register  *******************/
23109 #define IWDG_RLR_RL_Pos                     (0U)
23110 #define IWDG_RLR_RL_Msk                     (0xFFFUL << IWDG_RLR_RL_Pos)            /*!< 0x00000FFF */
23111 #define IWDG_RLR_RL                         IWDG_RLR_RL_Msk                         /*!<Watchdog counter reload value        */
23112 
23113 /*******************  Bit definition for IWDG_SR register  ********************/
23114 #define IWDG_SR_PVU_Pos                     (0U)
23115 #define IWDG_SR_PVU_Msk                     (0x1UL << IWDG_SR_PVU_Pos)              /*!< 0x00000001 */
23116 #define IWDG_SR_PVU                         IWDG_SR_PVU_Msk                         /*!< Watchdog prescaler value update */
23117 #define IWDG_SR_RVU_Pos                     (1U)
23118 #define IWDG_SR_RVU_Msk                     (0x1UL << IWDG_SR_RVU_Pos)              /*!< 0x00000002 */
23119 #define IWDG_SR_RVU                         IWDG_SR_RVU_Msk                         /*!< Watchdog counter reload value update */
23120 #define IWDG_SR_WVU_Pos                     (2U)
23121 #define IWDG_SR_WVU_Msk                     (0x1UL << IWDG_SR_WVU_Pos)              /*!< 0x00000004 */
23122 #define IWDG_SR_WVU                         IWDG_SR_WVU_Msk                         /*!< Watchdog counter window value update */
23123 #define IWDG_SR_EWU_Pos                     (3U)
23124 #define IWDG_SR_EWU_Msk                     (0x1UL << IWDG_SR_EWU_Pos)              /*!< 0x00000008 */
23125 #define IWDG_SR_EWU                         IWDG_SR_EWU_Msk                         /*!< Watchdog interrupt comparator value update */
23126 #define IWDG_SR_EWIF_Pos                    (14U)
23127 #define IWDG_SR_EWIF_Msk                    (0x1UL << IWDG_SR_EWIF_Pos)             /*!< 0x00004000 */
23128 #define IWDG_SR_EWIF                        IWDG_SR_EWIF_Msk                        /*!< Watchdog early interrupt flag */
23129 
23130 /******************  Bit definition for IWDG_WINR register  *******************/
23131 #define IWDG_WINR_WIN_Pos                   (0U)
23132 #define IWDG_WINR_WIN_Msk                   (0xFFFUL << IWDG_WINR_WIN_Pos)          /*!< 0x00000FFF */
23133 #define IWDG_WINR_WIN                       IWDG_WINR_WIN_Msk                       /*!< Watchdog counter window value */
23134 
23135 /******************  Bit definition for IWDG_EWCR register  *******************/
23136 #define IWDG_EWCR_EWIT_Pos                  (0U)
23137 #define IWDG_EWCR_EWIT_Msk                  (0xFFFUL << IWDG_EWCR_EWIT_Pos)         /*!< 0x00000FFF */
23138 #define IWDG_EWCR_EWIT                      IWDG_EWCR_EWIT_Msk                      /*!< Watchdog early wakeup comparator value */
23139 #define IWDG_EWCR_EWIC_Pos                  (14U)
23140 #define IWDG_EWCR_EWIC_Msk                  (0x1UL << IWDG_EWCR_EWIC_Pos)           /*!< 0x00000FFF */
23141 #define IWDG_EWCR_EWIC                      IWDG_EWCR_EWIC_Msk                      /*!< Watchdog early wakeup comparator value */
23142 #define IWDG_EWCR_EWIE_Pos                  (15U)
23143 #define IWDG_EWCR_EWIE_Msk                  (0x1UL << IWDG_EWCR_EWIE_Pos)           /*!< 0x00000FFF */
23144 #define IWDG_EWCR_EWIE                      IWDG_EWCR_EWIE_Msk                      /*!< Watchdog early wakeup comparator value */
23145 
23146 /******************************************************************************/
23147 /*                                                                            */
23148 /*                   Serial Peripheral Interface (SPI)                        */
23149 /*                                                                            */
23150 /******************************************************************************/
23151 /*******************  Bit definition for SPI_CR1 register  ********************/
23152 #define SPI_CR1_SPE_Pos                     (0U)
23153 #define SPI_CR1_SPE_Msk                     (0x1UL << SPI_CR1_SPE_Pos)              /*!< 0x00000001 */
23154 #define SPI_CR1_SPE                         SPI_CR1_SPE_Msk                         /*!<Serial Peripheral Enable */
23155 #define SPI_CR1_MASRX_Pos                   (8U)
23156 #define SPI_CR1_MASRX_Msk                   (0x1UL << SPI_CR1_MASRX_Pos)            /*!< 0x00000100 */
23157 #define SPI_CR1_MASRX                       SPI_CR1_MASRX_Msk                       /*!<Master automatic SUSP in Receive mode */
23158 #define SPI_CR1_CSTART_Pos                  (9U)
23159 #define SPI_CR1_CSTART_Msk                  (0x1UL << SPI_CR1_CSTART_Pos)           /*!< 0x00000200 */
23160 #define SPI_CR1_CSTART                      SPI_CR1_CSTART_Msk                      /*!<Master transfer start  */
23161 #define SPI_CR1_CSUSP_Pos                   (10U)
23162 #define SPI_CR1_CSUSP_Msk                   (0x1UL << SPI_CR1_CSUSP_Pos)            /*!< 0x00000400 */
23163 #define SPI_CR1_CSUSP                       SPI_CR1_CSUSP_Msk                       /*!<Master SUSPend request */
23164 #define SPI_CR1_HDDIR_Pos                   (11U)
23165 #define SPI_CR1_HDDIR_Msk                   (0x1UL << SPI_CR1_HDDIR_Pos)            /*!< 0x00000800 */
23166 #define SPI_CR1_HDDIR                       SPI_CR1_HDDIR_Msk                       /*!<Rx/Tx direction at Half-duplex mode */
23167 #define SPI_CR1_SSI_Pos                     (12U)
23168 #define SPI_CR1_SSI_Msk                     (0x1UL << SPI_CR1_SSI_Pos)              /*!< 0x00001000 */
23169 #define SPI_CR1_SSI                         SPI_CR1_SSI_Msk                         /*!<Internal SS signal input level */
23170 #define SPI_CR1_CRC33_17_Pos                (13U)
23171 #define SPI_CR1_CRC33_17_Msk                (0x1UL << SPI_CR1_CRC33_17_Pos)         /*!< 0x00002000 */
23172 #define SPI_CR1_CRC33_17                    SPI_CR1_CRC33_17_Msk                    /*!<32-bit CRC polynomial configuration */
23173 #define SPI_CR1_RCRCINI_Pos                 (14U)
23174 #define SPI_CR1_RCRCINI_Msk                 (0x1UL << SPI_CR1_RCRCINI_Pos)          /*!< 0x00004000 */
23175 #define SPI_CR1_RCRCINI                     SPI_CR1_RCRCINI_Msk                     /*!<CRC init pattern control for receiver */
23176 #define SPI_CR1_TCRCINI_Pos                 (15U)
23177 #define SPI_CR1_TCRCINI_Msk                 (0x1UL << SPI_CR1_TCRCINI_Pos)          /*!< 0x00008000 */
23178 #define SPI_CR1_TCRCINI                     SPI_CR1_TCRCINI_Msk                     /*!<CRC init pattern control for transmitter */
23179 #define SPI_CR1_IOLOCK_Pos                  (16U)
23180 #define SPI_CR1_IOLOCK_Msk                  (0x1UL << SPI_CR1_IOLOCK_Pos)           /*!< 0x00010000 */
23181 #define SPI_CR1_IOLOCK                      SPI_CR1_IOLOCK_Msk                      /*!<Locking the AF configuration of associated IOs */
23182 
23183 /*******************  Bit definition for SPI_CR2 register  ********************/
23184 #define SPI_CR2_TSIZE_Pos                   (0U)
23185 #define SPI_CR2_TSIZE_Msk                   (0xFFFFUL << SPI_CR2_TSIZE_Pos)         /*!< 0x0000FFFF */
23186 #define SPI_CR2_TSIZE                       SPI_CR2_TSIZE_Msk                       /*!<Number of data at current transfer */
23187 
23188 /*******************  Bit definition for SPI_CFG1 register  ********************/
23189 #define SPI_CFG1_DSIZE_Pos                  (0U)
23190 #define SPI_CFG1_DSIZE_Msk                  (0x1FUL << SPI_CFG1_DSIZE_Pos)          /*!< 0x0000001F */
23191 #define SPI_CFG1_DSIZE                      SPI_CFG1_DSIZE_Msk                      /*!<DSIZE[4:0]: Bits number in single SPI data frame */
23192 #define SPI_CFG1_DSIZE_0                    (0x01UL << SPI_CFG1_DSIZE_Pos)          /*!< 0x00000001 */
23193 #define SPI_CFG1_DSIZE_1                    (0x02UL << SPI_CFG1_DSIZE_Pos)          /*!< 0x00000002 */
23194 #define SPI_CFG1_DSIZE_2                    (0x04UL << SPI_CFG1_DSIZE_Pos)          /*!< 0x00000004 */
23195 #define SPI_CFG1_DSIZE_3                    (0x08UL << SPI_CFG1_DSIZE_Pos)          /*!< 0x00000008 */
23196 #define SPI_CFG1_DSIZE_4                    (0x10UL << SPI_CFG1_DSIZE_Pos)          /*!< 0x00000010 */
23197 #define SPI_CFG1_FTHLV_Pos                  (5U)
23198 #define SPI_CFG1_FTHLV_Msk                  (0xFUL << SPI_CFG1_FTHLV_Pos)           /*!< 0x000001E0 */
23199 #define SPI_CFG1_FTHLV                      SPI_CFG1_FTHLV_Msk                      /*!<FTHVL [3:0]: FIFO threshold level*/
23200 #define SPI_CFG1_FTHLV_0                    (0x1UL << SPI_CFG1_FTHLV_Pos)           /*!< 0x00000020 */
23201 #define SPI_CFG1_FTHLV_1                    (0x2UL << SPI_CFG1_FTHLV_Pos)           /*!< 0x00000040 */
23202 #define SPI_CFG1_FTHLV_2                    (0x4UL << SPI_CFG1_FTHLV_Pos)           /*!< 0x00000080 */
23203 #define SPI_CFG1_FTHLV_3                    (0x8UL << SPI_CFG1_FTHLV_Pos)           /*!< 0x00000100 */
23204 #define SPI_CFG1_UDRCFG_Pos                 (9U)
23205 #define SPI_CFG1_UDRCFG_Msk                 (0x1UL << SPI_CFG1_UDRCFG_Pos)          /*!< 0x00000600 */
23206 #define SPI_CFG1_UDRCFG                     SPI_CFG1_UDRCFG_Msk                     /*!<Behavior of Slave transmitter at underrun */
23207 #define SPI_CFG1_RXDMAEN_Pos                (14U)
23208 #define SPI_CFG1_RXDMAEN_Msk                (0x1UL << SPI_CFG1_RXDMAEN_Pos)         /*!< 0x00004000 */
23209 #define SPI_CFG1_RXDMAEN                    SPI_CFG1_RXDMAEN_Msk                    /*!<Rx DMA stream enable */
23210 #define SPI_CFG1_TXDMAEN_Pos                (15U)
23211 #define SPI_CFG1_TXDMAEN_Msk                (0x1UL << SPI_CFG1_TXDMAEN_Pos)         /*!< 0x00008000 */
23212 #define SPI_CFG1_TXDMAEN                    SPI_CFG1_TXDMAEN_Msk                    /*!<Tx DMA stream enable */
23213 #define SPI_CFG1_CRCSIZE_Pos                (16U)
23214 #define SPI_CFG1_CRCSIZE_Msk                (0x1FUL << SPI_CFG1_CRCSIZE_Pos)        /*!< 0x001F0000 */
23215 #define SPI_CFG1_CRCSIZE                    SPI_CFG1_CRCSIZE_Msk                    /*!<CRCSIZE [4:0]: Length of CRC frame */
23216 #define SPI_CFG1_CRCSIZE_0                  (0x01UL << SPI_CFG1_CRCSIZE_Pos)        /*!< 0x00010000 */
23217 #define SPI_CFG1_CRCSIZE_1                  (0x02UL << SPI_CFG1_CRCSIZE_Pos)        /*!< 0x00020000 */
23218 #define SPI_CFG1_CRCSIZE_2                  (0x04UL << SPI_CFG1_CRCSIZE_Pos)        /*!< 0x00040000 */
23219 #define SPI_CFG1_CRCSIZE_3                  (0x08UL << SPI_CFG1_CRCSIZE_Pos)        /*!< 0x00080000 */
23220 #define SPI_CFG1_CRCSIZE_4                  (0x10UL << SPI_CFG1_CRCSIZE_Pos)        /*!< 0x00100000 */
23221 #define SPI_CFG1_CRCEN_Pos                  (22U)
23222 #define SPI_CFG1_CRCEN_Msk                  (0x1UL << SPI_CFG1_CRCEN_Pos)           /*!< 0x00400000 */
23223 #define SPI_CFG1_CRCEN                      SPI_CFG1_CRCEN_Msk                      /*!<Hardware CRC computation enable */
23224 #define SPI_CFG1_MBR_Pos                    (28U)
23225 #define SPI_CFG1_MBR_Msk                    (0x7UL << SPI_CFG1_MBR_Pos)             /*!< 0x70000000 */
23226 #define SPI_CFG1_MBR                        SPI_CFG1_MBR_Msk                        /*!<Master baud rate */
23227 #define SPI_CFG1_MBR_0                      (0x1UL << SPI_CFG1_MBR_Pos)             /*!< 0x10000000 */
23228 #define SPI_CFG1_MBR_1                      (0x2UL << SPI_CFG1_MBR_Pos)             /*!< 0x20000000 */
23229 #define SPI_CFG1_MBR_2                      (0x4UL << SPI_CFG1_MBR_Pos)             /*!< 0x40000000 */
23230 #define SPI_CFG1_BPASS_Pos                  (31U)
23231 #define SPI_CFG1_BPASS_Msk                  (0x1UL << SPI_CFG1_BPASS_Pos)           /*!< 0x80000000 */
23232 #define SPI_CFG1_BPASS                      SPI_CFG1_BPASS_Msk                      /*!<Bypass of the prescaler */
23233 
23234 /*******************  Bit definition for SPI_CFG2 register  ********************/
23235 #define SPI_CFG2_MSSI_Pos                   (0U)
23236 #define SPI_CFG2_MSSI_Msk                   (0xFUL << SPI_CFG2_MSSI_Pos)            /*!< 0x0000000F */
23237 #define SPI_CFG2_MSSI                       SPI_CFG2_MSSI_Msk                       /*!<Master SS Idleness */
23238 #define SPI_CFG2_MSSI_0                     (0x1UL << SPI_CFG2_MSSI_Pos)            /*!< 0x00000001 */
23239 #define SPI_CFG2_MSSI_1                     (0x2UL << SPI_CFG2_MSSI_Pos)            /*!< 0x00000002 */
23240 #define SPI_CFG2_MSSI_2                     (0x4UL << SPI_CFG2_MSSI_Pos)            /*!< 0x00000004 */
23241 #define SPI_CFG2_MSSI_3                     (0x8UL << SPI_CFG2_MSSI_Pos)            /*!< 0x00000008 */
23242 #define SPI_CFG2_MIDI_Pos                   (4U)
23243 #define SPI_CFG2_MIDI_Msk                   (0xFUL << SPI_CFG2_MIDI_Pos)            /*!< 0x000000F0 */
23244 #define SPI_CFG2_MIDI                       SPI_CFG2_MIDI_Msk                       /*!<Master Inter-Data Idleness */
23245 #define SPI_CFG2_MIDI_0                     (0x1UL << SPI_CFG2_MIDI_Pos)            /*!< 0x00000010 */
23246 #define SPI_CFG2_MIDI_1                     (0x2UL << SPI_CFG2_MIDI_Pos)            /*!< 0x00000020 */
23247 #define SPI_CFG2_MIDI_2                     (0x4UL << SPI_CFG2_MIDI_Pos)            /*!< 0x00000040 */
23248 #define SPI_CFG2_MIDI_3                     (0x8UL << SPI_CFG2_MIDI_Pos)            /*!< 0x00000080 */
23249 #define SPI_CFG2_RDIMM_Pos                  (13U)
23250 #define SPI_CFG2_RDIMM_Msk                  (0x1UL << SPI_CFG2_RDIMM_Pos)           /*!< 0x00002000 */
23251 #define SPI_CFG2_RDIMM                      SPI_CFG2_RDIMM_Msk                      /*!<RDY signal input master management */
23252 #define SPI_CFG2_RDIOP_Pos                  (14U)
23253 #define SPI_CFG2_RDIOP_Msk                  (0x1UL << SPI_CFG2_RDIOP_Pos)           /*!< 0x00004000 */
23254 #define SPI_CFG2_RDIOP                      SPI_CFG2_RDIOP_Msk                      /*!<RDY signal input/output polarity */
23255 #define SPI_CFG2_IOSWP_Pos                  (15U)
23256 #define SPI_CFG2_IOSWP_Msk                  (0x1UL << SPI_CFG2_IOSWP_Pos)           /*!< 0x00008000 */
23257 #define SPI_CFG2_IOSWP                      SPI_CFG2_IOSWP_Msk                      /*!<Swap functionality of MISO and MOSI pins */
23258 #define SPI_CFG2_COMM_Pos                   (17U)
23259 #define SPI_CFG2_COMM_Msk                   (0x3UL << SPI_CFG2_COMM_Pos)            /*!< 0x00060000 */
23260 #define SPI_CFG2_COMM                       SPI_CFG2_COMM_Msk                       /*!<COMM [1:0]: SPI Communication Mode*/
23261 #define SPI_CFG2_COMM_0                     (0x1UL << SPI_CFG2_COMM_Pos)            /*!< 0x00020000 */
23262 #define SPI_CFG2_COMM_1                     (0x2UL << SPI_CFG2_COMM_Pos)            /*!< 0x00040000 */
23263 #define SPI_CFG2_SP_Pos                     (19U)
23264 #define SPI_CFG2_SP_Msk                     (0x7UL << SPI_CFG2_SP_Pos)              /*!< 0x00380000 */
23265 #define SPI_CFG2_SP                         SPI_CFG2_SP_Msk                         /*!<SP[2:0]: Serial Protocol */
23266 #define SPI_CFG2_SP_0                       (0x1UL << SPI_CFG2_SP_Pos)              /*!< 0x00080000 */
23267 #define SPI_CFG2_SP_1                       (0x2UL << SPI_CFG2_SP_Pos)              /*!< 0x00100000 */
23268 #define SPI_CFG2_SP_2                       (0x4UL << SPI_CFG2_SP_Pos)              /*!< 0x00200000 */
23269 #define SPI_CFG2_MASTER_Pos                 (22U)
23270 #define SPI_CFG2_MASTER_Msk                 (0x1UL << SPI_CFG2_MASTER_Pos)          /*!< 0x00400000 */
23271 #define SPI_CFG2_MASTER                     SPI_CFG2_MASTER_Msk                     /*!<SPI Master */
23272 #define SPI_CFG2_LSBFRST_Pos                (23U)
23273 #define SPI_CFG2_LSBFRST_Msk                (0x1UL << SPI_CFG2_LSBFRST_Pos)         /*!< 0x00800000 */
23274 #define SPI_CFG2_LSBFRST                    SPI_CFG2_LSBFRST_Msk                    /*!<Data frame format */
23275 #define SPI_CFG2_CPHA_Pos                   (24U)
23276 #define SPI_CFG2_CPHA_Msk                   (0x1UL << SPI_CFG2_CPHA_Pos)            /*!< 0x01000000 */
23277 #define SPI_CFG2_CPHA                       SPI_CFG2_CPHA_Msk                       /*!<Clock Phase */
23278 #define SPI_CFG2_CPOL_Pos                   (25U)
23279 #define SPI_CFG2_CPOL_Msk                   (0x1UL << SPI_CFG2_CPOL_Pos)            /*!< 0x02000000 */
23280 #define SPI_CFG2_CPOL                       SPI_CFG2_CPOL_Msk                       /*!<Clock Polarity */
23281 #define SPI_CFG2_SSM_Pos                    (26U)
23282 #define SPI_CFG2_SSM_Msk                    (0x1UL << SPI_CFG2_SSM_Pos)             /*!< 0x04000000 */
23283 #define SPI_CFG2_SSM                        SPI_CFG2_SSM_Msk                        /*!<Software slave management */
23284 #define SPI_CFG2_SSIOP_Pos                  (28U)
23285 #define SPI_CFG2_SSIOP_Msk                  (0x1UL << SPI_CFG2_SSIOP_Pos)           /*!< 0x10000000 */
23286 #define SPI_CFG2_SSIOP                      SPI_CFG2_SSIOP_Msk                      /*!<SS input/output polarity */
23287 #define SPI_CFG2_SSOE_Pos                   (29U)
23288 #define SPI_CFG2_SSOE_Msk                   (0x1UL << SPI_CFG2_SSOE_Pos)            /*!< 0x20000000 */
23289 #define SPI_CFG2_SSOE                       SPI_CFG2_SSOE_Msk                       /*!<SS output enable */
23290 #define SPI_CFG2_SSOM_Pos                   (30U)
23291 #define SPI_CFG2_SSOM_Msk                   (0x1UL << SPI_CFG2_SSOM_Pos)            /*!< 0x40000000 */
23292 #define SPI_CFG2_SSOM                       SPI_CFG2_SSOM_Msk                       /*!<SS output management in master mode */
23293 #define SPI_CFG2_AFCNTR_Pos                 (31U)
23294 #define SPI_CFG2_AFCNTR_Msk                 (0x1UL << SPI_CFG2_AFCNTR_Pos)          /*!< 0x80000000 */
23295 #define SPI_CFG2_AFCNTR                     SPI_CFG2_AFCNTR_Msk                     /*!<Alternate function GPIOs control */
23296 
23297 /*******************  Bit definition for SPI_IER register  ********************/
23298 #define SPI_IER_RXPIE_Pos                   (0U)
23299 #define SPI_IER_RXPIE_Msk                   (0x1UL << SPI_IER_RXPIE_Pos)            /*!< 0x00000001 */
23300 #define SPI_IER_RXPIE                       SPI_IER_RXPIE_Msk                       /*!<RXP Interrupt Enable */
23301 #define SPI_IER_TXPIE_Pos                   (1U)
23302 #define SPI_IER_TXPIE_Msk                   (0x1UL << SPI_IER_TXPIE_Pos)            /*!< 0x00000002 */
23303 #define SPI_IER_TXPIE                       SPI_IER_TXPIE_Msk                       /*!<TXP interrupt enable */
23304 #define SPI_IER_DXPIE_Pos                   (2U)
23305 #define SPI_IER_DXPIE_Msk                   (0x1UL << SPI_IER_DXPIE_Pos)            /*!< 0x00000004 */
23306 #define SPI_IER_DXPIE                       SPI_IER_DXPIE_Msk                       /*!<DXP interrupt enable */
23307 #define SPI_IER_EOTIE_Pos                   (3U)
23308 #define SPI_IER_EOTIE_Msk                   (0x1UL << SPI_IER_EOTIE_Pos)            /*!< 0x00000008 */
23309 #define SPI_IER_EOTIE                       SPI_IER_EOTIE_Msk                       /*!<EOT/SUSP/TXC interrupt enable */
23310 #define SPI_IER_TXTFIE_Pos                  (4U)
23311 #define SPI_IER_TXTFIE_Msk                  (0x1UL << SPI_IER_TXTFIE_Pos)           /*!< 0x00000010 */
23312 #define SPI_IER_TXTFIE                      SPI_IER_TXTFIE_Msk                      /*!<TXTF interrupt enable */
23313 #define SPI_IER_UDRIE_Pos                   (5U)
23314 #define SPI_IER_UDRIE_Msk                   (0x1UL << SPI_IER_UDRIE_Pos)            /*!< 0x00000020 */
23315 #define SPI_IER_UDRIE                       SPI_IER_UDRIE_Msk                       /*!<UDR interrupt enable */
23316 #define SPI_IER_OVRIE_Pos                   (6U)
23317 #define SPI_IER_OVRIE_Msk                   (0x1UL << SPI_IER_OVRIE_Pos)            /*!< 0x00000040 */
23318 #define SPI_IER_OVRIE                       SPI_IER_OVRIE_Msk                       /*!<OVR interrupt enable */
23319 #define SPI_IER_CRCEIE_Pos                  (7U)
23320 #define SPI_IER_CRCEIE_Msk                  (0x1UL << SPI_IER_CRCEIE_Pos)           /*!< 0x00000080 */
23321 #define SPI_IER_CRCEIE                      SPI_IER_CRCEIE_Msk                      /*!<CRCE interrupt enable */
23322 #define SPI_IER_TIFREIE_Pos                 (8U)
23323 #define SPI_IER_TIFREIE_Msk                 (0x1UL << SPI_IER_TIFREIE_Pos)          /*!< 0x00000100 */
23324 #define SPI_IER_TIFREIE                     SPI_IER_TIFREIE_Msk                     /*!<TI Frame Error interrupt enable */
23325 #define SPI_IER_MODFIE_Pos                  (9U)
23326 #define SPI_IER_MODFIE_Msk                  (0x1UL << SPI_IER_MODFIE_Pos)           /*!< 0x00000200 */
23327 #define SPI_IER_MODFIE                      SPI_IER_MODFIE_Msk                      /*!<MODF interrupt enable */
23328 
23329 /*******************  Bit definition for SPI_SR register  ********************/
23330 #define SPI_SR_RXP_Pos                      (0U)
23331 #define SPI_SR_RXP_Msk                      (0x1UL << SPI_SR_RXP_Pos)               /*!< 0x00000001 */
23332 #define SPI_SR_RXP                          SPI_SR_RXP_Msk                          /*!<Rx-Packet available */
23333 #define SPI_SR_TXP_Pos                      (1U)
23334 #define SPI_SR_TXP_Msk                      (0x1UL << SPI_SR_TXP_Pos)               /*!< 0x00000002 */
23335 #define SPI_SR_TXP                          SPI_SR_TXP_Msk                          /*!<Tx-Packet space available */
23336 #define SPI_SR_DXP_Pos                      (2U)
23337 #define SPI_SR_DXP_Msk                      (0x1UL << SPI_SR_DXP_Pos)               /*!< 0x00000004 */
23338 #define SPI_SR_DXP                          SPI_SR_DXP_Msk                          /*!<Duplex Packet available */
23339 #define SPI_SR_EOT_Pos                      (3U)
23340 #define SPI_SR_EOT_Msk                      (0x1UL << SPI_SR_EOT_Pos)               /*!< 0x00000008 */
23341 #define SPI_SR_EOT                          SPI_SR_EOT_Msk                          /*!<Duplex Packet available */
23342 #define SPI_SR_TXTF_Pos                     (4U)
23343 #define SPI_SR_TXTF_Msk                     (0x1UL << SPI_SR_TXTF_Pos)              /*!< 0x00000010 */
23344 #define SPI_SR_TXTF                         SPI_SR_TXTF_Msk                         /*!<Transmission Transfer Filled */
23345 #define SPI_SR_UDR_Pos                      (5U)
23346 #define SPI_SR_UDR_Msk                      (0x1UL << SPI_SR_UDR_Pos)               /*!< 0x00000020 */
23347 #define SPI_SR_UDR                          SPI_SR_UDR_Msk                          /*!<UDR at Slave transmission */
23348 #define SPI_SR_OVR_Pos                      (6U)
23349 #define SPI_SR_OVR_Msk                      (0x1UL << SPI_SR_OVR_Pos)               /*!< 0x00000040 */
23350 #define SPI_SR_OVR                          SPI_SR_OVR_Msk                          /*!<Rx-Packet available */
23351 #define SPI_SR_CRCE_Pos                     (7U)
23352 #define SPI_SR_CRCE_Msk                     (0x1UL << SPI_SR_CRCE_Pos)              /*!< 0x00000080 */
23353 #define SPI_SR_CRCE                         SPI_SR_CRCE_Msk                         /*!<CRC Error Detected */
23354 #define SPI_SR_TIFRE_Pos                    (8U)
23355 #define SPI_SR_TIFRE_Msk                    (0x1UL << SPI_SR_TIFRE_Pos)             /*!< 0x00000100 */
23356 #define SPI_SR_TIFRE                        SPI_SR_TIFRE_Msk                        /*!<TI frame format error Detected */
23357 #define SPI_SR_MODF_Pos                     (9U)
23358 #define SPI_SR_MODF_Msk                     (0x1UL << SPI_SR_MODF_Pos)              /*!< 0x00000200 */
23359 #define SPI_SR_MODF                         SPI_SR_MODF_Msk                         /*!<Mode Fault Detected */
23360 #define SPI_SR_SUSP_Pos                     (11U)
23361 #define SPI_SR_SUSP_Msk                     (0x1UL << SPI_SR_SUSP_Pos)              /*!< 0x00000800 */
23362 #define SPI_SR_SUSP                         SPI_SR_SUSP_Msk                         /*!<SUSP is set by hardware */
23363 #define SPI_SR_TXC_Pos                      (12U)
23364 #define SPI_SR_TXC_Msk                      (0x1UL << SPI_SR_TXC_Pos)               /*!< 0x00001000 */
23365 #define SPI_SR_TXC                          SPI_SR_TXC_Msk                          /*!<TxFIFO transmission complete */
23366 #define SPI_SR_RXPLVL_Pos                   (13U)
23367 #define SPI_SR_RXPLVL_Msk                   (0x3UL << SPI_SR_RXPLVL_Pos)            /*!< 0x00006000 */
23368 #define SPI_SR_RXPLVL                       SPI_SR_RXPLVL_Msk                       /*!<RxFIFO Packing Level */
23369 #define SPI_SR_RXPLVL_0                     (0x1UL << SPI_SR_RXPLVL_Pos)            /*!< 0x00002000 */
23370 #define SPI_SR_RXPLVL_1                     (0x2UL << SPI_SR_RXPLVL_Pos)            /*!< 0x00004000 */
23371 #define SPI_SR_RXWNE_Pos                    (15U)
23372 #define SPI_SR_RXWNE_Msk                    (0x1UL << SPI_SR_RXWNE_Pos)             /*!< 0x00008000 */
23373 #define SPI_SR_RXWNE                        SPI_SR_RXWNE_Msk                        /*!<Rx FIFO Word Not Empty */
23374 #define SPI_SR_CTSIZE_Pos                   (16U)
23375 #define SPI_SR_CTSIZE_Msk                   (0xFFFFUL << SPI_SR_CTSIZE_Pos)         /*!< 0xFFFF0000 */
23376 #define SPI_SR_CTSIZE                       SPI_SR_CTSIZE_Msk                       /*!<Number of data frames remaining in TSIZE */
23377 
23378 /*******************  Bit definition for SPI_IFCR register  ********************/
23379 #define SPI_IFCR_EOTC_Pos                   (3U)
23380 #define SPI_IFCR_EOTC_Msk                   (0x1UL << SPI_IFCR_EOTC_Pos)            /*!< 0x00000008 */
23381 #define SPI_IFCR_EOTC                       SPI_IFCR_EOTC_Msk                       /*!<End Of Transfer flag clear */
23382 #define SPI_IFCR_TXTFC_Pos                  (4U)
23383 #define SPI_IFCR_TXTFC_Msk                  (0x1UL << SPI_IFCR_TXTFC_Pos)           /*!< 0x00000010 */
23384 #define SPI_IFCR_TXTFC                      SPI_IFCR_TXTFC_Msk                      /*!<Transmission Transfer Filled flag clear */
23385 #define SPI_IFCR_UDRC_Pos                   (5U)
23386 #define SPI_IFCR_UDRC_Msk                   (0x1UL << SPI_IFCR_UDRC_Pos)            /*!< 0x00000020 */
23387 #define SPI_IFCR_UDRC                       SPI_IFCR_UDRC_Msk                       /*!<Underrun flag clear */
23388 #define SPI_IFCR_OVRC_Pos                   (6U)
23389 #define SPI_IFCR_OVRC_Msk                   (0x1UL << SPI_IFCR_OVRC_Pos)            /*!< 0x00000040 */
23390 #define SPI_IFCR_OVRC                       SPI_IFCR_OVRC_Msk                       /*!<Overrun flag clear */
23391 #define SPI_IFCR_CRCEC_Pos                  (7U)
23392 #define SPI_IFCR_CRCEC_Msk                  (0x1UL << SPI_IFCR_CRCEC_Pos)           /*!< 0x00000080 */
23393 #define SPI_IFCR_CRCEC                      SPI_IFCR_CRCEC_Msk                      /*!<CRC Error flag clear */
23394 #define SPI_IFCR_TIFREC_Pos                 (8U)
23395 #define SPI_IFCR_TIFREC_Msk                 (0x1UL << SPI_IFCR_TIFREC_Pos)          /*!< 0x00000100 */
23396 #define SPI_IFCR_TIFREC                     SPI_IFCR_TIFREC_Msk                     /*!<TI frame format error flag clear */
23397 #define SPI_IFCR_MODFC_Pos                  (9U)
23398 #define SPI_IFCR_MODFC_Msk                  (0x1UL << SPI_IFCR_MODFC_Pos)           /*!< 0x00000200 */
23399 #define SPI_IFCR_MODFC                      SPI_IFCR_MODFC_Msk                      /*!<Mode Fault flag clear */
23400 #define SPI_IFCR_SUSPC_Pos                  (11U)
23401 #define SPI_IFCR_SUSPC_Msk                  (0x1UL << SPI_IFCR_SUSPC_Pos)           /*!< 0x00000800 */
23402 #define SPI_IFCR_SUSPC                      SPI_IFCR_SUSPC_Msk                      /*!<SUSPend flag clear */
23403 
23404 /*******************  Bit definition for SPI_AUTOCR register  ********************/
23405 #define SPI_AUTOCR_TRIGSEL_Pos              (16U)
23406 #define SPI_AUTOCR_TRIGSEL_Msk              (0xFUL << SPI_AUTOCR_TRIGSEL_Pos)       /*!< 0x000F0000 */
23407 #define SPI_AUTOCR_TRIGSEL                  SPI_AUTOCR_TRIGSEL_Msk                  /*!<CTRIGSEL [3:0]: Trigger selection */
23408 #define SPI_AUTOCR_TRIGSEL_0                (0x01UL << SPI_AUTOCR_TRIGSEL_Pos)      /*!< 0x00010000 */
23409 #define SPI_AUTOCR_TRIGSEL_1                (0x02UL << SPI_AUTOCR_TRIGSEL_Pos)      /*!< 0x00020000 */
23410 #define SPI_AUTOCR_TRIGSEL_2                (0x04UL << SPI_AUTOCR_TRIGSEL_Pos)      /*!< 0x00040000 */
23411 #define SPI_AUTOCR_TRIGSEL_3                (0x08UL << SPI_AUTOCR_TRIGSEL_Pos)      /*!< 0x00080000 */
23412 #define SPI_AUTOCR_TRIGPOL_Pos              (20U)
23413 #define SPI_AUTOCR_TRIGPOL_Msk              (0x1UL << SPI_AUTOCR_TRIGPOL_Pos)       /*!< 0x00100000 */
23414 #define SPI_AUTOCR_TRIGPOL                  SPI_AUTOCR_TRIGPOL_Msk                  /*!<Trigger polarity */
23415 #define SPI_AUTOCR_TRIGEN_Pos               (21U)
23416 #define SPI_AUTOCR_TRIGEN_Msk               (0x1UL << SPI_AUTOCR_TRIGEN_Pos)        /*!< 0x00200000 */
23417 #define SPI_AUTOCR_TRIGEN                   SPI_AUTOCR_TRIGEN_Msk                   /*!<Trigger of CSTART control enable */
23418 
23419 /*******************  Bit definition for SPI_TXDR register  ********************/
23420 #define SPI_TXDR_TXDR_Pos                   (0U)
23421 #define SPI_TXDR_TXDR_Msk                   (0xFFFFFFFFUL << SPI_TXDR_TXDR_Pos)     /*!< 0xFFFFFFFF */
23422 #define SPI_TXDR_TXDR                       SPI_TXDR_TXDR_Msk                       /* Transmit Data Register */
23423 
23424 /*******************  Bit definition for SPI_RXDR register  ********************/
23425 #define SPI_RXDR_RXDR_Pos                   (0U)
23426 #define SPI_RXDR_RXDR_Msk                   (0xFFFFFFFFUL << SPI_RXDR_RXDR_Pos)     /*!< 0xFFFFFFFF */
23427 #define SPI_RXDR_RXDR                       SPI_RXDR_RXDR_Msk                       /* Receive Data Register */
23428 
23429 /*******************  Bit definition for SPI_CRCPOLY register  ********************/
23430 #define SPI_CRCPOLY_CRCPOLY_Pos             (0U)
23431 #define SPI_CRCPOLY_CRCPOLY_Msk             (0xFFFFFFFFUL << SPI_CRCPOLY_CRCPOLY_Pos) /*!< 0xFFFFFFFF */
23432 #define SPI_CRCPOLY_CRCPOLY                 SPI_CRCPOLY_CRCPOLY_Msk                 /* CRC Polynomial register */
23433 
23434 /*******************  Bit definition for SPI_TXCRC register  ********************/
23435 #define SPI_TXCRC_TXCRC_Pos                 (0U)
23436 #define SPI_TXCRC_TXCRC_Msk                 (0xFFFFFFFFUL << SPI_TXCRC_TXCRC_Pos)   /*!< 0xFFFFFFFF */
23437 #define SPI_TXCRC_TXCRC                     SPI_TXCRC_TXCRC_Msk                     /* CRCRegister for transmitter */
23438 
23439 /*******************  Bit definition for SPI_RXCRC register  ********************/
23440 #define SPI_RXCRC_RXCRC_Pos                 (0U)
23441 #define SPI_RXCRC_RXCRC_Msk                 (0xFFFFFFFFUL << SPI_RXCRC_RXCRC_Pos)   /*!< 0xFFFFFFFF */
23442 #define SPI_RXCRC_RXCRC                     SPI_RXCRC_RXCRC_Msk                     /* CRCRegister for receiver */
23443 
23444 /*******************  Bit definition for SPI_UDRDR register  ********************/
23445 #define SPI_UDRDR_UDRDR_Pos                 (0U)
23446 #define SPI_UDRDR_UDRDR_Msk                 (0xFFFFFFFFUL << SPI_UDRDR_UDRDR_Pos)   /*!< 0xFFFFFFFF */
23447 #define SPI_UDRDR_UDRDR                     SPI_UDRDR_UDRDR_Msk                     /* Data at slave underrun condition */
23448 
23449 /******************************************************************************/
23450 /*                                                                            */
23451 /*                                 VREFBUF                                    */
23452 /*                                                                            */
23453 /******************************************************************************/
23454 /*******************  Bit definition for VREFBUF_CSR register  ****************/
23455 #define VREFBUF_CSR_ENVR_Pos    (0U)
23456 #define VREFBUF_CSR_ENVR_Msk    (0x1UL << VREFBUF_CSR_ENVR_Pos)                     /*!< 0x00000001 */
23457 #define VREFBUF_CSR_ENVR        VREFBUF_CSR_ENVR_Msk                                /*!<Voltage reference buffer enable */
23458 #define VREFBUF_CSR_HIZ_Pos     (1U)
23459 #define VREFBUF_CSR_HIZ_Msk     (0x1UL << VREFBUF_CSR_HIZ_Pos)                      /*!< 0x00000002 */
23460 #define VREFBUF_CSR_HIZ         VREFBUF_CSR_HIZ_Msk                                 /*!<High impedance mode             */
23461 #define VREFBUF_CSR_VRS_Pos     (4U)
23462 #define VREFBUF_CSR_VRS_Msk     (0x7UL << VREFBUF_CSR_VRS_Pos)                      /*!< 0x00000004 */
23463 #define VREFBUF_CSR_VRS         VREFBUF_CSR_VRS_Msk                                 /*!<Voltage reference scale         */
23464 #define VREFBUF_CSR_VRS_0       (0x01UL<< VREFBUF_CSR_VRS_Pos)                      /*!< 0x000O0010 */
23465 #define VREFBUF_CSR_VRS_1       (0x02UL<< VREFBUF_CSR_VRS_Pos)                      /*!< 0x00000020 */
23466 #define VREFBUF_CSR_VRS_2       (0x04UL<< VREFBUF_CSR_VRS_Pos)                      /*!< 0x00000030 */
23467 #define VREFBUF_CSR_VRR_Pos     (3U)
23468 #define VREFBUF_CSR_VRR_Msk     (0x1UL << VREFBUF_CSR_VRR_Pos)                      /*!< 0x00000008 */
23469 #define VREFBUF_CSR_VRR         VREFBUF_CSR_VRR_Msk                                 /*!<Voltage reference buffer ready  */
23470 
23471 /*******************  Bit definition for VREFBUF_CCR register  ******************/
23472 #define VREFBUF_CCR_TRIM_Pos                (0U)
23473 #define VREFBUF_CCR_TRIM_Msk                (0x3FUL << VREFBUF_CCR_TRIM_Pos)        /*!< 0x0000003F */
23474 #define VREFBUF_CCR_TRIM                    VREFBUF_CCR_TRIM_Msk                    /*!<TRIM[5:0] bits (Trimming code)  */
23475 
23476 /******************************************************************************/
23477 /*                                                                            */
23478 /*                            Window WATCHDOG                                 */
23479 /*                                                                            */
23480 /******************************************************************************/
23481 /*******************  Bit definition for WWDG_CR register  ********************/
23482 #define WWDG_CR_T_Pos                       (0U)
23483 #define WWDG_CR_T_Msk                       (0x7FUL << WWDG_CR_T_Pos)               /*!< 0x0000007F */
23484 #define WWDG_CR_T                           WWDG_CR_T_Msk                           /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */
23485 #define WWDG_CR_T_0                         (0x01UL << WWDG_CR_T_Pos)               /*!< 0x00000001 */
23486 #define WWDG_CR_T_1                         (0x02UL << WWDG_CR_T_Pos)               /*!< 0x00000002 */
23487 #define WWDG_CR_T_2                         (0x04UL << WWDG_CR_T_Pos)               /*!< 0x00000004 */
23488 #define WWDG_CR_T_3                         (0x08UL << WWDG_CR_T_Pos)               /*!< 0x00000008 */
23489 #define WWDG_CR_T_4                         (0x10UL << WWDG_CR_T_Pos)               /*!< 0x00000010 */
23490 #define WWDG_CR_T_5                         (0x20UL << WWDG_CR_T_Pos)               /*!< 0x00000020 */
23491 #define WWDG_CR_T_6                         (0x40UL << WWDG_CR_T_Pos)               /*!< 0x00000040 */
23492 #define WWDG_CR_WDGA_Pos                    (7U)
23493 #define WWDG_CR_WDGA_Msk                    (0x1UL << WWDG_CR_WDGA_Pos)             /*!< 0x00000080 */
23494 #define WWDG_CR_WDGA                        WWDG_CR_WDGA_Msk                        /*!<Activation bit */
23495 
23496 /*******************  Bit definition for WWDG_CFR register  *******************/
23497 #define WWDG_CFR_W_Pos                      (0U)
23498 #define WWDG_CFR_W_Msk                      (0x7FUL << WWDG_CFR_W_Pos)              /*!< 0x0000007F */
23499 #define WWDG_CFR_W                          WWDG_CFR_W_Msk                          /*!<W[6:0] bits (7-bit window value) */
23500 #define WWDG_CFR_W_0                        (0x01UL << WWDG_CFR_W_Pos)              /*!< 0x00000001 */
23501 #define WWDG_CFR_W_1                        (0x02UL << WWDG_CFR_W_Pos)              /*!< 0x00000002 */
23502 #define WWDG_CFR_W_2                        (0x04UL << WWDG_CFR_W_Pos)              /*!< 0x00000004 */
23503 #define WWDG_CFR_W_3                        (0x08UL << WWDG_CFR_W_Pos)              /*!< 0x00000008 */
23504 #define WWDG_CFR_W_4                        (0x10UL << WWDG_CFR_W_Pos)              /*!< 0x00000010 */
23505 #define WWDG_CFR_W_5                        (0x20UL << WWDG_CFR_W_Pos)              /*!< 0x00000020 */
23506 #define WWDG_CFR_W_6                        (0x40UL << WWDG_CFR_W_Pos)              /*!< 0x00000040 */
23507 #define WWDG_CFR_WDGTB_Pos                  (11U)
23508 #define WWDG_CFR_WDGTB_Msk                  (0x7UL << WWDG_CFR_WDGTB_Pos)           /*!< 0x00003800 */
23509 #define WWDG_CFR_WDGTB                      WWDG_CFR_WDGTB_Msk                      /*!<WDGTB[2:0] bits (Timer Base) */
23510 #define WWDG_CFR_WDGTB_0                    (0x1UL << WWDG_CFR_WDGTB_Pos)           /*!< 0x00000800 */
23511 #define WWDG_CFR_WDGTB_1                    (0x2UL << WWDG_CFR_WDGTB_Pos)           /*!< 0x00001000 */
23512 #define WWDG_CFR_WDGTB_2                    (0x4UL << WWDG_CFR_WDGTB_Pos)           /*!< 0x00002000 */
23513 #define WWDG_CFR_EWI_Pos                    (9U)
23514 #define WWDG_CFR_EWI_Msk                    (0x1UL << WWDG_CFR_EWI_Pos)             /*!< 0x00000200 */
23515 #define WWDG_CFR_EWI                        WWDG_CFR_EWI_Msk                        /*!<Early Wakeup Interrupt */
23516 
23517 /*******************  Bit definition for WWDG_SR register  ********************/
23518 #define WWDG_SR_EWIF_Pos                    (0U)
23519 #define WWDG_SR_EWIF_Msk                    (0x1UL << WWDG_SR_EWIF_Pos)             /*!< 0x00000001 */
23520 #define WWDG_SR_EWIF                        WWDG_SR_EWIF_Msk                        /*!<Early Wakeup Interrupt Flag */
23521 
23522 /******************************************************************************/
23523 /*                                                                            */
23524 /*                       Public Key Accelerator (PKA)                         */
23525 /*                                                                            */
23526 /******************************************************************************/
23527 /*******************  Bit definition for PKA_CR register  *********************/
23528 #define PKA_CR_EN_Pos                       (0U)
23529 #define PKA_CR_EN_Msk                       (0x1UL << PKA_CR_EN_Pos)                       /*!< 0x00000001 */
23530 #define PKA_CR_EN                           PKA_CR_EN_Msk                                  /*!< PKA enable */
23531 #define PKA_CR_START_Pos                    (1U)
23532 #define PKA_CR_START_Msk                    (0x1UL << PKA_CR_START_Pos)                    /*!< 0x00000002 */
23533 #define PKA_CR_START                        PKA_CR_START_Msk                               /*!< Start operation */
23534 #define PKA_CR_MODE_Pos                     (8U)
23535 #define PKA_CR_MODE_Msk                     (0x3FUL << PKA_CR_MODE_Pos)                    /*!< 0x00003F00 */
23536 #define PKA_CR_MODE                         PKA_CR_MODE_Msk                                /*!< MODE[5:0] PKA operation code */
23537 #define PKA_CR_MODE_0                       (0x01UL << PKA_CR_MODE_Pos)                    /*!< 0x00000100 */
23538 #define PKA_CR_MODE_1                       (0x02UL << PKA_CR_MODE_Pos)                    /*!< 0x00000200 */
23539 #define PKA_CR_MODE_2                       (0x04UL << PKA_CR_MODE_Pos)                    /*!< 0x00000400 */
23540 #define PKA_CR_MODE_3                       (0x08UL << PKA_CR_MODE_Pos)                    /*!< 0x00000800 */
23541 #define PKA_CR_MODE_4                       (0x10UL << PKA_CR_MODE_Pos)                    /*!< 0x00001000 */
23542 #define PKA_CR_MODE_5                       (0x20UL << PKA_CR_MODE_Pos)                    /*!< 0x00002000 */
23543 #define PKA_CR_PROCENDIE_Pos                (17U)
23544 #define PKA_CR_PROCENDIE_Msk                (0x1UL << PKA_CR_PROCENDIE_Pos)                /*!< 0x00020000 */
23545 #define PKA_CR_PROCENDIE                    PKA_CR_PROCENDIE_Msk                           /*!< End of operation interrupt enable */
23546 #define PKA_CR_RAMERRIE_Pos                 (19U)
23547 #define PKA_CR_RAMERRIE_Msk                 (0x1UL << PKA_CR_RAMERRIE_Pos)                 /*!< 0x00080000 */
23548 #define PKA_CR_RAMERRIE                     PKA_CR_RAMERRIE_Msk                            /*!< RAM error interrupt enable */
23549 #define PKA_CR_ADDRERRIE_Pos                (20U)
23550 #define PKA_CR_ADDRERRIE_Msk                (0x1UL << PKA_CR_ADDRERRIE_Pos)                /*!< 0x00100000 */
23551 #define PKA_CR_ADDRERRIE                    PKA_CR_ADDRERRIE_Msk                           /*!< Address error interrupt enable */
23552 #define PKA_CR_OPERRIE_Pos                  (21U)
23553 #define PKA_CR_OPERRIE_Msk                  (0x1UL << PKA_CR_OPERRIE_Pos)                  /*!< 0x00200000 */
23554 #define PKA_CR_OPERRIE                      PKA_CR_OPERRIE_Msk                             /*!< Operation Error interrupt enable */
23555 
23556 /*******************  Bit definition for PKA_SR register  *********************/
23557 #define PKA_SR_INITOK_Pos                   (0U)
23558 #define PKA_SR_INITOK_Msk                   (0x1UL << PKA_SR_INITOK_Pos)                   /*!< 0x00000001 */
23559 #define PKA_SR_INITOK                       PKA_SR_INITOK_Msk                              /*!< PKA initialisation flag */
23560 #define PKA_SR_BUSY_Pos                     (16U)
23561 #define PKA_SR_BUSY_Msk                     (0x1UL << PKA_SR_BUSY_Pos)                     /*!< 0x00010000 */
23562 #define PKA_SR_BUSY                         PKA_SR_BUSY_Msk                                /*!< PKA operation is in progress */
23563 #define PKA_SR_PROCENDF_Pos                 (17U)
23564 #define PKA_SR_PROCENDF_Msk                 (0x1UL << PKA_SR_PROCENDF_Pos)                 /*!< 0x00020000 */
23565 #define PKA_SR_PROCENDF                     PKA_SR_PROCENDF_Msk                            /*!< PKA end of operation flag */
23566 #define PKA_SR_RAMERRF_Pos                  (19U)
23567 #define PKA_SR_RAMERRF_Msk                  (0x1UL << PKA_SR_RAMERRF_Pos)                  /*!< 0x00080000 */
23568 #define PKA_SR_RAMERRF                      PKA_SR_RAMERRF_Msk                             /*!< PKA RAM error flag */
23569 #define PKA_SR_ADDRERRF_Pos                 (20U)
23570 #define PKA_SR_ADDRERRF_Msk                 (0x1UL << PKA_SR_ADDRERRF_Pos)                 /*!< 0x00100000 */
23571 #define PKA_SR_ADDRERRF                     PKA_SR_ADDRERRF_Msk                            /*!< Address error flag */
23572 #define PKA_SR_OPERRF_Pos                   (21U)
23573 #define PKA_SR_OPERRF_Msk                   (0x1UL << PKA_SR_OPERRF_Pos)                   /*!< 0x00200000 */
23574 #define PKA_SR_OPERRF                       PKA_SR_OPERRF_Msk                              /*!< PKA operation Error flag*/
23575 
23576 /*******************  Bit definition for PKA_CLRFR register  ******************/
23577 #define PKA_CLRFR_PROCENDFC_Pos             (17U)
23578 #define PKA_CLRFR_PROCENDFC_Msk             (0x1UL << PKA_CLRFR_PROCENDFC_Pos)             /*!< 0x00020000 */
23579 #define PKA_CLRFR_PROCENDFC                 PKA_CLRFR_PROCENDFC_Msk                        /*!< Clear PKA end of operation flag */
23580 #define PKA_CLRFR_RAMERRFC_Pos              (19U)
23581 #define PKA_CLRFR_RAMERRFC_Msk              (0x1UL << PKA_CLRFR_RAMERRFC_Pos)              /*!< 0x00080000 */
23582 #define PKA_CLRFR_RAMERRFC                  PKA_CLRFR_RAMERRFC_Msk                         /*!< Clear PKA RAM error flag */
23583 #define PKA_CLRFR_ADDRERRFC_Pos             (20U)
23584 #define PKA_CLRFR_ADDRERRFC_Msk             (0x1UL << PKA_CLRFR_ADDRERRFC_Pos)             /*!< 0x00100000 */
23585 #define PKA_CLRFR_ADDRERRFC                 PKA_CLRFR_ADDRERRFC_Msk                        /*!< Clear address error flag */
23586 #define PKA_CLRFR_OPERRFC_Pos               (21U)
23587 #define PKA_CLRFR_OPERRFC_Msk               (0x1UL << PKA_CLRFR_OPERRFC_Pos)               /*!< 0x00200000 */
23588 #define PKA_CLRFR_OPERRFC                   PKA_CLRFR_OPERRFC_Msk                          /*!< Clear PKA operation Error flag*/
23589 
23590 /*******************  Bits definition for PKA RAM  *************************/
23591 #define PKA_RAM_OFFSET                                 (0x0400UL)                          /*!< PKA RAM address offset */
23592 
23593 /* Compute Montgomery parameter input data */
23594 #define PKA_MONTGOMERY_PARAM_IN_MOD_NB_BITS            ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus number of bits */
23595 #define PKA_MONTGOMERY_PARAM_IN_MODULUS                ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus */
23596 
23597 /* Compute Montgomery parameter output data */
23598 #define PKA_MONTGOMERY_PARAM_OUT_PARAMETER             ((0x0620UL - PKA_RAM_OFFSET)>>2)    /*!< Output Montgomery parameter */
23599 
23600 /* Compute modular exponentiation input data */
23601 #define PKA_MODULAR_EXP_IN_EXP_NB_BITS                 ((0x0400UL - PKA_RAM_OFFSET)>>2)    /*!< Input exponent number of bits */
23602 #define PKA_MODULAR_EXP_IN_OP_NB_BITS                  ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23603 #define PKA_MODULAR_EXP_IN_MONTGOMERY_PARAM            ((0x0620UL - PKA_RAM_OFFSET)>>2)    /*!< Input storage area for Montgomery parameter */
23604 #define PKA_MODULAR_EXP_IN_EXPONENT_BASE               ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input base of the exponentiation */
23605 #define PKA_MODULAR_EXP_IN_EXPONENT                    ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Input exponent to process */
23606 #define PKA_MODULAR_EXP_IN_MODULUS                     ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus */
23607 #define PKA_MODULAR_EXP_PROTECT_IN_EXPONENT_BASE       ((0x16C8UL - PKA_RAM_OFFSET)>>2)    /*!< Input base of the protected exponentiation */
23608 #define PKA_MODULAR_EXP_PROTECT_IN_EXPONENT            ((0x14B8UL - PKA_RAM_OFFSET)>>2)    /*!< Input exponent to process protected exponentiation*/
23609 #define PKA_MODULAR_EXP_PROTECT_IN_MODULUS             ((0x0838UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus to process protected exponentiation */
23610 #define PKA_MODULAR_EXP_PROTECT_IN_PHI                 ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input phi to process protected exponentiation */
23611 
23612 /* Compute modular exponentiation output data */
23613 #define PKA_MODULAR_EXP_OUT_RESULT                     ((0x0838UL - PKA_RAM_OFFSET)>>2)    /*!< Output result of the exponentiation */
23614 #define PKA_MODULAR_EXP_OUT_ERROR                      ((0x1298UL - PKA_RAM_OFFSET)>>2)    /*!< Output error of the exponentiation */
23615 #define PKA_MODULAR_EXP_OUT_MONTGOMERY_PARAM           ((0x0620UL - PKA_RAM_OFFSET)>>2)    /*!< Output storage area for Montgomery parameter */
23616 #define PKA_MODULAR_EXP_OUT_EXPONENT_BASE              ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Output base of the exponentiation */
23617 
23618 /* Compute ECC scalar multiplication input data */
23619 #define PKA_ECC_SCALAR_MUL_IN_EXP_NB_BITS              ((0x0400UL - PKA_RAM_OFFSET)>>2)    /*!< Input curve prime order n number of bits */
23620 #define PKA_ECC_SCALAR_MUL_IN_OP_NB_BITS               ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus number of bits */
23621 #define PKA_ECC_SCALAR_MUL_IN_A_COEFF_SIGN             ((0x0410UL - PKA_RAM_OFFSET)>>2)    /*!< Input sign of the 'a' coefficient */
23622 #define PKA_ECC_SCALAR_MUL_IN_A_COEFF                  ((0x0418UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve 'a' coefficient */
23623 #define PKA_ECC_SCALAR_MUL_IN_B_COEFF                  ((0x0520UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve 'b' coefficient */
23624 #define PKA_ECC_SCALAR_MUL_IN_MOD_GF                   ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus GF(p) */
23625 #define PKA_ECC_SCALAR_MUL_IN_K                        ((0x12A0UL - PKA_RAM_OFFSET)>>2)    /*!< Input 'k' of KP */
23626 #define PKA_ECC_SCALAR_MUL_IN_INITIAL_POINT_X          ((0x0578UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P X coordinate */
23627 #define PKA_ECC_SCALAR_MUL_IN_INITIAL_POINT_Y          ((0x0470UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P Y coordinate */
23628 #define PKA_ECC_SCALAR_MUL_IN_N_PRIME_ORDER            ((0x0F88UL - PKA_RAM_OFFSET)>>2)    /*!< Input prime order n */
23629 
23630 /* Compute ECC scalar multiplication output data */
23631 #define PKA_ECC_SCALAR_MUL_OUT_RESULT_X                ((0x0578UL - PKA_RAM_OFFSET)>>2)    /*!< Output result X coordinate */
23632 #define PKA_ECC_SCALAR_MUL_OUT_RESULT_Y                ((0x05D0UL - PKA_RAM_OFFSET)>>2)    /*!< Output result Y coordinate */
23633 #define PKA_ECC_SCALAR_MUL_OUT_ERROR                   ((0x0680UL - PKA_RAM_OFFSET)>>2)    /*!< Output result error */
23634 
23635 /* Point check input data */
23636 #define PKA_POINT_CHECK_IN_MOD_NB_BITS                 ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus number of bits */
23637 #define PKA_POINT_CHECK_IN_A_COEFF_SIGN                ((0x0410UL - PKA_RAM_OFFSET)>>2)    /*!< Input sign of the 'a' coefficient */
23638 #define PKA_POINT_CHECK_IN_A_COEFF                     ((0x0418UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve 'a' coefficient */
23639 #define PKA_POINT_CHECK_IN_B_COEFF                     ((0x0520UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve 'b' coefficient */
23640 #define PKA_POINT_CHECK_IN_MOD_GF                      ((0x0470UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus GF(p) */
23641 #define PKA_POINT_CHECK_IN_INITIAL_POINT_X             ((0x0578UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P X coordinate */
23642 #define PKA_POINT_CHECK_IN_INITIAL_POINT_Y             ((0x05D0UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P Y coordinate */
23643 #define PKA_POINT_CHECK_IN_MONTGOMERY_PARAM            ((0x04C8UL - PKA_RAM_OFFSET)>>2)    /*!< Input storage area for Montgomery parameter */
23644 
23645 /* Point check output data */
23646 #define PKA_POINT_CHECK_OUT_ERROR                      ((0x0680UL - PKA_RAM_OFFSET)>>2)    /*!< Output error */
23647 
23648 /* ECDSA signature input data */
23649 #define PKA_ECDSA_SIGN_IN_ORDER_NB_BITS                ((0x0400UL - PKA_RAM_OFFSET)>>2)    /*!< Input order number of bits */
23650 #define PKA_ECDSA_SIGN_IN_MOD_NB_BITS                  ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus number of bits */
23651 #define PKA_ECDSA_SIGN_IN_A_COEFF_SIGN                 ((0x0410UL - PKA_RAM_OFFSET)>>2)    /*!< Input sign of the 'a' coefficient */
23652 #define PKA_ECDSA_SIGN_IN_A_COEFF                      ((0x0418UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve 'a' coefficient */
23653 #define PKA_ECDSA_SIGN_IN_B_COEFF                      ((0x0520UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve 'b' coefficient */
23654 #define PKA_ECDSA_SIGN_IN_MOD_GF                       ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus GF(p) */
23655 #define PKA_ECDSA_SIGN_IN_K                            ((0x12A0UL - PKA_RAM_OFFSET)>>2)    /*!< Input k value of the ECDSA */
23656 #define PKA_ECDSA_SIGN_IN_INITIAL_POINT_X              ((0x0578UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P X coordinate */
23657 #define PKA_ECDSA_SIGN_IN_INITIAL_POINT_Y              ((0x0470UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P Y coordinate */
23658 #define PKA_ECDSA_SIGN_IN_HASH_E                       ((0x0FE8UL - PKA_RAM_OFFSET)>>2)    /*!< Input e, hash of the message */
23659 #define PKA_ECDSA_SIGN_IN_PRIVATE_KEY_D                ((0x0F28UL - PKA_RAM_OFFSET)>>2)    /*!< Input d, private key */
23660 #define PKA_ECDSA_SIGN_IN_ORDER_N                      ((0x0F88UL - PKA_RAM_OFFSET)>>2)    /*!< Input n, order of the curve */
23661 
23662 /* ECDSA signature output data */
23663 #define PKA_ECDSA_SIGN_OUT_ERROR                       ((0x0FE0UL - PKA_RAM_OFFSET)>>2)    /*!< Output error */
23664 #define PKA_ECDSA_SIGN_OUT_SIGNATURE_R                 ((0x0730UL - PKA_RAM_OFFSET)>>2)    /*!< Output signature r */
23665 #define PKA_ECDSA_SIGN_OUT_SIGNATURE_S                 ((0x0788UL - PKA_RAM_OFFSET)>>2)    /*!< Output signature s */
23666 #define PKA_ECDSA_SIGN_OUT_FINAL_POINT_X               ((0x1400UL - PKA_RAM_OFFSET)>>2)    /*!< Extended output result point X coordinate */
23667 #define PKA_ECDSA_SIGN_OUT_FINAL_POINT_Y               ((0x1458UL - PKA_RAM_OFFSET)>>2)    /*!< Extended output result point Y coordinate */
23668 
23669 /* ECDSA verification input data */
23670 #define PKA_ECDSA_VERIF_IN_ORDER_NB_BITS               ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input order number of bits */
23671 #define PKA_ECDSA_VERIF_IN_MOD_NB_BITS                 ((0x04C8UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus number of bits */
23672 #define PKA_ECDSA_VERIF_IN_A_COEFF_SIGN                ((0x0468UL - PKA_RAM_OFFSET)>>2)    /*!< Input sign of the 'a' coefficient */
23673 #define PKA_ECDSA_VERIF_IN_A_COEFF                     ((0x0470UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve 'a' coefficient */
23674 #define PKA_ECDSA_VERIF_IN_MOD_GF                      ((0x04D0UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus GF(p) */
23675 #define PKA_ECDSA_VERIF_IN_INITIAL_POINT_X             ((0x0678UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P X coordinate */
23676 #define PKA_ECDSA_VERIF_IN_INITIAL_POINT_Y             ((0x06D0UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P Y coordinate */
23677 #define PKA_ECDSA_VERIF_IN_PUBLIC_KEY_POINT_X          ((0x12F8UL - PKA_RAM_OFFSET)>>2)    /*!< Input public key point X coordinate */
23678 #define PKA_ECDSA_VERIF_IN_PUBLIC_KEY_POINT_Y          ((0x1350UL - PKA_RAM_OFFSET)>>2)    /*!< Input public key point Y coordinate */
23679 #define PKA_ECDSA_VERIF_IN_SIGNATURE_R                 ((0x10E0UL - PKA_RAM_OFFSET)>>2)    /*!< Input r, part of the signature */
23680 #define PKA_ECDSA_VERIF_IN_SIGNATURE_S                 ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input s, part of the signature */
23681 #define PKA_ECDSA_VERIF_IN_HASH_E                      ((0x13A8UL - PKA_RAM_OFFSET)>>2)    /*!< Input e, hash of the message */
23682 #define PKA_ECDSA_VERIF_IN_ORDER_N                     ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input n, order of the curve */
23683 
23684 /* ECDSA verification output data */
23685 #define PKA_ECDSA_VERIF_OUT_RESULT                     ((0x05D0UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23686 
23687 /* RSA CRT exponentiation input data */
23688 #define PKA_RSA_CRT_EXP_IN_MOD_NB_BITS                 ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operands number of bits */
23689 #define PKA_RSA_CRT_EXP_IN_DP_CRT                      ((0x0730UL - PKA_RAM_OFFSET)>>2)    /*!< Input Dp CRT parameter */
23690 #define PKA_RSA_CRT_EXP_IN_DQ_CRT                      ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Input Dq CRT parameter */
23691 #define PKA_RSA_CRT_EXP_IN_QINV_CRT                    ((0x0948UL - PKA_RAM_OFFSET)>>2)    /*!< Input qInv CRT parameter */
23692 #define PKA_RSA_CRT_EXP_IN_PRIME_P                     ((0x0B60UL - PKA_RAM_OFFSET)>>2)    /*!< Input Prime p */
23693 #define PKA_RSA_CRT_EXP_IN_PRIME_Q                     ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input Prime q */
23694 #define PKA_RSA_CRT_EXP_IN_EXPONENT_BASE               ((0x12A0UL - PKA_RAM_OFFSET)>>2)    /*!< Input base of the exponentiation */
23695 
23696 /* RSA CRT exponentiation output data */
23697 #define PKA_RSA_CRT_EXP_OUT_RESULT                     ((0x0838UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23698 
23699 /* Modular reduction input data */
23700 #define PKA_MODULAR_REDUC_IN_OP_LENGTH                 ((0x0400UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand length */
23701 #define PKA_MODULAR_REDUC_IN_MOD_LENGTH                ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus length */
23702 #define PKA_MODULAR_REDUC_IN_OPERAND                   ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand */
23703 #define PKA_MODULAR_REDUC_IN_MODULUS                   ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus */
23704 
23705 /* Modular reduction output data */
23706 #define PKA_MODULAR_REDUC_OUT_RESULT                   ((0xE78UL - PKA_RAM_OFFSET)>>2)     /*!< Output result */
23707 
23708 /* Arithmetic addition input data */
23709 #define PKA_ARITHMETIC_ADD_IN_OP_NB_BITS               ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23710 #define PKA_ARITHMETIC_ADD_IN_OP1                      ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23711 #define PKA_ARITHMETIC_ADD_IN_OP2                      ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23712 
23713 /* Arithmetic addition output data */
23714 #define PKA_ARITHMETIC_ADD_OUT_RESULT                  ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23715 
23716 /* Arithmetic subtraction input data */
23717 #define PKA_ARITHMETIC_SUB_IN_OP_NB_BITS               ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23718 #define PKA_ARITHMETIC_SUB_IN_OP1                      ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23719 #define PKA_ARITHMETIC_SUB_IN_OP2                      ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23720 
23721 /* Arithmetic subtraction output data */
23722 #define PKA_ARITHMETIC_SUB_OUT_RESULT                  ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23723 
23724 /* Arithmetic multiplication input data */
23725 #define PKA_ARITHMETIC_MUL_NB_BITS                     ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23726 #define PKA_ARITHMETIC_MUL_IN_OP1                      ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23727 #define PKA_ARITHMETIC_MUL_IN_OP2                      ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23728 
23729 /* Arithmetic multiplication output data */
23730 #define PKA_ARITHMETIC_MUL_OUT_RESULT                  ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23731 
23732 /* Comparison input data */
23733 #define PKA_COMPARISON_IN_OP_NB_BITS                   ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23734 #define PKA_COMPARISON_IN_OP1                          ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23735 #define PKA_COMPARISON_IN_OP2                          ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23736 
23737 /* Comparison output data */
23738 #define PKA_COMPARISON_OUT_RESULT                      ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23739 
23740 /* Modular addition input data */
23741 #define PKA_MODULAR_ADD_NB_BITS                        ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23742 #define PKA_MODULAR_ADD_IN_OP1                         ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23743 #define PKA_MODULAR_ADD_IN_OP2                         ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23744 #define PKA_MODULAR_ADD_IN_OP3_MOD                     ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op3 (modulus) */
23745 
23746 /* Modular addition output data */
23747 #define PKA_MODULAR_ADD_OUT_RESULT                     ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23748 
23749 /* Modular inversion input data */
23750 #define PKA_MODULAR_INV_NB_BITS                        ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23751 #define PKA_MODULAR_INV_IN_OP1                         ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23752 #define PKA_MODULAR_INV_IN_OP2_MOD                     ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 (modulus) */
23753 
23754 /* Modular inversion output data */
23755 #define PKA_MODULAR_INV_OUT_RESULT                     ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23756 
23757 /* Modular subtraction input data */
23758 #define PKA_MODULAR_SUB_IN_OP_NB_BITS                  ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23759 #define PKA_MODULAR_SUB_IN_OP1                         ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23760 #define PKA_MODULAR_SUB_IN_OP2                         ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23761 #define PKA_MODULAR_SUB_IN_OP3_MOD                     ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op3 */
23762 
23763 /* Modular subtraction output data */
23764 #define PKA_MODULAR_SUB_OUT_RESULT                     ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23765 
23766 /* Montgomery multiplication input data */
23767 #define PKA_MONTGOMERY_MUL_IN_OP_NB_BITS               ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23768 #define PKA_MONTGOMERY_MUL_IN_OP1                      ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23769 #define PKA_MONTGOMERY_MUL_IN_OP2                      ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23770 #define PKA_MONTGOMERY_MUL_IN_OP3_MOD                  ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus */
23771 
23772 /* Montgomery multiplication output data */
23773 #define PKA_MONTGOMERY_MUL_OUT_RESULT                  ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result */
23774 
23775 /* Generic Arithmetic input data */
23776 #define PKA_ARITHMETIC_ALL_OPS_NB_BITS                 ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand number of bits */
23777 #define PKA_ARITHMETIC_ALL_OPS_IN_OP1                  ((0x0A50UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op1 */
23778 #define PKA_ARITHMETIC_ALL_OPS_IN_OP2                  ((0x0C68UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23779 #define PKA_ARITHMETIC_ALL_OPS_IN_OP3                  ((0x1088UL - PKA_RAM_OFFSET)>>2)    /*!< Input operand op2 */
23780 
23781 /* Generic Arithmetic output data */
23782 #define PKA_ARITHMETIC_ALL_OPS_OUT_RESULT              ((0x0E78UL - PKA_RAM_OFFSET)>>2)    /*!< Output result for arithmetic operations */
23783 
23784 /* Compute ECC complete addition input data */
23785 #define PKA_ECC_COMPLETE_ADD_IN_MOD_NB_BITS            ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input Modulus number of bits */
23786 #define PKA_ECC_COMPLETE_ADD_IN_A_COEFF_SIGN           ((0x0410UL - PKA_RAM_OFFSET)>>2)    /*!< Input sign of the 'a' coefficient */
23787 #define PKA_ECC_COMPLETE_ADD_IN_A_COEFF                ((0x0418UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve '|a|' coefficient */
23788 #define PKA_ECC_COMPLETE_ADD_IN_MOD_P                  ((0x0470UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus GF(p) */
23789 #define PKA_ECC_COMPLETE_ADD_IN_POINT1_X               ((0x0628UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P X coordinate */
23790 #define PKA_ECC_COMPLETE_ADD_IN_POINT1_Y               ((0x0680UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P Y coordinate */
23791 #define PKA_ECC_COMPLETE_ADD_IN_POINT1_Z               ((0x06D8UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P Z coordinate */
23792 #define PKA_ECC_COMPLETE_ADD_IN_POINT2_X               ((0x0730UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point Q X coordinate */
23793 #define PKA_ECC_COMPLETE_ADD_IN_POINT2_Y               ((0x0788UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point Q Y coordinate */
23794 #define PKA_ECC_COMPLETE_ADD_IN_POINT2_Z               ((0x07E0UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point Q Z coordinate */
23795 
23796 /* Compute ECC complete addition output data */
23797 #define PKA_ECC_COMPLETE_ADD_OUT_RESULT_X              ((0x0D60UL - PKA_RAM_OFFSET)>>2)    /*!< Output result X coordinate */
23798 #define PKA_ECC_COMPLETE_ADD_OUT_RESULT_Y              ((0x0DB8UL - PKA_RAM_OFFSET)>>2)    /*!< Output result Y coordinate */
23799 #define PKA_ECC_COMPLETE_ADD_OUT_RESULT_Z              ((0x0E10UL - PKA_RAM_OFFSET)>>2)    /*!< Output result Z coordinate */
23800 
23801 /* Compute ECC double base ladder input data */
23802 #define PKA_ECC_DOUBLE_LADDER_IN_PRIME_ORDER_NB_BITS   ((0x0400UL - PKA_RAM_OFFSET)>>2)    /*!< Input n, order of the curve */
23803 #define PKA_ECC_DOUBLE_LADDER_IN_MOD_NB_BITS           ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input Modulus number of bits */
23804 #define PKA_ECC_DOUBLE_LADDER_IN_A_COEFF_SIGN          ((0x0410UL - PKA_RAM_OFFSET)>>2)    /*!< Input sign of the 'a' coefficient */
23805 #define PKA_ECC_DOUBLE_LADDER_IN_A_COEFF               ((0x0418UL - PKA_RAM_OFFSET)>>2)    /*!< Input ECC curve '|a|' coefficient */
23806 #define PKA_ECC_DOUBLE_LADDER_IN_MOD_P                 ((0x0470UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus GF(p) */
23807 #define PKA_ECC_DOUBLE_LADDER_IN_K_INTEGER             ((0x0520UL - PKA_RAM_OFFSET)>>2)    /*!< Input 'k' integer coefficient */
23808 #define PKA_ECC_DOUBLE_LADDER_IN_M_INTEGER             ((0x0578UL - PKA_RAM_OFFSET)>>2)    /*!< Input 'm' integer coefficient */
23809 #define PKA_ECC_DOUBLE_LADDER_IN_POINT1_X              ((0x0628UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P X coordinate */
23810 #define PKA_ECC_DOUBLE_LADDER_IN_POINT1_Y              ((0x0680UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P Y coordinate */
23811 #define PKA_ECC_DOUBLE_LADDER_IN_POINT1_Z              ((0x06D8UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point P Z coordinate */
23812 #define PKA_ECC_DOUBLE_LADDER_IN_POINT2_X              ((0x0730UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point Q X coordinate */
23813 #define PKA_ECC_DOUBLE_LADDER_IN_POINT2_Y              ((0x0788UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point Q Y coordinate */
23814 #define PKA_ECC_DOUBLE_LADDER_IN_POINT2_Z              ((0x07E0UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial point Q Z coordinate */
23815 
23816 /* Compute ECC double base ladder output data */
23817 #define PKA_ECC_DOUBLE_LADDER_OUT_RESULT_X             ((0x0578UL - PKA_RAM_OFFSET)>>2)    /*!< Output result X coordinate (affine coordinate) */
23818 #define PKA_ECC_DOUBLE_LADDER_OUT_RESULT_Y             ((0x05D0UL - PKA_RAM_OFFSET)>>2)    /*!< Output result Y coordinate (affine coordinate) */
23819 #define PKA_ECC_DOUBLE_LADDER_OUT_ERROR                ((0x0520UL - PKA_RAM_OFFSET)>>2)    /*!< Output result error */
23820 
23821 /* Compute ECC projective to affine conversion input data */
23822 #define PKA_ECC_PROJECTIVE_AFF_IN_MOD_NB_BITS          ((0x0408UL - PKA_RAM_OFFSET)>>2)    /*!< Input Modulus number of bits */
23823 #define PKA_ECC_PROJECTIVE_AFF_IN_MOD_P                ((0x0470UL - PKA_RAM_OFFSET)>>2)    /*!< Input modulus GF(p) */
23824 #define PKA_ECC_PROJECTIVE_AFF_IN_POINT_X              ((0x0D60UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial projective point P X coordinate */
23825 #define PKA_ECC_PROJECTIVE_AFF_IN_POINT_Y              ((0x0DB8UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial projective point P Y coordinate */
23826 #define PKA_ECC_PROJECTIVE_AFF_IN_POINT_Z              ((0x0E10UL - PKA_RAM_OFFSET)>>2)    /*!< Input initial projective point P Z coordinate */
23827 #define PKA_ECC_PROJECTIVE_AFF_IN_MONTGOMERY_PARAM_R2  ((0x04C8UL - PKA_RAM_OFFSET)>>2)    /*!< Input storage area for Montgomery parameter */
23828 
23829 /* Compute ECC projective to affine conversion output data */
23830 #define PKA_ECC_PROJECTIVE_AFF_OUT_RESULT_X            ((0x0578UL - PKA_RAM_OFFSET)>>2)    /*!< Output result x affine coordinate */
23831 #define PKA_ECC_PROJECTIVE_AFF_OUT_RESULT_Y            ((0x05D0UL - PKA_RAM_OFFSET)>>2)    /*!< Output result y affine coordinate */
23832 #define PKA_ECC_PROJECTIVE_AFF_OUT_ERROR               ((0x0680UL - PKA_RAM_OFFSET)>>2)    /*!< Output result error */
23833 
23834 /** @addtogroup STM32U5xx_Peripheral_Exported_macros
23835   * @{
23836   */
23837 
23838 /******************************* ADC Instances ********************************/
23839 /******************************* ADC Instances ********************************/
23840 #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1_NS)||                   \
23841                                        ((INSTANCE) == ADC1_S) ||                   \
23842                                        ((INSTANCE) == ADC4_NS)||                   \
23843                                        ((INSTANCE) == ADC4_S))
23844 
23845 #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == ADC1_NS) || \
23846                                                     ((INSTANCE) == ADC1_S))
23847 
23848 #define IS_ADC_COMMON_INSTANCE(INSTANCE) (((INSTANCE) == ADC12_COMMON_NS) ||         \
23849                                           ((INSTANCE) == ADC12_COMMON_S)  ||         \
23850                                           ((INSTANCE) == ADC4_COMMON_NS)  ||         \
23851                                           ((INSTANCE) == ADC4_COMMON_S))
23852 
23853 /******************************* AES Instances ********************************/
23854 #define IS_AES_ALL_INSTANCE(INSTANCE) (((INSTANCE) == AES_NS) || ((INSTANCE) == AES_S))
23855 
23856 /******************************* PKA Instances ********************************/
23857 #define IS_PKA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == PKA_NS) || ((INSTANCE) == PKA_S))
23858 
23859 /******************************** FDCAN Instances *****************************/
23860 #define IS_FDCAN_ALL_INSTANCE(INSTANCE) (((INSTANCE) == FDCAN1_NS) || ((INSTANCE) == FDCAN1_S))
23861 
23862 /******************************** COMP Instances ******************************/
23863 #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1_NS) || ((INSTANCE) == COMP1_S) || \
23864                                         ((INSTANCE) == COMP2_NS) || ((INSTANCE) == COMP2_S))
23865 
23866 /******************** COMP Instances with window mode capability **************/
23867 #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) (((INSTANCE) == COMP2_NS) || ((INSTANCE) == COMP2_S))
23868 
23869 /******************************* CORDIC Instances *****************************/
23870 #define IS_CORDIC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == CORDIC_NS) || ((INSTANCE) == CORDIC_S))
23871 
23872 /******************************* CRC Instances ********************************/
23873 #define IS_CRC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == CRC_NS) || ((INSTANCE) == CRC_S))
23874 
23875 /******************************* DAC Instances ********************************/
23876 #define IS_DAC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DAC1_NS) || ((INSTANCE) == DAC1_S))
23877 
23878 /******************************* DELAYBLOCK Instances *******************************/
23879 #define IS_DLYB_ALL_INSTANCE(INSTANCE)  (((INSTANCE) == DLYB_SDMMC1_NS)   || \
23880                                          ((INSTANCE) == DLYB_SDMMC2_NS)   || \
23881                                          ((INSTANCE) == DLYB_SDMMC1_S)    || \
23882                                          ((INSTANCE) == DLYB_SDMMC2_S)    || \
23883                                          ((INSTANCE) == DLYB_OCTOSPI1_NS) || \
23884                                          ((INSTANCE) == DLYB_OCTOSPI2_NS) || \
23885                                          ((INSTANCE) == DLYB_OCTOSPI1_S)  || \
23886                                          ((INSTANCE) == DLYB_OCTOSPI2_S ))
23887 
23888 /******************************** DMA Instances *******************************/
23889 #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPDMA1_Channel0_NS)  || ((INSTANCE) == GPDMA1_Channel0_S)  || \
23890                                        ((INSTANCE) == GPDMA1_Channel1_NS)  || ((INSTANCE) == GPDMA1_Channel1_S)  || \
23891                                        ((INSTANCE) == GPDMA1_Channel2_NS)  || ((INSTANCE) == GPDMA1_Channel2_S)  || \
23892                                        ((INSTANCE) == GPDMA1_Channel3_NS)  || ((INSTANCE) == GPDMA1_Channel3_S)  || \
23893                                        ((INSTANCE) == GPDMA1_Channel4_NS)  || ((INSTANCE) == GPDMA1_Channel4_S)  || \
23894                                        ((INSTANCE) == GPDMA1_Channel5_NS)  || ((INSTANCE) == GPDMA1_Channel5_S)  || \
23895                                        ((INSTANCE) == GPDMA1_Channel6_NS)  || ((INSTANCE) == GPDMA1_Channel6_S)  || \
23896                                        ((INSTANCE) == GPDMA1_Channel7_NS)  || ((INSTANCE) == GPDMA1_Channel7_S)  || \
23897                                        ((INSTANCE) == GPDMA1_Channel8_NS)  || ((INSTANCE) == GPDMA1_Channel8_S)  || \
23898                                        ((INSTANCE) == GPDMA1_Channel9_NS)  || ((INSTANCE) == GPDMA1_Channel9_S)  || \
23899                                        ((INSTANCE) == GPDMA1_Channel10_NS) || ((INSTANCE) == GPDMA1_Channel10_S) || \
23900                                        ((INSTANCE) == GPDMA1_Channel11_NS) || ((INSTANCE) == GPDMA1_Channel11_S) || \
23901                                        ((INSTANCE) == GPDMA1_Channel12_NS) || ((INSTANCE) == GPDMA1_Channel12_S) || \
23902                                        ((INSTANCE) == GPDMA1_Channel13_NS) || ((INSTANCE) == GPDMA1_Channel13_S) || \
23903                                        ((INSTANCE) == GPDMA1_Channel14_NS) || ((INSTANCE) == GPDMA1_Channel14_S) || \
23904                                        ((INSTANCE) == GPDMA1_Channel15_NS) || ((INSTANCE) == GPDMA1_Channel15_S) || \
23905                                        ((INSTANCE) == LPDMA1_Channel0_NS)  || ((INSTANCE) == LPDMA1_Channel0_S)  || \
23906                                        ((INSTANCE) == LPDMA1_Channel1_NS)  || ((INSTANCE) == LPDMA1_Channel1_S)  || \
23907                                        ((INSTANCE) == LPDMA1_Channel2_NS)  || ((INSTANCE) == LPDMA1_Channel2_S)  || \
23908                                        ((INSTANCE) == LPDMA1_Channel3_NS)  || ((INSTANCE) == LPDMA1_Channel3_S))
23909 
23910 #define IS_GPDMA_INSTANCE(INSTANCE)   (((INSTANCE) == GPDMA1_Channel0_NS)  || ((INSTANCE) == GPDMA1_Channel0_S)  || \
23911                                        ((INSTANCE) == GPDMA1_Channel1_NS)  || ((INSTANCE) == GPDMA1_Channel1_S)  || \
23912                                        ((INSTANCE) == GPDMA1_Channel2_NS)  || ((INSTANCE) == GPDMA1_Channel2_S)  || \
23913                                        ((INSTANCE) == GPDMA1_Channel3_NS)  || ((INSTANCE) == GPDMA1_Channel3_S)  || \
23914                                        ((INSTANCE) == GPDMA1_Channel4_NS)  || ((INSTANCE) == GPDMA1_Channel4_S)  || \
23915                                        ((INSTANCE) == GPDMA1_Channel5_NS)  || ((INSTANCE) == GPDMA1_Channel5_S)  || \
23916                                        ((INSTANCE) == GPDMA1_Channel6_NS)  || ((INSTANCE) == GPDMA1_Channel6_S)  || \
23917                                        ((INSTANCE) == GPDMA1_Channel7_NS)  || ((INSTANCE) == GPDMA1_Channel7_S)  || \
23918                                        ((INSTANCE) == GPDMA1_Channel8_NS)  || ((INSTANCE) == GPDMA1_Channel8_S)  || \
23919                                        ((INSTANCE) == GPDMA1_Channel9_NS)  || ((INSTANCE) == GPDMA1_Channel9_S)  || \
23920                                        ((INSTANCE) == GPDMA1_Channel10_NS) || ((INSTANCE) == GPDMA1_Channel10_S) || \
23921                                        ((INSTANCE) == GPDMA1_Channel11_NS) || ((INSTANCE) == GPDMA1_Channel11_S) || \
23922                                        ((INSTANCE) == GPDMA1_Channel12_NS) || ((INSTANCE) == GPDMA1_Channel12_S) || \
23923                                        ((INSTANCE) == GPDMA1_Channel13_NS) || ((INSTANCE) == GPDMA1_Channel13_S) || \
23924                                        ((INSTANCE) == GPDMA1_Channel14_NS) || ((INSTANCE) == GPDMA1_Channel14_S) || \
23925                                        ((INSTANCE) == GPDMA1_Channel15_NS) || ((INSTANCE) == GPDMA1_Channel15_S))
23926 
23927 #define IS_LPDMA_INSTANCE(INSTANCE)   (((INSTANCE) == LPDMA1_Channel0_NS)  || ((INSTANCE) == LPDMA1_Channel0_S)  || \
23928                                        ((INSTANCE) == LPDMA1_Channel1_NS)  || ((INSTANCE) == LPDMA1_Channel1_S)  || \
23929                                        ((INSTANCE) == LPDMA1_Channel2_NS)  || ((INSTANCE) == LPDMA1_Channel2_S)  || \
23930                                        ((INSTANCE) == LPDMA1_Channel3_NS)  || ((INSTANCE) == LPDMA1_Channel3_S))
23931 
23932 #define IS_DMA_2D_ADDRESSING_INSTANCE(INSTANCE) (((INSTANCE) == GPDMA1_Channel12_NS)  || ((INSTANCE) == GPDMA1_Channel12_S)  || \
23933                                                  ((INSTANCE) == GPDMA1_Channel13_NS)  || ((INSTANCE) == GPDMA1_Channel13_S)  || \
23934                                                  ((INSTANCE) == GPDMA1_Channel14_NS)  || ((INSTANCE) == GPDMA1_Channel14_S)  || \
23935                                                  ((INSTANCE) == GPDMA1_Channel15_NS)  || ((INSTANCE) == GPDMA1_Channel15_S))
23936 
23937 /****************************** OTFDEC Instances ********************************/
23938 #define IS_OTFDEC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OTFDEC1_NS) || ((INSTANCE) == OTFDEC1_S)  || \
23939                                           ((INSTANCE) == OTFDEC2_NS) || ((INSTANCE) == OTFDEC2_S))
23940 
23941 /****************************** RAMCFG Instances ********************************/
23942 #define IS_RAMCFG_ALL_INSTANCE(INSTANCE) (((INSTANCE) == RAMCFG_SRAM1_NS)  || ((INSTANCE) == RAMCFG_SRAM1_S)  || \
23943                                           ((INSTANCE) == RAMCFG_SRAM2_NS)  || ((INSTANCE) == RAMCFG_SRAM2_S)  || \
23944                                           ((INSTANCE) == RAMCFG_SRAM3_NS)  || ((INSTANCE) == RAMCFG_SRAM3_S)  || \
23945                                           ((INSTANCE) == RAMCFG_SRAM4_NS)  || ((INSTANCE) == RAMCFG_SRAM4_S)  || \
23946                                           ((INSTANCE) == RAMCFG_BKPRAM_NS) || ((INSTANCE) == RAMCFG_BKPRAM_S))
23947 
23948 /***************************** RAMCFG ECC Instances *****************************/
23949 #define IS_RAMCFG_ECC_INSTANCE(INSTANCE) (((INSTANCE) == RAMCFG_SRAM2_NS)  || ((INSTANCE) == RAMCFG_SRAM2_S)  || \
23950                                           ((INSTANCE) == RAMCFG_SRAM3_NS)  || ((INSTANCE) == RAMCFG_SRAM3_S)  || \
23951                                           ((INSTANCE) == RAMCFG_BKPRAM_NS) || ((INSTANCE) == RAMCFG_BKPRAM_S))
23952 
23953 /***************************** RAMCFG IT Instances ******************************/
23954 #define IS_RAMCFG_IT_INSTANCE(INSTANCE) (((INSTANCE) == RAMCFG_SRAM2_NS)  || ((INSTANCE) == RAMCFG_SRAM2_S)  || \
23955                                          ((INSTANCE) == RAMCFG_SRAM3_NS)  || ((INSTANCE) == RAMCFG_SRAM3_S)  || \
23956                                          ((INSTANCE) == RAMCFG_BKPRAM_NS) || ((INSTANCE) == RAMCFG_BKPRAM_S))
23957 
23958 /************************ RAMCFG Write Protection Instances *********************/
23959 #define IS_RAMCFG_WP_INSTANCE(INSTANCE) (((INSTANCE) == RAMCFG_SRAM2_NS)  || ((INSTANCE) == RAMCFG_SRAM2_S))
23960 
23961 /******************************** FMAC Instances ******************************/
23962 #define IS_FMAC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == FMAC_NS) || ((INSTANCE) == FMAC_S))
23963 
23964 /******************************* GPIO Instances *******************************/
23965 #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA_NS) || ((INSTANCE) == GPIOA_S) || \
23966                                         ((INSTANCE) == GPIOB_NS) || ((INSTANCE) == GPIOB_S) || \
23967                                         ((INSTANCE) == GPIOC_NS) || ((INSTANCE) == GPIOC_S) || \
23968                                         ((INSTANCE) == GPIOD_NS) || ((INSTANCE) == GPIOD_S) || \
23969                                         ((INSTANCE) == GPIOE_NS) || ((INSTANCE) == GPIOE_S) || \
23970                                         ((INSTANCE) == GPIOF_NS) || ((INSTANCE) == GPIOF_S) || \
23971                                         ((INSTANCE) == GPIOG_NS) || ((INSTANCE) == GPIOG_S) || \
23972                                         ((INSTANCE) == GPIOH_NS) || ((INSTANCE) == GPIOH_S) || \
23973                                         ((INSTANCE) == GPIOI_NS) || ((INSTANCE) == GPIOI_S) || \
23974                                         ((INSTANCE) == LPGPIO1_NS) || ((INSTANCE) == LPGPIO1_S))
23975 
23976 /******************************* LPGPIO Instances *****************************/
23977 #define IS_LPGPIO_ALL_INSTANCE(INSTANCE)  (((INSTANCE) == LPGPIO1_NS) || ((INSTANCE) == LPGPIO1_S))
23978 
23979 /******************************* DMA2D Instances *******************************/
23980 #define IS_DMA2D_ALL_INSTANCE(__INSTANCE__) (((__INSTANCE__) == DMA2D_NS) || ((__INSTANCE__) == DMA2D_S))
23981 
23982 /******************************* DCMI Instances *******************************/
23983 #define IS_DCMI_ALL_INSTANCE(__INSTANCE__) (((__INSTANCE__) == DCMI_NS) || ((__INSTANCE__) == DCMI_S))
23984 
23985 /******************************* DCACHE Instances *****************************/
23986 #define IS_DCACHE_ALL_INSTANCE(INSTANCE)  (((INSTANCE) == DCACHE1_NS) || ((INSTANCE) == DCACHE1_S))
23987 
23988 /******************************* PSSI Instances *******************************/
23989 #define IS_PSSI_ALL_INSTANCE(__INSTANCE__) (((__INSTANCE__) == PSSI_NS) || ((__INSTANCE__) == PSSI_S))
23990 
23991 /******************************* GPIO AF Instances ****************************/
23992 /* On U5, all GPIO Bank support AF */
23993 #define IS_GPIO_AF_INSTANCE(INSTANCE)   IS_GPIO_ALL_INSTANCE(INSTANCE)
23994 
23995 /**************************** GPIO Lock Instances *****************************/
23996 /* On U5, all GPIO Bank support the Lock mechanism */
23997 #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
23998 
23999 /******************************** I2C Instances *******************************/
24000 #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1_NS) || ((INSTANCE) == I2C1_S) || \
24001                                        ((INSTANCE) == I2C2_NS) || ((INSTANCE) == I2C2_S) || \
24002                                        ((INSTANCE) == I2C3_NS) || ((INSTANCE) == I2C3_S) || \
24003                                        ((INSTANCE) == I2C4_NS) || ((INSTANCE) == I2C4_S))
24004 
24005 /****************** I2C Instances : wakeup capability from stop modes *********/
24006 #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
24007 
24008 /******************* I2C Instances : Group belongingness *********************/
24009 #define IS_I2C_GRP1_INSTANCE(INSTANCE) (((INSTANCE) == I2C1_NS) || ((INSTANCE) == I2C1_S) || \
24010                                         ((INSTANCE) == I2C2_NS) || ((INSTANCE) == I2C2_S) || \
24011                                         ((INSTANCE) == I2C4_NS) || ((INSTANCE) == I2C4_S))
24012 
24013 #define IS_I2C_GRP2_INSTANCE(INSTANCE) (((INSTANCE) == I2C3_NS) || ((INSTANCE) == I2C3_S))
24014 
24015 /****************************** OPAMP Instances *******************************/
24016 #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1_NS) || ((INSTANCE) == OPAMP1_S) || \
24017                                          ((INSTANCE) == OPAMP2_NS) || ((INSTANCE) == OPAMP2_S))
24018 
24019 /******************************* OSPI Instances *******************************/
24020 #define IS_OSPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OCTOSPI1_NS) || ((INSTANCE) == OCTOSPI1_S) || \
24021                                         ((INSTANCE) == OCTOSPI2_NS) || ((INSTANCE) == OCTOSPI2_S))
24022 
24023 /******************************* RNG Instances ********************************/
24024 #define IS_RNG_ALL_INSTANCE(INSTANCE)  (((INSTANCE) == RNG_NS) || ((INSTANCE) == RNG_S))
24025 
24026 /****************************** RTC Instances *********************************/
24027 #define IS_RTC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == RTC_NS) || ((INSTANCE) == RTC_S))
24028 
24029 /******************************** SAI Instances *******************************/
24030 #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A_NS) || ((INSTANCE) == SAI1_Block_A_S) || \
24031                                        ((INSTANCE) == SAI1_Block_B_NS) || ((INSTANCE) == SAI1_Block_B_S) || \
24032                                        ((INSTANCE) == SAI2_Block_A_NS) || ((INSTANCE) == SAI2_Block_A_S) || \
24033                                        ((INSTANCE) == SAI2_Block_B_NS) || ((INSTANCE) == SAI2_Block_B_S))
24034 
24035 /****************************** SDMMC Instances *******************************/
24036 #define IS_SDMMC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SDMMC1_NS) || ((INSTANCE) == SDMMC1_S) || \
24037                                          ((INSTANCE) == SDMMC2_NS) || ((INSTANCE) == SDMMC2_S))
24038 
24039 /****************************** SMBUS Instances *******************************/
24040 #define IS_SMBUS_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1_NS) || ((INSTANCE) == I2C1_S) || \
24041                                          ((INSTANCE) == I2C2_NS) || ((INSTANCE) == I2C2_S) || \
24042                                          ((INSTANCE) == I2C3_NS) || ((INSTANCE) == I2C3_S) || \
24043                                          ((INSTANCE) == I2C4_NS) || ((INSTANCE) == I2C4_S))
24044 
24045 /******************* SMBUS Instances : Group belongingness *********************/
24046 #define IS_SMBUS_GRP1_INSTANCE(INSTANCE) (((INSTANCE) == I2C1_NS) || ((INSTANCE) == I2C1_S) || \
24047                                           ((INSTANCE) == I2C2_NS) || ((INSTANCE) == I2C2_S) || \
24048                                           ((INSTANCE) == I2C4_NS) || ((INSTANCE) == I2C4_S))
24049 
24050 #define IS_SMBUS_GRP2_INSTANCE(INSTANCE) (((INSTANCE) == I2C3_NS) || ((INSTANCE) == I2C3_S))
24051 
24052 /******************************** SPI Instances *******************************/
24053 #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1_NS) || ((INSTANCE) == SPI1_S) || \
24054                                        ((INSTANCE) == SPI2_NS) || ((INSTANCE) == SPI2_S) || \
24055                                        ((INSTANCE) == SPI3_NS) || ((INSTANCE) == SPI3_S))
24056 
24057 #define IS_SPI_LIMITED_INSTANCE(INSTANCE) (((INSTANCE) == SPI3_NS) || ((INSTANCE) == SPI3_S))
24058 
24059 #define IS_SPI_FULL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1_NS) || ((INSTANCE) == SPI1_S) || \
24060                                         ((INSTANCE) == SPI2_NS) || ((INSTANCE) == SPI2_S))
24061 
24062 /****************** LPTIM Instances : All supported instances *****************/
24063 #define IS_LPTIM_INSTANCE(INSTANCE)     (((INSTANCE) == LPTIM1_NS) || ((INSTANCE) == LPTIM1_S) ||\
24064                                          ((INSTANCE) == LPTIM2_NS) || ((INSTANCE) == LPTIM2_S) ||\
24065                                          ((INSTANCE) == LPTIM3_NS) || ((INSTANCE) == LPTIM3_S) ||\
24066                                          ((INSTANCE) == LPTIM4_NS) || ((INSTANCE) == LPTIM4_S))
24067 
24068 /****************** LPTIM Instances : DMA supported instances *****************/
24069 #define IS_LPTIM_DMA_INSTANCE(INSTANCE)  (((INSTANCE) == LPTIM1_NS) || ((INSTANCE) == LPTIM1_S) ||\
24070                                           ((INSTANCE) == LPTIM2_NS) || ((INSTANCE) == LPTIM2_S) ||\
24071                                           ((INSTANCE) == LPTIM3_NS) || ((INSTANCE) == LPTIM3_S))
24072 
24073 /************* LPTIM Instances : at least 1 capture/compare channel ***********/
24074 #define IS_LPTIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1_NS)  || ((INSTANCE) == LPTIM1_S) ||\
24075                                          ((INSTANCE) == LPTIM2_NS)  || ((INSTANCE) == LPTIM2_S) ||\
24076                                          ((INSTANCE) == LPTIM3_NS)  || ((INSTANCE) == LPTIM3_S) ||\
24077                                          ((INSTANCE) == LPTIM4_NS)  || ((INSTANCE) == LPTIM4_S))
24078 
24079 /************* LPTIM Instances : at least 2 capture/compare channel ***********/
24080 #define IS_LPTIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1_NS) || ((INSTANCE) == LPTIM1_S) ||\
24081                                          ((INSTANCE) == LPTIM2_NS) || ((INSTANCE) == LPTIM2_S) ||\
24082                                          ((INSTANCE) == LPTIM3_NS) || ((INSTANCE) == LPTIM3_S))
24083 
24084 /****************** LPTIM Instances : supporting encoder interface **************/
24085 #define IS_LPTIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)  (((INSTANCE) == LPTIM1_NS) || ((INSTANCE) == LPTIM1_S) ||\
24086                                                         ((INSTANCE) == LPTIM2_NS) || ((INSTANCE) == LPTIM2_S))
24087 
24088 /****************** LPTIM Instances : supporting Input Capture **************/
24089 #define IS_LPTIM_INPUT_CAPTURE_INSTANCE(INSTANCE)  (((INSTANCE) == LPTIM1_NS) || ((INSTANCE) == LPTIM1_S) ||\
24090                                                     ((INSTANCE) == LPTIM2_NS) || ((INSTANCE) == LPTIM2_S) ||\
24091                                                     ((INSTANCE) == LPTIM3_NS) || ((INSTANCE) == LPTIM3_S))
24092 
24093 /****************** TIM Instances : All supported instances *******************/
24094 #define IS_TIM_INSTANCE(INSTANCE)       (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24095                                          ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24096                                          ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24097                                          ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24098                                          ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24099                                          ((INSTANCE) == TIM6_NS)  || ((INSTANCE) == TIM6_S)  || \
24100                                          ((INSTANCE) == TIM7_NS)  || ((INSTANCE) == TIM7_S)  || \
24101                                          ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24102                                          ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24103                                          ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24104                                          ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24105 
24106 /****************** TIM Instances : supporting 32 bits counter ****************/
24107 #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24108                                                ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S))
24109 
24110 /****************** TIM Instances : supporting the break function *************/
24111 #define IS_TIM_BREAK_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24112                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24113                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24114                                             ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24115                                             ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24116 
24117 /************** TIM Instances : supporting Break source selection *************/
24118 #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24119                                                ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24120                                                ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24121                                                ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24122                                                ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24123 
24124 /****************** TIM Instances : supporting 2 break inputs *****************/
24125 #define IS_TIM_BKIN2_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24126                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24127 
24128 /************* TIM Instances : at least 1 capture/compare channel *************/
24129 #define IS_TIM_CC1_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24130                                          ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24131                                          ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24132                                          ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24133                                          ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24134                                          ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24135                                          ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24136                                          ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24137                                          ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24138 
24139 /************ TIM Instances : at least 2 capture/compare channels *************/
24140 #define IS_TIM_CC2_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24141                                          ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24142                                          ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24143                                          ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24144                                          ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24145                                          ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24146                                          ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S))
24147 
24148 /************ TIM Instances : at least 3 capture/compare channels *************/
24149 #define IS_TIM_CC3_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24150                                          ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24151                                          ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24152                                          ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24153                                          ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24154                                          ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24155 
24156 /************ TIM Instances : at least 4 capture/compare channels *************/
24157 #define IS_TIM_CC4_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24158                                          ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24159                                          ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24160                                          ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24161                                          ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24162                                          ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24163 
24164 /****************** TIM Instances : at least 5 capture/compare channels *******/
24165 #define IS_TIM_CC5_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24166                                          ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24167 
24168 /****************** TIM Instances : at least 6 capture/compare channels *******/
24169 #define IS_TIM_CC6_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24170                                          ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24171 
24172 /************ TIM Instances : DMA requests generation (TIMx_DIER.COMDE) *******/
24173 #define IS_TIM_CCDMA_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24174                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24175                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24176                                             ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24177                                             ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24178 
24179 /****************** TIM Instances : DMA requests generation (TIMx_DIER.UDE) ***/
24180 #define IS_TIM_DMA_INSTANCE(INSTANCE)      (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24181                                             ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24182                                             ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24183                                             ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24184                                             ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24185                                             ((INSTANCE) == TIM6_NS)  || ((INSTANCE) == TIM6_S)  || \
24186                                             ((INSTANCE) == TIM7_NS)  || ((INSTANCE) == TIM7_S)  || \
24187                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24188                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24189                                             ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24190                                             ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24191 
24192 /************ TIM Instances : DMA requests generation (TIMx_DIER.CCxDE) *******/
24193 #define IS_TIM_DMA_CC_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24194                                             ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24195                                             ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24196                                             ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24197                                             ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24198                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24199                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24200                                             ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24201                                             ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24202 
24203 /******************** TIM Instances : DMA burst feature ***********************/
24204 #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24205                                             ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24206                                             ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24207                                             ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24208                                             ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24209                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24210                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24211                                             ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24212                                             ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24213 
24214 /******************* TIM Instances : output(s) available **********************/
24215 #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
24216     (((((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S))  && \
24217      (((CHANNEL) == TIM_CHANNEL_1) ||          \
24218       ((CHANNEL) == TIM_CHANNEL_2) ||          \
24219       ((CHANNEL) == TIM_CHANNEL_3) ||          \
24220       ((CHANNEL) == TIM_CHANNEL_4) ||          \
24221       ((CHANNEL) == TIM_CHANNEL_5) ||          \
24222       ((CHANNEL) == TIM_CHANNEL_6)))           \
24223      ||                                        \
24224      ((((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S))  && \
24225      (((CHANNEL) == TIM_CHANNEL_1) ||          \
24226       ((CHANNEL) == TIM_CHANNEL_2) ||          \
24227       ((CHANNEL) == TIM_CHANNEL_3) ||          \
24228       ((CHANNEL) == TIM_CHANNEL_4)))           \
24229      ||                                        \
24230      ((((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S))  && \
24231      (((CHANNEL) == TIM_CHANNEL_1) ||          \
24232       ((CHANNEL) == TIM_CHANNEL_2) ||          \
24233       ((CHANNEL) == TIM_CHANNEL_3) ||          \
24234       ((CHANNEL) == TIM_CHANNEL_4)))           \
24235      ||                                        \
24236      ((((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S))  && \
24237      (((CHANNEL) == TIM_CHANNEL_1) ||          \
24238       ((CHANNEL) == TIM_CHANNEL_2) ||          \
24239       ((CHANNEL) == TIM_CHANNEL_3) ||          \
24240       ((CHANNEL) == TIM_CHANNEL_4)))           \
24241      ||                                        \
24242      ((((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S))  && \
24243      (((CHANNEL) == TIM_CHANNEL_1) ||          \
24244       ((CHANNEL) == TIM_CHANNEL_2) ||          \
24245       ((CHANNEL) == TIM_CHANNEL_3) ||          \
24246       ((CHANNEL) == TIM_CHANNEL_4)))           \
24247      ||                                        \
24248      ((((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))  && \
24249      (((CHANNEL) == TIM_CHANNEL_1) ||          \
24250       ((CHANNEL) == TIM_CHANNEL_2) ||          \
24251       ((CHANNEL) == TIM_CHANNEL_3) ||          \
24252       ((CHANNEL) == TIM_CHANNEL_4) ||          \
24253       ((CHANNEL) == TIM_CHANNEL_5) ||          \
24254       ((CHANNEL) == TIM_CHANNEL_6)))           \
24255      ||                                        \
24256      ((((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S)) && \
24257      (((CHANNEL) == TIM_CHANNEL_1) ||          \
24258       ((CHANNEL) == TIM_CHANNEL_2)))           \
24259      ||                                        \
24260      ((((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S)) && \
24261      (((CHANNEL) == TIM_CHANNEL_1)))           \
24262      ||                                        \
24263      ((((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S)) && \
24264      (((CHANNEL) == TIM_CHANNEL_1))))
24265 
24266 /****************** TIM Instances : supporting complementary output(s) ********/
24267 #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
24268     (((((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S))  && \
24269      (((CHANNEL) == TIM_CHANNEL_1) ||           \
24270       ((CHANNEL) == TIM_CHANNEL_2) ||           \
24271       ((CHANNEL) == TIM_CHANNEL_3) ||           \
24272       ((CHANNEL) == TIM_CHANNEL_4)))            \
24273     ||                                          \
24274     ((((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))  && \
24275      (((CHANNEL) == TIM_CHANNEL_1) ||           \
24276       ((CHANNEL) == TIM_CHANNEL_2) ||           \
24277       ((CHANNEL) == TIM_CHANNEL_3) ||           \
24278       ((CHANNEL) == TIM_CHANNEL_4)))            \
24279     ||                                          \
24280     ((((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S)) && \
24281      ((CHANNEL) == TIM_CHANNEL_1))              \
24282     ||                                          \
24283     ((((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S)) && \
24284      ((CHANNEL) == TIM_CHANNEL_1))              \
24285     ||                                          \
24286     ((((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S)) && \
24287      ((CHANNEL) == TIM_CHANNEL_1)))
24288 
24289 /****************** TIM Instances : supporting clock division *****************/
24290 #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24291                                                     ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24292                                                     ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24293                                                     ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24294                                                     ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24295                                                     ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24296                                                     ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24297                                                     ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24298                                                     ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24299 
24300 /****** TIM Instances : supporting external clock mode 1 for ETRF input *******/
24301 #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24302                                                         ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24303                                                         ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24304                                                         ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24305                                                         ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24306                                                         ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24307                                                         ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S))
24308 
24309 /****** TIM Instances : supporting external clock mode 2 for ETRF input *******/
24310 #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24311                                                         ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24312                                                         ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24313                                                         ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24314                                                         ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24315                                                         ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24316 
24317 /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
24318 #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)      (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24319                                                         ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24320                                                         ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24321                                                         ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24322                                                         ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24323                                                         ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24324                                                         ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S))
24325 
24326 /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
24327 #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)     (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24328                                                         ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24329                                                         ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24330                                                         ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24331                                                         ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24332                                                         ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24333                                                         ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S))
24334 
24335 /****************** TIM Instances : supporting combined 3-phase PWM mode ******/
24336 #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24337                                                      ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24338 
24339 /****************** TIM Instances : supporting commutation event generation ***/
24340 #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24341                                                      ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24342                                                      ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24343                                                      ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24344                                                      ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24345 
24346 /****************** TIM Instances : supporting counting mode selection ********/
24347 #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)  (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24348                                                         ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24349                                                         ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24350                                                         ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24351                                                         ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24352                                                         ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24353 
24354 /****************** TIM Instances : supporting encoder interface **************/
24355 #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)  (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24356                                                       ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24357                                                       ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24358                                                       ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24359                                                       ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24360                                                       ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24361 
24362 /****************** TIM Instances : supporting Hall sensor interface **********/
24363 #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS)   || ((INSTANCE) == TIM1_S)  || \
24364                                                          ((INSTANCE) == TIM2_NS)   || ((INSTANCE) == TIM2_S)  || \
24365                                                          ((INSTANCE) == TIM3_NS)   || ((INSTANCE) == TIM3_S)  || \
24366                                                          ((INSTANCE) == TIM4_NS)   || ((INSTANCE) == TIM4_S)  || \
24367                                                          ((INSTANCE) == TIM5_NS)   || ((INSTANCE) == TIM5_S)  || \
24368                                                          ((INSTANCE) == TIM8_NS)   || ((INSTANCE) == TIM8_S)  || \
24369                                                          ((INSTANCE) == TIM15_NS)  || ((INSTANCE) == TIM15_S))
24370 
24371 /**************** TIM Instances : external trigger input available ************/
24372 #define IS_TIM_ETR_INSTANCE(INSTANCE)      (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24373                                             ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24374                                             ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24375                                             ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24376                                             ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24377                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24378 
24379 /************* TIM Instances : supporting ETR source selection ***************/
24380 #define IS_TIM_ETRSEL_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24381                                              ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24382                                              ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24383                                              ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24384 
24385 /****** TIM Instances : Master mode available (TIMx_CR2.MMS available )********/
24386 #define IS_TIM_MASTER_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24387                                             ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24388                                             ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24389                                             ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24390                                             ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24391                                             ((INSTANCE) == TIM6_NS)  || ((INSTANCE) == TIM6_S)  || \
24392                                             ((INSTANCE) == TIM7_NS)  || ((INSTANCE) == TIM7_S)  || \
24393                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24394                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S))
24395 
24396 /*********** TIM Instances : Slave mode available (TIMx_SMCR available )*******/
24397 #define IS_TIM_SLAVE_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24398                                             ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24399                                             ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24400                                             ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24401                                             ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24402                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24403                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S))
24404 
24405 /****************** TIM Instances : supporting OCxREF clear *******************/
24406 #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)        (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24407                                                        ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24408                                                        ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24409                                                        ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24410                                                        ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24411                                                        ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24412 
24413 /****************** TIM Instances : remapping capability **********************/
24414 #define IS_TIM_REMAP_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24415                                             ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24416                                             ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24417                                             ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24418                                             ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24419                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24420                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24421                                             ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24422                                             ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24423 
24424 /****************** TIM Instances : supporting repetition counter *************/
24425 #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)  (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24426                                                        ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24427                                                        ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S) || \
24428                                                        ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S) || \
24429                                                        ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24430 
24431 /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
24432 #define IS_TIM_TRGO2_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S) || \
24433                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24434 
24435 /******************* TIM Instances : Timer input XOR function *****************/
24436 #define IS_TIM_XOR_INSTANCE(INSTANCE)      (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S)  || \
24437                                             ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S)  || \
24438                                             ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S)  || \
24439                                             ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S)  || \
24440                                             ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S)  || \
24441                                             ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S)  || \
24442                                             ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S))
24443 
24444 /******************* TIM Instances : Timer input selection ********************/
24445 #define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S) ||\
24446                                          ((INSTANCE) == TIM2_NS)  || ((INSTANCE) == TIM2_S) ||\
24447                                          ((INSTANCE) == TIM3_NS)  || ((INSTANCE) == TIM3_S) ||\
24448                                          ((INSTANCE) == TIM4_NS)  || ((INSTANCE) == TIM4_S) ||\
24449                                          ((INSTANCE) == TIM5_NS)  || ((INSTANCE) == TIM5_S) ||\
24450                                          ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S) ||\
24451                                          ((INSTANCE) == TIM15_NS) || ((INSTANCE) == TIM15_S)||\
24452                                          ((INSTANCE) == TIM16_NS) || ((INSTANCE) == TIM16_S)||\
24453                                          ((INSTANCE) == TIM17_NS) || ((INSTANCE) == TIM17_S))
24454 
24455 /******************* TIM Instances : supporting HSE32 as input  ********************/
24456 #define IS_TIM_HSE32_INSTANCE(INSTANCE) (((INSTANCE) == TIM16_NS)  || ((INSTANCE) == TIM16_S) ||\
24457                                          ((INSTANCE) == TIM17_NS)  || ((INSTANCE) == TIM17_S))
24458 
24459 /****************** TIM Instances : Advanced timer instances *******************/
24460 #define IS_TIM_ADVANCED_INSTANCE(INSTANCE)       (((INSTANCE) == TIM1_NS)  || ((INSTANCE) == TIM1_S) || \
24461                                                   ((INSTANCE) == TIM8_NS)  || ((INSTANCE) == TIM8_S))
24462 
24463 /****************** TIM Instances : supporting synchronization ****************/
24464 #define IS_TIM_SYNCHRO_INSTANCE(__INSTANCE__)  (((__INSTANCE__) == TIM1_NS)  || ((__INSTANCE__) == TIM1_S) || \
24465                                                 ((__INSTANCE__) == TIM2_NS)  || ((__INSTANCE__) == TIM2_S) || \
24466                                                 ((__INSTANCE__) == TIM3_NS)  || ((__INSTANCE__) == TIM3_S) || \
24467                                                 ((__INSTANCE__) == TIM4_NS)  || ((__INSTANCE__) == TIM4_S) || \
24468                                                 ((__INSTANCE__) == TIM5_NS)  || ((__INSTANCE__) == TIM5_S) || \
24469                                                 ((__INSTANCE__) == TIM6_NS)  || ((__INSTANCE__) == TIM6_S) || \
24470                                                 ((__INSTANCE__) == TIM7_NS)  || ((__INSTANCE__) == TIM7_S) || \
24471                                                 ((__INSTANCE__) == TIM8_NS)  || ((__INSTANCE__) == TIM8_S) || \
24472                                                 ((__INSTANCE__) == TIM15_NS) || ((__INSTANCE__) == TIM15_S))
24473 
24474 /****************************** TSC Instances *********************************/
24475 #define IS_TSC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == TSC_NS) || ((INSTANCE) == TSC_S))
24476 
24477 /******************** USART Instances : Synchronous mode **********************/
24478 #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || ((INSTANCE) == USART1_S) || \
24479                                      ((INSTANCE) == USART2_NS) || ((INSTANCE) == USART2_S) || \
24480                                      ((INSTANCE) == USART3_NS) || ((INSTANCE) == USART3_S))
24481 
24482 /******************** UART Instances : Asynchronous mode **********************/
24483 #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || ((INSTANCE) == USART1_S) || \
24484                                     ((INSTANCE) == USART2_NS) || ((INSTANCE) == USART2_S) || \
24485                                     ((INSTANCE) == USART3_NS) || ((INSTANCE) == USART3_S) || \
24486                                     ((INSTANCE) == UART4_NS)  || ((INSTANCE) == UART4_S)  || \
24487                                     ((INSTANCE) == UART5_NS)  || ((INSTANCE) == UART5_S))
24488 
24489 /*********************** UART Instances : FIFO mode ***************************/
24490 #define IS_UART_FIFO_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS)  || ((INSTANCE) == USART1_S) || \
24491                                          ((INSTANCE) == USART2_NS)  || ((INSTANCE) == USART2_S) || \
24492                                          ((INSTANCE) == USART3_NS)  || ((INSTANCE) == USART3_S) || \
24493                                          ((INSTANCE) == UART4_NS)   || ((INSTANCE) == UART4_S)  || \
24494                                          ((INSTANCE) == UART5_NS)   || ((INSTANCE) == UART5_S)  || \
24495                                          ((INSTANCE) == LPUART1_NS) || ((INSTANCE) == LPUART1_S))
24496 
24497 /*********************** UART Instances : SPI Slave mode **********************/
24498 #define IS_UART_SPI_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || ((INSTANCE) == USART1_S) || \
24499                                               ((INSTANCE) == USART2_NS) || ((INSTANCE) == USART2_S) || \
24500                                               ((INSTANCE) == USART3_NS) || ((INSTANCE) == USART3_S))
24501 
24502 /****************** UART Instances : Auto Baud Rate detection ****************/
24503 #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || ((INSTANCE) == USART1_S) || \
24504                                                             ((INSTANCE) == USART2_NS) || ((INSTANCE) == USART2_S) || \
24505                                                             ((INSTANCE) == USART3_NS) || ((INSTANCE) == USART3_S) || \
24506                                                             ((INSTANCE) == UART4_NS)  || ((INSTANCE) == UART4_S)  || \
24507                                                             ((INSTANCE) == UART5_NS)  || ((INSTANCE) == UART5_S))
24508 
24509 /****************** UART Instances : Driver Enable *****************/
24510 #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE)     (((INSTANCE) == USART1_NS)  || ((INSTANCE) == USART1_S) || \
24511                                                       ((INSTANCE) == USART2_NS)  || ((INSTANCE) == USART2_S) || \
24512                                                       ((INSTANCE) == USART3_NS)  || ((INSTANCE) == USART3_S) || \
24513                                                       ((INSTANCE) == UART4_NS)   || ((INSTANCE) == UART4_S)  || \
24514                                                       ((INSTANCE) == UART5_NS)   || ((INSTANCE) == UART5_S)  || \
24515                                                       ((INSTANCE) == LPUART1_NS) || ((INSTANCE) == LPUART1_S))
24516 
24517 /******************** UART Instances : Half-Duplex mode **********************/
24518 #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE)   (((INSTANCE) == USART1_NS)  || ((INSTANCE) == USART1_S) || \
24519                                                  ((INSTANCE) == USART2_NS)  || ((INSTANCE) == USART2_S) || \
24520                                                  ((INSTANCE) == USART3_NS)  || ((INSTANCE) == USART3_S) || \
24521                                                  ((INSTANCE) == UART4_NS)   || ((INSTANCE) == UART4_S)  || \
24522                                                  ((INSTANCE) == UART5_NS)   || ((INSTANCE) == UART5_S)  || \
24523                                                  ((INSTANCE) == LPUART1_NS) || ((INSTANCE) == LPUART1_S))
24524 
24525 /****************** UART Instances : Hardware Flow control ********************/
24526 #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS)  || ((INSTANCE) == USART1_S) || \
24527                                            ((INSTANCE) == USART2_NS)  || ((INSTANCE) == USART2_S) || \
24528                                            ((INSTANCE) == USART3_NS)  || ((INSTANCE) == USART3_S) || \
24529                                            ((INSTANCE) == UART4_NS)   || ((INSTANCE) == UART4_S)  || \
24530                                            ((INSTANCE) == UART5_NS)   || ((INSTANCE) == UART5_S)  || \
24531                                            ((INSTANCE) == LPUART1_NS) || ((INSTANCE) == LPUART1_S))
24532 
24533 /******************** UART Instances : LIN mode **********************/
24534 #define IS_UART_LIN_INSTANCE(INSTANCE)   (((INSTANCE) == USART1_NS) || ((INSTANCE) == USART1_S) || \
24535                                           ((INSTANCE) == USART2_NS) || ((INSTANCE) == USART2_S) || \
24536                                           ((INSTANCE) == USART3_NS) || ((INSTANCE) == USART3_S) || \
24537                                           ((INSTANCE) == UART4_NS)  || ((INSTANCE) == UART4_S)  || \
24538                                           ((INSTANCE) == UART5_NS)  || ((INSTANCE) == UART5_S))
24539 
24540 /******************** UART Instances : Wake-up from Stop mode **********************/
24541 #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE)   (((INSTANCE) == USART1_NS)  || ((INSTANCE) == USART1_S) || \
24542                                                       ((INSTANCE) == USART2_NS)  || ((INSTANCE) == USART2_S) || \
24543                                                       ((INSTANCE) == USART3_NS)  || ((INSTANCE) == USART3_S) || \
24544                                                       ((INSTANCE) == UART4_NS)   || ((INSTANCE) == UART4_S)  || \
24545                                                       ((INSTANCE) == UART5_NS)   || ((INSTANCE) == UART5_S)  || \
24546                                                       ((INSTANCE) == LPUART1_NS) || ((INSTANCE) == LPUART1_S))
24547 
24548 /*********************** UART Instances : IRDA mode ***************************/
24549 #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || ((INSTANCE) == USART1_S) || \
24550                                     ((INSTANCE) == USART2_NS) || ((INSTANCE) == USART2_S) || \
24551                                     ((INSTANCE) == USART3_NS) || ((INSTANCE) == USART3_S) || \
24552                                     ((INSTANCE) == UART4_NS)  || ((INSTANCE) == UART4_S)  || \
24553                                     ((INSTANCE) == UART5_NS)  || ((INSTANCE) == UART5_S))
24554 
24555 /********************* USART Instances : Smard card mode ***********************/
24556 #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS) || ((INSTANCE) == USART1_S) || \
24557                                          ((INSTANCE) == USART2_NS) || ((INSTANCE) == USART2_S) || \
24558                                          ((INSTANCE) == USART3_NS) || ((INSTANCE) == USART3_S))
24559 
24560 /******************** LPUART Instance *****************************************/
24561 #define IS_LPUART_INSTANCE(INSTANCE)    (((INSTANCE) == LPUART1_NS) || ((INSTANCE) == LPUART1_S))
24562 
24563 /*********************** UART Instances : AUTONOMOUS mode ***************************/
24564 #define IS_UART_AUTONOMOUS_INSTANCE(INSTANCE) (((INSTANCE) == USART1_NS)  || ((INSTANCE) == USART1_S) || \
24565                                                ((INSTANCE) == USART2_NS)  || ((INSTANCE) == USART2_S) || \
24566                                                ((INSTANCE) == USART3_NS)  || ((INSTANCE) == USART3_S) || \
24567                                                ((INSTANCE) == UART4_NS)   || ((INSTANCE) == UART4_S)  || \
24568                                                ((INSTANCE) == UART5_NS)   || ((INSTANCE) == UART5_S)  || \
24569                                                ((INSTANCE) == LPUART1_NS) || ((INSTANCE) == LPUART1_S))
24570 
24571 /****************************** IWDG Instances ********************************/
24572 #define IS_IWDG_ALL_INSTANCE(INSTANCE)  (((INSTANCE) == IWDG_NS) || ((INSTANCE) == IWDG_S))
24573 
24574 /****************************** WWDG Instances ********************************/
24575 #define IS_WWDG_ALL_INSTANCE(INSTANCE)  (((INSTANCE) == WWDG_NS) || ((INSTANCE) == WWDG_S))
24576 
24577 /****************************** UCPD Instances ********************************/
24578 #define IS_UCPD_ALL_INSTANCE(INSTANCE)  (((INSTANCE) == UCPD1_NS) || ((INSTANCE) == UCPD1_S))
24579 
24580 /******************************* OTG FS HCD Instances *************************/
24581 #define IS_HCD_ALL_INSTANCE(INSTANCE) (((INSTANCE) == USB_OTG_FS_NS) || ((INSTANCE) == USB_OTG_FS_S))
24582 
24583 /******************************* OTG FS PCD Instances *************************/
24584 #define IS_PCD_ALL_INSTANCE(INSTANCE) (((INSTANCE) == USB_OTG_FS_NS) || ((INSTANCE) == USB_OTG_FS_S))
24585 
24586 /******************************* MDF/ADF Instances ****************************/
24587 #define IS_MDF_ALL_INSTANCE(INSTANCE) (((INSTANCE) == MDF1_Filter0_NS)  || ((INSTANCE) == MDF1_Filter0_S) || \
24588                                        ((INSTANCE) == MDF1_Filter1_NS)  || ((INSTANCE) == MDF1_Filter1_S) || \
24589                                        ((INSTANCE) == MDF1_Filter2_NS)  || ((INSTANCE) == MDF1_Filter2_S) || \
24590                                        ((INSTANCE) == MDF1_Filter3_NS)  || ((INSTANCE) == MDF1_Filter3_S) || \
24591                                        ((INSTANCE) == MDF1_Filter4_NS)  || ((INSTANCE) == MDF1_Filter4_S) || \
24592                                        ((INSTANCE) == MDF1_Filter5_NS)  || ((INSTANCE) == MDF1_Filter5_S) || \
24593                                        ((INSTANCE) == ADF1_Filter0_NS)  || ((INSTANCE) == ADF1_Filter0_S))
24594 
24595 
24596 /** @} */ /* End of group STM32U5xx_Peripheral_Exported_macros */
24597 
24598 /** @} */ /* End of group STM32U585xx */
24599 
24600 /** @} */ /* End of group ST */
24601 
24602 #ifdef __cplusplus
24603 }
24604 #endif
24605 
24606 #endif  /* STM32U585xx_H */
24607 
24608