1 /**
2   ******************************************************************************
3   * @file    stm32wl54xx.h
4   * @author  MCD Application Team
5   * @brief   CMSIS Cortex Device Peripheral Access Layer Header File.
6   *          This file contains all the peripheral register's definitions, bits
7   *          definitions and memory mapping for stm32wl54xx devices.
8   *
9   *          This file contains:selected
10   *           - Data structures and the address mapping for all peripherals
11   *           - Peripheral's registers declarations and bits definition
12   *           - Macros to access peripheral's registers hardware
13   *
14   ******************************************************************************
15   * @attention
16   *
17   * Copyright (c) 2020-2021 STMicroelectronics.
18   * All rights reserved.
19   *
20   * This software is licensed under terms that can be found in the LICENSE file
21   * in the root directory of this software component.
22   * If no LICENSE file comes with this software, it is provided AS-IS.
23   *
24   ******************************************************************************
25   */
26 
27 /** @addtogroup CMSIS_Device
28   * @{
29   */
30 
31 /** @addtogroup stm32wl54xx
32   * @{
33   */
34 
35 #ifndef __STM32WL54xx_H
36 #define __STM32WL54xx_H
37 
38 #ifdef __cplusplus
39  extern "C" {
40 #endif /* __cplusplus */
41 
42 #define DUAL_CORE
43 
44 
45 /** @addtogroup Peripheral_interrupt_number_definition
46   * @{
47   */
48 
49 /**
50  * @brief stm32wl54xx Interrupt Number Definition, according to the selected device
51  *        in @ref Library_configuration_section
52  */
53 #if defined(CORE_CM0PLUS)
54   /*!< Interrupt Number Definition for M0 */
55   typedef enum
56   {
57   /******  Cortex-M0 Processor Exceptions Numbers ****************************************************************/
58     NonMaskableInt_IRQn          = -14,    /*!< Non Maskable Interrupt                                            */
59     HardFault_IRQn               = -13,    /*!< Cortex-M0+ Hard Fault Interrupt                                   */
60     SVCall_IRQn                  = -5,     /*!< Cortex-M0+ SV Call Interrupt                                      */
61     PendSV_IRQn                  = -2,     /*!< Cortex-M0+ Pend SV Interrupt                                      */
62     SysTick_IRQn                 = -1,     /*!< Cortex-M0+ System Tick Interrupt                                  */
63 
64   /*************  STM32WLxx specific Interrupt Numbers on M0 core ************************************************/
65     TZIC_ILA_IRQn                = 0,      /*!< Security Interrupt controller illegal access interrupt            */
66     PVD_PVM_IRQn                 = 1,      /*!< PVD and PVM detector                                              */
67     RTC_LSECSS_IRQn              = 2,      /*!< RTC Wakeup + RTC Tamper and RTC TimeStamp + RTC Alarms (A & B) and*/
68                                            /*!< RTC SSRU Interrupts and LSECSS Interrupts                         */
69     RCC_FLASH_C1SEV_IRQn         = 3,      /*!< RCC Interrupt, FLASH interrupt and CPU1 SEV                       */
70     EXTI1_0_IRQn                 = 4,      /*!< EXTI Line 1:0 Interrupt                                           */
71     EXTI3_2_IRQn                 = 5,      /*!< EXTI Line 3:2 Interrupt                                           */
72     EXTI15_4_IRQn                = 6,      /*!< EXTI Line 15:4 interrupt                                          */
73     ADC_COMP_DAC_IRQn            = 7,      /*!< ADC, COMP1, COMP2, DAC interrupts                                 */
74     DMA1_Channel1_2_3_IRQn       = 8,      /*!< DMA1 Channels 1,2,3 Interrupt                                     */
75     DMA1_Channel4_5_6_7_IRQn     = 9,      /*!< DMA1 Channels 4,5,6,7 Interrupt                                   */
76     DMA2_DMAMUX1_OVR_IRQn        = 10,     /*!< DMA2 Channels[1..7] and DMAMUX1 Overrun Interrupt                 */
77     LPTIM1_IRQn                  = 11,     /*!< LPTIM1 Global Interrupt                                           */
78     LPTIM2_IRQn                  = 12,     /*!< LPTIM2 Global Interrupt                                           */
79     LPTIM3_IRQn                  = 13,     /*!< LPTIM3 Global Interrupt                                           */
80     TIM1_IRQn                    = 14,     /*!< TIM1 Global Interrupt                                             */
81     TIM2_IRQn                    = 15,     /*!< TIM2 Global Interrupt                                             */
82     TIM16_IRQn                   = 16,     /*!< TIM16 Global Interrupt                                            */
83     TIM17_IRQn                   = 17,     /*!< TIM17 Global Interrupt                                            */
84     IPCC_C2_RX_C2_TX_IRQn        = 18,     /*!< IPCC RX Occupied and TX Free Interrupt                            */
85     HSEM_IRQn                    = 19,     /*!< HSEM Interrupt                                                    */
86     RNG_IRQn                     = 20,     /*!< RNG Interrupt                                                     */
87     AES_PKA_IRQn                 = 21,     /*!< AES and PKA Interrupt                                             */
88     I2C1_IRQn                    = 22,     /*!< I2C1 Event and Error Interrupt                                    */
89     I2C2_IRQn                    = 23,     /*!< I2C2 Event and Error Interrupt                                    */
90     I2C3_IRQn                    = 24,     /*!< I2C3 Event and Error Interrupt                                    */
91     SPI1_IRQn                    = 25,     /*!< SPI1 Interrupt                                                    */
92     SPI2_IRQn                    = 26,     /*!< SPI2 Interrupt                                                    */
93     USART1_IRQn                  = 27,     /*!< USART1 Interrupt                                                  */
94     USART2_IRQn                  = 28,     /*!< USART2 Interrupt                                                  */
95     LPUART1_IRQn                 = 29,     /*!< LPUART1 Interrupt                                                 */
96     SUBGHZSPI_IRQn               = 30,     /*!< SUBGHZSPI Interrupt                                               */
97     SUBGHZ_Radio_IRQn            = 31,     /*!< SUBGHZ Radio Interrupt                                            */
98   } IRQn_Type;
99 #else /* CORE_CM4 */
100 /*!< Interrupt Number Definition for M4 */
101 typedef enum
102 {
103 /******  Cortex-M4 Processor Exceptions Numbers ****************************************************************/
104   NonMaskableInt_IRQn                 = -14,    /*!< Non Maskable Interrupt                                            */
105   HardFault_IRQn                      = -13,    /*!< Cortex-M4 Hard Fault Interrupt                                    */
106   MemoryManagement_IRQn               = -12,    /*!< Cortex-M4 Memory Management Interrupt                             */
107   BusFault_IRQn                       = -11,    /*!< Cortex-M4 Bus Fault Interrupt                                     */
108   UsageFault_IRQn                     = -10,    /*!< Cortex-M4 Usage Fault Interrupt                                   */
109   SVCall_IRQn                         = -5,     /*!< Cortex-M4 SV Call Interrupt                                       */
110   DebugMonitor_IRQn                   = -4,     /*!< Cortex-M4 Debug Monitor Interrupt                                 */
111   PendSV_IRQn                         = -2,     /*!< Cortex-M4 Pend SV Interrupt                                       */
112   SysTick_IRQn                        = -1,     /*!< Cortex-M4 System Tick Interrupt                                   */
113 
114 /*************  STM32WLxx specific Interrupt Numbers on M4 core ************************************************/
115   WWDG_IRQn                           = 0,      /*!< Window WatchDog Interrupt                                         */
116   PVD_PVM_IRQn                        = 1,      /*!< PVD and PVM detector                                              */
117   TAMP_STAMP_LSECSS_SSRU_IRQn         = 2,      /*!< RTC Tamper, RTC TimeStamp, LSECSS and RTC SSRU Interrupts         */
118   RTC_WKUP_IRQn                       = 3,      /*!< RTC Wakeup Interrupt                                              */
119   FLASH_IRQn                          = 4,      /*!< FLASH (CFI)  global Interrupt                                     */
120   RCC_IRQn                            = 5,      /*!< RCC Interrupt                                                     */
121   EXTI0_IRQn                          = 6,      /*!< EXTI Line 0 Interrupt                                             */
122   EXTI1_IRQn                          = 7,      /*!< EXTI Line 1 Interrupt                                             */
123   EXTI2_IRQn                          = 8,      /*!< EXTI Line 2 Interrupt                                             */
124   EXTI3_IRQn                          = 9,      /*!< EXTI Line 3 Interrupt                                             */
125   EXTI4_IRQn                          = 10,     /*!< EXTI Line 4 Interrupt                                             */
126   DMA1_Channel1_IRQn                  = 11,     /*!< DMA1 Channel 1 Interrupt                                          */
127   DMA1_Channel2_IRQn                  = 12,     /*!< DMA1 Channel 2 Interrupt                                          */
128   DMA1_Channel3_IRQn                  = 13,     /*!< DMA1 Channel 3 Interrupt                                          */
129   DMA1_Channel4_IRQn                  = 14,     /*!< DMA1 Channel 4 Interrupt                                          */
130   DMA1_Channel5_IRQn                  = 15,     /*!< DMA1 Channel 5 Interrupt                                          */
131   DMA1_Channel6_IRQn                  = 16,     /*!< DMA1 Channel 6 Interrupt                                          */
132   DMA1_Channel7_IRQn                  = 17,     /*!< DMA1 Channel 7 Interrupt                                          */
133   ADC_IRQn                            = 18,     /*!< ADC Interrupt                                                     */
134   DAC_IRQn                            = 19,     /*!< DAC Interrupt                                                     */
135   C2SEV_PWR_C2H_IRQn                  = 20,     /*!< CPU2 SEV Interrupt                                                */
136   COMP_IRQn                           = 21,     /*!< COMP1 and COMP2 Interrupts                                        */
137   EXTI9_5_IRQn                        = 22,     /*!< EXTI Lines [9:5] Interrupt                                        */
138   TIM1_BRK_IRQn                       = 23,     /*!< TIM1 Break Interrupt                                              */
139   TIM1_UP_IRQn                        = 24,     /*!< TIM1 Update Interrupt                                             */
140   TIM1_TRG_COM_IRQn                   = 25,     /*!< TIM1 Trigger and Communication Interrupts                         */
141   TIM1_CC_IRQn                        = 26,     /*!< TIM1 Capture Compare Interrupt                                    */
142   TIM2_IRQn                           = 27,     /*!< TIM2 Global Interrupt                                             */
143   TIM16_IRQn                          = 28,     /*!< TIM16 Global Interrupt                                            */
144   TIM17_IRQn                          = 29,     /*!< TIM17 Global Interrupt                                            */
145   I2C1_EV_IRQn                        = 30,     /*!< I2C1 Event Interrupt                                              */
146   I2C1_ER_IRQn                        = 31,     /*!< I2C1 Error Interrupt                                              */
147   I2C2_EV_IRQn                        = 32,     /*!< I2C2 Event Interrupt                                              */
148   I2C2_ER_IRQn                        = 33,     /*!< I2C2 Error Interrupt                                              */
149   SPI1_IRQn                           = 34,     /*!< SPI1 Interrupt                                                    */
150   SPI2_IRQn                           = 35,     /*!< SPI2 Interrupt                                                    */
151   USART1_IRQn                         = 36,     /*!< USART1 Interrupt                                                  */
152   USART2_IRQn                         = 37,     /*!< USART2 Interrupt                                                  */
153   LPUART1_IRQn                        = 38,     /*!< LPUART1 Interrupt                                                 */
154   LPTIM1_IRQn                         = 39,     /*!< LPTIM1 Global Interrupt                                           */
155   LPTIM2_IRQn                         = 40,     /*!< LPTIM2 Global Interrupt                                           */
156   EXTI15_10_IRQn                      = 41,     /*!< EXTI Lines [15:10] Interrupt                                      */
157   RTC_Alarm_IRQn                      = 42,     /*!< RTC Alarms (A and B) Interrupt                                    */
158   LPTIM3_IRQn                         = 43,     /*!< LPTIM3 Global Interrupt                                           */
159   SUBGHZSPI_IRQn                      = 44,     /*!< SUBGHZSPI Interrupt                                               */
160   IPCC_C1_RX_IRQn                     = 45,     /*!< IPCC RX Occupied Interrupt                                        */
161   IPCC_C1_TX_IRQn                     = 46,     /*!< IPCC TX Free Interrupt                                            */
162   HSEM_IRQn                           = 47,     /*!< HSEM Interrupt                                                    */
163   I2C3_EV_IRQn                        = 48,     /*!< I2C3 Event Interrupt                                              */
164   I2C3_ER_IRQn                        = 49,     /*!< I2C3 Error Interrupt                                              */
165   SUBGHZ_Radio_IRQn                   = 50,     /*!< SUBGHZ Radio Interrupt                                            */
166   AES_IRQn                            = 51,     /*!< AES Interrupt                                                     */
167   RNG_IRQn                            = 52,     /*!< RNG Interrupt                                                     */
168   PKA_IRQn                            = 53,     /*!< PKA Interrupt                                                     */
169   DMA2_Channel1_IRQn                  = 54,     /*!< DMA2 Channel 1 Interrupt                                          */
170   DMA2_Channel2_IRQn                  = 55,     /*!< DMA2 Channel 2 Interrupt                                          */
171   DMA2_Channel3_IRQn                  = 56,     /*!< DMA2 Channel 3 Interrupt                                          */
172   DMA2_Channel4_IRQn                  = 57,     /*!< DMA2 Channel 4 Interrupt                                          */
173   DMA2_Channel5_IRQn                  = 58,     /*!< DMA2 Channel 5 Interrupt                                          */
174   DMA2_Channel6_IRQn                  = 59,     /*!< DMA2 Channel 6 Interrupt                                          */
175   DMA2_Channel7_IRQn                  = 60,     /*!< DMA2 Channel 7 Interrupt                                          */
176   DMAMUX1_OVR_IRQn                    = 61      /*!< DMAMUX1 overrun Interrupt                                         */
177 } IRQn_Type;
178 /**
179   * @}
180   */
181 #endif
182 
183 /** @addtogroup Configuration_section_for_CMSIS
184   * @{
185   */
186 #if defined(CORE_CM0PLUS)
187 /**
188   * @brief Configuration of the Cortex-M0+ Processor and Core Peripherals
189   */
190 #define __CM0PLUS_REV             1U /*!< Core Revision r0p1                            */
191 #define __MPU_PRESENT             1U /*!< M0 provides an MPU                            */
192 #define __VTOR_PRESENT            1U /*!< Vector Table Register supported               */
193 #define __NVIC_PRIO_BITS          2U /*!< M0 core uses 2 Bits for the Priority Levels   */
194 #define __Vendor_SysTickConfig    0U /*!< Set to 1 if different SysTick Config is used  */
195 #define __FPU_PRESENT             0U /*!< FPU not present                               */
196 
197 #include "core_cm0plus.h"            /* Cortex-M0+ processor and core peripherals */
198 
199 #else /* CORE_CM4 */
200 /**
201   * @brief Configuration of the Cortex-M4 Processor and Core Peripherals
202   */
203 #define __CM4_REV                 1U /*!< Core Revision r0p1                            */
204 #define __MPU_PRESENT             1U /*!< M4 provides an MPU                            */
205 #define __VTOR_PRESENT            1U /*!< Vector Table Register supported               */
206 #define __NVIC_PRIO_BITS          4U /*!< STM32WLxx uses 4 Bits for the Priority Levels */
207 #define __Vendor_SysTickConfig    0U /*!< Set to 1 if different SysTick Config is used  */
208 #define __FPU_PRESENT             0U /*!< FPU not present                               */
209 
210 #include "core_cm4.h"                /* Cortex-M4 processor and core peripherals */
211 
212 #endif
213 
214 #include "system_stm32wlxx.h"
215 #include <stdint.h>
216 
217 /**
218   * @}
219   */
220 
221 
222 
223 
224 
225 /** @addtogroup Peripheral_registers_structures
226   * @{
227   */
228 
229 /**
230   * @brief Analog to Digital Converter
231   */
232 typedef struct
233 {
234   __IO uint32_t ISR;          /*!< ADC interrupt and status register,             Address offset: 0x00 */
235   __IO uint32_t IER;          /*!< ADC interrupt enable register,                 Address offset: 0x04 */
236   __IO uint32_t CR;           /*!< ADC control register,                          Address offset: 0x08 */
237   __IO uint32_t CFGR1;        /*!< ADC configuration register 1,                  Address offset: 0x0C */
238   __IO uint32_t CFGR2;        /*!< ADC configuration register 2,                  Address offset: 0x10 */
239   __IO uint32_t SMPR;         /*!< ADC sampling time register,                    Address offset: 0x14 */
240        uint32_t RESERVED1;    /*!< Reserved,                                                      0x18 */
241        uint32_t RESERVED2;    /*!< Reserved,                                                      0x1C */
242   __IO uint32_t AWD1TR;       /*!< ADC analog watchdog 1 threshold register,      Address offset: 0x20 */
243   __IO uint32_t AWD2TR;       /*!< ADC analog watchdog 2 threshold register,      Address offset: 0x24 */
244   __IO uint32_t CHSELR;       /*!< ADC group regular sequencer register,          Address offset: 0x28 */
245   __IO uint32_t AWD3TR;       /*!< ADC analog watchdog 3 threshold register,      Address offset: 0x2C */
246        uint32_t RESERVED3[4]; /*!< Reserved,                                               0x30 - 0x3C */
247   __IO uint32_t DR;           /*!< ADC group regular data register,               Address offset: 0x40 */
248        uint32_t RESERVED4[23];/*!< Reserved,                                               0x44 - 0x9C */
249   __IO uint32_t AWD2CR;       /*!< ADC analog watchdog 2 configuration register,  Address offset: 0xA0 */
250   __IO uint32_t AWD3CR;       /*!< ADC analog watchdog 3 configuration register,  Address offset: 0xA4 */
251        uint32_t RESERVED5[3]; /*!< Reserved,                                               0xA8 - 0xB0 */
252   __IO uint32_t CALFACT;      /*!< ADC Calibration factor register,               Address offset: 0xB4 */
253 } ADC_TypeDef;
254 
255 typedef struct
256 {
257   __IO uint32_t CCR;          /*!< ADC common configuration register,             Address offset: ADC base address + 0x308 */
258 } ADC_Common_TypeDef;
259 
260 /* Legacy registers naming */
261 #define TR1     AWD1TR
262 #define TR2     AWD2TR
263 #define TR3     AWD3TR
264 
265 /**
266   * @brief AES hardware accelerator
267   */
268 typedef struct
269 {
270   __IO uint32_t CR;          /*!< AES control register,                        Address offset: 0x00 */
271   __IO uint32_t SR;          /*!< AES status register,                         Address offset: 0x04 */
272   __IO uint32_t DINR;        /*!< AES data input register,                     Address offset: 0x08 */
273   __IO uint32_t DOUTR;       /*!< AES data output register,                    Address offset: 0x0C */
274   __IO uint32_t KEYR0;       /*!< AES key register 0,                          Address offset: 0x10 */
275   __IO uint32_t KEYR1;       /*!< AES key register 1,                          Address offset: 0x14 */
276   __IO uint32_t KEYR2;       /*!< AES key register 2,                          Address offset: 0x18 */
277   __IO uint32_t KEYR3;       /*!< AES key register 3,                          Address offset: 0x1C */
278   __IO uint32_t IVR0;        /*!< AES initialization vector register 0,        Address offset: 0x20 */
279   __IO uint32_t IVR1;        /*!< AES initialization vector register 1,        Address offset: 0x24 */
280   __IO uint32_t IVR2;        /*!< AES initialization vector register 2,        Address offset: 0x28 */
281   __IO uint32_t IVR3;        /*!< AES initialization vector register 3,        Address offset: 0x2C */
282   __IO uint32_t KEYR4;       /*!< AES key register 4,                          Address offset: 0x30 */
283   __IO uint32_t KEYR5;       /*!< AES key register 5,                          Address offset: 0x34 */
284   __IO uint32_t KEYR6;       /*!< AES key register 6,                          Address offset: 0x38 */
285   __IO uint32_t KEYR7;       /*!< AES key register 7,                          Address offset: 0x3C */
286   __IO uint32_t SUSP0R;      /*!< AES Suspend register 0,                      Address offset: 0x40 */
287   __IO uint32_t SUSP1R;      /*!< AES Suspend register 1,                      Address offset: 0x44 */
288   __IO uint32_t SUSP2R;      /*!< AES Suspend register 2,                      Address offset: 0x48 */
289   __IO uint32_t SUSP3R;      /*!< AES Suspend register 3,                      Address offset: 0x4C */
290   __IO uint32_t SUSP4R;      /*!< AES Suspend register 4,                      Address offset: 0x50 */
291   __IO uint32_t SUSP5R;      /*!< AES Suspend register 5,                      Address offset: 0x54 */
292   __IO uint32_t SUSP6R;      /*!< AES Suspend register 6,                      Address offset: 0x58 */
293   __IO uint32_t SUSP7R;      /*!< AES Suspend register 7,                      Address offset: 0x6C */
294 } AES_TypeDef;
295 
296 /**
297   * @brief Comparator
298   */
299 typedef struct
300 {
301   __IO uint32_t CSR;         /*!< COMP control and status register,               Address offset: 0x00 */
302 } COMP_TypeDef;
303 
304 typedef struct
305 {
306   __IO uint32_t CSR;         /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */
307 } COMP_Common_TypeDef;
308 
309 /**
310   * @brief CRC calculation unit
311   */
312 typedef struct
313 {
314   __IO uint32_t DR;          /*!< CRC Data register,                           Address offset: 0x00 */
315   __IO uint32_t IDR;         /*!< CRC Independent data register,               Address offset: 0x04 */
316   __IO uint32_t CR;          /*!< CRC Control register,                        Address offset: 0x08 */
317        uint32_t RESERVED2;   /*!< Reserved,                                                    0x0C */
318   __IO uint32_t INIT;        /*!< Initial CRC value register,                  Address offset: 0x10 */
319   __IO uint32_t POL;         /*!< CRC polynomial register,                     Address offset: 0x14 */
320 } CRC_TypeDef;
321 
322 /**
323   * @brief Digital to Analog Converter
324   */
325 typedef struct
326 {
327   __IO uint32_t CR;          /*!< DAC control register,                                    Address offset: 0x00 */
328   __IO uint32_t SWTRIGR;     /*!< DAC software trigger register,                           Address offset: 0x04 */
329   __IO uint32_t DHR12R1;     /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
330   __IO uint32_t DHR12L1;     /*!< DAC channel1 12-bit left aligned data holding register,  Address offset: 0x0C */
331   __IO uint32_t DHR8R1;      /*!< DAC channel1 8-bit right aligned data holding register,  Address offset: 0x10 */
332        uint32_t RESERVED1;   /*!< Reserved                                                 Address offset: 0x14 */
333        uint32_t RESERVED2;   /*!< Reserved                                                 Address offset: 0x18 */
334        uint32_t RESERVED3;   /*!< Reserved                                                 Address offset: 0x1C */
335   __IO uint32_t DHR12RD;     /*!< Dual DAC 12-bit right-aligned data holding register,     Address offset: 0x20 */
336   __IO uint32_t DHR12LD;     /*!< DUAL DAC 12-bit left aligned data holding register,      Address offset: 0x24 */
337   __IO uint32_t DHR8RD;      /*!< DUAL DAC 8-bit right aligned data holding register,      Address offset: 0x28 */
338   __IO uint32_t DOR1;        /*!< DAC channel1 data output register,                       Address offset: 0x2C */
339        uint32_t RESERVED4;   /*!< Reserved                                                 Address offset: 0x30 */
340   __IO uint32_t SR;          /*!< DAC status register,                                     Address offset: 0x34 */
341   __IO uint32_t CCR;         /*!< DAC calibration control register,                        Address offset: 0x38 */
342   __IO uint32_t MCR;         /*!< DAC mode control register,                               Address offset: 0x3C */
343   __IO uint32_t SHSR1;       /*!< DAC Sample and Hold sample time register 1,              Address offset: 0x40 */
344        uint32_t RESERVED5;   /*!< Reserved                                                 Address offset: 0x44 */
345   __IO uint32_t SHHR;        /*!< DAC Sample and Hold hold time register,                  Address offset: 0x48 */
346   __IO uint32_t SHRR;        /*!< DAC Sample and Hold refresh time register,               Address offset: 0x4C */
347 } DAC_TypeDef;
348 
349 #if defined(CORE_CM0PLUS)
350 #else
351 /**
352   * @brief Debug MCU
353   */
354 typedef struct
355 {
356   __IO uint32_t IDCODE;      /*!< MCU device ID code,                          Address offset: 0x00 */
357   __IO uint32_t CR;          /*!< Debug MCU configuration register,            Address offset: 0x04 */
358   uint32_t RESERVED1[13];    /*!< Reserved,                                               0x08-0x38 */
359   __IO uint32_t APB1FZR1;    /*!< Debug MCU CPU1 APB1 freeze register,         Address offset: 0x3C */
360   __IO uint32_t C2APB1FZR1;  /*!< Debug MCU CPU2 APB1 freeze register,         Address offset: 0x40 */
361   __IO uint32_t APB1FZR2;    /*!< Debug MCU CPU1 APB1 freeze register,         Address offset: 0x44 */
362   __IO uint32_t C2APB1FZR2;  /*!< Debug MCU CPU2 APB1 freeze register,         Address offset: 0x48 */
363   __IO uint32_t APB2FZR;     /*!< Debug MCU CPU1 APB2 freeze register,         Address offset: 0x4C */
364   __IO uint32_t C2APB2FZR;   /*!< Debug MCU CPU2 APB2 freeze register,         Address offset: 0x50 */
365 } DBGMCU_TypeDef;
366 #endif
367 
368 /**
369   * @brief DMA Controller
370   */
371 typedef struct
372 {
373   __IO uint32_t CCR;         /*!< DMA channel x configuration register        */
374   __IO uint32_t CNDTR;       /*!< DMA channel x number of data register       */
375   __IO uint32_t CPAR;        /*!< DMA channel x peripheral address register   */
376   __IO uint32_t CMAR;        /*!< DMA channel x memory address register       */
377 } DMA_Channel_TypeDef;
378 
379 typedef struct
380 {
381   __IO uint32_t ISR;         /*!< DMA interrupt status register,                 Address offset: 0x00 */
382   __IO uint32_t IFCR;        /*!< DMA interrupt flag clear register,             Address offset: 0x04 */
383 } DMA_TypeDef;
384 
385 /**
386   * @brief DMA Multiplexer
387   */
388 typedef struct
389 {
390   __IO uint32_t   CCR;       /*!< DMA Multiplexer Channel x Control Register    Address offset: 0x0004 * (channel x) */
391 }DMAMUX_Channel_TypeDef;
392 
393 typedef struct
394 {
395   __IO uint32_t   CSR;       /*!< DMA Channel Status Register                    Address offset: 0x0080   */
396   __IO uint32_t   CFR;       /*!< DMA Channel Clear Flag Register                Address offset: 0x0084   */
397 }DMAMUX_ChannelStatus_TypeDef;
398 
399 typedef struct
400 {
401   __IO uint32_t   RGCR;        /*!< DMA Request Generator x Control Register     Address offset: 0x0100 + 0x0004 * (Req Gen x) */
402 }DMAMUX_RequestGen_TypeDef;
403 
404 typedef struct
405 {
406   __IO uint32_t   RGSR;        /*!< DMA Request Generator Status Register        Address offset: 0x0140   */
407   __IO uint32_t   RGCFR;       /*!< DMA Request Generator Clear Flag Register    Address offset: 0x0144   */
408 }DMAMUX_RequestGenStatus_TypeDef;
409 
410 /**
411   * @brief Async Interrupts and Events Controller
412   */
413 typedef struct
414 {
415   __IO uint32_t RTSR1;          /*!< EXTI rising trigger selection register [31:0],            Address offset: 0x00 */
416   __IO uint32_t FTSR1;          /*!< EXTI falling trigger selection register [31:0],           Address offset: 0x04 */
417   __IO uint32_t SWIER1;         /*!< EXTI software interrupt event register [31:0],            Address offset: 0x08 */
418   __IO uint32_t PR1;            /*!< EXTI pending register [31:0],                             Address offset: 0x0C */
419   __IO uint32_t RESERVED1[4];   /*!< Reserved,                                                 Address offset: 0x10 - 0x1C */
420   __IO uint32_t RTSR2;          /*!< EXTI rising trigger selection register [31:0],            Address offset: 0x20 */
421   __IO uint32_t FTSR2;          /*!< EXTI falling trigger selection register [31:0],           Address offset: 0x24 */
422   __IO uint32_t SWIER2;         /*!< EXTI software interrupt event register [31:0],            Address offset: 0x28 */
423   __IO uint32_t PR2;            /*!< EXTI pending register [31:0],                             Address offset: 0x2C */
424   __IO uint32_t RESERVED2[4];   /*!< Reserved,                                                 Address offset: 0x30 - 0x3C */
425   __IO uint32_t RESERVED3[8];   /*!< Reserved,                                                 Address offset: 0x40 - 0x5C */
426   __IO uint32_t RESERVED4[8];   /*!< Reserved,                                                 Address offset: 0x60 - 0x7C */
427   __IO uint32_t IMR1;           /*!< EXTI wakeup with interrupt mask register for cpu1 [31:0], Address offset: 0x80 */
428   __IO uint32_t EMR1;           /*!< EXTI wakeup with event mask register for cpu1 [31:0],     Address offset: 0x84 */
429   __IO uint32_t RESERVED5[2];   /*!< Reserved,                                                 Address offset: 0x88 - 0x8C */
430   __IO uint32_t IMR2;           /*!< EXTI wakeup with interrupt mask register for cpu1 [31:0], Address offset: 0x90 */
431   __IO uint32_t EMR2;           /*!< EXTI wakeup with event mask register for cpu1 [31:0],     Address offset: 0x94 */
432   __IO uint32_t RESERVED8[10];  /*!< Reserved,                                                 Address offset: 0x98 - 0xBC */
433   __IO uint32_t C2IMR1;         /*!< EXTI wakeup with interrupt mask register for cpu2 [31:0], Address offset: 0xC0 */
434   __IO uint32_t C2EMR1;         /*!< EXTI wakeup with event mask register for cpu2 [31:0],     Address offset: 0xC4 */
435   __IO uint32_t RESERVED9[2];   /*!< Reserved,                                                 Address offset: 0xC8 - 0xCC */
436   __IO uint32_t C2IMR2;         /*!< EXTI wakeup with interrupt mask register for cpu2 [31:0], Address offset: 0xD0 */
437   __IO uint32_t C2EMR2;         /*!< EXTI wakeup with event mask register for cpu2 [31:0],     Address offset: 0xD4 */
438 }EXTI_TypeDef;
439 
440 /**
441   * @brief FLASH Registers
442   */
443 typedef struct
444 {
445   __IO uint32_t ACR;           /*!< FLASH Access control register,                      Address offset: 0x00      */
446   __IO uint32_t ACR2;          /*!< FLASH Access control register 2,                    Address offset: 0x04      */
447   __IO uint32_t KEYR;          /*!< FLASH Key register,                                 Address offset: 0x08      */
448   __IO uint32_t OPTKEYR;       /*!< FLASH Option Key register,                          Address offset: 0x0C      */
449   __IO uint32_t SR;            /*!< FLASH Status register,                              Address offset: 0x10      */
450   __IO uint32_t CR;            /*!< FLASH Control register,                             Address offset: 0x14      */
451   __IO uint32_t ECCR;          /*!< FLASH ECC register,                                 Address offset: 0x18      */
452   uint32_t RESERVED1;          /*!< Reserved,                                           Address offset: 0x1C      */
453   __IO uint32_t OPTR;          /*!< FLASH Option register,                              Address offset: 0x20      */
454   __IO uint32_t PCROP1ASR;     /*!< FLASH Bank 1 PCROP area A Start address register,   Address offset: 0x24      */
455   __IO uint32_t PCROP1AER;     /*!< FLASH Bank 1 PCROP area A End address register,     Address offset: 0x28      */
456   __IO uint32_t WRP1AR;        /*!< FLASH Bank 1 WRP area A address register,           Address offset: 0x2C      */
457   __IO uint32_t WRP1BR;        /*!< FLASH Bank 1 WRP area B address register,           Address offset: 0x30      */
458   __IO uint32_t PCROP1BSR;     /*!< FLASH Bank 1 PCROP area B Start address register,   Address offset: 0x34      */
459   __IO uint32_t PCROP1BER;     /*!< FLASH Bank 1 PCROP area B End address register,     Address offset: 0x38      */
460   __IO uint32_t IPCCBR;        /*!< FLASH IPCC data buffer address,                     Address offset: 0x3C      */
461   uint32_t RESERVED2[7];       /*!< Reserved,                                           Address offset: 0x40-0x58 */
462   __IO uint32_t C2ACR;         /*!< FLASH Core MO+ Access Control Register ,            Address offset: 0x5C      */
463   __IO uint32_t C2SR;          /*!< FLASH Core MO+ Status Register,                     Address offset: 0x60      */
464   __IO uint32_t C2CR;          /*!< FLASH Core MO+ Control register,                    Address offset: 0x64      */
465   uint32_t RESERVED3[6];       /*!< Reserved,                                           Address offset: 0x68-0x7C */
466   __IO uint32_t SFR;           /*!< FLASH secure start address,                         Address offset: 0x80      */
467   __IO uint32_t SRRVR;         /*!< FlASH secure SRAM2 start addr and CPU2 reset vector Address offset: 0x84      */
468 } FLASH_TypeDef;
469 
470 /**
471   * @brief General Purpose I/O
472   */
473 typedef struct
474 {
475   __IO uint32_t MODER;       /*!< GPIO port mode register,               Address offset: 0x00      */
476   __IO uint32_t OTYPER;      /*!< GPIO port output type register,        Address offset: 0x04      */
477   __IO uint32_t OSPEEDR;     /*!< GPIO port output speed register,       Address offset: 0x08      */
478   __IO uint32_t PUPDR;       /*!< GPIO port pull-up/pull-down register,  Address offset: 0x0C      */
479   __IO uint32_t IDR;         /*!< GPIO port input data register,         Address offset: 0x10      */
480   __IO uint32_t ODR;         /*!< GPIO port output data register,        Address offset: 0x14      */
481   __IO uint32_t BSRR;        /*!< GPIO port bit set/reset  register,     Address offset: 0x18      */
482   __IO uint32_t LCKR;        /*!< GPIO port configuration lock register, Address offset: 0x1C      */
483   __IO uint32_t AFR[2];      /*!< GPIO alternate function registers,     Address offset: 0x20-0x24 */
484   __IO uint32_t BRR;         /*!< GPIO Bit Reset register,               Address offset: 0x28      */
485 } GPIO_TypeDef;
486 
487 /**
488   * @brief Global Security Controller
489   */
490 typedef struct{
491   __IO uint32_t CR;             /*!< TZSC control register,                             Address offset: 0x00       */
492        uint32_t RESERVED1[3];   /*!< Reserved1,                                         Address offset: 0x04-0x0C  */
493   __IO uint32_t SECCFGR1;       /*!< TZSC secure configuration register 1,              Address offset: 0x10       */
494        uint32_t RESERVED2[3];   /*!< Reserved2,                                         Address offset: 0x14-0x1C  */
495   __IO uint32_t PRIVCFGR1;      /*!< TZSC privilege configuration register 1,           Address offset: 0x20       */
496        uint32_t RESERVED3[67];  /*!< Reserved3,                                         Address offset: 0x24-0x12C */
497   __IO uint32_t MPCWM1_UPWMR;   /*!< TZSC Unprivileged Water Mark 1 register,           Address offset: 0x130      */
498   __IO uint32_t MPCWM1_UPWWMR;  /*!< TZSC Unprivileged Writable Water Mark 1 register,  Address offset: 0x134      */
499   __IO uint32_t MPCWM2_UPWMR;   /*!< TZSC Unprivileged Water Mark 2 register,           Address offset: 0x138      */
500        uint32_t RESERVED4;      /*!< Reserved4,                                         Address offset: 0x13C      */
501   __IO uint32_t MPCWM3_UPWMR;   /*!< TZSC Unprivileged Water Mark 2 register,           Address offset: 0x140      */
502 } GTZC_TZSC_TypeDef;
503 
504 typedef struct{
505   __IO uint32_t IER1;           /*!< TZIC interrupt enable register 1,    Address offset: 0x00 */
506   uint32_t RESERVED1[3];        /*!< Reserved1,                           Address offset: 0x0C */
507   __IO uint32_t MISR1;          /*!< TZIC interrupt status register 1,    Address offset: 0x10 */
508   uint32_t RESERVED2[3];        /*!< Reserved2,                           Address offset: 0x1C */
509   __IO uint32_t ICR1;           /*!< TZIC interrupt clear register 1,     Address offset: 0x20 */
510 } GTZC_TZIC_TypeDef;
511 
512 /**
513   * @brief HW Semaphore HSEM
514   */
515 typedef struct
516 {
517   __IO uint32_t R[16];      /*!< HSEM 2-step write lock and read back registers, Address offset: 00h-3Ch  */
518    uint32_t  Reserved1[16]; /*!< Reserved                                        Address offset: 40h-7Ch  */
519   __IO uint32_t RLR[16];    /*!< HSEM 1-step read lock registers,                Address offset: 80h-BCh  */
520    uint32_t  Reserved2[16]; /*!< Reserved                                        Address offset: C0h-FCh  */
521   __IO uint32_t C1IER;      /*!< HSEM CPU1 interrupt enable register ,           Address offset: 100h     */
522   __IO uint32_t C1ICR;      /*!< HSEM CPU1 interrupt clear register ,            Address offset: 104h     */
523   __IO uint32_t C1ISR;      /*!< HSEM CPU1 interrupt status register ,           Address offset: 108h     */
524   __IO uint32_t C1MISR;     /*!< HSEM CPU1 masked interrupt status register ,    Address offset: 10Ch     */
525   __IO uint32_t C2IER;      /*!< HSEM CPU2 interrupt enable register ,           Address offset: 110h     */
526   __IO uint32_t C2ICR;      /*!< HSEM CPU2 interrupt clear register ,            Address offset: 114h     */
527   __IO uint32_t C2ISR;      /*!< HSEM CPU2 interrupt status register ,           Address offset: 118h     */
528   __IO uint32_t C2MISR;     /*!< HSEM CPU2 masked interrupt status register ,    Address offset: 11Ch     */
529    uint32_t  Reserved[8];   /*!< Reserved                                        Address offset: 120h-13Ch*/
530   __IO uint32_t CR;         /*!< HSEM Semaphore clear register ,                 Address offset: 140h     */
531   __IO uint32_t KEYR;       /*!< HSEM Semaphore clear key register ,             Address offset: 144h     */
532 } HSEM_TypeDef;
533 
534 typedef struct
535 {
536   __IO uint32_t IER;        /*!< HSEM interrupt enable register ,                Address offset:   0h     */
537   __IO uint32_t ICR;        /*!< HSEM interrupt clear register ,                 Address offset:   4h     */
538   __IO uint32_t ISR;        /*!< HSEM interrupt status register ,                Address offset:   8h     */
539   __IO uint32_t MISR;       /*!< HSEM masked interrupt status register ,         Address offset:   Ch     */
540 } HSEM_Common_TypeDef;
541 
542 /**
543   * @brief Inter-integrated Circuit Interface
544   */
545 typedef struct
546 {
547   __IO uint32_t CR1;         /*!< I2C Control register 1,            Address offset: 0x00 */
548   __IO uint32_t CR2;         /*!< I2C Control register 2,            Address offset: 0x04 */
549   __IO uint32_t OAR1;        /*!< I2C Own address 1 register,        Address offset: 0x08 */
550   __IO uint32_t OAR2;        /*!< I2C Own address 2 register,        Address offset: 0x0C */
551   __IO uint32_t TIMINGR;     /*!< I2C Timing register,               Address offset: 0x10 */
552   __IO uint32_t TIMEOUTR;    /*!< I2C Timeout register,              Address offset: 0x14 */
553   __IO uint32_t ISR;         /*!< I2C Interrupt and status register, Address offset: 0x18 */
554   __IO uint32_t ICR;         /*!< I2C Interrupt clear register,      Address offset: 0x1C */
555   __IO uint32_t PECR;        /*!< I2C PEC register,                  Address offset: 0x20 */
556   __IO uint32_t RXDR;        /*!< I2C Receive data register,         Address offset: 0x24 */
557   __IO uint32_t TXDR;        /*!< I2C Transmit data register,        Address offset: 0x28 */
558 } I2C_TypeDef;
559 
560 /**
561   * @brief Inter-Processor Communication
562   */
563 typedef struct
564 {
565   __IO uint32_t C1CR;             /*!< Inter-Processor Communication: C1 control register,                  Address offset: 0x000 */
566   __IO uint32_t C1MR ;            /*!< Inter-Processor Communication: C1 mask register,                     Address offset: 0x004 */
567   __IO uint32_t C1SCR;            /*!< Inter-Processor Communication: C1 status set clear register,         Address offset: 0x008 */
568   __IO uint32_t C1TOC2SR;         /*!< Inter-Processor Communication: C1 to processor M4  status register,  Address offset: 0x00C */
569   __IO uint32_t C2CR;             /*!< Inter-Processor Communication: C2 control register,                  Address offset: 0x010 */
570   __IO uint32_t C2MR ;            /*!< Inter-Processor Communication: C2 mask register,                     Address offset: 0x014 */
571   __IO uint32_t C2SCR;            /*!< Inter-Processor Communication: C2 status set clear register,         Address offset: 0x018 */
572   __IO uint32_t C2TOC1SR;         /*!< Inter-Processor Communication: C2 to processor M4 status register,   Address offset: 0x01C */
573 } IPCC_TypeDef;
574 
575 typedef struct
576 {
577   __IO uint32_t CR;               /*!< Control register,                                                    Address offset: 0x000 */
578   __IO uint32_t MR;               /*!< Mask register,                                                       Address offset: 0x004 */
579   __IO uint32_t SCR;              /*!< Status set clear register,                                           Address offset: 0x008 */
580   __IO uint32_t SR;               /*!< Status register,                                                     Address offset: 0x00C */
581 } IPCC_CommonTypeDef;
582 
583 /**
584   * @brief Independent WATCHDOG
585   */
586 typedef struct
587 {
588   __IO uint32_t KR;          /*!< IWDG Key register,       Address offset: 0x00 */
589   __IO uint32_t PR;          /*!< IWDG Prescaler register, Address offset: 0x04 */
590   __IO uint32_t RLR;         /*!< IWDG Reload register,    Address offset: 0x08 */
591   __IO uint32_t SR;          /*!< IWDG Status register,    Address offset: 0x0C */
592   __IO uint32_t WINR;        /*!< IWDG Window register,    Address offset: 0x10 */
593 } IWDG_TypeDef;
594 
595 /**
596   * @brief LPTIMER
597   */
598 typedef struct
599 {
600   __IO uint32_t ISR;         /*!< LPTIM Interrupt and Status register,                Address offset: 0x00 */
601   __IO uint32_t ICR;         /*!< LPTIM Interrupt Clear register,                     Address offset: 0x04 */
602   __IO uint32_t IER;         /*!< LPTIM Interrupt Enable register,                    Address offset: 0x08 */
603   __IO uint32_t CFGR;        /*!< LPTIM Configuration register,                       Address offset: 0x0C */
604   __IO uint32_t CR;          /*!< LPTIM Control register,                             Address offset: 0x10 */
605   __IO uint32_t CMP;         /*!< LPTIM Compare register,                             Address offset: 0x14 */
606   __IO uint32_t ARR;         /*!< LPTIM Autoreload register,                          Address offset: 0x18 */
607   __IO uint32_t CNT;         /*!< LPTIM Counter register,                             Address offset: 0x1C */
608   __IO uint32_t OR;          /*!< LPTIM Option register,                              Address offset: 0x20 */
609   __IO uint32_t RESERVED;    /*!< Reserved,                                           Address offset: 0x24 */
610   __IO uint32_t RCR;         /*!< LPTIM repetition register,                          Address offset: 0x28 */
611 } LPTIM_TypeDef;
612 
613 /**
614   * @brief Public Key Accelerator (PKA)
615   */
616 typedef struct
617 {
618   __IO uint32_t CR;          /*!< PKA control register,                 Address offset: 0x00 */
619   __IO uint32_t SR;          /*!< PKA status register,                  Address offset: 0x04 */
620   __IO uint32_t CLRFR;       /*!< PKA clear flag register,              Address offset: 0x08 */
621   uint32_t  Reserved1[253];  /*!< Reserved                              Address offset: 0x000C-0x03FC*/
622   __IO uint32_t RAM[894];    /*!< PKA RAM,                              Address offset: 0x0400-0x11F4 */
623 } PKA_TypeDef;
624 
625 /**
626   * @brief Power Control
627   */
628 typedef struct
629 {
630   __IO uint32_t CR1;          /*!< PWR Power Control Register 1,                     Address offset: 0x00 */
631   __IO uint32_t CR2;          /*!< PWR Power Control Register 2,                     Address offset: 0x04 */
632   __IO uint32_t CR3;          /*!< PWR Power Control Register 3,                     Address offset: 0x08 */
633   __IO uint32_t CR4;          /*!< PWR Power Control Register 4,                     Address offset: 0x0C */
634   __IO uint32_t SR1;          /*!< PWR Power Status Register 1,                      Address offset: 0x10 */
635   __IO uint32_t SR2;          /*!< PWR Power Status Register 2,                      Address offset: 0x14 */
636   __IO uint32_t SCR;          /*!< PWR Power Status Reset Register,                  Address offset: 0x18 */
637   __IO uint32_t CR5;          /*!< PWR Power Control Register 5,                     Address offset: 0x1C */
638   __IO uint32_t PUCRA;        /*!< PWR Pull-Up Control Register of port A,           Address offset: 0x20 */
639   __IO uint32_t PDCRA;        /*!< PWR Pull-Down Control Register of port A,         Address offset: 0x24 */
640   __IO uint32_t PUCRB;        /*!< PWR Pull-Up Control Register of port B,           Address offset: 0x28 */
641   __IO uint32_t PDCRB;        /*!< PWR Pull-Down Control Register of port B,         Address offset: 0x2C */
642   __IO uint32_t PUCRC;        /*!< PWR Pull-Up Control Register of port C,           Address offset: 0x30 */
643   __IO uint32_t PDCRC;        /*!< PWR Pull-Down Control Register of port C,         Address offset: 0x34 */
644        uint32_t RESERVED0[8]; /*!< Reserved,                                         Address offset: 0x38-0x54 */
645   __IO uint32_t PUCRH;        /*!< PWR Pull-Up Control Register of port H,           Address offset: 0x58 */
646   __IO uint32_t PDCRH;        /*!< PWR Pull-Down Control Register of port H,         Address offset: 0x5C */
647        uint32_t RESERVED1[8]; /*!< Reserved,                                         Address offset: 0x60-0x7C */
648   __IO uint32_t C2CR1;        /*!< PWR Power Control Register 1 for CPU2,            Address offset: 0x80 */
649   __IO uint32_t C2CR3;        /*!< PWR Power Control Register 3 for CPU2,            Address offset: 0x84 */
650   __IO uint32_t EXTSCR;       /*!< PWR Power Status Reset Register for CPU2,         Address offset: 0x88 */
651   __IO uint32_t SECCFGR;      /*!< PWR Security Configuration Register,              Address offset: 0x8C */
652   __IO uint32_t SUBGHZSPICR;  /*!< PWR SUBGHZSPI Control Register,                   Address offset: 0x90 */
653        uint32_t RESERVED2;    /*!< Reserved,                                         Address offset: 0x94 */
654   __IO uint32_t RSSCMDR;      /*!< PWR RSS Command Register,                         Address offset: 0x98 */
655 } PWR_TypeDef;
656 
657 /**
658   * @brief Reset and Clock Control
659   */
660 typedef struct
661 {
662   __IO uint32_t CR;           /*!< RCC clock  Control Register,                                                    Address offset: 0x00 */
663   __IO uint32_t ICSCR;        /*!< RCC Internal Clock Sources Calibration Register,                                Address offset: 0x04 */
664   __IO uint32_t CFGR;         /*!< RCC Clocks Configuration Register,                                              Address offset: 0x08 */
665   __IO uint32_t PLLCFGR;      /*!< RCC System PLL configuration Register,                                          Address offset: 0x0C */
666 uint32_t RESERVED0;           /*!< Reserved,                                                                       Address offset: 0x10 */
667 uint32_t RESERVED1;           /*!< Reserved,                                                                       Address offset: 0x14 */
668   __IO uint32_t CIER;         /*!< RCC Clock Interrupt Enable Register,                                            Address offset: 0x18 */
669   __IO uint32_t CIFR;         /*!< RCC Clock Interrupt Flag Register,                                              Address offset: 0x1C */
670   __IO uint32_t CICR;         /*!< RCC Clock Interrupt Clear Register,                                             Address offset: 0x20 */
671 uint32_t RESERVED2;           /*!< Reserved,                                                                       Address offset: 0x24 */
672   __IO uint32_t AHB1RSTR;     /*!< RCC AHB1 peripheral reset register,                                             Address offset: 0x28 */
673   __IO uint32_t AHB2RSTR;     /*!< RCC AHB2 peripheral reset register,                                             Address offset: 0x2C */
674   __IO uint32_t AHB3RSTR;     /*!< RCC AHB3 peripheral reset register,                                             Address offset: 0x30 */
675 uint32_t RESERVED3;           /*!< Reserved,                                                                       Address offset: 0x34 */
676   __IO uint32_t APB1RSTR1;    /*!< RCC APB1 peripheral reset register 1,                                           Address offset: 0x38 */
677   __IO uint32_t APB1RSTR2;    /*!< RCC APB1 peripheral reset register 2,                                           Address offset: 0x3C */
678   __IO uint32_t APB2RSTR;     /*!< RCC APB2 peripheral reset register,                                             Address offset: 0x40 */
679   __IO uint32_t APB3RSTR;     /*!< RCC APB3 peripheral reset register,                                             Address offset: 0x44 */
680   __IO uint32_t AHB1ENR;      /*!< RCC AHB1 peripheral clocks enable register,                                     Address offset: 0x48 */
681   __IO uint32_t AHB2ENR;      /*!< RCC AHB2 peripheral clocks enable register,                                     Address offset: 0x4C */
682   __IO uint32_t AHB3ENR;      /*!< RCC AHB3 peripheral clocks enable register,                                     Address offset: 0x50 */
683 uint32_t RESERVED4;           /*!< Reserved,                                                                       Address offset: 0x54 */
684   __IO uint32_t APB1ENR1;     /*!< RCC APB1 peripheral clocks enable register 1,                                   Address offset: 0x58 */
685   __IO uint32_t APB1ENR2;     /*!< RCC APB1 peripheral clocks enable register 2,                                   Address offset: 0x5C */
686   __IO uint32_t APB2ENR;      /*!< RCC APB2 peripheral clocks enable register,                                     Address offset: 0x60 */
687   __IO uint32_t APB3ENR;      /*!< RCC APB3 peripheral clocks enable register,                                     Address offset: 0x64 */
688   __IO uint32_t AHB1SMENR;    /*!< RCC AHB1 peripheral clocks enable in sleep and stop modes register,             Address offset: 0x68 */
689   __IO uint32_t AHB2SMENR;    /*!< RCC AHB2 peripheral clocks enable in sleep and stop modes register,             Address offset: 0x6C */
690   __IO uint32_t AHB3SMENR;    /*!< RCC AHB3 & AHB4 peripheral clocks enable in sleep and stop modes register,      Address offset: 0x70 */
691 uint32_t RESERVED5;           /*!< Reserved,                                                                       Address offset: 0x74 */
692   __IO uint32_t APB1SMENR1;   /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 1,      Address offset: 0x78 */
693   __IO uint32_t APB1SMENR2;   /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 2,      Address offset: 0x7C */
694   __IO uint32_t APB2SMENR;    /*!< RCC APB2 peripheral clocks enable in sleep mode and stop modes register,        Address offset: 0x80 */
695   __IO uint32_t APB3SMENR;    /*!< RCC APB3 peripheral clocks enable in sleep mode and stop modes register,        Address offset: 0x84 */
696   __IO uint32_t CCIPR;        /*!< RCC Peripherals Clock Configuration Independent Register,                       Address offset: 0x88 */
697 uint32_t RESERVED6;           /*!< Reserved,                                                                       Address offset: 0x8C */
698   __IO uint32_t BDCR;         /*!< RCC Backup Domain Control Register,                                             Address offset: 0x90 */
699   __IO uint32_t CSR;          /*!< RCC Control and Status Register,                                                Address offset: 0x94 */
700 uint32_t RESERVED7[28];       /*!< Reserved,                                                                       Address offset: 0x98-0x104 */
701   __IO uint32_t EXTCFGR;      /*!< RCC Extended Clock Recovery Register,                                           Address offset: 0x108 */
702   __IO uint32_t RESERVED8[15]; /*!< Reserved,                                                                      Address offset: 0x10C-0x144 */
703   __IO uint32_t C2AHB1ENR;   /*!< RRCC AHB1 peripheral CPU2 clocks enable register,                                Address offset: 0x148 */
704   __IO uint32_t C2AHB2ENR;   /*!< RCC AHB2 peripheral CPU2 clocks enable register,                                 Address offset: 0x14C */
705   __IO uint32_t C2AHB3ENR;   /*!< RCC AHB3 & AHB4 peripheral CPU2 clocks enable register,,                         Address offset: 0x150 */
706 uint32_t RESERVED9;           /*!< Reserved,                                                                       Address offset: 0x154 */
707   __IO uint32_t C2APB1ENR1;  /*!< RCC APB1 peripheral CPU2 clocks enable register 1,                               Address offset: 0x158 */
708   __IO uint32_t C2APB1ENR2;  /*!< RCC APB1 peripheral CPU2 clocks enable register 2,                               Address offset: 0x15C */
709   __IO uint32_t C2APB2ENR;   /*!< RCC APB2 peripheral CPU2 clocks enable register 1,                               Address offset: 0x160 */
710   __IO uint32_t C2APB3ENR;   /*!< RCC APB3 peripheral CPU2 clocks enable register 1,                               Address offset: 0x164 */
711   __IO uint32_t C2AHB1SMENR; /*!< RCC AHB1 peripheral CPU2 clocks enable in sleep and stop modes register,         Address offset: 0x168 */
712   __IO uint32_t C2AHB2SMENR; /*!< RCC AHB2 peripheral CPU2 clocks enable in sleep and stop modes register,         Address offset: 0x16C */
713   __IO uint32_t C2AHB3SMENR; /*!< RCC AHB3 & AHB4 peripheral CPU2 clocks enable in sleep and stop modes register,  Address offset: 0x170 */
714 uint32_t RESERVED10;          /*!< Reserved,                                                                                             */
715   __IO uint32_t C2APB1SMENR1;/*!< RCC APB1 peripheral CPU2 clocks enable in sleep mode and stop modes register 1,  Address offset: 0x178 */
716   __IO uint32_t C2APB1SMENR2;/*!< RCC APB1 peripheral CPU2 clocks enable in sleep mode and stop modes register 2,  Address offset: 0x17C */
717   __IO uint32_t C2APB2SMENR; /*!< RCC APB2 peripheral CPU2 clocks enable in sleep mode and stop modes register,    Address offset: 0x180 */
718   __IO uint32_t C2APB3SMENR; /*!< RCC APB3 peripheral CPU2 clocks enable in sleep mode and stop modes register,    Address offset: 0x184 */
719 } RCC_TypeDef;
720 
721 /**
722   * @brief RNG
723   */
724 typedef struct
725 {
726   __IO uint32_t CR;        /*!< RNG control register,             Address offset: 0x00 */
727   __IO uint32_t SR;        /*!< RNG status register,              Address offset: 0x04 */
728   __IO uint32_t DR;        /*!< RNG data register,                Address offset: 0x08 */
729   uint32_t      RESERVED0; /*!< Reserved,                         Address offset: 0x0C */
730   __IO uint32_t HTCR;      /*!< RNG health test control register, Address offset: 0x10 */
731 } RNG_TypeDef;
732 
733 /**
734   * @brief RTC Specific device feature definitions
735   */
736 #define RTC_BACKUP_NB       20u
737 #define RTC_TAMP_NB         3u
738 
739 /**
740   * @brief Real-Time Clock
741   */
742 typedef struct
743 {
744   __IO uint32_t TR;          /*!< RTC time register,                              Address offset: 0x00 */
745   __IO uint32_t DR;          /*!< RTC date register,                              Address offset: 0x04 */
746   __IO uint32_t SSR;         /*!< RTC sub second register,                        Address offset: 0x08 */
747   __IO uint32_t ICSR;        /*!< RTC initialization control and status register, Address offset: 0x0C */
748   __IO uint32_t PRER;        /*!< RTC prescaler register,                         Address offset: 0x10 */
749   __IO uint32_t WUTR;        /*!< RTC wakeup timer register,                      Address offset: 0x14 */
750   __IO uint32_t CR;          /*!< RTC control register,                           Address offset: 0x18 */
751        uint32_t RESERVED0;   /*!< Reserved,                                       Address offset: 0x1C */
752        uint32_t RESERVED1;   /*!< Reserved,                                       Address offset: 0x20 */
753   __IO uint32_t WPR;         /*!< RTC write protection register,                  Address offset: 0x24 */
754   __IO uint32_t CALR;        /*!< RTC calibration register,                       Address offset: 0x28 */
755   __IO uint32_t SHIFTR;      /*!< RTC shift control register,                     Address offset: 0x2C */
756   __IO uint32_t TSTR;        /*!< RTC time stamp time register,                   Address offset: 0x30 */
757   __IO uint32_t TSDR;        /*!< RTC time stamp date register,                   Address offset: 0x34 */
758   __IO uint32_t TSSSR;       /*!< RTC time-stamp sub second register,             Address offset: 0x38 */
759        uint32_t RESERVED2;   /*!< Reserved,                                       Address offset: 0x3C */
760   __IO uint32_t ALRMAR;      /*!< RTC alarm A register,                           Address offset: 0x40 */
761   __IO uint32_t ALRMASSR;    /*!< RTC alarm A sub second register,                Address offset: 0x44 */
762   __IO uint32_t ALRMBR;      /*!< RTC alarm B register,                           Address offset: 0x48 */
763   __IO uint32_t ALRMBSSR;    /*!< RTC alarm B sub second register,                Address offset: 0x4C */
764   __IO uint32_t SR;          /*!< RTC Status register,                            Address offset: 0x50 */
765   __IO uint32_t MISR;        /*!< RTC masked interrupt status register,           Address offset: 0x54 */
766        uint32_t RESERVED3;   /*!< Reserved,                                       Address offset: 0x58 */
767   __IO uint32_t SCR;         /*!< RTC status Clear register,                      Address offset: 0x5C */
768        uint32_t RESERVED4[4];/*!< Reserved,                                       Address offset: 0x58 */
769   __IO uint32_t ALRABINR;/*!< RTC alarm A binary mode register,                   Address offset: 0x70 */
770   __IO uint32_t ALRBBINR;/*!< RTC alarm B binary mode register,                   Address offset: 0x74 */
771 } RTC_TypeDef;
772 
773 /**
774   * @brief Serial Peripheral Interface
775   */
776 typedef struct
777 {
778   __IO uint32_t CR1;      /*!< SPI Control register 1 (not used in I2S mode),       Address offset: 0x00 */
779   __IO uint32_t CR2;      /*!< SPI Control register 2,                              Address offset: 0x04 */
780   __IO uint32_t SR;       /*!< SPI Status register,                                 Address offset: 0x08 */
781   __IO uint32_t DR;       /*!< SPI data register,                                   Address offset: 0x0C */
782   __IO uint32_t CRCPR;    /*!< SPI CRC polynomial register (not used in I2S mode),  Address offset: 0x10 */
783   __IO uint32_t RXCRCR;   /*!< SPI Rx CRC register (not used in I2S mode),          Address offset: 0x14 */
784   __IO uint32_t TXCRCR;   /*!< SPI Tx CRC register (not used in I2S mode),          Address offset: 0x18 */
785   __IO uint32_t I2SCFGR;  /*!< SPI_I2S configuration register,                      Address offset: 0x1C */
786   __IO uint32_t I2SPR;    /*!< SPI_I2S prescaler register,                          Address offset: 0x20 */
787 } SPI_TypeDef;
788 
789 /**
790   * @brief System configuration controller
791   */
792 typedef struct
793 {
794   __IO uint32_t MEMRMP;            /*!< SYSCFG memory remap register                                            Address offset: 0x00       */
795   __IO uint32_t CFGR1;             /*!< SYSCFG configuration register 1,                                        Address offset: 0x04       */
796   __IO uint32_t EXTICR[4];         /*!< SYSCFG external interrupt configuration registers,                      Address offset: 0x08-0x14  */
797   __IO uint32_t SCSR;              /*!< SYSCFG SRAM2 control and status register,                               Address offset: 0x18       */
798   __IO uint32_t CFGR2;             /*!< SYSCFG configuration register 2,                                        Address offset: 0x1C       */
799   __IO uint32_t SWPR;              /*!< SYSCFG SRAM2 write protection register part,                            Address offset: 0x20       */
800   __IO uint32_t SKR;               /*!< SYSCFG SRAM2 key register,                                              Address offset: 0x24       */
801        uint32_t RESERVED1[54];     /*!< Reserved,                                                               Address offset: 0x28-0xFC  */
802   __IO uint32_t IMR1;              /*!< SYSCFG CPU1 (CORTEX M4) interrupt masks control-status register part 1, Address offset: 0x100      */
803   __IO uint32_t IMR2;              /*!< SYSCFG CPU1 (CORTEX M4) interrupt masks control-status register part 2, Address offset: 0x104      */
804   __IO uint32_t C2IMR1;            /*!< SYSCFG CPU2 (CORTEX M0) interrupt masks control-status register part 1, Address offset: 0x108      */
805   __IO uint32_t C2IMR2;            /*!< SYSCFG CPU2 (CORTEX M0) interrupt masks control-status register part 2, Address offset: 0x10C      */
806        uint32_t RESERVED2[62];     /*!< Reserved,                                                               Address offset: 0x110-0x204*/
807   __IO uint32_t RFDCR;             /*!< SYSCFG CPU2 radio debug control register,                               Address offset: 0x208      */
808 } SYSCFG_TypeDef;
809 
810 /**
811   * @brief Tamper and backup registers
812   */
813 typedef struct
814 {
815   __IO uint32_t CR1;         /*!< TAMP configuration register 1,            Address offset: 0x00 */
816   __IO uint32_t CR2;         /*!< TAMP configuration register 2,            Address offset: 0x04 */
817   __IO uint32_t CR3;         /*!< TAMP configuration register 3,            Address offset: 0x08 */
818   __IO uint32_t FLTCR;       /*!< TAMP filter control register,             Address offset: 0x0C */
819        uint32_t RESERVED0[7];/*!< Reserved,                                 Address offset: 0x10 */
820   __IO uint32_t IER;         /*!< TAMP interrupt enable register,           Address offset: 0x2C */
821   __IO uint32_t SR;          /*!< TAMP status register,                     Address offset: 0x30 */
822   __IO uint32_t MISR;        /*!< TAMP masked interrupt status register,    Address offset: 0x34 */
823        uint32_t RESERVED1;   /*!< Reserved,                                 Address offset: 0x38 */
824   __IO uint32_t SCR;         /*!< TAMP status clear register,               Address offset: 0x3C */
825   __IO uint32_t COUNTR;      /*!< TAMP monotonic counter register,          Address offset: 0x40 */
826        uint32_t RESERVED2[47];/*!< Reserved,                                Address offset: 0x54 - 0xFC */
827   __IO uint32_t BKP0R;       /*!< TAMP backup register 0,                   Address offset: 0x100 */
828   __IO uint32_t BKP1R;       /*!< TAMP backup register 1,                   Address offset: 0x104 */
829   __IO uint32_t BKP2R;       /*!< TAMP backup register 2,                   Address offset: 0x108 */
830   __IO uint32_t BKP3R;       /*!< TAMP backup register 3,                   Address offset: 0x10C */
831   __IO uint32_t BKP4R;       /*!< TAMP backup register 4,                   Address offset: 0x110 */
832   __IO uint32_t BKP5R;       /*!< TAMP backup register 5,                   Address offset: 0x114 */
833   __IO uint32_t BKP6R;       /*!< TAMP backup register 6,                   Address offset: 0x118 */
834   __IO uint32_t BKP7R;       /*!< TAMP backup register 7,                   Address offset: 0x11C */
835   __IO uint32_t BKP8R;       /*!< TAMP backup register 8,                   Address offset: 0x120 */
836   __IO uint32_t BKP9R;       /*!< TAMP backup register 9,                   Address offset: 0x124 */
837   __IO uint32_t BKP10R;      /*!< TAMP backup register 10,                  Address offset: 0x128 */
838   __IO uint32_t BKP11R;      /*!< TAMP backup register 11,                  Address offset: 0x12C */
839   __IO uint32_t BKP12R;      /*!< TAMP backup register 12,                  Address offset: 0x130 */
840   __IO uint32_t BKP13R;      /*!< TAMP backup register 13,                  Address offset: 0x134 */
841   __IO uint32_t BKP14R;      /*!< TAMP backup register 14,                  Address offset: 0x138 */
842   __IO uint32_t BKP15R;      /*!< TAMP backup register 15,                  Address offset: 0x13C */
843   __IO uint32_t BKP16R;      /*!< TAMP backup register 16,                  Address offset: 0x140 */
844   __IO uint32_t BKP17R;      /*!< TAMP backup register 17,                  Address offset: 0x144 */
845   __IO uint32_t BKP18R;      /*!< TAMP backup register 18,                  Address offset: 0x148 */
846   __IO uint32_t BKP19R;      /*!< TAMP backup register 19,                  Address offset: 0x14C */
847 } TAMP_TypeDef;
848 
849 /**
850   * @brief TIM
851   */
852 typedef struct
853 {
854   __IO uint32_t CR1;         /*!< TIM control register 1,                   Address offset: 0x00 */
855   __IO uint32_t CR2;         /*!< TIM control register 2,                   Address offset: 0x04 */
856   __IO uint32_t SMCR;        /*!< TIM slave mode control register,          Address offset: 0x08 */
857   __IO uint32_t DIER;        /*!< TIM DMA/interrupt enable register,        Address offset: 0x0C */
858   __IO uint32_t SR;          /*!< TIM status register,                      Address offset: 0x10 */
859   __IO uint32_t EGR;         /*!< TIM event generation register,            Address offset: 0x14 */
860   __IO uint32_t CCMR1;       /*!< TIM capture/compare mode register 1,      Address offset: 0x18 */
861   __IO uint32_t CCMR2;       /*!< TIM capture/compare mode register 2,      Address offset: 0x1C */
862   __IO uint32_t CCER;        /*!< TIM capture/compare enable register,      Address offset: 0x20 */
863   __IO uint32_t CNT;         /*!< TIM counter register,                     Address offset: 0x24 */
864   __IO uint32_t PSC;         /*!< TIM prescaler register,                   Address offset: 0x28 */
865   __IO uint32_t ARR;         /*!< TIM auto-reload register,                 Address offset: 0x2C */
866   __IO uint32_t RCR;         /*!< TIM repetition counter register,          Address offset: 0x30 */
867   __IO uint32_t CCR1;        /*!< TIM capture/compare register 1,           Address offset: 0x34 */
868   __IO uint32_t CCR2;        /*!< TIM capture/compare register 2,           Address offset: 0x38 */
869   __IO uint32_t CCR3;        /*!< TIM capture/compare register 3,           Address offset: 0x3C */
870   __IO uint32_t CCR4;        /*!< TIM capture/compare register 4,           Address offset: 0x40 */
871   __IO uint32_t BDTR;        /*!< TIM break and dead-time register,         Address offset: 0x44 */
872   __IO uint32_t DCR;         /*!< TIM DMA control register,                 Address offset: 0x48 */
873   __IO uint32_t DMAR;        /*!< TIM DMA address for full transfer,        Address offset: 0x4C */
874   __IO uint32_t OR1;         /*!< TIM option register                       Address offset: 0x50 */
875   __IO uint32_t CCMR3;       /*!< TIM capture/compare mode register 3,      Address offset: 0x54 */
876   __IO uint32_t CCR5;        /*!< TIM capture/compare register5,            Address offset: 0x58 */
877   __IO uint32_t CCR6;        /*!< TIM capture/compare register6,            Address offset: 0x5C */
878   __IO uint32_t AF1;         /*!< TIM Alternate function option register 1, Address offset: 0x60 */
879   __IO uint32_t AF2;         /*!< TIM Alternate function option register 2, Address offset: 0x64 */
880 } TIM_TypeDef;
881 
882 /**
883   * @brief Universal Synchronous Asynchronous Receiver Transmitter
884   */
885 typedef struct
886 {
887   __IO uint32_t CR1;               /*!< USART Control register 1,                 Address offset: 0x00  */
888   __IO uint32_t CR2;               /*!< USART Control register 2,                 Address offset: 0x04  */
889   __IO uint32_t CR3;               /*!< USART Control register 3,                 Address offset: 0x08  */
890   __IO uint32_t BRR;               /*!< USART Baud rate register,                 Address offset: 0x0C  */
891   __IO uint32_t GTPR;              /*!< USART Guard time and prescaler register,  Address offset: 0x10  */
892   __IO uint32_t RTOR;              /*!< USART Receiver Time Out register,         Address offset: 0x14  */
893   __IO uint32_t RQR;               /*!< USART Request register,                   Address offset: 0x18  */
894   __IO uint32_t ISR;               /*!< USART Interrupt and status register,      Address offset: 0x1C  */
895   __IO uint32_t ICR;               /*!< USART Interrupt flag Clear register,      Address offset: 0x20  */
896   __IO uint32_t RDR;               /*!< USART Receive Data register,              Address offset: 0x24  */
897   __IO uint32_t TDR;               /*!< USART Transmit Data register,             Address offset: 0x28  */
898   __IO uint32_t PRESC;             /*!< USART Prescaler register,                 Address offset: 0x2C  */
899 } USART_TypeDef;
900 
901 /**
902   * @brief VREFBUF
903   */
904 typedef struct
905 {
906   __IO uint32_t CSR;         /*!< VREFBUF control and status register,         Address offset: 0x00 */
907   __IO uint32_t CCR;         /*!< VREFBUF calibration and control register,    Address offset: 0x04 */
908 } VREFBUF_TypeDef;
909 
910 /**
911   * @brief Window WATCHDOG
912   */
913 typedef struct
914 {
915   __IO uint32_t CR;          /*!< WWDG Control register,       Address offset: 0x00 */
916   __IO uint32_t CFR;         /*!< WWDG Configuration register, Address offset: 0x04 */
917   __IO uint32_t SR;          /*!< WWDG Status register,        Address offset: 0x08 */
918 } WWDG_TypeDef;
919 
920 /**
921   * @}
922   */
923 
924 /** @addtogroup Peripheral_memory_map
925   * @{
926   */
927 /*!< Boundary memory map */
928 #define FLASH_BASE              0x08000000UL   /*!< FLASH(up to 256 KB) base address */
929 #define SYSTEM_FLASH_BASE       0x1FFF0000UL   /*!< System FLASH(28Kb) base address */
930 #define SRAM1_BASE              0x20000000UL   /*!< SRAM1(up to 32 KB) base address */
931 #define SRAM2_BASE              0x20008000UL   /*!< SRAM2(up to 32 KB) base address */
932 #define PERIPH_BASE             0x40000000UL   /*!< Peripheral base address */
933 
934 #define FLASH_SIZE              (((*((uint32_t *)FLASHSIZE_BASE)) & 0xFFFFU) << 10U)
935 #define SRAM1_SIZE              0x00008000UL   /*!< SRAM1 default size : 32 kB */
936 #define SRAM2_SIZE              0x00008000UL   /*!< SRAM2 default size : 32 kB  */
937 
938 /*!< Memory, OTP and Option bytes */
939 #define RSSLIB_PFUNC_BASE       (SYSTEM_FLASH_BASE + 0x00003A00UL) /*!< RSS area                                      */
940 #define OTP_AREA_BASE           (SYSTEM_FLASH_BASE + 0x00007000UL) /*!< OTP area : 1kB (0x1FFF7000 - 0x1FFF73FF)      */
941 #define ENGI_BYTES_BASE         (SYSTEM_FLASH_BASE + 0x00007400UL) /*!< Engi Bytes : 1kB (0x1FFF7400 - 0x1FFF77FF)    */
942 #define OPTION_BYTES_BASE       (SYSTEM_FLASH_BASE + 0x00007800UL) /*!< Option Bytes : 2kB (0x1FFF7800 - 0x1FFF7FFF)  */
943 
944 /*!< Device Electronic Signature */
945 #define PACKAGE_BASE            (ENGI_BYTES_BASE + 0x00000100UL) /*!< Package data register base address     */
946 #define UID64_BASE              (ENGI_BYTES_BASE + 0x00000180UL) /*!< 64-bit Unique device Identification    */
947 #define UID_BASE                (ENGI_BYTES_BASE + 0x00000190UL) /*!< Unique device ID register base address */
948 #define FLASHSIZE_BASE          (ENGI_BYTES_BASE + 0x000001E0UL) /*!< Flash size data register base address  */
949 
950 #define SYSTEM_MEMORY_END_ADDR  (0x1FFF6FFFUL)   /*!< System Memory : 28KB (0x1FFF0000 - 0x1FFF6FFF)  */
951 #define OTP_AREA_END_ADDR       (0x1FFF73FFUL)   /*!< OTP area : 1KB (0x1FFF7000 - 0x1FFF73FF)        */
952 #define ENGI_BYTE_END_ADDR      (0x1FFF77FFUL)   /*!< Engi Bytes : 1kB (0x1FFF7400 - 0x1FFF77FF)      */
953 #define OPTION_BYTE_END_ADDR    (0x1FFF7FFFUL)   /*!< Option Bytes : 2KB (0x1FFF7800 - 0x1FFF7FFF)    */
954 
955 /*!< Peripheral memory map */
956 #define APB1PERIPH_BASE         PERIPH_BASE
957 #define APB2PERIPH_BASE         (PERIPH_BASE + 0x00010000UL)
958 #define AHB1PERIPH_BASE         (PERIPH_BASE + 0x00020000UL)
959 #define AHB2PERIPH_BASE         (PERIPH_BASE + 0x08000000UL)
960 #define AHB3PERIPH_BASE         (PERIPH_BASE + 0x18000000UL)
961 #define APB3PERIPH_BASE         (PERIPH_BASE + 0x18010000UL)
962 
963 /*!< APB1 peripherals */
964 #define TIM2_BASE               (APB1PERIPH_BASE + 0x00000000UL)
965 #define RTC_BASE                (APB1PERIPH_BASE + 0x00002800UL)
966 #define WWDG_BASE               (APB1PERIPH_BASE + 0x00002C00UL)
967 #define IWDG_BASE               (APB1PERIPH_BASE + 0x00003000UL)
968 #define SPI2_BASE               (APB1PERIPH_BASE + 0x00003800UL)
969 #define USART2_BASE             (APB1PERIPH_BASE + 0x00004400UL)
970 #define I2C1_BASE               (APB1PERIPH_BASE + 0x00005400UL)
971 #define I2C2_BASE               (APB1PERIPH_BASE + 0x00005800UL)
972 #define I2C3_BASE               (APB1PERIPH_BASE + 0x00005C00UL)
973 #define DAC_BASE                (APB1PERIPH_BASE + 0x00007400UL)
974 #define LPTIM1_BASE             (APB1PERIPH_BASE + 0x00007C00UL)
975 #define LPUART1_BASE            (APB1PERIPH_BASE + 0x00008000UL)
976 #define LPTIM2_BASE             (APB1PERIPH_BASE + 0x00009400UL)
977 #define LPTIM3_BASE             (APB1PERIPH_BASE + 0x00009800UL)
978 #define TAMP_BASE               (APB1PERIPH_BASE + 0x0000B000UL)
979 
980 /*!< APB2 peripherals */
981 #define SYSCFG_BASE             (APB2PERIPH_BASE + 0x00000000UL)
982 #define VREFBUF_BASE            (APB2PERIPH_BASE + 0x00000030UL)
983 #define COMP1_BASE              (APB2PERIPH_BASE + 0x00000200UL)
984 #define COMP2_BASE              (APB2PERIPH_BASE + 0x00000204UL)
985 #define ADC_BASE                (APB2PERIPH_BASE + 0x00002400UL)
986 #define ADC_COMMON_BASE         (APB2PERIPH_BASE + 0x00002708UL)
987 #define TIM1_BASE               (APB2PERIPH_BASE + 0x00002C00UL)
988 #define SPI1_BASE               (APB2PERIPH_BASE + 0x00003000UL)
989 #define USART1_BASE             (APB2PERIPH_BASE + 0x00003800UL)
990 #define TIM16_BASE              (APB2PERIPH_BASE + 0x00004400UL)
991 #define TIM17_BASE              (APB2PERIPH_BASE + 0x00004800UL)
992 
993 /*!< AHB1 peripherals */
994 #define DMA1_BASE               (AHB1PERIPH_BASE + 0x00000000UL)
995 #define DMA2_BASE               (AHB1PERIPH_BASE + 0x00000400UL)
996 #define DMAMUX1_BASE            (AHB1PERIPH_BASE + 0x00000800UL)
997 #define CRC_BASE                (AHB1PERIPH_BASE + 0x00003000UL)
998 
999 #define DMA1_Channel1_BASE       (DMA1_BASE + 0x00000008UL)
1000 #define DMA1_Channel2_BASE       (DMA1_BASE + 0x0000001CUL)
1001 #define DMA1_Channel3_BASE       (DMA1_BASE + 0x00000030UL)
1002 #define DMA1_Channel4_BASE       (DMA1_BASE + 0x00000044UL)
1003 #define DMA1_Channel5_BASE       (DMA1_BASE + 0x00000058UL)
1004 #define DMA1_Channel6_BASE       (DMA1_BASE + 0x0000006CUL)
1005 #define DMA1_Channel7_BASE       (DMA1_BASE + 0x00000080UL)
1006 
1007 #define DMA2_Channel1_BASE       (DMA2_BASE + 0x00000008UL)
1008 #define DMA2_Channel2_BASE       (DMA2_BASE + 0x0000001CUL)
1009 #define DMA2_Channel3_BASE       (DMA2_BASE + 0x00000030UL)
1010 #define DMA2_Channel4_BASE       (DMA2_BASE + 0x00000044UL)
1011 #define DMA2_Channel5_BASE       (DMA2_BASE + 0x00000058UL)
1012 #define DMA2_Channel6_BASE       (DMA2_BASE + 0x0000006CUL)
1013 #define DMA2_Channel7_BASE       (DMA2_BASE + 0x00000080UL)
1014 
1015 #define DMAMUX1_Channel0_BASE    (DMAMUX1_BASE)
1016 #define DMAMUX1_Channel1_BASE    (DMAMUX1_BASE + 0x00000004UL)
1017 #define DMAMUX1_Channel2_BASE    (DMAMUX1_BASE + 0x00000008UL)
1018 #define DMAMUX1_Channel3_BASE    (DMAMUX1_BASE + 0x0000000CUL)
1019 #define DMAMUX1_Channel4_BASE    (DMAMUX1_BASE + 0x00000010UL)
1020 #define DMAMUX1_Channel5_BASE    (DMAMUX1_BASE + 0x00000014UL)
1021 #define DMAMUX1_Channel6_BASE    (DMAMUX1_BASE + 0x00000018UL)
1022 #define DMAMUX1_Channel7_BASE    (DMAMUX1_BASE + 0x0000001CUL)
1023 #define DMAMUX1_Channel8_BASE    (DMAMUX1_BASE + 0x00000020UL)
1024 #define DMAMUX1_Channel9_BASE    (DMAMUX1_BASE + 0x00000024UL)
1025 #define DMAMUX1_Channel10_BASE   (DMAMUX1_BASE + 0x00000028UL)
1026 #define DMAMUX1_Channel11_BASE   (DMAMUX1_BASE + 0x0000002CUL)
1027 #define DMAMUX1_Channel12_BASE   (DMAMUX1_BASE + 0x00000030UL)
1028 #define DMAMUX1_Channel13_BASE   (DMAMUX1_BASE + 0x00000034UL)
1029 
1030 #define DMAMUX1_RequestGenerator0_BASE  (DMAMUX1_BASE + 0x00000100UL)
1031 #define DMAMUX1_RequestGenerator1_BASE  (DMAMUX1_BASE + 0x00000104UL)
1032 #define DMAMUX1_RequestGenerator2_BASE  (DMAMUX1_BASE + 0x00000108UL)
1033 #define DMAMUX1_RequestGenerator3_BASE  (DMAMUX1_BASE + 0x0000010CUL)
1034 
1035 #define DMAMUX1_ChannelStatus_BASE      (DMAMUX1_BASE + 0x00000080UL)
1036 #define DMAMUX1_RequestGenStatus_BASE   (DMAMUX1_BASE + 0x00000140UL)
1037 
1038 /*!< AHB2 peripherals */
1039 #define IOPORT_BASE             (AHB2PERIPH_BASE + 0x00000000UL)
1040 #define GPIOA_BASE              (IOPORT_BASE + 0x00000000UL)
1041 #define GPIOB_BASE              (IOPORT_BASE + 0x00000400UL)
1042 #define GPIOC_BASE              (IOPORT_BASE + 0x00000800UL)
1043 #define GPIOH_BASE              (IOPORT_BASE + 0x00001C00UL)
1044 
1045 /*!< AHB3 peripherals */
1046 #define PWR_BASE                (AHB3PERIPH_BASE + 0x00000400UL)
1047 #define EXTI_BASE               (AHB3PERIPH_BASE + 0x00000800UL)
1048 #define IPCC_BASE               (AHB3PERIPH_BASE + 0x00000C00UL)
1049 #define RCC_BASE                (AHB3PERIPH_BASE + 0x00000000UL)
1050 #define RNG_BASE                (AHB3PERIPH_BASE + 0x00001000UL)
1051 #define HSEM_BASE               (AHB3PERIPH_BASE + 0x00001400UL)
1052 #define AES_BASE                (AHB3PERIPH_BASE + 0x00001800UL)
1053 #define PKA_BASE                (AHB3PERIPH_BASE + 0x00002000UL)
1054 #define FLASH_REG_BASE          (AHB3PERIPH_BASE + 0x00004000UL)
1055 #define GTZC_TZSC_BASE          (AHB3PERIPH_BASE + 0x00004400UL)
1056 #define GTZC_TZIC_BASE          (AHB3PERIPH_BASE + 0x00004800UL)
1057 
1058 /*!< APB3 peripherals */
1059 #define SUBGHZSPI_BASE          (APB3PERIPH_BASE + 0x00000000UL)
1060 
1061 #if defined(CORE_CM0PLUS)
1062 #else
1063 /*!< Peripherals available on CPU1 external PPB bus */
1064 #define DBGMCU_BASE             (0xE0042000UL)
1065 #endif
1066 
1067 /**
1068   * @}
1069   */
1070 
1071 /** @addtogroup Peripheral_declaration
1072   * @{
1073   */
1074 
1075 /* Peripherals available on APB1 bus */
1076 #define TIM2                    ((TIM_TypeDef *) TIM2_BASE)
1077 #define IWDG                    ((IWDG_TypeDef *) IWDG_BASE)
1078 #define WWDG                    ((WWDG_TypeDef *) WWDG_BASE)
1079 #define DAC                     ((DAC_TypeDef *) DAC_BASE)
1080 #define LPTIM1                  ((LPTIM_TypeDef *) LPTIM1_BASE)
1081 #define LPTIM2                  ((LPTIM_TypeDef *) LPTIM2_BASE)
1082 #define LPTIM3                  ((LPTIM_TypeDef *) LPTIM3_BASE)
1083 #define RTC                     ((RTC_TypeDef *) RTC_BASE)
1084 #define SPI2                    ((SPI_TypeDef *) SPI2_BASE)
1085 #define I2C1                    ((I2C_TypeDef *) I2C1_BASE)
1086 #define I2C2                    ((I2C_TypeDef *) I2C2_BASE)
1087 #define I2C3                    ((I2C_TypeDef *) I2C3_BASE)
1088 #define TAMP                    ((TAMP_TypeDef *) TAMP_BASE)
1089 #define USART2                  ((USART_TypeDef *) USART2_BASE)
1090 #define LPUART1                 ((USART_TypeDef *) LPUART1_BASE)
1091 
1092 /* Peripherals available on APB2 bus */
1093 #define SYSCFG                  ((SYSCFG_TypeDef *) SYSCFG_BASE)
1094 #define VREFBUF                 ((VREFBUF_TypeDef *) VREFBUF_BASE)
1095 #define COMP1                   ((COMP_TypeDef *) COMP1_BASE)
1096 #define COMP2                   ((COMP_TypeDef *) COMP2_BASE)
1097 #define COMP12_COMMON           ((COMP_Common_TypeDef *) COMP2_BASE)
1098 #define TIM1                    ((TIM_TypeDef *) TIM1_BASE)
1099 #define SPI1                    ((SPI_TypeDef *) SPI1_BASE)
1100 #define ADC                     ((ADC_TypeDef *) ADC_BASE)
1101 #define ADC_COMMON              ((ADC_Common_TypeDef *) ADC_COMMON_BASE)
1102 #define TIM16                   ((TIM_TypeDef *) TIM16_BASE)
1103 #define TIM17                   ((TIM_TypeDef *) TIM17_BASE)
1104 #define USART1                  ((USART_TypeDef *) USART1_BASE)
1105 
1106 /* Peripherals available on AHB1 bus */
1107 #define DMA1                    ((DMA_TypeDef *) DMA1_BASE)
1108 #define DMA1_Channel1           ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE)
1109 #define DMA1_Channel2           ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE)
1110 #define DMA1_Channel3           ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE)
1111 #define DMA1_Channel4           ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE)
1112 #define DMA1_Channel5           ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE)
1113 #define DMA1_Channel6           ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE)
1114 #define DMA1_Channel7           ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE)
1115 
1116 #define DMA2                    ((DMA_TypeDef *) DMA2_BASE)
1117 #define DMA2_Channel1           ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE)
1118 #define DMA2_Channel2           ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE)
1119 #define DMA2_Channel3           ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE)
1120 #define DMA2_Channel4           ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE)
1121 #define DMA2_Channel5           ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE)
1122 #define DMA2_Channel6           ((DMA_Channel_TypeDef *) DMA2_Channel6_BASE)
1123 #define DMA2_Channel7           ((DMA_Channel_TypeDef *) DMA2_Channel7_BASE)
1124 
1125 #define DMAMUX1                 ((DMAMUX_Channel_TypeDef *) DMAMUX1_BASE)
1126 #define DMAMUX1_Channel0        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel0_BASE)
1127 #define DMAMUX1_Channel1        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel1_BASE)
1128 #define DMAMUX1_Channel2        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel2_BASE)
1129 #define DMAMUX1_Channel3        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel3_BASE)
1130 #define DMAMUX1_Channel4        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel4_BASE)
1131 #define DMAMUX1_Channel5        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel5_BASE)
1132 #define DMAMUX1_Channel6        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel6_BASE)
1133 #define DMAMUX1_Channel7        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel7_BASE)
1134 #define DMAMUX1_Channel8        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel8_BASE)
1135 #define DMAMUX1_Channel9        ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel9_BASE)
1136 #define DMAMUX1_Channel10       ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel10_BASE)
1137 #define DMAMUX1_Channel11       ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel11_BASE)
1138 #define DMAMUX1_Channel12       ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel12_BASE)
1139 #define DMAMUX1_Channel13       ((DMAMUX_Channel_TypeDef *) DMAMUX1_Channel13_BASE)
1140 
1141 #define DMAMUX1_RequestGenerator0  ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator0_BASE)
1142 #define DMAMUX1_RequestGenerator1  ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator1_BASE)
1143 #define DMAMUX1_RequestGenerator2  ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator2_BASE)
1144 #define DMAMUX1_RequestGenerator3  ((DMAMUX_RequestGen_TypeDef *) DMAMUX1_RequestGenerator3_BASE)
1145 
1146 #define DMAMUX1_ChannelStatus      ((DMAMUX_ChannelStatus_TypeDef *) DMAMUX1_ChannelStatus_BASE)
1147 #define DMAMUX1_RequestGenStatus   ((DMAMUX_RequestGenStatus_TypeDef *) DMAMUX1_RequestGenStatus_BASE)
1148 
1149 #define CRC                     ((CRC_TypeDef *) CRC_BASE)
1150 
1151 /* Peripherals available on AHB2 bus */
1152 #define GPIOA                   ((GPIO_TypeDef *) GPIOA_BASE)
1153 #define GPIOB                   ((GPIO_TypeDef *) GPIOB_BASE)
1154 #define GPIOC                   ((GPIO_TypeDef *) GPIOC_BASE)
1155 #define GPIOH                   ((GPIO_TypeDef *) GPIOH_BASE)
1156 
1157 /* Peripherals available on AH3 bus */
1158 #define AES                     ((AES_TypeDef *) AES_BASE)
1159 
1160 #define EXTI                    ((EXTI_TypeDef *) EXTI_BASE)
1161 #define IPCC                    ((IPCC_TypeDef *) IPCC_BASE)
1162 #define IPCC_C1                 ((IPCC_CommonTypeDef *) IPCC_BASE)
1163 #define IPCC_C2                 ((IPCC_CommonTypeDef *) (IPCC_BASE + 0x10U))
1164 #define RCC                     ((RCC_TypeDef *) RCC_BASE)
1165 #define PWR                     ((PWR_TypeDef *) PWR_BASE)
1166 #define RNG                     ((RNG_TypeDef *) RNG_BASE)
1167 #define HSEM                    ((HSEM_TypeDef *) HSEM_BASE)
1168 #if defined(CORE_CM0PLUS)
1169 #define HSEM_COMMON             ((HSEM_Common_TypeDef *) (HSEM_BASE + 0x110U))
1170 #else
1171 #define HSEM_COMMON             ((HSEM_Common_TypeDef *) (HSEM_BASE + 0x100U))
1172 #endif
1173 #define PKA                     ((PKA_TypeDef *) PKA_BASE)
1174 #define FLASH                   ((FLASH_TypeDef *) FLASH_REG_BASE)
1175 #define GTZC_TZSC               ((GTZC_TZSC_TypeDef *) GTZC_TZSC_BASE)
1176 #define GTZC_TZIC               ((GTZC_TZIC_TypeDef *) GTZC_TZIC_BASE)
1177 
1178 /* Peripherals available on APB3 bus */
1179 #define SUBGHZSPI               ((SPI_TypeDef *) SUBGHZSPI_BASE)
1180 
1181 #if defined(CORE_CM0PLUS)
1182 #else
1183 /* Peripherals available on CPU1 external PPB bus */
1184 #define DBGMCU                  ((DBGMCU_TypeDef *) DBGMCU_BASE)
1185 #endif
1186 
1187 /**
1188   * @}
1189   */
1190 
1191 /** @addtogroup Exported_constants
1192   * @{
1193   */
1194 
1195 /** @addtogroup Hardware_Constant_Definition
1196   * @{
1197   */
1198 #define LSI_STARTUP_TIME 130U /*!< LSI Maximum startup time in us */
1199 
1200 /**
1201   * @}
1202   */
1203 
1204 /** @addtogroup Peripheral_Registers_Bits_Definition
1205   * @{
1206   */
1207 
1208 /******************************************************************************/
1209 /*                         Peripheral Registers Bits Definition               */
1210 /******************************************************************************/
1211 
1212 /******************************************************************************/
1213 /*                                                                            */
1214 /*                      Analog to Digital Converter (ADC)                     */
1215 /*                                                                            */
1216 /******************************************************************************/
1217 /********************  Bit definition for ADC_ISR register  *******************/
1218 #define ADC_ISR_ADRDY_Pos              (0U)
1219 #define ADC_ISR_ADRDY_Msk              (0x1UL << ADC_ISR_ADRDY_Pos)            /*!< 0x00000001 */
1220 #define ADC_ISR_ADRDY                  ADC_ISR_ADRDY_Msk                       /*!< ADC ready flag */
1221 #define ADC_ISR_EOSMP_Pos              (1U)
1222 #define ADC_ISR_EOSMP_Msk              (0x1UL << ADC_ISR_EOSMP_Pos)            /*!< 0x00000002 */
1223 #define ADC_ISR_EOSMP                  ADC_ISR_EOSMP_Msk                       /*!< ADC group regular end of sampling flag */
1224 #define ADC_ISR_EOC_Pos                (2U)
1225 #define ADC_ISR_EOC_Msk                (0x1UL << ADC_ISR_EOC_Pos)              /*!< 0x00000004 */
1226 #define ADC_ISR_EOC                    ADC_ISR_EOC_Msk                         /*!< ADC group regular end of unitary conversion flag */
1227 #define ADC_ISR_EOS_Pos                (3U)
1228 #define ADC_ISR_EOS_Msk                (0x1UL << ADC_ISR_EOS_Pos)              /*!< 0x00000008 */
1229 #define ADC_ISR_EOS                    ADC_ISR_EOS_Msk                         /*!< ADC group regular end of sequence conversions flag */
1230 #define ADC_ISR_OVR_Pos                (4U)
1231 #define ADC_ISR_OVR_Msk                (0x1UL << ADC_ISR_OVR_Pos)              /*!< 0x00000010 */
1232 #define ADC_ISR_OVR                    ADC_ISR_OVR_Msk                         /*!< ADC group regular overrun flag */
1233 #define ADC_ISR_AWD1_Pos               (7U)
1234 #define ADC_ISR_AWD1_Msk               (0x1UL << ADC_ISR_AWD1_Pos)             /*!< 0x00000080 */
1235 #define ADC_ISR_AWD1                   ADC_ISR_AWD1_Msk                        /*!< ADC analog watchdog 1 flag */
1236 #define ADC_ISR_AWD2_Pos               (8U)
1237 #define ADC_ISR_AWD2_Msk               (0x1UL << ADC_ISR_AWD2_Pos)             /*!< 0x00000100 */
1238 #define ADC_ISR_AWD2                   ADC_ISR_AWD2_Msk                        /*!< ADC analog watchdog 2 flag */
1239 #define ADC_ISR_AWD3_Pos               (9U)
1240 #define ADC_ISR_AWD3_Msk               (0x1UL << ADC_ISR_AWD3_Pos)             /*!< 0x00000200 */
1241 #define ADC_ISR_AWD3                   ADC_ISR_AWD3_Msk                        /*!< ADC analog watchdog 3 flag */
1242 #define ADC_ISR_EOCAL_Pos              (11U)
1243 #define ADC_ISR_EOCAL_Msk              (0x1UL << ADC_ISR_EOCAL_Pos)            /*!< 0x00000800 */
1244 #define ADC_ISR_EOCAL                  ADC_ISR_EOCAL_Msk                       /*!< ADC end of calibration flag */
1245 #define ADC_ISR_CCRDY_Pos              (13U)
1246 #define ADC_ISR_CCRDY_Msk              (0x1UL << ADC_ISR_CCRDY_Pos)            /*!< 0x00002000 */
1247 #define ADC_ISR_CCRDY                  ADC_ISR_CCRDY_Msk                       /*!< ADC channel configuration ready flag */
1248 
1249 /********************  Bit definition for ADC_IER register  *******************/
1250 #define ADC_IER_ADRDYIE_Pos            (0U)
1251 #define ADC_IER_ADRDYIE_Msk            (0x1UL << ADC_IER_ADRDYIE_Pos)          /*!< 0x00000001 */
1252 #define ADC_IER_ADRDYIE                ADC_IER_ADRDYIE_Msk                     /*!< ADC ready interrupt */
1253 #define ADC_IER_EOSMPIE_Pos            (1U)
1254 #define ADC_IER_EOSMPIE_Msk            (0x1UL << ADC_IER_EOSMPIE_Pos)          /*!< 0x00000002 */
1255 #define ADC_IER_EOSMPIE                ADC_IER_EOSMPIE_Msk                     /*!< ADC group regular end of sampling interrupt */
1256 #define ADC_IER_EOCIE_Pos              (2U)
1257 #define ADC_IER_EOCIE_Msk              (0x1UL << ADC_IER_EOCIE_Pos)            /*!< 0x00000004 */
1258 #define ADC_IER_EOCIE                  ADC_IER_EOCIE_Msk                       /*!< ADC group regular end of unitary conversion interrupt */
1259 #define ADC_IER_EOSIE_Pos              (3U)
1260 #define ADC_IER_EOSIE_Msk              (0x1UL << ADC_IER_EOSIE_Pos)            /*!< 0x00000008 */
1261 #define ADC_IER_EOSIE                  ADC_IER_EOSIE_Msk                       /*!< ADC group regular end of sequence conversions interrupt */
1262 #define ADC_IER_OVRIE_Pos              (4U)
1263 #define ADC_IER_OVRIE_Msk              (0x1UL << ADC_IER_OVRIE_Pos)            /*!< 0x00000010 */
1264 #define ADC_IER_OVRIE                  ADC_IER_OVRIE_Msk                       /*!< ADC group regular overrun interrupt */
1265 #define ADC_IER_AWD1IE_Pos             (7U)
1266 #define ADC_IER_AWD1IE_Msk             (0x1UL << ADC_IER_AWD1IE_Pos)           /*!< 0x00000080 */
1267 #define ADC_IER_AWD1IE                 ADC_IER_AWD1IE_Msk                      /*!< ADC analog watchdog 1 interrupt */
1268 #define ADC_IER_AWD2IE_Pos             (8U)
1269 #define ADC_IER_AWD2IE_Msk             (0x1UL << ADC_IER_AWD2IE_Pos)           /*!< 0x00000100 */
1270 #define ADC_IER_AWD2IE                 ADC_IER_AWD2IE_Msk                      /*!< ADC analog watchdog 2 interrupt */
1271 #define ADC_IER_AWD3IE_Pos             (9U)
1272 #define ADC_IER_AWD3IE_Msk             (0x1UL << ADC_IER_AWD3IE_Pos)           /*!< 0x00000200 */
1273 #define ADC_IER_AWD3IE                 ADC_IER_AWD3IE_Msk                      /*!< ADC analog watchdog 3 interrupt */
1274 #define ADC_IER_EOCALIE_Pos            (11U)
1275 #define ADC_IER_EOCALIE_Msk            (0x1UL << ADC_IER_EOCALIE_Pos)          /*!< 0x00000800 */
1276 #define ADC_IER_EOCALIE                ADC_IER_EOCALIE_Msk                     /*!< ADC end of calibration interrupt */
1277 #define ADC_IER_CCRDYIE_Pos            (13U)
1278 #define ADC_IER_CCRDYIE_Msk            (0x1UL << ADC_IER_CCRDYIE_Pos)          /*!< 0x00002000 */
1279 #define ADC_IER_CCRDYIE                ADC_IER_CCRDYIE_Msk                     /*!< ADC channel configuration ready interrupt */
1280 
1281 /********************  Bit definition for ADC_CR register  ********************/
1282 #define ADC_CR_ADEN_Pos                (0U)
1283 #define ADC_CR_ADEN_Msk                (0x1UL << ADC_CR_ADEN_Pos)              /*!< 0x00000001 */
1284 #define ADC_CR_ADEN                    ADC_CR_ADEN_Msk                         /*!< ADC enable */
1285 #define ADC_CR_ADDIS_Pos               (1U)
1286 #define ADC_CR_ADDIS_Msk               (0x1UL << ADC_CR_ADDIS_Pos)             /*!< 0x00000002 */
1287 #define ADC_CR_ADDIS                   ADC_CR_ADDIS_Msk                        /*!< ADC disable */
1288 #define ADC_CR_ADSTART_Pos             (2U)
1289 #define ADC_CR_ADSTART_Msk             (0x1UL << ADC_CR_ADSTART_Pos)           /*!< 0x00000004 */
1290 #define ADC_CR_ADSTART                 ADC_CR_ADSTART_Msk                      /*!< ADC group regular conversion start */
1291 #define ADC_CR_ADSTP_Pos               (4U)
1292 #define ADC_CR_ADSTP_Msk               (0x1UL << ADC_CR_ADSTP_Pos)             /*!< 0x00000010 */
1293 #define ADC_CR_ADSTP                   ADC_CR_ADSTP_Msk                        /*!< ADC group regular conversion stop */
1294 #define ADC_CR_ADVREGEN_Pos            (28U)
1295 #define ADC_CR_ADVREGEN_Msk            (0x1UL << ADC_CR_ADVREGEN_Pos)          /*!< 0x10000000 */
1296 #define ADC_CR_ADVREGEN                ADC_CR_ADVREGEN_Msk                     /*!< ADC voltage regulator enable */
1297 #define ADC_CR_ADCAL_Pos               (31U)
1298 #define ADC_CR_ADCAL_Msk               (0x1UL << ADC_CR_ADCAL_Pos)             /*!< 0x80000000 */
1299 #define ADC_CR_ADCAL                   ADC_CR_ADCAL_Msk                        /*!< ADC calibration */
1300 
1301 /********************  Bit definition for ADC_CFGR1 register  *****************/
1302 #define ADC_CFGR1_DMAEN_Pos            (0U)
1303 #define ADC_CFGR1_DMAEN_Msk            (0x1UL << ADC_CFGR1_DMAEN_Pos)          /*!< 0x00000001 */
1304 #define ADC_CFGR1_DMAEN                ADC_CFGR1_DMAEN_Msk                     /*!< ADC DMA transfer enable */
1305 #define ADC_CFGR1_DMACFG_Pos           (1U)
1306 #define ADC_CFGR1_DMACFG_Msk           (0x1UL << ADC_CFGR1_DMACFG_Pos)         /*!< 0x00000002 */
1307 #define ADC_CFGR1_DMACFG               ADC_CFGR1_DMACFG_Msk                    /*!< ADC DMA transfer configuration */
1308 
1309 #define ADC_CFGR1_SCANDIR_Pos          (2U)
1310 #define ADC_CFGR1_SCANDIR_Msk          (0x1UL << ADC_CFGR1_SCANDIR_Pos)        /*!< 0x00000004 */
1311 #define ADC_CFGR1_SCANDIR              ADC_CFGR1_SCANDIR_Msk                   /*!< ADC group regular sequencer scan direction */
1312 
1313 #define ADC_CFGR1_RES_Pos              (3U)
1314 #define ADC_CFGR1_RES_Msk              (0x3UL << ADC_CFGR1_RES_Pos)            /*!< 0x00000018 */
1315 #define ADC_CFGR1_RES                  ADC_CFGR1_RES_Msk                       /*!< ADC data resolution */
1316 #define ADC_CFGR1_RES_0                (0x1UL << ADC_CFGR1_RES_Pos)            /*!< 0x00000008 */
1317 #define ADC_CFGR1_RES_1                (0x2UL << ADC_CFGR1_RES_Pos)            /*!< 0x00000010 */
1318 
1319 #define ADC_CFGR1_ALIGN_Pos            (5U)
1320 #define ADC_CFGR1_ALIGN_Msk            (0x1UL << ADC_CFGR1_ALIGN_Pos)          /*!< 0x00000020 */
1321 #define ADC_CFGR1_ALIGN                ADC_CFGR1_ALIGN_Msk                     /*!< ADC data alignment */
1322 
1323 #define ADC_CFGR1_EXTSEL_Pos           (6U)
1324 #define ADC_CFGR1_EXTSEL_Msk           (0x7UL << ADC_CFGR1_EXTSEL_Pos)         /*!< 0x000001C0 */
1325 #define ADC_CFGR1_EXTSEL               ADC_CFGR1_EXTSEL_Msk                    /*!< ADC group regular external trigger source */
1326 #define ADC_CFGR1_EXTSEL_0             (0x1UL << ADC_CFGR1_EXTSEL_Pos)         /*!< 0x00000040 */
1327 #define ADC_CFGR1_EXTSEL_1             (0x2UL << ADC_CFGR1_EXTSEL_Pos)         /*!< 0x00000080 */
1328 #define ADC_CFGR1_EXTSEL_2             (0x4UL << ADC_CFGR1_EXTSEL_Pos)         /*!< 0x00000100 */
1329 
1330 #define ADC_CFGR1_EXTEN_Pos            (10U)
1331 #define ADC_CFGR1_EXTEN_Msk            (0x3UL << ADC_CFGR1_EXTEN_Pos)          /*!< 0x00000C00 */
1332 #define ADC_CFGR1_EXTEN                ADC_CFGR1_EXTEN_Msk                     /*!< ADC group regular external trigger polarity */
1333 #define ADC_CFGR1_EXTEN_0              (0x1UL << ADC_CFGR1_EXTEN_Pos)          /*!< 0x00000400 */
1334 #define ADC_CFGR1_EXTEN_1              (0x2UL << ADC_CFGR1_EXTEN_Pos)          /*!< 0x00000800 */
1335 
1336 #define ADC_CFGR1_OVRMOD_Pos           (12U)
1337 #define ADC_CFGR1_OVRMOD_Msk           (0x1UL << ADC_CFGR1_OVRMOD_Pos)         /*!< 0x00001000 */
1338 #define ADC_CFGR1_OVRMOD               ADC_CFGR1_OVRMOD_Msk                    /*!< ADC group regular overrun configuration */
1339 #define ADC_CFGR1_CONT_Pos             (13U)
1340 #define ADC_CFGR1_CONT_Msk             (0x1UL << ADC_CFGR1_CONT_Pos)           /*!< 0x00002000 */
1341 #define ADC_CFGR1_CONT                 ADC_CFGR1_CONT_Msk                      /*!< ADC group regular continuous conversion mode */
1342 #define ADC_CFGR1_WAIT_Pos             (14U)
1343 #define ADC_CFGR1_WAIT_Msk             (0x1UL << ADC_CFGR1_WAIT_Pos)           /*!< 0x00004000 */
1344 #define ADC_CFGR1_WAIT                 ADC_CFGR1_WAIT_Msk                      /*!< ADC low power auto wait */
1345 #define ADC_CFGR1_AUTOFF_Pos           (15U)
1346 #define ADC_CFGR1_AUTOFF_Msk           (0x1UL << ADC_CFGR1_AUTOFF_Pos)         /*!< 0x00008000 */
1347 #define ADC_CFGR1_AUTOFF               ADC_CFGR1_AUTOFF_Msk                    /*!< ADC low power auto power off */
1348 #define ADC_CFGR1_DISCEN_Pos           (16U)
1349 #define ADC_CFGR1_DISCEN_Msk           (0x1UL << ADC_CFGR1_DISCEN_Pos)         /*!< 0x00010000 */
1350 #define ADC_CFGR1_DISCEN               ADC_CFGR1_DISCEN_Msk                    /*!< ADC group regular sequencer discontinuous mode */
1351 #define ADC_CFGR1_CHSELRMOD_Pos        (21U)
1352 #define ADC_CFGR1_CHSELRMOD_Msk        (0x1UL << ADC_CFGR1_CHSELRMOD_Pos)      /*!< 0x00200000 */
1353 #define ADC_CFGR1_CHSELRMOD            ADC_CFGR1_CHSELRMOD_Msk                 /*!< ADC group regular sequencer mode */
1354 
1355 #define ADC_CFGR1_AWD1SGL_Pos          (22U)
1356 #define ADC_CFGR1_AWD1SGL_Msk          (0x1UL << ADC_CFGR1_AWD1SGL_Pos)        /*!< 0x00400000 */
1357 #define ADC_CFGR1_AWD1SGL              ADC_CFGR1_AWD1SGL_Msk                   /*!< ADC analog watchdog 1 monitoring a single channel or all channels */
1358 #define ADC_CFGR1_AWD1EN_Pos           (23U)
1359 #define ADC_CFGR1_AWD1EN_Msk           (0x1UL << ADC_CFGR1_AWD1EN_Pos)         /*!< 0x00800000 */
1360 #define ADC_CFGR1_AWD1EN               ADC_CFGR1_AWD1EN_Msk                    /*!< ADC analog watchdog 1 enable on scope ADC group regular */
1361 
1362 #define ADC_CFGR1_AWD1CH_Pos           (26U)
1363 #define ADC_CFGR1_AWD1CH_Msk           (0x1FUL << ADC_CFGR1_AWD1CH_Pos)        /*!< 0x7C000000 */
1364 #define ADC_CFGR1_AWD1CH               ADC_CFGR1_AWD1CH_Msk                    /*!< ADC analog watchdog 1 monitored channel selection */
1365 #define ADC_CFGR1_AWD1CH_0             (0x01UL << ADC_CFGR1_AWD1CH_Pos)        /*!< 0x04000000 */
1366 #define ADC_CFGR1_AWD1CH_1             (0x02UL << ADC_CFGR1_AWD1CH_Pos)        /*!< 0x08000000 */
1367 #define ADC_CFGR1_AWD1CH_2             (0x04UL << ADC_CFGR1_AWD1CH_Pos)        /*!< 0x10000000 */
1368 #define ADC_CFGR1_AWD1CH_3             (0x08UL << ADC_CFGR1_AWD1CH_Pos)        /*!< 0x20000000 */
1369 #define ADC_CFGR1_AWD1CH_4             (0x10UL << ADC_CFGR1_AWD1CH_Pos)        /*!< 0x40000000 */
1370 
1371 /********************  Bit definition for ADC_CFGR2 register  *****************/
1372 #define ADC_CFGR2_OVSE_Pos             (0U)
1373 #define ADC_CFGR2_OVSE_Msk             (0x1UL << ADC_CFGR2_OVSE_Pos)           /*!< 0x00000001 */
1374 #define ADC_CFGR2_OVSE                 ADC_CFGR2_OVSE_Msk                      /*!< ADC oversampler enable on scope ADC group regular */
1375 
1376 #define ADC_CFGR2_OVSR_Pos             (2U)
1377 #define ADC_CFGR2_OVSR_Msk             (0x7UL << ADC_CFGR2_OVSR_Pos)           /*!< 0x0000001C */
1378 #define ADC_CFGR2_OVSR                 ADC_CFGR2_OVSR_Msk                      /*!< ADC oversampling ratio */
1379 #define ADC_CFGR2_OVSR_0               (0x1UL << ADC_CFGR2_OVSR_Pos)           /*!< 0x00000004 */
1380 #define ADC_CFGR2_OVSR_1               (0x2UL << ADC_CFGR2_OVSR_Pos)           /*!< 0x00000008 */
1381 #define ADC_CFGR2_OVSR_2               (0x4UL << ADC_CFGR2_OVSR_Pos)           /*!< 0x00000010 */
1382 
1383 #define ADC_CFGR2_OVSS_Pos             (5U)
1384 #define ADC_CFGR2_OVSS_Msk             (0xFUL << ADC_CFGR2_OVSS_Pos)           /*!< 0x000001E0 */
1385 #define ADC_CFGR2_OVSS                 ADC_CFGR2_OVSS_Msk                      /*!< ADC oversampling shift */
1386 #define ADC_CFGR2_OVSS_0               (0x1UL << ADC_CFGR2_OVSS_Pos)           /*!< 0x00000020 */
1387 #define ADC_CFGR2_OVSS_1               (0x2UL << ADC_CFGR2_OVSS_Pos)           /*!< 0x00000040 */
1388 #define ADC_CFGR2_OVSS_2               (0x4UL << ADC_CFGR2_OVSS_Pos)           /*!< 0x00000080 */
1389 #define ADC_CFGR2_OVSS_3               (0x8UL << ADC_CFGR2_OVSS_Pos)           /*!< 0x00000100 */
1390 
1391 #define ADC_CFGR2_TOVS_Pos             (9U)
1392 #define ADC_CFGR2_TOVS_Msk             (0x1UL << ADC_CFGR2_TOVS_Pos)           /*!< 0x00000200 */
1393 #define ADC_CFGR2_TOVS                 ADC_CFGR2_TOVS_Msk                      /*!< ADC oversampling discontinuous mode (triggered mode) for ADC group regular */
1394 
1395 #define ADC_CFGR2_LFTRIG_Pos           (29U)
1396 #define ADC_CFGR2_LFTRIG_Msk           (0x1UL << ADC_CFGR2_LFTRIG_Pos)         /*!< 0x20000000 */
1397 #define ADC_CFGR2_LFTRIG               ADC_CFGR2_LFTRIG_Msk                    /*!< ADC low frequency trigger mode */
1398 
1399 #define ADC_CFGR2_CKMODE_Pos           (30U)
1400 #define ADC_CFGR2_CKMODE_Msk           (0x3UL << ADC_CFGR2_CKMODE_Pos)         /*!< 0xC0000000 */
1401 #define ADC_CFGR2_CKMODE               ADC_CFGR2_CKMODE_Msk                    /*!< ADC clock source and prescaler (prescaler only for clock source synchronous) */
1402 #define ADC_CFGR2_CKMODE_1             (0x2UL << ADC_CFGR2_CKMODE_Pos)         /*!< 0x80000000 */
1403 #define ADC_CFGR2_CKMODE_0             (0x1UL << ADC_CFGR2_CKMODE_Pos)         /*!< 0x40000000 */
1404 
1405 /********************  Bit definition for ADC_SMPR register  ******************/
1406 #define ADC_SMPR_SMP1_Pos              (0U)
1407 #define ADC_SMPR_SMP1_Msk              (0x7UL << ADC_SMPR_SMP1_Pos)            /*!< 0x00000007 */
1408 #define ADC_SMPR_SMP1                  ADC_SMPR_SMP1_Msk                       /*!< ADC group of channels sampling time 1 */
1409 #define ADC_SMPR_SMP1_0                (0x1UL << ADC_SMPR_SMP1_Pos)            /*!< 0x00000001 */
1410 #define ADC_SMPR_SMP1_1                (0x2UL << ADC_SMPR_SMP1_Pos)            /*!< 0x00000002 */
1411 #define ADC_SMPR_SMP1_2                (0x4UL << ADC_SMPR_SMP1_Pos)            /*!< 0x00000004 */
1412 
1413 #define ADC_SMPR_SMP2_Pos              (4U)
1414 #define ADC_SMPR_SMP2_Msk              (0x7UL << ADC_SMPR_SMP2_Pos)            /*!< 0x00000070 */
1415 #define ADC_SMPR_SMP2                  ADC_SMPR_SMP2_Msk                       /*!< ADC group of channels sampling time 2 */
1416 #define ADC_SMPR_SMP2_0                (0x1UL << ADC_SMPR_SMP2_Pos)            /*!< 0x00000010 */
1417 #define ADC_SMPR_SMP2_1                (0x2UL << ADC_SMPR_SMP2_Pos)            /*!< 0x00000020 */
1418 #define ADC_SMPR_SMP2_2                (0x4UL << ADC_SMPR_SMP2_Pos)            /*!< 0x00000040 */
1419 
1420 #define ADC_SMPR_SMPSEL_Pos            (8U)
1421 #define ADC_SMPR_SMPSEL_Msk            (0x3FFFFUL << ADC_SMPR_SMPSEL_Pos)      /*!< 0x03FFFF00 */
1422 #define ADC_SMPR_SMPSEL                ADC_SMPR_SMPSEL_Msk                     /*!< ADC all channels sampling time selection */
1423 #define ADC_SMPR_SMPSEL0_Pos           (8U)
1424 #define ADC_SMPR_SMPSEL0_Msk           (0x1UL << ADC_SMPR_SMPSEL0_Pos)         /*!< 0x00000100 */
1425 #define ADC_SMPR_SMPSEL0               ADC_SMPR_SMPSEL0_Msk                    /*!< ADC channel 0 sampling time selection */
1426 #define ADC_SMPR_SMPSEL1_Pos           (9U)
1427 #define ADC_SMPR_SMPSEL1_Msk           (0x1UL << ADC_SMPR_SMPSEL1_Pos)         /*!< 0x00000200 */
1428 #define ADC_SMPR_SMPSEL1               ADC_SMPR_SMPSEL1_Msk                    /*!< ADC channel 1 sampling time selection */
1429 #define ADC_SMPR_SMPSEL2_Pos           (10U)
1430 #define ADC_SMPR_SMPSEL2_Msk           (0x1UL << ADC_SMPR_SMPSEL2_Pos)         /*!< 0x00000400 */
1431 #define ADC_SMPR_SMPSEL2               ADC_SMPR_SMPSEL2_Msk                    /*!< ADC channel 2 sampling time selection */
1432 #define ADC_SMPR_SMPSEL3_Pos           (11U)
1433 #define ADC_SMPR_SMPSEL3_Msk           (0x1UL << ADC_SMPR_SMPSEL3_Pos)         /*!< 0x00000800 */
1434 #define ADC_SMPR_SMPSEL3               ADC_SMPR_SMPSEL3_Msk                    /*!< ADC channel 3 sampling time selection */
1435 #define ADC_SMPR_SMPSEL4_Pos           (12U)
1436 #define ADC_SMPR_SMPSEL4_Msk           (0x1UL << ADC_SMPR_SMPSEL4_Pos)         /*!< 0x00001000 */
1437 #define ADC_SMPR_SMPSEL4               ADC_SMPR_SMPSEL4_Msk                    /*!< ADC channel 4 sampling time selection */
1438 #define ADC_SMPR_SMPSEL5_Pos           (13U)
1439 #define ADC_SMPR_SMPSEL5_Msk           (0x1UL << ADC_SMPR_SMPSEL5_Pos)         /*!< 0x00002000 */
1440 #define ADC_SMPR_SMPSEL5               ADC_SMPR_SMPSEL5_Msk                    /*!< ADC channel 5 sampling time selection */
1441 #define ADC_SMPR_SMPSEL6_Pos           (14U)
1442 #define ADC_SMPR_SMPSEL6_Msk           (0x1UL << ADC_SMPR_SMPSEL6_Pos)         /*!< 0x00004000 */
1443 #define ADC_SMPR_SMPSEL6               ADC_SMPR_SMPSEL6_Msk                    /*!< ADC channel 6 sampling time selection */
1444 #define ADC_SMPR_SMPSEL7_Pos           (15U)
1445 #define ADC_SMPR_SMPSEL7_Msk           (0x1UL << ADC_SMPR_SMPSEL7_Pos)         /*!< 0x00008000 */
1446 #define ADC_SMPR_SMPSEL7               ADC_SMPR_SMPSEL7_Msk                    /*!< ADC channel 7 sampling time selection */
1447 #define ADC_SMPR_SMPSEL8_Pos           (16U)
1448 #define ADC_SMPR_SMPSEL8_Msk           (0x1UL << ADC_SMPR_SMPSEL8_Pos)         /*!< 0x00010000 */
1449 #define ADC_SMPR_SMPSEL8               ADC_SMPR_SMPSEL8_Msk                    /*!< ADC channel 8 sampling time selection */
1450 #define ADC_SMPR_SMPSEL9_Pos           (17U)
1451 #define ADC_SMPR_SMPSEL9_Msk           (0x1UL << ADC_SMPR_SMPSEL9_Pos)         /*!< 0x00020000 */
1452 #define ADC_SMPR_SMPSEL9               ADC_SMPR_SMPSEL9_Msk                    /*!< ADC channel 9 sampling time selection */
1453 #define ADC_SMPR_SMPSEL10_Pos          (18U)
1454 #define ADC_SMPR_SMPSEL10_Msk          (0x1UL << ADC_SMPR_SMPSEL10_Pos)        /*!< 0x00040000 */
1455 #define ADC_SMPR_SMPSEL10              ADC_SMPR_SMPSEL10_Msk                   /*!< ADC channel 10 sampling time selection */
1456 #define ADC_SMPR_SMPSEL11_Pos          (19U)
1457 #define ADC_SMPR_SMPSEL11_Msk          (0x1UL << ADC_SMPR_SMPSEL11_Pos)        /*!< 0x00080000 */
1458 #define ADC_SMPR_SMPSEL11              ADC_SMPR_SMPSEL11_Msk                   /*!< ADC channel 11 sampling time selection */
1459 #define ADC_SMPR_SMPSEL12_Pos          (20U)
1460 #define ADC_SMPR_SMPSEL12_Msk          (0x1UL << ADC_SMPR_SMPSEL12_Pos)        /*!< 0x00100000 */
1461 #define ADC_SMPR_SMPSEL12              ADC_SMPR_SMPSEL12_Msk                   /*!< ADC channel 12 sampling time selection */
1462 #define ADC_SMPR_SMPSEL13_Pos          (21U)
1463 #define ADC_SMPR_SMPSEL13_Msk          (0x1UL << ADC_SMPR_SMPSEL13_Pos)        /*!< 0x00200000 */
1464 #define ADC_SMPR_SMPSEL13              ADC_SMPR_SMPSEL13_Msk                   /*!< ADC channel 13 sampling time selection */
1465 #define ADC_SMPR_SMPSEL14_Pos          (22U)
1466 #define ADC_SMPR_SMPSEL14_Msk          (0x1UL << ADC_SMPR_SMPSEL14_Pos)        /*!< 0x00400000 */
1467 #define ADC_SMPR_SMPSEL14              ADC_SMPR_SMPSEL14_Msk                   /*!< ADC channel 14 sampling time selection */
1468 #define ADC_SMPR_SMPSEL15_Pos          (23U)
1469 #define ADC_SMPR_SMPSEL15_Msk          (0x1UL << ADC_SMPR_SMPSEL15_Pos)        /*!< 0x00800000 */
1470 #define ADC_SMPR_SMPSEL15              ADC_SMPR_SMPSEL15_Msk                   /*!< ADC channel 15 sampling time selection */
1471 #define ADC_SMPR_SMPSEL16_Pos          (24U)
1472 #define ADC_SMPR_SMPSEL16_Msk          (0x1UL << ADC_SMPR_SMPSEL16_Pos)        /*!< 0x01000000 */
1473 #define ADC_SMPR_SMPSEL16              ADC_SMPR_SMPSEL16_Msk                   /*!< ADC channel 16 sampling time selection */
1474 #define ADC_SMPR_SMPSEL17_Pos          (25U)
1475 #define ADC_SMPR_SMPSEL17_Msk          (0x1UL << ADC_SMPR_SMPSEL17_Pos)        /*!< 0x02000000 */
1476 #define ADC_SMPR_SMPSEL17              ADC_SMPR_SMPSEL17_Msk                   /*!< ADC channel 17 sampling time selection */
1477 
1478 /********************  Bit definition for ADC_AWD1TR register  ****************/
1479 #define ADC_AWD1TR_LT1_Pos             (0U)
1480 #define ADC_AWD1TR_LT1_Msk             (0xFFFUL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000FFF */
1481 #define ADC_AWD1TR_LT1                 ADC_AWD1TR_LT1_Msk                      /*!< ADC analog watchdog 1 threshold low */
1482 #define ADC_AWD1TR_LT1_0               (0x001UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000001 */
1483 #define ADC_AWD1TR_LT1_1               (0x002UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000002 */
1484 #define ADC_AWD1TR_LT1_2               (0x004UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000004 */
1485 #define ADC_AWD1TR_LT1_3               (0x008UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000008 */
1486 #define ADC_AWD1TR_LT1_4               (0x010UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000010 */
1487 #define ADC_AWD1TR_LT1_5               (0x020UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000020 */
1488 #define ADC_AWD1TR_LT1_6               (0x040UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000040 */
1489 #define ADC_AWD1TR_LT1_7               (0x080UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000080 */
1490 #define ADC_AWD1TR_LT1_8               (0x100UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000100 */
1491 #define ADC_AWD1TR_LT1_9               (0x200UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000200 */
1492 #define ADC_AWD1TR_LT1_10              (0x400UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000400 */
1493 #define ADC_AWD1TR_LT1_11              (0x800UL << ADC_AWD1TR_LT1_Pos)         /*!< 0x00000800 */
1494 
1495 #define ADC_AWD1TR_HT1_Pos             (16U)
1496 #define ADC_AWD1TR_HT1_Msk             (0xFFFUL << ADC_AWD1TR_HT1_Pos)         /*!< 0x0FFF0000 */
1497 #define ADC_AWD1TR_HT1                 ADC_AWD1TR_HT1_Msk                      /*!< ADC Analog watchdog 1 threshold high */
1498 #define ADC_AWD1TR_HT1_0               (0x001UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x00010000 */
1499 #define ADC_AWD1TR_HT1_1               (0x002UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x00020000 */
1500 #define ADC_AWD1TR_HT1_2               (0x004UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x00040000 */
1501 #define ADC_AWD1TR_HT1_3               (0x008UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x00080000 */
1502 #define ADC_AWD1TR_HT1_4               (0x010UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x00100000 */
1503 #define ADC_AWD1TR_HT1_5               (0x020UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x00200000 */
1504 #define ADC_AWD1TR_HT1_6               (0x040UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x00400000 */
1505 #define ADC_AWD1TR_HT1_7               (0x080UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x00800000 */
1506 #define ADC_AWD1TR_HT1_8               (0x100UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x01000000 */
1507 #define ADC_AWD1TR_HT1_9               (0x200UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x02000000 */
1508 #define ADC_AWD1TR_HT1_10              (0x400UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x04000000 */
1509 #define ADC_AWD1TR_HT1_11              (0x800UL << ADC_AWD1TR_HT1_Pos)         /*!< 0x08000000 */
1510 
1511 /* Legacy definitions */
1512 #define ADC_TR1_LT1             ADC_AWD1TR_LT1
1513 #define ADC_TR1_LT1_0           ADC_AWD1TR_LT1_0
1514 #define ADC_TR1_LT1_1           ADC_AWD1TR_LT1_1
1515 #define ADC_TR1_LT1_2           ADC_AWD1TR_LT1_2
1516 #define ADC_TR1_LT1_3           ADC_AWD1TR_LT1_3
1517 #define ADC_TR1_LT1_4           ADC_AWD1TR_LT1_4
1518 #define ADC_TR1_LT1_5           ADC_AWD1TR_LT1_5
1519 #define ADC_TR1_LT1_6           ADC_AWD1TR_LT1_6
1520 #define ADC_TR1_LT1_7           ADC_AWD1TR_LT1_7
1521 #define ADC_TR1_LT1_8           ADC_AWD1TR_LT1_8
1522 #define ADC_TR1_LT1_9           ADC_AWD1TR_LT1_9
1523 #define ADC_TR1_LT1_10          ADC_AWD1TR_LT1_10
1524 #define ADC_TR1_LT1_11          ADC_AWD1TR_LT1_11
1525 
1526 #define ADC_TR1_HT1             ADC_AWD1TR_HT1
1527 #define ADC_TR1_HT1_0           ADC_AWD1TR_HT1_0
1528 #define ADC_TR1_HT1_1           ADC_AWD1TR_HT1_1
1529 #define ADC_TR1_HT1_2           ADC_AWD1TR_HT1_2
1530 #define ADC_TR1_HT1_3           ADC_AWD1TR_HT1_3
1531 #define ADC_TR1_HT1_4           ADC_AWD1TR_HT1_4
1532 #define ADC_TR1_HT1_5           ADC_AWD1TR_HT1_5
1533 #define ADC_TR1_HT1_6           ADC_AWD1TR_HT1_6
1534 #define ADC_TR1_HT1_7           ADC_AWD1TR_HT1_7
1535 #define ADC_TR1_HT1_8           ADC_AWD1TR_HT1_8
1536 #define ADC_TR1_HT1_9           ADC_AWD1TR_HT1_9
1537 #define ADC_TR1_HT1_10          ADC_AWD1TR_HT1_10
1538 #define ADC_TR1_HT1_11          ADC_AWD1TR_HT1_11
1539 
1540 /********************  Bit definition for ADC_AWD2TR register  *******************/
1541 #define ADC_AWD2TR_LT2_Pos             (0U)
1542 #define ADC_AWD2TR_LT2_Msk             (0xFFFUL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000FFF */
1543 #define ADC_AWD2TR_LT2                 ADC_AWD2TR_LT2_Msk                      /*!< ADC analog watchdog 2 threshold low */
1544 #define ADC_AWD2TR_LT2_0               (0x001UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000001 */
1545 #define ADC_AWD2TR_LT2_1               (0x002UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000002 */
1546 #define ADC_AWD2TR_LT2_2               (0x004UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000004 */
1547 #define ADC_AWD2TR_LT2_3               (0x008UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000008 */
1548 #define ADC_AWD2TR_LT2_4               (0x010UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000010 */
1549 #define ADC_AWD2TR_LT2_5               (0x020UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000020 */
1550 #define ADC_AWD2TR_LT2_6               (0x040UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000040 */
1551 #define ADC_AWD2TR_LT2_7               (0x080UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000080 */
1552 #define ADC_AWD2TR_LT2_8               (0x100UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000100 */
1553 #define ADC_AWD2TR_LT2_9               (0x200UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000200 */
1554 #define ADC_AWD2TR_LT2_10              (0x400UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000400 */
1555 #define ADC_AWD2TR_LT2_11              (0x800UL << ADC_AWD2TR_LT2_Pos)         /*!< 0x00000800 */
1556 
1557 #define ADC_AWD2TR_HT2_Pos             (16U)
1558 #define ADC_AWD2TR_HT2_Msk             (0xFFFUL << ADC_AWD2TR_HT2_Pos)         /*!< 0x0FFF0000 */
1559 #define ADC_AWD2TR_HT2                 ADC_AWD2TR_HT2_Msk                      /*!< ADC analog watchdog 2 threshold high */
1560 #define ADC_AWD2TR_HT2_0               (0x001UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x00010000 */
1561 #define ADC_AWD2TR_HT2_1               (0x002UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x00020000 */
1562 #define ADC_AWD2TR_HT2_2               (0x004UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x00040000 */
1563 #define ADC_AWD2TR_HT2_3               (0x008UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x00080000 */
1564 #define ADC_AWD2TR_HT2_4               (0x010UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x00100000 */
1565 #define ADC_AWD2TR_HT2_5               (0x020UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x00200000 */
1566 #define ADC_AWD2TR_HT2_6               (0x040UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x00400000 */
1567 #define ADC_AWD2TR_HT2_7               (0x080UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x00800000 */
1568 #define ADC_AWD2TR_HT2_8               (0x100UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x01000000 */
1569 #define ADC_AWD2TR_HT2_9               (0x200UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x02000000 */
1570 #define ADC_AWD2TR_HT2_10              (0x400UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x04000000 */
1571 #define ADC_AWD2TR_HT2_11              (0x800UL << ADC_AWD2TR_HT2_Pos)         /*!< 0x08000000 */
1572 
1573 /* Legacy definitions */
1574 #define ADC_TR2_LT2             ADC_AWD2TR_LT2
1575 #define ADC_TR2_LT2_0           ADC_AWD2TR_LT2_0
1576 #define ADC_TR2_LT2_1           ADC_AWD2TR_LT2_1
1577 #define ADC_TR2_LT2_2           ADC_AWD2TR_LT2_2
1578 #define ADC_TR2_LT2_3           ADC_AWD2TR_LT2_3
1579 #define ADC_TR2_LT2_4           ADC_AWD2TR_LT2_4
1580 #define ADC_TR2_LT2_5           ADC_AWD2TR_LT2_5
1581 #define ADC_TR2_LT2_6           ADC_AWD2TR_LT2_6
1582 #define ADC_TR2_LT2_7           ADC_AWD2TR_LT2_7
1583 #define ADC_TR2_LT2_8           ADC_AWD2TR_LT2_8
1584 #define ADC_TR2_LT2_9           ADC_AWD2TR_LT2_9
1585 #define ADC_TR2_LT2_10          ADC_AWD2TR_LT2_10
1586 #define ADC_TR2_LT2_11          ADC_AWD2TR_LT2_11
1587 
1588 #define ADC_TR2_HT2             ADC_AWD2TR_HT2
1589 #define ADC_TR2_HT2_0           ADC_AWD2TR_HT2_0
1590 #define ADC_TR2_HT2_1           ADC_AWD2TR_HT2_1
1591 #define ADC_TR2_HT2_2           ADC_AWD2TR_HT2_2
1592 #define ADC_TR2_HT2_3           ADC_AWD2TR_HT2_3
1593 #define ADC_TR2_HT2_4           ADC_AWD2TR_HT2_4
1594 #define ADC_TR2_HT2_5           ADC_AWD2TR_HT2_5
1595 #define ADC_TR2_HT2_6           ADC_AWD2TR_HT2_6
1596 #define ADC_TR2_HT2_7           ADC_AWD2TR_HT2_7
1597 #define ADC_TR2_HT2_8           ADC_AWD2TR_HT2_8
1598 #define ADC_TR2_HT2_9           ADC_AWD2TR_HT2_9
1599 #define ADC_TR2_HT2_10          ADC_AWD2TR_HT2_10
1600 #define ADC_TR2_HT2_11          ADC_AWD2TR_HT2_11
1601 
1602 /********************  Bit definition for ADC_CHSELR register  ****************/
1603 #define ADC_CHSELR_CHSEL_Pos           (0U)
1604 #define ADC_CHSELR_CHSEL_Msk           (0x3FFFFUL << ADC_CHSELR_CHSEL_Pos)     /*!< 0x0003FFFF */
1605 #define ADC_CHSELR_CHSEL               ADC_CHSELR_CHSEL_Msk                    /*!< ADC group regular sequencer channels, available when ADC_CFGR1_CHSELRMOD is reset */
1606 #define ADC_CHSELR_CHSEL17_Pos         (17U)
1607 #define ADC_CHSELR_CHSEL17_Msk         (0x1UL << ADC_CHSELR_CHSEL17_Pos)       /*!< 0x00020000 */
1608 #define ADC_CHSELR_CHSEL17             ADC_CHSELR_CHSEL17_Msk                  /*!< ADC group regular sequencer channel 17, available when ADC_CFGR1_CHSELRMOD is reset */
1609 #define ADC_CHSELR_CHSEL16_Pos         (16U)
1610 #define ADC_CHSELR_CHSEL16_Msk         (0x1UL << ADC_CHSELR_CHSEL16_Pos)       /*!< 0x00010000 */
1611 #define ADC_CHSELR_CHSEL16             ADC_CHSELR_CHSEL16_Msk                  /*!< ADC group regular sequencer channel 16, available when ADC_CFGR1_CHSELRMOD is reset */
1612 #define ADC_CHSELR_CHSEL15_Pos         (15U)
1613 #define ADC_CHSELR_CHSEL15_Msk         (0x1UL << ADC_CHSELR_CHSEL15_Pos)       /*!< 0x00008000 */
1614 #define ADC_CHSELR_CHSEL15             ADC_CHSELR_CHSEL15_Msk                  /*!< ADC group regular sequencer channel 15, available when ADC_CFGR1_CHSELRMOD is reset */
1615 #define ADC_CHSELR_CHSEL14_Pos         (14U)
1616 #define ADC_CHSELR_CHSEL14_Msk         (0x1UL << ADC_CHSELR_CHSEL14_Pos)       /*!< 0x00004000 */
1617 #define ADC_CHSELR_CHSEL14             ADC_CHSELR_CHSEL14_Msk                  /*!< ADC group regular sequencer channel 14, available when ADC_CFGR1_CHSELRMOD is reset */
1618 #define ADC_CHSELR_CHSEL13_Pos         (13U)
1619 #define ADC_CHSELR_CHSEL13_Msk         (0x1UL << ADC_CHSELR_CHSEL13_Pos)       /*!< 0x00002000 */
1620 #define ADC_CHSELR_CHSEL13             ADC_CHSELR_CHSEL13_Msk                  /*!< ADC group regular sequencer channel 13, available when ADC_CFGR1_CHSELRMOD is reset */
1621 #define ADC_CHSELR_CHSEL12_Pos         (12U)
1622 #define ADC_CHSELR_CHSEL12_Msk         (0x1UL << ADC_CHSELR_CHSEL12_Pos)       /*!< 0x00001000 */
1623 #define ADC_CHSELR_CHSEL12             ADC_CHSELR_CHSEL12_Msk                  /*!< ADC group regular sequencer channel 12, available when ADC_CFGR1_CHSELRMOD is reset */
1624 #define ADC_CHSELR_CHSEL11_Pos         (11U)
1625 #define ADC_CHSELR_CHSEL11_Msk         (0x1UL << ADC_CHSELR_CHSEL11_Pos)       /*!< 0x00000800 */
1626 #define ADC_CHSELR_CHSEL11             ADC_CHSELR_CHSEL11_Msk                  /*!< ADC group regular sequencer channel 11, available when ADC_CFGR1_CHSELRMOD is reset */
1627 #define ADC_CHSELR_CHSEL10_Pos         (10U)
1628 #define ADC_CHSELR_CHSEL10_Msk         (0x1UL << ADC_CHSELR_CHSEL10_Pos)       /*!< 0x00000400 */
1629 #define ADC_CHSELR_CHSEL10             ADC_CHSELR_CHSEL10_Msk                  /*!< ADC group regular sequencer channel 10, available when ADC_CFGR1_CHSELRMOD is reset */
1630 #define ADC_CHSELR_CHSEL9_Pos          (9U)
1631 #define ADC_CHSELR_CHSEL9_Msk          (0x1UL << ADC_CHSELR_CHSEL9_Pos)        /*!< 0x00000200 */
1632 #define ADC_CHSELR_CHSEL9              ADC_CHSELR_CHSEL9_Msk                   /*!< ADC group regular sequencer channel 9, available when ADC_CFGR1_CHSELRMOD is reset */
1633 #define ADC_CHSELR_CHSEL8_Pos          (8U)
1634 #define ADC_CHSELR_CHSEL8_Msk          (0x1UL << ADC_CHSELR_CHSEL8_Pos)        /*!< 0x00000100 */
1635 #define ADC_CHSELR_CHSEL8              ADC_CHSELR_CHSEL8_Msk                   /*!< ADC group regular sequencer channel 8, available when ADC_CFGR1_CHSELRMOD is reset */
1636 #define ADC_CHSELR_CHSEL7_Pos          (7U)
1637 #define ADC_CHSELR_CHSEL7_Msk          (0x1UL << ADC_CHSELR_CHSEL7_Pos)        /*!< 0x00000080 */
1638 #define ADC_CHSELR_CHSEL7              ADC_CHSELR_CHSEL7_Msk                   /*!< ADC group regular sequencer channel 7, available when ADC_CFGR1_CHSELRMOD is reset */
1639 #define ADC_CHSELR_CHSEL6_Pos          (6U)
1640 #define ADC_CHSELR_CHSEL6_Msk          (0x1UL << ADC_CHSELR_CHSEL6_Pos)        /*!< 0x00000040 */
1641 #define ADC_CHSELR_CHSEL6              ADC_CHSELR_CHSEL6_Msk                   /*!< ADC group regular sequencer channel 6, available when ADC_CFGR1_CHSELRMOD is reset */
1642 #define ADC_CHSELR_CHSEL5_Pos          (5U)
1643 #define ADC_CHSELR_CHSEL5_Msk          (0x1UL << ADC_CHSELR_CHSEL5_Pos)        /*!< 0x00000020 */
1644 #define ADC_CHSELR_CHSEL5              ADC_CHSELR_CHSEL5_Msk                   /*!< ADC group regular sequencer channel 5, available when ADC_CFGR1_CHSELRMOD is reset */
1645 #define ADC_CHSELR_CHSEL4_Pos          (4U)
1646 #define ADC_CHSELR_CHSEL4_Msk          (0x1UL << ADC_CHSELR_CHSEL4_Pos)        /*!< 0x00000010 */
1647 #define ADC_CHSELR_CHSEL4              ADC_CHSELR_CHSEL4_Msk                   /*!< ADC group regular sequencer channel 4, available when ADC_CFGR1_CHSELRMOD is reset */
1648 #define ADC_CHSELR_CHSEL3_Pos          (3U)
1649 #define ADC_CHSELR_CHSEL3_Msk          (0x1UL << ADC_CHSELR_CHSEL3_Pos)        /*!< 0x00000008 */
1650 #define ADC_CHSELR_CHSEL3              ADC_CHSELR_CHSEL3_Msk                   /*!< ADC group regular sequencer channel 3, available when ADC_CFGR1_CHSELRMOD is reset */
1651 #define ADC_CHSELR_CHSEL2_Pos          (2U)
1652 #define ADC_CHSELR_CHSEL2_Msk          (0x1UL << ADC_CHSELR_CHSEL2_Pos)        /*!< 0x00000004 */
1653 #define ADC_CHSELR_CHSEL2              ADC_CHSELR_CHSEL2_Msk                   /*!< ADC group regular sequencer channel 2, available when ADC_CFGR1_CHSELRMOD is reset */
1654 #define ADC_CHSELR_CHSEL1_Pos          (1U)
1655 #define ADC_CHSELR_CHSEL1_Msk          (0x1UL << ADC_CHSELR_CHSEL1_Pos)        /*!< 0x00000002 */
1656 #define ADC_CHSELR_CHSEL1              ADC_CHSELR_CHSEL1_Msk                   /*!< ADC group regular sequencer channel 1, available when ADC_CFGR1_CHSELRMOD is reset */
1657 #define ADC_CHSELR_CHSEL0_Pos          (0U)
1658 #define ADC_CHSELR_CHSEL0_Msk          (0x1UL << ADC_CHSELR_CHSEL0_Pos)        /*!< 0x00000001 */
1659 #define ADC_CHSELR_CHSEL0              ADC_CHSELR_CHSEL0_Msk                   /*!< ADC group regular sequencer channel 0, available when ADC_CFGR1_CHSELRMOD is reset */
1660 
1661 #define ADC_CHSELR_SQ_ALL_Pos          (0U)
1662 #define ADC_CHSELR_SQ_ALL_Msk          (0xFFFFFFFFUL << ADC_CHSELR_SQ_ALL_Pos) /*!< 0xFFFFFFFF */
1663 #define ADC_CHSELR_SQ_ALL              ADC_CHSELR_SQ_ALL_Msk                   /*!< ADC group regular sequencer all ranks, available when ADC_CFGR1_CHSELRMOD is set */
1664 
1665 #define ADC_CHSELR_SQ8_Pos             (28U)
1666 #define ADC_CHSELR_SQ8_Msk             (0xFUL << ADC_CHSELR_SQ8_Pos)           /*!< 0xF0000000 */
1667 #define ADC_CHSELR_SQ8                 ADC_CHSELR_SQ8_Msk                      /*!< ADC group regular sequencer rank 8, available when ADC_CFGR1_CHSELRMOD is set */
1668 #define ADC_CHSELR_SQ8_0               (0x1UL << ADC_CHSELR_SQ8_Pos)           /*!< 0x10000000 */
1669 #define ADC_CHSELR_SQ8_1               (0x2UL << ADC_CHSELR_SQ8_Pos)           /*!< 0x20000000 */
1670 #define ADC_CHSELR_SQ8_2               (0x4UL << ADC_CHSELR_SQ8_Pos)           /*!< 0x40000000 */
1671 #define ADC_CHSELR_SQ8_3               (0x8UL << ADC_CHSELR_SQ8_Pos)           /*!< 0x80000000 */
1672 
1673 #define ADC_CHSELR_SQ7_Pos             (24U)
1674 #define ADC_CHSELR_SQ7_Msk             (0xFUL << ADC_CHSELR_SQ7_Pos)           /*!< 0x0F000000 */
1675 #define ADC_CHSELR_SQ7                 ADC_CHSELR_SQ7_Msk                      /*!< ADC group regular sequencer rank 7, available when ADC_CFGR1_CHSELRMOD is set */
1676 #define ADC_CHSELR_SQ7_0               (0x1UL << ADC_CHSELR_SQ7_Pos)           /*!< 0x01000000 */
1677 #define ADC_CHSELR_SQ7_1               (0x2UL << ADC_CHSELR_SQ7_Pos)           /*!< 0x02000000 */
1678 #define ADC_CHSELR_SQ7_2               (0x4UL << ADC_CHSELR_SQ7_Pos)           /*!< 0x04000000 */
1679 #define ADC_CHSELR_SQ7_3               (0x8UL << ADC_CHSELR_SQ7_Pos)           /*!< 0x08000000 */
1680 
1681 #define ADC_CHSELR_SQ6_Pos             (20U)
1682 #define ADC_CHSELR_SQ6_Msk             (0xFUL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00F00000 */
1683 #define ADC_CHSELR_SQ6                 ADC_CHSELR_SQ6_Msk                      /*!< ADC group regular sequencer rank 6, available when ADC_CFGR1_CHSELRMOD is set */
1684 #define ADC_CHSELR_SQ6_0               (0x1UL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00100000 */
1685 #define ADC_CHSELR_SQ6_1               (0x2UL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00200000 */
1686 #define ADC_CHSELR_SQ6_2               (0x4UL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00400000 */
1687 #define ADC_CHSELR_SQ6_3               (0x8UL << ADC_CHSELR_SQ6_Pos)           /*!< 0x00800000 */
1688 
1689 #define ADC_CHSELR_SQ5_Pos             (16U)
1690 #define ADC_CHSELR_SQ5_Msk             (0xFUL << ADC_CHSELR_SQ5_Pos)           /*!< 0x000F0000 */
1691 #define ADC_CHSELR_SQ5                 ADC_CHSELR_SQ5_Msk                      /*!< ADC group regular sequencer rank 5, available when ADC_CFGR1_CHSELRMOD is set */
1692 #define ADC_CHSELR_SQ5_0               (0x1UL << ADC_CHSELR_SQ5_Pos)           /*!< 0x00010000 */
1693 #define ADC_CHSELR_SQ5_1               (0x2UL << ADC_CHSELR_SQ5_Pos)           /*!< 0x00020000 */
1694 #define ADC_CHSELR_SQ5_2               (0x4UL << ADC_CHSELR_SQ5_Pos)           /*!< 0x00040000 */
1695 #define ADC_CHSELR_SQ5_3               (0x8UL << ADC_CHSELR_SQ5_Pos)           /*!< 0x00080000 */
1696 
1697 #define ADC_CHSELR_SQ4_Pos             (12U)
1698 #define ADC_CHSELR_SQ4_Msk             (0xFUL << ADC_CHSELR_SQ4_Pos)           /*!< 0x0000F000 */
1699 #define ADC_CHSELR_SQ4                 ADC_CHSELR_SQ4_Msk                      /*!< ADC group regular sequencer rank 4, available when ADC_CFGR1_CHSELRMOD is set */
1700 #define ADC_CHSELR_SQ4_0               (0x1UL << ADC_CHSELR_SQ4_Pos)           /*!< 0x00001000 */
1701 #define ADC_CHSELR_SQ4_1               (0x2UL << ADC_CHSELR_SQ4_Pos)           /*!< 0x00002000 */
1702 #define ADC_CHSELR_SQ4_2               (0x4UL << ADC_CHSELR_SQ4_Pos)           /*!< 0x00004000 */
1703 #define ADC_CHSELR_SQ4_3               (0x8UL << ADC_CHSELR_SQ4_Pos)           /*!< 0x00008000 */
1704 
1705 #define ADC_CHSELR_SQ3_Pos             (8U)
1706 #define ADC_CHSELR_SQ3_Msk             (0xFUL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000F00 */
1707 #define ADC_CHSELR_SQ3                 ADC_CHSELR_SQ3_Msk                      /*!< ADC group regular sequencer rank 3, available when ADC_CFGR1_CHSELRMOD is set */
1708 #define ADC_CHSELR_SQ3_0               (0x1UL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000100 */
1709 #define ADC_CHSELR_SQ3_1               (0x2UL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000200 */
1710 #define ADC_CHSELR_SQ3_2               (0x4UL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000400 */
1711 #define ADC_CHSELR_SQ3_3               (0x8UL << ADC_CHSELR_SQ3_Pos)           /*!< 0x00000800 */
1712 
1713 #define ADC_CHSELR_SQ2_Pos             (4U)
1714 #define ADC_CHSELR_SQ2_Msk             (0xFUL << ADC_CHSELR_SQ2_Pos)           /*!< 0x000000F0 */
1715 #define ADC_CHSELR_SQ2                 ADC_CHSELR_SQ2_Msk                      /*!< ADC group regular sequencer rank 2, available when ADC_CFGR1_CHSELRMOD is set */
1716 #define ADC_CHSELR_SQ2_0               (0x1UL << ADC_CHSELR_SQ2_Pos)           /*!< 0x00000010 */
1717 #define ADC_CHSELR_SQ2_1               (0x2UL << ADC_CHSELR_SQ2_Pos)           /*!< 0x00000020 */
1718 #define ADC_CHSELR_SQ2_2               (0x4UL << ADC_CHSELR_SQ2_Pos)           /*!< 0x00000040 */
1719 #define ADC_CHSELR_SQ2_3               (0x8UL << ADC_CHSELR_SQ2_Pos)           /*!< 0x00000080 */
1720 
1721 #define ADC_CHSELR_SQ1_Pos             (0U)
1722 #define ADC_CHSELR_SQ1_Msk             (0xFUL << ADC_CHSELR_SQ1_Pos)           /*!< 0x0000000F */
1723 #define ADC_CHSELR_SQ1                 ADC_CHSELR_SQ1_Msk                      /*!< ADC group regular sequencer rank 1, available when ADC_CFGR1_CHSELRMOD is set */
1724 #define ADC_CHSELR_SQ1_0               (0x1UL << ADC_CHSELR_SQ1_Pos)           /*!< 0x00000001 */
1725 #define ADC_CHSELR_SQ1_1               (0x2UL << ADC_CHSELR_SQ1_Pos)           /*!< 0x00000002 */
1726 #define ADC_CHSELR_SQ1_2               (0x4UL << ADC_CHSELR_SQ1_Pos)           /*!< 0x00000004 */
1727 #define ADC_CHSELR_SQ1_3               (0x8UL << ADC_CHSELR_SQ1_Pos)           /*!< 0x00000008 */
1728 
1729 /********************  Bit definition for ADC_AWD3TR register  *******************/
1730 #define ADC_AWD3TR_LT3_Pos             (0U)
1731 #define ADC_AWD3TR_LT3_Msk             (0xFFFUL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000FFF */
1732 #define ADC_AWD3TR_LT3                 ADC_AWD3TR_LT3_Msk                      /*!< ADC analog watchdog 3 threshold low */
1733 #define ADC_AWD3TR_LT3_0               (0x001UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000001 */
1734 #define ADC_AWD3TR_LT3_1               (0x002UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000002 */
1735 #define ADC_AWD3TR_LT3_2               (0x004UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000004 */
1736 #define ADC_AWD3TR_LT3_3               (0x008UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000008 */
1737 #define ADC_AWD3TR_LT3_4               (0x010UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000010 */
1738 #define ADC_AWD3TR_LT3_5               (0x020UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000020 */
1739 #define ADC_AWD3TR_LT3_6               (0x040UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000040 */
1740 #define ADC_AWD3TR_LT3_7               (0x080UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000080 */
1741 #define ADC_AWD3TR_LT3_8               (0x100UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000100 */
1742 #define ADC_AWD3TR_LT3_9               (0x200UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000200 */
1743 #define ADC_AWD3TR_LT3_10              (0x400UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000400 */
1744 #define ADC_AWD3TR_LT3_11              (0x800UL << ADC_AWD3TR_LT3_Pos)         /*!< 0x00000800 */
1745 
1746 #define ADC_AWD3TR_HT3_Pos             (16U)
1747 #define ADC_AWD3TR_HT3_Msk             (0xFFFUL << ADC_AWD3TR_HT3_Pos)         /*!< 0x0FFF0000 */
1748 #define ADC_AWD3TR_HT3                 ADC_AWD3TR_HT3_Msk                      /*!< ADC analog watchdog 3 threshold high */
1749 #define ADC_AWD3TR_HT3_0               (0x001UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x00010000 */
1750 #define ADC_AWD3TR_HT3_1               (0x002UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x00020000 */
1751 #define ADC_AWD3TR_HT3_2               (0x004UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x00040000 */
1752 #define ADC_AWD3TR_HT3_3               (0x008UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x00080000 */
1753 #define ADC_AWD3TR_HT3_4               (0x010UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x00100000 */
1754 #define ADC_AWD3TR_HT3_5               (0x020UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x00200000 */
1755 #define ADC_AWD3TR_HT3_6               (0x040UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x00400000 */
1756 #define ADC_AWD3TR_HT3_7               (0x080UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x00800000 */
1757 #define ADC_AWD3TR_HT3_8               (0x100UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x01000000 */
1758 #define ADC_AWD3TR_HT3_9               (0x200UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x02000000 */
1759 #define ADC_AWD3TR_HT3_10              (0x400UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x04000000 */
1760 #define ADC_AWD3TR_HT3_11              (0x800UL << ADC_AWD3TR_HT3_Pos)         /*!< 0x08000000 */
1761 
1762 /* Legacy definitions */
1763 #define ADC_TR3_LT3             ADC_AWD3TR_LT3
1764 #define ADC_TR3_LT3_0           ADC_AWD3TR_LT3_0
1765 #define ADC_TR3_LT3_1           ADC_AWD3TR_LT3_1
1766 #define ADC_TR3_LT3_2           ADC_AWD3TR_LT3_2
1767 #define ADC_TR3_LT3_3           ADC_AWD3TR_LT3_3
1768 #define ADC_TR3_LT3_4           ADC_AWD3TR_LT3_4
1769 #define ADC_TR3_LT3_5           ADC_AWD3TR_LT3_5
1770 #define ADC_TR3_LT3_6           ADC_AWD3TR_LT3_6
1771 #define ADC_TR3_LT3_7           ADC_AWD3TR_LT3_7
1772 #define ADC_TR3_LT3_8           ADC_AWD3TR_LT3_8
1773 #define ADC_TR3_LT3_9           ADC_AWD3TR_LT3_9
1774 #define ADC_TR3_LT3_10          ADC_AWD3TR_LT3_10
1775 #define ADC_TR3_LT3_11          ADC_AWD3TR_LT3_11
1776 
1777 #define ADC_TR3_HT3             ADC_AWD3TR_HT3
1778 #define ADC_TR3_HT3_0           ADC_AWD3TR_HT3_0
1779 #define ADC_TR3_HT3_1           ADC_AWD3TR_HT3_1
1780 #define ADC_TR3_HT3_2           ADC_AWD3TR_HT3_2
1781 #define ADC_TR3_HT3_3           ADC_AWD3TR_HT3_3
1782 #define ADC_TR3_HT3_4           ADC_AWD3TR_HT3_4
1783 #define ADC_TR3_HT3_5           ADC_AWD3TR_HT3_5
1784 #define ADC_TR3_HT3_6           ADC_AWD3TR_HT3_6
1785 #define ADC_TR3_HT3_7           ADC_AWD3TR_HT3_7
1786 #define ADC_TR3_HT3_8           ADC_AWD3TR_HT3_8
1787 #define ADC_TR3_HT3_9           ADC_AWD3TR_HT3_9
1788 #define ADC_TR3_HT3_10          ADC_AWD3TR_HT3_10
1789 #define ADC_TR3_HT3_11          ADC_AWD3TR_HT3_11
1790 /********************  Bit definition for ADC_DR register  ********************/
1791 #define ADC_DR_DATA_Pos                (0U)
1792 #define ADC_DR_DATA_Msk                (0xFFFFUL << ADC_DR_DATA_Pos)           /*!< 0x0000FFFF */
1793 #define ADC_DR_DATA                    ADC_DR_DATA_Msk                         /*!< ADC group regular conversion data */
1794 #define ADC_DR_DATA_0                  (0x0001UL << ADC_DR_DATA_Pos)           /*!< 0x00000001 */
1795 #define ADC_DR_DATA_1                  (0x0002UL << ADC_DR_DATA_Pos)           /*!< 0x00000002 */
1796 #define ADC_DR_DATA_2                  (0x0004UL << ADC_DR_DATA_Pos)           /*!< 0x00000004 */
1797 #define ADC_DR_DATA_3                  (0x0008UL << ADC_DR_DATA_Pos)           /*!< 0x00000008 */
1798 #define ADC_DR_DATA_4                  (0x0010UL << ADC_DR_DATA_Pos)           /*!< 0x00000010 */
1799 #define ADC_DR_DATA_5                  (0x0020UL << ADC_DR_DATA_Pos)           /*!< 0x00000020 */
1800 #define ADC_DR_DATA_6                  (0x0040UL << ADC_DR_DATA_Pos)           /*!< 0x00000040 */
1801 #define ADC_DR_DATA_7                  (0x0080UL << ADC_DR_DATA_Pos)           /*!< 0x00000080 */
1802 #define ADC_DR_DATA_8                  (0x0100UL << ADC_DR_DATA_Pos)           /*!< 0x00000100 */
1803 #define ADC_DR_DATA_9                  (0x0200UL << ADC_DR_DATA_Pos)           /*!< 0x00000200 */
1804 #define ADC_DR_DATA_10                 (0x0400UL << ADC_DR_DATA_Pos)           /*!< 0x00000400 */
1805 #define ADC_DR_DATA_11                 (0x0800UL << ADC_DR_DATA_Pos)           /*!< 0x00000800 */
1806 #define ADC_DR_DATA_12                 (0x1000UL << ADC_DR_DATA_Pos)           /*!< 0x00001000 */
1807 #define ADC_DR_DATA_13                 (0x2000UL << ADC_DR_DATA_Pos)           /*!< 0x00002000 */
1808 #define ADC_DR_DATA_14                 (0x4000UL << ADC_DR_DATA_Pos)           /*!< 0x00004000 */
1809 #define ADC_DR_DATA_15                 (0x8000UL << ADC_DR_DATA_Pos)           /*!< 0x00008000 */
1810 
1811 /********************  Bit definition for ADC_AWD2CR register  ****************/
1812 #define ADC_AWD2CR_AWD2CH_Pos          (0U)
1813 #define ADC_AWD2CR_AWD2CH_Msk          (0x3FFFFUL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x0003FFFF */
1814 #define ADC_AWD2CR_AWD2CH              ADC_AWD2CR_AWD2CH_Msk                   /*!< ADC analog watchdog 2 monitored channel selection */
1815 #define ADC_AWD2CR_AWD2CH_0            (0x00001UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000001 */
1816 #define ADC_AWD2CR_AWD2CH_1            (0x00002UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000002 */
1817 #define ADC_AWD2CR_AWD2CH_2            (0x00004UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000004 */
1818 #define ADC_AWD2CR_AWD2CH_3            (0x00008UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000008 */
1819 #define ADC_AWD2CR_AWD2CH_4            (0x00010UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000010 */
1820 #define ADC_AWD2CR_AWD2CH_5            (0x00020UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000020 */
1821 #define ADC_AWD2CR_AWD2CH_6            (0x00040UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000040 */
1822 #define ADC_AWD2CR_AWD2CH_7            (0x00080UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000080 */
1823 #define ADC_AWD2CR_AWD2CH_8            (0x00100UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000100 */
1824 #define ADC_AWD2CR_AWD2CH_9            (0x00200UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000200 */
1825 #define ADC_AWD2CR_AWD2CH_10           (0x00400UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000400 */
1826 #define ADC_AWD2CR_AWD2CH_11           (0x00800UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00000800 */
1827 #define ADC_AWD2CR_AWD2CH_12           (0x01000UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00001000 */
1828 #define ADC_AWD2CR_AWD2CH_13           (0x02000UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00002000 */
1829 #define ADC_AWD2CR_AWD2CH_14           (0x04000UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00004000 */
1830 #define ADC_AWD2CR_AWD2CH_15           (0x08000UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00008000 */
1831 #define ADC_AWD2CR_AWD2CH_16           (0x10000UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00010000 */
1832 #define ADC_AWD2CR_AWD2CH_17           (0x20000UL << ADC_AWD2CR_AWD2CH_Pos)    /*!< 0x00020000 */
1833 
1834 /********************  Bit definition for ADC_AWD3CR register  ****************/
1835 #define ADC_AWD3CR_AWD3CH_Pos          (0U)
1836 #define ADC_AWD3CR_AWD3CH_Msk          (0x3FFFFUL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x0003FFFF */
1837 #define ADC_AWD3CR_AWD3CH              ADC_AWD3CR_AWD3CH_Msk                   /*!< ADC analog watchdog 3 monitored channel selection */
1838 #define ADC_AWD3CR_AWD3CH_0            (0x00001UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000001 */
1839 #define ADC_AWD3CR_AWD3CH_1            (0x00002UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000002 */
1840 #define ADC_AWD3CR_AWD3CH_2            (0x00004UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000004 */
1841 #define ADC_AWD3CR_AWD3CH_3            (0x00008UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000008 */
1842 #define ADC_AWD3CR_AWD3CH_4            (0x00010UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000010 */
1843 #define ADC_AWD3CR_AWD3CH_5            (0x00020UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000020 */
1844 #define ADC_AWD3CR_AWD3CH_6            (0x00040UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000040 */
1845 #define ADC_AWD3CR_AWD3CH_7            (0x00080UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000080 */
1846 #define ADC_AWD3CR_AWD3CH_8            (0x00100UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000100 */
1847 #define ADC_AWD3CR_AWD3CH_9            (0x00200UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000200 */
1848 #define ADC_AWD3CR_AWD3CH_10           (0x00400UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000400 */
1849 #define ADC_AWD3CR_AWD3CH_11           (0x00800UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00000800 */
1850 #define ADC_AWD3CR_AWD3CH_12           (0x01000UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00001000 */
1851 #define ADC_AWD3CR_AWD3CH_13           (0x02000UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00002000 */
1852 #define ADC_AWD3CR_AWD3CH_14           (0x04000UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00004000 */
1853 #define ADC_AWD3CR_AWD3CH_15           (0x08000UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00008000 */
1854 #define ADC_AWD3CR_AWD3CH_16           (0x10000UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00010000 */
1855 #define ADC_AWD3CR_AWD3CH_17           (0x20000UL << ADC_AWD3CR_AWD3CH_Pos)    /*!< 0x00020000 */
1856 
1857 /********************  Bit definition for ADC_CALFACT register  ***************/
1858 #define ADC_CALFACT_CALFACT_Pos        (0U)
1859 #define ADC_CALFACT_CALFACT_Msk        (0x7FUL << ADC_CALFACT_CALFACT_Pos)     /*!< 0x0000007F */
1860 #define ADC_CALFACT_CALFACT            ADC_CALFACT_CALFACT_Msk                 /*!< ADC calibration factor in single-ended mode */
1861 #define ADC_CALFACT_CALFACT_0          (0x01UL << ADC_CALFACT_CALFACT_Pos)     /*!< 0x00000001 */
1862 #define ADC_CALFACT_CALFACT_1          (0x02UL << ADC_CALFACT_CALFACT_Pos)     /*!< 0x00000002 */
1863 #define ADC_CALFACT_CALFACT_2          (0x04UL << ADC_CALFACT_CALFACT_Pos)     /*!< 0x00000004 */
1864 #define ADC_CALFACT_CALFACT_3          (0x08UL << ADC_CALFACT_CALFACT_Pos)     /*!< 0x00000008 */
1865 #define ADC_CALFACT_CALFACT_4          (0x10UL << ADC_CALFACT_CALFACT_Pos)     /*!< 0x00000010 */
1866 #define ADC_CALFACT_CALFACT_5          (0x20UL << ADC_CALFACT_CALFACT_Pos)     /*!< 0x00000020 */
1867 #define ADC_CALFACT_CALFACT_6          (0x40UL << ADC_CALFACT_CALFACT_Pos)     /*!< 0x00000040 */
1868 
1869 /*************************  ADC Common registers  *****************************/
1870 /********************  Bit definition for ADC_CCR register  *******************/
1871 #define ADC_CCR_PRESC_Pos              (18U)
1872 #define ADC_CCR_PRESC_Msk              (0xFUL << ADC_CCR_PRESC_Pos)            /*!< 0x003C0000 */
1873 #define ADC_CCR_PRESC                  ADC_CCR_PRESC_Msk                       /*!< ADC common clock prescaler, only for clock source asynchronous */
1874 #define ADC_CCR_PRESC_0                (0x1UL << ADC_CCR_PRESC_Pos)            /*!< 0x00040000 */
1875 #define ADC_CCR_PRESC_1                (0x2UL << ADC_CCR_PRESC_Pos)            /*!< 0x00080000 */
1876 #define ADC_CCR_PRESC_2                (0x4UL << ADC_CCR_PRESC_Pos)            /*!< 0x00100000 */
1877 #define ADC_CCR_PRESC_3                (0x8UL << ADC_CCR_PRESC_Pos)            /*!< 0x00200000 */
1878 
1879 #define ADC_CCR_VREFEN_Pos             (22U)
1880 #define ADC_CCR_VREFEN_Msk             (0x1UL << ADC_CCR_VREFEN_Pos)           /*!< 0x00400000 */
1881 #define ADC_CCR_VREFEN                 ADC_CCR_VREFEN_Msk                      /*!< ADC internal path to VrefInt enable */
1882 #define ADC_CCR_TSEN_Pos               (23U)
1883 #define ADC_CCR_TSEN_Msk               (0x1UL << ADC_CCR_TSEN_Pos)             /*!< 0x00800000 */
1884 #define ADC_CCR_TSEN                   ADC_CCR_TSEN_Msk                        /*!< ADC internal path to temperature sensor enable */
1885 #define ADC_CCR_VBATEN_Pos             (24U)
1886 #define ADC_CCR_VBATEN_Msk             (0x1UL << ADC_CCR_VBATEN_Pos)           /*!< 0x01000000 */
1887 #define ADC_CCR_VBATEN                 ADC_CCR_VBATEN_Msk                      /*!< ADC internal path to battery voltage enable */
1888 
1889 /******************************************************************************/
1890 /*                                                                            */
1891 /*                      Analog Comparators (COMP)                             */
1892 /*                                                                            */
1893 /******************************************************************************/
1894 /**********************  Bit definition for COMP_CSR register  ****************/
1895 #define COMP_CSR_EN_Pos            (0U)
1896 #define COMP_CSR_EN_Msk            (0x1UL << COMP_CSR_EN_Pos)                  /*!< 0x00000001 */
1897 #define COMP_CSR_EN                COMP_CSR_EN_Msk                             /*!< Comparator enable */
1898 
1899 #define COMP_CSR_PWRMODE_Pos       (2U)
1900 #define COMP_CSR_PWRMODE_Msk       (0x3UL << COMP_CSR_PWRMODE_Pos)             /*!< 0x0000000C */
1901 #define COMP_CSR_PWRMODE           COMP_CSR_PWRMODE_Msk                        /*!< Comparator power mode */
1902 #define COMP_CSR_PWRMODE_0         (0x1UL << COMP_CSR_PWRMODE_Pos)             /*!< 0x00000004 */
1903 #define COMP_CSR_PWRMODE_1         (0x2UL << COMP_CSR_PWRMODE_Pos)             /*!< 0x00000008 */
1904 
1905 #define COMP_CSR_INMSEL_Pos        (4U)
1906 #define COMP_CSR_INMSEL_Msk        (0x7UL << COMP_CSR_INMSEL_Pos)              /*!< 0x00000070 */
1907 #define COMP_CSR_INMSEL            COMP_CSR_INMSEL_Msk                         /*!< Comparator input minus selection */
1908 #define COMP_CSR_INMSEL_0          (0x1UL << COMP_CSR_INMSEL_Pos)              /*!< 0x00000010 */
1909 #define COMP_CSR_INMSEL_1          (0x2UL << COMP_CSR_INMSEL_Pos)              /*!< 0x00000020 */
1910 #define COMP_CSR_INMSEL_2          (0x4UL << COMP_CSR_INMSEL_Pos)              /*!< 0x00000040 */
1911 
1912 #define COMP_CSR_INPSEL_Pos        (7U)
1913 #define COMP_CSR_INPSEL_Msk        (0x3UL << COMP_CSR_INPSEL_Pos)              /*!< 0x00000180 */
1914 #define COMP_CSR_INPSEL            COMP_CSR_INPSEL_Msk                         /*!< Comparator input plus selection */
1915 #define COMP_CSR_INPSEL_0          (0x1UL << COMP_CSR_INPSEL_Pos)              /*!< 0x00000080 */
1916 #define COMP_CSR_INPSEL_1          (0x2UL << COMP_CSR_INPSEL_Pos)              /*!< 0x00000100 */
1917 
1918 #define COMP_CSR_WINMODE_Pos       (9U)
1919 #define COMP_CSR_WINMODE_Msk       (0x1UL << COMP_CSR_WINMODE_Pos)             /*!< 0x00000200 */
1920 #define COMP_CSR_WINMODE           COMP_CSR_WINMODE_Msk                        /*!< Pair of comparators window mode. Bit intended to be used with COMP common instance (COMP_Common_TypeDef)  */
1921 
1922 #define COMP_CSR_POLARITY_Pos      (15U)
1923 #define COMP_CSR_POLARITY_Msk      (0x1UL << COMP_CSR_POLARITY_Pos)            /*!< 0x00008000 */
1924 #define COMP_CSR_POLARITY          COMP_CSR_POLARITY_Msk                       /*!< Comparator output polarity */
1925 
1926 #define COMP_CSR_HYST_Pos          (16U)
1927 #define COMP_CSR_HYST_Msk          (0x3UL << COMP_CSR_HYST_Pos)                /*!< 0x00030000 */
1928 #define COMP_CSR_HYST              COMP_CSR_HYST_Msk                           /*!< Comparator hysteresis */
1929 #define COMP_CSR_HYST_0            (0x1UL << COMP_CSR_HYST_Pos)                /*!< 0x00010000 */
1930 #define COMP_CSR_HYST_1            (0x2UL << COMP_CSR_HYST_Pos)                /*!< 0x00020000 */
1931 
1932 #define COMP_CSR_BLANKING_Pos      (18U)
1933 #define COMP_CSR_BLANKING_Msk      (0x7UL << COMP_CSR_BLANKING_Pos)            /*!< 0x001C0000 */
1934 #define COMP_CSR_BLANKING          COMP_CSR_BLANKING_Msk                       /*!< Comparator blanking source */
1935 #define COMP_CSR_BLANKING_0        (0x1UL << COMP_CSR_BLANKING_Pos)            /*!< 0x00040000 */
1936 #define COMP_CSR_BLANKING_1        (0x2UL << COMP_CSR_BLANKING_Pos)            /*!< 0x00080000 */
1937 #define COMP_CSR_BLANKING_2        (0x4UL << COMP_CSR_BLANKING_Pos)            /*!< 0x00100000 */
1938 
1939 #define COMP_CSR_BRGEN_Pos         (22U)
1940 #define COMP_CSR_BRGEN_Msk         (0x1UL << COMP_CSR_BRGEN_Pos)               /*!< 0x00400000 */
1941 #define COMP_CSR_BRGEN             COMP_CSR_BRGEN_Msk                          /*!< Comparator voltage scaler enable */
1942 #define COMP_CSR_SCALEN_Pos        (23U)
1943 #define COMP_CSR_SCALEN_Msk        (0x1UL << COMP_CSR_SCALEN_Pos)              /*!< 0x00800000 */
1944 #define COMP_CSR_SCALEN            COMP_CSR_SCALEN_Msk                         /*!< Comparator scaler bridge enable */
1945 
1946 #define COMP_CSR_INMESEL_Pos       (25U)
1947 #define COMP_CSR_INMESEL_Msk       (0x3UL << COMP_CSR_INMESEL_Pos)             /*!< 0x06000000 */
1948 #define COMP_CSR_INMESEL           COMP_CSR_INMESEL_Msk                        /*!< Comparator input minus extended selection */
1949 #define COMP_CSR_INMESEL_0         (0x1UL << COMP_CSR_INMESEL_Pos)             /*!< 0x02000000 */
1950 #define COMP_CSR_INMESEL_1         (0x2UL << COMP_CSR_INMESEL_Pos)             /*!< 0x04000000 */
1951 
1952 #define COMP_CSR_VALUE_Pos         (30U)
1953 #define COMP_CSR_VALUE_Msk         (0x1UL << COMP_CSR_VALUE_Pos)               /*!< 0x40000000 */
1954 #define COMP_CSR_VALUE             COMP_CSR_VALUE_Msk                          /*!< Comparator output level */
1955 
1956 #define COMP_CSR_LOCK_Pos          (31U)
1957 #define COMP_CSR_LOCK_Msk          (0x1UL << COMP_CSR_LOCK_Pos)                /*!< 0x80000000 */
1958 #define COMP_CSR_LOCK              COMP_CSR_LOCK_Msk                           /*!< Comparator lock */
1959 
1960 /******************************************************************************/
1961 /*                                                                            */
1962 /*                      Digital to Analog Converter                           */
1963 /*                                                                            */
1964 /******************************************************************************/
1965 /*
1966 * @brief Specific device feature definitions
1967 */
1968 
1969 /********************  Bit definition for DAC_CR register  ********************/
1970 #define DAC_CR_EN1_Pos              (0U)
1971 #define DAC_CR_EN1_Msk              (0x1UL << DAC_CR_EN1_Pos)                  /*!< 0x00000001 */
1972 #define DAC_CR_EN1                  DAC_CR_EN1_Msk                             /*!<DAC channel1 enable */
1973 #define DAC_CR_TEN1_Pos             (1U)
1974 #define DAC_CR_TEN1_Msk             (0x1UL << DAC_CR_TEN1_Pos)                 /*!< 0x00000002 */
1975 #define DAC_CR_TEN1                 DAC_CR_TEN1_Msk                            /*!<DAC channel1 Trigger enable */
1976 
1977 #define DAC_CR_TSEL1_Pos            (2U)
1978 #define DAC_CR_TSEL1_Msk            (0xFUL << DAC_CR_TSEL1_Pos)                /*!< 0x0000003C */
1979 #define DAC_CR_TSEL1                DAC_CR_TSEL1_Msk                           /*!<TSEL1[3:0] (DAC channel1 Trigger selection) */
1980 #define DAC_CR_TSEL1_0              (0x1UL << DAC_CR_TSEL1_Pos)                /*!< 0x00000004 */
1981 #define DAC_CR_TSEL1_1              (0x2UL << DAC_CR_TSEL1_Pos)                /*!< 0x00000008 */
1982 #define DAC_CR_TSEL1_2              (0x4UL << DAC_CR_TSEL1_Pos)                /*!< 0x00000010 */
1983 #define DAC_CR_TSEL1_3              (0x8UL << DAC_CR_TSEL1_Pos)                /*!< 0x00000020 */
1984 
1985 #define DAC_CR_WAVE1_Pos            (6U)
1986 #define DAC_CR_WAVE1_Msk            (0x3UL << DAC_CR_WAVE1_Pos)                /*!< 0x000000C0 */
1987 #define DAC_CR_WAVE1                DAC_CR_WAVE1_Msk                           /*!<WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
1988 #define DAC_CR_WAVE1_0              (0x1UL << DAC_CR_WAVE1_Pos)                /*!< 0x00000040 */
1989 #define DAC_CR_WAVE1_1              (0x2UL << DAC_CR_WAVE1_Pos)                /*!< 0x00000080 */
1990 
1991 #define DAC_CR_MAMP1_Pos            (8U)
1992 #define DAC_CR_MAMP1_Msk            (0xFUL << DAC_CR_MAMP1_Pos)                /*!< 0x00000F00 */
1993 #define DAC_CR_MAMP1                DAC_CR_MAMP1_Msk                           /*!<MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
1994 #define DAC_CR_MAMP1_0              (0x1UL << DAC_CR_MAMP1_Pos)                /*!< 0x00000100 */
1995 #define DAC_CR_MAMP1_1              (0x2UL << DAC_CR_MAMP1_Pos)                /*!< 0x00000200 */
1996 #define DAC_CR_MAMP1_2              (0x4UL << DAC_CR_MAMP1_Pos)                /*!< 0x00000400 */
1997 #define DAC_CR_MAMP1_3              (0x8UL << DAC_CR_MAMP1_Pos)                /*!< 0x00000800 */
1998 
1999 #define DAC_CR_DMAEN1_Pos           (12U)
2000 #define DAC_CR_DMAEN1_Msk           (0x1UL << DAC_CR_DMAEN1_Pos)               /*!< 0x00001000 */
2001 #define DAC_CR_DMAEN1               DAC_CR_DMAEN1_Msk                          /*!<DAC channel1 DMA enable */
2002 #define DAC_CR_DMAUDRIE1_Pos        (13U)
2003 #define DAC_CR_DMAUDRIE1_Msk        (0x1UL << DAC_CR_DMAUDRIE1_Pos)            /*!< 0x00002000 */
2004 #define DAC_CR_DMAUDRIE1            DAC_CR_DMAUDRIE1_Msk                       /*!<DAC channel 1 DMA underrun interrupt enable  >*/
2005 #define DAC_CR_CEN1_Pos             (14U)
2006 #define DAC_CR_CEN1_Msk             (0x1UL << DAC_CR_CEN1_Pos)                 /*!< 0x00004000 */
2007 #define DAC_CR_CEN1                 DAC_CR_CEN1_Msk                            /*!<DAC channel 1 calibration enable >*/
2008 
2009 /*****************  Bit definition for DAC_SWTRIGR register  ******************/
2010 #define DAC_SWTRIGR_SWTRIG1_Pos     (0U)
2011 #define DAC_SWTRIGR_SWTRIG1_Msk     (0x1UL << DAC_SWTRIGR_SWTRIG1_Pos)         /*!< 0x00000001 */
2012 #define DAC_SWTRIGR_SWTRIG1         DAC_SWTRIGR_SWTRIG1_Msk                    /*!<DAC channel1 software trigger */
2013 
2014 /*****************  Bit definition for DAC_DHR12R1 register  ******************/
2015 #define DAC_DHR12R1_DACC1DHR_Pos    (0U)
2016 #define DAC_DHR12R1_DACC1DHR_Msk    (0xFFFUL << DAC_DHR12R1_DACC1DHR_Pos)      /*!< 0x00000FFF */
2017 #define DAC_DHR12R1_DACC1DHR        DAC_DHR12R1_DACC1DHR_Msk                   /*!<DAC channel1 12-bit Right aligned data */
2018 
2019 /*****************  Bit definition for DAC_DHR12L1 register  ******************/
2020 #define DAC_DHR12L1_DACC1DHR_Pos    (4U)
2021 #define DAC_DHR12L1_DACC1DHR_Msk    (0xFFFUL << DAC_DHR12L1_DACC1DHR_Pos)      /*!< 0x0000FFF0 */
2022 #define DAC_DHR12L1_DACC1DHR        DAC_DHR12L1_DACC1DHR_Msk                   /*!<DAC channel1 12-bit Left aligned data */
2023 
2024 /******************  Bit definition for DAC_DHR8R1 register  ******************/
2025 #define DAC_DHR8R1_DACC1DHR_Pos     (0U)
2026 #define DAC_DHR8R1_DACC1DHR_Msk     (0xFFUL << DAC_DHR8R1_DACC1DHR_Pos)        /*!< 0x000000FF */
2027 #define DAC_DHR8R1_DACC1DHR         DAC_DHR8R1_DACC1DHR_Msk                    /*!<DAC channel1 8-bit Right aligned data */
2028 
2029 /*****************  Bit definition for DAC_DHR12RD register  ******************/
2030 #define DAC_DHR12RD_DACC1DHR_Pos    (0U)
2031 #define DAC_DHR12RD_DACC1DHR_Msk    (0xFFFUL << DAC_DHR12RD_DACC1DHR_Pos)      /*!< 0x00000FFF */
2032 #define DAC_DHR12RD_DACC1DHR        DAC_DHR12RD_DACC1DHR_Msk                   /*!<DAC channel1 12-bit Right aligned data */
2033 
2034 /*****************  Bit definition for DAC_DHR12LD register  ******************/
2035 #define DAC_DHR12LD_DACC1DHR_Pos    (4U)
2036 #define DAC_DHR12LD_DACC1DHR_Msk    (0xFFFUL << DAC_DHR12LD_DACC1DHR_Pos)      /*!< 0x0000FFF0 */
2037 #define DAC_DHR12LD_DACC1DHR        DAC_DHR12LD_DACC1DHR_Msk                   /*!<DAC channel1 12-bit Left aligned data */
2038 
2039 /******************  Bit definition for DAC_DHR8RD register  ******************/
2040 #define DAC_DHR8RD_DACC1DHR_Pos     (0U)
2041 #define DAC_DHR8RD_DACC1DHR_Msk     (0xFFUL << DAC_DHR8RD_DACC1DHR_Pos)        /*!< 0x000000FF */
2042 #define DAC_DHR8RD_DACC1DHR         DAC_DHR8RD_DACC1DHR_Msk                    /*!<DAC channel1 8-bit Right aligned data */
2043 
2044 /*******************  Bit definition for DAC_DOR1 register  *******************/
2045 #define DAC_DOR1_DACC1DOR_Pos       (0U)
2046 #define DAC_DOR1_DACC1DOR_Msk       (0xFFFUL << DAC_DOR1_DACC1DOR_Pos)         /*!< 0x00000FFF */
2047 #define DAC_DOR1_DACC1DOR           DAC_DOR1_DACC1DOR_Msk                      /*!<DAC channel1 data output */
2048 
2049 /********************  Bit definition for DAC_SR register  ********************/
2050 #define DAC_SR_DMAUDR1_Pos          (13U)
2051 #define DAC_SR_DMAUDR1_Msk          (0x1UL << DAC_SR_DMAUDR1_Pos)              /*!< 0x00002000 */
2052 #define DAC_SR_DMAUDR1              DAC_SR_DMAUDR1_Msk                         /*!<DAC channel1 DMA underrun flag */
2053 #define DAC_SR_CAL_FLAG1_Pos        (14U)
2054 #define DAC_SR_CAL_FLAG1_Msk        (0x1UL << DAC_SR_CAL_FLAG1_Pos)            /*!< 0x00004000 */
2055 #define DAC_SR_CAL_FLAG1            DAC_SR_CAL_FLAG1_Msk                       /*!<DAC channel1 calibration offset status */
2056 #define DAC_SR_BWST1_Pos            (15U)
2057 #define DAC_SR_BWST1_Msk            (0x1UL << DAC_SR_BWST1_Pos)                /*!< 0x00008000 */
2058 #define DAC_SR_BWST1                DAC_SR_BWST1_Msk                           /*!<DAC channel1 busy writing sample time flag */
2059 
2060 /*******************  Bit definition for DAC_CCR register  ********************/
2061 #define DAC_CCR_OTRIM1_Pos          (0U)
2062 #define DAC_CCR_OTRIM1_Msk          (0x1FUL << DAC_CCR_OTRIM1_Pos)             /*!< 0x0000001F */
2063 #define DAC_CCR_OTRIM1              DAC_CCR_OTRIM1_Msk                         /*!<DAC channel1 offset trimming value */
2064 
2065 /*******************  Bit definition for DAC_MCR register  *******************/
2066 #define DAC_MCR_MODE1_Pos           (0U)
2067 #define DAC_MCR_MODE1_Msk           (0x7UL << DAC_MCR_MODE1_Pos)               /*!< 0x00000007 */
2068 #define DAC_MCR_MODE1               DAC_MCR_MODE1_Msk                          /*!<MODE1[2:0] (DAC channel1 mode) */
2069 #define DAC_MCR_MODE1_0             (0x1UL << DAC_MCR_MODE1_Pos)               /*!< 0x00000001 */
2070 #define DAC_MCR_MODE1_1             (0x2UL << DAC_MCR_MODE1_Pos)               /*!< 0x00000002 */
2071 #define DAC_MCR_MODE1_2             (0x4UL << DAC_MCR_MODE1_Pos)               /*!< 0x00000004 */
2072 
2073 /******************  Bit definition for DAC_SHSR1 register  ******************/
2074 #define DAC_SHSR1_TSAMPLE1_Pos      (0U)
2075 #define DAC_SHSR1_TSAMPLE1_Msk      (0x3FFUL << DAC_SHSR1_TSAMPLE1_Pos)        /*!< 0x000003FF */
2076 #define DAC_SHSR1_TSAMPLE1          DAC_SHSR1_TSAMPLE1_Msk                     /*!<DAC channel1 sample time */
2077 
2078 /******************  Bit definition for DAC_SHHR register  ******************/
2079 #define DAC_SHHR_THOLD1_Pos         (0U)
2080 #define DAC_SHHR_THOLD1_Msk         (0x3FFUL << DAC_SHHR_THOLD1_Pos)           /*!< 0x000003FF */
2081 #define DAC_SHHR_THOLD1             DAC_SHHR_THOLD1_Msk                        /*!<DAC channel1 hold time */
2082 
2083 /******************  Bit definition for DAC_SHRR register  ******************/
2084 #define DAC_SHRR_TREFRESH1_Pos      (0U)
2085 #define DAC_SHRR_TREFRESH1_Msk      (0xFFUL << DAC_SHRR_TREFRESH1_Pos)         /*!< 0x000000FF */
2086 #define DAC_SHRR_TREFRESH1          DAC_SHRR_TREFRESH1_Msk                     /*!<DAC channel1 refresh time */
2087 
2088 /******************************************************************************/
2089 /*                                                                            */
2090 /*                         Low Power Timer (LPTTIM)                           */
2091 /*                                                                            */
2092 /******************************************************************************/
2093 /******************  Bit definition for LPTIM_ISR register  *******************/
2094 #define LPTIM_ISR_CMPM_Pos          (0U)
2095 #define LPTIM_ISR_CMPM_Msk          (0x1UL << LPTIM_ISR_CMPM_Pos)              /*!< 0x00000001 */
2096 #define LPTIM_ISR_CMPM              LPTIM_ISR_CMPM_Msk                         /*!< Compare match */
2097 #define LPTIM_ISR_ARRM_Pos          (1U)
2098 #define LPTIM_ISR_ARRM_Msk          (0x1UL << LPTIM_ISR_ARRM_Pos)              /*!< 0x00000002 */
2099 #define LPTIM_ISR_ARRM              LPTIM_ISR_ARRM_Msk                         /*!< Autoreload match */
2100 #define LPTIM_ISR_EXTTRIG_Pos       (2U)
2101 #define LPTIM_ISR_EXTTRIG_Msk       (0x1UL << LPTIM_ISR_EXTTRIG_Pos)           /*!< 0x00000004 */
2102 #define LPTIM_ISR_EXTTRIG           LPTIM_ISR_EXTTRIG_Msk                      /*!< External trigger edge event */
2103 #define LPTIM_ISR_CMPOK_Pos         (3U)
2104 #define LPTIM_ISR_CMPOK_Msk         (0x1UL << LPTIM_ISR_CMPOK_Pos)             /*!< 0x00000008 */
2105 #define LPTIM_ISR_CMPOK             LPTIM_ISR_CMPOK_Msk                        /*!< Compare register update OK */
2106 #define LPTIM_ISR_ARROK_Pos         (4U)
2107 #define LPTIM_ISR_ARROK_Msk         (0x1UL << LPTIM_ISR_ARROK_Pos)             /*!< 0x00000010 */
2108 #define LPTIM_ISR_ARROK             LPTIM_ISR_ARROK_Msk                        /*!< Autoreload register update OK */
2109 #define LPTIM_ISR_UP_Pos            (5U)
2110 #define LPTIM_ISR_UP_Msk            (0x1UL << LPTIM_ISR_UP_Pos)                /*!< 0x00000020 */
2111 #define LPTIM_ISR_UP                LPTIM_ISR_UP_Msk                           /*!< Counter direction change down to up */
2112 #define LPTIM_ISR_DOWN_Pos          (6U)
2113 #define LPTIM_ISR_DOWN_Msk          (0x1UL << LPTIM_ISR_DOWN_Pos)              /*!< 0x00000040 */
2114 #define LPTIM_ISR_DOWN              LPTIM_ISR_DOWN_Msk                         /*!< Counter direction change up to down */
2115 #define LPTIM_ISR_UE_Pos            (7U)
2116 #define LPTIM_ISR_UE_Msk            (0x1UL << LPTIM_ISR_UE_Pos)                /*!< 0x00000080 */
2117 #define LPTIM_ISR_UE                LPTIM_ISR_UE_Msk                           /*!< Update event occurrence */
2118 #define LPTIM_ISR_REPOK_Pos         (8U)
2119 #define LPTIM_ISR_REPOK_Msk         (0x1UL << LPTIM_ISR_REPOK_Pos)              /*!< 0x00000100 */
2120 #define LPTIM_ISR_REPOK             LPTIM_ISR_REPOK_Msk                         /*!< Repetition register update OK */
2121 
2122 /******************  Bit definition for LPTIM_ICR register  *******************/
2123 #define LPTIM_ICR_CMPMCF_Pos        (0U)
2124 #define LPTIM_ICR_CMPMCF_Msk        (0x1UL << LPTIM_ICR_CMPMCF_Pos)            /*!< 0x00000001 */
2125 #define LPTIM_ICR_CMPMCF            LPTIM_ICR_CMPMCF_Msk                       /*!< Compare match Clear Flag */
2126 #define LPTIM_ICR_ARRMCF_Pos        (1U)
2127 #define LPTIM_ICR_ARRMCF_Msk        (0x1UL << LPTIM_ICR_ARRMCF_Pos)            /*!< 0x00000002 */
2128 #define LPTIM_ICR_ARRMCF            LPTIM_ICR_ARRMCF_Msk                       /*!< Autoreload match Clear Flag */
2129 #define LPTIM_ICR_EXTTRIGCF_Pos     (2U)
2130 #define LPTIM_ICR_EXTTRIGCF_Msk     (0x1UL << LPTIM_ICR_EXTTRIGCF_Pos)         /*!< 0x00000004 */
2131 #define LPTIM_ICR_EXTTRIGCF         LPTIM_ICR_EXTTRIGCF_Msk                    /*!< External trigger edge event Clear Flag */
2132 #define LPTIM_ICR_CMPOKCF_Pos       (3U)
2133 #define LPTIM_ICR_CMPOKCF_Msk       (0x1UL << LPTIM_ICR_CMPOKCF_Pos)           /*!< 0x00000008 */
2134 #define LPTIM_ICR_CMPOKCF           LPTIM_ICR_CMPOKCF_Msk                      /*!< Compare register update OK Clear Flag */
2135 #define LPTIM_ICR_ARROKCF_Pos       (4U)
2136 #define LPTIM_ICR_ARROKCF_Msk       (0x1UL << LPTIM_ICR_ARROKCF_Pos)           /*!< 0x00000010 */
2137 #define LPTIM_ICR_ARROKCF           LPTIM_ICR_ARROKCF_Msk                      /*!< Autoreload register update OK Clear Flag */
2138 #define LPTIM_ICR_UPCF_Pos          (5U)
2139 #define LPTIM_ICR_UPCF_Msk          (0x1UL << LPTIM_ICR_UPCF_Pos)              /*!< 0x00000020 */
2140 #define LPTIM_ICR_UPCF              LPTIM_ICR_UPCF_Msk                         /*!< Counter direction change down to up Clear Flag */
2141 #define LPTIM_ICR_DOWNCF_Pos        (6U)
2142 #define LPTIM_ICR_DOWNCF_Msk        (0x1UL << LPTIM_ICR_DOWNCF_Pos)            /*!< 0x00000040 */
2143 #define LPTIM_ICR_DOWNCF            LPTIM_ICR_DOWNCF_Msk                       /*!< Counter direction change up to down Clear Flag */
2144 #define LPTIM_ICR_UECF_Pos          (7U)
2145 #define LPTIM_ICR_UECF_Msk          (0x1UL << LPTIM_ICR_UECF_Pos)              /*!< 0x00000080 */
2146 #define LPTIM_ICR_UECF              LPTIM_ICR_UECF_Msk                         /*!< Update event Clear Flag */
2147 #define LPTIM_ICR_REPOKCF_Pos       (8U)
2148 #define LPTIM_ICR_REPOKCF_Msk       (0x1UL << LPTIM_ICR_REPOKCF_Pos)           /*!< 0x00000100 */
2149 #define LPTIM_ICR_REPOKCF           LPTIM_ICR_REPOKCF_Msk                      /*!< Repetition register update OK Clear Flag */
2150 
2151 /******************  Bit definition for LPTIM_IER register ********************/
2152 #define LPTIM_IER_CMPMIE_Pos        (0U)
2153 #define LPTIM_IER_CMPMIE_Msk        (0x1UL << LPTIM_IER_CMPMIE_Pos)            /*!< 0x00000001 */
2154 #define LPTIM_IER_CMPMIE            LPTIM_IER_CMPMIE_Msk                       /*!< Compare match Interrupt Enable */
2155 #define LPTIM_IER_ARRMIE_Pos        (1U)
2156 #define LPTIM_IER_ARRMIE_Msk        (0x1UL << LPTIM_IER_ARRMIE_Pos)            /*!< 0x00000002 */
2157 #define LPTIM_IER_ARRMIE            LPTIM_IER_ARRMIE_Msk                       /*!< Autoreload match Interrupt Enable */
2158 #define LPTIM_IER_EXTTRIGIE_Pos     (2U)
2159 #define LPTIM_IER_EXTTRIGIE_Msk     (0x1UL << LPTIM_IER_EXTTRIGIE_Pos)         /*!< 0x00000004 */
2160 #define LPTIM_IER_EXTTRIGIE         LPTIM_IER_EXTTRIGIE_Msk                    /*!< External trigger edge event Interrupt Enable */
2161 #define LPTIM_IER_CMPOKIE_Pos       (3U)
2162 #define LPTIM_IER_CMPOKIE_Msk       (0x1UL << LPTIM_IER_CMPOKIE_Pos)           /*!< 0x00000008 */
2163 #define LPTIM_IER_CMPOKIE           LPTIM_IER_CMPOKIE_Msk                      /*!< Compare register update OK Interrupt Enable */
2164 #define LPTIM_IER_ARROKIE_Pos       (4U)
2165 #define LPTIM_IER_ARROKIE_Msk       (0x1UL << LPTIM_IER_ARROKIE_Pos)           /*!< 0x00000010 */
2166 #define LPTIM_IER_ARROKIE           LPTIM_IER_ARROKIE_Msk                      /*!< Autoreload register update OK Interrupt Enable */
2167 #define LPTIM_IER_UPIE_Pos          (5U)
2168 #define LPTIM_IER_UPIE_Msk          (0x1UL << LPTIM_IER_UPIE_Pos)              /*!< 0x00000020 */
2169 #define LPTIM_IER_UPIE              LPTIM_IER_UPIE_Msk                         /*!< Counter direction change down to up Interrupt Enable */
2170 #define LPTIM_IER_DOWNIE_Pos        (6U)
2171 #define LPTIM_IER_DOWNIE_Msk        (0x1UL << LPTIM_IER_DOWNIE_Pos)            /*!< 0x00000040 */
2172 #define LPTIM_IER_DOWNIE            LPTIM_IER_DOWNIE_Msk                       /*!< Counter direction change up to down Interrupt Enable */
2173 #define LPTIM_IER_UEIE_Pos          (7U)
2174 #define LPTIM_IER_UEIE_Msk          (0x1UL << LPTIM_IER_UEIE_Pos)              /*!< 0x00000080 */
2175 #define LPTIM_IER_UEIE              LPTIM_IER_UEIE_Msk                         /*!< Update event Interrupt Enable */
2176 #define LPTIM_IER_REPOKIE_Pos       (8U)
2177 #define LPTIM_IER_REPOKIE_Msk       (0x1UL << LPTIM_IER_REPOKIE_Pos)           /*!< 0x00000100 */
2178 #define LPTIM_IER_REPOKIE           LPTIM_IER_REPOKIE_Msk                      /*!< Repetition register update OK Interrupt Enable */
2179 
2180 /******************  Bit definition for LPTIM_CFGR register *******************/
2181 #define LPTIM_CFGR_CKSEL_Pos        (0U)
2182 #define LPTIM_CFGR_CKSEL_Msk        (0x1UL << LPTIM_CFGR_CKSEL_Pos)            /*!< 0x00000001 */
2183 #define LPTIM_CFGR_CKSEL            LPTIM_CFGR_CKSEL_Msk                       /*!< Clock selector */
2184 
2185 #define LPTIM_CFGR_CKPOL_Pos        (1U)
2186 #define LPTIM_CFGR_CKPOL_Msk        (0x3UL << LPTIM_CFGR_CKPOL_Pos)            /*!< 0x00000006 */
2187 #define LPTIM_CFGR_CKPOL            LPTIM_CFGR_CKPOL_Msk                       /*!< CKPOL[1:0] bits (Clock polarity) */
2188 #define LPTIM_CFGR_CKPOL_0          (0x1UL << LPTIM_CFGR_CKPOL_Pos)            /*!< 0x00000002 */
2189 #define LPTIM_CFGR_CKPOL_1          (0x2UL << LPTIM_CFGR_CKPOL_Pos)            /*!< 0x00000004 */
2190 
2191 #define LPTIM_CFGR_CKFLT_Pos        (3U)
2192 #define LPTIM_CFGR_CKFLT_Msk        (0x3UL << LPTIM_CFGR_CKFLT_Pos)            /*!< 0x00000018 */
2193 #define LPTIM_CFGR_CKFLT            LPTIM_CFGR_CKFLT_Msk                       /*!< CKFLT[1:0] bits (Configurable digital filter for external clock) */
2194 #define LPTIM_CFGR_CKFLT_0          (0x1UL << LPTIM_CFGR_CKFLT_Pos)            /*!< 0x00000008 */
2195 #define LPTIM_CFGR_CKFLT_1          (0x2UL << LPTIM_CFGR_CKFLT_Pos)            /*!< 0x00000010 */
2196 
2197 #define LPTIM_CFGR_TRGFLT_Pos       (6U)
2198 #define LPTIM_CFGR_TRGFLT_Msk       (0x3UL << LPTIM_CFGR_TRGFLT_Pos)           /*!< 0x000000C0 */
2199 #define LPTIM_CFGR_TRGFLT           LPTIM_CFGR_TRGFLT_Msk                      /*!< TRGFLT[1:0] bits (Configurable digital filter for trigger) */
2200 #define LPTIM_CFGR_TRGFLT_0         (0x1UL << LPTIM_CFGR_TRGFLT_Pos)           /*!< 0x00000040 */
2201 #define LPTIM_CFGR_TRGFLT_1         (0x2UL << LPTIM_CFGR_TRGFLT_Pos)           /*!< 0x00000080 */
2202 
2203 #define LPTIM_CFGR_PRESC_Pos        (9U)
2204 #define LPTIM_CFGR_PRESC_Msk        (0x7UL << LPTIM_CFGR_PRESC_Pos)            /*!< 0x00000E00 */
2205 #define LPTIM_CFGR_PRESC            LPTIM_CFGR_PRESC_Msk                       /*!< PRESC[2:0] bits (Clock prescaler) */
2206 #define LPTIM_CFGR_PRESC_0          (0x1UL << LPTIM_CFGR_PRESC_Pos)            /*!< 0x00000200 */
2207 #define LPTIM_CFGR_PRESC_1          (0x2UL << LPTIM_CFGR_PRESC_Pos)            /*!< 0x00000400 */
2208 #define LPTIM_CFGR_PRESC_2          (0x4UL << LPTIM_CFGR_PRESC_Pos)            /*!< 0x00000800 */
2209 
2210 #define LPTIM_CFGR_TRIGSEL_Pos      (13U)
2211 #define LPTIM_CFGR_TRIGSEL_Msk      (0x7UL << LPTIM_CFGR_TRIGSEL_Pos)          /*!< 0x0000E000 */
2212 #define LPTIM_CFGR_TRIGSEL          LPTIM_CFGR_TRIGSEL_Msk                     /*!< TRIGSEL[2:0]] bits (Trigger selector) */
2213 #define LPTIM_CFGR_TRIGSEL_0        (0x1UL << LPTIM_CFGR_TRIGSEL_Pos)          /*!< 0x00002000 */
2214 #define LPTIM_CFGR_TRIGSEL_1        (0x2UL << LPTIM_CFGR_TRIGSEL_Pos)          /*!< 0x00004000 */
2215 #define LPTIM_CFGR_TRIGSEL_2        (0x4UL << LPTIM_CFGR_TRIGSEL_Pos)          /*!< 0x00008000 */
2216 
2217 #define LPTIM_CFGR_TRIGEN_Pos       (17U)
2218 #define LPTIM_CFGR_TRIGEN_Msk       (0x3UL << LPTIM_CFGR_TRIGEN_Pos)           /*!< 0x00060000 */
2219 #define LPTIM_CFGR_TRIGEN           LPTIM_CFGR_TRIGEN_Msk                      /*!< TRIGEN[1:0] bits (Trigger enable and polarity) */
2220 #define LPTIM_CFGR_TRIGEN_0         (0x1UL << LPTIM_CFGR_TRIGEN_Pos)           /*!< 0x00020000 */
2221 #define LPTIM_CFGR_TRIGEN_1         (0x2UL << LPTIM_CFGR_TRIGEN_Pos)           /*!< 0x00040000 */
2222 
2223 #define LPTIM_CFGR_TIMOUT_Pos       (19U)
2224 #define LPTIM_CFGR_TIMOUT_Msk       (0x1UL << LPTIM_CFGR_TIMOUT_Pos)           /*!< 0x00080000 */
2225 #define LPTIM_CFGR_TIMOUT           LPTIM_CFGR_TIMOUT_Msk                      /*!< Timout enable */
2226 #define LPTIM_CFGR_WAVE_Pos         (20U)
2227 #define LPTIM_CFGR_WAVE_Msk         (0x1UL << LPTIM_CFGR_WAVE_Pos)             /*!< 0x00100000 */
2228 #define LPTIM_CFGR_WAVE             LPTIM_CFGR_WAVE_Msk                        /*!< Waveform shape */
2229 #define LPTIM_CFGR_WAVPOL_Pos       (21U)
2230 #define LPTIM_CFGR_WAVPOL_Msk       (0x1UL << LPTIM_CFGR_WAVPOL_Pos)           /*!< 0x00200000 */
2231 #define LPTIM_CFGR_WAVPOL           LPTIM_CFGR_WAVPOL_Msk                      /*!< Waveform shape polarity */
2232 #define LPTIM_CFGR_PRELOAD_Pos      (22U)
2233 #define LPTIM_CFGR_PRELOAD_Msk      (0x1UL << LPTIM_CFGR_PRELOAD_Pos)          /*!< 0x00400000 */
2234 #define LPTIM_CFGR_PRELOAD          LPTIM_CFGR_PRELOAD_Msk                     /*!< Reg update mode */
2235 #define LPTIM_CFGR_COUNTMODE_Pos    (23U)
2236 #define LPTIM_CFGR_COUNTMODE_Msk    (0x1UL << LPTIM_CFGR_COUNTMODE_Pos)        /*!< 0x00800000 */
2237 #define LPTIM_CFGR_COUNTMODE        LPTIM_CFGR_COUNTMODE_Msk                   /*!< Counter mode enable */
2238 #define LPTIM_CFGR_ENC_Pos          (24U)
2239 #define LPTIM_CFGR_ENC_Msk          (0x1UL << LPTIM_CFGR_ENC_Pos)              /*!< 0x01000000 */
2240 #define LPTIM_CFGR_ENC              LPTIM_CFGR_ENC_Msk                         /*!< Encoder mode enable */
2241 
2242 /******************  Bit definition for LPTIM_CR register  ********************/
2243 #define LPTIM_CR_ENABLE_Pos         (0U)
2244 #define LPTIM_CR_ENABLE_Msk         (0x1UL << LPTIM_CR_ENABLE_Pos)             /*!< 0x00000001 */
2245 #define LPTIM_CR_ENABLE             LPTIM_CR_ENABLE_Msk                        /*!< LPTIMer enable */
2246 #define LPTIM_CR_SNGSTRT_Pos        (1U)
2247 #define LPTIM_CR_SNGSTRT_Msk        (0x1UL << LPTIM_CR_SNGSTRT_Pos)            /*!< 0x00000002 */
2248 #define LPTIM_CR_SNGSTRT            LPTIM_CR_SNGSTRT_Msk                       /*!< Timer start in single mode */
2249 #define LPTIM_CR_CNTSTRT_Pos        (2U)
2250 #define LPTIM_CR_CNTSTRT_Msk        (0x1UL << LPTIM_CR_CNTSTRT_Pos)            /*!< 0x00000004 */
2251 #define LPTIM_CR_CNTSTRT            LPTIM_CR_CNTSTRT_Msk                       /*!< Timer start in continuous mode */
2252 #define LPTIM_CR_COUNTRST_Pos       (3U)
2253 #define LPTIM_CR_COUNTRST_Msk       (0x1UL << LPTIM_CR_COUNTRST_Pos)           /*!< 0x00000008 */
2254 #define LPTIM_CR_COUNTRST           LPTIM_CR_COUNTRST_Msk                      /*!< Counter reset */
2255 #define LPTIM_CR_RSTARE_Pos         (4U)
2256 #define LPTIM_CR_RSTARE_Msk         (0x1UL << LPTIM_CR_RSTARE_Pos)             /*!< 0x00000010 */
2257 #define LPTIM_CR_RSTARE             LPTIM_CR_RSTARE_Msk                        /*!< Reset after read enable */
2258 
2259 /******************  Bit definition for LPTIM_CMP register  *******************/
2260 #define LPTIM_CMP_CMP_Pos           (0U)
2261 #define LPTIM_CMP_CMP_Msk           (0xFFFFUL << LPTIM_CMP_CMP_Pos)            /*!< 0x0000FFFF */
2262 #define LPTIM_CMP_CMP               LPTIM_CMP_CMP_Msk                          /*!< Compare register */
2263 
2264 /******************  Bit definition for LPTIM_ARR register  *******************/
2265 #define LPTIM_ARR_ARR_Pos           (0U)
2266 #define LPTIM_ARR_ARR_Msk           (0xFFFFUL << LPTIM_ARR_ARR_Pos)            /*!< 0x0000FFFF */
2267 #define LPTIM_ARR_ARR               LPTIM_ARR_ARR_Msk                          /*!< Auto reload register */
2268 
2269 /******************  Bit definition for LPTIM_CNT register  *******************/
2270 #define LPTIM_CNT_CNT_Pos           (0U)
2271 #define LPTIM_CNT_CNT_Msk           (0xFFFFUL << LPTIM_CNT_CNT_Pos)            /*!< 0x0000FFFF */
2272 #define LPTIM_CNT_CNT               LPTIM_CNT_CNT_Msk                          /*!< Counter register */
2273 
2274 /******************  Bit definition for LPTIM_OR register  ********************/
2275 #define LPTIM_OR_OR_Pos             (0U)
2276 #define LPTIM_OR_OR_Msk             (0x3UL << LPTIM_OR_OR_Pos)                 /*!< 0x00000003 */
2277 #define LPTIM_OR_OR                 LPTIM_OR_OR_Msk                            /*!< OR[1:0] bits (Remap selection) */
2278 #define LPTIM_OR_OR_0               (0x1UL << LPTIM_OR_OR_Pos)                 /*!< 0x00000001 */
2279 #define LPTIM_OR_OR_1               (0x2UL << LPTIM_OR_OR_Pos)                 /*!< 0x00000002 */
2280 
2281 /******************  Bit definition for LPTIM_RCR register  *******************/
2282 #define LPTIM_RCR_REP_Pos           (0U)
2283 #define LPTIM_RCR_REP_Msk           (0xFFUL << LPTIM_RCR_REP_Pos)              /*!< 0x000000FF */
2284 #define LPTIM_RCR_REP               LPTIM_RCR_REP_Msk                          /*!<Repetition Counter Value */
2285 
2286 /******************************************************************************/
2287 /*                                                                            */
2288 /*      Universal Synchronous Asynchronous Receiver Transmitter (USART)       */
2289 /*                                                                            */
2290 /******************************************************************************/
2291 /******************  Bit definition for USART_CR1 register  *******************/
2292 #define USART_CR1_UE_Pos             (0U)
2293 #define USART_CR1_UE_Msk             (0x1UL << USART_CR1_UE_Pos)               /*!< 0x00000001 */
2294 #define USART_CR1_UE                 USART_CR1_UE_Msk                          /*!< USART Enable */
2295 #define USART_CR1_UESM_Pos           (1U)
2296 #define USART_CR1_UESM_Msk           (0x1UL << USART_CR1_UESM_Pos)             /*!< 0x00000002 */
2297 #define USART_CR1_UESM               USART_CR1_UESM_Msk                        /*!< USART Enable in STOP Mode */
2298 #define USART_CR1_RE_Pos             (2U)
2299 #define USART_CR1_RE_Msk             (0x1UL << USART_CR1_RE_Pos)               /*!< 0x00000004 */
2300 #define USART_CR1_RE                 USART_CR1_RE_Msk                          /*!< Receiver Enable */
2301 #define USART_CR1_TE_Pos             (3U)
2302 #define USART_CR1_TE_Msk             (0x1UL << USART_CR1_TE_Pos)               /*!< 0x00000008 */
2303 #define USART_CR1_TE                 USART_CR1_TE_Msk                          /*!< Transmitter Enable */
2304 #define USART_CR1_IDLEIE_Pos         (4U)
2305 #define USART_CR1_IDLEIE_Msk         (0x1UL << USART_CR1_IDLEIE_Pos)           /*!< 0x00000010 */
2306 #define USART_CR1_IDLEIE             USART_CR1_IDLEIE_Msk                      /*!< IDLE Interrupt Enable */
2307 #define USART_CR1_RXNEIE_RXFNEIE_Pos   (5U)
2308 #define USART_CR1_RXNEIE_RXFNEIE_Msk   (0x1UL << USART_CR1_RXNEIE_RXFNEIE_Pos) /*!< 0x00000020 */
2309 #define USART_CR1_RXNEIE_RXFNEIE       USART_CR1_RXNEIE_RXFNEIE_Msk            /*!< RXNE/RXFIFO not empty Interrupt Enable */
2310 #define USART_CR1_TCIE_Pos           (6U)
2311 #define USART_CR1_TCIE_Msk           (0x1UL << USART_CR1_TCIE_Pos)             /*!< 0x00000040 */
2312 #define USART_CR1_TCIE               USART_CR1_TCIE_Msk                        /*!< Transmission Complete Interrupt Enable */
2313 #define USART_CR1_TXEIE_TXFNFIE_Pos  (7U)
2314 #define USART_CR1_TXEIE_TXFNFIE_Msk   (0x1UL << USART_CR1_TXEIE_TXFNFIE_Pos)   /*!< 0x00000080 */
2315 #define USART_CR1_TXEIE_TXFNFIE       USART_CR1_TXEIE_TXFNFIE_Msk              /*!< TXE/TXFIFO not full Interrupt Enable */
2316 #define USART_CR1_PEIE_Pos           (8U)
2317 #define USART_CR1_PEIE_Msk           (0x1UL << USART_CR1_PEIE_Pos)             /*!< 0x00000100 */
2318 #define USART_CR1_PEIE               USART_CR1_PEIE_Msk                        /*!< PE Interrupt Enable */
2319 #define USART_CR1_PS_Pos             (9U)
2320 #define USART_CR1_PS_Msk             (0x1UL << USART_CR1_PS_Pos)               /*!< 0x00000200 */
2321 #define USART_CR1_PS                 USART_CR1_PS_Msk                          /*!< Parity Selection */
2322 #define USART_CR1_PCE_Pos            (10U)
2323 #define USART_CR1_PCE_Msk            (0x1UL << USART_CR1_PCE_Pos)              /*!< 0x00000400 */
2324 #define USART_CR1_PCE                USART_CR1_PCE_Msk                         /*!< Parity Control Enable */
2325 #define USART_CR1_WAKE_Pos           (11U)
2326 #define USART_CR1_WAKE_Msk           (0x1UL << USART_CR1_WAKE_Pos)             /*!< 0x00000800 */
2327 #define USART_CR1_WAKE               USART_CR1_WAKE_Msk                        /*!< Receiver Wakeup method */
2328 #define USART_CR1_M_Pos              (12U)
2329 #define USART_CR1_M_Msk              (0x10001UL << USART_CR1_M_Pos)            /*!< 0x10001000 */
2330 #define USART_CR1_M                  USART_CR1_M_Msk                           /*!< Word length */
2331 #define USART_CR1_M0_Pos             (12U)
2332 #define USART_CR1_M0_Msk             (0x1UL << USART_CR1_M0_Pos)               /*!< 0x00001000 */
2333 #define USART_CR1_M0                 USART_CR1_M0_Msk                          /*!< Word length - Bit 0 */
2334 #define USART_CR1_MME_Pos            (13U)
2335 #define USART_CR1_MME_Msk            (0x1UL << USART_CR1_MME_Pos)              /*!< 0x00002000 */
2336 #define USART_CR1_MME                USART_CR1_MME_Msk                         /*!< Mute Mode Enable */
2337 #define USART_CR1_CMIE_Pos           (14U)
2338 #define USART_CR1_CMIE_Msk           (0x1UL << USART_CR1_CMIE_Pos)             /*!< 0x00004000 */
2339 #define USART_CR1_CMIE               USART_CR1_CMIE_Msk                        /*!< Character match interrupt enable */
2340 #define USART_CR1_OVER8_Pos          (15U)
2341 #define USART_CR1_OVER8_Msk          (0x1UL << USART_CR1_OVER8_Pos)            /*!< 0x00008000 */
2342 #define USART_CR1_OVER8              USART_CR1_OVER8_Msk                       /*!< Oversampling by 8-bit or 16-bit mode */
2343 #define USART_CR1_DEDT_Pos           (16U)
2344 #define USART_CR1_DEDT_Msk           (0x1FUL << USART_CR1_DEDT_Pos)            /*!< 0x001F0000 */
2345 #define USART_CR1_DEDT               USART_CR1_DEDT_Msk                        /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
2346 #define USART_CR1_DEDT_0             (0x01UL << USART_CR1_DEDT_Pos)            /*!< 0x00010000 */
2347 #define USART_CR1_DEDT_1             (0x02UL << USART_CR1_DEDT_Pos)            /*!< 0x00020000 */
2348 #define USART_CR1_DEDT_2             (0x04UL << USART_CR1_DEDT_Pos)            /*!< 0x00040000 */
2349 #define USART_CR1_DEDT_3             (0x08UL << USART_CR1_DEDT_Pos)            /*!< 0x00080000 */
2350 #define USART_CR1_DEDT_4             (0x10UL << USART_CR1_DEDT_Pos)            /*!< 0x00100000 */
2351 #define USART_CR1_DEAT_Pos           (21U)
2352 #define USART_CR1_DEAT_Msk           (0x1FUL << USART_CR1_DEAT_Pos)            /*!< 0x03E00000 */
2353 #define USART_CR1_DEAT               USART_CR1_DEAT_Msk                        /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
2354 #define USART_CR1_DEAT_0             (0x01UL << USART_CR1_DEAT_Pos)            /*!< 0x00200000 */
2355 #define USART_CR1_DEAT_1             (0x02UL << USART_CR1_DEAT_Pos)            /*!< 0x00400000 */
2356 #define USART_CR1_DEAT_2             (0x04UL << USART_CR1_DEAT_Pos)            /*!< 0x00800000 */
2357 #define USART_CR1_DEAT_3             (0x08UL << USART_CR1_DEAT_Pos)            /*!< 0x01000000 */
2358 #define USART_CR1_DEAT_4             (0x10UL << USART_CR1_DEAT_Pos)            /*!< 0x02000000 */
2359 #define USART_CR1_RTOIE_Pos          (26U)
2360 #define USART_CR1_RTOIE_Msk          (0x1UL << USART_CR1_RTOIE_Pos)            /*!< 0x04000000 */
2361 #define USART_CR1_RTOIE              USART_CR1_RTOIE_Msk                       /*!< Receive Time Out interrupt enable */
2362 #define USART_CR1_EOBIE_Pos          (27U)
2363 #define USART_CR1_EOBIE_Msk          (0x1UL << USART_CR1_EOBIE_Pos)            /*!< 0x08000000 */
2364 #define USART_CR1_EOBIE              USART_CR1_EOBIE_Msk                       /*!< End of Block interrupt enable */
2365 #define USART_CR1_M1_Pos             (28U)
2366 #define USART_CR1_M1_Msk             (0x1UL << USART_CR1_M1_Pos)               /*!< 0x10000000 */
2367 #define USART_CR1_M1                 USART_CR1_M1_Msk                          /*!< Word length - Bit 1 */
2368 #define USART_CR1_FIFOEN_Pos         (29U)
2369 #define USART_CR1_FIFOEN_Msk         (0x1UL << USART_CR1_FIFOEN_Pos)           /*!< 0x20000000 */
2370 #define USART_CR1_FIFOEN             USART_CR1_FIFOEN_Msk                      /*!< FIFO mode enable */
2371 #define USART_CR1_TXFEIE_Pos         (30U)
2372 #define USART_CR1_TXFEIE_Msk         (0x1UL << USART_CR1_TXFEIE_Pos)           /*!< 0x40000000 */
2373 #define USART_CR1_TXFEIE             USART_CR1_TXFEIE_Msk                      /*!< TXFIFO empty interrupt enable */
2374 #define USART_CR1_RXFFIE_Pos         (31U)
2375 #define USART_CR1_RXFFIE_Msk         (0x1UL << USART_CR1_RXFFIE_Pos)           /*!< 0x80000000 */
2376 #define USART_CR1_RXFFIE             USART_CR1_RXFFIE_Msk                      /*!< RXFIFO Full interrupt enable */
2377 
2378 /******************  Bit definition for USART_CR2 register  *******************/
2379 #define USART_CR2_SLVEN_Pos          (0U)
2380 #define USART_CR2_SLVEN_Msk          (0x1UL << USART_CR2_SLVEN_Pos)            /*!< 0x00000001 */
2381 #define USART_CR2_SLVEN              USART_CR2_SLVEN_Msk                       /*!< Synchronous Slave mode enable */
2382 #define USART_CR2_DIS_NSS_Pos        (3U)
2383 #define USART_CR2_DIS_NSS_Msk        (0x1UL << USART_CR2_DIS_NSS_Pos)          /*!< 0x00000008 */
2384 #define USART_CR2_DIS_NSS            USART_CR2_DIS_NSS_Msk                     /*!< NSS input pin disable for SPI slave selection */
2385 #define USART_CR2_ADDM7_Pos          (4U)
2386 #define USART_CR2_ADDM7_Msk          (0x1UL << USART_CR2_ADDM7_Pos)            /*!< 0x00000010 */
2387 #define USART_CR2_ADDM7              USART_CR2_ADDM7_Msk                       /*!< 7-bit or 4-bit Address Detection */
2388 #define USART_CR2_LBDL_Pos           (5U)
2389 #define USART_CR2_LBDL_Msk           (0x1UL << USART_CR2_LBDL_Pos)             /*!< 0x00000020 */
2390 #define USART_CR2_LBDL               USART_CR2_LBDL_Msk                        /*!< LIN Break Detection Length */
2391 #define USART_CR2_LBDIE_Pos          (6U)
2392 #define USART_CR2_LBDIE_Msk          (0x1UL << USART_CR2_LBDIE_Pos)            /*!< 0x00000040 */
2393 #define USART_CR2_LBDIE              USART_CR2_LBDIE_Msk                       /*!< LIN Break Detection Interrupt Enable */
2394 #define USART_CR2_LBCL_Pos           (8U)
2395 #define USART_CR2_LBCL_Msk           (0x1UL << USART_CR2_LBCL_Pos)             /*!< 0x00000100 */
2396 #define USART_CR2_LBCL               USART_CR2_LBCL_Msk                        /*!< Last Bit Clock pulse */
2397 #define USART_CR2_CPHA_Pos           (9U)
2398 #define USART_CR2_CPHA_Msk           (0x1UL << USART_CR2_CPHA_Pos)             /*!< 0x00000200 */
2399 #define USART_CR2_CPHA               USART_CR2_CPHA_Msk                        /*!< Clock Phase */
2400 #define USART_CR2_CPOL_Pos           (10U)
2401 #define USART_CR2_CPOL_Msk           (0x1UL << USART_CR2_CPOL_Pos)             /*!< 0x00000400 */
2402 #define USART_CR2_CPOL               USART_CR2_CPOL_Msk                        /*!< Clock Polarity */
2403 #define USART_CR2_CLKEN_Pos          (11U)
2404 #define USART_CR2_CLKEN_Msk          (0x1UL << USART_CR2_CLKEN_Pos)            /*!< 0x00000800 */
2405 #define USART_CR2_CLKEN              USART_CR2_CLKEN_Msk                       /*!< Clock Enable */
2406 #define USART_CR2_STOP_Pos           (12U)
2407 #define USART_CR2_STOP_Msk           (0x3UL << USART_CR2_STOP_Pos)             /*!< 0x00003000 */
2408 #define USART_CR2_STOP               USART_CR2_STOP_Msk                        /*!< STOP[1:0] bits (STOP bits) */
2409 #define USART_CR2_STOP_0             (0x1UL << USART_CR2_STOP_Pos)             /*!< 0x00001000 */
2410 #define USART_CR2_STOP_1             (0x2UL << USART_CR2_STOP_Pos)             /*!< 0x00002000 */
2411 #define USART_CR2_LINEN_Pos          (14U)
2412 #define USART_CR2_LINEN_Msk          (0x1UL << USART_CR2_LINEN_Pos)            /*!< 0x00004000 */
2413 #define USART_CR2_LINEN              USART_CR2_LINEN_Msk                       /*!< LIN mode enable */
2414 #define USART_CR2_SWAP_Pos           (15U)
2415 #define USART_CR2_SWAP_Msk           (0x1UL << USART_CR2_SWAP_Pos)             /*!< 0x00008000 */
2416 #define USART_CR2_SWAP               USART_CR2_SWAP_Msk                        /*!< SWAP TX/RX pins */
2417 #define USART_CR2_RXINV_Pos          (16U)
2418 #define USART_CR2_RXINV_Msk          (0x1UL << USART_CR2_RXINV_Pos)            /*!< 0x00010000 */
2419 #define USART_CR2_RXINV              USART_CR2_RXINV_Msk                       /*!< RX pin active level inversion */
2420 #define USART_CR2_TXINV_Pos          (17U)
2421 #define USART_CR2_TXINV_Msk          (0x1UL << USART_CR2_TXINV_Pos)            /*!< 0x00020000 */
2422 #define USART_CR2_TXINV              USART_CR2_TXINV_Msk                       /*!< TX pin active level inversion */
2423 #define USART_CR2_DATAINV_Pos        (18U)
2424 #define USART_CR2_DATAINV_Msk        (0x1UL << USART_CR2_DATAINV_Pos)          /*!< 0x00040000 */
2425 #define USART_CR2_DATAINV            USART_CR2_DATAINV_Msk                     /*!< Binary data inversion */
2426 #define USART_CR2_MSBFIRST_Pos       (19U)
2427 #define USART_CR2_MSBFIRST_Msk       (0x1UL << USART_CR2_MSBFIRST_Pos)         /*!< 0x00080000 */
2428 #define USART_CR2_MSBFIRST           USART_CR2_MSBFIRST_Msk                    /*!< Most Significant Bit First */
2429 #define USART_CR2_ABREN_Pos          (20U)
2430 #define USART_CR2_ABREN_Msk          (0x1UL << USART_CR2_ABREN_Pos)            /*!< 0x00100000 */
2431 #define USART_CR2_ABREN              USART_CR2_ABREN_Msk                       /*!< Auto Baud-Rate Enable*/
2432 #define USART_CR2_ABRMODE_Pos        (21U)
2433 #define USART_CR2_ABRMODE_Msk        (0x3UL << USART_CR2_ABRMODE_Pos)          /*!< 0x00600000 */
2434 #define USART_CR2_ABRMODE            USART_CR2_ABRMODE_Msk                     /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
2435 #define USART_CR2_ABRMODE_0          (0x1UL << USART_CR2_ABRMODE_Pos)          /*!< 0x00200000 */
2436 #define USART_CR2_ABRMODE_1          (0x2UL << USART_CR2_ABRMODE_Pos)          /*!< 0x00400000 */
2437 #define USART_CR2_RTOEN_Pos          (23U)
2438 #define USART_CR2_RTOEN_Msk          (0x1UL << USART_CR2_RTOEN_Pos)            /*!< 0x00800000 */
2439 #define USART_CR2_RTOEN              USART_CR2_RTOEN_Msk                       /*!< Receiver Time-Out enable */
2440 #define USART_CR2_ADD_Pos            (24U)
2441 #define USART_CR2_ADD_Msk            (0xFFUL << USART_CR2_ADD_Pos)             /*!< 0xFF000000 */
2442 #define USART_CR2_ADD                USART_CR2_ADD_Msk                         /*!< Address of the USART node */
2443 
2444 /******************  Bit definition for USART_CR3 register  *******************/
2445 #define USART_CR3_EIE_Pos            (0U)
2446 #define USART_CR3_EIE_Msk            (0x1UL << USART_CR3_EIE_Pos)              /*!< 0x00000001 */
2447 #define USART_CR3_EIE                USART_CR3_EIE_Msk                         /*!< Error Interrupt Enable */
2448 #define USART_CR3_IREN_Pos           (1U)
2449 #define USART_CR3_IREN_Msk           (0x1UL << USART_CR3_IREN_Pos)             /*!< 0x00000002 */
2450 #define USART_CR3_IREN               USART_CR3_IREN_Msk                        /*!< IrDA mode Enable */
2451 #define USART_CR3_IRLP_Pos           (2U)
2452 #define USART_CR3_IRLP_Msk           (0x1UL << USART_CR3_IRLP_Pos)             /*!< 0x00000004 */
2453 #define USART_CR3_IRLP               USART_CR3_IRLP_Msk                        /*!< IrDA Low-Power */
2454 #define USART_CR3_HDSEL_Pos          (3U)
2455 #define USART_CR3_HDSEL_Msk          (0x1UL << USART_CR3_HDSEL_Pos)            /*!< 0x00000008 */
2456 #define USART_CR3_HDSEL              USART_CR3_HDSEL_Msk                       /*!< Half-Duplex Selection */
2457 #define USART_CR3_NACK_Pos           (4U)
2458 #define USART_CR3_NACK_Msk           (0x1UL << USART_CR3_NACK_Pos)             /*!< 0x00000010 */
2459 #define USART_CR3_NACK               USART_CR3_NACK_Msk                        /*!< SmartCard NACK enable */
2460 #define USART_CR3_SCEN_Pos           (5U)
2461 #define USART_CR3_SCEN_Msk           (0x1UL << USART_CR3_SCEN_Pos)             /*!< 0x00000020 */
2462 #define USART_CR3_SCEN               USART_CR3_SCEN_Msk                        /*!< SmartCard mode enable */
2463 #define USART_CR3_DMAR_Pos           (6U)
2464 #define USART_CR3_DMAR_Msk           (0x1UL << USART_CR3_DMAR_Pos)             /*!< 0x00000040 */
2465 #define USART_CR3_DMAR               USART_CR3_DMAR_Msk                        /*!< DMA Enable Receiver */
2466 #define USART_CR3_DMAT_Pos           (7U)
2467 #define USART_CR3_DMAT_Msk           (0x1UL << USART_CR3_DMAT_Pos)             /*!< 0x00000080 */
2468 #define USART_CR3_DMAT               USART_CR3_DMAT_Msk                        /*!< DMA Enable Transmitter */
2469 #define USART_CR3_RTSE_Pos           (8U)
2470 #define USART_CR3_RTSE_Msk           (0x1UL << USART_CR3_RTSE_Pos)             /*!< 0x00000100 */
2471 #define USART_CR3_RTSE               USART_CR3_RTSE_Msk                        /*!< RTS Enable */
2472 #define USART_CR3_CTSE_Pos           (9U)
2473 #define USART_CR3_CTSE_Msk           (0x1UL << USART_CR3_CTSE_Pos)             /*!< 0x00000200 */
2474 #define USART_CR3_CTSE               USART_CR3_CTSE_Msk                        /*!< CTS Enable */
2475 #define USART_CR3_CTSIE_Pos          (10U)
2476 #define USART_CR3_CTSIE_Msk          (0x1UL << USART_CR3_CTSIE_Pos)            /*!< 0x00000400 */
2477 #define USART_CR3_CTSIE              USART_CR3_CTSIE_Msk                       /*!< CTS Interrupt Enable */
2478 #define USART_CR3_ONEBIT_Pos         (11U)
2479 #define USART_CR3_ONEBIT_Msk         (0x1UL << USART_CR3_ONEBIT_Pos)           /*!< 0x00000800 */
2480 #define USART_CR3_ONEBIT             USART_CR3_ONEBIT_Msk                      /*!< One sample bit method enable */
2481 #define USART_CR3_OVRDIS_Pos         (12U)
2482 #define USART_CR3_OVRDIS_Msk         (0x1UL << USART_CR3_OVRDIS_Pos)           /*!< 0x00001000 */
2483 #define USART_CR3_OVRDIS             USART_CR3_OVRDIS_Msk                      /*!< Overrun Disable */
2484 #define USART_CR3_DDRE_Pos           (13U)
2485 #define USART_CR3_DDRE_Msk           (0x1UL << USART_CR3_DDRE_Pos)             /*!< 0x00002000 */
2486 #define USART_CR3_DDRE               USART_CR3_DDRE_Msk                        /*!< DMA Disable on Reception Error */
2487 #define USART_CR3_DEM_Pos            (14U)
2488 #define USART_CR3_DEM_Msk            (0x1UL << USART_CR3_DEM_Pos)              /*!< 0x00004000 */
2489 #define USART_CR3_DEM                USART_CR3_DEM_Msk                         /*!< Driver Enable Mode */
2490 #define USART_CR3_DEP_Pos            (15U)
2491 #define USART_CR3_DEP_Msk            (0x1UL << USART_CR3_DEP_Pos)              /*!< 0x00008000 */
2492 #define USART_CR3_DEP                USART_CR3_DEP_Msk                         /*!< Driver Enable Polarity Selection */
2493 #define USART_CR3_SCARCNT_Pos        (17U)
2494 #define USART_CR3_SCARCNT_Msk        (0x7UL << USART_CR3_SCARCNT_Pos)          /*!< 0x000E0000 */
2495 #define USART_CR3_SCARCNT            USART_CR3_SCARCNT_Msk                     /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
2496 #define USART_CR3_SCARCNT_0          (0x1UL << USART_CR3_SCARCNT_Pos)          /*!< 0x00020000 */
2497 #define USART_CR3_SCARCNT_1          (0x2UL << USART_CR3_SCARCNT_Pos)          /*!< 0x00040000 */
2498 #define USART_CR3_SCARCNT_2          (0x4UL << USART_CR3_SCARCNT_Pos)          /*!< 0x00080000 */
2499 #define USART_CR3_WUS_Pos            (20U)
2500 #define USART_CR3_WUS_Msk            (0x3UL << USART_CR3_WUS_Pos)              /*!< 0x00300000 */
2501 #define USART_CR3_WUS                USART_CR3_WUS_Msk                         /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
2502 #define USART_CR3_WUS_0              (0x1UL << USART_CR3_WUS_Pos)              /*!< 0x00100000 */
2503 #define USART_CR3_WUS_1              (0x2UL << USART_CR3_WUS_Pos)              /*!< 0x00200000 */
2504 #define USART_CR3_WUFIE_Pos          (22U)
2505 #define USART_CR3_WUFIE_Msk          (0x1UL << USART_CR3_WUFIE_Pos)            /*!< 0x00400000 */
2506 #define USART_CR3_WUFIE              USART_CR3_WUFIE_Msk                       /*!< Wake Up Interrupt Enable */
2507 #define USART_CR3_TXFTIE_Pos         (23U)
2508 #define USART_CR3_TXFTIE_Msk         (0x1UL << USART_CR3_TXFTIE_Pos)           /*!< 0x00800000 */
2509 #define USART_CR3_TXFTIE             USART_CR3_TXFTIE_Msk                      /*!< TXFIFO threshold interrupt enable */
2510 #define USART_CR3_TCBGTIE_Pos        (24U)
2511 #define USART_CR3_TCBGTIE_Msk        (0x1UL << USART_CR3_TCBGTIE_Pos)          /*!< 0x01000000 */
2512 #define USART_CR3_TCBGTIE            USART_CR3_TCBGTIE_Msk                     /*!< Transmission Complete Before Guard Time Interrupt Enable */
2513 #define USART_CR3_RXFTCFG_Pos        (25U)
2514 #define USART_CR3_RXFTCFG_Msk        (0x7UL << USART_CR3_RXFTCFG_Pos)          /*!< 0x0E000000 */
2515 #define USART_CR3_RXFTCFG            USART_CR3_RXFTCFG_Msk                     /*!< RXFIFO FIFO threshold configuration */
2516 #define USART_CR3_RXFTCFG_0          (0x1UL << USART_CR3_RXFTCFG_Pos)          /*!< 0x02000000 */
2517 #define USART_CR3_RXFTCFG_1          (0x2UL << USART_CR3_RXFTCFG_Pos)          /*!< 0x04000000 */
2518 #define USART_CR3_RXFTCFG_2          (0x4UL << USART_CR3_RXFTCFG_Pos)          /*!< 0x08000000 */
2519 #define USART_CR3_RXFTIE_Pos         (28U)
2520 #define USART_CR3_RXFTIE_Msk         (0x1UL << USART_CR3_RXFTIE_Pos)           /*!< 0x10000000 */
2521 #define USART_CR3_RXFTIE             USART_CR3_RXFTIE_Msk                      /*!< RXFIFO threshold interrupt enable */
2522 #define USART_CR3_TXFTCFG_Pos        (29U)
2523 #define USART_CR3_TXFTCFG_Msk        (0x7UL << USART_CR3_TXFTCFG_Pos)          /*!< 0xE0000000 */
2524 #define USART_CR3_TXFTCFG            USART_CR3_TXFTCFG_Msk                     /*!< TXFIFO threshold configuration */
2525 #define USART_CR3_TXFTCFG_0          (0x1UL << USART_CR3_TXFTCFG_Pos)          /*!< 0x20000000 */
2526 #define USART_CR3_TXFTCFG_1          (0x2UL << USART_CR3_TXFTCFG_Pos)          /*!< 0x40000000 */
2527 #define USART_CR3_TXFTCFG_2          (0x4UL << USART_CR3_TXFTCFG_Pos)          /*!< 0x80000000 */
2528 
2529 /******************  Bit definition for USART_BRR register  *******************/
2530 #define USART_BRR_BRR                ((uint16_t)0xFFFF)                        /*!< USART  Baud rate register [15:0] */
2531 
2532 /******************  Bit definition for USART_GTPR register  ******************/
2533 #define USART_GTPR_PSC_Pos           (0U)
2534 #define USART_GTPR_PSC_Msk           (0xFFUL << USART_GTPR_PSC_Pos)            /*!< 0x000000FF */
2535 #define USART_GTPR_PSC               USART_GTPR_PSC_Msk                        /*!< PSC[7:0] bits (Prescaler value) */
2536 #define USART_GTPR_GT_Pos            (8U)
2537 #define USART_GTPR_GT_Msk            (0xFFUL << USART_GTPR_GT_Pos)             /*!< 0x0000FF00 */
2538 #define USART_GTPR_GT                USART_GTPR_GT_Msk                         /*!< GT[7:0] bits (Guard time value) */
2539 
2540 /*******************  Bit definition for USART_RTOR register  *****************/
2541 #define USART_RTOR_RTO_Pos           (0U)
2542 #define USART_RTOR_RTO_Msk           (0xFFFFFFUL << USART_RTOR_RTO_Pos)        /*!< 0x00FFFFFF */
2543 #define USART_RTOR_RTO               USART_RTOR_RTO_Msk                        /*!< Receiver Time Out Value */
2544 #define USART_RTOR_BLEN_Pos          (24U)
2545 #define USART_RTOR_BLEN_Msk          (0xFFUL << USART_RTOR_BLEN_Pos)           /*!< 0xFF000000 */
2546 #define USART_RTOR_BLEN              USART_RTOR_BLEN_Msk                       /*!< Block Length */
2547 
2548 /*******************  Bit definition for USART_RQR register  ******************/
2549 #define USART_RQR_ABRRQ        ((uint16_t)0x0001)                              /*!< Auto-Baud Rate Request */
2550 #define USART_RQR_SBKRQ        ((uint16_t)0x0002)                              /*!< Send Break Request */
2551 #define USART_RQR_MMRQ         ((uint16_t)0x0004)                              /*!< Mute Mode Request */
2552 #define USART_RQR_RXFRQ        ((uint16_t)0x0008)                              /*!< Receive Data flush Request */
2553 #define USART_RQR_TXFRQ        ((uint16_t)0x0010)                              /*!< Transmit data flush Request */
2554 
2555 /*******************  Bit definition for USART_ISR register  ******************/
2556 #define USART_ISR_PE_Pos             (0U)
2557 #define USART_ISR_PE_Msk             (0x1UL << USART_ISR_PE_Pos)               /*!< 0x00000001 */
2558 #define USART_ISR_PE                 USART_ISR_PE_Msk                          /*!< Parity Error */
2559 #define USART_ISR_FE_Pos             (1U)
2560 #define USART_ISR_FE_Msk             (0x1UL << USART_ISR_FE_Pos)               /*!< 0x00000002 */
2561 #define USART_ISR_FE                 USART_ISR_FE_Msk                          /*!< Framing Error */
2562 #define USART_ISR_NE_Pos             (2U)
2563 #define USART_ISR_NE_Msk             (0x1UL << USART_ISR_NE_Pos)               /*!< 0x00000004 */
2564 #define USART_ISR_NE                 USART_ISR_NE_Msk                          /*!< Noise detected Flag */
2565 #define USART_ISR_ORE_Pos            (3U)
2566 #define USART_ISR_ORE_Msk            (0x1UL << USART_ISR_ORE_Pos)              /*!< 0x00000008 */
2567 #define USART_ISR_ORE                USART_ISR_ORE_Msk                         /*!< OverRun Error */
2568 #define USART_ISR_IDLE_Pos           (4U)
2569 #define USART_ISR_IDLE_Msk           (0x1UL << USART_ISR_IDLE_Pos)             /*!< 0x00000010 */
2570 #define USART_ISR_IDLE               USART_ISR_IDLE_Msk                        /*!< IDLE line detected */
2571 #define USART_ISR_RXNE_RXFNE_Pos     (5U)
2572 #define USART_ISR_RXNE_RXFNE_Msk     (0x1UL << USART_ISR_RXNE_RXFNE_Pos)      /*!< 0x00000020 */
2573 #define USART_ISR_RXNE_RXFNE         USART_ISR_RXNE_RXFNE_Msk                /*!< Read Data Register Not Empty/RXFIFO Not Empty */
2574 #define USART_ISR_TC_Pos             (6U)
2575 #define USART_ISR_TC_Msk             (0x1UL << USART_ISR_TC_Pos)               /*!< 0x00000040 */
2576 #define USART_ISR_TC                 USART_ISR_TC_Msk                          /*!< Transmission Complete */
2577 #define USART_ISR_TXE_TXFNF_Pos      (7U)
2578 #define USART_ISR_TXE_TXFNF_Msk      (0x1UL << USART_ISR_TXE_TXFNF_Pos)       /*!< 0x00000080 */
2579 #define USART_ISR_TXE_TXFNF          USART_ISR_TXE_TXFNF_Msk                  /*!< Transmit Data Register Empty/TXFIFO Not Full */
2580 #define USART_ISR_LBDF_Pos           (8U)
2581 #define USART_ISR_LBDF_Msk           (0x1UL << USART_ISR_LBDF_Pos)             /*!< 0x00000100 */
2582 #define USART_ISR_LBDF               USART_ISR_LBDF_Msk                        /*!< LIN Break Detection Flag */
2583 #define USART_ISR_CTSIF_Pos          (9U)
2584 #define USART_ISR_CTSIF_Msk          (0x1UL << USART_ISR_CTSIF_Pos)            /*!< 0x00000200 */
2585 #define USART_ISR_CTSIF              USART_ISR_CTSIF_Msk                       /*!< CTS interrupt flag */
2586 #define USART_ISR_CTS_Pos            (10U)
2587 #define USART_ISR_CTS_Msk            (0x1UL << USART_ISR_CTS_Pos)              /*!< 0x00000400 */
2588 #define USART_ISR_CTS                USART_ISR_CTS_Msk                         /*!< CTS flag */
2589 #define USART_ISR_RTOF_Pos           (11U)
2590 #define USART_ISR_RTOF_Msk           (0x1UL << USART_ISR_RTOF_Pos)             /*!< 0x00000800 */
2591 #define USART_ISR_RTOF               USART_ISR_RTOF_Msk                        /*!< Receiver Time Out */
2592 #define USART_ISR_EOBF_Pos           (12U)
2593 #define USART_ISR_EOBF_Msk           (0x1UL << USART_ISR_EOBF_Pos)             /*!< 0x00001000 */
2594 #define USART_ISR_EOBF               USART_ISR_EOBF_Msk                        /*!< End Of Block Flag */
2595 #define USART_ISR_UDR_Pos            (13U)
2596 #define USART_ISR_UDR_Msk            (0x1UL << USART_ISR_UDR_Pos)              /*!< 0x00002000 */
2597 #define USART_ISR_UDR                 USART_ISR_UDR_Msk                        /*!< SPI Slave Underrun Error Flag */
2598 #define USART_ISR_ABRE_Pos           (14U)
2599 #define USART_ISR_ABRE_Msk           (0x1UL << USART_ISR_ABRE_Pos)             /*!< 0x00004000 */
2600 #define USART_ISR_ABRE               USART_ISR_ABRE_Msk                        /*!< Auto-Baud Rate Error */
2601 #define USART_ISR_ABRF_Pos           (15U)
2602 #define USART_ISR_ABRF_Msk           (0x1UL << USART_ISR_ABRF_Pos)             /*!< 0x00008000 */
2603 #define USART_ISR_ABRF               USART_ISR_ABRF_Msk                        /*!< Auto-Baud Rate Flag */
2604 #define USART_ISR_BUSY_Pos           (16U)
2605 #define USART_ISR_BUSY_Msk           (0x1UL << USART_ISR_BUSY_Pos)             /*!< 0x00010000 */
2606 #define USART_ISR_BUSY               USART_ISR_BUSY_Msk                        /*!< Busy Flag */
2607 #define USART_ISR_CMF_Pos            (17U)
2608 #define USART_ISR_CMF_Msk            (0x1UL << USART_ISR_CMF_Pos)              /*!< 0x00020000 */
2609 #define USART_ISR_CMF                USART_ISR_CMF_Msk                         /*!< Character Match Flag */
2610 #define USART_ISR_SBKF_Pos           (18U)
2611 #define USART_ISR_SBKF_Msk           (0x1UL << USART_ISR_SBKF_Pos)             /*!< 0x00040000 */
2612 #define USART_ISR_SBKF               USART_ISR_SBKF_Msk                        /*!< Send Break Flag */
2613 #define USART_ISR_RWU_Pos            (19U)
2614 #define USART_ISR_RWU_Msk            (0x1UL << USART_ISR_RWU_Pos)              /*!< 0x00080000 */
2615 #define USART_ISR_RWU                USART_ISR_RWU_Msk                         /*!< Receive Wake Up from mute mode Flag */
2616 #define USART_ISR_WUF_Pos            (20U)
2617 #define USART_ISR_WUF_Msk            (0x1UL << USART_ISR_WUF_Pos)              /*!< 0x00100000 */
2618 #define USART_ISR_WUF                USART_ISR_WUF_Msk                         /*!< Wake Up from stop mode Flag */
2619 #define USART_ISR_TEACK_Pos          (21U)
2620 #define USART_ISR_TEACK_Msk          (0x1UL << USART_ISR_TEACK_Pos)            /*!< 0x00200000 */
2621 #define USART_ISR_TEACK              USART_ISR_TEACK_Msk                       /*!< Transmit Enable Acknowledge Flag */
2622 #define USART_ISR_REACK_Pos          (22U)
2623 #define USART_ISR_REACK_Msk          (0x1UL << USART_ISR_REACK_Pos)            /*!< 0x00400000 */
2624 #define USART_ISR_REACK              USART_ISR_REACK_Msk                       /*!< Receive Enable Acknowledge Flag */
2625 #define USART_ISR_TXFE_Pos           (23U)
2626 #define USART_ISR_TXFE_Msk           (0x1UL << USART_ISR_TXFE_Pos)             /*!< 0x00800000 */
2627 #define USART_ISR_TXFE               USART_ISR_TXFE_Msk                        /*!< TXFIFO Empty Flag */
2628 #define USART_ISR_RXFF_Pos           (24U)
2629 #define USART_ISR_RXFF_Msk           (0x1UL << USART_ISR_RXFF_Pos)             /*!< 0x01000000 */
2630 #define USART_ISR_RXFF               USART_ISR_RXFF_Msk                        /*!< RXFIFO Full Flag */
2631 #define USART_ISR_TCBGT_Pos          (25U)
2632 #define USART_ISR_TCBGT_Msk          (0x1UL << USART_ISR_TCBGT_Pos)            /*!< 0x02000000 */
2633 #define USART_ISR_TCBGT              USART_ISR_TCBGT_Msk                       /*!< Transmission Complete Before Guard Time Completion Flag */
2634 #define USART_ISR_RXFT_Pos           (26U)
2635 #define USART_ISR_RXFT_Msk           (0x1UL << USART_ISR_RXFT_Pos)             /*!< 0x04000000 */
2636 #define USART_ISR_RXFT               USART_ISR_RXFT_Msk                        /*!< RXFIFO Threshold Flag */
2637 #define USART_ISR_TXFT_Pos           (27U)
2638 #define USART_ISR_TXFT_Msk           (0x1UL << USART_ISR_TXFT_Pos)             /*!< 0x08000000 */
2639 #define USART_ISR_TXFT               USART_ISR_TXFT_Msk                        /*!< TXFIFO Threshold Flag */
2640 
2641 /*******************  Bit definition for USART_ICR register  ******************/
2642 #define USART_ICR_PECF_Pos           (0U)
2643 #define USART_ICR_PECF_Msk           (0x1UL << USART_ICR_PECF_Pos)             /*!< 0x00000001 */
2644 #define USART_ICR_PECF               USART_ICR_PECF_Msk                        /*!< Parity Error Clear Flag */
2645 #define USART_ICR_FECF_Pos           (1U)
2646 #define USART_ICR_FECF_Msk           (0x1UL << USART_ICR_FECF_Pos)             /*!< 0x00000002 */
2647 #define USART_ICR_FECF               USART_ICR_FECF_Msk                        /*!< Framing Error Clear Flag */
2648 #define USART_ICR_NECF_Pos           (2U)
2649 #define USART_ICR_NECF_Msk           (0x1UL << USART_ICR_NECF_Pos)             /*!< 0x00000004 */
2650 #define USART_ICR_NECF               USART_ICR_NECF_Msk                        /*!< Noise Error detected Clear Flag */
2651 #define USART_ICR_ORECF_Pos          (3U)
2652 #define USART_ICR_ORECF_Msk          (0x1UL << USART_ICR_ORECF_Pos)            /*!< 0x00000008 */
2653 #define USART_ICR_ORECF              USART_ICR_ORECF_Msk                       /*!< OverRun Error Clear Flag */
2654 #define USART_ICR_IDLECF_Pos         (4U)
2655 #define USART_ICR_IDLECF_Msk         (0x1UL << USART_ICR_IDLECF_Pos)           /*!< 0x00000010 */
2656 #define USART_ICR_IDLECF             USART_ICR_IDLECF_Msk                      /*!< IDLE line detected Clear Flag */
2657 #define USART_ICR_TXFECF_Pos         (5U)
2658 #define USART_ICR_TXFECF_Msk         (0x1UL << USART_ICR_TXFECF_Pos)           /*!< 0x00000020 */
2659 #define USART_ICR_TXFECF             USART_ICR_TXFECF_Msk                      /*!< TXFIFO Empty Clear Flag */
2660 #define USART_ICR_TCCF_Pos           (6U)
2661 #define USART_ICR_TCCF_Msk           (0x1UL << USART_ICR_TCCF_Pos)             /*!< 0x00000040 */
2662 #define USART_ICR_TCCF               USART_ICR_TCCF_Msk                        /*!< Transmission Complete Clear Flag */
2663 #define USART_ICR_TCBGTCF_Pos        (7U)
2664 #define USART_ICR_TCBGTCF_Msk        (0x1UL << USART_ICR_TCBGTCF_Pos)          /*!< 0x00000080 */
2665 #define USART_ICR_TCBGTCF            USART_ICR_TCBGTCF_Msk                     /*!< Transmission Complete Before Guard Time Clear Flag */
2666 #define USART_ICR_LBDCF_Pos          (8U)
2667 #define USART_ICR_LBDCF_Msk          (0x1UL << USART_ICR_LBDCF_Pos)            /*!< 0x00000100 */
2668 #define USART_ICR_LBDCF              USART_ICR_LBDCF_Msk                       /*!< LIN Break Detection Clear Flag */
2669 #define USART_ICR_CTSCF_Pos          (9U)
2670 #define USART_ICR_CTSCF_Msk          (0x1UL << USART_ICR_CTSCF_Pos)            /*!< 0x00000200 */
2671 #define USART_ICR_CTSCF              USART_ICR_CTSCF_Msk                       /*!< CTS Interrupt Clear Flag */
2672 #define USART_ICR_RTOCF_Pos          (11U)
2673 #define USART_ICR_RTOCF_Msk          (0x1UL << USART_ICR_RTOCF_Pos)            /*!< 0x00000800 */
2674 #define USART_ICR_RTOCF              USART_ICR_RTOCF_Msk                       /*!< Receiver Time Out Clear Flag */
2675 #define USART_ICR_EOBCF_Pos          (12U)
2676 #define USART_ICR_EOBCF_Msk          (0x1UL << USART_ICR_EOBCF_Pos)            /*!< 0x00001000 */
2677 #define USART_ICR_EOBCF              USART_ICR_EOBCF_Msk                       /*!< End Of Block Clear Flag */
2678 #define USART_ICR_UDRCF_Pos          (13U)
2679 #define USART_ICR_UDRCF_Msk          (0x1UL << USART_ICR_UDRCF_Pos)            /*!< 0x00002000 */
2680 #define USART_ICR_UDRCF              USART_ICR_UDRCF_Msk                       /*!< SPI Slave Underrun Clear Flag */
2681 #define USART_ICR_CMCF_Pos           (17U)
2682 #define USART_ICR_CMCF_Msk           (0x1UL << USART_ICR_CMCF_Pos)             /*!< 0x00020000 */
2683 #define USART_ICR_CMCF               USART_ICR_CMCF_Msk                        /*!< Character Match Clear Flag */
2684 #define USART_ICR_WUCF_Pos           (20U)
2685 #define USART_ICR_WUCF_Msk           (0x1UL << USART_ICR_WUCF_Pos)             /*!< 0x00100000 */
2686 #define USART_ICR_WUCF               USART_ICR_WUCF_Msk                        /*!< Wake Up from stop mode Clear Flag */
2687 
2688 /*******************  Bit definition for USART_RDR register  ******************/
2689 #define USART_RDR_RDR_Pos             (0U)
2690 #define USART_RDR_RDR_Msk             (0x1FFUL << USART_RDR_RDR_Pos)           /*!< 0x000001FF */
2691 #define USART_RDR_RDR                 USART_RDR_RDR_Msk                        /*!< RDR[8:0] bits (Receive Data value) */
2692 
2693 /*******************  Bit definition for USART_TDR register  ******************/
2694 #define USART_TDR_TDR_Pos             (0U)
2695 #define USART_TDR_TDR_Msk             (0x1FFUL << USART_TDR_TDR_Pos)           /*!< 0x000001FF */
2696 #define USART_TDR_TDR                 USART_TDR_TDR_Msk                        /*!< TDR[8:0] bits (Transmit Data value) */
2697 
2698 /*******************  Bit definition for USART_PRESC register  ****************/
2699 #define USART_PRESC_PRESCALER_Pos    (0U)
2700 #define USART_PRESC_PRESCALER_Msk    (0xFUL << USART_PRESC_PRESCALER_Pos)      /*!< 0x0000000F */
2701 #define USART_PRESC_PRESCALER        USART_PRESC_PRESCALER_Msk                 /*!< PRESCALER[3:0] bits (Clock prescaler) */
2702 #define USART_PRESC_PRESCALER_0      (0x1UL << USART_PRESC_PRESCALER_Pos)      /*!< 0x00000001 */
2703 #define USART_PRESC_PRESCALER_1      (0x2UL << USART_PRESC_PRESCALER_Pos)      /*!< 0x00000002 */
2704 #define USART_PRESC_PRESCALER_2      (0x4UL << USART_PRESC_PRESCALER_Pos)      /*!< 0x00000004 */
2705 #define USART_PRESC_PRESCALER_3      (0x8UL << USART_PRESC_PRESCALER_Pos)      /*!< 0x00000008 */
2706 
2707 /******************************************************************************/
2708 /*                                                                            */
2709 /*                          CRC calculation unit                              */
2710 /*                                                                            */
2711 /******************************************************************************/
2712 /*******************  Bit definition for CRC_DR register  *********************/
2713 #define CRC_DR_DR_Pos            (0U)
2714 #define CRC_DR_DR_Msk            (0xFFFFFFFFUL << CRC_DR_DR_Pos)               /*!< 0xFFFFFFFF */
2715 #define CRC_DR_DR                CRC_DR_DR_Msk                                 /*!< Data register bits */
2716 
2717 /*******************  Bit definition for CRC_IDR register  ********************/
2718 #define CRC_IDR_IDR_Pos          (0U)
2719 #define CRC_IDR_IDR_Msk          (0xFFFFFFFFUL << CRC_IDR_IDR_Pos)                   /*!< 0x000000FF */
2720 #define CRC_IDR_IDR              CRC_IDR_IDR_Msk                               /*!< General-purpose 8-bits data register bits */
2721 
2722 /********************  Bit definition for CRC_CR register  ********************/
2723 #define CRC_CR_RESET_Pos         (0U)
2724 #define CRC_CR_RESET_Msk         (0x1UL << CRC_CR_RESET_Pos)                   /*!< 0x00000001 */
2725 #define CRC_CR_RESET             CRC_CR_RESET_Msk                              /*!< RESET the CRC computation unit bit */
2726 #define CRC_CR_POLYSIZE_Pos      (3U)
2727 #define CRC_CR_POLYSIZE_Msk      (0x3UL << CRC_CR_POLYSIZE_Pos)                /*!< 0x00000018 */
2728 #define CRC_CR_POLYSIZE          CRC_CR_POLYSIZE_Msk                           /*!< Polynomial size bits */
2729 #define CRC_CR_POLYSIZE_0        (0x1UL << CRC_CR_POLYSIZE_Pos)                /*!< 0x00000008 */
2730 #define CRC_CR_POLYSIZE_1        (0x2UL << CRC_CR_POLYSIZE_Pos)                /*!< 0x00000010 */
2731 #define CRC_CR_REV_IN_Pos        (5U)
2732 #define CRC_CR_REV_IN_Msk        (0x3UL << CRC_CR_REV_IN_Pos)                  /*!< 0x00000060 */
2733 #define CRC_CR_REV_IN            CRC_CR_REV_IN_Msk                             /*!< REV_IN Reverse Input Data bits */
2734 #define CRC_CR_REV_IN_0          (0x1UL << CRC_CR_REV_IN_Pos)                  /*!< 0x00000020 */
2735 #define CRC_CR_REV_IN_1          (0x2UL << CRC_CR_REV_IN_Pos)                  /*!< 0x00000040 */
2736 #define CRC_CR_REV_OUT_Pos       (7U)
2737 #define CRC_CR_REV_OUT_Msk       (0x1UL << CRC_CR_REV_OUT_Pos)                 /*!< 0x00000080 */
2738 #define CRC_CR_REV_OUT           CRC_CR_REV_OUT_Msk                            /*!< REV_OUT Reverse Output Data bits */
2739 
2740 /*******************  Bit definition for CRC_INIT register  *******************/
2741 #define CRC_INIT_INIT_Pos        (0U)
2742 #define CRC_INIT_INIT_Msk        (0xFFFFFFFFUL << CRC_INIT_INIT_Pos)           /*!< 0xFFFFFFFF */
2743 #define CRC_INIT_INIT            CRC_INIT_INIT_Msk                             /*!< Initial CRC value bits */
2744 
2745 /*******************  Bit definition for CRC_POL register  ********************/
2746 #define CRC_POL_POL_Pos          (0U)
2747 #define CRC_POL_POL_Msk          (0xFFFFFFFFUL << CRC_POL_POL_Pos)             /*!< 0xFFFFFFFF */
2748 #define CRC_POL_POL              CRC_POL_POL_Msk                               /*!< Coefficients of the polynomial */
2749 
2750 /******************************************************************************/
2751 /*                                                                            */
2752 /*                       Advanced Encryption Standard (AES)                   */
2753 /*                                                                            */
2754 /******************************************************************************/
2755 /*******************  Bit definition for AES_CR register  *********************/
2756 #define AES_CR_EN_Pos            (0U)
2757 #define AES_CR_EN_Msk            (0x1UL << AES_CR_EN_Pos)                      /*!< 0x00000001 */
2758 #define AES_CR_EN                AES_CR_EN_Msk                                 /*!< AES Enable */
2759 #define AES_CR_DATATYPE_Pos      (1U)
2760 #define AES_CR_DATATYPE_Msk      (0x3UL << AES_CR_DATATYPE_Pos)                /*!< 0x00000006 */
2761 #define AES_CR_DATATYPE          AES_CR_DATATYPE_Msk                           /*!< Data type selection */
2762 #define AES_CR_DATATYPE_0        (0x1UL << AES_CR_DATATYPE_Pos)                /*!< 0x00000002 */
2763 #define AES_CR_DATATYPE_1        (0x2UL << AES_CR_DATATYPE_Pos)                /*!< 0x00000004 */
2764 
2765 #define AES_CR_MODE_Pos          (3U)
2766 #define AES_CR_MODE_Msk          (0x3UL << AES_CR_MODE_Pos)                    /*!< 0x00000018 */
2767 #define AES_CR_MODE              AES_CR_MODE_Msk                               /*!< AES Mode Of Operation */
2768 #define AES_CR_MODE_0            (0x1UL << AES_CR_MODE_Pos)                    /*!< 0x00000008 */
2769 #define AES_CR_MODE_1            (0x2UL << AES_CR_MODE_Pos)                    /*!< 0x00000010 */
2770 
2771 #define AES_CR_CHMOD_Pos         (5U)
2772 #define AES_CR_CHMOD_Msk         (0x803UL << AES_CR_CHMOD_Pos)                 /*!< 0x00010060 */
2773 #define AES_CR_CHMOD             AES_CR_CHMOD_Msk                              /*!< AES Chaining Mode */
2774 #define AES_CR_CHMOD_0           (0x001UL << AES_CR_CHMOD_Pos)                 /*!< 0x00000020 */
2775 #define AES_CR_CHMOD_1           (0x002UL << AES_CR_CHMOD_Pos)                 /*!< 0x00000040 */
2776 #define AES_CR_CHMOD_2           (0x800UL << AES_CR_CHMOD_Pos)                 /*!< 0x00010000 */
2777 
2778 #define AES_CR_CCFC_Pos          (7U)
2779 #define AES_CR_CCFC_Msk          (0x1UL << AES_CR_CCFC_Pos)                    /*!< 0x00000080 */
2780 #define AES_CR_CCFC              AES_CR_CCFC_Msk                               /*!< Computation Complete Flag Clear */
2781 #define AES_CR_ERRC_Pos          (8U)
2782 #define AES_CR_ERRC_Msk          (0x1UL << AES_CR_ERRC_Pos)                    /*!< 0x00000100 */
2783 #define AES_CR_ERRC              AES_CR_ERRC_Msk                               /*!< Error Clear */
2784 #define AES_CR_CCFIE_Pos         (9U)
2785 #define AES_CR_CCFIE_Msk         (0x1UL << AES_CR_CCFIE_Pos)                   /*!< 0x00000200 */
2786 #define AES_CR_CCFIE             AES_CR_CCFIE_Msk                              /*!< Computation Complete Flag Interrupt Enable */
2787 #define AES_CR_ERRIE_Pos         (10U)
2788 #define AES_CR_ERRIE_Msk         (0x1UL << AES_CR_ERRIE_Pos)                   /*!< 0x00000400 */
2789 #define AES_CR_ERRIE             AES_CR_ERRIE_Msk                              /*!< Error Interrupt Enable */
2790 #define AES_CR_DMAINEN_Pos       (11U)
2791 #define AES_CR_DMAINEN_Msk       (0x1UL << AES_CR_DMAINEN_Pos)                 /*!< 0x00000800 */
2792 #define AES_CR_DMAINEN           AES_CR_DMAINEN_Msk                            /*!< Enable data input phase DMA management  */
2793 #define AES_CR_DMAOUTEN_Pos      (12U)
2794 #define AES_CR_DMAOUTEN_Msk      (0x1UL << AES_CR_DMAOUTEN_Pos)                /*!< 0x00001000 */
2795 #define AES_CR_DMAOUTEN          AES_CR_DMAOUTEN_Msk                           /*!< Enable data output phase DMA management */
2796 
2797 #define AES_CR_GCMPH_Pos         (13U)
2798 #define AES_CR_GCMPH_Msk         (0x3UL << AES_CR_GCMPH_Pos)                   /*!< 0x00006000 */
2799 #define AES_CR_GCMPH             AES_CR_GCMPH_Msk                              /*!< GCM Phase */
2800 #define AES_CR_GCMPH_0           (0x1UL << AES_CR_GCMPH_Pos)                   /*!< 0x00002000 */
2801 #define AES_CR_GCMPH_1           (0x2UL << AES_CR_GCMPH_Pos)                   /*!< 0x00004000 */
2802 
2803 #define AES_CR_KEYSIZE_Pos       (18U)
2804 #define AES_CR_KEYSIZE_Msk       (0x1UL << AES_CR_KEYSIZE_Pos)                 /*!< 0x00040000 */
2805 #define AES_CR_KEYSIZE           AES_CR_KEYSIZE_Msk                            /*!< Key size selection */
2806 
2807 #define AES_CR_NPBLB_Pos         (20U)
2808 #define AES_CR_NPBLB_Msk         (0xFUL << AES_CR_NPBLB_Pos)                   /*!< 0x00F00000 */
2809 #define AES_CR_NPBLB             AES_CR_NPBLB_Msk                              /*!< Number of padding bytes in last payload block */
2810 #define AES_CR_NPBLB_0           (0x1UL << AES_CR_NPBLB_Pos)                   /*!< 0x00100000 */
2811 #define AES_CR_NPBLB_1           (0x2UL << AES_CR_NPBLB_Pos)                   /*!< 0x00200000 */
2812 #define AES_CR_NPBLB_2           (0x4UL << AES_CR_NPBLB_Pos)                   /*!< 0x00400000 */
2813 #define AES_CR_NPBLB_3           (0x8UL << AES_CR_NPBLB_Pos)                   /*!< 0x00800000 */
2814 
2815 /*******************  Bit definition for AES_SR register  *********************/
2816 #define AES_SR_CCF_Pos           (0U)
2817 #define AES_SR_CCF_Msk           (0x1UL << AES_SR_CCF_Pos)                     /*!< 0x00000001 */
2818 #define AES_SR_CCF               AES_SR_CCF_Msk                                /*!< Computation Complete Flag */
2819 #define AES_SR_RDERR_Pos         (1U)
2820 #define AES_SR_RDERR_Msk         (0x1UL << AES_SR_RDERR_Pos)                   /*!< 0x00000002 */
2821 #define AES_SR_RDERR             AES_SR_RDERR_Msk                              /*!< Read Error Flag */
2822 #define AES_SR_WRERR_Pos         (2U)
2823 #define AES_SR_WRERR_Msk         (0x1UL << AES_SR_WRERR_Pos)                   /*!< 0x00000004 */
2824 #define AES_SR_WRERR             AES_SR_WRERR_Msk                              /*!< Write Error Flag */
2825 #define AES_SR_BUSY_Pos          (3U)
2826 #define AES_SR_BUSY_Msk          (0x1UL << AES_SR_BUSY_Pos)                    /*!< 0x00000008 */
2827 #define AES_SR_BUSY              AES_SR_BUSY_Msk                               /*!< Busy Flag */
2828 
2829 /*******************  Bit definition for AES_DINR register  *******************/
2830 #define AES_DINR_Pos             (0U)
2831 #define AES_DINR_Msk             (0xFFFFFFFFUL << AES_DINR_Pos)                /*!< 0xFFFFFFFF */
2832 #define AES_DINR                 AES_DINR_Msk                                  /*!< AES Data Input Register */
2833 
2834 /*******************  Bit definition for AES_DOUTR register  ******************/
2835 #define AES_DOUTR_Pos            (0U)
2836 #define AES_DOUTR_Msk            (0xFFFFFFFFUL << AES_DOUTR_Pos)               /*!< 0xFFFFFFFF */
2837 #define AES_DOUTR                AES_DOUTR_Msk                                 /*!< AES Data Output Register */
2838 
2839 /*******************  Bit definition for AES_KEYR0 register  ******************/
2840 #define AES_KEYR0_Pos            (0U)
2841 #define AES_KEYR0_Msk            (0xFFFFFFFFUL << AES_KEYR0_Pos)               /*!< 0xFFFFFFFF */
2842 #define AES_KEYR0                AES_KEYR0_Msk                                 /*!< AES Key Register 0 */
2843 
2844 /*******************  Bit definition for AES_KEYR1 register  ******************/
2845 #define AES_KEYR1_Pos            (0U)
2846 #define AES_KEYR1_Msk            (0xFFFFFFFFUL << AES_KEYR1_Pos)               /*!< 0xFFFFFFFF */
2847 #define AES_KEYR1                AES_KEYR1_Msk                                 /*!< AES Key Register 1 */
2848 
2849 /*******************  Bit definition for AES_KEYR2 register  ******************/
2850 #define AES_KEYR2_Pos            (0U)
2851 #define AES_KEYR2_Msk            (0xFFFFFFFFUL << AES_KEYR2_Pos)               /*!< 0xFFFFFFFF */
2852 #define AES_KEYR2                AES_KEYR2_Msk                                 /*!< AES Key Register 2 */
2853 
2854 /*******************  Bit definition for AES_KEYR3 register  ******************/
2855 #define AES_KEYR3_Pos            (0U)
2856 #define AES_KEYR3_Msk            (0xFFFFFFFFUL << AES_KEYR3_Pos)               /*!< 0xFFFFFFFF */
2857 #define AES_KEYR3                AES_KEYR3_Msk                                 /*!< AES Key Register 3 */
2858 
2859 /*******************  Bit definition for AES_KEYR4 register  ******************/
2860 #define AES_KEYR4_Pos            (0U)
2861 #define AES_KEYR4_Msk            (0xFFFFFFFFUL << AES_KEYR4_Pos)               /*!< 0xFFFFFFFF */
2862 #define AES_KEYR4                AES_KEYR4_Msk                                 /*!< AES Key Register 4 */
2863 
2864 /*******************  Bit definition for AES_KEYR5 register  ******************/
2865 #define AES_KEYR5_Pos            (0U)
2866 #define AES_KEYR5_Msk            (0xFFFFFFFFUL << AES_KEYR5_Pos)               /*!< 0xFFFFFFFF */
2867 #define AES_KEYR5                AES_KEYR5_Msk                                 /*!< AES Key Register 5 */
2868 
2869 /*******************  Bit definition for AES_KEYR6 register  ******************/
2870 #define AES_KEYR6_Pos            (0U)
2871 #define AES_KEYR6_Msk            (0xFFFFFFFFUL << AES_KEYR6_Pos)               /*!< 0xFFFFFFFF */
2872 #define AES_KEYR6                AES_KEYR6_Msk                                 /*!< AES Key Register 6 */
2873 
2874 /*******************  Bit definition for AES_KEYR7 register  ******************/
2875 #define AES_KEYR7_Pos            (0U)
2876 #define AES_KEYR7_Msk            (0xFFFFFFFFUL << AES_KEYR7_Pos)               /*!< 0xFFFFFFFF */
2877 #define AES_KEYR7                AES_KEYR7_Msk                                 /*!< AES Key Register 7 */
2878 
2879 /*******************  Bit definition for AES_IVR0 register   ******************/
2880 #define AES_IVR0_Pos             (0U)
2881 #define AES_IVR0_Msk             (0xFFFFFFFFUL << AES_IVR0_Pos)                /*!< 0xFFFFFFFF */
2882 #define AES_IVR0                 AES_IVR0_Msk                                  /*!< AES Initialization Vector Register 0 */
2883 
2884 /*******************  Bit definition for AES_IVR1 register   ******************/
2885 #define AES_IVR1_Pos             (0U)
2886 #define AES_IVR1_Msk             (0xFFFFFFFFUL << AES_IVR1_Pos)                /*!< 0xFFFFFFFF */
2887 #define AES_IVR1                 AES_IVR1_Msk                                  /*!< AES Initialization Vector Register 1 */
2888 
2889 /*******************  Bit definition for AES_IVR2 register   ******************/
2890 #define AES_IVR2_Pos             (0U)
2891 #define AES_IVR2_Msk             (0xFFFFFFFFUL << AES_IVR2_Pos)                /*!< 0xFFFFFFFF */
2892 #define AES_IVR2                 AES_IVR2_Msk                                  /*!< AES Initialization Vector Register 2 */
2893 
2894 /*******************  Bit definition for AES_IVR3 register   ******************/
2895 #define AES_IVR3_Pos             (0U)
2896 #define AES_IVR3_Msk             (0xFFFFFFFFUL << AES_IVR3_Pos)                /*!< 0xFFFFFFFF */
2897 #define AES_IVR3                 AES_IVR3_Msk                                  /*!< AES Initialization Vector Register 3 */
2898 
2899 /*******************  Bit definition for AES_SUSP0R register  ******************/
2900 #define AES_SUSP0R_Pos           (0U)
2901 #define AES_SUSP0R_Msk           (0xFFFFFFFFUL << AES_SUSP0R_Pos)              /*!< 0xFFFFFFFF */
2902 #define AES_SUSP0R               AES_SUSP0R_Msk                                /*!< AES Suspend registers 0 */
2903 
2904 /*******************  Bit definition for AES_SUSP1R register  ******************/
2905 #define AES_SUSP1R_Pos           (0U)
2906 #define AES_SUSP1R_Msk           (0xFFFFFFFFUL << AES_SUSP1R_Pos)              /*!< 0xFFFFFFFF */
2907 #define AES_SUSP1R               AES_SUSP1R_Msk                                /*!< AES Suspend registers 1 */
2908 
2909 /*******************  Bit definition for AES_SUSP2R register  ******************/
2910 #define AES_SUSP2R_Pos           (0U)
2911 #define AES_SUSP2R_Msk           (0xFFFFFFFFUL << AES_SUSP2R_Pos)              /*!< 0xFFFFFFFF */
2912 #define AES_SUSP2R               AES_SUSP2R_Msk                                /*!< AES Suspend registers 2 */
2913 
2914 /*******************  Bit definition for AES_SUSP3R register  ******************/
2915 #define AES_SUSP3R_Pos           (0U)
2916 #define AES_SUSP3R_Msk           (0xFFFFFFFFUL << AES_SUSP3R_Pos)              /*!< 0xFFFFFFFF */
2917 #define AES_SUSP3R               AES_SUSP3R_Msk                                /*!< AES Suspend registers 3 */
2918 
2919 /*******************  Bit definition for AES_SUSP4R register  ******************/
2920 #define AES_SUSP4R_Pos           (0U)
2921 #define AES_SUSP4R_Msk           (0xFFFFFFFFUL << AES_SUSP4R_Pos)              /*!< 0xFFFFFFFF */
2922 #define AES_SUSP4R               AES_SUSP4R_Msk                                /*!< AES Suspend registers 4 */
2923 
2924 /*******************  Bit definition for AES_SUSP5R register  ******************/
2925 #define AES_SUSP5R_Pos           (0U)
2926 #define AES_SUSP5R_Msk           (0xFFFFFFFFUL << AES_SUSP5R_Pos)              /*!< 0xFFFFFFFF */
2927 #define AES_SUSP5R               AES_SUSP5R_Msk                                /*!< AES Suspend registers 5 */
2928 
2929 /*******************  Bit definition for AES_SUSP6R register  ******************/
2930 #define AES_SUSP6R_Pos           (0U)
2931 #define AES_SUSP6R_Msk           (0xFFFFFFFFUL << AES_SUSP6R_Pos)              /*!< 0xFFFFFFFF */
2932 #define AES_SUSP6R               AES_SUSP6R_Msk                                /*!< AES Suspend registers 6 */
2933 
2934 /*******************  Bit definition for AES_SUSP7R register  ******************/
2935 #define AES_SUSP7R_Pos           (0U)
2936 #define AES_SUSP7R_Msk           (0xFFFFFFFFUL << AES_SUSP7R_Pos)              /*!< 0xFFFFFFFF */
2937 #define AES_SUSP7R               AES_SUSP7R_Msk                                /*!< AES Suspend registers 7 */
2938 
2939 /******************************************************************************/
2940 /*                                                                            */
2941 /*                           DMA Controller (DMA)                             */
2942 /*                                                                            */
2943 /******************************************************************************/
2944 
2945 /*******************  Bit definition for DMA_ISR register  ********************/
2946 #define DMA_ISR_GIF1_Pos       (0U)
2947 #define DMA_ISR_GIF1_Msk       (0x1UL << DMA_ISR_GIF1_Pos)                     /*!< 0x00000001 */
2948 #define DMA_ISR_GIF1           DMA_ISR_GIF1_Msk                                /*!< Channel 1 Global interrupt flag */
2949 #define DMA_ISR_TCIF1_Pos      (1U)
2950 #define DMA_ISR_TCIF1_Msk      (0x1UL << DMA_ISR_TCIF1_Pos)                    /*!< 0x00000002 */
2951 #define DMA_ISR_TCIF1          DMA_ISR_TCIF1_Msk                               /*!< Channel 1 Transfer Complete flag */
2952 #define DMA_ISR_HTIF1_Pos      (2U)
2953 #define DMA_ISR_HTIF1_Msk      (0x1UL << DMA_ISR_HTIF1_Pos)                    /*!< 0x00000004 */
2954 #define DMA_ISR_HTIF1          DMA_ISR_HTIF1_Msk                               /*!< Channel 1 Half Transfer flag */
2955 #define DMA_ISR_TEIF1_Pos      (3U)
2956 #define DMA_ISR_TEIF1_Msk      (0x1UL << DMA_ISR_TEIF1_Pos)                    /*!< 0x00000008 */
2957 #define DMA_ISR_TEIF1          DMA_ISR_TEIF1_Msk                               /*!< Channel 1 Transfer Error flag */
2958 #define DMA_ISR_GIF2_Pos       (4U)
2959 #define DMA_ISR_GIF2_Msk       (0x1UL << DMA_ISR_GIF2_Pos)                     /*!< 0x00000010 */
2960 #define DMA_ISR_GIF2           DMA_ISR_GIF2_Msk                                /*!< Channel 2 Global interrupt flag */
2961 #define DMA_ISR_TCIF2_Pos      (5U)
2962 #define DMA_ISR_TCIF2_Msk      (0x1UL << DMA_ISR_TCIF2_Pos)                    /*!< 0x00000020 */
2963 #define DMA_ISR_TCIF2          DMA_ISR_TCIF2_Msk                               /*!< Channel 2 Transfer Complete flag */
2964 #define DMA_ISR_HTIF2_Pos      (6U)
2965 #define DMA_ISR_HTIF2_Msk      (0x1UL << DMA_ISR_HTIF2_Pos)                    /*!< 0x00000040 */
2966 #define DMA_ISR_HTIF2          DMA_ISR_HTIF2_Msk                               /*!< Channel 2 Half Transfer flag */
2967 #define DMA_ISR_TEIF2_Pos      (7U)
2968 #define DMA_ISR_TEIF2_Msk      (0x1UL << DMA_ISR_TEIF2_Pos)                    /*!< 0x00000080 */
2969 #define DMA_ISR_TEIF2          DMA_ISR_TEIF2_Msk                               /*!< Channel 2 Transfer Error flag */
2970 #define DMA_ISR_GIF3_Pos       (8U)
2971 #define DMA_ISR_GIF3_Msk       (0x1UL << DMA_ISR_GIF3_Pos)                     /*!< 0x00000100 */
2972 #define DMA_ISR_GIF3           DMA_ISR_GIF3_Msk                                /*!< Channel 3 Global interrupt flag */
2973 #define DMA_ISR_TCIF3_Pos      (9U)
2974 #define DMA_ISR_TCIF3_Msk      (0x1UL << DMA_ISR_TCIF3_Pos)                    /*!< 0x00000200 */
2975 #define DMA_ISR_TCIF3          DMA_ISR_TCIF3_Msk                               /*!< Channel 3 Transfer Complete flag */
2976 #define DMA_ISR_HTIF3_Pos      (10U)
2977 #define DMA_ISR_HTIF3_Msk      (0x1UL << DMA_ISR_HTIF3_Pos)                    /*!< 0x00000400 */
2978 #define DMA_ISR_HTIF3          DMA_ISR_HTIF3_Msk                               /*!< Channel 3 Half Transfer flag */
2979 #define DMA_ISR_TEIF3_Pos      (11U)
2980 #define DMA_ISR_TEIF3_Msk      (0x1UL << DMA_ISR_TEIF3_Pos)                    /*!< 0x00000800 */
2981 #define DMA_ISR_TEIF3          DMA_ISR_TEIF3_Msk                               /*!< Channel 3 Transfer Error flag */
2982 #define DMA_ISR_GIF4_Pos       (12U)
2983 #define DMA_ISR_GIF4_Msk       (0x1UL << DMA_ISR_GIF4_Pos)                     /*!< 0x00001000 */
2984 #define DMA_ISR_GIF4           DMA_ISR_GIF4_Msk                                /*!< Channel 4 Global interrupt flag */
2985 #define DMA_ISR_TCIF4_Pos      (13U)
2986 #define DMA_ISR_TCIF4_Msk      (0x1UL << DMA_ISR_TCIF4_Pos)                    /*!< 0x00002000 */
2987 #define DMA_ISR_TCIF4          DMA_ISR_TCIF4_Msk                               /*!< Channel 4 Transfer Complete flag */
2988 #define DMA_ISR_HTIF4_Pos      (14U)
2989 #define DMA_ISR_HTIF4_Msk      (0x1UL << DMA_ISR_HTIF4_Pos)                    /*!< 0x00004000 */
2990 #define DMA_ISR_HTIF4          DMA_ISR_HTIF4_Msk                               /*!< Channel 4 Half Transfer flag */
2991 #define DMA_ISR_TEIF4_Pos      (15U)
2992 #define DMA_ISR_TEIF4_Msk      (0x1UL << DMA_ISR_TEIF4_Pos)                    /*!< 0x00008000 */
2993 #define DMA_ISR_TEIF4          DMA_ISR_TEIF4_Msk                               /*!< Channel 4 Transfer Error flag */
2994 #define DMA_ISR_GIF5_Pos       (16U)
2995 #define DMA_ISR_GIF5_Msk       (0x1UL << DMA_ISR_GIF5_Pos)                     /*!< 0x00010000 */
2996 #define DMA_ISR_GIF5           DMA_ISR_GIF5_Msk                                /*!< Channel 5 Global interrupt flag */
2997 #define DMA_ISR_TCIF5_Pos      (17U)
2998 #define DMA_ISR_TCIF5_Msk      (0x1UL << DMA_ISR_TCIF5_Pos)                    /*!< 0x00020000 */
2999 #define DMA_ISR_TCIF5          DMA_ISR_TCIF5_Msk                               /*!< Channel 5 Transfer Complete flag */
3000 #define DMA_ISR_HTIF5_Pos      (18U)
3001 #define DMA_ISR_HTIF5_Msk      (0x1UL << DMA_ISR_HTIF5_Pos)                    /*!< 0x00040000 */
3002 #define DMA_ISR_HTIF5          DMA_ISR_HTIF5_Msk                               /*!< Channel 5 Half Transfer flag */
3003 #define DMA_ISR_TEIF5_Pos      (19U)
3004 #define DMA_ISR_TEIF5_Msk      (0x1UL << DMA_ISR_TEIF5_Pos)                    /*!< 0x00080000 */
3005 #define DMA_ISR_TEIF5          DMA_ISR_TEIF5_Msk                               /*!< Channel 5 Transfer Error flag */
3006 #define DMA_ISR_GIF6_Pos       (20U)
3007 #define DMA_ISR_GIF6_Msk       (0x1UL << DMA_ISR_GIF6_Pos)                     /*!< 0x00100000 */
3008 #define DMA_ISR_GIF6           DMA_ISR_GIF6_Msk                                /*!< Channel 6 Global interrupt flag */
3009 #define DMA_ISR_TCIF6_Pos      (21U)
3010 #define DMA_ISR_TCIF6_Msk      (0x1UL << DMA_ISR_TCIF6_Pos)                    /*!< 0x00200000 */
3011 #define DMA_ISR_TCIF6          DMA_ISR_TCIF6_Msk                               /*!< Channel 6 Transfer Complete flag */
3012 #define DMA_ISR_HTIF6_Pos      (22U)
3013 #define DMA_ISR_HTIF6_Msk      (0x1UL << DMA_ISR_HTIF6_Pos)                    /*!< 0x00400000 */
3014 #define DMA_ISR_HTIF6          DMA_ISR_HTIF6_Msk                               /*!< Channel 6 Half Transfer flag */
3015 #define DMA_ISR_TEIF6_Pos      (23U)
3016 #define DMA_ISR_TEIF6_Msk      (0x1UL << DMA_ISR_TEIF6_Pos)                    /*!< 0x00800000 */
3017 #define DMA_ISR_TEIF6          DMA_ISR_TEIF6_Msk                               /*!< Channel 6 Transfer Error flag */
3018 #define DMA_ISR_GIF7_Pos       (24U)
3019 #define DMA_ISR_GIF7_Msk       (0x1UL << DMA_ISR_GIF7_Pos)                     /*!< 0x01000000 */
3020 #define DMA_ISR_GIF7           DMA_ISR_GIF7_Msk                                /*!< Channel 7 Global interrupt flag */
3021 #define DMA_ISR_TCIF7_Pos      (25U)
3022 #define DMA_ISR_TCIF7_Msk      (0x1UL << DMA_ISR_TCIF7_Pos)                    /*!< 0x02000000 */
3023 #define DMA_ISR_TCIF7          DMA_ISR_TCIF7_Msk                               /*!< Channel 7 Transfer Complete flag */
3024 #define DMA_ISR_HTIF7_Pos      (26U)
3025 #define DMA_ISR_HTIF7_Msk      (0x1UL << DMA_ISR_HTIF7_Pos)                    /*!< 0x04000000 */
3026 #define DMA_ISR_HTIF7          DMA_ISR_HTIF7_Msk                               /*!< Channel 7 Half Transfer flag */
3027 #define DMA_ISR_TEIF7_Pos      (27U)
3028 #define DMA_ISR_TEIF7_Msk      (0x1UL << DMA_ISR_TEIF7_Pos)                    /*!< 0x08000000 */
3029 #define DMA_ISR_TEIF7          DMA_ISR_TEIF7_Msk                               /*!< Channel 7 Transfer Error flag */
3030 
3031 /*******************  Bit definition for DMA_IFCR register  *******************/
3032 #define DMA_IFCR_CGIF1_Pos     (0U)
3033 #define DMA_IFCR_CGIF1_Msk     (0x1UL << DMA_IFCR_CGIF1_Pos)                   /*!< 0x00000001 */
3034 #define DMA_IFCR_CGIF1         DMA_IFCR_CGIF1_Msk                              /*!< Channel 1 Global interrupt clear */
3035 #define DMA_IFCR_CTCIF1_Pos    (1U)
3036 #define DMA_IFCR_CTCIF1_Msk    (0x1UL << DMA_IFCR_CTCIF1_Pos)                  /*!< 0x00000002 */
3037 #define DMA_IFCR_CTCIF1        DMA_IFCR_CTCIF1_Msk                             /*!< Channel 1 Transfer Complete clear */
3038 #define DMA_IFCR_CHTIF1_Pos    (2U)
3039 #define DMA_IFCR_CHTIF1_Msk    (0x1UL << DMA_IFCR_CHTIF1_Pos)                  /*!< 0x00000004 */
3040 #define DMA_IFCR_CHTIF1        DMA_IFCR_CHTIF1_Msk                             /*!< Channel 1 Half Transfer clear */
3041 #define DMA_IFCR_CTEIF1_Pos    (3U)
3042 #define DMA_IFCR_CTEIF1_Msk    (0x1UL << DMA_IFCR_CTEIF1_Pos)                  /*!< 0x00000008 */
3043 #define DMA_IFCR_CTEIF1        DMA_IFCR_CTEIF1_Msk                             /*!< Channel 1 Transfer Error clear */
3044 #define DMA_IFCR_CGIF2_Pos     (4U)
3045 #define DMA_IFCR_CGIF2_Msk     (0x1UL << DMA_IFCR_CGIF2_Pos)                   /*!< 0x00000010 */
3046 #define DMA_IFCR_CGIF2         DMA_IFCR_CGIF2_Msk                              /*!< Channel 2 Global interrupt clear */
3047 #define DMA_IFCR_CTCIF2_Pos    (5U)
3048 #define DMA_IFCR_CTCIF2_Msk    (0x1UL << DMA_IFCR_CTCIF2_Pos)                  /*!< 0x00000020 */
3049 #define DMA_IFCR_CTCIF2        DMA_IFCR_CTCIF2_Msk                             /*!< Channel 2 Transfer Complete clear */
3050 #define DMA_IFCR_CHTIF2_Pos    (6U)
3051 #define DMA_IFCR_CHTIF2_Msk    (0x1UL << DMA_IFCR_CHTIF2_Pos)                  /*!< 0x00000040 */
3052 #define DMA_IFCR_CHTIF2        DMA_IFCR_CHTIF2_Msk                             /*!< Channel 2 Half Transfer clear */
3053 #define DMA_IFCR_CTEIF2_Pos    (7U)
3054 #define DMA_IFCR_CTEIF2_Msk    (0x1UL << DMA_IFCR_CTEIF2_Pos)                  /*!< 0x00000080 */
3055 #define DMA_IFCR_CTEIF2        DMA_IFCR_CTEIF2_Msk                             /*!< Channel 2 Transfer Error clear */
3056 #define DMA_IFCR_CGIF3_Pos     (8U)
3057 #define DMA_IFCR_CGIF3_Msk     (0x1UL << DMA_IFCR_CGIF3_Pos)                   /*!< 0x00000100 */
3058 #define DMA_IFCR_CGIF3         DMA_IFCR_CGIF3_Msk                              /*!< Channel 3 Global interrupt clear */
3059 #define DMA_IFCR_CTCIF3_Pos    (9U)
3060 #define DMA_IFCR_CTCIF3_Msk    (0x1UL << DMA_IFCR_CTCIF3_Pos)                  /*!< 0x00000200 */
3061 #define DMA_IFCR_CTCIF3        DMA_IFCR_CTCIF3_Msk                             /*!< Channel 3 Transfer Complete clear */
3062 #define DMA_IFCR_CHTIF3_Pos    (10U)
3063 #define DMA_IFCR_CHTIF3_Msk    (0x1UL << DMA_IFCR_CHTIF3_Pos)                  /*!< 0x00000400 */
3064 #define DMA_IFCR_CHTIF3        DMA_IFCR_CHTIF3_Msk                             /*!< Channel 3 Half Transfer clear */
3065 #define DMA_IFCR_CTEIF3_Pos    (11U)
3066 #define DMA_IFCR_CTEIF3_Msk    (0x1UL << DMA_IFCR_CTEIF3_Pos)                  /*!< 0x00000800 */
3067 #define DMA_IFCR_CTEIF3        DMA_IFCR_CTEIF3_Msk                             /*!< Channel 3 Transfer Error clear */
3068 #define DMA_IFCR_CGIF4_Pos     (12U)
3069 #define DMA_IFCR_CGIF4_Msk     (0x1UL << DMA_IFCR_CGIF4_Pos)                   /*!< 0x00001000 */
3070 #define DMA_IFCR_CGIF4         DMA_IFCR_CGIF4_Msk                              /*!< Channel 4 Global interrupt clear */
3071 #define DMA_IFCR_CTCIF4_Pos    (13U)
3072 #define DMA_IFCR_CTCIF4_Msk    (0x1UL << DMA_IFCR_CTCIF4_Pos)                  /*!< 0x00002000 */
3073 #define DMA_IFCR_CTCIF4        DMA_IFCR_CTCIF4_Msk                             /*!< Channel 4 Transfer Complete clear */
3074 #define DMA_IFCR_CHTIF4_Pos    (14U)
3075 #define DMA_IFCR_CHTIF4_Msk    (0x1UL << DMA_IFCR_CHTIF4_Pos)                  /*!< 0x00004000 */
3076 #define DMA_IFCR_CHTIF4        DMA_IFCR_CHTIF4_Msk                             /*!< Channel 4 Half Transfer clear */
3077 #define DMA_IFCR_CTEIF4_Pos    (15U)
3078 #define DMA_IFCR_CTEIF4_Msk    (0x1UL << DMA_IFCR_CTEIF4_Pos)                  /*!< 0x00008000 */
3079 #define DMA_IFCR_CTEIF4        DMA_IFCR_CTEIF4_Msk                             /*!< Channel 4 Transfer Error clear */
3080 #define DMA_IFCR_CGIF5_Pos     (16U)
3081 #define DMA_IFCR_CGIF5_Msk     (0x1UL << DMA_IFCR_CGIF5_Pos)                   /*!< 0x00010000 */
3082 #define DMA_IFCR_CGIF5         DMA_IFCR_CGIF5_Msk                              /*!< Channel 5 Global interrupt clear */
3083 #define DMA_IFCR_CTCIF5_Pos    (17U)
3084 #define DMA_IFCR_CTCIF5_Msk    (0x1UL << DMA_IFCR_CTCIF5_Pos)                  /*!< 0x00020000 */
3085 #define DMA_IFCR_CTCIF5        DMA_IFCR_CTCIF5_Msk                             /*!< Channel 5 Transfer Complete clear */
3086 #define DMA_IFCR_CHTIF5_Pos    (18U)
3087 #define DMA_IFCR_CHTIF5_Msk    (0x1UL << DMA_IFCR_CHTIF5_Pos)                  /*!< 0x00040000 */
3088 #define DMA_IFCR_CHTIF5        DMA_IFCR_CHTIF5_Msk                             /*!< Channel 5 Half Transfer clear */
3089 #define DMA_IFCR_CTEIF5_Pos    (19U)
3090 #define DMA_IFCR_CTEIF5_Msk    (0x1UL << DMA_IFCR_CTEIF5_Pos)                  /*!< 0x00080000 */
3091 #define DMA_IFCR_CTEIF5        DMA_IFCR_CTEIF5_Msk                             /*!< Channel 5 Transfer Error clear */
3092 #define DMA_IFCR_CGIF6_Pos     (20U)
3093 #define DMA_IFCR_CGIF6_Msk     (0x1UL << DMA_IFCR_CGIF6_Pos)                   /*!< 0x00100000 */
3094 #define DMA_IFCR_CGIF6         DMA_IFCR_CGIF6_Msk                              /*!< Channel 6 Global interrupt clear */
3095 #define DMA_IFCR_CTCIF6_Pos    (21U)
3096 #define DMA_IFCR_CTCIF6_Msk    (0x1UL << DMA_IFCR_CTCIF6_Pos)                  /*!< 0x00200000 */
3097 #define DMA_IFCR_CTCIF6        DMA_IFCR_CTCIF6_Msk                             /*!< Channel 6 Transfer Complete clear */
3098 #define DMA_IFCR_CHTIF6_Pos    (22U)
3099 #define DMA_IFCR_CHTIF6_Msk    (0x1UL << DMA_IFCR_CHTIF6_Pos)                  /*!< 0x00400000 */
3100 #define DMA_IFCR_CHTIF6        DMA_IFCR_CHTIF6_Msk                             /*!< Channel 6 Half Transfer clear */
3101 #define DMA_IFCR_CTEIF6_Pos    (23U)
3102 #define DMA_IFCR_CTEIF6_Msk    (0x1UL << DMA_IFCR_CTEIF6_Pos)                  /*!< 0x00800000 */
3103 #define DMA_IFCR_CTEIF6        DMA_IFCR_CTEIF6_Msk                             /*!< Channel 6 Transfer Error clear */
3104 #define DMA_IFCR_CGIF7_Pos     (24U)
3105 #define DMA_IFCR_CGIF7_Msk     (0x1UL << DMA_IFCR_CGIF7_Pos)                   /*!< 0x01000000 */
3106 #define DMA_IFCR_CGIF7         DMA_IFCR_CGIF7_Msk                              /*!< Channel 7 Global interrupt clear */
3107 #define DMA_IFCR_CTCIF7_Pos    (25U)
3108 #define DMA_IFCR_CTCIF7_Msk    (0x1UL << DMA_IFCR_CTCIF7_Pos)                  /*!< 0x02000000 */
3109 #define DMA_IFCR_CTCIF7        DMA_IFCR_CTCIF7_Msk                             /*!< Channel 7 Transfer Complete clear */
3110 #define DMA_IFCR_CHTIF7_Pos    (26U)
3111 #define DMA_IFCR_CHTIF7_Msk    (0x1UL << DMA_IFCR_CHTIF7_Pos)                  /*!< 0x04000000 */
3112 #define DMA_IFCR_CHTIF7        DMA_IFCR_CHTIF7_Msk                             /*!< Channel 7 Half Transfer clear */
3113 #define DMA_IFCR_CTEIF7_Pos    (27U)
3114 #define DMA_IFCR_CTEIF7_Msk    (0x1UL << DMA_IFCR_CTEIF7_Pos)                  /*!< 0x08000000 */
3115 #define DMA_IFCR_CTEIF7        DMA_IFCR_CTEIF7_Msk                             /*!< Channel 7 Transfer Error clear */
3116 
3117 /*******************  Bit definition for DMA_CCR register  ********************/
3118 #define DMA_CCR_EN_Pos         (0U)
3119 #define DMA_CCR_EN_Msk         (0x1UL << DMA_CCR_EN_Pos)                       /*!< 0x00000001 */
3120 #define DMA_CCR_EN             DMA_CCR_EN_Msk                                  /*!< Channel enable                      */
3121 #define DMA_CCR_TCIE_Pos       (1U)
3122 #define DMA_CCR_TCIE_Msk       (0x1UL << DMA_CCR_TCIE_Pos)                     /*!< 0x00000002 */
3123 #define DMA_CCR_TCIE           DMA_CCR_TCIE_Msk                                /*!< Transfer complete interrupt enable  */
3124 #define DMA_CCR_HTIE_Pos       (2U)
3125 #define DMA_CCR_HTIE_Msk       (0x1UL << DMA_CCR_HTIE_Pos)                     /*!< 0x00000004 */
3126 #define DMA_CCR_HTIE           DMA_CCR_HTIE_Msk                                /*!< Half Transfer interrupt enable      */
3127 #define DMA_CCR_TEIE_Pos       (3U)
3128 #define DMA_CCR_TEIE_Msk       (0x1UL << DMA_CCR_TEIE_Pos)                     /*!< 0x00000008 */
3129 #define DMA_CCR_TEIE           DMA_CCR_TEIE_Msk                                /*!< Transfer error interrupt enable     */
3130 #define DMA_CCR_DIR_Pos        (4U)
3131 #define DMA_CCR_DIR_Msk        (0x1UL << DMA_CCR_DIR_Pos)                      /*!< 0x00000010 */
3132 #define DMA_CCR_DIR            DMA_CCR_DIR_Msk                                 /*!< Data transfer direction             */
3133 #define DMA_CCR_CIRC_Pos       (5U)
3134 #define DMA_CCR_CIRC_Msk       (0x1UL << DMA_CCR_CIRC_Pos)                     /*!< 0x00000020 */
3135 #define DMA_CCR_CIRC           DMA_CCR_CIRC_Msk                                /*!< Circular mode                       */
3136 #define DMA_CCR_PINC_Pos       (6U)
3137 #define DMA_CCR_PINC_Msk       (0x1UL << DMA_CCR_PINC_Pos)                     /*!< 0x00000040 */
3138 #define DMA_CCR_PINC           DMA_CCR_PINC_Msk                                /*!< Peripheral increment mode           */
3139 #define DMA_CCR_MINC_Pos       (7U)
3140 #define DMA_CCR_MINC_Msk       (0x1UL << DMA_CCR_MINC_Pos)                     /*!< 0x00000080 */
3141 #define DMA_CCR_MINC           DMA_CCR_MINC_Msk                                /*!< Memory increment mode               */
3142 
3143 #define DMA_CCR_PSIZE_Pos      (8U)
3144 #define DMA_CCR_PSIZE_Msk      (0x3UL << DMA_CCR_PSIZE_Pos)                    /*!< 0x00000300 */
3145 #define DMA_CCR_PSIZE          DMA_CCR_PSIZE_Msk                               /*!< PSIZE[1:0] bits (Peripheral size)   */
3146 #define DMA_CCR_PSIZE_0        (0x1UL << DMA_CCR_PSIZE_Pos)                    /*!< 0x00000100 */
3147 #define DMA_CCR_PSIZE_1        (0x2UL << DMA_CCR_PSIZE_Pos)                    /*!< 0x00000200 */
3148 
3149 #define DMA_CCR_MSIZE_Pos      (10U)
3150 #define DMA_CCR_MSIZE_Msk      (0x3UL << DMA_CCR_MSIZE_Pos)                    /*!< 0x00000C00 */
3151 #define DMA_CCR_MSIZE          DMA_CCR_MSIZE_Msk                               /*!< MSIZE[1:0] bits (Memory size)       */
3152 #define DMA_CCR_MSIZE_0        (0x1UL << DMA_CCR_MSIZE_Pos)                    /*!< 0x00000400 */
3153 #define DMA_CCR_MSIZE_1        (0x2UL << DMA_CCR_MSIZE_Pos)                    /*!< 0x00000800 */
3154 
3155 #define DMA_CCR_PL_Pos         (12U)
3156 #define DMA_CCR_PL_Msk         (0x3UL << DMA_CCR_PL_Pos)                       /*!< 0x00003000 */
3157 #define DMA_CCR_PL             DMA_CCR_PL_Msk                                  /*!< PL[1:0] bits(Channel Priority level)*/
3158 #define DMA_CCR_PL_0           (0x1UL << DMA_CCR_PL_Pos)                       /*!< 0x00001000 */
3159 #define DMA_CCR_PL_1           (0x2UL << DMA_CCR_PL_Pos)                       /*!< 0x00002000 */
3160 
3161 #define DMA_CCR_MEM2MEM_Pos    (14U)
3162 #define DMA_CCR_MEM2MEM_Msk    (0x1UL << DMA_CCR_MEM2MEM_Pos)                  /*!< 0x00004000 */
3163 #define DMA_CCR_MEM2MEM        DMA_CCR_MEM2MEM_Msk                             /*!< Memory to memory mode               */
3164 
3165 #define DMA_CCR_SECM_Pos       (17U)
3166 #define DMA_CCR_SECM_Msk       (0x1UL << DMA_CCR_SECM_Pos)                    /*!< 0x00020000 */
3167 #define DMA_CCR_SECM           DMA_CCR_SECM_Msk                               /*!< Secure mode                          */
3168 #define DMA_CCR_SSEC_Pos       (18U)
3169 #define DMA_CCR_SSEC_Msk       (0x1UL << DMA_CCR_SSEC_Pos)                    /*!< 0x00040000 */
3170 #define DMA_CCR_SSEC           DMA_CCR_SSEC_Msk                               /*!< Security of the DMA transfer from the source, only accessible write, read by CM0PLUS    */
3171 #define DMA_CCR_DSEC_Pos       (19U)
3172 #define DMA_CCR_DSEC_Msk       (0x1UL << DMA_CCR_DSEC_Pos)                    /*!< 0x00080000 */
3173 #define DMA_CCR_DSEC           DMA_CCR_DSEC_Msk                               /*!< Security of the DMA transfer to the destination, only accessible write, read by CM0PLUS */
3174 #define DMA_CCR_PRIV_Pos       (20U)
3175 #define DMA_CCR_PRIV_Msk       (0x1UL << DMA_CCR_PRIV_Pos)                    /*!< 0x00100000 */
3176 #define DMA_CCR_PRIV           DMA_CCR_PRIV_Msk                               /*!< Privileged mode                      */
3177 
3178 /******************  Bit definition for DMA_CNDTR register  *******************/
3179 #define DMA_CNDTR_NDT_Pos      (0U)
3180 #define DMA_CNDTR_NDT_Msk      (0x3FFFFUL << DMA_CNDTR_NDT_Pos)                /*!< 0x0003FFFF */
3181 #define DMA_CNDTR_NDT          DMA_CNDTR_NDT_Msk                               /*!< Number of data to Transfer          */
3182 
3183 /******************  Bit definition for DMA_CPAR register  ********************/
3184 #define DMA_CPAR_PA_Pos        (0U)
3185 #define DMA_CPAR_PA_Msk        (0xFFFFFFFFUL << DMA_CPAR_PA_Pos)               /*!< 0xFFFFFFFF */
3186 #define DMA_CPAR_PA            DMA_CPAR_PA_Msk                                 /*!< Peripheral Address                  */
3187 
3188 /******************  Bit definition for DMA_CMAR register  ********************/
3189 #define DMA_CMAR_MA_Pos        (0U)
3190 #define DMA_CMAR_MA_Msk        (0xFFFFFFFFUL << DMA_CMAR_MA_Pos)               /*!< 0xFFFFFFFF */
3191 #define DMA_CMAR_MA            DMA_CMAR_MA_Msk                                 /*!< Memory Address                      */
3192 
3193 /******************************************************************************/
3194 /*                                                                            */
3195 /*                             DMAMUX Controller                              */
3196 /*                                                                            */
3197 /******************************************************************************/
3198 /********************  Bits definition for DMAMUX_CxCR register  **************/
3199 #define DMAMUX_CxCR_DMAREQ_ID_Pos              (0U)
3200 #define DMAMUX_CxCR_DMAREQ_ID_Msk              (0x7FUL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x0000007F */
3201 #define DMAMUX_CxCR_DMAREQ_ID                  DMAMUX_CxCR_DMAREQ_ID_Msk       /*!< DMA Request ID                       */
3202 #define DMAMUX_CxCR_DMAREQ_ID_0                (0x01UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000001 */
3203 #define DMAMUX_CxCR_DMAREQ_ID_1                (0x02UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000002 */
3204 #define DMAMUX_CxCR_DMAREQ_ID_2                (0x04UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000004 */
3205 #define DMAMUX_CxCR_DMAREQ_ID_3                (0x08UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000008 */
3206 #define DMAMUX_CxCR_DMAREQ_ID_4                (0x10UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000010 */
3207 #define DMAMUX_CxCR_DMAREQ_ID_5                (0x20UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000020 */
3208 #define DMAMUX_CxCR_DMAREQ_ID_6                (0x40UL << DMAMUX_CxCR_DMAREQ_ID_Pos)/*!< 0x00000040 */
3209 #define DMAMUX_CxCR_SOIE_Pos                   (8U)
3210 #define DMAMUX_CxCR_SOIE_Msk                   (0x1UL << DMAMUX_CxCR_SOIE_Pos) /*!< 0x00000100 */
3211 #define DMAMUX_CxCR_SOIE                       DMAMUX_CxCR_SOIE_Msk            /*!< Synchro overrun interrupt enable     */
3212 #define DMAMUX_CxCR_EGE_Pos                    (9U)
3213 #define DMAMUX_CxCR_EGE_Msk                    (0x1UL << DMAMUX_CxCR_EGE_Pos)  /*!< 0x00000200 */
3214 #define DMAMUX_CxCR_EGE                        DMAMUX_CxCR_EGE_Msk             /*!< Event generation interrupt enable    */
3215 #define DMAMUX_CxCR_SE_Pos                     (16U)
3216 #define DMAMUX_CxCR_SE_Msk                     (0x1UL << DMAMUX_CxCR_SE_Pos)   /*!< 0x00010000 */
3217 #define DMAMUX_CxCR_SE                         DMAMUX_CxCR_SE_Msk              /*!< Synchronization enable               */
3218 #define DMAMUX_CxCR_SPOL_Pos                   (17U)
3219 #define DMAMUX_CxCR_SPOL_Msk                   (0x3UL << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00060000 */
3220 #define DMAMUX_CxCR_SPOL                       DMAMUX_CxCR_SPOL_Msk            /*!< Synchronization polarity             */
3221 #define DMAMUX_CxCR_SPOL_0                     (0x1UL << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00020000 */
3222 #define DMAMUX_CxCR_SPOL_1                     (0x2UL << DMAMUX_CxCR_SPOL_Pos) /*!< 0x00040000 */
3223 #define DMAMUX_CxCR_NBREQ_Pos                  (19U)
3224 #define DMAMUX_CxCR_NBREQ_Msk                  (0x1FUL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00F80000 */
3225 #define DMAMUX_CxCR_NBREQ                      DMAMUX_CxCR_NBREQ_Msk           /*!< Number of request                    */
3226 #define DMAMUX_CxCR_NBREQ_0                    (0x01UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00080000 */
3227 #define DMAMUX_CxCR_NBREQ_1                    (0x02UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00100000 */
3228 #define DMAMUX_CxCR_NBREQ_2                    (0x04UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00200000 */
3229 #define DMAMUX_CxCR_NBREQ_3                    (0x08UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00400000 */
3230 #define DMAMUX_CxCR_NBREQ_4                    (0x10UL << DMAMUX_CxCR_NBREQ_Pos)/*!< 0x00800000 */
3231 #define DMAMUX_CxCR_SYNC_ID_Pos                (24U)
3232 #define DMAMUX_CxCR_SYNC_ID_Msk                (0x1FUL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x1F000000 */
3233 #define DMAMUX_CxCR_SYNC_ID                    DMAMUX_CxCR_SYNC_ID_Msk         /*!< Synchronization ID                   */
3234 #define DMAMUX_CxCR_SYNC_ID_0                  (0x01UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x01000000 */
3235 #define DMAMUX_CxCR_SYNC_ID_1                  (0x02UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x02000000 */
3236 #define DMAMUX_CxCR_SYNC_ID_2                  (0x04UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x04000000 */
3237 #define DMAMUX_CxCR_SYNC_ID_3                  (0x08UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x08000000 */
3238 #define DMAMUX_CxCR_SYNC_ID_4                  (0x10UL << DMAMUX_CxCR_SYNC_ID_Pos)/*!< 0x10000000 */
3239 
3240 /*******************  Bits definition for DMAMUX_CSR register  **************/
3241 #define DMAMUX_CSR_SOF0_Pos                    (0U)
3242 #define DMAMUX_CSR_SOF0_Msk                    (0x1UL << DMAMUX_CSR_SOF0_Pos)  /*!< 0x00000001 */
3243 #define DMAMUX_CSR_SOF0                        DMAMUX_CSR_SOF0_Msk             /*!< Synchronization Overrun Flag 0       */
3244 #define DMAMUX_CSR_SOF1_Pos                    (1U)
3245 #define DMAMUX_CSR_SOF1_Msk                    (0x1UL << DMAMUX_CSR_SOF1_Pos)  /*!< 0x00000002 */
3246 #define DMAMUX_CSR_SOF1                        DMAMUX_CSR_SOF1_Msk             /*!< Synchronization Overrun Flag 1       */
3247 #define DMAMUX_CSR_SOF2_Pos                    (2U)
3248 #define DMAMUX_CSR_SOF2_Msk                    (0x1UL << DMAMUX_CSR_SOF2_Pos)  /*!< 0x00000004 */
3249 #define DMAMUX_CSR_SOF2                        DMAMUX_CSR_SOF2_Msk             /*!< Synchronization Overrun Flag 2       */
3250 #define DMAMUX_CSR_SOF3_Pos                    (3U)
3251 #define DMAMUX_CSR_SOF3_Msk                    (0x1UL << DMAMUX_CSR_SOF3_Pos)  /*!< 0x00000008 */
3252 #define DMAMUX_CSR_SOF3                        DMAMUX_CSR_SOF3_Msk             /*!< Synchronization Overrun Flag 3       */
3253 #define DMAMUX_CSR_SOF4_Pos                    (4U)
3254 #define DMAMUX_CSR_SOF4_Msk                    (0x1UL << DMAMUX_CSR_SOF4_Pos)  /*!< 0x00000010 */
3255 #define DMAMUX_CSR_SOF4                        DMAMUX_CSR_SOF4_Msk             /*!< Synchronization Overrun Flag 4       */
3256 #define DMAMUX_CSR_SOF5_Pos                    (5U)
3257 #define DMAMUX_CSR_SOF5_Msk                    (0x1UL << DMAMUX_CSR_SOF5_Pos)  /*!< 0x00000020 */
3258 #define DMAMUX_CSR_SOF5                        DMAMUX_CSR_SOF5_Msk             /*!< Synchronization Overrun Flag 5       */
3259 #define DMAMUX_CSR_SOF6_Pos                    (6U)
3260 #define DMAMUX_CSR_SOF6_Msk                    (0x1UL << DMAMUX_CSR_SOF6_Pos)  /*!< 0x00000040 */
3261 #define DMAMUX_CSR_SOF6                        DMAMUX_CSR_SOF6_Msk             /*!< Synchronization Overrun Flag 6       */
3262 #define DMAMUX_CSR_SOF7_Pos                    (7U)
3263 #define DMAMUX_CSR_SOF7_Msk                    (0x1UL << DMAMUX_CSR_SOF7_Pos)  /*!< 0x00000080 */
3264 #define DMAMUX_CSR_SOF7                        DMAMUX_CSR_SOF7_Msk             /*!< Synchronization Overrun Flag 7       */
3265 #define DMAMUX_CSR_SOF8_Pos                    (8U)
3266 #define DMAMUX_CSR_SOF8_Msk                    (0x1UL << DMAMUX_CSR_SOF8_Pos)  /*!< 0x00000100 */
3267 #define DMAMUX_CSR_SOF8                        DMAMUX_CSR_SOF8_Msk             /*!< Synchronization Overrun Flag 8       */
3268 #define DMAMUX_CSR_SOF9_Pos                    (9U)
3269 #define DMAMUX_CSR_SOF9_Msk                    (0x1UL << DMAMUX_CSR_SOF9_Pos)  /*!< 0x00000200 */
3270 #define DMAMUX_CSR_SOF9                        DMAMUX_CSR_SOF9_Msk             /*!< Synchronization Overrun Flag 9       */
3271 #define DMAMUX_CSR_SOF10_Pos                   (10U)
3272 #define DMAMUX_CSR_SOF10_Msk                   (0x1UL << DMAMUX_CSR_SOF10_Pos) /*!< 0x00000400 */
3273 #define DMAMUX_CSR_SOF10                       DMAMUX_CSR_SOF10_Msk            /*!< Synchronization Overrun Flag 10      */
3274 #define DMAMUX_CSR_SOF11_Pos                   (11U)
3275 #define DMAMUX_CSR_SOF11_Msk                   (0x1UL << DMAMUX_CSR_SOF11_Pos) /*!< 0x00000800 */
3276 #define DMAMUX_CSR_SOF11                       DMAMUX_CSR_SOF11_Msk            /*!< Synchronization Overrun Flag 11      */
3277 #define DMAMUX_CSR_SOF12_Pos                   (12U)
3278 #define DMAMUX_CSR_SOF12_Msk                   (0x1UL << DMAMUX_CSR_SOF12_Pos) /*!< 0x00001000 */
3279 #define DMAMUX_CSR_SOF12                       DMAMUX_CSR_SOF12_Msk            /*!< Synchronization Overrun Flag 12      */
3280 #define DMAMUX_CSR_SOF13_Pos                   (13U)
3281 #define DMAMUX_CSR_SOF13_Msk                   (0x1UL << DMAMUX_CSR_SOF13_Pos) /*!< 0x00002000 */
3282 #define DMAMUX_CSR_SOF13                       DMAMUX_CSR_SOF13_Msk            /*!< Synchronization Overrun Flag 13      */
3283 
3284 /********************  Bits definition for DMAMUX_CFR register  **************/
3285 #define DMAMUX_CFR_CSOF0_Pos                   (0U)
3286 #define DMAMUX_CFR_CSOF0_Msk                   (0x1UL << DMAMUX_CFR_CSOF0_Pos) /*!< 0x00000001 */
3287 #define DMAMUX_CFR_CSOF0                       DMAMUX_CFR_CSOF0_Msk            /*!< Clear Overrun Flag 0                 */
3288 #define DMAMUX_CFR_CSOF1_Pos                   (1U)
3289 #define DMAMUX_CFR_CSOF1_Msk                   (0x1UL << DMAMUX_CFR_CSOF1_Pos) /*!< 0x00000002 */
3290 #define DMAMUX_CFR_CSOF1                       DMAMUX_CFR_CSOF1_Msk            /*!< Clear Overrun Flag 1                 */
3291 #define DMAMUX_CFR_CSOF2_Pos                   (2U)
3292 #define DMAMUX_CFR_CSOF2_Msk                   (0x1UL << DMAMUX_CFR_CSOF2_Pos) /*!< 0x00000004 */
3293 #define DMAMUX_CFR_CSOF2                       DMAMUX_CFR_CSOF2_Msk            /*!< Clear Overrun Flag 2                 */
3294 #define DMAMUX_CFR_CSOF3_Pos                   (3U)
3295 #define DMAMUX_CFR_CSOF3_Msk                   (0x1UL << DMAMUX_CFR_CSOF3_Pos) /*!< 0x00000008 */
3296 #define DMAMUX_CFR_CSOF3                       DMAMUX_CFR_CSOF3_Msk            /*!< Clear Overrun Flag 3                 */
3297 #define DMAMUX_CFR_CSOF4_Pos                   (4U)
3298 #define DMAMUX_CFR_CSOF4_Msk                   (0x1UL << DMAMUX_CFR_CSOF4_Pos) /*!< 0x00000010 */
3299 #define DMAMUX_CFR_CSOF4                       DMAMUX_CFR_CSOF4_Msk            /*!< Clear Overrun Flag 4                 */
3300 #define DMAMUX_CFR_CSOF5_Pos                   (5U)
3301 #define DMAMUX_CFR_CSOF5_Msk                   (0x1UL << DMAMUX_CFR_CSOF5_Pos) /*!< 0x00000020 */
3302 #define DMAMUX_CFR_CSOF5                       DMAMUX_CFR_CSOF5_Msk            /*!< Clear Overrun Flag 5                 */
3303 #define DMAMUX_CFR_CSOF6_Pos                   (6U)
3304 #define DMAMUX_CFR_CSOF6_Msk                   (0x1UL << DMAMUX_CFR_CSOF6_Pos) /*!< 0x00000040 */
3305 #define DMAMUX_CFR_CSOF6                       DMAMUX_CFR_CSOF6_Msk            /*!< Clear Overrun Flag 6                 */
3306 #define DMAMUX_CFR_CSOF7_Pos                   (7U)
3307 #define DMAMUX_CFR_CSOF7_Msk                   (0x1UL << DMAMUX_CFR_CSOF7_Pos) /*!< 0x00000080 */
3308 #define DMAMUX_CFR_CSOF7                       DMAMUX_CFR_CSOF7_Msk            /*!< Clear Overrun Flag 7                 */
3309 #define DMAMUX_CFR_CSOF8_Pos                   (8U)
3310 #define DMAMUX_CFR_CSOF8_Msk                   (0x1UL << DMAMUX_CFR_CSOF8_Pos) /*!< 0x00000100 */
3311 #define DMAMUX_CFR_CSOF8                       DMAMUX_CFR_CSOF8_Msk            /*!< Clear Overrun Flag 8                 */
3312 #define DMAMUX_CFR_CSOF9_Pos                   (9U)
3313 #define DMAMUX_CFR_CSOF9_Msk                   (0x1UL << DMAMUX_CFR_CSOF9_Pos) /*!< 0x00000200 */
3314 #define DMAMUX_CFR_CSOF9                       DMAMUX_CFR_CSOF9_Msk            /*!< Clear Overrun Flag 9                 */
3315 #define DMAMUX_CFR_CSOF10_Pos                  (10U)
3316 #define DMAMUX_CFR_CSOF10_Msk                  (0x1UL << DMAMUX_CFR_CSOF10_Pos)/*!< 0x00000400 */
3317 #define DMAMUX_CFR_CSOF10                      DMAMUX_CFR_CSOF10_Msk           /*!< Clear Overrun Flag 10                */
3318 #define DMAMUX_CFR_CSOF11_Pos                  (11U)
3319 #define DMAMUX_CFR_CSOF11_Msk                  (0x1UL << DMAMUX_CFR_CSOF11_Pos)/*!< 0x00000800 */
3320 #define DMAMUX_CFR_CSOF11                      DMAMUX_CFR_CSOF11_Msk           /*!< Clear Overrun Flag 11                */
3321 #define DMAMUX_CFR_CSOF12_Pos                  (12U)
3322 #define DMAMUX_CFR_CSOF12_Msk                  (0x1UL << DMAMUX_CFR_CSOF12_Pos)/*!< 0x00001000 */
3323 #define DMAMUX_CFR_CSOF12                      DMAMUX_CFR_CSOF12_Msk           /*!< Clear Overrun Flag 12                */
3324 #define DMAMUX_CFR_CSOF13_Pos                  (13U)
3325 #define DMAMUX_CFR_CSOF13_Msk                  (0x1UL << DMAMUX_CFR_CSOF13_Pos)/*!< 0x00002000 */
3326 #define DMAMUX_CFR_CSOF13                      DMAMUX_CFR_CSOF13_Msk           /*!< Clear Overrun Flag 13                */
3327 
3328 /********************  Bits definition for DMAMUX_RGxCR register  ************/
3329 #define DMAMUX_RGxCR_SIG_ID_Pos                (0U)
3330 #define DMAMUX_RGxCR_SIG_ID_Msk                (0x1FUL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x0000001F */
3331 #define DMAMUX_RGxCR_SIG_ID                    DMAMUX_RGxCR_SIG_ID_Msk         /*!< Signal ID                            */
3332 #define DMAMUX_RGxCR_SIG_ID_0                  (0x01UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000001 */
3333 #define DMAMUX_RGxCR_SIG_ID_1                  (0x02UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000002 */
3334 #define DMAMUX_RGxCR_SIG_ID_2                  (0x04UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000004 */
3335 #define DMAMUX_RGxCR_SIG_ID_3                  (0x08UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000008 */
3336 #define DMAMUX_RGxCR_SIG_ID_4                  (0x10UL << DMAMUX_RGxCR_SIG_ID_Pos)/*!< 0x00000010 */
3337 #define DMAMUX_RGxCR_OIE_Pos                   (8U)
3338 #define DMAMUX_RGxCR_OIE_Msk                   (0x1UL << DMAMUX_RGxCR_OIE_Pos) /*!< 0x00000100 */
3339 #define DMAMUX_RGxCR_OIE                       DMAMUX_RGxCR_OIE_Msk            /*!< Overrun interrupt enable             */
3340 #define DMAMUX_RGxCR_GE_Pos                    (16U)
3341 #define DMAMUX_RGxCR_GE_Msk                    (0x1UL << DMAMUX_RGxCR_GE_Pos)  /*!< 0x00010000 */
3342 #define DMAMUX_RGxCR_GE                        DMAMUX_RGxCR_GE_Msk             /*!< Generation enable                    */
3343 #define DMAMUX_RGxCR_GPOL_Pos                  (17U)
3344 #define DMAMUX_RGxCR_GPOL_Msk                  (0x3UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00060000 */
3345 #define DMAMUX_RGxCR_GPOL                      DMAMUX_RGxCR_GPOL_Msk           /*!< Generation polarity                  */
3346 #define DMAMUX_RGxCR_GPOL_0                    (0x1UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00020000 */
3347 #define DMAMUX_RGxCR_GPOL_1                    (0x2UL << DMAMUX_RGxCR_GPOL_Pos)/*!< 0x00040000 */
3348 #define DMAMUX_RGxCR_GNBREQ_Pos                (19U)
3349 #define DMAMUX_RGxCR_GNBREQ_Msk                (0x1FUL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00F80000 */
3350 #define DMAMUX_RGxCR_GNBREQ                    DMAMUX_RGxCR_GNBREQ_Msk          /*!< Number of request                    */
3351 #define DMAMUX_RGxCR_GNBREQ_0                  (0x01UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00080000 */
3352 #define DMAMUX_RGxCR_GNBREQ_1                  (0x02UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00100000 */
3353 #define DMAMUX_RGxCR_GNBREQ_2                  (0x04UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00200000 */
3354 #define DMAMUX_RGxCR_GNBREQ_3                  (0x08UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00400000 */
3355 #define DMAMUX_RGxCR_GNBREQ_4                  (0x10UL << DMAMUX_RGxCR_GNBREQ_Pos)/*!< 0x00800000 */
3356 
3357 /********************  Bits definition for DMAMUX_RGSR register  **************/
3358 #define DMAMUX_RGSR_OF0_Pos                    (0U)
3359 #define DMAMUX_RGSR_OF0_Msk                    (0x1UL << DMAMUX_RGSR_OF0_Pos)  /*!< 0x00000001 */
3360 #define DMAMUX_RGSR_OF0                        DMAMUX_RGSR_OF0_Msk             /*!< Overrun flag 0                       */
3361 #define DMAMUX_RGSR_OF1_Pos                    (1U)
3362 #define DMAMUX_RGSR_OF1_Msk                    (0x1UL << DMAMUX_RGSR_OF1_Pos)  /*!< 0x00000002 */
3363 #define DMAMUX_RGSR_OF1                        DMAMUX_RGSR_OF1_Msk             /*!< Overrun flag 1                       */
3364 #define DMAMUX_RGSR_OF2_Pos                    (2U)
3365 #define DMAMUX_RGSR_OF2_Msk                    (0x1UL << DMAMUX_RGSR_OF2_Pos)  /*!< 0x00000004 */
3366 #define DMAMUX_RGSR_OF2                        DMAMUX_RGSR_OF2_Msk             /*!< Overrun flag 2                       */
3367 #define DMAMUX_RGSR_OF3_Pos                    (3U)
3368 #define DMAMUX_RGSR_OF3_Msk                    (0x1UL << DMAMUX_RGSR_OF3_Pos)  /*!< 0x00000008 */
3369 #define DMAMUX_RGSR_OF3                        DMAMUX_RGSR_OF3_Msk             /*!< Overrun flag 3                       */
3370 
3371 /********************  Bits definition for DMAMUX_RGCFR register  **************/
3372 #define DMAMUX_RGCFR_COF0_Pos                  (0U)
3373 #define DMAMUX_RGCFR_COF0_Msk                  (0x1UL << DMAMUX_RGCFR_COF0_Pos)/*!< 0x00000001 */
3374 #define DMAMUX_RGCFR_COF0                      DMAMUX_RGCFR_COF0_Msk           /*!< Clear Overrun flag 0                 */
3375 #define DMAMUX_RGCFR_COF1_Pos                  (1U)
3376 #define DMAMUX_RGCFR_COF1_Msk                  (0x1UL << DMAMUX_RGCFR_COF1_Pos)/*!< 0x00000002 */
3377 #define DMAMUX_RGCFR_COF1                      DMAMUX_RGCFR_COF1_Msk           /*!< Clear Overrun flag 1                 */
3378 #define DMAMUX_RGCFR_COF2_Pos                  (2U)
3379 #define DMAMUX_RGCFR_COF2_Msk                  (0x1UL << DMAMUX_RGCFR_COF2_Pos)/*!< 0x00000004 */
3380 #define DMAMUX_RGCFR_COF2                      DMAMUX_RGCFR_COF2_Msk           /*!< Clear Overrun flag 2                 */
3381 #define DMAMUX_RGCFR_COF3_Pos                  (3U)
3382 #define DMAMUX_RGCFR_COF3_Msk                  (0x1UL << DMAMUX_RGCFR_COF3_Pos)/*!< 0x00000008 */
3383 #define DMAMUX_RGCFR_COF3                      DMAMUX_RGCFR_COF3_Msk           /*!< Clear Overrun flag 3                 */
3384 
3385 /******************************************************************************/
3386 /*                                                                            */
3387 /*                    Asynchronous Interrupt/Event Controller                 */
3388 /*                                                                            */
3389 /******************************************************************************/
3390 
3391 /******************  Bit definition for EXTI_RTSR1 register  ******************/
3392 #define EXTI_RTSR1_RT0_Pos       (0U)
3393 #define EXTI_RTSR1_RT0_Msk       (0x1UL << EXTI_RTSR1_RT0_Pos)                 /*!< 0x00000001 */
3394 #define EXTI_RTSR1_RT0           EXTI_RTSR1_RT0_Msk                            /*!< Rising trigger event configuration bit of line 0 */
3395 #define EXTI_RTSR1_RT1_Pos       (1U)
3396 #define EXTI_RTSR1_RT1_Msk       (0x1UL << EXTI_RTSR1_RT1_Pos)                 /*!< 0x00000002 */
3397 #define EXTI_RTSR1_RT1           EXTI_RTSR1_RT1_Msk                            /*!< Rising trigger event configuration bit of line 1 */
3398 #define EXTI_RTSR1_RT2_Pos       (2U)
3399 #define EXTI_RTSR1_RT2_Msk       (0x1UL << EXTI_RTSR1_RT2_Pos)                 /*!< 0x00000004 */
3400 #define EXTI_RTSR1_RT2           EXTI_RTSR1_RT2_Msk                            /*!< Rising trigger event configuration bit of line 2 */
3401 #define EXTI_RTSR1_RT3_Pos       (3U)
3402 #define EXTI_RTSR1_RT3_Msk       (0x1UL << EXTI_RTSR1_RT3_Pos)                 /*!< 0x00000008 */
3403 #define EXTI_RTSR1_RT3           EXTI_RTSR1_RT3_Msk                            /*!< Rising trigger event configuration bit of line 3 */
3404 #define EXTI_RTSR1_RT4_Pos       (4U)
3405 #define EXTI_RTSR1_RT4_Msk       (0x1UL << EXTI_RTSR1_RT4_Pos)                 /*!< 0x00000010 */
3406 #define EXTI_RTSR1_RT4           EXTI_RTSR1_RT4_Msk                            /*!< Rising trigger event configuration bit of line 4 */
3407 #define EXTI_RTSR1_RT5_Pos       (5U)
3408 #define EXTI_RTSR1_RT5_Msk       (0x1UL << EXTI_RTSR1_RT5_Pos)                 /*!< 0x00000020 */
3409 #define EXTI_RTSR1_RT5           EXTI_RTSR1_RT5_Msk                            /*!< Rising trigger event configuration bit of line 5 */
3410 #define EXTI_RTSR1_RT6_Pos       (6U)
3411 #define EXTI_RTSR1_RT6_Msk       (0x1UL << EXTI_RTSR1_RT6_Pos)                 /*!< 0x00000040 */
3412 #define EXTI_RTSR1_RT6           EXTI_RTSR1_RT6_Msk                            /*!< Rising trigger event configuration bit of line 6 */
3413 #define EXTI_RTSR1_RT7_Pos       (7U)
3414 #define EXTI_RTSR1_RT7_Msk       (0x1UL << EXTI_RTSR1_RT7_Pos)                 /*!< 0x00000080 */
3415 #define EXTI_RTSR1_RT7           EXTI_RTSR1_RT7_Msk                            /*!< Rising trigger event configuration bit of line 7 */
3416 #define EXTI_RTSR1_RT8_Pos       (8U)
3417 #define EXTI_RTSR1_RT8_Msk       (0x1UL << EXTI_RTSR1_RT8_Pos)                 /*!< 0x00000100 */
3418 #define EXTI_RTSR1_RT8           EXTI_RTSR1_RT8_Msk                            /*!< Rising trigger event configuration bit of line 8 */
3419 #define EXTI_RTSR1_RT9_Pos       (9U)
3420 #define EXTI_RTSR1_RT9_Msk       (0x1UL << EXTI_RTSR1_RT9_Pos)                 /*!< 0x00000200 */
3421 #define EXTI_RTSR1_RT9           EXTI_RTSR1_RT9_Msk                            /*!< Rising trigger event configuration bit of line 9 */
3422 #define EXTI_RTSR1_RT10_Pos      (10U)
3423 #define EXTI_RTSR1_RT10_Msk      (0x1UL << EXTI_RTSR1_RT10_Pos)                /*!< 0x00000400 */
3424 #define EXTI_RTSR1_RT10          EXTI_RTSR1_RT10_Msk                           /*!< Rising trigger event configuration bit of line 10 */
3425 #define EXTI_RTSR1_RT11_Pos      (11U)
3426 #define EXTI_RTSR1_RT11_Msk      (0x1UL << EXTI_RTSR1_RT11_Pos)                /*!< 0x00000800 */
3427 #define EXTI_RTSR1_RT11          EXTI_RTSR1_RT11_Msk                           /*!< Rising trigger event configuration bit of line 11 */
3428 #define EXTI_RTSR1_RT12_Pos      (12U)
3429 #define EXTI_RTSR1_RT12_Msk      (0x1UL << EXTI_RTSR1_RT12_Pos)                /*!< 0x00001000 */
3430 #define EXTI_RTSR1_RT12          EXTI_RTSR1_RT12_Msk                           /*!< Rising trigger event configuration bit of line 12 */
3431 #define EXTI_RTSR1_RT13_Pos      (13U)
3432 #define EXTI_RTSR1_RT13_Msk      (0x1UL << EXTI_RTSR1_RT13_Pos)                /*!< 0x00002000 */
3433 #define EXTI_RTSR1_RT13          EXTI_RTSR1_RT13_Msk                           /*!< Rising trigger event configuration bit of line 13 */
3434 #define EXTI_RTSR1_RT14_Pos      (14U)
3435 #define EXTI_RTSR1_RT14_Msk      (0x1UL << EXTI_RTSR1_RT14_Pos)                /*!< 0x00004000 */
3436 #define EXTI_RTSR1_RT14          EXTI_RTSR1_RT14_Msk                           /*!< Rising trigger event configuration bit of line 14 */
3437 #define EXTI_RTSR1_RT15_Pos      (15U)
3438 #define EXTI_RTSR1_RT15_Msk      (0x1UL << EXTI_RTSR1_RT15_Pos)                /*!< 0x00008000 */
3439 #define EXTI_RTSR1_RT15          EXTI_RTSR1_RT15_Msk                           /*!< Rising trigger event configuration bit of line 15 */
3440 #define EXTI_RTSR1_RT16_Pos      (16U)
3441 #define EXTI_RTSR1_RT16_Msk      (0x1UL << EXTI_RTSR1_RT16_Pos)                /*!< 0x00010000 */
3442 #define EXTI_RTSR1_RT16          EXTI_RTSR1_RT16_Msk                           /*!< Rising trigger event configuration bit of line 16 */
3443 #define EXTI_RTSR1_RT21_Pos      (21U)
3444 #define EXTI_RTSR1_RT21_Msk      (0x1UL << EXTI_RTSR1_RT21_Pos)                /*!< 0x00200000 */
3445 #define EXTI_RTSR1_RT21          EXTI_RTSR1_RT21_Msk                           /*!< Rising trigger event configuration bit of line 21 */
3446 #define EXTI_RTSR1_RT22_Pos      (22U)
3447 #define EXTI_RTSR1_RT22_Msk      (0x1UL << EXTI_RTSR1_RT22_Pos)                /*!< 0x00400000 */
3448 #define EXTI_RTSR1_RT22          EXTI_RTSR1_RT22_Msk                           /*!< Rising trigger event configuration bit of line 22 */
3449 
3450 /******************  Bit definition for EXTI_FTSR1 register  ******************/
3451 #define EXTI_FTSR1_FT0_Pos       (0U)
3452 #define EXTI_FTSR1_FT0_Msk       (0x1UL << EXTI_FTSR1_FT0_Pos)                 /*!< 0x00000001 */
3453 #define EXTI_FTSR1_FT0           EXTI_FTSR1_FT0_Msk                            /*!< Falling trigger event configuration bit of line 0 */
3454 #define EXTI_FTSR1_FT1_Pos       (1U)
3455 #define EXTI_FTSR1_FT1_Msk       (0x1UL << EXTI_FTSR1_FT1_Pos)                 /*!< 0x00000002 */
3456 #define EXTI_FTSR1_FT1           EXTI_FTSR1_FT1_Msk                            /*!< Falling trigger event configuration bit of line 1 */
3457 #define EXTI_FTSR1_FT2_Pos       (2U)
3458 #define EXTI_FTSR1_FT2_Msk       (0x1UL << EXTI_FTSR1_FT2_Pos)                 /*!< 0x00000004 */
3459 #define EXTI_FTSR1_FT2           EXTI_FTSR1_FT2_Msk                            /*!< Falling trigger event configuration bit of line 2 */
3460 #define EXTI_FTSR1_FT3_Pos       (3U)
3461 #define EXTI_FTSR1_FT3_Msk       (0x1UL << EXTI_FTSR1_FT3_Pos)                 /*!< 0x00000008 */
3462 #define EXTI_FTSR1_FT3           EXTI_FTSR1_FT3_Msk                            /*!< Falling trigger event configuration bit of line 3 */
3463 #define EXTI_FTSR1_FT4_Pos       (4U)
3464 #define EXTI_FTSR1_FT4_Msk       (0x1UL << EXTI_FTSR1_FT4_Pos)                 /*!< 0x00000010 */
3465 #define EXTI_FTSR1_FT4           EXTI_FTSR1_FT4_Msk                            /*!< Falling trigger event configuration bit of line 4 */
3466 #define EXTI_FTSR1_FT5_Pos       (5U)
3467 #define EXTI_FTSR1_FT5_Msk       (0x1UL << EXTI_FTSR1_FT5_Pos)                 /*!< 0x00000020 */
3468 #define EXTI_FTSR1_FT5           EXTI_FTSR1_FT5_Msk                            /*!< Falling trigger event configuration bit of line 5 */
3469 #define EXTI_FTSR1_FT6_Pos       (6U)
3470 #define EXTI_FTSR1_FT6_Msk       (0x1UL << EXTI_FTSR1_FT6_Pos)                 /*!< 0x00000040 */
3471 #define EXTI_FTSR1_FT6           EXTI_FTSR1_FT6_Msk                            /*!< Falling trigger event configuration bit of line 6 */
3472 #define EXTI_FTSR1_FT7_Pos       (7U)
3473 #define EXTI_FTSR1_FT7_Msk       (0x1UL << EXTI_FTSR1_FT7_Pos)                 /*!< 0x00000080 */
3474 #define EXTI_FTSR1_FT7           EXTI_FTSR1_FT7_Msk                            /*!< Falling trigger event configuration bit of line 7 */
3475 #define EXTI_FTSR1_FT8_Pos       (8U)
3476 #define EXTI_FTSR1_FT8_Msk       (0x1UL << EXTI_FTSR1_FT8_Pos)                 /*!< 0x00000100 */
3477 #define EXTI_FTSR1_FT8           EXTI_FTSR1_FT8_Msk                            /*!< Falling trigger event configuration bit of line 8 */
3478 #define EXTI_FTSR1_FT9_Pos       (9U)
3479 #define EXTI_FTSR1_FT9_Msk       (0x1UL << EXTI_FTSR1_FT9_Pos)                 /*!< 0x00000200 */
3480 #define EXTI_FTSR1_FT9           EXTI_FTSR1_FT9_Msk                            /*!< Falling trigger event configuration bit of line 9 */
3481 #define EXTI_FTSR1_FT10_Pos      (10U)
3482 #define EXTI_FTSR1_FT10_Msk      (0x1UL << EXTI_FTSR1_FT10_Pos)                /*!< 0x00000400 */
3483 #define EXTI_FTSR1_FT10          EXTI_FTSR1_FT10_Msk                           /*!< Falling trigger event configuration bit of line 10 */
3484 #define EXTI_FTSR1_FT11_Pos      (11U)
3485 #define EXTI_FTSR1_FT11_Msk      (0x1UL << EXTI_FTSR1_FT11_Pos)                /*!< 0x00000800 */
3486 #define EXTI_FTSR1_FT11          EXTI_FTSR1_FT11_Msk                           /*!< Falling trigger event configuration bit of line 11 */
3487 #define EXTI_FTSR1_FT12_Pos      (12U)
3488 #define EXTI_FTSR1_FT12_Msk      (0x1UL << EXTI_FTSR1_FT12_Pos)                /*!< 0x00001000 */
3489 #define EXTI_FTSR1_FT12          EXTI_FTSR1_FT12_Msk                           /*!< Falling trigger event configuration bit of line 12 */
3490 #define EXTI_FTSR1_FT13_Pos      (13U)
3491 #define EXTI_FTSR1_FT13_Msk      (0x1UL << EXTI_FTSR1_FT13_Pos)                /*!< 0x00002000 */
3492 #define EXTI_FTSR1_FT13          EXTI_FTSR1_FT13_Msk                           /*!< Falling trigger event configuration bit of line 13 */
3493 #define EXTI_FTSR1_FT14_Pos      (14U)
3494 #define EXTI_FTSR1_FT14_Msk      (0x1UL << EXTI_FTSR1_FT14_Pos)                /*!< 0x00004000 */
3495 #define EXTI_FTSR1_FT14          EXTI_FTSR1_FT14_Msk                           /*!< Falling trigger event configuration bit of line 14 */
3496 #define EXTI_FTSR1_FT15_Pos      (15U)
3497 #define EXTI_FTSR1_FT15_Msk      (0x1UL << EXTI_FTSR1_FT15_Pos)                /*!< 0x00008000 */
3498 #define EXTI_FTSR1_FT15          EXTI_FTSR1_FT15_Msk                           /*!< Falling trigger event configuration bit of line 15 */
3499 #define EXTI_FTSR1_FT16_Pos      (16U)
3500 #define EXTI_FTSR1_FT16_Msk      (0x1UL << EXTI_FTSR1_FT16_Pos)                /*!< 0x00010000 */
3501 #define EXTI_FTSR1_FT16          EXTI_FTSR1_FT16_Msk                           /*!< Falling trigger event configuration bit of line 16 */
3502 #define EXTI_FTSR1_FT21_Pos      (21U)
3503 #define EXTI_FTSR1_FT21_Msk      (0x1UL << EXTI_FTSR1_FT21_Pos)                /*!< 0x00200000 */
3504 #define EXTI_FTSR1_FT21          EXTI_FTSR1_FT21_Msk                           /*!< Falling trigger event configuration bit of line 21 */
3505 #define EXTI_FTSR1_FT22_Pos      (22U)
3506 #define EXTI_FTSR1_FT22_Msk      (0x1UL << EXTI_FTSR1_FT22_Pos)                /*!< 0x00400000 */
3507 #define EXTI_FTSR1_FT22          EXTI_FTSR1_FT22_Msk                           /*!< Falling trigger event configuration bit of line 22 */
3508 
3509 /******************  Bit definition for EXTI_SWIER1 register  *****************/
3510 #define EXTI_SWIER1_SWI0_Pos     (0U)
3511 #define EXTI_SWIER1_SWI0_Msk     (0x1UL << EXTI_SWIER1_SWI0_Pos)               /*!< 0x00000001 */
3512 #define EXTI_SWIER1_SWI0         EXTI_SWIER1_SWI0_Msk                          /*!< Software Interrupt on line 0 */
3513 #define EXTI_SWIER1_SWI1_Pos     (1U)
3514 #define EXTI_SWIER1_SWI1_Msk     (0x1UL << EXTI_SWIER1_SWI1_Pos)               /*!< 0x00000002 */
3515 #define EXTI_SWIER1_SWI1         EXTI_SWIER1_SWI1_Msk                          /*!< Software Interrupt on line 1 */
3516 #define EXTI_SWIER1_SWI2_Pos     (2U)
3517 #define EXTI_SWIER1_SWI2_Msk     (0x1UL << EXTI_SWIER1_SWI2_Pos)               /*!< 0x00000004 */
3518 #define EXTI_SWIER1_SWI2         EXTI_SWIER1_SWI2_Msk                          /*!< Software Interrupt on line 2 */
3519 #define EXTI_SWIER1_SWI3_Pos     (3U)
3520 #define EXTI_SWIER1_SWI3_Msk     (0x1UL << EXTI_SWIER1_SWI3_Pos)               /*!< 0x00000008 */
3521 #define EXTI_SWIER1_SWI3         EXTI_SWIER1_SWI3_Msk                          /*!< Software Interrupt on line 3 */
3522 #define EXTI_SWIER1_SWI4_Pos     (4U)
3523 #define EXTI_SWIER1_SWI4_Msk     (0x1UL << EXTI_SWIER1_SWI4_Pos)               /*!< 0x00000010 */
3524 #define EXTI_SWIER1_SWI4         EXTI_SWIER1_SWI4_Msk                          /*!< Software Interrupt on line 4 */
3525 #define EXTI_SWIER1_SWI5_Pos     (5U)
3526 #define EXTI_SWIER1_SWI5_Msk     (0x1UL << EXTI_SWIER1_SWI5_Pos)               /*!< 0x00000020 */
3527 #define EXTI_SWIER1_SWI5         EXTI_SWIER1_SWI5_Msk                          /*!< Software Interrupt on line 5 */
3528 #define EXTI_SWIER1_SWI6_Pos     (6U)
3529 #define EXTI_SWIER1_SWI6_Msk     (0x1UL << EXTI_SWIER1_SWI6_Pos)               /*!< 0x00000040 */
3530 #define EXTI_SWIER1_SWI6         EXTI_SWIER1_SWI6_Msk                          /*!< Software Interrupt on line 6 */
3531 #define EXTI_SWIER1_SWI7_Pos     (7U)
3532 #define EXTI_SWIER1_SWI7_Msk     (0x1UL << EXTI_SWIER1_SWI7_Pos)               /*!< 0x00000080 */
3533 #define EXTI_SWIER1_SWI7         EXTI_SWIER1_SWI7_Msk                          /*!< Software Interrupt on line 7 */
3534 #define EXTI_SWIER1_SWI8_Pos     (8U)
3535 #define EXTI_SWIER1_SWI8_Msk     (0x1UL << EXTI_SWIER1_SWI8_Pos)               /*!< 0x00000100 */
3536 #define EXTI_SWIER1_SWI8         EXTI_SWIER1_SWI8_Msk                          /*!< Software Interrupt on line 8 */
3537 #define EXTI_SWIER1_SWI9_Pos     (9U)
3538 #define EXTI_SWIER1_SWI9_Msk     (0x1UL << EXTI_SWIER1_SWI9_Pos)               /*!< 0x00000200 */
3539 #define EXTI_SWIER1_SWI9         EXTI_SWIER1_SWI9_Msk                          /*!< Software Interrupt on line 9 */
3540 #define EXTI_SWIER1_SWI10_Pos    (10U)
3541 #define EXTI_SWIER1_SWI10_Msk    (0x1UL << EXTI_SWIER1_SWI10_Pos)              /*!< 0x00000400 */
3542 #define EXTI_SWIER1_SWI10        EXTI_SWIER1_SWI10_Msk                         /*!< Software Interrupt on line 10 */
3543 #define EXTI_SWIER1_SWI11_Pos    (11U)
3544 #define EXTI_SWIER1_SWI11_Msk    (0x1UL << EXTI_SWIER1_SWI11_Pos)              /*!< 0x00000800 */
3545 #define EXTI_SWIER1_SWI11        EXTI_SWIER1_SWI11_Msk                         /*!< Software Interrupt on line 11 */
3546 #define EXTI_SWIER1_SWI12_Pos    (12U)
3547 #define EXTI_SWIER1_SWI12_Msk    (0x1UL << EXTI_SWIER1_SWI12_Pos)              /*!< 0x00001000 */
3548 #define EXTI_SWIER1_SWI12        EXTI_SWIER1_SWI12_Msk                         /*!< Software Interrupt on line 12 */
3549 #define EXTI_SWIER1_SWI13_Pos    (13U)
3550 #define EXTI_SWIER1_SWI13_Msk    (0x1UL << EXTI_SWIER1_SWI13_Pos)              /*!< 0x00002000 */
3551 #define EXTI_SWIER1_SWI13        EXTI_SWIER1_SWI13_Msk                         /*!< Software Interrupt on line 13 */
3552 #define EXTI_SWIER1_SWI14_Pos    (14U)
3553 #define EXTI_SWIER1_SWI14_Msk    (0x1UL << EXTI_SWIER1_SWI14_Pos)              /*!< 0x00004000 */
3554 #define EXTI_SWIER1_SWI14        EXTI_SWIER1_SWI14_Msk                         /*!< Software Interrupt on line 14 */
3555 #define EXTI_SWIER1_SWI15_Pos    (15U)
3556 #define EXTI_SWIER1_SWI15_Msk    (0x1UL << EXTI_SWIER1_SWI15_Pos)              /*!< 0x00008000 */
3557 #define EXTI_SWIER1_SWI15        EXTI_SWIER1_SWI15_Msk                         /*!< Software Interrupt on line 15 */
3558 #define EXTI_SWIER1_SWI16_Pos    (16U)
3559 #define EXTI_SWIER1_SWI16_Msk    (0x1UL << EXTI_SWIER1_SWI16_Pos)              /*!< 0x00010000 */
3560 #define EXTI_SWIER1_SWI16        EXTI_SWIER1_SWI16_Msk                         /*!< Software Interrupt on line 16 */
3561 #define EXTI_SWIER1_SWI21_Pos    (21U)
3562 #define EXTI_SWIER1_SWI21_Msk    (0x1UL << EXTI_SWIER1_SWI21_Pos)              /*!< 0x00200000 */
3563 #define EXTI_SWIER1_SWI21        EXTI_SWIER1_SWI21_Msk                         /*!< Software Interrupt on line 21 */
3564 #define EXTI_SWIER1_SWI22_Pos    (22U)
3565 #define EXTI_SWIER1_SWI22_Msk    (0x1UL << EXTI_SWIER1_SWI22_Pos)              /*!< 0x00400000 */
3566 #define EXTI_SWIER1_SWI22        EXTI_SWIER1_SWI22_Msk                         /*!< Software Interrupt on line 22 */
3567 
3568 /*******************  Bit definition for EXTI_PR1 register  *******************/
3569 #define EXTI_PR1_PIF0_Pos        (0U)
3570 #define EXTI_PR1_PIF0_Msk        (0x1UL << EXTI_PR1_PIF0_Pos)                  /*!< 0x00000001 */
3571 #define EXTI_PR1_PIF0            EXTI_PR1_PIF0_Msk                             /*!< Pending bit for line 0 */
3572 #define EXTI_PR1_PIF1_Pos        (1U)
3573 #define EXTI_PR1_PIF1_Msk        (0x1UL << EXTI_PR1_PIF1_Pos)                  /*!< 0x00000002 */
3574 #define EXTI_PR1_PIF1            EXTI_PR1_PIF1_Msk                             /*!< Pending bit for line 1 */
3575 #define EXTI_PR1_PIF2_Pos        (2U)
3576 #define EXTI_PR1_PIF2_Msk        (0x1UL << EXTI_PR1_PIF2_Pos)                  /*!< 0x00000004 */
3577 #define EXTI_PR1_PIF2            EXTI_PR1_PIF2_Msk                             /*!< Pending bit for line 2 */
3578 #define EXTI_PR1_PIF3_Pos        (3U)
3579 #define EXTI_PR1_PIF3_Msk        (0x1UL << EXTI_PR1_PIF3_Pos)                  /*!< 0x00000008 */
3580 #define EXTI_PR1_PIF3            EXTI_PR1_PIF3_Msk                             /*!< Pending bit for line 3 */
3581 #define EXTI_PR1_PIF4_Pos        (4U)
3582 #define EXTI_PR1_PIF4_Msk        (0x1UL << EXTI_PR1_PIF4_Pos)                  /*!< 0x00000010 */
3583 #define EXTI_PR1_PIF4            EXTI_PR1_PIF4_Msk                             /*!< Pending bit for line 4 */
3584 #define EXTI_PR1_PIF5_Pos        (5U)
3585 #define EXTI_PR1_PIF5_Msk        (0x1UL << EXTI_PR1_PIF5_Pos)                  /*!< 0x00000020 */
3586 #define EXTI_PR1_PIF5            EXTI_PR1_PIF5_Msk                             /*!< Pending bit for line 5 */
3587 #define EXTI_PR1_PIF6_Pos        (6U)
3588 #define EXTI_PR1_PIF6_Msk        (0x1UL << EXTI_PR1_PIF6_Pos)                  /*!< 0x00000040 */
3589 #define EXTI_PR1_PIF6            EXTI_PR1_PIF6_Msk                             /*!< Pending bit for line 6 */
3590 #define EXTI_PR1_PIF7_Pos        (7U)
3591 #define EXTI_PR1_PIF7_Msk        (0x1UL << EXTI_PR1_PIF7_Pos)                  /*!< 0x00000080 */
3592 #define EXTI_PR1_PIF7            EXTI_PR1_PIF7_Msk                             /*!< Pending bit for line 7 */
3593 #define EXTI_PR1_PIF8_Pos        (8U)
3594 #define EXTI_PR1_PIF8_Msk        (0x1UL << EXTI_PR1_PIF8_Pos)                  /*!< 0x00000100 */
3595 #define EXTI_PR1_PIF8            EXTI_PR1_PIF8_Msk                             /*!< Pending bit for line 8 */
3596 #define EXTI_PR1_PIF9_Pos        (9U)
3597 #define EXTI_PR1_PIF9_Msk        (0x1UL << EXTI_PR1_PIF9_Pos)                  /*!< 0x00000200 */
3598 #define EXTI_PR1_PIF9            EXTI_PR1_PIF9_Msk                             /*!< Pending bit for line 9 */
3599 #define EXTI_PR1_PIF10_Pos       (10U)
3600 #define EXTI_PR1_PIF10_Msk       (0x1UL << EXTI_PR1_PIF10_Pos)                 /*!< 0x00000400 */
3601 #define EXTI_PR1_PIF10           EXTI_PR1_PIF10_Msk                            /*!< Pending bit for line 10 */
3602 #define EXTI_PR1_PIF11_Pos       (11U)
3603 #define EXTI_PR1_PIF11_Msk       (0x1UL << EXTI_PR1_PIF11_Pos)                 /*!< 0x00000800 */
3604 #define EXTI_PR1_PIF11           EXTI_PR1_PIF11_Msk                            /*!< Pending bit for line 11 */
3605 #define EXTI_PR1_PIF12_Pos       (12U)
3606 #define EXTI_PR1_PIF12_Msk       (0x1UL << EXTI_PR1_PIF12_Pos)                 /*!< 0x00001000 */
3607 #define EXTI_PR1_PIF12           EXTI_PR1_PIF12_Msk                            /*!< Pending bit for line 12 */
3608 #define EXTI_PR1_PIF13_Pos       (13U)
3609 #define EXTI_PR1_PIF13_Msk       (0x1UL << EXTI_PR1_PIF13_Pos)                 /*!< 0x00002000 */
3610 #define EXTI_PR1_PIF13           EXTI_PR1_PIF13_Msk                            /*!< Pending bit for line 13 */
3611 #define EXTI_PR1_PIF14_Pos       (14U)
3612 #define EXTI_PR1_PIF14_Msk       (0x1UL << EXTI_PR1_PIF14_Pos)                 /*!< 0x00004000 */
3613 #define EXTI_PR1_PIF14           EXTI_PR1_PIF14_Msk                            /*!< Pending bit for line 14 */
3614 #define EXTI_PR1_PIF15_Pos       (15U)
3615 #define EXTI_PR1_PIF15_Msk       (0x1UL << EXTI_PR1_PIF15_Pos)                 /*!< 0x00008000 */
3616 #define EXTI_PR1_PIF15           EXTI_PR1_PIF15_Msk                            /*!< Pending bit for line 15 */
3617 #define EXTI_PR1_PIF16_Pos       (16U)
3618 #define EXTI_PR1_PIF16_Msk       (0x1UL << EXTI_PR1_PIF16_Pos)                 /*!< 0x00010000 */
3619 #define EXTI_PR1_PIF16           EXTI_PR1_PIF16_Msk                            /*!< Pending bit for line 16 */
3620 #define EXTI_PR1_PIF21_Pos       (21U)
3621 #define EXTI_PR1_PIF21_Msk       (0x1UL << EXTI_PR1_PIF21_Pos)                 /*!< 0x00200000 */
3622 #define EXTI_PR1_PIF21           EXTI_PR1_PIF21_Msk                            /*!< Pending bit for line 21 */
3623 #define EXTI_PR1_PIF22_Pos       (22U)
3624 #define EXTI_PR1_PIF22_Msk       (0x1UL << EXTI_PR1_PIF22_Pos)                 /*!< 0x00400000 */
3625 #define EXTI_PR1_PIF22           EXTI_PR1_PIF22_Msk                            /*!< Pending bit for line 22 */
3626 
3627 /******************  Bit definition for EXTI_RTSR2 register  ******************/
3628 #define EXTI_RTSR2_RT34_Pos      (2U)
3629 #define EXTI_RTSR2_RT34_Msk      (0x1UL << EXTI_RTSR2_RT34_Pos)                /*!< 0x00000004 */
3630 #define EXTI_RTSR2_RT34          EXTI_RTSR2_RT34_Msk                           /*!< Rising trigger event configuration bit of line 34 */
3631 #define EXTI_RTSR2_RT40_Pos      (8U)
3632 #define EXTI_RTSR2_RT40_Msk      (0x1UL << EXTI_RTSR2_RT40_Pos)                /*!< 0x00000100 */
3633 #define EXTI_RTSR2_RT40          EXTI_RTSR2_RT40_Msk                           /*!< Rising trigger event configuration bit of line 40 */
3634 #define EXTI_RTSR2_RT41_Pos      (9U)
3635 #define EXTI_RTSR2_RT41_Msk      (0x1UL << EXTI_RTSR2_RT41_Pos)                /*!< 0x00000200 */
3636 #define EXTI_RTSR2_RT41          EXTI_RTSR2_RT41_Msk                           /*!< Rising trigger event configuration bit of line 41 */
3637 #define EXTI_RTSR2_RT45_Pos      (13U)
3638 #define EXTI_RTSR2_RT45_Msk      (0x1UL << EXTI_RTSR2_RT45_Pos)                /*!< 0x00002000 */
3639 #define EXTI_RTSR2_RT45          EXTI_RTSR2_RT45_Msk                           /*!< Rising trigger event configuration bit of line 45 */
3640 
3641 /******************  Bit definition for EXTI_FTSR2 register  ******************/
3642 #define EXTI_FTSR2_FT34_Pos      (2U)
3643 #define EXTI_FTSR2_FT34_Msk      (0x1UL << EXTI_FTSR2_FT34_Pos)                /*!< 0x00000004 */
3644 #define EXTI_FTSR2_FT34          EXTI_FTSR2_FT34_Msk                           /*!< Falling trigger event configuration bit of line 34 */
3645 #define EXTI_FTSR2_FT40_Pos      (8U)
3646 #define EXTI_FTSR2_FT40_Msk      (0x1UL << EXTI_FTSR2_FT40_Pos)                /*!< 0x00000100 */
3647 #define EXTI_FTSR2_FT40          EXTI_FTSR2_FT40_Msk                           /*!< Falling trigger event configuration bit of line 40 */
3648 #define EXTI_FTSR2_FT41_Pos      (9U)
3649 #define EXTI_FTSR2_FT41_Msk      (0x1UL << EXTI_FTSR2_FT41_Pos)                /*!< 0x00000200 */
3650 #define EXTI_FTSR2_FT41          EXTI_FTSR2_FT41_Msk                           /*!< Falling trigger event configuration bit of line 41 */
3651 #define EXTI_FTSR2_FT45_Pos      (13U)
3652 #define EXTI_FTSR2_FT45_Msk      (0x1UL << EXTI_FTSR2_FT45_Pos)                /*!< 0x00002000 */
3653 #define EXTI_FTSR2_FT45          EXTI_FTSR2_FT45_Msk                           /*!< Falling trigger event configuration bit of line 45 */
3654 
3655 /******************  Bit definition for EXTI_SWIER2 register  *****************/
3656 #define EXTI_SWIER2_SWI34_Pos    (2U)
3657 #define EXTI_SWIER2_SWI34_Msk    (0x1UL << EXTI_SWIER2_SWI34_Pos)              /*!< 0x00000004 */
3658 #define EXTI_SWIER2_SWI34        EXTI_SWIER2_SWI34_Msk                         /*!< Software Interrupt on line 34 */
3659 #define EXTI_SWIER2_SWI40_Pos    (8U)
3660 #define EXTI_SWIER2_SWI40_Msk    (0x1UL << EXTI_SWIER2_SWI40_Pos)              /*!< 0x00000100 */
3661 #define EXTI_SWIER2_SWI40        EXTI_SWIER2_SWI40_Msk                         /*!< Software Interrupt on line 40 */
3662 #define EXTI_SWIER2_SWI41_Pos    (9U)
3663 #define EXTI_SWIER2_SWI41_Msk    (0x1UL << EXTI_SWIER2_SWI41_Pos)              /*!< 0x00000200 */
3664 #define EXTI_SWIER2_SWI41        EXTI_SWIER2_SWI41_Msk                         /*!< Software Interrupt on line 41 */
3665 #define EXTI_SWIER2_SWI45_Pos    (13U)
3666 #define EXTI_SWIER2_SWI45_Msk    (0x1UL << EXTI_SWIER2_SWI45_Pos)              /*!< 0x00002000 */
3667 #define EXTI_SWIER2_SWI45        EXTI_SWIER2_SWI45_Msk                         /*!< Software Interrupt on line 45 */
3668 
3669 /*******************  Bit definition for EXTI_PR2 register  *******************/
3670 #define EXTI_PR2_PIF34_Pos       (2U)
3671 #define EXTI_PR2_PIF34_Msk       (0x1UL << EXTI_PR2_PIF34_Pos)                 /*!< 0x00000004 */
3672 #define EXTI_PR2_PIF34           EXTI_PR2_PIF34_Msk                            /*!< Pending bit for line 34 */
3673 #define EXTI_PR2_PIF40_Pos       (8U)
3674 #define EXTI_PR2_PIF40_Msk       (0x1UL << EXTI_PR2_PIF40_Pos)                 /*!< 0x00000100 */
3675 #define EXTI_PR2_PIF40           EXTI_PR2_PIF40_Msk                            /*!< Pending bit for line 40 */
3676 #define EXTI_PR2_PIF41_Pos       (9U)
3677 #define EXTI_PR2_PIF41_Msk       (0x1UL << EXTI_PR2_PIF41_Pos)                 /*!< 0x00000200 */
3678 #define EXTI_PR2_PIF41           EXTI_PR2_PIF41_Msk                            /*!< Pending bit for line 41 */
3679 #define EXTI_PR2_PIF45_Pos       (13U)
3680 #define EXTI_PR2_PIF45_Msk       (0x1UL << EXTI_PR2_PIF45_Pos)                 /*!< 0x00002000 */
3681 #define EXTI_PR2_PIF45           EXTI_PR2_PIF45_Msk                            /*!< Pending bit for line 45 */
3682 
3683 /********************  Bits definition for EXTI_IMR1 register  **************/
3684 #define EXTI_IMR1_IM0_Pos        (0U)
3685 #define EXTI_IMR1_IM0_Msk        (0x1UL << EXTI_IMR1_IM0_Pos)                  /*!< 0x00000001 */
3686 #define EXTI_IMR1_IM0            EXTI_IMR1_IM0_Msk                             /*!< CPU1 Interrupt Mask on line 0 */
3687 #define EXTI_IMR1_IM1_Pos        (1U)
3688 #define EXTI_IMR1_IM1_Msk        (0x1UL << EXTI_IMR1_IM1_Pos)                  /*!< 0x00000002 */
3689 #define EXTI_IMR1_IM1            EXTI_IMR1_IM1_Msk                             /*!< CPU1 Interrupt Mask on line 1 */
3690 #define EXTI_IMR1_IM2_Pos        (2U)
3691 #define EXTI_IMR1_IM2_Msk        (0x1UL << EXTI_IMR1_IM2_Pos)                  /*!< 0x00000004 */
3692 #define EXTI_IMR1_IM2            EXTI_IMR1_IM2_Msk                             /*!< CPU1 Interrupt Mask on line 2 */
3693 #define EXTI_IMR1_IM3_Pos        (3U)
3694 #define EXTI_IMR1_IM3_Msk        (0x1UL << EXTI_IMR1_IM3_Pos)                  /*!< 0x00000008 */
3695 #define EXTI_IMR1_IM3            EXTI_IMR1_IM3_Msk                             /*!< CPU1 Interrupt Mask on line 3 */
3696 #define EXTI_IMR1_IM4_Pos        (4U)
3697 #define EXTI_IMR1_IM4_Msk        (0x1UL << EXTI_IMR1_IM4_Pos)                  /*!< 0x00000010 */
3698 #define EXTI_IMR1_IM4            EXTI_IMR1_IM4_Msk                             /*!< CPU1 Interrupt Mask on line 4 */
3699 #define EXTI_IMR1_IM5_Pos        (5U)
3700 #define EXTI_IMR1_IM5_Msk        (0x1UL << EXTI_IMR1_IM5_Pos)                  /*!< 0x00000020 */
3701 #define EXTI_IMR1_IM5            EXTI_IMR1_IM5_Msk                             /*!< CPU1 Interrupt Mask on line 5 */
3702 #define EXTI_IMR1_IM6_Pos        (6U)
3703 #define EXTI_IMR1_IM6_Msk        (0x1UL << EXTI_IMR1_IM6_Pos)                  /*!< 0x00000040 */
3704 #define EXTI_IMR1_IM6            EXTI_IMR1_IM6_Msk                             /*!< CPU1 Interrupt Mask on line 6 */
3705 #define EXTI_IMR1_IM7_Pos        (7U)
3706 #define EXTI_IMR1_IM7_Msk        (0x1UL << EXTI_IMR1_IM7_Pos)                  /*!< 0x00000080 */
3707 #define EXTI_IMR1_IM7            EXTI_IMR1_IM7_Msk                             /*!< CPU1 Interrupt Mask on line 7 */
3708 #define EXTI_IMR1_IM8_Pos        (8U)
3709 #define EXTI_IMR1_IM8_Msk        (0x1UL << EXTI_IMR1_IM8_Pos)                  /*!< 0x00000100 */
3710 #define EXTI_IMR1_IM8            EXTI_IMR1_IM8_Msk                             /*!< CPU1 Interrupt Mask on line 8 */
3711 #define EXTI_IMR1_IM9_Pos        (9U)
3712 #define EXTI_IMR1_IM9_Msk        (0x1UL << EXTI_IMR1_IM9_Pos)                  /*!< 0x00000200 */
3713 #define EXTI_IMR1_IM9            EXTI_IMR1_IM9_Msk                             /*!< CPU1 Interrupt Mask on line 9 */
3714 #define EXTI_IMR1_IM10_Pos       (10U)
3715 #define EXTI_IMR1_IM10_Msk       (0x1UL << EXTI_IMR1_IM10_Pos)                 /*!< 0x00000400 */
3716 #define EXTI_IMR1_IM10           EXTI_IMR1_IM10_Msk                            /*!< CPU1 Interrupt Mask on line 10 */
3717 #define EXTI_IMR1_IM11_Pos       (11U)
3718 #define EXTI_IMR1_IM11_Msk       (0x1UL << EXTI_IMR1_IM11_Pos)                 /*!< 0x00000800 */
3719 #define EXTI_IMR1_IM11           EXTI_IMR1_IM11_Msk                            /*!< CPU1 Interrupt Mask on line 11 */
3720 #define EXTI_IMR1_IM12_Pos       (12U)
3721 #define EXTI_IMR1_IM12_Msk       (0x1UL << EXTI_IMR1_IM12_Pos)                 /*!< 0x00001000 */
3722 #define EXTI_IMR1_IM12           EXTI_IMR1_IM12_Msk                            /*!< CPU1 Interrupt Mask on line 12 */
3723 #define EXTI_IMR1_IM13_Pos       (13U)
3724 #define EXTI_IMR1_IM13_Msk       (0x1UL << EXTI_IMR1_IM13_Pos)                 /*!< 0x00002000 */
3725 #define EXTI_IMR1_IM13           EXTI_IMR1_IM13_Msk                            /*!< CPU1 Interrupt Mask on line 13 */
3726 #define EXTI_IMR1_IM14_Pos       (14U)
3727 #define EXTI_IMR1_IM14_Msk       (0x1UL << EXTI_IMR1_IM14_Pos)                 /*!< 0x00004000 */
3728 #define EXTI_IMR1_IM14           EXTI_IMR1_IM14_Msk                            /*!< CPU1 Interrupt Mask on line 14 */
3729 #define EXTI_IMR1_IM15_Pos       (15U)
3730 #define EXTI_IMR1_IM15_Msk       (0x1UL << EXTI_IMR1_IM15_Pos)                 /*!< 0x00008000 */
3731 #define EXTI_IMR1_IM15           EXTI_IMR1_IM15_Msk                            /*!< CPU1 Interrupt Mask on line 15 */
3732 #define EXTI_IMR1_IM16_Pos       (16U)
3733 #define EXTI_IMR1_IM16_Msk       (0x1UL << EXTI_IMR1_IM16_Pos)                 /*!< 0x00010000 */
3734 #define EXTI_IMR1_IM16           EXTI_IMR1_IM16_Msk                            /*!< CPU1 Interrupt Mask on line 16 */
3735 #define EXTI_IMR1_IM17_Pos       (17U)
3736 #define EXTI_IMR1_IM17_Msk       (0x1UL << EXTI_IMR1_IM17_Pos)                 /*!< 0x00020000 */
3737 #define EXTI_IMR1_IM17           EXTI_IMR1_IM17_Msk                            /*!< CPU1 Interrupt Mask on line 17 */
3738 #define EXTI_IMR1_IM18_Pos       (18U)
3739 #define EXTI_IMR1_IM18_Msk       (0x1UL << EXTI_IMR1_IM18_Pos)                 /*!< 0x00040000 */
3740 #define EXTI_IMR1_IM18           EXTI_IMR1_IM18_Msk                            /*!< CPU1 Interrupt Mask on line 18 */
3741 #define EXTI_IMR1_IM19_Pos       (19U)
3742 #define EXTI_IMR1_IM19_Msk       (0x1UL << EXTI_IMR1_IM19_Pos)                 /*!< 0x00080000 */
3743 #define EXTI_IMR1_IM19           EXTI_IMR1_IM19_Msk                            /*!< CPU1 Interrupt Mask on line 19 */
3744 #define EXTI_IMR1_IM20_Pos       (20U)
3745 #define EXTI_IMR1_IM20_Msk       (0x1UL << EXTI_IMR1_IM20_Pos)                 /*!< 0x00100000 */
3746 #define EXTI_IMR1_IM20           EXTI_IMR1_IM20_Msk                            /*!< CPU1 Interrupt Mask on line 20 */
3747 #define EXTI_IMR1_IM21_Pos       (21U)
3748 #define EXTI_IMR1_IM21_Msk       (0x1UL << EXTI_IMR1_IM21_Pos)                 /*!< 0x00200000 */
3749 #define EXTI_IMR1_IM21           EXTI_IMR1_IM21_Msk                            /*!< CPU1 Interrupt Mask on line 21 */
3750 #define EXTI_IMR1_IM22_Pos       (22U)
3751 #define EXTI_IMR1_IM22_Msk       (0x1UL << EXTI_IMR1_IM22_Pos)                 /*!< 0x00400000 */
3752 #define EXTI_IMR1_IM22           EXTI_IMR1_IM22_Msk                            /*!< CPU1 Interrupt Mask on line 22 */
3753 #define EXTI_IMR1_IM23_Pos       (23U)
3754 #define EXTI_IMR1_IM23_Msk       (0x1UL << EXTI_IMR1_IM23_Pos)                 /*!< 0x00800000 */
3755 #define EXTI_IMR1_IM23           EXTI_IMR1_IM23_Msk                            /*!< CPU1 Interrupt Mask on line 23 */
3756 #define EXTI_IMR1_IM24_Pos       (24U)
3757 #define EXTI_IMR1_IM24_Msk       (0x1UL << EXTI_IMR1_IM24_Pos)                 /*!< 0x01000000 */
3758 #define EXTI_IMR1_IM24           EXTI_IMR1_IM24_Msk                            /*!< CPU1 Interrupt Mask on line 24 */
3759 #define EXTI_IMR1_IM25_Pos       (25U)
3760 #define EXTI_IMR1_IM25_Msk       (0x1UL << EXTI_IMR1_IM25_Pos)                 /*!< 0x02000000 */
3761 #define EXTI_IMR1_IM25           EXTI_IMR1_IM25_Msk                            /*!< CPU1 Interrupt Mask on line 25 */
3762 #define EXTI_IMR1_IM26_Pos       (26U)
3763 #define EXTI_IMR1_IM26_Msk       (0x1UL << EXTI_IMR1_IM26_Pos)                 /*!< 0x04000000 */
3764 #define EXTI_IMR1_IM26           EXTI_IMR1_IM26_Msk                            /*!< CPU1 Interrupt Mask on line 26 */
3765 #define EXTI_IMR1_IM27_Pos       (27U)
3766 #define EXTI_IMR1_IM27_Msk       (0x1UL << EXTI_IMR1_IM27_Pos)                 /*!< 0x08000000 */
3767 #define EXTI_IMR1_IM27           EXTI_IMR1_IM27_Msk                            /*!< CPU1 Interrupt Mask on line 27 */
3768 #define EXTI_IMR1_IM28_Pos       (28U)
3769 #define EXTI_IMR1_IM28_Msk       (0x1UL << EXTI_IMR1_IM28_Pos)                 /*!< 0x10000000 */
3770 #define EXTI_IMR1_IM28           EXTI_IMR1_IM28_Msk                            /*!< CPU1 Interrupt Mask on line 28 */
3771 #define EXTI_IMR1_IM29_Pos       (29U)
3772 #define EXTI_IMR1_IM29_Msk       (0x1UL << EXTI_IMR1_IM29_Pos)                 /*!< 0x20000000 */
3773 #define EXTI_IMR1_IM29           EXTI_IMR1_IM29_Msk                            /*!< CPU1 Interrupt Mask on line 29 */
3774 #define EXTI_IMR1_IM30_Pos       (30U)
3775 #define EXTI_IMR1_IM30_Msk       (0x1UL << EXTI_IMR1_IM30_Pos)                 /*!< 0x40000000 */
3776 #define EXTI_IMR1_IM30           EXTI_IMR1_IM30_Msk                            /*!< CPU1 Interrupt Mask on line 30 */
3777 #define EXTI_IMR1_IM31_Pos       (31U)
3778 #define EXTI_IMR1_IM31_Msk       (0x1UL << EXTI_IMR1_IM31_Pos)                 /*!< 0x80000000 */
3779 #define EXTI_IMR1_IM31           EXTI_IMR1_IM31_Msk                            /*!< CPU1 Interrupt Mask on line 31 */
3780 
3781 /********************  Bits definition for EXTI_EMR1 register  **************/
3782 #define EXTI_EMR1_EM0_Pos        (0U)
3783 #define EXTI_EMR1_EM0_Msk        (0x1UL << EXTI_EMR1_EM0_Pos)                  /*!< 0x00000001 */
3784 #define EXTI_EMR1_EM0            EXTI_EMR1_EM0_Msk                             /*!< CPU1 Event Mask on line 0 */
3785 #define EXTI_EMR1_EM1_Pos        (1U)
3786 #define EXTI_EMR1_EM1_Msk        (0x1UL << EXTI_EMR1_EM1_Pos)                  /*!< 0x00000002 */
3787 #define EXTI_EMR1_EM1            EXTI_EMR1_EM1_Msk                             /*!< CPU1 Event Mask on line 1 */
3788 #define EXTI_EMR1_EM2_Pos        (2U)
3789 #define EXTI_EMR1_EM2_Msk        (0x1UL << EXTI_EMR1_EM2_Pos)                  /*!< 0x00000004 */
3790 #define EXTI_EMR1_EM2            EXTI_EMR1_EM2_Msk                             /*!< CPU1 Event Mask on line 2 */
3791 #define EXTI_EMR1_EM3_Pos        (3U)
3792 #define EXTI_EMR1_EM3_Msk        (0x1UL << EXTI_EMR1_EM3_Pos)                  /*!< 0x00000008 */
3793 #define EXTI_EMR1_EM3            EXTI_EMR1_EM3_Msk                             /*!< CPU1 Event Mask on line 3 */
3794 #define EXTI_EMR1_EM4_Pos        (4U)
3795 #define EXTI_EMR1_EM4_Msk        (0x1UL << EXTI_EMR1_EM4_Pos)                  /*!< 0x00000010 */
3796 #define EXTI_EMR1_EM4            EXTI_EMR1_EM4_Msk                             /*!< CPU1 Event Mask on line 4 */
3797 #define EXTI_EMR1_EM5_Pos        (5U)
3798 #define EXTI_EMR1_EM5_Msk        (0x1UL << EXTI_EMR1_EM5_Pos)                  /*!< 0x00000020 */
3799 #define EXTI_EMR1_EM5            EXTI_EMR1_EM5_Msk                             /*!< CPU1 Event Mask on line 5 */
3800 #define EXTI_EMR1_EM6_Pos        (6U)
3801 #define EXTI_EMR1_EM6_Msk        (0x1UL << EXTI_EMR1_EM6_Pos)                  /*!< 0x00000040 */
3802 #define EXTI_EMR1_EM6            EXTI_EMR1_EM6_Msk                             /*!< CPU1 Event Mask on line 6 */
3803 #define EXTI_EMR1_EM7_Pos        (7U)
3804 #define EXTI_EMR1_EM7_Msk        (0x1UL << EXTI_EMR1_EM7_Pos)                  /*!< 0x00000080 */
3805 #define EXTI_EMR1_EM7            EXTI_EMR1_EM7_Msk                             /*!< CPU1 Event Mask on line 7 */
3806 #define EXTI_EMR1_EM8_Pos        (8U)
3807 #define EXTI_EMR1_EM8_Msk        (0x1UL << EXTI_EMR1_EM8_Pos)                  /*!< 0x00000100 */
3808 #define EXTI_EMR1_EM8            EXTI_EMR1_EM8_Msk                             /*!< CPU1 Event Mask on line 8 */
3809 #define EXTI_EMR1_EM9_Pos        (9U)
3810 #define EXTI_EMR1_EM9_Msk        (0x1UL << EXTI_EMR1_EM9_Pos)                  /*!< 0x00000200 */
3811 #define EXTI_EMR1_EM9            EXTI_EMR1_EM9_Msk                             /*!< CPU1 Event Mask on line 9 */
3812 #define EXTI_EMR1_EM10_Pos       (10U)
3813 #define EXTI_EMR1_EM10_Msk       (0x1UL << EXTI_EMR1_EM10_Pos)                 /*!< 0x00000400 */
3814 #define EXTI_EMR1_EM10           EXTI_EMR1_EM10_Msk                            /*!< CPU1 Event Mask on line 10 */
3815 #define EXTI_EMR1_EM11_Pos       (11U)
3816 #define EXTI_EMR1_EM11_Msk       (0x1UL << EXTI_EMR1_EM11_Pos)                 /*!< 0x00000800 */
3817 #define EXTI_EMR1_EM11           EXTI_EMR1_EM11_Msk                            /*!< CPU1 Event Mask on line 11 */
3818 #define EXTI_EMR1_EM12_Pos       (12U)
3819 #define EXTI_EMR1_EM12_Msk       (0x1UL << EXTI_EMR1_EM12_Pos)                 /*!< 0x00001000 */
3820 #define EXTI_EMR1_EM12           EXTI_EMR1_EM12_Msk                            /*!< CPU1 Event Mask on line 12 */
3821 #define EXTI_EMR1_EM13_Pos       (13U)
3822 #define EXTI_EMR1_EM13_Msk       (0x1UL << EXTI_EMR1_EM13_Pos)                 /*!< 0x00002000 */
3823 #define EXTI_EMR1_EM13           EXTI_EMR1_EM13_Msk                            /*!< CPU1 Event Mask on line 13 */
3824 #define EXTI_EMR1_EM14_Pos       (14U)
3825 #define EXTI_EMR1_EM14_Msk       (0x1UL << EXTI_EMR1_EM14_Pos)                 /*!< 0x00004000 */
3826 #define EXTI_EMR1_EM14           EXTI_EMR1_EM14_Msk                            /*!< CPU1 Event Mask on line 14 */
3827 #define EXTI_EMR1_EM15_Pos       (15U)
3828 #define EXTI_EMR1_EM15_Msk       (0x1UL << EXTI_EMR1_EM15_Pos)                 /*!< 0x00008000 */
3829 #define EXTI_EMR1_EM15           EXTI_EMR1_EM15_Msk                            /*!< CPU1 Event Mask on line 15 */
3830 #define EXTI_EMR1_EM17_Pos       (17U)
3831 #define EXTI_EMR1_EM17_Msk       (0x1UL << EXTI_EMR1_EM17_Pos)                 /*!< 0x00020000 */
3832 #define EXTI_EMR1_EM17           EXTI_EMR1_EM17_Msk                            /*!< CPU1 Event Mask on line 17 */
3833 #define EXTI_EMR1_EM19_Pos       (19U)
3834 #define EXTI_EMR1_EM19_Msk       (0x1UL << EXTI_EMR1_EM19_Pos)                 /*!< 0x00080000 */
3835 #define EXTI_EMR1_EM19           EXTI_EMR1_EM19_Msk                            /*!< CPU1 Event Mask on line 19 */
3836 #define EXTI_EMR1_EM20_Pos       (20U)
3837 #define EXTI_EMR1_EM20_Msk       (0x1UL << EXTI_EMR1_EM20_Pos)                 /*!< 0x00100000 */
3838 #define EXTI_EMR1_EM20           EXTI_EMR1_EM20_Msk                            /*!< CPU1 Event Mask on line 20 */
3839 #define EXTI_EMR1_EM21_Pos       (21U)
3840 #define EXTI_EMR1_EM21_Msk       (0x1UL << EXTI_EMR1_EM21_Pos)                 /*!< 0x00200000 */
3841 #define EXTI_EMR1_EM21           EXTI_EMR1_EM21_Msk                            /*!< CPU1 Event Mask on line 21 */
3842 #define EXTI_EMR1_EM22_Pos       (22U)
3843 #define EXTI_EMR1_EM22_Msk       (0x1UL << EXTI_EMR1_EM22_Pos)                 /*!< 0x00400000 */
3844 #define EXTI_EMR1_EM22           EXTI_EMR1_EM22_Msk                            /*!< CPU1 Event Mask on line 22 */
3845 
3846 /********************  Bits definition for EXTI_IMR2 register  **************/
3847 #define EXTI_IMR2_IM34_Pos       (2U)
3848 #define EXTI_IMR2_IM34_Msk       (0x1UL << EXTI_IMR2_IM34_Pos)                 /*!< 0x00000004 */
3849 #define EXTI_IMR2_IM34           EXTI_IMR2_IM34_Msk                            /*!< CPU1 Interrupt Mask on line 34 */
3850 #define EXTI_IMR2_IM36_Pos       (4U)
3851 #define EXTI_IMR2_IM36_Msk       (0x1UL << EXTI_IMR2_IM36_Pos)                 /*!< 0x00000010 */
3852 #define EXTI_IMR2_IM36           EXTI_IMR2_IM36_Msk                            /*!< CPU1 Interrupt Mask on line 36 */
3853 #define EXTI_IMR2_IM37_Pos       (5U)
3854 #define EXTI_IMR2_IM37_Msk       (0x1UL << EXTI_IMR2_IM37_Pos)                 /*!< 0x00000020 */
3855 #define EXTI_IMR2_IM37           EXTI_IMR2_IM37_Msk                            /*!< CPU1 Interrupt Mask on line 37 */
3856 #define EXTI_IMR2_IM38_Pos       (6U)
3857 #define EXTI_IMR2_IM38_Msk       (0x1UL << EXTI_IMR2_IM38_Pos)                 /*!< 0x00000040 */
3858 #define EXTI_IMR2_IM38           EXTI_IMR2_IM38_Msk                            /*!< CPU1 Interrupt Mask on line 38 */
3859 #define EXTI_IMR2_IM39_Pos       (7U)
3860 #define EXTI_IMR2_IM39_Msk       (0x1UL << EXTI_IMR2_IM39_Pos)                 /*!< 0x00000080 */
3861 #define EXTI_IMR2_IM39           EXTI_IMR2_IM39_Msk                            /*!< CPU1 Interrupt Mask on line 39 */
3862 #define EXTI_IMR2_IM40_Pos       (8U)
3863 #define EXTI_IMR2_IM40_Msk       (0x1UL << EXTI_IMR2_IM40_Pos)                 /*!< 0x00000100 */
3864 #define EXTI_IMR2_IM40           EXTI_IMR2_IM40_Msk                            /*!< CPU1 Interrupt Mask on line 40 */
3865 #define EXTI_IMR2_IM41_Pos       (9U)
3866 #define EXTI_IMR2_IM41_Msk       (0x1UL << EXTI_IMR2_IM41_Pos)                 /*!< 0x00000200 */
3867 #define EXTI_IMR2_IM41           EXTI_IMR2_IM41_Msk                            /*!< CPU1 Interrupt Mask on line 41 */
3868 #define EXTI_IMR2_IM42_Pos       (10U)
3869 #define EXTI_IMR2_IM42_Msk       (0x1UL << EXTI_IMR2_IM42_Pos)                 /*!< 0x00000400 */
3870 #define EXTI_IMR2_IM42           EXTI_IMR2_IM42_Msk                            /*!< CPU1 Interrupt Mask on line 42 */
3871 #define EXTI_IMR2_IM43_Pos       (11U)
3872 #define EXTI_IMR2_IM43_Msk       (0x1UL << EXTI_IMR2_IM43_Pos)                 /*!< 0x00000800 */
3873 #define EXTI_IMR2_IM43           EXTI_IMR2_IM43_Msk                            /*!< CPU1 Interrupt Mask on line 43 */
3874 #define EXTI_IMR2_IM44_Pos       (12U)
3875 #define EXTI_IMR2_IM44_Msk       (0x1UL << EXTI_IMR2_IM44_Pos)                 /*!< 0x00001000 */
3876 #define EXTI_IMR2_IM44           EXTI_IMR2_IM44_Msk                            /*!< CPU1 Interrupt Mask on line 44 */
3877 #define EXTI_IMR2_IM45_Pos       (13U)
3878 #define EXTI_IMR2_IM45_Msk       (0x1UL << EXTI_IMR2_IM45_Pos)                 /*!< 0x00002000 */
3879 #define EXTI_IMR2_IM45           EXTI_IMR2_IM45_Msk                            /*!< CPU1 Interrupt Mask on line 45 */
3880 #define EXTI_IMR2_IM46_Pos       (14U)
3881 #define EXTI_IMR2_IM46_Msk       (0x1UL << EXTI_IMR2_IM46_Pos)                 /*!< 0x00004000 */
3882 #define EXTI_IMR2_IM46           EXTI_IMR2_IM46_Msk                            /*!< CPU1 Interrupt Mask on line 46 */
3883 
3884 /********************  Bits definition for EXTI_EMR2 register  **************/
3885 #define EXTI_EMR2_EM40_Pos       (8U)
3886 #define EXTI_EMR2_EM40_Msk       (0x1UL << EXTI_EMR2_EM40_Pos)                 /*!< 0x00000100 */
3887 #define EXTI_EMR2_EM40           EXTI_EMR2_EM40_Msk                            /*!< CPU1 Event Mask on line 40 */
3888 #define EXTI_EMR2_EM41_Pos       (9U)
3889 #define EXTI_EMR2_EM41_Msk       (0x1UL << EXTI_EMR2_EM41_Pos)                 /*!< 0x00000200 */
3890 #define EXTI_EMR2_EM41           EXTI_EMR2_EM41_Msk                            /*!< CPU1 Event Mask on line 41 */
3891 
3892 /********************  Bits definition for EXTI_C2IMR1 register  **************/
3893 #define EXTI_C2IMR1_IM0_Pos      (0U)
3894 #define EXTI_C2IMR1_IM0_Msk      (0x1UL << EXTI_C2IMR1_IM0_Pos)                /*!< 0x00000001 */
3895 #define EXTI_C2IMR1_IM0          EXTI_C2IMR1_IM0_Msk                           /*!< CPU2 Interrupt Mask on line 0 */
3896 #define EXTI_C2IMR1_IM1_Pos      (1U)
3897 #define EXTI_C2IMR1_IM1_Msk      (0x1UL << EXTI_C2IMR1_IM1_Pos)                /*!< 0x00000002 */
3898 #define EXTI_C2IMR1_IM1          EXTI_C2IMR1_IM1_Msk                           /*!< CPU2 Interrupt Mask on line 1 */
3899 #define EXTI_C2IMR1_IM2_Pos      (2U)
3900 #define EXTI_C2IMR1_IM2_Msk      (0x1UL << EXTI_C2IMR1_IM2_Pos)                /*!< 0x00000004 */
3901 #define EXTI_C2IMR1_IM2          EXTI_C2IMR1_IM2_Msk                           /*!< CPU2 Interrupt Mask on line 2 */
3902 #define EXTI_C2IMR1_IM3_Pos      (3U)
3903 #define EXTI_C2IMR1_IM3_Msk      (0x1UL << EXTI_C2IMR1_IM3_Pos)                /*!< 0x00000008 */
3904 #define EXTI_C2IMR1_IM3          EXTI_C2IMR1_IM3_Msk                           /*!< CPU2 Interrupt Mask on line 3 */
3905 #define EXTI_C2IMR1_IM4_Pos      (4U)
3906 #define EXTI_C2IMR1_IM4_Msk      (0x1UL << EXTI_C2IMR1_IM4_Pos)                /*!< 0x00000010 */
3907 #define EXTI_C2IMR1_IM4          EXTI_C2IMR1_IM4_Msk                           /*!< CPU2 Interrupt Mask on line 4 */
3908 #define EXTI_C2IMR1_IM5_Pos      (5U)
3909 #define EXTI_C2IMR1_IM5_Msk      (0x1UL << EXTI_C2IMR1_IM5_Pos)                /*!< 0x00000020 */
3910 #define EXTI_C2IMR1_IM5          EXTI_C2IMR1_IM5_Msk                           /*!< CPU2 Interrupt Mask on line 5 */
3911 #define EXTI_C2IMR1_IM6_Pos      (6U)
3912 #define EXTI_C2IMR1_IM6_Msk      (0x1UL << EXTI_C2IMR1_IM6_Pos)                /*!< 0x00000040 */
3913 #define EXTI_C2IMR1_IM6          EXTI_C2IMR1_IM6_Msk                           /*!< CPU2 Interrupt Mask on line 6 */
3914 #define EXTI_C2IMR1_IM7_Pos      (7U)
3915 #define EXTI_C2IMR1_IM7_Msk      (0x1UL << EXTI_C2IMR1_IM7_Pos)                /*!< 0x00000080 */
3916 #define EXTI_C2IMR1_IM7          EXTI_C2IMR1_IM7_Msk                           /*!< CPU2 Interrupt Mask on line 7 */
3917 #define EXTI_C2IMR1_IM8_Pos      (8U)
3918 #define EXTI_C2IMR1_IM8_Msk      (0x1UL << EXTI_C2IMR1_IM8_Pos)                /*!< 0x00000100 */
3919 #define EXTI_C2IMR1_IM8          EXTI_C2IMR1_IM8_Msk                           /*!< CPU2 Interrupt Mask on line 8 */
3920 #define EXTI_C2IMR1_IM9_Pos      (9U)
3921 #define EXTI_C2IMR1_IM9_Msk      (0x1UL << EXTI_C2IMR1_IM9_Pos)                /*!< 0x00000200 */
3922 #define EXTI_C2IMR1_IM9          EXTI_C2IMR1_IM9_Msk                           /*!< CPU2 Interrupt Mask on line 9 */
3923 #define EXTI_C2IMR1_IM10_Pos     (10U)
3924 #define EXTI_C2IMR1_IM10_Msk     (0x1UL << EXTI_C2IMR1_IM10_Pos)               /*!< 0x00000400 */
3925 #define EXTI_C2IMR1_IM10         EXTI_C2IMR1_IM10_Msk                          /*!< CPU2 Interrupt Mask on line 10 */
3926 #define EXTI_C2IMR1_IM11_Pos     (11U)
3927 #define EXTI_C2IMR1_IM11_Msk     (0x1UL << EXTI_C2IMR1_IM11_Pos)               /*!< 0x00000800 */
3928 #define EXTI_C2IMR1_IM11         EXTI_C2IMR1_IM11_Msk                          /*!< CPU2 Interrupt Mask on line 11 */
3929 #define EXTI_C2IMR1_IM12_Pos     (12U)
3930 #define EXTI_C2IMR1_IM12_Msk     (0x1UL << EXTI_C2IMR1_IM12_Pos)               /*!< 0x00001000 */
3931 #define EXTI_C2IMR1_IM12         EXTI_C2IMR1_IM12_Msk                          /*!< CPU2 Interrupt Mask on line 12 */
3932 #define EXTI_C2IMR1_IM13_Pos     (13U)
3933 #define EXTI_C2IMR1_IM13_Msk     (0x1UL << EXTI_C2IMR1_IM13_Pos)               /*!< 0x00002000 */
3934 #define EXTI_C2IMR1_IM13         EXTI_C2IMR1_IM13_Msk                          /*!< CPU2 Interrupt Mask on line 13 */
3935 #define EXTI_C2IMR1_IM14_Pos     (14U)
3936 #define EXTI_C2IMR1_IM14_Msk     (0x1UL << EXTI_C2IMR1_IM14_Pos)               /*!< 0x00004000 */
3937 #define EXTI_C2IMR1_IM14         EXTI_C2IMR1_IM14_Msk                          /*!< CPU2 Interrupt Mask on line 14 */
3938 #define EXTI_C2IMR1_IM15_Pos     (15U)
3939 #define EXTI_C2IMR1_IM15_Msk     (0x1UL << EXTI_C2IMR1_IM15_Pos)               /*!< 0x00008000 */
3940 #define EXTI_C2IMR1_IM15         EXTI_C2IMR1_IM15_Msk                          /*!< CPU2 Interrupt Mask on line 15 */
3941 #define EXTI_C2IMR1_IM16_Pos     (16U)
3942 #define EXTI_C2IMR1_IM16_Msk     (0x1UL << EXTI_C2IMR1_IM16_Pos)               /*!< 0x00010000 */
3943 #define EXTI_C2IMR1_IM16         EXTI_C2IMR1_IM16_Msk                          /*!< CPU2 Interrupt Mask on line 16 */
3944 #define EXTI_C2IMR1_IM17_Pos     (17U)
3945 #define EXTI_C2IMR1_IM17_Msk     (0x1UL << EXTI_C2IMR1_IM17_Pos)               /*!< 0x00020000 */
3946 #define EXTI_C2IMR1_IM17         EXTI_C2IMR1_IM17_Msk                          /*!< CPU2 Interrupt Mask on line 17 */
3947 #define EXTI_C2IMR1_IM18_Pos     (18U)
3948 #define EXTI_C2IMR1_IM18_Msk     (0x1UL << EXTI_C2IMR1_IM18_Pos)               /*!< 0x00040000 */
3949 #define EXTI_C2IMR1_IM18         EXTI_C2IMR1_IM18_Msk                          /*!< CPU2 Interrupt Mask on line 18 */
3950 #define EXTI_C2IMR1_IM19_Pos     (19U)
3951 #define EXTI_C2IMR1_IM19_Msk     (0x1UL << EXTI_C2IMR1_IM19_Pos)               /*!< 0x00080000 */
3952 #define EXTI_C2IMR1_IM19         EXTI_C2IMR1_IM19_Msk                          /*!< CPU2 Interrupt Mask on line 19 */
3953 #define EXTI_C2IMR1_IM20_Pos     (20U)
3954 #define EXTI_C2IMR1_IM20_Msk     (0x1UL << EXTI_C2IMR1_IM20_Pos)               /*!< 0x00100000 */
3955 #define EXTI_C2IMR1_IM20         EXTI_C2IMR1_IM20_Msk                          /*!< CPU2 Interrupt Mask on line 20 */
3956 #define EXTI_C2IMR1_IM21_Pos     (21U)
3957 #define EXTI_C2IMR1_IM21_Msk     (0x1UL << EXTI_C2IMR1_IM21_Pos)               /*!< 0x00200000 */
3958 #define EXTI_C2IMR1_IM21         EXTI_C2IMR1_IM21_Msk                          /*!< CPU2 Interrupt Mask on line 21 */
3959 #define EXTI_C2IMR1_IM22_Pos     (22U)
3960 #define EXTI_C2IMR1_IM22_Msk     (0x1UL << EXTI_C2IMR1_IM22_Pos)               /*!< 0x00400000 */
3961 #define EXTI_C2IMR1_IM22         EXTI_C2IMR1_IM22_Msk                          /*!< CPU2 Interrupt Mask on line 22 */
3962 #define EXTI_C2IMR1_IM23_Pos     (23U)
3963 #define EXTI_C2IMR1_IM23_Msk     (0x1UL << EXTI_C2IMR1_IM23_Pos)               /*!< 0x00800000 */
3964 #define EXTI_C2IMR1_IM23         EXTI_C2IMR1_IM23_Msk                          /*!< CPU2 Interrupt Mask on line 23 */
3965 #define EXTI_C2IMR1_IM24_Pos     (24U)
3966 #define EXTI_C2IMR1_IM24_Msk     (0x1UL << EXTI_C2IMR1_IM24_Pos)               /*!< 0x01000000 */
3967 #define EXTI_C2IMR1_IM24         EXTI_C2IMR1_IM24_Msk                          /*!< CPU2 Interrupt Mask on line 24 */
3968 #define EXTI_C2IMR1_IM25_Pos     (25U)
3969 #define EXTI_C2IMR1_IM25_Msk     (0x1UL << EXTI_C2IMR1_IM25_Pos)               /*!< 0x02000000 */
3970 #define EXTI_C2IMR1_IM25         EXTI_C2IMR1_IM25_Msk                          /*!< CPU2 Interrupt Mask on line 25 */
3971 #define EXTI_C2IMR1_IM26_Pos     (26U)
3972 #define EXTI_C2IMR1_IM26_Msk     (0x1UL << EXTI_C2IMR1_IM26_Pos)               /*!< 0x04000000 */
3973 #define EXTI_C2IMR1_IM26         EXTI_C2IMR1_IM26_Msk                          /*!< CPU2 Interrupt Mask on line 26 */
3974 #define EXTI_C2IMR1_IM27_Pos     (27U)
3975 #define EXTI_C2IMR1_IM27_Msk     (0x1UL << EXTI_C2IMR1_IM27_Pos)               /*!< 0x08000000 */
3976 #define EXTI_C2IMR1_IM27         EXTI_C2IMR1_IM27_Msk                          /*!< CPU2 Interrupt Mask on line 27 */
3977 #define EXTI_C2IMR1_IM28_Pos     (28U)
3978 #define EXTI_C2IMR1_IM28_Msk     (0x1UL << EXTI_C2IMR1_IM28_Pos)               /*!< 0x10000000 */
3979 #define EXTI_C2IMR1_IM28         EXTI_C2IMR1_IM28_Msk                          /*!< CPU2 Interrupt Mask on line 28 */
3980 #define EXTI_C2IMR1_IM29_Pos     (29U)
3981 #define EXTI_C2IMR1_IM29_Msk     (0x1UL << EXTI_C2IMR1_IM29_Pos)               /*!< 0x20000000 */
3982 #define EXTI_C2IMR1_IM29         EXTI_C2IMR1_IM29_Msk                          /*!< CPU2 Interrupt Mask on line 29 */
3983 #define EXTI_C2IMR1_IM30_Pos     (30U)
3984 #define EXTI_C2IMR1_IM30_Msk     (0x1UL << EXTI_C2IMR1_IM30_Pos)               /*!< 0x40000000 */
3985 #define EXTI_C2IMR1_IM30         EXTI_C2IMR1_IM30_Msk                          /*!< CPU2 Interrupt Mask on line 30 */
3986 #define EXTI_C2IMR1_IM31_Pos     (31U)
3987 #define EXTI_C2IMR1_IM31_Msk     (0x1UL << EXTI_C2IMR1_IM31_Pos)               /*!< 0x80000000 */
3988 #define EXTI_C2IMR1_IM31         EXTI_C2IMR1_IM31_Msk                          /*!< CPU2 Interrupt Mask on line 31 */
3989 
3990 /********************  Bits definition for EXTI_C2EMR1 register  **************/
3991 #define EXTI_C2EMR1_EM0_Pos      (0U)
3992 #define EXTI_C2EMR1_EM0_Msk      (0x1UL << EXTI_C2EMR1_EM0_Pos)                /*!< 0x00000001 */
3993 #define EXTI_C2EMR1_EM0          EXTI_C2EMR1_EM0_Msk                           /*!< CPU2 Event Mask on line 0 */
3994 #define EXTI_C2EMR1_EM1_Pos      (1U)
3995 #define EXTI_C2EMR1_EM1_Msk      (0x1UL << EXTI_C2EMR1_EM1_Pos)                /*!< 0x00000002 */
3996 #define EXTI_C2EMR1_EM1          EXTI_C2EMR1_EM1_Msk                           /*!< CPU2 Event Mask on line 1 */
3997 #define EXTI_C2EMR1_EM2_Pos      (2U)
3998 #define EXTI_C2EMR1_EM2_Msk      (0x1UL << EXTI_C2EMR1_EM2_Pos)                /*!< 0x00000004 */
3999 #define EXTI_C2EMR1_EM2          EXTI_C2EMR1_EM2_Msk                           /*!< CPU2 Event Mask on line 2 */
4000 #define EXTI_C2EMR1_EM3_Pos      (3U)
4001 #define EXTI_C2EMR1_EM3_Msk      (0x1UL << EXTI_C2EMR1_EM3_Pos)                /*!< 0x00000008 */
4002 #define EXTI_C2EMR1_EM3          EXTI_C2EMR1_EM3_Msk                           /*!< CPU2 Event Mask on line 3 */
4003 #define EXTI_C2EMR1_EM4_Pos      (4U)
4004 #define EXTI_C2EMR1_EM4_Msk      (0x1UL << EXTI_C2EMR1_EM4_Pos)                /*!< 0x00000010 */
4005 #define EXTI_C2EMR1_EM4          EXTI_C2EMR1_EM4_Msk                           /*!< CPU2 Event Mask on line 4 */
4006 #define EXTI_C2EMR1_EM5_Pos      (5U)
4007 #define EXTI_C2EMR1_EM5_Msk      (0x1UL << EXTI_C2EMR1_EM5_Pos)                /*!< 0x00000020 */
4008 #define EXTI_C2EMR1_EM5          EXTI_C2EMR1_EM5_Msk                           /*!< CPU2 Event Mask on line 5 */
4009 #define EXTI_C2EMR1_EM6_Pos      (6U)
4010 #define EXTI_C2EMR1_EM6_Msk      (0x1UL << EXTI_C2EMR1_EM6_Pos)                /*!< 0x00000040 */
4011 #define EXTI_C2EMR1_EM6          EXTI_C2EMR1_EM6_Msk                           /*!< CPU2 Event Mask on line 6 */
4012 #define EXTI_C2EMR1_EM7_Pos      (7U)
4013 #define EXTI_C2EMR1_EM7_Msk      (0x1UL << EXTI_C2EMR1_EM7_Pos)                /*!< 0x00000080 */
4014 #define EXTI_C2EMR1_EM7          EXTI_C2EMR1_EM7_Msk                           /*!< CPU2 Event Mask on line 7 */
4015 #define EXTI_C2EMR1_EM8_Pos      (8U)
4016 #define EXTI_C2EMR1_EM8_Msk      (0x1UL << EXTI_C2EMR1_EM8_Pos)                /*!< 0x00000100 */
4017 #define EXTI_C2EMR1_EM8          EXTI_C2EMR1_EM8_Msk                           /*!< CPU2 Event Mask on line 8 */
4018 #define EXTI_C2EMR1_EM9_Pos      (9U)
4019 #define EXTI_C2EMR1_EM9_Msk      (0x1UL << EXTI_C2EMR1_EM9_Pos)                /*!< 0x00000200 */
4020 #define EXTI_C2EMR1_EM9          EXTI_C2EMR1_EM9_Msk                           /*!< CPU2 Event Mask on line 9 */
4021 #define EXTI_C2EMR1_EM10_Pos     (10U)
4022 #define EXTI_C2EMR1_EM10_Msk     (0x1UL << EXTI_C2EMR1_EM10_Pos)               /*!< 0x00000400 */
4023 #define EXTI_C2EMR1_EM10         EXTI_C2EMR1_EM10_Msk                          /*!< CPU2 Event Mask on line 10 */
4024 #define EXTI_C2EMR1_EM11_Pos     (11U)
4025 #define EXTI_C2EMR1_EM11_Msk     (0x1UL << EXTI_C2EMR1_EM11_Pos)               /*!< 0x00000800 */
4026 #define EXTI_C2EMR1_EM11         EXTI_C2EMR1_EM11_Msk                          /*!< CPU2 Event Mask on line 11 */
4027 #define EXTI_C2EMR1_EM12_Pos     (12U)
4028 #define EXTI_C2EMR1_EM12_Msk     (0x1UL << EXTI_C2EMR1_EM12_Pos)               /*!< 0x00001000 */
4029 #define EXTI_C2EMR1_EM12         EXTI_C2EMR1_EM12_Msk                          /*!< CPU2 Event Mask on line 12 */
4030 #define EXTI_C2EMR1_EM13_Pos     (13U)
4031 #define EXTI_C2EMR1_EM13_Msk     (0x1UL << EXTI_C2EMR1_EM13_Pos)               /*!< 0x00002000 */
4032 #define EXTI_C2EMR1_EM13         EXTI_C2EMR1_EM13_Msk                          /*!< CPU2 Event Mask on line 13 */
4033 #define EXTI_C2EMR1_EM14_Pos     (14U)
4034 #define EXTI_C2EMR1_EM14_Msk     (0x1UL << EXTI_C2EMR1_EM14_Pos)               /*!< 0x00004000 */
4035 #define EXTI_C2EMR1_EM14         EXTI_C2EMR1_EM14_Msk                          /*!< CPU2 Event Mask on line 14 */
4036 #define EXTI_C2EMR1_EM15_Pos     (15U)
4037 #define EXTI_C2EMR1_EM15_Msk     (0x1UL << EXTI_C2EMR1_EM15_Pos)               /*!< 0x00008000 */
4038 #define EXTI_C2EMR1_EM15         EXTI_C2EMR1_EM15_Msk                          /*!< CPU2 Event Mask on line 15 */
4039 #define EXTI_C2EMR1_EM17_Pos     (17U)
4040 #define EXTI_C2EMR1_EM17_Msk     (0x1UL << EXTI_C2EMR1_EM17_Pos)               /*!< 0x00020000 */
4041 #define EXTI_C2EMR1_EM17         EXTI_C2EMR1_EM17_Msk                          /*!< CPU2 Event Mask on line 17 */
4042 #define EXTI_C2EMR1_EM19_Pos     (19U)
4043 #define EXTI_C2EMR1_EM19_Msk     (0x1UL << EXTI_C2EMR1_EM19_Pos)               /*!< 0x00080000 */
4044 #define EXTI_C2EMR1_EM19         EXTI_C2EMR1_EM19_Msk                          /*!< CPU2 Event Mask on line 19 */
4045 #define EXTI_C2EMR1_EM20_Pos     (20U)
4046 #define EXTI_C2EMR1_EM20_Msk     (0x1UL << EXTI_C2EMR1_EM20_Pos)               /*!< 0x00100000 */
4047 #define EXTI_C2EMR1_EM20         EXTI_C2EMR1_EM20_Msk                          /*!< CPU2 Event Mask on line 20 */
4048 #define EXTI_C2EMR1_EM21_Pos     (21U)
4049 #define EXTI_C2EMR1_EM21_Msk     (0x1UL << EXTI_C2EMR1_EM21_Pos)               /*!< 0x00200000 */
4050 #define EXTI_C2EMR1_EM21         EXTI_C2EMR1_EM21_Msk                          /*!< CPU2 Event Mask on line 21 */
4051 #define EXTI_C2EMR1_EM22_Pos     (22U)
4052 #define EXTI_C2EMR1_EM22_Msk     (0x1UL << EXTI_C2EMR1_EM22_Pos)               /*!< 0x00400000 */
4053 #define EXTI_C2EMR1_EM22         EXTI_C2EMR1_EM22_Msk                          /*!< CPU2 Event Mask on line 22 */
4054 
4055 /********************  Bits definition for EXTI_C2IMR2 register  **************/
4056 #define EXTI_C2IMR2_IM34_Pos     (2U)
4057 #define EXTI_C2IMR2_IM34_Msk     (0x1UL << EXTI_C2IMR2_IM34_Pos)               /*!< 0x00000004 */
4058 #define EXTI_C2IMR2_IM34         EXTI_C2IMR2_IM34_Msk                          /*!< CPU2 Interrupt Mask on line 34 */
4059 #define EXTI_C2IMR2_IM36_Pos     (4U)
4060 #define EXTI_C2IMR2_IM36_Msk     (0x1UL << EXTI_C2IMR2_IM36_Pos)               /*!< 0x00000010 */
4061 #define EXTI_C2IMR2_IM36         EXTI_C2IMR2_IM36_Msk                          /*!< CPU2 Interrupt Mask on line 36 */
4062 #define EXTI_C2IMR2_IM37_Pos     (5U)
4063 #define EXTI_C2IMR2_IM37_Msk     (0x1UL << EXTI_C2IMR2_IM37_Pos)               /*!< 0x00000020 */
4064 #define EXTI_C2IMR2_IM37         EXTI_C2IMR2_IM37_Msk                          /*!< CPU2 Interrupt Mask on line 37 */
4065 #define EXTI_C2IMR2_IM38_Pos     (6U)
4066 #define EXTI_C2IMR2_IM38_Msk     (0x1UL << EXTI_C2IMR2_IM38_Pos)               /*!< 0x00000040 */
4067 #define EXTI_C2IMR2_IM38         EXTI_C2IMR2_IM38_Msk                          /*!< CPU2 Interrupt Mask on line 38 */
4068 #define EXTI_C2IMR2_IM39_Pos     (7U)
4069 #define EXTI_C2IMR2_IM39_Msk     (0x1UL << EXTI_C2IMR2_IM39_Pos)               /*!< 0x00000080 */
4070 #define EXTI_C2IMR2_IM39         EXTI_C2IMR2_IM39_Msk                          /*!< CPU2 Interrupt Mask on line 39 */
4071 #define EXTI_C2IMR2_IM40_Pos     (8U)
4072 #define EXTI_C2IMR2_IM40_Msk     (0x1UL << EXTI_C2IMR2_IM40_Pos)               /*!< 0x00000100 */
4073 #define EXTI_C2IMR2_IM40         EXTI_C2IMR2_IM40_Msk                          /*!< CPU2 Interrupt Mask on line 40 */
4074 #define EXTI_C2IMR2_IM41_Pos     (9U)
4075 #define EXTI_C2IMR2_IM41_Msk     (0x1UL << EXTI_C2IMR2_IM41_Pos)               /*!< 0x00000200 */
4076 #define EXTI_C2IMR2_IM41         EXTI_C2IMR2_IM41_Msk                          /*!< CPU2 Interrupt Mask on line 41 */
4077 #define EXTI_C2IMR2_IM42_Pos     (10U)
4078 #define EXTI_C2IMR2_IM42_Msk     (0x1UL << EXTI_C2IMR2_IM42_Pos)               /*!< 0x00000400 */
4079 #define EXTI_C2IMR2_IM42         EXTI_C2IMR2_IM42_Msk                          /*!< CPU2 Interrupt Mask on line 42 */
4080 #define EXTI_C2IMR2_IM43_Pos     (11U)
4081 #define EXTI_C2IMR2_IM43_Msk     (0x1UL << EXTI_C2IMR2_IM43_Pos)               /*!< 0x00000800 */
4082 #define EXTI_C2IMR2_IM43         EXTI_C2IMR2_IM43_Msk                          /*!< CPU2 Interrupt Mask on line 43 */
4083 #define EXTI_C2IMR2_IM44_Pos     (12U)
4084 #define EXTI_C2IMR2_IM44_Msk     (0x1UL << EXTI_C2IMR2_IM44_Pos)               /*!< 0x00001000 */
4085 #define EXTI_C2IMR2_IM44         EXTI_C2IMR2_IM44_Msk                          /*!< CPU2 Interrupt Mask on line 44 */
4086 #define EXTI_C2IMR2_IM45_Pos     (13U)
4087 #define EXTI_C2IMR2_IM45_Msk     (0x1UL << EXTI_C2IMR2_IM45_Pos)               /*!< 0x00002000 */
4088 #define EXTI_C2IMR2_IM45         EXTI_C2IMR2_IM45_Msk                          /*!< CPU2 Interrupt Mask on line 45 */
4089 #define EXTI_C2IMR2_IM46_Pos     (14U)
4090 #define EXTI_C2IMR2_IM46_Msk     (0x1UL << EXTI_C2IMR2_IM46_Pos)               /*!< 0x00004000 */
4091 #define EXTI_C2IMR2_IM46         EXTI_C2IMR2_IM46_Msk                          /*!< CPU2 Interrupt Mask on line 46 */
4092 
4093 /********************  Bits definition for EXTI_C2EMR2 register  **************/
4094 #define EXTI_C2EMR2_EM40_Pos     (8U)
4095 #define EXTI_C2EMR2_EM40_Msk     (0x1UL << EXTI_C2EMR2_EM40_Pos)               /*!< 0x00000100 */
4096 #define EXTI_C2EMR2_EM40         EXTI_C2EMR2_EM40_Msk                          /*!< CPU2 Event Mask on line 40 */
4097 #define EXTI_C2EMR2_EM41_Pos     (9U)
4098 #define EXTI_C2EMR2_EM41_Msk     (0x1UL << EXTI_C2EMR2_EM41_Pos)               /*!< 0x00000200 */
4099 #define EXTI_C2EMR2_EM41         EXTI_C2EMR2_EM41_Msk                          /*!< CPU2 Event Mask on line 41 */
4100 
4101 /******************************************************************************/
4102 /*                                                                            */
4103 /*                        Global Security Control                            */
4104 /*                                                                            */
4105 /******************************************************************************/
4106 /*******************  Bits definition for registers x = 0  ********************/
4107 #define GTZC_CFGR1_TZIC_Pos                 (0U)
4108 #define GTZC_CFGR1_TZIC_Msk                 (0x01UL << GTZC_CFGR1_TZIC_Pos)     /*!< 0x00000001 */
4109 #define GTZC_CFGR1_TZSC_Pos                 (1U)
4110 #define GTZC_CFGR1_TZSC_Msk                 (0x01UL << GTZC_CFGR1_TZSC_Pos)     /*!< 0x00000002 */
4111 #define GTZC_CFGR1_AES_Pos                  (2U)
4112 #define GTZC_CFGR1_AES_Msk                  (0x01UL << GTZC_CFGR1_AES_Pos)      /*!< 0x00000004 */
4113 #define GTZC_CFGR1_RNG_Pos                  (3U)
4114 #define GTZC_CFGR1_RNG_Msk                  (0x01UL << GTZC_CFGR1_RNG_Pos)      /*!< 0x00000008 */
4115 #define GTZC_CFGR1_SUBGHZSPI_Pos            (4U)
4116 #define GTZC_CFGR1_SUBGHZSPI_Msk            (0x01UL << GTZC_CFGR1_SUBGHZSPI_Pos)/*!< 0x00000010 */
4117 #define GTZC_CFGR1_PWR_Pos                  (5U)
4118 #define GTZC_CFGR1_PWR_Msk                  (0x01UL << GTZC_CFGR1_PWR_Pos)      /*!< 0x00000020 */
4119 #define GTZC_CFGR1_FLASHIF_Pos              (6U)
4120 #define GTZC_CFGR1_FLASHIF_Msk              (0x01UL << GTZC_CFGR1_FLASHIF_Pos)  /*!< 0x00000040 */
4121 #define GTZC_CFGR1_DMA1_Pos                 (7U)
4122 #define GTZC_CFGR1_DMA1_Msk                 (0x01UL << GTZC_CFGR1_DMA1_Pos)     /*!< 0x00000080 */
4123 #define GTZC_CFGR1_DMA2_Pos                 (8U)
4124 #define GTZC_CFGR1_DMA2_Msk                 (0x01UL << GTZC_CFGR1_DMA2_Pos)     /*!< 0x00000100 */
4125 #define GTZC_CFGR1_DMAMUX_Pos               (9U)
4126 #define GTZC_CFGR1_DMAMUX_Msk               (0x01UL << GTZC_CFGR1_DMAMUX_Pos)   /*!< 0x00000200 */
4127 #define GTZC_CFGR1_FLASH_Pos                (10U)
4128 #define GTZC_CFGR1_FLASH_Msk                (0x01UL << GTZC_CFGR1_FLASH_Pos)    /*!< 0x00000400 */
4129 #define GTZC_CFGR1_SRAM1_Pos                (11U)
4130 #define GTZC_CFGR1_SRAM1_Msk                (0x01UL << GTZC_CFGR1_SRAM1_Pos)    /*!< 0x00000800 */
4131 #define GTZC_CFGR1_SRAM2_Pos                (12U)
4132 #define GTZC_CFGR1_SRAM2_Msk                (0x01UL << GTZC_CFGR1_SRAM2_Pos)    /*!< 0x00001000 */
4133 #define GTZC_CFGR1_PKA_Pos                  (13U)
4134 #define GTZC_CFGR1_PKA_Msk                  (0x01UL << GTZC_CFGR1_PKA_Pos)      /*!< 0x00002000 */
4135 
4136 /*******************  Bits definition for TZSC_CR register  *******************/
4137 #define TZSC_CR_LCK_Pos                     (0U)
4138 #define TZSC_CR_LCK_Msk                     (0x01UL << TZSC_CR_LCK_Pos)         /*!< 0x00000001 */
4139 
4140 /*******************  Bits definition for TZSC_SECCFGR1 register  *************/
4141 #define TZSC_SECCFGR1_ALL_Pos               (0U)
4142 #define TZSC_SECCFGR1_ALL_Msk               (0x0000200CU)                       /*!< 0x0000200C */
4143 #define TZSC_SECCFGR1_AESSEC_Pos            GTZC_CFGR1_AES_Pos                  /*!< AES Secure enable */
4144 #define TZSC_SECCFGR1_AESSEC_Msk            GTZC_CFGR1_AES_Msk                  /*!< 0x00000001 */
4145 #define TZSC_SECCFGR1_RNGSEC_Pos            GTZC_CFGR1_RNG_Pos                  /*!< RNG Secure enable */
4146 #define TZSC_SECCFGR1_RNGSEC_Msk            GTZC_CFGR1_RNG_Msk                  /*!< 0x00000002 */
4147 #define TZSC_SECCFGR1_PKASEC_Pos            GTZC_CFGR1_PKA_Pos                  /*!< PKA Secure enable */
4148 #define TZSC_SECCFGR1_PKASEC_Msk            GTZC_CFGR1_PKA_Msk                  /*!< 0x00000008 */
4149 
4150 /*******************  Bits definition for TZSC_PRIVCFGR1 register  ************/
4151 #define TZSC_PRIVCFGR1_ALL_Pos              (0U)
4152 #define TZSC_PRIVCFGR1_ALL_Msk              (0x0000201CU)                       /*!< 0x0000201C */
4153 #define TZSC_PRIVCFGR1_AESPRIV_Pos          GTZC_CFGR1_AES_Pos                  /*!< AES Privileged enable */
4154 #define TZSC_PRIVCFGR1_AESPRIV_Msk          GTZC_CFGR1_AES_Msk                  /*!< 0x00000001 */
4155 #define TZSC_PRIVCFGR1_RNGPRIV_Pos          GTZC_CFGR1_RNG_Pos                  /*!< RNG Privileged enable */
4156 #define TZSC_PRIVCFGR1_RNGPRIV_Msk          GTZC_CFGR1_RNG_Msk                  /*!< 0x00000002 */
4157 #define TZSC_PRIVCFGR1_SUBGHZSPIPRIV_Pos    GTZC_CFGR1_SUBGHZSPI_Pos            /*!< SUBGHZSPI Privileged enable */
4158 #define TZSC_PRIVCFGR1_SUBGHZSPIPRIV_Msk    GTZC_CFGR1_SUBGHZSPI_Msk            /*!< 0x00000004 */
4159 #define TZSC_PRIVCFGR1_PKAPRIV_Pos          GTZC_CFGR1_PKA_Pos                  /*!< PKA Privileged enable */
4160 #define TZSC_PRIVCFGR1_PKAPRIV_Msk          GTZC_CFGR1_PKA_Msk                  /*!< 0x00000008 */
4161 
4162 /*******************  Bits definition for TZSC_MPCWM1_UPWMR register  *********/
4163 #define TZSC_MPCWM1_UPWMR_LGTH_Pos          (16U)                                     /*!< User Flash Unprivileged area */
4164 #define TZSC_MPCWM1_UPWMR_LGTH_Msk          (0x0FFFUL << TZSC_MPCWM1_UPWMR_LGTH_Pos)  /*!< 0x0FFF0000 */
4165 
4166 /*******************  Bits definition for TZSC_MPCWM1_UPWWMR register  ********/
4167 #define TZSC_MPCWM1_UPWWMR_LGTH_Pos         (16U)                                     /*!< User Flash Flash Unprivileged Writable area */
4168 #define TZSC_MPCWM1_UPWWMR_LGTH_Msk         (0x0FFFUL << TZSC_MPCWM1_UPWWMR_LGTH_Pos) /*!< 0x0FFF0000 */
4169 
4170 /*******************  Bits definition for TZSC_MPCWM2_UPWMR register  *********/
4171 #define TZSC_MPCWM2_UPWMR_LGTH_Pos          (16U)                                     /*!< User SRAM1 Unprivileged area */
4172 #define TZSC_MPCWM2_UPWMR_LGTH_Msk          (0x0FFFUL << TZSC_MPCWM2_UPWMR_LGTH_Pos)  /*!< 0x0FFF0000 */
4173 
4174 /*******************  Bits definition for TZSC_MPCWM3_UPWMR register  *********/
4175 #define TZSC_MPCWM3_UPWMR_LGTH_Pos          (16U)                                     /*!< User Flash Unprivileged area */
4176 #define TZSC_MPCWM3_UPWMR_LGTH_Msk          (0x0FFFUL << TZSC_MPCWM3_UPWMR_LGTH_Pos)  /*!< 0x0FFF0000 */
4177 
4178 
4179 /*******************  Bits definition for TZIC_IMR0 register  *****************/
4180 #define TZIC_IER1_ALL_Msk                   0x00003FFFu
4181 #define TZIC_IER1_TZICIE_Pos                GTZC_CFGR1_TZIC_Pos
4182 #define TZIC_IER1_TZICIE_Msk                GTZC_CFGR1_TZIC_Msk                  /*!< 0x00000001 */
4183 #define TZIC_IER1_TZSCIE_Pos                GTZC_CFGR1_TZSC_Pos
4184 #define TZIC_IER1_TZSCIE_Msk                GTZC_CFGR1_TZSC_Msk                  /*!< 0x00000002 */
4185 #define TZIC_IER1_AESIE_Pos                 GTZC_CFGR1_AES_Pos
4186 #define TZIC_IER1_AESIE_Msk                 GTZC_CFGR1_AES_Msk                   /*!< 0x00000004 */
4187 #define TZIC_IER1_RNGIE_Pos                 GTZC_CFGR1_RNG_Pos
4188 #define TZIC_IER1_RNGIE_Msk                 GTZC_CFGR1_RNG_Msk                   /*!< 0x00000008 */
4189 #define TZIC_IER1_SUBGHZSPIIE_Pos           GTZC_CFGR1_SUBGHZSPI_Pos
4190 #define TZIC_IER1_SUBGHZSPIIE_Msk           GTZC_CFGR1_SUBGHZSPI_Msk             /*!< 0x00000010 */
4191 #define TZIC_IER1_PWRIE_Pos                 GTZC_CFGR1_PWR_Pos
4192 #define TZIC_IER1_PWRIE_Msk                 GTZC_CFGR1_PWR_Msk                   /*!< 0x00000020 */
4193 #define TZIC_IER1_FLASHIFIE_Pos             GTZC_CFGR1_FLASHIF_Pos
4194 #define TZIC_IER1_FLASHIFIE_Msk             GTZC_CFGR1_FLASHIF_Msk               /*!< 0x00000040 */
4195 #define TZIC_IER1_DMA1IE_Pos                GTZC_CFGR1_DMA1_Pos
4196 #define TZIC_IER1_DMA1IE_Msk                GTZC_CFGR1_DMA1_Msk                  /*!< 0x00000080 */
4197 #define TZIC_IER1_DMA2IE_Pos                GTZC_CFGR1_DMA2_Pos
4198 #define TZIC_IER1_DMA2IE_Msk                GTZC_CFGR1_DMA2_Msk                  /*!< 0x00000100 */
4199 #define TZIC_IER1_DMAMUXIE_Pos              GTZC_CFGR1_DMAMUX_Pos
4200 #define TZIC_IER1_DMAMUXIE_Msk              GTZC_CFGR1_DMAMUX_Msk                /*!< 0x00000200 */
4201 #define TZIC_IER1_FLASHIE_Pos               GTZC_CFGR1_FLASH_Pos
4202 #define TZIC_IER1_FLASHIE_Msk               GTZC_CFGR1_FLASH_Msk                 /*!< 0x00000400 */
4203 #define TZIC_IER1_SRAM1IE_Pos               GTZC_CFGR1_SRAM1_Pos
4204 #define TZIC_IER1_SRAM1IE_Msk               GTZC_CFGR1_SRAM1_Msk                 /*!< 0x00000800 */
4205 #define TZIC_IER1_SRAM2IE_Pos               GTZC_CFGR1_SRAM2_Pos
4206 #define TZIC_IER1_SRAM2IE_Msk               GTZC_CFGR1_SRAM2_Msk                 /*!< 0x00001000 */
4207 #define TZIC_IER1_PKAIE_Pos                 GTZC_CFGR1_PKA_Pos
4208 #define TZIC_IER1_PKAIE_Msk                 GTZC_CFGR1_PKA_Msk                   /*!< 0x00002000 */
4209 
4210 /*******************  Bits definition for TZIC_MISR1 register  ****************/
4211 #define TZIC_MISR1_TZICMF_Pos               GTZC_CFGR1_TZIC_Pos
4212 #define TZIC_MISR1_TZICMF_Msk               GTZC_CFGR1_TZIC_Msk                  /*!< 0x00000001 */
4213 #define TZIC_MISR1_TZSCMF_Pos               GTZC_CFGR1_TZSC_Pos
4214 #define TZIC_MISR1_TZSCMF_Msk               GTZC_CFGR1_TZSC_Msk                  /*!< 0x00000002 */
4215 #define TZIC_MISR1_AESMF_Pos                GTZC_CFGR1_AES_Pos
4216 #define TZIC_MISR1_AESMF_Msk                GTZC_CFGR1_AES_Msk                   /*!< 0x00000004 */
4217 #define TZIC_MISR1_RNGMF_Pos                GTZC_CFGR1_RNG_Pos
4218 #define TZIC_MISR1_RNGMF_Msk                GTZC_CFGR1_RNG_Msk                   /*!< 0x00000008 */
4219 #define TZIC_MISR1_SUBGHZSPIMF_Pos          GTZC_CFGR1_SUBGHZSPI_Pos
4220 #define TZIC_MISR1_SUBGHZSPIMF_Msk          GTZC_CFGR1_SUBGHZSPI_Msk             /*!< 0x00000010 */
4221 #define TZIC_MISR1_PWRMF_Pos                GTZC_CFGR1_PWR_Pos
4222 #define TZIC_MISR1_PWRMF_Msk                GTZC_CFGR1_PWR_Msk                   /*!< 0x00000020 */
4223 #define TZIC_MISR1_FLASHIFMF_Pos            GTZC_CFGR1_FLASHIF_Pos
4224 #define TZIC_MISR1_FLASHIFMF_Msk            GTZC_CFGR1_FLASHIF_Msk               /*!< 0x00000040 */
4225 #define TZIC_MISR1_DMA1MF_Pos               GTZC_CFGR1_DMA1_Pos
4226 #define TZIC_MISR1_DMA1MF_Msk               GTZC_CFGR1_DMA1_Msk                  /*!< 0x00000080 */
4227 #define TZIC_MISR1_DMA2MF_Pos               GTZC_CFGR1_DMA2_Pos
4228 #define TZIC_MISR1_DMA2MF_Msk               GTZC_CFGR1_DMA2_Msk                  /*!< 0x00000100 */
4229 #define TZIC_MISR1_DMAMUXMF_Pos             GTZC_CFGR1_DMAMUX_Pos
4230 #define TZIC_MISR1_DMAMUXMF_Msk             GTZC_CFGR1_DMAMUX_Msk                /*!< 0x00000200 */
4231 #define TZIC_MISR1_FLASHMF_Pos              GTZC_CFGR1_FLASH_Pos
4232 #define TZIC_MISR1_FLASHMF_Msk              GTZC_CFGR1_FLASH_Msk                 /*!< 0x00000400 */
4233 #define TZIC_MISR1_SRAM1MF_Pos              GTZC_CFGR1_SRAM1_Pos
4234 #define TZIC_MISR1_SRAM1MF_Msk              GTZC_CFGR1_SRAM1_Msk                 /*!< 0x00000800 */
4235 #define TZIC_MISR1_SRAM2MF_Pos              GTZC_CFGR1_SRAM2_Pos
4236 #define TZIC_MISR1_SRAM2MF_Msk              GTZC_CFGR1_SRAM2_Msk                 /*!< 0x00001000 */
4237 #define TZIC_MISR1_PKAMF_Pos                GTZC_CFGR1_PKA_Pos
4238 #define TZIC_MISR1_PKAMF_Msk                GTZC_CFGR1_PKA_Msk                   /*!< 0x00002000 */
4239 
4240 /*******************  Bits definition for TZIC_IFCR0 register  ****************/
4241 #define TZIC_ICR1_TZICCF_Pos                GTZC_CFGR1_TZIC_Pos
4242 #define TZIC_ICR1_TZICCF_Msk                GTZC_CFGR1_TZIC_Msk                  /*!< 0x00000001 */
4243 #define TZIC_ICR1_TZSCCF_Pos                GTZC_CFGR1_TZSC_Pos
4244 #define TZIC_ICR1_TZSCCF_Msk                GTZC_CFGR1_TZSC_Msk                  /*!< 0x00000002 */
4245 #define TZIC_ICR1_AESCF_Pos                 GTZC_CFGR1_AES_Pos
4246 #define TZIC_ICR1_AESCF_Msk                 GTZC_CFGR1_AES_Msk                   /*!< 0x00000004 */
4247 #define TZIC_ICR1_RNGCF_Pos                 GTZC_CFGR1_RNG_Pos
4248 #define TZIC_ICR1_RNGCF_Msk                 GTZC_CFGR1_RNG_Msk                   /*!< 0x00000008 */
4249 #define TZIC_ICR1_SUBGHZSPICF_Pos           GTZC_CFGR1_SUBGHZSPI_Pos
4250 #define TZIC_ICR1_SUBGHZSPICF_Msk           GTZC_CFGR1_SUBGHZSPI_Msk             /*!< 0x00000010 */
4251 #define TZIC_ICR1_PWRCF_Pos                 GTZC_CFGR1_PWR_Pos
4252 #define TZIC_ICR1_PWRCF_Msk                 GTZC_CFGR1_PWR_Msk                   /*!< 0x00000020 */
4253 #define TZIC_ICR1_FLASHIFCF_Pos             GTZC_CFGR1_FLASHIF_Pos
4254 #define TZIC_ICR1_FLASHIFCF_Msk             GTZC_CFGR1_FLASHIF_Msk               /*!< 0x00000040 */
4255 #define TZIC_ICR1_DMA1CF_Pos                GTZC_CFGR1_DMA1_Pos
4256 #define TZIC_ICR1_DMA1CF_Msk                GTZC_CFGR1_DMA1_Msk                  /*!< 0x00000080 */
4257 #define TZIC_ICR1_DMA2CF_Pos                GTZC_CFGR1_DMA2_Pos
4258 #define TZIC_ICR1_DMA2CF_Msk                GTZC_CFGR1_DMA2_Msk                  /*!< 0x00000100 */
4259 #define TZIC_ICR1_DMAMUXCF_Pos              GTZC_CFGR1_DMAMUX_Pos
4260 #define TZIC_ICR1_DMAMUXCF_Msk              GTZC_CFGR1_DMAMUX_Msk                /*!< 0x00000200 */
4261 #define TZIC_ICR1_FLASHCF_Pos               GTZC_CFGR1_FLASH_Pos
4262 #define TZIC_ICR1_FLASHCF_Msk               GTZC_CFGR1_FLASH_Msk                 /*!< 0x00000400 */
4263 #define TZIC_ICR1_SRAM1CF_Pos               GTZC_CFGR1_SRAM1_Pos
4264 #define TZIC_ICR1_SRAM1CF_Msk               GTZC_CFGR1_SRAM1_Msk                 /*!< 0x00000800 */
4265 #define TZIC_ICR1_SRAM2CF_Pos               GTZC_CFGR1_SRAM2_Pos
4266 #define TZIC_ICR1_SRAM2CF_Msk               GTZC_CFGR1_SRAM2_Msk                 /*!< 0x00001000 */
4267 #define TZIC_ICR1_PKACF_Pos                 GTZC_CFGR1_PKA_Pos
4268 #define TZIC_ICR1_PKACF_Msk                 GTZC_CFGR1_PKA_Msk                   /*!< 0x00002000 */
4269 
4270 /******************************************************************************/
4271 /*                                                                            */
4272 /*                                    FLASH                                   */
4273 /*                                                                            */
4274 /******************************************************************************/
4275 /*******************  Bits definition for FLASH_ACR register  *****************/
4276 #define FLASH_ACR_LATENCY_Pos               (0U)
4277 #define FLASH_ACR_LATENCY_Msk               (0x7UL << FLASH_ACR_LATENCY_Pos)   /*!< 0x00000007 */
4278 #define FLASH_ACR_LATENCY                   FLASH_ACR_LATENCY_Msk              /*!< Latency                                             */
4279 #define FLASH_ACR_LATENCY_0                 (0x1UL << FLASH_ACR_LATENCY_Pos)   /*!< 0x00000001 */
4280 #define FLASH_ACR_LATENCY_1                 (0x2UL << FLASH_ACR_LATENCY_Pos)   /*!< 0x00000002 */
4281 #define FLASH_ACR_PRFTEN_Pos                (8U)
4282 #define FLASH_ACR_PRFTEN_Msk                (0x1UL << FLASH_ACR_PRFTEN_Pos)    /*!< 0x00000100 */
4283 #define FLASH_ACR_PRFTEN                    FLASH_ACR_PRFTEN_Msk               /*!< Prefetch enable                                     */
4284 #define FLASH_ACR_ICEN_Pos                  (9U)
4285 #define FLASH_ACR_ICEN_Msk                  (0x1UL << FLASH_ACR_ICEN_Pos)      /*!< 0x00000200 */
4286 #define FLASH_ACR_ICEN                      FLASH_ACR_ICEN_Msk                 /*!< Instruction cache enable                            */
4287 #define FLASH_ACR_DCEN_Pos                  (10U)
4288 #define FLASH_ACR_DCEN_Msk                  (0x1UL << FLASH_ACR_DCEN_Pos)      /*!< 0x00000400 */
4289 #define FLASH_ACR_DCEN                      FLASH_ACR_DCEN_Msk                 /*!< Data cache enable                                   */
4290 #define FLASH_ACR_ICRST_Pos                 (11U)
4291 #define FLASH_ACR_ICRST_Msk                 (0x1UL << FLASH_ACR_ICRST_Pos)     /*!< 0x00000800 */
4292 #define FLASH_ACR_ICRST                     FLASH_ACR_ICRST_Msk                /*!< Instruction cache reset                             */
4293 #define FLASH_ACR_DCRST_Pos                 (12U)
4294 #define FLASH_ACR_DCRST_Msk                 (0x1UL << FLASH_ACR_DCRST_Pos)     /*!< 0x00001000 */
4295 #define FLASH_ACR_DCRST                     FLASH_ACR_DCRST_Msk                /*!< Data cache reset                                    */
4296 #define FLASH_ACR_PES_Pos                   (15U)
4297 #define FLASH_ACR_PES_Msk                   (0x1UL << FLASH_ACR_PES_Pos)       /*!< 0x00008000 */
4298 #define FLASH_ACR_PES                       FLASH_ACR_PES_Msk                  /*!< Program/erase suspend request                       */
4299 #define FLASH_ACR_EMPTY_Pos                 (16U)
4300 #define FLASH_ACR_EMPTY_Msk                 (0x1UL << FLASH_ACR_EMPTY_Pos)     /*!< 0x00010000 */
4301 #define FLASH_ACR_EMPTY                     FLASH_ACR_EMPTY_Msk                /*!< Flash use area empty                                */
4302 
4303 /*******************  Bits definition for FLASH_ACR2 register  ****************/
4304 #define FLASH_ACR2_PRIVMODE_Pos             (0U)
4305 #define FLASH_ACR2_PRIVMODE_Msk             (0x1UL << FLASH_ACR2_PRIVMODE_Pos) /*!< 0x00000001 */
4306 #define FLASH_ACR2_PRIVMODE                 FLASH_ACR2_PRIVMODE_Msk            /*!< CFI privileged mode                                 */
4307 #define FLASH_ACR2_HDPADIS_Pos              (1U)
4308 #define FLASH_ACR2_HDPADIS_Msk              (0x1UL << FLASH_ACR2_HDPADIS_Pos)    /*!< 0x00000002 */
4309 #define FLASH_ACR2_HDPADIS                  FLASH_ACR2_HDPADIS_Msk               /*!< Flash User Hide Protection area access disable    */
4310 #define FLASH_ACR2_C2SWDBGEN_Pos            (2U)
4311 #define FLASH_ACR2_C2SWDBGEN_Msk            (0x1UL << FLASH_ACR2_C2SWDBGEN_Pos)/*!< 0x00000004 */
4312 #define FLASH_ACR2_C2SWDBGEN                FLASH_ACR2_C2SWDBGEN_Msk           /*!< CPU2 Software debug enable                          */
4313 
4314 /*******************  Bits definition for FLASH_SR register  ******************/
4315 #define FLASH_SR_EOP_Pos                    (0U)
4316 #define FLASH_SR_EOP_Msk                    (0x1UL << FLASH_SR_EOP_Pos)        /*!< 0x00000001 */
4317 #define FLASH_SR_EOP                        FLASH_SR_EOP_Msk                   /*!< End of Operation                                    */
4318 #define FLASH_SR_OPERR_Pos                  (1U)
4319 #define FLASH_SR_OPERR_Msk                  (0x1UL << FLASH_SR_OPERR_Pos)      /*!< 0x00000002 */
4320 #define FLASH_SR_OPERR                      FLASH_SR_OPERR_Msk                 /*!< Operation error                                     */
4321 #define FLASH_SR_PROGERR_Pos                (3U)
4322 #define FLASH_SR_PROGERR_Msk                (0x1UL << FLASH_SR_PROGERR_Pos)    /*!< 0x00000008 */
4323 #define FLASH_SR_PROGERR                    FLASH_SR_PROGERR_Msk               /*!< Programming error                                   */
4324 #define FLASH_SR_WRPERR_Pos                 (4U)
4325 #define FLASH_SR_WRPERR_Msk                 (0x1UL << FLASH_SR_WRPERR_Pos)     /*!< 0x00000010 */
4326 #define FLASH_SR_WRPERR                     FLASH_SR_WRPERR_Msk                /*!< Write protection error                              */
4327 #define FLASH_SR_PGAERR_Pos                 (5U)
4328 #define FLASH_SR_PGAERR_Msk                 (0x1UL << FLASH_SR_PGAERR_Pos)     /*!< 0x00000020 */
4329 #define FLASH_SR_PGAERR                     FLASH_SR_PGAERR_Msk                /*!< Programming alignment error                         */
4330 #define FLASH_SR_SIZERR_Pos                 (6U)
4331 #define FLASH_SR_SIZERR_Msk                 (0x1UL << FLASH_SR_SIZERR_Pos)     /*!< 0x00000040 */
4332 #define FLASH_SR_SIZERR                     FLASH_SR_SIZERR_Msk                /*!< Size error                                          */
4333 #define FLASH_SR_PGSERR_Pos                 (7U)
4334 #define FLASH_SR_PGSERR_Msk                 (0x1UL << FLASH_SR_PGSERR_Pos)     /*!< 0x00000080 */
4335 #define FLASH_SR_PGSERR                     FLASH_SR_PGSERR_Msk                /*!< Programming sequence error                          */
4336 #define FLASH_SR_MISERR_Pos                 (8U)
4337 #define FLASH_SR_MISERR_Msk                 (0x1UL << FLASH_SR_MISERR_Pos)     /*!< 0x00000100 */
4338 #define FLASH_SR_MISERR                     FLASH_SR_MISERR_Msk                /*!< Fast programming data miss error                    */
4339 #define FLASH_SR_FASTERR_Pos                (9U)
4340 #define FLASH_SR_FASTERR_Msk                (0x1UL << FLASH_SR_FASTERR_Pos)    /*!< 0x00000200 */
4341 #define FLASH_SR_FASTERR                    FLASH_SR_FASTERR_Msk               /*!< Fast programming error                              */
4342 #define FLASH_SR_OPTNV_Pos                  (13U)
4343 #define FLASH_SR_OPTNV_Msk                  (0x1UL << FLASH_SR_OPTNV_Pos)     /*!< 0x00002000 */
4344 #define FLASH_SR_OPTNV                      FLASH_SR_OPTNV_Msk                /*!< User option OPTVAL indication                       */
4345 #define FLASH_SR_RDERR_Pos                  (14U)
4346 #define FLASH_SR_RDERR_Msk                  (0x1UL << FLASH_SR_RDERR_Pos)      /*!< 0x00004000 */
4347 #define FLASH_SR_RDERR                      FLASH_SR_RDERR_Msk                 /*!< PCROP read error                                    */
4348 #define FLASH_SR_OPTVERR_Pos                (15U)
4349 #define FLASH_SR_OPTVERR_Msk                (0x1UL << FLASH_SR_OPTVERR_Pos)    /*!< 0x00008000 */
4350 #define FLASH_SR_OPTVERR                    FLASH_SR_OPTVERR_Msk               /*!< Option validity error                               */
4351 #define FLASH_SR_BSY_Pos                    (16U)
4352 #define FLASH_SR_BSY_Msk                    (0x1UL << FLASH_SR_BSY_Pos)        /*!< 0x00010000 */
4353 #define FLASH_SR_BSY                        FLASH_SR_BSY_Msk                   /*!< Flash Busy                                          */
4354 #define FLASH_SR_CFGBSY_Pos                 (18U)
4355 #define FLASH_SR_CFGBSY_Msk                 (0x1UL << FLASH_SR_CFGBSY_Pos)     /*!< 0x00040000 */
4356 #define FLASH_SR_CFGBSY                     FLASH_SR_CFGBSY_Msk                /*!< Programming or erase configuration busy             */
4357 #define FLASH_SR_PESD_Pos                   (19U)
4358 #define FLASH_SR_PESD_Msk                   (0x1UL << FLASH_SR_PESD_Pos)       /*!< 0x00080000 */
4359 #define FLASH_SR_PESD                       FLASH_SR_PESD_Msk                  /*!< Programming/erase operation suspended               */
4360 
4361 /*******************  Bits definition for FLASH_CR register  ******************/
4362 #define FLASH_CR_PG_Pos                     (0U)
4363 #define FLASH_CR_PG_Msk                     (0x1UL << FLASH_CR_PG_Pos)         /*!< 0x00000001 */
4364 #define FLASH_CR_PG                         FLASH_CR_PG_Msk                    /*!< Flash programming                                   */
4365 #define FLASH_CR_PER_Pos                    (1U)
4366 #define FLASH_CR_PER_Msk                    (0x1UL << FLASH_CR_PER_Pos)        /*!< 0x00000002 */
4367 #define FLASH_CR_PER                        FLASH_CR_PER_Msk                   /*!< Page erase                                          */
4368 #define FLASH_CR_MER_Pos                    (2U)
4369 #define FLASH_CR_MER_Msk                    (0x1UL << FLASH_CR_MER_Pos)        /*!< 0x00000004 */
4370 #define FLASH_CR_MER                        FLASH_CR_MER_Msk                   /*!< Mass erase                                          */
4371 #define FLASH_CR_PNB_Pos                    (3U)
4372 #define FLASH_CR_PNB_Msk                    (0x7FUL << FLASH_CR_PNB_Pos)       /*!< 0x000003F8 */
4373 #define FLASH_CR_PNB                        FLASH_CR_PNB_Msk                   /*!< Page number selection mask                          */
4374 #define FLASH_CR_STRT_Pos                   (16U)
4375 #define FLASH_CR_STRT_Msk                   (0x1UL << FLASH_CR_STRT_Pos)       /*!< 0x00010000 */
4376 #define FLASH_CR_STRT                       FLASH_CR_STRT_Msk                  /*!< Start an erase operation                            */
4377 #define FLASH_CR_OPTSTRT_Pos                (17U)
4378 #define FLASH_CR_OPTSTRT_Msk                (0x1UL << FLASH_CR_OPTSTRT_Pos)    /*!< 0x00020000 */
4379 #define FLASH_CR_OPTSTRT                    FLASH_CR_OPTSTRT_Msk               /*!< Options modification start                          */
4380 #define FLASH_CR_FSTPG_Pos                  (18U)
4381 #define FLASH_CR_FSTPG_Msk                  (0x1UL << FLASH_CR_FSTPG_Pos)      /*!< 0x00040000 */
4382 #define FLASH_CR_FSTPG                      FLASH_CR_FSTPG_Msk                 /*!< Fast programming                                    */
4383 #define FLASH_CR_EOPIE_Pos                  (24U)
4384 #define FLASH_CR_EOPIE_Msk                  (0x1UL << FLASH_CR_EOPIE_Pos)      /*!< 0x01000000 */
4385 #define FLASH_CR_EOPIE                      FLASH_CR_EOPIE_Msk                 /*!< End of operation interrupt enable                   */
4386 #define FLASH_CR_ERRIE_Pos                  (25U)
4387 #define FLASH_CR_ERRIE_Msk                  (0x1UL << FLASH_CR_ERRIE_Pos)      /*!< 0x02000000 */
4388 #define FLASH_CR_ERRIE                      FLASH_CR_ERRIE_Msk                 /*!< Error interrupt enable                              */
4389 #define FLASH_CR_RDERRIE_Pos                (26U)
4390 #define FLASH_CR_RDERRIE_Msk                (0x1UL << FLASH_CR_RDERRIE_Pos)    /*!< 0x04000000 */
4391 #define FLASH_CR_RDERRIE                    FLASH_CR_RDERRIE_Msk               /*!< PCROP read error interrupt enable                   */
4392 #define FLASH_CR_OBL_LAUNCH_Pos             (27U)
4393 #define FLASH_CR_OBL_LAUNCH_Msk             (0x1UL << FLASH_CR_OBL_LAUNCH_Pos) /*!< 0x08000000 */
4394 #define FLASH_CR_OBL_LAUNCH                 FLASH_CR_OBL_LAUNCH_Msk            /*!< Force the option bute loading                       */
4395 #define FLASH_CR_OPTLOCK_Pos                (30U)
4396 #define FLASH_CR_OPTLOCK_Msk                (0x1UL << FLASH_CR_OPTLOCK_Pos)    /*!< 0x40000000 */
4397 #define FLASH_CR_OPTLOCK                    FLASH_CR_OPTLOCK_Msk               /*!< Options lock                                        */
4398 #define FLASH_CR_LOCK_Pos                   (31U)
4399 #define FLASH_CR_LOCK_Msk                   (0x1UL << FLASH_CR_LOCK_Pos)       /*!< 0x80000000 */
4400 #define FLASH_CR_LOCK                       FLASH_CR_LOCK_Msk                  /*!< Flash control register lock                         */
4401 
4402 /*******************  Bits definition for FLASH_ECCR register  ****************/
4403 #define FLASH_ECCR_ADDR_ECC_Pos             (0U)
4404 #define FLASH_ECCR_ADDR_ECC_Msk             (0x1FFFFUL << FLASH_ECCR_ADDR_ECC_Pos)/*!< 0x0001FFFF */
4405 #define FLASH_ECCR_ADDR_ECC                 FLASH_ECCR_ADDR_ECC_Msk            /*!< double-word address ECC fail                        */
4406 #define FLASH_ECCR_SYSF_ECC_Pos             (20U)
4407 #define FLASH_ECCR_SYSF_ECC_Msk             (0x1UL << FLASH_ECCR_SYSF_ECC_Pos) /*!< 0x00100000 */
4408 #define FLASH_ECCR_SYSF_ECC                 FLASH_ECCR_SYSF_ECC_Msk            /*!< System flash ECC fail                               */
4409 #define FLASH_ECCR_ECCCIE_Pos               (24U)
4410 #define FLASH_ECCR_ECCCIE_Msk               (0x1UL << FLASH_ECCR_ECCCIE_Pos)   /*!< 0x01000000 */
4411 #define FLASH_ECCR_ECCCIE                   FLASH_ECCR_ECCCIE_Msk              /*!< ECC correction interrupt enable                     */
4412 #define FLASH_ECCR_CPUID_Pos                (26U)
4413 #define FLASH_ECCR_CPUID_Msk                (0x7UL << FLASH_ECCR_CPUID_Pos)    /*!< 0x1C000000 */
4414 #define FLASH_ECCR_CPUID                    FLASH_ECCR_CPUID_Msk               /*!< CPU identification                                  */
4415 #define FLASH_ECCR_ECCC_Pos                 (30U)
4416 #define FLASH_ECCR_ECCC_Msk                 (0x1UL << FLASH_ECCR_ECCC_Pos)     /*!< 0x40000000 */
4417 #define FLASH_ECCR_ECCC                     FLASH_ECCR_ECCC_Msk                /*!< ECC correction                                      */
4418 #define FLASH_ECCR_ECCD_Pos                 (31U)
4419 #define FLASH_ECCR_ECCD_Msk                 (0x1UL << FLASH_ECCR_ECCD_Pos)     /*!< 0x80000000 */
4420 #define FLASH_ECCR_ECCD                     FLASH_ECCR_ECCD_Msk                /*!< ECC detection                                       */
4421 
4422 /*******************  Bits definition for FLASH_OPTR register  ****************/
4423 #define FLASH_OPTR_RDP_Pos                  (0U)
4424 #define FLASH_OPTR_RDP_Msk                  (0xFFUL << FLASH_OPTR_RDP_Pos)     /*!< 0x000000FF */
4425 #define FLASH_OPTR_RDP                      FLASH_OPTR_RDP_Msk                 /*!< Read protection level                               */
4426 #define FLASH_OPTR_ESE_Pos                  (8U)
4427 #define FLASH_OPTR_ESE_Msk                  (0x1UL << FLASH_OPTR_ESE_Pos)      /*!< 0x00000100 */
4428 #define FLASH_OPTR_ESE                      FLASH_OPTR_ESE_Msk                 /*!< Security enable                                     */
4429 #define FLASH_OPTR_BOR_LEV_Pos              (9U)
4430 #define FLASH_OPTR_BOR_LEV_Msk              (0x7UL << FLASH_OPTR_BOR_LEV_Pos)  /*!< 0x00000E00 */
4431 #define FLASH_OPTR_BOR_LEV                  FLASH_OPTR_BOR_LEV_Msk             /*!< BOR reset level mask                                */
4432 #define FLASH_OPTR_BOR_LEV_0                (0x1UL << FLASH_OPTR_BOR_LEV_Pos)  /*!< 0x00000200 */
4433 #define FLASH_OPTR_BOR_LEV_1                (0x2UL << FLASH_OPTR_BOR_LEV_Pos)  /*!< 0x00000400 */
4434 #define FLASH_OPTR_BOR_LEV_2                (0x4UL << FLASH_OPTR_BOR_LEV_Pos)  /*!< 0x00000800 */
4435 #define FLASH_OPTR_nRST_STOP_Pos            (12U)
4436 #define FLASH_OPTR_nRST_STOP_Msk            (0x1UL << FLASH_OPTR_nRST_STOP_Pos)/*!< 0x00001000 */
4437 #define FLASH_OPTR_nRST_STOP                FLASH_OPTR_nRST_STOP_Msk           /*!< Reset option in Stop mode                           */
4438 #define FLASH_OPTR_nRST_STDBY_Pos           (13U)
4439 #define FLASH_OPTR_nRST_STDBY_Msk           (0x1UL << FLASH_OPTR_nRST_STDBY_Pos)/*!< 0x00002000 */
4440 #define FLASH_OPTR_nRST_STDBY               FLASH_OPTR_nRST_STDBY_Msk          /*!< Reset option in Standby mode                        */
4441 #define FLASH_OPTR_nRST_SHDW_Pos            (14U)
4442 #define FLASH_OPTR_nRST_SHDW_Msk            (0x1UL << FLASH_OPTR_nRST_SHDW_Pos)/*!< 0x00004000 */
4443 #define FLASH_OPTR_nRST_SHDW                FLASH_OPTR_nRST_SHDW_Msk           /*!< Reset option in Shutdown mode                       */
4444 #define FLASH_OPTR_IWDG_SW_Pos              (16U)
4445 #define FLASH_OPTR_IWDG_SW_Msk              (0x1UL << FLASH_OPTR_IWDG_SW_Pos)  /*!< 0x00010000 */
4446 #define FLASH_OPTR_IWDG_SW                  FLASH_OPTR_IWDG_SW_Msk             /*!< Independent watchdog selection                      */
4447 #define FLASH_OPTR_IWDG_STOP_Pos            (17U)
4448 #define FLASH_OPTR_IWDG_STOP_Msk            (0x1UL << FLASH_OPTR_IWDG_STOP_Pos)/*!< 0x00020000 */
4449 #define FLASH_OPTR_IWDG_STOP                FLASH_OPTR_IWDG_STOP_Msk           /*!< Independent watchdog counter option in Stop mode    */
4450 #define FLASH_OPTR_IWDG_STDBY_Pos           (18U)
4451 #define FLASH_OPTR_IWDG_STDBY_Msk           (0x1UL << FLASH_OPTR_IWDG_STDBY_Pos)/*!< 0x00040000 */
4452 #define FLASH_OPTR_IWDG_STDBY               FLASH_OPTR_IWDG_STDBY_Msk          /*!< Independent watchdog counter option in Standby mode */
4453 #define FLASH_OPTR_WWDG_SW_Pos              (19U)
4454 #define FLASH_OPTR_WWDG_SW_Msk              (0x1UL << FLASH_OPTR_WWDG_SW_Pos)  /*!< 0x00080000 */
4455 #define FLASH_OPTR_WWDG_SW                  FLASH_OPTR_WWDG_SW_Msk             /*!< Window watchdog selection                           */
4456 #define FLASH_OPTR_nBOOT1_Pos               (23U)
4457 #define FLASH_OPTR_nBOOT1_Msk               (0x1UL << FLASH_OPTR_nBOOT1_Pos)   /*!< 0x00800000 */
4458 #define FLASH_OPTR_nBOOT1                   FLASH_OPTR_nBOOT1_Msk              /*!< Boot Configuration                                  */
4459 #define FLASH_OPTR_SRAM2_PE_Pos             (24U)
4460 #define FLASH_OPTR_SRAM2_PE_Msk             (0x1UL << FLASH_OPTR_SRAM2_PE_Pos) /*!< 0x01000000 */
4461 #define FLASH_OPTR_SRAM2_PE                 FLASH_OPTR_SRAM2_PE_Msk            /*!< SRAM2 parity check enable                           */
4462 #define FLASH_OPTR_SRAM_RST_Pos             (25U)
4463 #define FLASH_OPTR_SRAM_RST_Msk             (0x1UL << FLASH_OPTR_SRAM_RST_Pos) /*!< 0x02000000 */
4464 #define FLASH_OPTR_SRAM_RST                 FLASH_OPTR_SRAM_RST_Msk            /*!< SRAM1 and SRAM2 erase option when system reset      */
4465 #define FLASH_OPTR_nSWBOOT0_Pos             (26U)
4466 #define FLASH_OPTR_nSWBOOT0_Msk             (0x1UL << FLASH_OPTR_nSWBOOT0_Pos) /*!< 0x04000000 */
4467 #define FLASH_OPTR_nSWBOOT0                 FLASH_OPTR_nSWBOOT0_Msk            /*!< Software BOOT0                                      */
4468 #define FLASH_OPTR_nBOOT0_Pos               (27U)
4469 #define FLASH_OPTR_nBOOT0_Msk               (0x1UL << FLASH_OPTR_nBOOT0_Pos)   /*!< 0x08000000 */
4470 #define FLASH_OPTR_nBOOT0                   FLASH_OPTR_nBOOT0_Msk              /*!< BOOT0 option bit                                    */
4471 #define FLASH_OPTR_BOOT_LOCK_Pos            (30U)
4472 #define FLASH_OPTR_BOOT_LOCK_Msk            (0x1UL << FLASH_OPTR_BOOT_LOCK_Pos)/*!< 0x40000000 */
4473 #define FLASH_OPTR_BOOT_LOCK                FLASH_OPTR_BOOT_LOCK_Msk           /*!< CPU1 Boot Lock enable option bit                    */
4474 #define FLASH_OPTR_C2BOOT_LOCK_Pos          (31U)
4475 #define FLASH_OPTR_C2BOOT_LOCK_Msk          (0x1UL << FLASH_OPTR_C2BOOT_LOCK_Pos)/*!< 0x80000000 */
4476 #define FLASH_OPTR_C2BOOT_LOCK              FLASH_OPTR_C2BOOT_LOCK_Msk           /*!< CPU2 Boot Lock enable option bit                  */
4477 
4478 /******************  Bits definition for FLASH_PCROP1ASR register  ************/
4479 #define FLASH_PCROP1ASR_PCROP1A_STRT_Pos    (0U)
4480 #define FLASH_PCROP1ASR_PCROP1A_STRT_Msk    (0xFFUL << FLASH_PCROP1ASR_PCROP1A_STRT_Pos)/*!< 0x000000FF */
4481 #define FLASH_PCROP1ASR_PCROP1A_STRT        FLASH_PCROP1ASR_PCROP1A_STRT_Msk   /*!< PCROP area A start offset                           */
4482 
4483 /******************  Bits definition for FLASH_PCROP1AER register  ************/
4484 #define FLASH_PCROP1AER_PCROP1A_END_Pos     (0U)
4485 #define FLASH_PCROP1AER_PCROP1A_END_Msk     (0xFFUL << FLASH_PCROP1AER_PCROP1A_END_Pos)/*!< 0x000000FF */
4486 #define FLASH_PCROP1AER_PCROP1A_END         FLASH_PCROP1AER_PCROP1A_END_Msk    /*!< PCROP area A end offset                             */
4487 #define FLASH_PCROP1AER_PCROP_RDP_Pos       (31U)
4488 #define FLASH_PCROP1AER_PCROP_RDP_Msk       (0x1UL << FLASH_PCROP1AER_PCROP_RDP_Pos)/*!< 0x80000000 */
4489 #define FLASH_PCROP1AER_PCROP_RDP           FLASH_PCROP1AER_PCROP_RDP_Msk      /*!< PCROP area preserved when RDP level decreased       */
4490 
4491 /******************  Bits definition for FLASH_WRP1AR register  ***************/
4492 #define FLASH_WRP1AR_WRP1A_STRT_Pos         (0U)
4493 #define FLASH_WRP1AR_WRP1A_STRT_Msk         (0x7FUL << FLASH_WRP1AR_WRP1A_STRT_Pos)/*!< 0x0000007F */
4494 #define FLASH_WRP1AR_WRP1A_STRT             FLASH_WRP1AR_WRP1A_STRT_Msk        /*!< WRP area A start offset                             */
4495 #define FLASH_WRP1AR_WRP1A_END_Pos          (16U)
4496 #define FLASH_WRP1AR_WRP1A_END_Msk          (0x7FUL << FLASH_WRP1AR_WRP1A_END_Pos)/*!< 0x007F0000 */
4497 #define FLASH_WRP1AR_WRP1A_END              FLASH_WRP1AR_WRP1A_END_Msk         /*!< WRP area A end offset                               */
4498 
4499 /******************  Bits definition for FLASH_WRP1BR register  ***************/
4500 #define FLASH_WRP1BR_WRP1B_STRT_Pos         (0U)
4501 #define FLASH_WRP1BR_WRP1B_STRT_Msk         (0x7FUL << FLASH_WRP1BR_WRP1B_STRT_Pos)/*!< 0x0000007F */
4502 #define FLASH_WRP1BR_WRP1B_STRT             FLASH_WRP1BR_WRP1B_STRT_Msk        /*!< WRP area B start offset                             */
4503 #define FLASH_WRP1BR_WRP1B_END_Pos          (16U)
4504 #define FLASH_WRP1BR_WRP1B_END_Msk          (0x7FUL << FLASH_WRP1BR_WRP1B_END_Pos)/*!< 0x007F0000 */
4505 #define FLASH_WRP1BR_WRP1B_END              FLASH_WRP1BR_WRP1B_END_Msk         /*!< WRP area B end offset                               */
4506 
4507 /******************  Bits definition for FLASH_PCROP1BSR register  ************/
4508 #define FLASH_PCROP1BSR_PCROP1B_STRT_Pos    (0U)
4509 #define FLASH_PCROP1BSR_PCROP1B_STRT_Msk    (0xFFUL << FLASH_PCROP1BSR_PCROP1B_STRT_Pos)/*!< 0x000000FF */
4510 #define FLASH_PCROP1BSR_PCROP1B_STRT        FLASH_PCROP1BSR_PCROP1B_STRT_Msk   /*!< PCROP area B start offset                           */
4511 
4512 /******************  Bits definition for FLASH_PCROP1BER register  ************/
4513 #define FLASH_PCROP1BER_PCROP1B_END_Pos     (0U)
4514 #define FLASH_PCROP1BER_PCROP1B_END_Msk     (0xFFUL << FLASH_PCROP1BER_PCROP1B_END_Pos)/*!< 0x000000FF */
4515 #define FLASH_PCROP1BER_PCROP1B_END         FLASH_PCROP1BER_PCROP1B_END_Msk    /*!< PCROP area B end offset                             */
4516 
4517 /******************  Bits definition for FLASH_IPCCBR register  ************/
4518 #define FLASH_IPCCBR_IPCCDBA_Pos            (0U)
4519 #define FLASH_IPCCBR_IPCCDBA_Msk            (0x3FFFUL << FLASH_IPCCBR_IPCCDBA_Pos)/*!< 0x00003FFF */
4520 #define FLASH_IPCCBR_IPCCDBA                FLASH_IPCCBR_IPCCDBA_Msk           /*!< IPCC data buffer base address                       */
4521 
4522 /******************  Bits definition for FLASH_C2ACR register  ************/
4523 #define FLASH_C2ACR_PRFTEN_Pos              (8U)
4524 #define FLASH_C2ACR_PRFTEN_Msk              (0x1UL << FLASH_C2ACR_PRFTEN_Pos) /*!< 0x00000100 */
4525 #define FLASH_C2ACR_PRFTEN                  FLASH_C2ACR_PRFTEN_Msk            /*!< CPU2 Prefetch enable                                 */
4526 #define FLASH_C2ACR_ICEN_Pos                (9U)
4527 #define FLASH_C2ACR_ICEN_Msk                (0x1UL << FLASH_C2ACR_ICEN_Pos)   /*!< 0x00000200 */
4528 #define FLASH_C2ACR_ICEN                    FLASH_C2ACR_ICEN_Msk              /*!< CPU2 Instruction cache enable                        */
4529 #define FLASH_C2ACR_ICRST_Pos               (11U)
4530 #define FLASH_C2ACR_ICRST_Msk               (0x1UL << FLASH_C2ACR_ICRST_Pos)  /*!< 0x00000800 */
4531 #define FLASH_C2ACR_ICRST                   FLASH_C2ACR_ICRST_Msk             /*!< CPU2 Instruction cache reset                         */
4532 #define FLASH_C2ACR_PES_Pos                 (15U)
4533 #define FLASH_C2ACR_PES_Msk                 (0x1UL << FLASH_C2ACR_PES_Pos)    /*!< 0x00008000 */
4534 #define FLASH_C2ACR_PES                     FLASH_C2ACR_PES_Msk               /*!< CPU2 Program/erase suspend request                   */
4535 
4536 /******************  Bits definition for FLASH_C2SR register  ************/
4537 #define FLASH_C2SR_EOP_Pos                  (0U)
4538 #define FLASH_C2SR_EOP_Msk                  (0x1UL << FLASH_C2SR_EOP_Pos)     /*!< 0x00000001 */
4539 #define FLASH_C2SR_EOP                      FLASH_C2SR_EOP_Msk                /*!< CPU2 End of operation                                */
4540 #define FLASH_C2SR_OPERR_Pos                (1U)
4541 #define FLASH_C2SR_OPERR_Msk                (0x1UL << FLASH_C2SR_OPERR_Pos)   /*!< 0x00000002 */
4542 #define FLASH_C2SR_OPERR                    FLASH_C2SR_OPERR_Msk              /*!< CPU2 Operation error                                 */
4543 #define FLASH_C2SR_PROGERR_Pos              (3U)
4544 #define FLASH_C2SR_PROGERR_Msk              (0x1UL << FLASH_C2SR_PROGERR_Pos) /*!< 0x00000008 */
4545 #define FLASH_C2SR_PROGERR                  FLASH_C2SR_PROGERR_Msk            /*!< CPU2 Programming error                               */
4546 #define FLASH_C2SR_WRPERR_Pos               (4U)
4547 #define FLASH_C2SR_WRPERR_Msk               (0x1UL << FLASH_C2SR_WRPERR_Pos)  /*!< 0x00000010 */
4548 #define FLASH_C2SR_WRPERR                   FLASH_C2SR_WRPERR_Msk             /*!< CPU2 Write protection error                          */
4549 #define FLASH_C2SR_PGAERR_Pos               (5U)
4550 #define FLASH_C2SR_PGAERR_Msk               (0x1UL << FLASH_C2SR_PGAERR_Pos)  /*!< 0x00000020 */
4551 #define FLASH_C2SR_PGAERR                   FLASH_C2SR_PGAERR_Msk             /*!< CPU2 Programming alignment error                     */
4552 #define FLASH_C2SR_SIZERR_Pos               (6U)
4553 #define FLASH_C2SR_SIZERR_Msk               (0x1UL << FLASH_C2SR_SIZERR_Pos)  /*!< 0x00000040 */
4554 #define FLASH_C2SR_SIZERR                   FLASH_C2SR_SIZERR_Msk             /*!< CPU2 Size error                                      */
4555 #define FLASH_C2SR_PGSERR_Pos               (7U)
4556 #define FLASH_C2SR_PGSERR_Msk               (0x1UL << FLASH_C2SR_PGSERR_Pos)  /*!< 0x00000080 */
4557 #define FLASH_C2SR_PGSERR                   FLASH_C2SR_PGSERR_Msk             /*!< CPU2 Programming sequence error                      */
4558 #define FLASH_C2SR_MISERR_Pos               (8U)
4559 #define FLASH_C2SR_MISERR_Msk               (0x1UL << FLASH_C2SR_MISERR_Pos)  /*!< 0x00000100 */
4560 #define FLASH_C2SR_MISERR                   FLASH_C2SR_MISERR_Msk             /*!< CPU2 Fast programming data miss error                */
4561 #define FLASH_C2SR_FASTERR_Pos              (9U)
4562 #define FLASH_C2SR_FASTERR_Msk              (0x1UL << FLASH_C2SR_FASTERR_Pos) /*!< 0x00000200 */
4563 #define FLASH_C2SR_FASTERR                  FLASH_C2SR_FASTERR_Msk            /*!< CPU2 Fast programming error                          */
4564 #define FLASH_C2SR_RDERR_Pos                (14U)
4565 #define FLASH_C2SR_RDERR_Msk                (0x1UL << FLASH_C2SR_RDERR_Pos)   /*!< 0x00004000 */
4566 #define FLASH_C2SR_RDERR                    FLASH_C2SR_RDERR_Msk              /*!< CPU2 PCROP read error                                */
4567 #define FLASH_C2SR_BSY_Pos                  (16U)
4568 #define FLASH_C2SR_BSY_Msk                  (0x1UL << FLASH_C2SR_BSY_Pos)     /*!< 0x00010000 */
4569 #define FLASH_C2SR_BSY                      FLASH_C2SR_BSY_Msk                /*!< CPU2 Flash busy                                      */
4570 #define FLASH_C2SR_CFGBSY_Pos               (18U)
4571 #define FLASH_C2SR_CFGBSY_Msk               (0x1UL << FLASH_C2SR_CFGBSY_Pos)  /*!< 0x00040000 */
4572 #define FLASH_C2SR_CFGBSY                   FLASH_C2SR_CFGBSY_Msk             /*!< CPU2 Programming or erase configuration busy         */
4573 #define FLASH_C2SR_PESD_Pos                 (19U)
4574 #define FLASH_C2SR_PESD_Msk                 (0x1UL << FLASH_C2SR_PESD_Pos)    /*!< 0x00080000 */
4575 #define FLASH_C2SR_PESD                     FLASH_C2SR_PESD_Msk               /*!< CPU2 Programming/erase operation suspended           */
4576 
4577 /******************  Bits definition for FLASH_C2CR register  ************/
4578 #define FLASH_C2CR_PG_Pos                   (0U)
4579 #define FLASH_C2CR_PG_Msk                   (0x1UL << FLASH_C2CR_PG_Pos)      /*!< 0x00000001 */
4580 #define FLASH_C2CR_PG                       FLASH_C2CR_PG_Msk                 /*!< CPU2 Flash programming                               */
4581 #define FLASH_C2CR_PER_Pos                  (1U)
4582 #define FLASH_C2CR_PER_Msk                  (0x1UL << FLASH_C2CR_PER_Pos)     /*!< 0x00000002 */
4583 #define FLASH_C2CR_PER                      FLASH_C2CR_PER_Msk                /*!< CPU2 Page erase                                      */
4584 #define FLASH_C2CR_MER_Pos                  (2U)
4585 #define FLASH_C2CR_MER_Msk                  (0x1UL << FLASH_C2CR_MER_Pos)     /*!< 0x00000004 */
4586 #define FLASH_C2CR_MER                      FLASH_C2CR_MER_Msk                /*!< CPU2 Mass erase                                      */
4587 #define FLASH_C2CR_PNB_Pos                  (3U)
4588 #define FLASH_C2CR_PNB_Msk                  (0xFFUL << FLASH_C2CR_PNB_Pos)    /*!< 0x000007F8 */
4589 #define FLASH_C2CR_PNB                      FLASH_C2CR_PNB_Msk                /*!< CPU2 Page number selection mask                      */
4590 #define FLASH_C2CR_STRT_Pos                 (16U)
4591 #define FLASH_C2CR_STRT_Msk                 (0x1UL << FLASH_C2CR_STRT_Pos)    /*!< 0x00010000 */
4592 #define FLASH_C2CR_STRT                     FLASH_C2CR_STRT_Msk               /*!< CPU2 Start an erase operation                        */
4593 #define FLASH_C2CR_FSTPG_Pos                (18U)
4594 #define FLASH_C2CR_FSTPG_Msk                (0x1UL << FLASH_C2CR_FSTPG_Pos)   /*!< 0x00040000 */
4595 #define FLASH_C2CR_FSTPG                    FLASH_C2CR_FSTPG_Msk              /*!< CPU2 Fast programming                                */
4596 #define FLASH_C2CR_EOPIE_Pos                (24U)
4597 #define FLASH_C2CR_EOPIE_Msk                (0x1UL << FLASH_C2CR_EOPIE_Pos)   /*!< 0x01000000 */
4598 #define FLASH_C2CR_EOPIE                    FLASH_C2CR_EOPIE_Msk              /*!< CPU2 End of operation interrupt enable               */
4599 #define FLASH_C2CR_ERRIE_Pos                (25U)
4600 #define FLASH_C2CR_ERRIE_Msk                (0x1UL << FLASH_C2CR_ERRIE_Pos)   /*!< 0x02000000 */
4601 #define FLASH_C2CR_ERRIE                    FLASH_C2CR_ERRIE_Msk              /*!< CPU2 Error interrupt enable                          */
4602 #define FLASH_C2CR_RDERRIE_Pos              (26U)
4603 #define FLASH_C2CR_RDERRIE_Msk              (0x1UL << FLASH_C2CR_RDERRIE_Pos) /*!< 0x04000000 */
4604 #define FLASH_C2CR_RDERRIE                  FLASH_C2CR_RDERRIE_Msk            /*!< CPU2 PCROP read error interrupt enable               */
4605 
4606 /******************  Bits definition for FLASH_SFR register  ************/
4607 #define FLASH_SFR_SFSA_Pos                  (0U)
4608 #define FLASH_SFR_SFSA_Msk                  (0x7FUL << FLASH_SFR_SFSA_Pos)     /*!< 0x0000007F */
4609 #define FLASH_SFR_SFSA                      FLASH_SFR_SFSA_Msk                 /* Secure flash start address                            */
4610 #define FLASH_SFR_FSD_Pos                   (7U)
4611 #define FLASH_SFR_FSD_Msk                   (0x1UL << FLASH_SFR_FSD_Pos)       /*!< 0x00000080 */
4612 #define FLASH_SFR_FSD                       FLASH_SFR_FSD_Msk                  /* Flash mode secure                                     */
4613 #define FLASH_SFR_DDS_Pos                   (12U)
4614 #define FLASH_SFR_DDS_Msk                   (0x1UL << FLASH_SFR_DDS_Pos)       /*!< 0x00001000 */
4615 #define FLASH_SFR_DDS                       FLASH_SFR_DDS_Msk                  /* Enabling and disabling CPU2 Debug access              */
4616 #define FLASH_SFR_HDPSA_Pos                 (16U)
4617 #define FLASH_SFR_HDPSA_Msk                 (0x7FUL << FLASH_SFR_HDPSA_Pos)    /*!< 0x007F0000 */
4618 #define FLASH_SFR_HDPSA                     FLASH_SFR_HDPSA_Msk                /*!< User Flash Hide Protection Area start address*/
4619 #define FLASH_SFR_HDPAD_Pos                 (23U)
4620 #define FLASH_SFR_HDPAD_Msk                 (0x1UL << FLASH_SFR_HDPAD_Pos)     /*!< 0x00800000 */
4621 #define FLASH_SFR_HDPAD                     FLASH_SFR_HDPAD_Msk                /* User Flash Hide Protection Area disabled       */
4622 #define FLASH_SFR_SUBGHZSPISD_Pos           (31U)
4623 #define FLASH_SFR_SUBGHZSPISD_Msk           (0x1UL << FLASH_SFR_SUBGHZSPISD_Pos)  /*!< 0x80000000 */
4624 #define FLASH_SFR_SUBGHZSPISD               FLASH_SFR_SUBGHZSPISD_Msk             /* Sub-GHz radio SPI security disable                 */
4625 
4626 /******************  Bits definition for FLASH_SRRVR register  ************/
4627 #define FLASH_SRRVR_SBRV_Pos                (0U)
4628 #define FLASH_SRRVR_SBRV_Msk                (0xFFFFUL << FLASH_SRRVR_SBRV_Pos)  /*!< 0x0000FFFF */
4629 #define FLASH_SRRVR_SBRV                    FLASH_SRRVR_SBRV_Msk                /* SCPU2 boot reset vector memory offset                */
4630 
4631 #define FLASH_SRRVR_SBRSA_Pos               (18U)
4632 #define FLASH_SRRVR_SBRSA_Msk               (0x1FUL << FLASH_SRRVR_SBRSA_Pos)   /*!< 0x007C0000 */
4633 #define FLASH_SRRVR_SBRSA                   FLASH_SRRVR_SBRSA_Msk               /* Secure backup SRAM2 start address                    */
4634 #define FLASH_SRRVR_BRSD_Pos                (23U)
4635 #define FLASH_SRRVR_BRSD_Msk                (0x1UL << FLASH_SRRVR_BRSD_Pos)     /*!< 0x00800000 */
4636 #define FLASH_SRRVR_BRSD                    FLASH_SRRVR_BRSD_Msk                /* Backup SRAM2 secure mode                             */
4637 
4638 #define FLASH_SRRVR_SNBRSA_Pos              (25U)
4639 #define FLASH_SRRVR_SNBRSA_Msk              (0x1FUL << FLASH_SRRVR_SNBRSA_Pos)  /*!< 0x3E000000 */
4640 #define FLASH_SRRVR_SNBRSA                  FLASH_SRRVR_SNBRSA_Msk              /* Secure non-backup SRAM1 start address                */
4641 #define FLASH_SRRVR_NBRSD_Pos               (30U)
4642 #define FLASH_SRRVR_NBRSD_Msk               (0x1UL << FLASH_SRRVR_NBRSD_Pos)    /*!< 0x40000000 */
4643 #define FLASH_SRRVR_NBRSD                   FLASH_SRRVR_NBRSD_Msk               /* Non-backup SRAM1 secure mode                         */
4644 #define FLASH_SRRVR_C2OPT_Pos               (31U)
4645 #define FLASH_SRRVR_C2OPT_Msk               (0x1UL << FLASH_SRRVR_C2OPT_Pos)    /*!< 0x80000000 */
4646 #define FLASH_SRRVR_C2OPT                   FLASH_SRRVR_C2OPT_Msk               /* SCPU2 boot reset vector memory selection             */
4647 
4648 /******************************************************************************/
4649 /*                                                                            */
4650 /*                            General Purpose I/O                             */
4651 /*                                                                            */
4652 /******************************************************************************/
4653 /******************  Bits definition for GPIO_MODER register  *****************/
4654 #define GPIO_MODER_MODE0_Pos           (0U)
4655 #define GPIO_MODER_MODE0_Msk           (0x3UL << GPIO_MODER_MODE0_Pos)         /*!< 0x00000003 */
4656 #define GPIO_MODER_MODE0               GPIO_MODER_MODE0_Msk
4657 #define GPIO_MODER_MODE0_0             (0x1UL << GPIO_MODER_MODE0_Pos)         /*!< 0x00000001 */
4658 #define GPIO_MODER_MODE0_1             (0x2UL << GPIO_MODER_MODE0_Pos)         /*!< 0x00000002 */
4659 #define GPIO_MODER_MODE1_Pos           (2U)
4660 #define GPIO_MODER_MODE1_Msk           (0x3UL << GPIO_MODER_MODE1_Pos)         /*!< 0x0000000C */
4661 #define GPIO_MODER_MODE1               GPIO_MODER_MODE1_Msk
4662 #define GPIO_MODER_MODE1_0             (0x1UL << GPIO_MODER_MODE1_Pos)         /*!< 0x00000004 */
4663 #define GPIO_MODER_MODE1_1             (0x2UL << GPIO_MODER_MODE1_Pos)         /*!< 0x00000008 */
4664 #define GPIO_MODER_MODE2_Pos           (4U)
4665 #define GPIO_MODER_MODE2_Msk           (0x3UL << GPIO_MODER_MODE2_Pos)         /*!< 0x00000030 */
4666 #define GPIO_MODER_MODE2               GPIO_MODER_MODE2_Msk
4667 #define GPIO_MODER_MODE2_0             (0x1UL << GPIO_MODER_MODE2_Pos)         /*!< 0x00000010 */
4668 #define GPIO_MODER_MODE2_1             (0x2UL << GPIO_MODER_MODE2_Pos)         /*!< 0x00000020 */
4669 #define GPIO_MODER_MODE3_Pos           (6U)
4670 #define GPIO_MODER_MODE3_Msk           (0x3UL << GPIO_MODER_MODE3_Pos)         /*!< 0x000000C0 */
4671 #define GPIO_MODER_MODE3               GPIO_MODER_MODE3_Msk
4672 #define GPIO_MODER_MODE3_0             (0x1UL << GPIO_MODER_MODE3_Pos)         /*!< 0x00000040 */
4673 #define GPIO_MODER_MODE3_1             (0x2UL << GPIO_MODER_MODE3_Pos)         /*!< 0x00000080 */
4674 #define GPIO_MODER_MODE4_Pos           (8U)
4675 #define GPIO_MODER_MODE4_Msk           (0x3UL << GPIO_MODER_MODE4_Pos)         /*!< 0x00000300 */
4676 #define GPIO_MODER_MODE4               GPIO_MODER_MODE4_Msk
4677 #define GPIO_MODER_MODE4_0             (0x1UL << GPIO_MODER_MODE4_Pos)         /*!< 0x00000100 */
4678 #define GPIO_MODER_MODE4_1             (0x2UL << GPIO_MODER_MODE4_Pos)         /*!< 0x00000200 */
4679 #define GPIO_MODER_MODE5_Pos           (10U)
4680 #define GPIO_MODER_MODE5_Msk           (0x3UL << GPIO_MODER_MODE5_Pos)         /*!< 0x00000C00 */
4681 #define GPIO_MODER_MODE5               GPIO_MODER_MODE5_Msk
4682 #define GPIO_MODER_MODE5_0             (0x1UL << GPIO_MODER_MODE5_Pos)         /*!< 0x00000400 */
4683 #define GPIO_MODER_MODE5_1             (0x2UL << GPIO_MODER_MODE5_Pos)         /*!< 0x00000800 */
4684 #define GPIO_MODER_MODE6_Pos           (12U)
4685 #define GPIO_MODER_MODE6_Msk           (0x3UL << GPIO_MODER_MODE6_Pos)         /*!< 0x00003000 */
4686 #define GPIO_MODER_MODE6               GPIO_MODER_MODE6_Msk
4687 #define GPIO_MODER_MODE6_0             (0x1UL << GPIO_MODER_MODE6_Pos)         /*!< 0x00001000 */
4688 #define GPIO_MODER_MODE6_1             (0x2UL << GPIO_MODER_MODE6_Pos)         /*!< 0x00002000 */
4689 #define GPIO_MODER_MODE7_Pos           (14U)
4690 #define GPIO_MODER_MODE7_Msk           (0x3UL << GPIO_MODER_MODE7_Pos)         /*!< 0x0000C000 */
4691 #define GPIO_MODER_MODE7               GPIO_MODER_MODE7_Msk
4692 #define GPIO_MODER_MODE7_0             (0x1UL << GPIO_MODER_MODE7_Pos)         /*!< 0x00004000 */
4693 #define GPIO_MODER_MODE7_1             (0x2UL << GPIO_MODER_MODE7_Pos)         /*!< 0x00008000 */
4694 #define GPIO_MODER_MODE8_Pos           (16U)
4695 #define GPIO_MODER_MODE8_Msk           (0x3UL << GPIO_MODER_MODE8_Pos)         /*!< 0x00030000 */
4696 #define GPIO_MODER_MODE8               GPIO_MODER_MODE8_Msk
4697 #define GPIO_MODER_MODE8_0             (0x1UL << GPIO_MODER_MODE8_Pos)         /*!< 0x00010000 */
4698 #define GPIO_MODER_MODE8_1             (0x2UL << GPIO_MODER_MODE8_Pos)         /*!< 0x00020000 */
4699 #define GPIO_MODER_MODE9_Pos           (18U)
4700 #define GPIO_MODER_MODE9_Msk           (0x3UL << GPIO_MODER_MODE9_Pos)         /*!< 0x000C0000 */
4701 #define GPIO_MODER_MODE9               GPIO_MODER_MODE9_Msk
4702 #define GPIO_MODER_MODE9_0             (0x1UL << GPIO_MODER_MODE9_Pos)         /*!< 0x00040000 */
4703 #define GPIO_MODER_MODE9_1             (0x2UL << GPIO_MODER_MODE9_Pos)         /*!< 0x00080000 */
4704 #define GPIO_MODER_MODE10_Pos          (20U)
4705 #define GPIO_MODER_MODE10_Msk          (0x3UL << GPIO_MODER_MODE10_Pos)        /*!< 0x00300000 */
4706 #define GPIO_MODER_MODE10              GPIO_MODER_MODE10_Msk
4707 #define GPIO_MODER_MODE10_0            (0x1UL << GPIO_MODER_MODE10_Pos)        /*!< 0x00100000 */
4708 #define GPIO_MODER_MODE10_1            (0x2UL << GPIO_MODER_MODE10_Pos)        /*!< 0x00200000 */
4709 #define GPIO_MODER_MODE11_Pos          (22U)
4710 #define GPIO_MODER_MODE11_Msk          (0x3UL << GPIO_MODER_MODE11_Pos)        /*!< 0x00C00000 */
4711 #define GPIO_MODER_MODE11              GPIO_MODER_MODE11_Msk
4712 #define GPIO_MODER_MODE11_0            (0x1UL << GPIO_MODER_MODE11_Pos)        /*!< 0x00400000 */
4713 #define GPIO_MODER_MODE11_1            (0x2UL << GPIO_MODER_MODE11_Pos)        /*!< 0x00800000 */
4714 #define GPIO_MODER_MODE12_Pos          (24U)
4715 #define GPIO_MODER_MODE12_Msk          (0x3UL << GPIO_MODER_MODE12_Pos)        /*!< 0x03000000 */
4716 #define GPIO_MODER_MODE12              GPIO_MODER_MODE12_Msk
4717 #define GPIO_MODER_MODE12_0            (0x1UL << GPIO_MODER_MODE12_Pos)        /*!< 0x01000000 */
4718 #define GPIO_MODER_MODE12_1            (0x2UL << GPIO_MODER_MODE12_Pos)        /*!< 0x02000000 */
4719 #define GPIO_MODER_MODE13_Pos          (26U)
4720 #define GPIO_MODER_MODE13_Msk          (0x3UL << GPIO_MODER_MODE13_Pos)        /*!< 0x0C000000 */
4721 #define GPIO_MODER_MODE13              GPIO_MODER_MODE13_Msk
4722 #define GPIO_MODER_MODE13_0            (0x1UL << GPIO_MODER_MODE13_Pos)        /*!< 0x04000000 */
4723 #define GPIO_MODER_MODE13_1            (0x2UL << GPIO_MODER_MODE13_Pos)        /*!< 0x08000000 */
4724 #define GPIO_MODER_MODE14_Pos          (28U)
4725 #define GPIO_MODER_MODE14_Msk          (0x3UL << GPIO_MODER_MODE14_Pos)        /*!< 0x30000000 */
4726 #define GPIO_MODER_MODE14              GPIO_MODER_MODE14_Msk
4727 #define GPIO_MODER_MODE14_0            (0x1UL << GPIO_MODER_MODE14_Pos)        /*!< 0x10000000 */
4728 #define GPIO_MODER_MODE14_1            (0x2UL << GPIO_MODER_MODE14_Pos)        /*!< 0x20000000 */
4729 #define GPIO_MODER_MODE15_Pos          (30U)
4730 #define GPIO_MODER_MODE15_Msk          (0x3UL << GPIO_MODER_MODE15_Pos)        /*!< 0xC0000000 */
4731 #define GPIO_MODER_MODE15              GPIO_MODER_MODE15_Msk
4732 #define GPIO_MODER_MODE15_0            (0x1UL << GPIO_MODER_MODE15_Pos)        /*!< 0x40000000 */
4733 #define GPIO_MODER_MODE15_1            (0x2UL << GPIO_MODER_MODE15_Pos)        /*!< 0x80000000 */
4734 
4735 /******************  Bits definition for GPIO_OTYPER register  ****************/
4736 #define GPIO_OTYPER_OT0_Pos            (0U)
4737 #define GPIO_OTYPER_OT0_Msk            (0x1UL << GPIO_OTYPER_OT0_Pos)          /*!< 0x00000001 */
4738 #define GPIO_OTYPER_OT0                GPIO_OTYPER_OT0_Msk
4739 #define GPIO_OTYPER_OT1_Pos            (1U)
4740 #define GPIO_OTYPER_OT1_Msk            (0x1UL << GPIO_OTYPER_OT1_Pos)          /*!< 0x00000002 */
4741 #define GPIO_OTYPER_OT1                GPIO_OTYPER_OT1_Msk
4742 #define GPIO_OTYPER_OT2_Pos            (2U)
4743 #define GPIO_OTYPER_OT2_Msk            (0x1UL << GPIO_OTYPER_OT2_Pos)          /*!< 0x00000004 */
4744 #define GPIO_OTYPER_OT2                GPIO_OTYPER_OT2_Msk
4745 #define GPIO_OTYPER_OT3_Pos            (3U)
4746 #define GPIO_OTYPER_OT3_Msk            (0x1UL << GPIO_OTYPER_OT3_Pos)          /*!< 0x00000008 */
4747 #define GPIO_OTYPER_OT3                GPIO_OTYPER_OT3_Msk
4748 #define GPIO_OTYPER_OT4_Pos            (4U)
4749 #define GPIO_OTYPER_OT4_Msk            (0x1UL << GPIO_OTYPER_OT4_Pos)          /*!< 0x00000010 */
4750 #define GPIO_OTYPER_OT4                GPIO_OTYPER_OT4_Msk
4751 #define GPIO_OTYPER_OT5_Pos            (5U)
4752 #define GPIO_OTYPER_OT5_Msk            (0x1UL << GPIO_OTYPER_OT5_Pos)          /*!< 0x00000020 */
4753 #define GPIO_OTYPER_OT5                GPIO_OTYPER_OT5_Msk
4754 #define GPIO_OTYPER_OT6_Pos            (6U)
4755 #define GPIO_OTYPER_OT6_Msk            (0x1UL << GPIO_OTYPER_OT6_Pos)          /*!< 0x00000040 */
4756 #define GPIO_OTYPER_OT6                GPIO_OTYPER_OT6_Msk
4757 #define GPIO_OTYPER_OT7_Pos            (7U)
4758 #define GPIO_OTYPER_OT7_Msk            (0x1UL << GPIO_OTYPER_OT7_Pos)          /*!< 0x00000080 */
4759 #define GPIO_OTYPER_OT7                GPIO_OTYPER_OT7_Msk
4760 #define GPIO_OTYPER_OT8_Pos            (8U)
4761 #define GPIO_OTYPER_OT8_Msk            (0x1UL << GPIO_OTYPER_OT8_Pos)          /*!< 0x00000100 */
4762 #define GPIO_OTYPER_OT8                GPIO_OTYPER_OT8_Msk
4763 #define GPIO_OTYPER_OT9_Pos            (9U)
4764 #define GPIO_OTYPER_OT9_Msk            (0x1UL << GPIO_OTYPER_OT9_Pos)          /*!< 0x00000200 */
4765 #define GPIO_OTYPER_OT9                GPIO_OTYPER_OT9_Msk
4766 #define GPIO_OTYPER_OT10_Pos           (10U)
4767 #define GPIO_OTYPER_OT10_Msk           (0x1UL << GPIO_OTYPER_OT10_Pos)         /*!< 0x00000400 */
4768 #define GPIO_OTYPER_OT10               GPIO_OTYPER_OT10_Msk
4769 #define GPIO_OTYPER_OT11_Pos           (11U)
4770 #define GPIO_OTYPER_OT11_Msk           (0x1UL << GPIO_OTYPER_OT11_Pos)         /*!< 0x00000800 */
4771 #define GPIO_OTYPER_OT11               GPIO_OTYPER_OT11_Msk
4772 #define GPIO_OTYPER_OT12_Pos           (12U)
4773 #define GPIO_OTYPER_OT12_Msk           (0x1UL << GPIO_OTYPER_OT12_Pos)         /*!< 0x00001000 */
4774 #define GPIO_OTYPER_OT12               GPIO_OTYPER_OT12_Msk
4775 #define GPIO_OTYPER_OT13_Pos           (13U)
4776 #define GPIO_OTYPER_OT13_Msk           (0x1UL << GPIO_OTYPER_OT13_Pos)         /*!< 0x00002000 */
4777 #define GPIO_OTYPER_OT13               GPIO_OTYPER_OT13_Msk
4778 #define GPIO_OTYPER_OT14_Pos           (14U)
4779 #define GPIO_OTYPER_OT14_Msk           (0x1UL << GPIO_OTYPER_OT14_Pos)         /*!< 0x00004000 */
4780 #define GPIO_OTYPER_OT14               GPIO_OTYPER_OT14_Msk
4781 #define GPIO_OTYPER_OT15_Pos           (15U)
4782 #define GPIO_OTYPER_OT15_Msk           (0x1UL << GPIO_OTYPER_OT15_Pos)         /*!< 0x00008000 */
4783 #define GPIO_OTYPER_OT15               GPIO_OTYPER_OT15_Msk
4784 
4785 /******************  Bits definition for GPIO_OSPEEDR register  ***************/
4786 #define GPIO_OSPEEDR_OSPEED0_Pos       (0U)
4787 #define GPIO_OSPEEDR_OSPEED0_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED0_Pos)     /*!< 0x00000003 */
4788 #define GPIO_OSPEEDR_OSPEED0           GPIO_OSPEEDR_OSPEED0_Msk
4789 #define GPIO_OSPEEDR_OSPEED0_0         (0x1UL << GPIO_OSPEEDR_OSPEED0_Pos)     /*!< 0x00000001 */
4790 #define GPIO_OSPEEDR_OSPEED0_1         (0x2UL << GPIO_OSPEEDR_OSPEED0_Pos)     /*!< 0x00000002 */
4791 #define GPIO_OSPEEDR_OSPEED1_Pos       (2U)
4792 #define GPIO_OSPEEDR_OSPEED1_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED1_Pos)     /*!< 0x0000000C */
4793 #define GPIO_OSPEEDR_OSPEED1           GPIO_OSPEEDR_OSPEED1_Msk
4794 #define GPIO_OSPEEDR_OSPEED1_0         (0x1UL << GPIO_OSPEEDR_OSPEED1_Pos)     /*!< 0x00000004 */
4795 #define GPIO_OSPEEDR_OSPEED1_1         (0x2UL << GPIO_OSPEEDR_OSPEED1_Pos)     /*!< 0x00000008 */
4796 #define GPIO_OSPEEDR_OSPEED2_Pos       (4U)
4797 #define GPIO_OSPEEDR_OSPEED2_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED2_Pos)     /*!< 0x00000030 */
4798 #define GPIO_OSPEEDR_OSPEED2           GPIO_OSPEEDR_OSPEED2_Msk
4799 #define GPIO_OSPEEDR_OSPEED2_0         (0x1UL << GPIO_OSPEEDR_OSPEED2_Pos)     /*!< 0x00000010 */
4800 #define GPIO_OSPEEDR_OSPEED2_1         (0x2UL << GPIO_OSPEEDR_OSPEED2_Pos)     /*!< 0x00000020 */
4801 #define GPIO_OSPEEDR_OSPEED3_Pos       (6U)
4802 #define GPIO_OSPEEDR_OSPEED3_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED3_Pos)     /*!< 0x000000C0 */
4803 #define GPIO_OSPEEDR_OSPEED3           GPIO_OSPEEDR_OSPEED3_Msk
4804 #define GPIO_OSPEEDR_OSPEED3_0         (0x1UL << GPIO_OSPEEDR_OSPEED3_Pos)     /*!< 0x00000040 */
4805 #define GPIO_OSPEEDR_OSPEED3_1         (0x2UL << GPIO_OSPEEDR_OSPEED3_Pos)     /*!< 0x00000080 */
4806 #define GPIO_OSPEEDR_OSPEED4_Pos       (8U)
4807 #define GPIO_OSPEEDR_OSPEED4_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED4_Pos)     /*!< 0x00000300 */
4808 #define GPIO_OSPEEDR_OSPEED4           GPIO_OSPEEDR_OSPEED4_Msk
4809 #define GPIO_OSPEEDR_OSPEED4_0         (0x1UL << GPIO_OSPEEDR_OSPEED4_Pos)     /*!< 0x00000100 */
4810 #define GPIO_OSPEEDR_OSPEED4_1         (0x2UL << GPIO_OSPEEDR_OSPEED4_Pos)     /*!< 0x00000200 */
4811 #define GPIO_OSPEEDR_OSPEED5_Pos       (10U)
4812 #define GPIO_OSPEEDR_OSPEED5_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED5_Pos)     /*!< 0x00000C00 */
4813 #define GPIO_OSPEEDR_OSPEED5           GPIO_OSPEEDR_OSPEED5_Msk
4814 #define GPIO_OSPEEDR_OSPEED5_0         (0x1UL << GPIO_OSPEEDR_OSPEED5_Pos)     /*!< 0x00000400 */
4815 #define GPIO_OSPEEDR_OSPEED5_1         (0x2UL << GPIO_OSPEEDR_OSPEED5_Pos)     /*!< 0x00000800 */
4816 #define GPIO_OSPEEDR_OSPEED6_Pos       (12U)
4817 #define GPIO_OSPEEDR_OSPEED6_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED6_Pos)     /*!< 0x00003000 */
4818 #define GPIO_OSPEEDR_OSPEED6           GPIO_OSPEEDR_OSPEED6_Msk
4819 #define GPIO_OSPEEDR_OSPEED6_0         (0x1UL << GPIO_OSPEEDR_OSPEED6_Pos)     /*!< 0x00001000 */
4820 #define GPIO_OSPEEDR_OSPEED6_1         (0x2UL << GPIO_OSPEEDR_OSPEED6_Pos)     /*!< 0x00002000 */
4821 #define GPIO_OSPEEDR_OSPEED7_Pos       (14U)
4822 #define GPIO_OSPEEDR_OSPEED7_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED7_Pos)     /*!< 0x0000C000 */
4823 #define GPIO_OSPEEDR_OSPEED7           GPIO_OSPEEDR_OSPEED7_Msk
4824 #define GPIO_OSPEEDR_OSPEED7_0         (0x1UL << GPIO_OSPEEDR_OSPEED7_Pos)     /*!< 0x00004000 */
4825 #define GPIO_OSPEEDR_OSPEED7_1         (0x2UL << GPIO_OSPEEDR_OSPEED7_Pos)     /*!< 0x00008000 */
4826 #define GPIO_OSPEEDR_OSPEED8_Pos       (16U)
4827 #define GPIO_OSPEEDR_OSPEED8_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED8_Pos)     /*!< 0x00030000 */
4828 #define GPIO_OSPEEDR_OSPEED8           GPIO_OSPEEDR_OSPEED8_Msk
4829 #define GPIO_OSPEEDR_OSPEED8_0         (0x1UL << GPIO_OSPEEDR_OSPEED8_Pos)     /*!< 0x00010000 */
4830 #define GPIO_OSPEEDR_OSPEED8_1         (0x2UL << GPIO_OSPEEDR_OSPEED8_Pos)     /*!< 0x00020000 */
4831 #define GPIO_OSPEEDR_OSPEED9_Pos       (18U)
4832 #define GPIO_OSPEEDR_OSPEED9_Msk       (0x3UL << GPIO_OSPEEDR_OSPEED9_Pos)     /*!< 0x000C0000 */
4833 #define GPIO_OSPEEDR_OSPEED9           GPIO_OSPEEDR_OSPEED9_Msk
4834 #define GPIO_OSPEEDR_OSPEED9_0         (0x1UL << GPIO_OSPEEDR_OSPEED9_Pos)     /*!< 0x00040000 */
4835 #define GPIO_OSPEEDR_OSPEED9_1         (0x2UL << GPIO_OSPEEDR_OSPEED9_Pos)     /*!< 0x00080000 */
4836 #define GPIO_OSPEEDR_OSPEED10_Pos      (20U)
4837 #define GPIO_OSPEEDR_OSPEED10_Msk      (0x3UL << GPIO_OSPEEDR_OSPEED10_Pos)    /*!< 0x00300000 */
4838 #define GPIO_OSPEEDR_OSPEED10          GPIO_OSPEEDR_OSPEED10_Msk
4839 #define GPIO_OSPEEDR_OSPEED10_0        (0x1UL << GPIO_OSPEEDR_OSPEED10_Pos)    /*!< 0x00100000 */
4840 #define GPIO_OSPEEDR_OSPEED10_1        (0x2UL << GPIO_OSPEEDR_OSPEED10_Pos)    /*!< 0x00200000 */
4841 #define GPIO_OSPEEDR_OSPEED11_Pos      (22U)
4842 #define GPIO_OSPEEDR_OSPEED11_Msk      (0x3UL << GPIO_OSPEEDR_OSPEED11_Pos)    /*!< 0x00C00000 */
4843 #define GPIO_OSPEEDR_OSPEED11          GPIO_OSPEEDR_OSPEED11_Msk
4844 #define GPIO_OSPEEDR_OSPEED11_0        (0x1UL << GPIO_OSPEEDR_OSPEED11_Pos)    /*!< 0x00400000 */
4845 #define GPIO_OSPEEDR_OSPEED11_1        (0x2UL << GPIO_OSPEEDR_OSPEED11_Pos)    /*!< 0x00800000 */
4846 #define GPIO_OSPEEDR_OSPEED12_Pos      (24U)
4847 #define GPIO_OSPEEDR_OSPEED12_Msk      (0x3UL << GPIO_OSPEEDR_OSPEED12_Pos)    /*!< 0x03000000 */
4848 #define GPIO_OSPEEDR_OSPEED12          GPIO_OSPEEDR_OSPEED12_Msk
4849 #define GPIO_OSPEEDR_OSPEED12_0        (0x1UL << GPIO_OSPEEDR_OSPEED12_Pos)    /*!< 0x01000000 */
4850 #define GPIO_OSPEEDR_OSPEED12_1        (0x2UL << GPIO_OSPEEDR_OSPEED12_Pos)    /*!< 0x02000000 */
4851 #define GPIO_OSPEEDR_OSPEED13_Pos      (26U)
4852 #define GPIO_OSPEEDR_OSPEED13_Msk      (0x3UL << GPIO_OSPEEDR_OSPEED13_Pos)    /*!< 0x0C000000 */
4853 #define GPIO_OSPEEDR_OSPEED13          GPIO_OSPEEDR_OSPEED13_Msk
4854 #define GPIO_OSPEEDR_OSPEED13_0        (0x1UL << GPIO_OSPEEDR_OSPEED13_Pos)    /*!< 0x04000000 */
4855 #define GPIO_OSPEEDR_OSPEED13_1        (0x2UL << GPIO_OSPEEDR_OSPEED13_Pos)    /*!< 0x08000000 */
4856 #define GPIO_OSPEEDR_OSPEED14_Pos      (28U)
4857 #define GPIO_OSPEEDR_OSPEED14_Msk      (0x3UL << GPIO_OSPEEDR_OSPEED14_Pos)    /*!< 0x30000000 */
4858 #define GPIO_OSPEEDR_OSPEED14          GPIO_OSPEEDR_OSPEED14_Msk
4859 #define GPIO_OSPEEDR_OSPEED14_0        (0x1UL << GPIO_OSPEEDR_OSPEED14_Pos)    /*!< 0x10000000 */
4860 #define GPIO_OSPEEDR_OSPEED14_1        (0x2UL << GPIO_OSPEEDR_OSPEED14_Pos)    /*!< 0x20000000 */
4861 #define GPIO_OSPEEDR_OSPEED15_Pos      (30U)
4862 #define GPIO_OSPEEDR_OSPEED15_Msk      (0x3UL << GPIO_OSPEEDR_OSPEED15_Pos)    /*!< 0xC0000000 */
4863 #define GPIO_OSPEEDR_OSPEED15          GPIO_OSPEEDR_OSPEED15_Msk
4864 #define GPIO_OSPEEDR_OSPEED15_0        (0x1UL << GPIO_OSPEEDR_OSPEED15_Pos)    /*!< 0x40000000 */
4865 #define GPIO_OSPEEDR_OSPEED15_1        (0x2UL << GPIO_OSPEEDR_OSPEED15_Pos)    /*!< 0x80000000 */
4866 
4867 /******************  Bits definition for GPIO_PUPDR register  *****************/
4868 #define GPIO_PUPDR_PUPD0_Pos           (0U)
4869 #define GPIO_PUPDR_PUPD0_Msk           (0x3UL << GPIO_PUPDR_PUPD0_Pos)         /*!< 0x00000003 */
4870 #define GPIO_PUPDR_PUPD0               GPIO_PUPDR_PUPD0_Msk
4871 #define GPIO_PUPDR_PUPD0_0             (0x1UL << GPIO_PUPDR_PUPD0_Pos)         /*!< 0x00000001 */
4872 #define GPIO_PUPDR_PUPD0_1             (0x2UL << GPIO_PUPDR_PUPD0_Pos)         /*!< 0x00000002 */
4873 #define GPIO_PUPDR_PUPD1_Pos           (2U)
4874 #define GPIO_PUPDR_PUPD1_Msk           (0x3UL << GPIO_PUPDR_PUPD1_Pos)         /*!< 0x0000000C */
4875 #define GPIO_PUPDR_PUPD1               GPIO_PUPDR_PUPD1_Msk
4876 #define GPIO_PUPDR_PUPD1_0             (0x1UL << GPIO_PUPDR_PUPD1_Pos)         /*!< 0x00000004 */
4877 #define GPIO_PUPDR_PUPD1_1             (0x2UL << GPIO_PUPDR_PUPD1_Pos)         /*!< 0x00000008 */
4878 #define GPIO_PUPDR_PUPD2_Pos           (4U)
4879 #define GPIO_PUPDR_PUPD2_Msk           (0x3UL << GPIO_PUPDR_PUPD2_Pos)         /*!< 0x00000030 */
4880 #define GPIO_PUPDR_PUPD2               GPIO_PUPDR_PUPD2_Msk
4881 #define GPIO_PUPDR_PUPD2_0             (0x1UL << GPIO_PUPDR_PUPD2_Pos)         /*!< 0x00000010 */
4882 #define GPIO_PUPDR_PUPD2_1             (0x2UL << GPIO_PUPDR_PUPD2_Pos)         /*!< 0x00000020 */
4883 #define GPIO_PUPDR_PUPD3_Pos           (6U)
4884 #define GPIO_PUPDR_PUPD3_Msk           (0x3UL << GPIO_PUPDR_PUPD3_Pos)         /*!< 0x000000C0 */
4885 #define GPIO_PUPDR_PUPD3               GPIO_PUPDR_PUPD3_Msk
4886 #define GPIO_PUPDR_PUPD3_0             (0x1UL << GPIO_PUPDR_PUPD3_Pos)         /*!< 0x00000040 */
4887 #define GPIO_PUPDR_PUPD3_1             (0x2UL << GPIO_PUPDR_PUPD3_Pos)         /*!< 0x00000080 */
4888 #define GPIO_PUPDR_PUPD4_Pos           (8U)
4889 #define GPIO_PUPDR_PUPD4_Msk           (0x3UL << GPIO_PUPDR_PUPD4_Pos)         /*!< 0x00000300 */
4890 #define GPIO_PUPDR_PUPD4               GPIO_PUPDR_PUPD4_Msk
4891 #define GPIO_PUPDR_PUPD4_0             (0x1UL << GPIO_PUPDR_PUPD4_Pos)         /*!< 0x00000100 */
4892 #define GPIO_PUPDR_PUPD4_1             (0x2UL << GPIO_PUPDR_PUPD4_Pos)         /*!< 0x00000200 */
4893 #define GPIO_PUPDR_PUPD5_Pos           (10U)
4894 #define GPIO_PUPDR_PUPD5_Msk           (0x3UL << GPIO_PUPDR_PUPD5_Pos)         /*!< 0x00000C00 */
4895 #define GPIO_PUPDR_PUPD5               GPIO_PUPDR_PUPD5_Msk
4896 #define GPIO_PUPDR_PUPD5_0             (0x1UL << GPIO_PUPDR_PUPD5_Pos)         /*!< 0x00000400 */
4897 #define GPIO_PUPDR_PUPD5_1             (0x2UL << GPIO_PUPDR_PUPD5_Pos)         /*!< 0x00000800 */
4898 #define GPIO_PUPDR_PUPD6_Pos           (12U)
4899 #define GPIO_PUPDR_PUPD6_Msk           (0x3UL << GPIO_PUPDR_PUPD6_Pos)         /*!< 0x00003000 */
4900 #define GPIO_PUPDR_PUPD6               GPIO_PUPDR_PUPD6_Msk
4901 #define GPIO_PUPDR_PUPD6_0             (0x1UL << GPIO_PUPDR_PUPD6_Pos)         /*!< 0x00001000 */
4902 #define GPIO_PUPDR_PUPD6_1             (0x2UL << GPIO_PUPDR_PUPD6_Pos)         /*!< 0x00002000 */
4903 #define GPIO_PUPDR_PUPD7_Pos           (14U)
4904 #define GPIO_PUPDR_PUPD7_Msk           (0x3UL << GPIO_PUPDR_PUPD7_Pos)         /*!< 0x0000C000 */
4905 #define GPIO_PUPDR_PUPD7               GPIO_PUPDR_PUPD7_Msk
4906 #define GPIO_PUPDR_PUPD7_0             (0x1UL << GPIO_PUPDR_PUPD7_Pos)         /*!< 0x00004000 */
4907 #define GPIO_PUPDR_PUPD7_1             (0x2UL << GPIO_PUPDR_PUPD7_Pos)         /*!< 0x00008000 */
4908 #define GPIO_PUPDR_PUPD8_Pos           (16U)
4909 #define GPIO_PUPDR_PUPD8_Msk           (0x3UL << GPIO_PUPDR_PUPD8_Pos)         /*!< 0x00030000 */
4910 #define GPIO_PUPDR_PUPD8               GPIO_PUPDR_PUPD8_Msk
4911 #define GPIO_PUPDR_PUPD8_0             (0x1UL << GPIO_PUPDR_PUPD8_Pos)         /*!< 0x00010000 */
4912 #define GPIO_PUPDR_PUPD8_1             (0x2UL << GPIO_PUPDR_PUPD8_Pos)         /*!< 0x00020000 */
4913 #define GPIO_PUPDR_PUPD9_Pos           (18U)
4914 #define GPIO_PUPDR_PUPD9_Msk           (0x3UL << GPIO_PUPDR_PUPD9_Pos)         /*!< 0x000C0000 */
4915 #define GPIO_PUPDR_PUPD9               GPIO_PUPDR_PUPD9_Msk
4916 #define GPIO_PUPDR_PUPD9_0             (0x1UL << GPIO_PUPDR_PUPD9_Pos)         /*!< 0x00040000 */
4917 #define GPIO_PUPDR_PUPD9_1             (0x2UL << GPIO_PUPDR_PUPD9_Pos)         /*!< 0x00080000 */
4918 #define GPIO_PUPDR_PUPD10_Pos          (20U)
4919 #define GPIO_PUPDR_PUPD10_Msk          (0x3UL << GPIO_PUPDR_PUPD10_Pos)        /*!< 0x00300000 */
4920 #define GPIO_PUPDR_PUPD10              GPIO_PUPDR_PUPD10_Msk
4921 #define GPIO_PUPDR_PUPD10_0            (0x1UL << GPIO_PUPDR_PUPD10_Pos)        /*!< 0x00100000 */
4922 #define GPIO_PUPDR_PUPD10_1            (0x2UL << GPIO_PUPDR_PUPD10_Pos)        /*!< 0x00200000 */
4923 #define GPIO_PUPDR_PUPD11_Pos          (22U)
4924 #define GPIO_PUPDR_PUPD11_Msk          (0x3UL << GPIO_PUPDR_PUPD11_Pos)        /*!< 0x00C00000 */
4925 #define GPIO_PUPDR_PUPD11              GPIO_PUPDR_PUPD11_Msk
4926 #define GPIO_PUPDR_PUPD11_0            (0x1UL << GPIO_PUPDR_PUPD11_Pos)        /*!< 0x00400000 */
4927 #define GPIO_PUPDR_PUPD11_1            (0x2UL << GPIO_PUPDR_PUPD11_Pos)        /*!< 0x00800000 */
4928 #define GPIO_PUPDR_PUPD12_Pos          (24U)
4929 #define GPIO_PUPDR_PUPD12_Msk          (0x3UL << GPIO_PUPDR_PUPD12_Pos)        /*!< 0x03000000 */
4930 #define GPIO_PUPDR_PUPD12              GPIO_PUPDR_PUPD12_Msk
4931 #define GPIO_PUPDR_PUPD12_0            (0x1UL << GPIO_PUPDR_PUPD12_Pos)        /*!< 0x01000000 */
4932 #define GPIO_PUPDR_PUPD12_1            (0x2UL << GPIO_PUPDR_PUPD12_Pos)        /*!< 0x02000000 */
4933 #define GPIO_PUPDR_PUPD13_Pos          (26U)
4934 #define GPIO_PUPDR_PUPD13_Msk          (0x3UL << GPIO_PUPDR_PUPD13_Pos)        /*!< 0x0C000000 */
4935 #define GPIO_PUPDR_PUPD13              GPIO_PUPDR_PUPD13_Msk
4936 #define GPIO_PUPDR_PUPD13_0            (0x1UL << GPIO_PUPDR_PUPD13_Pos)        /*!< 0x04000000 */
4937 #define GPIO_PUPDR_PUPD13_1            (0x2UL << GPIO_PUPDR_PUPD13_Pos)        /*!< 0x08000000 */
4938 #define GPIO_PUPDR_PUPD14_Pos          (28U)
4939 #define GPIO_PUPDR_PUPD14_Msk          (0x3UL << GPIO_PUPDR_PUPD14_Pos)        /*!< 0x30000000 */
4940 #define GPIO_PUPDR_PUPD14              GPIO_PUPDR_PUPD14_Msk
4941 #define GPIO_PUPDR_PUPD14_0            (0x1UL << GPIO_PUPDR_PUPD14_Pos)        /*!< 0x10000000 */
4942 #define GPIO_PUPDR_PUPD14_1            (0x2UL << GPIO_PUPDR_PUPD14_Pos)        /*!< 0x20000000 */
4943 #define GPIO_PUPDR_PUPD15_Pos          (30U)
4944 #define GPIO_PUPDR_PUPD15_Msk          (0x3UL << GPIO_PUPDR_PUPD15_Pos)        /*!< 0xC0000000 */
4945 #define GPIO_PUPDR_PUPD15              GPIO_PUPDR_PUPD15_Msk
4946 #define GPIO_PUPDR_PUPD15_0            (0x1UL << GPIO_PUPDR_PUPD15_Pos)        /*!< 0x40000000 */
4947 #define GPIO_PUPDR_PUPD15_1            (0x2UL << GPIO_PUPDR_PUPD15_Pos)        /*!< 0x80000000 */
4948 
4949 /******************  Bits definition for GPIO_IDR register  *******************/
4950 #define GPIO_IDR_ID0_Pos               (0U)
4951 #define GPIO_IDR_ID0_Msk               (0x1UL << GPIO_IDR_ID0_Pos)             /*!< 0x00000001 */
4952 #define GPIO_IDR_ID0                   GPIO_IDR_ID0_Msk
4953 #define GPIO_IDR_ID1_Pos               (1U)
4954 #define GPIO_IDR_ID1_Msk               (0x1UL << GPIO_IDR_ID1_Pos)             /*!< 0x00000002 */
4955 #define GPIO_IDR_ID1                   GPIO_IDR_ID1_Msk
4956 #define GPIO_IDR_ID2_Pos               (2U)
4957 #define GPIO_IDR_ID2_Msk               (0x1UL << GPIO_IDR_ID2_Pos)             /*!< 0x00000004 */
4958 #define GPIO_IDR_ID2                   GPIO_IDR_ID2_Msk
4959 #define GPIO_IDR_ID3_Pos               (3U)
4960 #define GPIO_IDR_ID3_Msk               (0x1UL << GPIO_IDR_ID3_Pos)             /*!< 0x00000008 */
4961 #define GPIO_IDR_ID3                   GPIO_IDR_ID3_Msk
4962 #define GPIO_IDR_ID4_Pos               (4U)
4963 #define GPIO_IDR_ID4_Msk               (0x1UL << GPIO_IDR_ID4_Pos)             /*!< 0x00000010 */
4964 #define GPIO_IDR_ID4                   GPIO_IDR_ID4_Msk
4965 #define GPIO_IDR_ID5_Pos               (5U)
4966 #define GPIO_IDR_ID5_Msk               (0x1UL << GPIO_IDR_ID5_Pos)             /*!< 0x00000020 */
4967 #define GPIO_IDR_ID5                   GPIO_IDR_ID5_Msk
4968 #define GPIO_IDR_ID6_Pos               (6U)
4969 #define GPIO_IDR_ID6_Msk               (0x1UL << GPIO_IDR_ID6_Pos)             /*!< 0x00000040 */
4970 #define GPIO_IDR_ID6                   GPIO_IDR_ID6_Msk
4971 #define GPIO_IDR_ID7_Pos               (7U)
4972 #define GPIO_IDR_ID7_Msk               (0x1UL << GPIO_IDR_ID7_Pos)             /*!< 0x00000080 */
4973 #define GPIO_IDR_ID7                   GPIO_IDR_ID7_Msk
4974 #define GPIO_IDR_ID8_Pos               (8U)
4975 #define GPIO_IDR_ID8_Msk               (0x1UL << GPIO_IDR_ID8_Pos)             /*!< 0x00000100 */
4976 #define GPIO_IDR_ID8                   GPIO_IDR_ID8_Msk
4977 #define GPIO_IDR_ID9_Pos               (9U)
4978 #define GPIO_IDR_ID9_Msk               (0x1UL << GPIO_IDR_ID9_Pos)             /*!< 0x00000200 */
4979 #define GPIO_IDR_ID9                   GPIO_IDR_ID9_Msk
4980 #define GPIO_IDR_ID10_Pos              (10U)
4981 #define GPIO_IDR_ID10_Msk              (0x1UL << GPIO_IDR_ID10_Pos)            /*!< 0x00000400 */
4982 #define GPIO_IDR_ID10                  GPIO_IDR_ID10_Msk
4983 #define GPIO_IDR_ID11_Pos              (11U)
4984 #define GPIO_IDR_ID11_Msk              (0x1UL << GPIO_IDR_ID11_Pos)            /*!< 0x00000800 */
4985 #define GPIO_IDR_ID11                  GPIO_IDR_ID11_Msk
4986 #define GPIO_IDR_ID12_Pos              (12U)
4987 #define GPIO_IDR_ID12_Msk              (0x1UL << GPIO_IDR_ID12_Pos)            /*!< 0x00001000 */
4988 #define GPIO_IDR_ID12                  GPIO_IDR_ID12_Msk
4989 #define GPIO_IDR_ID13_Pos              (13U)
4990 #define GPIO_IDR_ID13_Msk              (0x1UL << GPIO_IDR_ID13_Pos)            /*!< 0x00002000 */
4991 #define GPIO_IDR_ID13                  GPIO_IDR_ID13_Msk
4992 #define GPIO_IDR_ID14_Pos              (14U)
4993 #define GPIO_IDR_ID14_Msk              (0x1UL << GPIO_IDR_ID14_Pos)            /*!< 0x00004000 */
4994 #define GPIO_IDR_ID14                  GPIO_IDR_ID14_Msk
4995 #define GPIO_IDR_ID15_Pos              (15U)
4996 #define GPIO_IDR_ID15_Msk              (0x1UL << GPIO_IDR_ID15_Pos)            /*!< 0x00008000 */
4997 #define GPIO_IDR_ID15                  GPIO_IDR_ID15_Msk
4998 
4999 /******************  Bits definition for GPIO_ODR register  *******************/
5000 #define GPIO_ODR_OD0_Pos               (0U)
5001 #define GPIO_ODR_OD0_Msk               (0x1UL << GPIO_ODR_OD0_Pos)             /*!< 0x00000001 */
5002 #define GPIO_ODR_OD0                   GPIO_ODR_OD0_Msk
5003 #define GPIO_ODR_OD1_Pos               (1U)
5004 #define GPIO_ODR_OD1_Msk               (0x1UL << GPIO_ODR_OD1_Pos)             /*!< 0x00000002 */
5005 #define GPIO_ODR_OD1                   GPIO_ODR_OD1_Msk
5006 #define GPIO_ODR_OD2_Pos               (2U)
5007 #define GPIO_ODR_OD2_Msk               (0x1UL << GPIO_ODR_OD2_Pos)             /*!< 0x00000004 */
5008 #define GPIO_ODR_OD2                   GPIO_ODR_OD2_Msk
5009 #define GPIO_ODR_OD3_Pos               (3U)
5010 #define GPIO_ODR_OD3_Msk               (0x1UL << GPIO_ODR_OD3_Pos)             /*!< 0x00000008 */
5011 #define GPIO_ODR_OD3                   GPIO_ODR_OD3_Msk
5012 #define GPIO_ODR_OD4_Pos               (4U)
5013 #define GPIO_ODR_OD4_Msk               (0x1UL << GPIO_ODR_OD4_Pos)             /*!< 0x00000010 */
5014 #define GPIO_ODR_OD4                   GPIO_ODR_OD4_Msk
5015 #define GPIO_ODR_OD5_Pos               (5U)
5016 #define GPIO_ODR_OD5_Msk               (0x1UL << GPIO_ODR_OD5_Pos)             /*!< 0x00000020 */
5017 #define GPIO_ODR_OD5                   GPIO_ODR_OD5_Msk
5018 #define GPIO_ODR_OD6_Pos               (6U)
5019 #define GPIO_ODR_OD6_Msk               (0x1UL << GPIO_ODR_OD6_Pos)             /*!< 0x00000040 */
5020 #define GPIO_ODR_OD6                   GPIO_ODR_OD6_Msk
5021 #define GPIO_ODR_OD7_Pos               (7U)
5022 #define GPIO_ODR_OD7_Msk               (0x1UL << GPIO_ODR_OD7_Pos)             /*!< 0x00000080 */
5023 #define GPIO_ODR_OD7                   GPIO_ODR_OD7_Msk
5024 #define GPIO_ODR_OD8_Pos               (8U)
5025 #define GPIO_ODR_OD8_Msk               (0x1UL << GPIO_ODR_OD8_Pos)             /*!< 0x00000100 */
5026 #define GPIO_ODR_OD8                   GPIO_ODR_OD8_Msk
5027 #define GPIO_ODR_OD9_Pos               (9U)
5028 #define GPIO_ODR_OD9_Msk               (0x1UL << GPIO_ODR_OD9_Pos)             /*!< 0x00000200 */
5029 #define GPIO_ODR_OD9                   GPIO_ODR_OD9_Msk
5030 #define GPIO_ODR_OD10_Pos              (10U)
5031 #define GPIO_ODR_OD10_Msk              (0x1UL << GPIO_ODR_OD10_Pos)            /*!< 0x00000400 */
5032 #define GPIO_ODR_OD10                  GPIO_ODR_OD10_Msk
5033 #define GPIO_ODR_OD11_Pos              (11U)
5034 #define GPIO_ODR_OD11_Msk              (0x1UL << GPIO_ODR_OD11_Pos)            /*!< 0x00000800 */
5035 #define GPIO_ODR_OD11                  GPIO_ODR_OD11_Msk
5036 #define GPIO_ODR_OD12_Pos              (12U)
5037 #define GPIO_ODR_OD12_Msk              (0x1UL << GPIO_ODR_OD12_Pos)            /*!< 0x00001000 */
5038 #define GPIO_ODR_OD12                  GPIO_ODR_OD12_Msk
5039 #define GPIO_ODR_OD13_Pos              (13U)
5040 #define GPIO_ODR_OD13_Msk              (0x1UL << GPIO_ODR_OD13_Pos)            /*!< 0x00002000 */
5041 #define GPIO_ODR_OD13                  GPIO_ODR_OD13_Msk
5042 #define GPIO_ODR_OD14_Pos              (14U)
5043 #define GPIO_ODR_OD14_Msk              (0x1UL << GPIO_ODR_OD14_Pos)            /*!< 0x00004000 */
5044 #define GPIO_ODR_OD14                  GPIO_ODR_OD14_Msk
5045 #define GPIO_ODR_OD15_Pos              (15U)
5046 #define GPIO_ODR_OD15_Msk              (0x1UL << GPIO_ODR_OD15_Pos)            /*!< 0x00008000 */
5047 #define GPIO_ODR_OD15                  GPIO_ODR_OD15_Msk
5048 
5049 /******************  Bits definition for GPIO_BSRR register  ******************/
5050 #define GPIO_BSRR_BS0_Pos              (0U)
5051 #define GPIO_BSRR_BS0_Msk              (0x1UL << GPIO_BSRR_BS0_Pos)            /*!< 0x00000001 */
5052 #define GPIO_BSRR_BS0                  GPIO_BSRR_BS0_Msk
5053 #define GPIO_BSRR_BS1_Pos              (1U)
5054 #define GPIO_BSRR_BS1_Msk              (0x1UL << GPIO_BSRR_BS1_Pos)            /*!< 0x00000002 */
5055 #define GPIO_BSRR_BS1                  GPIO_BSRR_BS1_Msk
5056 #define GPIO_BSRR_BS2_Pos              (2U)
5057 #define GPIO_BSRR_BS2_Msk              (0x1UL << GPIO_BSRR_BS2_Pos)            /*!< 0x00000004 */
5058 #define GPIO_BSRR_BS2                  GPIO_BSRR_BS2_Msk
5059 #define GPIO_BSRR_BS3_Pos              (3U)
5060 #define GPIO_BSRR_BS3_Msk              (0x1UL << GPIO_BSRR_BS3_Pos)            /*!< 0x00000008 */
5061 #define GPIO_BSRR_BS3                  GPIO_BSRR_BS3_Msk
5062 #define GPIO_BSRR_BS4_Pos              (4U)
5063 #define GPIO_BSRR_BS4_Msk              (0x1UL << GPIO_BSRR_BS4_Pos)            /*!< 0x00000010 */
5064 #define GPIO_BSRR_BS4                  GPIO_BSRR_BS4_Msk
5065 #define GPIO_BSRR_BS5_Pos              (5U)
5066 #define GPIO_BSRR_BS5_Msk              (0x1UL << GPIO_BSRR_BS5_Pos)            /*!< 0x00000020 */
5067 #define GPIO_BSRR_BS5                  GPIO_BSRR_BS5_Msk
5068 #define GPIO_BSRR_BS6_Pos              (6U)
5069 #define GPIO_BSRR_BS6_Msk              (0x1UL << GPIO_BSRR_BS6_Pos)            /*!< 0x00000040 */
5070 #define GPIO_BSRR_BS6                  GPIO_BSRR_BS6_Msk
5071 #define GPIO_BSRR_BS7_Pos              (7U)
5072 #define GPIO_BSRR_BS7_Msk              (0x1UL << GPIO_BSRR_BS7_Pos)            /*!< 0x00000080 */
5073 #define GPIO_BSRR_BS7                  GPIO_BSRR_BS7_Msk
5074 #define GPIO_BSRR_BS8_Pos              (8U)
5075 #define GPIO_BSRR_BS8_Msk              (0x1UL << GPIO_BSRR_BS8_Pos)            /*!< 0x00000100 */
5076 #define GPIO_BSRR_BS8                  GPIO_BSRR_BS8_Msk
5077 #define GPIO_BSRR_BS9_Pos              (9U)
5078 #define GPIO_BSRR_BS9_Msk              (0x1UL << GPIO_BSRR_BS9_Pos)            /*!< 0x00000200 */
5079 #define GPIO_BSRR_BS9                  GPIO_BSRR_BS9_Msk
5080 #define GPIO_BSRR_BS10_Pos             (10U)
5081 #define GPIO_BSRR_BS10_Msk             (0x1UL << GPIO_BSRR_BS10_Pos)           /*!< 0x00000400 */
5082 #define GPIO_BSRR_BS10                 GPIO_BSRR_BS10_Msk
5083 #define GPIO_BSRR_BS11_Pos             (11U)
5084 #define GPIO_BSRR_BS11_Msk             (0x1UL << GPIO_BSRR_BS11_Pos)           /*!< 0x00000800 */
5085 #define GPIO_BSRR_BS11                 GPIO_BSRR_BS11_Msk
5086 #define GPIO_BSRR_BS12_Pos             (12U)
5087 #define GPIO_BSRR_BS12_Msk             (0x1UL << GPIO_BSRR_BS12_Pos)           /*!< 0x00001000 */
5088 #define GPIO_BSRR_BS12                 GPIO_BSRR_BS12_Msk
5089 #define GPIO_BSRR_BS13_Pos             (13U)
5090 #define GPIO_BSRR_BS13_Msk             (0x1UL << GPIO_BSRR_BS13_Pos)           /*!< 0x00002000 */
5091 #define GPIO_BSRR_BS13                 GPIO_BSRR_BS13_Msk
5092 #define GPIO_BSRR_BS14_Pos             (14U)
5093 #define GPIO_BSRR_BS14_Msk             (0x1UL << GPIO_BSRR_BS14_Pos)           /*!< 0x00004000 */
5094 #define GPIO_BSRR_BS14                 GPIO_BSRR_BS14_Msk
5095 #define GPIO_BSRR_BS15_Pos             (15U)
5096 #define GPIO_BSRR_BS15_Msk             (0x1UL << GPIO_BSRR_BS15_Pos)           /*!< 0x00008000 */
5097 #define GPIO_BSRR_BS15                 GPIO_BSRR_BS15_Msk
5098 #define GPIO_BSRR_BR0_Pos              (16U)
5099 #define GPIO_BSRR_BR0_Msk              (0x1UL << GPIO_BSRR_BR0_Pos)            /*!< 0x00010000 */
5100 #define GPIO_BSRR_BR0                  GPIO_BSRR_BR0_Msk
5101 #define GPIO_BSRR_BR1_Pos              (17U)
5102 #define GPIO_BSRR_BR1_Msk              (0x1UL << GPIO_BSRR_BR1_Pos)            /*!< 0x00020000 */
5103 #define GPIO_BSRR_BR1                  GPIO_BSRR_BR1_Msk
5104 #define GPIO_BSRR_BR2_Pos              (18U)
5105 #define GPIO_BSRR_BR2_Msk              (0x1UL << GPIO_BSRR_BR2_Pos)            /*!< 0x00040000 */
5106 #define GPIO_BSRR_BR2                  GPIO_BSRR_BR2_Msk
5107 #define GPIO_BSRR_BR3_Pos              (19U)
5108 #define GPIO_BSRR_BR3_Msk              (0x1UL << GPIO_BSRR_BR3_Pos)            /*!< 0x00080000 */
5109 #define GPIO_BSRR_BR3                  GPIO_BSRR_BR3_Msk
5110 #define GPIO_BSRR_BR4_Pos              (20U)
5111 #define GPIO_BSRR_BR4_Msk              (0x1UL << GPIO_BSRR_BR4_Pos)            /*!< 0x00100000 */
5112 #define GPIO_BSRR_BR4                  GPIO_BSRR_BR4_Msk
5113 #define GPIO_BSRR_BR5_Pos              (21U)
5114 #define GPIO_BSRR_BR5_Msk              (0x1UL << GPIO_BSRR_BR5_Pos)            /*!< 0x00200000 */
5115 #define GPIO_BSRR_BR5                  GPIO_BSRR_BR5_Msk
5116 #define GPIO_BSRR_BR6_Pos              (22U)
5117 #define GPIO_BSRR_BR6_Msk              (0x1UL << GPIO_BSRR_BR6_Pos)            /*!< 0x00400000 */
5118 #define GPIO_BSRR_BR6                  GPIO_BSRR_BR6_Msk
5119 #define GPIO_BSRR_BR7_Pos              (23U)
5120 #define GPIO_BSRR_BR7_Msk              (0x1UL << GPIO_BSRR_BR7_Pos)            /*!< 0x00800000 */
5121 #define GPIO_BSRR_BR7                  GPIO_BSRR_BR7_Msk
5122 #define GPIO_BSRR_BR8_Pos              (24U)
5123 #define GPIO_BSRR_BR8_Msk              (0x1UL << GPIO_BSRR_BR8_Pos)            /*!< 0x01000000 */
5124 #define GPIO_BSRR_BR8                  GPIO_BSRR_BR8_Msk
5125 #define GPIO_BSRR_BR9_Pos              (25U)
5126 #define GPIO_BSRR_BR9_Msk              (0x1UL << GPIO_BSRR_BR9_Pos)            /*!< 0x02000000 */
5127 #define GPIO_BSRR_BR9                  GPIO_BSRR_BR9_Msk
5128 #define GPIO_BSRR_BR10_Pos             (26U)
5129 #define GPIO_BSRR_BR10_Msk             (0x1UL << GPIO_BSRR_BR10_Pos)           /*!< 0x04000000 */
5130 #define GPIO_BSRR_BR10                 GPIO_BSRR_BR10_Msk
5131 #define GPIO_BSRR_BR11_Pos             (27U)
5132 #define GPIO_BSRR_BR11_Msk             (0x1UL << GPIO_BSRR_BR11_Pos)           /*!< 0x08000000 */
5133 #define GPIO_BSRR_BR11                 GPIO_BSRR_BR11_Msk
5134 #define GPIO_BSRR_BR12_Pos             (28U)
5135 #define GPIO_BSRR_BR12_Msk             (0x1UL << GPIO_BSRR_BR12_Pos)           /*!< 0x10000000 */
5136 #define GPIO_BSRR_BR12                 GPIO_BSRR_BR12_Msk
5137 #define GPIO_BSRR_BR13_Pos             (29U)
5138 #define GPIO_BSRR_BR13_Msk             (0x1UL << GPIO_BSRR_BR13_Pos)           /*!< 0x20000000 */
5139 #define GPIO_BSRR_BR13                 GPIO_BSRR_BR13_Msk
5140 #define GPIO_BSRR_BR14_Pos             (30U)
5141 #define GPIO_BSRR_BR14_Msk             (0x1UL << GPIO_BSRR_BR14_Pos)           /*!< 0x40000000 */
5142 #define GPIO_BSRR_BR14                 GPIO_BSRR_BR14_Msk
5143 #define GPIO_BSRR_BR15_Pos             (31U)
5144 #define GPIO_BSRR_BR15_Msk             (0x1UL << GPIO_BSRR_BR15_Pos)           /*!< 0x80000000 */
5145 #define GPIO_BSRR_BR15                 GPIO_BSRR_BR15_Msk
5146 
5147 /****************** Bit definition for GPIO_LCKR register *********************/
5148 #define GPIO_LCKR_LCK0_Pos             (0U)
5149 #define GPIO_LCKR_LCK0_Msk             (0x1UL << GPIO_LCKR_LCK0_Pos)           /*!< 0x00000001 */
5150 #define GPIO_LCKR_LCK0                 GPIO_LCKR_LCK0_Msk
5151 #define GPIO_LCKR_LCK1_Pos             (1U)
5152 #define GPIO_LCKR_LCK1_Msk             (0x1UL << GPIO_LCKR_LCK1_Pos)           /*!< 0x00000002 */
5153 #define GPIO_LCKR_LCK1                 GPIO_LCKR_LCK1_Msk
5154 #define GPIO_LCKR_LCK2_Pos             (2U)
5155 #define GPIO_LCKR_LCK2_Msk             (0x1UL << GPIO_LCKR_LCK2_Pos)           /*!< 0x00000004 */
5156 #define GPIO_LCKR_LCK2                 GPIO_LCKR_LCK2_Msk
5157 #define GPIO_LCKR_LCK3_Pos             (3U)
5158 #define GPIO_LCKR_LCK3_Msk             (0x1UL << GPIO_LCKR_LCK3_Pos)           /*!< 0x00000008 */
5159 #define GPIO_LCKR_LCK3                 GPIO_LCKR_LCK3_Msk
5160 #define GPIO_LCKR_LCK4_Pos             (4U)
5161 #define GPIO_LCKR_LCK4_Msk             (0x1UL << GPIO_LCKR_LCK4_Pos)           /*!< 0x00000010 */
5162 #define GPIO_LCKR_LCK4                 GPIO_LCKR_LCK4_Msk
5163 #define GPIO_LCKR_LCK5_Pos             (5U)
5164 #define GPIO_LCKR_LCK5_Msk             (0x1UL << GPIO_LCKR_LCK5_Pos)           /*!< 0x00000020 */
5165 #define GPIO_LCKR_LCK5                 GPIO_LCKR_LCK5_Msk
5166 #define GPIO_LCKR_LCK6_Pos             (6U)
5167 #define GPIO_LCKR_LCK6_Msk             (0x1UL << GPIO_LCKR_LCK6_Pos)           /*!< 0x00000040 */
5168 #define GPIO_LCKR_LCK6                 GPIO_LCKR_LCK6_Msk
5169 #define GPIO_LCKR_LCK7_Pos             (7U)
5170 #define GPIO_LCKR_LCK7_Msk             (0x1UL << GPIO_LCKR_LCK7_Pos)           /*!< 0x00000080 */
5171 #define GPIO_LCKR_LCK7                 GPIO_LCKR_LCK7_Msk
5172 #define GPIO_LCKR_LCK8_Pos             (8U)
5173 #define GPIO_LCKR_LCK8_Msk             (0x1UL << GPIO_LCKR_LCK8_Pos)           /*!< 0x00000100 */
5174 #define GPIO_LCKR_LCK8                 GPIO_LCKR_LCK8_Msk
5175 #define GPIO_LCKR_LCK9_Pos             (9U)
5176 #define GPIO_LCKR_LCK9_Msk             (0x1UL << GPIO_LCKR_LCK9_Pos)           /*!< 0x00000200 */
5177 #define GPIO_LCKR_LCK9                 GPIO_LCKR_LCK9_Msk
5178 #define GPIO_LCKR_LCK10_Pos            (10U)
5179 #define GPIO_LCKR_LCK10_Msk            (0x1UL << GPIO_LCKR_LCK10_Pos)          /*!< 0x00000400 */
5180 #define GPIO_LCKR_LCK10                GPIO_LCKR_LCK10_Msk
5181 #define GPIO_LCKR_LCK11_Pos            (11U)
5182 #define GPIO_LCKR_LCK11_Msk            (0x1UL << GPIO_LCKR_LCK11_Pos)          /*!< 0x00000800 */
5183 #define GPIO_LCKR_LCK11                GPIO_LCKR_LCK11_Msk
5184 #define GPIO_LCKR_LCK12_Pos            (12U)
5185 #define GPIO_LCKR_LCK12_Msk            (0x1UL << GPIO_LCKR_LCK12_Pos)          /*!< 0x00001000 */
5186 #define GPIO_LCKR_LCK12                GPIO_LCKR_LCK12_Msk
5187 #define GPIO_LCKR_LCK13_Pos            (13U)
5188 #define GPIO_LCKR_LCK13_Msk            (0x1UL << GPIO_LCKR_LCK13_Pos)          /*!< 0x00002000 */
5189 #define GPIO_LCKR_LCK13                GPIO_LCKR_LCK13_Msk
5190 #define GPIO_LCKR_LCK14_Pos            (14U)
5191 #define GPIO_LCKR_LCK14_Msk            (0x1UL << GPIO_LCKR_LCK14_Pos)          /*!< 0x00004000 */
5192 #define GPIO_LCKR_LCK14                GPIO_LCKR_LCK14_Msk
5193 #define GPIO_LCKR_LCK15_Pos            (15U)
5194 #define GPIO_LCKR_LCK15_Msk            (0x1UL << GPIO_LCKR_LCK15_Pos)          /*!< 0x00008000 */
5195 #define GPIO_LCKR_LCK15                GPIO_LCKR_LCK15_Msk
5196 #define GPIO_LCKR_LCKK_Pos             (16U)
5197 #define GPIO_LCKR_LCKK_Msk             (0x1UL << GPIO_LCKR_LCKK_Pos)           /*!< 0x00010000 */
5198 #define GPIO_LCKR_LCKK                 GPIO_LCKR_LCKK_Msk
5199 
5200 /****************** Bit definition for GPIO_AFRL register *********************/
5201 #define GPIO_AFRL_AFSEL0_Pos           (0U)
5202 #define GPIO_AFRL_AFSEL0_Msk           (0xFUL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x0000000F */
5203 #define GPIO_AFRL_AFSEL0               GPIO_AFRL_AFSEL0_Msk
5204 #define GPIO_AFRL_AFSEL0_0             (0x1UL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x00000001 */
5205 #define GPIO_AFRL_AFSEL0_1             (0x2UL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x00000002 */
5206 #define GPIO_AFRL_AFSEL0_2             (0x4UL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x00000004 */
5207 #define GPIO_AFRL_AFSEL0_3             (0x8UL << GPIO_AFRL_AFSEL0_Pos)         /*!< 0x00000008 */
5208 #define GPIO_AFRL_AFSEL1_Pos           (4U)
5209 #define GPIO_AFRL_AFSEL1_Msk           (0xFUL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x000000F0 */
5210 #define GPIO_AFRL_AFSEL1               GPIO_AFRL_AFSEL1_Msk
5211 #define GPIO_AFRL_AFSEL1_0             (0x1UL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x00000010 */
5212 #define GPIO_AFRL_AFSEL1_1             (0x2UL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x00000020 */
5213 #define GPIO_AFRL_AFSEL1_2             (0x4UL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x00000040 */
5214 #define GPIO_AFRL_AFSEL1_3             (0x8UL << GPIO_AFRL_AFSEL1_Pos)         /*!< 0x00000080 */
5215 #define GPIO_AFRL_AFSEL2_Pos           (8U)
5216 #define GPIO_AFRL_AFSEL2_Msk           (0xFUL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000F00 */
5217 #define GPIO_AFRL_AFSEL2               GPIO_AFRL_AFSEL2_Msk
5218 #define GPIO_AFRL_AFSEL2_0             (0x1UL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000100 */
5219 #define GPIO_AFRL_AFSEL2_1             (0x2UL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000200 */
5220 #define GPIO_AFRL_AFSEL2_2             (0x4UL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000400 */
5221 #define GPIO_AFRL_AFSEL2_3             (0x8UL << GPIO_AFRL_AFSEL2_Pos)         /*!< 0x00000800 */
5222 #define GPIO_AFRL_AFSEL3_Pos           (12U)
5223 #define GPIO_AFRL_AFSEL3_Msk           (0xFUL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x0000F000 */
5224 #define GPIO_AFRL_AFSEL3               GPIO_AFRL_AFSEL3_Msk
5225 #define GPIO_AFRL_AFSEL3_0             (0x1UL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x00001000 */
5226 #define GPIO_AFRL_AFSEL3_1             (0x2UL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x00002000 */
5227 #define GPIO_AFRL_AFSEL3_2             (0x4UL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x00004000 */
5228 #define GPIO_AFRL_AFSEL3_3             (0x8UL << GPIO_AFRL_AFSEL3_Pos)         /*!< 0x00008000 */
5229 #define GPIO_AFRL_AFSEL4_Pos           (16U)
5230 #define GPIO_AFRL_AFSEL4_Msk           (0xFUL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x000F0000 */
5231 #define GPIO_AFRL_AFSEL4               GPIO_AFRL_AFSEL4_Msk
5232 #define GPIO_AFRL_AFSEL4_0             (0x1UL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x00010000 */
5233 #define GPIO_AFRL_AFSEL4_1             (0x2UL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x00020000 */
5234 #define GPIO_AFRL_AFSEL4_2             (0x4UL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x00040000 */
5235 #define GPIO_AFRL_AFSEL4_3             (0x8UL << GPIO_AFRL_AFSEL4_Pos)         /*!< 0x00080000 */
5236 #define GPIO_AFRL_AFSEL5_Pos           (20U)
5237 #define GPIO_AFRL_AFSEL5_Msk           (0xFUL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00F00000 */
5238 #define GPIO_AFRL_AFSEL5               GPIO_AFRL_AFSEL5_Msk
5239 #define GPIO_AFRL_AFSEL5_0             (0x1UL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00100000 */
5240 #define GPIO_AFRL_AFSEL5_1             (0x2UL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00200000 */
5241 #define GPIO_AFRL_AFSEL5_2             (0x4UL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00400000 */
5242 #define GPIO_AFRL_AFSEL5_3             (0x8UL << GPIO_AFRL_AFSEL5_Pos)         /*!< 0x00800000 */
5243 #define GPIO_AFRL_AFSEL6_Pos           (24U)
5244 #define GPIO_AFRL_AFSEL6_Msk           (0xFUL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x0F000000 */
5245 #define GPIO_AFRL_AFSEL6               GPIO_AFRL_AFSEL6_Msk
5246 #define GPIO_AFRL_AFSEL6_0             (0x1UL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x01000000 */
5247 #define GPIO_AFRL_AFSEL6_1             (0x2UL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x02000000 */
5248 #define GPIO_AFRL_AFSEL6_2             (0x4UL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x04000000 */
5249 #define GPIO_AFRL_AFSEL6_3             (0x8UL << GPIO_AFRL_AFSEL6_Pos)         /*!< 0x08000000 */
5250 #define GPIO_AFRL_AFSEL7_Pos           (28U)
5251 #define GPIO_AFRL_AFSEL7_Msk           (0xFUL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0xF0000000 */
5252 #define GPIO_AFRL_AFSEL7               GPIO_AFRL_AFSEL7_Msk
5253 #define GPIO_AFRL_AFSEL7_0             (0x1UL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0x10000000 */
5254 #define GPIO_AFRL_AFSEL7_1             (0x2UL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0x20000000 */
5255 #define GPIO_AFRL_AFSEL7_2             (0x4UL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0x40000000 */
5256 #define GPIO_AFRL_AFSEL7_3             (0x8UL << GPIO_AFRL_AFSEL7_Pos)         /*!< 0x80000000 */
5257 
5258 /****************** Bit definition for GPIO_AFRH register *********************/
5259 #define GPIO_AFRH_AFSEL8_Pos           (0U)
5260 #define GPIO_AFRH_AFSEL8_Msk           (0xFUL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x0000000F */
5261 #define GPIO_AFRH_AFSEL8               GPIO_AFRH_AFSEL8_Msk
5262 #define GPIO_AFRH_AFSEL8_0             (0x1UL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x00000001 */
5263 #define GPIO_AFRH_AFSEL8_1             (0x2UL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x00000002 */
5264 #define GPIO_AFRH_AFSEL8_2             (0x4UL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x00000004 */
5265 #define GPIO_AFRH_AFSEL8_3             (0x8UL << GPIO_AFRH_AFSEL8_Pos)         /*!< 0x00000008 */
5266 #define GPIO_AFRH_AFSEL9_Pos           (4U)
5267 #define GPIO_AFRH_AFSEL9_Msk           (0xFUL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x000000F0 */
5268 #define GPIO_AFRH_AFSEL9               GPIO_AFRH_AFSEL9_Msk
5269 #define GPIO_AFRH_AFSEL9_0             (0x1UL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x00000010 */
5270 #define GPIO_AFRH_AFSEL9_1             (0x2UL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x00000020 */
5271 #define GPIO_AFRH_AFSEL9_2             (0x4UL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x00000040 */
5272 #define GPIO_AFRH_AFSEL9_3             (0x8UL << GPIO_AFRH_AFSEL9_Pos)         /*!< 0x00000080 */
5273 #define GPIO_AFRH_AFSEL10_Pos          (8U)
5274 #define GPIO_AFRH_AFSEL10_Msk          (0xFUL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000F00 */
5275 #define GPIO_AFRH_AFSEL10              GPIO_AFRH_AFSEL10_Msk
5276 #define GPIO_AFRH_AFSEL10_0            (0x1UL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000100 */
5277 #define GPIO_AFRH_AFSEL10_1            (0x2UL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000200 */
5278 #define GPIO_AFRH_AFSEL10_2            (0x4UL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000400 */
5279 #define GPIO_AFRH_AFSEL10_3            (0x8UL << GPIO_AFRH_AFSEL10_Pos)        /*!< 0x00000800 */
5280 #define GPIO_AFRH_AFSEL11_Pos          (12U)
5281 #define GPIO_AFRH_AFSEL11_Msk          (0xFUL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x0000F000 */
5282 #define GPIO_AFRH_AFSEL11              GPIO_AFRH_AFSEL11_Msk
5283 #define GPIO_AFRH_AFSEL11_0            (0x1UL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x00001000 */
5284 #define GPIO_AFRH_AFSEL11_1            (0x2UL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x00002000 */
5285 #define GPIO_AFRH_AFSEL11_2            (0x4UL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x00004000 */
5286 #define GPIO_AFRH_AFSEL11_3            (0x8UL << GPIO_AFRH_AFSEL11_Pos)        /*!< 0x00008000 */
5287 #define GPIO_AFRH_AFSEL12_Pos          (16U)
5288 #define GPIO_AFRH_AFSEL12_Msk          (0xFUL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x000F0000 */
5289 #define GPIO_AFRH_AFSEL12              GPIO_AFRH_AFSEL12_Msk
5290 #define GPIO_AFRH_AFSEL12_0            (0x1UL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x00010000 */
5291 #define GPIO_AFRH_AFSEL12_1            (0x2UL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x00020000 */
5292 #define GPIO_AFRH_AFSEL12_2            (0x4UL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x00040000 */
5293 #define GPIO_AFRH_AFSEL12_3            (0x8UL << GPIO_AFRH_AFSEL12_Pos)        /*!< 0x00080000 */
5294 #define GPIO_AFRH_AFSEL13_Pos          (20U)
5295 #define GPIO_AFRH_AFSEL13_Msk          (0xFUL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00F00000 */
5296 #define GPIO_AFRH_AFSEL13              GPIO_AFRH_AFSEL13_Msk
5297 #define GPIO_AFRH_AFSEL13_0            (0x1UL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00100000 */
5298 #define GPIO_AFRH_AFSEL13_1            (0x2UL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00200000 */
5299 #define GPIO_AFRH_AFSEL13_2            (0x4UL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00400000 */
5300 #define GPIO_AFRH_AFSEL13_3            (0x8UL << GPIO_AFRH_AFSEL13_Pos)        /*!< 0x00800000 */
5301 #define GPIO_AFRH_AFSEL14_Pos          (24U)
5302 #define GPIO_AFRH_AFSEL14_Msk          (0xFUL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x0F000000 */
5303 #define GPIO_AFRH_AFSEL14              GPIO_AFRH_AFSEL14_Msk
5304 #define GPIO_AFRH_AFSEL14_0            (0x1UL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x01000000 */
5305 #define GPIO_AFRH_AFSEL14_1            (0x2UL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x02000000 */
5306 #define GPIO_AFRH_AFSEL14_2            (0x4UL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x04000000 */
5307 #define GPIO_AFRH_AFSEL14_3            (0x8UL << GPIO_AFRH_AFSEL14_Pos)        /*!< 0x08000000 */
5308 #define GPIO_AFRH_AFSEL15_Pos          (28U)
5309 #define GPIO_AFRH_AFSEL15_Msk          (0xFUL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0xF0000000 */
5310 #define GPIO_AFRH_AFSEL15              GPIO_AFRH_AFSEL15_Msk
5311 #define GPIO_AFRH_AFSEL15_0            (0x1UL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0x10000000 */
5312 #define GPIO_AFRH_AFSEL15_1            (0x2UL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0x20000000 */
5313 #define GPIO_AFRH_AFSEL15_2            (0x4UL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0x40000000 */
5314 #define GPIO_AFRH_AFSEL15_3            (0x8UL << GPIO_AFRH_AFSEL15_Pos)        /*!< 0x80000000 */
5315 
5316 /******************  Bits definition for GPIO_BRR register  ******************/
5317 #define GPIO_BRR_BR0_Pos               (0U)
5318 #define GPIO_BRR_BR0_Msk               (0x1UL << GPIO_BRR_BR0_Pos)             /*!< 0x00000001 */
5319 #define GPIO_BRR_BR0                   GPIO_BRR_BR0_Msk
5320 #define GPIO_BRR_BR1_Pos               (1U)
5321 #define GPIO_BRR_BR1_Msk               (0x1UL << GPIO_BRR_BR1_Pos)             /*!< 0x00000002 */
5322 #define GPIO_BRR_BR1                   GPIO_BRR_BR1_Msk
5323 #define GPIO_BRR_BR2_Pos               (2U)
5324 #define GPIO_BRR_BR2_Msk               (0x1UL << GPIO_BRR_BR2_Pos)             /*!< 0x00000004 */
5325 #define GPIO_BRR_BR2                   GPIO_BRR_BR2_Msk
5326 #define GPIO_BRR_BR3_Pos               (3U)
5327 #define GPIO_BRR_BR3_Msk               (0x1UL << GPIO_BRR_BR3_Pos)             /*!< 0x00000008 */
5328 #define GPIO_BRR_BR3                   GPIO_BRR_BR3_Msk
5329 #define GPIO_BRR_BR4_Pos               (4U)
5330 #define GPIO_BRR_BR4_Msk               (0x1UL << GPIO_BRR_BR4_Pos)             /*!< 0x00000010 */
5331 #define GPIO_BRR_BR4                   GPIO_BRR_BR4_Msk
5332 #define GPIO_BRR_BR5_Pos               (5U)
5333 #define GPIO_BRR_BR5_Msk               (0x1UL << GPIO_BRR_BR5_Pos)             /*!< 0x00000020 */
5334 #define GPIO_BRR_BR5                   GPIO_BRR_BR5_Msk
5335 #define GPIO_BRR_BR6_Pos               (6U)
5336 #define GPIO_BRR_BR6_Msk               (0x1UL << GPIO_BRR_BR6_Pos)             /*!< 0x00000040 */
5337 #define GPIO_BRR_BR6                   GPIO_BRR_BR6_Msk
5338 #define GPIO_BRR_BR7_Pos               (7U)
5339 #define GPIO_BRR_BR7_Msk               (0x1UL << GPIO_BRR_BR7_Pos)             /*!< 0x00000080 */
5340 #define GPIO_BRR_BR7                   GPIO_BRR_BR7_Msk
5341 #define GPIO_BRR_BR8_Pos               (8U)
5342 #define GPIO_BRR_BR8_Msk               (0x1UL << GPIO_BRR_BR8_Pos)             /*!< 0x00000100 */
5343 #define GPIO_BRR_BR8                   GPIO_BRR_BR8_Msk
5344 #define GPIO_BRR_BR9_Pos               (9U)
5345 #define GPIO_BRR_BR9_Msk               (0x1UL << GPIO_BRR_BR9_Pos)             /*!< 0x00000200 */
5346 #define GPIO_BRR_BR9                   GPIO_BRR_BR9_Msk
5347 #define GPIO_BRR_BR10_Pos              (10U)
5348 #define GPIO_BRR_BR10_Msk              (0x1UL << GPIO_BRR_BR10_Pos)            /*!< 0x00000400 */
5349 #define GPIO_BRR_BR10                  GPIO_BRR_BR10_Msk
5350 #define GPIO_BRR_BR11_Pos              (11U)
5351 #define GPIO_BRR_BR11_Msk              (0x1UL << GPIO_BRR_BR11_Pos)            /*!< 0x00000800 */
5352 #define GPIO_BRR_BR11                  GPIO_BRR_BR11_Msk
5353 #define GPIO_BRR_BR12_Pos              (12U)
5354 #define GPIO_BRR_BR12_Msk              (0x1UL << GPIO_BRR_BR12_Pos)            /*!< 0x00001000 */
5355 #define GPIO_BRR_BR12                  GPIO_BRR_BR12_Msk
5356 #define GPIO_BRR_BR13_Pos              (13U)
5357 #define GPIO_BRR_BR13_Msk              (0x1UL << GPIO_BRR_BR13_Pos)            /*!< 0x00002000 */
5358 #define GPIO_BRR_BR13                  GPIO_BRR_BR13_Msk
5359 #define GPIO_BRR_BR14_Pos              (14U)
5360 #define GPIO_BRR_BR14_Msk              (0x1UL << GPIO_BRR_BR14_Pos)            /*!< 0x00004000 */
5361 #define GPIO_BRR_BR14                  GPIO_BRR_BR14_Msk
5362 #define GPIO_BRR_BR15_Pos              (15U)
5363 #define GPIO_BRR_BR15_Msk              (0x1UL << GPIO_BRR_BR15_Pos)            /*!< 0x00008000 */
5364 #define GPIO_BRR_BR15                  GPIO_BRR_BR15_Msk
5365 
5366 /******************************************************************************/
5367 /*                                                                            */
5368 /*                        HSEM HW Semaphore                                   */
5369 /*                                                                            */
5370 /******************************************************************************/
5371 /********************  Bit definition for HSEM_R register  ********************/
5372 #define HSEM_R_PROCID_Pos        (0U)
5373 #define HSEM_R_PROCID_Msk        (0xFFUL << HSEM_R_PROCID_Pos)                 /*!< 0x000000FF */
5374 #define HSEM_R_PROCID            HSEM_R_PROCID_Msk                             /*!<Semaphore ProcessID */
5375 #define HSEM_R_COREID_Pos        (8U)
5376 #define HSEM_R_COREID_Msk        (0xFUL << HSEM_R_COREID_Pos)                  /*!< 0x00000F00 */
5377 #define HSEM_R_COREID            HSEM_R_COREID_Msk                             /*!<Semaphore CoreID. */
5378 #define HSEM_R_LOCK_Pos          (31U)
5379 #define HSEM_R_LOCK_Msk          (0x1UL << HSEM_R_LOCK_Pos)                    /*!< 0x80000000 */
5380 #define HSEM_R_LOCK              HSEM_R_LOCK_Msk                               /*!<Lock indication. */
5381 
5382 /********************  Bit definition for HSEM_RLR register  ******************/
5383 #define HSEM_RLR_PROCID_Pos      (0U)
5384 #define HSEM_RLR_PROCID_Msk      (0xFFUL << HSEM_RLR_PROCID_Pos)               /*!< 0x000000FF */
5385 #define HSEM_RLR_PROCID          HSEM_RLR_PROCID_Msk                           /*!<Semaphore ProcessID */
5386 #define HSEM_RLR_COREID_Pos      (8U)
5387 #define HSEM_RLR_COREID_Msk      (0xFUL << HSEM_RLR_COREID_Pos)                /*!< 0x00000F00 */
5388 #define HSEM_RLR_COREID          HSEM_RLR_COREID_Msk                           /*!<Semaphore CoreID. */
5389 #define HSEM_RLR_LOCK_Pos        (31U)
5390 #define HSEM_RLR_LOCK_Msk        (0x1UL << HSEM_RLR_LOCK_Pos)                  /*!< 0x80000000 */
5391 #define HSEM_RLR_LOCK            HSEM_RLR_LOCK_Msk                             /*!<Lock indication. */
5392 
5393 /********************  Bit definition for HSEM_C1IER register  ****************/
5394 #define HSEM_C1IER_ISE0_Pos      (0U)
5395 #define HSEM_C1IER_ISE0_Msk      (0x1UL << HSEM_C1IER_ISE0_Pos)                /*!< 0x00000001 */
5396 #define HSEM_C1IER_ISE0          HSEM_C1IER_ISE0_Msk                           /*!<semaphore 0 CPU1 interrupt enable bit.  */
5397 #define HSEM_C1IER_ISE1_Pos      (1U)
5398 #define HSEM_C1IER_ISE1_Msk      (0x1UL << HSEM_C1IER_ISE1_Pos)                /*!< 0x00000002 */
5399 #define HSEM_C1IER_ISE1          HSEM_C1IER_ISE1_Msk                           /*!<semaphore 1 CPU1 interrupt enable bit.  */
5400 #define HSEM_C1IER_ISE2_Pos      (2U)
5401 #define HSEM_C1IER_ISE2_Msk      (0x1UL << HSEM_C1IER_ISE2_Pos)                /*!< 0x00000004 */
5402 #define HSEM_C1IER_ISE2          HSEM_C1IER_ISE2_Msk                           /*!<semaphore 2 CPU1 interrupt enable bit.  */
5403 #define HSEM_C1IER_ISE3_Pos      (3U)
5404 #define HSEM_C1IER_ISE3_Msk      (0x1UL << HSEM_C1IER_ISE3_Pos)                /*!< 0x00000008 */
5405 #define HSEM_C1IER_ISE3          HSEM_C1IER_ISE3_Msk                           /*!<semaphore 3 CPU1 interrupt enable bit.  */
5406 #define HSEM_C1IER_ISE4_Pos      (4U)
5407 #define HSEM_C1IER_ISE4_Msk      (0x1UL << HSEM_C1IER_ISE4_Pos)                /*!< 0x00000010 */
5408 #define HSEM_C1IER_ISE4          HSEM_C1IER_ISE4_Msk                           /*!<semaphore 4 CPU1 interrupt enable bit.  */
5409 #define HSEM_C1IER_ISE5_Pos      (5U)
5410 #define HSEM_C1IER_ISE5_Msk      (0x1UL << HSEM_C1IER_ISE5_Pos)                /*!< 0x00000020 */
5411 #define HSEM_C1IER_ISE5          HSEM_C1IER_ISE5_Msk                           /*!<semaphore 5 CPU1 interrupt enable bit.  */
5412 #define HSEM_C1IER_ISE6_Pos      (6U)
5413 #define HSEM_C1IER_ISE6_Msk      (0x1UL << HSEM_C1IER_ISE6_Pos)                /*!< 0x00000040 */
5414 #define HSEM_C1IER_ISE6          HSEM_C1IER_ISE6_Msk                           /*!<semaphore 6 CPU1 interrupt enable bit.  */
5415 #define HSEM_C1IER_ISE7_Pos      (7U)
5416 #define HSEM_C1IER_ISE7_Msk      (0x1UL << HSEM_C1IER_ISE7_Pos)                /*!< 0x00000080 */
5417 #define HSEM_C1IER_ISE7          HSEM_C1IER_ISE7_Msk                           /*!<semaphore 7 CPU1 interrupt enable bit.  */
5418 #define HSEM_C1IER_ISE8_Pos      (8U)
5419 #define HSEM_C1IER_ISE8_Msk      (0x1UL << HSEM_C1IER_ISE8_Pos)                /*!< 0x00000100 */
5420 #define HSEM_C1IER_ISE8          HSEM_C1IER_ISE8_Msk                           /*!<semaphore 8 CPU1 interrupt enable bit.  */
5421 #define HSEM_C1IER_ISE9_Pos      (9U)
5422 #define HSEM_C1IER_ISE9_Msk      (0x1UL << HSEM_C1IER_ISE9_Pos)                /*!< 0x00000200 */
5423 #define HSEM_C1IER_ISE9          HSEM_C1IER_ISE9_Msk                           /*!<semaphore 9 CPU1 interrupt enable bit.  */
5424 #define HSEM_C1IER_ISE10_Pos     (10U)
5425 #define HSEM_C1IER_ISE10_Msk     (0x1UL << HSEM_C1IER_ISE10_Pos)               /*!< 0x00000400 */
5426 #define HSEM_C1IER_ISE10         HSEM_C1IER_ISE10_Msk                          /*!<semaphore 10 CPU1 interrupt enable bit. */
5427 #define HSEM_C1IER_ISE11_Pos     (11U)
5428 #define HSEM_C1IER_ISE11_Msk     (0x1UL << HSEM_C1IER_ISE11_Pos)               /*!< 0x00000800 */
5429 #define HSEM_C1IER_ISE11         HSEM_C1IER_ISE11_Msk                          /*!<semaphore 11 CPU1 interrupt enable bit. */
5430 #define HSEM_C1IER_ISE12_Pos     (12U)
5431 #define HSEM_C1IER_ISE12_Msk     (0x1UL << HSEM_C1IER_ISE12_Pos)               /*!< 0x00001000 */
5432 #define HSEM_C1IER_ISE12         HSEM_C1IER_ISE12_Msk                          /*!<semaphore 12 CPU1 interrupt enable bit. */
5433 #define HSEM_C1IER_ISE13_Pos     (13U)
5434 #define HSEM_C1IER_ISE13_Msk     (0x1UL << HSEM_C1IER_ISE13_Pos)               /*!< 0x00002000 */
5435 #define HSEM_C1IER_ISE13         HSEM_C1IER_ISE13_Msk                          /*!<semaphore 13 CPU1 interrupt enable bit. */
5436 #define HSEM_C1IER_ISE14_Pos     (14U)
5437 #define HSEM_C1IER_ISE14_Msk     (0x1UL << HSEM_C1IER_ISE14_Pos)               /*!< 0x00004000 */
5438 #define HSEM_C1IER_ISE14         HSEM_C1IER_ISE14_Msk                          /*!<semaphore 14 CPU1 interrupt enable bit. */
5439 #define HSEM_C1IER_ISE15_Pos     (15U)
5440 #define HSEM_C1IER_ISE15_Msk     (0x1UL << HSEM_C1IER_ISE15_Pos)               /*!< 0x00008000 */
5441 #define HSEM_C1IER_ISE15         HSEM_C1IER_ISE15_Msk                          /*!<semaphore 15 CPU1 interrupt enable bit. */
5442 
5443 /********************  Bit definition for HSEM_C1ICR register  *****************/
5444 #define HSEM_C1ICR_ISC0_Pos      (0U)
5445 #define HSEM_C1ICR_ISC0_Msk      (0x1UL << HSEM_C1ICR_ISC0_Pos)                /*!< 0x00000001 */
5446 #define HSEM_C1ICR_ISC0          HSEM_C1ICR_ISC0_Msk                           /*!<semaphore 0 CPU1 interrupt clear bit.  */
5447 #define HSEM_C1ICR_ISC1_Pos      (1U)
5448 #define HSEM_C1ICR_ISC1_Msk      (0x1UL << HSEM_C1ICR_ISC1_Pos)                /*!< 0x00000002 */
5449 #define HSEM_C1ICR_ISC1          HSEM_C1ICR_ISC1_Msk                           /*!<semaphore 1 CPU1 interrupt clear bit.  */
5450 #define HSEM_C1ICR_ISC2_Pos      (2U)
5451 #define HSEM_C1ICR_ISC2_Msk      (0x1UL << HSEM_C1ICR_ISC2_Pos)                /*!< 0x00000004 */
5452 #define HSEM_C1ICR_ISC2          HSEM_C1ICR_ISC2_Msk                           /*!<semaphore 2 CPU1 interrupt clear bit.  */
5453 #define HSEM_C1ICR_ISC3_Pos      (3U)
5454 #define HSEM_C1ICR_ISC3_Msk      (0x1UL << HSEM_C1ICR_ISC3_Pos)                /*!< 0x00000008 */
5455 #define HSEM_C1ICR_ISC3          HSEM_C1ICR_ISC3_Msk                           /*!<semaphore 3 CPU1 interrupt clear bit.  */
5456 #define HSEM_C1ICR_ISC4_Pos      (4U)
5457 #define HSEM_C1ICR_ISC4_Msk      (0x1UL << HSEM_C1ICR_ISC4_Pos)                /*!< 0x00000010 */
5458 #define HSEM_C1ICR_ISC4          HSEM_C1ICR_ISC4_Msk                           /*!<semaphore 4 CPU1 interrupt clear bit.  */
5459 #define HSEM_C1ICR_ISC5_Pos      (5U)
5460 #define HSEM_C1ICR_ISC5_Msk      (0x1UL << HSEM_C1ICR_ISC5_Pos)                /*!< 0x00000020 */
5461 #define HSEM_C1ICR_ISC5          HSEM_C1ICR_ISC5_Msk                           /*!<semaphore 5 CPU1 interrupt clear bit.  */
5462 #define HSEM_C1ICR_ISC6_Pos      (6U)
5463 #define HSEM_C1ICR_ISC6_Msk      (0x1UL << HSEM_C1ICR_ISC6_Pos)                /*!< 0x00000040 */
5464 #define HSEM_C1ICR_ISC6          HSEM_C1ICR_ISC6_Msk                           /*!<semaphore 6 CPU1 interrupt clear bit.  */
5465 #define HSEM_C1ICR_ISC7_Pos      (7U)
5466 #define HSEM_C1ICR_ISC7_Msk      (0x1UL << HSEM_C1ICR_ISC7_Pos)                /*!< 0x00000080 */
5467 #define HSEM_C1ICR_ISC7          HSEM_C1ICR_ISC7_Msk                           /*!<semaphore 7 CPU1 interrupt clear bit.  */
5468 #define HSEM_C1ICR_ISC8_Pos      (8U)
5469 #define HSEM_C1ICR_ISC8_Msk      (0x1UL << HSEM_C1ICR_ISC8_Pos)                /*!< 0x00000100 */
5470 #define HSEM_C1ICR_ISC8          HSEM_C1ICR_ISC8_Msk                           /*!<semaphore 8 CPU1 interrupt clear bit.  */
5471 #define HSEM_C1ICR_ISC9_Pos      (9U)
5472 #define HSEM_C1ICR_ISC9_Msk      (0x1UL << HSEM_C1ICR_ISC9_Pos)                /*!< 0x00000200 */
5473 #define HSEM_C1ICR_ISC9          HSEM_C1ICR_ISC9_Msk                           /*!<semaphore 9 CPU1 interrupt clear bit.  */
5474 #define HSEM_C1ICR_ISC10_Pos     (10U)
5475 #define HSEM_C1ICR_ISC10_Msk     (0x1UL << HSEM_C1ICR_ISC10_Pos)               /*!< 0x00000400 */
5476 #define HSEM_C1ICR_ISC10         HSEM_C1ICR_ISC10_Msk                          /*!<semaphore 10 CPU1 interrupt clear bit. */
5477 #define HSEM_C1ICR_ISC11_Pos     (11U)
5478 #define HSEM_C1ICR_ISC11_Msk     (0x1UL << HSEM_C1ICR_ISC11_Pos)               /*!< 0x00000800 */
5479 #define HSEM_C1ICR_ISC11         HSEM_C1ICR_ISC11_Msk                          /*!<semaphore 11 CPU1 interrupt clear bit. */
5480 #define HSEM_C1ICR_ISC12_Pos     (12U)
5481 #define HSEM_C1ICR_ISC12_Msk     (0x1UL << HSEM_C1ICR_ISC12_Pos)               /*!< 0x00001000 */
5482 #define HSEM_C1ICR_ISC12         HSEM_C1ICR_ISC12_Msk                          /*!<semaphore 12 CPU1 interrupt clear bit. */
5483 #define HSEM_C1ICR_ISC13_Pos     (13U)
5484 #define HSEM_C1ICR_ISC13_Msk     (0x1UL << HSEM_C1ICR_ISC13_Pos)               /*!< 0x00002000 */
5485 #define HSEM_C1ICR_ISC13         HSEM_C1ICR_ISC13_Msk                          /*!<semaphore 13 CPU1 interrupt clear bit. */
5486 #define HSEM_C1ICR_ISC14_Pos     (14U)
5487 #define HSEM_C1ICR_ISC14_Msk     (0x1UL << HSEM_C1ICR_ISC14_Pos)               /*!< 0x00004000 */
5488 #define HSEM_C1ICR_ISC14         HSEM_C1ICR_ISC14_Msk                          /*!<semaphore 14 CPU1 interrupt clear bit. */
5489 #define HSEM_C1ICR_ISC15_Pos     (15U)
5490 #define HSEM_C1ICR_ISC15_Msk     (0x1UL << HSEM_C1ICR_ISC15_Pos)               /*!< 0x00008000 */
5491 #define HSEM_C1ICR_ISC15         HSEM_C1ICR_ISC15_Msk                          /*!<semaphore 15 CPU1 interrupt clear bit. */
5492 
5493 /********************  Bit definition for HSEM_C1ISR register  *****************/
5494 #define HSEM_C1ISR_ISF0_Pos      (0U)
5495 #define HSEM_C1ISR_ISF0_Msk      (0x1UL << HSEM_C1ISR_ISF0_Pos)                /*!< 0x00000001 */
5496 #define HSEM_C1ISR_ISF0          HSEM_C1ISR_ISF0_Msk                           /*!<semaphore 0 CPU1 interrupt status bit.  */
5497 #define HSEM_C1ISR_ISF1_Pos      (1U)
5498 #define HSEM_C1ISR_ISF1_Msk      (0x1UL << HSEM_C1ISR_ISF1_Pos)                /*!< 0x00000002 */
5499 #define HSEM_C1ISR_ISF1          HSEM_C1ISR_ISF1_Msk                           /*!<semaphore 1 CPU1 interrupt status bit.  */
5500 #define HSEM_C1ISR_ISF2_Pos      (2U)
5501 #define HSEM_C1ISR_ISF2_Msk      (0x1UL << HSEM_C1ISR_ISF2_Pos)                /*!< 0x00000004 */
5502 #define HSEM_C1ISR_ISF2          HSEM_C1ISR_ISF2_Msk                           /*!<semaphore 2 CPU1 interrupt status bit.  */
5503 #define HSEM_C1ISR_ISF3_Pos      (3U)
5504 #define HSEM_C1ISR_ISF3_Msk      (0x1UL << HSEM_C1ISR_ISF3_Pos)                /*!< 0x00000008 */
5505 #define HSEM_C1ISR_ISF3          HSEM_C1ISR_ISF3_Msk                           /*!<semaphore 3 CPU1 interrupt status bit.  */
5506 #define HSEM_C1ISR_ISF4_Pos      (4U)
5507 #define HSEM_C1ISR_ISF4_Msk      (0x1UL << HSEM_C1ISR_ISF4_Pos)                /*!< 0x00000010 */
5508 #define HSEM_C1ISR_ISF4          HSEM_C1ISR_ISF4_Msk                           /*!<semaphore 4 CPU1 interrupt status bit.  */
5509 #define HSEM_C1ISR_ISF5_Pos      (5U)
5510 #define HSEM_C1ISR_ISF5_Msk      (0x1UL << HSEM_C1ISR_ISF5_Pos)                /*!< 0x00000020 */
5511 #define HSEM_C1ISR_ISF5          HSEM_C1ISR_ISF5_Msk                           /*!<semaphore 5 CPU1 interrupt status bit.  */
5512 #define HSEM_C1ISR_ISF6_Pos      (6U)
5513 #define HSEM_C1ISR_ISF6_Msk      (0x1UL << HSEM_C1ISR_ISF6_Pos)                /*!< 0x00000040 */
5514 #define HSEM_C1ISR_ISF6          HSEM_C1ISR_ISF6_Msk                           /*!<semaphore 6 CPU1 interrupt status bit.  */
5515 #define HSEM_C1ISR_ISF7_Pos      (7U)
5516 #define HSEM_C1ISR_ISF7_Msk      (0x1UL << HSEM_C1ISR_ISF7_Pos)                /*!< 0x00000080 */
5517 #define HSEM_C1ISR_ISF7          HSEM_C1ISR_ISF7_Msk                           /*!<semaphore 7 CPU1 interrupt status bit.  */
5518 #define HSEM_C1ISR_ISF8_Pos      (8U)
5519 #define HSEM_C1ISR_ISF8_Msk      (0x1UL << HSEM_C1ISR_ISF8_Pos)                /*!< 0x00000100 */
5520 #define HSEM_C1ISR_ISF8          HSEM_C1ISR_ISF8_Msk                           /*!<semaphore 8 CPU1 interrupt status bit.  */
5521 #define HSEM_C1ISR_ISF9_Pos      (9U)
5522 #define HSEM_C1ISR_ISF9_Msk      (0x1UL << HSEM_C1ISR_ISF9_Pos)                /*!< 0x00000200 */
5523 #define HSEM_C1ISR_ISF9          HSEM_C1ISR_ISF9_Msk                           /*!<semaphore 9 CPU1 interrupt status bit.  */
5524 #define HSEM_C1ISR_ISF10_Pos     (10U)
5525 #define HSEM_C1ISR_ISF10_Msk     (0x1UL << HSEM_C1ISR_ISF10_Pos)               /*!< 0x00000400 */
5526 #define HSEM_C1ISR_ISF10         HSEM_C1ISR_ISF10_Msk                          /*!<semaphore 10 CPU1 interrupt status bit. */
5527 #define HSEM_C1ISR_ISF11_Pos     (11U)
5528 #define HSEM_C1ISR_ISF11_Msk     (0x1UL << HSEM_C1ISR_ISF11_Pos)               /*!< 0x00000800 */
5529 #define HSEM_C1ISR_ISF11         HSEM_C1ISR_ISF11_Msk                          /*!<semaphore 11 CPU1 interrupt status bit. */
5530 #define HSEM_C1ISR_ISF12_Pos     (12U)
5531 #define HSEM_C1ISR_ISF12_Msk     (0x1UL << HSEM_C1ISR_ISF12_Pos)               /*!< 0x00001000 */
5532 #define HSEM_C1ISR_ISF12         HSEM_C1ISR_ISF12_Msk                          /*!<semaphore 12 CPU1 interrupt status bit. */
5533 #define HSEM_C1ISR_ISF13_Pos     (13U)
5534 #define HSEM_C1ISR_ISF13_Msk     (0x1UL << HSEM_C1ISR_ISF13_Pos)               /*!< 0x00002000 */
5535 #define HSEM_C1ISR_ISF13         HSEM_C1ISR_ISF13_Msk                          /*!<semaphore 13 CPU1 interrupt status bit. */
5536 #define HSEM_C1ISR_ISF14_Pos     (14U)
5537 #define HSEM_C1ISR_ISF14_Msk     (0x1UL << HSEM_C1ISR_ISF14_Pos)               /*!< 0x00004000 */
5538 #define HSEM_C1ISR_ISF14         HSEM_C1ISR_ISF14_Msk                          /*!<semaphore 14 CPU1 interrupt status bit. */
5539 #define HSEM_C1ISR_ISF15_Pos     (15U)
5540 #define HSEM_C1ISR_ISF15_Msk     (0x1UL << HSEM_C1ISR_ISF15_Pos)               /*!< 0x00008000 */
5541 #define HSEM_C1ISR_ISF15         HSEM_C1ISR_ISF15_Msk                          /*!<semaphore 15 CPU1 interrupt status bit. */
5542 
5543 /********************  Bit definition for HSEM_C1MISR register  *****************/
5544 #define HSEM_C1MISR_MISF0_Pos     (0U)
5545 #define HSEM_C1MISR_MISF0_Msk     (0x1UL << HSEM_C1MISR_MISF0_Pos)               /*!< 0x00000001 */
5546 #define HSEM_C1MISR_MISF0         HSEM_C1MISR_MISF0_Msk                          /*!<semaphore 0 CPU1 interrupt masked status bit.  */
5547 #define HSEM_C1MISR_MISF1_Pos     (1U)
5548 #define HSEM_C1MISR_MISF1_Msk     (0x1UL << HSEM_C1MISR_MISF1_Pos)               /*!< 0x00000002 */
5549 #define HSEM_C1MISR_MISF1         HSEM_C1MISR_MISF1_Msk                          /*!<semaphore 1 CPU1 interrupt masked status bit.  */
5550 #define HSEM_C1MISR_MISF2_Pos     (2U)
5551 #define HSEM_C1MISR_MISF2_Msk     (0x1UL << HSEM_C1MISR_MISF2_Pos)               /*!< 0x00000004 */
5552 #define HSEM_C1MISR_MISF2         HSEM_C1MISR_MISF2_Msk                          /*!<semaphore 2 CPU1 interrupt masked status bit.  */
5553 #define HSEM_C1MISR_MISF3_Pos     (3U)
5554 #define HSEM_C1MISR_MISF3_Msk     (0x1UL << HSEM_C1MISR_MISF3_Pos)               /*!< 0x00000008 */
5555 #define HSEM_C1MISR_MISF3         HSEM_C1MISR_MISF3_Msk                          /*!<semaphore 3 CPU1 interrupt masked status bit.  */
5556 #define HSEM_C1MISR_MISF4_Pos     (4U)
5557 #define HSEM_C1MISR_MISF4_Msk     (0x1UL << HSEM_C1MISR_MISF4_Pos)               /*!< 0x00000010 */
5558 #define HSEM_C1MISR_MISF4         HSEM_C1MISR_MISF4_Msk                          /*!<semaphore 4 CPU1 interrupt masked status bit.  */
5559 #define HSEM_C1MISR_MISF5_Pos     (5U)
5560 #define HSEM_C1MISR_MISF5_Msk     (0x1UL << HSEM_C1MISR_MISF5_Pos)               /*!< 0x00000020 */
5561 #define HSEM_C1MISR_MISF5         HSEM_C1MISR_MISF5_Msk                          /*!<semaphore 5 CPU1 interrupt masked status bit.  */
5562 #define HSEM_C1MISR_MISF6_Pos     (6U)
5563 #define HSEM_C1MISR_MISF6_Msk     (0x1UL << HSEM_C1MISR_MISF6_Pos)               /*!< 0x00000040 */
5564 #define HSEM_C1MISR_MISF6         HSEM_C1MISR_MISF6_Msk                          /*!<semaphore 6 CPU1 interrupt masked status bit.  */
5565 #define HSEM_C1MISR_MISF7_Pos     (7U)
5566 #define HSEM_C1MISR_MISF7_Msk     (0x1UL << HSEM_C1MISR_MISF7_Pos)               /*!< 0x00000080 */
5567 #define HSEM_C1MISR_MISF7         HSEM_C1MISR_MISF7_Msk                          /*!<semaphore 7 CPU1 interrupt masked status bit.  */
5568 #define HSEM_C1MISR_MISF8_Pos     (8U)
5569 #define HSEM_C1MISR_MISF8_Msk     (0x1UL << HSEM_C1MISR_MISF8_Pos)               /*!< 0x00000100 */
5570 #define HSEM_C1MISR_MISF8         HSEM_C1MISR_MISF8_Msk                          /*!<semaphore 8 CPU1 interrupt masked status bit.  */
5571 #define HSEM_C1MISR_MISF9_Pos     (9U)
5572 #define HSEM_C1MISR_MISF9_Msk     (0x1UL << HSEM_C1MISR_MISF9_Pos)               /*!< 0x00000200 */
5573 #define HSEM_C1MISR_MISF9         HSEM_C1MISR_MISF9_Msk                          /*!<semaphore 9 CPU1 interrupt masked status bit.  */
5574 #define HSEM_C1MISR_MISF10_Pos    (10U)
5575 #define HSEM_C1MISR_MISF10_Msk    (0x1UL << HSEM_C1MISR_MISF10_Pos)              /*!< 0x00000400 */
5576 #define HSEM_C1MISR_MISF10        HSEM_C1MISR_MISF10_Msk                         /*!<semaphore 10 CPU1 interrupt masked status bit. */
5577 #define HSEM_C1MISR_MISF11_Pos    (11U)
5578 #define HSEM_C1MISR_MISF11_Msk    (0x1UL << HSEM_C1MISR_MISF11_Pos)              /*!< 0x00000800 */
5579 #define HSEM_C1MISR_MISF11        HSEM_C1MISR_MISF11_Msk                         /*!<semaphore 11 CPU1 interrupt masked status bit. */
5580 #define HSEM_C1MISR_MISF12_Pos    (12U)
5581 #define HSEM_C1MISR_MISF12_Msk    (0x1UL << HSEM_C1MISR_MISF12_Pos)              /*!< 0x00001000 */
5582 #define HSEM_C1MISR_MISF12        HSEM_C1MISR_MISF12_Msk                         /*!<semaphore 12 CPU1 interrupt masked status bit. */
5583 #define HSEM_C1MISR_MISF13_Pos    (13U)
5584 #define HSEM_C1MISR_MISF13_Msk    (0x1UL << HSEM_C1MISR_MISF13_Pos)              /*!< 0x00002000 */
5585 #define HSEM_C1MISR_MISF13        HSEM_C1MISR_MISF13_Msk                         /*!<semaphore 13 CPU1 interrupt masked status bit. */
5586 #define HSEM_C1MISR_MISF14_Pos    (14U)
5587 #define HSEM_C1MISR_MISF14_Msk    (0x1UL << HSEM_C1MISR_MISF14_Pos)              /*!< 0x00004000 */
5588 #define HSEM_C1MISR_MISF14        HSEM_C1MISR_MISF14_Msk                         /*!<semaphore 14 CPU1 interrupt masked status bit. */
5589 #define HSEM_C1MISR_MISF15_Pos    (15U)
5590 #define HSEM_C1MISR_MISF15_Msk    (0x1UL << HSEM_C1MISR_MISF15_Pos)              /*!< 0x00008000 */
5591 #define HSEM_C1MISR_MISF15        HSEM_C1MISR_MISF15_Msk                         /*!<semaphore 15 CPU1 interrupt masked status bit. */
5592 
5593 /********************  Bit definition for HSEM_C2IER register  *****************/
5594 #define HSEM_C2IER_ISE0_Pos      (0U)
5595 #define HSEM_C2IER_ISE0_Msk      (0x1UL << HSEM_C2IER_ISE0_Pos)                /*!< 0x00000001 */
5596 #define HSEM_C2IER_ISE0          HSEM_C2IER_ISE0_Msk                           /*!<semaphore 0 CPU2 interrupt enable bit.  */
5597 #define HSEM_C2IER_ISE1_Pos      (1U)
5598 #define HSEM_C2IER_ISE1_Msk      (0x1UL << HSEM_C2IER_ISE1_Pos)                /*!< 0x00000002 */
5599 #define HSEM_C2IER_ISE1          HSEM_C2IER_ISE1_Msk                           /*!<semaphore 1 CPU2 interrupt enable bit.  */
5600 #define HSEM_C2IER_ISE2_Pos      (2U)
5601 #define HSEM_C2IER_ISE2_Msk      (0x1UL << HSEM_C2IER_ISE2_Pos)                /*!< 0x00000004 */
5602 #define HSEM_C2IER_ISE2          HSEM_C2IER_ISE2_Msk                           /*!<semaphore 2 CPU2 interrupt enable bit.  */
5603 #define HSEM_C2IER_ISE3_Pos      (3U)
5604 #define HSEM_C2IER_ISE3_Msk      (0x1UL << HSEM_C2IER_ISE3_Pos)                /*!< 0x00000008 */
5605 #define HSEM_C2IER_ISE3          HSEM_C2IER_ISE3_Msk                           /*!<semaphore 3 CPU2 interrupt enable bit.  */
5606 #define HSEM_C2IER_ISE4_Pos      (4U)
5607 #define HSEM_C2IER_ISE4_Msk      (0x1UL << HSEM_C2IER_ISE4_Pos)                /*!< 0x00000010 */
5608 #define HSEM_C2IER_ISE4          HSEM_C2IER_ISE4_Msk                           /*!<semaphore 4 CPU2 interrupt enable bit.  */
5609 #define HSEM_C2IER_ISE5_Pos      (5U)
5610 #define HSEM_C2IER_ISE5_Msk      (0x1UL << HSEM_C2IER_ISE5_Pos)                /*!< 0x00000020 */
5611 #define HSEM_C2IER_ISE5          HSEM_C2IER_ISE5_Msk                           /*!<semaphore 5 CPU2 interrupt enable bit.  */
5612 #define HSEM_C2IER_ISE6_Pos      (6U)
5613 #define HSEM_C2IER_ISE6_Msk      (0x1UL << HSEM_C2IER_ISE6_Pos)                /*!< 0x00000040 */
5614 #define HSEM_C2IER_ISE6          HSEM_C2IER_ISE6_Msk                           /*!<semaphore 6 CPU2 interrupt enable bit.  */
5615 #define HSEM_C2IER_ISE7_Pos      (7U)
5616 #define HSEM_C2IER_ISE7_Msk      (0x1UL << HSEM_C2IER_ISE7_Pos)                /*!< 0x00000080 */
5617 #define HSEM_C2IER_ISE7          HSEM_C2IER_ISE7_Msk                           /*!<semaphore 7 CPU2 interrupt enable bit.  */
5618 #define HSEM_C2IER_ISE8_Pos      (8U)
5619 #define HSEM_C2IER_ISE8_Msk      (0x1UL << HSEM_C2IER_ISE8_Pos)                /*!< 0x00000100 */
5620 #define HSEM_C2IER_ISE8          HSEM_C2IER_ISE8_Msk                           /*!<semaphore 8 CPU2 interrupt enable bit.  */
5621 #define HSEM_C2IER_ISE9_Pos      (9U)
5622 #define HSEM_C2IER_ISE9_Msk      (0x1UL << HSEM_C2IER_ISE9_Pos)                /*!< 0x00000200 */
5623 #define HSEM_C2IER_ISE9          HSEM_C2IER_ISE9_Msk                           /*!<semaphore 9 CPU2 interrupt enable bit.  */
5624 #define HSEM_C2IER_ISE10_Pos     (10U)
5625 #define HSEM_C2IER_ISE10_Msk     (0x1UL << HSEM_C2IER_ISE10_Pos)               /*!< 0x00000400 */
5626 #define HSEM_C2IER_ISE10         HSEM_C2IER_ISE10_Msk                          /*!<semaphore 10 CPU2 interrupt enable bit. */
5627 #define HSEM_C2IER_ISE11_Pos     (11U)
5628 #define HSEM_C2IER_ISE11_Msk     (0x1UL << HSEM_C2IER_ISE11_Pos)               /*!< 0x00000800 */
5629 #define HSEM_C2IER_ISE11         HSEM_C2IER_ISE11_Msk                          /*!<semaphore 11 CPU2 interrupt enable bit. */
5630 #define HSEM_C2IER_ISE12_Pos     (12U)
5631 #define HSEM_C2IER_ISE12_Msk     (0x1UL << HSEM_C2IER_ISE12_Pos)               /*!< 0x00001000 */
5632 #define HSEM_C2IER_ISE12         HSEM_C2IER_ISE12_Msk                          /*!<semaphore 12 CPU2 interrupt enable bit. */
5633 #define HSEM_C2IER_ISE13_Pos     (13U)
5634 #define HSEM_C2IER_ISE13_Msk     (0x1UL << HSEM_C2IER_ISE13_Pos)               /*!< 0x00002000 */
5635 #define HSEM_C2IER_ISE13         HSEM_C2IER_ISE13_Msk                          /*!<semaphore 13 CPU2 interrupt enable bit. */
5636 #define HSEM_C2IER_ISE14_Pos     (14U)
5637 #define HSEM_C2IER_ISE14_Msk     (0x1UL << HSEM_C2IER_ISE14_Pos)               /*!< 0x00004000 */
5638 #define HSEM_C2IER_ISE14         HSEM_C2IER_ISE14_Msk                          /*!<semaphore 14 CPU2 interrupt enable bit. */
5639 #define HSEM_C2IER_ISE15_Pos     (15U)
5640 #define HSEM_C2IER_ISE15_Msk     (0x1UL << HSEM_C2IER_ISE15_Pos)               /*!< 0x00008000 */
5641 #define HSEM_C2IER_ISE15         HSEM_C2IER_ISE15_Msk                          /*!<semaphore 15 CPU2 interrupt enable bit. */
5642 
5643 /********************  Bit definition for HSEM_C2ICR register  *****************/
5644 #define HSEM_C2ICR_ISC0_Pos      (0U)
5645 #define HSEM_C2ICR_ISC0_Msk      (0x1UL << HSEM_C2ICR_ISC0_Pos)                /*!< 0x00000001 */
5646 #define HSEM_C2ICR_ISC0          HSEM_C2ICR_ISC0_Msk                           /*!<semaphore 0 CPU2 interrupt clear bit.  */
5647 #define HSEM_C2ICR_ISC1_Pos      (1U)
5648 #define HSEM_C2ICR_ISC1_Msk      (0x1UL << HSEM_C2ICR_ISC1_Pos)                /*!< 0x00000002 */
5649 #define HSEM_C2ICR_ISC1          HSEM_C2ICR_ISC1_Msk                           /*!<semaphore 1 CPU2 interrupt clear bit.  */
5650 #define HSEM_C2ICR_ISC2_Pos      (2U)
5651 #define HSEM_C2ICR_ISC2_Msk      (0x1UL << HSEM_C2ICR_ISC2_Pos)                /*!< 0x00000004 */
5652 #define HSEM_C2ICR_ISC2          HSEM_C2ICR_ISC2_Msk                           /*!<semaphore 2 CPU2 interrupt clear bit.  */
5653 #define HSEM_C2ICR_ISC3_Pos      (3U)
5654 #define HSEM_C2ICR_ISC3_Msk      (0x1UL << HSEM_C2ICR_ISC3_Pos)                /*!< 0x00000008 */
5655 #define HSEM_C2ICR_ISC3          HSEM_C2ICR_ISC3_Msk                           /*!<semaphore 3 CPU2 interrupt clear bit.  */
5656 #define HSEM_C2ICR_ISC4_Pos      (4U)
5657 #define HSEM_C2ICR_ISC4_Msk      (0x1UL << HSEM_C2ICR_ISC4_Pos)                /*!< 0x00000010 */
5658 #define HSEM_C2ICR_ISC4          HSEM_C2ICR_ISC4_Msk                           /*!<semaphore 4 CPU2 interrupt clear bit.  */
5659 #define HSEM_C2ICR_ISC5_Pos      (5U)
5660 #define HSEM_C2ICR_ISC5_Msk      (0x1UL << HSEM_C2ICR_ISC5_Pos)                /*!< 0x00000020 */
5661 #define HSEM_C2ICR_ISC5          HSEM_C2ICR_ISC5_Msk                           /*!<semaphore 5 CPU2 interrupt clear bit.  */
5662 #define HSEM_C2ICR_ISC6_Pos      (6U)
5663 #define HSEM_C2ICR_ISC6_Msk      (0x1UL << HSEM_C2ICR_ISC6_Pos)                /*!< 0x00000040 */
5664 #define HSEM_C2ICR_ISC6          HSEM_C2ICR_ISC6_Msk                           /*!<semaphore 6 CPU2 interrupt clear bit.  */
5665 #define HSEM_C2ICR_ISC7_Pos      (7U)
5666 #define HSEM_C2ICR_ISC7_Msk      (0x1UL << HSEM_C2ICR_ISC7_Pos)                /*!< 0x00000080 */
5667 #define HSEM_C2ICR_ISC7          HSEM_C2ICR_ISC7_Msk                           /*!<semaphore 7 CPU2 interrupt clear bit.  */
5668 #define HSEM_C2ICR_ISC8_Pos      (8U)
5669 #define HSEM_C2ICR_ISC8_Msk      (0x1UL << HSEM_C2ICR_ISC8_Pos)                /*!< 0x00000100 */
5670 #define HSEM_C2ICR_ISC8          HSEM_C2ICR_ISC8_Msk                           /*!<semaphore 8 CPU2 interrupt clear bit.  */
5671 #define HSEM_C2ICR_ISC9_Pos      (9U)
5672 #define HSEM_C2ICR_ISC9_Msk      (0x1UL << HSEM_C2ICR_ISC9_Pos)                /*!< 0x00000200 */
5673 #define HSEM_C2ICR_ISC9          HSEM_C2ICR_ISC9_Msk                           /*!<semaphore 9 CPU2 interrupt clear bit.  */
5674 #define HSEM_C2ICR_ISC10_Pos     (10U)
5675 #define HSEM_C2ICR_ISC10_Msk     (0x1UL << HSEM_C2ICR_ISC10_Pos)               /*!< 0x00000400 */
5676 #define HSEM_C2ICR_ISC10         HSEM_C2ICR_ISC10_Msk                          /*!<semaphore 10 CPU2 interrupt clear bit. */
5677 #define HSEM_C2ICR_ISC11_Pos     (11U)
5678 #define HSEM_C2ICR_ISC11_Msk     (0x1UL << HSEM_C2ICR_ISC11_Pos)               /*!< 0x00000800 */
5679 #define HSEM_C2ICR_ISC11         HSEM_C2ICR_ISC11_Msk                          /*!<semaphore 11 CPU2 interrupt clear bit. */
5680 #define HSEM_C2ICR_ISC12_Pos     (12U)
5681 #define HSEM_C2ICR_ISC12_Msk     (0x1UL << HSEM_C2ICR_ISC12_Pos)               /*!< 0x00001000 */
5682 #define HSEM_C2ICR_ISC12         HSEM_C2ICR_ISC12_Msk                          /*!<semaphore 12 CPU2 interrupt clear bit. */
5683 #define HSEM_C2ICR_ISC13_Pos     (13U)
5684 #define HSEM_C2ICR_ISC13_Msk     (0x1UL << HSEM_C2ICR_ISC13_Pos)               /*!< 0x00002000 */
5685 #define HSEM_C2ICR_ISC13         HSEM_C2ICR_ISC13_Msk                          /*!<semaphore 13 CPU2 interrupt clear bit. */
5686 #define HSEM_C2ICR_ISC14_Pos     (14U)
5687 #define HSEM_C2ICR_ISC14_Msk     (0x1UL << HSEM_C2ICR_ISC14_Pos)               /*!< 0x00004000 */
5688 #define HSEM_C2ICR_ISC14         HSEM_C2ICR_ISC14_Msk                          /*!<semaphore 14 CPU2 interrupt clear bit. */
5689 #define HSEM_C2ICR_ISC15_Pos     (15U)
5690 #define HSEM_C2ICR_ISC15_Msk     (0x1UL << HSEM_C2ICR_ISC15_Pos)               /*!< 0x00008000 */
5691 #define HSEM_C2ICR_ISC15         HSEM_C2ICR_ISC15_Msk                          /*!<semaphore 15 CPU2 interrupt clear bit. */
5692 
5693 /********************  Bit definition for HSEM_C2ISR register  *****************/
5694 #define HSEM_C2ISR_ISF0_Pos      (0U)
5695 #define HSEM_C2ISR_ISF0_Msk      (0x1UL << HSEM_C2ISR_ISF0_Pos)                /*!< 0x00000001 */
5696 #define HSEM_C2ISR_ISF0          HSEM_C2ISR_ISF0_Msk                           /*!<semaphore 0 CPU2 interrupt status bit.  */
5697 #define HSEM_C2ISR_ISF1_Pos      (1U)
5698 #define HSEM_C2ISR_ISF1_Msk      (0x1UL << HSEM_C2ISR_ISF1_Pos)                /*!< 0x00000002 */
5699 #define HSEM_C2ISR_ISF1          HSEM_C2ISR_ISF1_Msk                           /*!<semaphore 1 CPU2 interrupt status bit.  */
5700 #define HSEM_C2ISR_ISF2_Pos      (2U)
5701 #define HSEM_C2ISR_ISF2_Msk      (0x1UL << HSEM_C2ISR_ISF2_Pos)                /*!< 0x00000004 */
5702 #define HSEM_C2ISR_ISF2          HSEM_C2ISR_ISF2_Msk                           /*!<semaphore 2 CPU2 interrupt status bit.  */
5703 #define HSEM_C2ISR_ISF3_Pos      (3U)
5704 #define HSEM_C2ISR_ISF3_Msk      (0x1UL << HSEM_C2ISR_ISF3_Pos)                /*!< 0x00000008 */
5705 #define HSEM_C2ISR_ISF3          HSEM_C2ISR_ISF3_Msk                           /*!<semaphore 3 CPU2 interrupt status bit.  */
5706 #define HSEM_C2ISR_ISF4_Pos      (4U)
5707 #define HSEM_C2ISR_ISF4_Msk      (0x1UL << HSEM_C2ISR_ISF4_Pos)                /*!< 0x00000010 */
5708 #define HSEM_C2ISR_ISF4          HSEM_C2ISR_ISF4_Msk                           /*!<semaphore 4 CPU2 interrupt status bit.  */
5709 #define HSEM_C2ISR_ISF5_Pos      (5U)
5710 #define HSEM_C2ISR_ISF5_Msk      (0x1UL << HSEM_C2ISR_ISF5_Pos)                /*!< 0x00000020 */
5711 #define HSEM_C2ISR_ISF5          HSEM_C2ISR_ISF5_Msk                           /*!<semaphore 5 CPU2 interrupt status bit.  */
5712 #define HSEM_C2ISR_ISF6_Pos      (6U)
5713 #define HSEM_C2ISR_ISF6_Msk      (0x1UL << HSEM_C2ISR_ISF6_Pos)                /*!< 0x00000040 */
5714 #define HSEM_C2ISR_ISF6          HSEM_C2ISR_ISF6_Msk                           /*!<semaphore 6 CPU2 interrupt status bit.  */
5715 #define HSEM_C2ISR_ISF7_Pos      (7U)
5716 #define HSEM_C2ISR_ISF7_Msk      (0x1UL << HSEM_C2ISR_ISF7_Pos)                /*!< 0x00000080 */
5717 #define HSEM_C2ISR_ISF7          HSEM_C2ISR_ISF7_Msk                           /*!<semaphore 7 CPU2 interrupt status bit.  */
5718 #define HSEM_C2ISR_ISF8_Pos      (8U)
5719 #define HSEM_C2ISR_ISF8_Msk      (0x1UL << HSEM_C2ISR_ISF8_Pos)                /*!< 0x00000100 */
5720 #define HSEM_C2ISR_ISF8          HSEM_C2ISR_ISF8_Msk                           /*!<semaphore 8 CPU2 interrupt status bit.  */
5721 #define HSEM_C2ISR_ISF9_Pos      (9U)
5722 #define HSEM_C2ISR_ISF9_Msk      (0x1UL << HSEM_C2ISR_ISF9_Pos)                /*!< 0x00000200 */
5723 #define HSEM_C2ISR_ISF9          HSEM_C2ISR_ISF9_Msk                           /*!<semaphore 9 CPU2 interrupt status bit.  */
5724 #define HSEM_C2ISR_ISF10_Pos     (10U)
5725 #define HSEM_C2ISR_ISF10_Msk     (0x1UL << HSEM_C2ISR_ISF10_Pos)               /*!< 0x00000400 */
5726 #define HSEM_C2ISR_ISF10         HSEM_C2ISR_ISF10_Msk                          /*!<semaphore 10 CPU2 interrupt status bit. */
5727 #define HSEM_C2ISR_ISF11_Pos     (11U)
5728 #define HSEM_C2ISR_ISF11_Msk     (0x1UL << HSEM_C2ISR_ISF11_Pos)               /*!< 0x00000800 */
5729 #define HSEM_C2ISR_ISF11         HSEM_C2ISR_ISF11_Msk                          /*!<semaphore 11 CPU2 interrupt status bit. */
5730 #define HSEM_C2ISR_ISF12_Pos     (12U)
5731 #define HSEM_C2ISR_ISF12_Msk     (0x1UL << HSEM_C2ISR_ISF12_Pos)               /*!< 0x00001000 */
5732 #define HSEM_C2ISR_ISF12         HSEM_C2ISR_ISF12_Msk                          /*!<semaphore 12 CPU2 interrupt status bit. */
5733 #define HSEM_C2ISR_ISF13_Pos     (13U)
5734 #define HSEM_C2ISR_ISF13_Msk     (0x1UL << HSEM_C2ISR_ISF13_Pos)               /*!< 0x00002000 */
5735 #define HSEM_C2ISR_ISF13         HSEM_C2ISR_ISF13_Msk                          /*!<semaphore 13 CPU2 interrupt status bit. */
5736 #define HSEM_C2ISR_ISF14_Pos     (14U)
5737 #define HSEM_C2ISR_ISF14_Msk     (0x1UL << HSEM_C2ISR_ISF14_Pos)               /*!< 0x00004000 */
5738 #define HSEM_C2ISR_ISF14         HSEM_C2ISR_ISF14_Msk                          /*!<semaphore 14 CPU2 interrupt status bit. */
5739 #define HSEM_C2ISR_ISF15_Pos     (15U)
5740 #define HSEM_C2ISR_ISF15_Msk     (0x1UL << HSEM_C2ISR_ISF15_Pos)               /*!< 0x00008000 */
5741 #define HSEM_C2ISR_ISF15         HSEM_C2ISR_ISF15_Msk                          /*!<semaphore 15 CPU2 interrupt status bit. */
5742 
5743 /********************  Bit definition for HSEM_C2MISR register  *****************/
5744 #define HSEM_C2MISR_MISF0_Pos     (0U)
5745 #define HSEM_C2MISR_MISF0_Msk     (0x1UL << HSEM_C2MISR_MISF0_Pos)               /*!< 0x00000001 */
5746 #define HSEM_C2MISR_MISF0         HSEM_C2MISR_MISF0_Msk                          /*!<semaphore 0 CPU2 interrupt masked status bit.  */
5747 #define HSEM_C2MISR_MISF1_Pos     (1U)
5748 #define HSEM_C2MISR_MISF1_Msk     (0x1UL << HSEM_C2MISR_MISF1_Pos)               /*!< 0x00000002 */
5749 #define HSEM_C2MISR_MISF1         HSEM_C2MISR_MISF1_Msk                          /*!<semaphore 1 CPU2 interrupt masked status bit.  */
5750 #define HSEM_C2MISR_MISF2_Pos     (2U)
5751 #define HSEM_C2MISR_MISF2_Msk     (0x1UL << HSEM_C2MISR_MISF2_Pos)               /*!< 0x00000004 */
5752 #define HSEM_C2MISR_MISF2         HSEM_C2MISR_MISF2_Msk                          /*!<semaphore 2 CPU2 interrupt masked status bit.  */
5753 #define HSEM_C2MISR_MISF3_Pos     (3U)
5754 #define HSEM_C2MISR_MISF3_Msk     (0x1UL << HSEM_C2MISR_MISF3_Pos)               /*!< 0x00000008 */
5755 #define HSEM_C2MISR_MISF3         HSEM_C2MISR_MISF3_Msk                          /*!<semaphore 3 CPU2 interrupt masked status bit.  */
5756 #define HSEM_C2MISR_MISF4_Pos     (4U)
5757 #define HSEM_C2MISR_MISF4_Msk     (0x1UL << HSEM_C2MISR_MISF4_Pos)               /*!< 0x00000010 */
5758 #define HSEM_C2MISR_MISF4         HSEM_C2MISR_MISF4_Msk                          /*!<semaphore 4 CPU2 interrupt masked status bit.  */
5759 #define HSEM_C2MISR_MISF5_Pos     (5U)
5760 #define HSEM_C2MISR_MISF5_Msk     (0x1UL << HSEM_C2MISR_MISF5_Pos)               /*!< 0x00000020 */
5761 #define HSEM_C2MISR_MISF5         HSEM_C2MISR_MISF5_Msk                          /*!<semaphore 5 CPU2 interrupt masked status bit.  */
5762 #define HSEM_C2MISR_MISF6_Pos     (6U)
5763 #define HSEM_C2MISR_MISF6_Msk     (0x1UL << HSEM_C2MISR_MISF6_Pos)               /*!< 0x00000040 */
5764 #define HSEM_C2MISR_MISF6         HSEM_C2MISR_MISF6_Msk                          /*!<semaphore 6 CPU2 interrupt masked status bit.  */
5765 #define HSEM_C2MISR_MISF7_Pos     (7U)
5766 #define HSEM_C2MISR_MISF7_Msk     (0x1UL << HSEM_C2MISR_MISF7_Pos)               /*!< 0x00000080 */
5767 #define HSEM_C2MISR_MISF7         HSEM_C2MISR_MISF7_Msk                          /*!<semaphore 7 CPU2 interrupt masked status bit.  */
5768 #define HSEM_C2MISR_MISF8_Pos     (8U)
5769 #define HSEM_C2MISR_MISF8_Msk     (0x1UL << HSEM_C2MISR_MISF8_Pos)               /*!< 0x00000100 */
5770 #define HSEM_C2MISR_MISF8         HSEM_C2MISR_MISF8_Msk                          /*!<semaphore 8 CPU2 interrupt masked status bit.  */
5771 #define HSEM_C2MISR_MISF9_Pos     (9U)
5772 #define HSEM_C2MISR_MISF9_Msk     (0x1UL << HSEM_C2MISR_MISF9_Pos)               /*!< 0x00000200 */
5773 #define HSEM_C2MISR_MISF9         HSEM_C2MISR_MISF9_Msk                          /*!<semaphore 9 CPU2 interrupt masked status bit.  */
5774 #define HSEM_C2MISR_MISF10_Pos    (10U)
5775 #define HSEM_C2MISR_MISF10_Msk    (0x1UL << HSEM_C2MISR_MISF10_Pos)              /*!< 0x00000400 */
5776 #define HSEM_C2MISR_MISF10        HSEM_C2MISR_MISF10_Msk                         /*!<semaphore 10 CPU2 interrupt masked status bit. */
5777 #define HSEM_C2MISR_MISF11_Pos    (11U)
5778 #define HSEM_C2MISR_MISF11_Msk    (0x1UL << HSEM_C2MISR_MISF11_Pos)              /*!< 0x00000800 */
5779 #define HSEM_C2MISR_MISF11        HSEM_C2MISR_MISF11_Msk                         /*!<semaphore 11 CPU2 interrupt masked status bit. */
5780 #define HSEM_C2MISR_MISF12_Pos    (12U)
5781 #define HSEM_C2MISR_MISF12_Msk    (0x1UL << HSEM_C2MISR_MISF12_Pos)              /*!< 0x00001000 */
5782 #define HSEM_C2MISR_MISF12        HSEM_C2MISR_MISF12_Msk                         /*!<semaphore 12 CPU2 interrupt masked status bit. */
5783 #define HSEM_C2MISR_MISF13_Pos    (13U)
5784 #define HSEM_C2MISR_MISF13_Msk    (0x1UL << HSEM_C2MISR_MISF13_Pos)              /*!< 0x00002000 */
5785 #define HSEM_C2MISR_MISF13        HSEM_C2MISR_MISF13_Msk                         /*!<semaphore 13 CPU2 interrupt masked status bit. */
5786 #define HSEM_C2MISR_MISF14_Pos    (14U)
5787 #define HSEM_C2MISR_MISF14_Msk    (0x1UL << HSEM_C2MISR_MISF14_Pos)              /*!< 0x00004000 */
5788 #define HSEM_C2MISR_MISF14        HSEM_C2MISR_MISF14_Msk                         /*!<semaphore 14 CPU2 interrupt masked status bit. */
5789 #define HSEM_C2MISR_MISF15_Pos    (15U)
5790 #define HSEM_C2MISR_MISF15_Msk    (0x1UL << HSEM_C2MISR_MISF15_Pos)              /*!< 0x00008000 */
5791 #define HSEM_C2MISR_MISF15        HSEM_C2MISR_MISF15_Msk                         /*!<semaphore 15 CPU2 interrupt masked status bit. */
5792 
5793 /********************  Bit definition for HSEM_CR register  *****************/
5794 #define HSEM_CR_COREID_Pos       (8U)
5795 #define HSEM_CR_COREID_Msk       (0xFUL << HSEM_CR_COREID_Pos)                 /*!< 0x00000F00 */
5796 #define HSEM_CR_COREID           HSEM_CR_COREID_Msk                            /*!<CoreID of semaphores to be cleared. */
5797 #define HSEM_CR_COREID_CPU1      (0x4U << HSEM_CR_COREID_Pos)
5798 #define HSEM_CR_COREID_CPU2      (0x8U << HSEM_CR_COREID_Pos)
5799 #if defined(CORE_CM0PLUS)
5800 #define HSEM_CR_COREID_CURRENT   HSEM_CR_COREID_CPU2
5801 #else
5802 #define HSEM_CR_COREID_CURRENT   HSEM_CR_COREID_CPU1
5803 #endif
5804 #define HSEM_CR_KEY_Pos          (16U)
5805 #define HSEM_CR_KEY_Msk          (0xFFFFUL << HSEM_CR_KEY_Pos)                 /*!< 0xFFFF0000 */
5806 #define HSEM_CR_KEY              HSEM_CR_KEY_Msk                               /*!<semaphores clear key. */
5807 
5808 /********************  Bit definition for HSEM_KEYR register  *****************/
5809 #define HSEM_KEYR_KEY_Pos        (16U)
5810 #define HSEM_KEYR_KEY_Msk        (0xFFFFUL << HSEM_KEYR_KEY_Pos)               /*!< 0xFFFF0000 */
5811 #define HSEM_KEYR_KEY            HSEM_KEYR_KEY_Msk                             /*!<semaphores clear key. */
5812 
5813 /******************************************************************************/
5814 /*                                                                            */
5815 /*                       Public Key Accelerator (PKA)                         */
5816 /*                                                                            */
5817 /******************************************************************************/
5818 
5819 /*******************  Bits definition for PKA_CR register  **************/
5820 #define PKA_CR_EN_Pos              (0U)
5821 #define PKA_CR_EN_Msk              (0x1UL << PKA_CR_EN_Pos)                /*!< 0x00000001 */
5822 #define PKA_CR_EN                  PKA_CR_EN_Msk                           /*!< PKA enable */
5823 #define PKA_CR_START_Pos           (1U)
5824 #define PKA_CR_START_Msk           (0x1UL << PKA_CR_START_Pos)             /*!< 0x00000002 */
5825 #define PKA_CR_START               PKA_CR_START_Msk                        /*!< Start operation */
5826 #define PKA_CR_MODE_Pos            (8U)
5827 #define PKA_CR_MODE_Msk            (0x3FUL << PKA_CR_MODE_Pos)             /*!< 0x00003F00 */
5828 #define PKA_CR_MODE                PKA_CR_MODE_Msk                         /*!< MODE[5:0] PKA operation code */
5829 #define PKA_CR_MODE_0              (0x01UL << PKA_CR_MODE_Pos)             /*!< 0x00000100 */
5830 #define PKA_CR_MODE_1              (0x02UL << PKA_CR_MODE_Pos)             /*!< 0x00000200 */
5831 #define PKA_CR_MODE_2              (0x04UL << PKA_CR_MODE_Pos)             /*!< 0x00000400 */
5832 #define PKA_CR_MODE_3              (0x08UL << PKA_CR_MODE_Pos)             /*!< 0x00000800 */
5833 #define PKA_CR_MODE_4              (0x10UL << PKA_CR_MODE_Pos)             /*!< 0x00001000 */
5834 #define PKA_CR_MODE_5              (0x20UL << PKA_CR_MODE_Pos)             /*!< 0x00002000 */
5835 #define PKA_CR_PROCENDIE_Pos       (17U)
5836 #define PKA_CR_PROCENDIE_Msk       (0x1UL << PKA_CR_PROCENDIE_Pos)         /*!< 0x00020000 */
5837 #define PKA_CR_PROCENDIE           PKA_CR_PROCENDIE_Msk                    /*!< End of operation interrupt enable */
5838 #define PKA_CR_RAMERRIE_Pos        (19U)
5839 #define PKA_CR_RAMERRIE_Msk        (0x1UL << PKA_CR_RAMERRIE_Pos)          /*!< 0x00080000 */
5840 #define PKA_CR_RAMERRIE            PKA_CR_RAMERRIE_Msk                     /*!< RAM error interrupt enable */
5841 #define PKA_CR_ADDRERRIE_Pos       (20U)
5842 #define PKA_CR_ADDRERRIE_Msk       (0x1UL << PKA_CR_ADDRERRIE_Pos)         /*!< 0x00100000 */
5843 #define PKA_CR_ADDRERRIE           PKA_CR_ADDRERRIE_Msk                    /*!< RAM error interrupt enable */
5844 
5845 /*******************  Bits definition for PKA_SR register  **************/
5846 #define PKA_SR_BUSY_Pos            (16U)
5847 #define PKA_SR_BUSY_Msk            (0x1UL << PKA_SR_BUSY_Pos)              /*!< 0x00010000 */
5848 #define PKA_SR_BUSY                PKA_SR_BUSY_Msk                         /*!< PKA operation is in progress */
5849 #define PKA_SR_PROCENDF_Pos        (17U)
5850 #define PKA_SR_PROCENDF_Msk        (0x1UL << PKA_SR_PROCENDF_Pos)          /*!< 0x00020000 */
5851 #define PKA_SR_PROCENDF            PKA_SR_PROCENDF_Msk                     /*!< PKA end of operation flag */
5852 #define PKA_SR_RAMERRF_Pos         (19U)
5853 #define PKA_SR_RAMERRF_Msk         (0x1UL << PKA_SR_RAMERRF_Pos)           /*!< 0x00080000 */
5854 #define PKA_SR_RAMERRF             PKA_SR_RAMERRF_Msk                      /*!< PKA RAM error flag */
5855 #define PKA_SR_ADDRERRF_Pos        (20U)
5856 #define PKA_SR_ADDRERRF_Msk        (0x1UL << PKA_SR_ADDRERRF_Pos)          /*!< 0x00100000 */
5857 #define PKA_SR_ADDRERRF            PKA_SR_ADDRERRF_Msk                     /*!< Address error flag */
5858 
5859 /*******************  Bits definition for PKA_CLRFR register  **************/
5860 #define PKA_CLRFR_PROCENDFC_Pos    (17U)
5861 #define PKA_CLRFR_PROCENDFC_Msk    (0x1UL << PKA_CLRFR_PROCENDFC_Pos)      /*!< 0x00020000 */
5862 #define PKA_CLRFR_PROCENDFC        PKA_CLRFR_PROCENDFC_Msk                 /*!< Clear PKA end of operation flag */
5863 #define PKA_CLRFR_RAMERRFC_Pos     (19U)
5864 #define PKA_CLRFR_RAMERRFC_Msk     (0x1UL << PKA_CLRFR_RAMERRFC_Pos)       /*!< 0x00080000 */
5865 #define PKA_CLRFR_RAMERRFC         PKA_CLRFR_RAMERRFC_Msk                  /*!< Clear PKA RAM error flag */
5866 #define PKA_CLRFR_ADDRERRFC_Pos    (20U)
5867 #define PKA_CLRFR_ADDRERRFC_Msk    (0x1UL << PKA_CLRFR_ADDRERRFC_Pos)      /*!< 0x00100000 */
5868 #define PKA_CLRFR_ADDRERRFC        PKA_CLRFR_ADDRERRFC_Msk                 /*!< Clear address error flag */
5869 
5870 /*******************  Bits definition for PKA RAM  *************************/
5871 #define PKA_RAM_OFFSET                            0x400U                           /*!< PKA RAM address offset */
5872 
5873 /* Compute Montgomery parameter input data */
5874 #define PKA_MONTGOMERY_PARAM_IN_MOD_NB_BITS       ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus number of bits */
5875 #define PKA_MONTGOMERY_PARAM_IN_MODULUS           ((0xD5CU - PKA_RAM_OFFSET)>>2)   /*!< Input modulus */
5876 
5877 /* Compute Montgomery parameter output data */
5878 #define PKA_MONTGOMERY_PARAM_OUT_PARAMETER        ((0x594U - PKA_RAM_OFFSET)>>2)   /*!< Output Montgomery parameter */
5879 
5880 /* Compute modular exponentiation input data */
5881 #define PKA_MODULAR_EXP_IN_EXP_NB_BITS            ((0x400U - PKA_RAM_OFFSET)>>2)   /*!< Input exponent number of bits */
5882 #define PKA_MODULAR_EXP_IN_OP_NB_BITS             ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
5883 #define PKA_MODULAR_EXP_IN_MONTGOMERY_PARAM       ((0x594U - PKA_RAM_OFFSET)>>2)   /*!< Input storage area for Montgomery parameter */
5884 #define PKA_MODULAR_EXP_IN_EXPONENT_BASE          ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input base of the exponentiation */
5885 #define PKA_MODULAR_EXP_IN_EXPONENT               ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Input exponent to process */
5886 #define PKA_MODULAR_EXP_IN_MODULUS                ((0xD5CU - PKA_RAM_OFFSET)>>2)   /*!< Input modulus */
5887 
5888 /* Compute modular exponentiation output data */
5889 #define PKA_MODULAR_EXP_OUT_MONTGOMERY_PARAM      ((0x594U - PKA_RAM_OFFSET)>>2)   /*!< Output storage area for Montgomery parameter */
5890 #define PKA_MODULAR_EXP_OUT_SM_ALGO_ACC1          ((0x724U - PKA_RAM_OFFSET)>>2)   /*!< Output SM algorithm accumulator 1 */
5891 #define PKA_MODULAR_EXP_OUT_SM_ALGO_ACC2          ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Output SM algorithm accumulator 2 */
5892 #define PKA_MODULAR_EXP_OUT_EXPONENT_BASE         ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Output base of the exponentiation */
5893 #define PKA_MODULAR_EXP_OUT_SM_ALGO_ACC3          ((0xE3CU - PKA_RAM_OFFSET)>>2)   /*!< Output SM algorithm accumulator 3 */
5894 
5895 /* Compute ECC scalar multiplication input data */
5896 #define PKA_ECC_SCALAR_MUL_IN_EXP_NB_BITS         ((0x400U - PKA_RAM_OFFSET)>>2)   /*!< Input exponent number of bits */
5897 #define PKA_ECC_SCALAR_MUL_IN_OP_NB_BITS          ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
5898 #define PKA_ECC_SCALAR_MUL_IN_A_COEFF_SIGN        ((0x408U - PKA_RAM_OFFSET)>>2)   /*!< Input sign of the 'a' coefficient */
5899 #define PKA_ECC_SCALAR_MUL_IN_A_COEFF             ((0x40CU - PKA_RAM_OFFSET)>>2)   /*!< Input ECC curve 'a' coefficient */
5900 #define PKA_ECC_SCALAR_MUL_IN_MOD_GF              ((0x460U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus GF(p) */
5901 #define PKA_ECC_SCALAR_MUL_IN_MONTGOMERY_PARAM    ((0x4B4U - PKA_RAM_OFFSET)>>2)   /*!< Input storage area for Montgomery parameter */
5902 #define PKA_ECC_SCALAR_MUL_IN_K                   ((0x508U - PKA_RAM_OFFSET)>>2)   /*!< Input 'k' of KP */
5903 #define PKA_ECC_SCALAR_MUL_IN_INITIAL_POINT_X     ((0x55CU - PKA_RAM_OFFSET)>>2)   /*!< Input initial point P X coordinate */
5904 #define PKA_ECC_SCALAR_MUL_IN_INITIAL_POINT_Y     ((0x5B0U - PKA_RAM_OFFSET)>>2)   /*!< Input initial point P Y coordinate */
5905 
5906 /* Compute ECC scalar multiplication output data */
5907 #define PKA_ECC_SCALAR_MUL_OUT_RESULT_X           ((0x55CU - PKA_RAM_OFFSET)>>2)   /*!< Output result X coordinate */
5908 #define PKA_ECC_SCALAR_MUL_OUT_RESULT_Y           ((0x5B0U - PKA_RAM_OFFSET)>>2)   /*!< Output result Y coordinate */
5909 #define PKA_ECC_SCALAR_MUL_OUT_LAST_DOUBLE_X1     ((0xDE8U - PKA_RAM_OFFSET)>>2)   /*!< Output last double X1 coordinate */
5910 #define PKA_ECC_SCALAR_MUL_OUT_LAST_DOUBLE_Y1     ((0xE3CU - PKA_RAM_OFFSET)>>2)   /*!< Output last double Y1 coordinate */
5911 #define PKA_ECC_SCALAR_MUL_OUT_LAST_DOUBLE_Z1     ((0xE90U - PKA_RAM_OFFSET)>>2)   /*!< Output last double Z1 coordinate */
5912 #define PKA_ECC_SCALAR_MUL_OUT_CHECK_POINT_X2     ((0xEE4U - PKA_RAM_OFFSET)>>2)   /*!< Output check point X2 coordinate */
5913 #define PKA_ECC_SCALAR_MUL_OUT_CHECK_POINT_Y2     ((0xF38U - PKA_RAM_OFFSET)>>2)   /*!< Output check point Y2 coordinate */
5914 #define PKA_ECC_SCALAR_MUL_OUT_CHECK_POINT_Z2     ((0xF8CU - PKA_RAM_OFFSET)>>2)   /*!< Output check point Z2 coordinate */
5915 
5916 /* Point check input data */
5917 #define PKA_POINT_CHECK_IN_MOD_NB_BITS            ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus number of bits */
5918 #define PKA_POINT_CHECK_IN_A_COEFF_SIGN           ((0x408U - PKA_RAM_OFFSET)>>2)   /*!< Input sign of the 'a' coefficient */
5919 #define PKA_POINT_CHECK_IN_A_COEFF                ((0x40CU - PKA_RAM_OFFSET)>>2)   /*!< Input ECC curve 'a' coefficient */
5920 #define PKA_POINT_CHECK_IN_B_COEFF                ((0x7FCU - PKA_RAM_OFFSET)>>2)   /*!< Input ECC curve 'b' coefficient */
5921 #define PKA_POINT_CHECK_IN_MOD_GF                 ((0x460U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus GF(p) */
5922 #define PKA_POINT_CHECK_IN_INITIAL_POINT_X        ((0x55CU - PKA_RAM_OFFSET)>>2)   /*!< Input initial point P X coordinate */
5923 #define PKA_POINT_CHECK_IN_INITIAL_POINT_Y        ((0x5B0U - PKA_RAM_OFFSET)>>2)   /*!< Input initial point P Y coordinate */
5924 
5925 /* Point check output data */
5926 #define PKA_POINT_CHECK_OUT_ERROR                 ((0x400U - PKA_RAM_OFFSET)>>2)   /*!< Output error */
5927 
5928 /* ECDSA signature input data */
5929 #define PKA_ECDSA_SIGN_IN_ORDER_NB_BITS           ((0x400U - PKA_RAM_OFFSET)>>2)   /*!< Input order number of bits */
5930 #define PKA_ECDSA_SIGN_IN_MOD_NB_BITS             ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus number of bits */
5931 #define PKA_ECDSA_SIGN_IN_A_COEFF_SIGN            ((0x408U - PKA_RAM_OFFSET)>>2)   /*!< Input sign of the 'a' coefficient */
5932 #define PKA_ECDSA_SIGN_IN_A_COEFF                 ((0x40CU - PKA_RAM_OFFSET)>>2)   /*!< Input ECC curve 'a' coefficient */
5933 #define PKA_ECDSA_SIGN_IN_MOD_GF                  ((0x460U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus GF(p) */
5934 #define PKA_ECDSA_SIGN_IN_K                       ((0x508U - PKA_RAM_OFFSET)>>2)   /*!< Input k value of the ECDSA */
5935 #define PKA_ECDSA_SIGN_IN_INITIAL_POINT_X         ((0x55CU - PKA_RAM_OFFSET)>>2)   /*!< Input initial point P X coordinate */
5936 #define PKA_ECDSA_SIGN_IN_INITIAL_POINT_Y         ((0x5B0U - PKA_RAM_OFFSET)>>2)   /*!< Input initial point P Y coordinate */
5937 #define PKA_ECDSA_SIGN_IN_HASH_E                  ((0xDE8U - PKA_RAM_OFFSET)>>2)   /*!< Input e, hash of the message */
5938 #define PKA_ECDSA_SIGN_IN_PRIVATE_KEY_D           ((0xE3CU - PKA_RAM_OFFSET)>>2)   /*!< Input d, private key */
5939 #define PKA_ECDSA_SIGN_IN_ORDER_N                 ((0xE94U - PKA_RAM_OFFSET)>>2)   /*!< Input n, order of the curve */
5940 
5941 /* ECDSA signature output data */
5942 #define PKA_ECDSA_SIGN_OUT_ERROR                  ((0xEE8U - PKA_RAM_OFFSET)>>2)   /*!< Output error */
5943 #define PKA_ECDSA_SIGN_OUT_SIGNATURE_R            ((0x700U - PKA_RAM_OFFSET)>>2)   /*!< Output signature r */
5944 #define PKA_ECDSA_SIGN_OUT_SIGNATURE_S            ((0x754U - PKA_RAM_OFFSET)>>2)   /*!< Output signature s */
5945 #define PKA_ECDSA_SIGN_OUT_FINAL_POINT_X          ((0x103CU - PKA_RAM_OFFSET)>>2)   /*!< Output final point kP X coordinate */
5946 #define PKA_ECDSA_SIGN_OUT_FINAL_POINT_Y          ((0x1090U - PKA_RAM_OFFSET)>>2)   /*!< Output final point kP Y coordinate */
5947 
5948 /* ECDSA verification input data */
5949 #define PKA_ECDSA_VERIF_IN_ORDER_NB_BITS          ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input order number of bits */
5950 #define PKA_ECDSA_VERIF_IN_MOD_NB_BITS            ((0x4B4U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus number of bits */
5951 #define PKA_ECDSA_VERIF_IN_A_COEFF_SIGN           ((0x45CU - PKA_RAM_OFFSET)>>2)   /*!< Input sign of the 'a' coefficient */
5952 #define PKA_ECDSA_VERIF_IN_A_COEFF                ((0x460U - PKA_RAM_OFFSET)>>2)   /*!< Input ECC curve 'a' coefficient */
5953 #define PKA_ECDSA_VERIF_IN_MOD_GF                 ((0x4B8U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus GF(p) */
5954 #define PKA_ECDSA_VERIF_IN_INITIAL_POINT_X        ((0x5E8U - PKA_RAM_OFFSET)>>2)   /*!< Input initial point P X coordinate */
5955 #define PKA_ECDSA_VERIF_IN_INITIAL_POINT_Y        ((0x63CU - PKA_RAM_OFFSET)>>2)   /*!< Input initial point P Y coordinate */
5956 #define PKA_ECDSA_VERIF_IN_PUBLIC_KEY_POINT_X     ((0xF40U - PKA_RAM_OFFSET)>>2)   /*!< Input public key point X coordinate */
5957 #define PKA_ECDSA_VERIF_IN_PUBLIC_KEY_POINT_Y     ((0xF94U - PKA_RAM_OFFSET)>>2)   /*!< Input public key point Y coordinate */
5958 #define PKA_ECDSA_VERIF_IN_SIGNATURE_R            ((0x1098U - PKA_RAM_OFFSET)>>2)   /*!< Input r, part of the signature */
5959 #define PKA_ECDSA_VERIF_IN_SIGNATURE_S            ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input s, part of the signature */
5960 #define PKA_ECDSA_VERIF_IN_HASH_E                 ((0xFE8U - PKA_RAM_OFFSET)>>2)   /*!< Input e, hash of the message */
5961 #define PKA_ECDSA_VERIF_IN_ORDER_N                ((0xD5CU - PKA_RAM_OFFSET)>>2)   /*!< Input n, order of the curve */
5962 
5963 /* ECDSA verification output data */
5964 #define PKA_ECDSA_VERIF_OUT_RESULT                ((0x5B0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
5965 
5966 /* RSA CRT exponentiation input data */
5967 #define PKA_RSA_CRT_EXP_IN_MOD_NB_BITS            ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operands number of bits */
5968 #define PKA_RSA_CRT_EXP_IN_DP_CRT                 ((0x65CU - PKA_RAM_OFFSET)>>2)   /*!< Input Dp CRT parameter */
5969 #define PKA_RSA_CRT_EXP_IN_DQ_CRT                 ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Input Dq CRT parameter */
5970 #define PKA_RSA_CRT_EXP_IN_QINV_CRT               ((0x7ECU - PKA_RAM_OFFSET)>>2)   /*!< Input qInv CRT parameter */
5971 #define PKA_RSA_CRT_EXP_IN_PRIME_P                ((0x97CU - PKA_RAM_OFFSET)>>2)   /*!< Input Prime p */
5972 #define PKA_RSA_CRT_EXP_IN_PRIME_Q                ((0xD5CU - PKA_RAM_OFFSET)>>2)   /*!< Input Prime q */
5973 #define PKA_RSA_CRT_EXP_IN_EXPONENT_BASE          ((0xEECU - PKA_RAM_OFFSET)>>2)   /*!< Input base of the exponentiation */
5974 
5975 /* RSA CRT exponentiation output data */
5976 #define PKA_RSA_CRT_EXP_OUT_RESULT                ((0x724U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
5977 
5978 /* Modular reduction input data */
5979 #define PKA_MODULAR_REDUC_IN_OP_LENGTH            ((0x400U - PKA_RAM_OFFSET)>>2)   /*!< Input operand length */
5980 #define PKA_MODULAR_REDUC_IN_OPERAND              ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand */
5981 #define PKA_MODULAR_REDUC_IN_MOD_LENGTH           ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus length */
5982 #define PKA_MODULAR_REDUC_IN_MODULUS              ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input modulus */
5983 
5984 /* Modular reduction output data */
5985 #define PKA_MODULAR_REDUC_OUT_RESULT              ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
5986 
5987 /* Arithmetic addition input data */
5988 #define PKA_ARITHMETIC_ADD_NB_BITS                ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
5989 #define PKA_ARITHMETIC_ADD_IN_OP1                 ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
5990 #define PKA_ARITHMETIC_ADD_IN_OP2                 ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
5991 
5992 /* Arithmetic addition output data */
5993 #define PKA_ARITHMETIC_ADD_OUT_RESULT             ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
5994 
5995 /* Arithmetic subtraction  input data */
5996 #define PKA_ARITHMETIC_SUB_NB_BITS                ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
5997 #define PKA_ARITHMETIC_SUB_IN_OP1                 ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
5998 #define PKA_ARITHMETIC_SUB_IN_OP2                 ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
5999 
6000 /* Arithmetic subtraction  output data */
6001 #define PKA_ARITHMETIC_SUB_OUT_RESULT             ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
6002 
6003 /* Arithmetic multiplication input data */
6004 #define PKA_ARITHMETIC_MUL_NB_BITS                ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
6005 #define PKA_ARITHMETIC_MUL_IN_OP1                 ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
6006 #define PKA_ARITHMETIC_MUL_IN_OP2                 ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
6007 
6008 /* Arithmetic multiplication output data */
6009 #define PKA_ARITHMETIC_MUL_OUT_RESULT             ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
6010 
6011 /* Comparison input data */
6012 #define PKA_COMPARISON_NB_BITS                    ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
6013 #define PKA_COMPARISON_IN_OP1                     ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
6014 #define PKA_COMPARISON_IN_OP2                     ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
6015 
6016 /* Comparison output data */
6017 #define PKA_COMPARISON_OUT_RESULT                 ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
6018 
6019 /* Modular addition input data */
6020 #define PKA_MODULAR_ADD_NB_BITS                   ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
6021 #define PKA_MODULAR_ADD_IN_OP1                    ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
6022 #define PKA_MODULAR_ADD_IN_OP2                    ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
6023 #define PKA_MODULAR_ADD_IN_OP3_MOD                ((0xD5CU - PKA_RAM_OFFSET)>>2)   /*!< Input operand op3 (modulus) */
6024 
6025 /* Modular addition output data */
6026 #define PKA_MODULAR_ADD_OUT_RESULT                ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
6027 
6028 /* Modular inversion input data */
6029 #define PKA_MODULAR_INV_NB_BITS                   ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
6030 #define PKA_MODULAR_INV_IN_OP1                    ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
6031 #define PKA_MODULAR_INV_IN_OP2_MOD                ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 (modulus) */
6032 
6033 /* Modular inversion output data */
6034 #define PKA_MODULAR_INV_OUT_RESULT                ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
6035 
6036 /* Modular subtraction  input data */
6037 #define PKA_MODULAR_SUB_NB_BITS                   ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
6038 #define PKA_MODULAR_SUB_IN_OP1                    ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
6039 #define PKA_MODULAR_SUB_IN_OP2                    ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
6040 #define PKA_MODULAR_SUB_IN_OP3_MOD                ((0xD5CU - PKA_RAM_OFFSET)>>2)   /*!< Input operand op3 */
6041 
6042 /* Modular subtraction  output data */
6043 #define PKA_MODULAR_SUB_OUT_RESULT                ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
6044 
6045 /* Montgomery multiplication input data */
6046 #define PKA_MONTGOMERY_MUL_NB_BITS                ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
6047 #define PKA_MONTGOMERY_MUL_IN_OP1                 ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
6048 #define PKA_MONTGOMERY_MUL_IN_OP2                 ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
6049 #define PKA_MONTGOMERY_MUL_IN_OP3_MOD             ((0xD5CU - PKA_RAM_OFFSET)>>2)   /*!< Input modulus */
6050 
6051 /* Montgomery multiplication output data */
6052 #define PKA_MONTGOMERY_MUL_OUT_RESULT             ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
6053 
6054 /* Generic Arithmetic input data */
6055 #define PKA_ARITHMETIC_ALL_OPS_NB_BITS            ((0x404U - PKA_RAM_OFFSET)>>2)   /*!< Input operand number of bits */
6056 #define PKA_ARITHMETIC_ALL_OPS_IN_OP1             ((0x8B4U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op1 */
6057 #define PKA_ARITHMETIC_ALL_OPS_IN_OP2             ((0xA44U - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
6058 #define PKA_ARITHMETIC_ALL_OPS_IN_OP3             ((0xD5CU - PKA_RAM_OFFSET)>>2)   /*!< Input operand op2 */
6059 
6060 /* Generic Arithmetic output data */
6061 #define PKA_ARITHMETIC_ALL_OPS_OUT_RESULT         ((0xBD0U - PKA_RAM_OFFSET)>>2)   /*!< Output result */
6062 
6063 /******************************************************************************/
6064 /*                                                                            */
6065 /*                               Power Control                                */
6066 /*                                                                            */
6067 /******************************************************************************/
6068 
6069 /********************  Bit definition for PWR_CR1 register  ********************/
6070 #define PWR_CR1_LPMS_Pos               (0U)
6071 #define PWR_CR1_LPMS_Msk               (0x7UL << PWR_CR1_LPMS_Pos)             /*!< 0x00000007 */
6072 #define PWR_CR1_LPMS                   PWR_CR1_LPMS_Msk                        /*!< Low Power Mode Selection for CPU1 */
6073 #define PWR_CR1_LPMS_0                 (0x1UL << PWR_CR1_LPMS_Pos)             /*!< 0x00000001 */
6074 #define PWR_CR1_LPMS_1                 (0x2UL << PWR_CR1_LPMS_Pos)             /*!< 0x00000002 */
6075 #define PWR_CR1_LPMS_2                 (0x4UL << PWR_CR1_LPMS_Pos)             /*!< 0x00000004 */
6076 
6077 #define PWR_CR1_SUBGHZSPINSSSEL_Pos    (3U)
6078 #define PWR_CR1_SUBGHZSPINSSSEL_Msk    (0x1UL << PWR_CR1_SUBGHZSPINSSSEL_Pos)  /*!< 0x00000008 */
6079 #define PWR_CR1_SUBGHZSPINSSSEL        PWR_CR1_SUBGHZSPINSSSEL_Msk             /*!< Sub-GHz radio SPI NSS source select */
6080 
6081 #define PWR_CR1_FPDR_Pos               (4U)
6082 #define PWR_CR1_FPDR_Msk               (0x1UL << PWR_CR1_FPDR_Pos)             /*!< 0x00000010 */
6083 #define PWR_CR1_FPDR                   PWR_CR1_FPDR_Msk                        /*!< Flash power down mode during LPrun for CPU1 */
6084 
6085 #define PWR_CR1_FPDS_Pos               (5U)
6086 #define PWR_CR1_FPDS_Msk               (0x1UL << PWR_CR1_FPDS_Pos)             /*!< 0x00000020 */
6087 #define PWR_CR1_FPDS                   PWR_CR1_FPDS_Msk                        /*!< Flash power down mode during LPsleep for CPU1 */
6088 
6089 #define PWR_CR1_DBP_Pos                (8U)
6090 #define PWR_CR1_DBP_Msk                (0x1UL << PWR_CR1_DBP_Pos)              /*!< 0x00000100 */
6091 #define PWR_CR1_DBP                    PWR_CR1_DBP_Msk                         /*!< Disable Backup Domain write protection */
6092 
6093 #define PWR_CR1_VOS_Pos                (9U)
6094 #define PWR_CR1_VOS_Msk                (0x3UL << PWR_CR1_VOS_Pos)              /*!< 0x00000600 */
6095 #define PWR_CR1_VOS                    PWR_CR1_VOS_Msk                         /*!< Voltage scaling range selection */
6096 #define PWR_CR1_VOS_0                  (0x1UL << PWR_CR1_VOS_Pos)              /*!< 0x00000200 */
6097 #define PWR_CR1_VOS_1                  (0x2UL << PWR_CR1_VOS_Pos)              /*!< 0x00000400 */
6098 
6099 #define PWR_CR1_LPR_Pos                (14U)
6100 #define PWR_CR1_LPR_Msk                (0x1UL << PWR_CR1_LPR_Pos)              /*!< 0x00004000 */
6101 #define PWR_CR1_LPR                    PWR_CR1_LPR_Msk                         /*!< Regulator Low-Power Run mode */
6102 
6103 /********************  Bit definition for PWR_CR2 register  ********************/
6104 #define PWR_CR2_PVDE_Pos               (0U)
6105 #define PWR_CR2_PVDE_Msk               (0x1UL << PWR_CR2_PVDE_Pos)             /*!< 0x00000001 */
6106 #define PWR_CR2_PVDE                   PWR_CR2_PVDE_Msk                        /*!< Power voltage detector enable */
6107 
6108 #define PWR_CR2_PLS_Pos                (1U)
6109 #define PWR_CR2_PLS_Msk                (0x7UL << PWR_CR2_PLS_Pos)              /*!< 0x0000000E */
6110 #define PWR_CR2_PLS                    PWR_CR2_PLS_Msk                         /*!< Power voltage detector level selection */
6111 #define PWR_CR2_PLS_0                  (0x1UL << PWR_CR2_PLS_Pos)              /*!< 0x00000002 */
6112 #define PWR_CR2_PLS_1                  (0x2UL << PWR_CR2_PLS_Pos)              /*!< 0x00000004 */
6113 #define PWR_CR2_PLS_2                  (0x4UL << PWR_CR2_PLS_Pos)              /*!< 0x00000008 */
6114 
6115 #define PWR_CR2_PVME3_Pos              (6U)
6116 #define PWR_CR2_PVME3_Msk              (0x1UL << PWR_CR2_PVME3_Pos)            /*!< 0x00000040 */
6117 #define PWR_CR2_PVME3                  PWR_CR2_PVME3_Msk                       /*!< Peripherical Voltage Monitor Vdda Enable */
6118 
6119 /********************  Bit definition for PWR_CR3 register  ********************/
6120 #define PWR_CR3_EWUP_Pos               (0U)
6121 #define PWR_CR3_EWUP_Msk               (0x07UL << PWR_CR3_EWUP_Pos)            /*!< 0x00000007 */
6122 #define PWR_CR3_EWUP                   PWR_CR3_EWUP_Msk                        /*!< Enable all external Wake-Up lines  */
6123 #define PWR_CR3_EWUP1_Pos              (0U)
6124 #define PWR_CR3_EWUP1_Msk              (0x1UL << PWR_CR3_EWUP1_Pos)            /*!< 0x00000001 */
6125 #define PWR_CR3_EWUP1                  PWR_CR3_EWUP1_Msk                       /*!< Enable external WKUP Pin 1 [line 0] */
6126 #define PWR_CR3_EWUP2_Pos              (1U)
6127 #define PWR_CR3_EWUP2_Msk              (0x1UL << PWR_CR3_EWUP2_Pos)            /*!< 0x00000002 */
6128 #define PWR_CR3_EWUP2                  PWR_CR3_EWUP2_Msk                       /*!< Enable external WKUP Pin 2 [line 1] */
6129 #define PWR_CR3_EWUP3_Pos              (2U)
6130 #define PWR_CR3_EWUP3_Msk              (0x1UL << PWR_CR3_EWUP3_Pos)            /*!< 0x00000004 */
6131 #define PWR_CR3_EWUP3                  PWR_CR3_EWUP3_Msk                       /*!< Enable external WKUP Pin 3 [line 2] */
6132 
6133 #define PWR_CR3_ULPEN_Pos              (7U)
6134 #define PWR_CR3_ULPEN_Msk              (0x1UL << PWR_CR3_ULPEN_Pos)            /*!< 0x00000080 */
6135 #define PWR_CR3_ULPEN                  PWR_CR3_ULPEN_Msk                       /*!< Enable periodical sampling of supply voltage in Stop and Standby modes for detecting condition of PDR and BOR reset */
6136 
6137 #define PWR_CR3_EWPVD_Pos              (8U)
6138 #define PWR_CR3_EWPVD_Msk              (0x1UL << PWR_CR3_EWPVD_Pos)            /*!< 0x00000100 */
6139 #define PWR_CR3_EWPVD                  PWR_CR3_EWPVD_Msk                       /*!< Enable wakeup PVD for CPU1 */
6140 
6141 #define PWR_CR3_RRS_Pos                (9U)
6142 #define PWR_CR3_RRS_Msk                (0x1UL << PWR_CR3_RRS_Pos)              /*!< 0x00000200 */
6143 #define PWR_CR3_RRS                    PWR_CR3_RRS_Msk                         /*!< SRAM2 retention in STANDBY mode */
6144 
6145 #define PWR_CR3_APC_Pos                (10U)
6146 #define PWR_CR3_APC_Msk                (0x1UL << PWR_CR3_APC_Pos)              /*!< 0x00000400 */
6147 #define PWR_CR3_APC                    PWR_CR3_APC_Msk                         /*!< Apply pull-up and pull-down configuration for CPU1 */
6148 
6149 #define PWR_CR3_EWRFBUSY_Pos           (11U)
6150 #define PWR_CR3_EWRFBUSY_Msk           (0x1UL << PWR_CR3_EWRFBUSY_Pos)         /*!< 0x00008000 */
6151 #define PWR_CR3_EWRFBUSY                PWR_CR3_EWRFBUSY_Msk                   /*!< Enable Radio busy IRQ and wake-up for CPU1 */
6152 #define PWR_CR3_EWRFIRQ_Pos            (13U)
6153 #define PWR_CR3_EWRFIRQ_Msk            (0x1UL << PWR_CR3_EWRFIRQ_Pos)          /*!< 0x00020000 */
6154 #define PWR_CR3_EWRFIRQ                PWR_CR3_EWRFIRQ_Msk                     /*!< Enable Radio IRQ[2:0] and wake-up for CPU1 */
6155 
6156 #define PWR_CR3_EC2H_Pos               (14U)
6157 #define PWR_CR3_EC2H_Msk               (0x1UL << PWR_CR3_EC2H_Pos)             /*!< 0x00040000 */
6158 #define PWR_CR3_EC2H                    PWR_CR3_EC2H_Msk                       /*!< CPU2 Hold interrupt for CPU1 */
6159 
6160 #define PWR_CR3_EIWUL_Pos              (15U)
6161 #define PWR_CR3_EIWUL_Msk              (0x1UL << PWR_CR3_EIWUL_Pos)            /*!< 0x00080000 */
6162 #define PWR_CR3_EIWUL                  PWR_CR3_EIWUL_Msk                       /*!< Internal Wake-Up line interrupt for CPU1 */
6163 
6164 /********************  Bit definition for PWR_CR4 register  ********************/
6165 #define PWR_CR4_WP1_Pos                (0U)
6166 #define PWR_CR4_WP1_Msk                (0x1UL << PWR_CR4_WP1_Pos)              /*!< 0x00000001 */
6167 #define PWR_CR4_WP1                    PWR_CR4_WP1_Msk                         /*!< Wake-Up Pin 1 [line 0] polarity */
6168 #define PWR_CR4_WP2_Pos                (1U)
6169 #define PWR_CR4_WP2_Msk                (0x1UL << PWR_CR4_WP2_Pos)              /*!< 0x00000002 */
6170 #define PWR_CR4_WP2                    PWR_CR4_WP2_Msk                         /*!< Wake-Up Pin 2 [line 1] polarity */
6171 #define PWR_CR4_WP3_Pos                (2U)
6172 #define PWR_CR4_WP3_Msk                (0x1UL << PWR_CR4_WP3_Pos)              /*!< 0x00000004 */
6173 #define PWR_CR4_WP3                    PWR_CR4_WP3_Msk                         /*!< Wake-Up Pin 3 [line 2] polarity */
6174 
6175 #define PWR_CR4_VBE_Pos                (8U)
6176 #define PWR_CR4_VBE_Msk                (0x1UL << PWR_CR4_VBE_Pos)              /*!< 0x00000100 */
6177 #define PWR_CR4_VBE                    PWR_CR4_VBE_Msk                         /*!< VBAT battery charging enable  */
6178 #define PWR_CR4_VBRS_Pos               (9U)
6179 #define PWR_CR4_VBRS_Msk               (0x1UL << PWR_CR4_VBRS_Pos)             /*!< 0x00000200 */
6180 #define PWR_CR4_VBRS                   PWR_CR4_VBRS_Msk                        /*!< VBAT battery charging resistor selection */
6181 
6182 #define PWR_CR4_WRFBUSYP_Pos           (11U)
6183 #define PWR_CR4_WRFBUSYP_Msk           (0x1UL << PWR_CR4_WRFBUSYP_Pos)         /*!< 0x00008000 */
6184 #define PWR_CR4_WRFBUSYP               PWR_CR4_WRFBUSYP_Msk                    /*!< Wake-up radio busy polarity */
6185 
6186 #define PWR_CR4_C2BOOT_Pos             (15U)
6187 #define PWR_CR4_C2BOOT_Msk             (0x1UL << PWR_CR4_C2BOOT_Pos)           /*!< 0x00008000 */
6188 #define PWR_CR4_C2BOOT                 PWR_CR4_C2BOOT_Msk                      /*!< Boot CPU2 after reset or wakeup from Stop or Standby modes */
6189 
6190 /********************  Bit definition for PWR_SR1 register  ********************/
6191 #define PWR_SR1_WUF_Pos                (0U)
6192 #define PWR_SR1_WUF_Msk                (0x1FUL << PWR_SR1_WUF_Pos)             /*!< 0x00000007 */
6193 #define PWR_SR1_WUF                    PWR_SR1_WUF_Msk                         /*!< Wakeup Flags of all pins */
6194 #define PWR_SR1_WUF1_Pos               (0U)
6195 #define PWR_SR1_WUF1_Msk               (0x1UL << PWR_SR1_WUF1_Pos)             /*!< 0x00000001 */
6196 #define PWR_SR1_WUF1                   PWR_SR1_WUF1_Msk                        /*!< Wakeup Pin 1 [Flag 0] */
6197 #define PWR_SR1_WUF2_Pos               (1U)
6198 #define PWR_SR1_WUF2_Msk               (0x1UL << PWR_SR1_WUF2_Pos)             /*!< 0x00000002 */
6199 #define PWR_SR1_WUF2                   PWR_SR1_WUF2_Msk                        /*!< Wakeup Pin 2 [Flag 1] */
6200 #define PWR_SR1_WUF3_Pos               (2U)
6201 #define PWR_SR1_WUF3_Msk               (0x1UL << PWR_SR1_WUF3_Pos)             /*!< 0x00000004 */
6202 #define PWR_SR1_WUF3                   PWR_SR1_WUF3_Msk                        /*!< Wakeup Pin 3 [Flag 2] */
6203 
6204 #define PWR_SR1_WPVDF_Pos              (8U)
6205 #define PWR_SR1_WPVDF_Msk              (0x1UL << PWR_SR1_WPVDF_Pos)            /*!< 0x00000100 */
6206 #define PWR_SR1_WPVDF                  PWR_SR1_WPVDF_Msk                       /*!< Wakeup PVD flag */
6207 
6208 #define PWR_SR1_WRFBUSYF_Pos           (11U)
6209 #define PWR_SR1_WRFBUSYF_Msk           (0x1UL << PWR_SR1_WRFBUSYF_Pos)          /*!< 0x00000800 */
6210 #define PWR_SR1_WRFBUSYF               PWR_SR1_WRFBUSYF_Msk                     /*!< Wakeup radio busy flag */
6211 
6212 #define PWR_SR1_C2HF_Pos               (14U)
6213 #define PWR_SR1_C2HF_Msk               (0x1UL << PWR_SR1_C2HF_Pos)             /*!< 0x00004000 */
6214 #define PWR_SR1_C2HF                   PWR_SR1_C2HF_Msk                        /*!< CPU2 Hold interrupt flag */
6215 
6216 #define PWR_SR1_WUFI_Pos               (15U)
6217 #define PWR_SR1_WUFI_Msk               (0x1UL << PWR_SR1_WUFI_Pos)             /*!< 0x00008000 */
6218 #define PWR_SR1_WUFI                   PWR_SR1_WUFI_Msk                        /*!< Internal wakeup interrupt flag */
6219 
6220 /********************  Bit definition for PWR_SR2 register  ********************/
6221 #define PWR_SR2_C2BOOTS_Pos            (0U)
6222 #define PWR_SR2_C2BOOTS_Msk            (0x1UL << PWR_SR2_C2BOOTS_Pos)          /*!< 0x00000001 */
6223 #define PWR_SR2_C2BOOTS                PWR_SR2_C2BOOTS_Msk                     /*!< CPU2 boot or wakeup request source information */
6224 
6225 #define PWR_SR2_RFBUSYS_Pos            (1U)
6226 #define PWR_SR2_RFBUSYS_Msk            (0x1UL << PWR_SR2_RFBUSYS_Pos)          /*!< 0x00000002 */
6227 #define PWR_SR2_RFBUSYS                PWR_SR2_RFBUSYS_Msk                     /*!< Radio busy signal status */
6228 
6229 #define PWR_SR2_RFBUSYMS_Pos           (2U)
6230 #define PWR_SR2_RFBUSYMS_Msk           (0x1UL << PWR_SR2_RFBUSYMS_Pos)         /*!< 0x00000004 */
6231 #define PWR_SR2_RFBUSYMS               PWR_SR2_RFBUSYMS_Msk                    /*!< Radio busy masked signal status */
6232 
6233 #define PWR_SR2_SMPSRDY_Pos            (3U)
6234 #define PWR_SR2_SMPSRDY_Msk            (0x1UL << PWR_SR2_SMPSRDY_Pos)          /*!< 0x00000008 */
6235 #define PWR_SR2_SMPSRDY                PWR_SR2_SMPSRDY_Msk                     /*!< SMPS ready flag */
6236 #define PWR_SR2_LDORDY_Pos             (4U)
6237 #define PWR_SR2_LDORDY_Msk             (0x1UL << PWR_SR2_LDORDY_Pos)           /*!< 0x00000010 */
6238 #define PWR_SR2_LDORDY                 PWR_SR2_LDORDY_Msk                      /*!< LDO ready flag */
6239 
6240 #define PWR_SR2_RFEOLF_Pos             (5U)
6241 #define PWR_SR2_RFEOLF_Msk             (0x1UL << PWR_SR2_RFEOLF_Pos)           /*!< 0x00000020 */
6242 #define PWR_SR2_RFEOLF                 PWR_SR2_RFEOLF_Msk                      /*!< Radio end of life flag */
6243 
6244 #define PWR_SR2_REGMRS_Pos             (6U)
6245 #define PWR_SR2_REGMRS_Msk             (0x1UL << PWR_SR2_REGMRS_Pos)           /*!< 0x00000040 */
6246 #define PWR_SR2_REGMRS                 PWR_SR2_REGMRS_Msk                      /*!< Main regulator status */
6247 
6248 #define PWR_SR2_FLASHRDY_Pos           (7U)
6249 #define PWR_SR2_FLASHRDY_Msk           (0x1UL << PWR_SR2_FLASHRDY_Pos)         /*!< 0x00000080 */
6250 #define PWR_SR2_FLASHRDY               PWR_SR2_FLASHRDY_Msk                    /*!< Flash ready */
6251 
6252 #define PWR_SR2_REGLPS_Pos             (8U)
6253 #define PWR_SR2_REGLPS_Msk             (0x1UL << PWR_SR2_REGLPS_Pos)           /*!< 0x00000100 */
6254 #define PWR_SR2_REGLPS                 PWR_SR2_REGLPS_Msk                      /*!< Low-power regulator ready */
6255 #define PWR_SR2_REGLPF_Pos             (9U)
6256 #define PWR_SR2_REGLPF_Msk             (0x1UL << PWR_SR2_REGLPF_Pos)           /*!< 0x00000200 */
6257 #define PWR_SR2_REGLPF                 PWR_SR2_REGLPF_Msk                      /*!< Low-power regulator being used */
6258 
6259 #define PWR_SR2_VOSF_Pos               (10U)
6260 #define PWR_SR2_VOSF_Msk               (0x1UL << PWR_SR2_VOSF_Pos)             /*!< 0x00000400 */
6261 #define PWR_SR2_VOSF                   PWR_SR2_VOSF_Msk                        /*!< Voltage scaling flag    */
6262 #define PWR_SR2_PVDO_Pos               (11U)
6263 #define PWR_SR2_PVDO_Msk               (0x1UL << PWR_SR2_PVDO_Pos)             /*!< 0x00000800 */
6264 #define PWR_SR2_PVDO                   PWR_SR2_PVDO_Msk                        /*!< Power voltage detector output */
6265 
6266 #define PWR_SR2_PVMO3_Pos              (14U)
6267 #define PWR_SR2_PVMO3_Msk              (0x1UL << PWR_SR2_PVMO3_Pos)            /*!< 0x00004000 */
6268 #define PWR_SR2_PVMO3                  PWR_SR2_PVMO3_Msk                       /*!< Peripheral voltage monitor output 3: VDDA vs. 1.62V */
6269 
6270 /********************  Bit definition for PWR_SCR register  ********************/
6271 #define PWR_SCR_CWUF_Pos               (0U)
6272 #define PWR_SCR_CWUF_Msk               (0x7UL << PWR_SCR_CWUF_Pos)             /*!< 0x00000007 */
6273 #define PWR_SCR_CWUF                   PWR_SCR_CWUF_Msk                        /*!< Clear Wake-up Flags for all pins */
6274 #define PWR_SCR_CWUF1_Pos              (0U)
6275 #define PWR_SCR_CWUF1_Msk              (0x1UL << PWR_SCR_CWUF1_Pos)            /*!< 0x00000001 */
6276 #define PWR_SCR_CWUF1                  PWR_SCR_CWUF1_Msk                       /*!< Clear Wake-up Pin 1 [Flag 0] */
6277 #define PWR_SCR_CWUF2_Pos              (1U)
6278 #define PWR_SCR_CWUF2_Msk              (0x1UL << PWR_SCR_CWUF2_Pos)            /*!< 0x00000002 */
6279 #define PWR_SCR_CWUF2                  PWR_SCR_CWUF2_Msk                       /*!< Clear Wake-up Pin 2 [Flag 1] */
6280 #define PWR_SCR_CWUF3_Pos              (2U)
6281 #define PWR_SCR_CWUF3_Msk              (0x1UL << PWR_SCR_CWUF3_Pos)            /*!< 0x00000004 */
6282 #define PWR_SCR_CWUF3                  PWR_SCR_CWUF3_Msk                       /*!< Clear Wake-up Pin 3 [Flag 2] */
6283 
6284 #define PWR_SCR_CWPVDF_Pos             (8U)
6285 #define PWR_SCR_CWPVDF_Msk             (0x1UL << PWR_SCR_CWPVDF_Pos)           /*!< 0x00000100 */
6286 #define PWR_SCR_CWPVDF                 PWR_SCR_CWPVDF_Msk                      /*!< Clear wakeup PVD interrupt flag */
6287 
6288 #define PWR_SCR_CWRFBUSYF_Pos          (11U)
6289 #define PWR_SCR_CWRFBUSYF_Msk          (0x1UL << PWR_SCR_CWRFBUSYF_Pos)        /*!< 0x00000800 */
6290 #define PWR_SCR_CWRFBUSYF              PWR_SCR_CWRFBUSYF_Msk                   /*!< Clear Radio busy interrupt flag */
6291 
6292 #define PWR_SCR_CC2HF_Pos              (14U)
6293 #define PWR_SCR_CC2HF_Msk              (0x1UL << PWR_SCR_CC2HF_Pos)            /*!< 0x00004000 */
6294 #define PWR_SCR_CC2HF                  PWR_SCR_CC2HF_Msk                       /*!< Clear CPU2 Hold interrupt flag */
6295 
6296 /********************  Bit definition for PWR_CR5 register  ********************/
6297 #define PWR_CR5_RFEOLEN_Pos            (14U)
6298 #define PWR_CR5_RFEOLEN_Msk            (0x1UL << PWR_CR5_RFEOLEN_Pos)           /*!< 0x00004000 */
6299 #define PWR_CR5_RFEOLEN                PWR_CR5_RFEOLEN_Msk                      /*!< Enable Radio End Of Life detector enabled */
6300 
6301 #define PWR_CR5_SMPSEN_Pos             (15U)
6302 #define PWR_CR5_SMPSEN_Msk             (0x1UL << PWR_CR5_SMPSEN_Pos)           /*!< 0x00008000 */
6303 #define PWR_CR5_SMPSEN                 PWR_CR5_SMPSEN_Msk                      /*!< Enable SMPS Step Down converter SMPS mode enable */
6304 
6305 /********************  Bit definition for PWR_PUCRA register  *****************/
6306 #define PWR_PUCRA_PA0_Pos              (0U)
6307 #define PWR_PUCRA_PA0_Msk              (0x1UL << PWR_PUCRA_PA0_Pos)            /*!< 0x00000001 */
6308 #define PWR_PUCRA_PA0                  PWR_PUCRA_PA0_Msk                       /*!< Pin PA0 Pull-Up set */
6309 #define PWR_PUCRA_PA1_Pos              (1U)
6310 #define PWR_PUCRA_PA1_Msk              (0x1UL << PWR_PUCRA_PA1_Pos)            /*!< 0x00000002 */
6311 #define PWR_PUCRA_PA1                  PWR_PUCRA_PA1_Msk                       /*!< Pin PA1 Pull-Up set */
6312 #define PWR_PUCRA_PA2_Pos              (2U)
6313 #define PWR_PUCRA_PA2_Msk              (0x1UL << PWR_PUCRA_PA2_Pos)            /*!< 0x00000004 */
6314 #define PWR_PUCRA_PA2                  PWR_PUCRA_PA2_Msk                       /*!< Pin PA2 Pull-Up set */
6315 #define PWR_PUCRA_PA3_Pos              (3U)
6316 #define PWR_PUCRA_PA3_Msk              (0x1UL << PWR_PUCRA_PA3_Pos)            /*!< 0x00000008 */
6317 #define PWR_PUCRA_PA3                  PWR_PUCRA_PA3_Msk                       /*!< Pin PA3 Pull-Up set */
6318 #define PWR_PUCRA_PA4_Pos              (4U)
6319 #define PWR_PUCRA_PA4_Msk              (0x1UL << PWR_PUCRA_PA4_Pos)            /*!< 0x00000010 */
6320 #define PWR_PUCRA_PA4                  PWR_PUCRA_PA4_Msk                       /*!< Pin PA4 Pull-Up set */
6321 #define PWR_PUCRA_PA5_Pos              (5U)
6322 #define PWR_PUCRA_PA5_Msk              (0x1UL << PWR_PUCRA_PA5_Pos)            /*!< 0x00000020 */
6323 #define PWR_PUCRA_PA5                  PWR_PUCRA_PA5_Msk                       /*!< Pin PA5 Pull-Up set */
6324 #define PWR_PUCRA_PA6_Pos              (6U)
6325 #define PWR_PUCRA_PA6_Msk              (0x1UL << PWR_PUCRA_PA6_Pos)            /*!< 0x00000040 */
6326 #define PWR_PUCRA_PA6                  PWR_PUCRA_PA6_Msk                       /*!< Pin PA6 Pull-Up set */
6327 #define PWR_PUCRA_PA7_Pos              (7U)
6328 #define PWR_PUCRA_PA7_Msk              (0x1UL << PWR_PUCRA_PA7_Pos)            /*!< 0x00000080 */
6329 #define PWR_PUCRA_PA7                  PWR_PUCRA_PA7_Msk                       /*!< Pin PA7 Pull-Up set */
6330 #define PWR_PUCRA_PA8_Pos              (8U)
6331 #define PWR_PUCRA_PA8_Msk              (0x1UL << PWR_PUCRA_PA8_Pos)            /*!< 0x00000100 */
6332 #define PWR_PUCRA_PA8                  PWR_PUCRA_PA8_Msk                       /*!< Pin PA8 Pull-Up set */
6333 #define PWR_PUCRA_PA9_Pos              (9U)
6334 #define PWR_PUCRA_PA9_Msk              (0x1UL << PWR_PUCRA_PA9_Pos)            /*!< 0x00000200 */
6335 #define PWR_PUCRA_PA9                  PWR_PUCRA_PA9_Msk                       /*!< Pin PA9 Pull-Up set */
6336 #define PWR_PUCRA_PA10_Pos             (10U)
6337 #define PWR_PUCRA_PA10_Msk             (0x1UL << PWR_PUCRA_PA10_Pos)           /*!< 0x00000400 */
6338 #define PWR_PUCRA_PA10                 PWR_PUCRA_PA10_Msk                      /*!< Pin PA10 Pull-Up set */
6339 #define PWR_PUCRA_PA11_Pos             (11U)
6340 #define PWR_PUCRA_PA11_Msk             (0x1UL << PWR_PUCRA_PA11_Pos)           /*!< 0x00000800 */
6341 #define PWR_PUCRA_PA11                 PWR_PUCRA_PA11_Msk                      /*!< Pin PA11 Pull-Up set */
6342 #define PWR_PUCRA_PA12_Pos             (12U)
6343 #define PWR_PUCRA_PA12_Msk             (0x1UL << PWR_PUCRA_PA12_Pos)           /*!< 0x00001000 */
6344 #define PWR_PUCRA_PA12                 PWR_PUCRA_PA12_Msk                      /*!< Pin PA12 Pull-Up set */
6345 #define PWR_PUCRA_PA13_Pos             (13U)
6346 #define PWR_PUCRA_PA13_Msk             (0x1UL << PWR_PUCRA_PA13_Pos)           /*!< 0x00002000 */
6347 #define PWR_PUCRA_PA13                 PWR_PUCRA_PA13_Msk                      /*!< Pin PA13 Pull-Up set */
6348 #define PWR_PUCRA_PA14_Pos             (14U)
6349 #define PWR_PUCRA_PA14_Msk             (0x1UL << PWR_PUCRA_PA14_Pos)           /*!< 0x00004000 */
6350 #define PWR_PUCRA_PA14                 PWR_PUCRA_PA14_Msk                      /*!< Pin PA14 Pull-Up set */
6351 #define PWR_PUCRA_PA15_Pos             (15U)
6352 #define PWR_PUCRA_PA15_Msk             (0x1UL << PWR_PUCRA_PA15_Pos)           /*!< 0x00008000 */
6353 #define PWR_PUCRA_PA15                 PWR_PUCRA_PA15_Msk                      /*!< Pin PA15 Pull-Up set */
6354 
6355 /********************  Bit definition for PWR_PDCRA register  *****************/
6356 #define PWR_PDCRA_PA0_Pos              (0U)
6357 #define PWR_PDCRA_PA0_Msk              (0x1UL << PWR_PDCRA_PA0_Pos)            /*!< 0x00000001 */
6358 #define PWR_PDCRA_PA0                  PWR_PDCRA_PA0_Msk                       /*!< Pin PA0 Pull-Down set */
6359 #define PWR_PDCRA_PA1_Pos              (1U)
6360 #define PWR_PDCRA_PA1_Msk              (0x1UL << PWR_PDCRA_PA1_Pos)            /*!< 0x00000002 */
6361 #define PWR_PDCRA_PA1                  PWR_PDCRA_PA1_Msk                       /*!< Pin PA1 Pull-Down set */
6362 #define PWR_PDCRA_PA2_Pos              (2U)
6363 #define PWR_PDCRA_PA2_Msk              (0x1UL << PWR_PDCRA_PA2_Pos)            /*!< 0x00000004 */
6364 #define PWR_PDCRA_PA2                  PWR_PDCRA_PA2_Msk                       /*!< Pin PA2 Pull-Down set */
6365 #define PWR_PDCRA_PA3_Pos              (3U)
6366 #define PWR_PDCRA_PA3_Msk              (0x1UL << PWR_PDCRA_PA3_Pos)            /*!< 0x00000008 */
6367 #define PWR_PDCRA_PA3                  PWR_PDCRA_PA3_Msk                       /*!< Pin PA3 Pull-Down set */
6368 #define PWR_PDCRA_PA4_Pos              (4U)
6369 #define PWR_PDCRA_PA4_Msk              (0x1UL << PWR_PDCRA_PA4_Pos)            /*!< 0x00000010 */
6370 #define PWR_PDCRA_PA4                  PWR_PDCRA_PA4_Msk                       /*!< Pin PA4 Pull-Down set */
6371 #define PWR_PDCRA_PA5_Pos              (5U)
6372 #define PWR_PDCRA_PA5_Msk              (0x1UL << PWR_PDCRA_PA5_Pos)            /*!< 0x00000020 */
6373 #define PWR_PDCRA_PA5                  PWR_PDCRA_PA5_Msk                       /*!< Pin PA5 Pull-Down set */
6374 #define PWR_PDCRA_PA6_Pos              (6U)
6375 #define PWR_PDCRA_PA6_Msk              (0x1UL << PWR_PDCRA_PA6_Pos)            /*!< 0x00000040 */
6376 #define PWR_PDCRA_PA6                  PWR_PDCRA_PA6_Msk                       /*!< Pin PA6 Pull-Down set */
6377 #define PWR_PDCRA_PA7_Pos              (7U)
6378 #define PWR_PDCRA_PA7_Msk              (0x1UL << PWR_PDCRA_PA7_Pos)            /*!< 0x00000080 */
6379 #define PWR_PDCRA_PA7                  PWR_PDCRA_PA7_Msk                       /*!< Pin PA7 Pull-Down set */
6380 #define PWR_PDCRA_PA8_Pos              (8U)
6381 #define PWR_PDCRA_PA8_Msk              (0x1UL << PWR_PDCRA_PA8_Pos)            /*!< 0x00000100 */
6382 #define PWR_PDCRA_PA8                  PWR_PDCRA_PA8_Msk                       /*!< Pin PA8 Pull-Down set */
6383 #define PWR_PDCRA_PA9_Pos              (9U)
6384 #define PWR_PDCRA_PA9_Msk              (0x1UL << PWR_PDCRA_PA9_Pos)            /*!< 0x00000200 */
6385 #define PWR_PDCRA_PA9                  PWR_PDCRA_PA9_Msk                       /*!< Pin PA9 Pull-Down set */
6386 #define PWR_PDCRA_PA10_Pos             (10U)
6387 #define PWR_PDCRA_PA10_Msk             (0x1UL << PWR_PDCRA_PA10_Pos)           /*!< 0x00000400 */
6388 #define PWR_PDCRA_PA10                 PWR_PDCRA_PA10_Msk                      /*!< Pin PA10 Pull-Down set */
6389 #define PWR_PDCRA_PA11_Pos             (11U)
6390 #define PWR_PDCRA_PA11_Msk             (0x1UL << PWR_PDCRA_PA11_Pos)           /*!< 0x00000800 */
6391 #define PWR_PDCRA_PA11                 PWR_PDCRA_PA11_Msk                      /*!< Pin PA11 Pull-Down set */
6392 #define PWR_PDCRA_PA12_Pos             (12U)
6393 #define PWR_PDCRA_PA12_Msk             (0x1UL << PWR_PDCRA_PA12_Pos)           /*!< 0x00001000 */
6394 #define PWR_PDCRA_PA12                 PWR_PDCRA_PA12_Msk                      /*!< Pin PA12 Pull-Down set */
6395 #define PWR_PDCRA_PA13_Pos             (13U)
6396 #define PWR_PDCRA_PA13_Msk             (0x1UL << PWR_PDCRA_PA13_Pos)           /*!< 0x00002000 */
6397 #define PWR_PDCRA_PA13                 PWR_PDCRA_PA13_Msk                      /*!< Pin PA13 Pull-Down set */
6398 #define PWR_PDCRA_PA14_Pos             (14U)
6399 #define PWR_PDCRA_PA14_Msk             (0x1UL << PWR_PDCRA_PA14_Pos)           /*!< 0x00004000 */
6400 #define PWR_PDCRA_PA14                 PWR_PDCRA_PA14_Msk                      /*!< Pin PA14 Pull-Down set */
6401 #define PWR_PDCRA_PA15_Pos             (15U)
6402 #define PWR_PDCRA_PA15_Msk             (0x1UL << PWR_PDCRA_PA15_Pos)           /*!< 0x00008000 */
6403 #define PWR_PDCRA_PA15                 PWR_PDCRA_PA15_Msk                      /*!< Pin PA15 Pull-Down set */
6404 
6405 /********************  Bit definition for PWR_PUCRB register  *****************/
6406 #define PWR_PUCRB_PB0_Pos              (0U)
6407 #define PWR_PUCRB_PB0_Msk              (0x1UL << PWR_PUCRB_PB0_Pos)            /*!< 0x00000001 */
6408 #define PWR_PUCRB_PB0                  PWR_PUCRB_PB0_Msk                       /*!< Pin PB0 Pull-Up set */
6409 #define PWR_PUCRB_PB1_Pos              (1U)
6410 #define PWR_PUCRB_PB1_Msk              (0x1UL << PWR_PUCRB_PB1_Pos)            /*!< 0x00000002 */
6411 #define PWR_PUCRB_PB1                  PWR_PUCRB_PB1_Msk                       /*!< Pin PB1 Pull-Up set */
6412 #define PWR_PUCRB_PB2_Pos              (2U)
6413 #define PWR_PUCRB_PB2_Msk              (0x1UL << PWR_PUCRB_PB2_Pos)            /*!< 0x00000004 */
6414 #define PWR_PUCRB_PB2                  PWR_PUCRB_PB2_Msk                       /*!< Pin PB2 Pull-Up set */
6415 #define PWR_PUCRB_PB3_Pos              (3U)
6416 #define PWR_PUCRB_PB3_Msk              (0x1UL << PWR_PUCRB_PB3_Pos)            /*!< 0x00000008 */
6417 #define PWR_PUCRB_PB3                  PWR_PUCRB_PB3_Msk                       /*!< Pin PB3 Pull-Up set */
6418 #define PWR_PUCRB_PB4_Pos              (4U)
6419 #define PWR_PUCRB_PB4_Msk              (0x1UL << PWR_PUCRB_PB4_Pos)            /*!< 0x00000010 */
6420 #define PWR_PUCRB_PB4                  PWR_PUCRB_PB4_Msk                       /*!< Pin PB4 Pull-Up set */
6421 #define PWR_PUCRB_PB5_Pos              (5U)
6422 #define PWR_PUCRB_PB5_Msk              (0x1UL << PWR_PUCRB_PB5_Pos)            /*!< 0x00000020 */
6423 #define PWR_PUCRB_PB5                  PWR_PUCRB_PB5_Msk                       /*!< Pin PB5 Pull-Up set */
6424 #define PWR_PUCRB_PB6_Pos              (6U)
6425 #define PWR_PUCRB_PB6_Msk              (0x1UL << PWR_PUCRB_PB6_Pos)            /*!< 0x00000040 */
6426 #define PWR_PUCRB_PB6                  PWR_PUCRB_PB6_Msk                       /*!< Pin PB6 Pull-Up set */
6427 #define PWR_PUCRB_PB7_Pos              (7U)
6428 #define PWR_PUCRB_PB7_Msk              (0x1UL << PWR_PUCRB_PB7_Pos)            /*!< 0x00000080 */
6429 #define PWR_PUCRB_PB7                  PWR_PUCRB_PB7_Msk                       /*!< Pin PB7 Pull-Up set */
6430 #define PWR_PUCRB_PB8_Pos              (8U)
6431 #define PWR_PUCRB_PB8_Msk              (0x1UL << PWR_PUCRB_PB8_Pos)            /*!< 0x00000100 */
6432 #define PWR_PUCRB_PB8                  PWR_PUCRB_PB8_Msk                       /*!< Pin PB8 Pull-Up set */
6433 #define PWR_PUCRB_PB9_Pos              (9U)
6434 #define PWR_PUCRB_PB9_Msk              (0x1UL << PWR_PUCRB_PB9_Pos)            /*!< 0x00000200 */
6435 #define PWR_PUCRB_PB9                  PWR_PUCRB_PB9_Msk                       /*!< Pin PB9 Pull-Up set */
6436 #define PWR_PUCRB_PB10_Pos             (10U)
6437 #define PWR_PUCRB_PB10_Msk             (0x1UL << PWR_PUCRB_PB10_Pos)           /*!< 0x00000400 */
6438 #define PWR_PUCRB_PB10                 PWR_PUCRB_PB10_Msk                      /*!< Pin PB10 Pull-Up set */
6439 #define PWR_PUCRB_PB11_Pos             (11U)
6440 #define PWR_PUCRB_PB11_Msk             (0x1UL << PWR_PUCRB_PB11_Pos)           /*!< 0x00000800 */
6441 #define PWR_PUCRB_PB11                 PWR_PUCRB_PB11_Msk                      /*!< Pin PB11 Pull-Up set */
6442 #define PWR_PUCRB_PB12_Pos             (12U)
6443 #define PWR_PUCRB_PB12_Msk             (0x1UL << PWR_PUCRB_PB12_Pos)           /*!< 0x00001000 */
6444 #define PWR_PUCRB_PB12                 PWR_PUCRB_PB12_Msk                      /*!< Pin PB12 Pull-Up set */
6445 #define PWR_PUCRB_PB13_Pos             (13U)
6446 #define PWR_PUCRB_PB13_Msk             (0x1UL << PWR_PUCRB_PB13_Pos)           /*!< 0x00002000 */
6447 #define PWR_PUCRB_PB13                 PWR_PUCRB_PB13_Msk                      /*!< Pin PB13 Pull-Up set */
6448 #define PWR_PUCRB_PB14_Pos             (14U)
6449 #define PWR_PUCRB_PB14_Msk             (0x1UL << PWR_PUCRB_PB14_Pos)           /*!< 0x00004000 */
6450 #define PWR_PUCRB_PB14                 PWR_PUCRB_PB14_Msk                      /*!< Pin PB14 Pull-Up set */
6451 #define PWR_PUCRB_PB15_Pos             (15U)
6452 #define PWR_PUCRB_PB15_Msk             (0x1UL << PWR_PUCRB_PB15_Pos)           /*!< 0x00008000 */
6453 #define PWR_PUCRB_PB15                 PWR_PUCRB_PB15_Msk                      /*!< Pin PB15 Pull-Up set */
6454 
6455 /********************  Bit definition for PWR_PDCRB register  *****************/
6456 #define PWR_PDCRB_PB0_Pos              (0U)
6457 #define PWR_PDCRB_PB0_Msk              (0x1UL << PWR_PDCRB_PB0_Pos)            /*!< 0x00000001 */
6458 #define PWR_PDCRB_PB0                  PWR_PDCRB_PB0_Msk                       /*!< Pin PB0 Pull-Down set */
6459 #define PWR_PDCRB_PB1_Pos              (1U)
6460 #define PWR_PDCRB_PB1_Msk              (0x1UL << PWR_PDCRB_PB1_Pos)            /*!< 0x00000002 */
6461 #define PWR_PDCRB_PB1                  PWR_PDCRB_PB1_Msk                       /*!< Pin PB1 Pull-Down set */
6462 #define PWR_PDCRB_PB2_Pos              (2U)
6463 #define PWR_PDCRB_PB2_Msk              (0x1UL << PWR_PDCRB_PB2_Pos)            /*!< 0x00000004 */
6464 #define PWR_PDCRB_PB2                  PWR_PDCRB_PB2_Msk                       /*!< Pin PB2 Pull-Down set */
6465 #define PWR_PDCRB_PB3_Pos              (3U)
6466 #define PWR_PDCRB_PB3_Msk              (0x1UL << PWR_PDCRB_PB3_Pos)            /*!< 0x00000008 */
6467 #define PWR_PDCRB_PB3                  PWR_PDCRB_PB3_Msk                       /*!< Pin PB3 Pull-Down set */
6468 #define PWR_PDCRB_PB4_Pos              (4U)
6469 #define PWR_PDCRB_PB4_Msk              (0x1UL << PWR_PDCRB_PB4_Pos)            /*!< 0x00000010 */
6470 #define PWR_PDCRB_PB4                  PWR_PDCRB_PB4_Msk                       /*!< Pin PB4 Pull-Down set */
6471 #define PWR_PDCRB_PB5_Pos              (5U)
6472 #define PWR_PDCRB_PB5_Msk              (0x1UL << PWR_PDCRB_PB5_Pos)            /*!< 0x00000020 */
6473 #define PWR_PDCRB_PB5                  PWR_PDCRB_PB5_Msk                       /*!< Pin PB5 Pull-Down set */
6474 #define PWR_PDCRB_PB6_Pos              (6U)
6475 #define PWR_PDCRB_PB6_Msk              (0x1UL << PWR_PDCRB_PB6_Pos)            /*!< 0x00000040 */
6476 #define PWR_PDCRB_PB6                  PWR_PDCRB_PB6_Msk                       /*!< Pin PB6 Pull-Down set */
6477 #define PWR_PDCRB_PB7_Pos              (7U)
6478 #define PWR_PDCRB_PB7_Msk              (0x1UL << PWR_PDCRB_PB7_Pos)            /*!< 0x00000080 */
6479 #define PWR_PDCRB_PB7                  PWR_PDCRB_PB7_Msk                       /*!< Pin PB7 Pull-Down set */
6480 #define PWR_PDCRB_PB8_Pos              (8U)
6481 #define PWR_PDCRB_PB8_Msk              (0x1UL << PWR_PDCRB_PB8_Pos)            /*!< 0x00000100 */
6482 #define PWR_PDCRB_PB8                  PWR_PDCRB_PB8_Msk                       /*!< Pin PB8 Pull-Down set */
6483 #define PWR_PDCRB_PB9_Pos              (9U)
6484 #define PWR_PDCRB_PB9_Msk              (0x1UL << PWR_PDCRB_PB9_Pos)            /*!< 0x00000200 */
6485 #define PWR_PDCRB_PB9                  PWR_PDCRB_PB9_Msk                       /*!< Pin PB9 Pull-Down set */
6486 #define PWR_PDCRB_PB10_Pos             (10U)
6487 #define PWR_PDCRB_PB10_Msk             (0x1UL << PWR_PDCRB_PB10_Pos)           /*!< 0x00000400 */
6488 #define PWR_PDCRB_PB10                 PWR_PDCRB_PB10_Msk                      /*!< Pin PB10 Pull-Down set */
6489 #define PWR_PDCRB_PB11_Pos             (11U)
6490 #define PWR_PDCRB_PB11_Msk             (0x1UL << PWR_PDCRB_PB11_Pos)           /*!< 0x00000800 */
6491 #define PWR_PDCRB_PB11                 PWR_PDCRB_PB11_Msk                      /*!< Pin PB11 Pull-Down set */
6492 #define PWR_PDCRB_PB12_Pos             (12U)
6493 #define PWR_PDCRB_PB12_Msk             (0x1UL << PWR_PDCRB_PB12_Pos)           /*!< 0x00001000 */
6494 #define PWR_PDCRB_PB12                 PWR_PDCRB_PB12_Msk                      /*!< Pin PB12 Pull-Down set */
6495 #define PWR_PDCRB_PB13_Pos             (13U)
6496 #define PWR_PDCRB_PB13_Msk             (0x1UL << PWR_PDCRB_PB13_Pos)           /*!< 0x00002000 */
6497 #define PWR_PDCRB_PB13                 PWR_PDCRB_PB13_Msk                      /*!< Pin PB13 Pull-Down set */
6498 #define PWR_PDCRB_PB14_Pos             (14U)
6499 #define PWR_PDCRB_PB14_Msk             (0x1UL << PWR_PDCRB_PB14_Pos)           /*!< 0x00004000 */
6500 #define PWR_PDCRB_PB14                 PWR_PDCRB_PB14_Msk                      /*!< Pin PB14 Pull-Down set */
6501 #define PWR_PDCRB_PB15_Pos             (15U)
6502 #define PWR_PDCRB_PB15_Msk             (0x1UL << PWR_PDCRB_PB15_Pos)           /*!< 0x00008000 */
6503 #define PWR_PDCRB_PB15                 PWR_PDCRB_PB15_Msk                      /*!< Pin PB15 Pull-Down set */
6504 
6505 /********************  Bit definition for PWR_PUCRC register  *****************/
6506 #define PWR_PUCRC_PC0_Pos              (0U)
6507 #define PWR_PUCRC_PC0_Msk              (0x1UL << PWR_PUCRC_PC0_Pos)            /*!< 0x00000001 */
6508 #define PWR_PUCRC_PC0                  PWR_PUCRC_PC0_Msk                       /*!< Pin PC0 Pull-Up set */
6509 #define PWR_PUCRC_PC1_Pos              (1U)
6510 #define PWR_PUCRC_PC1_Msk              (0x1UL << PWR_PUCRC_PC1_Pos)            /*!< 0x00000002 */
6511 #define PWR_PUCRC_PC1                  PWR_PUCRC_PC1_Msk                       /*!< Pin PC1 Pull-Up set */
6512 #define PWR_PUCRC_PC2_Pos              (2U)
6513 #define PWR_PUCRC_PC2_Msk              (0x1UL << PWR_PUCRC_PC2_Pos)            /*!< 0x00000004 */
6514 #define PWR_PUCRC_PC2                  PWR_PUCRC_PC2_Msk                       /*!< Pin PC2 Pull-Up set */
6515 #define PWR_PUCRC_PC3_Pos              (3U)
6516 #define PWR_PUCRC_PC3_Msk              (0x1UL << PWR_PUCRC_PC3_Pos)            /*!< 0x00000008 */
6517 #define PWR_PUCRC_PC3                  PWR_PUCRC_PC3_Msk                       /*!< Pin PC3 Pull-Up set */
6518 #define PWR_PUCRC_PC4_Pos              (4U)
6519 #define PWR_PUCRC_PC4_Msk              (0x1UL << PWR_PUCRC_PC4_Pos)            /*!< 0x00000010 */
6520 #define PWR_PUCRC_PC4                  PWR_PUCRC_PC4_Msk                       /*!< Pin PC4 Pull-Up set */
6521 #define PWR_PUCRC_PC5_Pos              (5U)
6522 #define PWR_PUCRC_PC5_Msk              (0x1UL << PWR_PUCRC_PC5_Pos)            /*!< 0x00000020 */
6523 #define PWR_PUCRC_PC5                  PWR_PUCRC_PC5_Msk                       /*!< Pin PC5 Pull-Up set */
6524 #define PWR_PUCRC_PC6_Pos              (6U)
6525 #define PWR_PUCRC_PC6_Msk              (0x1UL << PWR_PUCRC_PC6_Pos)            /*!< 0x00000040 */
6526 #define PWR_PUCRC_PC6                  PWR_PUCRC_PC6_Msk                       /*!< Pin PC6 Pull-Up set */
6527 #define PWR_PUCRC_PC13_Pos             (13U)
6528 #define PWR_PUCRC_PC13_Msk             (0x1UL << PWR_PUCRC_PC13_Pos)           /*!< 0x00002000 */
6529 #define PWR_PUCRC_PC13                 PWR_PUCRC_PC13_Msk                      /*!< Pin PC13 Pull-Up set */
6530 #define PWR_PUCRC_PC14_Pos             (14U)
6531 #define PWR_PUCRC_PC14_Msk             (0x1UL << PWR_PUCRC_PC14_Pos)           /*!< 0x00004000 */
6532 #define PWR_PUCRC_PC14                 PWR_PUCRC_PC14_Msk                      /*!< Pin PC14 Pull-Up set */
6533 #define PWR_PUCRC_PC15_Pos             (15U)
6534 #define PWR_PUCRC_PC15_Msk             (0x1UL << PWR_PUCRC_PC15_Pos)           /*!< 0x00008000 */
6535 #define PWR_PUCRC_PC15                 PWR_PUCRC_PC15_Msk                      /*!< Pin PC15 Pull-Up set */
6536 
6537 /********************  Bit definition for PWR_PDCRC register  *****************/
6538 #define PWR_PDCRC_PC0_Pos              (0U)
6539 #define PWR_PDCRC_PC0_Msk              (0x1UL << PWR_PDCRC_PC0_Pos)            /*!< 0x00000001 */
6540 #define PWR_PDCRC_PC0                  PWR_PDCRC_PC0_Msk                       /*!< Pin PC0 Pull-Down set */
6541 #define PWR_PDCRC_PC1_Pos              (1U)
6542 #define PWR_PDCRC_PC1_Msk              (0x1UL << PWR_PDCRC_PC1_Pos)            /*!< 0x00000002 */
6543 #define PWR_PDCRC_PC1                  PWR_PDCRC_PC1_Msk                       /*!< Pin PC1 Pull-Down set */
6544 #define PWR_PDCRC_PC2_Pos              (2U)
6545 #define PWR_PDCRC_PC2_Msk              (0x1UL << PWR_PDCRC_PC2_Pos)            /*!< 0x00000004 */
6546 #define PWR_PDCRC_PC2                  PWR_PDCRC_PC2_Msk                       /*!< Pin PC2 Pull-Down set */
6547 #define PWR_PDCRC_PC3_Pos              (3U)
6548 #define PWR_PDCRC_PC3_Msk              (0x1UL << PWR_PDCRC_PC3_Pos)            /*!< 0x00000008 */
6549 #define PWR_PDCRC_PC3                  PWR_PDCRC_PC3_Msk                       /*!< Pin PC3 Pull-Down set */
6550 #define PWR_PDCRC_PC4_Pos              (4U)
6551 #define PWR_PDCRC_PC4_Msk              (0x1UL << PWR_PDCRC_PC4_Pos)            /*!< 0x00000010 */
6552 #define PWR_PDCRC_PC4                  PWR_PDCRC_PC4_Msk                       /*!< Pin PC4 Pull-Down set */
6553 #define PWR_PDCRC_PC5_Pos              (5U)
6554 #define PWR_PDCRC_PC5_Msk              (0x1UL << PWR_PDCRC_PC5_Pos)            /*!< 0x00000020 */
6555 #define PWR_PDCRC_PC5                  PWR_PDCRC_PC5_Msk                       /*!< Pin PC5 Pull-Down set */
6556 #define PWR_PDCRC_PC6_Pos              (6U)
6557 #define PWR_PDCRC_PC6_Msk              (0x1UL << PWR_PDCRC_PC6_Pos)            /*!< 0x00000040 */
6558 #define PWR_PDCRC_PC6                  PWR_PDCRC_PC6_Msk                       /*!< Pin PC6 Pull-Down set */
6559 #define PWR_PDCRC_PC13_Pos             (13U)
6560 #define PWR_PDCRC_PC13_Msk             (0x1UL << PWR_PDCRC_PC13_Pos)           /*!< 0x00002000 */
6561 #define PWR_PDCRC_PC13                 PWR_PDCRC_PC13_Msk                      /*!< Pin PC13 Pull-Down set */
6562 #define PWR_PDCRC_PC14_Pos             (14U)
6563 #define PWR_PDCRC_PC14_Msk             (0x1UL << PWR_PDCRC_PC14_Pos)           /*!< 0x00004000 */
6564 #define PWR_PDCRC_PC14                 PWR_PDCRC_PC14_Msk                      /*!< Pin PC14 Pull-Down set */
6565 #define PWR_PDCRC_PC15_Pos             (15U)
6566 #define PWR_PDCRC_PC15_Msk             (0x1UL << PWR_PDCRC_PC15_Pos)           /*!< 0x00008000 */
6567 #define PWR_PDCRC_PC15                 PWR_PDCRC_PC15_Msk                      /*!< Pin PC15 Pull-Down set */
6568 
6569 /********************  Bit definition for PWR_PUCRH register  *****************/
6570 #define PWR_PUCRH_PH3_Pos              (3U)
6571 #define PWR_PUCRH_PH3_Msk              (0x1UL << PWR_PUCRH_PH3_Pos)            /*!< 0x00000004 */
6572 #define PWR_PUCRH_PH3                  PWR_PUCRH_PH3_Msk                       /*!< Pin PH3 Pull-Up set */
6573 
6574 /********************  Bit definition for PWR_PDCRH register  *****************/
6575 #define PWR_PDCRH_PH3_Pos              (3U)
6576 #define PWR_PDCRH_PH3_Msk              (0x1UL << PWR_PDCRH_PH3_Pos)            /*!< 0x00000004 */
6577 #define PWR_PDCRH_PH3                  PWR_PDCRH_PH3_Msk                       /*!< Pin PH3 Pull-Down set */
6578 
6579 /********************  Bit definition for PWR_C2CR1 register  ********************/
6580 #define PWR_C2CR1_LPMS_Pos             (0U)
6581 #define PWR_C2CR1_LPMS_Msk             (0x7UL << PWR_C2CR1_LPMS_Pos)           /*!< 0x00000007 */
6582 #define PWR_C2CR1_LPMS                 PWR_C2CR1_LPMS_Msk                      /*!< Low Power Mode Selection for CPU2 */
6583 #define PWR_C2CR1_LPMS_0               (0x1UL << PWR_C2CR1_LPMS_Pos)           /*!< 0x00000001 */
6584 #define PWR_C2CR1_LPMS_1               (0x2UL << PWR_C2CR1_LPMS_Pos)           /*!< 0x00000002 */
6585 #define PWR_C2CR1_LPMS_2               (0x4UL << PWR_C2CR1_LPMS_Pos)           /*!< 0x00000004 */
6586 
6587 #define PWR_C2CR1_FPDR_Pos             (4U)
6588 #define PWR_C2CR1_FPDR_Msk             (0x1UL << PWR_C2CR1_FPDR_Pos)           /*!< 0x00000010 */
6589 #define PWR_C2CR1_FPDR                 PWR_C2CR1_FPDR_Msk                      /*!< Flash power down mode during LPrun for CPU2 */
6590 
6591 #define PWR_C2CR1_FPDS_Pos             (5U)
6592 #define PWR_C2CR1_FPDS_Msk             (0x1UL << PWR_C2CR1_FPDS_Pos)           /*!< 0x00000020 */
6593 #define PWR_C2CR1_FPDS                 PWR_C2CR1_FPDS_Msk                      /*!< Flash power down mode during LPsleep for CPU2 */
6594 
6595 /********************  Bit definition for PWR_C2CR3 register  ********************/
6596 #define PWR_C2CR3_EWUP_Pos             (0U)
6597 #define PWR_C2CR3_EWUP_Msk             (0x07UL << PWR_C2CR3_EWUP_Pos)           /*!< 0x00000007 */
6598 #define PWR_C2CR3_EWUP                 PWR_C2CR3_EWUP_Msk                       /*!< Enable all external Wake-Up lines for CPU2 */
6599 #define PWR_C2CR3_EWUP1_Pos            (0U)
6600 #define PWR_C2CR3_EWUP1_Msk            (0x1UL << PWR_C2CR3_EWUP1_Pos)           /*!< 0x00000001 */
6601 #define PWR_C2CR3_EWUP1                PWR_C2CR3_EWUP1_Msk                      /*!< Enable external WKUP Pin 1 [line 0] for CPU2 */
6602 #define PWR_C2CR3_EWUP2_Pos            (1U)
6603 #define PWR_C2CR3_EWUP2_Msk            (0x1UL << PWR_C2CR3_EWUP2_Pos)           /*!< 0x00000002 */
6604 #define PWR_C2CR3_EWUP2                PWR_C2CR3_EWUP2_Msk                      /*!< Enable external WKUP Pin 2 [line 1] for CPU2 */
6605 #define PWR_C2CR3_EWUP3_Pos            (2U)
6606 #define PWR_C2CR3_EWUP3_Msk            (0x1UL << PWR_C2CR3_EWUP3_Pos)           /*!< 0x00000004 */
6607 #define PWR_C2CR3_EWUP3                PWR_C2CR3_EWUP3_Msk                      /*!< Enable external WKUP Pin 3 [line 2] for CPU2 */
6608 
6609 #define PWR_C2CR3_EWPVD_Pos            (8U)
6610 #define PWR_C2CR3_EWPVD_Msk            (0x1UL << PWR_C2CR3_EWPVD_Pos)         /*!< 0x00000100 */
6611 #define PWR_C2CR3_EWPVD                PWR_C2CR3_EWPVD_Msk                    /*!< Enable wakeup PVD for CPU2 */
6612 
6613 #define PWR_C2CR3_APC_Pos              (10U)
6614 #define PWR_C2CR3_APC_Msk              (0x1UL << PWR_C2CR3_APC_Pos)            /*!< 0x00000400 */
6615 #define PWR_C2CR3_APC                  PWR_C2CR3_APC_Msk                       /*!< Apply pull-up and pull-down configuration for CPU2 */
6616 
6617 #define PWR_C2CR3_EWRFBUSY_Pos         (11U)
6618 #define PWR_C2CR3_EWRFBUSY_Msk         (0x1UL << PWR_C2CR3_EWRFBUSY_Pos)       /*!< 0x00000800 */
6619 #define PWR_C2CR3_EWRFBUSY             PWR_C2CR3_EWRFBUSY_Msk                  /*!< Enable Radio busy IRQ and wake-up for CPU2 */
6620 #define PWR_C2CR3_EWRFIRQ_Pos          (13U)
6621 #define PWR_C2CR3_EWRFIRQ_Msk          (0x1UL << PWR_C2CR3_EWRFIRQ_Pos)        /*!< 0x00002000 */
6622 #define PWR_C2CR3_EWRFIRQ              PWR_C2CR3_EWRFIRQ_Msk                   /*!< Enable Radio IRQ[2:0] and wake-up for CPU2 */
6623 
6624 #define PWR_C2CR3_EIWUL_Pos            (15U)
6625 #define PWR_C2CR3_EIWUL_Msk            (0x1UL << PWR_C2CR3_EIWUL_Pos)          /*!< 0x00008000 */
6626 #define PWR_C2CR3_EIWUL                PWR_C2CR3_EIWUL_Msk                     /*!< Internal Wake-Up line interrupt for CPU2 */
6627 
6628 /********************  Bit definition for PWR_EXTSCR register  ********************/
6629 #define PWR_EXTSCR_C1CSSF_Pos          (0U)
6630 #define PWR_EXTSCR_C1CSSF_Msk          (0x1UL << PWR_EXTSCR_C1CSSF_Pos)        /*!< 0x00000001 */
6631 #define PWR_EXTSCR_C1CSSF              PWR_EXTSCR_C1CSSF_Msk                   /*!< Clear standby and stop flags for CPU1 */
6632 #define PWR_EXTSCR_C2CSSF_Pos          (1U)
6633 #define PWR_EXTSCR_C2CSSF_Msk          (0x1UL << PWR_EXTSCR_C2CSSF_Pos)        /*!< 0x00000002 */
6634 #define PWR_EXTSCR_C2CSSF              PWR_EXTSCR_C2CSSF_Msk                   /*!< Clear standby and stop flags for CPU2 */
6635 
6636 #define PWR_EXTSCR_C1SBF_Pos           (8U)
6637 #define PWR_EXTSCR_C1SBF_Msk           (0x1UL << PWR_EXTSCR_C1SBF_Pos)         /*!< 0x00000100 */
6638 #define PWR_EXTSCR_C1SBF               PWR_EXTSCR_C1SBF_Msk                    /*!< System standby flag for CPU1 */
6639 #define PWR_EXTSCR_C1STOP2F_Pos        (9U)
6640 #define PWR_EXTSCR_C1STOP2F_Msk        (0x1UL << PWR_EXTSCR_C1STOP2F_Pos)      /*!< 0x00000200 */
6641 #define PWR_EXTSCR_C1STOP2F            PWR_EXTSCR_C1STOP2F_Msk                 /*!< System stop2 flag for CPU1 */
6642 #define PWR_EXTSCR_C1STOPF_Pos         (10U)
6643 #define PWR_EXTSCR_C1STOPF_Msk         (0x1UL << PWR_EXTSCR_C1STOPF_Pos)       /*!< 0x00000400 */
6644 #define PWR_EXTSCR_C1STOPF             PWR_EXTSCR_C1STOPF_Msk                  /*!< System stop0 or stop1 flag for CPU1 */
6645 
6646 #define PWR_EXTSCR_C2SBF_Pos           (11U)
6647 #define PWR_EXTSCR_C2SBF_Msk           (0x1UL << PWR_EXTSCR_C2SBF_Pos)         /*!< 0x00000800 */
6648 #define PWR_EXTSCR_C2SBF               PWR_EXTSCR_C2SBF_Msk                    /*!< System standby flag for CPU2 */
6649 #define PWR_EXTSCR_C2STOP2F_Pos        (12U)
6650 #define PWR_EXTSCR_C2STOP2F_Msk        (0x1UL << PWR_EXTSCR_C2STOP2F_Pos)      /*!< 0x00001000 */
6651 #define PWR_EXTSCR_C2STOP2F            PWR_EXTSCR_C2STOP2F_Msk                 /*!< System stop2 flag for CPU2 */
6652 #define PWR_EXTSCR_C2STOPF_Pos         (13U)
6653 #define PWR_EXTSCR_C2STOPF_Msk         (0x1UL << PWR_EXTSCR_C2STOPF_Pos)       /*!< 0x00002000 */
6654 #define PWR_EXTSCR_C2STOPF             PWR_EXTSCR_C2STOPF_Msk                  /*!< System stop0 or stop1 flag for CPU2 */
6655 
6656 #define PWR_EXTSCR_C1DS_Pos            (14U)
6657 #define PWR_EXTSCR_C1DS_Msk            (0x1UL << PWR_EXTSCR_C1DS_Pos)          /*!< 0x00004000 */
6658 #define PWR_EXTSCR_C1DS                PWR_EXTSCR_C1DS_Msk                     /*!< CPU1 deepsleep mode flag */
6659 #define PWR_EXTSCR_C2DS_Pos            (15U)
6660 #define PWR_EXTSCR_C2DS_Msk            (0x1UL << PWR_EXTSCR_C2DS_Pos)          /*!< 0x00008000 */
6661 #define PWR_EXTSCR_C2DS                PWR_EXTSCR_C2DS_Msk                     /*!< CPU2 deepsleep mode flag */
6662 
6663 /********************  Bit definition for PWR_SECCFGR register  ********************/
6664 #define PWR_SECCFGR_C2EWILA_Pos        (15U)
6665 #define PWR_SECCFGR_C2EWILA_Msk        (0x1UL << PWR_SECCFGR_C2EWILA_Pos)      /*!< 0x00008000 */
6666 #define PWR_SECCFGR_C2EWILA            PWR_SECCFGR_C2EWILA_Msk                 /*!< CPU2 illegal access interrupt enable */
6667 
6668 /********************  Bit definition for PWR_SUBGHZSPICR register  ********************/
6669 #define PWR_SUBGHZSPICR_NSS_Pos         (15U)
6670 #define PWR_SUBGHZSPICR_NSS_Msk         (0x1UL << PWR_SUBGHZSPICR_NSS_Pos)       /*!< 0x00008000 */
6671 #define PWR_SUBGHZSPICR_NSS             PWR_SUBGHZSPICR_NSS_Msk                  /*!< Sub-GHz radio SUBGHZSPI_NSS control */
6672 
6673 /********************  Bit definition for PWR_RSSCMDR register  ********************/
6674 #define PWR_RSSCMDR_RSSCMD_Pos         (0U)
6675 #define PWR_RSSCMDR_RSSCMD_Msk         (0xFFUL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x000000FF */
6676 #define PWR_RSSCMDR_RSSCMD             PWR_RSSCMDR_RSSCMD_Msk                  /*!< RSS command */
6677 #define PWR_RSSCMDR_RSSCMD_0           (0x01UL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x00000001 */
6678 #define PWR_RSSCMDR_RSSCMD_1           (0x02UL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x00000002 */
6679 #define PWR_RSSCMDR_RSSCMD_2           (0x04UL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x00000004 */
6680 #define PWR_RSSCMDR_RSSCMD_3           (0x08UL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x00000008 */
6681 #define PWR_RSSCMDR_RSSCMD_4           (0x10UL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x00000010 */
6682 #define PWR_RSSCMDR_RSSCMD_5           (0x20UL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x00000020 */
6683 #define PWR_RSSCMDR_RSSCMD_6           (0x40UL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x00000040 */
6684 #define PWR_RSSCMDR_RSSCMD_7           (0x80UL << PWR_RSSCMDR_RSSCMD_Pos)      /*!< 0x00000080 */
6685 
6686 /******************************************************************************/
6687 /*                                                                            */
6688 /*                         Reset and Clock Control                            */
6689 /*                                                                            */
6690 /******************************************************************************/
6691 
6692 /********************  Bit definition for RCC_CR register  *****************/
6693 #define RCC_CR_MSION_Pos                     (0U)
6694 #define RCC_CR_MSION_Msk                     (0x1UL << RCC_CR_MSION_Pos)       /*!< 0x00000001 */
6695 #define RCC_CR_MSION                         RCC_CR_MSION_Msk                  /*!< Internal Multi Speed oscillator (MSI) clock enable */
6696 #define RCC_CR_MSIRDY_Pos                    (1U)
6697 #define RCC_CR_MSIRDY_Msk                    (0x1UL << RCC_CR_MSIRDY_Pos)      /*!< 0x00000002 */
6698 #define RCC_CR_MSIRDY                        RCC_CR_MSIRDY_Msk                 /*!< Internal Multi Speed oscillator (MSI) clock ready flag */
6699 #define RCC_CR_MSIPLLEN_Pos                  (2U)
6700 #define RCC_CR_MSIPLLEN_Msk                  (0x1UL << RCC_CR_MSIPLLEN_Pos)    /*!< 0x00000004 */
6701 #define RCC_CR_MSIPLLEN                      RCC_CR_MSIPLLEN_Msk               /*!< Internal Multi Speed oscillator (MSI) PLL enable */
6702 #define RCC_CR_MSIRGSEL_Pos                  (3U)
6703 #define RCC_CR_MSIRGSEL_Msk                  (0x1UL << RCC_CR_MSIRGSEL_Pos)    /*!< 0x00000008 */
6704 #define RCC_CR_MSIRGSEL                      RCC_CR_MSIRGSEL_Msk               /*!< Internal Multi Speed oscillator (MSI) range selection */
6705 
6706 /*!< MSIRANGE configuration : 12 frequency ranges available */
6707 #define RCC_CR_MSIRANGE_Pos                  (4U)
6708 #define RCC_CR_MSIRANGE_Msk                  (0xFUL << RCC_CR_MSIRANGE_Pos)    /*!< 0x000000F0 */
6709 #define RCC_CR_MSIRANGE                      RCC_CR_MSIRANGE_Msk               /*!< Internal Multi Speed oscillator (MSI) clock Range */
6710 #define RCC_CR_MSIRANGE_0                    (0x0UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000000 */
6711 #define RCC_CR_MSIRANGE_1                    (0x1UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000010 */
6712 #define RCC_CR_MSIRANGE_2                    (0x2UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000020 */
6713 #define RCC_CR_MSIRANGE_3                    (0x3UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000030 */
6714 #define RCC_CR_MSIRANGE_4                    (0x4UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000040 */
6715 #define RCC_CR_MSIRANGE_5                    (0x5UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000050 */
6716 #define RCC_CR_MSIRANGE_6                    (0x6UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000060 */
6717 #define RCC_CR_MSIRANGE_7                    (0x7UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000070 */
6718 #define RCC_CR_MSIRANGE_8                    (0x8UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000080 */
6719 #define RCC_CR_MSIRANGE_9                    (0x9UL << RCC_CR_MSIRANGE_Pos)    /*!< 0x00000090 */
6720 #define RCC_CR_MSIRANGE_10                   (0xAUL << RCC_CR_MSIRANGE_Pos)    /*!< 0x000000A0 */
6721 #define RCC_CR_MSIRANGE_11                   (0xBUL << RCC_CR_MSIRANGE_Pos)    /*!< 0x000000B0 */
6722 
6723 #define RCC_CR_HSION_Pos                     (8U)
6724 #define RCC_CR_HSION_Msk                     (0x1UL << RCC_CR_HSION_Pos)       /*!< 0x00000100 */
6725 #define RCC_CR_HSION                         RCC_CR_HSION_Msk                  /*!< Internal High Speed oscillator (HSI16) clock enable */
6726 #define RCC_CR_HSIKERON_Pos                  (9U)
6727 #define RCC_CR_HSIKERON_Msk                  (0x1UL << RCC_CR_HSIKERON_Pos)    /*!< 0x00000200 */
6728 #define RCC_CR_HSIKERON                      RCC_CR_HSIKERON_Msk               /*!< Internal High Speed oscillator (HSI16) clock enable for some IPs Kernel */
6729 #define RCC_CR_HSIRDY_Pos                    (10U)
6730 #define RCC_CR_HSIRDY_Msk                    (0x1UL << RCC_CR_HSIRDY_Pos)      /*!< 0x00000400 */
6731 #define RCC_CR_HSIRDY                        RCC_CR_HSIRDY_Msk                 /*!< Internal High Speed oscillator (HSI16) clock ready flag */
6732 #define RCC_CR_HSIASFS_Pos                   (11U)
6733 #define RCC_CR_HSIASFS_Msk                   (0x1UL << RCC_CR_HSIASFS_Pos)     /*!< 0x00000800 */
6734 #define RCC_CR_HSIASFS                       RCC_CR_HSIASFS_Msk                /*!< HSI16 Automatic Start from Stop */
6735 #define RCC_CR_HSIKERDY_Pos                  (12U)
6736 #define RCC_CR_HSIKERDY_Msk                  (0x1UL << RCC_CR_HSIKERDY_Pos)     /*!< 0x00001000 */
6737 #define RCC_CR_HSIKERDY                       RCC_CR_HSIKERDY_Msk               /*!< Internal High Speed oscillator (HSI16) clock enable for some IPs Kernel ready flag*/
6738 
6739 #define RCC_CR_HSEON_Pos                     (16U)
6740 #define RCC_CR_HSEON_Msk                     (0x1UL << RCC_CR_HSEON_Pos)       /*!< 0x00010000 */
6741 #define RCC_CR_HSEON                         RCC_CR_HSEON_Msk                  /*!< External High Speed oscillator (HSE) clock enable */
6742 #define RCC_CR_HSERDY_Pos                    (17U)
6743 #define RCC_CR_HSERDY_Msk                    (0x1UL << RCC_CR_HSERDY_Pos)      /*!< 0x00020000 */
6744 #define RCC_CR_HSERDY                        RCC_CR_HSERDY_Msk                 /*!< External High Speed oscillator (HSE) clock ready */
6745 #define RCC_CR_CSSON_Pos                     (19U)
6746 #define RCC_CR_CSSON_Msk                     (0x1UL << RCC_CR_CSSON_Pos)       /*!< 0x00080000 */
6747 #define RCC_CR_CSSON                         RCC_CR_CSSON_Msk                  /*!< HSE Clock Security System enable */
6748 #define RCC_CR_HSEPRE_Pos                    (20U)
6749 #define RCC_CR_HSEPRE_Msk                    (0x1UL << RCC_CR_HSEPRE_Pos)       /*!< 0x00100000 */
6750 #define RCC_CR_HSEPRE                        RCC_CR_HSEPRE_Msk                  /*!< HSE sysclk prescaler */
6751 #define RCC_CR_HSEBYPPWR_Pos                 (21U)
6752 #define RCC_CR_HSEBYPPWR_Msk                 (0x1UL << RCC_CR_HSEBYPPWR_Pos)    /*!< 0x00200000 */
6753 #define RCC_CR_HSEBYPPWR                     RCC_CR_HSEBYPPWR_Msk               /*!< Enable HSE32 VDDTCXO */
6754 
6755 #define RCC_CR_PLLON_Pos                     (24U)
6756 #define RCC_CR_PLLON_Msk                     (0x1UL << RCC_CR_PLLON_Pos)       /*!< 0x01000000 */
6757 #define RCC_CR_PLLON                         RCC_CR_PLLON_Msk                  /*!< System PLL clock enable */
6758 #define RCC_CR_PLLRDY_Pos                    (25U)
6759 #define RCC_CR_PLLRDY_Msk                    (0x1UL << RCC_CR_PLLRDY_Pos)      /*!< 0x02000000 */
6760 #define RCC_CR_PLLRDY                        RCC_CR_PLLRDY_Msk                 /*!< System PLL clock ready */
6761 
6762 /********************  Bit definition for RCC_ICSCR register  ***************/
6763 /*!< MSICAL configuration */
6764 #define RCC_ICSCR_MSICAL_Pos                 (0U)
6765 #define RCC_ICSCR_MSICAL_Msk                 (0xFFUL << RCC_ICSCR_MSICAL_Pos)  /*!< 0x000000FF */
6766 #define RCC_ICSCR_MSICAL                     RCC_ICSCR_MSICAL_Msk              /*!< MSICAL[7:0] bits */
6767 
6768 /*!< MSITRIM configuration */
6769 #define RCC_ICSCR_MSITRIM_Pos                (8U)
6770 #define RCC_ICSCR_MSITRIM_Msk                (0xFFUL << RCC_ICSCR_MSITRIM_Pos) /*!< 0x0000FF00 */
6771 #define RCC_ICSCR_MSITRIM                    RCC_ICSCR_MSITRIM_Msk             /*!< MSITRIM[7:0] bits */
6772 
6773 /*!< HSICAL configuration */
6774 #define RCC_ICSCR_HSICAL_Pos                 (16U)
6775 #define RCC_ICSCR_HSICAL_Msk                 (0xFFUL << RCC_ICSCR_HSICAL_Pos)  /*!< 0x00FF0000 */
6776 #define RCC_ICSCR_HSICAL                     RCC_ICSCR_HSICAL_Msk              /*!< HSICAL[7:0] bits */
6777 
6778 /*!< HSITRIM configuration */
6779 #define RCC_ICSCR_HSITRIM_Pos                (24U)
6780 #define RCC_ICSCR_HSITRIM_Msk                (0x7FUL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x7F000000 */
6781 #define RCC_ICSCR_HSITRIM                    RCC_ICSCR_HSITRIM_Msk             /*!< HSITRIM[6:0] bits */
6782 
6783 /********************  Bit definition for RCC_CFGR register  ******************/
6784 /*!< SW configuration */
6785 #define RCC_CFGR_SW_Pos                      (0U)
6786 #define RCC_CFGR_SW_Msk                      (0x3UL << RCC_CFGR_SW_Pos)        /*!< 0x00000003 */
6787 #define RCC_CFGR_SW                          RCC_CFGR_SW_Msk                   /*!< SW[1:0] bits (System clock Switch) */
6788 #define RCC_CFGR_SW_0                        (0x1UL << RCC_CFGR_SW_Pos)        /*!< 0x00000001 */
6789 #define RCC_CFGR_SW_1                        (0x2UL << RCC_CFGR_SW_Pos)        /*!< 0x00000002 */
6790 
6791 /*!< SWS configuration */
6792 #define RCC_CFGR_SWS_Pos                     (2U)
6793 #define RCC_CFGR_SWS_Msk                     (0x3UL << RCC_CFGR_SWS_Pos)       /*!< 0x0000000C */
6794 #define RCC_CFGR_SWS                         RCC_CFGR_SWS_Msk                  /*!< SWS[1:0] bits (System Clock Switch Status) */
6795 #define RCC_CFGR_SWS_0                       (0x1UL << RCC_CFGR_SWS_Pos)       /*!< 0x00000004 */
6796 #define RCC_CFGR_SWS_1                       (0x2UL << RCC_CFGR_SWS_Pos)       /*!< 0x00000008 */
6797 
6798 /*!< HPRE configuration */
6799 #define RCC_CFGR_HPRE_Pos                    (4U)
6800 #define RCC_CFGR_HPRE_Msk                    (0xFUL << RCC_CFGR_HPRE_Pos)      /*!< 0x000000F0 */
6801 #define RCC_CFGR_HPRE                        RCC_CFGR_HPRE_Msk                 /*!< HPRE[3:0] bits (AHB prescaler) */
6802 #define RCC_CFGR_HPRE_0                      (0x1UL << RCC_CFGR_HPRE_Pos)      /*!< 0x00000010 */
6803 #define RCC_CFGR_HPRE_1                      (0x2UL << RCC_CFGR_HPRE_Pos)      /*!< 0x00000020 */
6804 #define RCC_CFGR_HPRE_2                      (0x4UL << RCC_CFGR_HPRE_Pos)      /*!< 0x00000040 */
6805 #define RCC_CFGR_HPRE_3                      (0x8UL << RCC_CFGR_HPRE_Pos)      /*!< 0x00000080 */
6806 
6807 /*!< PPRE1 configuration */
6808 #define RCC_CFGR_PPRE1_Pos                   (8U)
6809 #define RCC_CFGR_PPRE1_Msk                   (0x7UL << RCC_CFGR_PPRE1_Pos)     /*!< 0x00000700 */
6810 #define RCC_CFGR_PPRE1                       RCC_CFGR_PPRE1_Msk                /*!< PRE1[2:0] bits (APB1 prescaler) */
6811 #define RCC_CFGR_PPRE1_0                     (0x1UL << RCC_CFGR_PPRE1_Pos)     /*!< 0x00000100 */
6812 #define RCC_CFGR_PPRE1_1                     (0x2UL << RCC_CFGR_PPRE1_Pos)     /*!< 0x00000200 */
6813 #define RCC_CFGR_PPRE1_2                     (0x4UL << RCC_CFGR_PPRE1_Pos)     /*!< 0x00000400 */
6814 
6815 /*!< PPRE2 configuration */
6816 #define RCC_CFGR_PPRE2_Pos                   (11U)
6817 #define RCC_CFGR_PPRE2_Msk                   (0x7UL << RCC_CFGR_PPRE2_Pos)     /*!< 0x00003800 */
6818 #define RCC_CFGR_PPRE2                       RCC_CFGR_PPRE2_Msk                /*!< PRE2[2:0] bits (APB2 prescaler) */
6819 #define RCC_CFGR_PPRE2_0                     (0x1UL << RCC_CFGR_PPRE2_Pos)     /*!< 0x00000800 */
6820 #define RCC_CFGR_PPRE2_1                     (0x2UL << RCC_CFGR_PPRE2_Pos)     /*!< 0x00001000 */
6821 #define RCC_CFGR_PPRE2_2                     (0x4UL << RCC_CFGR_PPRE2_Pos)     /*!< 0x00002000 */
6822 
6823 /*!< STOPWUCK configuration */
6824 #define RCC_CFGR_STOPWUCK_Pos                (15U)
6825 #define RCC_CFGR_STOPWUCK_Msk                (0x1UL << RCC_CFGR_STOPWUCK_Pos)  /*!< 0x00008000 */
6826 #define RCC_CFGR_STOPWUCK                    RCC_CFGR_STOPWUCK_Msk             /*!< Wake Up from stop and CSS backup clock selection */
6827 
6828 /*!< HPREF configuration */
6829 #define RCC_CFGR_HPREF_Pos                   (16U)
6830 #define RCC_CFGR_HPREF_Msk                   (0x1UL << RCC_CFGR_HPREF_Pos)     /*!< 0x00010000 */
6831 #define RCC_CFGR_HPREF                       RCC_CFGR_HPREF_Msk                /*!< AHB prescaler flag */
6832 
6833 /*!< PPRE1F configuration */
6834 #define RCC_CFGR_PPRE1F_Pos                  (17U)
6835 #define RCC_CFGR_PPRE1F_Msk                  (0x1UL << RCC_CFGR_PPRE1F_Pos)    /*!< 0x00020000 */
6836 #define RCC_CFGR_PPRE1F                      RCC_CFGR_PPRE1F_Msk               /*!< CPU1 APB1 prescaler flag */
6837 
6838 /*!< PPRE2F configuration */
6839 #define RCC_CFGR_PPRE2F_Pos                  (18U)
6840 #define RCC_CFGR_PPRE2F_Msk                  (0x1UL << RCC_CFGR_PPRE2F_Pos)    /*!< 0x00040000 */
6841 #define RCC_CFGR_PPRE2F                      RCC_CFGR_PPRE2F_Msk               /*!< APB2 prescaler flag */
6842 
6843 /*!< MCOSEL configuration */
6844 #define RCC_CFGR_MCOSEL_Pos                  (24U)
6845 #define RCC_CFGR_MCOSEL_Msk                  (0xFUL << RCC_CFGR_MCOSEL_Pos)    /*!< 0x0F000000 */
6846 #define RCC_CFGR_MCOSEL                      RCC_CFGR_MCOSEL_Msk               /*!< MCOSEL [3:0] bits (Clock output selection) */
6847 #define RCC_CFGR_MCOSEL_0                    (0x1UL << RCC_CFGR_MCOSEL_Pos)    /*!< 0x01000000 */
6848 #define RCC_CFGR_MCOSEL_1                    (0x2UL << RCC_CFGR_MCOSEL_Pos)    /*!< 0x02000000 */
6849 #define RCC_CFGR_MCOSEL_2                    (0x4UL << RCC_CFGR_MCOSEL_Pos)    /*!< 0x04000000 */
6850 #define RCC_CFGR_MCOSEL_3                    (0x8UL << RCC_CFGR_MCOSEL_Pos)    /*!< 0x08000000 */
6851 
6852 /*!< MCOPRE configuration */
6853 #define RCC_CFGR_MCOPRE_Pos                  (28U)
6854 #define RCC_CFGR_MCOPRE_Msk                  (0x7UL << RCC_CFGR_MCOPRE_Pos)    /*!< 0x70000000 */
6855 #define RCC_CFGR_MCOPRE                      RCC_CFGR_MCOPRE_Msk               /*!< MCO prescaler */
6856 #define RCC_CFGR_MCOPRE_0                    (0x1UL << RCC_CFGR_MCOPRE_Pos)    /*!< 0x10000000 */
6857 #define RCC_CFGR_MCOPRE_1                    (0x2UL << RCC_CFGR_MCOPRE_Pos)    /*!< 0x20000000 */
6858 #define RCC_CFGR_MCOPRE_2                    (0x4UL << RCC_CFGR_MCOPRE_Pos)    /*!< 0x40000000 */
6859 
6860 /********************  Bit definition for RCC_PLLCFGR register  ***************/
6861 #define RCC_PLLCFGR_PLLSRC_Pos               (0U)
6862 #define RCC_PLLCFGR_PLLSRC_Msk               (0x3UL << RCC_PLLCFGR_PLLSRC_Pos)/*!< 0x00000003 */
6863 #define RCC_PLLCFGR_PLLSRC                   RCC_PLLCFGR_PLLSRC_Msk
6864 #define RCC_PLLCFGR_PLLSRC_0                 (0x1UL << RCC_PLLCFGR_PLLSRC_Pos)/*!< 0x00000001 */
6865 #define RCC_PLLCFGR_PLLSRC_1                 (0x2UL << RCC_PLLCFGR_PLLSRC_Pos)/*!< 0x00000002 */
6866 
6867 #define RCC_PLLCFGR_PLLM_Pos                 (4U)
6868 #define RCC_PLLCFGR_PLLM_Msk                 (0x7UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000070 */
6869 #define RCC_PLLCFGR_PLLM                     RCC_PLLCFGR_PLLM_Msk
6870 #define RCC_PLLCFGR_PLLM_0                   (0x1UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000010 */
6871 #define RCC_PLLCFGR_PLLM_1                   (0x2UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000020 */
6872 #define RCC_PLLCFGR_PLLM_2                   (0x4UL << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000040 */
6873 
6874 #define RCC_PLLCFGR_PLLN_Pos                 (8U)
6875 #define RCC_PLLCFGR_PLLN_Msk                 (0x7FUL << RCC_PLLCFGR_PLLN_Pos)/*!< 0x00007F00 */
6876 #define RCC_PLLCFGR_PLLN                     RCC_PLLCFGR_PLLN_Msk
6877 #define RCC_PLLCFGR_PLLN_0                   (0x01UL << RCC_PLLCFGR_PLLN_Pos)/*!< 0x00000100 */
6878 #define RCC_PLLCFGR_PLLN_1                   (0x02UL << RCC_PLLCFGR_PLLN_Pos)/*!< 0x00000200 */
6879 #define RCC_PLLCFGR_PLLN_2                   (0x04UL << RCC_PLLCFGR_PLLN_Pos)/*!< 0x00000400 */
6880 #define RCC_PLLCFGR_PLLN_3                   (0x08UL << RCC_PLLCFGR_PLLN_Pos)/*!< 0x00000800 */
6881 #define RCC_PLLCFGR_PLLN_4                   (0x10UL << RCC_PLLCFGR_PLLN_Pos)/*!< 0x00001000 */
6882 #define RCC_PLLCFGR_PLLN_5                   (0x20UL << RCC_PLLCFGR_PLLN_Pos)/*!< 0x00002000 */
6883 #define RCC_PLLCFGR_PLLN_6                   (0x40UL << RCC_PLLCFGR_PLLN_Pos)/*!< 0x00004000 */
6884 
6885 #define RCC_PLLCFGR_PLLPEN_Pos               (16U)
6886 #define RCC_PLLCFGR_PLLPEN_Msk               (0x1UL << RCC_PLLCFGR_PLLPEN_Pos)/*!< 0x00010000 */
6887 #define RCC_PLLCFGR_PLLPEN                   RCC_PLLCFGR_PLLPEN_Msk
6888 #define RCC_PLLCFGR_PLLP_Pos                 (17U)
6889 #define RCC_PLLCFGR_PLLP_Msk                 (0x1FUL << RCC_PLLCFGR_PLLP_Pos)/*!< 0x003E0000 */
6890 #define RCC_PLLCFGR_PLLP                     RCC_PLLCFGR_PLLP_Msk
6891 #define RCC_PLLCFGR_PLLP_0                   (0x01UL << RCC_PLLCFGR_PLLP_Pos)/*!< 0x00020000 */
6892 #define RCC_PLLCFGR_PLLP_1                   (0x02UL << RCC_PLLCFGR_PLLP_Pos)/*!< 0x00040000 */
6893 #define RCC_PLLCFGR_PLLP_2                   (0x04UL << RCC_PLLCFGR_PLLP_Pos)/*!< 0x00080000 */
6894 #define RCC_PLLCFGR_PLLP_3                   (0x08UL << RCC_PLLCFGR_PLLP_Pos)/*!< 0x00100000 */
6895 #define RCC_PLLCFGR_PLLP_4                   (0x10UL << RCC_PLLCFGR_PLLP_Pos)/*!< 0x00200000 */
6896 
6897 #define RCC_PLLCFGR_PLLQEN_Pos               (24U)
6898 #define RCC_PLLCFGR_PLLQEN_Msk               (0x1UL << RCC_PLLCFGR_PLLQEN_Pos)/*!< 0x01000000 */
6899 #define RCC_PLLCFGR_PLLQEN                   RCC_PLLCFGR_PLLQEN_Msk
6900 #define RCC_PLLCFGR_PLLQ_Pos                 (25U)
6901 #define RCC_PLLCFGR_PLLQ_Msk                 (0x7UL << RCC_PLLCFGR_PLLQ_Pos)/*!< 0x0E000000 */
6902 #define RCC_PLLCFGR_PLLQ                     RCC_PLLCFGR_PLLQ_Msk
6903 #define RCC_PLLCFGR_PLLQ_0                   (0x1UL << RCC_PLLCFGR_PLLQ_Pos)/*!< 0x02000000 */
6904 #define RCC_PLLCFGR_PLLQ_1                   (0x2UL << RCC_PLLCFGR_PLLQ_Pos)/*!< 0x04000000 */
6905 #define RCC_PLLCFGR_PLLQ_2                   (0x4UL << RCC_PLLCFGR_PLLQ_Pos)/*!< 0x08000000 */
6906 
6907 #define RCC_PLLCFGR_PLLREN_Pos               (28U)
6908 #define RCC_PLLCFGR_PLLREN_Msk               (0x1UL << RCC_PLLCFGR_PLLREN_Pos)/*!< 0x10000000 */
6909 #define RCC_PLLCFGR_PLLREN                   RCC_PLLCFGR_PLLREN_Msk
6910 #define RCC_PLLCFGR_PLLR_Pos                 (29U)
6911 #define RCC_PLLCFGR_PLLR_Msk                 (0x7UL << RCC_PLLCFGR_PLLR_Pos)/*!< 0xE0000000 */
6912 #define RCC_PLLCFGR_PLLR                     RCC_PLLCFGR_PLLR_Msk
6913 #define RCC_PLLCFGR_PLLR_0                   (0x1UL << RCC_PLLCFGR_PLLR_Pos)/*!< 0x20000000 */
6914 #define RCC_PLLCFGR_PLLR_1                   (0x2UL << RCC_PLLCFGR_PLLR_Pos)/*!< 0x40000000 */
6915 #define RCC_PLLCFGR_PLLR_2                   (0x4UL << RCC_PLLCFGR_PLLR_Pos)/*!< 0x80000000 */
6916 
6917 
6918 /********************  Bit definition for RCC_CIER register  ******************/
6919 #define RCC_CIER_LSIRDYIE_Pos                (0U)
6920 #define RCC_CIER_LSIRDYIE_Msk                (0x1UL << RCC_CIER_LSIRDYIE_Pos)  /*!< 0x00000001 */
6921 #define RCC_CIER_LSIRDYIE                    RCC_CIER_LSIRDYIE_Msk
6922 #define RCC_CIER_LSERDYIE_Pos                (1U)
6923 #define RCC_CIER_LSERDYIE_Msk                (0x1UL << RCC_CIER_LSERDYIE_Pos)   /*!< 0x00000002 */
6924 #define RCC_CIER_LSERDYIE                    RCC_CIER_LSERDYIE_Msk
6925 #define RCC_CIER_MSIRDYIE_Pos                (2U)
6926 #define RCC_CIER_MSIRDYIE_Msk                (0x1UL << RCC_CIER_MSIRDYIE_Pos)   /*!< 0x00000004 */
6927 #define RCC_CIER_MSIRDYIE                    RCC_CIER_MSIRDYIE_Msk
6928 #define RCC_CIER_HSIRDYIE_Pos                (3U)
6929 #define RCC_CIER_HSIRDYIE_Msk                (0x1UL << RCC_CIER_HSIRDYIE_Pos)   /*!< 0x00000008 */
6930 #define RCC_CIER_HSIRDYIE                    RCC_CIER_HSIRDYIE_Msk
6931 #define RCC_CIER_HSERDYIE_Pos                (4U)
6932 #define RCC_CIER_HSERDYIE_Msk                (0x1UL << RCC_CIER_HSERDYIE_Pos)   /*!< 0x00000010 */
6933 #define RCC_CIER_HSERDYIE                    RCC_CIER_HSERDYIE_Msk
6934 #define RCC_CIER_PLLRDYIE_Pos                (5U)
6935 #define RCC_CIER_PLLRDYIE_Msk                (0x1UL << RCC_CIER_PLLRDYIE_Pos)/*!< 0x00000020 */
6936 #define RCC_CIER_PLLRDYIE                    RCC_CIER_PLLRDYIE_Msk
6937 #define RCC_CIER_LSECSSIE_Pos                (9U)
6938 #define RCC_CIER_LSECSSIE_Msk                (0x1UL << RCC_CIER_LSECSSIE_Pos)   /*!< 0x00000200 */
6939 #define RCC_CIER_LSECSSIE                    RCC_CIER_LSECSSIE_Msk
6940 
6941 /********************  Bit definition for RCC_CIFR register  ******************/
6942 #define RCC_CIFR_LSIRDYF_Pos                 (0U)
6943 #define RCC_CIFR_LSIRDYF_Msk                 (0x1UL << RCC_CIFR_LSIRDYF_Pos)  /*!< 0x00000001 */
6944 #define RCC_CIFR_LSIRDYF                     RCC_CIFR_LSIRDYF_Msk
6945 #define RCC_CIFR_LSERDYF_Pos                 (1U)
6946 #define RCC_CIFR_LSERDYF_Msk                 (0x1UL << RCC_CIFR_LSERDYF_Pos)   /*!< 0x00000002 */
6947 #define RCC_CIFR_LSERDYF                     RCC_CIFR_LSERDYF_Msk
6948 #define RCC_CIFR_MSIRDYF_Pos                 (2U)
6949 #define RCC_CIFR_MSIRDYF_Msk                 (0x1UL << RCC_CIFR_MSIRDYF_Pos)   /*!< 0x00000004 */
6950 #define RCC_CIFR_MSIRDYF                     RCC_CIFR_MSIRDYF_Msk
6951 #define RCC_CIFR_HSIRDYF_Pos                 (3U)
6952 #define RCC_CIFR_HSIRDYF_Msk                 (0x1UL << RCC_CIFR_HSIRDYF_Pos)   /*!< 0x00000008 */
6953 #define RCC_CIFR_HSIRDYF                     RCC_CIFR_HSIRDYF_Msk
6954 #define RCC_CIFR_HSERDYF_Pos                 (4U)
6955 #define RCC_CIFR_HSERDYF_Msk                 (0x1UL << RCC_CIFR_HSERDYF_Pos)   /*!< 0x00000010 */
6956 #define RCC_CIFR_HSERDYF                     RCC_CIFR_HSERDYF_Msk
6957 #define RCC_CIFR_PLLRDYF_Pos                 (5U)
6958 #define RCC_CIFR_PLLRDYF_Msk                 (0x1UL << RCC_CIFR_PLLRDYF_Pos)/*!< 0x00000020 */
6959 #define RCC_CIFR_PLLRDYF                     RCC_CIFR_PLLRDYF_Msk
6960 #define RCC_CIFR_CSSF_Pos                    (8U)
6961 #define RCC_CIFR_CSSF_Msk                    (0x1UL << RCC_CIFR_CSSF_Pos)   /*!< 0x00000100 */
6962 #define RCC_CIFR_CSSF                        RCC_CIFR_CSSF_Msk
6963 #define RCC_CIFR_LSECSSF_Pos                 (9U)
6964 #define RCC_CIFR_LSECSSF_Msk                 (0x1UL << RCC_CIFR_LSECSSF_Pos)   /*!< 0x00000200 */
6965 #define RCC_CIFR_LSECSSF                     RCC_CIFR_LSECSSF_Msk
6966 
6967 /********************  Bit definition for RCC_CICR register  ******************/
6968 #define RCC_CICR_LSIRDYC_Pos                (0U)
6969 #define RCC_CICR_LSIRDYC_Msk                (0x1UL << RCC_CICR_LSIRDYC_Pos)  /*!< 0x00000001 */
6970 #define RCC_CICR_LSIRDYC                    RCC_CICR_LSIRDYC_Msk
6971 #define RCC_CICR_LSERDYC_Pos                (1U)
6972 #define RCC_CICR_LSERDYC_Msk                (0x1UL << RCC_CICR_LSERDYC_Pos)   /*!< 0x00000002 */
6973 #define RCC_CICR_LSERDYC                    RCC_CICR_LSERDYC_Msk
6974 #define RCC_CICR_MSIRDYC_Pos                (2U)
6975 #define RCC_CICR_MSIRDYC_Msk                (0x1UL << RCC_CICR_MSIRDYC_Pos)   /*!< 0x00000004 */
6976 #define RCC_CICR_MSIRDYC                    RCC_CICR_MSIRDYC_Msk
6977 #define RCC_CICR_HSIRDYC_Pos                (3U)
6978 #define RCC_CICR_HSIRDYC_Msk                (0x1UL << RCC_CICR_HSIRDYC_Pos)   /*!< 0x00000008 */
6979 #define RCC_CICR_HSIRDYC                    RCC_CICR_HSIRDYC_Msk
6980 #define RCC_CICR_HSERDYC_Pos                (4U)
6981 #define RCC_CICR_HSERDYC_Msk                (0x1UL << RCC_CICR_HSERDYC_Pos)   /*!< 0x00000010 */
6982 #define RCC_CICR_HSERDYC                    RCC_CICR_HSERDYC_Msk
6983 #define RCC_CICR_PLLRDYC_Pos                (5U)
6984 #define RCC_CICR_PLLRDYC_Msk                (0x1UL << RCC_CICR_PLLRDYC_Pos)/*!< 0x00000020 */
6985 #define RCC_CICR_PLLRDYC                    RCC_CICR_PLLRDYC_Msk
6986 #define RCC_CICR_CSSC_Pos                   (8U)
6987 #define RCC_CICR_CSSC_Msk                   (0x1UL << RCC_CICR_CSSC_Pos)   /*!< 0x00000100 */
6988 #define RCC_CICR_CSSC                       RCC_CICR_CSSC_Msk
6989 #define RCC_CICR_LSECSSC_Pos                (9U)
6990 #define RCC_CICR_LSECSSC_Msk                (0x1UL << RCC_CICR_LSECSSC_Pos)   /*!< 0x00000200 */
6991 #define RCC_CICR_LSECSSC                    RCC_CICR_LSECSSC_Msk
6992 
6993 /********************  Bit definition for RCC_AHB1RSTR register  **************/
6994 #define RCC_AHB1RSTR_DMA1RST_Pos             (0U)
6995 #define RCC_AHB1RSTR_DMA1RST_Msk             (0x1UL << RCC_AHB1RSTR_DMA1RST_Pos)/*!< 0x00000001 */
6996 #define RCC_AHB1RSTR_DMA1RST                 RCC_AHB1RSTR_DMA1RST_Msk
6997 #define RCC_AHB1RSTR_DMA2RST_Pos             (1U)
6998 #define RCC_AHB1RSTR_DMA2RST_Msk             (0x1UL << RCC_AHB1RSTR_DMA2RST_Pos)/*!< 0x00000002 */
6999 #define RCC_AHB1RSTR_DMA2RST                 RCC_AHB1RSTR_DMA2RST_Msk
7000 #define RCC_AHB1RSTR_DMAMUX1RST_Pos          (2U)
7001 #define RCC_AHB1RSTR_DMAMUX1RST_Msk          (0x1UL << RCC_AHB1RSTR_DMAMUX1RST_Pos)/*!< 0x00000004 */
7002 #define RCC_AHB1RSTR_DMAMUX1RST              RCC_AHB1RSTR_DMAMUX1RST_Msk
7003 #define RCC_AHB1RSTR_CRCRST_Pos              (12U)
7004 #define RCC_AHB1RSTR_CRCRST_Msk              (0x1UL << RCC_AHB1RSTR_CRCRST_Pos)/*!< 0x00001000 */
7005 #define RCC_AHB1RSTR_CRCRST                  RCC_AHB1RSTR_CRCRST_Msk
7006 
7007 /********************  Bit definition for RCC_AHB2RSTR register  ***************/
7008 #define RCC_AHB2RSTR_GPIOARST_Pos           (0U)
7009 #define RCC_AHB2RSTR_GPIOARST_Msk           (0x1UL << RCC_AHB2RSTR_GPIOARST_Pos)/*!< 0x00000001 */
7010 #define RCC_AHB2RSTR_GPIOARST               RCC_AHB2RSTR_GPIOARST_Msk
7011 #define RCC_AHB2RSTR_GPIOBRST_Pos           (1U)
7012 #define RCC_AHB2RSTR_GPIOBRST_Msk           (0x1UL << RCC_AHB2RSTR_GPIOBRST_Pos)/*!< 0x00000002 */
7013 #define RCC_AHB2RSTR_GPIOBRST               RCC_AHB2RSTR_GPIOBRST_Msk
7014 #define RCC_AHB2RSTR_GPIOCRST_Pos           (2U)
7015 #define RCC_AHB2RSTR_GPIOCRST_Msk           (0x1UL << RCC_AHB2RSTR_GPIOCRST_Pos)/*!< 0x00000004 */
7016 #define RCC_AHB2RSTR_GPIOCRST               RCC_AHB2RSTR_GPIOCRST_Msk
7017 #define RCC_AHB2RSTR_GPIOHRST_Pos           (7U)
7018 #define RCC_AHB2RSTR_GPIOHRST_Msk           (0x1UL << RCC_AHB2RSTR_GPIOHRST_Pos)/*!< 0x00000080 */
7019 #define RCC_AHB2RSTR_GPIOHRST               RCC_AHB2RSTR_GPIOHRST_Msk
7020 
7021 /********************  Bit definition for RCC_AHB3RSTR register  ***************/
7022 #define RCC_AHB3RSTR_PKARST_Pos             (16U)
7023 #define RCC_AHB3RSTR_PKARST_Msk             (0x1UL << RCC_AHB3RSTR_PKARST_Pos) /*!< 0x00010000 */
7024 #define RCC_AHB3RSTR_PKARST                 RCC_AHB3RSTR_PKARST_Msk
7025 #define RCC_AHB3RSTR_AESRST_Pos             (17U)
7026 #define RCC_AHB3RSTR_AESRST_Msk             (0x1UL << RCC_AHB3RSTR_AESRST_Pos)/*!< 0x00020000 */
7027 #define RCC_AHB3RSTR_AESRST                 RCC_AHB3RSTR_AESRST_Msk
7028 #define RCC_AHB3RSTR_RNGRST_Pos             (18U)
7029 #define RCC_AHB3RSTR_RNGRST_Msk             (0x1UL << RCC_AHB3RSTR_RNGRST_Pos)/*!< 0x00040000 */
7030 #define RCC_AHB3RSTR_RNGRST                 RCC_AHB3RSTR_RNGRST_Msk
7031 
7032 #define RCC_AHB3RSTR_HSEMRST_Pos            (19U)
7033 #define RCC_AHB3RSTR_HSEMRST_Msk            (0x1UL << RCC_AHB3RSTR_HSEMRST_Pos)/*!< 0x00080000 */
7034 #define RCC_AHB3RSTR_HSEMRST                RCC_AHB3RSTR_HSEMRST_Msk
7035 #define RCC_AHB3RSTR_IPCCRST_Pos            (20U)
7036 #define RCC_AHB3RSTR_IPCCRST_Msk            (0x1UL << RCC_AHB3RSTR_IPCCRST_Pos)/*!< 0x00100000 */
7037 #define RCC_AHB3RSTR_IPCCRST                RCC_AHB3RSTR_IPCCRST_Msk
7038 #define RCC_AHB3RSTR_FLASHRST_Pos           (25U)
7039 #define RCC_AHB3RSTR_FLASHRST_Msk           (0x1UL << RCC_AHB3RSTR_FLASHRST_Pos) /*!< 0x02000000 */
7040 #define RCC_AHB3RSTR_FLASHRST               RCC_AHB3RSTR_FLASHRST_Msk
7041 
7042 /********************  Bit definition for RCC_APB1RSTR1 register  **************/
7043 #define RCC_APB1RSTR1_TIM2RST_Pos           (0U)
7044 #define RCC_APB1RSTR1_TIM2RST_Msk           (0x1UL << RCC_APB1RSTR1_TIM2RST_Pos)/*!< 0x00000001 */
7045 #define RCC_APB1RSTR1_TIM2RST               RCC_APB1RSTR1_TIM2RST_Msk
7046 #define RCC_APB1RSTR1_SPI2RST_Pos           (14U)
7047 #define RCC_APB1RSTR1_SPI2RST_Msk           (0x1UL << RCC_APB1RSTR1_SPI2RST_Pos)/*!< 0x00004000 */
7048 #define RCC_APB1RSTR1_SPI2RST               RCC_APB1RSTR1_SPI2RST_Msk
7049 #define RCC_APB1RSTR1_USART2RST_Pos         (17U)
7050 #define RCC_APB1RSTR1_USART2RST_Msk         (0x1UL << RCC_APB1RSTR1_USART2RST_Pos)/*!< 0x00020000 */
7051 #define RCC_APB1RSTR1_USART2RST             RCC_APB1RSTR1_USART2RST_Msk
7052 #define RCC_APB1RSTR1_I2C1RST_Pos           (21U)
7053 #define RCC_APB1RSTR1_I2C1RST_Msk           (0x1UL << RCC_APB1RSTR1_I2C1RST_Pos)/*!< 0x00200000 */
7054 #define RCC_APB1RSTR1_I2C1RST               RCC_APB1RSTR1_I2C1RST_Msk
7055 #define RCC_APB1RSTR1_I2C2RST_Pos           (22U)
7056 #define RCC_APB1RSTR1_I2C2RST_Msk           (0x1UL << RCC_APB1RSTR1_I2C2RST_Pos)/*!< 0x00400000 */
7057 #define RCC_APB1RSTR1_I2C2RST               RCC_APB1RSTR1_I2C2RST_Msk
7058 #define RCC_APB1RSTR1_I2C3RST_Pos           (23U)
7059 #define RCC_APB1RSTR1_I2C3RST_Msk           (0x1UL << RCC_APB1RSTR1_I2C3RST_Pos)/*!< 0x00800000 */
7060 #define RCC_APB1RSTR1_I2C3RST               RCC_APB1RSTR1_I2C3RST_Msk
7061 #define RCC_APB1RSTR1_DACRST_Pos            (29U)
7062 #define RCC_APB1RSTR1_DACRST_Msk            (0x1UL << RCC_APB1RSTR1_DACRST_Pos)/*!< 0x20000000 */
7063 #define RCC_APB1RSTR1_DACRST                RCC_APB1RSTR1_DACRST_Msk
7064 #define RCC_APB1RSTR1_LPTIM1RST_Pos         (31U)
7065 #define RCC_APB1RSTR1_LPTIM1RST_Msk         (0x1UL << RCC_APB1RSTR1_LPTIM1RST_Pos)/*!< 0x80000000 */
7066 #define RCC_APB1RSTR1_LPTIM1RST             RCC_APB1RSTR1_LPTIM1RST_Msk
7067 
7068 /********************  Bit definition for RCC_APB1RSTR2 register  **************/
7069 #define RCC_APB1RSTR2_LPUART1RST_Pos        (0U)
7070 #define RCC_APB1RSTR2_LPUART1RST_Msk        (0x1UL << RCC_APB1RSTR2_LPUART1RST_Pos)/*!< 0x00000001 */
7071 #define RCC_APB1RSTR2_LPUART1RST            RCC_APB1RSTR2_LPUART1RST_Msk
7072 #define RCC_APB1RSTR2_LPTIM2RST_Pos         (5U)
7073 #define RCC_APB1RSTR2_LPTIM2RST_Msk         (0x1UL << RCC_APB1RSTR2_LPTIM2RST_Pos)/*!< 0x00000020 */
7074 #define RCC_APB1RSTR2_LPTIM2RST             RCC_APB1RSTR2_LPTIM2RST_Msk
7075 #define RCC_APB1RSTR2_LPTIM3RST_Pos         (6U)
7076 #define RCC_APB1RSTR2_LPTIM3RST_Msk         (0x1UL << RCC_APB1RSTR2_LPTIM3RST_Pos)/*!< 0x00000040 */
7077 #define RCC_APB1RSTR2_LPTIM3RST             RCC_APB1RSTR2_LPTIM3RST_Msk
7078 
7079 /********************  Bit definition for RCC_APB2RSTR register  **************/
7080 #define RCC_APB2RSTR_ADCRST_Pos             (9U)
7081 #define RCC_APB2RSTR_ADCRST_Msk             (0x1UL << RCC_APB2RSTR_ADCRST_Pos)/*!< 0x00000200 */
7082 #define RCC_APB2RSTR_ADCRST                 RCC_APB2RSTR_ADCRST_Msk
7083 #define RCC_APB2RSTR_TIM1RST_Pos            (11U)
7084 #define RCC_APB2RSTR_TIM1RST_Msk            (0x1UL << RCC_APB2RSTR_TIM1RST_Pos)/*!< 0x00000800 */
7085 #define RCC_APB2RSTR_TIM1RST                RCC_APB2RSTR_TIM1RST_Msk
7086 #define RCC_APB2RSTR_SPI1RST_Pos            (12U)
7087 #define RCC_APB2RSTR_SPI1RST_Msk            (0x1UL << RCC_APB2RSTR_SPI1RST_Pos)/*!< 0x00001000 */
7088 #define RCC_APB2RSTR_SPI1RST                RCC_APB2RSTR_SPI1RST_Msk
7089 #define RCC_APB2RSTR_USART1RST_Pos          (14U)
7090 #define RCC_APB2RSTR_USART1RST_Msk          (0x1UL << RCC_APB2RSTR_USART1RST_Pos)/*!< 0x00004000 */
7091 #define RCC_APB2RSTR_USART1RST              RCC_APB2RSTR_USART1RST_Msk
7092 #define RCC_APB2RSTR_TIM16RST_Pos           (17U)
7093 #define RCC_APB2RSTR_TIM16RST_Msk           (0x1UL << RCC_APB2RSTR_TIM16RST_Pos)/*!< 0x00020000 */
7094 #define RCC_APB2RSTR_TIM16RST               RCC_APB2RSTR_TIM16RST_Msk
7095 #define RCC_APB2RSTR_TIM17RST_Pos           (18U)
7096 #define RCC_APB2RSTR_TIM17RST_Msk           (0x1UL << RCC_APB2RSTR_TIM17RST_Pos)/*!< 0x00040000 */
7097 #define RCC_APB2RSTR_TIM17RST               RCC_APB2RSTR_TIM17RST_Msk
7098 
7099 /********************  Bit definition for RCC_APB3RSTR register  **************/
7100 #define RCC_APB3RSTR_SUBGHZSPIRST_Pos            (0U)
7101 #define RCC_APB3RSTR_SUBGHZSPIRST_Msk            (0x1UL << RCC_APB3RSTR_SUBGHZSPIRST_Pos) /*!< 0x00000001 */
7102 #define RCC_APB3RSTR_SUBGHZSPIRST                RCC_APB3RSTR_SUBGHZSPIRST_Msk
7103 
7104 /********************  Bit definition for RCC_AHB1ENR register  ****************/
7105 #define RCC_AHB1ENR_DMA1EN_Pos              (0U)
7106 #define RCC_AHB1ENR_DMA1EN_Msk              (0x1UL << RCC_AHB1ENR_DMA1EN_Pos)  /*!< 0x00000001 */
7107 #define RCC_AHB1ENR_DMA1EN                  RCC_AHB1ENR_DMA1EN_Msk
7108 #define RCC_AHB1ENR_DMA2EN_Pos              (1U)
7109 #define RCC_AHB1ENR_DMA2EN_Msk              (0x1UL << RCC_AHB1ENR_DMA2EN_Pos)  /*!< 0x00000002 */
7110 #define RCC_AHB1ENR_DMA2EN                  RCC_AHB1ENR_DMA2EN_Msk
7111 #define RCC_AHB1ENR_DMAMUX1EN_Pos           (2U)
7112 #define RCC_AHB1ENR_DMAMUX1EN_Msk           (0x1UL << RCC_AHB1ENR_DMAMUX1EN_Pos)/*!< 0x00000004 */
7113 #define RCC_AHB1ENR_DMAMUX1EN               RCC_AHB1ENR_DMAMUX1EN_Msk
7114 #define RCC_AHB1ENR_CRCEN_Pos               (12U)
7115 #define RCC_AHB1ENR_CRCEN_Msk               (0x1UL << RCC_AHB1ENR_CRCEN_Pos)   /*!< 0x00001000 */
7116 #define RCC_AHB1ENR_CRCEN                   RCC_AHB1ENR_CRCEN_Msk
7117 
7118 /********************  Bit definition for RCC_AHB2ENR register  ***************/
7119 #define RCC_AHB2ENR_GPIOAEN_Pos             (0U)
7120 #define RCC_AHB2ENR_GPIOAEN_Msk             (0x1UL << RCC_AHB2ENR_GPIOAEN_Pos) /*!< 0x00000001 */
7121 #define RCC_AHB2ENR_GPIOAEN                 RCC_AHB2ENR_GPIOAEN_Msk
7122 #define RCC_AHB2ENR_GPIOBEN_Pos             (1U)
7123 #define RCC_AHB2ENR_GPIOBEN_Msk             (0x1UL << RCC_AHB2ENR_GPIOBEN_Pos) /*!< 0x00000002 */
7124 #define RCC_AHB2ENR_GPIOBEN                 RCC_AHB2ENR_GPIOBEN_Msk
7125 #define RCC_AHB2ENR_GPIOCEN_Pos             (2U)
7126 #define RCC_AHB2ENR_GPIOCEN_Msk             (0x1UL << RCC_AHB2ENR_GPIOCEN_Pos) /*!< 0x00000004 */
7127 #define RCC_AHB2ENR_GPIOCEN                 RCC_AHB2ENR_GPIOCEN_Msk
7128 #define RCC_AHB2ENR_GPIOHEN_Pos             (7U)
7129 #define RCC_AHB2ENR_GPIOHEN_Msk             (0x1UL << RCC_AHB2ENR_GPIOHEN_Pos) /*!< 0x00000080 */
7130 #define RCC_AHB2ENR_GPIOHEN                 RCC_AHB2ENR_GPIOHEN_Msk
7131 
7132 /********************  Bit definition for RCC_AHB3ENR register  ***************/
7133 #define RCC_AHB3ENR_PKAEN_Pos               (16U)
7134 #define RCC_AHB3ENR_PKAEN_Msk               (0x1UL << RCC_AHB3ENR_PKAEN_Pos)   /*!< 0x00010000 */
7135 #define RCC_AHB3ENR_PKAEN                   RCC_AHB3ENR_PKAEN_Msk
7136 #define RCC_AHB3ENR_AESEN_Pos               (17U)
7137 #define RCC_AHB3ENR_AESEN_Msk               (0x1UL << RCC_AHB3ENR_AESEN_Pos)/*!< 0x00020000 */
7138 #define RCC_AHB3ENR_AESEN                   RCC_AHB3ENR_AESEN_Msk
7139 #define RCC_AHB3ENR_RNGEN_Pos               (18U)
7140 #define RCC_AHB3ENR_RNGEN_Msk               (0x1UL << RCC_AHB3ENR_RNGEN_Pos)  /*!< 0x00040000 */
7141 #define RCC_AHB3ENR_RNGEN                   RCC_AHB3ENR_RNGEN_Msk
7142 #define RCC_AHB3ENR_HSEMEN_Pos              (19U)
7143 #define RCC_AHB3ENR_HSEMEN_Msk              (0x1UL << RCC_AHB3ENR_HSEMEN_Pos)  /*!< 0x00080000 */
7144 #define RCC_AHB3ENR_HSEMEN                  RCC_AHB3ENR_HSEMEN_Msk
7145 #define RCC_AHB3ENR_IPCCEN_Pos              (20U)
7146 #define RCC_AHB3ENR_IPCCEN_Msk              (0x1UL << RCC_AHB3ENR_IPCCEN_Pos)  /*!< 0x00100000 */
7147 #define RCC_AHB3ENR_IPCCEN                  RCC_AHB3ENR_IPCCEN_Msk
7148 #define RCC_AHB3ENR_FLASHEN_Pos             (25U)
7149 #define RCC_AHB3ENR_FLASHEN_Msk             (0x1UL << RCC_AHB3ENR_FLASHEN_Pos)   /*!< 0x02000000 */
7150 #define RCC_AHB3ENR_FLASHEN                 RCC_AHB3ENR_FLASHEN_Msk
7151 
7152 /********************  Bit definition for RCC_APB1ENR1 register  **************/
7153 #define RCC_APB1ENR1_TIM2EN_Pos             (0U)
7154 #define RCC_APB1ENR1_TIM2EN_Msk             (0x1UL << RCC_APB1ENR1_TIM2EN_Pos) /*!< 0x00000001 */
7155 #define RCC_APB1ENR1_TIM2EN                 RCC_APB1ENR1_TIM2EN_Msk
7156 #define RCC_APB1ENR1_RTCAPBEN_Pos           (10U)
7157 #define RCC_APB1ENR1_RTCAPBEN_Msk           (0x1UL << RCC_APB1ENR1_RTCAPBEN_Pos)/*!< 0x00000400 */
7158 #define RCC_APB1ENR1_RTCAPBEN               RCC_APB1ENR1_RTCAPBEN_Msk
7159 #define RCC_APB1ENR1_WWDGEN_Pos             (11U)
7160 #define RCC_APB1ENR1_WWDGEN_Msk             (0x1UL << RCC_APB1ENR1_WWDGEN_Pos) /*!< 0x00000800 */
7161 #define RCC_APB1ENR1_WWDGEN                 RCC_APB1ENR1_WWDGEN_Msk
7162 #define RCC_APB1ENR1_SPI2EN_Pos             (14U)
7163 #define RCC_APB1ENR1_SPI2EN_Msk             (0x1UL << RCC_APB1ENR1_SPI2EN_Pos) /*!< 0x00004000 */
7164 #define RCC_APB1ENR1_SPI2EN                 RCC_APB1ENR1_SPI2EN_Msk
7165 #define RCC_APB1ENR1_USART2EN_Pos           (17U)
7166 #define RCC_APB1ENR1_USART2EN_Msk           (0x1UL << RCC_APB1ENR1_USART2EN_Pos) /*!< 0x00020000 */
7167 #define RCC_APB1ENR1_USART2EN               RCC_APB1ENR1_USART2EN_Msk
7168 #define RCC_APB1ENR1_I2C1EN_Pos             (21U)
7169 #define RCC_APB1ENR1_I2C1EN_Msk             (0x1UL << RCC_APB1ENR1_I2C1EN_Pos) /*!< 0x00200000 */
7170 #define RCC_APB1ENR1_I2C1EN                 RCC_APB1ENR1_I2C1EN_Msk
7171 #define RCC_APB1ENR1_I2C2EN_Pos             (22U)
7172 #define RCC_APB1ENR1_I2C2EN_Msk             (0x1UL << RCC_APB1ENR1_I2C2EN_Pos) /*!< 0x00400000 */
7173 #define RCC_APB1ENR1_I2C2EN                 RCC_APB1ENR1_I2C2EN_Msk
7174 #define RCC_APB1ENR1_I2C3EN_Pos             (23U)
7175 #define RCC_APB1ENR1_I2C3EN_Msk             (0x1UL << RCC_APB1ENR1_I2C3EN_Pos) /*!< 0x00800000 */
7176 #define RCC_APB1ENR1_I2C3EN                 RCC_APB1ENR1_I2C3EN_Msk
7177 #define RCC_APB1ENR1_DACEN_Pos              (29U)
7178 #define RCC_APB1ENR1_DACEN_Msk              (0x1UL << RCC_APB1ENR1_DACEN_Pos)/*!< 0x20000000 */
7179 #define RCC_APB1ENR1_DACEN                  RCC_APB1ENR1_DACEN_Msk
7180 #define RCC_APB1ENR1_LPTIM1EN_Pos           (31U)
7181 #define RCC_APB1ENR1_LPTIM1EN_Msk           (0x1UL << RCC_APB1ENR1_LPTIM1EN_Pos)/*!< 0x80000000 */
7182 #define RCC_APB1ENR1_LPTIM1EN               RCC_APB1ENR1_LPTIM1EN_Msk
7183 
7184 /********************  Bit definition for RCC_APB1ENR2 register  **************/
7185 #define RCC_APB1ENR2_LPUART1EN_Pos          (0U)
7186 #define RCC_APB1ENR2_LPUART1EN_Msk         (0x1UL << RCC_APB1ENR2_LPUART1EN_Pos)/*!< 0x00000001 */
7187 #define RCC_APB1ENR2_LPUART1EN              RCC_APB1ENR2_LPUART1EN_Msk
7188 #define RCC_APB1ENR2_LPTIM2EN_Pos           (5U)
7189 #define RCC_APB1ENR2_LPTIM2EN_Msk           (0x1UL << RCC_APB1ENR2_LPTIM2EN_Pos)/*!< 0x00000020 */
7190 #define RCC_APB1ENR2_LPTIM2EN               RCC_APB1ENR2_LPTIM2EN_Msk
7191 #define RCC_APB1ENR2_LPTIM3EN_Pos           (6U)
7192 #define RCC_APB1ENR2_LPTIM3EN_Msk           (0x1UL << RCC_APB1ENR2_LPTIM3EN_Pos)/*!< 0x00000040 */
7193 #define RCC_APB1ENR2_LPTIM3EN               RCC_APB1ENR2_LPTIM3EN_Msk
7194 
7195 /********************  Bit definition for RCC_APB2ENR register  **************/
7196 #define RCC_APB2ENR_ADCEN_Pos               (9U)
7197 #define RCC_APB2ENR_ADCEN_Msk               (0x1UL << RCC_APB2ENR_ADCEN_Pos)  /*!< 0x00000200 */
7198 #define RCC_APB2ENR_ADCEN                   RCC_APB2ENR_ADCEN_Msk
7199 #define RCC_APB2ENR_TIM1EN_Pos              (11U)
7200 #define RCC_APB2ENR_TIM1EN_Msk              (0x1UL << RCC_APB2ENR_TIM1EN_Pos)  /*!< 0x00000800 */
7201 #define RCC_APB2ENR_TIM1EN                  RCC_APB2ENR_TIM1EN_Msk
7202 #define RCC_APB2ENR_SPI1EN_Pos              (12U)
7203 #define RCC_APB2ENR_SPI1EN_Msk              (0x1UL << RCC_APB2ENR_SPI1EN_Pos)  /*!< 0x00001000 */
7204 #define RCC_APB2ENR_SPI1EN                  RCC_APB2ENR_SPI1EN_Msk
7205 #define RCC_APB2ENR_USART1EN_Pos            (14U)
7206 #define RCC_APB2ENR_USART1EN_Msk            (0x1UL << RCC_APB2ENR_USART1EN_Pos)/*!< 0x00004000 */
7207 #define RCC_APB2ENR_USART1EN                RCC_APB2ENR_USART1EN_Msk
7208 #define RCC_APB2ENR_TIM16EN_Pos             (17U)
7209 #define RCC_APB2ENR_TIM16EN_Msk             (0x1UL << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */
7210 #define RCC_APB2ENR_TIM16EN                 RCC_APB2ENR_TIM16EN_Msk
7211 #define RCC_APB2ENR_TIM17EN_Pos             (18U)
7212 #define RCC_APB2ENR_TIM17EN_Msk             (0x1UL << RCC_APB2ENR_TIM17EN_Pos) /*!< 0x00040000 */
7213 #define RCC_APB2ENR_TIM17EN                 RCC_APB2ENR_TIM17EN_Msk
7214 
7215 /********************  Bit definition for RCC_APB3ENR register  **************/
7216 #define RCC_APB3ENR_SUBGHZSPIEN_Pos         (0U)
7217 #define RCC_APB3ENR_SUBGHZSPIEN_Msk         (0x1UL << RCC_APB3ENR_SUBGHZSPIEN_Pos)/*!< 0x00000001 */
7218 #define RCC_APB3ENR_SUBGHZSPIEN             RCC_APB3ENR_SUBGHZSPIEN_Msk
7219 
7220 /********************  Bit definition for RCC_AHB1SMENR register  ****************/
7221 #define RCC_AHB1SMENR_DMA1SMEN_Pos          (0U)
7222 #define RCC_AHB1SMENR_DMA1SMEN_Msk          (0x1UL << RCC_AHB1SMENR_DMA1SMEN_Pos)/*!< 0x00000001 */
7223 #define RCC_AHB1SMENR_DMA1SMEN              RCC_AHB1SMENR_DMA1SMEN_Msk
7224 #define RCC_AHB1SMENR_DMA2SMEN_Pos          (1U)
7225 #define RCC_AHB1SMENR_DMA2SMEN_Msk          (0x1UL << RCC_AHB1SMENR_DMA2SMEN_Pos)/*!< 0x00000002 */
7226 #define RCC_AHB1SMENR_DMA2SMEN              RCC_AHB1SMENR_DMA2SMEN_Msk
7227 #define RCC_AHB1SMENR_DMAMUX1SMEN_Pos       (2U)
7228 #define RCC_AHB1SMENR_DMAMUX1SMEN_Msk       (0x1UL << RCC_AHB1SMENR_DMAMUX1SMEN_Pos)/*!< 0x00000004 */
7229 #define RCC_AHB1SMENR_DMAMUX1SMEN           RCC_AHB1SMENR_DMAMUX1SMEN_Msk
7230 #define RCC_AHB1SMENR_CRCSMEN_Pos           (12U)
7231 #define RCC_AHB1SMENR_CRCSMEN_Msk           (0x1UL << RCC_AHB1SMENR_CRCSMEN_Pos)/*!< 0x00001000 */
7232 #define RCC_AHB1SMENR_CRCSMEN               RCC_AHB1SMENR_CRCSMEN_Msk
7233 
7234 /********************  Bit definition for RCC_AHB2SMENR register  ***************/
7235 #define RCC_AHB2SMENR_GPIOASMEN_Pos         (0U)
7236 #define RCC_AHB2SMENR_GPIOASMEN_Msk         (0x1UL << RCC_AHB2SMENR_GPIOASMEN_Pos)/*!< 0x00000001 */
7237 #define RCC_AHB2SMENR_GPIOASMEN             RCC_AHB2SMENR_GPIOASMEN_Msk
7238 #define RCC_AHB2SMENR_GPIOBSMEN_Pos         (1U)
7239 #define RCC_AHB2SMENR_GPIOBSMEN_Msk         (0x1UL << RCC_AHB2SMENR_GPIOBSMEN_Pos)/*!< 0x00000002 */
7240 #define RCC_AHB2SMENR_GPIOBSMEN             RCC_AHB2SMENR_GPIOBSMEN_Msk
7241 #define RCC_AHB2SMENR_GPIOCSMEN_Pos         (2U)
7242 #define RCC_AHB2SMENR_GPIOCSMEN_Msk         (0x1UL << RCC_AHB2SMENR_GPIOCSMEN_Pos)/*!< 0x00000004 */
7243 #define RCC_AHB2SMENR_GPIOCSMEN             RCC_AHB2SMENR_GPIOCSMEN_Msk
7244 #define RCC_AHB2SMENR_GPIOHSMEN_Pos         (7U)
7245 #define RCC_AHB2SMENR_GPIOHSMEN_Msk         (0x1UL << RCC_AHB2SMENR_GPIOHSMEN_Pos)/*!< 0x00000080 */
7246 #define RCC_AHB2SMENR_GPIOHSMEN             RCC_AHB2SMENR_GPIOHSMEN_Msk
7247 
7248 /********************  Bit definition for RCC_AHB3SMENR register  ***************/
7249 #define RCC_AHB3SMENR_PKASMEN_Pos           (16U)
7250 #define RCC_AHB3SMENR_PKASMEN_Msk           (0x1UL << RCC_AHB3SMENR_PKASMEN_Pos) /*!< 0x00010000 */
7251 #define RCC_AHB3SMENR_PKASMEN               RCC_AHB3SMENR_PKASMEN_Msk
7252 #define RCC_AHB3SMENR_AESSMEN_Pos           (17U)
7253 #define RCC_AHB3SMENR_AESSMEN_Msk           (0x1UL << RCC_AHB3SMENR_AESSMEN_Pos) /*!< 0x00020000 */
7254 #define RCC_AHB3SMENR_AESSMEN               RCC_AHB3SMENR_AESSMEN_Msk
7255 #define RCC_AHB3SMENR_RNGSMEN_Pos           (18U)
7256 #define RCC_AHB3SMENR_RNGSMEN_Msk           (0x1UL << RCC_AHB3SMENR_RNGSMEN_Pos)/*!< 0x00040000 */
7257 #define RCC_AHB3SMENR_RNGSMEN               RCC_AHB3SMENR_RNGSMEN_Msk
7258 #define RCC_AHB3SMENR_SRAM1SMEN_Pos         (23U)
7259 #define RCC_AHB3SMENR_SRAM1SMEN_Msk         (0x1UL << RCC_AHB3SMENR_SRAM1SMEN_Pos)/*!< 0x00800000 */
7260 #define RCC_AHB3SMENR_SRAM1SMEN             RCC_AHB3SMENR_SRAM1SMEN_Msk
7261 #define RCC_AHB3SMENR_SRAM2SMEN_Pos         (24U)
7262 #define RCC_AHB3SMENR_SRAM2SMEN_Msk         (0x1UL << RCC_AHB3SMENR_SRAM2SMEN_Pos)/*!< 0x01000000 */
7263 #define RCC_AHB3SMENR_SRAM2SMEN             RCC_AHB3SMENR_SRAM2SMEN_Msk
7264 #define RCC_AHB3SMENR_FLASHSMEN_Pos         (25U)
7265 #define RCC_AHB3SMENR_FLASHSMEN_Msk         (0x1UL << RCC_AHB3SMENR_FLASHSMEN_Pos)/*!< 0x02000000 */
7266 #define RCC_AHB3SMENR_FLASHSMEN             RCC_AHB3SMENR_FLASHSMEN_Msk
7267 
7268 /********************  Bit definition for RCC_APB1SMENR1 register  **************/
7269 #define RCC_APB1SMENR1_TIM2SMEN_Pos         (0U)
7270 #define RCC_APB1SMENR1_TIM2SMEN_Msk         (0x1UL << RCC_APB1SMENR1_TIM2SMEN_Pos)/*!< 0x00000001 */
7271 #define RCC_APB1SMENR1_TIM2SMEN             RCC_APB1SMENR1_TIM2SMEN_Msk
7272 #define RCC_APB1SMENR1_RTCAPBSMEN_Pos       (10U)
7273 #define RCC_APB1SMENR1_RTCAPBSMEN_Msk       (0x1UL << RCC_APB1SMENR1_RTCAPBSMEN_Pos)/*!< 0x00000400 */
7274 #define RCC_APB1SMENR1_RTCAPBSMEN           RCC_APB1SMENR1_RTCAPBSMEN_Msk
7275 #define RCC_APB1SMENR1_WWDGSMEN_Pos         (11U)
7276 #define RCC_APB1SMENR1_WWDGSMEN_Msk         (0x1UL << RCC_APB1SMENR1_WWDGSMEN_Pos)/*!< 0x00000800 */
7277 #define RCC_APB1SMENR1_WWDGSMEN             RCC_APB1SMENR1_WWDGSMEN_Msk
7278 #define RCC_APB1SMENR1_SPI2SMEN_Pos         (14U)
7279 #define RCC_APB1SMENR1_SPI2SMEN_Msk         (0x1UL << RCC_APB1SMENR1_SPI2SMEN_Pos)/*!< 0x00004000 */
7280 #define RCC_APB1SMENR1_SPI2SMEN             RCC_APB1SMENR1_SPI2SMEN_Msk
7281 #define RCC_APB1SMENR1_USART2SMEN_Pos       (17U)
7282 #define RCC_APB1SMENR1_USART2SMEN_Msk       (0x1UL << RCC_APB1SMENR1_USART2SMEN_Pos)/*!< 0x00020000 */
7283 #define RCC_APB1SMENR1_USART2SMEN           RCC_APB1SMENR1_USART2SMEN_Msk
7284 #define RCC_APB1SMENR1_I2C1SMEN_Pos         (21U)
7285 #define RCC_APB1SMENR1_I2C1SMEN_Msk         (0x1UL << RCC_APB1SMENR1_I2C1SMEN_Pos)/*!< 0x00200000 */
7286 #define RCC_APB1SMENR1_I2C1SMEN             RCC_APB1SMENR1_I2C1SMEN_Msk
7287 #define RCC_APB1SMENR1_I2C2SMEN_Pos         (22U)
7288 #define RCC_APB1SMENR1_I2C2SMEN_Msk         (0x1UL << RCC_APB1SMENR1_I2C2SMEN_Pos)/*!< 0x00400000 */
7289 #define RCC_APB1SMENR1_I2C2SMEN             RCC_APB1SMENR1_I2C2SMEN_Msk
7290 #define RCC_APB1SMENR1_I2C3SMEN_Pos         (23U)
7291 #define RCC_APB1SMENR1_I2C3SMEN_Msk         (0x1UL << RCC_APB1SMENR1_I2C3SMEN_Pos)/*!< 0x00800000 */
7292 #define RCC_APB1SMENR1_I2C3SMEN             RCC_APB1SMENR1_I2C3SMEN_Msk
7293 #define RCC_APB1SMENR1_DACSMEN_Pos          (29U)
7294 #define RCC_APB1SMENR1_DACSMEN_Msk          (0x1UL << RCC_APB1SMENR1_DACSMEN_Pos)/*!< 0x20000000 */
7295 #define RCC_APB1SMENR1_DACSMEN              RCC_APB1SMENR1_DACSMEN_Msk
7296 #define RCC_APB1SMENR1_LPTIM1SMEN_Pos       (31U)
7297 #define RCC_APB1SMENR1_LPTIM1SMEN_Msk       (0x1UL << RCC_APB1SMENR1_LPTIM1SMEN_Pos)/*!< 0x80000000 */
7298 #define RCC_APB1SMENR1_LPTIM1SMEN           RCC_APB1SMENR1_LPTIM1SMEN_Msk
7299 
7300 /********************  Bit definition for RCC_APB1SMENR2 register  **************/
7301 #define RCC_APB1SMENR2_LPUART1SMEN_Pos      (0U)
7302 #define RCC_APB1SMENR2_LPUART1SMEN_Msk      (0x1UL << RCC_APB1SMENR2_LPUART1SMEN_Pos)/*!< 0x00000001 */
7303 #define RCC_APB1SMENR2_LPUART1SMEN          RCC_APB1SMENR2_LPUART1SMEN_Msk
7304 #define RCC_APB1SMENR2_LPTIM2SMEN_Pos       (5U)
7305 #define RCC_APB1SMENR2_LPTIM2SMEN_Msk       (0x1UL << RCC_APB1SMENR2_LPTIM2SMEN_Pos)/*!< 0x00000020 */
7306 #define RCC_APB1SMENR2_LPTIM2SMEN           RCC_APB1SMENR2_LPTIM2SMEN_Msk
7307 #define RCC_APB1SMENR2_LPTIM3SMEN_Pos       (6U)
7308 #define RCC_APB1SMENR2_LPTIM3SMEN_Msk       (0x1UL << RCC_APB1SMENR2_LPTIM3SMEN_Pos)/*!< 0x00000040 */
7309 #define RCC_APB1SMENR2_LPTIM3SMEN           RCC_APB1SMENR2_LPTIM3SMEN_Msk
7310 
7311 /********************  Bit definition for RCC_APB2SMENR register  **************/
7312 #define RCC_APB2SMENR_ADCSMEN_Pos           (9U)
7313 #define RCC_APB2SMENR_ADCSMEN_Msk           (0x1UL << RCC_APB2SMENR_ADCSMEN_Pos)/*!< 0x00000200 */
7314 #define RCC_APB2SMENR_ADCSMEN               RCC_APB2SMENR_ADCSMEN_Msk
7315 #define RCC_APB2SMENR_TIM1SMEN_Pos          (11U)
7316 #define RCC_APB2SMENR_TIM1SMEN_Msk          (0x1UL << RCC_APB2SMENR_TIM1SMEN_Pos)/*!< 0x00000800 */
7317 #define RCC_APB2SMENR_TIM1SMEN              RCC_APB2SMENR_TIM1SMEN_Msk
7318 #define RCC_APB2SMENR_SPI1SMEN_Pos          (12U)
7319 #define RCC_APB2SMENR_SPI1SMEN_Msk          (0x1UL << RCC_APB2SMENR_SPI1SMEN_Pos)/*!< 0x00001000 */
7320 #define RCC_APB2SMENR_SPI1SMEN              RCC_APB2SMENR_SPI1SMEN_Msk
7321 #define RCC_APB2SMENR_USART1SMEN_Pos        (14U)
7322 #define RCC_APB2SMENR_USART1SMEN_Msk        (0x1UL << RCC_APB2SMENR_USART1SMEN_Pos)/*!< 0x00004000 */
7323 #define RCC_APB2SMENR_USART1SMEN            RCC_APB2SMENR_USART1SMEN_Msk
7324 #define RCC_APB2SMENR_TIM16SMEN_Pos         (17U)
7325 #define RCC_APB2SMENR_TIM16SMEN_Msk         (0x1UL << RCC_APB2SMENR_TIM16SMEN_Pos)/*!< 0x00020000 */
7326 #define RCC_APB2SMENR_TIM16SMEN             RCC_APB2SMENR_TIM16SMEN_Msk
7327 #define RCC_APB2SMENR_TIM17SMEN_Pos         (18U)
7328 #define RCC_APB2SMENR_TIM17SMEN_Msk         (0x1UL << RCC_APB2SMENR_TIM17SMEN_Pos)/*!< 0x00040000 */
7329 #define RCC_APB2SMENR_TIM17SMEN             RCC_APB2SMENR_TIM17SMEN_Msk
7330 
7331 /********************  Bit definition for RCC_APB3SMENR register  **************/
7332 #define RCC_APB3SMENR_SUBGHZSPISMEN_Pos     (0U)
7333 #define RCC_APB3SMENR_SUBGHZSPISMEN_Msk     (0x1UL << RCC_APB3SMENR_SUBGHZSPISMEN_Pos)/*!< 0x00000001 */
7334 #define RCC_APB3SMENR_SUBGHZSPISMEN         RCC_APB3SMENR_SUBGHZSPISMEN_Msk
7335 
7336 /********************  Bit definition for RCC_CCIPR register  ******************/
7337 #define RCC_CCIPR_USART1SEL_Pos             (0U)
7338 #define RCC_CCIPR_USART1SEL_Msk             (0x3UL << RCC_CCIPR_USART1SEL_Pos) /*!< 0x00000003 */
7339 #define RCC_CCIPR_USART1SEL                 RCC_CCIPR_USART1SEL_Msk
7340 #define RCC_CCIPR_USART1SEL_0               (0x1UL << RCC_CCIPR_USART1SEL_Pos) /*!< 0x00000001 */
7341 #define RCC_CCIPR_USART1SEL_1               (0x2UL << RCC_CCIPR_USART1SEL_Pos) /*!< 0x00000002 */
7342 
7343 #define RCC_CCIPR_USART2SEL_Pos             (2U)
7344 #define RCC_CCIPR_USART2SEL_Msk             (0x3UL << RCC_CCIPR_USART2SEL_Pos) /*!< 0x0000000C */
7345 #define RCC_CCIPR_USART2SEL                 RCC_CCIPR_USART2SEL_Msk
7346 #define RCC_CCIPR_USART2SEL_0               (0x1UL << RCC_CCIPR_USART2SEL_Pos) /*!< 0x00000004 */
7347 #define RCC_CCIPR_USART2SEL_1               (0x2UL << RCC_CCIPR_USART2SEL_Pos) /*!< 0x00000008 */
7348 
7349 #define RCC_CCIPR_I2S2SEL_Pos               (8U)
7350 #define RCC_CCIPR_I2S2SEL_Msk               (0x3UL << RCC_CCIPR_I2S2SEL_Pos) /*!< 0x00000300 */
7351 #define RCC_CCIPR_I2S2SEL                   RCC_CCIPR_I2S2SEL_Msk
7352 #define RCC_CCIPR_I2S2SEL_0                 (0x1UL << RCC_CCIPR_I2S2SEL_Pos) /*!< 0x00000100 */
7353 #define RCC_CCIPR_I2S2SEL_1                 (0x2UL << RCC_CCIPR_I2S2SEL_Pos) /*!< 0x00000200 */
7354 
7355 #define RCC_CCIPR_LPUART1SEL_Pos            (10U)
7356 #define RCC_CCIPR_LPUART1SEL_Msk            (0x3UL << RCC_CCIPR_LPUART1SEL_Pos) /*!< 0x00000C00 */
7357 #define RCC_CCIPR_LPUART1SEL                RCC_CCIPR_LPUART1SEL_Msk
7358 #define RCC_CCIPR_LPUART1SEL_0              (0x1UL << RCC_CCIPR_LPUART1SEL_Pos) /*!< 0x00000400 */
7359 #define RCC_CCIPR_LPUART1SEL_1              (0x2UL << RCC_CCIPR_LPUART1SEL_Pos) /*!< 0x00000800 */
7360 
7361 #define RCC_CCIPR_I2C1SEL_Pos               (12U)
7362 #define RCC_CCIPR_I2C1SEL_Msk               (0x3UL << RCC_CCIPR_I2C1SEL_Pos)   /*!< 0x00003000 */
7363 #define RCC_CCIPR_I2C1SEL                   RCC_CCIPR_I2C1SEL_Msk
7364 #define RCC_CCIPR_I2C1SEL_0                 (0x1UL << RCC_CCIPR_I2C1SEL_Pos)   /*!< 0x00001000 */
7365 #define RCC_CCIPR_I2C1SEL_1                 (0x2UL << RCC_CCIPR_I2C1SEL_Pos)   /*!< 0x00002000 */
7366 
7367 #define RCC_CCIPR_I2C2SEL_Pos               (14U)
7368 #define RCC_CCIPR_I2C2SEL_Msk               (0x3UL << RCC_CCIPR_I2C2SEL_Pos)   /*!< 0x0000C000 */
7369 #define RCC_CCIPR_I2C2SEL                   RCC_CCIPR_I2C2SEL_Msk
7370 #define RCC_CCIPR_I2C2SEL_0                 (0x1UL << RCC_CCIPR_I2C2SEL_Pos)   /*!< 0x00004000 */
7371 #define RCC_CCIPR_I2C2SEL_1                 (0x2UL << RCC_CCIPR_I2C2SEL_Pos)   /*!< 0x00008000 */
7372 
7373 #define RCC_CCIPR_I2C3SEL_Pos               (16U)
7374 #define RCC_CCIPR_I2C3SEL_Msk               (0x3UL << RCC_CCIPR_I2C3SEL_Pos)   /*!< 0x00030000 */
7375 #define RCC_CCIPR_I2C3SEL                   RCC_CCIPR_I2C3SEL_Msk
7376 #define RCC_CCIPR_I2C3SEL_0                 (0x1UL << RCC_CCIPR_I2C3SEL_Pos)   /*!< 0x00010000 */
7377 #define RCC_CCIPR_I2C3SEL_1                 (0x2UL << RCC_CCIPR_I2C3SEL_Pos)   /*!< 0x00020000 */
7378 
7379 #define RCC_CCIPR_LPTIM1SEL_Pos             (18U)
7380 #define RCC_CCIPR_LPTIM1SEL_Msk             (0x3UL << RCC_CCIPR_LPTIM1SEL_Pos) /*!< 0x000C0000 */
7381 #define RCC_CCIPR_LPTIM1SEL                 RCC_CCIPR_LPTIM1SEL_Msk
7382 #define RCC_CCIPR_LPTIM1SEL_0               (0x1UL << RCC_CCIPR_LPTIM1SEL_Pos) /*!< 0x00040000 */
7383 #define RCC_CCIPR_LPTIM1SEL_1               (0x2UL << RCC_CCIPR_LPTIM1SEL_Pos) /*!< 0x00080000 */
7384 
7385 #define RCC_CCIPR_LPTIM2SEL_Pos             (20U)
7386 #define RCC_CCIPR_LPTIM2SEL_Msk             (0x3UL << RCC_CCIPR_LPTIM2SEL_Pos) /*!< 0x00300000 */
7387 #define RCC_CCIPR_LPTIM2SEL                 RCC_CCIPR_LPTIM2SEL_Msk
7388 #define RCC_CCIPR_LPTIM2SEL_0               (0x1UL << RCC_CCIPR_LPTIM2SEL_Pos) /*!< 0x00100000 */
7389 #define RCC_CCIPR_LPTIM2SEL_1               (0x2UL << RCC_CCIPR_LPTIM2SEL_Pos) /*!< 0x00200000 */
7390 
7391 #define RCC_CCIPR_LPTIM3SEL_Pos             (22U)
7392 #define RCC_CCIPR_LPTIM3SEL_Msk             (0x3UL << RCC_CCIPR_LPTIM3SEL_Pos)   /*!< 0x00C00000 */
7393 #define RCC_CCIPR_LPTIM3SEL                 RCC_CCIPR_LPTIM3SEL_Msk
7394 #define RCC_CCIPR_LPTIM3SEL_0               (0x1UL << RCC_CCIPR_LPTIM3SEL_Pos)   /*!< 0x00400000 */
7395 #define RCC_CCIPR_LPTIM3SEL_1               (0x2UL << RCC_CCIPR_LPTIM3SEL_Pos)   /*!< 0x00800000 */
7396 
7397 #define RCC_CCIPR_ADCSEL_Pos                (28U)
7398 #define RCC_CCIPR_ADCSEL_Msk                (0x3UL << RCC_CCIPR_ADCSEL_Pos)    /*!< 0x30000000 */
7399 #define RCC_CCIPR_ADCSEL                    RCC_CCIPR_ADCSEL_Msk
7400 #define RCC_CCIPR_ADCSEL_0                  (0x1UL << RCC_CCIPR_ADCSEL_Pos)    /*!< 0x10000000 */
7401 #define RCC_CCIPR_ADCSEL_1                  (0x2UL << RCC_CCIPR_ADCSEL_Pos)    /*!< 0x20000000 */
7402 
7403 #define RCC_CCIPR_RNGSEL_Pos                (30U)
7404 #define RCC_CCIPR_RNGSEL_Msk                (0x3UL << RCC_CCIPR_RNGSEL_Pos)    /*!< 0xC0000000 */
7405 #define RCC_CCIPR_RNGSEL                    RCC_CCIPR_RNGSEL_Msk
7406 #define RCC_CCIPR_RNGSEL_0                  (0x1UL << RCC_CCIPR_RNGSEL_Pos)    /*!< 0x40000000 */
7407 #define RCC_CCIPR_RNGSEL_1                  (0x2UL << RCC_CCIPR_RNGSEL_Pos)    /*!< 0x80000000 */
7408 
7409 /********************  Bit definition for RCC_BDCR register  ******************/
7410 #define RCC_BDCR_LSEON_Pos                  (0U)
7411 #define RCC_BDCR_LSEON_Msk                  (0x1UL << RCC_BDCR_LSEON_Pos)      /*!< 0x00000001 */
7412 #define RCC_BDCR_LSEON                      RCC_BDCR_LSEON_Msk
7413 #define RCC_BDCR_LSERDY_Pos                 (1U)
7414 #define RCC_BDCR_LSERDY_Msk                 (0x1UL << RCC_BDCR_LSERDY_Pos)     /*!< 0x00000002 */
7415 #define RCC_BDCR_LSERDY                     RCC_BDCR_LSERDY_Msk
7416 #define RCC_BDCR_LSEBYP_Pos                 (2U)
7417 #define RCC_BDCR_LSEBYP_Msk                 (0x1UL << RCC_BDCR_LSEBYP_Pos)     /*!< 0x00000004 */
7418 #define RCC_BDCR_LSEBYP                     RCC_BDCR_LSEBYP_Msk
7419 
7420 #define RCC_BDCR_LSEDRV_Pos                 (3U)
7421 #define RCC_BDCR_LSEDRV_Msk                 (0x3UL << RCC_BDCR_LSEDRV_Pos)     /*!< 0x00000018 */
7422 #define RCC_BDCR_LSEDRV                     RCC_BDCR_LSEDRV_Msk
7423 #define RCC_BDCR_LSEDRV_0                   (0x1UL << RCC_BDCR_LSEDRV_Pos)     /*!< 0x00000008 */
7424 #define RCC_BDCR_LSEDRV_1                   (0x2UL << RCC_BDCR_LSEDRV_Pos)     /*!< 0x00000010 */
7425 
7426 #define RCC_BDCR_LSECSSON_Pos               (5U)
7427 #define RCC_BDCR_LSECSSON_Msk               (0x1UL << RCC_BDCR_LSECSSON_Pos)   /*!< 0x00000020 */
7428 #define RCC_BDCR_LSECSSON                   RCC_BDCR_LSECSSON_Msk
7429 #define RCC_BDCR_LSECSSD_Pos                (6U)
7430 #define RCC_BDCR_LSECSSD_Msk                (0x1UL << RCC_BDCR_LSECSSD_Pos)    /*!< 0x00000040 */
7431 #define RCC_BDCR_LSECSSD                    RCC_BDCR_LSECSSD_Msk
7432 #define RCC_BDCR_LSESYSEN_Pos               (7U)
7433 #define RCC_BDCR_LSESYSEN_Msk               (0x1UL << RCC_BDCR_LSESYSEN_Pos)   /*!< 0x00000080 */
7434 #define RCC_BDCR_LSESYSEN                   RCC_BDCR_LSESYSEN_Msk
7435 
7436 #define RCC_BDCR_RTCSEL_Pos                 (8U)
7437 #define RCC_BDCR_RTCSEL_Msk                 (0x3UL << RCC_BDCR_RTCSEL_Pos)     /*!< 0x00000300 */
7438 #define RCC_BDCR_RTCSEL                     RCC_BDCR_RTCSEL_Msk
7439 #define RCC_BDCR_RTCSEL_0                   (0x1UL << RCC_BDCR_RTCSEL_Pos)     /*!< 0x00000100 */
7440 #define RCC_BDCR_RTCSEL_1                   (0x2UL << RCC_BDCR_RTCSEL_Pos)     /*!< 0x00000200 */
7441 
7442 #define RCC_BDCR_LSESYSRDY_Pos              (11U)
7443 #define RCC_BDCR_LSESYSRDY_Msk              (0x1UL << RCC_BDCR_LSESYSRDY_Pos) /*!< 0x00000800 */
7444 #define RCC_BDCR_LSESYSRDY                  RCC_BDCR_LSESYSRDY_Msk
7445 
7446 #define RCC_BDCR_RTCEN_Pos                  (15U)
7447 #define RCC_BDCR_RTCEN_Msk                  (0x1UL << RCC_BDCR_RTCEN_Pos)      /*!< 0x00008000 */
7448 #define RCC_BDCR_RTCEN                      RCC_BDCR_RTCEN_Msk
7449 
7450 #define RCC_BDCR_BDRST_Pos                  (16U)
7451 #define RCC_BDCR_BDRST_Msk                  (0x1UL << RCC_BDCR_BDRST_Pos)      /*!< 0x00010000 */
7452 #define RCC_BDCR_BDRST                      RCC_BDCR_BDRST_Msk
7453 
7454 #define RCC_BDCR_LSCOEN_Pos                 (24U)
7455 #define RCC_BDCR_LSCOEN_Msk                 (0x1UL << RCC_BDCR_LSCOEN_Pos)     /*!< 0x01000000 */
7456 #define RCC_BDCR_LSCOEN                     RCC_BDCR_LSCOEN_Msk
7457 #define RCC_BDCR_LSCOSEL_Pos                (25U)
7458 #define RCC_BDCR_LSCOSEL_Msk                (0x1UL << RCC_BDCR_LSCOSEL_Pos)    /*!< 0x02000000 */
7459 #define RCC_BDCR_LSCOSEL                    RCC_BDCR_LSCOSEL_Msk
7460 
7461 /********************  Bit definition for RCC_CSR register  *******************/
7462 #define RCC_CSR_LSION_Pos                  (0U)
7463 #define RCC_CSR_LSION_Msk                  (0x1UL << RCC_CSR_LSION_Pos)      /*!< 0x00000001 */
7464 #define RCC_CSR_LSION                      RCC_CSR_LSION_Msk
7465 #define RCC_CSR_LSIRDY_Pos                 (1U)
7466 #define RCC_CSR_LSIRDY_Msk                 (0x1UL << RCC_CSR_LSIRDY_Pos)     /*!< 0x00000002 */
7467 #define RCC_CSR_LSIRDY                     RCC_CSR_LSIRDY_Msk
7468 #define RCC_CSR_LSIPRE_Pos                 (4U)
7469 #define RCC_CSR_LSIPRE_Msk                 (0x1UL << RCC_CSR_LSIPRE_Pos)     /*!< 0x00000010 */
7470 #define RCC_CSR_LSIPRE                     RCC_CSR_LSIPRE_Msk
7471 
7472 #define RCC_CSR_MSISRANGE_Pos              (8U)
7473 #define RCC_CSR_MSISRANGE_Msk              (0xFUL << RCC_CSR_MSISRANGE_Pos)  /*!< 0x00000F00 */
7474 #define RCC_CSR_MSISRANGE                  RCC_CSR_MSISRANGE_Msk
7475 #define RCC_CSR_MSISRANGE_1                (0x4UL << RCC_CSR_MSISRANGE_Pos)  /*!< 0x00000400 */
7476 #define RCC_CSR_MSISRANGE_2                (0x5UL << RCC_CSR_MSISRANGE_Pos)  /*!< 0x00000500 */
7477 #define RCC_CSR_MSISRANGE_4                (0x6UL << RCC_CSR_MSISRANGE_Pos)  /*!< 0x00000600 */
7478 #define RCC_CSR_MSISRANGE_8                (0x7UL << RCC_CSR_MSISRANGE_Pos)  /*!< 0x00000700 */
7479 
7480 #define RCC_CSR_RFRSTF_Pos                  (14U)
7481 #define RCC_CSR_RFRSTF_Msk                  (0x1UL << RCC_CSR_RFRSTF_Pos)      /*!< 0x0004000 */
7482 #define RCC_CSR_RFRSTF                      RCC_CSR_RFRSTF_Msk
7483 #define RCC_CSR_RFRST_Pos                   (15U)
7484 #define RCC_CSR_RFRST_Msk                   (0x1UL << RCC_CSR_RFRST_Pos)       /*!< 0x0008000 */
7485 #define RCC_CSR_RFRST                       RCC_CSR_RFRST_Msk
7486 
7487 #define RCC_CSR_RMVF_Pos                    (23U)
7488 #define RCC_CSR_RMVF_Msk                    (0x1UL << RCC_CSR_RMVF_Pos)        /*!< 0x00800000 */
7489 #define RCC_CSR_RMVF                        RCC_CSR_RMVF_Msk
7490 #define RCC_CSR_RFILARSTF_Pos               (24U)
7491 #define RCC_CSR_RFILARSTF_Msk               (0x1UL << RCC_CSR_RFILARSTF_Pos)   /*!< 0x01000000 */
7492 #define RCC_CSR_RFILARSTF                   RCC_CSR_RFILARSTF_Msk
7493 #define RCC_CSR_OBLRSTF_Pos                 (25U)
7494 #define RCC_CSR_OBLRSTF_Msk                 (0x1UL << RCC_CSR_OBLRSTF_Pos)     /*!< 0x02000000 */
7495 #define RCC_CSR_OBLRSTF                     RCC_CSR_OBLRSTF_Msk
7496 #define RCC_CSR_PINRSTF_Pos                 (26U)
7497 #define RCC_CSR_PINRSTF_Msk                 (0x1UL << RCC_CSR_PINRSTF_Pos)     /*!< 0x04000000 */
7498 #define RCC_CSR_PINRSTF                     RCC_CSR_PINRSTF_Msk
7499 #define RCC_CSR_BORRSTF_Pos                 (27U)
7500 #define RCC_CSR_BORRSTF_Msk                 (0x1UL << RCC_CSR_BORRSTF_Pos)     /*!< 0x08000000 */
7501 #define RCC_CSR_BORRSTF                     RCC_CSR_BORRSTF_Msk
7502 #define RCC_CSR_SFTRSTF_Pos                 (28U)
7503 #define RCC_CSR_SFTRSTF_Msk                 (0x1UL << RCC_CSR_SFTRSTF_Pos)     /*!< 0x10000000 */
7504 #define RCC_CSR_SFTRSTF                     RCC_CSR_SFTRSTF_Msk
7505 #define RCC_CSR_IWDGRSTF_Pos                (29U)
7506 #define RCC_CSR_IWDGRSTF_Msk                (0x1UL << RCC_CSR_IWDGRSTF_Pos)    /*!< 0x20000000 */
7507 #define RCC_CSR_IWDGRSTF                    RCC_CSR_IWDGRSTF_Msk
7508 #define RCC_CSR_WWDGRSTF_Pos                (30U)
7509 #define RCC_CSR_WWDGRSTF_Msk                (0x1UL << RCC_CSR_WWDGRSTF_Pos)    /*!< 0x40000000 */
7510 #define RCC_CSR_WWDGRSTF                    RCC_CSR_WWDGRSTF_Msk
7511 #define RCC_CSR_LPWRRSTF_Pos                (31U)
7512 #define RCC_CSR_LPWRRSTF_Msk                (0x1UL << RCC_CSR_LPWRRSTF_Pos)    /*!< 0x80000000 */
7513 #define RCC_CSR_LPWRRSTF                    RCC_CSR_LPWRRSTF_Msk
7514 
7515 /********************  Bit definition for RCC_EXTCFGR register  *******************/
7516 #define RCC_EXTCFGR_SHDHPRE_Pos             (0U)
7517 #define RCC_EXTCFGR_SHDHPRE_Msk             (0xFUL << RCC_EXTCFGR_SHDHPRE_Pos) /*!< 0x0000000F */
7518 #define RCC_EXTCFGR_SHDHPRE                 RCC_EXTCFGR_SHDHPRE_Msk
7519 #define RCC_EXTCFGR_SHDHPRE_0               (0x1UL << RCC_EXTCFGR_SHDHPRE_Pos) /*!< 0x00000001 */
7520 #define RCC_EXTCFGR_SHDHPRE_1               (0x2UL << RCC_EXTCFGR_SHDHPRE_Pos) /*!< 0x00000002 */
7521 #define RCC_EXTCFGR_SHDHPRE_2               (0x4UL << RCC_EXTCFGR_SHDHPRE_Pos) /*!< 0x00000004 */
7522 #define RCC_EXTCFGR_SHDHPRE_3               (0x8UL << RCC_EXTCFGR_SHDHPRE_Pos) /*!< 0x00000008 */
7523 
7524 #define RCC_EXTCFGR_C2HPRE_Pos              (4U)
7525 #define RCC_EXTCFGR_C2HPRE_Msk              (0xFUL << RCC_EXTCFGR_C2HPRE_Pos)/*!< 0x000000F0 */
7526 #define RCC_EXTCFGR_C2HPRE                  RCC_EXTCFGR_C2HPRE_Msk
7527 #define RCC_EXTCFGR_C2HPRE_0                (0x1UL << RCC_EXTCFGR_C2HPRE_Pos)/*!< 0x00000010 */
7528 #define RCC_EXTCFGR_C2HPRE_1                (0x2UL << RCC_EXTCFGR_C2HPRE_Pos)/*!< 0x00000020 */
7529 #define RCC_EXTCFGR_C2HPRE_2                (0x4UL << RCC_EXTCFGR_C2HPRE_Pos)/*!< 0x00000040 */
7530 #define RCC_EXTCFGR_C2HPRE_3                (0x8UL << RCC_EXTCFGR_C2HPRE_Pos)/*!< 0x00000080 */
7531 
7532 #define RCC_EXTCFGR_SHDHPREF_Pos            (16U)
7533 #define RCC_EXTCFGR_SHDHPREF_Msk            (0x1UL << RCC_EXTCFGR_SHDHPREF_Pos)/*!< 0x00010000 */
7534 #define RCC_EXTCFGR_SHDHPREF                RCC_EXTCFGR_SHDHPREF_Msk
7535 #define RCC_EXTCFGR_C2HPREF_Pos             (17U)
7536 #define RCC_EXTCFGR_C2HPREF_Msk             (0x1UL << RCC_EXTCFGR_C2HPREF_Pos)/*!< 0x00020000 */
7537 #define RCC_EXTCFGR_C2HPREF                 RCC_EXTCFGR_C2HPREF_Msk
7538 
7539 /********************  Bit definition for RCC_C2AHB1ENR register  ****************/
7540 #define RCC_C2AHB1ENR_DMA1EN_Pos            (0U)
7541 #define RCC_C2AHB1ENR_DMA1EN_Msk            (0x1UL << RCC_C2AHB1ENR_DMA1EN_Pos)/*!< 0x00000001 */
7542 #define RCC_C2AHB1ENR_DMA1EN                RCC_C2AHB1ENR_DMA1EN_Msk
7543 #define RCC_C2AHB1ENR_DMA2EN_Pos            (1U)
7544 #define RCC_C2AHB1ENR_DMA2EN_Msk            (0x1UL << RCC_C2AHB1ENR_DMA2EN_Pos)/*!< 0x00000002 */
7545 #define RCC_C2AHB1ENR_DMA2EN                RCC_C2AHB1ENR_DMA2EN_Msk
7546 #define RCC_C2AHB1ENR_DMAMUX1EN_Pos         (2U)
7547 #define RCC_C2AHB1ENR_DMAMUX1EN_Msk         (0x1UL << RCC_C2AHB1ENR_DMAMUX1EN_Pos)/*!< 0x00000004 */
7548 #define RCC_C2AHB1ENR_DMAMUX1EN             RCC_C2AHB1ENR_DMAMUX1EN_Msk
7549 #define RCC_C2AHB1ENR_CRCEN_Pos             (12U)
7550 #define RCC_C2AHB1ENR_CRCEN_Msk             (0x1UL << RCC_C2AHB1ENR_CRCEN_Pos)/*!< 0x00001000 */
7551 #define RCC_C2AHB1ENR_CRCEN                  RCC_C2AHB1ENR_CRCEN_Msk
7552 
7553 /********************  Bit definition for RCC_C2AHB2ENR register  ***************/
7554 #define RCC_C2AHB2ENR_GPIOAEN_Pos          (0U)
7555 #define RCC_C2AHB2ENR_GPIOAEN_Msk          (0x1UL << RCC_C2AHB2ENR_GPIOAEN_Pos)/*!< 0x00000001 */
7556 #define RCC_C2AHB2ENR_GPIOAEN              RCC_C2AHB2ENR_GPIOAEN_Msk
7557 #define RCC_C2AHB2ENR_GPIOBEN_Pos          (1U)
7558 #define RCC_C2AHB2ENR_GPIOBEN_Msk          (0x1UL << RCC_C2AHB2ENR_GPIOBEN_Pos)/*!< 0x00000002 */
7559 #define RCC_C2AHB2ENR_GPIOBEN              RCC_C2AHB2ENR_GPIOBEN_Msk
7560 #define RCC_C2AHB2ENR_GPIOCEN_Pos          (2U)
7561 #define RCC_C2AHB2ENR_GPIOCEN_Msk          (0x1UL << RCC_C2AHB2ENR_GPIOCEN_Pos)/*!< 0x00000004 */
7562 #define RCC_C2AHB2ENR_GPIOCEN              RCC_C2AHB2ENR_GPIOCEN_Msk
7563 #define RCC_C2AHB2ENR_GPIOHEN_Pos          (7U)
7564 #define RCC_C2AHB2ENR_GPIOHEN_Msk          (0x1UL << RCC_C2AHB2ENR_GPIOHEN_Pos)/*!< 0x00000080 */
7565 #define RCC_C2AHB2ENR_GPIOHEN              RCC_C2AHB2ENR_GPIOHEN_Msk
7566 
7567 /********************  Bit definition for RCC_C2AHB3ENR register  ***************/
7568 #define RCC_C2AHB3ENR_PKAEN_Pos            (16U)
7569 #define RCC_C2AHB3ENR_PKAEN_Msk            (0x1UL << RCC_C2AHB3ENR_PKAEN_Pos) /*!< 0x00010000 */
7570 #define RCC_C2AHB3ENR_PKAEN                RCC_C2AHB3ENR_PKAEN_Msk
7571 #define RCC_C2AHB3ENR_AESEN_Pos            (17U)
7572 #define RCC_C2AHB3ENR_AESEN_Msk            (0x1UL << RCC_C2AHB3ENR_AESEN_Pos)/*!< 0x00020000 */
7573 #define RCC_C2AHB3ENR_AESEN                RCC_C2AHB3ENR_AESEN_Msk
7574 #define RCC_C2AHB3ENR_RNGEN_Pos            (18U)
7575 #define RCC_C2AHB3ENR_RNGEN_Msk            (0x1UL << RCC_C2AHB3ENR_RNGEN_Pos)/*!< 0x00040000 */
7576 #define RCC_C2AHB3ENR_RNGEN                RCC_C2AHB3ENR_RNGEN_Msk
7577 #define RCC_C2AHB3ENR_HSEMEN_Pos           (19U)
7578 #define RCC_C2AHB3ENR_HSEMEN_Msk           (0x1UL << RCC_C2AHB3ENR_HSEMEN_Pos)/*!< 0x00080000 */
7579 #define RCC_C2AHB3ENR_HSEMEN               RCC_C2AHB3ENR_HSEMEN_Msk
7580 #define RCC_C2AHB3ENR_IPCCEN_Pos           (20U)
7581 #define RCC_C2AHB3ENR_IPCCEN_Msk           (0x1UL << RCC_C2AHB3ENR_IPCCEN_Pos)/*!< 0x00100000 */
7582 #define RCC_C2AHB3ENR_IPCCEN               RCC_C2AHB3ENR_IPCCEN_Msk
7583 #define RCC_C2AHB3ENR_FLASHEN_Pos          (25U)
7584 #define RCC_C2AHB3ENR_FLASHEN_Msk          (0x1UL << RCC_C2AHB3ENR_FLASHEN_Pos)/*!< 0x02000000 */
7585 #define RCC_C2AHB3ENR_FLASHEN              RCC_C2AHB3ENR_FLASHEN_Msk
7586 
7587 /********************  Bit definition for RCC_C2APB1ENR1 register  **************/
7588 #define RCC_C2APB1ENR1_TIM2EN_Pos          (0U)
7589 #define RCC_C2APB1ENR1_TIM2EN_Msk          (0x1UL << RCC_C2APB1ENR1_TIM2EN_Pos)/*!< 0x00000001 */
7590 #define RCC_C2APB1ENR1_TIM2EN              RCC_C2APB1ENR1_TIM2EN_Msk
7591 #define RCC_C2APB1ENR1_RTCAPBEN_Pos        (10U)
7592 #define RCC_C2APB1ENR1_RTCAPBEN_Msk        (0x1UL << RCC_C2APB1ENR1_RTCAPBEN_Pos)/*!< 0x00000400 */
7593 #define RCC_C2APB1ENR1_RTCAPBEN            RCC_C2APB1ENR1_RTCAPBEN_Msk
7594 #define RCC_C2APB1ENR1_SPI2EN_Pos          (14U)
7595 #define RCC_C2APB1ENR1_SPI2EN_Msk          (0x1UL << RCC_C2APB1ENR1_SPI2EN_Pos)/*!< 0x00004000 */
7596 #define RCC_C2APB1ENR1_SPI2EN              RCC_C2APB1ENR1_SPI2EN_Msk
7597 #define RCC_C2APB1ENR1_USART2EN_Pos        (17U)
7598 #define RCC_C2APB1ENR1_USART2EN_Msk        (0x1UL << RCC_C2APB1ENR1_USART2EN_Pos)/*!< 0x00020000 */
7599 #define RCC_C2APB1ENR1_USART2EN            RCC_C2APB1ENR1_USART2EN_Msk
7600 #define RCC_C2APB1ENR1_I2C1EN_Pos          (21U)
7601 #define RCC_C2APB1ENR1_I2C1EN_Msk          (0x1UL << RCC_C2APB1ENR1_I2C1EN_Pos)/*!< 0x00200000 */
7602 #define RCC_C2APB1ENR1_I2C1EN              RCC_C2APB1ENR1_I2C1EN_Msk
7603 #define RCC_C2APB1ENR1_I2C2EN_Pos          (22U)
7604 #define RCC_C2APB1ENR1_I2C2EN_Msk          (0x1UL << RCC_C2APB1ENR1_I2C2EN_Pos)/*!< 0x00400000 */
7605 #define RCC_C2APB1ENR1_I2C2EN              RCC_C2APB1ENR1_I2C2EN_Msk
7606 #define RCC_C2APB1ENR1_I2C3EN_Pos          (23U)
7607 #define RCC_C2APB1ENR1_I2C3EN_Msk          (0x1UL << RCC_C2APB1ENR1_I2C3EN_Pos)/*!< 0x00800000 */
7608 #define RCC_C2APB1ENR1_I2C3EN              RCC_C2APB1ENR1_I2C3EN_Msk
7609 #define RCC_C2APB1ENR1_DACEN_Pos           (29U)
7610 #define RCC_C2APB1ENR1_DACEN_Msk           (0x1UL << RCC_C2APB1ENR1_DACEN_Pos)/*!< 0x20000000 */
7611 #define RCC_C2APB1ENR1_DACEN               RCC_C2APB1ENR1_DACEN_Msk
7612 #define RCC_C2APB1ENR1_LPTIM1EN_Pos        (31U)
7613 #define RCC_C2APB1ENR1_LPTIM1EN_Msk        (0x1UL << RCC_C2APB1ENR1_LPTIM1EN_Pos)/*!< 0x80000000 */
7614 #define RCC_C2APB1ENR1_LPTIM1EN            RCC_C2APB1ENR1_LPTIM1EN_Msk
7615 
7616 /********************  Bit definition for RCC_C2APB1ENR2 register  **************/
7617 #define RCC_C2APB1ENR2_LPUART1EN_Pos       (0U)
7618 #define RCC_C2APB1ENR2_LPUART1EN_Msk       (0x1UL << RCC_C2APB1ENR2_LPUART1EN_Pos)/*!< 0x00000001 */
7619 #define RCC_C2APB1ENR2_LPUART1EN           RCC_C2APB1ENR2_LPUART1EN_Msk
7620 #define RCC_C2APB1ENR2_LPTIM2EN_Pos        (5U)
7621 #define RCC_C2APB1ENR2_LPTIM2EN_Msk        (0x1UL << RCC_C2APB1ENR2_LPTIM2EN_Pos)/*!< 0x00000020 */
7622 #define RCC_C2APB1ENR2_LPTIM2EN            RCC_C2APB1ENR2_LPTIM2EN_Msk
7623 #define RCC_C2APB1ENR2_LPTIM3EN_Pos        (6U)
7624 #define RCC_C2APB1ENR2_LPTIM3EN_Msk        (0x1UL << RCC_C2APB1ENR2_LPTIM3EN_Pos)/*!< 0x00000040 */
7625 #define RCC_C2APB1ENR2_LPTIM3EN            RCC_C2APB1ENR2_LPTIM3EN_Msk
7626 
7627 /********************  Bit definition for RCC_C2APB2ENR register  **************/
7628 #define RCC_C2APB2ENR_ADCEN_Pos            (9U)
7629 #define RCC_C2APB2ENR_ADCEN_Msk            (0x1UL << RCC_C2APB2ENR_ADCEN_Pos)/*!< 0x00000200 */
7630 #define RCC_C2APB2ENR_ADCEN                RCC_C2APB2ENR_ADCEN_Msk
7631 #define RCC_C2APB2ENR_TIM1EN_Pos           (11U)
7632 #define RCC_C2APB2ENR_TIM1EN_Msk           (0x1UL << RCC_C2APB2ENR_TIM1EN_Pos)/*!< 0x00000800 */
7633 #define RCC_C2APB2ENR_TIM1EN               RCC_C2APB2ENR_TIM1EN_Msk
7634 #define RCC_C2APB2ENR_SPI1EN_Pos           (12U)
7635 #define RCC_C2APB2ENR_SPI1EN_Msk           (0x1UL << RCC_C2APB2ENR_SPI1EN_Pos)/*!< 0x00001000 */
7636 #define RCC_C2APB2ENR_SPI1EN               RCC_C2APB2ENR_SPI1EN_Msk
7637 #define RCC_C2APB2ENR_USART1EN_Pos         (14U)
7638 #define RCC_C2APB2ENR_USART1EN_Msk         (0x1UL << RCC_C2APB2ENR_USART1EN_Pos)/*!< 0x00004000 */
7639 #define RCC_C2APB2ENR_USART1EN             RCC_C2APB2ENR_USART1EN_Msk
7640 #define RCC_C2APB2ENR_TIM16EN_Pos          (17U)
7641 #define RCC_C2APB2ENR_TIM16EN_Msk          (0x1UL << RCC_C2APB2ENR_TIM16EN_Pos)/*!< 0x00020000 */
7642 #define RCC_C2APB2ENR_TIM16EN              RCC_C2APB2ENR_TIM16EN_Msk
7643 #define RCC_C2APB2ENR_TIM17EN_Pos          (18U)
7644 #define RCC_C2APB2ENR_TIM17EN_Msk          (0x1UL << RCC_C2APB2ENR_TIM17EN_Pos)/*!< 0x00040000 */
7645 #define RCC_C2APB2ENR_TIM17EN              RCC_C2APB2ENR_TIM17EN_Msk
7646 #define RCC_C2APB2ENR_SAI1EN_Pos           (21U)
7647 #define RCC_C2APB2ENR_SAI1EN_Msk           (0x1UL << RCC_C2APB2ENR_SAI1EN_Pos)/*!< 0x00200000 */
7648 #define RCC_C2APB2ENR_SAI1EN               RCC_C2APB2ENR_SAI1EN_Msk
7649 
7650 /********************  Bit definition for RCC_C2APB3ENR register  **************/
7651 #define RCC_C2APB3ENR_SUBGHZSPIEN_Pos      (0U)
7652 #define RCC_C2APB3ENR_SUBGHZSPIEN_Msk      (0x1UL << RCC_C2APB3ENR_SUBGHZSPIEN_Pos)/*!< 0x00000001 */
7653 #define RCC_C2APB3ENR_SUBGHZSPIEN          RCC_C2APB3ENR_SUBGHZSPIEN_Msk
7654 
7655 /********************  Bit definition for RCC_C2AHB1SMENR register  ****************/
7656 #define RCC_C2AHB1SMENR_DMA1SMEN_Pos       (0U)
7657 #define RCC_C2AHB1SMENR_DMA1SMEN_Msk       (0x1UL << RCC_C2AHB1SMENR_DMA1SMEN_Pos)/*!< 0x00000001 */
7658 #define RCC_C2AHB1SMENR_DMA1SMEN           RCC_C2AHB1SMENR_DMA1SMEN_Msk
7659 #define RCC_C2AHB1SMENR_DMA2SMEN_Pos       (1U)
7660 #define RCC_C2AHB1SMENR_DMA2SMEN_Msk       (0x1UL << RCC_C2AHB1SMENR_DMA2SMEN_Pos)/*!< 0x00000002 */
7661 #define RCC_C2AHB1SMENR_DMA2SMEN           RCC_C2AHB1SMENR_DMA2SMEN_Msk
7662 #define RCC_C2AHB1SMENR_DMAMUX1SMEN_Pos    (2U)
7663 #define RCC_C2AHB1SMENR_DMAMUX1SMEN_Msk    (0x1UL << RCC_C2AHB1SMENR_DMAMUX1SMEN_Pos)/*!< 0x00000004 */
7664 #define RCC_C2AHB1SMENR_DMAMUX1SMEN        RCC_C2AHB1SMENR_DMAMUX1SMEN_Msk
7665 #define RCC_C2AHB1SMENR_CRCSMEN_Pos        (12U)
7666 #define RCC_C2AHB1SMENR_CRCSMEN_Msk        (0x1UL << RCC_C2AHB1SMENR_CRCSMEN_Pos)/*!< 0x00001000 */
7667 #define RCC_C2AHB1SMENR_CRCSMEN            RCC_C2AHB1SMENR_CRCSMEN_Msk
7668 
7669 /********************  Bit definition for RCC_C2AHB2SMENR register  ***************/
7670 #define RCC_C2AHB2SMENR_GPIOASMEN_Pos      (0U)
7671 #define RCC_C2AHB2SMENR_GPIOASMEN_Msk      (0x1UL << RCC_C2AHB2SMENR_GPIOASMEN_Pos)/*!< 0x00000001 */
7672 #define RCC_C2AHB2SMENR_GPIOASMEN          RCC_C2AHB2SMENR_GPIOASMEN_Msk
7673 #define RCC_C2AHB2SMENR_GPIOBSMEN_Pos      (1U)
7674 #define RCC_C2AHB2SMENR_GPIOBSMEN_Msk      (0x1UL << RCC_C2AHB2SMENR_GPIOBSMEN_Pos)/*!< 0x00000002 */
7675 #define RCC_C2AHB2SMENR_GPIOBSMEN          RCC_C2AHB2SMENR_GPIOBSMEN_Msk
7676 #define RCC_C2AHB2SMENR_GPIOCSMEN_Pos      (2U)
7677 #define RCC_C2AHB2SMENR_GPIOCSMEN_Msk      (0x1UL << RCC_C2AHB2SMENR_GPIOCSMEN_Pos)/*!< 0x00000004 */
7678 #define RCC_C2AHB2SMENR_GPIOCSMEN          RCC_C2AHB2SMENR_GPIOCSMEN_Msk
7679 #define RCC_C2AHB2SMENR_GPIOHSMEN_Pos      (7U)
7680 #define RCC_C2AHB2SMENR_GPIOHSMEN_Msk      (0x1UL << RCC_C2AHB2SMENR_GPIOHSMEN_Pos)/*!< 0x00000080 */
7681 #define RCC_C2AHB2SMENR_GPIOHSMEN          RCC_C2AHB2SMENR_GPIOHSMEN_Msk
7682 
7683 /********************  Bit definition for RCC_C2AHB3SMENR register  ***************/
7684 #define RCC_C2AHB3SMENR_PKASMEN_Pos        (16U)
7685 #define RCC_C2AHB3SMENR_PKASMEN_Msk        (0x1UL << RCC_C2AHB3SMENR_PKASMEN_Pos) /*!< 0x00010000 */
7686 #define RCC_C2AHB3SMENR_PKASMEN            RCC_C2AHB3SMENR_PKASMEN_Msk
7687 #define RCC_C2AHB3SMENR_AESSMEN_Pos        (17U)
7688 #define RCC_C2AHB3SMENR_AESSMEN_Msk        (0x1UL << RCC_C2AHB3SMENR_AESSMEN_Pos)/*!< 0x00020000 */
7689 #define RCC_C2AHB3SMENR_AESSMEN            RCC_C2AHB3SMENR_AESSMEN_Msk
7690 #define RCC_C2AHB3SMENR_RNGSMEN_Pos        (18U)
7691 #define RCC_C2AHB3SMENR_RNGSMEN_Msk        (0x1UL << RCC_C2AHB3SMENR_RNGSMEN_Pos)/*!< 0x00040000 */
7692 #define RCC_C2AHB3SMENR_RNGSMEN            RCC_C2AHB3SMENR_RNGSMEN_Msk
7693 #define RCC_C2AHB3SMENR_SRAM1SMEN_Pos      (23U)
7694 #define RCC_C2AHB3SMENR_SRAM1SMEN_Msk      (0x1UL << RCC_C2AHB3SMENR_SRAM1SMEN_Pos)/*!< 0x00000200 */
7695 #define RCC_C2AHB3SMENR_SRAM1SMEN          RCC_C2AHB3SMENR_SRAM1SMEN_Msk
7696 #define RCC_C2AHB3SMENR_SRAM2SMEN_Pos      (24U)
7697 #define RCC_C2AHB3SMENR_SRAM2SMEN_Msk      (0x1UL << RCC_C2AHB3SMENR_SRAM2SMEN_Pos)/*!< 0x01000000 */
7698 #define RCC_C2AHB3SMENR_SRAM2SMEN           RCC_C2AHB3SMENR_SRAM2SMEN_Msk
7699 #define RCC_C2AHB3SMENR_FLASHSMEN_Pos      (25U)
7700 #define RCC_C2AHB3SMENR_FLASHSMEN_Msk      (0x1UL << RCC_C2AHB3SMENR_FLASHSMEN_Pos)/*!< 0x02000000 */
7701 #define RCC_C2AHB3SMENR_FLASHSMEN           RCC_C2AHB3SMENR_FLASHSMEN_Msk
7702 
7703 /********************  Bit definition for RCC_C2APB1SMENR1 register  **************/
7704 #define RCC_C2APB1SMENR1_TIM2SMEN_Pos      (0U)
7705 #define RCC_C2APB1SMENR1_TIM2SMEN_Msk      (0x1UL << RCC_C2APB1SMENR1_TIM2SMEN_Pos)/*!< 0x00000001 */
7706 #define RCC_C2APB1SMENR1_TIM2SMEN          RCC_C2APB1SMENR1_TIM2SMEN_Msk
7707 #define RCC_C2APB1SMENR1_RTCAPBSMEN_Pos    (10U)
7708 #define RCC_C2APB1SMENR1_RTCAPBSMEN_Msk    (0x1UL << RCC_C2APB1SMENR1_RTCAPBSMEN_Pos)/*!< 0x00000400 */
7709 #define RCC_C2APB1SMENR1_RTCAPBSMEN        RCC_C2APB1SMENR1_RTCAPBSMEN_Msk
7710 #define RCC_C2APB1SMENR1_SPI2SMEN_Pos      (14U)
7711 #define RCC_C2APB1SMENR1_SPI2SMEN_Msk      (0x1UL << RCC_C2APB1SMENR1_SPI2SMEN_Pos)/*!< 0x00004000 */
7712 #define RCC_C2APB1SMENR1_SPI2SMEN          RCC_C2APB1SMENR1_SPI2SMEN_Msk
7713 #define RCC_C2APB1SMENR1_USART2SMEN_Pos    (17U)
7714 #define RCC_C2APB1SMENR1_USART2SMEN_Msk    (0x1UL << RCC_C2APB1SMENR1_USART2SMEN_Pos)/*!< 0x00020000 */
7715 #define RCC_C2APB1SMENR1_USART2SMEN        RCC_C2APB1SMENR1_USART2SMEN_Msk
7716 #define RCC_C2APB1SMENR1_I2C1SMEN_Pos      (21U)
7717 #define RCC_C2APB1SMENR1_I2C1SMEN_Msk      (0x1UL << RCC_C2APB1SMENR1_I2C1SMEN_Pos)/*!< 0x00200000 */
7718 #define RCC_C2APB1SMENR1_I2C1SMEN          RCC_C2APB1SMENR1_I2C1SMEN_Msk
7719 #define RCC_C2APB1SMENR1_I2C2SMEN_Pos      (22U)
7720 #define RCC_C2APB1SMENR1_I2C2SMEN_Msk      (0x1UL << RCC_C2APB1SMENR1_I2C2SMEN_Pos)/*!< 0x00400000 */
7721 #define RCC_C2APB1SMENR1_I2C2SMEN          RCC_C2APB1SMENR1_I2C2SMEN_Msk
7722 #define RCC_C2APB1SMENR1_I2C3SMEN_Pos      (23U)
7723 #define RCC_C2APB1SMENR1_I2C3SMEN_Msk      (0x1UL << RCC_C2APB1SMENR1_I2C3SMEN_Pos)/*!< 0x00800000 */
7724 #define RCC_C2APB1SMENR1_I2C3SMEN          RCC_C2APB1SMENR1_I2C3SMEN_Msk
7725 #define RCC_C2APB1SMENR1_DACSMEN_Pos       (29U)
7726 #define RCC_C2APB1SMENR1_DACSMEN_Msk       (0x1UL << RCC_C2APB1SMENR1_DACSMEN_Pos)/*!< 0x20000000 */
7727 #define RCC_C2APB1SMENR1_DACSMEN           RCC_C2APB1SMENR1_DACSMEN_Msk
7728 #define RCC_C2APB1SMENR1_LPTIM1SMEN_Pos    (31U)
7729 #define RCC_C2APB1SMENR1_LPTIM1SMEN_Msk    (0x1UL << RCC_C2APB1SMENR1_LPTIM1SMEN_Pos)/*!< 0x80000000 */
7730 #define RCC_C2APB1SMENR1_LPTIM1SMEN        RCC_C2APB1SMENR1_LPTIM1SMEN_Msk
7731 
7732 /********************  Bit definition for RCC_C2APB1SMENR2 register  **************/
7733 #define RCC_C2APB1SMENR2_LPUART1SMEN_Pos    (0U)
7734 #define RCC_C2APB1SMENR2_LPUART1SMEN_Msk    (0x1UL << RCC_C2APB1SMENR2_LPUART1SMEN_Pos)/*!< 0x00000001 */
7735 #define RCC_C2APB1SMENR2_LPUART1SMEN        RCC_C2APB1SMENR2_LPUART1SMEN_Msk
7736 #define RCC_C2APB1SMENR2_LPTIM2SMEN_Pos     (5U)
7737 #define RCC_C2APB1SMENR2_LPTIM2SMEN_Msk     (0x1UL << RCC_C2APB1SMENR2_LPTIM2SMEN_Pos)/*!< 0x00000020 */
7738 #define RCC_C2APB1SMENR2_LPTIM2SMEN         RCC_C2APB1SMENR2_LPTIM2SMEN_Msk
7739 #define RCC_C2APB1SMENR2_LPTIM3SMEN_Pos     (6U)
7740 #define RCC_C2APB1SMENR2_LPTIM3SMEN_Msk     (0x1UL << RCC_C2APB1SMENR2_LPTIM3SMEN_Pos)/*!< 0x00000040 */
7741 #define RCC_C2APB1SMENR2_LPTIM3SMEN         RCC_C2APB1SMENR2_LPTIM3SMEN_Msk
7742 
7743 /********************  Bit definition for RCC_C2APB2SMENR register  **************/
7744 #define RCC_C2APB2SMENR_ADCSMEN_Pos        (9U)
7745 #define RCC_C2APB2SMENR_ADCSMEN_Msk        (0x1UL << RCC_C2APB2SMENR_ADCSMEN_Pos)/*!< 0x00000200 */
7746 #define RCC_C2APB2SMENR_ADCSMEN            RCC_C2APB2SMENR_ADCSMEN_Msk
7747 #define RCC_C2APB2SMENR_TIM1SMEN_Pos       (11U)
7748 #define RCC_C2APB2SMENR_TIM1SMEN_Msk       (0x1UL << RCC_C2APB2SMENR_TIM1SMEN_Pos)/*!< 0x00000800 */
7749 #define RCC_C2APB2SMENR_TIM1SMEN           RCC_C2APB2SMENR_TIM1SMEN_Msk
7750 #define RCC_C2APB2SMENR_SPI1SMEN_Pos       (12U)
7751 #define RCC_C2APB2SMENR_SPI1SMEN_Msk       (0x1UL << RCC_C2APB2SMENR_SPI1SMEN_Pos)/*!< 0x00001000 */
7752 #define RCC_C2APB2SMENR_SPI1SMEN           RCC_C2APB2SMENR_SPI1SMEN_Msk
7753 #define RCC_C2APB2SMENR_USART1SMEN_Pos     (14U)
7754 #define RCC_C2APB2SMENR_USART1SMEN_Msk     (0x1UL << RCC_C2APB2SMENR_USART1SMEN_Pos)/*!< 0x00004000 */
7755 #define RCC_C2APB2SMENR_USART1SMEN         RCC_C2APB2SMENR_USART1SMEN_Msk
7756 #define RCC_C2APB2SMENR_TIM16SMEN_Pos      (17U)
7757 #define RCC_C2APB2SMENR_TIM16SMEN_Msk      (0x1UL << RCC_C2APB2SMENR_TIM16SMEN_Pos)/*!< 0x00020000 */
7758 #define RCC_C2APB2SMENR_TIM16SMEN          RCC_C2APB2SMENR_TIM16SMEN_Msk
7759 #define RCC_C2APB2SMENR_TIM17SMEN_Pos      (18U)
7760 #define RCC_C2APB2SMENR_TIM17SMEN_Msk      (0x1UL << RCC_C2APB2SMENR_TIM17SMEN_Pos)/*!< 0x00040000 */
7761 #define RCC_C2APB2SMENR_TIM17SMEN          RCC_C2APB2SMENR_TIM17SMEN_Msk
7762 
7763 /********************  Bit definition for RCC_C2APB3SMENR register  **************/
7764 #define RCC_C2APB3SMENR_SUBGHZSPISMEN_Pos  (0U)
7765 #define RCC_C2APB3SMENR_SUBGHZSPISMEN_Msk  (0x1UL << RCC_C2APB3SMENR_SUBGHZSPISMEN_Pos)/*!< 0x00000001 */
7766 #define RCC_C2APB3SMENR_SUBGHZSPISMEN      RCC_C2APB3SMENR_SUBGHZSPISMEN_Msk
7767 
7768 /******************************************************************************/
7769 /*                                                                            */
7770 /*                                    RNG                                     */
7771 /*                                                                            */
7772 /******************************************************************************/
7773 /*
7774  * @brief Specific device feature definitions
7775  */
7776 #define RNG_VER_3_2
7777 
7778 /********************  Bits definition for RNG_CR register  *******************/
7779 #define RNG_CR_RNGEN_Pos         (2U)
7780 #define RNG_CR_RNGEN_Msk         (0x1UL << RNG_CR_RNGEN_Pos)                   /*!< 0x00000004 */
7781 #define RNG_CR_RNGEN             RNG_CR_RNGEN_Msk
7782 #define RNG_CR_IE_Pos            (3U)
7783 #define RNG_CR_IE_Msk            (0x1UL << RNG_CR_IE_Pos)                      /*!< 0x00000008 */
7784 #define RNG_CR_IE                RNG_CR_IE_Msk
7785 #define RNG_CR_CED_Pos           (5U)
7786 #define RNG_CR_CED_Msk           (0x1UL << RNG_CR_CED_Pos)                     /*!< 0x00000020 */
7787 #define RNG_CR_CED               RNG_CR_CED_Msk
7788 #define RNG_CR_RNG_CONFIG3_Pos   (8U)
7789 #define RNG_CR_RNG_CONFIG3_Msk   (0xFUL << RNG_CR_RNG_CONFIG3_Pos)              /*!< 0x00000F00 */
7790 #define RNG_CR_RNG_CONFIG3       RNG_CR_RNG_CONFIG3_Msk
7791 #define RNG_CR_NISTC_Pos         (12U)
7792 #define RNG_CR_NISTC_Msk         (0x1UL << RNG_CR_NISTC_Pos)                   /*!< 0x00001000 */
7793 #define RNG_CR_NISTC             RNG_CR_NISTC_Msk
7794 #define RNG_CR_RNG_CONFIG2_Pos   (13U)
7795 #define RNG_CR_RNG_CONFIG2_Msk   (0x7UL << RNG_CR_RNG_CONFIG2_Pos)              /*!< 0x0000E000 */
7796 #define RNG_CR_RNG_CONFIG2       RNG_CR_RNG_CONFIG2_Msk
7797 #define RNG_CR_CLKDIV_Pos        (16U)
7798 #define RNG_CR_CLKDIV_Msk        (0xFUL << RNG_CR_CLKDIV_Pos)                  /*!< 0x000F0000 */
7799 #define RNG_CR_CLKDIV            RNG_CR_CLKDIV_Msk
7800 #define RNG_CR_CLKDIV_0          (0x1UL << RNG_CR_CLKDIV_Pos)                  /*!< 0x00010000 */
7801 #define RNG_CR_CLKDIV_1          (0x2UL << RNG_CR_CLKDIV_Pos)                  /*!< 0x00020000 */
7802 #define RNG_CR_CLKDIV_2          (0x4UL << RNG_CR_CLKDIV_Pos)                  /*!< 0x00040000 */
7803 #define RNG_CR_CLKDIV_3          (0x8UL << RNG_CR_CLKDIV_Pos)                  /*!< 0x00080000 */
7804 #define RNG_CR_RNG_CONFIG1_Pos   (20U)
7805 #define RNG_CR_RNG_CONFIG1_Msk   (0x3FUL << RNG_CR_RNG_CONFIG1_Pos)             /*!< 0x03F00000 */
7806 #define RNG_CR_RNG_CONFIG1       RNG_CR_RNG_CONFIG1_Msk
7807 #define RNG_CR_CONDRST_Pos       (30U)
7808 #define RNG_CR_CONDRST_Msk       (0x1UL << RNG_CR_CONDRST_Pos)                 /*!< 0x40000000 */
7809 #define RNG_CR_CONDRST           RNG_CR_CONDRST_Msk
7810 #define RNG_CR_CONFIGLOCK_Pos    (31U)
7811 #define RNG_CR_CONFIGLOCK_Msk    (0x1UL << RNG_CR_CONFIGLOCK_Pos)              /*!< 0x80000000 */
7812 #define RNG_CR_CONFIGLOCK        RNG_CR_CONFIGLOCK_Msk
7813 
7814 /********************  Bits definition for RNG_SR register  *******************/
7815 #define RNG_SR_DRDY_Pos     (0U)
7816 #define RNG_SR_DRDY_Msk     (0x1UL << RNG_SR_DRDY_Pos)                         /*!< 0x00000001 */
7817 #define RNG_SR_DRDY         RNG_SR_DRDY_Msk
7818 #define RNG_SR_CECS_Pos     (1U)
7819 #define RNG_SR_CECS_Msk     (0x1UL << RNG_SR_CECS_Pos)                         /*!< 0x00000002 */
7820 #define RNG_SR_CECS         RNG_SR_CECS_Msk
7821 #define RNG_SR_SECS_Pos     (2U)
7822 #define RNG_SR_SECS_Msk     (0x1UL << RNG_SR_SECS_Pos)                         /*!< 0x00000004 */
7823 #define RNG_SR_SECS         RNG_SR_SECS_Msk
7824 #define RNG_SR_CEIS_Pos     (5U)
7825 #define RNG_SR_CEIS_Msk     (0x1UL << RNG_SR_CEIS_Pos)                         /*!< 0x00000020 */
7826 #define RNG_SR_CEIS         RNG_SR_CEIS_Msk
7827 #define RNG_SR_SEIS_Pos     (6U)
7828 #define RNG_SR_SEIS_Msk     (0x1UL << RNG_SR_SEIS_Pos)                         /*!< 0x00000040 */
7829 #define RNG_SR_SEIS         RNG_SR_SEIS_Msk
7830 
7831 /********************  Bits definition for RNG_DR register  *******************/
7832 #define RNG_DR_RNDATA_Pos        (0U)
7833 #define RNG_DR_RNDATA_Msk        (0xFFFFFFFFUL << RNG_DR_RNDATA_Pos)       /*!< 0xFFFFFFFF */
7834 #define RNG_DR_RNDATA            RNG_DR_RNDATA_Msk
7835 
7836 /********************  Bits definition for RNG_HTCR register  *****************/
7837 #define RNG_HTCR_HTCFG_Pos       (0U)
7838 #define RNG_HTCR_HTCFG_Msk       (0xFFFFFFFFUL << RNG_HTCR_HTCFG_Pos)      /*!< 0xFFFFFFFF */
7839 #define RNG_HTCR_HTCFG           RNG_HTCR_HTCFG_Msk
7840 
7841 /******************************************************************************/
7842 /*                                                                            */
7843 /*                           Real-Time Clock (RTC)                            */
7844 /*                                                                            */
7845 /******************************************************************************/
7846 /********************  Bits definition for RTC_TR register  *******************/
7847 #define RTC_TR_PM_Pos                (22U)
7848 #define RTC_TR_PM_Msk                (0x1UL << RTC_TR_PM_Pos)                  /*!< 0x00400000 */
7849 #define RTC_TR_PM                    RTC_TR_PM_Msk
7850 #define RTC_TR_HT_Pos                (20U)
7851 #define RTC_TR_HT_Msk                (0x3UL << RTC_TR_HT_Pos)                  /*!< 0x00300000 */
7852 #define RTC_TR_HT                    RTC_TR_HT_Msk
7853 #define RTC_TR_HT_0                  (0x1UL << RTC_TR_HT_Pos)                  /*!< 0x00100000 */
7854 #define RTC_TR_HT_1                  (0x2UL << RTC_TR_HT_Pos)                  /*!< 0x00200000 */
7855 #define RTC_TR_HU_Pos                (16U)
7856 #define RTC_TR_HU_Msk                (0xFUL << RTC_TR_HU_Pos)                  /*!< 0x000F0000 */
7857 #define RTC_TR_HU                    RTC_TR_HU_Msk
7858 #define RTC_TR_HU_0                  (0x1UL << RTC_TR_HU_Pos)                  /*!< 0x00010000 */
7859 #define RTC_TR_HU_1                  (0x2UL << RTC_TR_HU_Pos)                  /*!< 0x00020000 */
7860 #define RTC_TR_HU_2                  (0x4UL << RTC_TR_HU_Pos)                  /*!< 0x00040000 */
7861 #define RTC_TR_HU_3                  (0x8UL << RTC_TR_HU_Pos)                  /*!< 0x00080000 */
7862 #define RTC_TR_MNT_Pos               (12U)
7863 #define RTC_TR_MNT_Msk               (0x7UL << RTC_TR_MNT_Pos)                 /*!< 0x00007000 */
7864 #define RTC_TR_MNT                   RTC_TR_MNT_Msk
7865 #define RTC_TR_MNT_0                 (0x1UL << RTC_TR_MNT_Pos)                 /*!< 0x00001000 */
7866 #define RTC_TR_MNT_1                 (0x2UL << RTC_TR_MNT_Pos)                 /*!< 0x00002000 */
7867 #define RTC_TR_MNT_2                 (0x4UL << RTC_TR_MNT_Pos)                 /*!< 0x00004000 */
7868 #define RTC_TR_MNU_Pos               (8U)
7869 #define RTC_TR_MNU_Msk               (0xFUL << RTC_TR_MNU_Pos)                 /*!< 0x00000F00 */
7870 #define RTC_TR_MNU                   RTC_TR_MNU_Msk
7871 #define RTC_TR_MNU_0                 (0x1UL << RTC_TR_MNU_Pos)                 /*!< 0x00000100 */
7872 #define RTC_TR_MNU_1                 (0x2UL << RTC_TR_MNU_Pos)                 /*!< 0x00000200 */
7873 #define RTC_TR_MNU_2                 (0x4UL << RTC_TR_MNU_Pos)                 /*!< 0x00000400 */
7874 #define RTC_TR_MNU_3                 (0x8UL << RTC_TR_MNU_Pos)                 /*!< 0x00000800 */
7875 #define RTC_TR_ST_Pos                (4U)
7876 #define RTC_TR_ST_Msk                (0x7UL << RTC_TR_ST_Pos)                  /*!< 0x00000070 */
7877 #define RTC_TR_ST                    RTC_TR_ST_Msk
7878 #define RTC_TR_ST_0                  (0x1UL << RTC_TR_ST_Pos)                  /*!< 0x00000010 */
7879 #define RTC_TR_ST_1                  (0x2UL << RTC_TR_ST_Pos)                  /*!< 0x00000020 */
7880 #define RTC_TR_ST_2                  (0x4UL << RTC_TR_ST_Pos)                  /*!< 0x00000040 */
7881 #define RTC_TR_SU_Pos                (0U)
7882 #define RTC_TR_SU_Msk                (0xFUL << RTC_TR_SU_Pos)                  /*!< 0x0000000F */
7883 #define RTC_TR_SU                    RTC_TR_SU_Msk
7884 #define RTC_TR_SU_0                  (0x1UL << RTC_TR_SU_Pos)                  /*!< 0x00000001 */
7885 #define RTC_TR_SU_1                  (0x2UL << RTC_TR_SU_Pos)                  /*!< 0x00000002 */
7886 #define RTC_TR_SU_2                  (0x4UL << RTC_TR_SU_Pos)                  /*!< 0x00000004 */
7887 #define RTC_TR_SU_3                  (0x8UL << RTC_TR_SU_Pos)                  /*!< 0x00000008 */
7888 
7889 /********************  Bits definition for RTC_DR register  *******************/
7890 #define RTC_DR_YT_Pos                (20U)
7891 #define RTC_DR_YT_Msk                (0xFUL << RTC_DR_YT_Pos)                  /*!< 0x00F00000 */
7892 #define RTC_DR_YT                    RTC_DR_YT_Msk
7893 #define RTC_DR_YT_0                  (0x1UL << RTC_DR_YT_Pos)                  /*!< 0x00100000 */
7894 #define RTC_DR_YT_1                  (0x2UL << RTC_DR_YT_Pos)                  /*!< 0x00200000 */
7895 #define RTC_DR_YT_2                  (0x4UL << RTC_DR_YT_Pos)                  /*!< 0x00400000 */
7896 #define RTC_DR_YT_3                  (0x8UL << RTC_DR_YT_Pos)                  /*!< 0x00800000 */
7897 #define RTC_DR_YU_Pos                (16U)
7898 #define RTC_DR_YU_Msk                (0xFUL << RTC_DR_YU_Pos)                  /*!< 0x000F0000 */
7899 #define RTC_DR_YU                    RTC_DR_YU_Msk
7900 #define RTC_DR_YU_0                  (0x1UL << RTC_DR_YU_Pos)                  /*!< 0x00010000 */
7901 #define RTC_DR_YU_1                  (0x2UL << RTC_DR_YU_Pos)                  /*!< 0x00020000 */
7902 #define RTC_DR_YU_2                  (0x4UL << RTC_DR_YU_Pos)                  /*!< 0x00040000 */
7903 #define RTC_DR_YU_3                  (0x8UL << RTC_DR_YU_Pos)                  /*!< 0x00080000 */
7904 #define RTC_DR_WDU_Pos               (13U)
7905 #define RTC_DR_WDU_Msk               (0x7UL << RTC_DR_WDU_Pos)                 /*!< 0x0000E000 */
7906 #define RTC_DR_WDU                   RTC_DR_WDU_Msk
7907 #define RTC_DR_WDU_0                 (0x1UL << RTC_DR_WDU_Pos)                 /*!< 0x00002000 */
7908 #define RTC_DR_WDU_1                 (0x2UL << RTC_DR_WDU_Pos)                 /*!< 0x00004000 */
7909 #define RTC_DR_WDU_2                 (0x4UL << RTC_DR_WDU_Pos)                 /*!< 0x00008000 */
7910 #define RTC_DR_MT_Pos                (12U)
7911 #define RTC_DR_MT_Msk                (0x1UL << RTC_DR_MT_Pos)                  /*!< 0x00001000 */
7912 #define RTC_DR_MT                    RTC_DR_MT_Msk
7913 #define RTC_DR_MU_Pos                (8U)
7914 #define RTC_DR_MU_Msk                (0xFUL << RTC_DR_MU_Pos)                  /*!< 0x00000F00 */
7915 #define RTC_DR_MU                    RTC_DR_MU_Msk
7916 #define RTC_DR_MU_0                  (0x1UL << RTC_DR_MU_Pos)                  /*!< 0x00000100 */
7917 #define RTC_DR_MU_1                  (0x2UL << RTC_DR_MU_Pos)                  /*!< 0x00000200 */
7918 #define RTC_DR_MU_2                  (0x4UL << RTC_DR_MU_Pos)                  /*!< 0x00000400 */
7919 #define RTC_DR_MU_3                  (0x8UL << RTC_DR_MU_Pos)                  /*!< 0x00000800 */
7920 #define RTC_DR_DT_Pos                (4U)
7921 #define RTC_DR_DT_Msk                (0x3UL << RTC_DR_DT_Pos)                  /*!< 0x00000030 */
7922 #define RTC_DR_DT                    RTC_DR_DT_Msk
7923 #define RTC_DR_DT_0                  (0x1UL << RTC_DR_DT_Pos)                  /*!< 0x00000010 */
7924 #define RTC_DR_DT_1                  (0x2UL << RTC_DR_DT_Pos)                  /*!< 0x00000020 */
7925 #define RTC_DR_DU_Pos                (0U)
7926 #define RTC_DR_DU_Msk                (0xFUL << RTC_DR_DU_Pos)                  /*!< 0x0000000F */
7927 #define RTC_DR_DU                    RTC_DR_DU_Msk
7928 #define RTC_DR_DU_0                  (0x1UL << RTC_DR_DU_Pos)                  /*!< 0x00000001 */
7929 #define RTC_DR_DU_1                  (0x2UL << RTC_DR_DU_Pos)                  /*!< 0x00000002 */
7930 #define RTC_DR_DU_2                  (0x4UL << RTC_DR_DU_Pos)                  /*!< 0x00000004 */
7931 #define RTC_DR_DU_3                  (0x8UL << RTC_DR_DU_Pos)                  /*!< 0x00000008 */
7932 
7933 /********************  Bits definition for RTC_SSR register  ******************/
7934 #define RTC_SSR_SS_Pos               (0U)
7935 #define RTC_SSR_SS_Msk               (0xFFFFFFFFUL << RTC_SSR_SS_Pos)          /*!< 0xFFFFFFFF */
7936 #define RTC_SSR_SS                   RTC_SSR_SS_Msk
7937 
7938 /********************  Bits definition for RTC_ICSR register  ******************/
7939 #define RTC_ICSR_RECALPF_Pos         (16U)
7940 #define RTC_ICSR_RECALPF_Msk         (0x1UL << RTC_ICSR_RECALPF_Pos)           /*!< 0x00010000 */
7941 #define RTC_ICSR_RECALPF             RTC_ICSR_RECALPF_Msk
7942 #define RTC_ICSR_BCDU_Pos            (10U)
7943 #define RTC_ICSR_BCDU_Msk            (0x7UL << RTC_ICSR_BCDU_Pos)              /*!< 0x00001C00 */
7944 #define RTC_ICSR_BCDU                RTC_ICSR_BCDU_Msk
7945 #define RTC_ICSR_BCDU_0              (0x1UL << RTC_ICSR_BCDU_Pos)              /*!< 0x00000400 */
7946 #define RTC_ICSR_BCDU_1              (0x2UL << RTC_ICSR_BCDU_Pos)              /*!< 0x00000800 */
7947 #define RTC_ICSR_BCDU_2              (0x4UL << RTC_ICSR_BCDU_Pos)              /*!< 0x00001000 */
7948 #define RTC_ICSR_BIN_Pos             (8U)
7949 #define RTC_ICSR_BIN_Msk             (0x3UL << RTC_ICSR_BIN_Pos)               /*!< 0x00000300 */
7950 #define RTC_ICSR_BIN                 RTC_ICSR_BIN_Msk
7951 #define RTC_ICSR_BIN_0               (0x1UL << RTC_ICSR_BIN_Pos)               /*!< 0x00000100 */
7952 #define RTC_ICSR_BIN_1               (0x2UL << RTC_ICSR_BIN_Pos)               /*!< 0x00000200 */
7953 #define RTC_ICSR_INIT_Pos            (7U)
7954 #define RTC_ICSR_INIT_Msk            (0x1UL << RTC_ICSR_INIT_Pos)              /*!< 0x00000080 */
7955 #define RTC_ICSR_INIT                RTC_ICSR_INIT_Msk
7956 #define RTC_ICSR_INITF_Pos           (6U)
7957 #define RTC_ICSR_INITF_Msk           (0x1UL << RTC_ICSR_INITF_Pos)             /*!< 0x00000040 */
7958 #define RTC_ICSR_INITF               RTC_ICSR_INITF_Msk
7959 #define RTC_ICSR_RSF_Pos             (5U)
7960 #define RTC_ICSR_RSF_Msk             (0x1UL << RTC_ICSR_RSF_Pos)               /*!< 0x00000020 */
7961 #define RTC_ICSR_RSF                 RTC_ICSR_RSF_Msk
7962 #define RTC_ICSR_INITS_Pos           (4U)
7963 #define RTC_ICSR_INITS_Msk           (0x1UL << RTC_ICSR_INITS_Pos)             /*!< 0x00000010 */
7964 #define RTC_ICSR_INITS               RTC_ICSR_INITS_Msk
7965 #define RTC_ICSR_SHPF_Pos            (3U)
7966 #define RTC_ICSR_SHPF_Msk            (0x1UL << RTC_ICSR_SHPF_Pos)              /*!< 0x00000008 */
7967 #define RTC_ICSR_SHPF                RTC_ICSR_SHPF_Msk
7968 #define RTC_ICSR_WUTWF_Pos           (2U)
7969 #define RTC_ICSR_WUTWF_Msk           (0x1UL << RTC_ICSR_WUTWF_Pos)             /*!< 0x00000004 */
7970 #define RTC_ICSR_WUTWF               RTC_ICSR_WUTWF_Msk
7971 
7972 /********************  Bits definition for RTC_PRER register  *****************/
7973 #define RTC_PRER_PREDIV_A_Pos        (16U)
7974 #define RTC_PRER_PREDIV_A_Msk        (0x7FUL << RTC_PRER_PREDIV_A_Pos)         /*!< 0x007F0000 */
7975 #define RTC_PRER_PREDIV_A            RTC_PRER_PREDIV_A_Msk
7976 #define RTC_PRER_PREDIV_S_Pos        (0U)
7977 #define RTC_PRER_PREDIV_S_Msk        (0x7FFFUL << RTC_PRER_PREDIV_S_Pos)       /*!< 0x00007FFF */
7978 #define RTC_PRER_PREDIV_S            RTC_PRER_PREDIV_S_Msk
7979 
7980 /********************  Bits definition for RTC_WUTR register  *****************/
7981 #define RTC_WUTR_WUTOCLR_Pos         (16U)
7982 #define RTC_WUTR_WUTOCLR_Msk         (0xFFFFUL << RTC_WUTR_WUTOCLR_Pos)        /*!< 0x0000FFFF */
7983 #define RTC_WUTR_WUTOCLR             RTC_WUTR_WUTOCLR_Msk
7984 #define RTC_WUTR_WUT_Pos             (0U)
7985 #define RTC_WUTR_WUT_Msk             (0xFFFFUL << RTC_WUTR_WUT_Pos)            /*!< 0x0000FFFF */
7986 #define RTC_WUTR_WUT                 RTC_WUTR_WUT_Msk
7987 
7988 /********************  Bits definition for RTC_CR register  *******************/
7989 #define RTC_CR_OUT2EN_Pos            (31U)
7990 #define RTC_CR_OUT2EN_Msk            (0x1UL << RTC_CR_OUT2EN_Pos)              /*!< 0x80000000 */
7991 #define RTC_CR_OUT2EN                RTC_CR_OUT2EN_Msk                         /*!<RTC_OUT2 output enable */
7992 #define RTC_CR_TAMPALRM_TYPE_Pos     (30U)
7993 #define RTC_CR_TAMPALRM_TYPE_Msk     (0x1UL << RTC_CR_TAMPALRM_TYPE_Pos)       /*!< 0x40000000 */
7994 #define RTC_CR_TAMPALRM_TYPE         RTC_CR_TAMPALRM_TYPE_Msk                  /*!<TAMPALARM output type  */
7995 #define RTC_CR_TAMPALRM_PU_Pos       (29U)
7996 #define RTC_CR_TAMPALRM_PU_Msk       (0x1UL << RTC_CR_TAMPALRM_PU_Pos)         /*!< 0x20000000 */
7997 #define RTC_CR_TAMPALRM_PU           RTC_CR_TAMPALRM_PU_Msk                    /*!<TAMPALARM output pull-up config */
7998 #define RTC_CR_TAMPOE_Pos            (26U)
7999 #define RTC_CR_TAMPOE_Msk            (0x1UL << RTC_CR_TAMPOE_Pos)              /*!< 0x04000000 */
8000 #define RTC_CR_TAMPOE                RTC_CR_TAMPOE_Msk                         /*!<Tamper detection output enable on TAMPALARM  */
8001 #define RTC_CR_TAMPTS_Pos            (25U)
8002 #define RTC_CR_TAMPTS_Msk            (0x1UL << RTC_CR_TAMPTS_Pos)              /*!< 0x02000000 */
8003 #define RTC_CR_TAMPTS                RTC_CR_TAMPTS_Msk                         /*!<Activate timestamp on tamper detection event  */
8004 #define RTC_CR_ITSE_Pos              (24U)
8005 #define RTC_CR_ITSE_Msk              (0x1UL << RTC_CR_ITSE_Pos)                /*!< 0x01000000 */
8006 #define RTC_CR_ITSE                  RTC_CR_ITSE_Msk                           /*!<Timestamp on internal event enable  */
8007 #define RTC_CR_COE_Pos               (23U)
8008 #define RTC_CR_COE_Msk               (0x1UL << RTC_CR_COE_Pos)                 /*!< 0x00800000 */
8009 #define RTC_CR_COE                   RTC_CR_COE_Msk
8010 #define RTC_CR_OSEL_Pos              (21U)
8011 #define RTC_CR_OSEL_Msk              (0x3UL << RTC_CR_OSEL_Pos)                /*!< 0x00600000 */
8012 #define RTC_CR_OSEL                  RTC_CR_OSEL_Msk
8013 #define RTC_CR_OSEL_0                (0x1UL << RTC_CR_OSEL_Pos)                /*!< 0x00200000 */
8014 #define RTC_CR_OSEL_1                (0x2UL << RTC_CR_OSEL_Pos)                /*!< 0x00400000 */
8015 #define RTC_CR_POL_Pos               (20U)
8016 #define RTC_CR_POL_Msk               (0x1UL << RTC_CR_POL_Pos)                 /*!< 0x00100000 */
8017 #define RTC_CR_POL                   RTC_CR_POL_Msk
8018 #define RTC_CR_COSEL_Pos             (19U)
8019 #define RTC_CR_COSEL_Msk             (0x1UL << RTC_CR_COSEL_Pos)               /*!< 0x00080000 */
8020 #define RTC_CR_COSEL                 RTC_CR_COSEL_Msk
8021 #define RTC_CR_BKP_Pos               (18U)
8022 #define RTC_CR_BKP_Msk               (0x1UL << RTC_CR_BKP_Pos)                 /*!< 0x00040000 */
8023 #define RTC_CR_BKP                   RTC_CR_BKP_Msk
8024 #define RTC_CR_SUB1H_Pos             (17U)
8025 #define RTC_CR_SUB1H_Msk             (0x1UL << RTC_CR_SUB1H_Pos)               /*!< 0x00020000 */
8026 #define RTC_CR_SUB1H                 RTC_CR_SUB1H_Msk
8027 #define RTC_CR_ADD1H_Pos             (16U)
8028 #define RTC_CR_ADD1H_Msk             (0x1UL << RTC_CR_ADD1H_Pos)               /*!< 0x00010000 */
8029 #define RTC_CR_ADD1H                 RTC_CR_ADD1H_Msk
8030 #define RTC_CR_TSIE_Pos              (15U)
8031 #define RTC_CR_TSIE_Msk              (0x1UL << RTC_CR_TSIE_Pos)                /*!< 0x00008000 */
8032 #define RTC_CR_TSIE                  RTC_CR_TSIE_Msk
8033 #define RTC_CR_WUTIE_Pos             (14U)
8034 #define RTC_CR_WUTIE_Msk             (0x1UL << RTC_CR_WUTIE_Pos)               /*!< 0x00004000 */
8035 #define RTC_CR_WUTIE                 RTC_CR_WUTIE_Msk
8036 #define RTC_CR_ALRBIE_Pos            (13U)
8037 #define RTC_CR_ALRBIE_Msk            (0x1UL << RTC_CR_ALRBIE_Pos)              /*!< 0x00002000 */
8038 #define RTC_CR_ALRBIE                RTC_CR_ALRBIE_Msk
8039 #define RTC_CR_ALRAIE_Pos            (12U)
8040 #define RTC_CR_ALRAIE_Msk            (0x1UL << RTC_CR_ALRAIE_Pos)              /*!< 0x00001000 */
8041 #define RTC_CR_ALRAIE                RTC_CR_ALRAIE_Msk
8042 #define RTC_CR_TSE_Pos               (11U)
8043 #define RTC_CR_TSE_Msk               (0x1UL << RTC_CR_TSE_Pos)                 /*!< 0x00000800 */
8044 #define RTC_CR_TSE                   RTC_CR_TSE_Msk
8045 #define RTC_CR_WUTE_Pos              (10U)
8046 #define RTC_CR_WUTE_Msk              (0x1UL << RTC_CR_WUTE_Pos)                /*!< 0x00000400 */
8047 #define RTC_CR_WUTE                  RTC_CR_WUTE_Msk
8048 #define RTC_CR_ALRBE_Pos             (9U)
8049 #define RTC_CR_ALRBE_Msk             (0x1UL << RTC_CR_ALRBE_Pos)               /*!< 0x00000200 */
8050 #define RTC_CR_ALRBE                 RTC_CR_ALRBE_Msk
8051 #define RTC_CR_ALRAE_Pos             (8U)
8052 #define RTC_CR_ALRAE_Msk             (0x1UL << RTC_CR_ALRAE_Pos)               /*!< 0x00000100 */
8053 #define RTC_CR_ALRAE                 RTC_CR_ALRAE_Msk
8054 #define RTC_CR_SSRUIE_Pos            (7U)
8055 #define RTC_CR_SSRUIE_Msk            (0x1UL << RTC_CR_SSRUIE_Pos)              /*!< 0x00000080 */
8056 #define RTC_CR_SSRUIE                RTC_CR_SSRUIE_Msk
8057 #define RTC_CR_FMT_Pos               (6U)
8058 #define RTC_CR_FMT_Msk               (0x1UL << RTC_CR_FMT_Pos)                 /*!< 0x00000040 */
8059 #define RTC_CR_FMT                   RTC_CR_FMT_Msk
8060 #define RTC_CR_BYPSHAD_Pos           (5U)
8061 #define RTC_CR_BYPSHAD_Msk           (0x1UL << RTC_CR_BYPSHAD_Pos)             /*!< 0x00000020 */
8062 #define RTC_CR_BYPSHAD               RTC_CR_BYPSHAD_Msk
8063 #define RTC_CR_REFCKON_Pos           (4U)
8064 #define RTC_CR_REFCKON_Msk           (0x1UL << RTC_CR_REFCKON_Pos)             /*!< 0x00000010 */
8065 #define RTC_CR_REFCKON               RTC_CR_REFCKON_Msk
8066 #define RTC_CR_TSEDGE_Pos            (3U)
8067 #define RTC_CR_TSEDGE_Msk            (0x1UL << RTC_CR_TSEDGE_Pos)              /*!< 0x00000008 */
8068 #define RTC_CR_TSEDGE                RTC_CR_TSEDGE_Msk
8069 #define RTC_CR_WUCKSEL_Pos           (0U)
8070 #define RTC_CR_WUCKSEL_Msk           (0x7UL << RTC_CR_WUCKSEL_Pos)             /*!< 0x00000007 */
8071 #define RTC_CR_WUCKSEL               RTC_CR_WUCKSEL_Msk
8072 #define RTC_CR_WUCKSEL_0             (0x1UL << RTC_CR_WUCKSEL_Pos)             /*!< 0x00000001 */
8073 #define RTC_CR_WUCKSEL_1             (0x2UL << RTC_CR_WUCKSEL_Pos)             /*!< 0x00000002 */
8074 #define RTC_CR_WUCKSEL_2             (0x4UL << RTC_CR_WUCKSEL_Pos)             /*!< 0x00000004 */
8075 
8076 /********************  Bits definition for RTC_WPR register  ******************/
8077 #define RTC_WPR_KEY_Pos              (0U)
8078 #define RTC_WPR_KEY_Msk              (0xFFUL << RTC_WPR_KEY_Pos)               /*!< 0x000000FF */
8079 #define RTC_WPR_KEY                  RTC_WPR_KEY_Msk
8080 
8081 /********************  Bits definition for RTC_CALR register  *****************/
8082 #define RTC_CALR_CALP_Pos            (15U)
8083 #define RTC_CALR_CALP_Msk            (0x1UL << RTC_CALR_CALP_Pos)              /*!< 0x00008000 */
8084 #define RTC_CALR_CALP                RTC_CALR_CALP_Msk
8085 #define RTC_CALR_CALW8_Pos           (14U)
8086 #define RTC_CALR_CALW8_Msk           (0x1UL << RTC_CALR_CALW8_Pos)             /*!< 0x00004000 */
8087 #define RTC_CALR_CALW8               RTC_CALR_CALW8_Msk
8088 #define RTC_CALR_CALW16_Pos          (13U)
8089 #define RTC_CALR_CALW16_Msk          (0x1UL << RTC_CALR_CALW16_Pos)            /*!< 0x00002000 */
8090 #define RTC_CALR_LPCAL               RTC_CALR_LPCAL_Msk
8091 #define RTC_CALR_LPCAL_Pos           (12U)
8092 #define RTC_CALR_LPCAL_Msk           (0x1UL << RTC_CALR_LPCAL_Pos)             /*!< 0x00001000 */
8093 #define RTC_CALR_CALW16              RTC_CALR_CALW16_Msk
8094 #define RTC_CALR_CALM_Pos            (0U)
8095 #define RTC_CALR_CALM_Msk            (0x1FFUL << RTC_CALR_CALM_Pos)            /*!< 0x000001FF */
8096 #define RTC_CALR_CALM                RTC_CALR_CALM_Msk
8097 #define RTC_CALR_CALM_0              (0x001UL << RTC_CALR_CALM_Pos)            /*!< 0x00000001 */
8098 #define RTC_CALR_CALM_1              (0x002UL << RTC_CALR_CALM_Pos)            /*!< 0x00000002 */
8099 #define RTC_CALR_CALM_2              (0x004UL << RTC_CALR_CALM_Pos)            /*!< 0x00000004 */
8100 #define RTC_CALR_CALM_3              (0x008UL << RTC_CALR_CALM_Pos)            /*!< 0x00000008 */
8101 #define RTC_CALR_CALM_4              (0x010UL << RTC_CALR_CALM_Pos)            /*!< 0x00000010 */
8102 #define RTC_CALR_CALM_5              (0x020UL << RTC_CALR_CALM_Pos)            /*!< 0x00000020 */
8103 #define RTC_CALR_CALM_6              (0x040UL << RTC_CALR_CALM_Pos)            /*!< 0x00000040 */
8104 #define RTC_CALR_CALM_7              (0x080UL << RTC_CALR_CALM_Pos)            /*!< 0x00000080 */
8105 #define RTC_CALR_CALM_8              (0x100UL << RTC_CALR_CALM_Pos)            /*!< 0x00000100 */
8106 
8107 /********************  Bits definition for RTC_SHIFTR register  ***************/
8108 #define RTC_SHIFTR_ADD1S_Pos         (31U)
8109 #define RTC_SHIFTR_ADD1S_Msk         (0x1UL << RTC_SHIFTR_ADD1S_Pos)           /*!< 0x80000000 */
8110 #define RTC_SHIFTR_ADD1S             RTC_SHIFTR_ADD1S_Msk
8111 #define RTC_SHIFTR_SUBFS_Pos         (0U)
8112 #define RTC_SHIFTR_SUBFS_Msk         (0x7FFFUL << RTC_SHIFTR_SUBFS_Pos)        /*!< 0x00007FFF */
8113 #define RTC_SHIFTR_SUBFS             RTC_SHIFTR_SUBFS_Msk
8114 
8115 /********************  Bits definition for RTC_TSTR register  *****************/
8116 #define RTC_TSTR_PM_Pos              (22U)
8117 #define RTC_TSTR_PM_Msk              (0x1UL << RTC_TSTR_PM_Pos)                /*!< 0x00400000 */
8118 #define RTC_TSTR_PM                  RTC_TSTR_PM_Msk
8119 #define RTC_TSTR_HT_Pos              (20U)
8120 #define RTC_TSTR_HT_Msk              (0x3UL << RTC_TSTR_HT_Pos)                /*!< 0x00300000 */
8121 #define RTC_TSTR_HT                  RTC_TSTR_HT_Msk
8122 #define RTC_TSTR_HT_0                (0x1UL << RTC_TSTR_HT_Pos)                /*!< 0x00100000 */
8123 #define RTC_TSTR_HT_1                (0x2UL << RTC_TSTR_HT_Pos)                /*!< 0x00200000 */
8124 #define RTC_TSTR_HU_Pos              (16U)
8125 #define RTC_TSTR_HU_Msk              (0xFUL << RTC_TSTR_HU_Pos)                /*!< 0x000F0000 */
8126 #define RTC_TSTR_HU                  RTC_TSTR_HU_Msk
8127 #define RTC_TSTR_HU_0                (0x1UL << RTC_TSTR_HU_Pos)                /*!< 0x00010000 */
8128 #define RTC_TSTR_HU_1                (0x2UL << RTC_TSTR_HU_Pos)                /*!< 0x00020000 */
8129 #define RTC_TSTR_HU_2                (0x4UL << RTC_TSTR_HU_Pos)                /*!< 0x00040000 */
8130 #define RTC_TSTR_HU_3                (0x8UL << RTC_TSTR_HU_Pos)                /*!< 0x00080000 */
8131 #define RTC_TSTR_MNT_Pos             (12U)
8132 #define RTC_TSTR_MNT_Msk             (0x7UL << RTC_TSTR_MNT_Pos)               /*!< 0x00007000 */
8133 #define RTC_TSTR_MNT                 RTC_TSTR_MNT_Msk
8134 #define RTC_TSTR_MNT_0               (0x1UL << RTC_TSTR_MNT_Pos)               /*!< 0x00001000 */
8135 #define RTC_TSTR_MNT_1               (0x2UL << RTC_TSTR_MNT_Pos)               /*!< 0x00002000 */
8136 #define RTC_TSTR_MNT_2               (0x4UL << RTC_TSTR_MNT_Pos)               /*!< 0x00004000 */
8137 #define RTC_TSTR_MNU_Pos             (8U)
8138 #define RTC_TSTR_MNU_Msk             (0xFUL << RTC_TSTR_MNU_Pos)               /*!< 0x00000F00 */
8139 #define RTC_TSTR_MNU                 RTC_TSTR_MNU_Msk
8140 #define RTC_TSTR_MNU_0               (0x1UL << RTC_TSTR_MNU_Pos)               /*!< 0x00000100 */
8141 #define RTC_TSTR_MNU_1               (0x2UL << RTC_TSTR_MNU_Pos)               /*!< 0x00000200 */
8142 #define RTC_TSTR_MNU_2               (0x4UL << RTC_TSTR_MNU_Pos)               /*!< 0x00000400 */
8143 #define RTC_TSTR_MNU_3               (0x8UL << RTC_TSTR_MNU_Pos)               /*!< 0x00000800 */
8144 #define RTC_TSTR_ST_Pos              (4U)
8145 #define RTC_TSTR_ST_Msk              (0x7UL << RTC_TSTR_ST_Pos)                /*!< 0x00000070 */
8146 #define RTC_TSTR_ST                  RTC_TSTR_ST_Msk
8147 #define RTC_TSTR_ST_0                (0x1UL << RTC_TSTR_ST_Pos)                /*!< 0x00000010 */
8148 #define RTC_TSTR_ST_1                (0x2UL << RTC_TSTR_ST_Pos)                /*!< 0x00000020 */
8149 #define RTC_TSTR_ST_2                (0x4UL << RTC_TSTR_ST_Pos)                /*!< 0x00000040 */
8150 #define RTC_TSTR_SU_Pos              (0U)
8151 #define RTC_TSTR_SU_Msk              (0xFUL << RTC_TSTR_SU_Pos)                /*!< 0x0000000F */
8152 #define RTC_TSTR_SU                  RTC_TSTR_SU_Msk
8153 #define RTC_TSTR_SU_0                (0x1UL << RTC_TSTR_SU_Pos)                /*!< 0x00000001 */
8154 #define RTC_TSTR_SU_1                (0x2UL << RTC_TSTR_SU_Pos)                /*!< 0x00000002 */
8155 #define RTC_TSTR_SU_2                (0x4UL << RTC_TSTR_SU_Pos)                /*!< 0x00000004 */
8156 #define RTC_TSTR_SU_3                (0x8UL << RTC_TSTR_SU_Pos)                /*!< 0x00000008 */
8157 
8158 /********************  Bits definition for RTC_TSDR register  *****************/
8159 #define RTC_TSDR_WDU_Pos             (13U)
8160 #define RTC_TSDR_WDU_Msk             (0x7UL << RTC_TSDR_WDU_Pos)               /*!< 0x0000E000 */
8161 #define RTC_TSDR_WDU                 RTC_TSDR_WDU_Msk
8162 #define RTC_TSDR_WDU_0               (0x1UL << RTC_TSDR_WDU_Pos)               /*!< 0x00002000 */
8163 #define RTC_TSDR_WDU_1               (0x2UL << RTC_TSDR_WDU_Pos)               /*!< 0x00004000 */
8164 #define RTC_TSDR_WDU_2               (0x4UL << RTC_TSDR_WDU_Pos)               /*!< 0x00008000 */
8165 #define RTC_TSDR_MT_Pos              (12U)
8166 #define RTC_TSDR_MT_Msk              (0x1UL << RTC_TSDR_MT_Pos)                /*!< 0x00001000 */
8167 #define RTC_TSDR_MT                  RTC_TSDR_MT_Msk
8168 #define RTC_TSDR_MU_Pos              (8U)
8169 #define RTC_TSDR_MU_Msk              (0xFUL << RTC_TSDR_MU_Pos)                /*!< 0x00000F00 */
8170 #define RTC_TSDR_MU                  RTC_TSDR_MU_Msk
8171 #define RTC_TSDR_MU_0                (0x1UL << RTC_TSDR_MU_Pos)                /*!< 0x00000100 */
8172 #define RTC_TSDR_MU_1                (0x2UL << RTC_TSDR_MU_Pos)                /*!< 0x00000200 */
8173 #define RTC_TSDR_MU_2                (0x4UL << RTC_TSDR_MU_Pos)                /*!< 0x00000400 */
8174 #define RTC_TSDR_MU_3                (0x8UL << RTC_TSDR_MU_Pos)                /*!< 0x00000800 */
8175 #define RTC_TSDR_DT_Pos              (4U)
8176 #define RTC_TSDR_DT_Msk              (0x3UL << RTC_TSDR_DT_Pos)                /*!< 0x00000030 */
8177 #define RTC_TSDR_DT                  RTC_TSDR_DT_Msk
8178 #define RTC_TSDR_DT_0                (0x1UL << RTC_TSDR_DT_Pos)                /*!< 0x00000010 */
8179 #define RTC_TSDR_DT_1                (0x2UL << RTC_TSDR_DT_Pos)                /*!< 0x00000020 */
8180 #define RTC_TSDR_DU_Pos              (0U)
8181 #define RTC_TSDR_DU_Msk              (0xFUL << RTC_TSDR_DU_Pos)                /*!< 0x0000000F */
8182 #define RTC_TSDR_DU                  RTC_TSDR_DU_Msk
8183 #define RTC_TSDR_DU_0                (0x1UL << RTC_TSDR_DU_Pos)                /*!< 0x00000001 */
8184 #define RTC_TSDR_DU_1                (0x2UL << RTC_TSDR_DU_Pos)                /*!< 0x00000002 */
8185 #define RTC_TSDR_DU_2                (0x4UL << RTC_TSDR_DU_Pos)                /*!< 0x00000004 */
8186 #define RTC_TSDR_DU_3                (0x8UL << RTC_TSDR_DU_Pos)                /*!< 0x00000008 */
8187 
8188 /********************  Bits definition for RTC_TSSSR register  ****************/
8189 #define RTC_TSSSR_SS_Pos             (0U)
8190 #define RTC_TSSSR_SS_Msk             (0xFFFFFFFFUL << RTC_TSSSR_SS_Pos)        /*!< 0xFFFFFFFF */
8191 #define RTC_TSSSR_SS                 RTC_TSSSR_SS_Msk
8192 
8193 /********************  Bits definition for RTC_ALRMAR register  ***************/
8194 #define RTC_ALRMAR_MSK4_Pos          (31U)
8195 #define RTC_ALRMAR_MSK4_Msk          (0x1UL << RTC_ALRMAR_MSK4_Pos)            /*!< 0x80000000 */
8196 #define RTC_ALRMAR_MSK4              RTC_ALRMAR_MSK4_Msk
8197 #define RTC_ALRMAR_WDSEL_Pos         (30U)
8198 #define RTC_ALRMAR_WDSEL_Msk         (0x1UL << RTC_ALRMAR_WDSEL_Pos)           /*!< 0x40000000 */
8199 #define RTC_ALRMAR_WDSEL             RTC_ALRMAR_WDSEL_Msk
8200 #define RTC_ALRMAR_DT_Pos            (28U)
8201 #define RTC_ALRMAR_DT_Msk            (0x3UL << RTC_ALRMAR_DT_Pos)              /*!< 0x30000000 */
8202 #define RTC_ALRMAR_DT                RTC_ALRMAR_DT_Msk
8203 #define RTC_ALRMAR_DT_0              (0x1UL << RTC_ALRMAR_DT_Pos)              /*!< 0x10000000 */
8204 #define RTC_ALRMAR_DT_1              (0x2UL << RTC_ALRMAR_DT_Pos)              /*!< 0x20000000 */
8205 #define RTC_ALRMAR_DU_Pos            (24U)
8206 #define RTC_ALRMAR_DU_Msk            (0xFUL << RTC_ALRMAR_DU_Pos)              /*!< 0x0F000000 */
8207 #define RTC_ALRMAR_DU                RTC_ALRMAR_DU_Msk
8208 #define RTC_ALRMAR_DU_0              (0x1UL << RTC_ALRMAR_DU_Pos)              /*!< 0x01000000 */
8209 #define RTC_ALRMAR_DU_1              (0x2UL << RTC_ALRMAR_DU_Pos)              /*!< 0x02000000 */
8210 #define RTC_ALRMAR_DU_2              (0x4UL << RTC_ALRMAR_DU_Pos)              /*!< 0x04000000 */
8211 #define RTC_ALRMAR_DU_3              (0x8UL << RTC_ALRMAR_DU_Pos)              /*!< 0x08000000 */
8212 #define RTC_ALRMAR_MSK3_Pos          (23U)
8213 #define RTC_ALRMAR_MSK3_Msk          (0x1UL << RTC_ALRMAR_MSK3_Pos)            /*!< 0x00800000 */
8214 #define RTC_ALRMAR_MSK3              RTC_ALRMAR_MSK3_Msk
8215 #define RTC_ALRMAR_PM_Pos            (22U)
8216 #define RTC_ALRMAR_PM_Msk            (0x1UL << RTC_ALRMAR_PM_Pos)              /*!< 0x00400000 */
8217 #define RTC_ALRMAR_PM                RTC_ALRMAR_PM_Msk
8218 #define RTC_ALRMAR_HT_Pos            (20U)
8219 #define RTC_ALRMAR_HT_Msk            (0x3UL << RTC_ALRMAR_HT_Pos)              /*!< 0x00300000 */
8220 #define RTC_ALRMAR_HT                RTC_ALRMAR_HT_Msk
8221 #define RTC_ALRMAR_HT_0              (0x1UL << RTC_ALRMAR_HT_Pos)              /*!< 0x00100000 */
8222 #define RTC_ALRMAR_HT_1              (0x2UL << RTC_ALRMAR_HT_Pos)              /*!< 0x00200000 */
8223 #define RTC_ALRMAR_HU_Pos            (16U)
8224 #define RTC_ALRMAR_HU_Msk            (0xFUL << RTC_ALRMAR_HU_Pos)              /*!< 0x000F0000 */
8225 #define RTC_ALRMAR_HU                RTC_ALRMAR_HU_Msk
8226 #define RTC_ALRMAR_HU_0              (0x1UL << RTC_ALRMAR_HU_Pos)              /*!< 0x00010000 */
8227 #define RTC_ALRMAR_HU_1              (0x2UL << RTC_ALRMAR_HU_Pos)              /*!< 0x00020000 */
8228 #define RTC_ALRMAR_HU_2              (0x4UL << RTC_ALRMAR_HU_Pos)              /*!< 0x00040000 */
8229 #define RTC_ALRMAR_HU_3              (0x8UL << RTC_ALRMAR_HU_Pos)              /*!< 0x00080000 */
8230 #define RTC_ALRMAR_MSK2_Pos          (15U)
8231 #define RTC_ALRMAR_MSK2_Msk          (0x1UL << RTC_ALRMAR_MSK2_Pos)            /*!< 0x00008000 */
8232 #define RTC_ALRMAR_MSK2              RTC_ALRMAR_MSK2_Msk
8233 #define RTC_ALRMAR_MNT_Pos           (12U)
8234 #define RTC_ALRMAR_MNT_Msk           (0x7UL << RTC_ALRMAR_MNT_Pos)             /*!< 0x00007000 */
8235 #define RTC_ALRMAR_MNT               RTC_ALRMAR_MNT_Msk
8236 #define RTC_ALRMAR_MNT_0             (0x1UL << RTC_ALRMAR_MNT_Pos)             /*!< 0x00001000 */
8237 #define RTC_ALRMAR_MNT_1             (0x2UL << RTC_ALRMAR_MNT_Pos)             /*!< 0x00002000 */
8238 #define RTC_ALRMAR_MNT_2             (0x4UL << RTC_ALRMAR_MNT_Pos)             /*!< 0x00004000 */
8239 #define RTC_ALRMAR_MNU_Pos           (8U)
8240 #define RTC_ALRMAR_MNU_Msk           (0xFUL << RTC_ALRMAR_MNU_Pos)             /*!< 0x00000F00 */
8241 #define RTC_ALRMAR_MNU               RTC_ALRMAR_MNU_Msk
8242 #define RTC_ALRMAR_MNU_0             (0x1UL << RTC_ALRMAR_MNU_Pos)             /*!< 0x00000100 */
8243 #define RTC_ALRMAR_MNU_1             (0x2UL << RTC_ALRMAR_MNU_Pos)             /*!< 0x00000200 */
8244 #define RTC_ALRMAR_MNU_2             (0x4UL << RTC_ALRMAR_MNU_Pos)             /*!< 0x00000400 */
8245 #define RTC_ALRMAR_MNU_3             (0x8UL << RTC_ALRMAR_MNU_Pos)             /*!< 0x00000800 */
8246 #define RTC_ALRMAR_MSK1_Pos          (7U)
8247 #define RTC_ALRMAR_MSK1_Msk          (0x1UL << RTC_ALRMAR_MSK1_Pos)            /*!< 0x00000080 */
8248 #define RTC_ALRMAR_MSK1              RTC_ALRMAR_MSK1_Msk
8249 #define RTC_ALRMAR_ST_Pos            (4U)
8250 #define RTC_ALRMAR_ST_Msk            (0x7UL << RTC_ALRMAR_ST_Pos)              /*!< 0x00000070 */
8251 #define RTC_ALRMAR_ST                RTC_ALRMAR_ST_Msk
8252 #define RTC_ALRMAR_ST_0              (0x1UL << RTC_ALRMAR_ST_Pos)              /*!< 0x00000010 */
8253 #define RTC_ALRMAR_ST_1              (0x2UL << RTC_ALRMAR_ST_Pos)              /*!< 0x00000020 */
8254 #define RTC_ALRMAR_ST_2              (0x4UL << RTC_ALRMAR_ST_Pos)              /*!< 0x00000040 */
8255 #define RTC_ALRMAR_SU_Pos            (0U)
8256 #define RTC_ALRMAR_SU_Msk            (0xFUL << RTC_ALRMAR_SU_Pos)              /*!< 0x0000000F */
8257 #define RTC_ALRMAR_SU                RTC_ALRMAR_SU_Msk
8258 #define RTC_ALRMAR_SU_0              (0x1UL << RTC_ALRMAR_SU_Pos)              /*!< 0x00000001 */
8259 #define RTC_ALRMAR_SU_1              (0x2UL << RTC_ALRMAR_SU_Pos)              /*!< 0x00000002 */
8260 #define RTC_ALRMAR_SU_2              (0x4UL << RTC_ALRMAR_SU_Pos)              /*!< 0x00000004 */
8261 #define RTC_ALRMAR_SU_3              (0x8UL << RTC_ALRMAR_SU_Pos)              /*!< 0x00000008 */
8262 
8263 /********************  Bits definition for RTC_ALRMASSR register  *************/
8264 #define RTC_ALRMASSR_SSCLR_Pos       (31U)
8265 #define RTC_ALRMASSR_SSCLR_Msk       (0x1UL << RTC_ALRMASSR_SSCLR_Pos)         /*!< 0x80000000 */
8266 #define RTC_ALRMASSR_SSCLR           RTC_ALRMASSR_SSCLR_Msk
8267 #define RTC_ALRMASSR_MASKSS_Pos      (24U)
8268 #define RTC_ALRMASSR_MASKSS_Msk      (0x3FUL << RTC_ALRMASSR_MASKSS_Pos)        /*!< 0x0F000000 */
8269 #define RTC_ALRMASSR_MASKSS          RTC_ALRMASSR_MASKSS_Msk
8270 #define RTC_ALRMASSR_MASKSS_0        (0x1UL << RTC_ALRMASSR_MASKSS_Pos)        /*!< 0x01000000 */
8271 #define RTC_ALRMASSR_MASKSS_1        (0x2UL << RTC_ALRMASSR_MASKSS_Pos)        /*!< 0x02000000 */
8272 #define RTC_ALRMASSR_MASKSS_2        (0x4UL << RTC_ALRMASSR_MASKSS_Pos)        /*!< 0x04000000 */
8273 #define RTC_ALRMASSR_MASKSS_3        (0x8UL << RTC_ALRMASSR_MASKSS_Pos)        /*!< 0x08000000 */
8274 #define RTC_ALRMASSR_MASKSS_4        (0x10UL << RTC_ALRMASSR_MASKSS_Pos)        /*!< 0x08000000 */
8275 #define RTC_ALRMASSR_MASKSS_5        (0x20UL << RTC_ALRMASSR_MASKSS_Pos)        /*!< 0x08000000 */
8276 #define RTC_ALRMASSR_SS_Pos          (0U)
8277 #define RTC_ALRMASSR_SS_Msk          (0x7FFFUL << RTC_ALRMASSR_SS_Pos)         /*!< 0x00007FFF */
8278 #define RTC_ALRMASSR_SS              RTC_ALRMASSR_SS_Msk
8279 
8280 /********************  Bits definition for RTC_ALRMBR register  ***************/
8281 #define RTC_ALRMBR_MSK4_Pos          (31U)
8282 #define RTC_ALRMBR_MSK4_Msk          (0x1UL << RTC_ALRMBR_MSK4_Pos)            /*!< 0x80000000 */
8283 #define RTC_ALRMBR_MSK4              RTC_ALRMBR_MSK4_Msk
8284 #define RTC_ALRMBR_WDSEL_Pos         (30U)
8285 #define RTC_ALRMBR_WDSEL_Msk         (0x1UL << RTC_ALRMBR_WDSEL_Pos)           /*!< 0x40000000 */
8286 #define RTC_ALRMBR_WDSEL             RTC_ALRMBR_WDSEL_Msk
8287 #define RTC_ALRMBR_DT_Pos            (28U)
8288 #define RTC_ALRMBR_DT_Msk            (0x3UL << RTC_ALRMBR_DT_Pos)              /*!< 0x30000000 */
8289 #define RTC_ALRMBR_DT                RTC_ALRMBR_DT_Msk
8290 #define RTC_ALRMBR_DT_0              (0x1UL << RTC_ALRMBR_DT_Pos)              /*!< 0x10000000 */
8291 #define RTC_ALRMBR_DT_1              (0x2UL << RTC_ALRMBR_DT_Pos)              /*!< 0x20000000 */
8292 #define RTC_ALRMBR_DU_Pos            (24U)
8293 #define RTC_ALRMBR_DU_Msk            (0xFUL << RTC_ALRMBR_DU_Pos)              /*!< 0x0F000000 */
8294 #define RTC_ALRMBR_DU                RTC_ALRMBR_DU_Msk
8295 #define RTC_ALRMBR_DU_0              (0x1UL << RTC_ALRMBR_DU_Pos)              /*!< 0x01000000 */
8296 #define RTC_ALRMBR_DU_1              (0x2UL << RTC_ALRMBR_DU_Pos)              /*!< 0x02000000 */
8297 #define RTC_ALRMBR_DU_2              (0x4UL << RTC_ALRMBR_DU_Pos)              /*!< 0x04000000 */
8298 #define RTC_ALRMBR_DU_3              (0x8UL << RTC_ALRMBR_DU_Pos)              /*!< 0x08000000 */
8299 #define RTC_ALRMBR_MSK3_Pos          (23U)
8300 #define RTC_ALRMBR_MSK3_Msk          (0x1UL << RTC_ALRMBR_MSK3_Pos)            /*!< 0x00800000 */
8301 #define RTC_ALRMBR_MSK3              RTC_ALRMBR_MSK3_Msk
8302 #define RTC_ALRMBR_PM_Pos            (22U)
8303 #define RTC_ALRMBR_PM_Msk            (0x1UL << RTC_ALRMBR_PM_Pos)              /*!< 0x00400000 */
8304 #define RTC_ALRMBR_PM                RTC_ALRMBR_PM_Msk
8305 #define RTC_ALRMBR_HT_Pos            (20U)
8306 #define RTC_ALRMBR_HT_Msk            (0x3UL << RTC_ALRMBR_HT_Pos)              /*!< 0x00300000 */
8307 #define RTC_ALRMBR_HT                RTC_ALRMBR_HT_Msk
8308 #define RTC_ALRMBR_HT_0              (0x1UL << RTC_ALRMBR_HT_Pos)              /*!< 0x00100000 */
8309 #define RTC_ALRMBR_HT_1              (0x2UL << RTC_ALRMBR_HT_Pos)              /*!< 0x00200000 */
8310 #define RTC_ALRMBR_HU_Pos            (16U)
8311 #define RTC_ALRMBR_HU_Msk            (0xFUL << RTC_ALRMBR_HU_Pos)              /*!< 0x000F0000 */
8312 #define RTC_ALRMBR_HU                RTC_ALRMBR_HU_Msk
8313 #define RTC_ALRMBR_HU_0              (0x1UL << RTC_ALRMBR_HU_Pos)              /*!< 0x00010000 */
8314 #define RTC_ALRMBR_HU_1              (0x2UL << RTC_ALRMBR_HU_Pos)              /*!< 0x00020000 */
8315 #define RTC_ALRMBR_HU_2              (0x4UL << RTC_ALRMBR_HU_Pos)              /*!< 0x00040000 */
8316 #define RTC_ALRMBR_HU_3              (0x8UL << RTC_ALRMBR_HU_Pos)              /*!< 0x00080000 */
8317 #define RTC_ALRMBR_MSK2_Pos          (15U)
8318 #define RTC_ALRMBR_MSK2_Msk          (0x1UL << RTC_ALRMBR_MSK2_Pos)            /*!< 0x00008000 */
8319 #define RTC_ALRMBR_MSK2              RTC_ALRMBR_MSK2_Msk
8320 #define RTC_ALRMBR_MNT_Pos           (12U)
8321 #define RTC_ALRMBR_MNT_Msk           (0x7UL << RTC_ALRMBR_MNT_Pos)             /*!< 0x00007000 */
8322 #define RTC_ALRMBR_MNT               RTC_ALRMBR_MNT_Msk
8323 #define RTC_ALRMBR_MNT_0             (0x1UL << RTC_ALRMBR_MNT_Pos)             /*!< 0x00001000 */
8324 #define RTC_ALRMBR_MNT_1             (0x2UL << RTC_ALRMBR_MNT_Pos)             /*!< 0x00002000 */
8325 #define RTC_ALRMBR_MNT_2             (0x4UL << RTC_ALRMBR_MNT_Pos)             /*!< 0x00004000 */
8326 #define RTC_ALRMBR_MNU_Pos           (8U)
8327 #define RTC_ALRMBR_MNU_Msk           (0xFUL << RTC_ALRMBR_MNU_Pos)             /*!< 0x00000F00 */
8328 #define RTC_ALRMBR_MNU               RTC_ALRMBR_MNU_Msk
8329 #define RTC_ALRMBR_MNU_0             (0x1UL << RTC_ALRMBR_MNU_Pos)             /*!< 0x00000100 */
8330 #define RTC_ALRMBR_MNU_1             (0x2UL << RTC_ALRMBR_MNU_Pos)             /*!< 0x00000200 */
8331 #define RTC_ALRMBR_MNU_2             (0x4UL << RTC_ALRMBR_MNU_Pos)             /*!< 0x00000400 */
8332 #define RTC_ALRMBR_MNU_3             (0x8UL << RTC_ALRMBR_MNU_Pos)             /*!< 0x00000800 */
8333 #define RTC_ALRMBR_MSK1_Pos          (7U)
8334 #define RTC_ALRMBR_MSK1_Msk          (0x1UL << RTC_ALRMBR_MSK1_Pos)            /*!< 0x00000080 */
8335 #define RTC_ALRMBR_MSK1              RTC_ALRMBR_MSK1_Msk
8336 #define RTC_ALRMBR_ST_Pos            (4U)
8337 #define RTC_ALRMBR_ST_Msk            (0x7UL << RTC_ALRMBR_ST_Pos)              /*!< 0x00000070 */
8338 #define RTC_ALRMBR_ST                RTC_ALRMBR_ST_Msk
8339 #define RTC_ALRMBR_ST_0              (0x1UL << RTC_ALRMBR_ST_Pos)              /*!< 0x00000010 */
8340 #define RTC_ALRMBR_ST_1              (0x2UL << RTC_ALRMBR_ST_Pos)              /*!< 0x00000020 */
8341 #define RTC_ALRMBR_ST_2              (0x4UL << RTC_ALRMBR_ST_Pos)              /*!< 0x00000040 */
8342 #define RTC_ALRMBR_SU_Pos            (0U)
8343 #define RTC_ALRMBR_SU_Msk            (0xFUL << RTC_ALRMBR_SU_Pos)              /*!< 0x0000000F */
8344 #define RTC_ALRMBR_SU                RTC_ALRMBR_SU_Msk
8345 #define RTC_ALRMBR_SU_0              (0x1UL << RTC_ALRMBR_SU_Pos)              /*!< 0x00000001 */
8346 #define RTC_ALRMBR_SU_1              (0x2UL << RTC_ALRMBR_SU_Pos)              /*!< 0x00000002 */
8347 #define RTC_ALRMBR_SU_2              (0x4UL << RTC_ALRMBR_SU_Pos)              /*!< 0x00000004 */
8348 #define RTC_ALRMBR_SU_3              (0x8UL << RTC_ALRMBR_SU_Pos)              /*!< 0x00000008 */
8349 
8350 /********************  Bits definition for RTC_ALRMBSSR register  *************/
8351 #define RTC_ALRMBSSR_SSCLR_Pos       (31U)
8352 #define RTC_ALRMBSSR_SSCLR_Msk       (0x1UL << RTC_ALRMBSSR_SSCLR_Pos)         /*!< 0x80000000 */
8353 #define RTC_ALRMBSSR_SSCLR           RTC_ALRMBSSR_SSCLR_Msk
8354 #define RTC_ALRMBSSR_MASKSS_Pos      (24U)
8355 #define RTC_ALRMBSSR_MASKSS_Msk      (0x3FUL << RTC_ALRMBSSR_MASKSS_Pos)       /*!< 0x0F000000 */
8356 #define RTC_ALRMBSSR_MASKSS          RTC_ALRMBSSR_MASKSS_Msk
8357 #define RTC_ALRMBSSR_MASKSS_0        (0x1UL << RTC_ALRMBSSR_MASKSS_Pos)        /*!< 0x01000000 */
8358 #define RTC_ALRMBSSR_MASKSS_1        (0x2UL << RTC_ALRMBSSR_MASKSS_Pos)        /*!< 0x02000000 */
8359 #define RTC_ALRMBSSR_MASKSS_2        (0x4UL << RTC_ALRMBSSR_MASKSS_Pos)        /*!< 0x04000000 */
8360 #define RTC_ALRMBSSR_MASKSS_3        (0x8UL << RTC_ALRMBSSR_MASKSS_Pos)        /*!< 0x08000000 */
8361 #define RTC_ALRMBSSR_MASKSS_4        (0x10UL << RTC_ALRMBSSR_MASKSS_Pos)       /*!< 0x10000000 */
8362 #define RTC_ALRMBSSR_MASKSS_5        (0x20UL << RTC_ALRMBSSR_MASKSS_Pos)       /*!< 0x20000000 */
8363 #define RTC_ALRMBSSR_SS_Pos          (0U)
8364 #define RTC_ALRMBSSR_SS_Msk          (0x7FFFUL << RTC_ALRMBSSR_SS_Pos)         /*!< 0x00007FFF */
8365 #define RTC_ALRMBSSR_SS              RTC_ALRMBSSR_SS_Msk
8366 
8367 /********************  Bits definition for RTC_SR register  *******************/
8368 #define RTC_SR_SSRUF_Pos             (6U)
8369 #define RTC_SR_SSRUF_Msk             (0x1UL << RTC_SR_SSRUF_Pos)               /*!< 0x00000040 */
8370 #define RTC_SR_SSRUF                 RTC_SR_SSRUF_Msk
8371 #define RTC_SR_ITSF_Pos              (5U)
8372 #define RTC_SR_ITSF_Msk              (0x1UL << RTC_SR_ITSF_Pos)                /*!< 0x00000020 */
8373 #define RTC_SR_ITSF                  RTC_SR_ITSF_Msk
8374 #define RTC_SR_TSOVF_Pos             (4U)
8375 #define RTC_SR_TSOVF_Msk             (0x1UL << RTC_SR_TSOVF_Pos)               /*!< 0x00000010 */
8376 #define RTC_SR_TSOVF                 RTC_SR_TSOVF_Msk
8377 #define RTC_SR_TSF_Pos               (3U)
8378 #define RTC_SR_TSF_Msk               (0x1UL << RTC_SR_TSF_Pos)                 /*!< 0x00000008 */
8379 #define RTC_SR_TSF                   RTC_SR_TSF_Msk
8380 #define RTC_SR_WUTF_Pos              (2U)
8381 #define RTC_SR_WUTF_Msk              (0x1UL << RTC_SR_WUTF_Pos)                /*!< 0x00000004 */
8382 #define RTC_SR_WUTF                  RTC_SR_WUTF_Msk
8383 #define RTC_SR_ALRBF_Pos             (1U)
8384 #define RTC_SR_ALRBF_Msk             (0x1UL << RTC_SR_ALRBF_Pos)               /*!< 0x00000002 */
8385 #define RTC_SR_ALRBF                 RTC_SR_ALRBF_Msk
8386 #define RTC_SR_ALRAF_Pos             (0U)
8387 #define RTC_SR_ALRAF_Msk             (0x1UL << RTC_SR_ALRAF_Pos)               /*!< 0x00000001 */
8388 #define RTC_SR_ALRAF                 RTC_SR_ALRAF_Msk
8389 
8390 /********************  Bits definition for RTC_MISR register  *****************/
8391 #define RTC_MISR_SSRUMF_Pos          (6U)
8392 #define RTC_MISR_SSRUMF_Msk          (0x1UL << RTC_MISR_SSRUMF_Pos)            /*!< 0x00000040 */
8393 #define RTC_MISR_SSRUMF              RTC_MISR_SSRUMF_Msk
8394 #define RTC_MISR_ITSMF_Pos           (5U)
8395 #define RTC_MISR_ITSMF_Msk           (0x1UL << RTC_MISR_ITSMF_Pos)             /*!< 0x00000020 */
8396 #define RTC_MISR_ITSMF               RTC_MISR_ITSMF_Msk
8397 #define RTC_MISR_TSOVMF_Pos          (4U)
8398 #define RTC_MISR_TSOVMF_Msk          (0x1UL << RTC_MISR_TSOVMF_Pos)            /*!< 0x00000010 */
8399 #define RTC_MISR_TSOVMF              RTC_MISR_TSOVMF_Msk
8400 #define RTC_MISR_TSMF_Pos            (3U)
8401 #define RTC_MISR_TSMF_Msk            (0x1UL << RTC_MISR_TSMF_Pos)              /*!< 0x00000008 */
8402 #define RTC_MISR_TSMF                RTC_MISR_TSMF_Msk
8403 #define RTC_MISR_WUTMF_Pos           (2U)
8404 #define RTC_MISR_WUTMF_Msk           (0x1UL << RTC_MISR_WUTMF_Pos)             /*!< 0x00000004 */
8405 #define RTC_MISR_WUTMF               RTC_MISR_WUTMF_Msk
8406 #define RTC_MISR_ALRBMF_Pos          (1U)
8407 #define RTC_MISR_ALRBMF_Msk          (0x1UL << RTC_MISR_ALRBMF_Pos)            /*!< 0x00000002 */
8408 #define RTC_MISR_ALRBMF              RTC_MISR_ALRBMF_Msk
8409 #define RTC_MISR_ALRAMF_Pos          (0U)
8410 #define RTC_MISR_ALRAMF_Msk          (0x1UL << RTC_MISR_ALRAMF_Pos)            /*!< 0x00000001 */
8411 #define RTC_MISR_ALRAMF              RTC_MISR_ALRAMF_Msk
8412 
8413 /********************  Bits definition for RTC_SCR register  ******************/
8414 #define RTC_SCR_CSSRUF_Pos           (6U)
8415 #define RTC_SCR_CSSRUF_Msk           (0x1UL << RTC_SCR_CSSRUF_Pos)             /*!< 0x00000040 */
8416 #define RTC_SCR_CSSRUF               RTC_SCR_CSSRUF_Msk
8417 #define RTC_SCR_CITSF_Pos            (5U)
8418 #define RTC_SCR_CITSF_Msk            (0x1UL << RTC_SCR_CITSF_Pos)              /*!< 0x00000020 */
8419 #define RTC_SCR_CITSF                RTC_SCR_CITSF_Msk
8420 #define RTC_SCR_CTSOVF_Pos           (4U)
8421 #define RTC_SCR_CTSOVF_Msk           (0x1UL << RTC_SCR_CTSOVF_Pos)             /*!< 0x00000010 */
8422 #define RTC_SCR_CTSOVF               RTC_SCR_CTSOVF_Msk
8423 #define RTC_SCR_CTSF_Pos             (3U)
8424 #define RTC_SCR_CTSF_Msk             (0x1UL << RTC_SCR_CTSF_Pos)               /*!< 0x00000008 */
8425 #define RTC_SCR_CTSF                 RTC_SCR_CTSF_Msk
8426 #define RTC_SCR_CWUTF_Pos            (2U)
8427 #define RTC_SCR_CWUTF_Msk            (0x1UL << RTC_SCR_CWUTF_Pos)              /*!< 0x00000004 */
8428 #define RTC_SCR_CWUTF                RTC_SCR_CWUTF_Msk
8429 #define RTC_SCR_CALRBF_Pos           (1U)
8430 #define RTC_SCR_CALRBF_Msk           (0x1UL << RTC_SCR_CALRBF_Pos)             /*!< 0x00000002 */
8431 #define RTC_SCR_CALRBF               RTC_SCR_CALRBF_Msk
8432 #define RTC_SCR_CALRAF_Pos           (0U)
8433 #define RTC_SCR_CALRAF_Msk           (0x1UL << RTC_SCR_CALRAF_Pos)             /*!< 0x00000001 */
8434 #define RTC_SCR_CALRAF               RTC_SCR_CALRAF_Msk
8435 
8436 /********************  Bits definition for RTC_ALRABINR register  ******************/
8437 #define RTC_ALRABINR_SS_Pos          (0U)
8438 #define RTC_ALRABINR_SS_Msk          (0xFFFFFFFFUL << RTC_ALRABINR_SS_Pos)     /*!< 0xFFFFFFFF */
8439 #define RTC_ALRABINR_SS              RTC_ALRABINR_SS_Msk
8440 
8441 /********************  Bits definition for RTC_ALRBBINR register  ******************/
8442 #define RTC_ALRBBINR_SS_Pos          (0U)
8443 #define RTC_ALRBBINR_SS_Msk          (0xFFFFFFFFUL << RTC_ALRBBINR_SS_Pos)     /*!< 0xFFFFFFFF */
8444 #define RTC_ALRBBINR_SS              RTC_ALRBBINR_SS_Msk
8445 
8446 /******************************************************************************/
8447 /*                                                                            */
8448 /*                        Serial Peripheral Interface (SPI)                   */
8449 /*                                                                            */
8450 /******************************************************************************/
8451 /*******************  Bit definition for SPI_CR1 register  ********************/
8452 #define SPI_CR1_CPHA_Pos            (0U)
8453 #define SPI_CR1_CPHA_Msk            (0x1UL << SPI_CR1_CPHA_Pos)                /*!< 0x00000001 */
8454 #define SPI_CR1_CPHA                SPI_CR1_CPHA_Msk                           /*!<Clock Phase      */
8455 #define SPI_CR1_CPOL_Pos            (1U)
8456 #define SPI_CR1_CPOL_Msk            (0x1UL << SPI_CR1_CPOL_Pos)                /*!< 0x00000002 */
8457 #define SPI_CR1_CPOL                SPI_CR1_CPOL_Msk                           /*!<Clock Polarity   */
8458 #define SPI_CR1_MSTR_Pos            (2U)
8459 #define SPI_CR1_MSTR_Msk            (0x1UL << SPI_CR1_MSTR_Pos)                /*!< 0x00000004 */
8460 #define SPI_CR1_MSTR                SPI_CR1_MSTR_Msk                           /*!<Master Selection */
8461 
8462 #define SPI_CR1_BR_Pos              (3U)
8463 #define SPI_CR1_BR_Msk              (0x7UL << SPI_CR1_BR_Pos)                  /*!< 0x00000038 */
8464 #define SPI_CR1_BR                  SPI_CR1_BR_Msk                             /*!<BR[2:0] bits (Baud Rate Control) */
8465 #define SPI_CR1_BR_0                (0x1UL << SPI_CR1_BR_Pos)                  /*!< 0x00000008 */
8466 #define SPI_CR1_BR_1                (0x2UL << SPI_CR1_BR_Pos)                  /*!< 0x00000010 */
8467 #define SPI_CR1_BR_2                (0x4UL << SPI_CR1_BR_Pos)                  /*!< 0x00000020 */
8468 
8469 #define SPI_CR1_SPE_Pos             (6U)
8470 #define SPI_CR1_SPE_Msk             (0x1UL << SPI_CR1_SPE_Pos)                 /*!< 0x00000040 */
8471 #define SPI_CR1_SPE                 SPI_CR1_SPE_Msk                            /*!<SPI Enable                          */
8472 #define SPI_CR1_LSBFIRST_Pos        (7U)
8473 #define SPI_CR1_LSBFIRST_Msk        (0x1UL << SPI_CR1_LSBFIRST_Pos)            /*!< 0x00000080 */
8474 #define SPI_CR1_LSBFIRST            SPI_CR1_LSBFIRST_Msk                       /*!<Frame Format                        */
8475 #define SPI_CR1_SSI_Pos             (8U)
8476 #define SPI_CR1_SSI_Msk             (0x1UL << SPI_CR1_SSI_Pos)                 /*!< 0x00000100 */
8477 #define SPI_CR1_SSI                 SPI_CR1_SSI_Msk                            /*!<Internal slave select               */
8478 #define SPI_CR1_SSM_Pos             (9U)
8479 #define SPI_CR1_SSM_Msk             (0x1UL << SPI_CR1_SSM_Pos)                 /*!< 0x00000200 */
8480 #define SPI_CR1_SSM                 SPI_CR1_SSM_Msk                            /*!<Software slave management           */
8481 #define SPI_CR1_RXONLY_Pos          (10U)
8482 #define SPI_CR1_RXONLY_Msk          (0x1UL << SPI_CR1_RXONLY_Pos)              /*!< 0x00000400 */
8483 #define SPI_CR1_RXONLY              SPI_CR1_RXONLY_Msk                         /*!<Receive only                        */
8484 #define SPI_CR1_CRCL_Pos            (11U)
8485 #define SPI_CR1_CRCL_Msk            (0x1UL << SPI_CR1_CRCL_Pos)                /*!< 0x00000800 */
8486 #define SPI_CR1_CRCL                SPI_CR1_CRCL_Msk                           /*!< CRC Length */
8487 #define SPI_CR1_CRCNEXT_Pos         (12U)
8488 #define SPI_CR1_CRCNEXT_Msk         (0x1UL << SPI_CR1_CRCNEXT_Pos)             /*!< 0x00001000 */
8489 #define SPI_CR1_CRCNEXT             SPI_CR1_CRCNEXT_Msk                        /*!<Transmit CRC next                   */
8490 #define SPI_CR1_CRCEN_Pos           (13U)
8491 #define SPI_CR1_CRCEN_Msk           (0x1UL << SPI_CR1_CRCEN_Pos)               /*!< 0x00002000 */
8492 #define SPI_CR1_CRCEN               SPI_CR1_CRCEN_Msk                          /*!<Hardware CRC calculation enable     */
8493 #define SPI_CR1_BIDIOE_Pos          (14U)
8494 #define SPI_CR1_BIDIOE_Msk          (0x1UL << SPI_CR1_BIDIOE_Pos)              /*!< 0x00004000 */
8495 #define SPI_CR1_BIDIOE              SPI_CR1_BIDIOE_Msk                         /*!<Output enable in bidirectional mode */
8496 #define SPI_CR1_BIDIMODE_Pos        (15U)
8497 #define SPI_CR1_BIDIMODE_Msk        (0x1UL << SPI_CR1_BIDIMODE_Pos)            /*!< 0x00008000 */
8498 #define SPI_CR1_BIDIMODE            SPI_CR1_BIDIMODE_Msk                       /*!<Bidirectional data mode enable      */
8499 
8500 /*******************  Bit definition for SPI_CR2 register  ********************/
8501 #define SPI_CR2_RXDMAEN_Pos         (0U)
8502 #define SPI_CR2_RXDMAEN_Msk         (0x1UL << SPI_CR2_RXDMAEN_Pos)             /*!< 0x00000001 */
8503 #define SPI_CR2_RXDMAEN             SPI_CR2_RXDMAEN_Msk                        /*!< Rx Buffer DMA Enable */
8504 #define SPI_CR2_TXDMAEN_Pos         (1U)
8505 #define SPI_CR2_TXDMAEN_Msk         (0x1UL << SPI_CR2_TXDMAEN_Pos)             /*!< 0x00000002 */
8506 #define SPI_CR2_TXDMAEN             SPI_CR2_TXDMAEN_Msk                        /*!< Tx Buffer DMA Enable */
8507 #define SPI_CR2_SSOE_Pos            (2U)
8508 #define SPI_CR2_SSOE_Msk            (0x1UL << SPI_CR2_SSOE_Pos)                /*!< 0x00000004 */
8509 #define SPI_CR2_SSOE                SPI_CR2_SSOE_Msk                           /*!< SS Output Enable */
8510 #define SPI_CR2_NSSP_Pos            (3U)
8511 #define SPI_CR2_NSSP_Msk            (0x1UL << SPI_CR2_NSSP_Pos)                /*!< 0x00000008 */
8512 #define SPI_CR2_NSSP                SPI_CR2_NSSP_Msk                           /*!< NSS pulse management Enable */
8513 #define SPI_CR2_FRF_Pos             (4U)
8514 #define SPI_CR2_FRF_Msk             (0x1UL << SPI_CR2_FRF_Pos)                 /*!< 0x00000010 */
8515 #define SPI_CR2_FRF                 SPI_CR2_FRF_Msk                            /*!< Frame Format Enable */
8516 #define SPI_CR2_ERRIE_Pos           (5U)
8517 #define SPI_CR2_ERRIE_Msk           (0x1UL << SPI_CR2_ERRIE_Pos)               /*!< 0x00000020 */
8518 #define SPI_CR2_ERRIE               SPI_CR2_ERRIE_Msk                          /*!< Error Interrupt Enable */
8519 #define SPI_CR2_RXNEIE_Pos          (6U)
8520 #define SPI_CR2_RXNEIE_Msk          (0x1UL << SPI_CR2_RXNEIE_Pos)              /*!< 0x00000040 */
8521 #define SPI_CR2_RXNEIE              SPI_CR2_RXNEIE_Msk                         /*!< RX buffer Not Empty Interrupt Enable */
8522 #define SPI_CR2_TXEIE_Pos           (7U)
8523 #define SPI_CR2_TXEIE_Msk           (0x1UL << SPI_CR2_TXEIE_Pos)               /*!< 0x00000080 */
8524 #define SPI_CR2_TXEIE               SPI_CR2_TXEIE_Msk                          /*!< Tx buffer Empty Interrupt Enable */
8525 #define SPI_CR2_DS_Pos              (8U)
8526 #define SPI_CR2_DS_Msk              (0xFUL << SPI_CR2_DS_Pos)                  /*!< 0x00000F00 */
8527 #define SPI_CR2_DS                  SPI_CR2_DS_Msk                             /*!< DS[3:0] Data Size */
8528 #define SPI_CR2_DS_0                (0x1UL << SPI_CR2_DS_Pos)                  /*!< 0x00000100 */
8529 #define SPI_CR2_DS_1                (0x2UL << SPI_CR2_DS_Pos)                  /*!< 0x00000200 */
8530 #define SPI_CR2_DS_2                (0x4UL << SPI_CR2_DS_Pos)                  /*!< 0x00000400 */
8531 #define SPI_CR2_DS_3                (0x8UL << SPI_CR2_DS_Pos)                  /*!< 0x00000800 */
8532 #define SPI_CR2_FRXTH_Pos           (12U)
8533 #define SPI_CR2_FRXTH_Msk           (0x1UL << SPI_CR2_FRXTH_Pos)               /*!< 0x00001000 */
8534 #define SPI_CR2_FRXTH               SPI_CR2_FRXTH_Msk                          /*!< FIFO reception Threshold */
8535 #define SPI_CR2_LDMARX_Pos          (13U)
8536 #define SPI_CR2_LDMARX_Msk          (0x1UL << SPI_CR2_LDMARX_Pos)              /*!< 0x00002000 */
8537 #define SPI_CR2_LDMARX              SPI_CR2_LDMARX_Msk                         /*!< Last DMA transfer for reception */
8538 #define SPI_CR2_LDMATX_Pos          (14U)
8539 #define SPI_CR2_LDMATX_Msk          (0x1UL << SPI_CR2_LDMATX_Pos)              /*!< 0x00004000 */
8540 #define SPI_CR2_LDMATX              SPI_CR2_LDMATX_Msk                         /*!< Last DMA transfer for transmission */
8541 
8542 /********************  Bit definition for SPI_SR register  ********************/
8543 #define SPI_SR_RXNE_Pos             (0U)
8544 #define SPI_SR_RXNE_Msk             (0x1UL << SPI_SR_RXNE_Pos)                 /*!< 0x00000001 */
8545 #define SPI_SR_RXNE                 SPI_SR_RXNE_Msk                            /*!< Receive buffer Not Empty */
8546 #define SPI_SR_TXE_Pos              (1U)
8547 #define SPI_SR_TXE_Msk              (0x1UL << SPI_SR_TXE_Pos)                  /*!< 0x00000002 */
8548 #define SPI_SR_TXE                  SPI_SR_TXE_Msk                             /*!< Transmit buffer Empty */
8549 #define SPI_SR_CHSIDE_Pos           (2U)
8550 #define SPI_SR_CHSIDE_Msk           (0x1UL << SPI_SR_CHSIDE_Pos)               /*!< 0x00000004 */
8551 #define SPI_SR_CHSIDE               SPI_SR_CHSIDE_Msk                          /*!< Channel side */
8552 #define SPI_SR_UDR_Pos              (3U)
8553 #define SPI_SR_UDR_Msk              (0x1UL << SPI_SR_UDR_Pos)                  /*!< 0x00000008 */
8554 #define SPI_SR_UDR                  SPI_SR_UDR_Msk                             /*!< Underrun flag */
8555 #define SPI_SR_CRCERR_Pos           (4U)
8556 #define SPI_SR_CRCERR_Msk           (0x1UL << SPI_SR_CRCERR_Pos)               /*!< 0x00000010 */
8557 #define SPI_SR_CRCERR               SPI_SR_CRCERR_Msk                          /*!< CRC Error flag */
8558 #define SPI_SR_MODF_Pos             (5U)
8559 #define SPI_SR_MODF_Msk             (0x1UL << SPI_SR_MODF_Pos)                 /*!< 0x00000020 */
8560 #define SPI_SR_MODF                 SPI_SR_MODF_Msk                            /*!< Mode fault */
8561 #define SPI_SR_OVR_Pos              (6U)
8562 #define SPI_SR_OVR_Msk              (0x1UL << SPI_SR_OVR_Pos)                  /*!< 0x00000040 */
8563 #define SPI_SR_OVR                  SPI_SR_OVR_Msk                             /*!< Overrun flag */
8564 #define SPI_SR_BSY_Pos              (7U)
8565 #define SPI_SR_BSY_Msk              (0x1UL << SPI_SR_BSY_Pos)                  /*!< 0x00000080 */
8566 #define SPI_SR_BSY                  SPI_SR_BSY_Msk                             /*!< Busy flag */
8567 #define SPI_SR_FRE_Pos              (8U)
8568 #define SPI_SR_FRE_Msk              (0x1UL << SPI_SR_FRE_Pos)                  /*!< 0x00000100 */
8569 #define SPI_SR_FRE                  SPI_SR_FRE_Msk                             /*!< TI frame format error */
8570 #define SPI_SR_FRLVL_Pos            (9U)
8571 #define SPI_SR_FRLVL_Msk            (0x3UL << SPI_SR_FRLVL_Pos)                /*!< 0x00000600 */
8572 #define SPI_SR_FRLVL                SPI_SR_FRLVL_Msk                           /*!< FIFO Reception Level */
8573 #define SPI_SR_FRLVL_0              (0x1UL << SPI_SR_FRLVL_Pos)                /*!< 0x00000200 */
8574 #define SPI_SR_FRLVL_1              (0x2UL << SPI_SR_FRLVL_Pos)                /*!< 0x00000400 */
8575 #define SPI_SR_FTLVL_Pos            (11U)
8576 #define SPI_SR_FTLVL_Msk            (0x3UL << SPI_SR_FTLVL_Pos)                /*!< 0x00001800 */
8577 #define SPI_SR_FTLVL                SPI_SR_FTLVL_Msk                           /*!< FIFO Transmission Level */
8578 #define SPI_SR_FTLVL_0              (0x1UL << SPI_SR_FTLVL_Pos)                /*!< 0x00000800 */
8579 #define SPI_SR_FTLVL_1              (0x2UL << SPI_SR_FTLVL_Pos)                /*!< 0x00001000 */
8580 
8581 /********************  Bit definition for SPI_DR register  ********************/
8582 #define SPI_DR_DR_Pos               (0U)
8583 #define SPI_DR_DR_Msk               (0xFFFFUL << SPI_DR_DR_Pos)                /*!< 0x0000FFFF */
8584 #define SPI_DR_DR                   SPI_DR_DR_Msk                              /*!<Data Register           */
8585 
8586 /*******************  Bit definition for SPI_CRCPR register  ******************/
8587 #define SPI_CRCPR_CRCPOLY_Pos       (0U)
8588 #define SPI_CRCPR_CRCPOLY_Msk       (0xFFFFUL << SPI_CRCPR_CRCPOLY_Pos)        /*!< 0x0000FFFF */
8589 #define SPI_CRCPR_CRCPOLY           SPI_CRCPR_CRCPOLY_Msk                      /*!<CRC polynomial register */
8590 
8591 /******************  Bit definition for SPI_RXCRCR register  ******************/
8592 #define SPI_RXCRCR_RXCRC_Pos        (0U)
8593 #define SPI_RXCRCR_RXCRC_Msk        (0xFFFFUL << SPI_RXCRCR_RXCRC_Pos)         /*!< 0x0000FFFF */
8594 #define SPI_RXCRCR_RXCRC            SPI_RXCRCR_RXCRC_Msk                       /*!<Rx CRC Register         */
8595 
8596 /******************  Bit definition for SPI_TXCRCR register  ******************/
8597 #define SPI_TXCRCR_TXCRC_Pos        (0U)
8598 #define SPI_TXCRCR_TXCRC_Msk        (0xFFFFUL << SPI_TXCRCR_TXCRC_Pos)         /*!< 0x0000FFFF */
8599 #define SPI_TXCRCR_TXCRC            SPI_TXCRCR_TXCRC_Msk                       /*!<Tx CRC Register         */
8600 
8601 /******************  Bit definition for SPI_I2SCFGR register  *****************/
8602 #define SPI_I2SCFGR_CHLEN_Pos       (0U)
8603 #define SPI_I2SCFGR_CHLEN_Msk       (0x1UL << SPI_I2SCFGR_CHLEN_Pos)           /*!< 0x00000001 */
8604 #define SPI_I2SCFGR_CHLEN           SPI_I2SCFGR_CHLEN_Msk                      /*!<Channel length (number of bits per audio channel) */
8605 #define SPI_I2SCFGR_DATLEN_Pos      (1U)
8606 #define SPI_I2SCFGR_DATLEN_Msk      (0x3UL << SPI_I2SCFGR_DATLEN_Pos)          /*!< 0x00000006 */
8607 #define SPI_I2SCFGR_DATLEN          SPI_I2SCFGR_DATLEN_Msk                     /*!<DATLEN[1:0] bits (Data length to be transferred) */
8608 #define SPI_I2SCFGR_DATLEN_0        (0x1UL << SPI_I2SCFGR_DATLEN_Pos)          /*!< 0x00000002 */
8609 #define SPI_I2SCFGR_DATLEN_1        (0x2UL << SPI_I2SCFGR_DATLEN_Pos)          /*!< 0x00000004 */
8610 #define SPI_I2SCFGR_CKPOL_Pos       (3U)
8611 #define SPI_I2SCFGR_CKPOL_Msk       (0x1UL << SPI_I2SCFGR_CKPOL_Pos)           /*!< 0x00000008 */
8612 #define SPI_I2SCFGR_CKPOL           SPI_I2SCFGR_CKPOL_Msk                      /*!<steady state clock polarity */
8613 #define SPI_I2SCFGR_I2SSTD_Pos      (4U)
8614 #define SPI_I2SCFGR_I2SSTD_Msk      (0x3UL << SPI_I2SCFGR_I2SSTD_Pos)          /*!< 0x00000030 */
8615 #define SPI_I2SCFGR_I2SSTD          SPI_I2SCFGR_I2SSTD_Msk                     /*!<I2SSTD[1:0] bits (I2S standard selection) */
8616 #define SPI_I2SCFGR_I2SSTD_0        (0x1UL << SPI_I2SCFGR_I2SSTD_Pos)          /*!< 0x00000010 */
8617 #define SPI_I2SCFGR_I2SSTD_1        (0x2UL << SPI_I2SCFGR_I2SSTD_Pos)          /*!< 0x00000020 */
8618 #define SPI_I2SCFGR_PCMSYNC_Pos     (7U)
8619 #define SPI_I2SCFGR_PCMSYNC_Msk     (0x1UL << SPI_I2SCFGR_PCMSYNC_Pos)         /*!< 0x00000080 */
8620 #define SPI_I2SCFGR_PCMSYNC         SPI_I2SCFGR_PCMSYNC_Msk                    /*!<PCM frame synchronization */
8621 #define SPI_I2SCFGR_I2SCFG_Pos      (8U)
8622 #define SPI_I2SCFGR_I2SCFG_Msk      (0x3UL << SPI_I2SCFGR_I2SCFG_Pos)          /*!< 0x00000300 */
8623 #define SPI_I2SCFGR_I2SCFG          SPI_I2SCFGR_I2SCFG_Msk                     /*!<I2SCFG[1:0] bits (I2S configuration mode) */
8624 #define SPI_I2SCFGR_I2SCFG_0        (0x1UL << SPI_I2SCFGR_I2SCFG_Pos)          /*!< 0x00000100 */
8625 #define SPI_I2SCFGR_I2SCFG_1        (0x2UL << SPI_I2SCFGR_I2SCFG_Pos)          /*!< 0x00000200 */
8626 #define SPI_I2SCFGR_I2SE_Pos        (10U)
8627 #define SPI_I2SCFGR_I2SE_Msk        (0x1UL << SPI_I2SCFGR_I2SE_Pos)            /*!< 0x00000400 */
8628 #define SPI_I2SCFGR_I2SE            SPI_I2SCFGR_I2SE_Msk                       /*!<I2S Enable */
8629 #define SPI_I2SCFGR_I2SMOD_Pos      (11U)
8630 #define SPI_I2SCFGR_I2SMOD_Msk      (0x1UL << SPI_I2SCFGR_I2SMOD_Pos)          /*!< 0x00000800 */
8631 #define SPI_I2SCFGR_I2SMOD          SPI_I2SCFGR_I2SMOD_Msk                     /*!<I2S mode selection */
8632 #define SPI_I2SCFGR_ASTRTEN_Pos     (12U)
8633 #define SPI_I2SCFGR_ASTRTEN_Msk     (0x1UL << SPI_I2SCFGR_ASTRTEN_Pos)         /*!< 0x00001000 */
8634 #define SPI_I2SCFGR_ASTRTEN         SPI_I2SCFGR_ASTRTEN_Msk                    /*!<Asynchronous start enable */
8635 
8636 /******************  Bit definition for SPI_I2SPR register  *******************/
8637 #define SPI_I2SPR_I2SDIV_Pos        (0U)
8638 #define SPI_I2SPR_I2SDIV_Msk        (0xFFUL << SPI_I2SPR_I2SDIV_Pos)           /*!< 0x000000FF */
8639 #define SPI_I2SPR_I2SDIV            SPI_I2SPR_I2SDIV_Msk                       /*!<I2S Linear prescaler */
8640 #define SPI_I2SPR_ODD_Pos           (8U)
8641 #define SPI_I2SPR_ODD_Msk           (0x1UL << SPI_I2SPR_ODD_Pos)               /*!< 0x00000100 */
8642 #define SPI_I2SPR_ODD               SPI_I2SPR_ODD_Msk                          /*!<Odd factor for the prescaler */
8643 #define SPI_I2SPR_MCKOE_Pos         (9U)
8644 #define SPI_I2SPR_MCKOE_Msk         (0x1UL << SPI_I2SPR_MCKOE_Pos)             /*!< 0x00000200 */
8645 #define SPI_I2SPR_MCKOE             SPI_I2SPR_MCKOE_Msk                        /*!<Master Clock Output Enable */
8646 
8647 /******************************************************************************/
8648 /*                                                                            */
8649 /*                     Tamper and backup register (TAMP)                      */
8650 /*                                                                            */
8651 /******************************************************************************/
8652 /********************  Bits definition for TAMP_CR1 register  *****************/
8653 #define TAMP_CR1_TAMP1E_Pos          (0U)
8654 #define TAMP_CR1_TAMP1E_Msk          (0x1UL << TAMP_CR1_TAMP1E_Pos)            /*!< 0x00000001 */
8655 #define TAMP_CR1_TAMP1E              TAMP_CR1_TAMP1E_Msk
8656 #define TAMP_CR1_TAMP2E_Pos          (1U)
8657 #define TAMP_CR1_TAMP2E_Msk          (0x1UL << TAMP_CR1_TAMP2E_Pos)            /*!< 0x00000002 */
8658 #define TAMP_CR1_TAMP2E              TAMP_CR1_TAMP2E_Msk
8659 #define TAMP_CR1_TAMP3E_Pos          (2U)
8660 #define TAMP_CR1_TAMP3E_Msk          (0x1UL << TAMP_CR1_TAMP3E_Pos)            /*!< 0x00000004 */
8661 #define TAMP_CR1_TAMP3E              TAMP_CR1_TAMP3E_Msk
8662 #define TAMP_CR1_ITAMP3E_Pos         (18U)
8663 #define TAMP_CR1_ITAMP3E_Msk         (0x1UL << TAMP_CR1_ITAMP3E_Pos)           /*!< 0x00040000 */
8664 #define TAMP_CR1_ITAMP3E             TAMP_CR1_ITAMP3E_Msk
8665 #define TAMP_CR1_ITAMP5E_Pos         (20U)
8666 #define TAMP_CR1_ITAMP5E_Msk         (0x1UL << TAMP_CR1_ITAMP5E_Pos)           /*!< 0x00100000 */
8667 #define TAMP_CR1_ITAMP5E             TAMP_CR1_ITAMP5E_Msk
8668 #define TAMP_CR1_ITAMP6E_Pos         (21U)
8669 #define TAMP_CR1_ITAMP6E_Msk         (0x1UL << TAMP_CR1_ITAMP6E_Pos)           /*!< 0x0020000 */
8670 #define TAMP_CR1_ITAMP6E             TAMP_CR1_ITAMP6E_Msk
8671 #define TAMP_CR1_ITAMP8E_Pos         (23U)
8672 #define TAMP_CR1_ITAMP8E_Msk         (0x1UL << TAMP_CR1_ITAMP8E_Pos)           /*!< 0x00800000 */
8673 #define TAMP_CR1_ITAMP8E             TAMP_CR1_ITAMP8E_Msk
8674 
8675 /********************  Bits definition for TAMP_CR2 register  *****************/
8676 #define TAMP_CR2_TAMP1NOERASE_Pos    (0U)
8677 #define TAMP_CR2_TAMP1NOERASE_Msk    (0x1UL << TAMP_CR2_TAMP1NOERASE_Pos)      /*!< 0x00000001 */
8678 #define TAMP_CR2_TAMP1NOERASE        TAMP_CR2_TAMP1NOERASE_Msk
8679 #define TAMP_CR2_TAMP2NOERASE_Pos    (1U)
8680 #define TAMP_CR2_TAMP2NOERASE_Msk    (0x1UL << TAMP_CR2_TAMP2NOERASE_Pos)      /*!< 0x00000002 */
8681 #define TAMP_CR2_TAMP2NOERASE        TAMP_CR2_TAMP2NOERASE_Msk
8682 #define TAMP_CR2_TAMP3NOERASE_Pos    (2U)
8683 #define TAMP_CR2_TAMP3NOERASE_Msk    (0x1UL << TAMP_CR2_TAMP3NOERASE_Pos)      /*!< 0x00000004 */
8684 #define TAMP_CR2_TAMP3NOERASE        TAMP_CR2_TAMP3NOERASE_Msk
8685 #define TAMP_CR2_TAMP1MSK_Pos        (16U)
8686 #define TAMP_CR2_TAMP1MSK_Msk        (0x1UL << TAMP_CR2_TAMP1MSK_Pos)          /*!< 0x00010000 */
8687 #define TAMP_CR2_TAMP1MSK            TAMP_CR2_TAMP1MSK_Msk
8688 #define TAMP_CR2_TAMP2MSK_Pos        (17U)
8689 #define TAMP_CR2_TAMP2MSK_Msk        (0x1UL << TAMP_CR2_TAMP2MSK_Pos)          /*!< 0x00020000 */
8690 #define TAMP_CR2_TAMP2MSK            TAMP_CR2_TAMP2MSK_Msk
8691 #define TAMP_CR2_TAMP3MSK_Pos        (18U)
8692 #define TAMP_CR2_TAMP3MSK_Msk        (0x1UL << TAMP_CR2_TAMP3MSK_Pos)          /*!< 0x00040000 */
8693 #define TAMP_CR2_TAMP3MSK            TAMP_CR2_TAMP3MSK_Msk
8694 #define TAMP_CR2_BKERASE_Pos         (23U)
8695 #define TAMP_CR2_BKERASE_Msk         (0x1UL << TAMP_CR2_BKERASE_Pos)           /*!< 0x00800000 */
8696 #define TAMP_CR2_BKERASE             TAMP_CR2_BKERASE_Msk
8697 #define TAMP_CR2_TAMP1TRG_Pos        (24U)
8698 #define TAMP_CR2_TAMP1TRG_Msk        (0x1UL << TAMP_CR2_TAMP1TRG_Pos)          /*!< 0x01000000 */
8699 #define TAMP_CR2_TAMP1TRG            TAMP_CR2_TAMP1TRG_Msk
8700 #define TAMP_CR2_TAMP2TRG_Pos        (25U)
8701 #define TAMP_CR2_TAMP2TRG_Msk        (0x1UL << TAMP_CR2_TAMP2TRG_Pos)          /*!< 0x02000000 */
8702 #define TAMP_CR2_TAMP2TRG            TAMP_CR2_TAMP2TRG_Msk
8703 #define TAMP_CR2_TAMP3TRG_Pos        (26U)
8704 #define TAMP_CR2_TAMP3TRG_Msk        (0x1UL << TAMP_CR2_TAMP3TRG_Pos)          /*!< 0x02000000 */
8705 #define TAMP_CR2_TAMP3TRG            TAMP_CR2_TAMP3TRG_Msk
8706 
8707 /********************  Bits definition for TAMP_CR3 register  *****************/
8708 #define TAMP_CR3_ITAMP3NOER_Pos      (2U)
8709 #define TAMP_CR3_ITAMP3NOER_Msk      (0x1UL << TAMP_CR3_ITAMP3NOER_Pos)        /*!< 0x00000004 */
8710 #define TAMP_CR3_ITAMP3NOER          TAMP_CR3_ITAMP3NOER_Msk
8711 #define TAMP_CR3_ITAMP5NOER_Pos      (4U)
8712 #define TAMP_CR3_ITAMP5NOER_Msk      (0x1UL << TAMP_CR3_ITAMP5NOER_Pos)        /*!< 0x00000010 */
8713 #define TAMP_CR3_ITAMP5NOER          TAMP_CR3_ITAMP5NOER_Msk
8714 #define TAMP_CR3_ITAMP6NOER_Pos      (5U)
8715 #define TAMP_CR3_ITAMP6NOER_Msk      (0x1UL << TAMP_CR3_ITAMP6NOER_Pos)        /*!< 0x00000020 */
8716 #define TAMP_CR3_ITAMP6NOER          TAMP_CR3_ITAMP6NOER_Msk
8717 #define TAMP_CR3_ITAMP8NOER_Pos      (7U)
8718 #define TAMP_CR3_ITAMP8NOER_Msk      (0x1UL << TAMP_CR3_ITAMP8NOER_Pos)        /*!< 0x00800000 */
8719 #define TAMP_CR3_ITAMP8NOER          TAMP_CR3_ITAMP8NOER_Msk
8720 
8721 /********************  Bits definition for TAMP_FLTCR register  ***************/
8722 #define TAMP_FLTCR_TAMPFREQ_Pos      (0U)
8723 #define TAMP_FLTCR_TAMPFREQ_Msk      (0x7UL << TAMP_FLTCR_TAMPFREQ_Pos)        /*!< 0x00000007 */
8724 #define TAMP_FLTCR_TAMPFREQ          TAMP_FLTCR_TAMPFREQ_Msk
8725 #define TAMP_FLTCR_TAMPFREQ_0        (0x1UL << TAMP_FLTCR_TAMPFREQ_Pos)        /*!< 0x00000001 */
8726 #define TAMP_FLTCR_TAMPFREQ_1        (0x2UL << TAMP_FLTCR_TAMPFREQ_Pos)        /*!< 0x00000002 */
8727 #define TAMP_FLTCR_TAMPFREQ_2        (0x4UL << TAMP_FLTCR_TAMPFREQ_Pos)        /*!< 0x00000004 */
8728 #define TAMP_FLTCR_TAMPFLT_Pos       (3U)
8729 #define TAMP_FLTCR_TAMPFLT_Msk       (0x3UL << TAMP_FLTCR_TAMPFLT_Pos)         /*!< 0x00000018 */
8730 #define TAMP_FLTCR_TAMPFLT           TAMP_FLTCR_TAMPFLT_Msk
8731 #define TAMP_FLTCR_TAMPFLT_0         (0x1UL << TAMP_FLTCR_TAMPFLT_Pos)         /*!< 0x00000008 */
8732 #define TAMP_FLTCR_TAMPFLT_1         (0x2UL << TAMP_FLTCR_TAMPFLT_Pos)         /*!< 0x00000010 */
8733 #define TAMP_FLTCR_TAMPPRCH_Pos      (5U)
8734 #define TAMP_FLTCR_TAMPPRCH_Msk      (0x3UL << TAMP_FLTCR_TAMPPRCH_Pos)        /*!< 0x00000060 */
8735 #define TAMP_FLTCR_TAMPPRCH          TAMP_FLTCR_TAMPPRCH_Msk
8736 #define TAMP_FLTCR_TAMPPRCH_0        (0x1UL << TAMP_FLTCR_TAMPPRCH_Pos)        /*!< 0x00000020 */
8737 #define TAMP_FLTCR_TAMPPRCH_1        (0x2UL << TAMP_FLTCR_TAMPPRCH_Pos)        /*!< 0x00000040 */
8738 #define TAMP_FLTCR_TAMPPUDIS_Pos     (7U)
8739 #define TAMP_FLTCR_TAMPPUDIS_Msk     (0x1UL << TAMP_FLTCR_TAMPPUDIS_Pos)       /*!< 0x00000080 */
8740 #define TAMP_FLTCR_TAMPPUDIS         TAMP_FLTCR_TAMPPUDIS_Msk
8741 
8742 /********************  Bits definition for TAMP_IER register  *****************/
8743 #define TAMP_IER_TAMP1IE_Pos         (0U)
8744 #define TAMP_IER_TAMP1IE_Msk         (0x1UL << TAMP_IER_TAMP1IE_Pos)           /*!< 0x00000001 */
8745 #define TAMP_IER_TAMP1IE             TAMP_IER_TAMP1IE_Msk
8746 #define TAMP_IER_TAMP2IE_Pos         (1U)
8747 #define TAMP_IER_TAMP2IE_Msk         (0x1UL << TAMP_IER_TAMP2IE_Pos)           /*!< 0x00000002 */
8748 #define TAMP_IER_TAMP2IE             TAMP_IER_TAMP2IE_Msk
8749 #define TAMP_IER_TAMP3IE_Pos         (2U)
8750 #define TAMP_IER_TAMP3IE_Msk         (0x1UL << TAMP_IER_TAMP3IE_Pos)           /*!< 0x00000004 */
8751 #define TAMP_IER_TAMP3IE             TAMP_IER_TAMP3IE_Msk
8752 #define TAMP_IER_ITAMP3IE_Pos        (18U)
8753 #define TAMP_IER_ITAMP3IE_Msk        (0x1UL << TAMP_IER_ITAMP3IE_Pos)          /*!< 0x00040000 */
8754 #define TAMP_IER_ITAMP3IE            TAMP_IER_ITAMP3IE_Msk
8755 #define TAMP_IER_ITAMP5IE_Pos        (20U)
8756 #define TAMP_IER_ITAMP5IE_Msk        (0x1UL << TAMP_IER_ITAMP5IE_Pos)          /*!< 0x00100000 */
8757 #define TAMP_IER_ITAMP5IE            TAMP_IER_ITAMP5IE_Msk
8758 #define TAMP_IER_ITAMP6IE_Pos        (21U)
8759 #define TAMP_IER_ITAMP6IE_Msk        (0x1UL << TAMP_IER_ITAMP6IE_Pos)          /*!< 0x0020000 */
8760 #define TAMP_IER_ITAMP6IE            TAMP_IER_ITAMP6IE_Msk
8761 #define TAMP_IER_ITAMP8IE_Pos        (23U)
8762 #define TAMP_IER_ITAMP8IE_Msk        (0x1UL << TAMP_IER_ITAMP8IE_Pos)          /*!< 0x00800000 */
8763 #define TAMP_IER_ITAMP8IE            TAMP_IER_ITAMP8IE_Msk
8764 
8765 /********************  Bits definition for TAMP_SR register  *****************/
8766 #define TAMP_SR_TAMP1F_Pos           (0U)
8767 #define TAMP_SR_TAMP1F_Msk           (0x1UL << TAMP_SR_TAMP1F_Pos)             /*!< 0x00000001 */
8768 #define TAMP_SR_TAMP1F               TAMP_SR_TAMP1F_Msk
8769 #define TAMP_SR_TAMP2F_Pos           (1U)
8770 #define TAMP_SR_TAMP2F_Msk           (0x1UL << TAMP_SR_TAMP2F_Pos)            /*!< 0x00000002 */
8771 #define TAMP_SR_TAMP2F               TAMP_SR_TAMP2F_Msk
8772 #define TAMP_SR_TAMP3F_Pos           (2U)
8773 #define TAMP_SR_TAMP3F_Msk           (0x1UL << TAMP_SR_TAMP3F_Pos)             /*!< 0x00000004 */
8774 #define TAMP_SR_TAMP3F               TAMP_SR_TAMP3F_Msk
8775 #define TAMP_SR_ITAMP3F_Pos          (18U)
8776 #define TAMP_SR_ITAMP3F_Msk          (0x1UL << TAMP_SR_ITAMP3F_Pos)           /*!< 0x00040000 */
8777 #define TAMP_SR_ITAMP3F              TAMP_SR_ITAMP3F_Msk
8778 #define TAMP_SR_ITAMP5F_Pos          (20U)
8779 #define TAMP_SR_ITAMP5F_Msk          (0x1UL << TAMP_SR_ITAMP5F_Pos)           /*!< 0x00100000 */
8780 #define TAMP_SR_ITAMP5F              TAMP_SR_ITAMP5F_Msk
8781 #define TAMP_SR_ITAMP6F_Pos          (21U)
8782 #define TAMP_SR_ITAMP6F_Msk          (0x1UL << TAMP_SR_ITAMP6F_Pos)           /*!< 0x0020000 */
8783 #define TAMP_SR_ITAMP6F              TAMP_SR_ITAMP6F_Msk
8784 #define TAMP_SR_ITAMP8F_Pos          (23U)
8785 #define TAMP_SR_ITAMP8F_Msk          (0x1UL << TAMP_SR_ITAMP8F_Pos)           /*!< 0x00800000 */
8786 #define TAMP_SR_ITAMP8F              TAMP_SR_ITAMP8F_Msk
8787 
8788 /********************  Bits definition for TAMP_MISR register  ************ *****/
8789 #define TAMP_MISR_TAMP1MF_Pos        (0U)
8790 #define TAMP_MISR_TAMP1MF_Msk        (0x1UL << TAMP_MISR_TAMP1MF_Pos)          /*!< 0x00000001 */
8791 #define TAMP_MISR_TAMP1MF            TAMP_MISR_TAMP1MF_Msk
8792 #define TAMP_MISR_TAMP2MF_Pos        (1U)
8793 #define TAMP_MISR_TAMP2MF_Msk        (0x1UL << TAMP_MISR_TAMP2MF_Pos)          /*!< 0x00000002 */
8794 #define TAMP_MISR_TAMP2MF            TAMP_MISR_TAMP2MF_Msk
8795 #define TAMP_MISR_TAMP3MF_Pos        (2U)
8796 #define TAMP_MISR_TAMP3MF_Msk        (0x1UL << TAMP_MISR_TAMP3MF_Pos)          /*!< 0x00000004 */
8797 #define TAMP_MISR_TAMP3MF            TAMP_MISR_TAMP3MF_Msk
8798 #define TAMP_MISR_ITAMP3MF_Pos       (18U)
8799 #define TAMP_MISR_ITAMP3MF_Msk       (0x1UL << TAMP_MISR_ITAMP3MF_Pos)           /*!< 0x00040000 */
8800 #define TAMP_MISR_ITAMP3MF           TAMP_MISR_ITAMP3MF_Msk
8801 #define TAMP_MISR_ITAMP5MF_Pos       (20U)
8802 #define TAMP_MISR_ITAMP5MF_Msk       (0x1UL << TAMP_MISR_ITAMP5MF_Pos)           /*!< 0x00100000 */
8803 #define TAMP_MISR_ITAMP5MF           TAMP_MISR_ITAMP5MF_Msk
8804 #define TAMP_MISR_ITAMP6MF_Pos       (21U)
8805 #define TAMP_MISR_ITAMP6MF_Msk       (0x1UL << TAMP_MISR_ITAMP6MF_Pos)           /*!< 0x0020000 */
8806 #define TAMP_MISR_ITAMP6MF           TAMP_MISR_ITAMP6MF_Msk
8807 #define TAMP_MISR_ITAMP8MF_Pos       (23U)
8808 #define TAMP_MISR_ITAMP8MF_Msk       (0x1UL << TAMP_MISR_ITAMP8MF_Pos)           /*!< 0x00800000 */
8809 #define TAMP_MISR_ITAMP8MF           TAMP_MISR_ITAMP8MF_Msk
8810 
8811 /********************  Bits definition for TAMP_SMISR register  ************ *****/
8812 #define TAMP_SMISR_TAMP1MF_Pos       (0U)
8813 #define TAMP_SMISR_TAMP1MF_Msk       (0x1UL << TAMP_SMISR_TAMP1MF_Pos)         /*!< 0x00000001 */
8814 #define TAMP_SMISR_TAMP1MF           TAMP_SMISR_TAMP1MF_Msk
8815 #define TAMP_SMISR_TAMP2MF_Pos       (1U)
8816 #define TAMP_SMISR_TAMP2MF_Msk       (0x1UL << TAMP_SMISR_TAMP2MF_Pos)         /*!< 0x00000002 */
8817 #define TAMP_SMISR_TAMP2MF           TAMP_SMISR_TAMP2MF_Msk
8818 #define TAMP_SMISR_TAMP3MF_Pos       (2U)
8819 #define TAMP_SMISR_TAMP3MF_Msk       (0x1UL << TAMP_SMISR_TAMP3MF_Pos)         /*!< 0x00000004 */
8820 #define TAMP_SMISR_TAMP3MF           TAMP_SMISR_TAMP3MF_Msk
8821 #define TAMP_SMISR_ITAMP3MF_Pos      (18U)
8822 #define TAMP_SMISR_ITAMP3MF_Msk      (0x1UL << TAMP_SMISR_ITAMP3MF_Pos)        /*!< 0x00040000 */
8823 #define TAMP_SMISR_ITAMP3MF          TAMP_SMISR_ITAMP3MF_Msk
8824 #define TAMP_SMISR_ITAMP5MF_Pos      (20U)
8825 #define TAMP_SMISR_ITAMP5MF_Msk      (0x1UL << TAMP_SMISR_ITAMP5MF_Pos)        /*!< 0x00100000 */
8826 #define TAMP_SMISR_ITAMP5MF          TAMP_SMISR_ITAMP5MF_Msk
8827 #define TAMP_SMISR_ITAMP6MF_Pos      (21U)
8828 #define TAMP_SMISR_ITAMP6MF_Msk      (0x1UL << TAMP_SMISR_ITAMP6MF_Pos)        /*!< 0x0020000 */
8829 #define TAMP_SMISR_ITAMP6MF          TAMP_SMISR_ITAMP6MF_Msk
8830 #define TAMP_SMISR_ITAMP8MF_Pos      (23U)
8831 #define TAMP_SMISR_ITAMP8MF_Msk      (0x1UL << TAMP_SMISR_ITAMP8MF_Pos)        /*!< 0x00800000 */
8832 #define TAMP_SMISR_ITAMP8MF          TAMP_SMISR_ITAMP8MF_Msk
8833 
8834 /********************  Bits definition for TAMP_SCR register  *****************/
8835 #define TAMP_SCR_CTAMP1F_Pos         (0U)
8836 #define TAMP_SCR_CTAMP1F_Msk         (0x1UL << TAMP_SCR_CTAMP1F_Pos)           /*!< 0x00000001 */
8837 #define TAMP_SCR_CTAMP1F             TAMP_SCR_CTAMP1F_Msk
8838 #define TAMP_SCR_CTAMP2F_Pos         (1U)
8839 #define TAMP_SCR_CTAMP2F_Msk         (0x1UL << TAMP_SCR_CTAMP2F_Pos)           /*!< 0x00000002 */
8840 #define TAMP_SCR_CTAMP2F             TAMP_SCR_CTAMP2F_Msk
8841 #define TAMP_SCR_CTAMP3F_Pos         (2U)
8842 #define TAMP_SCR_CTAMP3F_Msk         (0x1UL << TAMP_SCR_CTAMP3F_Pos)           /*!< 0x00000004 */
8843 #define TAMP_SCR_CTAMP3F             TAMP_SCR_CTAMP3F_Msk
8844 #define TAMP_SCR_CITAMP3F_Pos        (18U)
8845 #define TAMP_SCR_CITAMP3F_Msk        (0x1UL << TAMP_SCR_CITAMP3F_Pos)          /*!< 0x00040000 */
8846 #define TAMP_SCR_CITAMP3F            TAMP_SCR_CITAMP3F_Msk
8847 #define TAMP_SCR_CITAMP5F_Pos        (20U)
8848 #define TAMP_SCR_CITAMP5F_Msk        (0x1UL << TAMP_SCR_CITAMP5F_Pos)          /*!< 0x00100000 */
8849 #define TAMP_SCR_CITAMP5F            TAMP_SCR_CITAMP5F_Msk
8850 #define TAMP_SCR_CITAMP6F_Pos        (21U)
8851 #define TAMP_SCR_CITAMP6F_Msk        (0x1UL << TAMP_SCR_CITAMP6F_Pos)          /*!< 0x0020000 */
8852 #define TAMP_SCR_CITAMP6F            TAMP_SCR_CITAMP6F_Msk
8853 #define TAMP_SCR_CITAMP8F_Pos        (23U)
8854 #define TAMP_SCR_CITAMP8F_Msk        (0x1UL << TAMP_SCR_CITAMP8F_Pos)          /*!< 0x00800000 */
8855 #define TAMP_SCR_CITAMP8F            TAMP_SCR_CITAMP8F_Msk
8856 
8857 /********************  Bits definition for TAMP_COUNTR register  ***************/
8858 #define TAMP_COUNTR_Pos               (0U)
8859 #define TAMP_COUNTR_Msk               (0xFFFFFFFFUL << TAMP_COUNTR_Pos)        /*!< 0xFFFFFFFF */
8860 #define TAMP_COUNTR                   TAMP_COUNTR_Msk
8861 
8862 /********************  Bits definition for TAMP_BKP0R register  ***************/
8863 #define TAMP_BKP0R_Pos               (0U)
8864 #define TAMP_BKP0R_Msk               (0xFFFFFFFFUL << TAMP_BKP0R_Pos)          /*!< 0xFFFFFFFF */
8865 #define TAMP_BKP0R                   TAMP_BKP0R_Msk
8866 
8867 /********************  Bits definition for TAMP_BKP1R register  ****************/
8868 #define TAMP_BKP1R_Pos               (0U)
8869 #define TAMP_BKP1R_Msk               (0xFFFFFFFFUL << TAMP_BKP1R_Pos)          /*!< 0xFFFFFFFF */
8870 #define TAMP_BKP1R                   TAMP_BKP1R_Msk
8871 
8872 /********************  Bits definition for TAMP_BKP2R register  ****************/
8873 #define TAMP_BKP2R_Pos               (0U)
8874 #define TAMP_BKP2R_Msk               (0xFFFFFFFFUL << TAMP_BKP2R_Pos)          /*!< 0xFFFFFFFF */
8875 #define TAMP_BKP2R                   TAMP_BKP2R_Msk
8876 
8877 /********************  Bits definition for TAMP_BKP3R register  ****************/
8878 #define TAMP_BKP3R_Pos               (0U)
8879 #define TAMP_BKP3R_Msk               (0xFFFFFFFFUL << TAMP_BKP3R_Pos)          /*!< 0xFFFFFFFF */
8880 #define TAMP_BKP3R                   TAMP_BKP3R_Msk
8881 
8882 /********************  Bits definition for TAMP_BKP4R register  ****************/
8883 #define TAMP_BKP4R_Pos               (0U)
8884 #define TAMP_BKP4R_Msk               (0xFFFFFFFFUL << TAMP_BKP4R_Pos)          /*!< 0xFFFFFFFF */
8885 #define TAMP_BKP4R                   TAMP_BKP4R_Msk
8886 
8887 /********************  Bits definition for TAMP_BKP5R register  ****************/
8888 #define TAMP_BKP5R_Pos               (0U)
8889 #define TAMP_BKP5R_Msk               (0xFFFFFFFFUL << TAMP_BKP5R_Pos)          /*!< 0xFFFFFFFF */
8890 #define TAMP_BKP5R                   TAMP_BKP5R_Msk
8891 
8892 /********************  Bits definition for TAMP_BKP6R register  ****************/
8893 #define TAMP_BKP6R_Pos               (0U)
8894 #define TAMP_BKP6R_Msk               (0xFFFFFFFFUL << TAMP_BKP6R_Pos)          /*!< 0xFFFFFFFF */
8895 #define TAMP_BKP6R                   TAMP_BKP6R_Msk
8896 
8897 /********************  Bits definition for TAMP_BKP7R register  ****************/
8898 #define TAMP_BKP7R_Pos               (0U)
8899 #define TAMP_BKP7R_Msk               (0xFFFFFFFFUL << TAMP_BKP7R_Pos)          /*!< 0xFFFFFFFF */
8900 #define TAMP_BKP7R                   TAMP_BKP7R_Msk
8901 
8902 /********************  Bits definition for TAMP_BKP8R register  ****************/
8903 #define TAMP_BKP8R_Pos               (0U)
8904 #define TAMP_BKP8R_Msk               (0xFFFFFFFFUL << TAMP_BKP8R_Pos)          /*!< 0xFFFFFFFF */
8905 #define TAMP_BKP8R                   TAMP_BKP8R_Msk
8906 
8907 /********************  Bits definition for TAMP_BKP9R register  ****************/
8908 #define TAMP_BKP9R_Pos               (0U)
8909 #define TAMP_BKP9R_Msk               (0xFFFFFFFFUL << TAMP_BKP9R_Pos)          /*!< 0xFFFFFFFF */
8910 #define TAMP_BKP9R                   TAMP_BKP9R_Msk
8911 
8912 /********************  Bits definition for TAMP_BKP10R register  ***************/
8913 #define TAMP_BKP10R_Pos              (0U)
8914 #define TAMP_BKP10R_Msk              (0xFFFFFFFFUL << TAMP_BKP10R_Pos)         /*!< 0xFFFFFFFF */
8915 #define TAMP_BKP10R                  TAMP_BKP10R_Msk
8916 
8917 /********************  Bits definition for TAMP_BKP11R register  ***************/
8918 #define TAMP_BKP11R_Pos              (0U)
8919 #define TAMP_BKP11R_Msk              (0xFFFFFFFFUL << TAMP_BKP11R_Pos)         /*!< 0xFFFFFFFF */
8920 #define TAMP_BKP11R                  TAMP_BKP11R_Msk
8921 
8922 /********************  Bits definition for TAMP_BKP12R register  ***************/
8923 #define TAMP_BKP12R_Pos              (0U)
8924 #define TAMP_BKP12R_Msk              (0xFFFFFFFFUL << TAMP_BKP12R_Pos)         /*!< 0xFFFFFFFF */
8925 #define TAMP_BKP12R                  TAMP_BKP12R_Msk
8926 
8927 /********************  Bits definition for TAMP_BKP13R register  ***************/
8928 #define TAMP_BKP13R_Pos              (0U)
8929 #define TAMP_BKP13R_Msk              (0xFFFFFFFFUL << TAMP_BKP13R_Pos)         /*!< 0xFFFFFFFF */
8930 #define TAMP_BKP13R                  TAMP_BKP13R_Msk
8931 
8932 /********************  Bits definition for TAMP_BKP14R register  ***************/
8933 #define TAMP_BKP14R_Pos              (0U)
8934 #define TAMP_BKP14R_Msk              (0xFFFFFFFFUL << TAMP_BKP14R_Pos)         /*!< 0xFFFFFFFF */
8935 #define TAMP_BKP14R                  TAMP_BKP14R_Msk
8936 
8937 /********************  Bits definition for TAMP_BKP15R register  ***************/
8938 #define TAMP_BKP15R_Pos              (0U)
8939 #define TAMP_BKP15R_Msk              (0xFFFFFFFFUL << TAMP_BKP15R_Pos)         /*!< 0xFFFFFFFF */
8940 #define TAMP_BKP15R                  TAMP_BKP15R_Msk
8941 
8942 /********************  Bits definition for TAMP_BKP16R register  ***************/
8943 #define TAMP_BKP16R_Pos              (0U)
8944 #define TAMP_BKP16R_Msk              (0xFFFFFFFFUL << TAMP_BKP16R_Pos)         /*!< 0xFFFFFFFF */
8945 #define TAMP_BKP16R                  TAMP_BKP16R_Msk
8946 
8947 /********************  Bits definition for TAMP_BKP17R register  ***************/
8948 #define TAMP_BKP17R_Pos              (0U)
8949 #define TAMP_BKP17R_Msk              (0xFFFFFFFFUL << TAMP_BKP17R_Pos)         /*!< 0xFFFFFFFF */
8950 #define TAMP_BKP17R                  TAMP_BKP17R_Msk
8951 
8952 /********************  Bits definition for TAMP_BKP18R register  ***************/
8953 #define TAMP_BKP18R_Pos              (0U)
8954 #define TAMP_BKP18R_Msk              (0xFFFFFFFFUL << TAMP_BKP18R_Pos)         /*!< 0xFFFFFFFF */
8955 #define TAMP_BKP18R                  TAMP_BKP18R_Msk
8956 
8957 /********************  Bits definition for TAMP_BKP19R register  ***************/
8958 #define TAMP_BKP19R_Pos              (0U)
8959 #define TAMP_BKP19R_Msk              (0xFFFFFFFFUL << TAMP_BKP19R_Pos)         /*!< 0xFFFFFFFF */
8960 #define TAMP_BKP19R                  TAMP_BKP19R_Msk
8961 
8962 /******************************************************************************/
8963 /*                                                                            */
8964 /*                                 SYSCFG                                     */
8965 /*                                                                            */
8966 /******************************************************************************/
8967 /*****************  Bit definition for SYSCFG_MEMRMP register  (SYSCFG memory remap register) ***********************************/
8968 #define SYSCFG_MEMRMP_MEM_MODE_Pos              (0U)
8969 #define SYSCFG_MEMRMP_MEM_MODE_Msk              (0x7UL << SYSCFG_MEMRMP_MEM_MODE_Pos)           /*!< 0x00000007 */
8970 #define SYSCFG_MEMRMP_MEM_MODE                  SYSCFG_MEMRMP_MEM_MODE_Msk                      /*!< SYSCFG_Memory Remap Config */
8971 #define SYSCFG_MEMRMP_MEM_MODE_0                (0x1UL << SYSCFG_MEMRMP_MEM_MODE_Pos)           /*!< 0x00000001 */
8972 #define SYSCFG_MEMRMP_MEM_MODE_1                (0x2UL << SYSCFG_MEMRMP_MEM_MODE_Pos)           /*!< 0x00000002 */
8973 #define SYSCFG_MEMRMP_MEM_MODE_2                (0x4UL << SYSCFG_MEMRMP_MEM_MODE_Pos)           /*!< 0x00000004 */
8974 
8975 /*****************  Bit definition for SYSCFG_CFGR1 register  (SYSCFG configuration register 1) ****************************************************************/
8976 #define SYSCFG_CFGR1_BOOSTEN_Pos                (8U)
8977 #define SYSCFG_CFGR1_BOOSTEN_Msk                (0x1UL << SYSCFG_CFGR1_BOOSTEN_Pos)             /*!< 0x00000100 */
8978 #define SYSCFG_CFGR1_BOOSTEN                    SYSCFG_CFGR1_BOOSTEN_Msk                        /*!< I/O analog switch voltage booster enable                  */
8979 #define SYSCFG_CFGR1_I2C_PB6_FMP_Pos            (16U)
8980 #define SYSCFG_CFGR1_I2C_PB6_FMP_Msk            (0x1UL << SYSCFG_CFGR1_I2C_PB6_FMP_Pos)         /*!< 0x00010000 */
8981 #define SYSCFG_CFGR1_I2C_PB6_FMP                SYSCFG_CFGR1_I2C_PB6_FMP_Msk                    /*!< Fast-mode Plus (Fm+) driving capability activation on PB6 */
8982 #define SYSCFG_CFGR1_I2C_PB7_FMP_Pos            (17U)
8983 #define SYSCFG_CFGR1_I2C_PB7_FMP_Msk            (0x1UL << SYSCFG_CFGR1_I2C_PB7_FMP_Pos)         /*!< 0x00020000 */
8984 #define SYSCFG_CFGR1_I2C_PB7_FMP                SYSCFG_CFGR1_I2C_PB7_FMP_Msk                    /*!< Fast-mode Plus (Fm+) driving capability activation on PB7 */
8985 #define SYSCFG_CFGR1_I2C_PB8_FMP_Pos            (18U)
8986 #define SYSCFG_CFGR1_I2C_PB8_FMP_Msk            (0x1UL << SYSCFG_CFGR1_I2C_PB8_FMP_Pos)         /*!< 0x00040000 */
8987 #define SYSCFG_CFGR1_I2C_PB8_FMP                SYSCFG_CFGR1_I2C_PB8_FMP_Msk                    /*!< Fast-mode Plus (Fm+) driving capability activation on PB8 */
8988 #define SYSCFG_CFGR1_I2C_PB9_FMP_Pos            (19U)
8989 #define SYSCFG_CFGR1_I2C_PB9_FMP_Msk            (0x1UL << SYSCFG_CFGR1_I2C_PB9_FMP_Pos)         /*!< 0x00080000 */
8990 #define SYSCFG_CFGR1_I2C_PB9_FMP                SYSCFG_CFGR1_I2C_PB9_FMP_Msk                    /*!< Fast-mode Plus (Fm+) driving capability activation on PB9 */
8991 #define SYSCFG_CFGR1_I2C1_FMP_Pos               (20U)
8992 #define SYSCFG_CFGR1_I2C1_FMP_Msk               (0x1UL << SYSCFG_CFGR1_I2C1_FMP_Pos)            /*!< 0x00100000 */
8993 #define SYSCFG_CFGR1_I2C1_FMP                   SYSCFG_CFGR1_I2C1_FMP_Msk                       /*!< I2C1 Fast-mode Plus (Fm+) driving capability activation   */
8994 #define SYSCFG_CFGR1_I2C2_FMP_Pos               (21U)
8995 #define SYSCFG_CFGR1_I2C2_FMP_Msk               (0x1UL << SYSCFG_CFGR1_I2C2_FMP_Pos)            /*!< 0x00200000 */
8996 #define SYSCFG_CFGR1_I2C2_FMP                   SYSCFG_CFGR1_I2C2_FMP_Msk                       /*!< I2C2 Fast-mode Plus (Fm+) driving capability activation   */
8997 #define SYSCFG_CFGR1_I2C3_FMP_Pos               (22U)
8998 #define SYSCFG_CFGR1_I2C3_FMP_Msk               (0x1UL << SYSCFG_CFGR1_I2C3_FMP_Pos)            /*!< 0x00400000 */
8999 #define SYSCFG_CFGR1_I2C3_FMP                   SYSCFG_CFGR1_I2C3_FMP_Msk                       /*!< I2C3 Fast-mode Plus (Fm+) driving capability activation   */
9000 
9001 /*****************  Bit definition for SYSCFG_EXTICR1 register  (External interrupt configuration register 1) ********************************/
9002 #define SYSCFG_EXTICR1_EXTI0_Pos                (0U)
9003 #define SYSCFG_EXTICR1_EXTI0_Msk                (0x7UL << SYSCFG_EXTICR1_EXTI0_Pos)             /*!< 0x00000007 */
9004 #define SYSCFG_EXTICR1_EXTI0                    SYSCFG_EXTICR1_EXTI0_Msk                        /*!< External Interrupt Line 0 configuration */
9005 #define SYSCFG_EXTICR1_EXTI1_Pos                (4U)
9006 #define SYSCFG_EXTICR1_EXTI1_Msk                (0x7UL << SYSCFG_EXTICR1_EXTI1_Pos)             /*!< 0x00000070 */
9007 #define SYSCFG_EXTICR1_EXTI1                    SYSCFG_EXTICR1_EXTI1_Msk                        /*!< External Interrupt Line 1 configuration */
9008 #define SYSCFG_EXTICR1_EXTI2_Pos                (8U)
9009 #define SYSCFG_EXTICR1_EXTI2_Msk                (0x7UL << SYSCFG_EXTICR1_EXTI2_Pos)             /*!< 0x00000700 */
9010 #define SYSCFG_EXTICR1_EXTI2                    SYSCFG_EXTICR1_EXTI2_Msk                        /*!< External Interrupt Line 2 configuration */
9011 #define SYSCFG_EXTICR1_EXTI3_Pos                (12U)
9012 #define SYSCFG_EXTICR1_EXTI3_Msk                (0x7UL << SYSCFG_EXTICR1_EXTI3_Pos)             /*!< 0x00007000 */
9013 #define SYSCFG_EXTICR1_EXTI3                    SYSCFG_EXTICR1_EXTI3_Msk                        /*!< External Interrupt Line 3 configuration */
9014 
9015 /**
9016   * @brief  External Interrupt Line 0 Source Input configuration
9017   */
9018 #define SYSCFG_EXTICR1_EXTI0_PA                 (0x00000000U)   /*!< PA[0] pin */
9019 #define SYSCFG_EXTICR1_EXTI0_PB                 (0x00000001U)   /*!< PB[0] pin */
9020 #define SYSCFG_EXTICR1_EXTI0_PC                 (0x00000002U)   /*!< PC[0] pin */
9021 
9022 /**
9023   * @brief  External Interrupt Line 1 Source Input configuration
9024   */
9025 #define SYSCFG_EXTICR1_EXTI1_PA                 (0x00000000U)   /*!< PA[1] pin */
9026 #define SYSCFG_EXTICR1_EXTI1_PB                 (0x00000010U)   /*!< PB[1] pin */
9027 #define SYSCFG_EXTICR1_EXTI1_PC                 (0x00000020U)   /*!< PC[1] pin */
9028 
9029 /**
9030   * @brief  External Interrupt Line 2 Source Input configuration
9031   */
9032 #define SYSCFG_EXTICR1_EXTI2_PA                 (0x00000000U)   /*!< PA[2] pin */
9033 #define SYSCFG_EXTICR1_EXTI2_PB                 (0x00000100U)   /*!< PB[2] pin */
9034 #define SYSCFG_EXTICR1_EXTI2_PC                 (0x00000200U)   /*!< PC[2] pin */
9035 
9036 /**
9037   * @brief  External Interrupt Line 3 Source Input configuration
9038   */
9039 #define SYSCFG_EXTICR1_EXTI3_PA                 (0x00000000U)   /*!< PA[3] pin */
9040 #define SYSCFG_EXTICR1_EXTI3_PB                 (0x00001000U)   /*!< PB[3] pin */
9041 #define SYSCFG_EXTICR1_EXTI3_PC                 (0x00002000U)   /*!< PC[3] pin */
9042 
9043 /*****************  Bit definition for SYSCFG_EXTICR2 register  (External interrupt configuration register 2) ********************************/
9044 #define SYSCFG_EXTICR2_EXTI4_Pos                (0U)
9045 #define SYSCFG_EXTICR2_EXTI4_Msk                (0x7UL << SYSCFG_EXTICR2_EXTI4_Pos)             /*!< 0x00000007 */
9046 #define SYSCFG_EXTICR2_EXTI4                    SYSCFG_EXTICR2_EXTI4_Msk                        /*!< External Interrupt Line 4 configuration */
9047 #define SYSCFG_EXTICR2_EXTI5_Pos                (4U)
9048 #define SYSCFG_EXTICR2_EXTI5_Msk                (0x7UL << SYSCFG_EXTICR2_EXTI5_Pos)             /*!< 0x00000070 */
9049 #define SYSCFG_EXTICR2_EXTI5                    SYSCFG_EXTICR2_EXTI5_Msk                        /*!< External Interrupt Line 5 configuration */
9050 #define SYSCFG_EXTICR2_EXTI6_Pos                (8U)
9051 #define SYSCFG_EXTICR2_EXTI6_Msk                (0x7UL << SYSCFG_EXTICR2_EXTI6_Pos)             /*!< 0x00000700 */
9052 #define SYSCFG_EXTICR2_EXTI6                    SYSCFG_EXTICR2_EXTI6_Msk                        /*!< External Interrupt Line 6 configuration */
9053 #define SYSCFG_EXTICR2_EXTI7_Pos                (12U)
9054 #define SYSCFG_EXTICR2_EXTI7_Msk                (0x7UL << SYSCFG_EXTICR2_EXTI7_Pos)             /*!< 0x00007000 */
9055 #define SYSCFG_EXTICR2_EXTI7                    SYSCFG_EXTICR2_EXTI7_Msk                        /*!< External Interrupt Line 7 configuration */
9056 
9057 /**
9058   * @brief  External Interrupt Line 4 Source Input configuration
9059   */
9060 #define SYSCFG_EXTICR2_EXTI4_PA                 (0x00000000U)   /*!< PA[4] pin  */
9061 #define SYSCFG_EXTICR2_EXTI4_PB                 (0x00000001U)   /*!< PB[4] pin  */
9062 #define SYSCFG_EXTICR2_EXTI4_PC                 (0x00000002U)   /*!< PC[4] pin  */
9063 
9064 /**
9065   * @brief  External Interrupt Line 5 Source Input configuration
9066   */
9067 #define SYSCFG_EXTICR2_EXTI5_PA                 (0x00000000U)   /*!< PA[5] pin  */
9068 #define SYSCFG_EXTICR2_EXTI5_PB                 (0x00000010U)   /*!< PB[5] pin  */
9069 #define SYSCFG_EXTICR2_EXTI5_PC                 (0x00000020U)   /*!< PC[5] pin  */
9070 
9071 /**
9072   * @brief  External Interrupt Line 6 Source Input configuration
9073   */
9074 #define SYSCFG_EXTICR2_EXTI6_PA                 (0x00000000U)   /*!< PA[6] pin  */
9075 #define SYSCFG_EXTICR2_EXTI6_PB                 (0x00000100U)   /*!< PB[6] pin  */
9076 #define SYSCFG_EXTICR2_EXTI6_PC                 (0x00000200U)   /*!< PC[6] pin  */
9077 
9078 /**
9079   * @brief  External Interrupt Line 7 Source Input configuration
9080   */
9081 #define SYSCFG_EXTICR2_EXTI7_PA                 (0x00000000U)   /*!< PA[7] pin  */
9082 #define SYSCFG_EXTICR2_EXTI7_PB                 (0x00001000U)   /*!< PB[7] pin  */
9083 
9084 /*****************  Bit definition for SYSCFG_EXTICR3 register  (External interrupt configuration register 3) ********************************/
9085 #define SYSCFG_EXTICR3_EXTI8_Pos                (0U)
9086 #define SYSCFG_EXTICR3_EXTI8_Msk                (0x7UL << SYSCFG_EXTICR3_EXTI8_Pos)             /*!< 0x00000007 */
9087 #define SYSCFG_EXTICR3_EXTI8                    SYSCFG_EXTICR3_EXTI8_Msk                        /*!< External Interrupt Line 8 configuration */
9088 #define SYSCFG_EXTICR3_EXTI9_Pos                (4U)
9089 #define SYSCFG_EXTICR3_EXTI9_Msk                (0x7UL << SYSCFG_EXTICR3_EXTI9_Pos)             /*!< 0x00000070 */
9090 #define SYSCFG_EXTICR3_EXTI9                    SYSCFG_EXTICR3_EXTI9_Msk                        /*!< External Interrupt Line 9 configuration */
9091 #define SYSCFG_EXTICR3_EXTI10_Pos               (8U)
9092 #define SYSCFG_EXTICR3_EXTI10_Msk               (0x7UL << SYSCFG_EXTICR3_EXTI10_Pos)            /*!< 0x00000700 */
9093 #define SYSCFG_EXTICR3_EXTI10                   SYSCFG_EXTICR3_EXTI10_Msk                       /*!< External Interrupt Line 10 configuration */
9094 #define SYSCFG_EXTICR3_EXTI11_Pos               (12U)
9095 #define SYSCFG_EXTICR3_EXTI11_Msk               (0xFUL << SYSCFG_EXTICR3_EXTI11_Pos)            /*!< 0x0000F000 */
9096 #define SYSCFG_EXTICR3_EXTI11                   SYSCFG_EXTICR3_EXTI11_Msk                       /*!< External Interrupt Line 11 configuration */
9097 
9098 /**
9099   * @brief  External Interrupt Line 8 Source Input configuration
9100   */
9101 #define SYSCFG_EXTICR3_EXTI8_PA                 (0x00000000U)   /*!< PA[8] pin  */
9102 #define SYSCFG_EXTICR3_EXTI8_PB                 (0x00000001U)   /*!< PB[8] pin  */
9103 
9104 /**
9105   * @brief  External Interrupt Line 9 Source Input configuration
9106   */
9107 #define SYSCFG_EXTICR3_EXTI9_PA                 (0x00000000U)   /*!< PA[9] pin  */
9108 #define SYSCFG_EXTICR3_EXTI9_PB                 (0x00000010U)   /*!< PB[9] pin  */
9109 
9110 /**
9111   * @brief  External Interrupt Line 10 Source Input configuration
9112   */
9113 #define SYSCFG_EXTICR3_EXTI10_PA                (0x00000000U)   /*!< PA[10] pin */
9114 #define SYSCFG_EXTICR3_EXTI10_PB                (0x00000100U)   /*!< PB[10] pin */
9115 
9116 /**
9117   * @brief  External Interrupt Line 11 Source Input configuration
9118   */
9119 #define SYSCFG_EXTICR3_EXTI11_PA                (0x00000000U)   /*!< PA[11] pin */
9120 #define SYSCFG_EXTICR3_EXTI11_PB                (0x00001000U)   /*!< PB[11] pin */
9121 
9122 /*****************  Bit definition for SYSCFG_EXTICR4 register  (External interrupt configuration register 4) *********************************/
9123 #define SYSCFG_EXTICR4_EXTI12_Pos               (0U)
9124 #define SYSCFG_EXTICR4_EXTI12_Msk               (0x7UL << SYSCFG_EXTICR4_EXTI12_Pos)            /*!< 0x00000007 */
9125 #define SYSCFG_EXTICR4_EXTI12                   SYSCFG_EXTICR4_EXTI12_Msk                       /*!< External Interrupt Line 12 configuration */
9126 #define SYSCFG_EXTICR4_EXTI13_Pos               (4U)
9127 #define SYSCFG_EXTICR4_EXTI13_Msk               (0x7UL << SYSCFG_EXTICR4_EXTI13_Pos)            /*!< 0x00000070 */
9128 #define SYSCFG_EXTICR4_EXTI13                   SYSCFG_EXTICR4_EXTI13_Msk                       /*!< External Interrupt Line 13 configuration */
9129 #define SYSCFG_EXTICR4_EXTI14_Pos               (8U)
9130 #define SYSCFG_EXTICR4_EXTI14_Msk               (0x7UL << SYSCFG_EXTICR4_EXTI14_Pos)            /*!< 0x00000700 */
9131 #define SYSCFG_EXTICR4_EXTI14                   SYSCFG_EXTICR4_EXTI14_Msk                       /*!< External Interrupt Line 14 configuration */
9132 #define SYSCFG_EXTICR4_EXTI15_Pos               (12U)
9133 #define SYSCFG_EXTICR4_EXTI15_Msk               (0x7UL << SYSCFG_EXTICR4_EXTI15_Pos)            /*!< 0x00007000 */
9134 #define SYSCFG_EXTICR4_EXTI15                   SYSCFG_EXTICR4_EXTI15_Msk                       /*!< External Interrupt Line 15 configuration */
9135 
9136 /**
9137   * @brief  External Interrupt Line 12 Source Input configuration
9138   */
9139 #define SYSCFG_EXTICR4_EXTI12_PA                (0x00000000U)   /*!< PA[12] pin */
9140 #define SYSCFG_EXTICR4_EXTI12_PB                (0x00000001U)   /*!< PB[12] pin */
9141 
9142 /**
9143   * @brief  External Interrupt Line 13 Source Input configuration
9144   */
9145 #define SYSCFG_EXTICR4_EXTI13_PA                (0x00000000U)   /*!< PA[13] pin */
9146 #define SYSCFG_EXTICR4_EXTI13_PB                (0x00000010U)   /*!< PB[13] pin */
9147 #define SYSCFG_EXTICR4_EXTI13_PC                (0x00000020U)   /*!< PC[13] pin */
9148 
9149 /**
9150   * @brief  External Interrupt Line 14 Source Input configuration
9151   */
9152 #define SYSCFG_EXTICR4_EXTI14_PA                (0x00000000U)   /*!< PA[14] pin */
9153 #define SYSCFG_EXTICR4_EXTI14_PB                (0x00000100U)   /*!< PB[14] pin */
9154 #define SYSCFG_EXTICR4_EXTI14_PC                (0x00000200U)   /*!< PC[14] pin */
9155 
9156 /**
9157   * @brief  External Interrupt Line 15 Source Input configuration
9158   */
9159 #define SYSCFG_EXTICR4_EXTI15_PA                (0x00000000U)   /*!< PA[15] pin */
9160 #define SYSCFG_EXTICR4_EXTI15_PB                (0x00001000U)   /*!< PB[15] pin */
9161 #define SYSCFG_EXTICR4_EXTI15_PC                (0x00002000U)   /*!< PC[15] pin */
9162 
9163 /*****************  Bit definition for SYSCFG_SCSR register  (SYSCFG SRAM control and status register) **********************************************************/
9164 #define SYSCFG_SCSR_SRAM2ER_Pos                 (0U)
9165 #define SYSCFG_SCSR_SRAM2ER_Msk                 (0x1UL << SYSCFG_SCSR_SRAM2ER_Pos)               /*!< 0x00000001 */
9166 #define SYSCFG_SCSR_SRAM2ER                     SYSCFG_SCSR_SRAM2ER_Msk                          /*!< SRAM2 Erase                                      */
9167 #define SYSCFG_SCSR_SRAMBSY_Pos                 (1U)
9168 #define SYSCFG_SCSR_SRAMBSY_Msk                 (0x1UL << SYSCFG_SCSR_SRAMBSY_Pos)              /*!< 0x00000002 */
9169 #define SYSCFG_SCSR_SRAMBSY                     SYSCFG_SCSR_SRAMBSY_Msk                         /*!< SRAM2 and SRAM1 busy by erase operation                    */
9170 #define SYSCFG_SCSR_PKASRAMBSY_Pos              (8U)
9171 #define SYSCFG_SCSR_PKASRAMBSY_Msk              (0x1UL << SYSCFG_SCSR_PKASRAMBSY_Pos)           /*!< 0x00000100 */
9172 #define SYSCFG_SCSR_PKASRAMBSY                  SYSCFG_SCSR_PKASRAMBSY_Msk                      /*!< PKA SRAM busy by erase operation                           */
9173 
9174 /*****************  Bit definition for SYSCFG_CFGR2 register  (SYSCFG configuration register 2) *****************************************************************/
9175 #define SYSCFG_CFGR2_CLL_Pos                    (0U)
9176 #define SYSCFG_CFGR2_CLL_Msk                    (0x1UL << SYSCFG_CFGR2_CLL_Pos)                 /*!< 0x00000001 */
9177 #define SYSCFG_CFGR2_CLL                        SYSCFG_CFGR2_CLL_Msk                            /*!< Cortex M4 LOCKUP (hardfault) output enable                 */
9178 #define SYSCFG_CFGR2_SPL_Pos                    (1U)
9179 #define SYSCFG_CFGR2_SPL_Msk                    (0x1UL << SYSCFG_CFGR2_SPL_Pos)                 /*!< 0x00000002 */
9180 #define SYSCFG_CFGR2_SPL                        SYSCFG_CFGR2_SPL_Msk                            /*!< SRAM2 Parity Lock                                          */
9181 #define SYSCFG_CFGR2_PVDL_Pos                   (2U)
9182 #define SYSCFG_CFGR2_PVDL_Msk                   (0x1UL << SYSCFG_CFGR2_PVDL_Pos)                /*!< 0x00000004 */
9183 #define SYSCFG_CFGR2_PVDL                       SYSCFG_CFGR2_PVDL_Msk                           /*!< PVD Lock                                                   */
9184 #define SYSCFG_CFGR2_ECCL_Pos                   (3U)
9185 #define SYSCFG_CFGR2_ECCL_Msk                   (0x1UL << SYSCFG_CFGR2_ECCL_Pos)                /*!< 0x00000008 */
9186 #define SYSCFG_CFGR2_ECCL                       SYSCFG_CFGR2_ECCL_Msk                           /*!< ECC Lock                                                   */
9187 #define SYSCFG_CFGR2_SPF_Pos                    (8U)
9188 #define SYSCFG_CFGR2_SPF_Msk                    (0x1UL << SYSCFG_CFGR2_SPF_Pos)                 /*!< 0x00000100 */
9189 #define SYSCFG_CFGR2_SPF                        SYSCFG_CFGR2_SPF_Msk                            /*!< SRAM2 Parity Lock                                          */
9190 
9191 /*****************  Bit definition for SYSCFG_SWPR register  (SYSCFG SRAM2 write protection register) ***********************************************************/
9192 #define SYSCFG_SWPR_PAGE0_Pos                   (0U)
9193 #define SYSCFG_SWPR_PAGE0_Msk                   (0x1UL << SYSCFG_SWPR_PAGE0_Pos)                /*!< 0x00000001 */
9194 #define SYSCFG_SWPR_PAGE0                       SYSCFG_SWPR_PAGE0_Msk                           /*!< SRAM2 Write protection page 0 (0x20008000 - 0x200083FF)    */
9195 #define SYSCFG_SWPR_PAGE1_Pos                   (1U)
9196 #define SYSCFG_SWPR_PAGE1_Msk                   (0x1UL << SYSCFG_SWPR_PAGE1_Pos)                /*!< 0x00000002 */
9197 #define SYSCFG_SWPR_PAGE1                       SYSCFG_SWPR_PAGE1_Msk                           /*!< SRAM2 Write protection page 1 (0x20008400 - 0x200087FF)    */
9198 #define SYSCFG_SWPR_PAGE2_Pos                   (2U)
9199 #define SYSCFG_SWPR_PAGE2_Msk                   (0x1UL << SYSCFG_SWPR_PAGE2_Pos)                /*!< 0x00000004 */
9200 #define SYSCFG_SWPR_PAGE2                       SYSCFG_SWPR_PAGE2_Msk                           /*!< SRAM2 Write protection page 2 (0x20008800 - 0x20008BFF)    */
9201 #define SYSCFG_SWPR_PAGE3_Pos                   (3U)
9202 #define SYSCFG_SWPR_PAGE3_Msk                   (0x1UL << SYSCFG_SWPR_PAGE3_Pos)                /*!< 0x00000008 */
9203 #define SYSCFG_SWPR_PAGE3                       SYSCFG_SWPR_PAGE3_Msk                           /*!< SRAM2 Write protection page 3 (0x20008C00 - 0x20008FFF)    */
9204 #define SYSCFG_SWPR_PAGE4_Pos                   (4U)
9205 #define SYSCFG_SWPR_PAGE4_Msk                   (0x1UL << SYSCFG_SWPR_PAGE4_Pos)                /*!< 0x00000010 */
9206 #define SYSCFG_SWPR_PAGE4                       SYSCFG_SWPR_PAGE4_Msk                           /*!< SRAM2 Write protection page 4 (0x20009000 - 0x200093FF)    */
9207 #define SYSCFG_SWPR_PAGE5_Pos                   (5U)
9208 #define SYSCFG_SWPR_PAGE5_Msk                   (0x1UL << SYSCFG_SWPR_PAGE5_Pos)                /*!< 0x00000020 */
9209 #define SYSCFG_SWPR_PAGE5                       SYSCFG_SWPR_PAGE5_Msk                           /*!< SRAM2 Write protection page 5 (0x20009400 - 0x200097FF)    */
9210 #define SYSCFG_SWPR_PAGE6_Pos                   (6U)
9211 #define SYSCFG_SWPR_PAGE6_Msk                   (0x1UL << SYSCFG_SWPR_PAGE6_Pos)                /*!< 0x00000040 */
9212 #define SYSCFG_SWPR_PAGE6                       SYSCFG_SWPR_PAGE6_Msk                           /*!< SRAM2 Write protection page 6 (0x20009800 - 0x20009BFF)    */
9213 #define SYSCFG_SWPR_PAGE7_Pos                   (7U)
9214 #define SYSCFG_SWPR_PAGE7_Msk                   (0x1UL << SYSCFG_SWPR_PAGE7_Pos)                /*!< 0x00000080 */
9215 #define SYSCFG_SWPR_PAGE7                       SYSCFG_SWPR_PAGE7_Msk                           /*!< SRAM2 Write protection page 7 (0x20009C00 - 0x20009FFF)    */
9216 #define SYSCFG_SWPR_PAGE8_Pos                   (8U)
9217 #define SYSCFG_SWPR_PAGE8_Msk                   (0x1UL << SYSCFG_SWPR_PAGE8_Pos)                /*!< 0x00000100 */
9218 #define SYSCFG_SWPR_PAGE8                       SYSCFG_SWPR_PAGE8_Msk                           /*!< SRAM2 Write protection page 8 (0x2000A000 - 0x2000A3FF)    */
9219 #define SYSCFG_SWPR_PAGE9_Pos                   (9U)
9220 #define SYSCFG_SWPR_PAGE9_Msk                   (0x1UL << SYSCFG_SWPR_PAGE9_Pos)                /*!< 0x00000200 */
9221 #define SYSCFG_SWPR_PAGE9                       SYSCFG_SWPR_PAGE9_Msk                           /*!< SRAM2 Write protection page 9 (0x2000A400 - 0x2000A7FF)    */
9222 #define SYSCFG_SWPR_PAGE10_Pos                  (10U)
9223 #define SYSCFG_SWPR_PAGE10_Msk                  (0x1UL << SYSCFG_SWPR_PAGE10_Pos)               /*!< 0x00000400 */
9224 #define SYSCFG_SWPR_PAGE10                      SYSCFG_SWPR_PAGE10_Msk                          /*!< SRAM2 Write protection page 10 (0x2000A800 - 0x2000ABFF)   */
9225 #define SYSCFG_SWPR_PAGE11_Pos                  (11U)
9226 #define SYSCFG_SWPR_PAGE11_Msk                  (0x1UL << SYSCFG_SWPR_PAGE11_Pos)               /*!< 0x00000800 */
9227 #define SYSCFG_SWPR_PAGE11                      SYSCFG_SWPR_PAGE11_Msk                          /*!< SRAM2 Write protection page 11 (0x2000AC00 - 0x2000AFFF)   */
9228 #define SYSCFG_SWPR_PAGE12_Pos                  (12U)
9229 #define SYSCFG_SWPR_PAGE12_Msk                  (0x1UL << SYSCFG_SWPR_PAGE12_Pos)               /*!< 0x00001000 */
9230 #define SYSCFG_SWPR_PAGE12                      SYSCFG_SWPR_PAGE12_Msk                          /*!< SRAM2 Write protection page 12 (0x2000B000 - 0x2000B3FF)   */
9231 #define SYSCFG_SWPR_PAGE13_Pos                  (13U)
9232 #define SYSCFG_SWPR_PAGE13_Msk                  (0x1UL << SYSCFG_SWPR_PAGE13_Pos)               /*!< 0x00002000 */
9233 #define SYSCFG_SWPR_PAGE13                      SYSCFG_SWPR_PAGE13_Msk                          /*!< SRAM2 Write protection page 13 (0x2000B400 - 0x2000B7FF)   */
9234 #define SYSCFG_SWPR_PAGE14_Pos                  (14U)
9235 #define SYSCFG_SWPR_PAGE14_Msk                  (0x1UL << SYSCFG_SWPR_PAGE14_Pos)               /*!< 0x00004000 */
9236 #define SYSCFG_SWPR_PAGE14                      SYSCFG_SWPR_PAGE14_Msk                          /*!< SRAM2 Write protection page 14 (0x2000B800 - 0x2000BBFF)   */
9237 #define SYSCFG_SWPR_PAGE15_Pos                  (15U)
9238 #define SYSCFG_SWPR_PAGE15_Msk                  (0x1UL << SYSCFG_SWPR_PAGE15_Pos)               /*!< 0x00008000 */
9239 #define SYSCFG_SWPR_PAGE15                      SYSCFG_SWPR_PAGE15_Msk                          /*!< SRAM2 Write protection page 15 (0x2000BC00 - 0x2000BFFF)   */
9240 #define SYSCFG_SWPR_PAGE16_Pos                  (16U)
9241 #define SYSCFG_SWPR_PAGE16_Msk                  (0x1UL << SYSCFG_SWPR_PAGE16_Pos)               /*!< 0x00010000 */
9242 #define SYSCFG_SWPR_PAGE16                      SYSCFG_SWPR_PAGE16_Msk                          /*!< SRAM2 Write protection page 16 (0x2000C000 - 0x2000C3FF)   */
9243 #define SYSCFG_SWPR_PAGE17_Pos                  (17U)
9244 #define SYSCFG_SWPR_PAGE17_Msk                  (0x1UL << SYSCFG_SWPR_PAGE17_Pos)               /*!< 0x00020000 */
9245 #define SYSCFG_SWPR_PAGE17                      SYSCFG_SWPR_PAGE17_Msk                          /*!< SRAM2 Write protection page 17 (0x2000C400 - 0x2000C7FF)   */
9246 #define SYSCFG_SWPR_PAGE18_Pos                  (18U)
9247 #define SYSCFG_SWPR_PAGE18_Msk                  (0x1UL << SYSCFG_SWPR_PAGE18_Pos)               /*!< 0x00040000 */
9248 #define SYSCFG_SWPR_PAGE18                      SYSCFG_SWPR_PAGE18_Msk                          /*!< SRAM2 Write protection page 18 (0x2000C800 - 0x2000CBFF)   */
9249 #define SYSCFG_SWPR_PAGE19_Pos                  (19U)
9250 #define SYSCFG_SWPR_PAGE19_Msk                  (0x1UL << SYSCFG_SWPR_PAGE19_Pos)               /*!< 0x00080000 */
9251 #define SYSCFG_SWPR_PAGE19                      SYSCFG_SWPR_PAGE19_Msk                          /*!< SRAM2 Write protection page 19 (0x2000CC00 - 0x2000CFFF)   */
9252 #define SYSCFG_SWPR_PAGE20_Pos                  (20U)
9253 #define SYSCFG_SWPR_PAGE20_Msk                  (0x1UL << SYSCFG_SWPR_PAGE20_Pos)               /*!< 0x00100000 */
9254 #define SYSCFG_SWPR_PAGE20                      SYSCFG_SWPR_PAGE20_Msk                          /*!< SRAM2 Write protection page 20 (0x2000D000 - 0x2000D3FF)   */
9255 #define SYSCFG_SWPR_PAGE21_Pos                  (21U)
9256 #define SYSCFG_SWPR_PAGE21_Msk                  (0x1UL << SYSCFG_SWPR_PAGE21_Pos)               /*!< 0x00200000 */
9257 #define SYSCFG_SWPR_PAGE21                      SYSCFG_SWPR_PAGE21_Msk                          /*!< SRAM2 Write protection page 21 (0x2000D400 - 0x2000D7FF)   */
9258 #define SYSCFG_SWPR_PAGE22_Pos                  (22U)
9259 #define SYSCFG_SWPR_PAGE22_Msk                  (0x1UL << SYSCFG_SWPR_PAGE22_Pos)               /*!< 0x00400000 */
9260 #define SYSCFG_SWPR_PAGE22                      SYSCFG_SWPR_PAGE22_Msk                          /*!< SRAM2 Write protection page 22 (0x2000D800 - 0x2000DBFF)   */
9261 #define SYSCFG_SWPR_PAGE23_Pos                  (23U)
9262 #define SYSCFG_SWPR_PAGE23_Msk                  (0x1UL << SYSCFG_SWPR_PAGE23_Pos)               /*!< 0x00800000 */
9263 #define SYSCFG_SWPR_PAGE23                      SYSCFG_SWPR_PAGE23_Msk                          /*!< SRAM2 Write protection page 23 (0x2000DC00 - 0x2000DFFF)   */
9264 #define SYSCFG_SWPR_PAGE24_Pos                  (24U)
9265 #define SYSCFG_SWPR_PAGE24_Msk                  (0x1UL << SYSCFG_SWPR_PAGE24_Pos)               /*!< 0x01000000 */
9266 #define SYSCFG_SWPR_PAGE24                      SYSCFG_SWPR_PAGE24_Msk                          /*!< SRAM2 Write protection page 24 (0x2000E000 - 0x2000E3FF)   */
9267 #define SYSCFG_SWPR_PAGE25_Pos                  (25U)
9268 #define SYSCFG_SWPR_PAGE25_Msk                  (0x1UL << SYSCFG_SWPR_PAGE25_Pos)               /*!< 0x02000000 */
9269 #define SYSCFG_SWPR_PAGE25                      SYSCFG_SWPR_PAGE25_Msk                          /*!< SRAM2 Write protection page 25 (0x2000E400 - 0x2000E7FF)   */
9270 #define SYSCFG_SWPR_PAGE26_Pos                  (26U)
9271 #define SYSCFG_SWPR_PAGE26_Msk                  (0x1UL << SYSCFG_SWPR_PAGE26_Pos)               /*!< 0x04000000 */
9272 #define SYSCFG_SWPR_PAGE26                      SYSCFG_SWPR_PAGE26_Msk                          /*!< SRAM2 Write protection page 26 (0x2000E800 - 0x2000EBFF)   */
9273 #define SYSCFG_SWPR_PAGE27_Pos                  (27U)
9274 #define SYSCFG_SWPR_PAGE27_Msk                  (0x1UL << SYSCFG_SWPR_PAGE27_Pos)               /*!< 0x08000000 */
9275 #define SYSCFG_SWPR_PAGE27                      SYSCFG_SWPR_PAGE27_Msk                          /*!< SRAM2 Write protection page 27 (0x2000EC00 - 0x2000EFFF)   */
9276 #define SYSCFG_SWPR_PAGE28_Pos                  (28U)
9277 #define SYSCFG_SWPR_PAGE28_Msk                  (0x1UL << SYSCFG_SWPR_PAGE28_Pos)               /*!< 0x10000000 */
9278 #define SYSCFG_SWPR_PAGE28                      SYSCFG_SWPR_PAGE28_Msk                          /*!< SRAM2 Write protection page 28 (0x2000F000 - 0x2000F3FF)   */
9279 #define SYSCFG_SWPR_PAGE29_Pos                  (29U)
9280 #define SYSCFG_SWPR_PAGE29_Msk                  (0x1UL << SYSCFG_SWPR_PAGE29_Pos)               /*!< 0x20000000 */
9281 #define SYSCFG_SWPR_PAGE29                      SYSCFG_SWPR_PAGE29_Msk                          /*!< SRAM2 Write protection page 29 (0x2000F400 - 0x2000F7FF)   */
9282 #define SYSCFG_SWPR_PAGE30_Pos                  (30U)
9283 #define SYSCFG_SWPR_PAGE30_Msk                  (0x1UL << SYSCFG_SWPR_PAGE30_Pos)               /*!< 0x40000000 */
9284 #define SYSCFG_SWPR_PAGE30                      SYSCFG_SWPR_PAGE30_Msk                          /*!< SRAM2 Write protection page 30 (0x2000F800 - 0x2000FBFF)   */
9285 #define SYSCFG_SWPR_PAGE31_Pos                  (31U)
9286 #define SYSCFG_SWPR_PAGE31_Msk                  (0x1UL << SYSCFG_SWPR_PAGE31_Pos)               /*!< 0x80000000 */
9287 #define SYSCFG_SWPR_PAGE31                      SYSCFG_SWPR_PAGE31_Msk                          /*!< SRAM2 Write protection page 31 (0x2000FC00 - 0x2000FFFF)   */
9288 
9289 /*****************  Bit definition for SYSCFG_SKR register  (SYSCFG SRAM2 key register) *************************************************************************/
9290 #define SYSCFG_SKR_KEY_Pos                      (0U)
9291 #define SYSCFG_SKR_KEY_Msk                      (0xFFUL << SYSCFG_SKR_KEY_Pos)                  /*!< 0x000000FF */
9292 #define SYSCFG_SKR_KEY                          SYSCFG_SKR_KEY_Msk                              /*!< SRAM2 write protection key for software erase              */
9293 
9294 /*****************  Bit definition for SYSCFG_IMR1 register (Interrupt masks control and status register on CPU1 - part 1) *******************************************/
9295 #define SYSCFG_IMR1_RTCSTAMPTAMPLSECSSIM_Pos    (0U)
9296 #define SYSCFG_IMR1_RTCSTAMPTAMPLSECSSIM_Msk    (0x1UL << SYSCFG_IMR1_RTCSTAMPTAMPLSECSSIM_Pos) /*!< 0x00000001 */
9297 #define SYSCFG_IMR1_RTCSTAMPTAMPLSECSSIM        SYSCFG_IMR1_RTCSTAMPTAMPLSECSSIM_Msk            /*!< Enabling of interrupt from RTCSTAMPTAMPLSECSS to CPU1             */
9298 #define SYSCFG_IMR1_RTCSSRUIM_Pos               (2U)
9299 #define SYSCFG_IMR1_RTCSSRUIM_Msk               (0x1UL << SYSCFG_IMR1_RTCSSRUIM_Pos)            /*!< 0x00000004 */
9300 #define SYSCFG_IMR1_RTCSSRUIM                   SYSCFG_IMR1_RTCSSRUIM_Msk                       /*!< Enabling of interrupt from RTC SSRU to CPU1                       */
9301 #define SYSCFG_IMR1_EXTI5IM_Pos                 (21U)
9302 #define SYSCFG_IMR1_EXTI5IM_Msk                 (0x1UL << SYSCFG_IMR1_EXTI5IM_Pos)            /*!< 0x00200000 */
9303 #define SYSCFG_IMR1_EXTI5IM                     SYSCFG_IMR1_EXTI5IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 5 to CPU1      */
9304 #define SYSCFG_IMR1_EXTI6IM_Pos                 (22U)
9305 #define SYSCFG_IMR1_EXTI6IM_Msk                 (0x1UL << SYSCFG_IMR1_EXTI6IM_Pos)            /*!< 0x00400000 */
9306 #define SYSCFG_IMR1_EXTI6IM                     SYSCFG_IMR1_EXTI6IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 6 to CPU1      */
9307 #define SYSCFG_IMR1_EXTI7IM_Pos                 (23U)
9308 #define SYSCFG_IMR1_EXTI7IM_Msk                 (0x1UL << SYSCFG_IMR1_EXTI7IM_Pos)            /*!< 0x00800000 */
9309 #define SYSCFG_IMR1_EXTI7IM                     SYSCFG_IMR1_EXTI7IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 7 to CPU1      */
9310 #define SYSCFG_IMR1_EXTI8IM_Pos                 (24U)
9311 #define SYSCFG_IMR1_EXTI8IM_Msk                 (0x1UL << SYSCFG_IMR1_EXTI8IM_Pos)            /*!< 0x01000000 */
9312 #define SYSCFG_IMR1_EXTI8IM                     SYSCFG_IMR1_EXTI8IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 8 to CPU1      */
9313 #define SYSCFG_IMR1_EXTI9IM_Pos                 (25U)
9314 #define SYSCFG_IMR1_EXTI9IM_Msk                 (0x1UL << SYSCFG_IMR1_EXTI9IM_Pos)            /*!< 0x02000000 */
9315 #define SYSCFG_IMR1_EXTI9IM                     SYSCFG_IMR1_EXTI9IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 9 to CPU1      */
9316 #define SYSCFG_IMR1_EXTI10IM_Pos                (26U)
9317 #define SYSCFG_IMR1_EXTI10IM_Msk                (0x1UL << SYSCFG_IMR1_EXTI10IM_Pos)           /*!< 0x04000000 */
9318 #define SYSCFG_IMR1_EXTI10IM                    SYSCFG_IMR1_EXTI10IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 10 to CPU1     */
9319 #define SYSCFG_IMR1_EXTI11IM_Pos                (27U)
9320 #define SYSCFG_IMR1_EXTI11IM_Msk                (0x1UL << SYSCFG_IMR1_EXTI11IM_Pos)           /*!< 0x08000000 */
9321 #define SYSCFG_IMR1_EXTI11IM                    SYSCFG_IMR1_EXTI11IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 11 to CPU1     */
9322 #define SYSCFG_IMR1_EXTI12IM_Pos                (28U)
9323 #define SYSCFG_IMR1_EXTI12IM_Msk                (0x1UL << SYSCFG_IMR1_EXTI12IM_Pos)           /*!< 0x10000000 */
9324 #define SYSCFG_IMR1_EXTI12IM                    SYSCFG_IMR1_EXTI12IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 12 to CPU1     */
9325 #define SYSCFG_IMR1_EXTI13IM_Pos                (29U)
9326 #define SYSCFG_IMR1_EXTI13IM_Msk                (0x1UL << SYSCFG_IMR1_EXTI13IM_Pos)           /*!< 0x20000000 */
9327 #define SYSCFG_IMR1_EXTI13IM                    SYSCFG_IMR1_EXTI13IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 13 to CPU1     */
9328 #define SYSCFG_IMR1_EXTI14IM_Pos                (30U)
9329 #define SYSCFG_IMR1_EXTI14IM_Msk                (0x1UL << SYSCFG_IMR1_EXTI14IM_Pos)           /*!< 0x40000000 */
9330 #define SYSCFG_IMR1_EXTI14IM                    SYSCFG_IMR1_EXTI14IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 14 to CPU1     */
9331 #define SYSCFG_IMR1_EXTI15IM_Pos                (31U)
9332 #define SYSCFG_IMR1_EXTI15IM_Msk                (0x1UL << SYSCFG_IMR1_EXTI15IM_Pos)           /*!< 0x80000000 */
9333 #define SYSCFG_IMR1_EXTI15IM                    SYSCFG_IMR1_EXTI15IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 15 to CPU1     */
9334 
9335 /*****************  Bit definition for SYSCFG_IMR2 register (Interrupt masks control and status register on CPU1 - part 2) *******************************************/
9336 #define SYSCFG_IMR2_PVM3IM_Pos                  (18U)
9337 #define SYSCFG_IMR2_PVM3IM_Msk                  (0x1UL << SYSCFG_IMR2_PVM3IM_Pos)             /*!< 0x00040000 */
9338 #define SYSCFG_IMR2_PVM3IM                      SYSCFG_IMR2_PVM3IM_Msk                        /*!< Enabling of interrupt from Power Voltage Monitoring 3 to CPU1     */
9339 #define SYSCFG_IMR2_PVDIM_Pos                   (20U)
9340 #define SYSCFG_IMR2_PVDIM_Msk                   (0x1UL << SYSCFG_IMR2_PVDIM_Pos)              /*!< 0x00100000 */
9341 #define SYSCFG_IMR2_PVDIM                       SYSCFG_IMR2_PVDIM_Msk                         /*!< Enabling of interrupt from Power Voltage Detector to CPU1         */
9342 
9343 /*****************  Bit definition for SYSCFG_C2IMR1 register (Interrupt masks control and status register on CPU2 - part 1) *******************************************/
9344 #define SYSCFG_C2IMR1_RTCSTAMPTAMPLSECSSIM_Pos  (0U)
9345 #define SYSCFG_C2IMR1_RTCSTAMPTAMPLSECSSIM_Msk  (0x1U << SYSCFG_C2IMR1_RTCSTAMPTAMPLSECSSIM_Pos)/*!< 0x00000001 */
9346 #define SYSCFG_C2IMR1_RTCSTAMPTAMPLSECSSIM      SYSCFG_C2IMR1_RTCSTAMPTAMPLSECSSIM_Msk          /* !< Enabling of interrupt from RTC TimeStamp, RTC Tampers                                                                                                      and LSE Clock Security System to CPU2                            */
9347 #define SYSCFG_C2IMR1_RTCALARMIM_Pos            (1U)
9348 #define SYSCFG_C2IMR1_RTCALARMIM_Msk            (0x1UL << SYSCFG_C2IMR1_RTCALARMIM_Pos)         /*!< 0x00000002 */
9349 #define SYSCFG_C2IMR1_RTCALARMIM                SYSCFG_C2IMR1_RTCALARMIM_Msk                    /*!< Enabling of interrupt from RTC Alarms to CPU2                    */
9350 #define SYSCFG_C2IMR1_RTCSSRUIM_Pos             (2U)
9351 #define SYSCFG_C2IMR1_RTCSSRUIM_Msk             (0x1UL << SYSCFG_C2IMR1_RTCSSRUIM_Pos)          /*!< 0x00000004 */
9352 #define SYSCFG_C2IMR1_RTCSSRUIM                 SYSCFG_C2IMR1_RTCSSRUIM_Msk                     /*!< Enabling of interrupt from RTC SSRU to CPU2                      */
9353 #define SYSCFG_C2IMR1_RTCWKUPIM_Pos             (3U)
9354 #define SYSCFG_C2IMR1_RTCWKUPIM_Msk             (0x1UL << SYSCFG_C2IMR1_RTCWKUPIM_Pos)          /*!< 0x00000008 */
9355 #define SYSCFG_C2IMR1_RTCWKUPIM                 SYSCFG_C2IMR1_RTCWKUPIM_Msk                     /*!< Enabling of interrupt from RTC Wakeup to CPU2                    */
9356 #define SYSCFG_C2IMR1_RCCIM_Pos                 (5U)
9357 #define SYSCFG_C2IMR1_RCCIM_Msk                 (0x1UL << SYSCFG_C2IMR1_RCCIM_Pos)              /*!< 0x00000020 */
9358 #define SYSCFG_C2IMR1_RCCIM                     SYSCFG_C2IMR1_RCCIM_Msk                         /*!< Enabling of interrupt from RCC to CPU2                           */
9359 #define SYSCFG_C2IMR1_FLASHIM_Pos               (6U)
9360 #define SYSCFG_C2IMR1_FLASHIM_Msk               (0x1UL << SYSCFG_C2IMR1_FLASHIM_Pos)            /*!< 0x00000040 */
9361 #define SYSCFG_C2IMR1_FLASHIM                   SYSCFG_C2IMR1_FLASHIM_Msk                       /*!< Enabling of interrupt from FLASH to CPU2                         */
9362 #define SYSCFG_C2IMR1_PKAIM_Pos                 (8U)
9363 #define SYSCFG_C2IMR1_PKAIM_Msk                 (0x1UL << SYSCFG_C2IMR1_PKAIM_Pos)              /*!< 0x00000040 */
9364 #define SYSCFG_C2IMR1_PKAIM                     SYSCFG_C2IMR1_PKAIM_Msk                         /*!< Enabling of interrupt from PKA to CPU2                           */
9365 #define SYSCFG_C2IMR1_AESIM_Pos                 (10U)
9366 #define SYSCFG_C2IMR1_AESIM_Msk                 (0x1UL << SYSCFG_C2IMR1_AESIM_Pos)              /*!< 0x00000800 */
9367 #define SYSCFG_C2IMR1_AESIM                     SYSCFG_C2IMR1_AESIM_Msk                         /*!< Enabling of interrupt from AES to CPU2                          */
9368 #define SYSCFG_C2IMR1_COMPIM_Pos                (11U)
9369 #define SYSCFG_C2IMR1_COMPIM_Msk                (0x1UL << SYSCFG_C2IMR1_COMPIM_Pos)             /*!< 0x00000800 */
9370 #define SYSCFG_C2IMR1_COMPIM                    SYSCFG_C2IMR1_COMPIM_Msk                        /*!< Enabling of interrupt from Comparator to CPU2                    */
9371 #define SYSCFG_C2IMR1_ADCIM_Pos                 (12U)
9372 #define SYSCFG_C2IMR1_ADCIM_Msk                 (0x1UL << SYSCFG_C2IMR1_ADCIM_Pos)              /*!< 0x00001000 */
9373 #define SYSCFG_C2IMR1_ADCIM                     SYSCFG_C2IMR1_ADCIM_Msk                         /*!< Enabling of interrupt from Analog Digital Converter to CPU2      */
9374 #define SYSCFG_C2IMR1_DACIM_Pos                 (13U)
9375 #define SYSCFG_C2IMR1_DACIM_Msk                 (0x1UL << SYSCFG_C2IMR1_DACIM_Pos)               /*!< 0x00002000 */
9376 #define SYSCFG_C2IMR1_DACIM                     SYSCFG_C2IMR1_DACIM_Msk                          /*!< Enabling of interrupt from Digital Analog Converter to CPU2     */
9377 #define SYSCFG_C2IMR1_EXTI0IM_Pos               (16U)
9378 #define SYSCFG_C2IMR1_EXTI0IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI0IM_Pos)            /*!< 0x00010000 */
9379 #define SYSCFG_C2IMR1_EXTI0IM                   SYSCFG_C2IMR1_EXTI0IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 0 to CPU2     */
9380 #define SYSCFG_C2IMR1_EXTI1IM_Pos               (17U)
9381 #define SYSCFG_C2IMR1_EXTI1IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI1IM_Pos)            /*!< 0x00020000 */
9382 #define SYSCFG_C2IMR1_EXTI1IM                   SYSCFG_C2IMR1_EXTI1IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 1 to CPU2     */
9383 #define SYSCFG_C2IMR1_EXTI2IM_Pos               (18U)
9384 #define SYSCFG_C2IMR1_EXTI2IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI2IM_Pos)            /*!< 0x00040000 */
9385 #define SYSCFG_C2IMR1_EXTI2IM                   SYSCFG_C2IMR1_EXTI2IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 2 to CPU2      */
9386 #define SYSCFG_C2IMR1_EXTI3IM_Pos               (19U)
9387 #define SYSCFG_C2IMR1_EXTI3IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI3IM_Pos)            /*!< 0x00080000 */
9388 #define SYSCFG_C2IMR1_EXTI3IM                   SYSCFG_C2IMR1_EXTI3IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 3 to CPU2      */
9389 #define SYSCFG_C2IMR1_EXTI4IM_Pos               (20U)
9390 #define SYSCFG_C2IMR1_EXTI4IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI4IM_Pos)            /*!< 0x00100000 */
9391 #define SYSCFG_C2IMR1_EXTI4IM                   SYSCFG_C2IMR1_EXTI4IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 4 to CPU2      */
9392 #define SYSCFG_C2IMR1_EXTI5IM_Pos               (21U)
9393 #define SYSCFG_C2IMR1_EXTI5IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI5IM_Pos)            /*!< 0x00200000 */
9394 #define SYSCFG_C2IMR1_EXTI5IM                   SYSCFG_C2IMR1_EXTI5IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 5 to CPU2      */
9395 #define SYSCFG_C2IMR1_EXTI6IM_Pos               (22U)
9396 #define SYSCFG_C2IMR1_EXTI6IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI6IM_Pos)            /*!< 0x00400000 */
9397 #define SYSCFG_C2IMR1_EXTI6IM                   SYSCFG_C2IMR1_EXTI6IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 6 to CPU2      */
9398 #define SYSCFG_C2IMR1_EXTI7IM_Pos               (23U)
9399 #define SYSCFG_C2IMR1_EXTI7IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI7IM_Pos)            /*!< 0x00800000 */
9400 #define SYSCFG_C2IMR1_EXTI7IM                   SYSCFG_C2IMR1_EXTI7IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 7 to CPU2      */
9401 #define SYSCFG_C2IMR1_EXTI8IM_Pos               (24U)
9402 #define SYSCFG_C2IMR1_EXTI8IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI8IM_Pos)            /*!< 0x01000000 */
9403 #define SYSCFG_C2IMR1_EXTI8IM                   SYSCFG_C2IMR1_EXTI8IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 8 to CPU2      */
9404 #define SYSCFG_C2IMR1_EXTI9IM_Pos               (25U)
9405 #define SYSCFG_C2IMR1_EXTI9IM_Msk               (0x1UL << SYSCFG_C2IMR1_EXTI9IM_Pos)            /*!< 0x02000000 */
9406 #define SYSCFG_C2IMR1_EXTI9IM                   SYSCFG_C2IMR1_EXTI9IM_Msk                       /*!< Enabling of interrupt from External Interrupt Line 9 to CPU2      */
9407 #define SYSCFG_C2IMR1_EXTI10IM_Pos              (26U)
9408 #define SYSCFG_C2IMR1_EXTI10IM_Msk              (0x1UL << SYSCFG_C2IMR1_EXTI10IM_Pos)           /*!< 0x04000000 */
9409 #define SYSCFG_C2IMR1_EXTI10IM                  SYSCFG_C2IMR1_EXTI10IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 10 to CPU2     */
9410 #define SYSCFG_C2IMR1_EXTI11IM_Pos              (27U)
9411 #define SYSCFG_C2IMR1_EXTI11IM_Msk              (0x1UL << SYSCFG_C2IMR1_EXTI11IM_Pos)           /*!< 0x08000000 */
9412 #define SYSCFG_C2IMR1_EXTI11IM                  SYSCFG_C2IMR1_EXTI11IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 11 to CPU2     */
9413 #define SYSCFG_C2IMR1_EXTI12IM_Pos              (28U)
9414 #define SYSCFG_C2IMR1_EXTI12IM_Msk              (0x1UL << SYSCFG_C2IMR1_EXTI12IM_Pos)           /*!< 0x10000000 */
9415 #define SYSCFG_C2IMR1_EXTI12IM                  SYSCFG_C2IMR1_EXTI12IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 12 to CPU2     */
9416 #define SYSCFG_C2IMR1_EXTI13IM_Pos              (29U)
9417 #define SYSCFG_C2IMR1_EXTI13IM_Msk              (0x1UL << SYSCFG_C2IMR1_EXTI13IM_Pos)           /*!< 0x20000000 */
9418 #define SYSCFG_C2IMR1_EXTI13IM                  SYSCFG_C2IMR1_EXTI13IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 13 to CPU2     */
9419 #define SYSCFG_C2IMR1_EXTI14IM_Pos              (30U)
9420 #define SYSCFG_C2IMR1_EXTI14IM_Msk              (0x1UL << SYSCFG_C2IMR1_EXTI14IM_Pos)           /*!< 0x40000000 */
9421 #define SYSCFG_C2IMR1_EXTI14IM                  SYSCFG_C2IMR1_EXTI14IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 14 to CPU2     */
9422 #define SYSCFG_C2IMR1_EXTI15IM_Pos              (31U)
9423 #define SYSCFG_C2IMR1_EXTI15IM_Msk              (0x1UL << SYSCFG_C2IMR1_EXTI15IM_Pos)           /*!< 0x80000000 */
9424 #define SYSCFG_C2IMR1_EXTI15IM                  SYSCFG_C2IMR1_EXTI15IM_Msk                      /*!< Enabling of interrupt from External Interrupt Line 15 to CPU2     */
9425 
9426 /*****************  Bit definition for SYSCFG_C2IMR2 register (Interrupt masks control and status register on CPU2 - part 2) *******************************************/
9427 #define SYSCFG_C2IMR2_DMA1CH1IM_Pos             (0U)
9428 #define SYSCFG_C2IMR2_DMA1CH1IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA1CH1IM_Pos)          /*!< 0x00000001 */
9429 #define SYSCFG_C2IMR2_DMA1CH1IM                 SYSCFG_C2IMR2_DMA1CH1IM_Msk                     /*!< Enabling of interrupt from DMA1 Channel 1 to CPU2                 */
9430 #define SYSCFG_C2IMR2_DMA1CH2IM_Pos             (1U)
9431 #define SYSCFG_C2IMR2_DMA1CH2IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA1CH2IM_Pos)          /*!< 0x00000002 */
9432 #define SYSCFG_C2IMR2_DMA1CH2IM                 SYSCFG_C2IMR2_DMA1CH2IM_Msk                     /*!< Enabling of interrupt from DMA1 Channel 2 to CPU2                 */
9433 #define SYSCFG_C2IMR2_DMA1CH3IM_Pos             (2U)
9434 #define SYSCFG_C2IMR2_DMA1CH3IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA1CH3IM_Pos)          /*!< 0x00000004 */
9435 #define SYSCFG_C2IMR2_DMA1CH3IM                 SYSCFG_C2IMR2_DMA1CH3IM_Msk                     /*!< Enabling of interrupt from DMA1 Channel 3 to CPU2                 */
9436 #define SYSCFG_C2IMR2_DMA1CH4IM_Pos             (3U)
9437 #define SYSCFG_C2IMR2_DMA1CH4IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA1CH4IM_Pos)          /*!< 0x00000008 */
9438 #define SYSCFG_C2IMR2_DMA1CH4IM                 SYSCFG_C2IMR2_DMA1CH4IM_Msk                     /*!< Enabling of interrupt from DMA1 Channel 4 to CPU2                 */
9439 #define SYSCFG_C2IMR2_DMA1CH5IM_Pos             (4U)
9440 #define SYSCFG_C2IMR2_DMA1CH5IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA1CH5IM_Pos)          /*!< 0x00000010 */
9441 #define SYSCFG_C2IMR2_DMA1CH5IM                 SYSCFG_C2IMR2_DMA1CH5IM_Msk                     /*!< Enabling of interrupt from DMA1 Channel 5 to CPU2                 */
9442 #define SYSCFG_C2IMR2_DMA1CH6IM_Pos             (5U)
9443 #define SYSCFG_C2IMR2_DMA1CH6IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA1CH6IM_Pos)          /*!< 0x00000020 */
9444 #define SYSCFG_C2IMR2_DMA1CH6IM                 SYSCFG_C2IMR2_DMA1CH6IM_Msk                     /*!< Enabling of interrupt from DMA1 Channel 6 to CPU2                 */
9445 #define SYSCFG_C2IMR2_DMA1CH7IM_Pos             (6U)
9446 #define SYSCFG_C2IMR2_DMA1CH7IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA1CH7IM_Pos)          /*!< 0x00000040 */
9447 #define SYSCFG_C2IMR2_DMA1CH7IM                 SYSCFG_C2IMR2_DMA1CH7IM_Msk                     /*!< Enabling of interrupt from DMA1 Channel 7 to CPU2                 */
9448 #define SYSCFG_C2IMR2_DMA2CH1IM_Pos             (8U)
9449 #define SYSCFG_C2IMR2_DMA2CH1IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA2CH1IM_Pos)          /*!< 0x00000100 */
9450 #define SYSCFG_C2IMR2_DMA2CH1IM                 SYSCFG_C2IMR2_DMA2CH1IM_Msk                     /*!< Enabling of interrupt from DMA2 Channel 1 to CPU2                 */
9451 #define SYSCFG_C2IMR2_DMA2CH2IM_Pos             (9U)
9452 #define SYSCFG_C2IMR2_DMA2CH2IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA2CH2IM_Pos)          /*!< 0x00000200 */
9453 #define SYSCFG_C2IMR2_DMA2CH2IM                 SYSCFG_C2IMR2_DMA2CH2IM_Msk                     /*!< Enabling of interrupt from DMA2 Channel 2 to CPU2                 */
9454 #define SYSCFG_C2IMR2_DMA2CH3IM_Pos             (10U)
9455 #define SYSCFG_C2IMR2_DMA2CH3IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA2CH3IM_Pos)          /*!< 0x00000400 */
9456 #define SYSCFG_C2IMR2_DMA2CH3IM                 SYSCFG_C2IMR2_DMA2CH3IM_Msk                     /*!< Enabling of interrupt from DMA2 Channel 3 to CPU2                 */
9457 #define SYSCFG_C2IMR2_DMA2CH4IM_Pos             (11U)
9458 #define SYSCFG_C2IMR2_DMA2CH4IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA2CH4IM_Pos)          /*!< 0x00000800 */
9459 #define SYSCFG_C2IMR2_DMA2CH4IM                 SYSCFG_C2IMR2_DMA2CH4IM_Msk                     /*!< Enabling of interrupt from DMA2 Channel 4 to CPU2                 */
9460 #define SYSCFG_C2IMR2_DMA2CH5IM_Pos             (12U)
9461 #define SYSCFG_C2IMR2_DMA2CH5IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA2CH5IM_Pos)          /*!< 0x00001000 */
9462 #define SYSCFG_C2IMR2_DMA2CH5IM                 SYSCFG_C2IMR2_DMA2CH5IM_Msk                     /*!< Enabling of interrupt from DMA2 Channel 5 to CPU2                 */
9463 #define SYSCFG_C2IMR2_DMA2CH6IM_Pos             (13U)
9464 #define SYSCFG_C2IMR2_DMA2CH6IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA2CH6IM_Pos)          /*!< 0x00002000 */
9465 #define SYSCFG_C2IMR2_DMA2CH6IM                 SYSCFG_C2IMR2_DMA2CH6IM_Msk                     /*!< Enabling of interrupt from DMA2 Channel 6 to CPU2                 */
9466 #define SYSCFG_C2IMR2_DMA2CH7IM_Pos             (14U)
9467 #define SYSCFG_C2IMR2_DMA2CH7IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMA2CH7IM_Pos)          /*!< 0x00004000 */
9468 #define SYSCFG_C2IMR2_DMA2CH7IM                 SYSCFG_C2IMR2_DMA2CH7IM_Msk                     /*!< Enabling of interrupt from DMA2 Channel 7 to CPU2                 */
9469 #define SYSCFG_C2IMR2_DMAMUX1IM_Pos             (15U)
9470 #define SYSCFG_C2IMR2_DMAMUX1IM_Msk             (0x1UL << SYSCFG_C2IMR2_DMAMUX1IM_Pos)          /*!< 0x00008000 */
9471 #define SYSCFG_C2IMR2_DMAMUX1IM                 SYSCFG_C2IMR2_DMAMUX1IM_Msk                     /*!< Enabling of interrupt from DMAMUX1 to CPU2                        */
9472 #define SYSCFG_C2IMR2_PVM3IM_Pos                (18U)
9473 #define SYSCFG_C2IMR2_PVM3IM_Msk                (0x1UL << SYSCFG_C2IMR2_PVM3IM_Pos)             /*!< 0x00040000 */
9474 #define SYSCFG_C2IMR2_PVM3IM                    SYSCFG_C2IMR2_PVM3IM_Msk                        /*!< Enabling of interrupt from Power Voltage Monitoring 3 to CPU2     */
9475 #define SYSCFG_C2IMR2_PVDIM_Pos                 (20U)
9476 #define SYSCFG_C2IMR2_PVDIM_Msk                 (0x1UL << SYSCFG_C2IMR2_PVDIM_Pos)              /*!< 0x00100000 */
9477 #define SYSCFG_C2IMR2_PVDIM                     SYSCFG_C2IMR2_PVDIM_Msk                         /*!< Enabling of interrupt from Power Voltage Detector to CPU2         */
9478 
9479 /**************************************  Bit definition for SYSCFG_RFDCR register (SYSCFG radio debug control register) ************************************************/
9480 #define SYSCFG_RFDCR_RFTBSEL_Pos                (0U)
9481 #define SYSCFG_RFDCR_RFTBSEL_Msk                (0x1UL << SYSCFG_RFDCR_RFTBSEL_Pos)             /*!< 0x00000001 */
9482 #define SYSCFG_RFDCR_RFTBSEL                    SYSCFG_RFDCR_RFTBSEL_Msk                        /*!< Radio debug test bus selection                                    */
9483 
9484 /******************************************************************************/
9485 /*                                                                            */
9486 /*                      Inter-integrated Circuit Interface (I2C)              */
9487 /*                                                                            */
9488 /******************************************************************************/
9489 /*******************  Bit definition for I2C_CR1 register  *******************/
9490 #define I2C_CR1_PE_Pos               (0U)
9491 #define I2C_CR1_PE_Msk               (0x1UL << I2C_CR1_PE_Pos)                 /*!< 0x00000001 */
9492 #define I2C_CR1_PE                   I2C_CR1_PE_Msk                            /*!< Peripheral enable */
9493 #define I2C_CR1_TXIE_Pos             (1U)
9494 #define I2C_CR1_TXIE_Msk             (0x1UL << I2C_CR1_TXIE_Pos)               /*!< 0x00000002 */
9495 #define I2C_CR1_TXIE                 I2C_CR1_TXIE_Msk                          /*!< TX interrupt enable */
9496 #define I2C_CR1_RXIE_Pos             (2U)
9497 #define I2C_CR1_RXIE_Msk             (0x1UL << I2C_CR1_RXIE_Pos)               /*!< 0x00000004 */
9498 #define I2C_CR1_RXIE                 I2C_CR1_RXIE_Msk                          /*!< RX interrupt enable */
9499 #define I2C_CR1_ADDRIE_Pos           (3U)
9500 #define I2C_CR1_ADDRIE_Msk           (0x1UL << I2C_CR1_ADDRIE_Pos)             /*!< 0x00000008 */
9501 #define I2C_CR1_ADDRIE               I2C_CR1_ADDRIE_Msk                        /*!< Address match interrupt enable */
9502 #define I2C_CR1_NACKIE_Pos           (4U)
9503 #define I2C_CR1_NACKIE_Msk           (0x1UL << I2C_CR1_NACKIE_Pos)             /*!< 0x00000010 */
9504 #define I2C_CR1_NACKIE               I2C_CR1_NACKIE_Msk                        /*!< NACK received interrupt enable */
9505 #define I2C_CR1_STOPIE_Pos           (5U)
9506 #define I2C_CR1_STOPIE_Msk           (0x1UL << I2C_CR1_STOPIE_Pos)             /*!< 0x00000020 */
9507 #define I2C_CR1_STOPIE               I2C_CR1_STOPIE_Msk                        /*!< STOP detection interrupt enable */
9508 #define I2C_CR1_TCIE_Pos             (6U)
9509 #define I2C_CR1_TCIE_Msk             (0x1UL << I2C_CR1_TCIE_Pos)               /*!< 0x00000040 */
9510 #define I2C_CR1_TCIE                 I2C_CR1_TCIE_Msk                          /*!< Transfer complete interrupt enable */
9511 #define I2C_CR1_ERRIE_Pos            (7U)
9512 #define I2C_CR1_ERRIE_Msk            (0x1UL << I2C_CR1_ERRIE_Pos)              /*!< 0x00000080 */
9513 #define I2C_CR1_ERRIE                I2C_CR1_ERRIE_Msk                         /*!< Errors interrupt enable */
9514 #define I2C_CR1_DNF_Pos              (8U)
9515 #define I2C_CR1_DNF_Msk              (0xFUL << I2C_CR1_DNF_Pos)                /*!< 0x00000F00 */
9516 #define I2C_CR1_DNF                  I2C_CR1_DNF_Msk                           /*!< Digital noise filter */
9517 #define I2C_CR1_ANFOFF_Pos           (12U)
9518 #define I2C_CR1_ANFOFF_Msk           (0x1UL << I2C_CR1_ANFOFF_Pos)             /*!< 0x00001000 */
9519 #define I2C_CR1_ANFOFF               I2C_CR1_ANFOFF_Msk                        /*!< Analog noise filter OFF */
9520 #define I2C_CR1_TXDMAEN_Pos          (14U)
9521 #define I2C_CR1_TXDMAEN_Msk          (0x1UL << I2C_CR1_TXDMAEN_Pos)            /*!< 0x00004000 */
9522 #define I2C_CR1_TXDMAEN              I2C_CR1_TXDMAEN_Msk                       /*!< DMA transmission requests enable */
9523 #define I2C_CR1_RXDMAEN_Pos          (15U)
9524 #define I2C_CR1_RXDMAEN_Msk          (0x1UL << I2C_CR1_RXDMAEN_Pos)            /*!< 0x00008000 */
9525 #define I2C_CR1_RXDMAEN              I2C_CR1_RXDMAEN_Msk                       /*!< DMA reception requests enable */
9526 #define I2C_CR1_SBC_Pos              (16U)
9527 #define I2C_CR1_SBC_Msk              (0x1UL << I2C_CR1_SBC_Pos)                /*!< 0x00010000 */
9528 #define I2C_CR1_SBC                  I2C_CR1_SBC_Msk                           /*!< Slave byte control */
9529 #define I2C_CR1_NOSTRETCH_Pos        (17U)
9530 #define I2C_CR1_NOSTRETCH_Msk        (0x1UL << I2C_CR1_NOSTRETCH_Pos)          /*!< 0x00020000 */
9531 #define I2C_CR1_NOSTRETCH            I2C_CR1_NOSTRETCH_Msk                     /*!< Clock stretching disable */
9532 #define I2C_CR1_WUPEN_Pos            (18U)
9533 #define I2C_CR1_WUPEN_Msk            (0x1UL << I2C_CR1_WUPEN_Pos)              /*!< 0x00040000 */
9534 #define I2C_CR1_WUPEN                I2C_CR1_WUPEN_Msk                         /*!< Wakeup from STOP enable */
9535 #define I2C_CR1_GCEN_Pos             (19U)
9536 #define I2C_CR1_GCEN_Msk             (0x1UL << I2C_CR1_GCEN_Pos)               /*!< 0x00080000 */
9537 #define I2C_CR1_GCEN                 I2C_CR1_GCEN_Msk                          /*!< General call enable */
9538 #define I2C_CR1_SMBHEN_Pos           (20U)
9539 #define I2C_CR1_SMBHEN_Msk           (0x1UL << I2C_CR1_SMBHEN_Pos)             /*!< 0x00100000 */
9540 #define I2C_CR1_SMBHEN               I2C_CR1_SMBHEN_Msk                        /*!< SMBus host address enable */
9541 #define I2C_CR1_SMBDEN_Pos           (21U)
9542 #define I2C_CR1_SMBDEN_Msk           (0x1UL << I2C_CR1_SMBDEN_Pos)             /*!< 0x00200000 */
9543 #define I2C_CR1_SMBDEN               I2C_CR1_SMBDEN_Msk                        /*!< SMBus device default address enable */
9544 #define I2C_CR1_ALERTEN_Pos          (22U)
9545 #define I2C_CR1_ALERTEN_Msk          (0x1UL << I2C_CR1_ALERTEN_Pos)            /*!< 0x00400000 */
9546 #define I2C_CR1_ALERTEN              I2C_CR1_ALERTEN_Msk                       /*!< SMBus alert enable */
9547 #define I2C_CR1_PECEN_Pos            (23U)
9548 #define I2C_CR1_PECEN_Msk            (0x1UL << I2C_CR1_PECEN_Pos)              /*!< 0x00800000 */
9549 #define I2C_CR1_PECEN                I2C_CR1_PECEN_Msk                         /*!< PEC enable */
9550 
9551 /******************  Bit definition for I2C_CR2 register  ********************/
9552 #define I2C_CR2_SADD_Pos             (0U)
9553 #define I2C_CR2_SADD_Msk             (0x3FFUL << I2C_CR2_SADD_Pos)             /*!< 0x000003FF */
9554 #define I2C_CR2_SADD                 I2C_CR2_SADD_Msk                          /*!< Slave address (master mode) */
9555 #define I2C_CR2_RD_WRN_Pos           (10U)
9556 #define I2C_CR2_RD_WRN_Msk           (0x1UL << I2C_CR2_RD_WRN_Pos)             /*!< 0x00000400 */
9557 #define I2C_CR2_RD_WRN               I2C_CR2_RD_WRN_Msk                        /*!< Transfer direction (master mode) */
9558 #define I2C_CR2_ADD10_Pos            (11U)
9559 #define I2C_CR2_ADD10_Msk            (0x1UL << I2C_CR2_ADD10_Pos)              /*!< 0x00000800 */
9560 #define I2C_CR2_ADD10                I2C_CR2_ADD10_Msk                         /*!< 10-bit addressing mode (master mode) */
9561 #define I2C_CR2_HEAD10R_Pos          (12U)
9562 #define I2C_CR2_HEAD10R_Msk          (0x1UL << I2C_CR2_HEAD10R_Pos)            /*!< 0x00001000 */
9563 #define I2C_CR2_HEAD10R              I2C_CR2_HEAD10R_Msk                       /*!< 10-bit address header only read direction (master mode) */
9564 #define I2C_CR2_START_Pos            (13U)
9565 #define I2C_CR2_START_Msk            (0x1UL << I2C_CR2_START_Pos)              /*!< 0x00002000 */
9566 #define I2C_CR2_START                I2C_CR2_START_Msk                         /*!< START generation */
9567 #define I2C_CR2_STOP_Pos             (14U)
9568 #define I2C_CR2_STOP_Msk             (0x1UL << I2C_CR2_STOP_Pos)               /*!< 0x00004000 */
9569 #define I2C_CR2_STOP                 I2C_CR2_STOP_Msk                          /*!< STOP generation (master mode) */
9570 #define I2C_CR2_NACK_Pos             (15U)
9571 #define I2C_CR2_NACK_Msk             (0x1UL << I2C_CR2_NACK_Pos)               /*!< 0x00008000 */
9572 #define I2C_CR2_NACK                 I2C_CR2_NACK_Msk                          /*!< NACK generation (slave mode) */
9573 #define I2C_CR2_NBYTES_Pos           (16U)
9574 #define I2C_CR2_NBYTES_Msk           (0xFFUL << I2C_CR2_NBYTES_Pos)            /*!< 0x00FF0000 */
9575 #define I2C_CR2_NBYTES               I2C_CR2_NBYTES_Msk                        /*!< Number of bytes */
9576 #define I2C_CR2_RELOAD_Pos           (24U)
9577 #define I2C_CR2_RELOAD_Msk           (0x1UL << I2C_CR2_RELOAD_Pos)             /*!< 0x01000000 */
9578 #define I2C_CR2_RELOAD               I2C_CR2_RELOAD_Msk                        /*!< NBYTES reload mode */
9579 #define I2C_CR2_AUTOEND_Pos          (25U)
9580 #define I2C_CR2_AUTOEND_Msk          (0x1UL << I2C_CR2_AUTOEND_Pos)            /*!< 0x02000000 */
9581 #define I2C_CR2_AUTOEND              I2C_CR2_AUTOEND_Msk                       /*!< Automatic end mode (master mode) */
9582 #define I2C_CR2_PECBYTE_Pos          (26U)
9583 #define I2C_CR2_PECBYTE_Msk          (0x1UL << I2C_CR2_PECBYTE_Pos)            /*!< 0x04000000 */
9584 #define I2C_CR2_PECBYTE              I2C_CR2_PECBYTE_Msk                       /*!< Packet error checking byte */
9585 
9586 /*******************  Bit definition for I2C_OAR1 register  ******************/
9587 #define I2C_OAR1_OA1_Pos             (0U)
9588 #define I2C_OAR1_OA1_Msk             (0x3FFUL << I2C_OAR1_OA1_Pos)             /*!< 0x000003FF */
9589 #define I2C_OAR1_OA1                 I2C_OAR1_OA1_Msk                          /*!< Interface own address 1 */
9590 #define I2C_OAR1_OA1MODE_Pos         (10U)
9591 #define I2C_OAR1_OA1MODE_Msk         (0x1UL << I2C_OAR1_OA1MODE_Pos)           /*!< 0x00000400 */
9592 #define I2C_OAR1_OA1MODE             I2C_OAR1_OA1MODE_Msk                      /*!< Own address 1 10-bit mode */
9593 #define I2C_OAR1_OA1EN_Pos           (15U)
9594 #define I2C_OAR1_OA1EN_Msk           (0x1UL << I2C_OAR1_OA1EN_Pos)             /*!< 0x00008000 */
9595 #define I2C_OAR1_OA1EN               I2C_OAR1_OA1EN_Msk                        /*!< Own address 1 enable */
9596 
9597 /*******************  Bit definition for I2C_OAR2 register  ******************/
9598 #define I2C_OAR2_OA2_Pos             (1U)
9599 #define I2C_OAR2_OA2_Msk             (0x7FUL << I2C_OAR2_OA2_Pos)              /*!< 0x000000FE */
9600 #define I2C_OAR2_OA2                 I2C_OAR2_OA2_Msk                          /*!< Interface own address 2 */
9601 #define I2C_OAR2_OA2MSK_Pos          (8U)
9602 #define I2C_OAR2_OA2MSK_Msk          (0x7UL << I2C_OAR2_OA2MSK_Pos)            /*!< 0x00000700 */
9603 #define I2C_OAR2_OA2MSK              I2C_OAR2_OA2MSK_Msk                       /*!< Own address 2 masks */
9604 #define I2C_OAR2_OA2NOMASK           (0x00000000UL)                            /*!< No mask                                        */
9605 #define I2C_OAR2_OA2MASK01_Pos       (8U)
9606 #define I2C_OAR2_OA2MASK01_Msk       (0x1UL << I2C_OAR2_OA2MASK01_Pos)         /*!< 0x00000100 */
9607 #define I2C_OAR2_OA2MASK01           I2C_OAR2_OA2MASK01_Msk                    /*!< OA2[1] is masked, Only OA2[7:2] are compared   */
9608 #define I2C_OAR2_OA2MASK02_Pos       (9U)
9609 #define I2C_OAR2_OA2MASK02_Msk       (0x1UL << I2C_OAR2_OA2MASK02_Pos)         /*!< 0x00000200 */
9610 #define I2C_OAR2_OA2MASK02           I2C_OAR2_OA2MASK02_Msk                    /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */
9611 #define I2C_OAR2_OA2MASK03_Pos       (8U)
9612 #define I2C_OAR2_OA2MASK03_Msk       (0x3UL << I2C_OAR2_OA2MASK03_Pos)         /*!< 0x00000300 */
9613 #define I2C_OAR2_OA2MASK03           I2C_OAR2_OA2MASK03_Msk                    /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */
9614 #define I2C_OAR2_OA2MASK04_Pos       (10U)
9615 #define I2C_OAR2_OA2MASK04_Msk       (0x1UL << I2C_OAR2_OA2MASK04_Pos)         /*!< 0x00000400 */
9616 #define I2C_OAR2_OA2MASK04           I2C_OAR2_OA2MASK04_Msk                    /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */
9617 #define I2C_OAR2_OA2MASK05_Pos       (8U)
9618 #define I2C_OAR2_OA2MASK05_Msk       (0x5UL << I2C_OAR2_OA2MASK05_Pos)         /*!< 0x00000500 */
9619 #define I2C_OAR2_OA2MASK05           I2C_OAR2_OA2MASK05_Msk                    /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */
9620 #define I2C_OAR2_OA2MASK06_Pos       (9U)
9621 #define I2C_OAR2_OA2MASK06_Msk       (0x3UL << I2C_OAR2_OA2MASK06_Pos)         /*!< 0x00000600 */
9622 #define I2C_OAR2_OA2MASK06           I2C_OAR2_OA2MASK06_Msk                    /*!< OA2[6:1] is masked, Only OA2[7] are compared   */
9623 #define I2C_OAR2_OA2MASK07_Pos       (8U)
9624 #define I2C_OAR2_OA2MASK07_Msk       (0x7UL << I2C_OAR2_OA2MASK07_Pos)         /*!< 0x00000700 */
9625 #define I2C_OAR2_OA2MASK07           I2C_OAR2_OA2MASK07_Msk                    /*!< OA2[7:1] is masked, No comparison is done      */
9626 #define I2C_OAR2_OA2EN_Pos           (15U)
9627 #define I2C_OAR2_OA2EN_Msk           (0x1UL << I2C_OAR2_OA2EN_Pos)             /*!< 0x00008000 */
9628 #define I2C_OAR2_OA2EN               I2C_OAR2_OA2EN_Msk                        /*!< Own address 2 enable */
9629 
9630 /*******************  Bit definition for I2C_TIMINGR register *******************/
9631 #define I2C_TIMINGR_SCLL_Pos         (0U)
9632 #define I2C_TIMINGR_SCLL_Msk         (0xFFUL << I2C_TIMINGR_SCLL_Pos)          /*!< 0x000000FF */
9633 #define I2C_TIMINGR_SCLL             I2C_TIMINGR_SCLL_Msk                      /*!< SCL low period (master mode) */
9634 #define I2C_TIMINGR_SCLH_Pos         (8U)
9635 #define I2C_TIMINGR_SCLH_Msk         (0xFFUL << I2C_TIMINGR_SCLH_Pos)          /*!< 0x0000FF00 */
9636 #define I2C_TIMINGR_SCLH             I2C_TIMINGR_SCLH_Msk                      /*!< SCL high period (master mode) */
9637 #define I2C_TIMINGR_SDADEL_Pos       (16U)
9638 #define I2C_TIMINGR_SDADEL_Msk       (0xFUL << I2C_TIMINGR_SDADEL_Pos)         /*!< 0x000F0000 */
9639 #define I2C_TIMINGR_SDADEL           I2C_TIMINGR_SDADEL_Msk                    /*!< Data hold time */
9640 #define I2C_TIMINGR_SCLDEL_Pos       (20U)
9641 #define I2C_TIMINGR_SCLDEL_Msk       (0xFUL << I2C_TIMINGR_SCLDEL_Pos)         /*!< 0x00F00000 */
9642 #define I2C_TIMINGR_SCLDEL           I2C_TIMINGR_SCLDEL_Msk                    /*!< Data setup time */
9643 #define I2C_TIMINGR_PRESC_Pos        (28U)
9644 #define I2C_TIMINGR_PRESC_Msk        (0xFUL << I2C_TIMINGR_PRESC_Pos)          /*!< 0xF0000000 */
9645 #define I2C_TIMINGR_PRESC            I2C_TIMINGR_PRESC_Msk                     /*!< Timings prescaler */
9646 
9647 /******************* Bit definition for I2C_TIMEOUTR register *******************/
9648 #define I2C_TIMEOUTR_TIMEOUTA_Pos    (0U)
9649 #define I2C_TIMEOUTR_TIMEOUTA_Msk    (0xFFFUL << I2C_TIMEOUTR_TIMEOUTA_Pos)    /*!< 0x00000FFF */
9650 #define I2C_TIMEOUTR_TIMEOUTA        I2C_TIMEOUTR_TIMEOUTA_Msk                 /*!< Bus timeout A */
9651 #define I2C_TIMEOUTR_TIDLE_Pos       (12U)
9652 #define I2C_TIMEOUTR_TIDLE_Msk       (0x1UL << I2C_TIMEOUTR_TIDLE_Pos)         /*!< 0x00001000 */
9653 #define I2C_TIMEOUTR_TIDLE           I2C_TIMEOUTR_TIDLE_Msk                    /*!< Idle clock timeout detection */
9654 #define I2C_TIMEOUTR_TIMOUTEN_Pos    (15U)
9655 #define I2C_TIMEOUTR_TIMOUTEN_Msk    (0x1UL << I2C_TIMEOUTR_TIMOUTEN_Pos)      /*!< 0x00008000 */
9656 #define I2C_TIMEOUTR_TIMOUTEN        I2C_TIMEOUTR_TIMOUTEN_Msk                 /*!< Clock timeout enable */
9657 #define I2C_TIMEOUTR_TIMEOUTB_Pos    (16U)
9658 #define I2C_TIMEOUTR_TIMEOUTB_Msk    (0xFFFUL << I2C_TIMEOUTR_TIMEOUTB_Pos)    /*!< 0x0FFF0000 */
9659 #define I2C_TIMEOUTR_TIMEOUTB        I2C_TIMEOUTR_TIMEOUTB_Msk                 /*!< Bus timeout B*/
9660 #define I2C_TIMEOUTR_TEXTEN_Pos      (31U)
9661 #define I2C_TIMEOUTR_TEXTEN_Msk      (0x1UL << I2C_TIMEOUTR_TEXTEN_Pos)        /*!< 0x80000000 */
9662 #define I2C_TIMEOUTR_TEXTEN          I2C_TIMEOUTR_TEXTEN_Msk                   /*!< Extended clock timeout enable */
9663 
9664 /******************  Bit definition for I2C_ISR register  *********************/
9665 #define I2C_ISR_TXE_Pos              (0U)
9666 #define I2C_ISR_TXE_Msk              (0x1UL << I2C_ISR_TXE_Pos)                /*!< 0x00000001 */
9667 #define I2C_ISR_TXE                  I2C_ISR_TXE_Msk                           /*!< Transmit data register empty */
9668 #define I2C_ISR_TXIS_Pos             (1U)
9669 #define I2C_ISR_TXIS_Msk             (0x1UL << I2C_ISR_TXIS_Pos)               /*!< 0x00000002 */
9670 #define I2C_ISR_TXIS                 I2C_ISR_TXIS_Msk                          /*!< Transmit interrupt status */
9671 #define I2C_ISR_RXNE_Pos             (2U)
9672 #define I2C_ISR_RXNE_Msk             (0x1UL << I2C_ISR_RXNE_Pos)               /*!< 0x00000004 */
9673 #define I2C_ISR_RXNE                 I2C_ISR_RXNE_Msk                          /*!< Receive data register not empty */
9674 #define I2C_ISR_ADDR_Pos             (3U)
9675 #define I2C_ISR_ADDR_Msk             (0x1UL << I2C_ISR_ADDR_Pos)               /*!< 0x00000008 */
9676 #define I2C_ISR_ADDR                 I2C_ISR_ADDR_Msk                          /*!< Address matched (slave mode)*/
9677 #define I2C_ISR_NACKF_Pos            (4U)
9678 #define I2C_ISR_NACKF_Msk            (0x1UL << I2C_ISR_NACKF_Pos)              /*!< 0x00000010 */
9679 #define I2C_ISR_NACKF                I2C_ISR_NACKF_Msk                         /*!< NACK received flag */
9680 #define I2C_ISR_STOPF_Pos            (5U)
9681 #define I2C_ISR_STOPF_Msk            (0x1UL << I2C_ISR_STOPF_Pos)              /*!< 0x00000020 */
9682 #define I2C_ISR_STOPF                I2C_ISR_STOPF_Msk                         /*!< STOP detection flag */
9683 #define I2C_ISR_TC_Pos               (6U)
9684 #define I2C_ISR_TC_Msk               (0x1UL << I2C_ISR_TC_Pos)                 /*!< 0x00000040 */
9685 #define I2C_ISR_TC                   I2C_ISR_TC_Msk                            /*!< Transfer complete (master mode) */
9686 #define I2C_ISR_TCR_Pos              (7U)
9687 #define I2C_ISR_TCR_Msk              (0x1UL << I2C_ISR_TCR_Pos)                /*!< 0x00000080 */
9688 #define I2C_ISR_TCR                  I2C_ISR_TCR_Msk                           /*!< Transfer complete reload */
9689 #define I2C_ISR_BERR_Pos             (8U)
9690 #define I2C_ISR_BERR_Msk             (0x1UL << I2C_ISR_BERR_Pos)               /*!< 0x00000100 */
9691 #define I2C_ISR_BERR                 I2C_ISR_BERR_Msk                          /*!< Bus error */
9692 #define I2C_ISR_ARLO_Pos             (9U)
9693 #define I2C_ISR_ARLO_Msk             (0x1UL << I2C_ISR_ARLO_Pos)               /*!< 0x00000200 */
9694 #define I2C_ISR_ARLO                 I2C_ISR_ARLO_Msk                          /*!< Arbitration lost */
9695 #define I2C_ISR_OVR_Pos              (10U)
9696 #define I2C_ISR_OVR_Msk              (0x1UL << I2C_ISR_OVR_Pos)                /*!< 0x00000400 */
9697 #define I2C_ISR_OVR                  I2C_ISR_OVR_Msk                           /*!< Overrun/Underrun */
9698 #define I2C_ISR_PECERR_Pos           (11U)
9699 #define I2C_ISR_PECERR_Msk           (0x1UL << I2C_ISR_PECERR_Pos)             /*!< 0x00000800 */
9700 #define I2C_ISR_PECERR               I2C_ISR_PECERR_Msk                        /*!< PEC error in reception */
9701 #define I2C_ISR_TIMEOUT_Pos          (12U)
9702 #define I2C_ISR_TIMEOUT_Msk          (0x1UL << I2C_ISR_TIMEOUT_Pos)            /*!< 0x00001000 */
9703 #define I2C_ISR_TIMEOUT              I2C_ISR_TIMEOUT_Msk                       /*!< Timeout or Tlow detection flag */
9704 #define I2C_ISR_ALERT_Pos            (13U)
9705 #define I2C_ISR_ALERT_Msk            (0x1UL << I2C_ISR_ALERT_Pos)              /*!< 0x00002000 */
9706 #define I2C_ISR_ALERT                I2C_ISR_ALERT_Msk                         /*!< SMBus alert */
9707 #define I2C_ISR_BUSY_Pos             (15U)
9708 #define I2C_ISR_BUSY_Msk             (0x1UL << I2C_ISR_BUSY_Pos)               /*!< 0x00008000 */
9709 #define I2C_ISR_BUSY                 I2C_ISR_BUSY_Msk                          /*!< Bus busy */
9710 #define I2C_ISR_DIR_Pos              (16U)
9711 #define I2C_ISR_DIR_Msk              (0x1UL << I2C_ISR_DIR_Pos)                /*!< 0x00010000 */
9712 #define I2C_ISR_DIR                  I2C_ISR_DIR_Msk                           /*!< Transfer direction (slave mode) */
9713 #define I2C_ISR_ADDCODE_Pos          (17U)
9714 #define I2C_ISR_ADDCODE_Msk          (0x7FUL << I2C_ISR_ADDCODE_Pos)           /*!< 0x00FE0000 */
9715 #define I2C_ISR_ADDCODE              I2C_ISR_ADDCODE_Msk                       /*!< Address match code (slave mode) */
9716 
9717 /******************  Bit definition for I2C_ICR register  *********************/
9718 #define I2C_ICR_ADDRCF_Pos           (3U)
9719 #define I2C_ICR_ADDRCF_Msk           (0x1UL << I2C_ICR_ADDRCF_Pos)             /*!< 0x00000008 */
9720 #define I2C_ICR_ADDRCF               I2C_ICR_ADDRCF_Msk                        /*!< Address matched clear flag */
9721 #define I2C_ICR_NACKCF_Pos           (4U)
9722 #define I2C_ICR_NACKCF_Msk           (0x1UL << I2C_ICR_NACKCF_Pos)             /*!< 0x00000010 */
9723 #define I2C_ICR_NACKCF               I2C_ICR_NACKCF_Msk                        /*!< NACK clear flag */
9724 #define I2C_ICR_STOPCF_Pos           (5U)
9725 #define I2C_ICR_STOPCF_Msk           (0x1UL << I2C_ICR_STOPCF_Pos)             /*!< 0x00000020 */
9726 #define I2C_ICR_STOPCF               I2C_ICR_STOPCF_Msk                        /*!< STOP detection clear flag */
9727 #define I2C_ICR_BERRCF_Pos           (8U)
9728 #define I2C_ICR_BERRCF_Msk           (0x1UL << I2C_ICR_BERRCF_Pos)             /*!< 0x00000100 */
9729 #define I2C_ICR_BERRCF               I2C_ICR_BERRCF_Msk                        /*!< Bus error clear flag */
9730 #define I2C_ICR_ARLOCF_Pos           (9U)
9731 #define I2C_ICR_ARLOCF_Msk           (0x1UL << I2C_ICR_ARLOCF_Pos)             /*!< 0x00000200 */
9732 #define I2C_ICR_ARLOCF               I2C_ICR_ARLOCF_Msk                        /*!< Arbitration lost clear flag */
9733 #define I2C_ICR_OVRCF_Pos            (10U)
9734 #define I2C_ICR_OVRCF_Msk            (0x1UL << I2C_ICR_OVRCF_Pos)              /*!< 0x00000400 */
9735 #define I2C_ICR_OVRCF                I2C_ICR_OVRCF_Msk                         /*!< Overrun/Underrun clear flag */
9736 #define I2C_ICR_PECCF_Pos            (11U)
9737 #define I2C_ICR_PECCF_Msk            (0x1UL << I2C_ICR_PECCF_Pos)              /*!< 0x00000800 */
9738 #define I2C_ICR_PECCF                I2C_ICR_PECCF_Msk                         /*!< PAC error clear flag */
9739 #define I2C_ICR_TIMOUTCF_Pos         (12U)
9740 #define I2C_ICR_TIMOUTCF_Msk         (0x1UL << I2C_ICR_TIMOUTCF_Pos)           /*!< 0x00001000 */
9741 #define I2C_ICR_TIMOUTCF             I2C_ICR_TIMOUTCF_Msk                      /*!< Timeout clear flag */
9742 #define I2C_ICR_ALERTCF_Pos          (13U)
9743 #define I2C_ICR_ALERTCF_Msk          (0x1UL << I2C_ICR_ALERTCF_Pos)            /*!< 0x00002000 */
9744 #define I2C_ICR_ALERTCF              I2C_ICR_ALERTCF_Msk                       /*!< Alert clear flag */
9745 
9746 /******************  Bit definition for I2C_PECR register  *********************/
9747 #define I2C_PECR_PEC_Pos             (0U)
9748 #define I2C_PECR_PEC_Msk             (0xFFUL << I2C_PECR_PEC_Pos)              /*!< 0x000000FF */
9749 #define I2C_PECR_PEC                 I2C_PECR_PEC_Msk                          /*!< PEC register */
9750 
9751 /******************  Bit definition for I2C_RXDR register  *********************/
9752 #define I2C_RXDR_RXDATA_Pos          (0U)
9753 #define I2C_RXDR_RXDATA_Msk          (0xFFUL << I2C_RXDR_RXDATA_Pos)           /*!< 0x000000FF */
9754 #define I2C_RXDR_RXDATA              I2C_RXDR_RXDATA_Msk                       /*!< 8-bit receive data */
9755 
9756 /******************  Bit definition for I2C_TXDR register  *********************/
9757 #define I2C_TXDR_TXDATA_Pos          (0U)
9758 #define I2C_TXDR_TXDATA_Msk          (0xFFUL << I2C_TXDR_TXDATA_Pos)           /*!< 0x000000FF */
9759 #define I2C_TXDR_TXDATA              I2C_TXDR_TXDATA_Msk                       /*!< 8-bit transmit data */
9760 
9761 /******************************************************************************/
9762 /*         Inter-Processor Communication Controller (IPCC)                    */
9763 /*                                                                            */
9764 /******************************************************************************/
9765 
9766 /**********************  Bit definition for IPCC_C1CR register  ***************/
9767 #define IPCC_C1CR_RXOIE_Pos      (0U)
9768 #define IPCC_C1CR_RXOIE_Msk      (0x1UL << IPCC_C1CR_RXOIE_Pos)                /*!< 0x00000001 */
9769 #define IPCC_C1CR_RXOIE          IPCC_C1CR_RXOIE_Msk                           /*!< Processor M4 Receive channel occupied interrupt enable */
9770 #define IPCC_C1CR_TXFIE_Pos      (16U)
9771 #define IPCC_C1CR_TXFIE_Msk      (0x1UL << IPCC_C1CR_TXFIE_Pos)                /*!< 0x00010000 */
9772 #define IPCC_C1CR_TXFIE          IPCC_C1CR_TXFIE_Msk                           /*!< Processor M4 Transmit channel free interrupt enable */
9773 
9774 /**********************  Bit definition for IPCC_C1MR register  **************/
9775 #define IPCC_C1MR_CH1OM_Pos      (0U)
9776 #define IPCC_C1MR_CH1OM_Msk      (0x1UL << IPCC_C1MR_CH1OM_Pos)                /*!< 0x00000001 */
9777 #define IPCC_C1MR_CH1OM          IPCC_C1MR_CH1OM_Msk                           /*!< M4 Channel1 occupied interrupt mask */
9778 #define IPCC_C1MR_CH2OM_Pos      (1U)
9779 #define IPCC_C1MR_CH2OM_Msk      (0x1UL << IPCC_C1MR_CH2OM_Pos)                /*!< 0x00000002 */
9780 #define IPCC_C1MR_CH2OM          IPCC_C1MR_CH2OM_Msk                           /*!< M4 Channel2 occupied interrupt mask */
9781 #define IPCC_C1MR_CH3OM_Pos      (2U)
9782 #define IPCC_C1MR_CH3OM_Msk      (0x1UL << IPCC_C1MR_CH3OM_Pos)                /*!< 0x00000004 */
9783 #define IPCC_C1MR_CH3OM          IPCC_C1MR_CH3OM_Msk                           /*!< M4 Channel3 occupied interrupt mask */
9784 #define IPCC_C1MR_CH4OM_Pos      (3U)
9785 #define IPCC_C1MR_CH4OM_Msk      (0x1UL << IPCC_C1MR_CH4OM_Pos)                /*!< 0x00000008 */
9786 #define IPCC_C1MR_CH4OM          IPCC_C1MR_CH4OM_Msk                           /*!< M4 Channel4 occupied interrupt mask */
9787 #define IPCC_C1MR_CH5OM_Pos      (4U)
9788 #define IPCC_C1MR_CH5OM_Msk      (0x1UL << IPCC_C1MR_CH5OM_Pos)                /*!< 0x00000010 */
9789 #define IPCC_C1MR_CH5OM          IPCC_C1MR_CH5OM_Msk                           /*!< M4 Channel5 occupied interrupt mask */
9790 #define IPCC_C1MR_CH6OM_Pos      (5U)
9791 #define IPCC_C1MR_CH6OM_Msk      (0x1UL << IPCC_C1MR_CH6OM_Pos)                /*!< 0x00000020 */
9792 #define IPCC_C1MR_CH6OM          IPCC_C1MR_CH6OM_Msk                           /*!< M4 Channel6 occupied interrupt mask */
9793 
9794 #define IPCC_C1MR_CH1FM_Pos      (16U)
9795 #define IPCC_C1MR_CH1FM_Msk      (0x1UL << IPCC_C1MR_CH1FM_Pos)                /*!< 0x00010000 */
9796 #define IPCC_C1MR_CH1FM          IPCC_C1MR_CH1FM_Msk                           /*!< M4 Transmit Channel1 free interrupt mask */
9797 #define IPCC_C1MR_CH2FM_Pos      (17U)
9798 #define IPCC_C1MR_CH2FM_Msk      (0x1UL << IPCC_C1MR_CH2FM_Pos)                /*!< 0x00020000 */
9799 #define IPCC_C1MR_CH2FM          IPCC_C1MR_CH2FM_Msk                           /*!< M4 Transmit Channel2 free interrupt mask */
9800 #define IPCC_C1MR_CH3FM_Pos      (18U)
9801 #define IPCC_C1MR_CH3FM_Msk      (0x1UL << IPCC_C1MR_CH3FM_Pos)                /*!< 0x00040000 */
9802 #define IPCC_C1MR_CH3FM          IPCC_C1MR_CH3FM_Msk                           /*!< M4 Transmit Channel3 free interrupt mask */
9803 #define IPCC_C1MR_CH4FM_Pos      (19U)
9804 #define IPCC_C1MR_CH4FM_Msk      (0x1UL << IPCC_C1MR_CH4FM_Pos)                /*!< 0x00080000 */
9805 #define IPCC_C1MR_CH4FM          IPCC_C1MR_CH4FM_Msk                           /*!< M4 Transmit Channel4 free interrupt mask */
9806 #define IPCC_C1MR_CH5FM_Pos      (20U)
9807 #define IPCC_C1MR_CH5FM_Msk      (0x1UL << IPCC_C1MR_CH5FM_Pos)                /*!< 0x00100000 */
9808 #define IPCC_C1MR_CH5FM          IPCC_C1MR_CH5FM_Msk                           /*!< M4 Transmit Channel5 free interrupt mask */
9809 #define IPCC_C1MR_CH6FM_Pos      (21U)
9810 #define IPCC_C1MR_CH6FM_Msk      (0x1UL << IPCC_C1MR_CH6FM_Pos)                /*!< 0x00200000 */
9811 #define IPCC_C1MR_CH6FM          IPCC_C1MR_CH6FM_Msk                           /*!< M4 Transmit Channel6 free interrupt mask */
9812 
9813 /**********************  Bit definition for IPCC_C1SCR register  ***************/
9814 #define IPCC_C1SCR_CH1C_Pos      (0U)
9815 #define IPCC_C1SCR_CH1C_Msk      (0x1UL << IPCC_C1SCR_CH1C_Pos)                /*!< 0x00000001 */
9816 #define IPCC_C1SCR_CH1C          IPCC_C1SCR_CH1C_Msk                           /*!< M4 receive Channel1 status clear */
9817 #define IPCC_C1SCR_CH2C_Pos      (1U)
9818 #define IPCC_C1SCR_CH2C_Msk      (0x1UL << IPCC_C1SCR_CH2C_Pos)                /*!< 0x00000002 */
9819 #define IPCC_C1SCR_CH2C          IPCC_C1SCR_CH2C_Msk                           /*!< M4 receive Channel2 status clear */
9820 #define IPCC_C1SCR_CH3C_Pos      (2U)
9821 #define IPCC_C1SCR_CH3C_Msk      (0x1UL << IPCC_C1SCR_CH3C_Pos)                /*!< 0x00000004 */
9822 #define IPCC_C1SCR_CH3C          IPCC_C1SCR_CH3C_Msk                           /*!< M4 receive Channel3 status clear */
9823 #define IPCC_C1SCR_CH4C_Pos      (3U)
9824 #define IPCC_C1SCR_CH4C_Msk      (0x1UL << IPCC_C1SCR_CH4C_Pos)                /*!< 0x00000008 */
9825 #define IPCC_C1SCR_CH4C          IPCC_C1SCR_CH4C_Msk                           /*!< M4 receive Channel4 status clear */
9826 #define IPCC_C1SCR_CH5C_Pos      (4U)
9827 #define IPCC_C1SCR_CH5C_Msk      (0x1UL << IPCC_C1SCR_CH5C_Pos)                /*!< 0x00000010 */
9828 #define IPCC_C1SCR_CH5C          IPCC_C1SCR_CH5C_Msk                           /*!< M4 receive Channel5 status clear */
9829 #define IPCC_C1SCR_CH6C_Pos      (5U)
9830 #define IPCC_C1SCR_CH6C_Msk      (0x1UL << IPCC_C1SCR_CH6C_Pos)                /*!< 0x00000020 */
9831 #define IPCC_C1SCR_CH6C          IPCC_C1SCR_CH6C_Msk                           /*!< M4 receive Channel6 status clear */
9832 
9833 #define IPCC_C1SCR_CH1S_Pos      (16U)
9834 #define IPCC_C1SCR_CH1S_Msk      (0x1UL << IPCC_C1SCR_CH1S_Pos)                /*!< 0x00010000 */
9835 #define IPCC_C1SCR_CH1S          IPCC_C1SCR_CH1S_Msk                           /*!< M4 transmit Channel1 status set */
9836 #define IPCC_C1SCR_CH2S_Pos      (17U)
9837 #define IPCC_C1SCR_CH2S_Msk      (0x1UL << IPCC_C1SCR_CH2S_Pos)                /*!< 0x00020000 */
9838 #define IPCC_C1SCR_CH2S          IPCC_C1SCR_CH2S_Msk                           /*!< M4 transmit Channel2 status set  */
9839 #define IPCC_C1SCR_CH3S_Pos      (18U)
9840 #define IPCC_C1SCR_CH3S_Msk      (0x1UL << IPCC_C1SCR_CH3S_Pos)                /*!< 0x00040000 */
9841 #define IPCC_C1SCR_CH3S          IPCC_C1SCR_CH3S_Msk                           /*!< M4 transmit Channel3 status set  */
9842 #define IPCC_C1SCR_CH4S_Pos      (19U)
9843 #define IPCC_C1SCR_CH4S_Msk      (0x1UL << IPCC_C1SCR_CH4S_Pos)                /*!< 0x00080000 */
9844 #define IPCC_C1SCR_CH4S          IPCC_C1SCR_CH4S_Msk                           /*!< M4 transmit Channel4 status set  */
9845 #define IPCC_C1SCR_CH5S_Pos      (20U)
9846 #define IPCC_C1SCR_CH5S_Msk      (0x1UL << IPCC_C1SCR_CH5S_Pos)                /*!< 0x00100000 */
9847 #define IPCC_C1SCR_CH5S          IPCC_C1SCR_CH5S_Msk                           /*!< M4 transmit Channel5 status set  */
9848 #define IPCC_C1SCR_CH6S_Pos      (21U)
9849 #define IPCC_C1SCR_CH6S_Msk      (0x1UL << IPCC_C1SCR_CH6S_Pos)                /*!< 0x00200000 */
9850 #define IPCC_C1SCR_CH6S          IPCC_C1SCR_CH6S_Msk                           /*!< M4 transmit Channel6 status set  */
9851 
9852 /**********************  Bit definition for IPCC_C1TOC2SR register  ***************/
9853 #define IPCC_C1TOC2SR_CH1F_Pos    (0U)
9854 #define IPCC_C1TOC2SR_CH1F_Msk    (0x1UL << IPCC_C1TOC2SR_CH1F_Pos)            /*!< 0x00000001 */
9855 #define IPCC_C1TOC2SR_CH1F        IPCC_C1TOC2SR_CH1F_Msk                       /*!< M4 transmit to M4 receive Channel1 status flag before masking */
9856 #define IPCC_C1TOC2SR_CH2F_Pos    (1U)
9857 #define IPCC_C1TOC2SR_CH2F_Msk    (0x1UL << IPCC_C1TOC2SR_CH2F_Pos)            /*!< 0x00000002 */
9858 #define IPCC_C1TOC2SR_CH2F        IPCC_C1TOC2SR_CH2F_Msk                       /*!< M4 transmit to M4 receive Channel2 status flag before masking */
9859 #define IPCC_C1TOC2SR_CH3F_Pos    (2U)
9860 #define IPCC_C1TOC2SR_CH3F_Msk    (0x1UL << IPCC_C1TOC2SR_CH3F_Pos)            /*!< 0x00000004 */
9861 #define IPCC_C1TOC2SR_CH3F        IPCC_C1TOC2SR_CH3F_Msk                       /*!< M4 transmit to M4 receive Channel3 status flag before masking */
9862 #define IPCC_C1TOC2SR_CH4F_Pos    (3U)
9863 #define IPCC_C1TOC2SR_CH4F_Msk    (0x1UL << IPCC_C1TOC2SR_CH4F_Pos)            /*!< 0x00000008 */
9864 #define IPCC_C1TOC2SR_CH4F        IPCC_C1TOC2SR_CH4F_Msk                       /*!< M4 transmit to M4 receive Channel4 status flag before masking */
9865 #define IPCC_C1TOC2SR_CH5F_Pos    (4U)
9866 #define IPCC_C1TOC2SR_CH5F_Msk    (0x1UL << IPCC_C1TOC2SR_CH5F_Pos)            /*!< 0x00000010 */
9867 #define IPCC_C1TOC2SR_CH5F        IPCC_C1TOC2SR_CH5F_Msk                       /*!< M4 transmit to M4 receive Channel5 status flag before masking */
9868 #define IPCC_C1TOC2SR_CH6F_Pos    (5U)
9869 #define IPCC_C1TOC2SR_CH6F_Msk    (0x1UL << IPCC_C1TOC2SR_CH6F_Pos)            /*!< 0x00000020 */
9870 #define IPCC_C1TOC2SR_CH6F        IPCC_C1TOC2SR_CH6F_Msk                       /*!< M4 transmit to M4 receive Channel6 status flag before masking */
9871 
9872 /**********************  Bit definition for IPCC_C2CR register  ***************/
9873 #define IPCC_C2CR_RXOIE_Pos      (0U)
9874 #define IPCC_C2CR_RXOIE_Msk      (0x1UL << IPCC_C2CR_RXOIE_Pos)                /*!< 0x00000001 */
9875 #define IPCC_C2CR_RXOIE          IPCC_C2CR_RXOIE_Msk                           /*!< Processor M0+ Receive channel occupied interrupt enable */
9876 #define IPCC_C2CR_TXFIE_Pos      (16U)
9877 #define IPCC_C2CR_TXFIE_Msk      (0x1UL << IPCC_C2CR_TXFIE_Pos)                /*!< 0x00010000 */
9878 #define IPCC_C2CR_TXFIE          IPCC_C2CR_TXFIE_Msk                           /*!< Processor M0+ Transmit channel free interrupt enable */
9879 
9880 /**********************  Bit definition for IPCC_C2MR register  ***************/
9881 #define IPCC_C2MR_CH1OM_Pos      (0U)
9882 #define IPCC_C2MR_CH1OM_Msk      (0x1UL << IPCC_C2MR_CH1OM_Pos)                /*!< 0x00000001 */
9883 #define IPCC_C2MR_CH1OM          IPCC_C2MR_CH1OM_Msk                           /*!< M0+ Channel1 occupied interrupt mask */
9884 #define IPCC_C2MR_CH2OM_Pos      (1U)
9885 #define IPCC_C2MR_CH2OM_Msk      (0x1UL << IPCC_C2MR_CH2OM_Pos)                /*!< 0x00000002 */
9886 #define IPCC_C2MR_CH2OM          IPCC_C2MR_CH2OM_Msk                           /*!< M0+ Channel2 occupied interrupt mask */
9887 #define IPCC_C2MR_CH3OM_Pos      (2U)
9888 #define IPCC_C2MR_CH3OM_Msk      (0x1UL << IPCC_C2MR_CH3OM_Pos)                /*!< 0x00000004 */
9889 #define IPCC_C2MR_CH3OM          IPCC_C2MR_CH3OM_Msk                           /*!< M0+ Channel3 occupied interrupt mask */
9890 #define IPCC_C2MR_CH4OM_Pos      (3U)
9891 #define IPCC_C2MR_CH4OM_Msk      (0x1UL << IPCC_C2MR_CH4OM_Pos)                /*!< 0x00000008 */
9892 #define IPCC_C2MR_CH4OM          IPCC_C2MR_CH4OM_Msk                           /*!< M0+ Channel4 occupied interrupt mask */
9893 #define IPCC_C2MR_CH5OM_Pos      (4U)
9894 #define IPCC_C2MR_CH5OM_Msk      (0x1UL << IPCC_C2MR_CH5OM_Pos)                /*!< 0x00000010 */
9895 #define IPCC_C2MR_CH5OM          IPCC_C2MR_CH5OM_Msk                           /*!< M0+ Channel5 occupied interrupt mask */
9896 #define IPCC_C2MR_CH6OM_Pos      (5U)
9897 #define IPCC_C2MR_CH6OM_Msk      (0x1UL << IPCC_C2MR_CH6OM_Pos)                /*!< 0x00000020 */
9898 #define IPCC_C2MR_CH6OM          IPCC_C2MR_CH6OM_Msk                           /*!< M0+ Channel6 occupied interrupt mask */
9899 
9900 #define IPCC_C2MR_CH1FM_Pos      (16U)
9901 #define IPCC_C2MR_CH1FM_Msk      (0x1UL << IPCC_C2MR_CH1FM_Pos)                /*!< 0x00010000 */
9902 #define IPCC_C2MR_CH1FM          IPCC_C2MR_CH1FM_Msk                           /*!< M0+ Transmit Channel1 free interrupt mask */
9903 #define IPCC_C2MR_CH2FM_Pos      (17U)
9904 #define IPCC_C2MR_CH2FM_Msk      (0x1UL << IPCC_C2MR_CH2FM_Pos)                /*!< 0x00020000 */
9905 #define IPCC_C2MR_CH2FM          IPCC_C2MR_CH2FM_Msk                           /*!< M0+ Transmit Channel2 free interrupt mask */
9906 #define IPCC_C2MR_CH3FM_Pos      (18U)
9907 #define IPCC_C2MR_CH3FM_Msk      (0x1UL << IPCC_C2MR_CH3FM_Pos)                /*!< 0x00040000 */
9908 #define IPCC_C2MR_CH3FM          IPCC_C2MR_CH3FM_Msk                           /*!< M0+ Transmit Channel3 free interrupt mask */
9909 #define IPCC_C2MR_CH4FM_Pos      (19U)
9910 #define IPCC_C2MR_CH4FM_Msk      (0x1UL << IPCC_C2MR_CH4FM_Pos)                /*!< 0x00080000 */
9911 #define IPCC_C2MR_CH4FM          IPCC_C2MR_CH4FM_Msk                           /*!< M0+ Transmit Channel4 free interrupt mask */
9912 #define IPCC_C2MR_CH5FM_Pos      (20U)
9913 #define IPCC_C2MR_CH5FM_Msk      (0x1UL << IPCC_C2MR_CH5FM_Pos)                /*!< 0x00100000 */
9914 #define IPCC_C2MR_CH5FM          IPCC_C2MR_CH5FM_Msk                           /*!< M0+ Transmit Channel5 free interrupt mask */
9915 #define IPCC_C2MR_CH6FM_Pos      (21U)
9916 #define IPCC_C2MR_CH6FM_Msk      (0x1UL << IPCC_C2MR_CH6FM_Pos)                /*!< 0x00200000 */
9917 #define IPCC_C2MR_CH6FM          IPCC_C2MR_CH6FM_Msk                           /*!< M0+ Transmit Channel6 free interrupt mask */
9918 
9919 /**********************  Bit definition for IPCC_C2SCR register  ***************/
9920 #define IPCC_C2SCR_CH1C_Pos      (0U)
9921 #define IPCC_C2SCR_CH1C_Msk      (0x1UL << IPCC_C2SCR_CH1C_Pos)                /*!< 0x00000001 */
9922 #define IPCC_C2SCR_CH1C          IPCC_C2SCR_CH1C_Msk                           /*!< M0+ receive Channel1 status clear */
9923 #define IPCC_C2SCR_CH2C_Pos      (1U)
9924 #define IPCC_C2SCR_CH2C_Msk      (0x1UL << IPCC_C2SCR_CH2C_Pos)                /*!< 0x00000002 */
9925 #define IPCC_C2SCR_CH2C          IPCC_C2SCR_CH2C_Msk                           /*!< M0+ receive Channel2 status clear */
9926 #define IPCC_C2SCR_CH3C_Pos      (2U)
9927 #define IPCC_C2SCR_CH3C_Msk      (0x1UL << IPCC_C2SCR_CH3C_Pos)                /*!< 0x00000004 */
9928 #define IPCC_C2SCR_CH3C          IPCC_C2SCR_CH3C_Msk                           /*!< M0+ receive Channel3 status clear */
9929 #define IPCC_C2SCR_CH4C_Pos      (3U)
9930 #define IPCC_C2SCR_CH4C_Msk      (0x1UL << IPCC_C2SCR_CH4C_Pos)                /*!< 0x00000008 */
9931 #define IPCC_C2SCR_CH4C          IPCC_C2SCR_CH4C_Msk                           /*!< M0+ receive Channel4 status clear */
9932 #define IPCC_C2SCR_CH5C_Pos      (4U)
9933 #define IPCC_C2SCR_CH5C_Msk      (0x1UL << IPCC_C2SCR_CH5C_Pos)                /*!< 0x00000010 */
9934 #define IPCC_C2SCR_CH5C          IPCC_C2SCR_CH5C_Msk                           /*!< M0+ receive Channel5 status clear */
9935 #define IPCC_C2SCR_CH6C_Pos      (5U)
9936 #define IPCC_C2SCR_CH6C_Msk      (0x1UL << IPCC_C2SCR_CH6C_Pos)                /*!< 0x00000020 */
9937 #define IPCC_C2SCR_CH6C          IPCC_C2SCR_CH6C_Msk                           /*!< M0+ receive Channel6 status clear */
9938 
9939 #define IPCC_C2SCR_CH1S_Pos      (16U)
9940 #define IPCC_C2SCR_CH1S_Msk      (0x1UL << IPCC_C2SCR_CH1S_Pos)                /*!< 0x00010000 */
9941 #define IPCC_C2SCR_CH1S          IPCC_C2SCR_CH1S_Msk                           /*!< M0+ transmit Channel1 status set  */
9942 #define IPCC_C2SCR_CH2S_Pos      (17U)
9943 #define IPCC_C2SCR_CH2S_Msk      (0x1UL << IPCC_C2SCR_CH2S_Pos)                /*!< 0x00020000 */
9944 #define IPCC_C2SCR_CH2S          IPCC_C2SCR_CH2S_Msk                           /*!< M0+ transmit Channel2 status set  */
9945 #define IPCC_C2SCR_CH3S_Pos      (18U)
9946 #define IPCC_C2SCR_CH3S_Msk      (0x1UL << IPCC_C2SCR_CH3S_Pos)                /*!< 0x00040000 */
9947 #define IPCC_C2SCR_CH3S          IPCC_C2SCR_CH3S_Msk                           /*!< M0+ transmit Channel3 status set  */
9948 #define IPCC_C2SCR_CH4S_Pos      (19U)
9949 #define IPCC_C2SCR_CH4S_Msk      (0x1UL << IPCC_C2SCR_CH4S_Pos)                /*!< 0x00080000 */
9950 #define IPCC_C2SCR_CH4S          IPCC_C2SCR_CH4S_Msk                           /*!< M0+ transmit Channel4 status set  */
9951 #define IPCC_C2SCR_CH5S_Pos      (20U)
9952 #define IPCC_C2SCR_CH5S_Msk      (0x1UL << IPCC_C2SCR_CH5S_Pos)                /*!< 0x00100000 */
9953 #define IPCC_C2SCR_CH5S          IPCC_C2SCR_CH5S_Msk                           /*!< M0+ transmit Channel5 status set  */
9954 #define IPCC_C2SCR_CH6S_Pos      (21U)
9955 #define IPCC_C2SCR_CH6S_Msk      (0x1UL << IPCC_C2SCR_CH6S_Pos)                /*!< 0x00200000 */
9956 #define IPCC_C2SCR_CH6S          IPCC_C2SCR_CH6S_Msk                           /*!< M0+ transmit Channel6 status set  */
9957 
9958 /**********************  Bit definition for IPCC_C2TOC1SR register  ***************/
9959 #define IPCC_C2TOC1SR_CH1F_Pos    (0U)
9960 #define IPCC_C2TOC1SR_CH1F_Msk    (0x1UL << IPCC_C2TOC1SR_CH1F_Pos)            /*!< 0x00000001 */
9961 #define IPCC_C2TOC1SR_CH1F        IPCC_C2TOC1SR_CH1F_Msk                       /*!< M0+ transmit to M0 receive Channel1 status flag before masking */
9962 #define IPCC_C2TOC1SR_CH2F_Pos    (1U)
9963 #define IPCC_C2TOC1SR_CH2F_Msk    (0x1UL << IPCC_C2TOC1SR_CH2F_Pos)            /*!< 0x00000002 */
9964 #define IPCC_C2TOC1SR_CH2F        IPCC_C2TOC1SR_CH2F_Msk                       /*!< M0+ transmit to M0 receive Channel2 status flag before masking */
9965 #define IPCC_C2TOC1SR_CH3F_Pos    (2U)
9966 #define IPCC_C2TOC1SR_CH3F_Msk    (0x1UL << IPCC_C2TOC1SR_CH3F_Pos)            /*!< 0x00000004 */
9967 #define IPCC_C2TOC1SR_CH3F        IPCC_C2TOC1SR_CH3F_Msk                       /*!< M0+ transmit to M0 receive Channel3 status flag before masking */
9968 #define IPCC_C2TOC1SR_CH4F_Pos    (3U)
9969 #define IPCC_C2TOC1SR_CH4F_Msk    (0x1UL << IPCC_C2TOC1SR_CH4F_Pos)            /*!< 0x00000008 */
9970 #define IPCC_C2TOC1SR_CH4F        IPCC_C2TOC1SR_CH4F_Msk                       /*!< M0+ transmit to M0 receive Channel4 status flag before masking */
9971 #define IPCC_C2TOC1SR_CH5F_Pos    (4U)
9972 #define IPCC_C2TOC1SR_CH5F_Msk    (0x1UL << IPCC_C2TOC1SR_CH5F_Pos)            /*!< 0x00000010 */
9973 #define IPCC_C2TOC1SR_CH5F        IPCC_C2TOC1SR_CH5F_Msk                       /*!< M0+ transmit to M0 receive Channel5 status flag before masking */
9974 #define IPCC_C2TOC1SR_CH6F_Pos    (5U)
9975 #define IPCC_C2TOC1SR_CH6F_Msk    (0x1UL << IPCC_C2TOC1SR_CH6F_Pos)            /*!< 0x00000020 */
9976 #define IPCC_C2TOC1SR_CH6F        IPCC_C2TOC1SR_CH6F_Msk                       /*!< M0+ transmit to M0 receive Channel6 status flag before masking */
9977 
9978 /**********************  Bit definition for IPCC_C1CR register  ***************/
9979 #define IPCC_CR_RXOIE_Pos         IPCC_C1CR_RXOIE_Pos
9980 #define IPCC_CR_RXOIE_Msk         IPCC_C1CR_RXOIE_Msk
9981 #define IPCC_CR_RXOIE             IPCC_C1CR_RXOIE
9982 #define IPCC_CR_TXFIE_Pos         IPCC_C1CR_TXFIE_Pos
9983 #define IPCC_CR_TXFIE_Msk         IPCC_C1CR_TXFIE_Msk
9984 #define IPCC_CR_TXFIE             IPCC_C1CR_TXFIE
9985 
9986 /**********************  Bit definition for IPCC_C1MR register  **************/
9987 #define IPCC_MR_CH1OM_Pos         IPCC_C1MR_CH1OM_Pos
9988 #define IPCC_MR_CH1OM_Msk         IPCC_C1MR_CH1OM_Msk
9989 #define IPCC_MR_CH1OM             IPCC_C1MR_CH1OM
9990 #define IPCC_MR_CH2OM_Pos         IPCC_C1MR_CH2OM_Pos
9991 #define IPCC_MR_CH2OM_Msk         IPCC_C1MR_CH2OM_Msk
9992 #define IPCC_MR_CH2OM             IPCC_C1MR_CH2OM
9993 #define IPCC_MR_CH3OM_Pos         IPCC_C1MR_CH3OM_Pos
9994 #define IPCC_MR_CH3OM_Msk         IPCC_C1MR_CH3OM_Msk
9995 #define IPCC_MR_CH3OM             IPCC_C1MR_CH3OM
9996 #define IPCC_MR_CH4OM_Pos         IPCC_C1MR_CH4OM_Pos
9997 #define IPCC_MR_CH4OM_Msk         IPCC_C1MR_CH4OM_Msk
9998 #define IPCC_MR_CH4OM             IPCC_C1MR_CH4OM
9999 #define IPCC_MR_CH5OM_Pos         IPCC_C1MR_CH5OM_Pos
10000 #define IPCC_MR_CH5OM_Msk         IPCC_C1MR_CH5OM_Msk
10001 #define IPCC_MR_CH5OM             IPCC_C1MR_CH5OM
10002 #define IPCC_MR_CH6OM_Pos         IPCC_C1MR_CH6OM_Pos
10003 #define IPCC_MR_CH6OM_Msk         IPCC_C1MR_CH6OM_Msk
10004 #define IPCC_MR_CH6OM             IPCC_C1MR_CH6OM
10005 
10006 #define IPCC_MR_CH1FM_Pos         IPCC_C1MR_CH1FM_Pos
10007 #define IPCC_MR_CH1FM_Msk         IPCC_C1MR_CH1FM_Msk
10008 #define IPCC_MR_CH1FM             IPCC_C1MR_CH1FM
10009 #define IPCC_MR_CH2FM_Pos         IPCC_C1MR_CH2FM_Pos
10010 #define IPCC_MR_CH2FM_Msk         IPCC_C1MR_CH2FM_Msk
10011 #define IPCC_MR_CH2FM             IPCC_C1MR_CH2FM
10012 #define IPCC_MR_CH3FM_Pos         IPCC_C1MR_CH3FM_Pos
10013 #define IPCC_MR_CH3FM_Msk         IPCC_C1MR_CH3FM_Msk
10014 #define IPCC_MR_CH3FM             IPCC_C1MR_CH3FM
10015 #define IPCC_MR_CH4FM_Pos         IPCC_C1MR_CH4FM_Pos
10016 #define IPCC_MR_CH4FM_Msk         IPCC_C1MR_CH4FM_Msk
10017 #define IPCC_MR_CH4FM             IPCC_C1MR_CH4FM
10018 #define IPCC_MR_CH5FM_Pos         IPCC_C1MR_CH5FM_Pos
10019 #define IPCC_MR_CH5FM_Msk         IPCC_C1MR_CH5FM_Msk
10020 #define IPCC_MR_CH5FM             IPCC_C1MR_CH5FM
10021 #define IPCC_MR_CH6FM_Pos         IPCC_C1MR_CH6FM_Pos
10022 #define IPCC_MR_CH6FM_Msk         IPCC_C1MR_CH6FM_Msk
10023 #define IPCC_MR_CH6FM             IPCC_C1MR_CH6FM
10024 
10025 /**********************  Bit definition for IPCC_C1SCR register  ***************/
10026 #define IPCC_SCR_CH1C_Pos         IPCC_C1SCR_CH1C_Pos
10027 #define IPCC_SCR_CH1C_Msk         IPCC_C1SCR_CH1C_Msk
10028 #define IPCC_SCR_CH1C             IPCC_C1SCR_CH1C
10029 #define IPCC_SCR_CH2C_Pos         IPCC_C1SCR_CH2C_Pos
10030 #define IPCC_SCR_CH2C_Msk         IPCC_C1SCR_CH2C_Msk
10031 #define IPCC_SCR_CH2C             IPCC_C1SCR_CH2C
10032 #define IPCC_SCR_CH3C_Pos         IPCC_C1SCR_CH3C_Pos
10033 #define IPCC_SCR_CH3C_Msk         IPCC_C1SCR_CH3C_Msk
10034 #define IPCC_SCR_CH3C             IPCC_C1SCR_CH3C
10035 #define IPCC_SCR_CH4C_Pos         IPCC_C1SCR_CH4C_Pos
10036 #define IPCC_SCR_CH4C_Msk         IPCC_C1SCR_CH4C_Msk
10037 #define IPCC_SCR_CH4C             IPCC_C1SCR_CH4C
10038 #define IPCC_SCR_CH5C_Pos         IPCC_C1SCR_CH5C_Pos
10039 #define IPCC_SCR_CH5C_Msk         IPCC_C1SCR_CH5C_Msk
10040 #define IPCC_SCR_CH5C             IPCC_C1SCR_CH5C
10041 #define IPCC_SCR_CH6C_Pos         IPCC_C1SCR_CH6C_Pos
10042 #define IPCC_SCR_CH6C_Msk         IPCC_C1SCR_CH6C_Msk
10043 #define IPCC_SCR_CH6C             IPCC_C1SCR_CH6C
10044 
10045 #define IPCC_SCR_CH1S_Pos         IPCC_C1SCR_CH1S_Pos
10046 #define IPCC_SCR_CH1S_Msk         IPCC_C1SCR_CH1S_Msk
10047 #define IPCC_SCR_CH1S             IPCC_C1SCR_CH1S
10048 #define IPCC_SCR_CH2S_Pos         IPCC_C1SCR_CH2S_Pos
10049 #define IPCC_SCR_CH2S_Msk         IPCC_C1SCR_CH2S_Msk
10050 #define IPCC_SCR_CH2S             IPCC_C1SCR_CH2S
10051 #define IPCC_SCR_CH3S_Pos         IPCC_C1SCR_CH3S_Pos
10052 #define IPCC_SCR_CH3S_Msk         IPCC_C1SCR_CH3S_Msk
10053 #define IPCC_SCR_CH3S             IPCC_C1SCR_CH3S
10054 #define IPCC_SCR_CH4S_Pos         IPCC_C1SCR_CH4S_Pos
10055 #define IPCC_SCR_CH4S_Msk         IPCC_C1SCR_CH4S_Msk
10056 #define IPCC_SCR_CH4S             IPCC_C1SCR_CH4S
10057 #define IPCC_SCR_CH5S_Pos         IPCC_C1SCR_CH5S_Pos
10058 #define IPCC_SCR_CH5S_Msk         IPCC_C1SCR_CH5S_Msk
10059 #define IPCC_SCR_CH5S             IPCC_C1SCR_CH5S
10060 #define IPCC_SCR_CH6S_Pos         IPCC_C1SCR_CH6S_Pos
10061 #define IPCC_SCR_CH6S_Msk         IPCC_C1SCR_CH6S_Msk
10062 #define IPCC_SCR_CH6S             IPCC_C1SCR_CH6S
10063 
10064 /**********************  Bit definition for IPCC_C1TOC2SR register  ***************/
10065 #define IPCC_SR_CH1F_Pos          IPCC_C1TOC2SR_CH1F_Pos
10066 #define IPCC_SR_CH1F_Msk          IPCC_C1TOC2SR_CH1F_Msk
10067 #define IPCC_SR_CH1F              IPCC_C1TOC2SR_CH1F
10068 #define IPCC_SR_CH2F_Pos          IPCC_C1TOC2SR_CH2F_Pos
10069 #define IPCC_SR_CH2F_Msk          IPCC_C1TOC2SR_CH2F_Msk
10070 #define IPCC_SR_CH2F              IPCC_C1TOC2SR_CH2F
10071 #define IPCC_SR_CH3F_Pos          IPCC_C1TOC2SR_CH3F_Pos
10072 #define IPCC_SR_CH3F_Msk          IPCC_C1TOC2SR_CH3F_Msk
10073 #define IPCC_SR_CH3F              IPCC_C1TOC2SR_CH3F
10074 #define IPCC_SR_CH4F_Pos          IPCC_C1TOC2SR_CH4F_Pos
10075 #define IPCC_SR_CH4F_Msk          IPCC_C1TOC2SR_CH4F_Msk
10076 #define IPCC_SR_CH4F              IPCC_C1TOC2SR_CH4F
10077 #define IPCC_SR_CH5F_Pos          IPCC_C1TOC2SR_CH5F_Pos
10078 #define IPCC_SR_CH5F_Msk          IPCC_C1TOC2SR_CH5F_Msk
10079 #define IPCC_SR_CH5F              IPCC_C1TOC2SR_CH5F
10080 #define IPCC_SR_CH6F_Pos          IPCC_C1TOC2SR_CH6F_Pos
10081 #define IPCC_SR_CH6F_Msk          IPCC_C1TOC2SR_CH6F_Msk
10082 #define IPCC_SR_CH6F              IPCC_C1TOC2SR_CH6F
10083 
10084 /******************** Number of IPCC channels ******************************/
10085 #define IPCC_CHANNEL_NUMBER       6U
10086 
10087 
10088 /******************************************************************************/
10089 /*                                                                            */
10090 /*                        Independent WATCHDOG (IWDG)                         */
10091 /*                                                                            */
10092 /******************************************************************************/
10093 /*******************  Bit definition for IWDG_KR register  ********************/
10094 #define IWDG_KR_KEY_Pos      (0U)
10095 #define IWDG_KR_KEY_Msk      (0xFFFFUL << IWDG_KR_KEY_Pos)                     /*!< 0x0000FFFF */
10096 #define IWDG_KR_KEY          IWDG_KR_KEY_Msk                                   /*!<Key value (write only, read 0000h)  */
10097 
10098 /*******************  Bit definition for IWDG_PR register  ********************/
10099 #define IWDG_PR_PR_Pos       (0U)
10100 #define IWDG_PR_PR_Msk       (0x7UL << IWDG_PR_PR_Pos)                         /*!< 0x00000007 */
10101 #define IWDG_PR_PR           IWDG_PR_PR_Msk                                    /*!<PR[2:0] (Prescaler divider)         */
10102 #define IWDG_PR_PR_0         (0x1UL << IWDG_PR_PR_Pos)                         /*!< 0x00000001 */
10103 #define IWDG_PR_PR_1         (0x2UL << IWDG_PR_PR_Pos)                         /*!< 0x00000002 */
10104 #define IWDG_PR_PR_2         (0x4UL << IWDG_PR_PR_Pos)                         /*!< 0x00000004 */
10105 
10106 /*******************  Bit definition for IWDG_RLR register  *******************/
10107 #define IWDG_RLR_RL_Pos      (0U)
10108 #define IWDG_RLR_RL_Msk      (0xFFFUL << IWDG_RLR_RL_Pos)                      /*!< 0x00000FFF */
10109 #define IWDG_RLR_RL          IWDG_RLR_RL_Msk                                   /*!<Watchdog counter reload value        */
10110 
10111 /*******************  Bit definition for IWDG_SR register  ********************/
10112 #define IWDG_SR_PVU_Pos      (0U)
10113 #define IWDG_SR_PVU_Msk      (0x1UL << IWDG_SR_PVU_Pos)                        /*!< 0x00000001 */
10114 #define IWDG_SR_PVU          IWDG_SR_PVU_Msk                                   /*!< Watchdog prescaler value update */
10115 #define IWDG_SR_RVU_Pos      (1U)
10116 #define IWDG_SR_RVU_Msk      (0x1UL << IWDG_SR_RVU_Pos)                        /*!< 0x00000002 */
10117 #define IWDG_SR_RVU          IWDG_SR_RVU_Msk                                   /*!< Watchdog counter reload value update */
10118 #define IWDG_SR_WVU_Pos      (2U)
10119 #define IWDG_SR_WVU_Msk      (0x1UL << IWDG_SR_WVU_Pos)                        /*!< 0x00000004 */
10120 #define IWDG_SR_WVU          IWDG_SR_WVU_Msk                                   /*!< Watchdog counter window value update */
10121 
10122 /*******************  Bit definition for IWDG_KR register  ********************/
10123 #define IWDG_WINR_WIN_Pos    (0U)
10124 #define IWDG_WINR_WIN_Msk    (0xFFFUL << IWDG_WINR_WIN_Pos)                    /*!< 0x00000FFF */
10125 #define IWDG_WINR_WIN        IWDG_WINR_WIN_Msk                                 /*!< Watchdog counter window value */
10126 
10127 /******************************************************************************/
10128 /*                                                                            */
10129 /*                                 VREFBUF                                    */
10130 /*                                                                            */
10131 /******************************************************************************/
10132 /*******************  Bit definition for VREFBUF_CSR register  ****************/
10133 #define VREFBUF_CSR_ENVR_Pos    (0U)
10134 #define VREFBUF_CSR_ENVR_Msk    (0x1UL << VREFBUF_CSR_ENVR_Pos)                /*!< 0x00000001 */
10135 #define VREFBUF_CSR_ENVR        VREFBUF_CSR_ENVR_Msk                           /*!<Voltage reference buffer enable */
10136 #define VREFBUF_CSR_HIZ_Pos     (1U)
10137 #define VREFBUF_CSR_HIZ_Msk     (0x1UL << VREFBUF_CSR_HIZ_Pos)                 /*!< 0x00000002 */
10138 #define VREFBUF_CSR_HIZ         VREFBUF_CSR_HIZ_Msk                            /*!<High impedance mode             */
10139 #define VREFBUF_CSR_VRS_Pos     (2U)
10140 #define VREFBUF_CSR_VRS_Msk     (0x1UL << VREFBUF_CSR_VRS_Pos)                 /*!< 0x00000004 */
10141 #define VREFBUF_CSR_VRS         VREFBUF_CSR_VRS_Msk                            /*!<Voltage reference buffer ready  */
10142 #define VREFBUF_CSR_VRR_Pos     (3U)
10143 #define VREFBUF_CSR_VRR_Msk     (0x1UL << VREFBUF_CSR_VRR_Pos)                 /*!< 0x00000008 */
10144 #define VREFBUF_CSR_VRR         VREFBUF_CSR_VRR_Msk                            /*!<Voltage reference scale         */
10145 
10146 /*******************  Bit definition for VREFBUF_CCR register  ******************/
10147 #define VREFBUF_CCR_TRIM_Pos    (0U)
10148 #define VREFBUF_CCR_TRIM_Msk    (0x3FUL << VREFBUF_CCR_TRIM_Pos)               /*!< 0x0000003F */
10149 #define VREFBUF_CCR_TRIM        VREFBUF_CCR_TRIM_Msk                           /*!<TRIM[5:0] bits (Trimming code)  */
10150 
10151 /******************************************************************************/
10152 /*                                                                            */
10153 /*                            Window WATCHDOG                                 */
10154 /*                                                                            */
10155 /******************************************************************************/
10156 /*******************  Bit definition for WWDG_CR register  ********************/
10157 #define WWDG_CR_T_Pos           (0U)
10158 #define WWDG_CR_T_Msk           (0x7FUL << WWDG_CR_T_Pos)                      /*!< 0x0000007F */
10159 #define WWDG_CR_T               WWDG_CR_T_Msk                                  /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */
10160 #define WWDG_CR_T_0             (0x01UL << WWDG_CR_T_Pos)                      /*!< 0x00000001 */
10161 #define WWDG_CR_T_1             (0x02UL << WWDG_CR_T_Pos)                      /*!< 0x00000002 */
10162 #define WWDG_CR_T_2             (0x04UL << WWDG_CR_T_Pos)                      /*!< 0x00000004 */
10163 #define WWDG_CR_T_3             (0x08UL << WWDG_CR_T_Pos)                      /*!< 0x00000008 */
10164 #define WWDG_CR_T_4             (0x10UL << WWDG_CR_T_Pos)                      /*!< 0x00000010 */
10165 #define WWDG_CR_T_5             (0x20UL << WWDG_CR_T_Pos)                      /*!< 0x00000020 */
10166 #define WWDG_CR_T_6             (0x40UL << WWDG_CR_T_Pos)                      /*!< 0x00000040 */
10167 
10168 #define WWDG_CR_WDGA_Pos        (7U)
10169 #define WWDG_CR_WDGA_Msk        (0x1UL << WWDG_CR_WDGA_Pos)                    /*!< 0x00000080 */
10170 #define WWDG_CR_WDGA            WWDG_CR_WDGA_Msk                               /*!<Activation bit */
10171 
10172 /*******************  Bit definition for WWDG_CFR register  *******************/
10173 #define WWDG_CFR_W_Pos          (0U)
10174 #define WWDG_CFR_W_Msk          (0x7FUL << WWDG_CFR_W_Pos)                     /*!< 0x0000007F */
10175 #define WWDG_CFR_W              WWDG_CFR_W_Msk                                 /*!<W[6:0] bits (7-bit window value) */
10176 #define WWDG_CFR_W_0            (0x01UL << WWDG_CFR_W_Pos)                     /*!< 0x00000001 */
10177 #define WWDG_CFR_W_1            (0x02UL << WWDG_CFR_W_Pos)                     /*!< 0x00000002 */
10178 #define WWDG_CFR_W_2            (0x04UL << WWDG_CFR_W_Pos)                     /*!< 0x00000004 */
10179 #define WWDG_CFR_W_3            (0x08UL << WWDG_CFR_W_Pos)                     /*!< 0x00000008 */
10180 #define WWDG_CFR_W_4            (0x10UL << WWDG_CFR_W_Pos)                     /*!< 0x00000010 */
10181 #define WWDG_CFR_W_5            (0x20UL << WWDG_CFR_W_Pos)                     /*!< 0x00000020 */
10182 #define WWDG_CFR_W_6            (0x40UL << WWDG_CFR_W_Pos)                     /*!< 0x00000040 */
10183 
10184 #define WWDG_CFR_EWI_Pos        (9U)
10185 #define WWDG_CFR_EWI_Msk        (0x1UL << WWDG_CFR_EWI_Pos)                    /*!< 0x00000200 */
10186 #define WWDG_CFR_EWI            WWDG_CFR_EWI_Msk                               /*!<Early Wakeup Interrupt */
10187 
10188 #define WWDG_CFR_WDGTB_Pos      (11U)
10189 #define WWDG_CFR_WDGTB_Msk      (0x7UL << WWDG_CFR_WDGTB_Pos)                  /*!< 0x00003800 */
10190 #define WWDG_CFR_WDGTB          WWDG_CFR_WDGTB_Msk                             /*!<WDGTB[2:0] bits (Timer Base) */
10191 #define WWDG_CFR_WDGTB_0        (0x1UL << WWDG_CFR_WDGTB_Pos)                  /*!< 0x00000800 */
10192 #define WWDG_CFR_WDGTB_1        (0x2UL << WWDG_CFR_WDGTB_Pos)                  /*!< 0x00001000 */
10193 #define WWDG_CFR_WDGTB_2        (0x4UL << WWDG_CFR_WDGTB_Pos)                  /*!< 0x00002000 */
10194 
10195 /*******************  Bit definition for WWDG_SR register  ********************/
10196 #define WWDG_SR_EWIF_Pos        (0U)
10197 #define WWDG_SR_EWIF_Msk        (0x1UL << WWDG_SR_EWIF_Pos)                    /*!< 0x00000001 */
10198 #define WWDG_SR_EWIF            WWDG_SR_EWIF_Msk                               /*!<Early Wakeup Interrupt Flag */
10199 
10200 
10201 #if defined(CORE_CM0PLUS)
10202 #else
10203 /******************************************************************************/
10204 /*                                                                            */
10205 /*                                Debug MCU                                   */
10206 /*                                                                            */
10207 /******************************************************************************/
10208 /********************  Bit definition for DBGMCU_IDCODE register  *************/
10209 #define DBGMCU_IDCODE_DEV_ID_Pos                          (0U)
10210 #define DBGMCU_IDCODE_DEV_ID_Msk                          (0xFFFUL << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */
10211 #define DBGMCU_IDCODE_DEV_ID                              DBGMCU_IDCODE_DEV_ID_Msk
10212 #define DBGMCU_IDCODE_REV_ID_Pos                          (16U)
10213 #define DBGMCU_IDCODE_REV_ID_Msk                          (0xFFFFUL << DBGMCU_IDCODE_REV_ID_Pos)/*!< 0xFFFF0000 */
10214 #define DBGMCU_IDCODE_REV_ID                              DBGMCU_IDCODE_REV_ID_Msk
10215 
10216 /********************  Bit definition for DBGMCU_CR register  *****************/
10217 #define DBGMCU_CR_DBG_SLEEP_Pos                           (0U)
10218 #define DBGMCU_CR_DBG_SLEEP_Msk                           (0x1UL << DBGMCU_CR_DBG_SLEEP_Pos)  /*!< 0x00000001 */
10219 #define DBGMCU_CR_DBG_SLEEP                               DBGMCU_CR_DBG_SLEEP_Msk
10220 #define DBGMCU_CR_DBG_STOP_Pos                            (1U)
10221 #define DBGMCU_CR_DBG_STOP_Msk                            (0x1UL << DBGMCU_CR_DBG_STOP_Pos)   /*!< 0x00000002 */
10222 #define DBGMCU_CR_DBG_STOP                                DBGMCU_CR_DBG_STOP_Msk
10223 #define DBGMCU_CR_DBG_STANDBY_Pos                         (2U)
10224 #define DBGMCU_CR_DBG_STANDBY_Msk                         (0x1UL << DBGMCU_CR_DBG_STANDBY_Pos)/*!< 0x00000004 */
10225 #define DBGMCU_CR_DBG_STANDBY                             DBGMCU_CR_DBG_STANDBY_Msk
10226 
10227 /********************  Bit definition for DBGMCU_APB1FZR1 register  ***********/
10228 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos                 (0U)
10229 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk                 (0x1UL << DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos)  /*!< 0x00000001 */
10230 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP                     DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk
10231 #define DBGMCU_APB1FZR1_DBG_RTC_STOP_Pos                  (10U)
10232 #define DBGMCU_APB1FZR1_DBG_RTC_STOP_Msk                  (0x1UL << DBGMCU_APB1FZR1_DBG_RTC_STOP_Pos)   /*!< 0x00000400 */
10233 #define DBGMCU_APB1FZR1_DBG_RTC_STOP                      DBGMCU_APB1FZR1_DBG_RTC_STOP_Msk
10234 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos                 (11U)
10235 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk                 (0x1UL << DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos)  /*!< 0x00000800 */
10236 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP                     DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk
10237 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos                 (12U)
10238 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk                 (0x1UL << DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos)  /*!< 0x00001000 */
10239 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP                     DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk
10240 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos                 (21U)
10241 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk                 (0x1UL << DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos)  /*!< 0x00200000 */
10242 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP                     DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk
10243 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos                 (22U)
10244 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk                 (0x1UL << DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos)  /*!< 0x00400000 */
10245 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP                     DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk
10246 #define DBGMCU_APB1FZR1_DBG_I2C3_STOP_Pos                 (23U)
10247 #define DBGMCU_APB1FZR1_DBG_I2C3_STOP_Msk                 (0x1UL << DBGMCU_APB1FZR1_DBG_I2C3_STOP_Pos)  /*!< 0x00800000 */
10248 #define DBGMCU_APB1FZR1_DBG_I2C3_STOP                     DBGMCU_APB1FZR1_DBG_I2C3_STOP_Msk
10249 #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Pos               (31U)
10250 #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Msk               (0x1UL << DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Pos)/*!< 0x80000000 */
10251 #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP                   DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Msk
10252 
10253 /********************  Bit definition for DBGMCU_C2APB1FZR1 register  ***********/
10254 #define DBGMCU_C2APB1FZR1_DBG_TIM2_STOP_Pos               (0U)
10255 #define DBGMCU_C2APB1FZR1_DBG_TIM2_STOP_Msk               (0x1UL << DBGMCU_C2APB1FZR1_DBG_TIM2_STOP_Pos)  /*!< 0x00000001 */
10256 #define DBGMCU_C2APB1FZR1_DBG_TIM2_STOP                   DBGMCU_C2APB1FZR1_DBG_TIM2_STOP_Msk
10257 #define DBGMCU_C2APB1FZR1_DBG_RTC_STOP_Pos                (10U)
10258 #define DBGMCU_C2APB1FZR1_DBG_RTC_STOP_Msk                (0x1UL << DBGMCU_C2APB1FZR1_DBG_RTC_STOP_Pos)   /*!< 0x00000400 */
10259 #define DBGMCU_C2APB1FZR1_DBG_RTC_STOP                    DBGMCU_C2APB1FZR1_DBG_RTC_STOP_Msk
10260 #define DBGMCU_C2APB1FZR1_DBG_IWDG_STOP_Pos               (12U)
10261 #define DBGMCU_C2APB1FZR1_DBG_IWDG_STOP_Msk               (0x1UL << DBGMCU_C2APB1FZR1_DBG_IWDG_STOP_Pos)  /*!< 0x00001000 */
10262 #define DBGMCU_C2APB1FZR1_DBG_IWDG_STOP                   DBGMCU_C2APB1FZR1_DBG_IWDG_STOP_Msk
10263 #define DBGMCU_C2APB1FZR1_DBG_I2C1_STOP_Pos               (21U)
10264 #define DBGMCU_C2APB1FZR1_DBG_I2C1_STOP_Msk               (0x1UL << DBGMCU_C2APB1FZR1_DBG_I2C1_STOP_Pos)  /*!< 0x00200000 */
10265 #define DBGMCU_C2APB1FZR1_DBG_I2C1_STOP                   DBGMCU_C2APB1FZR1_DBG_I2C1_STOP_Msk
10266 #define DBGMCU_C2APB1FZR1_DBG_I2C2_STOP_Pos               (22U)
10267 #define DBGMCU_C2APB1FZR1_DBG_I2C2_STOP_Msk               (0x1UL << DBGMCU_C2APB1FZR1_DBG_I2C2_STOP_Pos)  /*!< 0x00400000 */
10268 #define DBGMCU_C2APB1FZR1_DBG_I2C2_STOP                   DBGMCU_C2APB1FZR1_DBG_I2C2_STOP_Msk
10269 #define DBGMCU_C2APB1FZR1_DBG_I2C3_STOP_Pos               (23U)
10270 #define DBGMCU_C2APB1FZR1_DBG_I2C3_STOP_Msk               (0x1UL << DBGMCU_C2APB1FZR1_DBG_I2C3_STOP_Pos)  /*!< 0x00800000 */
10271 #define DBGMCU_C2APB1FZR1_DBG_I2C3_STOP                   DBGMCU_C2APB1FZR1_DBG_I2C3_STOP_Msk
10272 #define DBGMCU_C2APB1FZR1_DBG_LPTIM1_STOP_Pos             (31U)
10273 #define DBGMCU_C2APB1FZR1_DBG_LPTIM1_STOP_Msk             (0x1UL << DBGMCU_C2APB1FZR1_DBG_LPTIM1_STOP_Pos)/*!< 0x80000000 */
10274 #define DBGMCU_C2APB1FZR1_DBG_LPTIM1_STOP                 DBGMCU_C2APB1FZR1_DBG_LPTIM1_STOP_Msk
10275 
10276 /********************  Bit definition for DBGMCU_APB1FZR2 register  ***********/
10277 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos               (5U)
10278 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk               (0x1UL << DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos)/*!< 0x00000020 */
10279 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP                   DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk
10280 #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Pos               (6U)
10281 #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Msk               (0x1UL << DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Pos)/*!< 0x00000040 */
10282 #define DBGMCU_APB1FZR2_DBG_LPTIM3_STOP                   DBGMCU_APB1FZR2_DBG_LPTIM3_STOP_Msk
10283 
10284 /********************  Bit definition for DBGMCU_C2APB1FZR2 register  ***********/
10285 #define DBGMCU_C2APB1FZR2_DBG_LPTIM2_STOP_Pos             (5U)
10286 #define DBGMCU_C2APB1FZR2_DBG_LPTIM2_STOP_Msk             (0x1UL << DBGMCU_C2APB1FZR2_DBG_LPTIM2_STOP_Pos)/*!< 0x00000020 */
10287 #define DBGMCU_C2APB1FZR2_DBG_LPTIM2_STOP                 DBGMCU_C2APB1FZR2_DBG_LPTIM2_STOP_Msk
10288 #define DBGMCU_C2APB1FZR2_DBG_LPTIM3_STOP_Pos             (6U)
10289 #define DBGMCU_C2APB1FZR2_DBG_LPTIM3_STOP_Msk             (0x1UL << DBGMCU_C2APB1FZR2_DBG_LPTIM3_STOP_Pos)/*!< 0x00000040 */
10290 #define DBGMCU_C2APB1FZR2_DBG_LPTIM3_STOP                 DBGMCU_C2APB1FZR2_DBG_LPTIM3_STOP_Msk
10291 
10292 /********************  Bit definition for DBGMCU_APB2FZR register  ************/
10293 #define DBGMCU_APB2FZR_DBG_TIM1_STOP_Pos                  (11U)
10294 #define DBGMCU_APB2FZR_DBG_TIM1_STOP_Msk                  (0x1UL << DBGMCU_APB2FZR_DBG_TIM1_STOP_Pos)/*!< 0x000000800 */
10295 #define DBGMCU_APB2FZR_DBG_TIM1_STOP                      DBGMCU_APB2FZR_DBG_TIM1_STOP_Msk
10296 #define DBGMCU_APB2FZR_DBG_TIM16_STOP_Pos                 (17U)
10297 #define DBGMCU_APB2FZR_DBG_TIM16_STOP_Msk                 (0x1UL << DBGMCU_APB2FZR_DBG_TIM16_STOP_Pos)/*!< 0x00020000 */
10298 #define DBGMCU_APB2FZR_DBG_TIM16_STOP                     DBGMCU_APB2FZR_DBG_TIM16_STOP_Msk
10299 #define DBGMCU_APB2FZR_DBG_TIM17_STOP_Pos                 (18U)
10300 #define DBGMCU_APB2FZR_DBG_TIM17_STOP_Msk                 (0x1UL << DBGMCU_APB2FZR_DBG_TIM17_STOP_Pos)/*!< 0x00040000 */
10301 #define DBGMCU_APB2FZR_DBG_TIM17_STOP                     DBGMCU_APB2FZR_DBG_TIM17_STOP_Msk
10302 
10303 /********************  Bit definition for DBGMCU_C2APB2FZR register  ************/
10304 #define DBGMCU_C2APB2FZR_DBG_TIM1_STOP_Pos                (11U)
10305 #define DBGMCU_C2APB2FZR_DBG_TIM1_STOP_Msk                (0x1UL << DBGMCU_C2APB2FZR_DBG_TIM1_STOP_Pos)/*!< 0x000000800 */
10306 #define DBGMCU_C2APB2FZR_DBG_TIM1_STOP                    DBGMCU_C2APB2FZR_DBG_TIM1_STOP_Msk
10307 #define DBGMCU_C2APB2FZR_DBG_TIM16_STOP_Pos               (17U)
10308 #define DBGMCU_C2APB2FZR_DBG_TIM16_STOP_Msk               (0x1UL << DBGMCU_C2APB2FZR_DBG_TIM16_STOP_Pos)/*!< 0x00020000 */
10309 #define DBGMCU_C2APB2FZR_DBG_TIM16_STOP                   DBGMCU_C2APB2FZR_DBG_TIM16_STOP_Msk
10310 #define DBGMCU_C2APB2FZR_DBG_TIM17_STOP_Pos               (18U)
10311 #define DBGMCU_C2APB2FZR_DBG_TIM17_STOP_Msk               (0x1UL << DBGMCU_C2APB2FZR_DBG_TIM17_STOP_Pos)/*!< 0x00040000 */
10312 #define DBGMCU_C2APB2FZR_DBG_TIM17_STOP                   DBGMCU_C2APB2FZR_DBG_TIM17_STOP_Msk
10313 
10314 #endif
10315 
10316 /******************************************************************************/
10317 /*                                                                            */
10318 /*                                    TIM                                     */
10319 /*                                                                            */
10320 /******************************************************************************/
10321 /*******************  Bit definition for TIM_CR1 register  ********************/
10322 #define TIM_CR1_CEN_Pos           (0U)
10323 #define TIM_CR1_CEN_Msk           (0x1UL << TIM_CR1_CEN_Pos)                   /*!< 0x00000001 */
10324 #define TIM_CR1_CEN               TIM_CR1_CEN_Msk                              /*!<Counter enable */
10325 #define TIM_CR1_UDIS_Pos          (1U)
10326 #define TIM_CR1_UDIS_Msk          (0x1UL << TIM_CR1_UDIS_Pos)                  /*!< 0x00000002 */
10327 #define TIM_CR1_UDIS              TIM_CR1_UDIS_Msk                             /*!<Update disable */
10328 #define TIM_CR1_URS_Pos           (2U)
10329 #define TIM_CR1_URS_Msk           (0x1UL << TIM_CR1_URS_Pos)                   /*!< 0x00000004 */
10330 #define TIM_CR1_URS               TIM_CR1_URS_Msk                              /*!<Update request source */
10331 #define TIM_CR1_OPM_Pos           (3U)
10332 #define TIM_CR1_OPM_Msk           (0x1UL << TIM_CR1_OPM_Pos)                   /*!< 0x00000008 */
10333 #define TIM_CR1_OPM               TIM_CR1_OPM_Msk                              /*!<One pulse mode */
10334 #define TIM_CR1_DIR_Pos           (4U)
10335 #define TIM_CR1_DIR_Msk           (0x1UL << TIM_CR1_DIR_Pos)                   /*!< 0x00000010 */
10336 #define TIM_CR1_DIR               TIM_CR1_DIR_Msk                              /*!<Direction */
10337 
10338 #define TIM_CR1_CMS_Pos           (5U)
10339 #define TIM_CR1_CMS_Msk           (0x3UL << TIM_CR1_CMS_Pos)                   /*!< 0x00000060 */
10340 #define TIM_CR1_CMS               TIM_CR1_CMS_Msk                              /*!<CMS[1:0] bits (Center-aligned mode selection) */
10341 #define TIM_CR1_CMS_0             (0x1UL << TIM_CR1_CMS_Pos)                   /*!< 0x00000020 */
10342 #define TIM_CR1_CMS_1             (0x2UL << TIM_CR1_CMS_Pos)                   /*!< 0x00000040 */
10343 
10344 #define TIM_CR1_ARPE_Pos          (7U)
10345 #define TIM_CR1_ARPE_Msk          (0x1UL << TIM_CR1_ARPE_Pos)                  /*!< 0x00000080 */
10346 #define TIM_CR1_ARPE              TIM_CR1_ARPE_Msk                             /*!<Auto-reload preload enable */
10347 
10348 #define TIM_CR1_CKD_Pos           (8U)
10349 #define TIM_CR1_CKD_Msk           (0x3UL << TIM_CR1_CKD_Pos)                   /*!< 0x00000300 */
10350 #define TIM_CR1_CKD               TIM_CR1_CKD_Msk                              /*!<CKD[1:0] bits (clock division) */
10351 #define TIM_CR1_CKD_0             (0x1UL << TIM_CR1_CKD_Pos)                   /*!< 0x00000100 */
10352 #define TIM_CR1_CKD_1             (0x2UL << TIM_CR1_CKD_Pos)                   /*!< 0x00000200 */
10353 
10354 #define TIM_CR1_UIFREMAP_Pos      (11U)
10355 #define TIM_CR1_UIFREMAP_Msk      (0x1UL << TIM_CR1_UIFREMAP_Pos)              /*!< 0x00000800 */
10356 #define TIM_CR1_UIFREMAP          TIM_CR1_UIFREMAP_Msk                         /*!<Update interrupt flag remap */
10357 
10358 /*******************  Bit definition for TIM_CR2 register  ********************/
10359 #define TIM_CR2_CCPC_Pos          (0U)
10360 #define TIM_CR2_CCPC_Msk          (0x1UL << TIM_CR2_CCPC_Pos)                  /*!< 0x00000001 */
10361 #define TIM_CR2_CCPC              TIM_CR2_CCPC_Msk                             /*!<Capture/Compare Preloaded Control */
10362 #define TIM_CR2_CCUS_Pos          (2U)
10363 #define TIM_CR2_CCUS_Msk          (0x1UL << TIM_CR2_CCUS_Pos)                  /*!< 0x00000004 */
10364 #define TIM_CR2_CCUS              TIM_CR2_CCUS_Msk                             /*!<Capture/Compare Control Update Selection */
10365 #define TIM_CR2_CCDS_Pos          (3U)
10366 #define TIM_CR2_CCDS_Msk          (0x1UL << TIM_CR2_CCDS_Pos)                  /*!< 0x00000008 */
10367 #define TIM_CR2_CCDS              TIM_CR2_CCDS_Msk                             /*!<Capture/Compare DMA Selection */
10368 
10369 #define TIM_CR2_MMS_Pos           (4U)
10370 #define TIM_CR2_MMS_Msk           (0x7UL << TIM_CR2_MMS_Pos)                   /*!< 0x00000070 */
10371 #define TIM_CR2_MMS               TIM_CR2_MMS_Msk                              /*!<MMS[2:0] bits (Master Mode Selection) */
10372 #define TIM_CR2_MMS_0             (0x1UL << TIM_CR2_MMS_Pos)                   /*!< 0x00000010 */
10373 #define TIM_CR2_MMS_1             (0x2UL << TIM_CR2_MMS_Pos)                   /*!< 0x00000020 */
10374 #define TIM_CR2_MMS_2             (0x4UL << TIM_CR2_MMS_Pos)                   /*!< 0x00000040 */
10375 
10376 #define TIM_CR2_TI1S_Pos          (7U)
10377 #define TIM_CR2_TI1S_Msk          (0x1UL << TIM_CR2_TI1S_Pos)                  /*!< 0x00000080 */
10378 #define TIM_CR2_TI1S              TIM_CR2_TI1S_Msk                             /*!<TI1 Selection */
10379 #define TIM_CR2_OIS1_Pos          (8U)
10380 #define TIM_CR2_OIS1_Msk          (0x1UL << TIM_CR2_OIS1_Pos)                  /*!< 0x00000100 */
10381 #define TIM_CR2_OIS1              TIM_CR2_OIS1_Msk                             /*!<Output Idle state 1 (OC1 output) */
10382 #define TIM_CR2_OIS1N_Pos         (9U)
10383 #define TIM_CR2_OIS1N_Msk         (0x1UL << TIM_CR2_OIS1N_Pos)                 /*!< 0x00000200 */
10384 #define TIM_CR2_OIS1N             TIM_CR2_OIS1N_Msk                            /*!<Output Idle state 1 (OC1N output) */
10385 #define TIM_CR2_OIS2_Pos          (10U)
10386 #define TIM_CR2_OIS2_Msk          (0x1UL << TIM_CR2_OIS2_Pos)                  /*!< 0x00000400 */
10387 #define TIM_CR2_OIS2              TIM_CR2_OIS2_Msk                             /*!<Output Idle state 2 (OC2 output) */
10388 #define TIM_CR2_OIS2N_Pos         (11U)
10389 #define TIM_CR2_OIS2N_Msk         (0x1UL << TIM_CR2_OIS2N_Pos)                 /*!< 0x00000800 */
10390 #define TIM_CR2_OIS2N             TIM_CR2_OIS2N_Msk                            /*!<Output Idle state 2 (OC2N output) */
10391 #define TIM_CR2_OIS3_Pos          (12U)
10392 #define TIM_CR2_OIS3_Msk          (0x1UL << TIM_CR2_OIS3_Pos)                  /*!< 0x00001000 */
10393 #define TIM_CR2_OIS3              TIM_CR2_OIS3_Msk                             /*!<Output Idle state 3 (OC3 output) */
10394 #define TIM_CR2_OIS3N_Pos         (13U)
10395 #define TIM_CR2_OIS3N_Msk         (0x1UL << TIM_CR2_OIS3N_Pos)                 /*!< 0x00002000 */
10396 #define TIM_CR2_OIS3N             TIM_CR2_OIS3N_Msk                            /*!<Output Idle state 3 (OC3N output) */
10397 #define TIM_CR2_OIS4_Pos          (14U)
10398 #define TIM_CR2_OIS4_Msk          (0x1UL << TIM_CR2_OIS4_Pos)                  /*!< 0x00004000 */
10399 #define TIM_CR2_OIS4              TIM_CR2_OIS4_Msk                             /*!<Output Idle state 4 (OC4 output) */
10400 #define TIM_CR2_OIS5_Pos          (16U)
10401 #define TIM_CR2_OIS5_Msk          (0x1UL << TIM_CR2_OIS5_Pos)                  /*!< 0x00010000 */
10402 #define TIM_CR2_OIS5              TIM_CR2_OIS5_Msk                             /*!<Output Idle state 5 (OC5 output) */
10403 #define TIM_CR2_OIS6_Pos          (18U)
10404 #define TIM_CR2_OIS6_Msk          (0x1UL << TIM_CR2_OIS6_Pos)                  /*!< 0x00040000 */
10405 #define TIM_CR2_OIS6              TIM_CR2_OIS6_Msk                             /*!<Output Idle state 6 (OC6 output) */
10406 
10407 #define TIM_CR2_MMS2_Pos          (20U)
10408 #define TIM_CR2_MMS2_Msk          (0xFUL << TIM_CR2_MMS2_Pos)                  /*!< 0x00F00000 */
10409 #define TIM_CR2_MMS2              TIM_CR2_MMS2_Msk                             /*!<MMS[2:0] bits (Master Mode Selection) */
10410 #define TIM_CR2_MMS2_0            (0x1UL << TIM_CR2_MMS2_Pos)                  /*!< 0x00100000 */
10411 #define TIM_CR2_MMS2_1            (0x2UL << TIM_CR2_MMS2_Pos)                  /*!< 0x00200000 */
10412 #define TIM_CR2_MMS2_2            (0x4UL << TIM_CR2_MMS2_Pos)                  /*!< 0x00400000 */
10413 #define TIM_CR2_MMS2_3            (0x8UL << TIM_CR2_MMS2_Pos)                  /*!< 0x00800000 */
10414 
10415 /*******************  Bit definition for TIM_SMCR register  *******************/
10416 #define TIM_SMCR_SMS_Pos          (0U)
10417 #define TIM_SMCR_SMS_Msk          (0x10007UL << TIM_SMCR_SMS_Pos)              /*!< 0x00010007 */
10418 #define TIM_SMCR_SMS              TIM_SMCR_SMS_Msk                             /*!<SMS[2:0] bits (Slave mode selection) */
10419 #define TIM_SMCR_SMS_0            (0x00001UL << TIM_SMCR_SMS_Pos)              /*!< 0x00000001 */
10420 #define TIM_SMCR_SMS_1            (0x00002UL << TIM_SMCR_SMS_Pos)              /*!< 0x00000002 */
10421 #define TIM_SMCR_SMS_2            (0x00004UL << TIM_SMCR_SMS_Pos)              /*!< 0x00000004 */
10422 #define TIM_SMCR_SMS_3            (0x10000UL << TIM_SMCR_SMS_Pos)              /*!< 0x00010000 */
10423 
10424 #define TIM_SMCR_OCCS_Pos         (3U)
10425 #define TIM_SMCR_OCCS_Msk         (0x1UL << TIM_SMCR_OCCS_Pos)                 /*!< 0x00000008 */
10426 #define TIM_SMCR_OCCS             TIM_SMCR_OCCS_Msk                            /*!< OCREF clear selection */
10427 
10428 #define TIM_SMCR_TS_Pos           (4U)
10429 #define TIM_SMCR_TS_Msk           (0x30007UL << TIM_SMCR_TS_Pos)               /*!< 0x00300070 */
10430 #define TIM_SMCR_TS               TIM_SMCR_TS_Msk                              /*!<TS[2:0] bits (Trigger selection) */
10431 #define TIM_SMCR_TS_0             (0x00001UL << TIM_SMCR_TS_Pos)               /*!< 0x00000010 */
10432 #define TIM_SMCR_TS_1             (0x00002UL << TIM_SMCR_TS_Pos)               /*!< 0x00000020 */
10433 #define TIM_SMCR_TS_2             (0x00004UL << TIM_SMCR_TS_Pos)               /*!< 0x00000040 */
10434 #define TIM_SMCR_TS_3             (0x10000UL << TIM_SMCR_TS_Pos)               /*!< 0x00100000 */
10435 #define TIM_SMCR_TS_4             (0x20000UL << TIM_SMCR_TS_Pos)               /*!< 0x00200000 */
10436 
10437 #define TIM_SMCR_MSM_Pos          (7U)
10438 #define TIM_SMCR_MSM_Msk          (0x1UL << TIM_SMCR_MSM_Pos)                  /*!< 0x00000080 */
10439 #define TIM_SMCR_MSM              TIM_SMCR_MSM_Msk                             /*!<Master/slave mode */
10440 
10441 #define TIM_SMCR_ETF_Pos          (8U)
10442 #define TIM_SMCR_ETF_Msk          (0xFUL << TIM_SMCR_ETF_Pos)                  /*!< 0x00000F00 */
10443 #define TIM_SMCR_ETF              TIM_SMCR_ETF_Msk                             /*!<ETF[3:0] bits (External trigger filter) */
10444 #define TIM_SMCR_ETF_0            (0x1UL << TIM_SMCR_ETF_Pos)                  /*!< 0x00000100 */
10445 #define TIM_SMCR_ETF_1            (0x2UL << TIM_SMCR_ETF_Pos)                  /*!< 0x00000200 */
10446 #define TIM_SMCR_ETF_2            (0x4UL << TIM_SMCR_ETF_Pos)                  /*!< 0x00000400 */
10447 #define TIM_SMCR_ETF_3            (0x8UL << TIM_SMCR_ETF_Pos)                  /*!< 0x00000800 */
10448 
10449 #define TIM_SMCR_ETPS_Pos         (12U)
10450 #define TIM_SMCR_ETPS_Msk         (0x3UL << TIM_SMCR_ETPS_Pos)                 /*!< 0x00003000 */
10451 #define TIM_SMCR_ETPS             TIM_SMCR_ETPS_Msk                            /*!<ETPS[1:0] bits (External trigger prescaler) */
10452 #define TIM_SMCR_ETPS_0           (0x1UL << TIM_SMCR_ETPS_Pos)                 /*!< 0x00001000 */
10453 #define TIM_SMCR_ETPS_1           (0x2UL << TIM_SMCR_ETPS_Pos)                 /*!< 0x00002000 */
10454 
10455 #define TIM_SMCR_ECE_Pos          (14U)
10456 #define TIM_SMCR_ECE_Msk          (0x1UL << TIM_SMCR_ECE_Pos)                  /*!< 0x00004000 */
10457 #define TIM_SMCR_ECE              TIM_SMCR_ECE_Msk                             /*!<External clock enable */
10458 #define TIM_SMCR_ETP_Pos          (15U)
10459 #define TIM_SMCR_ETP_Msk          (0x1UL << TIM_SMCR_ETP_Pos)                  /*!< 0x00008000 */
10460 #define TIM_SMCR_ETP              TIM_SMCR_ETP_Msk                             /*!<External trigger polarity */
10461 
10462 /*******************  Bit definition for TIM_DIER register  *******************/
10463 #define TIM_DIER_UIE_Pos          (0U)
10464 #define TIM_DIER_UIE_Msk          (0x1UL << TIM_DIER_UIE_Pos)                  /*!< 0x00000001 */
10465 #define TIM_DIER_UIE              TIM_DIER_UIE_Msk                             /*!<Update interrupt enable */
10466 #define TIM_DIER_CC1IE_Pos        (1U)
10467 #define TIM_DIER_CC1IE_Msk        (0x1UL << TIM_DIER_CC1IE_Pos)                /*!< 0x00000002 */
10468 #define TIM_DIER_CC1IE            TIM_DIER_CC1IE_Msk                           /*!<Capture/Compare 1 interrupt enable */
10469 #define TIM_DIER_CC2IE_Pos        (2U)
10470 #define TIM_DIER_CC2IE_Msk        (0x1UL << TIM_DIER_CC2IE_Pos)                /*!< 0x00000004 */
10471 #define TIM_DIER_CC2IE            TIM_DIER_CC2IE_Msk                           /*!<Capture/Compare 2 interrupt enable */
10472 #define TIM_DIER_CC3IE_Pos        (3U)
10473 #define TIM_DIER_CC3IE_Msk        (0x1UL << TIM_DIER_CC3IE_Pos)                /*!< 0x00000008 */
10474 #define TIM_DIER_CC3IE            TIM_DIER_CC3IE_Msk                           /*!<Capture/Compare 3 interrupt enable */
10475 #define TIM_DIER_CC4IE_Pos        (4U)
10476 #define TIM_DIER_CC4IE_Msk        (0x1UL << TIM_DIER_CC4IE_Pos)                /*!< 0x00000010 */
10477 #define TIM_DIER_CC4IE            TIM_DIER_CC4IE_Msk                           /*!<Capture/Compare 4 interrupt enable */
10478 #define TIM_DIER_COMIE_Pos        (5U)
10479 #define TIM_DIER_COMIE_Msk        (0x1UL << TIM_DIER_COMIE_Pos)                /*!< 0x00000020 */
10480 #define TIM_DIER_COMIE            TIM_DIER_COMIE_Msk                           /*!<COM interrupt enable */
10481 #define TIM_DIER_TIE_Pos          (6U)
10482 #define TIM_DIER_TIE_Msk          (0x1UL << TIM_DIER_TIE_Pos)                  /*!< 0x00000040 */
10483 #define TIM_DIER_TIE              TIM_DIER_TIE_Msk                             /*!<Trigger interrupt enable */
10484 #define TIM_DIER_BIE_Pos          (7U)
10485 #define TIM_DIER_BIE_Msk          (0x1UL << TIM_DIER_BIE_Pos)                  /*!< 0x00000080 */
10486 #define TIM_DIER_BIE              TIM_DIER_BIE_Msk                             /*!<Break interrupt enable */
10487 #define TIM_DIER_UDE_Pos          (8U)
10488 #define TIM_DIER_UDE_Msk          (0x1UL << TIM_DIER_UDE_Pos)                  /*!< 0x00000100 */
10489 #define TIM_DIER_UDE              TIM_DIER_UDE_Msk                             /*!<Update DMA request enable */
10490 #define TIM_DIER_CC1DE_Pos        (9U)
10491 #define TIM_DIER_CC1DE_Msk        (0x1UL << TIM_DIER_CC1DE_Pos)                /*!< 0x00000200 */
10492 #define TIM_DIER_CC1DE            TIM_DIER_CC1DE_Msk                           /*!<Capture/Compare 1 DMA request enable */
10493 #define TIM_DIER_CC2DE_Pos        (10U)
10494 #define TIM_DIER_CC2DE_Msk        (0x1UL << TIM_DIER_CC2DE_Pos)                /*!< 0x00000400 */
10495 #define TIM_DIER_CC2DE            TIM_DIER_CC2DE_Msk                           /*!<Capture/Compare 2 DMA request enable */
10496 #define TIM_DIER_CC3DE_Pos        (11U)
10497 #define TIM_DIER_CC3DE_Msk        (0x1UL << TIM_DIER_CC3DE_Pos)                /*!< 0x00000800 */
10498 #define TIM_DIER_CC3DE            TIM_DIER_CC3DE_Msk                           /*!<Capture/Compare 3 DMA request enable */
10499 #define TIM_DIER_CC4DE_Pos        (12U)
10500 #define TIM_DIER_CC4DE_Msk        (0x1UL << TIM_DIER_CC4DE_Pos)                /*!< 0x00001000 */
10501 #define TIM_DIER_CC4DE            TIM_DIER_CC4DE_Msk                           /*!<Capture/Compare 4 DMA request enable */
10502 #define TIM_DIER_COMDE_Pos        (13U)
10503 #define TIM_DIER_COMDE_Msk        (0x1UL << TIM_DIER_COMDE_Pos)                /*!< 0x00002000 */
10504 #define TIM_DIER_COMDE            TIM_DIER_COMDE_Msk                           /*!<COM DMA request enable */
10505 #define TIM_DIER_TDE_Pos          (14U)
10506 #define TIM_DIER_TDE_Msk          (0x1UL << TIM_DIER_TDE_Pos)                  /*!< 0x00004000 */
10507 #define TIM_DIER_TDE              TIM_DIER_TDE_Msk                             /*!<Trigger DMA request enable */
10508 
10509 /********************  Bit definition for TIM_SR register  ********************/
10510 #define TIM_SR_UIF_Pos            (0U)
10511 #define TIM_SR_UIF_Msk            (0x1UL << TIM_SR_UIF_Pos)                    /*!< 0x00000001 */
10512 #define TIM_SR_UIF                TIM_SR_UIF_Msk                               /*!<Update interrupt Flag */
10513 #define TIM_SR_CC1IF_Pos          (1U)
10514 #define TIM_SR_CC1IF_Msk          (0x1UL << TIM_SR_CC1IF_Pos)                  /*!< 0x00000002 */
10515 #define TIM_SR_CC1IF              TIM_SR_CC1IF_Msk                             /*!<Capture/Compare 1 interrupt Flag */
10516 #define TIM_SR_CC2IF_Pos          (2U)
10517 #define TIM_SR_CC2IF_Msk          (0x1UL << TIM_SR_CC2IF_Pos)                  /*!< 0x00000004 */
10518 #define TIM_SR_CC2IF              TIM_SR_CC2IF_Msk                             /*!<Capture/Compare 2 interrupt Flag */
10519 #define TIM_SR_CC3IF_Pos          (3U)
10520 #define TIM_SR_CC3IF_Msk          (0x1UL << TIM_SR_CC3IF_Pos)                  /*!< 0x00000008 */
10521 #define TIM_SR_CC3IF              TIM_SR_CC3IF_Msk                             /*!<Capture/Compare 3 interrupt Flag */
10522 #define TIM_SR_CC4IF_Pos          (4U)
10523 #define TIM_SR_CC4IF_Msk          (0x1UL << TIM_SR_CC4IF_Pos)                  /*!< 0x00000010 */
10524 #define TIM_SR_CC4IF              TIM_SR_CC4IF_Msk                             /*!<Capture/Compare 4 interrupt Flag */
10525 #define TIM_SR_COMIF_Pos          (5U)
10526 #define TIM_SR_COMIF_Msk          (0x1UL << TIM_SR_COMIF_Pos)                  /*!< 0x00000020 */
10527 #define TIM_SR_COMIF              TIM_SR_COMIF_Msk                             /*!<COM interrupt Flag */
10528 #define TIM_SR_TIF_Pos            (6U)
10529 #define TIM_SR_TIF_Msk            (0x1UL << TIM_SR_TIF_Pos)                    /*!< 0x00000040 */
10530 #define TIM_SR_TIF                TIM_SR_TIF_Msk                               /*!<Trigger interrupt Flag */
10531 #define TIM_SR_BIF_Pos            (7U)
10532 #define TIM_SR_BIF_Msk            (0x1UL << TIM_SR_BIF_Pos)                    /*!< 0x00000080 */
10533 #define TIM_SR_BIF                TIM_SR_BIF_Msk                               /*!<Break interrupt Flag */
10534 #define TIM_SR_B2IF_Pos           (8U)
10535 #define TIM_SR_B2IF_Msk           (0x1UL << TIM_SR_B2IF_Pos)                   /*!< 0x00000100 */
10536 #define TIM_SR_B2IF               TIM_SR_B2IF_Msk                              /*!<Break 2 interrupt Flag */
10537 #define TIM_SR_CC1OF_Pos          (9U)
10538 #define TIM_SR_CC1OF_Msk          (0x1UL << TIM_SR_CC1OF_Pos)                  /*!< 0x00000200 */
10539 #define TIM_SR_CC1OF              TIM_SR_CC1OF_Msk                             /*!<Capture/Compare 1 Overcapture Flag */
10540 #define TIM_SR_CC2OF_Pos          (10U)
10541 #define TIM_SR_CC2OF_Msk          (0x1UL << TIM_SR_CC2OF_Pos)                  /*!< 0x00000400 */
10542 #define TIM_SR_CC2OF              TIM_SR_CC2OF_Msk                             /*!<Capture/Compare 2 Overcapture Flag */
10543 #define TIM_SR_CC3OF_Pos          (11U)
10544 #define TIM_SR_CC3OF_Msk          (0x1UL << TIM_SR_CC3OF_Pos)                  /*!< 0x00000800 */
10545 #define TIM_SR_CC3OF              TIM_SR_CC3OF_Msk                             /*!<Capture/Compare 3 Overcapture Flag */
10546 #define TIM_SR_CC4OF_Pos          (12U)
10547 #define TIM_SR_CC4OF_Msk          (0x1UL << TIM_SR_CC4OF_Pos)                  /*!< 0x00001000 */
10548 #define TIM_SR_CC4OF              TIM_SR_CC4OF_Msk                             /*!<Capture/Compare 4 Overcapture Flag */
10549 #define TIM_SR_SBIF_Pos           (13U)
10550 #define TIM_SR_SBIF_Msk           (0x1UL << TIM_SR_SBIF_Pos)                   /*!< 0x00002000 */
10551 #define TIM_SR_SBIF               TIM_SR_SBIF_Msk                              /*!<System Break interrupt Flag */
10552 #define TIM_SR_CC5IF_Pos          (16U)
10553 #define TIM_SR_CC5IF_Msk          (0x1UL << TIM_SR_CC5IF_Pos)                  /*!< 0x00010000 */
10554 #define TIM_SR_CC5IF              TIM_SR_CC5IF_Msk                             /*!<Capture/Compare 5 interrupt Flag */
10555 #define TIM_SR_CC6IF_Pos          (17U)
10556 #define TIM_SR_CC6IF_Msk          (0x1UL << TIM_SR_CC6IF_Pos)                  /*!< 0x00020000 */
10557 #define TIM_SR_CC6IF              TIM_SR_CC6IF_Msk                             /*!<Capture/Compare 6 interrupt Flag */
10558 
10559 
10560 /*******************  Bit definition for TIM_EGR register  ********************/
10561 #define TIM_EGR_UG_Pos            (0U)
10562 #define TIM_EGR_UG_Msk            (0x1UL << TIM_EGR_UG_Pos)                    /*!< 0x00000001 */
10563 #define TIM_EGR_UG                TIM_EGR_UG_Msk                               /*!<Update Generation */
10564 #define TIM_EGR_CC1G_Pos          (1U)
10565 #define TIM_EGR_CC1G_Msk          (0x1UL << TIM_EGR_CC1G_Pos)                  /*!< 0x00000002 */
10566 #define TIM_EGR_CC1G              TIM_EGR_CC1G_Msk                             /*!<Capture/Compare 1 Generation */
10567 #define TIM_EGR_CC2G_Pos          (2U)
10568 #define TIM_EGR_CC2G_Msk          (0x1UL << TIM_EGR_CC2G_Pos)                  /*!< 0x00000004 */
10569 #define TIM_EGR_CC2G              TIM_EGR_CC2G_Msk                             /*!<Capture/Compare 2 Generation */
10570 #define TIM_EGR_CC3G_Pos          (3U)
10571 #define TIM_EGR_CC3G_Msk          (0x1UL << TIM_EGR_CC3G_Pos)                  /*!< 0x00000008 */
10572 #define TIM_EGR_CC3G              TIM_EGR_CC3G_Msk                             /*!<Capture/Compare 3 Generation */
10573 #define TIM_EGR_CC4G_Pos          (4U)
10574 #define TIM_EGR_CC4G_Msk          (0x1UL << TIM_EGR_CC4G_Pos)                  /*!< 0x00000010 */
10575 #define TIM_EGR_CC4G              TIM_EGR_CC4G_Msk                             /*!<Capture/Compare 4 Generation */
10576 #define TIM_EGR_COMG_Pos          (5U)
10577 #define TIM_EGR_COMG_Msk          (0x1UL << TIM_EGR_COMG_Pos)                  /*!< 0x00000020 */
10578 #define TIM_EGR_COMG              TIM_EGR_COMG_Msk                             /*!<Capture/Compare Control Update Generation */
10579 #define TIM_EGR_TG_Pos            (6U)
10580 #define TIM_EGR_TG_Msk            (0x1UL << TIM_EGR_TG_Pos)                    /*!< 0x00000040 */
10581 #define TIM_EGR_TG                TIM_EGR_TG_Msk                               /*!<Trigger Generation */
10582 #define TIM_EGR_BG_Pos            (7U)
10583 #define TIM_EGR_BG_Msk            (0x1UL << TIM_EGR_BG_Pos)                    /*!< 0x00000080 */
10584 #define TIM_EGR_BG                TIM_EGR_BG_Msk                               /*!<Break Generation */
10585 #define TIM_EGR_B2G_Pos           (8U)
10586 #define TIM_EGR_B2G_Msk           (0x1UL << TIM_EGR_B2G_Pos)                   /*!< 0x00000100 */
10587 #define TIM_EGR_B2G               TIM_EGR_B2G_Msk                              /*!<Break 2 Generation */
10588 
10589 /******************  Bit definition for TIM_CCMR1 register  *******************/
10590 #define TIM_CCMR1_CC1S_Pos        (0U)
10591 #define TIM_CCMR1_CC1S_Msk        (0x3UL << TIM_CCMR1_CC1S_Pos)                /*!< 0x00000003 */
10592 #define TIM_CCMR1_CC1S            TIM_CCMR1_CC1S_Msk                           /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
10593 #define TIM_CCMR1_CC1S_0          (0x1UL << TIM_CCMR1_CC1S_Pos)                /*!< 0x00000001 */
10594 #define TIM_CCMR1_CC1S_1          (0x2UL << TIM_CCMR1_CC1S_Pos)                /*!< 0x00000002 */
10595 
10596 #define TIM_CCMR1_OC1FE_Pos       (2U)
10597 #define TIM_CCMR1_OC1FE_Msk       (0x1UL << TIM_CCMR1_OC1FE_Pos)               /*!< 0x00000004 */
10598 #define TIM_CCMR1_OC1FE           TIM_CCMR1_OC1FE_Msk                          /*!<Output Compare 1 Fast enable */
10599 #define TIM_CCMR1_OC1PE_Pos       (3U)
10600 #define TIM_CCMR1_OC1PE_Msk       (0x1UL << TIM_CCMR1_OC1PE_Pos)               /*!< 0x00000008 */
10601 #define TIM_CCMR1_OC1PE           TIM_CCMR1_OC1PE_Msk                          /*!<Output Compare 1 Preload enable */
10602 
10603 #define TIM_CCMR1_OC1M_Pos        (4U)
10604 #define TIM_CCMR1_OC1M_Msk        (0x1007UL << TIM_CCMR1_OC1M_Pos)             /*!< 0x00010070 */
10605 #define TIM_CCMR1_OC1M            TIM_CCMR1_OC1M_Msk                           /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
10606 #define TIM_CCMR1_OC1M_0          (0x0001UL << TIM_CCMR1_OC1M_Pos)             /*!< 0x00000010 */
10607 #define TIM_CCMR1_OC1M_1          (0x0002UL << TIM_CCMR1_OC1M_Pos)             /*!< 0x00000020 */
10608 #define TIM_CCMR1_OC1M_2          (0x0004UL << TIM_CCMR1_OC1M_Pos)             /*!< 0x00000040 */
10609 #define TIM_CCMR1_OC1M_3          (0x1000UL << TIM_CCMR1_OC1M_Pos)             /*!< 0x00010000 */
10610 
10611 #define TIM_CCMR1_OC1CE_Pos       (7U)
10612 #define TIM_CCMR1_OC1CE_Msk       (0x1UL << TIM_CCMR1_OC1CE_Pos)               /*!< 0x00000080 */
10613 #define TIM_CCMR1_OC1CE           TIM_CCMR1_OC1CE_Msk                          /*!<Output Compare 1 Clear Enable */
10614 
10615 #define TIM_CCMR1_CC2S_Pos        (8U)
10616 #define TIM_CCMR1_CC2S_Msk        (0x3UL << TIM_CCMR1_CC2S_Pos)                /*!< 0x00000300 */
10617 #define TIM_CCMR1_CC2S            TIM_CCMR1_CC2S_Msk                           /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
10618 #define TIM_CCMR1_CC2S_0          (0x1UL << TIM_CCMR1_CC2S_Pos)                /*!< 0x00000100 */
10619 #define TIM_CCMR1_CC2S_1          (0x2UL << TIM_CCMR1_CC2S_Pos)                /*!< 0x00000200 */
10620 
10621 #define TIM_CCMR1_OC2FE_Pos       (10U)
10622 #define TIM_CCMR1_OC2FE_Msk       (0x1UL << TIM_CCMR1_OC2FE_Pos)               /*!< 0x00000400 */
10623 #define TIM_CCMR1_OC2FE           TIM_CCMR1_OC2FE_Msk                          /*!<Output Compare 2 Fast enable */
10624 #define TIM_CCMR1_OC2PE_Pos       (11U)
10625 #define TIM_CCMR1_OC2PE_Msk       (0x1UL << TIM_CCMR1_OC2PE_Pos)               /*!< 0x00000800 */
10626 #define TIM_CCMR1_OC2PE           TIM_CCMR1_OC2PE_Msk                          /*!<Output Compare 2 Preload enable */
10627 
10628 #define TIM_CCMR1_OC2M_Pos        (12U)
10629 #define TIM_CCMR1_OC2M_Msk        (0x1007UL << TIM_CCMR1_OC2M_Pos)             /*!< 0x01007000 */
10630 #define TIM_CCMR1_OC2M            TIM_CCMR1_OC2M_Msk                           /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
10631 #define TIM_CCMR1_OC2M_0          (0x0001UL << TIM_CCMR1_OC2M_Pos)             /*!< 0x00001000 */
10632 #define TIM_CCMR1_OC2M_1          (0x0002UL << TIM_CCMR1_OC2M_Pos)             /*!< 0x00002000 */
10633 #define TIM_CCMR1_OC2M_2          (0x0004UL << TIM_CCMR1_OC2M_Pos)             /*!< 0x00004000 */
10634 #define TIM_CCMR1_OC2M_3          (0x1000UL << TIM_CCMR1_OC2M_Pos)             /*!< 0x01000000 */
10635 
10636 #define TIM_CCMR1_OC2CE_Pos       (15U)
10637 #define TIM_CCMR1_OC2CE_Msk       (0x1UL << TIM_CCMR1_OC2CE_Pos)               /*!< 0x00008000 */
10638 #define TIM_CCMR1_OC2CE           TIM_CCMR1_OC2CE_Msk                          /*!<Output Compare 2 Clear Enable */
10639 
10640 /*----------------------------------------------------------------------------*/
10641 #define TIM_CCMR1_IC1PSC_Pos      (2U)
10642 #define TIM_CCMR1_IC1PSC_Msk      (0x3UL << TIM_CCMR1_IC1PSC_Pos)              /*!< 0x0000000C */
10643 #define TIM_CCMR1_IC1PSC          TIM_CCMR1_IC1PSC_Msk                         /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
10644 #define TIM_CCMR1_IC1PSC_0        (0x1UL << TIM_CCMR1_IC1PSC_Pos)              /*!< 0x00000004 */
10645 #define TIM_CCMR1_IC1PSC_1        (0x2UL << TIM_CCMR1_IC1PSC_Pos)              /*!< 0x00000008 */
10646 
10647 #define TIM_CCMR1_IC1F_Pos        (4U)
10648 #define TIM_CCMR1_IC1F_Msk        (0xFUL << TIM_CCMR1_IC1F_Pos)                /*!< 0x000000F0 */
10649 #define TIM_CCMR1_IC1F            TIM_CCMR1_IC1F_Msk                           /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
10650 #define TIM_CCMR1_IC1F_0          (0x1UL << TIM_CCMR1_IC1F_Pos)                /*!< 0x00000010 */
10651 #define TIM_CCMR1_IC1F_1          (0x2UL << TIM_CCMR1_IC1F_Pos)                /*!< 0x00000020 */
10652 #define TIM_CCMR1_IC1F_2          (0x4UL << TIM_CCMR1_IC1F_Pos)                /*!< 0x00000040 */
10653 #define TIM_CCMR1_IC1F_3          (0x8UL << TIM_CCMR1_IC1F_Pos)                /*!< 0x00000080 */
10654 
10655 #define TIM_CCMR1_IC2PSC_Pos      (10U)
10656 #define TIM_CCMR1_IC2PSC_Msk      (0x3UL << TIM_CCMR1_IC2PSC_Pos)              /*!< 0x00000C00 */
10657 #define TIM_CCMR1_IC2PSC          TIM_CCMR1_IC2PSC_Msk                         /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
10658 #define TIM_CCMR1_IC2PSC_0        (0x1UL << TIM_CCMR1_IC2PSC_Pos)              /*!< 0x00000400 */
10659 #define TIM_CCMR1_IC2PSC_1        (0x2UL << TIM_CCMR1_IC2PSC_Pos)              /*!< 0x00000800 */
10660 
10661 #define TIM_CCMR1_IC2F_Pos        (12U)
10662 #define TIM_CCMR1_IC2F_Msk        (0xFUL << TIM_CCMR1_IC2F_Pos)                /*!< 0x0000F000 */
10663 #define TIM_CCMR1_IC2F            TIM_CCMR1_IC2F_Msk                           /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
10664 #define TIM_CCMR1_IC2F_0          (0x1UL << TIM_CCMR1_IC2F_Pos)                /*!< 0x00001000 */
10665 #define TIM_CCMR1_IC2F_1          (0x2UL << TIM_CCMR1_IC2F_Pos)                /*!< 0x00002000 */
10666 #define TIM_CCMR1_IC2F_2          (0x4UL << TIM_CCMR1_IC2F_Pos)                /*!< 0x00004000 */
10667 #define TIM_CCMR1_IC2F_3          (0x8UL << TIM_CCMR1_IC2F_Pos)                /*!< 0x00008000 */
10668 
10669 /******************  Bit definition for TIM_CCMR2 register  *******************/
10670 #define TIM_CCMR2_CC3S_Pos        (0U)
10671 #define TIM_CCMR2_CC3S_Msk        (0x3UL << TIM_CCMR2_CC3S_Pos)                /*!< 0x00000003 */
10672 #define TIM_CCMR2_CC3S            TIM_CCMR2_CC3S_Msk                           /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
10673 #define TIM_CCMR2_CC3S_0          (0x1UL << TIM_CCMR2_CC3S_Pos)                /*!< 0x00000001 */
10674 #define TIM_CCMR2_CC3S_1          (0x2UL << TIM_CCMR2_CC3S_Pos)                /*!< 0x00000002 */
10675 
10676 #define TIM_CCMR2_OC3FE_Pos       (2U)
10677 #define TIM_CCMR2_OC3FE_Msk       (0x1UL << TIM_CCMR2_OC3FE_Pos)               /*!< 0x00000004 */
10678 #define TIM_CCMR2_OC3FE           TIM_CCMR2_OC3FE_Msk                          /*!<Output Compare 3 Fast enable */
10679 #define TIM_CCMR2_OC3PE_Pos       (3U)
10680 #define TIM_CCMR2_OC3PE_Msk       (0x1UL << TIM_CCMR2_OC3PE_Pos)               /*!< 0x00000008 */
10681 #define TIM_CCMR2_OC3PE           TIM_CCMR2_OC3PE_Msk                          /*!<Output Compare 3 Preload enable */
10682 
10683 #define TIM_CCMR2_OC3M_Pos        (4U)
10684 #define TIM_CCMR2_OC3M_Msk        (0x1007UL << TIM_CCMR2_OC3M_Pos)             /*!< 0x00010070 */
10685 #define TIM_CCMR2_OC3M            TIM_CCMR2_OC3M_Msk                           /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
10686 #define TIM_CCMR2_OC3M_0          (0x0001UL << TIM_CCMR2_OC3M_Pos)             /*!< 0x00000010 */
10687 #define TIM_CCMR2_OC3M_1          (0x0002UL << TIM_CCMR2_OC3M_Pos)             /*!< 0x00000020 */
10688 #define TIM_CCMR2_OC3M_2          (0x0004UL << TIM_CCMR2_OC3M_Pos)             /*!< 0x00000040 */
10689 #define TIM_CCMR2_OC3M_3          (0x1000UL << TIM_CCMR2_OC3M_Pos)             /*!< 0x00010000 */
10690 
10691 #define TIM_CCMR2_OC3CE_Pos       (7U)
10692 #define TIM_CCMR2_OC3CE_Msk       (0x1UL << TIM_CCMR2_OC3CE_Pos)               /*!< 0x00000080 */
10693 #define TIM_CCMR2_OC3CE           TIM_CCMR2_OC3CE_Msk                          /*!<Output Compare 3 Clear Enable */
10694 
10695 #define TIM_CCMR2_CC4S_Pos        (8U)
10696 #define TIM_CCMR2_CC4S_Msk        (0x3UL << TIM_CCMR2_CC4S_Pos)                /*!< 0x00000300 */
10697 #define TIM_CCMR2_CC4S            TIM_CCMR2_CC4S_Msk                           /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
10698 #define TIM_CCMR2_CC4S_0          (0x1UL << TIM_CCMR2_CC4S_Pos)                /*!< 0x00000100 */
10699 #define TIM_CCMR2_CC4S_1          (0x2UL << TIM_CCMR2_CC4S_Pos)                /*!< 0x00000200 */
10700 
10701 #define TIM_CCMR2_OC4FE_Pos       (10U)
10702 #define TIM_CCMR2_OC4FE_Msk       (0x1UL << TIM_CCMR2_OC4FE_Pos)               /*!< 0x00000400 */
10703 #define TIM_CCMR2_OC4FE           TIM_CCMR2_OC4FE_Msk                          /*!<Output Compare 4 Fast enable */
10704 #define TIM_CCMR2_OC4PE_Pos       (11U)
10705 #define TIM_CCMR2_OC4PE_Msk       (0x1UL << TIM_CCMR2_OC4PE_Pos)               /*!< 0x00000800 */
10706 #define TIM_CCMR2_OC4PE           TIM_CCMR2_OC4PE_Msk                          /*!<Output Compare 4 Preload enable */
10707 
10708 #define TIM_CCMR2_OC4M_Pos        (12U)
10709 #define TIM_CCMR2_OC4M_Msk        (0x1007UL << TIM_CCMR2_OC4M_Pos)             /*!< 0x01007000 */
10710 #define TIM_CCMR2_OC4M            TIM_CCMR2_OC4M_Msk                           /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
10711 #define TIM_CCMR2_OC4M_0          (0x0001UL << TIM_CCMR2_OC4M_Pos)             /*!< 0x00001000 */
10712 #define TIM_CCMR2_OC4M_1          (0x0002UL << TIM_CCMR2_OC4M_Pos)             /*!< 0x00002000 */
10713 #define TIM_CCMR2_OC4M_2          (0x0004UL << TIM_CCMR2_OC4M_Pos)             /*!< 0x00004000 */
10714 #define TIM_CCMR2_OC4M_3          (0x1000UL << TIM_CCMR2_OC4M_Pos)             /*!< 0x01000000 */
10715 
10716 #define TIM_CCMR2_OC4CE_Pos       (15U)
10717 #define TIM_CCMR2_OC4CE_Msk       (0x1UL << TIM_CCMR2_OC4CE_Pos)               /*!< 0x00008000 */
10718 #define TIM_CCMR2_OC4CE           TIM_CCMR2_OC4CE_Msk                          /*!<Output Compare 4 Clear Enable */
10719 
10720 /*----------------------------------------------------------------------------*/
10721 #define TIM_CCMR2_IC3PSC_Pos      (2U)
10722 #define TIM_CCMR2_IC3PSC_Msk      (0x3UL << TIM_CCMR2_IC3PSC_Pos)              /*!< 0x0000000C */
10723 #define TIM_CCMR2_IC3PSC          TIM_CCMR2_IC3PSC_Msk                         /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
10724 #define TIM_CCMR2_IC3PSC_0        (0x1UL << TIM_CCMR2_IC3PSC_Pos)              /*!< 0x00000004 */
10725 #define TIM_CCMR2_IC3PSC_1        (0x2UL << TIM_CCMR2_IC3PSC_Pos)              /*!< 0x00000008 */
10726 
10727 #define TIM_CCMR2_IC3F_Pos        (4U)
10728 #define TIM_CCMR2_IC3F_Msk        (0xFUL << TIM_CCMR2_IC3F_Pos)                /*!< 0x000000F0 */
10729 #define TIM_CCMR2_IC3F            TIM_CCMR2_IC3F_Msk                           /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
10730 #define TIM_CCMR2_IC3F_0          (0x1UL << TIM_CCMR2_IC3F_Pos)                /*!< 0x00000010 */
10731 #define TIM_CCMR2_IC3F_1          (0x2UL << TIM_CCMR2_IC3F_Pos)                /*!< 0x00000020 */
10732 #define TIM_CCMR2_IC3F_2          (0x4UL << TIM_CCMR2_IC3F_Pos)                /*!< 0x00000040 */
10733 #define TIM_CCMR2_IC3F_3          (0x8UL << TIM_CCMR2_IC3F_Pos)                /*!< 0x00000080 */
10734 
10735 #define TIM_CCMR2_IC4PSC_Pos      (10U)
10736 #define TIM_CCMR2_IC4PSC_Msk      (0x3UL << TIM_CCMR2_IC4PSC_Pos)              /*!< 0x00000C00 */
10737 #define TIM_CCMR2_IC4PSC          TIM_CCMR2_IC4PSC_Msk                         /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
10738 #define TIM_CCMR2_IC4PSC_0        (0x1UL << TIM_CCMR2_IC4PSC_Pos)              /*!< 0x00000400 */
10739 #define TIM_CCMR2_IC4PSC_1        (0x2UL << TIM_CCMR2_IC4PSC_Pos)              /*!< 0x00000800 */
10740 
10741 #define TIM_CCMR2_IC4F_Pos        (12U)
10742 #define TIM_CCMR2_IC4F_Msk        (0xFUL << TIM_CCMR2_IC4F_Pos)                /*!< 0x0000F000 */
10743 #define TIM_CCMR2_IC4F            TIM_CCMR2_IC4F_Msk                           /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
10744 #define TIM_CCMR2_IC4F_0          (0x1UL << TIM_CCMR2_IC4F_Pos)                /*!< 0x00001000 */
10745 #define TIM_CCMR2_IC4F_1          (0x2UL << TIM_CCMR2_IC4F_Pos)                /*!< 0x00002000 */
10746 #define TIM_CCMR2_IC4F_2          (0x4UL << TIM_CCMR2_IC4F_Pos)                /*!< 0x00004000 */
10747 #define TIM_CCMR2_IC4F_3          (0x8UL << TIM_CCMR2_IC4F_Pos)                /*!< 0x00008000 */
10748 
10749 /******************  Bit definition for TIM_CCMR3 register  *******************/
10750 #define TIM_CCMR3_OC5FE_Pos       (2U)
10751 #define TIM_CCMR3_OC5FE_Msk       (0x1UL << TIM_CCMR3_OC5FE_Pos)               /*!< 0x00000004 */
10752 #define TIM_CCMR3_OC5FE           TIM_CCMR3_OC5FE_Msk                          /*!<Output Compare 5 Fast enable */
10753 #define TIM_CCMR3_OC5PE_Pos       (3U)
10754 #define TIM_CCMR3_OC5PE_Msk       (0x1UL << TIM_CCMR3_OC5PE_Pos)               /*!< 0x00000008 */
10755 #define TIM_CCMR3_OC5PE           TIM_CCMR3_OC5PE_Msk                          /*!<Output Compare 5 Preload enable */
10756 
10757 #define TIM_CCMR3_OC5M_Pos        (4U)
10758 #define TIM_CCMR3_OC5M_Msk        (0x1007UL << TIM_CCMR3_OC5M_Pos)             /*!< 0x00010070 */
10759 #define TIM_CCMR3_OC5M            TIM_CCMR3_OC5M_Msk                           /*!<OC5M[3:0] bits (Output Compare 5 Mode) */
10760 #define TIM_CCMR3_OC5M_0          (0x0001UL << TIM_CCMR3_OC5M_Pos)             /*!< 0x00000010 */
10761 #define TIM_CCMR3_OC5M_1          (0x0002UL << TIM_CCMR3_OC5M_Pos)             /*!< 0x00000020 */
10762 #define TIM_CCMR3_OC5M_2          (0x0004UL << TIM_CCMR3_OC5M_Pos)             /*!< 0x00000040 */
10763 #define TIM_CCMR3_OC5M_3          (0x1000UL << TIM_CCMR3_OC5M_Pos)             /*!< 0x00010000 */
10764 
10765 #define TIM_CCMR3_OC5CE_Pos       (7U)
10766 #define TIM_CCMR3_OC5CE_Msk       (0x1UL << TIM_CCMR3_OC5CE_Pos)               /*!< 0x00000080 */
10767 #define TIM_CCMR3_OC5CE           TIM_CCMR3_OC5CE_Msk                          /*!<Output Compare 5 Clear Enable */
10768 
10769 #define TIM_CCMR3_OC6FE_Pos       (10U)
10770 #define TIM_CCMR3_OC6FE_Msk       (0x1UL << TIM_CCMR3_OC6FE_Pos)               /*!< 0x00000400 */
10771 #define TIM_CCMR3_OC6FE           TIM_CCMR3_OC6FE_Msk                          /*!<Output Compare 6 Fast enable */
10772 #define TIM_CCMR3_OC6PE_Pos       (11U)
10773 #define TIM_CCMR3_OC6PE_Msk       (0x1UL << TIM_CCMR3_OC6PE_Pos)               /*!< 0x00000800 */
10774 #define TIM_CCMR3_OC6PE           TIM_CCMR3_OC6PE_Msk                          /*!<Output Compare 6 Preload enable */
10775 
10776 #define TIM_CCMR3_OC6M_Pos        (12U)
10777 #define TIM_CCMR3_OC6M_Msk        (0x1007UL << TIM_CCMR3_OC6M_Pos)             /*!< 0x01007000 */
10778 #define TIM_CCMR3_OC6M            TIM_CCMR3_OC6M_Msk                           /*!<OC6M[3:0] bits (Output Compare 6 Mode) */
10779 #define TIM_CCMR3_OC6M_0          (0x0001UL << TIM_CCMR3_OC6M_Pos)             /*!< 0x00001000 */
10780 #define TIM_CCMR3_OC6M_1          (0x0002UL << TIM_CCMR3_OC6M_Pos)             /*!< 0x00002000 */
10781 #define TIM_CCMR3_OC6M_2          (0x0004UL << TIM_CCMR3_OC6M_Pos)             /*!< 0x00004000 */
10782 #define TIM_CCMR3_OC6M_3          (0x1000UL << TIM_CCMR3_OC6M_Pos)             /*!< 0x01000000 */
10783 
10784 #define TIM_CCMR3_OC6CE_Pos       (15U)
10785 #define TIM_CCMR3_OC6CE_Msk       (0x1UL << TIM_CCMR3_OC6CE_Pos)               /*!< 0x00008000 */
10786 #define TIM_CCMR3_OC6CE           TIM_CCMR3_OC6CE_Msk                          /*!<Output Compare 6 Clear Enable */
10787 
10788 /*******************  Bit definition for TIM_CCER register  *******************/
10789 #define TIM_CCER_CC1E_Pos         (0U)
10790 #define TIM_CCER_CC1E_Msk         (0x1UL << TIM_CCER_CC1E_Pos)                 /*!< 0x00000001 */
10791 #define TIM_CCER_CC1E             TIM_CCER_CC1E_Msk                            /*!<Capture/Compare 1 output enable */
10792 #define TIM_CCER_CC1P_Pos         (1U)
10793 #define TIM_CCER_CC1P_Msk         (0x1UL << TIM_CCER_CC1P_Pos)                 /*!< 0x00000002 */
10794 #define TIM_CCER_CC1P             TIM_CCER_CC1P_Msk                            /*!<Capture/Compare 1 output Polarity */
10795 #define TIM_CCER_CC1NE_Pos        (2U)
10796 #define TIM_CCER_CC1NE_Msk        (0x1UL << TIM_CCER_CC1NE_Pos)                /*!< 0x00000004 */
10797 #define TIM_CCER_CC1NE            TIM_CCER_CC1NE_Msk                           /*!<Capture/Compare 1 Complementary output enable */
10798 #define TIM_CCER_CC1NP_Pos        (3U)
10799 #define TIM_CCER_CC1NP_Msk        (0x1UL << TIM_CCER_CC1NP_Pos)                /*!< 0x00000008 */
10800 #define TIM_CCER_CC1NP            TIM_CCER_CC1NP_Msk                           /*!<Capture/Compare 1 Complementary output Polarity */
10801 #define TIM_CCER_CC2E_Pos         (4U)
10802 #define TIM_CCER_CC2E_Msk         (0x1UL << TIM_CCER_CC2E_Pos)                 /*!< 0x00000010 */
10803 #define TIM_CCER_CC2E             TIM_CCER_CC2E_Msk                            /*!<Capture/Compare 2 output enable */
10804 #define TIM_CCER_CC2P_Pos         (5U)
10805 #define TIM_CCER_CC2P_Msk         (0x1UL << TIM_CCER_CC2P_Pos)                 /*!< 0x00000020 */
10806 #define TIM_CCER_CC2P             TIM_CCER_CC2P_Msk                            /*!<Capture/Compare 2 output Polarity */
10807 #define TIM_CCER_CC2NE_Pos        (6U)
10808 #define TIM_CCER_CC2NE_Msk        (0x1UL << TIM_CCER_CC2NE_Pos)                /*!< 0x00000040 */
10809 #define TIM_CCER_CC2NE            TIM_CCER_CC2NE_Msk                           /*!<Capture/Compare 2 Complementary output enable */
10810 #define TIM_CCER_CC2NP_Pos        (7U)
10811 #define TIM_CCER_CC2NP_Msk        (0x1UL << TIM_CCER_CC2NP_Pos)                /*!< 0x00000080 */
10812 #define TIM_CCER_CC2NP            TIM_CCER_CC2NP_Msk                           /*!<Capture/Compare 2 Complementary output Polarity */
10813 #define TIM_CCER_CC3E_Pos         (8U)
10814 #define TIM_CCER_CC3E_Msk         (0x1UL << TIM_CCER_CC3E_Pos)                 /*!< 0x00000100 */
10815 #define TIM_CCER_CC3E             TIM_CCER_CC3E_Msk                            /*!<Capture/Compare 3 output enable */
10816 #define TIM_CCER_CC3P_Pos         (9U)
10817 #define TIM_CCER_CC3P_Msk         (0x1UL << TIM_CCER_CC3P_Pos)                 /*!< 0x00000200 */
10818 #define TIM_CCER_CC3P             TIM_CCER_CC3P_Msk                            /*!<Capture/Compare 3 output Polarity */
10819 #define TIM_CCER_CC3NE_Pos        (10U)
10820 #define TIM_CCER_CC3NE_Msk        (0x1UL << TIM_CCER_CC3NE_Pos)                /*!< 0x00000400 */
10821 #define TIM_CCER_CC3NE            TIM_CCER_CC3NE_Msk                           /*!<Capture/Compare 3 Complementary output enable */
10822 #define TIM_CCER_CC3NP_Pos        (11U)
10823 #define TIM_CCER_CC3NP_Msk        (0x1UL << TIM_CCER_CC3NP_Pos)                /*!< 0x00000800 */
10824 #define TIM_CCER_CC3NP            TIM_CCER_CC3NP_Msk                           /*!<Capture/Compare 3 Complementary output Polarity */
10825 #define TIM_CCER_CC4E_Pos         (12U)
10826 #define TIM_CCER_CC4E_Msk         (0x1UL << TIM_CCER_CC4E_Pos)                 /*!< 0x00001000 */
10827 #define TIM_CCER_CC4E             TIM_CCER_CC4E_Msk                            /*!<Capture/Compare 4 output enable */
10828 #define TIM_CCER_CC4P_Pos         (13U)
10829 #define TIM_CCER_CC4P_Msk         (0x1UL << TIM_CCER_CC4P_Pos)                 /*!< 0x00002000 */
10830 #define TIM_CCER_CC4P             TIM_CCER_CC4P_Msk                            /*!<Capture/Compare 4 output Polarity */
10831 #define TIM_CCER_CC4NP_Pos        (15U)
10832 #define TIM_CCER_CC4NP_Msk        (0x1UL << TIM_CCER_CC4NP_Pos)                /*!< 0x00008000 */
10833 #define TIM_CCER_CC4NP            TIM_CCER_CC4NP_Msk                           /*!<Capture/Compare 4 Complementary output Polarity */
10834 #define TIM_CCER_CC5E_Pos         (16U)
10835 #define TIM_CCER_CC5E_Msk         (0x1UL << TIM_CCER_CC5E_Pos)                 /*!< 0x00010000 */
10836 #define TIM_CCER_CC5E             TIM_CCER_CC5E_Msk                            /*!<Capture/Compare 5 output enable */
10837 #define TIM_CCER_CC5P_Pos         (17U)
10838 #define TIM_CCER_CC5P_Msk         (0x1UL << TIM_CCER_CC5P_Pos)                 /*!< 0x00020000 */
10839 #define TIM_CCER_CC5P             TIM_CCER_CC5P_Msk                            /*!<Capture/Compare 5 output Polarity */
10840 #define TIM_CCER_CC6E_Pos         (20U)
10841 #define TIM_CCER_CC6E_Msk         (0x1UL << TIM_CCER_CC6E_Pos)                 /*!< 0x00100000 */
10842 #define TIM_CCER_CC6E             TIM_CCER_CC6E_Msk                            /*!<Capture/Compare 6 output enable */
10843 #define TIM_CCER_CC6P_Pos         (21U)
10844 #define TIM_CCER_CC6P_Msk         (0x1UL << TIM_CCER_CC6P_Pos)                 /*!< 0x00200000 */
10845 #define TIM_CCER_CC6P             TIM_CCER_CC6P_Msk                            /*!<Capture/Compare 6 output Polarity */
10846 
10847 /*******************  Bit definition for TIM_CNT register  ********************/
10848 #define TIM_CNT_CNT_Pos           (0U)
10849 #define TIM_CNT_CNT_Msk           (0xFFFFFFFFUL << TIM_CNT_CNT_Pos)            /*!< 0xFFFFFFFF */
10850 #define TIM_CNT_CNT               TIM_CNT_CNT_Msk                              /*!<Counter Value */
10851 #define TIM_CNT_UIFCPY_Pos        (31U)
10852 #define TIM_CNT_UIFCPY_Msk        (0x1UL << TIM_CNT_UIFCPY_Pos)                /*!< 0x80000000 */
10853 #define TIM_CNT_UIFCPY            TIM_CNT_UIFCPY_Msk                           /*!<Update interrupt flag copy (if UIFREMAP=1) */
10854 
10855 /*******************  Bit definition for TIM_PSC register  ********************/
10856 #define TIM_PSC_PSC_Pos           (0U)
10857 #define TIM_PSC_PSC_Msk           (0xFFFFUL << TIM_PSC_PSC_Pos)                /*!< 0x0000FFFF */
10858 #define TIM_PSC_PSC               TIM_PSC_PSC_Msk                              /*!<Prescaler Value */
10859 
10860 /*******************  Bit definition for TIM_ARR register  ********************/
10861 #define TIM_ARR_ARR_Pos           (0U)
10862 #define TIM_ARR_ARR_Msk           (0xFFFFFFFFUL << TIM_ARR_ARR_Pos)            /*!< 0xFFFFFFFF */
10863 #define TIM_ARR_ARR               TIM_ARR_ARR_Msk                              /*!<Actual auto-reload Value */
10864 
10865 /*******************  Bit definition for TIM_RCR register  ********************/
10866 #define TIM_RCR_REP_Pos           (0U)
10867 #define TIM_RCR_REP_Msk           (0xFFFFUL << TIM_RCR_REP_Pos)                /*!< 0x0000FFFF */
10868 #define TIM_RCR_REP               TIM_RCR_REP_Msk                              /*!<Repetition Counter Value */
10869 
10870 /*******************  Bit definition for TIM_CCR1 register  *******************/
10871 #define TIM_CCR1_CCR1_Pos         (0U)
10872 #define TIM_CCR1_CCR1_Msk         (0xFFFFFFFFUL << TIM_CCR1_CCR1_Pos)          /*!< 0xFFFFFFFF */
10873 #define TIM_CCR1_CCR1             TIM_CCR1_CCR1_Msk                            /*!<Capture/Compare 1 Value */
10874 
10875 /*******************  Bit definition for TIM_CCR2 register  *******************/
10876 #define TIM_CCR2_CCR2_Pos         (0U)
10877 #define TIM_CCR2_CCR2_Msk         (0xFFFFFFFFUL << TIM_CCR2_CCR2_Pos)          /*!< 0xFFFFFFFF */
10878 #define TIM_CCR2_CCR2             TIM_CCR2_CCR2_Msk                            /*!<Capture/Compare 2 Value */
10879 
10880 /*******************  Bit definition for TIM_CCR3 register  *******************/
10881 #define TIM_CCR3_CCR3_Pos         (0U)
10882 #define TIM_CCR3_CCR3_Msk         (0xFFFFFFFFUL << TIM_CCR3_CCR3_Pos)          /*!< 0xFFFFFFFF */
10883 #define TIM_CCR3_CCR3             TIM_CCR3_CCR3_Msk                            /*!<Capture/Compare 3 Value */
10884 
10885 /*******************  Bit definition for TIM_CCR4 register  *******************/
10886 #define TIM_CCR4_CCR4_Pos         (0U)
10887 #define TIM_CCR4_CCR4_Msk         (0xFFFFFFFFUL << TIM_CCR4_CCR4_Pos)          /*!< 0xFFFFFFFF */
10888 #define TIM_CCR4_CCR4             TIM_CCR4_CCR4_Msk                            /*!<Capture/Compare 4 Value */
10889 
10890 /*******************  Bit definition for TIM_CCR5 register  *******************/
10891 #define TIM_CCR5_CCR5_Pos         (0U)
10892 #define TIM_CCR5_CCR5_Msk         (0xFFFFUL << TIM_CCR5_CCR5_Pos)              /*!< 0x0000FFFF */
10893 #define TIM_CCR5_CCR5             TIM_CCR5_CCR5_Msk                            /*!<Capture/Compare 5 Value */
10894 #define TIM_CCR5_GC5C1_Pos        (29U)
10895 #define TIM_CCR5_GC5C1_Msk        (0x1UL << TIM_CCR5_GC5C1_Pos)                /*!< 0x20000000 */
10896 #define TIM_CCR5_GC5C1            TIM_CCR5_GC5C1_Msk                           /*!<Group Channel 5 and Channel 1 */
10897 #define TIM_CCR5_GC5C2_Pos        (30U)
10898 #define TIM_CCR5_GC5C2_Msk        (0x1UL << TIM_CCR5_GC5C2_Pos)                /*!< 0x40000000 */
10899 #define TIM_CCR5_GC5C2            TIM_CCR5_GC5C2_Msk                           /*!<Group Channel 5 and Channel 2 */
10900 #define TIM_CCR5_GC5C3_Pos        (31U)
10901 #define TIM_CCR5_GC5C3_Msk        (0x1UL << TIM_CCR5_GC5C3_Pos)                /*!< 0x80000000 */
10902 #define TIM_CCR5_GC5C3            TIM_CCR5_GC5C3_Msk                           /*!<Group Channel 5 and Channel 3 */
10903 
10904 /*******************  Bit definition for TIM_CCR6 register  *******************/
10905 #define TIM_CCR6_CCR6_Pos         (0U)
10906 #define TIM_CCR6_CCR6_Msk         (0xFFFFUL << TIM_CCR6_CCR6_Pos)              /*!< 0x0000FFFF */
10907 #define TIM_CCR6_CCR6             TIM_CCR6_CCR6_Msk                            /*!<Capture/Compare 6 Value */
10908 
10909 /*******************  Bit definition for TIM_BDTR register  *******************/
10910 #define TIM_BDTR_DTG_Pos          (0U)
10911 #define TIM_BDTR_DTG_Msk          (0xFFUL << TIM_BDTR_DTG_Pos)                 /*!< 0x000000FF */
10912 #define TIM_BDTR_DTG              TIM_BDTR_DTG_Msk                             /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
10913 #define TIM_BDTR_DTG_0            (0x01UL << TIM_BDTR_DTG_Pos)                 /*!< 0x00000001 */
10914 #define TIM_BDTR_DTG_1            (0x02UL << TIM_BDTR_DTG_Pos)                 /*!< 0x00000002 */
10915 #define TIM_BDTR_DTG_2            (0x04UL << TIM_BDTR_DTG_Pos)                 /*!< 0x00000004 */
10916 #define TIM_BDTR_DTG_3            (0x08UL << TIM_BDTR_DTG_Pos)                 /*!< 0x00000008 */
10917 #define TIM_BDTR_DTG_4            (0x10UL << TIM_BDTR_DTG_Pos)                 /*!< 0x00000010 */
10918 #define TIM_BDTR_DTG_5            (0x20UL << TIM_BDTR_DTG_Pos)                 /*!< 0x00000020 */
10919 #define TIM_BDTR_DTG_6            (0x40UL << TIM_BDTR_DTG_Pos)                 /*!< 0x00000040 */
10920 #define TIM_BDTR_DTG_7            (0x80UL << TIM_BDTR_DTG_Pos)                 /*!< 0x00000080 */
10921 
10922 #define TIM_BDTR_LOCK_Pos         (8U)
10923 #define TIM_BDTR_LOCK_Msk         (0x3UL << TIM_BDTR_LOCK_Pos)                 /*!< 0x00000300 */
10924 #define TIM_BDTR_LOCK             TIM_BDTR_LOCK_Msk                            /*!<LOCK[1:0] bits (Lock Configuration) */
10925 #define TIM_BDTR_LOCK_0           (0x1UL << TIM_BDTR_LOCK_Pos)                 /*!< 0x00000100 */
10926 #define TIM_BDTR_LOCK_1           (0x2UL << TIM_BDTR_LOCK_Pos)                 /*!< 0x00000200 */
10927 
10928 #define TIM_BDTR_OSSI_Pos         (10U)
10929 #define TIM_BDTR_OSSI_Msk         (0x1UL << TIM_BDTR_OSSI_Pos)                 /*!< 0x00000400 */
10930 #define TIM_BDTR_OSSI             TIM_BDTR_OSSI_Msk                            /*!<Off-State Selection for Idle mode */
10931 #define TIM_BDTR_OSSR_Pos         (11U)
10932 #define TIM_BDTR_OSSR_Msk         (0x1UL << TIM_BDTR_OSSR_Pos)                 /*!< 0x00000800 */
10933 #define TIM_BDTR_OSSR             TIM_BDTR_OSSR_Msk                            /*!<Off-State Selection for Run mode */
10934 #define TIM_BDTR_BKE_Pos          (12U)
10935 #define TIM_BDTR_BKE_Msk          (0x1UL << TIM_BDTR_BKE_Pos)                  /*!< 0x00001000 */
10936 #define TIM_BDTR_BKE              TIM_BDTR_BKE_Msk                             /*!<Break enable for Break 1 */
10937 #define TIM_BDTR_BKP_Pos          (13U)
10938 #define TIM_BDTR_BKP_Msk          (0x1UL << TIM_BDTR_BKP_Pos)                  /*!< 0x00002000 */
10939 #define TIM_BDTR_BKP              TIM_BDTR_BKP_Msk                             /*!<Break Polarity for Break 1 */
10940 #define TIM_BDTR_AOE_Pos          (14U)
10941 #define TIM_BDTR_AOE_Msk          (0x1UL << TIM_BDTR_AOE_Pos)                  /*!< 0x00004000 */
10942 #define TIM_BDTR_AOE              TIM_BDTR_AOE_Msk                             /*!<Automatic Output enable */
10943 #define TIM_BDTR_MOE_Pos          (15U)
10944 #define TIM_BDTR_MOE_Msk          (0x1UL << TIM_BDTR_MOE_Pos)                  /*!< 0x00008000 */
10945 #define TIM_BDTR_MOE              TIM_BDTR_MOE_Msk                             /*!<Main Output enable */
10946 
10947 #define TIM_BDTR_BKF_Pos          (16U)
10948 #define TIM_BDTR_BKF_Msk          (0xFUL << TIM_BDTR_BKF_Pos)                  /*!< 0x000F0000 */
10949 #define TIM_BDTR_BKF              TIM_BDTR_BKF_Msk                             /*!<Break Filter for Break 1 */
10950 #define TIM_BDTR_BK2F_Pos         (20U)
10951 #define TIM_BDTR_BK2F_Msk         (0xFUL << TIM_BDTR_BK2F_Pos)                 /*!< 0x00F00000 */
10952 #define TIM_BDTR_BK2F             TIM_BDTR_BK2F_Msk                            /*!<Break Filter for Break 2 */
10953 
10954 #define TIM_BDTR_BK2E_Pos         (24U)
10955 #define TIM_BDTR_BK2E_Msk         (0x1UL << TIM_BDTR_BK2E_Pos)                 /*!< 0x01000000 */
10956 #define TIM_BDTR_BK2E             TIM_BDTR_BK2E_Msk                            /*!<Break enable for Break 2 */
10957 #define TIM_BDTR_BK2P_Pos         (25U)
10958 #define TIM_BDTR_BK2P_Msk         (0x1UL << TIM_BDTR_BK2P_Pos)                 /*!< 0x02000000 */
10959 #define TIM_BDTR_BK2P             TIM_BDTR_BK2P_Msk                            /*!<Break Polarity for Break 2 */
10960 
10961 
10962 #define TIM_BDTR_BKDSRM_Pos       (26U)
10963 #define TIM_BDTR_BKDSRM_Msk       (0x1UL << TIM_BDTR_BKDSRM_Pos)               /*!< 0x04000000 */
10964 #define TIM_BDTR_BKDSRM           TIM_BDTR_BKDSRM_Msk                          /*!<Break disarming/re-arming */
10965 #define TIM_BDTR_BK2DSRM_Pos      (27U)
10966 #define TIM_BDTR_BK2DSRM_Msk      (0x1UL << TIM_BDTR_BK2DSRM_Pos)              /*!< 0x08000000 */
10967 #define TIM_BDTR_BK2DSRM          TIM_BDTR_BK2DSRM_Msk                         /*!<Break2 disarming/re-arming */
10968 
10969 #define TIM_BDTR_BKBID_Pos        (28U)
10970 #define TIM_BDTR_BKBID_Msk        (0x1UL << TIM_BDTR_BKBID_Pos)                /*!< 0x10000000 */
10971 #define TIM_BDTR_BKBID            TIM_BDTR_BKBID_Msk                           /*!<Break BIDirectional */
10972 #define TIM_BDTR_BK2BID_Pos       (29U)
10973 #define TIM_BDTR_BK2BID_Msk       (0x1UL << TIM_BDTR_BK2BID_Pos)               /*!< 0x20000000 */
10974 #define TIM_BDTR_BK2BID           TIM_BDTR_BK2BID_Msk                          /*!<Break2 BIDirectional */
10975 /*******************  Bit definition for TIM_DCR register  ********************/
10976 #define TIM_DCR_DBA_Pos           (0U)
10977 #define TIM_DCR_DBA_Msk           (0x1FUL << TIM_DCR_DBA_Pos)                  /*!< 0x0000001F */
10978 #define TIM_DCR_DBA               TIM_DCR_DBA_Msk                              /*!<DBA[4:0] bits (DMA Base Address) */
10979 #define TIM_DCR_DBA_0             (0x01UL << TIM_DCR_DBA_Pos)                  /*!< 0x00000001 */
10980 #define TIM_DCR_DBA_1             (0x02UL << TIM_DCR_DBA_Pos)                  /*!< 0x00000002 */
10981 #define TIM_DCR_DBA_2             (0x04UL << TIM_DCR_DBA_Pos)                  /*!< 0x00000004 */
10982 #define TIM_DCR_DBA_3             (0x08UL << TIM_DCR_DBA_Pos)                  /*!< 0x00000008 */
10983 #define TIM_DCR_DBA_4             (0x10UL << TIM_DCR_DBA_Pos)                  /*!< 0x00000010 */
10984 
10985 #define TIM_DCR_DBL_Pos           (8U)
10986 #define TIM_DCR_DBL_Msk           (0x1FUL << TIM_DCR_DBL_Pos)                  /*!< 0x00001F00 */
10987 #define TIM_DCR_DBL               TIM_DCR_DBL_Msk                              /*!<DBL[4:0] bits (DMA Burst Length) */
10988 #define TIM_DCR_DBL_0             (0x01UL << TIM_DCR_DBL_Pos)                  /*!< 0x00000100 */
10989 #define TIM_DCR_DBL_1             (0x02UL << TIM_DCR_DBL_Pos)                  /*!< 0x00000200 */
10990 #define TIM_DCR_DBL_2             (0x04UL << TIM_DCR_DBL_Pos)                  /*!< 0x00000400 */
10991 #define TIM_DCR_DBL_3             (0x08UL << TIM_DCR_DBL_Pos)                  /*!< 0x00000800 */
10992 #define TIM_DCR_DBL_4             (0x10UL << TIM_DCR_DBL_Pos)                  /*!< 0x00001000 */
10993 
10994 /*******************  Bit definition for TIM_DMAR register  *******************/
10995 #define TIM_DMAR_DMAB_Pos         (0U)
10996 #define TIM_DMAR_DMAB_Msk         (0xFFFFUL << TIM_DMAR_DMAB_Pos)              /*!< 0x0000FFFF */
10997 #define TIM_DMAR_DMAB             TIM_DMAR_DMAB_Msk                            /*!<DMA register for burst accesses */
10998 
10999 /*******************  Bit definition for TIM1_OR1 register  ******************/
11000 #define TIM1_OR1_ETR_ADC_RMP_Pos   (0U)
11001 #define TIM1_OR1_ETR_ADC_RMP_Msk   (0x3UL << TIM1_OR1_ETR_ADC_RMP_Pos)         /*!< 0x00000003 */
11002 #define TIM1_OR1_ETR_ADC_RMP       TIM1_OR1_ETR_ADC_RMP_Msk                    /*!< TIM1_ETR_ADC remapping capability */
11003 #define TIM1_OR1_ETR_ADC_RMP_0     (0x1UL << TIM1_OR1_ETR_ADC_RMP_Pos)         /*!< 0x00000001 */
11004 #define TIM1_OR1_ETR_ADC_RMP_1     (0x2UL << TIM1_OR1_ETR_ADC_RMP_Pos)         /*!< 0x00000002 */
11005 #define TIM1_OR1_TI1_RMP_Pos       (4U)
11006 #define TIM1_OR1_TI1_RMP_Msk       (0x1UL << TIM1_OR1_TI1_RMP_Pos)             /*!< 0x00000010 */
11007 #define TIM1_OR1_TI1_RMP           TIM1_OR1_TI1_RMP_Msk                        /*!< Input Capture 1 remap*/
11008 
11009 /*******************  Bit definition for TIM2_OR1 register  ******************/
11010 #define TIM2_OR1_TI4_RMP_Pos       (2U)
11011 #define TIM2_OR1_TI4_RMP_Msk       (0x3UL << TIM2_OR1_TI4_RMP_Pos)             /*!< 0x0000000C */
11012 #define TIM2_OR1_TI4_RMP           TIM2_OR1_TI4_RMP_Msk                        /*!< TI4 RMA[1:0]Input capture 4 remap*/
11013 #define TIM2_OR1_TI4_RMP_0         (0x1UL << TIM2_OR1_TI4_RMP_Pos)             /*!< 0x00000004 */
11014 #define TIM2_OR1_TI4_RMP_1         (0x2UL << TIM2_OR1_TI4_RMP_Pos)             /*!< 0x00000008 */
11015 #define TIM2_OR1_ETR_RMP_Pos       (1U)
11016 #define TIM2_OR1_ETR_RMP_Msk       (0x1UL << TIM2_OR1_ETR_RMP_Pos)             /*!< 0x00000002 */
11017 #define TIM2_OR1_ETR_RMP           TIM2_OR1_ETR_RMP_Msk                        /*!< External trigger remap*/
11018 
11019 /*******************  Bit definition for TIM16_OR1 register  *****************/
11020 #define TIM16_OR1_TI1_RMP_Pos      (0U)
11021 #define TIM16_OR1_TI1_RMP_Msk      (0x3UL << TIM16_OR1_TI1_RMP_Pos)            /*!< 0x00000003 */
11022 #define TIM16_OR1_TI1_RMP          TIM16_OR1_TI1_RMP_Msk                       /*!<Timer 16 input 1 connection. */
11023 #define TIM16_OR1_TI1_RMP_0        (0x1UL << TIM16_OR1_TI1_RMP_Pos)            /*!< 0x00000001 */
11024 #define TIM16_OR1_TI1_RMP_1        (0x2UL << TIM16_OR1_TI1_RMP_Pos)            /*!< 0x00000002 */
11025 
11026 /*******************  Bit definition for TIM17_OR1 register  *****************/
11027 #define TIM17_OR1_TI1_RMP_Pos      (0U)
11028 #define TIM17_OR1_TI1_RMP_Msk      (0x3UL << TIM17_OR1_TI1_RMP_Pos)            /*!< 0x00000003 */
11029 #define TIM17_OR1_TI1_RMP          TIM17_OR1_TI1_RMP_Msk                       /*!<Timer 17 input 1 connection. */
11030 #define TIM17_OR1_TI1_RMP_0        (0x1UL << TIM17_OR1_TI1_RMP_Pos)            /*!< 0x00000001 */
11031 #define TIM17_OR1_TI1_RMP_1        (0x2UL << TIM17_OR1_TI1_RMP_Pos)            /*!< 0x00000002 */
11032 
11033 /*******************  Bit definition for TIM1_AF1 register  *******************/
11034 #define TIM1_AF1_BKINE_Pos        (0U)
11035 #define TIM1_AF1_BKINE_Msk        (0x1UL << TIM1_AF1_BKINE_Pos)                /*!< 0x00000001 */
11036 #define TIM1_AF1_BKINE            TIM1_AF1_BKINE_Msk                           /*!<BRK BKIN input enable */
11037 #define TIM1_AF1_BKCMP1E_Pos      (1U)
11038 #define TIM1_AF1_BKCMP1E_Msk      (0x1UL << TIM1_AF1_BKCMP1E_Pos)              /*!< 0x00000002 */
11039 #define TIM1_AF1_BKCMP1E          TIM1_AF1_BKCMP1E_Msk                         /*!<BRK COMP1 enable */
11040 #define TIM1_AF1_BKCMP2E_Pos      (2U)
11041 #define TIM1_AF1_BKCMP2E_Msk      (0x1UL << TIM1_AF1_BKCMP2E_Pos)              /*!< 0x00000004 */
11042 #define TIM1_AF1_BKCMP2E          TIM1_AF1_BKCMP2E_Msk                         /*!<BRK COMP2 enable */
11043 #define TIM1_AF1_BKINP_Pos        (9U)
11044 #define TIM1_AF1_BKINP_Msk        (0x1UL << TIM1_AF1_BKINP_Pos)                /*!< 0x00000200 */
11045 #define TIM1_AF1_BKINP            TIM1_AF1_BKINP_Msk                           /*!<BRK BKIN input polarity */
11046 #define TIM1_AF1_BKCMP1P_Pos      (10U)
11047 #define TIM1_AF1_BKCMP1P_Msk      (0x1UL << TIM1_AF1_BKCMP1P_Pos)              /*!< 0x00000400 */
11048 #define TIM1_AF1_BKCMP1P          TIM1_AF1_BKCMP1P_Msk                         /*!<BRK COMP1 input polarity */
11049 #define TIM1_AF1_BKCMP2P_Pos      (11U)
11050 #define TIM1_AF1_BKCMP2P_Msk      (0x1UL << TIM1_AF1_BKCMP2P_Pos)              /*!< 0x00000800 */
11051 #define TIM1_AF1_BKCMP2P          TIM1_AF1_BKCMP2P_Msk                         /*!<BRK COMP2 input polarity */
11052 #define TIM1_AF1_ETRSEL_Pos       (14U)
11053 #define TIM1_AF1_ETRSEL_Msk       (0xFUL << TIM1_AF1_ETRSEL_Pos)               /*!< 0x0003C000 */
11054 #define TIM1_AF1_ETRSEL           TIM1_AF1_ETRSEL_Msk                          /*!<ETRSEL[3:0] bits (TIM1 ETR source selection) */
11055 #define TIM1_AF1_ETRSEL_0         (0x1UL << TIM1_AF1_ETRSEL_Pos)               /*!< 0x00004000 */
11056 #define TIM1_AF1_ETRSEL_1         (0x2UL << TIM1_AF1_ETRSEL_Pos)               /*!< 0x00008000 */
11057 #define TIM1_AF1_ETRSEL_2         (0x4UL << TIM1_AF1_ETRSEL_Pos)               /*!< 0x00010000 */
11058 #define TIM1_AF1_ETRSEL_3         (0x8UL << TIM1_AF1_ETRSEL_Pos)               /*!< 0x00020000 */
11059 
11060 /*******************  Bit definition for TIM2_AF1 register  *******************/
11061 #define TIM2_AF1_ETRSEL_Pos       (14U)
11062 #define TIM2_AF1_ETRSEL_Msk       (0xFUL << TIM2_AF1_ETRSEL_Pos)               /*!< 0x0003C000 */
11063 #define TIM2_AF1_ETRSEL           (0x00003C000)                                /*!< External trigger source selection */
11064 #define TIM2_AF1_ETRSEL_0         (0x000004000)                                /*!< Bit_0 */
11065 #define TIM2_AF1_ETRSEL_1         (0x000008000)                                /*!< Bit_1 */
11066 #define TIM2_AF1_ETRSEL_2         (0x000010000)                                /*!< Bit_2 */
11067 #define TIM2_AF1_ETRSEL_3         (0x000020000)                                /*!< Bit_3 */
11068 
11069 /*******************  Bit definition for TIM16_AF1 register  *******************/
11070 #define TIM16_AF1_BKINE_Pos       (0U)
11071 #define TIM16_AF1_BKINE_Msk       (0x1UL << TIM16_AF1_BKINE_Pos)               /*!< 0x00000001 */
11072 #define TIM16_AF1_BKINE            TIM16_AF1_BKINE_Msk                         /*!<BRK BKIN input enable */
11073 #define TIM16_AF1_BKCMP1E_Pos     (1U)
11074 #define TIM16_AF1_BKCMP1E_Msk     (0x1UL << TIM16_AF1_BKCMP1E_Pos)             /*!< 0x00000002 */
11075 #define TIM16_AF1_BKCMP1E         TIM16_AF1_BKCMP1E_Msk                        /*!<BRK COMP1 enable */
11076 #define TIM16_AF1_BKCMP2E_Pos     (2U)
11077 #define TIM16_AF1_BKCMP2E_Msk     (0x1UL << TIM16_AF1_BKCMP2E_Pos)             /*!< 0x00000004 */
11078 #define TIM16_AF1_BKCMP2E         TIM16_AF1_BKCMP2E_Msk                        /*!<BRK COMP2 enable */
11079 #define TIM16_AF1_BKINP_Pos       (9U)
11080 #define TIM16_AF1_BKINP_Msk       (0x1UL << TIM16_AF1_BKINP_Pos)               /*!< 0x00000200 */
11081 #define TIM16_AF1_BKINP           TIM16_AF1_BKINP_Msk                          /*!<BRK BKIN2 input polarity */
11082 #define TIM16_AF1_BKCMP1P_Pos     (10U)
11083 #define TIM16_AF1_BKCMP1P_Msk     (0x1UL << TIM16_AF1_BKCMP1P_Pos)             /*!< 0x00000400 */
11084 #define TIM16_AF1_BKCMP1P         TIM16_AF1_BKCMP1P_Msk                        /*!<BRK COMP1 input polarity */
11085 #define TIM16_AF1_BKCMP2P_Pos     (11U)
11086 #define TIM16_AF1_BKCMP2P_Msk     (0x1UL << TIM16_AF1_BKCMP2P_Pos)             /*!< 0x00000800 */
11087 #define TIM16_AF1_BKCMP2P         TIM16_AF1_BKCMP2P_Msk                        /*!<BRK COMP2 input polarity */
11088 
11089 /*******************  Bit definition for TIM17_AF1 register  *******************/
11090 #define TIM17_AF1_BKINE_Pos       (0U)
11091 #define TIM17_AF1_BKINE_Msk       (0x1UL << TIM17_AF1_BKINE_Pos)               /*!< 0x00000001 */
11092 #define TIM17_AF1_BKINE           TIM17_AF1_BKINE_Msk                          /*!<BRK BKIN input enable */
11093 #define TIM17_AF1_BKCMP1E_Pos     (1U)
11094 #define TIM17_AF1_BKCMP1E_Msk     (0x1UL << TIM17_AF1_BKCMP1E_Pos)             /*!< 0x00000002 */
11095 #define TIM17_AF1_BKCMP1E         TIM17_AF1_BKCMP1E_Msk                        /*!<BRK COMP1 enable */
11096 #define TIM17_AF1_BKCMP2E_Pos     (2U)
11097 #define TIM17_AF1_BKCMP2E_Msk     (0x1UL << TIM17_AF1_BKCMP2E_Pos)             /*!< 0x00000004 */
11098 #define TIM17_AF1_BKCMP2E         TIM17_AF1_BKCMP2E_Msk                        /*!<BRK COMP2 enable */
11099 #define TIM17_AF1_BKINP_Pos       (9U)
11100 #define TIM17_AF1_BKINP_Msk       (0x1UL << TIM17_AF1_BKINP_Pos)               /*!< 0x00000200 */
11101 #define TIM17_AF1_BKINP           TIM17_AF1_BKINP_Msk                          /*!<BRK BKIN2 input polarity */
11102 #define TIM17_AF1_BKCMP1P_Pos     (10U)
11103 #define TIM17_AF1_BKCMP1P_Msk     (0x1UL << TIM17_AF1_BKCMP1P_Pos)             /*!< 0x00000400 */
11104 #define TIM17_AF1_BKCMP1P         TIM17_AF1_BKCMP1P_Msk                        /*!<BRK COMP1 input polarity */
11105 #define TIM17_AF1_BKCMP2P_Pos     (11U)
11106 #define TIM17_AF1_BKCMP2P_Msk     (0x1UL << TIM17_AF1_BKCMP2P_Pos)             /*!< 0x00000800 */
11107 #define TIM17_AF1_BKCMP2P         TIM17_AF1_BKCMP2P_Msk                        /*!<BRK COMP2 input polarity */
11108 
11109 /*******************  Bit definition for TIM1_AF2 register  *******************/
11110 #define TIM1_AF2_BK2INE_Pos       (0U)
11111 #define TIM1_AF2_BK2INE_Msk       (0x1UL << TIM1_AF2_BK2INE_Pos)               /*!< 0x00000001 */
11112 #define TIM1_AF2_BK2INE           TIM1_AF2_BK2INE_Msk                          /*!<BRK2 BKIN2 input enable */
11113 #define TIM1_AF2_BK2CMP1E_Pos     (1U)
11114 #define TIM1_AF2_BK2CMP1E_Msk     (0x1UL << TIM1_AF2_BK2CMP1E_Pos)             /*!< 0x00000002 */
11115 #define TIM1_AF2_BK2CMP1E         TIM1_AF2_BK2CMP1E_Msk                        /*!<BRK2 COMP1 enable */
11116 #define TIM1_AF2_BK2CMP2E_Pos     (2U)
11117 #define TIM1_AF2_BK2CMP2E_Msk     (0x1UL << TIM1_AF2_BK2CMP2E_Pos)             /*!< 0x00000004 */
11118 #define TIM1_AF2_BK2CMP2E         TIM1_AF2_BK2CMP2E_Msk                        /*!<BRK2 COMP2 enable */
11119 #define TIM1_AF2_BK2INP_Pos       (9U)
11120 #define TIM1_AF2_BK2INP_Msk       (0x1UL << TIM1_AF2_BK2INP_Pos)               /*!< 0x00000200 */
11121 #define TIM1_AF2_BK2INP           TIM1_AF2_BK2INP_Msk                          /*!<BRK2 BKIN2 input polarity */
11122 #define TIM1_AF2_BK2CMP1P_Pos     (10U)
11123 #define TIM1_AF2_BK2CMP1P_Msk     (0x1UL << TIM1_AF2_BK2CMP1P_Pos)             /*!< 0x00000400 */
11124 #define TIM1_AF2_BK2CMP1P         TIM1_AF2_BK2CMP1P_Msk                        /*!<BRK2 COMP1 input polarity */
11125 #define TIM1_AF2_BK2CMP2P_Pos     (11U)
11126 #define TIM1_AF2_BK2CMP2P_Msk     (0x1UL << TIM1_AF2_BK2CMP2P_Pos)             /*!< 0x00000800 */
11127 #define TIM1_AF2_BK2CMP2P         TIM1_AF2_BK2CMP2P_Msk                        /*!<BRK2 COMP2 input polarity */
11128 
11129 
11130 /** @addtogroup Exported_macros
11131   * @{
11132   */
11133 
11134 /*!< Root Secure Service Library */
11135 /*!< HDP Area constant definition */
11136 #define RSSLIB_HDP_AREA_Pos       (0U)
11137 #define RSSLIB_HDP_AREA_Msk       (0x3UL << RSSLIB_HDP_AREA_Pos)
11138 #define RSSLIB_HDP_AREA1_Msk      (0x1UL << RSSLIB_HDP_AREA_Pos)
11139 #define RSSLIB_HDP_AREA1          RSSLIB_HDP_AREA1_Msk
11140 
11141 /**
11142   * @brief  Prototype of RSSLIB Close and exit HDP Function
11143   * @detail This function close the requested hdp area passed in input
11144   *         parameter and jump to the reset handler present within the
11145   *         Vector table. The function does not return on successful execution.
11146   * @param  HdpArea notifies which hdp area to close.
11147   * @param  pointer on the vector table containing the reset handler the function
11148   *         jumps to.
11149   * @retval No return value.
11150   */
11151 typedef void (*RSSLIB_S_CloseExitHDP_t)(uint32_t hdp_area, uint32_t jump_addr);
11152 
11153 /**
11154   * @brief RSSLib function pointer structure
11155   */
11156 typedef struct
11157 {
11158   RSSLIB_S_CloseExitHDP_t CloseExitHDP;
11159 }RSSLIB_pFunc_TypeDef;
11160 
11161 #define RSSLIB_PFUNC                  ((RSSLIB_pFunc_TypeDef *)RSSLIB_PFUNC_BASE)
11162 
11163 /******************************* ADC Instances ********************************/
11164 #define IS_ADC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == ADC)
11165 
11166 #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC_COMMON)
11167 
11168 /******************************* AES Instances ********************************/
11169 #define IS_AES_ALL_INSTANCE(INSTANCE) ((INSTANCE) == AES)
11170 
11171 /******************************** COMP Instances ******************************/
11172 #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \
11173                                         ((INSTANCE) == COMP2))
11174 
11175 #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON)
11176 
11177 /******************************* CRC Instances ********************************/
11178 #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
11179 
11180 /******************************* DAC Instances ********************************/
11181 #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC)
11182 
11183 /******************************** DMA Instances *******************************/
11184 #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \
11185                                        ((INSTANCE) == DMA1_Channel2) || \
11186                                        ((INSTANCE) == DMA1_Channel3) || \
11187                                        ((INSTANCE) == DMA1_Channel4) || \
11188                                        ((INSTANCE) == DMA1_Channel5) || \
11189                                        ((INSTANCE) == DMA1_Channel6) || \
11190                                        ((INSTANCE) == DMA1_Channel7) || \
11191                                        ((INSTANCE) == DMA2_Channel1) || \
11192                                        ((INSTANCE) == DMA2_Channel2) || \
11193                                        ((INSTANCE) == DMA2_Channel3) || \
11194                                        ((INSTANCE) == DMA2_Channel4) || \
11195                                        ((INSTANCE) == DMA2_Channel5) || \
11196                                        ((INSTANCE) == DMA2_Channel6) || \
11197                                        ((INSTANCE) == DMA2_Channel7))
11198 
11199 /******************************* GPIO Instances *******************************/
11200 #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
11201                                         ((INSTANCE) == GPIOB) || \
11202                                         ((INSTANCE) == GPIOC) || \
11203                                         ((INSTANCE) == GPIOH))
11204 
11205 /******************************* GPIO AF Instances ****************************/
11206 #define IS_GPIO_AF_INSTANCE(INSTANCE)   IS_GPIO_ALL_INSTANCE(INSTANCE)
11207 
11208 /**************************** GPIO Lock Instances *****************************/
11209 #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE)
11210 
11211 /******************************** I2C Instances *******************************/
11212 #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
11213                                        ((INSTANCE) == I2C2) || \
11214                                        ((INSTANCE) == I2C3))
11215 
11216 /****************** I2C Instances : wakeup capability from stop modes *********/
11217 #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
11218 
11219 /******************************* SMBUS Instances ******************************/
11220 #define IS_SMBUS_ALL_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE)
11221 
11222 /******************************** I2S Instances *******************************/
11223 #define IS_I2S_ALL_INSTANCE(INSTANCE)  ((INSTANCE) == SPI2)
11224 
11225 /******************************* IPCC Instances ********************************/
11226 #define IS_IPCC_ALL_INSTANCE(INSTANCE)  ((INSTANCE) == IPCC)
11227 
11228 /******************************** HSEM Instances *******************************/
11229 #define IS_HSEM_ALL_INSTANCE(INSTANCE) ((INSTANCE) == HSEM)
11230 
11231 #define HSEM_CPU1_COREID   (0x00000004U) /* Semaphore Core ID */
11232 #define HSEM_CPU2_COREID   (0x00000008U) /* Semaphore Core ID */
11233 
11234 #define HSEM_SEMID_MIN     (0U)       /* HSEM ID Min*/
11235 #define HSEM_SEMID_MAX     (15U)      /* HSEM ID Max */
11236 
11237 #define HSEM_PROCESSID_MIN (0U)       /* HSEM Process ID Min */
11238 #define HSEM_PROCESSID_MAX (255U)     /* HSEM Process ID Max */
11239 
11240 #define HSEM_CLEAR_KEY_MIN (0U)       /* HSEM clear Key Min value */
11241 #define HSEM_CLEAR_KEY_MAX (0xFFFFU)  /* HSEM clear Key Max value */
11242 
11243 /******************************** PKA Instances *******************************/
11244 #define IS_PKA_ALL_INSTANCE(INSTANCE)  ((INSTANCE) == PKA)
11245 
11246 /******************************* RNG Instances ********************************/
11247 #define IS_RNG_ALL_INSTANCE(INSTANCE)  ((INSTANCE) == RNG)
11248 
11249 /****************************** RTC Instances *********************************/
11250 #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
11251 
11252 /****************************** RTC Instances *********************************/
11253 #define IS_TAMP_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TAMP)
11254 
11255 /******************************** SPI Instances *******************************/
11256 #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
11257                                        ((INSTANCE) == SPI2) || \
11258                                        ((INSTANCE) == SUBGHZSPI))
11259 
11260 /******************************** SUBGHZSPI Instances *************************/
11261 #define IS_SUBGHZ_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SUBGHZSPI)
11262 #define IS_SUBGHZ_MODULATION_SUPPORTED(COMMAND,PACKET_TYPE)  \
11263                                    ((((COMMAND) != RADIO_SET_PACKETTYPE)) || \
11264                                     (((COMMAND) == RADIO_SET_PACKETTYPE)  && \
11265                                     (((PACKET_TYPE) == 0x00)              || \
11266                                      ((PACKET_TYPE) > 0x01 ))))
11267 
11268 /****************************** IWDG Instances ********************************/
11269 #define IS_IWDG_ALL_INSTANCE(INSTANCE)  ((INSTANCE) == IWDG)
11270 
11271 /****************************** WWDG Instances ********************************/
11272 #define IS_WWDG_ALL_INSTANCE(INSTANCE)  ((INSTANCE) == WWDG)
11273 
11274 /****************** LPTIM Instances : All supported instances *****************/
11275 #define IS_LPTIM_INSTANCE(INSTANCE)     (((INSTANCE) == LPTIM1) || \
11276                                          ((INSTANCE) == LPTIM2) || \
11277                                          ((INSTANCE) == LPTIM3))
11278 
11279 /****************** LPTIM Instances : Encoder mode ****************************/
11280 #define IS_LPTIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) ((INSTANCE) == LPTIM1)
11281 
11282 /****************** TIM Instances : All supported instances *******************/
11283 #define IS_TIM_INSTANCE(INSTANCE)       (((INSTANCE) == TIM1)   || \
11284                                          ((INSTANCE) == TIM2)   || \
11285                                          ((INSTANCE) == TIM16)  || \
11286                                          ((INSTANCE) == TIM17))
11287 
11288 /****************** TIM Instances : supporting 32 bits counter ****************/
11289 #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) ((INSTANCE) == TIM2)
11290 
11291 /****************** TIM Instances : supporting the break function *************/
11292 #define IS_TIM_BREAK_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1)    || \
11293                                             ((INSTANCE) == TIM16)   || \
11294                                             ((INSTANCE) == TIM17))
11295 
11296 /************** TIM Instances : supporting Break source selection *************/
11297 #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1)   || \
11298                                                ((INSTANCE) == TIM16)  || \
11299                                                ((INSTANCE) == TIM17))
11300 
11301 /****************** TIM Instances : supporting 2 break inputs *****************/
11302 #define IS_TIM_BKIN2_INSTANCE(INSTANCE)    ((INSTANCE) == TIM1)
11303 
11304 /************* TIM Instances : at least 1 capture/compare channel *************/
11305 #define IS_TIM_CC1_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1)   || \
11306                                          ((INSTANCE) == TIM2)   || \
11307                                          ((INSTANCE) == TIM16)  || \
11308                                          ((INSTANCE) == TIM17))
11309 
11310 /************ TIM Instances : at least 2 capture/compare channels *************/
11311 #define IS_TIM_CC2_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1)   || \
11312                                          ((INSTANCE) == TIM2))
11313 
11314 /************ TIM Instances : at least 3 capture/compare channels *************/
11315 #define IS_TIM_CC3_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1)   || \
11316                                          ((INSTANCE) == TIM2))
11317 
11318 /************ TIM Instances : at least 4 capture/compare channels *************/
11319 #define IS_TIM_CC4_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1)   || \
11320                                          ((INSTANCE) == TIM2))
11321 
11322 /****************** TIM Instances : at least 5 capture/compare channels *******/
11323 #define IS_TIM_CC5_INSTANCE(INSTANCE)      ((INSTANCE) == TIM1)
11324 
11325 /****************** TIM Instances : at least 6 capture/compare channels *******/
11326 #define IS_TIM_CC6_INSTANCE(INSTANCE)      ((INSTANCE) == TIM1)
11327 
11328 /****************** TIM Instances : DMA requests generation (TIMx_DIER.UDE) ***/
11329 #define IS_TIM_DMA_INSTANCE(INSTANCE)      (((INSTANCE) == TIM1)   || \
11330                                             ((INSTANCE) == TIM2)   || \
11331                                             ((INSTANCE) == TIM16)  || \
11332                                             ((INSTANCE) == TIM17))
11333 
11334 /************ TIM Instances : DMA requests generation (TIMx_DIER.CCxDE) *******/
11335 #define IS_TIM_DMA_CC_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1)   || \
11336                                             ((INSTANCE) == TIM2)   || \
11337                                             ((INSTANCE) == TIM16)  || \
11338                                             ((INSTANCE) == TIM17))
11339 
11340 /******************** TIM Instances : DMA burst feature ***********************/
11341 #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1)   || \
11342                                             ((INSTANCE) == TIM2)   || \
11343                                             ((INSTANCE) == TIM16)  || \
11344                                             ((INSTANCE) == TIM17))
11345 
11346 /******************* TIM Instances : Timer input selection ********************/
11347 #define IS_TIM_TISEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1)   || \
11348                                          ((INSTANCE) == TIM2)   || \
11349                                          ((INSTANCE) == TIM16)   || \
11350                                          ((INSTANCE) == TIM17))
11351 
11352 /******************* TIM Instances : output(s) available **********************/
11353 #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
11354         ((((INSTANCE) == TIM1) &&                  \
11355            (((CHANNEL) == TIM_CHANNEL_1) ||          \
11356             ((CHANNEL) == TIM_CHANNEL_2) ||          \
11357             ((CHANNEL) == TIM_CHANNEL_3) ||          \
11358             ((CHANNEL) == TIM_CHANNEL_4) ||          \
11359             ((CHANNEL) == TIM_CHANNEL_5) ||          \
11360             ((CHANNEL) == TIM_CHANNEL_6)))           \
11361            ||                                        \
11362            (((INSTANCE) == TIM2) &&                  \
11363            (((CHANNEL) == TIM_CHANNEL_1) ||          \
11364             ((CHANNEL) == TIM_CHANNEL_2) ||          \
11365             ((CHANNEL) == TIM_CHANNEL_3) ||          \
11366             ((CHANNEL) == TIM_CHANNEL_4)))           \
11367            ||                                        \
11368            (((INSTANCE) == TIM16) &&                 \
11369            (((CHANNEL) == TIM_CHANNEL_1)))           \
11370            ||                                        \
11371            (((INSTANCE) == TIM17) &&                 \
11372             (((CHANNEL) == TIM_CHANNEL_1))))
11373 
11374 /****************** TIM Instances : supporting complementary output(s) ********/
11375 #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
11376    ((((INSTANCE) == TIM1) &&                    \
11377      (((CHANNEL) == TIM_CHANNEL_1) ||           \
11378       ((CHANNEL) == TIM_CHANNEL_2) ||           \
11379       ((CHANNEL) == TIM_CHANNEL_3)))            \
11380     ||                                          \
11381     (((INSTANCE) == TIM17) &&                   \
11382      ((CHANNEL) == TIM_CHANNEL_1))              \
11383     ||                                          \
11384     (((INSTANCE) == TIM16) &&                   \
11385      ((CHANNEL) == TIM_CHANNEL_1)))
11386 
11387 
11388 /****************** TIM Instances : supporting clock division *****************/
11389 #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1)    || \
11390                                                     ((INSTANCE) == TIM2)    || \
11391                                                     ((INSTANCE) == TIM16)   || \
11392                                                     ((INSTANCE) == TIM17))
11393 
11394 /****** TIM Instances : supporting external clock mode 1 for ETRF input *******/
11395 #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
11396                                                         ((INSTANCE) == TIM2))
11397 
11398 /****** TIM Instances : supporting external clock mode 2 for ETRF input *******/
11399 #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
11400                                                         ((INSTANCE) == TIM2))
11401 
11402 /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
11403 #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)      (((INSTANCE) == TIM1) || \
11404                                                         ((INSTANCE) == TIM2))
11405 
11406 /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
11407 #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)     (((INSTANCE) == TIM1) || \
11408                                                         ((INSTANCE) == TIM2))
11409 
11410 /****************** TIM Instances : supporting combined 3-phase PWM mode ******/
11411 #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) ((INSTANCE) == TIM1)
11412 
11413 /****************** TIM Instances : supporting commutation event generation ***/
11414 #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1)    || \
11415                                                      ((INSTANCE) == TIM16)   || \
11416                                                      ((INSTANCE) == TIM17))
11417 
11418 /****************** TIM Instances : supporting counting mode selection ********/
11419 #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)  (((INSTANCE) == TIM1) || \
11420                                                         ((INSTANCE) == TIM2))
11421 
11422 /****************** TIM Instances : supporting encoder interface **************/
11423 #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)  (((INSTANCE) == TIM1)  || \
11424                                                       ((INSTANCE) == TIM2))
11425 
11426 /****************** TIM Instances : supporting Hall sensor interface **********/
11427 #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) ((INSTANCE) == TIM1)
11428 
11429 /**************** TIM Instances : external trigger input available ************/
11430 #define IS_TIM_ETR_INSTANCE(INSTANCE)      (((INSTANCE) == TIM1)  || \
11431                                             ((INSTANCE) == TIM2))
11432 
11433 /************* TIM Instances : supporting ETR source selection ***************/
11434 #define IS_TIM_ETRSEL_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1)  || \
11435                                              ((INSTANCE) == TIM2))
11436 
11437 /****** TIM Instances : Master mode available (TIMx_CR2.MMS available )********/
11438 #define IS_TIM_MASTER_INSTANCE(INSTANCE)   (((INSTANCE) == TIM1)  || \
11439                                             ((INSTANCE) == TIM2))
11440 
11441 /*********** TIM Instances : Slave mode available (TIMx_SMCR available )*******/
11442 #define IS_TIM_SLAVE_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1)  || \
11443                                             ((INSTANCE) == TIM2))
11444 
11445 /****************** TIM Instances : supporting OCxREF clear *******************/
11446 #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)        (((INSTANCE) == TIM1) || \
11447                                                        ((INSTANCE) == TIM2))
11448 
11449 /****************** TIM Instances : remapping capability **********************/
11450 #define IS_TIM_REMAP_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1)  || \
11451                                             ((INSTANCE) == TIM2)  || \
11452                                             ((INSTANCE) == TIM16) || \
11453                                             ((INSTANCE) == TIM17))
11454 
11455 /****************** TIM Instances : supporting repetition counter *************/
11456 #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)  (((INSTANCE) == TIM1)  || \
11457                                                        ((INSTANCE) == TIM16) || \
11458                                                        ((INSTANCE) == TIM17))
11459 
11460 /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
11461 #define IS_TIM_TRGO2_INSTANCE(INSTANCE)    ((INSTANCE) == TIM1)
11462 
11463 /******************* TIM Instances : Timer input XOR function *****************/
11464 #define IS_TIM_XOR_INSTANCE(INSTANCE)      (((INSTANCE) == TIM1)   || \
11465                                             ((INSTANCE) == TIM2))
11466 
11467 /************ TIM Instances : Advanced timers  ********************************/
11468 #define IS_TIM_ADVANCED_INSTANCE(INSTANCE)    (((INSTANCE) == TIM1))
11469 
11470 /******************** UART Instances : Asynchronous mode **********************/
11471 #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
11472                                     ((INSTANCE) == USART2))
11473 
11474 
11475 /******************** USART Instances : Synchronous mode **********************/
11476 #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
11477                                      ((INSTANCE) == USART2))
11478 
11479 /****************** UART Instances : Hardware Flow control ********************/
11480 #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
11481                                            ((INSTANCE) == USART2) || \
11482                                            ((INSTANCE) == LPUART1))
11483 
11484 /********************* USART Instances : Smard card mode ***********************/
11485 #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
11486                                          ((INSTANCE) == USART2))
11487 
11488 /****************** UART Instances : Auto Baud Rate detection ****************/
11489 #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
11490                                                             ((INSTANCE) == USART2))
11491 
11492 /******************** UART Instances : Half-Duplex mode **********************/
11493 #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE)   (((INSTANCE) == USART1) || \
11494                                                  ((INSTANCE) == USART2) || \
11495                                                  ((INSTANCE) == LPUART1))
11496 
11497 /******************** UART Instances : LIN mode **********************/
11498 #define IS_UART_LIN_INSTANCE(INSTANCE)   (((INSTANCE) == USART1) || \
11499                                           ((INSTANCE) == USART2))
11500 
11501 /******************** UART Instances : Wake-up from Stop mode **********************/
11502 #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE)   (((INSTANCE) == USART1) || \
11503                                                       ((INSTANCE) == USART2) || \
11504                                                       ((INSTANCE) == LPUART1))
11505 
11506 /****************** UART Instances : Driver Enable *****************/
11507 #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE)     (((INSTANCE) == USART1) || \
11508                                                       ((INSTANCE) == USART2) || \
11509                                                       ((INSTANCE) == LPUART1))
11510 
11511 /****************** UART Instances : SPI Slave selection mode ***************/
11512 #define IS_UART_SPI_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
11513                                               ((INSTANCE) == USART2))
11514 
11515 /****************** UART Instances : Driver Enable *****************/
11516 #define IS_UART_FIFO_INSTANCE(INSTANCE)     (((INSTANCE) == USART1) || \
11517                                              ((INSTANCE) == USART2) || \
11518                                              ((INSTANCE) == LPUART1))
11519 
11520 /*********************** UART Instances : IRDA mode ***************************/
11521 #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
11522                                     ((INSTANCE) == USART2))
11523 
11524 /******************** LPUART Instance *****************************************/
11525 #define IS_LPUART_INSTANCE(INSTANCE)    ((INSTANCE) == LPUART1)
11526 
11527 /******************************************************************************/
11528 /*  For a painless codes migration between the STM32WLxx device product       */
11529 /*  lines, the aliases defined below are put in place to overcome the         */
11530 /*  differences in the interrupt handlers and IRQn definitions.               */
11531 /*  No need to update developed interrupt code when moving across             */
11532 /*  product lines within the same STM32WL Family                              */
11533 /******************************************************************************/
11534 #if defined(CORE_CM0PLUS)
11535 /* Aliases for __IRQn */
11536 #define SVC_IRQn SVCall_IRQn
11537 #endif /* CORE_CM0PLUS */
11538 /**
11539   * @}
11540   */
11541 
11542 /**
11543   * @}
11544   */
11545 
11546 /**
11547   * @}
11548   */
11549 
11550 #ifdef __cplusplus
11551 }
11552 #endif /* __cplusplus */
11553 
11554 #endif /* __STM32WL54xx_H */
11555 
11556 /**
11557   * @}
11558   */
11559 
11560 /**
11561   * @}
11562   */
11563