Mercurial > pub > halpp
comparison l476rg-hal-test/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l462xx.h @ 0:32a3b1785697
a rough draft of Hardware Abstraction Layer for C++
STM32L476RG drivers
author | cin |
---|---|
date | Thu, 12 Jan 2017 02:45:43 +0300 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:32a3b1785697 |
---|---|
1 /** | |
2 ****************************************************************************** | |
3 * @file stm32l462xx.h | |
4 * @author MCD Application Team | |
5 * @version V1.2.0RC2 | |
6 * @date 29-July-2016 | |
7 * @brief CMSIS STM32L462xx Device Peripheral Access Layer Header File. | |
8 * | |
9 * This file contains: | |
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 * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> | |
18 * | |
19 * Redistribution and use in source and binary forms, with or without modification, | |
20 * are permitted provided that the following conditions are met: | |
21 * 1. Redistributions of source code must retain the above copyright notice, | |
22 * this list of conditions and the following disclaimer. | |
23 * 2. Redistributions in binary form must reproduce the above copyright notice, | |
24 * this list of conditions and the following disclaimer in the documentation | |
25 * and/or other materials provided with the distribution. | |
26 * 3. Neither the name of STMicroelectronics nor the names of its contributors | |
27 * may be used to endorse or promote products derived from this software | |
28 * without specific prior written permission. | |
29 * | |
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
31 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
33 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | |
34 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
35 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
36 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | |
37 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |
38 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
40 * | |
41 ****************************************************************************** | |
42 */ | |
43 | |
44 /** @addtogroup CMSIS_Device | |
45 * @{ | |
46 */ | |
47 | |
48 /** @addtogroup stm32l462xx | |
49 * @{ | |
50 */ | |
51 | |
52 #ifndef __STM32L462xx_H | |
53 #define __STM32L462xx_H | |
54 | |
55 #ifdef __cplusplus | |
56 extern "C" { | |
57 #endif /* __cplusplus */ | |
58 | |
59 /** @addtogroup Configuration_section_for_CMSIS | |
60 * @{ | |
61 */ | |
62 | |
63 /** | |
64 * @brief Configuration of the Cortex-M4 Processor and Core Peripherals | |
65 */ | |
66 #define __CM4_REV 0x0001 /*!< Cortex-M4 revision r0p1 */ | |
67 #define __MPU_PRESENT 1 /*!< STM32L4XX provides an MPU */ | |
68 #define __NVIC_PRIO_BITS 4 /*!< STM32L4XX uses 4 Bits for the Priority Levels */ | |
69 #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ | |
70 #define __FPU_PRESENT 1 /*!< FPU present */ | |
71 | |
72 /** | |
73 * @} | |
74 */ | |
75 | |
76 /** @addtogroup Peripheral_interrupt_number_definition | |
77 * @{ | |
78 */ | |
79 | |
80 /** | |
81 * @brief STM32L4XX Interrupt Number Definition, according to the selected device | |
82 * in @ref Library_configuration_section | |
83 */ | |
84 typedef enum | |
85 { | |
86 /****** Cortex-M4 Processor Exceptions Numbers ****************************************************************/ | |
87 NonMaskableInt_IRQn = -14, /*!< 2 Cortex-M4 Non Maskable Interrupt */ | |
88 HardFault_IRQn = -13, /*!< 3 Cortex-M4 Hard Fault Interrupt */ | |
89 MemoryManagement_IRQn = -12, /*!< 4 Cortex-M4 Memory Management Interrupt */ | |
90 BusFault_IRQn = -11, /*!< 5 Cortex-M4 Bus Fault Interrupt */ | |
91 UsageFault_IRQn = -10, /*!< 6 Cortex-M4 Usage Fault Interrupt */ | |
92 SVCall_IRQn = -5, /*!< 11 Cortex-M4 SV Call Interrupt */ | |
93 DebugMonitor_IRQn = -4, /*!< 12 Cortex-M4 Debug Monitor Interrupt */ | |
94 PendSV_IRQn = -2, /*!< 14 Cortex-M4 Pend SV Interrupt */ | |
95 SysTick_IRQn = -1, /*!< 15 Cortex-M4 System Tick Interrupt */ | |
96 /****** STM32 specific Interrupt Numbers **********************************************************************/ | |
97 WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ | |
98 PVD_PVM_IRQn = 1, /*!< PVD/PVM1/PVM2/PVM3/PVM4 through EXTI Line detection Interrupts */ | |
99 TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */ | |
100 RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */ | |
101 FLASH_IRQn = 4, /*!< FLASH global Interrupt */ | |
102 RCC_IRQn = 5, /*!< RCC global Interrupt */ | |
103 EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ | |
104 EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ | |
105 EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ | |
106 EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ | |
107 EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ | |
108 DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */ | |
109 DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */ | |
110 DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */ | |
111 DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */ | |
112 DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */ | |
113 DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */ | |
114 DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */ | |
115 ADC1_IRQn = 18, /*!< ADC1 global Interrupt */ | |
116 CAN1_TX_IRQn = 19, /*!< CAN1 TX Interrupt */ | |
117 CAN1_RX0_IRQn = 20, /*!< CAN1 RX0 Interrupt */ | |
118 CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */ | |
119 CAN1_SCE_IRQn = 22, /*!< CAN1 SCE Interrupt */ | |
120 EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */ | |
121 TIM1_BRK_TIM15_IRQn = 24, /*!< TIM1 Break interrupt and TIM15 global interrupt */ | |
122 TIM1_UP_TIM16_IRQn = 25, /*!< TIM1 Update Interrupt and TIM16 global interrupt */ | |
123 TIM1_TRG_COM_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt */ | |
124 TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */ | |
125 TIM2_IRQn = 28, /*!< TIM2 global Interrupt */ | |
126 TIM3_IRQn = 29, /*!< TIM3 global Interrupt */ | |
127 I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */ | |
128 I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */ | |
129 I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt */ | |
130 I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */ | |
131 SPI1_IRQn = 35, /*!< SPI1 global Interrupt */ | |
132 SPI2_IRQn = 36, /*!< SPI2 global Interrupt */ | |
133 USART1_IRQn = 37, /*!< USART1 global Interrupt */ | |
134 USART2_IRQn = 38, /*!< USART2 global Interrupt */ | |
135 USART3_IRQn = 39, /*!< USART3 global Interrupt */ | |
136 EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */ | |
137 RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line Interrupt */ | |
138 SDMMC1_IRQn = 49, /*!< SDMMC1 global Interrupt */ | |
139 SPI3_IRQn = 51, /*!< SPI3 global Interrupt */ | |
140 UART4_IRQn = 52, /*!< UART4 global Interrupt */ | |
141 TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC1&2 underrun error interrupts */ | |
142 DMA2_Channel1_IRQn = 56, /*!< DMA2 Channel 1 global Interrupt */ | |
143 DMA2_Channel2_IRQn = 57, /*!< DMA2 Channel 2 global Interrupt */ | |
144 DMA2_Channel3_IRQn = 58, /*!< DMA2 Channel 3 global Interrupt */ | |
145 DMA2_Channel4_IRQn = 59, /*!< DMA2 Channel 4 global Interrupt */ | |
146 DMA2_Channel5_IRQn = 60, /*!< DMA2 Channel 5 global Interrupt */ | |
147 DFSDM1_FLT0_IRQn = 61, /*!< DFSDM1 Filter 0 global Interrupt */ | |
148 DFSDM1_FLT1_IRQn = 62, /*!< DFSDM1 Filter 1 global Interrupt */ | |
149 COMP_IRQn = 64, /*!< COMP1 and COMP2 Interrupts */ | |
150 LPTIM1_IRQn = 65, /*!< LP TIM1 interrupt */ | |
151 LPTIM2_IRQn = 66, /*!< LP TIM2 interrupt */ | |
152 USB_IRQn = 67, /*!< USB event Interrupt */ | |
153 DMA2_Channel6_IRQn = 68, /*!< DMA2 Channel 6 global interrupt */ | |
154 DMA2_Channel7_IRQn = 69, /*!< DMA2 Channel 7 global interrupt */ | |
155 LPUART1_IRQn = 70, /*!< LP UART1 interrupt */ | |
156 QUADSPI_IRQn = 71, /*!< Quad SPI global interrupt */ | |
157 I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */ | |
158 I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */ | |
159 SAI1_IRQn = 74, /*!< Serial Audio Interface 1 global interrupt */ | |
160 TSC_IRQn = 77, /*!< Touch Sense Controller global interrupt */ | |
161 AES_IRQn = 79, /*!< AES global interrupt */ | |
162 RNG_IRQn = 80, /*!< RNG global interrupt */ | |
163 FPU_IRQn = 81, /*!< FPU global interrupt */ | |
164 CRS_IRQn = 82, /*!< CRS global interrupt */ | |
165 I2C4_EV_IRQn = 83, /*!< I2C4 Event interrupt */ | |
166 I2C4_ER_IRQn = 84 /*!< I2C4 Error interrupt */ | |
167 } IRQn_Type; | |
168 | |
169 /** | |
170 * @} | |
171 */ | |
172 | |
173 #include "core_cm4.h" /* Cortex-M4 processor and core peripherals */ | |
174 #include "system_stm32l4xx.h" | |
175 #include <stdint.h> | |
176 | |
177 /** @addtogroup Peripheral_registers_structures | |
178 * @{ | |
179 */ | |
180 | |
181 /** | |
182 * @brief Analog to Digital Converter | |
183 */ | |
184 | |
185 typedef struct | |
186 { | |
187 __IO uint32_t ISR; /*!< ADC interrupt and status register, Address offset: 0x00 */ | |
188 __IO uint32_t IER; /*!< ADC interrupt enable register, Address offset: 0x04 */ | |
189 __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */ | |
190 __IO uint32_t CFGR; /*!< ADC configuration register 1, Address offset: 0x0C */ | |
191 __IO uint32_t CFGR2; /*!< ADC configuration register 2, Address offset: 0x10 */ | |
192 __IO uint32_t SMPR1; /*!< ADC sampling time register 1, Address offset: 0x14 */ | |
193 __IO uint32_t SMPR2; /*!< ADC sampling time register 2, Address offset: 0x18 */ | |
194 uint32_t RESERVED1; /*!< Reserved, 0x1C */ | |
195 __IO uint32_t TR1; /*!< ADC analog watchdog 1 threshold register, Address offset: 0x20 */ | |
196 __IO uint32_t TR2; /*!< ADC analog watchdog 2 threshold register, Address offset: 0x24 */ | |
197 __IO uint32_t TR3; /*!< ADC analog watchdog 3 threshold register, Address offset: 0x28 */ | |
198 uint32_t RESERVED2; /*!< Reserved, 0x2C */ | |
199 __IO uint32_t SQR1; /*!< ADC group regular sequencer register 1, Address offset: 0x30 */ | |
200 __IO uint32_t SQR2; /*!< ADC group regular sequencer register 2, Address offset: 0x34 */ | |
201 __IO uint32_t SQR3; /*!< ADC group regular sequencer register 3, Address offset: 0x38 */ | |
202 __IO uint32_t SQR4; /*!< ADC group regular sequencer register 4, Address offset: 0x3C */ | |
203 __IO uint32_t DR; /*!< ADC group regular data register, Address offset: 0x40 */ | |
204 uint32_t RESERVED3; /*!< Reserved, 0x44 */ | |
205 uint32_t RESERVED4; /*!< Reserved, 0x48 */ | |
206 __IO uint32_t JSQR; /*!< ADC group injected sequencer register, Address offset: 0x4C */ | |
207 uint32_t RESERVED5[4]; /*!< Reserved, 0x50 - 0x5C */ | |
208 __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */ | |
209 __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */ | |
210 __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */ | |
211 __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */ | |
212 uint32_t RESERVED6[4]; /*!< Reserved, 0x70 - 0x7C */ | |
213 __IO uint32_t JDR1; /*!< ADC group injected rank 1 data register, Address offset: 0x80 */ | |
214 __IO uint32_t JDR2; /*!< ADC group injected rank 2 data register, Address offset: 0x84 */ | |
215 __IO uint32_t JDR3; /*!< ADC group injected rank 3 data register, Address offset: 0x88 */ | |
216 __IO uint32_t JDR4; /*!< ADC group injected rank 4 data register, Address offset: 0x8C */ | |
217 uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */ | |
218 __IO uint32_t AWD2CR; /*!< ADC analog watchdog 1 configuration register, Address offset: 0xA0 */ | |
219 __IO uint32_t AWD3CR; /*!< ADC analog watchdog 3 Configuration Register, Address offset: 0xA4 */ | |
220 uint32_t RESERVED8; /*!< Reserved, 0x0A8 */ | |
221 uint32_t RESERVED9; /*!< Reserved, 0x0AC */ | |
222 __IO uint32_t DIFSEL; /*!< ADC differential mode selection register, Address offset: 0xB0 */ | |
223 __IO uint32_t CALFACT; /*!< ADC calibration factors, Address offset: 0xB4 */ | |
224 | |
225 } ADC_TypeDef; | |
226 | |
227 typedef struct | |
228 { | |
229 uint32_t RESERVED1; /*!< Reserved, Address offset: ADC1 base address + 0x300 */ | |
230 uint32_t RESERVED2; /*!< Reserved, Address offset: ADC1 base address + 0x304 */ | |
231 __IO uint32_t CCR; /*!< ADC common configuration register, Address offset: ADC1 base address + 0x308 */ | |
232 uint32_t RESERVED3; /*!< Reserved, Address offset: ADC1 base address + 0x30C */ | |
233 } ADC_Common_TypeDef; | |
234 | |
235 | |
236 /** | |
237 * @brief Controller Area Network TxMailBox | |
238 */ | |
239 | |
240 typedef struct | |
241 { | |
242 __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */ | |
243 __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */ | |
244 __IO uint32_t TDLR; /*!< CAN mailbox data low register */ | |
245 __IO uint32_t TDHR; /*!< CAN mailbox data high register */ | |
246 } CAN_TxMailBox_TypeDef; | |
247 | |
248 /** | |
249 * @brief Controller Area Network FIFOMailBox | |
250 */ | |
251 | |
252 typedef struct | |
253 { | |
254 __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */ | |
255 __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */ | |
256 __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */ | |
257 __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */ | |
258 } CAN_FIFOMailBox_TypeDef; | |
259 | |
260 /** | |
261 * @brief Controller Area Network FilterRegister | |
262 */ | |
263 | |
264 typedef struct | |
265 { | |
266 __IO uint32_t FR1; /*!< CAN Filter bank register 1 */ | |
267 __IO uint32_t FR2; /*!< CAN Filter bank register 1 */ | |
268 } CAN_FilterRegister_TypeDef; | |
269 | |
270 /** | |
271 * @brief Controller Area Network | |
272 */ | |
273 | |
274 typedef struct | |
275 { | |
276 __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */ | |
277 __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */ | |
278 __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */ | |
279 __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */ | |
280 __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */ | |
281 __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */ | |
282 __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */ | |
283 __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */ | |
284 uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */ | |
285 CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */ | |
286 CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */ | |
287 uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */ | |
288 __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */ | |
289 __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */ | |
290 uint32_t RESERVED2; /*!< Reserved, 0x208 */ | |
291 __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */ | |
292 uint32_t RESERVED3; /*!< Reserved, 0x210 */ | |
293 __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */ | |
294 uint32_t RESERVED4; /*!< Reserved, 0x218 */ | |
295 __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */ | |
296 uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */ | |
297 CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */ | |
298 } CAN_TypeDef; | |
299 | |
300 | |
301 /** | |
302 * @brief Comparator | |
303 */ | |
304 | |
305 typedef struct | |
306 { | |
307 __IO uint32_t CSR; /*!< COMP control and status register, Address offset: 0x00 */ | |
308 } COMP_TypeDef; | |
309 | |
310 typedef struct | |
311 { | |
312 __IO uint32_t CSR; /*!< COMP control and status register, used for bits common to several COMP instances, Address offset: 0x00 */ | |
313 } COMP_Common_TypeDef; | |
314 | |
315 /** | |
316 * @brief CRC calculation unit | |
317 */ | |
318 | |
319 typedef struct | |
320 { | |
321 __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */ | |
322 __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */ | |
323 uint8_t RESERVED0; /*!< Reserved, 0x05 */ | |
324 uint16_t RESERVED1; /*!< Reserved, 0x06 */ | |
325 __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */ | |
326 uint32_t RESERVED2; /*!< Reserved, 0x0C */ | |
327 __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */ | |
328 __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */ | |
329 } CRC_TypeDef; | |
330 | |
331 /** | |
332 * @brief Clock Recovery System | |
333 */ | |
334 typedef struct | |
335 { | |
336 __IO uint32_t CR; /*!< CRS ccontrol register, Address offset: 0x00 */ | |
337 __IO uint32_t CFGR; /*!< CRS configuration register, Address offset: 0x04 */ | |
338 __IO uint32_t ISR; /*!< CRS interrupt and status register, Address offset: 0x08 */ | |
339 __IO uint32_t ICR; /*!< CRS interrupt flag clear register, Address offset: 0x0C */ | |
340 } CRS_TypeDef; | |
341 | |
342 /** | |
343 * @brief Digital to Analog Converter | |
344 */ | |
345 | |
346 typedef struct | |
347 { | |
348 __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */ | |
349 __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */ | |
350 __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */ | |
351 __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */ | |
352 __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */ | |
353 __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */ | |
354 __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */ | |
355 __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */ | |
356 __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */ | |
357 __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */ | |
358 __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */ | |
359 __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */ | |
360 __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */ | |
361 __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */ | |
362 __IO uint32_t CCR; /*!< DAC calibration control register, Address offset: 0x38 */ | |
363 __IO uint32_t MCR; /*!< DAC mode control register, Address offset: 0x3C */ | |
364 __IO uint32_t SHSR1; /*!< DAC Sample and Hold sample time register 1, Address offset: 0x40 */ | |
365 __IO uint32_t SHSR2; /*!< DAC Sample and Hold sample time register 2, Address offset: 0x44 */ | |
366 __IO uint32_t SHHR; /*!< DAC Sample and Hold hold time register, Address offset: 0x48 */ | |
367 __IO uint32_t SHRR; /*!< DAC Sample and Hold refresh time register, Address offset: 0x4C */ | |
368 } DAC_TypeDef; | |
369 | |
370 /** | |
371 * @brief DFSDM module registers | |
372 */ | |
373 typedef struct | |
374 { | |
375 __IO uint32_t FLTCR1; /*!< DFSDM control register1, Address offset: 0x100 */ | |
376 __IO uint32_t FLTCR2; /*!< DFSDM control register2, Address offset: 0x104 */ | |
377 __IO uint32_t FLTISR; /*!< DFSDM interrupt and status register, Address offset: 0x108 */ | |
378 __IO uint32_t FLTICR; /*!< DFSDM interrupt flag clear register, Address offset: 0x10C */ | |
379 __IO uint32_t FLTJCHGR; /*!< DFSDM injected channel group selection register, Address offset: 0x110 */ | |
380 __IO uint32_t FLTFCR; /*!< DFSDM filter control register, Address offset: 0x114 */ | |
381 __IO uint32_t FLTJDATAR; /*!< DFSDM data register for injected group, Address offset: 0x118 */ | |
382 __IO uint32_t FLTRDATAR; /*!< DFSDM data register for regular group, Address offset: 0x11C */ | |
383 __IO uint32_t FLTAWHTR; /*!< DFSDM analog watchdog high threshold register, Address offset: 0x120 */ | |
384 __IO uint32_t FLTAWLTR; /*!< DFSDM analog watchdog low threshold register, Address offset: 0x124 */ | |
385 __IO uint32_t FLTAWSR; /*!< DFSDM analog watchdog status register Address offset: 0x128 */ | |
386 __IO uint32_t FLTAWCFR; /*!< DFSDM analog watchdog clear flag register Address offset: 0x12C */ | |
387 __IO uint32_t FLTEXMAX; /*!< DFSDM extreme detector maximum register, Address offset: 0x130 */ | |
388 __IO uint32_t FLTEXMIN; /*!< DFSDM extreme detector minimum register Address offset: 0x134 */ | |
389 __IO uint32_t FLTCNVTIMR; /*!< DFSDM conversion timer, Address offset: 0x138 */ | |
390 } DFSDM_Filter_TypeDef; | |
391 | |
392 /** | |
393 * @brief DFSDM channel configuration registers | |
394 */ | |
395 typedef struct | |
396 { | |
397 __IO uint32_t CHCFGR1; /*!< DFSDM channel configuration register1, Address offset: 0x00 */ | |
398 __IO uint32_t CHCFGR2; /*!< DFSDM channel configuration register2, Address offset: 0x04 */ | |
399 __IO uint32_t CHAWSCDR; /*!< DFSDM channel analog watchdog and | |
400 short circuit detector register, Address offset: 0x08 */ | |
401 __IO uint32_t CHWDATAR; /*!< DFSDM channel watchdog filter data register, Address offset: 0x0C */ | |
402 __IO uint32_t CHDATINR; /*!< DFSDM channel data input register, Address offset: 0x10 */ | |
403 } DFSDM_Channel_TypeDef; | |
404 | |
405 /** | |
406 * @brief Debug MCU | |
407 */ | |
408 | |
409 typedef struct | |
410 { | |
411 __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */ | |
412 __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */ | |
413 __IO uint32_t APB1FZR1; /*!< Debug MCU APB1 freeze register 1, Address offset: 0x08 */ | |
414 __IO uint32_t APB1FZR2; /*!< Debug MCU APB1 freeze register 2, Address offset: 0x0C */ | |
415 __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x10 */ | |
416 } DBGMCU_TypeDef; | |
417 | |
418 | |
419 /** | |
420 * @brief DMA Controller | |
421 */ | |
422 | |
423 typedef struct | |
424 { | |
425 __IO uint32_t CCR; /*!< DMA channel x configuration register */ | |
426 __IO uint32_t CNDTR; /*!< DMA channel x number of data register */ | |
427 __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */ | |
428 __IO uint32_t CMAR; /*!< DMA channel x memory address register */ | |
429 } DMA_Channel_TypeDef; | |
430 | |
431 typedef struct | |
432 { | |
433 __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */ | |
434 __IO uint32_t IFCR; /*!< DMA interrupt flag clear register, Address offset: 0x04 */ | |
435 } DMA_TypeDef; | |
436 | |
437 typedef struct | |
438 { | |
439 __IO uint32_t CSELR; /*!< DMA channel selection register */ | |
440 } DMA_Request_TypeDef; | |
441 | |
442 /* Legacy define */ | |
443 #define DMA_request_TypeDef DMA_Request_TypeDef | |
444 | |
445 | |
446 /** | |
447 * @brief External Interrupt/Event Controller | |
448 */ | |
449 | |
450 typedef struct | |
451 { | |
452 __IO uint32_t IMR1; /*!< EXTI Interrupt mask register 1, Address offset: 0x00 */ | |
453 __IO uint32_t EMR1; /*!< EXTI Event mask register 1, Address offset: 0x04 */ | |
454 __IO uint32_t RTSR1; /*!< EXTI Rising trigger selection register 1, Address offset: 0x08 */ | |
455 __IO uint32_t FTSR1; /*!< EXTI Falling trigger selection register 1, Address offset: 0x0C */ | |
456 __IO uint32_t SWIER1; /*!< EXTI Software interrupt event register 1, Address offset: 0x10 */ | |
457 __IO uint32_t PR1; /*!< EXTI Pending register 1, Address offset: 0x14 */ | |
458 uint32_t RESERVED1; /*!< Reserved, 0x18 */ | |
459 uint32_t RESERVED2; /*!< Reserved, 0x1C */ | |
460 __IO uint32_t IMR2; /*!< EXTI Interrupt mask register 2, Address offset: 0x20 */ | |
461 __IO uint32_t EMR2; /*!< EXTI Event mask register 2, Address offset: 0x24 */ | |
462 __IO uint32_t RTSR2; /*!< EXTI Rising trigger selection register 2, Address offset: 0x28 */ | |
463 __IO uint32_t FTSR2; /*!< EXTI Falling trigger selection register 2, Address offset: 0x2C */ | |
464 __IO uint32_t SWIER2; /*!< EXTI Software interrupt event register 2, Address offset: 0x30 */ | |
465 __IO uint32_t PR2; /*!< EXTI Pending register 2, Address offset: 0x34 */ | |
466 } EXTI_TypeDef; | |
467 | |
468 | |
469 /** | |
470 * @brief Firewall | |
471 */ | |
472 | |
473 typedef struct | |
474 { | |
475 __IO uint32_t CSSA; /*!< Code Segment Start Address register, Address offset: 0x00 */ | |
476 __IO uint32_t CSL; /*!< Code Segment Length register, Address offset: 0x04 */ | |
477 __IO uint32_t NVDSSA; /*!< NON volatile data Segment Start Address register, Address offset: 0x08 */ | |
478 __IO uint32_t NVDSL; /*!< NON volatile data Segment Length register, Address offset: 0x0C */ | |
479 __IO uint32_t VDSSA ; /*!< Volatile data Segment Start Address register, Address offset: 0x10 */ | |
480 __IO uint32_t VDSL ; /*!< Volatile data Segment Length register, Address offset: 0x14 */ | |
481 uint32_t RESERVED1; /*!< Reserved1, Address offset: 0x18 */ | |
482 uint32_t RESERVED2; /*!< Reserved2, Address offset: 0x1C */ | |
483 __IO uint32_t CR ; /*!< Configuration register, Address offset: 0x20 */ | |
484 } FIREWALL_TypeDef; | |
485 | |
486 | |
487 /** | |
488 * @brief FLASH Registers | |
489 */ | |
490 | |
491 typedef struct | |
492 { | |
493 __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */ | |
494 __IO uint32_t PDKEYR; /*!< FLASH power down key register, Address offset: 0x04 */ | |
495 __IO uint32_t KEYR; /*!< FLASH key register, Address offset: 0x08 */ | |
496 __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x0C */ | |
497 __IO uint32_t SR; /*!< FLASH status register, Address offset: 0x10 */ | |
498 __IO uint32_t CR; /*!< FLASH control register, Address offset: 0x14 */ | |
499 __IO uint32_t ECCR; /*!< FLASH ECC register, Address offset: 0x18 */ | |
500 __IO uint32_t RESERVED1; /*!< Reserved1, Address offset: 0x1C */ | |
501 __IO uint32_t OPTR; /*!< FLASH option register, Address offset: 0x20 */ | |
502 __IO uint32_t PCROP1SR; /*!< FLASH bank1 PCROP start address register, Address offset: 0x24 */ | |
503 __IO uint32_t PCROP1ER; /*!< FLASH bank1 PCROP end address register, Address offset: 0x28 */ | |
504 __IO uint32_t WRP1AR; /*!< FLASH bank1 WRP area A address register, Address offset: 0x2C */ | |
505 __IO uint32_t WRP1BR; /*!< FLASH bank1 WRP area B address register, Address offset: 0x30 */ | |
506 } FLASH_TypeDef; | |
507 | |
508 | |
509 | |
510 /** | |
511 * @brief General Purpose I/O | |
512 */ | |
513 | |
514 typedef struct | |
515 { | |
516 __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */ | |
517 __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */ | |
518 __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */ | |
519 __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */ | |
520 __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */ | |
521 __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */ | |
522 __IO uint32_t BSRR; /*!< GPIO port bit set/reset register, Address offset: 0x18 */ | |
523 __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */ | |
524 __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */ | |
525 __IO uint32_t BRR; /*!< GPIO Bit Reset register, Address offset: 0x28 */ | |
526 | |
527 } GPIO_TypeDef; | |
528 | |
529 | |
530 /** | |
531 * @brief Inter-integrated Circuit Interface | |
532 */ | |
533 | |
534 typedef struct | |
535 { | |
536 __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */ | |
537 __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */ | |
538 __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */ | |
539 __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */ | |
540 __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */ | |
541 __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */ | |
542 __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */ | |
543 __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */ | |
544 __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */ | |
545 __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */ | |
546 __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */ | |
547 } I2C_TypeDef; | |
548 | |
549 /** | |
550 * @brief Independent WATCHDOG | |
551 */ | |
552 | |
553 typedef struct | |
554 { | |
555 __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */ | |
556 __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */ | |
557 __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */ | |
558 __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */ | |
559 __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */ | |
560 } IWDG_TypeDef; | |
561 | |
562 /** | |
563 * @brief LPTIMER | |
564 */ | |
565 typedef struct | |
566 { | |
567 __IO uint32_t ISR; /*!< LPTIM Interrupt and Status register, Address offset: 0x00 */ | |
568 __IO uint32_t ICR; /*!< LPTIM Interrupt Clear register, Address offset: 0x04 */ | |
569 __IO uint32_t IER; /*!< LPTIM Interrupt Enable register, Address offset: 0x08 */ | |
570 __IO uint32_t CFGR; /*!< LPTIM Configuration register, Address offset: 0x0C */ | |
571 __IO uint32_t CR; /*!< LPTIM Control register, Address offset: 0x10 */ | |
572 __IO uint32_t CMP; /*!< LPTIM Compare register, Address offset: 0x14 */ | |
573 __IO uint32_t ARR; /*!< LPTIM Autoreload register, Address offset: 0x18 */ | |
574 __IO uint32_t CNT; /*!< LPTIM Counter register, Address offset: 0x1C */ | |
575 __IO uint32_t OR; /*!< LPTIM Option register, Address offset: 0x20 */ | |
576 } LPTIM_TypeDef; | |
577 | |
578 /** | |
579 * @brief Operational Amplifier (OPAMP) | |
580 */ | |
581 | |
582 typedef struct | |
583 { | |
584 __IO uint32_t CSR; /*!< OPAMP control/status register, Address offset: 0x00 */ | |
585 __IO uint32_t OTR; /*!< OPAMP offset trimming register for normal mode, Address offset: 0x04 */ | |
586 __IO uint32_t LPOTR; /*!< OPAMP offset trimming register for low power mode, Address offset: 0x08 */ | |
587 } OPAMP_TypeDef; | |
588 | |
589 typedef struct | |
590 { | |
591 __IO uint32_t CSR; /*!< OPAMP control/status register, used for bits common to several OPAMP instances, Address offset: 0x00 */ | |
592 } OPAMP_Common_TypeDef; | |
593 | |
594 /** | |
595 * @brief Power Control | |
596 */ | |
597 | |
598 typedef struct | |
599 { | |
600 __IO uint32_t CR1; /*!< PWR power control register 1, Address offset: 0x00 */ | |
601 __IO uint32_t CR2; /*!< PWR power control register 2, Address offset: 0x04 */ | |
602 __IO uint32_t CR3; /*!< PWR power control register 3, Address offset: 0x08 */ | |
603 __IO uint32_t CR4; /*!< PWR power control register 4, Address offset: 0x0C */ | |
604 __IO uint32_t SR1; /*!< PWR power status register 1, Address offset: 0x10 */ | |
605 __IO uint32_t SR2; /*!< PWR power status register 2, Address offset: 0x14 */ | |
606 __IO uint32_t SCR; /*!< PWR power status reset register, Address offset: 0x18 */ | |
607 uint32_t RESERVED; /*!< Reserved, Address offset: 0x1C */ | |
608 __IO uint32_t PUCRA; /*!< Pull_up control register of portA, Address offset: 0x20 */ | |
609 __IO uint32_t PDCRA; /*!< Pull_Down control register of portA, Address offset: 0x24 */ | |
610 __IO uint32_t PUCRB; /*!< Pull_up control register of portB, Address offset: 0x28 */ | |
611 __IO uint32_t PDCRB; /*!< Pull_Down control register of portB, Address offset: 0x2C */ | |
612 __IO uint32_t PUCRC; /*!< Pull_up control register of portC, Address offset: 0x30 */ | |
613 __IO uint32_t PDCRC; /*!< Pull_Down control register of portC, Address offset: 0x34 */ | |
614 __IO uint32_t PUCRD; /*!< Pull_up control register of portD, Address offset: 0x38 */ | |
615 __IO uint32_t PDCRD; /*!< Pull_Down control register of portD, Address offset: 0x3C */ | |
616 __IO uint32_t PUCRE; /*!< Pull_up control register of portE, Address offset: 0x40 */ | |
617 __IO uint32_t PDCRE; /*!< Pull_Down control register of portE, Address offset: 0x44 */ | |
618 uint32_t RESERVED1; /*!< Reserved, Address offset: 0x48 */ | |
619 uint32_t RESERVED2; /*!< Reserved, Address offset: 0x4C */ | |
620 uint32_t RESERVED3; /*!< Reserved, Address offset: 0x50 */ | |
621 uint32_t RESERVED4; /*!< Reserved, Address offset: 0x54 */ | |
622 __IO uint32_t PUCRH; /*!< Pull_up control register of portH, Address offset: 0x58 */ | |
623 __IO uint32_t PDCRH; /*!< Pull_Down control register of portH, Address offset: 0x5C */ | |
624 } PWR_TypeDef; | |
625 | |
626 | |
627 /** | |
628 * @brief QUAD Serial Peripheral Interface | |
629 */ | |
630 | |
631 typedef struct | |
632 { | |
633 __IO uint32_t CR; /*!< QUADSPI Control register, Address offset: 0x00 */ | |
634 __IO uint32_t DCR; /*!< QUADSPI Device Configuration register, Address offset: 0x04 */ | |
635 __IO uint32_t SR; /*!< QUADSPI Status register, Address offset: 0x08 */ | |
636 __IO uint32_t FCR; /*!< QUADSPI Flag Clear register, Address offset: 0x0C */ | |
637 __IO uint32_t DLR; /*!< QUADSPI Data Length register, Address offset: 0x10 */ | |
638 __IO uint32_t CCR; /*!< QUADSPI Communication Configuration register, Address offset: 0x14 */ | |
639 __IO uint32_t AR; /*!< QUADSPI Address register, Address offset: 0x18 */ | |
640 __IO uint32_t ABR; /*!< QUADSPI Alternate Bytes register, Address offset: 0x1C */ | |
641 __IO uint32_t DR; /*!< QUADSPI Data register, Address offset: 0x20 */ | |
642 __IO uint32_t PSMKR; /*!< QUADSPI Polling Status Mask register, Address offset: 0x24 */ | |
643 __IO uint32_t PSMAR; /*!< QUADSPI Polling Status Match register, Address offset: 0x28 */ | |
644 __IO uint32_t PIR; /*!< QUADSPI Polling Interval register, Address offset: 0x2C */ | |
645 __IO uint32_t LPTR; /*!< QUADSPI Low Power Timeout register, Address offset: 0x30 */ | |
646 } QUADSPI_TypeDef; | |
647 | |
648 | |
649 /** | |
650 * @brief Reset and Clock Control | |
651 */ | |
652 | |
653 typedef struct | |
654 { | |
655 __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */ | |
656 __IO uint32_t ICSCR; /*!< RCC internal clock sources calibration register, Address offset: 0x04 */ | |
657 __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x08 */ | |
658 __IO uint32_t PLLCFGR; /*!< RCC system PLL configuration register, Address offset: 0x0C */ | |
659 __IO uint32_t PLLSAI1CFGR; /*!< RCC PLL SAI1 configuration register, Address offset: 0x10 */ | |
660 uint32_t RESERVED; /*!< Reserved, Address offset: 0x14 */ | |
661 __IO uint32_t CIER; /*!< RCC clock interrupt enable register, Address offset: 0x18 */ | |
662 __IO uint32_t CIFR; /*!< RCC clock interrupt flag register, Address offset: 0x1C */ | |
663 __IO uint32_t CICR; /*!< RCC clock interrupt clear register, Address offset: 0x20 */ | |
664 uint32_t RESERVED0; /*!< Reserved, Address offset: 0x24 */ | |
665 __IO uint32_t AHB1RSTR; /*!< RCC AHB1 peripheral reset register, Address offset: 0x28 */ | |
666 __IO uint32_t AHB2RSTR; /*!< RCC AHB2 peripheral reset register, Address offset: 0x2C */ | |
667 __IO uint32_t AHB3RSTR; /*!< RCC AHB3 peripheral reset register, Address offset: 0x30 */ | |
668 uint32_t RESERVED1; /*!< Reserved, Address offset: 0x34 */ | |
669 __IO uint32_t APB1RSTR1; /*!< RCC APB1 peripheral reset register 1, Address offset: 0x38 */ | |
670 __IO uint32_t APB1RSTR2; /*!< RCC APB1 peripheral reset register 2, Address offset: 0x3C */ | |
671 __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x40 */ | |
672 uint32_t RESERVED2; /*!< Reserved, Address offset: 0x44 */ | |
673 __IO uint32_t AHB1ENR; /*!< RCC AHB1 peripheral clocks enable register, Address offset: 0x48 */ | |
674 __IO uint32_t AHB2ENR; /*!< RCC AHB2 peripheral clocks enable register, Address offset: 0x4C */ | |
675 __IO uint32_t AHB3ENR; /*!< RCC AHB3 peripheral clocks enable register, Address offset: 0x50 */ | |
676 uint32_t RESERVED3; /*!< Reserved, Address offset: 0x54 */ | |
677 __IO uint32_t APB1ENR1; /*!< RCC APB1 peripheral clocks enable register 1, Address offset: 0x58 */ | |
678 __IO uint32_t APB1ENR2; /*!< RCC APB1 peripheral clocks enable register 2, Address offset: 0x5C */ | |
679 __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clocks enable register, Address offset: 0x60 */ | |
680 uint32_t RESERVED4; /*!< Reserved, Address offset: 0x64 */ | |
681 __IO uint32_t AHB1SMENR; /*!< RCC AHB1 peripheral clocks enable in sleep and stop modes register, Address offset: 0x68 */ | |
682 __IO uint32_t AHB2SMENR; /*!< RCC AHB2 peripheral clocks enable in sleep and stop modes register, Address offset: 0x6C */ | |
683 __IO uint32_t AHB3SMENR; /*!< RCC AHB3 peripheral clocks enable in sleep and stop modes register, Address offset: 0x70 */ | |
684 uint32_t RESERVED5; /*!< Reserved, Address offset: 0x74 */ | |
685 __IO uint32_t APB1SMENR1; /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 1, Address offset: 0x78 */ | |
686 __IO uint32_t APB1SMENR2; /*!< RCC APB1 peripheral clocks enable in sleep mode and stop modes register 2, Address offset: 0x7C */ | |
687 __IO uint32_t APB2SMENR; /*!< RCC APB2 peripheral clocks enable in sleep mode and stop modes register, Address offset: 0x80 */ | |
688 uint32_t RESERVED6; /*!< Reserved, Address offset: 0x84 */ | |
689 __IO uint32_t CCIPR; /*!< RCC peripherals independent clock configuration register, Address offset: 0x88 */ | |
690 uint32_t RESERVED7; /*!< Reserved, Address offset: 0x8C */ | |
691 __IO uint32_t BDCR; /*!< RCC backup domain control register, Address offset: 0x90 */ | |
692 __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x94 */ | |
693 __IO uint32_t CRRCR; /*!< RCC clock recovery RC register, Address offset: 0x98 */ | |
694 __IO uint32_t CCIPR2; /*!< RCC peripherals independent clock configuration register 2, Address offset: 0x9C */ | |
695 } RCC_TypeDef; | |
696 | |
697 /** | |
698 * @brief Real-Time Clock | |
699 */ | |
700 | |
701 typedef struct | |
702 { | |
703 __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */ | |
704 __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */ | |
705 __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */ | |
706 __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */ | |
707 __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */ | |
708 __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */ | |
709 uint32_t reserved; /*!< Reserved */ | |
710 __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */ | |
711 __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */ | |
712 __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */ | |
713 __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */ | |
714 __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */ | |
715 __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */ | |
716 __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */ | |
717 __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */ | |
718 __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */ | |
719 __IO uint32_t TAMPCR; /*!< RTC tamper configuration register, Address offset: 0x40 */ | |
720 __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */ | |
721 __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */ | |
722 __IO uint32_t OR; /*!< RTC option register, Address offset: 0x4C */ | |
723 __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */ | |
724 __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */ | |
725 __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */ | |
726 __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */ | |
727 __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */ | |
728 __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */ | |
729 __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */ | |
730 __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */ | |
731 __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */ | |
732 __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */ | |
733 __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */ | |
734 __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */ | |
735 __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */ | |
736 __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */ | |
737 __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */ | |
738 __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */ | |
739 __IO uint32_t BKP16R; /*!< RTC backup register 16, Address offset: 0x90 */ | |
740 __IO uint32_t BKP17R; /*!< RTC backup register 17, Address offset: 0x94 */ | |
741 __IO uint32_t BKP18R; /*!< RTC backup register 18, Address offset: 0x98 */ | |
742 __IO uint32_t BKP19R; /*!< RTC backup register 19, Address offset: 0x9C */ | |
743 __IO uint32_t BKP20R; /*!< RTC backup register 20, Address offset: 0xA0 */ | |
744 __IO uint32_t BKP21R; /*!< RTC backup register 21, Address offset: 0xA4 */ | |
745 __IO uint32_t BKP22R; /*!< RTC backup register 22, Address offset: 0xA8 */ | |
746 __IO uint32_t BKP23R; /*!< RTC backup register 23, Address offset: 0xAC */ | |
747 __IO uint32_t BKP24R; /*!< RTC backup register 24, Address offset: 0xB0 */ | |
748 __IO uint32_t BKP25R; /*!< RTC backup register 25, Address offset: 0xB4 */ | |
749 __IO uint32_t BKP26R; /*!< RTC backup register 26, Address offset: 0xB8 */ | |
750 __IO uint32_t BKP27R; /*!< RTC backup register 27, Address offset: 0xBC */ | |
751 __IO uint32_t BKP28R; /*!< RTC backup register 28, Address offset: 0xC0 */ | |
752 __IO uint32_t BKP29R; /*!< RTC backup register 29, Address offset: 0xC4 */ | |
753 __IO uint32_t BKP30R; /*!< RTC backup register 30, Address offset: 0xC8 */ | |
754 __IO uint32_t BKP31R; /*!< RTC backup register 31, Address offset: 0xCC */ | |
755 } RTC_TypeDef; | |
756 | |
757 | |
758 /** | |
759 * @brief Serial Audio Interface | |
760 */ | |
761 | |
762 typedef struct | |
763 { | |
764 __IO uint32_t GCR; /*!< SAI global configuration register, Address offset: 0x00 */ | |
765 } SAI_TypeDef; | |
766 | |
767 typedef struct | |
768 { | |
769 __IO uint32_t CR1; /*!< SAI block x configuration register 1, Address offset: 0x04 */ | |
770 __IO uint32_t CR2; /*!< SAI block x configuration register 2, Address offset: 0x08 */ | |
771 __IO uint32_t FRCR; /*!< SAI block x frame configuration register, Address offset: 0x0C */ | |
772 __IO uint32_t SLOTR; /*!< SAI block x slot register, Address offset: 0x10 */ | |
773 __IO uint32_t IMR; /*!< SAI block x interrupt mask register, Address offset: 0x14 */ | |
774 __IO uint32_t SR; /*!< SAI block x status register, Address offset: 0x18 */ | |
775 __IO uint32_t CLRFR; /*!< SAI block x clear flag register, Address offset: 0x1C */ | |
776 __IO uint32_t DR; /*!< SAI block x data register, Address offset: 0x20 */ | |
777 } SAI_Block_TypeDef; | |
778 | |
779 | |
780 /** | |
781 * @brief Secure digital input/output Interface | |
782 */ | |
783 | |
784 typedef struct | |
785 { | |
786 __IO uint32_t POWER; /*!< SDMMC power control register, Address offset: 0x00 */ | |
787 __IO uint32_t CLKCR; /*!< SDMMC clock control register, Address offset: 0x04 */ | |
788 __IO uint32_t ARG; /*!< SDMMC argument register, Address offset: 0x08 */ | |
789 __IO uint32_t CMD; /*!< SDMMC command register, Address offset: 0x0C */ | |
790 __I uint32_t RESPCMD; /*!< SDMMC command response register, Address offset: 0x10 */ | |
791 __I uint32_t RESP1; /*!< SDMMC response 1 register, Address offset: 0x14 */ | |
792 __I uint32_t RESP2; /*!< SDMMC response 2 register, Address offset: 0x18 */ | |
793 __I uint32_t RESP3; /*!< SDMMC response 3 register, Address offset: 0x1C */ | |
794 __I uint32_t RESP4; /*!< SDMMC response 4 register, Address offset: 0x20 */ | |
795 __IO uint32_t DTIMER; /*!< SDMMC data timer register, Address offset: 0x24 */ | |
796 __IO uint32_t DLEN; /*!< SDMMC data length register, Address offset: 0x28 */ | |
797 __IO uint32_t DCTRL; /*!< SDMMC data control register, Address offset: 0x2C */ | |
798 __I uint32_t DCOUNT; /*!< SDMMC data counter register, Address offset: 0x30 */ | |
799 __I uint32_t STA; /*!< SDMMC status register, Address offset: 0x34 */ | |
800 __IO uint32_t ICR; /*!< SDMMC interrupt clear register, Address offset: 0x38 */ | |
801 __IO uint32_t MASK; /*!< SDMMC mask register, Address offset: 0x3C */ | |
802 uint32_t RESERVED0[2]; /*!< Reserved, 0x40-0x44 */ | |
803 __I uint32_t FIFOCNT; /*!< SDMMC FIFO counter register, Address offset: 0x48 */ | |
804 uint32_t RESERVED1[13]; /*!< Reserved, 0x4C-0x7C */ | |
805 __IO uint32_t FIFO; /*!< SDMMC data FIFO register, Address offset: 0x80 */ | |
806 } SDMMC_TypeDef; | |
807 | |
808 | |
809 /** | |
810 * @brief Serial Peripheral Interface | |
811 */ | |
812 | |
813 typedef struct | |
814 { | |
815 __IO uint32_t CR1; /*!< SPI Control register 1, Address offset: 0x00 */ | |
816 __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */ | |
817 __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */ | |
818 __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */ | |
819 __IO uint32_t CRCPR; /*!< SPI CRC polynomial register, Address offset: 0x10 */ | |
820 __IO uint32_t RXCRCR; /*!< SPI Rx CRC register, Address offset: 0x14 */ | |
821 __IO uint32_t TXCRCR; /*!< SPI Tx CRC register, Address offset: 0x18 */ | |
822 uint32_t RESERVED1; /*!< Reserved, Address offset: 0x1C */ | |
823 uint32_t RESERVED2; /*!< Reserved, Address offset: 0x20 */ | |
824 } SPI_TypeDef; | |
825 | |
826 | |
827 /** | |
828 * @brief System configuration controller | |
829 */ | |
830 | |
831 typedef struct | |
832 { | |
833 __IO uint32_t MEMRMP; /*!< SYSCFG memory remap register, Address offset: 0x00 */ | |
834 __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x04 */ | |
835 __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x08-0x14 */ | |
836 __IO uint32_t SCSR; /*!< SYSCFG SRAM2 control and status register, Address offset: 0x18 */ | |
837 __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x1C */ | |
838 __IO uint32_t SWPR; /*!< SYSCFG SRAM2 write protection register, Address offset: 0x20 */ | |
839 __IO uint32_t SKR; /*!< SYSCFG SRAM2 key register, Address offset: 0x24 */ | |
840 } SYSCFG_TypeDef; | |
841 | |
842 | |
843 /** | |
844 * @brief TIM | |
845 */ | |
846 | |
847 typedef struct | |
848 { | |
849 __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */ | |
850 __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */ | |
851 __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */ | |
852 __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */ | |
853 __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */ | |
854 __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */ | |
855 __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */ | |
856 __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */ | |
857 __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */ | |
858 __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */ | |
859 __IO uint32_t PSC; /*!< TIM prescaler, Address offset: 0x28 */ | |
860 __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */ | |
861 __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */ | |
862 __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */ | |
863 __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */ | |
864 __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */ | |
865 __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */ | |
866 __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */ | |
867 __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */ | |
868 __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */ | |
869 __IO uint32_t OR1; /*!< TIM option register 1, Address offset: 0x50 */ | |
870 __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */ | |
871 __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */ | |
872 __IO uint32_t CCR6; /*!< TIM capture/compare register6, Address offset: 0x5C */ | |
873 __IO uint32_t OR2; /*!< TIM option register 2, Address offset: 0x60 */ | |
874 __IO uint32_t OR3; /*!< TIM option register 3, Address offset: 0x64 */ | |
875 } TIM_TypeDef; | |
876 | |
877 | |
878 /** | |
879 * @brief Touch Sensing Controller (TSC) | |
880 */ | |
881 | |
882 typedef struct | |
883 { | |
884 __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */ | |
885 __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */ | |
886 __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */ | |
887 __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */ | |
888 __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */ | |
889 uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */ | |
890 __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */ | |
891 uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */ | |
892 __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */ | |
893 uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */ | |
894 __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */ | |
895 uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */ | |
896 __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */ | |
897 __IO uint32_t IOGXCR[7]; /*!< TSC I/O group x counter register, Address offset: 0x34-4C */ | |
898 } TSC_TypeDef; | |
899 | |
900 /** | |
901 * @brief Universal Synchronous Asynchronous Receiver Transmitter | |
902 */ | |
903 | |
904 typedef struct | |
905 { | |
906 __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */ | |
907 __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */ | |
908 __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */ | |
909 __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */ | |
910 __IO uint16_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */ | |
911 uint16_t RESERVED2; /*!< Reserved, 0x12 */ | |
912 __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */ | |
913 __IO uint16_t RQR; /*!< USART Request register, Address offset: 0x18 */ | |
914 uint16_t RESERVED3; /*!< Reserved, 0x1A */ | |
915 __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */ | |
916 __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */ | |
917 __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */ | |
918 uint16_t RESERVED4; /*!< Reserved, 0x26 */ | |
919 __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */ | |
920 uint16_t RESERVED5; /*!< Reserved, 0x2A */ | |
921 } USART_TypeDef; | |
922 | |
923 /** | |
924 * @brief Universal Serial Bus Full Speed Device | |
925 */ | |
926 | |
927 typedef struct | |
928 { | |
929 __IO uint16_t EP0R; /*!< USB Endpoint 0 register, Address offset: 0x00 */ | |
930 __IO uint16_t RESERVED0; /*!< Reserved */ | |
931 __IO uint16_t EP1R; /*!< USB Endpoint 1 register, Address offset: 0x04 */ | |
932 __IO uint16_t RESERVED1; /*!< Reserved */ | |
933 __IO uint16_t EP2R; /*!< USB Endpoint 2 register, Address offset: 0x08 */ | |
934 __IO uint16_t RESERVED2; /*!< Reserved */ | |
935 __IO uint16_t EP3R; /*!< USB Endpoint 3 register, Address offset: 0x0C */ | |
936 __IO uint16_t RESERVED3; /*!< Reserved */ | |
937 __IO uint16_t EP4R; /*!< USB Endpoint 4 register, Address offset: 0x10 */ | |
938 __IO uint16_t RESERVED4; /*!< Reserved */ | |
939 __IO uint16_t EP5R; /*!< USB Endpoint 5 register, Address offset: 0x14 */ | |
940 __IO uint16_t RESERVED5; /*!< Reserved */ | |
941 __IO uint16_t EP6R; /*!< USB Endpoint 6 register, Address offset: 0x18 */ | |
942 __IO uint16_t RESERVED6; /*!< Reserved */ | |
943 __IO uint16_t EP7R; /*!< USB Endpoint 7 register, Address offset: 0x1C */ | |
944 __IO uint16_t RESERVED7[17]; /*!< Reserved */ | |
945 __IO uint16_t CNTR; /*!< Control register, Address offset: 0x40 */ | |
946 __IO uint16_t RESERVED8; /*!< Reserved */ | |
947 __IO uint16_t ISTR; /*!< Interrupt status register, Address offset: 0x44 */ | |
948 __IO uint16_t RESERVED9; /*!< Reserved */ | |
949 __IO uint16_t FNR; /*!< Frame number register, Address offset: 0x48 */ | |
950 __IO uint16_t RESERVEDA; /*!< Reserved */ | |
951 __IO uint16_t DADDR; /*!< Device address register, Address offset: 0x4C */ | |
952 __IO uint16_t RESERVEDB; /*!< Reserved */ | |
953 __IO uint16_t BTABLE; /*!< Buffer Table address register, Address offset: 0x50 */ | |
954 __IO uint16_t RESERVEDC; /*!< Reserved */ | |
955 __IO uint16_t LPMCSR; /*!< LPM Control and Status register, Address offset: 0x54 */ | |
956 __IO uint16_t RESERVEDD; /*!< Reserved */ | |
957 __IO uint16_t BCDR; /*!< Battery Charging detector register, Address offset: 0x58 */ | |
958 __IO uint16_t RESERVEDE; /*!< Reserved */ | |
959 } USB_TypeDef; | |
960 | |
961 /** | |
962 * @brief VREFBUF | |
963 */ | |
964 | |
965 typedef struct | |
966 { | |
967 __IO uint32_t CSR; /*!< VREFBUF control and status register, Address offset: 0x00 */ | |
968 __IO uint32_t CCR; /*!< VREFBUF calibration and control register, Address offset: 0x04 */ | |
969 } VREFBUF_TypeDef; | |
970 | |
971 /** | |
972 * @brief Window WATCHDOG | |
973 */ | |
974 | |
975 typedef struct | |
976 { | |
977 __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */ | |
978 __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */ | |
979 __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */ | |
980 } WWDG_TypeDef; | |
981 | |
982 /** | |
983 * @brief AES hardware accelerator | |
984 */ | |
985 | |
986 typedef struct | |
987 { | |
988 __IO uint32_t CR; /*!< AES control register, Address offset: 0x00 */ | |
989 __IO uint32_t SR; /*!< AES status register, Address offset: 0x04 */ | |
990 __IO uint32_t DINR; /*!< AES data input register, Address offset: 0x08 */ | |
991 __IO uint32_t DOUTR; /*!< AES data output register, Address offset: 0x0C */ | |
992 __IO uint32_t KEYR0; /*!< AES key register 0, Address offset: 0x10 */ | |
993 __IO uint32_t KEYR1; /*!< AES key register 1, Address offset: 0x14 */ | |
994 __IO uint32_t KEYR2; /*!< AES key register 2, Address offset: 0x18 */ | |
995 __IO uint32_t KEYR3; /*!< AES key register 3, Address offset: 0x1C */ | |
996 __IO uint32_t IVR0; /*!< AES initialization vector register 0, Address offset: 0x20 */ | |
997 __IO uint32_t IVR1; /*!< AES initialization vector register 1, Address offset: 0x24 */ | |
998 __IO uint32_t IVR2; /*!< AES initialization vector register 2, Address offset: 0x28 */ | |
999 __IO uint32_t IVR3; /*!< AES initialization vector register 3, Address offset: 0x2C */ | |
1000 __IO uint32_t KEYR4; /*!< AES key register 4, Address offset: 0x30 */ | |
1001 __IO uint32_t KEYR5; /*!< AES key register 5, Address offset: 0x34 */ | |
1002 __IO uint32_t KEYR6; /*!< AES key register 6, Address offset: 0x38 */ | |
1003 __IO uint32_t KEYR7; /*!< AES key register 7, Address offset: 0x3C */ | |
1004 __IO uint32_t SUSP0R; /*!< AES Suspend register 0, Address offset: 0x40 */ | |
1005 __IO uint32_t SUSP1R; /*!< AES Suspend register 1, Address offset: 0x44 */ | |
1006 __IO uint32_t SUSP2R; /*!< AES Suspend register 2, Address offset: 0x48 */ | |
1007 __IO uint32_t SUSP3R; /*!< AES Suspend register 3, Address offset: 0x4C */ | |
1008 __IO uint32_t SUSP4R; /*!< AES Suspend register 4, Address offset: 0x50 */ | |
1009 __IO uint32_t SUSP5R; /*!< AES Suspend register 5, Address offset: 0x54 */ | |
1010 __IO uint32_t SUSP6R; /*!< AES Suspend register 6, Address offset: 0x58 */ | |
1011 __IO uint32_t SUSP7R; /*!< AES Suspend register 7, Address offset: 0x6C */ | |
1012 } AES_TypeDef; | |
1013 | |
1014 /** | |
1015 * @brief RNG | |
1016 */ | |
1017 | |
1018 typedef struct | |
1019 { | |
1020 __IO uint32_t CR; /*!< RNG control register, Address offset: 0x00 */ | |
1021 __IO uint32_t SR; /*!< RNG status register, Address offset: 0x04 */ | |
1022 __IO uint32_t DR; /*!< RNG data register, Address offset: 0x08 */ | |
1023 } RNG_TypeDef; | |
1024 | |
1025 /** | |
1026 * @} | |
1027 */ | |
1028 | |
1029 /** @addtogroup Peripheral_memory_map | |
1030 * @{ | |
1031 */ | |
1032 #define FLASH_BASE ((uint32_t)0x08000000U) /*!< FLASH(up to 1 MB) base address */ | |
1033 #define SRAM1_BASE ((uint32_t)0x20000000U) /*!< SRAM1(up to 128 KB) base address */ | |
1034 #define PERIPH_BASE ((uint32_t)0x40000000U) /*!< Peripheral base address */ | |
1035 #define SRAM2_BASE ((uint32_t)0x10000000U) /*!< SRAM2(32 KB) base address */ | |
1036 #define QSPI_BASE ((uint32_t)0x90000000U) /*!< QSPI memories accessible over AHB base address */ | |
1037 #define QSPI_R_BASE ((uint32_t)0xA0001000U) /*!< QUADSPI control registers base address */ | |
1038 #define SRAM1_BB_BASE ((uint32_t)0x22000000U) /*!< SRAM1(96 KB) base address in the bit-band region */ | |
1039 #define PERIPH_BB_BASE ((uint32_t)0x42000000U) /*!< Peripheral base address in the bit-band region */ | |
1040 #define SRAM2_BB_BASE ((uint32_t)0x12000000U) /*!< SRAM2(32 KB) base address in the bit-band region */ | |
1041 | |
1042 /* Legacy defines */ | |
1043 #define SRAM_BASE SRAM1_BASE | |
1044 #define SRAM_BB_BASE SRAM1_BB_BASE | |
1045 | |
1046 #define SRAM1_SIZE_MAX ((uint32_t)0x00020000U) /*!< maximum SRAM1 size (up to 128 KBytes) */ | |
1047 #define SRAM2_SIZE ((uint32_t)0x00008000U) /*!< SRAM2 size (32 KBytes) */ | |
1048 | |
1049 /*!< Peripheral memory map */ | |
1050 #define APB1PERIPH_BASE PERIPH_BASE | |
1051 #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000U) | |
1052 #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000U) | |
1053 #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000U) | |
1054 | |
1055 | |
1056 /*!< APB1 peripherals */ | |
1057 #define TIM2_BASE (APB1PERIPH_BASE + 0x0000U) | |
1058 #define TIM3_BASE (APB1PERIPH_BASE + 0x0400U) | |
1059 #define TIM6_BASE (APB1PERIPH_BASE + 0x1000U) | |
1060 #define RTC_BASE (APB1PERIPH_BASE + 0x2800U) | |
1061 #define WWDG_BASE (APB1PERIPH_BASE + 0x2C00U) | |
1062 #define IWDG_BASE (APB1PERIPH_BASE + 0x3000U) | |
1063 #define SPI2_BASE (APB1PERIPH_BASE + 0x3800U) | |
1064 #define SPI3_BASE (APB1PERIPH_BASE + 0x3C00U) | |
1065 #define USART2_BASE (APB1PERIPH_BASE + 0x4400U) | |
1066 #define USART3_BASE (APB1PERIPH_BASE + 0x4800U) | |
1067 #define UART4_BASE (APB1PERIPH_BASE + 0x4C00U) | |
1068 #define I2C1_BASE (APB1PERIPH_BASE + 0x5400U) | |
1069 #define I2C2_BASE (APB1PERIPH_BASE + 0x5800U) | |
1070 #define I2C3_BASE (APB1PERIPH_BASE + 0x5C00U) | |
1071 #define CRS_BASE (APB1PERIPH_BASE + 0x6000U) | |
1072 #define CAN1_BASE (APB1PERIPH_BASE + 0x6400U) | |
1073 #define USB_BASE (APB1PERIPH_BASE + 0x6800U) /*!< USB_IP Peripheral Registers base address */ | |
1074 #define USB_PMAADDR (APB1PERIPH_BASE + 0x6C00U) /*!< USB_IP Packet Memory Area base address */ | |
1075 #define I2C4_BASE (APB1PERIPH_BASE + 0x8400U) | |
1076 #define PWR_BASE (APB1PERIPH_BASE + 0x7000U) | |
1077 #define DAC_BASE (APB1PERIPH_BASE + 0x7400U) | |
1078 #define DAC1_BASE (APB1PERIPH_BASE + 0x7400U) | |
1079 #define OPAMP_BASE (APB1PERIPH_BASE + 0x7800U) | |
1080 #define OPAMP1_BASE (APB1PERIPH_BASE + 0x7800U) | |
1081 #define LPTIM1_BASE (APB1PERIPH_BASE + 0x7C00U) | |
1082 #define LPUART1_BASE (APB1PERIPH_BASE + 0x8000U) | |
1083 #define LPTIM2_BASE (APB1PERIPH_BASE + 0x9400U) | |
1084 | |
1085 | |
1086 /*!< APB2 peripherals */ | |
1087 #define SYSCFG_BASE (APB2PERIPH_BASE + 0x0000U) | |
1088 #define VREFBUF_BASE (APB2PERIPH_BASE + 0x0030U) | |
1089 #define COMP1_BASE (APB2PERIPH_BASE + 0x0200U) | |
1090 #define COMP2_BASE (APB2PERIPH_BASE + 0x0204U) | |
1091 #define EXTI_BASE (APB2PERIPH_BASE + 0x0400U) | |
1092 #define FIREWALL_BASE (APB2PERIPH_BASE + 0x1C00U) | |
1093 #define SDMMC1_BASE (APB2PERIPH_BASE + 0x2800U) | |
1094 #define TIM1_BASE (APB2PERIPH_BASE + 0x2C00U) | |
1095 #define SPI1_BASE (APB2PERIPH_BASE + 0x3000U) | |
1096 #define USART1_BASE (APB2PERIPH_BASE + 0x3800U) | |
1097 #define TIM15_BASE (APB2PERIPH_BASE + 0x4000U) | |
1098 #define TIM16_BASE (APB2PERIPH_BASE + 0x4400U) | |
1099 #define SAI1_BASE (APB2PERIPH_BASE + 0x5400U) | |
1100 #define SAI1_Block_A_BASE (SAI1_BASE + 0x004) | |
1101 #define SAI1_Block_B_BASE (SAI1_BASE + 0x024) | |
1102 #define DFSDM1_BASE (APB2PERIPH_BASE + 0x6000U) | |
1103 #define DFSDM1_Channel0_BASE (DFSDM1_BASE + 0x00) | |
1104 #define DFSDM1_Channel1_BASE (DFSDM1_BASE + 0x20) | |
1105 #define DFSDM1_Channel2_BASE (DFSDM1_BASE + 0x40) | |
1106 #define DFSDM1_Channel3_BASE (DFSDM1_BASE + 0x60) | |
1107 #define DFSDM1_Filter0_BASE (DFSDM1_BASE + 0x100) | |
1108 #define DFSDM1_Filter1_BASE (DFSDM1_BASE + 0x180) | |
1109 | |
1110 /*!< AHB1 peripherals */ | |
1111 #define DMA1_BASE (AHB1PERIPH_BASE) | |
1112 #define DMA2_BASE (AHB1PERIPH_BASE + 0x0400U) | |
1113 #define RCC_BASE (AHB1PERIPH_BASE + 0x1000U) | |
1114 #define FLASH_R_BASE (AHB1PERIPH_BASE + 0x2000U) | |
1115 #define CRC_BASE (AHB1PERIPH_BASE + 0x3000U) | |
1116 #define TSC_BASE (AHB1PERIPH_BASE + 0x4000U) | |
1117 | |
1118 | |
1119 #define DMA1_Channel1_BASE (DMA1_BASE + 0x0008U) | |
1120 #define DMA1_Channel2_BASE (DMA1_BASE + 0x001CU) | |
1121 #define DMA1_Channel3_BASE (DMA1_BASE + 0x0030U) | |
1122 #define DMA1_Channel4_BASE (DMA1_BASE + 0x0044U) | |
1123 #define DMA1_Channel5_BASE (DMA1_BASE + 0x0058U) | |
1124 #define DMA1_Channel6_BASE (DMA1_BASE + 0x006CU) | |
1125 #define DMA1_Channel7_BASE (DMA1_BASE + 0x0080U) | |
1126 #define DMA1_CSELR_BASE (DMA1_BASE + 0x00A8U) | |
1127 | |
1128 | |
1129 #define DMA2_Channel1_BASE (DMA2_BASE + 0x0008U) | |
1130 #define DMA2_Channel2_BASE (DMA2_BASE + 0x001CU) | |
1131 #define DMA2_Channel3_BASE (DMA2_BASE + 0x0030U) | |
1132 #define DMA2_Channel4_BASE (DMA2_BASE + 0x0044U) | |
1133 #define DMA2_Channel5_BASE (DMA2_BASE + 0x0058U) | |
1134 #define DMA2_Channel6_BASE (DMA2_BASE + 0x006CU) | |
1135 #define DMA2_Channel7_BASE (DMA2_BASE + 0x0080U) | |
1136 #define DMA2_CSELR_BASE (DMA2_BASE + 0x00A8U) | |
1137 | |
1138 | |
1139 /*!< AHB2 peripherals */ | |
1140 #define GPIOA_BASE (AHB2PERIPH_BASE + 0x0000U) | |
1141 #define GPIOB_BASE (AHB2PERIPH_BASE + 0x0400U) | |
1142 #define GPIOC_BASE (AHB2PERIPH_BASE + 0x0800U) | |
1143 #define GPIOD_BASE (AHB2PERIPH_BASE + 0x0C00U) | |
1144 #define GPIOE_BASE (AHB2PERIPH_BASE + 0x1000U) | |
1145 #define GPIOH_BASE (AHB2PERIPH_BASE + 0x1C00U) | |
1146 | |
1147 | |
1148 #define ADC1_BASE (AHB2PERIPH_BASE + 0x08040000U) | |
1149 #define ADC1_COMMON_BASE (AHB2PERIPH_BASE + 0x08040300U) | |
1150 | |
1151 | |
1152 #define AES_BASE (AHB2PERIPH_BASE + 0x08060000U) | |
1153 #define RNG_BASE (AHB2PERIPH_BASE + 0x08060800U) | |
1154 | |
1155 | |
1156 | |
1157 /* Debug MCU registers base address */ | |
1158 #define DBGMCU_BASE ((uint32_t)0xE0042000U) | |
1159 | |
1160 | |
1161 #define PACKAGE_BASE ((uint32_t)0x1FFF7500U) /*!< Package data register base address */ | |
1162 #define UID_BASE ((uint32_t)0x1FFF7590U) /*!< Unique device ID register base address */ | |
1163 #define FLASHSIZE_BASE ((uint32_t)0x1FFF75E0U) /*!< Flash size data register base address */ | |
1164 /** | |
1165 * @} | |
1166 */ | |
1167 | |
1168 /** @addtogroup Peripheral_declaration | |
1169 * @{ | |
1170 */ | |
1171 #define TIM2 ((TIM_TypeDef *) TIM2_BASE) | |
1172 #define TIM3 ((TIM_TypeDef *) TIM3_BASE) | |
1173 #define TIM6 ((TIM_TypeDef *) TIM6_BASE) | |
1174 #define RTC ((RTC_TypeDef *) RTC_BASE) | |
1175 #define WWDG ((WWDG_TypeDef *) WWDG_BASE) | |
1176 #define IWDG ((IWDG_TypeDef *) IWDG_BASE) | |
1177 #define SPI2 ((SPI_TypeDef *) SPI2_BASE) | |
1178 #define SPI3 ((SPI_TypeDef *) SPI3_BASE) | |
1179 #define USART2 ((USART_TypeDef *) USART2_BASE) | |
1180 #define USART3 ((USART_TypeDef *) USART3_BASE) | |
1181 #define UART4 ((USART_TypeDef *) UART4_BASE) | |
1182 #define I2C1 ((I2C_TypeDef *) I2C1_BASE) | |
1183 #define I2C2 ((I2C_TypeDef *) I2C2_BASE) | |
1184 #define I2C3 ((I2C_TypeDef *) I2C3_BASE) | |
1185 #define CRS ((CRS_TypeDef *) CRS_BASE) | |
1186 #define CAN ((CAN_TypeDef *) CAN1_BASE) | |
1187 #define CAN1 ((CAN_TypeDef *) CAN1_BASE) | |
1188 #define USB ((USB_TypeDef *) USB_BASE) | |
1189 #define I2C4 ((I2C_TypeDef *) I2C4_BASE) | |
1190 #define PWR ((PWR_TypeDef *) PWR_BASE) | |
1191 #define DAC ((DAC_TypeDef *) DAC1_BASE) | |
1192 #define DAC1 ((DAC_TypeDef *) DAC1_BASE) | |
1193 #define OPAMP ((OPAMP_TypeDef *) OPAMP_BASE) | |
1194 #define OPAMP1 ((OPAMP_TypeDef *) OPAMP1_BASE) | |
1195 #define OPAMP1_COMMON ((OPAMP_Common_TypeDef *) OPAMP1_BASE) | |
1196 #define LPTIM1 ((LPTIM_TypeDef *) LPTIM1_BASE) | |
1197 #define LPUART1 ((USART_TypeDef *) LPUART1_BASE) | |
1198 #define LPTIM2 ((LPTIM_TypeDef *) LPTIM2_BASE) | |
1199 | |
1200 #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE) | |
1201 #define VREFBUF ((VREFBUF_TypeDef *) VREFBUF_BASE) | |
1202 #define COMP1 ((COMP_TypeDef *) COMP1_BASE) | |
1203 #define COMP2 ((COMP_TypeDef *) COMP2_BASE) | |
1204 #define COMP12_COMMON ((COMP_Common_TypeDef *) COMP2_BASE) | |
1205 #define EXTI ((EXTI_TypeDef *) EXTI_BASE) | |
1206 #define FIREWALL ((FIREWALL_TypeDef *) FIREWALL_BASE) | |
1207 #define SDMMC1 ((SDMMC_TypeDef *) SDMMC1_BASE) | |
1208 #define TIM1 ((TIM_TypeDef *) TIM1_BASE) | |
1209 #define SPI1 ((SPI_TypeDef *) SPI1_BASE) | |
1210 #define USART1 ((USART_TypeDef *) USART1_BASE) | |
1211 #define TIM15 ((TIM_TypeDef *) TIM15_BASE) | |
1212 #define TIM16 ((TIM_TypeDef *) TIM16_BASE) | |
1213 #define SAI1 ((SAI_TypeDef *) SAI1_BASE) | |
1214 #define SAI1_Block_A ((SAI_Block_TypeDef *)SAI1_Block_A_BASE) | |
1215 #define SAI1_Block_B ((SAI_Block_TypeDef *)SAI1_Block_B_BASE) | |
1216 #define DFSDM1_Channel0 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel0_BASE) | |
1217 #define DFSDM1_Channel1 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel1_BASE) | |
1218 #define DFSDM1_Channel2 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel2_BASE) | |
1219 #define DFSDM1_Channel3 ((DFSDM_Channel_TypeDef *) DFSDM1_Channel3_BASE) | |
1220 #define DFSDM1_Filter0 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter0_BASE) | |
1221 #define DFSDM1_Filter1 ((DFSDM_Filter_TypeDef *) DFSDM1_Filter1_BASE) | |
1222 /* Aliases to keep compatibility after DFSDM renaming */ | |
1223 #define DFSDM_Channel0 DFSDM1_Channel0 | |
1224 #define DFSDM_Channel1 DFSDM1_Channel1 | |
1225 #define DFSDM_Channel2 DFSDM1_Channel2 | |
1226 #define DFSDM_Channel3 DFSDM1_Channel3 | |
1227 #define DFSDM_Filter0 DFSDM1_Filter0 | |
1228 #define DFSDM_Filter1 DFSDM1_Filter1 | |
1229 #define DMA1 ((DMA_TypeDef *) DMA1_BASE) | |
1230 #define DMA2 ((DMA_TypeDef *) DMA2_BASE) | |
1231 #define RCC ((RCC_TypeDef *) RCC_BASE) | |
1232 #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE) | |
1233 #define CRC ((CRC_TypeDef *) CRC_BASE) | |
1234 #define TSC ((TSC_TypeDef *) TSC_BASE) | |
1235 | |
1236 #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE) | |
1237 #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE) | |
1238 #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE) | |
1239 #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE) | |
1240 #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE) | |
1241 #define GPIOH ((GPIO_TypeDef *) GPIOH_BASE) | |
1242 #define ADC1 ((ADC_TypeDef *) ADC1_BASE) | |
1243 #define ADC1_COMMON ((ADC_Common_TypeDef *) ADC1_COMMON_BASE) | |
1244 #define AES ((AES_TypeDef *) AES_BASE) | |
1245 #define RNG ((RNG_TypeDef *) RNG_BASE) | |
1246 | |
1247 | |
1248 #define DMA1_Channel1 ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE) | |
1249 #define DMA1_Channel2 ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE) | |
1250 #define DMA1_Channel3 ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE) | |
1251 #define DMA1_Channel4 ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE) | |
1252 #define DMA1_Channel5 ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE) | |
1253 #define DMA1_Channel6 ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE) | |
1254 #define DMA1_Channel7 ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE) | |
1255 #define DMA1_CSELR ((DMA_request_TypeDef *) DMA1_CSELR_BASE) | |
1256 | |
1257 | |
1258 #define DMA2_Channel1 ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE) | |
1259 #define DMA2_Channel2 ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE) | |
1260 #define DMA2_Channel3 ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE) | |
1261 #define DMA2_Channel4 ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE) | |
1262 #define DMA2_Channel5 ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE) | |
1263 #define DMA2_Channel6 ((DMA_Channel_TypeDef *) DMA2_Channel6_BASE) | |
1264 #define DMA2_Channel7 ((DMA_Channel_TypeDef *) DMA2_Channel7_BASE) | |
1265 #define DMA2_CSELR ((DMA_request_TypeDef *) DMA2_CSELR_BASE) | |
1266 | |
1267 | |
1268 | |
1269 #define QUADSPI ((QUADSPI_TypeDef *) QSPI_R_BASE) | |
1270 | |
1271 #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE) | |
1272 | |
1273 /** | |
1274 * @} | |
1275 */ | |
1276 | |
1277 /** @addtogroup Exported_constants | |
1278 * @{ | |
1279 */ | |
1280 | |
1281 /** @addtogroup Peripheral_Registers_Bits_Definition | |
1282 * @{ | |
1283 */ | |
1284 | |
1285 /******************************************************************************/ | |
1286 /* Peripheral Registers_Bits_Definition */ | |
1287 /******************************************************************************/ | |
1288 | |
1289 /******************************************************************************/ | |
1290 /* */ | |
1291 /* Analog to Digital Converter */ | |
1292 /* */ | |
1293 /******************************************************************************/ | |
1294 | |
1295 /* | |
1296 * @brief Specific device feature definitions (not present on all devices in the STM32L4 serie) | |
1297 */ | |
1298 /* Note: No specific macro feature on this device */ | |
1299 | |
1300 /******************** Bit definition for ADC_ISR register *******************/ | |
1301 #define ADC_ISR_ADRDY_Pos (0U) | |
1302 #define ADC_ISR_ADRDY_Msk (0x1U << ADC_ISR_ADRDY_Pos) /*!< 0x00000001 */ | |
1303 #define ADC_ISR_ADRDY ADC_ISR_ADRDY_Msk /*!< ADC ready flag */ | |
1304 #define ADC_ISR_EOSMP_Pos (1U) | |
1305 #define ADC_ISR_EOSMP_Msk (0x1U << ADC_ISR_EOSMP_Pos) /*!< 0x00000002 */ | |
1306 #define ADC_ISR_EOSMP ADC_ISR_EOSMP_Msk /*!< ADC group regular end of sampling flag */ | |
1307 #define ADC_ISR_EOC_Pos (2U) | |
1308 #define ADC_ISR_EOC_Msk (0x1U << ADC_ISR_EOC_Pos) /*!< 0x00000004 */ | |
1309 #define ADC_ISR_EOC ADC_ISR_EOC_Msk /*!< ADC group regular end of unitary conversion flag */ | |
1310 #define ADC_ISR_EOS_Pos (3U) | |
1311 #define ADC_ISR_EOS_Msk (0x1U << ADC_ISR_EOS_Pos) /*!< 0x00000008 */ | |
1312 #define ADC_ISR_EOS ADC_ISR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */ | |
1313 #define ADC_ISR_OVR_Pos (4U) | |
1314 #define ADC_ISR_OVR_Msk (0x1U << ADC_ISR_OVR_Pos) /*!< 0x00000010 */ | |
1315 #define ADC_ISR_OVR ADC_ISR_OVR_Msk /*!< ADC group regular overrun flag */ | |
1316 #define ADC_ISR_JEOC_Pos (5U) | |
1317 #define ADC_ISR_JEOC_Msk (0x1U << ADC_ISR_JEOC_Pos) /*!< 0x00000020 */ | |
1318 #define ADC_ISR_JEOC ADC_ISR_JEOC_Msk /*!< ADC group injected end of unitary conversion flag */ | |
1319 #define ADC_ISR_JEOS_Pos (6U) | |
1320 #define ADC_ISR_JEOS_Msk (0x1U << ADC_ISR_JEOS_Pos) /*!< 0x00000040 */ | |
1321 #define ADC_ISR_JEOS ADC_ISR_JEOS_Msk /*!< ADC group injected end of sequence conversions flag */ | |
1322 #define ADC_ISR_AWD1_Pos (7U) | |
1323 #define ADC_ISR_AWD1_Msk (0x1U << ADC_ISR_AWD1_Pos) /*!< 0x00000080 */ | |
1324 #define ADC_ISR_AWD1 ADC_ISR_AWD1_Msk /*!< ADC analog watchdog 1 flag */ | |
1325 #define ADC_ISR_AWD2_Pos (8U) | |
1326 #define ADC_ISR_AWD2_Msk (0x1U << ADC_ISR_AWD2_Pos) /*!< 0x00000100 */ | |
1327 #define ADC_ISR_AWD2 ADC_ISR_AWD2_Msk /*!< ADC analog watchdog 2 flag */ | |
1328 #define ADC_ISR_AWD3_Pos (9U) | |
1329 #define ADC_ISR_AWD3_Msk (0x1U << ADC_ISR_AWD3_Pos) /*!< 0x00000200 */ | |
1330 #define ADC_ISR_AWD3 ADC_ISR_AWD3_Msk /*!< ADC analog watchdog 3 flag */ | |
1331 #define ADC_ISR_JQOVF_Pos (10U) | |
1332 #define ADC_ISR_JQOVF_Msk (0x1U << ADC_ISR_JQOVF_Pos) /*!< 0x00000400 */ | |
1333 #define ADC_ISR_JQOVF ADC_ISR_JQOVF_Msk /*!< ADC group injected contexts queue overflow flag */ | |
1334 | |
1335 /******************** Bit definition for ADC_IER register *******************/ | |
1336 #define ADC_IER_ADRDYIE_Pos (0U) | |
1337 #define ADC_IER_ADRDYIE_Msk (0x1U << ADC_IER_ADRDYIE_Pos) /*!< 0x00000001 */ | |
1338 #define ADC_IER_ADRDYIE ADC_IER_ADRDYIE_Msk /*!< ADC ready interrupt */ | |
1339 #define ADC_IER_EOSMPIE_Pos (1U) | |
1340 #define ADC_IER_EOSMPIE_Msk (0x1U << ADC_IER_EOSMPIE_Pos) /*!< 0x00000002 */ | |
1341 #define ADC_IER_EOSMPIE ADC_IER_EOSMPIE_Msk /*!< ADC group regular end of sampling interrupt */ | |
1342 #define ADC_IER_EOCIE_Pos (2U) | |
1343 #define ADC_IER_EOCIE_Msk (0x1U << ADC_IER_EOCIE_Pos) /*!< 0x00000004 */ | |
1344 #define ADC_IER_EOCIE ADC_IER_EOCIE_Msk /*!< ADC group regular end of unitary conversion interrupt */ | |
1345 #define ADC_IER_EOSIE_Pos (3U) | |
1346 #define ADC_IER_EOSIE_Msk (0x1U << ADC_IER_EOSIE_Pos) /*!< 0x00000008 */ | |
1347 #define ADC_IER_EOSIE ADC_IER_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */ | |
1348 #define ADC_IER_OVRIE_Pos (4U) | |
1349 #define ADC_IER_OVRIE_Msk (0x1U << ADC_IER_OVRIE_Pos) /*!< 0x00000010 */ | |
1350 #define ADC_IER_OVRIE ADC_IER_OVRIE_Msk /*!< ADC group regular overrun interrupt */ | |
1351 #define ADC_IER_JEOCIE_Pos (5U) | |
1352 #define ADC_IER_JEOCIE_Msk (0x1U << ADC_IER_JEOCIE_Pos) /*!< 0x00000020 */ | |
1353 #define ADC_IER_JEOCIE ADC_IER_JEOCIE_Msk /*!< ADC group injected end of unitary conversion interrupt */ | |
1354 #define ADC_IER_JEOSIE_Pos (6U) | |
1355 #define ADC_IER_JEOSIE_Msk (0x1U << ADC_IER_JEOSIE_Pos) /*!< 0x00000040 */ | |
1356 #define ADC_IER_JEOSIE ADC_IER_JEOSIE_Msk /*!< ADC group injected end of sequence conversions interrupt */ | |
1357 #define ADC_IER_AWD1IE_Pos (7U) | |
1358 #define ADC_IER_AWD1IE_Msk (0x1U << ADC_IER_AWD1IE_Pos) /*!< 0x00000080 */ | |
1359 #define ADC_IER_AWD1IE ADC_IER_AWD1IE_Msk /*!< ADC analog watchdog 1 interrupt */ | |
1360 #define ADC_IER_AWD2IE_Pos (8U) | |
1361 #define ADC_IER_AWD2IE_Msk (0x1U << ADC_IER_AWD2IE_Pos) /*!< 0x00000100 */ | |
1362 #define ADC_IER_AWD2IE ADC_IER_AWD2IE_Msk /*!< ADC analog watchdog 2 interrupt */ | |
1363 #define ADC_IER_AWD3IE_Pos (9U) | |
1364 #define ADC_IER_AWD3IE_Msk (0x1U << ADC_IER_AWD3IE_Pos) /*!< 0x00000200 */ | |
1365 #define ADC_IER_AWD3IE ADC_IER_AWD3IE_Msk /*!< ADC analog watchdog 3 interrupt */ | |
1366 #define ADC_IER_JQOVFIE_Pos (10U) | |
1367 #define ADC_IER_JQOVFIE_Msk (0x1U << ADC_IER_JQOVFIE_Pos) /*!< 0x00000400 */ | |
1368 #define ADC_IER_JQOVFIE ADC_IER_JQOVFIE_Msk /*!< ADC group injected contexts queue overflow interrupt */ | |
1369 | |
1370 /* Legacy defines */ | |
1371 #define ADC_IER_ADRDY (ADC_IER_ADRDYIE) | |
1372 #define ADC_IER_EOSMP (ADC_IER_EOSMPIE) | |
1373 #define ADC_IER_EOC (ADC_IER_EOCIE) | |
1374 #define ADC_IER_EOS (ADC_IER_EOSIE) | |
1375 #define ADC_IER_OVR (ADC_IER_OVRIE) | |
1376 #define ADC_IER_JEOC (ADC_IER_JEOCIE) | |
1377 #define ADC_IER_JEOS (ADC_IER_JEOSIE) | |
1378 #define ADC_IER_AWD1 (ADC_IER_AWD1IE) | |
1379 #define ADC_IER_AWD2 (ADC_IER_AWD2IE) | |
1380 #define ADC_IER_AWD3 (ADC_IER_AWD3IE) | |
1381 #define ADC_IER_JQOVF (ADC_IER_JQOVFIE) | |
1382 | |
1383 /******************** Bit definition for ADC_CR register ********************/ | |
1384 #define ADC_CR_ADEN_Pos (0U) | |
1385 #define ADC_CR_ADEN_Msk (0x1U << ADC_CR_ADEN_Pos) /*!< 0x00000001 */ | |
1386 #define ADC_CR_ADEN ADC_CR_ADEN_Msk /*!< ADC enable */ | |
1387 #define ADC_CR_ADDIS_Pos (1U) | |
1388 #define ADC_CR_ADDIS_Msk (0x1U << ADC_CR_ADDIS_Pos) /*!< 0x00000002 */ | |
1389 #define ADC_CR_ADDIS ADC_CR_ADDIS_Msk /*!< ADC disable */ | |
1390 #define ADC_CR_ADSTART_Pos (2U) | |
1391 #define ADC_CR_ADSTART_Msk (0x1U << ADC_CR_ADSTART_Pos) /*!< 0x00000004 */ | |
1392 #define ADC_CR_ADSTART ADC_CR_ADSTART_Msk /*!< ADC group regular conversion start */ | |
1393 #define ADC_CR_JADSTART_Pos (3U) | |
1394 #define ADC_CR_JADSTART_Msk (0x1U << ADC_CR_JADSTART_Pos) /*!< 0x00000008 */ | |
1395 #define ADC_CR_JADSTART ADC_CR_JADSTART_Msk /*!< ADC group injected conversion start */ | |
1396 #define ADC_CR_ADSTP_Pos (4U) | |
1397 #define ADC_CR_ADSTP_Msk (0x1U << ADC_CR_ADSTP_Pos) /*!< 0x00000010 */ | |
1398 #define ADC_CR_ADSTP ADC_CR_ADSTP_Msk /*!< ADC group regular conversion stop */ | |
1399 #define ADC_CR_JADSTP_Pos (5U) | |
1400 #define ADC_CR_JADSTP_Msk (0x1U << ADC_CR_JADSTP_Pos) /*!< 0x00000020 */ | |
1401 #define ADC_CR_JADSTP ADC_CR_JADSTP_Msk /*!< ADC group injected conversion stop */ | |
1402 #define ADC_CR_ADVREGEN_Pos (28U) | |
1403 #define ADC_CR_ADVREGEN_Msk (0x1U << ADC_CR_ADVREGEN_Pos) /*!< 0x10000000 */ | |
1404 #define ADC_CR_ADVREGEN ADC_CR_ADVREGEN_Msk /*!< ADC voltage regulator enable */ | |
1405 #define ADC_CR_DEEPPWD_Pos (29U) | |
1406 #define ADC_CR_DEEPPWD_Msk (0x1U << ADC_CR_DEEPPWD_Pos) /*!< 0x20000000 */ | |
1407 #define ADC_CR_DEEPPWD ADC_CR_DEEPPWD_Msk /*!< ADC deep power down enable */ | |
1408 #define ADC_CR_ADCALDIF_Pos (30U) | |
1409 #define ADC_CR_ADCALDIF_Msk (0x1U << ADC_CR_ADCALDIF_Pos) /*!< 0x40000000 */ | |
1410 #define ADC_CR_ADCALDIF ADC_CR_ADCALDIF_Msk /*!< ADC differential mode for calibration */ | |
1411 #define ADC_CR_ADCAL_Pos (31U) | |
1412 #define ADC_CR_ADCAL_Msk (0x1U << ADC_CR_ADCAL_Pos) /*!< 0x80000000 */ | |
1413 #define ADC_CR_ADCAL ADC_CR_ADCAL_Msk /*!< ADC calibration */ | |
1414 | |
1415 /******************** Bit definition for ADC_CFGR register ******************/ | |
1416 #define ADC_CFGR_DMAEN_Pos (0U) | |
1417 #define ADC_CFGR_DMAEN_Msk (0x1U << ADC_CFGR_DMAEN_Pos) /*!< 0x00000001 */ | |
1418 #define ADC_CFGR_DMAEN ADC_CFGR_DMAEN_Msk /*!< ADC DMA transfer enable */ | |
1419 #define ADC_CFGR_DMACFG_Pos (1U) | |
1420 #define ADC_CFGR_DMACFG_Msk (0x1U << ADC_CFGR_DMACFG_Pos) /*!< 0x00000002 */ | |
1421 #define ADC_CFGR_DMACFG ADC_CFGR_DMACFG_Msk /*!< ADC DMA transfer configuration */ | |
1422 | |
1423 #define ADC_CFGR_DFSDMCFG_Pos (2U) | |
1424 #define ADC_CFGR_DFSDMCFG_Msk (0x1U << ADC_CFGR_DFSDMCFG_Pos) /*!< 0x00000004 */ | |
1425 #define ADC_CFGR_DFSDMCFG ADC_CFGR_DFSDMCFG_Msk /*!< ADC DFSDM mode configuration */ | |
1426 | |
1427 #define ADC_CFGR_RES_Pos (3U) | |
1428 #define ADC_CFGR_RES_Msk (0x3U << ADC_CFGR_RES_Pos) /*!< 0x00000018 */ | |
1429 #define ADC_CFGR_RES ADC_CFGR_RES_Msk /*!< ADC data resolution */ | |
1430 #define ADC_CFGR_RES_0 (0x1U << ADC_CFGR_RES_Pos) /*!< 0x00000008 */ | |
1431 #define ADC_CFGR_RES_1 (0x2U << ADC_CFGR_RES_Pos) /*!< 0x00000010 */ | |
1432 | |
1433 #define ADC_CFGR_ALIGN_Pos (5U) | |
1434 #define ADC_CFGR_ALIGN_Msk (0x1U << ADC_CFGR_ALIGN_Pos) /*!< 0x00000020 */ | |
1435 #define ADC_CFGR_ALIGN ADC_CFGR_ALIGN_Msk /*!< ADC data alignement */ | |
1436 | |
1437 #define ADC_CFGR_EXTSEL_Pos (6U) | |
1438 #define ADC_CFGR_EXTSEL_Msk (0xFU << ADC_CFGR_EXTSEL_Pos) /*!< 0x000003C0 */ | |
1439 #define ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_Msk /*!< ADC group regular external trigger source */ | |
1440 #define ADC_CFGR_EXTSEL_0 (0x1U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000040 */ | |
1441 #define ADC_CFGR_EXTSEL_1 (0x2U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000080 */ | |
1442 #define ADC_CFGR_EXTSEL_2 (0x4U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000100 */ | |
1443 #define ADC_CFGR_EXTSEL_3 (0x8U << ADC_CFGR_EXTSEL_Pos) /*!< 0x00000200 */ | |
1444 | |
1445 #define ADC_CFGR_EXTEN_Pos (10U) | |
1446 #define ADC_CFGR_EXTEN_Msk (0x3U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000C00 */ | |
1447 #define ADC_CFGR_EXTEN ADC_CFGR_EXTEN_Msk /*!< ADC group regular external trigger polarity */ | |
1448 #define ADC_CFGR_EXTEN_0 (0x1U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000400 */ | |
1449 #define ADC_CFGR_EXTEN_1 (0x2U << ADC_CFGR_EXTEN_Pos) /*!< 0x00000800 */ | |
1450 | |
1451 #define ADC_CFGR_OVRMOD_Pos (12U) | |
1452 #define ADC_CFGR_OVRMOD_Msk (0x1U << ADC_CFGR_OVRMOD_Pos) /*!< 0x00001000 */ | |
1453 #define ADC_CFGR_OVRMOD ADC_CFGR_OVRMOD_Msk /*!< ADC group regular overrun configuration */ | |
1454 #define ADC_CFGR_CONT_Pos (13U) | |
1455 #define ADC_CFGR_CONT_Msk (0x1U << ADC_CFGR_CONT_Pos) /*!< 0x00002000 */ | |
1456 #define ADC_CFGR_CONT ADC_CFGR_CONT_Msk /*!< ADC group regular continuous conversion mode */ | |
1457 #define ADC_CFGR_AUTDLY_Pos (14U) | |
1458 #define ADC_CFGR_AUTDLY_Msk (0x1U << ADC_CFGR_AUTDLY_Pos) /*!< 0x00004000 */ | |
1459 #define ADC_CFGR_AUTDLY ADC_CFGR_AUTDLY_Msk /*!< ADC low power auto wait */ | |
1460 | |
1461 #define ADC_CFGR_DISCEN_Pos (16U) | |
1462 #define ADC_CFGR_DISCEN_Msk (0x1U << ADC_CFGR_DISCEN_Pos) /*!< 0x00010000 */ | |
1463 #define ADC_CFGR_DISCEN ADC_CFGR_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */ | |
1464 | |
1465 #define ADC_CFGR_DISCNUM_Pos (17U) | |
1466 #define ADC_CFGR_DISCNUM_Msk (0x7U << ADC_CFGR_DISCNUM_Pos) /*!< 0x000E0000 */ | |
1467 #define ADC_CFGR_DISCNUM ADC_CFGR_DISCNUM_Msk /*!< ADC group regular sequencer discontinuous number of ranks */ | |
1468 #define ADC_CFGR_DISCNUM_0 (0x1U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00020000 */ | |
1469 #define ADC_CFGR_DISCNUM_1 (0x2U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00040000 */ | |
1470 #define ADC_CFGR_DISCNUM_2 (0x4U << ADC_CFGR_DISCNUM_Pos) /*!< 0x00080000 */ | |
1471 | |
1472 #define ADC_CFGR_JDISCEN_Pos (20U) | |
1473 #define ADC_CFGR_JDISCEN_Msk (0x1U << ADC_CFGR_JDISCEN_Pos) /*!< 0x00100000 */ | |
1474 #define ADC_CFGR_JDISCEN ADC_CFGR_JDISCEN_Msk /*!< ADC group injected sequencer discontinuous mode */ | |
1475 #define ADC_CFGR_JQM_Pos (21U) | |
1476 #define ADC_CFGR_JQM_Msk (0x1U << ADC_CFGR_JQM_Pos) /*!< 0x00200000 */ | |
1477 #define ADC_CFGR_JQM ADC_CFGR_JQM_Msk /*!< ADC group injected contexts queue mode */ | |
1478 #define ADC_CFGR_AWD1SGL_Pos (22U) | |
1479 #define ADC_CFGR_AWD1SGL_Msk (0x1U << ADC_CFGR_AWD1SGL_Pos) /*!< 0x00400000 */ | |
1480 #define ADC_CFGR_AWD1SGL ADC_CFGR_AWD1SGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */ | |
1481 #define ADC_CFGR_AWD1EN_Pos (23U) | |
1482 #define ADC_CFGR_AWD1EN_Msk (0x1U << ADC_CFGR_AWD1EN_Pos) /*!< 0x00800000 */ | |
1483 #define ADC_CFGR_AWD1EN ADC_CFGR_AWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */ | |
1484 #define ADC_CFGR_JAWD1EN_Pos (24U) | |
1485 #define ADC_CFGR_JAWD1EN_Msk (0x1U << ADC_CFGR_JAWD1EN_Pos) /*!< 0x01000000 */ | |
1486 #define ADC_CFGR_JAWD1EN ADC_CFGR_JAWD1EN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group injected */ | |
1487 #define ADC_CFGR_JAUTO_Pos (25U) | |
1488 #define ADC_CFGR_JAUTO_Msk (0x1U << ADC_CFGR_JAUTO_Pos) /*!< 0x02000000 */ | |
1489 #define ADC_CFGR_JAUTO ADC_CFGR_JAUTO_Msk /*!< ADC group injected automatic trigger mode */ | |
1490 | |
1491 #define ADC_CFGR_AWD1CH_Pos (26U) | |
1492 #define ADC_CFGR_AWD1CH_Msk (0x1FU << ADC_CFGR_AWD1CH_Pos) /*!< 0x7C000000 */ | |
1493 #define ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_Msk /*!< ADC analog watchdog 1 monitored channel selection */ | |
1494 #define ADC_CFGR_AWD1CH_0 (0x01U << ADC_CFGR_AWD1CH_Pos) /*!< 0x04000000 */ | |
1495 #define ADC_CFGR_AWD1CH_1 (0x02U << ADC_CFGR_AWD1CH_Pos) /*!< 0x08000000 */ | |
1496 #define ADC_CFGR_AWD1CH_2 (0x04U << ADC_CFGR_AWD1CH_Pos) /*!< 0x10000000 */ | |
1497 #define ADC_CFGR_AWD1CH_3 (0x08U << ADC_CFGR_AWD1CH_Pos) /*!< 0x20000000 */ | |
1498 #define ADC_CFGR_AWD1CH_4 (0x10U << ADC_CFGR_AWD1CH_Pos) /*!< 0x40000000 */ | |
1499 | |
1500 #define ADC_CFGR_JQDIS_Pos (31U) | |
1501 #define ADC_CFGR_JQDIS_Msk (0x1U << ADC_CFGR_JQDIS_Pos) /*!< 0x80000000 */ | |
1502 #define ADC_CFGR_JQDIS ADC_CFGR_JQDIS_Msk /*!< ADC group injected contexts queue disable */ | |
1503 | |
1504 /******************** Bit definition for ADC_CFGR2 register *****************/ | |
1505 #define ADC_CFGR2_ROVSE_Pos (0U) | |
1506 #define ADC_CFGR2_ROVSE_Msk (0x1U << ADC_CFGR2_ROVSE_Pos) /*!< 0x00000001 */ | |
1507 #define ADC_CFGR2_ROVSE ADC_CFGR2_ROVSE_Msk /*!< ADC oversampler enable on scope ADC group regular */ | |
1508 #define ADC_CFGR2_JOVSE_Pos (1U) | |
1509 #define ADC_CFGR2_JOVSE_Msk (0x1U << ADC_CFGR2_JOVSE_Pos) /*!< 0x00000002 */ | |
1510 #define ADC_CFGR2_JOVSE ADC_CFGR2_JOVSE_Msk /*!< ADC oversampler enable on scope ADC group injected */ | |
1511 | |
1512 #define ADC_CFGR2_OVSR_Pos (2U) | |
1513 #define ADC_CFGR2_OVSR_Msk (0x7U << ADC_CFGR2_OVSR_Pos) /*!< 0x0000001C */ | |
1514 #define ADC_CFGR2_OVSR ADC_CFGR2_OVSR_Msk /*!< ADC oversampling ratio */ | |
1515 #define ADC_CFGR2_OVSR_0 (0x1U << ADC_CFGR2_OVSR_Pos) /*!< 0x00000004 */ | |
1516 #define ADC_CFGR2_OVSR_1 (0x2U << ADC_CFGR2_OVSR_Pos) /*!< 0x00000008 */ | |
1517 #define ADC_CFGR2_OVSR_2 (0x4U << ADC_CFGR2_OVSR_Pos) /*!< 0x00000010 */ | |
1518 | |
1519 #define ADC_CFGR2_OVSS_Pos (5U) | |
1520 #define ADC_CFGR2_OVSS_Msk (0xFU << ADC_CFGR2_OVSS_Pos) /*!< 0x000001E0 */ | |
1521 #define ADC_CFGR2_OVSS ADC_CFGR2_OVSS_Msk /*!< ADC oversampling shift */ | |
1522 #define ADC_CFGR2_OVSS_0 (0x1U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000020 */ | |
1523 #define ADC_CFGR2_OVSS_1 (0x2U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000040 */ | |
1524 #define ADC_CFGR2_OVSS_2 (0x4U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000080 */ | |
1525 #define ADC_CFGR2_OVSS_3 (0x8U << ADC_CFGR2_OVSS_Pos) /*!< 0x00000100 */ | |
1526 | |
1527 #define ADC_CFGR2_TROVS_Pos (9U) | |
1528 #define ADC_CFGR2_TROVS_Msk (0x1U << ADC_CFGR2_TROVS_Pos) /*!< 0x00000200 */ | |
1529 #define ADC_CFGR2_TROVS ADC_CFGR2_TROVS_Msk /*!< ADC oversampling discontinuous mode (triggered mode) for ADC group regular */ | |
1530 #define ADC_CFGR2_ROVSM_Pos (10U) | |
1531 #define ADC_CFGR2_ROVSM_Msk (0x1U << ADC_CFGR2_ROVSM_Pos) /*!< 0x00000400 */ | |
1532 #define ADC_CFGR2_ROVSM ADC_CFGR2_ROVSM_Msk /*!< ADC oversampling mode managing interlaced conversions of ADC group regular and group injected */ | |
1533 | |
1534 /******************** Bit definition for ADC_SMPR1 register *****************/ | |
1535 #define ADC_SMPR1_SMP0_Pos (0U) | |
1536 #define ADC_SMPR1_SMP0_Msk (0x7U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000007 */ | |
1537 #define ADC_SMPR1_SMP0 ADC_SMPR1_SMP0_Msk /*!< ADC channel 0 sampling time selection */ | |
1538 #define ADC_SMPR1_SMP0_0 (0x1U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000001 */ | |
1539 #define ADC_SMPR1_SMP0_1 (0x2U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000002 */ | |
1540 #define ADC_SMPR1_SMP0_2 (0x4U << ADC_SMPR1_SMP0_Pos) /*!< 0x00000004 */ | |
1541 | |
1542 #define ADC_SMPR1_SMP1_Pos (3U) | |
1543 #define ADC_SMPR1_SMP1_Msk (0x7U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000038 */ | |
1544 #define ADC_SMPR1_SMP1 ADC_SMPR1_SMP1_Msk /*!< ADC channel 1 sampling time selection */ | |
1545 #define ADC_SMPR1_SMP1_0 (0x1U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000008 */ | |
1546 #define ADC_SMPR1_SMP1_1 (0x2U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000010 */ | |
1547 #define ADC_SMPR1_SMP1_2 (0x4U << ADC_SMPR1_SMP1_Pos) /*!< 0x00000020 */ | |
1548 | |
1549 #define ADC_SMPR1_SMP2_Pos (6U) | |
1550 #define ADC_SMPR1_SMP2_Msk (0x7U << ADC_SMPR1_SMP2_Pos) /*!< 0x000001C0 */ | |
1551 #define ADC_SMPR1_SMP2 ADC_SMPR1_SMP2_Msk /*!< ADC channel 2 sampling time selection */ | |
1552 #define ADC_SMPR1_SMP2_0 (0x1U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000040 */ | |
1553 #define ADC_SMPR1_SMP2_1 (0x2U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000080 */ | |
1554 #define ADC_SMPR1_SMP2_2 (0x4U << ADC_SMPR1_SMP2_Pos) /*!< 0x00000100 */ | |
1555 | |
1556 #define ADC_SMPR1_SMP3_Pos (9U) | |
1557 #define ADC_SMPR1_SMP3_Msk (0x7U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000E00 */ | |
1558 #define ADC_SMPR1_SMP3 ADC_SMPR1_SMP3_Msk /*!< ADC channel 3 sampling time selection */ | |
1559 #define ADC_SMPR1_SMP3_0 (0x1U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000200 */ | |
1560 #define ADC_SMPR1_SMP3_1 (0x2U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000400 */ | |
1561 #define ADC_SMPR1_SMP3_2 (0x4U << ADC_SMPR1_SMP3_Pos) /*!< 0x00000800 */ | |
1562 | |
1563 #define ADC_SMPR1_SMP4_Pos (12U) | |
1564 #define ADC_SMPR1_SMP4_Msk (0x7U << ADC_SMPR1_SMP4_Pos) /*!< 0x00007000 */ | |
1565 #define ADC_SMPR1_SMP4 ADC_SMPR1_SMP4_Msk /*!< ADC channel 4 sampling time selection */ | |
1566 #define ADC_SMPR1_SMP4_0 (0x1U << ADC_SMPR1_SMP4_Pos) /*!< 0x00001000 */ | |
1567 #define ADC_SMPR1_SMP4_1 (0x2U << ADC_SMPR1_SMP4_Pos) /*!< 0x00002000 */ | |
1568 #define ADC_SMPR1_SMP4_2 (0x4U << ADC_SMPR1_SMP4_Pos) /*!< 0x00004000 */ | |
1569 | |
1570 #define ADC_SMPR1_SMP5_Pos (15U) | |
1571 #define ADC_SMPR1_SMP5_Msk (0x7U << ADC_SMPR1_SMP5_Pos) /*!< 0x00038000 */ | |
1572 #define ADC_SMPR1_SMP5 ADC_SMPR1_SMP5_Msk /*!< ADC channel 5 sampling time selection */ | |
1573 #define ADC_SMPR1_SMP5_0 (0x1U << ADC_SMPR1_SMP5_Pos) /*!< 0x00008000 */ | |
1574 #define ADC_SMPR1_SMP5_1 (0x2U << ADC_SMPR1_SMP5_Pos) /*!< 0x00010000 */ | |
1575 #define ADC_SMPR1_SMP5_2 (0x4U << ADC_SMPR1_SMP5_Pos) /*!< 0x00020000 */ | |
1576 | |
1577 #define ADC_SMPR1_SMP6_Pos (18U) | |
1578 #define ADC_SMPR1_SMP6_Msk (0x7U << ADC_SMPR1_SMP6_Pos) /*!< 0x001C0000 */ | |
1579 #define ADC_SMPR1_SMP6 ADC_SMPR1_SMP6_Msk /*!< ADC channel 6 sampling time selection */ | |
1580 #define ADC_SMPR1_SMP6_0 (0x1U << ADC_SMPR1_SMP6_Pos) /*!< 0x00040000 */ | |
1581 #define ADC_SMPR1_SMP6_1 (0x2U << ADC_SMPR1_SMP6_Pos) /*!< 0x00080000 */ | |
1582 #define ADC_SMPR1_SMP6_2 (0x4U << ADC_SMPR1_SMP6_Pos) /*!< 0x00100000 */ | |
1583 | |
1584 #define ADC_SMPR1_SMP7_Pos (21U) | |
1585 #define ADC_SMPR1_SMP7_Msk (0x7U << ADC_SMPR1_SMP7_Pos) /*!< 0x00E00000 */ | |
1586 #define ADC_SMPR1_SMP7 ADC_SMPR1_SMP7_Msk /*!< ADC channel 7 sampling time selection */ | |
1587 #define ADC_SMPR1_SMP7_0 (0x1U << ADC_SMPR1_SMP7_Pos) /*!< 0x00200000 */ | |
1588 #define ADC_SMPR1_SMP7_1 (0x2U << ADC_SMPR1_SMP7_Pos) /*!< 0x00400000 */ | |
1589 #define ADC_SMPR1_SMP7_2 (0x4U << ADC_SMPR1_SMP7_Pos) /*!< 0x00800000 */ | |
1590 | |
1591 #define ADC_SMPR1_SMP8_Pos (24U) | |
1592 #define ADC_SMPR1_SMP8_Msk (0x7U << ADC_SMPR1_SMP8_Pos) /*!< 0x07000000 */ | |
1593 #define ADC_SMPR1_SMP8 ADC_SMPR1_SMP8_Msk /*!< ADC channel 8 sampling time selection */ | |
1594 #define ADC_SMPR1_SMP8_0 (0x1U << ADC_SMPR1_SMP8_Pos) /*!< 0x01000000 */ | |
1595 #define ADC_SMPR1_SMP8_1 (0x2U << ADC_SMPR1_SMP8_Pos) /*!< 0x02000000 */ | |
1596 #define ADC_SMPR1_SMP8_2 (0x4U << ADC_SMPR1_SMP8_Pos) /*!< 0x04000000 */ | |
1597 | |
1598 #define ADC_SMPR1_SMP9_Pos (27U) | |
1599 #define ADC_SMPR1_SMP9_Msk (0x7U << ADC_SMPR1_SMP9_Pos) /*!< 0x38000000 */ | |
1600 #define ADC_SMPR1_SMP9 ADC_SMPR1_SMP9_Msk /*!< ADC channel 9 sampling time selection */ | |
1601 #define ADC_SMPR1_SMP9_0 (0x1U << ADC_SMPR1_SMP9_Pos) /*!< 0x08000000 */ | |
1602 #define ADC_SMPR1_SMP9_1 (0x2U << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */ | |
1603 #define ADC_SMPR1_SMP9_2 (0x4U << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */ | |
1604 | |
1605 #define ADC_SMPR1_SMPPLUS_Pos (31U) | |
1606 #define ADC_SMPR1_SMPPLUS_Msk (0x1U << ADC_SMPR1_SMPPLUS_Pos) /*!< 0x80000000 */ | |
1607 #define ADC_SMPR1_SMPPLUS ADC_SMPR1_SMPPLUS_Msk /*!< ADC channels sampling time additional setting */ | |
1608 | |
1609 /******************** Bit definition for ADC_SMPR2 register *****************/ | |
1610 #define ADC_SMPR2_SMP10_Pos (0U) | |
1611 #define ADC_SMPR2_SMP10_Msk (0x7U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */ | |
1612 #define ADC_SMPR2_SMP10 ADC_SMPR2_SMP10_Msk /*!< ADC channel 10 sampling time selection */ | |
1613 #define ADC_SMPR2_SMP10_0 (0x1U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000001 */ | |
1614 #define ADC_SMPR2_SMP10_1 (0x2U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000002 */ | |
1615 #define ADC_SMPR2_SMP10_2 (0x4U << ADC_SMPR2_SMP10_Pos) /*!< 0x00000004 */ | |
1616 | |
1617 #define ADC_SMPR2_SMP11_Pos (3U) | |
1618 #define ADC_SMPR2_SMP11_Msk (0x7U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000038 */ | |
1619 #define ADC_SMPR2_SMP11 ADC_SMPR2_SMP11_Msk /*!< ADC channel 11 sampling time selection */ | |
1620 #define ADC_SMPR2_SMP11_0 (0x1U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000008 */ | |
1621 #define ADC_SMPR2_SMP11_1 (0x2U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000010 */ | |
1622 #define ADC_SMPR2_SMP11_2 (0x4U << ADC_SMPR2_SMP11_Pos) /*!< 0x00000020 */ | |
1623 | |
1624 #define ADC_SMPR2_SMP12_Pos (6U) | |
1625 #define ADC_SMPR2_SMP12_Msk (0x7U << ADC_SMPR2_SMP12_Pos) /*!< 0x000001C0 */ | |
1626 #define ADC_SMPR2_SMP12 ADC_SMPR2_SMP12_Msk /*!< ADC channel 12 sampling time selection */ | |
1627 #define ADC_SMPR2_SMP12_0 (0x1U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000040 */ | |
1628 #define ADC_SMPR2_SMP12_1 (0x2U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000080 */ | |
1629 #define ADC_SMPR2_SMP12_2 (0x4U << ADC_SMPR2_SMP12_Pos) /*!< 0x00000100 */ | |
1630 | |
1631 #define ADC_SMPR2_SMP13_Pos (9U) | |
1632 #define ADC_SMPR2_SMP13_Msk (0x7U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000E00 */ | |
1633 #define ADC_SMPR2_SMP13 ADC_SMPR2_SMP13_Msk /*!< ADC channel 13 sampling time selection */ | |
1634 #define ADC_SMPR2_SMP13_0 (0x1U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000200 */ | |
1635 #define ADC_SMPR2_SMP13_1 (0x2U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000400 */ | |
1636 #define ADC_SMPR2_SMP13_2 (0x4U << ADC_SMPR2_SMP13_Pos) /*!< 0x00000800 */ | |
1637 | |
1638 #define ADC_SMPR2_SMP14_Pos (12U) | |
1639 #define ADC_SMPR2_SMP14_Msk (0x7U << ADC_SMPR2_SMP14_Pos) /*!< 0x00007000 */ | |
1640 #define ADC_SMPR2_SMP14 ADC_SMPR2_SMP14_Msk /*!< ADC channel 14 sampling time selection */ | |
1641 #define ADC_SMPR2_SMP14_0 (0x1U << ADC_SMPR2_SMP14_Pos) /*!< 0x00001000 */ | |
1642 #define ADC_SMPR2_SMP14_1 (0x2U << ADC_SMPR2_SMP14_Pos) /*!< 0x00002000 */ | |
1643 #define ADC_SMPR2_SMP14_2 (0x4U << ADC_SMPR2_SMP14_Pos) /*!< 0x00004000 */ | |
1644 | |
1645 #define ADC_SMPR2_SMP15_Pos (15U) | |
1646 #define ADC_SMPR2_SMP15_Msk (0x7U << ADC_SMPR2_SMP15_Pos) /*!< 0x00038000 */ | |
1647 #define ADC_SMPR2_SMP15 ADC_SMPR2_SMP15_Msk /*!< ADC channel 15 sampling time selection */ | |
1648 #define ADC_SMPR2_SMP15_0 (0x1U << ADC_SMPR2_SMP15_Pos) /*!< 0x00008000 */ | |
1649 #define ADC_SMPR2_SMP15_1 (0x2U << ADC_SMPR2_SMP15_Pos) /*!< 0x00010000 */ | |
1650 #define ADC_SMPR2_SMP15_2 (0x4U << ADC_SMPR2_SMP15_Pos) /*!< 0x00020000 */ | |
1651 | |
1652 #define ADC_SMPR2_SMP16_Pos (18U) | |
1653 #define ADC_SMPR2_SMP16_Msk (0x7U << ADC_SMPR2_SMP16_Pos) /*!< 0x001C0000 */ | |
1654 #define ADC_SMPR2_SMP16 ADC_SMPR2_SMP16_Msk /*!< ADC channel 16 sampling time selection */ | |
1655 #define ADC_SMPR2_SMP16_0 (0x1U << ADC_SMPR2_SMP16_Pos) /*!< 0x00040000 */ | |
1656 #define ADC_SMPR2_SMP16_1 (0x2U << ADC_SMPR2_SMP16_Pos) /*!< 0x00080000 */ | |
1657 #define ADC_SMPR2_SMP16_2 (0x4U << ADC_SMPR2_SMP16_Pos) /*!< 0x00100000 */ | |
1658 | |
1659 #define ADC_SMPR2_SMP17_Pos (21U) | |
1660 #define ADC_SMPR2_SMP17_Msk (0x7U << ADC_SMPR2_SMP17_Pos) /*!< 0x00E00000 */ | |
1661 #define ADC_SMPR2_SMP17 ADC_SMPR2_SMP17_Msk /*!< ADC channel 17 sampling time selection */ | |
1662 #define ADC_SMPR2_SMP17_0 (0x1U << ADC_SMPR2_SMP17_Pos) /*!< 0x00200000 */ | |
1663 #define ADC_SMPR2_SMP17_1 (0x2U << ADC_SMPR2_SMP17_Pos) /*!< 0x00400000 */ | |
1664 #define ADC_SMPR2_SMP17_2 (0x4U << ADC_SMPR2_SMP17_Pos) /*!< 0x00800000 */ | |
1665 | |
1666 #define ADC_SMPR2_SMP18_Pos (24U) | |
1667 #define ADC_SMPR2_SMP18_Msk (0x7U << ADC_SMPR2_SMP18_Pos) /*!< 0x07000000 */ | |
1668 #define ADC_SMPR2_SMP18 ADC_SMPR2_SMP18_Msk /*!< ADC channel 18 sampling time selection */ | |
1669 #define ADC_SMPR2_SMP18_0 (0x1U << ADC_SMPR2_SMP18_Pos) /*!< 0x01000000 */ | |
1670 #define ADC_SMPR2_SMP18_1 (0x2U << ADC_SMPR2_SMP18_Pos) /*!< 0x02000000 */ | |
1671 #define ADC_SMPR2_SMP18_2 (0x4U << ADC_SMPR2_SMP18_Pos) /*!< 0x04000000 */ | |
1672 | |
1673 /******************** Bit definition for ADC_TR1 register *******************/ | |
1674 #define ADC_TR1_LT1_Pos (0U) | |
1675 #define ADC_TR1_LT1_Msk (0xFFFU << ADC_TR1_LT1_Pos) /*!< 0x00000FFF */ | |
1676 #define ADC_TR1_LT1 ADC_TR1_LT1_Msk /*!< ADC analog watchdog 1 threshold low */ | |
1677 #define ADC_TR1_LT1_0 (0x001U << ADC_TR1_LT1_Pos) /*!< 0x00000001 */ | |
1678 #define ADC_TR1_LT1_1 (0x002U << ADC_TR1_LT1_Pos) /*!< 0x00000002 */ | |
1679 #define ADC_TR1_LT1_2 (0x004U << ADC_TR1_LT1_Pos) /*!< 0x00000004 */ | |
1680 #define ADC_TR1_LT1_3 (0x008U << ADC_TR1_LT1_Pos) /*!< 0x00000008 */ | |
1681 #define ADC_TR1_LT1_4 (0x010U << ADC_TR1_LT1_Pos) /*!< 0x00000010 */ | |
1682 #define ADC_TR1_LT1_5 (0x020U << ADC_TR1_LT1_Pos) /*!< 0x00000020 */ | |
1683 #define ADC_TR1_LT1_6 (0x040U << ADC_TR1_LT1_Pos) /*!< 0x00000040 */ | |
1684 #define ADC_TR1_LT1_7 (0x080U << ADC_TR1_LT1_Pos) /*!< 0x00000080 */ | |
1685 #define ADC_TR1_LT1_8 (0x100U << ADC_TR1_LT1_Pos) /*!< 0x00000100 */ | |
1686 #define ADC_TR1_LT1_9 (0x200U << ADC_TR1_LT1_Pos) /*!< 0x00000200 */ | |
1687 #define ADC_TR1_LT1_10 (0x400U << ADC_TR1_LT1_Pos) /*!< 0x00000400 */ | |
1688 #define ADC_TR1_LT1_11 (0x800U << ADC_TR1_LT1_Pos) /*!< 0x00000800 */ | |
1689 | |
1690 #define ADC_TR1_HT1_Pos (16U) | |
1691 #define ADC_TR1_HT1_Msk (0xFFFU << ADC_TR1_HT1_Pos) /*!< 0x0FFF0000 */ | |
1692 #define ADC_TR1_HT1 ADC_TR1_HT1_Msk /*!< ADC Analog watchdog 1 threshold high */ | |
1693 #define ADC_TR1_HT1_0 (0x001U << ADC_TR1_HT1_Pos) /*!< 0x00010000 */ | |
1694 #define ADC_TR1_HT1_1 (0x002U << ADC_TR1_HT1_Pos) /*!< 0x00020000 */ | |
1695 #define ADC_TR1_HT1_2 (0x004U << ADC_TR1_HT1_Pos) /*!< 0x00040000 */ | |
1696 #define ADC_TR1_HT1_3 (0x008U << ADC_TR1_HT1_Pos) /*!< 0x00080000 */ | |
1697 #define ADC_TR1_HT1_4 (0x010U << ADC_TR1_HT1_Pos) /*!< 0x00100000 */ | |
1698 #define ADC_TR1_HT1_5 (0x020U << ADC_TR1_HT1_Pos) /*!< 0x00200000 */ | |
1699 #define ADC_TR1_HT1_6 (0x040U << ADC_TR1_HT1_Pos) /*!< 0x00400000 */ | |
1700 #define ADC_TR1_HT1_7 (0x080U << ADC_TR1_HT1_Pos) /*!< 0x00800000 */ | |
1701 #define ADC_TR1_HT1_8 (0x100U << ADC_TR1_HT1_Pos) /*!< 0x01000000 */ | |
1702 #define ADC_TR1_HT1_9 (0x200U << ADC_TR1_HT1_Pos) /*!< 0x02000000 */ | |
1703 #define ADC_TR1_HT1_10 (0x400U << ADC_TR1_HT1_Pos) /*!< 0x04000000 */ | |
1704 #define ADC_TR1_HT1_11 (0x800U << ADC_TR1_HT1_Pos) /*!< 0x08000000 */ | |
1705 | |
1706 /******************** Bit definition for ADC_TR2 register *******************/ | |
1707 #define ADC_TR2_LT2_Pos (0U) | |
1708 #define ADC_TR2_LT2_Msk (0xFFU << ADC_TR2_LT2_Pos) /*!< 0x000000FF */ | |
1709 #define ADC_TR2_LT2 ADC_TR2_LT2_Msk /*!< ADC analog watchdog 2 threshold low */ | |
1710 #define ADC_TR2_LT2_0 (0x01U << ADC_TR2_LT2_Pos) /*!< 0x00000001 */ | |
1711 #define ADC_TR2_LT2_1 (0x02U << ADC_TR2_LT2_Pos) /*!< 0x00000002 */ | |
1712 #define ADC_TR2_LT2_2 (0x04U << ADC_TR2_LT2_Pos) /*!< 0x00000004 */ | |
1713 #define ADC_TR2_LT2_3 (0x08U << ADC_TR2_LT2_Pos) /*!< 0x00000008 */ | |
1714 #define ADC_TR2_LT2_4 (0x10U << ADC_TR2_LT2_Pos) /*!< 0x00000010 */ | |
1715 #define ADC_TR2_LT2_5 (0x20U << ADC_TR2_LT2_Pos) /*!< 0x00000020 */ | |
1716 #define ADC_TR2_LT2_6 (0x40U << ADC_TR2_LT2_Pos) /*!< 0x00000040 */ | |
1717 #define ADC_TR2_LT2_7 (0x80U << ADC_TR2_LT2_Pos) /*!< 0x00000080 */ | |
1718 | |
1719 #define ADC_TR2_HT2_Pos (16U) | |
1720 #define ADC_TR2_HT2_Msk (0xFFU << ADC_TR2_HT2_Pos) /*!< 0x00FF0000 */ | |
1721 #define ADC_TR2_HT2 ADC_TR2_HT2_Msk /*!< ADC analog watchdog 2 threshold high */ | |
1722 #define ADC_TR2_HT2_0 (0x01U << ADC_TR2_HT2_Pos) /*!< 0x00010000 */ | |
1723 #define ADC_TR2_HT2_1 (0x02U << ADC_TR2_HT2_Pos) /*!< 0x00020000 */ | |
1724 #define ADC_TR2_HT2_2 (0x04U << ADC_TR2_HT2_Pos) /*!< 0x00040000 */ | |
1725 #define ADC_TR2_HT2_3 (0x08U << ADC_TR2_HT2_Pos) /*!< 0x00080000 */ | |
1726 #define ADC_TR2_HT2_4 (0x10U << ADC_TR2_HT2_Pos) /*!< 0x00100000 */ | |
1727 #define ADC_TR2_HT2_5 (0x20U << ADC_TR2_HT2_Pos) /*!< 0x00200000 */ | |
1728 #define ADC_TR2_HT2_6 (0x40U << ADC_TR2_HT2_Pos) /*!< 0x00400000 */ | |
1729 #define ADC_TR2_HT2_7 (0x80U << ADC_TR2_HT2_Pos) /*!< 0x00800000 */ | |
1730 | |
1731 /******************** Bit definition for ADC_TR3 register *******************/ | |
1732 #define ADC_TR3_LT3_Pos (0U) | |
1733 #define ADC_TR3_LT3_Msk (0xFFU << ADC_TR3_LT3_Pos) /*!< 0x000000FF */ | |
1734 #define ADC_TR3_LT3 ADC_TR3_LT3_Msk /*!< ADC analog watchdog 3 threshold low */ | |
1735 #define ADC_TR3_LT3_0 (0x01U << ADC_TR3_LT3_Pos) /*!< 0x00000001 */ | |
1736 #define ADC_TR3_LT3_1 (0x02U << ADC_TR3_LT3_Pos) /*!< 0x00000002 */ | |
1737 #define ADC_TR3_LT3_2 (0x04U << ADC_TR3_LT3_Pos) /*!< 0x00000004 */ | |
1738 #define ADC_TR3_LT3_3 (0x08U << ADC_TR3_LT3_Pos) /*!< 0x00000008 */ | |
1739 #define ADC_TR3_LT3_4 (0x10U << ADC_TR3_LT3_Pos) /*!< 0x00000010 */ | |
1740 #define ADC_TR3_LT3_5 (0x20U << ADC_TR3_LT3_Pos) /*!< 0x00000020 */ | |
1741 #define ADC_TR3_LT3_6 (0x40U << ADC_TR3_LT3_Pos) /*!< 0x00000040 */ | |
1742 #define ADC_TR3_LT3_7 (0x80U << ADC_TR3_LT3_Pos) /*!< 0x00000080 */ | |
1743 | |
1744 #define ADC_TR3_HT3_Pos (16U) | |
1745 #define ADC_TR3_HT3_Msk (0xFFU << ADC_TR3_HT3_Pos) /*!< 0x00FF0000 */ | |
1746 #define ADC_TR3_HT3 ADC_TR3_HT3_Msk /*!< ADC analog watchdog 3 threshold high */ | |
1747 #define ADC_TR3_HT3_0 (0x01U << ADC_TR3_HT3_Pos) /*!< 0x00010000 */ | |
1748 #define ADC_TR3_HT3_1 (0x02U << ADC_TR3_HT3_Pos) /*!< 0x00020000 */ | |
1749 #define ADC_TR3_HT3_2 (0x04U << ADC_TR3_HT3_Pos) /*!< 0x00040000 */ | |
1750 #define ADC_TR3_HT3_3 (0x08U << ADC_TR3_HT3_Pos) /*!< 0x00080000 */ | |
1751 #define ADC_TR3_HT3_4 (0x10U << ADC_TR3_HT3_Pos) /*!< 0x00100000 */ | |
1752 #define ADC_TR3_HT3_5 (0x20U << ADC_TR3_HT3_Pos) /*!< 0x00200000 */ | |
1753 #define ADC_TR3_HT3_6 (0x40U << ADC_TR3_HT3_Pos) /*!< 0x00400000 */ | |
1754 #define ADC_TR3_HT3_7 (0x80U << ADC_TR3_HT3_Pos) /*!< 0x00800000 */ | |
1755 | |
1756 /******************** Bit definition for ADC_SQR1 register ******************/ | |
1757 #define ADC_SQR1_L_Pos (0U) | |
1758 #define ADC_SQR1_L_Msk (0xFU << ADC_SQR1_L_Pos) /*!< 0x0000000F */ | |
1759 #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC group regular sequencer scan length */ | |
1760 #define ADC_SQR1_L_0 (0x1U << ADC_SQR1_L_Pos) /*!< 0x00000001 */ | |
1761 #define ADC_SQR1_L_1 (0x2U << ADC_SQR1_L_Pos) /*!< 0x00000002 */ | |
1762 #define ADC_SQR1_L_2 (0x4U << ADC_SQR1_L_Pos) /*!< 0x00000004 */ | |
1763 #define ADC_SQR1_L_3 (0x8U << ADC_SQR1_L_Pos) /*!< 0x00000008 */ | |
1764 | |
1765 #define ADC_SQR1_SQ1_Pos (6U) | |
1766 #define ADC_SQR1_SQ1_Msk (0x1FU << ADC_SQR1_SQ1_Pos) /*!< 0x000007C0 */ | |
1767 #define ADC_SQR1_SQ1 ADC_SQR1_SQ1_Msk /*!< ADC group regular sequencer rank 1 */ | |
1768 #define ADC_SQR1_SQ1_0 (0x01U << ADC_SQR1_SQ1_Pos) /*!< 0x00000040 */ | |
1769 #define ADC_SQR1_SQ1_1 (0x02U << ADC_SQR1_SQ1_Pos) /*!< 0x00000080 */ | |
1770 #define ADC_SQR1_SQ1_2 (0x04U << ADC_SQR1_SQ1_Pos) /*!< 0x00000100 */ | |
1771 #define ADC_SQR1_SQ1_3 (0x08U << ADC_SQR1_SQ1_Pos) /*!< 0x00000200 */ | |
1772 #define ADC_SQR1_SQ1_4 (0x10U << ADC_SQR1_SQ1_Pos) /*!< 0x00000400 */ | |
1773 | |
1774 #define ADC_SQR1_SQ2_Pos (12U) | |
1775 #define ADC_SQR1_SQ2_Msk (0x1FU << ADC_SQR1_SQ2_Pos) /*!< 0x0001F000 */ | |
1776 #define ADC_SQR1_SQ2 ADC_SQR1_SQ2_Msk /*!< ADC group regular sequencer rank 2 */ | |
1777 #define ADC_SQR1_SQ2_0 (0x01U << ADC_SQR1_SQ2_Pos) /*!< 0x00001000 */ | |
1778 #define ADC_SQR1_SQ2_1 (0x02U << ADC_SQR1_SQ2_Pos) /*!< 0x00002000 */ | |
1779 #define ADC_SQR1_SQ2_2 (0x04U << ADC_SQR1_SQ2_Pos) /*!< 0x00004000 */ | |
1780 #define ADC_SQR1_SQ2_3 (0x08U << ADC_SQR1_SQ2_Pos) /*!< 0x00008000 */ | |
1781 #define ADC_SQR1_SQ2_4 (0x10U << ADC_SQR1_SQ2_Pos) /*!< 0x00010000 */ | |
1782 | |
1783 #define ADC_SQR1_SQ3_Pos (18U) | |
1784 #define ADC_SQR1_SQ3_Msk (0x1FU << ADC_SQR1_SQ3_Pos) /*!< 0x007C0000 */ | |
1785 #define ADC_SQR1_SQ3 ADC_SQR1_SQ3_Msk /*!< ADC group regular sequencer rank 3 */ | |
1786 #define ADC_SQR1_SQ3_0 (0x01U << ADC_SQR1_SQ3_Pos) /*!< 0x00040000 */ | |
1787 #define ADC_SQR1_SQ3_1 (0x02U << ADC_SQR1_SQ3_Pos) /*!< 0x00080000 */ | |
1788 #define ADC_SQR1_SQ3_2 (0x04U << ADC_SQR1_SQ3_Pos) /*!< 0x00100000 */ | |
1789 #define ADC_SQR1_SQ3_3 (0x08U << ADC_SQR1_SQ3_Pos) /*!< 0x00200000 */ | |
1790 #define ADC_SQR1_SQ3_4 (0x10U << ADC_SQR1_SQ3_Pos) /*!< 0x00400000 */ | |
1791 | |
1792 #define ADC_SQR1_SQ4_Pos (24U) | |
1793 #define ADC_SQR1_SQ4_Msk (0x1FU << ADC_SQR1_SQ4_Pos) /*!< 0x1F000000 */ | |
1794 #define ADC_SQR1_SQ4 ADC_SQR1_SQ4_Msk /*!< ADC group regular sequencer rank 4 */ | |
1795 #define ADC_SQR1_SQ4_0 (0x01U << ADC_SQR1_SQ4_Pos) /*!< 0x01000000 */ | |
1796 #define ADC_SQR1_SQ4_1 (0x02U << ADC_SQR1_SQ4_Pos) /*!< 0x02000000 */ | |
1797 #define ADC_SQR1_SQ4_2 (0x04U << ADC_SQR1_SQ4_Pos) /*!< 0x04000000 */ | |
1798 #define ADC_SQR1_SQ4_3 (0x08U << ADC_SQR1_SQ4_Pos) /*!< 0x08000000 */ | |
1799 #define ADC_SQR1_SQ4_4 (0x10U << ADC_SQR1_SQ4_Pos) /*!< 0x10000000 */ | |
1800 | |
1801 /******************** Bit definition for ADC_SQR2 register ******************/ | |
1802 #define ADC_SQR2_SQ5_Pos (0U) | |
1803 #define ADC_SQR2_SQ5_Msk (0x1FU << ADC_SQR2_SQ5_Pos) /*!< 0x0000001F */ | |
1804 #define ADC_SQR2_SQ5 ADC_SQR2_SQ5_Msk /*!< ADC group regular sequencer rank 5 */ | |
1805 #define ADC_SQR2_SQ5_0 (0x01U << ADC_SQR2_SQ5_Pos) /*!< 0x00000001 */ | |
1806 #define ADC_SQR2_SQ5_1 (0x02U << ADC_SQR2_SQ5_Pos) /*!< 0x00000002 */ | |
1807 #define ADC_SQR2_SQ5_2 (0x04U << ADC_SQR2_SQ5_Pos) /*!< 0x00000004 */ | |
1808 #define ADC_SQR2_SQ5_3 (0x08U << ADC_SQR2_SQ5_Pos) /*!< 0x00000008 */ | |
1809 #define ADC_SQR2_SQ5_4 (0x10U << ADC_SQR2_SQ5_Pos) /*!< 0x00000010 */ | |
1810 | |
1811 #define ADC_SQR2_SQ6_Pos (6U) | |
1812 #define ADC_SQR2_SQ6_Msk (0x1FU << ADC_SQR2_SQ6_Pos) /*!< 0x000007C0 */ | |
1813 #define ADC_SQR2_SQ6 ADC_SQR2_SQ6_Msk /*!< ADC group regular sequencer rank 6 */ | |
1814 #define ADC_SQR2_SQ6_0 (0x01U << ADC_SQR2_SQ6_Pos) /*!< 0x00000040 */ | |
1815 #define ADC_SQR2_SQ6_1 (0x02U << ADC_SQR2_SQ6_Pos) /*!< 0x00000080 */ | |
1816 #define ADC_SQR2_SQ6_2 (0x04U << ADC_SQR2_SQ6_Pos) /*!< 0x00000100 */ | |
1817 #define ADC_SQR2_SQ6_3 (0x08U << ADC_SQR2_SQ6_Pos) /*!< 0x00000200 */ | |
1818 #define ADC_SQR2_SQ6_4 (0x10U << ADC_SQR2_SQ6_Pos) /*!< 0x00000400 */ | |
1819 | |
1820 #define ADC_SQR2_SQ7_Pos (12U) | |
1821 #define ADC_SQR2_SQ7_Msk (0x1FU << ADC_SQR2_SQ7_Pos) /*!< 0x0001F000 */ | |
1822 #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC group regular sequencer rank 7 */ | |
1823 #define ADC_SQR2_SQ7_0 (0x01U << ADC_SQR2_SQ7_Pos) /*!< 0x00001000 */ | |
1824 #define ADC_SQR2_SQ7_1 (0x02U << ADC_SQR2_SQ7_Pos) /*!< 0x00002000 */ | |
1825 #define ADC_SQR2_SQ7_2 (0x04U << ADC_SQR2_SQ7_Pos) /*!< 0x00004000 */ | |
1826 #define ADC_SQR2_SQ7_3 (0x08U << ADC_SQR2_SQ7_Pos) /*!< 0x00008000 */ | |
1827 #define ADC_SQR2_SQ7_4 (0x10U << ADC_SQR2_SQ7_Pos) /*!< 0x00010000 */ | |
1828 | |
1829 #define ADC_SQR2_SQ8_Pos (18U) | |
1830 #define ADC_SQR2_SQ8_Msk (0x1FU << ADC_SQR2_SQ8_Pos) /*!< 0x007C0000 */ | |
1831 #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC group regular sequencer rank 8 */ | |
1832 #define ADC_SQR2_SQ8_0 (0x01U << ADC_SQR2_SQ8_Pos) /*!< 0x00040000 */ | |
1833 #define ADC_SQR2_SQ8_1 (0x02U << ADC_SQR2_SQ8_Pos) /*!< 0x00080000 */ | |
1834 #define ADC_SQR2_SQ8_2 (0x04U << ADC_SQR2_SQ8_Pos) /*!< 0x00100000 */ | |
1835 #define ADC_SQR2_SQ8_3 (0x08U << ADC_SQR2_SQ8_Pos) /*!< 0x00200000 */ | |
1836 #define ADC_SQR2_SQ8_4 (0x10U << ADC_SQR2_SQ8_Pos) /*!< 0x00400000 */ | |
1837 | |
1838 #define ADC_SQR2_SQ9_Pos (24U) | |
1839 #define ADC_SQR2_SQ9_Msk (0x1FU << ADC_SQR2_SQ9_Pos) /*!< 0x1F000000 */ | |
1840 #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC group regular sequencer rank 9 */ | |
1841 #define ADC_SQR2_SQ9_0 (0x01U << ADC_SQR2_SQ9_Pos) /*!< 0x01000000 */ | |
1842 #define ADC_SQR2_SQ9_1 (0x02U << ADC_SQR2_SQ9_Pos) /*!< 0x02000000 */ | |
1843 #define ADC_SQR2_SQ9_2 (0x04U << ADC_SQR2_SQ9_Pos) /*!< 0x04000000 */ | |
1844 #define ADC_SQR2_SQ9_3 (0x08U << ADC_SQR2_SQ9_Pos) /*!< 0x08000000 */ | |
1845 #define ADC_SQR2_SQ9_4 (0x10U << ADC_SQR2_SQ9_Pos) /*!< 0x10000000 */ | |
1846 | |
1847 /******************** Bit definition for ADC_SQR3 register ******************/ | |
1848 #define ADC_SQR3_SQ10_Pos (0U) | |
1849 #define ADC_SQR3_SQ10_Msk (0x1FU << ADC_SQR3_SQ10_Pos) /*!< 0x0000001F */ | |
1850 #define ADC_SQR3_SQ10 ADC_SQR3_SQ10_Msk /*!< ADC group regular sequencer rank 10 */ | |
1851 #define ADC_SQR3_SQ10_0 (0x01U << ADC_SQR3_SQ10_Pos) /*!< 0x00000001 */ | |
1852 #define ADC_SQR3_SQ10_1 (0x02U << ADC_SQR3_SQ10_Pos) /*!< 0x00000002 */ | |
1853 #define ADC_SQR3_SQ10_2 (0x04U << ADC_SQR3_SQ10_Pos) /*!< 0x00000004 */ | |
1854 #define ADC_SQR3_SQ10_3 (0x08U << ADC_SQR3_SQ10_Pos) /*!< 0x00000008 */ | |
1855 #define ADC_SQR3_SQ10_4 (0x10U << ADC_SQR3_SQ10_Pos) /*!< 0x00000010 */ | |
1856 | |
1857 #define ADC_SQR3_SQ11_Pos (6U) | |
1858 #define ADC_SQR3_SQ11_Msk (0x1FU << ADC_SQR3_SQ11_Pos) /*!< 0x000007C0 */ | |
1859 #define ADC_SQR3_SQ11 ADC_SQR3_SQ11_Msk /*!< ADC group regular sequencer rank 11 */ | |
1860 #define ADC_SQR3_SQ11_0 (0x01U << ADC_SQR3_SQ11_Pos) /*!< 0x00000040 */ | |
1861 #define ADC_SQR3_SQ11_1 (0x02U << ADC_SQR3_SQ11_Pos) /*!< 0x00000080 */ | |
1862 #define ADC_SQR3_SQ11_2 (0x04U << ADC_SQR3_SQ11_Pos) /*!< 0x00000100 */ | |
1863 #define ADC_SQR3_SQ11_3 (0x08U << ADC_SQR3_SQ11_Pos) /*!< 0x00000200 */ | |
1864 #define ADC_SQR3_SQ11_4 (0x10U << ADC_SQR3_SQ11_Pos) /*!< 0x00000400 */ | |
1865 | |
1866 #define ADC_SQR3_SQ12_Pos (12U) | |
1867 #define ADC_SQR3_SQ12_Msk (0x1FU << ADC_SQR3_SQ12_Pos) /*!< 0x0001F000 */ | |
1868 #define ADC_SQR3_SQ12 ADC_SQR3_SQ12_Msk /*!< ADC group regular sequencer rank 12 */ | |
1869 #define ADC_SQR3_SQ12_0 (0x01U << ADC_SQR3_SQ12_Pos) /*!< 0x00001000 */ | |
1870 #define ADC_SQR3_SQ12_1 (0x02U << ADC_SQR3_SQ12_Pos) /*!< 0x00002000 */ | |
1871 #define ADC_SQR3_SQ12_2 (0x04U << ADC_SQR3_SQ12_Pos) /*!< 0x00004000 */ | |
1872 #define ADC_SQR3_SQ12_3 (0x08U << ADC_SQR3_SQ12_Pos) /*!< 0x00008000 */ | |
1873 #define ADC_SQR3_SQ12_4 (0x10U << ADC_SQR3_SQ12_Pos) /*!< 0x00010000 */ | |
1874 | |
1875 #define ADC_SQR3_SQ13_Pos (18U) | |
1876 #define ADC_SQR3_SQ13_Msk (0x1FU << ADC_SQR3_SQ13_Pos) /*!< 0x007C0000 */ | |
1877 #define ADC_SQR3_SQ13 ADC_SQR3_SQ13_Msk /*!< ADC group regular sequencer rank 13 */ | |
1878 #define ADC_SQR3_SQ13_0 (0x01U << ADC_SQR3_SQ13_Pos) /*!< 0x00040000 */ | |
1879 #define ADC_SQR3_SQ13_1 (0x02U << ADC_SQR3_SQ13_Pos) /*!< 0x00080000 */ | |
1880 #define ADC_SQR3_SQ13_2 (0x04U << ADC_SQR3_SQ13_Pos) /*!< 0x00100000 */ | |
1881 #define ADC_SQR3_SQ13_3 (0x08U << ADC_SQR3_SQ13_Pos) /*!< 0x00200000 */ | |
1882 #define ADC_SQR3_SQ13_4 (0x10U << ADC_SQR3_SQ13_Pos) /*!< 0x00400000 */ | |
1883 | |
1884 #define ADC_SQR3_SQ14_Pos (24U) | |
1885 #define ADC_SQR3_SQ14_Msk (0x1FU << ADC_SQR3_SQ14_Pos) /*!< 0x1F000000 */ | |
1886 #define ADC_SQR3_SQ14 ADC_SQR3_SQ14_Msk /*!< ADC group regular sequencer rank 14 */ | |
1887 #define ADC_SQR3_SQ14_0 (0x01U << ADC_SQR3_SQ14_Pos) /*!< 0x01000000 */ | |
1888 #define ADC_SQR3_SQ14_1 (0x02U << ADC_SQR3_SQ14_Pos) /*!< 0x02000000 */ | |
1889 #define ADC_SQR3_SQ14_2 (0x04U << ADC_SQR3_SQ14_Pos) /*!< 0x04000000 */ | |
1890 #define ADC_SQR3_SQ14_3 (0x08U << ADC_SQR3_SQ14_Pos) /*!< 0x08000000 */ | |
1891 #define ADC_SQR3_SQ14_4 (0x10U << ADC_SQR3_SQ14_Pos) /*!< 0x10000000 */ | |
1892 | |
1893 /******************** Bit definition for ADC_SQR4 register ******************/ | |
1894 #define ADC_SQR4_SQ15_Pos (0U) | |
1895 #define ADC_SQR4_SQ15_Msk (0x1FU << ADC_SQR4_SQ15_Pos) /*!< 0x0000001F */ | |
1896 #define ADC_SQR4_SQ15 ADC_SQR4_SQ15_Msk /*!< ADC group regular sequencer rank 15 */ | |
1897 #define ADC_SQR4_SQ15_0 (0x01U << ADC_SQR4_SQ15_Pos) /*!< 0x00000001 */ | |
1898 #define ADC_SQR4_SQ15_1 (0x02U << ADC_SQR4_SQ15_Pos) /*!< 0x00000002 */ | |
1899 #define ADC_SQR4_SQ15_2 (0x04U << ADC_SQR4_SQ15_Pos) /*!< 0x00000004 */ | |
1900 #define ADC_SQR4_SQ15_3 (0x08U << ADC_SQR4_SQ15_Pos) /*!< 0x00000008 */ | |
1901 #define ADC_SQR4_SQ15_4 (0x10U << ADC_SQR4_SQ15_Pos) /*!< 0x00000010 */ | |
1902 | |
1903 #define ADC_SQR4_SQ16_Pos (6U) | |
1904 #define ADC_SQR4_SQ16_Msk (0x1FU << ADC_SQR4_SQ16_Pos) /*!< 0x000007C0 */ | |
1905 #define ADC_SQR4_SQ16 ADC_SQR4_SQ16_Msk /*!< ADC group regular sequencer rank 16 */ | |
1906 #define ADC_SQR4_SQ16_0 (0x01U << ADC_SQR4_SQ16_Pos) /*!< 0x00000040 */ | |
1907 #define ADC_SQR4_SQ16_1 (0x02U << ADC_SQR4_SQ16_Pos) /*!< 0x00000080 */ | |
1908 #define ADC_SQR4_SQ16_2 (0x04U << ADC_SQR4_SQ16_Pos) /*!< 0x00000100 */ | |
1909 #define ADC_SQR4_SQ16_3 (0x08U << ADC_SQR4_SQ16_Pos) /*!< 0x00000200 */ | |
1910 #define ADC_SQR4_SQ16_4 (0x10U << ADC_SQR4_SQ16_Pos) /*!< 0x00000400 */ | |
1911 | |
1912 /******************** Bit definition for ADC_DR register ********************/ | |
1913 #define ADC_DR_RDATA_Pos (0U) | |
1914 #define ADC_DR_RDATA_Msk (0xFFFFU << ADC_DR_RDATA_Pos) /*!< 0x0000FFFF */ | |
1915 #define ADC_DR_RDATA ADC_DR_RDATA_Msk /*!< ADC group regular conversion data */ | |
1916 #define ADC_DR_RDATA_0 (0x0001U << ADC_DR_RDATA_Pos) /*!< 0x00000001 */ | |
1917 #define ADC_DR_RDATA_1 (0x0002U << ADC_DR_RDATA_Pos) /*!< 0x00000002 */ | |
1918 #define ADC_DR_RDATA_2 (0x0004U << ADC_DR_RDATA_Pos) /*!< 0x00000004 */ | |
1919 #define ADC_DR_RDATA_3 (0x0008U << ADC_DR_RDATA_Pos) /*!< 0x00000008 */ | |
1920 #define ADC_DR_RDATA_4 (0x0010U << ADC_DR_RDATA_Pos) /*!< 0x00000010 */ | |
1921 #define ADC_DR_RDATA_5 (0x0020U << ADC_DR_RDATA_Pos) /*!< 0x00000020 */ | |
1922 #define ADC_DR_RDATA_6 (0x0040U << ADC_DR_RDATA_Pos) /*!< 0x00000040 */ | |
1923 #define ADC_DR_RDATA_7 (0x0080U << ADC_DR_RDATA_Pos) /*!< 0x00000080 */ | |
1924 #define ADC_DR_RDATA_8 (0x0100U << ADC_DR_RDATA_Pos) /*!< 0x00000100 */ | |
1925 #define ADC_DR_RDATA_9 (0x0200U << ADC_DR_RDATA_Pos) /*!< 0x00000200 */ | |
1926 #define ADC_DR_RDATA_10 (0x0400U << ADC_DR_RDATA_Pos) /*!< 0x00000400 */ | |
1927 #define ADC_DR_RDATA_11 (0x0800U << ADC_DR_RDATA_Pos) /*!< 0x00000800 */ | |
1928 #define ADC_DR_RDATA_12 (0x1000U << ADC_DR_RDATA_Pos) /*!< 0x00001000 */ | |
1929 #define ADC_DR_RDATA_13 (0x2000U << ADC_DR_RDATA_Pos) /*!< 0x00002000 */ | |
1930 #define ADC_DR_RDATA_14 (0x4000U << ADC_DR_RDATA_Pos) /*!< 0x00004000 */ | |
1931 #define ADC_DR_RDATA_15 (0x8000U << ADC_DR_RDATA_Pos) /*!< 0x00008000 */ | |
1932 | |
1933 /******************** Bit definition for ADC_JSQR register ******************/ | |
1934 #define ADC_JSQR_JL_Pos (0U) | |
1935 #define ADC_JSQR_JL_Msk (0x3U << ADC_JSQR_JL_Pos) /*!< 0x00000003 */ | |
1936 #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC group injected sequencer scan length */ | |
1937 #define ADC_JSQR_JL_0 (0x1U << ADC_JSQR_JL_Pos) /*!< 0x00000001 */ | |
1938 #define ADC_JSQR_JL_1 (0x2U << ADC_JSQR_JL_Pos) /*!< 0x00000002 */ | |
1939 | |
1940 #define ADC_JSQR_JEXTSEL_Pos (2U) | |
1941 #define ADC_JSQR_JEXTSEL_Msk (0xFU << ADC_JSQR_JEXTSEL_Pos) /*!< 0x0000003C */ | |
1942 #define ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_Msk /*!< ADC group injected external trigger source */ | |
1943 #define ADC_JSQR_JEXTSEL_0 (0x1U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000004 */ | |
1944 #define ADC_JSQR_JEXTSEL_1 (0x2U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000008 */ | |
1945 #define ADC_JSQR_JEXTSEL_2 (0x4U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000010 */ | |
1946 #define ADC_JSQR_JEXTSEL_3 (0x8U << ADC_JSQR_JEXTSEL_Pos) /*!< 0x00000020 */ | |
1947 | |
1948 #define ADC_JSQR_JEXTEN_Pos (6U) | |
1949 #define ADC_JSQR_JEXTEN_Msk (0x3U << ADC_JSQR_JEXTEN_Pos) /*!< 0x000000C0 */ | |
1950 #define ADC_JSQR_JEXTEN ADC_JSQR_JEXTEN_Msk /*!< ADC group injected external trigger polarity */ | |
1951 #define ADC_JSQR_JEXTEN_0 (0x1U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000040 */ | |
1952 #define ADC_JSQR_JEXTEN_1 (0x2U << ADC_JSQR_JEXTEN_Pos) /*!< 0x00000080 */ | |
1953 | |
1954 #define ADC_JSQR_JSQ1_Pos (8U) | |
1955 #define ADC_JSQR_JSQ1_Msk (0x1FU << ADC_JSQR_JSQ1_Pos) /*!< 0x00001F00 */ | |
1956 #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC group injected sequencer rank 1 */ | |
1957 #define ADC_JSQR_JSQ1_0 (0x01U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000100 */ | |
1958 #define ADC_JSQR_JSQ1_1 (0x02U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000200 */ | |
1959 #define ADC_JSQR_JSQ1_2 (0x04U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000400 */ | |
1960 #define ADC_JSQR_JSQ1_3 (0x08U << ADC_JSQR_JSQ1_Pos) /*!< 0x00000800 */ | |
1961 #define ADC_JSQR_JSQ1_4 (0x10U << ADC_JSQR_JSQ1_Pos) /*!< 0x00001000 */ | |
1962 | |
1963 #define ADC_JSQR_JSQ2_Pos (14U) | |
1964 #define ADC_JSQR_JSQ2_Msk (0x1FU << ADC_JSQR_JSQ2_Pos) /*!< 0x0007C000 */ | |
1965 #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC group injected sequencer rank 2 */ | |
1966 #define ADC_JSQR_JSQ2_0 (0x01U << ADC_JSQR_JSQ2_Pos) /*!< 0x00004000 */ | |
1967 #define ADC_JSQR_JSQ2_1 (0x02U << ADC_JSQR_JSQ2_Pos) /*!< 0x00008000 */ | |
1968 #define ADC_JSQR_JSQ2_2 (0x04U << ADC_JSQR_JSQ2_Pos) /*!< 0x00010000 */ | |
1969 #define ADC_JSQR_JSQ2_3 (0x08U << ADC_JSQR_JSQ2_Pos) /*!< 0x00020000 */ | |
1970 #define ADC_JSQR_JSQ2_4 (0x10U << ADC_JSQR_JSQ2_Pos) /*!< 0x00040000 */ | |
1971 | |
1972 #define ADC_JSQR_JSQ3_Pos (20U) | |
1973 #define ADC_JSQR_JSQ3_Msk (0x1FU << ADC_JSQR_JSQ3_Pos) /*!< 0x01F00000 */ | |
1974 #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC group injected sequencer rank 3 */ | |
1975 #define ADC_JSQR_JSQ3_0 (0x01U << ADC_JSQR_JSQ3_Pos) /*!< 0x00100000 */ | |
1976 #define ADC_JSQR_JSQ3_1 (0x02U << ADC_JSQR_JSQ3_Pos) /*!< 0x00200000 */ | |
1977 #define ADC_JSQR_JSQ3_2 (0x04U << ADC_JSQR_JSQ3_Pos) /*!< 0x00400000 */ | |
1978 #define ADC_JSQR_JSQ3_3 (0x08U << ADC_JSQR_JSQ3_Pos) /*!< 0x00800000 */ | |
1979 #define ADC_JSQR_JSQ3_4 (0x10U << ADC_JSQR_JSQ3_Pos) /*!< 0x01000000 */ | |
1980 | |
1981 #define ADC_JSQR_JSQ4_Pos (26U) | |
1982 #define ADC_JSQR_JSQ4_Msk (0x1FU << ADC_JSQR_JSQ4_Pos) /*!< 0x7C000000 */ | |
1983 #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC group injected sequencer rank 4 */ | |
1984 #define ADC_JSQR_JSQ4_0 (0x01U << ADC_JSQR_JSQ4_Pos) /*!< 0x04000000 */ | |
1985 #define ADC_JSQR_JSQ4_1 (0x02U << ADC_JSQR_JSQ4_Pos) /*!< 0x08000000 */ | |
1986 #define ADC_JSQR_JSQ4_2 (0x04U << ADC_JSQR_JSQ4_Pos) /*!< 0x10000000 */ | |
1987 #define ADC_JSQR_JSQ4_3 (0x08U << ADC_JSQR_JSQ4_Pos) /*!< 0x20000000 */ | |
1988 #define ADC_JSQR_JSQ4_4 (0x10U << ADC_JSQR_JSQ4_Pos) /*!< 0x40000000 */ | |
1989 | |
1990 | |
1991 /******************** Bit definition for ADC_OFR1 register ******************/ | |
1992 #define ADC_OFR1_OFFSET1_Pos (0U) | |
1993 #define ADC_OFR1_OFFSET1_Msk (0xFFFU << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000FFF */ | |
1994 #define ADC_OFR1_OFFSET1 ADC_OFR1_OFFSET1_Msk /*!< ADC offset number 1 offset level */ | |
1995 #define ADC_OFR1_OFFSET1_0 (0x001U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000001 */ | |
1996 #define ADC_OFR1_OFFSET1_1 (0x002U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000002 */ | |
1997 #define ADC_OFR1_OFFSET1_2 (0x004U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000004 */ | |
1998 #define ADC_OFR1_OFFSET1_3 (0x008U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000008 */ | |
1999 #define ADC_OFR1_OFFSET1_4 (0x010U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000010 */ | |
2000 #define ADC_OFR1_OFFSET1_5 (0x020U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000020 */ | |
2001 #define ADC_OFR1_OFFSET1_6 (0x040U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000040 */ | |
2002 #define ADC_OFR1_OFFSET1_7 (0x080U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000080 */ | |
2003 #define ADC_OFR1_OFFSET1_8 (0x100U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000100 */ | |
2004 #define ADC_OFR1_OFFSET1_9 (0x200U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000200 */ | |
2005 #define ADC_OFR1_OFFSET1_10 (0x400U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000400 */ | |
2006 #define ADC_OFR1_OFFSET1_11 (0x800U << ADC_OFR1_OFFSET1_Pos) /*!< 0x00000800 */ | |
2007 | |
2008 #define ADC_OFR1_OFFSET1_CH_Pos (26U) | |
2009 #define ADC_OFR1_OFFSET1_CH_Msk (0x1FU << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x7C000000 */ | |
2010 #define ADC_OFR1_OFFSET1_CH ADC_OFR1_OFFSET1_CH_Msk /*!< ADC offset number 1 channel selection */ | |
2011 #define ADC_OFR1_OFFSET1_CH_0 (0x01U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x04000000 */ | |
2012 #define ADC_OFR1_OFFSET1_CH_1 (0x02U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x08000000 */ | |
2013 #define ADC_OFR1_OFFSET1_CH_2 (0x04U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x10000000 */ | |
2014 #define ADC_OFR1_OFFSET1_CH_3 (0x08U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x20000000 */ | |
2015 #define ADC_OFR1_OFFSET1_CH_4 (0x10U << ADC_OFR1_OFFSET1_CH_Pos) /*!< 0x40000000 */ | |
2016 | |
2017 #define ADC_OFR1_OFFSET1_EN_Pos (31U) | |
2018 #define ADC_OFR1_OFFSET1_EN_Msk (0x1U << ADC_OFR1_OFFSET1_EN_Pos) /*!< 0x80000000 */ | |
2019 #define ADC_OFR1_OFFSET1_EN ADC_OFR1_OFFSET1_EN_Msk /*!< ADC offset number 1 enable */ | |
2020 | |
2021 /******************** Bit definition for ADC_OFR2 register ******************/ | |
2022 #define ADC_OFR2_OFFSET2_Pos (0U) | |
2023 #define ADC_OFR2_OFFSET2_Msk (0xFFFU << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000FFF */ | |
2024 #define ADC_OFR2_OFFSET2 ADC_OFR2_OFFSET2_Msk /*!< ADC offset number 2 offset level */ | |
2025 #define ADC_OFR2_OFFSET2_0 (0x001U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000001 */ | |
2026 #define ADC_OFR2_OFFSET2_1 (0x002U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000002 */ | |
2027 #define ADC_OFR2_OFFSET2_2 (0x004U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000004 */ | |
2028 #define ADC_OFR2_OFFSET2_3 (0x008U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000008 */ | |
2029 #define ADC_OFR2_OFFSET2_4 (0x010U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000010 */ | |
2030 #define ADC_OFR2_OFFSET2_5 (0x020U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000020 */ | |
2031 #define ADC_OFR2_OFFSET2_6 (0x040U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000040 */ | |
2032 #define ADC_OFR2_OFFSET2_7 (0x080U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000080 */ | |
2033 #define ADC_OFR2_OFFSET2_8 (0x100U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000100 */ | |
2034 #define ADC_OFR2_OFFSET2_9 (0x200U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000200 */ | |
2035 #define ADC_OFR2_OFFSET2_10 (0x400U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000400 */ | |
2036 #define ADC_OFR2_OFFSET2_11 (0x800U << ADC_OFR2_OFFSET2_Pos) /*!< 0x00000800 */ | |
2037 | |
2038 #define ADC_OFR2_OFFSET2_CH_Pos (26U) | |
2039 #define ADC_OFR2_OFFSET2_CH_Msk (0x1FU << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x7C000000 */ | |
2040 #define ADC_OFR2_OFFSET2_CH ADC_OFR2_OFFSET2_CH_Msk /*!< ADC offset number 2 channel selection */ | |
2041 #define ADC_OFR2_OFFSET2_CH_0 (0x01U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x04000000 */ | |
2042 #define ADC_OFR2_OFFSET2_CH_1 (0x02U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x08000000 */ | |
2043 #define ADC_OFR2_OFFSET2_CH_2 (0x04U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x10000000 */ | |
2044 #define ADC_OFR2_OFFSET2_CH_3 (0x08U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x20000000 */ | |
2045 #define ADC_OFR2_OFFSET2_CH_4 (0x10U << ADC_OFR2_OFFSET2_CH_Pos) /*!< 0x40000000 */ | |
2046 | |
2047 #define ADC_OFR2_OFFSET2_EN_Pos (31U) | |
2048 #define ADC_OFR2_OFFSET2_EN_Msk (0x1U << ADC_OFR2_OFFSET2_EN_Pos) /*!< 0x80000000 */ | |
2049 #define ADC_OFR2_OFFSET2_EN ADC_OFR2_OFFSET2_EN_Msk /*!< ADC offset number 2 enable */ | |
2050 | |
2051 /******************** Bit definition for ADC_OFR3 register ******************/ | |
2052 #define ADC_OFR3_OFFSET3_Pos (0U) | |
2053 #define ADC_OFR3_OFFSET3_Msk (0xFFFU << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000FFF */ | |
2054 #define ADC_OFR3_OFFSET3 ADC_OFR3_OFFSET3_Msk /*!< ADC offset number 3 offset level */ | |
2055 #define ADC_OFR3_OFFSET3_0 (0x001U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000001 */ | |
2056 #define ADC_OFR3_OFFSET3_1 (0x002U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000002 */ | |
2057 #define ADC_OFR3_OFFSET3_2 (0x004U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000004 */ | |
2058 #define ADC_OFR3_OFFSET3_3 (0x008U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000008 */ | |
2059 #define ADC_OFR3_OFFSET3_4 (0x010U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000010 */ | |
2060 #define ADC_OFR3_OFFSET3_5 (0x020U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000020 */ | |
2061 #define ADC_OFR3_OFFSET3_6 (0x040U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000040 */ | |
2062 #define ADC_OFR3_OFFSET3_7 (0x080U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000080 */ | |
2063 #define ADC_OFR3_OFFSET3_8 (0x100U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000100 */ | |
2064 #define ADC_OFR3_OFFSET3_9 (0x200U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000200 */ | |
2065 #define ADC_OFR3_OFFSET3_10 (0x400U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000400 */ | |
2066 #define ADC_OFR3_OFFSET3_11 (0x800U << ADC_OFR3_OFFSET3_Pos) /*!< 0x00000800 */ | |
2067 | |
2068 #define ADC_OFR3_OFFSET3_CH_Pos (26U) | |
2069 #define ADC_OFR3_OFFSET3_CH_Msk (0x1FU << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x7C000000 */ | |
2070 #define ADC_OFR3_OFFSET3_CH ADC_OFR3_OFFSET3_CH_Msk /*!< ADC offset number 3 channel selection */ | |
2071 #define ADC_OFR3_OFFSET3_CH_0 (0x01U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x04000000 */ | |
2072 #define ADC_OFR3_OFFSET3_CH_1 (0x02U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x08000000 */ | |
2073 #define ADC_OFR3_OFFSET3_CH_2 (0x04U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x10000000 */ | |
2074 #define ADC_OFR3_OFFSET3_CH_3 (0x08U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x20000000 */ | |
2075 #define ADC_OFR3_OFFSET3_CH_4 (0x10U << ADC_OFR3_OFFSET3_CH_Pos) /*!< 0x40000000 */ | |
2076 | |
2077 #define ADC_OFR3_OFFSET3_EN_Pos (31U) | |
2078 #define ADC_OFR3_OFFSET3_EN_Msk (0x1U << ADC_OFR3_OFFSET3_EN_Pos) /*!< 0x80000000 */ | |
2079 #define ADC_OFR3_OFFSET3_EN ADC_OFR3_OFFSET3_EN_Msk /*!< ADC offset number 3 enable */ | |
2080 | |
2081 /******************** Bit definition for ADC_OFR4 register ******************/ | |
2082 #define ADC_OFR4_OFFSET4_Pos (0U) | |
2083 #define ADC_OFR4_OFFSET4_Msk (0xFFFU << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000FFF */ | |
2084 #define ADC_OFR4_OFFSET4 ADC_OFR4_OFFSET4_Msk /*!< ADC offset number 4 offset level */ | |
2085 #define ADC_OFR4_OFFSET4_0 (0x001U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000001 */ | |
2086 #define ADC_OFR4_OFFSET4_1 (0x002U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000002 */ | |
2087 #define ADC_OFR4_OFFSET4_2 (0x004U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000004 */ | |
2088 #define ADC_OFR4_OFFSET4_3 (0x008U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000008 */ | |
2089 #define ADC_OFR4_OFFSET4_4 (0x010U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000010 */ | |
2090 #define ADC_OFR4_OFFSET4_5 (0x020U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000020 */ | |
2091 #define ADC_OFR4_OFFSET4_6 (0x040U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000040 */ | |
2092 #define ADC_OFR4_OFFSET4_7 (0x080U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000080 */ | |
2093 #define ADC_OFR4_OFFSET4_8 (0x100U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000100 */ | |
2094 #define ADC_OFR4_OFFSET4_9 (0x200U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000200 */ | |
2095 #define ADC_OFR4_OFFSET4_10 (0x400U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000400 */ | |
2096 #define ADC_OFR4_OFFSET4_11 (0x800U << ADC_OFR4_OFFSET4_Pos) /*!< 0x00000800 */ | |
2097 | |
2098 #define ADC_OFR4_OFFSET4_CH_Pos (26U) | |
2099 #define ADC_OFR4_OFFSET4_CH_Msk (0x1FU << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x7C000000 */ | |
2100 #define ADC_OFR4_OFFSET4_CH ADC_OFR4_OFFSET4_CH_Msk /*!< ADC offset number 4 channel selection */ | |
2101 #define ADC_OFR4_OFFSET4_CH_0 (0x01U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x04000000 */ | |
2102 #define ADC_OFR4_OFFSET4_CH_1 (0x02U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x08000000 */ | |
2103 #define ADC_OFR4_OFFSET4_CH_2 (0x04U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x10000000 */ | |
2104 #define ADC_OFR4_OFFSET4_CH_3 (0x08U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x20000000 */ | |
2105 #define ADC_OFR4_OFFSET4_CH_4 (0x10U << ADC_OFR4_OFFSET4_CH_Pos) /*!< 0x40000000 */ | |
2106 | |
2107 #define ADC_OFR4_OFFSET4_EN_Pos (31U) | |
2108 #define ADC_OFR4_OFFSET4_EN_Msk (0x1U << ADC_OFR4_OFFSET4_EN_Pos) /*!< 0x80000000 */ | |
2109 #define ADC_OFR4_OFFSET4_EN ADC_OFR4_OFFSET4_EN_Msk /*!< ADC offset number 4 enable */ | |
2110 | |
2111 /******************** Bit definition for ADC_JDR1 register ******************/ | |
2112 #define ADC_JDR1_JDATA_Pos (0U) | |
2113 #define ADC_JDR1_JDATA_Msk (0xFFFFU << ADC_JDR1_JDATA_Pos) /*!< 0x0000FFFF */ | |
2114 #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC group injected sequencer rank 1 conversion data */ | |
2115 #define ADC_JDR1_JDATA_0 (0x0001U << ADC_JDR1_JDATA_Pos) /*!< 0x00000001 */ | |
2116 #define ADC_JDR1_JDATA_1 (0x0002U << ADC_JDR1_JDATA_Pos) /*!< 0x00000002 */ | |
2117 #define ADC_JDR1_JDATA_2 (0x0004U << ADC_JDR1_JDATA_Pos) /*!< 0x00000004 */ | |
2118 #define ADC_JDR1_JDATA_3 (0x0008U << ADC_JDR1_JDATA_Pos) /*!< 0x00000008 */ | |
2119 #define ADC_JDR1_JDATA_4 (0x0010U << ADC_JDR1_JDATA_Pos) /*!< 0x00000010 */ | |
2120 #define ADC_JDR1_JDATA_5 (0x0020U << ADC_JDR1_JDATA_Pos) /*!< 0x00000020 */ | |
2121 #define ADC_JDR1_JDATA_6 (0x0040U << ADC_JDR1_JDATA_Pos) /*!< 0x00000040 */ | |
2122 #define ADC_JDR1_JDATA_7 (0x0080U << ADC_JDR1_JDATA_Pos) /*!< 0x00000080 */ | |
2123 #define ADC_JDR1_JDATA_8 (0x0100U << ADC_JDR1_JDATA_Pos) /*!< 0x00000100 */ | |
2124 #define ADC_JDR1_JDATA_9 (0x0200U << ADC_JDR1_JDATA_Pos) /*!< 0x00000200 */ | |
2125 #define ADC_JDR1_JDATA_10 (0x0400U << ADC_JDR1_JDATA_Pos) /*!< 0x00000400 */ | |
2126 #define ADC_JDR1_JDATA_11 (0x0800U << ADC_JDR1_JDATA_Pos) /*!< 0x00000800 */ | |
2127 #define ADC_JDR1_JDATA_12 (0x1000U << ADC_JDR1_JDATA_Pos) /*!< 0x00001000 */ | |
2128 #define ADC_JDR1_JDATA_13 (0x2000U << ADC_JDR1_JDATA_Pos) /*!< 0x00002000 */ | |
2129 #define ADC_JDR1_JDATA_14 (0x4000U << ADC_JDR1_JDATA_Pos) /*!< 0x00004000 */ | |
2130 #define ADC_JDR1_JDATA_15 (0x8000U << ADC_JDR1_JDATA_Pos) /*!< 0x00008000 */ | |
2131 | |
2132 /******************** Bit definition for ADC_JDR2 register ******************/ | |
2133 #define ADC_JDR2_JDATA_Pos (0U) | |
2134 #define ADC_JDR2_JDATA_Msk (0xFFFFU << ADC_JDR2_JDATA_Pos) /*!< 0x0000FFFF */ | |
2135 #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC group injected sequencer rank 2 conversion data */ | |
2136 #define ADC_JDR2_JDATA_0 (0x0001U << ADC_JDR2_JDATA_Pos) /*!< 0x00000001 */ | |
2137 #define ADC_JDR2_JDATA_1 (0x0002U << ADC_JDR2_JDATA_Pos) /*!< 0x00000002 */ | |
2138 #define ADC_JDR2_JDATA_2 (0x0004U << ADC_JDR2_JDATA_Pos) /*!< 0x00000004 */ | |
2139 #define ADC_JDR2_JDATA_3 (0x0008U << ADC_JDR2_JDATA_Pos) /*!< 0x00000008 */ | |
2140 #define ADC_JDR2_JDATA_4 (0x0010U << ADC_JDR2_JDATA_Pos) /*!< 0x00000010 */ | |
2141 #define ADC_JDR2_JDATA_5 (0x0020U << ADC_JDR2_JDATA_Pos) /*!< 0x00000020 */ | |
2142 #define ADC_JDR2_JDATA_6 (0x0040U << ADC_JDR2_JDATA_Pos) /*!< 0x00000040 */ | |
2143 #define ADC_JDR2_JDATA_7 (0x0080U << ADC_JDR2_JDATA_Pos) /*!< 0x00000080 */ | |
2144 #define ADC_JDR2_JDATA_8 (0x0100U << ADC_JDR2_JDATA_Pos) /*!< 0x00000100 */ | |
2145 #define ADC_JDR2_JDATA_9 (0x0200U << ADC_JDR2_JDATA_Pos) /*!< 0x00000200 */ | |
2146 #define ADC_JDR2_JDATA_10 (0x0400U << ADC_JDR2_JDATA_Pos) /*!< 0x00000400 */ | |
2147 #define ADC_JDR2_JDATA_11 (0x0800U << ADC_JDR2_JDATA_Pos) /*!< 0x00000800 */ | |
2148 #define ADC_JDR2_JDATA_12 (0x1000U << ADC_JDR2_JDATA_Pos) /*!< 0x00001000 */ | |
2149 #define ADC_JDR2_JDATA_13 (0x2000U << ADC_JDR2_JDATA_Pos) /*!< 0x00002000 */ | |
2150 #define ADC_JDR2_JDATA_14 (0x4000U << ADC_JDR2_JDATA_Pos) /*!< 0x00004000 */ | |
2151 #define ADC_JDR2_JDATA_15 (0x8000U << ADC_JDR2_JDATA_Pos) /*!< 0x00008000 */ | |
2152 | |
2153 /******************** Bit definition for ADC_JDR3 register ******************/ | |
2154 #define ADC_JDR3_JDATA_Pos (0U) | |
2155 #define ADC_JDR3_JDATA_Msk (0xFFFFU << ADC_JDR3_JDATA_Pos) /*!< 0x0000FFFF */ | |
2156 #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC group injected sequencer rank 3 conversion data */ | |
2157 #define ADC_JDR3_JDATA_0 (0x0001U << ADC_JDR3_JDATA_Pos) /*!< 0x00000001 */ | |
2158 #define ADC_JDR3_JDATA_1 (0x0002U << ADC_JDR3_JDATA_Pos) /*!< 0x00000002 */ | |
2159 #define ADC_JDR3_JDATA_2 (0x0004U << ADC_JDR3_JDATA_Pos) /*!< 0x00000004 */ | |
2160 #define ADC_JDR3_JDATA_3 (0x0008U << ADC_JDR3_JDATA_Pos) /*!< 0x00000008 */ | |
2161 #define ADC_JDR3_JDATA_4 (0x0010U << ADC_JDR3_JDATA_Pos) /*!< 0x00000010 */ | |
2162 #define ADC_JDR3_JDATA_5 (0x0020U << ADC_JDR3_JDATA_Pos) /*!< 0x00000020 */ | |
2163 #define ADC_JDR3_JDATA_6 (0x0040U << ADC_JDR3_JDATA_Pos) /*!< 0x00000040 */ | |
2164 #define ADC_JDR3_JDATA_7 (0x0080U << ADC_JDR3_JDATA_Pos) /*!< 0x00000080 */ | |
2165 #define ADC_JDR3_JDATA_8 (0x0100U << ADC_JDR3_JDATA_Pos) /*!< 0x00000100 */ | |
2166 #define ADC_JDR3_JDATA_9 (0x0200U << ADC_JDR3_JDATA_Pos) /*!< 0x00000200 */ | |
2167 #define ADC_JDR3_JDATA_10 (0x0400U << ADC_JDR3_JDATA_Pos) /*!< 0x00000400 */ | |
2168 #define ADC_JDR3_JDATA_11 (0x0800U << ADC_JDR3_JDATA_Pos) /*!< 0x00000800 */ | |
2169 #define ADC_JDR3_JDATA_12 (0x1000U << ADC_JDR3_JDATA_Pos) /*!< 0x00001000 */ | |
2170 #define ADC_JDR3_JDATA_13 (0x2000U << ADC_JDR3_JDATA_Pos) /*!< 0x00002000 */ | |
2171 #define ADC_JDR3_JDATA_14 (0x4000U << ADC_JDR3_JDATA_Pos) /*!< 0x00004000 */ | |
2172 #define ADC_JDR3_JDATA_15 (0x8000U << ADC_JDR3_JDATA_Pos) /*!< 0x00008000 */ | |
2173 | |
2174 /******************** Bit definition for ADC_JDR4 register ******************/ | |
2175 #define ADC_JDR4_JDATA_Pos (0U) | |
2176 #define ADC_JDR4_JDATA_Msk (0xFFFFU << ADC_JDR4_JDATA_Pos) /*!< 0x0000FFFF */ | |
2177 #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC group injected sequencer rank 4 conversion data */ | |
2178 #define ADC_JDR4_JDATA_0 (0x0001U << ADC_JDR4_JDATA_Pos) /*!< 0x00000001 */ | |
2179 #define ADC_JDR4_JDATA_1 (0x0002U << ADC_JDR4_JDATA_Pos) /*!< 0x00000002 */ | |
2180 #define ADC_JDR4_JDATA_2 (0x0004U << ADC_JDR4_JDATA_Pos) /*!< 0x00000004 */ | |
2181 #define ADC_JDR4_JDATA_3 (0x0008U << ADC_JDR4_JDATA_Pos) /*!< 0x00000008 */ | |
2182 #define ADC_JDR4_JDATA_4 (0x0010U << ADC_JDR4_JDATA_Pos) /*!< 0x00000010 */ | |
2183 #define ADC_JDR4_JDATA_5 (0x0020U << ADC_JDR4_JDATA_Pos) /*!< 0x00000020 */ | |
2184 #define ADC_JDR4_JDATA_6 (0x0040U << ADC_JDR4_JDATA_Pos) /*!< 0x00000040 */ | |
2185 #define ADC_JDR4_JDATA_7 (0x0080U << ADC_JDR4_JDATA_Pos) /*!< 0x00000080 */ | |
2186 #define ADC_JDR4_JDATA_8 (0x0100U << ADC_JDR4_JDATA_Pos) /*!< 0x00000100 */ | |
2187 #define ADC_JDR4_JDATA_9 (0x0200U << ADC_JDR4_JDATA_Pos) /*!< 0x00000200 */ | |
2188 #define ADC_JDR4_JDATA_10 (0x0400U << ADC_JDR4_JDATA_Pos) /*!< 0x00000400 */ | |
2189 #define ADC_JDR4_JDATA_11 (0x0800U << ADC_JDR4_JDATA_Pos) /*!< 0x00000800 */ | |
2190 #define ADC_JDR4_JDATA_12 (0x1000U << ADC_JDR4_JDATA_Pos) /*!< 0x00001000 */ | |
2191 #define ADC_JDR4_JDATA_13 (0x2000U << ADC_JDR4_JDATA_Pos) /*!< 0x00002000 */ | |
2192 #define ADC_JDR4_JDATA_14 (0x4000U << ADC_JDR4_JDATA_Pos) /*!< 0x00004000 */ | |
2193 #define ADC_JDR4_JDATA_15 (0x8000U << ADC_JDR4_JDATA_Pos) /*!< 0x00008000 */ | |
2194 | |
2195 /******************** Bit definition for ADC_AWD2CR register ****************/ | |
2196 #define ADC_AWD2CR_AWD2CH_Pos (0U) | |
2197 #define ADC_AWD2CR_AWD2CH_Msk (0x7FFFFU << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x0007FFFF */ | |
2198 #define ADC_AWD2CR_AWD2CH ADC_AWD2CR_AWD2CH_Msk /*!< ADC analog watchdog 2 monitored channel selection */ | |
2199 #define ADC_AWD2CR_AWD2CH_0 (0x00001U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000001 */ | |
2200 #define ADC_AWD2CR_AWD2CH_1 (0x00002U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000002 */ | |
2201 #define ADC_AWD2CR_AWD2CH_2 (0x00004U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000004 */ | |
2202 #define ADC_AWD2CR_AWD2CH_3 (0x00008U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000008 */ | |
2203 #define ADC_AWD2CR_AWD2CH_4 (0x00010U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000010 */ | |
2204 #define ADC_AWD2CR_AWD2CH_5 (0x00020U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000020 */ | |
2205 #define ADC_AWD2CR_AWD2CH_6 (0x00040U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000040 */ | |
2206 #define ADC_AWD2CR_AWD2CH_7 (0x00080U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000080 */ | |
2207 #define ADC_AWD2CR_AWD2CH_8 (0x00100U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000100 */ | |
2208 #define ADC_AWD2CR_AWD2CH_9 (0x00200U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000200 */ | |
2209 #define ADC_AWD2CR_AWD2CH_10 (0x00400U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000400 */ | |
2210 #define ADC_AWD2CR_AWD2CH_11 (0x00800U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00000800 */ | |
2211 #define ADC_AWD2CR_AWD2CH_12 (0x01000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00001000 */ | |
2212 #define ADC_AWD2CR_AWD2CH_13 (0x02000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00002000 */ | |
2213 #define ADC_AWD2CR_AWD2CH_14 (0x04000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00004000 */ | |
2214 #define ADC_AWD2CR_AWD2CH_15 (0x08000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00008000 */ | |
2215 #define ADC_AWD2CR_AWD2CH_16 (0x10000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00010000 */ | |
2216 #define ADC_AWD2CR_AWD2CH_17 (0x20000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00020000 */ | |
2217 #define ADC_AWD2CR_AWD2CH_18 (0x40000U << ADC_AWD2CR_AWD2CH_Pos) /*!< 0x00040000 */ | |
2218 | |
2219 /******************** Bit definition for ADC_AWD3CR register ****************/ | |
2220 #define ADC_AWD3CR_AWD3CH_Pos (0U) | |
2221 #define ADC_AWD3CR_AWD3CH_Msk (0x7FFFFU << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x0007FFFF */ | |
2222 #define ADC_AWD3CR_AWD3CH ADC_AWD3CR_AWD3CH_Msk /*!< ADC analog watchdog 3 monitored channel selection */ | |
2223 #define ADC_AWD3CR_AWD3CH_0 (0x00001U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000001 */ | |
2224 #define ADC_AWD3CR_AWD3CH_1 (0x00002U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000002 */ | |
2225 #define ADC_AWD3CR_AWD3CH_2 (0x00004U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000004 */ | |
2226 #define ADC_AWD3CR_AWD3CH_3 (0x00008U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000008 */ | |
2227 #define ADC_AWD3CR_AWD3CH_4 (0x00010U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000010 */ | |
2228 #define ADC_AWD3CR_AWD3CH_5 (0x00020U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000020 */ | |
2229 #define ADC_AWD3CR_AWD3CH_6 (0x00040U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000040 */ | |
2230 #define ADC_AWD3CR_AWD3CH_7 (0x00080U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000080 */ | |
2231 #define ADC_AWD3CR_AWD3CH_8 (0x00100U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000100 */ | |
2232 #define ADC_AWD3CR_AWD3CH_9 (0x00200U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000200 */ | |
2233 #define ADC_AWD3CR_AWD3CH_10 (0x00400U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000400 */ | |
2234 #define ADC_AWD3CR_AWD3CH_11 (0x00800U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00000800 */ | |
2235 #define ADC_AWD3CR_AWD3CH_12 (0x01000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00001000 */ | |
2236 #define ADC_AWD3CR_AWD3CH_13 (0x02000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00002000 */ | |
2237 #define ADC_AWD3CR_AWD3CH_14 (0x04000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00004000 */ | |
2238 #define ADC_AWD3CR_AWD3CH_15 (0x08000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00008000 */ | |
2239 #define ADC_AWD3CR_AWD3CH_16 (0x10000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00010000 */ | |
2240 #define ADC_AWD3CR_AWD3CH_17 (0x20000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00020000 */ | |
2241 #define ADC_AWD3CR_AWD3CH_18 (0x40000U << ADC_AWD3CR_AWD3CH_Pos) /*!< 0x00040000 */ | |
2242 | |
2243 /******************** Bit definition for ADC_DIFSEL register ****************/ | |
2244 #define ADC_DIFSEL_DIFSEL_Pos (0U) | |
2245 #define ADC_DIFSEL_DIFSEL_Msk (0x7FFFFU << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x0007FFFF */ | |
2246 #define ADC_DIFSEL_DIFSEL ADC_DIFSEL_DIFSEL_Msk /*!< ADC channel differential or single-ended mode */ | |
2247 #define ADC_DIFSEL_DIFSEL_0 (0x00001U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000001 */ | |
2248 #define ADC_DIFSEL_DIFSEL_1 (0x00002U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000002 */ | |
2249 #define ADC_DIFSEL_DIFSEL_2 (0x00004U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000004 */ | |
2250 #define ADC_DIFSEL_DIFSEL_3 (0x00008U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000008 */ | |
2251 #define ADC_DIFSEL_DIFSEL_4 (0x00010U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000010 */ | |
2252 #define ADC_DIFSEL_DIFSEL_5 (0x00020U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000020 */ | |
2253 #define ADC_DIFSEL_DIFSEL_6 (0x00040U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000040 */ | |
2254 #define ADC_DIFSEL_DIFSEL_7 (0x00080U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000080 */ | |
2255 #define ADC_DIFSEL_DIFSEL_8 (0x00100U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000100 */ | |
2256 #define ADC_DIFSEL_DIFSEL_9 (0x00200U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000200 */ | |
2257 #define ADC_DIFSEL_DIFSEL_10 (0x00400U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000400 */ | |
2258 #define ADC_DIFSEL_DIFSEL_11 (0x00800U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00000800 */ | |
2259 #define ADC_DIFSEL_DIFSEL_12 (0x01000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00001000 */ | |
2260 #define ADC_DIFSEL_DIFSEL_13 (0x02000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00002000 */ | |
2261 #define ADC_DIFSEL_DIFSEL_14 (0x04000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00004000 */ | |
2262 #define ADC_DIFSEL_DIFSEL_15 (0x08000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00008000 */ | |
2263 #define ADC_DIFSEL_DIFSEL_16 (0x10000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00010000 */ | |
2264 #define ADC_DIFSEL_DIFSEL_17 (0x20000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00020000 */ | |
2265 #define ADC_DIFSEL_DIFSEL_18 (0x40000U << ADC_DIFSEL_DIFSEL_Pos) /*!< 0x00040000 */ | |
2266 | |
2267 /******************** Bit definition for ADC_CALFACT register ***************/ | |
2268 #define ADC_CALFACT_CALFACT_S_Pos (0U) | |
2269 #define ADC_CALFACT_CALFACT_S_Msk (0x7FU << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x0000007F */ | |
2270 #define ADC_CALFACT_CALFACT_S ADC_CALFACT_CALFACT_S_Msk /*!< ADC calibration factor in single-ended mode */ | |
2271 #define ADC_CALFACT_CALFACT_S_0 (0x01U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000001 */ | |
2272 #define ADC_CALFACT_CALFACT_S_1 (0x02U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000002 */ | |
2273 #define ADC_CALFACT_CALFACT_S_2 (0x04U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000004 */ | |
2274 #define ADC_CALFACT_CALFACT_S_3 (0x08U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000008 */ | |
2275 #define ADC_CALFACT_CALFACT_S_4 (0x10U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000010 */ | |
2276 #define ADC_CALFACT_CALFACT_S_5 (0x20U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000020 */ | |
2277 #define ADC_CALFACT_CALFACT_S_6 (0x40U << ADC_CALFACT_CALFACT_S_Pos) /*!< 0x00000040 */ | |
2278 | |
2279 #define ADC_CALFACT_CALFACT_D_Pos (16U) | |
2280 #define ADC_CALFACT_CALFACT_D_Msk (0x7FU << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x007F0000 */ | |
2281 #define ADC_CALFACT_CALFACT_D ADC_CALFACT_CALFACT_D_Msk /*!< ADC calibration factor in differential mode */ | |
2282 #define ADC_CALFACT_CALFACT_D_0 (0x01U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00010000 */ | |
2283 #define ADC_CALFACT_CALFACT_D_1 (0x02U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00020000 */ | |
2284 #define ADC_CALFACT_CALFACT_D_2 (0x04U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00040000 */ | |
2285 #define ADC_CALFACT_CALFACT_D_3 (0x08U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00080000 */ | |
2286 #define ADC_CALFACT_CALFACT_D_4 (0x10U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00100000 */ | |
2287 #define ADC_CALFACT_CALFACT_D_5 (0x20U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00200000 */ | |
2288 #define ADC_CALFACT_CALFACT_D_6 (0x40U << ADC_CALFACT_CALFACT_D_Pos) /*!< 0x00400000 */ | |
2289 | |
2290 /************************* ADC Common registers *****************************/ | |
2291 /******************** Bit definition for ADC_CCR register *******************/ | |
2292 #define ADC_CCR_CKMODE_Pos (16U) | |
2293 #define ADC_CCR_CKMODE_Msk (0x3U << ADC_CCR_CKMODE_Pos) /*!< 0x00030000 */ | |
2294 #define ADC_CCR_CKMODE ADC_CCR_CKMODE_Msk /*!< ADC common clock source and prescaler (prescaler only for clock source synchronous) */ | |
2295 #define ADC_CCR_CKMODE_0 (0x1U << ADC_CCR_CKMODE_Pos) /*!< 0x00010000 */ | |
2296 #define ADC_CCR_CKMODE_1 (0x2U << ADC_CCR_CKMODE_Pos) /*!< 0x00020000 */ | |
2297 | |
2298 #define ADC_CCR_PRESC_Pos (18U) | |
2299 #define ADC_CCR_PRESC_Msk (0xFU << ADC_CCR_PRESC_Pos) /*!< 0x003C0000 */ | |
2300 #define ADC_CCR_PRESC ADC_CCR_PRESC_Msk /*!< ADC common clock prescaler, only for clock source asynchronous */ | |
2301 #define ADC_CCR_PRESC_0 (0x1U << ADC_CCR_PRESC_Pos) /*!< 0x00040000 */ | |
2302 #define ADC_CCR_PRESC_1 (0x2U << ADC_CCR_PRESC_Pos) /*!< 0x00080000 */ | |
2303 #define ADC_CCR_PRESC_2 (0x4U << ADC_CCR_PRESC_Pos) /*!< 0x00100000 */ | |
2304 #define ADC_CCR_PRESC_3 (0x8U << ADC_CCR_PRESC_Pos) /*!< 0x00200000 */ | |
2305 | |
2306 #define ADC_CCR_VREFEN_Pos (22U) | |
2307 #define ADC_CCR_VREFEN_Msk (0x1U << ADC_CCR_VREFEN_Pos) /*!< 0x00400000 */ | |
2308 #define ADC_CCR_VREFEN ADC_CCR_VREFEN_Msk /*!< ADC internal path to VrefInt enable */ | |
2309 #define ADC_CCR_TSEN_Pos (23U) | |
2310 #define ADC_CCR_TSEN_Msk (0x1U << ADC_CCR_TSEN_Pos) /*!< 0x00800000 */ | |
2311 #define ADC_CCR_TSEN ADC_CCR_TSEN_Msk /*!< ADC internal path to temperature sensor enable */ | |
2312 #define ADC_CCR_VBATEN_Pos (24U) | |
2313 #define ADC_CCR_VBATEN_Msk (0x1U << ADC_CCR_VBATEN_Pos) /*!< 0x01000000 */ | |
2314 #define ADC_CCR_VBATEN ADC_CCR_VBATEN_Msk /*!< ADC internal path to battery voltage enable */ | |
2315 | |
2316 /******************************************************************************/ | |
2317 /* */ | |
2318 /* Controller Area Network */ | |
2319 /* */ | |
2320 /******************************************************************************/ | |
2321 /*!<CAN control and status registers */ | |
2322 /******************* Bit definition for CAN_MCR register ********************/ | |
2323 #define CAN_MCR_INRQ_Pos (0U) | |
2324 #define CAN_MCR_INRQ_Msk (0x1U << CAN_MCR_INRQ_Pos) /*!< 0x00000001 */ | |
2325 #define CAN_MCR_INRQ CAN_MCR_INRQ_Msk /*!<Initialization Request */ | |
2326 #define CAN_MCR_SLEEP_Pos (1U) | |
2327 #define CAN_MCR_SLEEP_Msk (0x1U << CAN_MCR_SLEEP_Pos) /*!< 0x00000002 */ | |
2328 #define CAN_MCR_SLEEP CAN_MCR_SLEEP_Msk /*!<Sleep Mode Request */ | |
2329 #define CAN_MCR_TXFP_Pos (2U) | |
2330 #define CAN_MCR_TXFP_Msk (0x1U << CAN_MCR_TXFP_Pos) /*!< 0x00000004 */ | |
2331 #define CAN_MCR_TXFP CAN_MCR_TXFP_Msk /*!<Transmit FIFO Priority */ | |
2332 #define CAN_MCR_RFLM_Pos (3U) | |
2333 #define CAN_MCR_RFLM_Msk (0x1U << CAN_MCR_RFLM_Pos) /*!< 0x00000008 */ | |
2334 #define CAN_MCR_RFLM CAN_MCR_RFLM_Msk /*!<Receive FIFO Locked Mode */ | |
2335 #define CAN_MCR_NART_Pos (4U) | |
2336 #define CAN_MCR_NART_Msk (0x1U << CAN_MCR_NART_Pos) /*!< 0x00000010 */ | |
2337 #define CAN_MCR_NART CAN_MCR_NART_Msk /*!<No Automatic Retransmission */ | |
2338 #define CAN_MCR_AWUM_Pos (5U) | |
2339 #define CAN_MCR_AWUM_Msk (0x1U << CAN_MCR_AWUM_Pos) /*!< 0x00000020 */ | |
2340 #define CAN_MCR_AWUM CAN_MCR_AWUM_Msk /*!<Automatic Wakeup Mode */ | |
2341 #define CAN_MCR_ABOM_Pos (6U) | |
2342 #define CAN_MCR_ABOM_Msk (0x1U << CAN_MCR_ABOM_Pos) /*!< 0x00000040 */ | |
2343 #define CAN_MCR_ABOM CAN_MCR_ABOM_Msk /*!<Automatic Bus-Off Management */ | |
2344 #define CAN_MCR_TTCM_Pos (7U) | |
2345 #define CAN_MCR_TTCM_Msk (0x1U << CAN_MCR_TTCM_Pos) /*!< 0x00000080 */ | |
2346 #define CAN_MCR_TTCM CAN_MCR_TTCM_Msk /*!<Time Triggered Communication Mode */ | |
2347 #define CAN_MCR_RESET_Pos (15U) | |
2348 #define CAN_MCR_RESET_Msk (0x1U << CAN_MCR_RESET_Pos) /*!< 0x00008000 */ | |
2349 #define CAN_MCR_RESET CAN_MCR_RESET_Msk /*!<bxCAN software master reset */ | |
2350 | |
2351 /******************* Bit definition for CAN_MSR register ********************/ | |
2352 #define CAN_MSR_INAK_Pos (0U) | |
2353 #define CAN_MSR_INAK_Msk (0x1U << CAN_MSR_INAK_Pos) /*!< 0x00000001 */ | |
2354 #define CAN_MSR_INAK CAN_MSR_INAK_Msk /*!<Initialization Acknowledge */ | |
2355 #define CAN_MSR_SLAK_Pos (1U) | |
2356 #define CAN_MSR_SLAK_Msk (0x1U << CAN_MSR_SLAK_Pos) /*!< 0x00000002 */ | |
2357 #define CAN_MSR_SLAK CAN_MSR_SLAK_Msk /*!<Sleep Acknowledge */ | |
2358 #define CAN_MSR_ERRI_Pos (2U) | |
2359 #define CAN_MSR_ERRI_Msk (0x1U << CAN_MSR_ERRI_Pos) /*!< 0x00000004 */ | |
2360 #define CAN_MSR_ERRI CAN_MSR_ERRI_Msk /*!<Error Interrupt */ | |
2361 #define CAN_MSR_WKUI_Pos (3U) | |
2362 #define CAN_MSR_WKUI_Msk (0x1U << CAN_MSR_WKUI_Pos) /*!< 0x00000008 */ | |
2363 #define CAN_MSR_WKUI CAN_MSR_WKUI_Msk /*!<Wakeup Interrupt */ | |
2364 #define CAN_MSR_SLAKI_Pos (4U) | |
2365 #define CAN_MSR_SLAKI_Msk (0x1U << CAN_MSR_SLAKI_Pos) /*!< 0x00000010 */ | |
2366 #define CAN_MSR_SLAKI CAN_MSR_SLAKI_Msk /*!<Sleep Acknowledge Interrupt */ | |
2367 #define CAN_MSR_TXM_Pos (8U) | |
2368 #define CAN_MSR_TXM_Msk (0x1U << CAN_MSR_TXM_Pos) /*!< 0x00000100 */ | |
2369 #define CAN_MSR_TXM CAN_MSR_TXM_Msk /*!<Transmit Mode */ | |
2370 #define CAN_MSR_RXM_Pos (9U) | |
2371 #define CAN_MSR_RXM_Msk (0x1U << CAN_MSR_RXM_Pos) /*!< 0x00000200 */ | |
2372 #define CAN_MSR_RXM CAN_MSR_RXM_Msk /*!<Receive Mode */ | |
2373 #define CAN_MSR_SAMP_Pos (10U) | |
2374 #define CAN_MSR_SAMP_Msk (0x1U << CAN_MSR_SAMP_Pos) /*!< 0x00000400 */ | |
2375 #define CAN_MSR_SAMP CAN_MSR_SAMP_Msk /*!<Last Sample Point */ | |
2376 #define CAN_MSR_RX_Pos (11U) | |
2377 #define CAN_MSR_RX_Msk (0x1U << CAN_MSR_RX_Pos) /*!< 0x00000800 */ | |
2378 #define CAN_MSR_RX CAN_MSR_RX_Msk /*!<CAN Rx Signal */ | |
2379 | |
2380 /******************* Bit definition for CAN_TSR register ********************/ | |
2381 #define CAN_TSR_RQCP0_Pos (0U) | |
2382 #define CAN_TSR_RQCP0_Msk (0x1U << CAN_TSR_RQCP0_Pos) /*!< 0x00000001 */ | |
2383 #define CAN_TSR_RQCP0 CAN_TSR_RQCP0_Msk /*!<Request Completed Mailbox0 */ | |
2384 #define CAN_TSR_TXOK0_Pos (1U) | |
2385 #define CAN_TSR_TXOK0_Msk (0x1U << CAN_TSR_TXOK0_Pos) /*!< 0x00000002 */ | |
2386 #define CAN_TSR_TXOK0 CAN_TSR_TXOK0_Msk /*!<Transmission OK of Mailbox0 */ | |
2387 #define CAN_TSR_ALST0_Pos (2U) | |
2388 #define CAN_TSR_ALST0_Msk (0x1U << CAN_TSR_ALST0_Pos) /*!< 0x00000004 */ | |
2389 #define CAN_TSR_ALST0 CAN_TSR_ALST0_Msk /*!<Arbitration Lost for Mailbox0 */ | |
2390 #define CAN_TSR_TERR0_Pos (3U) | |
2391 #define CAN_TSR_TERR0_Msk (0x1U << CAN_TSR_TERR0_Pos) /*!< 0x00000008 */ | |
2392 #define CAN_TSR_TERR0 CAN_TSR_TERR0_Msk /*!<Transmission Error of Mailbox0 */ | |
2393 #define CAN_TSR_ABRQ0_Pos (7U) | |
2394 #define CAN_TSR_ABRQ0_Msk (0x1U << CAN_TSR_ABRQ0_Pos) /*!< 0x00000080 */ | |
2395 #define CAN_TSR_ABRQ0 CAN_TSR_ABRQ0_Msk /*!<Abort Request for Mailbox0 */ | |
2396 #define CAN_TSR_RQCP1_Pos (8U) | |
2397 #define CAN_TSR_RQCP1_Msk (0x1U << CAN_TSR_RQCP1_Pos) /*!< 0x00000100 */ | |
2398 #define CAN_TSR_RQCP1 CAN_TSR_RQCP1_Msk /*!<Request Completed Mailbox1 */ | |
2399 #define CAN_TSR_TXOK1_Pos (9U) | |
2400 #define CAN_TSR_TXOK1_Msk (0x1U << CAN_TSR_TXOK1_Pos) /*!< 0x00000200 */ | |
2401 #define CAN_TSR_TXOK1 CAN_TSR_TXOK1_Msk /*!<Transmission OK of Mailbox1 */ | |
2402 #define CAN_TSR_ALST1_Pos (10U) | |
2403 #define CAN_TSR_ALST1_Msk (0x1U << CAN_TSR_ALST1_Pos) /*!< 0x00000400 */ | |
2404 #define CAN_TSR_ALST1 CAN_TSR_ALST1_Msk /*!<Arbitration Lost for Mailbox1 */ | |
2405 #define CAN_TSR_TERR1_Pos (11U) | |
2406 #define CAN_TSR_TERR1_Msk (0x1U << CAN_TSR_TERR1_Pos) /*!< 0x00000800 */ | |
2407 #define CAN_TSR_TERR1 CAN_TSR_TERR1_Msk /*!<Transmission Error of Mailbox1 */ | |
2408 #define CAN_TSR_ABRQ1_Pos (15U) | |
2409 #define CAN_TSR_ABRQ1_Msk (0x1U << CAN_TSR_ABRQ1_Pos) /*!< 0x00008000 */ | |
2410 #define CAN_TSR_ABRQ1 CAN_TSR_ABRQ1_Msk /*!<Abort Request for Mailbox 1 */ | |
2411 #define CAN_TSR_RQCP2_Pos (16U) | |
2412 #define CAN_TSR_RQCP2_Msk (0x1U << CAN_TSR_RQCP2_Pos) /*!< 0x00010000 */ | |
2413 #define CAN_TSR_RQCP2 CAN_TSR_RQCP2_Msk /*!<Request Completed Mailbox2 */ | |
2414 #define CAN_TSR_TXOK2_Pos (17U) | |
2415 #define CAN_TSR_TXOK2_Msk (0x1U << CAN_TSR_TXOK2_Pos) /*!< 0x00020000 */ | |
2416 #define CAN_TSR_TXOK2 CAN_TSR_TXOK2_Msk /*!<Transmission OK of Mailbox 2 */ | |
2417 #define CAN_TSR_ALST2_Pos (18U) | |
2418 #define CAN_TSR_ALST2_Msk (0x1U << CAN_TSR_ALST2_Pos) /*!< 0x00040000 */ | |
2419 #define CAN_TSR_ALST2 CAN_TSR_ALST2_Msk /*!<Arbitration Lost for mailbox 2 */ | |
2420 #define CAN_TSR_TERR2_Pos (19U) | |
2421 #define CAN_TSR_TERR2_Msk (0x1U << CAN_TSR_TERR2_Pos) /*!< 0x00080000 */ | |
2422 #define CAN_TSR_TERR2 CAN_TSR_TERR2_Msk /*!<Transmission Error of Mailbox 2 */ | |
2423 #define CAN_TSR_ABRQ2_Pos (23U) | |
2424 #define CAN_TSR_ABRQ2_Msk (0x1U << CAN_TSR_ABRQ2_Pos) /*!< 0x00800000 */ | |
2425 #define CAN_TSR_ABRQ2 CAN_TSR_ABRQ2_Msk /*!<Abort Request for Mailbox 2 */ | |
2426 #define CAN_TSR_CODE_Pos (24U) | |
2427 #define CAN_TSR_CODE_Msk (0x3U << CAN_TSR_CODE_Pos) /*!< 0x03000000 */ | |
2428 #define CAN_TSR_CODE CAN_TSR_CODE_Msk /*!<Mailbox Code */ | |
2429 | |
2430 #define CAN_TSR_TME_Pos (26U) | |
2431 #define CAN_TSR_TME_Msk (0x7U << CAN_TSR_TME_Pos) /*!< 0x1C000000 */ | |
2432 #define CAN_TSR_TME CAN_TSR_TME_Msk /*!<TME[2:0] bits */ | |
2433 #define CAN_TSR_TME0_Pos (26U) | |
2434 #define CAN_TSR_TME0_Msk (0x1U << CAN_TSR_TME0_Pos) /*!< 0x04000000 */ | |
2435 #define CAN_TSR_TME0 CAN_TSR_TME0_Msk /*!<Transmit Mailbox 0 Empty */ | |
2436 #define CAN_TSR_TME1_Pos (27U) | |
2437 #define CAN_TSR_TME1_Msk (0x1U << CAN_TSR_TME1_Pos) /*!< 0x08000000 */ | |
2438 #define CAN_TSR_TME1 CAN_TSR_TME1_Msk /*!<Transmit Mailbox 1 Empty */ | |
2439 #define CAN_TSR_TME2_Pos (28U) | |
2440 #define CAN_TSR_TME2_Msk (0x1U << CAN_TSR_TME2_Pos) /*!< 0x10000000 */ | |
2441 #define CAN_TSR_TME2 CAN_TSR_TME2_Msk /*!<Transmit Mailbox 2 Empty */ | |
2442 | |
2443 #define CAN_TSR_LOW_Pos (29U) | |
2444 #define CAN_TSR_LOW_Msk (0x7U << CAN_TSR_LOW_Pos) /*!< 0xE0000000 */ | |
2445 #define CAN_TSR_LOW CAN_TSR_LOW_Msk /*!<LOW[2:0] bits */ | |
2446 #define CAN_TSR_LOW0_Pos (29U) | |
2447 #define CAN_TSR_LOW0_Msk (0x1U << CAN_TSR_LOW0_Pos) /*!< 0x20000000 */ | |
2448 #define CAN_TSR_LOW0 CAN_TSR_LOW0_Msk /*!<Lowest Priority Flag for Mailbox 0 */ | |
2449 #define CAN_TSR_LOW1_Pos (30U) | |
2450 #define CAN_TSR_LOW1_Msk (0x1U << CAN_TSR_LOW1_Pos) /*!< 0x40000000 */ | |
2451 #define CAN_TSR_LOW1 CAN_TSR_LOW1_Msk /*!<Lowest Priority Flag for Mailbox 1 */ | |
2452 #define CAN_TSR_LOW2_Pos (31U) | |
2453 #define CAN_TSR_LOW2_Msk (0x1U << CAN_TSR_LOW2_Pos) /*!< 0x80000000 */ | |
2454 #define CAN_TSR_LOW2 CAN_TSR_LOW2_Msk /*!<Lowest Priority Flag for Mailbox 2 */ | |
2455 | |
2456 /******************* Bit definition for CAN_RF0R register *******************/ | |
2457 #define CAN_RF0R_FMP0_Pos (0U) | |
2458 #define CAN_RF0R_FMP0_Msk (0x3U << CAN_RF0R_FMP0_Pos) /*!< 0x00000003 */ | |
2459 #define CAN_RF0R_FMP0 CAN_RF0R_FMP0_Msk /*!<FIFO 0 Message Pending */ | |
2460 #define CAN_RF0R_FULL0_Pos (3U) | |
2461 #define CAN_RF0R_FULL0_Msk (0x1U << CAN_RF0R_FULL0_Pos) /*!< 0x00000008 */ | |
2462 #define CAN_RF0R_FULL0 CAN_RF0R_FULL0_Msk /*!<FIFO 0 Full */ | |
2463 #define CAN_RF0R_FOVR0_Pos (4U) | |
2464 #define CAN_RF0R_FOVR0_Msk (0x1U << CAN_RF0R_FOVR0_Pos) /*!< 0x00000010 */ | |
2465 #define CAN_RF0R_FOVR0 CAN_RF0R_FOVR0_Msk /*!<FIFO 0 Overrun */ | |
2466 #define CAN_RF0R_RFOM0_Pos (5U) | |
2467 #define CAN_RF0R_RFOM0_Msk (0x1U << CAN_RF0R_RFOM0_Pos) /*!< 0x00000020 */ | |
2468 #define CAN_RF0R_RFOM0 CAN_RF0R_RFOM0_Msk /*!<Release FIFO 0 Output Mailbox */ | |
2469 | |
2470 /******************* Bit definition for CAN_RF1R register *******************/ | |
2471 #define CAN_RF1R_FMP1_Pos (0U) | |
2472 #define CAN_RF1R_FMP1_Msk (0x3U << CAN_RF1R_FMP1_Pos) /*!< 0x00000003 */ | |
2473 #define CAN_RF1R_FMP1 CAN_RF1R_FMP1_Msk /*!<FIFO 1 Message Pending */ | |
2474 #define CAN_RF1R_FULL1_Pos (3U) | |
2475 #define CAN_RF1R_FULL1_Msk (0x1U << CAN_RF1R_FULL1_Pos) /*!< 0x00000008 */ | |
2476 #define CAN_RF1R_FULL1 CAN_RF1R_FULL1_Msk /*!<FIFO 1 Full */ | |
2477 #define CAN_RF1R_FOVR1_Pos (4U) | |
2478 #define CAN_RF1R_FOVR1_Msk (0x1U << CAN_RF1R_FOVR1_Pos) /*!< 0x00000010 */ | |
2479 #define CAN_RF1R_FOVR1 CAN_RF1R_FOVR1_Msk /*!<FIFO 1 Overrun */ | |
2480 #define CAN_RF1R_RFOM1_Pos (5U) | |
2481 #define CAN_RF1R_RFOM1_Msk (0x1U << CAN_RF1R_RFOM1_Pos) /*!< 0x00000020 */ | |
2482 #define CAN_RF1R_RFOM1 CAN_RF1R_RFOM1_Msk /*!<Release FIFO 1 Output Mailbox */ | |
2483 | |
2484 /******************** Bit definition for CAN_IER register *******************/ | |
2485 #define CAN_IER_TMEIE_Pos (0U) | |
2486 #define CAN_IER_TMEIE_Msk (0x1U << CAN_IER_TMEIE_Pos) /*!< 0x00000001 */ | |
2487 #define CAN_IER_TMEIE CAN_IER_TMEIE_Msk /*!<Transmit Mailbox Empty Interrupt Enable */ | |
2488 #define CAN_IER_FMPIE0_Pos (1U) | |
2489 #define CAN_IER_FMPIE0_Msk (0x1U << CAN_IER_FMPIE0_Pos) /*!< 0x00000002 */ | |
2490 #define CAN_IER_FMPIE0 CAN_IER_FMPIE0_Msk /*!<FIFO Message Pending Interrupt Enable */ | |
2491 #define CAN_IER_FFIE0_Pos (2U) | |
2492 #define CAN_IER_FFIE0_Msk (0x1U << CAN_IER_FFIE0_Pos) /*!< 0x00000004 */ | |
2493 #define CAN_IER_FFIE0 CAN_IER_FFIE0_Msk /*!<FIFO Full Interrupt Enable */ | |
2494 #define CAN_IER_FOVIE0_Pos (3U) | |
2495 #define CAN_IER_FOVIE0_Msk (0x1U << CAN_IER_FOVIE0_Pos) /*!< 0x00000008 */ | |
2496 #define CAN_IER_FOVIE0 CAN_IER_FOVIE0_Msk /*!<FIFO Overrun Interrupt Enable */ | |
2497 #define CAN_IER_FMPIE1_Pos (4U) | |
2498 #define CAN_IER_FMPIE1_Msk (0x1U << CAN_IER_FMPIE1_Pos) /*!< 0x00000010 */ | |
2499 #define CAN_IER_FMPIE1 CAN_IER_FMPIE1_Msk /*!<FIFO Message Pending Interrupt Enable */ | |
2500 #define CAN_IER_FFIE1_Pos (5U) | |
2501 #define CAN_IER_FFIE1_Msk (0x1U << CAN_IER_FFIE1_Pos) /*!< 0x00000020 */ | |
2502 #define CAN_IER_FFIE1 CAN_IER_FFIE1_Msk /*!<FIFO Full Interrupt Enable */ | |
2503 #define CAN_IER_FOVIE1_Pos (6U) | |
2504 #define CAN_IER_FOVIE1_Msk (0x1U << CAN_IER_FOVIE1_Pos) /*!< 0x00000040 */ | |
2505 #define CAN_IER_FOVIE1 CAN_IER_FOVIE1_Msk /*!<FIFO Overrun Interrupt Enable */ | |
2506 #define CAN_IER_EWGIE_Pos (8U) | |
2507 #define CAN_IER_EWGIE_Msk (0x1U << CAN_IER_EWGIE_Pos) /*!< 0x00000100 */ | |
2508 #define CAN_IER_EWGIE CAN_IER_EWGIE_Msk /*!<Error Warning Interrupt Enable */ | |
2509 #define CAN_IER_EPVIE_Pos (9U) | |
2510 #define CAN_IER_EPVIE_Msk (0x1U << CAN_IER_EPVIE_Pos) /*!< 0x00000200 */ | |
2511 #define CAN_IER_EPVIE CAN_IER_EPVIE_Msk /*!<Error Passive Interrupt Enable */ | |
2512 #define CAN_IER_BOFIE_Pos (10U) | |
2513 #define CAN_IER_BOFIE_Msk (0x1U << CAN_IER_BOFIE_Pos) /*!< 0x00000400 */ | |
2514 #define CAN_IER_BOFIE CAN_IER_BOFIE_Msk /*!<Bus-Off Interrupt Enable */ | |
2515 #define CAN_IER_LECIE_Pos (11U) | |
2516 #define CAN_IER_LECIE_Msk (0x1U << CAN_IER_LECIE_Pos) /*!< 0x00000800 */ | |
2517 #define CAN_IER_LECIE CAN_IER_LECIE_Msk /*!<Last Error Code Interrupt Enable */ | |
2518 #define CAN_IER_ERRIE_Pos (15U) | |
2519 #define CAN_IER_ERRIE_Msk (0x1U << CAN_IER_ERRIE_Pos) /*!< 0x00008000 */ | |
2520 #define CAN_IER_ERRIE CAN_IER_ERRIE_Msk /*!<Error Interrupt Enable */ | |
2521 #define CAN_IER_WKUIE_Pos (16U) | |
2522 #define CAN_IER_WKUIE_Msk (0x1U << CAN_IER_WKUIE_Pos) /*!< 0x00010000 */ | |
2523 #define CAN_IER_WKUIE CAN_IER_WKUIE_Msk /*!<Wakeup Interrupt Enable */ | |
2524 #define CAN_IER_SLKIE_Pos (17U) | |
2525 #define CAN_IER_SLKIE_Msk (0x1U << CAN_IER_SLKIE_Pos) /*!< 0x00020000 */ | |
2526 #define CAN_IER_SLKIE CAN_IER_SLKIE_Msk /*!<Sleep Interrupt Enable */ | |
2527 | |
2528 /******************** Bit definition for CAN_ESR register *******************/ | |
2529 #define CAN_ESR_EWGF_Pos (0U) | |
2530 #define CAN_ESR_EWGF_Msk (0x1U << CAN_ESR_EWGF_Pos) /*!< 0x00000001 */ | |
2531 #define CAN_ESR_EWGF CAN_ESR_EWGF_Msk /*!<Error Warning Flag */ | |
2532 #define CAN_ESR_EPVF_Pos (1U) | |
2533 #define CAN_ESR_EPVF_Msk (0x1U << CAN_ESR_EPVF_Pos) /*!< 0x00000002 */ | |
2534 #define CAN_ESR_EPVF CAN_ESR_EPVF_Msk /*!<Error Passive Flag */ | |
2535 #define CAN_ESR_BOFF_Pos (2U) | |
2536 #define CAN_ESR_BOFF_Msk (0x1U << CAN_ESR_BOFF_Pos) /*!< 0x00000004 */ | |
2537 #define CAN_ESR_BOFF CAN_ESR_BOFF_Msk /*!<Bus-Off Flag */ | |
2538 | |
2539 #define CAN_ESR_LEC_Pos (4U) | |
2540 #define CAN_ESR_LEC_Msk (0x7U << CAN_ESR_LEC_Pos) /*!< 0x00000070 */ | |
2541 #define CAN_ESR_LEC CAN_ESR_LEC_Msk /*!<LEC[2:0] bits (Last Error Code) */ | |
2542 #define CAN_ESR_LEC_0 (0x1U << CAN_ESR_LEC_Pos) /*!< 0x00000010 */ | |
2543 #define CAN_ESR_LEC_1 (0x2U << CAN_ESR_LEC_Pos) /*!< 0x00000020 */ | |
2544 #define CAN_ESR_LEC_2 (0x4U << CAN_ESR_LEC_Pos) /*!< 0x00000040 */ | |
2545 | |
2546 #define CAN_ESR_TEC_Pos (16U) | |
2547 #define CAN_ESR_TEC_Msk (0xFFU << CAN_ESR_TEC_Pos) /*!< 0x00FF0000 */ | |
2548 #define CAN_ESR_TEC CAN_ESR_TEC_Msk /*!<Least significant byte of the 9-bit Transmit Error Counter */ | |
2549 #define CAN_ESR_REC_Pos (24U) | |
2550 #define CAN_ESR_REC_Msk (0xFFU << CAN_ESR_REC_Pos) /*!< 0xFF000000 */ | |
2551 #define CAN_ESR_REC CAN_ESR_REC_Msk /*!<Receive Error Counter */ | |
2552 | |
2553 /******************* Bit definition for CAN_BTR register ********************/ | |
2554 #define CAN_BTR_BRP_Pos (0U) | |
2555 #define CAN_BTR_BRP_Msk (0x3FFU << CAN_BTR_BRP_Pos) /*!< 0x000003FF */ | |
2556 #define CAN_BTR_BRP CAN_BTR_BRP_Msk /*!<Baud Rate Prescaler */ | |
2557 #define CAN_BTR_TS1_Pos (16U) | |
2558 #define CAN_BTR_TS1_Msk (0xFU << CAN_BTR_TS1_Pos) /*!< 0x000F0000 */ | |
2559 #define CAN_BTR_TS1 CAN_BTR_TS1_Msk /*!<Time Segment 1 */ | |
2560 #define CAN_BTR_TS1_0 (0x1U << CAN_BTR_TS1_Pos) /*!< 0x00010000 */ | |
2561 #define CAN_BTR_TS1_1 (0x2U << CAN_BTR_TS1_Pos) /*!< 0x00020000 */ | |
2562 #define CAN_BTR_TS1_2 (0x4U << CAN_BTR_TS1_Pos) /*!< 0x00040000 */ | |
2563 #define CAN_BTR_TS1_3 (0x8U << CAN_BTR_TS1_Pos) /*!< 0x00080000 */ | |
2564 #define CAN_BTR_TS2_Pos (20U) | |
2565 #define CAN_BTR_TS2_Msk (0x7U << CAN_BTR_TS2_Pos) /*!< 0x00700000 */ | |
2566 #define CAN_BTR_TS2 CAN_BTR_TS2_Msk /*!<Time Segment 2 */ | |
2567 #define CAN_BTR_TS2_0 (0x1U << CAN_BTR_TS2_Pos) /*!< 0x00100000 */ | |
2568 #define CAN_BTR_TS2_1 (0x2U << CAN_BTR_TS2_Pos) /*!< 0x00200000 */ | |
2569 #define CAN_BTR_TS2_2 (0x4U << CAN_BTR_TS2_Pos) /*!< 0x00400000 */ | |
2570 #define CAN_BTR_SJW_Pos (24U) | |
2571 #define CAN_BTR_SJW_Msk (0x3U << CAN_BTR_SJW_Pos) /*!< 0x03000000 */ | |
2572 #define CAN_BTR_SJW CAN_BTR_SJW_Msk /*!<Resynchronization Jump Width */ | |
2573 #define CAN_BTR_SJW_0 (0x1U << CAN_BTR_SJW_Pos) /*!< 0x01000000 */ | |
2574 #define CAN_BTR_SJW_1 (0x2U << CAN_BTR_SJW_Pos) /*!< 0x02000000 */ | |
2575 #define CAN_BTR_LBKM_Pos (30U) | |
2576 #define CAN_BTR_LBKM_Msk (0x1U << CAN_BTR_LBKM_Pos) /*!< 0x40000000 */ | |
2577 #define CAN_BTR_LBKM CAN_BTR_LBKM_Msk /*!<Loop Back Mode (Debug) */ | |
2578 #define CAN_BTR_SILM_Pos (31U) | |
2579 #define CAN_BTR_SILM_Msk (0x1U << CAN_BTR_SILM_Pos) /*!< 0x80000000 */ | |
2580 #define CAN_BTR_SILM CAN_BTR_SILM_Msk /*!<Silent Mode */ | |
2581 | |
2582 /*!<Mailbox registers */ | |
2583 /****************** Bit definition for CAN_TI0R register ********************/ | |
2584 #define CAN_TI0R_TXRQ_Pos (0U) | |
2585 #define CAN_TI0R_TXRQ_Msk (0x1U << CAN_TI0R_TXRQ_Pos) /*!< 0x00000001 */ | |
2586 #define CAN_TI0R_TXRQ CAN_TI0R_TXRQ_Msk /*!<Transmit Mailbox Request */ | |
2587 #define CAN_TI0R_RTR_Pos (1U) | |
2588 #define CAN_TI0R_RTR_Msk (0x1U << CAN_TI0R_RTR_Pos) /*!< 0x00000002 */ | |
2589 #define CAN_TI0R_RTR CAN_TI0R_RTR_Msk /*!<Remote Transmission Request */ | |
2590 #define CAN_TI0R_IDE_Pos (2U) | |
2591 #define CAN_TI0R_IDE_Msk (0x1U << CAN_TI0R_IDE_Pos) /*!< 0x00000004 */ | |
2592 #define CAN_TI0R_IDE CAN_TI0R_IDE_Msk /*!<Identifier Extension */ | |
2593 #define CAN_TI0R_EXID_Pos (3U) | |
2594 #define CAN_TI0R_EXID_Msk (0x3FFFFU << CAN_TI0R_EXID_Pos) /*!< 0x001FFFF8 */ | |
2595 #define CAN_TI0R_EXID CAN_TI0R_EXID_Msk /*!<Extended Identifier */ | |
2596 #define CAN_TI0R_STID_Pos (21U) | |
2597 #define CAN_TI0R_STID_Msk (0x7FFU << CAN_TI0R_STID_Pos) /*!< 0xFFE00000 */ | |
2598 #define CAN_TI0R_STID CAN_TI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */ | |
2599 | |
2600 /****************** Bit definition for CAN_TDT0R register *******************/ | |
2601 #define CAN_TDT0R_DLC_Pos (0U) | |
2602 #define CAN_TDT0R_DLC_Msk (0xFU << CAN_TDT0R_DLC_Pos) /*!< 0x0000000F */ | |
2603 #define CAN_TDT0R_DLC CAN_TDT0R_DLC_Msk /*!<Data Length Code */ | |
2604 #define CAN_TDT0R_TGT_Pos (8U) | |
2605 #define CAN_TDT0R_TGT_Msk (0x1U << CAN_TDT0R_TGT_Pos) /*!< 0x00000100 */ | |
2606 #define CAN_TDT0R_TGT CAN_TDT0R_TGT_Msk /*!<Transmit Global Time */ | |
2607 #define CAN_TDT0R_TIME_Pos (16U) | |
2608 #define CAN_TDT0R_TIME_Msk (0xFFFFU << CAN_TDT0R_TIME_Pos) /*!< 0xFFFF0000 */ | |
2609 #define CAN_TDT0R_TIME CAN_TDT0R_TIME_Msk /*!<Message Time Stamp */ | |
2610 | |
2611 /****************** Bit definition for CAN_TDL0R register *******************/ | |
2612 #define CAN_TDL0R_DATA0_Pos (0U) | |
2613 #define CAN_TDL0R_DATA0_Msk (0xFFU << CAN_TDL0R_DATA0_Pos) /*!< 0x000000FF */ | |
2614 #define CAN_TDL0R_DATA0 CAN_TDL0R_DATA0_Msk /*!<Data byte 0 */ | |
2615 #define CAN_TDL0R_DATA1_Pos (8U) | |
2616 #define CAN_TDL0R_DATA1_Msk (0xFFU << CAN_TDL0R_DATA1_Pos) /*!< 0x0000FF00 */ | |
2617 #define CAN_TDL0R_DATA1 CAN_TDL0R_DATA1_Msk /*!<Data byte 1 */ | |
2618 #define CAN_TDL0R_DATA2_Pos (16U) | |
2619 #define CAN_TDL0R_DATA2_Msk (0xFFU << CAN_TDL0R_DATA2_Pos) /*!< 0x00FF0000 */ | |
2620 #define CAN_TDL0R_DATA2 CAN_TDL0R_DATA2_Msk /*!<Data byte 2 */ | |
2621 #define CAN_TDL0R_DATA3_Pos (24U) | |
2622 #define CAN_TDL0R_DATA3_Msk (0xFFU << CAN_TDL0R_DATA3_Pos) /*!< 0xFF000000 */ | |
2623 #define CAN_TDL0R_DATA3 CAN_TDL0R_DATA3_Msk /*!<Data byte 3 */ | |
2624 | |
2625 /****************** Bit definition for CAN_TDH0R register *******************/ | |
2626 #define CAN_TDH0R_DATA4_Pos (0U) | |
2627 #define CAN_TDH0R_DATA4_Msk (0xFFU << CAN_TDH0R_DATA4_Pos) /*!< 0x000000FF */ | |
2628 #define CAN_TDH0R_DATA4 CAN_TDH0R_DATA4_Msk /*!<Data byte 4 */ | |
2629 #define CAN_TDH0R_DATA5_Pos (8U) | |
2630 #define CAN_TDH0R_DATA5_Msk (0xFFU << CAN_TDH0R_DATA5_Pos) /*!< 0x0000FF00 */ | |
2631 #define CAN_TDH0R_DATA5 CAN_TDH0R_DATA5_Msk /*!<Data byte 5 */ | |
2632 #define CAN_TDH0R_DATA6_Pos (16U) | |
2633 #define CAN_TDH0R_DATA6_Msk (0xFFU << CAN_TDH0R_DATA6_Pos) /*!< 0x00FF0000 */ | |
2634 #define CAN_TDH0R_DATA6 CAN_TDH0R_DATA6_Msk /*!<Data byte 6 */ | |
2635 #define CAN_TDH0R_DATA7_Pos (24U) | |
2636 #define CAN_TDH0R_DATA7_Msk (0xFFU << CAN_TDH0R_DATA7_Pos) /*!< 0xFF000000 */ | |
2637 #define CAN_TDH0R_DATA7 CAN_TDH0R_DATA7_Msk /*!<Data byte 7 */ | |
2638 | |
2639 /******************* Bit definition for CAN_TI1R register *******************/ | |
2640 #define CAN_TI1R_TXRQ_Pos (0U) | |
2641 #define CAN_TI1R_TXRQ_Msk (0x1U << CAN_TI1R_TXRQ_Pos) /*!< 0x00000001 */ | |
2642 #define CAN_TI1R_TXRQ CAN_TI1R_TXRQ_Msk /*!<Transmit Mailbox Request */ | |
2643 #define CAN_TI1R_RTR_Pos (1U) | |
2644 #define CAN_TI1R_RTR_Msk (0x1U << CAN_TI1R_RTR_Pos) /*!< 0x00000002 */ | |
2645 #define CAN_TI1R_RTR CAN_TI1R_RTR_Msk /*!<Remote Transmission Request */ | |
2646 #define CAN_TI1R_IDE_Pos (2U) | |
2647 #define CAN_TI1R_IDE_Msk (0x1U << CAN_TI1R_IDE_Pos) /*!< 0x00000004 */ | |
2648 #define CAN_TI1R_IDE CAN_TI1R_IDE_Msk /*!<Identifier Extension */ | |
2649 #define CAN_TI1R_EXID_Pos (3U) | |
2650 #define CAN_TI1R_EXID_Msk (0x3FFFFU << CAN_TI1R_EXID_Pos) /*!< 0x001FFFF8 */ | |
2651 #define CAN_TI1R_EXID CAN_TI1R_EXID_Msk /*!<Extended Identifier */ | |
2652 #define CAN_TI1R_STID_Pos (21U) | |
2653 #define CAN_TI1R_STID_Msk (0x7FFU << CAN_TI1R_STID_Pos) /*!< 0xFFE00000 */ | |
2654 #define CAN_TI1R_STID CAN_TI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */ | |
2655 | |
2656 /******************* Bit definition for CAN_TDT1R register ******************/ | |
2657 #define CAN_TDT1R_DLC_Pos (0U) | |
2658 #define CAN_TDT1R_DLC_Msk (0xFU << CAN_TDT1R_DLC_Pos) /*!< 0x0000000F */ | |
2659 #define CAN_TDT1R_DLC CAN_TDT1R_DLC_Msk /*!<Data Length Code */ | |
2660 #define CAN_TDT1R_TGT_Pos (8U) | |
2661 #define CAN_TDT1R_TGT_Msk (0x1U << CAN_TDT1R_TGT_Pos) /*!< 0x00000100 */ | |
2662 #define CAN_TDT1R_TGT CAN_TDT1R_TGT_Msk /*!<Transmit Global Time */ | |
2663 #define CAN_TDT1R_TIME_Pos (16U) | |
2664 #define CAN_TDT1R_TIME_Msk (0xFFFFU << CAN_TDT1R_TIME_Pos) /*!< 0xFFFF0000 */ | |
2665 #define CAN_TDT1R_TIME CAN_TDT1R_TIME_Msk /*!<Message Time Stamp */ | |
2666 | |
2667 /******************* Bit definition for CAN_TDL1R register ******************/ | |
2668 #define CAN_TDL1R_DATA0_Pos (0U) | |
2669 #define CAN_TDL1R_DATA0_Msk (0xFFU << CAN_TDL1R_DATA0_Pos) /*!< 0x000000FF */ | |
2670 #define CAN_TDL1R_DATA0 CAN_TDL1R_DATA0_Msk /*!<Data byte 0 */ | |
2671 #define CAN_TDL1R_DATA1_Pos (8U) | |
2672 #define CAN_TDL1R_DATA1_Msk (0xFFU << CAN_TDL1R_DATA1_Pos) /*!< 0x0000FF00 */ | |
2673 #define CAN_TDL1R_DATA1 CAN_TDL1R_DATA1_Msk /*!<Data byte 1 */ | |
2674 #define CAN_TDL1R_DATA2_Pos (16U) | |
2675 #define CAN_TDL1R_DATA2_Msk (0xFFU << CAN_TDL1R_DATA2_Pos) /*!< 0x00FF0000 */ | |
2676 #define CAN_TDL1R_DATA2 CAN_TDL1R_DATA2_Msk /*!<Data byte 2 */ | |
2677 #define CAN_TDL1R_DATA3_Pos (24U) | |
2678 #define CAN_TDL1R_DATA3_Msk (0xFFU << CAN_TDL1R_DATA3_Pos) /*!< 0xFF000000 */ | |
2679 #define CAN_TDL1R_DATA3 CAN_TDL1R_DATA3_Msk /*!<Data byte 3 */ | |
2680 | |
2681 /******************* Bit definition for CAN_TDH1R register ******************/ | |
2682 #define CAN_TDH1R_DATA4_Pos (0U) | |
2683 #define CAN_TDH1R_DATA4_Msk (0xFFU << CAN_TDH1R_DATA4_Pos) /*!< 0x000000FF */ | |
2684 #define CAN_TDH1R_DATA4 CAN_TDH1R_DATA4_Msk /*!<Data byte 4 */ | |
2685 #define CAN_TDH1R_DATA5_Pos (8U) | |
2686 #define CAN_TDH1R_DATA5_Msk (0xFFU << CAN_TDH1R_DATA5_Pos) /*!< 0x0000FF00 */ | |
2687 #define CAN_TDH1R_DATA5 CAN_TDH1R_DATA5_Msk /*!<Data byte 5 */ | |
2688 #define CAN_TDH1R_DATA6_Pos (16U) | |
2689 #define CAN_TDH1R_DATA6_Msk (0xFFU << CAN_TDH1R_DATA6_Pos) /*!< 0x00FF0000 */ | |
2690 #define CAN_TDH1R_DATA6 CAN_TDH1R_DATA6_Msk /*!<Data byte 6 */ | |
2691 #define CAN_TDH1R_DATA7_Pos (24U) | |
2692 #define CAN_TDH1R_DATA7_Msk (0xFFU << CAN_TDH1R_DATA7_Pos) /*!< 0xFF000000 */ | |
2693 #define CAN_TDH1R_DATA7 CAN_TDH1R_DATA7_Msk /*!<Data byte 7 */ | |
2694 | |
2695 /******************* Bit definition for CAN_TI2R register *******************/ | |
2696 #define CAN_TI2R_TXRQ_Pos (0U) | |
2697 #define CAN_TI2R_TXRQ_Msk (0x1U << CAN_TI2R_TXRQ_Pos) /*!< 0x00000001 */ | |
2698 #define CAN_TI2R_TXRQ CAN_TI2R_TXRQ_Msk /*!<Transmit Mailbox Request */ | |
2699 #define CAN_TI2R_RTR_Pos (1U) | |
2700 #define CAN_TI2R_RTR_Msk (0x1U << CAN_TI2R_RTR_Pos) /*!< 0x00000002 */ | |
2701 #define CAN_TI2R_RTR CAN_TI2R_RTR_Msk /*!<Remote Transmission Request */ | |
2702 #define CAN_TI2R_IDE_Pos (2U) | |
2703 #define CAN_TI2R_IDE_Msk (0x1U << CAN_TI2R_IDE_Pos) /*!< 0x00000004 */ | |
2704 #define CAN_TI2R_IDE CAN_TI2R_IDE_Msk /*!<Identifier Extension */ | |
2705 #define CAN_TI2R_EXID_Pos (3U) | |
2706 #define CAN_TI2R_EXID_Msk (0x3FFFFU << CAN_TI2R_EXID_Pos) /*!< 0x001FFFF8 */ | |
2707 #define CAN_TI2R_EXID CAN_TI2R_EXID_Msk /*!<Extended identifier */ | |
2708 #define CAN_TI2R_STID_Pos (21U) | |
2709 #define CAN_TI2R_STID_Msk (0x7FFU << CAN_TI2R_STID_Pos) /*!< 0xFFE00000 */ | |
2710 #define CAN_TI2R_STID CAN_TI2R_STID_Msk /*!<Standard Identifier or Extended Identifier */ | |
2711 | |
2712 /******************* Bit definition for CAN_TDT2R register ******************/ | |
2713 #define CAN_TDT2R_DLC_Pos (0U) | |
2714 #define CAN_TDT2R_DLC_Msk (0xFU << CAN_TDT2R_DLC_Pos) /*!< 0x0000000F */ | |
2715 #define CAN_TDT2R_DLC CAN_TDT2R_DLC_Msk /*!<Data Length Code */ | |
2716 #define CAN_TDT2R_TGT_Pos (8U) | |
2717 #define CAN_TDT2R_TGT_Msk (0x1U << CAN_TDT2R_TGT_Pos) /*!< 0x00000100 */ | |
2718 #define CAN_TDT2R_TGT CAN_TDT2R_TGT_Msk /*!<Transmit Global Time */ | |
2719 #define CAN_TDT2R_TIME_Pos (16U) | |
2720 #define CAN_TDT2R_TIME_Msk (0xFFFFU << CAN_TDT2R_TIME_Pos) /*!< 0xFFFF0000 */ | |
2721 #define CAN_TDT2R_TIME CAN_TDT2R_TIME_Msk /*!<Message Time Stamp */ | |
2722 | |
2723 /******************* Bit definition for CAN_TDL2R register ******************/ | |
2724 #define CAN_TDL2R_DATA0_Pos (0U) | |
2725 #define CAN_TDL2R_DATA0_Msk (0xFFU << CAN_TDL2R_DATA0_Pos) /*!< 0x000000FF */ | |
2726 #define CAN_TDL2R_DATA0 CAN_TDL2R_DATA0_Msk /*!<Data byte 0 */ | |
2727 #define CAN_TDL2R_DATA1_Pos (8U) | |
2728 #define CAN_TDL2R_DATA1_Msk (0xFFU << CAN_TDL2R_DATA1_Pos) /*!< 0x0000FF00 */ | |
2729 #define CAN_TDL2R_DATA1 CAN_TDL2R_DATA1_Msk /*!<Data byte 1 */ | |
2730 #define CAN_TDL2R_DATA2_Pos (16U) | |
2731 #define CAN_TDL2R_DATA2_Msk (0xFFU << CAN_TDL2R_DATA2_Pos) /*!< 0x00FF0000 */ | |
2732 #define CAN_TDL2R_DATA2 CAN_TDL2R_DATA2_Msk /*!<Data byte 2 */ | |
2733 #define CAN_TDL2R_DATA3_Pos (24U) | |
2734 #define CAN_TDL2R_DATA3_Msk (0xFFU << CAN_TDL2R_DATA3_Pos) /*!< 0xFF000000 */ | |
2735 #define CAN_TDL2R_DATA3 CAN_TDL2R_DATA3_Msk /*!<Data byte 3 */ | |
2736 | |
2737 /******************* Bit definition for CAN_TDH2R register ******************/ | |
2738 #define CAN_TDH2R_DATA4_Pos (0U) | |
2739 #define CAN_TDH2R_DATA4_Msk (0xFFU << CAN_TDH2R_DATA4_Pos) /*!< 0x000000FF */ | |
2740 #define CAN_TDH2R_DATA4 CAN_TDH2R_DATA4_Msk /*!<Data byte 4 */ | |
2741 #define CAN_TDH2R_DATA5_Pos (8U) | |
2742 #define CAN_TDH2R_DATA5_Msk (0xFFU << CAN_TDH2R_DATA5_Pos) /*!< 0x0000FF00 */ | |
2743 #define CAN_TDH2R_DATA5 CAN_TDH2R_DATA5_Msk /*!<Data byte 5 */ | |
2744 #define CAN_TDH2R_DATA6_Pos (16U) | |
2745 #define CAN_TDH2R_DATA6_Msk (0xFFU << CAN_TDH2R_DATA6_Pos) /*!< 0x00FF0000 */ | |
2746 #define CAN_TDH2R_DATA6 CAN_TDH2R_DATA6_Msk /*!<Data byte 6 */ | |
2747 #define CAN_TDH2R_DATA7_Pos (24U) | |
2748 #define CAN_TDH2R_DATA7_Msk (0xFFU << CAN_TDH2R_DATA7_Pos) /*!< 0xFF000000 */ | |
2749 #define CAN_TDH2R_DATA7 CAN_TDH2R_DATA7_Msk /*!<Data byte 7 */ | |
2750 | |
2751 /******************* Bit definition for CAN_RI0R register *******************/ | |
2752 #define CAN_RI0R_RTR_Pos (1U) | |
2753 #define CAN_RI0R_RTR_Msk (0x1U << CAN_RI0R_RTR_Pos) /*!< 0x00000002 */ | |
2754 #define CAN_RI0R_RTR CAN_RI0R_RTR_Msk /*!<Remote Transmission Request */ | |
2755 #define CAN_RI0R_IDE_Pos (2U) | |
2756 #define CAN_RI0R_IDE_Msk (0x1U << CAN_RI0R_IDE_Pos) /*!< 0x00000004 */ | |
2757 #define CAN_RI0R_IDE CAN_RI0R_IDE_Msk /*!<Identifier Extension */ | |
2758 #define CAN_RI0R_EXID_Pos (3U) | |
2759 #define CAN_RI0R_EXID_Msk (0x3FFFFU << CAN_RI0R_EXID_Pos) /*!< 0x001FFFF8 */ | |
2760 #define CAN_RI0R_EXID CAN_RI0R_EXID_Msk /*!<Extended Identifier */ | |
2761 #define CAN_RI0R_STID_Pos (21U) | |
2762 #define CAN_RI0R_STID_Msk (0x7FFU << CAN_RI0R_STID_Pos) /*!< 0xFFE00000 */ | |
2763 #define CAN_RI0R_STID CAN_RI0R_STID_Msk /*!<Standard Identifier or Extended Identifier */ | |
2764 | |
2765 /******************* Bit definition for CAN_RDT0R register ******************/ | |
2766 #define CAN_RDT0R_DLC_Pos (0U) | |
2767 #define CAN_RDT0R_DLC_Msk (0xFU << CAN_RDT0R_DLC_Pos) /*!< 0x0000000F */ | |
2768 #define CAN_RDT0R_DLC CAN_RDT0R_DLC_Msk /*!<Data Length Code */ | |
2769 #define CAN_RDT0R_FMI_Pos (8U) | |
2770 #define CAN_RDT0R_FMI_Msk (0xFFU << CAN_RDT0R_FMI_Pos) /*!< 0x0000FF00 */ | |
2771 #define CAN_RDT0R_FMI CAN_RDT0R_FMI_Msk /*!<Filter Match Index */ | |
2772 #define CAN_RDT0R_TIME_Pos (16U) | |
2773 #define CAN_RDT0R_TIME_Msk (0xFFFFU << CAN_RDT0R_TIME_Pos) /*!< 0xFFFF0000 */ | |
2774 #define CAN_RDT0R_TIME CAN_RDT0R_TIME_Msk /*!<Message Time Stamp */ | |
2775 | |
2776 /******************* Bit definition for CAN_RDL0R register ******************/ | |
2777 #define CAN_RDL0R_DATA0_Pos (0U) | |
2778 #define CAN_RDL0R_DATA0_Msk (0xFFU << CAN_RDL0R_DATA0_Pos) /*!< 0x000000FF */ | |
2779 #define CAN_RDL0R_DATA0 CAN_RDL0R_DATA0_Msk /*!<Data byte 0 */ | |
2780 #define CAN_RDL0R_DATA1_Pos (8U) | |
2781 #define CAN_RDL0R_DATA1_Msk (0xFFU << CAN_RDL0R_DATA1_Pos) /*!< 0x0000FF00 */ | |
2782 #define CAN_RDL0R_DATA1 CAN_RDL0R_DATA1_Msk /*!<Data byte 1 */ | |
2783 #define CAN_RDL0R_DATA2_Pos (16U) | |
2784 #define CAN_RDL0R_DATA2_Msk (0xFFU << CAN_RDL0R_DATA2_Pos) /*!< 0x00FF0000 */ | |
2785 #define CAN_RDL0R_DATA2 CAN_RDL0R_DATA2_Msk /*!<Data byte 2 */ | |
2786 #define CAN_RDL0R_DATA3_Pos (24U) | |
2787 #define CAN_RDL0R_DATA3_Msk (0xFFU << CAN_RDL0R_DATA3_Pos) /*!< 0xFF000000 */ | |
2788 #define CAN_RDL0R_DATA3 CAN_RDL0R_DATA3_Msk /*!<Data byte 3 */ | |
2789 | |
2790 /******************* Bit definition for CAN_RDH0R register ******************/ | |
2791 #define CAN_RDH0R_DATA4_Pos (0U) | |
2792 #define CAN_RDH0R_DATA4_Msk (0xFFU << CAN_RDH0R_DATA4_Pos) /*!< 0x000000FF */ | |
2793 #define CAN_RDH0R_DATA4 CAN_RDH0R_DATA4_Msk /*!<Data byte 4 */ | |
2794 #define CAN_RDH0R_DATA5_Pos (8U) | |
2795 #define CAN_RDH0R_DATA5_Msk (0xFFU << CAN_RDH0R_DATA5_Pos) /*!< 0x0000FF00 */ | |
2796 #define CAN_RDH0R_DATA5 CAN_RDH0R_DATA5_Msk /*!<Data byte 5 */ | |
2797 #define CAN_RDH0R_DATA6_Pos (16U) | |
2798 #define CAN_RDH0R_DATA6_Msk (0xFFU << CAN_RDH0R_DATA6_Pos) /*!< 0x00FF0000 */ | |
2799 #define CAN_RDH0R_DATA6 CAN_RDH0R_DATA6_Msk /*!<Data byte 6 */ | |
2800 #define CAN_RDH0R_DATA7_Pos (24U) | |
2801 #define CAN_RDH0R_DATA7_Msk (0xFFU << CAN_RDH0R_DATA7_Pos) /*!< 0xFF000000 */ | |
2802 #define CAN_RDH0R_DATA7 CAN_RDH0R_DATA7_Msk /*!<Data byte 7 */ | |
2803 | |
2804 /******************* Bit definition for CAN_RI1R register *******************/ | |
2805 #define CAN_RI1R_RTR_Pos (1U) | |
2806 #define CAN_RI1R_RTR_Msk (0x1U << CAN_RI1R_RTR_Pos) /*!< 0x00000002 */ | |
2807 #define CAN_RI1R_RTR CAN_RI1R_RTR_Msk /*!<Remote Transmission Request */ | |
2808 #define CAN_RI1R_IDE_Pos (2U) | |
2809 #define CAN_RI1R_IDE_Msk (0x1U << CAN_RI1R_IDE_Pos) /*!< 0x00000004 */ | |
2810 #define CAN_RI1R_IDE CAN_RI1R_IDE_Msk /*!<Identifier Extension */ | |
2811 #define CAN_RI1R_EXID_Pos (3U) | |
2812 #define CAN_RI1R_EXID_Msk (0x3FFFFU << CAN_RI1R_EXID_Pos) /*!< 0x001FFFF8 */ | |
2813 #define CAN_RI1R_EXID CAN_RI1R_EXID_Msk /*!<Extended identifier */ | |
2814 #define CAN_RI1R_STID_Pos (21U) | |
2815 #define CAN_RI1R_STID_Msk (0x7FFU << CAN_RI1R_STID_Pos) /*!< 0xFFE00000 */ | |
2816 #define CAN_RI1R_STID CAN_RI1R_STID_Msk /*!<Standard Identifier or Extended Identifier */ | |
2817 | |
2818 /******************* Bit definition for CAN_RDT1R register ******************/ | |
2819 #define CAN_RDT1R_DLC_Pos (0U) | |
2820 #define CAN_RDT1R_DLC_Msk (0xFU << CAN_RDT1R_DLC_Pos) /*!< 0x0000000F */ | |
2821 #define CAN_RDT1R_DLC CAN_RDT1R_DLC_Msk /*!<Data Length Code */ | |
2822 #define CAN_RDT1R_FMI_Pos (8U) | |
2823 #define CAN_RDT1R_FMI_Msk (0xFFU << CAN_RDT1R_FMI_Pos) /*!< 0x0000FF00 */ | |
2824 #define CAN_RDT1R_FMI CAN_RDT1R_FMI_Msk /*!<Filter Match Index */ | |
2825 #define CAN_RDT1R_TIME_Pos (16U) | |
2826 #define CAN_RDT1R_TIME_Msk (0xFFFFU << CAN_RDT1R_TIME_Pos) /*!< 0xFFFF0000 */ | |
2827 #define CAN_RDT1R_TIME CAN_RDT1R_TIME_Msk /*!<Message Time Stamp */ | |
2828 | |
2829 /******************* Bit definition for CAN_RDL1R register ******************/ | |
2830 #define CAN_RDL1R_DATA0_Pos (0U) | |
2831 #define CAN_RDL1R_DATA0_Msk (0xFFU << CAN_RDL1R_DATA0_Pos) /*!< 0x000000FF */ | |
2832 #define CAN_RDL1R_DATA0 CAN_RDL1R_DATA0_Msk /*!<Data byte 0 */ | |
2833 #define CAN_RDL1R_DATA1_Pos (8U) | |
2834 #define CAN_RDL1R_DATA1_Msk (0xFFU << CAN_RDL1R_DATA1_Pos) /*!< 0x0000FF00 */ | |
2835 #define CAN_RDL1R_DATA1 CAN_RDL1R_DATA1_Msk /*!<Data byte 1 */ | |
2836 #define CAN_RDL1R_DATA2_Pos (16U) | |
2837 #define CAN_RDL1R_DATA2_Msk (0xFFU << CAN_RDL1R_DATA2_Pos) /*!< 0x00FF0000 */ | |
2838 #define CAN_RDL1R_DATA2 CAN_RDL1R_DATA2_Msk /*!<Data byte 2 */ | |
2839 #define CAN_RDL1R_DATA3_Pos (24U) | |
2840 #define CAN_RDL1R_DATA3_Msk (0xFFU << CAN_RDL1R_DATA3_Pos) /*!< 0xFF000000 */ | |
2841 #define CAN_RDL1R_DATA3 CAN_RDL1R_DATA3_Msk /*!<Data byte 3 */ | |
2842 | |
2843 /******************* Bit definition for CAN_RDH1R register ******************/ | |
2844 #define CAN_RDH1R_DATA4_Pos (0U) | |
2845 #define CAN_RDH1R_DATA4_Msk (0xFFU << CAN_RDH1R_DATA4_Pos) /*!< 0x000000FF */ | |
2846 #define CAN_RDH1R_DATA4 CAN_RDH1R_DATA4_Msk /*!<Data byte 4 */ | |
2847 #define CAN_RDH1R_DATA5_Pos (8U) | |
2848 #define CAN_RDH1R_DATA5_Msk (0xFFU << CAN_RDH1R_DATA5_Pos) /*!< 0x0000FF00 */ | |
2849 #define CAN_RDH1R_DATA5 CAN_RDH1R_DATA5_Msk /*!<Data byte 5 */ | |
2850 #define CAN_RDH1R_DATA6_Pos (16U) | |
2851 #define CAN_RDH1R_DATA6_Msk (0xFFU << CAN_RDH1R_DATA6_Pos) /*!< 0x00FF0000 */ | |
2852 #define CAN_RDH1R_DATA6 CAN_RDH1R_DATA6_Msk /*!<Data byte 6 */ | |
2853 #define CAN_RDH1R_DATA7_Pos (24U) | |
2854 #define CAN_RDH1R_DATA7_Msk (0xFFU << CAN_RDH1R_DATA7_Pos) /*!< 0xFF000000 */ | |
2855 #define CAN_RDH1R_DATA7 CAN_RDH1R_DATA7_Msk /*!<Data byte 7 */ | |
2856 | |
2857 /*!<CAN filter registers */ | |
2858 /******************* Bit definition for CAN_FMR register ********************/ | |
2859 #define CAN_FMR_FINIT_Pos (0U) | |
2860 #define CAN_FMR_FINIT_Msk (0x1U << CAN_FMR_FINIT_Pos) /*!< 0x00000001 */ | |
2861 #define CAN_FMR_FINIT CAN_FMR_FINIT_Msk /*!<Filter Init Mode */ | |
2862 | |
2863 /******************* Bit definition for CAN_FM1R register *******************/ | |
2864 #define CAN_FM1R_FBM_Pos (0U) | |
2865 #define CAN_FM1R_FBM_Msk (0x3FFFU << CAN_FM1R_FBM_Pos) /*!< 0x00003FFF */ | |
2866 #define CAN_FM1R_FBM CAN_FM1R_FBM_Msk /*!<Filter Mode */ | |
2867 #define CAN_FM1R_FBM0_Pos (0U) | |
2868 #define CAN_FM1R_FBM0_Msk (0x1U << CAN_FM1R_FBM0_Pos) /*!< 0x00000001 */ | |
2869 #define CAN_FM1R_FBM0 CAN_FM1R_FBM0_Msk /*!<Filter Init Mode bit 0 */ | |
2870 #define CAN_FM1R_FBM1_Pos (1U) | |
2871 #define CAN_FM1R_FBM1_Msk (0x1U << CAN_FM1R_FBM1_Pos) /*!< 0x00000002 */ | |
2872 #define CAN_FM1R_FBM1 CAN_FM1R_FBM1_Msk /*!<Filter Init Mode bit 1 */ | |
2873 #define CAN_FM1R_FBM2_Pos (2U) | |
2874 #define CAN_FM1R_FBM2_Msk (0x1U << CAN_FM1R_FBM2_Pos) /*!< 0x00000004 */ | |
2875 #define CAN_FM1R_FBM2 CAN_FM1R_FBM2_Msk /*!<Filter Init Mode bit 2 */ | |
2876 #define CAN_FM1R_FBM3_Pos (3U) | |
2877 #define CAN_FM1R_FBM3_Msk (0x1U << CAN_FM1R_FBM3_Pos) /*!< 0x00000008 */ | |
2878 #define CAN_FM1R_FBM3 CAN_FM1R_FBM3_Msk /*!<Filter Init Mode bit 3 */ | |
2879 #define CAN_FM1R_FBM4_Pos (4U) | |
2880 #define CAN_FM1R_FBM4_Msk (0x1U << CAN_FM1R_FBM4_Pos) /*!< 0x00000010 */ | |
2881 #define CAN_FM1R_FBM4 CAN_FM1R_FBM4_Msk /*!<Filter Init Mode bit 4 */ | |
2882 #define CAN_FM1R_FBM5_Pos (5U) | |
2883 #define CAN_FM1R_FBM5_Msk (0x1U << CAN_FM1R_FBM5_Pos) /*!< 0x00000020 */ | |
2884 #define CAN_FM1R_FBM5 CAN_FM1R_FBM5_Msk /*!<Filter Init Mode bit 5 */ | |
2885 #define CAN_FM1R_FBM6_Pos (6U) | |
2886 #define CAN_FM1R_FBM6_Msk (0x1U << CAN_FM1R_FBM6_Pos) /*!< 0x00000040 */ | |
2887 #define CAN_FM1R_FBM6 CAN_FM1R_FBM6_Msk /*!<Filter Init Mode bit 6 */ | |
2888 #define CAN_FM1R_FBM7_Pos (7U) | |
2889 #define CAN_FM1R_FBM7_Msk (0x1U << CAN_FM1R_FBM7_Pos) /*!< 0x00000080 */ | |
2890 #define CAN_FM1R_FBM7 CAN_FM1R_FBM7_Msk /*!<Filter Init Mode bit 7 */ | |
2891 #define CAN_FM1R_FBM8_Pos (8U) | |
2892 #define CAN_FM1R_FBM8_Msk (0x1U << CAN_FM1R_FBM8_Pos) /*!< 0x00000100 */ | |
2893 #define CAN_FM1R_FBM8 CAN_FM1R_FBM8_Msk /*!<Filter Init Mode bit 8 */ | |
2894 #define CAN_FM1R_FBM9_Pos (9U) | |
2895 #define CAN_FM1R_FBM9_Msk (0x1U << CAN_FM1R_FBM9_Pos) /*!< 0x00000200 */ | |
2896 #define CAN_FM1R_FBM9 CAN_FM1R_FBM9_Msk /*!<Filter Init Mode bit 9 */ | |
2897 #define CAN_FM1R_FBM10_Pos (10U) | |
2898 #define CAN_FM1R_FBM10_Msk (0x1U << CAN_FM1R_FBM10_Pos) /*!< 0x00000400 */ | |
2899 #define CAN_FM1R_FBM10 CAN_FM1R_FBM10_Msk /*!<Filter Init Mode bit 10 */ | |
2900 #define CAN_FM1R_FBM11_Pos (11U) | |
2901 #define CAN_FM1R_FBM11_Msk (0x1U << CAN_FM1R_FBM11_Pos) /*!< 0x00000800 */ | |
2902 #define CAN_FM1R_FBM11 CAN_FM1R_FBM11_Msk /*!<Filter Init Mode bit 11 */ | |
2903 #define CAN_FM1R_FBM12_Pos (12U) | |
2904 #define CAN_FM1R_FBM12_Msk (0x1U << CAN_FM1R_FBM12_Pos) /*!< 0x00001000 */ | |
2905 #define CAN_FM1R_FBM12 CAN_FM1R_FBM12_Msk /*!<Filter Init Mode bit 12 */ | |
2906 #define CAN_FM1R_FBM13_Pos (13U) | |
2907 #define CAN_FM1R_FBM13_Msk (0x1U << CAN_FM1R_FBM13_Pos) /*!< 0x00002000 */ | |
2908 #define CAN_FM1R_FBM13 CAN_FM1R_FBM13_Msk /*!<Filter Init Mode bit 13 */ | |
2909 | |
2910 /******************* Bit definition for CAN_FS1R register *******************/ | |
2911 #define CAN_FS1R_FSC_Pos (0U) | |
2912 #define CAN_FS1R_FSC_Msk (0x3FFFU << CAN_FS1R_FSC_Pos) /*!< 0x00003FFF */ | |
2913 #define CAN_FS1R_FSC CAN_FS1R_FSC_Msk /*!<Filter Scale Configuration */ | |
2914 #define CAN_FS1R_FSC0_Pos (0U) | |
2915 #define CAN_FS1R_FSC0_Msk (0x1U << CAN_FS1R_FSC0_Pos) /*!< 0x00000001 */ | |
2916 #define CAN_FS1R_FSC0 CAN_FS1R_FSC0_Msk /*!<Filter Scale Configuration bit 0 */ | |
2917 #define CAN_FS1R_FSC1_Pos (1U) | |
2918 #define CAN_FS1R_FSC1_Msk (0x1U << CAN_FS1R_FSC1_Pos) /*!< 0x00000002 */ | |
2919 #define CAN_FS1R_FSC1 CAN_FS1R_FSC1_Msk /*!<Filter Scale Configuration bit 1 */ | |
2920 #define CAN_FS1R_FSC2_Pos (2U) | |
2921 #define CAN_FS1R_FSC2_Msk (0x1U << CAN_FS1R_FSC2_Pos) /*!< 0x00000004 */ | |
2922 #define CAN_FS1R_FSC2 CAN_FS1R_FSC2_Msk /*!<Filter Scale Configuration bit 2 */ | |
2923 #define CAN_FS1R_FSC3_Pos (3U) | |
2924 #define CAN_FS1R_FSC3_Msk (0x1U << CAN_FS1R_FSC3_Pos) /*!< 0x00000008 */ | |
2925 #define CAN_FS1R_FSC3 CAN_FS1R_FSC3_Msk /*!<Filter Scale Configuration bit 3 */ | |
2926 #define CAN_FS1R_FSC4_Pos (4U) | |
2927 #define CAN_FS1R_FSC4_Msk (0x1U << CAN_FS1R_FSC4_Pos) /*!< 0x00000010 */ | |
2928 #define CAN_FS1R_FSC4 CAN_FS1R_FSC4_Msk /*!<Filter Scale Configuration bit 4 */ | |
2929 #define CAN_FS1R_FSC5_Pos (5U) | |
2930 #define CAN_FS1R_FSC5_Msk (0x1U << CAN_FS1R_FSC5_Pos) /*!< 0x00000020 */ | |
2931 #define CAN_FS1R_FSC5 CAN_FS1R_FSC5_Msk /*!<Filter Scale Configuration bit 5 */ | |
2932 #define CAN_FS1R_FSC6_Pos (6U) | |
2933 #define CAN_FS1R_FSC6_Msk (0x1U << CAN_FS1R_FSC6_Pos) /*!< 0x00000040 */ | |
2934 #define CAN_FS1R_FSC6 CAN_FS1R_FSC6_Msk /*!<Filter Scale Configuration bit 6 */ | |
2935 #define CAN_FS1R_FSC7_Pos (7U) | |
2936 #define CAN_FS1R_FSC7_Msk (0x1U << CAN_FS1R_FSC7_Pos) /*!< 0x00000080 */ | |
2937 #define CAN_FS1R_FSC7 CAN_FS1R_FSC7_Msk /*!<Filter Scale Configuration bit 7 */ | |
2938 #define CAN_FS1R_FSC8_Pos (8U) | |
2939 #define CAN_FS1R_FSC8_Msk (0x1U << CAN_FS1R_FSC8_Pos) /*!< 0x00000100 */ | |
2940 #define CAN_FS1R_FSC8 CAN_FS1R_FSC8_Msk /*!<Filter Scale Configuration bit 8 */ | |
2941 #define CAN_FS1R_FSC9_Pos (9U) | |
2942 #define CAN_FS1R_FSC9_Msk (0x1U << CAN_FS1R_FSC9_Pos) /*!< 0x00000200 */ | |
2943 #define CAN_FS1R_FSC9 CAN_FS1R_FSC9_Msk /*!<Filter Scale Configuration bit 9 */ | |
2944 #define CAN_FS1R_FSC10_Pos (10U) | |
2945 #define CAN_FS1R_FSC10_Msk (0x1U << CAN_FS1R_FSC10_Pos) /*!< 0x00000400 */ | |
2946 #define CAN_FS1R_FSC10 CAN_FS1R_FSC10_Msk /*!<Filter Scale Configuration bit 10 */ | |
2947 #define CAN_FS1R_FSC11_Pos (11U) | |
2948 #define CAN_FS1R_FSC11_Msk (0x1U << CAN_FS1R_FSC11_Pos) /*!< 0x00000800 */ | |
2949 #define CAN_FS1R_FSC11 CAN_FS1R_FSC11_Msk /*!<Filter Scale Configuration bit 11 */ | |
2950 #define CAN_FS1R_FSC12_Pos (12U) | |
2951 #define CAN_FS1R_FSC12_Msk (0x1U << CAN_FS1R_FSC12_Pos) /*!< 0x00001000 */ | |
2952 #define CAN_FS1R_FSC12 CAN_FS1R_FSC12_Msk /*!<Filter Scale Configuration bit 12 */ | |
2953 #define CAN_FS1R_FSC13_Pos (13U) | |
2954 #define CAN_FS1R_FSC13_Msk (0x1U << CAN_FS1R_FSC13_Pos) /*!< 0x00002000 */ | |
2955 #define CAN_FS1R_FSC13 CAN_FS1R_FSC13_Msk /*!<Filter Scale Configuration bit 13 */ | |
2956 | |
2957 /****************** Bit definition for CAN_FFA1R register *******************/ | |
2958 #define CAN_FFA1R_FFA_Pos (0U) | |
2959 #define CAN_FFA1R_FFA_Msk (0x3FFFU << CAN_FFA1R_FFA_Pos) /*!< 0x00003FFF */ | |
2960 #define CAN_FFA1R_FFA CAN_FFA1R_FFA_Msk /*!<Filter FIFO Assignment */ | |
2961 #define CAN_FFA1R_FFA0_Pos (0U) | |
2962 #define CAN_FFA1R_FFA0_Msk (0x1U << CAN_FFA1R_FFA0_Pos) /*!< 0x00000001 */ | |
2963 #define CAN_FFA1R_FFA0 CAN_FFA1R_FFA0_Msk /*!<Filter FIFO Assignment for Filter 0 */ | |
2964 #define CAN_FFA1R_FFA1_Pos (1U) | |
2965 #define CAN_FFA1R_FFA1_Msk (0x1U << CAN_FFA1R_FFA1_Pos) /*!< 0x00000002 */ | |
2966 #define CAN_FFA1R_FFA1 CAN_FFA1R_FFA1_Msk /*!<Filter FIFO Assignment for Filter 1 */ | |
2967 #define CAN_FFA1R_FFA2_Pos (2U) | |
2968 #define CAN_FFA1R_FFA2_Msk (0x1U << CAN_FFA1R_FFA2_Pos) /*!< 0x00000004 */ | |
2969 #define CAN_FFA1R_FFA2 CAN_FFA1R_FFA2_Msk /*!<Filter FIFO Assignment for Filter 2 */ | |
2970 #define CAN_FFA1R_FFA3_Pos (3U) | |
2971 #define CAN_FFA1R_FFA3_Msk (0x1U << CAN_FFA1R_FFA3_Pos) /*!< 0x00000008 */ | |
2972 #define CAN_FFA1R_FFA3 CAN_FFA1R_FFA3_Msk /*!<Filter FIFO Assignment for Filter 3 */ | |
2973 #define CAN_FFA1R_FFA4_Pos (4U) | |
2974 #define CAN_FFA1R_FFA4_Msk (0x1U << CAN_FFA1R_FFA4_Pos) /*!< 0x00000010 */ | |
2975 #define CAN_FFA1R_FFA4 CAN_FFA1R_FFA4_Msk /*!<Filter FIFO Assignment for Filter 4 */ | |
2976 #define CAN_FFA1R_FFA5_Pos (5U) | |
2977 #define CAN_FFA1R_FFA5_Msk (0x1U << CAN_FFA1R_FFA5_Pos) /*!< 0x00000020 */ | |
2978 #define CAN_FFA1R_FFA5 CAN_FFA1R_FFA5_Msk /*!<Filter FIFO Assignment for Filter 5 */ | |
2979 #define CAN_FFA1R_FFA6_Pos (6U) | |
2980 #define CAN_FFA1R_FFA6_Msk (0x1U << CAN_FFA1R_FFA6_Pos) /*!< 0x00000040 */ | |
2981 #define CAN_FFA1R_FFA6 CAN_FFA1R_FFA6_Msk /*!<Filter FIFO Assignment for Filter 6 */ | |
2982 #define CAN_FFA1R_FFA7_Pos (7U) | |
2983 #define CAN_FFA1R_FFA7_Msk (0x1U << CAN_FFA1R_FFA7_Pos) /*!< 0x00000080 */ | |
2984 #define CAN_FFA1R_FFA7 CAN_FFA1R_FFA7_Msk /*!<Filter FIFO Assignment for Filter 7 */ | |
2985 #define CAN_FFA1R_FFA8_Pos (8U) | |
2986 #define CAN_FFA1R_FFA8_Msk (0x1U << CAN_FFA1R_FFA8_Pos) /*!< 0x00000100 */ | |
2987 #define CAN_FFA1R_FFA8 CAN_FFA1R_FFA8_Msk /*!<Filter FIFO Assignment for Filter 8 */ | |
2988 #define CAN_FFA1R_FFA9_Pos (9U) | |
2989 #define CAN_FFA1R_FFA9_Msk (0x1U << CAN_FFA1R_FFA9_Pos) /*!< 0x00000200 */ | |
2990 #define CAN_FFA1R_FFA9 CAN_FFA1R_FFA9_Msk /*!<Filter FIFO Assignment for Filter 9 */ | |
2991 #define CAN_FFA1R_FFA10_Pos (10U) | |
2992 #define CAN_FFA1R_FFA10_Msk (0x1U << CAN_FFA1R_FFA10_Pos) /*!< 0x00000400 */ | |
2993 #define CAN_FFA1R_FFA10 CAN_FFA1R_FFA10_Msk /*!<Filter FIFO Assignment for Filter 10 */ | |
2994 #define CAN_FFA1R_FFA11_Pos (11U) | |
2995 #define CAN_FFA1R_FFA11_Msk (0x1U << CAN_FFA1R_FFA11_Pos) /*!< 0x00000800 */ | |
2996 #define CAN_FFA1R_FFA11 CAN_FFA1R_FFA11_Msk /*!<Filter FIFO Assignment for Filter 11 */ | |
2997 #define CAN_FFA1R_FFA12_Pos (12U) | |
2998 #define CAN_FFA1R_FFA12_Msk (0x1U << CAN_FFA1R_FFA12_Pos) /*!< 0x00001000 */ | |
2999 #define CAN_FFA1R_FFA12 CAN_FFA1R_FFA12_Msk /*!<Filter FIFO Assignment for Filter 12 */ | |
3000 #define CAN_FFA1R_FFA13_Pos (13U) | |
3001 #define CAN_FFA1R_FFA13_Msk (0x1U << CAN_FFA1R_FFA13_Pos) /*!< 0x00002000 */ | |
3002 #define CAN_FFA1R_FFA13 CAN_FFA1R_FFA13_Msk /*!<Filter FIFO Assignment for Filter 13 */ | |
3003 | |
3004 /******************* Bit definition for CAN_FA1R register *******************/ | |
3005 #define CAN_FA1R_FACT_Pos (0U) | |
3006 #define CAN_FA1R_FACT_Msk (0x3FFFU << CAN_FA1R_FACT_Pos) /*!< 0x00003FFF */ | |
3007 #define CAN_FA1R_FACT CAN_FA1R_FACT_Msk /*!<Filter Active */ | |
3008 #define CAN_FA1R_FACT0_Pos (0U) | |
3009 #define CAN_FA1R_FACT0_Msk (0x1U << CAN_FA1R_FACT0_Pos) /*!< 0x00000001 */ | |
3010 #define CAN_FA1R_FACT0 CAN_FA1R_FACT0_Msk /*!<Filter 0 Active */ | |
3011 #define CAN_FA1R_FACT1_Pos (1U) | |
3012 #define CAN_FA1R_FACT1_Msk (0x1U << CAN_FA1R_FACT1_Pos) /*!< 0x00000002 */ | |
3013 #define CAN_FA1R_FACT1 CAN_FA1R_FACT1_Msk /*!<Filter 1 Active */ | |
3014 #define CAN_FA1R_FACT2_Pos (2U) | |
3015 #define CAN_FA1R_FACT2_Msk (0x1U << CAN_FA1R_FACT2_Pos) /*!< 0x00000004 */ | |
3016 #define CAN_FA1R_FACT2 CAN_FA1R_FACT2_Msk /*!<Filter 2 Active */ | |
3017 #define CAN_FA1R_FACT3_Pos (3U) | |
3018 #define CAN_FA1R_FACT3_Msk (0x1U << CAN_FA1R_FACT3_Pos) /*!< 0x00000008 */ | |
3019 #define CAN_FA1R_FACT3 CAN_FA1R_FACT3_Msk /*!<Filter 3 Active */ | |
3020 #define CAN_FA1R_FACT4_Pos (4U) | |
3021 #define CAN_FA1R_FACT4_Msk (0x1U << CAN_FA1R_FACT4_Pos) /*!< 0x00000010 */ | |
3022 #define CAN_FA1R_FACT4 CAN_FA1R_FACT4_Msk /*!<Filter 4 Active */ | |
3023 #define CAN_FA1R_FACT5_Pos (5U) | |
3024 #define CAN_FA1R_FACT5_Msk (0x1U << CAN_FA1R_FACT5_Pos) /*!< 0x00000020 */ | |
3025 #define CAN_FA1R_FACT5 CAN_FA1R_FACT5_Msk /*!<Filter 5 Active */ | |
3026 #define CAN_FA1R_FACT6_Pos (6U) | |
3027 #define CAN_FA1R_FACT6_Msk (0x1U << CAN_FA1R_FACT6_Pos) /*!< 0x00000040 */ | |
3028 #define CAN_FA1R_FACT6 CAN_FA1R_FACT6_Msk /*!<Filter 6 Active */ | |
3029 #define CAN_FA1R_FACT7_Pos (7U) | |
3030 #define CAN_FA1R_FACT7_Msk (0x1U << CAN_FA1R_FACT7_Pos) /*!< 0x00000080 */ | |
3031 #define CAN_FA1R_FACT7 CAN_FA1R_FACT7_Msk /*!<Filter 7 Active */ | |
3032 #define CAN_FA1R_FACT8_Pos (8U) | |
3033 #define CAN_FA1R_FACT8_Msk (0x1U << CAN_FA1R_FACT8_Pos) /*!< 0x00000100 */ | |
3034 #define CAN_FA1R_FACT8 CAN_FA1R_FACT8_Msk /*!<Filter 8 Active */ | |
3035 #define CAN_FA1R_FACT9_Pos (9U) | |
3036 #define CAN_FA1R_FACT9_Msk (0x1U << CAN_FA1R_FACT9_Pos) /*!< 0x00000200 */ | |
3037 #define CAN_FA1R_FACT9 CAN_FA1R_FACT9_Msk /*!<Filter 9 Active */ | |
3038 #define CAN_FA1R_FACT10_Pos (10U) | |
3039 #define CAN_FA1R_FACT10_Msk (0x1U << CAN_FA1R_FACT10_Pos) /*!< 0x00000400 */ | |
3040 #define CAN_FA1R_FACT10 CAN_FA1R_FACT10_Msk /*!<Filter 10 Active */ | |
3041 #define CAN_FA1R_FACT11_Pos (11U) | |
3042 #define CAN_FA1R_FACT11_Msk (0x1U << CAN_FA1R_FACT11_Pos) /*!< 0x00000800 */ | |
3043 #define CAN_FA1R_FACT11 CAN_FA1R_FACT11_Msk /*!<Filter 11 Active */ | |
3044 #define CAN_FA1R_FACT12_Pos (12U) | |
3045 #define CAN_FA1R_FACT12_Msk (0x1U << CAN_FA1R_FACT12_Pos) /*!< 0x00001000 */ | |
3046 #define CAN_FA1R_FACT12 CAN_FA1R_FACT12_Msk /*!<Filter 12 Active */ | |
3047 #define CAN_FA1R_FACT13_Pos (13U) | |
3048 #define CAN_FA1R_FACT13_Msk (0x1U << CAN_FA1R_FACT13_Pos) /*!< 0x00002000 */ | |
3049 #define CAN_FA1R_FACT13 CAN_FA1R_FACT13_Msk /*!<Filter 13 Active */ | |
3050 | |
3051 /******************* Bit definition for CAN_F0R1 register *******************/ | |
3052 #define CAN_F0R1_FB0_Pos (0U) | |
3053 #define CAN_F0R1_FB0_Msk (0x1U << CAN_F0R1_FB0_Pos) /*!< 0x00000001 */ | |
3054 #define CAN_F0R1_FB0 CAN_F0R1_FB0_Msk /*!<Filter bit 0 */ | |
3055 #define CAN_F0R1_FB1_Pos (1U) | |
3056 #define CAN_F0R1_FB1_Msk (0x1U << CAN_F0R1_FB1_Pos) /*!< 0x00000002 */ | |
3057 #define CAN_F0R1_FB1 CAN_F0R1_FB1_Msk /*!<Filter bit 1 */ | |
3058 #define CAN_F0R1_FB2_Pos (2U) | |
3059 #define CAN_F0R1_FB2_Msk (0x1U << CAN_F0R1_FB2_Pos) /*!< 0x00000004 */ | |
3060 #define CAN_F0R1_FB2 CAN_F0R1_FB2_Msk /*!<Filter bit 2 */ | |
3061 #define CAN_F0R1_FB3_Pos (3U) | |
3062 #define CAN_F0R1_FB3_Msk (0x1U << CAN_F0R1_FB3_Pos) /*!< 0x00000008 */ | |
3063 #define CAN_F0R1_FB3 CAN_F0R1_FB3_Msk /*!<Filter bit 3 */ | |
3064 #define CAN_F0R1_FB4_Pos (4U) | |
3065 #define CAN_F0R1_FB4_Msk (0x1U << CAN_F0R1_FB4_Pos) /*!< 0x00000010 */ | |
3066 #define CAN_F0R1_FB4 CAN_F0R1_FB4_Msk /*!<Filter bit 4 */ | |
3067 #define CAN_F0R1_FB5_Pos (5U) | |
3068 #define CAN_F0R1_FB5_Msk (0x1U << CAN_F0R1_FB5_Pos) /*!< 0x00000020 */ | |
3069 #define CAN_F0R1_FB5 CAN_F0R1_FB5_Msk /*!<Filter bit 5 */ | |
3070 #define CAN_F0R1_FB6_Pos (6U) | |
3071 #define CAN_F0R1_FB6_Msk (0x1U << CAN_F0R1_FB6_Pos) /*!< 0x00000040 */ | |
3072 #define CAN_F0R1_FB6 CAN_F0R1_FB6_Msk /*!<Filter bit 6 */ | |
3073 #define CAN_F0R1_FB7_Pos (7U) | |
3074 #define CAN_F0R1_FB7_Msk (0x1U << CAN_F0R1_FB7_Pos) /*!< 0x00000080 */ | |
3075 #define CAN_F0R1_FB7 CAN_F0R1_FB7_Msk /*!<Filter bit 7 */ | |
3076 #define CAN_F0R1_FB8_Pos (8U) | |
3077 #define CAN_F0R1_FB8_Msk (0x1U << CAN_F0R1_FB8_Pos) /*!< 0x00000100 */ | |
3078 #define CAN_F0R1_FB8 CAN_F0R1_FB8_Msk /*!<Filter bit 8 */ | |
3079 #define CAN_F0R1_FB9_Pos (9U) | |
3080 #define CAN_F0R1_FB9_Msk (0x1U << CAN_F0R1_FB9_Pos) /*!< 0x00000200 */ | |
3081 #define CAN_F0R1_FB9 CAN_F0R1_FB9_Msk /*!<Filter bit 9 */ | |
3082 #define CAN_F0R1_FB10_Pos (10U) | |
3083 #define CAN_F0R1_FB10_Msk (0x1U << CAN_F0R1_FB10_Pos) /*!< 0x00000400 */ | |
3084 #define CAN_F0R1_FB10 CAN_F0R1_FB10_Msk /*!<Filter bit 10 */ | |
3085 #define CAN_F0R1_FB11_Pos (11U) | |
3086 #define CAN_F0R1_FB11_Msk (0x1U << CAN_F0R1_FB11_Pos) /*!< 0x00000800 */ | |
3087 #define CAN_F0R1_FB11 CAN_F0R1_FB11_Msk /*!<Filter bit 11 */ | |
3088 #define CAN_F0R1_FB12_Pos (12U) | |
3089 #define CAN_F0R1_FB12_Msk (0x1U << CAN_F0R1_FB12_Pos) /*!< 0x00001000 */ | |
3090 #define CAN_F0R1_FB12 CAN_F0R1_FB12_Msk /*!<Filter bit 12 */ | |
3091 #define CAN_F0R1_FB13_Pos (13U) | |
3092 #define CAN_F0R1_FB13_Msk (0x1U << CAN_F0R1_FB13_Pos) /*!< 0x00002000 */ | |
3093 #define CAN_F0R1_FB13 CAN_F0R1_FB13_Msk /*!<Filter bit 13 */ | |
3094 #define CAN_F0R1_FB14_Pos (14U) | |
3095 #define CAN_F0R1_FB14_Msk (0x1U << CAN_F0R1_FB14_Pos) /*!< 0x00004000 */ | |
3096 #define CAN_F0R1_FB14 CAN_F0R1_FB14_Msk /*!<Filter bit 14 */ | |
3097 #define CAN_F0R1_FB15_Pos (15U) | |
3098 #define CAN_F0R1_FB15_Msk (0x1U << CAN_F0R1_FB15_Pos) /*!< 0x00008000 */ | |
3099 #define CAN_F0R1_FB15 CAN_F0R1_FB15_Msk /*!<Filter bit 15 */ | |
3100 #define CAN_F0R1_FB16_Pos (16U) | |
3101 #define CAN_F0R1_FB16_Msk (0x1U << CAN_F0R1_FB16_Pos) /*!< 0x00010000 */ | |
3102 #define CAN_F0R1_FB16 CAN_F0R1_FB16_Msk /*!<Filter bit 16 */ | |
3103 #define CAN_F0R1_FB17_Pos (17U) | |
3104 #define CAN_F0R1_FB17_Msk (0x1U << CAN_F0R1_FB17_Pos) /*!< 0x00020000 */ | |
3105 #define CAN_F0R1_FB17 CAN_F0R1_FB17_Msk /*!<Filter bit 17 */ | |
3106 #define CAN_F0R1_FB18_Pos (18U) | |
3107 #define CAN_F0R1_FB18_Msk (0x1U << CAN_F0R1_FB18_Pos) /*!< 0x00040000 */ | |
3108 #define CAN_F0R1_FB18 CAN_F0R1_FB18_Msk /*!<Filter bit 18 */ | |
3109 #define CAN_F0R1_FB19_Pos (19U) | |
3110 #define CAN_F0R1_FB19_Msk (0x1U << CAN_F0R1_FB19_Pos) /*!< 0x00080000 */ | |
3111 #define CAN_F0R1_FB19 CAN_F0R1_FB19_Msk /*!<Filter bit 19 */ | |
3112 #define CAN_F0R1_FB20_Pos (20U) | |
3113 #define CAN_F0R1_FB20_Msk (0x1U << CAN_F0R1_FB20_Pos) /*!< 0x00100000 */ | |
3114 #define CAN_F0R1_FB20 CAN_F0R1_FB20_Msk /*!<Filter bit 20 */ | |
3115 #define CAN_F0R1_FB21_Pos (21U) | |
3116 #define CAN_F0R1_FB21_Msk (0x1U << CAN_F0R1_FB21_Pos) /*!< 0x00200000 */ | |
3117 #define CAN_F0R1_FB21 CAN_F0R1_FB21_Msk /*!<Filter bit 21 */ | |
3118 #define CAN_F0R1_FB22_Pos (22U) | |
3119 #define CAN_F0R1_FB22_Msk (0x1U << CAN_F0R1_FB22_Pos) /*!< 0x00400000 */ | |
3120 #define CAN_F0R1_FB22 CAN_F0R1_FB22_Msk /*!<Filter bit 22 */ | |
3121 #define CAN_F0R1_FB23_Pos (23U) | |
3122 #define CAN_F0R1_FB23_Msk (0x1U << CAN_F0R1_FB23_Pos) /*!< 0x00800000 */ | |
3123 #define CAN_F0R1_FB23 CAN_F0R1_FB23_Msk /*!<Filter bit 23 */ | |
3124 #define CAN_F0R1_FB24_Pos (24U) | |
3125 #define CAN_F0R1_FB24_Msk (0x1U << CAN_F0R1_FB24_Pos) /*!< 0x01000000 */ | |
3126 #define CAN_F0R1_FB24 CAN_F0R1_FB24_Msk /*!<Filter bit 24 */ | |
3127 #define CAN_F0R1_FB25_Pos (25U) | |
3128 #define CAN_F0R1_FB25_Msk (0x1U << CAN_F0R1_FB25_Pos) /*!< 0x02000000 */ | |
3129 #define CAN_F0R1_FB25 CAN_F0R1_FB25_Msk /*!<Filter bit 25 */ | |
3130 #define CAN_F0R1_FB26_Pos (26U) | |
3131 #define CAN_F0R1_FB26_Msk (0x1U << CAN_F0R1_FB26_Pos) /*!< 0x04000000 */ | |
3132 #define CAN_F0R1_FB26 CAN_F0R1_FB26_Msk /*!<Filter bit 26 */ | |
3133 #define CAN_F0R1_FB27_Pos (27U) | |
3134 #define CAN_F0R1_FB27_Msk (0x1U << CAN_F0R1_FB27_Pos) /*!< 0x08000000 */ | |
3135 #define CAN_F0R1_FB27 CAN_F0R1_FB27_Msk /*!<Filter bit 27 */ | |
3136 #define CAN_F0R1_FB28_Pos (28U) | |
3137 #define CAN_F0R1_FB28_Msk (0x1U << CAN_F0R1_FB28_Pos) /*!< 0x10000000 */ | |
3138 #define CAN_F0R1_FB28 CAN_F0R1_FB28_Msk /*!<Filter bit 28 */ | |
3139 #define CAN_F0R1_FB29_Pos (29U) | |
3140 #define CAN_F0R1_FB29_Msk (0x1U << CAN_F0R1_FB29_Pos) /*!< 0x20000000 */ | |
3141 #define CAN_F0R1_FB29 CAN_F0R1_FB29_Msk /*!<Filter bit 29 */ | |
3142 #define CAN_F0R1_FB30_Pos (30U) | |
3143 #define CAN_F0R1_FB30_Msk (0x1U << CAN_F0R1_FB30_Pos) /*!< 0x40000000 */ | |
3144 #define CAN_F0R1_FB30 CAN_F0R1_FB30_Msk /*!<Filter bit 30 */ | |
3145 #define CAN_F0R1_FB31_Pos (31U) | |
3146 #define CAN_F0R1_FB31_Msk (0x1U << CAN_F0R1_FB31_Pos) /*!< 0x80000000 */ | |
3147 #define CAN_F0R1_FB31 CAN_F0R1_FB31_Msk /*!<Filter bit 31 */ | |
3148 | |
3149 /******************* Bit definition for CAN_F1R1 register *******************/ | |
3150 #define CAN_F1R1_FB0_Pos (0U) | |
3151 #define CAN_F1R1_FB0_Msk (0x1U << CAN_F1R1_FB0_Pos) /*!< 0x00000001 */ | |
3152 #define CAN_F1R1_FB0 CAN_F1R1_FB0_Msk /*!<Filter bit 0 */ | |
3153 #define CAN_F1R1_FB1_Pos (1U) | |
3154 #define CAN_F1R1_FB1_Msk (0x1U << CAN_F1R1_FB1_Pos) /*!< 0x00000002 */ | |
3155 #define CAN_F1R1_FB1 CAN_F1R1_FB1_Msk /*!<Filter bit 1 */ | |
3156 #define CAN_F1R1_FB2_Pos (2U) | |
3157 #define CAN_F1R1_FB2_Msk (0x1U << CAN_F1R1_FB2_Pos) /*!< 0x00000004 */ | |
3158 #define CAN_F1R1_FB2 CAN_F1R1_FB2_Msk /*!<Filter bit 2 */ | |
3159 #define CAN_F1R1_FB3_Pos (3U) | |
3160 #define CAN_F1R1_FB3_Msk (0x1U << CAN_F1R1_FB3_Pos) /*!< 0x00000008 */ | |
3161 #define CAN_F1R1_FB3 CAN_F1R1_FB3_Msk /*!<Filter bit 3 */ | |
3162 #define CAN_F1R1_FB4_Pos (4U) | |
3163 #define CAN_F1R1_FB4_Msk (0x1U << CAN_F1R1_FB4_Pos) /*!< 0x00000010 */ | |
3164 #define CAN_F1R1_FB4 CAN_F1R1_FB4_Msk /*!<Filter bit 4 */ | |
3165 #define CAN_F1R1_FB5_Pos (5U) | |
3166 #define CAN_F1R1_FB5_Msk (0x1U << CAN_F1R1_FB5_Pos) /*!< 0x00000020 */ | |
3167 #define CAN_F1R1_FB5 CAN_F1R1_FB5_Msk /*!<Filter bit 5 */ | |
3168 #define CAN_F1R1_FB6_Pos (6U) | |
3169 #define CAN_F1R1_FB6_Msk (0x1U << CAN_F1R1_FB6_Pos) /*!< 0x00000040 */ | |
3170 #define CAN_F1R1_FB6 CAN_F1R1_FB6_Msk /*!<Filter bit 6 */ | |
3171 #define CAN_F1R1_FB7_Pos (7U) | |
3172 #define CAN_F1R1_FB7_Msk (0x1U << CAN_F1R1_FB7_Pos) /*!< 0x00000080 */ | |
3173 #define CAN_F1R1_FB7 CAN_F1R1_FB7_Msk /*!<Filter bit 7 */ | |
3174 #define CAN_F1R1_FB8_Pos (8U) | |
3175 #define CAN_F1R1_FB8_Msk (0x1U << CAN_F1R1_FB8_Pos) /*!< 0x00000100 */ | |
3176 #define CAN_F1R1_FB8 CAN_F1R1_FB8_Msk /*!<Filter bit 8 */ | |
3177 #define CAN_F1R1_FB9_Pos (9U) | |
3178 #define CAN_F1R1_FB9_Msk (0x1U << CAN_F1R1_FB9_Pos) /*!< 0x00000200 */ | |
3179 #define CAN_F1R1_FB9 CAN_F1R1_FB9_Msk /*!<Filter bit 9 */ | |
3180 #define CAN_F1R1_FB10_Pos (10U) | |
3181 #define CAN_F1R1_FB10_Msk (0x1U << CAN_F1R1_FB10_Pos) /*!< 0x00000400 */ | |
3182 #define CAN_F1R1_FB10 CAN_F1R1_FB10_Msk /*!<Filter bit 10 */ | |
3183 #define CAN_F1R1_FB11_Pos (11U) | |
3184 #define CAN_F1R1_FB11_Msk (0x1U << CAN_F1R1_FB11_Pos) /*!< 0x00000800 */ | |
3185 #define CAN_F1R1_FB11 CAN_F1R1_FB11_Msk /*!<Filter bit 11 */ | |
3186 #define CAN_F1R1_FB12_Pos (12U) | |
3187 #define CAN_F1R1_FB12_Msk (0x1U << CAN_F1R1_FB12_Pos) /*!< 0x00001000 */ | |
3188 #define CAN_F1R1_FB12 CAN_F1R1_FB12_Msk /*!<Filter bit 12 */ | |
3189 #define CAN_F1R1_FB13_Pos (13U) | |
3190 #define CAN_F1R1_FB13_Msk (0x1U << CAN_F1R1_FB13_Pos) /*!< 0x00002000 */ | |
3191 #define CAN_F1R1_FB13 CAN_F1R1_FB13_Msk /*!<Filter bit 13 */ | |
3192 #define CAN_F1R1_FB14_Pos (14U) | |
3193 #define CAN_F1R1_FB14_Msk (0x1U << CAN_F1R1_FB14_Pos) /*!< 0x00004000 */ | |
3194 #define CAN_F1R1_FB14 CAN_F1R1_FB14_Msk /*!<Filter bit 14 */ | |
3195 #define CAN_F1R1_FB15_Pos (15U) | |
3196 #define CAN_F1R1_FB15_Msk (0x1U << CAN_F1R1_FB15_Pos) /*!< 0x00008000 */ | |
3197 #define CAN_F1R1_FB15 CAN_F1R1_FB15_Msk /*!<Filter bit 15 */ | |
3198 #define CAN_F1R1_FB16_Pos (16U) | |
3199 #define CAN_F1R1_FB16_Msk (0x1U << CAN_F1R1_FB16_Pos) /*!< 0x00010000 */ | |
3200 #define CAN_F1R1_FB16 CAN_F1R1_FB16_Msk /*!<Filter bit 16 */ | |
3201 #define CAN_F1R1_FB17_Pos (17U) | |
3202 #define CAN_F1R1_FB17_Msk (0x1U << CAN_F1R1_FB17_Pos) /*!< 0x00020000 */ | |
3203 #define CAN_F1R1_FB17 CAN_F1R1_FB17_Msk /*!<Filter bit 17 */ | |
3204 #define CAN_F1R1_FB18_Pos (18U) | |
3205 #define CAN_F1R1_FB18_Msk (0x1U << CAN_F1R1_FB18_Pos) /*!< 0x00040000 */ | |
3206 #define CAN_F1R1_FB18 CAN_F1R1_FB18_Msk /*!<Filter bit 18 */ | |
3207 #define CAN_F1R1_FB19_Pos (19U) | |
3208 #define CAN_F1R1_FB19_Msk (0x1U << CAN_F1R1_FB19_Pos) /*!< 0x00080000 */ | |
3209 #define CAN_F1R1_FB19 CAN_F1R1_FB19_Msk /*!<Filter bit 19 */ | |
3210 #define CAN_F1R1_FB20_Pos (20U) | |
3211 #define CAN_F1R1_FB20_Msk (0x1U << CAN_F1R1_FB20_Pos) /*!< 0x00100000 */ | |
3212 #define CAN_F1R1_FB20 CAN_F1R1_FB20_Msk /*!<Filter bit 20 */ | |
3213 #define CAN_F1R1_FB21_Pos (21U) | |
3214 #define CAN_F1R1_FB21_Msk (0x1U << CAN_F1R1_FB21_Pos) /*!< 0x00200000 */ | |
3215 #define CAN_F1R1_FB21 CAN_F1R1_FB21_Msk /*!<Filter bit 21 */ | |
3216 #define CAN_F1R1_FB22_Pos (22U) | |
3217 #define CAN_F1R1_FB22_Msk (0x1U << CAN_F1R1_FB22_Pos) /*!< 0x00400000 */ | |
3218 #define CAN_F1R1_FB22 CAN_F1R1_FB22_Msk /*!<Filter bit 22 */ | |
3219 #define CAN_F1R1_FB23_Pos (23U) | |
3220 #define CAN_F1R1_FB23_Msk (0x1U << CAN_F1R1_FB23_Pos) /*!< 0x00800000 */ | |
3221 #define CAN_F1R1_FB23 CAN_F1R1_FB23_Msk /*!<Filter bit 23 */ | |
3222 #define CAN_F1R1_FB24_Pos (24U) | |
3223 #define CAN_F1R1_FB24_Msk (0x1U << CAN_F1R1_FB24_Pos) /*!< 0x01000000 */ | |
3224 #define CAN_F1R1_FB24 CAN_F1R1_FB24_Msk /*!<Filter bit 24 */ | |
3225 #define CAN_F1R1_FB25_Pos (25U) | |
3226 #define CAN_F1R1_FB25_Msk (0x1U << CAN_F1R1_FB25_Pos) /*!< 0x02000000 */ | |
3227 #define CAN_F1R1_FB25 CAN_F1R1_FB25_Msk /*!<Filter bit 25 */ | |
3228 #define CAN_F1R1_FB26_Pos (26U) | |
3229 #define CAN_F1R1_FB26_Msk (0x1U << CAN_F1R1_FB26_Pos) /*!< 0x04000000 */ | |
3230 #define CAN_F1R1_FB26 CAN_F1R1_FB26_Msk /*!<Filter bit 26 */ | |
3231 #define CAN_F1R1_FB27_Pos (27U) | |
3232 #define CAN_F1R1_FB27_Msk (0x1U << CAN_F1R1_FB27_Pos) /*!< 0x08000000 */ | |
3233 #define CAN_F1R1_FB27 CAN_F1R1_FB27_Msk /*!<Filter bit 27 */ | |
3234 #define CAN_F1R1_FB28_Pos (28U) | |
3235 #define CAN_F1R1_FB28_Msk (0x1U << CAN_F1R1_FB28_Pos) /*!< 0x10000000 */ | |
3236 #define CAN_F1R1_FB28 CAN_F1R1_FB28_Msk /*!<Filter bit 28 */ | |
3237 #define CAN_F1R1_FB29_Pos (29U) | |
3238 #define CAN_F1R1_FB29_Msk (0x1U << CAN_F1R1_FB29_Pos) /*!< 0x20000000 */ | |
3239 #define CAN_F1R1_FB29 CAN_F1R1_FB29_Msk /*!<Filter bit 29 */ | |
3240 #define CAN_F1R1_FB30_Pos (30U) | |
3241 #define CAN_F1R1_FB30_Msk (0x1U << CAN_F1R1_FB30_Pos) /*!< 0x40000000 */ | |
3242 #define CAN_F1R1_FB30 CAN_F1R1_FB30_Msk /*!<Filter bit 30 */ | |
3243 #define CAN_F1R1_FB31_Pos (31U) | |
3244 #define CAN_F1R1_FB31_Msk (0x1U << CAN_F1R1_FB31_Pos) /*!< 0x80000000 */ | |
3245 #define CAN_F1R1_FB31 CAN_F1R1_FB31_Msk /*!<Filter bit 31 */ | |
3246 | |
3247 /******************* Bit definition for CAN_F2R1 register *******************/ | |
3248 #define CAN_F2R1_FB0_Pos (0U) | |
3249 #define CAN_F2R1_FB0_Msk (0x1U << CAN_F2R1_FB0_Pos) /*!< 0x00000001 */ | |
3250 #define CAN_F2R1_FB0 CAN_F2R1_FB0_Msk /*!<Filter bit 0 */ | |
3251 #define CAN_F2R1_FB1_Pos (1U) | |
3252 #define CAN_F2R1_FB1_Msk (0x1U << CAN_F2R1_FB1_Pos) /*!< 0x00000002 */ | |
3253 #define CAN_F2R1_FB1 CAN_F2R1_FB1_Msk /*!<Filter bit 1 */ | |
3254 #define CAN_F2R1_FB2_Pos (2U) | |
3255 #define CAN_F2R1_FB2_Msk (0x1U << CAN_F2R1_FB2_Pos) /*!< 0x00000004 */ | |
3256 #define CAN_F2R1_FB2 CAN_F2R1_FB2_Msk /*!<Filter bit 2 */ | |
3257 #define CAN_F2R1_FB3_Pos (3U) | |
3258 #define CAN_F2R1_FB3_Msk (0x1U << CAN_F2R1_FB3_Pos) /*!< 0x00000008 */ | |
3259 #define CAN_F2R1_FB3 CAN_F2R1_FB3_Msk /*!<Filter bit 3 */ | |
3260 #define CAN_F2R1_FB4_Pos (4U) | |
3261 #define CAN_F2R1_FB4_Msk (0x1U << CAN_F2R1_FB4_Pos) /*!< 0x00000010 */ | |
3262 #define CAN_F2R1_FB4 CAN_F2R1_FB4_Msk /*!<Filter bit 4 */ | |
3263 #define CAN_F2R1_FB5_Pos (5U) | |
3264 #define CAN_F2R1_FB5_Msk (0x1U << CAN_F2R1_FB5_Pos) /*!< 0x00000020 */ | |
3265 #define CAN_F2R1_FB5 CAN_F2R1_FB5_Msk /*!<Filter bit 5 */ | |
3266 #define CAN_F2R1_FB6_Pos (6U) | |
3267 #define CAN_F2R1_FB6_Msk (0x1U << CAN_F2R1_FB6_Pos) /*!< 0x00000040 */ | |
3268 #define CAN_F2R1_FB6 CAN_F2R1_FB6_Msk /*!<Filter bit 6 */ | |
3269 #define CAN_F2R1_FB7_Pos (7U) | |
3270 #define CAN_F2R1_FB7_Msk (0x1U << CAN_F2R1_FB7_Pos) /*!< 0x00000080 */ | |
3271 #define CAN_F2R1_FB7 CAN_F2R1_FB7_Msk /*!<Filter bit 7 */ | |
3272 #define CAN_F2R1_FB8_Pos (8U) | |
3273 #define CAN_F2R1_FB8_Msk (0x1U << CAN_F2R1_FB8_Pos) /*!< 0x00000100 */ | |
3274 #define CAN_F2R1_FB8 CAN_F2R1_FB8_Msk /*!<Filter bit 8 */ | |
3275 #define CAN_F2R1_FB9_Pos (9U) | |
3276 #define CAN_F2R1_FB9_Msk (0x1U << CAN_F2R1_FB9_Pos) /*!< 0x00000200 */ | |
3277 #define CAN_F2R1_FB9 CAN_F2R1_FB9_Msk /*!<Filter bit 9 */ | |
3278 #define CAN_F2R1_FB10_Pos (10U) | |
3279 #define CAN_F2R1_FB10_Msk (0x1U << CAN_F2R1_FB10_Pos) /*!< 0x00000400 */ | |
3280 #define CAN_F2R1_FB10 CAN_F2R1_FB10_Msk /*!<Filter bit 10 */ | |
3281 #define CAN_F2R1_FB11_Pos (11U) | |
3282 #define CAN_F2R1_FB11_Msk (0x1U << CAN_F2R1_FB11_Pos) /*!< 0x00000800 */ | |
3283 #define CAN_F2R1_FB11 CAN_F2R1_FB11_Msk /*!<Filter bit 11 */ | |
3284 #define CAN_F2R1_FB12_Pos (12U) | |
3285 #define CAN_F2R1_FB12_Msk (0x1U << CAN_F2R1_FB12_Pos) /*!< 0x00001000 */ | |
3286 #define CAN_F2R1_FB12 CAN_F2R1_FB12_Msk /*!<Filter bit 12 */ | |
3287 #define CAN_F2R1_FB13_Pos (13U) | |
3288 #define CAN_F2R1_FB13_Msk (0x1U << CAN_F2R1_FB13_Pos) /*!< 0x00002000 */ | |
3289 #define CAN_F2R1_FB13 CAN_F2R1_FB13_Msk /*!<Filter bit 13 */ | |
3290 #define CAN_F2R1_FB14_Pos (14U) | |
3291 #define CAN_F2R1_FB14_Msk (0x1U << CAN_F2R1_FB14_Pos) /*!< 0x00004000 */ | |
3292 #define CAN_F2R1_FB14 CAN_F2R1_FB14_Msk /*!<Filter bit 14 */ | |
3293 #define CAN_F2R1_FB15_Pos (15U) | |
3294 #define CAN_F2R1_FB15_Msk (0x1U << CAN_F2R1_FB15_Pos) /*!< 0x00008000 */ | |
3295 #define CAN_F2R1_FB15 CAN_F2R1_FB15_Msk /*!<Filter bit 15 */ | |
3296 #define CAN_F2R1_FB16_Pos (16U) | |
3297 #define CAN_F2R1_FB16_Msk (0x1U << CAN_F2R1_FB16_Pos) /*!< 0x00010000 */ | |
3298 #define CAN_F2R1_FB16 CAN_F2R1_FB16_Msk /*!<Filter bit 16 */ | |
3299 #define CAN_F2R1_FB17_Pos (17U) | |
3300 #define CAN_F2R1_FB17_Msk (0x1U << CAN_F2R1_FB17_Pos) /*!< 0x00020000 */ | |
3301 #define CAN_F2R1_FB17 CAN_F2R1_FB17_Msk /*!<Filter bit 17 */ | |
3302 #define CAN_F2R1_FB18_Pos (18U) | |
3303 #define CAN_F2R1_FB18_Msk (0x1U << CAN_F2R1_FB18_Pos) /*!< 0x00040000 */ | |
3304 #define CAN_F2R1_FB18 CAN_F2R1_FB18_Msk /*!<Filter bit 18 */ | |
3305 #define CAN_F2R1_FB19_Pos (19U) | |
3306 #define CAN_F2R1_FB19_Msk (0x1U << CAN_F2R1_FB19_Pos) /*!< 0x00080000 */ | |
3307 #define CAN_F2R1_FB19 CAN_F2R1_FB19_Msk /*!<Filter bit 19 */ | |
3308 #define CAN_F2R1_FB20_Pos (20U) | |
3309 #define CAN_F2R1_FB20_Msk (0x1U << CAN_F2R1_FB20_Pos) /*!< 0x00100000 */ | |
3310 #define CAN_F2R1_FB20 CAN_F2R1_FB20_Msk /*!<Filter bit 20 */ | |
3311 #define CAN_F2R1_FB21_Pos (21U) | |
3312 #define CAN_F2R1_FB21_Msk (0x1U << CAN_F2R1_FB21_Pos) /*!< 0x00200000 */ | |
3313 #define CAN_F2R1_FB21 CAN_F2R1_FB21_Msk /*!<Filter bit 21 */ | |
3314 #define CAN_F2R1_FB22_Pos (22U) | |
3315 #define CAN_F2R1_FB22_Msk (0x1U << CAN_F2R1_FB22_Pos) /*!< 0x00400000 */ | |
3316 #define CAN_F2R1_FB22 CAN_F2R1_FB22_Msk /*!<Filter bit 22 */ | |
3317 #define CAN_F2R1_FB23_Pos (23U) | |
3318 #define CAN_F2R1_FB23_Msk (0x1U << CAN_F2R1_FB23_Pos) /*!< 0x00800000 */ | |
3319 #define CAN_F2R1_FB23 CAN_F2R1_FB23_Msk /*!<Filter bit 23 */ | |
3320 #define CAN_F2R1_FB24_Pos (24U) | |
3321 #define CAN_F2R1_FB24_Msk (0x1U << CAN_F2R1_FB24_Pos) /*!< 0x01000000 */ | |
3322 #define CAN_F2R1_FB24 CAN_F2R1_FB24_Msk /*!<Filter bit 24 */ | |
3323 #define CAN_F2R1_FB25_Pos (25U) | |
3324 #define CAN_F2R1_FB25_Msk (0x1U << CAN_F2R1_FB25_Pos) /*!< 0x02000000 */ | |
3325 #define CAN_F2R1_FB25 CAN_F2R1_FB25_Msk /*!<Filter bit 25 */ | |
3326 #define CAN_F2R1_FB26_Pos (26U) | |
3327 #define CAN_F2R1_FB26_Msk (0x1U << CAN_F2R1_FB26_Pos) /*!< 0x04000000 */ | |
3328 #define CAN_F2R1_FB26 CAN_F2R1_FB26_Msk /*!<Filter bit 26 */ | |
3329 #define CAN_F2R1_FB27_Pos (27U) | |
3330 #define CAN_F2R1_FB27_Msk (0x1U << CAN_F2R1_FB27_Pos) /*!< 0x08000000 */ | |
3331 #define CAN_F2R1_FB27 CAN_F2R1_FB27_Msk /*!<Filter bit 27 */ | |
3332 #define CAN_F2R1_FB28_Pos (28U) | |
3333 #define CAN_F2R1_FB28_Msk (0x1U << CAN_F2R1_FB28_Pos) /*!< 0x10000000 */ | |
3334 #define CAN_F2R1_FB28 CAN_F2R1_FB28_Msk /*!<Filter bit 28 */ | |
3335 #define CAN_F2R1_FB29_Pos (29U) | |
3336 #define CAN_F2R1_FB29_Msk (0x1U << CAN_F2R1_FB29_Pos) /*!< 0x20000000 */ | |
3337 #define CAN_F2R1_FB29 CAN_F2R1_FB29_Msk /*!<Filter bit 29 */ | |
3338 #define CAN_F2R1_FB30_Pos (30U) | |
3339 #define CAN_F2R1_FB30_Msk (0x1U << CAN_F2R1_FB30_Pos) /*!< 0x40000000 */ | |
3340 #define CAN_F2R1_FB30 CAN_F2R1_FB30_Msk /*!<Filter bit 30 */ | |
3341 #define CAN_F2R1_FB31_Pos (31U) | |
3342 #define CAN_F2R1_FB31_Msk (0x1U << CAN_F2R1_FB31_Pos) /*!< 0x80000000 */ | |
3343 #define CAN_F2R1_FB31 CAN_F2R1_FB31_Msk /*!<Filter bit 31 */ | |
3344 | |
3345 /******************* Bit definition for CAN_F3R1 register *******************/ | |
3346 #define CAN_F3R1_FB0_Pos (0U) | |
3347 #define CAN_F3R1_FB0_Msk (0x1U << CAN_F3R1_FB0_Pos) /*!< 0x00000001 */ | |
3348 #define CAN_F3R1_FB0 CAN_F3R1_FB0_Msk /*!<Filter bit 0 */ | |
3349 #define CAN_F3R1_FB1_Pos (1U) | |
3350 #define CAN_F3R1_FB1_Msk (0x1U << CAN_F3R1_FB1_Pos) /*!< 0x00000002 */ | |
3351 #define CAN_F3R1_FB1 CAN_F3R1_FB1_Msk /*!<Filter bit 1 */ | |
3352 #define CAN_F3R1_FB2_Pos (2U) | |
3353 #define CAN_F3R1_FB2_Msk (0x1U << CAN_F3R1_FB2_Pos) /*!< 0x00000004 */ | |
3354 #define CAN_F3R1_FB2 CAN_F3R1_FB2_Msk /*!<Filter bit 2 */ | |
3355 #define CAN_F3R1_FB3_Pos (3U) | |
3356 #define CAN_F3R1_FB3_Msk (0x1U << CAN_F3R1_FB3_Pos) /*!< 0x00000008 */ | |
3357 #define CAN_F3R1_FB3 CAN_F3R1_FB3_Msk /*!<Filter bit 3 */ | |
3358 #define CAN_F3R1_FB4_Pos (4U) | |
3359 #define CAN_F3R1_FB4_Msk (0x1U << CAN_F3R1_FB4_Pos) /*!< 0x00000010 */ | |
3360 #define CAN_F3R1_FB4 CAN_F3R1_FB4_Msk /*!<Filter bit 4 */ | |
3361 #define CAN_F3R1_FB5_Pos (5U) | |
3362 #define CAN_F3R1_FB5_Msk (0x1U << CAN_F3R1_FB5_Pos) /*!< 0x00000020 */ | |
3363 #define CAN_F3R1_FB5 CAN_F3R1_FB5_Msk /*!<Filter bit 5 */ | |
3364 #define CAN_F3R1_FB6_Pos (6U) | |
3365 #define CAN_F3R1_FB6_Msk (0x1U << CAN_F3R1_FB6_Pos) /*!< 0x00000040 */ | |
3366 #define CAN_F3R1_FB6 CAN_F3R1_FB6_Msk /*!<Filter bit 6 */ | |
3367 #define CAN_F3R1_FB7_Pos (7U) | |
3368 #define CAN_F3R1_FB7_Msk (0x1U << CAN_F3R1_FB7_Pos) /*!< 0x00000080 */ | |
3369 #define CAN_F3R1_FB7 CAN_F3R1_FB7_Msk /*!<Filter bit 7 */ | |
3370 #define CAN_F3R1_FB8_Pos (8U) | |
3371 #define CAN_F3R1_FB8_Msk (0x1U << CAN_F3R1_FB8_Pos) /*!< 0x00000100 */ | |
3372 #define CAN_F3R1_FB8 CAN_F3R1_FB8_Msk /*!<Filter bit 8 */ | |
3373 #define CAN_F3R1_FB9_Pos (9U) | |
3374 #define CAN_F3R1_FB9_Msk (0x1U << CAN_F3R1_FB9_Pos) /*!< 0x00000200 */ | |
3375 #define CAN_F3R1_FB9 CAN_F3R1_FB9_Msk /*!<Filter bit 9 */ | |
3376 #define CAN_F3R1_FB10_Pos (10U) | |
3377 #define CAN_F3R1_FB10_Msk (0x1U << CAN_F3R1_FB10_Pos) /*!< 0x00000400 */ | |
3378 #define CAN_F3R1_FB10 CAN_F3R1_FB10_Msk /*!<Filter bit 10 */ | |
3379 #define CAN_F3R1_FB11_Pos (11U) | |
3380 #define CAN_F3R1_FB11_Msk (0x1U << CAN_F3R1_FB11_Pos) /*!< 0x00000800 */ | |
3381 #define CAN_F3R1_FB11 CAN_F3R1_FB11_Msk /*!<Filter bit 11 */ | |
3382 #define CAN_F3R1_FB12_Pos (12U) | |
3383 #define CAN_F3R1_FB12_Msk (0x1U << CAN_F3R1_FB12_Pos) /*!< 0x00001000 */ | |
3384 #define CAN_F3R1_FB12 CAN_F3R1_FB12_Msk /*!<Filter bit 12 */ | |
3385 #define CAN_F3R1_FB13_Pos (13U) | |
3386 #define CAN_F3R1_FB13_Msk (0x1U << CAN_F3R1_FB13_Pos) /*!< 0x00002000 */ | |
3387 #define CAN_F3R1_FB13 CAN_F3R1_FB13_Msk /*!<Filter bit 13 */ | |
3388 #define CAN_F3R1_FB14_Pos (14U) | |
3389 #define CAN_F3R1_FB14_Msk (0x1U << CAN_F3R1_FB14_Pos) /*!< 0x00004000 */ | |
3390 #define CAN_F3R1_FB14 CAN_F3R1_FB14_Msk /*!<Filter bit 14 */ | |
3391 #define CAN_F3R1_FB15_Pos (15U) | |
3392 #define CAN_F3R1_FB15_Msk (0x1U << CAN_F3R1_FB15_Pos) /*!< 0x00008000 */ | |
3393 #define CAN_F3R1_FB15 CAN_F3R1_FB15_Msk /*!<Filter bit 15 */ | |
3394 #define CAN_F3R1_FB16_Pos (16U) | |
3395 #define CAN_F3R1_FB16_Msk (0x1U << CAN_F3R1_FB16_Pos) /*!< 0x00010000 */ | |
3396 #define CAN_F3R1_FB16 CAN_F3R1_FB16_Msk /*!<Filter bit 16 */ | |
3397 #define CAN_F3R1_FB17_Pos (17U) | |
3398 #define CAN_F3R1_FB17_Msk (0x1U << CAN_F3R1_FB17_Pos) /*!< 0x00020000 */ | |
3399 #define CAN_F3R1_FB17 CAN_F3R1_FB17_Msk /*!<Filter bit 17 */ | |
3400 #define CAN_F3R1_FB18_Pos (18U) | |
3401 #define CAN_F3R1_FB18_Msk (0x1U << CAN_F3R1_FB18_Pos) /*!< 0x00040000 */ | |
3402 #define CAN_F3R1_FB18 CAN_F3R1_FB18_Msk /*!<Filter bit 18 */ | |
3403 #define CAN_F3R1_FB19_Pos (19U) | |
3404 #define CAN_F3R1_FB19_Msk (0x1U << CAN_F3R1_FB19_Pos) /*!< 0x00080000 */ | |
3405 #define CAN_F3R1_FB19 CAN_F3R1_FB19_Msk /*!<Filter bit 19 */ | |
3406 #define CAN_F3R1_FB20_Pos (20U) | |
3407 #define CAN_F3R1_FB20_Msk (0x1U << CAN_F3R1_FB20_Pos) /*!< 0x00100000 */ | |
3408 #define CAN_F3R1_FB20 CAN_F3R1_FB20_Msk /*!<Filter bit 20 */ | |
3409 #define CAN_F3R1_FB21_Pos (21U) | |
3410 #define CAN_F3R1_FB21_Msk (0x1U << CAN_F3R1_FB21_Pos) /*!< 0x00200000 */ | |
3411 #define CAN_F3R1_FB21 CAN_F3R1_FB21_Msk /*!<Filter bit 21 */ | |
3412 #define CAN_F3R1_FB22_Pos (22U) | |
3413 #define CAN_F3R1_FB22_Msk (0x1U << CAN_F3R1_FB22_Pos) /*!< 0x00400000 */ | |
3414 #define CAN_F3R1_FB22 CAN_F3R1_FB22_Msk /*!<Filter bit 22 */ | |
3415 #define CAN_F3R1_FB23_Pos (23U) | |
3416 #define CAN_F3R1_FB23_Msk (0x1U << CAN_F3R1_FB23_Pos) /*!< 0x00800000 */ | |
3417 #define CAN_F3R1_FB23 CAN_F3R1_FB23_Msk /*!<Filter bit 23 */ | |
3418 #define CAN_F3R1_FB24_Pos (24U) | |
3419 #define CAN_F3R1_FB24_Msk (0x1U << CAN_F3R1_FB24_Pos) /*!< 0x01000000 */ | |
3420 #define CAN_F3R1_FB24 CAN_F3R1_FB24_Msk /*!<Filter bit 24 */ | |
3421 #define CAN_F3R1_FB25_Pos (25U) | |
3422 #define CAN_F3R1_FB25_Msk (0x1U << CAN_F3R1_FB25_Pos) /*!< 0x02000000 */ | |
3423 #define CAN_F3R1_FB25 CAN_F3R1_FB25_Msk /*!<Filter bit 25 */ | |
3424 #define CAN_F3R1_FB26_Pos (26U) | |
3425 #define CAN_F3R1_FB26_Msk (0x1U << CAN_F3R1_FB26_Pos) /*!< 0x04000000 */ | |
3426 #define CAN_F3R1_FB26 CAN_F3R1_FB26_Msk /*!<Filter bit 26 */ | |
3427 #define CAN_F3R1_FB27_Pos (27U) | |
3428 #define CAN_F3R1_FB27_Msk (0x1U << CAN_F3R1_FB27_Pos) /*!< 0x08000000 */ | |
3429 #define CAN_F3R1_FB27 CAN_F3R1_FB27_Msk /*!<Filter bit 27 */ | |
3430 #define CAN_F3R1_FB28_Pos (28U) | |
3431 #define CAN_F3R1_FB28_Msk (0x1U << CAN_F3R1_FB28_Pos) /*!< 0x10000000 */ | |
3432 #define CAN_F3R1_FB28 CAN_F3R1_FB28_Msk /*!<Filter bit 28 */ | |
3433 #define CAN_F3R1_FB29_Pos (29U) | |
3434 #define CAN_F3R1_FB29_Msk (0x1U << CAN_F3R1_FB29_Pos) /*!< 0x20000000 */ | |
3435 #define CAN_F3R1_FB29 CAN_F3R1_FB29_Msk /*!<Filter bit 29 */ | |
3436 #define CAN_F3R1_FB30_Pos (30U) | |
3437 #define CAN_F3R1_FB30_Msk (0x1U << CAN_F3R1_FB30_Pos) /*!< 0x40000000 */ | |
3438 #define CAN_F3R1_FB30 CAN_F3R1_FB30_Msk /*!<Filter bit 30 */ | |
3439 #define CAN_F3R1_FB31_Pos (31U) | |
3440 #define CAN_F3R1_FB31_Msk (0x1U << CAN_F3R1_FB31_Pos) /*!< 0x80000000 */ | |
3441 #define CAN_F3R1_FB31 CAN_F3R1_FB31_Msk /*!<Filter bit 31 */ | |
3442 | |
3443 /******************* Bit definition for CAN_F4R1 register *******************/ | |
3444 #define CAN_F4R1_FB0_Pos (0U) | |
3445 #define CAN_F4R1_FB0_Msk (0x1U << CAN_F4R1_FB0_Pos) /*!< 0x00000001 */ | |
3446 #define CAN_F4R1_FB0 CAN_F4R1_FB0_Msk /*!<Filter bit 0 */ | |
3447 #define CAN_F4R1_FB1_Pos (1U) | |
3448 #define CAN_F4R1_FB1_Msk (0x1U << CAN_F4R1_FB1_Pos) /*!< 0x00000002 */ | |
3449 #define CAN_F4R1_FB1 CAN_F4R1_FB1_Msk /*!<Filter bit 1 */ | |
3450 #define CAN_F4R1_FB2_Pos (2U) | |
3451 #define CAN_F4R1_FB2_Msk (0x1U << CAN_F4R1_FB2_Pos) /*!< 0x00000004 */ | |
3452 #define CAN_F4R1_FB2 CAN_F4R1_FB2_Msk /*!<Filter bit 2 */ | |
3453 #define CAN_F4R1_FB3_Pos (3U) | |
3454 #define CAN_F4R1_FB3_Msk (0x1U << CAN_F4R1_FB3_Pos) /*!< 0x00000008 */ | |
3455 #define CAN_F4R1_FB3 CAN_F4R1_FB3_Msk /*!<Filter bit 3 */ | |
3456 #define CAN_F4R1_FB4_Pos (4U) | |
3457 #define CAN_F4R1_FB4_Msk (0x1U << CAN_F4R1_FB4_Pos) /*!< 0x00000010 */ | |
3458 #define CAN_F4R1_FB4 CAN_F4R1_FB4_Msk /*!<Filter bit 4 */ | |
3459 #define CAN_F4R1_FB5_Pos (5U) | |
3460 #define CAN_F4R1_FB5_Msk (0x1U << CAN_F4R1_FB5_Pos) /*!< 0x00000020 */ | |
3461 #define CAN_F4R1_FB5 CAN_F4R1_FB5_Msk /*!<Filter bit 5 */ | |
3462 #define CAN_F4R1_FB6_Pos (6U) | |
3463 #define CAN_F4R1_FB6_Msk (0x1U << CAN_F4R1_FB6_Pos) /*!< 0x00000040 */ | |
3464 #define CAN_F4R1_FB6 CAN_F4R1_FB6_Msk /*!<Filter bit 6 */ | |
3465 #define CAN_F4R1_FB7_Pos (7U) | |
3466 #define CAN_F4R1_FB7_Msk (0x1U << CAN_F4R1_FB7_Pos) /*!< 0x00000080 */ | |
3467 #define CAN_F4R1_FB7 CAN_F4R1_FB7_Msk /*!<Filter bit 7 */ | |
3468 #define CAN_F4R1_FB8_Pos (8U) | |
3469 #define CAN_F4R1_FB8_Msk (0x1U << CAN_F4R1_FB8_Pos) /*!< 0x00000100 */ | |
3470 #define CAN_F4R1_FB8 CAN_F4R1_FB8_Msk /*!<Filter bit 8 */ | |
3471 #define CAN_F4R1_FB9_Pos (9U) | |
3472 #define CAN_F4R1_FB9_Msk (0x1U << CAN_F4R1_FB9_Pos) /*!< 0x00000200 */ | |
3473 #define CAN_F4R1_FB9 CAN_F4R1_FB9_Msk /*!<Filter bit 9 */ | |
3474 #define CAN_F4R1_FB10_Pos (10U) | |
3475 #define CAN_F4R1_FB10_Msk (0x1U << CAN_F4R1_FB10_Pos) /*!< 0x00000400 */ | |
3476 #define CAN_F4R1_FB10 CAN_F4R1_FB10_Msk /*!<Filter bit 10 */ | |
3477 #define CAN_F4R1_FB11_Pos (11U) | |
3478 #define CAN_F4R1_FB11_Msk (0x1U << CAN_F4R1_FB11_Pos) /*!< 0x00000800 */ | |
3479 #define CAN_F4R1_FB11 CAN_F4R1_FB11_Msk /*!<Filter bit 11 */ | |
3480 #define CAN_F4R1_FB12_Pos (12U) | |
3481 #define CAN_F4R1_FB12_Msk (0x1U << CAN_F4R1_FB12_Pos) /*!< 0x00001000 */ | |
3482 #define CAN_F4R1_FB12 CAN_F4R1_FB12_Msk /*!<Filter bit 12 */ | |
3483 #define CAN_F4R1_FB13_Pos (13U) | |
3484 #define CAN_F4R1_FB13_Msk (0x1U << CAN_F4R1_FB13_Pos) /*!< 0x00002000 */ | |
3485 #define CAN_F4R1_FB13 CAN_F4R1_FB13_Msk /*!<Filter bit 13 */ | |
3486 #define CAN_F4R1_FB14_Pos (14U) | |
3487 #define CAN_F4R1_FB14_Msk (0x1U << CAN_F4R1_FB14_Pos) /*!< 0x00004000 */ | |
3488 #define CAN_F4R1_FB14 CAN_F4R1_FB14_Msk /*!<Filter bit 14 */ | |
3489 #define CAN_F4R1_FB15_Pos (15U) | |
3490 #define CAN_F4R1_FB15_Msk (0x1U << CAN_F4R1_FB15_Pos) /*!< 0x00008000 */ | |
3491 #define CAN_F4R1_FB15 CAN_F4R1_FB15_Msk /*!<Filter bit 15 */ | |
3492 #define CAN_F4R1_FB16_Pos (16U) | |
3493 #define CAN_F4R1_FB16_Msk (0x1U << CAN_F4R1_FB16_Pos) /*!< 0x00010000 */ | |
3494 #define CAN_F4R1_FB16 CAN_F4R1_FB16_Msk /*!<Filter bit 16 */ | |
3495 #define CAN_F4R1_FB17_Pos (17U) | |
3496 #define CAN_F4R1_FB17_Msk (0x1U << CAN_F4R1_FB17_Pos) /*!< 0x00020000 */ | |
3497 #define CAN_F4R1_FB17 CAN_F4R1_FB17_Msk /*!<Filter bit 17 */ | |
3498 #define CAN_F4R1_FB18_Pos (18U) | |
3499 #define CAN_F4R1_FB18_Msk (0x1U << CAN_F4R1_FB18_Pos) /*!< 0x00040000 */ | |
3500 #define CAN_F4R1_FB18 CAN_F4R1_FB18_Msk /*!<Filter bit 18 */ | |
3501 #define CAN_F4R1_FB19_Pos (19U) | |
3502 #define CAN_F4R1_FB19_Msk (0x1U << CAN_F4R1_FB19_Pos) /*!< 0x00080000 */ | |
3503 #define CAN_F4R1_FB19 CAN_F4R1_FB19_Msk /*!<Filter bit 19 */ | |
3504 #define CAN_F4R1_FB20_Pos (20U) | |
3505 #define CAN_F4R1_FB20_Msk (0x1U << CAN_F4R1_FB20_Pos) /*!< 0x00100000 */ | |
3506 #define CAN_F4R1_FB20 CAN_F4R1_FB20_Msk /*!<Filter bit 20 */ | |
3507 #define CAN_F4R1_FB21_Pos (21U) | |
3508 #define CAN_F4R1_FB21_Msk (0x1U << CAN_F4R1_FB21_Pos) /*!< 0x00200000 */ | |
3509 #define CAN_F4R1_FB21 CAN_F4R1_FB21_Msk /*!<Filter bit 21 */ | |
3510 #define CAN_F4R1_FB22_Pos (22U) | |
3511 #define CAN_F4R1_FB22_Msk (0x1U << CAN_F4R1_FB22_Pos) /*!< 0x00400000 */ | |
3512 #define CAN_F4R1_FB22 CAN_F4R1_FB22_Msk /*!<Filter bit 22 */ | |
3513 #define CAN_F4R1_FB23_Pos (23U) | |
3514 #define CAN_F4R1_FB23_Msk (0x1U << CAN_F4R1_FB23_Pos) /*!< 0x00800000 */ | |
3515 #define CAN_F4R1_FB23 CAN_F4R1_FB23_Msk /*!<Filter bit 23 */ | |
3516 #define CAN_F4R1_FB24_Pos (24U) | |
3517 #define CAN_F4R1_FB24_Msk (0x1U << CAN_F4R1_FB24_Pos) /*!< 0x01000000 */ | |
3518 #define CAN_F4R1_FB24 CAN_F4R1_FB24_Msk /*!<Filter bit 24 */ | |
3519 #define CAN_F4R1_FB25_Pos (25U) | |
3520 #define CAN_F4R1_FB25_Msk (0x1U << CAN_F4R1_FB25_Pos) /*!< 0x02000000 */ | |
3521 #define CAN_F4R1_FB25 CAN_F4R1_FB25_Msk /*!<Filter bit 25 */ | |
3522 #define CAN_F4R1_FB26_Pos (26U) | |
3523 #define CAN_F4R1_FB26_Msk (0x1U << CAN_F4R1_FB26_Pos) /*!< 0x04000000 */ | |
3524 #define CAN_F4R1_FB26 CAN_F4R1_FB26_Msk /*!<Filter bit 26 */ | |
3525 #define CAN_F4R1_FB27_Pos (27U) | |
3526 #define CAN_F4R1_FB27_Msk (0x1U << CAN_F4R1_FB27_Pos) /*!< 0x08000000 */ | |
3527 #define CAN_F4R1_FB27 CAN_F4R1_FB27_Msk /*!<Filter bit 27 */ | |
3528 #define CAN_F4R1_FB28_Pos (28U) | |
3529 #define CAN_F4R1_FB28_Msk (0x1U << CAN_F4R1_FB28_Pos) /*!< 0x10000000 */ | |
3530 #define CAN_F4R1_FB28 CAN_F4R1_FB28_Msk /*!<Filter bit 28 */ | |
3531 #define CAN_F4R1_FB29_Pos (29U) | |
3532 #define CAN_F4R1_FB29_Msk (0x1U << CAN_F4R1_FB29_Pos) /*!< 0x20000000 */ | |
3533 #define CAN_F4R1_FB29 CAN_F4R1_FB29_Msk /*!<Filter bit 29 */ | |
3534 #define CAN_F4R1_FB30_Pos (30U) | |
3535 #define CAN_F4R1_FB30_Msk (0x1U << CAN_F4R1_FB30_Pos) /*!< 0x40000000 */ | |
3536 #define CAN_F4R1_FB30 CAN_F4R1_FB30_Msk /*!<Filter bit 30 */ | |
3537 #define CAN_F4R1_FB31_Pos (31U) | |
3538 #define CAN_F4R1_FB31_Msk (0x1U << CAN_F4R1_FB31_Pos) /*!< 0x80000000 */ | |
3539 #define CAN_F4R1_FB31 CAN_F4R1_FB31_Msk /*!<Filter bit 31 */ | |
3540 | |
3541 /******************* Bit definition for CAN_F5R1 register *******************/ | |
3542 #define CAN_F5R1_FB0_Pos (0U) | |
3543 #define CAN_F5R1_FB0_Msk (0x1U << CAN_F5R1_FB0_Pos) /*!< 0x00000001 */ | |
3544 #define CAN_F5R1_FB0 CAN_F5R1_FB0_Msk /*!<Filter bit 0 */ | |
3545 #define CAN_F5R1_FB1_Pos (1U) | |
3546 #define CAN_F5R1_FB1_Msk (0x1U << CAN_F5R1_FB1_Pos) /*!< 0x00000002 */ | |
3547 #define CAN_F5R1_FB1 CAN_F5R1_FB1_Msk /*!<Filter bit 1 */ | |
3548 #define CAN_F5R1_FB2_Pos (2U) | |
3549 #define CAN_F5R1_FB2_Msk (0x1U << CAN_F5R1_FB2_Pos) /*!< 0x00000004 */ | |
3550 #define CAN_F5R1_FB2 CAN_F5R1_FB2_Msk /*!<Filter bit 2 */ | |
3551 #define CAN_F5R1_FB3_Pos (3U) | |
3552 #define CAN_F5R1_FB3_Msk (0x1U << CAN_F5R1_FB3_Pos) /*!< 0x00000008 */ | |
3553 #define CAN_F5R1_FB3 CAN_F5R1_FB3_Msk /*!<Filter bit 3 */ | |
3554 #define CAN_F5R1_FB4_Pos (4U) | |
3555 #define CAN_F5R1_FB4_Msk (0x1U << CAN_F5R1_FB4_Pos) /*!< 0x00000010 */ | |
3556 #define CAN_F5R1_FB4 CAN_F5R1_FB4_Msk /*!<Filter bit 4 */ | |
3557 #define CAN_F5R1_FB5_Pos (5U) | |
3558 #define CAN_F5R1_FB5_Msk (0x1U << CAN_F5R1_FB5_Pos) /*!< 0x00000020 */ | |
3559 #define CAN_F5R1_FB5 CAN_F5R1_FB5_Msk /*!<Filter bit 5 */ | |
3560 #define CAN_F5R1_FB6_Pos (6U) | |
3561 #define CAN_F5R1_FB6_Msk (0x1U << CAN_F5R1_FB6_Pos) /*!< 0x00000040 */ | |
3562 #define CAN_F5R1_FB6 CAN_F5R1_FB6_Msk /*!<Filter bit 6 */ | |
3563 #define CAN_F5R1_FB7_Pos (7U) | |
3564 #define CAN_F5R1_FB7_Msk (0x1U << CAN_F5R1_FB7_Pos) /*!< 0x00000080 */ | |
3565 #define CAN_F5R1_FB7 CAN_F5R1_FB7_Msk /*!<Filter bit 7 */ | |
3566 #define CAN_F5R1_FB8_Pos (8U) | |
3567 #define CAN_F5R1_FB8_Msk (0x1U << CAN_F5R1_FB8_Pos) /*!< 0x00000100 */ | |
3568 #define CAN_F5R1_FB8 CAN_F5R1_FB8_Msk /*!<Filter bit 8 */ | |
3569 #define CAN_F5R1_FB9_Pos (9U) | |
3570 #define CAN_F5R1_FB9_Msk (0x1U << CAN_F5R1_FB9_Pos) /*!< 0x00000200 */ | |
3571 #define CAN_F5R1_FB9 CAN_F5R1_FB9_Msk /*!<Filter bit 9 */ | |
3572 #define CAN_F5R1_FB10_Pos (10U) | |
3573 #define CAN_F5R1_FB10_Msk (0x1U << CAN_F5R1_FB10_Pos) /*!< 0x00000400 */ | |
3574 #define CAN_F5R1_FB10 CAN_F5R1_FB10_Msk /*!<Filter bit 10 */ | |
3575 #define CAN_F5R1_FB11_Pos (11U) | |
3576 #define CAN_F5R1_FB11_Msk (0x1U << CAN_F5R1_FB11_Pos) /*!< 0x00000800 */ | |
3577 #define CAN_F5R1_FB11 CAN_F5R1_FB11_Msk /*!<Filter bit 11 */ | |
3578 #define CAN_F5R1_FB12_Pos (12U) | |
3579 #define CAN_F5R1_FB12_Msk (0x1U << CAN_F5R1_FB12_Pos) /*!< 0x00001000 */ | |
3580 #define CAN_F5R1_FB12 CAN_F5R1_FB12_Msk /*!<Filter bit 12 */ | |
3581 #define CAN_F5R1_FB13_Pos (13U) | |
3582 #define CAN_F5R1_FB13_Msk (0x1U << CAN_F5R1_FB13_Pos) /*!< 0x00002000 */ | |
3583 #define CAN_F5R1_FB13 CAN_F5R1_FB13_Msk /*!<Filter bit 13 */ | |
3584 #define CAN_F5R1_FB14_Pos (14U) | |
3585 #define CAN_F5R1_FB14_Msk (0x1U << CAN_F5R1_FB14_Pos) /*!< 0x00004000 */ | |
3586 #define CAN_F5R1_FB14 CAN_F5R1_FB14_Msk /*!<Filter bit 14 */ | |
3587 #define CAN_F5R1_FB15_Pos (15U) | |
3588 #define CAN_F5R1_FB15_Msk (0x1U << CAN_F5R1_FB15_Pos) /*!< 0x00008000 */ | |
3589 #define CAN_F5R1_FB15 CAN_F5R1_FB15_Msk /*!<Filter bit 15 */ | |
3590 #define CAN_F5R1_FB16_Pos (16U) | |
3591 #define CAN_F5R1_FB16_Msk (0x1U << CAN_F5R1_FB16_Pos) /*!< 0x00010000 */ | |
3592 #define CAN_F5R1_FB16 CAN_F5R1_FB16_Msk /*!<Filter bit 16 */ | |
3593 #define CAN_F5R1_FB17_Pos (17U) | |
3594 #define CAN_F5R1_FB17_Msk (0x1U << CAN_F5R1_FB17_Pos) /*!< 0x00020000 */ | |
3595 #define CAN_F5R1_FB17 CAN_F5R1_FB17_Msk /*!<Filter bit 17 */ | |
3596 #define CAN_F5R1_FB18_Pos (18U) | |
3597 #define CAN_F5R1_FB18_Msk (0x1U << CAN_F5R1_FB18_Pos) /*!< 0x00040000 */ | |
3598 #define CAN_F5R1_FB18 CAN_F5R1_FB18_Msk /*!<Filter bit 18 */ | |
3599 #define CAN_F5R1_FB19_Pos (19U) | |
3600 #define CAN_F5R1_FB19_Msk (0x1U << CAN_F5R1_FB19_Pos) /*!< 0x00080000 */ | |
3601 #define CAN_F5R1_FB19 CAN_F5R1_FB19_Msk /*!<Filter bit 19 */ | |
3602 #define CAN_F5R1_FB20_Pos (20U) | |
3603 #define CAN_F5R1_FB20_Msk (0x1U << CAN_F5R1_FB20_Pos) /*!< 0x00100000 */ | |
3604 #define CAN_F5R1_FB20 CAN_F5R1_FB20_Msk /*!<Filter bit 20 */ | |
3605 #define CAN_F5R1_FB21_Pos (21U) | |
3606 #define CAN_F5R1_FB21_Msk (0x1U << CAN_F5R1_FB21_Pos) /*!< 0x00200000 */ | |
3607 #define CAN_F5R1_FB21 CAN_F5R1_FB21_Msk /*!<Filter bit 21 */ | |
3608 #define CAN_F5R1_FB22_Pos (22U) | |
3609 #define CAN_F5R1_FB22_Msk (0x1U << CAN_F5R1_FB22_Pos) /*!< 0x00400000 */ | |
3610 #define CAN_F5R1_FB22 CAN_F5R1_FB22_Msk /*!<Filter bit 22 */ | |
3611 #define CAN_F5R1_FB23_Pos (23U) | |
3612 #define CAN_F5R1_FB23_Msk (0x1U << CAN_F5R1_FB23_Pos) /*!< 0x00800000 */ | |
3613 #define CAN_F5R1_FB23 CAN_F5R1_FB23_Msk /*!<Filter bit 23 */ | |
3614 #define CAN_F5R1_FB24_Pos (24U) | |
3615 #define CAN_F5R1_FB24_Msk (0x1U << CAN_F5R1_FB24_Pos) /*!< 0x01000000 */ | |
3616 #define CAN_F5R1_FB24 CAN_F5R1_FB24_Msk /*!<Filter bit 24 */ | |
3617 #define CAN_F5R1_FB25_Pos (25U) | |
3618 #define CAN_F5R1_FB25_Msk (0x1U << CAN_F5R1_FB25_Pos) /*!< 0x02000000 */ | |
3619 #define CAN_F5R1_FB25 CAN_F5R1_FB25_Msk /*!<Filter bit 25 */ | |
3620 #define CAN_F5R1_FB26_Pos (26U) | |
3621 #define CAN_F5R1_FB26_Msk (0x1U << CAN_F5R1_FB26_Pos) /*!< 0x04000000 */ | |
3622 #define CAN_F5R1_FB26 CAN_F5R1_FB26_Msk /*!<Filter bit 26 */ | |
3623 #define CAN_F5R1_FB27_Pos (27U) | |
3624 #define CAN_F5R1_FB27_Msk (0x1U << CAN_F5R1_FB27_Pos) /*!< 0x08000000 */ | |
3625 #define CAN_F5R1_FB27 CAN_F5R1_FB27_Msk /*!<Filter bit 27 */ | |
3626 #define CAN_F5R1_FB28_Pos (28U) | |
3627 #define CAN_F5R1_FB28_Msk (0x1U << CAN_F5R1_FB28_Pos) /*!< 0x10000000 */ | |
3628 #define CAN_F5R1_FB28 CAN_F5R1_FB28_Msk /*!<Filter bit 28 */ | |
3629 #define CAN_F5R1_FB29_Pos (29U) | |
3630 #define CAN_F5R1_FB29_Msk (0x1U << CAN_F5R1_FB29_Pos) /*!< 0x20000000 */ | |
3631 #define CAN_F5R1_FB29 CAN_F5R1_FB29_Msk /*!<Filter bit 29 */ | |
3632 #define CAN_F5R1_FB30_Pos (30U) | |
3633 #define CAN_F5R1_FB30_Msk (0x1U << CAN_F5R1_FB30_Pos) /*!< 0x40000000 */ | |
3634 #define CAN_F5R1_FB30 CAN_F5R1_FB30_Msk /*!<Filter bit 30 */ | |
3635 #define CAN_F5R1_FB31_Pos (31U) | |
3636 #define CAN_F5R1_FB31_Msk (0x1U << CAN_F5R1_FB31_Pos) /*!< 0x80000000 */ | |
3637 #define CAN_F5R1_FB31 CAN_F5R1_FB31_Msk /*!<Filter bit 31 */ | |
3638 | |
3639 /******************* Bit definition for CAN_F6R1 register *******************/ | |
3640 #define CAN_F6R1_FB0_Pos (0U) | |
3641 #define CAN_F6R1_FB0_Msk (0x1U << CAN_F6R1_FB0_Pos) /*!< 0x00000001 */ | |
3642 #define CAN_F6R1_FB0 CAN_F6R1_FB0_Msk /*!<Filter bit 0 */ | |
3643 #define CAN_F6R1_FB1_Pos (1U) | |
3644 #define CAN_F6R1_FB1_Msk (0x1U << CAN_F6R1_FB1_Pos) /*!< 0x00000002 */ | |
3645 #define CAN_F6R1_FB1 CAN_F6R1_FB1_Msk /*!<Filter bit 1 */ | |
3646 #define CAN_F6R1_FB2_Pos (2U) | |
3647 #define CAN_F6R1_FB2_Msk (0x1U << CAN_F6R1_FB2_Pos) /*!< 0x00000004 */ | |
3648 #define CAN_F6R1_FB2 CAN_F6R1_FB2_Msk /*!<Filter bit 2 */ | |
3649 #define CAN_F6R1_FB3_Pos (3U) | |
3650 #define CAN_F6R1_FB3_Msk (0x1U << CAN_F6R1_FB3_Pos) /*!< 0x00000008 */ | |
3651 #define CAN_F6R1_FB3 CAN_F6R1_FB3_Msk /*!<Filter bit 3 */ | |
3652 #define CAN_F6R1_FB4_Pos (4U) | |
3653 #define CAN_F6R1_FB4_Msk (0x1U << CAN_F6R1_FB4_Pos) /*!< 0x00000010 */ | |
3654 #define CAN_F6R1_FB4 CAN_F6R1_FB4_Msk /*!<Filter bit 4 */ | |
3655 #define CAN_F6R1_FB5_Pos (5U) | |
3656 #define CAN_F6R1_FB5_Msk (0x1U << CAN_F6R1_FB5_Pos) /*!< 0x00000020 */ | |
3657 #define CAN_F6R1_FB5 CAN_F6R1_FB5_Msk /*!<Filter bit 5 */ | |
3658 #define CAN_F6R1_FB6_Pos (6U) | |
3659 #define CAN_F6R1_FB6_Msk (0x1U << CAN_F6R1_FB6_Pos) /*!< 0x00000040 */ | |
3660 #define CAN_F6R1_FB6 CAN_F6R1_FB6_Msk /*!<Filter bit 6 */ | |
3661 #define CAN_F6R1_FB7_Pos (7U) | |
3662 #define CAN_F6R1_FB7_Msk (0x1U << CAN_F6R1_FB7_Pos) /*!< 0x00000080 */ | |
3663 #define CAN_F6R1_FB7 CAN_F6R1_FB7_Msk /*!<Filter bit 7 */ | |
3664 #define CAN_F6R1_FB8_Pos (8U) | |
3665 #define CAN_F6R1_FB8_Msk (0x1U << CAN_F6R1_FB8_Pos) /*!< 0x00000100 */ | |
3666 #define CAN_F6R1_FB8 CAN_F6R1_FB8_Msk /*!<Filter bit 8 */ | |
3667 #define CAN_F6R1_FB9_Pos (9U) | |
3668 #define CAN_F6R1_FB9_Msk (0x1U << CAN_F6R1_FB9_Pos) /*!< 0x00000200 */ | |
3669 #define CAN_F6R1_FB9 CAN_F6R1_FB9_Msk /*!<Filter bit 9 */ | |
3670 #define CAN_F6R1_FB10_Pos (10U) | |
3671 #define CAN_F6R1_FB10_Msk (0x1U << CAN_F6R1_FB10_Pos) /*!< 0x00000400 */ | |
3672 #define CAN_F6R1_FB10 CAN_F6R1_FB10_Msk /*!<Filter bit 10 */ | |
3673 #define CAN_F6R1_FB11_Pos (11U) | |
3674 #define CAN_F6R1_FB11_Msk (0x1U << CAN_F6R1_FB11_Pos) /*!< 0x00000800 */ | |
3675 #define CAN_F6R1_FB11 CAN_F6R1_FB11_Msk /*!<Filter bit 11 */ | |
3676 #define CAN_F6R1_FB12_Pos (12U) | |
3677 #define CAN_F6R1_FB12_Msk (0x1U << CAN_F6R1_FB12_Pos) /*!< 0x00001000 */ | |
3678 #define CAN_F6R1_FB12 CAN_F6R1_FB12_Msk /*!<Filter bit 12 */ | |
3679 #define CAN_F6R1_FB13_Pos (13U) | |
3680 #define CAN_F6R1_FB13_Msk (0x1U << CAN_F6R1_FB13_Pos) /*!< 0x00002000 */ | |
3681 #define CAN_F6R1_FB13 CAN_F6R1_FB13_Msk /*!<Filter bit 13 */ | |
3682 #define CAN_F6R1_FB14_Pos (14U) | |
3683 #define CAN_F6R1_FB14_Msk (0x1U << CAN_F6R1_FB14_Pos) /*!< 0x00004000 */ | |
3684 #define CAN_F6R1_FB14 CAN_F6R1_FB14_Msk /*!<Filter bit 14 */ | |
3685 #define CAN_F6R1_FB15_Pos (15U) | |
3686 #define CAN_F6R1_FB15_Msk (0x1U << CAN_F6R1_FB15_Pos) /*!< 0x00008000 */ | |
3687 #define CAN_F6R1_FB15 CAN_F6R1_FB15_Msk /*!<Filter bit 15 */ | |
3688 #define CAN_F6R1_FB16_Pos (16U) | |
3689 #define CAN_F6R1_FB16_Msk (0x1U << CAN_F6R1_FB16_Pos) /*!< 0x00010000 */ | |
3690 #define CAN_F6R1_FB16 CAN_F6R1_FB16_Msk /*!<Filter bit 16 */ | |
3691 #define CAN_F6R1_FB17_Pos (17U) | |
3692 #define CAN_F6R1_FB17_Msk (0x1U << CAN_F6R1_FB17_Pos) /*!< 0x00020000 */ | |
3693 #define CAN_F6R1_FB17 CAN_F6R1_FB17_Msk /*!<Filter bit 17 */ | |
3694 #define CAN_F6R1_FB18_Pos (18U) | |
3695 #define CAN_F6R1_FB18_Msk (0x1U << CAN_F6R1_FB18_Pos) /*!< 0x00040000 */ | |
3696 #define CAN_F6R1_FB18 CAN_F6R1_FB18_Msk /*!<Filter bit 18 */ | |
3697 #define CAN_F6R1_FB19_Pos (19U) | |
3698 #define CAN_F6R1_FB19_Msk (0x1U << CAN_F6R1_FB19_Pos) /*!< 0x00080000 */ | |
3699 #define CAN_F6R1_FB19 CAN_F6R1_FB19_Msk /*!<Filter bit 19 */ | |
3700 #define CAN_F6R1_FB20_Pos (20U) | |
3701 #define CAN_F6R1_FB20_Msk (0x1U << CAN_F6R1_FB20_Pos) /*!< 0x00100000 */ | |
3702 #define CAN_F6R1_FB20 CAN_F6R1_FB20_Msk /*!<Filter bit 20 */ | |
3703 #define CAN_F6R1_FB21_Pos (21U) | |
3704 #define CAN_F6R1_FB21_Msk (0x1U << CAN_F6R1_FB21_Pos) /*!< 0x00200000 */ | |
3705 #define CAN_F6R1_FB21 CAN_F6R1_FB21_Msk /*!<Filter bit 21 */ | |
3706 #define CAN_F6R1_FB22_Pos (22U) | |
3707 #define CAN_F6R1_FB22_Msk (0x1U << CAN_F6R1_FB22_Pos) /*!< 0x00400000 */ | |
3708 #define CAN_F6R1_FB22 CAN_F6R1_FB22_Msk /*!<Filter bit 22 */ | |
3709 #define CAN_F6R1_FB23_Pos (23U) | |
3710 #define CAN_F6R1_FB23_Msk (0x1U << CAN_F6R1_FB23_Pos) /*!< 0x00800000 */ | |
3711 #define CAN_F6R1_FB23 CAN_F6R1_FB23_Msk /*!<Filter bit 23 */ | |
3712 #define CAN_F6R1_FB24_Pos (24U) | |
3713 #define CAN_F6R1_FB24_Msk (0x1U << CAN_F6R1_FB24_Pos) /*!< 0x01000000 */ | |
3714 #define CAN_F6R1_FB24 CAN_F6R1_FB24_Msk /*!<Filter bit 24 */ | |
3715 #define CAN_F6R1_FB25_Pos (25U) | |
3716 #define CAN_F6R1_FB25_Msk (0x1U << CAN_F6R1_FB25_Pos) /*!< 0x02000000 */ | |
3717 #define CAN_F6R1_FB25 CAN_F6R1_FB25_Msk /*!<Filter bit 25 */ | |
3718 #define CAN_F6R1_FB26_Pos (26U) | |
3719 #define CAN_F6R1_FB26_Msk (0x1U << CAN_F6R1_FB26_Pos) /*!< 0x04000000 */ | |
3720 #define CAN_F6R1_FB26 CAN_F6R1_FB26_Msk /*!<Filter bit 26 */ | |
3721 #define CAN_F6R1_FB27_Pos (27U) | |
3722 #define CAN_F6R1_FB27_Msk (0x1U << CAN_F6R1_FB27_Pos) /*!< 0x08000000 */ | |
3723 #define CAN_F6R1_FB27 CAN_F6R1_FB27_Msk /*!<Filter bit 27 */ | |
3724 #define CAN_F6R1_FB28_Pos (28U) | |
3725 #define CAN_F6R1_FB28_Msk (0x1U << CAN_F6R1_FB28_Pos) /*!< 0x10000000 */ | |
3726 #define CAN_F6R1_FB28 CAN_F6R1_FB28_Msk /*!<Filter bit 28 */ | |
3727 #define CAN_F6R1_FB29_Pos (29U) | |
3728 #define CAN_F6R1_FB29_Msk (0x1U << CAN_F6R1_FB29_Pos) /*!< 0x20000000 */ | |
3729 #define CAN_F6R1_FB29 CAN_F6R1_FB29_Msk /*!<Filter bit 29 */ | |
3730 #define CAN_F6R1_FB30_Pos (30U) | |
3731 #define CAN_F6R1_FB30_Msk (0x1U << CAN_F6R1_FB30_Pos) /*!< 0x40000000 */ | |
3732 #define CAN_F6R1_FB30 CAN_F6R1_FB30_Msk /*!<Filter bit 30 */ | |
3733 #define CAN_F6R1_FB31_Pos (31U) | |
3734 #define CAN_F6R1_FB31_Msk (0x1U << CAN_F6R1_FB31_Pos) /*!< 0x80000000 */ | |
3735 #define CAN_F6R1_FB31 CAN_F6R1_FB31_Msk /*!<Filter bit 31 */ | |
3736 | |
3737 /******************* Bit definition for CAN_F7R1 register *******************/ | |
3738 #define CAN_F7R1_FB0_Pos (0U) | |
3739 #define CAN_F7R1_FB0_Msk (0x1U << CAN_F7R1_FB0_Pos) /*!< 0x00000001 */ | |
3740 #define CAN_F7R1_FB0 CAN_F7R1_FB0_Msk /*!<Filter bit 0 */ | |
3741 #define CAN_F7R1_FB1_Pos (1U) | |
3742 #define CAN_F7R1_FB1_Msk (0x1U << CAN_F7R1_FB1_Pos) /*!< 0x00000002 */ | |
3743 #define CAN_F7R1_FB1 CAN_F7R1_FB1_Msk /*!<Filter bit 1 */ | |
3744 #define CAN_F7R1_FB2_Pos (2U) | |
3745 #define CAN_F7R1_FB2_Msk (0x1U << CAN_F7R1_FB2_Pos) /*!< 0x00000004 */ | |
3746 #define CAN_F7R1_FB2 CAN_F7R1_FB2_Msk /*!<Filter bit 2 */ | |
3747 #define CAN_F7R1_FB3_Pos (3U) | |
3748 #define CAN_F7R1_FB3_Msk (0x1U << CAN_F7R1_FB3_Pos) /*!< 0x00000008 */ | |
3749 #define CAN_F7R1_FB3 CAN_F7R1_FB3_Msk /*!<Filter bit 3 */ | |
3750 #define CAN_F7R1_FB4_Pos (4U) | |
3751 #define CAN_F7R1_FB4_Msk (0x1U << CAN_F7R1_FB4_Pos) /*!< 0x00000010 */ | |
3752 #define CAN_F7R1_FB4 CAN_F7R1_FB4_Msk /*!<Filter bit 4 */ | |
3753 #define CAN_F7R1_FB5_Pos (5U) | |
3754 #define CAN_F7R1_FB5_Msk (0x1U << CAN_F7R1_FB5_Pos) /*!< 0x00000020 */ | |
3755 #define CAN_F7R1_FB5 CAN_F7R1_FB5_Msk /*!<Filter bit 5 */ | |
3756 #define CAN_F7R1_FB6_Pos (6U) | |
3757 #define CAN_F7R1_FB6_Msk (0x1U << CAN_F7R1_FB6_Pos) /*!< 0x00000040 */ | |
3758 #define CAN_F7R1_FB6 CAN_F7R1_FB6_Msk /*!<Filter bit 6 */ | |
3759 #define CAN_F7R1_FB7_Pos (7U) | |
3760 #define CAN_F7R1_FB7_Msk (0x1U << CAN_F7R1_FB7_Pos) /*!< 0x00000080 */ | |
3761 #define CAN_F7R1_FB7 CAN_F7R1_FB7_Msk /*!<Filter bit 7 */ | |
3762 #define CAN_F7R1_FB8_Pos (8U) | |
3763 #define CAN_F7R1_FB8_Msk (0x1U << CAN_F7R1_FB8_Pos) /*!< 0x00000100 */ | |
3764 #define CAN_F7R1_FB8 CAN_F7R1_FB8_Msk /*!<Filter bit 8 */ | |
3765 #define CAN_F7R1_FB9_Pos (9U) | |
3766 #define CAN_F7R1_FB9_Msk (0x1U << CAN_F7R1_FB9_Pos) /*!< 0x00000200 */ | |
3767 #define CAN_F7R1_FB9 CAN_F7R1_FB9_Msk /*!<Filter bit 9 */ | |
3768 #define CAN_F7R1_FB10_Pos (10U) | |
3769 #define CAN_F7R1_FB10_Msk (0x1U << CAN_F7R1_FB10_Pos) /*!< 0x00000400 */ | |
3770 #define CAN_F7R1_FB10 CAN_F7R1_FB10_Msk /*!<Filter bit 10 */ | |
3771 #define CAN_F7R1_FB11_Pos (11U) | |
3772 #define CAN_F7R1_FB11_Msk (0x1U << CAN_F7R1_FB11_Pos) /*!< 0x00000800 */ | |
3773 #define CAN_F7R1_FB11 CAN_F7R1_FB11_Msk /*!<Filter bit 11 */ | |
3774 #define CAN_F7R1_FB12_Pos (12U) | |
3775 #define CAN_F7R1_FB12_Msk (0x1U << CAN_F7R1_FB12_Pos) /*!< 0x00001000 */ | |
3776 #define CAN_F7R1_FB12 CAN_F7R1_FB12_Msk /*!<Filter bit 12 */ | |
3777 #define CAN_F7R1_FB13_Pos (13U) | |
3778 #define CAN_F7R1_FB13_Msk (0x1U << CAN_F7R1_FB13_Pos) /*!< 0x00002000 */ | |
3779 #define CAN_F7R1_FB13 CAN_F7R1_FB13_Msk /*!<Filter bit 13 */ | |
3780 #define CAN_F7R1_FB14_Pos (14U) | |
3781 #define CAN_F7R1_FB14_Msk (0x1U << CAN_F7R1_FB14_Pos) /*!< 0x00004000 */ | |
3782 #define CAN_F7R1_FB14 CAN_F7R1_FB14_Msk /*!<Filter bit 14 */ | |
3783 #define CAN_F7R1_FB15_Pos (15U) | |
3784 #define CAN_F7R1_FB15_Msk (0x1U << CAN_F7R1_FB15_Pos) /*!< 0x00008000 */ | |
3785 #define CAN_F7R1_FB15 CAN_F7R1_FB15_Msk /*!<Filter bit 15 */ | |
3786 #define CAN_F7R1_FB16_Pos (16U) | |
3787 #define CAN_F7R1_FB16_Msk (0x1U << CAN_F7R1_FB16_Pos) /*!< 0x00010000 */ | |
3788 #define CAN_F7R1_FB16 CAN_F7R1_FB16_Msk /*!<Filter bit 16 */ | |
3789 #define CAN_F7R1_FB17_Pos (17U) | |
3790 #define CAN_F7R1_FB17_Msk (0x1U << CAN_F7R1_FB17_Pos) /*!< 0x00020000 */ | |
3791 #define CAN_F7R1_FB17 CAN_F7R1_FB17_Msk /*!<Filter bit 17 */ | |
3792 #define CAN_F7R1_FB18_Pos (18U) | |
3793 #define CAN_F7R1_FB18_Msk (0x1U << CAN_F7R1_FB18_Pos) /*!< 0x00040000 */ | |
3794 #define CAN_F7R1_FB18 CAN_F7R1_FB18_Msk /*!<Filter bit 18 */ | |
3795 #define CAN_F7R1_FB19_Pos (19U) | |
3796 #define CAN_F7R1_FB19_Msk (0x1U << CAN_F7R1_FB19_Pos) /*!< 0x00080000 */ | |
3797 #define CAN_F7R1_FB19 CAN_F7R1_FB19_Msk /*!<Filter bit 19 */ | |
3798 #define CAN_F7R1_FB20_Pos (20U) | |
3799 #define CAN_F7R1_FB20_Msk (0x1U << CAN_F7R1_FB20_Pos) /*!< 0x00100000 */ | |
3800 #define CAN_F7R1_FB20 CAN_F7R1_FB20_Msk /*!<Filter bit 20 */ | |
3801 #define CAN_F7R1_FB21_Pos (21U) | |
3802 #define CAN_F7R1_FB21_Msk (0x1U << CAN_F7R1_FB21_Pos) /*!< 0x00200000 */ | |
3803 #define CAN_F7R1_FB21 CAN_F7R1_FB21_Msk /*!<Filter bit 21 */ | |
3804 #define CAN_F7R1_FB22_Pos (22U) | |
3805 #define CAN_F7R1_FB22_Msk (0x1U << CAN_F7R1_FB22_Pos) /*!< 0x00400000 */ | |
3806 #define CAN_F7R1_FB22 CAN_F7R1_FB22_Msk /*!<Filter bit 22 */ | |
3807 #define CAN_F7R1_FB23_Pos (23U) | |
3808 #define CAN_F7R1_FB23_Msk (0x1U << CAN_F7R1_FB23_Pos) /*!< 0x00800000 */ | |
3809 #define CAN_F7R1_FB23 CAN_F7R1_FB23_Msk /*!<Filter bit 23 */ | |
3810 #define CAN_F7R1_FB24_Pos (24U) | |
3811 #define CAN_F7R1_FB24_Msk (0x1U << CAN_F7R1_FB24_Pos) /*!< 0x01000000 */ | |
3812 #define CAN_F7R1_FB24 CAN_F7R1_FB24_Msk /*!<Filter bit 24 */ | |
3813 #define CAN_F7R1_FB25_Pos (25U) | |
3814 #define CAN_F7R1_FB25_Msk (0x1U << CAN_F7R1_FB25_Pos) /*!< 0x02000000 */ | |
3815 #define CAN_F7R1_FB25 CAN_F7R1_FB25_Msk /*!<Filter bit 25 */ | |
3816 #define CAN_F7R1_FB26_Pos (26U) | |
3817 #define CAN_F7R1_FB26_Msk (0x1U << CAN_F7R1_FB26_Pos) /*!< 0x04000000 */ | |
3818 #define CAN_F7R1_FB26 CAN_F7R1_FB26_Msk /*!<Filter bit 26 */ | |
3819 #define CAN_F7R1_FB27_Pos (27U) | |
3820 #define CAN_F7R1_FB27_Msk (0x1U << CAN_F7R1_FB27_Pos) /*!< 0x08000000 */ | |
3821 #define CAN_F7R1_FB27 CAN_F7R1_FB27_Msk /*!<Filter bit 27 */ | |
3822 #define CAN_F7R1_FB28_Pos (28U) | |
3823 #define CAN_F7R1_FB28_Msk (0x1U << CAN_F7R1_FB28_Pos) /*!< 0x10000000 */ | |
3824 #define CAN_F7R1_FB28 CAN_F7R1_FB28_Msk /*!<Filter bit 28 */ | |
3825 #define CAN_F7R1_FB29_Pos (29U) | |
3826 #define CAN_F7R1_FB29_Msk (0x1U << CAN_F7R1_FB29_Pos) /*!< 0x20000000 */ | |
3827 #define CAN_F7R1_FB29 CAN_F7R1_FB29_Msk /*!<Filter bit 29 */ | |
3828 #define CAN_F7R1_FB30_Pos (30U) | |
3829 #define CAN_F7R1_FB30_Msk (0x1U << CAN_F7R1_FB30_Pos) /*!< 0x40000000 */ | |
3830 #define CAN_F7R1_FB30 CAN_F7R1_FB30_Msk /*!<Filter bit 30 */ | |
3831 #define CAN_F7R1_FB31_Pos (31U) | |
3832 #define CAN_F7R1_FB31_Msk (0x1U << CAN_F7R1_FB31_Pos) /*!< 0x80000000 */ | |
3833 #define CAN_F7R1_FB31 CAN_F7R1_FB31_Msk /*!<Filter bit 31 */ | |
3834 | |
3835 /******************* Bit definition for CAN_F8R1 register *******************/ | |
3836 #define CAN_F8R1_FB0_Pos (0U) | |
3837 #define CAN_F8R1_FB0_Msk (0x1U << CAN_F8R1_FB0_Pos) /*!< 0x00000001 */ | |
3838 #define CAN_F8R1_FB0 CAN_F8R1_FB0_Msk /*!<Filter bit 0 */ | |
3839 #define CAN_F8R1_FB1_Pos (1U) | |
3840 #define CAN_F8R1_FB1_Msk (0x1U << CAN_F8R1_FB1_Pos) /*!< 0x00000002 */ | |
3841 #define CAN_F8R1_FB1 CAN_F8R1_FB1_Msk /*!<Filter bit 1 */ | |
3842 #define CAN_F8R1_FB2_Pos (2U) | |
3843 #define CAN_F8R1_FB2_Msk (0x1U << CAN_F8R1_FB2_Pos) /*!< 0x00000004 */ | |
3844 #define CAN_F8R1_FB2 CAN_F8R1_FB2_Msk /*!<Filter bit 2 */ | |
3845 #define CAN_F8R1_FB3_Pos (3U) | |
3846 #define CAN_F8R1_FB3_Msk (0x1U << CAN_F8R1_FB3_Pos) /*!< 0x00000008 */ | |
3847 #define CAN_F8R1_FB3 CAN_F8R1_FB3_Msk /*!<Filter bit 3 */ | |
3848 #define CAN_F8R1_FB4_Pos (4U) | |
3849 #define CAN_F8R1_FB4_Msk (0x1U << CAN_F8R1_FB4_Pos) /*!< 0x00000010 */ | |
3850 #define CAN_F8R1_FB4 CAN_F8R1_FB4_Msk /*!<Filter bit 4 */ | |
3851 #define CAN_F8R1_FB5_Pos (5U) | |
3852 #define CAN_F8R1_FB5_Msk (0x1U << CAN_F8R1_FB5_Pos) /*!< 0x00000020 */ | |
3853 #define CAN_F8R1_FB5 CAN_F8R1_FB5_Msk /*!<Filter bit 5 */ | |
3854 #define CAN_F8R1_FB6_Pos (6U) | |
3855 #define CAN_F8R1_FB6_Msk (0x1U << CAN_F8R1_FB6_Pos) /*!< 0x00000040 */ | |
3856 #define CAN_F8R1_FB6 CAN_F8R1_FB6_Msk /*!<Filter bit 6 */ | |
3857 #define CAN_F8R1_FB7_Pos (7U) | |
3858 #define CAN_F8R1_FB7_Msk (0x1U << CAN_F8R1_FB7_Pos) /*!< 0x00000080 */ | |
3859 #define CAN_F8R1_FB7 CAN_F8R1_FB7_Msk /*!<Filter bit 7 */ | |
3860 #define CAN_F8R1_FB8_Pos (8U) | |
3861 #define CAN_F8R1_FB8_Msk (0x1U << CAN_F8R1_FB8_Pos) /*!< 0x00000100 */ | |
3862 #define CAN_F8R1_FB8 CAN_F8R1_FB8_Msk /*!<Filter bit 8 */ | |
3863 #define CAN_F8R1_FB9_Pos (9U) | |
3864 #define CAN_F8R1_FB9_Msk (0x1U << CAN_F8R1_FB9_Pos) /*!< 0x00000200 */ | |
3865 #define CAN_F8R1_FB9 CAN_F8R1_FB9_Msk /*!<Filter bit 9 */ | |
3866 #define CAN_F8R1_FB10_Pos (10U) | |
3867 #define CAN_F8R1_FB10_Msk (0x1U << CAN_F8R1_FB10_Pos) /*!< 0x00000400 */ | |
3868 #define CAN_F8R1_FB10 CAN_F8R1_FB10_Msk /*!<Filter bit 10 */ | |
3869 #define CAN_F8R1_FB11_Pos (11U) | |
3870 #define CAN_F8R1_FB11_Msk (0x1U << CAN_F8R1_FB11_Pos) /*!< 0x00000800 */ | |
3871 #define CAN_F8R1_FB11 CAN_F8R1_FB11_Msk /*!<Filter bit 11 */ | |
3872 #define CAN_F8R1_FB12_Pos (12U) | |
3873 #define CAN_F8R1_FB12_Msk (0x1U << CAN_F8R1_FB12_Pos) /*!< 0x00001000 */ | |
3874 #define CAN_F8R1_FB12 CAN_F8R1_FB12_Msk /*!<Filter bit 12 */ | |
3875 #define CAN_F8R1_FB13_Pos (13U) | |
3876 #define CAN_F8R1_FB13_Msk (0x1U << CAN_F8R1_FB13_Pos) /*!< 0x00002000 */ | |
3877 #define CAN_F8R1_FB13 CAN_F8R1_FB13_Msk /*!<Filter bit 13 */ | |
3878 #define CAN_F8R1_FB14_Pos (14U) | |
3879 #define CAN_F8R1_FB14_Msk (0x1U << CAN_F8R1_FB14_Pos) /*!< 0x00004000 */ | |
3880 #define CAN_F8R1_FB14 CAN_F8R1_FB14_Msk /*!<Filter bit 14 */ | |
3881 #define CAN_F8R1_FB15_Pos (15U) | |
3882 #define CAN_F8R1_FB15_Msk (0x1U << CAN_F8R1_FB15_Pos) /*!< 0x00008000 */ | |
3883 #define CAN_F8R1_FB15 CAN_F8R1_FB15_Msk /*!<Filter bit 15 */ | |
3884 #define CAN_F8R1_FB16_Pos (16U) | |
3885 #define CAN_F8R1_FB16_Msk (0x1U << CAN_F8R1_FB16_Pos) /*!< 0x00010000 */ | |
3886 #define CAN_F8R1_FB16 CAN_F8R1_FB16_Msk /*!<Filter bit 16 */ | |
3887 #define CAN_F8R1_FB17_Pos (17U) | |
3888 #define CAN_F8R1_FB17_Msk (0x1U << CAN_F8R1_FB17_Pos) /*!< 0x00020000 */ | |
3889 #define CAN_F8R1_FB17 CAN_F8R1_FB17_Msk /*!<Filter bit 17 */ | |
3890 #define CAN_F8R1_FB18_Pos (18U) | |
3891 #define CAN_F8R1_FB18_Msk (0x1U << CAN_F8R1_FB18_Pos) /*!< 0x00040000 */ | |
3892 #define CAN_F8R1_FB18 CAN_F8R1_FB18_Msk /*!<Filter bit 18 */ | |
3893 #define CAN_F8R1_FB19_Pos (19U) | |
3894 #define CAN_F8R1_FB19_Msk (0x1U << CAN_F8R1_FB19_Pos) /*!< 0x00080000 */ | |
3895 #define CAN_F8R1_FB19 CAN_F8R1_FB19_Msk /*!<Filter bit 19 */ | |
3896 #define CAN_F8R1_FB20_Pos (20U) | |
3897 #define CAN_F8R1_FB20_Msk (0x1U << CAN_F8R1_FB20_Pos) /*!< 0x00100000 */ | |
3898 #define CAN_F8R1_FB20 CAN_F8R1_FB20_Msk /*!<Filter bit 20 */ | |
3899 #define CAN_F8R1_FB21_Pos (21U) | |
3900 #define CAN_F8R1_FB21_Msk (0x1U << CAN_F8R1_FB21_Pos) /*!< 0x00200000 */ | |
3901 #define CAN_F8R1_FB21 CAN_F8R1_FB21_Msk /*!<Filter bit 21 */ | |
3902 #define CAN_F8R1_FB22_Pos (22U) | |
3903 #define CAN_F8R1_FB22_Msk (0x1U << CAN_F8R1_FB22_Pos) /*!< 0x00400000 */ | |
3904 #define CAN_F8R1_FB22 CAN_F8R1_FB22_Msk /*!<Filter bit 22 */ | |
3905 #define CAN_F8R1_FB23_Pos (23U) | |
3906 #define CAN_F8R1_FB23_Msk (0x1U << CAN_F8R1_FB23_Pos) /*!< 0x00800000 */ | |
3907 #define CAN_F8R1_FB23 CAN_F8R1_FB23_Msk /*!<Filter bit 23 */ | |
3908 #define CAN_F8R1_FB24_Pos (24U) | |
3909 #define CAN_F8R1_FB24_Msk (0x1U << CAN_F8R1_FB24_Pos) /*!< 0x01000000 */ | |
3910 #define CAN_F8R1_FB24 CAN_F8R1_FB24_Msk /*!<Filter bit 24 */ | |
3911 #define CAN_F8R1_FB25_Pos (25U) | |
3912 #define CAN_F8R1_FB25_Msk (0x1U << CAN_F8R1_FB25_Pos) /*!< 0x02000000 */ | |
3913 #define CAN_F8R1_FB25 CAN_F8R1_FB25_Msk /*!<Filter bit 25 */ | |
3914 #define CAN_F8R1_FB26_Pos (26U) | |
3915 #define CAN_F8R1_FB26_Msk (0x1U << CAN_F8R1_FB26_Pos) /*!< 0x04000000 */ | |
3916 #define CAN_F8R1_FB26 CAN_F8R1_FB26_Msk /*!<Filter bit 26 */ | |
3917 #define CAN_F8R1_FB27_Pos (27U) | |
3918 #define CAN_F8R1_FB27_Msk (0x1U << CAN_F8R1_FB27_Pos) /*!< 0x08000000 */ | |
3919 #define CAN_F8R1_FB27 CAN_F8R1_FB27_Msk /*!<Filter bit 27 */ | |
3920 #define CAN_F8R1_FB28_Pos (28U) | |
3921 #define CAN_F8R1_FB28_Msk (0x1U << CAN_F8R1_FB28_Pos) /*!< 0x10000000 */ | |
3922 #define CAN_F8R1_FB28 CAN_F8R1_FB28_Msk /*!<Filter bit 28 */ | |
3923 #define CAN_F8R1_FB29_Pos (29U) | |
3924 #define CAN_F8R1_FB29_Msk (0x1U << CAN_F8R1_FB29_Pos) /*!< 0x20000000 */ | |
3925 #define CAN_F8R1_FB29 CAN_F8R1_FB29_Msk /*!<Filter bit 29 */ | |
3926 #define CAN_F8R1_FB30_Pos (30U) | |
3927 #define CAN_F8R1_FB30_Msk (0x1U << CAN_F8R1_FB30_Pos) /*!< 0x40000000 */ | |
3928 #define CAN_F8R1_FB30 CAN_F8R1_FB30_Msk /*!<Filter bit 30 */ | |
3929 #define CAN_F8R1_FB31_Pos (31U) | |
3930 #define CAN_F8R1_FB31_Msk (0x1U << CAN_F8R1_FB31_Pos) /*!< 0x80000000 */ | |
3931 #define CAN_F8R1_FB31 CAN_F8R1_FB31_Msk /*!<Filter bit 31 */ | |
3932 | |
3933 /******************* Bit definition for CAN_F9R1 register *******************/ | |
3934 #define CAN_F9R1_FB0_Pos (0U) | |
3935 #define CAN_F9R1_FB0_Msk (0x1U << CAN_F9R1_FB0_Pos) /*!< 0x00000001 */ | |
3936 #define CAN_F9R1_FB0 CAN_F9R1_FB0_Msk /*!<Filter bit 0 */ | |
3937 #define CAN_F9R1_FB1_Pos (1U) | |
3938 #define CAN_F9R1_FB1_Msk (0x1U << CAN_F9R1_FB1_Pos) /*!< 0x00000002 */ | |
3939 #define CAN_F9R1_FB1 CAN_F9R1_FB1_Msk /*!<Filter bit 1 */ | |
3940 #define CAN_F9R1_FB2_Pos (2U) | |
3941 #define CAN_F9R1_FB2_Msk (0x1U << CAN_F9R1_FB2_Pos) /*!< 0x00000004 */ | |
3942 #define CAN_F9R1_FB2 CAN_F9R1_FB2_Msk /*!<Filter bit 2 */ | |
3943 #define CAN_F9R1_FB3_Pos (3U) | |
3944 #define CAN_F9R1_FB3_Msk (0x1U << CAN_F9R1_FB3_Pos) /*!< 0x00000008 */ | |
3945 #define CAN_F9R1_FB3 CAN_F9R1_FB3_Msk /*!<Filter bit 3 */ | |
3946 #define CAN_F9R1_FB4_Pos (4U) | |
3947 #define CAN_F9R1_FB4_Msk (0x1U << CAN_F9R1_FB4_Pos) /*!< 0x00000010 */ | |
3948 #define CAN_F9R1_FB4 CAN_F9R1_FB4_Msk /*!<Filter bit 4 */ | |
3949 #define CAN_F9R1_FB5_Pos (5U) | |
3950 #define CAN_F9R1_FB5_Msk (0x1U << CAN_F9R1_FB5_Pos) /*!< 0x00000020 */ | |
3951 #define CAN_F9R1_FB5 CAN_F9R1_FB5_Msk /*!<Filter bit 5 */ | |
3952 #define CAN_F9R1_FB6_Pos (6U) | |
3953 #define CAN_F9R1_FB6_Msk (0x1U << CAN_F9R1_FB6_Pos) /*!< 0x00000040 */ | |
3954 #define CAN_F9R1_FB6 CAN_F9R1_FB6_Msk /*!<Filter bit 6 */ | |
3955 #define CAN_F9R1_FB7_Pos (7U) | |
3956 #define CAN_F9R1_FB7_Msk (0x1U << CAN_F9R1_FB7_Pos) /*!< 0x00000080 */ | |
3957 #define CAN_F9R1_FB7 CAN_F9R1_FB7_Msk /*!<Filter bit 7 */ | |
3958 #define CAN_F9R1_FB8_Pos (8U) | |
3959 #define CAN_F9R1_FB8_Msk (0x1U << CAN_F9R1_FB8_Pos) /*!< 0x00000100 */ | |
3960 #define CAN_F9R1_FB8 CAN_F9R1_FB8_Msk /*!<Filter bit 8 */ | |
3961 #define CAN_F9R1_FB9_Pos (9U) | |
3962 #define CAN_F9R1_FB9_Msk (0x1U << CAN_F9R1_FB9_Pos) /*!< 0x00000200 */ | |
3963 #define CAN_F9R1_FB9 CAN_F9R1_FB9_Msk /*!<Filter bit 9 */ | |
3964 #define CAN_F9R1_FB10_Pos (10U) | |
3965 #define CAN_F9R1_FB10_Msk (0x1U << CAN_F9R1_FB10_Pos) /*!< 0x00000400 */ | |
3966 #define CAN_F9R1_FB10 CAN_F9R1_FB10_Msk /*!<Filter bit 10 */ | |
3967 #define CAN_F9R1_FB11_Pos (11U) | |
3968 #define CAN_F9R1_FB11_Msk (0x1U << CAN_F9R1_FB11_Pos) /*!< 0x00000800 */ | |
3969 #define CAN_F9R1_FB11 CAN_F9R1_FB11_Msk /*!<Filter bit 11 */ | |
3970 #define CAN_F9R1_FB12_Pos (12U) | |
3971 #define CAN_F9R1_FB12_Msk (0x1U << CAN_F9R1_FB12_Pos) /*!< 0x00001000 */ | |
3972 #define CAN_F9R1_FB12 CAN_F9R1_FB12_Msk /*!<Filter bit 12 */ | |
3973 #define CAN_F9R1_FB13_Pos (13U) | |
3974 #define CAN_F9R1_FB13_Msk (0x1U << CAN_F9R1_FB13_Pos) /*!< 0x00002000 */ | |
3975 #define CAN_F9R1_FB13 CAN_F9R1_FB13_Msk /*!<Filter bit 13 */ | |
3976 #define CAN_F9R1_FB14_Pos (14U) | |
3977 #define CAN_F9R1_FB14_Msk (0x1U << CAN_F9R1_FB14_Pos) /*!< 0x00004000 */ | |
3978 #define CAN_F9R1_FB14 CAN_F9R1_FB14_Msk /*!<Filter bit 14 */ | |
3979 #define CAN_F9R1_FB15_Pos (15U) | |
3980 #define CAN_F9R1_FB15_Msk (0x1U << CAN_F9R1_FB15_Pos) /*!< 0x00008000 */ | |
3981 #define CAN_F9R1_FB15 CAN_F9R1_FB15_Msk /*!<Filter bit 15 */ | |
3982 #define CAN_F9R1_FB16_Pos (16U) | |
3983 #define CAN_F9R1_FB16_Msk (0x1U << CAN_F9R1_FB16_Pos) /*!< 0x00010000 */ | |
3984 #define CAN_F9R1_FB16 CAN_F9R1_FB16_Msk /*!<Filter bit 16 */ | |
3985 #define CAN_F9R1_FB17_Pos (17U) | |
3986 #define CAN_F9R1_FB17_Msk (0x1U << CAN_F9R1_FB17_Pos) /*!< 0x00020000 */ | |
3987 #define CAN_F9R1_FB17 CAN_F9R1_FB17_Msk /*!<Filter bit 17 */ | |
3988 #define CAN_F9R1_FB18_Pos (18U) | |
3989 #define CAN_F9R1_FB18_Msk (0x1U << CAN_F9R1_FB18_Pos) /*!< 0x00040000 */ | |
3990 #define CAN_F9R1_FB18 CAN_F9R1_FB18_Msk /*!<Filter bit 18 */ | |
3991 #define CAN_F9R1_FB19_Pos (19U) | |
3992 #define CAN_F9R1_FB19_Msk (0x1U << CAN_F9R1_FB19_Pos) /*!< 0x00080000 */ | |
3993 #define CAN_F9R1_FB19 CAN_F9R1_FB19_Msk /*!<Filter bit 19 */ | |
3994 #define CAN_F9R1_FB20_Pos (20U) | |
3995 #define CAN_F9R1_FB20_Msk (0x1U << CAN_F9R1_FB20_Pos) /*!< 0x00100000 */ | |
3996 #define CAN_F9R1_FB20 CAN_F9R1_FB20_Msk /*!<Filter bit 20 */ | |
3997 #define CAN_F9R1_FB21_Pos (21U) | |
3998 #define CAN_F9R1_FB21_Msk (0x1U << CAN_F9R1_FB21_Pos) /*!< 0x00200000 */ | |
3999 #define CAN_F9R1_FB21 CAN_F9R1_FB21_Msk /*!<Filter bit 21 */ | |
4000 #define CAN_F9R1_FB22_Pos (22U) | |
4001 #define CAN_F9R1_FB22_Msk (0x1U << CAN_F9R1_FB22_Pos) /*!< 0x00400000 */ | |
4002 #define CAN_F9R1_FB22 CAN_F9R1_FB22_Msk /*!<Filter bit 22 */ | |
4003 #define CAN_F9R1_FB23_Pos (23U) | |
4004 #define CAN_F9R1_FB23_Msk (0x1U << CAN_F9R1_FB23_Pos) /*!< 0x00800000 */ | |
4005 #define CAN_F9R1_FB23 CAN_F9R1_FB23_Msk /*!<Filter bit 23 */ | |
4006 #define CAN_F9R1_FB24_Pos (24U) | |
4007 #define CAN_F9R1_FB24_Msk (0x1U << CAN_F9R1_FB24_Pos) /*!< 0x01000000 */ | |
4008 #define CAN_F9R1_FB24 CAN_F9R1_FB24_Msk /*!<Filter bit 24 */ | |
4009 #define CAN_F9R1_FB25_Pos (25U) | |
4010 #define CAN_F9R1_FB25_Msk (0x1U << CAN_F9R1_FB25_Pos) /*!< 0x02000000 */ | |
4011 #define CAN_F9R1_FB25 CAN_F9R1_FB25_Msk /*!<Filter bit 25 */ | |
4012 #define CAN_F9R1_FB26_Pos (26U) | |
4013 #define CAN_F9R1_FB26_Msk (0x1U << CAN_F9R1_FB26_Pos) /*!< 0x04000000 */ | |
4014 #define CAN_F9R1_FB26 CAN_F9R1_FB26_Msk /*!<Filter bit 26 */ | |
4015 #define CAN_F9R1_FB27_Pos (27U) | |
4016 #define CAN_F9R1_FB27_Msk (0x1U << CAN_F9R1_FB27_Pos) /*!< 0x08000000 */ | |
4017 #define CAN_F9R1_FB27 CAN_F9R1_FB27_Msk /*!<Filter bit 27 */ | |
4018 #define CAN_F9R1_FB28_Pos (28U) | |
4019 #define CAN_F9R1_FB28_Msk (0x1U << CAN_F9R1_FB28_Pos) /*!< 0x10000000 */ | |
4020 #define CAN_F9R1_FB28 CAN_F9R1_FB28_Msk /*!<Filter bit 28 */ | |
4021 #define CAN_F9R1_FB29_Pos (29U) | |
4022 #define CAN_F9R1_FB29_Msk (0x1U << CAN_F9R1_FB29_Pos) /*!< 0x20000000 */ | |
4023 #define CAN_F9R1_FB29 CAN_F9R1_FB29_Msk /*!<Filter bit 29 */ | |
4024 #define CAN_F9R1_FB30_Pos (30U) | |
4025 #define CAN_F9R1_FB30_Msk (0x1U << CAN_F9R1_FB30_Pos) /*!< 0x40000000 */ | |
4026 #define CAN_F9R1_FB30 CAN_F9R1_FB30_Msk /*!<Filter bit 30 */ | |
4027 #define CAN_F9R1_FB31_Pos (31U) | |
4028 #define CAN_F9R1_FB31_Msk (0x1U << CAN_F9R1_FB31_Pos) /*!< 0x80000000 */ | |
4029 #define CAN_F9R1_FB31 CAN_F9R1_FB31_Msk /*!<Filter bit 31 */ | |
4030 | |
4031 /******************* Bit definition for CAN_F10R1 register ******************/ | |
4032 #define CAN_F10R1_FB0_Pos (0U) | |
4033 #define CAN_F10R1_FB0_Msk (0x1U << CAN_F10R1_FB0_Pos) /*!< 0x00000001 */ | |
4034 #define CAN_F10R1_FB0 CAN_F10R1_FB0_Msk /*!<Filter bit 0 */ | |
4035 #define CAN_F10R1_FB1_Pos (1U) | |
4036 #define CAN_F10R1_FB1_Msk (0x1U << CAN_F10R1_FB1_Pos) /*!< 0x00000002 */ | |
4037 #define CAN_F10R1_FB1 CAN_F10R1_FB1_Msk /*!<Filter bit 1 */ | |
4038 #define CAN_F10R1_FB2_Pos (2U) | |
4039 #define CAN_F10R1_FB2_Msk (0x1U << CAN_F10R1_FB2_Pos) /*!< 0x00000004 */ | |
4040 #define CAN_F10R1_FB2 CAN_F10R1_FB2_Msk /*!<Filter bit 2 */ | |
4041 #define CAN_F10R1_FB3_Pos (3U) | |
4042 #define CAN_F10R1_FB3_Msk (0x1U << CAN_F10R1_FB3_Pos) /*!< 0x00000008 */ | |
4043 #define CAN_F10R1_FB3 CAN_F10R1_FB3_Msk /*!<Filter bit 3 */ | |
4044 #define CAN_F10R1_FB4_Pos (4U) | |
4045 #define CAN_F10R1_FB4_Msk (0x1U << CAN_F10R1_FB4_Pos) /*!< 0x00000010 */ | |
4046 #define CAN_F10R1_FB4 CAN_F10R1_FB4_Msk /*!<Filter bit 4 */ | |
4047 #define CAN_F10R1_FB5_Pos (5U) | |
4048 #define CAN_F10R1_FB5_Msk (0x1U << CAN_F10R1_FB5_Pos) /*!< 0x00000020 */ | |
4049 #define CAN_F10R1_FB5 CAN_F10R1_FB5_Msk /*!<Filter bit 5 */ | |
4050 #define CAN_F10R1_FB6_Pos (6U) | |
4051 #define CAN_F10R1_FB6_Msk (0x1U << CAN_F10R1_FB6_Pos) /*!< 0x00000040 */ | |
4052 #define CAN_F10R1_FB6 CAN_F10R1_FB6_Msk /*!<Filter bit 6 */ | |
4053 #define CAN_F10R1_FB7_Pos (7U) | |
4054 #define CAN_F10R1_FB7_Msk (0x1U << CAN_F10R1_FB7_Pos) /*!< 0x00000080 */ | |
4055 #define CAN_F10R1_FB7 CAN_F10R1_FB7_Msk /*!<Filter bit 7 */ | |
4056 #define CAN_F10R1_FB8_Pos (8U) | |
4057 #define CAN_F10R1_FB8_Msk (0x1U << CAN_F10R1_FB8_Pos) /*!< 0x00000100 */ | |
4058 #define CAN_F10R1_FB8 CAN_F10R1_FB8_Msk /*!<Filter bit 8 */ | |
4059 #define CAN_F10R1_FB9_Pos (9U) | |
4060 #define CAN_F10R1_FB9_Msk (0x1U << CAN_F10R1_FB9_Pos) /*!< 0x00000200 */ | |
4061 #define CAN_F10R1_FB9 CAN_F10R1_FB9_Msk /*!<Filter bit 9 */ | |
4062 #define CAN_F10R1_FB10_Pos (10U) | |
4063 #define CAN_F10R1_FB10_Msk (0x1U << CAN_F10R1_FB10_Pos) /*!< 0x00000400 */ | |
4064 #define CAN_F10R1_FB10 CAN_F10R1_FB10_Msk /*!<Filter bit 10 */ | |
4065 #define CAN_F10R1_FB11_Pos (11U) | |
4066 #define CAN_F10R1_FB11_Msk (0x1U << CAN_F10R1_FB11_Pos) /*!< 0x00000800 */ | |
4067 #define CAN_F10R1_FB11 CAN_F10R1_FB11_Msk /*!<Filter bit 11 */ | |
4068 #define CAN_F10R1_FB12_Pos (12U) | |
4069 #define CAN_F10R1_FB12_Msk (0x1U << CAN_F10R1_FB12_Pos) /*!< 0x00001000 */ | |
4070 #define CAN_F10R1_FB12 CAN_F10R1_FB12_Msk /*!<Filter bit 12 */ | |
4071 #define CAN_F10R1_FB13_Pos (13U) | |
4072 #define CAN_F10R1_FB13_Msk (0x1U << CAN_F10R1_FB13_Pos) /*!< 0x00002000 */ | |
4073 #define CAN_F10R1_FB13 CAN_F10R1_FB13_Msk /*!<Filter bit 13 */ | |
4074 #define CAN_F10R1_FB14_Pos (14U) | |
4075 #define CAN_F10R1_FB14_Msk (0x1U << CAN_F10R1_FB14_Pos) /*!< 0x00004000 */ | |
4076 #define CAN_F10R1_FB14 CAN_F10R1_FB14_Msk /*!<Filter bit 14 */ | |
4077 #define CAN_F10R1_FB15_Pos (15U) | |
4078 #define CAN_F10R1_FB15_Msk (0x1U << CAN_F10R1_FB15_Pos) /*!< 0x00008000 */ | |
4079 #define CAN_F10R1_FB15 CAN_F10R1_FB15_Msk /*!<Filter bit 15 */ | |
4080 #define CAN_F10R1_FB16_Pos (16U) | |
4081 #define CAN_F10R1_FB16_Msk (0x1U << CAN_F10R1_FB16_Pos) /*!< 0x00010000 */ | |
4082 #define CAN_F10R1_FB16 CAN_F10R1_FB16_Msk /*!<Filter bit 16 */ | |
4083 #define CAN_F10R1_FB17_Pos (17U) | |
4084 #define CAN_F10R1_FB17_Msk (0x1U << CAN_F10R1_FB17_Pos) /*!< 0x00020000 */ | |
4085 #define CAN_F10R1_FB17 CAN_F10R1_FB17_Msk /*!<Filter bit 17 */ | |
4086 #define CAN_F10R1_FB18_Pos (18U) | |
4087 #define CAN_F10R1_FB18_Msk (0x1U << CAN_F10R1_FB18_Pos) /*!< 0x00040000 */ | |
4088 #define CAN_F10R1_FB18 CAN_F10R1_FB18_Msk /*!<Filter bit 18 */ | |
4089 #define CAN_F10R1_FB19_Pos (19U) | |
4090 #define CAN_F10R1_FB19_Msk (0x1U << CAN_F10R1_FB19_Pos) /*!< 0x00080000 */ | |
4091 #define CAN_F10R1_FB19 CAN_F10R1_FB19_Msk /*!<Filter bit 19 */ | |
4092 #define CAN_F10R1_FB20_Pos (20U) | |
4093 #define CAN_F10R1_FB20_Msk (0x1U << CAN_F10R1_FB20_Pos) /*!< 0x00100000 */ | |
4094 #define CAN_F10R1_FB20 CAN_F10R1_FB20_Msk /*!<Filter bit 20 */ | |
4095 #define CAN_F10R1_FB21_Pos (21U) | |
4096 #define CAN_F10R1_FB21_Msk (0x1U << CAN_F10R1_FB21_Pos) /*!< 0x00200000 */ | |
4097 #define CAN_F10R1_FB21 CAN_F10R1_FB21_Msk /*!<Filter bit 21 */ | |
4098 #define CAN_F10R1_FB22_Pos (22U) | |
4099 #define CAN_F10R1_FB22_Msk (0x1U << CAN_F10R1_FB22_Pos) /*!< 0x00400000 */ | |
4100 #define CAN_F10R1_FB22 CAN_F10R1_FB22_Msk /*!<Filter bit 22 */ | |
4101 #define CAN_F10R1_FB23_Pos (23U) | |
4102 #define CAN_F10R1_FB23_Msk (0x1U << CAN_F10R1_FB23_Pos) /*!< 0x00800000 */ | |
4103 #define CAN_F10R1_FB23 CAN_F10R1_FB23_Msk /*!<Filter bit 23 */ | |
4104 #define CAN_F10R1_FB24_Pos (24U) | |
4105 #define CAN_F10R1_FB24_Msk (0x1U << CAN_F10R1_FB24_Pos) /*!< 0x01000000 */ | |
4106 #define CAN_F10R1_FB24 CAN_F10R1_FB24_Msk /*!<Filter bit 24 */ | |
4107 #define CAN_F10R1_FB25_Pos (25U) | |
4108 #define CAN_F10R1_FB25_Msk (0x1U << CAN_F10R1_FB25_Pos) /*!< 0x02000000 */ | |
4109 #define CAN_F10R1_FB25 CAN_F10R1_FB25_Msk /*!<Filter bit 25 */ | |
4110 #define CAN_F10R1_FB26_Pos (26U) | |
4111 #define CAN_F10R1_FB26_Msk (0x1U << CAN_F10R1_FB26_Pos) /*!< 0x04000000 */ | |
4112 #define CAN_F10R1_FB26 CAN_F10R1_FB26_Msk /*!<Filter bit 26 */ | |
4113 #define CAN_F10R1_FB27_Pos (27U) | |
4114 #define CAN_F10R1_FB27_Msk (0x1U << CAN_F10R1_FB27_Pos) /*!< 0x08000000 */ | |
4115 #define CAN_F10R1_FB27 CAN_F10R1_FB27_Msk /*!<Filter bit 27 */ | |
4116 #define CAN_F10R1_FB28_Pos (28U) | |
4117 #define CAN_F10R1_FB28_Msk (0x1U << CAN_F10R1_FB28_Pos) /*!< 0x10000000 */ | |
4118 #define CAN_F10R1_FB28 CAN_F10R1_FB28_Msk /*!<Filter bit 28 */ | |
4119 #define CAN_F10R1_FB29_Pos (29U) | |
4120 #define CAN_F10R1_FB29_Msk (0x1U << CAN_F10R1_FB29_Pos) /*!< 0x20000000 */ | |
4121 #define CAN_F10R1_FB29 CAN_F10R1_FB29_Msk /*!<Filter bit 29 */ | |
4122 #define CAN_F10R1_FB30_Pos (30U) | |
4123 #define CAN_F10R1_FB30_Msk (0x1U << CAN_F10R1_FB30_Pos) /*!< 0x40000000 */ | |
4124 #define CAN_F10R1_FB30 CAN_F10R1_FB30_Msk /*!<Filter bit 30 */ | |
4125 #define CAN_F10R1_FB31_Pos (31U) | |
4126 #define CAN_F10R1_FB31_Msk (0x1U << CAN_F10R1_FB31_Pos) /*!< 0x80000000 */ | |
4127 #define CAN_F10R1_FB31 CAN_F10R1_FB31_Msk /*!<Filter bit 31 */ | |
4128 | |
4129 /******************* Bit definition for CAN_F11R1 register ******************/ | |
4130 #define CAN_F11R1_FB0_Pos (0U) | |
4131 #define CAN_F11R1_FB0_Msk (0x1U << CAN_F11R1_FB0_Pos) /*!< 0x00000001 */ | |
4132 #define CAN_F11R1_FB0 CAN_F11R1_FB0_Msk /*!<Filter bit 0 */ | |
4133 #define CAN_F11R1_FB1_Pos (1U) | |
4134 #define CAN_F11R1_FB1_Msk (0x1U << CAN_F11R1_FB1_Pos) /*!< 0x00000002 */ | |
4135 #define CAN_F11R1_FB1 CAN_F11R1_FB1_Msk /*!<Filter bit 1 */ | |
4136 #define CAN_F11R1_FB2_Pos (2U) | |
4137 #define CAN_F11R1_FB2_Msk (0x1U << CAN_F11R1_FB2_Pos) /*!< 0x00000004 */ | |
4138 #define CAN_F11R1_FB2 CAN_F11R1_FB2_Msk /*!<Filter bit 2 */ | |
4139 #define CAN_F11R1_FB3_Pos (3U) | |
4140 #define CAN_F11R1_FB3_Msk (0x1U << CAN_F11R1_FB3_Pos) /*!< 0x00000008 */ | |
4141 #define CAN_F11R1_FB3 CAN_F11R1_FB3_Msk /*!<Filter bit 3 */ | |
4142 #define CAN_F11R1_FB4_Pos (4U) | |
4143 #define CAN_F11R1_FB4_Msk (0x1U << CAN_F11R1_FB4_Pos) /*!< 0x00000010 */ | |
4144 #define CAN_F11R1_FB4 CAN_F11R1_FB4_Msk /*!<Filter bit 4 */ | |
4145 #define CAN_F11R1_FB5_Pos (5U) | |
4146 #define CAN_F11R1_FB5_Msk (0x1U << CAN_F11R1_FB5_Pos) /*!< 0x00000020 */ | |
4147 #define CAN_F11R1_FB5 CAN_F11R1_FB5_Msk /*!<Filter bit 5 */ | |
4148 #define CAN_F11R1_FB6_Pos (6U) | |
4149 #define CAN_F11R1_FB6_Msk (0x1U << CAN_F11R1_FB6_Pos) /*!< 0x00000040 */ | |
4150 #define CAN_F11R1_FB6 CAN_F11R1_FB6_Msk /*!<Filter bit 6 */ | |
4151 #define CAN_F11R1_FB7_Pos (7U) | |
4152 #define CAN_F11R1_FB7_Msk (0x1U << CAN_F11R1_FB7_Pos) /*!< 0x00000080 */ | |
4153 #define CAN_F11R1_FB7 CAN_F11R1_FB7_Msk /*!<Filter bit 7 */ | |
4154 #define CAN_F11R1_FB8_Pos (8U) | |
4155 #define CAN_F11R1_FB8_Msk (0x1U << CAN_F11R1_FB8_Pos) /*!< 0x00000100 */ | |
4156 #define CAN_F11R1_FB8 CAN_F11R1_FB8_Msk /*!<Filter bit 8 */ | |
4157 #define CAN_F11R1_FB9_Pos (9U) | |
4158 #define CAN_F11R1_FB9_Msk (0x1U << CAN_F11R1_FB9_Pos) /*!< 0x00000200 */ | |
4159 #define CAN_F11R1_FB9 CAN_F11R1_FB9_Msk /*!<Filter bit 9 */ | |
4160 #define CAN_F11R1_FB10_Pos (10U) | |
4161 #define CAN_F11R1_FB10_Msk (0x1U << CAN_F11R1_FB10_Pos) /*!< 0x00000400 */ | |
4162 #define CAN_F11R1_FB10 CAN_F11R1_FB10_Msk /*!<Filter bit 10 */ | |
4163 #define CAN_F11R1_FB11_Pos (11U) | |
4164 #define CAN_F11R1_FB11_Msk (0x1U << CAN_F11R1_FB11_Pos) /*!< 0x00000800 */ | |
4165 #define CAN_F11R1_FB11 CAN_F11R1_FB11_Msk /*!<Filter bit 11 */ | |
4166 #define CAN_F11R1_FB12_Pos (12U) | |
4167 #define CAN_F11R1_FB12_Msk (0x1U << CAN_F11R1_FB12_Pos) /*!< 0x00001000 */ | |
4168 #define CAN_F11R1_FB12 CAN_F11R1_FB12_Msk /*!<Filter bit 12 */ | |
4169 #define CAN_F11R1_FB13_Pos (13U) | |
4170 #define CAN_F11R1_FB13_Msk (0x1U << CAN_F11R1_FB13_Pos) /*!< 0x00002000 */ | |
4171 #define CAN_F11R1_FB13 CAN_F11R1_FB13_Msk /*!<Filter bit 13 */ | |
4172 #define CAN_F11R1_FB14_Pos (14U) | |
4173 #define CAN_F11R1_FB14_Msk (0x1U << CAN_F11R1_FB14_Pos) /*!< 0x00004000 */ | |
4174 #define CAN_F11R1_FB14 CAN_F11R1_FB14_Msk /*!<Filter bit 14 */ | |
4175 #define CAN_F11R1_FB15_Pos (15U) | |
4176 #define CAN_F11R1_FB15_Msk (0x1U << CAN_F11R1_FB15_Pos) /*!< 0x00008000 */ | |
4177 #define CAN_F11R1_FB15 CAN_F11R1_FB15_Msk /*!<Filter bit 15 */ | |
4178 #define CAN_F11R1_FB16_Pos (16U) | |
4179 #define CAN_F11R1_FB16_Msk (0x1U << CAN_F11R1_FB16_Pos) /*!< 0x00010000 */ | |
4180 #define CAN_F11R1_FB16 CAN_F11R1_FB16_Msk /*!<Filter bit 16 */ | |
4181 #define CAN_F11R1_FB17_Pos (17U) | |
4182 #define CAN_F11R1_FB17_Msk (0x1U << CAN_F11R1_FB17_Pos) /*!< 0x00020000 */ | |
4183 #define CAN_F11R1_FB17 CAN_F11R1_FB17_Msk /*!<Filter bit 17 */ | |
4184 #define CAN_F11R1_FB18_Pos (18U) | |
4185 #define CAN_F11R1_FB18_Msk (0x1U << CAN_F11R1_FB18_Pos) /*!< 0x00040000 */ | |
4186 #define CAN_F11R1_FB18 CAN_F11R1_FB18_Msk /*!<Filter bit 18 */ | |
4187 #define CAN_F11R1_FB19_Pos (19U) | |
4188 #define CAN_F11R1_FB19_Msk (0x1U << CAN_F11R1_FB19_Pos) /*!< 0x00080000 */ | |
4189 #define CAN_F11R1_FB19 CAN_F11R1_FB19_Msk /*!<Filter bit 19 */ | |
4190 #define CAN_F11R1_FB20_Pos (20U) | |
4191 #define CAN_F11R1_FB20_Msk (0x1U << CAN_F11R1_FB20_Pos) /*!< 0x00100000 */ | |
4192 #define CAN_F11R1_FB20 CAN_F11R1_FB20_Msk /*!<Filter bit 20 */ | |
4193 #define CAN_F11R1_FB21_Pos (21U) | |
4194 #define CAN_F11R1_FB21_Msk (0x1U << CAN_F11R1_FB21_Pos) /*!< 0x00200000 */ | |
4195 #define CAN_F11R1_FB21 CAN_F11R1_FB21_Msk /*!<Filter bit 21 */ | |
4196 #define CAN_F11R1_FB22_Pos (22U) | |
4197 #define CAN_F11R1_FB22_Msk (0x1U << CAN_F11R1_FB22_Pos) /*!< 0x00400000 */ | |
4198 #define CAN_F11R1_FB22 CAN_F11R1_FB22_Msk /*!<Filter bit 22 */ | |
4199 #define CAN_F11R1_FB23_Pos (23U) | |
4200 #define CAN_F11R1_FB23_Msk (0x1U << CAN_F11R1_FB23_Pos) /*!< 0x00800000 */ | |
4201 #define CAN_F11R1_FB23 CAN_F11R1_FB23_Msk /*!<Filter bit 23 */ | |
4202 #define CAN_F11R1_FB24_Pos (24U) | |
4203 #define CAN_F11R1_FB24_Msk (0x1U << CAN_F11R1_FB24_Pos) /*!< 0x01000000 */ | |
4204 #define CAN_F11R1_FB24 CAN_F11R1_FB24_Msk /*!<Filter bit 24 */ | |
4205 #define CAN_F11R1_FB25_Pos (25U) | |
4206 #define CAN_F11R1_FB25_Msk (0x1U << CAN_F11R1_FB25_Pos) /*!< 0x02000000 */ | |
4207 #define CAN_F11R1_FB25 CAN_F11R1_FB25_Msk /*!<Filter bit 25 */ | |
4208 #define CAN_F11R1_FB26_Pos (26U) | |
4209 #define CAN_F11R1_FB26_Msk (0x1U << CAN_F11R1_FB26_Pos) /*!< 0x04000000 */ | |
4210 #define CAN_F11R1_FB26 CAN_F11R1_FB26_Msk /*!<Filter bit 26 */ | |
4211 #define CAN_F11R1_FB27_Pos (27U) | |
4212 #define CAN_F11R1_FB27_Msk (0x1U << CAN_F11R1_FB27_Pos) /*!< 0x08000000 */ | |
4213 #define CAN_F11R1_FB27 CAN_F11R1_FB27_Msk /*!<Filter bit 27 */ | |
4214 #define CAN_F11R1_FB28_Pos (28U) | |
4215 #define CAN_F11R1_FB28_Msk (0x1U << CAN_F11R1_FB28_Pos) /*!< 0x10000000 */ | |
4216 #define CAN_F11R1_FB28 CAN_F11R1_FB28_Msk /*!<Filter bit 28 */ | |
4217 #define CAN_F11R1_FB29_Pos (29U) | |
4218 #define CAN_F11R1_FB29_Msk (0x1U << CAN_F11R1_FB29_Pos) /*!< 0x20000000 */ | |
4219 #define CAN_F11R1_FB29 CAN_F11R1_FB29_Msk /*!<Filter bit 29 */ | |
4220 #define CAN_F11R1_FB30_Pos (30U) | |
4221 #define CAN_F11R1_FB30_Msk (0x1U << CAN_F11R1_FB30_Pos) /*!< 0x40000000 */ | |
4222 #define CAN_F11R1_FB30 CAN_F11R1_FB30_Msk /*!<Filter bit 30 */ | |
4223 #define CAN_F11R1_FB31_Pos (31U) | |
4224 #define CAN_F11R1_FB31_Msk (0x1U << CAN_F11R1_FB31_Pos) /*!< 0x80000000 */ | |
4225 #define CAN_F11R1_FB31 CAN_F11R1_FB31_Msk /*!<Filter bit 31 */ | |
4226 | |
4227 /******************* Bit definition for CAN_F12R1 register ******************/ | |
4228 #define CAN_F12R1_FB0_Pos (0U) | |
4229 #define CAN_F12R1_FB0_Msk (0x1U << CAN_F12R1_FB0_Pos) /*!< 0x00000001 */ | |
4230 #define CAN_F12R1_FB0 CAN_F12R1_FB0_Msk /*!<Filter bit 0 */ | |
4231 #define CAN_F12R1_FB1_Pos (1U) | |
4232 #define CAN_F12R1_FB1_Msk (0x1U << CAN_F12R1_FB1_Pos) /*!< 0x00000002 */ | |
4233 #define CAN_F12R1_FB1 CAN_F12R1_FB1_Msk /*!<Filter bit 1 */ | |
4234 #define CAN_F12R1_FB2_Pos (2U) | |
4235 #define CAN_F12R1_FB2_Msk (0x1U << CAN_F12R1_FB2_Pos) /*!< 0x00000004 */ | |
4236 #define CAN_F12R1_FB2 CAN_F12R1_FB2_Msk /*!<Filter bit 2 */ | |
4237 #define CAN_F12R1_FB3_Pos (3U) | |
4238 #define CAN_F12R1_FB3_Msk (0x1U << CAN_F12R1_FB3_Pos) /*!< 0x00000008 */ | |
4239 #define CAN_F12R1_FB3 CAN_F12R1_FB3_Msk /*!<Filter bit 3 */ | |
4240 #define CAN_F12R1_FB4_Pos (4U) | |
4241 #define CAN_F12R1_FB4_Msk (0x1U << CAN_F12R1_FB4_Pos) /*!< 0x00000010 */ | |
4242 #define CAN_F12R1_FB4 CAN_F12R1_FB4_Msk /*!<Filter bit 4 */ | |
4243 #define CAN_F12R1_FB5_Pos (5U) | |
4244 #define CAN_F12R1_FB5_Msk (0x1U << CAN_F12R1_FB5_Pos) /*!< 0x00000020 */ | |
4245 #define CAN_F12R1_FB5 CAN_F12R1_FB5_Msk /*!<Filter bit 5 */ | |
4246 #define CAN_F12R1_FB6_Pos (6U) | |
4247 #define CAN_F12R1_FB6_Msk (0x1U << CAN_F12R1_FB6_Pos) /*!< 0x00000040 */ | |
4248 #define CAN_F12R1_FB6 CAN_F12R1_FB6_Msk /*!<Filter bit 6 */ | |
4249 #define CAN_F12R1_FB7_Pos (7U) | |
4250 #define CAN_F12R1_FB7_Msk (0x1U << CAN_F12R1_FB7_Pos) /*!< 0x00000080 */ | |
4251 #define CAN_F12R1_FB7 CAN_F12R1_FB7_Msk /*!<Filter bit 7 */ | |
4252 #define CAN_F12R1_FB8_Pos (8U) | |
4253 #define CAN_F12R1_FB8_Msk (0x1U << CAN_F12R1_FB8_Pos) /*!< 0x00000100 */ | |
4254 #define CAN_F12R1_FB8 CAN_F12R1_FB8_Msk /*!<Filter bit 8 */ | |
4255 #define CAN_F12R1_FB9_Pos (9U) | |
4256 #define CAN_F12R1_FB9_Msk (0x1U << CAN_F12R1_FB9_Pos) /*!< 0x00000200 */ | |
4257 #define CAN_F12R1_FB9 CAN_F12R1_FB9_Msk /*!<Filter bit 9 */ | |
4258 #define CAN_F12R1_FB10_Pos (10U) | |
4259 #define CAN_F12R1_FB10_Msk (0x1U << CAN_F12R1_FB10_Pos) /*!< 0x00000400 */ | |
4260 #define CAN_F12R1_FB10 CAN_F12R1_FB10_Msk /*!<Filter bit 10 */ | |
4261 #define CAN_F12R1_FB11_Pos (11U) | |
4262 #define CAN_F12R1_FB11_Msk (0x1U << CAN_F12R1_FB11_Pos) /*!< 0x00000800 */ | |
4263 #define CAN_F12R1_FB11 CAN_F12R1_FB11_Msk /*!<Filter bit 11 */ | |
4264 #define CAN_F12R1_FB12_Pos (12U) | |
4265 #define CAN_F12R1_FB12_Msk (0x1U << CAN_F12R1_FB12_Pos) /*!< 0x00001000 */ | |
4266 #define CAN_F12R1_FB12 CAN_F12R1_FB12_Msk /*!<Filter bit 12 */ | |
4267 #define CAN_F12R1_FB13_Pos (13U) | |
4268 #define CAN_F12R1_FB13_Msk (0x1U << CAN_F12R1_FB13_Pos) /*!< 0x00002000 */ | |
4269 #define CAN_F12R1_FB13 CAN_F12R1_FB13_Msk /*!<Filter bit 13 */ | |
4270 #define CAN_F12R1_FB14_Pos (14U) | |
4271 #define CAN_F12R1_FB14_Msk (0x1U << CAN_F12R1_FB14_Pos) /*!< 0x00004000 */ | |
4272 #define CAN_F12R1_FB14 CAN_F12R1_FB14_Msk /*!<Filter bit 14 */ | |
4273 #define CAN_F12R1_FB15_Pos (15U) | |
4274 #define CAN_F12R1_FB15_Msk (0x1U << CAN_F12R1_FB15_Pos) /*!< 0x00008000 */ | |
4275 #define CAN_F12R1_FB15 CAN_F12R1_FB15_Msk /*!<Filter bit 15 */ | |
4276 #define CAN_F12R1_FB16_Pos (16U) | |
4277 #define CAN_F12R1_FB16_Msk (0x1U << CAN_F12R1_FB16_Pos) /*!< 0x00010000 */ | |
4278 #define CAN_F12R1_FB16 CAN_F12R1_FB16_Msk /*!<Filter bit 16 */ | |
4279 #define CAN_F12R1_FB17_Pos (17U) | |
4280 #define CAN_F12R1_FB17_Msk (0x1U << CAN_F12R1_FB17_Pos) /*!< 0x00020000 */ | |
4281 #define CAN_F12R1_FB17 CAN_F12R1_FB17_Msk /*!<Filter bit 17 */ | |
4282 #define CAN_F12R1_FB18_Pos (18U) | |
4283 #define CAN_F12R1_FB18_Msk (0x1U << CAN_F12R1_FB18_Pos) /*!< 0x00040000 */ | |
4284 #define CAN_F12R1_FB18 CAN_F12R1_FB18_Msk /*!<Filter bit 18 */ | |
4285 #define CAN_F12R1_FB19_Pos (19U) | |
4286 #define CAN_F12R1_FB19_Msk (0x1U << CAN_F12R1_FB19_Pos) /*!< 0x00080000 */ | |
4287 #define CAN_F12R1_FB19 CAN_F12R1_FB19_Msk /*!<Filter bit 19 */ | |
4288 #define CAN_F12R1_FB20_Pos (20U) | |
4289 #define CAN_F12R1_FB20_Msk (0x1U << CAN_F12R1_FB20_Pos) /*!< 0x00100000 */ | |
4290 #define CAN_F12R1_FB20 CAN_F12R1_FB20_Msk /*!<Filter bit 20 */ | |
4291 #define CAN_F12R1_FB21_Pos (21U) | |
4292 #define CAN_F12R1_FB21_Msk (0x1U << CAN_F12R1_FB21_Pos) /*!< 0x00200000 */ | |
4293 #define CAN_F12R1_FB21 CAN_F12R1_FB21_Msk /*!<Filter bit 21 */ | |
4294 #define CAN_F12R1_FB22_Pos (22U) | |
4295 #define CAN_F12R1_FB22_Msk (0x1U << CAN_F12R1_FB22_Pos) /*!< 0x00400000 */ | |
4296 #define CAN_F12R1_FB22 CAN_F12R1_FB22_Msk /*!<Filter bit 22 */ | |
4297 #define CAN_F12R1_FB23_Pos (23U) | |
4298 #define CAN_F12R1_FB23_Msk (0x1U << CAN_F12R1_FB23_Pos) /*!< 0x00800000 */ | |
4299 #define CAN_F12R1_FB23 CAN_F12R1_FB23_Msk /*!<Filter bit 23 */ | |
4300 #define CAN_F12R1_FB24_Pos (24U) | |
4301 #define CAN_F12R1_FB24_Msk (0x1U << CAN_F12R1_FB24_Pos) /*!< 0x01000000 */ | |
4302 #define CAN_F12R1_FB24 CAN_F12R1_FB24_Msk /*!<Filter bit 24 */ | |
4303 #define CAN_F12R1_FB25_Pos (25U) | |
4304 #define CAN_F12R1_FB25_Msk (0x1U << CAN_F12R1_FB25_Pos) /*!< 0x02000000 */ | |
4305 #define CAN_F12R1_FB25 CAN_F12R1_FB25_Msk /*!<Filter bit 25 */ | |
4306 #define CAN_F12R1_FB26_Pos (26U) | |
4307 #define CAN_F12R1_FB26_Msk (0x1U << CAN_F12R1_FB26_Pos) /*!< 0x04000000 */ | |
4308 #define CAN_F12R1_FB26 CAN_F12R1_FB26_Msk /*!<Filter bit 26 */ | |
4309 #define CAN_F12R1_FB27_Pos (27U) | |
4310 #define CAN_F12R1_FB27_Msk (0x1U << CAN_F12R1_FB27_Pos) /*!< 0x08000000 */ | |
4311 #define CAN_F12R1_FB27 CAN_F12R1_FB27_Msk /*!<Filter bit 27 */ | |
4312 #define CAN_F12R1_FB28_Pos (28U) | |
4313 #define CAN_F12R1_FB28_Msk (0x1U << CAN_F12R1_FB28_Pos) /*!< 0x10000000 */ | |
4314 #define CAN_F12R1_FB28 CAN_F12R1_FB28_Msk /*!<Filter bit 28 */ | |
4315 #define CAN_F12R1_FB29_Pos (29U) | |
4316 #define CAN_F12R1_FB29_Msk (0x1U << CAN_F12R1_FB29_Pos) /*!< 0x20000000 */ | |
4317 #define CAN_F12R1_FB29 CAN_F12R1_FB29_Msk /*!<Filter bit 29 */ | |
4318 #define CAN_F12R1_FB30_Pos (30U) | |
4319 #define CAN_F12R1_FB30_Msk (0x1U << CAN_F12R1_FB30_Pos) /*!< 0x40000000 */ | |
4320 #define CAN_F12R1_FB30 CAN_F12R1_FB30_Msk /*!<Filter bit 30 */ | |
4321 #define CAN_F12R1_FB31_Pos (31U) | |
4322 #define CAN_F12R1_FB31_Msk (0x1U << CAN_F12R1_FB31_Pos) /*!< 0x80000000 */ | |
4323 #define CAN_F12R1_FB31 CAN_F12R1_FB31_Msk /*!<Filter bit 31 */ | |
4324 | |
4325 /******************* Bit definition for CAN_F13R1 register ******************/ | |
4326 #define CAN_F13R1_FB0_Pos (0U) | |
4327 #define CAN_F13R1_FB0_Msk (0x1U << CAN_F13R1_FB0_Pos) /*!< 0x00000001 */ | |
4328 #define CAN_F13R1_FB0 CAN_F13R1_FB0_Msk /*!<Filter bit 0 */ | |
4329 #define CAN_F13R1_FB1_Pos (1U) | |
4330 #define CAN_F13R1_FB1_Msk (0x1U << CAN_F13R1_FB1_Pos) /*!< 0x00000002 */ | |
4331 #define CAN_F13R1_FB1 CAN_F13R1_FB1_Msk /*!<Filter bit 1 */ | |
4332 #define CAN_F13R1_FB2_Pos (2U) | |
4333 #define CAN_F13R1_FB2_Msk (0x1U << CAN_F13R1_FB2_Pos) /*!< 0x00000004 */ | |
4334 #define CAN_F13R1_FB2 CAN_F13R1_FB2_Msk /*!<Filter bit 2 */ | |
4335 #define CAN_F13R1_FB3_Pos (3U) | |
4336 #define CAN_F13R1_FB3_Msk (0x1U << CAN_F13R1_FB3_Pos) /*!< 0x00000008 */ | |
4337 #define CAN_F13R1_FB3 CAN_F13R1_FB3_Msk /*!<Filter bit 3 */ | |
4338 #define CAN_F13R1_FB4_Pos (4U) | |
4339 #define CAN_F13R1_FB4_Msk (0x1U << CAN_F13R1_FB4_Pos) /*!< 0x00000010 */ | |
4340 #define CAN_F13R1_FB4 CAN_F13R1_FB4_Msk /*!<Filter bit 4 */ | |
4341 #define CAN_F13R1_FB5_Pos (5U) | |
4342 #define CAN_F13R1_FB5_Msk (0x1U << CAN_F13R1_FB5_Pos) /*!< 0x00000020 */ | |
4343 #define CAN_F13R1_FB5 CAN_F13R1_FB5_Msk /*!<Filter bit 5 */ | |
4344 #define CAN_F13R1_FB6_Pos (6U) | |
4345 #define CAN_F13R1_FB6_Msk (0x1U << CAN_F13R1_FB6_Pos) /*!< 0x00000040 */ | |
4346 #define CAN_F13R1_FB6 CAN_F13R1_FB6_Msk /*!<Filter bit 6 */ | |
4347 #define CAN_F13R1_FB7_Pos (7U) | |
4348 #define CAN_F13R1_FB7_Msk (0x1U << CAN_F13R1_FB7_Pos) /*!< 0x00000080 */ | |
4349 #define CAN_F13R1_FB7 CAN_F13R1_FB7_Msk /*!<Filter bit 7 */ | |
4350 #define CAN_F13R1_FB8_Pos (8U) | |
4351 #define CAN_F13R1_FB8_Msk (0x1U << CAN_F13R1_FB8_Pos) /*!< 0x00000100 */ | |
4352 #define CAN_F13R1_FB8 CAN_F13R1_FB8_Msk /*!<Filter bit 8 */ | |
4353 #define CAN_F13R1_FB9_Pos (9U) | |
4354 #define CAN_F13R1_FB9_Msk (0x1U << CAN_F13R1_FB9_Pos) /*!< 0x00000200 */ | |
4355 #define CAN_F13R1_FB9 CAN_F13R1_FB9_Msk /*!<Filter bit 9 */ | |
4356 #define CAN_F13R1_FB10_Pos (10U) | |
4357 #define CAN_F13R1_FB10_Msk (0x1U << CAN_F13R1_FB10_Pos) /*!< 0x00000400 */ | |
4358 #define CAN_F13R1_FB10 CAN_F13R1_FB10_Msk /*!<Filter bit 10 */ | |
4359 #define CAN_F13R1_FB11_Pos (11U) | |
4360 #define CAN_F13R1_FB11_Msk (0x1U << CAN_F13R1_FB11_Pos) /*!< 0x00000800 */ | |
4361 #define CAN_F13R1_FB11 CAN_F13R1_FB11_Msk /*!<Filter bit 11 */ | |
4362 #define CAN_F13R1_FB12_Pos (12U) | |
4363 #define CAN_F13R1_FB12_Msk (0x1U << CAN_F13R1_FB12_Pos) /*!< 0x00001000 */ | |
4364 #define CAN_F13R1_FB12 CAN_F13R1_FB12_Msk /*!<Filter bit 12 */ | |
4365 #define CAN_F13R1_FB13_Pos (13U) | |
4366 #define CAN_F13R1_FB13_Msk (0x1U << CAN_F13R1_FB13_Pos) /*!< 0x00002000 */ | |
4367 #define CAN_F13R1_FB13 CAN_F13R1_FB13_Msk /*!<Filter bit 13 */ | |
4368 #define CAN_F13R1_FB14_Pos (14U) | |
4369 #define CAN_F13R1_FB14_Msk (0x1U << CAN_F13R1_FB14_Pos) /*!< 0x00004000 */ | |
4370 #define CAN_F13R1_FB14 CAN_F13R1_FB14_Msk /*!<Filter bit 14 */ | |
4371 #define CAN_F13R1_FB15_Pos (15U) | |
4372 #define CAN_F13R1_FB15_Msk (0x1U << CAN_F13R1_FB15_Pos) /*!< 0x00008000 */ | |
4373 #define CAN_F13R1_FB15 CAN_F13R1_FB15_Msk /*!<Filter bit 15 */ | |
4374 #define CAN_F13R1_FB16_Pos (16U) | |
4375 #define CAN_F13R1_FB16_Msk (0x1U << CAN_F13R1_FB16_Pos) /*!< 0x00010000 */ | |
4376 #define CAN_F13R1_FB16 CAN_F13R1_FB16_Msk /*!<Filter bit 16 */ | |
4377 #define CAN_F13R1_FB17_Pos (17U) | |
4378 #define CAN_F13R1_FB17_Msk (0x1U << CAN_F13R1_FB17_Pos) /*!< 0x00020000 */ | |
4379 #define CAN_F13R1_FB17 CAN_F13R1_FB17_Msk /*!<Filter bit 17 */ | |
4380 #define CAN_F13R1_FB18_Pos (18U) | |
4381 #define CAN_F13R1_FB18_Msk (0x1U << CAN_F13R1_FB18_Pos) /*!< 0x00040000 */ | |
4382 #define CAN_F13R1_FB18 CAN_F13R1_FB18_Msk /*!<Filter bit 18 */ | |
4383 #define CAN_F13R1_FB19_Pos (19U) | |
4384 #define CAN_F13R1_FB19_Msk (0x1U << CAN_F13R1_FB19_Pos) /*!< 0x00080000 */ | |
4385 #define CAN_F13R1_FB19 CAN_F13R1_FB19_Msk /*!<Filter bit 19 */ | |
4386 #define CAN_F13R1_FB20_Pos (20U) | |
4387 #define CAN_F13R1_FB20_Msk (0x1U << CAN_F13R1_FB20_Pos) /*!< 0x00100000 */ | |
4388 #define CAN_F13R1_FB20 CAN_F13R1_FB20_Msk /*!<Filter bit 20 */ | |
4389 #define CAN_F13R1_FB21_Pos (21U) | |
4390 #define CAN_F13R1_FB21_Msk (0x1U << CAN_F13R1_FB21_Pos) /*!< 0x00200000 */ | |
4391 #define CAN_F13R1_FB21 CAN_F13R1_FB21_Msk /*!<Filter bit 21 */ | |
4392 #define CAN_F13R1_FB22_Pos (22U) | |
4393 #define CAN_F13R1_FB22_Msk (0x1U << CAN_F13R1_FB22_Pos) /*!< 0x00400000 */ | |
4394 #define CAN_F13R1_FB22 CAN_F13R1_FB22_Msk /*!<Filter bit 22 */ | |
4395 #define CAN_F13R1_FB23_Pos (23U) | |
4396 #define CAN_F13R1_FB23_Msk (0x1U << CAN_F13R1_FB23_Pos) /*!< 0x00800000 */ | |
4397 #define CAN_F13R1_FB23 CAN_F13R1_FB23_Msk /*!<Filter bit 23 */ | |
4398 #define CAN_F13R1_FB24_Pos (24U) | |
4399 #define CAN_F13R1_FB24_Msk (0x1U << CAN_F13R1_FB24_Pos) /*!< 0x01000000 */ | |
4400 #define CAN_F13R1_FB24 CAN_F13R1_FB24_Msk /*!<Filter bit 24 */ | |
4401 #define CAN_F13R1_FB25_Pos (25U) | |
4402 #define CAN_F13R1_FB25_Msk (0x1U << CAN_F13R1_FB25_Pos) /*!< 0x02000000 */ | |
4403 #define CAN_F13R1_FB25 CAN_F13R1_FB25_Msk /*!<Filter bit 25 */ | |
4404 #define CAN_F13R1_FB26_Pos (26U) | |
4405 #define CAN_F13R1_FB26_Msk (0x1U << CAN_F13R1_FB26_Pos) /*!< 0x04000000 */ | |
4406 #define CAN_F13R1_FB26 CAN_F13R1_FB26_Msk /*!<Filter bit 26 */ | |
4407 #define CAN_F13R1_FB27_Pos (27U) | |
4408 #define CAN_F13R1_FB27_Msk (0x1U << CAN_F13R1_FB27_Pos) /*!< 0x08000000 */ | |
4409 #define CAN_F13R1_FB27 CAN_F13R1_FB27_Msk /*!<Filter bit 27 */ | |
4410 #define CAN_F13R1_FB28_Pos (28U) | |
4411 #define CAN_F13R1_FB28_Msk (0x1U << CAN_F13R1_FB28_Pos) /*!< 0x10000000 */ | |
4412 #define CAN_F13R1_FB28 CAN_F13R1_FB28_Msk /*!<Filter bit 28 */ | |
4413 #define CAN_F13R1_FB29_Pos (29U) | |
4414 #define CAN_F13R1_FB29_Msk (0x1U << CAN_F13R1_FB29_Pos) /*!< 0x20000000 */ | |
4415 #define CAN_F13R1_FB29 CAN_F13R1_FB29_Msk /*!<Filter bit 29 */ | |
4416 #define CAN_F13R1_FB30_Pos (30U) | |
4417 #define CAN_F13R1_FB30_Msk (0x1U << CAN_F13R1_FB30_Pos) /*!< 0x40000000 */ | |
4418 #define CAN_F13R1_FB30 CAN_F13R1_FB30_Msk /*!<Filter bit 30 */ | |
4419 #define CAN_F13R1_FB31_Pos (31U) | |
4420 #define CAN_F13R1_FB31_Msk (0x1U << CAN_F13R1_FB31_Pos) /*!< 0x80000000 */ | |
4421 #define CAN_F13R1_FB31 CAN_F13R1_FB31_Msk /*!<Filter bit 31 */ | |
4422 | |
4423 /******************* Bit definition for CAN_F0R2 register *******************/ | |
4424 #define CAN_F0R2_FB0_Pos (0U) | |
4425 #define CAN_F0R2_FB0_Msk (0x1U << CAN_F0R2_FB0_Pos) /*!< 0x00000001 */ | |
4426 #define CAN_F0R2_FB0 CAN_F0R2_FB0_Msk /*!<Filter bit 0 */ | |
4427 #define CAN_F0R2_FB1_Pos (1U) | |
4428 #define CAN_F0R2_FB1_Msk (0x1U << CAN_F0R2_FB1_Pos) /*!< 0x00000002 */ | |
4429 #define CAN_F0R2_FB1 CAN_F0R2_FB1_Msk /*!<Filter bit 1 */ | |
4430 #define CAN_F0R2_FB2_Pos (2U) | |
4431 #define CAN_F0R2_FB2_Msk (0x1U << CAN_F0R2_FB2_Pos) /*!< 0x00000004 */ | |
4432 #define CAN_F0R2_FB2 CAN_F0R2_FB2_Msk /*!<Filter bit 2 */ | |
4433 #define CAN_F0R2_FB3_Pos (3U) | |
4434 #define CAN_F0R2_FB3_Msk (0x1U << CAN_F0R2_FB3_Pos) /*!< 0x00000008 */ | |
4435 #define CAN_F0R2_FB3 CAN_F0R2_FB3_Msk /*!<Filter bit 3 */ | |
4436 #define CAN_F0R2_FB4_Pos (4U) | |
4437 #define CAN_F0R2_FB4_Msk (0x1U << CAN_F0R2_FB4_Pos) /*!< 0x00000010 */ | |
4438 #define CAN_F0R2_FB4 CAN_F0R2_FB4_Msk /*!<Filter bit 4 */ | |
4439 #define CAN_F0R2_FB5_Pos (5U) | |
4440 #define CAN_F0R2_FB5_Msk (0x1U << CAN_F0R2_FB5_Pos) /*!< 0x00000020 */ | |
4441 #define CAN_F0R2_FB5 CAN_F0R2_FB5_Msk /*!<Filter bit 5 */ | |
4442 #define CAN_F0R2_FB6_Pos (6U) | |
4443 #define CAN_F0R2_FB6_Msk (0x1U << CAN_F0R2_FB6_Pos) /*!< 0x00000040 */ | |
4444 #define CAN_F0R2_FB6 CAN_F0R2_FB6_Msk /*!<Filter bit 6 */ | |
4445 #define CAN_F0R2_FB7_Pos (7U) | |
4446 #define CAN_F0R2_FB7_Msk (0x1U << CAN_F0R2_FB7_Pos) /*!< 0x00000080 */ | |
4447 #define CAN_F0R2_FB7 CAN_F0R2_FB7_Msk /*!<Filter bit 7 */ | |
4448 #define CAN_F0R2_FB8_Pos (8U) | |
4449 #define CAN_F0R2_FB8_Msk (0x1U << CAN_F0R2_FB8_Pos) /*!< 0x00000100 */ | |
4450 #define CAN_F0R2_FB8 CAN_F0R2_FB8_Msk /*!<Filter bit 8 */ | |
4451 #define CAN_F0R2_FB9_Pos (9U) | |
4452 #define CAN_F0R2_FB9_Msk (0x1U << CAN_F0R2_FB9_Pos) /*!< 0x00000200 */ | |
4453 #define CAN_F0R2_FB9 CAN_F0R2_FB9_Msk /*!<Filter bit 9 */ | |
4454 #define CAN_F0R2_FB10_Pos (10U) | |
4455 #define CAN_F0R2_FB10_Msk (0x1U << CAN_F0R2_FB10_Pos) /*!< 0x00000400 */ | |
4456 #define CAN_F0R2_FB10 CAN_F0R2_FB10_Msk /*!<Filter bit 10 */ | |
4457 #define CAN_F0R2_FB11_Pos (11U) | |
4458 #define CAN_F0R2_FB11_Msk (0x1U << CAN_F0R2_FB11_Pos) /*!< 0x00000800 */ | |
4459 #define CAN_F0R2_FB11 CAN_F0R2_FB11_Msk /*!<Filter bit 11 */ | |
4460 #define CAN_F0R2_FB12_Pos (12U) | |
4461 #define CAN_F0R2_FB12_Msk (0x1U << CAN_F0R2_FB12_Pos) /*!< 0x00001000 */ | |
4462 #define CAN_F0R2_FB12 CAN_F0R2_FB12_Msk /*!<Filter bit 12 */ | |
4463 #define CAN_F0R2_FB13_Pos (13U) | |
4464 #define CAN_F0R2_FB13_Msk (0x1U << CAN_F0R2_FB13_Pos) /*!< 0x00002000 */ | |
4465 #define CAN_F0R2_FB13 CAN_F0R2_FB13_Msk /*!<Filter bit 13 */ | |
4466 #define CAN_F0R2_FB14_Pos (14U) | |
4467 #define CAN_F0R2_FB14_Msk (0x1U << CAN_F0R2_FB14_Pos) /*!< 0x00004000 */ | |
4468 #define CAN_F0R2_FB14 CAN_F0R2_FB14_Msk /*!<Filter bit 14 */ | |
4469 #define CAN_F0R2_FB15_Pos (15U) | |
4470 #define CAN_F0R2_FB15_Msk (0x1U << CAN_F0R2_FB15_Pos) /*!< 0x00008000 */ | |
4471 #define CAN_F0R2_FB15 CAN_F0R2_FB15_Msk /*!<Filter bit 15 */ | |
4472 #define CAN_F0R2_FB16_Pos (16U) | |
4473 #define CAN_F0R2_FB16_Msk (0x1U << CAN_F0R2_FB16_Pos) /*!< 0x00010000 */ | |
4474 #define CAN_F0R2_FB16 CAN_F0R2_FB16_Msk /*!<Filter bit 16 */ | |
4475 #define CAN_F0R2_FB17_Pos (17U) | |
4476 #define CAN_F0R2_FB17_Msk (0x1U << CAN_F0R2_FB17_Pos) /*!< 0x00020000 */ | |
4477 #define CAN_F0R2_FB17 CAN_F0R2_FB17_Msk /*!<Filter bit 17 */ | |
4478 #define CAN_F0R2_FB18_Pos (18U) | |
4479 #define CAN_F0R2_FB18_Msk (0x1U << CAN_F0R2_FB18_Pos) /*!< 0x00040000 */ | |
4480 #define CAN_F0R2_FB18 CAN_F0R2_FB18_Msk /*!<Filter bit 18 */ | |
4481 #define CAN_F0R2_FB19_Pos (19U) | |
4482 #define CAN_F0R2_FB19_Msk (0x1U << CAN_F0R2_FB19_Pos) /*!< 0x00080000 */ | |
4483 #define CAN_F0R2_FB19 CAN_F0R2_FB19_Msk /*!<Filter bit 19 */ | |
4484 #define CAN_F0R2_FB20_Pos (20U) | |
4485 #define CAN_F0R2_FB20_Msk (0x1U << CAN_F0R2_FB20_Pos) /*!< 0x00100000 */ | |
4486 #define CAN_F0R2_FB20 CAN_F0R2_FB20_Msk /*!<Filter bit 20 */ | |
4487 #define CAN_F0R2_FB21_Pos (21U) | |
4488 #define CAN_F0R2_FB21_Msk (0x1U << CAN_F0R2_FB21_Pos) /*!< 0x00200000 */ | |
4489 #define CAN_F0R2_FB21 CAN_F0R2_FB21_Msk /*!<Filter bit 21 */ | |
4490 #define CAN_F0R2_FB22_Pos (22U) | |
4491 #define CAN_F0R2_FB22_Msk (0x1U << CAN_F0R2_FB22_Pos) /*!< 0x00400000 */ | |
4492 #define CAN_F0R2_FB22 CAN_F0R2_FB22_Msk /*!<Filter bit 22 */ | |
4493 #define CAN_F0R2_FB23_Pos (23U) | |
4494 #define CAN_F0R2_FB23_Msk (0x1U << CAN_F0R2_FB23_Pos) /*!< 0x00800000 */ | |
4495 #define CAN_F0R2_FB23 CAN_F0R2_FB23_Msk /*!<Filter bit 23 */ | |
4496 #define CAN_F0R2_FB24_Pos (24U) | |
4497 #define CAN_F0R2_FB24_Msk (0x1U << CAN_F0R2_FB24_Pos) /*!< 0x01000000 */ | |
4498 #define CAN_F0R2_FB24 CAN_F0R2_FB24_Msk /*!<Filter bit 24 */ | |
4499 #define CAN_F0R2_FB25_Pos (25U) | |
4500 #define CAN_F0R2_FB25_Msk (0x1U << CAN_F0R2_FB25_Pos) /*!< 0x02000000 */ | |
4501 #define CAN_F0R2_FB25 CAN_F0R2_FB25_Msk /*!<Filter bit 25 */ | |
4502 #define CAN_F0R2_FB26_Pos (26U) | |
4503 #define CAN_F0R2_FB26_Msk (0x1U << CAN_F0R2_FB26_Pos) /*!< 0x04000000 */ | |
4504 #define CAN_F0R2_FB26 CAN_F0R2_FB26_Msk /*!<Filter bit 26 */ | |
4505 #define CAN_F0R2_FB27_Pos (27U) | |
4506 #define CAN_F0R2_FB27_Msk (0x1U << CAN_F0R2_FB27_Pos) /*!< 0x08000000 */ | |
4507 #define CAN_F0R2_FB27 CAN_F0R2_FB27_Msk /*!<Filter bit 27 */ | |
4508 #define CAN_F0R2_FB28_Pos (28U) | |
4509 #define CAN_F0R2_FB28_Msk (0x1U << CAN_F0R2_FB28_Pos) /*!< 0x10000000 */ | |
4510 #define CAN_F0R2_FB28 CAN_F0R2_FB28_Msk /*!<Filter bit 28 */ | |
4511 #define CAN_F0R2_FB29_Pos (29U) | |
4512 #define CAN_F0R2_FB29_Msk (0x1U << CAN_F0R2_FB29_Pos) /*!< 0x20000000 */ | |
4513 #define CAN_F0R2_FB29 CAN_F0R2_FB29_Msk /*!<Filter bit 29 */ | |
4514 #define CAN_F0R2_FB30_Pos (30U) | |
4515 #define CAN_F0R2_FB30_Msk (0x1U << CAN_F0R2_FB30_Pos) /*!< 0x40000000 */ | |
4516 #define CAN_F0R2_FB30 CAN_F0R2_FB30_Msk /*!<Filter bit 30 */ | |
4517 #define CAN_F0R2_FB31_Pos (31U) | |
4518 #define CAN_F0R2_FB31_Msk (0x1U << CAN_F0R2_FB31_Pos) /*!< 0x80000000 */ | |
4519 #define CAN_F0R2_FB31 CAN_F0R2_FB31_Msk /*!<Filter bit 31 */ | |
4520 | |
4521 /******************* Bit definition for CAN_F1R2 register *******************/ | |
4522 #define CAN_F1R2_FB0_Pos (0U) | |
4523 #define CAN_F1R2_FB0_Msk (0x1U << CAN_F1R2_FB0_Pos) /*!< 0x00000001 */ | |
4524 #define CAN_F1R2_FB0 CAN_F1R2_FB0_Msk /*!<Filter bit 0 */ | |
4525 #define CAN_F1R2_FB1_Pos (1U) | |
4526 #define CAN_F1R2_FB1_Msk (0x1U << CAN_F1R2_FB1_Pos) /*!< 0x00000002 */ | |
4527 #define CAN_F1R2_FB1 CAN_F1R2_FB1_Msk /*!<Filter bit 1 */ | |
4528 #define CAN_F1R2_FB2_Pos (2U) | |
4529 #define CAN_F1R2_FB2_Msk (0x1U << CAN_F1R2_FB2_Pos) /*!< 0x00000004 */ | |
4530 #define CAN_F1R2_FB2 CAN_F1R2_FB2_Msk /*!<Filter bit 2 */ | |
4531 #define CAN_F1R2_FB3_Pos (3U) | |
4532 #define CAN_F1R2_FB3_Msk (0x1U << CAN_F1R2_FB3_Pos) /*!< 0x00000008 */ | |
4533 #define CAN_F1R2_FB3 CAN_F1R2_FB3_Msk /*!<Filter bit 3 */ | |
4534 #define CAN_F1R2_FB4_Pos (4U) | |
4535 #define CAN_F1R2_FB4_Msk (0x1U << CAN_F1R2_FB4_Pos) /*!< 0x00000010 */ | |
4536 #define CAN_F1R2_FB4 CAN_F1R2_FB4_Msk /*!<Filter bit 4 */ | |
4537 #define CAN_F1R2_FB5_Pos (5U) | |
4538 #define CAN_F1R2_FB5_Msk (0x1U << CAN_F1R2_FB5_Pos) /*!< 0x00000020 */ | |
4539 #define CAN_F1R2_FB5 CAN_F1R2_FB5_Msk /*!<Filter bit 5 */ | |
4540 #define CAN_F1R2_FB6_Pos (6U) | |
4541 #define CAN_F1R2_FB6_Msk (0x1U << CAN_F1R2_FB6_Pos) /*!< 0x00000040 */ | |
4542 #define CAN_F1R2_FB6 CAN_F1R2_FB6_Msk /*!<Filter bit 6 */ | |
4543 #define CAN_F1R2_FB7_Pos (7U) | |
4544 #define CAN_F1R2_FB7_Msk (0x1U << CAN_F1R2_FB7_Pos) /*!< 0x00000080 */ | |
4545 #define CAN_F1R2_FB7 CAN_F1R2_FB7_Msk /*!<Filter bit 7 */ | |
4546 #define CAN_F1R2_FB8_Pos (8U) | |
4547 #define CAN_F1R2_FB8_Msk (0x1U << CAN_F1R2_FB8_Pos) /*!< 0x00000100 */ | |
4548 #define CAN_F1R2_FB8 CAN_F1R2_FB8_Msk /*!<Filter bit 8 */ | |
4549 #define CAN_F1R2_FB9_Pos (9U) | |
4550 #define CAN_F1R2_FB9_Msk (0x1U << CAN_F1R2_FB9_Pos) /*!< 0x00000200 */ | |
4551 #define CAN_F1R2_FB9 CAN_F1R2_FB9_Msk /*!<Filter bit 9 */ | |
4552 #define CAN_F1R2_FB10_Pos (10U) | |
4553 #define CAN_F1R2_FB10_Msk (0x1U << CAN_F1R2_FB10_Pos) /*!< 0x00000400 */ | |
4554 #define CAN_F1R2_FB10 CAN_F1R2_FB10_Msk /*!<Filter bit 10 */ | |
4555 #define CAN_F1R2_FB11_Pos (11U) | |
4556 #define CAN_F1R2_FB11_Msk (0x1U << CAN_F1R2_FB11_Pos) /*!< 0x00000800 */ | |
4557 #define CAN_F1R2_FB11 CAN_F1R2_FB11_Msk /*!<Filter bit 11 */ | |
4558 #define CAN_F1R2_FB12_Pos (12U) | |
4559 #define CAN_F1R2_FB12_Msk (0x1U << CAN_F1R2_FB12_Pos) /*!< 0x00001000 */ | |
4560 #define CAN_F1R2_FB12 CAN_F1R2_FB12_Msk /*!<Filter bit 12 */ | |
4561 #define CAN_F1R2_FB13_Pos (13U) | |
4562 #define CAN_F1R2_FB13_Msk (0x1U << CAN_F1R2_FB13_Pos) /*!< 0x00002000 */ | |
4563 #define CAN_F1R2_FB13 CAN_F1R2_FB13_Msk /*!<Filter bit 13 */ | |
4564 #define CAN_F1R2_FB14_Pos (14U) | |
4565 #define CAN_F1R2_FB14_Msk (0x1U << CAN_F1R2_FB14_Pos) /*!< 0x00004000 */ | |
4566 #define CAN_F1R2_FB14 CAN_F1R2_FB14_Msk /*!<Filter bit 14 */ | |
4567 #define CAN_F1R2_FB15_Pos (15U) | |
4568 #define CAN_F1R2_FB15_Msk (0x1U << CAN_F1R2_FB15_Pos) /*!< 0x00008000 */ | |
4569 #define CAN_F1R2_FB15 CAN_F1R2_FB15_Msk /*!<Filter bit 15 */ | |
4570 #define CAN_F1R2_FB16_Pos (16U) | |
4571 #define CAN_F1R2_FB16_Msk (0x1U << CAN_F1R2_FB16_Pos) /*!< 0x00010000 */ | |
4572 #define CAN_F1R2_FB16 CAN_F1R2_FB16_Msk /*!<Filter bit 16 */ | |
4573 #define CAN_F1R2_FB17_Pos (17U) | |
4574 #define CAN_F1R2_FB17_Msk (0x1U << CAN_F1R2_FB17_Pos) /*!< 0x00020000 */ | |
4575 #define CAN_F1R2_FB17 CAN_F1R2_FB17_Msk /*!<Filter bit 17 */ | |
4576 #define CAN_F1R2_FB18_Pos (18U) | |
4577 #define CAN_F1R2_FB18_Msk (0x1U << CAN_F1R2_FB18_Pos) /*!< 0x00040000 */ | |
4578 #define CAN_F1R2_FB18 CAN_F1R2_FB18_Msk /*!<Filter bit 18 */ | |
4579 #define CAN_F1R2_FB19_Pos (19U) | |
4580 #define CAN_F1R2_FB19_Msk (0x1U << CAN_F1R2_FB19_Pos) /*!< 0x00080000 */ | |
4581 #define CAN_F1R2_FB19 CAN_F1R2_FB19_Msk /*!<Filter bit 19 */ | |
4582 #define CAN_F1R2_FB20_Pos (20U) | |
4583 #define CAN_F1R2_FB20_Msk (0x1U << CAN_F1R2_FB20_Pos) /*!< 0x00100000 */ | |
4584 #define CAN_F1R2_FB20 CAN_F1R2_FB20_Msk /*!<Filter bit 20 */ | |
4585 #define CAN_F1R2_FB21_Pos (21U) | |
4586 #define CAN_F1R2_FB21_Msk (0x1U << CAN_F1R2_FB21_Pos) /*!< 0x00200000 */ | |
4587 #define CAN_F1R2_FB21 CAN_F1R2_FB21_Msk /*!<Filter bit 21 */ | |
4588 #define CAN_F1R2_FB22_Pos (22U) | |
4589 #define CAN_F1R2_FB22_Msk (0x1U << CAN_F1R2_FB22_Pos) /*!< 0x00400000 */ | |
4590 #define CAN_F1R2_FB22 CAN_F1R2_FB22_Msk /*!<Filter bit 22 */ | |
4591 #define CAN_F1R2_FB23_Pos (23U) | |
4592 #define CAN_F1R2_FB23_Msk (0x1U << CAN_F1R2_FB23_Pos) /*!< 0x00800000 */ | |
4593 #define CAN_F1R2_FB23 CAN_F1R2_FB23_Msk /*!<Filter bit 23 */ | |
4594 #define CAN_F1R2_FB24_Pos (24U) | |
4595 #define CAN_F1R2_FB24_Msk (0x1U << CAN_F1R2_FB24_Pos) /*!< 0x01000000 */ | |
4596 #define CAN_F1R2_FB24 CAN_F1R2_FB24_Msk /*!<Filter bit 24 */ | |
4597 #define CAN_F1R2_FB25_Pos (25U) | |
4598 #define CAN_F1R2_FB25_Msk (0x1U << CAN_F1R2_FB25_Pos) /*!< 0x02000000 */ | |
4599 #define CAN_F1R2_FB25 CAN_F1R2_FB25_Msk /*!<Filter bit 25 */ | |
4600 #define CAN_F1R2_FB26_Pos (26U) | |
4601 #define CAN_F1R2_FB26_Msk (0x1U << CAN_F1R2_FB26_Pos) /*!< 0x04000000 */ | |
4602 #define CAN_F1R2_FB26 CAN_F1R2_FB26_Msk /*!<Filter bit 26 */ | |
4603 #define CAN_F1R2_FB27_Pos (27U) | |
4604 #define CAN_F1R2_FB27_Msk (0x1U << CAN_F1R2_FB27_Pos) /*!< 0x08000000 */ | |
4605 #define CAN_F1R2_FB27 CAN_F1R2_FB27_Msk /*!<Filter bit 27 */ | |
4606 #define CAN_F1R2_FB28_Pos (28U) | |
4607 #define CAN_F1R2_FB28_Msk (0x1U << CAN_F1R2_FB28_Pos) /*!< 0x10000000 */ | |
4608 #define CAN_F1R2_FB28 CAN_F1R2_FB28_Msk /*!<Filter bit 28 */ | |
4609 #define CAN_F1R2_FB29_Pos (29U) | |
4610 #define CAN_F1R2_FB29_Msk (0x1U << CAN_F1R2_FB29_Pos) /*!< 0x20000000 */ | |
4611 #define CAN_F1R2_FB29 CAN_F1R2_FB29_Msk /*!<Filter bit 29 */ | |
4612 #define CAN_F1R2_FB30_Pos (30U) | |
4613 #define CAN_F1R2_FB30_Msk (0x1U << CAN_F1R2_FB30_Pos) /*!< 0x40000000 */ | |
4614 #define CAN_F1R2_FB30 CAN_F1R2_FB30_Msk /*!<Filter bit 30 */ | |
4615 #define CAN_F1R2_FB31_Pos (31U) | |
4616 #define CAN_F1R2_FB31_Msk (0x1U << CAN_F1R2_FB31_Pos) /*!< 0x80000000 */ | |
4617 #define CAN_F1R2_FB31 CAN_F1R2_FB31_Msk /*!<Filter bit 31 */ | |
4618 | |
4619 /******************* Bit definition for CAN_F2R2 register *******************/ | |
4620 #define CAN_F2R2_FB0_Pos (0U) | |
4621 #define CAN_F2R2_FB0_Msk (0x1U << CAN_F2R2_FB0_Pos) /*!< 0x00000001 */ | |
4622 #define CAN_F2R2_FB0 CAN_F2R2_FB0_Msk /*!<Filter bit 0 */ | |
4623 #define CAN_F2R2_FB1_Pos (1U) | |
4624 #define CAN_F2R2_FB1_Msk (0x1U << CAN_F2R2_FB1_Pos) /*!< 0x00000002 */ | |
4625 #define CAN_F2R2_FB1 CAN_F2R2_FB1_Msk /*!<Filter bit 1 */ | |
4626 #define CAN_F2R2_FB2_Pos (2U) | |
4627 #define CAN_F2R2_FB2_Msk (0x1U << CAN_F2R2_FB2_Pos) /*!< 0x00000004 */ | |
4628 #define CAN_F2R2_FB2 CAN_F2R2_FB2_Msk /*!<Filter bit 2 */ | |
4629 #define CAN_F2R2_FB3_Pos (3U) | |
4630 #define CAN_F2R2_FB3_Msk (0x1U << CAN_F2R2_FB3_Pos) /*!< 0x00000008 */ | |
4631 #define CAN_F2R2_FB3 CAN_F2R2_FB3_Msk /*!<Filter bit 3 */ | |
4632 #define CAN_F2R2_FB4_Pos (4U) | |
4633 #define CAN_F2R2_FB4_Msk (0x1U << CAN_F2R2_FB4_Pos) /*!< 0x00000010 */ | |
4634 #define CAN_F2R2_FB4 CAN_F2R2_FB4_Msk /*!<Filter bit 4 */ | |
4635 #define CAN_F2R2_FB5_Pos (5U) | |
4636 #define CAN_F2R2_FB5_Msk (0x1U << CAN_F2R2_FB5_Pos) /*!< 0x00000020 */ | |
4637 #define CAN_F2R2_FB5 CAN_F2R2_FB5_Msk /*!<Filter bit 5 */ | |
4638 #define CAN_F2R2_FB6_Pos (6U) | |
4639 #define CAN_F2R2_FB6_Msk (0x1U << CAN_F2R2_FB6_Pos) /*!< 0x00000040 */ | |
4640 #define CAN_F2R2_FB6 CAN_F2R2_FB6_Msk /*!<Filter bit 6 */ | |
4641 #define CAN_F2R2_FB7_Pos (7U) | |
4642 #define CAN_F2R2_FB7_Msk (0x1U << CAN_F2R2_FB7_Pos) /*!< 0x00000080 */ | |
4643 #define CAN_F2R2_FB7 CAN_F2R2_FB7_Msk /*!<Filter bit 7 */ | |
4644 #define CAN_F2R2_FB8_Pos (8U) | |
4645 #define CAN_F2R2_FB8_Msk (0x1U << CAN_F2R2_FB8_Pos) /*!< 0x00000100 */ | |
4646 #define CAN_F2R2_FB8 CAN_F2R2_FB8_Msk /*!<Filter bit 8 */ | |
4647 #define CAN_F2R2_FB9_Pos (9U) | |
4648 #define CAN_F2R2_FB9_Msk (0x1U << CAN_F2R2_FB9_Pos) /*!< 0x00000200 */ | |
4649 #define CAN_F2R2_FB9 CAN_F2R2_FB9_Msk /*!<Filter bit 9 */ | |
4650 #define CAN_F2R2_FB10_Pos (10U) | |
4651 #define CAN_F2R2_FB10_Msk (0x1U << CAN_F2R2_FB10_Pos) /*!< 0x00000400 */ | |
4652 #define CAN_F2R2_FB10 CAN_F2R2_FB10_Msk /*!<Filter bit 10 */ | |
4653 #define CAN_F2R2_FB11_Pos (11U) | |
4654 #define CAN_F2R2_FB11_Msk (0x1U << CAN_F2R2_FB11_Pos) /*!< 0x00000800 */ | |
4655 #define CAN_F2R2_FB11 CAN_F2R2_FB11_Msk /*!<Filter bit 11 */ | |
4656 #define CAN_F2R2_FB12_Pos (12U) | |
4657 #define CAN_F2R2_FB12_Msk (0x1U << CAN_F2R2_FB12_Pos) /*!< 0x00001000 */ | |
4658 #define CAN_F2R2_FB12 CAN_F2R2_FB12_Msk /*!<Filter bit 12 */ | |
4659 #define CAN_F2R2_FB13_Pos (13U) | |
4660 #define CAN_F2R2_FB13_Msk (0x1U << CAN_F2R2_FB13_Pos) /*!< 0x00002000 */ | |
4661 #define CAN_F2R2_FB13 CAN_F2R2_FB13_Msk /*!<Filter bit 13 */ | |
4662 #define CAN_F2R2_FB14_Pos (14U) | |
4663 #define CAN_F2R2_FB14_Msk (0x1U << CAN_F2R2_FB14_Pos) /*!< 0x00004000 */ | |
4664 #define CAN_F2R2_FB14 CAN_F2R2_FB14_Msk /*!<Filter bit 14 */ | |
4665 #define CAN_F2R2_FB15_Pos (15U) | |
4666 #define CAN_F2R2_FB15_Msk (0x1U << CAN_F2R2_FB15_Pos) /*!< 0x00008000 */ | |
4667 #define CAN_F2R2_FB15 CAN_F2R2_FB15_Msk /*!<Filter bit 15 */ | |
4668 #define CAN_F2R2_FB16_Pos (16U) | |
4669 #define CAN_F2R2_FB16_Msk (0x1U << CAN_F2R2_FB16_Pos) /*!< 0x00010000 */ | |
4670 #define CAN_F2R2_FB16 CAN_F2R2_FB16_Msk /*!<Filter bit 16 */ | |
4671 #define CAN_F2R2_FB17_Pos (17U) | |
4672 #define CAN_F2R2_FB17_Msk (0x1U << CAN_F2R2_FB17_Pos) /*!< 0x00020000 */ | |
4673 #define CAN_F2R2_FB17 CAN_F2R2_FB17_Msk /*!<Filter bit 17 */ | |
4674 #define CAN_F2R2_FB18_Pos (18U) | |
4675 #define CAN_F2R2_FB18_Msk (0x1U << CAN_F2R2_FB18_Pos) /*!< 0x00040000 */ | |
4676 #define CAN_F2R2_FB18 CAN_F2R2_FB18_Msk /*!<Filter bit 18 */ | |
4677 #define CAN_F2R2_FB19_Pos (19U) | |
4678 #define CAN_F2R2_FB19_Msk (0x1U << CAN_F2R2_FB19_Pos) /*!< 0x00080000 */ | |
4679 #define CAN_F2R2_FB19 CAN_F2R2_FB19_Msk /*!<Filter bit 19 */ | |
4680 #define CAN_F2R2_FB20_Pos (20U) | |
4681 #define CAN_F2R2_FB20_Msk (0x1U << CAN_F2R2_FB20_Pos) /*!< 0x00100000 */ | |
4682 #define CAN_F2R2_FB20 CAN_F2R2_FB20_Msk /*!<Filter bit 20 */ | |
4683 #define CAN_F2R2_FB21_Pos (21U) | |
4684 #define CAN_F2R2_FB21_Msk (0x1U << CAN_F2R2_FB21_Pos) /*!< 0x00200000 */ | |
4685 #define CAN_F2R2_FB21 CAN_F2R2_FB21_Msk /*!<Filter bit 21 */ | |
4686 #define CAN_F2R2_FB22_Pos (22U) | |
4687 #define CAN_F2R2_FB22_Msk (0x1U << CAN_F2R2_FB22_Pos) /*!< 0x00400000 */ | |
4688 #define CAN_F2R2_FB22 CAN_F2R2_FB22_Msk /*!<Filter bit 22 */ | |
4689 #define CAN_F2R2_FB23_Pos (23U) | |
4690 #define CAN_F2R2_FB23_Msk (0x1U << CAN_F2R2_FB23_Pos) /*!< 0x00800000 */ | |
4691 #define CAN_F2R2_FB23 CAN_F2R2_FB23_Msk /*!<Filter bit 23 */ | |
4692 #define CAN_F2R2_FB24_Pos (24U) | |
4693 #define CAN_F2R2_FB24_Msk (0x1U << CAN_F2R2_FB24_Pos) /*!< 0x01000000 */ | |
4694 #define CAN_F2R2_FB24 CAN_F2R2_FB24_Msk /*!<Filter bit 24 */ | |
4695 #define CAN_F2R2_FB25_Pos (25U) | |
4696 #define CAN_F2R2_FB25_Msk (0x1U << CAN_F2R2_FB25_Pos) /*!< 0x02000000 */ | |
4697 #define CAN_F2R2_FB25 CAN_F2R2_FB25_Msk /*!<Filter bit 25 */ | |
4698 #define CAN_F2R2_FB26_Pos (26U) | |
4699 #define CAN_F2R2_FB26_Msk (0x1U << CAN_F2R2_FB26_Pos) /*!< 0x04000000 */ | |
4700 #define CAN_F2R2_FB26 CAN_F2R2_FB26_Msk /*!<Filter bit 26 */ | |
4701 #define CAN_F2R2_FB27_Pos (27U) | |
4702 #define CAN_F2R2_FB27_Msk (0x1U << CAN_F2R2_FB27_Pos) /*!< 0x08000000 */ | |
4703 #define CAN_F2R2_FB27 CAN_F2R2_FB27_Msk /*!<Filter bit 27 */ | |
4704 #define CAN_F2R2_FB28_Pos (28U) | |
4705 #define CAN_F2R2_FB28_Msk (0x1U << CAN_F2R2_FB28_Pos) /*!< 0x10000000 */ | |
4706 #define CAN_F2R2_FB28 CAN_F2R2_FB28_Msk /*!<Filter bit 28 */ | |
4707 #define CAN_F2R2_FB29_Pos (29U) | |
4708 #define CAN_F2R2_FB29_Msk (0x1U << CAN_F2R2_FB29_Pos) /*!< 0x20000000 */ | |
4709 #define CAN_F2R2_FB29 CAN_F2R2_FB29_Msk /*!<Filter bit 29 */ | |
4710 #define CAN_F2R2_FB30_Pos (30U) | |
4711 #define CAN_F2R2_FB30_Msk (0x1U << CAN_F2R2_FB30_Pos) /*!< 0x40000000 */ | |
4712 #define CAN_F2R2_FB30 CAN_F2R2_FB30_Msk /*!<Filter bit 30 */ | |
4713 #define CAN_F2R2_FB31_Pos (31U) | |
4714 #define CAN_F2R2_FB31_Msk (0x1U << CAN_F2R2_FB31_Pos) /*!< 0x80000000 */ | |
4715 #define CAN_F2R2_FB31 CAN_F2R2_FB31_Msk /*!<Filter bit 31 */ | |
4716 | |
4717 /******************* Bit definition for CAN_F3R2 register *******************/ | |
4718 #define CAN_F3R2_FB0_Pos (0U) | |
4719 #define CAN_F3R2_FB0_Msk (0x1U << CAN_F3R2_FB0_Pos) /*!< 0x00000001 */ | |
4720 #define CAN_F3R2_FB0 CAN_F3R2_FB0_Msk /*!<Filter bit 0 */ | |
4721 #define CAN_F3R2_FB1_Pos (1U) | |
4722 #define CAN_F3R2_FB1_Msk (0x1U << CAN_F3R2_FB1_Pos) /*!< 0x00000002 */ | |
4723 #define CAN_F3R2_FB1 CAN_F3R2_FB1_Msk /*!<Filter bit 1 */ | |
4724 #define CAN_F3R2_FB2_Pos (2U) | |
4725 #define CAN_F3R2_FB2_Msk (0x1U << CAN_F3R2_FB2_Pos) /*!< 0x00000004 */ | |
4726 #define CAN_F3R2_FB2 CAN_F3R2_FB2_Msk /*!<Filter bit 2 */ | |
4727 #define CAN_F3R2_FB3_Pos (3U) | |
4728 #define CAN_F3R2_FB3_Msk (0x1U << CAN_F3R2_FB3_Pos) /*!< 0x00000008 */ | |
4729 #define CAN_F3R2_FB3 CAN_F3R2_FB3_Msk /*!<Filter bit 3 */ | |
4730 #define CAN_F3R2_FB4_Pos (4U) | |
4731 #define CAN_F3R2_FB4_Msk (0x1U << CAN_F3R2_FB4_Pos) /*!< 0x00000010 */ | |
4732 #define CAN_F3R2_FB4 CAN_F3R2_FB4_Msk /*!<Filter bit 4 */ | |
4733 #define CAN_F3R2_FB5_Pos (5U) | |
4734 #define CAN_F3R2_FB5_Msk (0x1U << CAN_F3R2_FB5_Pos) /*!< 0x00000020 */ | |
4735 #define CAN_F3R2_FB5 CAN_F3R2_FB5_Msk /*!<Filter bit 5 */ | |
4736 #define CAN_F3R2_FB6_Pos (6U) | |
4737 #define CAN_F3R2_FB6_Msk (0x1U << CAN_F3R2_FB6_Pos) /*!< 0x00000040 */ | |
4738 #define CAN_F3R2_FB6 CAN_F3R2_FB6_Msk /*!<Filter bit 6 */ | |
4739 #define CAN_F3R2_FB7_Pos (7U) | |
4740 #define CAN_F3R2_FB7_Msk (0x1U << CAN_F3R2_FB7_Pos) /*!< 0x00000080 */ | |
4741 #define CAN_F3R2_FB7 CAN_F3R2_FB7_Msk /*!<Filter bit 7 */ | |
4742 #define CAN_F3R2_FB8_Pos (8U) | |
4743 #define CAN_F3R2_FB8_Msk (0x1U << CAN_F3R2_FB8_Pos) /*!< 0x00000100 */ | |
4744 #define CAN_F3R2_FB8 CAN_F3R2_FB8_Msk /*!<Filter bit 8 */ | |
4745 #define CAN_F3R2_FB9_Pos (9U) | |
4746 #define CAN_F3R2_FB9_Msk (0x1U << CAN_F3R2_FB9_Pos) /*!< 0x00000200 */ | |
4747 #define CAN_F3R2_FB9 CAN_F3R2_FB9_Msk /*!<Filter bit 9 */ | |
4748 #define CAN_F3R2_FB10_Pos (10U) | |
4749 #define CAN_F3R2_FB10_Msk (0x1U << CAN_F3R2_FB10_Pos) /*!< 0x00000400 */ | |
4750 #define CAN_F3R2_FB10 CAN_F3R2_FB10_Msk /*!<Filter bit 10 */ | |
4751 #define CAN_F3R2_FB11_Pos (11U) | |
4752 #define CAN_F3R2_FB11_Msk (0x1U << CAN_F3R2_FB11_Pos) /*!< 0x00000800 */ | |
4753 #define CAN_F3R2_FB11 CAN_F3R2_FB11_Msk /*!<Filter bit 11 */ | |
4754 #define CAN_F3R2_FB12_Pos (12U) | |
4755 #define CAN_F3R2_FB12_Msk (0x1U << CAN_F3R2_FB12_Pos) /*!< 0x00001000 */ | |
4756 #define CAN_F3R2_FB12 CAN_F3R2_FB12_Msk /*!<Filter bit 12 */ | |
4757 #define CAN_F3R2_FB13_Pos (13U) | |
4758 #define CAN_F3R2_FB13_Msk (0x1U << CAN_F3R2_FB13_Pos) /*!< 0x00002000 */ | |
4759 #define CAN_F3R2_FB13 CAN_F3R2_FB13_Msk /*!<Filter bit 13 */ | |
4760 #define CAN_F3R2_FB14_Pos (14U) | |
4761 #define CAN_F3R2_FB14_Msk (0x1U << CAN_F3R2_FB14_Pos) /*!< 0x00004000 */ | |
4762 #define CAN_F3R2_FB14 CAN_F3R2_FB14_Msk /*!<Filter bit 14 */ | |
4763 #define CAN_F3R2_FB15_Pos (15U) | |
4764 #define CAN_F3R2_FB15_Msk (0x1U << CAN_F3R2_FB15_Pos) /*!< 0x00008000 */ | |
4765 #define CAN_F3R2_FB15 CAN_F3R2_FB15_Msk /*!<Filter bit 15 */ | |
4766 #define CAN_F3R2_FB16_Pos (16U) | |
4767 #define CAN_F3R2_FB16_Msk (0x1U << CAN_F3R2_FB16_Pos) /*!< 0x00010000 */ | |
4768 #define CAN_F3R2_FB16 CAN_F3R2_FB16_Msk /*!<Filter bit 16 */ | |
4769 #define CAN_F3R2_FB17_Pos (17U) | |
4770 #define CAN_F3R2_FB17_Msk (0x1U << CAN_F3R2_FB17_Pos) /*!< 0x00020000 */ | |
4771 #define CAN_F3R2_FB17 CAN_F3R2_FB17_Msk /*!<Filter bit 17 */ | |
4772 #define CAN_F3R2_FB18_Pos (18U) | |
4773 #define CAN_F3R2_FB18_Msk (0x1U << CAN_F3R2_FB18_Pos) /*!< 0x00040000 */ | |
4774 #define CAN_F3R2_FB18 CAN_F3R2_FB18_Msk /*!<Filter bit 18 */ | |
4775 #define CAN_F3R2_FB19_Pos (19U) | |
4776 #define CAN_F3R2_FB19_Msk (0x1U << CAN_F3R2_FB19_Pos) /*!< 0x00080000 */ | |
4777 #define CAN_F3R2_FB19 CAN_F3R2_FB19_Msk /*!<Filter bit 19 */ | |
4778 #define CAN_F3R2_FB20_Pos (20U) | |
4779 #define CAN_F3R2_FB20_Msk (0x1U << CAN_F3R2_FB20_Pos) /*!< 0x00100000 */ | |
4780 #define CAN_F3R2_FB20 CAN_F3R2_FB20_Msk /*!<Filter bit 20 */ | |
4781 #define CAN_F3R2_FB21_Pos (21U) | |
4782 #define CAN_F3R2_FB21_Msk (0x1U << CAN_F3R2_FB21_Pos) /*!< 0x00200000 */ | |
4783 #define CAN_F3R2_FB21 CAN_F3R2_FB21_Msk /*!<Filter bit 21 */ | |
4784 #define CAN_F3R2_FB22_Pos (22U) | |
4785 #define CAN_F3R2_FB22_Msk (0x1U << CAN_F3R2_FB22_Pos) /*!< 0x00400000 */ | |
4786 #define CAN_F3R2_FB22 CAN_F3R2_FB22_Msk /*!<Filter bit 22 */ | |
4787 #define CAN_F3R2_FB23_Pos (23U) | |
4788 #define CAN_F3R2_FB23_Msk (0x1U << CAN_F3R2_FB23_Pos) /*!< 0x00800000 */ | |
4789 #define CAN_F3R2_FB23 CAN_F3R2_FB23_Msk /*!<Filter bit 23 */ | |
4790 #define CAN_F3R2_FB24_Pos (24U) | |
4791 #define CAN_F3R2_FB24_Msk (0x1U << CAN_F3R2_FB24_Pos) /*!< 0x01000000 */ | |
4792 #define CAN_F3R2_FB24 CAN_F3R2_FB24_Msk /*!<Filter bit 24 */ | |
4793 #define CAN_F3R2_FB25_Pos (25U) | |
4794 #define CAN_F3R2_FB25_Msk (0x1U << CAN_F3R2_FB25_Pos) /*!< 0x02000000 */ | |
4795 #define CAN_F3R2_FB25 CAN_F3R2_FB25_Msk /*!<Filter bit 25 */ | |
4796 #define CAN_F3R2_FB26_Pos (26U) | |
4797 #define CAN_F3R2_FB26_Msk (0x1U << CAN_F3R2_FB26_Pos) /*!< 0x04000000 */ | |
4798 #define CAN_F3R2_FB26 CAN_F3R2_FB26_Msk /*!<Filter bit 26 */ | |
4799 #define CAN_F3R2_FB27_Pos (27U) | |
4800 #define CAN_F3R2_FB27_Msk (0x1U << CAN_F3R2_FB27_Pos) /*!< 0x08000000 */ | |
4801 #define CAN_F3R2_FB27 CAN_F3R2_FB27_Msk /*!<Filter bit 27 */ | |
4802 #define CAN_F3R2_FB28_Pos (28U) | |
4803 #define CAN_F3R2_FB28_Msk (0x1U << CAN_F3R2_FB28_Pos) /*!< 0x10000000 */ | |
4804 #define CAN_F3R2_FB28 CAN_F3R2_FB28_Msk /*!<Filter bit 28 */ | |
4805 #define CAN_F3R2_FB29_Pos (29U) | |
4806 #define CAN_F3R2_FB29_Msk (0x1U << CAN_F3R2_FB29_Pos) /*!< 0x20000000 */ | |
4807 #define CAN_F3R2_FB29 CAN_F3R2_FB29_Msk /*!<Filter bit 29 */ | |
4808 #define CAN_F3R2_FB30_Pos (30U) | |
4809 #define CAN_F3R2_FB30_Msk (0x1U << CAN_F3R2_FB30_Pos) /*!< 0x40000000 */ | |
4810 #define CAN_F3R2_FB30 CAN_F3R2_FB30_Msk /*!<Filter bit 30 */ | |
4811 #define CAN_F3R2_FB31_Pos (31U) | |
4812 #define CAN_F3R2_FB31_Msk (0x1U << CAN_F3R2_FB31_Pos) /*!< 0x80000000 */ | |
4813 #define CAN_F3R2_FB31 CAN_F3R2_FB31_Msk /*!<Filter bit 31 */ | |
4814 | |
4815 /******************* Bit definition for CAN_F4R2 register *******************/ | |
4816 #define CAN_F4R2_FB0_Pos (0U) | |
4817 #define CAN_F4R2_FB0_Msk (0x1U << CAN_F4R2_FB0_Pos) /*!< 0x00000001 */ | |
4818 #define CAN_F4R2_FB0 CAN_F4R2_FB0_Msk /*!<Filter bit 0 */ | |
4819 #define CAN_F4R2_FB1_Pos (1U) | |
4820 #define CAN_F4R2_FB1_Msk (0x1U << CAN_F4R2_FB1_Pos) /*!< 0x00000002 */ | |
4821 #define CAN_F4R2_FB1 CAN_F4R2_FB1_Msk /*!<Filter bit 1 */ | |
4822 #define CAN_F4R2_FB2_Pos (2U) | |
4823 #define CAN_F4R2_FB2_Msk (0x1U << CAN_F4R2_FB2_Pos) /*!< 0x00000004 */ | |
4824 #define CAN_F4R2_FB2 CAN_F4R2_FB2_Msk /*!<Filter bit 2 */ | |
4825 #define CAN_F4R2_FB3_Pos (3U) | |
4826 #define CAN_F4R2_FB3_Msk (0x1U << CAN_F4R2_FB3_Pos) /*!< 0x00000008 */ | |
4827 #define CAN_F4R2_FB3 CAN_F4R2_FB3_Msk /*!<Filter bit 3 */ | |
4828 #define CAN_F4R2_FB4_Pos (4U) | |
4829 #define CAN_F4R2_FB4_Msk (0x1U << CAN_F4R2_FB4_Pos) /*!< 0x00000010 */ | |
4830 #define CAN_F4R2_FB4 CAN_F4R2_FB4_Msk /*!<Filter bit 4 */ | |
4831 #define CAN_F4R2_FB5_Pos (5U) | |
4832 #define CAN_F4R2_FB5_Msk (0x1U << CAN_F4R2_FB5_Pos) /*!< 0x00000020 */ | |
4833 #define CAN_F4R2_FB5 CAN_F4R2_FB5_Msk /*!<Filter bit 5 */ | |
4834 #define CAN_F4R2_FB6_Pos (6U) | |
4835 #define CAN_F4R2_FB6_Msk (0x1U << CAN_F4R2_FB6_Pos) /*!< 0x00000040 */ | |
4836 #define CAN_F4R2_FB6 CAN_F4R2_FB6_Msk /*!<Filter bit 6 */ | |
4837 #define CAN_F4R2_FB7_Pos (7U) | |
4838 #define CAN_F4R2_FB7_Msk (0x1U << CAN_F4R2_FB7_Pos) /*!< 0x00000080 */ | |
4839 #define CAN_F4R2_FB7 CAN_F4R2_FB7_Msk /*!<Filter bit 7 */ | |
4840 #define CAN_F4R2_FB8_Pos (8U) | |
4841 #define CAN_F4R2_FB8_Msk (0x1U << CAN_F4R2_FB8_Pos) /*!< 0x00000100 */ | |
4842 #define CAN_F4R2_FB8 CAN_F4R2_FB8_Msk /*!<Filter bit 8 */ | |
4843 #define CAN_F4R2_FB9_Pos (9U) | |
4844 #define CAN_F4R2_FB9_Msk (0x1U << CAN_F4R2_FB9_Pos) /*!< 0x00000200 */ | |
4845 #define CAN_F4R2_FB9 CAN_F4R2_FB9_Msk /*!<Filter bit 9 */ | |
4846 #define CAN_F4R2_FB10_Pos (10U) | |
4847 #define CAN_F4R2_FB10_Msk (0x1U << CAN_F4R2_FB10_Pos) /*!< 0x00000400 */ | |
4848 #define CAN_F4R2_FB10 CAN_F4R2_FB10_Msk /*!<Filter bit 10 */ | |
4849 #define CAN_F4R2_FB11_Pos (11U) | |
4850 #define CAN_F4R2_FB11_Msk (0x1U << CAN_F4R2_FB11_Pos) /*!< 0x00000800 */ | |
4851 #define CAN_F4R2_FB11 CAN_F4R2_FB11_Msk /*!<Filter bit 11 */ | |
4852 #define CAN_F4R2_FB12_Pos (12U) | |
4853 #define CAN_F4R2_FB12_Msk (0x1U << CAN_F4R2_FB12_Pos) /*!< 0x00001000 */ | |
4854 #define CAN_F4R2_FB12 CAN_F4R2_FB12_Msk /*!<Filter bit 12 */ | |
4855 #define CAN_F4R2_FB13_Pos (13U) | |
4856 #define CAN_F4R2_FB13_Msk (0x1U << CAN_F4R2_FB13_Pos) /*!< 0x00002000 */ | |
4857 #define CAN_F4R2_FB13 CAN_F4R2_FB13_Msk /*!<Filter bit 13 */ | |
4858 #define CAN_F4R2_FB14_Pos (14U) | |
4859 #define CAN_F4R2_FB14_Msk (0x1U << CAN_F4R2_FB14_Pos) /*!< 0x00004000 */ | |
4860 #define CAN_F4R2_FB14 CAN_F4R2_FB14_Msk /*!<Filter bit 14 */ | |
4861 #define CAN_F4R2_FB15_Pos (15U) | |
4862 #define CAN_F4R2_FB15_Msk (0x1U << CAN_F4R2_FB15_Pos) /*!< 0x00008000 */ | |
4863 #define CAN_F4R2_FB15 CAN_F4R2_FB15_Msk /*!<Filter bit 15 */ | |
4864 #define CAN_F4R2_FB16_Pos (16U) | |
4865 #define CAN_F4R2_FB16_Msk (0x1U << CAN_F4R2_FB16_Pos) /*!< 0x00010000 */ | |
4866 #define CAN_F4R2_FB16 CAN_F4R2_FB16_Msk /*!<Filter bit 16 */ | |
4867 #define CAN_F4R2_FB17_Pos (17U) | |
4868 #define CAN_F4R2_FB17_Msk (0x1U << CAN_F4R2_FB17_Pos) /*!< 0x00020000 */ | |
4869 #define CAN_F4R2_FB17 CAN_F4R2_FB17_Msk /*!<Filter bit 17 */ | |
4870 #define CAN_F4R2_FB18_Pos (18U) | |
4871 #define CAN_F4R2_FB18_Msk (0x1U << CAN_F4R2_FB18_Pos) /*!< 0x00040000 */ | |
4872 #define CAN_F4R2_FB18 CAN_F4R2_FB18_Msk /*!<Filter bit 18 */ | |
4873 #define CAN_F4R2_FB19_Pos (19U) | |
4874 #define CAN_F4R2_FB19_Msk (0x1U << CAN_F4R2_FB19_Pos) /*!< 0x00080000 */ | |
4875 #define CAN_F4R2_FB19 CAN_F4R2_FB19_Msk /*!<Filter bit 19 */ | |
4876 #define CAN_F4R2_FB20_Pos (20U) | |
4877 #define CAN_F4R2_FB20_Msk (0x1U << CAN_F4R2_FB20_Pos) /*!< 0x00100000 */ | |
4878 #define CAN_F4R2_FB20 CAN_F4R2_FB20_Msk /*!<Filter bit 20 */ | |
4879 #define CAN_F4R2_FB21_Pos (21U) | |
4880 #define CAN_F4R2_FB21_Msk (0x1U << CAN_F4R2_FB21_Pos) /*!< 0x00200000 */ | |
4881 #define CAN_F4R2_FB21 CAN_F4R2_FB21_Msk /*!<Filter bit 21 */ | |
4882 #define CAN_F4R2_FB22_Pos (22U) | |
4883 #define CAN_F4R2_FB22_Msk (0x1U << CAN_F4R2_FB22_Pos) /*!< 0x00400000 */ | |
4884 #define CAN_F4R2_FB22 CAN_F4R2_FB22_Msk /*!<Filter bit 22 */ | |
4885 #define CAN_F4R2_FB23_Pos (23U) | |
4886 #define CAN_F4R2_FB23_Msk (0x1U << CAN_F4R2_FB23_Pos) /*!< 0x00800000 */ | |
4887 #define CAN_F4R2_FB23 CAN_F4R2_FB23_Msk /*!<Filter bit 23 */ | |
4888 #define CAN_F4R2_FB24_Pos (24U) | |
4889 #define CAN_F4R2_FB24_Msk (0x1U << CAN_F4R2_FB24_Pos) /*!< 0x01000000 */ | |
4890 #define CAN_F4R2_FB24 CAN_F4R2_FB24_Msk /*!<Filter bit 24 */ | |
4891 #define CAN_F4R2_FB25_Pos (25U) | |
4892 #define CAN_F4R2_FB25_Msk (0x1U << CAN_F4R2_FB25_Pos) /*!< 0x02000000 */ | |
4893 #define CAN_F4R2_FB25 CAN_F4R2_FB25_Msk /*!<Filter bit 25 */ | |
4894 #define CAN_F4R2_FB26_Pos (26U) | |
4895 #define CAN_F4R2_FB26_Msk (0x1U << CAN_F4R2_FB26_Pos) /*!< 0x04000000 */ | |
4896 #define CAN_F4R2_FB26 CAN_F4R2_FB26_Msk /*!<Filter bit 26 */ | |
4897 #define CAN_F4R2_FB27_Pos (27U) | |
4898 #define CAN_F4R2_FB27_Msk (0x1U << CAN_F4R2_FB27_Pos) /*!< 0x08000000 */ | |
4899 #define CAN_F4R2_FB27 CAN_F4R2_FB27_Msk /*!<Filter bit 27 */ | |
4900 #define CAN_F4R2_FB28_Pos (28U) | |
4901 #define CAN_F4R2_FB28_Msk (0x1U << CAN_F4R2_FB28_Pos) /*!< 0x10000000 */ | |
4902 #define CAN_F4R2_FB28 CAN_F4R2_FB28_Msk /*!<Filter bit 28 */ | |
4903 #define CAN_F4R2_FB29_Pos (29U) | |
4904 #define CAN_F4R2_FB29_Msk (0x1U << CAN_F4R2_FB29_Pos) /*!< 0x20000000 */ | |
4905 #define CAN_F4R2_FB29 CAN_F4R2_FB29_Msk /*!<Filter bit 29 */ | |
4906 #define CAN_F4R2_FB30_Pos (30U) | |
4907 #define CAN_F4R2_FB30_Msk (0x1U << CAN_F4R2_FB30_Pos) /*!< 0x40000000 */ | |
4908 #define CAN_F4R2_FB30 CAN_F4R2_FB30_Msk /*!<Filter bit 30 */ | |
4909 #define CAN_F4R2_FB31_Pos (31U) | |
4910 #define CAN_F4R2_FB31_Msk (0x1U << CAN_F4R2_FB31_Pos) /*!< 0x80000000 */ | |
4911 #define CAN_F4R2_FB31 CAN_F4R2_FB31_Msk /*!<Filter bit 31 */ | |
4912 | |
4913 /******************* Bit definition for CAN_F5R2 register *******************/ | |
4914 #define CAN_F5R2_FB0_Pos (0U) | |
4915 #define CAN_F5R2_FB0_Msk (0x1U << CAN_F5R2_FB0_Pos) /*!< 0x00000001 */ | |
4916 #define CAN_F5R2_FB0 CAN_F5R2_FB0_Msk /*!<Filter bit 0 */ | |
4917 #define CAN_F5R2_FB1_Pos (1U) | |
4918 #define CAN_F5R2_FB1_Msk (0x1U << CAN_F5R2_FB1_Pos) /*!< 0x00000002 */ | |
4919 #define CAN_F5R2_FB1 CAN_F5R2_FB1_Msk /*!<Filter bit 1 */ | |
4920 #define CAN_F5R2_FB2_Pos (2U) | |
4921 #define CAN_F5R2_FB2_Msk (0x1U << CAN_F5R2_FB2_Pos) /*!< 0x00000004 */ | |
4922 #define CAN_F5R2_FB2 CAN_F5R2_FB2_Msk /*!<Filter bit 2 */ | |
4923 #define CAN_F5R2_FB3_Pos (3U) | |
4924 #define CAN_F5R2_FB3_Msk (0x1U << CAN_F5R2_FB3_Pos) /*!< 0x00000008 */ | |
4925 #define CAN_F5R2_FB3 CAN_F5R2_FB3_Msk /*!<Filter bit 3 */ | |
4926 #define CAN_F5R2_FB4_Pos (4U) | |
4927 #define CAN_F5R2_FB4_Msk (0x1U << CAN_F5R2_FB4_Pos) /*!< 0x00000010 */ | |
4928 #define CAN_F5R2_FB4 CAN_F5R2_FB4_Msk /*!<Filter bit 4 */ | |
4929 #define CAN_F5R2_FB5_Pos (5U) | |
4930 #define CAN_F5R2_FB5_Msk (0x1U << CAN_F5R2_FB5_Pos) /*!< 0x00000020 */ | |
4931 #define CAN_F5R2_FB5 CAN_F5R2_FB5_Msk /*!<Filter bit 5 */ | |
4932 #define CAN_F5R2_FB6_Pos (6U) | |
4933 #define CAN_F5R2_FB6_Msk (0x1U << CAN_F5R2_FB6_Pos) /*!< 0x00000040 */ | |
4934 #define CAN_F5R2_FB6 CAN_F5R2_FB6_Msk /*!<Filter bit 6 */ | |
4935 #define CAN_F5R2_FB7_Pos (7U) | |
4936 #define CAN_F5R2_FB7_Msk (0x1U << CAN_F5R2_FB7_Pos) /*!< 0x00000080 */ | |
4937 #define CAN_F5R2_FB7 CAN_F5R2_FB7_Msk /*!<Filter bit 7 */ | |
4938 #define CAN_F5R2_FB8_Pos (8U) | |
4939 #define CAN_F5R2_FB8_Msk (0x1U << CAN_F5R2_FB8_Pos) /*!< 0x00000100 */ | |
4940 #define CAN_F5R2_FB8 CAN_F5R2_FB8_Msk /*!<Filter bit 8 */ | |
4941 #define CAN_F5R2_FB9_Pos (9U) | |
4942 #define CAN_F5R2_FB9_Msk (0x1U << CAN_F5R2_FB9_Pos) /*!< 0x00000200 */ | |
4943 #define CAN_F5R2_FB9 CAN_F5R2_FB9_Msk /*!<Filter bit 9 */ | |
4944 #define CAN_F5R2_FB10_Pos (10U) | |
4945 #define CAN_F5R2_FB10_Msk (0x1U << CAN_F5R2_FB10_Pos) /*!< 0x00000400 */ | |
4946 #define CAN_F5R2_FB10 CAN_F5R2_FB10_Msk /*!<Filter bit 10 */ | |
4947 #define CAN_F5R2_FB11_Pos (11U) | |
4948 #define CAN_F5R2_FB11_Msk (0x1U << CAN_F5R2_FB11_Pos) /*!< 0x00000800 */ | |
4949 #define CAN_F5R2_FB11 CAN_F5R2_FB11_Msk /*!<Filter bit 11 */ | |
4950 #define CAN_F5R2_FB12_Pos (12U) | |
4951 #define CAN_F5R2_FB12_Msk (0x1U << CAN_F5R2_FB12_Pos) /*!< 0x00001000 */ | |
4952 #define CAN_F5R2_FB12 CAN_F5R2_FB12_Msk /*!<Filter bit 12 */ | |
4953 #define CAN_F5R2_FB13_Pos (13U) | |
4954 #define CAN_F5R2_FB13_Msk (0x1U << CAN_F5R2_FB13_Pos) /*!< 0x00002000 */ | |
4955 #define CAN_F5R2_FB13 CAN_F5R2_FB13_Msk /*!<Filter bit 13 */ | |
4956 #define CAN_F5R2_FB14_Pos (14U) | |
4957 #define CAN_F5R2_FB14_Msk (0x1U << CAN_F5R2_FB14_Pos) /*!< 0x00004000 */ | |
4958 #define CAN_F5R2_FB14 CAN_F5R2_FB14_Msk /*!<Filter bit 14 */ | |
4959 #define CAN_F5R2_FB15_Pos (15U) | |
4960 #define CAN_F5R2_FB15_Msk (0x1U << CAN_F5R2_FB15_Pos) /*!< 0x00008000 */ | |
4961 #define CAN_F5R2_FB15 CAN_F5R2_FB15_Msk /*!<Filter bit 15 */ | |
4962 #define CAN_F5R2_FB16_Pos (16U) | |
4963 #define CAN_F5R2_FB16_Msk (0x1U << CAN_F5R2_FB16_Pos) /*!< 0x00010000 */ | |
4964 #define CAN_F5R2_FB16 CAN_F5R2_FB16_Msk /*!<Filter bit 16 */ | |
4965 #define CAN_F5R2_FB17_Pos (17U) | |
4966 #define CAN_F5R2_FB17_Msk (0x1U << CAN_F5R2_FB17_Pos) /*!< 0x00020000 */ | |
4967 #define CAN_F5R2_FB17 CAN_F5R2_FB17_Msk /*!<Filter bit 17 */ | |
4968 #define CAN_F5R2_FB18_Pos (18U) | |
4969 #define CAN_F5R2_FB18_Msk (0x1U << CAN_F5R2_FB18_Pos) /*!< 0x00040000 */ | |
4970 #define CAN_F5R2_FB18 CAN_F5R2_FB18_Msk /*!<Filter bit 18 */ | |
4971 #define CAN_F5R2_FB19_Pos (19U) | |
4972 #define CAN_F5R2_FB19_Msk (0x1U << CAN_F5R2_FB19_Pos) /*!< 0x00080000 */ | |
4973 #define CAN_F5R2_FB19 CAN_F5R2_FB19_Msk /*!<Filter bit 19 */ | |
4974 #define CAN_F5R2_FB20_Pos (20U) | |
4975 #define CAN_F5R2_FB20_Msk (0x1U << CAN_F5R2_FB20_Pos) /*!< 0x00100000 */ | |
4976 #define CAN_F5R2_FB20 CAN_F5R2_FB20_Msk /*!<Filter bit 20 */ | |
4977 #define CAN_F5R2_FB21_Pos (21U) | |
4978 #define CAN_F5R2_FB21_Msk (0x1U << CAN_F5R2_FB21_Pos) /*!< 0x00200000 */ | |
4979 #define CAN_F5R2_FB21 CAN_F5R2_FB21_Msk /*!<Filter bit 21 */ | |
4980 #define CAN_F5R2_FB22_Pos (22U) | |
4981 #define CAN_F5R2_FB22_Msk (0x1U << CAN_F5R2_FB22_Pos) /*!< 0x00400000 */ | |
4982 #define CAN_F5R2_FB22 CAN_F5R2_FB22_Msk /*!<Filter bit 22 */ | |
4983 #define CAN_F5R2_FB23_Pos (23U) | |
4984 #define CAN_F5R2_FB23_Msk (0x1U << CAN_F5R2_FB23_Pos) /*!< 0x00800000 */ | |
4985 #define CAN_F5R2_FB23 CAN_F5R2_FB23_Msk /*!<Filter bit 23 */ | |
4986 #define CAN_F5R2_FB24_Pos (24U) | |
4987 #define CAN_F5R2_FB24_Msk (0x1U << CAN_F5R2_FB24_Pos) /*!< 0x01000000 */ | |
4988 #define CAN_F5R2_FB24 CAN_F5R2_FB24_Msk /*!<Filter bit 24 */ | |
4989 #define CAN_F5R2_FB25_Pos (25U) | |
4990 #define CAN_F5R2_FB25_Msk (0x1U << CAN_F5R2_FB25_Pos) /*!< 0x02000000 */ | |
4991 #define CAN_F5R2_FB25 CAN_F5R2_FB25_Msk /*!<Filter bit 25 */ | |
4992 #define CAN_F5R2_FB26_Pos (26U) | |
4993 #define CAN_F5R2_FB26_Msk (0x1U << CAN_F5R2_FB26_Pos) /*!< 0x04000000 */ | |
4994 #define CAN_F5R2_FB26 CAN_F5R2_FB26_Msk /*!<Filter bit 26 */ | |
4995 #define CAN_F5R2_FB27_Pos (27U) | |
4996 #define CAN_F5R2_FB27_Msk (0x1U << CAN_F5R2_FB27_Pos) /*!< 0x08000000 */ | |
4997 #define CAN_F5R2_FB27 CAN_F5R2_FB27_Msk /*!<Filter bit 27 */ | |
4998 #define CAN_F5R2_FB28_Pos (28U) | |
4999 #define CAN_F5R2_FB28_Msk (0x1U << CAN_F5R2_FB28_Pos) /*!< 0x10000000 */ | |
5000 #define CAN_F5R2_FB28 CAN_F5R2_FB28_Msk /*!<Filter bit 28 */ | |
5001 #define CAN_F5R2_FB29_Pos (29U) | |
5002 #define CAN_F5R2_FB29_Msk (0x1U << CAN_F5R2_FB29_Pos) /*!< 0x20000000 */ | |
5003 #define CAN_F5R2_FB29 CAN_F5R2_FB29_Msk /*!<Filter bit 29 */ | |
5004 #define CAN_F5R2_FB30_Pos (30U) | |
5005 #define CAN_F5R2_FB30_Msk (0x1U << CAN_F5R2_FB30_Pos) /*!< 0x40000000 */ | |
5006 #define CAN_F5R2_FB30 CAN_F5R2_FB30_Msk /*!<Filter bit 30 */ | |
5007 #define CAN_F5R2_FB31_Pos (31U) | |
5008 #define CAN_F5R2_FB31_Msk (0x1U << CAN_F5R2_FB31_Pos) /*!< 0x80000000 */ | |
5009 #define CAN_F5R2_FB31 CAN_F5R2_FB31_Msk /*!<Filter bit 31 */ | |
5010 | |
5011 /******************* Bit definition for CAN_F6R2 register *******************/ | |
5012 #define CAN_F6R2_FB0_Pos (0U) | |
5013 #define CAN_F6R2_FB0_Msk (0x1U << CAN_F6R2_FB0_Pos) /*!< 0x00000001 */ | |
5014 #define CAN_F6R2_FB0 CAN_F6R2_FB0_Msk /*!<Filter bit 0 */ | |
5015 #define CAN_F6R2_FB1_Pos (1U) | |
5016 #define CAN_F6R2_FB1_Msk (0x1U << CAN_F6R2_FB1_Pos) /*!< 0x00000002 */ | |
5017 #define CAN_F6R2_FB1 CAN_F6R2_FB1_Msk /*!<Filter bit 1 */ | |
5018 #define CAN_F6R2_FB2_Pos (2U) | |
5019 #define CAN_F6R2_FB2_Msk (0x1U << CAN_F6R2_FB2_Pos) /*!< 0x00000004 */ | |
5020 #define CAN_F6R2_FB2 CAN_F6R2_FB2_Msk /*!<Filter bit 2 */ | |
5021 #define CAN_F6R2_FB3_Pos (3U) | |
5022 #define CAN_F6R2_FB3_Msk (0x1U << CAN_F6R2_FB3_Pos) /*!< 0x00000008 */ | |
5023 #define CAN_F6R2_FB3 CAN_F6R2_FB3_Msk /*!<Filter bit 3 */ | |
5024 #define CAN_F6R2_FB4_Pos (4U) | |
5025 #define CAN_F6R2_FB4_Msk (0x1U << CAN_F6R2_FB4_Pos) /*!< 0x00000010 */ | |
5026 #define CAN_F6R2_FB4 CAN_F6R2_FB4_Msk /*!<Filter bit 4 */ | |
5027 #define CAN_F6R2_FB5_Pos (5U) | |
5028 #define CAN_F6R2_FB5_Msk (0x1U << CAN_F6R2_FB5_Pos) /*!< 0x00000020 */ | |
5029 #define CAN_F6R2_FB5 CAN_F6R2_FB5_Msk /*!<Filter bit 5 */ | |
5030 #define CAN_F6R2_FB6_Pos (6U) | |
5031 #define CAN_F6R2_FB6_Msk (0x1U << CAN_F6R2_FB6_Pos) /*!< 0x00000040 */ | |
5032 #define CAN_F6R2_FB6 CAN_F6R2_FB6_Msk /*!<Filter bit 6 */ | |
5033 #define CAN_F6R2_FB7_Pos (7U) | |
5034 #define CAN_F6R2_FB7_Msk (0x1U << CAN_F6R2_FB7_Pos) /*!< 0x00000080 */ | |
5035 #define CAN_F6R2_FB7 CAN_F6R2_FB7_Msk /*!<Filter bit 7 */ | |
5036 #define CAN_F6R2_FB8_Pos (8U) | |
5037 #define CAN_F6R2_FB8_Msk (0x1U << CAN_F6R2_FB8_Pos) /*!< 0x00000100 */ | |
5038 #define CAN_F6R2_FB8 CAN_F6R2_FB8_Msk /*!<Filter bit 8 */ | |
5039 #define CAN_F6R2_FB9_Pos (9U) | |
5040 #define CAN_F6R2_FB9_Msk (0x1U << CAN_F6R2_FB9_Pos) /*!< 0x00000200 */ | |
5041 #define CAN_F6R2_FB9 CAN_F6R2_FB9_Msk /*!<Filter bit 9 */ | |
5042 #define CAN_F6R2_FB10_Pos (10U) | |
5043 #define CAN_F6R2_FB10_Msk (0x1U << CAN_F6R2_FB10_Pos) /*!< 0x00000400 */ | |
5044 #define CAN_F6R2_FB10 CAN_F6R2_FB10_Msk /*!<Filter bit 10 */ | |
5045 #define CAN_F6R2_FB11_Pos (11U) | |
5046 #define CAN_F6R2_FB11_Msk (0x1U << CAN_F6R2_FB11_Pos) /*!< 0x00000800 */ | |
5047 #define CAN_F6R2_FB11 CAN_F6R2_FB11_Msk /*!<Filter bit 11 */ | |
5048 #define CAN_F6R2_FB12_Pos (12U) | |
5049 #define CAN_F6R2_FB12_Msk (0x1U << CAN_F6R2_FB12_Pos) /*!< 0x00001000 */ | |
5050 #define CAN_F6R2_FB12 CAN_F6R2_FB12_Msk /*!<Filter bit 12 */ | |
5051 #define CAN_F6R2_FB13_Pos (13U) | |
5052 #define CAN_F6R2_FB13_Msk (0x1U << CAN_F6R2_FB13_Pos) /*!< 0x00002000 */ | |
5053 #define CAN_F6R2_FB13 CAN_F6R2_FB13_Msk /*!<Filter bit 13 */ | |
5054 #define CAN_F6R2_FB14_Pos (14U) | |
5055 #define CAN_F6R2_FB14_Msk (0x1U << CAN_F6R2_FB14_Pos) /*!< 0x00004000 */ | |
5056 #define CAN_F6R2_FB14 CAN_F6R2_FB14_Msk /*!<Filter bit 14 */ | |
5057 #define CAN_F6R2_FB15_Pos (15U) | |
5058 #define CAN_F6R2_FB15_Msk (0x1U << CAN_F6R2_FB15_Pos) /*!< 0x00008000 */ | |
5059 #define CAN_F6R2_FB15 CAN_F6R2_FB15_Msk /*!<Filter bit 15 */ | |
5060 #define CAN_F6R2_FB16_Pos (16U) | |
5061 #define CAN_F6R2_FB16_Msk (0x1U << CAN_F6R2_FB16_Pos) /*!< 0x00010000 */ | |
5062 #define CAN_F6R2_FB16 CAN_F6R2_FB16_Msk /*!<Filter bit 16 */ | |
5063 #define CAN_F6R2_FB17_Pos (17U) | |
5064 #define CAN_F6R2_FB17_Msk (0x1U << CAN_F6R2_FB17_Pos) /*!< 0x00020000 */ | |
5065 #define CAN_F6R2_FB17 CAN_F6R2_FB17_Msk /*!<Filter bit 17 */ | |
5066 #define CAN_F6R2_FB18_Pos (18U) | |
5067 #define CAN_F6R2_FB18_Msk (0x1U << CAN_F6R2_FB18_Pos) /*!< 0x00040000 */ | |
5068 #define CAN_F6R2_FB18 CAN_F6R2_FB18_Msk /*!<Filter bit 18 */ | |
5069 #define CAN_F6R2_FB19_Pos (19U) | |
5070 #define CAN_F6R2_FB19_Msk (0x1U << CAN_F6R2_FB19_Pos) /*!< 0x00080000 */ | |
5071 #define CAN_F6R2_FB19 CAN_F6R2_FB19_Msk /*!<Filter bit 19 */ | |
5072 #define CAN_F6R2_FB20_Pos (20U) | |
5073 #define CAN_F6R2_FB20_Msk (0x1U << CAN_F6R2_FB20_Pos) /*!< 0x00100000 */ | |
5074 #define CAN_F6R2_FB20 CAN_F6R2_FB20_Msk /*!<Filter bit 20 */ | |
5075 #define CAN_F6R2_FB21_Pos (21U) | |
5076 #define CAN_F6R2_FB21_Msk (0x1U << CAN_F6R2_FB21_Pos) /*!< 0x00200000 */ | |
5077 #define CAN_F6R2_FB21 CAN_F6R2_FB21_Msk /*!<Filter bit 21 */ | |
5078 #define CAN_F6R2_FB22_Pos (22U) | |
5079 #define CAN_F6R2_FB22_Msk (0x1U << CAN_F6R2_FB22_Pos) /*!< 0x00400000 */ | |
5080 #define CAN_F6R2_FB22 CAN_F6R2_FB22_Msk /*!<Filter bit 22 */ | |
5081 #define CAN_F6R2_FB23_Pos (23U) | |
5082 #define CAN_F6R2_FB23_Msk (0x1U << CAN_F6R2_FB23_Pos) /*!< 0x00800000 */ | |
5083 #define CAN_F6R2_FB23 CAN_F6R2_FB23_Msk /*!<Filter bit 23 */ | |
5084 #define CAN_F6R2_FB24_Pos (24U) | |
5085 #define CAN_F6R2_FB24_Msk (0x1U << CAN_F6R2_FB24_Pos) /*!< 0x01000000 */ | |
5086 #define CAN_F6R2_FB24 CAN_F6R2_FB24_Msk /*!<Filter bit 24 */ | |
5087 #define CAN_F6R2_FB25_Pos (25U) | |
5088 #define CAN_F6R2_FB25_Msk (0x1U << CAN_F6R2_FB25_Pos) /*!< 0x02000000 */ | |
5089 #define CAN_F6R2_FB25 CAN_F6R2_FB25_Msk /*!<Filter bit 25 */ | |
5090 #define CAN_F6R2_FB26_Pos (26U) | |
5091 #define CAN_F6R2_FB26_Msk (0x1U << CAN_F6R2_FB26_Pos) /*!< 0x04000000 */ | |
5092 #define CAN_F6R2_FB26 CAN_F6R2_FB26_Msk /*!<Filter bit 26 */ | |
5093 #define CAN_F6R2_FB27_Pos (27U) | |
5094 #define CAN_F6R2_FB27_Msk (0x1U << CAN_F6R2_FB27_Pos) /*!< 0x08000000 */ | |
5095 #define CAN_F6R2_FB27 CAN_F6R2_FB27_Msk /*!<Filter bit 27 */ | |
5096 #define CAN_F6R2_FB28_Pos (28U) | |
5097 #define CAN_F6R2_FB28_Msk (0x1U << CAN_F6R2_FB28_Pos) /*!< 0x10000000 */ | |
5098 #define CAN_F6R2_FB28 CAN_F6R2_FB28_Msk /*!<Filter bit 28 */ | |
5099 #define CAN_F6R2_FB29_Pos (29U) | |
5100 #define CAN_F6R2_FB29_Msk (0x1U << CAN_F6R2_FB29_Pos) /*!< 0x20000000 */ | |
5101 #define CAN_F6R2_FB29 CAN_F6R2_FB29_Msk /*!<Filter bit 29 */ | |
5102 #define CAN_F6R2_FB30_Pos (30U) | |
5103 #define CAN_F6R2_FB30_Msk (0x1U << CAN_F6R2_FB30_Pos) /*!< 0x40000000 */ | |
5104 #define CAN_F6R2_FB30 CAN_F6R2_FB30_Msk /*!<Filter bit 30 */ | |
5105 #define CAN_F6R2_FB31_Pos (31U) | |
5106 #define CAN_F6R2_FB31_Msk (0x1U << CAN_F6R2_FB31_Pos) /*!< 0x80000000 */ | |
5107 #define CAN_F6R2_FB31 CAN_F6R2_FB31_Msk /*!<Filter bit 31 */ | |
5108 | |
5109 /******************* Bit definition for CAN_F7R2 register *******************/ | |
5110 #define CAN_F7R2_FB0_Pos (0U) | |
5111 #define CAN_F7R2_FB0_Msk (0x1U << CAN_F7R2_FB0_Pos) /*!< 0x00000001 */ | |
5112 #define CAN_F7R2_FB0 CAN_F7R2_FB0_Msk /*!<Filter bit 0 */ | |
5113 #define CAN_F7R2_FB1_Pos (1U) | |
5114 #define CAN_F7R2_FB1_Msk (0x1U << CAN_F7R2_FB1_Pos) /*!< 0x00000002 */ | |
5115 #define CAN_F7R2_FB1 CAN_F7R2_FB1_Msk /*!<Filter bit 1 */ | |
5116 #define CAN_F7R2_FB2_Pos (2U) | |
5117 #define CAN_F7R2_FB2_Msk (0x1U << CAN_F7R2_FB2_Pos) /*!< 0x00000004 */ | |
5118 #define CAN_F7R2_FB2 CAN_F7R2_FB2_Msk /*!<Filter bit 2 */ | |
5119 #define CAN_F7R2_FB3_Pos (3U) | |
5120 #define CAN_F7R2_FB3_Msk (0x1U << CAN_F7R2_FB3_Pos) /*!< 0x00000008 */ | |
5121 #define CAN_F7R2_FB3 CAN_F7R2_FB3_Msk /*!<Filter bit 3 */ | |
5122 #define CAN_F7R2_FB4_Pos (4U) | |
5123 #define CAN_F7R2_FB4_Msk (0x1U << CAN_F7R2_FB4_Pos) /*!< 0x00000010 */ | |
5124 #define CAN_F7R2_FB4 CAN_F7R2_FB4_Msk /*!<Filter bit 4 */ | |
5125 #define CAN_F7R2_FB5_Pos (5U) | |
5126 #define CAN_F7R2_FB5_Msk (0x1U << CAN_F7R2_FB5_Pos) /*!< 0x00000020 */ | |
5127 #define CAN_F7R2_FB5 CAN_F7R2_FB5_Msk /*!<Filter bit 5 */ | |
5128 #define CAN_F7R2_FB6_Pos (6U) | |
5129 #define CAN_F7R2_FB6_Msk (0x1U << CAN_F7R2_FB6_Pos) /*!< 0x00000040 */ | |
5130 #define CAN_F7R2_FB6 CAN_F7R2_FB6_Msk /*!<Filter bit 6 */ | |
5131 #define CAN_F7R2_FB7_Pos (7U) | |
5132 #define CAN_F7R2_FB7_Msk (0x1U << CAN_F7R2_FB7_Pos) /*!< 0x00000080 */ | |
5133 #define CAN_F7R2_FB7 CAN_F7R2_FB7_Msk /*!<Filter bit 7 */ | |
5134 #define CAN_F7R2_FB8_Pos (8U) | |
5135 #define CAN_F7R2_FB8_Msk (0x1U << CAN_F7R2_FB8_Pos) /*!< 0x00000100 */ | |
5136 #define CAN_F7R2_FB8 CAN_F7R2_FB8_Msk /*!<Filter bit 8 */ | |
5137 #define CAN_F7R2_FB9_Pos (9U) | |
5138 #define CAN_F7R2_FB9_Msk (0x1U << CAN_F7R2_FB9_Pos) /*!< 0x00000200 */ | |
5139 #define CAN_F7R2_FB9 CAN_F7R2_FB9_Msk /*!<Filter bit 9 */ | |
5140 #define CAN_F7R2_FB10_Pos (10U) | |
5141 #define CAN_F7R2_FB10_Msk (0x1U << CAN_F7R2_FB10_Pos) /*!< 0x00000400 */ | |
5142 #define CAN_F7R2_FB10 CAN_F7R2_FB10_Msk /*!<Filter bit 10 */ | |
5143 #define CAN_F7R2_FB11_Pos (11U) | |
5144 #define CAN_F7R2_FB11_Msk (0x1U << CAN_F7R2_FB11_Pos) /*!< 0x00000800 */ | |
5145 #define CAN_F7R2_FB11 CAN_F7R2_FB11_Msk /*!<Filter bit 11 */ | |
5146 #define CAN_F7R2_FB12_Pos (12U) | |
5147 #define CAN_F7R2_FB12_Msk (0x1U << CAN_F7R2_FB12_Pos) /*!< 0x00001000 */ | |
5148 #define CAN_F7R2_FB12 CAN_F7R2_FB12_Msk /*!<Filter bit 12 */ | |
5149 #define CAN_F7R2_FB13_Pos (13U) | |
5150 #define CAN_F7R2_FB13_Msk (0x1U << CAN_F7R2_FB13_Pos) /*!< 0x00002000 */ | |
5151 #define CAN_F7R2_FB13 CAN_F7R2_FB13_Msk /*!<Filter bit 13 */ | |
5152 #define CAN_F7R2_FB14_Pos (14U) | |
5153 #define CAN_F7R2_FB14_Msk (0x1U << CAN_F7R2_FB14_Pos) /*!< 0x00004000 */ | |
5154 #define CAN_F7R2_FB14 CAN_F7R2_FB14_Msk /*!<Filter bit 14 */ | |
5155 #define CAN_F7R2_FB15_Pos (15U) | |
5156 #define CAN_F7R2_FB15_Msk (0x1U << CAN_F7R2_FB15_Pos) /*!< 0x00008000 */ | |
5157 #define CAN_F7R2_FB15 CAN_F7R2_FB15_Msk /*!<Filter bit 15 */ | |
5158 #define CAN_F7R2_FB16_Pos (16U) | |
5159 #define CAN_F7R2_FB16_Msk (0x1U << CAN_F7R2_FB16_Pos) /*!< 0x00010000 */ | |
5160 #define CAN_F7R2_FB16 CAN_F7R2_FB16_Msk /*!<Filter bit 16 */ | |
5161 #define CAN_F7R2_FB17_Pos (17U) | |
5162 #define CAN_F7R2_FB17_Msk (0x1U << CAN_F7R2_FB17_Pos) /*!< 0x00020000 */ | |
5163 #define CAN_F7R2_FB17 CAN_F7R2_FB17_Msk /*!<Filter bit 17 */ | |
5164 #define CAN_F7R2_FB18_Pos (18U) | |
5165 #define CAN_F7R2_FB18_Msk (0x1U << CAN_F7R2_FB18_Pos) /*!< 0x00040000 */ | |
5166 #define CAN_F7R2_FB18 CAN_F7R2_FB18_Msk /*!<Filter bit 18 */ | |
5167 #define CAN_F7R2_FB19_Pos (19U) | |
5168 #define CAN_F7R2_FB19_Msk (0x1U << CAN_F7R2_FB19_Pos) /*!< 0x00080000 */ | |
5169 #define CAN_F7R2_FB19 CAN_F7R2_FB19_Msk /*!<Filter bit 19 */ | |
5170 #define CAN_F7R2_FB20_Pos (20U) | |
5171 #define CAN_F7R2_FB20_Msk (0x1U << CAN_F7R2_FB20_Pos) /*!< 0x00100000 */ | |
5172 #define CAN_F7R2_FB20 CAN_F7R2_FB20_Msk /*!<Filter bit 20 */ | |
5173 #define CAN_F7R2_FB21_Pos (21U) | |
5174 #define CAN_F7R2_FB21_Msk (0x1U << CAN_F7R2_FB21_Pos) /*!< 0x00200000 */ | |
5175 #define CAN_F7R2_FB21 CAN_F7R2_FB21_Msk /*!<Filter bit 21 */ | |
5176 #define CAN_F7R2_FB22_Pos (22U) | |
5177 #define CAN_F7R2_FB22_Msk (0x1U << CAN_F7R2_FB22_Pos) /*!< 0x00400000 */ | |
5178 #define CAN_F7R2_FB22 CAN_F7R2_FB22_Msk /*!<Filter bit 22 */ | |
5179 #define CAN_F7R2_FB23_Pos (23U) | |
5180 #define CAN_F7R2_FB23_Msk (0x1U << CAN_F7R2_FB23_Pos) /*!< 0x00800000 */ | |
5181 #define CAN_F7R2_FB23 CAN_F7R2_FB23_Msk /*!<Filter bit 23 */ | |
5182 #define CAN_F7R2_FB24_Pos (24U) | |
5183 #define CAN_F7R2_FB24_Msk (0x1U << CAN_F7R2_FB24_Pos) /*!< 0x01000000 */ | |
5184 #define CAN_F7R2_FB24 CAN_F7R2_FB24_Msk /*!<Filter bit 24 */ | |
5185 #define CAN_F7R2_FB25_Pos (25U) | |
5186 #define CAN_F7R2_FB25_Msk (0x1U << CAN_F7R2_FB25_Pos) /*!< 0x02000000 */ | |
5187 #define CAN_F7R2_FB25 CAN_F7R2_FB25_Msk /*!<Filter bit 25 */ | |
5188 #define CAN_F7R2_FB26_Pos (26U) | |
5189 #define CAN_F7R2_FB26_Msk (0x1U << CAN_F7R2_FB26_Pos) /*!< 0x04000000 */ | |
5190 #define CAN_F7R2_FB26 CAN_F7R2_FB26_Msk /*!<Filter bit 26 */ | |
5191 #define CAN_F7R2_FB27_Pos (27U) | |
5192 #define CAN_F7R2_FB27_Msk (0x1U << CAN_F7R2_FB27_Pos) /*!< 0x08000000 */ | |
5193 #define CAN_F7R2_FB27 CAN_F7R2_FB27_Msk /*!<Filter bit 27 */ | |
5194 #define CAN_F7R2_FB28_Pos (28U) | |
5195 #define CAN_F7R2_FB28_Msk (0x1U << CAN_F7R2_FB28_Pos) /*!< 0x10000000 */ | |
5196 #define CAN_F7R2_FB28 CAN_F7R2_FB28_Msk /*!<Filter bit 28 */ | |
5197 #define CAN_F7R2_FB29_Pos (29U) | |
5198 #define CAN_F7R2_FB29_Msk (0x1U << CAN_F7R2_FB29_Pos) /*!< 0x20000000 */ | |
5199 #define CAN_F7R2_FB29 CAN_F7R2_FB29_Msk /*!<Filter bit 29 */ | |
5200 #define CAN_F7R2_FB30_Pos (30U) | |
5201 #define CAN_F7R2_FB30_Msk (0x1U << CAN_F7R2_FB30_Pos) /*!< 0x40000000 */ | |
5202 #define CAN_F7R2_FB30 CAN_F7R2_FB30_Msk /*!<Filter bit 30 */ | |
5203 #define CAN_F7R2_FB31_Pos (31U) | |
5204 #define CAN_F7R2_FB31_Msk (0x1U << CAN_F7R2_FB31_Pos) /*!< 0x80000000 */ | |
5205 #define CAN_F7R2_FB31 CAN_F7R2_FB31_Msk /*!<Filter bit 31 */ | |
5206 | |
5207 /******************* Bit definition for CAN_F8R2 register *******************/ | |
5208 #define CAN_F8R2_FB0_Pos (0U) | |
5209 #define CAN_F8R2_FB0_Msk (0x1U << CAN_F8R2_FB0_Pos) /*!< 0x00000001 */ | |
5210 #define CAN_F8R2_FB0 CAN_F8R2_FB0_Msk /*!<Filter bit 0 */ | |
5211 #define CAN_F8R2_FB1_Pos (1U) | |
5212 #define CAN_F8R2_FB1_Msk (0x1U << CAN_F8R2_FB1_Pos) /*!< 0x00000002 */ | |
5213 #define CAN_F8R2_FB1 CAN_F8R2_FB1_Msk /*!<Filter bit 1 */ | |
5214 #define CAN_F8R2_FB2_Pos (2U) | |
5215 #define CAN_F8R2_FB2_Msk (0x1U << CAN_F8R2_FB2_Pos) /*!< 0x00000004 */ | |
5216 #define CAN_F8R2_FB2 CAN_F8R2_FB2_Msk /*!<Filter bit 2 */ | |
5217 #define CAN_F8R2_FB3_Pos (3U) | |
5218 #define CAN_F8R2_FB3_Msk (0x1U << CAN_F8R2_FB3_Pos) /*!< 0x00000008 */ | |
5219 #define CAN_F8R2_FB3 CAN_F8R2_FB3_Msk /*!<Filter bit 3 */ | |
5220 #define CAN_F8R2_FB4_Pos (4U) | |
5221 #define CAN_F8R2_FB4_Msk (0x1U << CAN_F8R2_FB4_Pos) /*!< 0x00000010 */ | |
5222 #define CAN_F8R2_FB4 CAN_F8R2_FB4_Msk /*!<Filter bit 4 */ | |
5223 #define CAN_F8R2_FB5_Pos (5U) | |
5224 #define CAN_F8R2_FB5_Msk (0x1U << CAN_F8R2_FB5_Pos) /*!< 0x00000020 */ | |
5225 #define CAN_F8R2_FB5 CAN_F8R2_FB5_Msk /*!<Filter bit 5 */ | |
5226 #define CAN_F8R2_FB6_Pos (6U) | |
5227 #define CAN_F8R2_FB6_Msk (0x1U << CAN_F8R2_FB6_Pos) /*!< 0x00000040 */ | |
5228 #define CAN_F8R2_FB6 CAN_F8R2_FB6_Msk /*!<Filter bit 6 */ | |
5229 #define CAN_F8R2_FB7_Pos (7U) | |
5230 #define CAN_F8R2_FB7_Msk (0x1U << CAN_F8R2_FB7_Pos) /*!< 0x00000080 */ | |
5231 #define CAN_F8R2_FB7 CAN_F8R2_FB7_Msk /*!<Filter bit 7 */ | |
5232 #define CAN_F8R2_FB8_Pos (8U) | |
5233 #define CAN_F8R2_FB8_Msk (0x1U << CAN_F8R2_FB8_Pos) /*!< 0x00000100 */ | |
5234 #define CAN_F8R2_FB8 CAN_F8R2_FB8_Msk /*!<Filter bit 8 */ | |
5235 #define CAN_F8R2_FB9_Pos (9U) | |
5236 #define CAN_F8R2_FB9_Msk (0x1U << CAN_F8R2_FB9_Pos) /*!< 0x00000200 */ | |
5237 #define CAN_F8R2_FB9 CAN_F8R2_FB9_Msk /*!<Filter bit 9 */ | |
5238 #define CAN_F8R2_FB10_Pos (10U) | |
5239 #define CAN_F8R2_FB10_Msk (0x1U << CAN_F8R2_FB10_Pos) /*!< 0x00000400 */ | |
5240 #define CAN_F8R2_FB10 CAN_F8R2_FB10_Msk /*!<Filter bit 10 */ | |
5241 #define CAN_F8R2_FB11_Pos (11U) | |
5242 #define CAN_F8R2_FB11_Msk (0x1U << CAN_F8R2_FB11_Pos) /*!< 0x00000800 */ | |
5243 #define CAN_F8R2_FB11 CAN_F8R2_FB11_Msk /*!<Filter bit 11 */ | |
5244 #define CAN_F8R2_FB12_Pos (12U) | |
5245 #define CAN_F8R2_FB12_Msk (0x1U << CAN_F8R2_FB12_Pos) /*!< 0x00001000 */ | |
5246 #define CAN_F8R2_FB12 CAN_F8R2_FB12_Msk /*!<Filter bit 12 */ | |
5247 #define CAN_F8R2_FB13_Pos (13U) | |
5248 #define CAN_F8R2_FB13_Msk (0x1U << CAN_F8R2_FB13_Pos) /*!< 0x00002000 */ | |
5249 #define CAN_F8R2_FB13 CAN_F8R2_FB13_Msk /*!<Filter bit 13 */ | |
5250 #define CAN_F8R2_FB14_Pos (14U) | |
5251 #define CAN_F8R2_FB14_Msk (0x1U << CAN_F8R2_FB14_Pos) /*!< 0x00004000 */ | |
5252 #define CAN_F8R2_FB14 CAN_F8R2_FB14_Msk /*!<Filter bit 14 */ | |
5253 #define CAN_F8R2_FB15_Pos (15U) | |
5254 #define CAN_F8R2_FB15_Msk (0x1U << CAN_F8R2_FB15_Pos) /*!< 0x00008000 */ | |
5255 #define CAN_F8R2_FB15 CAN_F8R2_FB15_Msk /*!<Filter bit 15 */ | |
5256 #define CAN_F8R2_FB16_Pos (16U) | |
5257 #define CAN_F8R2_FB16_Msk (0x1U << CAN_F8R2_FB16_Pos) /*!< 0x00010000 */ | |
5258 #define CAN_F8R2_FB16 CAN_F8R2_FB16_Msk /*!<Filter bit 16 */ | |
5259 #define CAN_F8R2_FB17_Pos (17U) | |
5260 #define CAN_F8R2_FB17_Msk (0x1U << CAN_F8R2_FB17_Pos) /*!< 0x00020000 */ | |
5261 #define CAN_F8R2_FB17 CAN_F8R2_FB17_Msk /*!<Filter bit 17 */ | |
5262 #define CAN_F8R2_FB18_Pos (18U) | |
5263 #define CAN_F8R2_FB18_Msk (0x1U << CAN_F8R2_FB18_Pos) /*!< 0x00040000 */ | |
5264 #define CAN_F8R2_FB18 CAN_F8R2_FB18_Msk /*!<Filter bit 18 */ | |
5265 #define CAN_F8R2_FB19_Pos (19U) | |
5266 #define CAN_F8R2_FB19_Msk (0x1U << CAN_F8R2_FB19_Pos) /*!< 0x00080000 */ | |
5267 #define CAN_F8R2_FB19 CAN_F8R2_FB19_Msk /*!<Filter bit 19 */ | |
5268 #define CAN_F8R2_FB20_Pos (20U) | |
5269 #define CAN_F8R2_FB20_Msk (0x1U << CAN_F8R2_FB20_Pos) /*!< 0x00100000 */ | |
5270 #define CAN_F8R2_FB20 CAN_F8R2_FB20_Msk /*!<Filter bit 20 */ | |
5271 #define CAN_F8R2_FB21_Pos (21U) | |
5272 #define CAN_F8R2_FB21_Msk (0x1U << CAN_F8R2_FB21_Pos) /*!< 0x00200000 */ | |
5273 #define CAN_F8R2_FB21 CAN_F8R2_FB21_Msk /*!<Filter bit 21 */ | |
5274 #define CAN_F8R2_FB22_Pos (22U) | |
5275 #define CAN_F8R2_FB22_Msk (0x1U << CAN_F8R2_FB22_Pos) /*!< 0x00400000 */ | |
5276 #define CAN_F8R2_FB22 CAN_F8R2_FB22_Msk /*!<Filter bit 22 */ | |
5277 #define CAN_F8R2_FB23_Pos (23U) | |
5278 #define CAN_F8R2_FB23_Msk (0x1U << CAN_F8R2_FB23_Pos) /*!< 0x00800000 */ | |
5279 #define CAN_F8R2_FB23 CAN_F8R2_FB23_Msk /*!<Filter bit 23 */ | |
5280 #define CAN_F8R2_FB24_Pos (24U) | |
5281 #define CAN_F8R2_FB24_Msk (0x1U << CAN_F8R2_FB24_Pos) /*!< 0x01000000 */ | |
5282 #define CAN_F8R2_FB24 CAN_F8R2_FB24_Msk /*!<Filter bit 24 */ | |
5283 #define CAN_F8R2_FB25_Pos (25U) | |
5284 #define CAN_F8R2_FB25_Msk (0x1U << CAN_F8R2_FB25_Pos) /*!< 0x02000000 */ | |
5285 #define CAN_F8R2_FB25 CAN_F8R2_FB25_Msk /*!<Filter bit 25 */ | |
5286 #define CAN_F8R2_FB26_Pos (26U) | |
5287 #define CAN_F8R2_FB26_Msk (0x1U << CAN_F8R2_FB26_Pos) /*!< 0x04000000 */ | |
5288 #define CAN_F8R2_FB26 CAN_F8R2_FB26_Msk /*!<Filter bit 26 */ | |
5289 #define CAN_F8R2_FB27_Pos (27U) | |
5290 #define CAN_F8R2_FB27_Msk (0x1U << CAN_F8R2_FB27_Pos) /*!< 0x08000000 */ | |
5291 #define CAN_F8R2_FB27 CAN_F8R2_FB27_Msk /*!<Filter bit 27 */ | |
5292 #define CAN_F8R2_FB28_Pos (28U) | |
5293 #define CAN_F8R2_FB28_Msk (0x1U << CAN_F8R2_FB28_Pos) /*!< 0x10000000 */ | |
5294 #define CAN_F8R2_FB28 CAN_F8R2_FB28_Msk /*!<Filter bit 28 */ | |
5295 #define CAN_F8R2_FB29_Pos (29U) | |
5296 #define CAN_F8R2_FB29_Msk (0x1U << CAN_F8R2_FB29_Pos) /*!< 0x20000000 */ | |
5297 #define CAN_F8R2_FB29 CAN_F8R2_FB29_Msk /*!<Filter bit 29 */ | |
5298 #define CAN_F8R2_FB30_Pos (30U) | |
5299 #define CAN_F8R2_FB30_Msk (0x1U << CAN_F8R2_FB30_Pos) /*!< 0x40000000 */ | |
5300 #define CAN_F8R2_FB30 CAN_F8R2_FB30_Msk /*!<Filter bit 30 */ | |
5301 #define CAN_F8R2_FB31_Pos (31U) | |
5302 #define CAN_F8R2_FB31_Msk (0x1U << CAN_F8R2_FB31_Pos) /*!< 0x80000000 */ | |
5303 #define CAN_F8R2_FB31 CAN_F8R2_FB31_Msk /*!<Filter bit 31 */ | |
5304 | |
5305 /******************* Bit definition for CAN_F9R2 register *******************/ | |
5306 #define CAN_F9R2_FB0_Pos (0U) | |
5307 #define CAN_F9R2_FB0_Msk (0x1U << CAN_F9R2_FB0_Pos) /*!< 0x00000001 */ | |
5308 #define CAN_F9R2_FB0 CAN_F9R2_FB0_Msk /*!<Filter bit 0 */ | |
5309 #define CAN_F9R2_FB1_Pos (1U) | |
5310 #define CAN_F9R2_FB1_Msk (0x1U << CAN_F9R2_FB1_Pos) /*!< 0x00000002 */ | |
5311 #define CAN_F9R2_FB1 CAN_F9R2_FB1_Msk /*!<Filter bit 1 */ | |
5312 #define CAN_F9R2_FB2_Pos (2U) | |
5313 #define CAN_F9R2_FB2_Msk (0x1U << CAN_F9R2_FB2_Pos) /*!< 0x00000004 */ | |
5314 #define CAN_F9R2_FB2 CAN_F9R2_FB2_Msk /*!<Filter bit 2 */ | |
5315 #define CAN_F9R2_FB3_Pos (3U) | |
5316 #define CAN_F9R2_FB3_Msk (0x1U << CAN_F9R2_FB3_Pos) /*!< 0x00000008 */ | |
5317 #define CAN_F9R2_FB3 CAN_F9R2_FB3_Msk /*!<Filter bit 3 */ | |
5318 #define CAN_F9R2_FB4_Pos (4U) | |
5319 #define CAN_F9R2_FB4_Msk (0x1U << CAN_F9R2_FB4_Pos) /*!< 0x00000010 */ | |
5320 #define CAN_F9R2_FB4 CAN_F9R2_FB4_Msk /*!<Filter bit 4 */ | |
5321 #define CAN_F9R2_FB5_Pos (5U) | |
5322 #define CAN_F9R2_FB5_Msk (0x1U << CAN_F9R2_FB5_Pos) /*!< 0x00000020 */ | |
5323 #define CAN_F9R2_FB5 CAN_F9R2_FB5_Msk /*!<Filter bit 5 */ | |
5324 #define CAN_F9R2_FB6_Pos (6U) | |
5325 #define CAN_F9R2_FB6_Msk (0x1U << CAN_F9R2_FB6_Pos) /*!< 0x00000040 */ | |
5326 #define CAN_F9R2_FB6 CAN_F9R2_FB6_Msk /*!<Filter bit 6 */ | |
5327 #define CAN_F9R2_FB7_Pos (7U) | |
5328 #define CAN_F9R2_FB7_Msk (0x1U << CAN_F9R2_FB7_Pos) /*!< 0x00000080 */ | |
5329 #define CAN_F9R2_FB7 CAN_F9R2_FB7_Msk /*!<Filter bit 7 */ | |
5330 #define CAN_F9R2_FB8_Pos (8U) | |
5331 #define CAN_F9R2_FB8_Msk (0x1U << CAN_F9R2_FB8_Pos) /*!< 0x00000100 */ | |
5332 #define CAN_F9R2_FB8 CAN_F9R2_FB8_Msk /*!<Filter bit 8 */ | |
5333 #define CAN_F9R2_FB9_Pos (9U) | |
5334 #define CAN_F9R2_FB9_Msk (0x1U << CAN_F9R2_FB9_Pos) /*!< 0x00000200 */ | |
5335 #define CAN_F9R2_FB9 CAN_F9R2_FB9_Msk /*!<Filter bit 9 */ | |
5336 #define CAN_F9R2_FB10_Pos (10U) | |
5337 #define CAN_F9R2_FB10_Msk (0x1U << CAN_F9R2_FB10_Pos) /*!< 0x00000400 */ | |
5338 #define CAN_F9R2_FB10 CAN_F9R2_FB10_Msk /*!<Filter bit 10 */ | |
5339 #define CAN_F9R2_FB11_Pos (11U) | |
5340 #define CAN_F9R2_FB11_Msk (0x1U << CAN_F9R2_FB11_Pos) /*!< 0x00000800 */ | |
5341 #define CAN_F9R2_FB11 CAN_F9R2_FB11_Msk /*!<Filter bit 11 */ | |
5342 #define CAN_F9R2_FB12_Pos (12U) | |
5343 #define CAN_F9R2_FB12_Msk (0x1U << CAN_F9R2_FB12_Pos) /*!< 0x00001000 */ | |
5344 #define CAN_F9R2_FB12 CAN_F9R2_FB12_Msk /*!<Filter bit 12 */ | |
5345 #define CAN_F9R2_FB13_Pos (13U) | |
5346 #define CAN_F9R2_FB13_Msk (0x1U << CAN_F9R2_FB13_Pos) /*!< 0x00002000 */ | |
5347 #define CAN_F9R2_FB13 CAN_F9R2_FB13_Msk /*!<Filter bit 13 */ | |
5348 #define CAN_F9R2_FB14_Pos (14U) | |
5349 #define CAN_F9R2_FB14_Msk (0x1U << CAN_F9R2_FB14_Pos) /*!< 0x00004000 */ | |
5350 #define CAN_F9R2_FB14 CAN_F9R2_FB14_Msk /*!<Filter bit 14 */ | |
5351 #define CAN_F9R2_FB15_Pos (15U) | |
5352 #define CAN_F9R2_FB15_Msk (0x1U << CAN_F9R2_FB15_Pos) /*!< 0x00008000 */ | |
5353 #define CAN_F9R2_FB15 CAN_F9R2_FB15_Msk /*!<Filter bit 15 */ | |
5354 #define CAN_F9R2_FB16_Pos (16U) | |
5355 #define CAN_F9R2_FB16_Msk (0x1U << CAN_F9R2_FB16_Pos) /*!< 0x00010000 */ | |
5356 #define CAN_F9R2_FB16 CAN_F9R2_FB16_Msk /*!<Filter bit 16 */ | |
5357 #define CAN_F9R2_FB17_Pos (17U) | |
5358 #define CAN_F9R2_FB17_Msk (0x1U << CAN_F9R2_FB17_Pos) /*!< 0x00020000 */ | |
5359 #define CAN_F9R2_FB17 CAN_F9R2_FB17_Msk /*!<Filter bit 17 */ | |
5360 #define CAN_F9R2_FB18_Pos (18U) | |
5361 #define CAN_F9R2_FB18_Msk (0x1U << CAN_F9R2_FB18_Pos) /*!< 0x00040000 */ | |
5362 #define CAN_F9R2_FB18 CAN_F9R2_FB18_Msk /*!<Filter bit 18 */ | |
5363 #define CAN_F9R2_FB19_Pos (19U) | |
5364 #define CAN_F9R2_FB19_Msk (0x1U << CAN_F9R2_FB19_Pos) /*!< 0x00080000 */ | |
5365 #define CAN_F9R2_FB19 CAN_F9R2_FB19_Msk /*!<Filter bit 19 */ | |
5366 #define CAN_F9R2_FB20_Pos (20U) | |
5367 #define CAN_F9R2_FB20_Msk (0x1U << CAN_F9R2_FB20_Pos) /*!< 0x00100000 */ | |
5368 #define CAN_F9R2_FB20 CAN_F9R2_FB20_Msk /*!<Filter bit 20 */ | |
5369 #define CAN_F9R2_FB21_Pos (21U) | |
5370 #define CAN_F9R2_FB21_Msk (0x1U << CAN_F9R2_FB21_Pos) /*!< 0x00200000 */ | |
5371 #define CAN_F9R2_FB21 CAN_F9R2_FB21_Msk /*!<Filter bit 21 */ | |
5372 #define CAN_F9R2_FB22_Pos (22U) | |
5373 #define CAN_F9R2_FB22_Msk (0x1U << CAN_F9R2_FB22_Pos) /*!< 0x00400000 */ | |
5374 #define CAN_F9R2_FB22 CAN_F9R2_FB22_Msk /*!<Filter bit 22 */ | |
5375 #define CAN_F9R2_FB23_Pos (23U) | |
5376 #define CAN_F9R2_FB23_Msk (0x1U << CAN_F9R2_FB23_Pos) /*!< 0x00800000 */ | |
5377 #define CAN_F9R2_FB23 CAN_F9R2_FB23_Msk /*!<Filter bit 23 */ | |
5378 #define CAN_F9R2_FB24_Pos (24U) | |
5379 #define CAN_F9R2_FB24_Msk (0x1U << CAN_F9R2_FB24_Pos) /*!< 0x01000000 */ | |
5380 #define CAN_F9R2_FB24 CAN_F9R2_FB24_Msk /*!<Filter bit 24 */ | |
5381 #define CAN_F9R2_FB25_Pos (25U) | |
5382 #define CAN_F9R2_FB25_Msk (0x1U << CAN_F9R2_FB25_Pos) /*!< 0x02000000 */ | |
5383 #define CAN_F9R2_FB25 CAN_F9R2_FB25_Msk /*!<Filter bit 25 */ | |
5384 #define CAN_F9R2_FB26_Pos (26U) | |
5385 #define CAN_F9R2_FB26_Msk (0x1U << CAN_F9R2_FB26_Pos) /*!< 0x04000000 */ | |
5386 #define CAN_F9R2_FB26 CAN_F9R2_FB26_Msk /*!<Filter bit 26 */ | |
5387 #define CAN_F9R2_FB27_Pos (27U) | |
5388 #define CAN_F9R2_FB27_Msk (0x1U << CAN_F9R2_FB27_Pos) /*!< 0x08000000 */ | |
5389 #define CAN_F9R2_FB27 CAN_F9R2_FB27_Msk /*!<Filter bit 27 */ | |
5390 #define CAN_F9R2_FB28_Pos (28U) | |
5391 #define CAN_F9R2_FB28_Msk (0x1U << CAN_F9R2_FB28_Pos) /*!< 0x10000000 */ | |
5392 #define CAN_F9R2_FB28 CAN_F9R2_FB28_Msk /*!<Filter bit 28 */ | |
5393 #define CAN_F9R2_FB29_Pos (29U) | |
5394 #define CAN_F9R2_FB29_Msk (0x1U << CAN_F9R2_FB29_Pos) /*!< 0x20000000 */ | |
5395 #define CAN_F9R2_FB29 CAN_F9R2_FB29_Msk /*!<Filter bit 29 */ | |
5396 #define CAN_F9R2_FB30_Pos (30U) | |
5397 #define CAN_F9R2_FB30_Msk (0x1U << CAN_F9R2_FB30_Pos) /*!< 0x40000000 */ | |
5398 #define CAN_F9R2_FB30 CAN_F9R2_FB30_Msk /*!<Filter bit 30 */ | |
5399 #define CAN_F9R2_FB31_Pos (31U) | |
5400 #define CAN_F9R2_FB31_Msk (0x1U << CAN_F9R2_FB31_Pos) /*!< 0x80000000 */ | |
5401 #define CAN_F9R2_FB31 CAN_F9R2_FB31_Msk /*!<Filter bit 31 */ | |
5402 | |
5403 /******************* Bit definition for CAN_F10R2 register ******************/ | |
5404 #define CAN_F10R2_FB0_Pos (0U) | |
5405 #define CAN_F10R2_FB0_Msk (0x1U << CAN_F10R2_FB0_Pos) /*!< 0x00000001 */ | |
5406 #define CAN_F10R2_FB0 CAN_F10R2_FB0_Msk /*!<Filter bit 0 */ | |
5407 #define CAN_F10R2_FB1_Pos (1U) | |
5408 #define CAN_F10R2_FB1_Msk (0x1U << CAN_F10R2_FB1_Pos) /*!< 0x00000002 */ | |
5409 #define CAN_F10R2_FB1 CAN_F10R2_FB1_Msk /*!<Filter bit 1 */ | |
5410 #define CAN_F10R2_FB2_Pos (2U) | |
5411 #define CAN_F10R2_FB2_Msk (0x1U << CAN_F10R2_FB2_Pos) /*!< 0x00000004 */ | |
5412 #define CAN_F10R2_FB2 CAN_F10R2_FB2_Msk /*!<Filter bit 2 */ | |
5413 #define CAN_F10R2_FB3_Pos (3U) | |
5414 #define CAN_F10R2_FB3_Msk (0x1U << CAN_F10R2_FB3_Pos) /*!< 0x00000008 */ | |
5415 #define CAN_F10R2_FB3 CAN_F10R2_FB3_Msk /*!<Filter bit 3 */ | |
5416 #define CAN_F10R2_FB4_Pos (4U) | |
5417 #define CAN_F10R2_FB4_Msk (0x1U << CAN_F10R2_FB4_Pos) /*!< 0x00000010 */ | |
5418 #define CAN_F10R2_FB4 CAN_F10R2_FB4_Msk /*!<Filter bit 4 */ | |
5419 #define CAN_F10R2_FB5_Pos (5U) | |
5420 #define CAN_F10R2_FB5_Msk (0x1U << CAN_F10R2_FB5_Pos) /*!< 0x00000020 */ | |
5421 #define CAN_F10R2_FB5 CAN_F10R2_FB5_Msk /*!<Filter bit 5 */ | |
5422 #define CAN_F10R2_FB6_Pos (6U) | |
5423 #define CAN_F10R2_FB6_Msk (0x1U << CAN_F10R2_FB6_Pos) /*!< 0x00000040 */ | |
5424 #define CAN_F10R2_FB6 CAN_F10R2_FB6_Msk /*!<Filter bit 6 */ | |
5425 #define CAN_F10R2_FB7_Pos (7U) | |
5426 #define CAN_F10R2_FB7_Msk (0x1U << CAN_F10R2_FB7_Pos) /*!< 0x00000080 */ | |
5427 #define CAN_F10R2_FB7 CAN_F10R2_FB7_Msk /*!<Filter bit 7 */ | |
5428 #define CAN_F10R2_FB8_Pos (8U) | |
5429 #define CAN_F10R2_FB8_Msk (0x1U << CAN_F10R2_FB8_Pos) /*!< 0x00000100 */ | |
5430 #define CAN_F10R2_FB8 CAN_F10R2_FB8_Msk /*!<Filter bit 8 */ | |
5431 #define CAN_F10R2_FB9_Pos (9U) | |
5432 #define CAN_F10R2_FB9_Msk (0x1U << CAN_F10R2_FB9_Pos) /*!< 0x00000200 */ | |
5433 #define CAN_F10R2_FB9 CAN_F10R2_FB9_Msk /*!<Filter bit 9 */ | |
5434 #define CAN_F10R2_FB10_Pos (10U) | |
5435 #define CAN_F10R2_FB10_Msk (0x1U << CAN_F10R2_FB10_Pos) /*!< 0x00000400 */ | |
5436 #define CAN_F10R2_FB10 CAN_F10R2_FB10_Msk /*!<Filter bit 10 */ | |
5437 #define CAN_F10R2_FB11_Pos (11U) | |
5438 #define CAN_F10R2_FB11_Msk (0x1U << CAN_F10R2_FB11_Pos) /*!< 0x00000800 */ | |
5439 #define CAN_F10R2_FB11 CAN_F10R2_FB11_Msk /*!<Filter bit 11 */ | |
5440 #define CAN_F10R2_FB12_Pos (12U) | |
5441 #define CAN_F10R2_FB12_Msk (0x1U << CAN_F10R2_FB12_Pos) /*!< 0x00001000 */ | |
5442 #define CAN_F10R2_FB12 CAN_F10R2_FB12_Msk /*!<Filter bit 12 */ | |
5443 #define CAN_F10R2_FB13_Pos (13U) | |
5444 #define CAN_F10R2_FB13_Msk (0x1U << CAN_F10R2_FB13_Pos) /*!< 0x00002000 */ | |
5445 #define CAN_F10R2_FB13 CAN_F10R2_FB13_Msk /*!<Filter bit 13 */ | |
5446 #define CAN_F10R2_FB14_Pos (14U) | |
5447 #define CAN_F10R2_FB14_Msk (0x1U << CAN_F10R2_FB14_Pos) /*!< 0x00004000 */ | |
5448 #define CAN_F10R2_FB14 CAN_F10R2_FB14_Msk /*!<Filter bit 14 */ | |
5449 #define CAN_F10R2_FB15_Pos (15U) | |
5450 #define CAN_F10R2_FB15_Msk (0x1U << CAN_F10R2_FB15_Pos) /*!< 0x00008000 */ | |
5451 #define CAN_F10R2_FB15 CAN_F10R2_FB15_Msk /*!<Filter bit 15 */ | |
5452 #define CAN_F10R2_FB16_Pos (16U) | |
5453 #define CAN_F10R2_FB16_Msk (0x1U << CAN_F10R2_FB16_Pos) /*!< 0x00010000 */ | |
5454 #define CAN_F10R2_FB16 CAN_F10R2_FB16_Msk /*!<Filter bit 16 */ | |
5455 #define CAN_F10R2_FB17_Pos (17U) | |
5456 #define CAN_F10R2_FB17_Msk (0x1U << CAN_F10R2_FB17_Pos) /*!< 0x00020000 */ | |
5457 #define CAN_F10R2_FB17 CAN_F10R2_FB17_Msk /*!<Filter bit 17 */ | |
5458 #define CAN_F10R2_FB18_Pos (18U) | |
5459 #define CAN_F10R2_FB18_Msk (0x1U << CAN_F10R2_FB18_Pos) /*!< 0x00040000 */ | |
5460 #define CAN_F10R2_FB18 CAN_F10R2_FB18_Msk /*!<Filter bit 18 */ | |
5461 #define CAN_F10R2_FB19_Pos (19U) | |
5462 #define CAN_F10R2_FB19_Msk (0x1U << CAN_F10R2_FB19_Pos) /*!< 0x00080000 */ | |
5463 #define CAN_F10R2_FB19 CAN_F10R2_FB19_Msk /*!<Filter bit 19 */ | |
5464 #define CAN_F10R2_FB20_Pos (20U) | |
5465 #define CAN_F10R2_FB20_Msk (0x1U << CAN_F10R2_FB20_Pos) /*!< 0x00100000 */ | |
5466 #define CAN_F10R2_FB20 CAN_F10R2_FB20_Msk /*!<Filter bit 20 */ | |
5467 #define CAN_F10R2_FB21_Pos (21U) | |
5468 #define CAN_F10R2_FB21_Msk (0x1U << CAN_F10R2_FB21_Pos) /*!< 0x00200000 */ | |
5469 #define CAN_F10R2_FB21 CAN_F10R2_FB21_Msk /*!<Filter bit 21 */ | |
5470 #define CAN_F10R2_FB22_Pos (22U) | |
5471 #define CAN_F10R2_FB22_Msk (0x1U << CAN_F10R2_FB22_Pos) /*!< 0x00400000 */ | |
5472 #define CAN_F10R2_FB22 CAN_F10R2_FB22_Msk /*!<Filter bit 22 */ | |
5473 #define CAN_F10R2_FB23_Pos (23U) | |
5474 #define CAN_F10R2_FB23_Msk (0x1U << CAN_F10R2_FB23_Pos) /*!< 0x00800000 */ | |
5475 #define CAN_F10R2_FB23 CAN_F10R2_FB23_Msk /*!<Filter bit 23 */ | |
5476 #define CAN_F10R2_FB24_Pos (24U) | |
5477 #define CAN_F10R2_FB24_Msk (0x1U << CAN_F10R2_FB24_Pos) /*!< 0x01000000 */ | |
5478 #define CAN_F10R2_FB24 CAN_F10R2_FB24_Msk /*!<Filter bit 24 */ | |
5479 #define CAN_F10R2_FB25_Pos (25U) | |
5480 #define CAN_F10R2_FB25_Msk (0x1U << CAN_F10R2_FB25_Pos) /*!< 0x02000000 */ | |
5481 #define CAN_F10R2_FB25 CAN_F10R2_FB25_Msk /*!<Filter bit 25 */ | |
5482 #define CAN_F10R2_FB26_Pos (26U) | |
5483 #define CAN_F10R2_FB26_Msk (0x1U << CAN_F10R2_FB26_Pos) /*!< 0x04000000 */ | |
5484 #define CAN_F10R2_FB26 CAN_F10R2_FB26_Msk /*!<Filter bit 26 */ | |
5485 #define CAN_F10R2_FB27_Pos (27U) | |
5486 #define CAN_F10R2_FB27_Msk (0x1U << CAN_F10R2_FB27_Pos) /*!< 0x08000000 */ | |
5487 #define CAN_F10R2_FB27 CAN_F10R2_FB27_Msk /*!<Filter bit 27 */ | |
5488 #define CAN_F10R2_FB28_Pos (28U) | |
5489 #define CAN_F10R2_FB28_Msk (0x1U << CAN_F10R2_FB28_Pos) /*!< 0x10000000 */ | |
5490 #define CAN_F10R2_FB28 CAN_F10R2_FB28_Msk /*!<Filter bit 28 */ | |
5491 #define CAN_F10R2_FB29_Pos (29U) | |
5492 #define CAN_F10R2_FB29_Msk (0x1U << CAN_F10R2_FB29_Pos) /*!< 0x20000000 */ | |
5493 #define CAN_F10R2_FB29 CAN_F10R2_FB29_Msk /*!<Filter bit 29 */ | |
5494 #define CAN_F10R2_FB30_Pos (30U) | |
5495 #define CAN_F10R2_FB30_Msk (0x1U << CAN_F10R2_FB30_Pos) /*!< 0x40000000 */ | |
5496 #define CAN_F10R2_FB30 CAN_F10R2_FB30_Msk /*!<Filter bit 30 */ | |
5497 #define CAN_F10R2_FB31_Pos (31U) | |
5498 #define CAN_F10R2_FB31_Msk (0x1U << CAN_F10R2_FB31_Pos) /*!< 0x80000000 */ | |
5499 #define CAN_F10R2_FB31 CAN_F10R2_FB31_Msk /*!<Filter bit 31 */ | |
5500 | |
5501 /******************* Bit definition for CAN_F11R2 register ******************/ | |
5502 #define CAN_F11R2_FB0_Pos (0U) | |
5503 #define CAN_F11R2_FB0_Msk (0x1U << CAN_F11R2_FB0_Pos) /*!< 0x00000001 */ | |
5504 #define CAN_F11R2_FB0 CAN_F11R2_FB0_Msk /*!<Filter bit 0 */ | |
5505 #define CAN_F11R2_FB1_Pos (1U) | |
5506 #define CAN_F11R2_FB1_Msk (0x1U << CAN_F11R2_FB1_Pos) /*!< 0x00000002 */ | |
5507 #define CAN_F11R2_FB1 CAN_F11R2_FB1_Msk /*!<Filter bit 1 */ | |
5508 #define CAN_F11R2_FB2_Pos (2U) | |
5509 #define CAN_F11R2_FB2_Msk (0x1U << CAN_F11R2_FB2_Pos) /*!< 0x00000004 */ | |
5510 #define CAN_F11R2_FB2 CAN_F11R2_FB2_Msk /*!<Filter bit 2 */ | |
5511 #define CAN_F11R2_FB3_Pos (3U) | |
5512 #define CAN_F11R2_FB3_Msk (0x1U << CAN_F11R2_FB3_Pos) /*!< 0x00000008 */ | |
5513 #define CAN_F11R2_FB3 CAN_F11R2_FB3_Msk /*!<Filter bit 3 */ | |
5514 #define CAN_F11R2_FB4_Pos (4U) | |
5515 #define CAN_F11R2_FB4_Msk (0x1U << CAN_F11R2_FB4_Pos) /*!< 0x00000010 */ | |
5516 #define CAN_F11R2_FB4 CAN_F11R2_FB4_Msk /*!<Filter bit 4 */ | |
5517 #define CAN_F11R2_FB5_Pos (5U) | |
5518 #define CAN_F11R2_FB5_Msk (0x1U << CAN_F11R2_FB5_Pos) /*!< 0x00000020 */ | |
5519 #define CAN_F11R2_FB5 CAN_F11R2_FB5_Msk /*!<Filter bit 5 */ | |
5520 #define CAN_F11R2_FB6_Pos (6U) | |
5521 #define CAN_F11R2_FB6_Msk (0x1U << CAN_F11R2_FB6_Pos) /*!< 0x00000040 */ | |
5522 #define CAN_F11R2_FB6 CAN_F11R2_FB6_Msk /*!<Filter bit 6 */ | |
5523 #define CAN_F11R2_FB7_Pos (7U) | |
5524 #define CAN_F11R2_FB7_Msk (0x1U << CAN_F11R2_FB7_Pos) /*!< 0x00000080 */ | |
5525 #define CAN_F11R2_FB7 CAN_F11R2_FB7_Msk /*!<Filter bit 7 */ | |
5526 #define CAN_F11R2_FB8_Pos (8U) | |
5527 #define CAN_F11R2_FB8_Msk (0x1U << CAN_F11R2_FB8_Pos) /*!< 0x00000100 */ | |
5528 #define CAN_F11R2_FB8 CAN_F11R2_FB8_Msk /*!<Filter bit 8 */ | |
5529 #define CAN_F11R2_FB9_Pos (9U) | |
5530 #define CAN_F11R2_FB9_Msk (0x1U << CAN_F11R2_FB9_Pos) /*!< 0x00000200 */ | |
5531 #define CAN_F11R2_FB9 CAN_F11R2_FB9_Msk /*!<Filter bit 9 */ | |
5532 #define CAN_F11R2_FB10_Pos (10U) | |
5533 #define CAN_F11R2_FB10_Msk (0x1U << CAN_F11R2_FB10_Pos) /*!< 0x00000400 */ | |
5534 #define CAN_F11R2_FB10 CAN_F11R2_FB10_Msk /*!<Filter bit 10 */ | |
5535 #define CAN_F11R2_FB11_Pos (11U) | |
5536 #define CAN_F11R2_FB11_Msk (0x1U << CAN_F11R2_FB11_Pos) /*!< 0x00000800 */ | |
5537 #define CAN_F11R2_FB11 CAN_F11R2_FB11_Msk /*!<Filter bit 11 */ | |
5538 #define CAN_F11R2_FB12_Pos (12U) | |
5539 #define CAN_F11R2_FB12_Msk (0x1U << CAN_F11R2_FB12_Pos) /*!< 0x00001000 */ | |
5540 #define CAN_F11R2_FB12 CAN_F11R2_FB12_Msk /*!<Filter bit 12 */ | |
5541 #define CAN_F11R2_FB13_Pos (13U) | |
5542 #define CAN_F11R2_FB13_Msk (0x1U << CAN_F11R2_FB13_Pos) /*!< 0x00002000 */ | |
5543 #define CAN_F11R2_FB13 CAN_F11R2_FB13_Msk /*!<Filter bit 13 */ | |
5544 #define CAN_F11R2_FB14_Pos (14U) | |
5545 #define CAN_F11R2_FB14_Msk (0x1U << CAN_F11R2_FB14_Pos) /*!< 0x00004000 */ | |
5546 #define CAN_F11R2_FB14 CAN_F11R2_FB14_Msk /*!<Filter bit 14 */ | |
5547 #define CAN_F11R2_FB15_Pos (15U) | |
5548 #define CAN_F11R2_FB15_Msk (0x1U << CAN_F11R2_FB15_Pos) /*!< 0x00008000 */ | |
5549 #define CAN_F11R2_FB15 CAN_F11R2_FB15_Msk /*!<Filter bit 15 */ | |
5550 #define CAN_F11R2_FB16_Pos (16U) | |
5551 #define CAN_F11R2_FB16_Msk (0x1U << CAN_F11R2_FB16_Pos) /*!< 0x00010000 */ | |
5552 #define CAN_F11R2_FB16 CAN_F11R2_FB16_Msk /*!<Filter bit 16 */ | |
5553 #define CAN_F11R2_FB17_Pos (17U) | |
5554 #define CAN_F11R2_FB17_Msk (0x1U << CAN_F11R2_FB17_Pos) /*!< 0x00020000 */ | |
5555 #define CAN_F11R2_FB17 CAN_F11R2_FB17_Msk /*!<Filter bit 17 */ | |
5556 #define CAN_F11R2_FB18_Pos (18U) | |
5557 #define CAN_F11R2_FB18_Msk (0x1U << CAN_F11R2_FB18_Pos) /*!< 0x00040000 */ | |
5558 #define CAN_F11R2_FB18 CAN_F11R2_FB18_Msk /*!<Filter bit 18 */ | |
5559 #define CAN_F11R2_FB19_Pos (19U) | |
5560 #define CAN_F11R2_FB19_Msk (0x1U << CAN_F11R2_FB19_Pos) /*!< 0x00080000 */ | |
5561 #define CAN_F11R2_FB19 CAN_F11R2_FB19_Msk /*!<Filter bit 19 */ | |
5562 #define CAN_F11R2_FB20_Pos (20U) | |
5563 #define CAN_F11R2_FB20_Msk (0x1U << CAN_F11R2_FB20_Pos) /*!< 0x00100000 */ | |
5564 #define CAN_F11R2_FB20 CAN_F11R2_FB20_Msk /*!<Filter bit 20 */ | |
5565 #define CAN_F11R2_FB21_Pos (21U) | |
5566 #define CAN_F11R2_FB21_Msk (0x1U << CAN_F11R2_FB21_Pos) /*!< 0x00200000 */ | |
5567 #define CAN_F11R2_FB21 CAN_F11R2_FB21_Msk /*!<Filter bit 21 */ | |
5568 #define CAN_F11R2_FB22_Pos (22U) | |
5569 #define CAN_F11R2_FB22_Msk (0x1U << CAN_F11R2_FB22_Pos) /*!< 0x00400000 */ | |
5570 #define CAN_F11R2_FB22 CAN_F11R2_FB22_Msk /*!<Filter bit 22 */ | |
5571 #define CAN_F11R2_FB23_Pos (23U) | |
5572 #define CAN_F11R2_FB23_Msk (0x1U << CAN_F11R2_FB23_Pos) /*!< 0x00800000 */ | |
5573 #define CAN_F11R2_FB23 CAN_F11R2_FB23_Msk /*!<Filter bit 23 */ | |
5574 #define CAN_F11R2_FB24_Pos (24U) | |
5575 #define CAN_F11R2_FB24_Msk (0x1U << CAN_F11R2_FB24_Pos) /*!< 0x01000000 */ | |
5576 #define CAN_F11R2_FB24 CAN_F11R2_FB24_Msk /*!<Filter bit 24 */ | |
5577 #define CAN_F11R2_FB25_Pos (25U) | |
5578 #define CAN_F11R2_FB25_Msk (0x1U << CAN_F11R2_FB25_Pos) /*!< 0x02000000 */ | |
5579 #define CAN_F11R2_FB25 CAN_F11R2_FB25_Msk /*!<Filter bit 25 */ | |
5580 #define CAN_F11R2_FB26_Pos (26U) | |
5581 #define CAN_F11R2_FB26_Msk (0x1U << CAN_F11R2_FB26_Pos) /*!< 0x04000000 */ | |
5582 #define CAN_F11R2_FB26 CAN_F11R2_FB26_Msk /*!<Filter bit 26 */ | |
5583 #define CAN_F11R2_FB27_Pos (27U) | |
5584 #define CAN_F11R2_FB27_Msk (0x1U << CAN_F11R2_FB27_Pos) /*!< 0x08000000 */ | |
5585 #define CAN_F11R2_FB27 CAN_F11R2_FB27_Msk /*!<Filter bit 27 */ | |
5586 #define CAN_F11R2_FB28_Pos (28U) | |
5587 #define CAN_F11R2_FB28_Msk (0x1U << CAN_F11R2_FB28_Pos) /*!< 0x10000000 */ | |
5588 #define CAN_F11R2_FB28 CAN_F11R2_FB28_Msk /*!<Filter bit 28 */ | |
5589 #define CAN_F11R2_FB29_Pos (29U) | |
5590 #define CAN_F11R2_FB29_Msk (0x1U << CAN_F11R2_FB29_Pos) /*!< 0x20000000 */ | |
5591 #define CAN_F11R2_FB29 CAN_F11R2_FB29_Msk /*!<Filter bit 29 */ | |
5592 #define CAN_F11R2_FB30_Pos (30U) | |
5593 #define CAN_F11R2_FB30_Msk (0x1U << CAN_F11R2_FB30_Pos) /*!< 0x40000000 */ | |
5594 #define CAN_F11R2_FB30 CAN_F11R2_FB30_Msk /*!<Filter bit 30 */ | |
5595 #define CAN_F11R2_FB31_Pos (31U) | |
5596 #define CAN_F11R2_FB31_Msk (0x1U << CAN_F11R2_FB31_Pos) /*!< 0x80000000 */ | |
5597 #define CAN_F11R2_FB31 CAN_F11R2_FB31_Msk /*!<Filter bit 31 */ | |
5598 | |
5599 /******************* Bit definition for CAN_F12R2 register ******************/ | |
5600 #define CAN_F12R2_FB0_Pos (0U) | |
5601 #define CAN_F12R2_FB0_Msk (0x1U << CAN_F12R2_FB0_Pos) /*!< 0x00000001 */ | |
5602 #define CAN_F12R2_FB0 CAN_F12R2_FB0_Msk /*!<Filter bit 0 */ | |
5603 #define CAN_F12R2_FB1_Pos (1U) | |
5604 #define CAN_F12R2_FB1_Msk (0x1U << CAN_F12R2_FB1_Pos) /*!< 0x00000002 */ | |
5605 #define CAN_F12R2_FB1 CAN_F12R2_FB1_Msk /*!<Filter bit 1 */ | |
5606 #define CAN_F12R2_FB2_Pos (2U) | |
5607 #define CAN_F12R2_FB2_Msk (0x1U << CAN_F12R2_FB2_Pos) /*!< 0x00000004 */ | |
5608 #define CAN_F12R2_FB2 CAN_F12R2_FB2_Msk /*!<Filter bit 2 */ | |
5609 #define CAN_F12R2_FB3_Pos (3U) | |
5610 #define CAN_F12R2_FB3_Msk (0x1U << CAN_F12R2_FB3_Pos) /*!< 0x00000008 */ | |
5611 #define CAN_F12R2_FB3 CAN_F12R2_FB3_Msk /*!<Filter bit 3 */ | |
5612 #define CAN_F12R2_FB4_Pos (4U) | |
5613 #define CAN_F12R2_FB4_Msk (0x1U << CAN_F12R2_FB4_Pos) /*!< 0x00000010 */ | |
5614 #define CAN_F12R2_FB4 CAN_F12R2_FB4_Msk /*!<Filter bit 4 */ | |
5615 #define CAN_F12R2_FB5_Pos (5U) | |
5616 #define CAN_F12R2_FB5_Msk (0x1U << CAN_F12R2_FB5_Pos) /*!< 0x00000020 */ | |
5617 #define CAN_F12R2_FB5 CAN_F12R2_FB5_Msk /*!<Filter bit 5 */ | |
5618 #define CAN_F12R2_FB6_Pos (6U) | |
5619 #define CAN_F12R2_FB6_Msk (0x1U << CAN_F12R2_FB6_Pos) /*!< 0x00000040 */ | |
5620 #define CAN_F12R2_FB6 CAN_F12R2_FB6_Msk /*!<Filter bit 6 */ | |
5621 #define CAN_F12R2_FB7_Pos (7U) | |
5622 #define CAN_F12R2_FB7_Msk (0x1U << CAN_F12R2_FB7_Pos) /*!< 0x00000080 */ | |
5623 #define CAN_F12R2_FB7 CAN_F12R2_FB7_Msk /*!<Filter bit 7 */ | |
5624 #define CAN_F12R2_FB8_Pos (8U) | |
5625 #define CAN_F12R2_FB8_Msk (0x1U << CAN_F12R2_FB8_Pos) /*!< 0x00000100 */ | |
5626 #define CAN_F12R2_FB8 CAN_F12R2_FB8_Msk /*!<Filter bit 8 */ | |
5627 #define CAN_F12R2_FB9_Pos (9U) | |
5628 #define CAN_F12R2_FB9_Msk (0x1U << CAN_F12R2_FB9_Pos) /*!< 0x00000200 */ | |
5629 #define CAN_F12R2_FB9 CAN_F12R2_FB9_Msk /*!<Filter bit 9 */ | |
5630 #define CAN_F12R2_FB10_Pos (10U) | |
5631 #define CAN_F12R2_FB10_Msk (0x1U << CAN_F12R2_FB10_Pos) /*!< 0x00000400 */ | |
5632 #define CAN_F12R2_FB10 CAN_F12R2_FB10_Msk /*!<Filter bit 10 */ | |
5633 #define CAN_F12R2_FB11_Pos (11U) | |
5634 #define CAN_F12R2_FB11_Msk (0x1U << CAN_F12R2_FB11_Pos) /*!< 0x00000800 */ | |
5635 #define CAN_F12R2_FB11 CAN_F12R2_FB11_Msk /*!<Filter bit 11 */ | |
5636 #define CAN_F12R2_FB12_Pos (12U) | |
5637 #define CAN_F12R2_FB12_Msk (0x1U << CAN_F12R2_FB12_Pos) /*!< 0x00001000 */ | |
5638 #define CAN_F12R2_FB12 CAN_F12R2_FB12_Msk /*!<Filter bit 12 */ | |
5639 #define CAN_F12R2_FB13_Pos (13U) | |
5640 #define CAN_F12R2_FB13_Msk (0x1U << CAN_F12R2_FB13_Pos) /*!< 0x00002000 */ | |
5641 #define CAN_F12R2_FB13 CAN_F12R2_FB13_Msk /*!<Filter bit 13 */ | |
5642 #define CAN_F12R2_FB14_Pos (14U) | |
5643 #define CAN_F12R2_FB14_Msk (0x1U << CAN_F12R2_FB14_Pos) /*!< 0x00004000 */ | |
5644 #define CAN_F12R2_FB14 CAN_F12R2_FB14_Msk /*!<Filter bit 14 */ | |
5645 #define CAN_F12R2_FB15_Pos (15U) | |
5646 #define CAN_F12R2_FB15_Msk (0x1U << CAN_F12R2_FB15_Pos) /*!< 0x00008000 */ | |
5647 #define CAN_F12R2_FB15 CAN_F12R2_FB15_Msk /*!<Filter bit 15 */ | |
5648 #define CAN_F12R2_FB16_Pos (16U) | |
5649 #define CAN_F12R2_FB16_Msk (0x1U << CAN_F12R2_FB16_Pos) /*!< 0x00010000 */ | |
5650 #define CAN_F12R2_FB16 CAN_F12R2_FB16_Msk /*!<Filter bit 16 */ | |
5651 #define CAN_F12R2_FB17_Pos (17U) | |
5652 #define CAN_F12R2_FB17_Msk (0x1U << CAN_F12R2_FB17_Pos) /*!< 0x00020000 */ | |
5653 #define CAN_F12R2_FB17 CAN_F12R2_FB17_Msk /*!<Filter bit 17 */ | |
5654 #define CAN_F12R2_FB18_Pos (18U) | |
5655 #define CAN_F12R2_FB18_Msk (0x1U << CAN_F12R2_FB18_Pos) /*!< 0x00040000 */ | |
5656 #define CAN_F12R2_FB18 CAN_F12R2_FB18_Msk /*!<Filter bit 18 */ | |
5657 #define CAN_F12R2_FB19_Pos (19U) | |
5658 #define CAN_F12R2_FB19_Msk (0x1U << CAN_F12R2_FB19_Pos) /*!< 0x00080000 */ | |
5659 #define CAN_F12R2_FB19 CAN_F12R2_FB19_Msk /*!<Filter bit 19 */ | |
5660 #define CAN_F12R2_FB20_Pos (20U) | |
5661 #define CAN_F12R2_FB20_Msk (0x1U << CAN_F12R2_FB20_Pos) /*!< 0x00100000 */ | |
5662 #define CAN_F12R2_FB20 CAN_F12R2_FB20_Msk /*!<Filter bit 20 */ | |
5663 #define CAN_F12R2_FB21_Pos (21U) | |
5664 #define CAN_F12R2_FB21_Msk (0x1U << CAN_F12R2_FB21_Pos) /*!< 0x00200000 */ | |
5665 #define CAN_F12R2_FB21 CAN_F12R2_FB21_Msk /*!<Filter bit 21 */ | |
5666 #define CAN_F12R2_FB22_Pos (22U) | |
5667 #define CAN_F12R2_FB22_Msk (0x1U << CAN_F12R2_FB22_Pos) /*!< 0x00400000 */ | |
5668 #define CAN_F12R2_FB22 CAN_F12R2_FB22_Msk /*!<Filter bit 22 */ | |
5669 #define CAN_F12R2_FB23_Pos (23U) | |
5670 #define CAN_F12R2_FB23_Msk (0x1U << CAN_F12R2_FB23_Pos) /*!< 0x00800000 */ | |
5671 #define CAN_F12R2_FB23 CAN_F12R2_FB23_Msk /*!<Filter bit 23 */ | |
5672 #define CAN_F12R2_FB24_Pos (24U) | |
5673 #define CAN_F12R2_FB24_Msk (0x1U << CAN_F12R2_FB24_Pos) /*!< 0x01000000 */ | |
5674 #define CAN_F12R2_FB24 CAN_F12R2_FB24_Msk /*!<Filter bit 24 */ | |
5675 #define CAN_F12R2_FB25_Pos (25U) | |
5676 #define CAN_F12R2_FB25_Msk (0x1U << CAN_F12R2_FB25_Pos) /*!< 0x02000000 */ | |
5677 #define CAN_F12R2_FB25 CAN_F12R2_FB25_Msk /*!<Filter bit 25 */ | |
5678 #define CAN_F12R2_FB26_Pos (26U) | |
5679 #define CAN_F12R2_FB26_Msk (0x1U << CAN_F12R2_FB26_Pos) /*!< 0x04000000 */ | |
5680 #define CAN_F12R2_FB26 CAN_F12R2_FB26_Msk /*!<Filter bit 26 */ | |
5681 #define CAN_F12R2_FB27_Pos (27U) | |
5682 #define CAN_F12R2_FB27_Msk (0x1U << CAN_F12R2_FB27_Pos) /*!< 0x08000000 */ | |
5683 #define CAN_F12R2_FB27 CAN_F12R2_FB27_Msk /*!<Filter bit 27 */ | |
5684 #define CAN_F12R2_FB28_Pos (28U) | |
5685 #define CAN_F12R2_FB28_Msk (0x1U << CAN_F12R2_FB28_Pos) /*!< 0x10000000 */ | |
5686 #define CAN_F12R2_FB28 CAN_F12R2_FB28_Msk /*!<Filter bit 28 */ | |
5687 #define CAN_F12R2_FB29_Pos (29U) | |
5688 #define CAN_F12R2_FB29_Msk (0x1U << CAN_F12R2_FB29_Pos) /*!< 0x20000000 */ | |
5689 #define CAN_F12R2_FB29 CAN_F12R2_FB29_Msk /*!<Filter bit 29 */ | |
5690 #define CAN_F12R2_FB30_Pos (30U) | |
5691 #define CAN_F12R2_FB30_Msk (0x1U << CAN_F12R2_FB30_Pos) /*!< 0x40000000 */ | |
5692 #define CAN_F12R2_FB30 CAN_F12R2_FB30_Msk /*!<Filter bit 30 */ | |
5693 #define CAN_F12R2_FB31_Pos (31U) | |
5694 #define CAN_F12R2_FB31_Msk (0x1U << CAN_F12R2_FB31_Pos) /*!< 0x80000000 */ | |
5695 #define CAN_F12R2_FB31 CAN_F12R2_FB31_Msk /*!<Filter bit 31 */ | |
5696 | |
5697 /******************* Bit definition for CAN_F13R2 register ******************/ | |
5698 #define CAN_F13R2_FB0_Pos (0U) | |
5699 #define CAN_F13R2_FB0_Msk (0x1U << CAN_F13R2_FB0_Pos) /*!< 0x00000001 */ | |
5700 #define CAN_F13R2_FB0 CAN_F13R2_FB0_Msk /*!<Filter bit 0 */ | |
5701 #define CAN_F13R2_FB1_Pos (1U) | |
5702 #define CAN_F13R2_FB1_Msk (0x1U << CAN_F13R2_FB1_Pos) /*!< 0x00000002 */ | |
5703 #define CAN_F13R2_FB1 CAN_F13R2_FB1_Msk /*!<Filter bit 1 */ | |
5704 #define CAN_F13R2_FB2_Pos (2U) | |
5705 #define CAN_F13R2_FB2_Msk (0x1U << CAN_F13R2_FB2_Pos) /*!< 0x00000004 */ | |
5706 #define CAN_F13R2_FB2 CAN_F13R2_FB2_Msk /*!<Filter bit 2 */ | |
5707 #define CAN_F13R2_FB3_Pos (3U) | |
5708 #define CAN_F13R2_FB3_Msk (0x1U << CAN_F13R2_FB3_Pos) /*!< 0x00000008 */ | |
5709 #define CAN_F13R2_FB3 CAN_F13R2_FB3_Msk /*!<Filter bit 3 */ | |
5710 #define CAN_F13R2_FB4_Pos (4U) | |
5711 #define CAN_F13R2_FB4_Msk (0x1U << CAN_F13R2_FB4_Pos) /*!< 0x00000010 */ | |
5712 #define CAN_F13R2_FB4 CAN_F13R2_FB4_Msk /*!<Filter bit 4 */ | |
5713 #define CAN_F13R2_FB5_Pos (5U) | |
5714 #define CAN_F13R2_FB5_Msk (0x1U << CAN_F13R2_FB5_Pos) /*!< 0x00000020 */ | |
5715 #define CAN_F13R2_FB5 CAN_F13R2_FB5_Msk /*!<Filter bit 5 */ | |
5716 #define CAN_F13R2_FB6_Pos (6U) | |
5717 #define CAN_F13R2_FB6_Msk (0x1U << CAN_F13R2_FB6_Pos) /*!< 0x00000040 */ | |
5718 #define CAN_F13R2_FB6 CAN_F13R2_FB6_Msk /*!<Filter bit 6 */ | |
5719 #define CAN_F13R2_FB7_Pos (7U) | |
5720 #define CAN_F13R2_FB7_Msk (0x1U << CAN_F13R2_FB7_Pos) /*!< 0x00000080 */ | |
5721 #define CAN_F13R2_FB7 CAN_F13R2_FB7_Msk /*!<Filter bit 7 */ | |
5722 #define CAN_F13R2_FB8_Pos (8U) | |
5723 #define CAN_F13R2_FB8_Msk (0x1U << CAN_F13R2_FB8_Pos) /*!< 0x00000100 */ | |
5724 #define CAN_F13R2_FB8 CAN_F13R2_FB8_Msk /*!<Filter bit 8 */ | |
5725 #define CAN_F13R2_FB9_Pos (9U) | |
5726 #define CAN_F13R2_FB9_Msk (0x1U << CAN_F13R2_FB9_Pos) /*!< 0x00000200 */ | |
5727 #define CAN_F13R2_FB9 CAN_F13R2_FB9_Msk /*!<Filter bit 9 */ | |
5728 #define CAN_F13R2_FB10_Pos (10U) | |
5729 #define CAN_F13R2_FB10_Msk (0x1U << CAN_F13R2_FB10_Pos) /*!< 0x00000400 */ | |
5730 #define CAN_F13R2_FB10 CAN_F13R2_FB10_Msk /*!<Filter bit 10 */ | |
5731 #define CAN_F13R2_FB11_Pos (11U) | |
5732 #define CAN_F13R2_FB11_Msk (0x1U << CAN_F13R2_FB11_Pos) /*!< 0x00000800 */ | |
5733 #define CAN_F13R2_FB11 CAN_F13R2_FB11_Msk /*!<Filter bit 11 */ | |
5734 #define CAN_F13R2_FB12_Pos (12U) | |
5735 #define CAN_F13R2_FB12_Msk (0x1U << CAN_F13R2_FB12_Pos) /*!< 0x00001000 */ | |
5736 #define CAN_F13R2_FB12 CAN_F13R2_FB12_Msk /*!<Filter bit 12 */ | |
5737 #define CAN_F13R2_FB13_Pos (13U) | |
5738 #define CAN_F13R2_FB13_Msk (0x1U << CAN_F13R2_FB13_Pos) /*!< 0x00002000 */ | |
5739 #define CAN_F13R2_FB13 CAN_F13R2_FB13_Msk /*!<Filter bit 13 */ | |
5740 #define CAN_F13R2_FB14_Pos (14U) | |
5741 #define CAN_F13R2_FB14_Msk (0x1U << CAN_F13R2_FB14_Pos) /*!< 0x00004000 */ | |
5742 #define CAN_F13R2_FB14 CAN_F13R2_FB14_Msk /*!<Filter bit 14 */ | |
5743 #define CAN_F13R2_FB15_Pos (15U) | |
5744 #define CAN_F13R2_FB15_Msk (0x1U << CAN_F13R2_FB15_Pos) /*!< 0x00008000 */ | |
5745 #define CAN_F13R2_FB15 CAN_F13R2_FB15_Msk /*!<Filter bit 15 */ | |
5746 #define CAN_F13R2_FB16_Pos (16U) | |
5747 #define CAN_F13R2_FB16_Msk (0x1U << CAN_F13R2_FB16_Pos) /*!< 0x00010000 */ | |
5748 #define CAN_F13R2_FB16 CAN_F13R2_FB16_Msk /*!<Filter bit 16 */ | |
5749 #define CAN_F13R2_FB17_Pos (17U) | |
5750 #define CAN_F13R2_FB17_Msk (0x1U << CAN_F13R2_FB17_Pos) /*!< 0x00020000 */ | |
5751 #define CAN_F13R2_FB17 CAN_F13R2_FB17_Msk /*!<Filter bit 17 */ | |
5752 #define CAN_F13R2_FB18_Pos (18U) | |
5753 #define CAN_F13R2_FB18_Msk (0x1U << CAN_F13R2_FB18_Pos) /*!< 0x00040000 */ | |
5754 #define CAN_F13R2_FB18 CAN_F13R2_FB18_Msk /*!<Filter bit 18 */ | |
5755 #define CAN_F13R2_FB19_Pos (19U) | |
5756 #define CAN_F13R2_FB19_Msk (0x1U << CAN_F13R2_FB19_Pos) /*!< 0x00080000 */ | |
5757 #define CAN_F13R2_FB19 CAN_F13R2_FB19_Msk /*!<Filter bit 19 */ | |
5758 #define CAN_F13R2_FB20_Pos (20U) | |
5759 #define CAN_F13R2_FB20_Msk (0x1U << CAN_F13R2_FB20_Pos) /*!< 0x00100000 */ | |
5760 #define CAN_F13R2_FB20 CAN_F13R2_FB20_Msk /*!<Filter bit 20 */ | |
5761 #define CAN_F13R2_FB21_Pos (21U) | |
5762 #define CAN_F13R2_FB21_Msk (0x1U << CAN_F13R2_FB21_Pos) /*!< 0x00200000 */ | |
5763 #define CAN_F13R2_FB21 CAN_F13R2_FB21_Msk /*!<Filter bit 21 */ | |
5764 #define CAN_F13R2_FB22_Pos (22U) | |
5765 #define CAN_F13R2_FB22_Msk (0x1U << CAN_F13R2_FB22_Pos) /*!< 0x00400000 */ | |
5766 #define CAN_F13R2_FB22 CAN_F13R2_FB22_Msk /*!<Filter bit 22 */ | |
5767 #define CAN_F13R2_FB23_Pos (23U) | |
5768 #define CAN_F13R2_FB23_Msk (0x1U << CAN_F13R2_FB23_Pos) /*!< 0x00800000 */ | |
5769 #define CAN_F13R2_FB23 CAN_F13R2_FB23_Msk /*!<Filter bit 23 */ | |
5770 #define CAN_F13R2_FB24_Pos (24U) | |
5771 #define CAN_F13R2_FB24_Msk (0x1U << CAN_F13R2_FB24_Pos) /*!< 0x01000000 */ | |
5772 #define CAN_F13R2_FB24 CAN_F13R2_FB24_Msk /*!<Filter bit 24 */ | |
5773 #define CAN_F13R2_FB25_Pos (25U) | |
5774 #define CAN_F13R2_FB25_Msk (0x1U << CAN_F13R2_FB25_Pos) /*!< 0x02000000 */ | |
5775 #define CAN_F13R2_FB25 CAN_F13R2_FB25_Msk /*!<Filter bit 25 */ | |
5776 #define CAN_F13R2_FB26_Pos (26U) | |
5777 #define CAN_F13R2_FB26_Msk (0x1U << CAN_F13R2_FB26_Pos) /*!< 0x04000000 */ | |
5778 #define CAN_F13R2_FB26 CAN_F13R2_FB26_Msk /*!<Filter bit 26 */ | |
5779 #define CAN_F13R2_FB27_Pos (27U) | |
5780 #define CAN_F13R2_FB27_Msk (0x1U << CAN_F13R2_FB27_Pos) /*!< 0x08000000 */ | |
5781 #define CAN_F13R2_FB27 CAN_F13R2_FB27_Msk /*!<Filter bit 27 */ | |
5782 #define CAN_F13R2_FB28_Pos (28U) | |
5783 #define CAN_F13R2_FB28_Msk (0x1U << CAN_F13R2_FB28_Pos) /*!< 0x10000000 */ | |
5784 #define CAN_F13R2_FB28 CAN_F13R2_FB28_Msk /*!<Filter bit 28 */ | |
5785 #define CAN_F13R2_FB29_Pos (29U) | |
5786 #define CAN_F13R2_FB29_Msk (0x1U << CAN_F13R2_FB29_Pos) /*!< 0x20000000 */ | |
5787 #define CAN_F13R2_FB29 CAN_F13R2_FB29_Msk /*!<Filter bit 29 */ | |
5788 #define CAN_F13R2_FB30_Pos (30U) | |
5789 #define CAN_F13R2_FB30_Msk (0x1U << CAN_F13R2_FB30_Pos) /*!< 0x40000000 */ | |
5790 #define CAN_F13R2_FB30 CAN_F13R2_FB30_Msk /*!<Filter bit 30 */ | |
5791 #define CAN_F13R2_FB31_Pos (31U) | |
5792 #define CAN_F13R2_FB31_Msk (0x1U << CAN_F13R2_FB31_Pos) /*!< 0x80000000 */ | |
5793 #define CAN_F13R2_FB31 CAN_F13R2_FB31_Msk /*!<Filter bit 31 */ | |
5794 | |
5795 /******************************************************************************/ | |
5796 /* */ | |
5797 /* CRC calculation unit */ | |
5798 /* */ | |
5799 /******************************************************************************/ | |
5800 /******************* Bit definition for CRC_DR register *********************/ | |
5801 #define CRC_DR_DR_Pos (0U) | |
5802 #define CRC_DR_DR_Msk (0xFFFFFFFFU << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */ | |
5803 #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */ | |
5804 | |
5805 /******************* Bit definition for CRC_IDR register ********************/ | |
5806 #define CRC_IDR_IDR ((uint8_t)0xFFU) /*!< General-purpose 8-bit data register bits */ | |
5807 | |
5808 /******************** Bit definition for CRC_CR register ********************/ | |
5809 #define CRC_CR_RESET_Pos (0U) | |
5810 #define CRC_CR_RESET_Msk (0x1U << CRC_CR_RESET_Pos) /*!< 0x00000001 */ | |
5811 #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET the CRC computation unit bit */ | |
5812 #define CRC_CR_POLYSIZE_Pos (3U) | |
5813 #define CRC_CR_POLYSIZE_Msk (0x3U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000018 */ | |
5814 #define CRC_CR_POLYSIZE CRC_CR_POLYSIZE_Msk /*!< Polynomial size bits */ | |
5815 #define CRC_CR_POLYSIZE_0 (0x1U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000008 */ | |
5816 #define CRC_CR_POLYSIZE_1 (0x2U << CRC_CR_POLYSIZE_Pos) /*!< 0x00000010 */ | |
5817 #define CRC_CR_REV_IN_Pos (5U) | |
5818 #define CRC_CR_REV_IN_Msk (0x3U << CRC_CR_REV_IN_Pos) /*!< 0x00000060 */ | |
5819 #define CRC_CR_REV_IN CRC_CR_REV_IN_Msk /*!< REV_IN Reverse Input Data bits */ | |
5820 #define CRC_CR_REV_IN_0 (0x1U << CRC_CR_REV_IN_Pos) /*!< 0x00000020 */ | |
5821 #define CRC_CR_REV_IN_1 (0x2U << CRC_CR_REV_IN_Pos) /*!< 0x00000040 */ | |
5822 #define CRC_CR_REV_OUT_Pos (7U) | |
5823 #define CRC_CR_REV_OUT_Msk (0x1U << CRC_CR_REV_OUT_Pos) /*!< 0x00000080 */ | |
5824 #define CRC_CR_REV_OUT CRC_CR_REV_OUT_Msk /*!< REV_OUT Reverse Output Data bits */ | |
5825 | |
5826 /******************* Bit definition for CRC_INIT register *******************/ | |
5827 #define CRC_INIT_INIT_Pos (0U) | |
5828 #define CRC_INIT_INIT_Msk (0xFFFFFFFFU << CRC_INIT_INIT_Pos) /*!< 0xFFFFFFFF */ | |
5829 #define CRC_INIT_INIT CRC_INIT_INIT_Msk /*!< Initial CRC value bits */ | |
5830 | |
5831 /******************* Bit definition for CRC_POL register ********************/ | |
5832 #define CRC_POL_POL_Pos (0U) | |
5833 #define CRC_POL_POL_Msk (0xFFFFFFFFU << CRC_POL_POL_Pos) /*!< 0xFFFFFFFF */ | |
5834 #define CRC_POL_POL CRC_POL_POL_Msk /*!< Coefficients of the polynomial */ | |
5835 | |
5836 /******************************************************************************/ | |
5837 /* */ | |
5838 /* CRS Clock Recovery System */ | |
5839 /******************************************************************************/ | |
5840 | |
5841 /******************* Bit definition for CRS_CR register *********************/ | |
5842 #define CRS_CR_SYNCOKIE_Pos (0U) | |
5843 #define CRS_CR_SYNCOKIE_Msk (0x1U << CRS_CR_SYNCOKIE_Pos) /*!< 0x00000001 */ | |
5844 #define CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE_Msk /*!< SYNC event OK interrupt enable */ | |
5845 #define CRS_CR_SYNCWARNIE_Pos (1U) | |
5846 #define CRS_CR_SYNCWARNIE_Msk (0x1U << CRS_CR_SYNCWARNIE_Pos) /*!< 0x00000002 */ | |
5847 #define CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE_Msk /*!< SYNC warning interrupt enable */ | |
5848 #define CRS_CR_ERRIE_Pos (2U) | |
5849 #define CRS_CR_ERRIE_Msk (0x1U << CRS_CR_ERRIE_Pos) /*!< 0x00000004 */ | |
5850 #define CRS_CR_ERRIE CRS_CR_ERRIE_Msk /*!< SYNC error or trimming error interrupt enable */ | |
5851 #define CRS_CR_ESYNCIE_Pos (3U) | |
5852 #define CRS_CR_ESYNCIE_Msk (0x1U << CRS_CR_ESYNCIE_Pos) /*!< 0x00000008 */ | |
5853 #define CRS_CR_ESYNCIE CRS_CR_ESYNCIE_Msk /*!< Expected SYNC interrupt enable */ | |
5854 #define CRS_CR_CEN_Pos (5U) | |
5855 #define CRS_CR_CEN_Msk (0x1U << CRS_CR_CEN_Pos) /*!< 0x00000020 */ | |
5856 #define CRS_CR_CEN CRS_CR_CEN_Msk /*!< Frequency error counter enable */ | |
5857 #define CRS_CR_AUTOTRIMEN_Pos (6U) | |
5858 #define CRS_CR_AUTOTRIMEN_Msk (0x1U << CRS_CR_AUTOTRIMEN_Pos) /*!< 0x00000040 */ | |
5859 #define CRS_CR_AUTOTRIMEN CRS_CR_AUTOTRIMEN_Msk /*!< Automatic trimming enable */ | |
5860 #define CRS_CR_SWSYNC_Pos (7U) | |
5861 #define CRS_CR_SWSYNC_Msk (0x1U << CRS_CR_SWSYNC_Pos) /*!< 0x00000080 */ | |
5862 #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /*!< Generate software SYNC event */ | |
5863 #define CRS_CR_TRIM_Pos (8U) | |
5864 #define CRS_CR_TRIM_Msk (0x3FU << CRS_CR_TRIM_Pos) /*!< 0x00003F00 */ | |
5865 #define CRS_CR_TRIM CRS_CR_TRIM_Msk /*!< HSI48 oscillator smooth trimming */ | |
5866 | |
5867 /******************* Bit definition for CRS_CFGR register *********************/ | |
5868 #define CRS_CFGR_RELOAD_Pos (0U) | |
5869 #define CRS_CFGR_RELOAD_Msk (0xFFFFU << CRS_CFGR_RELOAD_Pos) /*!< 0x0000FFFF */ | |
5870 #define CRS_CFGR_RELOAD CRS_CFGR_RELOAD_Msk /*!< Counter reload value */ | |
5871 #define CRS_CFGR_FELIM_Pos (16U) | |
5872 #define CRS_CFGR_FELIM_Msk (0xFFU << CRS_CFGR_FELIM_Pos) /*!< 0x00FF0000 */ | |
5873 #define CRS_CFGR_FELIM CRS_CFGR_FELIM_Msk /*!< Frequency error limit */ | |
5874 | |
5875 #define CRS_CFGR_SYNCDIV_Pos (24U) | |
5876 #define CRS_CFGR_SYNCDIV_Msk (0x7U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x07000000 */ | |
5877 #define CRS_CFGR_SYNCDIV CRS_CFGR_SYNCDIV_Msk /*!< SYNC divider */ | |
5878 #define CRS_CFGR_SYNCDIV_0 (0x1U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x01000000 */ | |
5879 #define CRS_CFGR_SYNCDIV_1 (0x2U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x02000000 */ | |
5880 #define CRS_CFGR_SYNCDIV_2 (0x4U << CRS_CFGR_SYNCDIV_Pos) /*!< 0x04000000 */ | |
5881 | |
5882 #define CRS_CFGR_SYNCSRC_Pos (28U) | |
5883 #define CRS_CFGR_SYNCSRC_Msk (0x3U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x30000000 */ | |
5884 #define CRS_CFGR_SYNCSRC CRS_CFGR_SYNCSRC_Msk /*!< SYNC signal source selection */ | |
5885 #define CRS_CFGR_SYNCSRC_0 (0x1U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x10000000 */ | |
5886 #define CRS_CFGR_SYNCSRC_1 (0x2U << CRS_CFGR_SYNCSRC_Pos) /*!< 0x20000000 */ | |
5887 | |
5888 #define CRS_CFGR_SYNCPOL_Pos (31U) | |
5889 #define CRS_CFGR_SYNCPOL_Msk (0x1U << CRS_CFGR_SYNCPOL_Pos) /*!< 0x80000000 */ | |
5890 #define CRS_CFGR_SYNCPOL CRS_CFGR_SYNCPOL_Msk /*!< SYNC polarity selection */ | |
5891 | |
5892 /******************* Bit definition for CRS_ISR register *********************/ | |
5893 #define CRS_ISR_SYNCOKF_Pos (0U) | |
5894 #define CRS_ISR_SYNCOKF_Msk (0x1U << CRS_ISR_SYNCOKF_Pos) /*!< 0x00000001 */ | |
5895 #define CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF_Msk /*!< SYNC event OK flag */ | |
5896 #define CRS_ISR_SYNCWARNF_Pos (1U) | |
5897 #define CRS_ISR_SYNCWARNF_Msk (0x1U << CRS_ISR_SYNCWARNF_Pos) /*!< 0x00000002 */ | |
5898 #define CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF_Msk /*!< SYNC warning flag */ | |
5899 #define CRS_ISR_ERRF_Pos (2U) | |
5900 #define CRS_ISR_ERRF_Msk (0x1U << CRS_ISR_ERRF_Pos) /*!< 0x00000004 */ | |
5901 #define CRS_ISR_ERRF CRS_ISR_ERRF_Msk /*!< Error flag */ | |
5902 #define CRS_ISR_ESYNCF_Pos (3U) | |
5903 #define CRS_ISR_ESYNCF_Msk (0x1U << CRS_ISR_ESYNCF_Pos) /*!< 0x00000008 */ | |
5904 #define CRS_ISR_ESYNCF CRS_ISR_ESYNCF_Msk /*!< Expected SYNC flag */ | |
5905 #define CRS_ISR_SYNCERR_Pos (8U) | |
5906 #define CRS_ISR_SYNCERR_Msk (0x1U << CRS_ISR_SYNCERR_Pos) /*!< 0x00000100 */ | |
5907 #define CRS_ISR_SYNCERR CRS_ISR_SYNCERR_Msk /*!< SYNC error */ | |
5908 #define CRS_ISR_SYNCMISS_Pos (9U) | |
5909 #define CRS_ISR_SYNCMISS_Msk (0x1U << CRS_ISR_SYNCMISS_Pos) /*!< 0x00000200 */ | |
5910 #define CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS_Msk /*!< SYNC missed */ | |
5911 #define CRS_ISR_TRIMOVF_Pos (10U) | |
5912 #define CRS_ISR_TRIMOVF_Msk (0x1U << CRS_ISR_TRIMOVF_Pos) /*!< 0x00000400 */ | |
5913 #define CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF_Msk /*!< Trimming overflow or underflow */ | |
5914 #define CRS_ISR_FEDIR_Pos (15U) | |
5915 #define CRS_ISR_FEDIR_Msk (0x1U << CRS_ISR_FEDIR_Pos) /*!< 0x00008000 */ | |
5916 #define CRS_ISR_FEDIR CRS_ISR_FEDIR_Msk /*!< Frequency error direction */ | |
5917 #define CRS_ISR_FECAP_Pos (16U) | |
5918 #define CRS_ISR_FECAP_Msk (0xFFFFU << CRS_ISR_FECAP_Pos) /*!< 0xFFFF0000 */ | |
5919 #define CRS_ISR_FECAP CRS_ISR_FECAP_Msk /*!< Frequency error capture */ | |
5920 | |
5921 /******************* Bit definition for CRS_ICR register *********************/ | |
5922 #define CRS_ICR_SYNCOKC_Pos (0U) | |
5923 #define CRS_ICR_SYNCOKC_Msk (0x1U << CRS_ICR_SYNCOKC_Pos) /*!< 0x00000001 */ | |
5924 #define CRS_ICR_SYNCOKC CRS_ICR_SYNCOKC_Msk /*!< SYNC event OK clear flag */ | |
5925 #define CRS_ICR_SYNCWARNC_Pos (1U) | |
5926 #define CRS_ICR_SYNCWARNC_Msk (0x1U << CRS_ICR_SYNCWARNC_Pos) /*!< 0x00000002 */ | |
5927 #define CRS_ICR_SYNCWARNC CRS_ICR_SYNCWARNC_Msk /*!< SYNC warning clear flag */ | |
5928 #define CRS_ICR_ERRC_Pos (2U) | |
5929 #define CRS_ICR_ERRC_Msk (0x1U << CRS_ICR_ERRC_Pos) /*!< 0x00000004 */ | |
5930 #define CRS_ICR_ERRC CRS_ICR_ERRC_Msk /*!< Error clear flag */ | |
5931 #define CRS_ICR_ESYNCC_Pos (3U) | |
5932 #define CRS_ICR_ESYNCC_Msk (0x1U << CRS_ICR_ESYNCC_Pos) /*!< 0x00000008 */ | |
5933 #define CRS_ICR_ESYNCC CRS_ICR_ESYNCC_Msk /*!< Expected SYNC clear flag */ | |
5934 | |
5935 /******************************************************************************/ | |
5936 /* */ | |
5937 /* Advanced Encryption Standard (AES) */ | |
5938 /* */ | |
5939 /******************************************************************************/ | |
5940 /******************* Bit definition for AES_CR register *********************/ | |
5941 #define AES_CR_EN_Pos (0U) | |
5942 #define AES_CR_EN_Msk (0x1U << AES_CR_EN_Pos) /*!< 0x00000001 */ | |
5943 #define AES_CR_EN AES_CR_EN_Msk /*!< AES Enable */ | |
5944 #define AES_CR_DATATYPE_Pos (1U) | |
5945 #define AES_CR_DATATYPE_Msk (0x3U << AES_CR_DATATYPE_Pos) /*!< 0x00000006 */ | |
5946 #define AES_CR_DATATYPE AES_CR_DATATYPE_Msk /*!< Data type selection */ | |
5947 #define AES_CR_DATATYPE_0 (0x1U << AES_CR_DATATYPE_Pos) /*!< 0x00000002 */ | |
5948 #define AES_CR_DATATYPE_1 (0x2U << AES_CR_DATATYPE_Pos) /*!< 0x00000004 */ | |
5949 | |
5950 #define AES_CR_MODE_Pos (3U) | |
5951 #define AES_CR_MODE_Msk (0x3U << AES_CR_MODE_Pos) /*!< 0x00000018 */ | |
5952 #define AES_CR_MODE AES_CR_MODE_Msk /*!< AES Mode Of Operation */ | |
5953 #define AES_CR_MODE_0 (0x1U << AES_CR_MODE_Pos) /*!< 0x00000008 */ | |
5954 #define AES_CR_MODE_1 (0x2U << AES_CR_MODE_Pos) /*!< 0x00000010 */ | |
5955 | |
5956 #define AES_CR_CHMOD_Pos (5U) | |
5957 #define AES_CR_CHMOD_Msk (0x803U << AES_CR_CHMOD_Pos) /*!< 0x00010060 */ | |
5958 #define AES_CR_CHMOD AES_CR_CHMOD_Msk /*!< AES Chaining Mode */ | |
5959 #define AES_CR_CHMOD_0 (0x001U << AES_CR_CHMOD_Pos) /*!< 0x00000020 */ | |
5960 #define AES_CR_CHMOD_1 (0x002U << AES_CR_CHMOD_Pos) /*!< 0x00000040 */ | |
5961 #define AES_CR_CHMOD_2 (0x800U << AES_CR_CHMOD_Pos) /*!< 0x00010000 */ | |
5962 | |
5963 #define AES_CR_CCFC_Pos (7U) | |
5964 #define AES_CR_CCFC_Msk (0x1U << AES_CR_CCFC_Pos) /*!< 0x00000080 */ | |
5965 #define AES_CR_CCFC AES_CR_CCFC_Msk /*!< Computation Complete Flag Clear */ | |
5966 #define AES_CR_ERRC_Pos (8U) | |
5967 #define AES_CR_ERRC_Msk (0x1U << AES_CR_ERRC_Pos) /*!< 0x00000100 */ | |
5968 #define AES_CR_ERRC AES_CR_ERRC_Msk /*!< Error Clear */ | |
5969 #define AES_CR_CCFIE_Pos (9U) | |
5970 #define AES_CR_CCFIE_Msk (0x1U << AES_CR_CCFIE_Pos) /*!< 0x00000200 */ | |
5971 #define AES_CR_CCFIE AES_CR_CCFIE_Msk /*!< Computation Complete Flag Interrupt Enable */ | |
5972 #define AES_CR_ERRIE_Pos (10U) | |
5973 #define AES_CR_ERRIE_Msk (0x1U << AES_CR_ERRIE_Pos) /*!< 0x00000400 */ | |
5974 #define AES_CR_ERRIE AES_CR_ERRIE_Msk /*!< Error Interrupt Enable */ | |
5975 #define AES_CR_DMAINEN_Pos (11U) | |
5976 #define AES_CR_DMAINEN_Msk (0x1U << AES_CR_DMAINEN_Pos) /*!< 0x00000800 */ | |
5977 #define AES_CR_DMAINEN AES_CR_DMAINEN_Msk /*!< Enable data input phase DMA management */ | |
5978 #define AES_CR_DMAOUTEN_Pos (12U) | |
5979 #define AES_CR_DMAOUTEN_Msk (0x1U << AES_CR_DMAOUTEN_Pos) /*!< 0x00001000 */ | |
5980 #define AES_CR_DMAOUTEN AES_CR_DMAOUTEN_Msk /*!< Enable data output phase DMA management */ | |
5981 | |
5982 #define AES_CR_GCMPH_Pos (13U) | |
5983 #define AES_CR_GCMPH_Msk (0x3U << AES_CR_GCMPH_Pos) /*!< 0x00006000 */ | |
5984 #define AES_CR_GCMPH AES_CR_GCMPH_Msk /*!< GCM Phase */ | |
5985 #define AES_CR_GCMPH_0 (0x1U << AES_CR_GCMPH_Pos) /*!< 0x00002000 */ | |
5986 #define AES_CR_GCMPH_1 (0x2U << AES_CR_GCMPH_Pos) /*!< 0x00004000 */ | |
5987 | |
5988 #define AES_CR_KEYSIZE_Pos (18U) | |
5989 #define AES_CR_KEYSIZE_Msk (0x1U << AES_CR_KEYSIZE_Pos) /*!< 0x00040000 */ | |
5990 #define AES_CR_KEYSIZE AES_CR_KEYSIZE_Msk /*!< Key size selection */ | |
5991 | |
5992 /******************* Bit definition for AES_SR register *********************/ | |
5993 #define AES_SR_CCF_Pos (0U) | |
5994 #define AES_SR_CCF_Msk (0x1U << AES_SR_CCF_Pos) /*!< 0x00000001 */ | |
5995 #define AES_SR_CCF AES_SR_CCF_Msk /*!< Computation Complete Flag */ | |
5996 #define AES_SR_RDERR_Pos (1U) | |
5997 #define AES_SR_RDERR_Msk (0x1U << AES_SR_RDERR_Pos) /*!< 0x00000002 */ | |
5998 #define AES_SR_RDERR AES_SR_RDERR_Msk /*!< Read Error Flag */ | |
5999 #define AES_SR_WRERR_Pos (2U) | |
6000 #define AES_SR_WRERR_Msk (0x1U << AES_SR_WRERR_Pos) /*!< 0x00000004 */ | |
6001 #define AES_SR_WRERR AES_SR_WRERR_Msk /*!< Write Error Flag */ | |
6002 #define AES_SR_BUSY_Pos (3U) | |
6003 #define AES_SR_BUSY_Msk (0x1U << AES_SR_BUSY_Pos) /*!< 0x00000008 */ | |
6004 #define AES_SR_BUSY AES_SR_BUSY_Msk /*!< Busy Flag */ | |
6005 | |
6006 /******************* Bit definition for AES_DINR register *******************/ | |
6007 #define AES_DINR_Pos (0U) | |
6008 #define AES_DINR_Msk (0xFFFFFFFFU << AES_DINR_Pos) /*!< 0xFFFFFFFF */ | |
6009 #define AES_DINR AES_DINR_Msk /*!< AES Data Input Register */ | |
6010 | |
6011 /******************* Bit definition for AES_DOUTR register ******************/ | |
6012 #define AES_DOUTR_Pos (0U) | |
6013 #define AES_DOUTR_Msk (0xFFFFFFFFU << AES_DOUTR_Pos) /*!< 0xFFFFFFFF */ | |
6014 #define AES_DOUTR AES_DOUTR_Msk /*!< AES Data Output Register */ | |
6015 | |
6016 /******************* Bit definition for AES_KEYR0 register ******************/ | |
6017 #define AES_KEYR0_Pos (0U) | |
6018 #define AES_KEYR0_Msk (0xFFFFFFFFU << AES_KEYR0_Pos) /*!< 0xFFFFFFFF */ | |
6019 #define AES_KEYR0 AES_KEYR0_Msk /*!< AES Key Register 0 */ | |
6020 | |
6021 /******************* Bit definition for AES_KEYR1 register ******************/ | |
6022 #define AES_KEYR1_Pos (0U) | |
6023 #define AES_KEYR1_Msk (0xFFFFFFFFU << AES_KEYR1_Pos) /*!< 0xFFFFFFFF */ | |
6024 #define AES_KEYR1 AES_KEYR1_Msk /*!< AES Key Register 1 */ | |
6025 | |
6026 /******************* Bit definition for AES_KEYR2 register ******************/ | |
6027 #define AES_KEYR2_Pos (0U) | |
6028 #define AES_KEYR2_Msk (0xFFFFFFFFU << AES_KEYR2_Pos) /*!< 0xFFFFFFFF */ | |
6029 #define AES_KEYR2 AES_KEYR2_Msk /*!< AES Key Register 2 */ | |
6030 | |
6031 /******************* Bit definition for AES_KEYR3 register ******************/ | |
6032 #define AES_KEYR3_Pos (0U) | |
6033 #define AES_KEYR3_Msk (0xFFFFFFFFU << AES_KEYR3_Pos) /*!< 0xFFFFFFFF */ | |
6034 #define AES_KEYR3 AES_KEYR3_Msk /*!< AES Key Register 3 */ | |
6035 | |
6036 /******************* Bit definition for AES_KEYR4 register ******************/ | |
6037 #define AES_KEYR4_Pos (0U) | |
6038 #define AES_KEYR4_Msk (0xFFFFFFFFU << AES_KEYR4_Pos) /*!< 0xFFFFFFFF */ | |
6039 #define AES_KEYR4 AES_KEYR4_Msk /*!< AES Key Register 4 */ | |
6040 | |
6041 /******************* Bit definition for AES_KEYR5 register ******************/ | |
6042 #define AES_KEYR5_Pos (0U) | |
6043 #define AES_KEYR5_Msk (0xFFFFFFFFU << AES_KEYR5_Pos) /*!< 0xFFFFFFFF */ | |
6044 #define AES_KEYR5 AES_KEYR5_Msk /*!< AES Key Register 5 */ | |
6045 | |
6046 /******************* Bit definition for AES_KEYR6 register ******************/ | |
6047 #define AES_KEYR6_Pos (0U) | |
6048 #define AES_KEYR6_Msk (0xFFFFFFFFU << AES_KEYR6_Pos) /*!< 0xFFFFFFFF */ | |
6049 #define AES_KEYR6 AES_KEYR6_Msk /*!< AES Key Register 6 */ | |
6050 | |
6051 /******************* Bit definition for AES_KEYR7 register ******************/ | |
6052 #define AES_KEYR7_Pos (0U) | |
6053 #define AES_KEYR7_Msk (0xFFFFFFFFU << AES_KEYR7_Pos) /*!< 0xFFFFFFFF */ | |
6054 #define AES_KEYR7 AES_KEYR7_Msk /*!< AES Key Register 7 */ | |
6055 | |
6056 /******************* Bit definition for AES_IVR0 register ******************/ | |
6057 #define AES_IVR0_Pos (0U) | |
6058 #define AES_IVR0_Msk (0xFFFFFFFFU << AES_IVR0_Pos) /*!< 0xFFFFFFFF */ | |
6059 #define AES_IVR0 AES_IVR0_Msk /*!< AES Initialization Vector Register 0 */ | |
6060 | |
6061 /******************* Bit definition for AES_IVR1 register ******************/ | |
6062 #define AES_IVR1_Pos (0U) | |
6063 #define AES_IVR1_Msk (0xFFFFFFFFU << AES_IVR1_Pos) /*!< 0xFFFFFFFF */ | |
6064 #define AES_IVR1 AES_IVR1_Msk /*!< AES Initialization Vector Register 1 */ | |
6065 | |
6066 /******************* Bit definition for AES_IVR2 register ******************/ | |
6067 #define AES_IVR2_Pos (0U) | |
6068 #define AES_IVR2_Msk (0xFFFFFFFFU << AES_IVR2_Pos) /*!< 0xFFFFFFFF */ | |
6069 #define AES_IVR2 AES_IVR2_Msk /*!< AES Initialization Vector Register 2 */ | |
6070 | |
6071 /******************* Bit definition for AES_IVR3 register ******************/ | |
6072 #define AES_IVR3_Pos (0U) | |
6073 #define AES_IVR3_Msk (0xFFFFFFFFU << AES_IVR3_Pos) /*!< 0xFFFFFFFF */ | |
6074 #define AES_IVR3 AES_IVR3_Msk /*!< AES Initialization Vector Register 3 */ | |
6075 | |
6076 /******************* Bit definition for AES_SUSP0R register ******************/ | |
6077 #define AES_SUSP0R_Pos (0U) | |
6078 #define AES_SUSP0R_Msk (0xFFFFFFFFU << AES_SUSP0R_Pos) /*!< 0xFFFFFFFF */ | |
6079 #define AES_SUSP0R AES_SUSP0R_Msk /*!< AES Suspend registers 0 */ | |
6080 | |
6081 /******************* Bit definition for AES_SUSP1R register ******************/ | |
6082 #define AES_SUSP1R_Pos (0U) | |
6083 #define AES_SUSP1R_Msk (0xFFFFFFFFU << AES_SUSP1R_Pos) /*!< 0xFFFFFFFF */ | |
6084 #define AES_SUSP1R AES_SUSP1R_Msk /*!< AES Suspend registers 1 */ | |
6085 | |
6086 /******************* Bit definition for AES_SUSP2R register ******************/ | |
6087 #define AES_SUSP2R_Pos (0U) | |
6088 #define AES_SUSP2R_Msk (0xFFFFFFFFU << AES_SUSP2R_Pos) /*!< 0xFFFFFFFF */ | |
6089 #define AES_SUSP2R AES_SUSP2R_Msk /*!< AES Suspend registers 2 */ | |
6090 | |
6091 /******************* Bit definition for AES_SUSP3R register ******************/ | |
6092 #define AES_SUSP3R_Pos (0U) | |
6093 #define AES_SUSP3R_Msk (0xFFFFFFFFU << AES_SUSP3R_Pos) /*!< 0xFFFFFFFF */ | |
6094 #define AES_SUSP3R AES_SUSP3R_Msk /*!< AES Suspend registers 3 */ | |
6095 | |
6096 /******************* Bit definition for AES_SUSP4R register ******************/ | |
6097 #define AES_SUSP4R_Pos (0U) | |
6098 #define AES_SUSP4R_Msk (0xFFFFFFFFU << AES_SUSP4R_Pos) /*!< 0xFFFFFFFF */ | |
6099 #define AES_SUSP4R AES_SUSP4R_Msk /*!< AES Suspend registers 4 */ | |
6100 | |
6101 /******************* Bit definition for AES_SUSP5R register ******************/ | |
6102 #define AES_SUSP5R_Pos (0U) | |
6103 #define AES_SUSP5R_Msk (0xFFFFFFFFU << AES_SUSP5R_Pos) /*!< 0xFFFFFFFF */ | |
6104 #define AES_SUSP5R AES_SUSP5R_Msk /*!< AES Suspend registers 5 */ | |
6105 | |
6106 /******************* Bit definition for AES_SUSP6R register ******************/ | |
6107 #define AES_SUSP6R_Pos (0U) | |
6108 #define AES_SUSP6R_Msk (0xFFFFFFFFU << AES_SUSP6R_Pos) /*!< 0xFFFFFFFF */ | |
6109 #define AES_SUSP6R AES_SUSP6R_Msk /*!< AES Suspend registers 6 */ | |
6110 | |
6111 /******************* Bit definition for AES_SUSP7R register ******************/ | |
6112 #define AES_SUSP7R_Pos (0U) | |
6113 #define AES_SUSP7R_Msk (0xFFFFFFFFU << AES_SUSP7R_Pos) /*!< 0xFFFFFFFF */ | |
6114 #define AES_SUSP7R AES_SUSP7R_Msk /*!< AES Suspend registers 7 */ | |
6115 | |
6116 /******************************************************************************/ | |
6117 /* */ | |
6118 /* Digital to Analog Converter */ | |
6119 /* */ | |
6120 /******************************************************************************/ | |
6121 /* | |
6122 * @brief Specific device feature definitions (not present on all devices in the STM32L4 serie) | |
6123 */ | |
6124 /* Note: No specific macro feature on this device */ | |
6125 | |
6126 /******************** Bit definition for DAC_CR register ********************/ | |
6127 #define DAC_CR_EN1_Pos (0U) | |
6128 #define DAC_CR_EN1_Msk (0x1U << DAC_CR_EN1_Pos) /*!< 0x00000001 */ | |
6129 #define DAC_CR_EN1 DAC_CR_EN1_Msk /*!<DAC channel1 enable */ | |
6130 #define DAC_CR_TEN1_Pos (2U) | |
6131 #define DAC_CR_TEN1_Msk (0x1U << DAC_CR_TEN1_Pos) /*!< 0x00000004 */ | |
6132 #define DAC_CR_TEN1 DAC_CR_TEN1_Msk /*!<DAC channel1 Trigger enable */ | |
6133 | |
6134 #define DAC_CR_TSEL1_Pos (3U) | |
6135 #define DAC_CR_TSEL1_Msk (0x7U << DAC_CR_TSEL1_Pos) /*!< 0x00000038 */ | |
6136 #define DAC_CR_TSEL1 DAC_CR_TSEL1_Msk /*!<TSEL1[2:0] (DAC channel1 Trigger selection) */ | |
6137 #define DAC_CR_TSEL1_0 (0x1U << DAC_CR_TSEL1_Pos) /*!< 0x00000008 */ | |
6138 #define DAC_CR_TSEL1_1 (0x2U << DAC_CR_TSEL1_Pos) /*!< 0x00000010 */ | |
6139 #define DAC_CR_TSEL1_2 (0x4U << DAC_CR_TSEL1_Pos) /*!< 0x00000020 */ | |
6140 | |
6141 #define DAC_CR_WAVE1_Pos (6U) | |
6142 #define DAC_CR_WAVE1_Msk (0x3U << DAC_CR_WAVE1_Pos) /*!< 0x000000C0 */ | |
6143 #define DAC_CR_WAVE1 DAC_CR_WAVE1_Msk /*!<WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */ | |
6144 #define DAC_CR_WAVE1_0 (0x1U << DAC_CR_WAVE1_Pos) /*!< 0x00000040 */ | |
6145 #define DAC_CR_WAVE1_1 (0x2U << DAC_CR_WAVE1_Pos) /*!< 0x00000080 */ | |
6146 | |
6147 #define DAC_CR_MAMP1_Pos (8U) | |
6148 #define DAC_CR_MAMP1_Msk (0xFU << DAC_CR_MAMP1_Pos) /*!< 0x00000F00 */ | |
6149 #define DAC_CR_MAMP1 DAC_CR_MAMP1_Msk /*!<MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */ | |
6150 #define DAC_CR_MAMP1_0 (0x1U << DAC_CR_MAMP1_Pos) /*!< 0x00000100 */ | |
6151 #define DAC_CR_MAMP1_1 (0x2U << DAC_CR_MAMP1_Pos) /*!< 0x00000200 */ | |
6152 #define DAC_CR_MAMP1_2 (0x4U << DAC_CR_MAMP1_Pos) /*!< 0x00000400 */ | |
6153 #define DAC_CR_MAMP1_3 (0x8U << DAC_CR_MAMP1_Pos) /*!< 0x00000800 */ | |
6154 | |
6155 #define DAC_CR_DMAEN1_Pos (12U) | |
6156 #define DAC_CR_DMAEN1_Msk (0x1U << DAC_CR_DMAEN1_Pos) /*!< 0x00001000 */ | |
6157 #define DAC_CR_DMAEN1 DAC_CR_DMAEN1_Msk /*!<DAC channel1 DMA enable */ | |
6158 #define DAC_CR_DMAUDRIE1_Pos (13U) | |
6159 #define DAC_CR_DMAUDRIE1_Msk (0x1U << DAC_CR_DMAUDRIE1_Pos) /*!< 0x00002000 */ | |
6160 #define DAC_CR_DMAUDRIE1 DAC_CR_DMAUDRIE1_Msk /*!<DAC channel 1 DMA underrun interrupt enable >*/ | |
6161 #define DAC_CR_CEN1_Pos (14U) | |
6162 #define DAC_CR_CEN1_Msk (0x1U << DAC_CR_CEN1_Pos) /*!< 0x00004000 */ | |
6163 #define DAC_CR_CEN1 DAC_CR_CEN1_Msk /*!<DAC channel 1 calibration enable >*/ | |
6164 | |
6165 #define DAC_CR_EN2_Pos (16U) | |
6166 #define DAC_CR_EN2_Msk (0x1U << DAC_CR_EN2_Pos) /*!< 0x00010000 */ | |
6167 #define DAC_CR_EN2 DAC_CR_EN2_Msk /*!<DAC channel2 enable */ | |
6168 #define DAC_CR_TEN2_Pos (18U) | |
6169 #define DAC_CR_TEN2_Msk (0x1U << DAC_CR_TEN2_Pos) /*!< 0x00040000 */ | |
6170 #define DAC_CR_TEN2 DAC_CR_TEN2_Msk /*!<DAC channel2 Trigger enable */ | |
6171 | |
6172 #define DAC_CR_TSEL2_Pos (19U) | |
6173 #define DAC_CR_TSEL2_Msk (0x7U << DAC_CR_TSEL2_Pos) /*!< 0x00380000 */ | |
6174 #define DAC_CR_TSEL2 DAC_CR_TSEL2_Msk /*!<TSEL2[2:0] (DAC channel2 Trigger selection) */ | |
6175 #define DAC_CR_TSEL2_0 (0x1U << DAC_CR_TSEL2_Pos) /*!< 0x00080000 */ | |
6176 #define DAC_CR_TSEL2_1 (0x2U << DAC_CR_TSEL2_Pos) /*!< 0x00100000 */ | |
6177 #define DAC_CR_TSEL2_2 (0x4U << DAC_CR_TSEL2_Pos) /*!< 0x00200000 */ | |
6178 | |
6179 #define DAC_CR_WAVE2_Pos (22U) | |
6180 #define DAC_CR_WAVE2_Msk (0x3U << DAC_CR_WAVE2_Pos) /*!< 0x00C00000 */ | |
6181 #define DAC_CR_WAVE2 DAC_CR_WAVE2_Msk /*!<WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */ | |
6182 #define DAC_CR_WAVE2_0 (0x1U << DAC_CR_WAVE2_Pos) /*!< 0x00400000 */ | |
6183 #define DAC_CR_WAVE2_1 (0x2U << DAC_CR_WAVE2_Pos) /*!< 0x00800000 */ | |
6184 | |
6185 #define DAC_CR_MAMP2_Pos (24U) | |
6186 #define DAC_CR_MAMP2_Msk (0xFU << DAC_CR_MAMP2_Pos) /*!< 0x0F000000 */ | |
6187 #define DAC_CR_MAMP2 DAC_CR_MAMP2_Msk /*!<MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */ | |
6188 #define DAC_CR_MAMP2_0 (0x1U << DAC_CR_MAMP2_Pos) /*!< 0x01000000 */ | |
6189 #define DAC_CR_MAMP2_1 (0x2U << DAC_CR_MAMP2_Pos) /*!< 0x02000000 */ | |
6190 #define DAC_CR_MAMP2_2 (0x4U << DAC_CR_MAMP2_Pos) /*!< 0x04000000 */ | |
6191 #define DAC_CR_MAMP2_3 (0x8U << DAC_CR_MAMP2_Pos) /*!< 0x08000000 */ | |
6192 | |
6193 #define DAC_CR_DMAEN2_Pos (28U) | |
6194 #define DAC_CR_DMAEN2_Msk (0x1U << DAC_CR_DMAEN2_Pos) /*!< 0x10000000 */ | |
6195 #define DAC_CR_DMAEN2 DAC_CR_DMAEN2_Msk /*!<DAC channel2 DMA enabled */ | |
6196 #define DAC_CR_DMAUDRIE2_Pos (29U) | |
6197 #define DAC_CR_DMAUDRIE2_Msk (0x1U << DAC_CR_DMAUDRIE2_Pos) /*!< 0x20000000 */ | |
6198 #define DAC_CR_DMAUDRIE2 DAC_CR_DMAUDRIE2_Msk /*!<DAC channel2 DMA underrun interrupt enable >*/ | |
6199 #define DAC_CR_CEN2_Pos (30U) | |
6200 #define DAC_CR_CEN2_Msk (0x1U << DAC_CR_CEN2_Pos) /*!< 0x40000000 */ | |
6201 #define DAC_CR_CEN2 DAC_CR_CEN2_Msk /*!<DAC channel2 calibration enable >*/ | |
6202 | |
6203 /***************** Bit definition for DAC_SWTRIGR register ******************/ | |
6204 #define DAC_SWTRIGR_SWTRIG1_Pos (0U) | |
6205 #define DAC_SWTRIGR_SWTRIG1_Msk (0x1U << DAC_SWTRIGR_SWTRIG1_Pos) /*!< 0x00000001 */ | |
6206 #define DAC_SWTRIGR_SWTRIG1 DAC_SWTRIGR_SWTRIG1_Msk /*!<DAC channel1 software trigger */ | |
6207 #define DAC_SWTRIGR_SWTRIG2_Pos (1U) | |
6208 #define DAC_SWTRIGR_SWTRIG2_Msk (0x1U << DAC_SWTRIGR_SWTRIG2_Pos) /*!< 0x00000002 */ | |
6209 #define DAC_SWTRIGR_SWTRIG2 DAC_SWTRIGR_SWTRIG2_Msk /*!<DAC channel2 software trigger */ | |
6210 | |
6211 /***************** Bit definition for DAC_DHR12R1 register ******************/ | |
6212 #define DAC_DHR12R1_DACC1DHR_Pos (0U) | |
6213 #define DAC_DHR12R1_DACC1DHR_Msk (0xFFFU << DAC_DHR12R1_DACC1DHR_Pos) /*!< 0x00000FFF */ | |
6214 #define DAC_DHR12R1_DACC1DHR DAC_DHR12R1_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */ | |
6215 | |
6216 /***************** Bit definition for DAC_DHR12L1 register ******************/ | |
6217 #define DAC_DHR12L1_DACC1DHR_Pos (4U) | |
6218 #define DAC_DHR12L1_DACC1DHR_Msk (0xFFFU << DAC_DHR12L1_DACC1DHR_Pos) /*!< 0x0000FFF0 */ | |
6219 #define DAC_DHR12L1_DACC1DHR DAC_DHR12L1_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */ | |
6220 | |
6221 /****************** Bit definition for DAC_DHR8R1 register ******************/ | |
6222 #define DAC_DHR8R1_DACC1DHR_Pos (0U) | |
6223 #define DAC_DHR8R1_DACC1DHR_Msk (0xFFU << DAC_DHR8R1_DACC1DHR_Pos) /*!< 0x000000FF */ | |
6224 #define DAC_DHR8R1_DACC1DHR DAC_DHR8R1_DACC1DHR_Msk /*!<DAC channel1 8-bit Right aligned data */ | |
6225 | |
6226 /***************** Bit definition for DAC_DHR12R2 register ******************/ | |
6227 #define DAC_DHR12R2_DACC2DHR_Pos (0U) | |
6228 #define DAC_DHR12R2_DACC2DHR_Msk (0xFFFU << DAC_DHR12R2_DACC2DHR_Pos) /*!< 0x00000FFF */ | |
6229 #define DAC_DHR12R2_DACC2DHR DAC_DHR12R2_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */ | |
6230 | |
6231 /***************** Bit definition for DAC_DHR12L2 register ******************/ | |
6232 #define DAC_DHR12L2_DACC2DHR_Pos (4U) | |
6233 #define DAC_DHR12L2_DACC2DHR_Msk (0xFFFU << DAC_DHR12L2_DACC2DHR_Pos) /*!< 0x0000FFF0 */ | |
6234 #define DAC_DHR12L2_DACC2DHR DAC_DHR12L2_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */ | |
6235 | |
6236 /****************** Bit definition for DAC_DHR8R2 register ******************/ | |
6237 #define DAC_DHR8R2_DACC2DHR_Pos (0U) | |
6238 #define DAC_DHR8R2_DACC2DHR_Msk (0xFFU << DAC_DHR8R2_DACC2DHR_Pos) /*!< 0x000000FF */ | |
6239 #define DAC_DHR8R2_DACC2DHR DAC_DHR8R2_DACC2DHR_Msk /*!<DAC channel2 8-bit Right aligned data */ | |
6240 | |
6241 /***************** Bit definition for DAC_DHR12RD register ******************/ | |
6242 #define DAC_DHR12RD_DACC1DHR_Pos (0U) | |
6243 #define DAC_DHR12RD_DACC1DHR_Msk (0xFFFU << DAC_DHR12RD_DACC1DHR_Pos) /*!< 0x00000FFF */ | |
6244 #define DAC_DHR12RD_DACC1DHR DAC_DHR12RD_DACC1DHR_Msk /*!<DAC channel1 12-bit Right aligned data */ | |
6245 #define DAC_DHR12RD_DACC2DHR_Pos (16U) | |
6246 #define DAC_DHR12RD_DACC2DHR_Msk (0xFFFU << DAC_DHR12RD_DACC2DHR_Pos) /*!< 0x0FFF0000 */ | |
6247 #define DAC_DHR12RD_DACC2DHR DAC_DHR12RD_DACC2DHR_Msk /*!<DAC channel2 12-bit Right aligned data */ | |
6248 | |
6249 /***************** Bit definition for DAC_DHR12LD register ******************/ | |
6250 #define DAC_DHR12LD_DACC1DHR_Pos (4U) | |
6251 #define DAC_DHR12LD_DACC1DHR_Msk (0xFFFU << DAC_DHR12LD_DACC1DHR_Pos) /*!< 0x0000FFF0 */ | |
6252 #define DAC_DHR12LD_DACC1DHR DAC_DHR12LD_DACC1DHR_Msk /*!<DAC channel1 12-bit Left aligned data */ | |
6253 #define DAC_DHR12LD_DACC2DHR_Pos (20U) | |
6254 #define DAC_DHR12LD_DACC2DHR_Msk (0xFFFU << DAC_DHR12LD_DACC2DHR_Pos) /*!< 0xFFF00000 */ | |
6255 #define DAC_DHR12LD_DACC2DHR DAC_DHR12LD_DACC2DHR_Msk /*!<DAC channel2 12-bit Left aligned data */ | |
6256 | |
6257 /****************** Bit definition for DAC_DHR8RD register ******************/ | |
6258 #define DAC_DHR8RD_DACC1DHR_Pos (0U) | |
6259 #define DAC_DHR8RD_DACC1DHR_Msk (0xFFU << DAC_DHR8RD_DACC1DHR_Pos) /*!< 0x000000FF */ | |
6260 #define DAC_DHR8RD_DACC1DHR DAC_DHR8RD_DACC1DHR_Msk /*!<DAC channel1 8-bit Right aligned data */ | |
6261 #define DAC_DHR8RD_DACC2DHR_Pos (8U) | |
6262 #define DAC_DHR8RD_DACC2DHR_Msk (0xFFU << DAC_DHR8RD_DACC2DHR_Pos) /*!< 0x0000FF00 */ | |
6263 #define DAC_DHR8RD_DACC2DHR DAC_DHR8RD_DACC2DHR_Msk /*!<DAC channel2 8-bit Right aligned data */ | |
6264 | |
6265 /******************* Bit definition for DAC_DOR1 register *******************/ | |
6266 #define DAC_DOR1_DACC1DOR_Pos (0U) | |
6267 #define DAC_DOR1_DACC1DOR_Msk (0xFFFU << DAC_DOR1_DACC1DOR_Pos) /*!< 0x00000FFF */ | |
6268 #define DAC_DOR1_DACC1DOR DAC_DOR1_DACC1DOR_Msk /*!<DAC channel1 data output */ | |
6269 | |
6270 /******************* Bit definition for DAC_DOR2 register *******************/ | |
6271 #define DAC_DOR2_DACC2DOR_Pos (0U) | |
6272 #define DAC_DOR2_DACC2DOR_Msk (0xFFFU << DAC_DOR2_DACC2DOR_Pos) /*!< 0x00000FFF */ | |
6273 #define DAC_DOR2_DACC2DOR DAC_DOR2_DACC2DOR_Msk /*!<DAC channel2 data output */ | |
6274 | |
6275 /******************** Bit definition for DAC_SR register ********************/ | |
6276 #define DAC_SR_DMAUDR1_Pos (13U) | |
6277 #define DAC_SR_DMAUDR1_Msk (0x1U << DAC_SR_DMAUDR1_Pos) /*!< 0x00002000 */ | |
6278 #define DAC_SR_DMAUDR1 DAC_SR_DMAUDR1_Msk /*!<DAC channel1 DMA underrun flag */ | |
6279 #define DAC_SR_CAL_FLAG1_Pos (14U) | |
6280 #define DAC_SR_CAL_FLAG1_Msk (0x1U << DAC_SR_CAL_FLAG1_Pos) /*!< 0x00004000 */ | |
6281 #define DAC_SR_CAL_FLAG1 DAC_SR_CAL_FLAG1_Msk /*!<DAC channel1 calibration offset status */ | |
6282 #define DAC_SR_BWST1_Pos (15U) | |
6283 #define DAC_SR_BWST1_Msk (0x4001U << DAC_SR_BWST1_Pos) /*!< 0x20008000 */ | |
6284 #define DAC_SR_BWST1 DAC_SR_BWST1_Msk /*!<DAC channel1 busy writing sample time flag */ | |
6285 | |
6286 #define DAC_SR_DMAUDR2_Pos (29U) | |
6287 #define DAC_SR_DMAUDR2_Msk (0x1U << DAC_SR_DMAUDR2_Pos) /*!< 0x20000000 */ | |
6288 #define DAC_SR_DMAUDR2 DAC_SR_DMAUDR2_Msk /*!<DAC channel2 DMA underrun flag */ | |
6289 #define DAC_SR_CAL_FLAG2_Pos (30U) | |
6290 #define DAC_SR_CAL_FLAG2_Msk (0x1U << DAC_SR_CAL_FLAG2_Pos) /*!< 0x40000000 */ | |
6291 #define DAC_SR_CAL_FLAG2 DAC_SR_CAL_FLAG2_Msk /*!<DAC channel2 calibration offset status */ | |
6292 #define DAC_SR_BWST2_Pos (31U) | |
6293 #define DAC_SR_BWST2_Msk (0x1U << DAC_SR_BWST2_Pos) /*!< 0x80000000 */ | |
6294 #define DAC_SR_BWST2 DAC_SR_BWST2_Msk /*!<DAC channel2 busy writing sample time flag */ | |
6295 | |
6296 /******************* Bit definition for DAC_CCR register ********************/ | |
6297 #define DAC_CCR_OTRIM1_Pos (0U) | |
6298 #define DAC_CCR_OTRIM1_Msk (0x1FU << DAC_CCR_OTRIM1_Pos) /*!< 0x0000001F */ | |
6299 #define DAC_CCR_OTRIM1 DAC_CCR_OTRIM1_Msk /*!<DAC channel1 offset trimming value */ | |
6300 #define DAC_CCR_OTRIM2_Pos (16U) | |
6301 #define DAC_CCR_OTRIM2_Msk (0x1FU << DAC_CCR_OTRIM2_Pos) /*!< 0x001F0000 */ | |
6302 #define DAC_CCR_OTRIM2 DAC_CCR_OTRIM2_Msk /*!<DAC channel2 offset trimming value */ | |
6303 | |
6304 /******************* Bit definition for DAC_MCR register *******************/ | |
6305 #define DAC_MCR_MODE1_Pos (0U) | |
6306 #define DAC_MCR_MODE1_Msk (0x7U << DAC_MCR_MODE1_Pos) /*!< 0x00000007 */ | |
6307 #define DAC_MCR_MODE1 DAC_MCR_MODE1_Msk /*!<MODE1[2:0] (DAC channel1 mode) */ | |
6308 #define DAC_MCR_MODE1_0 (0x1U << DAC_MCR_MODE1_Pos) /*!< 0x00000001 */ | |
6309 #define DAC_MCR_MODE1_1 (0x2U << DAC_MCR_MODE1_Pos) /*!< 0x00000002 */ | |
6310 #define DAC_MCR_MODE1_2 (0x4U << DAC_MCR_MODE1_Pos) /*!< 0x00000004 */ | |
6311 | |
6312 #define DAC_MCR_MODE2_Pos (16U) | |
6313 #define DAC_MCR_MODE2_Msk (0x7U << DAC_MCR_MODE2_Pos) /*!< 0x00070000 */ | |
6314 #define DAC_MCR_MODE2 DAC_MCR_MODE2_Msk /*!<MODE2[2:0] (DAC channel2 mode) */ | |
6315 #define DAC_MCR_MODE2_0 (0x1U << DAC_MCR_MODE2_Pos) /*!< 0x00010000 */ | |
6316 #define DAC_MCR_MODE2_1 (0x2U << DAC_MCR_MODE2_Pos) /*!< 0x00020000 */ | |
6317 #define DAC_MCR_MODE2_2 (0x4U << DAC_MCR_MODE2_Pos) /*!< 0x00040000 */ | |
6318 | |
6319 /****************** Bit definition for DAC_SHSR1 register ******************/ | |
6320 #define DAC_SHSR1_TSAMPLE1_Pos (0U) | |
6321 #define DAC_SHSR1_TSAMPLE1_Msk (0x3FFU << DAC_SHSR1_TSAMPLE1_Pos) /*!< 0x000003FF */ | |
6322 #define DAC_SHSR1_TSAMPLE1 DAC_SHSR1_TSAMPLE1_Msk /*!<DAC channel1 sample time */ | |
6323 | |
6324 /****************** Bit definition for DAC_SHSR2 register ******************/ | |
6325 #define DAC_SHSR2_TSAMPLE2_Pos (0U) | |
6326 #define DAC_SHSR2_TSAMPLE2_Msk (0x3FFU << DAC_SHSR2_TSAMPLE2_Pos) /*!< 0x000003FF */ | |
6327 #define DAC_SHSR2_TSAMPLE2 DAC_SHSR2_TSAMPLE2_Msk /*!<DAC channel2 sample time */ | |
6328 | |
6329 /****************** Bit definition for DAC_SHHR register ******************/ | |
6330 #define DAC_SHHR_THOLD1_Pos (0U) | |
6331 #define DAC_SHHR_THOLD1_Msk (0x3FFU << DAC_SHHR_THOLD1_Pos) /*!< 0x000003FF */ | |
6332 #define DAC_SHHR_THOLD1 DAC_SHHR_THOLD1_Msk /*!<DAC channel1 hold time */ | |
6333 #define DAC_SHHR_THOLD2_Pos (16U) | |
6334 #define DAC_SHHR_THOLD2_Msk (0x3FFU << DAC_SHHR_THOLD2_Pos) /*!< 0x03FF0000 */ | |
6335 #define DAC_SHHR_THOLD2 DAC_SHHR_THOLD2_Msk /*!<DAC channel2 hold time */ | |
6336 | |
6337 /****************** Bit definition for DAC_SHRR register ******************/ | |
6338 #define DAC_SHRR_TREFRESH1_Pos (0U) | |
6339 #define DAC_SHRR_TREFRESH1_Msk (0xFFU << DAC_SHRR_TREFRESH1_Pos) /*!< 0x000000FF */ | |
6340 #define DAC_SHRR_TREFRESH1 DAC_SHRR_TREFRESH1_Msk /*!<DAC channel1 refresh time */ | |
6341 #define DAC_SHRR_TREFRESH2_Pos (16U) | |
6342 #define DAC_SHRR_TREFRESH2_Msk (0xFFU << DAC_SHRR_TREFRESH2_Pos) /*!< 0x00FF0000 */ | |
6343 #define DAC_SHRR_TREFRESH2 DAC_SHRR_TREFRESH2_Msk /*!<DAC channel2 refresh time */ | |
6344 | |
6345 /******************************************************************************/ | |
6346 /* */ | |
6347 /* Digital Filter for Sigma Delta Modulators */ | |
6348 /* */ | |
6349 /******************************************************************************/ | |
6350 | |
6351 /**************** DFSDM channel configuration registers ********************/ | |
6352 | |
6353 /*************** Bit definition for DFSDM_CHCFGR1 register ******************/ | |
6354 #define DFSDM_CHCFGR1_DFSDMEN_Pos (31U) | |
6355 #define DFSDM_CHCFGR1_DFSDMEN_Msk (0x1U << DFSDM_CHCFGR1_DFSDMEN_Pos) /*!< 0x80000000 */ | |
6356 #define DFSDM_CHCFGR1_DFSDMEN DFSDM_CHCFGR1_DFSDMEN_Msk /*!< Global enable for DFSDM interface */ | |
6357 #define DFSDM_CHCFGR1_CKOUTSRC_Pos (30U) | |
6358 #define DFSDM_CHCFGR1_CKOUTSRC_Msk (0x1U << DFSDM_CHCFGR1_CKOUTSRC_Pos) /*!< 0x40000000 */ | |
6359 #define DFSDM_CHCFGR1_CKOUTSRC DFSDM_CHCFGR1_CKOUTSRC_Msk /*!< Output serial clock source selection */ | |
6360 #define DFSDM_CHCFGR1_CKOUTDIV_Pos (16U) | |
6361 #define DFSDM_CHCFGR1_CKOUTDIV_Msk (0xFFU << DFSDM_CHCFGR1_CKOUTDIV_Pos) /*!< 0x00FF0000 */ | |
6362 #define DFSDM_CHCFGR1_CKOUTDIV DFSDM_CHCFGR1_CKOUTDIV_Msk /*!< CKOUTDIV[7:0] output serial clock divider */ | |
6363 #define DFSDM_CHCFGR1_DATPACK_Pos (14U) | |
6364 #define DFSDM_CHCFGR1_DATPACK_Msk (0x3U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x0000C000 */ | |
6365 #define DFSDM_CHCFGR1_DATPACK DFSDM_CHCFGR1_DATPACK_Msk /*!< DATPACK[1:0] Data packing mode */ | |
6366 #define DFSDM_CHCFGR1_DATPACK_1 (0x2U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00008000 */ | |
6367 #define DFSDM_CHCFGR1_DATPACK_0 (0x1U << DFSDM_CHCFGR1_DATPACK_Pos) /*!< 0x00004000 */ | |
6368 #define DFSDM_CHCFGR1_DATMPX_Pos (12U) | |
6369 #define DFSDM_CHCFGR1_DATMPX_Msk (0x3U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00003000 */ | |
6370 #define DFSDM_CHCFGR1_DATMPX DFSDM_CHCFGR1_DATMPX_Msk /*!< DATMPX[1:0] Input data multiplexer for channel y */ | |
6371 #define DFSDM_CHCFGR1_DATMPX_1 (0x2U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00002000 */ | |
6372 #define DFSDM_CHCFGR1_DATMPX_0 (0x1U << DFSDM_CHCFGR1_DATMPX_Pos) /*!< 0x00001000 */ | |
6373 #define DFSDM_CHCFGR1_CHINSEL_Pos (8U) | |
6374 #define DFSDM_CHCFGR1_CHINSEL_Msk (0x1U << DFSDM_CHCFGR1_CHINSEL_Pos) /*!< 0x00000100 */ | |
6375 #define DFSDM_CHCFGR1_CHINSEL DFSDM_CHCFGR1_CHINSEL_Msk /*!< Serial inputs selection for channel y */ | |
6376 #define DFSDM_CHCFGR1_CHEN_Pos (7U) | |
6377 #define DFSDM_CHCFGR1_CHEN_Msk (0x1U << DFSDM_CHCFGR1_CHEN_Pos) /*!< 0x00000080 */ | |
6378 #define DFSDM_CHCFGR1_CHEN DFSDM_CHCFGR1_CHEN_Msk /*!< Channel y enable */ | |
6379 #define DFSDM_CHCFGR1_CKABEN_Pos (6U) | |
6380 #define DFSDM_CHCFGR1_CKABEN_Msk (0x1U << DFSDM_CHCFGR1_CKABEN_Pos) /*!< 0x00000040 */ | |
6381 #define DFSDM_CHCFGR1_CKABEN DFSDM_CHCFGR1_CKABEN_Msk /*!< Clock absence detector enable on channel y */ | |
6382 #define DFSDM_CHCFGR1_SCDEN_Pos (5U) | |
6383 #define DFSDM_CHCFGR1_SCDEN_Msk (0x1U << DFSDM_CHCFGR1_SCDEN_Pos) /*!< 0x00000020 */ | |
6384 #define DFSDM_CHCFGR1_SCDEN DFSDM_CHCFGR1_SCDEN_Msk /*!< Short circuit detector enable on channel y */ | |
6385 #define DFSDM_CHCFGR1_SPICKSEL_Pos (2U) | |
6386 #define DFSDM_CHCFGR1_SPICKSEL_Msk (0x3U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x0000000C */ | |
6387 #define DFSDM_CHCFGR1_SPICKSEL DFSDM_CHCFGR1_SPICKSEL_Msk /*!< SPICKSEL[1:0] SPI clock select for channel y */ | |
6388 #define DFSDM_CHCFGR1_SPICKSEL_1 (0x2U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000008 */ | |
6389 #define DFSDM_CHCFGR1_SPICKSEL_0 (0x1U << DFSDM_CHCFGR1_SPICKSEL_Pos) /*!< 0x00000004 */ | |
6390 #define DFSDM_CHCFGR1_SITP_Pos (0U) | |
6391 #define DFSDM_CHCFGR1_SITP_Msk (0x3U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000003 */ | |
6392 #define DFSDM_CHCFGR1_SITP DFSDM_CHCFGR1_SITP_Msk /*!< SITP[1:0] Serial interface type for channel y */ | |
6393 #define DFSDM_CHCFGR1_SITP_1 (0x2U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000002 */ | |
6394 #define DFSDM_CHCFGR1_SITP_0 (0x1U << DFSDM_CHCFGR1_SITP_Pos) /*!< 0x00000001 */ | |
6395 | |
6396 /*************** Bit definition for DFSDM_CHCFGR2 register ******************/ | |
6397 #define DFSDM_CHCFGR2_OFFSET_Pos (8U) | |
6398 #define DFSDM_CHCFGR2_OFFSET_Msk (0xFFFFFFU << DFSDM_CHCFGR2_OFFSET_Pos) /*!< 0xFFFFFF00 */ | |
6399 #define DFSDM_CHCFGR2_OFFSET DFSDM_CHCFGR2_OFFSET_Msk /*!< OFFSET[23:0] 24-bit calibration offset for channel y */ | |
6400 #define DFSDM_CHCFGR2_DTRBS_Pos (3U) | |
6401 #define DFSDM_CHCFGR2_DTRBS_Msk (0x1FU << DFSDM_CHCFGR2_DTRBS_Pos) /*!< 0x000000F8 */ | |
6402 #define DFSDM_CHCFGR2_DTRBS DFSDM_CHCFGR2_DTRBS_Msk /*!< DTRBS[4:0] Data right bit-shift for channel y */ | |
6403 | |
6404 /**************** Bit definition for DFSDM_CHAWSCDR register *****************/ | |
6405 #define DFSDM_CHAWSCDR_AWFORD_Pos (22U) | |
6406 #define DFSDM_CHAWSCDR_AWFORD_Msk (0x3U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00C00000 */ | |
6407 #define DFSDM_CHAWSCDR_AWFORD DFSDM_CHAWSCDR_AWFORD_Msk /*!< AWFORD[1:0] Analog watchdog Sinc filter order on channel y */ | |
6408 #define DFSDM_CHAWSCDR_AWFORD_1 (0x2U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00800000 */ | |
6409 #define DFSDM_CHAWSCDR_AWFORD_0 (0x1U << DFSDM_CHAWSCDR_AWFORD_Pos) /*!< 0x00400000 */ | |
6410 #define DFSDM_CHAWSCDR_AWFOSR_Pos (16U) | |
6411 #define DFSDM_CHAWSCDR_AWFOSR_Msk (0x1FU << DFSDM_CHAWSCDR_AWFOSR_Pos) /*!< 0x001F0000 */ | |
6412 #define DFSDM_CHAWSCDR_AWFOSR DFSDM_CHAWSCDR_AWFOSR_Msk /*!< AWFOSR[4:0] Analog watchdog filter oversampling ratio on channel y */ | |
6413 #define DFSDM_CHAWSCDR_BKSCD_Pos (12U) | |
6414 #define DFSDM_CHAWSCDR_BKSCD_Msk (0xFU << DFSDM_CHAWSCDR_BKSCD_Pos) /*!< 0x0000F000 */ | |
6415 #define DFSDM_CHAWSCDR_BKSCD DFSDM_CHAWSCDR_BKSCD_Msk /*!< BKSCD[3:0] Break signal assignment for short circuit detector on channel y */ | |
6416 #define DFSDM_CHAWSCDR_SCDT_Pos (0U) | |
6417 #define DFSDM_CHAWSCDR_SCDT_Msk (0xFFU << DFSDM_CHAWSCDR_SCDT_Pos) /*!< 0x000000FF */ | |
6418 #define DFSDM_CHAWSCDR_SCDT DFSDM_CHAWSCDR_SCDT_Msk /*!< SCDT[7:0] Short circuit detector threshold for channel y */ | |
6419 | |
6420 /**************** Bit definition for DFSDM_CHWDATR register *******************/ | |
6421 #define DFSDM_CHWDATR_WDATA_Pos (0U) | |
6422 #define DFSDM_CHWDATR_WDATA_Msk (0xFFFFU << DFSDM_CHWDATR_WDATA_Pos) /*!< 0x0000FFFF */ | |
6423 #define DFSDM_CHWDATR_WDATA DFSDM_CHWDATR_WDATA_Msk /*!< WDATA[15:0] Input channel y watchdog data */ | |
6424 | |
6425 /**************** Bit definition for DFSDM_CHDATINR register *****************/ | |
6426 #define DFSDM_CHDATINR_INDAT0_Pos (0U) | |
6427 #define DFSDM_CHDATINR_INDAT0_Msk (0xFFFFU << DFSDM_CHDATINR_INDAT0_Pos) /*!< 0x0000FFFF */ | |
6428 #define DFSDM_CHDATINR_INDAT0 DFSDM_CHDATINR_INDAT0_Msk /*!< INDAT0[31:16] Input data for channel y or channel (y+1) */ | |
6429 #define DFSDM_CHDATINR_INDAT1_Pos (16U) | |
6430 #define DFSDM_CHDATINR_INDAT1_Msk (0xFFFFU << DFSDM_CHDATINR_INDAT1_Pos) /*!< 0xFFFF0000 */ | |
6431 #define DFSDM_CHDATINR_INDAT1 DFSDM_CHDATINR_INDAT1_Msk /*!< INDAT0[15:0] Input data for channel y */ | |
6432 | |
6433 /************************ DFSDM module registers ****************************/ | |
6434 | |
6435 /***************** Bit definition for DFSDM_FLTCR1 register *******************/ | |
6436 #define DFSDM_FLTCR1_AWFSEL_Pos (30U) | |
6437 #define DFSDM_FLTCR1_AWFSEL_Msk (0x1U << DFSDM_FLTCR1_AWFSEL_Pos) /*!< 0x40000000 */ | |
6438 #define DFSDM_FLTCR1_AWFSEL DFSDM_FLTCR1_AWFSEL_Msk /*!< Analog watchdog fast mode select */ | |
6439 #define DFSDM_FLTCR1_FAST_Pos (29U) | |
6440 #define DFSDM_FLTCR1_FAST_Msk (0x1U << DFSDM_FLTCR1_FAST_Pos) /*!< 0x20000000 */ | |
6441 #define DFSDM_FLTCR1_FAST DFSDM_FLTCR1_FAST_Msk /*!< Fast conversion mode selection */ | |
6442 #define DFSDM_FLTCR1_RCH_Pos (24U) | |
6443 #define DFSDM_FLTCR1_RCH_Msk (0x7U << DFSDM_FLTCR1_RCH_Pos) /*!< 0x07000000 */ | |
6444 #define DFSDM_FLTCR1_RCH DFSDM_FLTCR1_RCH_Msk /*!< RCH[2:0] Regular channel selection */ | |
6445 #define DFSDM_FLTCR1_RDMAEN_Pos (21U) | |
6446 #define DFSDM_FLTCR1_RDMAEN_Msk (0x1U << DFSDM_FLTCR1_RDMAEN_Pos) /*!< 0x00200000 */ | |
6447 #define DFSDM_FLTCR1_RDMAEN DFSDM_FLTCR1_RDMAEN_Msk /*!< DMA channel enabled to read data for the regular conversion */ | |
6448 #define DFSDM_FLTCR1_RSYNC_Pos (19U) | |
6449 #define DFSDM_FLTCR1_RSYNC_Msk (0x1U << DFSDM_FLTCR1_RSYNC_Pos) /*!< 0x00080000 */ | |
6450 #define DFSDM_FLTCR1_RSYNC DFSDM_FLTCR1_RSYNC_Msk /*!< Launch regular conversion synchronously with DFSDMx */ | |
6451 #define DFSDM_FLTCR1_RCONT_Pos (18U) | |
6452 #define DFSDM_FLTCR1_RCONT_Msk (0x1U << DFSDM_FLTCR1_RCONT_Pos) /*!< 0x00040000 */ | |
6453 #define DFSDM_FLTCR1_RCONT DFSDM_FLTCR1_RCONT_Msk /*!< Continuous mode selection for regular conversions */ | |
6454 #define DFSDM_FLTCR1_RSWSTART_Pos (17U) | |
6455 #define DFSDM_FLTCR1_RSWSTART_Msk (0x1U << DFSDM_FLTCR1_RSWSTART_Pos) /*!< 0x00020000 */ | |
6456 #define DFSDM_FLTCR1_RSWSTART DFSDM_FLTCR1_RSWSTART_Msk /*!< Software start of a conversion on the regular channel */ | |
6457 #define DFSDM_FLTCR1_JEXTEN_Pos (13U) | |
6458 #define DFSDM_FLTCR1_JEXTEN_Msk (0x3U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00006000 */ | |
6459 #define DFSDM_FLTCR1_JEXTEN DFSDM_FLTCR1_JEXTEN_Msk /*!< JEXTEN[1:0] Trigger enable and trigger edge selection for injected conversions */ | |
6460 #define DFSDM_FLTCR1_JEXTEN_1 (0x2U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00004000 */ | |
6461 #define DFSDM_FLTCR1_JEXTEN_0 (0x1U << DFSDM_FLTCR1_JEXTEN_Pos) /*!< 0x00002000 */ | |
6462 #define DFSDM_FLTCR1_JEXTSEL_Pos (8U) | |
6463 #define DFSDM_FLTCR1_JEXTSEL_Msk (0x7U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000700 */ | |
6464 #define DFSDM_FLTCR1_JEXTSEL DFSDM_FLTCR1_JEXTSEL_Msk /*!< JEXTSEL[2:0]Trigger signal selection for launching injected conversions */ | |
6465 #define DFSDM_FLTCR1_JEXTSEL_2 (0x4U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000400 */ | |
6466 #define DFSDM_FLTCR1_JEXTSEL_1 (0x2U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000200 */ | |
6467 #define DFSDM_FLTCR1_JEXTSEL_0 (0x1U << DFSDM_FLTCR1_JEXTSEL_Pos) /*!< 0x00000100 */ | |
6468 #define DFSDM_FLTCR1_JDMAEN_Pos (5U) | |
6469 #define DFSDM_FLTCR1_JDMAEN_Msk (0x1U << DFSDM_FLTCR1_JDMAEN_Pos) /*!< 0x00000020 */ | |
6470 #define DFSDM_FLTCR1_JDMAEN DFSDM_FLTCR1_JDMAEN_Msk /*!< DMA channel enabled to read data for the injected channel group */ | |
6471 #define DFSDM_FLTCR1_JSCAN_Pos (4U) | |
6472 #define DFSDM_FLTCR1_JSCAN_Msk (0x1U << DFSDM_FLTCR1_JSCAN_Pos) /*!< 0x00000010 */ | |
6473 #define DFSDM_FLTCR1_JSCAN DFSDM_FLTCR1_JSCAN_Msk /*!< Scanning conversion in continuous mode selection for injected conversions */ | |
6474 #define DFSDM_FLTCR1_JSYNC_Pos (3U) | |
6475 #define DFSDM_FLTCR1_JSYNC_Msk (0x1U << DFSDM_FLTCR1_JSYNC_Pos) /*!< 0x00000008 */ | |
6476 #define DFSDM_FLTCR1_JSYNC DFSDM_FLTCR1_JSYNC_Msk /*!< Launch an injected conversion synchronously with DFSDMx JSWSTART trigger */ | |
6477 #define DFSDM_FLTCR1_JSWSTART_Pos (1U) | |
6478 #define DFSDM_FLTCR1_JSWSTART_Msk (0x1U << DFSDM_FLTCR1_JSWSTART_Pos) /*!< 0x00000002 */ | |
6479 #define DFSDM_FLTCR1_JSWSTART DFSDM_FLTCR1_JSWSTART_Msk /*!< Start the conversion of the injected group of channels */ | |
6480 #define DFSDM_FLTCR1_DFEN_Pos (0U) | |
6481 #define DFSDM_FLTCR1_DFEN_Msk (0x1U << DFSDM_FLTCR1_DFEN_Pos) /*!< 0x00000001 */ | |
6482 #define DFSDM_FLTCR1_DFEN DFSDM_FLTCR1_DFEN_Msk /*!< DFSDM enable */ | |
6483 | |
6484 /***************** Bit definition for DFSDM_FLTCR2 register *******************/ | |
6485 #define DFSDM_FLTCR2_AWDCH_Pos (16U) | |
6486 #define DFSDM_FLTCR2_AWDCH_Msk (0xFFU << DFSDM_FLTCR2_AWDCH_Pos) /*!< 0x00FF0000 */ | |
6487 #define DFSDM_FLTCR2_AWDCH DFSDM_FLTCR2_AWDCH_Msk /*!< AWDCH[7:0] Analog watchdog channel selection */ | |
6488 #define DFSDM_FLTCR2_EXCH_Pos (8U) | |
6489 #define DFSDM_FLTCR2_EXCH_Msk (0xFFU << DFSDM_FLTCR2_EXCH_Pos) /*!< 0x0000FF00 */ | |
6490 #define DFSDM_FLTCR2_EXCH DFSDM_FLTCR2_EXCH_Msk /*!< EXCH[7:0] Extreme detector channel selection */ | |
6491 #define DFSDM_FLTCR2_CKABIE_Pos (6U) | |
6492 #define DFSDM_FLTCR2_CKABIE_Msk (0x1U << DFSDM_FLTCR2_CKABIE_Pos) /*!< 0x00000040 */ | |
6493 #define DFSDM_FLTCR2_CKABIE DFSDM_FLTCR2_CKABIE_Msk /*!< Clock absence interrupt enable */ | |
6494 #define DFSDM_FLTCR2_SCDIE_Pos (5U) | |
6495 #define DFSDM_FLTCR2_SCDIE_Msk (0x1U << DFSDM_FLTCR2_SCDIE_Pos) /*!< 0x00000020 */ | |
6496 #define DFSDM_FLTCR2_SCDIE DFSDM_FLTCR2_SCDIE_Msk /*!< Short circuit detector interrupt enable */ | |
6497 #define DFSDM_FLTCR2_AWDIE_Pos (4U) | |
6498 #define DFSDM_FLTCR2_AWDIE_Msk (0x1U << DFSDM_FLTCR2_AWDIE_Pos) /*!< 0x00000010 */ | |
6499 #define DFSDM_FLTCR2_AWDIE DFSDM_FLTCR2_AWDIE_Msk /*!< Analog watchdog interrupt enable */ | |
6500 #define DFSDM_FLTCR2_ROVRIE_Pos (3U) | |
6501 #define DFSDM_FLTCR2_ROVRIE_Msk (0x1U << DFSDM_FLTCR2_ROVRIE_Pos) /*!< 0x00000008 */ | |
6502 #define DFSDM_FLTCR2_ROVRIE DFSDM_FLTCR2_ROVRIE_Msk /*!< Regular data overrun interrupt enable */ | |
6503 #define DFSDM_FLTCR2_JOVRIE_Pos (2U) | |
6504 #define DFSDM_FLTCR2_JOVRIE_Msk (0x1U << DFSDM_FLTCR2_JOVRIE_Pos) /*!< 0x00000004 */ | |
6505 #define DFSDM_FLTCR2_JOVRIE DFSDM_FLTCR2_JOVRIE_Msk /*!< Injected data overrun interrupt enable */ | |
6506 #define DFSDM_FLTCR2_REOCIE_Pos (1U) | |
6507 #define DFSDM_FLTCR2_REOCIE_Msk (0x1U << DFSDM_FLTCR2_REOCIE_Pos) /*!< 0x00000002 */ | |
6508 #define DFSDM_FLTCR2_REOCIE DFSDM_FLTCR2_REOCIE_Msk /*!< Regular end of conversion interrupt enable */ | |
6509 #define DFSDM_FLTCR2_JEOCIE_Pos (0U) | |
6510 #define DFSDM_FLTCR2_JEOCIE_Msk (0x1U << DFSDM_FLTCR2_JEOCIE_Pos) /*!< 0x00000001 */ | |
6511 #define DFSDM_FLTCR2_JEOCIE DFSDM_FLTCR2_JEOCIE_Msk /*!< Injected end of conversion interrupt enable */ | |
6512 | |
6513 /***************** Bit definition for DFSDM_FLTISR register *******************/ | |
6514 #define DFSDM_FLTISR_SCDF_Pos (24U) | |
6515 #define DFSDM_FLTISR_SCDF_Msk (0xFFU << DFSDM_FLTISR_SCDF_Pos) /*!< 0xFF000000 */ | |
6516 #define DFSDM_FLTISR_SCDF DFSDM_FLTISR_SCDF_Msk /*!< SCDF[7:0] Short circuit detector flag */ | |
6517 #define DFSDM_FLTISR_CKABF_Pos (16U) | |
6518 #define DFSDM_FLTISR_CKABF_Msk (0xFFU << DFSDM_FLTISR_CKABF_Pos) /*!< 0x00FF0000 */ | |
6519 #define DFSDM_FLTISR_CKABF DFSDM_FLTISR_CKABF_Msk /*!< CKABF[7:0] Clock absence flag */ | |
6520 #define DFSDM_FLTISR_RCIP_Pos (14U) | |
6521 #define DFSDM_FLTISR_RCIP_Msk (0x1U << DFSDM_FLTISR_RCIP_Pos) /*!< 0x00004000 */ | |
6522 #define DFSDM_FLTISR_RCIP DFSDM_FLTISR_RCIP_Msk /*!< Regular conversion in progress status */ | |
6523 #define DFSDM_FLTISR_JCIP_Pos (13U) | |
6524 #define DFSDM_FLTISR_JCIP_Msk (0x1U << DFSDM_FLTISR_JCIP_Pos) /*!< 0x00002000 */ | |
6525 #define DFSDM_FLTISR_JCIP DFSDM_FLTISR_JCIP_Msk /*!< Injected conversion in progress status */ | |
6526 #define DFSDM_FLTISR_AWDF_Pos (4U) | |
6527 #define DFSDM_FLTISR_AWDF_Msk (0x1U << DFSDM_FLTISR_AWDF_Pos) /*!< 0x00000010 */ | |
6528 #define DFSDM_FLTISR_AWDF DFSDM_FLTISR_AWDF_Msk /*!< Analog watchdog */ | |
6529 #define DFSDM_FLTISR_ROVRF_Pos (3U) | |
6530 #define DFSDM_FLTISR_ROVRF_Msk (0x1U << DFSDM_FLTISR_ROVRF_Pos) /*!< 0x00000008 */ | |
6531 #define DFSDM_FLTISR_ROVRF DFSDM_FLTISR_ROVRF_Msk /*!< Regular conversion overrun flag */ | |
6532 #define DFSDM_FLTISR_JOVRF_Pos (2U) | |
6533 #define DFSDM_FLTISR_JOVRF_Msk (0x1U << DFSDM_FLTISR_JOVRF_Pos) /*!< 0x00000004 */ | |
6534 #define DFSDM_FLTISR_JOVRF DFSDM_FLTISR_JOVRF_Msk /*!< Injected conversion overrun flag */ | |
6535 #define DFSDM_FLTISR_REOCF_Pos (1U) | |
6536 #define DFSDM_FLTISR_REOCF_Msk (0x1U << DFSDM_FLTISR_REOCF_Pos) /*!< 0x00000002 */ | |
6537 #define DFSDM_FLTISR_REOCF DFSDM_FLTISR_REOCF_Msk /*!< End of regular conversion flag */ | |
6538 #define DFSDM_FLTISR_JEOCF_Pos (0U) | |
6539 #define DFSDM_FLTISR_JEOCF_Msk (0x1U << DFSDM_FLTISR_JEOCF_Pos) /*!< 0x00000001 */ | |
6540 #define DFSDM_FLTISR_JEOCF DFSDM_FLTISR_JEOCF_Msk /*!< End of injected conversion flag */ | |
6541 | |
6542 /***************** Bit definition for DFSDM_FLTICR register *******************/ | |
6543 #define DFSDM_FLTICR_CLRSCSDF_Pos (24U) | |
6544 #define DFSDM_FLTICR_CLRSCSDF_Msk (0xFFU << DFSDM_FLTICR_CLRSCSDF_Pos) /*!< 0xFF000000 */ | |
6545 #define DFSDM_FLTICR_CLRSCSDF DFSDM_FLTICR_CLRSCSDF_Msk /*!< CLRSCSDF[7:0] Clear the short circuit detector flag */ | |
6546 #define DFSDM_FLTICR_CLRCKABF_Pos (16U) | |
6547 #define DFSDM_FLTICR_CLRCKABF_Msk (0xFFU << DFSDM_FLTICR_CLRCKABF_Pos) /*!< 0x00FF0000 */ | |
6548 #define DFSDM_FLTICR_CLRCKABF DFSDM_FLTICR_CLRCKABF_Msk /*!< CLRCKABF[7:0] Clear the clock absence flag */ | |
6549 #define DFSDM_FLTICR_CLRROVRF_Pos (3U) | |
6550 #define DFSDM_FLTICR_CLRROVRF_Msk (0x1U << DFSDM_FLTICR_CLRROVRF_Pos) /*!< 0x00000008 */ | |
6551 #define DFSDM_FLTICR_CLRROVRF DFSDM_FLTICR_CLRROVRF_Msk /*!< Clear the regular conversion overrun flag */ | |
6552 #define DFSDM_FLTICR_CLRJOVRF_Pos (2U) | |
6553 #define DFSDM_FLTICR_CLRJOVRF_Msk (0x1U << DFSDM_FLTICR_CLRJOVRF_Pos) /*!< 0x00000004 */ | |
6554 #define DFSDM_FLTICR_CLRJOVRF DFSDM_FLTICR_CLRJOVRF_Msk /*!< Clear the injected conversion overrun flag */ | |
6555 | |
6556 /**************** Bit definition for DFSDM_FLTJCHGR register ******************/ | |
6557 #define DFSDM_FLTJCHGR_JCHG_Pos (0U) | |
6558 #define DFSDM_FLTJCHGR_JCHG_Msk (0xFFU << DFSDM_FLTJCHGR_JCHG_Pos) /*!< 0x000000FF */ | |
6559 #define DFSDM_FLTJCHGR_JCHG DFSDM_FLTJCHGR_JCHG_Msk /*!< JCHG[7:0] Injected channel group selection */ | |
6560 | |
6561 /***************** Bit definition for DFSDM_FLTFCR register *******************/ | |
6562 #define DFSDM_FLTFCR_FORD_Pos (29U) | |
6563 #define DFSDM_FLTFCR_FORD_Msk (0x7U << DFSDM_FLTFCR_FORD_Pos) /*!< 0xE0000000 */ | |
6564 #define DFSDM_FLTFCR_FORD DFSDM_FLTFCR_FORD_Msk /*!< FORD[2:0] Sinc filter order */ | |
6565 #define DFSDM_FLTFCR_FORD_2 (0x4U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x80000000 */ | |
6566 #define DFSDM_FLTFCR_FORD_1 (0x2U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x40000000 */ | |
6567 #define DFSDM_FLTFCR_FORD_0 (0x1U << DFSDM_FLTFCR_FORD_Pos) /*!< 0x20000000 */ | |
6568 #define DFSDM_FLTFCR_FOSR_Pos (16U) | |
6569 #define DFSDM_FLTFCR_FOSR_Msk (0x3FFU << DFSDM_FLTFCR_FOSR_Pos) /*!< 0x03FF0000 */ | |
6570 #define DFSDM_FLTFCR_FOSR DFSDM_FLTFCR_FOSR_Msk /*!< FOSR[9:0] Sinc filter oversampling ratio (decimation rate) */ | |
6571 #define DFSDM_FLTFCR_IOSR_Pos (0U) | |
6572 #define DFSDM_FLTFCR_IOSR_Msk (0xFFU << DFSDM_FLTFCR_IOSR_Pos) /*!< 0x000000FF */ | |
6573 #define DFSDM_FLTFCR_IOSR DFSDM_FLTFCR_IOSR_Msk /*!< IOSR[7:0] Integrator oversampling ratio (averaging length) */ | |
6574 | |
6575 /*************** Bit definition for DFSDM_FLTJDATAR register *****************/ | |
6576 #define DFSDM_FLTJDATAR_JDATA_Pos (8U) | |
6577 #define DFSDM_FLTJDATAR_JDATA_Msk (0xFFFFFFU << DFSDM_FLTJDATAR_JDATA_Pos) /*!< 0xFFFFFF00 */ | |
6578 #define DFSDM_FLTJDATAR_JDATA DFSDM_FLTJDATAR_JDATA_Msk /*!< JDATA[23:0] Injected group conversion data */ | |
6579 #define DFSDM_FLTJDATAR_JDATACH_Pos (0U) | |
6580 #define DFSDM_FLTJDATAR_JDATACH_Msk (0x7U << DFSDM_FLTJDATAR_JDATACH_Pos) /*!< 0x00000007 */ | |
6581 #define DFSDM_FLTJDATAR_JDATACH DFSDM_FLTJDATAR_JDATACH_Msk /*!< JDATACH[2:0] Injected channel most recently converted */ | |
6582 | |
6583 /*************** Bit definition for DFSDM_FLTRDATAR register *****************/ | |
6584 #define DFSDM_FLTRDATAR_RDATA_Pos (8U) | |
6585 #define DFSDM_FLTRDATAR_RDATA_Msk (0xFFFFFFU << DFSDM_FLTRDATAR_RDATA_Pos) /*!< 0xFFFFFF00 */ | |
6586 #define DFSDM_FLTRDATAR_RDATA DFSDM_FLTRDATAR_RDATA_Msk /*!< RDATA[23:0] Regular channel conversion data */ | |
6587 #define DFSDM_FLTRDATAR_RPEND_Pos (4U) | |
6588 #define DFSDM_FLTRDATAR_RPEND_Msk (0x1U << DFSDM_FLTRDATAR_RPEND_Pos) /*!< 0x00000010 */ | |
6589 #define DFSDM_FLTRDATAR_RPEND DFSDM_FLTRDATAR_RPEND_Msk /*!< RPEND Regular channel pending data */ | |
6590 #define DFSDM_FLTRDATAR_RDATACH_Pos (0U) | |
6591 #define DFSDM_FLTRDATAR_RDATACH_Msk (0x7U << DFSDM_FLTRDATAR_RDATACH_Pos) /*!< 0x00000007 */ | |
6592 #define DFSDM_FLTRDATAR_RDATACH DFSDM_FLTRDATAR_RDATACH_Msk /*!< RDATACH[2:0] Regular channel most recently converted */ | |
6593 | |
6594 /*************** Bit definition for DFSDM_FLTAWHTR register ******************/ | |
6595 #define DFSDM_FLTAWHTR_AWHT_Pos (8U) | |
6596 #define DFSDM_FLTAWHTR_AWHT_Msk (0xFFFFFFU << DFSDM_FLTAWHTR_AWHT_Pos) /*!< 0xFFFFFF00 */ | |
6597 #define DFSDM_FLTAWHTR_AWHT DFSDM_FLTAWHTR_AWHT_Msk /*!< AWHT[23:0] Analog watchdog high threshold */ | |
6598 #define DFSDM_FLTAWHTR_BKAWH_Pos (0U) | |
6599 #define DFSDM_FLTAWHTR_BKAWH_Msk (0xFU << DFSDM_FLTAWHTR_BKAWH_Pos) /*!< 0x0000000F */ | |
6600 #define DFSDM_FLTAWHTR_BKAWH DFSDM_FLTAWHTR_BKAWH_Msk /*!< BKAWH[3:0] Break signal assignment to analog watchdog high threshold event */ | |
6601 | |
6602 /*************** Bit definition for DFSDM_FLTAWLTR register ******************/ | |
6603 #define DFSDM_FLTAWLTR_AWLT_Pos (8U) | |
6604 #define DFSDM_FLTAWLTR_AWLT_Msk (0xFFFFFFU << DFSDM_FLTAWLTR_AWLT_Pos) /*!< 0xFFFFFF00 */ | |
6605 #define DFSDM_FLTAWLTR_AWLT DFSDM_FLTAWLTR_AWLT_Msk /*!< AWLT[23:0] Analog watchdog low threshold */ | |
6606 #define DFSDM_FLTAWLTR_BKAWL_Pos (0U) | |
6607 #define DFSDM_FLTAWLTR_BKAWL_Msk (0xFU << DFSDM_FLTAWLTR_BKAWL_Pos) /*!< 0x0000000F */ | |
6608 #define DFSDM_FLTAWLTR_BKAWL DFSDM_FLTAWLTR_BKAWL_Msk /*!< BKAWL[3:0] Break signal assignment to analog watchdog low threshold event */ | |
6609 | |
6610 /*************** Bit definition for DFSDM_FLTAWSR register *******************/ | |
6611 #define DFSDM_FLTAWSR_AWHTF_Pos (8U) | |
6612 #define DFSDM_FLTAWSR_AWHTF_Msk (0xFFU << DFSDM_FLTAWSR_AWHTF_Pos) /*!< 0x0000FF00 */ | |
6613 #define DFSDM_FLTAWSR_AWHTF DFSDM_FLTAWSR_AWHTF_Msk /*!< AWHTF[15:8] Analog watchdog high threshold error on given channels */ | |
6614 #define DFSDM_FLTAWSR_AWLTF_Pos (0U) | |
6615 #define DFSDM_FLTAWSR_AWLTF_Msk (0xFFU << DFSDM_FLTAWSR_AWLTF_Pos) /*!< 0x000000FF */ | |
6616 #define DFSDM_FLTAWSR_AWLTF DFSDM_FLTAWSR_AWLTF_Msk /*!< AWLTF[7:0] Analog watchdog low threshold error on given channels */ | |
6617 | |
6618 /*************** Bit definition for DFSDM_FLTAWCFR register ******************/ | |
6619 #define DFSDM_FLTAWCFR_CLRAWHTF_Pos (8U) | |
6620 #define DFSDM_FLTAWCFR_CLRAWHTF_Msk (0xFFU << DFSDM_FLTAWCFR_CLRAWHTF_Pos) /*!< 0x0000FF00 */ | |
6621 #define DFSDM_FLTAWCFR_CLRAWHTF DFSDM_FLTAWCFR_CLRAWHTF_Msk /*!< CLRAWHTF[15:8] Clear the Analog watchdog high threshold flag */ | |
6622 #define DFSDM_FLTAWCFR_CLRAWLTF_Pos (0U) | |
6623 #define DFSDM_FLTAWCFR_CLRAWLTF_Msk (0xFFU << DFSDM_FLTAWCFR_CLRAWLTF_Pos) /*!< 0x000000FF */ | |
6624 #define DFSDM_FLTAWCFR_CLRAWLTF DFSDM_FLTAWCFR_CLRAWLTF_Msk /*!< CLRAWLTF[7:0] Clear the Analog watchdog low threshold flag */ | |
6625 | |
6626 /*************** Bit definition for DFSDM_FLTEXMAX register ******************/ | |
6627 #define DFSDM_FLTEXMAX_EXMAX_Pos (8U) | |
6628 #define DFSDM_FLTEXMAX_EXMAX_Msk (0xFFFFFFU << DFSDM_FLTEXMAX_EXMAX_Pos) /*!< 0xFFFFFF00 */ | |
6629 #define DFSDM_FLTEXMAX_EXMAX DFSDM_FLTEXMAX_EXMAX_Msk /*!< EXMAX[23:0] Extreme detector maximum value */ | |
6630 #define DFSDM_FLTEXMAX_EXMAXCH_Pos (0U) | |
6631 #define DFSDM_FLTEXMAX_EXMAXCH_Msk (0x7U << DFSDM_FLTEXMAX_EXMAXCH_Pos) /*!< 0x00000007 */ | |
6632 #define DFSDM_FLTEXMAX_EXMAXCH DFSDM_FLTEXMAX_EXMAXCH_Msk /*!< EXMAXCH[2:0] Extreme detector maximum data channel */ | |
6633 | |
6634 /*************** Bit definition for DFSDM_FLTEXMIN register ******************/ | |
6635 #define DFSDM_FLTEXMIN_EXMIN_Pos (8U) | |
6636 #define DFSDM_FLTEXMIN_EXMIN_Msk (0xFFFFFFU << DFSDM_FLTEXMIN_EXMIN_Pos) /*!< 0xFFFFFF00 */ | |
6637 #define DFSDM_FLTEXMIN_EXMIN DFSDM_FLTEXMIN_EXMIN_Msk /*!< EXMIN[23:0] Extreme detector minimum value */ | |
6638 #define DFSDM_FLTEXMIN_EXMINCH_Pos (0U) | |
6639 #define DFSDM_FLTEXMIN_EXMINCH_Msk (0x7U << DFSDM_FLTEXMIN_EXMINCH_Pos) /*!< 0x00000007 */ | |
6640 #define DFSDM_FLTEXMIN_EXMINCH DFSDM_FLTEXMIN_EXMINCH_Msk /*!< EXMINCH[2:0] Extreme detector minimum data channel */ | |
6641 | |
6642 /*************** Bit definition for DFSDM_FLTCNVTIMR register ****************/ | |
6643 #define DFSDM_FLTCNVTIMR_CNVCNT_Pos (4U) | |
6644 #define DFSDM_FLTCNVTIMR_CNVCNT_Msk (0xFFFFFFFU << DFSDM_FLTCNVTIMR_CNVCNT_Pos) /*!< 0xFFFFFFF0 */ | |
6645 #define DFSDM_FLTCNVTIMR_CNVCNT DFSDM_FLTCNVTIMR_CNVCNT_Msk /*!< CNVCNT[27:0]: 28-bit timer counting conversion time */ | |
6646 | |
6647 /******************************************************************************/ | |
6648 /* */ | |
6649 /* DMA Controller (DMA) */ | |
6650 /* */ | |
6651 /******************************************************************************/ | |
6652 | |
6653 /******************* Bit definition for DMA_ISR register ********************/ | |
6654 #define DMA_ISR_GIF1_Pos (0U) | |
6655 #define DMA_ISR_GIF1_Msk (0x1U << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */ | |
6656 #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */ | |
6657 #define DMA_ISR_TCIF1_Pos (1U) | |
6658 #define DMA_ISR_TCIF1_Msk (0x1U << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */ | |
6659 #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */ | |
6660 #define DMA_ISR_HTIF1_Pos (2U) | |
6661 #define DMA_ISR_HTIF1_Msk (0x1U << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */ | |
6662 #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */ | |
6663 #define DMA_ISR_TEIF1_Pos (3U) | |
6664 #define DMA_ISR_TEIF1_Msk (0x1U << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */ | |
6665 #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */ | |
6666 #define DMA_ISR_GIF2_Pos (4U) | |
6667 #define DMA_ISR_GIF2_Msk (0x1U << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */ | |
6668 #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */ | |
6669 #define DMA_ISR_TCIF2_Pos (5U) | |
6670 #define DMA_ISR_TCIF2_Msk (0x1U << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */ | |
6671 #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */ | |
6672 #define DMA_ISR_HTIF2_Pos (6U) | |
6673 #define DMA_ISR_HTIF2_Msk (0x1U << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */ | |
6674 #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */ | |
6675 #define DMA_ISR_TEIF2_Pos (7U) | |
6676 #define DMA_ISR_TEIF2_Msk (0x1U << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */ | |
6677 #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */ | |
6678 #define DMA_ISR_GIF3_Pos (8U) | |
6679 #define DMA_ISR_GIF3_Msk (0x1U << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */ | |
6680 #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */ | |
6681 #define DMA_ISR_TCIF3_Pos (9U) | |
6682 #define DMA_ISR_TCIF3_Msk (0x1U << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */ | |
6683 #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */ | |
6684 #define DMA_ISR_HTIF3_Pos (10U) | |
6685 #define DMA_ISR_HTIF3_Msk (0x1U << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */ | |
6686 #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */ | |
6687 #define DMA_ISR_TEIF3_Pos (11U) | |
6688 #define DMA_ISR_TEIF3_Msk (0x1U << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */ | |
6689 #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */ | |
6690 #define DMA_ISR_GIF4_Pos (12U) | |
6691 #define DMA_ISR_GIF4_Msk (0x1U << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */ | |
6692 #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */ | |
6693 #define DMA_ISR_TCIF4_Pos (13U) | |
6694 #define DMA_ISR_TCIF4_Msk (0x1U << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */ | |
6695 #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */ | |
6696 #define DMA_ISR_HTIF4_Pos (14U) | |
6697 #define DMA_ISR_HTIF4_Msk (0x1U << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */ | |
6698 #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */ | |
6699 #define DMA_ISR_TEIF4_Pos (15U) | |
6700 #define DMA_ISR_TEIF4_Msk (0x1U << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */ | |
6701 #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */ | |
6702 #define DMA_ISR_GIF5_Pos (16U) | |
6703 #define DMA_ISR_GIF5_Msk (0x1U << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */ | |
6704 #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */ | |
6705 #define DMA_ISR_TCIF5_Pos (17U) | |
6706 #define DMA_ISR_TCIF5_Msk (0x1U << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */ | |
6707 #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */ | |
6708 #define DMA_ISR_HTIF5_Pos (18U) | |
6709 #define DMA_ISR_HTIF5_Msk (0x1U << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */ | |
6710 #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */ | |
6711 #define DMA_ISR_TEIF5_Pos (19U) | |
6712 #define DMA_ISR_TEIF5_Msk (0x1U << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */ | |
6713 #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */ | |
6714 #define DMA_ISR_GIF6_Pos (20U) | |
6715 #define DMA_ISR_GIF6_Msk (0x1U << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */ | |
6716 #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */ | |
6717 #define DMA_ISR_TCIF6_Pos (21U) | |
6718 #define DMA_ISR_TCIF6_Msk (0x1U << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */ | |
6719 #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */ | |
6720 #define DMA_ISR_HTIF6_Pos (22U) | |
6721 #define DMA_ISR_HTIF6_Msk (0x1U << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */ | |
6722 #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */ | |
6723 #define DMA_ISR_TEIF6_Pos (23U) | |
6724 #define DMA_ISR_TEIF6_Msk (0x1U << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */ | |
6725 #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */ | |
6726 #define DMA_ISR_GIF7_Pos (24U) | |
6727 #define DMA_ISR_GIF7_Msk (0x1U << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */ | |
6728 #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */ | |
6729 #define DMA_ISR_TCIF7_Pos (25U) | |
6730 #define DMA_ISR_TCIF7_Msk (0x1U << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */ | |
6731 #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */ | |
6732 #define DMA_ISR_HTIF7_Pos (26U) | |
6733 #define DMA_ISR_HTIF7_Msk (0x1U << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */ | |
6734 #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */ | |
6735 #define DMA_ISR_TEIF7_Pos (27U) | |
6736 #define DMA_ISR_TEIF7_Msk (0x1U << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */ | |
6737 #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */ | |
6738 | |
6739 /******************* Bit definition for DMA_IFCR register *******************/ | |
6740 #define DMA_IFCR_CGIF1_Pos (0U) | |
6741 #define DMA_IFCR_CGIF1_Msk (0x1U << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */ | |
6742 #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clearr */ | |
6743 #define DMA_IFCR_CTCIF1_Pos (1U) | |
6744 #define DMA_IFCR_CTCIF1_Msk (0x1U << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */ | |
6745 #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */ | |
6746 #define DMA_IFCR_CHTIF1_Pos (2U) | |
6747 #define DMA_IFCR_CHTIF1_Msk (0x1U << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */ | |
6748 #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */ | |
6749 #define DMA_IFCR_CTEIF1_Pos (3U) | |
6750 #define DMA_IFCR_CTEIF1_Msk (0x1U << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */ | |
6751 #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */ | |
6752 #define DMA_IFCR_CGIF2_Pos (4U) | |
6753 #define DMA_IFCR_CGIF2_Msk (0x1U << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */ | |
6754 #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */ | |
6755 #define DMA_IFCR_CTCIF2_Pos (5U) | |
6756 #define DMA_IFCR_CTCIF2_Msk (0x1U << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */ | |
6757 #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */ | |
6758 #define DMA_IFCR_CHTIF2_Pos (6U) | |
6759 #define DMA_IFCR_CHTIF2_Msk (0x1U << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */ | |
6760 #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */ | |
6761 #define DMA_IFCR_CTEIF2_Pos (7U) | |
6762 #define DMA_IFCR_CTEIF2_Msk (0x1U << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */ | |
6763 #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */ | |
6764 #define DMA_IFCR_CGIF3_Pos (8U) | |
6765 #define DMA_IFCR_CGIF3_Msk (0x1U << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */ | |
6766 #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */ | |
6767 #define DMA_IFCR_CTCIF3_Pos (9U) | |
6768 #define DMA_IFCR_CTCIF3_Msk (0x1U << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */ | |
6769 #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */ | |
6770 #define DMA_IFCR_CHTIF3_Pos (10U) | |
6771 #define DMA_IFCR_CHTIF3_Msk (0x1U << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */ | |
6772 #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */ | |
6773 #define DMA_IFCR_CTEIF3_Pos (11U) | |
6774 #define DMA_IFCR_CTEIF3_Msk (0x1U << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */ | |
6775 #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */ | |
6776 #define DMA_IFCR_CGIF4_Pos (12U) | |
6777 #define DMA_IFCR_CGIF4_Msk (0x1U << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */ | |
6778 #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */ | |
6779 #define DMA_IFCR_CTCIF4_Pos (13U) | |
6780 #define DMA_IFCR_CTCIF4_Msk (0x1U << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */ | |
6781 #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */ | |
6782 #define DMA_IFCR_CHTIF4_Pos (14U) | |
6783 #define DMA_IFCR_CHTIF4_Msk (0x1U << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */ | |
6784 #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */ | |
6785 #define DMA_IFCR_CTEIF4_Pos (15U) | |
6786 #define DMA_IFCR_CTEIF4_Msk (0x1U << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */ | |
6787 #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */ | |
6788 #define DMA_IFCR_CGIF5_Pos (16U) | |
6789 #define DMA_IFCR_CGIF5_Msk (0x1U << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */ | |
6790 #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */ | |
6791 #define DMA_IFCR_CTCIF5_Pos (17U) | |
6792 #define DMA_IFCR_CTCIF5_Msk (0x1U << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */ | |
6793 #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */ | |
6794 #define DMA_IFCR_CHTIF5_Pos (18U) | |
6795 #define DMA_IFCR_CHTIF5_Msk (0x1U << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */ | |
6796 #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */ | |
6797 #define DMA_IFCR_CTEIF5_Pos (19U) | |
6798 #define DMA_IFCR_CTEIF5_Msk (0x1U << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */ | |
6799 #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */ | |
6800 #define DMA_IFCR_CGIF6_Pos (20U) | |
6801 #define DMA_IFCR_CGIF6_Msk (0x1U << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */ | |
6802 #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */ | |
6803 #define DMA_IFCR_CTCIF6_Pos (21U) | |
6804 #define DMA_IFCR_CTCIF6_Msk (0x1U << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */ | |
6805 #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */ | |
6806 #define DMA_IFCR_CHTIF6_Pos (22U) | |
6807 #define DMA_IFCR_CHTIF6_Msk (0x1U << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */ | |
6808 #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */ | |
6809 #define DMA_IFCR_CTEIF6_Pos (23U) | |
6810 #define DMA_IFCR_CTEIF6_Msk (0x1U << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */ | |
6811 #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */ | |
6812 #define DMA_IFCR_CGIF7_Pos (24U) | |
6813 #define DMA_IFCR_CGIF7_Msk (0x1U << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */ | |
6814 #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */ | |
6815 #define DMA_IFCR_CTCIF7_Pos (25U) | |
6816 #define DMA_IFCR_CTCIF7_Msk (0x1U << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */ | |
6817 #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */ | |
6818 #define DMA_IFCR_CHTIF7_Pos (26U) | |
6819 #define DMA_IFCR_CHTIF7_Msk (0x1U << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */ | |
6820 #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */ | |
6821 #define DMA_IFCR_CTEIF7_Pos (27U) | |
6822 #define DMA_IFCR_CTEIF7_Msk (0x1U << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */ | |
6823 #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */ | |
6824 | |
6825 /******************* Bit definition for DMA_CCR register ********************/ | |
6826 #define DMA_CCR_EN_Pos (0U) | |
6827 #define DMA_CCR_EN_Msk (0x1U << DMA_CCR_EN_Pos) /*!< 0x00000001 */ | |
6828 #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */ | |
6829 #define DMA_CCR_TCIE_Pos (1U) | |
6830 #define DMA_CCR_TCIE_Msk (0x1U << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */ | |
6831 #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */ | |
6832 #define DMA_CCR_HTIE_Pos (2U) | |
6833 #define DMA_CCR_HTIE_Msk (0x1U << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */ | |
6834 #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */ | |
6835 #define DMA_CCR_TEIE_Pos (3U) | |
6836 #define DMA_CCR_TEIE_Msk (0x1U << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */ | |
6837 #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */ | |
6838 #define DMA_CCR_DIR_Pos (4U) | |
6839 #define DMA_CCR_DIR_Msk (0x1U << DMA_CCR_DIR_Pos) /*!< 0x00000010 */ | |
6840 #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */ | |
6841 #define DMA_CCR_CIRC_Pos (5U) | |
6842 #define DMA_CCR_CIRC_Msk (0x1U << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */ | |
6843 #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */ | |
6844 #define DMA_CCR_PINC_Pos (6U) | |
6845 #define DMA_CCR_PINC_Msk (0x1U << DMA_CCR_PINC_Pos) /*!< 0x00000040 */ | |
6846 #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */ | |
6847 #define DMA_CCR_MINC_Pos (7U) | |
6848 #define DMA_CCR_MINC_Msk (0x1U << DMA_CCR_MINC_Pos) /*!< 0x00000080 */ | |
6849 #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */ | |
6850 | |
6851 #define DMA_CCR_PSIZE_Pos (8U) | |
6852 #define DMA_CCR_PSIZE_Msk (0x3U << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */ | |
6853 #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */ | |
6854 #define DMA_CCR_PSIZE_0 (0x1U << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */ | |
6855 #define DMA_CCR_PSIZE_1 (0x2U << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */ | |
6856 | |
6857 #define DMA_CCR_MSIZE_Pos (10U) | |
6858 #define DMA_CCR_MSIZE_Msk (0x3U << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */ | |
6859 #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */ | |
6860 #define DMA_CCR_MSIZE_0 (0x1U << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */ | |
6861 #define DMA_CCR_MSIZE_1 (0x2U << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */ | |
6862 | |
6863 #define DMA_CCR_PL_Pos (12U) | |
6864 #define DMA_CCR_PL_Msk (0x3U << DMA_CCR_PL_Pos) /*!< 0x00003000 */ | |
6865 #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level)*/ | |
6866 #define DMA_CCR_PL_0 (0x1U << DMA_CCR_PL_Pos) /*!< 0x00001000 */ | |
6867 #define DMA_CCR_PL_1 (0x2U << DMA_CCR_PL_Pos) /*!< 0x00002000 */ | |
6868 | |
6869 #define DMA_CCR_MEM2MEM_Pos (14U) | |
6870 #define DMA_CCR_MEM2MEM_Msk (0x1U << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */ | |
6871 #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */ | |
6872 | |
6873 /****************** Bit definition for DMA_CNDTR register *******************/ | |
6874 #define DMA_CNDTR_NDT_Pos (0U) | |
6875 #define DMA_CNDTR_NDT_Msk (0xFFFFU << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */ | |
6876 #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */ | |
6877 | |
6878 /****************** Bit definition for DMA_CPAR register ********************/ | |
6879 #define DMA_CPAR_PA_Pos (0U) | |
6880 #define DMA_CPAR_PA_Msk (0xFFFFFFFFU << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */ | |
6881 #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */ | |
6882 | |
6883 /****************** Bit definition for DMA_CMAR register ********************/ | |
6884 #define DMA_CMAR_MA_Pos (0U) | |
6885 #define DMA_CMAR_MA_Msk (0xFFFFFFFFU << DMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */ | |
6886 #define DMA_CMAR_MA DMA_CMAR_MA_Msk /*!< Memory Address */ | |
6887 | |
6888 | |
6889 /******************* Bit definition for DMA_CSELR register *******************/ | |
6890 #define DMA_CSELR_C1S_Pos (0U) | |
6891 #define DMA_CSELR_C1S_Msk (0xFU << DMA_CSELR_C1S_Pos) /*!< 0x0000000F */ | |
6892 #define DMA_CSELR_C1S DMA_CSELR_C1S_Msk /*!< Channel 1 Selection */ | |
6893 #define DMA_CSELR_C2S_Pos (4U) | |
6894 #define DMA_CSELR_C2S_Msk (0xFU << DMA_CSELR_C2S_Pos) /*!< 0x000000F0 */ | |
6895 #define DMA_CSELR_C2S DMA_CSELR_C2S_Msk /*!< Channel 2 Selection */ | |
6896 #define DMA_CSELR_C3S_Pos (8U) | |
6897 #define DMA_CSELR_C3S_Msk (0xFU << DMA_CSELR_C3S_Pos) /*!< 0x00000F00 */ | |
6898 #define DMA_CSELR_C3S DMA_CSELR_C3S_Msk /*!< Channel 3 Selection */ | |
6899 #define DMA_CSELR_C4S_Pos (12U) | |
6900 #define DMA_CSELR_C4S_Msk (0xFU << DMA_CSELR_C4S_Pos) /*!< 0x0000F000 */ | |
6901 #define DMA_CSELR_C4S DMA_CSELR_C4S_Msk /*!< Channel 4 Selection */ | |
6902 #define DMA_CSELR_C5S_Pos (16U) | |
6903 #define DMA_CSELR_C5S_Msk (0xFU << DMA_CSELR_C5S_Pos) /*!< 0x000F0000 */ | |
6904 #define DMA_CSELR_C5S DMA_CSELR_C5S_Msk /*!< Channel 5 Selection */ | |
6905 #define DMA_CSELR_C6S_Pos (20U) | |
6906 #define DMA_CSELR_C6S_Msk (0xFU << DMA_CSELR_C6S_Pos) /*!< 0x00F00000 */ | |
6907 #define DMA_CSELR_C6S DMA_CSELR_C6S_Msk /*!< Channel 6 Selection */ | |
6908 #define DMA_CSELR_C7S_Pos (24U) | |
6909 #define DMA_CSELR_C7S_Msk (0xFU << DMA_CSELR_C7S_Pos) /*!< 0x0F000000 */ | |
6910 #define DMA_CSELR_C7S DMA_CSELR_C7S_Msk /*!< Channel 7 Selection */ | |
6911 | |
6912 /******************************************************************************/ | |
6913 /* */ | |
6914 /* External Interrupt/Event Controller */ | |
6915 /* */ | |
6916 /******************************************************************************/ | |
6917 /******************* Bit definition for EXTI_IMR1 register ******************/ | |
6918 #define EXTI_IMR1_IM0_Pos (0U) | |
6919 #define EXTI_IMR1_IM0_Msk (0x1U << EXTI_IMR1_IM0_Pos) /*!< 0x00000001 */ | |
6920 #define EXTI_IMR1_IM0 EXTI_IMR1_IM0_Msk /*!< Interrupt Mask on line 0 */ | |
6921 #define EXTI_IMR1_IM1_Pos (1U) | |
6922 #define EXTI_IMR1_IM1_Msk (0x1U << EXTI_IMR1_IM1_Pos) /*!< 0x00000002 */ | |
6923 #define EXTI_IMR1_IM1 EXTI_IMR1_IM1_Msk /*!< Interrupt Mask on line 1 */ | |
6924 #define EXTI_IMR1_IM2_Pos (2U) | |
6925 #define EXTI_IMR1_IM2_Msk (0x1U << EXTI_IMR1_IM2_Pos) /*!< 0x00000004 */ | |
6926 #define EXTI_IMR1_IM2 EXTI_IMR1_IM2_Msk /*!< Interrupt Mask on line 2 */ | |
6927 #define EXTI_IMR1_IM3_Pos (3U) | |
6928 #define EXTI_IMR1_IM3_Msk (0x1U << EXTI_IMR1_IM3_Pos) /*!< 0x00000008 */ | |
6929 #define EXTI_IMR1_IM3 EXTI_IMR1_IM3_Msk /*!< Interrupt Mask on line 3 */ | |
6930 #define EXTI_IMR1_IM4_Pos (4U) | |
6931 #define EXTI_IMR1_IM4_Msk (0x1U << EXTI_IMR1_IM4_Pos) /*!< 0x00000010 */ | |
6932 #define EXTI_IMR1_IM4 EXTI_IMR1_IM4_Msk /*!< Interrupt Mask on line 4 */ | |
6933 #define EXTI_IMR1_IM5_Pos (5U) | |
6934 #define EXTI_IMR1_IM5_Msk (0x1U << EXTI_IMR1_IM5_Pos) /*!< 0x00000020 */ | |
6935 #define EXTI_IMR1_IM5 EXTI_IMR1_IM5_Msk /*!< Interrupt Mask on line 5 */ | |
6936 #define EXTI_IMR1_IM6_Pos (6U) | |
6937 #define EXTI_IMR1_IM6_Msk (0x1U << EXTI_IMR1_IM6_Pos) /*!< 0x00000040 */ | |
6938 #define EXTI_IMR1_IM6 EXTI_IMR1_IM6_Msk /*!< Interrupt Mask on line 6 */ | |
6939 #define EXTI_IMR1_IM7_Pos (7U) | |
6940 #define EXTI_IMR1_IM7_Msk (0x1U << EXTI_IMR1_IM7_Pos) /*!< 0x00000080 */ | |
6941 #define EXTI_IMR1_IM7 EXTI_IMR1_IM7_Msk /*!< Interrupt Mask on line 7 */ | |
6942 #define EXTI_IMR1_IM8_Pos (8U) | |
6943 #define EXTI_IMR1_IM8_Msk (0x1U << EXTI_IMR1_IM8_Pos) /*!< 0x00000100 */ | |
6944 #define EXTI_IMR1_IM8 EXTI_IMR1_IM8_Msk /*!< Interrupt Mask on line 8 */ | |
6945 #define EXTI_IMR1_IM9_Pos (9U) | |
6946 #define EXTI_IMR1_IM9_Msk (0x1U << EXTI_IMR1_IM9_Pos) /*!< 0x00000200 */ | |
6947 #define EXTI_IMR1_IM9 EXTI_IMR1_IM9_Msk /*!< Interrupt Mask on line 9 */ | |
6948 #define EXTI_IMR1_IM10_Pos (10U) | |
6949 #define EXTI_IMR1_IM10_Msk (0x1U << EXTI_IMR1_IM10_Pos) /*!< 0x00000400 */ | |
6950 #define EXTI_IMR1_IM10 EXTI_IMR1_IM10_Msk /*!< Interrupt Mask on line 10 */ | |
6951 #define EXTI_IMR1_IM11_Pos (11U) | |
6952 #define EXTI_IMR1_IM11_Msk (0x1U << EXTI_IMR1_IM11_Pos) /*!< 0x00000800 */ | |
6953 #define EXTI_IMR1_IM11 EXTI_IMR1_IM11_Msk /*!< Interrupt Mask on line 11 */ | |
6954 #define EXTI_IMR1_IM12_Pos (12U) | |
6955 #define EXTI_IMR1_IM12_Msk (0x1U << EXTI_IMR1_IM12_Pos) /*!< 0x00001000 */ | |
6956 #define EXTI_IMR1_IM12 EXTI_IMR1_IM12_Msk /*!< Interrupt Mask on line 12 */ | |
6957 #define EXTI_IMR1_IM13_Pos (13U) | |
6958 #define EXTI_IMR1_IM13_Msk (0x1U << EXTI_IMR1_IM13_Pos) /*!< 0x00002000 */ | |
6959 #define EXTI_IMR1_IM13 EXTI_IMR1_IM13_Msk /*!< Interrupt Mask on line 13 */ | |
6960 #define EXTI_IMR1_IM14_Pos (14U) | |
6961 #define EXTI_IMR1_IM14_Msk (0x1U << EXTI_IMR1_IM14_Pos) /*!< 0x00004000 */ | |
6962 #define EXTI_IMR1_IM14 EXTI_IMR1_IM14_Msk /*!< Interrupt Mask on line 14 */ | |
6963 #define EXTI_IMR1_IM15_Pos (15U) | |
6964 #define EXTI_IMR1_IM15_Msk (0x1U << EXTI_IMR1_IM15_Pos) /*!< 0x00008000 */ | |
6965 #define EXTI_IMR1_IM15 EXTI_IMR1_IM15_Msk /*!< Interrupt Mask on line 15 */ | |
6966 #define EXTI_IMR1_IM16_Pos (16U) | |
6967 #define EXTI_IMR1_IM16_Msk (0x1U << EXTI_IMR1_IM16_Pos) /*!< 0x00010000 */ | |
6968 #define EXTI_IMR1_IM16 EXTI_IMR1_IM16_Msk /*!< Interrupt Mask on line 16 */ | |
6969 #define EXTI_IMR1_IM17_Pos (17U) | |
6970 #define EXTI_IMR1_IM17_Msk (0x1U << EXTI_IMR1_IM17_Pos) /*!< 0x00020000 */ | |
6971 #define EXTI_IMR1_IM17 EXTI_IMR1_IM17_Msk /*!< Interrupt Mask on line 17 */ | |
6972 #define EXTI_IMR1_IM18_Pos (18U) | |
6973 #define EXTI_IMR1_IM18_Msk (0x1U << EXTI_IMR1_IM18_Pos) /*!< 0x00040000 */ | |
6974 #define EXTI_IMR1_IM18 EXTI_IMR1_IM18_Msk /*!< Interrupt Mask on line 18 */ | |
6975 #define EXTI_IMR1_IM19_Pos (19U) | |
6976 #define EXTI_IMR1_IM19_Msk (0x1U << EXTI_IMR1_IM19_Pos) /*!< 0x00080000 */ | |
6977 #define EXTI_IMR1_IM19 EXTI_IMR1_IM19_Msk /*!< Interrupt Mask on line 19 */ | |
6978 #define EXTI_IMR1_IM20_Pos (20U) | |
6979 #define EXTI_IMR1_IM20_Msk (0x1U << EXTI_IMR1_IM20_Pos) /*!< 0x00100000 */ | |
6980 #define EXTI_IMR1_IM20 EXTI_IMR1_IM20_Msk /*!< Interrupt Mask on line 20 */ | |
6981 #define EXTI_IMR1_IM21_Pos (21U) | |
6982 #define EXTI_IMR1_IM21_Msk (0x1U << EXTI_IMR1_IM21_Pos) /*!< 0x00200000 */ | |
6983 #define EXTI_IMR1_IM21 EXTI_IMR1_IM21_Msk /*!< Interrupt Mask on line 21 */ | |
6984 #define EXTI_IMR1_IM22_Pos (22U) | |
6985 #define EXTI_IMR1_IM22_Msk (0x1U << EXTI_IMR1_IM22_Pos) /*!< 0x00400000 */ | |
6986 #define EXTI_IMR1_IM22 EXTI_IMR1_IM22_Msk /*!< Interrupt Mask on line 22 */ | |
6987 #define EXTI_IMR1_IM23_Pos (23U) | |
6988 #define EXTI_IMR1_IM23_Msk (0x1U << EXTI_IMR1_IM23_Pos) /*!< 0x00800000 */ | |
6989 #define EXTI_IMR1_IM23 EXTI_IMR1_IM23_Msk /*!< Interrupt Mask on line 23 */ | |
6990 #define EXTI_IMR1_IM24_Pos (24U) | |
6991 #define EXTI_IMR1_IM24_Msk (0x1U << EXTI_IMR1_IM24_Pos) /*!< 0x01000000 */ | |
6992 #define EXTI_IMR1_IM24 EXTI_IMR1_IM24_Msk /*!< Interrupt Mask on line 24 */ | |
6993 #define EXTI_IMR1_IM25_Pos (25U) | |
6994 #define EXTI_IMR1_IM25_Msk (0x1U << EXTI_IMR1_IM25_Pos) /*!< 0x02000000 */ | |
6995 #define EXTI_IMR1_IM25 EXTI_IMR1_IM25_Msk /*!< Interrupt Mask on line 25 */ | |
6996 #define EXTI_IMR1_IM26_Pos (26U) | |
6997 #define EXTI_IMR1_IM26_Msk (0x1U << EXTI_IMR1_IM26_Pos) /*!< 0x04000000 */ | |
6998 #define EXTI_IMR1_IM26 EXTI_IMR1_IM26_Msk /*!< Interrupt Mask on line 26 */ | |
6999 #define EXTI_IMR1_IM27_Pos (27U) | |
7000 #define EXTI_IMR1_IM27_Msk (0x1U << EXTI_IMR1_IM27_Pos) /*!< 0x08000000 */ | |
7001 #define EXTI_IMR1_IM27 EXTI_IMR1_IM27_Msk /*!< Interrupt Mask on line 27 */ | |
7002 #define EXTI_IMR1_IM28_Pos (28U) | |
7003 #define EXTI_IMR1_IM28_Msk (0x1U << EXTI_IMR1_IM28_Pos) /*!< 0x10000000 */ | |
7004 #define EXTI_IMR1_IM28 EXTI_IMR1_IM28_Msk /*!< Interrupt Mask on line 28 */ | |
7005 #define EXTI_IMR1_IM29_Pos (29U) | |
7006 #define EXTI_IMR1_IM29_Msk (0x1U << EXTI_IMR1_IM29_Pos) /*!< 0x20000000 */ | |
7007 #define EXTI_IMR1_IM29 EXTI_IMR1_IM29_Msk /*!< Interrupt Mask on line 29 */ | |
7008 #define EXTI_IMR1_IM31_Pos (31U) | |
7009 #define EXTI_IMR1_IM31_Msk (0x1U << EXTI_IMR1_IM31_Pos) /*!< 0x80000000 */ | |
7010 #define EXTI_IMR1_IM31 EXTI_IMR1_IM31_Msk /*!< Interrupt Mask on line 31 */ | |
7011 #define EXTI_IMR1_IM_Pos (0U) | |
7012 #define EXTI_IMR1_IM_Msk (0xBFFFFFFFU << EXTI_IMR1_IM_Pos) /*!< 0xBFFFFFFF */ | |
7013 #define EXTI_IMR1_IM EXTI_IMR1_IM_Msk /*!< Interrupt Mask All */ | |
7014 | |
7015 /******************* Bit definition for EXTI_EMR1 register ******************/ | |
7016 #define EXTI_EMR1_EM0_Pos (0U) | |
7017 #define EXTI_EMR1_EM0_Msk (0x1U << EXTI_EMR1_EM0_Pos) /*!< 0x00000001 */ | |
7018 #define EXTI_EMR1_EM0 EXTI_EMR1_EM0_Msk /*!< Event Mask on line 0 */ | |
7019 #define EXTI_EMR1_EM1_Pos (1U) | |
7020 #define EXTI_EMR1_EM1_Msk (0x1U << EXTI_EMR1_EM1_Pos) /*!< 0x00000002 */ | |
7021 #define EXTI_EMR1_EM1 EXTI_EMR1_EM1_Msk /*!< Event Mask on line 1 */ | |
7022 #define EXTI_EMR1_EM2_Pos (2U) | |
7023 #define EXTI_EMR1_EM2_Msk (0x1U << EXTI_EMR1_EM2_Pos) /*!< 0x00000004 */ | |
7024 #define EXTI_EMR1_EM2 EXTI_EMR1_EM2_Msk /*!< Event Mask on line 2 */ | |
7025 #define EXTI_EMR1_EM3_Pos (3U) | |
7026 #define EXTI_EMR1_EM3_Msk (0x1U << EXTI_EMR1_EM3_Pos) /*!< 0x00000008 */ | |
7027 #define EXTI_EMR1_EM3 EXTI_EMR1_EM3_Msk /*!< Event Mask on line 3 */ | |
7028 #define EXTI_EMR1_EM4_Pos (4U) | |
7029 #define EXTI_EMR1_EM4_Msk (0x1U << EXTI_EMR1_EM4_Pos) /*!< 0x00000010 */ | |
7030 #define EXTI_EMR1_EM4 EXTI_EMR1_EM4_Msk /*!< Event Mask on line 4 */ | |
7031 #define EXTI_EMR1_EM5_Pos (5U) | |
7032 #define EXTI_EMR1_EM5_Msk (0x1U << EXTI_EMR1_EM5_Pos) /*!< 0x00000020 */ | |
7033 #define EXTI_EMR1_EM5 EXTI_EMR1_EM5_Msk /*!< Event Mask on line 5 */ | |
7034 #define EXTI_EMR1_EM6_Pos (6U) | |
7035 #define EXTI_EMR1_EM6_Msk (0x1U << EXTI_EMR1_EM6_Pos) /*!< 0x00000040 */ | |
7036 #define EXTI_EMR1_EM6 EXTI_EMR1_EM6_Msk /*!< Event Mask on line 6 */ | |
7037 #define EXTI_EMR1_EM7_Pos (7U) | |
7038 #define EXTI_EMR1_EM7_Msk (0x1U << EXTI_EMR1_EM7_Pos) /*!< 0x00000080 */ | |
7039 #define EXTI_EMR1_EM7 EXTI_EMR1_EM7_Msk /*!< Event Mask on line 7 */ | |
7040 #define EXTI_EMR1_EM8_Pos (8U) | |
7041 #define EXTI_EMR1_EM8_Msk (0x1U << EXTI_EMR1_EM8_Pos) /*!< 0x00000100 */ | |
7042 #define EXTI_EMR1_EM8 EXTI_EMR1_EM8_Msk /*!< Event Mask on line 8 */ | |
7043 #define EXTI_EMR1_EM9_Pos (9U) | |
7044 #define EXTI_EMR1_EM9_Msk (0x1U << EXTI_EMR1_EM9_Pos) /*!< 0x00000200 */ | |
7045 #define EXTI_EMR1_EM9 EXTI_EMR1_EM9_Msk /*!< Event Mask on line 9 */ | |
7046 #define EXTI_EMR1_EM10_Pos (10U) | |
7047 #define EXTI_EMR1_EM10_Msk (0x1U << EXTI_EMR1_EM10_Pos) /*!< 0x00000400 */ | |
7048 #define EXTI_EMR1_EM10 EXTI_EMR1_EM10_Msk /*!< Event Mask on line 10 */ | |
7049 #define EXTI_EMR1_EM11_Pos (11U) | |
7050 #define EXTI_EMR1_EM11_Msk (0x1U << EXTI_EMR1_EM11_Pos) /*!< 0x00000800 */ | |
7051 #define EXTI_EMR1_EM11 EXTI_EMR1_EM11_Msk /*!< Event Mask on line 11 */ | |
7052 #define EXTI_EMR1_EM12_Pos (12U) | |
7053 #define EXTI_EMR1_EM12_Msk (0x1U << EXTI_EMR1_EM12_Pos) /*!< 0x00001000 */ | |
7054 #define EXTI_EMR1_EM12 EXTI_EMR1_EM12_Msk /*!< Event Mask on line 12 */ | |
7055 #define EXTI_EMR1_EM13_Pos (13U) | |
7056 #define EXTI_EMR1_EM13_Msk (0x1U << EXTI_EMR1_EM13_Pos) /*!< 0x00002000 */ | |
7057 #define EXTI_EMR1_EM13 EXTI_EMR1_EM13_Msk /*!< Event Mask on line 13 */ | |
7058 #define EXTI_EMR1_EM14_Pos (14U) | |
7059 #define EXTI_EMR1_EM14_Msk (0x1U << EXTI_EMR1_EM14_Pos) /*!< 0x00004000 */ | |
7060 #define EXTI_EMR1_EM14 EXTI_EMR1_EM14_Msk /*!< Event Mask on line 14 */ | |
7061 #define EXTI_EMR1_EM15_Pos (15U) | |
7062 #define EXTI_EMR1_EM15_Msk (0x1U << EXTI_EMR1_EM15_Pos) /*!< 0x00008000 */ | |
7063 #define EXTI_EMR1_EM15 EXTI_EMR1_EM15_Msk /*!< Event Mask on line 15 */ | |
7064 #define EXTI_EMR1_EM16_Pos (16U) | |
7065 #define EXTI_EMR1_EM16_Msk (0x1U << EXTI_EMR1_EM16_Pos) /*!< 0x00010000 */ | |
7066 #define EXTI_EMR1_EM16 EXTI_EMR1_EM16_Msk /*!< Event Mask on line 16 */ | |
7067 #define EXTI_EMR1_EM17_Pos (17U) | |
7068 #define EXTI_EMR1_EM17_Msk (0x1U << EXTI_EMR1_EM17_Pos) /*!< 0x00020000 */ | |
7069 #define EXTI_EMR1_EM17 EXTI_EMR1_EM17_Msk /*!< Event Mask on line 17 */ | |
7070 #define EXTI_EMR1_EM18_Pos (18U) | |
7071 #define EXTI_EMR1_EM18_Msk (0x1U << EXTI_EMR1_EM18_Pos) /*!< 0x00040000 */ | |
7072 #define EXTI_EMR1_EM18 EXTI_EMR1_EM18_Msk /*!< Event Mask on line 18 */ | |
7073 #define EXTI_EMR1_EM19_Pos (19U) | |
7074 #define EXTI_EMR1_EM19_Msk (0x1U << EXTI_EMR1_EM19_Pos) /*!< 0x00080000 */ | |
7075 #define EXTI_EMR1_EM19 EXTI_EMR1_EM19_Msk /*!< Event Mask on line 19 */ | |
7076 #define EXTI_EMR1_EM20_Pos (20U) | |
7077 #define EXTI_EMR1_EM20_Msk (0x1U << EXTI_EMR1_EM20_Pos) /*!< 0x00100000 */ | |
7078 #define EXTI_EMR1_EM20 EXTI_EMR1_EM20_Msk /*!< Event Mask on line 20 */ | |
7079 #define EXTI_EMR1_EM21_Pos (21U) | |
7080 #define EXTI_EMR1_EM21_Msk (0x1U << EXTI_EMR1_EM21_Pos) /*!< 0x00200000 */ | |
7081 #define EXTI_EMR1_EM21 EXTI_EMR1_EM21_Msk /*!< Event Mask on line 21 */ | |
7082 #define EXTI_EMR1_EM22_Pos (22U) | |
7083 #define EXTI_EMR1_EM22_Msk (0x1U << EXTI_EMR1_EM22_Pos) /*!< 0x00400000 */ | |
7084 #define EXTI_EMR1_EM22 EXTI_EMR1_EM22_Msk /*!< Event Mask on line 22 */ | |
7085 #define EXTI_EMR1_EM23_Pos (23U) | |
7086 #define EXTI_EMR1_EM23_Msk (0x1U << EXTI_EMR1_EM23_Pos) /*!< 0x00800000 */ | |
7087 #define EXTI_EMR1_EM23 EXTI_EMR1_EM23_Msk /*!< Event Mask on line 23 */ | |
7088 #define EXTI_EMR1_EM24_Pos (24U) | |
7089 #define EXTI_EMR1_EM24_Msk (0x1U << EXTI_EMR1_EM24_Pos) /*!< 0x01000000 */ | |
7090 #define EXTI_EMR1_EM24 EXTI_EMR1_EM24_Msk /*!< Event Mask on line 24 */ | |
7091 #define EXTI_EMR1_EM25_Pos (25U) | |
7092 #define EXTI_EMR1_EM25_Msk (0x1U << EXTI_EMR1_EM25_Pos) /*!< 0x02000000 */ | |
7093 #define EXTI_EMR1_EM25 EXTI_EMR1_EM25_Msk /*!< Event Mask on line 25 */ | |
7094 #define EXTI_EMR1_EM26_Pos (26U) | |
7095 #define EXTI_EMR1_EM26_Msk (0x1U << EXTI_EMR1_EM26_Pos) /*!< 0x04000000 */ | |
7096 #define EXTI_EMR1_EM26 EXTI_EMR1_EM26_Msk /*!< Event Mask on line 26 */ | |
7097 #define EXTI_EMR1_EM27_Pos (27U) | |
7098 #define EXTI_EMR1_EM27_Msk (0x1U << EXTI_EMR1_EM27_Pos) /*!< 0x08000000 */ | |
7099 #define EXTI_EMR1_EM27 EXTI_EMR1_EM27_Msk /*!< Event Mask on line 27 */ | |
7100 #define EXTI_EMR1_EM28_Pos (28U) | |
7101 #define EXTI_EMR1_EM28_Msk (0x1U << EXTI_EMR1_EM28_Pos) /*!< 0x10000000 */ | |
7102 #define EXTI_EMR1_EM28 EXTI_EMR1_EM28_Msk /*!< Event Mask on line 28 */ | |
7103 #define EXTI_EMR1_EM29_Pos (29U) | |
7104 #define EXTI_EMR1_EM29_Msk (0x1U << EXTI_EMR1_EM29_Pos) /*!< 0x20000000 */ | |
7105 #define EXTI_EMR1_EM29 EXTI_EMR1_EM29_Msk /*!< Event Mask on line 29 */ | |
7106 #define EXTI_EMR1_EM31_Pos (31U) | |
7107 #define EXTI_EMR1_EM31_Msk (0x1U << EXTI_EMR1_EM31_Pos) /*!< 0x80000000 */ | |
7108 #define EXTI_EMR1_EM31 EXTI_EMR1_EM31_Msk /*!< Event Mask on line 31 */ | |
7109 | |
7110 /****************** Bit definition for EXTI_RTSR1 register ******************/ | |
7111 #define EXTI_RTSR1_RT0_Pos (0U) | |
7112 #define EXTI_RTSR1_RT0_Msk (0x1U << EXTI_RTSR1_RT0_Pos) /*!< 0x00000001 */ | |
7113 #define EXTI_RTSR1_RT0 EXTI_RTSR1_RT0_Msk /*!< Rising trigger event configuration bit of line 0 */ | |
7114 #define EXTI_RTSR1_RT1_Pos (1U) | |
7115 #define EXTI_RTSR1_RT1_Msk (0x1U << EXTI_RTSR1_RT1_Pos) /*!< 0x00000002 */ | |
7116 #define EXTI_RTSR1_RT1 EXTI_RTSR1_RT1_Msk /*!< Rising trigger event configuration bit of line 1 */ | |
7117 #define EXTI_RTSR1_RT2_Pos (2U) | |
7118 #define EXTI_RTSR1_RT2_Msk (0x1U << EXTI_RTSR1_RT2_Pos) /*!< 0x00000004 */ | |
7119 #define EXTI_RTSR1_RT2 EXTI_RTSR1_RT2_Msk /*!< Rising trigger event configuration bit of line 2 */ | |
7120 #define EXTI_RTSR1_RT3_Pos (3U) | |
7121 #define EXTI_RTSR1_RT3_Msk (0x1U << EXTI_RTSR1_RT3_Pos) /*!< 0x00000008 */ | |
7122 #define EXTI_RTSR1_RT3 EXTI_RTSR1_RT3_Msk /*!< Rising trigger event configuration bit of line 3 */ | |
7123 #define EXTI_RTSR1_RT4_Pos (4U) | |
7124 #define EXTI_RTSR1_RT4_Msk (0x1U << EXTI_RTSR1_RT4_Pos) /*!< 0x00000010 */ | |
7125 #define EXTI_RTSR1_RT4 EXTI_RTSR1_RT4_Msk /*!< Rising trigger event configuration bit of line 4 */ | |
7126 #define EXTI_RTSR1_RT5_Pos (5U) | |
7127 #define EXTI_RTSR1_RT5_Msk (0x1U << EXTI_RTSR1_RT5_Pos) /*!< 0x00000020 */ | |
7128 #define EXTI_RTSR1_RT5 EXTI_RTSR1_RT5_Msk /*!< Rising trigger event configuration bit of line 5 */ | |
7129 #define EXTI_RTSR1_RT6_Pos (6U) | |
7130 #define EXTI_RTSR1_RT6_Msk (0x1U << EXTI_RTSR1_RT6_Pos) /*!< 0x00000040 */ | |
7131 #define EXTI_RTSR1_RT6 EXTI_RTSR1_RT6_Msk /*!< Rising trigger event configuration bit of line 6 */ | |
7132 #define EXTI_RTSR1_RT7_Pos (7U) | |
7133 #define EXTI_RTSR1_RT7_Msk (0x1U << EXTI_RTSR1_RT7_Pos) /*!< 0x00000080 */ | |
7134 #define EXTI_RTSR1_RT7 EXTI_RTSR1_RT7_Msk /*!< Rising trigger event configuration bit of line 7 */ | |
7135 #define EXTI_RTSR1_RT8_Pos (8U) | |
7136 #define EXTI_RTSR1_RT8_Msk (0x1U << EXTI_RTSR1_RT8_Pos) /*!< 0x00000100 */ | |
7137 #define EXTI_RTSR1_RT8 EXTI_RTSR1_RT8_Msk /*!< Rising trigger event configuration bit of line 8 */ | |
7138 #define EXTI_RTSR1_RT9_Pos (9U) | |
7139 #define EXTI_RTSR1_RT9_Msk (0x1U << EXTI_RTSR1_RT9_Pos) /*!< 0x00000200 */ | |
7140 #define EXTI_RTSR1_RT9 EXTI_RTSR1_RT9_Msk /*!< Rising trigger event configuration bit of line 9 */ | |
7141 #define EXTI_RTSR1_RT10_Pos (10U) | |
7142 #define EXTI_RTSR1_RT10_Msk (0x1U << EXTI_RTSR1_RT10_Pos) /*!< 0x00000400 */ | |
7143 #define EXTI_RTSR1_RT10 EXTI_RTSR1_RT10_Msk /*!< Rising trigger event configuration bit of line 10 */ | |
7144 #define EXTI_RTSR1_RT11_Pos (11U) | |
7145 #define EXTI_RTSR1_RT11_Msk (0x1U << EXTI_RTSR1_RT11_Pos) /*!< 0x00000800 */ | |
7146 #define EXTI_RTSR1_RT11 EXTI_RTSR1_RT11_Msk /*!< Rising trigger event configuration bit of line 11 */ | |
7147 #define EXTI_RTSR1_RT12_Pos (12U) | |
7148 #define EXTI_RTSR1_RT12_Msk (0x1U << EXTI_RTSR1_RT12_Pos) /*!< 0x00001000 */ | |
7149 #define EXTI_RTSR1_RT12 EXTI_RTSR1_RT12_Msk /*!< Rising trigger event configuration bit of line 12 */ | |
7150 #define EXTI_RTSR1_RT13_Pos (13U) | |
7151 #define EXTI_RTSR1_RT13_Msk (0x1U << EXTI_RTSR1_RT13_Pos) /*!< 0x00002000 */ | |
7152 #define EXTI_RTSR1_RT13 EXTI_RTSR1_RT13_Msk /*!< Rising trigger event configuration bit of line 13 */ | |
7153 #define EXTI_RTSR1_RT14_Pos (14U) | |
7154 #define EXTI_RTSR1_RT14_Msk (0x1U << EXTI_RTSR1_RT14_Pos) /*!< 0x00004000 */ | |
7155 #define EXTI_RTSR1_RT14 EXTI_RTSR1_RT14_Msk /*!< Rising trigger event configuration bit of line 14 */ | |
7156 #define EXTI_RTSR1_RT15_Pos (15U) | |
7157 #define EXTI_RTSR1_RT15_Msk (0x1U << EXTI_RTSR1_RT15_Pos) /*!< 0x00008000 */ | |
7158 #define EXTI_RTSR1_RT15 EXTI_RTSR1_RT15_Msk /*!< Rising trigger event configuration bit of line 15 */ | |
7159 #define EXTI_RTSR1_RT16_Pos (16U) | |
7160 #define EXTI_RTSR1_RT16_Msk (0x1U << EXTI_RTSR1_RT16_Pos) /*!< 0x00010000 */ | |
7161 #define EXTI_RTSR1_RT16 EXTI_RTSR1_RT16_Msk /*!< Rising trigger event configuration bit of line 16 */ | |
7162 #define EXTI_RTSR1_RT18_Pos (18U) | |
7163 #define EXTI_RTSR1_RT18_Msk (0x1U << EXTI_RTSR1_RT18_Pos) /*!< 0x00040000 */ | |
7164 #define EXTI_RTSR1_RT18 EXTI_RTSR1_RT18_Msk /*!< Rising trigger event configuration bit of line 18 */ | |
7165 #define EXTI_RTSR1_RT19_Pos (19U) | |
7166 #define EXTI_RTSR1_RT19_Msk (0x1U << EXTI_RTSR1_RT19_Pos) /*!< 0x00080000 */ | |
7167 #define EXTI_RTSR1_RT19 EXTI_RTSR1_RT19_Msk /*!< Rising trigger event configuration bit of line 19 */ | |
7168 #define EXTI_RTSR1_RT20_Pos (20U) | |
7169 #define EXTI_RTSR1_RT20_Msk (0x1U << EXTI_RTSR1_RT20_Pos) /*!< 0x00100000 */ | |
7170 #define EXTI_RTSR1_RT20 EXTI_RTSR1_RT20_Msk /*!< Rising trigger event configuration bit of line 20 */ | |
7171 #define EXTI_RTSR1_RT21_Pos (21U) | |
7172 #define EXTI_RTSR1_RT21_Msk (0x1U << EXTI_RTSR1_RT21_Pos) /*!< 0x00200000 */ | |
7173 #define EXTI_RTSR1_RT21 EXTI_RTSR1_RT21_Msk /*!< Rising trigger event configuration bit of line 21 */ | |
7174 #define EXTI_RTSR1_RT22_Pos (22U) | |
7175 #define EXTI_RTSR1_RT22_Msk (0x1U << EXTI_RTSR1_RT22_Pos) /*!< 0x00400000 */ | |
7176 #define EXTI_RTSR1_RT22 EXTI_RTSR1_RT22_Msk /*!< Rising trigger event configuration bit of line 22 */ | |
7177 | |
7178 /****************** Bit definition for EXTI_FTSR1 register ******************/ | |
7179 #define EXTI_FTSR1_FT0_Pos (0U) | |
7180 #define EXTI_FTSR1_FT0_Msk (0x1U << EXTI_FTSR1_FT0_Pos) /*!< 0x00000001 */ | |
7181 #define EXTI_FTSR1_FT0 EXTI_FTSR1_FT0_Msk /*!< Falling trigger event configuration bit of line 0 */ | |
7182 #define EXTI_FTSR1_FT1_Pos (1U) | |
7183 #define EXTI_FTSR1_FT1_Msk (0x1U << EXTI_FTSR1_FT1_Pos) /*!< 0x00000002 */ | |
7184 #define EXTI_FTSR1_FT1 EXTI_FTSR1_FT1_Msk /*!< Falling trigger event configuration bit of line 1 */ | |
7185 #define EXTI_FTSR1_FT2_Pos (2U) | |
7186 #define EXTI_FTSR1_FT2_Msk (0x1U << EXTI_FTSR1_FT2_Pos) /*!< 0x00000004 */ | |
7187 #define EXTI_FTSR1_FT2 EXTI_FTSR1_FT2_Msk /*!< Falling trigger event configuration bit of line 2 */ | |
7188 #define EXTI_FTSR1_FT3_Pos (3U) | |
7189 #define EXTI_FTSR1_FT3_Msk (0x1U << EXTI_FTSR1_FT3_Pos) /*!< 0x00000008 */ | |
7190 #define EXTI_FTSR1_FT3 EXTI_FTSR1_FT3_Msk /*!< Falling trigger event configuration bit of line 3 */ | |
7191 #define EXTI_FTSR1_FT4_Pos (4U) | |
7192 #define EXTI_FTSR1_FT4_Msk (0x1U << EXTI_FTSR1_FT4_Pos) /*!< 0x00000010 */ | |
7193 #define EXTI_FTSR1_FT4 EXTI_FTSR1_FT4_Msk /*!< Falling trigger event configuration bit of line 4 */ | |
7194 #define EXTI_FTSR1_FT5_Pos (5U) | |
7195 #define EXTI_FTSR1_FT5_Msk (0x1U << EXTI_FTSR1_FT5_Pos) /*!< 0x00000020 */ | |
7196 #define EXTI_FTSR1_FT5 EXTI_FTSR1_FT5_Msk /*!< Falling trigger event configuration bit of line 5 */ | |
7197 #define EXTI_FTSR1_FT6_Pos (6U) | |
7198 #define EXTI_FTSR1_FT6_Msk (0x1U << EXTI_FTSR1_FT6_Pos) /*!< 0x00000040 */ | |
7199 #define EXTI_FTSR1_FT6 EXTI_FTSR1_FT6_Msk /*!< Falling trigger event configuration bit of line 6 */ | |
7200 #define EXTI_FTSR1_FT7_Pos (7U) | |
7201 #define EXTI_FTSR1_FT7_Msk (0x1U << EXTI_FTSR1_FT7_Pos) /*!< 0x00000080 */ | |
7202 #define EXTI_FTSR1_FT7 EXTI_FTSR1_FT7_Msk /*!< Falling trigger event configuration bit of line 7 */ | |
7203 #define EXTI_FTSR1_FT8_Pos (8U) | |
7204 #define EXTI_FTSR1_FT8_Msk (0x1U << EXTI_FTSR1_FT8_Pos) /*!< 0x00000100 */ | |
7205 #define EXTI_FTSR1_FT8 EXTI_FTSR1_FT8_Msk /*!< Falling trigger event configuration bit of line 8 */ | |
7206 #define EXTI_FTSR1_FT9_Pos (9U) | |
7207 #define EXTI_FTSR1_FT9_Msk (0x1U << EXTI_FTSR1_FT9_Pos) /*!< 0x00000200 */ | |
7208 #define EXTI_FTSR1_FT9 EXTI_FTSR1_FT9_Msk /*!< Falling trigger event configuration bit of line 9 */ | |
7209 #define EXTI_FTSR1_FT10_Pos (10U) | |
7210 #define EXTI_FTSR1_FT10_Msk (0x1U << EXTI_FTSR1_FT10_Pos) /*!< 0x00000400 */ | |
7211 #define EXTI_FTSR1_FT10 EXTI_FTSR1_FT10_Msk /*!< Falling trigger event configuration bit of line 10 */ | |
7212 #define EXTI_FTSR1_FT11_Pos (11U) | |
7213 #define EXTI_FTSR1_FT11_Msk (0x1U << EXTI_FTSR1_FT11_Pos) /*!< 0x00000800 */ | |
7214 #define EXTI_FTSR1_FT11 EXTI_FTSR1_FT11_Msk /*!< Falling trigger event configuration bit of line 11 */ | |
7215 #define EXTI_FTSR1_FT12_Pos (12U) | |
7216 #define EXTI_FTSR1_FT12_Msk (0x1U << EXTI_FTSR1_FT12_Pos) /*!< 0x00001000 */ | |
7217 #define EXTI_FTSR1_FT12 EXTI_FTSR1_FT12_Msk /*!< Falling trigger event configuration bit of line 12 */ | |
7218 #define EXTI_FTSR1_FT13_Pos (13U) | |
7219 #define EXTI_FTSR1_FT13_Msk (0x1U << EXTI_FTSR1_FT13_Pos) /*!< 0x00002000 */ | |
7220 #define EXTI_FTSR1_FT13 EXTI_FTSR1_FT13_Msk /*!< Falling trigger event configuration bit of line 13 */ | |
7221 #define EXTI_FTSR1_FT14_Pos (14U) | |
7222 #define EXTI_FTSR1_FT14_Msk (0x1U << EXTI_FTSR1_FT14_Pos) /*!< 0x00004000 */ | |
7223 #define EXTI_FTSR1_FT14 EXTI_FTSR1_FT14_Msk /*!< Falling trigger event configuration bit of line 14 */ | |
7224 #define EXTI_FTSR1_FT15_Pos (15U) | |
7225 #define EXTI_FTSR1_FT15_Msk (0x1U << EXTI_FTSR1_FT15_Pos) /*!< 0x00008000 */ | |
7226 #define EXTI_FTSR1_FT15 EXTI_FTSR1_FT15_Msk /*!< Falling trigger event configuration bit of line 15 */ | |
7227 #define EXTI_FTSR1_FT16_Pos (16U) | |
7228 #define EXTI_FTSR1_FT16_Msk (0x1U << EXTI_FTSR1_FT16_Pos) /*!< 0x00010000 */ | |
7229 #define EXTI_FTSR1_FT16 EXTI_FTSR1_FT16_Msk /*!< Falling trigger event configuration bit of line 16 */ | |
7230 #define EXTI_FTSR1_FT18_Pos (18U) | |
7231 #define EXTI_FTSR1_FT18_Msk (0x1U << EXTI_FTSR1_FT18_Pos) /*!< 0x00040000 */ | |
7232 #define EXTI_FTSR1_FT18 EXTI_FTSR1_FT18_Msk /*!< Falling trigger event configuration bit of line 18 */ | |
7233 #define EXTI_FTSR1_FT19_Pos (19U) | |
7234 #define EXTI_FTSR1_FT19_Msk (0x1U << EXTI_FTSR1_FT19_Pos) /*!< 0x00080000 */ | |
7235 #define EXTI_FTSR1_FT19 EXTI_FTSR1_FT19_Msk /*!< Falling trigger event configuration bit of line 19 */ | |
7236 #define EXTI_FTSR1_FT20_Pos (20U) | |
7237 #define EXTI_FTSR1_FT20_Msk (0x1U << EXTI_FTSR1_FT20_Pos) /*!< 0x00100000 */ | |
7238 #define EXTI_FTSR1_FT20 EXTI_FTSR1_FT20_Msk /*!< Falling trigger event configuration bit of line 20 */ | |
7239 #define EXTI_FTSR1_FT21_Pos (21U) | |
7240 #define EXTI_FTSR1_FT21_Msk (0x1U << EXTI_FTSR1_FT21_Pos) /*!< 0x00200000 */ | |
7241 #define EXTI_FTSR1_FT21 EXTI_FTSR1_FT21_Msk /*!< Falling trigger event configuration bit of line 21 */ | |
7242 #define EXTI_FTSR1_FT22_Pos (22U) | |
7243 #define EXTI_FTSR1_FT22_Msk (0x1U << EXTI_FTSR1_FT22_Pos) /*!< 0x00400000 */ | |
7244 #define EXTI_FTSR1_FT22 EXTI_FTSR1_FT22_Msk /*!< Falling trigger event configuration bit of line 22 */ | |
7245 | |
7246 /****************** Bit definition for EXTI_SWIER1 register *****************/ | |
7247 #define EXTI_SWIER1_SWI0_Pos (0U) | |
7248 #define EXTI_SWIER1_SWI0_Msk (0x1U << EXTI_SWIER1_SWI0_Pos) /*!< 0x00000001 */ | |
7249 #define EXTI_SWIER1_SWI0 EXTI_SWIER1_SWI0_Msk /*!< Software Interrupt on line 0 */ | |
7250 #define EXTI_SWIER1_SWI1_Pos (1U) | |
7251 #define EXTI_SWIER1_SWI1_Msk (0x1U << EXTI_SWIER1_SWI1_Pos) /*!< 0x00000002 */ | |
7252 #define EXTI_SWIER1_SWI1 EXTI_SWIER1_SWI1_Msk /*!< Software Interrupt on line 1 */ | |
7253 #define EXTI_SWIER1_SWI2_Pos (2U) | |
7254 #define EXTI_SWIER1_SWI2_Msk (0x1U << EXTI_SWIER1_SWI2_Pos) /*!< 0x00000004 */ | |
7255 #define EXTI_SWIER1_SWI2 EXTI_SWIER1_SWI2_Msk /*!< Software Interrupt on line 2 */ | |
7256 #define EXTI_SWIER1_SWI3_Pos (3U) | |
7257 #define EXTI_SWIER1_SWI3_Msk (0x1U << EXTI_SWIER1_SWI3_Pos) /*!< 0x00000008 */ | |
7258 #define EXTI_SWIER1_SWI3 EXTI_SWIER1_SWI3_Msk /*!< Software Interrupt on line 3 */ | |
7259 #define EXTI_SWIER1_SWI4_Pos (4U) | |
7260 #define EXTI_SWIER1_SWI4_Msk (0x1U << EXTI_SWIER1_SWI4_Pos) /*!< 0x00000010 */ | |
7261 #define EXTI_SWIER1_SWI4 EXTI_SWIER1_SWI4_Msk /*!< Software Interrupt on line 4 */ | |
7262 #define EXTI_SWIER1_SWI5_Pos (5U) | |
7263 #define EXTI_SWIER1_SWI5_Msk (0x1U << EXTI_SWIER1_SWI5_Pos) /*!< 0x00000020 */ | |
7264 #define EXTI_SWIER1_SWI5 EXTI_SWIER1_SWI5_Msk /*!< Software Interrupt on line 5 */ | |
7265 #define EXTI_SWIER1_SWI6_Pos (6U) | |
7266 #define EXTI_SWIER1_SWI6_Msk (0x1U << EXTI_SWIER1_SWI6_Pos) /*!< 0x00000040 */ | |
7267 #define EXTI_SWIER1_SWI6 EXTI_SWIER1_SWI6_Msk /*!< Software Interrupt on line 6 */ | |
7268 #define EXTI_SWIER1_SWI7_Pos (7U) | |
7269 #define EXTI_SWIER1_SWI7_Msk (0x1U << EXTI_SWIER1_SWI7_Pos) /*!< 0x00000080 */ | |
7270 #define EXTI_SWIER1_SWI7 EXTI_SWIER1_SWI7_Msk /*!< Software Interrupt on line 7 */ | |
7271 #define EXTI_SWIER1_SWI8_Pos (8U) | |
7272 #define EXTI_SWIER1_SWI8_Msk (0x1U << EXTI_SWIER1_SWI8_Pos) /*!< 0x00000100 */ | |
7273 #define EXTI_SWIER1_SWI8 EXTI_SWIER1_SWI8_Msk /*!< Software Interrupt on line 8 */ | |
7274 #define EXTI_SWIER1_SWI9_Pos (9U) | |
7275 #define EXTI_SWIER1_SWI9_Msk (0x1U << EXTI_SWIER1_SWI9_Pos) /*!< 0x00000200 */ | |
7276 #define EXTI_SWIER1_SWI9 EXTI_SWIER1_SWI9_Msk /*!< Software Interrupt on line 9 */ | |
7277 #define EXTI_SWIER1_SWI10_Pos (10U) | |
7278 #define EXTI_SWIER1_SWI10_Msk (0x1U << EXTI_SWIER1_SWI10_Pos) /*!< 0x00000400 */ | |
7279 #define EXTI_SWIER1_SWI10 EXTI_SWIER1_SWI10_Msk /*!< Software Interrupt on line 10 */ | |
7280 #define EXTI_SWIER1_SWI11_Pos (11U) | |
7281 #define EXTI_SWIER1_SWI11_Msk (0x1U << EXTI_SWIER1_SWI11_Pos) /*!< 0x00000800 */ | |
7282 #define EXTI_SWIER1_SWI11 EXTI_SWIER1_SWI11_Msk /*!< Software Interrupt on line 11 */ | |
7283 #define EXTI_SWIER1_SWI12_Pos (12U) | |
7284 #define EXTI_SWIER1_SWI12_Msk (0x1U << EXTI_SWIER1_SWI12_Pos) /*!< 0x00001000 */ | |
7285 #define EXTI_SWIER1_SWI12 EXTI_SWIER1_SWI12_Msk /*!< Software Interrupt on line 12 */ | |
7286 #define EXTI_SWIER1_SWI13_Pos (13U) | |
7287 #define EXTI_SWIER1_SWI13_Msk (0x1U << EXTI_SWIER1_SWI13_Pos) /*!< 0x00002000 */ | |
7288 #define EXTI_SWIER1_SWI13 EXTI_SWIER1_SWI13_Msk /*!< Software Interrupt on line 13 */ | |
7289 #define EXTI_SWIER1_SWI14_Pos (14U) | |
7290 #define EXTI_SWIER1_SWI14_Msk (0x1U << EXTI_SWIER1_SWI14_Pos) /*!< 0x00004000 */ | |
7291 #define EXTI_SWIER1_SWI14 EXTI_SWIER1_SWI14_Msk /*!< Software Interrupt on line 14 */ | |
7292 #define EXTI_SWIER1_SWI15_Pos (15U) | |
7293 #define EXTI_SWIER1_SWI15_Msk (0x1U << EXTI_SWIER1_SWI15_Pos) /*!< 0x00008000 */ | |
7294 #define EXTI_SWIER1_SWI15 EXTI_SWIER1_SWI15_Msk /*!< Software Interrupt on line 15 */ | |
7295 #define EXTI_SWIER1_SWI16_Pos (16U) | |
7296 #define EXTI_SWIER1_SWI16_Msk (0x1U << EXTI_SWIER1_SWI16_Pos) /*!< 0x00010000 */ | |
7297 #define EXTI_SWIER1_SWI16 EXTI_SWIER1_SWI16_Msk /*!< Software Interrupt on line 16 */ | |
7298 #define EXTI_SWIER1_SWI18_Pos (18U) | |
7299 #define EXTI_SWIER1_SWI18_Msk (0x1U << EXTI_SWIER1_SWI18_Pos) /*!< 0x00040000 */ | |
7300 #define EXTI_SWIER1_SWI18 EXTI_SWIER1_SWI18_Msk /*!< Software Interrupt on line 18 */ | |
7301 #define EXTI_SWIER1_SWI19_Pos (19U) | |
7302 #define EXTI_SWIER1_SWI19_Msk (0x1U << EXTI_SWIER1_SWI19_Pos) /*!< 0x00080000 */ | |
7303 #define EXTI_SWIER1_SWI19 EXTI_SWIER1_SWI19_Msk /*!< Software Interrupt on line 19 */ | |
7304 #define EXTI_SWIER1_SWI20_Pos (20U) | |
7305 #define EXTI_SWIER1_SWI20_Msk (0x1U << EXTI_SWIER1_SWI20_Pos) /*!< 0x00100000 */ | |
7306 #define EXTI_SWIER1_SWI20 EXTI_SWIER1_SWI20_Msk /*!< Software Interrupt on line 20 */ | |
7307 #define EXTI_SWIER1_SWI21_Pos (21U) | |
7308 #define EXTI_SWIER1_SWI21_Msk (0x1U << EXTI_SWIER1_SWI21_Pos) /*!< 0x00200000 */ | |
7309 #define EXTI_SWIER1_SWI21 EXTI_SWIER1_SWI21_Msk /*!< Software Interrupt on line 21 */ | |
7310 #define EXTI_SWIER1_SWI22_Pos (22U) | |
7311 #define EXTI_SWIER1_SWI22_Msk (0x1U << EXTI_SWIER1_SWI22_Pos) /*!< 0x00400000 */ | |
7312 #define EXTI_SWIER1_SWI22 EXTI_SWIER1_SWI22_Msk /*!< Software Interrupt on line 22 */ | |
7313 | |
7314 /******************* Bit definition for EXTI_PR1 register *******************/ | |
7315 #define EXTI_PR1_PIF0_Pos (0U) | |
7316 #define EXTI_PR1_PIF0_Msk (0x1U << EXTI_PR1_PIF0_Pos) /*!< 0x00000001 */ | |
7317 #define EXTI_PR1_PIF0 EXTI_PR1_PIF0_Msk /*!< Pending bit for line 0 */ | |
7318 #define EXTI_PR1_PIF1_Pos (1U) | |
7319 #define EXTI_PR1_PIF1_Msk (0x1U << EXTI_PR1_PIF1_Pos) /*!< 0x00000002 */ | |
7320 #define EXTI_PR1_PIF1 EXTI_PR1_PIF1_Msk /*!< Pending bit for line 1 */ | |
7321 #define EXTI_PR1_PIF2_Pos (2U) | |
7322 #define EXTI_PR1_PIF2_Msk (0x1U << EXTI_PR1_PIF2_Pos) /*!< 0x00000004 */ | |
7323 #define EXTI_PR1_PIF2 EXTI_PR1_PIF2_Msk /*!< Pending bit for line 2 */ | |
7324 #define EXTI_PR1_PIF3_Pos (3U) | |
7325 #define EXTI_PR1_PIF3_Msk (0x1U << EXTI_PR1_PIF3_Pos) /*!< 0x00000008 */ | |
7326 #define EXTI_PR1_PIF3 EXTI_PR1_PIF3_Msk /*!< Pending bit for line 3 */ | |
7327 #define EXTI_PR1_PIF4_Pos (4U) | |
7328 #define EXTI_PR1_PIF4_Msk (0x1U << EXTI_PR1_PIF4_Pos) /*!< 0x00000010 */ | |
7329 #define EXTI_PR1_PIF4 EXTI_PR1_PIF4_Msk /*!< Pending bit for line 4 */ | |
7330 #define EXTI_PR1_PIF5_Pos (5U) | |
7331 #define EXTI_PR1_PIF5_Msk (0x1U << EXTI_PR1_PIF5_Pos) /*!< 0x00000020 */ | |
7332 #define EXTI_PR1_PIF5 EXTI_PR1_PIF5_Msk /*!< Pending bit for line 5 */ | |
7333 #define EXTI_PR1_PIF6_Pos (6U) | |
7334 #define EXTI_PR1_PIF6_Msk (0x1U << EXTI_PR1_PIF6_Pos) /*!< 0x00000040 */ | |
7335 #define EXTI_PR1_PIF6 EXTI_PR1_PIF6_Msk /*!< Pending bit for line 6 */ | |
7336 #define EXTI_PR1_PIF7_Pos (7U) | |
7337 #define EXTI_PR1_PIF7_Msk (0x1U << EXTI_PR1_PIF7_Pos) /*!< 0x00000080 */ | |
7338 #define EXTI_PR1_PIF7 EXTI_PR1_PIF7_Msk /*!< Pending bit for line 7 */ | |
7339 #define EXTI_PR1_PIF8_Pos (8U) | |
7340 #define EXTI_PR1_PIF8_Msk (0x1U << EXTI_PR1_PIF8_Pos) /*!< 0x00000100 */ | |
7341 #define EXTI_PR1_PIF8 EXTI_PR1_PIF8_Msk /*!< Pending bit for line 8 */ | |
7342 #define EXTI_PR1_PIF9_Pos (9U) | |
7343 #define EXTI_PR1_PIF9_Msk (0x1U << EXTI_PR1_PIF9_Pos) /*!< 0x00000200 */ | |
7344 #define EXTI_PR1_PIF9 EXTI_PR1_PIF9_Msk /*!< Pending bit for line 9 */ | |
7345 #define EXTI_PR1_PIF10_Pos (10U) | |
7346 #define EXTI_PR1_PIF10_Msk (0x1U << EXTI_PR1_PIF10_Pos) /*!< 0x00000400 */ | |
7347 #define EXTI_PR1_PIF10 EXTI_PR1_PIF10_Msk /*!< Pending bit for line 10 */ | |
7348 #define EXTI_PR1_PIF11_Pos (11U) | |
7349 #define EXTI_PR1_PIF11_Msk (0x1U << EXTI_PR1_PIF11_Pos) /*!< 0x00000800 */ | |
7350 #define EXTI_PR1_PIF11 EXTI_PR1_PIF11_Msk /*!< Pending bit for line 11 */ | |
7351 #define EXTI_PR1_PIF12_Pos (12U) | |
7352 #define EXTI_PR1_PIF12_Msk (0x1U << EXTI_PR1_PIF12_Pos) /*!< 0x00001000 */ | |
7353 #define EXTI_PR1_PIF12 EXTI_PR1_PIF12_Msk /*!< Pending bit for line 12 */ | |
7354 #define EXTI_PR1_PIF13_Pos (13U) | |
7355 #define EXTI_PR1_PIF13_Msk (0x1U << EXTI_PR1_PIF13_Pos) /*!< 0x00002000 */ | |
7356 #define EXTI_PR1_PIF13 EXTI_PR1_PIF13_Msk /*!< Pending bit for line 13 */ | |
7357 #define EXTI_PR1_PIF14_Pos (14U) | |
7358 #define EXTI_PR1_PIF14_Msk (0x1U << EXTI_PR1_PIF14_Pos) /*!< 0x00004000 */ | |
7359 #define EXTI_PR1_PIF14 EXTI_PR1_PIF14_Msk /*!< Pending bit for line 14 */ | |
7360 #define EXTI_PR1_PIF15_Pos (15U) | |
7361 #define EXTI_PR1_PIF15_Msk (0x1U << EXTI_PR1_PIF15_Pos) /*!< 0x00008000 */ | |
7362 #define EXTI_PR1_PIF15 EXTI_PR1_PIF15_Msk /*!< Pending bit for line 15 */ | |
7363 #define EXTI_PR1_PIF16_Pos (16U) | |
7364 #define EXTI_PR1_PIF16_Msk (0x1U << EXTI_PR1_PIF16_Pos) /*!< 0x00010000 */ | |
7365 #define EXTI_PR1_PIF16 EXTI_PR1_PIF16_Msk /*!< Pending bit for line 16 */ | |
7366 #define EXTI_PR1_PIF18_Pos (18U) | |
7367 #define EXTI_PR1_PIF18_Msk (0x1U << EXTI_PR1_PIF18_Pos) /*!< 0x00040000 */ | |
7368 #define EXTI_PR1_PIF18 EXTI_PR1_PIF18_Msk /*!< Pending bit for line 18 */ | |
7369 #define EXTI_PR1_PIF19_Pos (19U) | |
7370 #define EXTI_PR1_PIF19_Msk (0x1U << EXTI_PR1_PIF19_Pos) /*!< 0x00080000 */ | |
7371 #define EXTI_PR1_PIF19 EXTI_PR1_PIF19_Msk /*!< Pending bit for line 19 */ | |
7372 #define EXTI_PR1_PIF20_Pos (20U) | |
7373 #define EXTI_PR1_PIF20_Msk (0x1U << EXTI_PR1_PIF20_Pos) /*!< 0x00100000 */ | |
7374 #define EXTI_PR1_PIF20 EXTI_PR1_PIF20_Msk /*!< Pending bit for line 20 */ | |
7375 #define EXTI_PR1_PIF21_Pos (21U) | |
7376 #define EXTI_PR1_PIF21_Msk (0x1U << EXTI_PR1_PIF21_Pos) /*!< 0x00200000 */ | |
7377 #define EXTI_PR1_PIF21 EXTI_PR1_PIF21_Msk /*!< Pending bit for line 21 */ | |
7378 #define EXTI_PR1_PIF22_Pos (22U) | |
7379 #define EXTI_PR1_PIF22_Msk (0x1U << EXTI_PR1_PIF22_Pos) /*!< 0x00400000 */ | |
7380 #define EXTI_PR1_PIF22 EXTI_PR1_PIF22_Msk /*!< Pending bit for line 22 */ | |
7381 | |
7382 /******************* Bit definition for EXTI_IMR2 register ******************/ | |
7383 #define EXTI_IMR2_IM32_Pos (0U) | |
7384 #define EXTI_IMR2_IM32_Msk (0x1U << EXTI_IMR2_IM32_Pos) /*!< 0x00000001 */ | |
7385 #define EXTI_IMR2_IM32 EXTI_IMR2_IM32_Msk /*!< Interrupt Mask on line 32 */ | |
7386 #define EXTI_IMR2_IM33_Pos (1U) | |
7387 #define EXTI_IMR2_IM33_Msk (0x1U << EXTI_IMR2_IM33_Pos) /*!< 0x00000002 */ | |
7388 #define EXTI_IMR2_IM33 EXTI_IMR2_IM33_Msk /*!< Interrupt Mask on line 33 */ | |
7389 #define EXTI_IMR2_IM34_Pos (2U) | |
7390 #define EXTI_IMR2_IM34_Msk (0x1U << EXTI_IMR2_IM34_Pos) /*!< 0x00000004 */ | |
7391 #define EXTI_IMR2_IM34 EXTI_IMR2_IM34_Msk /*!< Interrupt Mask on line 34 */ | |
7392 #define EXTI_IMR2_IM35_Pos (3U) | |
7393 #define EXTI_IMR2_IM35_Msk (0x1U << EXTI_IMR2_IM35_Pos) /*!< 0x00000008 */ | |
7394 #define EXTI_IMR2_IM35 EXTI_IMR2_IM35_Msk /*!< Interrupt Mask on line 35 */ | |
7395 #define EXTI_IMR2_IM36_Pos (4U) | |
7396 #define EXTI_IMR2_IM36_Msk (0x1U << EXTI_IMR2_IM36_Pos) /*!< 0x00000010 */ | |
7397 #define EXTI_IMR2_IM36 EXTI_IMR2_IM36_Msk /*!< Interrupt Mask on line 36 */ | |
7398 #define EXTI_IMR2_IM37_Pos (5U) | |
7399 #define EXTI_IMR2_IM37_Msk (0x1U << EXTI_IMR2_IM37_Pos) /*!< 0x00000020 */ | |
7400 #define EXTI_IMR2_IM37 EXTI_IMR2_IM37_Msk /*!< Interrupt Mask on line 37 */ | |
7401 #define EXTI_IMR2_IM38_Pos (6U) | |
7402 #define EXTI_IMR2_IM38_Msk (0x1U << EXTI_IMR2_IM38_Pos) /*!< 0x00000040 */ | |
7403 #define EXTI_IMR2_IM38 EXTI_IMR2_IM38_Msk /*!< Interrupt Mask on line 38 */ | |
7404 #define EXTI_IMR2_IM39_Pos (7U) | |
7405 #define EXTI_IMR2_IM39_Msk (0x1U << EXTI_IMR2_IM39_Pos) /*!< 0x00000080 */ | |
7406 #define EXTI_IMR2_IM39 EXTI_IMR2_IM39_Msk /*!< Interrupt Mask on line 39 */ | |
7407 #define EXTI_IMR2_IM40_Pos (8U) | |
7408 #define EXTI_IMR2_IM40_Msk (0x1U << EXTI_IMR2_IM40_Pos) /*!< 0x00000100 */ | |
7409 #define EXTI_IMR2_IM40 EXTI_IMR2_IM40_Msk /*!< Interrupt Mask on line 40 */ | |
7410 #define EXTI_IMR2_IM_Pos (0U) | |
7411 #define EXTI_IMR2_IM_Msk (0x1FFU << EXTI_IMR2_IM_Pos) /*!< 0x000001FF */ | |
7412 #define EXTI_IMR2_IM EXTI_IMR2_IM_Msk /*!< Interrupt Mask all */ | |
7413 | |
7414 /******************* Bit definition for EXTI_EMR2 register ******************/ | |
7415 #define EXTI_EMR2_EM32_Pos (0U) | |
7416 #define EXTI_EMR2_EM32_Msk (0x1U << EXTI_EMR2_EM32_Pos) /*!< 0x00000001 */ | |
7417 #define EXTI_EMR2_EM32 EXTI_EMR2_EM32_Msk /*!< Event Mask on line 32 */ | |
7418 #define EXTI_EMR2_EM33_Pos (1U) | |
7419 #define EXTI_EMR2_EM33_Msk (0x1U << EXTI_EMR2_EM33_Pos) /*!< 0x00000002 */ | |
7420 #define EXTI_EMR2_EM33 EXTI_EMR2_EM33_Msk /*!< Event Mask on line 33 */ | |
7421 #define EXTI_EMR2_EM34_Pos (2U) | |
7422 #define EXTI_EMR2_EM34_Msk (0x1U << EXTI_EMR2_EM34_Pos) /*!< 0x00000004 */ | |
7423 #define EXTI_EMR2_EM34 EXTI_EMR2_EM34_Msk /*!< Event Mask on line 34 */ | |
7424 #define EXTI_EMR2_EM35_Pos (3U) | |
7425 #define EXTI_EMR2_EM35_Msk (0x1U << EXTI_EMR2_EM35_Pos) /*!< 0x00000008 */ | |
7426 #define EXTI_EMR2_EM35 EXTI_EMR2_EM35_Msk /*!< Event Mask on line 35 */ | |
7427 #define EXTI_EMR2_EM36_Pos (4U) | |
7428 #define EXTI_EMR2_EM36_Msk (0x1U << EXTI_EMR2_EM36_Pos) /*!< 0x00000010 */ | |
7429 #define EXTI_EMR2_EM36 EXTI_EMR2_EM36_Msk /*!< Event Mask on line 36 */ | |
7430 #define EXTI_EMR2_EM37_Pos (5U) | |
7431 #define EXTI_EMR2_EM37_Msk (0x1U << EXTI_EMR2_EM37_Pos) /*!< 0x00000020 */ | |
7432 #define EXTI_EMR2_EM37 EXTI_EMR2_EM37_Msk /*!< Event Mask on line 37 */ | |
7433 #define EXTI_EMR2_EM38_Pos (6U) | |
7434 #define EXTI_EMR2_EM38_Msk (0x1U << EXTI_EMR2_EM38_Pos) /*!< 0x00000040 */ | |
7435 #define EXTI_EMR2_EM38 EXTI_EMR2_EM38_Msk /*!< Event Mask on line 38 */ | |
7436 #define EXTI_EMR2_EM39_Pos (7U) | |
7437 #define EXTI_EMR2_EM39_Msk (0x1U << EXTI_EMR2_EM39_Pos) /*!< 0x00000080 */ | |
7438 #define EXTI_EMR2_EM39 EXTI_EMR2_EM39_Msk /*!< Event Mask on line 39 */ | |
7439 #define EXTI_EMR2_IM40_Pos (8U) | |
7440 #define EXTI_EMR2_IM40_Msk (0x1U << EXTI_EMR2_IM40_Pos) /*!< 0x00000100 */ | |
7441 #define EXTI_EMR2_IM40 EXTI_EMR2_IM40_Msk /*!< Event Mask on line 40 */ | |
7442 | |
7443 /****************** Bit definition for EXTI_RTSR2 register ******************/ | |
7444 #define EXTI_RTSR2_RT35_Pos (3U) | |
7445 #define EXTI_RTSR2_RT35_Msk (0x1U << EXTI_RTSR2_RT35_Pos) /*!< 0x00000008 */ | |
7446 #define EXTI_RTSR2_RT35 EXTI_RTSR2_RT35_Msk /*!< Rising trigger event configuration bit of line 35 */ | |
7447 #define EXTI_RTSR2_RT36_Pos (4U) | |
7448 #define EXTI_RTSR2_RT36_Msk (0x1U << EXTI_RTSR2_RT36_Pos) /*!< 0x00000010 */ | |
7449 #define EXTI_RTSR2_RT36 EXTI_RTSR2_RT36_Msk /*!< Rising trigger event configuration bit of line 36 */ | |
7450 #define EXTI_RTSR2_RT37_Pos (5U) | |
7451 #define EXTI_RTSR2_RT37_Msk (0x1U << EXTI_RTSR2_RT37_Pos) /*!< 0x00000020 */ | |
7452 #define EXTI_RTSR2_RT37 EXTI_RTSR2_RT37_Msk /*!< Rising trigger event configuration bit of line 37 */ | |
7453 #define EXTI_RTSR2_RT38_Pos (6U) | |
7454 #define EXTI_RTSR2_RT38_Msk (0x1U << EXTI_RTSR2_RT38_Pos) /*!< 0x00000040 */ | |
7455 #define EXTI_RTSR2_RT38 EXTI_RTSR2_RT38_Msk /*!< Rising trigger event configuration bit of line 38 */ | |
7456 | |
7457 /****************** Bit definition for EXTI_FTSR2 register ******************/ | |
7458 #define EXTI_FTSR2_FT35_Pos (3U) | |
7459 #define EXTI_FTSR2_FT35_Msk (0x1U << EXTI_FTSR2_FT35_Pos) /*!< 0x00000008 */ | |
7460 #define EXTI_FTSR2_FT35 EXTI_FTSR2_FT35_Msk /*!< Falling trigger event configuration bit of line 35 */ | |
7461 #define EXTI_FTSR2_FT36_Pos (4U) | |
7462 #define EXTI_FTSR2_FT36_Msk (0x1U << EXTI_FTSR2_FT36_Pos) /*!< 0x00000010 */ | |
7463 #define EXTI_FTSR2_FT36 EXTI_FTSR2_FT36_Msk /*!< Falling trigger event configuration bit of line 36 */ | |
7464 #define EXTI_FTSR2_FT37_Pos (5U) | |
7465 #define EXTI_FTSR2_FT37_Msk (0x1U << EXTI_FTSR2_FT37_Pos) /*!< 0x00000020 */ | |
7466 #define EXTI_FTSR2_FT37 EXTI_FTSR2_FT37_Msk /*!< Falling trigger event configuration bit of line 37 */ | |
7467 #define EXTI_FTSR2_FT38_Pos (6U) | |
7468 #define EXTI_FTSR2_FT38_Msk (0x1U << EXTI_FTSR2_FT38_Pos) /*!< 0x00000040 */ | |
7469 #define EXTI_FTSR2_FT38 EXTI_FTSR2_FT38_Msk /*!< Falling trigger event configuration bit of line 38 */ | |
7470 | |
7471 /****************** Bit definition for EXTI_SWIER2 register *****************/ | |
7472 #define EXTI_SWIER2_SWI35_Pos (3U) | |
7473 #define EXTI_SWIER2_SWI35_Msk (0x1U << EXTI_SWIER2_SWI35_Pos) /*!< 0x00000008 */ | |
7474 #define EXTI_SWIER2_SWI35 EXTI_SWIER2_SWI35_Msk /*!< Software Interrupt on line 35 */ | |
7475 #define EXTI_SWIER2_SWI36_Pos (4U) | |
7476 #define EXTI_SWIER2_SWI36_Msk (0x1U << EXTI_SWIER2_SWI36_Pos) /*!< 0x00000010 */ | |
7477 #define EXTI_SWIER2_SWI36 EXTI_SWIER2_SWI36_Msk /*!< Software Interrupt on line 36 */ | |
7478 #define EXTI_SWIER2_SWI37_Pos (5U) | |
7479 #define EXTI_SWIER2_SWI37_Msk (0x1U << EXTI_SWIER2_SWI37_Pos) /*!< 0x00000020 */ | |
7480 #define EXTI_SWIER2_SWI37 EXTI_SWIER2_SWI37_Msk /*!< Software Interrupt on line 37 */ | |
7481 #define EXTI_SWIER2_SWI38_Pos (6U) | |
7482 #define EXTI_SWIER2_SWI38_Msk (0x1U << EXTI_SWIER2_SWI38_Pos) /*!< 0x00000040 */ | |
7483 #define EXTI_SWIER2_SWI38 EXTI_SWIER2_SWI38_Msk /*!< Software Interrupt on line 38 */ | |
7484 | |
7485 /******************* Bit definition for EXTI_PR2 register *******************/ | |
7486 #define EXTI_PR2_PIF35_Pos (3U) | |
7487 #define EXTI_PR2_PIF35_Msk (0x1U << EXTI_PR2_PIF35_Pos) /*!< 0x00000008 */ | |
7488 #define EXTI_PR2_PIF35 EXTI_PR2_PIF35_Msk /*!< Pending bit for line 35 */ | |
7489 #define EXTI_PR2_PIF36_Pos (4U) | |
7490 #define EXTI_PR2_PIF36_Msk (0x1U << EXTI_PR2_PIF36_Pos) /*!< 0x00000010 */ | |
7491 #define EXTI_PR2_PIF36 EXTI_PR2_PIF36_Msk /*!< Pending bit for line 36 */ | |
7492 #define EXTI_PR2_PIF37_Pos (5U) | |
7493 #define EXTI_PR2_PIF37_Msk (0x1U << EXTI_PR2_PIF37_Pos) /*!< 0x00000020 */ | |
7494 #define EXTI_PR2_PIF37 EXTI_PR2_PIF37_Msk /*!< Pending bit for line 37 */ | |
7495 #define EXTI_PR2_PIF38_Pos (6U) | |
7496 #define EXTI_PR2_PIF38_Msk (0x1U << EXTI_PR2_PIF38_Pos) /*!< 0x00000040 */ | |
7497 #define EXTI_PR2_PIF38 EXTI_PR2_PIF38_Msk /*!< Pending bit for line 38 */ | |
7498 | |
7499 | |
7500 /******************************************************************************/ | |
7501 /* */ | |
7502 /* FLASH */ | |
7503 /* */ | |
7504 /******************************************************************************/ | |
7505 /******************* Bits definition for FLASH_ACR register *****************/ | |
7506 #define FLASH_ACR_LATENCY_Pos (0U) | |
7507 #define FLASH_ACR_LATENCY_Msk (0x7U << FLASH_ACR_LATENCY_Pos) /*!< 0x00000007 */ | |
7508 #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk | |
7509 #define FLASH_ACR_LATENCY_0WS (0x00000000U) | |
7510 #define FLASH_ACR_LATENCY_1WS (0x00000001U) | |
7511 #define FLASH_ACR_LATENCY_2WS (0x00000002U) | |
7512 #define FLASH_ACR_LATENCY_3WS (0x00000003U) | |
7513 #define FLASH_ACR_LATENCY_4WS (0x00000004U) | |
7514 #define FLASH_ACR_PRFTEN_Pos (8U) | |
7515 #define FLASH_ACR_PRFTEN_Msk (0x1U << FLASH_ACR_PRFTEN_Pos) /*!< 0x00000100 */ | |
7516 #define FLASH_ACR_PRFTEN FLASH_ACR_PRFTEN_Msk | |
7517 #define FLASH_ACR_ICEN_Pos (9U) | |
7518 #define FLASH_ACR_ICEN_Msk (0x1U << FLASH_ACR_ICEN_Pos) /*!< 0x00000200 */ | |
7519 #define FLASH_ACR_ICEN FLASH_ACR_ICEN_Msk | |
7520 #define FLASH_ACR_DCEN_Pos (10U) | |
7521 #define FLASH_ACR_DCEN_Msk (0x1U << FLASH_ACR_DCEN_Pos) /*!< 0x00000400 */ | |
7522 #define FLASH_ACR_DCEN FLASH_ACR_DCEN_Msk | |
7523 #define FLASH_ACR_ICRST_Pos (11U) | |
7524 #define FLASH_ACR_ICRST_Msk (0x1U << FLASH_ACR_ICRST_Pos) /*!< 0x00000800 */ | |
7525 #define FLASH_ACR_ICRST FLASH_ACR_ICRST_Msk | |
7526 #define FLASH_ACR_DCRST_Pos (12U) | |
7527 #define FLASH_ACR_DCRST_Msk (0x1U << FLASH_ACR_DCRST_Pos) /*!< 0x00001000 */ | |
7528 #define FLASH_ACR_DCRST FLASH_ACR_DCRST_Msk | |
7529 #define FLASH_ACR_RUN_PD_Pos (13U) | |
7530 #define FLASH_ACR_RUN_PD_Msk (0x1U << FLASH_ACR_RUN_PD_Pos) /*!< 0x00002000 */ | |
7531 #define FLASH_ACR_RUN_PD FLASH_ACR_RUN_PD_Msk /*!< Flash power down mode during run */ | |
7532 #define FLASH_ACR_SLEEP_PD_Pos (14U) | |
7533 #define FLASH_ACR_SLEEP_PD_Msk (0x1U << FLASH_ACR_SLEEP_PD_Pos) /*!< 0x00004000 */ | |
7534 #define FLASH_ACR_SLEEP_PD FLASH_ACR_SLEEP_PD_Msk /*!< Flash power down mode during sleep */ | |
7535 | |
7536 /******************* Bits definition for FLASH_SR register ******************/ | |
7537 #define FLASH_SR_EOP_Pos (0U) | |
7538 #define FLASH_SR_EOP_Msk (0x1U << FLASH_SR_EOP_Pos) /*!< 0x00000001 */ | |
7539 #define FLASH_SR_EOP FLASH_SR_EOP_Msk | |
7540 #define FLASH_SR_OPERR_Pos (1U) | |
7541 #define FLASH_SR_OPERR_Msk (0x1U << FLASH_SR_OPERR_Pos) /*!< 0x00000002 */ | |
7542 #define FLASH_SR_OPERR FLASH_SR_OPERR_Msk | |
7543 #define FLASH_SR_PROGERR_Pos (3U) | |
7544 #define FLASH_SR_PROGERR_Msk (0x1U << FLASH_SR_PROGERR_Pos) /*!< 0x00000008 */ | |
7545 #define FLASH_SR_PROGERR FLASH_SR_PROGERR_Msk | |
7546 #define FLASH_SR_WRPERR_Pos (4U) | |
7547 #define FLASH_SR_WRPERR_Msk (0x1U << FLASH_SR_WRPERR_Pos) /*!< 0x00000010 */ | |
7548 #define FLASH_SR_WRPERR FLASH_SR_WRPERR_Msk | |
7549 #define FLASH_SR_PGAERR_Pos (5U) | |
7550 #define FLASH_SR_PGAERR_Msk (0x1U << FLASH_SR_PGAERR_Pos) /*!< 0x00000020 */ | |
7551 #define FLASH_SR_PGAERR FLASH_SR_PGAERR_Msk | |
7552 #define FLASH_SR_SIZERR_Pos (6U) | |
7553 #define FLASH_SR_SIZERR_Msk (0x1U << FLASH_SR_SIZERR_Pos) /*!< 0x00000040 */ | |
7554 #define FLASH_SR_SIZERR FLASH_SR_SIZERR_Msk | |
7555 #define FLASH_SR_PGSERR_Pos (7U) | |
7556 #define FLASH_SR_PGSERR_Msk (0x1U << FLASH_SR_PGSERR_Pos) /*!< 0x00000080 */ | |
7557 #define FLASH_SR_PGSERR FLASH_SR_PGSERR_Msk | |
7558 #define FLASH_SR_MISERR_Pos (8U) | |
7559 #define FLASH_SR_MISERR_Msk (0x1U << FLASH_SR_MISERR_Pos) /*!< 0x00000100 */ | |
7560 #define FLASH_SR_MISERR FLASH_SR_MISERR_Msk | |
7561 #define FLASH_SR_FASTERR_Pos (9U) | |
7562 #define FLASH_SR_FASTERR_Msk (0x1U << FLASH_SR_FASTERR_Pos) /*!< 0x00000200 */ | |
7563 #define FLASH_SR_FASTERR FLASH_SR_FASTERR_Msk | |
7564 #define FLASH_SR_RDERR_Pos (14U) | |
7565 #define FLASH_SR_RDERR_Msk (0x1U << FLASH_SR_RDERR_Pos) /*!< 0x00004000 */ | |
7566 #define FLASH_SR_RDERR FLASH_SR_RDERR_Msk | |
7567 #define FLASH_SR_OPTVERR_Pos (15U) | |
7568 #define FLASH_SR_OPTVERR_Msk (0x1U << FLASH_SR_OPTVERR_Pos) /*!< 0x00008000 */ | |
7569 #define FLASH_SR_OPTVERR FLASH_SR_OPTVERR_Msk | |
7570 #define FLASH_SR_BSY_Pos (16U) | |
7571 #define FLASH_SR_BSY_Msk (0x1U << FLASH_SR_BSY_Pos) /*!< 0x00010000 */ | |
7572 #define FLASH_SR_BSY FLASH_SR_BSY_Msk | |
7573 #define FLASH_SR_PEMPTY_Pos (17U) | |
7574 #define FLASH_SR_PEMPTY_Msk (0x1U << FLASH_SR_PEMPTY_Pos) /*!< 0x00020000 */ | |
7575 #define FLASH_SR_PEMPTY FLASH_SR_PEMPTY_Msk | |
7576 | |
7577 /******************* Bits definition for FLASH_CR register ******************/ | |
7578 #define FLASH_CR_PG_Pos (0U) | |
7579 #define FLASH_CR_PG_Msk (0x1U << FLASH_CR_PG_Pos) /*!< 0x00000001 */ | |
7580 #define FLASH_CR_PG FLASH_CR_PG_Msk | |
7581 #define FLASH_CR_PER_Pos (1U) | |
7582 #define FLASH_CR_PER_Msk (0x1U << FLASH_CR_PER_Pos) /*!< 0x00000002 */ | |
7583 #define FLASH_CR_PER FLASH_CR_PER_Msk | |
7584 #define FLASH_CR_MER1_Pos (2U) | |
7585 #define FLASH_CR_MER1_Msk (0x1U << FLASH_CR_MER1_Pos) /*!< 0x00000004 */ | |
7586 #define FLASH_CR_MER1 FLASH_CR_MER1_Msk | |
7587 #define FLASH_CR_PNB_Pos (3U) | |
7588 #define FLASH_CR_PNB_Msk (0xFFU << FLASH_CR_PNB_Pos) /*!< 0x000007F8 */ | |
7589 #define FLASH_CR_PNB FLASH_CR_PNB_Msk | |
7590 #define FLASH_CR_STRT_Pos (16U) | |
7591 #define FLASH_CR_STRT_Msk (0x1U << FLASH_CR_STRT_Pos) /*!< 0x00010000 */ | |
7592 #define FLASH_CR_STRT FLASH_CR_STRT_Msk | |
7593 #define FLASH_CR_OPTSTRT_Pos (17U) | |
7594 #define FLASH_CR_OPTSTRT_Msk (0x1U << FLASH_CR_OPTSTRT_Pos) /*!< 0x00020000 */ | |
7595 #define FLASH_CR_OPTSTRT FLASH_CR_OPTSTRT_Msk | |
7596 #define FLASH_CR_FSTPG_Pos (18U) | |
7597 #define FLASH_CR_FSTPG_Msk (0x1U << FLASH_CR_FSTPG_Pos) /*!< 0x00040000 */ | |
7598 #define FLASH_CR_FSTPG FLASH_CR_FSTPG_Msk | |
7599 #define FLASH_CR_EOPIE_Pos (24U) | |
7600 #define FLASH_CR_EOPIE_Msk (0x1U << FLASH_CR_EOPIE_Pos) /*!< 0x01000000 */ | |
7601 #define FLASH_CR_EOPIE FLASH_CR_EOPIE_Msk | |
7602 #define FLASH_CR_ERRIE_Pos (25U) | |
7603 #define FLASH_CR_ERRIE_Msk (0x1U << FLASH_CR_ERRIE_Pos) /*!< 0x02000000 */ | |
7604 #define FLASH_CR_ERRIE FLASH_CR_ERRIE_Msk | |
7605 #define FLASH_CR_RDERRIE_Pos (26U) | |
7606 #define FLASH_CR_RDERRIE_Msk (0x1U << FLASH_CR_RDERRIE_Pos) /*!< 0x04000000 */ | |
7607 #define FLASH_CR_RDERRIE FLASH_CR_RDERRIE_Msk | |
7608 #define FLASH_CR_OBL_LAUNCH_Pos (27U) | |
7609 #define FLASH_CR_OBL_LAUNCH_Msk (0x1U << FLASH_CR_OBL_LAUNCH_Pos) /*!< 0x08000000 */ | |
7610 #define FLASH_CR_OBL_LAUNCH FLASH_CR_OBL_LAUNCH_Msk | |
7611 #define FLASH_CR_OPTLOCK_Pos (30U) | |
7612 #define FLASH_CR_OPTLOCK_Msk (0x1U << FLASH_CR_OPTLOCK_Pos) /*!< 0x40000000 */ | |
7613 #define FLASH_CR_OPTLOCK FLASH_CR_OPTLOCK_Msk | |
7614 #define FLASH_CR_LOCK_Pos (31U) | |
7615 #define FLASH_CR_LOCK_Msk (0x1U << FLASH_CR_LOCK_Pos) /*!< 0x80000000 */ | |
7616 #define FLASH_CR_LOCK FLASH_CR_LOCK_Msk | |
7617 | |
7618 /******************* Bits definition for FLASH_ECCR register ***************/ | |
7619 #define FLASH_ECCR_ADDR_ECC_Pos (0U) | |
7620 #define FLASH_ECCR_ADDR_ECC_Msk (0x7FFFFU << FLASH_ECCR_ADDR_ECC_Pos) /*!< 0x0007FFFF */ | |
7621 #define FLASH_ECCR_ADDR_ECC FLASH_ECCR_ADDR_ECC_Msk | |
7622 #define FLASH_ECCR_SYSF_ECC_Pos (20U) | |
7623 #define FLASH_ECCR_SYSF_ECC_Msk (0x1U << FLASH_ECCR_SYSF_ECC_Pos) /*!< 0x00100000 */ | |
7624 #define FLASH_ECCR_SYSF_ECC FLASH_ECCR_SYSF_ECC_Msk | |
7625 #define FLASH_ECCR_ECCIE_Pos (24U) | |
7626 #define FLASH_ECCR_ECCIE_Msk (0x1U << FLASH_ECCR_ECCIE_Pos) /*!< 0x01000000 */ | |
7627 #define FLASH_ECCR_ECCIE FLASH_ECCR_ECCIE_Msk | |
7628 #define FLASH_ECCR_ECCC_Pos (30U) | |
7629 #define FLASH_ECCR_ECCC_Msk (0x1U << FLASH_ECCR_ECCC_Pos) /*!< 0x40000000 */ | |
7630 #define FLASH_ECCR_ECCC FLASH_ECCR_ECCC_Msk | |
7631 #define FLASH_ECCR_ECCD_Pos (31U) | |
7632 #define FLASH_ECCR_ECCD_Msk (0x1U << FLASH_ECCR_ECCD_Pos) /*!< 0x80000000 */ | |
7633 #define FLASH_ECCR_ECCD FLASH_ECCR_ECCD_Msk | |
7634 | |
7635 /******************* Bits definition for FLASH_OPTR register ***************/ | |
7636 #define FLASH_OPTR_RDP_Pos (0U) | |
7637 #define FLASH_OPTR_RDP_Msk (0xFFU << FLASH_OPTR_RDP_Pos) /*!< 0x000000FF */ | |
7638 #define FLASH_OPTR_RDP FLASH_OPTR_RDP_Msk | |
7639 #define FLASH_OPTR_BOR_LEV_Pos (8U) | |
7640 #define FLASH_OPTR_BOR_LEV_Msk (0x7U << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000700 */ | |
7641 #define FLASH_OPTR_BOR_LEV FLASH_OPTR_BOR_LEV_Msk | |
7642 #define FLASH_OPTR_BOR_LEV_0 (0x0U << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000000 */ | |
7643 #define FLASH_OPTR_BOR_LEV_1 (0x1U << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000100 */ | |
7644 #define FLASH_OPTR_BOR_LEV_2 (0x2U << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000200 */ | |
7645 #define FLASH_OPTR_BOR_LEV_3 (0x3U << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000300 */ | |
7646 #define FLASH_OPTR_BOR_LEV_4 (0x4U << FLASH_OPTR_BOR_LEV_Pos) /*!< 0x00000400 */ | |
7647 #define FLASH_OPTR_nRST_STOP_Pos (12U) | |
7648 #define FLASH_OPTR_nRST_STOP_Msk (0x1U << FLASH_OPTR_nRST_STOP_Pos) /*!< 0x00001000 */ | |
7649 #define FLASH_OPTR_nRST_STOP FLASH_OPTR_nRST_STOP_Msk | |
7650 #define FLASH_OPTR_nRST_STDBY_Pos (13U) | |
7651 #define FLASH_OPTR_nRST_STDBY_Msk (0x1U << FLASH_OPTR_nRST_STDBY_Pos) /*!< 0x00002000 */ | |
7652 #define FLASH_OPTR_nRST_STDBY FLASH_OPTR_nRST_STDBY_Msk | |
7653 #define FLASH_OPTR_nRST_SHDW_Pos (14U) | |
7654 #define FLASH_OPTR_nRST_SHDW_Msk (0x1U << FLASH_OPTR_nRST_SHDW_Pos) /*!< 0x00004000 */ | |
7655 #define FLASH_OPTR_nRST_SHDW FLASH_OPTR_nRST_SHDW_Msk | |
7656 #define FLASH_OPTR_IWDG_SW_Pos (16U) | |
7657 #define FLASH_OPTR_IWDG_SW_Msk (0x1U << FLASH_OPTR_IWDG_SW_Pos) /*!< 0x00010000 */ | |
7658 #define FLASH_OPTR_IWDG_SW FLASH_OPTR_IWDG_SW_Msk | |
7659 #define FLASH_OPTR_IWDG_STOP_Pos (17U) | |
7660 #define FLASH_OPTR_IWDG_STOP_Msk (0x1U << FLASH_OPTR_IWDG_STOP_Pos) /*!< 0x00020000 */ | |
7661 #define FLASH_OPTR_IWDG_STOP FLASH_OPTR_IWDG_STOP_Msk | |
7662 #define FLASH_OPTR_IWDG_STDBY_Pos (18U) | |
7663 #define FLASH_OPTR_IWDG_STDBY_Msk (0x1U << FLASH_OPTR_IWDG_STDBY_Pos) /*!< 0x00040000 */ | |
7664 #define FLASH_OPTR_IWDG_STDBY FLASH_OPTR_IWDG_STDBY_Msk | |
7665 #define FLASH_OPTR_WWDG_SW_Pos (19U) | |
7666 #define FLASH_OPTR_WWDG_SW_Msk (0x1U << FLASH_OPTR_WWDG_SW_Pos) /*!< 0x00080000 */ | |
7667 #define FLASH_OPTR_WWDG_SW FLASH_OPTR_WWDG_SW_Msk | |
7668 #define FLASH_OPTR_nBOOT1_Pos (23U) | |
7669 #define FLASH_OPTR_nBOOT1_Msk (0x1U << FLASH_OPTR_nBOOT1_Pos) /*!< 0x00800000 */ | |
7670 #define FLASH_OPTR_nBOOT1 FLASH_OPTR_nBOOT1_Msk | |
7671 #define FLASH_OPTR_SRAM2_PE_Pos (24U) | |
7672 #define FLASH_OPTR_SRAM2_PE_Msk (0x1U << FLASH_OPTR_SRAM2_PE_Pos) /*!< 0x01000000 */ | |
7673 #define FLASH_OPTR_SRAM2_PE FLASH_OPTR_SRAM2_PE_Msk | |
7674 #define FLASH_OPTR_SRAM2_RST_Pos (25U) | |
7675 #define FLASH_OPTR_SRAM2_RST_Msk (0x1U << FLASH_OPTR_SRAM2_RST_Pos) /*!< 0x02000000 */ | |
7676 #define FLASH_OPTR_SRAM2_RST FLASH_OPTR_SRAM2_RST_Msk | |
7677 #define FLASH_OPTR_nSWBOOT0_Pos (26U) | |
7678 #define FLASH_OPTR_nSWBOOT0_Msk (0x1U << FLASH_OPTR_nSWBOOT0_Pos) /*!< 0x04000000 */ | |
7679 #define FLASH_OPTR_nSWBOOT0 FLASH_OPTR_nSWBOOT0_Msk | |
7680 #define FLASH_OPTR_nBOOT0_Pos (27U) | |
7681 #define FLASH_OPTR_nBOOT0_Msk (0x1U << FLASH_OPTR_nBOOT0_Pos) /*!< 0x08000000 */ | |
7682 #define FLASH_OPTR_nBOOT0 FLASH_OPTR_nBOOT0_Msk | |
7683 | |
7684 /****************** Bits definition for FLASH_PCROP1SR register **********/ | |
7685 #define FLASH_PCROP1SR_PCROP1_STRT_Pos (0U) | |
7686 #define FLASH_PCROP1SR_PCROP1_STRT_Msk (0x7FFFU << FLASH_PCROP1SR_PCROP1_STRT_Pos) /*!< 0x00007FFF */ | |
7687 #define FLASH_PCROP1SR_PCROP1_STRT FLASH_PCROP1SR_PCROP1_STRT_Msk | |
7688 | |
7689 /****************** Bits definition for FLASH_PCROP1ER register ***********/ | |
7690 #define FLASH_PCROP1ER_PCROP1_END_Pos (0U) | |
7691 #define FLASH_PCROP1ER_PCROP1_END_Msk (0x7FFFU << FLASH_PCROP1ER_PCROP1_END_Pos) /*!< 0x00007FFF */ | |
7692 #define FLASH_PCROP1ER_PCROP1_END FLASH_PCROP1ER_PCROP1_END_Msk | |
7693 #define FLASH_PCROP1ER_PCROP_RDP_Pos (31U) | |
7694 #define FLASH_PCROP1ER_PCROP_RDP_Msk (0x1U << FLASH_PCROP1ER_PCROP_RDP_Pos) /*!< 0x80000000 */ | |
7695 #define FLASH_PCROP1ER_PCROP_RDP FLASH_PCROP1ER_PCROP_RDP_Msk | |
7696 | |
7697 /****************** Bits definition for FLASH_WRP1AR register ***************/ | |
7698 #define FLASH_WRP1AR_WRP1A_STRT_Pos (0U) | |
7699 #define FLASH_WRP1AR_WRP1A_STRT_Msk (0xFFU << FLASH_WRP1AR_WRP1A_STRT_Pos) /*!< 0x000000FF */ | |
7700 #define FLASH_WRP1AR_WRP1A_STRT FLASH_WRP1AR_WRP1A_STRT_Msk | |
7701 #define FLASH_WRP1AR_WRP1A_END_Pos (16U) | |
7702 #define FLASH_WRP1AR_WRP1A_END_Msk (0xFFU << FLASH_WRP1AR_WRP1A_END_Pos) /*!< 0x00FF0000 */ | |
7703 #define FLASH_WRP1AR_WRP1A_END FLASH_WRP1AR_WRP1A_END_Msk | |
7704 | |
7705 /****************** Bits definition for FLASH_WRPB1R register ***************/ | |
7706 #define FLASH_WRP1BR_WRP1B_STRT_Pos (0U) | |
7707 #define FLASH_WRP1BR_WRP1B_STRT_Msk (0xFFU << FLASH_WRP1BR_WRP1B_STRT_Pos) /*!< 0x000000FF */ | |
7708 #define FLASH_WRP1BR_WRP1B_STRT FLASH_WRP1BR_WRP1B_STRT_Msk | |
7709 #define FLASH_WRP1BR_WRP1B_END_Pos (16U) | |
7710 #define FLASH_WRP1BR_WRP1B_END_Msk (0xFFU << FLASH_WRP1BR_WRP1B_END_Pos) /*!< 0x00FF0000 */ | |
7711 #define FLASH_WRP1BR_WRP1B_END FLASH_WRP1BR_WRP1B_END_Msk | |
7712 | |
7713 | |
7714 | |
7715 | |
7716 /******************************************************************************/ | |
7717 /* */ | |
7718 /* General Purpose IOs (GPIO) */ | |
7719 /* */ | |
7720 /******************************************************************************/ | |
7721 /****************** Bits definition for GPIO_MODER register *****************/ | |
7722 #define GPIO_MODER_MODE0_Pos (0U) | |
7723 #define GPIO_MODER_MODE0_Msk (0x3U << GPIO_MODER_MODE0_Pos) /*!< 0x00000003 */ | |
7724 #define GPIO_MODER_MODE0 GPIO_MODER_MODE0_Msk | |
7725 #define GPIO_MODER_MODE0_0 (0x1U << GPIO_MODER_MODE0_Pos) /*!< 0x00000001 */ | |
7726 #define GPIO_MODER_MODE0_1 (0x2U << GPIO_MODER_MODE0_Pos) /*!< 0x00000002 */ | |
7727 #define GPIO_MODER_MODE1_Pos (2U) | |
7728 #define GPIO_MODER_MODE1_Msk (0x3U << GPIO_MODER_MODE1_Pos) /*!< 0x0000000C */ | |
7729 #define GPIO_MODER_MODE1 GPIO_MODER_MODE1_Msk | |
7730 #define GPIO_MODER_MODE1_0 (0x1U << GPIO_MODER_MODE1_Pos) /*!< 0x00000004 */ | |
7731 #define GPIO_MODER_MODE1_1 (0x2U << GPIO_MODER_MODE1_Pos) /*!< 0x00000008 */ | |
7732 #define GPIO_MODER_MODE2_Pos (4U) | |
7733 #define GPIO_MODER_MODE2_Msk (0x3U << GPIO_MODER_MODE2_Pos) /*!< 0x00000030 */ | |
7734 #define GPIO_MODER_MODE2 GPIO_MODER_MODE2_Msk | |
7735 #define GPIO_MODER_MODE2_0 (0x1U << GPIO_MODER_MODE2_Pos) /*!< 0x00000010 */ | |
7736 #define GPIO_MODER_MODE2_1 (0x2U << GPIO_MODER_MODE2_Pos) /*!< 0x00000020 */ | |
7737 #define GPIO_MODER_MODE3_Pos (6U) | |
7738 #define GPIO_MODER_MODE3_Msk (0x3U << GPIO_MODER_MODE3_Pos) /*!< 0x000000C0 */ | |
7739 #define GPIO_MODER_MODE3 GPIO_MODER_MODE3_Msk | |
7740 #define GPIO_MODER_MODE3_0 (0x1U << GPIO_MODER_MODE3_Pos) /*!< 0x00000040 */ | |
7741 #define GPIO_MODER_MODE3_1 (0x2U << GPIO_MODER_MODE3_Pos) /*!< 0x00000080 */ | |
7742 #define GPIO_MODER_MODE4_Pos (8U) | |
7743 #define GPIO_MODER_MODE4_Msk (0x3U << GPIO_MODER_MODE4_Pos) /*!< 0x00000300 */ | |
7744 #define GPIO_MODER_MODE4 GPIO_MODER_MODE4_Msk | |
7745 #define GPIO_MODER_MODE4_0 (0x1U << GPIO_MODER_MODE4_Pos) /*!< 0x00000100 */ | |
7746 #define GPIO_MODER_MODE4_1 (0x2U << GPIO_MODER_MODE4_Pos) /*!< 0x00000200 */ | |
7747 #define GPIO_MODER_MODE5_Pos (10U) | |
7748 #define GPIO_MODER_MODE5_Msk (0x3U << GPIO_MODER_MODE5_Pos) /*!< 0x00000C00 */ | |
7749 #define GPIO_MODER_MODE5 GPIO_MODER_MODE5_Msk | |
7750 #define GPIO_MODER_MODE5_0 (0x1U << GPIO_MODER_MODE5_Pos) /*!< 0x00000400 */ | |
7751 #define GPIO_MODER_MODE5_1 (0x2U << GPIO_MODER_MODE5_Pos) /*!< 0x00000800 */ | |
7752 #define GPIO_MODER_MODE6_Pos (12U) | |
7753 #define GPIO_MODER_MODE6_Msk (0x3U << GPIO_MODER_MODE6_Pos) /*!< 0x00003000 */ | |
7754 #define GPIO_MODER_MODE6 GPIO_MODER_MODE6_Msk | |
7755 #define GPIO_MODER_MODE6_0 (0x1U << GPIO_MODER_MODE6_Pos) /*!< 0x00001000 */ | |
7756 #define GPIO_MODER_MODE6_1 (0x2U << GPIO_MODER_MODE6_Pos) /*!< 0x00002000 */ | |
7757 #define GPIO_MODER_MODE7_Pos (14U) | |
7758 #define GPIO_MODER_MODE7_Msk (0x3U << GPIO_MODER_MODE7_Pos) /*!< 0x0000C000 */ | |
7759 #define GPIO_MODER_MODE7 GPIO_MODER_MODE7_Msk | |
7760 #define GPIO_MODER_MODE7_0 (0x1U << GPIO_MODER_MODE7_Pos) /*!< 0x00004000 */ | |
7761 #define GPIO_MODER_MODE7_1 (0x2U << GPIO_MODER_MODE7_Pos) /*!< 0x00008000 */ | |
7762 #define GPIO_MODER_MODE8_Pos (16U) | |
7763 #define GPIO_MODER_MODE8_Msk (0x3U << GPIO_MODER_MODE8_Pos) /*!< 0x00030000 */ | |
7764 #define GPIO_MODER_MODE8 GPIO_MODER_MODE8_Msk | |
7765 #define GPIO_MODER_MODE8_0 (0x1U << GPIO_MODER_MODE8_Pos) /*!< 0x00010000 */ | |
7766 #define GPIO_MODER_MODE8_1 (0x2U << GPIO_MODER_MODE8_Pos) /*!< 0x00020000 */ | |
7767 #define GPIO_MODER_MODE9_Pos (18U) | |
7768 #define GPIO_MODER_MODE9_Msk (0x3U << GPIO_MODER_MODE9_Pos) /*!< 0x000C0000 */ | |
7769 #define GPIO_MODER_MODE9 GPIO_MODER_MODE9_Msk | |
7770 #define GPIO_MODER_MODE9_0 (0x1U << GPIO_MODER_MODE9_Pos) /*!< 0x00040000 */ | |
7771 #define GPIO_MODER_MODE9_1 (0x2U << GPIO_MODER_MODE9_Pos) /*!< 0x00080000 */ | |
7772 #define GPIO_MODER_MODE10_Pos (20U) | |
7773 #define GPIO_MODER_MODE10_Msk (0x3U << GPIO_MODER_MODE10_Pos) /*!< 0x00300000 */ | |
7774 #define GPIO_MODER_MODE10 GPIO_MODER_MODE10_Msk | |
7775 #define GPIO_MODER_MODE10_0 (0x1U << GPIO_MODER_MODE10_Pos) /*!< 0x00100000 */ | |
7776 #define GPIO_MODER_MODE10_1 (0x2U << GPIO_MODER_MODE10_Pos) /*!< 0x00200000 */ | |
7777 #define GPIO_MODER_MODE11_Pos (22U) | |
7778 #define GPIO_MODER_MODE11_Msk (0x3U << GPIO_MODER_MODE11_Pos) /*!< 0x00C00000 */ | |
7779 #define GPIO_MODER_MODE11 GPIO_MODER_MODE11_Msk | |
7780 #define GPIO_MODER_MODE11_0 (0x1U << GPIO_MODER_MODE11_Pos) /*!< 0x00400000 */ | |
7781 #define GPIO_MODER_MODE11_1 (0x2U << GPIO_MODER_MODE11_Pos) /*!< 0x00800000 */ | |
7782 #define GPIO_MODER_MODE12_Pos (24U) | |
7783 #define GPIO_MODER_MODE12_Msk (0x3U << GPIO_MODER_MODE12_Pos) /*!< 0x03000000 */ | |
7784 #define GPIO_MODER_MODE12 GPIO_MODER_MODE12_Msk | |
7785 #define GPIO_MODER_MODE12_0 (0x1U << GPIO_MODER_MODE12_Pos) /*!< 0x01000000 */ | |
7786 #define GPIO_MODER_MODE12_1 (0x2U << GPIO_MODER_MODE12_Pos) /*!< 0x02000000 */ | |
7787 #define GPIO_MODER_MODE13_Pos (26U) | |
7788 #define GPIO_MODER_MODE13_Msk (0x3U << GPIO_MODER_MODE13_Pos) /*!< 0x0C000000 */ | |
7789 #define GPIO_MODER_MODE13 GPIO_MODER_MODE13_Msk | |
7790 #define GPIO_MODER_MODE13_0 (0x1U << GPIO_MODER_MODE13_Pos) /*!< 0x04000000 */ | |
7791 #define GPIO_MODER_MODE13_1 (0x2U << GPIO_MODER_MODE13_Pos) /*!< 0x08000000 */ | |
7792 #define GPIO_MODER_MODE14_Pos (28U) | |
7793 #define GPIO_MODER_MODE14_Msk (0x3U << GPIO_MODER_MODE14_Pos) /*!< 0x30000000 */ | |
7794 #define GPIO_MODER_MODE14 GPIO_MODER_MODE14_Msk | |
7795 #define GPIO_MODER_MODE14_0 (0x1U << GPIO_MODER_MODE14_Pos) /*!< 0x10000000 */ | |
7796 #define GPIO_MODER_MODE14_1 (0x2U << GPIO_MODER_MODE14_Pos) /*!< 0x20000000 */ | |
7797 #define GPIO_MODER_MODE15_Pos (30U) | |
7798 #define GPIO_MODER_MODE15_Msk (0x3U << GPIO_MODER_MODE15_Pos) /*!< 0xC0000000 */ | |
7799 #define GPIO_MODER_MODE15 GPIO_MODER_MODE15_Msk | |
7800 #define GPIO_MODER_MODE15_0 (0x1U << GPIO_MODER_MODE15_Pos) /*!< 0x40000000 */ | |
7801 #define GPIO_MODER_MODE15_1 (0x2U << GPIO_MODER_MODE15_Pos) /*!< 0x80000000 */ | |
7802 | |
7803 /* Legacy defines */ | |
7804 #define GPIO_MODER_MODER0 GPIO_MODER_MODE0 | |
7805 #define GPIO_MODER_MODER0_0 GPIO_MODER_MODE0_0 | |
7806 #define GPIO_MODER_MODER0_1 GPIO_MODER_MODE0_1 | |
7807 #define GPIO_MODER_MODER1 GPIO_MODER_MODE1 | |
7808 #define GPIO_MODER_MODER1_0 GPIO_MODER_MODE1_0 | |
7809 #define GPIO_MODER_MODER1_1 GPIO_MODER_MODE1_1 | |
7810 #define GPIO_MODER_MODER2 GPIO_MODER_MODE2 | |
7811 #define GPIO_MODER_MODER2_0 GPIO_MODER_MODE2_0 | |
7812 #define GPIO_MODER_MODER2_1 GPIO_MODER_MODE2_1 | |
7813 #define GPIO_MODER_MODER3 GPIO_MODER_MODE3 | |
7814 #define GPIO_MODER_MODER3_0 GPIO_MODER_MODE3_0 | |
7815 #define GPIO_MODER_MODER3_1 GPIO_MODER_MODE3_1 | |
7816 #define GPIO_MODER_MODER4 GPIO_MODER_MODE4 | |
7817 #define GPIO_MODER_MODER4_0 GPIO_MODER_MODE4_0 | |
7818 #define GPIO_MODER_MODER4_1 GPIO_MODER_MODE4_1 | |
7819 #define GPIO_MODER_MODER5 GPIO_MODER_MODE5 | |
7820 #define GPIO_MODER_MODER5_0 GPIO_MODER_MODE5_0 | |
7821 #define GPIO_MODER_MODER5_1 GPIO_MODER_MODE5_1 | |
7822 #define GPIO_MODER_MODER6 GPIO_MODER_MODE6 | |
7823 #define GPIO_MODER_MODER6_0 GPIO_MODER_MODE6_0 | |
7824 #define GPIO_MODER_MODER6_1 GPIO_MODER_MODE6_1 | |
7825 #define GPIO_MODER_MODER7 GPIO_MODER_MODE7 | |
7826 #define GPIO_MODER_MODER7_0 GPIO_MODER_MODE7_0 | |
7827 #define GPIO_MODER_MODER7_1 GPIO_MODER_MODE7_1 | |
7828 #define GPIO_MODER_MODER8 GPIO_MODER_MODE8 | |
7829 #define GPIO_MODER_MODER8_0 GPIO_MODER_MODE8_0 | |
7830 #define GPIO_MODER_MODER8_1 GPIO_MODER_MODE8_1 | |
7831 #define GPIO_MODER_MODER9 GPIO_MODER_MODE9 | |
7832 #define GPIO_MODER_MODER9_0 GPIO_MODER_MODE9_0 | |
7833 #define GPIO_MODER_MODER9_1 GPIO_MODER_MODE9_1 | |
7834 #define GPIO_MODER_MODER10 GPIO_MODER_MODE10 | |
7835 #define GPIO_MODER_MODER10_0 GPIO_MODER_MODE10_0 | |
7836 #define GPIO_MODER_MODER10_1 GPIO_MODER_MODE10_1 | |
7837 #define GPIO_MODER_MODER11 GPIO_MODER_MODE11 | |
7838 #define GPIO_MODER_MODER11_0 GPIO_MODER_MODE11_0 | |
7839 #define GPIO_MODER_MODER11_1 GPIO_MODER_MODE11_1 | |
7840 #define GPIO_MODER_MODER12 GPIO_MODER_MODE12 | |
7841 #define GPIO_MODER_MODER12_0 GPIO_MODER_MODE12_0 | |
7842 #define GPIO_MODER_MODER12_1 GPIO_MODER_MODE12_1 | |
7843 #define GPIO_MODER_MODER13 GPIO_MODER_MODE13 | |
7844 #define GPIO_MODER_MODER13_0 GPIO_MODER_MODE13_0 | |
7845 #define GPIO_MODER_MODER13_1 GPIO_MODER_MODE13_1 | |
7846 #define GPIO_MODER_MODER14 GPIO_MODER_MODE14 | |
7847 #define GPIO_MODER_MODER14_0 GPIO_MODER_MODE14_0 | |
7848 #define GPIO_MODER_MODER14_1 GPIO_MODER_MODE14_1 | |
7849 #define GPIO_MODER_MODER15 GPIO_MODER_MODE15 | |
7850 #define GPIO_MODER_MODER15_0 GPIO_MODER_MODE15_0 | |
7851 #define GPIO_MODER_MODER15_1 GPIO_MODER_MODE15_1 | |
7852 | |
7853 /****************** Bits definition for GPIO_OTYPER register ****************/ | |
7854 #define GPIO_OTYPER_OT0_Pos (0U) | |
7855 #define GPIO_OTYPER_OT0_Msk (0x1U << GPIO_OTYPER_OT0_Pos) /*!< 0x00000001 */ | |
7856 #define GPIO_OTYPER_OT0 GPIO_OTYPER_OT0_Msk | |
7857 #define GPIO_OTYPER_OT1_Pos (1U) | |
7858 #define GPIO_OTYPER_OT1_Msk (0x1U << GPIO_OTYPER_OT1_Pos) /*!< 0x00000002 */ | |
7859 #define GPIO_OTYPER_OT1 GPIO_OTYPER_OT1_Msk | |
7860 #define GPIO_OTYPER_OT2_Pos (2U) | |
7861 #define GPIO_OTYPER_OT2_Msk (0x1U << GPIO_OTYPER_OT2_Pos) /*!< 0x00000004 */ | |
7862 #define GPIO_OTYPER_OT2 GPIO_OTYPER_OT2_Msk | |
7863 #define GPIO_OTYPER_OT3_Pos (3U) | |
7864 #define GPIO_OTYPER_OT3_Msk (0x1U << GPIO_OTYPER_OT3_Pos) /*!< 0x00000008 */ | |
7865 #define GPIO_OTYPER_OT3 GPIO_OTYPER_OT3_Msk | |
7866 #define GPIO_OTYPER_OT4_Pos (4U) | |
7867 #define GPIO_OTYPER_OT4_Msk (0x1U << GPIO_OTYPER_OT4_Pos) /*!< 0x00000010 */ | |
7868 #define GPIO_OTYPER_OT4 GPIO_OTYPER_OT4_Msk | |
7869 #define GPIO_OTYPER_OT5_Pos (5U) | |
7870 #define GPIO_OTYPER_OT5_Msk (0x1U << GPIO_OTYPER_OT5_Pos) /*!< 0x00000020 */ | |
7871 #define GPIO_OTYPER_OT5 GPIO_OTYPER_OT5_Msk | |
7872 #define GPIO_OTYPER_OT6_Pos (6U) | |
7873 #define GPIO_OTYPER_OT6_Msk (0x1U << GPIO_OTYPER_OT6_Pos) /*!< 0x00000040 */ | |
7874 #define GPIO_OTYPER_OT6 GPIO_OTYPER_OT6_Msk | |
7875 #define GPIO_OTYPER_OT7_Pos (7U) | |
7876 #define GPIO_OTYPER_OT7_Msk (0x1U << GPIO_OTYPER_OT7_Pos) /*!< 0x00000080 */ | |
7877 #define GPIO_OTYPER_OT7 GPIO_OTYPER_OT7_Msk | |
7878 #define GPIO_OTYPER_OT8_Pos (8U) | |
7879 #define GPIO_OTYPER_OT8_Msk (0x1U << GPIO_OTYPER_OT8_Pos) /*!< 0x00000100 */ | |
7880 #define GPIO_OTYPER_OT8 GPIO_OTYPER_OT8_Msk | |
7881 #define GPIO_OTYPER_OT9_Pos (9U) | |
7882 #define GPIO_OTYPER_OT9_Msk (0x1U << GPIO_OTYPER_OT9_Pos) /*!< 0x00000200 */ | |
7883 #define GPIO_OTYPER_OT9 GPIO_OTYPER_OT9_Msk | |
7884 #define GPIO_OTYPER_OT10_Pos (10U) | |
7885 #define GPIO_OTYPER_OT10_Msk (0x1U << GPIO_OTYPER_OT10_Pos) /*!< 0x00000400 */ | |
7886 #define GPIO_OTYPER_OT10 GPIO_OTYPER_OT10_Msk | |
7887 #define GPIO_OTYPER_OT11_Pos (11U) | |
7888 #define GPIO_OTYPER_OT11_Msk (0x1U << GPIO_OTYPER_OT11_Pos) /*!< 0x00000800 */ | |
7889 #define GPIO_OTYPER_OT11 GPIO_OTYPER_OT11_Msk | |
7890 #define GPIO_OTYPER_OT12_Pos (12U) | |
7891 #define GPIO_OTYPER_OT12_Msk (0x1U << GPIO_OTYPER_OT12_Pos) /*!< 0x00001000 */ | |
7892 #define GPIO_OTYPER_OT12 GPIO_OTYPER_OT12_Msk | |
7893 #define GPIO_OTYPER_OT13_Pos (13U) | |
7894 #define GPIO_OTYPER_OT13_Msk (0x1U << GPIO_OTYPER_OT13_Pos) /*!< 0x00002000 */ | |
7895 #define GPIO_OTYPER_OT13 GPIO_OTYPER_OT13_Msk | |
7896 #define GPIO_OTYPER_OT14_Pos (14U) | |
7897 #define GPIO_OTYPER_OT14_Msk (0x1U << GPIO_OTYPER_OT14_Pos) /*!< 0x00004000 */ | |
7898 #define GPIO_OTYPER_OT14 GPIO_OTYPER_OT14_Msk | |
7899 #define GPIO_OTYPER_OT15_Pos (15U) | |
7900 #define GPIO_OTYPER_OT15_Msk (0x1U << GPIO_OTYPER_OT15_Pos) /*!< 0x00008000 */ | |
7901 #define GPIO_OTYPER_OT15 GPIO_OTYPER_OT15_Msk | |
7902 | |
7903 /* Legacy defines */ | |
7904 #define GPIO_OTYPER_OT_0 GPIO_OTYPER_OT0 | |
7905 #define GPIO_OTYPER_OT_1 GPIO_OTYPER_OT1 | |
7906 #define GPIO_OTYPER_OT_2 GPIO_OTYPER_OT2 | |
7907 #define GPIO_OTYPER_OT_3 GPIO_OTYPER_OT3 | |
7908 #define GPIO_OTYPER_OT_4 GPIO_OTYPER_OT4 | |
7909 #define GPIO_OTYPER_OT_5 GPIO_OTYPER_OT5 | |
7910 #define GPIO_OTYPER_OT_6 GPIO_OTYPER_OT6 | |
7911 #define GPIO_OTYPER_OT_7 GPIO_OTYPER_OT7 | |
7912 #define GPIO_OTYPER_OT_8 GPIO_OTYPER_OT8 | |
7913 #define GPIO_OTYPER_OT_9 GPIO_OTYPER_OT9 | |
7914 #define GPIO_OTYPER_OT_10 GPIO_OTYPER_OT10 | |
7915 #define GPIO_OTYPER_OT_11 GPIO_OTYPER_OT11 | |
7916 #define GPIO_OTYPER_OT_12 GPIO_OTYPER_OT12 | |
7917 #define GPIO_OTYPER_OT_13 GPIO_OTYPER_OT13 | |
7918 #define GPIO_OTYPER_OT_14 GPIO_OTYPER_OT14 | |
7919 #define GPIO_OTYPER_OT_15 GPIO_OTYPER_OT15 | |
7920 | |
7921 /****************** Bits definition for GPIO_OSPEEDR register ***************/ | |
7922 #define GPIO_OSPEEDR_OSPEED0_Pos (0U) | |
7923 #define GPIO_OSPEEDR_OSPEED0_Msk (0x3U << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000003 */ | |
7924 #define GPIO_OSPEEDR_OSPEED0 GPIO_OSPEEDR_OSPEED0_Msk | |
7925 #define GPIO_OSPEEDR_OSPEED0_0 (0x1U << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000001 */ | |
7926 #define GPIO_OSPEEDR_OSPEED0_1 (0x2U << GPIO_OSPEEDR_OSPEED0_Pos) /*!< 0x00000002 */ | |
7927 #define GPIO_OSPEEDR_OSPEED1_Pos (2U) | |
7928 #define GPIO_OSPEEDR_OSPEED1_Msk (0x3U << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x0000000C */ | |
7929 #define GPIO_OSPEEDR_OSPEED1 GPIO_OSPEEDR_OSPEED1_Msk | |
7930 #define GPIO_OSPEEDR_OSPEED1_0 (0x1U << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x00000004 */ | |
7931 #define GPIO_OSPEEDR_OSPEED1_1 (0x2U << GPIO_OSPEEDR_OSPEED1_Pos) /*!< 0x00000008 */ | |
7932 #define GPIO_OSPEEDR_OSPEED2_Pos (4U) | |
7933 #define GPIO_OSPEEDR_OSPEED2_Msk (0x3U << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000030 */ | |
7934 #define GPIO_OSPEEDR_OSPEED2 GPIO_OSPEEDR_OSPEED2_Msk | |
7935 #define GPIO_OSPEEDR_OSPEED2_0 (0x1U << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000010 */ | |
7936 #define GPIO_OSPEEDR_OSPEED2_1 (0x2U << GPIO_OSPEEDR_OSPEED2_Pos) /*!< 0x00000020 */ | |
7937 #define GPIO_OSPEEDR_OSPEED3_Pos (6U) | |
7938 #define GPIO_OSPEEDR_OSPEED3_Msk (0x3U << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x000000C0 */ | |
7939 #define GPIO_OSPEEDR_OSPEED3 GPIO_OSPEEDR_OSPEED3_Msk | |
7940 #define GPIO_OSPEEDR_OSPEED3_0 (0x1U << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x00000040 */ | |
7941 #define GPIO_OSPEEDR_OSPEED3_1 (0x2U << GPIO_OSPEEDR_OSPEED3_Pos) /*!< 0x00000080 */ | |
7942 #define GPIO_OSPEEDR_OSPEED4_Pos (8U) | |
7943 #define GPIO_OSPEEDR_OSPEED4_Msk (0x3U << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000300 */ | |
7944 #define GPIO_OSPEEDR_OSPEED4 GPIO_OSPEEDR_OSPEED4_Msk | |
7945 #define GPIO_OSPEEDR_OSPEED4_0 (0x1U << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000100 */ | |
7946 #define GPIO_OSPEEDR_OSPEED4_1 (0x2U << GPIO_OSPEEDR_OSPEED4_Pos) /*!< 0x00000200 */ | |
7947 #define GPIO_OSPEEDR_OSPEED5_Pos (10U) | |
7948 #define GPIO_OSPEEDR_OSPEED5_Msk (0x3U << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000C00 */ | |
7949 #define GPIO_OSPEEDR_OSPEED5 GPIO_OSPEEDR_OSPEED5_Msk | |
7950 #define GPIO_OSPEEDR_OSPEED5_0 (0x1U << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000400 */ | |
7951 #define GPIO_OSPEEDR_OSPEED5_1 (0x2U << GPIO_OSPEEDR_OSPEED5_Pos) /*!< 0x00000800 */ | |
7952 #define GPIO_OSPEEDR_OSPEED6_Pos (12U) | |
7953 #define GPIO_OSPEEDR_OSPEED6_Msk (0x3U << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00003000 */ | |
7954 #define GPIO_OSPEEDR_OSPEED6 GPIO_OSPEEDR_OSPEED6_Msk | |
7955 #define GPIO_OSPEEDR_OSPEED6_0 (0x1U << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00001000 */ | |
7956 #define GPIO_OSPEEDR_OSPEED6_1 (0x2U << GPIO_OSPEEDR_OSPEED6_Pos) /*!< 0x00002000 */ | |
7957 #define GPIO_OSPEEDR_OSPEED7_Pos (14U) | |
7958 #define GPIO_OSPEEDR_OSPEED7_Msk (0x3U << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x0000C000 */ | |
7959 #define GPIO_OSPEEDR_OSPEED7 GPIO_OSPEEDR_OSPEED7_Msk | |
7960 #define GPIO_OSPEEDR_OSPEED7_0 (0x1U << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x00004000 */ | |
7961 #define GPIO_OSPEEDR_OSPEED7_1 (0x2U << GPIO_OSPEEDR_OSPEED7_Pos) /*!< 0x00008000 */ | |
7962 #define GPIO_OSPEEDR_OSPEED8_Pos (16U) | |
7963 #define GPIO_OSPEEDR_OSPEED8_Msk (0x3U << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00030000 */ | |
7964 #define GPIO_OSPEEDR_OSPEED8 GPIO_OSPEEDR_OSPEED8_Msk | |
7965 #define GPIO_OSPEEDR_OSPEED8_0 (0x1U << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00010000 */ | |
7966 #define GPIO_OSPEEDR_OSPEED8_1 (0x2U << GPIO_OSPEEDR_OSPEED8_Pos) /*!< 0x00020000 */ | |
7967 #define GPIO_OSPEEDR_OSPEED9_Pos (18U) | |
7968 #define GPIO_OSPEEDR_OSPEED9_Msk (0x3U << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x000C0000 */ | |
7969 #define GPIO_OSPEEDR_OSPEED9 GPIO_OSPEEDR_OSPEED9_Msk | |
7970 #define GPIO_OSPEEDR_OSPEED9_0 (0x1U << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x00040000 */ | |
7971 #define GPIO_OSPEEDR_OSPEED9_1 (0x2U << GPIO_OSPEEDR_OSPEED9_Pos) /*!< 0x00080000 */ | |
7972 #define GPIO_OSPEEDR_OSPEED10_Pos (20U) | |
7973 #define GPIO_OSPEEDR_OSPEED10_Msk (0x3U << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00300000 */ | |
7974 #define GPIO_OSPEEDR_OSPEED10 GPIO_OSPEEDR_OSPEED10_Msk | |
7975 #define GPIO_OSPEEDR_OSPEED10_0 (0x1U << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00100000 */ | |
7976 #define GPIO_OSPEEDR_OSPEED10_1 (0x2U << GPIO_OSPEEDR_OSPEED10_Pos) /*!< 0x00200000 */ | |
7977 #define GPIO_OSPEEDR_OSPEED11_Pos (22U) | |
7978 #define GPIO_OSPEEDR_OSPEED11_Msk (0x3U << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00C00000 */ | |
7979 #define GPIO_OSPEEDR_OSPEED11 GPIO_OSPEEDR_OSPEED11_Msk | |
7980 #define GPIO_OSPEEDR_OSPEED11_0 (0x1U << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00400000 */ | |
7981 #define GPIO_OSPEEDR_OSPEED11_1 (0x2U << GPIO_OSPEEDR_OSPEED11_Pos) /*!< 0x00800000 */ | |
7982 #define GPIO_OSPEEDR_OSPEED12_Pos (24U) | |
7983 #define GPIO_OSPEEDR_OSPEED12_Msk (0x3U << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x03000000 */ | |
7984 #define GPIO_OSPEEDR_OSPEED12 GPIO_OSPEEDR_OSPEED12_Msk | |
7985 #define GPIO_OSPEEDR_OSPEED12_0 (0x1U << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x01000000 */ | |
7986 #define GPIO_OSPEEDR_OSPEED12_1 (0x2U << GPIO_OSPEEDR_OSPEED12_Pos) /*!< 0x02000000 */ | |
7987 #define GPIO_OSPEEDR_OSPEED13_Pos (26U) | |
7988 #define GPIO_OSPEEDR_OSPEED13_Msk (0x3U << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x0C000000 */ | |
7989 #define GPIO_OSPEEDR_OSPEED13 GPIO_OSPEEDR_OSPEED13_Msk | |
7990 #define GPIO_OSPEEDR_OSPEED13_0 (0x1U << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x04000000 */ | |
7991 #define GPIO_OSPEEDR_OSPEED13_1 (0x2U << GPIO_OSPEEDR_OSPEED13_Pos) /*!< 0x08000000 */ | |
7992 #define GPIO_OSPEEDR_OSPEED14_Pos (28U) | |
7993 #define GPIO_OSPEEDR_OSPEED14_Msk (0x3U << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x30000000 */ | |
7994 #define GPIO_OSPEEDR_OSPEED14 GPIO_OSPEEDR_OSPEED14_Msk | |
7995 #define GPIO_OSPEEDR_OSPEED14_0 (0x1U << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x10000000 */ | |
7996 #define GPIO_OSPEEDR_OSPEED14_1 (0x2U << GPIO_OSPEEDR_OSPEED14_Pos) /*!< 0x20000000 */ | |
7997 #define GPIO_OSPEEDR_OSPEED15_Pos (30U) | |
7998 #define GPIO_OSPEEDR_OSPEED15_Msk (0x3U << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0xC0000000 */ | |
7999 #define GPIO_OSPEEDR_OSPEED15 GPIO_OSPEEDR_OSPEED15_Msk | |
8000 #define GPIO_OSPEEDR_OSPEED15_0 (0x1U << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0x40000000 */ | |
8001 #define GPIO_OSPEEDR_OSPEED15_1 (0x2U << GPIO_OSPEEDR_OSPEED15_Pos) /*!< 0x80000000 */ | |
8002 | |
8003 /* Legacy defines */ | |
8004 #define GPIO_OSPEEDER_OSPEEDR0 GPIO_OSPEEDR_OSPEED0 | |
8005 #define GPIO_OSPEEDER_OSPEEDR0_0 GPIO_OSPEEDR_OSPEED0_0 | |
8006 #define GPIO_OSPEEDER_OSPEEDR0_1 GPIO_OSPEEDR_OSPEED0_1 | |
8007 #define GPIO_OSPEEDER_OSPEEDR1 GPIO_OSPEEDR_OSPEED1 | |
8008 #define GPIO_OSPEEDER_OSPEEDR1_0 GPIO_OSPEEDR_OSPEED1_0 | |
8009 #define GPIO_OSPEEDER_OSPEEDR1_1 GPIO_OSPEEDR_OSPEED1_1 | |
8010 #define GPIO_OSPEEDER_OSPEEDR2 GPIO_OSPEEDR_OSPEED2 | |
8011 #define GPIO_OSPEEDER_OSPEEDR2_0 GPIO_OSPEEDR_OSPEED2_0 | |
8012 #define GPIO_OSPEEDER_OSPEEDR2_1 GPIO_OSPEEDR_OSPEED2_1 | |
8013 #define GPIO_OSPEEDER_OSPEEDR3 GPIO_OSPEEDR_OSPEED3 | |
8014 #define GPIO_OSPEEDER_OSPEEDR3_0 GPIO_OSPEEDR_OSPEED3_0 | |
8015 #define GPIO_OSPEEDER_OSPEEDR3_1 GPIO_OSPEEDR_OSPEED3_1 | |
8016 #define GPIO_OSPEEDER_OSPEEDR4 GPIO_OSPEEDR_OSPEED4 | |
8017 #define GPIO_OSPEEDER_OSPEEDR4_0 GPIO_OSPEEDR_OSPEED4_0 | |
8018 #define GPIO_OSPEEDER_OSPEEDR4_1 GPIO_OSPEEDR_OSPEED4_1 | |
8019 #define GPIO_OSPEEDER_OSPEEDR5 GPIO_OSPEEDR_OSPEED5 | |
8020 #define GPIO_OSPEEDER_OSPEEDR5_0 GPIO_OSPEEDR_OSPEED5_0 | |
8021 #define GPIO_OSPEEDER_OSPEEDR5_1 GPIO_OSPEEDR_OSPEED5_1 | |
8022 #define GPIO_OSPEEDER_OSPEEDR6 GPIO_OSPEEDR_OSPEED6 | |
8023 #define GPIO_OSPEEDER_OSPEEDR6_0 GPIO_OSPEEDR_OSPEED6_0 | |
8024 #define GPIO_OSPEEDER_OSPEEDR6_1 GPIO_OSPEEDR_OSPEED6_1 | |
8025 #define GPIO_OSPEEDER_OSPEEDR7 GPIO_OSPEEDR_OSPEED7 | |
8026 #define GPIO_OSPEEDER_OSPEEDR7_0 GPIO_OSPEEDR_OSPEED7_0 | |
8027 #define GPIO_OSPEEDER_OSPEEDR7_1 GPIO_OSPEEDR_OSPEED7_1 | |
8028 #define GPIO_OSPEEDER_OSPEEDR8 GPIO_OSPEEDR_OSPEED8 | |
8029 #define GPIO_OSPEEDER_OSPEEDR8_0 GPIO_OSPEEDR_OSPEED8_0 | |
8030 #define GPIO_OSPEEDER_OSPEEDR8_1 GPIO_OSPEEDR_OSPEED8_1 | |
8031 #define GPIO_OSPEEDER_OSPEEDR9 GPIO_OSPEEDR_OSPEED9 | |
8032 #define GPIO_OSPEEDER_OSPEEDR9_0 GPIO_OSPEEDR_OSPEED9_0 | |
8033 #define GPIO_OSPEEDER_OSPEEDR9_1 GPIO_OSPEEDR_OSPEED9_1 | |
8034 #define GPIO_OSPEEDER_OSPEEDR10 GPIO_OSPEEDR_OSPEED10 | |
8035 #define GPIO_OSPEEDER_OSPEEDR10_0 GPIO_OSPEEDR_OSPEED10_0 | |
8036 #define GPIO_OSPEEDER_OSPEEDR10_1 GPIO_OSPEEDR_OSPEED10_1 | |
8037 #define GPIO_OSPEEDER_OSPEEDR11 GPIO_OSPEEDR_OSPEED11 | |
8038 #define GPIO_OSPEEDER_OSPEEDR11_0 GPIO_OSPEEDR_OSPEED11_0 | |
8039 #define GPIO_OSPEEDER_OSPEEDR11_1 GPIO_OSPEEDR_OSPEED11_1 | |
8040 #define GPIO_OSPEEDER_OSPEEDR12 GPIO_OSPEEDR_OSPEED12 | |
8041 #define GPIO_OSPEEDER_OSPEEDR12_0 GPIO_OSPEEDR_OSPEED12_0 | |
8042 #define GPIO_OSPEEDER_OSPEEDR12_1 GPIO_OSPEEDR_OSPEED12_1 | |
8043 #define GPIO_OSPEEDER_OSPEEDR13 GPIO_OSPEEDR_OSPEED13 | |
8044 #define GPIO_OSPEEDER_OSPEEDR13_0 GPIO_OSPEEDR_OSPEED13_0 | |
8045 #define GPIO_OSPEEDER_OSPEEDR13_1 GPIO_OSPEEDR_OSPEED13_1 | |
8046 #define GPIO_OSPEEDER_OSPEEDR14 GPIO_OSPEEDR_OSPEED14 | |
8047 #define GPIO_OSPEEDER_OSPEEDR14_0 GPIO_OSPEEDR_OSPEED14_0 | |
8048 #define GPIO_OSPEEDER_OSPEEDR14_1 GPIO_OSPEEDR_OSPEED14_1 | |
8049 #define GPIO_OSPEEDER_OSPEEDR15 GPIO_OSPEEDR_OSPEED15 | |
8050 #define GPIO_OSPEEDER_OSPEEDR15_0 GPIO_OSPEEDR_OSPEED15_0 | |
8051 #define GPIO_OSPEEDER_OSPEEDR15_1 GPIO_OSPEEDR_OSPEED15_1 | |
8052 | |
8053 /****************** Bits definition for GPIO_PUPDR register *****************/ | |
8054 #define GPIO_PUPDR_PUPD0_Pos (0U) | |
8055 #define GPIO_PUPDR_PUPD0_Msk (0x3U << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000003 */ | |
8056 #define GPIO_PUPDR_PUPD0 GPIO_PUPDR_PUPD0_Msk | |
8057 #define GPIO_PUPDR_PUPD0_0 (0x1U << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000001 */ | |
8058 #define GPIO_PUPDR_PUPD0_1 (0x2U << GPIO_PUPDR_PUPD0_Pos) /*!< 0x00000002 */ | |
8059 #define GPIO_PUPDR_PUPD1_Pos (2U) | |
8060 #define GPIO_PUPDR_PUPD1_Msk (0x3U << GPIO_PUPDR_PUPD1_Pos) /*!< 0x0000000C */ | |
8061 #define GPIO_PUPDR_PUPD1 GPIO_PUPDR_PUPD1_Msk | |
8062 #define GPIO_PUPDR_PUPD1_0 (0x1U << GPIO_PUPDR_PUPD1_Pos) /*!< 0x00000004 */ | |
8063 #define GPIO_PUPDR_PUPD1_1 (0x2U << GPIO_PUPDR_PUPD1_Pos) /*!< 0x00000008 */ | |
8064 #define GPIO_PUPDR_PUPD2_Pos (4U) | |
8065 #define GPIO_PUPDR_PUPD2_Msk (0x3U << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000030 */ | |
8066 #define GPIO_PUPDR_PUPD2 GPIO_PUPDR_PUPD2_Msk | |
8067 #define GPIO_PUPDR_PUPD2_0 (0x1U << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000010 */ | |
8068 #define GPIO_PUPDR_PUPD2_1 (0x2U << GPIO_PUPDR_PUPD2_Pos) /*!< 0x00000020 */ | |
8069 #define GPIO_PUPDR_PUPD3_Pos (6U) | |
8070 #define GPIO_PUPDR_PUPD3_Msk (0x3U << GPIO_PUPDR_PUPD3_Pos) /*!< 0x000000C0 */ | |
8071 #define GPIO_PUPDR_PUPD3 GPIO_PUPDR_PUPD3_Msk | |
8072 #define GPIO_PUPDR_PUPD3_0 (0x1U << GPIO_PUPDR_PUPD3_Pos) /*!< 0x00000040 */ | |
8073 #define GPIO_PUPDR_PUPD3_1 (0x2U << GPIO_PUPDR_PUPD3_Pos) /*!< 0x00000080 */ | |
8074 #define GPIO_PUPDR_PUPD4_Pos (8U) | |
8075 #define GPIO_PUPDR_PUPD4_Msk (0x3U << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000300 */ | |
8076 #define GPIO_PUPDR_PUPD4 GPIO_PUPDR_PUPD4_Msk | |
8077 #define GPIO_PUPDR_PUPD4_0 (0x1U << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000100 */ | |
8078 #define GPIO_PUPDR_PUPD4_1 (0x2U << GPIO_PUPDR_PUPD4_Pos) /*!< 0x00000200 */ | |
8079 #define GPIO_PUPDR_PUPD5_Pos (10U) | |
8080 #define GPIO_PUPDR_PUPD5_Msk (0x3U << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000C00 */ | |
8081 #define GPIO_PUPDR_PUPD5 GPIO_PUPDR_PUPD5_Msk | |
8082 #define GPIO_PUPDR_PUPD5_0 (0x1U << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000400 */ | |
8083 #define GPIO_PUPDR_PUPD5_1 (0x2U << GPIO_PUPDR_PUPD5_Pos) /*!< 0x00000800 */ | |
8084 #define GPIO_PUPDR_PUPD6_Pos (12U) | |
8085 #define GPIO_PUPDR_PUPD6_Msk (0x3U << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00003000 */ | |
8086 #define GPIO_PUPDR_PUPD6 GPIO_PUPDR_PUPD6_Msk | |
8087 #define GPIO_PUPDR_PUPD6_0 (0x1U << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00001000 */ | |
8088 #define GPIO_PUPDR_PUPD6_1 (0x2U << GPIO_PUPDR_PUPD6_Pos) /*!< 0x00002000 */ | |
8089 #define GPIO_PUPDR_PUPD7_Pos (14U) | |
8090 #define GPIO_PUPDR_PUPD7_Msk (0x3U << GPIO_PUPDR_PUPD7_Pos) /*!< 0x0000C000 */ | |
8091 #define GPIO_PUPDR_PUPD7 GPIO_PUPDR_PUPD7_Msk | |
8092 #define GPIO_PUPDR_PUPD7_0 (0x1U << GPIO_PUPDR_PUPD7_Pos) /*!< 0x00004000 */ | |
8093 #define GPIO_PUPDR_PUPD7_1 (0x2U << GPIO_PUPDR_PUPD7_Pos) /*!< 0x00008000 */ | |
8094 #define GPIO_PUPDR_PUPD8_Pos (16U) | |
8095 #define GPIO_PUPDR_PUPD8_Msk (0x3U << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00030000 */ | |
8096 #define GPIO_PUPDR_PUPD8 GPIO_PUPDR_PUPD8_Msk | |
8097 #define GPIO_PUPDR_PUPD8_0 (0x1U << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00010000 */ | |
8098 #define GPIO_PUPDR_PUPD8_1 (0x2U << GPIO_PUPDR_PUPD8_Pos) /*!< 0x00020000 */ | |
8099 #define GPIO_PUPDR_PUPD9_Pos (18U) | |
8100 #define GPIO_PUPDR_PUPD9_Msk (0x3U << GPIO_PUPDR_PUPD9_Pos) /*!< 0x000C0000 */ | |
8101 #define GPIO_PUPDR_PUPD9 GPIO_PUPDR_PUPD9_Msk | |
8102 #define GPIO_PUPDR_PUPD9_0 (0x1U << GPIO_PUPDR_PUPD9_Pos) /*!< 0x00040000 */ | |
8103 #define GPIO_PUPDR_PUPD9_1 (0x2U << GPIO_PUPDR_PUPD9_Pos) /*!< 0x00080000 */ | |
8104 #define GPIO_PUPDR_PUPD10_Pos (20U) | |
8105 #define GPIO_PUPDR_PUPD10_Msk (0x3U << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00300000 */ | |
8106 #define GPIO_PUPDR_PUPD10 GPIO_PUPDR_PUPD10_Msk | |
8107 #define GPIO_PUPDR_PUPD10_0 (0x1U << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00100000 */ | |
8108 #define GPIO_PUPDR_PUPD10_1 (0x2U << GPIO_PUPDR_PUPD10_Pos) /*!< 0x00200000 */ | |
8109 #define GPIO_PUPDR_PUPD11_Pos (22U) | |
8110 #define GPIO_PUPDR_PUPD11_Msk (0x3U << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00C00000 */ | |
8111 #define GPIO_PUPDR_PUPD11 GPIO_PUPDR_PUPD11_Msk | |
8112 #define GPIO_PUPDR_PUPD11_0 (0x1U << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00400000 */ | |
8113 #define GPIO_PUPDR_PUPD11_1 (0x2U << GPIO_PUPDR_PUPD11_Pos) /*!< 0x00800000 */ | |
8114 #define GPIO_PUPDR_PUPD12_Pos (24U) | |
8115 #define GPIO_PUPDR_PUPD12_Msk (0x3U << GPIO_PUPDR_PUPD12_Pos) /*!< 0x03000000 */ | |
8116 #define GPIO_PUPDR_PUPD12 GPIO_PUPDR_PUPD12_Msk | |
8117 #define GPIO_PUPDR_PUPD12_0 (0x1U << GPIO_PUPDR_PUPD12_Pos) /*!< 0x01000000 */ | |
8118 #define GPIO_PUPDR_PUPD12_1 (0x2U << GPIO_PUPDR_PUPD12_Pos) /*!< 0x02000000 */ | |
8119 #define GPIO_PUPDR_PUPD13_Pos (26U) | |
8120 #define GPIO_PUPDR_PUPD13_Msk (0x3U << GPIO_PUPDR_PUPD13_Pos) /*!< 0x0C000000 */ | |
8121 #define GPIO_PUPDR_PUPD13 GPIO_PUPDR_PUPD13_Msk | |
8122 #define GPIO_PUPDR_PUPD13_0 (0x1U << GPIO_PUPDR_PUPD13_Pos) /*!< 0x04000000 */ | |
8123 #define GPIO_PUPDR_PUPD13_1 (0x2U << GPIO_PUPDR_PUPD13_Pos) /*!< 0x08000000 */ | |
8124 #define GPIO_PUPDR_PUPD14_Pos (28U) | |
8125 #define GPIO_PUPDR_PUPD14_Msk (0x3U << GPIO_PUPDR_PUPD14_Pos) /*!< 0x30000000 */ | |
8126 #define GPIO_PUPDR_PUPD14 GPIO_PUPDR_PUPD14_Msk | |
8127 #define GPIO_PUPDR_PUPD14_0 (0x1U << GPIO_PUPDR_PUPD14_Pos) /*!< 0x10000000 */ | |
8128 #define GPIO_PUPDR_PUPD14_1 (0x2U << GPIO_PUPDR_PUPD14_Pos) /*!< 0x20000000 */ | |
8129 #define GPIO_PUPDR_PUPD15_Pos (30U) | |
8130 #define GPIO_PUPDR_PUPD15_Msk (0x3U << GPIO_PUPDR_PUPD15_Pos) /*!< 0xC0000000 */ | |
8131 #define GPIO_PUPDR_PUPD15 GPIO_PUPDR_PUPD15_Msk | |
8132 #define GPIO_PUPDR_PUPD15_0 (0x1U << GPIO_PUPDR_PUPD15_Pos) /*!< 0x40000000 */ | |
8133 #define GPIO_PUPDR_PUPD15_1 (0x2U << GPIO_PUPDR_PUPD15_Pos) /*!< 0x80000000 */ | |
8134 | |
8135 /* Legacy defines */ | |
8136 #define GPIO_PUPDR_PUPDR0 GPIO_PUPDR_PUPD0 | |
8137 #define GPIO_PUPDR_PUPDR0_0 GPIO_PUPDR_PUPD0_0 | |
8138 #define GPIO_PUPDR_PUPDR0_1 GPIO_PUPDR_PUPD0_1 | |
8139 #define GPIO_PUPDR_PUPDR1 GPIO_PUPDR_PUPD1 | |
8140 #define GPIO_PUPDR_PUPDR1_0 GPIO_PUPDR_PUPD1_0 | |
8141 #define GPIO_PUPDR_PUPDR1_1 GPIO_PUPDR_PUPD1_1 | |
8142 #define GPIO_PUPDR_PUPDR2 GPIO_PUPDR_PUPD2 | |
8143 #define GPIO_PUPDR_PUPDR2_0 GPIO_PUPDR_PUPD2_0 | |
8144 #define GPIO_PUPDR_PUPDR2_1 GPIO_PUPDR_PUPD2_1 | |
8145 #define GPIO_PUPDR_PUPDR3 GPIO_PUPDR_PUPD3 | |
8146 #define GPIO_PUPDR_PUPDR3_0 GPIO_PUPDR_PUPD3_0 | |
8147 #define GPIO_PUPDR_PUPDR3_1 GPIO_PUPDR_PUPD3_1 | |
8148 #define GPIO_PUPDR_PUPDR4 GPIO_PUPDR_PUPD4 | |
8149 #define GPIO_PUPDR_PUPDR4_0 GPIO_PUPDR_PUPD4_0 | |
8150 #define GPIO_PUPDR_PUPDR4_1 GPIO_PUPDR_PUPD4_1 | |
8151 #define GPIO_PUPDR_PUPDR5 GPIO_PUPDR_PUPD5 | |
8152 #define GPIO_PUPDR_PUPDR5_0 GPIO_PUPDR_PUPD5_0 | |
8153 #define GPIO_PUPDR_PUPDR5_1 GPIO_PUPDR_PUPD5_1 | |
8154 #define GPIO_PUPDR_PUPDR6 GPIO_PUPDR_PUPD6 | |
8155 #define GPIO_PUPDR_PUPDR6_0 GPIO_PUPDR_PUPD6_0 | |
8156 #define GPIO_PUPDR_PUPDR6_1 GPIO_PUPDR_PUPD6_1 | |
8157 #define GPIO_PUPDR_PUPDR7 GPIO_PUPDR_PUPD7 | |
8158 #define GPIO_PUPDR_PUPDR7_0 GPIO_PUPDR_PUPD7_0 | |
8159 #define GPIO_PUPDR_PUPDR7_1 GPIO_PUPDR_PUPD7_1 | |
8160 #define GPIO_PUPDR_PUPDR8 GPIO_PUPDR_PUPD8 | |
8161 #define GPIO_PUPDR_PUPDR8_0 GPIO_PUPDR_PUPD8_0 | |
8162 #define GPIO_PUPDR_PUPDR8_1 GPIO_PUPDR_PUPD8_1 | |
8163 #define GPIO_PUPDR_PUPDR9 GPIO_PUPDR_PUPD9 | |
8164 #define GPIO_PUPDR_PUPDR9_0 GPIO_PUPDR_PUPD9_0 | |
8165 #define GPIO_PUPDR_PUPDR9_1 GPIO_PUPDR_PUPD9_1 | |
8166 #define GPIO_PUPDR_PUPDR10 GPIO_PUPDR_PUPD10 | |
8167 #define GPIO_PUPDR_PUPDR10_0 GPIO_PUPDR_PUPD10_0 | |
8168 #define GPIO_PUPDR_PUPDR10_1 GPIO_PUPDR_PUPD10_1 | |
8169 #define GPIO_PUPDR_PUPDR11 GPIO_PUPDR_PUPD11 | |
8170 #define GPIO_PUPDR_PUPDR11_0 GPIO_PUPDR_PUPD11_0 | |
8171 #define GPIO_PUPDR_PUPDR11_1 GPIO_PUPDR_PUPD11_1 | |
8172 #define GPIO_PUPDR_PUPDR12 GPIO_PUPDR_PUPD12 | |
8173 #define GPIO_PUPDR_PUPDR12_0 GPIO_PUPDR_PUPD12_0 | |
8174 #define GPIO_PUPDR_PUPDR12_1 GPIO_PUPDR_PUPD12_1 | |
8175 #define GPIO_PUPDR_PUPDR13 GPIO_PUPDR_PUPD13 | |
8176 #define GPIO_PUPDR_PUPDR13_0 GPIO_PUPDR_PUPD13_0 | |
8177 #define GPIO_PUPDR_PUPDR13_1 GPIO_PUPDR_PUPD13_1 | |
8178 #define GPIO_PUPDR_PUPDR14 GPIO_PUPDR_PUPD14 | |
8179 #define GPIO_PUPDR_PUPDR14_0 GPIO_PUPDR_PUPD14_0 | |
8180 #define GPIO_PUPDR_PUPDR14_1 GPIO_PUPDR_PUPD14_1 | |
8181 #define GPIO_PUPDR_PUPDR15 GPIO_PUPDR_PUPD15 | |
8182 #define GPIO_PUPDR_PUPDR15_0 GPIO_PUPDR_PUPD15_0 | |
8183 #define GPIO_PUPDR_PUPDR15_1 GPIO_PUPDR_PUPD15_1 | |
8184 | |
8185 /****************** Bits definition for GPIO_IDR register *******************/ | |
8186 #define GPIO_IDR_ID0_Pos (0U) | |
8187 #define GPIO_IDR_ID0_Msk (0x1U << GPIO_IDR_ID0_Pos) /*!< 0x00000001 */ | |
8188 #define GPIO_IDR_ID0 GPIO_IDR_ID0_Msk | |
8189 #define GPIO_IDR_ID1_Pos (1U) | |
8190 #define GPIO_IDR_ID1_Msk (0x1U << GPIO_IDR_ID1_Pos) /*!< 0x00000002 */ | |
8191 #define GPIO_IDR_ID1 GPIO_IDR_ID1_Msk | |
8192 #define GPIO_IDR_ID2_Pos (2U) | |
8193 #define GPIO_IDR_ID2_Msk (0x1U << GPIO_IDR_ID2_Pos) /*!< 0x00000004 */ | |
8194 #define GPIO_IDR_ID2 GPIO_IDR_ID2_Msk | |
8195 #define GPIO_IDR_ID3_Pos (3U) | |
8196 #define GPIO_IDR_ID3_Msk (0x1U << GPIO_IDR_ID3_Pos) /*!< 0x00000008 */ | |
8197 #define GPIO_IDR_ID3 GPIO_IDR_ID3_Msk | |
8198 #define GPIO_IDR_ID4_Pos (4U) | |
8199 #define GPIO_IDR_ID4_Msk (0x1U << GPIO_IDR_ID4_Pos) /*!< 0x00000010 */ | |
8200 #define GPIO_IDR_ID4 GPIO_IDR_ID4_Msk | |
8201 #define GPIO_IDR_ID5_Pos (5U) | |
8202 #define GPIO_IDR_ID5_Msk (0x1U << GPIO_IDR_ID5_Pos) /*!< 0x00000020 */ | |
8203 #define GPIO_IDR_ID5 GPIO_IDR_ID5_Msk | |
8204 #define GPIO_IDR_ID6_Pos (6U) | |
8205 #define GPIO_IDR_ID6_Msk (0x1U << GPIO_IDR_ID6_Pos) /*!< 0x00000040 */ | |
8206 #define GPIO_IDR_ID6 GPIO_IDR_ID6_Msk | |
8207 #define GPIO_IDR_ID7_Pos (7U) | |
8208 #define GPIO_IDR_ID7_Msk (0x1U << GPIO_IDR_ID7_Pos) /*!< 0x00000080 */ | |
8209 #define GPIO_IDR_ID7 GPIO_IDR_ID7_Msk | |
8210 #define GPIO_IDR_ID8_Pos (8U) | |
8211 #define GPIO_IDR_ID8_Msk (0x1U << GPIO_IDR_ID8_Pos) /*!< 0x00000100 */ | |
8212 #define GPIO_IDR_ID8 GPIO_IDR_ID8_Msk | |
8213 #define GPIO_IDR_ID9_Pos (9U) | |
8214 #define GPIO_IDR_ID9_Msk (0x1U << GPIO_IDR_ID9_Pos) /*!< 0x00000200 */ | |
8215 #define GPIO_IDR_ID9 GPIO_IDR_ID9_Msk | |
8216 #define GPIO_IDR_ID10_Pos (10U) | |
8217 #define GPIO_IDR_ID10_Msk (0x1U << GPIO_IDR_ID10_Pos) /*!< 0x00000400 */ | |
8218 #define GPIO_IDR_ID10 GPIO_IDR_ID10_Msk | |
8219 #define GPIO_IDR_ID11_Pos (11U) | |
8220 #define GPIO_IDR_ID11_Msk (0x1U << GPIO_IDR_ID11_Pos) /*!< 0x00000800 */ | |
8221 #define GPIO_IDR_ID11 GPIO_IDR_ID11_Msk | |
8222 #define GPIO_IDR_ID12_Pos (12U) | |
8223 #define GPIO_IDR_ID12_Msk (0x1U << GPIO_IDR_ID12_Pos) /*!< 0x00001000 */ | |
8224 #define GPIO_IDR_ID12 GPIO_IDR_ID12_Msk | |
8225 #define GPIO_IDR_ID13_Pos (13U) | |
8226 #define GPIO_IDR_ID13_Msk (0x1U << GPIO_IDR_ID13_Pos) /*!< 0x00002000 */ | |
8227 #define GPIO_IDR_ID13 GPIO_IDR_ID13_Msk | |
8228 #define GPIO_IDR_ID14_Pos (14U) | |
8229 #define GPIO_IDR_ID14_Msk (0x1U << GPIO_IDR_ID14_Pos) /*!< 0x00004000 */ | |
8230 #define GPIO_IDR_ID14 GPIO_IDR_ID14_Msk | |
8231 #define GPIO_IDR_ID15_Pos (15U) | |
8232 #define GPIO_IDR_ID15_Msk (0x1U << GPIO_IDR_ID15_Pos) /*!< 0x00008000 */ | |
8233 #define GPIO_IDR_ID15 GPIO_IDR_ID15_Msk | |
8234 | |
8235 /* Legacy defines */ | |
8236 #define GPIO_IDR_IDR_0 GPIO_IDR_ID0 | |
8237 #define GPIO_IDR_IDR_1 GPIO_IDR_ID1 | |
8238 #define GPIO_IDR_IDR_2 GPIO_IDR_ID2 | |
8239 #define GPIO_IDR_IDR_3 GPIO_IDR_ID3 | |
8240 #define GPIO_IDR_IDR_4 GPIO_IDR_ID4 | |
8241 #define GPIO_IDR_IDR_5 GPIO_IDR_ID5 | |
8242 #define GPIO_IDR_IDR_6 GPIO_IDR_ID6 | |
8243 #define GPIO_IDR_IDR_7 GPIO_IDR_ID7 | |
8244 #define GPIO_IDR_IDR_8 GPIO_IDR_ID8 | |
8245 #define GPIO_IDR_IDR_9 GPIO_IDR_ID9 | |
8246 #define GPIO_IDR_IDR_10 GPIO_IDR_ID10 | |
8247 #define GPIO_IDR_IDR_11 GPIO_IDR_ID11 | |
8248 #define GPIO_IDR_IDR_12 GPIO_IDR_ID12 | |
8249 #define GPIO_IDR_IDR_13 GPIO_IDR_ID13 | |
8250 #define GPIO_IDR_IDR_14 GPIO_IDR_ID14 | |
8251 #define GPIO_IDR_IDR_15 GPIO_IDR_ID15 | |
8252 | |
8253 /* Old GPIO_IDR register bits definition, maintained for legacy purpose */ | |
8254 #define GPIO_OTYPER_IDR_0 GPIO_IDR_ID0 | |
8255 #define GPIO_OTYPER_IDR_1 GPIO_IDR_ID1 | |
8256 #define GPIO_OTYPER_IDR_2 GPIO_IDR_ID2 | |
8257 #define GPIO_OTYPER_IDR_3 GPIO_IDR_ID3 | |
8258 #define GPIO_OTYPER_IDR_4 GPIO_IDR_ID4 | |
8259 #define GPIO_OTYPER_IDR_5 GPIO_IDR_ID5 | |
8260 #define GPIO_OTYPER_IDR_6 GPIO_IDR_ID6 | |
8261 #define GPIO_OTYPER_IDR_7 GPIO_IDR_ID7 | |
8262 #define GPIO_OTYPER_IDR_8 GPIO_IDR_ID8 | |
8263 #define GPIO_OTYPER_IDR_9 GPIO_IDR_ID9 | |
8264 #define GPIO_OTYPER_IDR_10 GPIO_IDR_ID10 | |
8265 #define GPIO_OTYPER_IDR_11 GPIO_IDR_ID11 | |
8266 #define GPIO_OTYPER_IDR_12 GPIO_IDR_ID12 | |
8267 #define GPIO_OTYPER_IDR_13 GPIO_IDR_ID13 | |
8268 #define GPIO_OTYPER_IDR_14 GPIO_IDR_ID14 | |
8269 #define GPIO_OTYPER_IDR_15 GPIO_IDR_ID15 | |
8270 | |
8271 /****************** Bits definition for GPIO_ODR register *******************/ | |
8272 #define GPIO_ODR_OD0_Pos (0U) | |
8273 #define GPIO_ODR_OD0_Msk (0x1U << GPIO_ODR_OD0_Pos) /*!< 0x00000001 */ | |
8274 #define GPIO_ODR_OD0 GPIO_ODR_OD0_Msk | |
8275 #define GPIO_ODR_OD1_Pos (1U) | |
8276 #define GPIO_ODR_OD1_Msk (0x1U << GPIO_ODR_OD1_Pos) /*!< 0x00000002 */ | |
8277 #define GPIO_ODR_OD1 GPIO_ODR_OD1_Msk | |
8278 #define GPIO_ODR_OD2_Pos (2U) | |
8279 #define GPIO_ODR_OD2_Msk (0x1U << GPIO_ODR_OD2_Pos) /*!< 0x00000004 */ | |
8280 #define GPIO_ODR_OD2 GPIO_ODR_OD2_Msk | |
8281 #define GPIO_ODR_OD3_Pos (3U) | |
8282 #define GPIO_ODR_OD3_Msk (0x1U << GPIO_ODR_OD3_Pos) /*!< 0x00000008 */ | |
8283 #define GPIO_ODR_OD3 GPIO_ODR_OD3_Msk | |
8284 #define GPIO_ODR_OD4_Pos (4U) | |
8285 #define GPIO_ODR_OD4_Msk (0x1U << GPIO_ODR_OD4_Pos) /*!< 0x00000010 */ | |
8286 #define GPIO_ODR_OD4 GPIO_ODR_OD4_Msk | |
8287 #define GPIO_ODR_OD5_Pos (5U) | |
8288 #define GPIO_ODR_OD5_Msk (0x1U << GPIO_ODR_OD5_Pos) /*!< 0x00000020 */ | |
8289 #define GPIO_ODR_OD5 GPIO_ODR_OD5_Msk | |
8290 #define GPIO_ODR_OD6_Pos (6U) | |
8291 #define GPIO_ODR_OD6_Msk (0x1U << GPIO_ODR_OD6_Pos) /*!< 0x00000040 */ | |
8292 #define GPIO_ODR_OD6 GPIO_ODR_OD6_Msk | |
8293 #define GPIO_ODR_OD7_Pos (7U) | |
8294 #define GPIO_ODR_OD7_Msk (0x1U << GPIO_ODR_OD7_Pos) /*!< 0x00000080 */ | |
8295 #define GPIO_ODR_OD7 GPIO_ODR_OD7_Msk | |
8296 #define GPIO_ODR_OD8_Pos (8U) | |
8297 #define GPIO_ODR_OD8_Msk (0x1U << GPIO_ODR_OD8_Pos) /*!< 0x00000100 */ | |
8298 #define GPIO_ODR_OD8 GPIO_ODR_OD8_Msk | |
8299 #define GPIO_ODR_OD9_Pos (9U) | |
8300 #define GPIO_ODR_OD9_Msk (0x1U << GPIO_ODR_OD9_Pos) /*!< 0x00000200 */ | |
8301 #define GPIO_ODR_OD9 GPIO_ODR_OD9_Msk | |
8302 #define GPIO_ODR_OD10_Pos (10U) | |
8303 #define GPIO_ODR_OD10_Msk (0x1U << GPIO_ODR_OD10_Pos) /*!< 0x00000400 */ | |
8304 #define GPIO_ODR_OD10 GPIO_ODR_OD10_Msk | |
8305 #define GPIO_ODR_OD11_Pos (11U) | |
8306 #define GPIO_ODR_OD11_Msk (0x1U << GPIO_ODR_OD11_Pos) /*!< 0x00000800 */ | |
8307 #define GPIO_ODR_OD11 GPIO_ODR_OD11_Msk | |
8308 #define GPIO_ODR_OD12_Pos (12U) | |
8309 #define GPIO_ODR_OD12_Msk (0x1U << GPIO_ODR_OD12_Pos) /*!< 0x00001000 */ | |
8310 #define GPIO_ODR_OD12 GPIO_ODR_OD12_Msk | |
8311 #define GPIO_ODR_OD13_Pos (13U) | |
8312 #define GPIO_ODR_OD13_Msk (0x1U << GPIO_ODR_OD13_Pos) /*!< 0x00002000 */ | |
8313 #define GPIO_ODR_OD13 GPIO_ODR_OD13_Msk | |
8314 #define GPIO_ODR_OD14_Pos (14U) | |
8315 #define GPIO_ODR_OD14_Msk (0x1U << GPIO_ODR_OD14_Pos) /*!< 0x00004000 */ | |
8316 #define GPIO_ODR_OD14 GPIO_ODR_OD14_Msk | |
8317 #define GPIO_ODR_OD15_Pos (15U) | |
8318 #define GPIO_ODR_OD15_Msk (0x1U << GPIO_ODR_OD15_Pos) /*!< 0x00008000 */ | |
8319 #define GPIO_ODR_OD15 GPIO_ODR_OD15_Msk | |
8320 | |
8321 /* Legacy defines */ | |
8322 #define GPIO_ODR_ODR_0 GPIO_ODR_OD0 | |
8323 #define GPIO_ODR_ODR_1 GPIO_ODR_OD1 | |
8324 #define GPIO_ODR_ODR_2 GPIO_ODR_OD2 | |
8325 #define GPIO_ODR_ODR_3 GPIO_ODR_OD3 | |
8326 #define GPIO_ODR_ODR_4 GPIO_ODR_OD4 | |
8327 #define GPIO_ODR_ODR_5 GPIO_ODR_OD5 | |
8328 #define GPIO_ODR_ODR_6 GPIO_ODR_OD6 | |
8329 #define GPIO_ODR_ODR_7 GPIO_ODR_OD7 | |
8330 #define GPIO_ODR_ODR_8 GPIO_ODR_OD8 | |
8331 #define GPIO_ODR_ODR_9 GPIO_ODR_OD9 | |
8332 #define GPIO_ODR_ODR_10 GPIO_ODR_OD10 | |
8333 #define GPIO_ODR_ODR_11 GPIO_ODR_OD11 | |
8334 #define GPIO_ODR_ODR_12 GPIO_ODR_OD12 | |
8335 #define GPIO_ODR_ODR_13 GPIO_ODR_OD13 | |
8336 #define GPIO_ODR_ODR_14 GPIO_ODR_OD14 | |
8337 #define GPIO_ODR_ODR_15 GPIO_ODR_OD15 | |
8338 | |
8339 /* Old GPIO_ODR register bits definition, maintained for legacy purpose */ | |
8340 #define GPIO_OTYPER_ODR_0 GPIO_ODR_OD0 | |
8341 #define GPIO_OTYPER_ODR_1 GPIO_ODR_OD1 | |
8342 #define GPIO_OTYPER_ODR_2 GPIO_ODR_OD2 | |
8343 #define GPIO_OTYPER_ODR_3 GPIO_ODR_OD3 | |
8344 #define GPIO_OTYPER_ODR_4 GPIO_ODR_OD4 | |
8345 #define GPIO_OTYPER_ODR_5 GPIO_ODR_OD5 | |
8346 #define GPIO_OTYPER_ODR_6 GPIO_ODR_OD6 | |
8347 #define GPIO_OTYPER_ODR_7 GPIO_ODR_OD7 | |
8348 #define GPIO_OTYPER_ODR_8 GPIO_ODR_OD8 | |
8349 #define GPIO_OTYPER_ODR_9 GPIO_ODR_OD9 | |
8350 #define GPIO_OTYPER_ODR_10 GPIO_ODR_OD10 | |
8351 #define GPIO_OTYPER_ODR_11 GPIO_ODR_OD11 | |
8352 #define GPIO_OTYPER_ODR_12 GPIO_ODR_OD12 | |
8353 #define GPIO_OTYPER_ODR_13 GPIO_ODR_OD13 | |
8354 #define GPIO_OTYPER_ODR_14 GPIO_ODR_OD14 | |
8355 #define GPIO_OTYPER_ODR_15 GPIO_ODR_OD15 | |
8356 | |
8357 /****************** Bits definition for GPIO_BSRR register ******************/ | |
8358 #define GPIO_BSRR_BS0_Pos (0U) | |
8359 #define GPIO_BSRR_BS0_Msk (0x1U << GPIO_BSRR_BS0_Pos) /*!< 0x00000001 */ | |
8360 #define GPIO_BSRR_BS0 GPIO_BSRR_BS0_Msk | |
8361 #define GPIO_BSRR_BS1_Pos (1U) | |
8362 #define GPIO_BSRR_BS1_Msk (0x1U << GPIO_BSRR_BS1_Pos) /*!< 0x00000002 */ | |
8363 #define GPIO_BSRR_BS1 GPIO_BSRR_BS1_Msk | |
8364 #define GPIO_BSRR_BS2_Pos (2U) | |
8365 #define GPIO_BSRR_BS2_Msk (0x1U << GPIO_BSRR_BS2_Pos) /*!< 0x00000004 */ | |
8366 #define GPIO_BSRR_BS2 GPIO_BSRR_BS2_Msk | |
8367 #define GPIO_BSRR_BS3_Pos (3U) | |
8368 #define GPIO_BSRR_BS3_Msk (0x1U << GPIO_BSRR_BS3_Pos) /*!< 0x00000008 */ | |
8369 #define GPIO_BSRR_BS3 GPIO_BSRR_BS3_Msk | |
8370 #define GPIO_BSRR_BS4_Pos (4U) | |
8371 #define GPIO_BSRR_BS4_Msk (0x1U << GPIO_BSRR_BS4_Pos) /*!< 0x00000010 */ | |
8372 #define GPIO_BSRR_BS4 GPIO_BSRR_BS4_Msk | |
8373 #define GPIO_BSRR_BS5_Pos (5U) | |
8374 #define GPIO_BSRR_BS5_Msk (0x1U << GPIO_BSRR_BS5_Pos) /*!< 0x00000020 */ | |
8375 #define GPIO_BSRR_BS5 GPIO_BSRR_BS5_Msk | |
8376 #define GPIO_BSRR_BS6_Pos (6U) | |
8377 #define GPIO_BSRR_BS6_Msk (0x1U << GPIO_BSRR_BS6_Pos) /*!< 0x00000040 */ | |
8378 #define GPIO_BSRR_BS6 GPIO_BSRR_BS6_Msk | |
8379 #define GPIO_BSRR_BS7_Pos (7U) | |
8380 #define GPIO_BSRR_BS7_Msk (0x1U << GPIO_BSRR_BS7_Pos) /*!< 0x00000080 */ | |
8381 #define GPIO_BSRR_BS7 GPIO_BSRR_BS7_Msk | |
8382 #define GPIO_BSRR_BS8_Pos (8U) | |
8383 #define GPIO_BSRR_BS8_Msk (0x1U << GPIO_BSRR_BS8_Pos) /*!< 0x00000100 */ | |
8384 #define GPIO_BSRR_BS8 GPIO_BSRR_BS8_Msk | |
8385 #define GPIO_BSRR_BS9_Pos (9U) | |
8386 #define GPIO_BSRR_BS9_Msk (0x1U << GPIO_BSRR_BS9_Pos) /*!< 0x00000200 */ | |
8387 #define GPIO_BSRR_BS9 GPIO_BSRR_BS9_Msk | |
8388 #define GPIO_BSRR_BS10_Pos (10U) | |
8389 #define GPIO_BSRR_BS10_Msk (0x1U << GPIO_BSRR_BS10_Pos) /*!< 0x00000400 */ | |
8390 #define GPIO_BSRR_BS10 GPIO_BSRR_BS10_Msk | |
8391 #define GPIO_BSRR_BS11_Pos (11U) | |
8392 #define GPIO_BSRR_BS11_Msk (0x1U << GPIO_BSRR_BS11_Pos) /*!< 0x00000800 */ | |
8393 #define GPIO_BSRR_BS11 GPIO_BSRR_BS11_Msk | |
8394 #define GPIO_BSRR_BS12_Pos (12U) | |
8395 #define GPIO_BSRR_BS12_Msk (0x1U << GPIO_BSRR_BS12_Pos) /*!< 0x00001000 */ | |
8396 #define GPIO_BSRR_BS12 GPIO_BSRR_BS12_Msk | |
8397 #define GPIO_BSRR_BS13_Pos (13U) | |
8398 #define GPIO_BSRR_BS13_Msk (0x1U << GPIO_BSRR_BS13_Pos) /*!< 0x00002000 */ | |
8399 #define GPIO_BSRR_BS13 GPIO_BSRR_BS13_Msk | |
8400 #define GPIO_BSRR_BS14_Pos (14U) | |
8401 #define GPIO_BSRR_BS14_Msk (0x1U << GPIO_BSRR_BS14_Pos) /*!< 0x00004000 */ | |
8402 #define GPIO_BSRR_BS14 GPIO_BSRR_BS14_Msk | |
8403 #define GPIO_BSRR_BS15_Pos (15U) | |
8404 #define GPIO_BSRR_BS15_Msk (0x1U << GPIO_BSRR_BS15_Pos) /*!< 0x00008000 */ | |
8405 #define GPIO_BSRR_BS15 GPIO_BSRR_BS15_Msk | |
8406 #define GPIO_BSRR_BR0_Pos (16U) | |
8407 #define GPIO_BSRR_BR0_Msk (0x1U << GPIO_BSRR_BR0_Pos) /*!< 0x00010000 */ | |
8408 #define GPIO_BSRR_BR0 GPIO_BSRR_BR0_Msk | |
8409 #define GPIO_BSRR_BR1_Pos (17U) | |
8410 #define GPIO_BSRR_BR1_Msk (0x1U << GPIO_BSRR_BR1_Pos) /*!< 0x00020000 */ | |
8411 #define GPIO_BSRR_BR1 GPIO_BSRR_BR1_Msk | |
8412 #define GPIO_BSRR_BR2_Pos (18U) | |
8413 #define GPIO_BSRR_BR2_Msk (0x1U << GPIO_BSRR_BR2_Pos) /*!< 0x00040000 */ | |
8414 #define GPIO_BSRR_BR2 GPIO_BSRR_BR2_Msk | |
8415 #define GPIO_BSRR_BR3_Pos (19U) | |
8416 #define GPIO_BSRR_BR3_Msk (0x1U << GPIO_BSRR_BR3_Pos) /*!< 0x00080000 */ | |
8417 #define GPIO_BSRR_BR3 GPIO_BSRR_BR3_Msk | |
8418 #define GPIO_BSRR_BR4_Pos (20U) | |
8419 #define GPIO_BSRR_BR4_Msk (0x1U << GPIO_BSRR_BR4_Pos) /*!< 0x00100000 */ | |
8420 #define GPIO_BSRR_BR4 GPIO_BSRR_BR4_Msk | |
8421 #define GPIO_BSRR_BR5_Pos (21U) | |
8422 #define GPIO_BSRR_BR5_Msk (0x1U << GPIO_BSRR_BR5_Pos) /*!< 0x00200000 */ | |
8423 #define GPIO_BSRR_BR5 GPIO_BSRR_BR5_Msk | |
8424 #define GPIO_BSRR_BR6_Pos (22U) | |
8425 #define GPIO_BSRR_BR6_Msk (0x1U << GPIO_BSRR_BR6_Pos) /*!< 0x00400000 */ | |
8426 #define GPIO_BSRR_BR6 GPIO_BSRR_BR6_Msk | |
8427 #define GPIO_BSRR_BR7_Pos (23U) | |
8428 #define GPIO_BSRR_BR7_Msk (0x1U << GPIO_BSRR_BR7_Pos) /*!< 0x00800000 */ | |
8429 #define GPIO_BSRR_BR7 GPIO_BSRR_BR7_Msk | |
8430 #define GPIO_BSRR_BR8_Pos (24U) | |
8431 #define GPIO_BSRR_BR8_Msk (0x1U << GPIO_BSRR_BR8_Pos) /*!< 0x01000000 */ | |
8432 #define GPIO_BSRR_BR8 GPIO_BSRR_BR8_Msk | |
8433 #define GPIO_BSRR_BR9_Pos (25U) | |
8434 #define GPIO_BSRR_BR9_Msk (0x1U << GPIO_BSRR_BR9_Pos) /*!< 0x02000000 */ | |
8435 #define GPIO_BSRR_BR9 GPIO_BSRR_BR9_Msk | |
8436 #define GPIO_BSRR_BR10_Pos (26U) | |
8437 #define GPIO_BSRR_BR10_Msk (0x1U << GPIO_BSRR_BR10_Pos) /*!< 0x04000000 */ | |
8438 #define GPIO_BSRR_BR10 GPIO_BSRR_BR10_Msk | |
8439 #define GPIO_BSRR_BR11_Pos (27U) | |
8440 #define GPIO_BSRR_BR11_Msk (0x1U << GPIO_BSRR_BR11_Pos) /*!< 0x08000000 */ | |
8441 #define GPIO_BSRR_BR11 GPIO_BSRR_BR11_Msk | |
8442 #define GPIO_BSRR_BR12_Pos (28U) | |
8443 #define GPIO_BSRR_BR12_Msk (0x1U << GPIO_BSRR_BR12_Pos) /*!< 0x10000000 */ | |
8444 #define GPIO_BSRR_BR12 GPIO_BSRR_BR12_Msk | |
8445 #define GPIO_BSRR_BR13_Pos (29U) | |
8446 #define GPIO_BSRR_BR13_Msk (0x1U << GPIO_BSRR_BR13_Pos) /*!< 0x20000000 */ | |
8447 #define GPIO_BSRR_BR13 GPIO_BSRR_BR13_Msk | |
8448 #define GPIO_BSRR_BR14_Pos (30U) | |
8449 #define GPIO_BSRR_BR14_Msk (0x1U << GPIO_BSRR_BR14_Pos) /*!< 0x40000000 */ | |
8450 #define GPIO_BSRR_BR14 GPIO_BSRR_BR14_Msk | |
8451 #define GPIO_BSRR_BR15_Pos (31U) | |
8452 #define GPIO_BSRR_BR15_Msk (0x1U << GPIO_BSRR_BR15_Pos) /*!< 0x80000000 */ | |
8453 #define GPIO_BSRR_BR15 GPIO_BSRR_BR15_Msk | |
8454 | |
8455 /* Legacy defines */ | |
8456 #define GPIO_BSRR_BS_0 GPIO_BSRR_BS0 | |
8457 #define GPIO_BSRR_BS_1 GPIO_BSRR_BS1 | |
8458 #define GPIO_BSRR_BS_2 GPIO_BSRR_BS2 | |
8459 #define GPIO_BSRR_BS_3 GPIO_BSRR_BS3 | |
8460 #define GPIO_BSRR_BS_4 GPIO_BSRR_BS4 | |
8461 #define GPIO_BSRR_BS_5 GPIO_BSRR_BS5 | |
8462 #define GPIO_BSRR_BS_6 GPIO_BSRR_BS6 | |
8463 #define GPIO_BSRR_BS_7 GPIO_BSRR_BS7 | |
8464 #define GPIO_BSRR_BS_8 GPIO_BSRR_BS8 | |
8465 #define GPIO_BSRR_BS_9 GPIO_BSRR_BS9 | |
8466 #define GPIO_BSRR_BS_10 GPIO_BSRR_BS10 | |
8467 #define GPIO_BSRR_BS_11 GPIO_BSRR_BS11 | |
8468 #define GPIO_BSRR_BS_12 GPIO_BSRR_BS12 | |
8469 #define GPIO_BSRR_BS_13 GPIO_BSRR_BS13 | |
8470 #define GPIO_BSRR_BS_14 GPIO_BSRR_BS14 | |
8471 #define GPIO_BSRR_BS_15 GPIO_BSRR_BS15 | |
8472 #define GPIO_BSRR_BR_0 GPIO_BSRR_BR0 | |
8473 #define GPIO_BSRR_BR_1 GPIO_BSRR_BR1 | |
8474 #define GPIO_BSRR_BR_2 GPIO_BSRR_BR2 | |
8475 #define GPIO_BSRR_BR_3 GPIO_BSRR_BR3 | |
8476 #define GPIO_BSRR_BR_4 GPIO_BSRR_BR4 | |
8477 #define GPIO_BSRR_BR_5 GPIO_BSRR_BR5 | |
8478 #define GPIO_BSRR_BR_6 GPIO_BSRR_BR6 | |
8479 #define GPIO_BSRR_BR_7 GPIO_BSRR_BR7 | |
8480 #define GPIO_BSRR_BR_8 GPIO_BSRR_BR8 | |
8481 #define GPIO_BSRR_BR_9 GPIO_BSRR_BR9 | |
8482 #define GPIO_BSRR_BR_10 GPIO_BSRR_BR10 | |
8483 #define GPIO_BSRR_BR_11 GPIO_BSRR_BR11 | |
8484 #define GPIO_BSRR_BR_12 GPIO_BSRR_BR12 | |
8485 #define GPIO_BSRR_BR_13 GPIO_BSRR_BR13 | |
8486 #define GPIO_BSRR_BR_14 GPIO_BSRR_BR14 | |
8487 #define GPIO_BSRR_BR_15 GPIO_BSRR_BR15 | |
8488 | |
8489 /****************** Bit definition for GPIO_LCKR register *********************/ | |
8490 #define GPIO_LCKR_LCK0_Pos (0U) | |
8491 #define GPIO_LCKR_LCK0_Msk (0x1U << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */ | |
8492 #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk | |
8493 #define GPIO_LCKR_LCK1_Pos (1U) | |
8494 #define GPIO_LCKR_LCK1_Msk (0x1U << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */ | |
8495 #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk | |
8496 #define GPIO_LCKR_LCK2_Pos (2U) | |
8497 #define GPIO_LCKR_LCK2_Msk (0x1U << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */ | |
8498 #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk | |
8499 #define GPIO_LCKR_LCK3_Pos (3U) | |
8500 #define GPIO_LCKR_LCK3_Msk (0x1U << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */ | |
8501 #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk | |
8502 #define GPIO_LCKR_LCK4_Pos (4U) | |
8503 #define GPIO_LCKR_LCK4_Msk (0x1U << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */ | |
8504 #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk | |
8505 #define GPIO_LCKR_LCK5_Pos (5U) | |
8506 #define GPIO_LCKR_LCK5_Msk (0x1U << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */ | |
8507 #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk | |
8508 #define GPIO_LCKR_LCK6_Pos (6U) | |
8509 #define GPIO_LCKR_LCK6_Msk (0x1U << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */ | |
8510 #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk | |
8511 #define GPIO_LCKR_LCK7_Pos (7U) | |
8512 #define GPIO_LCKR_LCK7_Msk (0x1U << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */ | |
8513 #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk | |
8514 #define GPIO_LCKR_LCK8_Pos (8U) | |
8515 #define GPIO_LCKR_LCK8_Msk (0x1U << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */ | |
8516 #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk | |
8517 #define GPIO_LCKR_LCK9_Pos (9U) | |
8518 #define GPIO_LCKR_LCK9_Msk (0x1U << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */ | |
8519 #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk | |
8520 #define GPIO_LCKR_LCK10_Pos (10U) | |
8521 #define GPIO_LCKR_LCK10_Msk (0x1U << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */ | |
8522 #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk | |
8523 #define GPIO_LCKR_LCK11_Pos (11U) | |
8524 #define GPIO_LCKR_LCK11_Msk (0x1U << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */ | |
8525 #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk | |
8526 #define GPIO_LCKR_LCK12_Pos (12U) | |
8527 #define GPIO_LCKR_LCK12_Msk (0x1U << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */ | |
8528 #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk | |
8529 #define GPIO_LCKR_LCK13_Pos (13U) | |
8530 #define GPIO_LCKR_LCK13_Msk (0x1U << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */ | |
8531 #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk | |
8532 #define GPIO_LCKR_LCK14_Pos (14U) | |
8533 #define GPIO_LCKR_LCK14_Msk (0x1U << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */ | |
8534 #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk | |
8535 #define GPIO_LCKR_LCK15_Pos (15U) | |
8536 #define GPIO_LCKR_LCK15_Msk (0x1U << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */ | |
8537 #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk | |
8538 #define GPIO_LCKR_LCKK_Pos (16U) | |
8539 #define GPIO_LCKR_LCKK_Msk (0x1U << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */ | |
8540 #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk | |
8541 | |
8542 /****************** Bit definition for GPIO_AFRL register *********************/ | |
8543 #define GPIO_AFRL_AFSEL0_Pos (0U) | |
8544 #define GPIO_AFRL_AFSEL0_Msk (0xFU << GPIO_AFRL_AFSEL0_Pos) /*!< 0x0000000F */ | |
8545 #define GPIO_AFRL_AFSEL0 GPIO_AFRL_AFSEL0_Msk | |
8546 #define GPIO_AFRL_AFSEL0_0 (0x1U << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000001 */ | |
8547 #define GPIO_AFRL_AFSEL0_1 (0x2U << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000002 */ | |
8548 #define GPIO_AFRL_AFSEL0_2 (0x4U << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000004 */ | |
8549 #define GPIO_AFRL_AFSEL0_3 (0x8U << GPIO_AFRL_AFSEL0_Pos) /*!< 0x00000008 */ | |
8550 #define GPIO_AFRL_AFSEL1_Pos (4U) | |
8551 #define GPIO_AFRL_AFSEL1_Msk (0xFU << GPIO_AFRL_AFSEL1_Pos) /*!< 0x000000F0 */ | |
8552 #define GPIO_AFRL_AFSEL1 GPIO_AFRL_AFSEL1_Msk | |
8553 #define GPIO_AFRL_AFSEL1_0 (0x1U << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000010 */ | |
8554 #define GPIO_AFRL_AFSEL1_1 (0x2U << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000020 */ | |
8555 #define GPIO_AFRL_AFSEL1_2 (0x4U << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000040 */ | |
8556 #define GPIO_AFRL_AFSEL1_3 (0x8U << GPIO_AFRL_AFSEL1_Pos) /*!< 0x00000080 */ | |
8557 #define GPIO_AFRL_AFSEL2_Pos (8U) | |
8558 #define GPIO_AFRL_AFSEL2_Msk (0xFU << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000F00 */ | |
8559 #define GPIO_AFRL_AFSEL2 GPIO_AFRL_AFSEL2_Msk | |
8560 #define GPIO_AFRL_AFSEL2_0 (0x1U << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000100 */ | |
8561 #define GPIO_AFRL_AFSEL2_1 (0x2U << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000200 */ | |
8562 #define GPIO_AFRL_AFSEL2_2 (0x4U << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000400 */ | |
8563 #define GPIO_AFRL_AFSEL2_3 (0x8U << GPIO_AFRL_AFSEL2_Pos) /*!< 0x00000800 */ | |
8564 #define GPIO_AFRL_AFSEL3_Pos (12U) | |
8565 #define GPIO_AFRL_AFSEL3_Msk (0xFU << GPIO_AFRL_AFSEL3_Pos) /*!< 0x0000F000 */ | |
8566 #define GPIO_AFRL_AFSEL3 GPIO_AFRL_AFSEL3_Msk | |
8567 #define GPIO_AFRL_AFSEL3_0 (0x1U << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00001000 */ | |
8568 #define GPIO_AFRL_AFSEL3_1 (0x2U << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00002000 */ | |
8569 #define GPIO_AFRL_AFSEL3_2 (0x4U << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00004000 */ | |
8570 #define GPIO_AFRL_AFSEL3_3 (0x8U << GPIO_AFRL_AFSEL3_Pos) /*!< 0x00008000 */ | |
8571 #define GPIO_AFRL_AFSEL4_Pos (16U) | |
8572 #define GPIO_AFRL_AFSEL4_Msk (0xFU << GPIO_AFRL_AFSEL4_Pos) /*!< 0x000F0000 */ | |
8573 #define GPIO_AFRL_AFSEL4 GPIO_AFRL_AFSEL4_Msk | |
8574 #define GPIO_AFRL_AFSEL4_0 (0x1U << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00010000 */ | |
8575 #define GPIO_AFRL_AFSEL4_1 (0x2U << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00020000 */ | |
8576 #define GPIO_AFRL_AFSEL4_2 (0x4U << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00040000 */ | |
8577 #define GPIO_AFRL_AFSEL4_3 (0x8U << GPIO_AFRL_AFSEL4_Pos) /*!< 0x00080000 */ | |
8578 #define GPIO_AFRL_AFSEL5_Pos (20U) | |
8579 #define GPIO_AFRL_AFSEL5_Msk (0xFU << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00F00000 */ | |
8580 #define GPIO_AFRL_AFSEL5 GPIO_AFRL_AFSEL5_Msk | |
8581 #define GPIO_AFRL_AFSEL5_0 (0x1U << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00100000 */ | |
8582 #define GPIO_AFRL_AFSEL5_1 (0x2U << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00200000 */ | |
8583 #define GPIO_AFRL_AFSEL5_2 (0x4U << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00400000 */ | |
8584 #define GPIO_AFRL_AFSEL5_3 (0x8U << GPIO_AFRL_AFSEL5_Pos) /*!< 0x00800000 */ | |
8585 #define GPIO_AFRL_AFSEL6_Pos (24U) | |
8586 #define GPIO_AFRL_AFSEL6_Msk (0xFU << GPIO_AFRL_AFSEL6_Pos) /*!< 0x0F000000 */ | |
8587 #define GPIO_AFRL_AFSEL6 GPIO_AFRL_AFSEL6_Msk | |
8588 #define GPIO_AFRL_AFSEL6_0 (0x1U << GPIO_AFRL_AFSEL6_Pos) /*!< 0x01000000 */ | |
8589 #define GPIO_AFRL_AFSEL6_1 (0x2U << GPIO_AFRL_AFSEL6_Pos) /*!< 0x02000000 */ | |
8590 #define GPIO_AFRL_AFSEL6_2 (0x4U << GPIO_AFRL_AFSEL6_Pos) /*!< 0x04000000 */ | |
8591 #define GPIO_AFRL_AFSEL6_3 (0x8U << GPIO_AFRL_AFSEL6_Pos) /*!< 0x08000000 */ | |
8592 #define GPIO_AFRL_AFSEL7_Pos (28U) | |
8593 #define GPIO_AFRL_AFSEL7_Msk (0xFU << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */ | |
8594 #define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk | |
8595 #define GPIO_AFRL_AFSEL7_0 (0x1U << GPIO_AFRL_AFSEL7_Pos) /*!< 0x10000000 */ | |
8596 #define GPIO_AFRL_AFSEL7_1 (0x2U << GPIO_AFRL_AFSEL7_Pos) /*!< 0x20000000 */ | |
8597 #define GPIO_AFRL_AFSEL7_2 (0x4U << GPIO_AFRL_AFSEL7_Pos) /*!< 0x40000000 */ | |
8598 #define GPIO_AFRL_AFSEL7_3 (0x8U << GPIO_AFRL_AFSEL7_Pos) /*!< 0x80000000 */ | |
8599 | |
8600 /* Legacy defines */ | |
8601 #define GPIO_AFRL_AFRL0 GPIO_AFRL_AFSEL0 | |
8602 #define GPIO_AFRL_AFRL1 GPIO_AFRL_AFSEL1 | |
8603 #define GPIO_AFRL_AFRL2 GPIO_AFRL_AFSEL2 | |
8604 #define GPIO_AFRL_AFRL3 GPIO_AFRL_AFSEL3 | |
8605 #define GPIO_AFRL_AFRL4 GPIO_AFRL_AFSEL4 | |
8606 #define GPIO_AFRL_AFRL5 GPIO_AFRL_AFSEL5 | |
8607 #define GPIO_AFRL_AFRL6 GPIO_AFRL_AFSEL6 | |
8608 #define GPIO_AFRL_AFRL7 GPIO_AFRL_AFSEL7 | |
8609 | |
8610 /****************** Bit definition for GPIO_AFRH register *********************/ | |
8611 #define GPIO_AFRH_AFSEL8_Pos (0U) | |
8612 #define GPIO_AFRH_AFSEL8_Msk (0xFU << GPIO_AFRH_AFSEL8_Pos) /*!< 0x0000000F */ | |
8613 #define GPIO_AFRH_AFSEL8 GPIO_AFRH_AFSEL8_Msk | |
8614 #define GPIO_AFRH_AFSEL8_0 (0x1U << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000001 */ | |
8615 #define GPIO_AFRH_AFSEL8_1 (0x2U << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000002 */ | |
8616 #define GPIO_AFRH_AFSEL8_2 (0x4U << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000004 */ | |
8617 #define GPIO_AFRH_AFSEL8_3 (0x8U << GPIO_AFRH_AFSEL8_Pos) /*!< 0x00000008 */ | |
8618 #define GPIO_AFRH_AFSEL9_Pos (4U) | |
8619 #define GPIO_AFRH_AFSEL9_Msk (0xFU << GPIO_AFRH_AFSEL9_Pos) /*!< 0x000000F0 */ | |
8620 #define GPIO_AFRH_AFSEL9 GPIO_AFRH_AFSEL9_Msk | |
8621 #define GPIO_AFRH_AFSEL9_0 (0x1U << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000010 */ | |
8622 #define GPIO_AFRH_AFSEL9_1 (0x2U << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000020 */ | |
8623 #define GPIO_AFRH_AFSEL9_2 (0x4U << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000040 */ | |
8624 #define GPIO_AFRH_AFSEL9_3 (0x8U << GPIO_AFRH_AFSEL9_Pos) /*!< 0x00000080 */ | |
8625 #define GPIO_AFRH_AFSEL10_Pos (8U) | |
8626 #define GPIO_AFRH_AFSEL10_Msk (0xFU << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000F00 */ | |
8627 #define GPIO_AFRH_AFSEL10 GPIO_AFRH_AFSEL10_Msk | |
8628 #define GPIO_AFRH_AFSEL10_0 (0x1U << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000100 */ | |
8629 #define GPIO_AFRH_AFSEL10_1 (0x2U << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000200 */ | |
8630 #define GPIO_AFRH_AFSEL10_2 (0x4U << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000400 */ | |
8631 #define GPIO_AFRH_AFSEL10_3 (0x8U << GPIO_AFRH_AFSEL10_Pos) /*!< 0x00000800 */ | |
8632 #define GPIO_AFRH_AFSEL11_Pos (12U) | |
8633 #define GPIO_AFRH_AFSEL11_Msk (0xFU << GPIO_AFRH_AFSEL11_Pos) /*!< 0x0000F000 */ | |
8634 #define GPIO_AFRH_AFSEL11 GPIO_AFRH_AFSEL11_Msk | |
8635 #define GPIO_AFRH_AFSEL11_0 (0x1U << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00001000 */ | |
8636 #define GPIO_AFRH_AFSEL11_1 (0x2U << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00002000 */ | |
8637 #define GPIO_AFRH_AFSEL11_2 (0x4U << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00004000 */ | |
8638 #define GPIO_AFRH_AFSEL11_3 (0x8U << GPIO_AFRH_AFSEL11_Pos) /*!< 0x00008000 */ | |
8639 #define GPIO_AFRH_AFSEL12_Pos (16U) | |
8640 #define GPIO_AFRH_AFSEL12_Msk (0xFU << GPIO_AFRH_AFSEL12_Pos) /*!< 0x000F0000 */ | |
8641 #define GPIO_AFRH_AFSEL12 GPIO_AFRH_AFSEL12_Msk | |
8642 #define GPIO_AFRH_AFSEL12_0 (0x1U << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00010000 */ | |
8643 #define GPIO_AFRH_AFSEL12_1 (0x2U << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00020000 */ | |
8644 #define GPIO_AFRH_AFSEL12_2 (0x4U << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00040000 */ | |
8645 #define GPIO_AFRH_AFSEL12_3 (0x8U << GPIO_AFRH_AFSEL12_Pos) /*!< 0x00080000 */ | |
8646 #define GPIO_AFRH_AFSEL13_Pos (20U) | |
8647 #define GPIO_AFRH_AFSEL13_Msk (0xFU << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00F00000 */ | |
8648 #define GPIO_AFRH_AFSEL13 GPIO_AFRH_AFSEL13_Msk | |
8649 #define GPIO_AFRH_AFSEL13_0 (0x1U << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00100000 */ | |
8650 #define GPIO_AFRH_AFSEL13_1 (0x2U << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00200000 */ | |
8651 #define GPIO_AFRH_AFSEL13_2 (0x4U << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00400000 */ | |
8652 #define GPIO_AFRH_AFSEL13_3 (0x8U << GPIO_AFRH_AFSEL13_Pos) /*!< 0x00800000 */ | |
8653 #define GPIO_AFRH_AFSEL14_Pos (24U) | |
8654 #define GPIO_AFRH_AFSEL14_Msk (0xFU << GPIO_AFRH_AFSEL14_Pos) /*!< 0x0F000000 */ | |
8655 #define GPIO_AFRH_AFSEL14 GPIO_AFRH_AFSEL14_Msk | |
8656 #define GPIO_AFRH_AFSEL14_0 (0x1U << GPIO_AFRH_AFSEL14_Pos) /*!< 0x01000000 */ | |
8657 #define GPIO_AFRH_AFSEL14_1 (0x2U << GPIO_AFRH_AFSEL14_Pos) /*!< 0x02000000 */ | |
8658 #define GPIO_AFRH_AFSEL14_2 (0x4U << GPIO_AFRH_AFSEL14_Pos) /*!< 0x04000000 */ | |
8659 #define GPIO_AFRH_AFSEL14_3 (0x8U << GPIO_AFRH_AFSEL14_Pos) /*!< 0x08000000 */ | |
8660 #define GPIO_AFRH_AFSEL15_Pos (28U) | |
8661 #define GPIO_AFRH_AFSEL15_Msk (0xFU << GPIO_AFRH_AFSEL15_Pos) /*!< 0xF0000000 */ | |
8662 #define GPIO_AFRH_AFSEL15 GPIO_AFRH_AFSEL15_Msk | |
8663 #define GPIO_AFRH_AFSEL15_0 (0x1U << GPIO_AFRH_AFSEL15_Pos) /*!< 0x10000000 */ | |
8664 #define GPIO_AFRH_AFSEL15_1 (0x2U << GPIO_AFRH_AFSEL15_Pos) /*!< 0x20000000 */ | |
8665 #define GPIO_AFRH_AFSEL15_2 (0x4U << GPIO_AFRH_AFSEL15_Pos) /*!< 0x40000000 */ | |
8666 #define GPIO_AFRH_AFSEL15_3 (0x8U << GPIO_AFRH_AFSEL15_Pos) /*!< 0x80000000 */ | |
8667 | |
8668 /* Legacy defines */ | |
8669 #define GPIO_AFRH_AFRH0 GPIO_AFRH_AFSEL8 | |
8670 #define GPIO_AFRH_AFRH1 GPIO_AFRH_AFSEL9 | |
8671 #define GPIO_AFRH_AFRH2 GPIO_AFRH_AFSEL10 | |
8672 #define GPIO_AFRH_AFRH3 GPIO_AFRH_AFSEL11 | |
8673 #define GPIO_AFRH_AFRH4 GPIO_AFRH_AFSEL12 | |
8674 #define GPIO_AFRH_AFRH5 GPIO_AFRH_AFSEL13 | |
8675 #define GPIO_AFRH_AFRH6 GPIO_AFRH_AFSEL14 | |
8676 #define GPIO_AFRH_AFRH7 GPIO_AFRH_AFSEL15 | |
8677 | |
8678 /****************** Bits definition for GPIO_BRR register ******************/ | |
8679 #define GPIO_BRR_BR0_Pos (0U) | |
8680 #define GPIO_BRR_BR0_Msk (0x1U << GPIO_BRR_BR0_Pos) /*!< 0x00000001 */ | |
8681 #define GPIO_BRR_BR0 GPIO_BRR_BR0_Msk | |
8682 #define GPIO_BRR_BR1_Pos (1U) | |
8683 #define GPIO_BRR_BR1_Msk (0x1U << GPIO_BRR_BR1_Pos) /*!< 0x00000002 */ | |
8684 #define GPIO_BRR_BR1 GPIO_BRR_BR1_Msk | |
8685 #define GPIO_BRR_BR2_Pos (2U) | |
8686 #define GPIO_BRR_BR2_Msk (0x1U << GPIO_BRR_BR2_Pos) /*!< 0x00000004 */ | |
8687 #define GPIO_BRR_BR2 GPIO_BRR_BR2_Msk | |
8688 #define GPIO_BRR_BR3_Pos (3U) | |
8689 #define GPIO_BRR_BR3_Msk (0x1U << GPIO_BRR_BR3_Pos) /*!< 0x00000008 */ | |
8690 #define GPIO_BRR_BR3 GPIO_BRR_BR3_Msk | |
8691 #define GPIO_BRR_BR4_Pos (4U) | |
8692 #define GPIO_BRR_BR4_Msk (0x1U << GPIO_BRR_BR4_Pos) /*!< 0x00000010 */ | |
8693 #define GPIO_BRR_BR4 GPIO_BRR_BR4_Msk | |
8694 #define GPIO_BRR_BR5_Pos (5U) | |
8695 #define GPIO_BRR_BR5_Msk (0x1U << GPIO_BRR_BR5_Pos) /*!< 0x00000020 */ | |
8696 #define GPIO_BRR_BR5 GPIO_BRR_BR5_Msk | |
8697 #define GPIO_BRR_BR6_Pos (6U) | |
8698 #define GPIO_BRR_BR6_Msk (0x1U << GPIO_BRR_BR6_Pos) /*!< 0x00000040 */ | |
8699 #define GPIO_BRR_BR6 GPIO_BRR_BR6_Msk | |
8700 #define GPIO_BRR_BR7_Pos (7U) | |
8701 #define GPIO_BRR_BR7_Msk (0x1U << GPIO_BRR_BR7_Pos) /*!< 0x00000080 */ | |
8702 #define GPIO_BRR_BR7 GPIO_BRR_BR7_Msk | |
8703 #define GPIO_BRR_BR8_Pos (8U) | |
8704 #define GPIO_BRR_BR8_Msk (0x1U << GPIO_BRR_BR8_Pos) /*!< 0x00000100 */ | |
8705 #define GPIO_BRR_BR8 GPIO_BRR_BR8_Msk | |
8706 #define GPIO_BRR_BR9_Pos (9U) | |
8707 #define GPIO_BRR_BR9_Msk (0x1U << GPIO_BRR_BR9_Pos) /*!< 0x00000200 */ | |
8708 #define GPIO_BRR_BR9 GPIO_BRR_BR9_Msk | |
8709 #define GPIO_BRR_BR10_Pos (10U) | |
8710 #define GPIO_BRR_BR10_Msk (0x1U << GPIO_BRR_BR10_Pos) /*!< 0x00000400 */ | |
8711 #define GPIO_BRR_BR10 GPIO_BRR_BR10_Msk | |
8712 #define GPIO_BRR_BR11_Pos (11U) | |
8713 #define GPIO_BRR_BR11_Msk (0x1U << GPIO_BRR_BR11_Pos) /*!< 0x00000800 */ | |
8714 #define GPIO_BRR_BR11 GPIO_BRR_BR11_Msk | |
8715 #define GPIO_BRR_BR12_Pos (12U) | |
8716 #define GPIO_BRR_BR12_Msk (0x1U << GPIO_BRR_BR12_Pos) /*!< 0x00001000 */ | |
8717 #define GPIO_BRR_BR12 GPIO_BRR_BR12_Msk | |
8718 #define GPIO_BRR_BR13_Pos (13U) | |
8719 #define GPIO_BRR_BR13_Msk (0x1U << GPIO_BRR_BR13_Pos) /*!< 0x00002000 */ | |
8720 #define GPIO_BRR_BR13 GPIO_BRR_BR13_Msk | |
8721 #define GPIO_BRR_BR14_Pos (14U) | |
8722 #define GPIO_BRR_BR14_Msk (0x1U << GPIO_BRR_BR14_Pos) /*!< 0x00004000 */ | |
8723 #define GPIO_BRR_BR14 GPIO_BRR_BR14_Msk | |
8724 #define GPIO_BRR_BR15_Pos (15U) | |
8725 #define GPIO_BRR_BR15_Msk (0x1U << GPIO_BRR_BR15_Pos) /*!< 0x00008000 */ | |
8726 #define GPIO_BRR_BR15 GPIO_BRR_BR15_Msk | |
8727 | |
8728 /* Legacy defines */ | |
8729 #define GPIO_BRR_BR_0 GPIO_BRR_BR0 | |
8730 #define GPIO_BRR_BR_1 GPIO_BRR_BR1 | |
8731 #define GPIO_BRR_BR_2 GPIO_BRR_BR2 | |
8732 #define GPIO_BRR_BR_3 GPIO_BRR_BR3 | |
8733 #define GPIO_BRR_BR_4 GPIO_BRR_BR4 | |
8734 #define GPIO_BRR_BR_5 GPIO_BRR_BR5 | |
8735 #define GPIO_BRR_BR_6 GPIO_BRR_BR6 | |
8736 #define GPIO_BRR_BR_7 GPIO_BRR_BR7 | |
8737 #define GPIO_BRR_BR_8 GPIO_BRR_BR8 | |
8738 #define GPIO_BRR_BR_9 GPIO_BRR_BR9 | |
8739 #define GPIO_BRR_BR_10 GPIO_BRR_BR10 | |
8740 #define GPIO_BRR_BR_11 GPIO_BRR_BR11 | |
8741 #define GPIO_BRR_BR_12 GPIO_BRR_BR12 | |
8742 #define GPIO_BRR_BR_13 GPIO_BRR_BR13 | |
8743 #define GPIO_BRR_BR_14 GPIO_BRR_BR14 | |
8744 #define GPIO_BRR_BR_15 GPIO_BRR_BR15 | |
8745 | |
8746 | |
8747 | |
8748 /******************************************************************************/ | |
8749 /* */ | |
8750 /* Inter-integrated Circuit Interface (I2C) */ | |
8751 /* */ | |
8752 /******************************************************************************/ | |
8753 /******************* Bit definition for I2C_CR1 register *******************/ | |
8754 #define I2C_CR1_PE_Pos (0U) | |
8755 #define I2C_CR1_PE_Msk (0x1U << I2C_CR1_PE_Pos) /*!< 0x00000001 */ | |
8756 #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral enable */ | |
8757 #define I2C_CR1_TXIE_Pos (1U) | |
8758 #define I2C_CR1_TXIE_Msk (0x1U << I2C_CR1_TXIE_Pos) /*!< 0x00000002 */ | |
8759 #define I2C_CR1_TXIE I2C_CR1_TXIE_Msk /*!< TX interrupt enable */ | |
8760 #define I2C_CR1_RXIE_Pos (2U) | |
8761 #define I2C_CR1_RXIE_Msk (0x1U << I2C_CR1_RXIE_Pos) /*!< 0x00000004 */ | |
8762 #define I2C_CR1_RXIE I2C_CR1_RXIE_Msk /*!< RX interrupt enable */ | |
8763 #define I2C_CR1_ADDRIE_Pos (3U) | |
8764 #define I2C_CR1_ADDRIE_Msk (0x1U << I2C_CR1_ADDRIE_Pos) /*!< 0x00000008 */ | |
8765 #define I2C_CR1_ADDRIE I2C_CR1_ADDRIE_Msk /*!< Address match interrupt enable */ | |
8766 #define I2C_CR1_NACKIE_Pos (4U) | |
8767 #define I2C_CR1_NACKIE_Msk (0x1U << I2C_CR1_NACKIE_Pos) /*!< 0x00000010 */ | |
8768 #define I2C_CR1_NACKIE I2C_CR1_NACKIE_Msk /*!< NACK received interrupt enable */ | |
8769 #define I2C_CR1_STOPIE_Pos (5U) | |
8770 #define I2C_CR1_STOPIE_Msk (0x1U << I2C_CR1_STOPIE_Pos) /*!< 0x00000020 */ | |
8771 #define I2C_CR1_STOPIE I2C_CR1_STOPIE_Msk /*!< STOP detection interrupt enable */ | |
8772 #define I2C_CR1_TCIE_Pos (6U) | |
8773 #define I2C_CR1_TCIE_Msk (0x1U << I2C_CR1_TCIE_Pos) /*!< 0x00000040 */ | |
8774 #define I2C_CR1_TCIE I2C_CR1_TCIE_Msk /*!< Transfer complete interrupt enable */ | |
8775 #define I2C_CR1_ERRIE_Pos (7U) | |
8776 #define I2C_CR1_ERRIE_Msk (0x1U << I2C_CR1_ERRIE_Pos) /*!< 0x00000080 */ | |
8777 #define I2C_CR1_ERRIE I2C_CR1_ERRIE_Msk /*!< Errors interrupt enable */ | |
8778 #define I2C_CR1_DNF_Pos (8U) | |
8779 #define I2C_CR1_DNF_Msk (0xFU << I2C_CR1_DNF_Pos) /*!< 0x00000F00 */ | |
8780 #define I2C_CR1_DNF I2C_CR1_DNF_Msk /*!< Digital noise filter */ | |
8781 #define I2C_CR1_ANFOFF_Pos (12U) | |
8782 #define I2C_CR1_ANFOFF_Msk (0x1U << I2C_CR1_ANFOFF_Pos) /*!< 0x00001000 */ | |
8783 #define I2C_CR1_ANFOFF I2C_CR1_ANFOFF_Msk /*!< Analog noise filter OFF */ | |
8784 #define I2C_CR1_SWRST_Pos (13U) | |
8785 #define I2C_CR1_SWRST_Msk (0x1U << I2C_CR1_SWRST_Pos) /*!< 0x00002000 */ | |
8786 #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software reset */ | |
8787 #define I2C_CR1_TXDMAEN_Pos (14U) | |
8788 #define I2C_CR1_TXDMAEN_Msk (0x1U << I2C_CR1_TXDMAEN_Pos) /*!< 0x00004000 */ | |
8789 #define I2C_CR1_TXDMAEN I2C_CR1_TXDMAEN_Msk /*!< DMA transmission requests enable */ | |
8790 #define I2C_CR1_RXDMAEN_Pos (15U) | |
8791 #define I2C_CR1_RXDMAEN_Msk (0x1U << I2C_CR1_RXDMAEN_Pos) /*!< 0x00008000 */ | |
8792 #define I2C_CR1_RXDMAEN I2C_CR1_RXDMAEN_Msk /*!< DMA reception requests enable */ | |
8793 #define I2C_CR1_SBC_Pos (16U) | |
8794 #define I2C_CR1_SBC_Msk (0x1U << I2C_CR1_SBC_Pos) /*!< 0x00010000 */ | |
8795 #define I2C_CR1_SBC I2C_CR1_SBC_Msk /*!< Slave byte control */ | |
8796 #define I2C_CR1_NOSTRETCH_Pos (17U) | |
8797 #define I2C_CR1_NOSTRETCH_Msk (0x1U << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00020000 */ | |
8798 #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock stretching disable */ | |
8799 #define I2C_CR1_WUPEN_Pos (18U) | |
8800 #define I2C_CR1_WUPEN_Msk (0x1U << I2C_CR1_WUPEN_Pos) /*!< 0x00040000 */ | |
8801 #define I2C_CR1_WUPEN I2C_CR1_WUPEN_Msk /*!< Wakeup from STOP enable */ | |
8802 #define I2C_CR1_GCEN_Pos (19U) | |
8803 #define I2C_CR1_GCEN_Msk (0x1U << I2C_CR1_GCEN_Pos) /*!< 0x00080000 */ | |
8804 #define I2C_CR1_GCEN I2C_CR1_GCEN_Msk /*!< General call enable */ | |
8805 #define I2C_CR1_SMBHEN_Pos (20U) | |
8806 #define I2C_CR1_SMBHEN_Msk (0x1U << I2C_CR1_SMBHEN_Pos) /*!< 0x00100000 */ | |
8807 #define I2C_CR1_SMBHEN I2C_CR1_SMBHEN_Msk /*!< SMBus host address enable */ | |
8808 #define I2C_CR1_SMBDEN_Pos (21U) | |
8809 #define I2C_CR1_SMBDEN_Msk (0x1U << I2C_CR1_SMBDEN_Pos) /*!< 0x00200000 */ | |
8810 #define I2C_CR1_SMBDEN I2C_CR1_SMBDEN_Msk /*!< SMBus device default address enable */ | |
8811 #define I2C_CR1_ALERTEN_Pos (22U) | |
8812 #define I2C_CR1_ALERTEN_Msk (0x1U << I2C_CR1_ALERTEN_Pos) /*!< 0x00400000 */ | |
8813 #define I2C_CR1_ALERTEN I2C_CR1_ALERTEN_Msk /*!< SMBus alert enable */ | |
8814 #define I2C_CR1_PECEN_Pos (23U) | |
8815 #define I2C_CR1_PECEN_Msk (0x1U << I2C_CR1_PECEN_Pos) /*!< 0x00800000 */ | |
8816 #define I2C_CR1_PECEN I2C_CR1_PECEN_Msk /*!< PEC enable */ | |
8817 | |
8818 /****************** Bit definition for I2C_CR2 register ********************/ | |
8819 #define I2C_CR2_SADD_Pos (0U) | |
8820 #define I2C_CR2_SADD_Msk (0x3FFU << I2C_CR2_SADD_Pos) /*!< 0x000003FF */ | |
8821 #define I2C_CR2_SADD I2C_CR2_SADD_Msk /*!< Slave address (master mode) */ | |
8822 #define I2C_CR2_RD_WRN_Pos (10U) | |
8823 #define I2C_CR2_RD_WRN_Msk (0x1U << I2C_CR2_RD_WRN_Pos) /*!< 0x00000400 */ | |
8824 #define I2C_CR2_RD_WRN I2C_CR2_RD_WRN_Msk /*!< Transfer direction (master mode) */ | |
8825 #define I2C_CR2_ADD10_Pos (11U) | |
8826 #define I2C_CR2_ADD10_Msk (0x1U << I2C_CR2_ADD10_Pos) /*!< 0x00000800 */ | |
8827 #define I2C_CR2_ADD10 I2C_CR2_ADD10_Msk /*!< 10-bit addressing mode (master mode) */ | |
8828 #define I2C_CR2_HEAD10R_Pos (12U) | |
8829 #define I2C_CR2_HEAD10R_Msk (0x1U << I2C_CR2_HEAD10R_Pos) /*!< 0x00001000 */ | |
8830 #define I2C_CR2_HEAD10R I2C_CR2_HEAD10R_Msk /*!< 10-bit address header only read direction (master mode) */ | |
8831 #define I2C_CR2_START_Pos (13U) | |
8832 #define I2C_CR2_START_Msk (0x1U << I2C_CR2_START_Pos) /*!< 0x00002000 */ | |
8833 #define I2C_CR2_START I2C_CR2_START_Msk /*!< START generation */ | |
8834 #define I2C_CR2_STOP_Pos (14U) | |
8835 #define I2C_CR2_STOP_Msk (0x1U << I2C_CR2_STOP_Pos) /*!< 0x00004000 */ | |
8836 #define I2C_CR2_STOP I2C_CR2_STOP_Msk /*!< STOP generation (master mode) */ | |
8837 #define I2C_CR2_NACK_Pos (15U) | |
8838 #define I2C_CR2_NACK_Msk (0x1U << I2C_CR2_NACK_Pos) /*!< 0x00008000 */ | |
8839 #define I2C_CR2_NACK I2C_CR2_NACK_Msk /*!< NACK generation (slave mode) */ | |
8840 #define I2C_CR2_NBYTES_Pos (16U) | |
8841 #define I2C_CR2_NBYTES_Msk (0xFFU << I2C_CR2_NBYTES_Pos) /*!< 0x00FF0000 */ | |
8842 #define I2C_CR2_NBYTES I2C_CR2_NBYTES_Msk /*!< Number of bytes */ | |
8843 #define I2C_CR2_RELOAD_Pos (24U) | |
8844 #define I2C_CR2_RELOAD_Msk (0x1U << I2C_CR2_RELOAD_Pos) /*!< 0x01000000 */ | |
8845 #define I2C_CR2_RELOAD I2C_CR2_RELOAD_Msk /*!< NBYTES reload mode */ | |
8846 #define I2C_CR2_AUTOEND_Pos (25U) | |
8847 #define I2C_CR2_AUTOEND_Msk (0x1U << I2C_CR2_AUTOEND_Pos) /*!< 0x02000000 */ | |
8848 #define I2C_CR2_AUTOEND I2C_CR2_AUTOEND_Msk /*!< Automatic end mode (master mode) */ | |
8849 #define I2C_CR2_PECBYTE_Pos (26U) | |
8850 #define I2C_CR2_PECBYTE_Msk (0x1U << I2C_CR2_PECBYTE_Pos) /*!< 0x04000000 */ | |
8851 #define I2C_CR2_PECBYTE I2C_CR2_PECBYTE_Msk /*!< Packet error checking byte */ | |
8852 | |
8853 /******************* Bit definition for I2C_OAR1 register ******************/ | |
8854 #define I2C_OAR1_OA1_Pos (0U) | |
8855 #define I2C_OAR1_OA1_Msk (0x3FFU << I2C_OAR1_OA1_Pos) /*!< 0x000003FF */ | |
8856 #define I2C_OAR1_OA1 I2C_OAR1_OA1_Msk /*!< Interface own address 1 */ | |
8857 #define I2C_OAR1_OA1MODE_Pos (10U) | |
8858 #define I2C_OAR1_OA1MODE_Msk (0x1U << I2C_OAR1_OA1MODE_Pos) /*!< 0x00000400 */ | |
8859 #define I2C_OAR1_OA1MODE I2C_OAR1_OA1MODE_Msk /*!< Own address 1 10-bit mode */ | |
8860 #define I2C_OAR1_OA1EN_Pos (15U) | |
8861 #define I2C_OAR1_OA1EN_Msk (0x1U << I2C_OAR1_OA1EN_Pos) /*!< 0x00008000 */ | |
8862 #define I2C_OAR1_OA1EN I2C_OAR1_OA1EN_Msk /*!< Own address 1 enable */ | |
8863 | |
8864 /******************* Bit definition for I2C_OAR2 register ******************/ | |
8865 #define I2C_OAR2_OA2_Pos (1U) | |
8866 #define I2C_OAR2_OA2_Msk (0x7FU << I2C_OAR2_OA2_Pos) /*!< 0x000000FE */ | |
8867 #define I2C_OAR2_OA2 I2C_OAR2_OA2_Msk /*!< Interface own address 2 */ | |
8868 #define I2C_OAR2_OA2MSK_Pos (8U) | |
8869 #define I2C_OAR2_OA2MSK_Msk (0x7U << I2C_OAR2_OA2MSK_Pos) /*!< 0x00000700 */ | |
8870 #define I2C_OAR2_OA2MSK I2C_OAR2_OA2MSK_Msk /*!< Own address 2 masks */ | |
8871 #define I2C_OAR2_OA2NOMASK (0x00000000U) /*!< No mask */ | |
8872 #define I2C_OAR2_OA2MASK01_Pos (8U) | |
8873 #define I2C_OAR2_OA2MASK01_Msk (0x1U << I2C_OAR2_OA2MASK01_Pos) /*!< 0x00000100 */ | |
8874 #define I2C_OAR2_OA2MASK01 I2C_OAR2_OA2MASK01_Msk /*!< OA2[1] is masked, Only OA2[7:2] are compared */ | |
8875 #define I2C_OAR2_OA2MASK02_Pos (9U) | |
8876 #define I2C_OAR2_OA2MASK02_Msk (0x1U << I2C_OAR2_OA2MASK02_Pos) /*!< 0x00000200 */ | |
8877 #define I2C_OAR2_OA2MASK02 I2C_OAR2_OA2MASK02_Msk /*!< OA2[2:1] is masked, Only OA2[7:3] are compared */ | |
8878 #define I2C_OAR2_OA2MASK03_Pos (8U) | |
8879 #define I2C_OAR2_OA2MASK03_Msk (0x3U << I2C_OAR2_OA2MASK03_Pos) /*!< 0x00000300 */ | |
8880 #define I2C_OAR2_OA2MASK03 I2C_OAR2_OA2MASK03_Msk /*!< OA2[3:1] is masked, Only OA2[7:4] are compared */ | |
8881 #define I2C_OAR2_OA2MASK04_Pos (10U) | |
8882 #define I2C_OAR2_OA2MASK04_Msk (0x1U << I2C_OAR2_OA2MASK04_Pos) /*!< 0x00000400 */ | |
8883 #define I2C_OAR2_OA2MASK04 I2C_OAR2_OA2MASK04_Msk /*!< OA2[4:1] is masked, Only OA2[7:5] are compared */ | |
8884 #define I2C_OAR2_OA2MASK05_Pos (8U) | |
8885 #define I2C_OAR2_OA2MASK05_Msk (0x5U << I2C_OAR2_OA2MASK05_Pos) /*!< 0x00000500 */ | |
8886 #define I2C_OAR2_OA2MASK05 I2C_OAR2_OA2MASK05_Msk /*!< OA2[5:1] is masked, Only OA2[7:6] are compared */ | |
8887 #define I2C_OAR2_OA2MASK06_Pos (9U) | |
8888 #define I2C_OAR2_OA2MASK06_Msk (0x3U << I2C_OAR2_OA2MASK06_Pos) /*!< 0x00000600 */ | |
8889 #define I2C_OAR2_OA2MASK06 I2C_OAR2_OA2MASK06_Msk /*!< OA2[6:1] is masked, Only OA2[7] are compared */ | |
8890 #define I2C_OAR2_OA2MASK07_Pos (8U) | |
8891 #define I2C_OAR2_OA2MASK07_Msk (0x7U << I2C_OAR2_OA2MASK07_Pos) /*!< 0x00000700 */ | |
8892 #define I2C_OAR2_OA2MASK07 I2C_OAR2_OA2MASK07_Msk /*!< OA2[7:1] is masked, No comparison is done */ | |
8893 #define I2C_OAR2_OA2EN_Pos (15U) | |
8894 #define I2C_OAR2_OA2EN_Msk (0x1U << I2C_OAR2_OA2EN_Pos) /*!< 0x00008000 */ | |
8895 #define I2C_OAR2_OA2EN I2C_OAR2_OA2EN_Msk /*!< Own address 2 enable */ | |
8896 | |
8897 /******************* Bit definition for I2C_TIMINGR register *******************/ | |
8898 #define I2C_TIMINGR_SCLL_Pos (0U) | |
8899 #define I2C_TIMINGR_SCLL_Msk (0xFFU << I2C_TIMINGR_SCLL_Pos) /*!< 0x000000FF */ | |
8900 #define I2C_TIMINGR_SCLL I2C_TIMINGR_SCLL_Msk /*!< SCL low period (master mode) */ | |
8901 #define I2C_TIMINGR_SCLH_Pos (8U) | |
8902 #define I2C_TIMINGR_SCLH_Msk (0xFFU << I2C_TIMINGR_SCLH_Pos) /*!< 0x0000FF00 */ | |
8903 #define I2C_TIMINGR_SCLH I2C_TIMINGR_SCLH_Msk /*!< SCL high period (master mode) */ | |
8904 #define I2C_TIMINGR_SDADEL_Pos (16U) | |
8905 #define I2C_TIMINGR_SDADEL_Msk (0xFU << I2C_TIMINGR_SDADEL_Pos) /*!< 0x000F0000 */ | |
8906 #define I2C_TIMINGR_SDADEL I2C_TIMINGR_SDADEL_Msk /*!< Data hold time */ | |
8907 #define I2C_TIMINGR_SCLDEL_Pos (20U) | |
8908 #define I2C_TIMINGR_SCLDEL_Msk (0xFU << I2C_TIMINGR_SCLDEL_Pos) /*!< 0x00F00000 */ | |
8909 #define I2C_TIMINGR_SCLDEL I2C_TIMINGR_SCLDEL_Msk /*!< Data setup time */ | |
8910 #define I2C_TIMINGR_PRESC_Pos (28U) | |
8911 #define I2C_TIMINGR_PRESC_Msk (0xFU << I2C_TIMINGR_PRESC_Pos) /*!< 0xF0000000 */ | |
8912 #define I2C_TIMINGR_PRESC I2C_TIMINGR_PRESC_Msk /*!< Timings prescaler */ | |
8913 | |
8914 /******************* Bit definition for I2C_TIMEOUTR register *******************/ | |
8915 #define I2C_TIMEOUTR_TIMEOUTA_Pos (0U) | |
8916 #define I2C_TIMEOUTR_TIMEOUTA_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTA_Pos) /*!< 0x00000FFF */ | |
8917 #define I2C_TIMEOUTR_TIMEOUTA I2C_TIMEOUTR_TIMEOUTA_Msk /*!< Bus timeout A */ | |
8918 #define I2C_TIMEOUTR_TIDLE_Pos (12U) | |
8919 #define I2C_TIMEOUTR_TIDLE_Msk (0x1U << I2C_TIMEOUTR_TIDLE_Pos) /*!< 0x00001000 */ | |
8920 #define I2C_TIMEOUTR_TIDLE I2C_TIMEOUTR_TIDLE_Msk /*!< Idle clock timeout detection */ | |
8921 #define I2C_TIMEOUTR_TIMOUTEN_Pos (15U) | |
8922 #define I2C_TIMEOUTR_TIMOUTEN_Msk (0x1U << I2C_TIMEOUTR_TIMOUTEN_Pos) /*!< 0x00008000 */ | |
8923 #define I2C_TIMEOUTR_TIMOUTEN I2C_TIMEOUTR_TIMOUTEN_Msk /*!< Clock timeout enable */ | |
8924 #define I2C_TIMEOUTR_TIMEOUTB_Pos (16U) | |
8925 #define I2C_TIMEOUTR_TIMEOUTB_Msk (0xFFFU << I2C_TIMEOUTR_TIMEOUTB_Pos) /*!< 0x0FFF0000 */ | |
8926 #define I2C_TIMEOUTR_TIMEOUTB I2C_TIMEOUTR_TIMEOUTB_Msk /*!< Bus timeout B */ | |
8927 #define I2C_TIMEOUTR_TEXTEN_Pos (31U) | |
8928 #define I2C_TIMEOUTR_TEXTEN_Msk (0x1U << I2C_TIMEOUTR_TEXTEN_Pos) /*!< 0x80000000 */ | |
8929 #define I2C_TIMEOUTR_TEXTEN I2C_TIMEOUTR_TEXTEN_Msk /*!< Extended clock timeout enable */ | |
8930 | |
8931 /****************** Bit definition for I2C_ISR register *********************/ | |
8932 #define I2C_ISR_TXE_Pos (0U) | |
8933 #define I2C_ISR_TXE_Msk (0x1U << I2C_ISR_TXE_Pos) /*!< 0x00000001 */ | |
8934 #define I2C_ISR_TXE I2C_ISR_TXE_Msk /*!< Transmit data register empty */ | |
8935 #define I2C_ISR_TXIS_Pos (1U) | |
8936 #define I2C_ISR_TXIS_Msk (0x1U << I2C_ISR_TXIS_Pos) /*!< 0x00000002 */ | |
8937 #define I2C_ISR_TXIS I2C_ISR_TXIS_Msk /*!< Transmit interrupt status */ | |
8938 #define I2C_ISR_RXNE_Pos (2U) | |
8939 #define I2C_ISR_RXNE_Msk (0x1U << I2C_ISR_RXNE_Pos) /*!< 0x00000004 */ | |
8940 #define I2C_ISR_RXNE I2C_ISR_RXNE_Msk /*!< Receive data register not empty */ | |
8941 #define I2C_ISR_ADDR_Pos (3U) | |
8942 #define I2C_ISR_ADDR_Msk (0x1U << I2C_ISR_ADDR_Pos) /*!< 0x00000008 */ | |
8943 #define I2C_ISR_ADDR I2C_ISR_ADDR_Msk /*!< Address matched (slave mode) */ | |
8944 #define I2C_ISR_NACKF_Pos (4U) | |
8945 #define I2C_ISR_NACKF_Msk (0x1U << I2C_ISR_NACKF_Pos) /*!< 0x00000010 */ | |
8946 #define I2C_ISR_NACKF I2C_ISR_NACKF_Msk /*!< NACK received flag */ | |
8947 #define I2C_ISR_STOPF_Pos (5U) | |
8948 #define I2C_ISR_STOPF_Msk (0x1U << I2C_ISR_STOPF_Pos) /*!< 0x00000020 */ | |
8949 #define I2C_ISR_STOPF I2C_ISR_STOPF_Msk /*!< STOP detection flag */ | |
8950 #define I2C_ISR_TC_Pos (6U) | |
8951 #define I2C_ISR_TC_Msk (0x1U << I2C_ISR_TC_Pos) /*!< 0x00000040 */ | |
8952 #define I2C_ISR_TC I2C_ISR_TC_Msk /*!< Transfer complete (master mode) */ | |
8953 #define I2C_ISR_TCR_Pos (7U) | |
8954 #define I2C_ISR_TCR_Msk (0x1U << I2C_ISR_TCR_Pos) /*!< 0x00000080 */ | |
8955 #define I2C_ISR_TCR I2C_ISR_TCR_Msk /*!< Transfer complete reload */ | |
8956 #define I2C_ISR_BERR_Pos (8U) | |
8957 #define I2C_ISR_BERR_Msk (0x1U << I2C_ISR_BERR_Pos) /*!< 0x00000100 */ | |
8958 #define I2C_ISR_BERR I2C_ISR_BERR_Msk /*!< Bus error */ | |
8959 #define I2C_ISR_ARLO_Pos (9U) | |
8960 #define I2C_ISR_ARLO_Msk (0x1U << I2C_ISR_ARLO_Pos) /*!< 0x00000200 */ | |
8961 #define I2C_ISR_ARLO I2C_ISR_ARLO_Msk /*!< Arbitration lost */ | |
8962 #define I2C_ISR_OVR_Pos (10U) | |
8963 #define I2C_ISR_OVR_Msk (0x1U << I2C_ISR_OVR_Pos) /*!< 0x00000400 */ | |
8964 #define I2C_ISR_OVR I2C_ISR_OVR_Msk /*!< Overrun/Underrun */ | |
8965 #define I2C_ISR_PECERR_Pos (11U) | |
8966 #define I2C_ISR_PECERR_Msk (0x1U << I2C_ISR_PECERR_Pos) /*!< 0x00000800 */ | |
8967 #define I2C_ISR_PECERR I2C_ISR_PECERR_Msk /*!< PEC error in reception */ | |
8968 #define I2C_ISR_TIMEOUT_Pos (12U) | |
8969 #define I2C_ISR_TIMEOUT_Msk (0x1U << I2C_ISR_TIMEOUT_Pos) /*!< 0x00001000 */ | |
8970 #define I2C_ISR_TIMEOUT I2C_ISR_TIMEOUT_Msk /*!< Timeout or Tlow detection flag */ | |
8971 #define I2C_ISR_ALERT_Pos (13U) | |
8972 #define I2C_ISR_ALERT_Msk (0x1U << I2C_ISR_ALERT_Pos) /*!< 0x00002000 */ | |
8973 #define I2C_ISR_ALERT I2C_ISR_ALERT_Msk /*!< SMBus alert */ | |
8974 #define I2C_ISR_BUSY_Pos (15U) | |
8975 #define I2C_ISR_BUSY_Msk (0x1U << I2C_ISR_BUSY_Pos) /*!< 0x00008000 */ | |
8976 #define I2C_ISR_BUSY I2C_ISR_BUSY_Msk /*!< Bus busy */ | |
8977 #define I2C_ISR_DIR_Pos (16U) | |
8978 #define I2C_ISR_DIR_Msk (0x1U << I2C_ISR_DIR_Pos) /*!< 0x00010000 */ | |
8979 #define I2C_ISR_DIR I2C_ISR_DIR_Msk /*!< Transfer direction (slave mode) */ | |
8980 #define I2C_ISR_ADDCODE_Pos (17U) | |
8981 #define I2C_ISR_ADDCODE_Msk (0x7FU << I2C_ISR_ADDCODE_Pos) /*!< 0x00FE0000 */ | |
8982 #define I2C_ISR_ADDCODE I2C_ISR_ADDCODE_Msk /*!< Address match code (slave mode) */ | |
8983 | |
8984 /****************** Bit definition for I2C_ICR register *********************/ | |
8985 #define I2C_ICR_ADDRCF_Pos (3U) | |
8986 #define I2C_ICR_ADDRCF_Msk (0x1U << I2C_ICR_ADDRCF_Pos) /*!< 0x00000008 */ | |
8987 #define I2C_ICR_ADDRCF I2C_ICR_ADDRCF_Msk /*!< Address matched clear flag */ | |
8988 #define I2C_ICR_NACKCF_Pos (4U) | |
8989 #define I2C_ICR_NACKCF_Msk (0x1U << I2C_ICR_NACKCF_Pos) /*!< 0x00000010 */ | |
8990 #define I2C_ICR_NACKCF I2C_ICR_NACKCF_Msk /*!< NACK clear flag */ | |
8991 #define I2C_ICR_STOPCF_Pos (5U) | |
8992 #define I2C_ICR_STOPCF_Msk (0x1U << I2C_ICR_STOPCF_Pos) /*!< 0x00000020 */ | |
8993 #define I2C_ICR_STOPCF I2C_ICR_STOPCF_Msk /*!< STOP detection clear flag */ | |
8994 #define I2C_ICR_BERRCF_Pos (8U) | |
8995 #define I2C_ICR_BERRCF_Msk (0x1U << I2C_ICR_BERRCF_Pos) /*!< 0x00000100 */ | |
8996 #define I2C_ICR_BERRCF I2C_ICR_BERRCF_Msk /*!< Bus error clear flag */ | |
8997 #define I2C_ICR_ARLOCF_Pos (9U) | |
8998 #define I2C_ICR_ARLOCF_Msk (0x1U << I2C_ICR_ARLOCF_Pos) /*!< 0x00000200 */ | |
8999 #define I2C_ICR_ARLOCF I2C_ICR_ARLOCF_Msk /*!< Arbitration lost clear flag */ | |
9000 #define I2C_ICR_OVRCF_Pos (10U) | |
9001 #define I2C_ICR_OVRCF_Msk (0x1U << I2C_ICR_OVRCF_Pos) /*!< 0x00000400 */ | |
9002 #define I2C_ICR_OVRCF I2C_ICR_OVRCF_Msk /*!< Overrun/Underrun clear flag */ | |
9003 #define I2C_ICR_PECCF_Pos (11U) | |
9004 #define I2C_ICR_PECCF_Msk (0x1U << I2C_ICR_PECCF_Pos) /*!< 0x00000800 */ | |
9005 #define I2C_ICR_PECCF I2C_ICR_PECCF_Msk /*!< PAC error clear flag */ | |
9006 #define I2C_ICR_TIMOUTCF_Pos (12U) | |
9007 #define I2C_ICR_TIMOUTCF_Msk (0x1U << I2C_ICR_TIMOUTCF_Pos) /*!< 0x00001000 */ | |
9008 #define I2C_ICR_TIMOUTCF I2C_ICR_TIMOUTCF_Msk /*!< Timeout clear flag */ | |
9009 #define I2C_ICR_ALERTCF_Pos (13U) | |
9010 #define I2C_ICR_ALERTCF_Msk (0x1U << I2C_ICR_ALERTCF_Pos) /*!< 0x00002000 */ | |
9011 #define I2C_ICR_ALERTCF I2C_ICR_ALERTCF_Msk /*!< Alert clear flag */ | |
9012 | |
9013 /****************** Bit definition for I2C_PECR register *********************/ | |
9014 #define I2C_PECR_PEC_Pos (0U) | |
9015 #define I2C_PECR_PEC_Msk (0xFFU << I2C_PECR_PEC_Pos) /*!< 0x000000FF */ | |
9016 #define I2C_PECR_PEC I2C_PECR_PEC_Msk /*!< PEC register */ | |
9017 | |
9018 /****************** Bit definition for I2C_RXDR register *********************/ | |
9019 #define I2C_RXDR_RXDATA_Pos (0U) | |
9020 #define I2C_RXDR_RXDATA_Msk (0xFFU << I2C_RXDR_RXDATA_Pos) /*!< 0x000000FF */ | |
9021 #define I2C_RXDR_RXDATA I2C_RXDR_RXDATA_Msk /*!< 8-bit receive data */ | |
9022 | |
9023 /****************** Bit definition for I2C_TXDR register *********************/ | |
9024 #define I2C_TXDR_TXDATA_Pos (0U) | |
9025 #define I2C_TXDR_TXDATA_Msk (0xFFU << I2C_TXDR_TXDATA_Pos) /*!< 0x000000FF */ | |
9026 #define I2C_TXDR_TXDATA I2C_TXDR_TXDATA_Msk /*!< 8-bit transmit data */ | |
9027 | |
9028 /******************************************************************************/ | |
9029 /* */ | |
9030 /* Independent WATCHDOG */ | |
9031 /* */ | |
9032 /******************************************************************************/ | |
9033 /******************* Bit definition for IWDG_KR register ********************/ | |
9034 #define IWDG_KR_KEY_Pos (0U) | |
9035 #define IWDG_KR_KEY_Msk (0xFFFFU << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */ | |
9036 #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!<Key value (write only, read 0000h) */ | |
9037 | |
9038 /******************* Bit definition for IWDG_PR register ********************/ | |
9039 #define IWDG_PR_PR_Pos (0U) | |
9040 #define IWDG_PR_PR_Msk (0x7U << IWDG_PR_PR_Pos) /*!< 0x00000007 */ | |
9041 #define IWDG_PR_PR IWDG_PR_PR_Msk /*!<PR[2:0] (Prescaler divider) */ | |
9042 #define IWDG_PR_PR_0 (0x1U << IWDG_PR_PR_Pos) /*!< 0x00000001 */ | |
9043 #define IWDG_PR_PR_1 (0x2U << IWDG_PR_PR_Pos) /*!< 0x00000002 */ | |
9044 #define IWDG_PR_PR_2 (0x4U << IWDG_PR_PR_Pos) /*!< 0x00000004 */ | |
9045 | |
9046 /******************* Bit definition for IWDG_RLR register *******************/ | |
9047 #define IWDG_RLR_RL_Pos (0U) | |
9048 #define IWDG_RLR_RL_Msk (0xFFFU << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */ | |
9049 #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!<Watchdog counter reload value */ | |
9050 | |
9051 /******************* Bit definition for IWDG_SR register ********************/ | |
9052 #define IWDG_SR_PVU_Pos (0U) | |
9053 #define IWDG_SR_PVU_Msk (0x1U << IWDG_SR_PVU_Pos) /*!< 0x00000001 */ | |
9054 #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */ | |
9055 #define IWDG_SR_RVU_Pos (1U) | |
9056 #define IWDG_SR_RVU_Msk (0x1U << IWDG_SR_RVU_Pos) /*!< 0x00000002 */ | |
9057 #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */ | |
9058 #define IWDG_SR_WVU_Pos (2U) | |
9059 #define IWDG_SR_WVU_Msk (0x1U << IWDG_SR_WVU_Pos) /*!< 0x00000004 */ | |
9060 #define IWDG_SR_WVU IWDG_SR_WVU_Msk /*!< Watchdog counter window value update */ | |
9061 | |
9062 /******************* Bit definition for IWDG_KR register ********************/ | |
9063 #define IWDG_WINR_WIN_Pos (0U) | |
9064 #define IWDG_WINR_WIN_Msk (0xFFFU << IWDG_WINR_WIN_Pos) /*!< 0x00000FFF */ | |
9065 #define IWDG_WINR_WIN IWDG_WINR_WIN_Msk /*!< Watchdog counter window value */ | |
9066 | |
9067 /******************************************************************************/ | |
9068 /* */ | |
9069 /* Firewall */ | |
9070 /* */ | |
9071 /******************************************************************************/ | |
9072 | |
9073 /*******Bit definition for CSSA;CSL;NVDSSA;NVDSL;VDSSA;VDSL;LSSA;LSL register */ | |
9074 #define FW_CSSA_ADD_Pos (8U) | |
9075 #define FW_CSSA_ADD_Msk (0xFFFFU << FW_CSSA_ADD_Pos) /*!< 0x00FFFF00 */ | |
9076 #define FW_CSSA_ADD FW_CSSA_ADD_Msk /*!< Code Segment Start Address */ | |
9077 #define FW_CSL_LENG_Pos (8U) | |
9078 #define FW_CSL_LENG_Msk (0x3FFFU << FW_CSL_LENG_Pos) /*!< 0x003FFF00 */ | |
9079 #define FW_CSL_LENG FW_CSL_LENG_Msk /*!< Code Segment Length */ | |
9080 #define FW_NVDSSA_ADD_Pos (8U) | |
9081 #define FW_NVDSSA_ADD_Msk (0xFFFFU << FW_NVDSSA_ADD_Pos) /*!< 0x00FFFF00 */ | |
9082 #define FW_NVDSSA_ADD FW_NVDSSA_ADD_Msk /*!< Non Volatile Dat Segment Start Address */ | |
9083 #define FW_NVDSL_LENG_Pos (8U) | |
9084 #define FW_NVDSL_LENG_Msk (0x3FFFU << FW_NVDSL_LENG_Pos) /*!< 0x003FFF00 */ | |
9085 #define FW_NVDSL_LENG FW_NVDSL_LENG_Msk /*!< Non Volatile Data Segment Length */ | |
9086 #define FW_VDSSA_ADD_Pos (6U) | |
9087 #define FW_VDSSA_ADD_Msk (0x7FFU << FW_VDSSA_ADD_Pos) /*!< 0x0001FFC0 */ | |
9088 #define FW_VDSSA_ADD FW_VDSSA_ADD_Msk /*!< Volatile Data Segment Start Address */ | |
9089 #define FW_VDSL_LENG_Pos (6U) | |
9090 #define FW_VDSL_LENG_Msk (0x7FFU << FW_VDSL_LENG_Pos) /*!< 0x0001FFC0 */ | |
9091 #define FW_VDSL_LENG FW_VDSL_LENG_Msk /*!< Volatile Data Segment Length */ | |
9092 #define FW_LSSA_ADD_Pos (7U) | |
9093 #define FW_LSSA_ADD_Msk (0xFFFU << FW_LSSA_ADD_Pos) /*!< 0x0007FF80 */ | |
9094 #define FW_LSSA_ADD FW_LSSA_ADD_Msk /*!< Library Segment Start Address*/ | |
9095 #define FW_LSL_LENG_Pos (7U) | |
9096 #define FW_LSL_LENG_Msk (0xFFFU << FW_LSL_LENG_Pos) /*!< 0x0007FF80 */ | |
9097 #define FW_LSL_LENG FW_LSL_LENG_Msk /*!< Library Segment Length*/ | |
9098 | |
9099 /**************************Bit definition for CR register *********************/ | |
9100 #define FW_CR_FPA_Pos (0U) | |
9101 #define FW_CR_FPA_Msk (0x1U << FW_CR_FPA_Pos) /*!< 0x00000001 */ | |
9102 #define FW_CR_FPA FW_CR_FPA_Msk /*!< Firewall Pre Arm*/ | |
9103 #define FW_CR_VDS_Pos (1U) | |
9104 #define FW_CR_VDS_Msk (0x1U << FW_CR_VDS_Pos) /*!< 0x00000002 */ | |
9105 #define FW_CR_VDS FW_CR_VDS_Msk /*!< Volatile Data Sharing*/ | |
9106 #define FW_CR_VDE_Pos (2U) | |
9107 #define FW_CR_VDE_Msk (0x1U << FW_CR_VDE_Pos) /*!< 0x00000004 */ | |
9108 #define FW_CR_VDE FW_CR_VDE_Msk /*!< Volatile Data Execution*/ | |
9109 | |
9110 /******************************************************************************/ | |
9111 /* */ | |
9112 /* Power Control */ | |
9113 /* */ | |
9114 /******************************************************************************/ | |
9115 | |
9116 /******************** Bit definition for PWR_CR1 register ********************/ | |
9117 | |
9118 #define PWR_CR1_LPR_Pos (14U) | |
9119 #define PWR_CR1_LPR_Msk (0x1U << PWR_CR1_LPR_Pos) /*!< 0x00004000 */ | |
9120 #define PWR_CR1_LPR PWR_CR1_LPR_Msk /*!< Regulator low-power mode */ | |
9121 #define PWR_CR1_VOS_Pos (9U) | |
9122 #define PWR_CR1_VOS_Msk (0x3U << PWR_CR1_VOS_Pos) /*!< 0x00000600 */ | |
9123 #define PWR_CR1_VOS PWR_CR1_VOS_Msk /*!< VOS[1:0] bits (Regulator voltage scaling output selection) */ | |
9124 #define PWR_CR1_VOS_0 (0x1U << PWR_CR1_VOS_Pos) /*!< 0x00000200 */ | |
9125 #define PWR_CR1_VOS_1 (0x2U << PWR_CR1_VOS_Pos) /*!< 0x00000400 */ | |
9126 #define PWR_CR1_DBP_Pos (8U) | |
9127 #define PWR_CR1_DBP_Msk (0x1U << PWR_CR1_DBP_Pos) /*!< 0x00000100 */ | |
9128 #define PWR_CR1_DBP PWR_CR1_DBP_Msk /*!< Disable Back-up domain Protection */ | |
9129 #define PWR_CR1_LPMS_Pos (0U) | |
9130 #define PWR_CR1_LPMS_Msk (0x7U << PWR_CR1_LPMS_Pos) /*!< 0x00000007 */ | |
9131 #define PWR_CR1_LPMS PWR_CR1_LPMS_Msk /*!< Low-power mode selection field */ | |
9132 #define PWR_CR1_LPMS_STOP0 (0x00000000U) /*!< Stop 0 mode */ | |
9133 #define PWR_CR1_LPMS_STOP1_Pos (0U) | |
9134 #define PWR_CR1_LPMS_STOP1_Msk (0x1U << PWR_CR1_LPMS_STOP1_Pos) /*!< 0x00000001 */ | |
9135 #define PWR_CR1_LPMS_STOP1 PWR_CR1_LPMS_STOP1_Msk /*!< Stop 1 mode */ | |
9136 #define PWR_CR1_LPMS_STOP2_Pos (1U) | |
9137 #define PWR_CR1_LPMS_STOP2_Msk (0x1U << PWR_CR1_LPMS_STOP2_Pos) /*!< 0x00000002 */ | |
9138 #define PWR_CR1_LPMS_STOP2 PWR_CR1_LPMS_STOP2_Msk /*!< Stop 2 mode */ | |
9139 #define PWR_CR1_LPMS_STANDBY_Pos (0U) | |
9140 #define PWR_CR1_LPMS_STANDBY_Msk (0x3U << PWR_CR1_LPMS_STANDBY_Pos) /*!< 0x00000003 */ | |
9141 #define PWR_CR1_LPMS_STANDBY PWR_CR1_LPMS_STANDBY_Msk /*!< Stand-by mode */ | |
9142 #define PWR_CR1_LPMS_SHUTDOWN_Pos (2U) | |
9143 #define PWR_CR1_LPMS_SHUTDOWN_Msk (0x1U << PWR_CR1_LPMS_SHUTDOWN_Pos) /*!< 0x00000004 */ | |
9144 #define PWR_CR1_LPMS_SHUTDOWN PWR_CR1_LPMS_SHUTDOWN_Msk /*!< Shut-down mode */ | |
9145 | |
9146 | |
9147 /******************** Bit definition for PWR_CR2 register ********************/ | |
9148 #define PWR_CR2_USV_Pos (10U) | |
9149 #define PWR_CR2_USV_Msk (0x1U << PWR_CR2_USV_Pos) /*!< 0x00000400 */ | |
9150 #define PWR_CR2_USV PWR_CR2_USV_Msk /*!< VDD USB Supply Valid */ | |
9151 /*!< PVME Peripheral Voltage Monitor Enable */ | |
9152 #define PWR_CR2_PVME_Pos (4U) | |
9153 #define PWR_CR2_PVME_Msk (0xDU << PWR_CR2_PVME_Pos) /*!< 0x000000D0 */ | |
9154 #define PWR_CR2_PVME PWR_CR2_PVME_Msk /*!< PVM bits field */ | |
9155 #define PWR_CR2_PVME4_Pos (7U) | |
9156 #define PWR_CR2_PVME4_Msk (0x1U << PWR_CR2_PVME4_Pos) /*!< 0x00000080 */ | |
9157 #define PWR_CR2_PVME4 PWR_CR2_PVME4_Msk /*!< PVM 4 Enable */ | |
9158 #define PWR_CR2_PVME3_Pos (6U) | |
9159 #define PWR_CR2_PVME3_Msk (0x1U << PWR_CR2_PVME3_Pos) /*!< 0x00000040 */ | |
9160 #define PWR_CR2_PVME3 PWR_CR2_PVME3_Msk /*!< PVM 3 Enable */ | |
9161 #define PWR_CR2_PVME1_Pos (4U) | |
9162 #define PWR_CR2_PVME1_Msk (0x1U << PWR_CR2_PVME1_Pos) /*!< 0x00000010 */ | |
9163 #define PWR_CR2_PVME1 PWR_CR2_PVME1_Msk /*!< PVM 1 Enable */ | |
9164 /*!< PVD level configuration */ | |
9165 #define PWR_CR2_PLS_Pos (1U) | |
9166 #define PWR_CR2_PLS_Msk (0x7U << PWR_CR2_PLS_Pos) /*!< 0x0000000E */ | |
9167 #define PWR_CR2_PLS PWR_CR2_PLS_Msk /*!< PVD level selection */ | |
9168 #define PWR_CR2_PLS_LEV0 (0x00000000U) /*!< PVD level 0 */ | |
9169 #define PWR_CR2_PLS_LEV1_Pos (1U) | |
9170 #define PWR_CR2_PLS_LEV1_Msk (0x1U << PWR_CR2_PLS_LEV1_Pos) /*!< 0x00000002 */ | |
9171 #define PWR_CR2_PLS_LEV1 PWR_CR2_PLS_LEV1_Msk /*!< PVD level 1 */ | |
9172 #define PWR_CR2_PLS_LEV2_Pos (2U) | |
9173 #define PWR_CR2_PLS_LEV2_Msk (0x1U << PWR_CR2_PLS_LEV2_Pos) /*!< 0x00000004 */ | |
9174 #define PWR_CR2_PLS_LEV2 PWR_CR2_PLS_LEV2_Msk /*!< PVD level 2 */ | |
9175 #define PWR_CR2_PLS_LEV3_Pos (1U) | |
9176 #define PWR_CR2_PLS_LEV3_Msk (0x3U << PWR_CR2_PLS_LEV3_Pos) /*!< 0x00000006 */ | |
9177 #define PWR_CR2_PLS_LEV3 PWR_CR2_PLS_LEV3_Msk /*!< PVD level 3 */ | |
9178 #define PWR_CR2_PLS_LEV4_Pos (3U) | |
9179 #define PWR_CR2_PLS_LEV4_Msk (0x1U << PWR_CR2_PLS_LEV4_Pos) /*!< 0x00000008 */ | |
9180 #define PWR_CR2_PLS_LEV4 PWR_CR2_PLS_LEV4_Msk /*!< PVD level 4 */ | |
9181 #define PWR_CR2_PLS_LEV5_Pos (1U) | |
9182 #define PWR_CR2_PLS_LEV5_Msk (0x5U << PWR_CR2_PLS_LEV5_Pos) /*!< 0x0000000A */ | |
9183 #define PWR_CR2_PLS_LEV5 PWR_CR2_PLS_LEV5_Msk /*!< PVD level 5 */ | |
9184 #define PWR_CR2_PLS_LEV6_Pos (2U) | |
9185 #define PWR_CR2_PLS_LEV6_Msk (0x3U << PWR_CR2_PLS_LEV6_Pos) /*!< 0x0000000C */ | |
9186 #define PWR_CR2_PLS_LEV6 PWR_CR2_PLS_LEV6_Msk /*!< PVD level 6 */ | |
9187 #define PWR_CR2_PLS_LEV7_Pos (1U) | |
9188 #define PWR_CR2_PLS_LEV7_Msk (0x7U << PWR_CR2_PLS_LEV7_Pos) /*!< 0x0000000E */ | |
9189 #define PWR_CR2_PLS_LEV7 PWR_CR2_PLS_LEV7_Msk /*!< PVD level 7 */ | |
9190 #define PWR_CR2_PVDE_Pos (0U) | |
9191 #define PWR_CR2_PVDE_Msk (0x1U << PWR_CR2_PVDE_Pos) /*!< 0x00000001 */ | |
9192 #define PWR_CR2_PVDE PWR_CR2_PVDE_Msk /*!< Power Voltage Detector Enable */ | |
9193 | |
9194 /******************** Bit definition for PWR_CR3 register ********************/ | |
9195 #define PWR_CR3_EIWF_Pos (15U) | |
9196 #define PWR_CR3_EIWF_Msk (0x1U << PWR_CR3_EIWF_Pos) /*!< 0x00008000 */ | |
9197 #define PWR_CR3_EIWF PWR_CR3_EIWF_Msk /*!< Enable Internal Wake-up line */ | |
9198 #define PWR_CR3_APC_Pos (10U) | |
9199 #define PWR_CR3_APC_Msk (0x1U << PWR_CR3_APC_Pos) /*!< 0x00000400 */ | |
9200 #define PWR_CR3_APC PWR_CR3_APC_Msk /*!< Apply pull-up and pull-down configuration */ | |
9201 #define PWR_CR3_RRS_Pos (8U) | |
9202 #define PWR_CR3_RRS_Msk (0x1U << PWR_CR3_RRS_Pos) /*!< 0x00000100 */ | |
9203 #define PWR_CR3_RRS PWR_CR3_RRS_Msk /*!< SRAM2 Retention in Stand-by mode */ | |
9204 #define PWR_CR3_EWUP5_Pos (4U) | |
9205 #define PWR_CR3_EWUP5_Msk (0x1U << PWR_CR3_EWUP5_Pos) /*!< 0x00000010 */ | |
9206 #define PWR_CR3_EWUP5 PWR_CR3_EWUP5_Msk /*!< Enable Wake-Up Pin 5 */ | |
9207 #define PWR_CR3_EWUP4_Pos (3U) | |
9208 #define PWR_CR3_EWUP4_Msk (0x1U << PWR_CR3_EWUP4_Pos) /*!< 0x00000008 */ | |
9209 #define PWR_CR3_EWUP4 PWR_CR3_EWUP4_Msk /*!< Enable Wake-Up Pin 4 */ | |
9210 #define PWR_CR3_EWUP3_Pos (2U) | |
9211 #define PWR_CR3_EWUP3_Msk (0x1U << PWR_CR3_EWUP3_Pos) /*!< 0x00000004 */ | |
9212 #define PWR_CR3_EWUP3 PWR_CR3_EWUP3_Msk /*!< Enable Wake-Up Pin 3 */ | |
9213 #define PWR_CR3_EWUP2_Pos (1U) | |
9214 #define PWR_CR3_EWUP2_Msk (0x1U << PWR_CR3_EWUP2_Pos) /*!< 0x00000002 */ | |
9215 #define PWR_CR3_EWUP2 PWR_CR3_EWUP2_Msk /*!< Enable Wake-Up Pin 2 */ | |
9216 #define PWR_CR3_EWUP1_Pos (0U) | |
9217 #define PWR_CR3_EWUP1_Msk (0x1U << PWR_CR3_EWUP1_Pos) /*!< 0x00000001 */ | |
9218 #define PWR_CR3_EWUP1 PWR_CR3_EWUP1_Msk /*!< Enable Wake-Up Pin 1 */ | |
9219 #define PWR_CR3_EWUP_Pos (0U) | |
9220 #define PWR_CR3_EWUP_Msk (0x1FU << PWR_CR3_EWUP_Pos) /*!< 0x0000001F */ | |
9221 #define PWR_CR3_EWUP PWR_CR3_EWUP_Msk /*!< Enable Wake-Up Pins */ | |
9222 | |
9223 /******************** Bit definition for PWR_CR4 register ********************/ | |
9224 #define PWR_CR4_VBRS_Pos (9U) | |
9225 #define PWR_CR4_VBRS_Msk (0x1U << PWR_CR4_VBRS_Pos) /*!< 0x00000200 */ | |
9226 #define PWR_CR4_VBRS PWR_CR4_VBRS_Msk /*!< VBAT Battery charging Resistor Selection */ | |
9227 #define PWR_CR4_VBE_Pos (8U) | |
9228 #define PWR_CR4_VBE_Msk (0x1U << PWR_CR4_VBE_Pos) /*!< 0x00000100 */ | |
9229 #define PWR_CR4_VBE PWR_CR4_VBE_Msk /*!< VBAT Battery charging Enable */ | |
9230 #define PWR_CR4_WP5_Pos (4U) | |
9231 #define PWR_CR4_WP5_Msk (0x1U << PWR_CR4_WP5_Pos) /*!< 0x00000010 */ | |
9232 #define PWR_CR4_WP5 PWR_CR4_WP5_Msk /*!< Wake-Up Pin 5 polarity */ | |
9233 #define PWR_CR4_WP4_Pos (3U) | |
9234 #define PWR_CR4_WP4_Msk (0x1U << PWR_CR4_WP4_Pos) /*!< 0x00000008 */ | |
9235 #define PWR_CR4_WP4 PWR_CR4_WP4_Msk /*!< Wake-Up Pin 4 polarity */ | |
9236 #define PWR_CR4_WP3_Pos (2U) | |
9237 #define PWR_CR4_WP3_Msk (0x1U << PWR_CR4_WP3_Pos) /*!< 0x00000004 */ | |
9238 #define PWR_CR4_WP3 PWR_CR4_WP3_Msk /*!< Wake-Up Pin 3 polarity */ | |
9239 #define PWR_CR4_WP2_Pos (1U) | |
9240 #define PWR_CR4_WP2_Msk (0x1U << PWR_CR4_WP2_Pos) /*!< 0x00000002 */ | |
9241 #define PWR_CR4_WP2 PWR_CR4_WP2_Msk /*!< Wake-Up Pin 2 polarity */ | |
9242 #define PWR_CR4_WP1_Pos (0U) | |
9243 #define PWR_CR4_WP1_Msk (0x1U << PWR_CR4_WP1_Pos) /*!< 0x00000001 */ | |
9244 #define PWR_CR4_WP1 PWR_CR4_WP1_Msk /*!< Wake-Up Pin 1 polarity */ | |
9245 | |
9246 /******************** Bit definition for PWR_SR1 register ********************/ | |
9247 #define PWR_SR1_WUFI_Pos (15U) | |
9248 #define PWR_SR1_WUFI_Msk (0x1U << PWR_SR1_WUFI_Pos) /*!< 0x00008000 */ | |
9249 #define PWR_SR1_WUFI PWR_SR1_WUFI_Msk /*!< Wake-Up Flag Internal */ | |
9250 #define PWR_SR1_SBF_Pos (8U) | |
9251 #define PWR_SR1_SBF_Msk (0x1U << PWR_SR1_SBF_Pos) /*!< 0x00000100 */ | |
9252 #define PWR_SR1_SBF PWR_SR1_SBF_Msk /*!< Stand-By Flag */ | |
9253 #define PWR_SR1_WUF_Pos (0U) | |
9254 #define PWR_SR1_WUF_Msk (0x1FU << PWR_SR1_WUF_Pos) /*!< 0x0000001F */ | |
9255 #define PWR_SR1_WUF PWR_SR1_WUF_Msk /*!< Wake-up Flags */ | |
9256 #define PWR_SR1_WUF5_Pos (4U) | |
9257 #define PWR_SR1_WUF5_Msk (0x1U << PWR_SR1_WUF5_Pos) /*!< 0x00000010 */ | |
9258 #define PWR_SR1_WUF5 PWR_SR1_WUF5_Msk /*!< Wake-up Flag 5 */ | |
9259 #define PWR_SR1_WUF4_Pos (3U) | |
9260 #define PWR_SR1_WUF4_Msk (0x1U << PWR_SR1_WUF4_Pos) /*!< 0x00000008 */ | |
9261 #define PWR_SR1_WUF4 PWR_SR1_WUF4_Msk /*!< Wake-up Flag 4 */ | |
9262 #define PWR_SR1_WUF3_Pos (2U) | |
9263 #define PWR_SR1_WUF3_Msk (0x1U << PWR_SR1_WUF3_Pos) /*!< 0x00000004 */ | |
9264 #define PWR_SR1_WUF3 PWR_SR1_WUF3_Msk /*!< Wake-up Flag 3 */ | |
9265 #define PWR_SR1_WUF2_Pos (1U) | |
9266 #define PWR_SR1_WUF2_Msk (0x1U << PWR_SR1_WUF2_Pos) /*!< 0x00000002 */ | |
9267 #define PWR_SR1_WUF2 PWR_SR1_WUF2_Msk /*!< Wake-up Flag 2 */ | |
9268 #define PWR_SR1_WUF1_Pos (0U) | |
9269 #define PWR_SR1_WUF1_Msk (0x1U << PWR_SR1_WUF1_Pos) /*!< 0x00000001 */ | |
9270 #define PWR_SR1_WUF1 PWR_SR1_WUF1_Msk /*!< Wake-up Flag 1 */ | |
9271 | |
9272 /******************** Bit definition for PWR_SR2 register ********************/ | |
9273 #define PWR_SR2_PVMO4_Pos (15U) | |
9274 #define PWR_SR2_PVMO4_Msk (0x1U << PWR_SR2_PVMO4_Pos) /*!< 0x00008000 */ | |
9275 #define PWR_SR2_PVMO4 PWR_SR2_PVMO4_Msk /*!< Peripheral Voltage Monitoring Output 4 */ | |
9276 #define PWR_SR2_PVMO3_Pos (14U) | |
9277 #define PWR_SR2_PVMO3_Msk (0x1U << PWR_SR2_PVMO3_Pos) /*!< 0x00004000 */ | |
9278 #define PWR_SR2_PVMO3 PWR_SR2_PVMO3_Msk /*!< Peripheral Voltage Monitoring Output 3 */ | |
9279 #define PWR_SR2_PVMO1_Pos (12U) | |
9280 #define PWR_SR2_PVMO1_Msk (0x1U << PWR_SR2_PVMO1_Pos) /*!< 0x00001000 */ | |
9281 #define PWR_SR2_PVMO1 PWR_SR2_PVMO1_Msk /*!< Peripheral Voltage Monitoring Output 1 */ | |
9282 #define PWR_SR2_PVDO_Pos (11U) | |
9283 #define PWR_SR2_PVDO_Msk (0x1U << PWR_SR2_PVDO_Pos) /*!< 0x00000800 */ | |
9284 #define PWR_SR2_PVDO PWR_SR2_PVDO_Msk /*!< Power Voltage Detector Output */ | |
9285 #define PWR_SR2_VOSF_Pos (10U) | |
9286 #define PWR_SR2_VOSF_Msk (0x1U << PWR_SR2_VOSF_Pos) /*!< 0x00000400 */ | |
9287 #define PWR_SR2_VOSF PWR_SR2_VOSF_Msk /*!< Voltage Scaling Flag */ | |
9288 #define PWR_SR2_REGLPF_Pos (9U) | |
9289 #define PWR_SR2_REGLPF_Msk (0x1U << PWR_SR2_REGLPF_Pos) /*!< 0x00000200 */ | |
9290 #define PWR_SR2_REGLPF PWR_SR2_REGLPF_Msk /*!< Low-power Regulator Flag */ | |
9291 #define PWR_SR2_REGLPS_Pos (8U) | |
9292 #define PWR_SR2_REGLPS_Msk (0x1U << PWR_SR2_REGLPS_Pos) /*!< 0x00000100 */ | |
9293 #define PWR_SR2_REGLPS PWR_SR2_REGLPS_Msk /*!< Low-power Regulator Started */ | |
9294 | |
9295 /******************** Bit definition for PWR_SCR register ********************/ | |
9296 #define PWR_SCR_CSBF_Pos (8U) | |
9297 #define PWR_SCR_CSBF_Msk (0x1U << PWR_SCR_CSBF_Pos) /*!< 0x00000100 */ | |
9298 #define PWR_SCR_CSBF PWR_SCR_CSBF_Msk /*!< Clear Stand-By Flag */ | |
9299 #define PWR_SCR_CWUF_Pos (0U) | |
9300 #define PWR_SCR_CWUF_Msk (0x1FU << PWR_SCR_CWUF_Pos) /*!< 0x0000001F */ | |
9301 #define PWR_SCR_CWUF PWR_SCR_CWUF_Msk /*!< Clear Wake-up Flags */ | |
9302 #define PWR_SCR_CWUF5_Pos (4U) | |
9303 #define PWR_SCR_CWUF5_Msk (0x1U << PWR_SCR_CWUF5_Pos) /*!< 0x00000010 */ | |
9304 #define PWR_SCR_CWUF5 PWR_SCR_CWUF5_Msk /*!< Clear Wake-up Flag 5 */ | |
9305 #define PWR_SCR_CWUF4_Pos (3U) | |
9306 #define PWR_SCR_CWUF4_Msk (0x1U << PWR_SCR_CWUF4_Pos) /*!< 0x00000008 */ | |
9307 #define PWR_SCR_CWUF4 PWR_SCR_CWUF4_Msk /*!< Clear Wake-up Flag 4 */ | |
9308 #define PWR_SCR_CWUF3_Pos (2U) | |
9309 #define PWR_SCR_CWUF3_Msk (0x1U << PWR_SCR_CWUF3_Pos) /*!< 0x00000004 */ | |
9310 #define PWR_SCR_CWUF3 PWR_SCR_CWUF3_Msk /*!< Clear Wake-up Flag 3 */ | |
9311 #define PWR_SCR_CWUF2_Pos (1U) | |
9312 #define PWR_SCR_CWUF2_Msk (0x1U << PWR_SCR_CWUF2_Pos) /*!< 0x00000002 */ | |
9313 #define PWR_SCR_CWUF2 PWR_SCR_CWUF2_Msk /*!< Clear Wake-up Flag 2 */ | |
9314 #define PWR_SCR_CWUF1_Pos (0U) | |
9315 #define PWR_SCR_CWUF1_Msk (0x1U << PWR_SCR_CWUF1_Pos) /*!< 0x00000001 */ | |
9316 #define PWR_SCR_CWUF1 PWR_SCR_CWUF1_Msk /*!< Clear Wake-up Flag 1 */ | |
9317 | |
9318 /******************** Bit definition for PWR_PUCRA register ********************/ | |
9319 #define PWR_PUCRA_PA15_Pos (15U) | |
9320 #define PWR_PUCRA_PA15_Msk (0x1U << PWR_PUCRA_PA15_Pos) /*!< 0x00008000 */ | |
9321 #define PWR_PUCRA_PA15 PWR_PUCRA_PA15_Msk /*!< Port PA15 Pull-Up set */ | |
9322 #define PWR_PUCRA_PA13_Pos (13U) | |
9323 #define PWR_PUCRA_PA13_Msk (0x1U << PWR_PUCRA_PA13_Pos) /*!< 0x00002000 */ | |
9324 #define PWR_PUCRA_PA13 PWR_PUCRA_PA13_Msk /*!< Port PA13 Pull-Up set */ | |
9325 #define PWR_PUCRA_PA12_Pos (12U) | |
9326 #define PWR_PUCRA_PA12_Msk (0x1U << PWR_PUCRA_PA12_Pos) /*!< 0x00001000 */ | |
9327 #define PWR_PUCRA_PA12 PWR_PUCRA_PA12_Msk /*!< Port PA12 Pull-Up set */ | |
9328 #define PWR_PUCRA_PA11_Pos (11U) | |
9329 #define PWR_PUCRA_PA11_Msk (0x1U << PWR_PUCRA_PA11_Pos) /*!< 0x00000800 */ | |
9330 #define PWR_PUCRA_PA11 PWR_PUCRA_PA11_Msk /*!< Port PA11 Pull-Up set */ | |
9331 #define PWR_PUCRA_PA10_Pos (10U) | |
9332 #define PWR_PUCRA_PA10_Msk (0x1U << PWR_PUCRA_PA10_Pos) /*!< 0x00000400 */ | |
9333 #define PWR_PUCRA_PA10 PWR_PUCRA_PA10_Msk /*!< Port PA10 Pull-Up set */ | |
9334 #define PWR_PUCRA_PA9_Pos (9U) | |
9335 #define PWR_PUCRA_PA9_Msk (0x1U << PWR_PUCRA_PA9_Pos) /*!< 0x00000200 */ | |
9336 #define PWR_PUCRA_PA9 PWR_PUCRA_PA9_Msk /*!< Port PA9 Pull-Up set */ | |
9337 #define PWR_PUCRA_PA8_Pos (8U) | |
9338 #define PWR_PUCRA_PA8_Msk (0x1U << PWR_PUCRA_PA8_Pos) /*!< 0x00000100 */ | |
9339 #define PWR_PUCRA_PA8 PWR_PUCRA_PA8_Msk /*!< Port PA8 Pull-Up set */ | |
9340 #define PWR_PUCRA_PA7_Pos (7U) | |
9341 #define PWR_PUCRA_PA7_Msk (0x1U << PWR_PUCRA_PA7_Pos) /*!< 0x00000080 */ | |
9342 #define PWR_PUCRA_PA7 PWR_PUCRA_PA7_Msk /*!< Port PA7 Pull-Up set */ | |
9343 #define PWR_PUCRA_PA6_Pos (6U) | |
9344 #define PWR_PUCRA_PA6_Msk (0x1U << PWR_PUCRA_PA6_Pos) /*!< 0x00000040 */ | |
9345 #define PWR_PUCRA_PA6 PWR_PUCRA_PA6_Msk /*!< Port PA6 Pull-Up set */ | |
9346 #define PWR_PUCRA_PA5_Pos (5U) | |
9347 #define PWR_PUCRA_PA5_Msk (0x1U << PWR_PUCRA_PA5_Pos) /*!< 0x00000020 */ | |
9348 #define PWR_PUCRA_PA5 PWR_PUCRA_PA5_Msk /*!< Port PA5 Pull-Up set */ | |
9349 #define PWR_PUCRA_PA4_Pos (4U) | |
9350 #define PWR_PUCRA_PA4_Msk (0x1U << PWR_PUCRA_PA4_Pos) /*!< 0x00000010 */ | |
9351 #define PWR_PUCRA_PA4 PWR_PUCRA_PA4_Msk /*!< Port PA4 Pull-Up set */ | |
9352 #define PWR_PUCRA_PA3_Pos (3U) | |
9353 #define PWR_PUCRA_PA3_Msk (0x1U << PWR_PUCRA_PA3_Pos) /*!< 0x00000008 */ | |
9354 #define PWR_PUCRA_PA3 PWR_PUCRA_PA3_Msk /*!< Port PA3 Pull-Up set */ | |
9355 #define PWR_PUCRA_PA2_Pos (2U) | |
9356 #define PWR_PUCRA_PA2_Msk (0x1U << PWR_PUCRA_PA2_Pos) /*!< 0x00000004 */ | |
9357 #define PWR_PUCRA_PA2 PWR_PUCRA_PA2_Msk /*!< Port PA2 Pull-Up set */ | |
9358 #define PWR_PUCRA_PA1_Pos (1U) | |
9359 #define PWR_PUCRA_PA1_Msk (0x1U << PWR_PUCRA_PA1_Pos) /*!< 0x00000002 */ | |
9360 #define PWR_PUCRA_PA1 PWR_PUCRA_PA1_Msk /*!< Port PA1 Pull-Up set */ | |
9361 #define PWR_PUCRA_PA0_Pos (0U) | |
9362 #define PWR_PUCRA_PA0_Msk (0x1U << PWR_PUCRA_PA0_Pos) /*!< 0x00000001 */ | |
9363 #define PWR_PUCRA_PA0 PWR_PUCRA_PA0_Msk /*!< Port PA0 Pull-Up set */ | |
9364 | |
9365 /******************** Bit definition for PWR_PDCRA register ********************/ | |
9366 #define PWR_PDCRA_PA14_Pos (14U) | |
9367 #define PWR_PDCRA_PA14_Msk (0x1U << PWR_PDCRA_PA14_Pos) /*!< 0x00004000 */ | |
9368 #define PWR_PDCRA_PA14 PWR_PDCRA_PA14_Msk /*!< Port PA14 Pull-Down set */ | |
9369 #define PWR_PDCRA_PA12_Pos (12U) | |
9370 #define PWR_PDCRA_PA12_Msk (0x1U << PWR_PDCRA_PA12_Pos) /*!< 0x00001000 */ | |
9371 #define PWR_PDCRA_PA12 PWR_PDCRA_PA12_Msk /*!< Port PA12 Pull-Down set */ | |
9372 #define PWR_PDCRA_PA11_Pos (11U) | |
9373 #define PWR_PDCRA_PA11_Msk (0x1U << PWR_PDCRA_PA11_Pos) /*!< 0x00000800 */ | |
9374 #define PWR_PDCRA_PA11 PWR_PDCRA_PA11_Msk /*!< Port PA11 Pull-Down set */ | |
9375 #define PWR_PDCRA_PA10_Pos (10U) | |
9376 #define PWR_PDCRA_PA10_Msk (0x1U << PWR_PDCRA_PA10_Pos) /*!< 0x00000400 */ | |
9377 #define PWR_PDCRA_PA10 PWR_PDCRA_PA10_Msk /*!< Port PA10 Pull-Down set */ | |
9378 #define PWR_PDCRA_PA9_Pos (9U) | |
9379 #define PWR_PDCRA_PA9_Msk (0x1U << PWR_PDCRA_PA9_Pos) /*!< 0x00000200 */ | |
9380 #define PWR_PDCRA_PA9 PWR_PDCRA_PA9_Msk /*!< Port PA9 Pull-Down set */ | |
9381 #define PWR_PDCRA_PA8_Pos (8U) | |
9382 #define PWR_PDCRA_PA8_Msk (0x1U << PWR_PDCRA_PA8_Pos) /*!< 0x00000100 */ | |
9383 #define PWR_PDCRA_PA8 PWR_PDCRA_PA8_Msk /*!< Port PA8 Pull-Down set */ | |
9384 #define PWR_PDCRA_PA7_Pos (7U) | |
9385 #define PWR_PDCRA_PA7_Msk (0x1U << PWR_PDCRA_PA7_Pos) /*!< 0x00000080 */ | |
9386 #define PWR_PDCRA_PA7 PWR_PDCRA_PA7_Msk /*!< Port PA7 Pull-Down set */ | |
9387 #define PWR_PDCRA_PA6_Pos (6U) | |
9388 #define PWR_PDCRA_PA6_Msk (0x1U << PWR_PDCRA_PA6_Pos) /*!< 0x00000040 */ | |
9389 #define PWR_PDCRA_PA6 PWR_PDCRA_PA6_Msk /*!< Port PA6 Pull-Down set */ | |
9390 #define PWR_PDCRA_PA5_Pos (5U) | |
9391 #define PWR_PDCRA_PA5_Msk (0x1U << PWR_PDCRA_PA5_Pos) /*!< 0x00000020 */ | |
9392 #define PWR_PDCRA_PA5 PWR_PDCRA_PA5_Msk /*!< Port PA5 Pull-Down set */ | |
9393 #define PWR_PDCRA_PA4_Pos (4U) | |
9394 #define PWR_PDCRA_PA4_Msk (0x1U << PWR_PDCRA_PA4_Pos) /*!< 0x00000010 */ | |
9395 #define PWR_PDCRA_PA4 PWR_PDCRA_PA4_Msk /*!< Port PA4 Pull-Down set */ | |
9396 #define PWR_PDCRA_PA3_Pos (3U) | |
9397 #define PWR_PDCRA_PA3_Msk (0x1U << PWR_PDCRA_PA3_Pos) /*!< 0x00000008 */ | |
9398 #define PWR_PDCRA_PA3 PWR_PDCRA_PA3_Msk /*!< Port PA3 Pull-Down set */ | |
9399 #define PWR_PDCRA_PA2_Pos (2U) | |
9400 #define PWR_PDCRA_PA2_Msk (0x1U << PWR_PDCRA_PA2_Pos) /*!< 0x00000004 */ | |
9401 #define PWR_PDCRA_PA2 PWR_PDCRA_PA2_Msk /*!< Port PA2 Pull-Down set */ | |
9402 #define PWR_PDCRA_PA1_Pos (1U) | |
9403 #define PWR_PDCRA_PA1_Msk (0x1U << PWR_PDCRA_PA1_Pos) /*!< 0x00000002 */ | |
9404 #define PWR_PDCRA_PA1 PWR_PDCRA_PA1_Msk /*!< Port PA1 Pull-Down set */ | |
9405 #define PWR_PDCRA_PA0_Pos (0U) | |
9406 #define PWR_PDCRA_PA0_Msk (0x1U << PWR_PDCRA_PA0_Pos) /*!< 0x00000001 */ | |
9407 #define PWR_PDCRA_PA0 PWR_PDCRA_PA0_Msk /*!< Port PA0 Pull-Down set */ | |
9408 | |
9409 /******************** Bit definition for PWR_PUCRB register ********************/ | |
9410 #define PWR_PUCRB_PB15_Pos (15U) | |
9411 #define PWR_PUCRB_PB15_Msk (0x1U << PWR_PUCRB_PB15_Pos) /*!< 0x00008000 */ | |
9412 #define PWR_PUCRB_PB15 PWR_PUCRB_PB15_Msk /*!< Port PB15 Pull-Up set */ | |
9413 #define PWR_PUCRB_PB14_Pos (14U) | |
9414 #define PWR_PUCRB_PB14_Msk (0x1U << PWR_PUCRB_PB14_Pos) /*!< 0x00004000 */ | |
9415 #define PWR_PUCRB_PB14 PWR_PUCRB_PB14_Msk /*!< Port PB14 Pull-Up set */ | |
9416 #define PWR_PUCRB_PB13_Pos (13U) | |
9417 #define PWR_PUCRB_PB13_Msk (0x1U << PWR_PUCRB_PB13_Pos) /*!< 0x00002000 */ | |
9418 #define PWR_PUCRB_PB13 PWR_PUCRB_PB13_Msk /*!< Port PB13 Pull-Up set */ | |
9419 #define PWR_PUCRB_PB12_Pos (12U) | |
9420 #define PWR_PUCRB_PB12_Msk (0x1U << PWR_PUCRB_PB12_Pos) /*!< 0x00001000 */ | |
9421 #define PWR_PUCRB_PB12 PWR_PUCRB_PB12_Msk /*!< Port PB12 Pull-Up set */ | |
9422 #define PWR_PUCRB_PB11_Pos (11U) | |
9423 #define PWR_PUCRB_PB11_Msk (0x1U << PWR_PUCRB_PB11_Pos) /*!< 0x00000800 */ | |
9424 #define PWR_PUCRB_PB11 PWR_PUCRB_PB11_Msk /*!< Port PB11 Pull-Up set */ | |
9425 #define PWR_PUCRB_PB10_Pos (10U) | |
9426 #define PWR_PUCRB_PB10_Msk (0x1U << PWR_PUCRB_PB10_Pos) /*!< 0x00000400 */ | |
9427 #define PWR_PUCRB_PB10 PWR_PUCRB_PB10_Msk /*!< Port PB10 Pull-Up set */ | |
9428 #define PWR_PUCRB_PB9_Pos (9U) | |
9429 #define PWR_PUCRB_PB9_Msk (0x1U << PWR_PUCRB_PB9_Pos) /*!< 0x00000200 */ | |
9430 #define PWR_PUCRB_PB9 PWR_PUCRB_PB9_Msk /*!< Port PB9 Pull-Up set */ | |
9431 #define PWR_PUCRB_PB8_Pos (8U) | |
9432 #define PWR_PUCRB_PB8_Msk (0x1U << PWR_PUCRB_PB8_Pos) /*!< 0x00000100 */ | |
9433 #define PWR_PUCRB_PB8 PWR_PUCRB_PB8_Msk /*!< Port PB8 Pull-Up set */ | |
9434 #define PWR_PUCRB_PB7_Pos (7U) | |
9435 #define PWR_PUCRB_PB7_Msk (0x1U << PWR_PUCRB_PB7_Pos) /*!< 0x00000080 */ | |
9436 #define PWR_PUCRB_PB7 PWR_PUCRB_PB7_Msk /*!< Port PB7 Pull-Up set */ | |
9437 #define PWR_PUCRB_PB6_Pos (6U) | |
9438 #define PWR_PUCRB_PB6_Msk (0x1U << PWR_PUCRB_PB6_Pos) /*!< 0x00000040 */ | |
9439 #define PWR_PUCRB_PB6 PWR_PUCRB_PB6_Msk /*!< Port PB6 Pull-Up set */ | |
9440 #define PWR_PUCRB_PB5_Pos (5U) | |
9441 #define PWR_PUCRB_PB5_Msk (0x1U << PWR_PUCRB_PB5_Pos) /*!< 0x00000020 */ | |
9442 #define PWR_PUCRB_PB5 PWR_PUCRB_PB5_Msk /*!< Port PB5 Pull-Up set */ | |
9443 #define PWR_PUCRB_PB4_Pos (4U) | |
9444 #define PWR_PUCRB_PB4_Msk (0x1U << PWR_PUCRB_PB4_Pos) /*!< 0x00000010 */ | |
9445 #define PWR_PUCRB_PB4 PWR_PUCRB_PB4_Msk /*!< Port PB4 Pull-Up set */ | |
9446 #define PWR_PUCRB_PB3_Pos (3U) | |
9447 #define PWR_PUCRB_PB3_Msk (0x1U << PWR_PUCRB_PB3_Pos) /*!< 0x00000008 */ | |
9448 #define PWR_PUCRB_PB3 PWR_PUCRB_PB3_Msk /*!< Port PB3 Pull-Up set */ | |
9449 #define PWR_PUCRB_PB2_Pos (2U) | |
9450 #define PWR_PUCRB_PB2_Msk (0x1U << PWR_PUCRB_PB2_Pos) /*!< 0x00000004 */ | |
9451 #define PWR_PUCRB_PB2 PWR_PUCRB_PB2_Msk /*!< Port PB2 Pull-Up set */ | |
9452 #define PWR_PUCRB_PB1_Pos (1U) | |
9453 #define PWR_PUCRB_PB1_Msk (0x1U << PWR_PUCRB_PB1_Pos) /*!< 0x00000002 */ | |
9454 #define PWR_PUCRB_PB1 PWR_PUCRB_PB1_Msk /*!< Port PB1 Pull-Up set */ | |
9455 #define PWR_PUCRB_PB0_Pos (0U) | |
9456 #define PWR_PUCRB_PB0_Msk (0x1U << PWR_PUCRB_PB0_Pos) /*!< 0x00000001 */ | |
9457 #define PWR_PUCRB_PB0 PWR_PUCRB_PB0_Msk /*!< Port PB0 Pull-Up set */ | |
9458 | |
9459 /******************** Bit definition for PWR_PDCRB register ********************/ | |
9460 #define PWR_PDCRB_PB15_Pos (15U) | |
9461 #define PWR_PDCRB_PB15_Msk (0x1U << PWR_PDCRB_PB15_Pos) /*!< 0x00008000 */ | |
9462 #define PWR_PDCRB_PB15 PWR_PDCRB_PB15_Msk /*!< Port PB15 Pull-Down set */ | |
9463 #define PWR_PDCRB_PB14_Pos (14U) | |
9464 #define PWR_PDCRB_PB14_Msk (0x1U << PWR_PDCRB_PB14_Pos) /*!< 0x00004000 */ | |
9465 #define PWR_PDCRB_PB14 PWR_PDCRB_PB14_Msk /*!< Port PB14 Pull-Down set */ | |
9466 #define PWR_PDCRB_PB13_Pos (13U) | |
9467 #define PWR_PDCRB_PB13_Msk (0x1U << PWR_PDCRB_PB13_Pos) /*!< 0x00002000 */ | |
9468 #define PWR_PDCRB_PB13 PWR_PDCRB_PB13_Msk /*!< Port PB13 Pull-Down set */ | |
9469 #define PWR_PDCRB_PB12_Pos (12U) | |
9470 #define PWR_PDCRB_PB12_Msk (0x1U << PWR_PDCRB_PB12_Pos) /*!< 0x00001000 */ | |
9471 #define PWR_PDCRB_PB12 PWR_PDCRB_PB12_Msk /*!< Port PB12 Pull-Down set */ | |
9472 #define PWR_PDCRB_PB11_Pos (11U) | |
9473 #define PWR_PDCRB_PB11_Msk (0x1U << PWR_PDCRB_PB11_Pos) /*!< 0x00000800 */ | |
9474 #define PWR_PDCRB_PB11 PWR_PDCRB_PB11_Msk /*!< Port PB11 Pull-Down set */ | |
9475 #define PWR_PDCRB_PB10_Pos (10U) | |
9476 #define PWR_PDCRB_PB10_Msk (0x1U << PWR_PDCRB_PB10_Pos) /*!< 0x00000400 */ | |
9477 #define PWR_PDCRB_PB10 PWR_PDCRB_PB10_Msk /*!< Port PB10 Pull-Down set */ | |
9478 #define PWR_PDCRB_PB9_Pos (9U) | |
9479 #define PWR_PDCRB_PB9_Msk (0x1U << PWR_PDCRB_PB9_Pos) /*!< 0x00000200 */ | |
9480 #define PWR_PDCRB_PB9 PWR_PDCRB_PB9_Msk /*!< Port PB9 Pull-Down set */ | |
9481 #define PWR_PDCRB_PB8_Pos (8U) | |
9482 #define PWR_PDCRB_PB8_Msk (0x1U << PWR_PDCRB_PB8_Pos) /*!< 0x00000100 */ | |
9483 #define PWR_PDCRB_PB8 PWR_PDCRB_PB8_Msk /*!< Port PB8 Pull-Down set */ | |
9484 #define PWR_PDCRB_PB7_Pos (7U) | |
9485 #define PWR_PDCRB_PB7_Msk (0x1U << PWR_PDCRB_PB7_Pos) /*!< 0x00000080 */ | |
9486 #define PWR_PDCRB_PB7 PWR_PDCRB_PB7_Msk /*!< Port PB7 Pull-Down set */ | |
9487 #define PWR_PDCRB_PB6_Pos (6U) | |
9488 #define PWR_PDCRB_PB6_Msk (0x1U << PWR_PDCRB_PB6_Pos) /*!< 0x00000040 */ | |
9489 #define PWR_PDCRB_PB6 PWR_PDCRB_PB6_Msk /*!< Port PB6 Pull-Down set */ | |
9490 #define PWR_PDCRB_PB5_Pos (5U) | |
9491 #define PWR_PDCRB_PB5_Msk (0x1U << PWR_PDCRB_PB5_Pos) /*!< 0x00000020 */ | |
9492 #define PWR_PDCRB_PB5 PWR_PDCRB_PB5_Msk /*!< Port PB5 Pull-Down set */ | |
9493 #define PWR_PDCRB_PB3_Pos (3U) | |
9494 #define PWR_PDCRB_PB3_Msk (0x1U << PWR_PDCRB_PB3_Pos) /*!< 0x00000008 */ | |
9495 #define PWR_PDCRB_PB3 PWR_PDCRB_PB3_Msk /*!< Port PB3 Pull-Down set */ | |
9496 #define PWR_PDCRB_PB2_Pos (2U) | |
9497 #define PWR_PDCRB_PB2_Msk (0x1U << PWR_PDCRB_PB2_Pos) /*!< 0x00000004 */ | |
9498 #define PWR_PDCRB_PB2 PWR_PDCRB_PB2_Msk /*!< Port PB2 Pull-Down set */ | |
9499 #define PWR_PDCRB_PB1_Pos (1U) | |
9500 #define PWR_PDCRB_PB1_Msk (0x1U << PWR_PDCRB_PB1_Pos) /*!< 0x00000002 */ | |
9501 #define PWR_PDCRB_PB1 PWR_PDCRB_PB1_Msk /*!< Port PB1 Pull-Down set */ | |
9502 #define PWR_PDCRB_PB0_Pos (0U) | |
9503 #define PWR_PDCRB_PB0_Msk (0x1U << PWR_PDCRB_PB0_Pos) /*!< 0x00000001 */ | |
9504 #define PWR_PDCRB_PB0 PWR_PDCRB_PB0_Msk /*!< Port PB0 Pull-Down set */ | |
9505 | |
9506 /******************** Bit definition for PWR_PUCRC register ********************/ | |
9507 #define PWR_PUCRC_PC15_Pos (15U) | |
9508 #define PWR_PUCRC_PC15_Msk (0x1U << PWR_PUCRC_PC15_Pos) /*!< 0x00008000 */ | |
9509 #define PWR_PUCRC_PC15 PWR_PUCRC_PC15_Msk /*!< Port PC15 Pull-Up set */ | |
9510 #define PWR_PUCRC_PC14_Pos (14U) | |
9511 #define PWR_PUCRC_PC14_Msk (0x1U << PWR_PUCRC_PC14_Pos) /*!< 0x00004000 */ | |
9512 #define PWR_PUCRC_PC14 PWR_PUCRC_PC14_Msk /*!< Port PC14 Pull-Up set */ | |
9513 #define PWR_PUCRC_PC13_Pos (13U) | |
9514 #define PWR_PUCRC_PC13_Msk (0x1U << PWR_PUCRC_PC13_Pos) /*!< 0x00002000 */ | |
9515 #define PWR_PUCRC_PC13 PWR_PUCRC_PC13_Msk /*!< Port PC13 Pull-Up set */ | |
9516 #define PWR_PUCRC_PC12_Pos (12U) | |
9517 #define PWR_PUCRC_PC12_Msk (0x1U << PWR_PUCRC_PC12_Pos) /*!< 0x00001000 */ | |
9518 #define PWR_PUCRC_PC12 PWR_PUCRC_PC12_Msk /*!< Port PC12 Pull-Up set */ | |
9519 #define PWR_PUCRC_PC11_Pos (11U) | |
9520 #define PWR_PUCRC_PC11_Msk (0x1U << PWR_PUCRC_PC11_Pos) /*!< 0x00000800 */ | |
9521 #define PWR_PUCRC_PC11 PWR_PUCRC_PC11_Msk /*!< Port PC11 Pull-Up set */ | |
9522 #define PWR_PUCRC_PC10_Pos (10U) | |
9523 #define PWR_PUCRC_PC10_Msk (0x1U << PWR_PUCRC_PC10_Pos) /*!< 0x00000400 */ | |
9524 #define PWR_PUCRC_PC10 PWR_PUCRC_PC10_Msk /*!< Port PC10 Pull-Up set */ | |
9525 #define PWR_PUCRC_PC9_Pos (9U) | |
9526 #define PWR_PUCRC_PC9_Msk (0x1U << PWR_PUCRC_PC9_Pos) /*!< 0x00000200 */ | |
9527 #define PWR_PUCRC_PC9 PWR_PUCRC_PC9_Msk /*!< Port PC9 Pull-Up set */ | |
9528 #define PWR_PUCRC_PC8_Pos (8U) | |
9529 #define PWR_PUCRC_PC8_Msk (0x1U << PWR_PUCRC_PC8_Pos) /*!< 0x00000100 */ | |
9530 #define PWR_PUCRC_PC8 PWR_PUCRC_PC8_Msk /*!< Port PC8 Pull-Up set */ | |
9531 #define PWR_PUCRC_PC7_Pos (7U) | |
9532 #define PWR_PUCRC_PC7_Msk (0x1U << PWR_PUCRC_PC7_Pos) /*!< 0x00000080 */ | |
9533 #define PWR_PUCRC_PC7 PWR_PUCRC_PC7_Msk /*!< Port PC7 Pull-Up set */ | |
9534 #define PWR_PUCRC_PC6_Pos (6U) | |
9535 #define PWR_PUCRC_PC6_Msk (0x1U << PWR_PUCRC_PC6_Pos) /*!< 0x00000040 */ | |
9536 #define PWR_PUCRC_PC6 PWR_PUCRC_PC6_Msk /*!< Port PC6 Pull-Up set */ | |
9537 #define PWR_PUCRC_PC5_Pos (5U) | |
9538 #define PWR_PUCRC_PC5_Msk (0x1U << PWR_PUCRC_PC5_Pos) /*!< 0x00000020 */ | |
9539 #define PWR_PUCRC_PC5 PWR_PUCRC_PC5_Msk /*!< Port PC5 Pull-Up set */ | |
9540 #define PWR_PUCRC_PC4_Pos (4U) | |
9541 #define PWR_PUCRC_PC4_Msk (0x1U << PWR_PUCRC_PC4_Pos) /*!< 0x00000010 */ | |
9542 #define PWR_PUCRC_PC4 PWR_PUCRC_PC4_Msk /*!< Port PC4 Pull-Up set */ | |
9543 #define PWR_PUCRC_PC3_Pos (3U) | |
9544 #define PWR_PUCRC_PC3_Msk (0x1U << PWR_PUCRC_PC3_Pos) /*!< 0x00000008 */ | |
9545 #define PWR_PUCRC_PC3 PWR_PUCRC_PC3_Msk /*!< Port PC3 Pull-Up set */ | |
9546 #define PWR_PUCRC_PC2_Pos (2U) | |
9547 #define PWR_PUCRC_PC2_Msk (0x1U << PWR_PUCRC_PC2_Pos) /*!< 0x00000004 */ | |
9548 #define PWR_PUCRC_PC2 PWR_PUCRC_PC2_Msk /*!< Port PC2 Pull-Up set */ | |
9549 #define PWR_PUCRC_PC1_Pos (1U) | |
9550 #define PWR_PUCRC_PC1_Msk (0x1U << PWR_PUCRC_PC1_Pos) /*!< 0x00000002 */ | |
9551 #define PWR_PUCRC_PC1 PWR_PUCRC_PC1_Msk /*!< Port PC1 Pull-Up set */ | |
9552 #define PWR_PUCRC_PC0_Pos (0U) | |
9553 #define PWR_PUCRC_PC0_Msk (0x1U << PWR_PUCRC_PC0_Pos) /*!< 0x00000001 */ | |
9554 #define PWR_PUCRC_PC0 PWR_PUCRC_PC0_Msk /*!< Port PC0 Pull-Up set */ | |
9555 | |
9556 /******************** Bit definition for PWR_PDCRC register ********************/ | |
9557 #define PWR_PDCRC_PC15_Pos (15U) | |
9558 #define PWR_PDCRC_PC15_Msk (0x1U << PWR_PDCRC_PC15_Pos) /*!< 0x00008000 */ | |
9559 #define PWR_PDCRC_PC15 PWR_PDCRC_PC15_Msk /*!< Port PC15 Pull-Down set */ | |
9560 #define PWR_PDCRC_PC14_Pos (14U) | |
9561 #define PWR_PDCRC_PC14_Msk (0x1U << PWR_PDCRC_PC14_Pos) /*!< 0x00004000 */ | |
9562 #define PWR_PDCRC_PC14 PWR_PDCRC_PC14_Msk /*!< Port PC14 Pull-Down set */ | |
9563 #define PWR_PDCRC_PC13_Pos (13U) | |
9564 #define PWR_PDCRC_PC13_Msk (0x1U << PWR_PDCRC_PC13_Pos) /*!< 0x00002000 */ | |
9565 #define PWR_PDCRC_PC13 PWR_PDCRC_PC13_Msk /*!< Port PC13 Pull-Down set */ | |
9566 #define PWR_PDCRC_PC12_Pos (12U) | |
9567 #define PWR_PDCRC_PC12_Msk (0x1U << PWR_PDCRC_PC12_Pos) /*!< 0x00001000 */ | |
9568 #define PWR_PDCRC_PC12 PWR_PDCRC_PC12_Msk /*!< Port PC12 Pull-Down set */ | |
9569 #define PWR_PDCRC_PC11_Pos (11U) | |
9570 #define PWR_PDCRC_PC11_Msk (0x1U << PWR_PDCRC_PC11_Pos) /*!< 0x00000800 */ | |
9571 #define PWR_PDCRC_PC11 PWR_PDCRC_PC11_Msk /*!< Port PC11 Pull-Down set */ | |
9572 #define PWR_PDCRC_PC10_Pos (10U) | |
9573 #define PWR_PDCRC_PC10_Msk (0x1U << PWR_PDCRC_PC10_Pos) /*!< 0x00000400 */ | |
9574 #define PWR_PDCRC_PC10 PWR_PDCRC_PC10_Msk /*!< Port PC10 Pull-Down set */ | |
9575 #define PWR_PDCRC_PC9_Pos (9U) | |
9576 #define PWR_PDCRC_PC9_Msk (0x1U << PWR_PDCRC_PC9_Pos) /*!< 0x00000200 */ | |
9577 #define PWR_PDCRC_PC9 PWR_PDCRC_PC9_Msk /*!< Port PC9 Pull-Down set */ | |
9578 #define PWR_PDCRC_PC8_Pos (8U) | |
9579 #define PWR_PDCRC_PC8_Msk (0x1U << PWR_PDCRC_PC8_Pos) /*!< 0x00000100 */ | |
9580 #define PWR_PDCRC_PC8 PWR_PDCRC_PC8_Msk /*!< Port PC8 Pull-Down set */ | |
9581 #define PWR_PDCRC_PC7_Pos (7U) | |
9582 #define PWR_PDCRC_PC7_Msk (0x1U << PWR_PDCRC_PC7_Pos) /*!< 0x00000080 */ | |
9583 #define PWR_PDCRC_PC7 PWR_PDCRC_PC7_Msk /*!< Port PC7 Pull-Down set */ | |
9584 #define PWR_PDCRC_PC6_Pos (6U) | |
9585 #define PWR_PDCRC_PC6_Msk (0x1U << PWR_PDCRC_PC6_Pos) /*!< 0x00000040 */ | |
9586 #define PWR_PDCRC_PC6 PWR_PDCRC_PC6_Msk /*!< Port PC6 Pull-Down set */ | |
9587 #define PWR_PDCRC_PC5_Pos (5U) | |
9588 #define PWR_PDCRC_PC5_Msk (0x1U << PWR_PDCRC_PC5_Pos) /*!< 0x00000020 */ | |
9589 #define PWR_PDCRC_PC5 PWR_PDCRC_PC5_Msk /*!< Port PC5 Pull-Down set */ | |
9590 #define PWR_PDCRC_PC4_Pos (4U) | |
9591 #define PWR_PDCRC_PC4_Msk (0x1U << PWR_PDCRC_PC4_Pos) /*!< 0x00000010 */ | |
9592 #define PWR_PDCRC_PC4 PWR_PDCRC_PC4_Msk /*!< Port PC4 Pull-Down set */ | |
9593 #define PWR_PDCRC_PC3_Pos (3U) | |
9594 #define PWR_PDCRC_PC3_Msk (0x1U << PWR_PDCRC_PC3_Pos) /*!< 0x00000008 */ | |
9595 #define PWR_PDCRC_PC3 PWR_PDCRC_PC3_Msk /*!< Port PC3 Pull-Down set */ | |
9596 #define PWR_PDCRC_PC2_Pos (2U) | |
9597 #define PWR_PDCRC_PC2_Msk (0x1U << PWR_PDCRC_PC2_Pos) /*!< 0x00000004 */ | |
9598 #define PWR_PDCRC_PC2 PWR_PDCRC_PC2_Msk /*!< Port PC2 Pull-Down set */ | |
9599 #define PWR_PDCRC_PC1_Pos (1U) | |
9600 #define PWR_PDCRC_PC1_Msk (0x1U << PWR_PDCRC_PC1_Pos) /*!< 0x00000002 */ | |
9601 #define PWR_PDCRC_PC1 PWR_PDCRC_PC1_Msk /*!< Port PC1 Pull-Down set */ | |
9602 #define PWR_PDCRC_PC0_Pos (0U) | |
9603 #define PWR_PDCRC_PC0_Msk (0x1U << PWR_PDCRC_PC0_Pos) /*!< 0x00000001 */ | |
9604 #define PWR_PDCRC_PC0 PWR_PDCRC_PC0_Msk /*!< Port PC0 Pull-Down set */ | |
9605 | |
9606 /******************** Bit definition for PWR_PUCRD register ********************/ | |
9607 #define PWR_PUCRD_PD15_Pos (15U) | |
9608 #define PWR_PUCRD_PD15_Msk (0x1U << PWR_PUCRD_PD15_Pos) /*!< 0x00008000 */ | |
9609 #define PWR_PUCRD_PD15 PWR_PUCRD_PD15_Msk /*!< Port PD15 Pull-Up set */ | |
9610 #define PWR_PUCRD_PD14_Pos (14U) | |
9611 #define PWR_PUCRD_PD14_Msk (0x1U << PWR_PUCRD_PD14_Pos) /*!< 0x00004000 */ | |
9612 #define PWR_PUCRD_PD14 PWR_PUCRD_PD14_Msk /*!< Port PD14 Pull-Up set */ | |
9613 #define PWR_PUCRD_PD13_Pos (13U) | |
9614 #define PWR_PUCRD_PD13_Msk (0x1U << PWR_PUCRD_PD13_Pos) /*!< 0x00002000 */ | |
9615 #define PWR_PUCRD_PD13 PWR_PUCRD_PD13_Msk /*!< Port PD13 Pull-Up set */ | |
9616 #define PWR_PUCRD_PD12_Pos (12U) | |
9617 #define PWR_PUCRD_PD12_Msk (0x1U << PWR_PUCRD_PD12_Pos) /*!< 0x00001000 */ | |
9618 #define PWR_PUCRD_PD12 PWR_PUCRD_PD12_Msk /*!< Port PD12 Pull-Up set */ | |
9619 #define PWR_PUCRD_PD11_Pos (11U) | |
9620 #define PWR_PUCRD_PD11_Msk (0x1U << PWR_PUCRD_PD11_Pos) /*!< 0x00000800 */ | |
9621 #define PWR_PUCRD_PD11 PWR_PUCRD_PD11_Msk /*!< Port PD11 Pull-Up set */ | |
9622 #define PWR_PUCRD_PD10_Pos (10U) | |
9623 #define PWR_PUCRD_PD10_Msk (0x1U << PWR_PUCRD_PD10_Pos) /*!< 0x00000400 */ | |
9624 #define PWR_PUCRD_PD10 PWR_PUCRD_PD10_Msk /*!< Port PD10 Pull-Up set */ | |
9625 #define PWR_PUCRD_PD9_Pos (9U) | |
9626 #define PWR_PUCRD_PD9_Msk (0x1U << PWR_PUCRD_PD9_Pos) /*!< 0x00000200 */ | |
9627 #define PWR_PUCRD_PD9 PWR_PUCRD_PD9_Msk /*!< Port PD9 Pull-Up set */ | |
9628 #define PWR_PUCRD_PD8_Pos (8U) | |
9629 #define PWR_PUCRD_PD8_Msk (0x1U << PWR_PUCRD_PD8_Pos) /*!< 0x00000100 */ | |
9630 #define PWR_PUCRD_PD8 PWR_PUCRD_PD8_Msk /*!< Port PD8 Pull-Up set */ | |
9631 #define PWR_PUCRD_PD7_Pos (7U) | |
9632 #define PWR_PUCRD_PD7_Msk (0x1U << PWR_PUCRD_PD7_Pos) /*!< 0x00000080 */ | |
9633 #define PWR_PUCRD_PD7 PWR_PUCRD_PD7_Msk /*!< Port PD7 Pull-Up set */ | |
9634 #define PWR_PUCRD_PD6_Pos (6U) | |
9635 #define PWR_PUCRD_PD6_Msk (0x1U << PWR_PUCRD_PD6_Pos) /*!< 0x00000040 */ | |
9636 #define PWR_PUCRD_PD6 PWR_PUCRD_PD6_Msk /*!< Port PD6 Pull-Up set */ | |
9637 #define PWR_PUCRD_PD5_Pos (5U) | |
9638 #define PWR_PUCRD_PD5_Msk (0x1U << PWR_PUCRD_PD5_Pos) /*!< 0x00000020 */ | |
9639 #define PWR_PUCRD_PD5 PWR_PUCRD_PD5_Msk /*!< Port PD5 Pull-Up set */ | |
9640 #define PWR_PUCRD_PD4_Pos (4U) | |
9641 #define PWR_PUCRD_PD4_Msk (0x1U << PWR_PUCRD_PD4_Pos) /*!< 0x00000010 */ | |
9642 #define PWR_PUCRD_PD4 PWR_PUCRD_PD4_Msk /*!< Port PD4 Pull-Up set */ | |
9643 #define PWR_PUCRD_PD3_Pos (3U) | |
9644 #define PWR_PUCRD_PD3_Msk (0x1U << PWR_PUCRD_PD3_Pos) /*!< 0x00000008 */ | |
9645 #define PWR_PUCRD_PD3 PWR_PUCRD_PD3_Msk /*!< Port PD3 Pull-Up set */ | |
9646 #define PWR_PUCRD_PD2_Pos (2U) | |
9647 #define PWR_PUCRD_PD2_Msk (0x1U << PWR_PUCRD_PD2_Pos) /*!< 0x00000004 */ | |
9648 #define PWR_PUCRD_PD2 PWR_PUCRD_PD2_Msk /*!< Port PD2 Pull-Up set */ | |
9649 #define PWR_PUCRD_PD1_Pos (1U) | |
9650 #define PWR_PUCRD_PD1_Msk (0x1U << PWR_PUCRD_PD1_Pos) /*!< 0x00000002 */ | |
9651 #define PWR_PUCRD_PD1 PWR_PUCRD_PD1_Msk /*!< Port PD1 Pull-Up set */ | |
9652 #define PWR_PUCRD_PD0_Pos (0U) | |
9653 #define PWR_PUCRD_PD0_Msk (0x1U << PWR_PUCRD_PD0_Pos) /*!< 0x00000001 */ | |
9654 #define PWR_PUCRD_PD0 PWR_PUCRD_PD0_Msk /*!< Port PD0 Pull-Up set */ | |
9655 | |
9656 /******************** Bit definition for PWR_PDCRD register ********************/ | |
9657 #define PWR_PDCRD_PD15_Pos (15U) | |
9658 #define PWR_PDCRD_PD15_Msk (0x1U << PWR_PDCRD_PD15_Pos) /*!< 0x00008000 */ | |
9659 #define PWR_PDCRD_PD15 PWR_PDCRD_PD15_Msk /*!< Port PD15 Pull-Down set */ | |
9660 #define PWR_PDCRD_PD14_Pos (14U) | |
9661 #define PWR_PDCRD_PD14_Msk (0x1U << PWR_PDCRD_PD14_Pos) /*!< 0x00004000 */ | |
9662 #define PWR_PDCRD_PD14 PWR_PDCRD_PD14_Msk /*!< Port PD14 Pull-Down set */ | |
9663 #define PWR_PDCRD_PD13_Pos (13U) | |
9664 #define PWR_PDCRD_PD13_Msk (0x1U << PWR_PDCRD_PD13_Pos) /*!< 0x00002000 */ | |
9665 #define PWR_PDCRD_PD13 PWR_PDCRD_PD13_Msk /*!< Port PD13 Pull-Down set */ | |
9666 #define PWR_PDCRD_PD12_Pos (12U) | |
9667 #define PWR_PDCRD_PD12_Msk (0x1U << PWR_PDCRD_PD12_Pos) /*!< 0x00001000 */ | |
9668 #define PWR_PDCRD_PD12 PWR_PDCRD_PD12_Msk /*!< Port PD12 Pull-Down set */ | |
9669 #define PWR_PDCRD_PD11_Pos (11U) | |
9670 #define PWR_PDCRD_PD11_Msk (0x1U << PWR_PDCRD_PD11_Pos) /*!< 0x00000800 */ | |
9671 #define PWR_PDCRD_PD11 PWR_PDCRD_PD11_Msk /*!< Port PD11 Pull-Down set */ | |
9672 #define PWR_PDCRD_PD10_Pos (10U) | |
9673 #define PWR_PDCRD_PD10_Msk (0x1U << PWR_PDCRD_PD10_Pos) /*!< 0x00000400 */ | |
9674 #define PWR_PDCRD_PD10 PWR_PDCRD_PD10_Msk /*!< Port PD10 Pull-Down set */ | |
9675 #define PWR_PDCRD_PD9_Pos (9U) | |
9676 #define PWR_PDCRD_PD9_Msk (0x1U << PWR_PDCRD_PD9_Pos) /*!< 0x00000200 */ | |
9677 #define PWR_PDCRD_PD9 PWR_PDCRD_PD9_Msk /*!< Port PD9 Pull-Down set */ | |
9678 #define PWR_PDCRD_PD8_Pos (8U) | |
9679 #define PWR_PDCRD_PD8_Msk (0x1U << PWR_PDCRD_PD8_Pos) /*!< 0x00000100 */ | |
9680 #define PWR_PDCRD_PD8 PWR_PDCRD_PD8_Msk /*!< Port PD8 Pull-Down set */ | |
9681 #define PWR_PDCRD_PD7_Pos (7U) | |
9682 #define PWR_PDCRD_PD7_Msk (0x1U << PWR_PDCRD_PD7_Pos) /*!< 0x00000080 */ | |
9683 #define PWR_PDCRD_PD7 PWR_PDCRD_PD7_Msk /*!< Port PD7 Pull-Down set */ | |
9684 #define PWR_PDCRD_PD6_Pos (6U) | |
9685 #define PWR_PDCRD_PD6_Msk (0x1U << PWR_PDCRD_PD6_Pos) /*!< 0x00000040 */ | |
9686 #define PWR_PDCRD_PD6 PWR_PDCRD_PD6_Msk /*!< Port PD6 Pull-Down set */ | |
9687 #define PWR_PDCRD_PD5_Pos (5U) | |
9688 #define PWR_PDCRD_PD5_Msk (0x1U << PWR_PDCRD_PD5_Pos) /*!< 0x00000020 */ | |
9689 #define PWR_PDCRD_PD5 PWR_PDCRD_PD5_Msk /*!< Port PD5 Pull-Down set */ | |
9690 #define PWR_PDCRD_PD4_Pos (4U) | |
9691 #define PWR_PDCRD_PD4_Msk (0x1U << PWR_PDCRD_PD4_Pos) /*!< 0x00000010 */ | |
9692 #define PWR_PDCRD_PD4 PWR_PDCRD_PD4_Msk /*!< Port PD4 Pull-Down set */ | |
9693 #define PWR_PDCRD_PD3_Pos (3U) | |
9694 #define PWR_PDCRD_PD3_Msk (0x1U << PWR_PDCRD_PD3_Pos) /*!< 0x00000008 */ | |
9695 #define PWR_PDCRD_PD3 PWR_PDCRD_PD3_Msk /*!< Port PD3 Pull-Down set */ | |
9696 #define PWR_PDCRD_PD2_Pos (2U) | |
9697 #define PWR_PDCRD_PD2_Msk (0x1U << PWR_PDCRD_PD2_Pos) /*!< 0x00000004 */ | |
9698 #define PWR_PDCRD_PD2 PWR_PDCRD_PD2_Msk /*!< Port PD2 Pull-Down set */ | |
9699 #define PWR_PDCRD_PD1_Pos (1U) | |
9700 #define PWR_PDCRD_PD1_Msk (0x1U << PWR_PDCRD_PD1_Pos) /*!< 0x00000002 */ | |
9701 #define PWR_PDCRD_PD1 PWR_PDCRD_PD1_Msk /*!< Port PD1 Pull-Down set */ | |
9702 #define PWR_PDCRD_PD0_Pos (0U) | |
9703 #define PWR_PDCRD_PD0_Msk (0x1U << PWR_PDCRD_PD0_Pos) /*!< 0x00000001 */ | |
9704 #define PWR_PDCRD_PD0 PWR_PDCRD_PD0_Msk /*!< Port PD0 Pull-Down set */ | |
9705 | |
9706 /******************** Bit definition for PWR_PUCRE register ********************/ | |
9707 #define PWR_PUCRE_PE15_Pos (15U) | |
9708 #define PWR_PUCRE_PE15_Msk (0x1U << PWR_PUCRE_PE15_Pos) /*!< 0x00008000 */ | |
9709 #define PWR_PUCRE_PE15 PWR_PUCRE_PE15_Msk /*!< Port PE15 Pull-Up set */ | |
9710 #define PWR_PUCRE_PE14_Pos (14U) | |
9711 #define PWR_PUCRE_PE14_Msk (0x1U << PWR_PUCRE_PE14_Pos) /*!< 0x00004000 */ | |
9712 #define PWR_PUCRE_PE14 PWR_PUCRE_PE14_Msk /*!< Port PE14 Pull-Up set */ | |
9713 #define PWR_PUCRE_PE13_Pos (13U) | |
9714 #define PWR_PUCRE_PE13_Msk (0x1U << PWR_PUCRE_PE13_Pos) /*!< 0x00002000 */ | |
9715 #define PWR_PUCRE_PE13 PWR_PUCRE_PE13_Msk /*!< Port PE13 Pull-Up set */ | |
9716 #define PWR_PUCRE_PE12_Pos (12U) | |
9717 #define PWR_PUCRE_PE12_Msk (0x1U << PWR_PUCRE_PE12_Pos) /*!< 0x00001000 */ | |
9718 #define PWR_PUCRE_PE12 PWR_PUCRE_PE12_Msk /*!< Port PE12 Pull-Up set */ | |
9719 #define PWR_PUCRE_PE11_Pos (11U) | |
9720 #define PWR_PUCRE_PE11_Msk (0x1U << PWR_PUCRE_PE11_Pos) /*!< 0x00000800 */ | |
9721 #define PWR_PUCRE_PE11 PWR_PUCRE_PE11_Msk /*!< Port PE11 Pull-Up set */ | |
9722 #define PWR_PUCRE_PE10_Pos (10U) | |
9723 #define PWR_PUCRE_PE10_Msk (0x1U << PWR_PUCRE_PE10_Pos) /*!< 0x00000400 */ | |
9724 #define PWR_PUCRE_PE10 PWR_PUCRE_PE10_Msk /*!< Port PE10 Pull-Up set */ | |
9725 #define PWR_PUCRE_PE9_Pos (9U) | |
9726 #define PWR_PUCRE_PE9_Msk (0x1U << PWR_PUCRE_PE9_Pos) /*!< 0x00000200 */ | |
9727 #define PWR_PUCRE_PE9 PWR_PUCRE_PE9_Msk /*!< Port PE9 Pull-Up set */ | |
9728 #define PWR_PUCRE_PE8_Pos (8U) | |
9729 #define PWR_PUCRE_PE8_Msk (0x1U << PWR_PUCRE_PE8_Pos) /*!< 0x00000100 */ | |
9730 #define PWR_PUCRE_PE8 PWR_PUCRE_PE8_Msk /*!< Port PE8 Pull-Up set */ | |
9731 #define PWR_PUCRE_PE7_Pos (7U) | |
9732 #define PWR_PUCRE_PE7_Msk (0x1U << PWR_PUCRE_PE7_Pos) /*!< 0x00000080 */ | |
9733 #define PWR_PUCRE_PE7 PWR_PUCRE_PE7_Msk /*!< Port PE7 Pull-Up set */ | |
9734 #define PWR_PUCRE_PE6_Pos (6U) | |
9735 #define PWR_PUCRE_PE6_Msk (0x1U << PWR_PUCRE_PE6_Pos) /*!< 0x00000040 */ | |
9736 #define PWR_PUCRE_PE6 PWR_PUCRE_PE6_Msk /*!< Port PE6 Pull-Up set */ | |
9737 #define PWR_PUCRE_PE5_Pos (5U) | |
9738 #define PWR_PUCRE_PE5_Msk (0x1U << PWR_PUCRE_PE5_Pos) /*!< 0x00000020 */ | |
9739 #define PWR_PUCRE_PE5 PWR_PUCRE_PE5_Msk /*!< Port PE5 Pull-Up set */ | |
9740 #define PWR_PUCRE_PE4_Pos (4U) | |
9741 #define PWR_PUCRE_PE4_Msk (0x1U << PWR_PUCRE_PE4_Pos) /*!< 0x00000010 */ | |
9742 #define PWR_PUCRE_PE4 PWR_PUCRE_PE4_Msk /*!< Port PE4 Pull-Up set */ | |
9743 #define PWR_PUCRE_PE3_Pos (3U) | |
9744 #define PWR_PUCRE_PE3_Msk (0x1U << PWR_PUCRE_PE3_Pos) /*!< 0x00000008 */ | |
9745 #define PWR_PUCRE_PE3 PWR_PUCRE_PE3_Msk /*!< Port PE3 Pull-Up set */ | |
9746 #define PWR_PUCRE_PE2_Pos (2U) | |
9747 #define PWR_PUCRE_PE2_Msk (0x1U << PWR_PUCRE_PE2_Pos) /*!< 0x00000004 */ | |
9748 #define PWR_PUCRE_PE2 PWR_PUCRE_PE2_Msk /*!< Port PE2 Pull-Up set */ | |
9749 #define PWR_PUCRE_PE1_Pos (1U) | |
9750 #define PWR_PUCRE_PE1_Msk (0x1U << PWR_PUCRE_PE1_Pos) /*!< 0x00000002 */ | |
9751 #define PWR_PUCRE_PE1 PWR_PUCRE_PE1_Msk /*!< Port PE1 Pull-Up set */ | |
9752 #define PWR_PUCRE_PE0_Pos (0U) | |
9753 #define PWR_PUCRE_PE0_Msk (0x1U << PWR_PUCRE_PE0_Pos) /*!< 0x00000001 */ | |
9754 #define PWR_PUCRE_PE0 PWR_PUCRE_PE0_Msk /*!< Port PE0 Pull-Up set */ | |
9755 | |
9756 /******************** Bit definition for PWR_PDCRE register ********************/ | |
9757 #define PWR_PDCRE_PE15_Pos (15U) | |
9758 #define PWR_PDCRE_PE15_Msk (0x1U << PWR_PDCRE_PE15_Pos) /*!< 0x00008000 */ | |
9759 #define PWR_PDCRE_PE15 PWR_PDCRE_PE15_Msk /*!< Port PE15 Pull-Down set */ | |
9760 #define PWR_PDCRE_PE14_Pos (14U) | |
9761 #define PWR_PDCRE_PE14_Msk (0x1U << PWR_PDCRE_PE14_Pos) /*!< 0x00004000 */ | |
9762 #define PWR_PDCRE_PE14 PWR_PDCRE_PE14_Msk /*!< Port PE14 Pull-Down set */ | |
9763 #define PWR_PDCRE_PE13_Pos (13U) | |
9764 #define PWR_PDCRE_PE13_Msk (0x1U << PWR_PDCRE_PE13_Pos) /*!< 0x00002000 */ | |
9765 #define PWR_PDCRE_PE13 PWR_PDCRE_PE13_Msk /*!< Port PE13 Pull-Down set */ | |
9766 #define PWR_PDCRE_PE12_Pos (12U) | |
9767 #define PWR_PDCRE_PE12_Msk (0x1U << PWR_PDCRE_PE12_Pos) /*!< 0x00001000 */ | |
9768 #define PWR_PDCRE_PE12 PWR_PDCRE_PE12_Msk /*!< Port PE12 Pull-Down set */ | |
9769 #define PWR_PDCRE_PE11_Pos (11U) | |
9770 #define PWR_PDCRE_PE11_Msk (0x1U << PWR_PDCRE_PE11_Pos) /*!< 0x00000800 */ | |
9771 #define PWR_PDCRE_PE11 PWR_PDCRE_PE11_Msk /*!< Port PE11 Pull-Down set */ | |
9772 #define PWR_PDCRE_PE10_Pos (10U) | |
9773 #define PWR_PDCRE_PE10_Msk (0x1U << PWR_PDCRE_PE10_Pos) /*!< 0x00000400 */ | |
9774 #define PWR_PDCRE_PE10 PWR_PDCRE_PE10_Msk /*!< Port PE10 Pull-Down set */ | |
9775 #define PWR_PDCRE_PE9_Pos (9U) | |
9776 #define PWR_PDCRE_PE9_Msk (0x1U << PWR_PDCRE_PE9_Pos) /*!< 0x00000200 */ | |
9777 #define PWR_PDCRE_PE9 PWR_PDCRE_PE9_Msk /*!< Port PE9 Pull-Down set */ | |
9778 #define PWR_PDCRE_PE8_Pos (8U) | |
9779 #define PWR_PDCRE_PE8_Msk (0x1U << PWR_PDCRE_PE8_Pos) /*!< 0x00000100 */ | |
9780 #define PWR_PDCRE_PE8 PWR_PDCRE_PE8_Msk /*!< Port PE8 Pull-Down set */ | |
9781 #define PWR_PDCRE_PE7_Pos (7U) | |
9782 #define PWR_PDCRE_PE7_Msk (0x1U << PWR_PDCRE_PE7_Pos) /*!< 0x00000080 */ | |
9783 #define PWR_PDCRE_PE7 PWR_PDCRE_PE7_Msk /*!< Port PE7 Pull-Down set */ | |
9784 #define PWR_PDCRE_PE6_Pos (6U) | |
9785 #define PWR_PDCRE_PE6_Msk (0x1U << PWR_PDCRE_PE6_Pos) /*!< 0x00000040 */ | |
9786 #define PWR_PDCRE_PE6 PWR_PDCRE_PE6_Msk /*!< Port PE6 Pull-Down set */ | |
9787 #define PWR_PDCRE_PE5_Pos (5U) | |
9788 #define PWR_PDCRE_PE5_Msk (0x1U << PWR_PDCRE_PE5_Pos) /*!< 0x00000020 */ | |
9789 #define PWR_PDCRE_PE5 PWR_PDCRE_PE5_Msk /*!< Port PE5 Pull-Down set */ | |
9790 #define PWR_PDCRE_PE4_Pos (4U) | |
9791 #define PWR_PDCRE_PE4_Msk (0x1U << PWR_PDCRE_PE4_Pos) /*!< 0x00000010 */ | |
9792 #define PWR_PDCRE_PE4 PWR_PDCRE_PE4_Msk /*!< Port PE4 Pull-Down set */ | |
9793 #define PWR_PDCRE_PE3_Pos (3U) | |
9794 #define PWR_PDCRE_PE3_Msk (0x1U << PWR_PDCRE_PE3_Pos) /*!< 0x00000008 */ | |
9795 #define PWR_PDCRE_PE3 PWR_PDCRE_PE3_Msk /*!< Port PE3 Pull-Down set */ | |
9796 #define PWR_PDCRE_PE2_Pos (2U) | |
9797 #define PWR_PDCRE_PE2_Msk (0x1U << PWR_PDCRE_PE2_Pos) /*!< 0x00000004 */ | |
9798 #define PWR_PDCRE_PE2 PWR_PDCRE_PE2_Msk /*!< Port PE2 Pull-Down set */ | |
9799 #define PWR_PDCRE_PE1_Pos (1U) | |
9800 #define PWR_PDCRE_PE1_Msk (0x1U << PWR_PDCRE_PE1_Pos) /*!< 0x00000002 */ | |
9801 #define PWR_PDCRE_PE1 PWR_PDCRE_PE1_Msk /*!< Port PE1 Pull-Down set */ | |
9802 #define PWR_PDCRE_PE0_Pos (0U) | |
9803 #define PWR_PDCRE_PE0_Msk (0x1U << PWR_PDCRE_PE0_Pos) /*!< 0x00000001 */ | |
9804 #define PWR_PDCRE_PE0 PWR_PDCRE_PE0_Msk /*!< Port PE0 Pull-Down set */ | |
9805 | |
9806 | |
9807 /******************** Bit definition for PWR_PUCRH register ********************/ | |
9808 #define PWR_PUCRH_PH1_Pos (1U) | |
9809 #define PWR_PUCRH_PH1_Msk (0x1U << PWR_PUCRH_PH1_Pos) /*!< 0x00000002 */ | |
9810 #define PWR_PUCRH_PH1 PWR_PUCRH_PH1_Msk /*!< Port PH1 Pull-Up set */ | |
9811 #define PWR_PUCRH_PH0_Pos (0U) | |
9812 #define PWR_PUCRH_PH0_Msk (0x1U << PWR_PUCRH_PH0_Pos) /*!< 0x00000001 */ | |
9813 #define PWR_PUCRH_PH0 PWR_PUCRH_PH0_Msk /*!< Port PH0 Pull-Up set */ | |
9814 | |
9815 /******************** Bit definition for PWR_PDCRH register ********************/ | |
9816 #define PWR_PDCRH_PH1_Pos (1U) | |
9817 #define PWR_PDCRH_PH1_Msk (0x1U << PWR_PDCRH_PH1_Pos) /*!< 0x00000002 */ | |
9818 #define PWR_PDCRH_PH1 PWR_PDCRH_PH1_Msk /*!< Port PH1 Pull-Down set */ | |
9819 #define PWR_PDCRH_PH0_Pos (0U) | |
9820 #define PWR_PDCRH_PH0_Msk (0x1U << PWR_PDCRH_PH0_Pos) /*!< 0x00000001 */ | |
9821 #define PWR_PDCRH_PH0 PWR_PDCRH_PH0_Msk /*!< Port PH0 Pull-Down set */ | |
9822 | |
9823 | |
9824 /******************************************************************************/ | |
9825 /* */ | |
9826 /* Reset and Clock Control */ | |
9827 /* */ | |
9828 /******************************************************************************/ | |
9829 /* | |
9830 * @brief Specific device feature definitions (not present on all devices in the STM32L4 serie) | |
9831 */ | |
9832 #define RCC_HSI48_SUPPORT | |
9833 #define RCC_PLLP_DIV_2_31_SUPPORT | |
9834 #define RCC_PLLSAI1P_DIV_2_31_SUPPORT | |
9835 | |
9836 /******************** Bit definition for RCC_CR register ********************/ | |
9837 #define RCC_CR_MSION_Pos (0U) | |
9838 #define RCC_CR_MSION_Msk (0x1U << RCC_CR_MSION_Pos) /*!< 0x00000001 */ | |
9839 #define RCC_CR_MSION RCC_CR_MSION_Msk /*!< Internal Multi Speed oscillator (MSI) clock enable */ | |
9840 #define RCC_CR_MSIRDY_Pos (1U) | |
9841 #define RCC_CR_MSIRDY_Msk (0x1U << RCC_CR_MSIRDY_Pos) /*!< 0x00000002 */ | |
9842 #define RCC_CR_MSIRDY RCC_CR_MSIRDY_Msk /*!< Internal Multi Speed oscillator (MSI) clock ready flag */ | |
9843 #define RCC_CR_MSIPLLEN_Pos (2U) | |
9844 #define RCC_CR_MSIPLLEN_Msk (0x1U << RCC_CR_MSIPLLEN_Pos) /*!< 0x00000004 */ | |
9845 #define RCC_CR_MSIPLLEN RCC_CR_MSIPLLEN_Msk /*!< Internal Multi Speed oscillator (MSI) PLL enable */ | |
9846 #define RCC_CR_MSIRGSEL_Pos (3U) | |
9847 #define RCC_CR_MSIRGSEL_Msk (0x1U << RCC_CR_MSIRGSEL_Pos) /*!< 0x00000008 */ | |
9848 #define RCC_CR_MSIRGSEL RCC_CR_MSIRGSEL_Msk /*!< Internal Multi Speed oscillator (MSI) range selection */ | |
9849 | |
9850 /*!< MSIRANGE configuration : 12 frequency ranges available */ | |
9851 #define RCC_CR_MSIRANGE_Pos (4U) | |
9852 #define RCC_CR_MSIRANGE_Msk (0xFU << RCC_CR_MSIRANGE_Pos) /*!< 0x000000F0 */ | |
9853 #define RCC_CR_MSIRANGE RCC_CR_MSIRANGE_Msk /*!< Internal Multi Speed oscillator (MSI) clock Range */ | |
9854 #define RCC_CR_MSIRANGE_0 (0x0U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000000 */ | |
9855 #define RCC_CR_MSIRANGE_1 (0x1U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000010 */ | |
9856 #define RCC_CR_MSIRANGE_2 (0x2U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000020 */ | |
9857 #define RCC_CR_MSIRANGE_3 (0x3U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000030 */ | |
9858 #define RCC_CR_MSIRANGE_4 (0x4U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000040 */ | |
9859 #define RCC_CR_MSIRANGE_5 (0x5U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000050 */ | |
9860 #define RCC_CR_MSIRANGE_6 (0x6U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000060 */ | |
9861 #define RCC_CR_MSIRANGE_7 (0x7U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000070 */ | |
9862 #define RCC_CR_MSIRANGE_8 (0x8U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000080 */ | |
9863 #define RCC_CR_MSIRANGE_9 (0x9U << RCC_CR_MSIRANGE_Pos) /*!< 0x00000090 */ | |
9864 #define RCC_CR_MSIRANGE_10 (0xAU << RCC_CR_MSIRANGE_Pos) /*!< 0x000000A0 */ | |
9865 #define RCC_CR_MSIRANGE_11 (0xBU << RCC_CR_MSIRANGE_Pos) /*!< 0x000000B0 */ | |
9866 | |
9867 #define RCC_CR_HSION_Pos (8U) | |
9868 #define RCC_CR_HSION_Msk (0x1U << RCC_CR_HSION_Pos) /*!< 0x00000100 */ | |
9869 #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed oscillator (HSI16) clock enable */ | |
9870 #define RCC_CR_HSIKERON_Pos (9U) | |
9871 #define RCC_CR_HSIKERON_Msk (0x1U << RCC_CR_HSIKERON_Pos) /*!< 0x00000200 */ | |
9872 #define RCC_CR_HSIKERON RCC_CR_HSIKERON_Msk /*!< Internal High Speed oscillator (HSI16) clock enable for some IPs Kernel */ | |
9873 #define RCC_CR_HSIRDY_Pos (10U) | |
9874 #define RCC_CR_HSIRDY_Msk (0x1U << RCC_CR_HSIRDY_Pos) /*!< 0x00000400 */ | |
9875 #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed oscillator (HSI16) clock ready flag */ | |
9876 #define RCC_CR_HSIASFS_Pos (11U) | |
9877 #define RCC_CR_HSIASFS_Msk (0x1U << RCC_CR_HSIASFS_Pos) /*!< 0x00000800 */ | |
9878 #define RCC_CR_HSIASFS RCC_CR_HSIASFS_Msk /*!< HSI16 Automatic Start from Stop */ | |
9879 | |
9880 #define RCC_CR_HSEON_Pos (16U) | |
9881 #define RCC_CR_HSEON_Msk (0x1U << RCC_CR_HSEON_Pos) /*!< 0x00010000 */ | |
9882 #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed oscillator (HSE) clock enable */ | |
9883 #define RCC_CR_HSERDY_Pos (17U) | |
9884 #define RCC_CR_HSERDY_Msk (0x1U << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */ | |
9885 #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed oscillator (HSE) clock ready */ | |
9886 #define RCC_CR_HSEBYP_Pos (18U) | |
9887 #define RCC_CR_HSEBYP_Msk (0x1U << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */ | |
9888 #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed oscillator (HSE) clock bypass */ | |
9889 #define RCC_CR_CSSON_Pos (19U) | |
9890 #define RCC_CR_CSSON_Msk (0x1U << RCC_CR_CSSON_Pos) /*!< 0x00080000 */ | |
9891 #define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< HSE Clock Security System enable */ | |
9892 | |
9893 #define RCC_CR_PLLON_Pos (24U) | |
9894 #define RCC_CR_PLLON_Msk (0x1U << RCC_CR_PLLON_Pos) /*!< 0x01000000 */ | |
9895 #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< System PLL clock enable */ | |
9896 #define RCC_CR_PLLRDY_Pos (25U) | |
9897 #define RCC_CR_PLLRDY_Msk (0x1U << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */ | |
9898 #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< System PLL clock ready */ | |
9899 #define RCC_CR_PLLSAI1ON_Pos (26U) | |
9900 #define RCC_CR_PLLSAI1ON_Msk (0x1U << RCC_CR_PLLSAI1ON_Pos) /*!< 0x04000000 */ | |
9901 #define RCC_CR_PLLSAI1ON RCC_CR_PLLSAI1ON_Msk /*!< SAI1 PLL enable */ | |
9902 #define RCC_CR_PLLSAI1RDY_Pos (27U) | |
9903 #define RCC_CR_PLLSAI1RDY_Msk (0x1U << RCC_CR_PLLSAI1RDY_Pos) /*!< 0x08000000 */ | |
9904 #define RCC_CR_PLLSAI1RDY RCC_CR_PLLSAI1RDY_Msk /*!< SAI1 PLL ready */ | |
9905 | |
9906 /******************** Bit definition for RCC_ICSCR register ***************/ | |
9907 /*!< MSICAL configuration */ | |
9908 #define RCC_ICSCR_MSICAL_Pos (0U) | |
9909 #define RCC_ICSCR_MSICAL_Msk (0xFFU << RCC_ICSCR_MSICAL_Pos) /*!< 0x000000FF */ | |
9910 #define RCC_ICSCR_MSICAL RCC_ICSCR_MSICAL_Msk /*!< MSICAL[7:0] bits */ | |
9911 #define RCC_ICSCR_MSICAL_0 (0x01U << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000001 */ | |
9912 #define RCC_ICSCR_MSICAL_1 (0x02U << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000002 */ | |
9913 #define RCC_ICSCR_MSICAL_2 (0x04U << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000004 */ | |
9914 #define RCC_ICSCR_MSICAL_3 (0x08U << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000008 */ | |
9915 #define RCC_ICSCR_MSICAL_4 (0x10U << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000010 */ | |
9916 #define RCC_ICSCR_MSICAL_5 (0x20U << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000020 */ | |
9917 #define RCC_ICSCR_MSICAL_6 (0x40U << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000040 */ | |
9918 #define RCC_ICSCR_MSICAL_7 (0x80U << RCC_ICSCR_MSICAL_Pos) /*!< 0x00000080 */ | |
9919 | |
9920 /*!< MSITRIM configuration */ | |
9921 #define RCC_ICSCR_MSITRIM_Pos (8U) | |
9922 #define RCC_ICSCR_MSITRIM_Msk (0xFFU << RCC_ICSCR_MSITRIM_Pos) /*!< 0x0000FF00 */ | |
9923 #define RCC_ICSCR_MSITRIM RCC_ICSCR_MSITRIM_Msk /*!< MSITRIM[7:0] bits */ | |
9924 #define RCC_ICSCR_MSITRIM_0 (0x01U << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000100 */ | |
9925 #define RCC_ICSCR_MSITRIM_1 (0x02U << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000200 */ | |
9926 #define RCC_ICSCR_MSITRIM_2 (0x04U << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000400 */ | |
9927 #define RCC_ICSCR_MSITRIM_3 (0x08U << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00000800 */ | |
9928 #define RCC_ICSCR_MSITRIM_4 (0x10U << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00001000 */ | |
9929 #define RCC_ICSCR_MSITRIM_5 (0x20U << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00002000 */ | |
9930 #define RCC_ICSCR_MSITRIM_6 (0x40U << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00004000 */ | |
9931 #define RCC_ICSCR_MSITRIM_7 (0x80U << RCC_ICSCR_MSITRIM_Pos) /*!< 0x00008000 */ | |
9932 | |
9933 /*!< HSICAL configuration */ | |
9934 #define RCC_ICSCR_HSICAL_Pos (16U) | |
9935 #define RCC_ICSCR_HSICAL_Msk (0xFFU << RCC_ICSCR_HSICAL_Pos) /*!< 0x00FF0000 */ | |
9936 #define RCC_ICSCR_HSICAL RCC_ICSCR_HSICAL_Msk /*!< HSICAL[7:0] bits */ | |
9937 #define RCC_ICSCR_HSICAL_0 (0x01U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00010000 */ | |
9938 #define RCC_ICSCR_HSICAL_1 (0x02U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00020000 */ | |
9939 #define RCC_ICSCR_HSICAL_2 (0x04U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00040000 */ | |
9940 #define RCC_ICSCR_HSICAL_3 (0x08U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00080000 */ | |
9941 #define RCC_ICSCR_HSICAL_4 (0x10U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00100000 */ | |
9942 #define RCC_ICSCR_HSICAL_5 (0x20U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00200000 */ | |
9943 #define RCC_ICSCR_HSICAL_6 (0x40U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00400000 */ | |
9944 #define RCC_ICSCR_HSICAL_7 (0x80U << RCC_ICSCR_HSICAL_Pos) /*!< 0x00800000 */ | |
9945 | |
9946 /*!< HSITRIM configuration */ | |
9947 #define RCC_ICSCR_HSITRIM_Pos (24U) | |
9948 #define RCC_ICSCR_HSITRIM_Msk (0x7FU << RCC_ICSCR_HSITRIM_Pos) /*!< 0x7F000000 */ | |
9949 #define RCC_ICSCR_HSITRIM RCC_ICSCR_HSITRIM_Msk /*!< HSITRIM[6:0] bits */ | |
9950 #define RCC_ICSCR_HSITRIM_0 (0x01U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x01000000 */ | |
9951 #define RCC_ICSCR_HSITRIM_1 (0x02U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x02000000 */ | |
9952 #define RCC_ICSCR_HSITRIM_2 (0x04U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x04000000 */ | |
9953 #define RCC_ICSCR_HSITRIM_3 (0x08U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x08000000 */ | |
9954 #define RCC_ICSCR_HSITRIM_4 (0x10U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x10000000 */ | |
9955 #define RCC_ICSCR_HSITRIM_5 (0x20U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x20000000 */ | |
9956 #define RCC_ICSCR_HSITRIM_6 (0x40U << RCC_ICSCR_HSITRIM_Pos) /*!< 0x40000000 */ | |
9957 | |
9958 /******************** Bit definition for RCC_CFGR register ******************/ | |
9959 /*!< SW configuration */ | |
9960 #define RCC_CFGR_SW_Pos (0U) | |
9961 #define RCC_CFGR_SW_Msk (0x3U << RCC_CFGR_SW_Pos) /*!< 0x00000003 */ | |
9962 #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */ | |
9963 #define RCC_CFGR_SW_0 (0x1U << RCC_CFGR_SW_Pos) /*!< 0x00000001 */ | |
9964 #define RCC_CFGR_SW_1 (0x2U << RCC_CFGR_SW_Pos) /*!< 0x00000002 */ | |
9965 | |
9966 #define RCC_CFGR_SW_MSI (0x00000000U) /*!< MSI oscillator selection as system clock */ | |
9967 #define RCC_CFGR_SW_HSI (0x00000001U) /*!< HSI16 oscillator selection as system clock */ | |
9968 #define RCC_CFGR_SW_HSE (0x00000002U) /*!< HSE oscillator selection as system clock */ | |
9969 #define RCC_CFGR_SW_PLL (0x00000003U) /*!< PLL selection as system clock */ | |
9970 | |
9971 /*!< SWS configuration */ | |
9972 #define RCC_CFGR_SWS_Pos (2U) | |
9973 #define RCC_CFGR_SWS_Msk (0x3U << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */ | |
9974 #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */ | |
9975 #define RCC_CFGR_SWS_0 (0x1U << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */ | |
9976 #define RCC_CFGR_SWS_1 (0x2U << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */ | |
9977 | |
9978 #define RCC_CFGR_SWS_MSI (0x00000000U) /*!< MSI oscillator used as system clock */ | |
9979 #define RCC_CFGR_SWS_HSI (0x00000004U) /*!< HSI16 oscillator used as system clock */ | |
9980 #define RCC_CFGR_SWS_HSE (0x00000008U) /*!< HSE oscillator used as system clock */ | |
9981 #define RCC_CFGR_SWS_PLL (0x0000000CU) /*!< PLL used as system clock */ | |
9982 | |
9983 /*!< HPRE configuration */ | |
9984 #define RCC_CFGR_HPRE_Pos (4U) | |
9985 #define RCC_CFGR_HPRE_Msk (0xFU << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */ | |
9986 #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */ | |
9987 #define RCC_CFGR_HPRE_0 (0x1U << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */ | |
9988 #define RCC_CFGR_HPRE_1 (0x2U << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */ | |
9989 #define RCC_CFGR_HPRE_2 (0x4U << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */ | |
9990 #define RCC_CFGR_HPRE_3 (0x8U << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */ | |
9991 | |
9992 #define RCC_CFGR_HPRE_DIV1 (0x00000000U) /*!< SYSCLK not divided */ | |
9993 #define RCC_CFGR_HPRE_DIV2 (0x00000080U) /*!< SYSCLK divided by 2 */ | |
9994 #define RCC_CFGR_HPRE_DIV4 (0x00000090U) /*!< SYSCLK divided by 4 */ | |
9995 #define RCC_CFGR_HPRE_DIV8 (0x000000A0U) /*!< SYSCLK divided by 8 */ | |
9996 #define RCC_CFGR_HPRE_DIV16 (0x000000B0U) /*!< SYSCLK divided by 16 */ | |
9997 #define RCC_CFGR_HPRE_DIV64 (0x000000C0U) /*!< SYSCLK divided by 64 */ | |
9998 #define RCC_CFGR_HPRE_DIV128 (0x000000D0U) /*!< SYSCLK divided by 128 */ | |
9999 #define RCC_CFGR_HPRE_DIV256 (0x000000E0U) /*!< SYSCLK divided by 256 */ | |
10000 #define RCC_CFGR_HPRE_DIV512 (0x000000F0U) /*!< SYSCLK divided by 512 */ | |
10001 | |
10002 /*!< PPRE1 configuration */ | |
10003 #define RCC_CFGR_PPRE1_Pos (8U) | |
10004 #define RCC_CFGR_PPRE1_Msk (0x7U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000700 */ | |
10005 #define RCC_CFGR_PPRE1 RCC_CFGR_PPRE1_Msk /*!< PRE1[2:0] bits (APB2 prescaler) */ | |
10006 #define RCC_CFGR_PPRE1_0 (0x1U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000100 */ | |
10007 #define RCC_CFGR_PPRE1_1 (0x2U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000200 */ | |
10008 #define RCC_CFGR_PPRE1_2 (0x4U << RCC_CFGR_PPRE1_Pos) /*!< 0x00000400 */ | |
10009 | |
10010 #define RCC_CFGR_PPRE1_DIV1 (0x00000000U) /*!< HCLK not divided */ | |
10011 #define RCC_CFGR_PPRE1_DIV2 (0x00000400U) /*!< HCLK divided by 2 */ | |
10012 #define RCC_CFGR_PPRE1_DIV4 (0x00000500U) /*!< HCLK divided by 4 */ | |
10013 #define RCC_CFGR_PPRE1_DIV8 (0x00000600U) /*!< HCLK divided by 8 */ | |
10014 #define RCC_CFGR_PPRE1_DIV16 (0x00000700U) /*!< HCLK divided by 16 */ | |
10015 | |
10016 /*!< PPRE2 configuration */ | |
10017 #define RCC_CFGR_PPRE2_Pos (11U) | |
10018 #define RCC_CFGR_PPRE2_Msk (0x7U << RCC_CFGR_PPRE2_Pos) /*!< 0x00003800 */ | |
10019 #define RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_Msk /*!< PRE2[2:0] bits (APB2 prescaler) */ | |
10020 #define RCC_CFGR_PPRE2_0 (0x1U << RCC_CFGR_PPRE2_Pos) /*!< 0x00000800 */ | |
10021 #define RCC_CFGR_PPRE2_1 (0x2U << RCC_CFGR_PPRE2_Pos) /*!< 0x00001000 */ | |
10022 #define RCC_CFGR_PPRE2_2 (0x4U << RCC_CFGR_PPRE2_Pos) /*!< 0x00002000 */ | |
10023 | |
10024 #define RCC_CFGR_PPRE2_DIV1 (0x00000000U) /*!< HCLK not divided */ | |
10025 #define RCC_CFGR_PPRE2_DIV2 (0x00002000U) /*!< HCLK divided by 2 */ | |
10026 #define RCC_CFGR_PPRE2_DIV4 (0x00002800U) /*!< HCLK divided by 4 */ | |
10027 #define RCC_CFGR_PPRE2_DIV8 (0x00003000U) /*!< HCLK divided by 8 */ | |
10028 #define RCC_CFGR_PPRE2_DIV16 (0x00003800U) /*!< HCLK divided by 16 */ | |
10029 | |
10030 #define RCC_CFGR_STOPWUCK_Pos (15U) | |
10031 #define RCC_CFGR_STOPWUCK_Msk (0x1U << RCC_CFGR_STOPWUCK_Pos) /*!< 0x00008000 */ | |
10032 #define RCC_CFGR_STOPWUCK RCC_CFGR_STOPWUCK_Msk /*!< Wake Up from stop and CSS backup clock selection */ | |
10033 | |
10034 /*!< MCOSEL configuration */ | |
10035 #define RCC_CFGR_MCOSEL_Pos (24U) | |
10036 #define RCC_CFGR_MCOSEL_Msk (0xFU << RCC_CFGR_MCOSEL_Pos) /*!< 0x0F000000 */ | |
10037 #define RCC_CFGR_MCOSEL RCC_CFGR_MCOSEL_Msk /*!< MCOSEL [3:0] bits (Clock output selection) */ | |
10038 #define RCC_CFGR_MCOSEL_0 (0x1U << RCC_CFGR_MCOSEL_Pos) /*!< 0x01000000 */ | |
10039 #define RCC_CFGR_MCOSEL_1 (0x2U << RCC_CFGR_MCOSEL_Pos) /*!< 0x02000000 */ | |
10040 #define RCC_CFGR_MCOSEL_2 (0x4U << RCC_CFGR_MCOSEL_Pos) /*!< 0x04000000 */ | |
10041 #define RCC_CFGR_MCOSEL_3 (0x8U << RCC_CFGR_MCOSEL_Pos) /*!< 0x08000000 */ | |
10042 | |
10043 #define RCC_CFGR_MCOPRE_Pos (28U) | |
10044 #define RCC_CFGR_MCOPRE_Msk (0x7U << RCC_CFGR_MCOPRE_Pos) /*!< 0x70000000 */ | |
10045 #define RCC_CFGR_MCOPRE RCC_CFGR_MCOPRE_Msk /*!< MCO prescaler */ | |
10046 #define RCC_CFGR_MCOPRE_0 (0x1U << RCC_CFGR_MCOPRE_Pos) /*!< 0x10000000 */ | |
10047 #define RCC_CFGR_MCOPRE_1 (0x2U << RCC_CFGR_MCOPRE_Pos) /*!< 0x20000000 */ | |
10048 #define RCC_CFGR_MCOPRE_2 (0x4U << RCC_CFGR_MCOPRE_Pos) /*!< 0x40000000 */ | |
10049 | |
10050 #define RCC_CFGR_MCOPRE_DIV1 (0x00000000U) /*!< MCO is divided by 1 */ | |
10051 #define RCC_CFGR_MCOPRE_DIV2 (0x10000000U) /*!< MCO is divided by 2 */ | |
10052 #define RCC_CFGR_MCOPRE_DIV4 (0x20000000U) /*!< MCO is divided by 4 */ | |
10053 #define RCC_CFGR_MCOPRE_DIV8 (0x30000000U) /*!< MCO is divided by 8 */ | |
10054 #define RCC_CFGR_MCOPRE_DIV16 (0x40000000U) /*!< MCO is divided by 16 */ | |
10055 | |
10056 /* Legacy aliases */ | |
10057 #define RCC_CFGR_MCO_PRE RCC_CFGR_MCOPRE | |
10058 #define RCC_CFGR_MCO_PRE_1 RCC_CFGR_MCOPRE_DIV1 | |
10059 #define RCC_CFGR_MCO_PRE_2 RCC_CFGR_MCOPRE_DIV2 | |
10060 #define RCC_CFGR_MCO_PRE_4 RCC_CFGR_MCOPRE_DIV4 | |
10061 #define RCC_CFGR_MCO_PRE_8 RCC_CFGR_MCOPRE_DIV8 | |
10062 #define RCC_CFGR_MCO_PRE_16 RCC_CFGR_MCOPRE_DIV16 | |
10063 | |
10064 /******************** Bit definition for RCC_PLLCFGR register ***************/ | |
10065 #define RCC_PLLCFGR_PLLSRC_Pos (0U) | |
10066 #define RCC_PLLCFGR_PLLSRC_Msk (0x3U << RCC_PLLCFGR_PLLSRC_Pos) /*!< 0x00000003 */ | |
10067 #define RCC_PLLCFGR_PLLSRC RCC_PLLCFGR_PLLSRC_Msk | |
10068 | |
10069 #define RCC_PLLCFGR_PLLSRC_MSI_Pos (0U) | |
10070 #define RCC_PLLCFGR_PLLSRC_MSI_Msk (0x1U << RCC_PLLCFGR_PLLSRC_MSI_Pos) /*!< 0x00000001 */ | |
10071 #define RCC_PLLCFGR_PLLSRC_MSI RCC_PLLCFGR_PLLSRC_MSI_Msk /*!< MSI oscillator source clock selected */ | |
10072 #define RCC_PLLCFGR_PLLSRC_HSI_Pos (1U) | |
10073 #define RCC_PLLCFGR_PLLSRC_HSI_Msk (0x1U << RCC_PLLCFGR_PLLSRC_HSI_Pos) /*!< 0x00000002 */ | |
10074 #define RCC_PLLCFGR_PLLSRC_HSI RCC_PLLCFGR_PLLSRC_HSI_Msk /*!< HSI16 oscillator source clock selected */ | |
10075 #define RCC_PLLCFGR_PLLSRC_HSE_Pos (0U) | |
10076 #define RCC_PLLCFGR_PLLSRC_HSE_Msk (0x3U << RCC_PLLCFGR_PLLSRC_HSE_Pos) /*!< 0x00000003 */ | |
10077 #define RCC_PLLCFGR_PLLSRC_HSE RCC_PLLCFGR_PLLSRC_HSE_Msk /*!< HSE oscillator source clock selected */ | |
10078 | |
10079 #define RCC_PLLCFGR_PLLM_Pos (4U) | |
10080 #define RCC_PLLCFGR_PLLM_Msk (0x7U << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000070 */ | |
10081 #define RCC_PLLCFGR_PLLM RCC_PLLCFGR_PLLM_Msk | |
10082 #define RCC_PLLCFGR_PLLM_0 (0x1U << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000010 */ | |
10083 #define RCC_PLLCFGR_PLLM_1 (0x2U << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000020 */ | |
10084 #define RCC_PLLCFGR_PLLM_2 (0x4U << RCC_PLLCFGR_PLLM_Pos) /*!< 0x00000040 */ | |
10085 | |
10086 #define RCC_PLLCFGR_PLLN_Pos (8U) | |
10087 #define RCC_PLLCFGR_PLLN_Msk (0x7FU << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00007F00 */ | |
10088 #define RCC_PLLCFGR_PLLN RCC_PLLCFGR_PLLN_Msk | |
10089 #define RCC_PLLCFGR_PLLN_0 (0x01U << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000100 */ | |
10090 #define RCC_PLLCFGR_PLLN_1 (0x02U << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000200 */ | |
10091 #define RCC_PLLCFGR_PLLN_2 (0x04U << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000400 */ | |
10092 #define RCC_PLLCFGR_PLLN_3 (0x08U << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00000800 */ | |
10093 #define RCC_PLLCFGR_PLLN_4 (0x10U << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00001000 */ | |
10094 #define RCC_PLLCFGR_PLLN_5 (0x20U << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00002000 */ | |
10095 #define RCC_PLLCFGR_PLLN_6 (0x40U << RCC_PLLCFGR_PLLN_Pos) /*!< 0x00004000 */ | |
10096 | |
10097 #define RCC_PLLCFGR_PLLPEN_Pos (16U) | |
10098 #define RCC_PLLCFGR_PLLPEN_Msk (0x1U << RCC_PLLCFGR_PLLPEN_Pos) /*!< 0x00010000 */ | |
10099 #define RCC_PLLCFGR_PLLPEN RCC_PLLCFGR_PLLPEN_Msk | |
10100 #define RCC_PLLCFGR_PLLP_Pos (17U) | |
10101 #define RCC_PLLCFGR_PLLP_Msk (0x1U << RCC_PLLCFGR_PLLP_Pos) /*!< 0x00020000 */ | |
10102 #define RCC_PLLCFGR_PLLP RCC_PLLCFGR_PLLP_Msk | |
10103 #define RCC_PLLCFGR_PLLQEN_Pos (20U) | |
10104 #define RCC_PLLCFGR_PLLQEN_Msk (0x1U << RCC_PLLCFGR_PLLQEN_Pos) /*!< 0x00100000 */ | |
10105 #define RCC_PLLCFGR_PLLQEN RCC_PLLCFGR_PLLQEN_Msk | |
10106 | |
10107 #define RCC_PLLCFGR_PLLQ_Pos (21U) | |
10108 #define RCC_PLLCFGR_PLLQ_Msk (0x3U << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00600000 */ | |
10109 #define RCC_PLLCFGR_PLLQ RCC_PLLCFGR_PLLQ_Msk | |
10110 #define RCC_PLLCFGR_PLLQ_0 (0x1U << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00200000 */ | |
10111 #define RCC_PLLCFGR_PLLQ_1 (0x2U << RCC_PLLCFGR_PLLQ_Pos) /*!< 0x00400000 */ | |
10112 | |
10113 #define RCC_PLLCFGR_PLLREN_Pos (24U) | |
10114 #define RCC_PLLCFGR_PLLREN_Msk (0x1U << RCC_PLLCFGR_PLLREN_Pos) /*!< 0x01000000 */ | |
10115 #define RCC_PLLCFGR_PLLREN RCC_PLLCFGR_PLLREN_Msk | |
10116 #define RCC_PLLCFGR_PLLR_Pos (25U) | |
10117 #define RCC_PLLCFGR_PLLR_Msk (0x3U << RCC_PLLCFGR_PLLR_Pos) /*!< 0x06000000 */ | |
10118 #define RCC_PLLCFGR_PLLR RCC_PLLCFGR_PLLR_Msk | |
10119 #define RCC_PLLCFGR_PLLR_0 (0x1U << RCC_PLLCFGR_PLLR_Pos) /*!< 0x02000000 */ | |
10120 #define RCC_PLLCFGR_PLLR_1 (0x2U << RCC_PLLCFGR_PLLR_Pos) /*!< 0x04000000 */ | |
10121 | |
10122 #define RCC_PLLCFGR_PLLPDIV_Pos (27U) | |
10123 #define RCC_PLLCFGR_PLLPDIV_Msk (0x1FU << RCC_PLLCFGR_PLLPDIV_Pos) /*!< 0xF8000000 */ | |
10124 #define RCC_PLLCFGR_PLLPDIV RCC_PLLCFGR_PLLPDIV_Msk | |
10125 #define RCC_PLLCFGR_PLLPDIV_0 (0x01U << RCC_PLLCFGR_PLLPDIV_Pos) /*!< 0x08000000 */ | |
10126 #define RCC_PLLCFGR_PLLPDIV_1 (0x02U << RCC_PLLCFGR_PLLPDIV_Pos) /*!< 0x10000000 */ | |
10127 #define RCC_PLLCFGR_PLLPDIV_2 (0x04U << RCC_PLLCFGR_PLLPDIV_Pos) /*!< 0x20000000 */ | |
10128 #define RCC_PLLCFGR_PLLPDIV_3 (0x08U << RCC_PLLCFGR_PLLPDIV_Pos) /*!< 0x40000000 */ | |
10129 #define RCC_PLLCFGR_PLLPDIV_4 (0x10U << RCC_PLLCFGR_PLLPDIV_Pos) /*!< 0x80000000 */ | |
10130 | |
10131 /******************** Bit definition for RCC_PLLSAI1CFGR register ************/ | |
10132 #define RCC_PLLSAI1CFGR_PLLSAI1N_Pos (8U) | |
10133 #define RCC_PLLSAI1CFGR_PLLSAI1N_Msk (0x7FU << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) /*!< 0x00007F00 */ | |
10134 #define RCC_PLLSAI1CFGR_PLLSAI1N RCC_PLLSAI1CFGR_PLLSAI1N_Msk | |
10135 #define RCC_PLLSAI1CFGR_PLLSAI1N_0 (0x01U << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) /*!< 0x00000100 */ | |
10136 #define RCC_PLLSAI1CFGR_PLLSAI1N_1 (0x02U << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) /*!< 0x00000200 */ | |
10137 #define RCC_PLLSAI1CFGR_PLLSAI1N_2 (0x04U << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) /*!< 0x00000400 */ | |
10138 #define RCC_PLLSAI1CFGR_PLLSAI1N_3 (0x08U << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) /*!< 0x00000800 */ | |
10139 #define RCC_PLLSAI1CFGR_PLLSAI1N_4 (0x10U << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) /*!< 0x00001000 */ | |
10140 #define RCC_PLLSAI1CFGR_PLLSAI1N_5 (0x20U << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) /*!< 0x00002000 */ | |
10141 #define RCC_PLLSAI1CFGR_PLLSAI1N_6 (0x40U << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) /*!< 0x00004000 */ | |
10142 | |
10143 #define RCC_PLLSAI1CFGR_PLLSAI1PEN_Pos (16U) | |
10144 #define RCC_PLLSAI1CFGR_PLLSAI1PEN_Msk (0x1U << RCC_PLLSAI1CFGR_PLLSAI1PEN_Pos) /*!< 0x00010000 */ | |
10145 #define RCC_PLLSAI1CFGR_PLLSAI1PEN RCC_PLLSAI1CFGR_PLLSAI1PEN_Msk | |
10146 #define RCC_PLLSAI1CFGR_PLLSAI1P_Pos (17U) | |
10147 #define RCC_PLLSAI1CFGR_PLLSAI1P_Msk (0x1U << RCC_PLLSAI1CFGR_PLLSAI1P_Pos) /*!< 0x00020000 */ | |
10148 #define RCC_PLLSAI1CFGR_PLLSAI1P RCC_PLLSAI1CFGR_PLLSAI1P_Msk | |
10149 | |
10150 #define RCC_PLLSAI1CFGR_PLLSAI1QEN_Pos (20U) | |
10151 #define RCC_PLLSAI1CFGR_PLLSAI1QEN_Msk (0x1U << RCC_PLLSAI1CFGR_PLLSAI1QEN_Pos) /*!< 0x00100000 */ | |
10152 #define RCC_PLLSAI1CFGR_PLLSAI1QEN RCC_PLLSAI1CFGR_PLLSAI1QEN_Msk | |
10153 #define RCC_PLLSAI1CFGR_PLLSAI1Q_Pos (21U) | |
10154 #define RCC_PLLSAI1CFGR_PLLSAI1Q_Msk (0x3U << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos) /*!< 0x00600000 */ | |
10155 #define RCC_PLLSAI1CFGR_PLLSAI1Q RCC_PLLSAI1CFGR_PLLSAI1Q_Msk | |
10156 #define RCC_PLLSAI1CFGR_PLLSAI1Q_0 (0x1U << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos) /*!< 0x00200000 */ | |
10157 #define RCC_PLLSAI1CFGR_PLLSAI1Q_1 (0x2U << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos) /*!< 0x00400000 */ | |
10158 | |
10159 #define RCC_PLLSAI1CFGR_PLLSAI1REN_Pos (24U) | |
10160 #define RCC_PLLSAI1CFGR_PLLSAI1REN_Msk (0x1U << RCC_PLLSAI1CFGR_PLLSAI1REN_Pos) /*!< 0x01000000 */ | |
10161 #define RCC_PLLSAI1CFGR_PLLSAI1REN RCC_PLLSAI1CFGR_PLLSAI1REN_Msk | |
10162 #define RCC_PLLSAI1CFGR_PLLSAI1R_Pos (25U) | |
10163 #define RCC_PLLSAI1CFGR_PLLSAI1R_Msk (0x3U << RCC_PLLSAI1CFGR_PLLSAI1R_Pos) /*!< 0x06000000 */ | |
10164 #define RCC_PLLSAI1CFGR_PLLSAI1R RCC_PLLSAI1CFGR_PLLSAI1R_Msk | |
10165 #define RCC_PLLSAI1CFGR_PLLSAI1R_0 (0x1U << RCC_PLLSAI1CFGR_PLLSAI1R_Pos) /*!< 0x02000000 */ | |
10166 #define RCC_PLLSAI1CFGR_PLLSAI1R_1 (0x2U << RCC_PLLSAI1CFGR_PLLSAI1R_Pos) /*!< 0x04000000 */ | |
10167 | |
10168 #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos (27U) | |
10169 #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_Msk (0x1FU << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos) /*!< 0xF8000000 */ | |
10170 #define RCC_PLLSAI1CFGR_PLLSAI1PDIV RCC_PLLSAI1CFGR_PLLSAI1PDIV_Msk | |
10171 #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_0 (0x01U << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos) /*!< 0x08000000 */ | |
10172 #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_1 (0x02U << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos) /*!< 0x10000000 */ | |
10173 #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_2 (0x04U << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos) /*!< 0x20000000 */ | |
10174 #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_3 (0x08U << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos) /*!< 0x40000000 */ | |
10175 #define RCC_PLLSAI1CFGR_PLLSAI1PDIV_4 (0x10U << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos) /*!< 0x80000000 */ | |
10176 | |
10177 /******************** Bit definition for RCC_CIER register ******************/ | |
10178 #define RCC_CIER_LSIRDYIE_Pos (0U) | |
10179 #define RCC_CIER_LSIRDYIE_Msk (0x1U << RCC_CIER_LSIRDYIE_Pos) /*!< 0x00000001 */ | |
10180 #define RCC_CIER_LSIRDYIE RCC_CIER_LSIRDYIE_Msk | |
10181 #define RCC_CIER_LSERDYIE_Pos (1U) | |
10182 #define RCC_CIER_LSERDYIE_Msk (0x1U << RCC_CIER_LSERDYIE_Pos) /*!< 0x00000002 */ | |
10183 #define RCC_CIER_LSERDYIE RCC_CIER_LSERDYIE_Msk | |
10184 #define RCC_CIER_MSIRDYIE_Pos (2U) | |
10185 #define RCC_CIER_MSIRDYIE_Msk (0x1U << RCC_CIER_MSIRDYIE_Pos) /*!< 0x00000004 */ | |
10186 #define RCC_CIER_MSIRDYIE RCC_CIER_MSIRDYIE_Msk | |
10187 #define RCC_CIER_HSIRDYIE_Pos (3U) | |
10188 #define RCC_CIER_HSIRDYIE_Msk (0x1U << RCC_CIER_HSIRDYIE_Pos) /*!< 0x00000008 */ | |
10189 #define RCC_CIER_HSIRDYIE RCC_CIER_HSIRDYIE_Msk | |
10190 #define RCC_CIER_HSERDYIE_Pos (4U) | |
10191 #define RCC_CIER_HSERDYIE_Msk (0x1U << RCC_CIER_HSERDYIE_Pos) /*!< 0x00000010 */ | |
10192 #define RCC_CIER_HSERDYIE RCC_CIER_HSERDYIE_Msk | |
10193 #define RCC_CIER_PLLRDYIE_Pos (5U) | |
10194 #define RCC_CIER_PLLRDYIE_Msk (0x1U << RCC_CIER_PLLRDYIE_Pos) /*!< 0x00000020 */ | |
10195 #define RCC_CIER_PLLRDYIE RCC_CIER_PLLRDYIE_Msk | |
10196 #define RCC_CIER_PLLSAI1RDYIE_Pos (6U) | |
10197 #define RCC_CIER_PLLSAI1RDYIE_Msk (0x1U << RCC_CIER_PLLSAI1RDYIE_Pos) /*!< 0x00000040 */ | |
10198 #define RCC_CIER_PLLSAI1RDYIE RCC_CIER_PLLSAI1RDYIE_Msk | |
10199 #define RCC_CIER_LSECSSIE_Pos (9U) | |
10200 #define RCC_CIER_LSECSSIE_Msk (0x1U << RCC_CIER_LSECSSIE_Pos) /*!< 0x00000200 */ | |
10201 #define RCC_CIER_LSECSSIE RCC_CIER_LSECSSIE_Msk | |
10202 #define RCC_CIER_HSI48RDYIE_Pos (10U) | |
10203 #define RCC_CIER_HSI48RDYIE_Msk (0x1U << RCC_CIER_HSI48RDYIE_Pos) /*!< 0x00000400 */ | |
10204 #define RCC_CIER_HSI48RDYIE RCC_CIER_HSI48RDYIE_Msk | |
10205 | |
10206 /******************** Bit definition for RCC_CIFR register ******************/ | |
10207 #define RCC_CIFR_LSIRDYF_Pos (0U) | |
10208 #define RCC_CIFR_LSIRDYF_Msk (0x1U << RCC_CIFR_LSIRDYF_Pos) /*!< 0x00000001 */ | |
10209 #define RCC_CIFR_LSIRDYF RCC_CIFR_LSIRDYF_Msk | |
10210 #define RCC_CIFR_LSERDYF_Pos (1U) | |
10211 #define RCC_CIFR_LSERDYF_Msk (0x1U << RCC_CIFR_LSERDYF_Pos) /*!< 0x00000002 */ | |
10212 #define RCC_CIFR_LSERDYF RCC_CIFR_LSERDYF_Msk | |
10213 #define RCC_CIFR_MSIRDYF_Pos (2U) | |
10214 #define RCC_CIFR_MSIRDYF_Msk (0x1U << RCC_CIFR_MSIRDYF_Pos) /*!< 0x00000004 */ | |
10215 #define RCC_CIFR_MSIRDYF RCC_CIFR_MSIRDYF_Msk | |
10216 #define RCC_CIFR_HSIRDYF_Pos (3U) | |
10217 #define RCC_CIFR_HSIRDYF_Msk (0x1U << RCC_CIFR_HSIRDYF_Pos) /*!< 0x00000008 */ | |
10218 #define RCC_CIFR_HSIRDYF RCC_CIFR_HSIRDYF_Msk | |
10219 #define RCC_CIFR_HSERDYF_Pos (4U) | |
10220 #define RCC_CIFR_HSERDYF_Msk (0x1U << RCC_CIFR_HSERDYF_Pos) /*!< 0x00000010 */ | |
10221 #define RCC_CIFR_HSERDYF RCC_CIFR_HSERDYF_Msk | |
10222 #define RCC_CIFR_PLLRDYF_Pos (5U) | |
10223 #define RCC_CIFR_PLLRDYF_Msk (0x1U << RCC_CIFR_PLLRDYF_Pos) /*!< 0x00000020 */ | |
10224 #define RCC_CIFR_PLLRDYF RCC_CIFR_PLLRDYF_Msk | |
10225 #define RCC_CIFR_PLLSAI1RDYF_Pos (6U) | |
10226 #define RCC_CIFR_PLLSAI1RDYF_Msk (0x1U << RCC_CIFR_PLLSAI1RDYF_Pos) /*!< 0x00000040 */ | |
10227 #define RCC_CIFR_PLLSAI1RDYF RCC_CIFR_PLLSAI1RDYF_Msk | |
10228 #define RCC_CIFR_CSSF_Pos (8U) | |
10229 #define RCC_CIFR_CSSF_Msk (0x1U << RCC_CIFR_CSSF_Pos) /*!< 0x00000100 */ | |
10230 #define RCC_CIFR_CSSF RCC_CIFR_CSSF_Msk | |
10231 #define RCC_CIFR_LSECSSF_Pos (9U) | |
10232 #define RCC_CIFR_LSECSSF_Msk (0x1U << RCC_CIFR_LSECSSF_Pos) /*!< 0x00000200 */ | |
10233 #define RCC_CIFR_LSECSSF RCC_CIFR_LSECSSF_Msk | |
10234 #define RCC_CIFR_HSI48RDYF_Pos (10U) | |
10235 #define RCC_CIFR_HSI48RDYF_Msk (0x1U << RCC_CIFR_HSI48RDYF_Pos) /*!< 0x00000400 */ | |
10236 #define RCC_CIFR_HSI48RDYF RCC_CIFR_HSI48RDYF_Msk | |
10237 | |
10238 /******************** Bit definition for RCC_CICR register ******************/ | |
10239 #define RCC_CICR_LSIRDYC_Pos (0U) | |
10240 #define RCC_CICR_LSIRDYC_Msk (0x1U << RCC_CICR_LSIRDYC_Pos) /*!< 0x00000001 */ | |
10241 #define RCC_CICR_LSIRDYC RCC_CICR_LSIRDYC_Msk | |
10242 #define RCC_CICR_LSERDYC_Pos (1U) | |
10243 #define RCC_CICR_LSERDYC_Msk (0x1U << RCC_CICR_LSERDYC_Pos) /*!< 0x00000002 */ | |
10244 #define RCC_CICR_LSERDYC RCC_CICR_LSERDYC_Msk | |
10245 #define RCC_CICR_MSIRDYC_Pos (2U) | |
10246 #define RCC_CICR_MSIRDYC_Msk (0x1U << RCC_CICR_MSIRDYC_Pos) /*!< 0x00000004 */ | |
10247 #define RCC_CICR_MSIRDYC RCC_CICR_MSIRDYC_Msk | |
10248 #define RCC_CICR_HSIRDYC_Pos (3U) | |
10249 #define RCC_CICR_HSIRDYC_Msk (0x1U << RCC_CICR_HSIRDYC_Pos) /*!< 0x00000008 */ | |
10250 #define RCC_CICR_HSIRDYC RCC_CICR_HSIRDYC_Msk | |
10251 #define RCC_CICR_HSERDYC_Pos (4U) | |
10252 #define RCC_CICR_HSERDYC_Msk (0x1U << RCC_CICR_HSERDYC_Pos) /*!< 0x00000010 */ | |
10253 #define RCC_CICR_HSERDYC RCC_CICR_HSERDYC_Msk | |
10254 #define RCC_CICR_PLLRDYC_Pos (5U) | |
10255 #define RCC_CICR_PLLRDYC_Msk (0x1U << RCC_CICR_PLLRDYC_Pos) /*!< 0x00000020 */ | |
10256 #define RCC_CICR_PLLRDYC RCC_CICR_PLLRDYC_Msk | |
10257 #define RCC_CICR_PLLSAI1RDYC_Pos (6U) | |
10258 #define RCC_CICR_PLLSAI1RDYC_Msk (0x1U << RCC_CICR_PLLSAI1RDYC_Pos) /*!< 0x00000040 */ | |
10259 #define RCC_CICR_PLLSAI1RDYC RCC_CICR_PLLSAI1RDYC_Msk | |
10260 #define RCC_CICR_CSSC_Pos (8U) | |
10261 #define RCC_CICR_CSSC_Msk (0x1U << RCC_CICR_CSSC_Pos) /*!< 0x00000100 */ | |
10262 #define RCC_CICR_CSSC RCC_CICR_CSSC_Msk | |
10263 #define RCC_CICR_LSECSSC_Pos (9U) | |
10264 #define RCC_CICR_LSECSSC_Msk (0x1U << RCC_CICR_LSECSSC_Pos) /*!< 0x00000200 */ | |
10265 #define RCC_CICR_LSECSSC RCC_CICR_LSECSSC_Msk | |
10266 #define RCC_CICR_HSI48RDYC_Pos (10U) | |
10267 #define RCC_CICR_HSI48RDYC_Msk (0x1U << RCC_CICR_HSI48RDYC_Pos) /*!< 0x00000400 */ | |
10268 #define RCC_CICR_HSI48RDYC RCC_CICR_HSI48RDYC_Msk | |
10269 | |
10270 /******************** Bit definition for RCC_AHB1RSTR register **************/ | |
10271 #define RCC_AHB1RSTR_DMA1RST_Pos (0U) | |
10272 #define RCC_AHB1RSTR_DMA1RST_Msk (0x1U << RCC_AHB1RSTR_DMA1RST_Pos) /*!< 0x00000001 */ | |
10273 #define RCC_AHB1RSTR_DMA1RST RCC_AHB1RSTR_DMA1RST_Msk | |
10274 #define RCC_AHB1RSTR_DMA2RST_Pos (1U) | |
10275 #define RCC_AHB1RSTR_DMA2RST_Msk (0x1U << RCC_AHB1RSTR_DMA2RST_Pos) /*!< 0x00000002 */ | |
10276 #define RCC_AHB1RSTR_DMA2RST RCC_AHB1RSTR_DMA2RST_Msk | |
10277 #define RCC_AHB1RSTR_FLASHRST_Pos (8U) | |
10278 #define RCC_AHB1RSTR_FLASHRST_Msk (0x1U << RCC_AHB1RSTR_FLASHRST_Pos) /*!< 0x00000100 */ | |
10279 #define RCC_AHB1RSTR_FLASHRST RCC_AHB1RSTR_FLASHRST_Msk | |
10280 #define RCC_AHB1RSTR_CRCRST_Pos (12U) | |
10281 #define RCC_AHB1RSTR_CRCRST_Msk (0x1U << RCC_AHB1RSTR_CRCRST_Pos) /*!< 0x00001000 */ | |
10282 #define RCC_AHB1RSTR_CRCRST RCC_AHB1RSTR_CRCRST_Msk | |
10283 #define RCC_AHB1RSTR_TSCRST_Pos (16U) | |
10284 #define RCC_AHB1RSTR_TSCRST_Msk (0x1U << RCC_AHB1RSTR_TSCRST_Pos) /*!< 0x00010000 */ | |
10285 #define RCC_AHB1RSTR_TSCRST RCC_AHB1RSTR_TSCRST_Msk | |
10286 | |
10287 /******************** Bit definition for RCC_AHB2RSTR register **************/ | |
10288 #define RCC_AHB2RSTR_GPIOARST_Pos (0U) | |
10289 #define RCC_AHB2RSTR_GPIOARST_Msk (0x1U << RCC_AHB2RSTR_GPIOARST_Pos) /*!< 0x00000001 */ | |
10290 #define RCC_AHB2RSTR_GPIOARST RCC_AHB2RSTR_GPIOARST_Msk | |
10291 #define RCC_AHB2RSTR_GPIOBRST_Pos (1U) | |
10292 #define RCC_AHB2RSTR_GPIOBRST_Msk (0x1U << RCC_AHB2RSTR_GPIOBRST_Pos) /*!< 0x00000002 */ | |
10293 #define RCC_AHB2RSTR_GPIOBRST RCC_AHB2RSTR_GPIOBRST_Msk | |
10294 #define RCC_AHB2RSTR_GPIOCRST_Pos (2U) | |
10295 #define RCC_AHB2RSTR_GPIOCRST_Msk (0x1U << RCC_AHB2RSTR_GPIOCRST_Pos) /*!< 0x00000004 */ | |
10296 #define RCC_AHB2RSTR_GPIOCRST RCC_AHB2RSTR_GPIOCRST_Msk | |
10297 #define RCC_AHB2RSTR_GPIODRST_Pos (3U) | |
10298 #define RCC_AHB2RSTR_GPIODRST_Msk (0x1U << RCC_AHB2RSTR_GPIODRST_Pos) /*!< 0x00000008 */ | |
10299 #define RCC_AHB2RSTR_GPIODRST RCC_AHB2RSTR_GPIODRST_Msk | |
10300 #define RCC_AHB2RSTR_GPIOERST_Pos (4U) | |
10301 #define RCC_AHB2RSTR_GPIOERST_Msk (0x1U << RCC_AHB2RSTR_GPIOERST_Pos) /*!< 0x00000010 */ | |
10302 #define RCC_AHB2RSTR_GPIOERST RCC_AHB2RSTR_GPIOERST_Msk | |
10303 #define RCC_AHB2RSTR_GPIOHRST_Pos (7U) | |
10304 #define RCC_AHB2RSTR_GPIOHRST_Msk (0x1U << RCC_AHB2RSTR_GPIOHRST_Pos) /*!< 0x00000080 */ | |
10305 #define RCC_AHB2RSTR_GPIOHRST RCC_AHB2RSTR_GPIOHRST_Msk | |
10306 #define RCC_AHB2RSTR_ADCRST_Pos (13U) | |
10307 #define RCC_AHB2RSTR_ADCRST_Msk (0x1U << RCC_AHB2RSTR_ADCRST_Pos) /*!< 0x00002000 */ | |
10308 #define RCC_AHB2RSTR_ADCRST RCC_AHB2RSTR_ADCRST_Msk | |
10309 #define RCC_AHB2RSTR_AESRST_Pos (16U) | |
10310 #define RCC_AHB2RSTR_AESRST_Msk (0x1U << RCC_AHB2RSTR_AESRST_Pos) /*!< 0x00010000 */ | |
10311 #define RCC_AHB2RSTR_AESRST RCC_AHB2RSTR_AESRST_Msk | |
10312 #define RCC_AHB2RSTR_RNGRST_Pos (18U) | |
10313 #define RCC_AHB2RSTR_RNGRST_Msk (0x1U << RCC_AHB2RSTR_RNGRST_Pos) /*!< 0x00040000 */ | |
10314 #define RCC_AHB2RSTR_RNGRST RCC_AHB2RSTR_RNGRST_Msk | |
10315 | |
10316 /******************** Bit definition for RCC_AHB3RSTR register **************/ | |
10317 #define RCC_AHB3RSTR_QSPIRST_Pos (8U) | |
10318 #define RCC_AHB3RSTR_QSPIRST_Msk (0x1U << RCC_AHB3RSTR_QSPIRST_Pos) /*!< 0x00000100 */ | |
10319 #define RCC_AHB3RSTR_QSPIRST RCC_AHB3RSTR_QSPIRST_Msk | |
10320 | |
10321 /******************** Bit definition for RCC_APB1RSTR1 register **************/ | |
10322 #define RCC_APB1RSTR1_TIM2RST_Pos (0U) | |
10323 #define RCC_APB1RSTR1_TIM2RST_Msk (0x1U << RCC_APB1RSTR1_TIM2RST_Pos) /*!< 0x00000001 */ | |
10324 #define RCC_APB1RSTR1_TIM2RST RCC_APB1RSTR1_TIM2RST_Msk | |
10325 #define RCC_APB1RSTR1_TIM3RST_Pos (1U) | |
10326 #define RCC_APB1RSTR1_TIM3RST_Msk (0x1U << RCC_APB1RSTR1_TIM3RST_Pos) /*!< 0x00000002 */ | |
10327 #define RCC_APB1RSTR1_TIM3RST RCC_APB1RSTR1_TIM3RST_Msk | |
10328 #define RCC_APB1RSTR1_TIM6RST_Pos (4U) | |
10329 #define RCC_APB1RSTR1_TIM6RST_Msk (0x1U << RCC_APB1RSTR1_TIM6RST_Pos) /*!< 0x00000010 */ | |
10330 #define RCC_APB1RSTR1_TIM6RST RCC_APB1RSTR1_TIM6RST_Msk | |
10331 #define RCC_APB1RSTR1_SPI2RST_Pos (14U) | |
10332 #define RCC_APB1RSTR1_SPI2RST_Msk (0x1U << RCC_APB1RSTR1_SPI2RST_Pos) /*!< 0x00004000 */ | |
10333 #define RCC_APB1RSTR1_SPI2RST RCC_APB1RSTR1_SPI2RST_Msk | |
10334 #define RCC_APB1RSTR1_SPI3RST_Pos (15U) | |
10335 #define RCC_APB1RSTR1_SPI3RST_Msk (0x1U << RCC_APB1RSTR1_SPI3RST_Pos) /*!< 0x00008000 */ | |
10336 #define RCC_APB1RSTR1_SPI3RST RCC_APB1RSTR1_SPI3RST_Msk | |
10337 #define RCC_APB1RSTR1_USART2RST_Pos (17U) | |
10338 #define RCC_APB1RSTR1_USART2RST_Msk (0x1U << RCC_APB1RSTR1_USART2RST_Pos) /*!< 0x00020000 */ | |
10339 #define RCC_APB1RSTR1_USART2RST RCC_APB1RSTR1_USART2RST_Msk | |
10340 #define RCC_APB1RSTR1_USART3RST_Pos (18U) | |
10341 #define RCC_APB1RSTR1_USART3RST_Msk (0x1U << RCC_APB1RSTR1_USART3RST_Pos) /*!< 0x00040000 */ | |
10342 #define RCC_APB1RSTR1_USART3RST RCC_APB1RSTR1_USART3RST_Msk | |
10343 #define RCC_APB1RSTR1_UART4RST_Pos (19U) | |
10344 #define RCC_APB1RSTR1_UART4RST_Msk (0x1U << RCC_APB1RSTR1_UART4RST_Pos) /*!< 0x00080000 */ | |
10345 #define RCC_APB1RSTR1_UART4RST RCC_APB1RSTR1_UART4RST_Msk | |
10346 #define RCC_APB1RSTR1_I2C1RST_Pos (21U) | |
10347 #define RCC_APB1RSTR1_I2C1RST_Msk (0x1U << RCC_APB1RSTR1_I2C1RST_Pos) /*!< 0x00200000 */ | |
10348 #define RCC_APB1RSTR1_I2C1RST RCC_APB1RSTR1_I2C1RST_Msk | |
10349 #define RCC_APB1RSTR1_I2C2RST_Pos (22U) | |
10350 #define RCC_APB1RSTR1_I2C2RST_Msk (0x1U << RCC_APB1RSTR1_I2C2RST_Pos) /*!< 0x00400000 */ | |
10351 #define RCC_APB1RSTR1_I2C2RST RCC_APB1RSTR1_I2C2RST_Msk | |
10352 #define RCC_APB1RSTR1_I2C3RST_Pos (23U) | |
10353 #define RCC_APB1RSTR1_I2C3RST_Msk (0x1U << RCC_APB1RSTR1_I2C3RST_Pos) /*!< 0x00800000 */ | |
10354 #define RCC_APB1RSTR1_I2C3RST RCC_APB1RSTR1_I2C3RST_Msk | |
10355 #define RCC_APB1RSTR1_CRSRST_Pos (24U) | |
10356 #define RCC_APB1RSTR1_CRSRST_Msk (0x1U << RCC_APB1RSTR1_CRSRST_Pos) /*!< 0x01000000 */ | |
10357 #define RCC_APB1RSTR1_CRSRST RCC_APB1RSTR1_CRSRST_Msk | |
10358 #define RCC_APB1RSTR1_CAN1RST_Pos (25U) | |
10359 #define RCC_APB1RSTR1_CAN1RST_Msk (0x1U << RCC_APB1RSTR1_CAN1RST_Pos) /*!< 0x02000000 */ | |
10360 #define RCC_APB1RSTR1_CAN1RST RCC_APB1RSTR1_CAN1RST_Msk | |
10361 #define RCC_APB1RSTR1_USBFSRST_Pos (26U) | |
10362 #define RCC_APB1RSTR1_USBFSRST_Msk (0x1U << RCC_APB1RSTR1_USBFSRST_Pos) /*!< 0x04000000 */ | |
10363 #define RCC_APB1RSTR1_USBFSRST RCC_APB1RSTR1_USBFSRST_Msk | |
10364 #define RCC_APB1RSTR1_PWRRST_Pos (28U) | |
10365 #define RCC_APB1RSTR1_PWRRST_Msk (0x1U << RCC_APB1RSTR1_PWRRST_Pos) /*!< 0x10000000 */ | |
10366 #define RCC_APB1RSTR1_PWRRST RCC_APB1RSTR1_PWRRST_Msk | |
10367 #define RCC_APB1RSTR1_DAC1RST_Pos (29U) | |
10368 #define RCC_APB1RSTR1_DAC1RST_Msk (0x1U << RCC_APB1RSTR1_DAC1RST_Pos) /*!< 0x20000000 */ | |
10369 #define RCC_APB1RSTR1_DAC1RST RCC_APB1RSTR1_DAC1RST_Msk | |
10370 #define RCC_APB1RSTR1_OPAMPRST_Pos (30U) | |
10371 #define RCC_APB1RSTR1_OPAMPRST_Msk (0x1U << RCC_APB1RSTR1_OPAMPRST_Pos) /*!< 0x40000000 */ | |
10372 #define RCC_APB1RSTR1_OPAMPRST RCC_APB1RSTR1_OPAMPRST_Msk | |
10373 #define RCC_APB1RSTR1_LPTIM1RST_Pos (31U) | |
10374 #define RCC_APB1RSTR1_LPTIM1RST_Msk (0x1U << RCC_APB1RSTR1_LPTIM1RST_Pos) /*!< 0x80000000 */ | |
10375 #define RCC_APB1RSTR1_LPTIM1RST RCC_APB1RSTR1_LPTIM1RST_Msk | |
10376 | |
10377 /******************** Bit definition for RCC_APB1RSTR2 register **************/ | |
10378 #define RCC_APB1RSTR2_LPUART1RST_Pos (0U) | |
10379 #define RCC_APB1RSTR2_LPUART1RST_Msk (0x1U << RCC_APB1RSTR2_LPUART1RST_Pos) /*!< 0x00000001 */ | |
10380 #define RCC_APB1RSTR2_LPUART1RST RCC_APB1RSTR2_LPUART1RST_Msk | |
10381 #define RCC_APB1RSTR2_I2C4RST_Pos (1U) | |
10382 #define RCC_APB1RSTR2_I2C4RST_Msk (0x1U << RCC_APB1RSTR2_I2C4RST_Pos) /*!< 0x00000002 */ | |
10383 #define RCC_APB1RSTR2_I2C4RST RCC_APB1RSTR2_I2C4RST_Msk | |
10384 #define RCC_APB1RSTR2_LPTIM2RST_Pos (5U) | |
10385 #define RCC_APB1RSTR2_LPTIM2RST_Msk (0x1U << RCC_APB1RSTR2_LPTIM2RST_Pos) /*!< 0x00000020 */ | |
10386 #define RCC_APB1RSTR2_LPTIM2RST RCC_APB1RSTR2_LPTIM2RST_Msk | |
10387 | |
10388 /******************** Bit definition for RCC_APB2RSTR register **************/ | |
10389 #define RCC_APB2RSTR_SYSCFGRST_Pos (0U) | |
10390 #define RCC_APB2RSTR_SYSCFGRST_Msk (0x1U << RCC_APB2RSTR_SYSCFGRST_Pos) /*!< 0x00000001 */ | |
10391 #define RCC_APB2RSTR_SYSCFGRST RCC_APB2RSTR_SYSCFGRST_Msk | |
10392 #define RCC_APB2RSTR_SDMMC1RST_Pos (10U) | |
10393 #define RCC_APB2RSTR_SDMMC1RST_Msk (0x1U << RCC_APB2RSTR_SDMMC1RST_Pos) /*!< 0x00000400 */ | |
10394 #define RCC_APB2RSTR_SDMMC1RST RCC_APB2RSTR_SDMMC1RST_Msk | |
10395 #define RCC_APB2RSTR_TIM1RST_Pos (11U) | |
10396 #define RCC_APB2RSTR_TIM1RST_Msk (0x1U << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000800 */ | |
10397 #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk | |
10398 #define RCC_APB2RSTR_SPI1RST_Pos (12U) | |
10399 #define RCC_APB2RSTR_SPI1RST_Msk (0x1U << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */ | |
10400 #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk | |
10401 #define RCC_APB2RSTR_USART1RST_Pos (14U) | |
10402 #define RCC_APB2RSTR_USART1RST_Msk (0x1U << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00004000 */ | |
10403 #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk | |
10404 #define RCC_APB2RSTR_TIM15RST_Pos (16U) | |
10405 #define RCC_APB2RSTR_TIM15RST_Msk (0x1U << RCC_APB2RSTR_TIM15RST_Pos) /*!< 0x00010000 */ | |
10406 #define RCC_APB2RSTR_TIM15RST RCC_APB2RSTR_TIM15RST_Msk | |
10407 #define RCC_APB2RSTR_TIM16RST_Pos (17U) | |
10408 #define RCC_APB2RSTR_TIM16RST_Msk (0x1U << RCC_APB2RSTR_TIM16RST_Pos) /*!< 0x00020000 */ | |
10409 #define RCC_APB2RSTR_TIM16RST RCC_APB2RSTR_TIM16RST_Msk | |
10410 #define RCC_APB2RSTR_SAI1RST_Pos (21U) | |
10411 #define RCC_APB2RSTR_SAI1RST_Msk (0x1U << RCC_APB2RSTR_SAI1RST_Pos) /*!< 0x00200000 */ | |
10412 #define RCC_APB2RSTR_SAI1RST RCC_APB2RSTR_SAI1RST_Msk | |
10413 #define RCC_APB2RSTR_DFSDM1RST_Pos (24U) | |
10414 #define RCC_APB2RSTR_DFSDM1RST_Msk (0x1U << RCC_APB2RSTR_DFSDM1RST_Pos) /*!< 0x01000000 */ | |
10415 #define RCC_APB2RSTR_DFSDM1RST RCC_APB2RSTR_DFSDM1RST_Msk | |
10416 | |
10417 /******************** Bit definition for RCC_AHB1ENR register ***************/ | |
10418 #define RCC_AHB1ENR_DMA1EN_Pos (0U) | |
10419 #define RCC_AHB1ENR_DMA1EN_Msk (0x1U << RCC_AHB1ENR_DMA1EN_Pos) /*!< 0x00000001 */ | |
10420 #define RCC_AHB1ENR_DMA1EN RCC_AHB1ENR_DMA1EN_Msk | |
10421 #define RCC_AHB1ENR_DMA2EN_Pos (1U) | |
10422 #define RCC_AHB1ENR_DMA2EN_Msk (0x1U << RCC_AHB1ENR_DMA2EN_Pos) /*!< 0x00000002 */ | |
10423 #define RCC_AHB1ENR_DMA2EN RCC_AHB1ENR_DMA2EN_Msk | |
10424 #define RCC_AHB1ENR_FLASHEN_Pos (8U) | |
10425 #define RCC_AHB1ENR_FLASHEN_Msk (0x1U << RCC_AHB1ENR_FLASHEN_Pos) /*!< 0x00000100 */ | |
10426 #define RCC_AHB1ENR_FLASHEN RCC_AHB1ENR_FLASHEN_Msk | |
10427 #define RCC_AHB1ENR_CRCEN_Pos (12U) | |
10428 #define RCC_AHB1ENR_CRCEN_Msk (0x1U << RCC_AHB1ENR_CRCEN_Pos) /*!< 0x00001000 */ | |
10429 #define RCC_AHB1ENR_CRCEN RCC_AHB1ENR_CRCEN_Msk | |
10430 #define RCC_AHB1ENR_TSCEN_Pos (16U) | |
10431 #define RCC_AHB1ENR_TSCEN_Msk (0x1U << RCC_AHB1ENR_TSCEN_Pos) /*!< 0x00010000 */ | |
10432 #define RCC_AHB1ENR_TSCEN RCC_AHB1ENR_TSCEN_Msk | |
10433 | |
10434 /******************** Bit definition for RCC_AHB2ENR register ***************/ | |
10435 #define RCC_AHB2ENR_GPIOAEN_Pos (0U) | |
10436 #define RCC_AHB2ENR_GPIOAEN_Msk (0x1U << RCC_AHB2ENR_GPIOAEN_Pos) /*!< 0x00000001 */ | |
10437 #define RCC_AHB2ENR_GPIOAEN RCC_AHB2ENR_GPIOAEN_Msk | |
10438 #define RCC_AHB2ENR_GPIOBEN_Pos (1U) | |
10439 #define RCC_AHB2ENR_GPIOBEN_Msk (0x1U << RCC_AHB2ENR_GPIOBEN_Pos) /*!< 0x00000002 */ | |
10440 #define RCC_AHB2ENR_GPIOBEN RCC_AHB2ENR_GPIOBEN_Msk | |
10441 #define RCC_AHB2ENR_GPIOCEN_Pos (2U) | |
10442 #define RCC_AHB2ENR_GPIOCEN_Msk (0x1U << RCC_AHB2ENR_GPIOCEN_Pos) /*!< 0x00000004 */ | |
10443 #define RCC_AHB2ENR_GPIOCEN RCC_AHB2ENR_GPIOCEN_Msk | |
10444 #define RCC_AHB2ENR_GPIODEN_Pos (3U) | |
10445 #define RCC_AHB2ENR_GPIODEN_Msk (0x1U << RCC_AHB2ENR_GPIODEN_Pos) /*!< 0x00000008 */ | |
10446 #define RCC_AHB2ENR_GPIODEN RCC_AHB2ENR_GPIODEN_Msk | |
10447 #define RCC_AHB2ENR_GPIOEEN_Pos (4U) | |
10448 #define RCC_AHB2ENR_GPIOEEN_Msk (0x1U << RCC_AHB2ENR_GPIOEEN_Pos) /*!< 0x00000010 */ | |
10449 #define RCC_AHB2ENR_GPIOEEN RCC_AHB2ENR_GPIOEEN_Msk | |
10450 #define RCC_AHB2ENR_GPIOHEN_Pos (7U) | |
10451 #define RCC_AHB2ENR_GPIOHEN_Msk (0x1U << RCC_AHB2ENR_GPIOHEN_Pos) /*!< 0x00000080 */ | |
10452 #define RCC_AHB2ENR_GPIOHEN RCC_AHB2ENR_GPIOHEN_Msk | |
10453 #define RCC_AHB2ENR_ADCEN_Pos (13U) | |
10454 #define RCC_AHB2ENR_ADCEN_Msk (0x1U << RCC_AHB2ENR_ADCEN_Pos) /*!< 0x00002000 */ | |
10455 #define RCC_AHB2ENR_ADCEN RCC_AHB2ENR_ADCEN_Msk | |
10456 #define RCC_AHB2ENR_AESEN_Pos (16U) | |
10457 #define RCC_AHB2ENR_AESEN_Msk (0x1U << RCC_AHB2ENR_AESEN_Pos) /*!< 0x00010000 */ | |
10458 #define RCC_AHB2ENR_AESEN RCC_AHB2ENR_AESEN_Msk | |
10459 #define RCC_AHB2ENR_RNGEN_Pos (18U) | |
10460 #define RCC_AHB2ENR_RNGEN_Msk (0x1U << RCC_AHB2ENR_RNGEN_Pos) /*!< 0x00040000 */ | |
10461 #define RCC_AHB2ENR_RNGEN RCC_AHB2ENR_RNGEN_Msk | |
10462 | |
10463 /******************** Bit definition for RCC_AHB3ENR register ***************/ | |
10464 #define RCC_AHB3ENR_QSPIEN_Pos (8U) | |
10465 #define RCC_AHB3ENR_QSPIEN_Msk (0x1U << RCC_AHB3ENR_QSPIEN_Pos) /*!< 0x00000100 */ | |
10466 #define RCC_AHB3ENR_QSPIEN RCC_AHB3ENR_QSPIEN_Msk | |
10467 | |
10468 /******************** Bit definition for RCC_APB1ENR1 register ***************/ | |
10469 #define RCC_APB1ENR1_TIM2EN_Pos (0U) | |
10470 #define RCC_APB1ENR1_TIM2EN_Msk (0x1U << RCC_APB1ENR1_TIM2EN_Pos) /*!< 0x00000001 */ | |
10471 #define RCC_APB1ENR1_TIM2EN RCC_APB1ENR1_TIM2EN_Msk | |
10472 #define RCC_APB1ENR1_TIM3EN_Pos (1U) | |
10473 #define RCC_APB1ENR1_TIM3EN_Msk (0x1U << RCC_APB1ENR1_TIM3EN_Pos) /*!< 0x00000002 */ | |
10474 #define RCC_APB1ENR1_TIM3EN RCC_APB1ENR1_TIM3EN_Msk | |
10475 #define RCC_APB1ENR1_TIM6EN_Pos (4U) | |
10476 #define RCC_APB1ENR1_TIM6EN_Msk (0x1U << RCC_APB1ENR1_TIM6EN_Pos) /*!< 0x00000010 */ | |
10477 #define RCC_APB1ENR1_TIM6EN RCC_APB1ENR1_TIM6EN_Msk | |
10478 #define RCC_APB1ENR1_RTCAPBEN_Pos (10U) | |
10479 #define RCC_APB1ENR1_RTCAPBEN_Msk (0x1U << RCC_APB1ENR1_RTCAPBEN_Pos) /*!< 0x00000400 */ | |
10480 #define RCC_APB1ENR1_RTCAPBEN RCC_APB1ENR1_RTCAPBEN_Msk | |
10481 #define RCC_APB1ENR1_WWDGEN_Pos (11U) | |
10482 #define RCC_APB1ENR1_WWDGEN_Msk (0x1U << RCC_APB1ENR1_WWDGEN_Pos) /*!< 0x00000800 */ | |
10483 #define RCC_APB1ENR1_WWDGEN RCC_APB1ENR1_WWDGEN_Msk | |
10484 #define RCC_APB1ENR1_SPI2EN_Pos (14U) | |
10485 #define RCC_APB1ENR1_SPI2EN_Msk (0x1U << RCC_APB1ENR1_SPI2EN_Pos) /*!< 0x00004000 */ | |
10486 #define RCC_APB1ENR1_SPI2EN RCC_APB1ENR1_SPI2EN_Msk | |
10487 #define RCC_APB1ENR1_SPI3EN_Pos (15U) | |
10488 #define RCC_APB1ENR1_SPI3EN_Msk (0x1U << RCC_APB1ENR1_SPI3EN_Pos) /*!< 0x00008000 */ | |
10489 #define RCC_APB1ENR1_SPI3EN RCC_APB1ENR1_SPI3EN_Msk | |
10490 #define RCC_APB1ENR1_USART2EN_Pos (17U) | |
10491 #define RCC_APB1ENR1_USART2EN_Msk (0x1U << RCC_APB1ENR1_USART2EN_Pos) /*!< 0x00020000 */ | |
10492 #define RCC_APB1ENR1_USART2EN RCC_APB1ENR1_USART2EN_Msk | |
10493 #define RCC_APB1ENR1_USART3EN_Pos (18U) | |
10494 #define RCC_APB1ENR1_USART3EN_Msk (0x1U << RCC_APB1ENR1_USART3EN_Pos) /*!< 0x00040000 */ | |
10495 #define RCC_APB1ENR1_USART3EN RCC_APB1ENR1_USART3EN_Msk | |
10496 #define RCC_APB1ENR1_UART4EN_Pos (19U) | |
10497 #define RCC_APB1ENR1_UART4EN_Msk (0x1U << RCC_APB1ENR1_UART4EN_Pos) /*!< 0x00080000 */ | |
10498 #define RCC_APB1ENR1_UART4EN RCC_APB1ENR1_UART4EN_Msk | |
10499 #define RCC_APB1ENR1_I2C1EN_Pos (21U) | |
10500 #define RCC_APB1ENR1_I2C1EN_Msk (0x1U << RCC_APB1ENR1_I2C1EN_Pos) /*!< 0x00200000 */ | |
10501 #define RCC_APB1ENR1_I2C1EN RCC_APB1ENR1_I2C1EN_Msk | |
10502 #define RCC_APB1ENR1_I2C2EN_Pos (22U) | |
10503 #define RCC_APB1ENR1_I2C2EN_Msk (0x1U << RCC_APB1ENR1_I2C2EN_Pos) /*!< 0x00400000 */ | |
10504 #define RCC_APB1ENR1_I2C2EN RCC_APB1ENR1_I2C2EN_Msk | |
10505 #define RCC_APB1ENR1_I2C3EN_Pos (23U) | |
10506 #define RCC_APB1ENR1_I2C3EN_Msk (0x1U << RCC_APB1ENR1_I2C3EN_Pos) /*!< 0x00800000 */ | |
10507 #define RCC_APB1ENR1_I2C3EN RCC_APB1ENR1_I2C3EN_Msk | |
10508 #define RCC_APB1ENR1_CRSEN_Pos (24U) | |
10509 #define RCC_APB1ENR1_CRSEN_Msk (0x1U << RCC_APB1ENR1_CRSEN_Pos) /*!< 0x01000000 */ | |
10510 #define RCC_APB1ENR1_CRSEN RCC_APB1ENR1_CRSEN_Msk | |
10511 #define RCC_APB1ENR1_CAN1EN_Pos (25U) | |
10512 #define RCC_APB1ENR1_CAN1EN_Msk (0x1U << RCC_APB1ENR1_CAN1EN_Pos) /*!< 0x02000000 */ | |
10513 #define RCC_APB1ENR1_CAN1EN RCC_APB1ENR1_CAN1EN_Msk | |
10514 #define RCC_APB1ENR1_USBFSEN_Pos (26U) | |
10515 #define RCC_APB1ENR1_USBFSEN_Msk (0x1U << RCC_APB1ENR1_USBFSEN_Pos) /*!< 0x04000000 */ | |
10516 #define RCC_APB1ENR1_USBFSEN RCC_APB1ENR1_USBFSEN_Msk | |
10517 #define RCC_APB1ENR1_PWREN_Pos (28U) | |
10518 #define RCC_APB1ENR1_PWREN_Msk (0x1U << RCC_APB1ENR1_PWREN_Pos) /*!< 0x10000000 */ | |
10519 #define RCC_APB1ENR1_PWREN RCC_APB1ENR1_PWREN_Msk | |
10520 #define RCC_APB1ENR1_DAC1EN_Pos (29U) | |
10521 #define RCC_APB1ENR1_DAC1EN_Msk (0x1U << RCC_APB1ENR1_DAC1EN_Pos) /*!< 0x20000000 */ | |
10522 #define RCC_APB1ENR1_DAC1EN RCC_APB1ENR1_DAC1EN_Msk | |
10523 #define RCC_APB1ENR1_OPAMPEN_Pos (30U) | |
10524 #define RCC_APB1ENR1_OPAMPEN_Msk (0x1U << RCC_APB1ENR1_OPAMPEN_Pos) /*!< 0x40000000 */ | |
10525 #define RCC_APB1ENR1_OPAMPEN RCC_APB1ENR1_OPAMPEN_Msk | |
10526 #define RCC_APB1ENR1_LPTIM1EN_Pos (31U) | |
10527 #define RCC_APB1ENR1_LPTIM1EN_Msk (0x1U << RCC_APB1ENR1_LPTIM1EN_Pos) /*!< 0x80000000 */ | |
10528 #define RCC_APB1ENR1_LPTIM1EN RCC_APB1ENR1_LPTIM1EN_Msk | |
10529 | |
10530 /******************** Bit definition for RCC_APB1RSTR2 register **************/ | |
10531 #define RCC_APB1ENR2_LPUART1EN_Pos (0U) | |
10532 #define RCC_APB1ENR2_LPUART1EN_Msk (0x1U << RCC_APB1ENR2_LPUART1EN_Pos) /*!< 0x00000001 */ | |
10533 #define RCC_APB1ENR2_LPUART1EN RCC_APB1ENR2_LPUART1EN_Msk | |
10534 #define RCC_APB1ENR2_I2C4EN_Pos (1U) | |
10535 #define RCC_APB1ENR2_I2C4EN_Msk (0x1U << RCC_APB1ENR2_I2C4EN_Pos) /*!< 0x00000002 */ | |
10536 #define RCC_APB1ENR2_I2C4EN RCC_APB1ENR2_I2C4EN_Msk | |
10537 #define RCC_APB1ENR2_LPTIM2EN_Pos (5U) | |
10538 #define RCC_APB1ENR2_LPTIM2EN_Msk (0x1U << RCC_APB1ENR2_LPTIM2EN_Pos) /*!< 0x00000020 */ | |
10539 #define RCC_APB1ENR2_LPTIM2EN RCC_APB1ENR2_LPTIM2EN_Msk | |
10540 | |
10541 /******************** Bit definition for RCC_APB2ENR register ***************/ | |
10542 #define RCC_APB2ENR_SYSCFGEN_Pos (0U) | |
10543 #define RCC_APB2ENR_SYSCFGEN_Msk (0x1U << RCC_APB2ENR_SYSCFGEN_Pos) /*!< 0x00000001 */ | |
10544 #define RCC_APB2ENR_SYSCFGEN RCC_APB2ENR_SYSCFGEN_Msk | |
10545 #define RCC_APB2ENR_FWEN_Pos (7U) | |
10546 #define RCC_APB2ENR_FWEN_Msk (0x1U << RCC_APB2ENR_FWEN_Pos) /*!< 0x00000080 */ | |
10547 #define RCC_APB2ENR_FWEN RCC_APB2ENR_FWEN_Msk | |
10548 #define RCC_APB2ENR_SDMMC1EN_Pos (10U) | |
10549 #define RCC_APB2ENR_SDMMC1EN_Msk (0x1U << RCC_APB2ENR_SDMMC1EN_Pos) /*!< 0x00000400 */ | |
10550 #define RCC_APB2ENR_SDMMC1EN RCC_APB2ENR_SDMMC1EN_Msk | |
10551 #define RCC_APB2ENR_TIM1EN_Pos (11U) | |
10552 #define RCC_APB2ENR_TIM1EN_Msk (0x1U << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000800 */ | |
10553 #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk | |
10554 #define RCC_APB2ENR_SPI1EN_Pos (12U) | |
10555 #define RCC_APB2ENR_SPI1EN_Msk (0x1U << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */ | |
10556 #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk | |
10557 #define RCC_APB2ENR_USART1EN_Pos (14U) | |
10558 #define RCC_APB2ENR_USART1EN_Msk (0x1U << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00004000 */ | |
10559 #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk | |
10560 #define RCC_APB2ENR_TIM15EN_Pos (16U) | |
10561 #define RCC_APB2ENR_TIM15EN_Msk (0x1U << RCC_APB2ENR_TIM15EN_Pos) /*!< 0x00010000 */ | |
10562 #define RCC_APB2ENR_TIM15EN RCC_APB2ENR_TIM15EN_Msk | |
10563 #define RCC_APB2ENR_TIM16EN_Pos (17U) | |
10564 #define RCC_APB2ENR_TIM16EN_Msk (0x1U << RCC_APB2ENR_TIM16EN_Pos) /*!< 0x00020000 */ | |
10565 #define RCC_APB2ENR_TIM16EN RCC_APB2ENR_TIM16EN_Msk | |
10566 #define RCC_APB2ENR_SAI1EN_Pos (21U) | |
10567 #define RCC_APB2ENR_SAI1EN_Msk (0x1U << RCC_APB2ENR_SAI1EN_Pos) /*!< 0x00200000 */ | |
10568 #define RCC_APB2ENR_SAI1EN RCC_APB2ENR_SAI1EN_Msk | |
10569 #define RCC_APB2ENR_DFSDM1EN_Pos (24U) | |
10570 #define RCC_APB2ENR_DFSDM1EN_Msk (0x1U << RCC_APB2ENR_DFSDM1EN_Pos) /*!< 0x01000000 */ | |
10571 #define RCC_APB2ENR_DFSDM1EN RCC_APB2ENR_DFSDM1EN_Msk | |
10572 | |
10573 /******************** Bit definition for RCC_AHB1SMENR register ***************/ | |
10574 #define RCC_AHB1SMENR_DMA1SMEN_Pos (0U) | |
10575 #define RCC_AHB1SMENR_DMA1SMEN_Msk (0x1U << RCC_AHB1SMENR_DMA1SMEN_Pos) /*!< 0x00000001 */ | |
10576 #define RCC_AHB1SMENR_DMA1SMEN RCC_AHB1SMENR_DMA1SMEN_Msk | |
10577 #define RCC_AHB1SMENR_DMA2SMEN_Pos (1U) | |
10578 #define RCC_AHB1SMENR_DMA2SMEN_Msk (0x1U << RCC_AHB1SMENR_DMA2SMEN_Pos) /*!< 0x00000002 */ | |
10579 #define RCC_AHB1SMENR_DMA2SMEN RCC_AHB1SMENR_DMA2SMEN_Msk | |
10580 #define RCC_AHB1SMENR_FLASHSMEN_Pos (8U) | |
10581 #define RCC_AHB1SMENR_FLASHSMEN_Msk (0x1U << RCC_AHB1SMENR_FLASHSMEN_Pos) /*!< 0x00000100 */ | |
10582 #define RCC_AHB1SMENR_FLASHSMEN RCC_AHB1SMENR_FLASHSMEN_Msk | |
10583 #define RCC_AHB1SMENR_SRAM1SMEN_Pos (9U) | |
10584 #define RCC_AHB1SMENR_SRAM1SMEN_Msk (0x1U << RCC_AHB1SMENR_SRAM1SMEN_Pos) /*!< 0x00000200 */ | |
10585 #define RCC_AHB1SMENR_SRAM1SMEN RCC_AHB1SMENR_SRAM1SMEN_Msk | |
10586 #define RCC_AHB1SMENR_CRCSMEN_Pos (12U) | |
10587 #define RCC_AHB1SMENR_CRCSMEN_Msk (0x1U << RCC_AHB1SMENR_CRCSMEN_Pos) /*!< 0x00001000 */ | |
10588 #define RCC_AHB1SMENR_CRCSMEN RCC_AHB1SMENR_CRCSMEN_Msk | |
10589 #define RCC_AHB1SMENR_TSCSMEN_Pos (16U) | |
10590 #define RCC_AHB1SMENR_TSCSMEN_Msk (0x1U << RCC_AHB1SMENR_TSCSMEN_Pos) /*!< 0x00010000 */ | |
10591 #define RCC_AHB1SMENR_TSCSMEN RCC_AHB1SMENR_TSCSMEN_Msk | |
10592 | |
10593 /******************** Bit definition for RCC_AHB2SMENR register *************/ | |
10594 #define RCC_AHB2SMENR_GPIOASMEN_Pos (0U) | |
10595 #define RCC_AHB2SMENR_GPIOASMEN_Msk (0x1U << RCC_AHB2SMENR_GPIOASMEN_Pos) /*!< 0x00000001 */ | |
10596 #define RCC_AHB2SMENR_GPIOASMEN RCC_AHB2SMENR_GPIOASMEN_Msk | |
10597 #define RCC_AHB2SMENR_GPIOBSMEN_Pos (1U) | |
10598 #define RCC_AHB2SMENR_GPIOBSMEN_Msk (0x1U << RCC_AHB2SMENR_GPIOBSMEN_Pos) /*!< 0x00000002 */ | |
10599 #define RCC_AHB2SMENR_GPIOBSMEN RCC_AHB2SMENR_GPIOBSMEN_Msk | |
10600 #define RCC_AHB2SMENR_GPIOCSMEN_Pos (2U) | |
10601 #define RCC_AHB2SMENR_GPIOCSMEN_Msk (0x1U << RCC_AHB2SMENR_GPIOCSMEN_Pos) /*!< 0x00000004 */ | |
10602 #define RCC_AHB2SMENR_GPIOCSMEN RCC_AHB2SMENR_GPIOCSMEN_Msk | |
10603 #define RCC_AHB2SMENR_GPIODSMEN_Pos (3U) | |
10604 #define RCC_AHB2SMENR_GPIODSMEN_Msk (0x1U << RCC_AHB2SMENR_GPIODSMEN_Pos) /*!< 0x00000008 */ | |
10605 #define RCC_AHB2SMENR_GPIODSMEN RCC_AHB2SMENR_GPIODSMEN_Msk | |
10606 #define RCC_AHB2SMENR_GPIOESMEN_Pos (4U) | |
10607 #define RCC_AHB2SMENR_GPIOESMEN_Msk (0x1U << RCC_AHB2SMENR_GPIOESMEN_Pos) /*!< 0x00000010 */ | |
10608 #define RCC_AHB2SMENR_GPIOESMEN RCC_AHB2SMENR_GPIOESMEN_Msk | |
10609 #define RCC_AHB2SMENR_GPIOHSMEN_Pos (7U) | |
10610 #define RCC_AHB2SMENR_GPIOHSMEN_Msk (0x1U << RCC_AHB2SMENR_GPIOHSMEN_Pos) /*!< 0x00000080 */ | |
10611 #define RCC_AHB2SMENR_GPIOHSMEN RCC_AHB2SMENR_GPIOHSMEN_Msk | |
10612 #define RCC_AHB2SMENR_SRAM2SMEN_Pos (9U) | |
10613 #define RCC_AHB2SMENR_SRAM2SMEN_Msk (0x1U << RCC_AHB2SMENR_SRAM2SMEN_Pos) /*!< 0x00000200 */ | |
10614 #define RCC_AHB2SMENR_SRAM2SMEN RCC_AHB2SMENR_SRAM2SMEN_Msk | |
10615 #define RCC_AHB2SMENR_ADCSMEN_Pos (13U) | |
10616 #define RCC_AHB2SMENR_ADCSMEN_Msk (0x1U << RCC_AHB2SMENR_ADCSMEN_Pos) /*!< 0x00002000 */ | |
10617 #define RCC_AHB2SMENR_ADCSMEN RCC_AHB2SMENR_ADCSMEN_Msk | |
10618 #define RCC_AHB2SMENR_AESSMEN_Pos (16U) | |
10619 #define RCC_AHB2SMENR_AESSMEN_Msk (0x1U << RCC_AHB2SMENR_AESSMEN_Pos) /*!< 0x00010000 */ | |
10620 #define RCC_AHB2SMENR_AESSMEN RCC_AHB2SMENR_AESSMEN_Msk | |
10621 #define RCC_AHB2SMENR_RNGSMEN_Pos (18U) | |
10622 #define RCC_AHB2SMENR_RNGSMEN_Msk (0x1U << RCC_AHB2SMENR_RNGSMEN_Pos) /*!< 0x00040000 */ | |
10623 #define RCC_AHB2SMENR_RNGSMEN RCC_AHB2SMENR_RNGSMEN_Msk | |
10624 | |
10625 /******************** Bit definition for RCC_AHB3SMENR register *************/ | |
10626 #define RCC_AHB3SMENR_QSPISMEN_Pos (8U) | |
10627 #define RCC_AHB3SMENR_QSPISMEN_Msk (0x1U << RCC_AHB3SMENR_QSPISMEN_Pos) /*!< 0x00000100 */ | |
10628 #define RCC_AHB3SMENR_QSPISMEN RCC_AHB3SMENR_QSPISMEN_Msk | |
10629 | |
10630 /******************** Bit definition for RCC_APB1SMENR1 register *************/ | |
10631 #define RCC_APB1SMENR1_TIM2SMEN_Pos (0U) | |
10632 #define RCC_APB1SMENR1_TIM2SMEN_Msk (0x1U << RCC_APB1SMENR1_TIM2SMEN_Pos) /*!< 0x00000001 */ | |
10633 #define RCC_APB1SMENR1_TIM2SMEN RCC_APB1SMENR1_TIM2SMEN_Msk | |
10634 #define RCC_APB1SMENR1_TIM3SMEN_Pos (1U) | |
10635 #define RCC_APB1SMENR1_TIM3SMEN_Msk (0x1U << RCC_APB1SMENR1_TIM3SMEN_Pos) /*!< 0x00000002 */ | |
10636 #define RCC_APB1SMENR1_TIM3SMEN RCC_APB1SMENR1_TIM3SMEN_Msk | |
10637 #define RCC_APB1SMENR1_TIM6SMEN_Pos (4U) | |
10638 #define RCC_APB1SMENR1_TIM6SMEN_Msk (0x1U << RCC_APB1SMENR1_TIM6SMEN_Pos) /*!< 0x00000010 */ | |
10639 #define RCC_APB1SMENR1_TIM6SMEN RCC_APB1SMENR1_TIM6SMEN_Msk | |
10640 #define RCC_APB1SMENR1_RTCAPBSMEN_Pos (10U) | |
10641 #define RCC_APB1SMENR1_RTCAPBSMEN_Msk (0x1U << RCC_APB1SMENR1_RTCAPBSMEN_Pos) /*!< 0x00000400 */ | |
10642 #define RCC_APB1SMENR1_RTCAPBSMEN RCC_APB1SMENR1_RTCAPBSMEN_Msk | |
10643 #define RCC_APB1SMENR1_WWDGSMEN_Pos (11U) | |
10644 #define RCC_APB1SMENR1_WWDGSMEN_Msk (0x1U << RCC_APB1SMENR1_WWDGSMEN_Pos) /*!< 0x00000800 */ | |
10645 #define RCC_APB1SMENR1_WWDGSMEN RCC_APB1SMENR1_WWDGSMEN_Msk | |
10646 #define RCC_APB1SMENR1_SPI2SMEN_Pos (14U) | |
10647 #define RCC_APB1SMENR1_SPI2SMEN_Msk (0x1U << RCC_APB1SMENR1_SPI2SMEN_Pos) /*!< 0x00004000 */ | |
10648 #define RCC_APB1SMENR1_SPI2SMEN RCC_APB1SMENR1_SPI2SMEN_Msk | |
10649 #define RCC_APB1SMENR1_SPI3SMEN_Pos (15U) | |
10650 #define RCC_APB1SMENR1_SPI3SMEN_Msk (0x1U << RCC_APB1SMENR1_SPI3SMEN_Pos) /*!< 0x00008000 */ | |
10651 #define RCC_APB1SMENR1_SPI3SMEN RCC_APB1SMENR1_SPI3SMEN_Msk | |
10652 #define RCC_APB1SMENR1_USART2SMEN_Pos (17U) | |
10653 #define RCC_APB1SMENR1_USART2SMEN_Msk (0x1U << RCC_APB1SMENR1_USART2SMEN_Pos) /*!< 0x00020000 */ | |
10654 #define RCC_APB1SMENR1_USART2SMEN RCC_APB1SMENR1_USART2SMEN_Msk | |
10655 #define RCC_APB1SMENR1_USART3SMEN_Pos (18U) | |
10656 #define RCC_APB1SMENR1_USART3SMEN_Msk (0x1U << RCC_APB1SMENR1_USART3SMEN_Pos) /*!< 0x00040000 */ | |
10657 #define RCC_APB1SMENR1_USART3SMEN RCC_APB1SMENR1_USART3SMEN_Msk | |
10658 #define RCC_APB1SMENR1_UART4SMEN_Pos (19U) | |
10659 #define RCC_APB1SMENR1_UART4SMEN_Msk (0x1U << RCC_APB1SMENR1_UART4SMEN_Pos) /*!< 0x00080000 */ | |
10660 #define RCC_APB1SMENR1_UART4SMEN RCC_APB1SMENR1_UART4SMEN_Msk | |
10661 #define RCC_APB1SMENR1_I2C1SMEN_Pos (21U) | |
10662 #define RCC_APB1SMENR1_I2C1SMEN_Msk (0x1U << RCC_APB1SMENR1_I2C1SMEN_Pos) /*!< 0x00200000 */ | |
10663 #define RCC_APB1SMENR1_I2C1SMEN RCC_APB1SMENR1_I2C1SMEN_Msk | |
10664 #define RCC_APB1SMENR1_I2C2SMEN_Pos (22U) | |
10665 #define RCC_APB1SMENR1_I2C2SMEN_Msk (0x1U << RCC_APB1SMENR1_I2C2SMEN_Pos) /*!< 0x00400000 */ | |
10666 #define RCC_APB1SMENR1_I2C2SMEN RCC_APB1SMENR1_I2C2SMEN_Msk | |
10667 #define RCC_APB1SMENR1_I2C3SMEN_Pos (23U) | |
10668 #define RCC_APB1SMENR1_I2C3SMEN_Msk (0x1U << RCC_APB1SMENR1_I2C3SMEN_Pos) /*!< 0x00800000 */ | |
10669 #define RCC_APB1SMENR1_I2C3SMEN RCC_APB1SMENR1_I2C3SMEN_Msk | |
10670 #define RCC_APB1SMENR1_CRSSMEN_Pos (24U) | |
10671 #define RCC_APB1SMENR1_CRSSMEN_Msk (0x1U << RCC_APB1SMENR1_CRSSMEN_Pos) /*!< 0x01000000 */ | |
10672 #define RCC_APB1SMENR1_CRSSMEN RCC_APB1SMENR1_CRSSMEN_Msk | |
10673 #define RCC_APB1SMENR1_CAN1SMEN_Pos (25U) | |
10674 #define RCC_APB1SMENR1_CAN1SMEN_Msk (0x1U << RCC_APB1SMENR1_CAN1SMEN_Pos) /*!< 0x02000000 */ | |
10675 #define RCC_APB1SMENR1_CAN1SMEN RCC_APB1SMENR1_CAN1SMEN_Msk | |
10676 #define RCC_APB1SMENR1_USBFSSMEN_Pos (26U) | |
10677 #define RCC_APB1SMENR1_USBFSSMEN_Msk (0x1U << RCC_APB1SMENR1_USBFSSMEN_Pos) /*!< 0x04000000 */ | |
10678 #define RCC_APB1SMENR1_USBFSSMEN RCC_APB1SMENR1_USBFSSMEN_Msk | |
10679 #define RCC_APB1SMENR1_PWRSMEN_Pos (28U) | |
10680 #define RCC_APB1SMENR1_PWRSMEN_Msk (0x1U << RCC_APB1SMENR1_PWRSMEN_Pos) /*!< 0x10000000 */ | |
10681 #define RCC_APB1SMENR1_PWRSMEN RCC_APB1SMENR1_PWRSMEN_Msk | |
10682 #define RCC_APB1SMENR1_DAC1SMEN_Pos (29U) | |
10683 #define RCC_APB1SMENR1_DAC1SMEN_Msk (0x1U << RCC_APB1SMENR1_DAC1SMEN_Pos) /*!< 0x20000000 */ | |
10684 #define RCC_APB1SMENR1_DAC1SMEN RCC_APB1SMENR1_DAC1SMEN_Msk | |
10685 #define RCC_APB1SMENR1_OPAMPSMEN_Pos (30U) | |
10686 #define RCC_APB1SMENR1_OPAMPSMEN_Msk (0x1U << RCC_APB1SMENR1_OPAMPSMEN_Pos) /*!< 0x40000000 */ | |
10687 #define RCC_APB1SMENR1_OPAMPSMEN RCC_APB1SMENR1_OPAMPSMEN_Msk | |
10688 #define RCC_APB1SMENR1_LPTIM1SMEN_Pos (31U) | |
10689 #define RCC_APB1SMENR1_LPTIM1SMEN_Msk (0x1U << RCC_APB1SMENR1_LPTIM1SMEN_Pos) /*!< 0x80000000 */ | |
10690 #define RCC_APB1SMENR1_LPTIM1SMEN RCC_APB1SMENR1_LPTIM1SMEN_Msk | |
10691 | |
10692 /******************** Bit definition for RCC_APB1SMENR2 register *************/ | |
10693 #define RCC_APB1SMENR2_LPUART1SMEN_Pos (0U) | |
10694 #define RCC_APB1SMENR2_LPUART1SMEN_Msk (0x1U << RCC_APB1SMENR2_LPUART1SMEN_Pos) /*!< 0x00000001 */ | |
10695 #define RCC_APB1SMENR2_LPUART1SMEN RCC_APB1SMENR2_LPUART1SMEN_Msk | |
10696 #define RCC_APB1SMENR2_I2C4SMEN_Pos (1U) | |
10697 #define RCC_APB1SMENR2_I2C4SMEN_Msk (0x1U << RCC_APB1SMENR2_I2C4SMEN_Pos) /*!< 0x00000002 */ | |
10698 #define RCC_APB1SMENR2_I2C4SMEN RCC_APB1SMENR2_I2C4SMEN_Msk | |
10699 #define RCC_APB1SMENR2_LPTIM2SMEN_Pos (5U) | |
10700 #define RCC_APB1SMENR2_LPTIM2SMEN_Msk (0x1U << RCC_APB1SMENR2_LPTIM2SMEN_Pos) /*!< 0x00000020 */ | |
10701 #define RCC_APB1SMENR2_LPTIM2SMEN RCC_APB1SMENR2_LPTIM2SMEN_Msk | |
10702 | |
10703 /******************** Bit definition for RCC_APB2SMENR register *************/ | |
10704 #define RCC_APB2SMENR_SYSCFGSMEN_Pos (0U) | |
10705 #define RCC_APB2SMENR_SYSCFGSMEN_Msk (0x1U << RCC_APB2SMENR_SYSCFGSMEN_Pos) /*!< 0x00000001 */ | |
10706 #define RCC_APB2SMENR_SYSCFGSMEN RCC_APB2SMENR_SYSCFGSMEN_Msk | |
10707 #define RCC_APB2SMENR_SDMMC1SMEN_Pos (10U) | |
10708 #define RCC_APB2SMENR_SDMMC1SMEN_Msk (0x1U << RCC_APB2SMENR_SDMMC1SMEN_Pos) /*!< 0x00000400 */ | |
10709 #define RCC_APB2SMENR_SDMMC1SMEN RCC_APB2SMENR_SDMMC1SMEN_Msk | |
10710 #define RCC_APB2SMENR_TIM1SMEN_Pos (11U) | |
10711 #define RCC_APB2SMENR_TIM1SMEN_Msk (0x1U << RCC_APB2SMENR_TIM1SMEN_Pos) /*!< 0x00000800 */ | |
10712 #define RCC_APB2SMENR_TIM1SMEN RCC_APB2SMENR_TIM1SMEN_Msk | |
10713 #define RCC_APB2SMENR_SPI1SMEN_Pos (12U) | |
10714 #define RCC_APB2SMENR_SPI1SMEN_Msk (0x1U << RCC_APB2SMENR_SPI1SMEN_Pos) /*!< 0x00001000 */ | |
10715 #define RCC_APB2SMENR_SPI1SMEN RCC_APB2SMENR_SPI1SMEN_Msk | |
10716 #define RCC_APB2SMENR_USART1SMEN_Pos (14U) | |
10717 #define RCC_APB2SMENR_USART1SMEN_Msk (0x1U << RCC_APB2SMENR_USART1SMEN_Pos) /*!< 0x00004000 */ | |
10718 #define RCC_APB2SMENR_USART1SMEN RCC_APB2SMENR_USART1SMEN_Msk | |
10719 #define RCC_APB2SMENR_TIM15SMEN_Pos (16U) | |
10720 #define RCC_APB2SMENR_TIM15SMEN_Msk (0x1U << RCC_APB2SMENR_TIM15SMEN_Pos) /*!< 0x00010000 */ | |
10721 #define RCC_APB2SMENR_TIM15SMEN RCC_APB2SMENR_TIM15SMEN_Msk | |
10722 #define RCC_APB2SMENR_TIM16SMEN_Pos (17U) | |
10723 #define RCC_APB2SMENR_TIM16SMEN_Msk (0x1U << RCC_APB2SMENR_TIM16SMEN_Pos) /*!< 0x00020000 */ | |
10724 #define RCC_APB2SMENR_TIM16SMEN RCC_APB2SMENR_TIM16SMEN_Msk | |
10725 #define RCC_APB2SMENR_SAI1SMEN_Pos (21U) | |
10726 #define RCC_APB2SMENR_SAI1SMEN_Msk (0x1U << RCC_APB2SMENR_SAI1SMEN_Pos) /*!< 0x00200000 */ | |
10727 #define RCC_APB2SMENR_SAI1SMEN RCC_APB2SMENR_SAI1SMEN_Msk | |
10728 #define RCC_APB2SMENR_DFSDM1SMEN_Pos (24U) | |
10729 #define RCC_APB2SMENR_DFSDM1SMEN_Msk (0x1U << RCC_APB2SMENR_DFSDM1SMEN_Pos) /*!< 0x01000000 */ | |
10730 #define RCC_APB2SMENR_DFSDM1SMEN RCC_APB2SMENR_DFSDM1SMEN_Msk | |
10731 | |
10732 /******************** Bit definition for RCC_CCIPR register ******************/ | |
10733 #define RCC_CCIPR_USART1SEL_Pos (0U) | |
10734 #define RCC_CCIPR_USART1SEL_Msk (0x3U << RCC_CCIPR_USART1SEL_Pos) /*!< 0x00000003 */ | |
10735 #define RCC_CCIPR_USART1SEL RCC_CCIPR_USART1SEL_Msk | |
10736 #define RCC_CCIPR_USART1SEL_0 (0x1U << RCC_CCIPR_USART1SEL_Pos) /*!< 0x00000001 */ | |
10737 #define RCC_CCIPR_USART1SEL_1 (0x2U << RCC_CCIPR_USART1SEL_Pos) /*!< 0x00000002 */ | |
10738 | |
10739 #define RCC_CCIPR_USART2SEL_Pos (2U) | |
10740 #define RCC_CCIPR_USART2SEL_Msk (0x3U << RCC_CCIPR_USART2SEL_Pos) /*!< 0x0000000C */ | |
10741 #define RCC_CCIPR_USART2SEL RCC_CCIPR_USART2SEL_Msk | |
10742 #define RCC_CCIPR_USART2SEL_0 (0x1U << RCC_CCIPR_USART2SEL_Pos) /*!< 0x00000004 */ | |
10743 #define RCC_CCIPR_USART2SEL_1 (0x2U << RCC_CCIPR_USART2SEL_Pos) /*!< 0x00000008 */ | |
10744 | |
10745 #define RCC_CCIPR_USART3SEL_Pos (4U) | |
10746 #define RCC_CCIPR_USART3SEL_Msk (0x3U << RCC_CCIPR_USART3SEL_Pos) /*!< 0x00000030 */ | |
10747 #define RCC_CCIPR_USART3SEL RCC_CCIPR_USART3SEL_Msk | |
10748 #define RCC_CCIPR_USART3SEL_0 (0x1U << RCC_CCIPR_USART3SEL_Pos) /*!< 0x00000010 */ | |
10749 #define RCC_CCIPR_USART3SEL_1 (0x2U << RCC_CCIPR_USART3SEL_Pos) /*!< 0x00000020 */ | |
10750 | |
10751 #define RCC_CCIPR_UART4SEL_Pos (6U) | |
10752 #define RCC_CCIPR_UART4SEL_Msk (0x3U << RCC_CCIPR_UART4SEL_Pos) /*!< 0x000000C0 */ | |
10753 #define RCC_CCIPR_UART4SEL RCC_CCIPR_UART4SEL_Msk | |
10754 #define RCC_CCIPR_UART4SEL_0 (0x1U << RCC_CCIPR_UART4SEL_Pos) /*!< 0x00000040 */ | |
10755 #define RCC_CCIPR_UART4SEL_1 (0x2U << RCC_CCIPR_UART4SEL_Pos) /*!< 0x00000080 */ | |
10756 | |
10757 #define RCC_CCIPR_LPUART1SEL_Pos (10U) | |
10758 #define RCC_CCIPR_LPUART1SEL_Msk (0x3U << RCC_CCIPR_LPUART1SEL_Pos) /*!< 0x00000C00 */ | |
10759 #define RCC_CCIPR_LPUART1SEL RCC_CCIPR_LPUART1SEL_Msk | |
10760 #define RCC_CCIPR_LPUART1SEL_0 (0x1U << RCC_CCIPR_LPUART1SEL_Pos) /*!< 0x00000400 */ | |
10761 #define RCC_CCIPR_LPUART1SEL_1 (0x2U << RCC_CCIPR_LPUART1SEL_Pos) /*!< 0x00000800 */ | |
10762 | |
10763 #define RCC_CCIPR_I2C1SEL_Pos (12U) | |
10764 #define RCC_CCIPR_I2C1SEL_Msk (0x3U << RCC_CCIPR_I2C1SEL_Pos) /*!< 0x00003000 */ | |
10765 #define RCC_CCIPR_I2C1SEL RCC_CCIPR_I2C1SEL_Msk | |
10766 #define RCC_CCIPR_I2C1SEL_0 (0x1U << RCC_CCIPR_I2C1SEL_Pos) /*!< 0x00001000 */ | |
10767 #define RCC_CCIPR_I2C1SEL_1 (0x2U << RCC_CCIPR_I2C1SEL_Pos) /*!< 0x00002000 */ | |
10768 | |
10769 #define RCC_CCIPR_I2C2SEL_Pos (14U) | |
10770 #define RCC_CCIPR_I2C2SEL_Msk (0x3U << RCC_CCIPR_I2C2SEL_Pos) /*!< 0x0000C000 */ | |
10771 #define RCC_CCIPR_I2C2SEL RCC_CCIPR_I2C2SEL_Msk | |
10772 #define RCC_CCIPR_I2C2SEL_0 (0x1U << RCC_CCIPR_I2C2SEL_Pos) /*!< 0x00004000 */ | |
10773 #define RCC_CCIPR_I2C2SEL_1 (0x2U << RCC_CCIPR_I2C2SEL_Pos) /*!< 0x00008000 */ | |
10774 | |
10775 #define RCC_CCIPR_I2C3SEL_Pos (16U) | |
10776 #define RCC_CCIPR_I2C3SEL_Msk (0x3U << RCC_CCIPR_I2C3SEL_Pos) /*!< 0x00030000 */ | |
10777 #define RCC_CCIPR_I2C3SEL RCC_CCIPR_I2C3SEL_Msk | |
10778 #define RCC_CCIPR_I2C3SEL_0 (0x1U << RCC_CCIPR_I2C3SEL_Pos) /*!< 0x00010000 */ | |
10779 #define RCC_CCIPR_I2C3SEL_1 (0x2U << RCC_CCIPR_I2C3SEL_Pos) /*!< 0x00020000 */ | |
10780 | |
10781 #define RCC_CCIPR_LPTIM1SEL_Pos (18U) | |
10782 #define RCC_CCIPR_LPTIM1SEL_Msk (0x3U << RCC_CCIPR_LPTIM1SEL_Pos) /*!< 0x000C0000 */ | |
10783 #define RCC_CCIPR_LPTIM1SEL RCC_CCIPR_LPTIM1SEL_Msk | |
10784 #define RCC_CCIPR_LPTIM1SEL_0 (0x1U << RCC_CCIPR_LPTIM1SEL_Pos) /*!< 0x00040000 */ | |
10785 #define RCC_CCIPR_LPTIM1SEL_1 (0x2U << RCC_CCIPR_LPTIM1SEL_Pos) /*!< 0x00080000 */ | |
10786 | |
10787 #define RCC_CCIPR_LPTIM2SEL_Pos (20U) | |
10788 #define RCC_CCIPR_LPTIM2SEL_Msk (0x3U << RCC_CCIPR_LPTIM2SEL_Pos) /*!< 0x00300000 */ | |
10789 #define RCC_CCIPR_LPTIM2SEL RCC_CCIPR_LPTIM2SEL_Msk | |
10790 #define RCC_CCIPR_LPTIM2SEL_0 (0x1U << RCC_CCIPR_LPTIM2SEL_Pos) /*!< 0x00100000 */ | |
10791 #define RCC_CCIPR_LPTIM2SEL_1 (0x2U << RCC_CCIPR_LPTIM2SEL_Pos) /*!< 0x00200000 */ | |
10792 | |
10793 #define RCC_CCIPR_SAI1SEL_Pos (22U) | |
10794 #define RCC_CCIPR_SAI1SEL_Msk (0x3U << RCC_CCIPR_SAI1SEL_Pos) /*!< 0x00C00000 */ | |
10795 #define RCC_CCIPR_SAI1SEL RCC_CCIPR_SAI1SEL_Msk | |
10796 #define RCC_CCIPR_SAI1SEL_0 (0x1U << RCC_CCIPR_SAI1SEL_Pos) /*!< 0x00400000 */ | |
10797 #define RCC_CCIPR_SAI1SEL_1 (0x2U << RCC_CCIPR_SAI1SEL_Pos) /*!< 0x00800000 */ | |
10798 | |
10799 #define RCC_CCIPR_CLK48SEL_Pos (26U) | |
10800 #define RCC_CCIPR_CLK48SEL_Msk (0x3U << RCC_CCIPR_CLK48SEL_Pos) /*!< 0x0C000000 */ | |
10801 #define RCC_CCIPR_CLK48SEL RCC_CCIPR_CLK48SEL_Msk | |
10802 #define RCC_CCIPR_CLK48SEL_0 (0x1U << RCC_CCIPR_CLK48SEL_Pos) /*!< 0x04000000 */ | |
10803 #define RCC_CCIPR_CLK48SEL_1 (0x2U << RCC_CCIPR_CLK48SEL_Pos) /*!< 0x08000000 */ | |
10804 | |
10805 #define RCC_CCIPR_ADCSEL_Pos (28U) | |
10806 #define RCC_CCIPR_ADCSEL_Msk (0x3U << RCC_CCIPR_ADCSEL_Pos) /*!< 0x30000000 */ | |
10807 #define RCC_CCIPR_ADCSEL RCC_CCIPR_ADCSEL_Msk | |
10808 #define RCC_CCIPR_ADCSEL_0 (0x1U << RCC_CCIPR_ADCSEL_Pos) /*!< 0x10000000 */ | |
10809 #define RCC_CCIPR_ADCSEL_1 (0x2U << RCC_CCIPR_ADCSEL_Pos) /*!< 0x20000000 */ | |
10810 | |
10811 #define RCC_CCIPR_DFSDM1SEL_Pos (31U) | |
10812 #define RCC_CCIPR_DFSDM1SEL_Msk (0x1U << RCC_CCIPR_DFSDM1SEL_Pos) /*!< 0x80000000 */ | |
10813 #define RCC_CCIPR_DFSDM1SEL RCC_CCIPR_DFSDM1SEL_Msk | |
10814 | |
10815 /******************** Bit definition for RCC_BDCR register ******************/ | |
10816 #define RCC_BDCR_LSEON_Pos (0U) | |
10817 #define RCC_BDCR_LSEON_Msk (0x1U << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */ | |
10818 #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk | |
10819 #define RCC_BDCR_LSERDY_Pos (1U) | |
10820 #define RCC_BDCR_LSERDY_Msk (0x1U << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */ | |
10821 #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk | |
10822 #define RCC_BDCR_LSEBYP_Pos (2U) | |
10823 #define RCC_BDCR_LSEBYP_Msk (0x1U << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */ | |
10824 #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk | |
10825 | |
10826 #define RCC_BDCR_LSEDRV_Pos (3U) | |
10827 #define RCC_BDCR_LSEDRV_Msk (0x3U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000018 */ | |
10828 #define RCC_BDCR_LSEDRV RCC_BDCR_LSEDRV_Msk | |
10829 #define RCC_BDCR_LSEDRV_0 (0x1U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000008 */ | |
10830 #define RCC_BDCR_LSEDRV_1 (0x2U << RCC_BDCR_LSEDRV_Pos) /*!< 0x00000010 */ | |
10831 | |
10832 #define RCC_BDCR_LSECSSON_Pos (5U) | |
10833 #define RCC_BDCR_LSECSSON_Msk (0x1U << RCC_BDCR_LSECSSON_Pos) /*!< 0x00000020 */ | |
10834 #define RCC_BDCR_LSECSSON RCC_BDCR_LSECSSON_Msk | |
10835 #define RCC_BDCR_LSECSSD_Pos (6U) | |
10836 #define RCC_BDCR_LSECSSD_Msk (0x1U << RCC_BDCR_LSECSSD_Pos) /*!< 0x00000040 */ | |
10837 #define RCC_BDCR_LSECSSD RCC_BDCR_LSECSSD_Msk | |
10838 | |
10839 #define RCC_BDCR_RTCSEL_Pos (8U) | |
10840 #define RCC_BDCR_RTCSEL_Msk (0x3U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */ | |
10841 #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk | |
10842 #define RCC_BDCR_RTCSEL_0 (0x1U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */ | |
10843 #define RCC_BDCR_RTCSEL_1 (0x2U << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */ | |
10844 | |
10845 #define RCC_BDCR_RTCEN_Pos (15U) | |
10846 #define RCC_BDCR_RTCEN_Msk (0x1U << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */ | |
10847 #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk | |
10848 #define RCC_BDCR_BDRST_Pos (16U) | |
10849 #define RCC_BDCR_BDRST_Msk (0x1U << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */ | |
10850 #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk | |
10851 #define RCC_BDCR_LSCOEN_Pos (24U) | |
10852 #define RCC_BDCR_LSCOEN_Msk (0x1U << RCC_BDCR_LSCOEN_Pos) /*!< 0x01000000 */ | |
10853 #define RCC_BDCR_LSCOEN RCC_BDCR_LSCOEN_Msk | |
10854 #define RCC_BDCR_LSCOSEL_Pos (25U) | |
10855 #define RCC_BDCR_LSCOSEL_Msk (0x1U << RCC_BDCR_LSCOSEL_Pos) /*!< 0x02000000 */ | |
10856 #define RCC_BDCR_LSCOSEL RCC_BDCR_LSCOSEL_Msk | |
10857 | |
10858 /******************** Bit definition for RCC_CSR register *******************/ | |
10859 #define RCC_CSR_LSION_Pos (0U) | |
10860 #define RCC_CSR_LSION_Msk (0x1U << RCC_CSR_LSION_Pos) /*!< 0x00000001 */ | |
10861 #define RCC_CSR_LSION RCC_CSR_LSION_Msk | |
10862 #define RCC_CSR_LSIRDY_Pos (1U) | |
10863 #define RCC_CSR_LSIRDY_Msk (0x1U << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */ | |
10864 #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk | |
10865 | |
10866 #define RCC_CSR_MSISRANGE_Pos (8U) | |
10867 #define RCC_CSR_MSISRANGE_Msk (0xFU << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000F00 */ | |
10868 #define RCC_CSR_MSISRANGE RCC_CSR_MSISRANGE_Msk | |
10869 #define RCC_CSR_MSISRANGE_1 (0x4U << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000400 */ | |
10870 #define RCC_CSR_MSISRANGE_2 (0x5U << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000500 */ | |
10871 #define RCC_CSR_MSISRANGE_4 (0x6U << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000600 */ | |
10872 #define RCC_CSR_MSISRANGE_8 (0x7U << RCC_CSR_MSISRANGE_Pos) /*!< 0x00000700 */ | |
10873 | |
10874 #define RCC_CSR_RMVF_Pos (23U) | |
10875 #define RCC_CSR_RMVF_Msk (0x1U << RCC_CSR_RMVF_Pos) /*!< 0x00800000 */ | |
10876 #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk | |
10877 #define RCC_CSR_FWRSTF_Pos (24U) | |
10878 #define RCC_CSR_FWRSTF_Msk (0x1U << RCC_CSR_FWRSTF_Pos) /*!< 0x01000000 */ | |
10879 #define RCC_CSR_FWRSTF RCC_CSR_FWRSTF_Msk | |
10880 #define RCC_CSR_OBLRSTF_Pos (25U) | |
10881 #define RCC_CSR_OBLRSTF_Msk (0x1U << RCC_CSR_OBLRSTF_Pos) /*!< 0x02000000 */ | |
10882 #define RCC_CSR_OBLRSTF RCC_CSR_OBLRSTF_Msk | |
10883 #define RCC_CSR_PINRSTF_Pos (26U) | |
10884 #define RCC_CSR_PINRSTF_Msk (0x1U << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */ | |
10885 #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk | |
10886 #define RCC_CSR_BORRSTF_Pos (27U) | |
10887 #define RCC_CSR_BORRSTF_Msk (0x1U << RCC_CSR_BORRSTF_Pos) /*!< 0x08000000 */ | |
10888 #define RCC_CSR_BORRSTF RCC_CSR_BORRSTF_Msk | |
10889 #define RCC_CSR_SFTRSTF_Pos (28U) | |
10890 #define RCC_CSR_SFTRSTF_Msk (0x1U << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */ | |
10891 #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk | |
10892 #define RCC_CSR_IWDGRSTF_Pos (29U) | |
10893 #define RCC_CSR_IWDGRSTF_Msk (0x1U << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */ | |
10894 #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk | |
10895 #define RCC_CSR_WWDGRSTF_Pos (30U) | |
10896 #define RCC_CSR_WWDGRSTF_Msk (0x1U << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */ | |
10897 #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk | |
10898 #define RCC_CSR_LPWRRSTF_Pos (31U) | |
10899 #define RCC_CSR_LPWRRSTF_Msk (0x1U << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */ | |
10900 #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk | |
10901 | |
10902 /******************** Bit definition for RCC_CRRCR register *****************/ | |
10903 #define RCC_CRRCR_HSI48ON_Pos (0U) | |
10904 #define RCC_CRRCR_HSI48ON_Msk (0x1U << RCC_CRRCR_HSI48ON_Pos) /*!< 0x00000001 */ | |
10905 #define RCC_CRRCR_HSI48ON RCC_CRRCR_HSI48ON_Msk | |
10906 #define RCC_CRRCR_HSI48RDY_Pos (1U) | |
10907 #define RCC_CRRCR_HSI48RDY_Msk (0x1U << RCC_CRRCR_HSI48RDY_Pos) /*!< 0x00000002 */ | |
10908 #define RCC_CRRCR_HSI48RDY RCC_CRRCR_HSI48RDY_Msk | |
10909 | |
10910 /*!< HSI48CAL configuration */ | |
10911 #define RCC_CRRCR_HSI48CAL_Pos (15U) | |
10912 #define RCC_CRRCR_HSI48CAL_Msk (0x1FFU << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00FF8000 */ | |
10913 #define RCC_CRRCR_HSI48CAL RCC_CRRCR_HSI48CAL_Msk /*!< HSI48CAL[8:0] bits */ | |
10914 #define RCC_CRRCR_HSI48CAL_0 (0x000U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00001000 */ | |
10915 #define RCC_CRRCR_HSI48CAL_1 (0x002U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00010000 */ | |
10916 #define RCC_CRRCR_HSI48CAL_2 (0x004U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00020000 */ | |
10917 #define RCC_CRRCR_HSI48CAL_3 (0x008U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00040000 */ | |
10918 #define RCC_CRRCR_HSI48CAL_4 (0x010U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00080000 */ | |
10919 #define RCC_CRRCR_HSI48CAL_5 (0x020U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00100000 */ | |
10920 #define RCC_CRRCR_HSI48CAL_6 (0x040U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00200000 */ | |
10921 #define RCC_CRRCR_HSI48CAL_7 (0x080U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00400000 */ | |
10922 #define RCC_CRRCR_HSI48CAL_8 (0x100U << RCC_CRRCR_HSI48CAL_Pos) /*!< 0x00800000 */ | |
10923 | |
10924 /******************** Bit definition for RCC_CCIPR2 register ******************/ | |
10925 #define RCC_CCIPR2_I2C4SEL_Pos (0U) | |
10926 #define RCC_CCIPR2_I2C4SEL_Msk (0x3U << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000003 */ | |
10927 #define RCC_CCIPR2_I2C4SEL RCC_CCIPR2_I2C4SEL_Msk | |
10928 #define RCC_CCIPR2_I2C4SEL_0 (0x1U << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000001 */ | |
10929 #define RCC_CCIPR2_I2C4SEL_1 (0x2U << RCC_CCIPR2_I2C4SEL_Pos) /*!< 0x00000002 */ | |
10930 | |
10931 /******************************************************************************/ | |
10932 /* */ | |
10933 /* RNG */ | |
10934 /* */ | |
10935 /******************************************************************************/ | |
10936 /******************** Bits definition for RNG_CR register *******************/ | |
10937 #define RNG_CR_RNGEN_Pos (2U) | |
10938 #define RNG_CR_RNGEN_Msk (0x1U << RNG_CR_RNGEN_Pos) /*!< 0x00000004 */ | |
10939 #define RNG_CR_RNGEN RNG_CR_RNGEN_Msk | |
10940 #define RNG_CR_IE_Pos (3U) | |
10941 #define RNG_CR_IE_Msk (0x1U << RNG_CR_IE_Pos) /*!< 0x00000008 */ | |
10942 #define RNG_CR_IE RNG_CR_IE_Msk | |
10943 | |
10944 /******************** Bits definition for RNG_SR register *******************/ | |
10945 #define RNG_SR_DRDY_Pos (0U) | |
10946 #define RNG_SR_DRDY_Msk (0x1U << RNG_SR_DRDY_Pos) /*!< 0x00000001 */ | |
10947 #define RNG_SR_DRDY RNG_SR_DRDY_Msk | |
10948 #define RNG_SR_CECS_Pos (1U) | |
10949 #define RNG_SR_CECS_Msk (0x1U << RNG_SR_CECS_Pos) /*!< 0x00000002 */ | |
10950 #define RNG_SR_CECS RNG_SR_CECS_Msk | |
10951 #define RNG_SR_SECS_Pos (2U) | |
10952 #define RNG_SR_SECS_Msk (0x1U << RNG_SR_SECS_Pos) /*!< 0x00000004 */ | |
10953 #define RNG_SR_SECS RNG_SR_SECS_Msk | |
10954 #define RNG_SR_CEIS_Pos (5U) | |
10955 #define RNG_SR_CEIS_Msk (0x1U << RNG_SR_CEIS_Pos) /*!< 0x00000020 */ | |
10956 #define RNG_SR_CEIS RNG_SR_CEIS_Msk | |
10957 #define RNG_SR_SEIS_Pos (6U) | |
10958 #define RNG_SR_SEIS_Msk (0x1U << RNG_SR_SEIS_Pos) /*!< 0x00000040 */ | |
10959 #define RNG_SR_SEIS RNG_SR_SEIS_Msk | |
10960 | |
10961 /******************************************************************************/ | |
10962 /* */ | |
10963 /* Real-Time Clock (RTC) */ | |
10964 /* */ | |
10965 /******************************************************************************/ | |
10966 /* | |
10967 * @brief Specific device feature definitions | |
10968 */ | |
10969 #define RTC_TAMPER1_SUPPORT | |
10970 #define RTC_TAMPER2_SUPPORT | |
10971 #define RTC_TAMPER3_SUPPORT | |
10972 #define RTC_WAKEUP_SUPPORT | |
10973 #define RTC_BACKUP_SUPPORT | |
10974 | |
10975 /******************** Bits definition for RTC_TR register *******************/ | |
10976 #define RTC_TR_PM_Pos (22U) | |
10977 #define RTC_TR_PM_Msk (0x1U << RTC_TR_PM_Pos) /*!< 0x00400000 */ | |
10978 #define RTC_TR_PM RTC_TR_PM_Msk | |
10979 #define RTC_TR_HT_Pos (20U) | |
10980 #define RTC_TR_HT_Msk (0x3U << RTC_TR_HT_Pos) /*!< 0x00300000 */ | |
10981 #define RTC_TR_HT RTC_TR_HT_Msk | |
10982 #define RTC_TR_HT_0 (0x1U << RTC_TR_HT_Pos) /*!< 0x00100000 */ | |
10983 #define RTC_TR_HT_1 (0x2U << RTC_TR_HT_Pos) /*!< 0x00200000 */ | |
10984 #define RTC_TR_HU_Pos (16U) | |
10985 #define RTC_TR_HU_Msk (0xFU << RTC_TR_HU_Pos) /*!< 0x000F0000 */ | |
10986 #define RTC_TR_HU RTC_TR_HU_Msk | |
10987 #define RTC_TR_HU_0 (0x1U << RTC_TR_HU_Pos) /*!< 0x00010000 */ | |
10988 #define RTC_TR_HU_1 (0x2U << RTC_TR_HU_Pos) /*!< 0x00020000 */ | |
10989 #define RTC_TR_HU_2 (0x4U << RTC_TR_HU_Pos) /*!< 0x00040000 */ | |
10990 #define RTC_TR_HU_3 (0x8U << RTC_TR_HU_Pos) /*!< 0x00080000 */ | |
10991 #define RTC_TR_MNT_Pos (12U) | |
10992 #define RTC_TR_MNT_Msk (0x7U << RTC_TR_MNT_Pos) /*!< 0x00007000 */ | |
10993 #define RTC_TR_MNT RTC_TR_MNT_Msk | |
10994 #define RTC_TR_MNT_0 (0x1U << RTC_TR_MNT_Pos) /*!< 0x00001000 */ | |
10995 #define RTC_TR_MNT_1 (0x2U << RTC_TR_MNT_Pos) /*!< 0x00002000 */ | |
10996 #define RTC_TR_MNT_2 (0x4U << RTC_TR_MNT_Pos) /*!< 0x00004000 */ | |
10997 #define RTC_TR_MNU_Pos (8U) | |
10998 #define RTC_TR_MNU_Msk (0xFU << RTC_TR_MNU_Pos) /*!< 0x00000F00 */ | |
10999 #define RTC_TR_MNU RTC_TR_MNU_Msk | |
11000 #define RTC_TR_MNU_0 (0x1U << RTC_TR_MNU_Pos) /*!< 0x00000100 */ | |
11001 #define RTC_TR_MNU_1 (0x2U << RTC_TR_MNU_Pos) /*!< 0x00000200 */ | |
11002 #define RTC_TR_MNU_2 (0x4U << RTC_TR_MNU_Pos) /*!< 0x00000400 */ | |
11003 #define RTC_TR_MNU_3 (0x8U << RTC_TR_MNU_Pos) /*!< 0x00000800 */ | |
11004 #define RTC_TR_ST_Pos (4U) | |
11005 #define RTC_TR_ST_Msk (0x7U << RTC_TR_ST_Pos) /*!< 0x00000070 */ | |
11006 #define RTC_TR_ST RTC_TR_ST_Msk | |
11007 #define RTC_TR_ST_0 (0x1U << RTC_TR_ST_Pos) /*!< 0x00000010 */ | |
11008 #define RTC_TR_ST_1 (0x2U << RTC_TR_ST_Pos) /*!< 0x00000020 */ | |
11009 #define RTC_TR_ST_2 (0x4U << RTC_TR_ST_Pos) /*!< 0x00000040 */ | |
11010 #define RTC_TR_SU_Pos (0U) | |
11011 #define RTC_TR_SU_Msk (0xFU << RTC_TR_SU_Pos) /*!< 0x0000000F */ | |
11012 #define RTC_TR_SU RTC_TR_SU_Msk | |
11013 #define RTC_TR_SU_0 (0x1U << RTC_TR_SU_Pos) /*!< 0x00000001 */ | |
11014 #define RTC_TR_SU_1 (0x2U << RTC_TR_SU_Pos) /*!< 0x00000002 */ | |
11015 #define RTC_TR_SU_2 (0x4U << RTC_TR_SU_Pos) /*!< 0x00000004 */ | |
11016 #define RTC_TR_SU_3 (0x8U << RTC_TR_SU_Pos) /*!< 0x00000008 */ | |
11017 | |
11018 /******************** Bits definition for RTC_DR register *******************/ | |
11019 #define RTC_DR_YT_Pos (20U) | |
11020 #define RTC_DR_YT_Msk (0xFU << RTC_DR_YT_Pos) /*!< 0x00F00000 */ | |
11021 #define RTC_DR_YT RTC_DR_YT_Msk | |
11022 #define RTC_DR_YT_0 (0x1U << RTC_DR_YT_Pos) /*!< 0x00100000 */ | |
11023 #define RTC_DR_YT_1 (0x2U << RTC_DR_YT_Pos) /*!< 0x00200000 */ | |
11024 #define RTC_DR_YT_2 (0x4U << RTC_DR_YT_Pos) /*!< 0x00400000 */ | |
11025 #define RTC_DR_YT_3 (0x8U << RTC_DR_YT_Pos) /*!< 0x00800000 */ | |
11026 #define RTC_DR_YU_Pos (16U) | |
11027 #define RTC_DR_YU_Msk (0xFU << RTC_DR_YU_Pos) /*!< 0x000F0000 */ | |
11028 #define RTC_DR_YU RTC_DR_YU_Msk | |
11029 #define RTC_DR_YU_0 (0x1U << RTC_DR_YU_Pos) /*!< 0x00010000 */ | |
11030 #define RTC_DR_YU_1 (0x2U << RTC_DR_YU_Pos) /*!< 0x00020000 */ | |
11031 #define RTC_DR_YU_2 (0x4U << RTC_DR_YU_Pos) /*!< 0x00040000 */ | |
11032 #define RTC_DR_YU_3 (0x8U << RTC_DR_YU_Pos) /*!< 0x00080000 */ | |
11033 #define RTC_DR_WDU_Pos (13U) | |
11034 #define RTC_DR_WDU_Msk (0x7U << RTC_DR_WDU_Pos) /*!< 0x0000E000 */ | |
11035 #define RTC_DR_WDU RTC_DR_WDU_Msk | |
11036 #define RTC_DR_WDU_0 (0x1U << RTC_DR_WDU_Pos) /*!< 0x00002000 */ | |
11037 #define RTC_DR_WDU_1 (0x2U << RTC_DR_WDU_Pos) /*!< 0x00004000 */ | |
11038 #define RTC_DR_WDU_2 (0x4U << RTC_DR_WDU_Pos) /*!< 0x00008000 */ | |
11039 #define RTC_DR_MT_Pos (12U) | |
11040 #define RTC_DR_MT_Msk (0x1U << RTC_DR_MT_Pos) /*!< 0x00001000 */ | |
11041 #define RTC_DR_MT RTC_DR_MT_Msk | |
11042 #define RTC_DR_MU_Pos (8U) | |
11043 #define RTC_DR_MU_Msk (0xFU << RTC_DR_MU_Pos) /*!< 0x00000F00 */ | |
11044 #define RTC_DR_MU RTC_DR_MU_Msk | |
11045 #define RTC_DR_MU_0 (0x1U << RTC_DR_MU_Pos) /*!< 0x00000100 */ | |
11046 #define RTC_DR_MU_1 (0x2U << RTC_DR_MU_Pos) /*!< 0x00000200 */ | |
11047 #define RTC_DR_MU_2 (0x4U << RTC_DR_MU_Pos) /*!< 0x00000400 */ | |
11048 #define RTC_DR_MU_3 (0x8U << RTC_DR_MU_Pos) /*!< 0x00000800 */ | |
11049 #define RTC_DR_DT_Pos (4U) | |
11050 #define RTC_DR_DT_Msk (0x3U << RTC_DR_DT_Pos) /*!< 0x00000030 */ | |
11051 #define RTC_DR_DT RTC_DR_DT_Msk | |
11052 #define RTC_DR_DT_0 (0x1U << RTC_DR_DT_Pos) /*!< 0x00000010 */ | |
11053 #define RTC_DR_DT_1 (0x2U << RTC_DR_DT_Pos) /*!< 0x00000020 */ | |
11054 #define RTC_DR_DU_Pos (0U) | |
11055 #define RTC_DR_DU_Msk (0xFU << RTC_DR_DU_Pos) /*!< 0x0000000F */ | |
11056 #define RTC_DR_DU RTC_DR_DU_Msk | |
11057 #define RTC_DR_DU_0 (0x1U << RTC_DR_DU_Pos) /*!< 0x00000001 */ | |
11058 #define RTC_DR_DU_1 (0x2U << RTC_DR_DU_Pos) /*!< 0x00000002 */ | |
11059 #define RTC_DR_DU_2 (0x4U << RTC_DR_DU_Pos) /*!< 0x00000004 */ | |
11060 #define RTC_DR_DU_3 (0x8U << RTC_DR_DU_Pos) /*!< 0x00000008 */ | |
11061 | |
11062 /******************** Bits definition for RTC_CR register *******************/ | |
11063 #define RTC_CR_ITSE_Pos (24U) | |
11064 #define RTC_CR_ITSE_Msk (0x1U << RTC_CR_ITSE_Pos) /*!< 0x01000000 */ | |
11065 #define RTC_CR_ITSE RTC_CR_ITSE_Msk | |
11066 #define RTC_CR_COE_Pos (23U) | |
11067 #define RTC_CR_COE_Msk (0x1U << RTC_CR_COE_Pos) /*!< 0x00800000 */ | |
11068 #define RTC_CR_COE RTC_CR_COE_Msk | |
11069 #define RTC_CR_OSEL_Pos (21U) | |
11070 #define RTC_CR_OSEL_Msk (0x3U << RTC_CR_OSEL_Pos) /*!< 0x00600000 */ | |
11071 #define RTC_CR_OSEL RTC_CR_OSEL_Msk | |
11072 #define RTC_CR_OSEL_0 (0x1U << RTC_CR_OSEL_Pos) /*!< 0x00200000 */ | |
11073 #define RTC_CR_OSEL_1 (0x2U << RTC_CR_OSEL_Pos) /*!< 0x00400000 */ | |
11074 #define RTC_CR_POL_Pos (20U) | |
11075 #define RTC_CR_POL_Msk (0x1U << RTC_CR_POL_Pos) /*!< 0x00100000 */ | |
11076 #define RTC_CR_POL RTC_CR_POL_Msk | |
11077 #define RTC_CR_COSEL_Pos (19U) | |
11078 #define RTC_CR_COSEL_Msk (0x1U << RTC_CR_COSEL_Pos) /*!< 0x00080000 */ | |
11079 #define RTC_CR_COSEL RTC_CR_COSEL_Msk | |
11080 #define RTC_CR_BCK_Pos (18U) | |
11081 #define RTC_CR_BCK_Msk (0x1U << RTC_CR_BCK_Pos) /*!< 0x00040000 */ | |
11082 #define RTC_CR_BCK RTC_CR_BCK_Msk | |
11083 #define RTC_CR_SUB1H_Pos (17U) | |
11084 #define RTC_CR_SUB1H_Msk (0x1U << RTC_CR_SUB1H_Pos) /*!< 0x00020000 */ | |
11085 #define RTC_CR_SUB1H RTC_CR_SUB1H_Msk | |
11086 #define RTC_CR_ADD1H_Pos (16U) | |
11087 #define RTC_CR_ADD1H_Msk (0x1U << RTC_CR_ADD1H_Pos) /*!< 0x00010000 */ | |
11088 #define RTC_CR_ADD1H RTC_CR_ADD1H_Msk | |
11089 #define RTC_CR_TSIE_Pos (15U) | |
11090 #define RTC_CR_TSIE_Msk (0x1U << RTC_CR_TSIE_Pos) /*!< 0x00008000 */ | |
11091 #define RTC_CR_TSIE RTC_CR_TSIE_Msk | |
11092 #define RTC_CR_WUTIE_Pos (14U) | |
11093 #define RTC_CR_WUTIE_Msk (0x1U << RTC_CR_WUTIE_Pos) /*!< 0x00004000 */ | |
11094 #define RTC_CR_WUTIE RTC_CR_WUTIE_Msk | |
11095 #define RTC_CR_ALRBIE_Pos (13U) | |
11096 #define RTC_CR_ALRBIE_Msk (0x1U << RTC_CR_ALRBIE_Pos) /*!< 0x00002000 */ | |
11097 #define RTC_CR_ALRBIE RTC_CR_ALRBIE_Msk | |
11098 #define RTC_CR_ALRAIE_Pos (12U) | |
11099 #define RTC_CR_ALRAIE_Msk (0x1U << RTC_CR_ALRAIE_Pos) /*!< 0x00001000 */ | |
11100 #define RTC_CR_ALRAIE RTC_CR_ALRAIE_Msk | |
11101 #define RTC_CR_TSE_Pos (11U) | |
11102 #define RTC_CR_TSE_Msk (0x1U << RTC_CR_TSE_Pos) /*!< 0x00000800 */ | |
11103 #define RTC_CR_TSE RTC_CR_TSE_Msk | |
11104 #define RTC_CR_WUTE_Pos (10U) | |
11105 #define RTC_CR_WUTE_Msk (0x1U << RTC_CR_WUTE_Pos) /*!< 0x00000400 */ | |
11106 #define RTC_CR_WUTE RTC_CR_WUTE_Msk | |
11107 #define RTC_CR_ALRBE_Pos (9U) | |
11108 #define RTC_CR_ALRBE_Msk (0x1U << RTC_CR_ALRBE_Pos) /*!< 0x00000200 */ | |
11109 #define RTC_CR_ALRBE RTC_CR_ALRBE_Msk | |
11110 #define RTC_CR_ALRAE_Pos (8U) | |
11111 #define RTC_CR_ALRAE_Msk (0x1U << RTC_CR_ALRAE_Pos) /*!< 0x00000100 */ | |
11112 #define RTC_CR_ALRAE RTC_CR_ALRAE_Msk | |
11113 #define RTC_CR_FMT_Pos (6U) | |
11114 #define RTC_CR_FMT_Msk (0x1U << RTC_CR_FMT_Pos) /*!< 0x00000040 */ | |
11115 #define RTC_CR_FMT RTC_CR_FMT_Msk | |
11116 #define RTC_CR_BYPSHAD_Pos (5U) | |
11117 #define RTC_CR_BYPSHAD_Msk (0x1U << RTC_CR_BYPSHAD_Pos) /*!< 0x00000020 */ | |
11118 #define RTC_CR_BYPSHAD RTC_CR_BYPSHAD_Msk | |
11119 #define RTC_CR_REFCKON_Pos (4U) | |
11120 #define RTC_CR_REFCKON_Msk (0x1U << RTC_CR_REFCKON_Pos) /*!< 0x00000010 */ | |
11121 #define RTC_CR_REFCKON RTC_CR_REFCKON_Msk | |
11122 #define RTC_CR_TSEDGE_Pos (3U) | |
11123 #define RTC_CR_TSEDGE_Msk (0x1U << RTC_CR_TSEDGE_Pos) /*!< 0x00000008 */ | |
11124 #define RTC_CR_TSEDGE RTC_CR_TSEDGE_Msk | |
11125 #define RTC_CR_WUCKSEL_Pos (0U) | |
11126 #define RTC_CR_WUCKSEL_Msk (0x7U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000007 */ | |
11127 #define RTC_CR_WUCKSEL RTC_CR_WUCKSEL_Msk | |
11128 #define RTC_CR_WUCKSEL_0 (0x1U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000001 */ | |
11129 #define RTC_CR_WUCKSEL_1 (0x2U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000002 */ | |
11130 #define RTC_CR_WUCKSEL_2 (0x4U << RTC_CR_WUCKSEL_Pos) /*!< 0x00000004 */ | |
11131 | |
11132 /******************** Bits definition for RTC_ISR register ******************/ | |
11133 #define RTC_ISR_ITSF_Pos (17U) | |
11134 #define RTC_ISR_ITSF_Msk (0x1U << RTC_ISR_ITSF_Pos) /*!< 0x00020000 */ | |
11135 #define RTC_ISR_ITSF RTC_ISR_ITSF_Msk | |
11136 #define RTC_ISR_RECALPF_Pos (16U) | |
11137 #define RTC_ISR_RECALPF_Msk (0x1U << RTC_ISR_RECALPF_Pos) /*!< 0x00010000 */ | |
11138 #define RTC_ISR_RECALPF RTC_ISR_RECALPF_Msk | |
11139 #define RTC_ISR_TAMP3F_Pos (15U) | |
11140 #define RTC_ISR_TAMP3F_Msk (0x1U << RTC_ISR_TAMP3F_Pos) /*!< 0x00008000 */ | |
11141 #define RTC_ISR_TAMP3F RTC_ISR_TAMP3F_Msk | |
11142 #define RTC_ISR_TAMP2F_Pos (14U) | |
11143 #define RTC_ISR_TAMP2F_Msk (0x1U << RTC_ISR_TAMP2F_Pos) /*!< 0x00004000 */ | |
11144 #define RTC_ISR_TAMP2F RTC_ISR_TAMP2F_Msk | |
11145 #define RTC_ISR_TAMP1F_Pos (13U) | |
11146 #define RTC_ISR_TAMP1F_Msk (0x1U << RTC_ISR_TAMP1F_Pos) /*!< 0x00002000 */ | |
11147 #define RTC_ISR_TAMP1F RTC_ISR_TAMP1F_Msk | |
11148 #define RTC_ISR_TSOVF_Pos (12U) | |
11149 #define RTC_ISR_TSOVF_Msk (0x1U << RTC_ISR_TSOVF_Pos) /*!< 0x00001000 */ | |
11150 #define RTC_ISR_TSOVF RTC_ISR_TSOVF_Msk | |
11151 #define RTC_ISR_TSF_Pos (11U) | |
11152 #define RTC_ISR_TSF_Msk (0x1U << RTC_ISR_TSF_Pos) /*!< 0x00000800 */ | |
11153 #define RTC_ISR_TSF RTC_ISR_TSF_Msk | |
11154 #define RTC_ISR_WUTF_Pos (10U) | |
11155 #define RTC_ISR_WUTF_Msk (0x1U << RTC_ISR_WUTF_Pos) /*!< 0x00000400 */ | |
11156 #define RTC_ISR_WUTF RTC_ISR_WUTF_Msk | |
11157 #define RTC_ISR_ALRBF_Pos (9U) | |
11158 #define RTC_ISR_ALRBF_Msk (0x1U << RTC_ISR_ALRBF_Pos) /*!< 0x00000200 */ | |
11159 #define RTC_ISR_ALRBF RTC_ISR_ALRBF_Msk | |
11160 #define RTC_ISR_ALRAF_Pos (8U) | |
11161 #define RTC_ISR_ALRAF_Msk (0x1U << RTC_ISR_ALRAF_Pos) /*!< 0x00000100 */ | |
11162 #define RTC_ISR_ALRAF RTC_ISR_ALRAF_Msk | |
11163 #define RTC_ISR_INIT_Pos (7U) | |
11164 #define RTC_ISR_INIT_Msk (0x1U << RTC_ISR_INIT_Pos) /*!< 0x00000080 */ | |
11165 #define RTC_ISR_INIT RTC_ISR_INIT_Msk | |
11166 #define RTC_ISR_INITF_Pos (6U) | |
11167 #define RTC_ISR_INITF_Msk (0x1U << RTC_ISR_INITF_Pos) /*!< 0x00000040 */ | |
11168 #define RTC_ISR_INITF RTC_ISR_INITF_Msk | |
11169 #define RTC_ISR_RSF_Pos (5U) | |
11170 #define RTC_ISR_RSF_Msk (0x1U << RTC_ISR_RSF_Pos) /*!< 0x00000020 */ | |
11171 #define RTC_ISR_RSF RTC_ISR_RSF_Msk | |
11172 #define RTC_ISR_INITS_Pos (4U) | |
11173 #define RTC_ISR_INITS_Msk (0x1U << RTC_ISR_INITS_Pos) /*!< 0x00000010 */ | |
11174 #define RTC_ISR_INITS RTC_ISR_INITS_Msk | |
11175 #define RTC_ISR_SHPF_Pos (3U) | |
11176 #define RTC_ISR_SHPF_Msk (0x1U << RTC_ISR_SHPF_Pos) /*!< 0x00000008 */ | |
11177 #define RTC_ISR_SHPF RTC_ISR_SHPF_Msk | |
11178 #define RTC_ISR_WUTWF_Pos (2U) | |
11179 #define RTC_ISR_WUTWF_Msk (0x1U << RTC_ISR_WUTWF_Pos) /*!< 0x00000004 */ | |
11180 #define RTC_ISR_WUTWF RTC_ISR_WUTWF_Msk | |
11181 #define RTC_ISR_ALRBWF_Pos (1U) | |
11182 #define RTC_ISR_ALRBWF_Msk (0x1U << RTC_ISR_ALRBWF_Pos) /*!< 0x00000002 */ | |
11183 #define RTC_ISR_ALRBWF RTC_ISR_ALRBWF_Msk | |
11184 #define RTC_ISR_ALRAWF_Pos (0U) | |
11185 #define RTC_ISR_ALRAWF_Msk (0x1U << RTC_ISR_ALRAWF_Pos) /*!< 0x00000001 */ | |
11186 #define RTC_ISR_ALRAWF RTC_ISR_ALRAWF_Msk | |
11187 | |
11188 /******************** Bits definition for RTC_PRER register *****************/ | |
11189 #define RTC_PRER_PREDIV_A_Pos (16U) | |
11190 #define RTC_PRER_PREDIV_A_Msk (0x7FU << RTC_PRER_PREDIV_A_Pos) /*!< 0x007F0000 */ | |
11191 #define RTC_PRER_PREDIV_A RTC_PRER_PREDIV_A_Msk | |
11192 #define RTC_PRER_PREDIV_S_Pos (0U) | |
11193 #define RTC_PRER_PREDIV_S_Msk (0x7FFFU << RTC_PRER_PREDIV_S_Pos) /*!< 0x00007FFF */ | |
11194 #define RTC_PRER_PREDIV_S RTC_PRER_PREDIV_S_Msk | |
11195 | |
11196 /******************** Bits definition for RTC_WUTR register *****************/ | |
11197 #define RTC_WUTR_WUT_Pos (0U) | |
11198 #define RTC_WUTR_WUT_Msk (0xFFFFU << RTC_WUTR_WUT_Pos) /*!< 0x0000FFFF */ | |
11199 #define RTC_WUTR_WUT RTC_WUTR_WUT_Msk | |
11200 | |
11201 /******************** Bits definition for RTC_ALRMAR register ***************/ | |
11202 #define RTC_ALRMAR_MSK4_Pos (31U) | |
11203 #define RTC_ALRMAR_MSK4_Msk (0x1U << RTC_ALRMAR_MSK4_Pos) /*!< 0x80000000 */ | |
11204 #define RTC_ALRMAR_MSK4 RTC_ALRMAR_MSK4_Msk | |
11205 #define RTC_ALRMAR_WDSEL_Pos (30U) | |
11206 #define RTC_ALRMAR_WDSEL_Msk (0x1U << RTC_ALRMAR_WDSEL_Pos) /*!< 0x40000000 */ | |
11207 #define RTC_ALRMAR_WDSEL RTC_ALRMAR_WDSEL_Msk | |
11208 #define RTC_ALRMAR_DT_Pos (28U) | |
11209 #define RTC_ALRMAR_DT_Msk (0x3U << RTC_ALRMAR_DT_Pos) /*!< 0x30000000 */ | |
11210 #define RTC_ALRMAR_DT RTC_ALRMAR_DT_Msk | |
11211 #define RTC_ALRMAR_DT_0 (0x1U << RTC_ALRMAR_DT_Pos) /*!< 0x10000000 */ | |
11212 #define RTC_ALRMAR_DT_1 (0x2U << RTC_ALRMAR_DT_Pos) /*!< 0x20000000 */ | |
11213 #define RTC_ALRMAR_DU_Pos (24U) | |
11214 #define RTC_ALRMAR_DU_Msk (0xFU << RTC_ALRMAR_DU_Pos) /*!< 0x0F000000 */ | |
11215 #define RTC_ALRMAR_DU RTC_ALRMAR_DU_Msk | |
11216 #define RTC_ALRMAR_DU_0 (0x1U << RTC_ALRMAR_DU_Pos) /*!< 0x01000000 */ | |
11217 #define RTC_ALRMAR_DU_1 (0x2U << RTC_ALRMAR_DU_Pos) /*!< 0x02000000 */ | |
11218 #define RTC_ALRMAR_DU_2 (0x4U << RTC_ALRMAR_DU_Pos) /*!< 0x04000000 */ | |
11219 #define RTC_ALRMAR_DU_3 (0x8U << RTC_ALRMAR_DU_Pos) /*!< 0x08000000 */ | |
11220 #define RTC_ALRMAR_MSK3_Pos (23U) | |
11221 #define RTC_ALRMAR_MSK3_Msk (0x1U << RTC_ALRMAR_MSK3_Pos) /*!< 0x00800000 */ | |
11222 #define RTC_ALRMAR_MSK3 RTC_ALRMAR_MSK3_Msk | |
11223 #define RTC_ALRMAR_PM_Pos (22U) | |
11224 #define RTC_ALRMAR_PM_Msk (0x1U << RTC_ALRMAR_PM_Pos) /*!< 0x00400000 */ | |
11225 #define RTC_ALRMAR_PM RTC_ALRMAR_PM_Msk | |
11226 #define RTC_ALRMAR_HT_Pos (20U) | |
11227 #define RTC_ALRMAR_HT_Msk (0x3U << RTC_ALRMAR_HT_Pos) /*!< 0x00300000 */ | |
11228 #define RTC_ALRMAR_HT RTC_ALRMAR_HT_Msk | |
11229 #define RTC_ALRMAR_HT_0 (0x1U << RTC_ALRMAR_HT_Pos) /*!< 0x00100000 */ | |
11230 #define RTC_ALRMAR_HT_1 (0x2U << RTC_ALRMAR_HT_Pos) /*!< 0x00200000 */ | |
11231 #define RTC_ALRMAR_HU_Pos (16U) | |
11232 #define RTC_ALRMAR_HU_Msk (0xFU << RTC_ALRMAR_HU_Pos) /*!< 0x000F0000 */ | |
11233 #define RTC_ALRMAR_HU RTC_ALRMAR_HU_Msk | |
11234 #define RTC_ALRMAR_HU_0 (0x1U << RTC_ALRMAR_HU_Pos) /*!< 0x00010000 */ | |
11235 #define RTC_ALRMAR_HU_1 (0x2U << RTC_ALRMAR_HU_Pos) /*!< 0x00020000 */ | |
11236 #define RTC_ALRMAR_HU_2 (0x4U << RTC_ALRMAR_HU_Pos) /*!< 0x00040000 */ | |
11237 #define RTC_ALRMAR_HU_3 (0x8U << RTC_ALRMAR_HU_Pos) /*!< 0x00080000 */ | |
11238 #define RTC_ALRMAR_MSK2_Pos (15U) | |
11239 #define RTC_ALRMAR_MSK2_Msk (0x1U << RTC_ALRMAR_MSK2_Pos) /*!< 0x00008000 */ | |
11240 #define RTC_ALRMAR_MSK2 RTC_ALRMAR_MSK2_Msk | |
11241 #define RTC_ALRMAR_MNT_Pos (12U) | |
11242 #define RTC_ALRMAR_MNT_Msk (0x7U << RTC_ALRMAR_MNT_Pos) /*!< 0x00007000 */ | |
11243 #define RTC_ALRMAR_MNT RTC_ALRMAR_MNT_Msk | |
11244 #define RTC_ALRMAR_MNT_0 (0x1U << RTC_ALRMAR_MNT_Pos) /*!< 0x00001000 */ | |
11245 #define RTC_ALRMAR_MNT_1 (0x2U << RTC_ALRMAR_MNT_Pos) /*!< 0x00002000 */ | |
11246 #define RTC_ALRMAR_MNT_2 (0x4U << RTC_ALRMAR_MNT_Pos) /*!< 0x00004000 */ | |
11247 #define RTC_ALRMAR_MNU_Pos (8U) | |
11248 #define RTC_ALRMAR_MNU_Msk (0xFU << RTC_ALRMAR_MNU_Pos) /*!< 0x00000F00 */ | |
11249 #define RTC_ALRMAR_MNU RTC_ALRMAR_MNU_Msk | |
11250 #define RTC_ALRMAR_MNU_0 (0x1U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000100 */ | |
11251 #define RTC_ALRMAR_MNU_1 (0x2U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000200 */ | |
11252 #define RTC_ALRMAR_MNU_2 (0x4U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000400 */ | |
11253 #define RTC_ALRMAR_MNU_3 (0x8U << RTC_ALRMAR_MNU_Pos) /*!< 0x00000800 */ | |
11254 #define RTC_ALRMAR_MSK1_Pos (7U) | |
11255 #define RTC_ALRMAR_MSK1_Msk (0x1U << RTC_ALRMAR_MSK1_Pos) /*!< 0x00000080 */ | |
11256 #define RTC_ALRMAR_MSK1 RTC_ALRMAR_MSK1_Msk | |
11257 #define RTC_ALRMAR_ST_Pos (4U) | |
11258 #define RTC_ALRMAR_ST_Msk (0x7U << RTC_ALRMAR_ST_Pos) /*!< 0x00000070 */ | |
11259 #define RTC_ALRMAR_ST RTC_ALRMAR_ST_Msk | |
11260 #define RTC_ALRMAR_ST_0 (0x1U << RTC_ALRMAR_ST_Pos) /*!< 0x00000010 */ | |
11261 #define RTC_ALRMAR_ST_1 (0x2U << RTC_ALRMAR_ST_Pos) /*!< 0x00000020 */ | |
11262 #define RTC_ALRMAR_ST_2 (0x4U << RTC_ALRMAR_ST_Pos) /*!< 0x00000040 */ | |
11263 #define RTC_ALRMAR_SU_Pos (0U) | |
11264 #define RTC_ALRMAR_SU_Msk (0xFU << RTC_ALRMAR_SU_Pos) /*!< 0x0000000F */ | |
11265 #define RTC_ALRMAR_SU RTC_ALRMAR_SU_Msk | |
11266 #define RTC_ALRMAR_SU_0 (0x1U << RTC_ALRMAR_SU_Pos) /*!< 0x00000001 */ | |
11267 #define RTC_ALRMAR_SU_1 (0x2U << RTC_ALRMAR_SU_Pos) /*!< 0x00000002 */ | |
11268 #define RTC_ALRMAR_SU_2 (0x4U << RTC_ALRMAR_SU_Pos) /*!< 0x00000004 */ | |
11269 #define RTC_ALRMAR_SU_3 (0x8U << RTC_ALRMAR_SU_Pos) /*!< 0x00000008 */ | |
11270 | |
11271 /******************** Bits definition for RTC_ALRMBR register ***************/ | |
11272 #define RTC_ALRMBR_MSK4_Pos (31U) | |
11273 #define RTC_ALRMBR_MSK4_Msk (0x1U << RTC_ALRMBR_MSK4_Pos) /*!< 0x80000000 */ | |
11274 #define RTC_ALRMBR_MSK4 RTC_ALRMBR_MSK4_Msk | |
11275 #define RTC_ALRMBR_WDSEL_Pos (30U) | |
11276 #define RTC_ALRMBR_WDSEL_Msk (0x1U << RTC_ALRMBR_WDSEL_Pos) /*!< 0x40000000 */ | |
11277 #define RTC_ALRMBR_WDSEL RTC_ALRMBR_WDSEL_Msk | |
11278 #define RTC_ALRMBR_DT_Pos (28U) | |
11279 #define RTC_ALRMBR_DT_Msk (0x3U << RTC_ALRMBR_DT_Pos) /*!< 0x30000000 */ | |
11280 #define RTC_ALRMBR_DT RTC_ALRMBR_DT_Msk | |
11281 #define RTC_ALRMBR_DT_0 (0x1U << RTC_ALRMBR_DT_Pos) /*!< 0x10000000 */ | |
11282 #define RTC_ALRMBR_DT_1 (0x2U << RTC_ALRMBR_DT_Pos) /*!< 0x20000000 */ | |
11283 #define RTC_ALRMBR_DU_Pos (24U) | |
11284 #define RTC_ALRMBR_DU_Msk (0xFU << RTC_ALRMBR_DU_Pos) /*!< 0x0F000000 */ | |
11285 #define RTC_ALRMBR_DU RTC_ALRMBR_DU_Msk | |
11286 #define RTC_ALRMBR_DU_0 (0x1U << RTC_ALRMBR_DU_Pos) /*!< 0x01000000 */ | |
11287 #define RTC_ALRMBR_DU_1 (0x2U << RTC_ALRMBR_DU_Pos) /*!< 0x02000000 */ | |
11288 #define RTC_ALRMBR_DU_2 (0x4U << RTC_ALRMBR_DU_Pos) /*!< 0x04000000 */ | |
11289 #define RTC_ALRMBR_DU_3 (0x8U << RTC_ALRMBR_DU_Pos) /*!< 0x08000000 */ | |
11290 #define RTC_ALRMBR_MSK3_Pos (23U) | |
11291 #define RTC_ALRMBR_MSK3_Msk (0x1U << RTC_ALRMBR_MSK3_Pos) /*!< 0x00800000 */ | |
11292 #define RTC_ALRMBR_MSK3 RTC_ALRMBR_MSK3_Msk | |
11293 #define RTC_ALRMBR_PM_Pos (22U) | |
11294 #define RTC_ALRMBR_PM_Msk (0x1U << RTC_ALRMBR_PM_Pos) /*!< 0x00400000 */ | |
11295 #define RTC_ALRMBR_PM RTC_ALRMBR_PM_Msk | |
11296 #define RTC_ALRMBR_HT_Pos (20U) | |
11297 #define RTC_ALRMBR_HT_Msk (0x3U << RTC_ALRMBR_HT_Pos) /*!< 0x00300000 */ | |
11298 #define RTC_ALRMBR_HT RTC_ALRMBR_HT_Msk | |
11299 #define RTC_ALRMBR_HT_0 (0x1U << RTC_ALRMBR_HT_Pos) /*!< 0x00100000 */ | |
11300 #define RTC_ALRMBR_HT_1 (0x2U << RTC_ALRMBR_HT_Pos) /*!< 0x00200000 */ | |
11301 #define RTC_ALRMBR_HU_Pos (16U) | |
11302 #define RTC_ALRMBR_HU_Msk (0xFU << RTC_ALRMBR_HU_Pos) /*!< 0x000F0000 */ | |
11303 #define RTC_ALRMBR_HU RTC_ALRMBR_HU_Msk | |
11304 #define RTC_ALRMBR_HU_0 (0x1U << RTC_ALRMBR_HU_Pos) /*!< 0x00010000 */ | |
11305 #define RTC_ALRMBR_HU_1 (0x2U << RTC_ALRMBR_HU_Pos) /*!< 0x00020000 */ | |
11306 #define RTC_ALRMBR_HU_2 (0x4U << RTC_ALRMBR_HU_Pos) /*!< 0x00040000 */ | |
11307 #define RTC_ALRMBR_HU_3 (0x8U << RTC_ALRMBR_HU_Pos) /*!< 0x00080000 */ | |
11308 #define RTC_ALRMBR_MSK2_Pos (15U) | |
11309 #define RTC_ALRMBR_MSK2_Msk (0x1U << RTC_ALRMBR_MSK2_Pos) /*!< 0x00008000 */ | |
11310 #define RTC_ALRMBR_MSK2 RTC_ALRMBR_MSK2_Msk | |
11311 #define RTC_ALRMBR_MNT_Pos (12U) | |
11312 #define RTC_ALRMBR_MNT_Msk (0x7U << RTC_ALRMBR_MNT_Pos) /*!< 0x00007000 */ | |
11313 #define RTC_ALRMBR_MNT RTC_ALRMBR_MNT_Msk | |
11314 #define RTC_ALRMBR_MNT_0 (0x1U << RTC_ALRMBR_MNT_Pos) /*!< 0x00001000 */ | |
11315 #define RTC_ALRMBR_MNT_1 (0x2U << RTC_ALRMBR_MNT_Pos) /*!< 0x00002000 */ | |
11316 #define RTC_ALRMBR_MNT_2 (0x4U << RTC_ALRMBR_MNT_Pos) /*!< 0x00004000 */ | |
11317 #define RTC_ALRMBR_MNU_Pos (8U) | |
11318 #define RTC_ALRMBR_MNU_Msk (0xFU << RTC_ALRMBR_MNU_Pos) /*!< 0x00000F00 */ | |
11319 #define RTC_ALRMBR_MNU RTC_ALRMBR_MNU_Msk | |
11320 #define RTC_ALRMBR_MNU_0 (0x1U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000100 */ | |
11321 #define RTC_ALRMBR_MNU_1 (0x2U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000200 */ | |
11322 #define RTC_ALRMBR_MNU_2 (0x4U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000400 */ | |
11323 #define RTC_ALRMBR_MNU_3 (0x8U << RTC_ALRMBR_MNU_Pos) /*!< 0x00000800 */ | |
11324 #define RTC_ALRMBR_MSK1_Pos (7U) | |
11325 #define RTC_ALRMBR_MSK1_Msk (0x1U << RTC_ALRMBR_MSK1_Pos) /*!< 0x00000080 */ | |
11326 #define RTC_ALRMBR_MSK1 RTC_ALRMBR_MSK1_Msk | |
11327 #define RTC_ALRMBR_ST_Pos (4U) | |
11328 #define RTC_ALRMBR_ST_Msk (0x7U << RTC_ALRMBR_ST_Pos) /*!< 0x00000070 */ | |
11329 #define RTC_ALRMBR_ST RTC_ALRMBR_ST_Msk | |
11330 #define RTC_ALRMBR_ST_0 (0x1U << RTC_ALRMBR_ST_Pos) /*!< 0x00000010 */ | |
11331 #define RTC_ALRMBR_ST_1 (0x2U << RTC_ALRMBR_ST_Pos) /*!< 0x00000020 */ | |
11332 #define RTC_ALRMBR_ST_2 (0x4U << RTC_ALRMBR_ST_Pos) /*!< 0x00000040 */ | |
11333 #define RTC_ALRMBR_SU_Pos (0U) | |
11334 #define RTC_ALRMBR_SU_Msk (0xFU << RTC_ALRMBR_SU_Pos) /*!< 0x0000000F */ | |
11335 #define RTC_ALRMBR_SU RTC_ALRMBR_SU_Msk | |
11336 #define RTC_ALRMBR_SU_0 (0x1U << RTC_ALRMBR_SU_Pos) /*!< 0x00000001 */ | |
11337 #define RTC_ALRMBR_SU_1 (0x2U << RTC_ALRMBR_SU_Pos) /*!< 0x00000002 */ | |
11338 #define RTC_ALRMBR_SU_2 (0x4U << RTC_ALRMBR_SU_Pos) /*!< 0x00000004 */ | |
11339 #define RTC_ALRMBR_SU_3 (0x8U << RTC_ALRMBR_SU_Pos) /*!< 0x00000008 */ | |
11340 | |
11341 /******************** Bits definition for RTC_WPR register ******************/ | |
11342 #define RTC_WPR_KEY_Pos (0U) | |
11343 #define RTC_WPR_KEY_Msk (0xFFU << RTC_WPR_KEY_Pos) /*!< 0x000000FF */ | |
11344 #define RTC_WPR_KEY RTC_WPR_KEY_Msk | |
11345 | |
11346 /******************** Bits definition for RTC_SSR register ******************/ | |
11347 #define RTC_SSR_SS_Pos (0U) | |
11348 #define RTC_SSR_SS_Msk (0xFFFFU << RTC_SSR_SS_Pos) /*!< 0x0000FFFF */ | |
11349 #define RTC_SSR_SS RTC_SSR_SS_Msk | |
11350 | |
11351 /******************** Bits definition for RTC_SHIFTR register ***************/ | |
11352 #define RTC_SHIFTR_SUBFS_Pos (0U) | |
11353 #define RTC_SHIFTR_SUBFS_Msk (0x7FFFU << RTC_SHIFTR_SUBFS_Pos) /*!< 0x00007FFF */ | |
11354 #define RTC_SHIFTR_SUBFS RTC_SHIFTR_SUBFS_Msk | |
11355 #define RTC_SHIFTR_ADD1S_Pos (31U) | |
11356 #define RTC_SHIFTR_ADD1S_Msk (0x1U << RTC_SHIFTR_ADD1S_Pos) /*!< 0x80000000 */ | |
11357 #define RTC_SHIFTR_ADD1S RTC_SHIFTR_ADD1S_Msk | |
11358 | |
11359 /******************** Bits definition for RTC_TSTR register *****************/ | |
11360 #define RTC_TSTR_PM_Pos (22U) | |
11361 #define RTC_TSTR_PM_Msk (0x1U << RTC_TSTR_PM_Pos) /*!< 0x00400000 */ | |
11362 #define RTC_TSTR_PM RTC_TSTR_PM_Msk | |
11363 #define RTC_TSTR_HT_Pos (20U) | |
11364 #define RTC_TSTR_HT_Msk (0x3U << RTC_TSTR_HT_Pos) /*!< 0x00300000 */ | |
11365 #define RTC_TSTR_HT RTC_TSTR_HT_Msk | |
11366 #define RTC_TSTR_HT_0 (0x1U << RTC_TSTR_HT_Pos) /*!< 0x00100000 */ | |
11367 #define RTC_TSTR_HT_1 (0x2U << RTC_TSTR_HT_Pos) /*!< 0x00200000 */ | |
11368 #define RTC_TSTR_HU_Pos (16U) | |
11369 #define RTC_TSTR_HU_Msk (0xFU << RTC_TSTR_HU_Pos) /*!< 0x000F0000 */ | |
11370 #define RTC_TSTR_HU RTC_TSTR_HU_Msk | |
11371 #define RTC_TSTR_HU_0 (0x1U << RTC_TSTR_HU_Pos) /*!< 0x00010000 */ | |
11372 #define RTC_TSTR_HU_1 (0x2U << RTC_TSTR_HU_Pos) /*!< 0x00020000 */ | |
11373 #define RTC_TSTR_HU_2 (0x4U << RTC_TSTR_HU_Pos) /*!< 0x00040000 */ | |
11374 #define RTC_TSTR_HU_3 (0x8U << RTC_TSTR_HU_Pos) /*!< 0x00080000 */ | |
11375 #define RTC_TSTR_MNT_Pos (12U) | |
11376 #define RTC_TSTR_MNT_Msk (0x7U << RTC_TSTR_MNT_Pos) /*!< 0x00007000 */ | |
11377 #define RTC_TSTR_MNT RTC_TSTR_MNT_Msk | |
11378 #define RTC_TSTR_MNT_0 (0x1U << RTC_TSTR_MNT_Pos) /*!< 0x00001000 */ | |
11379 #define RTC_TSTR_MNT_1 (0x2U << RTC_TSTR_MNT_Pos) /*!< 0x00002000 */ | |
11380 #define RTC_TSTR_MNT_2 (0x4U << RTC_TSTR_MNT_Pos) /*!< 0x00004000 */ | |
11381 #define RTC_TSTR_MNU_Pos (8U) | |
11382 #define RTC_TSTR_MNU_Msk (0xFU << RTC_TSTR_MNU_Pos) /*!< 0x00000F00 */ | |
11383 #define RTC_TSTR_MNU RTC_TSTR_MNU_Msk | |
11384 #define RTC_TSTR_MNU_0 (0x1U << RTC_TSTR_MNU_Pos) /*!< 0x00000100 */ | |
11385 #define RTC_TSTR_MNU_1 (0x2U << RTC_TSTR_MNU_Pos) /*!< 0x00000200 */ | |
11386 #define RTC_TSTR_MNU_2 (0x4U << RTC_TSTR_MNU_Pos) /*!< 0x00000400 */ | |
11387 #define RTC_TSTR_MNU_3 (0x8U << RTC_TSTR_MNU_Pos) /*!< 0x00000800 */ | |
11388 #define RTC_TSTR_ST_Pos (4U) | |
11389 #define RTC_TSTR_ST_Msk (0x7U << RTC_TSTR_ST_Pos) /*!< 0x00000070 */ | |
11390 #define RTC_TSTR_ST RTC_TSTR_ST_Msk | |
11391 #define RTC_TSTR_ST_0 (0x1U << RTC_TSTR_ST_Pos) /*!< 0x00000010 */ | |
11392 #define RTC_TSTR_ST_1 (0x2U << RTC_TSTR_ST_Pos) /*!< 0x00000020 */ | |
11393 #define RTC_TSTR_ST_2 (0x4U << RTC_TSTR_ST_Pos) /*!< 0x00000040 */ | |
11394 #define RTC_TSTR_SU_Pos (0U) | |
11395 #define RTC_TSTR_SU_Msk (0xFU << RTC_TSTR_SU_Pos) /*!< 0x0000000F */ | |
11396 #define RTC_TSTR_SU RTC_TSTR_SU_Msk | |
11397 #define RTC_TSTR_SU_0 (0x1U << RTC_TSTR_SU_Pos) /*!< 0x00000001 */ | |
11398 #define RTC_TSTR_SU_1 (0x2U << RTC_TSTR_SU_Pos) /*!< 0x00000002 */ | |
11399 #define RTC_TSTR_SU_2 (0x4U << RTC_TSTR_SU_Pos) /*!< 0x00000004 */ | |
11400 #define RTC_TSTR_SU_3 (0x8U << RTC_TSTR_SU_Pos) /*!< 0x00000008 */ | |
11401 | |
11402 /******************** Bits definition for RTC_TSDR register *****************/ | |
11403 #define RTC_TSDR_WDU_Pos (13U) | |
11404 #define RTC_TSDR_WDU_Msk (0x7U << RTC_TSDR_WDU_Pos) /*!< 0x0000E000 */ | |
11405 #define RTC_TSDR_WDU RTC_TSDR_WDU_Msk | |
11406 #define RTC_TSDR_WDU_0 (0x1U << RTC_TSDR_WDU_Pos) /*!< 0x00002000 */ | |
11407 #define RTC_TSDR_WDU_1 (0x2U << RTC_TSDR_WDU_Pos) /*!< 0x00004000 */ | |
11408 #define RTC_TSDR_WDU_2 (0x4U << RTC_TSDR_WDU_Pos) /*!< 0x00008000 */ | |
11409 #define RTC_TSDR_MT_Pos (12U) | |
11410 #define RTC_TSDR_MT_Msk (0x1U << RTC_TSDR_MT_Pos) /*!< 0x00001000 */ | |
11411 #define RTC_TSDR_MT RTC_TSDR_MT_Msk | |
11412 #define RTC_TSDR_MU_Pos (8U) | |
11413 #define RTC_TSDR_MU_Msk (0xFU << RTC_TSDR_MU_Pos) /*!< 0x00000F00 */ | |
11414 #define RTC_TSDR_MU RTC_TSDR_MU_Msk | |
11415 #define RTC_TSDR_MU_0 (0x1U << RTC_TSDR_MU_Pos) /*!< 0x00000100 */ | |
11416 #define RTC_TSDR_MU_1 (0x2U << RTC_TSDR_MU_Pos) /*!< 0x00000200 */ | |
11417 #define RTC_TSDR_MU_2 (0x4U << RTC_TSDR_MU_Pos) /*!< 0x00000400 */ | |
11418 #define RTC_TSDR_MU_3 (0x8U << RTC_TSDR_MU_Pos) /*!< 0x00000800 */ | |
11419 #define RTC_TSDR_DT_Pos (4U) | |
11420 #define RTC_TSDR_DT_Msk (0x3U << RTC_TSDR_DT_Pos) /*!< 0x00000030 */ | |
11421 #define RTC_TSDR_DT RTC_TSDR_DT_Msk | |
11422 #define RTC_TSDR_DT_0 (0x1U << RTC_TSDR_DT_Pos) /*!< 0x00000010 */ | |
11423 #define RTC_TSDR_DT_1 (0x2U << RTC_TSDR_DT_Pos) /*!< 0x00000020 */ | |
11424 #define RTC_TSDR_DU_Pos (0U) | |
11425 #define RTC_TSDR_DU_Msk (0xFU << RTC_TSDR_DU_Pos) /*!< 0x0000000F */ | |
11426 #define RTC_TSDR_DU RTC_TSDR_DU_Msk | |
11427 #define RTC_TSDR_DU_0 (0x1U << RTC_TSDR_DU_Pos) /*!< 0x00000001 */ | |
11428 #define RTC_TSDR_DU_1 (0x2U << RTC_TSDR_DU_Pos) /*!< 0x00000002 */ | |
11429 #define RTC_TSDR_DU_2 (0x4U << RTC_TSDR_DU_Pos) /*!< 0x00000004 */ | |
11430 #define RTC_TSDR_DU_3 (0x8U << RTC_TSDR_DU_Pos) /*!< 0x00000008 */ | |
11431 | |
11432 /******************** Bits definition for RTC_TSSSR register ****************/ | |
11433 #define RTC_TSSSR_SS_Pos (0U) | |
11434 #define RTC_TSSSR_SS_Msk (0xFFFFU << RTC_TSSSR_SS_Pos) /*!< 0x0000FFFF */ | |
11435 #define RTC_TSSSR_SS RTC_TSSSR_SS_Msk | |
11436 | |
11437 /******************** Bits definition for RTC_CAL register *****************/ | |
11438 #define RTC_CALR_CALP_Pos (15U) | |
11439 #define RTC_CALR_CALP_Msk (0x1U << RTC_CALR_CALP_Pos) /*!< 0x00008000 */ | |
11440 #define RTC_CALR_CALP RTC_CALR_CALP_Msk | |
11441 #define RTC_CALR_CALW8_Pos (14U) | |
11442 #define RTC_CALR_CALW8_Msk (0x1U << RTC_CALR_CALW8_Pos) /*!< 0x00004000 */ | |
11443 #define RTC_CALR_CALW8 RTC_CALR_CALW8_Msk | |
11444 #define RTC_CALR_CALW16_Pos (13U) | |
11445 #define RTC_CALR_CALW16_Msk (0x1U << RTC_CALR_CALW16_Pos) /*!< 0x00002000 */ | |
11446 #define RTC_CALR_CALW16 RTC_CALR_CALW16_Msk | |
11447 #define RTC_CALR_CALM_Pos (0U) | |
11448 #define RTC_CALR_CALM_Msk (0x1FFU << RTC_CALR_CALM_Pos) /*!< 0x000001FF */ | |
11449 #define RTC_CALR_CALM RTC_CALR_CALM_Msk | |
11450 #define RTC_CALR_CALM_0 (0x001U << RTC_CALR_CALM_Pos) /*!< 0x00000001 */ | |
11451 #define RTC_CALR_CALM_1 (0x002U << RTC_CALR_CALM_Pos) /*!< 0x00000002 */ | |
11452 #define RTC_CALR_CALM_2 (0x004U << RTC_CALR_CALM_Pos) /*!< 0x00000004 */ | |
11453 #define RTC_CALR_CALM_3 (0x008U << RTC_CALR_CALM_Pos) /*!< 0x00000008 */ | |
11454 #define RTC_CALR_CALM_4 (0x010U << RTC_CALR_CALM_Pos) /*!< 0x00000010 */ | |
11455 #define RTC_CALR_CALM_5 (0x020U << RTC_CALR_CALM_Pos) /*!< 0x00000020 */ | |
11456 #define RTC_CALR_CALM_6 (0x040U << RTC_CALR_CALM_Pos) /*!< 0x00000040 */ | |
11457 #define RTC_CALR_CALM_7 (0x080U << RTC_CALR_CALM_Pos) /*!< 0x00000080 */ | |
11458 #define RTC_CALR_CALM_8 (0x100U << RTC_CALR_CALM_Pos) /*!< 0x00000100 */ | |
11459 | |
11460 /******************** Bits definition for RTC_TAMPCR register ***************/ | |
11461 #define RTC_TAMPCR_TAMP3MF_Pos (24U) | |
11462 #define RTC_TAMPCR_TAMP3MF_Msk (0x1U << RTC_TAMPCR_TAMP3MF_Pos) /*!< 0x01000000 */ | |
11463 #define RTC_TAMPCR_TAMP3MF RTC_TAMPCR_TAMP3MF_Msk | |
11464 #define RTC_TAMPCR_TAMP3NOERASE_Pos (23U) | |
11465 #define RTC_TAMPCR_TAMP3NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP3NOERASE_Pos) /*!< 0x00800000 */ | |
11466 #define RTC_TAMPCR_TAMP3NOERASE RTC_TAMPCR_TAMP3NOERASE_Msk | |
11467 #define RTC_TAMPCR_TAMP3IE_Pos (22U) | |
11468 #define RTC_TAMPCR_TAMP3IE_Msk (0x1U << RTC_TAMPCR_TAMP3IE_Pos) /*!< 0x00400000 */ | |
11469 #define RTC_TAMPCR_TAMP3IE RTC_TAMPCR_TAMP3IE_Msk | |
11470 #define RTC_TAMPCR_TAMP2MF_Pos (21U) | |
11471 #define RTC_TAMPCR_TAMP2MF_Msk (0x1U << RTC_TAMPCR_TAMP2MF_Pos) /*!< 0x00200000 */ | |
11472 #define RTC_TAMPCR_TAMP2MF RTC_TAMPCR_TAMP2MF_Msk | |
11473 #define RTC_TAMPCR_TAMP2NOERASE_Pos (20U) | |
11474 #define RTC_TAMPCR_TAMP2NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP2NOERASE_Pos) /*!< 0x00100000 */ | |
11475 #define RTC_TAMPCR_TAMP2NOERASE RTC_TAMPCR_TAMP2NOERASE_Msk | |
11476 #define RTC_TAMPCR_TAMP2IE_Pos (19U) | |
11477 #define RTC_TAMPCR_TAMP2IE_Msk (0x1U << RTC_TAMPCR_TAMP2IE_Pos) /*!< 0x00080000 */ | |
11478 #define RTC_TAMPCR_TAMP2IE RTC_TAMPCR_TAMP2IE_Msk | |
11479 #define RTC_TAMPCR_TAMP1MF_Pos (18U) | |
11480 #define RTC_TAMPCR_TAMP1MF_Msk (0x1U << RTC_TAMPCR_TAMP1MF_Pos) /*!< 0x00040000 */ | |
11481 #define RTC_TAMPCR_TAMP1MF RTC_TAMPCR_TAMP1MF_Msk | |
11482 #define RTC_TAMPCR_TAMP1NOERASE_Pos (17U) | |
11483 #define RTC_TAMPCR_TAMP1NOERASE_Msk (0x1U << RTC_TAMPCR_TAMP1NOERASE_Pos) /*!< 0x00020000 */ | |
11484 #define RTC_TAMPCR_TAMP1NOERASE RTC_TAMPCR_TAMP1NOERASE_Msk | |
11485 #define RTC_TAMPCR_TAMP1IE_Pos (16U) | |
11486 #define RTC_TAMPCR_TAMP1IE_Msk (0x1U << RTC_TAMPCR_TAMP1IE_Pos) /*!< 0x00010000 */ | |
11487 #define RTC_TAMPCR_TAMP1IE RTC_TAMPCR_TAMP1IE_Msk | |
11488 #define RTC_TAMPCR_TAMPPUDIS_Pos (15U) | |
11489 #define RTC_TAMPCR_TAMPPUDIS_Msk (0x1U << RTC_TAMPCR_TAMPPUDIS_Pos) /*!< 0x00008000 */ | |
11490 #define RTC_TAMPCR_TAMPPUDIS RTC_TAMPCR_TAMPPUDIS_Msk | |
11491 #define RTC_TAMPCR_TAMPPRCH_Pos (13U) | |
11492 #define RTC_TAMPCR_TAMPPRCH_Msk (0x3U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00006000 */ | |
11493 #define RTC_TAMPCR_TAMPPRCH RTC_TAMPCR_TAMPPRCH_Msk | |
11494 #define RTC_TAMPCR_TAMPPRCH_0 (0x1U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00002000 */ | |
11495 #define RTC_TAMPCR_TAMPPRCH_1 (0x2U << RTC_TAMPCR_TAMPPRCH_Pos) /*!< 0x00004000 */ | |
11496 #define RTC_TAMPCR_TAMPFLT_Pos (11U) | |
11497 #define RTC_TAMPCR_TAMPFLT_Msk (0x3U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00001800 */ | |
11498 #define RTC_TAMPCR_TAMPFLT RTC_TAMPCR_TAMPFLT_Msk | |
11499 #define RTC_TAMPCR_TAMPFLT_0 (0x1U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00000800 */ | |
11500 #define RTC_TAMPCR_TAMPFLT_1 (0x2U << RTC_TAMPCR_TAMPFLT_Pos) /*!< 0x00001000 */ | |
11501 #define RTC_TAMPCR_TAMPFREQ_Pos (8U) | |
11502 #define RTC_TAMPCR_TAMPFREQ_Msk (0x7U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000700 */ | |
11503 #define RTC_TAMPCR_TAMPFREQ RTC_TAMPCR_TAMPFREQ_Msk | |
11504 #define RTC_TAMPCR_TAMPFREQ_0 (0x1U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000100 */ | |
11505 #define RTC_TAMPCR_TAMPFREQ_1 (0x2U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000200 */ | |
11506 #define RTC_TAMPCR_TAMPFREQ_2 (0x4U << RTC_TAMPCR_TAMPFREQ_Pos) /*!< 0x00000400 */ | |
11507 #define RTC_TAMPCR_TAMPTS_Pos (7U) | |
11508 #define RTC_TAMPCR_TAMPTS_Msk (0x1U << RTC_TAMPCR_TAMPTS_Pos) /*!< 0x00000080 */ | |
11509 #define RTC_TAMPCR_TAMPTS RTC_TAMPCR_TAMPTS_Msk | |
11510 #define RTC_TAMPCR_TAMP3TRG_Pos (6U) | |
11511 #define RTC_TAMPCR_TAMP3TRG_Msk (0x1U << RTC_TAMPCR_TAMP3TRG_Pos) /*!< 0x00000040 */ | |
11512 #define RTC_TAMPCR_TAMP3TRG RTC_TAMPCR_TAMP3TRG_Msk | |
11513 #define RTC_TAMPCR_TAMP3E_Pos (5U) | |
11514 #define RTC_TAMPCR_TAMP3E_Msk (0x1U << RTC_TAMPCR_TAMP3E_Pos) /*!< 0x00000020 */ | |
11515 #define RTC_TAMPCR_TAMP3E RTC_TAMPCR_TAMP3E_Msk | |
11516 #define RTC_TAMPCR_TAMP2TRG_Pos (4U) | |
11517 #define RTC_TAMPCR_TAMP2TRG_Msk (0x1U << RTC_TAMPCR_TAMP2TRG_Pos) /*!< 0x00000010 */ | |
11518 #define RTC_TAMPCR_TAMP2TRG RTC_TAMPCR_TAMP2TRG_Msk | |
11519 #define RTC_TAMPCR_TAMP2E_Pos (3U) | |
11520 #define RTC_TAMPCR_TAMP2E_Msk (0x1U << RTC_TAMPCR_TAMP2E_Pos) /*!< 0x00000008 */ | |
11521 #define RTC_TAMPCR_TAMP2E RTC_TAMPCR_TAMP2E_Msk | |
11522 #define RTC_TAMPCR_TAMPIE_Pos (2U) | |
11523 #define RTC_TAMPCR_TAMPIE_Msk (0x1U << RTC_TAMPCR_TAMPIE_Pos) /*!< 0x00000004 */ | |
11524 #define RTC_TAMPCR_TAMPIE RTC_TAMPCR_TAMPIE_Msk | |
11525 #define RTC_TAMPCR_TAMP1TRG_Pos (1U) | |
11526 #define RTC_TAMPCR_TAMP1TRG_Msk (0x1U << RTC_TAMPCR_TAMP1TRG_Pos) /*!< 0x00000002 */ | |
11527 #define RTC_TAMPCR_TAMP1TRG RTC_TAMPCR_TAMP1TRG_Msk | |
11528 #define RTC_TAMPCR_TAMP1E_Pos (0U) | |
11529 #define RTC_TAMPCR_TAMP1E_Msk (0x1U << RTC_TAMPCR_TAMP1E_Pos) /*!< 0x00000001 */ | |
11530 #define RTC_TAMPCR_TAMP1E RTC_TAMPCR_TAMP1E_Msk | |
11531 | |
11532 /******************** Bits definition for RTC_ALRMASSR register *************/ | |
11533 #define RTC_ALRMASSR_MASKSS_Pos (24U) | |
11534 #define RTC_ALRMASSR_MASKSS_Msk (0xFU << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x0F000000 */ | |
11535 #define RTC_ALRMASSR_MASKSS RTC_ALRMASSR_MASKSS_Msk | |
11536 #define RTC_ALRMASSR_MASKSS_0 (0x1U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x01000000 */ | |
11537 #define RTC_ALRMASSR_MASKSS_1 (0x2U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x02000000 */ | |
11538 #define RTC_ALRMASSR_MASKSS_2 (0x4U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x04000000 */ | |
11539 #define RTC_ALRMASSR_MASKSS_3 (0x8U << RTC_ALRMASSR_MASKSS_Pos) /*!< 0x08000000 */ | |
11540 #define RTC_ALRMASSR_SS_Pos (0U) | |
11541 #define RTC_ALRMASSR_SS_Msk (0x7FFFU << RTC_ALRMASSR_SS_Pos) /*!< 0x00007FFF */ | |
11542 #define RTC_ALRMASSR_SS RTC_ALRMASSR_SS_Msk | |
11543 | |
11544 /******************** Bits definition for RTC_ALRMBSSR register *************/ | |
11545 #define RTC_ALRMBSSR_MASKSS_Pos (24U) | |
11546 #define RTC_ALRMBSSR_MASKSS_Msk (0xFU << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x0F000000 */ | |
11547 #define RTC_ALRMBSSR_MASKSS RTC_ALRMBSSR_MASKSS_Msk | |
11548 #define RTC_ALRMBSSR_MASKSS_0 (0x1U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x01000000 */ | |
11549 #define RTC_ALRMBSSR_MASKSS_1 (0x2U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x02000000 */ | |
11550 #define RTC_ALRMBSSR_MASKSS_2 (0x4U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x04000000 */ | |
11551 #define RTC_ALRMBSSR_MASKSS_3 (0x8U << RTC_ALRMBSSR_MASKSS_Pos) /*!< 0x08000000 */ | |
11552 #define RTC_ALRMBSSR_SS_Pos (0U) | |
11553 #define RTC_ALRMBSSR_SS_Msk (0x7FFFU << RTC_ALRMBSSR_SS_Pos) /*!< 0x00007FFF */ | |
11554 #define RTC_ALRMBSSR_SS RTC_ALRMBSSR_SS_Msk | |
11555 | |
11556 /******************** Bits definition for RTC_0R register *******************/ | |
11557 #define RTC_OR_OUT_RMP_Pos (1U) | |
11558 #define RTC_OR_OUT_RMP_Msk (0x1U << RTC_OR_OUT_RMP_Pos) /*!< 0x00000002 */ | |
11559 #define RTC_OR_OUT_RMP RTC_OR_OUT_RMP_Msk | |
11560 #define RTC_OR_ALARMOUTTYPE_Pos (0U) | |
11561 #define RTC_OR_ALARMOUTTYPE_Msk (0x1U << RTC_OR_ALARMOUTTYPE_Pos) /*!< 0x00000001 */ | |
11562 #define RTC_OR_ALARMOUTTYPE RTC_OR_ALARMOUTTYPE_Msk | |
11563 | |
11564 | |
11565 /******************** Bits definition for RTC_BKP0R register ****************/ | |
11566 #define RTC_BKP0R_Pos (0U) | |
11567 #define RTC_BKP0R_Msk (0xFFFFFFFFU << RTC_BKP0R_Pos) /*!< 0xFFFFFFFF */ | |
11568 #define RTC_BKP0R RTC_BKP0R_Msk | |
11569 | |
11570 /******************** Bits definition for RTC_BKP1R register ****************/ | |
11571 #define RTC_BKP1R_Pos (0U) | |
11572 #define RTC_BKP1R_Msk (0xFFFFFFFFU << RTC_BKP1R_Pos) /*!< 0xFFFFFFFF */ | |
11573 #define RTC_BKP1R RTC_BKP1R_Msk | |
11574 | |
11575 /******************** Bits definition for RTC_BKP2R register ****************/ | |
11576 #define RTC_BKP2R_Pos (0U) | |
11577 #define RTC_BKP2R_Msk (0xFFFFFFFFU << RTC_BKP2R_Pos) /*!< 0xFFFFFFFF */ | |
11578 #define RTC_BKP2R RTC_BKP2R_Msk | |
11579 | |
11580 /******************** Bits definition for RTC_BKP3R register ****************/ | |
11581 #define RTC_BKP3R_Pos (0U) | |
11582 #define RTC_BKP3R_Msk (0xFFFFFFFFU << RTC_BKP3R_Pos) /*!< 0xFFFFFFFF */ | |
11583 #define RTC_BKP3R RTC_BKP3R_Msk | |
11584 | |
11585 /******************** Bits definition for RTC_BKP4R register ****************/ | |
11586 #define RTC_BKP4R_Pos (0U) | |
11587 #define RTC_BKP4R_Msk (0xFFFFFFFFU << RTC_BKP4R_Pos) /*!< 0xFFFFFFFF */ | |
11588 #define RTC_BKP4R RTC_BKP4R_Msk | |
11589 | |
11590 /******************** Bits definition for RTC_BKP5R register ****************/ | |
11591 #define RTC_BKP5R_Pos (0U) | |
11592 #define RTC_BKP5R_Msk (0xFFFFFFFFU << RTC_BKP5R_Pos) /*!< 0xFFFFFFFF */ | |
11593 #define RTC_BKP5R RTC_BKP5R_Msk | |
11594 | |
11595 /******************** Bits definition for RTC_BKP6R register ****************/ | |
11596 #define RTC_BKP6R_Pos (0U) | |
11597 #define RTC_BKP6R_Msk (0xFFFFFFFFU << RTC_BKP6R_Pos) /*!< 0xFFFFFFFF */ | |
11598 #define RTC_BKP6R RTC_BKP6R_Msk | |
11599 | |
11600 /******************** Bits definition for RTC_BKP7R register ****************/ | |
11601 #define RTC_BKP7R_Pos (0U) | |
11602 #define RTC_BKP7R_Msk (0xFFFFFFFFU << RTC_BKP7R_Pos) /*!< 0xFFFFFFFF */ | |
11603 #define RTC_BKP7R RTC_BKP7R_Msk | |
11604 | |
11605 /******************** Bits definition for RTC_BKP8R register ****************/ | |
11606 #define RTC_BKP8R_Pos (0U) | |
11607 #define RTC_BKP8R_Msk (0xFFFFFFFFU << RTC_BKP8R_Pos) /*!< 0xFFFFFFFF */ | |
11608 #define RTC_BKP8R RTC_BKP8R_Msk | |
11609 | |
11610 /******************** Bits definition for RTC_BKP9R register ****************/ | |
11611 #define RTC_BKP9R_Pos (0U) | |
11612 #define RTC_BKP9R_Msk (0xFFFFFFFFU << RTC_BKP9R_Pos) /*!< 0xFFFFFFFF */ | |
11613 #define RTC_BKP9R RTC_BKP9R_Msk | |
11614 | |
11615 /******************** Bits definition for RTC_BKP10R register ***************/ | |
11616 #define RTC_BKP10R_Pos (0U) | |
11617 #define RTC_BKP10R_Msk (0xFFFFFFFFU << RTC_BKP10R_Pos) /*!< 0xFFFFFFFF */ | |
11618 #define RTC_BKP10R RTC_BKP10R_Msk | |
11619 | |
11620 /******************** Bits definition for RTC_BKP11R register ***************/ | |
11621 #define RTC_BKP11R_Pos (0U) | |
11622 #define RTC_BKP11R_Msk (0xFFFFFFFFU << RTC_BKP11R_Pos) /*!< 0xFFFFFFFF */ | |
11623 #define RTC_BKP11R RTC_BKP11R_Msk | |
11624 | |
11625 /******************** Bits definition for RTC_BKP12R register ***************/ | |
11626 #define RTC_BKP12R_Pos (0U) | |
11627 #define RTC_BKP12R_Msk (0xFFFFFFFFU << RTC_BKP12R_Pos) /*!< 0xFFFFFFFF */ | |
11628 #define RTC_BKP12R RTC_BKP12R_Msk | |
11629 | |
11630 /******************** Bits definition for RTC_BKP13R register ***************/ | |
11631 #define RTC_BKP13R_Pos (0U) | |
11632 #define RTC_BKP13R_Msk (0xFFFFFFFFU << RTC_BKP13R_Pos) /*!< 0xFFFFFFFF */ | |
11633 #define RTC_BKP13R RTC_BKP13R_Msk | |
11634 | |
11635 /******************** Bits definition for RTC_BKP14R register ***************/ | |
11636 #define RTC_BKP14R_Pos (0U) | |
11637 #define RTC_BKP14R_Msk (0xFFFFFFFFU << RTC_BKP14R_Pos) /*!< 0xFFFFFFFF */ | |
11638 #define RTC_BKP14R RTC_BKP14R_Msk | |
11639 | |
11640 /******************** Bits definition for RTC_BKP15R register ***************/ | |
11641 #define RTC_BKP15R_Pos (0U) | |
11642 #define RTC_BKP15R_Msk (0xFFFFFFFFU << RTC_BKP15R_Pos) /*!< 0xFFFFFFFF */ | |
11643 #define RTC_BKP15R RTC_BKP15R_Msk | |
11644 | |
11645 /******************** Bits definition for RTC_BKP16R register ***************/ | |
11646 #define RTC_BKP16R_Pos (0U) | |
11647 #define RTC_BKP16R_Msk (0xFFFFFFFFU << RTC_BKP16R_Pos) /*!< 0xFFFFFFFF */ | |
11648 #define RTC_BKP16R RTC_BKP16R_Msk | |
11649 | |
11650 /******************** Bits definition for RTC_BKP17R register ***************/ | |
11651 #define RTC_BKP17R_Pos (0U) | |
11652 #define RTC_BKP17R_Msk (0xFFFFFFFFU << RTC_BKP17R_Pos) /*!< 0xFFFFFFFF */ | |
11653 #define RTC_BKP17R RTC_BKP17R_Msk | |
11654 | |
11655 /******************** Bits definition for RTC_BKP18R register ***************/ | |
11656 #define RTC_BKP18R_Pos (0U) | |
11657 #define RTC_BKP18R_Msk (0xFFFFFFFFU << RTC_BKP18R_Pos) /*!< 0xFFFFFFFF */ | |
11658 #define RTC_BKP18R RTC_BKP18R_Msk | |
11659 | |
11660 /******************** Bits definition for RTC_BKP19R register ***************/ | |
11661 #define RTC_BKP19R_Pos (0U) | |
11662 #define RTC_BKP19R_Msk (0xFFFFFFFFU << RTC_BKP19R_Pos) /*!< 0xFFFFFFFF */ | |
11663 #define RTC_BKP19R RTC_BKP19R_Msk | |
11664 | |
11665 /******************** Bits definition for RTC_BKP20R register ***************/ | |
11666 #define RTC_BKP20R_Pos (0U) | |
11667 #define RTC_BKP20R_Msk (0xFFFFFFFFU << RTC_BKP20R_Pos) /*!< 0xFFFFFFFF */ | |
11668 #define RTC_BKP20R RTC_BKP20R_Msk | |
11669 | |
11670 /******************** Bits definition for RTC_BKP21R register ***************/ | |
11671 #define RTC_BKP21R_Pos (0U) | |
11672 #define RTC_BKP21R_Msk (0xFFFFFFFFU << RTC_BKP21R_Pos) /*!< 0xFFFFFFFF */ | |
11673 #define RTC_BKP21R RTC_BKP21R_Msk | |
11674 | |
11675 /******************** Bits definition for RTC_BKP22R register ***************/ | |
11676 #define RTC_BKP22R_Pos (0U) | |
11677 #define RTC_BKP22R_Msk (0xFFFFFFFFU << RTC_BKP22R_Pos) /*!< 0xFFFFFFFF */ | |
11678 #define RTC_BKP22R RTC_BKP22R_Msk | |
11679 | |
11680 /******************** Bits definition for RTC_BKP23R register ***************/ | |
11681 #define RTC_BKP23R_Pos (0U) | |
11682 #define RTC_BKP23R_Msk (0xFFFFFFFFU << RTC_BKP23R_Pos) /*!< 0xFFFFFFFF */ | |
11683 #define RTC_BKP23R RTC_BKP23R_Msk | |
11684 | |
11685 /******************** Bits definition for RTC_BKP24R register ***************/ | |
11686 #define RTC_BKP24R_Pos (0U) | |
11687 #define RTC_BKP24R_Msk (0xFFFFFFFFU << RTC_BKP24R_Pos) /*!< 0xFFFFFFFF */ | |
11688 #define RTC_BKP24R RTC_BKP24R_Msk | |
11689 | |
11690 /******************** Bits definition for RTC_BKP25R register ***************/ | |
11691 #define RTC_BKP25R_Pos (0U) | |
11692 #define RTC_BKP25R_Msk (0xFFFFFFFFU << RTC_BKP25R_Pos) /*!< 0xFFFFFFFF */ | |
11693 #define RTC_BKP25R RTC_BKP25R_Msk | |
11694 | |
11695 /******************** Bits definition for RTC_BKP26R register ***************/ | |
11696 #define RTC_BKP26R_Pos (0U) | |
11697 #define RTC_BKP26R_Msk (0xFFFFFFFFU << RTC_BKP26R_Pos) /*!< 0xFFFFFFFF */ | |
11698 #define RTC_BKP26R RTC_BKP26R_Msk | |
11699 | |
11700 /******************** Bits definition for RTC_BKP27R register ***************/ | |
11701 #define RTC_BKP27R_Pos (0U) | |
11702 #define RTC_BKP27R_Msk (0xFFFFFFFFU << RTC_BKP27R_Pos) /*!< 0xFFFFFFFF */ | |
11703 #define RTC_BKP27R RTC_BKP27R_Msk | |
11704 | |
11705 /******************** Bits definition for RTC_BKP28R register ***************/ | |
11706 #define RTC_BKP28R_Pos (0U) | |
11707 #define RTC_BKP28R_Msk (0xFFFFFFFFU << RTC_BKP28R_Pos) /*!< 0xFFFFFFFF */ | |
11708 #define RTC_BKP28R RTC_BKP28R_Msk | |
11709 | |
11710 /******************** Bits definition for RTC_BKP29R register ***************/ | |
11711 #define RTC_BKP29R_Pos (0U) | |
11712 #define RTC_BKP29R_Msk (0xFFFFFFFFU << RTC_BKP29R_Pos) /*!< 0xFFFFFFFF */ | |
11713 #define RTC_BKP29R RTC_BKP29R_Msk | |
11714 | |
11715 /******************** Bits definition for RTC_BKP30R register ***************/ | |
11716 #define RTC_BKP30R_Pos (0U) | |
11717 #define RTC_BKP30R_Msk (0xFFFFFFFFU << RTC_BKP30R_Pos) /*!< 0xFFFFFFFF */ | |
11718 #define RTC_BKP30R RTC_BKP30R_Msk | |
11719 | |
11720 /******************** Bits definition for RTC_BKP31R register ***************/ | |
11721 #define RTC_BKP31R_Pos (0U) | |
11722 #define RTC_BKP31R_Msk (0xFFFFFFFFU << RTC_BKP31R_Pos) /*!< 0xFFFFFFFF */ | |
11723 #define RTC_BKP31R RTC_BKP31R_Msk | |
11724 | |
11725 /******************** Number of backup registers ******************************/ | |
11726 #define RTC_BKP_NUMBER 32U | |
11727 | |
11728 /******************************************************************************/ | |
11729 /* */ | |
11730 /* Serial Audio Interface */ | |
11731 /* */ | |
11732 /******************************************************************************/ | |
11733 /******************** Bit definition for SAI_GCR register *******************/ | |
11734 #define SAI_GCR_SYNCIN_Pos (0U) | |
11735 #define SAI_GCR_SYNCIN_Msk (0x3U << SAI_GCR_SYNCIN_Pos) /*!< 0x00000003 */ | |
11736 #define SAI_GCR_SYNCIN SAI_GCR_SYNCIN_Msk /*!<SYNCIN[1:0] bits (Synchronization Inputs) */ | |
11737 #define SAI_GCR_SYNCIN_0 (0x1U << SAI_GCR_SYNCIN_Pos) /*!< 0x00000001 */ | |
11738 #define SAI_GCR_SYNCIN_1 (0x2U << SAI_GCR_SYNCIN_Pos) /*!< 0x00000002 */ | |
11739 | |
11740 #define SAI_GCR_SYNCOUT_Pos (4U) | |
11741 #define SAI_GCR_SYNCOUT_Msk (0x3U << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000030 */ | |
11742 #define SAI_GCR_SYNCOUT SAI_GCR_SYNCOUT_Msk /*!<SYNCOUT[1:0] bits (Synchronization Outputs) */ | |
11743 #define SAI_GCR_SYNCOUT_0 (0x1U << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000010 */ | |
11744 #define SAI_GCR_SYNCOUT_1 (0x2U << SAI_GCR_SYNCOUT_Pos) /*!< 0x00000020 */ | |
11745 | |
11746 /******************* Bit definition for SAI_xCR1 register *******************/ | |
11747 #define SAI_xCR1_MODE_Pos (0U) | |
11748 #define SAI_xCR1_MODE_Msk (0x3U << SAI_xCR1_MODE_Pos) /*!< 0x00000003 */ | |
11749 #define SAI_xCR1_MODE SAI_xCR1_MODE_Msk /*!<MODE[1:0] bits (Audio Block Mode) */ | |
11750 #define SAI_xCR1_MODE_0 (0x1U << SAI_xCR1_MODE_Pos) /*!< 0x00000001 */ | |
11751 #define SAI_xCR1_MODE_1 (0x2U << SAI_xCR1_MODE_Pos) /*!< 0x00000002 */ | |
11752 | |
11753 #define SAI_xCR1_PRTCFG_Pos (2U) | |
11754 #define SAI_xCR1_PRTCFG_Msk (0x3U << SAI_xCR1_PRTCFG_Pos) /*!< 0x0000000C */ | |
11755 #define SAI_xCR1_PRTCFG SAI_xCR1_PRTCFG_Msk /*!<PRTCFG[1:0] bits (Protocol Configuration) */ | |
11756 #define SAI_xCR1_PRTCFG_0 (0x1U << SAI_xCR1_PRTCFG_Pos) /*!< 0x00000004 */ | |
11757 #define SAI_xCR1_PRTCFG_1 (0x2U << SAI_xCR1_PRTCFG_Pos) /*!< 0x00000008 */ | |
11758 | |
11759 #define SAI_xCR1_DS_Pos (5U) | |
11760 #define SAI_xCR1_DS_Msk (0x7U << SAI_xCR1_DS_Pos) /*!< 0x000000E0 */ | |
11761 #define SAI_xCR1_DS SAI_xCR1_DS_Msk /*!<DS[1:0] bits (Data Size) */ | |
11762 #define SAI_xCR1_DS_0 (0x1U << SAI_xCR1_DS_Pos) /*!< 0x00000020 */ | |
11763 #define SAI_xCR1_DS_1 (0x2U << SAI_xCR1_DS_Pos) /*!< 0x00000040 */ | |
11764 #define SAI_xCR1_DS_2 (0x4U << SAI_xCR1_DS_Pos) /*!< 0x00000080 */ | |
11765 | |
11766 #define SAI_xCR1_LSBFIRST_Pos (8U) | |
11767 #define SAI_xCR1_LSBFIRST_Msk (0x1U << SAI_xCR1_LSBFIRST_Pos) /*!< 0x00000100 */ | |
11768 #define SAI_xCR1_LSBFIRST SAI_xCR1_LSBFIRST_Msk /*!<LSB First Configuration */ | |
11769 #define SAI_xCR1_CKSTR_Pos (9U) | |
11770 #define SAI_xCR1_CKSTR_Msk (0x1U << SAI_xCR1_CKSTR_Pos) /*!< 0x00000200 */ | |
11771 #define SAI_xCR1_CKSTR SAI_xCR1_CKSTR_Msk /*!<ClocK STRobing edge */ | |
11772 | |
11773 #define SAI_xCR1_SYNCEN_Pos (10U) | |
11774 #define SAI_xCR1_SYNCEN_Msk (0x3U << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000C00 */ | |
11775 #define SAI_xCR1_SYNCEN SAI_xCR1_SYNCEN_Msk /*!<SYNCEN[1:0](SYNChronization ENable) */ | |
11776 #define SAI_xCR1_SYNCEN_0 (0x1U << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000400 */ | |
11777 #define SAI_xCR1_SYNCEN_1 (0x2U << SAI_xCR1_SYNCEN_Pos) /*!< 0x00000800 */ | |
11778 | |
11779 #define SAI_xCR1_MONO_Pos (12U) | |
11780 #define SAI_xCR1_MONO_Msk (0x1U << SAI_xCR1_MONO_Pos) /*!< 0x00001000 */ | |
11781 #define SAI_xCR1_MONO SAI_xCR1_MONO_Msk /*!<Mono mode */ | |
11782 #define SAI_xCR1_OUTDRIV_Pos (13U) | |
11783 #define SAI_xCR1_OUTDRIV_Msk (0x1U << SAI_xCR1_OUTDRIV_Pos) /*!< 0x00002000 */ | |
11784 #define SAI_xCR1_OUTDRIV SAI_xCR1_OUTDRIV_Msk /*!<Output Drive */ | |
11785 #define SAI_xCR1_SAIEN_Pos (16U) | |
11786 #define SAI_xCR1_SAIEN_Msk (0x1U << SAI_xCR1_SAIEN_Pos) /*!< 0x00010000 */ | |
11787 #define SAI_xCR1_SAIEN SAI_xCR1_SAIEN_Msk /*!<Audio Block enable */ | |
11788 #define SAI_xCR1_DMAEN_Pos (17U) | |
11789 #define SAI_xCR1_DMAEN_Msk (0x1U << SAI_xCR1_DMAEN_Pos) /*!< 0x00020000 */ | |
11790 #define SAI_xCR1_DMAEN SAI_xCR1_DMAEN_Msk /*!<DMA enable */ | |
11791 #define SAI_xCR1_NODIV_Pos (19U) | |
11792 #define SAI_xCR1_NODIV_Msk (0x1U << SAI_xCR1_NODIV_Pos) /*!< 0x00080000 */ | |
11793 #define SAI_xCR1_NODIV SAI_xCR1_NODIV_Msk /*!<No Divider Configuration */ | |
11794 | |
11795 #define SAI_xCR1_MCKDIV_Pos (20U) | |
11796 #define SAI_xCR1_MCKDIV_Msk (0xFU << SAI_xCR1_MCKDIV_Pos) /*!< 0x00F00000 */ | |
11797 #define SAI_xCR1_MCKDIV SAI_xCR1_MCKDIV_Msk /*!<MCKDIV[3:0] (Master ClocK Divider) */ | |
11798 #define SAI_xCR1_MCKDIV_0 (0x00100000U) /*!<Bit 0 */ | |
11799 #define SAI_xCR1_MCKDIV_1 (0x00200000U) /*!<Bit 1 */ | |
11800 #define SAI_xCR1_MCKDIV_2 (0x00400000U) /*!<Bit 2 */ | |
11801 #define SAI_xCR1_MCKDIV_3 (0x00800000U) /*!<Bit 3 */ | |
11802 | |
11803 /******************* Bit definition for SAI_xCR2 register *******************/ | |
11804 #define SAI_xCR2_FTH_Pos (0U) | |
11805 #define SAI_xCR2_FTH_Msk (0x7U << SAI_xCR2_FTH_Pos) /*!< 0x00000007 */ | |
11806 #define SAI_xCR2_FTH SAI_xCR2_FTH_Msk /*!<FTH[2:0](Fifo THreshold) */ | |
11807 #define SAI_xCR2_FTH_0 (0x1U << SAI_xCR2_FTH_Pos) /*!< 0x00000001 */ | |
11808 #define SAI_xCR2_FTH_1 (0x2U << SAI_xCR2_FTH_Pos) /*!< 0x00000002 */ | |
11809 #define SAI_xCR2_FTH_2 (0x4U << SAI_xCR2_FTH_Pos) /*!< 0x00000004 */ | |
11810 | |
11811 #define SAI_xCR2_FFLUSH_Pos (3U) | |
11812 #define SAI_xCR2_FFLUSH_Msk (0x1U << SAI_xCR2_FFLUSH_Pos) /*!< 0x00000008 */ | |
11813 #define SAI_xCR2_FFLUSH SAI_xCR2_FFLUSH_Msk /*!<Fifo FLUSH */ | |
11814 #define SAI_xCR2_TRIS_Pos (4U) | |
11815 #define SAI_xCR2_TRIS_Msk (0x1U << SAI_xCR2_TRIS_Pos) /*!< 0x00000010 */ | |
11816 #define SAI_xCR2_TRIS SAI_xCR2_TRIS_Msk /*!<TRIState Management on data line */ | |
11817 #define SAI_xCR2_MUTE_Pos (5U) | |
11818 #define SAI_xCR2_MUTE_Msk (0x1U << SAI_xCR2_MUTE_Pos) /*!< 0x00000020 */ | |
11819 #define SAI_xCR2_MUTE SAI_xCR2_MUTE_Msk /*!<Mute mode */ | |
11820 #define SAI_xCR2_MUTEVAL_Pos (6U) | |
11821 #define SAI_xCR2_MUTEVAL_Msk (0x1U << SAI_xCR2_MUTEVAL_Pos) /*!< 0x00000040 */ | |
11822 #define SAI_xCR2_MUTEVAL SAI_xCR2_MUTEVAL_Msk /*!<Muate value */ | |
11823 | |
11824 | |
11825 #define SAI_xCR2_MUTECNT_Pos (7U) | |
11826 #define SAI_xCR2_MUTECNT_Msk (0x3FU << SAI_xCR2_MUTECNT_Pos) /*!< 0x00001F80 */ | |
11827 #define SAI_xCR2_MUTECNT SAI_xCR2_MUTECNT_Msk /*!<MUTECNT[5:0] (MUTE counter) */ | |
11828 #define SAI_xCR2_MUTECNT_0 (0x01U << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000080 */ | |
11829 #define SAI_xCR2_MUTECNT_1 (0x02U << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000100 */ | |
11830 #define SAI_xCR2_MUTECNT_2 (0x04U << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000200 */ | |
11831 #define SAI_xCR2_MUTECNT_3 (0x08U << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000400 */ | |
11832 #define SAI_xCR2_MUTECNT_4 (0x10U << SAI_xCR2_MUTECNT_Pos) /*!< 0x00000800 */ | |
11833 #define SAI_xCR2_MUTECNT_5 (0x20U << SAI_xCR2_MUTECNT_Pos) /*!< 0x00001000 */ | |
11834 | |
11835 #define SAI_xCR2_CPL_Pos (13U) | |
11836 #define SAI_xCR2_CPL_Msk (0x1U << SAI_xCR2_CPL_Pos) /*!< 0x00002000 */ | |
11837 #define SAI_xCR2_CPL SAI_xCR2_CPL_Msk /*!<CPL mode */ | |
11838 #define SAI_xCR2_COMP_Pos (14U) | |
11839 #define SAI_xCR2_COMP_Msk (0x3U << SAI_xCR2_COMP_Pos) /*!< 0x0000C000 */ | |
11840 #define SAI_xCR2_COMP SAI_xCR2_COMP_Msk /*!<COMP[1:0] (Companding mode) */ | |
11841 #define SAI_xCR2_COMP_0 (0x1U << SAI_xCR2_COMP_Pos) /*!< 0x00004000 */ | |
11842 #define SAI_xCR2_COMP_1 (0x2U << SAI_xCR2_COMP_Pos) /*!< 0x00008000 */ | |
11843 | |
11844 | |
11845 /****************** Bit definition for SAI_xFRCR register *******************/ | |
11846 #define SAI_xFRCR_FRL_Pos (0U) | |
11847 #define SAI_xFRCR_FRL_Msk (0xFFU << SAI_xFRCR_FRL_Pos) /*!< 0x000000FF */ | |
11848 #define SAI_xFRCR_FRL SAI_xFRCR_FRL_Msk /*!<FRL[7:0](Frame length) */ | |
11849 #define SAI_xFRCR_FRL_0 (0x01U << SAI_xFRCR_FRL_Pos) /*!< 0x00000001 */ | |
11850 #define SAI_xFRCR_FRL_1 (0x02U << SAI_xFRCR_FRL_Pos) /*!< 0x00000002 */ | |
11851 #define SAI_xFRCR_FRL_2 (0x04U << SAI_xFRCR_FRL_Pos) /*!< 0x00000004 */ | |
11852 #define SAI_xFRCR_FRL_3 (0x08U << SAI_xFRCR_FRL_Pos) /*!< 0x00000008 */ | |
11853 #define SAI_xFRCR_FRL_4 (0x10U << SAI_xFRCR_FRL_Pos) /*!< 0x00000010 */ | |
11854 #define SAI_xFRCR_FRL_5 (0x20U << SAI_xFRCR_FRL_Pos) /*!< 0x00000020 */ | |
11855 #define SAI_xFRCR_FRL_6 (0x40U << SAI_xFRCR_FRL_Pos) /*!< 0x00000040 */ | |
11856 #define SAI_xFRCR_FRL_7 (0x80U << SAI_xFRCR_FRL_Pos) /*!< 0x00000080 */ | |
11857 | |
11858 #define SAI_xFRCR_FSALL_Pos (8U) | |
11859 #define SAI_xFRCR_FSALL_Msk (0x7FU << SAI_xFRCR_FSALL_Pos) /*!< 0x00007F00 */ | |
11860 #define SAI_xFRCR_FSALL SAI_xFRCR_FSALL_Msk /*!<FRL[6:0] (Frame synchronization active level length) */ | |
11861 #define SAI_xFRCR_FSALL_0 (0x01U << SAI_xFRCR_FSALL_Pos) /*!< 0x00000100 */ | |
11862 #define SAI_xFRCR_FSALL_1 (0x02U << SAI_xFRCR_FSALL_Pos) /*!< 0x00000200 */ | |
11863 #define SAI_xFRCR_FSALL_2 (0x04U << SAI_xFRCR_FSALL_Pos) /*!< 0x00000400 */ | |
11864 #define SAI_xFRCR_FSALL_3 (0x08U << SAI_xFRCR_FSALL_Pos) /*!< 0x00000800 */ | |
11865 #define SAI_xFRCR_FSALL_4 (0x10U << SAI_xFRCR_FSALL_Pos) /*!< 0x00001000 */ | |
11866 #define SAI_xFRCR_FSALL_5 (0x20U << SAI_xFRCR_FSALL_Pos) /*!< 0x00002000 */ | |
11867 #define SAI_xFRCR_FSALL_6 (0x40U << SAI_xFRCR_FSALL_Pos) /*!< 0x00004000 */ | |
11868 | |
11869 #define SAI_xFRCR_FSDEF_Pos (16U) | |
11870 #define SAI_xFRCR_FSDEF_Msk (0x1U << SAI_xFRCR_FSDEF_Pos) /*!< 0x00010000 */ | |
11871 #define SAI_xFRCR_FSDEF SAI_xFRCR_FSDEF_Msk /*!< Frame Synchronization Definition */ | |
11872 #define SAI_xFRCR_FSPOL_Pos (17U) | |
11873 #define SAI_xFRCR_FSPOL_Msk (0x1U << SAI_xFRCR_FSPOL_Pos) /*!< 0x00020000 */ | |
11874 #define SAI_xFRCR_FSPOL SAI_xFRCR_FSPOL_Msk /*!<Frame Synchronization POLarity */ | |
11875 #define SAI_xFRCR_FSOFF_Pos (18U) | |
11876 #define SAI_xFRCR_FSOFF_Msk (0x1U << SAI_xFRCR_FSOFF_Pos) /*!< 0x00040000 */ | |
11877 #define SAI_xFRCR_FSOFF SAI_xFRCR_FSOFF_Msk /*!<Frame Synchronization OFFset */ | |
11878 | |
11879 /****************** Bit definition for SAI_xSLOTR register *******************/ | |
11880 #define SAI_xSLOTR_FBOFF_Pos (0U) | |
11881 #define SAI_xSLOTR_FBOFF_Msk (0x1FU << SAI_xSLOTR_FBOFF_Pos) /*!< 0x0000001F */ | |
11882 #define SAI_xSLOTR_FBOFF SAI_xSLOTR_FBOFF_Msk /*!<FRL[4:0](First Bit Offset) */ | |
11883 #define SAI_xSLOTR_FBOFF_0 (0x01U << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000001 */ | |
11884 #define SAI_xSLOTR_FBOFF_1 (0x02U << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000002 */ | |
11885 #define SAI_xSLOTR_FBOFF_2 (0x04U << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000004 */ | |
11886 #define SAI_xSLOTR_FBOFF_3 (0x08U << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000008 */ | |
11887 #define SAI_xSLOTR_FBOFF_4 (0x10U << SAI_xSLOTR_FBOFF_Pos) /*!< 0x00000010 */ | |
11888 | |
11889 #define SAI_xSLOTR_SLOTSZ_Pos (6U) | |
11890 #define SAI_xSLOTR_SLOTSZ_Msk (0x3U << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x000000C0 */ | |
11891 #define SAI_xSLOTR_SLOTSZ SAI_xSLOTR_SLOTSZ_Msk /*!<SLOTSZ[1:0] (Slot size) */ | |
11892 #define SAI_xSLOTR_SLOTSZ_0 (0x1U << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x00000040 */ | |
11893 #define SAI_xSLOTR_SLOTSZ_1 (0x2U << SAI_xSLOTR_SLOTSZ_Pos) /*!< 0x00000080 */ | |
11894 | |
11895 #define SAI_xSLOTR_NBSLOT_Pos (8U) | |
11896 #define SAI_xSLOTR_NBSLOT_Msk (0xFU << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000F00 */ | |
11897 #define SAI_xSLOTR_NBSLOT SAI_xSLOTR_NBSLOT_Msk /*!<NBSLOT[3:0] (Number of Slot in audio Frame) */ | |
11898 #define SAI_xSLOTR_NBSLOT_0 (0x1U << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000100 */ | |
11899 #define SAI_xSLOTR_NBSLOT_1 (0x2U << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000200 */ | |
11900 #define SAI_xSLOTR_NBSLOT_2 (0x4U << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000400 */ | |
11901 #define SAI_xSLOTR_NBSLOT_3 (0x8U << SAI_xSLOTR_NBSLOT_Pos) /*!< 0x00000800 */ | |
11902 | |
11903 #define SAI_xSLOTR_SLOTEN_Pos (16U) | |
11904 #define SAI_xSLOTR_SLOTEN_Msk (0xFFFFU << SAI_xSLOTR_SLOTEN_Pos) /*!< 0xFFFF0000 */ | |
11905 #define SAI_xSLOTR_SLOTEN SAI_xSLOTR_SLOTEN_Msk /*!<SLOTEN[15:0] (Slot Enable) */ | |
11906 | |
11907 /******************* Bit definition for SAI_xIMR register *******************/ | |
11908 #define SAI_xIMR_OVRUDRIE_Pos (0U) | |
11909 #define SAI_xIMR_OVRUDRIE_Msk (0x1U << SAI_xIMR_OVRUDRIE_Pos) /*!< 0x00000001 */ | |
11910 #define SAI_xIMR_OVRUDRIE SAI_xIMR_OVRUDRIE_Msk /*!<Overrun underrun interrupt enable */ | |
11911 #define SAI_xIMR_MUTEDETIE_Pos (1U) | |
11912 #define SAI_xIMR_MUTEDETIE_Msk (0x1U << SAI_xIMR_MUTEDETIE_Pos) /*!< 0x00000002 */ | |
11913 #define SAI_xIMR_MUTEDETIE SAI_xIMR_MUTEDETIE_Msk /*!<Mute detection interrupt enable */ | |
11914 #define SAI_xIMR_WCKCFGIE_Pos (2U) | |
11915 #define SAI_xIMR_WCKCFGIE_Msk (0x1U << SAI_xIMR_WCKCFGIE_Pos) /*!< 0x00000004 */ | |
11916 #define SAI_xIMR_WCKCFGIE SAI_xIMR_WCKCFGIE_Msk /*!<Wrong Clock Configuration interrupt enable */ | |
11917 #define SAI_xIMR_FREQIE_Pos (3U) | |
11918 #define SAI_xIMR_FREQIE_Msk (0x1U << SAI_xIMR_FREQIE_Pos) /*!< 0x00000008 */ | |
11919 #define SAI_xIMR_FREQIE SAI_xIMR_FREQIE_Msk /*!<FIFO request interrupt enable */ | |
11920 #define SAI_xIMR_CNRDYIE_Pos (4U) | |
11921 #define SAI_xIMR_CNRDYIE_Msk (0x1U << SAI_xIMR_CNRDYIE_Pos) /*!< 0x00000010 */ | |
11922 #define SAI_xIMR_CNRDYIE SAI_xIMR_CNRDYIE_Msk /*!<Codec not ready interrupt enable */ | |
11923 #define SAI_xIMR_AFSDETIE_Pos (5U) | |
11924 #define SAI_xIMR_AFSDETIE_Msk (0x1U << SAI_xIMR_AFSDETIE_Pos) /*!< 0x00000020 */ | |
11925 #define SAI_xIMR_AFSDETIE SAI_xIMR_AFSDETIE_Msk /*!<Anticipated frame synchronization detection interrupt enable */ | |
11926 #define SAI_xIMR_LFSDETIE_Pos (6U) | |
11927 #define SAI_xIMR_LFSDETIE_Msk (0x1U << SAI_xIMR_LFSDETIE_Pos) /*!< 0x00000040 */ | |
11928 #define SAI_xIMR_LFSDETIE SAI_xIMR_LFSDETIE_Msk /*!<Late frame synchronization detection interrupt enable */ | |
11929 | |
11930 /******************** Bit definition for SAI_xSR register *******************/ | |
11931 #define SAI_xSR_OVRUDR_Pos (0U) | |
11932 #define SAI_xSR_OVRUDR_Msk (0x1U << SAI_xSR_OVRUDR_Pos) /*!< 0x00000001 */ | |
11933 #define SAI_xSR_OVRUDR SAI_xSR_OVRUDR_Msk /*!<Overrun underrun */ | |
11934 #define SAI_xSR_MUTEDET_Pos (1U) | |
11935 #define SAI_xSR_MUTEDET_Msk (0x1U << SAI_xSR_MUTEDET_Pos) /*!< 0x00000002 */ | |
11936 #define SAI_xSR_MUTEDET SAI_xSR_MUTEDET_Msk /*!<Mute detection */ | |
11937 #define SAI_xSR_WCKCFG_Pos (2U) | |
11938 #define SAI_xSR_WCKCFG_Msk (0x1U << SAI_xSR_WCKCFG_Pos) /*!< 0x00000004 */ | |
11939 #define SAI_xSR_WCKCFG SAI_xSR_WCKCFG_Msk /*!<Wrong Clock Configuration */ | |
11940 #define SAI_xSR_FREQ_Pos (3U) | |
11941 #define SAI_xSR_FREQ_Msk (0x1U << SAI_xSR_FREQ_Pos) /*!< 0x00000008 */ | |
11942 #define SAI_xSR_FREQ SAI_xSR_FREQ_Msk /*!<FIFO request */ | |
11943 #define SAI_xSR_CNRDY_Pos (4U) | |
11944 #define SAI_xSR_CNRDY_Msk (0x1U << SAI_xSR_CNRDY_Pos) /*!< 0x00000010 */ | |
11945 #define SAI_xSR_CNRDY SAI_xSR_CNRDY_Msk /*!<Codec not ready */ | |
11946 #define SAI_xSR_AFSDET_Pos (5U) | |
11947 #define SAI_xSR_AFSDET_Msk (0x1U << SAI_xSR_AFSDET_Pos) /*!< 0x00000020 */ | |
11948 #define SAI_xSR_AFSDET SAI_xSR_AFSDET_Msk /*!<Anticipated frame synchronization detection */ | |
11949 #define SAI_xSR_LFSDET_Pos (6U) | |
11950 #define SAI_xSR_LFSDET_Msk (0x1U << SAI_xSR_LFSDET_Pos) /*!< 0x00000040 */ | |
11951 #define SAI_xSR_LFSDET SAI_xSR_LFSDET_Msk /*!<Late frame synchronization detection */ | |
11952 | |
11953 #define SAI_xSR_FLVL_Pos (16U) | |
11954 #define SAI_xSR_FLVL_Msk (0x7U << SAI_xSR_FLVL_Pos) /*!< 0x00070000 */ | |
11955 #define SAI_xSR_FLVL SAI_xSR_FLVL_Msk /*!<FLVL[2:0] (FIFO Level Threshold) */ | |
11956 #define SAI_xSR_FLVL_0 (0x1U << SAI_xSR_FLVL_Pos) /*!< 0x00010000 */ | |
11957 #define SAI_xSR_FLVL_1 (0x2U << SAI_xSR_FLVL_Pos) /*!< 0x00020000 */ | |
11958 #define SAI_xSR_FLVL_2 (0x4U << SAI_xSR_FLVL_Pos) /*!< 0x00040000 */ | |
11959 | |
11960 /****************** Bit definition for SAI_xCLRFR register ******************/ | |
11961 #define SAI_xCLRFR_COVRUDR_Pos (0U) | |
11962 #define SAI_xCLRFR_COVRUDR_Msk (0x1U << SAI_xCLRFR_COVRUDR_Pos) /*!< 0x00000001 */ | |
11963 #define SAI_xCLRFR_COVRUDR SAI_xCLRFR_COVRUDR_Msk /*!<Clear Overrun underrun */ | |
11964 #define SAI_xCLRFR_CMUTEDET_Pos (1U) | |
11965 #define SAI_xCLRFR_CMUTEDET_Msk (0x1U << SAI_xCLRFR_CMUTEDET_Pos) /*!< 0x00000002 */ | |
11966 #define SAI_xCLRFR_CMUTEDET SAI_xCLRFR_CMUTEDET_Msk /*!<Clear Mute detection */ | |
11967 #define SAI_xCLRFR_CWCKCFG_Pos (2U) | |
11968 #define SAI_xCLRFR_CWCKCFG_Msk (0x1U << SAI_xCLRFR_CWCKCFG_Pos) /*!< 0x00000004 */ | |
11969 #define SAI_xCLRFR_CWCKCFG SAI_xCLRFR_CWCKCFG_Msk /*!<Clear Wrong Clock Configuration */ | |
11970 #define SAI_xCLRFR_CFREQ_Pos (3U) | |
11971 #define SAI_xCLRFR_CFREQ_Msk (0x1U << SAI_xCLRFR_CFREQ_Pos) /*!< 0x00000008 */ | |
11972 #define SAI_xCLRFR_CFREQ SAI_xCLRFR_CFREQ_Msk /*!<Clear FIFO request */ | |
11973 #define SAI_xCLRFR_CCNRDY_Pos (4U) | |
11974 #define SAI_xCLRFR_CCNRDY_Msk (0x1U << SAI_xCLRFR_CCNRDY_Pos) /*!< 0x00000010 */ | |
11975 #define SAI_xCLRFR_CCNRDY SAI_xCLRFR_CCNRDY_Msk /*!<Clear Codec not ready */ | |
11976 #define SAI_xCLRFR_CAFSDET_Pos (5U) | |
11977 #define SAI_xCLRFR_CAFSDET_Msk (0x1U << SAI_xCLRFR_CAFSDET_Pos) /*!< 0x00000020 */ | |
11978 #define SAI_xCLRFR_CAFSDET SAI_xCLRFR_CAFSDET_Msk /*!<Clear Anticipated frame synchronization detection */ | |
11979 #define SAI_xCLRFR_CLFSDET_Pos (6U) | |
11980 #define SAI_xCLRFR_CLFSDET_Msk (0x1U << SAI_xCLRFR_CLFSDET_Pos) /*!< 0x00000040 */ | |
11981 #define SAI_xCLRFR_CLFSDET SAI_xCLRFR_CLFSDET_Msk /*!<Clear Late frame synchronization detection */ | |
11982 | |
11983 /****************** Bit definition for SAI_xDR register ******************/ | |
11984 #define SAI_xDR_DATA_Pos (0U) | |
11985 #define SAI_xDR_DATA_Msk (0xFFFFFFFFU << SAI_xDR_DATA_Pos) /*!< 0xFFFFFFFF */ | |
11986 #define SAI_xDR_DATA SAI_xDR_DATA_Msk | |
11987 | |
11988 /******************************************************************************/ | |
11989 /* */ | |
11990 /* SDMMC Interface */ | |
11991 /* */ | |
11992 /******************************************************************************/ | |
11993 /****************** Bit definition for SDMMC_POWER register ******************/ | |
11994 #define SDMMC_POWER_PWRCTRL_Pos (0U) | |
11995 #define SDMMC_POWER_PWRCTRL_Msk (0x3U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000003 */ | |
11996 #define SDMMC_POWER_PWRCTRL SDMMC_POWER_PWRCTRL_Msk /*!<PWRCTRL[1:0] bits (Power supply control bits) */ | |
11997 #define SDMMC_POWER_PWRCTRL_0 (0x1U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000001 */ | |
11998 #define SDMMC_POWER_PWRCTRL_1 (0x2U << SDMMC_POWER_PWRCTRL_Pos) /*!< 0x00000002 */ | |
11999 | |
12000 /****************** Bit definition for SDMMC_CLKCR register ******************/ | |
12001 #define SDMMC_CLKCR_CLKDIV_Pos (0U) | |
12002 #define SDMMC_CLKCR_CLKDIV_Msk (0xFFU << SDMMC_CLKCR_CLKDIV_Pos) /*!< 0x000000FF */ | |
12003 #define SDMMC_CLKCR_CLKDIV SDMMC_CLKCR_CLKDIV_Msk /*!<Clock divide factor */ | |
12004 #define SDMMC_CLKCR_CLKEN_Pos (8U) | |
12005 #define SDMMC_CLKCR_CLKEN_Msk (0x1U << SDMMC_CLKCR_CLKEN_Pos) /*!< 0x00000100 */ | |
12006 #define SDMMC_CLKCR_CLKEN SDMMC_CLKCR_CLKEN_Msk /*!<Clock enable bit */ | |
12007 #define SDMMC_CLKCR_PWRSAV_Pos (9U) | |
12008 #define SDMMC_CLKCR_PWRSAV_Msk (0x1U << SDMMC_CLKCR_PWRSAV_Pos) /*!< 0x00000200 */ | |
12009 #define SDMMC_CLKCR_PWRSAV SDMMC_CLKCR_PWRSAV_Msk /*!<Power saving configuration bit */ | |
12010 #define SDMMC_CLKCR_BYPASS_Pos (10U) | |
12011 #define SDMMC_CLKCR_BYPASS_Msk (0x1U << SDMMC_CLKCR_BYPASS_Pos) /*!< 0x00000400 */ | |
12012 #define SDMMC_CLKCR_BYPASS SDMMC_CLKCR_BYPASS_Msk /*!<Clock divider bypass enable bit */ | |
12013 #define SDMMC_CLKCR_WIDBUS_Pos (11U) | |
12014 #define SDMMC_CLKCR_WIDBUS_Msk (0x3U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00001800 */ | |
12015 #define SDMMC_CLKCR_WIDBUS SDMMC_CLKCR_WIDBUS_Msk /*!<WIDBUS[1:0] bits (Wide bus mode enable bit) */ | |
12016 #define SDMMC_CLKCR_WIDBUS_0 (0x1U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00000800 */ | |
12017 #define SDMMC_CLKCR_WIDBUS_1 (0x2U << SDMMC_CLKCR_WIDBUS_Pos) /*!< 0x00001000 */ | |
12018 #define SDMMC_CLKCR_NEGEDGE_Pos (13U) | |
12019 #define SDMMC_CLKCR_NEGEDGE_Msk (0x1U << SDMMC_CLKCR_NEGEDGE_Pos) /*!< 0x00002000 */ | |
12020 #define SDMMC_CLKCR_NEGEDGE SDMMC_CLKCR_NEGEDGE_Msk /*!<SDMMC_CK dephasing selection bit */ | |
12021 #define SDMMC_CLKCR_HWFC_EN_Pos (14U) | |
12022 #define SDMMC_CLKCR_HWFC_EN_Msk (0x1U << SDMMC_CLKCR_HWFC_EN_Pos) /*!< 0x00004000 */ | |
12023 #define SDMMC_CLKCR_HWFC_EN SDMMC_CLKCR_HWFC_EN_Msk /*!<HW Flow Control enable */ | |
12024 | |
12025 /******************* Bit definition for SDMMC_ARG register *******************/ | |
12026 #define SDMMC_ARG_CMDARG_Pos (0U) | |
12027 #define SDMMC_ARG_CMDARG_Msk (0xFFFFFFFFU << SDMMC_ARG_CMDARG_Pos) /*!< 0xFFFFFFFF */ | |
12028 #define SDMMC_ARG_CMDARG SDMMC_ARG_CMDARG_Msk /*!<Command argument */ | |
12029 | |
12030 /******************* Bit definition for SDMMC_CMD register *******************/ | |
12031 #define SDMMC_CMD_CMDINDEX_Pos (0U) | |
12032 #define SDMMC_CMD_CMDINDEX_Msk (0x3FU << SDMMC_CMD_CMDINDEX_Pos) /*!< 0x0000003F */ | |
12033 #define SDMMC_CMD_CMDINDEX SDMMC_CMD_CMDINDEX_Msk /*!<Command Index */ | |
12034 #define SDMMC_CMD_WAITRESP_Pos (6U) | |
12035 #define SDMMC_CMD_WAITRESP_Msk (0x3U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x000000C0 */ | |
12036 #define SDMMC_CMD_WAITRESP SDMMC_CMD_WAITRESP_Msk /*!<WAITRESP[1:0] bits (Wait for response bits) */ | |
12037 #define SDMMC_CMD_WAITRESP_0 (0x1U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000040 */ | |
12038 #define SDMMC_CMD_WAITRESP_1 (0x2U << SDMMC_CMD_WAITRESP_Pos) /*!< 0x00000080 */ | |
12039 #define SDMMC_CMD_WAITINT_Pos (8U) | |
12040 #define SDMMC_CMD_WAITINT_Msk (0x1U << SDMMC_CMD_WAITINT_Pos) /*!< 0x00000100 */ | |
12041 #define SDMMC_CMD_WAITINT SDMMC_CMD_WAITINT_Msk /*!<CPSM Waits for Interrupt Request */ | |
12042 #define SDMMC_CMD_WAITPEND_Pos (9U) | |
12043 #define SDMMC_CMD_WAITPEND_Msk (0x1U << SDMMC_CMD_WAITPEND_Pos) /*!< 0x00000200 */ | |
12044 #define SDMMC_CMD_WAITPEND SDMMC_CMD_WAITPEND_Msk /*!<CPSM Waits for ends of data transfer (CmdPend internal signal) */ | |
12045 #define SDMMC_CMD_CPSMEN_Pos (10U) | |
12046 #define SDMMC_CMD_CPSMEN_Msk (0x1U << SDMMC_CMD_CPSMEN_Pos) /*!< 0x00000400 */ | |
12047 #define SDMMC_CMD_CPSMEN SDMMC_CMD_CPSMEN_Msk /*!<Command path state machine (CPSM) Enable bit */ | |
12048 #define SDMMC_CMD_SDIOSUSPEND_Pos (11U) | |
12049 #define SDMMC_CMD_SDIOSUSPEND_Msk (0x1U << SDMMC_CMD_SDIOSUSPEND_Pos) /*!< 0x00000800 */ | |
12050 #define SDMMC_CMD_SDIOSUSPEND SDMMC_CMD_SDIOSUSPEND_Msk /*!<SD I/O suspend command */ | |
12051 | |
12052 /***************** Bit definition for SDMMC_RESPCMD register *****************/ | |
12053 #define SDMMC_RESPCMD_RESPCMD_Pos (0U) | |
12054 #define SDMMC_RESPCMD_RESPCMD_Msk (0x3FU << SDMMC_RESPCMD_RESPCMD_Pos) /*!< 0x0000003F */ | |
12055 #define SDMMC_RESPCMD_RESPCMD SDMMC_RESPCMD_RESPCMD_Msk /*!<Response command index */ | |
12056 | |
12057 /****************** Bit definition for SDMMC_RESP0 register ******************/ | |
12058 #define SDMMC_RESP0_CARDSTATUS0_Pos (0U) | |
12059 #define SDMMC_RESP0_CARDSTATUS0_Msk (0xFFFFFFFFU << SDMMC_RESP0_CARDSTATUS0_Pos) /*!< 0xFFFFFFFF */ | |
12060 #define SDMMC_RESP0_CARDSTATUS0 SDMMC_RESP0_CARDSTATUS0_Msk /*!<Card Status */ | |
12061 | |
12062 /****************** Bit definition for SDMMC_RESP1 register ******************/ | |
12063 #define SDMMC_RESP1_CARDSTATUS1_Pos (0U) | |
12064 #define SDMMC_RESP1_CARDSTATUS1_Msk (0xFFFFFFFFU << SDMMC_RESP1_CARDSTATUS1_Pos) /*!< 0xFFFFFFFF */ | |
12065 #define SDMMC_RESP1_CARDSTATUS1 SDMMC_RESP1_CARDSTATUS1_Msk /*!<Card Status */ | |
12066 | |
12067 /****************** Bit definition for SDMMC_RESP2 register ******************/ | |
12068 #define SDMMC_RESP2_CARDSTATUS2_Pos (0U) | |
12069 #define SDMMC_RESP2_CARDSTATUS2_Msk (0xFFFFFFFFU << SDMMC_RESP2_CARDSTATUS2_Pos) /*!< 0xFFFFFFFF */ | |
12070 #define SDMMC_RESP2_CARDSTATUS2 SDMMC_RESP2_CARDSTATUS2_Msk /*!<Card Status */ | |
12071 | |
12072 /****************** Bit definition for SDMMC_RESP3 register ******************/ | |
12073 #define SDMMC_RESP3_CARDSTATUS3_Pos (0U) | |
12074 #define SDMMC_RESP3_CARDSTATUS3_Msk (0xFFFFFFFFU << SDMMC_RESP3_CARDSTATUS3_Pos) /*!< 0xFFFFFFFF */ | |
12075 #define SDMMC_RESP3_CARDSTATUS3 SDMMC_RESP3_CARDSTATUS3_Msk /*!<Card Status */ | |
12076 | |
12077 /****************** Bit definition for SDMMC_RESP4 register ******************/ | |
12078 #define SDMMC_RESP4_CARDSTATUS4_Pos (0U) | |
12079 #define SDMMC_RESP4_CARDSTATUS4_Msk (0xFFFFFFFFU << SDMMC_RESP4_CARDSTATUS4_Pos) /*!< 0xFFFFFFFF */ | |
12080 #define SDMMC_RESP4_CARDSTATUS4 SDMMC_RESP4_CARDSTATUS4_Msk /*!<Card Status */ | |
12081 | |
12082 /****************** Bit definition for SDMMC_DTIMER register *****************/ | |
12083 #define SDMMC_DTIMER_DATATIME_Pos (0U) | |
12084 #define SDMMC_DTIMER_DATATIME_Msk (0xFFFFFFFFU << SDMMC_DTIMER_DATATIME_Pos) /*!< 0xFFFFFFFF */ | |
12085 #define SDMMC_DTIMER_DATATIME SDMMC_DTIMER_DATATIME_Msk /*!<Data timeout period. */ | |
12086 | |
12087 /****************** Bit definition for SDMMC_DLEN register *******************/ | |
12088 #define SDMMC_DLEN_DATALENGTH_Pos (0U) | |
12089 #define SDMMC_DLEN_DATALENGTH_Msk (0x1FFFFFFU << SDMMC_DLEN_DATALENGTH_Pos) /*!< 0x01FFFFFF */ | |
12090 #define SDMMC_DLEN_DATALENGTH SDMMC_DLEN_DATALENGTH_Msk /*!<Data length value */ | |
12091 | |
12092 /****************** Bit definition for SDMMC_DCTRL register ******************/ | |
12093 #define SDMMC_DCTRL_DTEN_Pos (0U) | |
12094 #define SDMMC_DCTRL_DTEN_Msk (0x1U << SDMMC_DCTRL_DTEN_Pos) /*!< 0x00000001 */ | |
12095 #define SDMMC_DCTRL_DTEN SDMMC_DCTRL_DTEN_Msk /*!<Data transfer enabled bit */ | |
12096 #define SDMMC_DCTRL_DTDIR_Pos (1U) | |
12097 #define SDMMC_DCTRL_DTDIR_Msk (0x1U << SDMMC_DCTRL_DTDIR_Pos) /*!< 0x00000002 */ | |
12098 #define SDMMC_DCTRL_DTDIR SDMMC_DCTRL_DTDIR_Msk /*!<Data transfer direction selection */ | |
12099 #define SDMMC_DCTRL_DTMODE_Pos (2U) | |
12100 #define SDMMC_DCTRL_DTMODE_Msk (0x1U << SDMMC_DCTRL_DTMODE_Pos) /*!< 0x00000004 */ | |
12101 #define SDMMC_DCTRL_DTMODE SDMMC_DCTRL_DTMODE_Msk /*!<Data transfer mode selection */ | |
12102 #define SDMMC_DCTRL_DMAEN_Pos (3U) | |
12103 #define SDMMC_DCTRL_DMAEN_Msk (0x1U << SDMMC_DCTRL_DMAEN_Pos) /*!< 0x00000008 */ | |
12104 #define SDMMC_DCTRL_DMAEN SDMMC_DCTRL_DMAEN_Msk /*!<DMA enabled bit */ | |
12105 #define SDMMC_DCTRL_DBLOCKSIZE_Pos (4U) | |
12106 #define SDMMC_DCTRL_DBLOCKSIZE_Msk (0xFU << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x000000F0 */ | |
12107 #define SDMMC_DCTRL_DBLOCKSIZE SDMMC_DCTRL_DBLOCKSIZE_Msk /*!<DBLOCKSIZE[3:0] bits (Data block size) */ | |
12108 #define SDMMC_DCTRL_DBLOCKSIZE_0 (0x1U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000010 */ | |
12109 #define SDMMC_DCTRL_DBLOCKSIZE_1 (0x2U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000020 */ | |
12110 #define SDMMC_DCTRL_DBLOCKSIZE_2 (0x4U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000040 */ | |
12111 #define SDMMC_DCTRL_DBLOCKSIZE_3 (0x8U << SDMMC_DCTRL_DBLOCKSIZE_Pos) /*!< 0x00000080 */ | |
12112 #define SDMMC_DCTRL_RWSTART_Pos (8U) | |
12113 #define SDMMC_DCTRL_RWSTART_Msk (0x1U << SDMMC_DCTRL_RWSTART_Pos) /*!< 0x00000100 */ | |
12114 #define SDMMC_DCTRL_RWSTART SDMMC_DCTRL_RWSTART_Msk /*!<Read wait start */ | |
12115 #define SDMMC_DCTRL_RWSTOP_Pos (9U) | |
12116 #define SDMMC_DCTRL_RWSTOP_Msk (0x1U << SDMMC_DCTRL_RWSTOP_Pos) /*!< 0x00000200 */ | |
12117 #define SDMMC_DCTRL_RWSTOP SDMMC_DCTRL_RWSTOP_Msk /*!<Read wait stop */ | |
12118 #define SDMMC_DCTRL_RWMOD_Pos (10U) | |
12119 #define SDMMC_DCTRL_RWMOD_Msk (0x1U << SDMMC_DCTRL_RWMOD_Pos) /*!< 0x00000400 */ | |
12120 #define SDMMC_DCTRL_RWMOD SDMMC_DCTRL_RWMOD_Msk /*!<Read wait mode */ | |
12121 #define SDMMC_DCTRL_SDIOEN_Pos (11U) | |
12122 #define SDMMC_DCTRL_SDIOEN_Msk (0x1U << SDMMC_DCTRL_SDIOEN_Pos) /*!< 0x00000800 */ | |
12123 #define SDMMC_DCTRL_SDIOEN SDMMC_DCTRL_SDIOEN_Msk /*!<SD I/O enable functions */ | |
12124 | |
12125 /****************** Bit definition for SDMMC_DCOUNT register *****************/ | |
12126 #define SDMMC_DCOUNT_DATACOUNT_Pos (0U) | |
12127 #define SDMMC_DCOUNT_DATACOUNT_Msk (0x1FFFFFFU << SDMMC_DCOUNT_DATACOUNT_Pos) /*!< 0x01FFFFFF */ | |
12128 #define SDMMC_DCOUNT_DATACOUNT SDMMC_DCOUNT_DATACOUNT_Msk /*!<Data count value */ | |
12129 | |
12130 /****************** Bit definition for SDMMC_STA register ********************/ | |
12131 #define SDMMC_STA_CCRCFAIL_Pos (0U) | |
12132 #define SDMMC_STA_CCRCFAIL_Msk (0x1U << SDMMC_STA_CCRCFAIL_Pos) /*!< 0x00000001 */ | |
12133 #define SDMMC_STA_CCRCFAIL SDMMC_STA_CCRCFAIL_Msk /*!<Command response received (CRC check failed) */ | |
12134 #define SDMMC_STA_DCRCFAIL_Pos (1U) | |
12135 #define SDMMC_STA_DCRCFAIL_Msk (0x1U << SDMMC_STA_DCRCFAIL_Pos) /*!< 0x00000002 */ | |
12136 #define SDMMC_STA_DCRCFAIL SDMMC_STA_DCRCFAIL_Msk /*!<Data block sent/received (CRC check failed) */ | |
12137 #define SDMMC_STA_CTIMEOUT_Pos (2U) | |
12138 #define SDMMC_STA_CTIMEOUT_Msk (0x1U << SDMMC_STA_CTIMEOUT_Pos) /*!< 0x00000004 */ | |
12139 #define SDMMC_STA_CTIMEOUT SDMMC_STA_CTIMEOUT_Msk /*!<Command response timeout */ | |
12140 #define SDMMC_STA_DTIMEOUT_Pos (3U) | |
12141 #define SDMMC_STA_DTIMEOUT_Msk (0x1U << SDMMC_STA_DTIMEOUT_Pos) /*!< 0x00000008 */ | |
12142 #define SDMMC_STA_DTIMEOUT SDMMC_STA_DTIMEOUT_Msk /*!<Data timeout */ | |
12143 #define SDMMC_STA_TXUNDERR_Pos (4U) | |
12144 #define SDMMC_STA_TXUNDERR_Msk (0x1U << SDMMC_STA_TXUNDERR_Pos) /*!< 0x00000010 */ | |
12145 #define SDMMC_STA_TXUNDERR SDMMC_STA_TXUNDERR_Msk /*!<Transmit FIFO underrun error */ | |
12146 #define SDMMC_STA_RXOVERR_Pos (5U) | |
12147 #define SDMMC_STA_RXOVERR_Msk (0x1U << SDMMC_STA_RXOVERR_Pos) /*!< 0x00000020 */ | |
12148 #define SDMMC_STA_RXOVERR SDMMC_STA_RXOVERR_Msk /*!<Received FIFO overrun error */ | |
12149 #define SDMMC_STA_CMDREND_Pos (6U) | |
12150 #define SDMMC_STA_CMDREND_Msk (0x1U << SDMMC_STA_CMDREND_Pos) /*!< 0x00000040 */ | |
12151 #define SDMMC_STA_CMDREND SDMMC_STA_CMDREND_Msk /*!<Command response received (CRC check passed) */ | |
12152 #define SDMMC_STA_CMDSENT_Pos (7U) | |
12153 #define SDMMC_STA_CMDSENT_Msk (0x1U << SDMMC_STA_CMDSENT_Pos) /*!< 0x00000080 */ | |
12154 #define SDMMC_STA_CMDSENT SDMMC_STA_CMDSENT_Msk /*!<Command sent (no response required) */ | |
12155 #define SDMMC_STA_DATAEND_Pos (8U) | |
12156 #define SDMMC_STA_DATAEND_Msk (0x1U << SDMMC_STA_DATAEND_Pos) /*!< 0x00000100 */ | |
12157 #define SDMMC_STA_DATAEND SDMMC_STA_DATAEND_Msk /*!<Data end (data counter, SDIDCOUNT, is zero) */ | |
12158 #define SDMMC_STA_STBITERR_Pos (9U) | |
12159 #define SDMMC_STA_STBITERR_Msk (0x1U << SDMMC_STA_STBITERR_Pos) /*!< 0x00000200 */ | |
12160 #define SDMMC_STA_STBITERR SDMMC_STA_STBITERR_Msk /*!<Start bit not detected on all data signals in wide bus mode */ | |
12161 #define SDMMC_STA_DBCKEND_Pos (10U) | |
12162 #define SDMMC_STA_DBCKEND_Msk (0x1U << SDMMC_STA_DBCKEND_Pos) /*!< 0x00000400 */ | |
12163 #define SDMMC_STA_DBCKEND SDMMC_STA_DBCKEND_Msk /*!<Data block sent/received (CRC check passed) */ | |
12164 #define SDMMC_STA_CMDACT_Pos (11U) | |
12165 #define SDMMC_STA_CMDACT_Msk (0x1U << SDMMC_STA_CMDACT_Pos) /*!< 0x00000800 */ | |
12166 #define SDMMC_STA_CMDACT SDMMC_STA_CMDACT_Msk /*!<Command transfer in progress */ | |
12167 #define SDMMC_STA_TXACT_Pos (12U) | |
12168 #define SDMMC_STA_TXACT_Msk (0x1U << SDMMC_STA_TXACT_Pos) /*!< 0x00001000 */ | |
12169 #define SDMMC_STA_TXACT SDMMC_STA_TXACT_Msk /*!<Data transmit in progress */ | |
12170 #define SDMMC_STA_RXACT_Pos (13U) | |
12171 #define SDMMC_STA_RXACT_Msk (0x1U << SDMMC_STA_RXACT_Pos) /*!< 0x00002000 */ | |
12172 #define SDMMC_STA_RXACT SDMMC_STA_RXACT_Msk /*!<Data receive in progress */ | |
12173 #define SDMMC_STA_TXFIFOHE_Pos (14U) | |
12174 #define SDMMC_STA_TXFIFOHE_Msk (0x1U << SDMMC_STA_TXFIFOHE_Pos) /*!< 0x00004000 */ | |
12175 #define SDMMC_STA_TXFIFOHE SDMMC_STA_TXFIFOHE_Msk /*!<Transmit FIFO Half Empty: at least 8 words can be written into the FIFO */ | |
12176 #define SDMMC_STA_RXFIFOHF_Pos (15U) | |
12177 #define SDMMC_STA_RXFIFOHF_Msk (0x1U << SDMMC_STA_RXFIFOHF_Pos) /*!< 0x00008000 */ | |
12178 #define SDMMC_STA_RXFIFOHF SDMMC_STA_RXFIFOHF_Msk /*!<Receive FIFO Half Full: there are at least 8 words in the FIFO */ | |
12179 #define SDMMC_STA_TXFIFOF_Pos (16U) | |
12180 #define SDMMC_STA_TXFIFOF_Msk (0x1U << SDMMC_STA_TXFIFOF_Pos) /*!< 0x00010000 */ | |
12181 #define SDMMC_STA_TXFIFOF SDMMC_STA_TXFIFOF_Msk /*!<Transmit FIFO full */ | |
12182 #define SDMMC_STA_RXFIFOF_Pos (17U) | |
12183 #define SDMMC_STA_RXFIFOF_Msk (0x1U << SDMMC_STA_RXFIFOF_Pos) /*!< 0x00020000 */ | |
12184 #define SDMMC_STA_RXFIFOF SDMMC_STA_RXFIFOF_Msk /*!<Receive FIFO full */ | |
12185 #define SDMMC_STA_TXFIFOE_Pos (18U) | |
12186 #define SDMMC_STA_TXFIFOE_Msk (0x1U << SDMMC_STA_TXFIFOE_Pos) /*!< 0x00040000 */ | |
12187 #define SDMMC_STA_TXFIFOE SDMMC_STA_TXFIFOE_Msk /*!<Transmit FIFO empty */ | |
12188 #define SDMMC_STA_RXFIFOE_Pos (19U) | |
12189 #define SDMMC_STA_RXFIFOE_Msk (0x1U << SDMMC_STA_RXFIFOE_Pos) /*!< 0x00080000 */ | |
12190 #define SDMMC_STA_RXFIFOE SDMMC_STA_RXFIFOE_Msk /*!<Receive FIFO empty */ | |
12191 #define SDMMC_STA_TXDAVL_Pos (20U) | |
12192 #define SDMMC_STA_TXDAVL_Msk (0x1U << SDMMC_STA_TXDAVL_Pos) /*!< 0x00100000 */ | |
12193 #define SDMMC_STA_TXDAVL SDMMC_STA_TXDAVL_Msk /*!<Data available in transmit FIFO */ | |
12194 #define SDMMC_STA_RXDAVL_Pos (21U) | |
12195 #define SDMMC_STA_RXDAVL_Msk (0x1U << SDMMC_STA_RXDAVL_Pos) /*!< 0x00200000 */ | |
12196 #define SDMMC_STA_RXDAVL SDMMC_STA_RXDAVL_Msk /*!<Data available in receive FIFO */ | |
12197 #define SDMMC_STA_SDIOIT_Pos (22U) | |
12198 #define SDMMC_STA_SDIOIT_Msk (0x1U << SDMMC_STA_SDIOIT_Pos) /*!< 0x00400000 */ | |
12199 #define SDMMC_STA_SDIOIT SDMMC_STA_SDIOIT_Msk /*!<SDIO interrupt received */ | |
12200 | |
12201 /******************* Bit definition for SDMMC_ICR register *******************/ | |
12202 #define SDMMC_ICR_CCRCFAILC_Pos (0U) | |
12203 #define SDMMC_ICR_CCRCFAILC_Msk (0x1U << SDMMC_ICR_CCRCFAILC_Pos) /*!< 0x00000001 */ | |
12204 #define SDMMC_ICR_CCRCFAILC SDMMC_ICR_CCRCFAILC_Msk /*!<CCRCFAIL flag clear bit */ | |
12205 #define SDMMC_ICR_DCRCFAILC_Pos (1U) | |
12206 #define SDMMC_ICR_DCRCFAILC_Msk (0x1U << SDMMC_ICR_DCRCFAILC_Pos) /*!< 0x00000002 */ | |
12207 #define SDMMC_ICR_DCRCFAILC SDMMC_ICR_DCRCFAILC_Msk /*!<DCRCFAIL flag clear bit */ | |
12208 #define SDMMC_ICR_CTIMEOUTC_Pos (2U) | |
12209 #define SDMMC_ICR_CTIMEOUTC_Msk (0x1U << SDMMC_ICR_CTIMEOUTC_Pos) /*!< 0x00000004 */ | |
12210 #define SDMMC_ICR_CTIMEOUTC SDMMC_ICR_CTIMEOUTC_Msk /*!<CTIMEOUT flag clear bit */ | |
12211 #define SDMMC_ICR_DTIMEOUTC_Pos (3U) | |
12212 #define SDMMC_ICR_DTIMEOUTC_Msk (0x1U << SDMMC_ICR_DTIMEOUTC_Pos) /*!< 0x00000008 */ | |
12213 #define SDMMC_ICR_DTIMEOUTC SDMMC_ICR_DTIMEOUTC_Msk /*!<DTIMEOUT flag clear bit */ | |
12214 #define SDMMC_ICR_TXUNDERRC_Pos (4U) | |
12215 #define SDMMC_ICR_TXUNDERRC_Msk (0x1U << SDMMC_ICR_TXUNDERRC_Pos) /*!< 0x00000010 */ | |
12216 #define SDMMC_ICR_TXUNDERRC SDMMC_ICR_TXUNDERRC_Msk /*!<TXUNDERR flag clear bit */ | |
12217 #define SDMMC_ICR_RXOVERRC_Pos (5U) | |
12218 #define SDMMC_ICR_RXOVERRC_Msk (0x1U << SDMMC_ICR_RXOVERRC_Pos) /*!< 0x00000020 */ | |
12219 #define SDMMC_ICR_RXOVERRC SDMMC_ICR_RXOVERRC_Msk /*!<RXOVERR flag clear bit */ | |
12220 #define SDMMC_ICR_CMDRENDC_Pos (6U) | |
12221 #define SDMMC_ICR_CMDRENDC_Msk (0x1U << SDMMC_ICR_CMDRENDC_Pos) /*!< 0x00000040 */ | |
12222 #define SDMMC_ICR_CMDRENDC SDMMC_ICR_CMDRENDC_Msk /*!<CMDREND flag clear bit */ | |
12223 #define SDMMC_ICR_CMDSENTC_Pos (7U) | |
12224 #define SDMMC_ICR_CMDSENTC_Msk (0x1U << SDMMC_ICR_CMDSENTC_Pos) /*!< 0x00000080 */ | |
12225 #define SDMMC_ICR_CMDSENTC SDMMC_ICR_CMDSENTC_Msk /*!<CMDSENT flag clear bit */ | |
12226 #define SDMMC_ICR_DATAENDC_Pos (8U) | |
12227 #define SDMMC_ICR_DATAENDC_Msk (0x1U << SDMMC_ICR_DATAENDC_Pos) /*!< 0x00000100 */ | |
12228 #define SDMMC_ICR_DATAENDC SDMMC_ICR_DATAENDC_Msk /*!<DATAEND flag clear bit */ | |
12229 #define SDMMC_ICR_STBITERRC_Pos (9U) | |
12230 #define SDMMC_ICR_STBITERRC_Msk (0x1U << SDMMC_ICR_STBITERRC_Pos) /*!< 0x00000200 */ | |
12231 #define SDMMC_ICR_STBITERRC SDMMC_ICR_STBITERRC_Msk /*!<STBITERR flag clear bit */ | |
12232 #define SDMMC_ICR_DBCKENDC_Pos (10U) | |
12233 #define SDMMC_ICR_DBCKENDC_Msk (0x1U << SDMMC_ICR_DBCKENDC_Pos) /*!< 0x00000400 */ | |
12234 #define SDMMC_ICR_DBCKENDC SDMMC_ICR_DBCKENDC_Msk /*!<DBCKEND flag clear bit */ | |
12235 #define SDMMC_ICR_SDIOITC_Pos (22U) | |
12236 #define SDMMC_ICR_SDIOITC_Msk (0x1U << SDMMC_ICR_SDIOITC_Pos) /*!< 0x00400000 */ | |
12237 #define SDMMC_ICR_SDIOITC SDMMC_ICR_SDIOITC_Msk /*!<SDIOIT flag clear bit */ | |
12238 | |
12239 /****************** Bit definition for SDMMC_MASK register *******************/ | |
12240 #define SDMMC_MASK_CCRCFAILIE_Pos (0U) | |
12241 #define SDMMC_MASK_CCRCFAILIE_Msk (0x1U << SDMMC_MASK_CCRCFAILIE_Pos) /*!< 0x00000001 */ | |
12242 #define SDMMC_MASK_CCRCFAILIE SDMMC_MASK_CCRCFAILIE_Msk /*!<Command CRC Fail Interrupt Enable */ | |
12243 #define SDMMC_MASK_DCRCFAILIE_Pos (1U) | |
12244 #define SDMMC_MASK_DCRCFAILIE_Msk (0x1U << SDMMC_MASK_DCRCFAILIE_Pos) /*!< 0x00000002 */ | |
12245 #define SDMMC_MASK_DCRCFAILIE SDMMC_MASK_DCRCFAILIE_Msk /*!<Data CRC Fail Interrupt Enable */ | |
12246 #define SDMMC_MASK_CTIMEOUTIE_Pos (2U) | |
12247 #define SDMMC_MASK_CTIMEOUTIE_Msk (0x1U << SDMMC_MASK_CTIMEOUTIE_Pos) /*!< 0x00000004 */ | |
12248 #define SDMMC_MASK_CTIMEOUTIE SDMMC_MASK_CTIMEOUTIE_Msk /*!<Command TimeOut Interrupt Enable */ | |
12249 #define SDMMC_MASK_DTIMEOUTIE_Pos (3U) | |
12250 #define SDMMC_MASK_DTIMEOUTIE_Msk (0x1U << SDMMC_MASK_DTIMEOUTIE_Pos) /*!< 0x00000008 */ | |
12251 #define SDMMC_MASK_DTIMEOUTIE SDMMC_MASK_DTIMEOUTIE_Msk /*!<Data TimeOut Interrupt Enable */ | |
12252 #define SDMMC_MASK_TXUNDERRIE_Pos (4U) | |
12253 #define SDMMC_MASK_TXUNDERRIE_Msk (0x1U << SDMMC_MASK_TXUNDERRIE_Pos) /*!< 0x00000010 */ | |
12254 #define SDMMC_MASK_TXUNDERRIE SDMMC_MASK_TXUNDERRIE_Msk /*!<Tx FIFO UnderRun Error Interrupt Enable */ | |
12255 #define SDMMC_MASK_RXOVERRIE_Pos (5U) | |
12256 #define SDMMC_MASK_RXOVERRIE_Msk (0x1U << SDMMC_MASK_RXOVERRIE_Pos) /*!< 0x00000020 */ | |
12257 #define SDMMC_MASK_RXOVERRIE SDMMC_MASK_RXOVERRIE_Msk /*!<Rx FIFO OverRun Error Interrupt Enable */ | |
12258 #define SDMMC_MASK_CMDRENDIE_Pos (6U) | |
12259 #define SDMMC_MASK_CMDRENDIE_Msk (0x1U << SDMMC_MASK_CMDRENDIE_Pos) /*!< 0x00000040 */ | |
12260 #define SDMMC_MASK_CMDRENDIE SDMMC_MASK_CMDRENDIE_Msk /*!<Command Response Received Interrupt Enable */ | |
12261 #define SDMMC_MASK_CMDSENTIE_Pos (7U) | |
12262 #define SDMMC_MASK_CMDSENTIE_Msk (0x1U << SDMMC_MASK_CMDSENTIE_Pos) /*!< 0x00000080 */ | |
12263 #define SDMMC_MASK_CMDSENTIE SDMMC_MASK_CMDSENTIE_Msk /*!<Command Sent Interrupt Enable */ | |
12264 #define SDMMC_MASK_DATAENDIE_Pos (8U) | |
12265 #define SDMMC_MASK_DATAENDIE_Msk (0x1U << SDMMC_MASK_DATAENDIE_Pos) /*!< 0x00000100 */ | |
12266 #define SDMMC_MASK_DATAENDIE SDMMC_MASK_DATAENDIE_Msk /*!<Data End Interrupt Enable */ | |
12267 #define SDMMC_MASK_DBCKENDIE_Pos (10U) | |
12268 #define SDMMC_MASK_DBCKENDIE_Msk (0x1U << SDMMC_MASK_DBCKENDIE_Pos) /*!< 0x00000400 */ | |
12269 #define SDMMC_MASK_DBCKENDIE SDMMC_MASK_DBCKENDIE_Msk /*!<Data Block End Interrupt Enable */ | |
12270 #define SDMMC_MASK_CMDACTIE_Pos (11U) | |
12271 #define SDMMC_MASK_CMDACTIE_Msk (0x1U << SDMMC_MASK_CMDACTIE_Pos) /*!< 0x00000800 */ | |
12272 #define SDMMC_MASK_CMDACTIE SDMMC_MASK_CMDACTIE_Msk /*!<CCommand Acting Interrupt Enable */ | |
12273 #define SDMMC_MASK_TXACTIE_Pos (12U) | |
12274 #define SDMMC_MASK_TXACTIE_Msk (0x1U << SDMMC_MASK_TXACTIE_Pos) /*!< 0x00001000 */ | |
12275 #define SDMMC_MASK_TXACTIE SDMMC_MASK_TXACTIE_Msk /*!<Data Transmit Acting Interrupt Enable */ | |
12276 #define SDMMC_MASK_RXACTIE_Pos (13U) | |
12277 #define SDMMC_MASK_RXACTIE_Msk (0x1U << SDMMC_MASK_RXACTIE_Pos) /*!< 0x00002000 */ | |
12278 #define SDMMC_MASK_RXACTIE SDMMC_MASK_RXACTIE_Msk /*!<Data receive acting interrupt enabled */ | |
12279 #define SDMMC_MASK_TXFIFOHEIE_Pos (14U) | |
12280 #define SDMMC_MASK_TXFIFOHEIE_Msk (0x1U << SDMMC_MASK_TXFIFOHEIE_Pos) /*!< 0x00004000 */ | |
12281 #define SDMMC_MASK_TXFIFOHEIE SDMMC_MASK_TXFIFOHEIE_Msk /*!<Tx FIFO Half Empty interrupt Enable */ | |
12282 #define SDMMC_MASK_RXFIFOHFIE_Pos (15U) | |
12283 #define SDMMC_MASK_RXFIFOHFIE_Msk (0x1U << SDMMC_MASK_RXFIFOHFIE_Pos) /*!< 0x00008000 */ | |
12284 #define SDMMC_MASK_RXFIFOHFIE SDMMC_MASK_RXFIFOHFIE_Msk /*!<Rx FIFO Half Full interrupt Enable */ | |
12285 #define SDMMC_MASK_TXFIFOFIE_Pos (16U) | |
12286 #define SDMMC_MASK_TXFIFOFIE_Msk (0x1U << SDMMC_MASK_TXFIFOFIE_Pos) /*!< 0x00010000 */ | |
12287 #define SDMMC_MASK_TXFIFOFIE SDMMC_MASK_TXFIFOFIE_Msk /*!<Tx FIFO Full interrupt Enable */ | |
12288 #define SDMMC_MASK_RXFIFOFIE_Pos (17U) | |
12289 #define SDMMC_MASK_RXFIFOFIE_Msk (0x1U << SDMMC_MASK_RXFIFOFIE_Pos) /*!< 0x00020000 */ | |
12290 #define SDMMC_MASK_RXFIFOFIE SDMMC_MASK_RXFIFOFIE_Msk /*!<Rx FIFO Full interrupt Enable */ | |
12291 #define SDMMC_MASK_TXFIFOEIE_Pos (18U) | |
12292 #define SDMMC_MASK_TXFIFOEIE_Msk (0x1U << SDMMC_MASK_TXFIFOEIE_Pos) /*!< 0x00040000 */ | |
12293 #define SDMMC_MASK_TXFIFOEIE SDMMC_MASK_TXFIFOEIE_Msk /*!<Tx FIFO Empty interrupt Enable */ | |
12294 #define SDMMC_MASK_RXFIFOEIE_Pos (19U) | |
12295 #define SDMMC_MASK_RXFIFOEIE_Msk (0x1U << SDMMC_MASK_RXFIFOEIE_Pos) /*!< 0x00080000 */ | |
12296 #define SDMMC_MASK_RXFIFOEIE SDMMC_MASK_RXFIFOEIE_Msk /*!<Rx FIFO Empty interrupt Enable */ | |
12297 #define SDMMC_MASK_TXDAVLIE_Pos (20U) | |
12298 #define SDMMC_MASK_TXDAVLIE_Msk (0x1U << SDMMC_MASK_TXDAVLIE_Pos) /*!< 0x00100000 */ | |
12299 #define SDMMC_MASK_TXDAVLIE SDMMC_MASK_TXDAVLIE_Msk /*!<Data available in Tx FIFO interrupt Enable */ | |
12300 #define SDMMC_MASK_RXDAVLIE_Pos (21U) | |
12301 #define SDMMC_MASK_RXDAVLIE_Msk (0x1U << SDMMC_MASK_RXDAVLIE_Pos) /*!< 0x00200000 */ | |
12302 #define SDMMC_MASK_RXDAVLIE SDMMC_MASK_RXDAVLIE_Msk /*!<Data available in Rx FIFO interrupt Enable */ | |
12303 #define SDMMC_MASK_SDIOITIE_Pos (22U) | |
12304 #define SDMMC_MASK_SDIOITIE_Msk (0x1U << SDMMC_MASK_SDIOITIE_Pos) /*!< 0x00400000 */ | |
12305 #define SDMMC_MASK_SDIOITIE SDMMC_MASK_SDIOITIE_Msk /*!<SDIO Mode Interrupt Received interrupt Enable */ | |
12306 | |
12307 /***************** Bit definition for SDMMC_FIFOCNT register *****************/ | |
12308 #define SDMMC_FIFOCNT_FIFOCOUNT_Pos (0U) | |
12309 #define SDMMC_FIFOCNT_FIFOCOUNT_Msk (0xFFFFFFU << SDMMC_FIFOCNT_FIFOCOUNT_Pos) /*!< 0x00FFFFFF */ | |
12310 #define SDMMC_FIFOCNT_FIFOCOUNT SDMMC_FIFOCNT_FIFOCOUNT_Msk /*!<Remaining number of words to be written to or read from the FIFO */ | |
12311 | |
12312 /****************** Bit definition for SDMMC_FIFO register *******************/ | |
12313 #define SDMMC_FIFO_FIFODATA_Pos (0U) | |
12314 #define SDMMC_FIFO_FIFODATA_Msk (0xFFFFFFFFU << SDMMC_FIFO_FIFODATA_Pos) /*!< 0xFFFFFFFF */ | |
12315 #define SDMMC_FIFO_FIFODATA SDMMC_FIFO_FIFODATA_Msk /*!<Receive and transmit FIFO data */ | |
12316 | |
12317 /******************************************************************************/ | |
12318 /* */ | |
12319 /* Serial Peripheral Interface (SPI) */ | |
12320 /* */ | |
12321 /******************************************************************************/ | |
12322 /******************* Bit definition for SPI_CR1 register ********************/ | |
12323 #define SPI_CR1_CPHA_Pos (0U) | |
12324 #define SPI_CR1_CPHA_Msk (0x1U << SPI_CR1_CPHA_Pos) /*!< 0x00000001 */ | |
12325 #define SPI_CR1_CPHA SPI_CR1_CPHA_Msk /*!<Clock Phase */ | |
12326 #define SPI_CR1_CPOL_Pos (1U) | |
12327 #define SPI_CR1_CPOL_Msk (0x1U << SPI_CR1_CPOL_Pos) /*!< 0x00000002 */ | |
12328 #define SPI_CR1_CPOL SPI_CR1_CPOL_Msk /*!<Clock Polarity */ | |
12329 #define SPI_CR1_MSTR_Pos (2U) | |
12330 #define SPI_CR1_MSTR_Msk (0x1U << SPI_CR1_MSTR_Pos) /*!< 0x00000004 */ | |
12331 #define SPI_CR1_MSTR SPI_CR1_MSTR_Msk /*!<Master Selection */ | |
12332 | |
12333 #define SPI_CR1_BR_Pos (3U) | |
12334 #define SPI_CR1_BR_Msk (0x7U << SPI_CR1_BR_Pos) /*!< 0x00000038 */ | |
12335 #define SPI_CR1_BR SPI_CR1_BR_Msk /*!<BR[2:0] bits (Baud Rate Control) */ | |
12336 #define SPI_CR1_BR_0 (0x1U << SPI_CR1_BR_Pos) /*!< 0x00000008 */ | |
12337 #define SPI_CR1_BR_1 (0x2U << SPI_CR1_BR_Pos) /*!< 0x00000010 */ | |
12338 #define SPI_CR1_BR_2 (0x4U << SPI_CR1_BR_Pos) /*!< 0x00000020 */ | |
12339 | |
12340 #define SPI_CR1_SPE_Pos (6U) | |
12341 #define SPI_CR1_SPE_Msk (0x1U << SPI_CR1_SPE_Pos) /*!< 0x00000040 */ | |
12342 #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!<SPI Enable */ | |
12343 #define SPI_CR1_LSBFIRST_Pos (7U) | |
12344 #define SPI_CR1_LSBFIRST_Msk (0x1U << SPI_CR1_LSBFIRST_Pos) /*!< 0x00000080 */ | |
12345 #define SPI_CR1_LSBFIRST SPI_CR1_LSBFIRST_Msk /*!<Frame Format */ | |
12346 #define SPI_CR1_SSI_Pos (8U) | |
12347 #define SPI_CR1_SSI_Msk (0x1U << SPI_CR1_SSI_Pos) /*!< 0x00000100 */ | |
12348 #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!<Internal slave select */ | |
12349 #define SPI_CR1_SSM_Pos (9U) | |
12350 #define SPI_CR1_SSM_Msk (0x1U << SPI_CR1_SSM_Pos) /*!< 0x00000200 */ | |
12351 #define SPI_CR1_SSM SPI_CR1_SSM_Msk /*!<Software slave management */ | |
12352 #define SPI_CR1_RXONLY_Pos (10U) | |
12353 #define SPI_CR1_RXONLY_Msk (0x1U << SPI_CR1_RXONLY_Pos) /*!< 0x00000400 */ | |
12354 #define SPI_CR1_RXONLY SPI_CR1_RXONLY_Msk /*!<Receive only */ | |
12355 #define SPI_CR1_CRCL_Pos (11U) | |
12356 #define SPI_CR1_CRCL_Msk (0x1U << SPI_CR1_CRCL_Pos) /*!< 0x00000800 */ | |
12357 #define SPI_CR1_CRCL SPI_CR1_CRCL_Msk /*!< CRC Length */ | |
12358 #define SPI_CR1_CRCNEXT_Pos (12U) | |
12359 #define SPI_CR1_CRCNEXT_Msk (0x1U << SPI_CR1_CRCNEXT_Pos) /*!< 0x00001000 */ | |
12360 #define SPI_CR1_CRCNEXT SPI_CR1_CRCNEXT_Msk /*!<Transmit CRC next */ | |
12361 #define SPI_CR1_CRCEN_Pos (13U) | |
12362 #define SPI_CR1_CRCEN_Msk (0x1U << SPI_CR1_CRCEN_Pos) /*!< 0x00002000 */ | |
12363 #define SPI_CR1_CRCEN SPI_CR1_CRCEN_Msk /*!<Hardware CRC calculation enable */ | |
12364 #define SPI_CR1_BIDIOE_Pos (14U) | |
12365 #define SPI_CR1_BIDIOE_Msk (0x1U << SPI_CR1_BIDIOE_Pos) /*!< 0x00004000 */ | |
12366 #define SPI_CR1_BIDIOE SPI_CR1_BIDIOE_Msk /*!<Output enable in bidirectional mode */ | |
12367 #define SPI_CR1_BIDIMODE_Pos (15U) | |
12368 #define SPI_CR1_BIDIMODE_Msk (0x1U << SPI_CR1_BIDIMODE_Pos) /*!< 0x00008000 */ | |
12369 #define SPI_CR1_BIDIMODE SPI_CR1_BIDIMODE_Msk /*!<Bidirectional data mode enable */ | |
12370 | |
12371 /******************* Bit definition for SPI_CR2 register ********************/ | |
12372 #define SPI_CR2_RXDMAEN_Pos (0U) | |
12373 #define SPI_CR2_RXDMAEN_Msk (0x1U << SPI_CR2_RXDMAEN_Pos) /*!< 0x00000001 */ | |
12374 #define SPI_CR2_RXDMAEN SPI_CR2_RXDMAEN_Msk /*!< Rx Buffer DMA Enable */ | |
12375 #define SPI_CR2_TXDMAEN_Pos (1U) | |
12376 #define SPI_CR2_TXDMAEN_Msk (0x1U << SPI_CR2_TXDMAEN_Pos) /*!< 0x00000002 */ | |
12377 #define SPI_CR2_TXDMAEN SPI_CR2_TXDMAEN_Msk /*!< Tx Buffer DMA Enable */ | |
12378 #define SPI_CR2_SSOE_Pos (2U) | |
12379 #define SPI_CR2_SSOE_Msk (0x1U << SPI_CR2_SSOE_Pos) /*!< 0x00000004 */ | |
12380 #define SPI_CR2_SSOE SPI_CR2_SSOE_Msk /*!< SS Output Enable */ | |
12381 #define SPI_CR2_NSSP_Pos (3U) | |
12382 #define SPI_CR2_NSSP_Msk (0x1U << SPI_CR2_NSSP_Pos) /*!< 0x00000008 */ | |
12383 #define SPI_CR2_NSSP SPI_CR2_NSSP_Msk /*!< NSS pulse management Enable */ | |
12384 #define SPI_CR2_FRF_Pos (4U) | |
12385 #define SPI_CR2_FRF_Msk (0x1U << SPI_CR2_FRF_Pos) /*!< 0x00000010 */ | |
12386 #define SPI_CR2_FRF SPI_CR2_FRF_Msk /*!< Frame Format Enable */ | |
12387 #define SPI_CR2_ERRIE_Pos (5U) | |
12388 #define SPI_CR2_ERRIE_Msk (0x1U << SPI_CR2_ERRIE_Pos) /*!< 0x00000020 */ | |
12389 #define SPI_CR2_ERRIE SPI_CR2_ERRIE_Msk /*!< Error Interrupt Enable */ | |
12390 #define SPI_CR2_RXNEIE_Pos (6U) | |
12391 #define SPI_CR2_RXNEIE_Msk (0x1U << SPI_CR2_RXNEIE_Pos) /*!< 0x00000040 */ | |
12392 #define SPI_CR2_RXNEIE SPI_CR2_RXNEIE_Msk /*!< RX buffer Not Empty Interrupt Enable */ | |
12393 #define SPI_CR2_TXEIE_Pos (7U) | |
12394 #define SPI_CR2_TXEIE_Msk (0x1U << SPI_CR2_TXEIE_Pos) /*!< 0x00000080 */ | |
12395 #define SPI_CR2_TXEIE SPI_CR2_TXEIE_Msk /*!< Tx buffer Empty Interrupt Enable */ | |
12396 #define SPI_CR2_DS_Pos (8U) | |
12397 #define SPI_CR2_DS_Msk (0xFU << SPI_CR2_DS_Pos) /*!< 0x00000F00 */ | |
12398 #define SPI_CR2_DS SPI_CR2_DS_Msk /*!< DS[3:0] Data Size */ | |
12399 #define SPI_CR2_DS_0 (0x1U << SPI_CR2_DS_Pos) /*!< 0x00000100 */ | |
12400 #define SPI_CR2_DS_1 (0x2U << SPI_CR2_DS_Pos) /*!< 0x00000200 */ | |
12401 #define SPI_CR2_DS_2 (0x4U << SPI_CR2_DS_Pos) /*!< 0x00000400 */ | |
12402 #define SPI_CR2_DS_3 (0x8U << SPI_CR2_DS_Pos) /*!< 0x00000800 */ | |
12403 #define SPI_CR2_FRXTH_Pos (12U) | |
12404 #define SPI_CR2_FRXTH_Msk (0x1U << SPI_CR2_FRXTH_Pos) /*!< 0x00001000 */ | |
12405 #define SPI_CR2_FRXTH SPI_CR2_FRXTH_Msk /*!< FIFO reception Threshold */ | |
12406 #define SPI_CR2_LDMARX_Pos (13U) | |
12407 #define SPI_CR2_LDMARX_Msk (0x1U << SPI_CR2_LDMARX_Pos) /*!< 0x00002000 */ | |
12408 #define SPI_CR2_LDMARX SPI_CR2_LDMARX_Msk /*!< Last DMA transfer for reception */ | |
12409 #define SPI_CR2_LDMATX_Pos (14U) | |
12410 #define SPI_CR2_LDMATX_Msk (0x1U << SPI_CR2_LDMATX_Pos) /*!< 0x00004000 */ | |
12411 #define SPI_CR2_LDMATX SPI_CR2_LDMATX_Msk /*!< Last DMA transfer for transmission */ | |
12412 | |
12413 /******************** Bit definition for SPI_SR register ********************/ | |
12414 #define SPI_SR_RXNE_Pos (0U) | |
12415 #define SPI_SR_RXNE_Msk (0x1U << SPI_SR_RXNE_Pos) /*!< 0x00000001 */ | |
12416 #define SPI_SR_RXNE SPI_SR_RXNE_Msk /*!< Receive buffer Not Empty */ | |
12417 #define SPI_SR_TXE_Pos (1U) | |
12418 #define SPI_SR_TXE_Msk (0x1U << SPI_SR_TXE_Pos) /*!< 0x00000002 */ | |
12419 #define SPI_SR_TXE SPI_SR_TXE_Msk /*!< Transmit buffer Empty */ | |
12420 #define SPI_SR_CHSIDE_Pos (2U) | |
12421 #define SPI_SR_CHSIDE_Msk (0x1U << SPI_SR_CHSIDE_Pos) /*!< 0x00000004 */ | |
12422 #define SPI_SR_CHSIDE SPI_SR_CHSIDE_Msk /*!< Channel side */ | |
12423 #define SPI_SR_UDR_Pos (3U) | |
12424 #define SPI_SR_UDR_Msk (0x1U << SPI_SR_UDR_Pos) /*!< 0x00000008 */ | |
12425 #define SPI_SR_UDR SPI_SR_UDR_Msk /*!< Underrun flag */ | |
12426 #define SPI_SR_CRCERR_Pos (4U) | |
12427 #define SPI_SR_CRCERR_Msk (0x1U << SPI_SR_CRCERR_Pos) /*!< 0x00000010 */ | |
12428 #define SPI_SR_CRCERR SPI_SR_CRCERR_Msk /*!< CRC Error flag */ | |
12429 #define SPI_SR_MODF_Pos (5U) | |
12430 #define SPI_SR_MODF_Msk (0x1U << SPI_SR_MODF_Pos) /*!< 0x00000020 */ | |
12431 #define SPI_SR_MODF SPI_SR_MODF_Msk /*!< Mode fault */ | |
12432 #define SPI_SR_OVR_Pos (6U) | |
12433 #define SPI_SR_OVR_Msk (0x1U << SPI_SR_OVR_Pos) /*!< 0x00000040 */ | |
12434 #define SPI_SR_OVR SPI_SR_OVR_Msk /*!< Overrun flag */ | |
12435 #define SPI_SR_BSY_Pos (7U) | |
12436 #define SPI_SR_BSY_Msk (0x1U << SPI_SR_BSY_Pos) /*!< 0x00000080 */ | |
12437 #define SPI_SR_BSY SPI_SR_BSY_Msk /*!< Busy flag */ | |
12438 #define SPI_SR_FRE_Pos (8U) | |
12439 #define SPI_SR_FRE_Msk (0x1U << SPI_SR_FRE_Pos) /*!< 0x00000100 */ | |
12440 #define SPI_SR_FRE SPI_SR_FRE_Msk /*!< TI frame format error */ | |
12441 #define SPI_SR_FRLVL_Pos (9U) | |
12442 #define SPI_SR_FRLVL_Msk (0x3U << SPI_SR_FRLVL_Pos) /*!< 0x00000600 */ | |
12443 #define SPI_SR_FRLVL SPI_SR_FRLVL_Msk /*!< FIFO Reception Level */ | |
12444 #define SPI_SR_FRLVL_0 (0x1U << SPI_SR_FRLVL_Pos) /*!< 0x00000200 */ | |
12445 #define SPI_SR_FRLVL_1 (0x2U << SPI_SR_FRLVL_Pos) /*!< 0x00000400 */ | |
12446 #define SPI_SR_FTLVL_Pos (11U) | |
12447 #define SPI_SR_FTLVL_Msk (0x3U << SPI_SR_FTLVL_Pos) /*!< 0x00001800 */ | |
12448 #define SPI_SR_FTLVL SPI_SR_FTLVL_Msk /*!< FIFO Transmission Level */ | |
12449 #define SPI_SR_FTLVL_0 (0x1U << SPI_SR_FTLVL_Pos) /*!< 0x00000800 */ | |
12450 #define SPI_SR_FTLVL_1 (0x2U << SPI_SR_FTLVL_Pos) /*!< 0x00001000 */ | |
12451 | |
12452 /******************** Bit definition for SPI_DR register ********************/ | |
12453 #define SPI_DR_DR_Pos (0U) | |
12454 #define SPI_DR_DR_Msk (0xFFFFU << SPI_DR_DR_Pos) /*!< 0x0000FFFF */ | |
12455 #define SPI_DR_DR SPI_DR_DR_Msk /*!<Data Register */ | |
12456 | |
12457 /******************* Bit definition for SPI_CRCPR register ******************/ | |
12458 #define SPI_CRCPR_CRCPOLY_Pos (0U) | |
12459 #define SPI_CRCPR_CRCPOLY_Msk (0xFFFFU << SPI_CRCPR_CRCPOLY_Pos) /*!< 0x0000FFFF */ | |
12460 #define SPI_CRCPR_CRCPOLY SPI_CRCPR_CRCPOLY_Msk /*!<CRC polynomial register */ | |
12461 | |
12462 /****************** Bit definition for SPI_RXCRCR register ******************/ | |
12463 #define SPI_RXCRCR_RXCRC_Pos (0U) | |
12464 #define SPI_RXCRCR_RXCRC_Msk (0xFFFFU << SPI_RXCRCR_RXCRC_Pos) /*!< 0x0000FFFF */ | |
12465 #define SPI_RXCRCR_RXCRC SPI_RXCRCR_RXCRC_Msk /*!<Rx CRC Register */ | |
12466 | |
12467 /****************** Bit definition for SPI_TXCRCR register ******************/ | |
12468 #define SPI_TXCRCR_TXCRC_Pos (0U) | |
12469 #define SPI_TXCRCR_TXCRC_Msk (0xFFFFU << SPI_TXCRCR_TXCRC_Pos) /*!< 0x0000FFFF */ | |
12470 #define SPI_TXCRCR_TXCRC SPI_TXCRCR_TXCRC_Msk /*!<Tx CRC Register */ | |
12471 | |
12472 /******************************************************************************/ | |
12473 /* */ | |
12474 /* QUADSPI */ | |
12475 /* */ | |
12476 /******************************************************************************/ | |
12477 /***************** Bit definition for QUADSPI_CR register *******************/ | |
12478 #define QUADSPI_CR_EN_Pos (0U) | |
12479 #define QUADSPI_CR_EN_Msk (0x1U << QUADSPI_CR_EN_Pos) /*!< 0x00000001 */ | |
12480 #define QUADSPI_CR_EN QUADSPI_CR_EN_Msk /*!< Enable */ | |
12481 #define QUADSPI_CR_ABORT_Pos (1U) | |
12482 #define QUADSPI_CR_ABORT_Msk (0x1U << QUADSPI_CR_ABORT_Pos) /*!< 0x00000002 */ | |
12483 #define QUADSPI_CR_ABORT QUADSPI_CR_ABORT_Msk /*!< Abort request */ | |
12484 #define QUADSPI_CR_DMAEN_Pos (2U) | |
12485 #define QUADSPI_CR_DMAEN_Msk (0x1U << QUADSPI_CR_DMAEN_Pos) /*!< 0x00000004 */ | |
12486 #define QUADSPI_CR_DMAEN QUADSPI_CR_DMAEN_Msk /*!< DMA Enable */ | |
12487 #define QUADSPI_CR_TCEN_Pos (3U) | |
12488 #define QUADSPI_CR_TCEN_Msk (0x1U << QUADSPI_CR_TCEN_Pos) /*!< 0x00000008 */ | |
12489 #define QUADSPI_CR_TCEN QUADSPI_CR_TCEN_Msk /*!< Timeout Counter Enable */ | |
12490 #define QUADSPI_CR_SSHIFT_Pos (4U) | |
12491 #define QUADSPI_CR_SSHIFT_Msk (0x1U << QUADSPI_CR_SSHIFT_Pos) /*!< 0x00000010 */ | |
12492 #define QUADSPI_CR_SSHIFT QUADSPI_CR_SSHIFT_Msk /*!< Sample Shift */ | |
12493 #define QUADSPI_CR_DFM_Pos (6U) | |
12494 #define QUADSPI_CR_DFM_Msk (0x1U << QUADSPI_CR_DFM_Pos) /*!< 0x00000040 */ | |
12495 #define QUADSPI_CR_DFM QUADSPI_CR_DFM_Msk /*!< Dual-flash mode */ | |
12496 #define QUADSPI_CR_FSEL_Pos (7U) | |
12497 #define QUADSPI_CR_FSEL_Msk (0x1U << QUADSPI_CR_FSEL_Pos) /*!< 0x00000080 */ | |
12498 #define QUADSPI_CR_FSEL QUADSPI_CR_FSEL_Msk /*!< Flash memory selection */ | |
12499 #define QUADSPI_CR_FTHRES_Pos (8U) | |
12500 #define QUADSPI_CR_FTHRES_Msk (0xFU << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000F00 */ | |
12501 #define QUADSPI_CR_FTHRES QUADSPI_CR_FTHRES_Msk /*!< FTHRES[3:0] FIFO Level */ | |
12502 #define QUADSPI_CR_TEIE_Pos (16U) | |
12503 #define QUADSPI_CR_TEIE_Msk (0x1U << QUADSPI_CR_TEIE_Pos) /*!< 0x00010000 */ | |
12504 #define QUADSPI_CR_TEIE QUADSPI_CR_TEIE_Msk /*!< Transfer Error Interrupt Enable */ | |
12505 #define QUADSPI_CR_TCIE_Pos (17U) | |
12506 #define QUADSPI_CR_TCIE_Msk (0x1U << QUADSPI_CR_TCIE_Pos) /*!< 0x00020000 */ | |
12507 #define QUADSPI_CR_TCIE QUADSPI_CR_TCIE_Msk /*!< Transfer Complete Interrupt Enable */ | |
12508 #define QUADSPI_CR_FTIE_Pos (18U) | |
12509 #define QUADSPI_CR_FTIE_Msk (0x1U << QUADSPI_CR_FTIE_Pos) /*!< 0x00040000 */ | |
12510 #define QUADSPI_CR_FTIE QUADSPI_CR_FTIE_Msk /*!< FIFO Threshold Interrupt Enable */ | |
12511 #define QUADSPI_CR_SMIE_Pos (19U) | |
12512 #define QUADSPI_CR_SMIE_Msk (0x1U << QUADSPI_CR_SMIE_Pos) /*!< 0x00080000 */ | |
12513 #define QUADSPI_CR_SMIE QUADSPI_CR_SMIE_Msk /*!< Status Match Interrupt Enable */ | |
12514 #define QUADSPI_CR_TOIE_Pos (20U) | |
12515 #define QUADSPI_CR_TOIE_Msk (0x1U << QUADSPI_CR_TOIE_Pos) /*!< 0x00100000 */ | |
12516 #define QUADSPI_CR_TOIE QUADSPI_CR_TOIE_Msk /*!< TimeOut Interrupt Enable */ | |
12517 #define QUADSPI_CR_APMS_Pos (22U) | |
12518 #define QUADSPI_CR_APMS_Msk (0x1U << QUADSPI_CR_APMS_Pos) /*!< 0x00400000 */ | |
12519 #define QUADSPI_CR_APMS QUADSPI_CR_APMS_Msk /*!< Automatic Polling Mode Stop */ | |
12520 #define QUADSPI_CR_PMM_Pos (23U) | |
12521 #define QUADSPI_CR_PMM_Msk (0x1U << QUADSPI_CR_PMM_Pos) /*!< 0x00800000 */ | |
12522 #define QUADSPI_CR_PMM QUADSPI_CR_PMM_Msk /*!< Polling Match Mode */ | |
12523 #define QUADSPI_CR_PRESCALER_Pos (24U) | |
12524 #define QUADSPI_CR_PRESCALER_Msk (0xFFU << QUADSPI_CR_PRESCALER_Pos) /*!< 0xFF000000 */ | |
12525 #define QUADSPI_CR_PRESCALER QUADSPI_CR_PRESCALER_Msk /*!< PRESCALER[7:0] Clock prescaler */ | |
12526 | |
12527 /***************** Bit definition for QUADSPI_DCR register ******************/ | |
12528 #define QUADSPI_DCR_CKMODE_Pos (0U) | |
12529 #define QUADSPI_DCR_CKMODE_Msk (0x1U << QUADSPI_DCR_CKMODE_Pos) /*!< 0x00000001 */ | |
12530 #define QUADSPI_DCR_CKMODE QUADSPI_DCR_CKMODE_Msk /*!< Mode 0 / Mode 3 */ | |
12531 #define QUADSPI_DCR_CSHT_Pos (8U) | |
12532 #define QUADSPI_DCR_CSHT_Msk (0x7U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000700 */ | |
12533 #define QUADSPI_DCR_CSHT QUADSPI_DCR_CSHT_Msk /*!< CSHT[2:0]: ChipSelect High Time */ | |
12534 #define QUADSPI_DCR_CSHT_0 (0x1U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000100 */ | |
12535 #define QUADSPI_DCR_CSHT_1 (0x2U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000200 */ | |
12536 #define QUADSPI_DCR_CSHT_2 (0x4U << QUADSPI_DCR_CSHT_Pos) /*!< 0x00000400 */ | |
12537 #define QUADSPI_DCR_FSIZE_Pos (16U) | |
12538 #define QUADSPI_DCR_FSIZE_Msk (0x1FU << QUADSPI_DCR_FSIZE_Pos) /*!< 0x001F0000 */ | |
12539 #define QUADSPI_DCR_FSIZE QUADSPI_DCR_FSIZE_Msk /*!< FSIZE[4:0]: Flash Size */ | |
12540 | |
12541 /****************** Bit definition for QUADSPI_SR register *******************/ | |
12542 #define QUADSPI_SR_TEF_Pos (0U) | |
12543 #define QUADSPI_SR_TEF_Msk (0x1U << QUADSPI_SR_TEF_Pos) /*!< 0x00000001 */ | |
12544 #define QUADSPI_SR_TEF QUADSPI_SR_TEF_Msk /*!< Transfer Error Flag */ | |
12545 #define QUADSPI_SR_TCF_Pos (1U) | |
12546 #define QUADSPI_SR_TCF_Msk (0x1U << QUADSPI_SR_TCF_Pos) /*!< 0x00000002 */ | |
12547 #define QUADSPI_SR_TCF QUADSPI_SR_TCF_Msk /*!< Transfer Complete Flag */ | |
12548 #define QUADSPI_SR_FTF_Pos (2U) | |
12549 #define QUADSPI_SR_FTF_Msk (0x1U << QUADSPI_SR_FTF_Pos) /*!< 0x00000004 */ | |
12550 #define QUADSPI_SR_FTF QUADSPI_SR_FTF_Msk /*!< FIFO Threshlod Flag */ | |
12551 #define QUADSPI_SR_SMF_Pos (3U) | |
12552 #define QUADSPI_SR_SMF_Msk (0x1U << QUADSPI_SR_SMF_Pos) /*!< 0x00000008 */ | |
12553 #define QUADSPI_SR_SMF QUADSPI_SR_SMF_Msk /*!< Status Match Flag */ | |
12554 #define QUADSPI_SR_TOF_Pos (4U) | |
12555 #define QUADSPI_SR_TOF_Msk (0x1U << QUADSPI_SR_TOF_Pos) /*!< 0x00000010 */ | |
12556 #define QUADSPI_SR_TOF QUADSPI_SR_TOF_Msk /*!< Timeout Flag */ | |
12557 #define QUADSPI_SR_BUSY_Pos (5U) | |
12558 #define QUADSPI_SR_BUSY_Msk (0x1U << QUADSPI_SR_BUSY_Pos) /*!< 0x00000020 */ | |
12559 #define QUADSPI_SR_BUSY QUADSPI_SR_BUSY_Msk /*!< Busy */ | |
12560 #define QUADSPI_SR_FLEVEL_Pos (8U) | |
12561 #define QUADSPI_SR_FLEVEL_Msk (0x1FU << QUADSPI_SR_FLEVEL_Pos) /*!< 0x00001F00 */ | |
12562 #define QUADSPI_SR_FLEVEL QUADSPI_SR_FLEVEL_Msk /*!< FIFO Threshlod Flag */ | |
12563 | |
12564 /****************** Bit definition for QUADSPI_FCR register ******************/ | |
12565 #define QUADSPI_FCR_CTEF_Pos (0U) | |
12566 #define QUADSPI_FCR_CTEF_Msk (0x1U << QUADSPI_FCR_CTEF_Pos) /*!< 0x00000001 */ | |
12567 #define QUADSPI_FCR_CTEF QUADSPI_FCR_CTEF_Msk /*!< Clear Transfer Error Flag */ | |
12568 #define QUADSPI_FCR_CTCF_Pos (1U) | |
12569 #define QUADSPI_FCR_CTCF_Msk (0x1U << QUADSPI_FCR_CTCF_Pos) /*!< 0x00000002 */ | |
12570 #define QUADSPI_FCR_CTCF QUADSPI_FCR_CTCF_Msk /*!< Clear Transfer Complete Flag */ | |
12571 #define QUADSPI_FCR_CSMF_Pos (3U) | |
12572 #define QUADSPI_FCR_CSMF_Msk (0x1U << QUADSPI_FCR_CSMF_Pos) /*!< 0x00000008 */ | |
12573 #define QUADSPI_FCR_CSMF QUADSPI_FCR_CSMF_Msk /*!< Clear Status Match Flag */ | |
12574 #define QUADSPI_FCR_CTOF_Pos (4U) | |
12575 #define QUADSPI_FCR_CTOF_Msk (0x1U << QUADSPI_FCR_CTOF_Pos) /*!< 0x00000010 */ | |
12576 #define QUADSPI_FCR_CTOF QUADSPI_FCR_CTOF_Msk /*!< Clear Timeout Flag */ | |
12577 | |
12578 /****************** Bit definition for QUADSPI_DLR register ******************/ | |
12579 #define QUADSPI_DLR_DL_Pos (0U) | |
12580 #define QUADSPI_DLR_DL_Msk (0xFFFFFFFFU << QUADSPI_DLR_DL_Pos) /*!< 0xFFFFFFFF */ | |
12581 #define QUADSPI_DLR_DL QUADSPI_DLR_DL_Msk /*!< DL[31:0]: Data Length */ | |
12582 | |
12583 /****************** Bit definition for QUADSPI_CCR register ******************/ | |
12584 #define QUADSPI_CCR_INSTRUCTION_Pos (0U) | |
12585 #define QUADSPI_CCR_INSTRUCTION_Msk (0xFFU << QUADSPI_CCR_INSTRUCTION_Pos) /*!< 0x000000FF */ | |
12586 #define QUADSPI_CCR_INSTRUCTION QUADSPI_CCR_INSTRUCTION_Msk /*!< INSTRUCTION[7:0]: Instruction */ | |
12587 #define QUADSPI_CCR_IMODE_Pos (8U) | |
12588 #define QUADSPI_CCR_IMODE_Msk (0x3U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000300 */ | |
12589 #define QUADSPI_CCR_IMODE QUADSPI_CCR_IMODE_Msk /*!< IMODE[1:0]: Instruction Mode */ | |
12590 #define QUADSPI_CCR_IMODE_0 (0x1U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000100 */ | |
12591 #define QUADSPI_CCR_IMODE_1 (0x2U << QUADSPI_CCR_IMODE_Pos) /*!< 0x00000200 */ | |
12592 #define QUADSPI_CCR_ADMODE_Pos (10U) | |
12593 #define QUADSPI_CCR_ADMODE_Msk (0x3U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000C00 */ | |
12594 #define QUADSPI_CCR_ADMODE QUADSPI_CCR_ADMODE_Msk /*!< ADMODE[1:0]: Address Mode */ | |
12595 #define QUADSPI_CCR_ADMODE_0 (0x1U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000400 */ | |
12596 #define QUADSPI_CCR_ADMODE_1 (0x2U << QUADSPI_CCR_ADMODE_Pos) /*!< 0x00000800 */ | |
12597 #define QUADSPI_CCR_ADSIZE_Pos (12U) | |
12598 #define QUADSPI_CCR_ADSIZE_Msk (0x3U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00003000 */ | |
12599 #define QUADSPI_CCR_ADSIZE QUADSPI_CCR_ADSIZE_Msk /*!< ADSIZE[1:0]: Address Size */ | |
12600 #define QUADSPI_CCR_ADSIZE_0 (0x1U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00001000 */ | |
12601 #define QUADSPI_CCR_ADSIZE_1 (0x2U << QUADSPI_CCR_ADSIZE_Pos) /*!< 0x00002000 */ | |
12602 #define QUADSPI_CCR_ABMODE_Pos (14U) | |
12603 #define QUADSPI_CCR_ABMODE_Msk (0x3U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x0000C000 */ | |
12604 #define QUADSPI_CCR_ABMODE QUADSPI_CCR_ABMODE_Msk /*!< ABMODE[1:0]: Alternate Bytes Mode */ | |
12605 #define QUADSPI_CCR_ABMODE_0 (0x1U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x00004000 */ | |
12606 #define QUADSPI_CCR_ABMODE_1 (0x2U << QUADSPI_CCR_ABMODE_Pos) /*!< 0x00008000 */ | |
12607 #define QUADSPI_CCR_ABSIZE_Pos (16U) | |
12608 #define QUADSPI_CCR_ABSIZE_Msk (0x3U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00030000 */ | |
12609 #define QUADSPI_CCR_ABSIZE QUADSPI_CCR_ABSIZE_Msk /*!< ABSIZE[1:0]: Instruction Mode */ | |
12610 #define QUADSPI_CCR_ABSIZE_0 (0x1U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00010000 */ | |
12611 #define QUADSPI_CCR_ABSIZE_1 (0x2U << QUADSPI_CCR_ABSIZE_Pos) /*!< 0x00020000 */ | |
12612 #define QUADSPI_CCR_DCYC_Pos (18U) | |
12613 #define QUADSPI_CCR_DCYC_Msk (0x1FU << QUADSPI_CCR_DCYC_Pos) /*!< 0x007C0000 */ | |
12614 #define QUADSPI_CCR_DCYC QUADSPI_CCR_DCYC_Msk /*!< DCYC[4:0]: Dummy Cycles */ | |
12615 #define QUADSPI_CCR_DMODE_Pos (24U) | |
12616 #define QUADSPI_CCR_DMODE_Msk (0x3U << QUADSPI_CCR_DMODE_Pos) /*!< 0x03000000 */ | |
12617 #define QUADSPI_CCR_DMODE QUADSPI_CCR_DMODE_Msk /*!< DMODE[1:0]: Data Mode */ | |
12618 #define QUADSPI_CCR_DMODE_0 (0x1U << QUADSPI_CCR_DMODE_Pos) /*!< 0x01000000 */ | |
12619 #define QUADSPI_CCR_DMODE_1 (0x2U << QUADSPI_CCR_DMODE_Pos) /*!< 0x02000000 */ | |
12620 #define QUADSPI_CCR_FMODE_Pos (26U) | |
12621 #define QUADSPI_CCR_FMODE_Msk (0x3U << QUADSPI_CCR_FMODE_Pos) /*!< 0x0C000000 */ | |
12622 #define QUADSPI_CCR_FMODE QUADSPI_CCR_FMODE_Msk /*!< FMODE[1:0]: Functional Mode */ | |
12623 #define QUADSPI_CCR_FMODE_0 (0x1U << QUADSPI_CCR_FMODE_Pos) /*!< 0x04000000 */ | |
12624 #define QUADSPI_CCR_FMODE_1 (0x2U << QUADSPI_CCR_FMODE_Pos) /*!< 0x08000000 */ | |
12625 #define QUADSPI_CCR_SIOO_Pos (28U) | |
12626 #define QUADSPI_CCR_SIOO_Msk (0x1U << QUADSPI_CCR_SIOO_Pos) /*!< 0x10000000 */ | |
12627 #define QUADSPI_CCR_SIOO QUADSPI_CCR_SIOO_Msk /*!< SIOO: Send Instruction Only Once Mode */ | |
12628 #define QUADSPI_CCR_DHHC_Pos (30U) | |
12629 #define QUADSPI_CCR_DHHC_Msk (0x1U << QUADSPI_CCR_DHHC_Pos) /*!< 0x40000000 */ | |
12630 #define QUADSPI_CCR_DHHC QUADSPI_CCR_DHHC_Msk /*!< DHHC: DDR hold */ | |
12631 #define QUADSPI_CCR_DDRM_Pos (31U) | |
12632 #define QUADSPI_CCR_DDRM_Msk (0x1U << QUADSPI_CCR_DDRM_Pos) /*!< 0x80000000 */ | |
12633 #define QUADSPI_CCR_DDRM QUADSPI_CCR_DDRM_Msk /*!< DDRM: Double Data Rate Mode */ | |
12634 | |
12635 /****************** Bit definition for QUADSPI_AR register *******************/ | |
12636 #define QUADSPI_AR_ADDRESS_Pos (0U) | |
12637 #define QUADSPI_AR_ADDRESS_Msk (0xFFFFFFFFU << QUADSPI_AR_ADDRESS_Pos) /*!< 0xFFFFFFFF */ | |
12638 #define QUADSPI_AR_ADDRESS QUADSPI_AR_ADDRESS_Msk /*!< ADDRESS[31:0]: Address */ | |
12639 | |
12640 /****************** Bit definition for QUADSPI_ABR register ******************/ | |
12641 #define QUADSPI_ABR_ALTERNATE_Pos (0U) | |
12642 #define QUADSPI_ABR_ALTERNATE_Msk (0xFFFFFFFFU << QUADSPI_ABR_ALTERNATE_Pos) /*!< 0xFFFFFFFF */ | |
12643 #define QUADSPI_ABR_ALTERNATE QUADSPI_ABR_ALTERNATE_Msk /*!< ALTERNATE[31:0]: Alternate Bytes */ | |
12644 | |
12645 /****************** Bit definition for QUADSPI_DR register *******************/ | |
12646 #define QUADSPI_DR_DATA_Pos (0U) | |
12647 #define QUADSPI_DR_DATA_Msk (0xFFFFFFFFU << QUADSPI_DR_DATA_Pos) /*!< 0xFFFFFFFF */ | |
12648 #define QUADSPI_DR_DATA QUADSPI_DR_DATA_Msk /*!< DATA[31:0]: Data */ | |
12649 | |
12650 /****************** Bit definition for QUADSPI_PSMKR register ****************/ | |
12651 #define QUADSPI_PSMKR_MASK_Pos (0U) | |
12652 #define QUADSPI_PSMKR_MASK_Msk (0xFFFFFFFFU << QUADSPI_PSMKR_MASK_Pos) /*!< 0xFFFFFFFF */ | |
12653 #define QUADSPI_PSMKR_MASK QUADSPI_PSMKR_MASK_Msk /*!< MASK[31:0]: Status Mask */ | |
12654 | |
12655 /****************** Bit definition for QUADSPI_PSMAR register ****************/ | |
12656 #define QUADSPI_PSMAR_MATCH_Pos (0U) | |
12657 #define QUADSPI_PSMAR_MATCH_Msk (0xFFFFFFFFU << QUADSPI_PSMAR_MATCH_Pos) /*!< 0xFFFFFFFF */ | |
12658 #define QUADSPI_PSMAR_MATCH QUADSPI_PSMAR_MATCH_Msk /*!< MATCH[31:0]: Status Match */ | |
12659 | |
12660 /****************** Bit definition for QUADSPI_PIR register *****************/ | |
12661 #define QUADSPI_PIR_INTERVAL_Pos (0U) | |
12662 #define QUADSPI_PIR_INTERVAL_Msk (0xFFFFU << QUADSPI_PIR_INTERVAL_Pos) /*!< 0x0000FFFF */ | |
12663 #define QUADSPI_PIR_INTERVAL QUADSPI_PIR_INTERVAL_Msk /*!< INTERVAL[15:0]: Polling Interval */ | |
12664 | |
12665 /****************** Bit definition for QUADSPI_LPTR register *****************/ | |
12666 #define QUADSPI_LPTR_TIMEOUT_Pos (0U) | |
12667 #define QUADSPI_LPTR_TIMEOUT_Msk (0xFFFFU << QUADSPI_LPTR_TIMEOUT_Pos) /*!< 0x0000FFFF */ | |
12668 #define QUADSPI_LPTR_TIMEOUT QUADSPI_LPTR_TIMEOUT_Msk /*!< TIMEOUT[15:0]: Timeout period */ | |
12669 | |
12670 /******************************************************************************/ | |
12671 /* */ | |
12672 /* SYSCFG */ | |
12673 /* */ | |
12674 /******************************************************************************/ | |
12675 /****************** Bit definition for SYSCFG_MEMRMP register ***************/ | |
12676 #define SYSCFG_MEMRMP_MEM_MODE_Pos (0U) | |
12677 #define SYSCFG_MEMRMP_MEM_MODE_Msk (0x7U << SYSCFG_MEMRMP_MEM_MODE_Pos) /*!< 0x00000007 */ | |
12678 #define SYSCFG_MEMRMP_MEM_MODE SYSCFG_MEMRMP_MEM_MODE_Msk /*!< SYSCFG_Memory Remap Config */ | |
12679 #define SYSCFG_MEMRMP_MEM_MODE_0 (0x1U << SYSCFG_MEMRMP_MEM_MODE_Pos) /*!< 0x00000001 */ | |
12680 #define SYSCFG_MEMRMP_MEM_MODE_1 (0x2U << SYSCFG_MEMRMP_MEM_MODE_Pos) /*!< 0x00000002 */ | |
12681 #define SYSCFG_MEMRMP_MEM_MODE_2 (0x4U << SYSCFG_MEMRMP_MEM_MODE_Pos) /*!< 0x00000004 */ | |
12682 | |
12683 /****************** Bit definition for SYSCFG_CFGR1 register ******************/ | |
12684 #define SYSCFG_CFGR1_FWDIS_Pos (0U) | |
12685 #define SYSCFG_CFGR1_FWDIS_Msk (0x1U << SYSCFG_CFGR1_FWDIS_Pos) /*!< 0x00000001 */ | |
12686 #define SYSCFG_CFGR1_FWDIS SYSCFG_CFGR1_FWDIS_Msk /*!< FIREWALL access enable*/ | |
12687 #define SYSCFG_CFGR1_BOOSTEN_Pos (8U) | |
12688 #define SYSCFG_CFGR1_BOOSTEN_Msk (0x1U << SYSCFG_CFGR1_BOOSTEN_Pos) /*!< 0x00000100 */ | |
12689 #define SYSCFG_CFGR1_BOOSTEN SYSCFG_CFGR1_BOOSTEN_Msk /*!< I/O analog switch voltage booster enable */ | |
12690 #define SYSCFG_CFGR1_I2C_PB6_FMP_Pos (16U) | |
12691 #define SYSCFG_CFGR1_I2C_PB6_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB6_FMP_Pos) /*!< 0x00010000 */ | |
12692 #define SYSCFG_CFGR1_I2C_PB6_FMP SYSCFG_CFGR1_I2C_PB6_FMP_Msk /*!< I2C PB6 Fast mode plus */ | |
12693 #define SYSCFG_CFGR1_I2C_PB7_FMP_Pos (17U) | |
12694 #define SYSCFG_CFGR1_I2C_PB7_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB7_FMP_Pos) /*!< 0x00020000 */ | |
12695 #define SYSCFG_CFGR1_I2C_PB7_FMP SYSCFG_CFGR1_I2C_PB7_FMP_Msk /*!< I2C PB7 Fast mode plus */ | |
12696 #define SYSCFG_CFGR1_I2C_PB8_FMP_Pos (18U) | |
12697 #define SYSCFG_CFGR1_I2C_PB8_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB8_FMP_Pos) /*!< 0x00040000 */ | |
12698 #define SYSCFG_CFGR1_I2C_PB8_FMP SYSCFG_CFGR1_I2C_PB8_FMP_Msk /*!< I2C PB8 Fast mode plus */ | |
12699 #define SYSCFG_CFGR1_I2C_PB9_FMP_Pos (19U) | |
12700 #define SYSCFG_CFGR1_I2C_PB9_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C_PB9_FMP_Pos) /*!< 0x00080000 */ | |
12701 #define SYSCFG_CFGR1_I2C_PB9_FMP SYSCFG_CFGR1_I2C_PB9_FMP_Msk /*!< I2C PB9 Fast mode plus */ | |
12702 #define SYSCFG_CFGR1_I2C1_FMP_Pos (20U) | |
12703 #define SYSCFG_CFGR1_I2C1_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C1_FMP_Pos) /*!< 0x00100000 */ | |
12704 #define SYSCFG_CFGR1_I2C1_FMP SYSCFG_CFGR1_I2C1_FMP_Msk /*!< I2C1 Fast mode plus */ | |
12705 #define SYSCFG_CFGR1_I2C2_FMP_Pos (21U) | |
12706 #define SYSCFG_CFGR1_I2C2_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C2_FMP_Pos) /*!< 0x00200000 */ | |
12707 #define SYSCFG_CFGR1_I2C2_FMP SYSCFG_CFGR1_I2C2_FMP_Msk /*!< I2C2 Fast mode plus */ | |
12708 #define SYSCFG_CFGR1_I2C3_FMP_Pos (22U) | |
12709 #define SYSCFG_CFGR1_I2C3_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C3_FMP_Pos) /*!< 0x00400000 */ | |
12710 #define SYSCFG_CFGR1_I2C3_FMP SYSCFG_CFGR1_I2C3_FMP_Msk /*!< I2C3 Fast mode plus */ | |
12711 #define SYSCFG_CFGR1_I2C4_FMP_Pos (23U) | |
12712 #define SYSCFG_CFGR1_I2C4_FMP_Msk (0x1U << SYSCFG_CFGR1_I2C4_FMP_Pos) /*!< 0x00800000 */ | |
12713 #define SYSCFG_CFGR1_I2C4_FMP SYSCFG_CFGR1_I2C4_FMP_Msk /*!< I2C4 Fast mode plus */ | |
12714 #define SYSCFG_CFGR1_FPU_IE_0 (0x04000000U) /*!< Invalid operation Interrupt enable */ | |
12715 #define SYSCFG_CFGR1_FPU_IE_1 (0x08000000U) /*!< Divide-by-zero Interrupt enable */ | |
12716 #define SYSCFG_CFGR1_FPU_IE_2 (0x10000000U) /*!< Underflow Interrupt enable */ | |
12717 #define SYSCFG_CFGR1_FPU_IE_3 (0x20000000U) /*!< Overflow Interrupt enable */ | |
12718 #define SYSCFG_CFGR1_FPU_IE_4 (0x40000000U) /*!< Input denormal Interrupt enable */ | |
12719 #define SYSCFG_CFGR1_FPU_IE_5 (0x80000000U) /*!< Inexact Interrupt enable (interrupt disabled at reset) */ | |
12720 | |
12721 /***************** Bit definition for SYSCFG_EXTICR1 register ***************/ | |
12722 #define SYSCFG_EXTICR1_EXTI0_Pos (0U) | |
12723 #define SYSCFG_EXTICR1_EXTI0_Msk (0x7U << SYSCFG_EXTICR1_EXTI0_Pos) /*!< 0x00000007 */ | |
12724 #define SYSCFG_EXTICR1_EXTI0 SYSCFG_EXTICR1_EXTI0_Msk /*!<EXTI 0 configuration */ | |
12725 #define SYSCFG_EXTICR1_EXTI1_Pos (4U) | |
12726 #define SYSCFG_EXTICR1_EXTI1_Msk (0x7U << SYSCFG_EXTICR1_EXTI1_Pos) /*!< 0x00000070 */ | |
12727 #define SYSCFG_EXTICR1_EXTI1 SYSCFG_EXTICR1_EXTI1_Msk /*!<EXTI 1 configuration */ | |
12728 #define SYSCFG_EXTICR1_EXTI2_Pos (8U) | |
12729 #define SYSCFG_EXTICR1_EXTI2_Msk (0x7U << SYSCFG_EXTICR1_EXTI2_Pos) /*!< 0x00000700 */ | |
12730 #define SYSCFG_EXTICR1_EXTI2 SYSCFG_EXTICR1_EXTI2_Msk /*!<EXTI 2 configuration */ | |
12731 #define SYSCFG_EXTICR1_EXTI3_Pos (12U) | |
12732 #define SYSCFG_EXTICR1_EXTI3_Msk (0x7U << SYSCFG_EXTICR1_EXTI3_Pos) /*!< 0x00007000 */ | |
12733 #define SYSCFG_EXTICR1_EXTI3 SYSCFG_EXTICR1_EXTI3_Msk /*!<EXTI 3 configuration */ | |
12734 | |
12735 /** | |
12736 * @brief EXTI0 configuration | |
12737 */ | |
12738 #define SYSCFG_EXTICR1_EXTI0_PA (0x00000000U) /*!<PA[0] pin */ | |
12739 #define SYSCFG_EXTICR1_EXTI0_PB (0x00000001U) /*!<PB[0] pin */ | |
12740 #define SYSCFG_EXTICR1_EXTI0_PC (0x00000002U) /*!<PC[0] pin */ | |
12741 #define SYSCFG_EXTICR1_EXTI0_PD (0x00000003U) /*!<PD[0] pin */ | |
12742 #define SYSCFG_EXTICR1_EXTI0_PE (0x00000004U) /*!<PE[0] pin */ | |
12743 #define SYSCFG_EXTICR1_EXTI0_PH (0x00000007U) /*!<PH[0] pin */ | |
12744 | |
12745 /** | |
12746 * @brief EXTI1 configuration | |
12747 */ | |
12748 #define SYSCFG_EXTICR1_EXTI1_PA (0x00000000U) /*!<PA[1] pin */ | |
12749 #define SYSCFG_EXTICR1_EXTI1_PB (0x00000010U) /*!<PB[1] pin */ | |
12750 #define SYSCFG_EXTICR1_EXTI1_PC (0x00000020U) /*!<PC[1] pin */ | |
12751 #define SYSCFG_EXTICR1_EXTI1_PD (0x00000030U) /*!<PD[1] pin */ | |
12752 #define SYSCFG_EXTICR1_EXTI1_PE (0x00000040U) /*!<PE[1] pin */ | |
12753 #define SYSCFG_EXTICR1_EXTI1_PH (0x00000070U) /*!<PH[1] pin */ | |
12754 | |
12755 /** | |
12756 * @brief EXTI2 configuration | |
12757 */ | |
12758 #define SYSCFG_EXTICR1_EXTI2_PA (0x00000000U) /*!<PA[2] pin */ | |
12759 #define SYSCFG_EXTICR1_EXTI2_PB (0x00000100U) /*!<PB[2] pin */ | |
12760 #define SYSCFG_EXTICR1_EXTI2_PC (0x00000200U) /*!<PC[2] pin */ | |
12761 #define SYSCFG_EXTICR1_EXTI2_PD (0x00000300U) /*!<PD[2] pin */ | |
12762 #define SYSCFG_EXTICR1_EXTI2_PE (0x00000400U) /*!<PE[2] pin */ | |
12763 | |
12764 /** | |
12765 * @brief EXTI3 configuration | |
12766 */ | |
12767 #define SYSCFG_EXTICR1_EXTI3_PA (0x00000000U) /*!<PA[3] pin */ | |
12768 #define SYSCFG_EXTICR1_EXTI3_PB (0x00001000U) /*!<PB[3] pin */ | |
12769 #define SYSCFG_EXTICR1_EXTI3_PC (0x00002000U) /*!<PC[3] pin */ | |
12770 #define SYSCFG_EXTICR1_EXTI3_PD (0x00003000U) /*!<PD[3] pin */ | |
12771 #define SYSCFG_EXTICR1_EXTI3_PE (0x00004000U) /*!<PE[3] pin */ | |
12772 | |
12773 /***************** Bit definition for SYSCFG_EXTICR2 register ***************/ | |
12774 #define SYSCFG_EXTICR2_EXTI4_Pos (0U) | |
12775 #define SYSCFG_EXTICR2_EXTI4_Msk (0x7U << SYSCFG_EXTICR2_EXTI4_Pos) /*!< 0x00000007 */ | |
12776 #define SYSCFG_EXTICR2_EXTI4 SYSCFG_EXTICR2_EXTI4_Msk /*!<EXTI 4 configuration */ | |
12777 #define SYSCFG_EXTICR2_EXTI5_Pos (4U) | |
12778 #define SYSCFG_EXTICR2_EXTI5_Msk (0x7U << SYSCFG_EXTICR2_EXTI5_Pos) /*!< 0x00000070 */ | |
12779 #define SYSCFG_EXTICR2_EXTI5 SYSCFG_EXTICR2_EXTI5_Msk /*!<EXTI 5 configuration */ | |
12780 #define SYSCFG_EXTICR2_EXTI6_Pos (8U) | |
12781 #define SYSCFG_EXTICR2_EXTI6_Msk (0x7U << SYSCFG_EXTICR2_EXTI6_Pos) /*!< 0x00000700 */ | |
12782 #define SYSCFG_EXTICR2_EXTI6 SYSCFG_EXTICR2_EXTI6_Msk /*!<EXTI 6 configuration */ | |
12783 #define SYSCFG_EXTICR2_EXTI7_Pos (12U) | |
12784 #define SYSCFG_EXTICR2_EXTI7_Msk (0x7U << SYSCFG_EXTICR2_EXTI7_Pos) /*!< 0x00007000 */ | |
12785 #define SYSCFG_EXTICR2_EXTI7 SYSCFG_EXTICR2_EXTI7_Msk /*!<EXTI 7 configuration */ | |
12786 /** | |
12787 * @brief EXTI4 configuration | |
12788 */ | |
12789 #define SYSCFG_EXTICR2_EXTI4_PA (0x00000000U) /*!<PA[4] pin */ | |
12790 #define SYSCFG_EXTICR2_EXTI4_PB (0x00000001U) /*!<PB[4] pin */ | |
12791 #define SYSCFG_EXTICR2_EXTI4_PC (0x00000002U) /*!<PC[4] pin */ | |
12792 #define SYSCFG_EXTICR2_EXTI4_PD (0x00000003U) /*!<PD[4] pin */ | |
12793 #define SYSCFG_EXTICR2_EXTI4_PE (0x00000004U) /*!<PE[4] pin */ | |
12794 | |
12795 /** | |
12796 * @brief EXTI5 configuration | |
12797 */ | |
12798 #define SYSCFG_EXTICR2_EXTI5_PA (0x00000000U) /*!<PA[5] pin */ | |
12799 #define SYSCFG_EXTICR2_EXTI5_PB (0x00000010U) /*!<PB[5] pin */ | |
12800 #define SYSCFG_EXTICR2_EXTI5_PC (0x00000020U) /*!<PC[5] pin */ | |
12801 #define SYSCFG_EXTICR2_EXTI5_PD (0x00000030U) /*!<PD[5] pin */ | |
12802 #define SYSCFG_EXTICR2_EXTI5_PE (0x00000040U) /*!<PE[5] pin */ | |
12803 | |
12804 /** | |
12805 * @brief EXTI6 configuration | |
12806 */ | |
12807 #define SYSCFG_EXTICR2_EXTI6_PA (0x00000000U) /*!<PA[6] pin */ | |
12808 #define SYSCFG_EXTICR2_EXTI6_PB (0x00000100U) /*!<PB[6] pin */ | |
12809 #define SYSCFG_EXTICR2_EXTI6_PC (0x00000200U) /*!<PC[6] pin */ | |
12810 #define SYSCFG_EXTICR2_EXTI6_PD (0x00000300U) /*!<PD[6] pin */ | |
12811 #define SYSCFG_EXTICR2_EXTI6_PE (0x00000400U) /*!<PE[6] pin */ | |
12812 | |
12813 /** | |
12814 * @brief EXTI7 configuration | |
12815 */ | |
12816 #define SYSCFG_EXTICR2_EXTI7_PA (0x00000000U) /*!<PA[7] pin */ | |
12817 #define SYSCFG_EXTICR2_EXTI7_PB (0x00001000U) /*!<PB[7] pin */ | |
12818 #define SYSCFG_EXTICR2_EXTI7_PC (0x00002000U) /*!<PC[7] pin */ | |
12819 #define SYSCFG_EXTICR2_EXTI7_PD (0x00003000U) /*!<PD[7] pin */ | |
12820 #define SYSCFG_EXTICR2_EXTI7_PE (0x00004000U) /*!<PE[7] pin */ | |
12821 | |
12822 /***************** Bit definition for SYSCFG_EXTICR3 register ***************/ | |
12823 #define SYSCFG_EXTICR3_EXTI8_Pos (0U) | |
12824 #define SYSCFG_EXTICR3_EXTI8_Msk (0x7U << SYSCFG_EXTICR3_EXTI8_Pos) /*!< 0x00000007 */ | |
12825 #define SYSCFG_EXTICR3_EXTI8 SYSCFG_EXTICR3_EXTI8_Msk /*!<EXTI 8 configuration */ | |
12826 #define SYSCFG_EXTICR3_EXTI9_Pos (4U) | |
12827 #define SYSCFG_EXTICR3_EXTI9_Msk (0x7U << SYSCFG_EXTICR3_EXTI9_Pos) /*!< 0x00000070 */ | |
12828 #define SYSCFG_EXTICR3_EXTI9 SYSCFG_EXTICR3_EXTI9_Msk /*!<EXTI 9 configuration */ | |
12829 #define SYSCFG_EXTICR3_EXTI10_Pos (8U) | |
12830 #define SYSCFG_EXTICR3_EXTI10_Msk (0x7U << SYSCFG_EXTICR3_EXTI10_Pos) /*!< 0x00000700 */ | |
12831 #define SYSCFG_EXTICR3_EXTI10 SYSCFG_EXTICR3_EXTI10_Msk /*!<EXTI 10 configuration */ | |
12832 #define SYSCFG_EXTICR3_EXTI11_Pos (12U) | |
12833 #define SYSCFG_EXTICR3_EXTI11_Msk (0x7U << SYSCFG_EXTICR3_EXTI11_Pos) /*!< 0x00007000 */ | |
12834 #define SYSCFG_EXTICR3_EXTI11 SYSCFG_EXTICR3_EXTI11_Msk /*!<EXTI 11 configuration */ | |
12835 | |
12836 /** | |
12837 * @brief EXTI8 configuration | |
12838 */ | |
12839 #define SYSCFG_EXTICR3_EXTI8_PA (0x00000000U) /*!<PA[8] pin */ | |
12840 #define SYSCFG_EXTICR3_EXTI8_PB (0x00000001U) /*!<PB[8] pin */ | |
12841 #define SYSCFG_EXTICR3_EXTI8_PC (0x00000002U) /*!<PC[8] pin */ | |
12842 #define SYSCFG_EXTICR3_EXTI8_PD (0x00000003U) /*!<PD[8] pin */ | |
12843 #define SYSCFG_EXTICR3_EXTI8_PE (0x00000004U) /*!<PE[8] pin */ | |
12844 | |
12845 /** | |
12846 * @brief EXTI9 configuration | |
12847 */ | |
12848 #define SYSCFG_EXTICR3_EXTI9_PA (0x00000000U) /*!<PA[9] pin */ | |
12849 #define SYSCFG_EXTICR3_EXTI9_PB (0x00000010U) /*!<PB[9] pin */ | |
12850 #define SYSCFG_EXTICR3_EXTI9_PC (0x00000020U) /*!<PC[9] pin */ | |
12851 #define SYSCFG_EXTICR3_EXTI9_PD (0x00000030U) /*!<PD[9] pin */ | |
12852 #define SYSCFG_EXTICR3_EXTI9_PE (0x00000040U) /*!<PE[9] pin */ | |
12853 | |
12854 /** | |
12855 * @brief EXTI10 configuration | |
12856 */ | |
12857 #define SYSCFG_EXTICR3_EXTI10_PA (0x00000000U) /*!<PA[10] pin */ | |
12858 #define SYSCFG_EXTICR3_EXTI10_PB (0x00000100U) /*!<PB[10] pin */ | |
12859 #define SYSCFG_EXTICR3_EXTI10_PC (0x00000200U) /*!<PC[10] pin */ | |
12860 #define SYSCFG_EXTICR3_EXTI10_PD (0x00000300U) /*!<PD[10] pin */ | |
12861 #define SYSCFG_EXTICR3_EXTI10_PE (0x00000400U) /*!<PE[10] pin */ | |
12862 | |
12863 /** | |
12864 * @brief EXTI11 configuration | |
12865 */ | |
12866 #define SYSCFG_EXTICR3_EXTI11_PA (0x00000000U) /*!<PA[11] pin */ | |
12867 #define SYSCFG_EXTICR3_EXTI11_PB (0x00001000U) /*!<PB[11] pin */ | |
12868 #define SYSCFG_EXTICR3_EXTI11_PC (0x00002000U) /*!<PC[11] pin */ | |
12869 #define SYSCFG_EXTICR3_EXTI11_PD (0x00003000U) /*!<PD[11] pin */ | |
12870 #define SYSCFG_EXTICR3_EXTI11_PE (0x00004000U) /*!<PE[11] pin */ | |
12871 | |
12872 /***************** Bit definition for SYSCFG_EXTICR4 register ***************/ | |
12873 #define SYSCFG_EXTICR4_EXTI12_Pos (0U) | |
12874 #define SYSCFG_EXTICR4_EXTI12_Msk (0x7U << SYSCFG_EXTICR4_EXTI12_Pos) /*!< 0x00000007 */ | |
12875 #define SYSCFG_EXTICR4_EXTI12 SYSCFG_EXTICR4_EXTI12_Msk /*!<EXTI 12 configuration */ | |
12876 #define SYSCFG_EXTICR4_EXTI13_Pos (4U) | |
12877 #define SYSCFG_EXTICR4_EXTI13_Msk (0x7U << SYSCFG_EXTICR4_EXTI13_Pos) /*!< 0x00000070 */ | |
12878 #define SYSCFG_EXTICR4_EXTI13 SYSCFG_EXTICR4_EXTI13_Msk /*!<EXTI 13 configuration */ | |
12879 #define SYSCFG_EXTICR4_EXTI14_Pos (8U) | |
12880 #define SYSCFG_EXTICR4_EXTI14_Msk (0x7U << SYSCFG_EXTICR4_EXTI14_Pos) /*!< 0x00000700 */ | |
12881 #define SYSCFG_EXTICR4_EXTI14 SYSCFG_EXTICR4_EXTI14_Msk /*!<EXTI 14 configuration */ | |
12882 #define SYSCFG_EXTICR4_EXTI15_Pos (12U) | |
12883 #define SYSCFG_EXTICR4_EXTI15_Msk (0x7U << SYSCFG_EXTICR4_EXTI15_Pos) /*!< 0x00007000 */ | |
12884 #define SYSCFG_EXTICR4_EXTI15 SYSCFG_EXTICR4_EXTI15_Msk /*!<EXTI 15 configuration */ | |
12885 | |
12886 /** | |
12887 * @brief EXTI12 configuration | |
12888 */ | |
12889 #define SYSCFG_EXTICR4_EXTI12_PA (0x00000000U) /*!<PA[12] pin */ | |
12890 #define SYSCFG_EXTICR4_EXTI12_PB (0x00000001U) /*!<PB[12] pin */ | |
12891 #define SYSCFG_EXTICR4_EXTI12_PC (0x00000002U) /*!<PC[12] pin */ | |
12892 #define SYSCFG_EXTICR4_EXTI12_PD (0x00000003U) /*!<PD[12] pin */ | |
12893 #define SYSCFG_EXTICR4_EXTI12_PE (0x00000004U) /*!<PE[12] pin */ | |
12894 | |
12895 /** | |
12896 * @brief EXTI13 configuration | |
12897 */ | |
12898 #define SYSCFG_EXTICR4_EXTI13_PA (0x00000000U) /*!<PA[13] pin */ | |
12899 #define SYSCFG_EXTICR4_EXTI13_PB (0x00000010U) /*!<PB[13] pin */ | |
12900 #define SYSCFG_EXTICR4_EXTI13_PC (0x00000020U) /*!<PC[13] pin */ | |
12901 #define SYSCFG_EXTICR4_EXTI13_PD (0x00000030U) /*!<PD[13] pin */ | |
12902 #define SYSCFG_EXTICR4_EXTI13_PE (0x00000040U) /*!<PE[13] pin */ | |
12903 | |
12904 /** | |
12905 * @brief EXTI14 configuration | |
12906 */ | |
12907 #define SYSCFG_EXTICR4_EXTI14_PA (0x00000000U) /*!<PA[14] pin */ | |
12908 #define SYSCFG_EXTICR4_EXTI14_PB (0x00000100U) /*!<PB[14] pin */ | |
12909 #define SYSCFG_EXTICR4_EXTI14_PC (0x00000200U) /*!<PC[14] pin */ | |
12910 #define SYSCFG_EXTICR4_EXTI14_PD (0x00000300U) /*!<PD[14] pin */ | |
12911 #define SYSCFG_EXTICR4_EXTI14_PE (0x00000400U) /*!<PE[14] pin */ | |
12912 | |
12913 /** | |
12914 * @brief EXTI15 configuration | |
12915 */ | |
12916 #define SYSCFG_EXTICR4_EXTI15_PA (0x00000000U) /*!<PA[15] pin */ | |
12917 #define SYSCFG_EXTICR4_EXTI15_PB (0x00001000U) /*!<PB[15] pin */ | |
12918 #define SYSCFG_EXTICR4_EXTI15_PC (0x00002000U) /*!<PC[15] pin */ | |
12919 #define SYSCFG_EXTICR4_EXTI15_PD (0x00003000U) /*!<PD[15] pin */ | |
12920 #define SYSCFG_EXTICR4_EXTI15_PE (0x00004000U) /*!<PE[15] pin */ | |
12921 | |
12922 /****************** Bit definition for SYSCFG_SCSR register ****************/ | |
12923 #define SYSCFG_SCSR_SRAM2ER_Pos (0U) | |
12924 #define SYSCFG_SCSR_SRAM2ER_Msk (0x1U << SYSCFG_SCSR_SRAM2ER_Pos) /*!< 0x00000001 */ | |
12925 #define SYSCFG_SCSR_SRAM2ER SYSCFG_SCSR_SRAM2ER_Msk /*!< SRAM2 Erase Request */ | |
12926 #define SYSCFG_SCSR_SRAM2BSY_Pos (1U) | |
12927 #define SYSCFG_SCSR_SRAM2BSY_Msk (0x1U << SYSCFG_SCSR_SRAM2BSY_Pos) /*!< 0x00000002 */ | |
12928 #define SYSCFG_SCSR_SRAM2BSY SYSCFG_SCSR_SRAM2BSY_Msk /*!< SRAM2 Erase Ongoing */ | |
12929 | |
12930 /****************** Bit definition for SYSCFG_CFGR2 register ****************/ | |
12931 #define SYSCFG_CFGR2_CLL_Pos (0U) | |
12932 #define SYSCFG_CFGR2_CLL_Msk (0x1U << SYSCFG_CFGR2_CLL_Pos) /*!< 0x00000001 */ | |
12933 #define SYSCFG_CFGR2_CLL SYSCFG_CFGR2_CLL_Msk /*!< Core Lockup Lock */ | |
12934 #define SYSCFG_CFGR2_SPL_Pos (1U) | |
12935 #define SYSCFG_CFGR2_SPL_Msk (0x1U << SYSCFG_CFGR2_SPL_Pos) /*!< 0x00000002 */ | |
12936 #define SYSCFG_CFGR2_SPL SYSCFG_CFGR2_SPL_Msk /*!< SRAM Parity Lock*/ | |
12937 #define SYSCFG_CFGR2_PVDL_Pos (2U) | |
12938 #define SYSCFG_CFGR2_PVDL_Msk (0x1U << SYSCFG_CFGR2_PVDL_Pos) /*!< 0x00000004 */ | |
12939 #define SYSCFG_CFGR2_PVDL SYSCFG_CFGR2_PVDL_Msk /*!< PVD Lock */ | |
12940 #define SYSCFG_CFGR2_ECCL_Pos (3U) | |
12941 #define SYSCFG_CFGR2_ECCL_Msk (0x1U << SYSCFG_CFGR2_ECCL_Pos) /*!< 0x00000008 */ | |
12942 #define SYSCFG_CFGR2_ECCL SYSCFG_CFGR2_ECCL_Msk /*!< ECC Lock*/ | |
12943 #define SYSCFG_CFGR2_SPF_Pos (8U) | |
12944 #define SYSCFG_CFGR2_SPF_Msk (0x1U << SYSCFG_CFGR2_SPF_Pos) /*!< 0x00000100 */ | |
12945 #define SYSCFG_CFGR2_SPF SYSCFG_CFGR2_SPF_Msk /*!< SRAM Parity Flag */ | |
12946 | |
12947 /****************** Bit definition for SYSCFG_SWPR register ****************/ | |
12948 #define SYSCFG_SWPR_PAGE0_Pos (0U) | |
12949 #define SYSCFG_SWPR_PAGE0_Msk (0x1U << SYSCFG_SWPR_PAGE0_Pos) /*!< 0x00000001 */ | |
12950 #define SYSCFG_SWPR_PAGE0 SYSCFG_SWPR_PAGE0_Msk /*!< SRAM2 Write protection page 0 */ | |
12951 #define SYSCFG_SWPR_PAGE1_Pos (1U) | |
12952 #define SYSCFG_SWPR_PAGE1_Msk (0x1U << SYSCFG_SWPR_PAGE1_Pos) /*!< 0x00000002 */ | |
12953 #define SYSCFG_SWPR_PAGE1 SYSCFG_SWPR_PAGE1_Msk /*!< SRAM2 Write protection page 1 */ | |
12954 #define SYSCFG_SWPR_PAGE2_Pos (2U) | |
12955 #define SYSCFG_SWPR_PAGE2_Msk (0x1U << SYSCFG_SWPR_PAGE2_Pos) /*!< 0x00000004 */ | |
12956 #define SYSCFG_SWPR_PAGE2 SYSCFG_SWPR_PAGE2_Msk /*!< SRAM2 Write protection page 2 */ | |
12957 #define SYSCFG_SWPR_PAGE3_Pos (3U) | |
12958 #define SYSCFG_SWPR_PAGE3_Msk (0x1U << SYSCFG_SWPR_PAGE3_Pos) /*!< 0x00000008 */ | |
12959 #define SYSCFG_SWPR_PAGE3 SYSCFG_SWPR_PAGE3_Msk /*!< SRAM2 Write protection page 3 */ | |
12960 #define SYSCFG_SWPR_PAGE4_Pos (4U) | |
12961 #define SYSCFG_SWPR_PAGE4_Msk (0x1U << SYSCFG_SWPR_PAGE4_Pos) /*!< 0x00000010 */ | |
12962 #define SYSCFG_SWPR_PAGE4 SYSCFG_SWPR_PAGE4_Msk /*!< SRAM2 Write protection page 4 */ | |
12963 #define SYSCFG_SWPR_PAGE5_Pos (5U) | |
12964 #define SYSCFG_SWPR_PAGE5_Msk (0x1U << SYSCFG_SWPR_PAGE5_Pos) /*!< 0x00000020 */ | |
12965 #define SYSCFG_SWPR_PAGE5 SYSCFG_SWPR_PAGE5_Msk /*!< SRAM2 Write protection page 5 */ | |
12966 #define SYSCFG_SWPR_PAGE6_Pos (6U) | |
12967 #define SYSCFG_SWPR_PAGE6_Msk (0x1U << SYSCFG_SWPR_PAGE6_Pos) /*!< 0x00000040 */ | |
12968 #define SYSCFG_SWPR_PAGE6 SYSCFG_SWPR_PAGE6_Msk /*!< SRAM2 Write protection page 6 */ | |
12969 #define SYSCFG_SWPR_PAGE7_Pos (7U) | |
12970 #define SYSCFG_SWPR_PAGE7_Msk (0x1U << SYSCFG_SWPR_PAGE7_Pos) /*!< 0x00000080 */ | |
12971 #define SYSCFG_SWPR_PAGE7 SYSCFG_SWPR_PAGE7_Msk /*!< SRAM2 Write protection page 7 */ | |
12972 #define SYSCFG_SWPR_PAGE8_Pos (8U) | |
12973 #define SYSCFG_SWPR_PAGE8_Msk (0x1U << SYSCFG_SWPR_PAGE8_Pos) /*!< 0x00000100 */ | |
12974 #define SYSCFG_SWPR_PAGE8 SYSCFG_SWPR_PAGE8_Msk /*!< SRAM2 Write protection page 8 */ | |
12975 #define SYSCFG_SWPR_PAGE9_Pos (9U) | |
12976 #define SYSCFG_SWPR_PAGE9_Msk (0x1U << SYSCFG_SWPR_PAGE9_Pos) /*!< 0x00000200 */ | |
12977 #define SYSCFG_SWPR_PAGE9 SYSCFG_SWPR_PAGE9_Msk /*!< SRAM2 Write protection page 9 */ | |
12978 #define SYSCFG_SWPR_PAGE10_Pos (10U) | |
12979 #define SYSCFG_SWPR_PAGE10_Msk (0x1U << SYSCFG_SWPR_PAGE10_Pos) /*!< 0x00000400 */ | |
12980 #define SYSCFG_SWPR_PAGE10 SYSCFG_SWPR_PAGE10_Msk /*!< SRAM2 Write protection page 10*/ | |
12981 #define SYSCFG_SWPR_PAGE11_Pos (11U) | |
12982 #define SYSCFG_SWPR_PAGE11_Msk (0x1U << SYSCFG_SWPR_PAGE11_Pos) /*!< 0x00000800 */ | |
12983 #define SYSCFG_SWPR_PAGE11 SYSCFG_SWPR_PAGE11_Msk /*!< SRAM2 Write protection page 11*/ | |
12984 #define SYSCFG_SWPR_PAGE12_Pos (12U) | |
12985 #define SYSCFG_SWPR_PAGE12_Msk (0x1U << SYSCFG_SWPR_PAGE12_Pos) /*!< 0x00001000 */ | |
12986 #define SYSCFG_SWPR_PAGE12 SYSCFG_SWPR_PAGE12_Msk /*!< SRAM2 Write protection page 12*/ | |
12987 #define SYSCFG_SWPR_PAGE13_Pos (13U) | |
12988 #define SYSCFG_SWPR_PAGE13_Msk (0x1U << SYSCFG_SWPR_PAGE13_Pos) /*!< 0x00002000 */ | |
12989 #define SYSCFG_SWPR_PAGE13 SYSCFG_SWPR_PAGE13_Msk /*!< SRAM2 Write protection page 13*/ | |
12990 #define SYSCFG_SWPR_PAGE14_Pos (14U) | |
12991 #define SYSCFG_SWPR_PAGE14_Msk (0x1U << SYSCFG_SWPR_PAGE14_Pos) /*!< 0x00004000 */ | |
12992 #define SYSCFG_SWPR_PAGE14 SYSCFG_SWPR_PAGE14_Msk /*!< SRAM2 Write protection page 14*/ | |
12993 #define SYSCFG_SWPR_PAGE15_Pos (15U) | |
12994 #define SYSCFG_SWPR_PAGE15_Msk (0x1U << SYSCFG_SWPR_PAGE15_Pos) /*!< 0x00008000 */ | |
12995 #define SYSCFG_SWPR_PAGE15 SYSCFG_SWPR_PAGE15_Msk /*!< SRAM2 Write protection page 15*/ | |
12996 #define SYSCFG_SWPR_PAGE16_Pos (16U) | |
12997 #define SYSCFG_SWPR_PAGE16_Msk (0x1U << SYSCFG_SWPR_PAGE16_Pos) /*!< 0x00010000 */ | |
12998 #define SYSCFG_SWPR_PAGE16 SYSCFG_SWPR_PAGE16_Msk /*!< SRAM2 Write protection page 16*/ | |
12999 #define SYSCFG_SWPR_PAGE17_Pos (17U) | |
13000 #define SYSCFG_SWPR_PAGE17_Msk (0x1U << SYSCFG_SWPR_PAGE17_Pos) /*!< 0x00020000 */ | |
13001 #define SYSCFG_SWPR_PAGE17 SYSCFG_SWPR_PAGE17_Msk /*!< SRAM2 Write protection page 17*/ | |
13002 #define SYSCFG_SWPR_PAGE18_Pos (18U) | |
13003 #define SYSCFG_SWPR_PAGE18_Msk (0x1U << SYSCFG_SWPR_PAGE18_Pos) /*!< 0x00040000 */ | |
13004 #define SYSCFG_SWPR_PAGE18 SYSCFG_SWPR_PAGE18_Msk /*!< SRAM2 Write protection page 18*/ | |
13005 #define SYSCFG_SWPR_PAGE19_Pos (19U) | |
13006 #define SYSCFG_SWPR_PAGE19_Msk (0x1U << SYSCFG_SWPR_PAGE19_Pos) /*!< 0x00080000 */ | |
13007 #define SYSCFG_SWPR_PAGE19 SYSCFG_SWPR_PAGE19_Msk /*!< SRAM2 Write protection page 19*/ | |
13008 #define SYSCFG_SWPR_PAGE20_Pos (20U) | |
13009 #define SYSCFG_SWPR_PAGE20_Msk (0x1U << SYSCFG_SWPR_PAGE20_Pos) /*!< 0x00100000 */ | |
13010 #define SYSCFG_SWPR_PAGE20 SYSCFG_SWPR_PAGE20_Msk /*!< SRAM2 Write protection page 20*/ | |
13011 #define SYSCFG_SWPR_PAGE21_Pos (21U) | |
13012 #define SYSCFG_SWPR_PAGE21_Msk (0x1U << SYSCFG_SWPR_PAGE21_Pos) /*!< 0x00200000 */ | |
13013 #define SYSCFG_SWPR_PAGE21 SYSCFG_SWPR_PAGE21_Msk /*!< SRAM2 Write protection page 21*/ | |
13014 #define SYSCFG_SWPR_PAGE22_Pos (22U) | |
13015 #define SYSCFG_SWPR_PAGE22_Msk (0x1U << SYSCFG_SWPR_PAGE22_Pos) /*!< 0x00400000 */ | |
13016 #define SYSCFG_SWPR_PAGE22 SYSCFG_SWPR_PAGE22_Msk /*!< SRAM2 Write protection page 22*/ | |
13017 #define SYSCFG_SWPR_PAGE23_Pos (23U) | |
13018 #define SYSCFG_SWPR_PAGE23_Msk (0x1U << SYSCFG_SWPR_PAGE23_Pos) /*!< 0x00800000 */ | |
13019 #define SYSCFG_SWPR_PAGE23 SYSCFG_SWPR_PAGE23_Msk /*!< SRAM2 Write protection page 23*/ | |
13020 #define SYSCFG_SWPR_PAGE24_Pos (24U) | |
13021 #define SYSCFG_SWPR_PAGE24_Msk (0x1U << SYSCFG_SWPR_PAGE24_Pos) /*!< 0x01000000 */ | |
13022 #define SYSCFG_SWPR_PAGE24 SYSCFG_SWPR_PAGE24_Msk /*!< SRAM2 Write protection page 24*/ | |
13023 #define SYSCFG_SWPR_PAGE25_Pos (25U) | |
13024 #define SYSCFG_SWPR_PAGE25_Msk (0x1U << SYSCFG_SWPR_PAGE25_Pos) /*!< 0x02000000 */ | |
13025 #define SYSCFG_SWPR_PAGE25 SYSCFG_SWPR_PAGE25_Msk /*!< SRAM2 Write protection page 25*/ | |
13026 #define SYSCFG_SWPR_PAGE26_Pos (26U) | |
13027 #define SYSCFG_SWPR_PAGE26_Msk (0x1U << SYSCFG_SWPR_PAGE26_Pos) /*!< 0x04000000 */ | |
13028 #define SYSCFG_SWPR_PAGE26 SYSCFG_SWPR_PAGE26_Msk /*!< SRAM2 Write protection page 26*/ | |
13029 #define SYSCFG_SWPR_PAGE27_Pos (27U) | |
13030 #define SYSCFG_SWPR_PAGE27_Msk (0x1U << SYSCFG_SWPR_PAGE27_Pos) /*!< 0x08000000 */ | |
13031 #define SYSCFG_SWPR_PAGE27 SYSCFG_SWPR_PAGE27_Msk /*!< SRAM2 Write protection page 27*/ | |
13032 #define SYSCFG_SWPR_PAGE28_Pos (28U) | |
13033 #define SYSCFG_SWPR_PAGE28_Msk (0x1U << SYSCFG_SWPR_PAGE28_Pos) /*!< 0x10000000 */ | |
13034 #define SYSCFG_SWPR_PAGE28 SYSCFG_SWPR_PAGE28_Msk /*!< SRAM2 Write protection page 28*/ | |
13035 #define SYSCFG_SWPR_PAGE29_Pos (29U) | |
13036 #define SYSCFG_SWPR_PAGE29_Msk (0x1U << SYSCFG_SWPR_PAGE29_Pos) /*!< 0x20000000 */ | |
13037 #define SYSCFG_SWPR_PAGE29 SYSCFG_SWPR_PAGE29_Msk /*!< SRAM2 Write protection page 29*/ | |
13038 #define SYSCFG_SWPR_PAGE30_Pos (30U) | |
13039 #define SYSCFG_SWPR_PAGE30_Msk (0x1U << SYSCFG_SWPR_PAGE30_Pos) /*!< 0x40000000 */ | |
13040 #define SYSCFG_SWPR_PAGE30 SYSCFG_SWPR_PAGE30_Msk /*!< SRAM2 Write protection page 30*/ | |
13041 #define SYSCFG_SWPR_PAGE31_Pos (31U) | |
13042 #define SYSCFG_SWPR_PAGE31_Msk (0x1U << SYSCFG_SWPR_PAGE31_Pos) /*!< 0x80000000 */ | |
13043 #define SYSCFG_SWPR_PAGE31 SYSCFG_SWPR_PAGE31_Msk /*!< SRAM2 Write protection page 31*/ | |
13044 | |
13045 /****************** Bit definition for SYSCFG_SKR register ****************/ | |
13046 #define SYSCFG_SKR_KEY_Pos (0U) | |
13047 #define SYSCFG_SKR_KEY_Msk (0xFFU << SYSCFG_SKR_KEY_Pos) /*!< 0x000000FF */ | |
13048 #define SYSCFG_SKR_KEY SYSCFG_SKR_KEY_Msk /*!< SRAM2 write protection key for software erase */ | |
13049 | |
13050 | |
13051 | |
13052 | |
13053 /******************************************************************************/ | |
13054 /* */ | |
13055 /* TIM */ | |
13056 /* */ | |
13057 /******************************************************************************/ | |
13058 /******************* Bit definition for TIM_CR1 register ********************/ | |
13059 #define TIM_CR1_CEN_Pos (0U) | |
13060 #define TIM_CR1_CEN_Msk (0x1U << TIM_CR1_CEN_Pos) /*!< 0x00000001 */ | |
13061 #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */ | |
13062 #define TIM_CR1_UDIS_Pos (1U) | |
13063 #define TIM_CR1_UDIS_Msk (0x1U << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */ | |
13064 #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */ | |
13065 #define TIM_CR1_URS_Pos (2U) | |
13066 #define TIM_CR1_URS_Msk (0x1U << TIM_CR1_URS_Pos) /*!< 0x00000004 */ | |
13067 #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */ | |
13068 #define TIM_CR1_OPM_Pos (3U) | |
13069 #define TIM_CR1_OPM_Msk (0x1U << TIM_CR1_OPM_Pos) /*!< 0x00000008 */ | |
13070 #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */ | |
13071 #define TIM_CR1_DIR_Pos (4U) | |
13072 #define TIM_CR1_DIR_Msk (0x1U << TIM_CR1_DIR_Pos) /*!< 0x00000010 */ | |
13073 #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */ | |
13074 | |
13075 #define TIM_CR1_CMS_Pos (5U) | |
13076 #define TIM_CR1_CMS_Msk (0x3U << TIM_CR1_CMS_Pos) /*!< 0x00000060 */ | |
13077 #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */ | |
13078 #define TIM_CR1_CMS_0 (0x1U << TIM_CR1_CMS_Pos) /*!< 0x00000020 */ | |
13079 #define TIM_CR1_CMS_1 (0x2U << TIM_CR1_CMS_Pos) /*!< 0x00000040 */ | |
13080 | |
13081 #define TIM_CR1_ARPE_Pos (7U) | |
13082 #define TIM_CR1_ARPE_Msk (0x1U << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */ | |
13083 #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */ | |
13084 | |
13085 #define TIM_CR1_CKD_Pos (8U) | |
13086 #define TIM_CR1_CKD_Msk (0x3U << TIM_CR1_CKD_Pos) /*!< 0x00000300 */ | |
13087 #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */ | |
13088 #define TIM_CR1_CKD_0 (0x1U << TIM_CR1_CKD_Pos) /*!< 0x00000100 */ | |
13089 #define TIM_CR1_CKD_1 (0x2U << TIM_CR1_CKD_Pos) /*!< 0x00000200 */ | |
13090 | |
13091 #define TIM_CR1_UIFREMAP_Pos (11U) | |
13092 #define TIM_CR1_UIFREMAP_Msk (0x1U << TIM_CR1_UIFREMAP_Pos) /*!< 0x00000800 */ | |
13093 #define TIM_CR1_UIFREMAP TIM_CR1_UIFREMAP_Msk /*!<Update interrupt flag remap */ | |
13094 | |
13095 /******************* Bit definition for TIM_CR2 register ********************/ | |
13096 #define TIM_CR2_CCPC_Pos (0U) | |
13097 #define TIM_CR2_CCPC_Msk (0x1U << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */ | |
13098 #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */ | |
13099 #define TIM_CR2_CCUS_Pos (2U) | |
13100 #define TIM_CR2_CCUS_Msk (0x1U << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */ | |
13101 #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */ | |
13102 #define TIM_CR2_CCDS_Pos (3U) | |
13103 #define TIM_CR2_CCDS_Msk (0x1U << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */ | |
13104 #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */ | |
13105 | |
13106 #define TIM_CR2_MMS_Pos (4U) | |
13107 #define TIM_CR2_MMS_Msk (0x7U << TIM_CR2_MMS_Pos) /*!< 0x00000070 */ | |
13108 #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */ | |
13109 #define TIM_CR2_MMS_0 (0x1U << TIM_CR2_MMS_Pos) /*!< 0x00000010 */ | |
13110 #define TIM_CR2_MMS_1 (0x2U << TIM_CR2_MMS_Pos) /*!< 0x00000020 */ | |
13111 #define TIM_CR2_MMS_2 (0x4U << TIM_CR2_MMS_Pos) /*!< 0x00000040 */ | |
13112 | |
13113 #define TIM_CR2_TI1S_Pos (7U) | |
13114 #define TIM_CR2_TI1S_Msk (0x1U << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */ | |
13115 #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */ | |
13116 #define TIM_CR2_OIS1_Pos (8U) | |
13117 #define TIM_CR2_OIS1_Msk (0x1U << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */ | |
13118 #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */ | |
13119 #define TIM_CR2_OIS1N_Pos (9U) | |
13120 #define TIM_CR2_OIS1N_Msk (0x1U << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */ | |
13121 #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */ | |
13122 #define TIM_CR2_OIS2_Pos (10U) | |
13123 #define TIM_CR2_OIS2_Msk (0x1U << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */ | |
13124 #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */ | |
13125 #define TIM_CR2_OIS2N_Pos (11U) | |
13126 #define TIM_CR2_OIS2N_Msk (0x1U << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */ | |
13127 #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */ | |
13128 #define TIM_CR2_OIS3_Pos (12U) | |
13129 #define TIM_CR2_OIS3_Msk (0x1U << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */ | |
13130 #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */ | |
13131 #define TIM_CR2_OIS3N_Pos (13U) | |
13132 #define TIM_CR2_OIS3N_Msk (0x1U << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */ | |
13133 #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */ | |
13134 #define TIM_CR2_OIS4_Pos (14U) | |
13135 #define TIM_CR2_OIS4_Msk (0x1U << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */ | |
13136 #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */ | |
13137 #define TIM_CR2_OIS5_Pos (16U) | |
13138 #define TIM_CR2_OIS5_Msk (0x1U << TIM_CR2_OIS5_Pos) /*!< 0x00010000 */ | |
13139 #define TIM_CR2_OIS5 TIM_CR2_OIS5_Msk /*!<Output Idle state 5 (OC5 output) */ | |
13140 #define TIM_CR2_OIS6_Pos (18U) | |
13141 #define TIM_CR2_OIS6_Msk (0x1U << TIM_CR2_OIS6_Pos) /*!< 0x00040000 */ | |
13142 #define TIM_CR2_OIS6 TIM_CR2_OIS6_Msk /*!<Output Idle state 6 (OC6 output) */ | |
13143 | |
13144 #define TIM_CR2_MMS2_Pos (20U) | |
13145 #define TIM_CR2_MMS2_Msk (0xFU << TIM_CR2_MMS2_Pos) /*!< 0x00F00000 */ | |
13146 #define TIM_CR2_MMS2 TIM_CR2_MMS2_Msk /*!<MMS[2:0] bits (Master Mode Selection) */ | |
13147 #define TIM_CR2_MMS2_0 (0x1U << TIM_CR2_MMS2_Pos) /*!< 0x00100000 */ | |
13148 #define TIM_CR2_MMS2_1 (0x2U << TIM_CR2_MMS2_Pos) /*!< 0x00200000 */ | |
13149 #define TIM_CR2_MMS2_2 (0x4U << TIM_CR2_MMS2_Pos) /*!< 0x00400000 */ | |
13150 #define TIM_CR2_MMS2_3 (0x8U << TIM_CR2_MMS2_Pos) /*!< 0x00800000 */ | |
13151 | |
13152 /******************* Bit definition for TIM_SMCR register *******************/ | |
13153 #define TIM_SMCR_SMS_Pos (0U) | |
13154 #define TIM_SMCR_SMS_Msk (0x10007U << TIM_SMCR_SMS_Pos) /*!< 0x00010007 */ | |
13155 #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */ | |
13156 #define TIM_SMCR_SMS_0 (0x00001U << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */ | |
13157 #define TIM_SMCR_SMS_1 (0x00002U << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */ | |
13158 #define TIM_SMCR_SMS_2 (0x00004U << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */ | |
13159 #define TIM_SMCR_SMS_3 (0x10000U << TIM_SMCR_SMS_Pos) /*!< 0x00010000 */ | |
13160 | |
13161 #define TIM_SMCR_OCCS_Pos (3U) | |
13162 #define TIM_SMCR_OCCS_Msk (0x1U << TIM_SMCR_OCCS_Pos) /*!< 0x00000008 */ | |
13163 #define TIM_SMCR_OCCS TIM_SMCR_OCCS_Msk /*!< OCREF clear selection */ | |
13164 | |
13165 #define TIM_SMCR_TS_Pos (4U) | |
13166 #define TIM_SMCR_TS_Msk (0x7U << TIM_SMCR_TS_Pos) /*!< 0x00000070 */ | |
13167 #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[2:0] bits (Trigger selection) */ | |
13168 #define TIM_SMCR_TS_0 (0x1U << TIM_SMCR_TS_Pos) /*!< 0x00000010 */ | |
13169 #define TIM_SMCR_TS_1 (0x2U << TIM_SMCR_TS_Pos) /*!< 0x00000020 */ | |
13170 #define TIM_SMCR_TS_2 (0x4U << TIM_SMCR_TS_Pos) /*!< 0x00000040 */ | |
13171 | |
13172 #define TIM_SMCR_MSM_Pos (7U) | |
13173 #define TIM_SMCR_MSM_Msk (0x1U << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */ | |
13174 #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */ | |
13175 | |
13176 #define TIM_SMCR_ETF_Pos (8U) | |
13177 #define TIM_SMCR_ETF_Msk (0xFU << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */ | |
13178 #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */ | |
13179 #define TIM_SMCR_ETF_0 (0x1U << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */ | |
13180 #define TIM_SMCR_ETF_1 (0x2U << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */ | |
13181 #define TIM_SMCR_ETF_2 (0x4U << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */ | |
13182 #define TIM_SMCR_ETF_3 (0x8U << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */ | |
13183 | |
13184 #define TIM_SMCR_ETPS_Pos (12U) | |
13185 #define TIM_SMCR_ETPS_Msk (0x3U << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */ | |
13186 #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */ | |
13187 #define TIM_SMCR_ETPS_0 (0x1U << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */ | |
13188 #define TIM_SMCR_ETPS_1 (0x2U << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */ | |
13189 | |
13190 #define TIM_SMCR_ECE_Pos (14U) | |
13191 #define TIM_SMCR_ECE_Msk (0x1U << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */ | |
13192 #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */ | |
13193 #define TIM_SMCR_ETP_Pos (15U) | |
13194 #define TIM_SMCR_ETP_Msk (0x1U << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */ | |
13195 #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */ | |
13196 | |
13197 /******************* Bit definition for TIM_DIER register *******************/ | |
13198 #define TIM_DIER_UIE_Pos (0U) | |
13199 #define TIM_DIER_UIE_Msk (0x1U << TIM_DIER_UIE_Pos) /*!< 0x00000001 */ | |
13200 #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */ | |
13201 #define TIM_DIER_CC1IE_Pos (1U) | |
13202 #define TIM_DIER_CC1IE_Msk (0x1U << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */ | |
13203 #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */ | |
13204 #define TIM_DIER_CC2IE_Pos (2U) | |
13205 #define TIM_DIER_CC2IE_Msk (0x1U << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */ | |
13206 #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */ | |
13207 #define TIM_DIER_CC3IE_Pos (3U) | |
13208 #define TIM_DIER_CC3IE_Msk (0x1U << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */ | |
13209 #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */ | |
13210 #define TIM_DIER_CC4IE_Pos (4U) | |
13211 #define TIM_DIER_CC4IE_Msk (0x1U << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */ | |
13212 #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */ | |
13213 #define TIM_DIER_COMIE_Pos (5U) | |
13214 #define TIM_DIER_COMIE_Msk (0x1U << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */ | |
13215 #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */ | |
13216 #define TIM_DIER_TIE_Pos (6U) | |
13217 #define TIM_DIER_TIE_Msk (0x1U << TIM_DIER_TIE_Pos) /*!< 0x00000040 */ | |
13218 #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */ | |
13219 #define TIM_DIER_BIE_Pos (7U) | |
13220 #define TIM_DIER_BIE_Msk (0x1U << TIM_DIER_BIE_Pos) /*!< 0x00000080 */ | |
13221 #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */ | |
13222 #define TIM_DIER_UDE_Pos (8U) | |
13223 #define TIM_DIER_UDE_Msk (0x1U << TIM_DIER_UDE_Pos) /*!< 0x00000100 */ | |
13224 #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */ | |
13225 #define TIM_DIER_CC1DE_Pos (9U) | |
13226 #define TIM_DIER_CC1DE_Msk (0x1U << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */ | |
13227 #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */ | |
13228 #define TIM_DIER_CC2DE_Pos (10U) | |
13229 #define TIM_DIER_CC2DE_Msk (0x1U << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */ | |
13230 #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */ | |
13231 #define TIM_DIER_CC3DE_Pos (11U) | |
13232 #define TIM_DIER_CC3DE_Msk (0x1U << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */ | |
13233 #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */ | |
13234 #define TIM_DIER_CC4DE_Pos (12U) | |
13235 #define TIM_DIER_CC4DE_Msk (0x1U << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */ | |
13236 #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */ | |
13237 #define TIM_DIER_COMDE_Pos (13U) | |
13238 #define TIM_DIER_COMDE_Msk (0x1U << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */ | |
13239 #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */ | |
13240 #define TIM_DIER_TDE_Pos (14U) | |
13241 #define TIM_DIER_TDE_Msk (0x1U << TIM_DIER_TDE_Pos) /*!< 0x00004000 */ | |
13242 #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */ | |
13243 | |
13244 /******************** Bit definition for TIM_SR register ********************/ | |
13245 #define TIM_SR_UIF_Pos (0U) | |
13246 #define TIM_SR_UIF_Msk (0x1U << TIM_SR_UIF_Pos) /*!< 0x00000001 */ | |
13247 #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */ | |
13248 #define TIM_SR_CC1IF_Pos (1U) | |
13249 #define TIM_SR_CC1IF_Msk (0x1U << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */ | |
13250 #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */ | |
13251 #define TIM_SR_CC2IF_Pos (2U) | |
13252 #define TIM_SR_CC2IF_Msk (0x1U << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */ | |
13253 #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */ | |
13254 #define TIM_SR_CC3IF_Pos (3U) | |
13255 #define TIM_SR_CC3IF_Msk (0x1U << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */ | |
13256 #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */ | |
13257 #define TIM_SR_CC4IF_Pos (4U) | |
13258 #define TIM_SR_CC4IF_Msk (0x1U << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */ | |
13259 #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */ | |
13260 #define TIM_SR_COMIF_Pos (5U) | |
13261 #define TIM_SR_COMIF_Msk (0x1U << TIM_SR_COMIF_Pos) /*!< 0x00000020 */ | |
13262 #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */ | |
13263 #define TIM_SR_TIF_Pos (6U) | |
13264 #define TIM_SR_TIF_Msk (0x1U << TIM_SR_TIF_Pos) /*!< 0x00000040 */ | |
13265 #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */ | |
13266 #define TIM_SR_BIF_Pos (7U) | |
13267 #define TIM_SR_BIF_Msk (0x1U << TIM_SR_BIF_Pos) /*!< 0x00000080 */ | |
13268 #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */ | |
13269 #define TIM_SR_B2IF_Pos (8U) | |
13270 #define TIM_SR_B2IF_Msk (0x1U << TIM_SR_B2IF_Pos) /*!< 0x00000100 */ | |
13271 #define TIM_SR_B2IF TIM_SR_B2IF_Msk /*!<Break 2 interrupt Flag */ | |
13272 #define TIM_SR_CC1OF_Pos (9U) | |
13273 #define TIM_SR_CC1OF_Msk (0x1U << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */ | |
13274 #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */ | |
13275 #define TIM_SR_CC2OF_Pos (10U) | |
13276 #define TIM_SR_CC2OF_Msk (0x1U << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */ | |
13277 #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */ | |
13278 #define TIM_SR_CC3OF_Pos (11U) | |
13279 #define TIM_SR_CC3OF_Msk (0x1U << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */ | |
13280 #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */ | |
13281 #define TIM_SR_CC4OF_Pos (12U) | |
13282 #define TIM_SR_CC4OF_Msk (0x1U << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */ | |
13283 #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */ | |
13284 #define TIM_SR_SBIF_Pos (13U) | |
13285 #define TIM_SR_SBIF_Msk (0x1U << TIM_SR_SBIF_Pos) /*!< 0x00002000 */ | |
13286 #define TIM_SR_SBIF TIM_SR_SBIF_Msk /*!<System Break interrupt Flag */ | |
13287 #define TIM_SR_CC5IF_Pos (16U) | |
13288 #define TIM_SR_CC5IF_Msk (0x1U << TIM_SR_CC5IF_Pos) /*!< 0x00010000 */ | |
13289 #define TIM_SR_CC5IF TIM_SR_CC5IF_Msk /*!<Capture/Compare 5 interrupt Flag */ | |
13290 #define TIM_SR_CC6IF_Pos (17U) | |
13291 #define TIM_SR_CC6IF_Msk (0x1U << TIM_SR_CC6IF_Pos) /*!< 0x00020000 */ | |
13292 #define TIM_SR_CC6IF TIM_SR_CC6IF_Msk /*!<Capture/Compare 6 interrupt Flag */ | |
13293 | |
13294 | |
13295 /******************* Bit definition for TIM_EGR register ********************/ | |
13296 #define TIM_EGR_UG_Pos (0U) | |
13297 #define TIM_EGR_UG_Msk (0x1U << TIM_EGR_UG_Pos) /*!< 0x00000001 */ | |
13298 #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */ | |
13299 #define TIM_EGR_CC1G_Pos (1U) | |
13300 #define TIM_EGR_CC1G_Msk (0x1U << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */ | |
13301 #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */ | |
13302 #define TIM_EGR_CC2G_Pos (2U) | |
13303 #define TIM_EGR_CC2G_Msk (0x1U << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */ | |
13304 #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */ | |
13305 #define TIM_EGR_CC3G_Pos (3U) | |
13306 #define TIM_EGR_CC3G_Msk (0x1U << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */ | |
13307 #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */ | |
13308 #define TIM_EGR_CC4G_Pos (4U) | |
13309 #define TIM_EGR_CC4G_Msk (0x1U << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */ | |
13310 #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */ | |
13311 #define TIM_EGR_COMG_Pos (5U) | |
13312 #define TIM_EGR_COMG_Msk (0x1U << TIM_EGR_COMG_Pos) /*!< 0x00000020 */ | |
13313 #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */ | |
13314 #define TIM_EGR_TG_Pos (6U) | |
13315 #define TIM_EGR_TG_Msk (0x1U << TIM_EGR_TG_Pos) /*!< 0x00000040 */ | |
13316 #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */ | |
13317 #define TIM_EGR_BG_Pos (7U) | |
13318 #define TIM_EGR_BG_Msk (0x1U << TIM_EGR_BG_Pos) /*!< 0x00000080 */ | |
13319 #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */ | |
13320 #define TIM_EGR_B2G_Pos (8U) | |
13321 #define TIM_EGR_B2G_Msk (0x1U << TIM_EGR_B2G_Pos) /*!< 0x00000100 */ | |
13322 #define TIM_EGR_B2G TIM_EGR_B2G_Msk /*!<Break 2 Generation */ | |
13323 | |
13324 | |
13325 /****************** Bit definition for TIM_CCMR1 register *******************/ | |
13326 #define TIM_CCMR1_CC1S_Pos (0U) | |
13327 #define TIM_CCMR1_CC1S_Msk (0x3U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */ | |
13328 #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */ | |
13329 #define TIM_CCMR1_CC1S_0 (0x1U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */ | |
13330 #define TIM_CCMR1_CC1S_1 (0x2U << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */ | |
13331 | |
13332 #define TIM_CCMR1_OC1FE_Pos (2U) | |
13333 #define TIM_CCMR1_OC1FE_Msk (0x1U << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */ | |
13334 #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */ | |
13335 #define TIM_CCMR1_OC1PE_Pos (3U) | |
13336 #define TIM_CCMR1_OC1PE_Msk (0x1U << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */ | |
13337 #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */ | |
13338 | |
13339 #define TIM_CCMR1_OC1M_Pos (4U) | |
13340 #define TIM_CCMR1_OC1M_Msk (0x1007U << TIM_CCMR1_OC1M_Pos) /*!< 0x00010070 */ | |
13341 #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */ | |
13342 #define TIM_CCMR1_OC1M_0 (0x0001U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */ | |
13343 #define TIM_CCMR1_OC1M_1 (0x0002U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */ | |
13344 #define TIM_CCMR1_OC1M_2 (0x0004U << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */ | |
13345 #define TIM_CCMR1_OC1M_3 (0x1000U << TIM_CCMR1_OC1M_Pos) /*!< 0x00010000 */ | |
13346 | |
13347 #define TIM_CCMR1_OC1CE_Pos (7U) | |
13348 #define TIM_CCMR1_OC1CE_Msk (0x1U << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */ | |
13349 #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1 Clear Enable */ | |
13350 | |
13351 #define TIM_CCMR1_CC2S_Pos (8U) | |
13352 #define TIM_CCMR1_CC2S_Msk (0x3U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */ | |
13353 #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */ | |
13354 #define TIM_CCMR1_CC2S_0 (0x1U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */ | |
13355 #define TIM_CCMR1_CC2S_1 (0x2U << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */ | |
13356 | |
13357 #define TIM_CCMR1_OC2FE_Pos (10U) | |
13358 #define TIM_CCMR1_OC2FE_Msk (0x1U << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */ | |
13359 #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */ | |
13360 #define TIM_CCMR1_OC2PE_Pos (11U) | |
13361 #define TIM_CCMR1_OC2PE_Msk (0x1U << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */ | |
13362 #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */ | |
13363 | |
13364 #define TIM_CCMR1_OC2M_Pos (12U) | |
13365 #define TIM_CCMR1_OC2M_Msk (0x1007U << TIM_CCMR1_OC2M_Pos) /*!< 0x01007000 */ | |
13366 #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */ | |
13367 #define TIM_CCMR1_OC2M_0 (0x0001U << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */ | |
13368 #define TIM_CCMR1_OC2M_1 (0x0002U << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */ | |
13369 #define TIM_CCMR1_OC2M_2 (0x0004U << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */ | |
13370 #define TIM_CCMR1_OC2M_3 (0x1000U << TIM_CCMR1_OC2M_Pos) /*!< 0x01000000 */ | |
13371 | |
13372 #define TIM_CCMR1_OC2CE_Pos (15U) | |
13373 #define TIM_CCMR1_OC2CE_Msk (0x1U << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */ | |
13374 #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */ | |
13375 | |
13376 /*----------------------------------------------------------------------------*/ | |
13377 #define TIM_CCMR1_IC1PSC_Pos (2U) | |
13378 #define TIM_CCMR1_IC1PSC_Msk (0x3U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */ | |
13379 #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */ | |
13380 #define TIM_CCMR1_IC1PSC_0 (0x1U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */ | |
13381 #define TIM_CCMR1_IC1PSC_1 (0x2U << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */ | |
13382 | |
13383 #define TIM_CCMR1_IC1F_Pos (4U) | |
13384 #define TIM_CCMR1_IC1F_Msk (0xFU << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */ | |
13385 #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */ | |
13386 #define TIM_CCMR1_IC1F_0 (0x1U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */ | |
13387 #define TIM_CCMR1_IC1F_1 (0x2U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */ | |
13388 #define TIM_CCMR1_IC1F_2 (0x4U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */ | |
13389 #define TIM_CCMR1_IC1F_3 (0x8U << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */ | |
13390 | |
13391 #define TIM_CCMR1_IC2PSC_Pos (10U) | |
13392 #define TIM_CCMR1_IC2PSC_Msk (0x3U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */ | |
13393 #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */ | |
13394 #define TIM_CCMR1_IC2PSC_0 (0x1U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */ | |
13395 #define TIM_CCMR1_IC2PSC_1 (0x2U << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */ | |
13396 | |
13397 #define TIM_CCMR1_IC2F_Pos (12U) | |
13398 #define TIM_CCMR1_IC2F_Msk (0xFU << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */ | |
13399 #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */ | |
13400 #define TIM_CCMR1_IC2F_0 (0x1U << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */ | |
13401 #define TIM_CCMR1_IC2F_1 (0x2U << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */ | |
13402 #define TIM_CCMR1_IC2F_2 (0x4U << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */ | |
13403 #define TIM_CCMR1_IC2F_3 (0x8U << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */ | |
13404 | |
13405 /****************** Bit definition for TIM_CCMR2 register *******************/ | |
13406 #define TIM_CCMR2_CC3S_Pos (0U) | |
13407 #define TIM_CCMR2_CC3S_Msk (0x3U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */ | |
13408 #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */ | |
13409 #define TIM_CCMR2_CC3S_0 (0x1U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */ | |
13410 #define TIM_CCMR2_CC3S_1 (0x2U << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */ | |
13411 | |
13412 #define TIM_CCMR2_OC3FE_Pos (2U) | |
13413 #define TIM_CCMR2_OC3FE_Msk (0x1U << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */ | |
13414 #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */ | |
13415 #define TIM_CCMR2_OC3PE_Pos (3U) | |
13416 #define TIM_CCMR2_OC3PE_Msk (0x1U << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */ | |
13417 #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */ | |
13418 | |
13419 #define TIM_CCMR2_OC3M_Pos (4U) | |
13420 #define TIM_CCMR2_OC3M_Msk (0x1007U << TIM_CCMR2_OC3M_Pos) /*!< 0x00010070 */ | |
13421 #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */ | |
13422 #define TIM_CCMR2_OC3M_0 (0x0001U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */ | |
13423 #define TIM_CCMR2_OC3M_1 (0x0002U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */ | |
13424 #define TIM_CCMR2_OC3M_2 (0x0004U << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */ | |
13425 #define TIM_CCMR2_OC3M_3 (0x1000U << TIM_CCMR2_OC3M_Pos) /*!< 0x00010000 */ | |
13426 | |
13427 #define TIM_CCMR2_OC3CE_Pos (7U) | |
13428 #define TIM_CCMR2_OC3CE_Msk (0x1U << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */ | |
13429 #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */ | |
13430 | |
13431 #define TIM_CCMR2_CC4S_Pos (8U) | |
13432 #define TIM_CCMR2_CC4S_Msk (0x3U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */ | |
13433 #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */ | |
13434 #define TIM_CCMR2_CC4S_0 (0x1U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */ | |
13435 #define TIM_CCMR2_CC4S_1 (0x2U << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */ | |
13436 | |
13437 #define TIM_CCMR2_OC4FE_Pos (10U) | |
13438 #define TIM_CCMR2_OC4FE_Msk (0x1U << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */ | |
13439 #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */ | |
13440 #define TIM_CCMR2_OC4PE_Pos (11U) | |
13441 #define TIM_CCMR2_OC4PE_Msk (0x1U << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */ | |
13442 #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */ | |
13443 | |
13444 #define TIM_CCMR2_OC4M_Pos (12U) | |
13445 #define TIM_CCMR2_OC4M_Msk (0x1007U << TIM_CCMR2_OC4M_Pos) /*!< 0x01007000 */ | |
13446 #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */ | |
13447 #define TIM_CCMR2_OC4M_0 (0x0001U << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */ | |
13448 #define TIM_CCMR2_OC4M_1 (0x0002U << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */ | |
13449 #define TIM_CCMR2_OC4M_2 (0x0004U << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */ | |
13450 #define TIM_CCMR2_OC4M_3 (0x1000U << TIM_CCMR2_OC4M_Pos) /*!< 0x01000000 */ | |
13451 | |
13452 #define TIM_CCMR2_OC4CE_Pos (15U) | |
13453 #define TIM_CCMR2_OC4CE_Msk (0x1U << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */ | |
13454 #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */ | |
13455 | |
13456 /*----------------------------------------------------------------------------*/ | |
13457 #define TIM_CCMR2_IC3PSC_Pos (2U) | |
13458 #define TIM_CCMR2_IC3PSC_Msk (0x3U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */ | |
13459 #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */ | |
13460 #define TIM_CCMR2_IC3PSC_0 (0x1U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */ | |
13461 #define TIM_CCMR2_IC3PSC_1 (0x2U << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */ | |
13462 | |
13463 #define TIM_CCMR2_IC3F_Pos (4U) | |
13464 #define TIM_CCMR2_IC3F_Msk (0xFU << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */ | |
13465 #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */ | |
13466 #define TIM_CCMR2_IC3F_0 (0x1U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */ | |
13467 #define TIM_CCMR2_IC3F_1 (0x2U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */ | |
13468 #define TIM_CCMR2_IC3F_2 (0x4U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */ | |
13469 #define TIM_CCMR2_IC3F_3 (0x8U << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */ | |
13470 | |
13471 #define TIM_CCMR2_IC4PSC_Pos (10U) | |
13472 #define TIM_CCMR2_IC4PSC_Msk (0x3U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */ | |
13473 #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */ | |
13474 #define TIM_CCMR2_IC4PSC_0 (0x1U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */ | |
13475 #define TIM_CCMR2_IC4PSC_1 (0x2U << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */ | |
13476 | |
13477 #define TIM_CCMR2_IC4F_Pos (12U) | |
13478 #define TIM_CCMR2_IC4F_Msk (0xFU << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */ | |
13479 #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */ | |
13480 #define TIM_CCMR2_IC4F_0 (0x1U << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */ | |
13481 #define TIM_CCMR2_IC4F_1 (0x2U << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */ | |
13482 #define TIM_CCMR2_IC4F_2 (0x4U << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */ | |
13483 #define TIM_CCMR2_IC4F_3 (0x8U << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */ | |
13484 | |
13485 /****************** Bit definition for TIM_CCMR3 register *******************/ | |
13486 #define TIM_CCMR3_OC5FE_Pos (2U) | |
13487 #define TIM_CCMR3_OC5FE_Msk (0x1U << TIM_CCMR3_OC5FE_Pos) /*!< 0x00000004 */ | |
13488 #define TIM_CCMR3_OC5FE TIM_CCMR3_OC5FE_Msk /*!<Output Compare 5 Fast enable */ | |
13489 #define TIM_CCMR3_OC5PE_Pos (3U) | |
13490 #define TIM_CCMR3_OC5PE_Msk (0x1U << TIM_CCMR3_OC5PE_Pos) /*!< 0x00000008 */ | |
13491 #define TIM_CCMR3_OC5PE TIM_CCMR3_OC5PE_Msk /*!<Output Compare 5 Preload enable */ | |
13492 | |
13493 #define TIM_CCMR3_OC5M_Pos (4U) | |
13494 #define TIM_CCMR3_OC5M_Msk (0x1007U << TIM_CCMR3_OC5M_Pos) /*!< 0x00010070 */ | |
13495 #define TIM_CCMR3_OC5M TIM_CCMR3_OC5M_Msk /*!<OC5M[3:0] bits (Output Compare 5 Mode) */ | |
13496 #define TIM_CCMR3_OC5M_0 (0x0001U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000010 */ | |
13497 #define TIM_CCMR3_OC5M_1 (0x0002U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000020 */ | |
13498 #define TIM_CCMR3_OC5M_2 (0x0004U << TIM_CCMR3_OC5M_Pos) /*!< 0x00000040 */ | |
13499 #define TIM_CCMR3_OC5M_3 (0x1000U << TIM_CCMR3_OC5M_Pos) /*!< 0x00010000 */ | |
13500 | |
13501 #define TIM_CCMR3_OC5CE_Pos (7U) | |
13502 #define TIM_CCMR3_OC5CE_Msk (0x1U << TIM_CCMR3_OC5CE_Pos) /*!< 0x00000080 */ | |
13503 #define TIM_CCMR3_OC5CE TIM_CCMR3_OC5CE_Msk /*!<Output Compare 5 Clear Enable */ | |
13504 | |
13505 #define TIM_CCMR3_OC6FE_Pos (10U) | |
13506 #define TIM_CCMR3_OC6FE_Msk (0x1U << TIM_CCMR3_OC6FE_Pos) /*!< 0x00000400 */ | |
13507 #define TIM_CCMR3_OC6FE TIM_CCMR3_OC6FE_Msk /*!<Output Compare 6 Fast enable */ | |
13508 #define TIM_CCMR3_OC6PE_Pos (11U) | |
13509 #define TIM_CCMR3_OC6PE_Msk (0x1U << TIM_CCMR3_OC6PE_Pos) /*!< 0x00000800 */ | |
13510 #define TIM_CCMR3_OC6PE TIM_CCMR3_OC6PE_Msk /*!<Output Compare 6 Preload enable */ | |
13511 | |
13512 #define TIM_CCMR3_OC6M_Pos (12U) | |
13513 #define TIM_CCMR3_OC6M_Msk (0x1007U << TIM_CCMR3_OC6M_Pos) /*!< 0x01007000 */ | |
13514 #define TIM_CCMR3_OC6M TIM_CCMR3_OC6M_Msk /*!<OC6M[3:0] bits (Output Compare 6 Mode) */ | |
13515 #define TIM_CCMR3_OC6M_0 (0x0001U << TIM_CCMR3_OC6M_Pos) /*!< 0x00001000 */ | |
13516 #define TIM_CCMR3_OC6M_1 (0x0002U << TIM_CCMR3_OC6M_Pos) /*!< 0x00002000 */ | |
13517 #define TIM_CCMR3_OC6M_2 (0x0004U << TIM_CCMR3_OC6M_Pos) /*!< 0x00004000 */ | |
13518 #define TIM_CCMR3_OC6M_3 (0x1000U << TIM_CCMR3_OC6M_Pos) /*!< 0x01000000 */ | |
13519 | |
13520 #define TIM_CCMR3_OC6CE_Pos (15U) | |
13521 #define TIM_CCMR3_OC6CE_Msk (0x1U << TIM_CCMR3_OC6CE_Pos) /*!< 0x00008000 */ | |
13522 #define TIM_CCMR3_OC6CE TIM_CCMR3_OC6CE_Msk /*!<Output Compare 6 Clear Enable */ | |
13523 | |
13524 /******************* Bit definition for TIM_CCER register *******************/ | |
13525 #define TIM_CCER_CC1E_Pos (0U) | |
13526 #define TIM_CCER_CC1E_Msk (0x1U << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */ | |
13527 #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */ | |
13528 #define TIM_CCER_CC1P_Pos (1U) | |
13529 #define TIM_CCER_CC1P_Msk (0x1U << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */ | |
13530 #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */ | |
13531 #define TIM_CCER_CC1NE_Pos (2U) | |
13532 #define TIM_CCER_CC1NE_Msk (0x1U << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */ | |
13533 #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */ | |
13534 #define TIM_CCER_CC1NP_Pos (3U) | |
13535 #define TIM_CCER_CC1NP_Msk (0x1U << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */ | |
13536 #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */ | |
13537 #define TIM_CCER_CC2E_Pos (4U) | |
13538 #define TIM_CCER_CC2E_Msk (0x1U << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */ | |
13539 #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */ | |
13540 #define TIM_CCER_CC2P_Pos (5U) | |
13541 #define TIM_CCER_CC2P_Msk (0x1U << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */ | |
13542 #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */ | |
13543 #define TIM_CCER_CC2NE_Pos (6U) | |
13544 #define TIM_CCER_CC2NE_Msk (0x1U << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */ | |
13545 #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */ | |
13546 #define TIM_CCER_CC2NP_Pos (7U) | |
13547 #define TIM_CCER_CC2NP_Msk (0x1U << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */ | |
13548 #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */ | |
13549 #define TIM_CCER_CC3E_Pos (8U) | |
13550 #define TIM_CCER_CC3E_Msk (0x1U << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */ | |
13551 #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */ | |
13552 #define TIM_CCER_CC3P_Pos (9U) | |
13553 #define TIM_CCER_CC3P_Msk (0x1U << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */ | |
13554 #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */ | |
13555 #define TIM_CCER_CC3NE_Pos (10U) | |
13556 #define TIM_CCER_CC3NE_Msk (0x1U << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */ | |
13557 #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */ | |
13558 #define TIM_CCER_CC3NP_Pos (11U) | |
13559 #define TIM_CCER_CC3NP_Msk (0x1U << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */ | |
13560 #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */ | |
13561 #define TIM_CCER_CC4E_Pos (12U) | |
13562 #define TIM_CCER_CC4E_Msk (0x1U << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */ | |
13563 #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */ | |
13564 #define TIM_CCER_CC4P_Pos (13U) | |
13565 #define TIM_CCER_CC4P_Msk (0x1U << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */ | |
13566 #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */ | |
13567 #define TIM_CCER_CC4NP_Pos (15U) | |
13568 #define TIM_CCER_CC4NP_Msk (0x1U << TIM_CCER_CC4NP_Pos) /*!< 0x00008000 */ | |
13569 #define TIM_CCER_CC4NP TIM_CCER_CC4NP_Msk /*!<Capture/Compare 4 Complementary output Polarity */ | |
13570 #define TIM_CCER_CC5E_Pos (16U) | |
13571 #define TIM_CCER_CC5E_Msk (0x1U << TIM_CCER_CC5E_Pos) /*!< 0x00010000 */ | |
13572 #define TIM_CCER_CC5E TIM_CCER_CC5E_Msk /*!<Capture/Compare 5 output enable */ | |
13573 #define TIM_CCER_CC5P_Pos (17U) | |
13574 #define TIM_CCER_CC5P_Msk (0x1U << TIM_CCER_CC5P_Pos) /*!< 0x00020000 */ | |
13575 #define TIM_CCER_CC5P TIM_CCER_CC5P_Msk /*!<Capture/Compare 5 output Polarity */ | |
13576 #define TIM_CCER_CC6E_Pos (20U) | |
13577 #define TIM_CCER_CC6E_Msk (0x1U << TIM_CCER_CC6E_Pos) /*!< 0x00100000 */ | |
13578 #define TIM_CCER_CC6E TIM_CCER_CC6E_Msk /*!<Capture/Compare 6 output enable */ | |
13579 #define TIM_CCER_CC6P_Pos (21U) | |
13580 #define TIM_CCER_CC6P_Msk (0x1U << TIM_CCER_CC6P_Pos) /*!< 0x00200000 */ | |
13581 #define TIM_CCER_CC6P TIM_CCER_CC6P_Msk /*!<Capture/Compare 6 output Polarity */ | |
13582 | |
13583 /******************* Bit definition for TIM_CNT register ********************/ | |
13584 #define TIM_CNT_CNT_Pos (0U) | |
13585 #define TIM_CNT_CNT_Msk (0xFFFFFFFFU << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */ | |
13586 #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */ | |
13587 #define TIM_CNT_UIFCPY_Pos (31U) | |
13588 #define TIM_CNT_UIFCPY_Msk (0x1U << TIM_CNT_UIFCPY_Pos) /*!< 0x80000000 */ | |
13589 #define TIM_CNT_UIFCPY TIM_CNT_UIFCPY_Msk /*!<Update interrupt flag copy (if UIFREMAP=1) */ | |
13590 | |
13591 /******************* Bit definition for TIM_PSC register ********************/ | |
13592 #define TIM_PSC_PSC_Pos (0U) | |
13593 #define TIM_PSC_PSC_Msk (0xFFFFU << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */ | |
13594 #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */ | |
13595 | |
13596 /******************* Bit definition for TIM_ARR register ********************/ | |
13597 #define TIM_ARR_ARR_Pos (0U) | |
13598 #define TIM_ARR_ARR_Msk (0xFFFFFFFFU << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */ | |
13599 #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<Actual auto-reload Value */ | |
13600 | |
13601 /******************* Bit definition for TIM_RCR register ********************/ | |
13602 #define TIM_RCR_REP_Pos (0U) | |
13603 #define TIM_RCR_REP_Msk (0xFFFFU << TIM_RCR_REP_Pos) /*!< 0x0000FFFF */ | |
13604 #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */ | |
13605 | |
13606 /******************* Bit definition for TIM_CCR1 register *******************/ | |
13607 #define TIM_CCR1_CCR1_Pos (0U) | |
13608 #define TIM_CCR1_CCR1_Msk (0xFFFFU << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */ | |
13609 #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */ | |
13610 | |
13611 /******************* Bit definition for TIM_CCR2 register *******************/ | |
13612 #define TIM_CCR2_CCR2_Pos (0U) | |
13613 #define TIM_CCR2_CCR2_Msk (0xFFFFU << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */ | |
13614 #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */ | |
13615 | |
13616 /******************* Bit definition for TIM_CCR3 register *******************/ | |
13617 #define TIM_CCR3_CCR3_Pos (0U) | |
13618 #define TIM_CCR3_CCR3_Msk (0xFFFFU << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */ | |
13619 #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */ | |
13620 | |
13621 /******************* Bit definition for TIM_CCR4 register *******************/ | |
13622 #define TIM_CCR4_CCR4_Pos (0U) | |
13623 #define TIM_CCR4_CCR4_Msk (0xFFFFU << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */ | |
13624 #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */ | |
13625 | |
13626 /******************* Bit definition for TIM_CCR5 register *******************/ | |
13627 #define TIM_CCR5_CCR5_Pos (0U) | |
13628 #define TIM_CCR5_CCR5_Msk (0xFFFFFFFFU << TIM_CCR5_CCR5_Pos) /*!< 0xFFFFFFFF */ | |
13629 #define TIM_CCR5_CCR5 TIM_CCR5_CCR5_Msk /*!<Capture/Compare 5 Value */ | |
13630 #define TIM_CCR5_GC5C1_Pos (29U) | |
13631 #define TIM_CCR5_GC5C1_Msk (0x1U << TIM_CCR5_GC5C1_Pos) /*!< 0x20000000 */ | |
13632 #define TIM_CCR5_GC5C1 TIM_CCR5_GC5C1_Msk /*!<Group Channel 5 and Channel 1 */ | |
13633 #define TIM_CCR5_GC5C2_Pos (30U) | |
13634 #define TIM_CCR5_GC5C2_Msk (0x1U << TIM_CCR5_GC5C2_Pos) /*!< 0x40000000 */ | |
13635 #define TIM_CCR5_GC5C2 TIM_CCR5_GC5C2_Msk /*!<Group Channel 5 and Channel 2 */ | |
13636 #define TIM_CCR5_GC5C3_Pos (31U) | |
13637 #define TIM_CCR5_GC5C3_Msk (0x1U << TIM_CCR5_GC5C3_Pos) /*!< 0x80000000 */ | |
13638 #define TIM_CCR5_GC5C3 TIM_CCR5_GC5C3_Msk /*!<Group Channel 5 and Channel 3 */ | |
13639 | |
13640 /******************* Bit definition for TIM_CCR6 register *******************/ | |
13641 #define TIM_CCR6_CCR6_Pos (0U) | |
13642 #define TIM_CCR6_CCR6_Msk (0xFFFFU << TIM_CCR6_CCR6_Pos) /*!< 0x0000FFFF */ | |
13643 #define TIM_CCR6_CCR6 TIM_CCR6_CCR6_Msk /*!<Capture/Compare 6 Value */ | |
13644 | |
13645 /******************* Bit definition for TIM_BDTR register *******************/ | |
13646 #define TIM_BDTR_DTG_Pos (0U) | |
13647 #define TIM_BDTR_DTG_Msk (0xFFU << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */ | |
13648 #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */ | |
13649 #define TIM_BDTR_DTG_0 (0x01U << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */ | |
13650 #define TIM_BDTR_DTG_1 (0x02U << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */ | |
13651 #define TIM_BDTR_DTG_2 (0x04U << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */ | |
13652 #define TIM_BDTR_DTG_3 (0x08U << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */ | |
13653 #define TIM_BDTR_DTG_4 (0x10U << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */ | |
13654 #define TIM_BDTR_DTG_5 (0x20U << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */ | |
13655 #define TIM_BDTR_DTG_6 (0x40U << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */ | |
13656 #define TIM_BDTR_DTG_7 (0x80U << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */ | |
13657 | |
13658 #define TIM_BDTR_LOCK_Pos (8U) | |
13659 #define TIM_BDTR_LOCK_Msk (0x3U << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */ | |
13660 #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */ | |
13661 #define TIM_BDTR_LOCK_0 (0x1U << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */ | |
13662 #define TIM_BDTR_LOCK_1 (0x2U << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */ | |
13663 | |
13664 #define TIM_BDTR_OSSI_Pos (10U) | |
13665 #define TIM_BDTR_OSSI_Msk (0x1U << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */ | |
13666 #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */ | |
13667 #define TIM_BDTR_OSSR_Pos (11U) | |
13668 #define TIM_BDTR_OSSR_Msk (0x1U << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */ | |
13669 #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */ | |
13670 #define TIM_BDTR_BKE_Pos (12U) | |
13671 #define TIM_BDTR_BKE_Msk (0x1U << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */ | |
13672 #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable for Break 1 */ | |
13673 #define TIM_BDTR_BKP_Pos (13U) | |
13674 #define TIM_BDTR_BKP_Msk (0x1U << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */ | |
13675 #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity for Break 1 */ | |
13676 #define TIM_BDTR_AOE_Pos (14U) | |
13677 #define TIM_BDTR_AOE_Msk (0x1U << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */ | |
13678 #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */ | |
13679 #define TIM_BDTR_MOE_Pos (15U) | |
13680 #define TIM_BDTR_MOE_Msk (0x1U << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */ | |
13681 #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */ | |
13682 | |
13683 #define TIM_BDTR_BKF_Pos (16U) | |
13684 #define TIM_BDTR_BKF_Msk (0xFU << TIM_BDTR_BKF_Pos) /*!< 0x000F0000 */ | |
13685 #define TIM_BDTR_BKF TIM_BDTR_BKF_Msk /*!<Break Filter for Break 1 */ | |
13686 #define TIM_BDTR_BK2F_Pos (20U) | |
13687 #define TIM_BDTR_BK2F_Msk (0xFU << TIM_BDTR_BK2F_Pos) /*!< 0x00F00000 */ | |
13688 #define TIM_BDTR_BK2F TIM_BDTR_BK2F_Msk /*!<Break Filter for Break 2 */ | |
13689 | |
13690 #define TIM_BDTR_BK2E_Pos (24U) | |
13691 #define TIM_BDTR_BK2E_Msk (0x1U << TIM_BDTR_BK2E_Pos) /*!< 0x01000000 */ | |
13692 #define TIM_BDTR_BK2E TIM_BDTR_BK2E_Msk /*!<Break enable for Break 2 */ | |
13693 #define TIM_BDTR_BK2P_Pos (25U) | |
13694 #define TIM_BDTR_BK2P_Msk (0x1U << TIM_BDTR_BK2P_Pos) /*!< 0x02000000 */ | |
13695 #define TIM_BDTR_BK2P TIM_BDTR_BK2P_Msk /*!<Break Polarity for Break 2 */ | |
13696 | |
13697 /******************* Bit definition for TIM_DCR register ********************/ | |
13698 #define TIM_DCR_DBA_Pos (0U) | |
13699 #define TIM_DCR_DBA_Msk (0x1FU << TIM_DCR_DBA_Pos) /*!< 0x0000001F */ | |
13700 #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */ | |
13701 #define TIM_DCR_DBA_0 (0x01U << TIM_DCR_DBA_Pos) /*!< 0x00000001 */ | |
13702 #define TIM_DCR_DBA_1 (0x02U << TIM_DCR_DBA_Pos) /*!< 0x00000002 */ | |
13703 #define TIM_DCR_DBA_2 (0x04U << TIM_DCR_DBA_Pos) /*!< 0x00000004 */ | |
13704 #define TIM_DCR_DBA_3 (0x08U << TIM_DCR_DBA_Pos) /*!< 0x00000008 */ | |
13705 #define TIM_DCR_DBA_4 (0x10U << TIM_DCR_DBA_Pos) /*!< 0x00000010 */ | |
13706 | |
13707 #define TIM_DCR_DBL_Pos (8U) | |
13708 #define TIM_DCR_DBL_Msk (0x1FU << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */ | |
13709 #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */ | |
13710 #define TIM_DCR_DBL_0 (0x01U << TIM_DCR_DBL_Pos) /*!< 0x00000100 */ | |
13711 #define TIM_DCR_DBL_1 (0x02U << TIM_DCR_DBL_Pos) /*!< 0x00000200 */ | |
13712 #define TIM_DCR_DBL_2 (0x04U << TIM_DCR_DBL_Pos) /*!< 0x00000400 */ | |
13713 #define TIM_DCR_DBL_3 (0x08U << TIM_DCR_DBL_Pos) /*!< 0x00000800 */ | |
13714 #define TIM_DCR_DBL_4 (0x10U << TIM_DCR_DBL_Pos) /*!< 0x00001000 */ | |
13715 | |
13716 /******************* Bit definition for TIM_DMAR register *******************/ | |
13717 #define TIM_DMAR_DMAB_Pos (0U) | |
13718 #define TIM_DMAR_DMAB_Msk (0xFFFFU << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */ | |
13719 #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */ | |
13720 | |
13721 /******************* Bit definition for TIM1_OR1 register *******************/ | |
13722 #define TIM1_OR1_ETR_ADC1_RMP_Pos (0U) | |
13723 #define TIM1_OR1_ETR_ADC1_RMP_Msk (0x3U << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000003 */ | |
13724 #define TIM1_OR1_ETR_ADC1_RMP TIM1_OR1_ETR_ADC1_RMP_Msk /*!<ETR_ADC1_RMP[1:0] bits (TIM1 ETR remap on ADC1) */ | |
13725 #define TIM1_OR1_ETR_ADC1_RMP_0 (0x1U << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000001 */ | |
13726 #define TIM1_OR1_ETR_ADC1_RMP_1 (0x2U << TIM1_OR1_ETR_ADC1_RMP_Pos) /*!< 0x00000002 */ | |
13727 | |
13728 #define TIM1_OR1_TI1_RMP_Pos (4U) | |
13729 #define TIM1_OR1_TI1_RMP_Msk (0x1U << TIM1_OR1_TI1_RMP_Pos) /*!< 0x00000010 */ | |
13730 #define TIM1_OR1_TI1_RMP TIM1_OR1_TI1_RMP_Msk /*!<TIM1 Input Capture 1 remap */ | |
13731 | |
13732 /******************* Bit definition for TIM1_OR2 register *******************/ | |
13733 #define TIM1_OR2_BKINE_Pos (0U) | |
13734 #define TIM1_OR2_BKINE_Msk (0x1U << TIM1_OR2_BKINE_Pos) /*!< 0x00000001 */ | |
13735 #define TIM1_OR2_BKINE TIM1_OR2_BKINE_Msk /*!<BRK BKIN input enable */ | |
13736 #define TIM1_OR2_BKCMP1E_Pos (1U) | |
13737 #define TIM1_OR2_BKCMP1E_Msk (0x1U << TIM1_OR2_BKCMP1E_Pos) /*!< 0x00000002 */ | |
13738 #define TIM1_OR2_BKCMP1E TIM1_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */ | |
13739 #define TIM1_OR2_BKCMP2E_Pos (2U) | |
13740 #define TIM1_OR2_BKCMP2E_Msk (0x1U << TIM1_OR2_BKCMP2E_Pos) /*!< 0x00000004 */ | |
13741 #define TIM1_OR2_BKCMP2E TIM1_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */ | |
13742 #define TIM1_OR2_BKDF1BK0E_Pos (8U) | |
13743 #define TIM1_OR2_BKDF1BK0E_Msk (0x1U << TIM1_OR2_BKDF1BK0E_Pos) /*!< 0x00000100 */ | |
13744 #define TIM1_OR2_BKDF1BK0E TIM1_OR2_BKDF1BK0E_Msk /*!<BRK DFSDM1_BREAK[0] enable */ | |
13745 #define TIM1_OR2_BKINP_Pos (9U) | |
13746 #define TIM1_OR2_BKINP_Msk (0x1U << TIM1_OR2_BKINP_Pos) /*!< 0x00000200 */ | |
13747 #define TIM1_OR2_BKINP TIM1_OR2_BKINP_Msk /*!<BRK BKIN input polarity */ | |
13748 #define TIM1_OR2_BKCMP1P_Pos (10U) | |
13749 #define TIM1_OR2_BKCMP1P_Msk (0x1U << TIM1_OR2_BKCMP1P_Pos) /*!< 0x00000400 */ | |
13750 #define TIM1_OR2_BKCMP1P TIM1_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */ | |
13751 #define TIM1_OR2_BKCMP2P_Pos (11U) | |
13752 #define TIM1_OR2_BKCMP2P_Msk (0x1U << TIM1_OR2_BKCMP2P_Pos) /*!< 0x00000800 */ | |
13753 #define TIM1_OR2_BKCMP2P TIM1_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */ | |
13754 | |
13755 #define TIM1_OR2_ETRSEL_Pos (14U) | |
13756 #define TIM1_OR2_ETRSEL_Msk (0x7U << TIM1_OR2_ETRSEL_Pos) /*!< 0x0001C000 */ | |
13757 #define TIM1_OR2_ETRSEL TIM1_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM1 ETR source selection) */ | |
13758 #define TIM1_OR2_ETRSEL_0 (0x1U << TIM1_OR2_ETRSEL_Pos) /*!< 0x00004000 */ | |
13759 #define TIM1_OR2_ETRSEL_1 (0x2U << TIM1_OR2_ETRSEL_Pos) /*!< 0x00008000 */ | |
13760 #define TIM1_OR2_ETRSEL_2 (0x4U << TIM1_OR2_ETRSEL_Pos) /*!< 0x00010000 */ | |
13761 | |
13762 /******************* Bit definition for TIM1_OR3 register *******************/ | |
13763 #define TIM1_OR3_BK2INE_Pos (0U) | |
13764 #define TIM1_OR3_BK2INE_Msk (0x1U << TIM1_OR3_BK2INE_Pos) /*!< 0x00000001 */ | |
13765 #define TIM1_OR3_BK2INE TIM1_OR3_BK2INE_Msk /*!<BRK2 BKIN2 input enable */ | |
13766 #define TIM1_OR3_BK2CMP1E_Pos (1U) | |
13767 #define TIM1_OR3_BK2CMP1E_Msk (0x1U << TIM1_OR3_BK2CMP1E_Pos) /*!< 0x00000002 */ | |
13768 #define TIM1_OR3_BK2CMP1E TIM1_OR3_BK2CMP1E_Msk /*!<BRK2 COMP1 enable */ | |
13769 #define TIM1_OR3_BK2CMP2E_Pos (2U) | |
13770 #define TIM1_OR3_BK2CMP2E_Msk (0x1U << TIM1_OR3_BK2CMP2E_Pos) /*!< 0x00000004 */ | |
13771 #define TIM1_OR3_BK2CMP2E TIM1_OR3_BK2CMP2E_Msk /*!<BRK2 COMP2 enable */ | |
13772 #define TIM1_OR3_BK2DF1BK1E_Pos (8U) | |
13773 #define TIM1_OR3_BK2DF1BK1E_Msk (0x1U << TIM1_OR3_BK2DF1BK1E_Pos) /*!< 0x00000100 */ | |
13774 #define TIM1_OR3_BK2DF1BK1E TIM1_OR3_BK2DF1BK1E_Msk /*!<BRK2 DFSDM1_BREAK[1] enable */ | |
13775 #define TIM1_OR3_BK2INP_Pos (9U) | |
13776 #define TIM1_OR3_BK2INP_Msk (0x1U << TIM1_OR3_BK2INP_Pos) /*!< 0x00000200 */ | |
13777 #define TIM1_OR3_BK2INP TIM1_OR3_BK2INP_Msk /*!<BRK2 BKIN2 input polarity */ | |
13778 #define TIM1_OR3_BK2CMP1P_Pos (10U) | |
13779 #define TIM1_OR3_BK2CMP1P_Msk (0x1U << TIM1_OR3_BK2CMP1P_Pos) /*!< 0x00000400 */ | |
13780 #define TIM1_OR3_BK2CMP1P TIM1_OR3_BK2CMP1P_Msk /*!<BRK2 COMP1 input polarity */ | |
13781 #define TIM1_OR3_BK2CMP2P_Pos (11U) | |
13782 #define TIM1_OR3_BK2CMP2P_Msk (0x1U << TIM1_OR3_BK2CMP2P_Pos) /*!< 0x00000800 */ | |
13783 #define TIM1_OR3_BK2CMP2P TIM1_OR3_BK2CMP2P_Msk /*!<BRK2 COMP2 input polarity */ | |
13784 | |
13785 | |
13786 /******************* Bit definition for TIM2_OR1 register *******************/ | |
13787 #define TIM2_OR1_ITR1_RMP_Pos (0U) | |
13788 #define TIM2_OR1_ITR1_RMP_Msk (0x1U << TIM2_OR1_ITR1_RMP_Pos) /*!< 0x00000001 */ | |
13789 #define TIM2_OR1_ITR1_RMP TIM2_OR1_ITR1_RMP_Msk /*!<TIM2 Internal trigger 1 remap */ | |
13790 #define TIM2_OR1_ETR1_RMP_Pos (1U) | |
13791 #define TIM2_OR1_ETR1_RMP_Msk (0x1U << TIM2_OR1_ETR1_RMP_Pos) /*!< 0x00000002 */ | |
13792 #define TIM2_OR1_ETR1_RMP TIM2_OR1_ETR1_RMP_Msk /*!<TIM2 External trigger 1 remap */ | |
13793 | |
13794 #define TIM2_OR1_TI4_RMP_Pos (2U) | |
13795 #define TIM2_OR1_TI4_RMP_Msk (0x3U << TIM2_OR1_TI4_RMP_Pos) /*!< 0x0000000C */ | |
13796 #define TIM2_OR1_TI4_RMP TIM2_OR1_TI4_RMP_Msk /*!<TI4_RMP[1:0] bits (TIM2 Input Capture 4 remap) */ | |
13797 #define TIM2_OR1_TI4_RMP_0 (0x1U << TIM2_OR1_TI4_RMP_Pos) /*!< 0x00000004 */ | |
13798 #define TIM2_OR1_TI4_RMP_1 (0x2U << TIM2_OR1_TI4_RMP_Pos) /*!< 0x00000008 */ | |
13799 | |
13800 /******************* Bit definition for TIM2_OR2 register *******************/ | |
13801 #define TIM2_OR2_ETRSEL_Pos (14U) | |
13802 #define TIM2_OR2_ETRSEL_Msk (0x7U << TIM2_OR2_ETRSEL_Pos) /*!< 0x0001C000 */ | |
13803 #define TIM2_OR2_ETRSEL TIM2_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM2 ETR source selection) */ | |
13804 #define TIM2_OR2_ETRSEL_0 (0x1U << TIM2_OR2_ETRSEL_Pos) /*!< 0x00004000 */ | |
13805 #define TIM2_OR2_ETRSEL_1 (0x2U << TIM2_OR2_ETRSEL_Pos) /*!< 0x00008000 */ | |
13806 #define TIM2_OR2_ETRSEL_2 (0x4U << TIM2_OR2_ETRSEL_Pos) /*!< 0x00010000 */ | |
13807 | |
13808 /******************* Bit definition for TIM3_OR1 register *******************/ | |
13809 #define TIM3_OR1_TI1_RMP_Pos (0U) | |
13810 #define TIM3_OR1_TI1_RMP_Msk (0x3U << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000003 */ | |
13811 #define TIM3_OR1_TI1_RMP TIM3_OR1_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM3 Input Capture 1 remap) */ | |
13812 #define TIM3_OR1_TI1_RMP_0 (0x1U << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000001 */ | |
13813 #define TIM3_OR1_TI1_RMP_1 (0x2U << TIM3_OR1_TI1_RMP_Pos) /*!< 0x00000002 */ | |
13814 | |
13815 /******************* Bit definition for TIM3_OR2 register *******************/ | |
13816 #define TIM3_OR2_ETRSEL_Pos (14U) | |
13817 #define TIM3_OR2_ETRSEL_Msk (0x7U << TIM3_OR2_ETRSEL_Pos) /*!< 0x0001C000 */ | |
13818 #define TIM3_OR2_ETRSEL TIM3_OR2_ETRSEL_Msk /*!<ETRSEL[2:0] bits (TIM3 ETR source selection) */ | |
13819 #define TIM3_OR2_ETRSEL_0 (0x1U << TIM3_OR2_ETRSEL_Pos) /*!< 0x00004000 */ | |
13820 #define TIM3_OR2_ETRSEL_1 (0x2U << TIM3_OR2_ETRSEL_Pos) /*!< 0x00008000 */ | |
13821 #define TIM3_OR2_ETRSEL_2 (0x4U << TIM3_OR2_ETRSEL_Pos) /*!< 0x00010000 */ | |
13822 | |
13823 /******************* Bit definition for TIM15_OR1 register ******************/ | |
13824 #define TIM15_OR1_TI1_RMP_Pos (0U) | |
13825 #define TIM15_OR1_TI1_RMP_Msk (0x1U << TIM15_OR1_TI1_RMP_Pos) /*!< 0x00000001 */ | |
13826 #define TIM15_OR1_TI1_RMP TIM15_OR1_TI1_RMP_Msk /*!<TIM15 Input Capture 1 remap */ | |
13827 | |
13828 #define TIM15_OR1_ENCODER_MODE_Pos (1U) | |
13829 #define TIM15_OR1_ENCODER_MODE_Msk (0x3U << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000006 */ | |
13830 #define TIM15_OR1_ENCODER_MODE TIM15_OR1_ENCODER_MODE_Msk /*!<ENCODER_MODE[1:0] bits (TIM15 Encoder mode) */ | |
13831 #define TIM15_OR1_ENCODER_MODE_0 (0x1U << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000002 */ | |
13832 #define TIM15_OR1_ENCODER_MODE_1 (0x2U << TIM15_OR1_ENCODER_MODE_Pos) /*!< 0x00000004 */ | |
13833 | |
13834 /******************* Bit definition for TIM15_OR2 register ******************/ | |
13835 #define TIM15_OR2_BKINE_Pos (0U) | |
13836 #define TIM15_OR2_BKINE_Msk (0x1U << TIM15_OR2_BKINE_Pos) /*!< 0x00000001 */ | |
13837 #define TIM15_OR2_BKINE TIM15_OR2_BKINE_Msk /*!<BRK BKIN input enable */ | |
13838 #define TIM15_OR2_BKCMP1E_Pos (1U) | |
13839 #define TIM15_OR2_BKCMP1E_Msk (0x1U << TIM15_OR2_BKCMP1E_Pos) /*!< 0x00000002 */ | |
13840 #define TIM15_OR2_BKCMP1E TIM15_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */ | |
13841 #define TIM15_OR2_BKCMP2E_Pos (2U) | |
13842 #define TIM15_OR2_BKCMP2E_Msk (0x1U << TIM15_OR2_BKCMP2E_Pos) /*!< 0x00000004 */ | |
13843 #define TIM15_OR2_BKCMP2E TIM15_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */ | |
13844 #define TIM15_OR2_BKDF1BK0E_Pos (8U) | |
13845 #define TIM15_OR2_BKDF1BK0E_Msk (0x1U << TIM15_OR2_BKDF1BK0E_Pos) /*!< 0x00000100 */ | |
13846 #define TIM15_OR2_BKDF1BK0E TIM15_OR2_BKDF1BK0E_Msk /*!<BRK DFSDM1_BREAK[0] enable */ | |
13847 #define TIM15_OR2_BKINP_Pos (9U) | |
13848 #define TIM15_OR2_BKINP_Msk (0x1U << TIM15_OR2_BKINP_Pos) /*!< 0x00000200 */ | |
13849 #define TIM15_OR2_BKINP TIM15_OR2_BKINP_Msk /*!<BRK BKIN input polarity */ | |
13850 #define TIM15_OR2_BKCMP1P_Pos (10U) | |
13851 #define TIM15_OR2_BKCMP1P_Msk (0x1U << TIM15_OR2_BKCMP1P_Pos) /*!< 0x00000400 */ | |
13852 #define TIM15_OR2_BKCMP1P TIM15_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */ | |
13853 #define TIM15_OR2_BKCMP2P_Pos (11U) | |
13854 #define TIM15_OR2_BKCMP2P_Msk (0x1U << TIM15_OR2_BKCMP2P_Pos) /*!< 0x00000800 */ | |
13855 #define TIM15_OR2_BKCMP2P TIM15_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */ | |
13856 | |
13857 /******************* Bit definition for TIM16_OR1 register ******************/ | |
13858 #define TIM16_OR1_TI1_RMP_Pos (0U) | |
13859 #define TIM16_OR1_TI1_RMP_Msk (0x3U << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000003 */ | |
13860 #define TIM16_OR1_TI1_RMP TIM16_OR1_TI1_RMP_Msk /*!<TI1_RMP[1:0] bits (TIM16 Input Capture 1 remap) */ | |
13861 #define TIM16_OR1_TI1_RMP_0 (0x1U << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000001 */ | |
13862 #define TIM16_OR1_TI1_RMP_1 (0x2U << TIM16_OR1_TI1_RMP_Pos) /*!< 0x00000002 */ | |
13863 | |
13864 /******************* Bit definition for TIM16_OR2 register ******************/ | |
13865 #define TIM16_OR2_BKINE_Pos (0U) | |
13866 #define TIM16_OR2_BKINE_Msk (0x1U << TIM16_OR2_BKINE_Pos) /*!< 0x00000001 */ | |
13867 #define TIM16_OR2_BKINE TIM16_OR2_BKINE_Msk /*!<BRK BKIN input enable */ | |
13868 #define TIM16_OR2_BKCMP1E_Pos (1U) | |
13869 #define TIM16_OR2_BKCMP1E_Msk (0x1U << TIM16_OR2_BKCMP1E_Pos) /*!< 0x00000002 */ | |
13870 #define TIM16_OR2_BKCMP1E TIM16_OR2_BKCMP1E_Msk /*!<BRK COMP1 enable */ | |
13871 #define TIM16_OR2_BKCMP2E_Pos (2U) | |
13872 #define TIM16_OR2_BKCMP2E_Msk (0x1U << TIM16_OR2_BKCMP2E_Pos) /*!< 0x00000004 */ | |
13873 #define TIM16_OR2_BKCMP2E TIM16_OR2_BKCMP2E_Msk /*!<BRK COMP2 enable */ | |
13874 #define TIM16_OR2_BKDF1BK1E_Pos (8U) | |
13875 #define TIM16_OR2_BKDF1BK1E_Msk (0x1U << TIM16_OR2_BKDF1BK1E_Pos) /*!< 0x00000100 */ | |
13876 #define TIM16_OR2_BKDF1BK1E TIM16_OR2_BKDF1BK1E_Msk /*!<BRK DFSDM1_BREAK[1] enable */ | |
13877 #define TIM16_OR2_BKINP_Pos (9U) | |
13878 #define TIM16_OR2_BKINP_Msk (0x1U << TIM16_OR2_BKINP_Pos) /*!< 0x00000200 */ | |
13879 #define TIM16_OR2_BKINP TIM16_OR2_BKINP_Msk /*!<BRK BKIN input polarity */ | |
13880 #define TIM16_OR2_BKCMP1P_Pos (10U) | |
13881 #define TIM16_OR2_BKCMP1P_Msk (0x1U << TIM16_OR2_BKCMP1P_Pos) /*!< 0x00000400 */ | |
13882 #define TIM16_OR2_BKCMP1P TIM16_OR2_BKCMP1P_Msk /*!<BRK COMP1 input polarity */ | |
13883 #define TIM16_OR2_BKCMP2P_Pos (11U) | |
13884 #define TIM16_OR2_BKCMP2P_Msk (0x1U << TIM16_OR2_BKCMP2P_Pos) /*!< 0x00000800 */ | |
13885 #define TIM16_OR2_BKCMP2P TIM16_OR2_BKCMP2P_Msk /*!<BRK COMP2 input polarity */ | |
13886 | |
13887 | |
13888 /******************************************************************************/ | |
13889 /* */ | |
13890 /* Low Power Timer (LPTTIM) */ | |
13891 /* */ | |
13892 /******************************************************************************/ | |
13893 /****************** Bit definition for LPTIM_ISR register *******************/ | |
13894 #define LPTIM_ISR_CMPM_Pos (0U) | |
13895 #define LPTIM_ISR_CMPM_Msk (0x1U << LPTIM_ISR_CMPM_Pos) /*!< 0x00000001 */ | |
13896 #define LPTIM_ISR_CMPM LPTIM_ISR_CMPM_Msk /*!< Compare match */ | |
13897 #define LPTIM_ISR_ARRM_Pos (1U) | |
13898 #define LPTIM_ISR_ARRM_Msk (0x1U << LPTIM_ISR_ARRM_Pos) /*!< 0x00000002 */ | |
13899 #define LPTIM_ISR_ARRM LPTIM_ISR_ARRM_Msk /*!< Autoreload match */ | |
13900 #define LPTIM_ISR_EXTTRIG_Pos (2U) | |
13901 #define LPTIM_ISR_EXTTRIG_Msk (0x1U << LPTIM_ISR_EXTTRIG_Pos) /*!< 0x00000004 */ | |
13902 #define LPTIM_ISR_EXTTRIG LPTIM_ISR_EXTTRIG_Msk /*!< External trigger edge event */ | |
13903 #define LPTIM_ISR_CMPOK_Pos (3U) | |
13904 #define LPTIM_ISR_CMPOK_Msk (0x1U << LPTIM_ISR_CMPOK_Pos) /*!< 0x00000008 */ | |
13905 #define LPTIM_ISR_CMPOK LPTIM_ISR_CMPOK_Msk /*!< Compare register update OK */ | |
13906 #define LPTIM_ISR_ARROK_Pos (4U) | |
13907 #define LPTIM_ISR_ARROK_Msk (0x1U << LPTIM_ISR_ARROK_Pos) /*!< 0x00000010 */ | |
13908 #define LPTIM_ISR_ARROK LPTIM_ISR_ARROK_Msk /*!< Autoreload register update OK */ | |
13909 #define LPTIM_ISR_UP_Pos (5U) | |
13910 #define LPTIM_ISR_UP_Msk (0x1U << LPTIM_ISR_UP_Pos) /*!< 0x00000020 */ | |
13911 #define LPTIM_ISR_UP LPTIM_ISR_UP_Msk /*!< Counter direction change down to up */ | |
13912 #define LPTIM_ISR_DOWN_Pos (6U) | |
13913 #define LPTIM_ISR_DOWN_Msk (0x1U << LPTIM_ISR_DOWN_Pos) /*!< 0x00000040 */ | |
13914 #define LPTIM_ISR_DOWN LPTIM_ISR_DOWN_Msk /*!< Counter direction change up to down */ | |
13915 | |
13916 /****************** Bit definition for LPTIM_ICR register *******************/ | |
13917 #define LPTIM_ICR_CMPMCF_Pos (0U) | |
13918 #define LPTIM_ICR_CMPMCF_Msk (0x1U << LPTIM_ICR_CMPMCF_Pos) /*!< 0x00000001 */ | |
13919 #define LPTIM_ICR_CMPMCF LPTIM_ICR_CMPMCF_Msk /*!< Compare match Clear Flag */ | |
13920 #define LPTIM_ICR_ARRMCF_Pos (1U) | |
13921 #define LPTIM_ICR_ARRMCF_Msk (0x1U << LPTIM_ICR_ARRMCF_Pos) /*!< 0x00000002 */ | |
13922 #define LPTIM_ICR_ARRMCF LPTIM_ICR_ARRMCF_Msk /*!< Autoreload match Clear Flag */ | |
13923 #define LPTIM_ICR_EXTTRIGCF_Pos (2U) | |
13924 #define LPTIM_ICR_EXTTRIGCF_Msk (0x1U << LPTIM_ICR_EXTTRIGCF_Pos) /*!< 0x00000004 */ | |
13925 #define LPTIM_ICR_EXTTRIGCF LPTIM_ICR_EXTTRIGCF_Msk /*!< External trigger edge event Clear Flag */ | |
13926 #define LPTIM_ICR_CMPOKCF_Pos (3U) | |
13927 #define LPTIM_ICR_CMPOKCF_Msk (0x1U << LPTIM_ICR_CMPOKCF_Pos) /*!< 0x00000008 */ | |
13928 #define LPTIM_ICR_CMPOKCF LPTIM_ICR_CMPOKCF_Msk /*!< Compare register update OK Clear Flag */ | |
13929 #define LPTIM_ICR_ARROKCF_Pos (4U) | |
13930 #define LPTIM_ICR_ARROKCF_Msk (0x1U << LPTIM_ICR_ARROKCF_Pos) /*!< 0x00000010 */ | |
13931 #define LPTIM_ICR_ARROKCF LPTIM_ICR_ARROKCF_Msk /*!< Autoreload register update OK Clear Flag */ | |
13932 #define LPTIM_ICR_UPCF_Pos (5U) | |
13933 #define LPTIM_ICR_UPCF_Msk (0x1U << LPTIM_ICR_UPCF_Pos) /*!< 0x00000020 */ | |
13934 #define LPTIM_ICR_UPCF LPTIM_ICR_UPCF_Msk /*!< Counter direction change down to up Clear Flag */ | |
13935 #define LPTIM_ICR_DOWNCF_Pos (6U) | |
13936 #define LPTIM_ICR_DOWNCF_Msk (0x1U << LPTIM_ICR_DOWNCF_Pos) /*!< 0x00000040 */ | |
13937 #define LPTIM_ICR_DOWNCF LPTIM_ICR_DOWNCF_Msk /*!< Counter direction change up to down Clear Flag */ | |
13938 | |
13939 /****************** Bit definition for LPTIM_IER register ********************/ | |
13940 #define LPTIM_IER_CMPMIE_Pos (0U) | |
13941 #define LPTIM_IER_CMPMIE_Msk (0x1U << LPTIM_IER_CMPMIE_Pos) /*!< 0x00000001 */ | |
13942 #define LPTIM_IER_CMPMIE LPTIM_IER_CMPMIE_Msk /*!< Compare match Interrupt Enable */ | |
13943 #define LPTIM_IER_ARRMIE_Pos (1U) | |
13944 #define LPTIM_IER_ARRMIE_Msk (0x1U << LPTIM_IER_ARRMIE_Pos) /*!< 0x00000002 */ | |
13945 #define LPTIM_IER_ARRMIE LPTIM_IER_ARRMIE_Msk /*!< Autoreload match Interrupt Enable */ | |
13946 #define LPTIM_IER_EXTTRIGIE_Pos (2U) | |
13947 #define LPTIM_IER_EXTTRIGIE_Msk (0x1U << LPTIM_IER_EXTTRIGIE_Pos) /*!< 0x00000004 */ | |
13948 #define LPTIM_IER_EXTTRIGIE LPTIM_IER_EXTTRIGIE_Msk /*!< External trigger edge event Interrupt Enable */ | |
13949 #define LPTIM_IER_CMPOKIE_Pos (3U) | |
13950 #define LPTIM_IER_CMPOKIE_Msk (0x1U << LPTIM_IER_CMPOKIE_Pos) /*!< 0x00000008 */ | |
13951 #define LPTIM_IER_CMPOKIE LPTIM_IER_CMPOKIE_Msk /*!< Compare register update OK Interrupt Enable */ | |
13952 #define LPTIM_IER_ARROKIE_Pos (4U) | |
13953 #define LPTIM_IER_ARROKIE_Msk (0x1U << LPTIM_IER_ARROKIE_Pos) /*!< 0x00000010 */ | |
13954 #define LPTIM_IER_ARROKIE LPTIM_IER_ARROKIE_Msk /*!< Autoreload register update OK Interrupt Enable */ | |
13955 #define LPTIM_IER_UPIE_Pos (5U) | |
13956 #define LPTIM_IER_UPIE_Msk (0x1U << LPTIM_IER_UPIE_Pos) /*!< 0x00000020 */ | |
13957 #define LPTIM_IER_UPIE LPTIM_IER_UPIE_Msk /*!< Counter direction change down to up Interrupt Enable */ | |
13958 #define LPTIM_IER_DOWNIE_Pos (6U) | |
13959 #define LPTIM_IER_DOWNIE_Msk (0x1U << LPTIM_IER_DOWNIE_Pos) /*!< 0x00000040 */ | |
13960 #define LPTIM_IER_DOWNIE LPTIM_IER_DOWNIE_Msk /*!< Counter direction change up to down Interrupt Enable */ | |
13961 | |
13962 /****************** Bit definition for LPTIM_CFGR register *******************/ | |
13963 #define LPTIM_CFGR_CKSEL_Pos (0U) | |
13964 #define LPTIM_CFGR_CKSEL_Msk (0x1U << LPTIM_CFGR_CKSEL_Pos) /*!< 0x00000001 */ | |
13965 #define LPTIM_CFGR_CKSEL LPTIM_CFGR_CKSEL_Msk /*!< Clock selector */ | |
13966 | |
13967 #define LPTIM_CFGR_CKPOL_Pos (1U) | |
13968 #define LPTIM_CFGR_CKPOL_Msk (0x3U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000006 */ | |
13969 #define LPTIM_CFGR_CKPOL LPTIM_CFGR_CKPOL_Msk /*!< CKPOL[1:0] bits (Clock polarity) */ | |
13970 #define LPTIM_CFGR_CKPOL_0 (0x1U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000002 */ | |
13971 #define LPTIM_CFGR_CKPOL_1 (0x2U << LPTIM_CFGR_CKPOL_Pos) /*!< 0x00000004 */ | |
13972 | |
13973 #define LPTIM_CFGR_CKFLT_Pos (3U) | |
13974 #define LPTIM_CFGR_CKFLT_Msk (0x3U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000018 */ | |
13975 #define LPTIM_CFGR_CKFLT LPTIM_CFGR_CKFLT_Msk /*!< CKFLT[1:0] bits (Configurable digital filter for external clock) */ | |
13976 #define LPTIM_CFGR_CKFLT_0 (0x1U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000008 */ | |
13977 #define LPTIM_CFGR_CKFLT_1 (0x2U << LPTIM_CFGR_CKFLT_Pos) /*!< 0x00000010 */ | |
13978 | |
13979 #define LPTIM_CFGR_TRGFLT_Pos (6U) | |
13980 #define LPTIM_CFGR_TRGFLT_Msk (0x3U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x000000C0 */ | |
13981 #define LPTIM_CFGR_TRGFLT LPTIM_CFGR_TRGFLT_Msk /*!< TRGFLT[1:0] bits (Configurable digital filter for trigger) */ | |
13982 #define LPTIM_CFGR_TRGFLT_0 (0x1U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000040 */ | |
13983 #define LPTIM_CFGR_TRGFLT_1 (0x2U << LPTIM_CFGR_TRGFLT_Pos) /*!< 0x00000080 */ | |
13984 | |
13985 #define LPTIM_CFGR_PRESC_Pos (9U) | |
13986 #define LPTIM_CFGR_PRESC_Msk (0x7U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000E00 */ | |
13987 #define LPTIM_CFGR_PRESC LPTIM_CFGR_PRESC_Msk /*!< PRESC[2:0] bits (Clock prescaler) */ | |
13988 #define LPTIM_CFGR_PRESC_0 (0x1U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000200 */ | |
13989 #define LPTIM_CFGR_PRESC_1 (0x2U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000400 */ | |
13990 #define LPTIM_CFGR_PRESC_2 (0x4U << LPTIM_CFGR_PRESC_Pos) /*!< 0x00000800 */ | |
13991 | |
13992 #define LPTIM_CFGR_TRIGSEL_Pos (13U) | |
13993 #define LPTIM_CFGR_TRIGSEL_Msk (0x7U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x0000E000 */ | |
13994 #define LPTIM_CFGR_TRIGSEL LPTIM_CFGR_TRIGSEL_Msk /*!< TRIGSEL[2:0]] bits (Trigger selector) */ | |
13995 #define LPTIM_CFGR_TRIGSEL_0 (0x1U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00002000 */ | |
13996 #define LPTIM_CFGR_TRIGSEL_1 (0x2U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00004000 */ | |
13997 #define LPTIM_CFGR_TRIGSEL_2 (0x4U << LPTIM_CFGR_TRIGSEL_Pos) /*!< 0x00008000 */ | |
13998 | |
13999 #define LPTIM_CFGR_TRIGEN_Pos (17U) | |
14000 #define LPTIM_CFGR_TRIGEN_Msk (0x3U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00060000 */ | |
14001 #define LPTIM_CFGR_TRIGEN LPTIM_CFGR_TRIGEN_Msk /*!< TRIGEN[1:0] bits (Trigger enable and polarity) */ | |
14002 #define LPTIM_CFGR_TRIGEN_0 (0x1U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00020000 */ | |
14003 #define LPTIM_CFGR_TRIGEN_1 (0x2U << LPTIM_CFGR_TRIGEN_Pos) /*!< 0x00040000 */ | |
14004 | |
14005 #define LPTIM_CFGR_TIMOUT_Pos (19U) | |
14006 #define LPTIM_CFGR_TIMOUT_Msk (0x1U << LPTIM_CFGR_TIMOUT_Pos) /*!< 0x00080000 */ | |
14007 #define LPTIM_CFGR_TIMOUT LPTIM_CFGR_TIMOUT_Msk /*!< Timout enable */ | |
14008 #define LPTIM_CFGR_WAVE_Pos (20U) | |
14009 #define LPTIM_CFGR_WAVE_Msk (0x1U << LPTIM_CFGR_WAVE_Pos) /*!< 0x00100000 */ | |
14010 #define LPTIM_CFGR_WAVE LPTIM_CFGR_WAVE_Msk /*!< Waveform shape */ | |
14011 #define LPTIM_CFGR_WAVPOL_Pos (21U) | |
14012 #define LPTIM_CFGR_WAVPOL_Msk (0x1U << LPTIM_CFGR_WAVPOL_Pos) /*!< 0x00200000 */ | |
14013 #define LPTIM_CFGR_WAVPOL LPTIM_CFGR_WAVPOL_Msk /*!< Waveform shape polarity */ | |
14014 #define LPTIM_CFGR_PRELOAD_Pos (22U) | |
14015 #define LPTIM_CFGR_PRELOAD_Msk (0x1U << LPTIM_CFGR_PRELOAD_Pos) /*!< 0x00400000 */ | |
14016 #define LPTIM_CFGR_PRELOAD LPTIM_CFGR_PRELOAD_Msk /*!< Reg update mode */ | |
14017 #define LPTIM_CFGR_COUNTMODE_Pos (23U) | |
14018 #define LPTIM_CFGR_COUNTMODE_Msk (0x1U << LPTIM_CFGR_COUNTMODE_Pos) /*!< 0x00800000 */ | |
14019 #define LPTIM_CFGR_COUNTMODE LPTIM_CFGR_COUNTMODE_Msk /*!< Counter mode enable */ | |
14020 #define LPTIM_CFGR_ENC_Pos (24U) | |
14021 #define LPTIM_CFGR_ENC_Msk (0x1U << LPTIM_CFGR_ENC_Pos) /*!< 0x01000000 */ | |
14022 #define LPTIM_CFGR_ENC LPTIM_CFGR_ENC_Msk /*!< Encoder mode enable */ | |
14023 | |
14024 /****************** Bit definition for LPTIM_CR register ********************/ | |
14025 #define LPTIM_CR_ENABLE_Pos (0U) | |
14026 #define LPTIM_CR_ENABLE_Msk (0x1U << LPTIM_CR_ENABLE_Pos) /*!< 0x00000001 */ | |
14027 #define LPTIM_CR_ENABLE LPTIM_CR_ENABLE_Msk /*!< LPTIMer enable */ | |
14028 #define LPTIM_CR_SNGSTRT_Pos (1U) | |
14029 #define LPTIM_CR_SNGSTRT_Msk (0x1U << LPTIM_CR_SNGSTRT_Pos) /*!< 0x00000002 */ | |
14030 #define LPTIM_CR_SNGSTRT LPTIM_CR_SNGSTRT_Msk /*!< Timer start in single mode */ | |
14031 #define LPTIM_CR_CNTSTRT_Pos (2U) | |
14032 #define LPTIM_CR_CNTSTRT_Msk (0x1U << LPTIM_CR_CNTSTRT_Pos) /*!< 0x00000004 */ | |
14033 #define LPTIM_CR_CNTSTRT LPTIM_CR_CNTSTRT_Msk /*!< Timer start in continuous mode */ | |
14034 | |
14035 /****************** Bit definition for LPTIM_CMP register *******************/ | |
14036 #define LPTIM_CMP_CMP_Pos (0U) | |
14037 #define LPTIM_CMP_CMP_Msk (0xFFFFU << LPTIM_CMP_CMP_Pos) /*!< 0x0000FFFF */ | |
14038 #define LPTIM_CMP_CMP LPTIM_CMP_CMP_Msk /*!< Compare register */ | |
14039 | |
14040 /****************** Bit definition for LPTIM_ARR register *******************/ | |
14041 #define LPTIM_ARR_ARR_Pos (0U) | |
14042 #define LPTIM_ARR_ARR_Msk (0xFFFFU << LPTIM_ARR_ARR_Pos) /*!< 0x0000FFFF */ | |
14043 #define LPTIM_ARR_ARR LPTIM_ARR_ARR_Msk /*!< Auto reload register */ | |
14044 | |
14045 /****************** Bit definition for LPTIM_CNT register *******************/ | |
14046 #define LPTIM_CNT_CNT_Pos (0U) | |
14047 #define LPTIM_CNT_CNT_Msk (0xFFFFU << LPTIM_CNT_CNT_Pos) /*!< 0x0000FFFF */ | |
14048 #define LPTIM_CNT_CNT LPTIM_CNT_CNT_Msk /*!< Counter register */ | |
14049 | |
14050 /****************** Bit definition for LPTIM_OR register ********************/ | |
14051 #define LPTIM_OR_OR_Pos (0U) | |
14052 #define LPTIM_OR_OR_Msk (0x3U << LPTIM_OR_OR_Pos) /*!< 0x00000003 */ | |
14053 #define LPTIM_OR_OR LPTIM_OR_OR_Msk /*!< OR[1:0] bits (Remap selection) */ | |
14054 #define LPTIM_OR_OR_0 (0x1U << LPTIM_OR_OR_Pos) /*!< 0x00000001 */ | |
14055 #define LPTIM_OR_OR_1 (0x2U << LPTIM_OR_OR_Pos) /*!< 0x00000002 */ | |
14056 | |
14057 /******************************************************************************/ | |
14058 /* */ | |
14059 /* Analog Comparators (COMP) */ | |
14060 /* */ | |
14061 /******************************************************************************/ | |
14062 /********************** Bit definition for COMP_CSR register ****************/ | |
14063 #define COMP_CSR_EN_Pos (0U) | |
14064 #define COMP_CSR_EN_Msk (0x1U << COMP_CSR_EN_Pos) /*!< 0x00000001 */ | |
14065 #define COMP_CSR_EN COMP_CSR_EN_Msk /*!< Comparator enable */ | |
14066 | |
14067 #define COMP_CSR_PWRMODE_Pos (2U) | |
14068 #define COMP_CSR_PWRMODE_Msk (0x3U << COMP_CSR_PWRMODE_Pos) /*!< 0x0000000C */ | |
14069 #define COMP_CSR_PWRMODE COMP_CSR_PWRMODE_Msk /*!< Comparator power mode */ | |
14070 #define COMP_CSR_PWRMODE_0 (0x1U << COMP_CSR_PWRMODE_Pos) /*!< 0x00000004 */ | |
14071 #define COMP_CSR_PWRMODE_1 (0x2U << COMP_CSR_PWRMODE_Pos) /*!< 0x00000008 */ | |
14072 | |
14073 #define COMP_CSR_INMSEL_Pos (4U) | |
14074 #define COMP_CSR_INMSEL_Msk (0x7U << COMP_CSR_INMSEL_Pos) /*!< 0x00000070 */ | |
14075 #define COMP_CSR_INMSEL COMP_CSR_INMSEL_Msk /*!< Comparator input minus selection */ | |
14076 #define COMP_CSR_INMSEL_0 (0x1U << COMP_CSR_INMSEL_Pos) /*!< 0x00000010 */ | |
14077 #define COMP_CSR_INMSEL_1 (0x2U << COMP_CSR_INMSEL_Pos) /*!< 0x00000020 */ | |
14078 #define COMP_CSR_INMSEL_2 (0x4U << COMP_CSR_INMSEL_Pos) /*!< 0x00000040 */ | |
14079 | |
14080 #define COMP_CSR_INPSEL_Pos (7U) | |
14081 #define COMP_CSR_INPSEL_Msk (0x3U << COMP_CSR_INPSEL_Pos) /*!< 0x00000180 */ | |
14082 #define COMP_CSR_INPSEL COMP_CSR_INPSEL_Msk /*!< Comparator input plus selection */ | |
14083 #define COMP_CSR_INPSEL_0 (0x1U << COMP_CSR_INPSEL_Pos) /*!< 0x00000080 */ | |
14084 #define COMP_CSR_INPSEL_1 (0x2U << COMP_CSR_INPSEL_Pos) /*!< 0x00000100 */ | |
14085 | |
14086 #define COMP_CSR_WINMODE_Pos (9U) | |
14087 #define COMP_CSR_WINMODE_Msk (0x1U << COMP_CSR_WINMODE_Pos) /*!< 0x00000200 */ | |
14088 #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) */ | |
14089 | |
14090 #define COMP_CSR_POLARITY_Pos (15U) | |
14091 #define COMP_CSR_POLARITY_Msk (0x1U << COMP_CSR_POLARITY_Pos) /*!< 0x00008000 */ | |
14092 #define COMP_CSR_POLARITY COMP_CSR_POLARITY_Msk /*!< Comparator output polarity */ | |
14093 | |
14094 #define COMP_CSR_HYST_Pos (16U) | |
14095 #define COMP_CSR_HYST_Msk (0x3U << COMP_CSR_HYST_Pos) /*!< 0x00030000 */ | |
14096 #define COMP_CSR_HYST COMP_CSR_HYST_Msk /*!< Comparator hysteresis */ | |
14097 #define COMP_CSR_HYST_0 (0x1U << COMP_CSR_HYST_Pos) /*!< 0x00010000 */ | |
14098 #define COMP_CSR_HYST_1 (0x2U << COMP_CSR_HYST_Pos) /*!< 0x00020000 */ | |
14099 | |
14100 #define COMP_CSR_BLANKING_Pos (18U) | |
14101 #define COMP_CSR_BLANKING_Msk (0x7U << COMP_CSR_BLANKING_Pos) /*!< 0x001C0000 */ | |
14102 #define COMP_CSR_BLANKING COMP_CSR_BLANKING_Msk /*!< Comparator blanking source */ | |
14103 #define COMP_CSR_BLANKING_0 (0x1U << COMP_CSR_BLANKING_Pos) /*!< 0x00040000 */ | |
14104 #define COMP_CSR_BLANKING_1 (0x2U << COMP_CSR_BLANKING_Pos) /*!< 0x00080000 */ | |
14105 #define COMP_CSR_BLANKING_2 (0x4U << COMP_CSR_BLANKING_Pos) /*!< 0x00100000 */ | |
14106 | |
14107 #define COMP_CSR_BRGEN_Pos (22U) | |
14108 #define COMP_CSR_BRGEN_Msk (0x1U << COMP_CSR_BRGEN_Pos) /*!< 0x00400000 */ | |
14109 #define COMP_CSR_BRGEN COMP_CSR_BRGEN_Msk /*!< Comparator voltage scaler enable */ | |
14110 #define COMP_CSR_SCALEN_Pos (23U) | |
14111 #define COMP_CSR_SCALEN_Msk (0x1U << COMP_CSR_SCALEN_Pos) /*!< 0x00800000 */ | |
14112 #define COMP_CSR_SCALEN COMP_CSR_SCALEN_Msk /*!< Comparator scaler bridge enable */ | |
14113 | |
14114 #define COMP_CSR_INMESEL_Pos (25U) | |
14115 #define COMP_CSR_INMESEL_Msk (0x3U << COMP_CSR_INMESEL_Pos) /*!< 0x06000000 */ | |
14116 #define COMP_CSR_INMESEL COMP_CSR_INMESEL_Msk /*!< Comparator inverting input (minus) extended selection */ | |
14117 #define COMP_CSR_INMESEL_0 (0x1U << COMP_CSR_INMESEL_Pos) /*!< 0x02000000 */ | |
14118 #define COMP_CSR_INMESEL_1 (0x2U << COMP_CSR_INMESEL_Pos) /*!< 0x04000000 */ | |
14119 | |
14120 #define COMP_CSR_VALUE_Pos (30U) | |
14121 #define COMP_CSR_VALUE_Msk (0x1U << COMP_CSR_VALUE_Pos) /*!< 0x40000000 */ | |
14122 #define COMP_CSR_VALUE COMP_CSR_VALUE_Msk /*!< Comparator output level */ | |
14123 | |
14124 #define COMP_CSR_LOCK_Pos (31U) | |
14125 #define COMP_CSR_LOCK_Msk (0x1U << COMP_CSR_LOCK_Pos) /*!< 0x80000000 */ | |
14126 #define COMP_CSR_LOCK COMP_CSR_LOCK_Msk /*!< Comparator lock */ | |
14127 | |
14128 /******************************************************************************/ | |
14129 /* */ | |
14130 /* Operational Amplifier (OPAMP) */ | |
14131 /* */ | |
14132 /******************************************************************************/ | |
14133 /********************* Bit definition for OPAMPx_CSR register ***************/ | |
14134 #define OPAMP_CSR_OPAMPxEN_Pos (0U) | |
14135 #define OPAMP_CSR_OPAMPxEN_Msk (0x1U << OPAMP_CSR_OPAMPxEN_Pos) /*!< 0x00000001 */ | |
14136 #define OPAMP_CSR_OPAMPxEN OPAMP_CSR_OPAMPxEN_Msk /*!< OPAMP enable */ | |
14137 #define OPAMP_CSR_OPALPM_Pos (1U) | |
14138 #define OPAMP_CSR_OPALPM_Msk (0x1U << OPAMP_CSR_OPALPM_Pos) /*!< 0x00000002 */ | |
14139 #define OPAMP_CSR_OPALPM OPAMP_CSR_OPALPM_Msk /*!< Operational amplifier Low Power Mode */ | |
14140 | |
14141 #define OPAMP_CSR_OPAMODE_Pos (2U) | |
14142 #define OPAMP_CSR_OPAMODE_Msk (0x3U << OPAMP_CSR_OPAMODE_Pos) /*!< 0x0000000C */ | |
14143 #define OPAMP_CSR_OPAMODE OPAMP_CSR_OPAMODE_Msk /*!< Operational amplifier PGA mode */ | |
14144 #define OPAMP_CSR_OPAMODE_0 (0x1U << OPAMP_CSR_OPAMODE_Pos) /*!< 0x00000004 */ | |
14145 #define OPAMP_CSR_OPAMODE_1 (0x2U << OPAMP_CSR_OPAMODE_Pos) /*!< 0x00000008 */ | |
14146 | |
14147 #define OPAMP_CSR_PGGAIN_Pos (4U) | |
14148 #define OPAMP_CSR_PGGAIN_Msk (0x3U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000030 */ | |
14149 #define OPAMP_CSR_PGGAIN OPAMP_CSR_PGGAIN_Msk /*!< Operational amplifier Programmable amplifier gain value */ | |
14150 #define OPAMP_CSR_PGGAIN_0 (0x1U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000010 */ | |
14151 #define OPAMP_CSR_PGGAIN_1 (0x2U << OPAMP_CSR_PGGAIN_Pos) /*!< 0x00000020 */ | |
14152 | |
14153 #define OPAMP_CSR_VMSEL_Pos (8U) | |
14154 #define OPAMP_CSR_VMSEL_Msk (0x3U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000300 */ | |
14155 #define OPAMP_CSR_VMSEL OPAMP_CSR_VMSEL_Msk /*!< Inverting input selection */ | |
14156 #define OPAMP_CSR_VMSEL_0 (0x1U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000100 */ | |
14157 #define OPAMP_CSR_VMSEL_1 (0x2U << OPAMP_CSR_VMSEL_Pos) /*!< 0x00000200 */ | |
14158 | |
14159 #define OPAMP_CSR_VPSEL_Pos (10U) | |
14160 #define OPAMP_CSR_VPSEL_Msk (0x1U << OPAMP_CSR_VPSEL_Pos) /*!< 0x00000400 */ | |
14161 #define OPAMP_CSR_VPSEL OPAMP_CSR_VPSEL_Msk /*!< Non inverted input selection */ | |
14162 #define OPAMP_CSR_CALON_Pos (12U) | |
14163 #define OPAMP_CSR_CALON_Msk (0x1U << OPAMP_CSR_CALON_Pos) /*!< 0x00001000 */ | |
14164 #define OPAMP_CSR_CALON OPAMP_CSR_CALON_Msk /*!< Calibration mode enable */ | |
14165 #define OPAMP_CSR_CALSEL_Pos (13U) | |
14166 #define OPAMP_CSR_CALSEL_Msk (0x1U << OPAMP_CSR_CALSEL_Pos) /*!< 0x00002000 */ | |
14167 #define OPAMP_CSR_CALSEL OPAMP_CSR_CALSEL_Msk /*!< Calibration selection */ | |
14168 #define OPAMP_CSR_USERTRIM_Pos (14U) | |
14169 #define OPAMP_CSR_USERTRIM_Msk (0x1U << OPAMP_CSR_USERTRIM_Pos) /*!< 0x00004000 */ | |
14170 #define OPAMP_CSR_USERTRIM OPAMP_CSR_USERTRIM_Msk /*!< User trimming enable */ | |
14171 #define OPAMP_CSR_CALOUT_Pos (15U) | |
14172 #define OPAMP_CSR_CALOUT_Msk (0x1U << OPAMP_CSR_CALOUT_Pos) /*!< 0x00008000 */ | |
14173 #define OPAMP_CSR_CALOUT OPAMP_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */ | |
14174 | |
14175 /********************* Bit definition for OPAMP1_CSR register ***************/ | |
14176 #define OPAMP1_CSR_OPAEN_Pos (0U) | |
14177 #define OPAMP1_CSR_OPAEN_Msk (0x1U << OPAMP1_CSR_OPAEN_Pos) /*!< 0x00000001 */ | |
14178 #define OPAMP1_CSR_OPAEN OPAMP1_CSR_OPAEN_Msk /*!< Operational amplifier1 Enable */ | |
14179 #define OPAMP1_CSR_OPALPM_Pos (1U) | |
14180 #define OPAMP1_CSR_OPALPM_Msk (0x1U << OPAMP1_CSR_OPALPM_Pos) /*!< 0x00000002 */ | |
14181 #define OPAMP1_CSR_OPALPM OPAMP1_CSR_OPALPM_Msk /*!< Operational amplifier1 Low Power Mode */ | |
14182 | |
14183 #define OPAMP1_CSR_OPAMODE_Pos (2U) | |
14184 #define OPAMP1_CSR_OPAMODE_Msk (0x3U << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x0000000C */ | |
14185 #define OPAMP1_CSR_OPAMODE OPAMP1_CSR_OPAMODE_Msk /*!< Operational amplifier1 PGA mode */ | |
14186 #define OPAMP1_CSR_OPAMODE_0 (0x1U << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x00000004 */ | |
14187 #define OPAMP1_CSR_OPAMODE_1 (0x2U << OPAMP1_CSR_OPAMODE_Pos) /*!< 0x00000008 */ | |
14188 | |
14189 #define OPAMP1_CSR_PGAGAIN_Pos (4U) | |
14190 #define OPAMP1_CSR_PGAGAIN_Msk (0x3U << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000030 */ | |
14191 #define OPAMP1_CSR_PGAGAIN OPAMP1_CSR_PGAGAIN_Msk /*!< Operational amplifier1 Programmable amplifier gain value */ | |
14192 #define OPAMP1_CSR_PGAGAIN_0 (0x1U << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000010 */ | |
14193 #define OPAMP1_CSR_PGAGAIN_1 (0x2U << OPAMP1_CSR_PGAGAIN_Pos) /*!< 0x00000020 */ | |
14194 | |
14195 #define OPAMP1_CSR_VMSEL_Pos (8U) | |
14196 #define OPAMP1_CSR_VMSEL_Msk (0x3U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000300 */ | |
14197 #define OPAMP1_CSR_VMSEL OPAMP1_CSR_VMSEL_Msk /*!< Inverting input selection */ | |
14198 #define OPAMP1_CSR_VMSEL_0 (0x1U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000100 */ | |
14199 #define OPAMP1_CSR_VMSEL_1 (0x2U << OPAMP1_CSR_VMSEL_Pos) /*!< 0x00000200 */ | |
14200 | |
14201 #define OPAMP1_CSR_VPSEL_Pos (10U) | |
14202 #define OPAMP1_CSR_VPSEL_Msk (0x1U << OPAMP1_CSR_VPSEL_Pos) /*!< 0x00000400 */ | |
14203 #define OPAMP1_CSR_VPSEL OPAMP1_CSR_VPSEL_Msk /*!< Non inverted input selection */ | |
14204 #define OPAMP1_CSR_CALON_Pos (12U) | |
14205 #define OPAMP1_CSR_CALON_Msk (0x1U << OPAMP1_CSR_CALON_Pos) /*!< 0x00001000 */ | |
14206 #define OPAMP1_CSR_CALON OPAMP1_CSR_CALON_Msk /*!< Calibration mode enable */ | |
14207 #define OPAMP1_CSR_CALSEL_Pos (13U) | |
14208 #define OPAMP1_CSR_CALSEL_Msk (0x1U << OPAMP1_CSR_CALSEL_Pos) /*!< 0x00002000 */ | |
14209 #define OPAMP1_CSR_CALSEL OPAMP1_CSR_CALSEL_Msk /*!< Calibration selection */ | |
14210 #define OPAMP1_CSR_USERTRIM_Pos (14U) | |
14211 #define OPAMP1_CSR_USERTRIM_Msk (0x1U << OPAMP1_CSR_USERTRIM_Pos) /*!< 0x00004000 */ | |
14212 #define OPAMP1_CSR_USERTRIM OPAMP1_CSR_USERTRIM_Msk /*!< User trimming enable */ | |
14213 #define OPAMP1_CSR_CALOUT_Pos (15U) | |
14214 #define OPAMP1_CSR_CALOUT_Msk (0x1U << OPAMP1_CSR_CALOUT_Pos) /*!< 0x00008000 */ | |
14215 #define OPAMP1_CSR_CALOUT OPAMP1_CSR_CALOUT_Msk /*!< Operational amplifier1 calibration output */ | |
14216 | |
14217 #define OPAMP1_CSR_OPARANGE_Pos (31U) | |
14218 #define OPAMP1_CSR_OPARANGE_Msk (0x1U << OPAMP1_CSR_OPARANGE_Pos) /*!< 0x80000000 */ | |
14219 #define OPAMP1_CSR_OPARANGE OPAMP1_CSR_OPARANGE_Msk /*!< Common to several OPAMP instances: Operational amplifier voltage supply range. Bit intended to be used with OPAMP common instance (OPAMP_Common_TypeDef) */ | |
14220 | |
14221 /******************* Bit definition for OPAMP_OTR register ******************/ | |
14222 #define OPAMP_OTR_TRIMOFFSETN_Pos (0U) | |
14223 #define OPAMP_OTR_TRIMOFFSETN_Msk (0x1FU << OPAMP_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */ | |
14224 #define OPAMP_OTR_TRIMOFFSETN OPAMP_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */ | |
14225 #define OPAMP_OTR_TRIMOFFSETP_Pos (8U) | |
14226 #define OPAMP_OTR_TRIMOFFSETP_Msk (0x1FU << OPAMP_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */ | |
14227 #define OPAMP_OTR_TRIMOFFSETP OPAMP_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */ | |
14228 | |
14229 /******************* Bit definition for OPAMP1_OTR register ******************/ | |
14230 #define OPAMP1_OTR_TRIMOFFSETN_Pos (0U) | |
14231 #define OPAMP1_OTR_TRIMOFFSETN_Msk (0x1FU << OPAMP1_OTR_TRIMOFFSETN_Pos) /*!< 0x0000001F */ | |
14232 #define OPAMP1_OTR_TRIMOFFSETN OPAMP1_OTR_TRIMOFFSETN_Msk /*!< Trim for NMOS differential pairs */ | |
14233 #define OPAMP1_OTR_TRIMOFFSETP_Pos (8U) | |
14234 #define OPAMP1_OTR_TRIMOFFSETP_Msk (0x1FU << OPAMP1_OTR_TRIMOFFSETP_Pos) /*!< 0x00001F00 */ | |
14235 #define OPAMP1_OTR_TRIMOFFSETP OPAMP1_OTR_TRIMOFFSETP_Msk /*!< Trim for PMOS differential pairs */ | |
14236 | |
14237 /******************* Bit definition for OPAMP_LPOTR register ****************/ | |
14238 #define OPAMP_LPOTR_TRIMLPOFFSETN_Pos (0U) | |
14239 #define OPAMP_LPOTR_TRIMLPOFFSETN_Msk (0x1FU << OPAMP_LPOTR_TRIMLPOFFSETN_Pos) /*!< 0x0000001F */ | |
14240 #define OPAMP_LPOTR_TRIMLPOFFSETN OPAMP_LPOTR_TRIMLPOFFSETN_Msk /*!< Trim for NMOS differential pairs */ | |
14241 #define OPAMP_LPOTR_TRIMLPOFFSETP_Pos (8U) | |
14242 #define OPAMP_LPOTR_TRIMLPOFFSETP_Msk (0x1FU << OPAMP_LPOTR_TRIMLPOFFSETP_Pos) /*!< 0x00001F00 */ | |
14243 #define OPAMP_LPOTR_TRIMLPOFFSETP OPAMP_LPOTR_TRIMLPOFFSETP_Msk /*!< Trim for PMOS differential pairs */ | |
14244 | |
14245 /******************* Bit definition for OPAMP1_LPOTR register ****************/ | |
14246 #define OPAMP1_LPOTR_TRIMLPOFFSETN_Pos (0U) | |
14247 #define OPAMP1_LPOTR_TRIMLPOFFSETN_Msk (0x1FU << OPAMP1_LPOTR_TRIMLPOFFSETN_Pos) /*!< 0x0000001F */ | |
14248 #define OPAMP1_LPOTR_TRIMLPOFFSETN OPAMP1_LPOTR_TRIMLPOFFSETN_Msk /*!< Trim for NMOS differential pairs */ | |
14249 #define OPAMP1_LPOTR_TRIMLPOFFSETP_Pos (8U) | |
14250 #define OPAMP1_LPOTR_TRIMLPOFFSETP_Msk (0x1FU << OPAMP1_LPOTR_TRIMLPOFFSETP_Pos) /*!< 0x00001F00 */ | |
14251 #define OPAMP1_LPOTR_TRIMLPOFFSETP OPAMP1_LPOTR_TRIMLPOFFSETP_Msk /*!< Trim for PMOS differential pairs */ | |
14252 | |
14253 /******************************************************************************/ | |
14254 /* */ | |
14255 /* Touch Sensing Controller (TSC) */ | |
14256 /* */ | |
14257 /******************************************************************************/ | |
14258 /******************* Bit definition for TSC_CR register *********************/ | |
14259 #define TSC_CR_TSCE_Pos (0U) | |
14260 #define TSC_CR_TSCE_Msk (0x1U << TSC_CR_TSCE_Pos) /*!< 0x00000001 */ | |
14261 #define TSC_CR_TSCE TSC_CR_TSCE_Msk /*!<Touch sensing controller enable */ | |
14262 #define TSC_CR_START_Pos (1U) | |
14263 #define TSC_CR_START_Msk (0x1U << TSC_CR_START_Pos) /*!< 0x00000002 */ | |
14264 #define TSC_CR_START TSC_CR_START_Msk /*!<Start acquisition */ | |
14265 #define TSC_CR_AM_Pos (2U) | |
14266 #define TSC_CR_AM_Msk (0x1U << TSC_CR_AM_Pos) /*!< 0x00000004 */ | |
14267 #define TSC_CR_AM TSC_CR_AM_Msk /*!<Acquisition mode */ | |
14268 #define TSC_CR_SYNCPOL_Pos (3U) | |
14269 #define TSC_CR_SYNCPOL_Msk (0x1U << TSC_CR_SYNCPOL_Pos) /*!< 0x00000008 */ | |
14270 #define TSC_CR_SYNCPOL TSC_CR_SYNCPOL_Msk /*!<Synchronization pin polarity */ | |
14271 #define TSC_CR_IODEF_Pos (4U) | |
14272 #define TSC_CR_IODEF_Msk (0x1U << TSC_CR_IODEF_Pos) /*!< 0x00000010 */ | |
14273 #define TSC_CR_IODEF TSC_CR_IODEF_Msk /*!<IO default mode */ | |
14274 | |
14275 #define TSC_CR_MCV_Pos (5U) | |
14276 #define TSC_CR_MCV_Msk (0x7U << TSC_CR_MCV_Pos) /*!< 0x000000E0 */ | |
14277 #define TSC_CR_MCV TSC_CR_MCV_Msk /*!<MCV[2:0] bits (Max Count Value) */ | |
14278 #define TSC_CR_MCV_0 (0x1U << TSC_CR_MCV_Pos) /*!< 0x00000020 */ | |
14279 #define TSC_CR_MCV_1 (0x2U << TSC_CR_MCV_Pos) /*!< 0x00000040 */ | |
14280 #define TSC_CR_MCV_2 (0x4U << TSC_CR_MCV_Pos) /*!< 0x00000080 */ | |
14281 | |
14282 #define TSC_CR_PGPSC_Pos (12U) | |
14283 #define TSC_CR_PGPSC_Msk (0x7U << TSC_CR_PGPSC_Pos) /*!< 0x00007000 */ | |
14284 #define TSC_CR_PGPSC TSC_CR_PGPSC_Msk /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */ | |
14285 #define TSC_CR_PGPSC_0 (0x1U << TSC_CR_PGPSC_Pos) /*!< 0x00001000 */ | |
14286 #define TSC_CR_PGPSC_1 (0x2U << TSC_CR_PGPSC_Pos) /*!< 0x00002000 */ | |
14287 #define TSC_CR_PGPSC_2 (0x4U << TSC_CR_PGPSC_Pos) /*!< 0x00004000 */ | |
14288 | |
14289 #define TSC_CR_SSPSC_Pos (15U) | |
14290 #define TSC_CR_SSPSC_Msk (0x1U << TSC_CR_SSPSC_Pos) /*!< 0x00008000 */ | |
14291 #define TSC_CR_SSPSC TSC_CR_SSPSC_Msk /*!<Spread Spectrum Prescaler */ | |
14292 #define TSC_CR_SSE_Pos (16U) | |
14293 #define TSC_CR_SSE_Msk (0x1U << TSC_CR_SSE_Pos) /*!< 0x00010000 */ | |
14294 #define TSC_CR_SSE TSC_CR_SSE_Msk /*!<Spread Spectrum Enable */ | |
14295 | |
14296 #define TSC_CR_SSD_Pos (17U) | |
14297 #define TSC_CR_SSD_Msk (0x7FU << TSC_CR_SSD_Pos) /*!< 0x00FE0000 */ | |
14298 #define TSC_CR_SSD TSC_CR_SSD_Msk /*!<SSD[6:0] bits (Spread Spectrum Deviation) */ | |
14299 #define TSC_CR_SSD_0 (0x01U << TSC_CR_SSD_Pos) /*!< 0x00020000 */ | |
14300 #define TSC_CR_SSD_1 (0x02U << TSC_CR_SSD_Pos) /*!< 0x00040000 */ | |
14301 #define TSC_CR_SSD_2 (0x04U << TSC_CR_SSD_Pos) /*!< 0x00080000 */ | |
14302 #define TSC_CR_SSD_3 (0x08U << TSC_CR_SSD_Pos) /*!< 0x00100000 */ | |
14303 #define TSC_CR_SSD_4 (0x10U << TSC_CR_SSD_Pos) /*!< 0x00200000 */ | |
14304 #define TSC_CR_SSD_5 (0x20U << TSC_CR_SSD_Pos) /*!< 0x00400000 */ | |
14305 #define TSC_CR_SSD_6 (0x40U << TSC_CR_SSD_Pos) /*!< 0x00800000 */ | |
14306 | |
14307 #define TSC_CR_CTPL_Pos (24U) | |
14308 #define TSC_CR_CTPL_Msk (0xFU << TSC_CR_CTPL_Pos) /*!< 0x0F000000 */ | |
14309 #define TSC_CR_CTPL TSC_CR_CTPL_Msk /*!<CTPL[3:0] bits (Charge Transfer pulse low) */ | |
14310 #define TSC_CR_CTPL_0 (0x1U << TSC_CR_CTPL_Pos) /*!< 0x01000000 */ | |
14311 #define TSC_CR_CTPL_1 (0x2U << TSC_CR_CTPL_Pos) /*!< 0x02000000 */ | |
14312 #define TSC_CR_CTPL_2 (0x4U << TSC_CR_CTPL_Pos) /*!< 0x04000000 */ | |
14313 #define TSC_CR_CTPL_3 (0x8U << TSC_CR_CTPL_Pos) /*!< 0x08000000 */ | |
14314 | |
14315 #define TSC_CR_CTPH_Pos (28U) | |
14316 #define TSC_CR_CTPH_Msk (0xFU << TSC_CR_CTPH_Pos) /*!< 0xF0000000 */ | |
14317 #define TSC_CR_CTPH TSC_CR_CTPH_Msk /*!<CTPH[3:0] bits (Charge Transfer pulse high) */ | |
14318 #define TSC_CR_CTPH_0 (0x1U << TSC_CR_CTPH_Pos) /*!< 0x10000000 */ | |
14319 #define TSC_CR_CTPH_1 (0x2U << TSC_CR_CTPH_Pos) /*!< 0x20000000 */ | |
14320 #define TSC_CR_CTPH_2 (0x4U << TSC_CR_CTPH_Pos) /*!< 0x40000000 */ | |
14321 #define TSC_CR_CTPH_3 (0x8U << TSC_CR_CTPH_Pos) /*!< 0x80000000 */ | |
14322 | |
14323 /******************* Bit definition for TSC_IER register ********************/ | |
14324 #define TSC_IER_EOAIE_Pos (0U) | |
14325 #define TSC_IER_EOAIE_Msk (0x1U << TSC_IER_EOAIE_Pos) /*!< 0x00000001 */ | |
14326 #define TSC_IER_EOAIE TSC_IER_EOAIE_Msk /*!<End of acquisition interrupt enable */ | |
14327 #define TSC_IER_MCEIE_Pos (1U) | |
14328 #define TSC_IER_MCEIE_Msk (0x1U << TSC_IER_MCEIE_Pos) /*!< 0x00000002 */ | |
14329 #define TSC_IER_MCEIE TSC_IER_MCEIE_Msk /*!<Max count error interrupt enable */ | |
14330 | |
14331 /******************* Bit definition for TSC_ICR register ********************/ | |
14332 #define TSC_ICR_EOAIC_Pos (0U) | |
14333 #define TSC_ICR_EOAIC_Msk (0x1U << TSC_ICR_EOAIC_Pos) /*!< 0x00000001 */ | |
14334 #define TSC_ICR_EOAIC TSC_ICR_EOAIC_Msk /*!<End of acquisition interrupt clear */ | |
14335 #define TSC_ICR_MCEIC_Pos (1U) | |
14336 #define TSC_ICR_MCEIC_Msk (0x1U << TSC_ICR_MCEIC_Pos) /*!< 0x00000002 */ | |
14337 #define TSC_ICR_MCEIC TSC_ICR_MCEIC_Msk /*!<Max count error interrupt clear */ | |
14338 | |
14339 /******************* Bit definition for TSC_ISR register ********************/ | |
14340 #define TSC_ISR_EOAF_Pos (0U) | |
14341 #define TSC_ISR_EOAF_Msk (0x1U << TSC_ISR_EOAF_Pos) /*!< 0x00000001 */ | |
14342 #define TSC_ISR_EOAF TSC_ISR_EOAF_Msk /*!<End of acquisition flag */ | |
14343 #define TSC_ISR_MCEF_Pos (1U) | |
14344 #define TSC_ISR_MCEF_Msk (0x1U << TSC_ISR_MCEF_Pos) /*!< 0x00000002 */ | |
14345 #define TSC_ISR_MCEF TSC_ISR_MCEF_Msk /*!<Max count error flag */ | |
14346 | |
14347 /******************* Bit definition for TSC_IOHCR register ******************/ | |
14348 #define TSC_IOHCR_G1_IO1_Pos (0U) | |
14349 #define TSC_IOHCR_G1_IO1_Msk (0x1U << TSC_IOHCR_G1_IO1_Pos) /*!< 0x00000001 */ | |
14350 #define TSC_IOHCR_G1_IO1 TSC_IOHCR_G1_IO1_Msk /*!<GROUP1_IO1 schmitt trigger hysteresis mode */ | |
14351 #define TSC_IOHCR_G1_IO2_Pos (1U) | |
14352 #define TSC_IOHCR_G1_IO2_Msk (0x1U << TSC_IOHCR_G1_IO2_Pos) /*!< 0x00000002 */ | |
14353 #define TSC_IOHCR_G1_IO2 TSC_IOHCR_G1_IO2_Msk /*!<GROUP1_IO2 schmitt trigger hysteresis mode */ | |
14354 #define TSC_IOHCR_G1_IO3_Pos (2U) | |
14355 #define TSC_IOHCR_G1_IO3_Msk (0x1U << TSC_IOHCR_G1_IO3_Pos) /*!< 0x00000004 */ | |
14356 #define TSC_IOHCR_G1_IO3 TSC_IOHCR_G1_IO3_Msk /*!<GROUP1_IO3 schmitt trigger hysteresis mode */ | |
14357 #define TSC_IOHCR_G1_IO4_Pos (3U) | |
14358 #define TSC_IOHCR_G1_IO4_Msk (0x1U << TSC_IOHCR_G1_IO4_Pos) /*!< 0x00000008 */ | |
14359 #define TSC_IOHCR_G1_IO4 TSC_IOHCR_G1_IO4_Msk /*!<GROUP1_IO4 schmitt trigger hysteresis mode */ | |
14360 #define TSC_IOHCR_G2_IO1_Pos (4U) | |
14361 #define TSC_IOHCR_G2_IO1_Msk (0x1U << TSC_IOHCR_G2_IO1_Pos) /*!< 0x00000010 */ | |
14362 #define TSC_IOHCR_G2_IO1 TSC_IOHCR_G2_IO1_Msk /*!<GROUP2_IO1 schmitt trigger hysteresis mode */ | |
14363 #define TSC_IOHCR_G2_IO2_Pos (5U) | |
14364 #define TSC_IOHCR_G2_IO2_Msk (0x1U << TSC_IOHCR_G2_IO2_Pos) /*!< 0x00000020 */ | |
14365 #define TSC_IOHCR_G2_IO2 TSC_IOHCR_G2_IO2_Msk /*!<GROUP2_IO2 schmitt trigger hysteresis mode */ | |
14366 #define TSC_IOHCR_G2_IO3_Pos (6U) | |
14367 #define TSC_IOHCR_G2_IO3_Msk (0x1U << TSC_IOHCR_G2_IO3_Pos) /*!< 0x00000040 */ | |
14368 #define TSC_IOHCR_G2_IO3 TSC_IOHCR_G2_IO3_Msk /*!<GROUP2_IO3 schmitt trigger hysteresis mode */ | |
14369 #define TSC_IOHCR_G2_IO4_Pos (7U) | |
14370 #define TSC_IOHCR_G2_IO4_Msk (0x1U << TSC_IOHCR_G2_IO4_Pos) /*!< 0x00000080 */ | |
14371 #define TSC_IOHCR_G2_IO4 TSC_IOHCR_G2_IO4_Msk /*!<GROUP2_IO4 schmitt trigger hysteresis mode */ | |
14372 #define TSC_IOHCR_G3_IO1_Pos (8U) | |
14373 #define TSC_IOHCR_G3_IO1_Msk (0x1U << TSC_IOHCR_G3_IO1_Pos) /*!< 0x00000100 */ | |
14374 #define TSC_IOHCR_G3_IO1 TSC_IOHCR_G3_IO1_Msk /*!<GROUP3_IO1 schmitt trigger hysteresis mode */ | |
14375 #define TSC_IOHCR_G3_IO2_Pos (9U) | |
14376 #define TSC_IOHCR_G3_IO2_Msk (0x1U << TSC_IOHCR_G3_IO2_Pos) /*!< 0x00000200 */ | |
14377 #define TSC_IOHCR_G3_IO2 TSC_IOHCR_G3_IO2_Msk /*!<GROUP3_IO2 schmitt trigger hysteresis mode */ | |
14378 #define TSC_IOHCR_G3_IO3_Pos (10U) | |
14379 #define TSC_IOHCR_G3_IO3_Msk (0x1U << TSC_IOHCR_G3_IO3_Pos) /*!< 0x00000400 */ | |
14380 #define TSC_IOHCR_G3_IO3 TSC_IOHCR_G3_IO3_Msk /*!<GROUP3_IO3 schmitt trigger hysteresis mode */ | |
14381 #define TSC_IOHCR_G3_IO4_Pos (11U) | |
14382 #define TSC_IOHCR_G3_IO4_Msk (0x1U << TSC_IOHCR_G3_IO4_Pos) /*!< 0x00000800 */ | |
14383 #define TSC_IOHCR_G3_IO4 TSC_IOHCR_G3_IO4_Msk /*!<GROUP3_IO4 schmitt trigger hysteresis mode */ | |
14384 #define TSC_IOHCR_G4_IO1_Pos (12U) | |
14385 #define TSC_IOHCR_G4_IO1_Msk (0x1U << TSC_IOHCR_G4_IO1_Pos) /*!< 0x00001000 */ | |
14386 #define TSC_IOHCR_G4_IO1 TSC_IOHCR_G4_IO1_Msk /*!<GROUP4_IO1 schmitt trigger hysteresis mode */ | |
14387 #define TSC_IOHCR_G4_IO2_Pos (13U) | |
14388 #define TSC_IOHCR_G4_IO2_Msk (0x1U << TSC_IOHCR_G4_IO2_Pos) /*!< 0x00002000 */ | |
14389 #define TSC_IOHCR_G4_IO2 TSC_IOHCR_G4_IO2_Msk /*!<GROUP4_IO2 schmitt trigger hysteresis mode */ | |
14390 #define TSC_IOHCR_G4_IO3_Pos (14U) | |
14391 #define TSC_IOHCR_G4_IO3_Msk (0x1U << TSC_IOHCR_G4_IO3_Pos) /*!< 0x00004000 */ | |
14392 #define TSC_IOHCR_G4_IO3 TSC_IOHCR_G4_IO3_Msk /*!<GROUP4_IO3 schmitt trigger hysteresis mode */ | |
14393 #define TSC_IOHCR_G4_IO4_Pos (15U) | |
14394 #define TSC_IOHCR_G4_IO4_Msk (0x1U << TSC_IOHCR_G4_IO4_Pos) /*!< 0x00008000 */ | |
14395 #define TSC_IOHCR_G4_IO4 TSC_IOHCR_G4_IO4_Msk /*!<GROUP4_IO4 schmitt trigger hysteresis mode */ | |
14396 #define TSC_IOHCR_G5_IO1_Pos (16U) | |
14397 #define TSC_IOHCR_G5_IO1_Msk (0x1U << TSC_IOHCR_G5_IO1_Pos) /*!< 0x00010000 */ | |
14398 #define TSC_IOHCR_G5_IO1 TSC_IOHCR_G5_IO1_Msk /*!<GROUP5_IO1 schmitt trigger hysteresis mode */ | |
14399 #define TSC_IOHCR_G5_IO2_Pos (17U) | |
14400 #define TSC_IOHCR_G5_IO2_Msk (0x1U << TSC_IOHCR_G5_IO2_Pos) /*!< 0x00020000 */ | |
14401 #define TSC_IOHCR_G5_IO2 TSC_IOHCR_G5_IO2_Msk /*!<GROUP5_IO2 schmitt trigger hysteresis mode */ | |
14402 #define TSC_IOHCR_G5_IO3_Pos (18U) | |
14403 #define TSC_IOHCR_G5_IO3_Msk (0x1U << TSC_IOHCR_G5_IO3_Pos) /*!< 0x00040000 */ | |
14404 #define TSC_IOHCR_G5_IO3 TSC_IOHCR_G5_IO3_Msk /*!<GROUP5_IO3 schmitt trigger hysteresis mode */ | |
14405 #define TSC_IOHCR_G5_IO4_Pos (19U) | |
14406 #define TSC_IOHCR_G5_IO4_Msk (0x1U << TSC_IOHCR_G5_IO4_Pos) /*!< 0x00080000 */ | |
14407 #define TSC_IOHCR_G5_IO4 TSC_IOHCR_G5_IO4_Msk /*!<GROUP5_IO4 schmitt trigger hysteresis mode */ | |
14408 #define TSC_IOHCR_G6_IO1_Pos (20U) | |
14409 #define TSC_IOHCR_G6_IO1_Msk (0x1U << TSC_IOHCR_G6_IO1_Pos) /*!< 0x00100000 */ | |
14410 #define TSC_IOHCR_G6_IO1 TSC_IOHCR_G6_IO1_Msk /*!<GROUP6_IO1 schmitt trigger hysteresis mode */ | |
14411 #define TSC_IOHCR_G6_IO2_Pos (21U) | |
14412 #define TSC_IOHCR_G6_IO2_Msk (0x1U << TSC_IOHCR_G6_IO2_Pos) /*!< 0x00200000 */ | |
14413 #define TSC_IOHCR_G6_IO2 TSC_IOHCR_G6_IO2_Msk /*!<GROUP6_IO2 schmitt trigger hysteresis mode */ | |
14414 #define TSC_IOHCR_G6_IO3_Pos (22U) | |
14415 #define TSC_IOHCR_G6_IO3_Msk (0x1U << TSC_IOHCR_G6_IO3_Pos) /*!< 0x00400000 */ | |
14416 #define TSC_IOHCR_G6_IO3 TSC_IOHCR_G6_IO3_Msk /*!<GROUP6_IO3 schmitt trigger hysteresis mode */ | |
14417 #define TSC_IOHCR_G6_IO4_Pos (23U) | |
14418 #define TSC_IOHCR_G6_IO4_Msk (0x1U << TSC_IOHCR_G6_IO4_Pos) /*!< 0x00800000 */ | |
14419 #define TSC_IOHCR_G6_IO4 TSC_IOHCR_G6_IO4_Msk /*!<GROUP6_IO4 schmitt trigger hysteresis mode */ | |
14420 #define TSC_IOHCR_G7_IO1_Pos (24U) | |
14421 #define TSC_IOHCR_G7_IO1_Msk (0x1U << TSC_IOHCR_G7_IO1_Pos) /*!< 0x01000000 */ | |
14422 #define TSC_IOHCR_G7_IO1 TSC_IOHCR_G7_IO1_Msk /*!<GROUP7_IO1 schmitt trigger hysteresis mode */ | |
14423 #define TSC_IOHCR_G7_IO2_Pos (25U) | |
14424 #define TSC_IOHCR_G7_IO2_Msk (0x1U << TSC_IOHCR_G7_IO2_Pos) /*!< 0x02000000 */ | |
14425 #define TSC_IOHCR_G7_IO2 TSC_IOHCR_G7_IO2_Msk /*!<GROUP7_IO2 schmitt trigger hysteresis mode */ | |
14426 #define TSC_IOHCR_G7_IO3_Pos (26U) | |
14427 #define TSC_IOHCR_G7_IO3_Msk (0x1U << TSC_IOHCR_G7_IO3_Pos) /*!< 0x04000000 */ | |
14428 #define TSC_IOHCR_G7_IO3 TSC_IOHCR_G7_IO3_Msk /*!<GROUP7_IO3 schmitt trigger hysteresis mode */ | |
14429 #define TSC_IOHCR_G7_IO4_Pos (27U) | |
14430 #define TSC_IOHCR_G7_IO4_Msk (0x1U << TSC_IOHCR_G7_IO4_Pos) /*!< 0x08000000 */ | |
14431 #define TSC_IOHCR_G7_IO4 TSC_IOHCR_G7_IO4_Msk /*!<GROUP7_IO4 schmitt trigger hysteresis mode */ | |
14432 | |
14433 /******************* Bit definition for TSC_IOASCR register *****************/ | |
14434 #define TSC_IOASCR_G1_IO1_Pos (0U) | |
14435 #define TSC_IOASCR_G1_IO1_Msk (0x1U << TSC_IOASCR_G1_IO1_Pos) /*!< 0x00000001 */ | |
14436 #define TSC_IOASCR_G1_IO1 TSC_IOASCR_G1_IO1_Msk /*!<GROUP1_IO1 analog switch enable */ | |
14437 #define TSC_IOASCR_G1_IO2_Pos (1U) | |
14438 #define TSC_IOASCR_G1_IO2_Msk (0x1U << TSC_IOASCR_G1_IO2_Pos) /*!< 0x00000002 */ | |
14439 #define TSC_IOASCR_G1_IO2 TSC_IOASCR_G1_IO2_Msk /*!<GROUP1_IO2 analog switch enable */ | |
14440 #define TSC_IOASCR_G1_IO3_Pos (2U) | |
14441 #define TSC_IOASCR_G1_IO3_Msk (0x1U << TSC_IOASCR_G1_IO3_Pos) /*!< 0x00000004 */ | |
14442 #define TSC_IOASCR_G1_IO3 TSC_IOASCR_G1_IO3_Msk /*!<GROUP1_IO3 analog switch enable */ | |
14443 #define TSC_IOASCR_G1_IO4_Pos (3U) | |
14444 #define TSC_IOASCR_G1_IO4_Msk (0x1U << TSC_IOASCR_G1_IO4_Pos) /*!< 0x00000008 */ | |
14445 #define TSC_IOASCR_G1_IO4 TSC_IOASCR_G1_IO4_Msk /*!<GROUP1_IO4 analog switch enable */ | |
14446 #define TSC_IOASCR_G2_IO1_Pos (4U) | |
14447 #define TSC_IOASCR_G2_IO1_Msk (0x1U << TSC_IOASCR_G2_IO1_Pos) /*!< 0x00000010 */ | |
14448 #define TSC_IOASCR_G2_IO1 TSC_IOASCR_G2_IO1_Msk /*!<GROUP2_IO1 analog switch enable */ | |
14449 #define TSC_IOASCR_G2_IO2_Pos (5U) | |
14450 #define TSC_IOASCR_G2_IO2_Msk (0x1U << TSC_IOASCR_G2_IO2_Pos) /*!< 0x00000020 */ | |
14451 #define TSC_IOASCR_G2_IO2 TSC_IOASCR_G2_IO2_Msk /*!<GROUP2_IO2 analog switch enable */ | |
14452 #define TSC_IOASCR_G2_IO3_Pos (6U) | |
14453 #define TSC_IOASCR_G2_IO3_Msk (0x1U << TSC_IOASCR_G2_IO3_Pos) /*!< 0x00000040 */ | |
14454 #define TSC_IOASCR_G2_IO3 TSC_IOASCR_G2_IO3_Msk /*!<GROUP2_IO3 analog switch enable */ | |
14455 #define TSC_IOASCR_G2_IO4_Pos (7U) | |
14456 #define TSC_IOASCR_G2_IO4_Msk (0x1U << TSC_IOASCR_G2_IO4_Pos) /*!< 0x00000080 */ | |
14457 #define TSC_IOASCR_G2_IO4 TSC_IOASCR_G2_IO4_Msk /*!<GROUP2_IO4 analog switch enable */ | |
14458 #define TSC_IOASCR_G3_IO1_Pos (8U) | |
14459 #define TSC_IOASCR_G3_IO1_Msk (0x1U << TSC_IOASCR_G3_IO1_Pos) /*!< 0x00000100 */ | |
14460 #define TSC_IOASCR_G3_IO1 TSC_IOASCR_G3_IO1_Msk /*!<GROUP3_IO1 analog switch enable */ | |
14461 #define TSC_IOASCR_G3_IO2_Pos (9U) | |
14462 #define TSC_IOASCR_G3_IO2_Msk (0x1U << TSC_IOASCR_G3_IO2_Pos) /*!< 0x00000200 */ | |
14463 #define TSC_IOASCR_G3_IO2 TSC_IOASCR_G3_IO2_Msk /*!<GROUP3_IO2 analog switch enable */ | |
14464 #define TSC_IOASCR_G3_IO3_Pos (10U) | |
14465 #define TSC_IOASCR_G3_IO3_Msk (0x1U << TSC_IOASCR_G3_IO3_Pos) /*!< 0x00000400 */ | |
14466 #define TSC_IOASCR_G3_IO3 TSC_IOASCR_G3_IO3_Msk /*!<GROUP3_IO3 analog switch enable */ | |
14467 #define TSC_IOASCR_G3_IO4_Pos (11U) | |
14468 #define TSC_IOASCR_G3_IO4_Msk (0x1U << TSC_IOASCR_G3_IO4_Pos) /*!< 0x00000800 */ | |
14469 #define TSC_IOASCR_G3_IO4 TSC_IOASCR_G3_IO4_Msk /*!<GROUP3_IO4 analog switch enable */ | |
14470 #define TSC_IOASCR_G4_IO1_Pos (12U) | |
14471 #define TSC_IOASCR_G4_IO1_Msk (0x1U << TSC_IOASCR_G4_IO1_Pos) /*!< 0x00001000 */ | |
14472 #define TSC_IOASCR_G4_IO1 TSC_IOASCR_G4_IO1_Msk /*!<GROUP4_IO1 analog switch enable */ | |
14473 #define TSC_IOASCR_G4_IO2_Pos (13U) | |
14474 #define TSC_IOASCR_G4_IO2_Msk (0x1U << TSC_IOASCR_G4_IO2_Pos) /*!< 0x00002000 */ | |
14475 #define TSC_IOASCR_G4_IO2 TSC_IOASCR_G4_IO2_Msk /*!<GROUP4_IO2 analog switch enable */ | |
14476 #define TSC_IOASCR_G4_IO3_Pos (14U) | |
14477 #define TSC_IOASCR_G4_IO3_Msk (0x1U << TSC_IOASCR_G4_IO3_Pos) /*!< 0x00004000 */ | |
14478 #define TSC_IOASCR_G4_IO3 TSC_IOASCR_G4_IO3_Msk /*!<GROUP4_IO3 analog switch enable */ | |
14479 #define TSC_IOASCR_G4_IO4_Pos (15U) | |
14480 #define TSC_IOASCR_G4_IO4_Msk (0x1U << TSC_IOASCR_G4_IO4_Pos) /*!< 0x00008000 */ | |
14481 #define TSC_IOASCR_G4_IO4 TSC_IOASCR_G4_IO4_Msk /*!<GROUP4_IO4 analog switch enable */ | |
14482 #define TSC_IOASCR_G5_IO1_Pos (16U) | |
14483 #define TSC_IOASCR_G5_IO1_Msk (0x1U << TSC_IOASCR_G5_IO1_Pos) /*!< 0x00010000 */ | |
14484 #define TSC_IOASCR_G5_IO1 TSC_IOASCR_G5_IO1_Msk /*!<GROUP5_IO1 analog switch enable */ | |
14485 #define TSC_IOASCR_G5_IO2_Pos (17U) | |
14486 #define TSC_IOASCR_G5_IO2_Msk (0x1U << TSC_IOASCR_G5_IO2_Pos) /*!< 0x00020000 */ | |
14487 #define TSC_IOASCR_G5_IO2 TSC_IOASCR_G5_IO2_Msk /*!<GROUP5_IO2 analog switch enable */ | |
14488 #define TSC_IOASCR_G5_IO3_Pos (18U) | |
14489 #define TSC_IOASCR_G5_IO3_Msk (0x1U << TSC_IOASCR_G5_IO3_Pos) /*!< 0x00040000 */ | |
14490 #define TSC_IOASCR_G5_IO3 TSC_IOASCR_G5_IO3_Msk /*!<GROUP5_IO3 analog switch enable */ | |
14491 #define TSC_IOASCR_G5_IO4_Pos (19U) | |
14492 #define TSC_IOASCR_G5_IO4_Msk (0x1U << TSC_IOASCR_G5_IO4_Pos) /*!< 0x00080000 */ | |
14493 #define TSC_IOASCR_G5_IO4 TSC_IOASCR_G5_IO4_Msk /*!<GROUP5_IO4 analog switch enable */ | |
14494 #define TSC_IOASCR_G6_IO1_Pos (20U) | |
14495 #define TSC_IOASCR_G6_IO1_Msk (0x1U << TSC_IOASCR_G6_IO1_Pos) /*!< 0x00100000 */ | |
14496 #define TSC_IOASCR_G6_IO1 TSC_IOASCR_G6_IO1_Msk /*!<GROUP6_IO1 analog switch enable */ | |
14497 #define TSC_IOASCR_G6_IO2_Pos (21U) | |
14498 #define TSC_IOASCR_G6_IO2_Msk (0x1U << TSC_IOASCR_G6_IO2_Pos) /*!< 0x00200000 */ | |
14499 #define TSC_IOASCR_G6_IO2 TSC_IOASCR_G6_IO2_Msk /*!<GROUP6_IO2 analog switch enable */ | |
14500 #define TSC_IOASCR_G6_IO3_Pos (22U) | |
14501 #define TSC_IOASCR_G6_IO3_Msk (0x1U << TSC_IOASCR_G6_IO3_Pos) /*!< 0x00400000 */ | |
14502 #define TSC_IOASCR_G6_IO3 TSC_IOASCR_G6_IO3_Msk /*!<GROUP6_IO3 analog switch enable */ | |
14503 #define TSC_IOASCR_G6_IO4_Pos (23U) | |
14504 #define TSC_IOASCR_G6_IO4_Msk (0x1U << TSC_IOASCR_G6_IO4_Pos) /*!< 0x00800000 */ | |
14505 #define TSC_IOASCR_G6_IO4 TSC_IOASCR_G6_IO4_Msk /*!<GROUP6_IO4 analog switch enable */ | |
14506 #define TSC_IOASCR_G7_IO1_Pos (24U) | |
14507 #define TSC_IOASCR_G7_IO1_Msk (0x1U << TSC_IOASCR_G7_IO1_Pos) /*!< 0x01000000 */ | |
14508 #define TSC_IOASCR_G7_IO1 TSC_IOASCR_G7_IO1_Msk /*!<GROUP7_IO1 analog switch enable */ | |
14509 #define TSC_IOASCR_G7_IO2_Pos (25U) | |
14510 #define TSC_IOASCR_G7_IO2_Msk (0x1U << TSC_IOASCR_G7_IO2_Pos) /*!< 0x02000000 */ | |
14511 #define TSC_IOASCR_G7_IO2 TSC_IOASCR_G7_IO2_Msk /*!<GROUP7_IO2 analog switch enable */ | |
14512 #define TSC_IOASCR_G7_IO3_Pos (26U) | |
14513 #define TSC_IOASCR_G7_IO3_Msk (0x1U << TSC_IOASCR_G7_IO3_Pos) /*!< 0x04000000 */ | |
14514 #define TSC_IOASCR_G7_IO3 TSC_IOASCR_G7_IO3_Msk /*!<GROUP7_IO3 analog switch enable */ | |
14515 #define TSC_IOASCR_G7_IO4_Pos (27U) | |
14516 #define TSC_IOASCR_G7_IO4_Msk (0x1U << TSC_IOASCR_G7_IO4_Pos) /*!< 0x08000000 */ | |
14517 #define TSC_IOASCR_G7_IO4 TSC_IOASCR_G7_IO4_Msk /*!<GROUP7_IO4 analog switch enable */ | |
14518 | |
14519 /******************* Bit definition for TSC_IOSCR register ******************/ | |
14520 #define TSC_IOSCR_G1_IO1_Pos (0U) | |
14521 #define TSC_IOSCR_G1_IO1_Msk (0x1U << TSC_IOSCR_G1_IO1_Pos) /*!< 0x00000001 */ | |
14522 #define TSC_IOSCR_G1_IO1 TSC_IOSCR_G1_IO1_Msk /*!<GROUP1_IO1 sampling mode */ | |
14523 #define TSC_IOSCR_G1_IO2_Pos (1U) | |
14524 #define TSC_IOSCR_G1_IO2_Msk (0x1U << TSC_IOSCR_G1_IO2_Pos) /*!< 0x00000002 */ | |
14525 #define TSC_IOSCR_G1_IO2 TSC_IOSCR_G1_IO2_Msk /*!<GROUP1_IO2 sampling mode */ | |
14526 #define TSC_IOSCR_G1_IO3_Pos (2U) | |
14527 #define TSC_IOSCR_G1_IO3_Msk (0x1U << TSC_IOSCR_G1_IO3_Pos) /*!< 0x00000004 */ | |
14528 #define TSC_IOSCR_G1_IO3 TSC_IOSCR_G1_IO3_Msk /*!<GROUP1_IO3 sampling mode */ | |
14529 #define TSC_IOSCR_G1_IO4_Pos (3U) | |
14530 #define TSC_IOSCR_G1_IO4_Msk (0x1U << TSC_IOSCR_G1_IO4_Pos) /*!< 0x00000008 */ | |
14531 #define TSC_IOSCR_G1_IO4 TSC_IOSCR_G1_IO4_Msk /*!<GROUP1_IO4 sampling mode */ | |
14532 #define TSC_IOSCR_G2_IO1_Pos (4U) | |
14533 #define TSC_IOSCR_G2_IO1_Msk (0x1U << TSC_IOSCR_G2_IO1_Pos) /*!< 0x00000010 */ | |
14534 #define TSC_IOSCR_G2_IO1 TSC_IOSCR_G2_IO1_Msk /*!<GROUP2_IO1 sampling mode */ | |
14535 #define TSC_IOSCR_G2_IO2_Pos (5U) | |
14536 #define TSC_IOSCR_G2_IO2_Msk (0x1U << TSC_IOSCR_G2_IO2_Pos) /*!< 0x00000020 */ | |
14537 #define TSC_IOSCR_G2_IO2 TSC_IOSCR_G2_IO2_Msk /*!<GROUP2_IO2 sampling mode */ | |
14538 #define TSC_IOSCR_G2_IO3_Pos (6U) | |
14539 #define TSC_IOSCR_G2_IO3_Msk (0x1U << TSC_IOSCR_G2_IO3_Pos) /*!< 0x00000040 */ | |
14540 #define TSC_IOSCR_G2_IO3 TSC_IOSCR_G2_IO3_Msk /*!<GROUP2_IO3 sampling mode */ | |
14541 #define TSC_IOSCR_G2_IO4_Pos (7U) | |
14542 #define TSC_IOSCR_G2_IO4_Msk (0x1U << TSC_IOSCR_G2_IO4_Pos) /*!< 0x00000080 */ | |
14543 #define TSC_IOSCR_G2_IO4 TSC_IOSCR_G2_IO4_Msk /*!<GROUP2_IO4 sampling mode */ | |
14544 #define TSC_IOSCR_G3_IO1_Pos (8U) | |
14545 #define TSC_IOSCR_G3_IO1_Msk (0x1U << TSC_IOSCR_G3_IO1_Pos) /*!< 0x00000100 */ | |
14546 #define TSC_IOSCR_G3_IO1 TSC_IOSCR_G3_IO1_Msk /*!<GROUP3_IO1 sampling mode */ | |
14547 #define TSC_IOSCR_G3_IO2_Pos (9U) | |
14548 #define TSC_IOSCR_G3_IO2_Msk (0x1U << TSC_IOSCR_G3_IO2_Pos) /*!< 0x00000200 */ | |
14549 #define TSC_IOSCR_G3_IO2 TSC_IOSCR_G3_IO2_Msk /*!<GROUP3_IO2 sampling mode */ | |
14550 #define TSC_IOSCR_G3_IO3_Pos (10U) | |
14551 #define TSC_IOSCR_G3_IO3_Msk (0x1U << TSC_IOSCR_G3_IO3_Pos) /*!< 0x00000400 */ | |
14552 #define TSC_IOSCR_G3_IO3 TSC_IOSCR_G3_IO3_Msk /*!<GROUP3_IO3 sampling mode */ | |
14553 #define TSC_IOSCR_G3_IO4_Pos (11U) | |
14554 #define TSC_IOSCR_G3_IO4_Msk (0x1U << TSC_IOSCR_G3_IO4_Pos) /*!< 0x00000800 */ | |
14555 #define TSC_IOSCR_G3_IO4 TSC_IOSCR_G3_IO4_Msk /*!<GROUP3_IO4 sampling mode */ | |
14556 #define TSC_IOSCR_G4_IO1_Pos (12U) | |
14557 #define TSC_IOSCR_G4_IO1_Msk (0x1U << TSC_IOSCR_G4_IO1_Pos) /*!< 0x00001000 */ | |
14558 #define TSC_IOSCR_G4_IO1 TSC_IOSCR_G4_IO1_Msk /*!<GROUP4_IO1 sampling mode */ | |
14559 #define TSC_IOSCR_G4_IO2_Pos (13U) | |
14560 #define TSC_IOSCR_G4_IO2_Msk (0x1U << TSC_IOSCR_G4_IO2_Pos) /*!< 0x00002000 */ | |
14561 #define TSC_IOSCR_G4_IO2 TSC_IOSCR_G4_IO2_Msk /*!<GROUP4_IO2 sampling mode */ | |
14562 #define TSC_IOSCR_G4_IO3_Pos (14U) | |
14563 #define TSC_IOSCR_G4_IO3_Msk (0x1U << TSC_IOSCR_G4_IO3_Pos) /*!< 0x00004000 */ | |
14564 #define TSC_IOSCR_G4_IO3 TSC_IOSCR_G4_IO3_Msk /*!<GROUP4_IO3 sampling mode */ | |
14565 #define TSC_IOSCR_G4_IO4_Pos (15U) | |
14566 #define TSC_IOSCR_G4_IO4_Msk (0x1U << TSC_IOSCR_G4_IO4_Pos) /*!< 0x00008000 */ | |
14567 #define TSC_IOSCR_G4_IO4 TSC_IOSCR_G4_IO4_Msk /*!<GROUP4_IO4 sampling mode */ | |
14568 #define TSC_IOSCR_G5_IO1_Pos (16U) | |
14569 #define TSC_IOSCR_G5_IO1_Msk (0x1U << TSC_IOSCR_G5_IO1_Pos) /*!< 0x00010000 */ | |
14570 #define TSC_IOSCR_G5_IO1 TSC_IOSCR_G5_IO1_Msk /*!<GROUP5_IO1 sampling mode */ | |
14571 #define TSC_IOSCR_G5_IO2_Pos (17U) | |
14572 #define TSC_IOSCR_G5_IO2_Msk (0x1U << TSC_IOSCR_G5_IO2_Pos) /*!< 0x00020000 */ | |
14573 #define TSC_IOSCR_G5_IO2 TSC_IOSCR_G5_IO2_Msk /*!<GROUP5_IO2 sampling mode */ | |
14574 #define TSC_IOSCR_G5_IO3_Pos (18U) | |
14575 #define TSC_IOSCR_G5_IO3_Msk (0x1U << TSC_IOSCR_G5_IO3_Pos) /*!< 0x00040000 */ | |
14576 #define TSC_IOSCR_G5_IO3 TSC_IOSCR_G5_IO3_Msk /*!<GROUP5_IO3 sampling mode */ | |
14577 #define TSC_IOSCR_G5_IO4_Pos (19U) | |
14578 #define TSC_IOSCR_G5_IO4_Msk (0x1U << TSC_IOSCR_G5_IO4_Pos) /*!< 0x00080000 */ | |
14579 #define TSC_IOSCR_G5_IO4 TSC_IOSCR_G5_IO4_Msk /*!<GROUP5_IO4 sampling mode */ | |
14580 #define TSC_IOSCR_G6_IO1_Pos (20U) | |
14581 #define TSC_IOSCR_G6_IO1_Msk (0x1U << TSC_IOSCR_G6_IO1_Pos) /*!< 0x00100000 */ | |
14582 #define TSC_IOSCR_G6_IO1 TSC_IOSCR_G6_IO1_Msk /*!<GROUP6_IO1 sampling mode */ | |
14583 #define TSC_IOSCR_G6_IO2_Pos (21U) | |
14584 #define TSC_IOSCR_G6_IO2_Msk (0x1U << TSC_IOSCR_G6_IO2_Pos) /*!< 0x00200000 */ | |
14585 #define TSC_IOSCR_G6_IO2 TSC_IOSCR_G6_IO2_Msk /*!<GROUP6_IO2 sampling mode */ | |
14586 #define TSC_IOSCR_G6_IO3_Pos (22U) | |
14587 #define TSC_IOSCR_G6_IO3_Msk (0x1U << TSC_IOSCR_G6_IO3_Pos) /*!< 0x00400000 */ | |
14588 #define TSC_IOSCR_G6_IO3 TSC_IOSCR_G6_IO3_Msk /*!<GROUP6_IO3 sampling mode */ | |
14589 #define TSC_IOSCR_G6_IO4_Pos (23U) | |
14590 #define TSC_IOSCR_G6_IO4_Msk (0x1U << TSC_IOSCR_G6_IO4_Pos) /*!< 0x00800000 */ | |
14591 #define TSC_IOSCR_G6_IO4 TSC_IOSCR_G6_IO4_Msk /*!<GROUP6_IO4 sampling mode */ | |
14592 #define TSC_IOSCR_G7_IO1_Pos (24U) | |
14593 #define TSC_IOSCR_G7_IO1_Msk (0x1U << TSC_IOSCR_G7_IO1_Pos) /*!< 0x01000000 */ | |
14594 #define TSC_IOSCR_G7_IO1 TSC_IOSCR_G7_IO1_Msk /*!<GROUP7_IO1 sampling mode */ | |
14595 #define TSC_IOSCR_G7_IO2_Pos (25U) | |
14596 #define TSC_IOSCR_G7_IO2_Msk (0x1U << TSC_IOSCR_G7_IO2_Pos) /*!< 0x02000000 */ | |
14597 #define TSC_IOSCR_G7_IO2 TSC_IOSCR_G7_IO2_Msk /*!<GROUP7_IO2 sampling mode */ | |
14598 #define TSC_IOSCR_G7_IO3_Pos (26U) | |
14599 #define TSC_IOSCR_G7_IO3_Msk (0x1U << TSC_IOSCR_G7_IO3_Pos) /*!< 0x04000000 */ | |
14600 #define TSC_IOSCR_G7_IO3 TSC_IOSCR_G7_IO3_Msk /*!<GROUP7_IO3 sampling mode */ | |
14601 #define TSC_IOSCR_G7_IO4_Pos (27U) | |
14602 #define TSC_IOSCR_G7_IO4_Msk (0x1U << TSC_IOSCR_G7_IO4_Pos) /*!< 0x08000000 */ | |
14603 #define TSC_IOSCR_G7_IO4 TSC_IOSCR_G7_IO4_Msk /*!<GROUP7_IO4 sampling mode */ | |
14604 | |
14605 /******************* Bit definition for TSC_IOCCR register ******************/ | |
14606 #define TSC_IOCCR_G1_IO1_Pos (0U) | |
14607 #define TSC_IOCCR_G1_IO1_Msk (0x1U << TSC_IOCCR_G1_IO1_Pos) /*!< 0x00000001 */ | |
14608 #define TSC_IOCCR_G1_IO1 TSC_IOCCR_G1_IO1_Msk /*!<GROUP1_IO1 channel mode */ | |
14609 #define TSC_IOCCR_G1_IO2_Pos (1U) | |
14610 #define TSC_IOCCR_G1_IO2_Msk (0x1U << TSC_IOCCR_G1_IO2_Pos) /*!< 0x00000002 */ | |
14611 #define TSC_IOCCR_G1_IO2 TSC_IOCCR_G1_IO2_Msk /*!<GROUP1_IO2 channel mode */ | |
14612 #define TSC_IOCCR_G1_IO3_Pos (2U) | |
14613 #define TSC_IOCCR_G1_IO3_Msk (0x1U << TSC_IOCCR_G1_IO3_Pos) /*!< 0x00000004 */ | |
14614 #define TSC_IOCCR_G1_IO3 TSC_IOCCR_G1_IO3_Msk /*!<GROUP1_IO3 channel mode */ | |
14615 #define TSC_IOCCR_G1_IO4_Pos (3U) | |
14616 #define TSC_IOCCR_G1_IO4_Msk (0x1U << TSC_IOCCR_G1_IO4_Pos) /*!< 0x00000008 */ | |
14617 #define TSC_IOCCR_G1_IO4 TSC_IOCCR_G1_IO4_Msk /*!<GROUP1_IO4 channel mode */ | |
14618 #define TSC_IOCCR_G2_IO1_Pos (4U) | |
14619 #define TSC_IOCCR_G2_IO1_Msk (0x1U << TSC_IOCCR_G2_IO1_Pos) /*!< 0x00000010 */ | |
14620 #define TSC_IOCCR_G2_IO1 TSC_IOCCR_G2_IO1_Msk /*!<GROUP2_IO1 channel mode */ | |
14621 #define TSC_IOCCR_G2_IO2_Pos (5U) | |
14622 #define TSC_IOCCR_G2_IO2_Msk (0x1U << TSC_IOCCR_G2_IO2_Pos) /*!< 0x00000020 */ | |
14623 #define TSC_IOCCR_G2_IO2 TSC_IOCCR_G2_IO2_Msk /*!<GROUP2_IO2 channel mode */ | |
14624 #define TSC_IOCCR_G2_IO3_Pos (6U) | |
14625 #define TSC_IOCCR_G2_IO3_Msk (0x1U << TSC_IOCCR_G2_IO3_Pos) /*!< 0x00000040 */ | |
14626 #define TSC_IOCCR_G2_IO3 TSC_IOCCR_G2_IO3_Msk /*!<GROUP2_IO3 channel mode */ | |
14627 #define TSC_IOCCR_G2_IO4_Pos (7U) | |
14628 #define TSC_IOCCR_G2_IO4_Msk (0x1U << TSC_IOCCR_G2_IO4_Pos) /*!< 0x00000080 */ | |
14629 #define TSC_IOCCR_G2_IO4 TSC_IOCCR_G2_IO4_Msk /*!<GROUP2_IO4 channel mode */ | |
14630 #define TSC_IOCCR_G3_IO1_Pos (8U) | |
14631 #define TSC_IOCCR_G3_IO1_Msk (0x1U << TSC_IOCCR_G3_IO1_Pos) /*!< 0x00000100 */ | |
14632 #define TSC_IOCCR_G3_IO1 TSC_IOCCR_G3_IO1_Msk /*!<GROUP3_IO1 channel mode */ | |
14633 #define TSC_IOCCR_G3_IO2_Pos (9U) | |
14634 #define TSC_IOCCR_G3_IO2_Msk (0x1U << TSC_IOCCR_G3_IO2_Pos) /*!< 0x00000200 */ | |
14635 #define TSC_IOCCR_G3_IO2 TSC_IOCCR_G3_IO2_Msk /*!<GROUP3_IO2 channel mode */ | |
14636 #define TSC_IOCCR_G3_IO3_Pos (10U) | |
14637 #define TSC_IOCCR_G3_IO3_Msk (0x1U << TSC_IOCCR_G3_IO3_Pos) /*!< 0x00000400 */ | |
14638 #define TSC_IOCCR_G3_IO3 TSC_IOCCR_G3_IO3_Msk /*!<GROUP3_IO3 channel mode */ | |
14639 #define TSC_IOCCR_G3_IO4_Pos (11U) | |
14640 #define TSC_IOCCR_G3_IO4_Msk (0x1U << TSC_IOCCR_G3_IO4_Pos) /*!< 0x00000800 */ | |
14641 #define TSC_IOCCR_G3_IO4 TSC_IOCCR_G3_IO4_Msk /*!<GROUP3_IO4 channel mode */ | |
14642 #define TSC_IOCCR_G4_IO1_Pos (12U) | |
14643 #define TSC_IOCCR_G4_IO1_Msk (0x1U << TSC_IOCCR_G4_IO1_Pos) /*!< 0x00001000 */ | |
14644 #define TSC_IOCCR_G4_IO1 TSC_IOCCR_G4_IO1_Msk /*!<GROUP4_IO1 channel mode */ | |
14645 #define TSC_IOCCR_G4_IO2_Pos (13U) | |
14646 #define TSC_IOCCR_G4_IO2_Msk (0x1U << TSC_IOCCR_G4_IO2_Pos) /*!< 0x00002000 */ | |
14647 #define TSC_IOCCR_G4_IO2 TSC_IOCCR_G4_IO2_Msk /*!<GROUP4_IO2 channel mode */ | |
14648 #define TSC_IOCCR_G4_IO3_Pos (14U) | |
14649 #define TSC_IOCCR_G4_IO3_Msk (0x1U << TSC_IOCCR_G4_IO3_Pos) /*!< 0x00004000 */ | |
14650 #define TSC_IOCCR_G4_IO3 TSC_IOCCR_G4_IO3_Msk /*!<GROUP4_IO3 channel mode */ | |
14651 #define TSC_IOCCR_G4_IO4_Pos (15U) | |
14652 #define TSC_IOCCR_G4_IO4_Msk (0x1U << TSC_IOCCR_G4_IO4_Pos) /*!< 0x00008000 */ | |
14653 #define TSC_IOCCR_G4_IO4 TSC_IOCCR_G4_IO4_Msk /*!<GROUP4_IO4 channel mode */ | |
14654 #define TSC_IOCCR_G5_IO1_Pos (16U) | |
14655 #define TSC_IOCCR_G5_IO1_Msk (0x1U << TSC_IOCCR_G5_IO1_Pos) /*!< 0x00010000 */ | |
14656 #define TSC_IOCCR_G5_IO1 TSC_IOCCR_G5_IO1_Msk /*!<GROUP5_IO1 channel mode */ | |
14657 #define TSC_IOCCR_G5_IO2_Pos (17U) | |
14658 #define TSC_IOCCR_G5_IO2_Msk (0x1U << TSC_IOCCR_G5_IO2_Pos) /*!< 0x00020000 */ | |
14659 #define TSC_IOCCR_G5_IO2 TSC_IOCCR_G5_IO2_Msk /*!<GROUP5_IO2 channel mode */ | |
14660 #define TSC_IOCCR_G5_IO3_Pos (18U) | |
14661 #define TSC_IOCCR_G5_IO3_Msk (0x1U << TSC_IOCCR_G5_IO3_Pos) /*!< 0x00040000 */ | |
14662 #define TSC_IOCCR_G5_IO3 TSC_IOCCR_G5_IO3_Msk /*!<GROUP5_IO3 channel mode */ | |
14663 #define TSC_IOCCR_G5_IO4_Pos (19U) | |
14664 #define TSC_IOCCR_G5_IO4_Msk (0x1U << TSC_IOCCR_G5_IO4_Pos) /*!< 0x00080000 */ | |
14665 #define TSC_IOCCR_G5_IO4 TSC_IOCCR_G5_IO4_Msk /*!<GROUP5_IO4 channel mode */ | |
14666 #define TSC_IOCCR_G6_IO1_Pos (20U) | |
14667 #define TSC_IOCCR_G6_IO1_Msk (0x1U << TSC_IOCCR_G6_IO1_Pos) /*!< 0x00100000 */ | |
14668 #define TSC_IOCCR_G6_IO1 TSC_IOCCR_G6_IO1_Msk /*!<GROUP6_IO1 channel mode */ | |
14669 #define TSC_IOCCR_G6_IO2_Pos (21U) | |
14670 #define TSC_IOCCR_G6_IO2_Msk (0x1U << TSC_IOCCR_G6_IO2_Pos) /*!< 0x00200000 */ | |
14671 #define TSC_IOCCR_G6_IO2 TSC_IOCCR_G6_IO2_Msk /*!<GROUP6_IO2 channel mode */ | |
14672 #define TSC_IOCCR_G6_IO3_Pos (22U) | |
14673 #define TSC_IOCCR_G6_IO3_Msk (0x1U << TSC_IOCCR_G6_IO3_Pos) /*!< 0x00400000 */ | |
14674 #define TSC_IOCCR_G6_IO3 TSC_IOCCR_G6_IO3_Msk /*!<GROUP6_IO3 channel mode */ | |
14675 #define TSC_IOCCR_G6_IO4_Pos (23U) | |
14676 #define TSC_IOCCR_G6_IO4_Msk (0x1U << TSC_IOCCR_G6_IO4_Pos) /*!< 0x00800000 */ | |
14677 #define TSC_IOCCR_G6_IO4 TSC_IOCCR_G6_IO4_Msk /*!<GROUP6_IO4 channel mode */ | |
14678 #define TSC_IOCCR_G7_IO1_Pos (24U) | |
14679 #define TSC_IOCCR_G7_IO1_Msk (0x1U << TSC_IOCCR_G7_IO1_Pos) /*!< 0x01000000 */ | |
14680 #define TSC_IOCCR_G7_IO1 TSC_IOCCR_G7_IO1_Msk /*!<GROUP7_IO1 channel mode */ | |
14681 #define TSC_IOCCR_G7_IO2_Pos (25U) | |
14682 #define TSC_IOCCR_G7_IO2_Msk (0x1U << TSC_IOCCR_G7_IO2_Pos) /*!< 0x02000000 */ | |
14683 #define TSC_IOCCR_G7_IO2 TSC_IOCCR_G7_IO2_Msk /*!<GROUP7_IO2 channel mode */ | |
14684 #define TSC_IOCCR_G7_IO3_Pos (26U) | |
14685 #define TSC_IOCCR_G7_IO3_Msk (0x1U << TSC_IOCCR_G7_IO3_Pos) /*!< 0x04000000 */ | |
14686 #define TSC_IOCCR_G7_IO3 TSC_IOCCR_G7_IO3_Msk /*!<GROUP7_IO3 channel mode */ | |
14687 #define TSC_IOCCR_G7_IO4_Pos (27U) | |
14688 #define TSC_IOCCR_G7_IO4_Msk (0x1U << TSC_IOCCR_G7_IO4_Pos) /*!< 0x08000000 */ | |
14689 #define TSC_IOCCR_G7_IO4 TSC_IOCCR_G7_IO4_Msk /*!<GROUP7_IO4 channel mode */ | |
14690 | |
14691 /******************* Bit definition for TSC_IOGCSR register *****************/ | |
14692 #define TSC_IOGCSR_G1E_Pos (0U) | |
14693 #define TSC_IOGCSR_G1E_Msk (0x1U << TSC_IOGCSR_G1E_Pos) /*!< 0x00000001 */ | |
14694 #define TSC_IOGCSR_G1E TSC_IOGCSR_G1E_Msk /*!<Analog IO GROUP1 enable */ | |
14695 #define TSC_IOGCSR_G2E_Pos (1U) | |
14696 #define TSC_IOGCSR_G2E_Msk (0x1U << TSC_IOGCSR_G2E_Pos) /*!< 0x00000002 */ | |
14697 #define TSC_IOGCSR_G2E TSC_IOGCSR_G2E_Msk /*!<Analog IO GROUP2 enable */ | |
14698 #define TSC_IOGCSR_G3E_Pos (2U) | |
14699 #define TSC_IOGCSR_G3E_Msk (0x1U << TSC_IOGCSR_G3E_Pos) /*!< 0x00000004 */ | |
14700 #define TSC_IOGCSR_G3E TSC_IOGCSR_G3E_Msk /*!<Analog IO GROUP3 enable */ | |
14701 #define TSC_IOGCSR_G4E_Pos (3U) | |
14702 #define TSC_IOGCSR_G4E_Msk (0x1U << TSC_IOGCSR_G4E_Pos) /*!< 0x00000008 */ | |
14703 #define TSC_IOGCSR_G4E TSC_IOGCSR_G4E_Msk /*!<Analog IO GROUP4 enable */ | |
14704 #define TSC_IOGCSR_G5E_Pos (4U) | |
14705 #define TSC_IOGCSR_G5E_Msk (0x1U << TSC_IOGCSR_G5E_Pos) /*!< 0x00000010 */ | |
14706 #define TSC_IOGCSR_G5E TSC_IOGCSR_G5E_Msk /*!<Analog IO GROUP5 enable */ | |
14707 #define TSC_IOGCSR_G6E_Pos (5U) | |
14708 #define TSC_IOGCSR_G6E_Msk (0x1U << TSC_IOGCSR_G6E_Pos) /*!< 0x00000020 */ | |
14709 #define TSC_IOGCSR_G6E TSC_IOGCSR_G6E_Msk /*!<Analog IO GROUP6 enable */ | |
14710 #define TSC_IOGCSR_G7E_Pos (6U) | |
14711 #define TSC_IOGCSR_G7E_Msk (0x1U << TSC_IOGCSR_G7E_Pos) /*!< 0x00000040 */ | |
14712 #define TSC_IOGCSR_G7E TSC_IOGCSR_G7E_Msk /*!<Analog IO GROUP7 enable */ | |
14713 #define TSC_IOGCSR_G1S_Pos (16U) | |
14714 #define TSC_IOGCSR_G1S_Msk (0x1U << TSC_IOGCSR_G1S_Pos) /*!< 0x00010000 */ | |
14715 #define TSC_IOGCSR_G1S TSC_IOGCSR_G1S_Msk /*!<Analog IO GROUP1 status */ | |
14716 #define TSC_IOGCSR_G2S_Pos (17U) | |
14717 #define TSC_IOGCSR_G2S_Msk (0x1U << TSC_IOGCSR_G2S_Pos) /*!< 0x00020000 */ | |
14718 #define TSC_IOGCSR_G2S TSC_IOGCSR_G2S_Msk /*!<Analog IO GROUP2 status */ | |
14719 #define TSC_IOGCSR_G3S_Pos (18U) | |
14720 #define TSC_IOGCSR_G3S_Msk (0x1U << TSC_IOGCSR_G3S_Pos) /*!< 0x00040000 */ | |
14721 #define TSC_IOGCSR_G3S TSC_IOGCSR_G3S_Msk /*!<Analog IO GROUP3 status */ | |
14722 #define TSC_IOGCSR_G4S_Pos (19U) | |
14723 #define TSC_IOGCSR_G4S_Msk (0x1U << TSC_IOGCSR_G4S_Pos) /*!< 0x00080000 */ | |
14724 #define TSC_IOGCSR_G4S TSC_IOGCSR_G4S_Msk /*!<Analog IO GROUP4 status */ | |
14725 #define TSC_IOGCSR_G5S_Pos (20U) | |
14726 #define TSC_IOGCSR_G5S_Msk (0x1U << TSC_IOGCSR_G5S_Pos) /*!< 0x00100000 */ | |
14727 #define TSC_IOGCSR_G5S TSC_IOGCSR_G5S_Msk /*!<Analog IO GROUP5 status */ | |
14728 #define TSC_IOGCSR_G6S_Pos (21U) | |
14729 #define TSC_IOGCSR_G6S_Msk (0x1U << TSC_IOGCSR_G6S_Pos) /*!< 0x00200000 */ | |
14730 #define TSC_IOGCSR_G6S TSC_IOGCSR_G6S_Msk /*!<Analog IO GROUP6 status */ | |
14731 #define TSC_IOGCSR_G7S_Pos (22U) | |
14732 #define TSC_IOGCSR_G7S_Msk (0x1U << TSC_IOGCSR_G7S_Pos) /*!< 0x00400000 */ | |
14733 #define TSC_IOGCSR_G7S TSC_IOGCSR_G7S_Msk /*!<Analog IO GROUP7 status */ | |
14734 | |
14735 /******************* Bit definition for TSC_IOGXCR register *****************/ | |
14736 #define TSC_IOGXCR_CNT_Pos (0U) | |
14737 #define TSC_IOGXCR_CNT_Msk (0x3FFFU << TSC_IOGXCR_CNT_Pos) /*!< 0x00003FFF */ | |
14738 #define TSC_IOGXCR_CNT TSC_IOGXCR_CNT_Msk /*!<CNT[13:0] bits (Counter value) */ | |
14739 | |
14740 /******************************************************************************/ | |
14741 /* */ | |
14742 /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */ | |
14743 /* */ | |
14744 /******************************************************************************/ | |
14745 | |
14746 /* | |
14747 * @brief Specific device feature definitions (not present on all devices in the STM32L4 serie) | |
14748 */ | |
14749 | |
14750 /* Support of TCBGT feature : Supported from USART IP version c7amba_sci3 v1.3 */ | |
14751 #define USART_TCBGT_SUPPORT | |
14752 | |
14753 /****************** Bit definition for USART_CR1 register *******************/ | |
14754 #define USART_CR1_UE_Pos (0U) | |
14755 #define USART_CR1_UE_Msk (0x1U << USART_CR1_UE_Pos) /*!< 0x00000001 */ | |
14756 #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */ | |
14757 #define USART_CR1_UESM_Pos (1U) | |
14758 #define USART_CR1_UESM_Msk (0x1U << USART_CR1_UESM_Pos) /*!< 0x00000002 */ | |
14759 #define USART_CR1_UESM USART_CR1_UESM_Msk /*!< USART Enable in STOP Mode */ | |
14760 #define USART_CR1_RE_Pos (2U) | |
14761 #define USART_CR1_RE_Msk (0x1U << USART_CR1_RE_Pos) /*!< 0x00000004 */ | |
14762 #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */ | |
14763 #define USART_CR1_TE_Pos (3U) | |
14764 #define USART_CR1_TE_Msk (0x1U << USART_CR1_TE_Pos) /*!< 0x00000008 */ | |
14765 #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */ | |
14766 #define USART_CR1_IDLEIE_Pos (4U) | |
14767 #define USART_CR1_IDLEIE_Msk (0x1U << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */ | |
14768 #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */ | |
14769 #define USART_CR1_RXNEIE_Pos (5U) | |
14770 #define USART_CR1_RXNEIE_Msk (0x1U << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */ | |
14771 #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */ | |
14772 #define USART_CR1_TCIE_Pos (6U) | |
14773 #define USART_CR1_TCIE_Msk (0x1U << USART_CR1_TCIE_Pos) /*!< 0x00000040 */ | |
14774 #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */ | |
14775 #define USART_CR1_TXEIE_Pos (7U) | |
14776 #define USART_CR1_TXEIE_Msk (0x1U << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */ | |
14777 #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< TXE Interrupt Enable */ | |
14778 #define USART_CR1_PEIE_Pos (8U) | |
14779 #define USART_CR1_PEIE_Msk (0x1U << USART_CR1_PEIE_Pos) /*!< 0x00000100 */ | |
14780 #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */ | |
14781 #define USART_CR1_PS_Pos (9U) | |
14782 #define USART_CR1_PS_Msk (0x1U << USART_CR1_PS_Pos) /*!< 0x00000200 */ | |
14783 #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */ | |
14784 #define USART_CR1_PCE_Pos (10U) | |
14785 #define USART_CR1_PCE_Msk (0x1U << USART_CR1_PCE_Pos) /*!< 0x00000400 */ | |
14786 #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */ | |
14787 #define USART_CR1_WAKE_Pos (11U) | |
14788 #define USART_CR1_WAKE_Msk (0x1U << USART_CR1_WAKE_Pos) /*!< 0x00000800 */ | |
14789 #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Receiver Wakeup method */ | |
14790 #define USART_CR1_M_Pos (12U) | |
14791 #define USART_CR1_M_Msk (0x10001U << USART_CR1_M_Pos) /*!< 0x10001000 */ | |
14792 #define USART_CR1_M USART_CR1_M_Msk /*!< Word length */ | |
14793 #define USART_CR1_M0_Pos (12U) | |
14794 #define USART_CR1_M0_Msk (0x1U << USART_CR1_M0_Pos) /*!< 0x00001000 */ | |
14795 #define USART_CR1_M0 USART_CR1_M0_Msk /*!< Word length - Bit 0 */ | |
14796 #define USART_CR1_MME_Pos (13U) | |
14797 #define USART_CR1_MME_Msk (0x1U << USART_CR1_MME_Pos) /*!< 0x00002000 */ | |
14798 #define USART_CR1_MME USART_CR1_MME_Msk /*!< Mute Mode Enable */ | |
14799 #define USART_CR1_CMIE_Pos (14U) | |
14800 #define USART_CR1_CMIE_Msk (0x1U << USART_CR1_CMIE_Pos) /*!< 0x00004000 */ | |
14801 #define USART_CR1_CMIE USART_CR1_CMIE_Msk /*!< Character match interrupt enable */ | |
14802 #define USART_CR1_OVER8_Pos (15U) | |
14803 #define USART_CR1_OVER8_Msk (0x1U << USART_CR1_OVER8_Pos) /*!< 0x00008000 */ | |
14804 #define USART_CR1_OVER8 USART_CR1_OVER8_Msk /*!< Oversampling by 8-bit or 16-bit mode */ | |
14805 #define USART_CR1_DEDT_Pos (16U) | |
14806 #define USART_CR1_DEDT_Msk (0x1FU << USART_CR1_DEDT_Pos) /*!< 0x001F0000 */ | |
14807 #define USART_CR1_DEDT USART_CR1_DEDT_Msk /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */ | |
14808 #define USART_CR1_DEDT_0 (0x01U << USART_CR1_DEDT_Pos) /*!< 0x00010000 */ | |
14809 #define USART_CR1_DEDT_1 (0x02U << USART_CR1_DEDT_Pos) /*!< 0x00020000 */ | |
14810 #define USART_CR1_DEDT_2 (0x04U << USART_CR1_DEDT_Pos) /*!< 0x00040000 */ | |
14811 #define USART_CR1_DEDT_3 (0x08U << USART_CR1_DEDT_Pos) /*!< 0x00080000 */ | |
14812 #define USART_CR1_DEDT_4 (0x10U << USART_CR1_DEDT_Pos) /*!< 0x00100000 */ | |
14813 #define USART_CR1_DEAT_Pos (21U) | |
14814 #define USART_CR1_DEAT_Msk (0x1FU << USART_CR1_DEAT_Pos) /*!< 0x03E00000 */ | |
14815 #define USART_CR1_DEAT USART_CR1_DEAT_Msk /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */ | |
14816 #define USART_CR1_DEAT_0 (0x01U << USART_CR1_DEAT_Pos) /*!< 0x00200000 */ | |
14817 #define USART_CR1_DEAT_1 (0x02U << USART_CR1_DEAT_Pos) /*!< 0x00400000 */ | |
14818 #define USART_CR1_DEAT_2 (0x04U << USART_CR1_DEAT_Pos) /*!< 0x00800000 */ | |
14819 #define USART_CR1_DEAT_3 (0x08U << USART_CR1_DEAT_Pos) /*!< 0x01000000 */ | |
14820 #define USART_CR1_DEAT_4 (0x10U << USART_CR1_DEAT_Pos) /*!< 0x02000000 */ | |
14821 #define USART_CR1_RTOIE_Pos (26U) | |
14822 #define USART_CR1_RTOIE_Msk (0x1U << USART_CR1_RTOIE_Pos) /*!< 0x04000000 */ | |
14823 #define USART_CR1_RTOIE USART_CR1_RTOIE_Msk /*!< Receive Time Out interrupt enable */ | |
14824 #define USART_CR1_EOBIE_Pos (27U) | |
14825 #define USART_CR1_EOBIE_Msk (0x1U << USART_CR1_EOBIE_Pos) /*!< 0x08000000 */ | |
14826 #define USART_CR1_EOBIE USART_CR1_EOBIE_Msk /*!< End of Block interrupt enable */ | |
14827 #define USART_CR1_M1_Pos (28U) | |
14828 #define USART_CR1_M1_Msk (0x1U << USART_CR1_M1_Pos) /*!< 0x10000000 */ | |
14829 #define USART_CR1_M1 USART_CR1_M1_Msk /*!< Word length - Bit 1 */ | |
14830 | |
14831 /****************** Bit definition for USART_CR2 register *******************/ | |
14832 #define USART_CR2_ADDM7_Pos (4U) | |
14833 #define USART_CR2_ADDM7_Msk (0x1U << USART_CR2_ADDM7_Pos) /*!< 0x00000010 */ | |
14834 #define USART_CR2_ADDM7 USART_CR2_ADDM7_Msk /*!< 7-bit or 4-bit Address Detection */ | |
14835 #define USART_CR2_LBDL_Pos (5U) | |
14836 #define USART_CR2_LBDL_Msk (0x1U << USART_CR2_LBDL_Pos) /*!< 0x00000020 */ | |
14837 #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */ | |
14838 #define USART_CR2_LBDIE_Pos (6U) | |
14839 #define USART_CR2_LBDIE_Msk (0x1U << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */ | |
14840 #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */ | |
14841 #define USART_CR2_LBCL_Pos (8U) | |
14842 #define USART_CR2_LBCL_Msk (0x1U << USART_CR2_LBCL_Pos) /*!< 0x00000100 */ | |
14843 #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */ | |
14844 #define USART_CR2_CPHA_Pos (9U) | |
14845 #define USART_CR2_CPHA_Msk (0x1U << USART_CR2_CPHA_Pos) /*!< 0x00000200 */ | |
14846 #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */ | |
14847 #define USART_CR2_CPOL_Pos (10U) | |
14848 #define USART_CR2_CPOL_Msk (0x1U << USART_CR2_CPOL_Pos) /*!< 0x00000400 */ | |
14849 #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */ | |
14850 #define USART_CR2_CLKEN_Pos (11U) | |
14851 #define USART_CR2_CLKEN_Msk (0x1U << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */ | |
14852 #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */ | |
14853 #define USART_CR2_STOP_Pos (12U) | |
14854 #define USART_CR2_STOP_Msk (0x3U << USART_CR2_STOP_Pos) /*!< 0x00003000 */ | |
14855 #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */ | |
14856 #define USART_CR2_STOP_0 (0x1U << USART_CR2_STOP_Pos) /*!< 0x00001000 */ | |
14857 #define USART_CR2_STOP_1 (0x2U << USART_CR2_STOP_Pos) /*!< 0x00002000 */ | |
14858 #define USART_CR2_LINEN_Pos (14U) | |
14859 #define USART_CR2_LINEN_Msk (0x1U << USART_CR2_LINEN_Pos) /*!< 0x00004000 */ | |
14860 #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */ | |
14861 #define USART_CR2_SWAP_Pos (15U) | |
14862 #define USART_CR2_SWAP_Msk (0x1U << USART_CR2_SWAP_Pos) /*!< 0x00008000 */ | |
14863 #define USART_CR2_SWAP USART_CR2_SWAP_Msk /*!< SWAP TX/RX pins */ | |
14864 #define USART_CR2_RXINV_Pos (16U) | |
14865 #define USART_CR2_RXINV_Msk (0x1U << USART_CR2_RXINV_Pos) /*!< 0x00010000 */ | |
14866 #define USART_CR2_RXINV USART_CR2_RXINV_Msk /*!< RX pin active level inversion */ | |
14867 #define USART_CR2_TXINV_Pos (17U) | |
14868 #define USART_CR2_TXINV_Msk (0x1U << USART_CR2_TXINV_Pos) /*!< 0x00020000 */ | |
14869 #define USART_CR2_TXINV USART_CR2_TXINV_Msk /*!< TX pin active level inversion */ | |
14870 #define USART_CR2_DATAINV_Pos (18U) | |
14871 #define USART_CR2_DATAINV_Msk (0x1U << USART_CR2_DATAINV_Pos) /*!< 0x00040000 */ | |
14872 #define USART_CR2_DATAINV USART_CR2_DATAINV_Msk /*!< Binary data inversion */ | |
14873 #define USART_CR2_MSBFIRST_Pos (19U) | |
14874 #define USART_CR2_MSBFIRST_Msk (0x1U << USART_CR2_MSBFIRST_Pos) /*!< 0x00080000 */ | |
14875 #define USART_CR2_MSBFIRST USART_CR2_MSBFIRST_Msk /*!< Most Significant Bit First */ | |
14876 #define USART_CR2_ABREN_Pos (20U) | |
14877 #define USART_CR2_ABREN_Msk (0x1U << USART_CR2_ABREN_Pos) /*!< 0x00100000 */ | |
14878 #define USART_CR2_ABREN USART_CR2_ABREN_Msk /*!< Auto Baud-Rate Enable*/ | |
14879 #define USART_CR2_ABRMODE_Pos (21U) | |
14880 #define USART_CR2_ABRMODE_Msk (0x3U << USART_CR2_ABRMODE_Pos) /*!< 0x00600000 */ | |
14881 #define USART_CR2_ABRMODE USART_CR2_ABRMODE_Msk /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */ | |
14882 #define USART_CR2_ABRMODE_0 (0x1U << USART_CR2_ABRMODE_Pos) /*!< 0x00200000 */ | |
14883 #define USART_CR2_ABRMODE_1 (0x2U << USART_CR2_ABRMODE_Pos) /*!< 0x00400000 */ | |
14884 #define USART_CR2_RTOEN_Pos (23U) | |
14885 #define USART_CR2_RTOEN_Msk (0x1U << USART_CR2_RTOEN_Pos) /*!< 0x00800000 */ | |
14886 #define USART_CR2_RTOEN USART_CR2_RTOEN_Msk /*!< Receiver Time-Out enable */ | |
14887 #define USART_CR2_ADD_Pos (24U) | |
14888 #define USART_CR2_ADD_Msk (0xFFU << USART_CR2_ADD_Pos) /*!< 0xFF000000 */ | |
14889 #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */ | |
14890 | |
14891 /****************** Bit definition for USART_CR3 register *******************/ | |
14892 #define USART_CR3_EIE_Pos (0U) | |
14893 #define USART_CR3_EIE_Msk (0x1U << USART_CR3_EIE_Pos) /*!< 0x00000001 */ | |
14894 #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */ | |
14895 #define USART_CR3_IREN_Pos (1U) | |
14896 #define USART_CR3_IREN_Msk (0x1U << USART_CR3_IREN_Pos) /*!< 0x00000002 */ | |
14897 #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */ | |
14898 #define USART_CR3_IRLP_Pos (2U) | |
14899 #define USART_CR3_IRLP_Msk (0x1U << USART_CR3_IRLP_Pos) /*!< 0x00000004 */ | |
14900 #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */ | |
14901 #define USART_CR3_HDSEL_Pos (3U) | |
14902 #define USART_CR3_HDSEL_Msk (0x1U << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */ | |
14903 #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */ | |
14904 #define USART_CR3_NACK_Pos (4U) | |
14905 #define USART_CR3_NACK_Msk (0x1U << USART_CR3_NACK_Pos) /*!< 0x00000010 */ | |
14906 #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< SmartCard NACK enable */ | |
14907 #define USART_CR3_SCEN_Pos (5U) | |
14908 #define USART_CR3_SCEN_Msk (0x1U << USART_CR3_SCEN_Pos) /*!< 0x00000020 */ | |
14909 #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< SmartCard mode enable */ | |
14910 #define USART_CR3_DMAR_Pos (6U) | |
14911 #define USART_CR3_DMAR_Msk (0x1U << USART_CR3_DMAR_Pos) /*!< 0x00000040 */ | |
14912 #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */ | |
14913 #define USART_CR3_DMAT_Pos (7U) | |
14914 #define USART_CR3_DMAT_Msk (0x1U << USART_CR3_DMAT_Pos) /*!< 0x00000080 */ | |
14915 #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */ | |
14916 #define USART_CR3_RTSE_Pos (8U) | |
14917 #define USART_CR3_RTSE_Msk (0x1U << USART_CR3_RTSE_Pos) /*!< 0x00000100 */ | |
14918 #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */ | |
14919 #define USART_CR3_CTSE_Pos (9U) | |
14920 #define USART_CR3_CTSE_Msk (0x1U << USART_CR3_CTSE_Pos) /*!< 0x00000200 */ | |
14921 #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */ | |
14922 #define USART_CR3_CTSIE_Pos (10U) | |
14923 #define USART_CR3_CTSIE_Msk (0x1U << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */ | |
14924 #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */ | |
14925 #define USART_CR3_ONEBIT_Pos (11U) | |
14926 #define USART_CR3_ONEBIT_Msk (0x1U << USART_CR3_ONEBIT_Pos) /*!< 0x00000800 */ | |
14927 #define USART_CR3_ONEBIT USART_CR3_ONEBIT_Msk /*!< One sample bit method enable */ | |
14928 #define USART_CR3_OVRDIS_Pos (12U) | |
14929 #define USART_CR3_OVRDIS_Msk (0x1U << USART_CR3_OVRDIS_Pos) /*!< 0x00001000 */ | |
14930 #define USART_CR3_OVRDIS USART_CR3_OVRDIS_Msk /*!< Overrun Disable */ | |
14931 #define USART_CR3_DDRE_Pos (13U) | |
14932 #define USART_CR3_DDRE_Msk (0x1U << USART_CR3_DDRE_Pos) /*!< 0x00002000 */ | |
14933 #define USART_CR3_DDRE USART_CR3_DDRE_Msk /*!< DMA Disable on Reception Error */ | |
14934 #define USART_CR3_DEM_Pos (14U) | |
14935 #define USART_CR3_DEM_Msk (0x1U << USART_CR3_DEM_Pos) /*!< 0x00004000 */ | |
14936 #define USART_CR3_DEM USART_CR3_DEM_Msk /*!< Driver Enable Mode */ | |
14937 #define USART_CR3_DEP_Pos (15U) | |
14938 #define USART_CR3_DEP_Msk (0x1U << USART_CR3_DEP_Pos) /*!< 0x00008000 */ | |
14939 #define USART_CR3_DEP USART_CR3_DEP_Msk /*!< Driver Enable Polarity Selection */ | |
14940 #define USART_CR3_SCARCNT_Pos (17U) | |
14941 #define USART_CR3_SCARCNT_Msk (0x7U << USART_CR3_SCARCNT_Pos) /*!< 0x000E0000 */ | |
14942 #define USART_CR3_SCARCNT USART_CR3_SCARCNT_Msk /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */ | |
14943 #define USART_CR3_SCARCNT_0 (0x1U << USART_CR3_SCARCNT_Pos) /*!< 0x00020000 */ | |
14944 #define USART_CR3_SCARCNT_1 (0x2U << USART_CR3_SCARCNT_Pos) /*!< 0x00040000 */ | |
14945 #define USART_CR3_SCARCNT_2 (0x4U << USART_CR3_SCARCNT_Pos) /*!< 0x00080000 */ | |
14946 #define USART_CR3_WUS_Pos (20U) | |
14947 #define USART_CR3_WUS_Msk (0x3U << USART_CR3_WUS_Pos) /*!< 0x00300000 */ | |
14948 #define USART_CR3_WUS USART_CR3_WUS_Msk /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */ | |
14949 #define USART_CR3_WUS_0 (0x1U << USART_CR3_WUS_Pos) /*!< 0x00100000 */ | |
14950 #define USART_CR3_WUS_1 (0x2U << USART_CR3_WUS_Pos) /*!< 0x00200000 */ | |
14951 #define USART_CR3_WUFIE_Pos (22U) | |
14952 #define USART_CR3_WUFIE_Msk (0x1U << USART_CR3_WUFIE_Pos) /*!< 0x00400000 */ | |
14953 #define USART_CR3_WUFIE USART_CR3_WUFIE_Msk /*!< Wake Up Interrupt Enable */ | |
14954 #define USART_CR3_TCBGTIE_Pos (24U) | |
14955 #define USART_CR3_TCBGTIE_Msk (0x1U << USART_CR3_TCBGTIE_Pos) /*!< 0x01000000 */ | |
14956 #define USART_CR3_TCBGTIE USART_CR3_TCBGTIE_Msk /*!< Transmission Complete Before Guard Time Interrupt Enable */ | |
14957 | |
14958 /****************** Bit definition for USART_BRR register *******************/ | |
14959 #define USART_BRR_DIV_FRACTION_Pos (0U) | |
14960 #define USART_BRR_DIV_FRACTION_Msk (0xFU << USART_BRR_DIV_FRACTION_Pos) /*!< 0x0000000F */ | |
14961 #define USART_BRR_DIV_FRACTION USART_BRR_DIV_FRACTION_Msk /*!< Fraction of USARTDIV */ | |
14962 #define USART_BRR_DIV_MANTISSA_Pos (4U) | |
14963 #define USART_BRR_DIV_MANTISSA_Msk (0xFFFU << USART_BRR_DIV_MANTISSA_Pos) /*!< 0x0000FFF0 */ | |
14964 #define USART_BRR_DIV_MANTISSA USART_BRR_DIV_MANTISSA_Msk /*!< Mantissa of USARTDIV */ | |
14965 | |
14966 /****************** Bit definition for USART_GTPR register ******************/ | |
14967 #define USART_GTPR_PSC_Pos (0U) | |
14968 #define USART_GTPR_PSC_Msk (0xFFU << USART_GTPR_PSC_Pos) /*!< 0x000000FF */ | |
14969 #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */ | |
14970 #define USART_GTPR_GT_Pos (8U) | |
14971 #define USART_GTPR_GT_Msk (0xFFU << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */ | |
14972 #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< GT[7:0] bits (Guard time value) */ | |
14973 | |
14974 | |
14975 /******************* Bit definition for USART_RTOR register *****************/ | |
14976 #define USART_RTOR_RTO_Pos (0U) | |
14977 #define USART_RTOR_RTO_Msk (0xFFFFFFU << USART_RTOR_RTO_Pos) /*!< 0x00FFFFFF */ | |
14978 #define USART_RTOR_RTO USART_RTOR_RTO_Msk /*!< Receiver Time Out Value */ | |
14979 #define USART_RTOR_BLEN_Pos (24U) | |
14980 #define USART_RTOR_BLEN_Msk (0xFFU << USART_RTOR_BLEN_Pos) /*!< 0xFF000000 */ | |
14981 #define USART_RTOR_BLEN USART_RTOR_BLEN_Msk /*!< Block Length */ | |
14982 | |
14983 /******************* Bit definition for USART_RQR register ******************/ | |
14984 #define USART_RQR_ABRRQ_Pos (0U) | |
14985 #define USART_RQR_ABRRQ_Msk (0x1U << USART_RQR_ABRRQ_Pos) /*!< 0x00000001 */ | |
14986 #define USART_RQR_ABRRQ USART_RQR_ABRRQ_Msk /*!< Auto-Baud Rate Request */ | |
14987 #define USART_RQR_SBKRQ_Pos (1U) | |
14988 #define USART_RQR_SBKRQ_Msk (0x1U << USART_RQR_SBKRQ_Pos) /*!< 0x00000002 */ | |
14989 #define USART_RQR_SBKRQ USART_RQR_SBKRQ_Msk /*!< Send Break Request */ | |
14990 #define USART_RQR_MMRQ_Pos (2U) | |
14991 #define USART_RQR_MMRQ_Msk (0x1U << USART_RQR_MMRQ_Pos) /*!< 0x00000004 */ | |
14992 #define USART_RQR_MMRQ USART_RQR_MMRQ_Msk /*!< Mute Mode Request */ | |
14993 #define USART_RQR_RXFRQ_Pos (3U) | |
14994 #define USART_RQR_RXFRQ_Msk (0x1U << USART_RQR_RXFRQ_Pos) /*!< 0x00000008 */ | |
14995 #define USART_RQR_RXFRQ USART_RQR_RXFRQ_Msk /*!< Receive Data flush Request */ | |
14996 #define USART_RQR_TXFRQ_Pos (4U) | |
14997 #define USART_RQR_TXFRQ_Msk (0x1U << USART_RQR_TXFRQ_Pos) /*!< 0x00000010 */ | |
14998 #define USART_RQR_TXFRQ USART_RQR_TXFRQ_Msk /*!< Transmit data flush Request */ | |
14999 | |
15000 /******************* Bit definition for USART_ISR register ******************/ | |
15001 #define USART_ISR_PE_Pos (0U) | |
15002 #define USART_ISR_PE_Msk (0x1U << USART_ISR_PE_Pos) /*!< 0x00000001 */ | |
15003 #define USART_ISR_PE USART_ISR_PE_Msk /*!< Parity Error */ | |
15004 #define USART_ISR_FE_Pos (1U) | |
15005 #define USART_ISR_FE_Msk (0x1U << USART_ISR_FE_Pos) /*!< 0x00000002 */ | |
15006 #define USART_ISR_FE USART_ISR_FE_Msk /*!< Framing Error */ | |
15007 #define USART_ISR_NE_Pos (2U) | |
15008 #define USART_ISR_NE_Msk (0x1U << USART_ISR_NE_Pos) /*!< 0x00000004 */ | |
15009 #define USART_ISR_NE USART_ISR_NE_Msk /*!< Noise detected Flag */ | |
15010 #define USART_ISR_ORE_Pos (3U) | |
15011 #define USART_ISR_ORE_Msk (0x1U << USART_ISR_ORE_Pos) /*!< 0x00000008 */ | |
15012 #define USART_ISR_ORE USART_ISR_ORE_Msk /*!< OverRun Error */ | |
15013 #define USART_ISR_IDLE_Pos (4U) | |
15014 #define USART_ISR_IDLE_Msk (0x1U << USART_ISR_IDLE_Pos) /*!< 0x00000010 */ | |
15015 #define USART_ISR_IDLE USART_ISR_IDLE_Msk /*!< IDLE line detected */ | |
15016 #define USART_ISR_RXNE_Pos (5U) | |
15017 #define USART_ISR_RXNE_Msk (0x1U << USART_ISR_RXNE_Pos) /*!< 0x00000020 */ | |
15018 #define USART_ISR_RXNE USART_ISR_RXNE_Msk /*!< Read Data Register Not Empty */ | |
15019 #define USART_ISR_TC_Pos (6U) | |
15020 #define USART_ISR_TC_Msk (0x1U << USART_ISR_TC_Pos) /*!< 0x00000040 */ | |
15021 #define USART_ISR_TC USART_ISR_TC_Msk /*!< Transmission Complete */ | |
15022 #define USART_ISR_TXE_Pos (7U) | |
15023 #define USART_ISR_TXE_Msk (0x1U << USART_ISR_TXE_Pos) /*!< 0x00000080 */ | |
15024 #define USART_ISR_TXE USART_ISR_TXE_Msk /*!< Transmit Data Register Empty */ | |
15025 #define USART_ISR_LBDF_Pos (8U) | |
15026 #define USART_ISR_LBDF_Msk (0x1U << USART_ISR_LBDF_Pos) /*!< 0x00000100 */ | |
15027 #define USART_ISR_LBDF USART_ISR_LBDF_Msk /*!< LIN Break Detection Flag */ | |
15028 #define USART_ISR_CTSIF_Pos (9U) | |
15029 #define USART_ISR_CTSIF_Msk (0x1U << USART_ISR_CTSIF_Pos) /*!< 0x00000200 */ | |
15030 #define USART_ISR_CTSIF USART_ISR_CTSIF_Msk /*!< CTS interrupt flag */ | |
15031 #define USART_ISR_CTS_Pos (10U) | |
15032 #define USART_ISR_CTS_Msk (0x1U << USART_ISR_CTS_Pos) /*!< 0x00000400 */ | |
15033 #define USART_ISR_CTS USART_ISR_CTS_Msk /*!< CTS flag */ | |
15034 #define USART_ISR_RTOF_Pos (11U) | |
15035 #define USART_ISR_RTOF_Msk (0x1U << USART_ISR_RTOF_Pos) /*!< 0x00000800 */ | |
15036 #define USART_ISR_RTOF USART_ISR_RTOF_Msk /*!< Receiver Time Out */ | |
15037 #define USART_ISR_EOBF_Pos (12U) | |
15038 #define USART_ISR_EOBF_Msk (0x1U << USART_ISR_EOBF_Pos) /*!< 0x00001000 */ | |
15039 #define USART_ISR_EOBF USART_ISR_EOBF_Msk /*!< End Of Block Flag */ | |
15040 #define USART_ISR_ABRE_Pos (14U) | |
15041 #define USART_ISR_ABRE_Msk (0x1U << USART_ISR_ABRE_Pos) /*!< 0x00004000 */ | |
15042 #define USART_ISR_ABRE USART_ISR_ABRE_Msk /*!< Auto-Baud Rate Error */ | |
15043 #define USART_ISR_ABRF_Pos (15U) | |
15044 #define USART_ISR_ABRF_Msk (0x1U << USART_ISR_ABRF_Pos) /*!< 0x00008000 */ | |
15045 #define USART_ISR_ABRF USART_ISR_ABRF_Msk /*!< Auto-Baud Rate Flag */ | |
15046 #define USART_ISR_BUSY_Pos (16U) | |
15047 #define USART_ISR_BUSY_Msk (0x1U << USART_ISR_BUSY_Pos) /*!< 0x00010000 */ | |
15048 #define USART_ISR_BUSY USART_ISR_BUSY_Msk /*!< Busy Flag */ | |
15049 #define USART_ISR_CMF_Pos (17U) | |
15050 #define USART_ISR_CMF_Msk (0x1U << USART_ISR_CMF_Pos) /*!< 0x00020000 */ | |
15051 #define USART_ISR_CMF USART_ISR_CMF_Msk /*!< Character Match Flag */ | |
15052 #define USART_ISR_SBKF_Pos (18U) | |
15053 #define USART_ISR_SBKF_Msk (0x1U << USART_ISR_SBKF_Pos) /*!< 0x00040000 */ | |
15054 #define USART_ISR_SBKF USART_ISR_SBKF_Msk /*!< Send Break Flag */ | |
15055 #define USART_ISR_RWU_Pos (19U) | |
15056 #define USART_ISR_RWU_Msk (0x1U << USART_ISR_RWU_Pos) /*!< 0x00080000 */ | |
15057 #define USART_ISR_RWU USART_ISR_RWU_Msk /*!< Receive Wake Up from mute mode Flag */ | |
15058 #define USART_ISR_WUF_Pos (20U) | |
15059 #define USART_ISR_WUF_Msk (0x1U << USART_ISR_WUF_Pos) /*!< 0x00100000 */ | |
15060 #define USART_ISR_WUF USART_ISR_WUF_Msk /*!< Wake Up from stop mode Flag */ | |
15061 #define USART_ISR_TEACK_Pos (21U) | |
15062 #define USART_ISR_TEACK_Msk (0x1U << USART_ISR_TEACK_Pos) /*!< 0x00200000 */ | |
15063 #define USART_ISR_TEACK USART_ISR_TEACK_Msk /*!< Transmit Enable Acknowledge Flag */ | |
15064 #define USART_ISR_REACK_Pos (22U) | |
15065 #define USART_ISR_REACK_Msk (0x1U << USART_ISR_REACK_Pos) /*!< 0x00400000 */ | |
15066 #define USART_ISR_REACK USART_ISR_REACK_Msk /*!< Receive Enable Acknowledge Flag */ | |
15067 #define USART_ISR_TCBGT_Pos (25U) | |
15068 #define USART_ISR_TCBGT_Msk (0x1U << USART_ISR_TCBGT_Pos) /*!< 0x02000000 */ | |
15069 #define USART_ISR_TCBGT USART_ISR_TCBGT_Msk /*!< Transmission Complete Before Guard Time Completion Flag */ | |
15070 | |
15071 /******************* Bit definition for USART_ICR register ******************/ | |
15072 #define USART_ICR_PECF_Pos (0U) | |
15073 #define USART_ICR_PECF_Msk (0x1U << USART_ICR_PECF_Pos) /*!< 0x00000001 */ | |
15074 #define USART_ICR_PECF USART_ICR_PECF_Msk /*!< Parity Error Clear Flag */ | |
15075 #define USART_ICR_FECF_Pos (1U) | |
15076 #define USART_ICR_FECF_Msk (0x1U << USART_ICR_FECF_Pos) /*!< 0x00000002 */ | |
15077 #define USART_ICR_FECF USART_ICR_FECF_Msk /*!< Framing Error Clear Flag */ | |
15078 #define USART_ICR_NCF_Pos (2U) | |
15079 #define USART_ICR_NCF_Msk (0x1U << USART_ICR_NCF_Pos) /*!< 0x00000004 */ | |
15080 #define USART_ICR_NCF USART_ICR_NCF_Msk /*!< Noise detected Clear Flag */ | |
15081 #define USART_ICR_ORECF_Pos (3U) | |
15082 #define USART_ICR_ORECF_Msk (0x1U << USART_ICR_ORECF_Pos) /*!< 0x00000008 */ | |
15083 #define USART_ICR_ORECF USART_ICR_ORECF_Msk /*!< OverRun Error Clear Flag */ | |
15084 #define USART_ICR_IDLECF_Pos (4U) | |
15085 #define USART_ICR_IDLECF_Msk (0x1U << USART_ICR_IDLECF_Pos) /*!< 0x00000010 */ | |
15086 #define USART_ICR_IDLECF USART_ICR_IDLECF_Msk /*!< IDLE line detected Clear Flag */ | |
15087 #define USART_ICR_TCCF_Pos (6U) | |
15088 #define USART_ICR_TCCF_Msk (0x1U << USART_ICR_TCCF_Pos) /*!< 0x00000040 */ | |
15089 #define USART_ICR_TCCF USART_ICR_TCCF_Msk /*!< Transmission Complete Clear Flag */ | |
15090 #define USART_ICR_TCBGTCF_Pos (7U) | |
15091 #define USART_ICR_TCBGTCF_Msk (0x1U << USART_ICR_TCBGTCF_Pos) /*!< 0x00000080 */ | |
15092 #define USART_ICR_TCBGTCF USART_ICR_TCBGTCF_Msk /*!< Transmission Complete Before Guard Time Clear Flag */ | |
15093 #define USART_ICR_LBDCF_Pos (8U) | |
15094 #define USART_ICR_LBDCF_Msk (0x1U << USART_ICR_LBDCF_Pos) /*!< 0x00000100 */ | |
15095 #define USART_ICR_LBDCF USART_ICR_LBDCF_Msk /*!< LIN Break Detection Clear Flag */ | |
15096 #define USART_ICR_CTSCF_Pos (9U) | |
15097 #define USART_ICR_CTSCF_Msk (0x1U << USART_ICR_CTSCF_Pos) /*!< 0x00000200 */ | |
15098 #define USART_ICR_CTSCF USART_ICR_CTSCF_Msk /*!< CTS Interrupt Clear Flag */ | |
15099 #define USART_ICR_RTOCF_Pos (11U) | |
15100 #define USART_ICR_RTOCF_Msk (0x1U << USART_ICR_RTOCF_Pos) /*!< 0x00000800 */ | |
15101 #define USART_ICR_RTOCF USART_ICR_RTOCF_Msk /*!< Receiver Time Out Clear Flag */ | |
15102 #define USART_ICR_EOBCF_Pos (12U) | |
15103 #define USART_ICR_EOBCF_Msk (0x1U << USART_ICR_EOBCF_Pos) /*!< 0x00001000 */ | |
15104 #define USART_ICR_EOBCF USART_ICR_EOBCF_Msk /*!< End Of Block Clear Flag */ | |
15105 #define USART_ICR_CMCF_Pos (17U) | |
15106 #define USART_ICR_CMCF_Msk (0x1U << USART_ICR_CMCF_Pos) /*!< 0x00020000 */ | |
15107 #define USART_ICR_CMCF USART_ICR_CMCF_Msk /*!< Character Match Clear Flag */ | |
15108 #define USART_ICR_WUCF_Pos (20U) | |
15109 #define USART_ICR_WUCF_Msk (0x1U << USART_ICR_WUCF_Pos) /*!< 0x00100000 */ | |
15110 #define USART_ICR_WUCF USART_ICR_WUCF_Msk /*!< Wake Up from stop mode Clear Flag */ | |
15111 | |
15112 /******************* Bit definition for USART_RDR register ******************/ | |
15113 #define USART_RDR_RDR_Pos (0U) | |
15114 #define USART_RDR_RDR_Msk (0x1FFU << USART_RDR_RDR_Pos) /*!< 0x000001FF */ | |
15115 #define USART_RDR_RDR USART_RDR_RDR_Msk /*!< RDR[8:0] bits (Receive Data value) */ | |
15116 | |
15117 /******************* Bit definition for USART_TDR register ******************/ | |
15118 #define USART_TDR_TDR_Pos (0U) | |
15119 #define USART_TDR_TDR_Msk (0x1FFU << USART_TDR_TDR_Pos) /*!< 0x000001FF */ | |
15120 #define USART_TDR_TDR USART_TDR_TDR_Msk /*!< TDR[8:0] bits (Transmit Data value) */ | |
15121 | |
15122 /******************************************************************************/ | |
15123 /* */ | |
15124 /* VREFBUF */ | |
15125 /* */ | |
15126 /******************************************************************************/ | |
15127 /******************* Bit definition for VREFBUF_CSR register ****************/ | |
15128 #define VREFBUF_CSR_ENVR_Pos (0U) | |
15129 #define VREFBUF_CSR_ENVR_Msk (0x1U << VREFBUF_CSR_ENVR_Pos) /*!< 0x00000001 */ | |
15130 #define VREFBUF_CSR_ENVR VREFBUF_CSR_ENVR_Msk /*!<Voltage reference buffer enable */ | |
15131 #define VREFBUF_CSR_HIZ_Pos (1U) | |
15132 #define VREFBUF_CSR_HIZ_Msk (0x1U << VREFBUF_CSR_HIZ_Pos) /*!< 0x00000002 */ | |
15133 #define VREFBUF_CSR_HIZ VREFBUF_CSR_HIZ_Msk /*!<High impedance mode */ | |
15134 #define VREFBUF_CSR_VRS_Pos (2U) | |
15135 #define VREFBUF_CSR_VRS_Msk (0x1U << VREFBUF_CSR_VRS_Pos) /*!< 0x00000004 */ | |
15136 #define VREFBUF_CSR_VRS VREFBUF_CSR_VRS_Msk /*!<Voltage reference scale */ | |
15137 #define VREFBUF_CSR_VRR_Pos (3U) | |
15138 #define VREFBUF_CSR_VRR_Msk (0x1U << VREFBUF_CSR_VRR_Pos) /*!< 0x00000008 */ | |
15139 #define VREFBUF_CSR_VRR VREFBUF_CSR_VRR_Msk /*!<Voltage reference buffer ready */ | |
15140 | |
15141 /******************* Bit definition for VREFBUF_CCR register ******************/ | |
15142 #define VREFBUF_CCR_TRIM_Pos (0U) | |
15143 #define VREFBUF_CCR_TRIM_Msk (0x3FU << VREFBUF_CCR_TRIM_Pos) /*!< 0x0000003F */ | |
15144 #define VREFBUF_CCR_TRIM VREFBUF_CCR_TRIM_Msk /*!<TRIM[5:0] bits (Trimming code) */ | |
15145 | |
15146 /******************************************************************************/ | |
15147 /* */ | |
15148 /* Window WATCHDOG */ | |
15149 /* */ | |
15150 /******************************************************************************/ | |
15151 /******************* Bit definition for WWDG_CR register ********************/ | |
15152 #define WWDG_CR_T_Pos (0U) | |
15153 #define WWDG_CR_T_Msk (0x7FU << WWDG_CR_T_Pos) /*!< 0x0000007F */ | |
15154 #define WWDG_CR_T WWDG_CR_T_Msk /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */ | |
15155 #define WWDG_CR_T_0 (0x01U << WWDG_CR_T_Pos) /*!< 0x00000001 */ | |
15156 #define WWDG_CR_T_1 (0x02U << WWDG_CR_T_Pos) /*!< 0x00000002 */ | |
15157 #define WWDG_CR_T_2 (0x04U << WWDG_CR_T_Pos) /*!< 0x00000004 */ | |
15158 #define WWDG_CR_T_3 (0x08U << WWDG_CR_T_Pos) /*!< 0x00000008 */ | |
15159 #define WWDG_CR_T_4 (0x10U << WWDG_CR_T_Pos) /*!< 0x00000010 */ | |
15160 #define WWDG_CR_T_5 (0x20U << WWDG_CR_T_Pos) /*!< 0x00000020 */ | |
15161 #define WWDG_CR_T_6 (0x40U << WWDG_CR_T_Pos) /*!< 0x00000040 */ | |
15162 | |
15163 #define WWDG_CR_WDGA_Pos (7U) | |
15164 #define WWDG_CR_WDGA_Msk (0x1U << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */ | |
15165 #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!<Activation bit */ | |
15166 | |
15167 /******************* Bit definition for WWDG_CFR register *******************/ | |
15168 #define WWDG_CFR_W_Pos (0U) | |
15169 #define WWDG_CFR_W_Msk (0x7FU << WWDG_CFR_W_Pos) /*!< 0x0000007F */ | |
15170 #define WWDG_CFR_W WWDG_CFR_W_Msk /*!<W[6:0] bits (7-bit window value) */ | |
15171 #define WWDG_CFR_W_0 (0x01U << WWDG_CFR_W_Pos) /*!< 0x00000001 */ | |
15172 #define WWDG_CFR_W_1 (0x02U << WWDG_CFR_W_Pos) /*!< 0x00000002 */ | |
15173 #define WWDG_CFR_W_2 (0x04U << WWDG_CFR_W_Pos) /*!< 0x00000004 */ | |
15174 #define WWDG_CFR_W_3 (0x08U << WWDG_CFR_W_Pos) /*!< 0x00000008 */ | |
15175 #define WWDG_CFR_W_4 (0x10U << WWDG_CFR_W_Pos) /*!< 0x00000010 */ | |
15176 #define WWDG_CFR_W_5 (0x20U << WWDG_CFR_W_Pos) /*!< 0x00000020 */ | |
15177 #define WWDG_CFR_W_6 (0x40U << WWDG_CFR_W_Pos) /*!< 0x00000040 */ | |
15178 | |
15179 #define WWDG_CFR_WDGTB_Pos (7U) | |
15180 #define WWDG_CFR_WDGTB_Msk (0x3U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000180 */ | |
15181 #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!<WDGTB[1:0] bits (Timer Base) */ | |
15182 #define WWDG_CFR_WDGTB_0 (0x1U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000080 */ | |
15183 #define WWDG_CFR_WDGTB_1 (0x2U << WWDG_CFR_WDGTB_Pos) /*!< 0x00000100 */ | |
15184 | |
15185 #define WWDG_CFR_EWI_Pos (9U) | |
15186 #define WWDG_CFR_EWI_Msk (0x1U << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */ | |
15187 #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!<Early Wakeup Interrupt */ | |
15188 | |
15189 /******************* Bit definition for WWDG_SR register ********************/ | |
15190 #define WWDG_SR_EWIF_Pos (0U) | |
15191 #define WWDG_SR_EWIF_Msk (0x1U << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */ | |
15192 #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!<Early Wakeup Interrupt Flag */ | |
15193 | |
15194 | |
15195 /******************************************************************************/ | |
15196 /* */ | |
15197 /* Debug MCU */ | |
15198 /* */ | |
15199 /******************************************************************************/ | |
15200 /******************** Bit definition for DBGMCU_IDCODE register *************/ | |
15201 #define DBGMCU_IDCODE_DEV_ID_Pos (0U) | |
15202 #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFU << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */ | |
15203 #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk | |
15204 #define DBGMCU_IDCODE_REV_ID_Pos (16U) | |
15205 #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFU << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */ | |
15206 #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk | |
15207 | |
15208 /******************** Bit definition for DBGMCU_CR register *****************/ | |
15209 #define DBGMCU_CR_DBG_SLEEP_Pos (0U) | |
15210 #define DBGMCU_CR_DBG_SLEEP_Msk (0x1U << DBGMCU_CR_DBG_SLEEP_Pos) /*!< 0x00000001 */ | |
15211 #define DBGMCU_CR_DBG_SLEEP DBGMCU_CR_DBG_SLEEP_Msk | |
15212 #define DBGMCU_CR_DBG_STOP_Pos (1U) | |
15213 #define DBGMCU_CR_DBG_STOP_Msk (0x1U << DBGMCU_CR_DBG_STOP_Pos) /*!< 0x00000002 */ | |
15214 #define DBGMCU_CR_DBG_STOP DBGMCU_CR_DBG_STOP_Msk | |
15215 #define DBGMCU_CR_DBG_STANDBY_Pos (2U) | |
15216 #define DBGMCU_CR_DBG_STANDBY_Msk (0x1U << DBGMCU_CR_DBG_STANDBY_Pos) /*!< 0x00000004 */ | |
15217 #define DBGMCU_CR_DBG_STANDBY DBGMCU_CR_DBG_STANDBY_Msk | |
15218 #define DBGMCU_CR_TRACE_IOEN_Pos (5U) | |
15219 #define DBGMCU_CR_TRACE_IOEN_Msk (0x1U << DBGMCU_CR_TRACE_IOEN_Pos) /*!< 0x00000020 */ | |
15220 #define DBGMCU_CR_TRACE_IOEN DBGMCU_CR_TRACE_IOEN_Msk | |
15221 | |
15222 #define DBGMCU_CR_TRACE_MODE_Pos (6U) | |
15223 #define DBGMCU_CR_TRACE_MODE_Msk (0x3U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x000000C0 */ | |
15224 #define DBGMCU_CR_TRACE_MODE DBGMCU_CR_TRACE_MODE_Msk | |
15225 #define DBGMCU_CR_TRACE_MODE_0 (0x1U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x00000040 */ | |
15226 #define DBGMCU_CR_TRACE_MODE_1 (0x2U << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x00000080 */ | |
15227 | |
15228 /******************** Bit definition for DBGMCU_APB1FZR1 register ***********/ | |
15229 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos (0U) | |
15230 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_TIM2_STOP_Pos) /*!< 0x00000001 */ | |
15231 #define DBGMCU_APB1FZR1_DBG_TIM2_STOP DBGMCU_APB1FZR1_DBG_TIM2_STOP_Msk | |
15232 #define DBGMCU_APB1FZR1_DBG_TIM3_STOP_Pos (1U) | |
15233 #define DBGMCU_APB1FZR1_DBG_TIM3_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_TIM3_STOP_Pos) /*!< 0x00000002 */ | |
15234 #define DBGMCU_APB1FZR1_DBG_TIM3_STOP DBGMCU_APB1FZR1_DBG_TIM3_STOP_Msk | |
15235 #define DBGMCU_APB1FZR1_DBG_TIM6_STOP_Pos (4U) | |
15236 #define DBGMCU_APB1FZR1_DBG_TIM6_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_TIM6_STOP_Pos) /*!< 0x00000010 */ | |
15237 #define DBGMCU_APB1FZR1_DBG_TIM6_STOP DBGMCU_APB1FZR1_DBG_TIM6_STOP_Msk | |
15238 #define DBGMCU_APB1FZR1_DBG_RTC_STOP_Pos (10U) | |
15239 #define DBGMCU_APB1FZR1_DBG_RTC_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_RTC_STOP_Pos) /*!< 0x00000400 */ | |
15240 #define DBGMCU_APB1FZR1_DBG_RTC_STOP DBGMCU_APB1FZR1_DBG_RTC_STOP_Msk | |
15241 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos (11U) | |
15242 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_WWDG_STOP_Pos) /*!< 0x00000800 */ | |
15243 #define DBGMCU_APB1FZR1_DBG_WWDG_STOP DBGMCU_APB1FZR1_DBG_WWDG_STOP_Msk | |
15244 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos (12U) | |
15245 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_IWDG_STOP_Pos) /*!< 0x00001000 */ | |
15246 #define DBGMCU_APB1FZR1_DBG_IWDG_STOP DBGMCU_APB1FZR1_DBG_IWDG_STOP_Msk | |
15247 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos (21U) | |
15248 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_I2C1_STOP_Pos) /*!< 0x00200000 */ | |
15249 #define DBGMCU_APB1FZR1_DBG_I2C1_STOP DBGMCU_APB1FZR1_DBG_I2C1_STOP_Msk | |
15250 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos (22U) | |
15251 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_I2C2_STOP_Pos) /*!< 0x00400000 */ | |
15252 #define DBGMCU_APB1FZR1_DBG_I2C2_STOP DBGMCU_APB1FZR1_DBG_I2C2_STOP_Msk | |
15253 #define DBGMCU_APB1FZR1_DBG_I2C3_STOP_Pos (23U) | |
15254 #define DBGMCU_APB1FZR1_DBG_I2C3_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_I2C3_STOP_Pos) /*!< 0x00800000 */ | |
15255 #define DBGMCU_APB1FZR1_DBG_I2C3_STOP DBGMCU_APB1FZR1_DBG_I2C3_STOP_Msk | |
15256 #define DBGMCU_APB1FZR1_DBG_CAN_STOP_Pos (25U) | |
15257 #define DBGMCU_APB1FZR1_DBG_CAN_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_CAN_STOP_Pos) /*!< 0x02000000 */ | |
15258 #define DBGMCU_APB1FZR1_DBG_CAN_STOP DBGMCU_APB1FZR1_DBG_CAN_STOP_Msk | |
15259 #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Pos (31U) | |
15260 #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Msk (0x1U << DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Pos) /*!< 0x80000000 */ | |
15261 #define DBGMCU_APB1FZR1_DBG_LPTIM1_STOP DBGMCU_APB1FZR1_DBG_LPTIM1_STOP_Msk | |
15262 | |
15263 /******************** Bit definition for DBGMCU_APB1FZR2 register **********/ | |
15264 #define DBGMCU_APB1FZR2_DBG_I2C4_STOP_Pos (1U) | |
15265 #define DBGMCU_APB1FZR2_DBG_I2C4_STOP_Msk (0x1U << DBGMCU_APB1FZR2_DBG_I2C4_STOP_Pos) /*!< 0x00000002 */ | |
15266 #define DBGMCU_APB1FZR2_DBG_I2C4_STOP DBGMCU_APB1FZR2_DBG_I2C4_STOP_Msk | |
15267 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos (5U) | |
15268 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk (0x1U << DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Pos) /*!< 0x00000020 */ | |
15269 #define DBGMCU_APB1FZR2_DBG_LPTIM2_STOP DBGMCU_APB1FZR2_DBG_LPTIM2_STOP_Msk | |
15270 | |
15271 /******************** Bit definition for DBGMCU_APB2FZ register ************/ | |
15272 #define DBGMCU_APB2FZ_DBG_TIM1_STOP_Pos (11U) | |
15273 #define DBGMCU_APB2FZ_DBG_TIM1_STOP_Msk (0x1U << DBGMCU_APB2FZ_DBG_TIM1_STOP_Pos) /*!< 0x00000800 */ | |
15274 #define DBGMCU_APB2FZ_DBG_TIM1_STOP DBGMCU_APB2FZ_DBG_TIM1_STOP_Msk | |
15275 #define DBGMCU_APB2FZ_DBG_TIM15_STOP_Pos (16U) | |
15276 #define DBGMCU_APB2FZ_DBG_TIM15_STOP_Msk (0x1U << DBGMCU_APB2FZ_DBG_TIM15_STOP_Pos) /*!< 0x00010000 */ | |
15277 #define DBGMCU_APB2FZ_DBG_TIM15_STOP DBGMCU_APB2FZ_DBG_TIM15_STOP_Msk | |
15278 #define DBGMCU_APB2FZ_DBG_TIM16_STOP_Pos (17U) | |
15279 #define DBGMCU_APB2FZ_DBG_TIM16_STOP_Msk (0x1U << DBGMCU_APB2FZ_DBG_TIM16_STOP_Pos) /*!< 0x00020000 */ | |
15280 #define DBGMCU_APB2FZ_DBG_TIM16_STOP DBGMCU_APB2FZ_DBG_TIM16_STOP_Msk | |
15281 | |
15282 /******************************************************************************/ | |
15283 /* */ | |
15284 /* USB Device FS Endpoint registers */ | |
15285 /* */ | |
15286 /******************************************************************************/ | |
15287 #define USB_EP0R USB_BASE /*!< endpoint 0 register address */ | |
15288 #define USB_EP1R (USB_BASE + 0x0x00000004) /*!< endpoint 1 register address */ | |
15289 #define USB_EP2R (USB_BASE + 0x0x00000008) /*!< endpoint 2 register address */ | |
15290 #define USB_EP3R (USB_BASE + 0x0x0000000C) /*!< endpoint 3 register address */ | |
15291 #define USB_EP4R (USB_BASE + 0x0x00000010) /*!< endpoint 4 register address */ | |
15292 #define USB_EP5R (USB_BASE + 0x0x00000014) /*!< endpoint 5 register address */ | |
15293 #define USB_EP6R (USB_BASE + 0x0x00000018) /*!< endpoint 6 register address */ | |
15294 #define USB_EP7R (USB_BASE + 0x0x0000001C) /*!< endpoint 7 register address */ | |
15295 | |
15296 /* bit positions */ | |
15297 #define USB_EP_CTR_RX ((uint16_t)0x8000U) /*!< EndPoint Correct TRansfer RX */ | |
15298 #define USB_EP_DTOG_RX ((uint16_t)0x4000U) /*!< EndPoint Data TOGGLE RX */ | |
15299 #define USB_EPRX_STAT ((uint16_t)0x3000U) /*!< EndPoint RX STATus bit field */ | |
15300 #define USB_EP_SETUP ((uint16_t)0x0800U) /*!< EndPoint SETUP */ | |
15301 #define USB_EP_T_FIELD ((uint16_t)0x0600U) /*!< EndPoint TYPE */ | |
15302 #define USB_EP_KIND ((uint16_t)0x0100U) /*!< EndPoint KIND */ | |
15303 #define USB_EP_CTR_TX ((uint16_t)0x0080U) /*!< EndPoint Correct TRansfer TX */ | |
15304 #define USB_EP_DTOG_TX ((uint16_t)0x0040U) /*!< EndPoint Data TOGGLE TX */ | |
15305 #define USB_EPTX_STAT ((uint16_t)0x0030U) /*!< EndPoint TX STATus bit field */ | |
15306 #define USB_EPADDR_FIELD ((uint16_t)0x000FU) /*!< EndPoint ADDRess FIELD */ | |
15307 | |
15308 /* EndPoint REGister MASK (no toggle fields) */ | |
15309 #define USB_EPREG_MASK (USB_EP_CTR_RX|USB_EP_SETUP|USB_EP_T_FIELD|USB_EP_KIND|USB_EP_CTR_TX|USB_EPADDR_FIELD) | |
15310 /*!< EP_TYPE[1:0] EndPoint TYPE */ | |
15311 #define USB_EP_TYPE_MASK ((uint16_t)0x0600U) /*!< EndPoint TYPE Mask */ | |
15312 #define USB_EP_BULK ((uint16_t)0x0000U) /*!< EndPoint BULK */ | |
15313 #define USB_EP_CONTROL ((uint16_t)0x0200U) /*!< EndPoint CONTROL */ | |
15314 #define USB_EP_ISOCHRONOUS ((uint16_t)0x0400U) /*!< EndPoint ISOCHRONOUS */ | |
15315 #define USB_EP_INTERRUPT ((uint16_t)0x0600U) /*!< EndPoint INTERRUPT */ | |
15316 #define USB_EP_T_MASK ((uint16_t) ~USB_EP_T_FIELD & USB_EPREG_MASK) | |
15317 | |
15318 #define USB_EPKIND_MASK ((uint16_t)~USB_EP_KIND & USB_EPREG_MASK) /*!< EP_KIND EndPoint KIND */ | |
15319 /*!< STAT_TX[1:0] STATus for TX transfer */ | |
15320 #define USB_EP_TX_DIS ((uint16_t)0x0000U) /*!< EndPoint TX DISabled */ | |
15321 #define USB_EP_TX_STALL ((uint16_t)0x0010U) /*!< EndPoint TX STALLed */ | |
15322 #define USB_EP_TX_NAK ((uint16_t)0x0020U) /*!< EndPoint TX NAKed */ | |
15323 #define USB_EP_TX_VALID ((uint16_t)0x0030U) /*!< EndPoint TX VALID */ | |
15324 #define USB_EPTX_DTOG1 ((uint16_t)0x0010U) /*!< EndPoint TX Data TOGgle bit1 */ | |
15325 #define USB_EPTX_DTOG2 ((uint16_t)0x0020U) /*!< EndPoint TX Data TOGgle bit2 */ | |
15326 #define USB_EPTX_DTOGMASK (USB_EPTX_STAT|USB_EPREG_MASK) | |
15327 /*!< STAT_RX[1:0] STATus for RX transfer */ | |
15328 #define USB_EP_RX_DIS ((uint16_t)0x0000U) /*!< EndPoint RX DISabled */ | |
15329 #define USB_EP_RX_STALL ((uint16_t)0x1000U) /*!< EndPoint RX STALLed */ | |
15330 #define USB_EP_RX_NAK ((uint16_t)0x2000U) /*!< EndPoint RX NAKed */ | |
15331 #define USB_EP_RX_VALID ((uint16_t)0x3000U) /*!< EndPoint RX VALID */ | |
15332 #define USB_EPRX_DTOG1 ((uint16_t)0x1000U) /*!< EndPoint RX Data TOGgle bit1 */ | |
15333 #define USB_EPRX_DTOG2 ((uint16_t)0x2000U) /*!< EndPoint RX Data TOGgle bit1 */ | |
15334 #define USB_EPRX_DTOGMASK (USB_EPRX_STAT|USB_EPREG_MASK) | |
15335 | |
15336 /******************************************************************************/ | |
15337 /* */ | |
15338 /* USB Device FS General registers */ | |
15339 /* */ | |
15340 /******************************************************************************/ | |
15341 #define USB_CNTR (USB_BASE + 0x00000040U) /*!< Control register */ | |
15342 #define USB_ISTR (USB_BASE + 0x00000044U) /*!< Interrupt status register */ | |
15343 #define USB_FNR (USB_BASE + 0x00000048U) /*!< Frame number register */ | |
15344 #define USB_DADDR (USB_BASE + 0x0000004CU) /*!< Device address register */ | |
15345 #define USB_BTABLE (USB_BASE + 0x00000050U) /*!< Buffer Table address register */ | |
15346 #define USB_LPMCSR (USB_BASE + 0x00000054U) /*!< LPM Control and Status register */ | |
15347 #define USB_BCDR (USB_BASE + 0x00000058U) /*!< Battery Charging detector register*/ | |
15348 | |
15349 /****************** Bits definition for USB_CNTR register *******************/ | |
15350 #define USB_CNTR_CTRM ((uint16_t)0x8000U) /*!< Correct TRansfer Mask */ | |
15351 #define USB_CNTR_PMAOVRM ((uint16_t)0x4000U) /*!< DMA OVeR/underrun Mask */ | |
15352 #define USB_CNTR_ERRM ((uint16_t)0x2000U) /*!< ERRor Mask */ | |
15353 #define USB_CNTR_WKUPM ((uint16_t)0x1000U) /*!< WaKe UP Mask */ | |
15354 #define USB_CNTR_SUSPM ((uint16_t)0x0800U) /*!< SUSPend Mask */ | |
15355 #define USB_CNTR_RESETM ((uint16_t)0x0400U) /*!< RESET Mask */ | |
15356 #define USB_CNTR_SOFM ((uint16_t)0x0200U) /*!< Start Of Frame Mask */ | |
15357 #define USB_CNTR_ESOFM ((uint16_t)0x0100U) /*!< Expected Start Of Frame Mask */ | |
15358 #define USB_CNTR_L1REQM ((uint16_t)0x0080U) /*!< LPM L1 state request interrupt mask */ | |
15359 #define USB_CNTR_L1RESUME ((uint16_t)0x0020U) /*!< LPM L1 Resume request */ | |
15360 #define USB_CNTR_RESUME ((uint16_t)0x0010U) /*!< RESUME request */ | |
15361 #define USB_CNTR_FSUSP ((uint16_t)0x0008U) /*!< Force SUSPend */ | |
15362 #define USB_CNTR_LPMODE ((uint16_t)0x0004U) /*!< Low-power MODE */ | |
15363 #define USB_CNTR_PDWN ((uint16_t)0x0002U) /*!< Power DoWN */ | |
15364 #define USB_CNTR_FRES ((uint16_t)0x0001U) /*!< Force USB RESet */ | |
15365 | |
15366 /****************** Bits definition for USB_ISTR register *******************/ | |
15367 #define USB_ISTR_EP_ID ((uint16_t)0x000FU) /*!< EndPoint IDentifier (read-only bit) */ | |
15368 #define USB_ISTR_DIR ((uint16_t)0x0010U) /*!< DIRection of transaction (read-only bit) */ | |
15369 #define USB_ISTR_L1REQ ((uint16_t)0x0080U) /*!< LPM L1 state request */ | |
15370 #define USB_ISTR_ESOF ((uint16_t)0x0100U) /*!< Expected Start Of Frame (clear-only bit) */ | |
15371 #define USB_ISTR_SOF ((uint16_t)0x0200U) /*!< Start Of Frame (clear-only bit) */ | |
15372 #define USB_ISTR_RESET ((uint16_t)0x0400U) /*!< RESET (clear-only bit) */ | |
15373 #define USB_ISTR_SUSP ((uint16_t)0x0800U) /*!< SUSPend (clear-only bit) */ | |
15374 #define USB_ISTR_WKUP ((uint16_t)0x1000U) /*!< WaKe UP (clear-only bit) */ | |
15375 #define USB_ISTR_ERR ((uint16_t)0x2000U) /*!< ERRor (clear-only bit) */ | |
15376 #define USB_ISTR_PMAOVR ((uint16_t)0x4000U) /*!< DMA OVeR/underrun (clear-only bit) */ | |
15377 #define USB_ISTR_CTR ((uint16_t)0x8000U) /*!< Correct TRansfer (clear-only bit) */ | |
15378 | |
15379 #define USB_CLR_L1REQ (~USB_ISTR_L1REQ) /*!< clear LPM L1 bit */ | |
15380 #define USB_CLR_ESOF (~USB_ISTR_ESOF) /*!< clear Expected Start Of Frame bit */ | |
15381 #define USB_CLR_SOF (~USB_ISTR_SOF) /*!< clear Start Of Frame bit */ | |
15382 #define USB_CLR_RESET (~USB_ISTR_RESET) /*!< clear RESET bit */ | |
15383 #define USB_CLR_SUSP (~USB_ISTR_SUSP) /*!< clear SUSPend bit */ | |
15384 #define USB_CLR_WKUP (~USB_ISTR_WKUP) /*!< clear WaKe UP bit */ | |
15385 #define USB_CLR_ERR (~USB_ISTR_ERR) /*!< clear ERRor bit */ | |
15386 #define USB_CLR_PMAOVR (~USB_ISTR_PMAOVR) /*!< clear DMA OVeR/underrun bit*/ | |
15387 #define USB_CLR_CTR (~USB_ISTR_CTR) /*!< clear Correct TRansfer bit */ | |
15388 | |
15389 /****************** Bits definition for USB_FNR register ********************/ | |
15390 #define USB_FNR_FN ((uint16_t)0x07FFU) /*!< Frame Number */ | |
15391 #define USB_FNR_LSOF ((uint16_t)0x1800U) /*!< Lost SOF */ | |
15392 #define USB_FNR_LCK ((uint16_t)0x2000U) /*!< LoCKed */ | |
15393 #define USB_FNR_RXDM ((uint16_t)0x4000U) /*!< status of D- data line */ | |
15394 #define USB_FNR_RXDP ((uint16_t)0x8000U) /*!< status of D+ data line */ | |
15395 | |
15396 /****************** Bits definition for USB_DADDR register ****************/ | |
15397 #define USB_DADDR_ADD ((uint8_t)0x7FU) /*!< ADD[6:0] bits (Device Address) */ | |
15398 #define USB_DADDR_ADD0 ((uint8_t)0x01U) /*!< Bit 0 */ | |
15399 #define USB_DADDR_ADD1 ((uint8_t)0x02U) /*!< Bit 1 */ | |
15400 #define USB_DADDR_ADD2 ((uint8_t)0x04U) /*!< Bit 2 */ | |
15401 #define USB_DADDR_ADD3 ((uint8_t)0x08U) /*!< Bit 3 */ | |
15402 #define USB_DADDR_ADD4 ((uint8_t)0x10U) /*!< Bit 4 */ | |
15403 #define USB_DADDR_ADD5 ((uint8_t)0x20U) /*!< Bit 5 */ | |
15404 #define USB_DADDR_ADD6 ((uint8_t)0x40U) /*!< Bit 6 */ | |
15405 | |
15406 #define USB_DADDR_EF ((uint8_t)0x80U) /*!< Enable Function */ | |
15407 | |
15408 /****************** Bit definition for USB_BTABLE register ******************/ | |
15409 #define USB_BTABLE_BTABLE ((uint16_t)0xFFF8U) /*!< Buffer Table */ | |
15410 | |
15411 /****************** Bits definition for USB_BCDR register *******************/ | |
15412 #define USB_BCDR_BCDEN ((uint16_t)0x0001U) /*!< Battery charging detector (BCD) enable */ | |
15413 #define USB_BCDR_DCDEN ((uint16_t)0x0002U) /*!< Data contact detection (DCD) mode enable */ | |
15414 #define USB_BCDR_PDEN ((uint16_t)0x0004U) /*!< Primary detection (PD) mode enable */ | |
15415 #define USB_BCDR_SDEN ((uint16_t)0x0008U) /*!< Secondary detection (SD) mode enable */ | |
15416 #define USB_BCDR_DCDET ((uint16_t)0x0010U) /*!< Data contact detection (DCD) status */ | |
15417 #define USB_BCDR_PDET ((uint16_t)0x0020U) /*!< Primary detection (PD) status */ | |
15418 #define USB_BCDR_SDET ((uint16_t)0x0040U) /*!< Secondary detection (SD) status */ | |
15419 #define USB_BCDR_PS2DET ((uint16_t)0x0080U) /*!< PS2 port or proprietary charger detected */ | |
15420 #define USB_BCDR_DPPU ((uint16_t)0x8000U) /*!< DP Pull-up Enable */ | |
15421 | |
15422 /******************* Bit definition for LPMCSR register *********************/ | |
15423 #define USB_LPMCSR_LMPEN ((uint16_t)0x0001U) /*!< LPM support enable */ | |
15424 #define USB_LPMCSR_LPMACK ((uint16_t)0x0002U) /*!< LPM Token acknowledge enable*/ | |
15425 #define USB_LPMCSR_REMWAKE ((uint16_t)0x0008U) /*!< bRemoteWake value received with last ACKed LPM Token */ | |
15426 #define USB_LPMCSR_BESL ((uint16_t)0x00F0U) /*!< BESL value received with last ACKed LPM Token */ | |
15427 | |
15428 /*!< Buffer descriptor table */ | |
15429 /***************** Bit definition for USB_ADDR0_TX register *****************/ | |
15430 #define USB_ADDR0_TX_ADDR0_TX_Pos (1U) | |
15431 #define USB_ADDR0_TX_ADDR0_TX_Msk (0x7FFFU << USB_ADDR0_TX_ADDR0_TX_Pos) /*!< 0x0000FFFE */ | |
15432 #define USB_ADDR0_TX_ADDR0_TX USB_ADDR0_TX_ADDR0_TX_Msk /*!< Transmission Buffer Address 0 */ | |
15433 | |
15434 /***************** Bit definition for USB_ADDR1_TX register *****************/ | |
15435 #define USB_ADDR1_TX_ADDR1_TX_Pos (1U) | |
15436 #define USB_ADDR1_TX_ADDR1_TX_Msk (0x7FFFU << USB_ADDR1_TX_ADDR1_TX_Pos) /*!< 0x0000FFFE */ | |
15437 #define USB_ADDR1_TX_ADDR1_TX USB_ADDR1_TX_ADDR1_TX_Msk /*!< Transmission Buffer Address 1 */ | |
15438 | |
15439 /***************** Bit definition for USB_ADDR2_TX register *****************/ | |
15440 #define USB_ADDR2_TX_ADDR2_TX_Pos (1U) | |
15441 #define USB_ADDR2_TX_ADDR2_TX_Msk (0x7FFFU << USB_ADDR2_TX_ADDR2_TX_Pos) /*!< 0x0000FFFE */ | |
15442 #define USB_ADDR2_TX_ADDR2_TX USB_ADDR2_TX_ADDR2_TX_Msk /*!< Transmission Buffer Address 2 */ | |
15443 | |
15444 /***************** Bit definition for USB_ADDR3_TX register *****************/ | |
15445 #define USB_ADDR3_TX_ADDR3_TX_Pos (1U) | |
15446 #define USB_ADDR3_TX_ADDR3_TX_Msk (0x7FFFU << USB_ADDR3_TX_ADDR3_TX_Pos) /*!< 0x0000FFFE */ | |
15447 #define USB_ADDR3_TX_ADDR3_TX USB_ADDR3_TX_ADDR3_TX_Msk /*!< Transmission Buffer Address 3 */ | |
15448 | |
15449 /***************** Bit definition for USB_ADDR4_TX register *****************/ | |
15450 #define USB_ADDR4_TX_ADDR4_TX_Pos (1U) | |
15451 #define USB_ADDR4_TX_ADDR4_TX_Msk (0x7FFFU << USB_ADDR4_TX_ADDR4_TX_Pos) /*!< 0x0000FFFE */ | |
15452 #define USB_ADDR4_TX_ADDR4_TX USB_ADDR4_TX_ADDR4_TX_Msk /*!< Transmission Buffer Address 4 */ | |
15453 | |
15454 /***************** Bit definition for USB_ADDR5_TX register *****************/ | |
15455 #define USB_ADDR5_TX_ADDR5_TX_Pos (1U) | |
15456 #define USB_ADDR5_TX_ADDR5_TX_Msk (0x7FFFU << USB_ADDR5_TX_ADDR5_TX_Pos) /*!< 0x0000FFFE */ | |
15457 #define USB_ADDR5_TX_ADDR5_TX USB_ADDR5_TX_ADDR5_TX_Msk /*!< Transmission Buffer Address 5 */ | |
15458 | |
15459 /***************** Bit definition for USB_ADDR6_TX register *****************/ | |
15460 #define USB_ADDR6_TX_ADDR6_TX_Pos (1U) | |
15461 #define USB_ADDR6_TX_ADDR6_TX_Msk (0x7FFFU << USB_ADDR6_TX_ADDR6_TX_Pos) /*!< 0x0000FFFE */ | |
15462 #define USB_ADDR6_TX_ADDR6_TX USB_ADDR6_TX_ADDR6_TX_Msk /*!< Transmission Buffer Address 6 */ | |
15463 | |
15464 /***************** Bit definition for USB_ADDR7_TX register *****************/ | |
15465 #define USB_ADDR7_TX_ADDR7_TX_Pos (1U) | |
15466 #define USB_ADDR7_TX_ADDR7_TX_Msk (0x7FFFU << USB_ADDR7_TX_ADDR7_TX_Pos) /*!< 0x0000FFFE */ | |
15467 #define USB_ADDR7_TX_ADDR7_TX USB_ADDR7_TX_ADDR7_TX_Msk /*!< Transmission Buffer Address 7 */ | |
15468 | |
15469 /*----------------------------------------------------------------------------*/ | |
15470 | |
15471 /***************** Bit definition for USB_COUNT0_TX register ****************/ | |
15472 #define USB_COUNT0_TX_COUNT0_TX_Pos (0U) | |
15473 #define USB_COUNT0_TX_COUNT0_TX_Msk (0x3FFU << USB_COUNT0_TX_COUNT0_TX_Pos) /*!< 0x000003FF */ | |
15474 #define USB_COUNT0_TX_COUNT0_TX USB_COUNT0_TX_COUNT0_TX_Msk /*!< Transmission Byte Count 0 */ | |
15475 | |
15476 /***************** Bit definition for USB_COUNT1_TX register ****************/ | |
15477 #define USB_COUNT1_TX_COUNT1_TX_Pos (0U) | |
15478 #define USB_COUNT1_TX_COUNT1_TX_Msk (0x3FFU << USB_COUNT1_TX_COUNT1_TX_Pos) /*!< 0x000003FF */ | |
15479 #define USB_COUNT1_TX_COUNT1_TX USB_COUNT1_TX_COUNT1_TX_Msk /*!< Transmission Byte Count 1 */ | |
15480 | |
15481 /***************** Bit definition for USB_COUNT2_TX register ****************/ | |
15482 #define USB_COUNT2_TX_COUNT2_TX_Pos (0U) | |
15483 #define USB_COUNT2_TX_COUNT2_TX_Msk (0x3FFU << USB_COUNT2_TX_COUNT2_TX_Pos) /*!< 0x000003FF */ | |
15484 #define USB_COUNT2_TX_COUNT2_TX USB_COUNT2_TX_COUNT2_TX_Msk /*!< Transmission Byte Count 2 */ | |
15485 | |
15486 /***************** Bit definition for USB_COUNT3_TX register ****************/ | |
15487 #define USB_COUNT3_TX_COUNT3_TX_Pos (0U) | |
15488 #define USB_COUNT3_TX_COUNT3_TX_Msk (0x3FFU << USB_COUNT3_TX_COUNT3_TX_Pos) /*!< 0x000003FF */ | |
15489 #define USB_COUNT3_TX_COUNT3_TX USB_COUNT3_TX_COUNT3_TX_Msk /*!< Transmission Byte Count 3 */ | |
15490 | |
15491 /***************** Bit definition for USB_COUNT4_TX register ****************/ | |
15492 #define USB_COUNT4_TX_COUNT4_TX_Pos (0U) | |
15493 #define USB_COUNT4_TX_COUNT4_TX_Msk (0x3FFU << USB_COUNT4_TX_COUNT4_TX_Pos) /*!< 0x000003FF */ | |
15494 #define USB_COUNT4_TX_COUNT4_TX USB_COUNT4_TX_COUNT4_TX_Msk /*!< Transmission Byte Count 4 */ | |
15495 | |
15496 /***************** Bit definition for USB_COUNT5_TX register ****************/ | |
15497 #define USB_COUNT5_TX_COUNT5_TX_Pos (0U) | |
15498 #define USB_COUNT5_TX_COUNT5_TX_Msk (0x3FFU << USB_COUNT5_TX_COUNT5_TX_Pos) /*!< 0x000003FF */ | |
15499 #define USB_COUNT5_TX_COUNT5_TX USB_COUNT5_TX_COUNT5_TX_Msk /*!< Transmission Byte Count 5 */ | |
15500 | |
15501 /***************** Bit definition for USB_COUNT6_TX register ****************/ | |
15502 #define USB_COUNT6_TX_COUNT6_TX_Pos (0U) | |
15503 #define USB_COUNT6_TX_COUNT6_TX_Msk (0x3FFU << USB_COUNT6_TX_COUNT6_TX_Pos) /*!< 0x000003FF */ | |
15504 #define USB_COUNT6_TX_COUNT6_TX USB_COUNT6_TX_COUNT6_TX_Msk /*!< Transmission Byte Count 6 */ | |
15505 | |
15506 /***************** Bit definition for USB_COUNT7_TX register ****************/ | |
15507 #define USB_COUNT7_TX_COUNT7_TX_Pos (0U) | |
15508 #define USB_COUNT7_TX_COUNT7_TX_Msk (0x3FFU << USB_COUNT7_TX_COUNT7_TX_Pos) /*!< 0x000003FF */ | |
15509 #define USB_COUNT7_TX_COUNT7_TX USB_COUNT7_TX_COUNT7_TX_Msk /*!< Transmission Byte Count 7 */ | |
15510 | |
15511 /*----------------------------------------------------------------------------*/ | |
15512 | |
15513 /**************** Bit definition for USB_COUNT0_TX_0 register ***************/ | |
15514 #define USB_COUNT0_TX_0_COUNT0_TX_0 (0x000003FFU) /*!< Transmission Byte Count 0 (low) */ | |
15515 | |
15516 /**************** Bit definition for USB_COUNT0_TX_1 register ***************/ | |
15517 #define USB_COUNT0_TX_1_COUNT0_TX_1 (0x03FF0000U) /*!< Transmission Byte Count 0 (high) */ | |
15518 | |
15519 /**************** Bit definition for USB_COUNT1_TX_0 register ***************/ | |
15520 #define USB_COUNT1_TX_0_COUNT1_TX_0 (0x000003FFU) /*!< Transmission Byte Count 1 (low) */ | |
15521 | |
15522 /**************** Bit definition for USB_COUNT1_TX_1 register ***************/ | |
15523 #define USB_COUNT1_TX_1_COUNT1_TX_1 (0x03FF0000U) /*!< Transmission Byte Count 1 (high) */ | |
15524 | |
15525 /**************** Bit definition for USB_COUNT2_TX_0 register ***************/ | |
15526 #define USB_COUNT2_TX_0_COUNT2_TX_0 (0x000003FFU) /*!< Transmission Byte Count 2 (low) */ | |
15527 | |
15528 /**************** Bit definition for USB_COUNT2_TX_1 register ***************/ | |
15529 #define USB_COUNT2_TX_1_COUNT2_TX_1 (0x03FF0000U) /*!< Transmission Byte Count 2 (high) */ | |
15530 | |
15531 /**************** Bit definition for USB_COUNT3_TX_0 register ***************/ | |
15532 #define USB_COUNT3_TX_0_COUNT3_TX_0 (0x000003FFU) /*!< Transmission Byte Count 3 (low) */ | |
15533 | |
15534 /**************** Bit definition for USB_COUNT3_TX_1 register ***************/ | |
15535 #define USB_COUNT3_TX_1_COUNT3_TX_1 (0x03FF0000U) /*!< Transmission Byte Count 3 (high) */ | |
15536 | |
15537 /**************** Bit definition for USB_COUNT4_TX_0 register ***************/ | |
15538 #define USB_COUNT4_TX_0_COUNT4_TX_0 (0x000003FFU) /*!< Transmission Byte Count 4 (low) */ | |
15539 | |
15540 /**************** Bit definition for USB_COUNT4_TX_1 register ***************/ | |
15541 #define USB_COUNT4_TX_1_COUNT4_TX_1 (0x03FF0000U) /*!< Transmission Byte Count 4 (high) */ | |
15542 | |
15543 /**************** Bit definition for USB_COUNT5_TX_0 register ***************/ | |
15544 #define USB_COUNT5_TX_0_COUNT5_TX_0 (0x000003FFU) /*!< Transmission Byte Count 5 (low) */ | |
15545 | |
15546 /**************** Bit definition for USB_COUNT5_TX_1 register ***************/ | |
15547 #define USB_COUNT5_TX_1_COUNT5_TX_1 (0x03FF0000U) /*!< Transmission Byte Count 5 (high) */ | |
15548 | |
15549 /**************** Bit definition for USB_COUNT6_TX_0 register ***************/ | |
15550 #define USB_COUNT6_TX_0_COUNT6_TX_0 (0x000003FFU) /*!< Transmission Byte Count 6 (low) */ | |
15551 | |
15552 /**************** Bit definition for USB_COUNT6_TX_1 register ***************/ | |
15553 #define USB_COUNT6_TX_1_COUNT6_TX_1 (0x03FF0000U) /*!< Transmission Byte Count 6 (high) */ | |
15554 | |
15555 /**************** Bit definition for USB_COUNT7_TX_0 register ***************/ | |
15556 #define USB_COUNT7_TX_0_COUNT7_TX_0 (0x000003FFU) /*!< Transmission Byte Count 7 (low) */ | |
15557 | |
15558 /**************** Bit definition for USB_COUNT7_TX_1 register ***************/ | |
15559 #define USB_COUNT7_TX_1_COUNT7_TX_1 (0x03FF0000U) /*!< Transmission Byte Count 7 (high) */ | |
15560 | |
15561 /*----------------------------------------------------------------------------*/ | |
15562 | |
15563 /***************** Bit definition for USB_ADDR0_RX register *****************/ | |
15564 #define USB_ADDR0_RX_ADDR0_RX_Pos (1U) | |
15565 #define USB_ADDR0_RX_ADDR0_RX_Msk (0x7FFFU << USB_ADDR0_RX_ADDR0_RX_Pos) /*!< 0x0000FFFE */ | |
15566 #define USB_ADDR0_RX_ADDR0_RX USB_ADDR0_RX_ADDR0_RX_Msk /*!< Reception Buffer Address 0 */ | |
15567 | |
15568 /***************** Bit definition for USB_ADDR1_RX register *****************/ | |
15569 #define USB_ADDR1_RX_ADDR1_RX_Pos (1U) | |
15570 #define USB_ADDR1_RX_ADDR1_RX_Msk (0x7FFFU << USB_ADDR1_RX_ADDR1_RX_Pos) /*!< 0x0000FFFE */ | |
15571 #define USB_ADDR1_RX_ADDR1_RX USB_ADDR1_RX_ADDR1_RX_Msk /*!< Reception Buffer Address 1 */ | |
15572 | |
15573 /***************** Bit definition for USB_ADDR2_RX register *****************/ | |
15574 #define USB_ADDR2_RX_ADDR2_RX_Pos (1U) | |
15575 #define USB_ADDR2_RX_ADDR2_RX_Msk (0x7FFFU << USB_ADDR2_RX_ADDR2_RX_Pos) /*!< 0x0000FFFE */ | |
15576 #define USB_ADDR2_RX_ADDR2_RX USB_ADDR2_RX_ADDR2_RX_Msk /*!< Reception Buffer Address 2 */ | |
15577 | |
15578 /***************** Bit definition for USB_ADDR3_RX register *****************/ | |
15579 #define USB_ADDR3_RX_ADDR3_RX_Pos (1U) | |
15580 #define USB_ADDR3_RX_ADDR3_RX_Msk (0x7FFFU << USB_ADDR3_RX_ADDR3_RX_Pos) /*!< 0x0000FFFE */ | |
15581 #define USB_ADDR3_RX_ADDR3_RX USB_ADDR3_RX_ADDR3_RX_Msk /*!< Reception Buffer Address 3 */ | |
15582 | |
15583 /***************** Bit definition for USB_ADDR4_RX register *****************/ | |
15584 #define USB_ADDR4_RX_ADDR4_RX_Pos (1U) | |
15585 #define USB_ADDR4_RX_ADDR4_RX_Msk (0x7FFFU << USB_ADDR4_RX_ADDR4_RX_Pos) /*!< 0x0000FFFE */ | |
15586 #define USB_ADDR4_RX_ADDR4_RX USB_ADDR4_RX_ADDR4_RX_Msk /*!< Reception Buffer Address 4 */ | |
15587 | |
15588 /***************** Bit definition for USB_ADDR5_RX register *****************/ | |
15589 #define USB_ADDR5_RX_ADDR5_RX_Pos (1U) | |
15590 #define USB_ADDR5_RX_ADDR5_RX_Msk (0x7FFFU << USB_ADDR5_RX_ADDR5_RX_Pos) /*!< 0x0000FFFE */ | |
15591 #define USB_ADDR5_RX_ADDR5_RX USB_ADDR5_RX_ADDR5_RX_Msk /*!< Reception Buffer Address 5 */ | |
15592 | |
15593 /***************** Bit definition for USB_ADDR6_RX register *****************/ | |
15594 #define USB_ADDR6_RX_ADDR6_RX_Pos (1U) | |
15595 #define USB_ADDR6_RX_ADDR6_RX_Msk (0x7FFFU << USB_ADDR6_RX_ADDR6_RX_Pos) /*!< 0x0000FFFE */ | |
15596 #define USB_ADDR6_RX_ADDR6_RX USB_ADDR6_RX_ADDR6_RX_Msk /*!< Reception Buffer Address 6 */ | |
15597 | |
15598 /***************** Bit definition for USB_ADDR7_RX register *****************/ | |
15599 #define USB_ADDR7_RX_ADDR7_RX_Pos (1U) | |
15600 #define USB_ADDR7_RX_ADDR7_RX_Msk (0x7FFFU << USB_ADDR7_RX_ADDR7_RX_Pos) /*!< 0x0000FFFE */ | |
15601 #define USB_ADDR7_RX_ADDR7_RX USB_ADDR7_RX_ADDR7_RX_Msk /*!< Reception Buffer Address 7 */ | |
15602 | |
15603 /*----------------------------------------------------------------------------*/ | |
15604 | |
15605 /***************** Bit definition for USB_COUNT0_RX register ****************/ | |
15606 #define USB_COUNT0_RX_COUNT0_RX_Pos (0U) | |
15607 #define USB_COUNT0_RX_COUNT0_RX_Msk (0x3FFU << USB_COUNT0_RX_COUNT0_RX_Pos) /*!< 0x000003FF */ | |
15608 #define USB_COUNT0_RX_COUNT0_RX USB_COUNT0_RX_COUNT0_RX_Msk /*!< Reception Byte Count */ | |
15609 | |
15610 #define USB_COUNT0_RX_NUM_BLOCK_Pos (10U) | |
15611 #define USB_COUNT0_RX_NUM_BLOCK_Msk (0x1FU << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ | |
15612 #define USB_COUNT0_RX_NUM_BLOCK USB_COUNT0_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ | |
15613 #define USB_COUNT0_RX_NUM_BLOCK_0 (0x01U << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ | |
15614 #define USB_COUNT0_RX_NUM_BLOCK_1 (0x02U << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ | |
15615 #define USB_COUNT0_RX_NUM_BLOCK_2 (0x04U << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ | |
15616 #define USB_COUNT0_RX_NUM_BLOCK_3 (0x08U << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ | |
15617 #define USB_COUNT0_RX_NUM_BLOCK_4 (0x10U << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ | |
15618 | |
15619 #define USB_COUNT0_RX_BLSIZE_Pos (15U) | |
15620 #define USB_COUNT0_RX_BLSIZE_Msk (0x1U << USB_COUNT0_RX_BLSIZE_Pos) /*!< 0x00008000 */ | |
15621 #define USB_COUNT0_RX_BLSIZE USB_COUNT0_RX_BLSIZE_Msk /*!< BLock SIZE */ | |
15622 | |
15623 /***************** Bit definition for USB_COUNT1_RX register ****************/ | |
15624 #define USB_COUNT1_RX_COUNT1_RX_Pos (0U) | |
15625 #define USB_COUNT1_RX_COUNT1_RX_Msk (0x3FFU << USB_COUNT1_RX_COUNT1_RX_Pos) /*!< 0x000003FF */ | |
15626 #define USB_COUNT1_RX_COUNT1_RX USB_COUNT1_RX_COUNT1_RX_Msk /*!< Reception Byte Count */ | |
15627 | |
15628 #define USB_COUNT1_RX_NUM_BLOCK_Pos (10U) | |
15629 #define USB_COUNT1_RX_NUM_BLOCK_Msk (0x1FU << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ | |
15630 #define USB_COUNT1_RX_NUM_BLOCK USB_COUNT1_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ | |
15631 #define USB_COUNT1_RX_NUM_BLOCK_0 (0x01U << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ | |
15632 #define USB_COUNT1_RX_NUM_BLOCK_1 (0x02U << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ | |
15633 #define USB_COUNT1_RX_NUM_BLOCK_2 (0x04U << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ | |
15634 #define USB_COUNT1_RX_NUM_BLOCK_3 (0x08U << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ | |
15635 #define USB_COUNT1_RX_NUM_BLOCK_4 (0x10U << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ | |
15636 | |
15637 #define USB_COUNT1_RX_BLSIZE_Pos (15U) | |
15638 #define USB_COUNT1_RX_BLSIZE_Msk (0x1U << USB_COUNT1_RX_BLSIZE_Pos) /*!< 0x00008000 */ | |
15639 #define USB_COUNT1_RX_BLSIZE USB_COUNT1_RX_BLSIZE_Msk /*!< BLock SIZE */ | |
15640 | |
15641 /***************** Bit definition for USB_COUNT2_RX register ****************/ | |
15642 #define USB_COUNT2_RX_COUNT2_RX_Pos (0U) | |
15643 #define USB_COUNT2_RX_COUNT2_RX_Msk (0x3FFU << USB_COUNT2_RX_COUNT2_RX_Pos) /*!< 0x000003FF */ | |
15644 #define USB_COUNT2_RX_COUNT2_RX USB_COUNT2_RX_COUNT2_RX_Msk /*!< Reception Byte Count */ | |
15645 | |
15646 #define USB_COUNT2_RX_NUM_BLOCK_Pos (10U) | |
15647 #define USB_COUNT2_RX_NUM_BLOCK_Msk (0x1FU << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ | |
15648 #define USB_COUNT2_RX_NUM_BLOCK USB_COUNT2_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ | |
15649 #define USB_COUNT2_RX_NUM_BLOCK_0 (0x01U << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ | |
15650 #define USB_COUNT2_RX_NUM_BLOCK_1 (0x02U << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ | |
15651 #define USB_COUNT2_RX_NUM_BLOCK_2 (0x04U << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ | |
15652 #define USB_COUNT2_RX_NUM_BLOCK_3 (0x08U << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ | |
15653 #define USB_COUNT2_RX_NUM_BLOCK_4 (0x10U << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ | |
15654 | |
15655 #define USB_COUNT2_RX_BLSIZE_Pos (15U) | |
15656 #define USB_COUNT2_RX_BLSIZE_Msk (0x1U << USB_COUNT2_RX_BLSIZE_Pos) /*!< 0x00008000 */ | |
15657 #define USB_COUNT2_RX_BLSIZE USB_COUNT2_RX_BLSIZE_Msk /*!< BLock SIZE */ | |
15658 | |
15659 /***************** Bit definition for USB_COUNT3_RX register ****************/ | |
15660 #define USB_COUNT3_RX_COUNT3_RX_Pos (0U) | |
15661 #define USB_COUNT3_RX_COUNT3_RX_Msk (0x3FFU << USB_COUNT3_RX_COUNT3_RX_Pos) /*!< 0x000003FF */ | |
15662 #define USB_COUNT3_RX_COUNT3_RX USB_COUNT3_RX_COUNT3_RX_Msk /*!< Reception Byte Count */ | |
15663 | |
15664 #define USB_COUNT3_RX_NUM_BLOCK_Pos (10U) | |
15665 #define USB_COUNT3_RX_NUM_BLOCK_Msk (0x1FU << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ | |
15666 #define USB_COUNT3_RX_NUM_BLOCK USB_COUNT3_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ | |
15667 #define USB_COUNT3_RX_NUM_BLOCK_0 (0x01U << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ | |
15668 #define USB_COUNT3_RX_NUM_BLOCK_1 (0x02U << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ | |
15669 #define USB_COUNT3_RX_NUM_BLOCK_2 (0x04U << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ | |
15670 #define USB_COUNT3_RX_NUM_BLOCK_3 (0x08U << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ | |
15671 #define USB_COUNT3_RX_NUM_BLOCK_4 (0x10U << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ | |
15672 | |
15673 #define USB_COUNT3_RX_BLSIZE_Pos (15U) | |
15674 #define USB_COUNT3_RX_BLSIZE_Msk (0x1U << USB_COUNT3_RX_BLSIZE_Pos) /*!< 0x00008000 */ | |
15675 #define USB_COUNT3_RX_BLSIZE USB_COUNT3_RX_BLSIZE_Msk /*!< BLock SIZE */ | |
15676 | |
15677 /***************** Bit definition for USB_COUNT4_RX register ****************/ | |
15678 #define USB_COUNT4_RX_COUNT4_RX_Pos (0U) | |
15679 #define USB_COUNT4_RX_COUNT4_RX_Msk (0x3FFU << USB_COUNT4_RX_COUNT4_RX_Pos) /*!< 0x000003FF */ | |
15680 #define USB_COUNT4_RX_COUNT4_RX USB_COUNT4_RX_COUNT4_RX_Msk /*!< Reception Byte Count */ | |
15681 | |
15682 #define USB_COUNT4_RX_NUM_BLOCK_Pos (10U) | |
15683 #define USB_COUNT4_RX_NUM_BLOCK_Msk (0x1FU << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ | |
15684 #define USB_COUNT4_RX_NUM_BLOCK USB_COUNT4_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ | |
15685 #define USB_COUNT4_RX_NUM_BLOCK_0 (0x01U << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ | |
15686 #define USB_COUNT4_RX_NUM_BLOCK_1 (0x02U << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ | |
15687 #define USB_COUNT4_RX_NUM_BLOCK_2 (0x04U << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ | |
15688 #define USB_COUNT4_RX_NUM_BLOCK_3 (0x08U << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ | |
15689 #define USB_COUNT4_RX_NUM_BLOCK_4 (0x10U << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ | |
15690 | |
15691 #define USB_COUNT4_RX_BLSIZE_Pos (15U) | |
15692 #define USB_COUNT4_RX_BLSIZE_Msk (0x1U << USB_COUNT4_RX_BLSIZE_Pos) /*!< 0x00008000 */ | |
15693 #define USB_COUNT4_RX_BLSIZE USB_COUNT4_RX_BLSIZE_Msk /*!< BLock SIZE */ | |
15694 | |
15695 /***************** Bit definition for USB_COUNT5_RX register ****************/ | |
15696 #define USB_COUNT5_RX_COUNT5_RX_Pos (0U) | |
15697 #define USB_COUNT5_RX_COUNT5_RX_Msk (0x3FFU << USB_COUNT5_RX_COUNT5_RX_Pos) /*!< 0x000003FF */ | |
15698 #define USB_COUNT5_RX_COUNT5_RX USB_COUNT5_RX_COUNT5_RX_Msk /*!< Reception Byte Count */ | |
15699 | |
15700 #define USB_COUNT5_RX_NUM_BLOCK_Pos (10U) | |
15701 #define USB_COUNT5_RX_NUM_BLOCK_Msk (0x1FU << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ | |
15702 #define USB_COUNT5_RX_NUM_BLOCK USB_COUNT5_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ | |
15703 #define USB_COUNT5_RX_NUM_BLOCK_0 (0x01U << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ | |
15704 #define USB_COUNT5_RX_NUM_BLOCK_1 (0x02U << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ | |
15705 #define USB_COUNT5_RX_NUM_BLOCK_2 (0x04U << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ | |
15706 #define USB_COUNT5_RX_NUM_BLOCK_3 (0x08U << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ | |
15707 #define USB_COUNT5_RX_NUM_BLOCK_4 (0x10U << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ | |
15708 | |
15709 #define USB_COUNT5_RX_BLSIZE_Pos (15U) | |
15710 #define USB_COUNT5_RX_BLSIZE_Msk (0x1U << USB_COUNT5_RX_BLSIZE_Pos) /*!< 0x00008000 */ | |
15711 #define USB_COUNT5_RX_BLSIZE USB_COUNT5_RX_BLSIZE_Msk /*!< BLock SIZE */ | |
15712 | |
15713 /***************** Bit definition for USB_COUNT6_RX register ****************/ | |
15714 #define USB_COUNT6_RX_COUNT6_RX_Pos (0U) | |
15715 #define USB_COUNT6_RX_COUNT6_RX_Msk (0x3FFU << USB_COUNT6_RX_COUNT6_RX_Pos) /*!< 0x000003FF */ | |
15716 #define USB_COUNT6_RX_COUNT6_RX USB_COUNT6_RX_COUNT6_RX_Msk /*!< Reception Byte Count */ | |
15717 | |
15718 #define USB_COUNT6_RX_NUM_BLOCK_Pos (10U) | |
15719 #define USB_COUNT6_RX_NUM_BLOCK_Msk (0x1FU << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ | |
15720 #define USB_COUNT6_RX_NUM_BLOCK USB_COUNT6_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ | |
15721 #define USB_COUNT6_RX_NUM_BLOCK_0 (0x01U << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ | |
15722 #define USB_COUNT6_RX_NUM_BLOCK_1 (0x02U << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ | |
15723 #define USB_COUNT6_RX_NUM_BLOCK_2 (0x04U << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ | |
15724 #define USB_COUNT6_RX_NUM_BLOCK_3 (0x08U << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ | |
15725 #define USB_COUNT6_RX_NUM_BLOCK_4 (0x10U << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ | |
15726 | |
15727 #define USB_COUNT6_RX_BLSIZE_Pos (15U) | |
15728 #define USB_COUNT6_RX_BLSIZE_Msk (0x1U << USB_COUNT6_RX_BLSIZE_Pos) /*!< 0x00008000 */ | |
15729 #define USB_COUNT6_RX_BLSIZE USB_COUNT6_RX_BLSIZE_Msk /*!< BLock SIZE */ | |
15730 | |
15731 /***************** Bit definition for USB_COUNT7_RX register ****************/ | |
15732 #define USB_COUNT7_RX_COUNT7_RX_Pos (0U) | |
15733 #define USB_COUNT7_RX_COUNT7_RX_Msk (0x3FFU << USB_COUNT7_RX_COUNT7_RX_Pos) /*!< 0x000003FF */ | |
15734 #define USB_COUNT7_RX_COUNT7_RX USB_COUNT7_RX_COUNT7_RX_Msk /*!< Reception Byte Count */ | |
15735 | |
15736 #define USB_COUNT7_RX_NUM_BLOCK_Pos (10U) | |
15737 #define USB_COUNT7_RX_NUM_BLOCK_Msk (0x1FU << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ | |
15738 #define USB_COUNT7_RX_NUM_BLOCK USB_COUNT7_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ | |
15739 #define USB_COUNT7_RX_NUM_BLOCK_0 (0x01U << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ | |
15740 #define USB_COUNT7_RX_NUM_BLOCK_1 (0x02U << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ | |
15741 #define USB_COUNT7_RX_NUM_BLOCK_2 (0x04U << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ | |
15742 #define USB_COUNT7_RX_NUM_BLOCK_3 (0x08U << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ | |
15743 #define USB_COUNT7_RX_NUM_BLOCK_4 (0x10U << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ | |
15744 | |
15745 #define USB_COUNT7_RX_BLSIZE_Pos (15U) | |
15746 #define USB_COUNT7_RX_BLSIZE_Msk (0x1U << USB_COUNT7_RX_BLSIZE_Pos) /*!< 0x00008000 */ | |
15747 #define USB_COUNT7_RX_BLSIZE USB_COUNT7_RX_BLSIZE_Msk /*!< BLock SIZE */ | |
15748 | |
15749 /*----------------------------------------------------------------------------*/ | |
15750 | |
15751 /**************** Bit definition for USB_COUNT0_RX_0 register ***************/ | |
15752 #define USB_COUNT0_RX_0_COUNT0_RX_0 (0x000003FFU) /*!< Reception Byte Count (low) */ | |
15753 | |
15754 #define USB_COUNT0_RX_0_NUM_BLOCK_0 (0x00007C00U) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ | |
15755 #define USB_COUNT0_RX_0_NUM_BLOCK_0_0 (0x00000400U) /*!< Bit 0 */ | |
15756 #define USB_COUNT0_RX_0_NUM_BLOCK_0_1 (0x00000800U) /*!< Bit 1 */ | |
15757 #define USB_COUNT0_RX_0_NUM_BLOCK_0_2 (0x00001000U) /*!< Bit 2 */ | |
15758 #define USB_COUNT0_RX_0_NUM_BLOCK_0_3 (0x00002000U) /*!< Bit 3 */ | |
15759 #define USB_COUNT0_RX_0_NUM_BLOCK_0_4 (0x00004000U) /*!< Bit 4 */ | |
15760 | |
15761 #define USB_COUNT0_RX_0_BLSIZE_0 (0x00008000U) /*!< BLock SIZE (low) */ | |
15762 | |
15763 /**************** Bit definition for USB_COUNT0_RX_1 register ***************/ | |
15764 #define USB_COUNT0_RX_1_COUNT0_RX_1 (0x03FF0000U) /*!< Reception Byte Count (high) */ | |
15765 | |
15766 #define USB_COUNT0_RX_1_NUM_BLOCK_1 (0x7C000000U) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ | |
15767 #define USB_COUNT0_RX_1_NUM_BLOCK_1_0 (0x04000000U) /*!< Bit 1 */ | |
15768 #define USB_COUNT0_RX_1_NUM_BLOCK_1_1 (0x08000000U) /*!< Bit 1 */ | |
15769 #define USB_COUNT0_RX_1_NUM_BLOCK_1_2 (0x10000000U) /*!< Bit 2 */ | |
15770 #define USB_COUNT0_RX_1_NUM_BLOCK_1_3 (0x20000000U) /*!< Bit 3 */ | |
15771 #define USB_COUNT0_RX_1_NUM_BLOCK_1_4 (0x40000000U) /*!< Bit 4 */ | |
15772 | |
15773 #define USB_COUNT0_RX_1_BLSIZE_1 (0x80000000U) /*!< BLock SIZE (high) */ | |
15774 | |
15775 /**************** Bit definition for USB_COUNT1_RX_0 register ***************/ | |
15776 #define USB_COUNT1_RX_0_COUNT1_RX_0 (0x000003FFU) /*!< Reception Byte Count (low) */ | |
15777 | |
15778 #define USB_COUNT1_RX_0_NUM_BLOCK_0 (0x00007C00U) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ | |
15779 #define USB_COUNT1_RX_0_NUM_BLOCK_0_0 (0x00000400U) /*!< Bit 0 */ | |
15780 #define USB_COUNT1_RX_0_NUM_BLOCK_0_1 (0x00000800U) /*!< Bit 1 */ | |
15781 #define USB_COUNT1_RX_0_NUM_BLOCK_0_2 (0x00001000U) /*!< Bit 2 */ | |
15782 #define USB_COUNT1_RX_0_NUM_BLOCK_0_3 (0x00002000U) /*!< Bit 3 */ | |
15783 #define USB_COUNT1_RX_0_NUM_BLOCK_0_4 (0x00004000U) /*!< Bit 4 */ | |
15784 | |
15785 #define USB_COUNT1_RX_0_BLSIZE_0 (0x00008000U) /*!< BLock SIZE (low) */ | |
15786 | |
15787 /**************** Bit definition for USB_COUNT1_RX_1 register ***************/ | |
15788 #define USB_COUNT1_RX_1_COUNT1_RX_1 (0x03FF0000U) /*!< Reception Byte Count (high) */ | |
15789 | |
15790 #define USB_COUNT1_RX_1_NUM_BLOCK_1 (0x7C000000U) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ | |
15791 #define USB_COUNT1_RX_1_NUM_BLOCK_1_0 (0x04000000U) /*!< Bit 0 */ | |
15792 #define USB_COUNT1_RX_1_NUM_BLOCK_1_1 (0x08000000U) /*!< Bit 1 */ | |
15793 #define USB_COUNT1_RX_1_NUM_BLOCK_1_2 (0x10000000U) /*!< Bit 2 */ | |
15794 #define USB_COUNT1_RX_1_NUM_BLOCK_1_3 (0x20000000U) /*!< Bit 3 */ | |
15795 #define USB_COUNT1_RX_1_NUM_BLOCK_1_4 (0x40000000U) /*!< Bit 4 */ | |
15796 | |
15797 #define USB_COUNT1_RX_1_BLSIZE_1 (0x80000000U) /*!< BLock SIZE (high) */ | |
15798 | |
15799 /**************** Bit definition for USB_COUNT2_RX_0 register ***************/ | |
15800 #define USB_COUNT2_RX_0_COUNT2_RX_0 (0x000003FFU) /*!< Reception Byte Count (low) */ | |
15801 | |
15802 #define USB_COUNT2_RX_0_NUM_BLOCK_0 (0x00007C00U) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ | |
15803 #define USB_COUNT2_RX_0_NUM_BLOCK_0_0 (0x00000400U) /*!< Bit 0 */ | |
15804 #define USB_COUNT2_RX_0_NUM_BLOCK_0_1 (0x00000800U) /*!< Bit 1 */ | |
15805 #define USB_COUNT2_RX_0_NUM_BLOCK_0_2 (0x00001000U) /*!< Bit 2 */ | |
15806 #define USB_COUNT2_RX_0_NUM_BLOCK_0_3 (0x00002000U) /*!< Bit 3 */ | |
15807 #define USB_COUNT2_RX_0_NUM_BLOCK_0_4 (0x00004000U) /*!< Bit 4 */ | |
15808 | |
15809 #define USB_COUNT2_RX_0_BLSIZE_0 (0x00008000U) /*!< BLock SIZE (low) */ | |
15810 | |
15811 /**************** Bit definition for USB_COUNT2_RX_1 register ***************/ | |
15812 #define USB_COUNT2_RX_1_COUNT2_RX_1 (0x03FF0000U) /*!< Reception Byte Count (high) */ | |
15813 | |
15814 #define USB_COUNT2_RX_1_NUM_BLOCK_1 (0x7C000000U) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ | |
15815 #define USB_COUNT2_RX_1_NUM_BLOCK_1_0 (0x04000000U) /*!< Bit 0 */ | |
15816 #define USB_COUNT2_RX_1_NUM_BLOCK_1_1 (0x08000000U) /*!< Bit 1 */ | |
15817 #define USB_COUNT2_RX_1_NUM_BLOCK_1_2 (0x10000000U) /*!< Bit 2 */ | |
15818 #define USB_COUNT2_RX_1_NUM_BLOCK_1_3 (0x20000000U) /*!< Bit 3 */ | |
15819 #define USB_COUNT2_RX_1_NUM_BLOCK_1_4 (0x40000000U) /*!< Bit 4 */ | |
15820 | |
15821 #define USB_COUNT2_RX_1_BLSIZE_1 (0x80000000U) /*!< BLock SIZE (high) */ | |
15822 | |
15823 /**************** Bit definition for USB_COUNT3_RX_0 register ***************/ | |
15824 #define USB_COUNT3_RX_0_COUNT3_RX_0 (0x000003FFU) /*!< Reception Byte Count (low) */ | |
15825 | |
15826 #define USB_COUNT3_RX_0_NUM_BLOCK_0 (0x00007C00U) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ | |
15827 #define USB_COUNT3_RX_0_NUM_BLOCK_0_0 (0x00000400U) /*!< Bit 0 */ | |
15828 #define USB_COUNT3_RX_0_NUM_BLOCK_0_1 (0x00000800U) /*!< Bit 1 */ | |
15829 #define USB_COUNT3_RX_0_NUM_BLOCK_0_2 (0x00001000U) /*!< Bit 2 */ | |
15830 #define USB_COUNT3_RX_0_NUM_BLOCK_0_3 (0x00002000U) /*!< Bit 3 */ | |
15831 #define USB_COUNT3_RX_0_NUM_BLOCK_0_4 (0x00004000U) /*!< Bit 4 */ | |
15832 | |
15833 #define USB_COUNT3_RX_0_BLSIZE_0 (0x00008000U) /*!< BLock SIZE (low) */ | |
15834 | |
15835 /**************** Bit definition for USB_COUNT3_RX_1 register ***************/ | |
15836 #define USB_COUNT3_RX_1_COUNT3_RX_1 (0x03FF0000U) /*!< Reception Byte Count (high) */ | |
15837 | |
15838 #define USB_COUNT3_RX_1_NUM_BLOCK_1 (0x7C000000U) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ | |
15839 #define USB_COUNT3_RX_1_NUM_BLOCK_1_0 (0x04000000U) /*!< Bit 0 */ | |
15840 #define USB_COUNT3_RX_1_NUM_BLOCK_1_1 (0x08000000U) /*!< Bit 1 */ | |
15841 #define USB_COUNT3_RX_1_NUM_BLOCK_1_2 (0x10000000U) /*!< Bit 2 */ | |
15842 #define USB_COUNT3_RX_1_NUM_BLOCK_1_3 (0x20000000U) /*!< Bit 3 */ | |
15843 #define USB_COUNT3_RX_1_NUM_BLOCK_1_4 (0x40000000U) /*!< Bit 4 */ | |
15844 | |
15845 #define USB_COUNT3_RX_1_BLSIZE_1 (0x80000000U) /*!< BLock SIZE (high) */ | |
15846 | |
15847 /**************** Bit definition for USB_COUNT4_RX_0 register ***************/ | |
15848 #define USB_COUNT4_RX_0_COUNT4_RX_0 (0x000003FFU) /*!< Reception Byte Count (low) */ | |
15849 | |
15850 #define USB_COUNT4_RX_0_NUM_BLOCK_0 (0x00007C00U) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ | |
15851 #define USB_COUNT4_RX_0_NUM_BLOCK_0_0 (0x00000400U) /*!< Bit 0 */ | |
15852 #define USB_COUNT4_RX_0_NUM_BLOCK_0_1 (0x00000800U) /*!< Bit 1 */ | |
15853 #define USB_COUNT4_RX_0_NUM_BLOCK_0_2 (0x00001000U) /*!< Bit 2 */ | |
15854 #define USB_COUNT4_RX_0_NUM_BLOCK_0_3 (0x00002000U) /*!< Bit 3 */ | |
15855 #define USB_COUNT4_RX_0_NUM_BLOCK_0_4 (0x00004000U) /*!< Bit 4 */ | |
15856 | |
15857 #define USB_COUNT4_RX_0_BLSIZE_0 (0x00008000U) /*!< BLock SIZE (low) */ | |
15858 | |
15859 /**************** Bit definition for USB_COUNT4_RX_1 register ***************/ | |
15860 #define USB_COUNT4_RX_1_COUNT4_RX_1 (0x03FF0000U) /*!< Reception Byte Count (high) */ | |
15861 | |
15862 #define USB_COUNT4_RX_1_NUM_BLOCK_1 (0x7C000000U) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ | |
15863 #define USB_COUNT4_RX_1_NUM_BLOCK_1_0 (0x04000000U) /*!< Bit 0 */ | |
15864 #define USB_COUNT4_RX_1_NUM_BLOCK_1_1 (0x08000000U) /*!< Bit 1 */ | |
15865 #define USB_COUNT4_RX_1_NUM_BLOCK_1_2 (0x10000000U) /*!< Bit 2 */ | |
15866 #define USB_COUNT4_RX_1_NUM_BLOCK_1_3 (0x20000000U) /*!< Bit 3 */ | |
15867 #define USB_COUNT4_RX_1_NUM_BLOCK_1_4 (0x40000000U) /*!< Bit 4 */ | |
15868 | |
15869 #define USB_COUNT4_RX_1_BLSIZE_1 (0x80000000U) /*!< BLock SIZE (high) */ | |
15870 | |
15871 /**************** Bit definition for USB_COUNT5_RX_0 register ***************/ | |
15872 #define USB_COUNT5_RX_0_COUNT5_RX_0 (0x000003FFU) /*!< Reception Byte Count (low) */ | |
15873 | |
15874 #define USB_COUNT5_RX_0_NUM_BLOCK_0 (0x00007C00U) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ | |
15875 #define USB_COUNT5_RX_0_NUM_BLOCK_0_0 (0x00000400U) /*!< Bit 0 */ | |
15876 #define USB_COUNT5_RX_0_NUM_BLOCK_0_1 (0x00000800U) /*!< Bit 1 */ | |
15877 #define USB_COUNT5_RX_0_NUM_BLOCK_0_2 (0x00001000U) /*!< Bit 2 */ | |
15878 #define USB_COUNT5_RX_0_NUM_BLOCK_0_3 (0x00002000U) /*!< Bit 3 */ | |
15879 #define USB_COUNT5_RX_0_NUM_BLOCK_0_4 (0x00004000U) /*!< Bit 4 */ | |
15880 | |
15881 #define USB_COUNT5_RX_0_BLSIZE_0 (0x00008000U) /*!< BLock SIZE (low) */ | |
15882 | |
15883 /**************** Bit definition for USB_COUNT5_RX_1 register ***************/ | |
15884 #define USB_COUNT5_RX_1_COUNT5_RX_1 (0x03FF0000U) /*!< Reception Byte Count (high) */ | |
15885 | |
15886 #define USB_COUNT5_RX_1_NUM_BLOCK_1 (0x7C000000U) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ | |
15887 #define USB_COUNT5_RX_1_NUM_BLOCK_1_0 (0x04000000U) /*!< Bit 0 */ | |
15888 #define USB_COUNT5_RX_1_NUM_BLOCK_1_1 (0x08000000U) /*!< Bit 1 */ | |
15889 #define USB_COUNT5_RX_1_NUM_BLOCK_1_2 (0x10000000U) /*!< Bit 2 */ | |
15890 #define USB_COUNT5_RX_1_NUM_BLOCK_1_3 (0x20000000U) /*!< Bit 3 */ | |
15891 #define USB_COUNT5_RX_1_NUM_BLOCK_1_4 (0x40000000U) /*!< Bit 4 */ | |
15892 | |
15893 #define USB_COUNT5_RX_1_BLSIZE_1 (0x80000000U) /*!< BLock SIZE (high) */ | |
15894 | |
15895 /*************** Bit definition for USB_COUNT6_RX_0 register ***************/ | |
15896 #define USB_COUNT6_RX_0_COUNT6_RX_0 (0x000003FFU) /*!< Reception Byte Count (low) */ | |
15897 | |
15898 #define USB_COUNT6_RX_0_NUM_BLOCK_0 (0x00007C00U) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ | |
15899 #define USB_COUNT6_RX_0_NUM_BLOCK_0_0 (0x00000400U) /*!< Bit 0 */ | |
15900 #define USB_COUNT6_RX_0_NUM_BLOCK_0_1 (0x00000800U) /*!< Bit 1 */ | |
15901 #define USB_COUNT6_RX_0_NUM_BLOCK_0_2 (0x00001000U) /*!< Bit 2 */ | |
15902 #define USB_COUNT6_RX_0_NUM_BLOCK_0_3 (0x00002000U) /*!< Bit 3 */ | |
15903 #define USB_COUNT6_RX_0_NUM_BLOCK_0_4 (0x00004000U) /*!< Bit 4 */ | |
15904 | |
15905 #define USB_COUNT6_RX_0_BLSIZE_0 (0x00008000U) /*!< BLock SIZE (low) */ | |
15906 | |
15907 /**************** Bit definition for USB_COUNT6_RX_1 register ***************/ | |
15908 #define USB_COUNT6_RX_1_COUNT6_RX_1 (0x03FF0000U) /*!< Reception Byte Count (high) */ | |
15909 | |
15910 #define USB_COUNT6_RX_1_NUM_BLOCK_1 (0x7C000000U) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ | |
15911 #define USB_COUNT6_RX_1_NUM_BLOCK_1_0 (0x04000000U) /*!< Bit 0 */ | |
15912 #define USB_COUNT6_RX_1_NUM_BLOCK_1_1 (0x08000000U) /*!< Bit 1 */ | |
15913 #define USB_COUNT6_RX_1_NUM_BLOCK_1_2 (0x10000000U) /*!< Bit 2 */ | |
15914 #define USB_COUNT6_RX_1_NUM_BLOCK_1_3 (0x20000000U) /*!< Bit 3 */ | |
15915 #define USB_COUNT6_RX_1_NUM_BLOCK_1_4 (0x40000000U) /*!< Bit 4 */ | |
15916 | |
15917 #define USB_COUNT6_RX_1_BLSIZE_1 (0x80000000U) /*!< BLock SIZE (high) */ | |
15918 | |
15919 /*************** Bit definition for USB_COUNT7_RX_0 register ****************/ | |
15920 #define USB_COUNT7_RX_0_COUNT7_RX_0 (0x000003FFU) /*!< Reception Byte Count (low) */ | |
15921 | |
15922 #define USB_COUNT7_RX_0_NUM_BLOCK_0 (0x00007C00U) /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ | |
15923 #define USB_COUNT7_RX_0_NUM_BLOCK_0_0 (0x00000400U) /*!< Bit 0 */ | |
15924 #define USB_COUNT7_RX_0_NUM_BLOCK_0_1 (0x00000800U) /*!< Bit 1 */ | |
15925 #define USB_COUNT7_RX_0_NUM_BLOCK_0_2 (0x00001000U) /*!< Bit 2 */ | |
15926 #define USB_COUNT7_RX_0_NUM_BLOCK_0_3 (0x00002000U) /*!< Bit 3 */ | |
15927 #define USB_COUNT7_RX_0_NUM_BLOCK_0_4 (0x00004000U) /*!< Bit 4 */ | |
15928 | |
15929 #define USB_COUNT7_RX_0_BLSIZE_0 (0x00008000U) /*!< BLock SIZE (low) */ | |
15930 | |
15931 /*************** Bit definition for USB_COUNT7_RX_1 register ****************/ | |
15932 #define USB_COUNT7_RX_1_COUNT7_RX_1 (0x03FF0000U) /*!< Reception Byte Count (high) */ | |
15933 | |
15934 #define USB_COUNT7_RX_1_NUM_BLOCK_1 (0x7C000000U) /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ | |
15935 #define USB_COUNT7_RX_1_NUM_BLOCK_1_0 (0x04000000U) /*!< Bit 0 */ | |
15936 #define USB_COUNT7_RX_1_NUM_BLOCK_1_1 (0x08000000U) /*!< Bit 1 */ | |
15937 #define USB_COUNT7_RX_1_NUM_BLOCK_1_2 (0x10000000U) /*!< Bit 2 */ | |
15938 #define USB_COUNT7_RX_1_NUM_BLOCK_1_3 (0x20000000U) /*!< Bit 3 */ | |
15939 #define USB_COUNT7_RX_1_NUM_BLOCK_1_4 (0x40000000U) /*!< Bit 4 */ | |
15940 | |
15941 #define USB_COUNT7_RX_1_BLSIZE_1 (0x80000000U) /*!< BLock SIZE (high) */ | |
15942 | |
15943 | |
15944 /** | |
15945 * @} | |
15946 */ | |
15947 | |
15948 /** | |
15949 * @} | |
15950 */ | |
15951 | |
15952 /** @addtogroup Exported_macros | |
15953 * @{ | |
15954 */ | |
15955 | |
15956 /******************************* ADC Instances ********************************/ | |
15957 #define IS_ADC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == ADC1) | |
15958 | |
15959 #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_COMMON) | |
15960 | |
15961 /******************************* AES Instances ********************************/ | |
15962 #define IS_AES_ALL_INSTANCE(INSTANCE) ((INSTANCE) == AES) | |
15963 | |
15964 /******************************** CAN Instances ******************************/ | |
15965 #define IS_CAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CAN1) | |
15966 | |
15967 /******************************** COMP Instances ******************************/ | |
15968 #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \ | |
15969 ((INSTANCE) == COMP2)) | |
15970 | |
15971 #define IS_COMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == COMP12_COMMON) | |
15972 | |
15973 /******************** COMP Instances with window mode capability **************/ | |
15974 #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2) | |
15975 | |
15976 /******************************* CRC Instances ********************************/ | |
15977 #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC) | |
15978 | |
15979 /******************************* DAC Instances ********************************/ | |
15980 #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1) | |
15981 | |
15982 /****************************** DFSDM Instances *******************************/ | |
15983 #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0) || \ | |
15984 ((INSTANCE) == DFSDM1_Filter1)) | |
15985 | |
15986 #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0) || \ | |
15987 ((INSTANCE) == DFSDM1_Channel1) || \ | |
15988 ((INSTANCE) == DFSDM1_Channel2) || \ | |
15989 ((INSTANCE) == DFSDM1_Channel3)) | |
15990 | |
15991 /******************************** DMA Instances *******************************/ | |
15992 #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \ | |
15993 ((INSTANCE) == DMA1_Channel2) || \ | |
15994 ((INSTANCE) == DMA1_Channel3) || \ | |
15995 ((INSTANCE) == DMA1_Channel4) || \ | |
15996 ((INSTANCE) == DMA1_Channel5) || \ | |
15997 ((INSTANCE) == DMA1_Channel6) || \ | |
15998 ((INSTANCE) == DMA1_Channel7) || \ | |
15999 ((INSTANCE) == DMA2_Channel1) || \ | |
16000 ((INSTANCE) == DMA2_Channel2) || \ | |
16001 ((INSTANCE) == DMA2_Channel3) || \ | |
16002 ((INSTANCE) == DMA2_Channel4) || \ | |
16003 ((INSTANCE) == DMA2_Channel5) || \ | |
16004 ((INSTANCE) == DMA2_Channel6) || \ | |
16005 ((INSTANCE) == DMA2_Channel7)) | |
16006 | |
16007 /******************************* GPIO Instances *******************************/ | |
16008 #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \ | |
16009 ((INSTANCE) == GPIOB) || \ | |
16010 ((INSTANCE) == GPIOC) || \ | |
16011 ((INSTANCE) == GPIOD) || \ | |
16012 ((INSTANCE) == GPIOE) || \ | |
16013 ((INSTANCE) == GPIOH)) | |
16014 | |
16015 /******************************* GPIO AF Instances ****************************/ | |
16016 /* On L4, all GPIO Bank support AF */ | |
16017 #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) | |
16018 | |
16019 /**************************** GPIO Lock Instances *****************************/ | |
16020 /* On L4, all GPIO Bank support the Lock mechanism */ | |
16021 #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) | |
16022 | |
16023 /******************************** I2C Instances *******************************/ | |
16024 #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ | |
16025 ((INSTANCE) == I2C2) || \ | |
16026 ((INSTANCE) == I2C3) || \ | |
16027 ((INSTANCE) == I2C4)) | |
16028 | |
16029 /****************** I2C Instances : wakeup capability from stop modes *********/ | |
16030 #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE) | |
16031 | |
16032 /****************************** OPAMP Instances *******************************/ | |
16033 #define IS_OPAMP_ALL_INSTANCE(INSTANCE) ((INSTANCE) == OPAMP1) | |
16034 | |
16035 #define IS_OPAMP_COMMON_INSTANCE(COMMON_INSTANCE) ((COMMON_INSTANCE) == OPAMP1_COMMON) | |
16036 | |
16037 /******************************* QSPI Instances *******************************/ | |
16038 #define IS_QSPI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == QUADSPI) | |
16039 | |
16040 /******************************* RNG Instances ********************************/ | |
16041 #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG) | |
16042 | |
16043 /****************************** RTC Instances *********************************/ | |
16044 #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC) | |
16045 | |
16046 /******************************** SAI Instances *******************************/ | |
16047 #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A) || \ | |
16048 ((INSTANCE) == SAI1_Block_B)) | |
16049 | |
16050 /****************************** SDMMC Instances *******************************/ | |
16051 #define IS_SDMMC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SDMMC1) | |
16052 | |
16053 /****************************** SMBUS Instances *******************************/ | |
16054 #define IS_SMBUS_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ | |
16055 ((INSTANCE) == I2C2) || \ | |
16056 ((INSTANCE) == I2C3) || \ | |
16057 ((INSTANCE) == I2C4)) | |
16058 | |
16059 /******************************** SPI Instances *******************************/ | |
16060 #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \ | |
16061 ((INSTANCE) == SPI2) || \ | |
16062 ((INSTANCE) == SPI3)) | |
16063 | |
16064 /****************** LPTIM Instances : All supported instances *****************/ | |
16065 #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1) || \ | |
16066 ((INSTANCE) == LPTIM2)) | |
16067 | |
16068 /****************** TIM Instances : All supported instances *******************/ | |
16069 #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16070 ((INSTANCE) == TIM2) || \ | |
16071 ((INSTANCE) == TIM3) || \ | |
16072 ((INSTANCE) == TIM6) || \ | |
16073 ((INSTANCE) == TIM15) || \ | |
16074 ((INSTANCE) == TIM16)) | |
16075 | |
16076 /****************** TIM Instances : supporting 32 bits counter ****************/ | |
16077 #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) ((INSTANCE) == TIM2) | |
16078 | |
16079 /****************** TIM Instances : supporting the break function *************/ | |
16080 #define IS_TIM_BREAK_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16081 ((INSTANCE) == TIM15) || \ | |
16082 ((INSTANCE) == TIM16)) | |
16083 | |
16084 /************** TIM Instances : supporting Break source selection *************/ | |
16085 #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16086 ((INSTANCE) == TIM15) || \ | |
16087 ((INSTANCE) == TIM16)) | |
16088 | |
16089 /****************** TIM Instances : supporting 2 break inputs *****************/ | |
16090 #define IS_TIM_BKIN2_INSTANCE(INSTANCE) ((INSTANCE) == TIM1) | |
16091 | |
16092 /************* TIM Instances : at least 1 capture/compare channel *************/ | |
16093 #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16094 ((INSTANCE) == TIM2) || \ | |
16095 ((INSTANCE) == TIM3) || \ | |
16096 ((INSTANCE) == TIM15) || \ | |
16097 ((INSTANCE) == TIM16)) | |
16098 | |
16099 /************ TIM Instances : at least 2 capture/compare channels *************/ | |
16100 #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16101 ((INSTANCE) == TIM2) || \ | |
16102 ((INSTANCE) == TIM3) || \ | |
16103 ((INSTANCE) == TIM15)) | |
16104 | |
16105 /************ TIM Instances : at least 3 capture/compare channels *************/ | |
16106 #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16107 ((INSTANCE) == TIM2) || \ | |
16108 ((INSTANCE) == TIM3)) | |
16109 | |
16110 /************ TIM Instances : at least 4 capture/compare channels *************/ | |
16111 #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16112 ((INSTANCE) == TIM2) || \ | |
16113 ((INSTANCE) == TIM3)) | |
16114 | |
16115 /****************** TIM Instances : at least 5 capture/compare channels *******/ | |
16116 #define IS_TIM_CC5_INSTANCE(INSTANCE) ((INSTANCE) == TIM1) | |
16117 | |
16118 /****************** TIM Instances : at least 6 capture/compare channels *******/ | |
16119 #define IS_TIM_CC6_INSTANCE(INSTANCE) ((INSTANCE) == TIM1) | |
16120 | |
16121 /************ TIM Instances : DMA requests generation (TIMx_DIER.COMDE) *******/ | |
16122 #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16123 ((INSTANCE) == TIM15) || \ | |
16124 ((INSTANCE) == TIM16)) | |
16125 | |
16126 /****************** TIM Instances : DMA requests generation (TIMx_DIER.UDE) ***/ | |
16127 #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16128 ((INSTANCE) == TIM2) || \ | |
16129 ((INSTANCE) == TIM3) || \ | |
16130 ((INSTANCE) == TIM6) || \ | |
16131 ((INSTANCE) == TIM15) || \ | |
16132 ((INSTANCE) == TIM16)) | |
16133 | |
16134 /************ TIM Instances : DMA requests generation (TIMx_DIER.CCxDE) *******/ | |
16135 #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16136 ((INSTANCE) == TIM2) || \ | |
16137 ((INSTANCE) == TIM3) || \ | |
16138 ((INSTANCE) == TIM15) || \ | |
16139 ((INSTANCE) == TIM16)) | |
16140 | |
16141 /******************** TIM Instances : DMA burst feature ***********************/ | |
16142 #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16143 ((INSTANCE) == TIM2) || \ | |
16144 ((INSTANCE) == TIM3) || \ | |
16145 ((INSTANCE) == TIM15) || \ | |
16146 ((INSTANCE) == TIM16)) | |
16147 | |
16148 /******************* TIM Instances : output(s) available **********************/ | |
16149 #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \ | |
16150 ((((INSTANCE) == TIM1) && \ | |
16151 (((CHANNEL) == TIM_CHANNEL_1) || \ | |
16152 ((CHANNEL) == TIM_CHANNEL_2) || \ | |
16153 ((CHANNEL) == TIM_CHANNEL_3) || \ | |
16154 ((CHANNEL) == TIM_CHANNEL_4) || \ | |
16155 ((CHANNEL) == TIM_CHANNEL_5) || \ | |
16156 ((CHANNEL) == TIM_CHANNEL_6))) \ | |
16157 || \ | |
16158 (((INSTANCE) == TIM2) && \ | |
16159 (((CHANNEL) == TIM_CHANNEL_1) || \ | |
16160 ((CHANNEL) == TIM_CHANNEL_2) || \ | |
16161 ((CHANNEL) == TIM_CHANNEL_3) || \ | |
16162 ((CHANNEL) == TIM_CHANNEL_4))) \ | |
16163 || \ | |
16164 (((INSTANCE) == TIM3) && \ | |
16165 (((CHANNEL) == TIM_CHANNEL_1) || \ | |
16166 ((CHANNEL) == TIM_CHANNEL_2) || \ | |
16167 ((CHANNEL) == TIM_CHANNEL_3) || \ | |
16168 ((CHANNEL) == TIM_CHANNEL_4))) \ | |
16169 || \ | |
16170 (((INSTANCE) == TIM15) && \ | |
16171 (((CHANNEL) == TIM_CHANNEL_1) || \ | |
16172 ((CHANNEL) == TIM_CHANNEL_2))) \ | |
16173 || \ | |
16174 (((INSTANCE) == TIM16) && \ | |
16175 (((CHANNEL) == TIM_CHANNEL_1)))) | |
16176 | |
16177 /****************** TIM Instances : supporting complementary output(s) ********/ | |
16178 #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \ | |
16179 ((((INSTANCE) == TIM1) && \ | |
16180 (((CHANNEL) == TIM_CHANNEL_1) || \ | |
16181 ((CHANNEL) == TIM_CHANNEL_2) || \ | |
16182 ((CHANNEL) == TIM_CHANNEL_3))) \ | |
16183 || \ | |
16184 (((INSTANCE) == TIM15) && \ | |
16185 ((CHANNEL) == TIM_CHANNEL_1)) \ | |
16186 || \ | |
16187 (((INSTANCE) == TIM16) && \ | |
16188 ((CHANNEL) == TIM_CHANNEL_1))) | |
16189 | |
16190 /****************** TIM Instances : supporting clock division *****************/ | |
16191 #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16192 ((INSTANCE) == TIM2) || \ | |
16193 ((INSTANCE) == TIM3) || \ | |
16194 ((INSTANCE) == TIM15) || \ | |
16195 ((INSTANCE) == TIM16)) | |
16196 | |
16197 /****** TIM Instances : supporting external clock mode 1 for ETRF input *******/ | |
16198 #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16199 ((INSTANCE) == TIM2) || \ | |
16200 ((INSTANCE) == TIM3) || \ | |
16201 ((INSTANCE) == TIM15)) | |
16202 | |
16203 /****** TIM Instances : supporting external clock mode 2 for ETRF input *******/ | |
16204 #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16205 ((INSTANCE) == TIM2) || \ | |
16206 ((INSTANCE) == TIM3)) | |
16207 | |
16208 /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/ | |
16209 #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16210 ((INSTANCE) == TIM2) || \ | |
16211 ((INSTANCE) == TIM3) || \ | |
16212 ((INSTANCE) == TIM15)) | |
16213 | |
16214 /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/ | |
16215 #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16216 ((INSTANCE) == TIM2) || \ | |
16217 ((INSTANCE) == TIM3) || \ | |
16218 ((INSTANCE) == TIM15)) | |
16219 | |
16220 /****************** TIM Instances : supporting combined 3-phase PWM mode ******/ | |
16221 #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) ((INSTANCE) == TIM1) | |
16222 | |
16223 /****************** TIM Instances : supporting commutation event generation ***/ | |
16224 #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16225 ((INSTANCE) == TIM15) || \ | |
16226 ((INSTANCE) == TIM16)) | |
16227 | |
16228 /****************** TIM Instances : supporting counting mode selection ********/ | |
16229 #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16230 ((INSTANCE) == TIM2) || \ | |
16231 ((INSTANCE) == TIM3)) | |
16232 | |
16233 /****************** TIM Instances : supporting encoder interface **************/ | |
16234 #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16235 ((INSTANCE) == TIM2) || \ | |
16236 ((INSTANCE) == TIM3)) | |
16237 | |
16238 /****************** TIM Instances : supporting Hall sensor interface **********/ | |
16239 #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16240 ((INSTANCE) == TIM2) || \ | |
16241 ((INSTANCE) == TIM3)) | |
16242 | |
16243 /**************** TIM Instances : external trigger input available ************/ | |
16244 #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16245 ((INSTANCE) == TIM2) || \ | |
16246 ((INSTANCE) == TIM3)) | |
16247 | |
16248 /************* TIM Instances : supporting ETR source selection ***************/ | |
16249 #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16250 ((INSTANCE) == TIM2) || \ | |
16251 ((INSTANCE) == TIM3)) | |
16252 | |
16253 /****** TIM Instances : Master mode available (TIMx_CR2.MMS available )********/ | |
16254 #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16255 ((INSTANCE) == TIM2) || \ | |
16256 ((INSTANCE) == TIM3) || \ | |
16257 ((INSTANCE) == TIM6) || \ | |
16258 ((INSTANCE) == TIM15)) | |
16259 | |
16260 /*********** TIM Instances : Slave mode available (TIMx_SMCR available )*******/ | |
16261 #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16262 ((INSTANCE) == TIM2) || \ | |
16263 ((INSTANCE) == TIM3) || \ | |
16264 ((INSTANCE) == TIM15)) | |
16265 | |
16266 /****************** TIM Instances : supporting OCxREF clear *******************/ | |
16267 #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16268 ((INSTANCE) == TIM2) || \ | |
16269 ((INSTANCE) == TIM3)) | |
16270 | |
16271 /****************** TIM Instances : remapping capability **********************/ | |
16272 #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16273 ((INSTANCE) == TIM2) || \ | |
16274 ((INSTANCE) == TIM3) || \ | |
16275 ((INSTANCE) == TIM15) || \ | |
16276 ((INSTANCE) == TIM16)) | |
16277 | |
16278 /****************** TIM Instances : supporting repetition counter *************/ | |
16279 #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16280 ((INSTANCE) == TIM15) || \ | |
16281 ((INSTANCE) == TIM16)) | |
16282 | |
16283 /****************** TIM Instances : supporting synchronization ****************/ | |
16284 #define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE) | |
16285 | |
16286 /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/ | |
16287 #define IS_TIM_TRGO2_INSTANCE(INSTANCE) ((INSTANCE) == TIM1) | |
16288 | |
16289 /******************* TIM Instances : Timer input XOR function *****************/ | |
16290 #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ | |
16291 ((INSTANCE) == TIM2) || \ | |
16292 ((INSTANCE) == TIM3) || \ | |
16293 ((INSTANCE) == TIM15)) | |
16294 | |
16295 /****************************** TSC Instances *********************************/ | |
16296 #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC) | |
16297 | |
16298 /******************** USART Instances : Synchronous mode **********************/ | |
16299 #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16300 ((INSTANCE) == USART2) || \ | |
16301 ((INSTANCE) == USART3)) | |
16302 | |
16303 /******************** UART Instances : Asynchronous mode **********************/ | |
16304 #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16305 ((INSTANCE) == USART2) || \ | |
16306 ((INSTANCE) == USART3) || \ | |
16307 ((INSTANCE) == UART4)) | |
16308 | |
16309 /****************** UART Instances : Auto Baud Rate detection ****************/ | |
16310 #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16311 ((INSTANCE) == USART2) || \ | |
16312 ((INSTANCE) == USART3) || \ | |
16313 ((INSTANCE) == UART4)) | |
16314 | |
16315 /****************** UART Instances : Driver Enable *****************/ | |
16316 #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16317 ((INSTANCE) == USART2) || \ | |
16318 ((INSTANCE) == USART3) || \ | |
16319 ((INSTANCE) == UART4) || \ | |
16320 ((INSTANCE) == LPUART1)) | |
16321 | |
16322 /******************** UART Instances : Half-Duplex mode **********************/ | |
16323 #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16324 ((INSTANCE) == USART2) || \ | |
16325 ((INSTANCE) == USART3) || \ | |
16326 ((INSTANCE) == UART4) || \ | |
16327 ((INSTANCE) == LPUART1)) | |
16328 | |
16329 /****************** UART Instances : Hardware Flow control ********************/ | |
16330 #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16331 ((INSTANCE) == USART2) || \ | |
16332 ((INSTANCE) == USART3) || \ | |
16333 ((INSTANCE) == UART4) || \ | |
16334 ((INSTANCE) == LPUART1)) | |
16335 | |
16336 /******************** UART Instances : LIN mode **********************/ | |
16337 #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16338 ((INSTANCE) == USART2) || \ | |
16339 ((INSTANCE) == USART3) || \ | |
16340 ((INSTANCE) == UART4)) | |
16341 | |
16342 /******************** UART Instances : Wake-up from Stop mode **********************/ | |
16343 #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16344 ((INSTANCE) == USART2) || \ | |
16345 ((INSTANCE) == USART3) || \ | |
16346 ((INSTANCE) == UART4) || \ | |
16347 ((INSTANCE) == LPUART1)) | |
16348 | |
16349 /*********************** UART Instances : IRDA mode ***************************/ | |
16350 #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16351 ((INSTANCE) == USART2) || \ | |
16352 ((INSTANCE) == USART3) || \ | |
16353 ((INSTANCE) == UART4)) | |
16354 | |
16355 /********************* USART Instances : Smard card mode ***********************/ | |
16356 #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ | |
16357 ((INSTANCE) == USART2) || \ | |
16358 ((INSTANCE) == USART3)) | |
16359 | |
16360 /******************** LPUART Instance *****************************************/ | |
16361 #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1) | |
16362 | |
16363 /****************************** IWDG Instances ********************************/ | |
16364 #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG) | |
16365 | |
16366 /****************************** WWDG Instances ********************************/ | |
16367 #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG) | |
16368 | |
16369 /******************************* USB Instances *******************************/ | |
16370 #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB) | |
16371 | |
16372 /** | |
16373 * @} | |
16374 */ | |
16375 | |
16376 | |
16377 /******************************************************************************/ | |
16378 /* For a painless codes migration between the STM32L4xx device product */ | |
16379 /* lines, the aliases defined below are put in place to overcome the */ | |
16380 /* differences in the interrupt handlers and IRQn definitions. */ | |
16381 /* No need to update developed interrupt code when moving across */ | |
16382 /* product lines within the same STM32L4 Family */ | |
16383 /******************************************************************************/ | |
16384 | |
16385 /* Aliases for __IRQn */ | |
16386 #define ADC1_2_IRQn ADC1_IRQn | |
16387 #define TIM1_TRG_COM_TIM17_IRQn TIM1_TRG_COM_IRQn | |
16388 #define HASH_RNG_IRQn RNG_IRQn | |
16389 #define HASH_CRS_IRQn CRS_IRQn | |
16390 #define USB_FS_IRQn USB_IRQn | |
16391 #define DFSDM0_IRQn DFSDM1_FLT0_IRQn | |
16392 #define DFSDM1_IRQn DFSDM1_FLT1_IRQn | |
16393 | |
16394 /* Aliases for __IRQHandler */ | |
16395 #define ADC1_2_IRQHandler ADC1_IRQHandler | |
16396 #define TIM1_TRG_COM_TIM17_IRQHandler TIM1_TRG_COM_IRQHandler | |
16397 #define HASH_RNG_IRQHandler RNG_IRQHandler | |
16398 #define HASH_CRS_IRQHandler CRS_IRQHandler | |
16399 #define USB_FS_IRQHandler USB_IRQHandler | |
16400 #define DFSDM0_IRQHandler DFSDM1_FLT0_IRQHandler | |
16401 #define DFSDM1_IRQHandler DFSDM1_FLT1_IRQHandler | |
16402 | |
16403 #ifdef __cplusplus | |
16404 } | |
16405 #endif /* __cplusplus */ | |
16406 | |
16407 #endif /* __STM32L462xx_H */ | |
16408 | |
16409 /** | |
16410 * @} | |
16411 */ | |
16412 | |
16413 /** | |
16414 * @} | |
16415 */ | |
16416 | |
16417 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |