Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | /** |
2 | ****************************************************************************** |
||
3 | * @file stm32f103x6.h |
||
4 | * @author MCD Application Team |
||
5 | * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Header File. |
||
6 | * This file contains all the peripheral register's definitions, bits |
||
7 | * definitions and memory mapping for STM32F1xx devices. |
||
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 | * |
||
9 | mjames | 17 | * <h2><center>© Copyright (c) 2017 STMicroelectronics. |
18 | * All rights reserved.</center></h2> |
||
2 | mjames | 19 | * |
9 | mjames | 20 | * This software component is licensed by ST under BSD 3-Clause license, |
21 | * the "License"; You may not use this file except in compliance with the |
||
22 | * License. You may obtain a copy of the License at: |
||
23 | * opensource.org/licenses/BSD-3-Clause |
||
2 | mjames | 24 | * |
25 | ****************************************************************************** |
||
26 | */ |
||
27 | |||
28 | |||
29 | /** @addtogroup CMSIS |
||
30 | * @{ |
||
31 | */ |
||
32 | |||
33 | /** @addtogroup stm32f103x6 |
||
34 | * @{ |
||
35 | */ |
||
36 | |||
37 | #ifndef __STM32F103x6_H |
||
38 | #define __STM32F103x6_H |
||
39 | |||
40 | #ifdef __cplusplus |
||
41 | extern "C" { |
||
42 | #endif |
||
43 | |||
44 | /** @addtogroup Configuration_section_for_CMSIS |
||
45 | * @{ |
||
46 | */ |
||
47 | /** |
||
48 | * @brief Configuration of the Cortex-M3 Processor and Core Peripherals |
||
49 | */ |
||
50 | #define __CM3_REV 0x0200U /*!< Core Revision r2p0 */ |
||
51 | #define __MPU_PRESENT 0U /*!< Other STM32 devices does not provide an MPU */ |
||
52 | #define __NVIC_PRIO_BITS 4U /*!< STM32 uses 4 Bits for the Priority Levels */ |
||
53 | #define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */ |
||
54 | |||
55 | /** |
||
56 | * @} |
||
57 | */ |
||
58 | |||
59 | /** @addtogroup Peripheral_interrupt_number_definition |
||
60 | * @{ |
||
61 | */ |
||
62 | |||
63 | /** |
||
64 | * @brief STM32F10x Interrupt Number Definition, according to the selected device |
||
65 | * in @ref Library_configuration_section |
||
66 | */ |
||
67 | |||
68 | /*!< Interrupt Number Definition */ |
||
69 | typedef enum |
||
70 | { |
||
71 | /****** Cortex-M3 Processor Exceptions Numbers ***************************************************/ |
||
72 | NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ |
||
73 | HardFault_IRQn = -13, /*!< 3 Cortex-M3 Hard Fault Interrupt */ |
||
74 | MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ |
||
75 | BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ |
||
76 | UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ |
||
77 | SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ |
||
78 | DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ |
||
79 | PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ |
||
80 | SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ |
||
81 | |||
82 | /****** STM32 specific Interrupt Numbers *********************************************************/ |
||
83 | WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ |
||
84 | PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */ |
||
85 | TAMPER_IRQn = 2, /*!< Tamper Interrupt */ |
||
86 | RTC_IRQn = 3, /*!< RTC global Interrupt */ |
||
87 | FLASH_IRQn = 4, /*!< FLASH global Interrupt */ |
||
88 | RCC_IRQn = 5, /*!< RCC global Interrupt */ |
||
89 | EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ |
||
90 | EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ |
||
91 | EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ |
||
92 | EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ |
||
93 | EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ |
||
94 | DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */ |
||
95 | DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */ |
||
96 | DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */ |
||
97 | DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */ |
||
98 | DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */ |
||
99 | DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */ |
||
100 | DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */ |
||
101 | ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ |
||
102 | USB_HP_CAN1_TX_IRQn = 19, /*!< USB Device High Priority or CAN1 TX Interrupts */ |
||
103 | USB_LP_CAN1_RX0_IRQn = 20, /*!< USB Device Low Priority or CAN1 RX0 Interrupts */ |
||
104 | CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */ |
||
105 | CAN1_SCE_IRQn = 22, /*!< CAN1 SCE Interrupt */ |
||
106 | EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */ |
||
107 | TIM1_BRK_IRQn = 24, /*!< TIM1 Break Interrupt */ |
||
108 | TIM1_UP_IRQn = 25, /*!< TIM1 Update Interrupt */ |
||
109 | TIM1_TRG_COM_IRQn = 26, /*!< TIM1 Trigger and Commutation Interrupt */ |
||
110 | TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */ |
||
111 | TIM2_IRQn = 28, /*!< TIM2 global Interrupt */ |
||
112 | TIM3_IRQn = 29, /*!< TIM3 global Interrupt */ |
||
113 | I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt */ |
||
114 | I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */ |
||
115 | SPI1_IRQn = 35, /*!< SPI1 global Interrupt */ |
||
116 | USART1_IRQn = 37, /*!< USART1 global Interrupt */ |
||
117 | USART2_IRQn = 38, /*!< USART2 global Interrupt */ |
||
118 | EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */ |
||
119 | RTC_Alarm_IRQn = 41, /*!< RTC Alarm through EXTI Line Interrupt */ |
||
120 | USBWakeUp_IRQn = 42, /*!< USB Device WakeUp from suspend through EXTI Line Interrupt */ |
||
121 | } IRQn_Type; |
||
122 | |||
123 | /** |
||
124 | * @} |
||
125 | */ |
||
126 | |||
127 | #include "core_cm3.h" |
||
128 | #include "system_stm32f1xx.h" |
||
129 | #include <stdint.h> |
||
130 | |||
131 | /** @addtogroup Peripheral_registers_structures |
||
132 | * @{ |
||
133 | */ |
||
134 | |||
135 | /** |
||
136 | * @brief Analog to Digital Converter |
||
137 | */ |
||
138 | |||
139 | typedef struct |
||
140 | { |
||
141 | __IO uint32_t SR; |
||
142 | __IO uint32_t CR1; |
||
143 | __IO uint32_t CR2; |
||
144 | __IO uint32_t SMPR1; |
||
145 | __IO uint32_t SMPR2; |
||
146 | __IO uint32_t JOFR1; |
||
147 | __IO uint32_t JOFR2; |
||
148 | __IO uint32_t JOFR3; |
||
149 | __IO uint32_t JOFR4; |
||
150 | __IO uint32_t HTR; |
||
151 | __IO uint32_t LTR; |
||
152 | __IO uint32_t SQR1; |
||
153 | __IO uint32_t SQR2; |
||
154 | __IO uint32_t SQR3; |
||
155 | __IO uint32_t JSQR; |
||
156 | __IO uint32_t JDR1; |
||
157 | __IO uint32_t JDR2; |
||
158 | __IO uint32_t JDR3; |
||
159 | __IO uint32_t JDR4; |
||
160 | __IO uint32_t DR; |
||
161 | } ADC_TypeDef; |
||
162 | |||
163 | typedef struct |
||
164 | { |
||
165 | __IO uint32_t SR; /*!< ADC status register, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address */ |
||
166 | __IO uint32_t CR1; /*!< ADC control register 1, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x04 */ |
||
167 | __IO uint32_t CR2; /*!< ADC control register 2, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x08 */ |
||
168 | uint32_t RESERVED[16]; |
||
169 | __IO uint32_t DR; /*!< ADC data register, used for ADC multimode (bits common to several ADC instances). Address offset: ADC1 base address + 0x4C */ |
||
170 | } ADC_Common_TypeDef; |
||
171 | |||
172 | /** |
||
173 | * @brief Backup Registers |
||
174 | */ |
||
175 | |||
176 | typedef struct |
||
177 | { |
||
178 | uint32_t RESERVED0; |
||
179 | __IO uint32_t DR1; |
||
180 | __IO uint32_t DR2; |
||
181 | __IO uint32_t DR3; |
||
182 | __IO uint32_t DR4; |
||
183 | __IO uint32_t DR5; |
||
184 | __IO uint32_t DR6; |
||
185 | __IO uint32_t DR7; |
||
186 | __IO uint32_t DR8; |
||
187 | __IO uint32_t DR9; |
||
188 | __IO uint32_t DR10; |
||
189 | __IO uint32_t RTCCR; |
||
190 | __IO uint32_t CR; |
||
191 | __IO uint32_t CSR; |
||
192 | } BKP_TypeDef; |
||
193 | |||
194 | /** |
||
195 | * @brief Controller Area Network TxMailBox |
||
196 | */ |
||
197 | |||
198 | typedef struct |
||
199 | { |
||
200 | __IO uint32_t TIR; |
||
201 | __IO uint32_t TDTR; |
||
202 | __IO uint32_t TDLR; |
||
203 | __IO uint32_t TDHR; |
||
204 | } CAN_TxMailBox_TypeDef; |
||
205 | |||
206 | /** |
||
207 | * @brief Controller Area Network FIFOMailBox |
||
208 | */ |
||
209 | |||
210 | typedef struct |
||
211 | { |
||
212 | __IO uint32_t RIR; |
||
213 | __IO uint32_t RDTR; |
||
214 | __IO uint32_t RDLR; |
||
215 | __IO uint32_t RDHR; |
||
216 | } CAN_FIFOMailBox_TypeDef; |
||
217 | |||
218 | /** |
||
219 | * @brief Controller Area Network FilterRegister |
||
220 | */ |
||
221 | |||
222 | typedef struct |
||
223 | { |
||
224 | __IO uint32_t FR1; |
||
225 | __IO uint32_t FR2; |
||
226 | } CAN_FilterRegister_TypeDef; |
||
227 | |||
228 | /** |
||
229 | * @brief Controller Area Network |
||
230 | */ |
||
231 | |||
232 | typedef struct |
||
233 | { |
||
234 | __IO uint32_t MCR; |
||
235 | __IO uint32_t MSR; |
||
236 | __IO uint32_t TSR; |
||
237 | __IO uint32_t RF0R; |
||
238 | __IO uint32_t RF1R; |
||
239 | __IO uint32_t IER; |
||
240 | __IO uint32_t ESR; |
||
241 | __IO uint32_t BTR; |
||
242 | uint32_t RESERVED0[88]; |
||
243 | CAN_TxMailBox_TypeDef sTxMailBox[3]; |
||
244 | CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; |
||
245 | uint32_t RESERVED1[12]; |
||
246 | __IO uint32_t FMR; |
||
247 | __IO uint32_t FM1R; |
||
248 | uint32_t RESERVED2; |
||
249 | __IO uint32_t FS1R; |
||
250 | uint32_t RESERVED3; |
||
251 | __IO uint32_t FFA1R; |
||
252 | uint32_t RESERVED4; |
||
253 | __IO uint32_t FA1R; |
||
254 | uint32_t RESERVED5[8]; |
||
255 | CAN_FilterRegister_TypeDef sFilterRegister[14]; |
||
256 | } CAN_TypeDef; |
||
257 | |||
258 | /** |
||
259 | * @brief CRC calculation unit |
||
260 | */ |
||
261 | |||
262 | typedef struct |
||
263 | { |
||
264 | __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */ |
||
265 | __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */ |
||
266 | uint8_t RESERVED0; /*!< Reserved, Address offset: 0x05 */ |
||
267 | uint16_t RESERVED1; /*!< Reserved, Address offset: 0x06 */ |
||
268 | __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */ |
||
269 | } CRC_TypeDef; |
||
270 | |||
271 | |||
272 | /** |
||
273 | * @brief Debug MCU |
||
274 | */ |
||
275 | |||
276 | typedef struct |
||
277 | { |
||
278 | __IO uint32_t IDCODE; |
||
279 | __IO uint32_t CR; |
||
280 | }DBGMCU_TypeDef; |
||
281 | |||
282 | /** |
||
283 | * @brief DMA Controller |
||
284 | */ |
||
285 | |||
286 | typedef struct |
||
287 | { |
||
288 | __IO uint32_t CCR; |
||
289 | __IO uint32_t CNDTR; |
||
290 | __IO uint32_t CPAR; |
||
291 | __IO uint32_t CMAR; |
||
292 | } DMA_Channel_TypeDef; |
||
293 | |||
294 | typedef struct |
||
295 | { |
||
296 | __IO uint32_t ISR; |
||
297 | __IO uint32_t IFCR; |
||
298 | } DMA_TypeDef; |
||
299 | |||
300 | |||
301 | |||
302 | /** |
||
303 | * @brief External Interrupt/Event Controller |
||
304 | */ |
||
305 | |||
306 | typedef struct |
||
307 | { |
||
308 | __IO uint32_t IMR; |
||
309 | __IO uint32_t EMR; |
||
310 | __IO uint32_t RTSR; |
||
311 | __IO uint32_t FTSR; |
||
312 | __IO uint32_t SWIER; |
||
313 | __IO uint32_t PR; |
||
314 | } EXTI_TypeDef; |
||
315 | |||
316 | /** |
||
317 | * @brief FLASH Registers |
||
318 | */ |
||
319 | |||
320 | typedef struct |
||
321 | { |
||
322 | __IO uint32_t ACR; |
||
323 | __IO uint32_t KEYR; |
||
324 | __IO uint32_t OPTKEYR; |
||
325 | __IO uint32_t SR; |
||
326 | __IO uint32_t CR; |
||
327 | __IO uint32_t AR; |
||
328 | __IO uint32_t RESERVED; |
||
329 | __IO uint32_t OBR; |
||
330 | __IO uint32_t WRPR; |
||
331 | } FLASH_TypeDef; |
||
332 | |||
333 | /** |
||
334 | * @brief Option Bytes Registers |
||
335 | */ |
||
336 | |||
337 | typedef struct |
||
338 | { |
||
339 | __IO uint16_t RDP; |
||
340 | __IO uint16_t USER; |
||
341 | __IO uint16_t Data0; |
||
342 | __IO uint16_t Data1; |
||
343 | __IO uint16_t WRP0; |
||
344 | __IO uint16_t WRP1; |
||
345 | __IO uint16_t WRP2; |
||
346 | __IO uint16_t WRP3; |
||
347 | } OB_TypeDef; |
||
348 | |||
349 | /** |
||
350 | * @brief General Purpose I/O |
||
351 | */ |
||
352 | |||
353 | typedef struct |
||
354 | { |
||
355 | __IO uint32_t CRL; |
||
356 | __IO uint32_t CRH; |
||
357 | __IO uint32_t IDR; |
||
358 | __IO uint32_t ODR; |
||
359 | __IO uint32_t BSRR; |
||
360 | __IO uint32_t BRR; |
||
361 | __IO uint32_t LCKR; |
||
362 | } GPIO_TypeDef; |
||
363 | |||
364 | /** |
||
365 | * @brief Alternate Function I/O |
||
366 | */ |
||
367 | |||
368 | typedef struct |
||
369 | { |
||
370 | __IO uint32_t EVCR; |
||
371 | __IO uint32_t MAPR; |
||
372 | __IO uint32_t EXTICR[4]; |
||
373 | uint32_t RESERVED0; |
||
374 | __IO uint32_t MAPR2; |
||
375 | } AFIO_TypeDef; |
||
376 | /** |
||
377 | * @brief Inter Integrated Circuit Interface |
||
378 | */ |
||
379 | |||
380 | typedef struct |
||
381 | { |
||
382 | __IO uint32_t CR1; |
||
383 | __IO uint32_t CR2; |
||
384 | __IO uint32_t OAR1; |
||
385 | __IO uint32_t OAR2; |
||
386 | __IO uint32_t DR; |
||
387 | __IO uint32_t SR1; |
||
388 | __IO uint32_t SR2; |
||
389 | __IO uint32_t CCR; |
||
390 | __IO uint32_t TRISE; |
||
391 | } I2C_TypeDef; |
||
392 | |||
393 | /** |
||
394 | * @brief Independent WATCHDOG |
||
395 | */ |
||
396 | |||
397 | typedef struct |
||
398 | { |
||
399 | __IO uint32_t KR; /*!< Key register, Address offset: 0x00 */ |
||
400 | __IO uint32_t PR; /*!< Prescaler register, Address offset: 0x04 */ |
||
401 | __IO uint32_t RLR; /*!< Reload register, Address offset: 0x08 */ |
||
402 | __IO uint32_t SR; /*!< Status register, Address offset: 0x0C */ |
||
403 | } IWDG_TypeDef; |
||
404 | |||
405 | /** |
||
406 | * @brief Power Control |
||
407 | */ |
||
408 | |||
409 | typedef struct |
||
410 | { |
||
411 | __IO uint32_t CR; |
||
412 | __IO uint32_t CSR; |
||
413 | } PWR_TypeDef; |
||
414 | |||
415 | /** |
||
416 | * @brief Reset and Clock Control |
||
417 | */ |
||
418 | |||
419 | typedef struct |
||
420 | { |
||
421 | __IO uint32_t CR; |
||
422 | __IO uint32_t CFGR; |
||
423 | __IO uint32_t CIR; |
||
424 | __IO uint32_t APB2RSTR; |
||
425 | __IO uint32_t APB1RSTR; |
||
426 | __IO uint32_t AHBENR; |
||
427 | __IO uint32_t APB2ENR; |
||
428 | __IO uint32_t APB1ENR; |
||
429 | __IO uint32_t BDCR; |
||
430 | __IO uint32_t CSR; |
||
431 | |||
432 | |||
433 | } RCC_TypeDef; |
||
434 | |||
435 | /** |
||
436 | * @brief Real-Time Clock |
||
437 | */ |
||
438 | |||
439 | typedef struct |
||
440 | { |
||
441 | __IO uint32_t CRH; |
||
442 | __IO uint32_t CRL; |
||
443 | __IO uint32_t PRLH; |
||
444 | __IO uint32_t PRLL; |
||
445 | __IO uint32_t DIVH; |
||
446 | __IO uint32_t DIVL; |
||
447 | __IO uint32_t CNTH; |
||
448 | __IO uint32_t CNTL; |
||
449 | __IO uint32_t ALRH; |
||
450 | __IO uint32_t ALRL; |
||
451 | } RTC_TypeDef; |
||
452 | |||
453 | /** |
||
454 | * @brief Serial Peripheral Interface |
||
455 | */ |
||
456 | |||
457 | typedef struct |
||
458 | { |
||
459 | __IO uint32_t CR1; |
||
460 | __IO uint32_t CR2; |
||
461 | __IO uint32_t SR; |
||
462 | __IO uint32_t DR; |
||
463 | __IO uint32_t CRCPR; |
||
464 | __IO uint32_t RXCRCR; |
||
465 | __IO uint32_t TXCRCR; |
||
466 | __IO uint32_t I2SCFGR; |
||
467 | } SPI_TypeDef; |
||
468 | |||
469 | /** |
||
470 | * @brief TIM Timers |
||
471 | */ |
||
472 | typedef struct |
||
473 | { |
||
474 | __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */ |
||
475 | __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */ |
||
476 | __IO uint32_t SMCR; /*!< TIM slave Mode Control register, Address offset: 0x08 */ |
||
477 | __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */ |
||
478 | __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */ |
||
479 | __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */ |
||
480 | __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */ |
||
481 | __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */ |
||
482 | __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */ |
||
483 | __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */ |
||
484 | __IO uint32_t PSC; /*!< TIM prescaler register, Address offset: 0x28 */ |
||
485 | __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */ |
||
486 | __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */ |
||
487 | __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */ |
||
488 | __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */ |
||
489 | __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */ |
||
490 | __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */ |
||
491 | __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */ |
||
492 | __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */ |
||
493 | __IO uint32_t DMAR; /*!< TIM DMA address for full transfer register, Address offset: 0x4C */ |
||
494 | __IO uint32_t OR; /*!< TIM option register, Address offset: 0x50 */ |
||
495 | }TIM_TypeDef; |
||
496 | |||
497 | |||
498 | /** |
||
499 | * @brief Universal Synchronous Asynchronous Receiver Transmitter |
||
500 | */ |
||
501 | |||
502 | typedef struct |
||
503 | { |
||
504 | __IO uint32_t SR; /*!< USART Status register, Address offset: 0x00 */ |
||
505 | __IO uint32_t DR; /*!< USART Data register, Address offset: 0x04 */ |
||
506 | __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x08 */ |
||
507 | __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x0C */ |
||
508 | __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x10 */ |
||
509 | __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x14 */ |
||
510 | __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x18 */ |
||
511 | } USART_TypeDef; |
||
512 | |||
513 | /** |
||
514 | * @brief Universal Serial Bus Full Speed Device |
||
515 | */ |
||
516 | |||
517 | typedef struct |
||
518 | { |
||
519 | __IO uint16_t EP0R; /*!< USB Endpoint 0 register, Address offset: 0x00 */ |
||
520 | __IO uint16_t RESERVED0; /*!< Reserved */ |
||
521 | __IO uint16_t EP1R; /*!< USB Endpoint 1 register, Address offset: 0x04 */ |
||
522 | __IO uint16_t RESERVED1; /*!< Reserved */ |
||
523 | __IO uint16_t EP2R; /*!< USB Endpoint 2 register, Address offset: 0x08 */ |
||
524 | __IO uint16_t RESERVED2; /*!< Reserved */ |
||
525 | __IO uint16_t EP3R; /*!< USB Endpoint 3 register, Address offset: 0x0C */ |
||
526 | __IO uint16_t RESERVED3; /*!< Reserved */ |
||
527 | __IO uint16_t EP4R; /*!< USB Endpoint 4 register, Address offset: 0x10 */ |
||
528 | __IO uint16_t RESERVED4; /*!< Reserved */ |
||
529 | __IO uint16_t EP5R; /*!< USB Endpoint 5 register, Address offset: 0x14 */ |
||
530 | __IO uint16_t RESERVED5; /*!< Reserved */ |
||
531 | __IO uint16_t EP6R; /*!< USB Endpoint 6 register, Address offset: 0x18 */ |
||
532 | __IO uint16_t RESERVED6; /*!< Reserved */ |
||
533 | __IO uint16_t EP7R; /*!< USB Endpoint 7 register, Address offset: 0x1C */ |
||
534 | __IO uint16_t RESERVED7[17]; /*!< Reserved */ |
||
535 | __IO uint16_t CNTR; /*!< Control register, Address offset: 0x40 */ |
||
536 | __IO uint16_t RESERVED8; /*!< Reserved */ |
||
537 | __IO uint16_t ISTR; /*!< Interrupt status register, Address offset: 0x44 */ |
||
538 | __IO uint16_t RESERVED9; /*!< Reserved */ |
||
539 | __IO uint16_t FNR; /*!< Frame number register, Address offset: 0x48 */ |
||
540 | __IO uint16_t RESERVEDA; /*!< Reserved */ |
||
541 | __IO uint16_t DADDR; /*!< Device address register, Address offset: 0x4C */ |
||
542 | __IO uint16_t RESERVEDB; /*!< Reserved */ |
||
543 | __IO uint16_t BTABLE; /*!< Buffer Table address register, Address offset: 0x50 */ |
||
544 | __IO uint16_t RESERVEDC; /*!< Reserved */ |
||
545 | } USB_TypeDef; |
||
546 | |||
547 | |||
548 | /** |
||
549 | * @brief Window WATCHDOG |
||
550 | */ |
||
551 | |||
552 | typedef struct |
||
553 | { |
||
554 | __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */ |
||
555 | __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */ |
||
556 | __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */ |
||
557 | } WWDG_TypeDef; |
||
558 | |||
559 | /** |
||
560 | * @} |
||
561 | */ |
||
562 | |||
563 | /** @addtogroup Peripheral_memory_map |
||
564 | * @{ |
||
565 | */ |
||
566 | |||
567 | |||
9 | mjames | 568 | #define FLASH_BASE 0x08000000UL /*!< FLASH base address in the alias region */ |
569 | #define FLASH_BANK1_END 0x08007FFFUL /*!< FLASH END address of bank1 */ |
||
570 | #define SRAM_BASE 0x20000000UL /*!< SRAM base address in the alias region */ |
||
571 | #define PERIPH_BASE 0x40000000UL /*!< Peripheral base address in the alias region */ |
||
2 | mjames | 572 | |
9 | mjames | 573 | #define SRAM_BB_BASE 0x22000000UL /*!< SRAM base address in the bit-band region */ |
574 | #define PERIPH_BB_BASE 0x42000000UL /*!< Peripheral base address in the bit-band region */ |
||
2 | mjames | 575 | |
576 | |||
577 | /*!< Peripheral memory map */ |
||
578 | #define APB1PERIPH_BASE PERIPH_BASE |
||
9 | mjames | 579 | #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL) |
580 | #define AHBPERIPH_BASE (PERIPH_BASE + 0x00020000UL) |
||
2 | mjames | 581 | |
9 | mjames | 582 | #define TIM2_BASE (APB1PERIPH_BASE + 0x00000000UL) |
583 | #define TIM3_BASE (APB1PERIPH_BASE + 0x00000400UL) |
||
584 | #define RTC_BASE (APB1PERIPH_BASE + 0x00002800UL) |
||
585 | #define WWDG_BASE (APB1PERIPH_BASE + 0x00002C00UL) |
||
586 | #define IWDG_BASE (APB1PERIPH_BASE + 0x00003000UL) |
||
587 | #define USART2_BASE (APB1PERIPH_BASE + 0x00004400UL) |
||
588 | #define I2C1_BASE (APB1PERIPH_BASE + 0x00005400UL) |
||
589 | #define CAN1_BASE (APB1PERIPH_BASE + 0x00006400UL) |
||
590 | #define BKP_BASE (APB1PERIPH_BASE + 0x00006C00UL) |
||
591 | #define PWR_BASE (APB1PERIPH_BASE + 0x00007000UL) |
||
592 | #define AFIO_BASE (APB2PERIPH_BASE + 0x00000000UL) |
||
593 | #define EXTI_BASE (APB2PERIPH_BASE + 0x00000400UL) |
||
594 | #define GPIOA_BASE (APB2PERIPH_BASE + 0x00000800UL) |
||
595 | #define GPIOB_BASE (APB2PERIPH_BASE + 0x00000C00UL) |
||
596 | #define GPIOC_BASE (APB2PERIPH_BASE + 0x00001000UL) |
||
597 | #define GPIOD_BASE (APB2PERIPH_BASE + 0x00001400UL) |
||
598 | #define ADC1_BASE (APB2PERIPH_BASE + 0x00002400UL) |
||
599 | #define ADC2_BASE (APB2PERIPH_BASE + 0x00002800UL) |
||
600 | #define TIM1_BASE (APB2PERIPH_BASE + 0x00002C00UL) |
||
601 | #define SPI1_BASE (APB2PERIPH_BASE + 0x00003000UL) |
||
602 | #define USART1_BASE (APB2PERIPH_BASE + 0x00003800UL) |
||
2 | mjames | 603 | |
604 | |||
9 | mjames | 605 | #define DMA1_BASE (AHBPERIPH_BASE + 0x00000000UL) |
606 | #define DMA1_Channel1_BASE (AHBPERIPH_BASE + 0x00000008UL) |
||
607 | #define DMA1_Channel2_BASE (AHBPERIPH_BASE + 0x0000001CUL) |
||
608 | #define DMA1_Channel3_BASE (AHBPERIPH_BASE + 0x00000030UL) |
||
609 | #define DMA1_Channel4_BASE (AHBPERIPH_BASE + 0x00000044UL) |
||
610 | #define DMA1_Channel5_BASE (AHBPERIPH_BASE + 0x00000058UL) |
||
611 | #define DMA1_Channel6_BASE (AHBPERIPH_BASE + 0x0000006CUL) |
||
612 | #define DMA1_Channel7_BASE (AHBPERIPH_BASE + 0x00000080UL) |
||
613 | #define RCC_BASE (AHBPERIPH_BASE + 0x00001000UL) |
||
614 | #define CRC_BASE (AHBPERIPH_BASE + 0x00003000UL) |
||
2 | mjames | 615 | |
9 | mjames | 616 | #define FLASH_R_BASE (AHBPERIPH_BASE + 0x00002000UL) /*!< Flash registers base address */ |
617 | #define FLASHSIZE_BASE 0x1FFFF7E0UL /*!< FLASH Size register base address */ |
||
618 | #define UID_BASE 0x1FFFF7E8UL /*!< Unique device ID register base address */ |
||
619 | #define OB_BASE 0x1FFFF800UL /*!< Flash Option Bytes base address */ |
||
2 | mjames | 620 | |
621 | |||
622 | |||
9 | mjames | 623 | #define DBGMCU_BASE 0xE0042000UL /*!< Debug MCU registers base address */ |
2 | mjames | 624 | |
625 | /* USB device FS */ |
||
9 | mjames | 626 | #define USB_BASE (APB1PERIPH_BASE + 0x00005C00UL) /*!< USB_IP Peripheral Registers base address */ |
627 | #define USB_PMAADDR (APB1PERIPH_BASE + 0x00006000UL) /*!< USB_IP Packet Memory Area base address */ |
||
2 | mjames | 628 | |
629 | |||
630 | /** |
||
631 | * @} |
||
632 | */ |
||
633 | |||
634 | /** @addtogroup Peripheral_declaration |
||
635 | * @{ |
||
636 | */ |
||
637 | |||
638 | #define TIM2 ((TIM_TypeDef *)TIM2_BASE) |
||
639 | #define TIM3 ((TIM_TypeDef *)TIM3_BASE) |
||
640 | #define RTC ((RTC_TypeDef *)RTC_BASE) |
||
641 | #define WWDG ((WWDG_TypeDef *)WWDG_BASE) |
||
642 | #define IWDG ((IWDG_TypeDef *)IWDG_BASE) |
||
643 | #define USART2 ((USART_TypeDef *)USART2_BASE) |
||
644 | #define I2C1 ((I2C_TypeDef *)I2C1_BASE) |
||
645 | #define USB ((USB_TypeDef *)USB_BASE) |
||
646 | #define CAN1 ((CAN_TypeDef *)CAN1_BASE) |
||
647 | #define BKP ((BKP_TypeDef *)BKP_BASE) |
||
648 | #define PWR ((PWR_TypeDef *)PWR_BASE) |
||
649 | #define AFIO ((AFIO_TypeDef *)AFIO_BASE) |
||
650 | #define EXTI ((EXTI_TypeDef *)EXTI_BASE) |
||
651 | #define GPIOA ((GPIO_TypeDef *)GPIOA_BASE) |
||
652 | #define GPIOB ((GPIO_TypeDef *)GPIOB_BASE) |
||
653 | #define GPIOC ((GPIO_TypeDef *)GPIOC_BASE) |
||
654 | #define GPIOD ((GPIO_TypeDef *)GPIOD_BASE) |
||
655 | #define ADC1 ((ADC_TypeDef *)ADC1_BASE) |
||
656 | #define ADC2 ((ADC_TypeDef *)ADC2_BASE) |
||
657 | #define ADC12_COMMON ((ADC_Common_TypeDef *)ADC1_BASE) |
||
658 | #define TIM1 ((TIM_TypeDef *)TIM1_BASE) |
||
659 | #define SPI1 ((SPI_TypeDef *)SPI1_BASE) |
||
660 | #define USART1 ((USART_TypeDef *)USART1_BASE) |
||
661 | #define DMA1 ((DMA_TypeDef *)DMA1_BASE) |
||
662 | #define DMA1_Channel1 ((DMA_Channel_TypeDef *)DMA1_Channel1_BASE) |
||
663 | #define DMA1_Channel2 ((DMA_Channel_TypeDef *)DMA1_Channel2_BASE) |
||
664 | #define DMA1_Channel3 ((DMA_Channel_TypeDef *)DMA1_Channel3_BASE) |
||
665 | #define DMA1_Channel4 ((DMA_Channel_TypeDef *)DMA1_Channel4_BASE) |
||
666 | #define DMA1_Channel5 ((DMA_Channel_TypeDef *)DMA1_Channel5_BASE) |
||
667 | #define DMA1_Channel6 ((DMA_Channel_TypeDef *)DMA1_Channel6_BASE) |
||
668 | #define DMA1_Channel7 ((DMA_Channel_TypeDef *)DMA1_Channel7_BASE) |
||
669 | #define RCC ((RCC_TypeDef *)RCC_BASE) |
||
670 | #define CRC ((CRC_TypeDef *)CRC_BASE) |
||
671 | #define FLASH ((FLASH_TypeDef *)FLASH_R_BASE) |
||
672 | #define OB ((OB_TypeDef *)OB_BASE) |
||
673 | #define DBGMCU ((DBGMCU_TypeDef *)DBGMCU_BASE) |
||
674 | |||
675 | |||
676 | /** |
||
677 | * @} |
||
678 | */ |
||
679 | |||
680 | /** @addtogroup Exported_constants |
||
681 | * @{ |
||
682 | */ |
||
683 | |||
684 | /** @addtogroup Peripheral_Registers_Bits_Definition |
||
685 | * @{ |
||
686 | */ |
||
687 | |||
688 | /******************************************************************************/ |
||
689 | /* Peripheral Registers_Bits_Definition */ |
||
690 | /******************************************************************************/ |
||
691 | |||
692 | /******************************************************************************/ |
||
693 | /* */ |
||
694 | /* CRC calculation unit (CRC) */ |
||
695 | /* */ |
||
696 | /******************************************************************************/ |
||
697 | |||
698 | /******************* Bit definition for CRC_DR register *********************/ |
||
699 | #define CRC_DR_DR_Pos (0U) |
||
9 | mjames | 700 | #define CRC_DR_DR_Msk (0xFFFFFFFFUL << CRC_DR_DR_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 701 | #define CRC_DR_DR CRC_DR_DR_Msk /*!< Data register bits */ |
702 | |||
703 | /******************* Bit definition for CRC_IDR register ********************/ |
||
704 | #define CRC_IDR_IDR_Pos (0U) |
||
9 | mjames | 705 | #define CRC_IDR_IDR_Msk (0xFFUL << CRC_IDR_IDR_Pos) /*!< 0x000000FF */ |
2 | mjames | 706 | #define CRC_IDR_IDR CRC_IDR_IDR_Msk /*!< General-purpose 8-bit data register bits */ |
707 | |||
708 | /******************** Bit definition for CRC_CR register ********************/ |
||
709 | #define CRC_CR_RESET_Pos (0U) |
||
9 | mjames | 710 | #define CRC_CR_RESET_Msk (0x1UL << CRC_CR_RESET_Pos) /*!< 0x00000001 */ |
2 | mjames | 711 | #define CRC_CR_RESET CRC_CR_RESET_Msk /*!< RESET bit */ |
712 | |||
713 | /******************************************************************************/ |
||
714 | /* */ |
||
715 | /* Power Control */ |
||
716 | /* */ |
||
717 | /******************************************************************************/ |
||
718 | |||
719 | /******************** Bit definition for PWR_CR register ********************/ |
||
720 | #define PWR_CR_LPDS_Pos (0U) |
||
9 | mjames | 721 | #define PWR_CR_LPDS_Msk (0x1UL << PWR_CR_LPDS_Pos) /*!< 0x00000001 */ |
2 | mjames | 722 | #define PWR_CR_LPDS PWR_CR_LPDS_Msk /*!< Low-Power Deepsleep */ |
723 | #define PWR_CR_PDDS_Pos (1U) |
||
9 | mjames | 724 | #define PWR_CR_PDDS_Msk (0x1UL << PWR_CR_PDDS_Pos) /*!< 0x00000002 */ |
2 | mjames | 725 | #define PWR_CR_PDDS PWR_CR_PDDS_Msk /*!< Power Down Deepsleep */ |
726 | #define PWR_CR_CWUF_Pos (2U) |
||
9 | mjames | 727 | #define PWR_CR_CWUF_Msk (0x1UL << PWR_CR_CWUF_Pos) /*!< 0x00000004 */ |
2 | mjames | 728 | #define PWR_CR_CWUF PWR_CR_CWUF_Msk /*!< Clear Wakeup Flag */ |
729 | #define PWR_CR_CSBF_Pos (3U) |
||
9 | mjames | 730 | #define PWR_CR_CSBF_Msk (0x1UL << PWR_CR_CSBF_Pos) /*!< 0x00000008 */ |
2 | mjames | 731 | #define PWR_CR_CSBF PWR_CR_CSBF_Msk /*!< Clear Standby Flag */ |
732 | #define PWR_CR_PVDE_Pos (4U) |
||
9 | mjames | 733 | #define PWR_CR_PVDE_Msk (0x1UL << PWR_CR_PVDE_Pos) /*!< 0x00000010 */ |
2 | mjames | 734 | #define PWR_CR_PVDE PWR_CR_PVDE_Msk /*!< Power Voltage Detector Enable */ |
735 | |||
736 | #define PWR_CR_PLS_Pos (5U) |
||
9 | mjames | 737 | #define PWR_CR_PLS_Msk (0x7UL << PWR_CR_PLS_Pos) /*!< 0x000000E0 */ |
2 | mjames | 738 | #define PWR_CR_PLS PWR_CR_PLS_Msk /*!< PLS[2:0] bits (PVD Level Selection) */ |
9 | mjames | 739 | #define PWR_CR_PLS_0 (0x1UL << PWR_CR_PLS_Pos) /*!< 0x00000020 */ |
740 | #define PWR_CR_PLS_1 (0x2UL << PWR_CR_PLS_Pos) /*!< 0x00000040 */ |
||
741 | #define PWR_CR_PLS_2 (0x4UL << PWR_CR_PLS_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 742 | |
743 | /*!< PVD level configuration */ |
||
744 | #define PWR_CR_PLS_LEV0 0x00000000U /*!< PVD level 2.2V */ |
||
745 | #define PWR_CR_PLS_LEV1 0x00000020U /*!< PVD level 2.3V */ |
||
746 | #define PWR_CR_PLS_LEV2 0x00000040U /*!< PVD level 2.4V */ |
||
747 | #define PWR_CR_PLS_LEV3 0x00000060U /*!< PVD level 2.5V */ |
||
748 | #define PWR_CR_PLS_LEV4 0x00000080U /*!< PVD level 2.6V */ |
||
749 | #define PWR_CR_PLS_LEV5 0x000000A0U /*!< PVD level 2.7V */ |
||
750 | #define PWR_CR_PLS_LEV6 0x000000C0U /*!< PVD level 2.8V */ |
||
751 | #define PWR_CR_PLS_LEV7 0x000000E0U /*!< PVD level 2.9V */ |
||
752 | |||
753 | /* Legacy defines */ |
||
754 | #define PWR_CR_PLS_2V2 PWR_CR_PLS_LEV0 |
||
755 | #define PWR_CR_PLS_2V3 PWR_CR_PLS_LEV1 |
||
756 | #define PWR_CR_PLS_2V4 PWR_CR_PLS_LEV2 |
||
757 | #define PWR_CR_PLS_2V5 PWR_CR_PLS_LEV3 |
||
758 | #define PWR_CR_PLS_2V6 PWR_CR_PLS_LEV4 |
||
759 | #define PWR_CR_PLS_2V7 PWR_CR_PLS_LEV5 |
||
760 | #define PWR_CR_PLS_2V8 PWR_CR_PLS_LEV6 |
||
761 | #define PWR_CR_PLS_2V9 PWR_CR_PLS_LEV7 |
||
762 | |||
763 | #define PWR_CR_DBP_Pos (8U) |
||
9 | mjames | 764 | #define PWR_CR_DBP_Msk (0x1UL << PWR_CR_DBP_Pos) /*!< 0x00000100 */ |
2 | mjames | 765 | #define PWR_CR_DBP PWR_CR_DBP_Msk /*!< Disable Backup Domain write protection */ |
766 | |||
767 | |||
768 | /******************* Bit definition for PWR_CSR register ********************/ |
||
769 | #define PWR_CSR_WUF_Pos (0U) |
||
9 | mjames | 770 | #define PWR_CSR_WUF_Msk (0x1UL << PWR_CSR_WUF_Pos) /*!< 0x00000001 */ |
2 | mjames | 771 | #define PWR_CSR_WUF PWR_CSR_WUF_Msk /*!< Wakeup Flag */ |
772 | #define PWR_CSR_SBF_Pos (1U) |
||
9 | mjames | 773 | #define PWR_CSR_SBF_Msk (0x1UL << PWR_CSR_SBF_Pos) /*!< 0x00000002 */ |
2 | mjames | 774 | #define PWR_CSR_SBF PWR_CSR_SBF_Msk /*!< Standby Flag */ |
775 | #define PWR_CSR_PVDO_Pos (2U) |
||
9 | mjames | 776 | #define PWR_CSR_PVDO_Msk (0x1UL << PWR_CSR_PVDO_Pos) /*!< 0x00000004 */ |
2 | mjames | 777 | #define PWR_CSR_PVDO PWR_CSR_PVDO_Msk /*!< PVD Output */ |
778 | #define PWR_CSR_EWUP_Pos (8U) |
||
9 | mjames | 779 | #define PWR_CSR_EWUP_Msk (0x1UL << PWR_CSR_EWUP_Pos) /*!< 0x00000100 */ |
2 | mjames | 780 | #define PWR_CSR_EWUP PWR_CSR_EWUP_Msk /*!< Enable WKUP pin */ |
781 | |||
782 | /******************************************************************************/ |
||
783 | /* */ |
||
784 | /* Backup registers */ |
||
785 | /* */ |
||
786 | /******************************************************************************/ |
||
787 | |||
788 | /******************* Bit definition for BKP_DR1 register ********************/ |
||
789 | #define BKP_DR1_D_Pos (0U) |
||
9 | mjames | 790 | #define BKP_DR1_D_Msk (0xFFFFUL << BKP_DR1_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 791 | #define BKP_DR1_D BKP_DR1_D_Msk /*!< Backup data */ |
792 | |||
793 | /******************* Bit definition for BKP_DR2 register ********************/ |
||
794 | #define BKP_DR2_D_Pos (0U) |
||
9 | mjames | 795 | #define BKP_DR2_D_Msk (0xFFFFUL << BKP_DR2_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 796 | #define BKP_DR2_D BKP_DR2_D_Msk /*!< Backup data */ |
797 | |||
798 | /******************* Bit definition for BKP_DR3 register ********************/ |
||
799 | #define BKP_DR3_D_Pos (0U) |
||
9 | mjames | 800 | #define BKP_DR3_D_Msk (0xFFFFUL << BKP_DR3_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 801 | #define BKP_DR3_D BKP_DR3_D_Msk /*!< Backup data */ |
802 | |||
803 | /******************* Bit definition for BKP_DR4 register ********************/ |
||
804 | #define BKP_DR4_D_Pos (0U) |
||
9 | mjames | 805 | #define BKP_DR4_D_Msk (0xFFFFUL << BKP_DR4_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 806 | #define BKP_DR4_D BKP_DR4_D_Msk /*!< Backup data */ |
807 | |||
808 | /******************* Bit definition for BKP_DR5 register ********************/ |
||
809 | #define BKP_DR5_D_Pos (0U) |
||
9 | mjames | 810 | #define BKP_DR5_D_Msk (0xFFFFUL << BKP_DR5_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 811 | #define BKP_DR5_D BKP_DR5_D_Msk /*!< Backup data */ |
812 | |||
813 | /******************* Bit definition for BKP_DR6 register ********************/ |
||
814 | #define BKP_DR6_D_Pos (0U) |
||
9 | mjames | 815 | #define BKP_DR6_D_Msk (0xFFFFUL << BKP_DR6_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 816 | #define BKP_DR6_D BKP_DR6_D_Msk /*!< Backup data */ |
817 | |||
818 | /******************* Bit definition for BKP_DR7 register ********************/ |
||
819 | #define BKP_DR7_D_Pos (0U) |
||
9 | mjames | 820 | #define BKP_DR7_D_Msk (0xFFFFUL << BKP_DR7_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 821 | #define BKP_DR7_D BKP_DR7_D_Msk /*!< Backup data */ |
822 | |||
823 | /******************* Bit definition for BKP_DR8 register ********************/ |
||
824 | #define BKP_DR8_D_Pos (0U) |
||
9 | mjames | 825 | #define BKP_DR8_D_Msk (0xFFFFUL << BKP_DR8_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 826 | #define BKP_DR8_D BKP_DR8_D_Msk /*!< Backup data */ |
827 | |||
828 | /******************* Bit definition for BKP_DR9 register ********************/ |
||
829 | #define BKP_DR9_D_Pos (0U) |
||
9 | mjames | 830 | #define BKP_DR9_D_Msk (0xFFFFUL << BKP_DR9_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 831 | #define BKP_DR9_D BKP_DR9_D_Msk /*!< Backup data */ |
832 | |||
833 | /******************* Bit definition for BKP_DR10 register *******************/ |
||
834 | #define BKP_DR10_D_Pos (0U) |
||
9 | mjames | 835 | #define BKP_DR10_D_Msk (0xFFFFUL << BKP_DR10_D_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 836 | #define BKP_DR10_D BKP_DR10_D_Msk /*!< Backup data */ |
837 | |||
838 | #define RTC_BKP_NUMBER 10 |
||
839 | |||
840 | /****************** Bit definition for BKP_RTCCR register *******************/ |
||
841 | #define BKP_RTCCR_CAL_Pos (0U) |
||
9 | mjames | 842 | #define BKP_RTCCR_CAL_Msk (0x7FUL << BKP_RTCCR_CAL_Pos) /*!< 0x0000007F */ |
2 | mjames | 843 | #define BKP_RTCCR_CAL BKP_RTCCR_CAL_Msk /*!< Calibration value */ |
844 | #define BKP_RTCCR_CCO_Pos (7U) |
||
9 | mjames | 845 | #define BKP_RTCCR_CCO_Msk (0x1UL << BKP_RTCCR_CCO_Pos) /*!< 0x00000080 */ |
2 | mjames | 846 | #define BKP_RTCCR_CCO BKP_RTCCR_CCO_Msk /*!< Calibration Clock Output */ |
847 | #define BKP_RTCCR_ASOE_Pos (8U) |
||
9 | mjames | 848 | #define BKP_RTCCR_ASOE_Msk (0x1UL << BKP_RTCCR_ASOE_Pos) /*!< 0x00000100 */ |
2 | mjames | 849 | #define BKP_RTCCR_ASOE BKP_RTCCR_ASOE_Msk /*!< Alarm or Second Output Enable */ |
850 | #define BKP_RTCCR_ASOS_Pos (9U) |
||
9 | mjames | 851 | #define BKP_RTCCR_ASOS_Msk (0x1UL << BKP_RTCCR_ASOS_Pos) /*!< 0x00000200 */ |
2 | mjames | 852 | #define BKP_RTCCR_ASOS BKP_RTCCR_ASOS_Msk /*!< Alarm or Second Output Selection */ |
853 | |||
854 | /******************** Bit definition for BKP_CR register ********************/ |
||
855 | #define BKP_CR_TPE_Pos (0U) |
||
9 | mjames | 856 | #define BKP_CR_TPE_Msk (0x1UL << BKP_CR_TPE_Pos) /*!< 0x00000001 */ |
2 | mjames | 857 | #define BKP_CR_TPE BKP_CR_TPE_Msk /*!< TAMPER pin enable */ |
858 | #define BKP_CR_TPAL_Pos (1U) |
||
9 | mjames | 859 | #define BKP_CR_TPAL_Msk (0x1UL << BKP_CR_TPAL_Pos) /*!< 0x00000002 */ |
2 | mjames | 860 | #define BKP_CR_TPAL BKP_CR_TPAL_Msk /*!< TAMPER pin active level */ |
861 | |||
862 | /******************* Bit definition for BKP_CSR register ********************/ |
||
863 | #define BKP_CSR_CTE_Pos (0U) |
||
9 | mjames | 864 | #define BKP_CSR_CTE_Msk (0x1UL << BKP_CSR_CTE_Pos) /*!< 0x00000001 */ |
2 | mjames | 865 | #define BKP_CSR_CTE BKP_CSR_CTE_Msk /*!< Clear Tamper event */ |
866 | #define BKP_CSR_CTI_Pos (1U) |
||
9 | mjames | 867 | #define BKP_CSR_CTI_Msk (0x1UL << BKP_CSR_CTI_Pos) /*!< 0x00000002 */ |
2 | mjames | 868 | #define BKP_CSR_CTI BKP_CSR_CTI_Msk /*!< Clear Tamper Interrupt */ |
869 | #define BKP_CSR_TPIE_Pos (2U) |
||
9 | mjames | 870 | #define BKP_CSR_TPIE_Msk (0x1UL << BKP_CSR_TPIE_Pos) /*!< 0x00000004 */ |
2 | mjames | 871 | #define BKP_CSR_TPIE BKP_CSR_TPIE_Msk /*!< TAMPER Pin interrupt enable */ |
872 | #define BKP_CSR_TEF_Pos (8U) |
||
9 | mjames | 873 | #define BKP_CSR_TEF_Msk (0x1UL << BKP_CSR_TEF_Pos) /*!< 0x00000100 */ |
2 | mjames | 874 | #define BKP_CSR_TEF BKP_CSR_TEF_Msk /*!< Tamper Event Flag */ |
875 | #define BKP_CSR_TIF_Pos (9U) |
||
9 | mjames | 876 | #define BKP_CSR_TIF_Msk (0x1UL << BKP_CSR_TIF_Pos) /*!< 0x00000200 */ |
2 | mjames | 877 | #define BKP_CSR_TIF BKP_CSR_TIF_Msk /*!< Tamper Interrupt Flag */ |
878 | |||
879 | /******************************************************************************/ |
||
880 | /* */ |
||
881 | /* Reset and Clock Control */ |
||
882 | /* */ |
||
883 | /******************************************************************************/ |
||
884 | |||
885 | /******************** Bit definition for RCC_CR register ********************/ |
||
886 | #define RCC_CR_HSION_Pos (0U) |
||
9 | mjames | 887 | #define RCC_CR_HSION_Msk (0x1UL << RCC_CR_HSION_Pos) /*!< 0x00000001 */ |
2 | mjames | 888 | #define RCC_CR_HSION RCC_CR_HSION_Msk /*!< Internal High Speed clock enable */ |
889 | #define RCC_CR_HSIRDY_Pos (1U) |
||
9 | mjames | 890 | #define RCC_CR_HSIRDY_Msk (0x1UL << RCC_CR_HSIRDY_Pos) /*!< 0x00000002 */ |
2 | mjames | 891 | #define RCC_CR_HSIRDY RCC_CR_HSIRDY_Msk /*!< Internal High Speed clock ready flag */ |
892 | #define RCC_CR_HSITRIM_Pos (3U) |
||
9 | mjames | 893 | #define RCC_CR_HSITRIM_Msk (0x1FUL << RCC_CR_HSITRIM_Pos) /*!< 0x000000F8 */ |
2 | mjames | 894 | #define RCC_CR_HSITRIM RCC_CR_HSITRIM_Msk /*!< Internal High Speed clock trimming */ |
895 | #define RCC_CR_HSICAL_Pos (8U) |
||
9 | mjames | 896 | #define RCC_CR_HSICAL_Msk (0xFFUL << RCC_CR_HSICAL_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 897 | #define RCC_CR_HSICAL RCC_CR_HSICAL_Msk /*!< Internal High Speed clock Calibration */ |
898 | #define RCC_CR_HSEON_Pos (16U) |
||
9 | mjames | 899 | #define RCC_CR_HSEON_Msk (0x1UL << RCC_CR_HSEON_Pos) /*!< 0x00010000 */ |
2 | mjames | 900 | #define RCC_CR_HSEON RCC_CR_HSEON_Msk /*!< External High Speed clock enable */ |
901 | #define RCC_CR_HSERDY_Pos (17U) |
||
9 | mjames | 902 | #define RCC_CR_HSERDY_Msk (0x1UL << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */ |
2 | mjames | 903 | #define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed clock ready flag */ |
904 | #define RCC_CR_HSEBYP_Pos (18U) |
||
9 | mjames | 905 | #define RCC_CR_HSEBYP_Msk (0x1UL << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */ |
2 | mjames | 906 | #define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed clock Bypass */ |
907 | #define RCC_CR_CSSON_Pos (19U) |
||
9 | mjames | 908 | #define RCC_CR_CSSON_Msk (0x1UL << RCC_CR_CSSON_Pos) /*!< 0x00080000 */ |
2 | mjames | 909 | #define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< Clock Security System enable */ |
910 | #define RCC_CR_PLLON_Pos (24U) |
||
9 | mjames | 911 | #define RCC_CR_PLLON_Msk (0x1UL << RCC_CR_PLLON_Pos) /*!< 0x01000000 */ |
2 | mjames | 912 | #define RCC_CR_PLLON RCC_CR_PLLON_Msk /*!< PLL enable */ |
913 | #define RCC_CR_PLLRDY_Pos (25U) |
||
9 | mjames | 914 | #define RCC_CR_PLLRDY_Msk (0x1UL << RCC_CR_PLLRDY_Pos) /*!< 0x02000000 */ |
2 | mjames | 915 | #define RCC_CR_PLLRDY RCC_CR_PLLRDY_Msk /*!< PLL clock ready flag */ |
916 | |||
917 | |||
918 | /******************* Bit definition for RCC_CFGR register *******************/ |
||
919 | /*!< SW configuration */ |
||
920 | #define RCC_CFGR_SW_Pos (0U) |
||
9 | mjames | 921 | #define RCC_CFGR_SW_Msk (0x3UL << RCC_CFGR_SW_Pos) /*!< 0x00000003 */ |
2 | mjames | 922 | #define RCC_CFGR_SW RCC_CFGR_SW_Msk /*!< SW[1:0] bits (System clock Switch) */ |
9 | mjames | 923 | #define RCC_CFGR_SW_0 (0x1UL << RCC_CFGR_SW_Pos) /*!< 0x00000001 */ |
924 | #define RCC_CFGR_SW_1 (0x2UL << RCC_CFGR_SW_Pos) /*!< 0x00000002 */ |
||
2 | mjames | 925 | |
926 | #define RCC_CFGR_SW_HSI 0x00000000U /*!< HSI selected as system clock */ |
||
927 | #define RCC_CFGR_SW_HSE 0x00000001U /*!< HSE selected as system clock */ |
||
928 | #define RCC_CFGR_SW_PLL 0x00000002U /*!< PLL selected as system clock */ |
||
929 | |||
930 | /*!< SWS configuration */ |
||
931 | #define RCC_CFGR_SWS_Pos (2U) |
||
9 | mjames | 932 | #define RCC_CFGR_SWS_Msk (0x3UL << RCC_CFGR_SWS_Pos) /*!< 0x0000000C */ |
2 | mjames | 933 | #define RCC_CFGR_SWS RCC_CFGR_SWS_Msk /*!< SWS[1:0] bits (System Clock Switch Status) */ |
9 | mjames | 934 | #define RCC_CFGR_SWS_0 (0x1UL << RCC_CFGR_SWS_Pos) /*!< 0x00000004 */ |
935 | #define RCC_CFGR_SWS_1 (0x2UL << RCC_CFGR_SWS_Pos) /*!< 0x00000008 */ |
||
2 | mjames | 936 | |
937 | #define RCC_CFGR_SWS_HSI 0x00000000U /*!< HSI oscillator used as system clock */ |
||
938 | #define RCC_CFGR_SWS_HSE 0x00000004U /*!< HSE oscillator used as system clock */ |
||
939 | #define RCC_CFGR_SWS_PLL 0x00000008U /*!< PLL used as system clock */ |
||
940 | |||
941 | /*!< HPRE configuration */ |
||
942 | #define RCC_CFGR_HPRE_Pos (4U) |
||
9 | mjames | 943 | #define RCC_CFGR_HPRE_Msk (0xFUL << RCC_CFGR_HPRE_Pos) /*!< 0x000000F0 */ |
2 | mjames | 944 | #define RCC_CFGR_HPRE RCC_CFGR_HPRE_Msk /*!< HPRE[3:0] bits (AHB prescaler) */ |
9 | mjames | 945 | #define RCC_CFGR_HPRE_0 (0x1UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000010 */ |
946 | #define RCC_CFGR_HPRE_1 (0x2UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000020 */ |
||
947 | #define RCC_CFGR_HPRE_2 (0x4UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000040 */ |
||
948 | #define RCC_CFGR_HPRE_3 (0x8UL << RCC_CFGR_HPRE_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 949 | |
950 | #define RCC_CFGR_HPRE_DIV1 0x00000000U /*!< SYSCLK not divided */ |
||
951 | #define RCC_CFGR_HPRE_DIV2 0x00000080U /*!< SYSCLK divided by 2 */ |
||
952 | #define RCC_CFGR_HPRE_DIV4 0x00000090U /*!< SYSCLK divided by 4 */ |
||
953 | #define RCC_CFGR_HPRE_DIV8 0x000000A0U /*!< SYSCLK divided by 8 */ |
||
954 | #define RCC_CFGR_HPRE_DIV16 0x000000B0U /*!< SYSCLK divided by 16 */ |
||
955 | #define RCC_CFGR_HPRE_DIV64 0x000000C0U /*!< SYSCLK divided by 64 */ |
||
956 | #define RCC_CFGR_HPRE_DIV128 0x000000D0U /*!< SYSCLK divided by 128 */ |
||
957 | #define RCC_CFGR_HPRE_DIV256 0x000000E0U /*!< SYSCLK divided by 256 */ |
||
958 | #define RCC_CFGR_HPRE_DIV512 0x000000F0U /*!< SYSCLK divided by 512 */ |
||
959 | |||
960 | /*!< PPRE1 configuration */ |
||
961 | #define RCC_CFGR_PPRE1_Pos (8U) |
||
9 | mjames | 962 | #define RCC_CFGR_PPRE1_Msk (0x7UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000700 */ |
2 | mjames | 963 | #define RCC_CFGR_PPRE1 RCC_CFGR_PPRE1_Msk /*!< PRE1[2:0] bits (APB1 prescaler) */ |
9 | mjames | 964 | #define RCC_CFGR_PPRE1_0 (0x1UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000100 */ |
965 | #define RCC_CFGR_PPRE1_1 (0x2UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000200 */ |
||
966 | #define RCC_CFGR_PPRE1_2 (0x4UL << RCC_CFGR_PPRE1_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 967 | |
968 | #define RCC_CFGR_PPRE1_DIV1 0x00000000U /*!< HCLK not divided */ |
||
969 | #define RCC_CFGR_PPRE1_DIV2 0x00000400U /*!< HCLK divided by 2 */ |
||
970 | #define RCC_CFGR_PPRE1_DIV4 0x00000500U /*!< HCLK divided by 4 */ |
||
971 | #define RCC_CFGR_PPRE1_DIV8 0x00000600U /*!< HCLK divided by 8 */ |
||
972 | #define RCC_CFGR_PPRE1_DIV16 0x00000700U /*!< HCLK divided by 16 */ |
||
973 | |||
974 | /*!< PPRE2 configuration */ |
||
975 | #define RCC_CFGR_PPRE2_Pos (11U) |
||
9 | mjames | 976 | #define RCC_CFGR_PPRE2_Msk (0x7UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00003800 */ |
2 | mjames | 977 | #define RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_Msk /*!< PRE2[2:0] bits (APB2 prescaler) */ |
9 | mjames | 978 | #define RCC_CFGR_PPRE2_0 (0x1UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00000800 */ |
979 | #define RCC_CFGR_PPRE2_1 (0x2UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00001000 */ |
||
980 | #define RCC_CFGR_PPRE2_2 (0x4UL << RCC_CFGR_PPRE2_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 981 | |
982 | #define RCC_CFGR_PPRE2_DIV1 0x00000000U /*!< HCLK not divided */ |
||
983 | #define RCC_CFGR_PPRE2_DIV2 0x00002000U /*!< HCLK divided by 2 */ |
||
984 | #define RCC_CFGR_PPRE2_DIV4 0x00002800U /*!< HCLK divided by 4 */ |
||
985 | #define RCC_CFGR_PPRE2_DIV8 0x00003000U /*!< HCLK divided by 8 */ |
||
986 | #define RCC_CFGR_PPRE2_DIV16 0x00003800U /*!< HCLK divided by 16 */ |
||
987 | |||
988 | /*!< ADCPPRE configuration */ |
||
989 | #define RCC_CFGR_ADCPRE_Pos (14U) |
||
9 | mjames | 990 | #define RCC_CFGR_ADCPRE_Msk (0x3UL << RCC_CFGR_ADCPRE_Pos) /*!< 0x0000C000 */ |
2 | mjames | 991 | #define RCC_CFGR_ADCPRE RCC_CFGR_ADCPRE_Msk /*!< ADCPRE[1:0] bits (ADC prescaler) */ |
9 | mjames | 992 | #define RCC_CFGR_ADCPRE_0 (0x1UL << RCC_CFGR_ADCPRE_Pos) /*!< 0x00004000 */ |
993 | #define RCC_CFGR_ADCPRE_1 (0x2UL << RCC_CFGR_ADCPRE_Pos) /*!< 0x00008000 */ |
||
2 | mjames | 994 | |
995 | #define RCC_CFGR_ADCPRE_DIV2 0x00000000U /*!< PCLK2 divided by 2 */ |
||
996 | #define RCC_CFGR_ADCPRE_DIV4 0x00004000U /*!< PCLK2 divided by 4 */ |
||
997 | #define RCC_CFGR_ADCPRE_DIV6 0x00008000U /*!< PCLK2 divided by 6 */ |
||
998 | #define RCC_CFGR_ADCPRE_DIV8 0x0000C000U /*!< PCLK2 divided by 8 */ |
||
999 | |||
1000 | #define RCC_CFGR_PLLSRC_Pos (16U) |
||
9 | mjames | 1001 | #define RCC_CFGR_PLLSRC_Msk (0x1UL << RCC_CFGR_PLLSRC_Pos) /*!< 0x00010000 */ |
2 | mjames | 1002 | #define RCC_CFGR_PLLSRC RCC_CFGR_PLLSRC_Msk /*!< PLL entry clock source */ |
1003 | |||
1004 | #define RCC_CFGR_PLLXTPRE_Pos (17U) |
||
9 | mjames | 1005 | #define RCC_CFGR_PLLXTPRE_Msk (0x1UL << RCC_CFGR_PLLXTPRE_Pos) /*!< 0x00020000 */ |
2 | mjames | 1006 | #define RCC_CFGR_PLLXTPRE RCC_CFGR_PLLXTPRE_Msk /*!< HSE divider for PLL entry */ |
1007 | |||
1008 | /*!< PLLMUL configuration */ |
||
1009 | #define RCC_CFGR_PLLMULL_Pos (18U) |
||
9 | mjames | 1010 | #define RCC_CFGR_PLLMULL_Msk (0xFUL << RCC_CFGR_PLLMULL_Pos) /*!< 0x003C0000 */ |
2 | mjames | 1011 | #define RCC_CFGR_PLLMULL RCC_CFGR_PLLMULL_Msk /*!< PLLMUL[3:0] bits (PLL multiplication factor) */ |
9 | mjames | 1012 | #define RCC_CFGR_PLLMULL_0 (0x1UL << RCC_CFGR_PLLMULL_Pos) /*!< 0x00040000 */ |
1013 | #define RCC_CFGR_PLLMULL_1 (0x2UL << RCC_CFGR_PLLMULL_Pos) /*!< 0x00080000 */ |
||
1014 | #define RCC_CFGR_PLLMULL_2 (0x4UL << RCC_CFGR_PLLMULL_Pos) /*!< 0x00100000 */ |
||
1015 | #define RCC_CFGR_PLLMULL_3 (0x8UL << RCC_CFGR_PLLMULL_Pos) /*!< 0x00200000 */ |
||
2 | mjames | 1016 | |
1017 | #define RCC_CFGR_PLLXTPRE_HSE 0x00000000U /*!< HSE clock not divided for PLL entry */ |
||
1018 | #define RCC_CFGR_PLLXTPRE_HSE_DIV2 0x00020000U /*!< HSE clock divided by 2 for PLL entry */ |
||
1019 | |||
1020 | #define RCC_CFGR_PLLMULL2 0x00000000U /*!< PLL input clock*2 */ |
||
1021 | #define RCC_CFGR_PLLMULL3_Pos (18U) |
||
9 | mjames | 1022 | #define RCC_CFGR_PLLMULL3_Msk (0x1UL << RCC_CFGR_PLLMULL3_Pos) /*!< 0x00040000 */ |
2 | mjames | 1023 | #define RCC_CFGR_PLLMULL3 RCC_CFGR_PLLMULL3_Msk /*!< PLL input clock*3 */ |
1024 | #define RCC_CFGR_PLLMULL4_Pos (19U) |
||
9 | mjames | 1025 | #define RCC_CFGR_PLLMULL4_Msk (0x1UL << RCC_CFGR_PLLMULL4_Pos) /*!< 0x00080000 */ |
2 | mjames | 1026 | #define RCC_CFGR_PLLMULL4 RCC_CFGR_PLLMULL4_Msk /*!< PLL input clock*4 */ |
1027 | #define RCC_CFGR_PLLMULL5_Pos (18U) |
||
9 | mjames | 1028 | #define RCC_CFGR_PLLMULL5_Msk (0x3UL << RCC_CFGR_PLLMULL5_Pos) /*!< 0x000C0000 */ |
2 | mjames | 1029 | #define RCC_CFGR_PLLMULL5 RCC_CFGR_PLLMULL5_Msk /*!< PLL input clock*5 */ |
1030 | #define RCC_CFGR_PLLMULL6_Pos (20U) |
||
9 | mjames | 1031 | #define RCC_CFGR_PLLMULL6_Msk (0x1UL << RCC_CFGR_PLLMULL6_Pos) /*!< 0x00100000 */ |
2 | mjames | 1032 | #define RCC_CFGR_PLLMULL6 RCC_CFGR_PLLMULL6_Msk /*!< PLL input clock*6 */ |
1033 | #define RCC_CFGR_PLLMULL7_Pos (18U) |
||
9 | mjames | 1034 | #define RCC_CFGR_PLLMULL7_Msk (0x5UL << RCC_CFGR_PLLMULL7_Pos) /*!< 0x00140000 */ |
2 | mjames | 1035 | #define RCC_CFGR_PLLMULL7 RCC_CFGR_PLLMULL7_Msk /*!< PLL input clock*7 */ |
1036 | #define RCC_CFGR_PLLMULL8_Pos (19U) |
||
9 | mjames | 1037 | #define RCC_CFGR_PLLMULL8_Msk (0x3UL << RCC_CFGR_PLLMULL8_Pos) /*!< 0x00180000 */ |
2 | mjames | 1038 | #define RCC_CFGR_PLLMULL8 RCC_CFGR_PLLMULL8_Msk /*!< PLL input clock*8 */ |
1039 | #define RCC_CFGR_PLLMULL9_Pos (18U) |
||
9 | mjames | 1040 | #define RCC_CFGR_PLLMULL9_Msk (0x7UL << RCC_CFGR_PLLMULL9_Pos) /*!< 0x001C0000 */ |
2 | mjames | 1041 | #define RCC_CFGR_PLLMULL9 RCC_CFGR_PLLMULL9_Msk /*!< PLL input clock*9 */ |
1042 | #define RCC_CFGR_PLLMULL10_Pos (21U) |
||
9 | mjames | 1043 | #define RCC_CFGR_PLLMULL10_Msk (0x1UL << RCC_CFGR_PLLMULL10_Pos) /*!< 0x00200000 */ |
2 | mjames | 1044 | #define RCC_CFGR_PLLMULL10 RCC_CFGR_PLLMULL10_Msk /*!< PLL input clock10 */ |
1045 | #define RCC_CFGR_PLLMULL11_Pos (18U) |
||
9 | mjames | 1046 | #define RCC_CFGR_PLLMULL11_Msk (0x9UL << RCC_CFGR_PLLMULL11_Pos) /*!< 0x00240000 */ |
2 | mjames | 1047 | #define RCC_CFGR_PLLMULL11 RCC_CFGR_PLLMULL11_Msk /*!< PLL input clock*11 */ |
1048 | #define RCC_CFGR_PLLMULL12_Pos (19U) |
||
9 | mjames | 1049 | #define RCC_CFGR_PLLMULL12_Msk (0x5UL << RCC_CFGR_PLLMULL12_Pos) /*!< 0x00280000 */ |
2 | mjames | 1050 | #define RCC_CFGR_PLLMULL12 RCC_CFGR_PLLMULL12_Msk /*!< PLL input clock*12 */ |
1051 | #define RCC_CFGR_PLLMULL13_Pos (18U) |
||
9 | mjames | 1052 | #define RCC_CFGR_PLLMULL13_Msk (0xBUL << RCC_CFGR_PLLMULL13_Pos) /*!< 0x002C0000 */ |
2 | mjames | 1053 | #define RCC_CFGR_PLLMULL13 RCC_CFGR_PLLMULL13_Msk /*!< PLL input clock*13 */ |
1054 | #define RCC_CFGR_PLLMULL14_Pos (20U) |
||
9 | mjames | 1055 | #define RCC_CFGR_PLLMULL14_Msk (0x3UL << RCC_CFGR_PLLMULL14_Pos) /*!< 0x00300000 */ |
2 | mjames | 1056 | #define RCC_CFGR_PLLMULL14 RCC_CFGR_PLLMULL14_Msk /*!< PLL input clock*14 */ |
1057 | #define RCC_CFGR_PLLMULL15_Pos (18U) |
||
9 | mjames | 1058 | #define RCC_CFGR_PLLMULL15_Msk (0xDUL << RCC_CFGR_PLLMULL15_Pos) /*!< 0x00340000 */ |
2 | mjames | 1059 | #define RCC_CFGR_PLLMULL15 RCC_CFGR_PLLMULL15_Msk /*!< PLL input clock*15 */ |
1060 | #define RCC_CFGR_PLLMULL16_Pos (19U) |
||
9 | mjames | 1061 | #define RCC_CFGR_PLLMULL16_Msk (0x7UL << RCC_CFGR_PLLMULL16_Pos) /*!< 0x00380000 */ |
2 | mjames | 1062 | #define RCC_CFGR_PLLMULL16 RCC_CFGR_PLLMULL16_Msk /*!< PLL input clock*16 */ |
1063 | #define RCC_CFGR_USBPRE_Pos (22U) |
||
9 | mjames | 1064 | #define RCC_CFGR_USBPRE_Msk (0x1UL << RCC_CFGR_USBPRE_Pos) /*!< 0x00400000 */ |
2 | mjames | 1065 | #define RCC_CFGR_USBPRE RCC_CFGR_USBPRE_Msk /*!< USB Device prescaler */ |
1066 | |||
1067 | /*!< MCO configuration */ |
||
1068 | #define RCC_CFGR_MCO_Pos (24U) |
||
9 | mjames | 1069 | #define RCC_CFGR_MCO_Msk (0x7UL << RCC_CFGR_MCO_Pos) /*!< 0x07000000 */ |
2 | mjames | 1070 | #define RCC_CFGR_MCO RCC_CFGR_MCO_Msk /*!< MCO[2:0] bits (Microcontroller Clock Output) */ |
9 | mjames | 1071 | #define RCC_CFGR_MCO_0 (0x1UL << RCC_CFGR_MCO_Pos) /*!< 0x01000000 */ |
1072 | #define RCC_CFGR_MCO_1 (0x2UL << RCC_CFGR_MCO_Pos) /*!< 0x02000000 */ |
||
1073 | #define RCC_CFGR_MCO_2 (0x4UL << RCC_CFGR_MCO_Pos) /*!< 0x04000000 */ |
||
2 | mjames | 1074 | |
1075 | #define RCC_CFGR_MCO_NOCLOCK 0x00000000U /*!< No clock */ |
||
1076 | #define RCC_CFGR_MCO_SYSCLK 0x04000000U /*!< System clock selected as MCO source */ |
||
1077 | #define RCC_CFGR_MCO_HSI 0x05000000U /*!< HSI clock selected as MCO source */ |
||
1078 | #define RCC_CFGR_MCO_HSE 0x06000000U /*!< HSE clock selected as MCO source */ |
||
1079 | #define RCC_CFGR_MCO_PLLCLK_DIV2 0x07000000U /*!< PLL clock divided by 2 selected as MCO source */ |
||
1080 | |||
1081 | /* Reference defines */ |
||
1082 | #define RCC_CFGR_MCOSEL RCC_CFGR_MCO |
||
1083 | #define RCC_CFGR_MCOSEL_0 RCC_CFGR_MCO_0 |
||
1084 | #define RCC_CFGR_MCOSEL_1 RCC_CFGR_MCO_1 |
||
1085 | #define RCC_CFGR_MCOSEL_2 RCC_CFGR_MCO_2 |
||
1086 | #define RCC_CFGR_MCOSEL_NOCLOCK RCC_CFGR_MCO_NOCLOCK |
||
1087 | #define RCC_CFGR_MCOSEL_SYSCLK RCC_CFGR_MCO_SYSCLK |
||
1088 | #define RCC_CFGR_MCOSEL_HSI RCC_CFGR_MCO_HSI |
||
1089 | #define RCC_CFGR_MCOSEL_HSE RCC_CFGR_MCO_HSE |
||
1090 | #define RCC_CFGR_MCOSEL_PLL_DIV2 RCC_CFGR_MCO_PLLCLK_DIV2 |
||
1091 | |||
1092 | /*!<****************** Bit definition for RCC_CIR register ********************/ |
||
1093 | #define RCC_CIR_LSIRDYF_Pos (0U) |
||
9 | mjames | 1094 | #define RCC_CIR_LSIRDYF_Msk (0x1UL << RCC_CIR_LSIRDYF_Pos) /*!< 0x00000001 */ |
2 | mjames | 1095 | #define RCC_CIR_LSIRDYF RCC_CIR_LSIRDYF_Msk /*!< LSI Ready Interrupt flag */ |
1096 | #define RCC_CIR_LSERDYF_Pos (1U) |
||
9 | mjames | 1097 | #define RCC_CIR_LSERDYF_Msk (0x1UL << RCC_CIR_LSERDYF_Pos) /*!< 0x00000002 */ |
2 | mjames | 1098 | #define RCC_CIR_LSERDYF RCC_CIR_LSERDYF_Msk /*!< LSE Ready Interrupt flag */ |
1099 | #define RCC_CIR_HSIRDYF_Pos (2U) |
||
9 | mjames | 1100 | #define RCC_CIR_HSIRDYF_Msk (0x1UL << RCC_CIR_HSIRDYF_Pos) /*!< 0x00000004 */ |
2 | mjames | 1101 | #define RCC_CIR_HSIRDYF RCC_CIR_HSIRDYF_Msk /*!< HSI Ready Interrupt flag */ |
1102 | #define RCC_CIR_HSERDYF_Pos (3U) |
||
9 | mjames | 1103 | #define RCC_CIR_HSERDYF_Msk (0x1UL << RCC_CIR_HSERDYF_Pos) /*!< 0x00000008 */ |
2 | mjames | 1104 | #define RCC_CIR_HSERDYF RCC_CIR_HSERDYF_Msk /*!< HSE Ready Interrupt flag */ |
1105 | #define RCC_CIR_PLLRDYF_Pos (4U) |
||
9 | mjames | 1106 | #define RCC_CIR_PLLRDYF_Msk (0x1UL << RCC_CIR_PLLRDYF_Pos) /*!< 0x00000010 */ |
2 | mjames | 1107 | #define RCC_CIR_PLLRDYF RCC_CIR_PLLRDYF_Msk /*!< PLL Ready Interrupt flag */ |
1108 | #define RCC_CIR_CSSF_Pos (7U) |
||
9 | mjames | 1109 | #define RCC_CIR_CSSF_Msk (0x1UL << RCC_CIR_CSSF_Pos) /*!< 0x00000080 */ |
2 | mjames | 1110 | #define RCC_CIR_CSSF RCC_CIR_CSSF_Msk /*!< Clock Security System Interrupt flag */ |
1111 | #define RCC_CIR_LSIRDYIE_Pos (8U) |
||
9 | mjames | 1112 | #define RCC_CIR_LSIRDYIE_Msk (0x1UL << RCC_CIR_LSIRDYIE_Pos) /*!< 0x00000100 */ |
2 | mjames | 1113 | #define RCC_CIR_LSIRDYIE RCC_CIR_LSIRDYIE_Msk /*!< LSI Ready Interrupt Enable */ |
1114 | #define RCC_CIR_LSERDYIE_Pos (9U) |
||
9 | mjames | 1115 | #define RCC_CIR_LSERDYIE_Msk (0x1UL << RCC_CIR_LSERDYIE_Pos) /*!< 0x00000200 */ |
2 | mjames | 1116 | #define RCC_CIR_LSERDYIE RCC_CIR_LSERDYIE_Msk /*!< LSE Ready Interrupt Enable */ |
1117 | #define RCC_CIR_HSIRDYIE_Pos (10U) |
||
9 | mjames | 1118 | #define RCC_CIR_HSIRDYIE_Msk (0x1UL << RCC_CIR_HSIRDYIE_Pos) /*!< 0x00000400 */ |
2 | mjames | 1119 | #define RCC_CIR_HSIRDYIE RCC_CIR_HSIRDYIE_Msk /*!< HSI Ready Interrupt Enable */ |
1120 | #define RCC_CIR_HSERDYIE_Pos (11U) |
||
9 | mjames | 1121 | #define RCC_CIR_HSERDYIE_Msk (0x1UL << RCC_CIR_HSERDYIE_Pos) /*!< 0x00000800 */ |
2 | mjames | 1122 | #define RCC_CIR_HSERDYIE RCC_CIR_HSERDYIE_Msk /*!< HSE Ready Interrupt Enable */ |
1123 | #define RCC_CIR_PLLRDYIE_Pos (12U) |
||
9 | mjames | 1124 | #define RCC_CIR_PLLRDYIE_Msk (0x1UL << RCC_CIR_PLLRDYIE_Pos) /*!< 0x00001000 */ |
2 | mjames | 1125 | #define RCC_CIR_PLLRDYIE RCC_CIR_PLLRDYIE_Msk /*!< PLL Ready Interrupt Enable */ |
1126 | #define RCC_CIR_LSIRDYC_Pos (16U) |
||
9 | mjames | 1127 | #define RCC_CIR_LSIRDYC_Msk (0x1UL << RCC_CIR_LSIRDYC_Pos) /*!< 0x00010000 */ |
2 | mjames | 1128 | #define RCC_CIR_LSIRDYC RCC_CIR_LSIRDYC_Msk /*!< LSI Ready Interrupt Clear */ |
1129 | #define RCC_CIR_LSERDYC_Pos (17U) |
||
9 | mjames | 1130 | #define RCC_CIR_LSERDYC_Msk (0x1UL << RCC_CIR_LSERDYC_Pos) /*!< 0x00020000 */ |
2 | mjames | 1131 | #define RCC_CIR_LSERDYC RCC_CIR_LSERDYC_Msk /*!< LSE Ready Interrupt Clear */ |
1132 | #define RCC_CIR_HSIRDYC_Pos (18U) |
||
9 | mjames | 1133 | #define RCC_CIR_HSIRDYC_Msk (0x1UL << RCC_CIR_HSIRDYC_Pos) /*!< 0x00040000 */ |
2 | mjames | 1134 | #define RCC_CIR_HSIRDYC RCC_CIR_HSIRDYC_Msk /*!< HSI Ready Interrupt Clear */ |
1135 | #define RCC_CIR_HSERDYC_Pos (19U) |
||
9 | mjames | 1136 | #define RCC_CIR_HSERDYC_Msk (0x1UL << RCC_CIR_HSERDYC_Pos) /*!< 0x00080000 */ |
2 | mjames | 1137 | #define RCC_CIR_HSERDYC RCC_CIR_HSERDYC_Msk /*!< HSE Ready Interrupt Clear */ |
1138 | #define RCC_CIR_PLLRDYC_Pos (20U) |
||
9 | mjames | 1139 | #define RCC_CIR_PLLRDYC_Msk (0x1UL << RCC_CIR_PLLRDYC_Pos) /*!< 0x00100000 */ |
2 | mjames | 1140 | #define RCC_CIR_PLLRDYC RCC_CIR_PLLRDYC_Msk /*!< PLL Ready Interrupt Clear */ |
1141 | #define RCC_CIR_CSSC_Pos (23U) |
||
9 | mjames | 1142 | #define RCC_CIR_CSSC_Msk (0x1UL << RCC_CIR_CSSC_Pos) /*!< 0x00800000 */ |
2 | mjames | 1143 | #define RCC_CIR_CSSC RCC_CIR_CSSC_Msk /*!< Clock Security System Interrupt Clear */ |
1144 | |||
1145 | |||
1146 | /***************** Bit definition for RCC_APB2RSTR register *****************/ |
||
1147 | #define RCC_APB2RSTR_AFIORST_Pos (0U) |
||
9 | mjames | 1148 | #define RCC_APB2RSTR_AFIORST_Msk (0x1UL << RCC_APB2RSTR_AFIORST_Pos) /*!< 0x00000001 */ |
2 | mjames | 1149 | #define RCC_APB2RSTR_AFIORST RCC_APB2RSTR_AFIORST_Msk /*!< Alternate Function I/O reset */ |
1150 | #define RCC_APB2RSTR_IOPARST_Pos (2U) |
||
9 | mjames | 1151 | #define RCC_APB2RSTR_IOPARST_Msk (0x1UL << RCC_APB2RSTR_IOPARST_Pos) /*!< 0x00000004 */ |
2 | mjames | 1152 | #define RCC_APB2RSTR_IOPARST RCC_APB2RSTR_IOPARST_Msk /*!< I/O port A reset */ |
1153 | #define RCC_APB2RSTR_IOPBRST_Pos (3U) |
||
9 | mjames | 1154 | #define RCC_APB2RSTR_IOPBRST_Msk (0x1UL << RCC_APB2RSTR_IOPBRST_Pos) /*!< 0x00000008 */ |
2 | mjames | 1155 | #define RCC_APB2RSTR_IOPBRST RCC_APB2RSTR_IOPBRST_Msk /*!< I/O port B reset */ |
1156 | #define RCC_APB2RSTR_IOPCRST_Pos (4U) |
||
9 | mjames | 1157 | #define RCC_APB2RSTR_IOPCRST_Msk (0x1UL << RCC_APB2RSTR_IOPCRST_Pos) /*!< 0x00000010 */ |
2 | mjames | 1158 | #define RCC_APB2RSTR_IOPCRST RCC_APB2RSTR_IOPCRST_Msk /*!< I/O port C reset */ |
1159 | #define RCC_APB2RSTR_IOPDRST_Pos (5U) |
||
9 | mjames | 1160 | #define RCC_APB2RSTR_IOPDRST_Msk (0x1UL << RCC_APB2RSTR_IOPDRST_Pos) /*!< 0x00000020 */ |
2 | mjames | 1161 | #define RCC_APB2RSTR_IOPDRST RCC_APB2RSTR_IOPDRST_Msk /*!< I/O port D reset */ |
1162 | #define RCC_APB2RSTR_ADC1RST_Pos (9U) |
||
9 | mjames | 1163 | #define RCC_APB2RSTR_ADC1RST_Msk (0x1UL << RCC_APB2RSTR_ADC1RST_Pos) /*!< 0x00000200 */ |
2 | mjames | 1164 | #define RCC_APB2RSTR_ADC1RST RCC_APB2RSTR_ADC1RST_Msk /*!< ADC 1 interface reset */ |
1165 | |||
1166 | #define RCC_APB2RSTR_ADC2RST_Pos (10U) |
||
9 | mjames | 1167 | #define RCC_APB2RSTR_ADC2RST_Msk (0x1UL << RCC_APB2RSTR_ADC2RST_Pos) /*!< 0x00000400 */ |
2 | mjames | 1168 | #define RCC_APB2RSTR_ADC2RST RCC_APB2RSTR_ADC2RST_Msk /*!< ADC 2 interface reset */ |
1169 | |||
1170 | #define RCC_APB2RSTR_TIM1RST_Pos (11U) |
||
9 | mjames | 1171 | #define RCC_APB2RSTR_TIM1RST_Msk (0x1UL << RCC_APB2RSTR_TIM1RST_Pos) /*!< 0x00000800 */ |
2 | mjames | 1172 | #define RCC_APB2RSTR_TIM1RST RCC_APB2RSTR_TIM1RST_Msk /*!< TIM1 Timer reset */ |
1173 | #define RCC_APB2RSTR_SPI1RST_Pos (12U) |
||
9 | mjames | 1174 | #define RCC_APB2RSTR_SPI1RST_Msk (0x1UL << RCC_APB2RSTR_SPI1RST_Pos) /*!< 0x00001000 */ |
2 | mjames | 1175 | #define RCC_APB2RSTR_SPI1RST RCC_APB2RSTR_SPI1RST_Msk /*!< SPI 1 reset */ |
1176 | #define RCC_APB2RSTR_USART1RST_Pos (14U) |
||
9 | mjames | 1177 | #define RCC_APB2RSTR_USART1RST_Msk (0x1UL << RCC_APB2RSTR_USART1RST_Pos) /*!< 0x00004000 */ |
2 | mjames | 1178 | #define RCC_APB2RSTR_USART1RST RCC_APB2RSTR_USART1RST_Msk /*!< USART1 reset */ |
1179 | |||
1180 | |||
1181 | |||
1182 | |||
1183 | |||
1184 | |||
1185 | /***************** Bit definition for RCC_APB1RSTR register *****************/ |
||
1186 | #define RCC_APB1RSTR_TIM2RST_Pos (0U) |
||
9 | mjames | 1187 | #define RCC_APB1RSTR_TIM2RST_Msk (0x1UL << RCC_APB1RSTR_TIM2RST_Pos) /*!< 0x00000001 */ |
2 | mjames | 1188 | #define RCC_APB1RSTR_TIM2RST RCC_APB1RSTR_TIM2RST_Msk /*!< Timer 2 reset */ |
1189 | #define RCC_APB1RSTR_TIM3RST_Pos (1U) |
||
9 | mjames | 1190 | #define RCC_APB1RSTR_TIM3RST_Msk (0x1UL << RCC_APB1RSTR_TIM3RST_Pos) /*!< 0x00000002 */ |
2 | mjames | 1191 | #define RCC_APB1RSTR_TIM3RST RCC_APB1RSTR_TIM3RST_Msk /*!< Timer 3 reset */ |
1192 | #define RCC_APB1RSTR_WWDGRST_Pos (11U) |
||
9 | mjames | 1193 | #define RCC_APB1RSTR_WWDGRST_Msk (0x1UL << RCC_APB1RSTR_WWDGRST_Pos) /*!< 0x00000800 */ |
2 | mjames | 1194 | #define RCC_APB1RSTR_WWDGRST RCC_APB1RSTR_WWDGRST_Msk /*!< Window Watchdog reset */ |
1195 | #define RCC_APB1RSTR_USART2RST_Pos (17U) |
||
9 | mjames | 1196 | #define RCC_APB1RSTR_USART2RST_Msk (0x1UL << RCC_APB1RSTR_USART2RST_Pos) /*!< 0x00020000 */ |
2 | mjames | 1197 | #define RCC_APB1RSTR_USART2RST RCC_APB1RSTR_USART2RST_Msk /*!< USART 2 reset */ |
1198 | #define RCC_APB1RSTR_I2C1RST_Pos (21U) |
||
9 | mjames | 1199 | #define RCC_APB1RSTR_I2C1RST_Msk (0x1UL << RCC_APB1RSTR_I2C1RST_Pos) /*!< 0x00200000 */ |
2 | mjames | 1200 | #define RCC_APB1RSTR_I2C1RST RCC_APB1RSTR_I2C1RST_Msk /*!< I2C 1 reset */ |
1201 | |||
1202 | #define RCC_APB1RSTR_CAN1RST_Pos (25U) |
||
9 | mjames | 1203 | #define RCC_APB1RSTR_CAN1RST_Msk (0x1UL << RCC_APB1RSTR_CAN1RST_Pos) /*!< 0x02000000 */ |
2 | mjames | 1204 | #define RCC_APB1RSTR_CAN1RST RCC_APB1RSTR_CAN1RST_Msk /*!< CAN1 reset */ |
1205 | |||
1206 | #define RCC_APB1RSTR_BKPRST_Pos (27U) |
||
9 | mjames | 1207 | #define RCC_APB1RSTR_BKPRST_Msk (0x1UL << RCC_APB1RSTR_BKPRST_Pos) /*!< 0x08000000 */ |
2 | mjames | 1208 | #define RCC_APB1RSTR_BKPRST RCC_APB1RSTR_BKPRST_Msk /*!< Backup interface reset */ |
1209 | #define RCC_APB1RSTR_PWRRST_Pos (28U) |
||
9 | mjames | 1210 | #define RCC_APB1RSTR_PWRRST_Msk (0x1UL << RCC_APB1RSTR_PWRRST_Pos) /*!< 0x10000000 */ |
2 | mjames | 1211 | #define RCC_APB1RSTR_PWRRST RCC_APB1RSTR_PWRRST_Msk /*!< Power interface reset */ |
1212 | |||
1213 | |||
1214 | #define RCC_APB1RSTR_USBRST_Pos (23U) |
||
9 | mjames | 1215 | #define RCC_APB1RSTR_USBRST_Msk (0x1UL << RCC_APB1RSTR_USBRST_Pos) /*!< 0x00800000 */ |
2 | mjames | 1216 | #define RCC_APB1RSTR_USBRST RCC_APB1RSTR_USBRST_Msk /*!< USB Device reset */ |
1217 | |||
1218 | |||
1219 | |||
1220 | |||
1221 | |||
1222 | |||
1223 | /****************** Bit definition for RCC_AHBENR register ******************/ |
||
1224 | #define RCC_AHBENR_DMA1EN_Pos (0U) |
||
9 | mjames | 1225 | #define RCC_AHBENR_DMA1EN_Msk (0x1UL << RCC_AHBENR_DMA1EN_Pos) /*!< 0x00000001 */ |
2 | mjames | 1226 | #define RCC_AHBENR_DMA1EN RCC_AHBENR_DMA1EN_Msk /*!< DMA1 clock enable */ |
1227 | #define RCC_AHBENR_SRAMEN_Pos (2U) |
||
9 | mjames | 1228 | #define RCC_AHBENR_SRAMEN_Msk (0x1UL << RCC_AHBENR_SRAMEN_Pos) /*!< 0x00000004 */ |
2 | mjames | 1229 | #define RCC_AHBENR_SRAMEN RCC_AHBENR_SRAMEN_Msk /*!< SRAM interface clock enable */ |
1230 | #define RCC_AHBENR_FLITFEN_Pos (4U) |
||
9 | mjames | 1231 | #define RCC_AHBENR_FLITFEN_Msk (0x1UL << RCC_AHBENR_FLITFEN_Pos) /*!< 0x00000010 */ |
2 | mjames | 1232 | #define RCC_AHBENR_FLITFEN RCC_AHBENR_FLITFEN_Msk /*!< FLITF clock enable */ |
1233 | #define RCC_AHBENR_CRCEN_Pos (6U) |
||
9 | mjames | 1234 | #define RCC_AHBENR_CRCEN_Msk (0x1UL << RCC_AHBENR_CRCEN_Pos) /*!< 0x00000040 */ |
2 | mjames | 1235 | #define RCC_AHBENR_CRCEN RCC_AHBENR_CRCEN_Msk /*!< CRC clock enable */ |
1236 | |||
1237 | |||
1238 | |||
1239 | |||
1240 | /****************** Bit definition for RCC_APB2ENR register *****************/ |
||
1241 | #define RCC_APB2ENR_AFIOEN_Pos (0U) |
||
9 | mjames | 1242 | #define RCC_APB2ENR_AFIOEN_Msk (0x1UL << RCC_APB2ENR_AFIOEN_Pos) /*!< 0x00000001 */ |
2 | mjames | 1243 | #define RCC_APB2ENR_AFIOEN RCC_APB2ENR_AFIOEN_Msk /*!< Alternate Function I/O clock enable */ |
1244 | #define RCC_APB2ENR_IOPAEN_Pos (2U) |
||
9 | mjames | 1245 | #define RCC_APB2ENR_IOPAEN_Msk (0x1UL << RCC_APB2ENR_IOPAEN_Pos) /*!< 0x00000004 */ |
2 | mjames | 1246 | #define RCC_APB2ENR_IOPAEN RCC_APB2ENR_IOPAEN_Msk /*!< I/O port A clock enable */ |
1247 | #define RCC_APB2ENR_IOPBEN_Pos (3U) |
||
9 | mjames | 1248 | #define RCC_APB2ENR_IOPBEN_Msk (0x1UL << RCC_APB2ENR_IOPBEN_Pos) /*!< 0x00000008 */ |
2 | mjames | 1249 | #define RCC_APB2ENR_IOPBEN RCC_APB2ENR_IOPBEN_Msk /*!< I/O port B clock enable */ |
1250 | #define RCC_APB2ENR_IOPCEN_Pos (4U) |
||
9 | mjames | 1251 | #define RCC_APB2ENR_IOPCEN_Msk (0x1UL << RCC_APB2ENR_IOPCEN_Pos) /*!< 0x00000010 */ |
2 | mjames | 1252 | #define RCC_APB2ENR_IOPCEN RCC_APB2ENR_IOPCEN_Msk /*!< I/O port C clock enable */ |
1253 | #define RCC_APB2ENR_IOPDEN_Pos (5U) |
||
9 | mjames | 1254 | #define RCC_APB2ENR_IOPDEN_Msk (0x1UL << RCC_APB2ENR_IOPDEN_Pos) /*!< 0x00000020 */ |
2 | mjames | 1255 | #define RCC_APB2ENR_IOPDEN RCC_APB2ENR_IOPDEN_Msk /*!< I/O port D clock enable */ |
1256 | #define RCC_APB2ENR_ADC1EN_Pos (9U) |
||
9 | mjames | 1257 | #define RCC_APB2ENR_ADC1EN_Msk (0x1UL << RCC_APB2ENR_ADC1EN_Pos) /*!< 0x00000200 */ |
2 | mjames | 1258 | #define RCC_APB2ENR_ADC1EN RCC_APB2ENR_ADC1EN_Msk /*!< ADC 1 interface clock enable */ |
1259 | |||
1260 | #define RCC_APB2ENR_ADC2EN_Pos (10U) |
||
9 | mjames | 1261 | #define RCC_APB2ENR_ADC2EN_Msk (0x1UL << RCC_APB2ENR_ADC2EN_Pos) /*!< 0x00000400 */ |
2 | mjames | 1262 | #define RCC_APB2ENR_ADC2EN RCC_APB2ENR_ADC2EN_Msk /*!< ADC 2 interface clock enable */ |
1263 | |||
1264 | #define RCC_APB2ENR_TIM1EN_Pos (11U) |
||
9 | mjames | 1265 | #define RCC_APB2ENR_TIM1EN_Msk (0x1UL << RCC_APB2ENR_TIM1EN_Pos) /*!< 0x00000800 */ |
2 | mjames | 1266 | #define RCC_APB2ENR_TIM1EN RCC_APB2ENR_TIM1EN_Msk /*!< TIM1 Timer clock enable */ |
1267 | #define RCC_APB2ENR_SPI1EN_Pos (12U) |
||
9 | mjames | 1268 | #define RCC_APB2ENR_SPI1EN_Msk (0x1UL << RCC_APB2ENR_SPI1EN_Pos) /*!< 0x00001000 */ |
2 | mjames | 1269 | #define RCC_APB2ENR_SPI1EN RCC_APB2ENR_SPI1EN_Msk /*!< SPI 1 clock enable */ |
1270 | #define RCC_APB2ENR_USART1EN_Pos (14U) |
||
9 | mjames | 1271 | #define RCC_APB2ENR_USART1EN_Msk (0x1UL << RCC_APB2ENR_USART1EN_Pos) /*!< 0x00004000 */ |
2 | mjames | 1272 | #define RCC_APB2ENR_USART1EN RCC_APB2ENR_USART1EN_Msk /*!< USART1 clock enable */ |
1273 | |||
1274 | |||
1275 | |||
1276 | |||
1277 | |||
1278 | |||
1279 | /***************** Bit definition for RCC_APB1ENR register ******************/ |
||
1280 | #define RCC_APB1ENR_TIM2EN_Pos (0U) |
||
9 | mjames | 1281 | #define RCC_APB1ENR_TIM2EN_Msk (0x1UL << RCC_APB1ENR_TIM2EN_Pos) /*!< 0x00000001 */ |
2 | mjames | 1282 | #define RCC_APB1ENR_TIM2EN RCC_APB1ENR_TIM2EN_Msk /*!< Timer 2 clock enabled*/ |
1283 | #define RCC_APB1ENR_TIM3EN_Pos (1U) |
||
9 | mjames | 1284 | #define RCC_APB1ENR_TIM3EN_Msk (0x1UL << RCC_APB1ENR_TIM3EN_Pos) /*!< 0x00000002 */ |
2 | mjames | 1285 | #define RCC_APB1ENR_TIM3EN RCC_APB1ENR_TIM3EN_Msk /*!< Timer 3 clock enable */ |
1286 | #define RCC_APB1ENR_WWDGEN_Pos (11U) |
||
9 | mjames | 1287 | #define RCC_APB1ENR_WWDGEN_Msk (0x1UL << RCC_APB1ENR_WWDGEN_Pos) /*!< 0x00000800 */ |
2 | mjames | 1288 | #define RCC_APB1ENR_WWDGEN RCC_APB1ENR_WWDGEN_Msk /*!< Window Watchdog clock enable */ |
1289 | #define RCC_APB1ENR_USART2EN_Pos (17U) |
||
9 | mjames | 1290 | #define RCC_APB1ENR_USART2EN_Msk (0x1UL << RCC_APB1ENR_USART2EN_Pos) /*!< 0x00020000 */ |
2 | mjames | 1291 | #define RCC_APB1ENR_USART2EN RCC_APB1ENR_USART2EN_Msk /*!< USART 2 clock enable */ |
1292 | #define RCC_APB1ENR_I2C1EN_Pos (21U) |
||
9 | mjames | 1293 | #define RCC_APB1ENR_I2C1EN_Msk (0x1UL << RCC_APB1ENR_I2C1EN_Pos) /*!< 0x00200000 */ |
2 | mjames | 1294 | #define RCC_APB1ENR_I2C1EN RCC_APB1ENR_I2C1EN_Msk /*!< I2C 1 clock enable */ |
1295 | |||
1296 | #define RCC_APB1ENR_CAN1EN_Pos (25U) |
||
9 | mjames | 1297 | #define RCC_APB1ENR_CAN1EN_Msk (0x1UL << RCC_APB1ENR_CAN1EN_Pos) /*!< 0x02000000 */ |
2 | mjames | 1298 | #define RCC_APB1ENR_CAN1EN RCC_APB1ENR_CAN1EN_Msk /*!< CAN1 clock enable */ |
1299 | |||
1300 | #define RCC_APB1ENR_BKPEN_Pos (27U) |
||
9 | mjames | 1301 | #define RCC_APB1ENR_BKPEN_Msk (0x1UL << RCC_APB1ENR_BKPEN_Pos) /*!< 0x08000000 */ |
2 | mjames | 1302 | #define RCC_APB1ENR_BKPEN RCC_APB1ENR_BKPEN_Msk /*!< Backup interface clock enable */ |
1303 | #define RCC_APB1ENR_PWREN_Pos (28U) |
||
9 | mjames | 1304 | #define RCC_APB1ENR_PWREN_Msk (0x1UL << RCC_APB1ENR_PWREN_Pos) /*!< 0x10000000 */ |
2 | mjames | 1305 | #define RCC_APB1ENR_PWREN RCC_APB1ENR_PWREN_Msk /*!< Power interface clock enable */ |
1306 | |||
1307 | |||
1308 | #define RCC_APB1ENR_USBEN_Pos (23U) |
||
9 | mjames | 1309 | #define RCC_APB1ENR_USBEN_Msk (0x1UL << RCC_APB1ENR_USBEN_Pos) /*!< 0x00800000 */ |
2 | mjames | 1310 | #define RCC_APB1ENR_USBEN RCC_APB1ENR_USBEN_Msk /*!< USB Device clock enable */ |
1311 | |||
1312 | |||
1313 | |||
1314 | |||
1315 | |||
1316 | |||
1317 | /******************* Bit definition for RCC_BDCR register *******************/ |
||
1318 | #define RCC_BDCR_LSEON_Pos (0U) |
||
9 | mjames | 1319 | #define RCC_BDCR_LSEON_Msk (0x1UL << RCC_BDCR_LSEON_Pos) /*!< 0x00000001 */ |
2 | mjames | 1320 | #define RCC_BDCR_LSEON RCC_BDCR_LSEON_Msk /*!< External Low Speed oscillator enable */ |
1321 | #define RCC_BDCR_LSERDY_Pos (1U) |
||
9 | mjames | 1322 | #define RCC_BDCR_LSERDY_Msk (0x1UL << RCC_BDCR_LSERDY_Pos) /*!< 0x00000002 */ |
2 | mjames | 1323 | #define RCC_BDCR_LSERDY RCC_BDCR_LSERDY_Msk /*!< External Low Speed oscillator Ready */ |
1324 | #define RCC_BDCR_LSEBYP_Pos (2U) |
||
9 | mjames | 1325 | #define RCC_BDCR_LSEBYP_Msk (0x1UL << RCC_BDCR_LSEBYP_Pos) /*!< 0x00000004 */ |
2 | mjames | 1326 | #define RCC_BDCR_LSEBYP RCC_BDCR_LSEBYP_Msk /*!< External Low Speed oscillator Bypass */ |
1327 | |||
1328 | #define RCC_BDCR_RTCSEL_Pos (8U) |
||
9 | mjames | 1329 | #define RCC_BDCR_RTCSEL_Msk (0x3UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000300 */ |
2 | mjames | 1330 | #define RCC_BDCR_RTCSEL RCC_BDCR_RTCSEL_Msk /*!< RTCSEL[1:0] bits (RTC clock source selection) */ |
9 | mjames | 1331 | #define RCC_BDCR_RTCSEL_0 (0x1UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000100 */ |
1332 | #define RCC_BDCR_RTCSEL_1 (0x2UL << RCC_BDCR_RTCSEL_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 1333 | |
1334 | /*!< RTC congiguration */ |
||
1335 | #define RCC_BDCR_RTCSEL_NOCLOCK 0x00000000U /*!< No clock */ |
||
1336 | #define RCC_BDCR_RTCSEL_LSE 0x00000100U /*!< LSE oscillator clock used as RTC clock */ |
||
1337 | #define RCC_BDCR_RTCSEL_LSI 0x00000200U /*!< LSI oscillator clock used as RTC clock */ |
||
1338 | #define RCC_BDCR_RTCSEL_HSE 0x00000300U /*!< HSE oscillator clock divided by 128 used as RTC clock */ |
||
1339 | |||
1340 | #define RCC_BDCR_RTCEN_Pos (15U) |
||
9 | mjames | 1341 | #define RCC_BDCR_RTCEN_Msk (0x1UL << RCC_BDCR_RTCEN_Pos) /*!< 0x00008000 */ |
2 | mjames | 1342 | #define RCC_BDCR_RTCEN RCC_BDCR_RTCEN_Msk /*!< RTC clock enable */ |
1343 | #define RCC_BDCR_BDRST_Pos (16U) |
||
9 | mjames | 1344 | #define RCC_BDCR_BDRST_Msk (0x1UL << RCC_BDCR_BDRST_Pos) /*!< 0x00010000 */ |
2 | mjames | 1345 | #define RCC_BDCR_BDRST RCC_BDCR_BDRST_Msk /*!< Backup domain software reset */ |
1346 | |||
1347 | /******************* Bit definition for RCC_CSR register ********************/ |
||
1348 | #define RCC_CSR_LSION_Pos (0U) |
||
9 | mjames | 1349 | #define RCC_CSR_LSION_Msk (0x1UL << RCC_CSR_LSION_Pos) /*!< 0x00000001 */ |
2 | mjames | 1350 | #define RCC_CSR_LSION RCC_CSR_LSION_Msk /*!< Internal Low Speed oscillator enable */ |
1351 | #define RCC_CSR_LSIRDY_Pos (1U) |
||
9 | mjames | 1352 | #define RCC_CSR_LSIRDY_Msk (0x1UL << RCC_CSR_LSIRDY_Pos) /*!< 0x00000002 */ |
2 | mjames | 1353 | #define RCC_CSR_LSIRDY RCC_CSR_LSIRDY_Msk /*!< Internal Low Speed oscillator Ready */ |
1354 | #define RCC_CSR_RMVF_Pos (24U) |
||
9 | mjames | 1355 | #define RCC_CSR_RMVF_Msk (0x1UL << RCC_CSR_RMVF_Pos) /*!< 0x01000000 */ |
2 | mjames | 1356 | #define RCC_CSR_RMVF RCC_CSR_RMVF_Msk /*!< Remove reset flag */ |
1357 | #define RCC_CSR_PINRSTF_Pos (26U) |
||
9 | mjames | 1358 | #define RCC_CSR_PINRSTF_Msk (0x1UL << RCC_CSR_PINRSTF_Pos) /*!< 0x04000000 */ |
2 | mjames | 1359 | #define RCC_CSR_PINRSTF RCC_CSR_PINRSTF_Msk /*!< PIN reset flag */ |
1360 | #define RCC_CSR_PORRSTF_Pos (27U) |
||
9 | mjames | 1361 | #define RCC_CSR_PORRSTF_Msk (0x1UL << RCC_CSR_PORRSTF_Pos) /*!< 0x08000000 */ |
2 | mjames | 1362 | #define RCC_CSR_PORRSTF RCC_CSR_PORRSTF_Msk /*!< POR/PDR reset flag */ |
1363 | #define RCC_CSR_SFTRSTF_Pos (28U) |
||
9 | mjames | 1364 | #define RCC_CSR_SFTRSTF_Msk (0x1UL << RCC_CSR_SFTRSTF_Pos) /*!< 0x10000000 */ |
2 | mjames | 1365 | #define RCC_CSR_SFTRSTF RCC_CSR_SFTRSTF_Msk /*!< Software Reset flag */ |
1366 | #define RCC_CSR_IWDGRSTF_Pos (29U) |
||
9 | mjames | 1367 | #define RCC_CSR_IWDGRSTF_Msk (0x1UL << RCC_CSR_IWDGRSTF_Pos) /*!< 0x20000000 */ |
2 | mjames | 1368 | #define RCC_CSR_IWDGRSTF RCC_CSR_IWDGRSTF_Msk /*!< Independent Watchdog reset flag */ |
1369 | #define RCC_CSR_WWDGRSTF_Pos (30U) |
||
9 | mjames | 1370 | #define RCC_CSR_WWDGRSTF_Msk (0x1UL << RCC_CSR_WWDGRSTF_Pos) /*!< 0x40000000 */ |
2 | mjames | 1371 | #define RCC_CSR_WWDGRSTF RCC_CSR_WWDGRSTF_Msk /*!< Window watchdog reset flag */ |
1372 | #define RCC_CSR_LPWRRSTF_Pos (31U) |
||
9 | mjames | 1373 | #define RCC_CSR_LPWRRSTF_Msk (0x1UL << RCC_CSR_LPWRRSTF_Pos) /*!< 0x80000000 */ |
2 | mjames | 1374 | #define RCC_CSR_LPWRRSTF RCC_CSR_LPWRRSTF_Msk /*!< Low-Power reset flag */ |
1375 | |||
1376 | |||
1377 | |||
1378 | /******************************************************************************/ |
||
1379 | /* */ |
||
1380 | /* General Purpose and Alternate Function I/O */ |
||
1381 | /* */ |
||
1382 | /******************************************************************************/ |
||
1383 | |||
1384 | /******************* Bit definition for GPIO_CRL register *******************/ |
||
1385 | #define GPIO_CRL_MODE_Pos (0U) |
||
9 | mjames | 1386 | #define GPIO_CRL_MODE_Msk (0x33333333UL << GPIO_CRL_MODE_Pos) /*!< 0x33333333 */ |
2 | mjames | 1387 | #define GPIO_CRL_MODE GPIO_CRL_MODE_Msk /*!< Port x mode bits */ |
1388 | |||
1389 | #define GPIO_CRL_MODE0_Pos (0U) |
||
9 | mjames | 1390 | #define GPIO_CRL_MODE0_Msk (0x3UL << GPIO_CRL_MODE0_Pos) /*!< 0x00000003 */ |
2 | mjames | 1391 | #define GPIO_CRL_MODE0 GPIO_CRL_MODE0_Msk /*!< MODE0[1:0] bits (Port x mode bits, pin 0) */ |
9 | mjames | 1392 | #define GPIO_CRL_MODE0_0 (0x1UL << GPIO_CRL_MODE0_Pos) /*!< 0x00000001 */ |
1393 | #define GPIO_CRL_MODE0_1 (0x2UL << GPIO_CRL_MODE0_Pos) /*!< 0x00000002 */ |
||
2 | mjames | 1394 | |
1395 | #define GPIO_CRL_MODE1_Pos (4U) |
||
9 | mjames | 1396 | #define GPIO_CRL_MODE1_Msk (0x3UL << GPIO_CRL_MODE1_Pos) /*!< 0x00000030 */ |
2 | mjames | 1397 | #define GPIO_CRL_MODE1 GPIO_CRL_MODE1_Msk /*!< MODE1[1:0] bits (Port x mode bits, pin 1) */ |
9 | mjames | 1398 | #define GPIO_CRL_MODE1_0 (0x1UL << GPIO_CRL_MODE1_Pos) /*!< 0x00000010 */ |
1399 | #define GPIO_CRL_MODE1_1 (0x2UL << GPIO_CRL_MODE1_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 1400 | |
1401 | #define GPIO_CRL_MODE2_Pos (8U) |
||
9 | mjames | 1402 | #define GPIO_CRL_MODE2_Msk (0x3UL << GPIO_CRL_MODE2_Pos) /*!< 0x00000300 */ |
2 | mjames | 1403 | #define GPIO_CRL_MODE2 GPIO_CRL_MODE2_Msk /*!< MODE2[1:0] bits (Port x mode bits, pin 2) */ |
9 | mjames | 1404 | #define GPIO_CRL_MODE2_0 (0x1UL << GPIO_CRL_MODE2_Pos) /*!< 0x00000100 */ |
1405 | #define GPIO_CRL_MODE2_1 (0x2UL << GPIO_CRL_MODE2_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 1406 | |
1407 | #define GPIO_CRL_MODE3_Pos (12U) |
||
9 | mjames | 1408 | #define GPIO_CRL_MODE3_Msk (0x3UL << GPIO_CRL_MODE3_Pos) /*!< 0x00003000 */ |
2 | mjames | 1409 | #define GPIO_CRL_MODE3 GPIO_CRL_MODE3_Msk /*!< MODE3[1:0] bits (Port x mode bits, pin 3) */ |
9 | mjames | 1410 | #define GPIO_CRL_MODE3_0 (0x1UL << GPIO_CRL_MODE3_Pos) /*!< 0x00001000 */ |
1411 | #define GPIO_CRL_MODE3_1 (0x2UL << GPIO_CRL_MODE3_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 1412 | |
1413 | #define GPIO_CRL_MODE4_Pos (16U) |
||
9 | mjames | 1414 | #define GPIO_CRL_MODE4_Msk (0x3UL << GPIO_CRL_MODE4_Pos) /*!< 0x00030000 */ |
2 | mjames | 1415 | #define GPIO_CRL_MODE4 GPIO_CRL_MODE4_Msk /*!< MODE4[1:0] bits (Port x mode bits, pin 4) */ |
9 | mjames | 1416 | #define GPIO_CRL_MODE4_0 (0x1UL << GPIO_CRL_MODE4_Pos) /*!< 0x00010000 */ |
1417 | #define GPIO_CRL_MODE4_1 (0x2UL << GPIO_CRL_MODE4_Pos) /*!< 0x00020000 */ |
||
2 | mjames | 1418 | |
1419 | #define GPIO_CRL_MODE5_Pos (20U) |
||
9 | mjames | 1420 | #define GPIO_CRL_MODE5_Msk (0x3UL << GPIO_CRL_MODE5_Pos) /*!< 0x00300000 */ |
2 | mjames | 1421 | #define GPIO_CRL_MODE5 GPIO_CRL_MODE5_Msk /*!< MODE5[1:0] bits (Port x mode bits, pin 5) */ |
9 | mjames | 1422 | #define GPIO_CRL_MODE5_0 (0x1UL << GPIO_CRL_MODE5_Pos) /*!< 0x00100000 */ |
1423 | #define GPIO_CRL_MODE5_1 (0x2UL << GPIO_CRL_MODE5_Pos) /*!< 0x00200000 */ |
||
2 | mjames | 1424 | |
1425 | #define GPIO_CRL_MODE6_Pos (24U) |
||
9 | mjames | 1426 | #define GPIO_CRL_MODE6_Msk (0x3UL << GPIO_CRL_MODE6_Pos) /*!< 0x03000000 */ |
2 | mjames | 1427 | #define GPIO_CRL_MODE6 GPIO_CRL_MODE6_Msk /*!< MODE6[1:0] bits (Port x mode bits, pin 6) */ |
9 | mjames | 1428 | #define GPIO_CRL_MODE6_0 (0x1UL << GPIO_CRL_MODE6_Pos) /*!< 0x01000000 */ |
1429 | #define GPIO_CRL_MODE6_1 (0x2UL << GPIO_CRL_MODE6_Pos) /*!< 0x02000000 */ |
||
2 | mjames | 1430 | |
1431 | #define GPIO_CRL_MODE7_Pos (28U) |
||
9 | mjames | 1432 | #define GPIO_CRL_MODE7_Msk (0x3UL << GPIO_CRL_MODE7_Pos) /*!< 0x30000000 */ |
2 | mjames | 1433 | #define GPIO_CRL_MODE7 GPIO_CRL_MODE7_Msk /*!< MODE7[1:0] bits (Port x mode bits, pin 7) */ |
9 | mjames | 1434 | #define GPIO_CRL_MODE7_0 (0x1UL << GPIO_CRL_MODE7_Pos) /*!< 0x10000000 */ |
1435 | #define GPIO_CRL_MODE7_1 (0x2UL << GPIO_CRL_MODE7_Pos) /*!< 0x20000000 */ |
||
2 | mjames | 1436 | |
1437 | #define GPIO_CRL_CNF_Pos (2U) |
||
9 | mjames | 1438 | #define GPIO_CRL_CNF_Msk (0x33333333UL << GPIO_CRL_CNF_Pos) /*!< 0xCCCCCCCC */ |
2 | mjames | 1439 | #define GPIO_CRL_CNF GPIO_CRL_CNF_Msk /*!< Port x configuration bits */ |
1440 | |||
1441 | #define GPIO_CRL_CNF0_Pos (2U) |
||
9 | mjames | 1442 | #define GPIO_CRL_CNF0_Msk (0x3UL << GPIO_CRL_CNF0_Pos) /*!< 0x0000000C */ |
2 | mjames | 1443 | #define GPIO_CRL_CNF0 GPIO_CRL_CNF0_Msk /*!< CNF0[1:0] bits (Port x configuration bits, pin 0) */ |
9 | mjames | 1444 | #define GPIO_CRL_CNF0_0 (0x1UL << GPIO_CRL_CNF0_Pos) /*!< 0x00000004 */ |
1445 | #define GPIO_CRL_CNF0_1 (0x2UL << GPIO_CRL_CNF0_Pos) /*!< 0x00000008 */ |
||
2 | mjames | 1446 | |
1447 | #define GPIO_CRL_CNF1_Pos (6U) |
||
9 | mjames | 1448 | #define GPIO_CRL_CNF1_Msk (0x3UL << GPIO_CRL_CNF1_Pos) /*!< 0x000000C0 */ |
2 | mjames | 1449 | #define GPIO_CRL_CNF1 GPIO_CRL_CNF1_Msk /*!< CNF1[1:0] bits (Port x configuration bits, pin 1) */ |
9 | mjames | 1450 | #define GPIO_CRL_CNF1_0 (0x1UL << GPIO_CRL_CNF1_Pos) /*!< 0x00000040 */ |
1451 | #define GPIO_CRL_CNF1_1 (0x2UL << GPIO_CRL_CNF1_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 1452 | |
1453 | #define GPIO_CRL_CNF2_Pos (10U) |
||
9 | mjames | 1454 | #define GPIO_CRL_CNF2_Msk (0x3UL << GPIO_CRL_CNF2_Pos) /*!< 0x00000C00 */ |
2 | mjames | 1455 | #define GPIO_CRL_CNF2 GPIO_CRL_CNF2_Msk /*!< CNF2[1:0] bits (Port x configuration bits, pin 2) */ |
9 | mjames | 1456 | #define GPIO_CRL_CNF2_0 (0x1UL << GPIO_CRL_CNF2_Pos) /*!< 0x00000400 */ |
1457 | #define GPIO_CRL_CNF2_1 (0x2UL << GPIO_CRL_CNF2_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 1458 | |
1459 | #define GPIO_CRL_CNF3_Pos (14U) |
||
9 | mjames | 1460 | #define GPIO_CRL_CNF3_Msk (0x3UL << GPIO_CRL_CNF3_Pos) /*!< 0x0000C000 */ |
2 | mjames | 1461 | #define GPIO_CRL_CNF3 GPIO_CRL_CNF3_Msk /*!< CNF3[1:0] bits (Port x configuration bits, pin 3) */ |
9 | mjames | 1462 | #define GPIO_CRL_CNF3_0 (0x1UL << GPIO_CRL_CNF3_Pos) /*!< 0x00004000 */ |
1463 | #define GPIO_CRL_CNF3_1 (0x2UL << GPIO_CRL_CNF3_Pos) /*!< 0x00008000 */ |
||
2 | mjames | 1464 | |
1465 | #define GPIO_CRL_CNF4_Pos (18U) |
||
9 | mjames | 1466 | #define GPIO_CRL_CNF4_Msk (0x3UL << GPIO_CRL_CNF4_Pos) /*!< 0x000C0000 */ |
2 | mjames | 1467 | #define GPIO_CRL_CNF4 GPIO_CRL_CNF4_Msk /*!< CNF4[1:0] bits (Port x configuration bits, pin 4) */ |
9 | mjames | 1468 | #define GPIO_CRL_CNF4_0 (0x1UL << GPIO_CRL_CNF4_Pos) /*!< 0x00040000 */ |
1469 | #define GPIO_CRL_CNF4_1 (0x2UL << GPIO_CRL_CNF4_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 1470 | |
1471 | #define GPIO_CRL_CNF5_Pos (22U) |
||
9 | mjames | 1472 | #define GPIO_CRL_CNF5_Msk (0x3UL << GPIO_CRL_CNF5_Pos) /*!< 0x00C00000 */ |
2 | mjames | 1473 | #define GPIO_CRL_CNF5 GPIO_CRL_CNF5_Msk /*!< CNF5[1:0] bits (Port x configuration bits, pin 5) */ |
9 | mjames | 1474 | #define GPIO_CRL_CNF5_0 (0x1UL << GPIO_CRL_CNF5_Pos) /*!< 0x00400000 */ |
1475 | #define GPIO_CRL_CNF5_1 (0x2UL << GPIO_CRL_CNF5_Pos) /*!< 0x00800000 */ |
||
2 | mjames | 1476 | |
1477 | #define GPIO_CRL_CNF6_Pos (26U) |
||
9 | mjames | 1478 | #define GPIO_CRL_CNF6_Msk (0x3UL << GPIO_CRL_CNF6_Pos) /*!< 0x0C000000 */ |
2 | mjames | 1479 | #define GPIO_CRL_CNF6 GPIO_CRL_CNF6_Msk /*!< CNF6[1:0] bits (Port x configuration bits, pin 6) */ |
9 | mjames | 1480 | #define GPIO_CRL_CNF6_0 (0x1UL << GPIO_CRL_CNF6_Pos) /*!< 0x04000000 */ |
1481 | #define GPIO_CRL_CNF6_1 (0x2UL << GPIO_CRL_CNF6_Pos) /*!< 0x08000000 */ |
||
2 | mjames | 1482 | |
1483 | #define GPIO_CRL_CNF7_Pos (30U) |
||
9 | mjames | 1484 | #define GPIO_CRL_CNF7_Msk (0x3UL << GPIO_CRL_CNF7_Pos) /*!< 0xC0000000 */ |
2 | mjames | 1485 | #define GPIO_CRL_CNF7 GPIO_CRL_CNF7_Msk /*!< CNF7[1:0] bits (Port x configuration bits, pin 7) */ |
9 | mjames | 1486 | #define GPIO_CRL_CNF7_0 (0x1UL << GPIO_CRL_CNF7_Pos) /*!< 0x40000000 */ |
1487 | #define GPIO_CRL_CNF7_1 (0x2UL << GPIO_CRL_CNF7_Pos) /*!< 0x80000000 */ |
||
2 | mjames | 1488 | |
1489 | /******************* Bit definition for GPIO_CRH register *******************/ |
||
1490 | #define GPIO_CRH_MODE_Pos (0U) |
||
9 | mjames | 1491 | #define GPIO_CRH_MODE_Msk (0x33333333UL << GPIO_CRH_MODE_Pos) /*!< 0x33333333 */ |
2 | mjames | 1492 | #define GPIO_CRH_MODE GPIO_CRH_MODE_Msk /*!< Port x mode bits */ |
1493 | |||
1494 | #define GPIO_CRH_MODE8_Pos (0U) |
||
9 | mjames | 1495 | #define GPIO_CRH_MODE8_Msk (0x3UL << GPIO_CRH_MODE8_Pos) /*!< 0x00000003 */ |
2 | mjames | 1496 | #define GPIO_CRH_MODE8 GPIO_CRH_MODE8_Msk /*!< MODE8[1:0] bits (Port x mode bits, pin 8) */ |
9 | mjames | 1497 | #define GPIO_CRH_MODE8_0 (0x1UL << GPIO_CRH_MODE8_Pos) /*!< 0x00000001 */ |
1498 | #define GPIO_CRH_MODE8_1 (0x2UL << GPIO_CRH_MODE8_Pos) /*!< 0x00000002 */ |
||
2 | mjames | 1499 | |
1500 | #define GPIO_CRH_MODE9_Pos (4U) |
||
9 | mjames | 1501 | #define GPIO_CRH_MODE9_Msk (0x3UL << GPIO_CRH_MODE9_Pos) /*!< 0x00000030 */ |
2 | mjames | 1502 | #define GPIO_CRH_MODE9 GPIO_CRH_MODE9_Msk /*!< MODE9[1:0] bits (Port x mode bits, pin 9) */ |
9 | mjames | 1503 | #define GPIO_CRH_MODE9_0 (0x1UL << GPIO_CRH_MODE9_Pos) /*!< 0x00000010 */ |
1504 | #define GPIO_CRH_MODE9_1 (0x2UL << GPIO_CRH_MODE9_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 1505 | |
1506 | #define GPIO_CRH_MODE10_Pos (8U) |
||
9 | mjames | 1507 | #define GPIO_CRH_MODE10_Msk (0x3UL << GPIO_CRH_MODE10_Pos) /*!< 0x00000300 */ |
2 | mjames | 1508 | #define GPIO_CRH_MODE10 GPIO_CRH_MODE10_Msk /*!< MODE10[1:0] bits (Port x mode bits, pin 10) */ |
9 | mjames | 1509 | #define GPIO_CRH_MODE10_0 (0x1UL << GPIO_CRH_MODE10_Pos) /*!< 0x00000100 */ |
1510 | #define GPIO_CRH_MODE10_1 (0x2UL << GPIO_CRH_MODE10_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 1511 | |
1512 | #define GPIO_CRH_MODE11_Pos (12U) |
||
9 | mjames | 1513 | #define GPIO_CRH_MODE11_Msk (0x3UL << GPIO_CRH_MODE11_Pos) /*!< 0x00003000 */ |
2 | mjames | 1514 | #define GPIO_CRH_MODE11 GPIO_CRH_MODE11_Msk /*!< MODE11[1:0] bits (Port x mode bits, pin 11) */ |
9 | mjames | 1515 | #define GPIO_CRH_MODE11_0 (0x1UL << GPIO_CRH_MODE11_Pos) /*!< 0x00001000 */ |
1516 | #define GPIO_CRH_MODE11_1 (0x2UL << GPIO_CRH_MODE11_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 1517 | |
1518 | #define GPIO_CRH_MODE12_Pos (16U) |
||
9 | mjames | 1519 | #define GPIO_CRH_MODE12_Msk (0x3UL << GPIO_CRH_MODE12_Pos) /*!< 0x00030000 */ |
2 | mjames | 1520 | #define GPIO_CRH_MODE12 GPIO_CRH_MODE12_Msk /*!< MODE12[1:0] bits (Port x mode bits, pin 12) */ |
9 | mjames | 1521 | #define GPIO_CRH_MODE12_0 (0x1UL << GPIO_CRH_MODE12_Pos) /*!< 0x00010000 */ |
1522 | #define GPIO_CRH_MODE12_1 (0x2UL << GPIO_CRH_MODE12_Pos) /*!< 0x00020000 */ |
||
2 | mjames | 1523 | |
1524 | #define GPIO_CRH_MODE13_Pos (20U) |
||
9 | mjames | 1525 | #define GPIO_CRH_MODE13_Msk (0x3UL << GPIO_CRH_MODE13_Pos) /*!< 0x00300000 */ |
2 | mjames | 1526 | #define GPIO_CRH_MODE13 GPIO_CRH_MODE13_Msk /*!< MODE13[1:0] bits (Port x mode bits, pin 13) */ |
9 | mjames | 1527 | #define GPIO_CRH_MODE13_0 (0x1UL << GPIO_CRH_MODE13_Pos) /*!< 0x00100000 */ |
1528 | #define GPIO_CRH_MODE13_1 (0x2UL << GPIO_CRH_MODE13_Pos) /*!< 0x00200000 */ |
||
2 | mjames | 1529 | |
1530 | #define GPIO_CRH_MODE14_Pos (24U) |
||
9 | mjames | 1531 | #define GPIO_CRH_MODE14_Msk (0x3UL << GPIO_CRH_MODE14_Pos) /*!< 0x03000000 */ |
2 | mjames | 1532 | #define GPIO_CRH_MODE14 GPIO_CRH_MODE14_Msk /*!< MODE14[1:0] bits (Port x mode bits, pin 14) */ |
9 | mjames | 1533 | #define GPIO_CRH_MODE14_0 (0x1UL << GPIO_CRH_MODE14_Pos) /*!< 0x01000000 */ |
1534 | #define GPIO_CRH_MODE14_1 (0x2UL << GPIO_CRH_MODE14_Pos) /*!< 0x02000000 */ |
||
2 | mjames | 1535 | |
1536 | #define GPIO_CRH_MODE15_Pos (28U) |
||
9 | mjames | 1537 | #define GPIO_CRH_MODE15_Msk (0x3UL << GPIO_CRH_MODE15_Pos) /*!< 0x30000000 */ |
2 | mjames | 1538 | #define GPIO_CRH_MODE15 GPIO_CRH_MODE15_Msk /*!< MODE15[1:0] bits (Port x mode bits, pin 15) */ |
9 | mjames | 1539 | #define GPIO_CRH_MODE15_0 (0x1UL << GPIO_CRH_MODE15_Pos) /*!< 0x10000000 */ |
1540 | #define GPIO_CRH_MODE15_1 (0x2UL << GPIO_CRH_MODE15_Pos) /*!< 0x20000000 */ |
||
2 | mjames | 1541 | |
1542 | #define GPIO_CRH_CNF_Pos (2U) |
||
9 | mjames | 1543 | #define GPIO_CRH_CNF_Msk (0x33333333UL << GPIO_CRH_CNF_Pos) /*!< 0xCCCCCCCC */ |
2 | mjames | 1544 | #define GPIO_CRH_CNF GPIO_CRH_CNF_Msk /*!< Port x configuration bits */ |
1545 | |||
1546 | #define GPIO_CRH_CNF8_Pos (2U) |
||
9 | mjames | 1547 | #define GPIO_CRH_CNF8_Msk (0x3UL << GPIO_CRH_CNF8_Pos) /*!< 0x0000000C */ |
2 | mjames | 1548 | #define GPIO_CRH_CNF8 GPIO_CRH_CNF8_Msk /*!< CNF8[1:0] bits (Port x configuration bits, pin 8) */ |
9 | mjames | 1549 | #define GPIO_CRH_CNF8_0 (0x1UL << GPIO_CRH_CNF8_Pos) /*!< 0x00000004 */ |
1550 | #define GPIO_CRH_CNF8_1 (0x2UL << GPIO_CRH_CNF8_Pos) /*!< 0x00000008 */ |
||
2 | mjames | 1551 | |
1552 | #define GPIO_CRH_CNF9_Pos (6U) |
||
9 | mjames | 1553 | #define GPIO_CRH_CNF9_Msk (0x3UL << GPIO_CRH_CNF9_Pos) /*!< 0x000000C0 */ |
2 | mjames | 1554 | #define GPIO_CRH_CNF9 GPIO_CRH_CNF9_Msk /*!< CNF9[1:0] bits (Port x configuration bits, pin 9) */ |
9 | mjames | 1555 | #define GPIO_CRH_CNF9_0 (0x1UL << GPIO_CRH_CNF9_Pos) /*!< 0x00000040 */ |
1556 | #define GPIO_CRH_CNF9_1 (0x2UL << GPIO_CRH_CNF9_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 1557 | |
1558 | #define GPIO_CRH_CNF10_Pos (10U) |
||
9 | mjames | 1559 | #define GPIO_CRH_CNF10_Msk (0x3UL << GPIO_CRH_CNF10_Pos) /*!< 0x00000C00 */ |
2 | mjames | 1560 | #define GPIO_CRH_CNF10 GPIO_CRH_CNF10_Msk /*!< CNF10[1:0] bits (Port x configuration bits, pin 10) */ |
9 | mjames | 1561 | #define GPIO_CRH_CNF10_0 (0x1UL << GPIO_CRH_CNF10_Pos) /*!< 0x00000400 */ |
1562 | #define GPIO_CRH_CNF10_1 (0x2UL << GPIO_CRH_CNF10_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 1563 | |
1564 | #define GPIO_CRH_CNF11_Pos (14U) |
||
9 | mjames | 1565 | #define GPIO_CRH_CNF11_Msk (0x3UL << GPIO_CRH_CNF11_Pos) /*!< 0x0000C000 */ |
2 | mjames | 1566 | #define GPIO_CRH_CNF11 GPIO_CRH_CNF11_Msk /*!< CNF11[1:0] bits (Port x configuration bits, pin 11) */ |
9 | mjames | 1567 | #define GPIO_CRH_CNF11_0 (0x1UL << GPIO_CRH_CNF11_Pos) /*!< 0x00004000 */ |
1568 | #define GPIO_CRH_CNF11_1 (0x2UL << GPIO_CRH_CNF11_Pos) /*!< 0x00008000 */ |
||
2 | mjames | 1569 | |
1570 | #define GPIO_CRH_CNF12_Pos (18U) |
||
9 | mjames | 1571 | #define GPIO_CRH_CNF12_Msk (0x3UL << GPIO_CRH_CNF12_Pos) /*!< 0x000C0000 */ |
2 | mjames | 1572 | #define GPIO_CRH_CNF12 GPIO_CRH_CNF12_Msk /*!< CNF12[1:0] bits (Port x configuration bits, pin 12) */ |
9 | mjames | 1573 | #define GPIO_CRH_CNF12_0 (0x1UL << GPIO_CRH_CNF12_Pos) /*!< 0x00040000 */ |
1574 | #define GPIO_CRH_CNF12_1 (0x2UL << GPIO_CRH_CNF12_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 1575 | |
1576 | #define GPIO_CRH_CNF13_Pos (22U) |
||
9 | mjames | 1577 | #define GPIO_CRH_CNF13_Msk (0x3UL << GPIO_CRH_CNF13_Pos) /*!< 0x00C00000 */ |
2 | mjames | 1578 | #define GPIO_CRH_CNF13 GPIO_CRH_CNF13_Msk /*!< CNF13[1:0] bits (Port x configuration bits, pin 13) */ |
9 | mjames | 1579 | #define GPIO_CRH_CNF13_0 (0x1UL << GPIO_CRH_CNF13_Pos) /*!< 0x00400000 */ |
1580 | #define GPIO_CRH_CNF13_1 (0x2UL << GPIO_CRH_CNF13_Pos) /*!< 0x00800000 */ |
||
2 | mjames | 1581 | |
1582 | #define GPIO_CRH_CNF14_Pos (26U) |
||
9 | mjames | 1583 | #define GPIO_CRH_CNF14_Msk (0x3UL << GPIO_CRH_CNF14_Pos) /*!< 0x0C000000 */ |
2 | mjames | 1584 | #define GPIO_CRH_CNF14 GPIO_CRH_CNF14_Msk /*!< CNF14[1:0] bits (Port x configuration bits, pin 14) */ |
9 | mjames | 1585 | #define GPIO_CRH_CNF14_0 (0x1UL << GPIO_CRH_CNF14_Pos) /*!< 0x04000000 */ |
1586 | #define GPIO_CRH_CNF14_1 (0x2UL << GPIO_CRH_CNF14_Pos) /*!< 0x08000000 */ |
||
2 | mjames | 1587 | |
1588 | #define GPIO_CRH_CNF15_Pos (30U) |
||
9 | mjames | 1589 | #define GPIO_CRH_CNF15_Msk (0x3UL << GPIO_CRH_CNF15_Pos) /*!< 0xC0000000 */ |
2 | mjames | 1590 | #define GPIO_CRH_CNF15 GPIO_CRH_CNF15_Msk /*!< CNF15[1:0] bits (Port x configuration bits, pin 15) */ |
9 | mjames | 1591 | #define GPIO_CRH_CNF15_0 (0x1UL << GPIO_CRH_CNF15_Pos) /*!< 0x40000000 */ |
1592 | #define GPIO_CRH_CNF15_1 (0x2UL << GPIO_CRH_CNF15_Pos) /*!< 0x80000000 */ |
||
2 | mjames | 1593 | |
1594 | /*!<****************** Bit definition for GPIO_IDR register *******************/ |
||
1595 | #define GPIO_IDR_IDR0_Pos (0U) |
||
9 | mjames | 1596 | #define GPIO_IDR_IDR0_Msk (0x1UL << GPIO_IDR_IDR0_Pos) /*!< 0x00000001 */ |
2 | mjames | 1597 | #define GPIO_IDR_IDR0 GPIO_IDR_IDR0_Msk /*!< Port input data, bit 0 */ |
1598 | #define GPIO_IDR_IDR1_Pos (1U) |
||
9 | mjames | 1599 | #define GPIO_IDR_IDR1_Msk (0x1UL << GPIO_IDR_IDR1_Pos) /*!< 0x00000002 */ |
2 | mjames | 1600 | #define GPIO_IDR_IDR1 GPIO_IDR_IDR1_Msk /*!< Port input data, bit 1 */ |
1601 | #define GPIO_IDR_IDR2_Pos (2U) |
||
9 | mjames | 1602 | #define GPIO_IDR_IDR2_Msk (0x1UL << GPIO_IDR_IDR2_Pos) /*!< 0x00000004 */ |
2 | mjames | 1603 | #define GPIO_IDR_IDR2 GPIO_IDR_IDR2_Msk /*!< Port input data, bit 2 */ |
1604 | #define GPIO_IDR_IDR3_Pos (3U) |
||
9 | mjames | 1605 | #define GPIO_IDR_IDR3_Msk (0x1UL << GPIO_IDR_IDR3_Pos) /*!< 0x00000008 */ |
2 | mjames | 1606 | #define GPIO_IDR_IDR3 GPIO_IDR_IDR3_Msk /*!< Port input data, bit 3 */ |
1607 | #define GPIO_IDR_IDR4_Pos (4U) |
||
9 | mjames | 1608 | #define GPIO_IDR_IDR4_Msk (0x1UL << GPIO_IDR_IDR4_Pos) /*!< 0x00000010 */ |
2 | mjames | 1609 | #define GPIO_IDR_IDR4 GPIO_IDR_IDR4_Msk /*!< Port input data, bit 4 */ |
1610 | #define GPIO_IDR_IDR5_Pos (5U) |
||
9 | mjames | 1611 | #define GPIO_IDR_IDR5_Msk (0x1UL << GPIO_IDR_IDR5_Pos) /*!< 0x00000020 */ |
2 | mjames | 1612 | #define GPIO_IDR_IDR5 GPIO_IDR_IDR5_Msk /*!< Port input data, bit 5 */ |
1613 | #define GPIO_IDR_IDR6_Pos (6U) |
||
9 | mjames | 1614 | #define GPIO_IDR_IDR6_Msk (0x1UL << GPIO_IDR_IDR6_Pos) /*!< 0x00000040 */ |
2 | mjames | 1615 | #define GPIO_IDR_IDR6 GPIO_IDR_IDR6_Msk /*!< Port input data, bit 6 */ |
1616 | #define GPIO_IDR_IDR7_Pos (7U) |
||
9 | mjames | 1617 | #define GPIO_IDR_IDR7_Msk (0x1UL << GPIO_IDR_IDR7_Pos) /*!< 0x00000080 */ |
2 | mjames | 1618 | #define GPIO_IDR_IDR7 GPIO_IDR_IDR7_Msk /*!< Port input data, bit 7 */ |
1619 | #define GPIO_IDR_IDR8_Pos (8U) |
||
9 | mjames | 1620 | #define GPIO_IDR_IDR8_Msk (0x1UL << GPIO_IDR_IDR8_Pos) /*!< 0x00000100 */ |
2 | mjames | 1621 | #define GPIO_IDR_IDR8 GPIO_IDR_IDR8_Msk /*!< Port input data, bit 8 */ |
1622 | #define GPIO_IDR_IDR9_Pos (9U) |
||
9 | mjames | 1623 | #define GPIO_IDR_IDR9_Msk (0x1UL << GPIO_IDR_IDR9_Pos) /*!< 0x00000200 */ |
2 | mjames | 1624 | #define GPIO_IDR_IDR9 GPIO_IDR_IDR9_Msk /*!< Port input data, bit 9 */ |
1625 | #define GPIO_IDR_IDR10_Pos (10U) |
||
9 | mjames | 1626 | #define GPIO_IDR_IDR10_Msk (0x1UL << GPIO_IDR_IDR10_Pos) /*!< 0x00000400 */ |
2 | mjames | 1627 | #define GPIO_IDR_IDR10 GPIO_IDR_IDR10_Msk /*!< Port input data, bit 10 */ |
1628 | #define GPIO_IDR_IDR11_Pos (11U) |
||
9 | mjames | 1629 | #define GPIO_IDR_IDR11_Msk (0x1UL << GPIO_IDR_IDR11_Pos) /*!< 0x00000800 */ |
2 | mjames | 1630 | #define GPIO_IDR_IDR11 GPIO_IDR_IDR11_Msk /*!< Port input data, bit 11 */ |
1631 | #define GPIO_IDR_IDR12_Pos (12U) |
||
9 | mjames | 1632 | #define GPIO_IDR_IDR12_Msk (0x1UL << GPIO_IDR_IDR12_Pos) /*!< 0x00001000 */ |
2 | mjames | 1633 | #define GPIO_IDR_IDR12 GPIO_IDR_IDR12_Msk /*!< Port input data, bit 12 */ |
1634 | #define GPIO_IDR_IDR13_Pos (13U) |
||
9 | mjames | 1635 | #define GPIO_IDR_IDR13_Msk (0x1UL << GPIO_IDR_IDR13_Pos) /*!< 0x00002000 */ |
2 | mjames | 1636 | #define GPIO_IDR_IDR13 GPIO_IDR_IDR13_Msk /*!< Port input data, bit 13 */ |
1637 | #define GPIO_IDR_IDR14_Pos (14U) |
||
9 | mjames | 1638 | #define GPIO_IDR_IDR14_Msk (0x1UL << GPIO_IDR_IDR14_Pos) /*!< 0x00004000 */ |
2 | mjames | 1639 | #define GPIO_IDR_IDR14 GPIO_IDR_IDR14_Msk /*!< Port input data, bit 14 */ |
1640 | #define GPIO_IDR_IDR15_Pos (15U) |
||
9 | mjames | 1641 | #define GPIO_IDR_IDR15_Msk (0x1UL << GPIO_IDR_IDR15_Pos) /*!< 0x00008000 */ |
2 | mjames | 1642 | #define GPIO_IDR_IDR15 GPIO_IDR_IDR15_Msk /*!< Port input data, bit 15 */ |
1643 | |||
1644 | /******************* Bit definition for GPIO_ODR register *******************/ |
||
1645 | #define GPIO_ODR_ODR0_Pos (0U) |
||
9 | mjames | 1646 | #define GPIO_ODR_ODR0_Msk (0x1UL << GPIO_ODR_ODR0_Pos) /*!< 0x00000001 */ |
2 | mjames | 1647 | #define GPIO_ODR_ODR0 GPIO_ODR_ODR0_Msk /*!< Port output data, bit 0 */ |
1648 | #define GPIO_ODR_ODR1_Pos (1U) |
||
9 | mjames | 1649 | #define GPIO_ODR_ODR1_Msk (0x1UL << GPIO_ODR_ODR1_Pos) /*!< 0x00000002 */ |
2 | mjames | 1650 | #define GPIO_ODR_ODR1 GPIO_ODR_ODR1_Msk /*!< Port output data, bit 1 */ |
1651 | #define GPIO_ODR_ODR2_Pos (2U) |
||
9 | mjames | 1652 | #define GPIO_ODR_ODR2_Msk (0x1UL << GPIO_ODR_ODR2_Pos) /*!< 0x00000004 */ |
2 | mjames | 1653 | #define GPIO_ODR_ODR2 GPIO_ODR_ODR2_Msk /*!< Port output data, bit 2 */ |
1654 | #define GPIO_ODR_ODR3_Pos (3U) |
||
9 | mjames | 1655 | #define GPIO_ODR_ODR3_Msk (0x1UL << GPIO_ODR_ODR3_Pos) /*!< 0x00000008 */ |
2 | mjames | 1656 | #define GPIO_ODR_ODR3 GPIO_ODR_ODR3_Msk /*!< Port output data, bit 3 */ |
1657 | #define GPIO_ODR_ODR4_Pos (4U) |
||
9 | mjames | 1658 | #define GPIO_ODR_ODR4_Msk (0x1UL << GPIO_ODR_ODR4_Pos) /*!< 0x00000010 */ |
2 | mjames | 1659 | #define GPIO_ODR_ODR4 GPIO_ODR_ODR4_Msk /*!< Port output data, bit 4 */ |
1660 | #define GPIO_ODR_ODR5_Pos (5U) |
||
9 | mjames | 1661 | #define GPIO_ODR_ODR5_Msk (0x1UL << GPIO_ODR_ODR5_Pos) /*!< 0x00000020 */ |
2 | mjames | 1662 | #define GPIO_ODR_ODR5 GPIO_ODR_ODR5_Msk /*!< Port output data, bit 5 */ |
1663 | #define GPIO_ODR_ODR6_Pos (6U) |
||
9 | mjames | 1664 | #define GPIO_ODR_ODR6_Msk (0x1UL << GPIO_ODR_ODR6_Pos) /*!< 0x00000040 */ |
2 | mjames | 1665 | #define GPIO_ODR_ODR6 GPIO_ODR_ODR6_Msk /*!< Port output data, bit 6 */ |
1666 | #define GPIO_ODR_ODR7_Pos (7U) |
||
9 | mjames | 1667 | #define GPIO_ODR_ODR7_Msk (0x1UL << GPIO_ODR_ODR7_Pos) /*!< 0x00000080 */ |
2 | mjames | 1668 | #define GPIO_ODR_ODR7 GPIO_ODR_ODR7_Msk /*!< Port output data, bit 7 */ |
1669 | #define GPIO_ODR_ODR8_Pos (8U) |
||
9 | mjames | 1670 | #define GPIO_ODR_ODR8_Msk (0x1UL << GPIO_ODR_ODR8_Pos) /*!< 0x00000100 */ |
2 | mjames | 1671 | #define GPIO_ODR_ODR8 GPIO_ODR_ODR8_Msk /*!< Port output data, bit 8 */ |
1672 | #define GPIO_ODR_ODR9_Pos (9U) |
||
9 | mjames | 1673 | #define GPIO_ODR_ODR9_Msk (0x1UL << GPIO_ODR_ODR9_Pos) /*!< 0x00000200 */ |
2 | mjames | 1674 | #define GPIO_ODR_ODR9 GPIO_ODR_ODR9_Msk /*!< Port output data, bit 9 */ |
1675 | #define GPIO_ODR_ODR10_Pos (10U) |
||
9 | mjames | 1676 | #define GPIO_ODR_ODR10_Msk (0x1UL << GPIO_ODR_ODR10_Pos) /*!< 0x00000400 */ |
2 | mjames | 1677 | #define GPIO_ODR_ODR10 GPIO_ODR_ODR10_Msk /*!< Port output data, bit 10 */ |
1678 | #define GPIO_ODR_ODR11_Pos (11U) |
||
9 | mjames | 1679 | #define GPIO_ODR_ODR11_Msk (0x1UL << GPIO_ODR_ODR11_Pos) /*!< 0x00000800 */ |
2 | mjames | 1680 | #define GPIO_ODR_ODR11 GPIO_ODR_ODR11_Msk /*!< Port output data, bit 11 */ |
1681 | #define GPIO_ODR_ODR12_Pos (12U) |
||
9 | mjames | 1682 | #define GPIO_ODR_ODR12_Msk (0x1UL << GPIO_ODR_ODR12_Pos) /*!< 0x00001000 */ |
2 | mjames | 1683 | #define GPIO_ODR_ODR12 GPIO_ODR_ODR12_Msk /*!< Port output data, bit 12 */ |
1684 | #define GPIO_ODR_ODR13_Pos (13U) |
||
9 | mjames | 1685 | #define GPIO_ODR_ODR13_Msk (0x1UL << GPIO_ODR_ODR13_Pos) /*!< 0x00002000 */ |
2 | mjames | 1686 | #define GPIO_ODR_ODR13 GPIO_ODR_ODR13_Msk /*!< Port output data, bit 13 */ |
1687 | #define GPIO_ODR_ODR14_Pos (14U) |
||
9 | mjames | 1688 | #define GPIO_ODR_ODR14_Msk (0x1UL << GPIO_ODR_ODR14_Pos) /*!< 0x00004000 */ |
2 | mjames | 1689 | #define GPIO_ODR_ODR14 GPIO_ODR_ODR14_Msk /*!< Port output data, bit 14 */ |
1690 | #define GPIO_ODR_ODR15_Pos (15U) |
||
9 | mjames | 1691 | #define GPIO_ODR_ODR15_Msk (0x1UL << GPIO_ODR_ODR15_Pos) /*!< 0x00008000 */ |
2 | mjames | 1692 | #define GPIO_ODR_ODR15 GPIO_ODR_ODR15_Msk /*!< Port output data, bit 15 */ |
1693 | |||
1694 | /****************** Bit definition for GPIO_BSRR register *******************/ |
||
1695 | #define GPIO_BSRR_BS0_Pos (0U) |
||
9 | mjames | 1696 | #define GPIO_BSRR_BS0_Msk (0x1UL << GPIO_BSRR_BS0_Pos) /*!< 0x00000001 */ |
2 | mjames | 1697 | #define GPIO_BSRR_BS0 GPIO_BSRR_BS0_Msk /*!< Port x Set bit 0 */ |
1698 | #define GPIO_BSRR_BS1_Pos (1U) |
||
9 | mjames | 1699 | #define GPIO_BSRR_BS1_Msk (0x1UL << GPIO_BSRR_BS1_Pos) /*!< 0x00000002 */ |
2 | mjames | 1700 | #define GPIO_BSRR_BS1 GPIO_BSRR_BS1_Msk /*!< Port x Set bit 1 */ |
1701 | #define GPIO_BSRR_BS2_Pos (2U) |
||
9 | mjames | 1702 | #define GPIO_BSRR_BS2_Msk (0x1UL << GPIO_BSRR_BS2_Pos) /*!< 0x00000004 */ |
2 | mjames | 1703 | #define GPIO_BSRR_BS2 GPIO_BSRR_BS2_Msk /*!< Port x Set bit 2 */ |
1704 | #define GPIO_BSRR_BS3_Pos (3U) |
||
9 | mjames | 1705 | #define GPIO_BSRR_BS3_Msk (0x1UL << GPIO_BSRR_BS3_Pos) /*!< 0x00000008 */ |
2 | mjames | 1706 | #define GPIO_BSRR_BS3 GPIO_BSRR_BS3_Msk /*!< Port x Set bit 3 */ |
1707 | #define GPIO_BSRR_BS4_Pos (4U) |
||
9 | mjames | 1708 | #define GPIO_BSRR_BS4_Msk (0x1UL << GPIO_BSRR_BS4_Pos) /*!< 0x00000010 */ |
2 | mjames | 1709 | #define GPIO_BSRR_BS4 GPIO_BSRR_BS4_Msk /*!< Port x Set bit 4 */ |
1710 | #define GPIO_BSRR_BS5_Pos (5U) |
||
9 | mjames | 1711 | #define GPIO_BSRR_BS5_Msk (0x1UL << GPIO_BSRR_BS5_Pos) /*!< 0x00000020 */ |
2 | mjames | 1712 | #define GPIO_BSRR_BS5 GPIO_BSRR_BS5_Msk /*!< Port x Set bit 5 */ |
1713 | #define GPIO_BSRR_BS6_Pos (6U) |
||
9 | mjames | 1714 | #define GPIO_BSRR_BS6_Msk (0x1UL << GPIO_BSRR_BS6_Pos) /*!< 0x00000040 */ |
2 | mjames | 1715 | #define GPIO_BSRR_BS6 GPIO_BSRR_BS6_Msk /*!< Port x Set bit 6 */ |
1716 | #define GPIO_BSRR_BS7_Pos (7U) |
||
9 | mjames | 1717 | #define GPIO_BSRR_BS7_Msk (0x1UL << GPIO_BSRR_BS7_Pos) /*!< 0x00000080 */ |
2 | mjames | 1718 | #define GPIO_BSRR_BS7 GPIO_BSRR_BS7_Msk /*!< Port x Set bit 7 */ |
1719 | #define GPIO_BSRR_BS8_Pos (8U) |
||
9 | mjames | 1720 | #define GPIO_BSRR_BS8_Msk (0x1UL << GPIO_BSRR_BS8_Pos) /*!< 0x00000100 */ |
2 | mjames | 1721 | #define GPIO_BSRR_BS8 GPIO_BSRR_BS8_Msk /*!< Port x Set bit 8 */ |
1722 | #define GPIO_BSRR_BS9_Pos (9U) |
||
9 | mjames | 1723 | #define GPIO_BSRR_BS9_Msk (0x1UL << GPIO_BSRR_BS9_Pos) /*!< 0x00000200 */ |
2 | mjames | 1724 | #define GPIO_BSRR_BS9 GPIO_BSRR_BS9_Msk /*!< Port x Set bit 9 */ |
1725 | #define GPIO_BSRR_BS10_Pos (10U) |
||
9 | mjames | 1726 | #define GPIO_BSRR_BS10_Msk (0x1UL << GPIO_BSRR_BS10_Pos) /*!< 0x00000400 */ |
2 | mjames | 1727 | #define GPIO_BSRR_BS10 GPIO_BSRR_BS10_Msk /*!< Port x Set bit 10 */ |
1728 | #define GPIO_BSRR_BS11_Pos (11U) |
||
9 | mjames | 1729 | #define GPIO_BSRR_BS11_Msk (0x1UL << GPIO_BSRR_BS11_Pos) /*!< 0x00000800 */ |
2 | mjames | 1730 | #define GPIO_BSRR_BS11 GPIO_BSRR_BS11_Msk /*!< Port x Set bit 11 */ |
1731 | #define GPIO_BSRR_BS12_Pos (12U) |
||
9 | mjames | 1732 | #define GPIO_BSRR_BS12_Msk (0x1UL << GPIO_BSRR_BS12_Pos) /*!< 0x00001000 */ |
2 | mjames | 1733 | #define GPIO_BSRR_BS12 GPIO_BSRR_BS12_Msk /*!< Port x Set bit 12 */ |
1734 | #define GPIO_BSRR_BS13_Pos (13U) |
||
9 | mjames | 1735 | #define GPIO_BSRR_BS13_Msk (0x1UL << GPIO_BSRR_BS13_Pos) /*!< 0x00002000 */ |
2 | mjames | 1736 | #define GPIO_BSRR_BS13 GPIO_BSRR_BS13_Msk /*!< Port x Set bit 13 */ |
1737 | #define GPIO_BSRR_BS14_Pos (14U) |
||
9 | mjames | 1738 | #define GPIO_BSRR_BS14_Msk (0x1UL << GPIO_BSRR_BS14_Pos) /*!< 0x00004000 */ |
2 | mjames | 1739 | #define GPIO_BSRR_BS14 GPIO_BSRR_BS14_Msk /*!< Port x Set bit 14 */ |
1740 | #define GPIO_BSRR_BS15_Pos (15U) |
||
9 | mjames | 1741 | #define GPIO_BSRR_BS15_Msk (0x1UL << GPIO_BSRR_BS15_Pos) /*!< 0x00008000 */ |
2 | mjames | 1742 | #define GPIO_BSRR_BS15 GPIO_BSRR_BS15_Msk /*!< Port x Set bit 15 */ |
1743 | |||
1744 | #define GPIO_BSRR_BR0_Pos (16U) |
||
9 | mjames | 1745 | #define GPIO_BSRR_BR0_Msk (0x1UL << GPIO_BSRR_BR0_Pos) /*!< 0x00010000 */ |
2 | mjames | 1746 | #define GPIO_BSRR_BR0 GPIO_BSRR_BR0_Msk /*!< Port x Reset bit 0 */ |
1747 | #define GPIO_BSRR_BR1_Pos (17U) |
||
9 | mjames | 1748 | #define GPIO_BSRR_BR1_Msk (0x1UL << GPIO_BSRR_BR1_Pos) /*!< 0x00020000 */ |
2 | mjames | 1749 | #define GPIO_BSRR_BR1 GPIO_BSRR_BR1_Msk /*!< Port x Reset bit 1 */ |
1750 | #define GPIO_BSRR_BR2_Pos (18U) |
||
9 | mjames | 1751 | #define GPIO_BSRR_BR2_Msk (0x1UL << GPIO_BSRR_BR2_Pos) /*!< 0x00040000 */ |
2 | mjames | 1752 | #define GPIO_BSRR_BR2 GPIO_BSRR_BR2_Msk /*!< Port x Reset bit 2 */ |
1753 | #define GPIO_BSRR_BR3_Pos (19U) |
||
9 | mjames | 1754 | #define GPIO_BSRR_BR3_Msk (0x1UL << GPIO_BSRR_BR3_Pos) /*!< 0x00080000 */ |
2 | mjames | 1755 | #define GPIO_BSRR_BR3 GPIO_BSRR_BR3_Msk /*!< Port x Reset bit 3 */ |
1756 | #define GPIO_BSRR_BR4_Pos (20U) |
||
9 | mjames | 1757 | #define GPIO_BSRR_BR4_Msk (0x1UL << GPIO_BSRR_BR4_Pos) /*!< 0x00100000 */ |
2 | mjames | 1758 | #define GPIO_BSRR_BR4 GPIO_BSRR_BR4_Msk /*!< Port x Reset bit 4 */ |
1759 | #define GPIO_BSRR_BR5_Pos (21U) |
||
9 | mjames | 1760 | #define GPIO_BSRR_BR5_Msk (0x1UL << GPIO_BSRR_BR5_Pos) /*!< 0x00200000 */ |
2 | mjames | 1761 | #define GPIO_BSRR_BR5 GPIO_BSRR_BR5_Msk /*!< Port x Reset bit 5 */ |
1762 | #define GPIO_BSRR_BR6_Pos (22U) |
||
9 | mjames | 1763 | #define GPIO_BSRR_BR6_Msk (0x1UL << GPIO_BSRR_BR6_Pos) /*!< 0x00400000 */ |
2 | mjames | 1764 | #define GPIO_BSRR_BR6 GPIO_BSRR_BR6_Msk /*!< Port x Reset bit 6 */ |
1765 | #define GPIO_BSRR_BR7_Pos (23U) |
||
9 | mjames | 1766 | #define GPIO_BSRR_BR7_Msk (0x1UL << GPIO_BSRR_BR7_Pos) /*!< 0x00800000 */ |
2 | mjames | 1767 | #define GPIO_BSRR_BR7 GPIO_BSRR_BR7_Msk /*!< Port x Reset bit 7 */ |
1768 | #define GPIO_BSRR_BR8_Pos (24U) |
||
9 | mjames | 1769 | #define GPIO_BSRR_BR8_Msk (0x1UL << GPIO_BSRR_BR8_Pos) /*!< 0x01000000 */ |
2 | mjames | 1770 | #define GPIO_BSRR_BR8 GPIO_BSRR_BR8_Msk /*!< Port x Reset bit 8 */ |
1771 | #define GPIO_BSRR_BR9_Pos (25U) |
||
9 | mjames | 1772 | #define GPIO_BSRR_BR9_Msk (0x1UL << GPIO_BSRR_BR9_Pos) /*!< 0x02000000 */ |
2 | mjames | 1773 | #define GPIO_BSRR_BR9 GPIO_BSRR_BR9_Msk /*!< Port x Reset bit 9 */ |
1774 | #define GPIO_BSRR_BR10_Pos (26U) |
||
9 | mjames | 1775 | #define GPIO_BSRR_BR10_Msk (0x1UL << GPIO_BSRR_BR10_Pos) /*!< 0x04000000 */ |
2 | mjames | 1776 | #define GPIO_BSRR_BR10 GPIO_BSRR_BR10_Msk /*!< Port x Reset bit 10 */ |
1777 | #define GPIO_BSRR_BR11_Pos (27U) |
||
9 | mjames | 1778 | #define GPIO_BSRR_BR11_Msk (0x1UL << GPIO_BSRR_BR11_Pos) /*!< 0x08000000 */ |
2 | mjames | 1779 | #define GPIO_BSRR_BR11 GPIO_BSRR_BR11_Msk /*!< Port x Reset bit 11 */ |
1780 | #define GPIO_BSRR_BR12_Pos (28U) |
||
9 | mjames | 1781 | #define GPIO_BSRR_BR12_Msk (0x1UL << GPIO_BSRR_BR12_Pos) /*!< 0x10000000 */ |
2 | mjames | 1782 | #define GPIO_BSRR_BR12 GPIO_BSRR_BR12_Msk /*!< Port x Reset bit 12 */ |
1783 | #define GPIO_BSRR_BR13_Pos (29U) |
||
9 | mjames | 1784 | #define GPIO_BSRR_BR13_Msk (0x1UL << GPIO_BSRR_BR13_Pos) /*!< 0x20000000 */ |
2 | mjames | 1785 | #define GPIO_BSRR_BR13 GPIO_BSRR_BR13_Msk /*!< Port x Reset bit 13 */ |
1786 | #define GPIO_BSRR_BR14_Pos (30U) |
||
9 | mjames | 1787 | #define GPIO_BSRR_BR14_Msk (0x1UL << GPIO_BSRR_BR14_Pos) /*!< 0x40000000 */ |
2 | mjames | 1788 | #define GPIO_BSRR_BR14 GPIO_BSRR_BR14_Msk /*!< Port x Reset bit 14 */ |
1789 | #define GPIO_BSRR_BR15_Pos (31U) |
||
9 | mjames | 1790 | #define GPIO_BSRR_BR15_Msk (0x1UL << GPIO_BSRR_BR15_Pos) /*!< 0x80000000 */ |
2 | mjames | 1791 | #define GPIO_BSRR_BR15 GPIO_BSRR_BR15_Msk /*!< Port x Reset bit 15 */ |
1792 | |||
1793 | /******************* Bit definition for GPIO_BRR register *******************/ |
||
1794 | #define GPIO_BRR_BR0_Pos (0U) |
||
9 | mjames | 1795 | #define GPIO_BRR_BR0_Msk (0x1UL << GPIO_BRR_BR0_Pos) /*!< 0x00000001 */ |
2 | mjames | 1796 | #define GPIO_BRR_BR0 GPIO_BRR_BR0_Msk /*!< Port x Reset bit 0 */ |
1797 | #define GPIO_BRR_BR1_Pos (1U) |
||
9 | mjames | 1798 | #define GPIO_BRR_BR1_Msk (0x1UL << GPIO_BRR_BR1_Pos) /*!< 0x00000002 */ |
2 | mjames | 1799 | #define GPIO_BRR_BR1 GPIO_BRR_BR1_Msk /*!< Port x Reset bit 1 */ |
1800 | #define GPIO_BRR_BR2_Pos (2U) |
||
9 | mjames | 1801 | #define GPIO_BRR_BR2_Msk (0x1UL << GPIO_BRR_BR2_Pos) /*!< 0x00000004 */ |
2 | mjames | 1802 | #define GPIO_BRR_BR2 GPIO_BRR_BR2_Msk /*!< Port x Reset bit 2 */ |
1803 | #define GPIO_BRR_BR3_Pos (3U) |
||
9 | mjames | 1804 | #define GPIO_BRR_BR3_Msk (0x1UL << GPIO_BRR_BR3_Pos) /*!< 0x00000008 */ |
2 | mjames | 1805 | #define GPIO_BRR_BR3 GPIO_BRR_BR3_Msk /*!< Port x Reset bit 3 */ |
1806 | #define GPIO_BRR_BR4_Pos (4U) |
||
9 | mjames | 1807 | #define GPIO_BRR_BR4_Msk (0x1UL << GPIO_BRR_BR4_Pos) /*!< 0x00000010 */ |
2 | mjames | 1808 | #define GPIO_BRR_BR4 GPIO_BRR_BR4_Msk /*!< Port x Reset bit 4 */ |
1809 | #define GPIO_BRR_BR5_Pos (5U) |
||
9 | mjames | 1810 | #define GPIO_BRR_BR5_Msk (0x1UL << GPIO_BRR_BR5_Pos) /*!< 0x00000020 */ |
2 | mjames | 1811 | #define GPIO_BRR_BR5 GPIO_BRR_BR5_Msk /*!< Port x Reset bit 5 */ |
1812 | #define GPIO_BRR_BR6_Pos (6U) |
||
9 | mjames | 1813 | #define GPIO_BRR_BR6_Msk (0x1UL << GPIO_BRR_BR6_Pos) /*!< 0x00000040 */ |
2 | mjames | 1814 | #define GPIO_BRR_BR6 GPIO_BRR_BR6_Msk /*!< Port x Reset bit 6 */ |
1815 | #define GPIO_BRR_BR7_Pos (7U) |
||
9 | mjames | 1816 | #define GPIO_BRR_BR7_Msk (0x1UL << GPIO_BRR_BR7_Pos) /*!< 0x00000080 */ |
2 | mjames | 1817 | #define GPIO_BRR_BR7 GPIO_BRR_BR7_Msk /*!< Port x Reset bit 7 */ |
1818 | #define GPIO_BRR_BR8_Pos (8U) |
||
9 | mjames | 1819 | #define GPIO_BRR_BR8_Msk (0x1UL << GPIO_BRR_BR8_Pos) /*!< 0x00000100 */ |
2 | mjames | 1820 | #define GPIO_BRR_BR8 GPIO_BRR_BR8_Msk /*!< Port x Reset bit 8 */ |
1821 | #define GPIO_BRR_BR9_Pos (9U) |
||
9 | mjames | 1822 | #define GPIO_BRR_BR9_Msk (0x1UL << GPIO_BRR_BR9_Pos) /*!< 0x00000200 */ |
2 | mjames | 1823 | #define GPIO_BRR_BR9 GPIO_BRR_BR9_Msk /*!< Port x Reset bit 9 */ |
1824 | #define GPIO_BRR_BR10_Pos (10U) |
||
9 | mjames | 1825 | #define GPIO_BRR_BR10_Msk (0x1UL << GPIO_BRR_BR10_Pos) /*!< 0x00000400 */ |
2 | mjames | 1826 | #define GPIO_BRR_BR10 GPIO_BRR_BR10_Msk /*!< Port x Reset bit 10 */ |
1827 | #define GPIO_BRR_BR11_Pos (11U) |
||
9 | mjames | 1828 | #define GPIO_BRR_BR11_Msk (0x1UL << GPIO_BRR_BR11_Pos) /*!< 0x00000800 */ |
2 | mjames | 1829 | #define GPIO_BRR_BR11 GPIO_BRR_BR11_Msk /*!< Port x Reset bit 11 */ |
1830 | #define GPIO_BRR_BR12_Pos (12U) |
||
9 | mjames | 1831 | #define GPIO_BRR_BR12_Msk (0x1UL << GPIO_BRR_BR12_Pos) /*!< 0x00001000 */ |
2 | mjames | 1832 | #define GPIO_BRR_BR12 GPIO_BRR_BR12_Msk /*!< Port x Reset bit 12 */ |
1833 | #define GPIO_BRR_BR13_Pos (13U) |
||
9 | mjames | 1834 | #define GPIO_BRR_BR13_Msk (0x1UL << GPIO_BRR_BR13_Pos) /*!< 0x00002000 */ |
2 | mjames | 1835 | #define GPIO_BRR_BR13 GPIO_BRR_BR13_Msk /*!< Port x Reset bit 13 */ |
1836 | #define GPIO_BRR_BR14_Pos (14U) |
||
9 | mjames | 1837 | #define GPIO_BRR_BR14_Msk (0x1UL << GPIO_BRR_BR14_Pos) /*!< 0x00004000 */ |
2 | mjames | 1838 | #define GPIO_BRR_BR14 GPIO_BRR_BR14_Msk /*!< Port x Reset bit 14 */ |
1839 | #define GPIO_BRR_BR15_Pos (15U) |
||
9 | mjames | 1840 | #define GPIO_BRR_BR15_Msk (0x1UL << GPIO_BRR_BR15_Pos) /*!< 0x00008000 */ |
2 | mjames | 1841 | #define GPIO_BRR_BR15 GPIO_BRR_BR15_Msk /*!< Port x Reset bit 15 */ |
1842 | |||
1843 | /****************** Bit definition for GPIO_LCKR register *******************/ |
||
1844 | #define GPIO_LCKR_LCK0_Pos (0U) |
||
9 | mjames | 1845 | #define GPIO_LCKR_LCK0_Msk (0x1UL << GPIO_LCKR_LCK0_Pos) /*!< 0x00000001 */ |
2 | mjames | 1846 | #define GPIO_LCKR_LCK0 GPIO_LCKR_LCK0_Msk /*!< Port x Lock bit 0 */ |
1847 | #define GPIO_LCKR_LCK1_Pos (1U) |
||
9 | mjames | 1848 | #define GPIO_LCKR_LCK1_Msk (0x1UL << GPIO_LCKR_LCK1_Pos) /*!< 0x00000002 */ |
2 | mjames | 1849 | #define GPIO_LCKR_LCK1 GPIO_LCKR_LCK1_Msk /*!< Port x Lock bit 1 */ |
1850 | #define GPIO_LCKR_LCK2_Pos (2U) |
||
9 | mjames | 1851 | #define GPIO_LCKR_LCK2_Msk (0x1UL << GPIO_LCKR_LCK2_Pos) /*!< 0x00000004 */ |
2 | mjames | 1852 | #define GPIO_LCKR_LCK2 GPIO_LCKR_LCK2_Msk /*!< Port x Lock bit 2 */ |
1853 | #define GPIO_LCKR_LCK3_Pos (3U) |
||
9 | mjames | 1854 | #define GPIO_LCKR_LCK3_Msk (0x1UL << GPIO_LCKR_LCK3_Pos) /*!< 0x00000008 */ |
2 | mjames | 1855 | #define GPIO_LCKR_LCK3 GPIO_LCKR_LCK3_Msk /*!< Port x Lock bit 3 */ |
1856 | #define GPIO_LCKR_LCK4_Pos (4U) |
||
9 | mjames | 1857 | #define GPIO_LCKR_LCK4_Msk (0x1UL << GPIO_LCKR_LCK4_Pos) /*!< 0x00000010 */ |
2 | mjames | 1858 | #define GPIO_LCKR_LCK4 GPIO_LCKR_LCK4_Msk /*!< Port x Lock bit 4 */ |
1859 | #define GPIO_LCKR_LCK5_Pos (5U) |
||
9 | mjames | 1860 | #define GPIO_LCKR_LCK5_Msk (0x1UL << GPIO_LCKR_LCK5_Pos) /*!< 0x00000020 */ |
2 | mjames | 1861 | #define GPIO_LCKR_LCK5 GPIO_LCKR_LCK5_Msk /*!< Port x Lock bit 5 */ |
1862 | #define GPIO_LCKR_LCK6_Pos (6U) |
||
9 | mjames | 1863 | #define GPIO_LCKR_LCK6_Msk (0x1UL << GPIO_LCKR_LCK6_Pos) /*!< 0x00000040 */ |
2 | mjames | 1864 | #define GPIO_LCKR_LCK6 GPIO_LCKR_LCK6_Msk /*!< Port x Lock bit 6 */ |
1865 | #define GPIO_LCKR_LCK7_Pos (7U) |
||
9 | mjames | 1866 | #define GPIO_LCKR_LCK7_Msk (0x1UL << GPIO_LCKR_LCK7_Pos) /*!< 0x00000080 */ |
2 | mjames | 1867 | #define GPIO_LCKR_LCK7 GPIO_LCKR_LCK7_Msk /*!< Port x Lock bit 7 */ |
1868 | #define GPIO_LCKR_LCK8_Pos (8U) |
||
9 | mjames | 1869 | #define GPIO_LCKR_LCK8_Msk (0x1UL << GPIO_LCKR_LCK8_Pos) /*!< 0x00000100 */ |
2 | mjames | 1870 | #define GPIO_LCKR_LCK8 GPIO_LCKR_LCK8_Msk /*!< Port x Lock bit 8 */ |
1871 | #define GPIO_LCKR_LCK9_Pos (9U) |
||
9 | mjames | 1872 | #define GPIO_LCKR_LCK9_Msk (0x1UL << GPIO_LCKR_LCK9_Pos) /*!< 0x00000200 */ |
2 | mjames | 1873 | #define GPIO_LCKR_LCK9 GPIO_LCKR_LCK9_Msk /*!< Port x Lock bit 9 */ |
1874 | #define GPIO_LCKR_LCK10_Pos (10U) |
||
9 | mjames | 1875 | #define GPIO_LCKR_LCK10_Msk (0x1UL << GPIO_LCKR_LCK10_Pos) /*!< 0x00000400 */ |
2 | mjames | 1876 | #define GPIO_LCKR_LCK10 GPIO_LCKR_LCK10_Msk /*!< Port x Lock bit 10 */ |
1877 | #define GPIO_LCKR_LCK11_Pos (11U) |
||
9 | mjames | 1878 | #define GPIO_LCKR_LCK11_Msk (0x1UL << GPIO_LCKR_LCK11_Pos) /*!< 0x00000800 */ |
2 | mjames | 1879 | #define GPIO_LCKR_LCK11 GPIO_LCKR_LCK11_Msk /*!< Port x Lock bit 11 */ |
1880 | #define GPIO_LCKR_LCK12_Pos (12U) |
||
9 | mjames | 1881 | #define GPIO_LCKR_LCK12_Msk (0x1UL << GPIO_LCKR_LCK12_Pos) /*!< 0x00001000 */ |
2 | mjames | 1882 | #define GPIO_LCKR_LCK12 GPIO_LCKR_LCK12_Msk /*!< Port x Lock bit 12 */ |
1883 | #define GPIO_LCKR_LCK13_Pos (13U) |
||
9 | mjames | 1884 | #define GPIO_LCKR_LCK13_Msk (0x1UL << GPIO_LCKR_LCK13_Pos) /*!< 0x00002000 */ |
2 | mjames | 1885 | #define GPIO_LCKR_LCK13 GPIO_LCKR_LCK13_Msk /*!< Port x Lock bit 13 */ |
1886 | #define GPIO_LCKR_LCK14_Pos (14U) |
||
9 | mjames | 1887 | #define GPIO_LCKR_LCK14_Msk (0x1UL << GPIO_LCKR_LCK14_Pos) /*!< 0x00004000 */ |
2 | mjames | 1888 | #define GPIO_LCKR_LCK14 GPIO_LCKR_LCK14_Msk /*!< Port x Lock bit 14 */ |
1889 | #define GPIO_LCKR_LCK15_Pos (15U) |
||
9 | mjames | 1890 | #define GPIO_LCKR_LCK15_Msk (0x1UL << GPIO_LCKR_LCK15_Pos) /*!< 0x00008000 */ |
2 | mjames | 1891 | #define GPIO_LCKR_LCK15 GPIO_LCKR_LCK15_Msk /*!< Port x Lock bit 15 */ |
1892 | #define GPIO_LCKR_LCKK_Pos (16U) |
||
9 | mjames | 1893 | #define GPIO_LCKR_LCKK_Msk (0x1UL << GPIO_LCKR_LCKK_Pos) /*!< 0x00010000 */ |
2 | mjames | 1894 | #define GPIO_LCKR_LCKK GPIO_LCKR_LCKK_Msk /*!< Lock key */ |
1895 | |||
1896 | /*----------------------------------------------------------------------------*/ |
||
1897 | |||
1898 | /****************** Bit definition for AFIO_EVCR register *******************/ |
||
1899 | #define AFIO_EVCR_PIN_Pos (0U) |
||
9 | mjames | 1900 | #define AFIO_EVCR_PIN_Msk (0xFUL << AFIO_EVCR_PIN_Pos) /*!< 0x0000000F */ |
2 | mjames | 1901 | #define AFIO_EVCR_PIN AFIO_EVCR_PIN_Msk /*!< PIN[3:0] bits (Pin selection) */ |
9 | mjames | 1902 | #define AFIO_EVCR_PIN_0 (0x1UL << AFIO_EVCR_PIN_Pos) /*!< 0x00000001 */ |
1903 | #define AFIO_EVCR_PIN_1 (0x2UL << AFIO_EVCR_PIN_Pos) /*!< 0x00000002 */ |
||
1904 | #define AFIO_EVCR_PIN_2 (0x4UL << AFIO_EVCR_PIN_Pos) /*!< 0x00000004 */ |
||
1905 | #define AFIO_EVCR_PIN_3 (0x8UL << AFIO_EVCR_PIN_Pos) /*!< 0x00000008 */ |
||
2 | mjames | 1906 | |
1907 | /*!< PIN configuration */ |
||
1908 | #define AFIO_EVCR_PIN_PX0 0x00000000U /*!< Pin 0 selected */ |
||
1909 | #define AFIO_EVCR_PIN_PX1_Pos (0U) |
||
9 | mjames | 1910 | #define AFIO_EVCR_PIN_PX1_Msk (0x1UL << AFIO_EVCR_PIN_PX1_Pos) /*!< 0x00000001 */ |
2 | mjames | 1911 | #define AFIO_EVCR_PIN_PX1 AFIO_EVCR_PIN_PX1_Msk /*!< Pin 1 selected */ |
1912 | #define AFIO_EVCR_PIN_PX2_Pos (1U) |
||
9 | mjames | 1913 | #define AFIO_EVCR_PIN_PX2_Msk (0x1UL << AFIO_EVCR_PIN_PX2_Pos) /*!< 0x00000002 */ |
2 | mjames | 1914 | #define AFIO_EVCR_PIN_PX2 AFIO_EVCR_PIN_PX2_Msk /*!< Pin 2 selected */ |
1915 | #define AFIO_EVCR_PIN_PX3_Pos (0U) |
||
9 | mjames | 1916 | #define AFIO_EVCR_PIN_PX3_Msk (0x3UL << AFIO_EVCR_PIN_PX3_Pos) /*!< 0x00000003 */ |
2 | mjames | 1917 | #define AFIO_EVCR_PIN_PX3 AFIO_EVCR_PIN_PX3_Msk /*!< Pin 3 selected */ |
1918 | #define AFIO_EVCR_PIN_PX4_Pos (2U) |
||
9 | mjames | 1919 | #define AFIO_EVCR_PIN_PX4_Msk (0x1UL << AFIO_EVCR_PIN_PX4_Pos) /*!< 0x00000004 */ |
2 | mjames | 1920 | #define AFIO_EVCR_PIN_PX4 AFIO_EVCR_PIN_PX4_Msk /*!< Pin 4 selected */ |
1921 | #define AFIO_EVCR_PIN_PX5_Pos (0U) |
||
9 | mjames | 1922 | #define AFIO_EVCR_PIN_PX5_Msk (0x5UL << AFIO_EVCR_PIN_PX5_Pos) /*!< 0x00000005 */ |
2 | mjames | 1923 | #define AFIO_EVCR_PIN_PX5 AFIO_EVCR_PIN_PX5_Msk /*!< Pin 5 selected */ |
1924 | #define AFIO_EVCR_PIN_PX6_Pos (1U) |
||
9 | mjames | 1925 | #define AFIO_EVCR_PIN_PX6_Msk (0x3UL << AFIO_EVCR_PIN_PX6_Pos) /*!< 0x00000006 */ |
2 | mjames | 1926 | #define AFIO_EVCR_PIN_PX6 AFIO_EVCR_PIN_PX6_Msk /*!< Pin 6 selected */ |
1927 | #define AFIO_EVCR_PIN_PX7_Pos (0U) |
||
9 | mjames | 1928 | #define AFIO_EVCR_PIN_PX7_Msk (0x7UL << AFIO_EVCR_PIN_PX7_Pos) /*!< 0x00000007 */ |
2 | mjames | 1929 | #define AFIO_EVCR_PIN_PX7 AFIO_EVCR_PIN_PX7_Msk /*!< Pin 7 selected */ |
1930 | #define AFIO_EVCR_PIN_PX8_Pos (3U) |
||
9 | mjames | 1931 | #define AFIO_EVCR_PIN_PX8_Msk (0x1UL << AFIO_EVCR_PIN_PX8_Pos) /*!< 0x00000008 */ |
2 | mjames | 1932 | #define AFIO_EVCR_PIN_PX8 AFIO_EVCR_PIN_PX8_Msk /*!< Pin 8 selected */ |
1933 | #define AFIO_EVCR_PIN_PX9_Pos (0U) |
||
9 | mjames | 1934 | #define AFIO_EVCR_PIN_PX9_Msk (0x9UL << AFIO_EVCR_PIN_PX9_Pos) /*!< 0x00000009 */ |
2 | mjames | 1935 | #define AFIO_EVCR_PIN_PX9 AFIO_EVCR_PIN_PX9_Msk /*!< Pin 9 selected */ |
1936 | #define AFIO_EVCR_PIN_PX10_Pos (1U) |
||
9 | mjames | 1937 | #define AFIO_EVCR_PIN_PX10_Msk (0x5UL << AFIO_EVCR_PIN_PX10_Pos) /*!< 0x0000000A */ |
2 | mjames | 1938 | #define AFIO_EVCR_PIN_PX10 AFIO_EVCR_PIN_PX10_Msk /*!< Pin 10 selected */ |
1939 | #define AFIO_EVCR_PIN_PX11_Pos (0U) |
||
9 | mjames | 1940 | #define AFIO_EVCR_PIN_PX11_Msk (0xBUL << AFIO_EVCR_PIN_PX11_Pos) /*!< 0x0000000B */ |
2 | mjames | 1941 | #define AFIO_EVCR_PIN_PX11 AFIO_EVCR_PIN_PX11_Msk /*!< Pin 11 selected */ |
1942 | #define AFIO_EVCR_PIN_PX12_Pos (2U) |
||
9 | mjames | 1943 | #define AFIO_EVCR_PIN_PX12_Msk (0x3UL << AFIO_EVCR_PIN_PX12_Pos) /*!< 0x0000000C */ |
2 | mjames | 1944 | #define AFIO_EVCR_PIN_PX12 AFIO_EVCR_PIN_PX12_Msk /*!< Pin 12 selected */ |
1945 | #define AFIO_EVCR_PIN_PX13_Pos (0U) |
||
9 | mjames | 1946 | #define AFIO_EVCR_PIN_PX13_Msk (0xDUL << AFIO_EVCR_PIN_PX13_Pos) /*!< 0x0000000D */ |
2 | mjames | 1947 | #define AFIO_EVCR_PIN_PX13 AFIO_EVCR_PIN_PX13_Msk /*!< Pin 13 selected */ |
1948 | #define AFIO_EVCR_PIN_PX14_Pos (1U) |
||
9 | mjames | 1949 | #define AFIO_EVCR_PIN_PX14_Msk (0x7UL << AFIO_EVCR_PIN_PX14_Pos) /*!< 0x0000000E */ |
2 | mjames | 1950 | #define AFIO_EVCR_PIN_PX14 AFIO_EVCR_PIN_PX14_Msk /*!< Pin 14 selected */ |
1951 | #define AFIO_EVCR_PIN_PX15_Pos (0U) |
||
9 | mjames | 1952 | #define AFIO_EVCR_PIN_PX15_Msk (0xFUL << AFIO_EVCR_PIN_PX15_Pos) /*!< 0x0000000F */ |
2 | mjames | 1953 | #define AFIO_EVCR_PIN_PX15 AFIO_EVCR_PIN_PX15_Msk /*!< Pin 15 selected */ |
1954 | |||
1955 | #define AFIO_EVCR_PORT_Pos (4U) |
||
9 | mjames | 1956 | #define AFIO_EVCR_PORT_Msk (0x7UL << AFIO_EVCR_PORT_Pos) /*!< 0x00000070 */ |
2 | mjames | 1957 | #define AFIO_EVCR_PORT AFIO_EVCR_PORT_Msk /*!< PORT[2:0] bits (Port selection) */ |
9 | mjames | 1958 | #define AFIO_EVCR_PORT_0 (0x1UL << AFIO_EVCR_PORT_Pos) /*!< 0x00000010 */ |
1959 | #define AFIO_EVCR_PORT_1 (0x2UL << AFIO_EVCR_PORT_Pos) /*!< 0x00000020 */ |
||
1960 | #define AFIO_EVCR_PORT_2 (0x4UL << AFIO_EVCR_PORT_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 1961 | |
1962 | /*!< PORT configuration */ |
||
1963 | #define AFIO_EVCR_PORT_PA 0x00000000 /*!< Port A selected */ |
||
1964 | #define AFIO_EVCR_PORT_PB_Pos (4U) |
||
9 | mjames | 1965 | #define AFIO_EVCR_PORT_PB_Msk (0x1UL << AFIO_EVCR_PORT_PB_Pos) /*!< 0x00000010 */ |
2 | mjames | 1966 | #define AFIO_EVCR_PORT_PB AFIO_EVCR_PORT_PB_Msk /*!< Port B selected */ |
1967 | #define AFIO_EVCR_PORT_PC_Pos (5U) |
||
9 | mjames | 1968 | #define AFIO_EVCR_PORT_PC_Msk (0x1UL << AFIO_EVCR_PORT_PC_Pos) /*!< 0x00000020 */ |
2 | mjames | 1969 | #define AFIO_EVCR_PORT_PC AFIO_EVCR_PORT_PC_Msk /*!< Port C selected */ |
1970 | #define AFIO_EVCR_PORT_PD_Pos (4U) |
||
9 | mjames | 1971 | #define AFIO_EVCR_PORT_PD_Msk (0x3UL << AFIO_EVCR_PORT_PD_Pos) /*!< 0x00000030 */ |
2 | mjames | 1972 | #define AFIO_EVCR_PORT_PD AFIO_EVCR_PORT_PD_Msk /*!< Port D selected */ |
1973 | #define AFIO_EVCR_PORT_PE_Pos (6U) |
||
9 | mjames | 1974 | #define AFIO_EVCR_PORT_PE_Msk (0x1UL << AFIO_EVCR_PORT_PE_Pos) /*!< 0x00000040 */ |
2 | mjames | 1975 | #define AFIO_EVCR_PORT_PE AFIO_EVCR_PORT_PE_Msk /*!< Port E selected */ |
1976 | |||
1977 | #define AFIO_EVCR_EVOE_Pos (7U) |
||
9 | mjames | 1978 | #define AFIO_EVCR_EVOE_Msk (0x1UL << AFIO_EVCR_EVOE_Pos) /*!< 0x00000080 */ |
2 | mjames | 1979 | #define AFIO_EVCR_EVOE AFIO_EVCR_EVOE_Msk /*!< Event Output Enable */ |
1980 | |||
1981 | /****************** Bit definition for AFIO_MAPR register *******************/ |
||
1982 | #define AFIO_MAPR_SPI1_REMAP_Pos (0U) |
||
9 | mjames | 1983 | #define AFIO_MAPR_SPI1_REMAP_Msk (0x1UL << AFIO_MAPR_SPI1_REMAP_Pos) /*!< 0x00000001 */ |
2 | mjames | 1984 | #define AFIO_MAPR_SPI1_REMAP AFIO_MAPR_SPI1_REMAP_Msk /*!< SPI1 remapping */ |
1985 | #define AFIO_MAPR_I2C1_REMAP_Pos (1U) |
||
9 | mjames | 1986 | #define AFIO_MAPR_I2C1_REMAP_Msk (0x1UL << AFIO_MAPR_I2C1_REMAP_Pos) /*!< 0x00000002 */ |
2 | mjames | 1987 | #define AFIO_MAPR_I2C1_REMAP AFIO_MAPR_I2C1_REMAP_Msk /*!< I2C1 remapping */ |
1988 | #define AFIO_MAPR_USART1_REMAP_Pos (2U) |
||
9 | mjames | 1989 | #define AFIO_MAPR_USART1_REMAP_Msk (0x1UL << AFIO_MAPR_USART1_REMAP_Pos) /*!< 0x00000004 */ |
2 | mjames | 1990 | #define AFIO_MAPR_USART1_REMAP AFIO_MAPR_USART1_REMAP_Msk /*!< USART1 remapping */ |
1991 | #define AFIO_MAPR_USART2_REMAP_Pos (3U) |
||
9 | mjames | 1992 | #define AFIO_MAPR_USART2_REMAP_Msk (0x1UL << AFIO_MAPR_USART2_REMAP_Pos) /*!< 0x00000008 */ |
2 | mjames | 1993 | #define AFIO_MAPR_USART2_REMAP AFIO_MAPR_USART2_REMAP_Msk /*!< USART2 remapping */ |
1994 | |||
1995 | |||
1996 | #define AFIO_MAPR_TIM1_REMAP_Pos (6U) |
||
9 | mjames | 1997 | #define AFIO_MAPR_TIM1_REMAP_Msk (0x3UL << AFIO_MAPR_TIM1_REMAP_Pos) /*!< 0x000000C0 */ |
2 | mjames | 1998 | #define AFIO_MAPR_TIM1_REMAP AFIO_MAPR_TIM1_REMAP_Msk /*!< TIM1_REMAP[1:0] bits (TIM1 remapping) */ |
9 | mjames | 1999 | #define AFIO_MAPR_TIM1_REMAP_0 (0x1UL << AFIO_MAPR_TIM1_REMAP_Pos) /*!< 0x00000040 */ |
2000 | #define AFIO_MAPR_TIM1_REMAP_1 (0x2UL << AFIO_MAPR_TIM1_REMAP_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 2001 | |
2002 | /*!< TIM1_REMAP configuration */ |
||
2003 | #define AFIO_MAPR_TIM1_REMAP_NOREMAP 0x00000000U /*!< No remap (ETR/PA12, CH1/PA8, CH2/PA9, CH3/PA10, CH4/PA11, BKIN/PB12, CH1N/PB13, CH2N/PB14, CH3N/PB15) */ |
||
2004 | #define AFIO_MAPR_TIM1_REMAP_PARTIALREMAP_Pos (6U) |
||
9 | mjames | 2005 | #define AFIO_MAPR_TIM1_REMAP_PARTIALREMAP_Msk (0x1UL << AFIO_MAPR_TIM1_REMAP_PARTIALREMAP_Pos) /*!< 0x00000040 */ |
2 | mjames | 2006 | #define AFIO_MAPR_TIM1_REMAP_PARTIALREMAP AFIO_MAPR_TIM1_REMAP_PARTIALREMAP_Msk /*!< Partial remap (ETR/PA12, CH1/PA8, CH2/PA9, CH3/PA10, CH4/PA11, BKIN/PA6, CH1N/PA7, CH2N/PB0, CH3N/PB1) */ |
2007 | #define AFIO_MAPR_TIM1_REMAP_FULLREMAP_Pos (6U) |
||
9 | mjames | 2008 | #define AFIO_MAPR_TIM1_REMAP_FULLREMAP_Msk (0x3UL << AFIO_MAPR_TIM1_REMAP_FULLREMAP_Pos) /*!< 0x000000C0 */ |
2 | mjames | 2009 | #define AFIO_MAPR_TIM1_REMAP_FULLREMAP AFIO_MAPR_TIM1_REMAP_FULLREMAP_Msk /*!< Full remap (ETR/PE7, CH1/PE9, CH2/PE11, CH3/PE13, CH4/PE14, BKIN/PE15, CH1N/PE8, CH2N/PE10, CH3N/PE12) */ |
2010 | |||
2011 | #define AFIO_MAPR_TIM2_REMAP_Pos (8U) |
||
9 | mjames | 2012 | #define AFIO_MAPR_TIM2_REMAP_Msk (0x3UL << AFIO_MAPR_TIM2_REMAP_Pos) /*!< 0x00000300 */ |
2 | mjames | 2013 | #define AFIO_MAPR_TIM2_REMAP AFIO_MAPR_TIM2_REMAP_Msk /*!< TIM2_REMAP[1:0] bits (TIM2 remapping) */ |
9 | mjames | 2014 | #define AFIO_MAPR_TIM2_REMAP_0 (0x1UL << AFIO_MAPR_TIM2_REMAP_Pos) /*!< 0x00000100 */ |
2015 | #define AFIO_MAPR_TIM2_REMAP_1 (0x2UL << AFIO_MAPR_TIM2_REMAP_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 2016 | |
2017 | /*!< TIM2_REMAP configuration */ |
||
2018 | #define AFIO_MAPR_TIM2_REMAP_NOREMAP 0x00000000U /*!< No remap (CH1/ETR/PA0, CH2/PA1, CH3/PA2, CH4/PA3) */ |
||
2019 | #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1_Pos (8U) |
||
9 | mjames | 2020 | #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1_Msk (0x1UL << AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1_Pos) /*!< 0x00000100 */ |
2 | mjames | 2021 | #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1 AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1_Msk /*!< Partial remap (CH1/ETR/PA15, CH2/PB3, CH3/PA2, CH4/PA3) */ |
2022 | #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2_Pos (9U) |
||
9 | mjames | 2023 | #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2_Msk (0x1UL << AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2_Pos) /*!< 0x00000200 */ |
2 | mjames | 2024 | #define AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2 AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2_Msk /*!< Partial remap (CH1/ETR/PA0, CH2/PA1, CH3/PB10, CH4/PB11) */ |
2025 | #define AFIO_MAPR_TIM2_REMAP_FULLREMAP_Pos (8U) |
||
9 | mjames | 2026 | #define AFIO_MAPR_TIM2_REMAP_FULLREMAP_Msk (0x3UL << AFIO_MAPR_TIM2_REMAP_FULLREMAP_Pos) /*!< 0x00000300 */ |
2 | mjames | 2027 | #define AFIO_MAPR_TIM2_REMAP_FULLREMAP AFIO_MAPR_TIM2_REMAP_FULLREMAP_Msk /*!< Full remap (CH1/ETR/PA15, CH2/PB3, CH3/PB10, CH4/PB11) */ |
2028 | |||
2029 | #define AFIO_MAPR_TIM3_REMAP_Pos (10U) |
||
9 | mjames | 2030 | #define AFIO_MAPR_TIM3_REMAP_Msk (0x3UL << AFIO_MAPR_TIM3_REMAP_Pos) /*!< 0x00000C00 */ |
2 | mjames | 2031 | #define AFIO_MAPR_TIM3_REMAP AFIO_MAPR_TIM3_REMAP_Msk /*!< TIM3_REMAP[1:0] bits (TIM3 remapping) */ |
9 | mjames | 2032 | #define AFIO_MAPR_TIM3_REMAP_0 (0x1UL << AFIO_MAPR_TIM3_REMAP_Pos) /*!< 0x00000400 */ |
2033 | #define AFIO_MAPR_TIM3_REMAP_1 (0x2UL << AFIO_MAPR_TIM3_REMAP_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 2034 | |
2035 | /*!< TIM3_REMAP configuration */ |
||
2036 | #define AFIO_MAPR_TIM3_REMAP_NOREMAP 0x00000000U /*!< No remap (CH1/PA6, CH2/PA7, CH3/PB0, CH4/PB1) */ |
||
2037 | #define AFIO_MAPR_TIM3_REMAP_PARTIALREMAP_Pos (11U) |
||
9 | mjames | 2038 | #define AFIO_MAPR_TIM3_REMAP_PARTIALREMAP_Msk (0x1UL << AFIO_MAPR_TIM3_REMAP_PARTIALREMAP_Pos) /*!< 0x00000800 */ |
2 | mjames | 2039 | #define AFIO_MAPR_TIM3_REMAP_PARTIALREMAP AFIO_MAPR_TIM3_REMAP_PARTIALREMAP_Msk /*!< Partial remap (CH1/PB4, CH2/PB5, CH3/PB0, CH4/PB1) */ |
2040 | #define AFIO_MAPR_TIM3_REMAP_FULLREMAP_Pos (10U) |
||
9 | mjames | 2041 | #define AFIO_MAPR_TIM3_REMAP_FULLREMAP_Msk (0x3UL << AFIO_MAPR_TIM3_REMAP_FULLREMAP_Pos) /*!< 0x00000C00 */ |
2 | mjames | 2042 | #define AFIO_MAPR_TIM3_REMAP_FULLREMAP AFIO_MAPR_TIM3_REMAP_FULLREMAP_Msk /*!< Full remap (CH1/PC6, CH2/PC7, CH3/PC8, CH4/PC9) */ |
2043 | |||
2044 | |||
2045 | #define AFIO_MAPR_CAN_REMAP_Pos (13U) |
||
9 | mjames | 2046 | #define AFIO_MAPR_CAN_REMAP_Msk (0x3UL << AFIO_MAPR_CAN_REMAP_Pos) /*!< 0x00006000 */ |
2 | mjames | 2047 | #define AFIO_MAPR_CAN_REMAP AFIO_MAPR_CAN_REMAP_Msk /*!< CAN_REMAP[1:0] bits (CAN Alternate function remapping) */ |
9 | mjames | 2048 | #define AFIO_MAPR_CAN_REMAP_0 (0x1UL << AFIO_MAPR_CAN_REMAP_Pos) /*!< 0x00002000 */ |
2049 | #define AFIO_MAPR_CAN_REMAP_1 (0x2UL << AFIO_MAPR_CAN_REMAP_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 2050 | |
2051 | /*!< CAN_REMAP configuration */ |
||
2052 | #define AFIO_MAPR_CAN_REMAP_REMAP1 0x00000000U /*!< CANRX mapped to PA11, CANTX mapped to PA12 */ |
||
2053 | #define AFIO_MAPR_CAN_REMAP_REMAP2_Pos (14U) |
||
9 | mjames | 2054 | #define AFIO_MAPR_CAN_REMAP_REMAP2_Msk (0x1UL << AFIO_MAPR_CAN_REMAP_REMAP2_Pos) /*!< 0x00004000 */ |
2 | mjames | 2055 | #define AFIO_MAPR_CAN_REMAP_REMAP2 AFIO_MAPR_CAN_REMAP_REMAP2_Msk /*!< CANRX mapped to PB8, CANTX mapped to PB9 */ |
2056 | #define AFIO_MAPR_CAN_REMAP_REMAP3_Pos (13U) |
||
9 | mjames | 2057 | #define AFIO_MAPR_CAN_REMAP_REMAP3_Msk (0x3UL << AFIO_MAPR_CAN_REMAP_REMAP3_Pos) /*!< 0x00006000 */ |
2 | mjames | 2058 | #define AFIO_MAPR_CAN_REMAP_REMAP3 AFIO_MAPR_CAN_REMAP_REMAP3_Msk /*!< CANRX mapped to PD0, CANTX mapped to PD1 */ |
2059 | |||
2060 | #define AFIO_MAPR_PD01_REMAP_Pos (15U) |
||
9 | mjames | 2061 | #define AFIO_MAPR_PD01_REMAP_Msk (0x1UL << AFIO_MAPR_PD01_REMAP_Pos) /*!< 0x00008000 */ |
2 | mjames | 2062 | #define AFIO_MAPR_PD01_REMAP AFIO_MAPR_PD01_REMAP_Msk /*!< Port D0/Port D1 mapping on OSC_IN/OSC_OUT */ |
2063 | |||
2064 | /*!< SWJ_CFG configuration */ |
||
2065 | #define AFIO_MAPR_SWJ_CFG_Pos (24U) |
||
9 | mjames | 2066 | #define AFIO_MAPR_SWJ_CFG_Msk (0x7UL << AFIO_MAPR_SWJ_CFG_Pos) /*!< 0x07000000 */ |
2 | mjames | 2067 | #define AFIO_MAPR_SWJ_CFG AFIO_MAPR_SWJ_CFG_Msk /*!< SWJ_CFG[2:0] bits (Serial Wire JTAG configuration) */ |
9 | mjames | 2068 | #define AFIO_MAPR_SWJ_CFG_0 (0x1UL << AFIO_MAPR_SWJ_CFG_Pos) /*!< 0x01000000 */ |
2069 | #define AFIO_MAPR_SWJ_CFG_1 (0x2UL << AFIO_MAPR_SWJ_CFG_Pos) /*!< 0x02000000 */ |
||
2070 | #define AFIO_MAPR_SWJ_CFG_2 (0x4UL << AFIO_MAPR_SWJ_CFG_Pos) /*!< 0x04000000 */ |
||
2 | mjames | 2071 | |
2072 | #define AFIO_MAPR_SWJ_CFG_RESET 0x00000000U /*!< Full SWJ (JTAG-DP + SW-DP) : Reset State */ |
||
2073 | #define AFIO_MAPR_SWJ_CFG_NOJNTRST_Pos (24U) |
||
9 | mjames | 2074 | #define AFIO_MAPR_SWJ_CFG_NOJNTRST_Msk (0x1UL << AFIO_MAPR_SWJ_CFG_NOJNTRST_Pos) /*!< 0x01000000 */ |
2 | mjames | 2075 | #define AFIO_MAPR_SWJ_CFG_NOJNTRST AFIO_MAPR_SWJ_CFG_NOJNTRST_Msk /*!< Full SWJ (JTAG-DP + SW-DP) but without JNTRST */ |
2076 | #define AFIO_MAPR_SWJ_CFG_JTAGDISABLE_Pos (25U) |
||
9 | mjames | 2077 | #define AFIO_MAPR_SWJ_CFG_JTAGDISABLE_Msk (0x1UL << AFIO_MAPR_SWJ_CFG_JTAGDISABLE_Pos) /*!< 0x02000000 */ |
2 | mjames | 2078 | #define AFIO_MAPR_SWJ_CFG_JTAGDISABLE AFIO_MAPR_SWJ_CFG_JTAGDISABLE_Msk /*!< JTAG-DP Disabled and SW-DP Enabled */ |
2079 | #define AFIO_MAPR_SWJ_CFG_DISABLE_Pos (26U) |
||
9 | mjames | 2080 | #define AFIO_MAPR_SWJ_CFG_DISABLE_Msk (0x1UL << AFIO_MAPR_SWJ_CFG_DISABLE_Pos) /*!< 0x04000000 */ |
2 | mjames | 2081 | #define AFIO_MAPR_SWJ_CFG_DISABLE AFIO_MAPR_SWJ_CFG_DISABLE_Msk /*!< JTAG-DP Disabled and SW-DP Disabled */ |
2082 | |||
2083 | |||
2084 | /***************** Bit definition for AFIO_EXTICR1 register *****************/ |
||
2085 | #define AFIO_EXTICR1_EXTI0_Pos (0U) |
||
9 | mjames | 2086 | #define AFIO_EXTICR1_EXTI0_Msk (0xFUL << AFIO_EXTICR1_EXTI0_Pos) /*!< 0x0000000F */ |
2 | mjames | 2087 | #define AFIO_EXTICR1_EXTI0 AFIO_EXTICR1_EXTI0_Msk /*!< EXTI 0 configuration */ |
2088 | #define AFIO_EXTICR1_EXTI1_Pos (4U) |
||
9 | mjames | 2089 | #define AFIO_EXTICR1_EXTI1_Msk (0xFUL << AFIO_EXTICR1_EXTI1_Pos) /*!< 0x000000F0 */ |
2 | mjames | 2090 | #define AFIO_EXTICR1_EXTI1 AFIO_EXTICR1_EXTI1_Msk /*!< EXTI 1 configuration */ |
2091 | #define AFIO_EXTICR1_EXTI2_Pos (8U) |
||
9 | mjames | 2092 | #define AFIO_EXTICR1_EXTI2_Msk (0xFUL << AFIO_EXTICR1_EXTI2_Pos) /*!< 0x00000F00 */ |
2 | mjames | 2093 | #define AFIO_EXTICR1_EXTI2 AFIO_EXTICR1_EXTI2_Msk /*!< EXTI 2 configuration */ |
2094 | #define AFIO_EXTICR1_EXTI3_Pos (12U) |
||
9 | mjames | 2095 | #define AFIO_EXTICR1_EXTI3_Msk (0xFUL << AFIO_EXTICR1_EXTI3_Pos) /*!< 0x0000F000 */ |
2 | mjames | 2096 | #define AFIO_EXTICR1_EXTI3 AFIO_EXTICR1_EXTI3_Msk /*!< EXTI 3 configuration */ |
2097 | |||
2098 | /*!< EXTI0 configuration */ |
||
2099 | #define AFIO_EXTICR1_EXTI0_PA 0x00000000U /*!< PA[0] pin */ |
||
2100 | #define AFIO_EXTICR1_EXTI0_PB_Pos (0U) |
||
9 | mjames | 2101 | #define AFIO_EXTICR1_EXTI0_PB_Msk (0x1UL << AFIO_EXTICR1_EXTI0_PB_Pos) /*!< 0x00000001 */ |
2 | mjames | 2102 | #define AFIO_EXTICR1_EXTI0_PB AFIO_EXTICR1_EXTI0_PB_Msk /*!< PB[0] pin */ |
2103 | #define AFIO_EXTICR1_EXTI0_PC_Pos (1U) |
||
9 | mjames | 2104 | #define AFIO_EXTICR1_EXTI0_PC_Msk (0x1UL << AFIO_EXTICR1_EXTI0_PC_Pos) /*!< 0x00000002 */ |
2 | mjames | 2105 | #define AFIO_EXTICR1_EXTI0_PC AFIO_EXTICR1_EXTI0_PC_Msk /*!< PC[0] pin */ |
2106 | #define AFIO_EXTICR1_EXTI0_PD_Pos (0U) |
||
9 | mjames | 2107 | #define AFIO_EXTICR1_EXTI0_PD_Msk (0x3UL << AFIO_EXTICR1_EXTI0_PD_Pos) /*!< 0x00000003 */ |
2 | mjames | 2108 | #define AFIO_EXTICR1_EXTI0_PD AFIO_EXTICR1_EXTI0_PD_Msk /*!< PD[0] pin */ |
2109 | #define AFIO_EXTICR1_EXTI0_PE_Pos (2U) |
||
9 | mjames | 2110 | #define AFIO_EXTICR1_EXTI0_PE_Msk (0x1UL << AFIO_EXTICR1_EXTI0_PE_Pos) /*!< 0x00000004 */ |
2 | mjames | 2111 | #define AFIO_EXTICR1_EXTI0_PE AFIO_EXTICR1_EXTI0_PE_Msk /*!< PE[0] pin */ |
2112 | #define AFIO_EXTICR1_EXTI0_PF_Pos (0U) |
||
9 | mjames | 2113 | #define AFIO_EXTICR1_EXTI0_PF_Msk (0x5UL << AFIO_EXTICR1_EXTI0_PF_Pos) /*!< 0x00000005 */ |
2 | mjames | 2114 | #define AFIO_EXTICR1_EXTI0_PF AFIO_EXTICR1_EXTI0_PF_Msk /*!< PF[0] pin */ |
2115 | #define AFIO_EXTICR1_EXTI0_PG_Pos (1U) |
||
9 | mjames | 2116 | #define AFIO_EXTICR1_EXTI0_PG_Msk (0x3UL << AFIO_EXTICR1_EXTI0_PG_Pos) /*!< 0x00000006 */ |
2 | mjames | 2117 | #define AFIO_EXTICR1_EXTI0_PG AFIO_EXTICR1_EXTI0_PG_Msk /*!< PG[0] pin */ |
2118 | |||
2119 | /*!< EXTI1 configuration */ |
||
2120 | #define AFIO_EXTICR1_EXTI1_PA 0x00000000U /*!< PA[1] pin */ |
||
2121 | #define AFIO_EXTICR1_EXTI1_PB_Pos (4U) |
||
9 | mjames | 2122 | #define AFIO_EXTICR1_EXTI1_PB_Msk (0x1UL << AFIO_EXTICR1_EXTI1_PB_Pos) /*!< 0x00000010 */ |
2 | mjames | 2123 | #define AFIO_EXTICR1_EXTI1_PB AFIO_EXTICR1_EXTI1_PB_Msk /*!< PB[1] pin */ |
2124 | #define AFIO_EXTICR1_EXTI1_PC_Pos (5U) |
||
9 | mjames | 2125 | #define AFIO_EXTICR1_EXTI1_PC_Msk (0x1UL << AFIO_EXTICR1_EXTI1_PC_Pos) /*!< 0x00000020 */ |
2 | mjames | 2126 | #define AFIO_EXTICR1_EXTI1_PC AFIO_EXTICR1_EXTI1_PC_Msk /*!< PC[1] pin */ |
2127 | #define AFIO_EXTICR1_EXTI1_PD_Pos (4U) |
||
9 | mjames | 2128 | #define AFIO_EXTICR1_EXTI1_PD_Msk (0x3UL << AFIO_EXTICR1_EXTI1_PD_Pos) /*!< 0x00000030 */ |
2 | mjames | 2129 | #define AFIO_EXTICR1_EXTI1_PD AFIO_EXTICR1_EXTI1_PD_Msk /*!< PD[1] pin */ |
2130 | #define AFIO_EXTICR1_EXTI1_PE_Pos (6U) |
||
9 | mjames | 2131 | #define AFIO_EXTICR1_EXTI1_PE_Msk (0x1UL << AFIO_EXTICR1_EXTI1_PE_Pos) /*!< 0x00000040 */ |
2 | mjames | 2132 | #define AFIO_EXTICR1_EXTI1_PE AFIO_EXTICR1_EXTI1_PE_Msk /*!< PE[1] pin */ |
2133 | #define AFIO_EXTICR1_EXTI1_PF_Pos (4U) |
||
9 | mjames | 2134 | #define AFIO_EXTICR1_EXTI1_PF_Msk (0x5UL << AFIO_EXTICR1_EXTI1_PF_Pos) /*!< 0x00000050 */ |
2 | mjames | 2135 | #define AFIO_EXTICR1_EXTI1_PF AFIO_EXTICR1_EXTI1_PF_Msk /*!< PF[1] pin */ |
2136 | #define AFIO_EXTICR1_EXTI1_PG_Pos (5U) |
||
9 | mjames | 2137 | #define AFIO_EXTICR1_EXTI1_PG_Msk (0x3UL << AFIO_EXTICR1_EXTI1_PG_Pos) /*!< 0x00000060 */ |
2 | mjames | 2138 | #define AFIO_EXTICR1_EXTI1_PG AFIO_EXTICR1_EXTI1_PG_Msk /*!< PG[1] pin */ |
2139 | |||
2140 | /*!< EXTI2 configuration */ |
||
2141 | #define AFIO_EXTICR1_EXTI2_PA 0x00000000U /*!< PA[2] pin */ |
||
2142 | #define AFIO_EXTICR1_EXTI2_PB_Pos (8U) |
||
9 | mjames | 2143 | #define AFIO_EXTICR1_EXTI2_PB_Msk (0x1UL << AFIO_EXTICR1_EXTI2_PB_Pos) /*!< 0x00000100 */ |
2 | mjames | 2144 | #define AFIO_EXTICR1_EXTI2_PB AFIO_EXTICR1_EXTI2_PB_Msk /*!< PB[2] pin */ |
2145 | #define AFIO_EXTICR1_EXTI2_PC_Pos (9U) |
||
9 | mjames | 2146 | #define AFIO_EXTICR1_EXTI2_PC_Msk (0x1UL << AFIO_EXTICR1_EXTI2_PC_Pos) /*!< 0x00000200 */ |
2 | mjames | 2147 | #define AFIO_EXTICR1_EXTI2_PC AFIO_EXTICR1_EXTI2_PC_Msk /*!< PC[2] pin */ |
2148 | #define AFIO_EXTICR1_EXTI2_PD_Pos (8U) |
||
9 | mjames | 2149 | #define AFIO_EXTICR1_EXTI2_PD_Msk (0x3UL << AFIO_EXTICR1_EXTI2_PD_Pos) /*!< 0x00000300 */ |
2 | mjames | 2150 | #define AFIO_EXTICR1_EXTI2_PD AFIO_EXTICR1_EXTI2_PD_Msk /*!< PD[2] pin */ |
2151 | #define AFIO_EXTICR1_EXTI2_PE_Pos (10U) |
||
9 | mjames | 2152 | #define AFIO_EXTICR1_EXTI2_PE_Msk (0x1UL << AFIO_EXTICR1_EXTI2_PE_Pos) /*!< 0x00000400 */ |
2 | mjames | 2153 | #define AFIO_EXTICR1_EXTI2_PE AFIO_EXTICR1_EXTI2_PE_Msk /*!< PE[2] pin */ |
2154 | #define AFIO_EXTICR1_EXTI2_PF_Pos (8U) |
||
9 | mjames | 2155 | #define AFIO_EXTICR1_EXTI2_PF_Msk (0x5UL << AFIO_EXTICR1_EXTI2_PF_Pos) /*!< 0x00000500 */ |
2 | mjames | 2156 | #define AFIO_EXTICR1_EXTI2_PF AFIO_EXTICR1_EXTI2_PF_Msk /*!< PF[2] pin */ |
2157 | #define AFIO_EXTICR1_EXTI2_PG_Pos (9U) |
||
9 | mjames | 2158 | #define AFIO_EXTICR1_EXTI2_PG_Msk (0x3UL << AFIO_EXTICR1_EXTI2_PG_Pos) /*!< 0x00000600 */ |
2 | mjames | 2159 | #define AFIO_EXTICR1_EXTI2_PG AFIO_EXTICR1_EXTI2_PG_Msk /*!< PG[2] pin */ |
2160 | |||
2161 | /*!< EXTI3 configuration */ |
||
2162 | #define AFIO_EXTICR1_EXTI3_PA 0x00000000U /*!< PA[3] pin */ |
||
2163 | #define AFIO_EXTICR1_EXTI3_PB_Pos (12U) |
||
9 | mjames | 2164 | #define AFIO_EXTICR1_EXTI3_PB_Msk (0x1UL << AFIO_EXTICR1_EXTI3_PB_Pos) /*!< 0x00001000 */ |
2 | mjames | 2165 | #define AFIO_EXTICR1_EXTI3_PB AFIO_EXTICR1_EXTI3_PB_Msk /*!< PB[3] pin */ |
2166 | #define AFIO_EXTICR1_EXTI3_PC_Pos (13U) |
||
9 | mjames | 2167 | #define AFIO_EXTICR1_EXTI3_PC_Msk (0x1UL << AFIO_EXTICR1_EXTI3_PC_Pos) /*!< 0x00002000 */ |
2 | mjames | 2168 | #define AFIO_EXTICR1_EXTI3_PC AFIO_EXTICR1_EXTI3_PC_Msk /*!< PC[3] pin */ |
2169 | #define AFIO_EXTICR1_EXTI3_PD_Pos (12U) |
||
9 | mjames | 2170 | #define AFIO_EXTICR1_EXTI3_PD_Msk (0x3UL << AFIO_EXTICR1_EXTI3_PD_Pos) /*!< 0x00003000 */ |
2 | mjames | 2171 | #define AFIO_EXTICR1_EXTI3_PD AFIO_EXTICR1_EXTI3_PD_Msk /*!< PD[3] pin */ |
2172 | #define AFIO_EXTICR1_EXTI3_PE_Pos (14U) |
||
9 | mjames | 2173 | #define AFIO_EXTICR1_EXTI3_PE_Msk (0x1UL << AFIO_EXTICR1_EXTI3_PE_Pos) /*!< 0x00004000 */ |
2 | mjames | 2174 | #define AFIO_EXTICR1_EXTI3_PE AFIO_EXTICR1_EXTI3_PE_Msk /*!< PE[3] pin */ |
2175 | #define AFIO_EXTICR1_EXTI3_PF_Pos (12U) |
||
9 | mjames | 2176 | #define AFIO_EXTICR1_EXTI3_PF_Msk (0x5UL << AFIO_EXTICR1_EXTI3_PF_Pos) /*!< 0x00005000 */ |
2 | mjames | 2177 | #define AFIO_EXTICR1_EXTI3_PF AFIO_EXTICR1_EXTI3_PF_Msk /*!< PF[3] pin */ |
2178 | #define AFIO_EXTICR1_EXTI3_PG_Pos (13U) |
||
9 | mjames | 2179 | #define AFIO_EXTICR1_EXTI3_PG_Msk (0x3UL << AFIO_EXTICR1_EXTI3_PG_Pos) /*!< 0x00006000 */ |
2 | mjames | 2180 | #define AFIO_EXTICR1_EXTI3_PG AFIO_EXTICR1_EXTI3_PG_Msk /*!< PG[3] pin */ |
2181 | |||
2182 | /***************** Bit definition for AFIO_EXTICR2 register *****************/ |
||
2183 | #define AFIO_EXTICR2_EXTI4_Pos (0U) |
||
9 | mjames | 2184 | #define AFIO_EXTICR2_EXTI4_Msk (0xFUL << AFIO_EXTICR2_EXTI4_Pos) /*!< 0x0000000F */ |
2 | mjames | 2185 | #define AFIO_EXTICR2_EXTI4 AFIO_EXTICR2_EXTI4_Msk /*!< EXTI 4 configuration */ |
2186 | #define AFIO_EXTICR2_EXTI5_Pos (4U) |
||
9 | mjames | 2187 | #define AFIO_EXTICR2_EXTI5_Msk (0xFUL << AFIO_EXTICR2_EXTI5_Pos) /*!< 0x000000F0 */ |
2 | mjames | 2188 | #define AFIO_EXTICR2_EXTI5 AFIO_EXTICR2_EXTI5_Msk /*!< EXTI 5 configuration */ |
2189 | #define AFIO_EXTICR2_EXTI6_Pos (8U) |
||
9 | mjames | 2190 | #define AFIO_EXTICR2_EXTI6_Msk (0xFUL << AFIO_EXTICR2_EXTI6_Pos) /*!< 0x00000F00 */ |
2 | mjames | 2191 | #define AFIO_EXTICR2_EXTI6 AFIO_EXTICR2_EXTI6_Msk /*!< EXTI 6 configuration */ |
2192 | #define AFIO_EXTICR2_EXTI7_Pos (12U) |
||
9 | mjames | 2193 | #define AFIO_EXTICR2_EXTI7_Msk (0xFUL << AFIO_EXTICR2_EXTI7_Pos) /*!< 0x0000F000 */ |
2 | mjames | 2194 | #define AFIO_EXTICR2_EXTI7 AFIO_EXTICR2_EXTI7_Msk /*!< EXTI 7 configuration */ |
2195 | |||
2196 | /*!< EXTI4 configuration */ |
||
2197 | #define AFIO_EXTICR2_EXTI4_PA 0x00000000U /*!< PA[4] pin */ |
||
2198 | #define AFIO_EXTICR2_EXTI4_PB_Pos (0U) |
||
9 | mjames | 2199 | #define AFIO_EXTICR2_EXTI4_PB_Msk (0x1UL << AFIO_EXTICR2_EXTI4_PB_Pos) /*!< 0x00000001 */ |
2 | mjames | 2200 | #define AFIO_EXTICR2_EXTI4_PB AFIO_EXTICR2_EXTI4_PB_Msk /*!< PB[4] pin */ |
2201 | #define AFIO_EXTICR2_EXTI4_PC_Pos (1U) |
||
9 | mjames | 2202 | #define AFIO_EXTICR2_EXTI4_PC_Msk (0x1UL << AFIO_EXTICR2_EXTI4_PC_Pos) /*!< 0x00000002 */ |
2 | mjames | 2203 | #define AFIO_EXTICR2_EXTI4_PC AFIO_EXTICR2_EXTI4_PC_Msk /*!< PC[4] pin */ |
2204 | #define AFIO_EXTICR2_EXTI4_PD_Pos (0U) |
||
9 | mjames | 2205 | #define AFIO_EXTICR2_EXTI4_PD_Msk (0x3UL << AFIO_EXTICR2_EXTI4_PD_Pos) /*!< 0x00000003 */ |
2 | mjames | 2206 | #define AFIO_EXTICR2_EXTI4_PD AFIO_EXTICR2_EXTI4_PD_Msk /*!< PD[4] pin */ |
2207 | #define AFIO_EXTICR2_EXTI4_PE_Pos (2U) |
||
9 | mjames | 2208 | #define AFIO_EXTICR2_EXTI4_PE_Msk (0x1UL << AFIO_EXTICR2_EXTI4_PE_Pos) /*!< 0x00000004 */ |
2 | mjames | 2209 | #define AFIO_EXTICR2_EXTI4_PE AFIO_EXTICR2_EXTI4_PE_Msk /*!< PE[4] pin */ |
2210 | #define AFIO_EXTICR2_EXTI4_PF_Pos (0U) |
||
9 | mjames | 2211 | #define AFIO_EXTICR2_EXTI4_PF_Msk (0x5UL << AFIO_EXTICR2_EXTI4_PF_Pos) /*!< 0x00000005 */ |
2 | mjames | 2212 | #define AFIO_EXTICR2_EXTI4_PF AFIO_EXTICR2_EXTI4_PF_Msk /*!< PF[4] pin */ |
2213 | #define AFIO_EXTICR2_EXTI4_PG_Pos (1U) |
||
9 | mjames | 2214 | #define AFIO_EXTICR2_EXTI4_PG_Msk (0x3UL << AFIO_EXTICR2_EXTI4_PG_Pos) /*!< 0x00000006 */ |
2 | mjames | 2215 | #define AFIO_EXTICR2_EXTI4_PG AFIO_EXTICR2_EXTI4_PG_Msk /*!< PG[4] pin */ |
2216 | |||
2217 | /* EXTI5 configuration */ |
||
2218 | #define AFIO_EXTICR2_EXTI5_PA 0x00000000U /*!< PA[5] pin */ |
||
2219 | #define AFIO_EXTICR2_EXTI5_PB_Pos (4U) |
||
9 | mjames | 2220 | #define AFIO_EXTICR2_EXTI5_PB_Msk (0x1UL << AFIO_EXTICR2_EXTI5_PB_Pos) /*!< 0x00000010 */ |
2 | mjames | 2221 | #define AFIO_EXTICR2_EXTI5_PB AFIO_EXTICR2_EXTI5_PB_Msk /*!< PB[5] pin */ |
2222 | #define AFIO_EXTICR2_EXTI5_PC_Pos (5U) |
||
9 | mjames | 2223 | #define AFIO_EXTICR2_EXTI5_PC_Msk (0x1UL << AFIO_EXTICR2_EXTI5_PC_Pos) /*!< 0x00000020 */ |
2 | mjames | 2224 | #define AFIO_EXTICR2_EXTI5_PC AFIO_EXTICR2_EXTI5_PC_Msk /*!< PC[5] pin */ |
2225 | #define AFIO_EXTICR2_EXTI5_PD_Pos (4U) |
||
9 | mjames | 2226 | #define AFIO_EXTICR2_EXTI5_PD_Msk (0x3UL << AFIO_EXTICR2_EXTI5_PD_Pos) /*!< 0x00000030 */ |
2 | mjames | 2227 | #define AFIO_EXTICR2_EXTI5_PD AFIO_EXTICR2_EXTI5_PD_Msk /*!< PD[5] pin */ |
2228 | #define AFIO_EXTICR2_EXTI5_PE_Pos (6U) |
||
9 | mjames | 2229 | #define AFIO_EXTICR2_EXTI5_PE_Msk (0x1UL << AFIO_EXTICR2_EXTI5_PE_Pos) /*!< 0x00000040 */ |
2 | mjames | 2230 | #define AFIO_EXTICR2_EXTI5_PE AFIO_EXTICR2_EXTI5_PE_Msk /*!< PE[5] pin */ |
2231 | #define AFIO_EXTICR2_EXTI5_PF_Pos (4U) |
||
9 | mjames | 2232 | #define AFIO_EXTICR2_EXTI5_PF_Msk (0x5UL << AFIO_EXTICR2_EXTI5_PF_Pos) /*!< 0x00000050 */ |
2 | mjames | 2233 | #define AFIO_EXTICR2_EXTI5_PF AFIO_EXTICR2_EXTI5_PF_Msk /*!< PF[5] pin */ |
2234 | #define AFIO_EXTICR2_EXTI5_PG_Pos (5U) |
||
9 | mjames | 2235 | #define AFIO_EXTICR2_EXTI5_PG_Msk (0x3UL << AFIO_EXTICR2_EXTI5_PG_Pos) /*!< 0x00000060 */ |
2 | mjames | 2236 | #define AFIO_EXTICR2_EXTI5_PG AFIO_EXTICR2_EXTI5_PG_Msk /*!< PG[5] pin */ |
2237 | |||
2238 | /*!< EXTI6 configuration */ |
||
2239 | #define AFIO_EXTICR2_EXTI6_PA 0x00000000U /*!< PA[6] pin */ |
||
2240 | #define AFIO_EXTICR2_EXTI6_PB_Pos (8U) |
||
9 | mjames | 2241 | #define AFIO_EXTICR2_EXTI6_PB_Msk (0x1UL << AFIO_EXTICR2_EXTI6_PB_Pos) /*!< 0x00000100 */ |
2 | mjames | 2242 | #define AFIO_EXTICR2_EXTI6_PB AFIO_EXTICR2_EXTI6_PB_Msk /*!< PB[6] pin */ |
2243 | #define AFIO_EXTICR2_EXTI6_PC_Pos (9U) |
||
9 | mjames | 2244 | #define AFIO_EXTICR2_EXTI6_PC_Msk (0x1UL << AFIO_EXTICR2_EXTI6_PC_Pos) /*!< 0x00000200 */ |
2 | mjames | 2245 | #define AFIO_EXTICR2_EXTI6_PC AFIO_EXTICR2_EXTI6_PC_Msk /*!< PC[6] pin */ |
2246 | #define AFIO_EXTICR2_EXTI6_PD_Pos (8U) |
||
9 | mjames | 2247 | #define AFIO_EXTICR2_EXTI6_PD_Msk (0x3UL << AFIO_EXTICR2_EXTI6_PD_Pos) /*!< 0x00000300 */ |
2 | mjames | 2248 | #define AFIO_EXTICR2_EXTI6_PD AFIO_EXTICR2_EXTI6_PD_Msk /*!< PD[6] pin */ |
2249 | #define AFIO_EXTICR2_EXTI6_PE_Pos (10U) |
||
9 | mjames | 2250 | #define AFIO_EXTICR2_EXTI6_PE_Msk (0x1UL << AFIO_EXTICR2_EXTI6_PE_Pos) /*!< 0x00000400 */ |
2 | mjames | 2251 | #define AFIO_EXTICR2_EXTI6_PE AFIO_EXTICR2_EXTI6_PE_Msk /*!< PE[6] pin */ |
2252 | #define AFIO_EXTICR2_EXTI6_PF_Pos (8U) |
||
9 | mjames | 2253 | #define AFIO_EXTICR2_EXTI6_PF_Msk (0x5UL << AFIO_EXTICR2_EXTI6_PF_Pos) /*!< 0x00000500 */ |
2 | mjames | 2254 | #define AFIO_EXTICR2_EXTI6_PF AFIO_EXTICR2_EXTI6_PF_Msk /*!< PF[6] pin */ |
2255 | #define AFIO_EXTICR2_EXTI6_PG_Pos (9U) |
||
9 | mjames | 2256 | #define AFIO_EXTICR2_EXTI6_PG_Msk (0x3UL << AFIO_EXTICR2_EXTI6_PG_Pos) /*!< 0x00000600 */ |
2 | mjames | 2257 | #define AFIO_EXTICR2_EXTI6_PG AFIO_EXTICR2_EXTI6_PG_Msk /*!< PG[6] pin */ |
2258 | |||
2259 | /*!< EXTI7 configuration */ |
||
2260 | #define AFIO_EXTICR2_EXTI7_PA 0x00000000U /*!< PA[7] pin */ |
||
2261 | #define AFIO_EXTICR2_EXTI7_PB_Pos (12U) |
||
9 | mjames | 2262 | #define AFIO_EXTICR2_EXTI7_PB_Msk (0x1UL << AFIO_EXTICR2_EXTI7_PB_Pos) /*!< 0x00001000 */ |
2 | mjames | 2263 | #define AFIO_EXTICR2_EXTI7_PB AFIO_EXTICR2_EXTI7_PB_Msk /*!< PB[7] pin */ |
2264 | #define AFIO_EXTICR2_EXTI7_PC_Pos (13U) |
||
9 | mjames | 2265 | #define AFIO_EXTICR2_EXTI7_PC_Msk (0x1UL << AFIO_EXTICR2_EXTI7_PC_Pos) /*!< 0x00002000 */ |
2 | mjames | 2266 | #define AFIO_EXTICR2_EXTI7_PC AFIO_EXTICR2_EXTI7_PC_Msk /*!< PC[7] pin */ |
2267 | #define AFIO_EXTICR2_EXTI7_PD_Pos (12U) |
||
9 | mjames | 2268 | #define AFIO_EXTICR2_EXTI7_PD_Msk (0x3UL << AFIO_EXTICR2_EXTI7_PD_Pos) /*!< 0x00003000 */ |
2 | mjames | 2269 | #define AFIO_EXTICR2_EXTI7_PD AFIO_EXTICR2_EXTI7_PD_Msk /*!< PD[7] pin */ |
2270 | #define AFIO_EXTICR2_EXTI7_PE_Pos (14U) |
||
9 | mjames | 2271 | #define AFIO_EXTICR2_EXTI7_PE_Msk (0x1UL << AFIO_EXTICR2_EXTI7_PE_Pos) /*!< 0x00004000 */ |
2 | mjames | 2272 | #define AFIO_EXTICR2_EXTI7_PE AFIO_EXTICR2_EXTI7_PE_Msk /*!< PE[7] pin */ |
2273 | #define AFIO_EXTICR2_EXTI7_PF_Pos (12U) |
||
9 | mjames | 2274 | #define AFIO_EXTICR2_EXTI7_PF_Msk (0x5UL << AFIO_EXTICR2_EXTI7_PF_Pos) /*!< 0x00005000 */ |
2 | mjames | 2275 | #define AFIO_EXTICR2_EXTI7_PF AFIO_EXTICR2_EXTI7_PF_Msk /*!< PF[7] pin */ |
2276 | #define AFIO_EXTICR2_EXTI7_PG_Pos (13U) |
||
9 | mjames | 2277 | #define AFIO_EXTICR2_EXTI7_PG_Msk (0x3UL << AFIO_EXTICR2_EXTI7_PG_Pos) /*!< 0x00006000 */ |
2 | mjames | 2278 | #define AFIO_EXTICR2_EXTI7_PG AFIO_EXTICR2_EXTI7_PG_Msk /*!< PG[7] pin */ |
2279 | |||
2280 | /***************** Bit definition for AFIO_EXTICR3 register *****************/ |
||
2281 | #define AFIO_EXTICR3_EXTI8_Pos (0U) |
||
9 | mjames | 2282 | #define AFIO_EXTICR3_EXTI8_Msk (0xFUL << AFIO_EXTICR3_EXTI8_Pos) /*!< 0x0000000F */ |
2 | mjames | 2283 | #define AFIO_EXTICR3_EXTI8 AFIO_EXTICR3_EXTI8_Msk /*!< EXTI 8 configuration */ |
2284 | #define AFIO_EXTICR3_EXTI9_Pos (4U) |
||
9 | mjames | 2285 | #define AFIO_EXTICR3_EXTI9_Msk (0xFUL << AFIO_EXTICR3_EXTI9_Pos) /*!< 0x000000F0 */ |
2 | mjames | 2286 | #define AFIO_EXTICR3_EXTI9 AFIO_EXTICR3_EXTI9_Msk /*!< EXTI 9 configuration */ |
2287 | #define AFIO_EXTICR3_EXTI10_Pos (8U) |
||
9 | mjames | 2288 | #define AFIO_EXTICR3_EXTI10_Msk (0xFUL << AFIO_EXTICR3_EXTI10_Pos) /*!< 0x00000F00 */ |
2 | mjames | 2289 | #define AFIO_EXTICR3_EXTI10 AFIO_EXTICR3_EXTI10_Msk /*!< EXTI 10 configuration */ |
2290 | #define AFIO_EXTICR3_EXTI11_Pos (12U) |
||
9 | mjames | 2291 | #define AFIO_EXTICR3_EXTI11_Msk (0xFUL << AFIO_EXTICR3_EXTI11_Pos) /*!< 0x0000F000 */ |
2 | mjames | 2292 | #define AFIO_EXTICR3_EXTI11 AFIO_EXTICR3_EXTI11_Msk /*!< EXTI 11 configuration */ |
2293 | |||
2294 | /*!< EXTI8 configuration */ |
||
2295 | #define AFIO_EXTICR3_EXTI8_PA 0x00000000U /*!< PA[8] pin */ |
||
2296 | #define AFIO_EXTICR3_EXTI8_PB_Pos (0U) |
||
9 | mjames | 2297 | #define AFIO_EXTICR3_EXTI8_PB_Msk (0x1UL << AFIO_EXTICR3_EXTI8_PB_Pos) /*!< 0x00000001 */ |
2 | mjames | 2298 | #define AFIO_EXTICR3_EXTI8_PB AFIO_EXTICR3_EXTI8_PB_Msk /*!< PB[8] pin */ |
2299 | #define AFIO_EXTICR3_EXTI8_PC_Pos (1U) |
||
9 | mjames | 2300 | #define AFIO_EXTICR3_EXTI8_PC_Msk (0x1UL << AFIO_EXTICR3_EXTI8_PC_Pos) /*!< 0x00000002 */ |
2 | mjames | 2301 | #define AFIO_EXTICR3_EXTI8_PC AFIO_EXTICR3_EXTI8_PC_Msk /*!< PC[8] pin */ |
2302 | #define AFIO_EXTICR3_EXTI8_PD_Pos (0U) |
||
9 | mjames | 2303 | #define AFIO_EXTICR3_EXTI8_PD_Msk (0x3UL << AFIO_EXTICR3_EXTI8_PD_Pos) /*!< 0x00000003 */ |
2 | mjames | 2304 | #define AFIO_EXTICR3_EXTI8_PD AFIO_EXTICR3_EXTI8_PD_Msk /*!< PD[8] pin */ |
2305 | #define AFIO_EXTICR3_EXTI8_PE_Pos (2U) |
||
9 | mjames | 2306 | #define AFIO_EXTICR3_EXTI8_PE_Msk (0x1UL << AFIO_EXTICR3_EXTI8_PE_Pos) /*!< 0x00000004 */ |
2 | mjames | 2307 | #define AFIO_EXTICR3_EXTI8_PE AFIO_EXTICR3_EXTI8_PE_Msk /*!< PE[8] pin */ |
2308 | #define AFIO_EXTICR3_EXTI8_PF_Pos (0U) |
||
9 | mjames | 2309 | #define AFIO_EXTICR3_EXTI8_PF_Msk (0x5UL << AFIO_EXTICR3_EXTI8_PF_Pos) /*!< 0x00000005 */ |
2 | mjames | 2310 | #define AFIO_EXTICR3_EXTI8_PF AFIO_EXTICR3_EXTI8_PF_Msk /*!< PF[8] pin */ |
2311 | #define AFIO_EXTICR3_EXTI8_PG_Pos (1U) |
||
9 | mjames | 2312 | #define AFIO_EXTICR3_EXTI8_PG_Msk (0x3UL << AFIO_EXTICR3_EXTI8_PG_Pos) /*!< 0x00000006 */ |
2 | mjames | 2313 | #define AFIO_EXTICR3_EXTI8_PG AFIO_EXTICR3_EXTI8_PG_Msk /*!< PG[8] pin */ |
2314 | |||
2315 | /*!< EXTI9 configuration */ |
||
2316 | #define AFIO_EXTICR3_EXTI9_PA 0x00000000U /*!< PA[9] pin */ |
||
2317 | #define AFIO_EXTICR3_EXTI9_PB_Pos (4U) |
||
9 | mjames | 2318 | #define AFIO_EXTICR3_EXTI9_PB_Msk (0x1UL << AFIO_EXTICR3_EXTI9_PB_Pos) /*!< 0x00000010 */ |
2 | mjames | 2319 | #define AFIO_EXTICR3_EXTI9_PB AFIO_EXTICR3_EXTI9_PB_Msk /*!< PB[9] pin */ |
2320 | #define AFIO_EXTICR3_EXTI9_PC_Pos (5U) |
||
9 | mjames | 2321 | #define AFIO_EXTICR3_EXTI9_PC_Msk (0x1UL << AFIO_EXTICR3_EXTI9_PC_Pos) /*!< 0x00000020 */ |
2 | mjames | 2322 | #define AFIO_EXTICR3_EXTI9_PC AFIO_EXTICR3_EXTI9_PC_Msk /*!< PC[9] pin */ |
2323 | #define AFIO_EXTICR3_EXTI9_PD_Pos (4U) |
||
9 | mjames | 2324 | #define AFIO_EXTICR3_EXTI9_PD_Msk (0x3UL << AFIO_EXTICR3_EXTI9_PD_Pos) /*!< 0x00000030 */ |
2 | mjames | 2325 | #define AFIO_EXTICR3_EXTI9_PD AFIO_EXTICR3_EXTI9_PD_Msk /*!< PD[9] pin */ |
2326 | #define AFIO_EXTICR3_EXTI9_PE_Pos (6U) |
||
9 | mjames | 2327 | #define AFIO_EXTICR3_EXTI9_PE_Msk (0x1UL << AFIO_EXTICR3_EXTI9_PE_Pos) /*!< 0x00000040 */ |
2 | mjames | 2328 | #define AFIO_EXTICR3_EXTI9_PE AFIO_EXTICR3_EXTI9_PE_Msk /*!< PE[9] pin */ |
2329 | #define AFIO_EXTICR3_EXTI9_PF_Pos (4U) |
||
9 | mjames | 2330 | #define AFIO_EXTICR3_EXTI9_PF_Msk (0x5UL << AFIO_EXTICR3_EXTI9_PF_Pos) /*!< 0x00000050 */ |
2 | mjames | 2331 | #define AFIO_EXTICR3_EXTI9_PF AFIO_EXTICR3_EXTI9_PF_Msk /*!< PF[9] pin */ |
2332 | #define AFIO_EXTICR3_EXTI9_PG_Pos (5U) |
||
9 | mjames | 2333 | #define AFIO_EXTICR3_EXTI9_PG_Msk (0x3UL << AFIO_EXTICR3_EXTI9_PG_Pos) /*!< 0x00000060 */ |
2 | mjames | 2334 | #define AFIO_EXTICR3_EXTI9_PG AFIO_EXTICR3_EXTI9_PG_Msk /*!< PG[9] pin */ |
2335 | |||
2336 | /*!< EXTI10 configuration */ |
||
2337 | #define AFIO_EXTICR3_EXTI10_PA 0x00000000U /*!< PA[10] pin */ |
||
2338 | #define AFIO_EXTICR3_EXTI10_PB_Pos (8U) |
||
9 | mjames | 2339 | #define AFIO_EXTICR3_EXTI10_PB_Msk (0x1UL << AFIO_EXTICR3_EXTI10_PB_Pos) /*!< 0x00000100 */ |
2 | mjames | 2340 | #define AFIO_EXTICR3_EXTI10_PB AFIO_EXTICR3_EXTI10_PB_Msk /*!< PB[10] pin */ |
2341 | #define AFIO_EXTICR3_EXTI10_PC_Pos (9U) |
||
9 | mjames | 2342 | #define AFIO_EXTICR3_EXTI10_PC_Msk (0x1UL << AFIO_EXTICR3_EXTI10_PC_Pos) /*!< 0x00000200 */ |
2 | mjames | 2343 | #define AFIO_EXTICR3_EXTI10_PC AFIO_EXTICR3_EXTI10_PC_Msk /*!< PC[10] pin */ |
2344 | #define AFIO_EXTICR3_EXTI10_PD_Pos (8U) |
||
9 | mjames | 2345 | #define AFIO_EXTICR3_EXTI10_PD_Msk (0x3UL << AFIO_EXTICR3_EXTI10_PD_Pos) /*!< 0x00000300 */ |
2 | mjames | 2346 | #define AFIO_EXTICR3_EXTI10_PD AFIO_EXTICR3_EXTI10_PD_Msk /*!< PD[10] pin */ |
2347 | #define AFIO_EXTICR3_EXTI10_PE_Pos (10U) |
||
9 | mjames | 2348 | #define AFIO_EXTICR3_EXTI10_PE_Msk (0x1UL << AFIO_EXTICR3_EXTI10_PE_Pos) /*!< 0x00000400 */ |
2 | mjames | 2349 | #define AFIO_EXTICR3_EXTI10_PE AFIO_EXTICR3_EXTI10_PE_Msk /*!< PE[10] pin */ |
2350 | #define AFIO_EXTICR3_EXTI10_PF_Pos (8U) |
||
9 | mjames | 2351 | #define AFIO_EXTICR3_EXTI10_PF_Msk (0x5UL << AFIO_EXTICR3_EXTI10_PF_Pos) /*!< 0x00000500 */ |
2 | mjames | 2352 | #define AFIO_EXTICR3_EXTI10_PF AFIO_EXTICR3_EXTI10_PF_Msk /*!< PF[10] pin */ |
2353 | #define AFIO_EXTICR3_EXTI10_PG_Pos (9U) |
||
9 | mjames | 2354 | #define AFIO_EXTICR3_EXTI10_PG_Msk (0x3UL << AFIO_EXTICR3_EXTI10_PG_Pos) /*!< 0x00000600 */ |
2 | mjames | 2355 | #define AFIO_EXTICR3_EXTI10_PG AFIO_EXTICR3_EXTI10_PG_Msk /*!< PG[10] pin */ |
2356 | |||
2357 | /*!< EXTI11 configuration */ |
||
2358 | #define AFIO_EXTICR3_EXTI11_PA 0x00000000U /*!< PA[11] pin */ |
||
2359 | #define AFIO_EXTICR3_EXTI11_PB_Pos (12U) |
||
9 | mjames | 2360 | #define AFIO_EXTICR3_EXTI11_PB_Msk (0x1UL << AFIO_EXTICR3_EXTI11_PB_Pos) /*!< 0x00001000 */ |
2 | mjames | 2361 | #define AFIO_EXTICR3_EXTI11_PB AFIO_EXTICR3_EXTI11_PB_Msk /*!< PB[11] pin */ |
2362 | #define AFIO_EXTICR3_EXTI11_PC_Pos (13U) |
||
9 | mjames | 2363 | #define AFIO_EXTICR3_EXTI11_PC_Msk (0x1UL << AFIO_EXTICR3_EXTI11_PC_Pos) /*!< 0x00002000 */ |
2 | mjames | 2364 | #define AFIO_EXTICR3_EXTI11_PC AFIO_EXTICR3_EXTI11_PC_Msk /*!< PC[11] pin */ |
2365 | #define AFIO_EXTICR3_EXTI11_PD_Pos (12U) |
||
9 | mjames | 2366 | #define AFIO_EXTICR3_EXTI11_PD_Msk (0x3UL << AFIO_EXTICR3_EXTI11_PD_Pos) /*!< 0x00003000 */ |
2 | mjames | 2367 | #define AFIO_EXTICR3_EXTI11_PD AFIO_EXTICR3_EXTI11_PD_Msk /*!< PD[11] pin */ |
2368 | #define AFIO_EXTICR3_EXTI11_PE_Pos (14U) |
||
9 | mjames | 2369 | #define AFIO_EXTICR3_EXTI11_PE_Msk (0x1UL << AFIO_EXTICR3_EXTI11_PE_Pos) /*!< 0x00004000 */ |
2 | mjames | 2370 | #define AFIO_EXTICR3_EXTI11_PE AFIO_EXTICR3_EXTI11_PE_Msk /*!< PE[11] pin */ |
2371 | #define AFIO_EXTICR3_EXTI11_PF_Pos (12U) |
||
9 | mjames | 2372 | #define AFIO_EXTICR3_EXTI11_PF_Msk (0x5UL << AFIO_EXTICR3_EXTI11_PF_Pos) /*!< 0x00005000 */ |
2 | mjames | 2373 | #define AFIO_EXTICR3_EXTI11_PF AFIO_EXTICR3_EXTI11_PF_Msk /*!< PF[11] pin */ |
2374 | #define AFIO_EXTICR3_EXTI11_PG_Pos (13U) |
||
9 | mjames | 2375 | #define AFIO_EXTICR3_EXTI11_PG_Msk (0x3UL << AFIO_EXTICR3_EXTI11_PG_Pos) /*!< 0x00006000 */ |
2 | mjames | 2376 | #define AFIO_EXTICR3_EXTI11_PG AFIO_EXTICR3_EXTI11_PG_Msk /*!< PG[11] pin */ |
2377 | |||
2378 | /***************** Bit definition for AFIO_EXTICR4 register *****************/ |
||
2379 | #define AFIO_EXTICR4_EXTI12_Pos (0U) |
||
9 | mjames | 2380 | #define AFIO_EXTICR4_EXTI12_Msk (0xFUL << AFIO_EXTICR4_EXTI12_Pos) /*!< 0x0000000F */ |
2 | mjames | 2381 | #define AFIO_EXTICR4_EXTI12 AFIO_EXTICR4_EXTI12_Msk /*!< EXTI 12 configuration */ |
2382 | #define AFIO_EXTICR4_EXTI13_Pos (4U) |
||
9 | mjames | 2383 | #define AFIO_EXTICR4_EXTI13_Msk (0xFUL << AFIO_EXTICR4_EXTI13_Pos) /*!< 0x000000F0 */ |
2 | mjames | 2384 | #define AFIO_EXTICR4_EXTI13 AFIO_EXTICR4_EXTI13_Msk /*!< EXTI 13 configuration */ |
2385 | #define AFIO_EXTICR4_EXTI14_Pos (8U) |
||
9 | mjames | 2386 | #define AFIO_EXTICR4_EXTI14_Msk (0xFUL << AFIO_EXTICR4_EXTI14_Pos) /*!< 0x00000F00 */ |
2 | mjames | 2387 | #define AFIO_EXTICR4_EXTI14 AFIO_EXTICR4_EXTI14_Msk /*!< EXTI 14 configuration */ |
2388 | #define AFIO_EXTICR4_EXTI15_Pos (12U) |
||
9 | mjames | 2389 | #define AFIO_EXTICR4_EXTI15_Msk (0xFUL << AFIO_EXTICR4_EXTI15_Pos) /*!< 0x0000F000 */ |
2 | mjames | 2390 | #define AFIO_EXTICR4_EXTI15 AFIO_EXTICR4_EXTI15_Msk /*!< EXTI 15 configuration */ |
2391 | |||
2392 | /* EXTI12 configuration */ |
||
2393 | #define AFIO_EXTICR4_EXTI12_PA 0x00000000U /*!< PA[12] pin */ |
||
2394 | #define AFIO_EXTICR4_EXTI12_PB_Pos (0U) |
||
9 | mjames | 2395 | #define AFIO_EXTICR4_EXTI12_PB_Msk (0x1UL << AFIO_EXTICR4_EXTI12_PB_Pos) /*!< 0x00000001 */ |
2 | mjames | 2396 | #define AFIO_EXTICR4_EXTI12_PB AFIO_EXTICR4_EXTI12_PB_Msk /*!< PB[12] pin */ |
2397 | #define AFIO_EXTICR4_EXTI12_PC_Pos (1U) |
||
9 | mjames | 2398 | #define AFIO_EXTICR4_EXTI12_PC_Msk (0x1UL << AFIO_EXTICR4_EXTI12_PC_Pos) /*!< 0x00000002 */ |
2 | mjames | 2399 | #define AFIO_EXTICR4_EXTI12_PC AFIO_EXTICR4_EXTI12_PC_Msk /*!< PC[12] pin */ |
2400 | #define AFIO_EXTICR4_EXTI12_PD_Pos (0U) |
||
9 | mjames | 2401 | #define AFIO_EXTICR4_EXTI12_PD_Msk (0x3UL << AFIO_EXTICR4_EXTI12_PD_Pos) /*!< 0x00000003 */ |
2 | mjames | 2402 | #define AFIO_EXTICR4_EXTI12_PD AFIO_EXTICR4_EXTI12_PD_Msk /*!< PD[12] pin */ |
2403 | #define AFIO_EXTICR4_EXTI12_PE_Pos (2U) |
||
9 | mjames | 2404 | #define AFIO_EXTICR4_EXTI12_PE_Msk (0x1UL << AFIO_EXTICR4_EXTI12_PE_Pos) /*!< 0x00000004 */ |
2 | mjames | 2405 | #define AFIO_EXTICR4_EXTI12_PE AFIO_EXTICR4_EXTI12_PE_Msk /*!< PE[12] pin */ |
2406 | #define AFIO_EXTICR4_EXTI12_PF_Pos (0U) |
||
9 | mjames | 2407 | #define AFIO_EXTICR4_EXTI12_PF_Msk (0x5UL << AFIO_EXTICR4_EXTI12_PF_Pos) /*!< 0x00000005 */ |
2 | mjames | 2408 | #define AFIO_EXTICR4_EXTI12_PF AFIO_EXTICR4_EXTI12_PF_Msk /*!< PF[12] pin */ |
2409 | #define AFIO_EXTICR4_EXTI12_PG_Pos (1U) |
||
9 | mjames | 2410 | #define AFIO_EXTICR4_EXTI12_PG_Msk (0x3UL << AFIO_EXTICR4_EXTI12_PG_Pos) /*!< 0x00000006 */ |
2 | mjames | 2411 | #define AFIO_EXTICR4_EXTI12_PG AFIO_EXTICR4_EXTI12_PG_Msk /*!< PG[12] pin */ |
2412 | |||
2413 | /* EXTI13 configuration */ |
||
2414 | #define AFIO_EXTICR4_EXTI13_PA 0x00000000U /*!< PA[13] pin */ |
||
2415 | #define AFIO_EXTICR4_EXTI13_PB_Pos (4U) |
||
9 | mjames | 2416 | #define AFIO_EXTICR4_EXTI13_PB_Msk (0x1UL << AFIO_EXTICR4_EXTI13_PB_Pos) /*!< 0x00000010 */ |
2 | mjames | 2417 | #define AFIO_EXTICR4_EXTI13_PB AFIO_EXTICR4_EXTI13_PB_Msk /*!< PB[13] pin */ |
2418 | #define AFIO_EXTICR4_EXTI13_PC_Pos (5U) |
||
9 | mjames | 2419 | #define AFIO_EXTICR4_EXTI13_PC_Msk (0x1UL << AFIO_EXTICR4_EXTI13_PC_Pos) /*!< 0x00000020 */ |
2 | mjames | 2420 | #define AFIO_EXTICR4_EXTI13_PC AFIO_EXTICR4_EXTI13_PC_Msk /*!< PC[13] pin */ |
2421 | #define AFIO_EXTICR4_EXTI13_PD_Pos (4U) |
||
9 | mjames | 2422 | #define AFIO_EXTICR4_EXTI13_PD_Msk (0x3UL << AFIO_EXTICR4_EXTI13_PD_Pos) /*!< 0x00000030 */ |
2 | mjames | 2423 | #define AFIO_EXTICR4_EXTI13_PD AFIO_EXTICR4_EXTI13_PD_Msk /*!< PD[13] pin */ |
2424 | #define AFIO_EXTICR4_EXTI13_PE_Pos (6U) |
||
9 | mjames | 2425 | #define AFIO_EXTICR4_EXTI13_PE_Msk (0x1UL << AFIO_EXTICR4_EXTI13_PE_Pos) /*!< 0x00000040 */ |
2 | mjames | 2426 | #define AFIO_EXTICR4_EXTI13_PE AFIO_EXTICR4_EXTI13_PE_Msk /*!< PE[13] pin */ |
2427 | #define AFIO_EXTICR4_EXTI13_PF_Pos (4U) |
||
9 | mjames | 2428 | #define AFIO_EXTICR4_EXTI13_PF_Msk (0x5UL << AFIO_EXTICR4_EXTI13_PF_Pos) /*!< 0x00000050 */ |
2 | mjames | 2429 | #define AFIO_EXTICR4_EXTI13_PF AFIO_EXTICR4_EXTI13_PF_Msk /*!< PF[13] pin */ |
2430 | #define AFIO_EXTICR4_EXTI13_PG_Pos (5U) |
||
9 | mjames | 2431 | #define AFIO_EXTICR4_EXTI13_PG_Msk (0x3UL << AFIO_EXTICR4_EXTI13_PG_Pos) /*!< 0x00000060 */ |
2 | mjames | 2432 | #define AFIO_EXTICR4_EXTI13_PG AFIO_EXTICR4_EXTI13_PG_Msk /*!< PG[13] pin */ |
2433 | |||
2434 | /*!< EXTI14 configuration */ |
||
2435 | #define AFIO_EXTICR4_EXTI14_PA 0x00000000U /*!< PA[14] pin */ |
||
2436 | #define AFIO_EXTICR4_EXTI14_PB_Pos (8U) |
||
9 | mjames | 2437 | #define AFIO_EXTICR4_EXTI14_PB_Msk (0x1UL << AFIO_EXTICR4_EXTI14_PB_Pos) /*!< 0x00000100 */ |
2 | mjames | 2438 | #define AFIO_EXTICR4_EXTI14_PB AFIO_EXTICR4_EXTI14_PB_Msk /*!< PB[14] pin */ |
2439 | #define AFIO_EXTICR4_EXTI14_PC_Pos (9U) |
||
9 | mjames | 2440 | #define AFIO_EXTICR4_EXTI14_PC_Msk (0x1UL << AFIO_EXTICR4_EXTI14_PC_Pos) /*!< 0x00000200 */ |
2 | mjames | 2441 | #define AFIO_EXTICR4_EXTI14_PC AFIO_EXTICR4_EXTI14_PC_Msk /*!< PC[14] pin */ |
2442 | #define AFIO_EXTICR4_EXTI14_PD_Pos (8U) |
||
9 | mjames | 2443 | #define AFIO_EXTICR4_EXTI14_PD_Msk (0x3UL << AFIO_EXTICR4_EXTI14_PD_Pos) /*!< 0x00000300 */ |
2 | mjames | 2444 | #define AFIO_EXTICR4_EXTI14_PD AFIO_EXTICR4_EXTI14_PD_Msk /*!< PD[14] pin */ |
2445 | #define AFIO_EXTICR4_EXTI14_PE_Pos (10U) |
||
9 | mjames | 2446 | #define AFIO_EXTICR4_EXTI14_PE_Msk (0x1UL << AFIO_EXTICR4_EXTI14_PE_Pos) /*!< 0x00000400 */ |
2 | mjames | 2447 | #define AFIO_EXTICR4_EXTI14_PE AFIO_EXTICR4_EXTI14_PE_Msk /*!< PE[14] pin */ |
2448 | #define AFIO_EXTICR4_EXTI14_PF_Pos (8U) |
||
9 | mjames | 2449 | #define AFIO_EXTICR4_EXTI14_PF_Msk (0x5UL << AFIO_EXTICR4_EXTI14_PF_Pos) /*!< 0x00000500 */ |
2 | mjames | 2450 | #define AFIO_EXTICR4_EXTI14_PF AFIO_EXTICR4_EXTI14_PF_Msk /*!< PF[14] pin */ |
2451 | #define AFIO_EXTICR4_EXTI14_PG_Pos (9U) |
||
9 | mjames | 2452 | #define AFIO_EXTICR4_EXTI14_PG_Msk (0x3UL << AFIO_EXTICR4_EXTI14_PG_Pos) /*!< 0x00000600 */ |
2 | mjames | 2453 | #define AFIO_EXTICR4_EXTI14_PG AFIO_EXTICR4_EXTI14_PG_Msk /*!< PG[14] pin */ |
2454 | |||
2455 | /*!< EXTI15 configuration */ |
||
2456 | #define AFIO_EXTICR4_EXTI15_PA 0x00000000U /*!< PA[15] pin */ |
||
2457 | #define AFIO_EXTICR4_EXTI15_PB_Pos (12U) |
||
9 | mjames | 2458 | #define AFIO_EXTICR4_EXTI15_PB_Msk (0x1UL << AFIO_EXTICR4_EXTI15_PB_Pos) /*!< 0x00001000 */ |
2 | mjames | 2459 | #define AFIO_EXTICR4_EXTI15_PB AFIO_EXTICR4_EXTI15_PB_Msk /*!< PB[15] pin */ |
2460 | #define AFIO_EXTICR4_EXTI15_PC_Pos (13U) |
||
9 | mjames | 2461 | #define AFIO_EXTICR4_EXTI15_PC_Msk (0x1UL << AFIO_EXTICR4_EXTI15_PC_Pos) /*!< 0x00002000 */ |
2 | mjames | 2462 | #define AFIO_EXTICR4_EXTI15_PC AFIO_EXTICR4_EXTI15_PC_Msk /*!< PC[15] pin */ |
2463 | #define AFIO_EXTICR4_EXTI15_PD_Pos (12U) |
||
9 | mjames | 2464 | #define AFIO_EXTICR4_EXTI15_PD_Msk (0x3UL << AFIO_EXTICR4_EXTI15_PD_Pos) /*!< 0x00003000 */ |
2 | mjames | 2465 | #define AFIO_EXTICR4_EXTI15_PD AFIO_EXTICR4_EXTI15_PD_Msk /*!< PD[15] pin */ |
2466 | #define AFIO_EXTICR4_EXTI15_PE_Pos (14U) |
||
9 | mjames | 2467 | #define AFIO_EXTICR4_EXTI15_PE_Msk (0x1UL << AFIO_EXTICR4_EXTI15_PE_Pos) /*!< 0x00004000 */ |
2 | mjames | 2468 | #define AFIO_EXTICR4_EXTI15_PE AFIO_EXTICR4_EXTI15_PE_Msk /*!< PE[15] pin */ |
2469 | #define AFIO_EXTICR4_EXTI15_PF_Pos (12U) |
||
9 | mjames | 2470 | #define AFIO_EXTICR4_EXTI15_PF_Msk (0x5UL << AFIO_EXTICR4_EXTI15_PF_Pos) /*!< 0x00005000 */ |
2 | mjames | 2471 | #define AFIO_EXTICR4_EXTI15_PF AFIO_EXTICR4_EXTI15_PF_Msk /*!< PF[15] pin */ |
2472 | #define AFIO_EXTICR4_EXTI15_PG_Pos (13U) |
||
9 | mjames | 2473 | #define AFIO_EXTICR4_EXTI15_PG_Msk (0x3UL << AFIO_EXTICR4_EXTI15_PG_Pos) /*!< 0x00006000 */ |
2 | mjames | 2474 | #define AFIO_EXTICR4_EXTI15_PG AFIO_EXTICR4_EXTI15_PG_Msk /*!< PG[15] pin */ |
2475 | |||
2476 | /****************** Bit definition for AFIO_MAPR2 register ******************/ |
||
2477 | |||
2478 | |||
2479 | |||
2480 | /******************************************************************************/ |
||
2481 | /* */ |
||
2482 | /* External Interrupt/Event Controller */ |
||
2483 | /* */ |
||
2484 | /******************************************************************************/ |
||
2485 | |||
2486 | /******************* Bit definition for EXTI_IMR register *******************/ |
||
2487 | #define EXTI_IMR_MR0_Pos (0U) |
||
9 | mjames | 2488 | #define EXTI_IMR_MR0_Msk (0x1UL << EXTI_IMR_MR0_Pos) /*!< 0x00000001 */ |
2 | mjames | 2489 | #define EXTI_IMR_MR0 EXTI_IMR_MR0_Msk /*!< Interrupt Mask on line 0 */ |
2490 | #define EXTI_IMR_MR1_Pos (1U) |
||
9 | mjames | 2491 | #define EXTI_IMR_MR1_Msk (0x1UL << EXTI_IMR_MR1_Pos) /*!< 0x00000002 */ |
2 | mjames | 2492 | #define EXTI_IMR_MR1 EXTI_IMR_MR1_Msk /*!< Interrupt Mask on line 1 */ |
2493 | #define EXTI_IMR_MR2_Pos (2U) |
||
9 | mjames | 2494 | #define EXTI_IMR_MR2_Msk (0x1UL << EXTI_IMR_MR2_Pos) /*!< 0x00000004 */ |
2 | mjames | 2495 | #define EXTI_IMR_MR2 EXTI_IMR_MR2_Msk /*!< Interrupt Mask on line 2 */ |
2496 | #define EXTI_IMR_MR3_Pos (3U) |
||
9 | mjames | 2497 | #define EXTI_IMR_MR3_Msk (0x1UL << EXTI_IMR_MR3_Pos) /*!< 0x00000008 */ |
2 | mjames | 2498 | #define EXTI_IMR_MR3 EXTI_IMR_MR3_Msk /*!< Interrupt Mask on line 3 */ |
2499 | #define EXTI_IMR_MR4_Pos (4U) |
||
9 | mjames | 2500 | #define EXTI_IMR_MR4_Msk (0x1UL << EXTI_IMR_MR4_Pos) /*!< 0x00000010 */ |
2 | mjames | 2501 | #define EXTI_IMR_MR4 EXTI_IMR_MR4_Msk /*!< Interrupt Mask on line 4 */ |
2502 | #define EXTI_IMR_MR5_Pos (5U) |
||
9 | mjames | 2503 | #define EXTI_IMR_MR5_Msk (0x1UL << EXTI_IMR_MR5_Pos) /*!< 0x00000020 */ |
2 | mjames | 2504 | #define EXTI_IMR_MR5 EXTI_IMR_MR5_Msk /*!< Interrupt Mask on line 5 */ |
2505 | #define EXTI_IMR_MR6_Pos (6U) |
||
9 | mjames | 2506 | #define EXTI_IMR_MR6_Msk (0x1UL << EXTI_IMR_MR6_Pos) /*!< 0x00000040 */ |
2 | mjames | 2507 | #define EXTI_IMR_MR6 EXTI_IMR_MR6_Msk /*!< Interrupt Mask on line 6 */ |
2508 | #define EXTI_IMR_MR7_Pos (7U) |
||
9 | mjames | 2509 | #define EXTI_IMR_MR7_Msk (0x1UL << EXTI_IMR_MR7_Pos) /*!< 0x00000080 */ |
2 | mjames | 2510 | #define EXTI_IMR_MR7 EXTI_IMR_MR7_Msk /*!< Interrupt Mask on line 7 */ |
2511 | #define EXTI_IMR_MR8_Pos (8U) |
||
9 | mjames | 2512 | #define EXTI_IMR_MR8_Msk (0x1UL << EXTI_IMR_MR8_Pos) /*!< 0x00000100 */ |
2 | mjames | 2513 | #define EXTI_IMR_MR8 EXTI_IMR_MR8_Msk /*!< Interrupt Mask on line 8 */ |
2514 | #define EXTI_IMR_MR9_Pos (9U) |
||
9 | mjames | 2515 | #define EXTI_IMR_MR9_Msk (0x1UL << EXTI_IMR_MR9_Pos) /*!< 0x00000200 */ |
2 | mjames | 2516 | #define EXTI_IMR_MR9 EXTI_IMR_MR9_Msk /*!< Interrupt Mask on line 9 */ |
2517 | #define EXTI_IMR_MR10_Pos (10U) |
||
9 | mjames | 2518 | #define EXTI_IMR_MR10_Msk (0x1UL << EXTI_IMR_MR10_Pos) /*!< 0x00000400 */ |
2 | mjames | 2519 | #define EXTI_IMR_MR10 EXTI_IMR_MR10_Msk /*!< Interrupt Mask on line 10 */ |
2520 | #define EXTI_IMR_MR11_Pos (11U) |
||
9 | mjames | 2521 | #define EXTI_IMR_MR11_Msk (0x1UL << EXTI_IMR_MR11_Pos) /*!< 0x00000800 */ |
2 | mjames | 2522 | #define EXTI_IMR_MR11 EXTI_IMR_MR11_Msk /*!< Interrupt Mask on line 11 */ |
2523 | #define EXTI_IMR_MR12_Pos (12U) |
||
9 | mjames | 2524 | #define EXTI_IMR_MR12_Msk (0x1UL << EXTI_IMR_MR12_Pos) /*!< 0x00001000 */ |
2 | mjames | 2525 | #define EXTI_IMR_MR12 EXTI_IMR_MR12_Msk /*!< Interrupt Mask on line 12 */ |
2526 | #define EXTI_IMR_MR13_Pos (13U) |
||
9 | mjames | 2527 | #define EXTI_IMR_MR13_Msk (0x1UL << EXTI_IMR_MR13_Pos) /*!< 0x00002000 */ |
2 | mjames | 2528 | #define EXTI_IMR_MR13 EXTI_IMR_MR13_Msk /*!< Interrupt Mask on line 13 */ |
2529 | #define EXTI_IMR_MR14_Pos (14U) |
||
9 | mjames | 2530 | #define EXTI_IMR_MR14_Msk (0x1UL << EXTI_IMR_MR14_Pos) /*!< 0x00004000 */ |
2 | mjames | 2531 | #define EXTI_IMR_MR14 EXTI_IMR_MR14_Msk /*!< Interrupt Mask on line 14 */ |
2532 | #define EXTI_IMR_MR15_Pos (15U) |
||
9 | mjames | 2533 | #define EXTI_IMR_MR15_Msk (0x1UL << EXTI_IMR_MR15_Pos) /*!< 0x00008000 */ |
2 | mjames | 2534 | #define EXTI_IMR_MR15 EXTI_IMR_MR15_Msk /*!< Interrupt Mask on line 15 */ |
2535 | #define EXTI_IMR_MR16_Pos (16U) |
||
9 | mjames | 2536 | #define EXTI_IMR_MR16_Msk (0x1UL << EXTI_IMR_MR16_Pos) /*!< 0x00010000 */ |
2 | mjames | 2537 | #define EXTI_IMR_MR16 EXTI_IMR_MR16_Msk /*!< Interrupt Mask on line 16 */ |
2538 | #define EXTI_IMR_MR17_Pos (17U) |
||
9 | mjames | 2539 | #define EXTI_IMR_MR17_Msk (0x1UL << EXTI_IMR_MR17_Pos) /*!< 0x00020000 */ |
2 | mjames | 2540 | #define EXTI_IMR_MR17 EXTI_IMR_MR17_Msk /*!< Interrupt Mask on line 17 */ |
2541 | #define EXTI_IMR_MR18_Pos (18U) |
||
9 | mjames | 2542 | #define EXTI_IMR_MR18_Msk (0x1UL << EXTI_IMR_MR18_Pos) /*!< 0x00040000 */ |
2 | mjames | 2543 | #define EXTI_IMR_MR18 EXTI_IMR_MR18_Msk /*!< Interrupt Mask on line 18 */ |
2544 | |||
2545 | /* References Defines */ |
||
2546 | #define EXTI_IMR_IM0 EXTI_IMR_MR0 |
||
2547 | #define EXTI_IMR_IM1 EXTI_IMR_MR1 |
||
2548 | #define EXTI_IMR_IM2 EXTI_IMR_MR2 |
||
2549 | #define EXTI_IMR_IM3 EXTI_IMR_MR3 |
||
2550 | #define EXTI_IMR_IM4 EXTI_IMR_MR4 |
||
2551 | #define EXTI_IMR_IM5 EXTI_IMR_MR5 |
||
2552 | #define EXTI_IMR_IM6 EXTI_IMR_MR6 |
||
2553 | #define EXTI_IMR_IM7 EXTI_IMR_MR7 |
||
2554 | #define EXTI_IMR_IM8 EXTI_IMR_MR8 |
||
2555 | #define EXTI_IMR_IM9 EXTI_IMR_MR9 |
||
2556 | #define EXTI_IMR_IM10 EXTI_IMR_MR10 |
||
2557 | #define EXTI_IMR_IM11 EXTI_IMR_MR11 |
||
2558 | #define EXTI_IMR_IM12 EXTI_IMR_MR12 |
||
2559 | #define EXTI_IMR_IM13 EXTI_IMR_MR13 |
||
2560 | #define EXTI_IMR_IM14 EXTI_IMR_MR14 |
||
2561 | #define EXTI_IMR_IM15 EXTI_IMR_MR15 |
||
2562 | #define EXTI_IMR_IM16 EXTI_IMR_MR16 |
||
2563 | #define EXTI_IMR_IM17 EXTI_IMR_MR17 |
||
2564 | #define EXTI_IMR_IM18 EXTI_IMR_MR18 |
||
2565 | #define EXTI_IMR_IM 0x0007FFFFU /*!< Interrupt Mask All */ |
||
2566 | |||
2567 | /******************* Bit definition for EXTI_EMR register *******************/ |
||
2568 | #define EXTI_EMR_MR0_Pos (0U) |
||
9 | mjames | 2569 | #define EXTI_EMR_MR0_Msk (0x1UL << EXTI_EMR_MR0_Pos) /*!< 0x00000001 */ |
2 | mjames | 2570 | #define EXTI_EMR_MR0 EXTI_EMR_MR0_Msk /*!< Event Mask on line 0 */ |
2571 | #define EXTI_EMR_MR1_Pos (1U) |
||
9 | mjames | 2572 | #define EXTI_EMR_MR1_Msk (0x1UL << EXTI_EMR_MR1_Pos) /*!< 0x00000002 */ |
2 | mjames | 2573 | #define EXTI_EMR_MR1 EXTI_EMR_MR1_Msk /*!< Event Mask on line 1 */ |
2574 | #define EXTI_EMR_MR2_Pos (2U) |
||
9 | mjames | 2575 | #define EXTI_EMR_MR2_Msk (0x1UL << EXTI_EMR_MR2_Pos) /*!< 0x00000004 */ |
2 | mjames | 2576 | #define EXTI_EMR_MR2 EXTI_EMR_MR2_Msk /*!< Event Mask on line 2 */ |
2577 | #define EXTI_EMR_MR3_Pos (3U) |
||
9 | mjames | 2578 | #define EXTI_EMR_MR3_Msk (0x1UL << EXTI_EMR_MR3_Pos) /*!< 0x00000008 */ |
2 | mjames | 2579 | #define EXTI_EMR_MR3 EXTI_EMR_MR3_Msk /*!< Event Mask on line 3 */ |
2580 | #define EXTI_EMR_MR4_Pos (4U) |
||
9 | mjames | 2581 | #define EXTI_EMR_MR4_Msk (0x1UL << EXTI_EMR_MR4_Pos) /*!< 0x00000010 */ |
2 | mjames | 2582 | #define EXTI_EMR_MR4 EXTI_EMR_MR4_Msk /*!< Event Mask on line 4 */ |
2583 | #define EXTI_EMR_MR5_Pos (5U) |
||
9 | mjames | 2584 | #define EXTI_EMR_MR5_Msk (0x1UL << EXTI_EMR_MR5_Pos) /*!< 0x00000020 */ |
2 | mjames | 2585 | #define EXTI_EMR_MR5 EXTI_EMR_MR5_Msk /*!< Event Mask on line 5 */ |
2586 | #define EXTI_EMR_MR6_Pos (6U) |
||
9 | mjames | 2587 | #define EXTI_EMR_MR6_Msk (0x1UL << EXTI_EMR_MR6_Pos) /*!< 0x00000040 */ |
2 | mjames | 2588 | #define EXTI_EMR_MR6 EXTI_EMR_MR6_Msk /*!< Event Mask on line 6 */ |
2589 | #define EXTI_EMR_MR7_Pos (7U) |
||
9 | mjames | 2590 | #define EXTI_EMR_MR7_Msk (0x1UL << EXTI_EMR_MR7_Pos) /*!< 0x00000080 */ |
2 | mjames | 2591 | #define EXTI_EMR_MR7 EXTI_EMR_MR7_Msk /*!< Event Mask on line 7 */ |
2592 | #define EXTI_EMR_MR8_Pos (8U) |
||
9 | mjames | 2593 | #define EXTI_EMR_MR8_Msk (0x1UL << EXTI_EMR_MR8_Pos) /*!< 0x00000100 */ |
2 | mjames | 2594 | #define EXTI_EMR_MR8 EXTI_EMR_MR8_Msk /*!< Event Mask on line 8 */ |
2595 | #define EXTI_EMR_MR9_Pos (9U) |
||
9 | mjames | 2596 | #define EXTI_EMR_MR9_Msk (0x1UL << EXTI_EMR_MR9_Pos) /*!< 0x00000200 */ |
2 | mjames | 2597 | #define EXTI_EMR_MR9 EXTI_EMR_MR9_Msk /*!< Event Mask on line 9 */ |
2598 | #define EXTI_EMR_MR10_Pos (10U) |
||
9 | mjames | 2599 | #define EXTI_EMR_MR10_Msk (0x1UL << EXTI_EMR_MR10_Pos) /*!< 0x00000400 */ |
2 | mjames | 2600 | #define EXTI_EMR_MR10 EXTI_EMR_MR10_Msk /*!< Event Mask on line 10 */ |
2601 | #define EXTI_EMR_MR11_Pos (11U) |
||
9 | mjames | 2602 | #define EXTI_EMR_MR11_Msk (0x1UL << EXTI_EMR_MR11_Pos) /*!< 0x00000800 */ |
2 | mjames | 2603 | #define EXTI_EMR_MR11 EXTI_EMR_MR11_Msk /*!< Event Mask on line 11 */ |
2604 | #define EXTI_EMR_MR12_Pos (12U) |
||
9 | mjames | 2605 | #define EXTI_EMR_MR12_Msk (0x1UL << EXTI_EMR_MR12_Pos) /*!< 0x00001000 */ |
2 | mjames | 2606 | #define EXTI_EMR_MR12 EXTI_EMR_MR12_Msk /*!< Event Mask on line 12 */ |
2607 | #define EXTI_EMR_MR13_Pos (13U) |
||
9 | mjames | 2608 | #define EXTI_EMR_MR13_Msk (0x1UL << EXTI_EMR_MR13_Pos) /*!< 0x00002000 */ |
2 | mjames | 2609 | #define EXTI_EMR_MR13 EXTI_EMR_MR13_Msk /*!< Event Mask on line 13 */ |
2610 | #define EXTI_EMR_MR14_Pos (14U) |
||
9 | mjames | 2611 | #define EXTI_EMR_MR14_Msk (0x1UL << EXTI_EMR_MR14_Pos) /*!< 0x00004000 */ |
2 | mjames | 2612 | #define EXTI_EMR_MR14 EXTI_EMR_MR14_Msk /*!< Event Mask on line 14 */ |
2613 | #define EXTI_EMR_MR15_Pos (15U) |
||
9 | mjames | 2614 | #define EXTI_EMR_MR15_Msk (0x1UL << EXTI_EMR_MR15_Pos) /*!< 0x00008000 */ |
2 | mjames | 2615 | #define EXTI_EMR_MR15 EXTI_EMR_MR15_Msk /*!< Event Mask on line 15 */ |
2616 | #define EXTI_EMR_MR16_Pos (16U) |
||
9 | mjames | 2617 | #define EXTI_EMR_MR16_Msk (0x1UL << EXTI_EMR_MR16_Pos) /*!< 0x00010000 */ |
2 | mjames | 2618 | #define EXTI_EMR_MR16 EXTI_EMR_MR16_Msk /*!< Event Mask on line 16 */ |
2619 | #define EXTI_EMR_MR17_Pos (17U) |
||
9 | mjames | 2620 | #define EXTI_EMR_MR17_Msk (0x1UL << EXTI_EMR_MR17_Pos) /*!< 0x00020000 */ |
2 | mjames | 2621 | #define EXTI_EMR_MR17 EXTI_EMR_MR17_Msk /*!< Event Mask on line 17 */ |
2622 | #define EXTI_EMR_MR18_Pos (18U) |
||
9 | mjames | 2623 | #define EXTI_EMR_MR18_Msk (0x1UL << EXTI_EMR_MR18_Pos) /*!< 0x00040000 */ |
2 | mjames | 2624 | #define EXTI_EMR_MR18 EXTI_EMR_MR18_Msk /*!< Event Mask on line 18 */ |
2625 | |||
2626 | /* References Defines */ |
||
2627 | #define EXTI_EMR_EM0 EXTI_EMR_MR0 |
||
2628 | #define EXTI_EMR_EM1 EXTI_EMR_MR1 |
||
2629 | #define EXTI_EMR_EM2 EXTI_EMR_MR2 |
||
2630 | #define EXTI_EMR_EM3 EXTI_EMR_MR3 |
||
2631 | #define EXTI_EMR_EM4 EXTI_EMR_MR4 |
||
2632 | #define EXTI_EMR_EM5 EXTI_EMR_MR5 |
||
2633 | #define EXTI_EMR_EM6 EXTI_EMR_MR6 |
||
2634 | #define EXTI_EMR_EM7 EXTI_EMR_MR7 |
||
2635 | #define EXTI_EMR_EM8 EXTI_EMR_MR8 |
||
2636 | #define EXTI_EMR_EM9 EXTI_EMR_MR9 |
||
2637 | #define EXTI_EMR_EM10 EXTI_EMR_MR10 |
||
2638 | #define EXTI_EMR_EM11 EXTI_EMR_MR11 |
||
2639 | #define EXTI_EMR_EM12 EXTI_EMR_MR12 |
||
2640 | #define EXTI_EMR_EM13 EXTI_EMR_MR13 |
||
2641 | #define EXTI_EMR_EM14 EXTI_EMR_MR14 |
||
2642 | #define EXTI_EMR_EM15 EXTI_EMR_MR15 |
||
2643 | #define EXTI_EMR_EM16 EXTI_EMR_MR16 |
||
2644 | #define EXTI_EMR_EM17 EXTI_EMR_MR17 |
||
2645 | #define EXTI_EMR_EM18 EXTI_EMR_MR18 |
||
2646 | |||
2647 | /****************** Bit definition for EXTI_RTSR register *******************/ |
||
2648 | #define EXTI_RTSR_TR0_Pos (0U) |
||
9 | mjames | 2649 | #define EXTI_RTSR_TR0_Msk (0x1UL << EXTI_RTSR_TR0_Pos) /*!< 0x00000001 */ |
2 | mjames | 2650 | #define EXTI_RTSR_TR0 EXTI_RTSR_TR0_Msk /*!< Rising trigger event configuration bit of line 0 */ |
2651 | #define EXTI_RTSR_TR1_Pos (1U) |
||
9 | mjames | 2652 | #define EXTI_RTSR_TR1_Msk (0x1UL << EXTI_RTSR_TR1_Pos) /*!< 0x00000002 */ |
2 | mjames | 2653 | #define EXTI_RTSR_TR1 EXTI_RTSR_TR1_Msk /*!< Rising trigger event configuration bit of line 1 */ |
2654 | #define EXTI_RTSR_TR2_Pos (2U) |
||
9 | mjames | 2655 | #define EXTI_RTSR_TR2_Msk (0x1UL << EXTI_RTSR_TR2_Pos) /*!< 0x00000004 */ |
2 | mjames | 2656 | #define EXTI_RTSR_TR2 EXTI_RTSR_TR2_Msk /*!< Rising trigger event configuration bit of line 2 */ |
2657 | #define EXTI_RTSR_TR3_Pos (3U) |
||
9 | mjames | 2658 | #define EXTI_RTSR_TR3_Msk (0x1UL << EXTI_RTSR_TR3_Pos) /*!< 0x00000008 */ |
2 | mjames | 2659 | #define EXTI_RTSR_TR3 EXTI_RTSR_TR3_Msk /*!< Rising trigger event configuration bit of line 3 */ |
2660 | #define EXTI_RTSR_TR4_Pos (4U) |
||
9 | mjames | 2661 | #define EXTI_RTSR_TR4_Msk (0x1UL << EXTI_RTSR_TR4_Pos) /*!< 0x00000010 */ |
2 | mjames | 2662 | #define EXTI_RTSR_TR4 EXTI_RTSR_TR4_Msk /*!< Rising trigger event configuration bit of line 4 */ |
2663 | #define EXTI_RTSR_TR5_Pos (5U) |
||
9 | mjames | 2664 | #define EXTI_RTSR_TR5_Msk (0x1UL << EXTI_RTSR_TR5_Pos) /*!< 0x00000020 */ |
2 | mjames | 2665 | #define EXTI_RTSR_TR5 EXTI_RTSR_TR5_Msk /*!< Rising trigger event configuration bit of line 5 */ |
2666 | #define EXTI_RTSR_TR6_Pos (6U) |
||
9 | mjames | 2667 | #define EXTI_RTSR_TR6_Msk (0x1UL << EXTI_RTSR_TR6_Pos) /*!< 0x00000040 */ |
2 | mjames | 2668 | #define EXTI_RTSR_TR6 EXTI_RTSR_TR6_Msk /*!< Rising trigger event configuration bit of line 6 */ |
2669 | #define EXTI_RTSR_TR7_Pos (7U) |
||
9 | mjames | 2670 | #define EXTI_RTSR_TR7_Msk (0x1UL << EXTI_RTSR_TR7_Pos) /*!< 0x00000080 */ |
2 | mjames | 2671 | #define EXTI_RTSR_TR7 EXTI_RTSR_TR7_Msk /*!< Rising trigger event configuration bit of line 7 */ |
2672 | #define EXTI_RTSR_TR8_Pos (8U) |
||
9 | mjames | 2673 | #define EXTI_RTSR_TR8_Msk (0x1UL << EXTI_RTSR_TR8_Pos) /*!< 0x00000100 */ |
2 | mjames | 2674 | #define EXTI_RTSR_TR8 EXTI_RTSR_TR8_Msk /*!< Rising trigger event configuration bit of line 8 */ |
2675 | #define EXTI_RTSR_TR9_Pos (9U) |
||
9 | mjames | 2676 | #define EXTI_RTSR_TR9_Msk (0x1UL << EXTI_RTSR_TR9_Pos) /*!< 0x00000200 */ |
2 | mjames | 2677 | #define EXTI_RTSR_TR9 EXTI_RTSR_TR9_Msk /*!< Rising trigger event configuration bit of line 9 */ |
2678 | #define EXTI_RTSR_TR10_Pos (10U) |
||
9 | mjames | 2679 | #define EXTI_RTSR_TR10_Msk (0x1UL << EXTI_RTSR_TR10_Pos) /*!< 0x00000400 */ |
2 | mjames | 2680 | #define EXTI_RTSR_TR10 EXTI_RTSR_TR10_Msk /*!< Rising trigger event configuration bit of line 10 */ |
2681 | #define EXTI_RTSR_TR11_Pos (11U) |
||
9 | mjames | 2682 | #define EXTI_RTSR_TR11_Msk (0x1UL << EXTI_RTSR_TR11_Pos) /*!< 0x00000800 */ |
2 | mjames | 2683 | #define EXTI_RTSR_TR11 EXTI_RTSR_TR11_Msk /*!< Rising trigger event configuration bit of line 11 */ |
2684 | #define EXTI_RTSR_TR12_Pos (12U) |
||
9 | mjames | 2685 | #define EXTI_RTSR_TR12_Msk (0x1UL << EXTI_RTSR_TR12_Pos) /*!< 0x00001000 */ |
2 | mjames | 2686 | #define EXTI_RTSR_TR12 EXTI_RTSR_TR12_Msk /*!< Rising trigger event configuration bit of line 12 */ |
2687 | #define EXTI_RTSR_TR13_Pos (13U) |
||
9 | mjames | 2688 | #define EXTI_RTSR_TR13_Msk (0x1UL << EXTI_RTSR_TR13_Pos) /*!< 0x00002000 */ |
2 | mjames | 2689 | #define EXTI_RTSR_TR13 EXTI_RTSR_TR13_Msk /*!< Rising trigger event configuration bit of line 13 */ |
2690 | #define EXTI_RTSR_TR14_Pos (14U) |
||
9 | mjames | 2691 | #define EXTI_RTSR_TR14_Msk (0x1UL << EXTI_RTSR_TR14_Pos) /*!< 0x00004000 */ |
2 | mjames | 2692 | #define EXTI_RTSR_TR14 EXTI_RTSR_TR14_Msk /*!< Rising trigger event configuration bit of line 14 */ |
2693 | #define EXTI_RTSR_TR15_Pos (15U) |
||
9 | mjames | 2694 | #define EXTI_RTSR_TR15_Msk (0x1UL << EXTI_RTSR_TR15_Pos) /*!< 0x00008000 */ |
2 | mjames | 2695 | #define EXTI_RTSR_TR15 EXTI_RTSR_TR15_Msk /*!< Rising trigger event configuration bit of line 15 */ |
2696 | #define EXTI_RTSR_TR16_Pos (16U) |
||
9 | mjames | 2697 | #define EXTI_RTSR_TR16_Msk (0x1UL << EXTI_RTSR_TR16_Pos) /*!< 0x00010000 */ |
2 | mjames | 2698 | #define EXTI_RTSR_TR16 EXTI_RTSR_TR16_Msk /*!< Rising trigger event configuration bit of line 16 */ |
2699 | #define EXTI_RTSR_TR17_Pos (17U) |
||
9 | mjames | 2700 | #define EXTI_RTSR_TR17_Msk (0x1UL << EXTI_RTSR_TR17_Pos) /*!< 0x00020000 */ |
2 | mjames | 2701 | #define EXTI_RTSR_TR17 EXTI_RTSR_TR17_Msk /*!< Rising trigger event configuration bit of line 17 */ |
2702 | #define EXTI_RTSR_TR18_Pos (18U) |
||
9 | mjames | 2703 | #define EXTI_RTSR_TR18_Msk (0x1UL << EXTI_RTSR_TR18_Pos) /*!< 0x00040000 */ |
2 | mjames | 2704 | #define EXTI_RTSR_TR18 EXTI_RTSR_TR18_Msk /*!< Rising trigger event configuration bit of line 18 */ |
2705 | |||
2706 | /* References Defines */ |
||
2707 | #define EXTI_RTSR_RT0 EXTI_RTSR_TR0 |
||
2708 | #define EXTI_RTSR_RT1 EXTI_RTSR_TR1 |
||
2709 | #define EXTI_RTSR_RT2 EXTI_RTSR_TR2 |
||
2710 | #define EXTI_RTSR_RT3 EXTI_RTSR_TR3 |
||
2711 | #define EXTI_RTSR_RT4 EXTI_RTSR_TR4 |
||
2712 | #define EXTI_RTSR_RT5 EXTI_RTSR_TR5 |
||
2713 | #define EXTI_RTSR_RT6 EXTI_RTSR_TR6 |
||
2714 | #define EXTI_RTSR_RT7 EXTI_RTSR_TR7 |
||
2715 | #define EXTI_RTSR_RT8 EXTI_RTSR_TR8 |
||
2716 | #define EXTI_RTSR_RT9 EXTI_RTSR_TR9 |
||
2717 | #define EXTI_RTSR_RT10 EXTI_RTSR_TR10 |
||
2718 | #define EXTI_RTSR_RT11 EXTI_RTSR_TR11 |
||
2719 | #define EXTI_RTSR_RT12 EXTI_RTSR_TR12 |
||
2720 | #define EXTI_RTSR_RT13 EXTI_RTSR_TR13 |
||
2721 | #define EXTI_RTSR_RT14 EXTI_RTSR_TR14 |
||
2722 | #define EXTI_RTSR_RT15 EXTI_RTSR_TR15 |
||
2723 | #define EXTI_RTSR_RT16 EXTI_RTSR_TR16 |
||
2724 | #define EXTI_RTSR_RT17 EXTI_RTSR_TR17 |
||
2725 | #define EXTI_RTSR_RT18 EXTI_RTSR_TR18 |
||
2726 | |||
2727 | /****************** Bit definition for EXTI_FTSR register *******************/ |
||
2728 | #define EXTI_FTSR_TR0_Pos (0U) |
||
9 | mjames | 2729 | #define EXTI_FTSR_TR0_Msk (0x1UL << EXTI_FTSR_TR0_Pos) /*!< 0x00000001 */ |
2 | mjames | 2730 | #define EXTI_FTSR_TR0 EXTI_FTSR_TR0_Msk /*!< Falling trigger event configuration bit of line 0 */ |
2731 | #define EXTI_FTSR_TR1_Pos (1U) |
||
9 | mjames | 2732 | #define EXTI_FTSR_TR1_Msk (0x1UL << EXTI_FTSR_TR1_Pos) /*!< 0x00000002 */ |
2 | mjames | 2733 | #define EXTI_FTSR_TR1 EXTI_FTSR_TR1_Msk /*!< Falling trigger event configuration bit of line 1 */ |
2734 | #define EXTI_FTSR_TR2_Pos (2U) |
||
9 | mjames | 2735 | #define EXTI_FTSR_TR2_Msk (0x1UL << EXTI_FTSR_TR2_Pos) /*!< 0x00000004 */ |
2 | mjames | 2736 | #define EXTI_FTSR_TR2 EXTI_FTSR_TR2_Msk /*!< Falling trigger event configuration bit of line 2 */ |
2737 | #define EXTI_FTSR_TR3_Pos (3U) |
||
9 | mjames | 2738 | #define EXTI_FTSR_TR3_Msk (0x1UL << EXTI_FTSR_TR3_Pos) /*!< 0x00000008 */ |
2 | mjames | 2739 | #define EXTI_FTSR_TR3 EXTI_FTSR_TR3_Msk /*!< Falling trigger event configuration bit of line 3 */ |
2740 | #define EXTI_FTSR_TR4_Pos (4U) |
||
9 | mjames | 2741 | #define EXTI_FTSR_TR4_Msk (0x1UL << EXTI_FTSR_TR4_Pos) /*!< 0x00000010 */ |
2 | mjames | 2742 | #define EXTI_FTSR_TR4 EXTI_FTSR_TR4_Msk /*!< Falling trigger event configuration bit of line 4 */ |
2743 | #define EXTI_FTSR_TR5_Pos (5U) |
||
9 | mjames | 2744 | #define EXTI_FTSR_TR5_Msk (0x1UL << EXTI_FTSR_TR5_Pos) /*!< 0x00000020 */ |
2 | mjames | 2745 | #define EXTI_FTSR_TR5 EXTI_FTSR_TR5_Msk /*!< Falling trigger event configuration bit of line 5 */ |
2746 | #define EXTI_FTSR_TR6_Pos (6U) |
||
9 | mjames | 2747 | #define EXTI_FTSR_TR6_Msk (0x1UL << EXTI_FTSR_TR6_Pos) /*!< 0x00000040 */ |
2 | mjames | 2748 | #define EXTI_FTSR_TR6 EXTI_FTSR_TR6_Msk /*!< Falling trigger event configuration bit of line 6 */ |
2749 | #define EXTI_FTSR_TR7_Pos (7U) |
||
9 | mjames | 2750 | #define EXTI_FTSR_TR7_Msk (0x1UL << EXTI_FTSR_TR7_Pos) /*!< 0x00000080 */ |
2 | mjames | 2751 | #define EXTI_FTSR_TR7 EXTI_FTSR_TR7_Msk /*!< Falling trigger event configuration bit of line 7 */ |
2752 | #define EXTI_FTSR_TR8_Pos (8U) |
||
9 | mjames | 2753 | #define EXTI_FTSR_TR8_Msk (0x1UL << EXTI_FTSR_TR8_Pos) /*!< 0x00000100 */ |
2 | mjames | 2754 | #define EXTI_FTSR_TR8 EXTI_FTSR_TR8_Msk /*!< Falling trigger event configuration bit of line 8 */ |
2755 | #define EXTI_FTSR_TR9_Pos (9U) |
||
9 | mjames | 2756 | #define EXTI_FTSR_TR9_Msk (0x1UL << EXTI_FTSR_TR9_Pos) /*!< 0x00000200 */ |
2 | mjames | 2757 | #define EXTI_FTSR_TR9 EXTI_FTSR_TR9_Msk /*!< Falling trigger event configuration bit of line 9 */ |
2758 | #define EXTI_FTSR_TR10_Pos (10U) |
||
9 | mjames | 2759 | #define EXTI_FTSR_TR10_Msk (0x1UL << EXTI_FTSR_TR10_Pos) /*!< 0x00000400 */ |
2 | mjames | 2760 | #define EXTI_FTSR_TR10 EXTI_FTSR_TR10_Msk /*!< Falling trigger event configuration bit of line 10 */ |
2761 | #define EXTI_FTSR_TR11_Pos (11U) |
||
9 | mjames | 2762 | #define EXTI_FTSR_TR11_Msk (0x1UL << EXTI_FTSR_TR11_Pos) /*!< 0x00000800 */ |
2 | mjames | 2763 | #define EXTI_FTSR_TR11 EXTI_FTSR_TR11_Msk /*!< Falling trigger event configuration bit of line 11 */ |
2764 | #define EXTI_FTSR_TR12_Pos (12U) |
||
9 | mjames | 2765 | #define EXTI_FTSR_TR12_Msk (0x1UL << EXTI_FTSR_TR12_Pos) /*!< 0x00001000 */ |
2 | mjames | 2766 | #define EXTI_FTSR_TR12 EXTI_FTSR_TR12_Msk /*!< Falling trigger event configuration bit of line 12 */ |
2767 | #define EXTI_FTSR_TR13_Pos (13U) |
||
9 | mjames | 2768 | #define EXTI_FTSR_TR13_Msk (0x1UL << EXTI_FTSR_TR13_Pos) /*!< 0x00002000 */ |
2 | mjames | 2769 | #define EXTI_FTSR_TR13 EXTI_FTSR_TR13_Msk /*!< Falling trigger event configuration bit of line 13 */ |
2770 | #define EXTI_FTSR_TR14_Pos (14U) |
||
9 | mjames | 2771 | #define EXTI_FTSR_TR14_Msk (0x1UL << EXTI_FTSR_TR14_Pos) /*!< 0x00004000 */ |
2 | mjames | 2772 | #define EXTI_FTSR_TR14 EXTI_FTSR_TR14_Msk /*!< Falling trigger event configuration bit of line 14 */ |
2773 | #define EXTI_FTSR_TR15_Pos (15U) |
||
9 | mjames | 2774 | #define EXTI_FTSR_TR15_Msk (0x1UL << EXTI_FTSR_TR15_Pos) /*!< 0x00008000 */ |
2 | mjames | 2775 | #define EXTI_FTSR_TR15 EXTI_FTSR_TR15_Msk /*!< Falling trigger event configuration bit of line 15 */ |
2776 | #define EXTI_FTSR_TR16_Pos (16U) |
||
9 | mjames | 2777 | #define EXTI_FTSR_TR16_Msk (0x1UL << EXTI_FTSR_TR16_Pos) /*!< 0x00010000 */ |
2 | mjames | 2778 | #define EXTI_FTSR_TR16 EXTI_FTSR_TR16_Msk /*!< Falling trigger event configuration bit of line 16 */ |
2779 | #define EXTI_FTSR_TR17_Pos (17U) |
||
9 | mjames | 2780 | #define EXTI_FTSR_TR17_Msk (0x1UL << EXTI_FTSR_TR17_Pos) /*!< 0x00020000 */ |
2 | mjames | 2781 | #define EXTI_FTSR_TR17 EXTI_FTSR_TR17_Msk /*!< Falling trigger event configuration bit of line 17 */ |
2782 | #define EXTI_FTSR_TR18_Pos (18U) |
||
9 | mjames | 2783 | #define EXTI_FTSR_TR18_Msk (0x1UL << EXTI_FTSR_TR18_Pos) /*!< 0x00040000 */ |
2 | mjames | 2784 | #define EXTI_FTSR_TR18 EXTI_FTSR_TR18_Msk /*!< Falling trigger event configuration bit of line 18 */ |
2785 | |||
2786 | /* References Defines */ |
||
2787 | #define EXTI_FTSR_FT0 EXTI_FTSR_TR0 |
||
2788 | #define EXTI_FTSR_FT1 EXTI_FTSR_TR1 |
||
2789 | #define EXTI_FTSR_FT2 EXTI_FTSR_TR2 |
||
2790 | #define EXTI_FTSR_FT3 EXTI_FTSR_TR3 |
||
2791 | #define EXTI_FTSR_FT4 EXTI_FTSR_TR4 |
||
2792 | #define EXTI_FTSR_FT5 EXTI_FTSR_TR5 |
||
2793 | #define EXTI_FTSR_FT6 EXTI_FTSR_TR6 |
||
2794 | #define EXTI_FTSR_FT7 EXTI_FTSR_TR7 |
||
2795 | #define EXTI_FTSR_FT8 EXTI_FTSR_TR8 |
||
2796 | #define EXTI_FTSR_FT9 EXTI_FTSR_TR9 |
||
2797 | #define EXTI_FTSR_FT10 EXTI_FTSR_TR10 |
||
2798 | #define EXTI_FTSR_FT11 EXTI_FTSR_TR11 |
||
2799 | #define EXTI_FTSR_FT12 EXTI_FTSR_TR12 |
||
2800 | #define EXTI_FTSR_FT13 EXTI_FTSR_TR13 |
||
2801 | #define EXTI_FTSR_FT14 EXTI_FTSR_TR14 |
||
2802 | #define EXTI_FTSR_FT15 EXTI_FTSR_TR15 |
||
2803 | #define EXTI_FTSR_FT16 EXTI_FTSR_TR16 |
||
2804 | #define EXTI_FTSR_FT17 EXTI_FTSR_TR17 |
||
2805 | #define EXTI_FTSR_FT18 EXTI_FTSR_TR18 |
||
2806 | |||
2807 | /****************** Bit definition for EXTI_SWIER register ******************/ |
||
2808 | #define EXTI_SWIER_SWIER0_Pos (0U) |
||
9 | mjames | 2809 | #define EXTI_SWIER_SWIER0_Msk (0x1UL << EXTI_SWIER_SWIER0_Pos) /*!< 0x00000001 */ |
2 | mjames | 2810 | #define EXTI_SWIER_SWIER0 EXTI_SWIER_SWIER0_Msk /*!< Software Interrupt on line 0 */ |
2811 | #define EXTI_SWIER_SWIER1_Pos (1U) |
||
9 | mjames | 2812 | #define EXTI_SWIER_SWIER1_Msk (0x1UL << EXTI_SWIER_SWIER1_Pos) /*!< 0x00000002 */ |
2 | mjames | 2813 | #define EXTI_SWIER_SWIER1 EXTI_SWIER_SWIER1_Msk /*!< Software Interrupt on line 1 */ |
2814 | #define EXTI_SWIER_SWIER2_Pos (2U) |
||
9 | mjames | 2815 | #define EXTI_SWIER_SWIER2_Msk (0x1UL << EXTI_SWIER_SWIER2_Pos) /*!< 0x00000004 */ |
2 | mjames | 2816 | #define EXTI_SWIER_SWIER2 EXTI_SWIER_SWIER2_Msk /*!< Software Interrupt on line 2 */ |
2817 | #define EXTI_SWIER_SWIER3_Pos (3U) |
||
9 | mjames | 2818 | #define EXTI_SWIER_SWIER3_Msk (0x1UL << EXTI_SWIER_SWIER3_Pos) /*!< 0x00000008 */ |
2 | mjames | 2819 | #define EXTI_SWIER_SWIER3 EXTI_SWIER_SWIER3_Msk /*!< Software Interrupt on line 3 */ |
2820 | #define EXTI_SWIER_SWIER4_Pos (4U) |
||
9 | mjames | 2821 | #define EXTI_SWIER_SWIER4_Msk (0x1UL << EXTI_SWIER_SWIER4_Pos) /*!< 0x00000010 */ |
2 | mjames | 2822 | #define EXTI_SWIER_SWIER4 EXTI_SWIER_SWIER4_Msk /*!< Software Interrupt on line 4 */ |
2823 | #define EXTI_SWIER_SWIER5_Pos (5U) |
||
9 | mjames | 2824 | #define EXTI_SWIER_SWIER5_Msk (0x1UL << EXTI_SWIER_SWIER5_Pos) /*!< 0x00000020 */ |
2 | mjames | 2825 | #define EXTI_SWIER_SWIER5 EXTI_SWIER_SWIER5_Msk /*!< Software Interrupt on line 5 */ |
2826 | #define EXTI_SWIER_SWIER6_Pos (6U) |
||
9 | mjames | 2827 | #define EXTI_SWIER_SWIER6_Msk (0x1UL << EXTI_SWIER_SWIER6_Pos) /*!< 0x00000040 */ |
2 | mjames | 2828 | #define EXTI_SWIER_SWIER6 EXTI_SWIER_SWIER6_Msk /*!< Software Interrupt on line 6 */ |
2829 | #define EXTI_SWIER_SWIER7_Pos (7U) |
||
9 | mjames | 2830 | #define EXTI_SWIER_SWIER7_Msk (0x1UL << EXTI_SWIER_SWIER7_Pos) /*!< 0x00000080 */ |
2 | mjames | 2831 | #define EXTI_SWIER_SWIER7 EXTI_SWIER_SWIER7_Msk /*!< Software Interrupt on line 7 */ |
2832 | #define EXTI_SWIER_SWIER8_Pos (8U) |
||
9 | mjames | 2833 | #define EXTI_SWIER_SWIER8_Msk (0x1UL << EXTI_SWIER_SWIER8_Pos) /*!< 0x00000100 */ |
2 | mjames | 2834 | #define EXTI_SWIER_SWIER8 EXTI_SWIER_SWIER8_Msk /*!< Software Interrupt on line 8 */ |
2835 | #define EXTI_SWIER_SWIER9_Pos (9U) |
||
9 | mjames | 2836 | #define EXTI_SWIER_SWIER9_Msk (0x1UL << EXTI_SWIER_SWIER9_Pos) /*!< 0x00000200 */ |
2 | mjames | 2837 | #define EXTI_SWIER_SWIER9 EXTI_SWIER_SWIER9_Msk /*!< Software Interrupt on line 9 */ |
2838 | #define EXTI_SWIER_SWIER10_Pos (10U) |
||
9 | mjames | 2839 | #define EXTI_SWIER_SWIER10_Msk (0x1UL << EXTI_SWIER_SWIER10_Pos) /*!< 0x00000400 */ |
2 | mjames | 2840 | #define EXTI_SWIER_SWIER10 EXTI_SWIER_SWIER10_Msk /*!< Software Interrupt on line 10 */ |
2841 | #define EXTI_SWIER_SWIER11_Pos (11U) |
||
9 | mjames | 2842 | #define EXTI_SWIER_SWIER11_Msk (0x1UL << EXTI_SWIER_SWIER11_Pos) /*!< 0x00000800 */ |
2 | mjames | 2843 | #define EXTI_SWIER_SWIER11 EXTI_SWIER_SWIER11_Msk /*!< Software Interrupt on line 11 */ |
2844 | #define EXTI_SWIER_SWIER12_Pos (12U) |
||
9 | mjames | 2845 | #define EXTI_SWIER_SWIER12_Msk (0x1UL << EXTI_SWIER_SWIER12_Pos) /*!< 0x00001000 */ |
2 | mjames | 2846 | #define EXTI_SWIER_SWIER12 EXTI_SWIER_SWIER12_Msk /*!< Software Interrupt on line 12 */ |
2847 | #define EXTI_SWIER_SWIER13_Pos (13U) |
||
9 | mjames | 2848 | #define EXTI_SWIER_SWIER13_Msk (0x1UL << EXTI_SWIER_SWIER13_Pos) /*!< 0x00002000 */ |
2 | mjames | 2849 | #define EXTI_SWIER_SWIER13 EXTI_SWIER_SWIER13_Msk /*!< Software Interrupt on line 13 */ |
2850 | #define EXTI_SWIER_SWIER14_Pos (14U) |
||
9 | mjames | 2851 | #define EXTI_SWIER_SWIER14_Msk (0x1UL << EXTI_SWIER_SWIER14_Pos) /*!< 0x00004000 */ |
2 | mjames | 2852 | #define EXTI_SWIER_SWIER14 EXTI_SWIER_SWIER14_Msk /*!< Software Interrupt on line 14 */ |
2853 | #define EXTI_SWIER_SWIER15_Pos (15U) |
||
9 | mjames | 2854 | #define EXTI_SWIER_SWIER15_Msk (0x1UL << EXTI_SWIER_SWIER15_Pos) /*!< 0x00008000 */ |
2 | mjames | 2855 | #define EXTI_SWIER_SWIER15 EXTI_SWIER_SWIER15_Msk /*!< Software Interrupt on line 15 */ |
2856 | #define EXTI_SWIER_SWIER16_Pos (16U) |
||
9 | mjames | 2857 | #define EXTI_SWIER_SWIER16_Msk (0x1UL << EXTI_SWIER_SWIER16_Pos) /*!< 0x00010000 */ |
2 | mjames | 2858 | #define EXTI_SWIER_SWIER16 EXTI_SWIER_SWIER16_Msk /*!< Software Interrupt on line 16 */ |
2859 | #define EXTI_SWIER_SWIER17_Pos (17U) |
||
9 | mjames | 2860 | #define EXTI_SWIER_SWIER17_Msk (0x1UL << EXTI_SWIER_SWIER17_Pos) /*!< 0x00020000 */ |
2 | mjames | 2861 | #define EXTI_SWIER_SWIER17 EXTI_SWIER_SWIER17_Msk /*!< Software Interrupt on line 17 */ |
2862 | #define EXTI_SWIER_SWIER18_Pos (18U) |
||
9 | mjames | 2863 | #define EXTI_SWIER_SWIER18_Msk (0x1UL << EXTI_SWIER_SWIER18_Pos) /*!< 0x00040000 */ |
2 | mjames | 2864 | #define EXTI_SWIER_SWIER18 EXTI_SWIER_SWIER18_Msk /*!< Software Interrupt on line 18 */ |
2865 | |||
2866 | /* References Defines */ |
||
2867 | #define EXTI_SWIER_SWI0 EXTI_SWIER_SWIER0 |
||
2868 | #define EXTI_SWIER_SWI1 EXTI_SWIER_SWIER1 |
||
2869 | #define EXTI_SWIER_SWI2 EXTI_SWIER_SWIER2 |
||
2870 | #define EXTI_SWIER_SWI3 EXTI_SWIER_SWIER3 |
||
2871 | #define EXTI_SWIER_SWI4 EXTI_SWIER_SWIER4 |
||
2872 | #define EXTI_SWIER_SWI5 EXTI_SWIER_SWIER5 |
||
2873 | #define EXTI_SWIER_SWI6 EXTI_SWIER_SWIER6 |
||
2874 | #define EXTI_SWIER_SWI7 EXTI_SWIER_SWIER7 |
||
2875 | #define EXTI_SWIER_SWI8 EXTI_SWIER_SWIER8 |
||
2876 | #define EXTI_SWIER_SWI9 EXTI_SWIER_SWIER9 |
||
2877 | #define EXTI_SWIER_SWI10 EXTI_SWIER_SWIER10 |
||
2878 | #define EXTI_SWIER_SWI11 EXTI_SWIER_SWIER11 |
||
2879 | #define EXTI_SWIER_SWI12 EXTI_SWIER_SWIER12 |
||
2880 | #define EXTI_SWIER_SWI13 EXTI_SWIER_SWIER13 |
||
2881 | #define EXTI_SWIER_SWI14 EXTI_SWIER_SWIER14 |
||
2882 | #define EXTI_SWIER_SWI15 EXTI_SWIER_SWIER15 |
||
2883 | #define EXTI_SWIER_SWI16 EXTI_SWIER_SWIER16 |
||
2884 | #define EXTI_SWIER_SWI17 EXTI_SWIER_SWIER17 |
||
2885 | #define EXTI_SWIER_SWI18 EXTI_SWIER_SWIER18 |
||
2886 | |||
2887 | /******************* Bit definition for EXTI_PR register ********************/ |
||
2888 | #define EXTI_PR_PR0_Pos (0U) |
||
9 | mjames | 2889 | #define EXTI_PR_PR0_Msk (0x1UL << EXTI_PR_PR0_Pos) /*!< 0x00000001 */ |
2 | mjames | 2890 | #define EXTI_PR_PR0 EXTI_PR_PR0_Msk /*!< Pending bit for line 0 */ |
2891 | #define EXTI_PR_PR1_Pos (1U) |
||
9 | mjames | 2892 | #define EXTI_PR_PR1_Msk (0x1UL << EXTI_PR_PR1_Pos) /*!< 0x00000002 */ |
2 | mjames | 2893 | #define EXTI_PR_PR1 EXTI_PR_PR1_Msk /*!< Pending bit for line 1 */ |
2894 | #define EXTI_PR_PR2_Pos (2U) |
||
9 | mjames | 2895 | #define EXTI_PR_PR2_Msk (0x1UL << EXTI_PR_PR2_Pos) /*!< 0x00000004 */ |
2 | mjames | 2896 | #define EXTI_PR_PR2 EXTI_PR_PR2_Msk /*!< Pending bit for line 2 */ |
2897 | #define EXTI_PR_PR3_Pos (3U) |
||
9 | mjames | 2898 | #define EXTI_PR_PR3_Msk (0x1UL << EXTI_PR_PR3_Pos) /*!< 0x00000008 */ |
2 | mjames | 2899 | #define EXTI_PR_PR3 EXTI_PR_PR3_Msk /*!< Pending bit for line 3 */ |
2900 | #define EXTI_PR_PR4_Pos (4U) |
||
9 | mjames | 2901 | #define EXTI_PR_PR4_Msk (0x1UL << EXTI_PR_PR4_Pos) /*!< 0x00000010 */ |
2 | mjames | 2902 | #define EXTI_PR_PR4 EXTI_PR_PR4_Msk /*!< Pending bit for line 4 */ |
2903 | #define EXTI_PR_PR5_Pos (5U) |
||
9 | mjames | 2904 | #define EXTI_PR_PR5_Msk (0x1UL << EXTI_PR_PR5_Pos) /*!< 0x00000020 */ |
2 | mjames | 2905 | #define EXTI_PR_PR5 EXTI_PR_PR5_Msk /*!< Pending bit for line 5 */ |
2906 | #define EXTI_PR_PR6_Pos (6U) |
||
9 | mjames | 2907 | #define EXTI_PR_PR6_Msk (0x1UL << EXTI_PR_PR6_Pos) /*!< 0x00000040 */ |
2 | mjames | 2908 | #define EXTI_PR_PR6 EXTI_PR_PR6_Msk /*!< Pending bit for line 6 */ |
2909 | #define EXTI_PR_PR7_Pos (7U) |
||
9 | mjames | 2910 | #define EXTI_PR_PR7_Msk (0x1UL << EXTI_PR_PR7_Pos) /*!< 0x00000080 */ |
2 | mjames | 2911 | #define EXTI_PR_PR7 EXTI_PR_PR7_Msk /*!< Pending bit for line 7 */ |
2912 | #define EXTI_PR_PR8_Pos (8U) |
||
9 | mjames | 2913 | #define EXTI_PR_PR8_Msk (0x1UL << EXTI_PR_PR8_Pos) /*!< 0x00000100 */ |
2 | mjames | 2914 | #define EXTI_PR_PR8 EXTI_PR_PR8_Msk /*!< Pending bit for line 8 */ |
2915 | #define EXTI_PR_PR9_Pos (9U) |
||
9 | mjames | 2916 | #define EXTI_PR_PR9_Msk (0x1UL << EXTI_PR_PR9_Pos) /*!< 0x00000200 */ |
2 | mjames | 2917 | #define EXTI_PR_PR9 EXTI_PR_PR9_Msk /*!< Pending bit for line 9 */ |
2918 | #define EXTI_PR_PR10_Pos (10U) |
||
9 | mjames | 2919 | #define EXTI_PR_PR10_Msk (0x1UL << EXTI_PR_PR10_Pos) /*!< 0x00000400 */ |
2 | mjames | 2920 | #define EXTI_PR_PR10 EXTI_PR_PR10_Msk /*!< Pending bit for line 10 */ |
2921 | #define EXTI_PR_PR11_Pos (11U) |
||
9 | mjames | 2922 | #define EXTI_PR_PR11_Msk (0x1UL << EXTI_PR_PR11_Pos) /*!< 0x00000800 */ |
2 | mjames | 2923 | #define EXTI_PR_PR11 EXTI_PR_PR11_Msk /*!< Pending bit for line 11 */ |
2924 | #define EXTI_PR_PR12_Pos (12U) |
||
9 | mjames | 2925 | #define EXTI_PR_PR12_Msk (0x1UL << EXTI_PR_PR12_Pos) /*!< 0x00001000 */ |
2 | mjames | 2926 | #define EXTI_PR_PR12 EXTI_PR_PR12_Msk /*!< Pending bit for line 12 */ |
2927 | #define EXTI_PR_PR13_Pos (13U) |
||
9 | mjames | 2928 | #define EXTI_PR_PR13_Msk (0x1UL << EXTI_PR_PR13_Pos) /*!< 0x00002000 */ |
2 | mjames | 2929 | #define EXTI_PR_PR13 EXTI_PR_PR13_Msk /*!< Pending bit for line 13 */ |
2930 | #define EXTI_PR_PR14_Pos (14U) |
||
9 | mjames | 2931 | #define EXTI_PR_PR14_Msk (0x1UL << EXTI_PR_PR14_Pos) /*!< 0x00004000 */ |
2 | mjames | 2932 | #define EXTI_PR_PR14 EXTI_PR_PR14_Msk /*!< Pending bit for line 14 */ |
2933 | #define EXTI_PR_PR15_Pos (15U) |
||
9 | mjames | 2934 | #define EXTI_PR_PR15_Msk (0x1UL << EXTI_PR_PR15_Pos) /*!< 0x00008000 */ |
2 | mjames | 2935 | #define EXTI_PR_PR15 EXTI_PR_PR15_Msk /*!< Pending bit for line 15 */ |
2936 | #define EXTI_PR_PR16_Pos (16U) |
||
9 | mjames | 2937 | #define EXTI_PR_PR16_Msk (0x1UL << EXTI_PR_PR16_Pos) /*!< 0x00010000 */ |
2 | mjames | 2938 | #define EXTI_PR_PR16 EXTI_PR_PR16_Msk /*!< Pending bit for line 16 */ |
2939 | #define EXTI_PR_PR17_Pos (17U) |
||
9 | mjames | 2940 | #define EXTI_PR_PR17_Msk (0x1UL << EXTI_PR_PR17_Pos) /*!< 0x00020000 */ |
2 | mjames | 2941 | #define EXTI_PR_PR17 EXTI_PR_PR17_Msk /*!< Pending bit for line 17 */ |
2942 | #define EXTI_PR_PR18_Pos (18U) |
||
9 | mjames | 2943 | #define EXTI_PR_PR18_Msk (0x1UL << EXTI_PR_PR18_Pos) /*!< 0x00040000 */ |
2 | mjames | 2944 | #define EXTI_PR_PR18 EXTI_PR_PR18_Msk /*!< Pending bit for line 18 */ |
2945 | |||
2946 | /* References Defines */ |
||
2947 | #define EXTI_PR_PIF0 EXTI_PR_PR0 |
||
2948 | #define EXTI_PR_PIF1 EXTI_PR_PR1 |
||
2949 | #define EXTI_PR_PIF2 EXTI_PR_PR2 |
||
2950 | #define EXTI_PR_PIF3 EXTI_PR_PR3 |
||
2951 | #define EXTI_PR_PIF4 EXTI_PR_PR4 |
||
2952 | #define EXTI_PR_PIF5 EXTI_PR_PR5 |
||
2953 | #define EXTI_PR_PIF6 EXTI_PR_PR6 |
||
2954 | #define EXTI_PR_PIF7 EXTI_PR_PR7 |
||
2955 | #define EXTI_PR_PIF8 EXTI_PR_PR8 |
||
2956 | #define EXTI_PR_PIF9 EXTI_PR_PR9 |
||
2957 | #define EXTI_PR_PIF10 EXTI_PR_PR10 |
||
2958 | #define EXTI_PR_PIF11 EXTI_PR_PR11 |
||
2959 | #define EXTI_PR_PIF12 EXTI_PR_PR12 |
||
2960 | #define EXTI_PR_PIF13 EXTI_PR_PR13 |
||
2961 | #define EXTI_PR_PIF14 EXTI_PR_PR14 |
||
2962 | #define EXTI_PR_PIF15 EXTI_PR_PR15 |
||
2963 | #define EXTI_PR_PIF16 EXTI_PR_PR16 |
||
2964 | #define EXTI_PR_PIF17 EXTI_PR_PR17 |
||
2965 | #define EXTI_PR_PIF18 EXTI_PR_PR18 |
||
2966 | |||
2967 | /******************************************************************************/ |
||
2968 | /* */ |
||
2969 | /* DMA Controller */ |
||
2970 | /* */ |
||
2971 | /******************************************************************************/ |
||
2972 | |||
2973 | /******************* Bit definition for DMA_ISR register ********************/ |
||
2974 | #define DMA_ISR_GIF1_Pos (0U) |
||
9 | mjames | 2975 | #define DMA_ISR_GIF1_Msk (0x1UL << DMA_ISR_GIF1_Pos) /*!< 0x00000001 */ |
2 | mjames | 2976 | #define DMA_ISR_GIF1 DMA_ISR_GIF1_Msk /*!< Channel 1 Global interrupt flag */ |
2977 | #define DMA_ISR_TCIF1_Pos (1U) |
||
9 | mjames | 2978 | #define DMA_ISR_TCIF1_Msk (0x1UL << DMA_ISR_TCIF1_Pos) /*!< 0x00000002 */ |
2 | mjames | 2979 | #define DMA_ISR_TCIF1 DMA_ISR_TCIF1_Msk /*!< Channel 1 Transfer Complete flag */ |
2980 | #define DMA_ISR_HTIF1_Pos (2U) |
||
9 | mjames | 2981 | #define DMA_ISR_HTIF1_Msk (0x1UL << DMA_ISR_HTIF1_Pos) /*!< 0x00000004 */ |
2 | mjames | 2982 | #define DMA_ISR_HTIF1 DMA_ISR_HTIF1_Msk /*!< Channel 1 Half Transfer flag */ |
2983 | #define DMA_ISR_TEIF1_Pos (3U) |
||
9 | mjames | 2984 | #define DMA_ISR_TEIF1_Msk (0x1UL << DMA_ISR_TEIF1_Pos) /*!< 0x00000008 */ |
2 | mjames | 2985 | #define DMA_ISR_TEIF1 DMA_ISR_TEIF1_Msk /*!< Channel 1 Transfer Error flag */ |
2986 | #define DMA_ISR_GIF2_Pos (4U) |
||
9 | mjames | 2987 | #define DMA_ISR_GIF2_Msk (0x1UL << DMA_ISR_GIF2_Pos) /*!< 0x00000010 */ |
2 | mjames | 2988 | #define DMA_ISR_GIF2 DMA_ISR_GIF2_Msk /*!< Channel 2 Global interrupt flag */ |
2989 | #define DMA_ISR_TCIF2_Pos (5U) |
||
9 | mjames | 2990 | #define DMA_ISR_TCIF2_Msk (0x1UL << DMA_ISR_TCIF2_Pos) /*!< 0x00000020 */ |
2 | mjames | 2991 | #define DMA_ISR_TCIF2 DMA_ISR_TCIF2_Msk /*!< Channel 2 Transfer Complete flag */ |
2992 | #define DMA_ISR_HTIF2_Pos (6U) |
||
9 | mjames | 2993 | #define DMA_ISR_HTIF2_Msk (0x1UL << DMA_ISR_HTIF2_Pos) /*!< 0x00000040 */ |
2 | mjames | 2994 | #define DMA_ISR_HTIF2 DMA_ISR_HTIF2_Msk /*!< Channel 2 Half Transfer flag */ |
2995 | #define DMA_ISR_TEIF2_Pos (7U) |
||
9 | mjames | 2996 | #define DMA_ISR_TEIF2_Msk (0x1UL << DMA_ISR_TEIF2_Pos) /*!< 0x00000080 */ |
2 | mjames | 2997 | #define DMA_ISR_TEIF2 DMA_ISR_TEIF2_Msk /*!< Channel 2 Transfer Error flag */ |
2998 | #define DMA_ISR_GIF3_Pos (8U) |
||
9 | mjames | 2999 | #define DMA_ISR_GIF3_Msk (0x1UL << DMA_ISR_GIF3_Pos) /*!< 0x00000100 */ |
2 | mjames | 3000 | #define DMA_ISR_GIF3 DMA_ISR_GIF3_Msk /*!< Channel 3 Global interrupt flag */ |
3001 | #define DMA_ISR_TCIF3_Pos (9U) |
||
9 | mjames | 3002 | #define DMA_ISR_TCIF3_Msk (0x1UL << DMA_ISR_TCIF3_Pos) /*!< 0x00000200 */ |
2 | mjames | 3003 | #define DMA_ISR_TCIF3 DMA_ISR_TCIF3_Msk /*!< Channel 3 Transfer Complete flag */ |
3004 | #define DMA_ISR_HTIF3_Pos (10U) |
||
9 | mjames | 3005 | #define DMA_ISR_HTIF3_Msk (0x1UL << DMA_ISR_HTIF3_Pos) /*!< 0x00000400 */ |
2 | mjames | 3006 | #define DMA_ISR_HTIF3 DMA_ISR_HTIF3_Msk /*!< Channel 3 Half Transfer flag */ |
3007 | #define DMA_ISR_TEIF3_Pos (11U) |
||
9 | mjames | 3008 | #define DMA_ISR_TEIF3_Msk (0x1UL << DMA_ISR_TEIF3_Pos) /*!< 0x00000800 */ |
2 | mjames | 3009 | #define DMA_ISR_TEIF3 DMA_ISR_TEIF3_Msk /*!< Channel 3 Transfer Error flag */ |
3010 | #define DMA_ISR_GIF4_Pos (12U) |
||
9 | mjames | 3011 | #define DMA_ISR_GIF4_Msk (0x1UL << DMA_ISR_GIF4_Pos) /*!< 0x00001000 */ |
2 | mjames | 3012 | #define DMA_ISR_GIF4 DMA_ISR_GIF4_Msk /*!< Channel 4 Global interrupt flag */ |
3013 | #define DMA_ISR_TCIF4_Pos (13U) |
||
9 | mjames | 3014 | #define DMA_ISR_TCIF4_Msk (0x1UL << DMA_ISR_TCIF4_Pos) /*!< 0x00002000 */ |
2 | mjames | 3015 | #define DMA_ISR_TCIF4 DMA_ISR_TCIF4_Msk /*!< Channel 4 Transfer Complete flag */ |
3016 | #define DMA_ISR_HTIF4_Pos (14U) |
||
9 | mjames | 3017 | #define DMA_ISR_HTIF4_Msk (0x1UL << DMA_ISR_HTIF4_Pos) /*!< 0x00004000 */ |
2 | mjames | 3018 | #define DMA_ISR_HTIF4 DMA_ISR_HTIF4_Msk /*!< Channel 4 Half Transfer flag */ |
3019 | #define DMA_ISR_TEIF4_Pos (15U) |
||
9 | mjames | 3020 | #define DMA_ISR_TEIF4_Msk (0x1UL << DMA_ISR_TEIF4_Pos) /*!< 0x00008000 */ |
2 | mjames | 3021 | #define DMA_ISR_TEIF4 DMA_ISR_TEIF4_Msk /*!< Channel 4 Transfer Error flag */ |
3022 | #define DMA_ISR_GIF5_Pos (16U) |
||
9 | mjames | 3023 | #define DMA_ISR_GIF5_Msk (0x1UL << DMA_ISR_GIF5_Pos) /*!< 0x00010000 */ |
2 | mjames | 3024 | #define DMA_ISR_GIF5 DMA_ISR_GIF5_Msk /*!< Channel 5 Global interrupt flag */ |
3025 | #define DMA_ISR_TCIF5_Pos (17U) |
||
9 | mjames | 3026 | #define DMA_ISR_TCIF5_Msk (0x1UL << DMA_ISR_TCIF5_Pos) /*!< 0x00020000 */ |
2 | mjames | 3027 | #define DMA_ISR_TCIF5 DMA_ISR_TCIF5_Msk /*!< Channel 5 Transfer Complete flag */ |
3028 | #define DMA_ISR_HTIF5_Pos (18U) |
||
9 | mjames | 3029 | #define DMA_ISR_HTIF5_Msk (0x1UL << DMA_ISR_HTIF5_Pos) /*!< 0x00040000 */ |
2 | mjames | 3030 | #define DMA_ISR_HTIF5 DMA_ISR_HTIF5_Msk /*!< Channel 5 Half Transfer flag */ |
3031 | #define DMA_ISR_TEIF5_Pos (19U) |
||
9 | mjames | 3032 | #define DMA_ISR_TEIF5_Msk (0x1UL << DMA_ISR_TEIF5_Pos) /*!< 0x00080000 */ |
2 | mjames | 3033 | #define DMA_ISR_TEIF5 DMA_ISR_TEIF5_Msk /*!< Channel 5 Transfer Error flag */ |
3034 | #define DMA_ISR_GIF6_Pos (20U) |
||
9 | mjames | 3035 | #define DMA_ISR_GIF6_Msk (0x1UL << DMA_ISR_GIF6_Pos) /*!< 0x00100000 */ |
2 | mjames | 3036 | #define DMA_ISR_GIF6 DMA_ISR_GIF6_Msk /*!< Channel 6 Global interrupt flag */ |
3037 | #define DMA_ISR_TCIF6_Pos (21U) |
||
9 | mjames | 3038 | #define DMA_ISR_TCIF6_Msk (0x1UL << DMA_ISR_TCIF6_Pos) /*!< 0x00200000 */ |
2 | mjames | 3039 | #define DMA_ISR_TCIF6 DMA_ISR_TCIF6_Msk /*!< Channel 6 Transfer Complete flag */ |
3040 | #define DMA_ISR_HTIF6_Pos (22U) |
||
9 | mjames | 3041 | #define DMA_ISR_HTIF6_Msk (0x1UL << DMA_ISR_HTIF6_Pos) /*!< 0x00400000 */ |
2 | mjames | 3042 | #define DMA_ISR_HTIF6 DMA_ISR_HTIF6_Msk /*!< Channel 6 Half Transfer flag */ |
3043 | #define DMA_ISR_TEIF6_Pos (23U) |
||
9 | mjames | 3044 | #define DMA_ISR_TEIF6_Msk (0x1UL << DMA_ISR_TEIF6_Pos) /*!< 0x00800000 */ |
2 | mjames | 3045 | #define DMA_ISR_TEIF6 DMA_ISR_TEIF6_Msk /*!< Channel 6 Transfer Error flag */ |
3046 | #define DMA_ISR_GIF7_Pos (24U) |
||
9 | mjames | 3047 | #define DMA_ISR_GIF7_Msk (0x1UL << DMA_ISR_GIF7_Pos) /*!< 0x01000000 */ |
2 | mjames | 3048 | #define DMA_ISR_GIF7 DMA_ISR_GIF7_Msk /*!< Channel 7 Global interrupt flag */ |
3049 | #define DMA_ISR_TCIF7_Pos (25U) |
||
9 | mjames | 3050 | #define DMA_ISR_TCIF7_Msk (0x1UL << DMA_ISR_TCIF7_Pos) /*!< 0x02000000 */ |
2 | mjames | 3051 | #define DMA_ISR_TCIF7 DMA_ISR_TCIF7_Msk /*!< Channel 7 Transfer Complete flag */ |
3052 | #define DMA_ISR_HTIF7_Pos (26U) |
||
9 | mjames | 3053 | #define DMA_ISR_HTIF7_Msk (0x1UL << DMA_ISR_HTIF7_Pos) /*!< 0x04000000 */ |
2 | mjames | 3054 | #define DMA_ISR_HTIF7 DMA_ISR_HTIF7_Msk /*!< Channel 7 Half Transfer flag */ |
3055 | #define DMA_ISR_TEIF7_Pos (27U) |
||
9 | mjames | 3056 | #define DMA_ISR_TEIF7_Msk (0x1UL << DMA_ISR_TEIF7_Pos) /*!< 0x08000000 */ |
2 | mjames | 3057 | #define DMA_ISR_TEIF7 DMA_ISR_TEIF7_Msk /*!< Channel 7 Transfer Error flag */ |
3058 | |||
3059 | /******************* Bit definition for DMA_IFCR register *******************/ |
||
3060 | #define DMA_IFCR_CGIF1_Pos (0U) |
||
9 | mjames | 3061 | #define DMA_IFCR_CGIF1_Msk (0x1UL << DMA_IFCR_CGIF1_Pos) /*!< 0x00000001 */ |
2 | mjames | 3062 | #define DMA_IFCR_CGIF1 DMA_IFCR_CGIF1_Msk /*!< Channel 1 Global interrupt clear */ |
3063 | #define DMA_IFCR_CTCIF1_Pos (1U) |
||
9 | mjames | 3064 | #define DMA_IFCR_CTCIF1_Msk (0x1UL << DMA_IFCR_CTCIF1_Pos) /*!< 0x00000002 */ |
2 | mjames | 3065 | #define DMA_IFCR_CTCIF1 DMA_IFCR_CTCIF1_Msk /*!< Channel 1 Transfer Complete clear */ |
3066 | #define DMA_IFCR_CHTIF1_Pos (2U) |
||
9 | mjames | 3067 | #define DMA_IFCR_CHTIF1_Msk (0x1UL << DMA_IFCR_CHTIF1_Pos) /*!< 0x00000004 */ |
2 | mjames | 3068 | #define DMA_IFCR_CHTIF1 DMA_IFCR_CHTIF1_Msk /*!< Channel 1 Half Transfer clear */ |
3069 | #define DMA_IFCR_CTEIF1_Pos (3U) |
||
9 | mjames | 3070 | #define DMA_IFCR_CTEIF1_Msk (0x1UL << DMA_IFCR_CTEIF1_Pos) /*!< 0x00000008 */ |
2 | mjames | 3071 | #define DMA_IFCR_CTEIF1 DMA_IFCR_CTEIF1_Msk /*!< Channel 1 Transfer Error clear */ |
3072 | #define DMA_IFCR_CGIF2_Pos (4U) |
||
9 | mjames | 3073 | #define DMA_IFCR_CGIF2_Msk (0x1UL << DMA_IFCR_CGIF2_Pos) /*!< 0x00000010 */ |
2 | mjames | 3074 | #define DMA_IFCR_CGIF2 DMA_IFCR_CGIF2_Msk /*!< Channel 2 Global interrupt clear */ |
3075 | #define DMA_IFCR_CTCIF2_Pos (5U) |
||
9 | mjames | 3076 | #define DMA_IFCR_CTCIF2_Msk (0x1UL << DMA_IFCR_CTCIF2_Pos) /*!< 0x00000020 */ |
2 | mjames | 3077 | #define DMA_IFCR_CTCIF2 DMA_IFCR_CTCIF2_Msk /*!< Channel 2 Transfer Complete clear */ |
3078 | #define DMA_IFCR_CHTIF2_Pos (6U) |
||
9 | mjames | 3079 | #define DMA_IFCR_CHTIF2_Msk (0x1UL << DMA_IFCR_CHTIF2_Pos) /*!< 0x00000040 */ |
2 | mjames | 3080 | #define DMA_IFCR_CHTIF2 DMA_IFCR_CHTIF2_Msk /*!< Channel 2 Half Transfer clear */ |
3081 | #define DMA_IFCR_CTEIF2_Pos (7U) |
||
9 | mjames | 3082 | #define DMA_IFCR_CTEIF2_Msk (0x1UL << DMA_IFCR_CTEIF2_Pos) /*!< 0x00000080 */ |
2 | mjames | 3083 | #define DMA_IFCR_CTEIF2 DMA_IFCR_CTEIF2_Msk /*!< Channel 2 Transfer Error clear */ |
3084 | #define DMA_IFCR_CGIF3_Pos (8U) |
||
9 | mjames | 3085 | #define DMA_IFCR_CGIF3_Msk (0x1UL << DMA_IFCR_CGIF3_Pos) /*!< 0x00000100 */ |
2 | mjames | 3086 | #define DMA_IFCR_CGIF3 DMA_IFCR_CGIF3_Msk /*!< Channel 3 Global interrupt clear */ |
3087 | #define DMA_IFCR_CTCIF3_Pos (9U) |
||
9 | mjames | 3088 | #define DMA_IFCR_CTCIF3_Msk (0x1UL << DMA_IFCR_CTCIF3_Pos) /*!< 0x00000200 */ |
2 | mjames | 3089 | #define DMA_IFCR_CTCIF3 DMA_IFCR_CTCIF3_Msk /*!< Channel 3 Transfer Complete clear */ |
3090 | #define DMA_IFCR_CHTIF3_Pos (10U) |
||
9 | mjames | 3091 | #define DMA_IFCR_CHTIF3_Msk (0x1UL << DMA_IFCR_CHTIF3_Pos) /*!< 0x00000400 */ |
2 | mjames | 3092 | #define DMA_IFCR_CHTIF3 DMA_IFCR_CHTIF3_Msk /*!< Channel 3 Half Transfer clear */ |
3093 | #define DMA_IFCR_CTEIF3_Pos (11U) |
||
9 | mjames | 3094 | #define DMA_IFCR_CTEIF3_Msk (0x1UL << DMA_IFCR_CTEIF3_Pos) /*!< 0x00000800 */ |
2 | mjames | 3095 | #define DMA_IFCR_CTEIF3 DMA_IFCR_CTEIF3_Msk /*!< Channel 3 Transfer Error clear */ |
3096 | #define DMA_IFCR_CGIF4_Pos (12U) |
||
9 | mjames | 3097 | #define DMA_IFCR_CGIF4_Msk (0x1UL << DMA_IFCR_CGIF4_Pos) /*!< 0x00001000 */ |
2 | mjames | 3098 | #define DMA_IFCR_CGIF4 DMA_IFCR_CGIF4_Msk /*!< Channel 4 Global interrupt clear */ |
3099 | #define DMA_IFCR_CTCIF4_Pos (13U) |
||
9 | mjames | 3100 | #define DMA_IFCR_CTCIF4_Msk (0x1UL << DMA_IFCR_CTCIF4_Pos) /*!< 0x00002000 */ |
2 | mjames | 3101 | #define DMA_IFCR_CTCIF4 DMA_IFCR_CTCIF4_Msk /*!< Channel 4 Transfer Complete clear */ |
3102 | #define DMA_IFCR_CHTIF4_Pos (14U) |
||
9 | mjames | 3103 | #define DMA_IFCR_CHTIF4_Msk (0x1UL << DMA_IFCR_CHTIF4_Pos) /*!< 0x00004000 */ |
2 | mjames | 3104 | #define DMA_IFCR_CHTIF4 DMA_IFCR_CHTIF4_Msk /*!< Channel 4 Half Transfer clear */ |
3105 | #define DMA_IFCR_CTEIF4_Pos (15U) |
||
9 | mjames | 3106 | #define DMA_IFCR_CTEIF4_Msk (0x1UL << DMA_IFCR_CTEIF4_Pos) /*!< 0x00008000 */ |
2 | mjames | 3107 | #define DMA_IFCR_CTEIF4 DMA_IFCR_CTEIF4_Msk /*!< Channel 4 Transfer Error clear */ |
3108 | #define DMA_IFCR_CGIF5_Pos (16U) |
||
9 | mjames | 3109 | #define DMA_IFCR_CGIF5_Msk (0x1UL << DMA_IFCR_CGIF5_Pos) /*!< 0x00010000 */ |
2 | mjames | 3110 | #define DMA_IFCR_CGIF5 DMA_IFCR_CGIF5_Msk /*!< Channel 5 Global interrupt clear */ |
3111 | #define DMA_IFCR_CTCIF5_Pos (17U) |
||
9 | mjames | 3112 | #define DMA_IFCR_CTCIF5_Msk (0x1UL << DMA_IFCR_CTCIF5_Pos) /*!< 0x00020000 */ |
2 | mjames | 3113 | #define DMA_IFCR_CTCIF5 DMA_IFCR_CTCIF5_Msk /*!< Channel 5 Transfer Complete clear */ |
3114 | #define DMA_IFCR_CHTIF5_Pos (18U) |
||
9 | mjames | 3115 | #define DMA_IFCR_CHTIF5_Msk (0x1UL << DMA_IFCR_CHTIF5_Pos) /*!< 0x00040000 */ |
2 | mjames | 3116 | #define DMA_IFCR_CHTIF5 DMA_IFCR_CHTIF5_Msk /*!< Channel 5 Half Transfer clear */ |
3117 | #define DMA_IFCR_CTEIF5_Pos (19U) |
||
9 | mjames | 3118 | #define DMA_IFCR_CTEIF5_Msk (0x1UL << DMA_IFCR_CTEIF5_Pos) /*!< 0x00080000 */ |
2 | mjames | 3119 | #define DMA_IFCR_CTEIF5 DMA_IFCR_CTEIF5_Msk /*!< Channel 5 Transfer Error clear */ |
3120 | #define DMA_IFCR_CGIF6_Pos (20U) |
||
9 | mjames | 3121 | #define DMA_IFCR_CGIF6_Msk (0x1UL << DMA_IFCR_CGIF6_Pos) /*!< 0x00100000 */ |
2 | mjames | 3122 | #define DMA_IFCR_CGIF6 DMA_IFCR_CGIF6_Msk /*!< Channel 6 Global interrupt clear */ |
3123 | #define DMA_IFCR_CTCIF6_Pos (21U) |
||
9 | mjames | 3124 | #define DMA_IFCR_CTCIF6_Msk (0x1UL << DMA_IFCR_CTCIF6_Pos) /*!< 0x00200000 */ |
2 | mjames | 3125 | #define DMA_IFCR_CTCIF6 DMA_IFCR_CTCIF6_Msk /*!< Channel 6 Transfer Complete clear */ |
3126 | #define DMA_IFCR_CHTIF6_Pos (22U) |
||
9 | mjames | 3127 | #define DMA_IFCR_CHTIF6_Msk (0x1UL << DMA_IFCR_CHTIF6_Pos) /*!< 0x00400000 */ |
2 | mjames | 3128 | #define DMA_IFCR_CHTIF6 DMA_IFCR_CHTIF6_Msk /*!< Channel 6 Half Transfer clear */ |
3129 | #define DMA_IFCR_CTEIF6_Pos (23U) |
||
9 | mjames | 3130 | #define DMA_IFCR_CTEIF6_Msk (0x1UL << DMA_IFCR_CTEIF6_Pos) /*!< 0x00800000 */ |
2 | mjames | 3131 | #define DMA_IFCR_CTEIF6 DMA_IFCR_CTEIF6_Msk /*!< Channel 6 Transfer Error clear */ |
3132 | #define DMA_IFCR_CGIF7_Pos (24U) |
||
9 | mjames | 3133 | #define DMA_IFCR_CGIF7_Msk (0x1UL << DMA_IFCR_CGIF7_Pos) /*!< 0x01000000 */ |
2 | mjames | 3134 | #define DMA_IFCR_CGIF7 DMA_IFCR_CGIF7_Msk /*!< Channel 7 Global interrupt clear */ |
3135 | #define DMA_IFCR_CTCIF7_Pos (25U) |
||
9 | mjames | 3136 | #define DMA_IFCR_CTCIF7_Msk (0x1UL << DMA_IFCR_CTCIF7_Pos) /*!< 0x02000000 */ |
2 | mjames | 3137 | #define DMA_IFCR_CTCIF7 DMA_IFCR_CTCIF7_Msk /*!< Channel 7 Transfer Complete clear */ |
3138 | #define DMA_IFCR_CHTIF7_Pos (26U) |
||
9 | mjames | 3139 | #define DMA_IFCR_CHTIF7_Msk (0x1UL << DMA_IFCR_CHTIF7_Pos) /*!< 0x04000000 */ |
2 | mjames | 3140 | #define DMA_IFCR_CHTIF7 DMA_IFCR_CHTIF7_Msk /*!< Channel 7 Half Transfer clear */ |
3141 | #define DMA_IFCR_CTEIF7_Pos (27U) |
||
9 | mjames | 3142 | #define DMA_IFCR_CTEIF7_Msk (0x1UL << DMA_IFCR_CTEIF7_Pos) /*!< 0x08000000 */ |
2 | mjames | 3143 | #define DMA_IFCR_CTEIF7 DMA_IFCR_CTEIF7_Msk /*!< Channel 7 Transfer Error clear */ |
3144 | |||
3145 | /******************* Bit definition for DMA_CCR register *******************/ |
||
3146 | #define DMA_CCR_EN_Pos (0U) |
||
9 | mjames | 3147 | #define DMA_CCR_EN_Msk (0x1UL << DMA_CCR_EN_Pos) /*!< 0x00000001 */ |
2 | mjames | 3148 | #define DMA_CCR_EN DMA_CCR_EN_Msk /*!< Channel enable */ |
3149 | #define DMA_CCR_TCIE_Pos (1U) |
||
9 | mjames | 3150 | #define DMA_CCR_TCIE_Msk (0x1UL << DMA_CCR_TCIE_Pos) /*!< 0x00000002 */ |
2 | mjames | 3151 | #define DMA_CCR_TCIE DMA_CCR_TCIE_Msk /*!< Transfer complete interrupt enable */ |
3152 | #define DMA_CCR_HTIE_Pos (2U) |
||
9 | mjames | 3153 | #define DMA_CCR_HTIE_Msk (0x1UL << DMA_CCR_HTIE_Pos) /*!< 0x00000004 */ |
2 | mjames | 3154 | #define DMA_CCR_HTIE DMA_CCR_HTIE_Msk /*!< Half Transfer interrupt enable */ |
3155 | #define DMA_CCR_TEIE_Pos (3U) |
||
9 | mjames | 3156 | #define DMA_CCR_TEIE_Msk (0x1UL << DMA_CCR_TEIE_Pos) /*!< 0x00000008 */ |
2 | mjames | 3157 | #define DMA_CCR_TEIE DMA_CCR_TEIE_Msk /*!< Transfer error interrupt enable */ |
3158 | #define DMA_CCR_DIR_Pos (4U) |
||
9 | mjames | 3159 | #define DMA_CCR_DIR_Msk (0x1UL << DMA_CCR_DIR_Pos) /*!< 0x00000010 */ |
2 | mjames | 3160 | #define DMA_CCR_DIR DMA_CCR_DIR_Msk /*!< Data transfer direction */ |
3161 | #define DMA_CCR_CIRC_Pos (5U) |
||
9 | mjames | 3162 | #define DMA_CCR_CIRC_Msk (0x1UL << DMA_CCR_CIRC_Pos) /*!< 0x00000020 */ |
2 | mjames | 3163 | #define DMA_CCR_CIRC DMA_CCR_CIRC_Msk /*!< Circular mode */ |
3164 | #define DMA_CCR_PINC_Pos (6U) |
||
9 | mjames | 3165 | #define DMA_CCR_PINC_Msk (0x1UL << DMA_CCR_PINC_Pos) /*!< 0x00000040 */ |
2 | mjames | 3166 | #define DMA_CCR_PINC DMA_CCR_PINC_Msk /*!< Peripheral increment mode */ |
3167 | #define DMA_CCR_MINC_Pos (7U) |
||
9 | mjames | 3168 | #define DMA_CCR_MINC_Msk (0x1UL << DMA_CCR_MINC_Pos) /*!< 0x00000080 */ |
2 | mjames | 3169 | #define DMA_CCR_MINC DMA_CCR_MINC_Msk /*!< Memory increment mode */ |
3170 | |||
3171 | #define DMA_CCR_PSIZE_Pos (8U) |
||
9 | mjames | 3172 | #define DMA_CCR_PSIZE_Msk (0x3UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000300 */ |
2 | mjames | 3173 | #define DMA_CCR_PSIZE DMA_CCR_PSIZE_Msk /*!< PSIZE[1:0] bits (Peripheral size) */ |
9 | mjames | 3174 | #define DMA_CCR_PSIZE_0 (0x1UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000100 */ |
3175 | #define DMA_CCR_PSIZE_1 (0x2UL << DMA_CCR_PSIZE_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 3176 | |
3177 | #define DMA_CCR_MSIZE_Pos (10U) |
||
9 | mjames | 3178 | #define DMA_CCR_MSIZE_Msk (0x3UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000C00 */ |
2 | mjames | 3179 | #define DMA_CCR_MSIZE DMA_CCR_MSIZE_Msk /*!< MSIZE[1:0] bits (Memory size) */ |
9 | mjames | 3180 | #define DMA_CCR_MSIZE_0 (0x1UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000400 */ |
3181 | #define DMA_CCR_MSIZE_1 (0x2UL << DMA_CCR_MSIZE_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 3182 | |
3183 | #define DMA_CCR_PL_Pos (12U) |
||
9 | mjames | 3184 | #define DMA_CCR_PL_Msk (0x3UL << DMA_CCR_PL_Pos) /*!< 0x00003000 */ |
2 | mjames | 3185 | #define DMA_CCR_PL DMA_CCR_PL_Msk /*!< PL[1:0] bits(Channel Priority level) */ |
9 | mjames | 3186 | #define DMA_CCR_PL_0 (0x1UL << DMA_CCR_PL_Pos) /*!< 0x00001000 */ |
3187 | #define DMA_CCR_PL_1 (0x2UL << DMA_CCR_PL_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 3188 | |
3189 | #define DMA_CCR_MEM2MEM_Pos (14U) |
||
9 | mjames | 3190 | #define DMA_CCR_MEM2MEM_Msk (0x1UL << DMA_CCR_MEM2MEM_Pos) /*!< 0x00004000 */ |
2 | mjames | 3191 | #define DMA_CCR_MEM2MEM DMA_CCR_MEM2MEM_Msk /*!< Memory to memory mode */ |
3192 | |||
3193 | /****************** Bit definition for DMA_CNDTR register ******************/ |
||
3194 | #define DMA_CNDTR_NDT_Pos (0U) |
||
9 | mjames | 3195 | #define DMA_CNDTR_NDT_Msk (0xFFFFUL << DMA_CNDTR_NDT_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 3196 | #define DMA_CNDTR_NDT DMA_CNDTR_NDT_Msk /*!< Number of data to Transfer */ |
3197 | |||
3198 | /****************** Bit definition for DMA_CPAR register *******************/ |
||
3199 | #define DMA_CPAR_PA_Pos (0U) |
||
9 | mjames | 3200 | #define DMA_CPAR_PA_Msk (0xFFFFFFFFUL << DMA_CPAR_PA_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 3201 | #define DMA_CPAR_PA DMA_CPAR_PA_Msk /*!< Peripheral Address */ |
3202 | |||
3203 | /****************** Bit definition for DMA_CMAR register *******************/ |
||
3204 | #define DMA_CMAR_MA_Pos (0U) |
||
9 | mjames | 3205 | #define DMA_CMAR_MA_Msk (0xFFFFFFFFUL << DMA_CMAR_MA_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 3206 | #define DMA_CMAR_MA DMA_CMAR_MA_Msk /*!< Memory Address */ |
3207 | |||
3208 | /******************************************************************************/ |
||
3209 | /* */ |
||
3210 | /* Analog to Digital Converter (ADC) */ |
||
3211 | /* */ |
||
3212 | /******************************************************************************/ |
||
3213 | |||
3214 | /* |
||
3215 | * @brief Specific device feature definitions (not present on all devices in the STM32F1 family) |
||
3216 | */ |
||
3217 | #define ADC_MULTIMODE_SUPPORT /*!< ADC feature available only on specific devices: multimode available on devices with several ADC instances */ |
||
3218 | |||
3219 | /******************** Bit definition for ADC_SR register ********************/ |
||
3220 | #define ADC_SR_AWD_Pos (0U) |
||
9 | mjames | 3221 | #define ADC_SR_AWD_Msk (0x1UL << ADC_SR_AWD_Pos) /*!< 0x00000001 */ |
2 | mjames | 3222 | #define ADC_SR_AWD ADC_SR_AWD_Msk /*!< ADC analog watchdog 1 flag */ |
3223 | #define ADC_SR_EOS_Pos (1U) |
||
9 | mjames | 3224 | #define ADC_SR_EOS_Msk (0x1UL << ADC_SR_EOS_Pos) /*!< 0x00000002 */ |
2 | mjames | 3225 | #define ADC_SR_EOS ADC_SR_EOS_Msk /*!< ADC group regular end of sequence conversions flag */ |
3226 | #define ADC_SR_JEOS_Pos (2U) |
||
9 | mjames | 3227 | #define ADC_SR_JEOS_Msk (0x1UL << ADC_SR_JEOS_Pos) /*!< 0x00000004 */ |
2 | mjames | 3228 | #define ADC_SR_JEOS ADC_SR_JEOS_Msk /*!< ADC group injected end of sequence conversions flag */ |
3229 | #define ADC_SR_JSTRT_Pos (3U) |
||
9 | mjames | 3230 | #define ADC_SR_JSTRT_Msk (0x1UL << ADC_SR_JSTRT_Pos) /*!< 0x00000008 */ |
2 | mjames | 3231 | #define ADC_SR_JSTRT ADC_SR_JSTRT_Msk /*!< ADC group injected conversion start flag */ |
3232 | #define ADC_SR_STRT_Pos (4U) |
||
9 | mjames | 3233 | #define ADC_SR_STRT_Msk (0x1UL << ADC_SR_STRT_Pos) /*!< 0x00000010 */ |
2 | mjames | 3234 | #define ADC_SR_STRT ADC_SR_STRT_Msk /*!< ADC group regular conversion start flag */ |
3235 | |||
3236 | /* Legacy defines */ |
||
3237 | #define ADC_SR_EOC (ADC_SR_EOS) |
||
3238 | #define ADC_SR_JEOC (ADC_SR_JEOS) |
||
3239 | |||
3240 | /******************* Bit definition for ADC_CR1 register ********************/ |
||
3241 | #define ADC_CR1_AWDCH_Pos (0U) |
||
9 | mjames | 3242 | #define ADC_CR1_AWDCH_Msk (0x1FUL << ADC_CR1_AWDCH_Pos) /*!< 0x0000001F */ |
2 | mjames | 3243 | #define ADC_CR1_AWDCH ADC_CR1_AWDCH_Msk /*!< ADC analog watchdog 1 monitored channel selection */ |
9 | mjames | 3244 | #define ADC_CR1_AWDCH_0 (0x01UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000001 */ |
3245 | #define ADC_CR1_AWDCH_1 (0x02UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000002 */ |
||
3246 | #define ADC_CR1_AWDCH_2 (0x04UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000004 */ |
||
3247 | #define ADC_CR1_AWDCH_3 (0x08UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000008 */ |
||
3248 | #define ADC_CR1_AWDCH_4 (0x10UL << ADC_CR1_AWDCH_Pos) /*!< 0x00000010 */ |
||
2 | mjames | 3249 | |
3250 | #define ADC_CR1_EOSIE_Pos (5U) |
||
9 | mjames | 3251 | #define ADC_CR1_EOSIE_Msk (0x1UL << ADC_CR1_EOSIE_Pos) /*!< 0x00000020 */ |
2 | mjames | 3252 | #define ADC_CR1_EOSIE ADC_CR1_EOSIE_Msk /*!< ADC group regular end of sequence conversions interrupt */ |
3253 | #define ADC_CR1_AWDIE_Pos (6U) |
||
9 | mjames | 3254 | #define ADC_CR1_AWDIE_Msk (0x1UL << ADC_CR1_AWDIE_Pos) /*!< 0x00000040 */ |
2 | mjames | 3255 | #define ADC_CR1_AWDIE ADC_CR1_AWDIE_Msk /*!< ADC analog watchdog 1 interrupt */ |
3256 | #define ADC_CR1_JEOSIE_Pos (7U) |
||
9 | mjames | 3257 | #define ADC_CR1_JEOSIE_Msk (0x1UL << ADC_CR1_JEOSIE_Pos) /*!< 0x00000080 */ |
2 | mjames | 3258 | #define ADC_CR1_JEOSIE ADC_CR1_JEOSIE_Msk /*!< ADC group injected end of sequence conversions interrupt */ |
3259 | #define ADC_CR1_SCAN_Pos (8U) |
||
9 | mjames | 3260 | #define ADC_CR1_SCAN_Msk (0x1UL << ADC_CR1_SCAN_Pos) /*!< 0x00000100 */ |
2 | mjames | 3261 | #define ADC_CR1_SCAN ADC_CR1_SCAN_Msk /*!< ADC scan mode */ |
3262 | #define ADC_CR1_AWDSGL_Pos (9U) |
||
9 | mjames | 3263 | #define ADC_CR1_AWDSGL_Msk (0x1UL << ADC_CR1_AWDSGL_Pos) /*!< 0x00000200 */ |
2 | mjames | 3264 | #define ADC_CR1_AWDSGL ADC_CR1_AWDSGL_Msk /*!< ADC analog watchdog 1 monitoring a single channel or all channels */ |
3265 | #define ADC_CR1_JAUTO_Pos (10U) |
||
9 | mjames | 3266 | #define ADC_CR1_JAUTO_Msk (0x1UL << ADC_CR1_JAUTO_Pos) /*!< 0x00000400 */ |
2 | mjames | 3267 | #define ADC_CR1_JAUTO ADC_CR1_JAUTO_Msk /*!< ADC group injected automatic trigger mode */ |
3268 | #define ADC_CR1_DISCEN_Pos (11U) |
||
9 | mjames | 3269 | #define ADC_CR1_DISCEN_Msk (0x1UL << ADC_CR1_DISCEN_Pos) /*!< 0x00000800 */ |
2 | mjames | 3270 | #define ADC_CR1_DISCEN ADC_CR1_DISCEN_Msk /*!< ADC group regular sequencer discontinuous mode */ |
3271 | #define ADC_CR1_JDISCEN_Pos (12U) |
||
9 | mjames | 3272 | #define ADC_CR1_JDISCEN_Msk (0x1UL << ADC_CR1_JDISCEN_Pos) /*!< 0x00001000 */ |
2 | mjames | 3273 | #define ADC_CR1_JDISCEN ADC_CR1_JDISCEN_Msk /*!< ADC group injected sequencer discontinuous mode */ |
3274 | |||
3275 | #define ADC_CR1_DISCNUM_Pos (13U) |
||
9 | mjames | 3276 | #define ADC_CR1_DISCNUM_Msk (0x7UL << ADC_CR1_DISCNUM_Pos) /*!< 0x0000E000 */ |
2 | mjames | 3277 | #define ADC_CR1_DISCNUM ADC_CR1_DISCNUM_Msk /*!< ADC group regular sequencer discontinuous number of ranks */ |
9 | mjames | 3278 | #define ADC_CR1_DISCNUM_0 (0x1UL << ADC_CR1_DISCNUM_Pos) /*!< 0x00002000 */ |
3279 | #define ADC_CR1_DISCNUM_1 (0x2UL << ADC_CR1_DISCNUM_Pos) /*!< 0x00004000 */ |
||
3280 | #define ADC_CR1_DISCNUM_2 (0x4UL << ADC_CR1_DISCNUM_Pos) /*!< 0x00008000 */ |
||
2 | mjames | 3281 | |
3282 | #define ADC_CR1_DUALMOD_Pos (16U) |
||
9 | mjames | 3283 | #define ADC_CR1_DUALMOD_Msk (0xFUL << ADC_CR1_DUALMOD_Pos) /*!< 0x000F0000 */ |
2 | mjames | 3284 | #define ADC_CR1_DUALMOD ADC_CR1_DUALMOD_Msk /*!< ADC multimode mode selection */ |
9 | mjames | 3285 | #define ADC_CR1_DUALMOD_0 (0x1UL << ADC_CR1_DUALMOD_Pos) /*!< 0x00010000 */ |
3286 | #define ADC_CR1_DUALMOD_1 (0x2UL << ADC_CR1_DUALMOD_Pos) /*!< 0x00020000 */ |
||
3287 | #define ADC_CR1_DUALMOD_2 (0x4UL << ADC_CR1_DUALMOD_Pos) /*!< 0x00040000 */ |
||
3288 | #define ADC_CR1_DUALMOD_3 (0x8UL << ADC_CR1_DUALMOD_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 3289 | |
3290 | #define ADC_CR1_JAWDEN_Pos (22U) |
||
9 | mjames | 3291 | #define ADC_CR1_JAWDEN_Msk (0x1UL << ADC_CR1_JAWDEN_Pos) /*!< 0x00400000 */ |
2 | mjames | 3292 | #define ADC_CR1_JAWDEN ADC_CR1_JAWDEN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group injected */ |
3293 | #define ADC_CR1_AWDEN_Pos (23U) |
||
9 | mjames | 3294 | #define ADC_CR1_AWDEN_Msk (0x1UL << ADC_CR1_AWDEN_Pos) /*!< 0x00800000 */ |
2 | mjames | 3295 | #define ADC_CR1_AWDEN ADC_CR1_AWDEN_Msk /*!< ADC analog watchdog 1 enable on scope ADC group regular */ |
3296 | |||
3297 | /* Legacy defines */ |
||
3298 | #define ADC_CR1_EOCIE (ADC_CR1_EOSIE) |
||
3299 | #define ADC_CR1_JEOCIE (ADC_CR1_JEOSIE) |
||
3300 | |||
3301 | /******************* Bit definition for ADC_CR2 register ********************/ |
||
3302 | #define ADC_CR2_ADON_Pos (0U) |
||
9 | mjames | 3303 | #define ADC_CR2_ADON_Msk (0x1UL << ADC_CR2_ADON_Pos) /*!< 0x00000001 */ |
2 | mjames | 3304 | #define ADC_CR2_ADON ADC_CR2_ADON_Msk /*!< ADC enable */ |
3305 | #define ADC_CR2_CONT_Pos (1U) |
||
9 | mjames | 3306 | #define ADC_CR2_CONT_Msk (0x1UL << ADC_CR2_CONT_Pos) /*!< 0x00000002 */ |
2 | mjames | 3307 | #define ADC_CR2_CONT ADC_CR2_CONT_Msk /*!< ADC group regular continuous conversion mode */ |
3308 | #define ADC_CR2_CAL_Pos (2U) |
||
9 | mjames | 3309 | #define ADC_CR2_CAL_Msk (0x1UL << ADC_CR2_CAL_Pos) /*!< 0x00000004 */ |
2 | mjames | 3310 | #define ADC_CR2_CAL ADC_CR2_CAL_Msk /*!< ADC calibration start */ |
3311 | #define ADC_CR2_RSTCAL_Pos (3U) |
||
9 | mjames | 3312 | #define ADC_CR2_RSTCAL_Msk (0x1UL << ADC_CR2_RSTCAL_Pos) /*!< 0x00000008 */ |
2 | mjames | 3313 | #define ADC_CR2_RSTCAL ADC_CR2_RSTCAL_Msk /*!< ADC calibration reset */ |
3314 | #define ADC_CR2_DMA_Pos (8U) |
||
9 | mjames | 3315 | #define ADC_CR2_DMA_Msk (0x1UL << ADC_CR2_DMA_Pos) /*!< 0x00000100 */ |
2 | mjames | 3316 | #define ADC_CR2_DMA ADC_CR2_DMA_Msk /*!< ADC DMA transfer enable */ |
3317 | #define ADC_CR2_ALIGN_Pos (11U) |
||
9 | mjames | 3318 | #define ADC_CR2_ALIGN_Msk (0x1UL << ADC_CR2_ALIGN_Pos) /*!< 0x00000800 */ |
2 | mjames | 3319 | #define ADC_CR2_ALIGN ADC_CR2_ALIGN_Msk /*!< ADC data alignement */ |
3320 | |||
3321 | #define ADC_CR2_JEXTSEL_Pos (12U) |
||
9 | mjames | 3322 | #define ADC_CR2_JEXTSEL_Msk (0x7UL << ADC_CR2_JEXTSEL_Pos) /*!< 0x00007000 */ |
2 | mjames | 3323 | #define ADC_CR2_JEXTSEL ADC_CR2_JEXTSEL_Msk /*!< ADC group injected external trigger source */ |
9 | mjames | 3324 | #define ADC_CR2_JEXTSEL_0 (0x1UL << ADC_CR2_JEXTSEL_Pos) /*!< 0x00001000 */ |
3325 | #define ADC_CR2_JEXTSEL_1 (0x2UL << ADC_CR2_JEXTSEL_Pos) /*!< 0x00002000 */ |
||
3326 | #define ADC_CR2_JEXTSEL_2 (0x4UL << ADC_CR2_JEXTSEL_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 3327 | |
3328 | #define ADC_CR2_JEXTTRIG_Pos (15U) |
||
9 | mjames | 3329 | #define ADC_CR2_JEXTTRIG_Msk (0x1UL << ADC_CR2_JEXTTRIG_Pos) /*!< 0x00008000 */ |
2 | mjames | 3330 | #define ADC_CR2_JEXTTRIG ADC_CR2_JEXTTRIG_Msk /*!< ADC group injected external trigger enable */ |
3331 | |||
3332 | #define ADC_CR2_EXTSEL_Pos (17U) |
||
9 | mjames | 3333 | #define ADC_CR2_EXTSEL_Msk (0x7UL << ADC_CR2_EXTSEL_Pos) /*!< 0x000E0000 */ |
2 | mjames | 3334 | #define ADC_CR2_EXTSEL ADC_CR2_EXTSEL_Msk /*!< ADC group regular external trigger source */ |
9 | mjames | 3335 | #define ADC_CR2_EXTSEL_0 (0x1UL << ADC_CR2_EXTSEL_Pos) /*!< 0x00020000 */ |
3336 | #define ADC_CR2_EXTSEL_1 (0x2UL << ADC_CR2_EXTSEL_Pos) /*!< 0x00040000 */ |
||
3337 | #define ADC_CR2_EXTSEL_2 (0x4UL << ADC_CR2_EXTSEL_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 3338 | |
3339 | #define ADC_CR2_EXTTRIG_Pos (20U) |
||
9 | mjames | 3340 | #define ADC_CR2_EXTTRIG_Msk (0x1UL << ADC_CR2_EXTTRIG_Pos) /*!< 0x00100000 */ |
2 | mjames | 3341 | #define ADC_CR2_EXTTRIG ADC_CR2_EXTTRIG_Msk /*!< ADC group regular external trigger enable */ |
3342 | #define ADC_CR2_JSWSTART_Pos (21U) |
||
9 | mjames | 3343 | #define ADC_CR2_JSWSTART_Msk (0x1UL << ADC_CR2_JSWSTART_Pos) /*!< 0x00200000 */ |
2 | mjames | 3344 | #define ADC_CR2_JSWSTART ADC_CR2_JSWSTART_Msk /*!< ADC group injected conversion start */ |
3345 | #define ADC_CR2_SWSTART_Pos (22U) |
||
9 | mjames | 3346 | #define ADC_CR2_SWSTART_Msk (0x1UL << ADC_CR2_SWSTART_Pos) /*!< 0x00400000 */ |
2 | mjames | 3347 | #define ADC_CR2_SWSTART ADC_CR2_SWSTART_Msk /*!< ADC group regular conversion start */ |
3348 | #define ADC_CR2_TSVREFE_Pos (23U) |
||
9 | mjames | 3349 | #define ADC_CR2_TSVREFE_Msk (0x1UL << ADC_CR2_TSVREFE_Pos) /*!< 0x00800000 */ |
2 | mjames | 3350 | #define ADC_CR2_TSVREFE ADC_CR2_TSVREFE_Msk /*!< ADC internal path to VrefInt and temperature sensor enable */ |
3351 | |||
3352 | /****************** Bit definition for ADC_SMPR1 register *******************/ |
||
3353 | #define ADC_SMPR1_SMP10_Pos (0U) |
||
9 | mjames | 3354 | #define ADC_SMPR1_SMP10_Msk (0x7UL << ADC_SMPR1_SMP10_Pos) /*!< 0x00000007 */ |
2 | mjames | 3355 | #define ADC_SMPR1_SMP10 ADC_SMPR1_SMP10_Msk /*!< ADC channel 10 sampling time selection */ |
9 | mjames | 3356 | #define ADC_SMPR1_SMP10_0 (0x1UL << ADC_SMPR1_SMP10_Pos) /*!< 0x00000001 */ |
3357 | #define ADC_SMPR1_SMP10_1 (0x2UL << ADC_SMPR1_SMP10_Pos) /*!< 0x00000002 */ |
||
3358 | #define ADC_SMPR1_SMP10_2 (0x4UL << ADC_SMPR1_SMP10_Pos) /*!< 0x00000004 */ |
||
2 | mjames | 3359 | |
3360 | #define ADC_SMPR1_SMP11_Pos (3U) |
||
9 | mjames | 3361 | #define ADC_SMPR1_SMP11_Msk (0x7UL << ADC_SMPR1_SMP11_Pos) /*!< 0x00000038 */ |
2 | mjames | 3362 | #define ADC_SMPR1_SMP11 ADC_SMPR1_SMP11_Msk /*!< ADC channel 11 sampling time selection */ |
9 | mjames | 3363 | #define ADC_SMPR1_SMP11_0 (0x1UL << ADC_SMPR1_SMP11_Pos) /*!< 0x00000008 */ |
3364 | #define ADC_SMPR1_SMP11_1 (0x2UL << ADC_SMPR1_SMP11_Pos) /*!< 0x00000010 */ |
||
3365 | #define ADC_SMPR1_SMP11_2 (0x4UL << ADC_SMPR1_SMP11_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 3366 | |
3367 | #define ADC_SMPR1_SMP12_Pos (6U) |
||
9 | mjames | 3368 | #define ADC_SMPR1_SMP12_Msk (0x7UL << ADC_SMPR1_SMP12_Pos) /*!< 0x000001C0 */ |
2 | mjames | 3369 | #define ADC_SMPR1_SMP12 ADC_SMPR1_SMP12_Msk /*!< ADC channel 12 sampling time selection */ |
9 | mjames | 3370 | #define ADC_SMPR1_SMP12_0 (0x1UL << ADC_SMPR1_SMP12_Pos) /*!< 0x00000040 */ |
3371 | #define ADC_SMPR1_SMP12_1 (0x2UL << ADC_SMPR1_SMP12_Pos) /*!< 0x00000080 */ |
||
3372 | #define ADC_SMPR1_SMP12_2 (0x4UL << ADC_SMPR1_SMP12_Pos) /*!< 0x00000100 */ |
||
2 | mjames | 3373 | |
3374 | #define ADC_SMPR1_SMP13_Pos (9U) |
||
9 | mjames | 3375 | #define ADC_SMPR1_SMP13_Msk (0x7UL << ADC_SMPR1_SMP13_Pos) /*!< 0x00000E00 */ |
2 | mjames | 3376 | #define ADC_SMPR1_SMP13 ADC_SMPR1_SMP13_Msk /*!< ADC channel 13 sampling time selection */ |
9 | mjames | 3377 | #define ADC_SMPR1_SMP13_0 (0x1UL << ADC_SMPR1_SMP13_Pos) /*!< 0x00000200 */ |
3378 | #define ADC_SMPR1_SMP13_1 (0x2UL << ADC_SMPR1_SMP13_Pos) /*!< 0x00000400 */ |
||
3379 | #define ADC_SMPR1_SMP13_2 (0x4UL << ADC_SMPR1_SMP13_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 3380 | |
3381 | #define ADC_SMPR1_SMP14_Pos (12U) |
||
9 | mjames | 3382 | #define ADC_SMPR1_SMP14_Msk (0x7UL << ADC_SMPR1_SMP14_Pos) /*!< 0x00007000 */ |
2 | mjames | 3383 | #define ADC_SMPR1_SMP14 ADC_SMPR1_SMP14_Msk /*!< ADC channel 14 sampling time selection */ |
9 | mjames | 3384 | #define ADC_SMPR1_SMP14_0 (0x1UL << ADC_SMPR1_SMP14_Pos) /*!< 0x00001000 */ |
3385 | #define ADC_SMPR1_SMP14_1 (0x2UL << ADC_SMPR1_SMP14_Pos) /*!< 0x00002000 */ |
||
3386 | #define ADC_SMPR1_SMP14_2 (0x4UL << ADC_SMPR1_SMP14_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 3387 | |
3388 | #define ADC_SMPR1_SMP15_Pos (15U) |
||
9 | mjames | 3389 | #define ADC_SMPR1_SMP15_Msk (0x7UL << ADC_SMPR1_SMP15_Pos) /*!< 0x00038000 */ |
2 | mjames | 3390 | #define ADC_SMPR1_SMP15 ADC_SMPR1_SMP15_Msk /*!< ADC channel 15 sampling time selection */ |
9 | mjames | 3391 | #define ADC_SMPR1_SMP15_0 (0x1UL << ADC_SMPR1_SMP15_Pos) /*!< 0x00008000 */ |
3392 | #define ADC_SMPR1_SMP15_1 (0x2UL << ADC_SMPR1_SMP15_Pos) /*!< 0x00010000 */ |
||
3393 | #define ADC_SMPR1_SMP15_2 (0x4UL << ADC_SMPR1_SMP15_Pos) /*!< 0x00020000 */ |
||
2 | mjames | 3394 | |
3395 | #define ADC_SMPR1_SMP16_Pos (18U) |
||
9 | mjames | 3396 | #define ADC_SMPR1_SMP16_Msk (0x7UL << ADC_SMPR1_SMP16_Pos) /*!< 0x001C0000 */ |
2 | mjames | 3397 | #define ADC_SMPR1_SMP16 ADC_SMPR1_SMP16_Msk /*!< ADC channel 16 sampling time selection */ |
9 | mjames | 3398 | #define ADC_SMPR1_SMP16_0 (0x1UL << ADC_SMPR1_SMP16_Pos) /*!< 0x00040000 */ |
3399 | #define ADC_SMPR1_SMP16_1 (0x2UL << ADC_SMPR1_SMP16_Pos) /*!< 0x00080000 */ |
||
3400 | #define ADC_SMPR1_SMP16_2 (0x4UL << ADC_SMPR1_SMP16_Pos) /*!< 0x00100000 */ |
||
2 | mjames | 3401 | |
3402 | #define ADC_SMPR1_SMP17_Pos (21U) |
||
9 | mjames | 3403 | #define ADC_SMPR1_SMP17_Msk (0x7UL << ADC_SMPR1_SMP17_Pos) /*!< 0x00E00000 */ |
2 | mjames | 3404 | #define ADC_SMPR1_SMP17 ADC_SMPR1_SMP17_Msk /*!< ADC channel 17 sampling time selection */ |
9 | mjames | 3405 | #define ADC_SMPR1_SMP17_0 (0x1UL << ADC_SMPR1_SMP17_Pos) /*!< 0x00200000 */ |
3406 | #define ADC_SMPR1_SMP17_1 (0x2UL << ADC_SMPR1_SMP17_Pos) /*!< 0x00400000 */ |
||
3407 | #define ADC_SMPR1_SMP17_2 (0x4UL << ADC_SMPR1_SMP17_Pos) /*!< 0x00800000 */ |
||
2 | mjames | 3408 | |
3409 | /****************** Bit definition for ADC_SMPR2 register *******************/ |
||
3410 | #define ADC_SMPR2_SMP0_Pos (0U) |
||
9 | mjames | 3411 | #define ADC_SMPR2_SMP0_Msk (0x7UL << ADC_SMPR2_SMP0_Pos) /*!< 0x00000007 */ |
2 | mjames | 3412 | #define ADC_SMPR2_SMP0 ADC_SMPR2_SMP0_Msk /*!< ADC channel 0 sampling time selection */ |
9 | mjames | 3413 | #define ADC_SMPR2_SMP0_0 (0x1UL << ADC_SMPR2_SMP0_Pos) /*!< 0x00000001 */ |
3414 | #define ADC_SMPR2_SMP0_1 (0x2UL << ADC_SMPR2_SMP0_Pos) /*!< 0x00000002 */ |
||
3415 | #define ADC_SMPR2_SMP0_2 (0x4UL << ADC_SMPR2_SMP0_Pos) /*!< 0x00000004 */ |
||
2 | mjames | 3416 | |
3417 | #define ADC_SMPR2_SMP1_Pos (3U) |
||
9 | mjames | 3418 | #define ADC_SMPR2_SMP1_Msk (0x7UL << ADC_SMPR2_SMP1_Pos) /*!< 0x00000038 */ |
2 | mjames | 3419 | #define ADC_SMPR2_SMP1 ADC_SMPR2_SMP1_Msk /*!< ADC channel 1 sampling time selection */ |
9 | mjames | 3420 | #define ADC_SMPR2_SMP1_0 (0x1UL << ADC_SMPR2_SMP1_Pos) /*!< 0x00000008 */ |
3421 | #define ADC_SMPR2_SMP1_1 (0x2UL << ADC_SMPR2_SMP1_Pos) /*!< 0x00000010 */ |
||
3422 | #define ADC_SMPR2_SMP1_2 (0x4UL << ADC_SMPR2_SMP1_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 3423 | |
3424 | #define ADC_SMPR2_SMP2_Pos (6U) |
||
9 | mjames | 3425 | #define ADC_SMPR2_SMP2_Msk (0x7UL << ADC_SMPR2_SMP2_Pos) /*!< 0x000001C0 */ |
2 | mjames | 3426 | #define ADC_SMPR2_SMP2 ADC_SMPR2_SMP2_Msk /*!< ADC channel 2 sampling time selection */ |
9 | mjames | 3427 | #define ADC_SMPR2_SMP2_0 (0x1UL << ADC_SMPR2_SMP2_Pos) /*!< 0x00000040 */ |
3428 | #define ADC_SMPR2_SMP2_1 (0x2UL << ADC_SMPR2_SMP2_Pos) /*!< 0x00000080 */ |
||
3429 | #define ADC_SMPR2_SMP2_2 (0x4UL << ADC_SMPR2_SMP2_Pos) /*!< 0x00000100 */ |
||
2 | mjames | 3430 | |
3431 | #define ADC_SMPR2_SMP3_Pos (9U) |
||
9 | mjames | 3432 | #define ADC_SMPR2_SMP3_Msk (0x7UL << ADC_SMPR2_SMP3_Pos) /*!< 0x00000E00 */ |
2 | mjames | 3433 | #define ADC_SMPR2_SMP3 ADC_SMPR2_SMP3_Msk /*!< ADC channel 3 sampling time selection */ |
9 | mjames | 3434 | #define ADC_SMPR2_SMP3_0 (0x1UL << ADC_SMPR2_SMP3_Pos) /*!< 0x00000200 */ |
3435 | #define ADC_SMPR2_SMP3_1 (0x2UL << ADC_SMPR2_SMP3_Pos) /*!< 0x00000400 */ |
||
3436 | #define ADC_SMPR2_SMP3_2 (0x4UL << ADC_SMPR2_SMP3_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 3437 | |
3438 | #define ADC_SMPR2_SMP4_Pos (12U) |
||
9 | mjames | 3439 | #define ADC_SMPR2_SMP4_Msk (0x7UL << ADC_SMPR2_SMP4_Pos) /*!< 0x00007000 */ |
2 | mjames | 3440 | #define ADC_SMPR2_SMP4 ADC_SMPR2_SMP4_Msk /*!< ADC channel 4 sampling time selection */ |
9 | mjames | 3441 | #define ADC_SMPR2_SMP4_0 (0x1UL << ADC_SMPR2_SMP4_Pos) /*!< 0x00001000 */ |
3442 | #define ADC_SMPR2_SMP4_1 (0x2UL << ADC_SMPR2_SMP4_Pos) /*!< 0x00002000 */ |
||
3443 | #define ADC_SMPR2_SMP4_2 (0x4UL << ADC_SMPR2_SMP4_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 3444 | |
3445 | #define ADC_SMPR2_SMP5_Pos (15U) |
||
9 | mjames | 3446 | #define ADC_SMPR2_SMP5_Msk (0x7UL << ADC_SMPR2_SMP5_Pos) /*!< 0x00038000 */ |
2 | mjames | 3447 | #define ADC_SMPR2_SMP5 ADC_SMPR2_SMP5_Msk /*!< ADC channel 5 sampling time selection */ |
9 | mjames | 3448 | #define ADC_SMPR2_SMP5_0 (0x1UL << ADC_SMPR2_SMP5_Pos) /*!< 0x00008000 */ |
3449 | #define ADC_SMPR2_SMP5_1 (0x2UL << ADC_SMPR2_SMP5_Pos) /*!< 0x00010000 */ |
||
3450 | #define ADC_SMPR2_SMP5_2 (0x4UL << ADC_SMPR2_SMP5_Pos) /*!< 0x00020000 */ |
||
2 | mjames | 3451 | |
3452 | #define ADC_SMPR2_SMP6_Pos (18U) |
||
9 | mjames | 3453 | #define ADC_SMPR2_SMP6_Msk (0x7UL << ADC_SMPR2_SMP6_Pos) /*!< 0x001C0000 */ |
2 | mjames | 3454 | #define ADC_SMPR2_SMP6 ADC_SMPR2_SMP6_Msk /*!< ADC channel 6 sampling time selection */ |
9 | mjames | 3455 | #define ADC_SMPR2_SMP6_0 (0x1UL << ADC_SMPR2_SMP6_Pos) /*!< 0x00040000 */ |
3456 | #define ADC_SMPR2_SMP6_1 (0x2UL << ADC_SMPR2_SMP6_Pos) /*!< 0x00080000 */ |
||
3457 | #define ADC_SMPR2_SMP6_2 (0x4UL << ADC_SMPR2_SMP6_Pos) /*!< 0x00100000 */ |
||
2 | mjames | 3458 | |
3459 | #define ADC_SMPR2_SMP7_Pos (21U) |
||
9 | mjames | 3460 | #define ADC_SMPR2_SMP7_Msk (0x7UL << ADC_SMPR2_SMP7_Pos) /*!< 0x00E00000 */ |
2 | mjames | 3461 | #define ADC_SMPR2_SMP7 ADC_SMPR2_SMP7_Msk /*!< ADC channel 7 sampling time selection */ |
9 | mjames | 3462 | #define ADC_SMPR2_SMP7_0 (0x1UL << ADC_SMPR2_SMP7_Pos) /*!< 0x00200000 */ |
3463 | #define ADC_SMPR2_SMP7_1 (0x2UL << ADC_SMPR2_SMP7_Pos) /*!< 0x00400000 */ |
||
3464 | #define ADC_SMPR2_SMP7_2 (0x4UL << ADC_SMPR2_SMP7_Pos) /*!< 0x00800000 */ |
||
2 | mjames | 3465 | |
3466 | #define ADC_SMPR2_SMP8_Pos (24U) |
||
9 | mjames | 3467 | #define ADC_SMPR2_SMP8_Msk (0x7UL << ADC_SMPR2_SMP8_Pos) /*!< 0x07000000 */ |
2 | mjames | 3468 | #define ADC_SMPR2_SMP8 ADC_SMPR2_SMP8_Msk /*!< ADC channel 8 sampling time selection */ |
9 | mjames | 3469 | #define ADC_SMPR2_SMP8_0 (0x1UL << ADC_SMPR2_SMP8_Pos) /*!< 0x01000000 */ |
3470 | #define ADC_SMPR2_SMP8_1 (0x2UL << ADC_SMPR2_SMP8_Pos) /*!< 0x02000000 */ |
||
3471 | #define ADC_SMPR2_SMP8_2 (0x4UL << ADC_SMPR2_SMP8_Pos) /*!< 0x04000000 */ |
||
2 | mjames | 3472 | |
3473 | #define ADC_SMPR2_SMP9_Pos (27U) |
||
9 | mjames | 3474 | #define ADC_SMPR2_SMP9_Msk (0x7UL << ADC_SMPR2_SMP9_Pos) /*!< 0x38000000 */ |
2 | mjames | 3475 | #define ADC_SMPR2_SMP9 ADC_SMPR2_SMP9_Msk /*!< ADC channel 9 sampling time selection */ |
9 | mjames | 3476 | #define ADC_SMPR2_SMP9_0 (0x1UL << ADC_SMPR2_SMP9_Pos) /*!< 0x08000000 */ |
3477 | #define ADC_SMPR2_SMP9_1 (0x2UL << ADC_SMPR2_SMP9_Pos) /*!< 0x10000000 */ |
||
3478 | #define ADC_SMPR2_SMP9_2 (0x4UL << ADC_SMPR2_SMP9_Pos) /*!< 0x20000000 */ |
||
2 | mjames | 3479 | |
3480 | /****************** Bit definition for ADC_JOFR1 register *******************/ |
||
3481 | #define ADC_JOFR1_JOFFSET1_Pos (0U) |
||
9 | mjames | 3482 | #define ADC_JOFR1_JOFFSET1_Msk (0xFFFUL << ADC_JOFR1_JOFFSET1_Pos) /*!< 0x00000FFF */ |
2 | mjames | 3483 | #define ADC_JOFR1_JOFFSET1 ADC_JOFR1_JOFFSET1_Msk /*!< ADC group injected sequencer rank 1 offset value */ |
3484 | |||
3485 | /****************** Bit definition for ADC_JOFR2 register *******************/ |
||
3486 | #define ADC_JOFR2_JOFFSET2_Pos (0U) |
||
9 | mjames | 3487 | #define ADC_JOFR2_JOFFSET2_Msk (0xFFFUL << ADC_JOFR2_JOFFSET2_Pos) /*!< 0x00000FFF */ |
2 | mjames | 3488 | #define ADC_JOFR2_JOFFSET2 ADC_JOFR2_JOFFSET2_Msk /*!< ADC group injected sequencer rank 2 offset value */ |
3489 | |||
3490 | /****************** Bit definition for ADC_JOFR3 register *******************/ |
||
3491 | #define ADC_JOFR3_JOFFSET3_Pos (0U) |
||
9 | mjames | 3492 | #define ADC_JOFR3_JOFFSET3_Msk (0xFFFUL << ADC_JOFR3_JOFFSET3_Pos) /*!< 0x00000FFF */ |
2 | mjames | 3493 | #define ADC_JOFR3_JOFFSET3 ADC_JOFR3_JOFFSET3_Msk /*!< ADC group injected sequencer rank 3 offset value */ |
3494 | |||
3495 | /****************** Bit definition for ADC_JOFR4 register *******************/ |
||
3496 | #define ADC_JOFR4_JOFFSET4_Pos (0U) |
||
9 | mjames | 3497 | #define ADC_JOFR4_JOFFSET4_Msk (0xFFFUL << ADC_JOFR4_JOFFSET4_Pos) /*!< 0x00000FFF */ |
2 | mjames | 3498 | #define ADC_JOFR4_JOFFSET4 ADC_JOFR4_JOFFSET4_Msk /*!< ADC group injected sequencer rank 4 offset value */ |
3499 | |||
3500 | /******************* Bit definition for ADC_HTR register ********************/ |
||
3501 | #define ADC_HTR_HT_Pos (0U) |
||
9 | mjames | 3502 | #define ADC_HTR_HT_Msk (0xFFFUL << ADC_HTR_HT_Pos) /*!< 0x00000FFF */ |
2 | mjames | 3503 | #define ADC_HTR_HT ADC_HTR_HT_Msk /*!< ADC analog watchdog 1 threshold high */ |
3504 | |||
3505 | /******************* Bit definition for ADC_LTR register ********************/ |
||
3506 | #define ADC_LTR_LT_Pos (0U) |
||
9 | mjames | 3507 | #define ADC_LTR_LT_Msk (0xFFFUL << ADC_LTR_LT_Pos) /*!< 0x00000FFF */ |
2 | mjames | 3508 | #define ADC_LTR_LT ADC_LTR_LT_Msk /*!< ADC analog watchdog 1 threshold low */ |
3509 | |||
3510 | /******************* Bit definition for ADC_SQR1 register *******************/ |
||
3511 | #define ADC_SQR1_SQ13_Pos (0U) |
||
9 | mjames | 3512 | #define ADC_SQR1_SQ13_Msk (0x1FUL << ADC_SQR1_SQ13_Pos) /*!< 0x0000001F */ |
2 | mjames | 3513 | #define ADC_SQR1_SQ13 ADC_SQR1_SQ13_Msk /*!< ADC group regular sequencer rank 13 */ |
9 | mjames | 3514 | #define ADC_SQR1_SQ13_0 (0x01UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000001 */ |
3515 | #define ADC_SQR1_SQ13_1 (0x02UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000002 */ |
||
3516 | #define ADC_SQR1_SQ13_2 (0x04UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000004 */ |
||
3517 | #define ADC_SQR1_SQ13_3 (0x08UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000008 */ |
||
3518 | #define ADC_SQR1_SQ13_4 (0x10UL << ADC_SQR1_SQ13_Pos) /*!< 0x00000010 */ |
||
2 | mjames | 3519 | |
3520 | #define ADC_SQR1_SQ14_Pos (5U) |
||
9 | mjames | 3521 | #define ADC_SQR1_SQ14_Msk (0x1FUL << ADC_SQR1_SQ14_Pos) /*!< 0x000003E0 */ |
2 | mjames | 3522 | #define ADC_SQR1_SQ14 ADC_SQR1_SQ14_Msk /*!< ADC group regular sequencer rank 14 */ |
9 | mjames | 3523 | #define ADC_SQR1_SQ14_0 (0x01UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000020 */ |
3524 | #define ADC_SQR1_SQ14_1 (0x02UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000040 */ |
||
3525 | #define ADC_SQR1_SQ14_2 (0x04UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000080 */ |
||
3526 | #define ADC_SQR1_SQ14_3 (0x08UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000100 */ |
||
3527 | #define ADC_SQR1_SQ14_4 (0x10UL << ADC_SQR1_SQ14_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 3528 | |
3529 | #define ADC_SQR1_SQ15_Pos (10U) |
||
9 | mjames | 3530 | #define ADC_SQR1_SQ15_Msk (0x1FUL << ADC_SQR1_SQ15_Pos) /*!< 0x00007C00 */ |
2 | mjames | 3531 | #define ADC_SQR1_SQ15 ADC_SQR1_SQ15_Msk /*!< ADC group regular sequencer rank 15 */ |
9 | mjames | 3532 | #define ADC_SQR1_SQ15_0 (0x01UL << ADC_SQR1_SQ15_Pos) /*!< 0x00000400 */ |
3533 | #define ADC_SQR1_SQ15_1 (0x02UL << ADC_SQR1_SQ15_Pos) /*!< 0x00000800 */ |
||
3534 | #define ADC_SQR1_SQ15_2 (0x04UL << ADC_SQR1_SQ15_Pos) /*!< 0x00001000 */ |
||
3535 | #define ADC_SQR1_SQ15_3 (0x08UL << ADC_SQR1_SQ15_Pos) /*!< 0x00002000 */ |
||
3536 | #define ADC_SQR1_SQ15_4 (0x10UL << ADC_SQR1_SQ15_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 3537 | |
3538 | #define ADC_SQR1_SQ16_Pos (15U) |
||
9 | mjames | 3539 | #define ADC_SQR1_SQ16_Msk (0x1FUL << ADC_SQR1_SQ16_Pos) /*!< 0x000F8000 */ |
2 | mjames | 3540 | #define ADC_SQR1_SQ16 ADC_SQR1_SQ16_Msk /*!< ADC group regular sequencer rank 16 */ |
9 | mjames | 3541 | #define ADC_SQR1_SQ16_0 (0x01UL << ADC_SQR1_SQ16_Pos) /*!< 0x00008000 */ |
3542 | #define ADC_SQR1_SQ16_1 (0x02UL << ADC_SQR1_SQ16_Pos) /*!< 0x00010000 */ |
||
3543 | #define ADC_SQR1_SQ16_2 (0x04UL << ADC_SQR1_SQ16_Pos) /*!< 0x00020000 */ |
||
3544 | #define ADC_SQR1_SQ16_3 (0x08UL << ADC_SQR1_SQ16_Pos) /*!< 0x00040000 */ |
||
3545 | #define ADC_SQR1_SQ16_4 (0x10UL << ADC_SQR1_SQ16_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 3546 | |
3547 | #define ADC_SQR1_L_Pos (20U) |
||
9 | mjames | 3548 | #define ADC_SQR1_L_Msk (0xFUL << ADC_SQR1_L_Pos) /*!< 0x00F00000 */ |
2 | mjames | 3549 | #define ADC_SQR1_L ADC_SQR1_L_Msk /*!< ADC group regular sequencer scan length */ |
9 | mjames | 3550 | #define ADC_SQR1_L_0 (0x1UL << ADC_SQR1_L_Pos) /*!< 0x00100000 */ |
3551 | #define ADC_SQR1_L_1 (0x2UL << ADC_SQR1_L_Pos) /*!< 0x00200000 */ |
||
3552 | #define ADC_SQR1_L_2 (0x4UL << ADC_SQR1_L_Pos) /*!< 0x00400000 */ |
||
3553 | #define ADC_SQR1_L_3 (0x8UL << ADC_SQR1_L_Pos) /*!< 0x00800000 */ |
||
2 | mjames | 3554 | |
3555 | /******************* Bit definition for ADC_SQR2 register *******************/ |
||
3556 | #define ADC_SQR2_SQ7_Pos (0U) |
||
9 | mjames | 3557 | #define ADC_SQR2_SQ7_Msk (0x1FUL << ADC_SQR2_SQ7_Pos) /*!< 0x0000001F */ |
2 | mjames | 3558 | #define ADC_SQR2_SQ7 ADC_SQR2_SQ7_Msk /*!< ADC group regular sequencer rank 7 */ |
9 | mjames | 3559 | #define ADC_SQR2_SQ7_0 (0x01UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000001 */ |
3560 | #define ADC_SQR2_SQ7_1 (0x02UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000002 */ |
||
3561 | #define ADC_SQR2_SQ7_2 (0x04UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000004 */ |
||
3562 | #define ADC_SQR2_SQ7_3 (0x08UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000008 */ |
||
3563 | #define ADC_SQR2_SQ7_4 (0x10UL << ADC_SQR2_SQ7_Pos) /*!< 0x00000010 */ |
||
2 | mjames | 3564 | |
3565 | #define ADC_SQR2_SQ8_Pos (5U) |
||
9 | mjames | 3566 | #define ADC_SQR2_SQ8_Msk (0x1FUL << ADC_SQR2_SQ8_Pos) /*!< 0x000003E0 */ |
2 | mjames | 3567 | #define ADC_SQR2_SQ8 ADC_SQR2_SQ8_Msk /*!< ADC group regular sequencer rank 8 */ |
9 | mjames | 3568 | #define ADC_SQR2_SQ8_0 (0x01UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000020 */ |
3569 | #define ADC_SQR2_SQ8_1 (0x02UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000040 */ |
||
3570 | #define ADC_SQR2_SQ8_2 (0x04UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000080 */ |
||
3571 | #define ADC_SQR2_SQ8_3 (0x08UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000100 */ |
||
3572 | #define ADC_SQR2_SQ8_4 (0x10UL << ADC_SQR2_SQ8_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 3573 | |
3574 | #define ADC_SQR2_SQ9_Pos (10U) |
||
9 | mjames | 3575 | #define ADC_SQR2_SQ9_Msk (0x1FUL << ADC_SQR2_SQ9_Pos) /*!< 0x00007C00 */ |
2 | mjames | 3576 | #define ADC_SQR2_SQ9 ADC_SQR2_SQ9_Msk /*!< ADC group regular sequencer rank 9 */ |
9 | mjames | 3577 | #define ADC_SQR2_SQ9_0 (0x01UL << ADC_SQR2_SQ9_Pos) /*!< 0x00000400 */ |
3578 | #define ADC_SQR2_SQ9_1 (0x02UL << ADC_SQR2_SQ9_Pos) /*!< 0x00000800 */ |
||
3579 | #define ADC_SQR2_SQ9_2 (0x04UL << ADC_SQR2_SQ9_Pos) /*!< 0x00001000 */ |
||
3580 | #define ADC_SQR2_SQ9_3 (0x08UL << ADC_SQR2_SQ9_Pos) /*!< 0x00002000 */ |
||
3581 | #define ADC_SQR2_SQ9_4 (0x10UL << ADC_SQR2_SQ9_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 3582 | |
3583 | #define ADC_SQR2_SQ10_Pos (15U) |
||
9 | mjames | 3584 | #define ADC_SQR2_SQ10_Msk (0x1FUL << ADC_SQR2_SQ10_Pos) /*!< 0x000F8000 */ |
2 | mjames | 3585 | #define ADC_SQR2_SQ10 ADC_SQR2_SQ10_Msk /*!< ADC group regular sequencer rank 10 */ |
9 | mjames | 3586 | #define ADC_SQR2_SQ10_0 (0x01UL << ADC_SQR2_SQ10_Pos) /*!< 0x00008000 */ |
3587 | #define ADC_SQR2_SQ10_1 (0x02UL << ADC_SQR2_SQ10_Pos) /*!< 0x00010000 */ |
||
3588 | #define ADC_SQR2_SQ10_2 (0x04UL << ADC_SQR2_SQ10_Pos) /*!< 0x00020000 */ |
||
3589 | #define ADC_SQR2_SQ10_3 (0x08UL << ADC_SQR2_SQ10_Pos) /*!< 0x00040000 */ |
||
3590 | #define ADC_SQR2_SQ10_4 (0x10UL << ADC_SQR2_SQ10_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 3591 | |
3592 | #define ADC_SQR2_SQ11_Pos (20U) |
||
9 | mjames | 3593 | #define ADC_SQR2_SQ11_Msk (0x1FUL << ADC_SQR2_SQ11_Pos) /*!< 0x01F00000 */ |
2 | mjames | 3594 | #define ADC_SQR2_SQ11 ADC_SQR2_SQ11_Msk /*!< ADC group regular sequencer rank 1 */ |
9 | mjames | 3595 | #define ADC_SQR2_SQ11_0 (0x01UL << ADC_SQR2_SQ11_Pos) /*!< 0x00100000 */ |
3596 | #define ADC_SQR2_SQ11_1 (0x02UL << ADC_SQR2_SQ11_Pos) /*!< 0x00200000 */ |
||
3597 | #define ADC_SQR2_SQ11_2 (0x04UL << ADC_SQR2_SQ11_Pos) /*!< 0x00400000 */ |
||
3598 | #define ADC_SQR2_SQ11_3 (0x08UL << ADC_SQR2_SQ11_Pos) /*!< 0x00800000 */ |
||
3599 | #define ADC_SQR2_SQ11_4 (0x10UL << ADC_SQR2_SQ11_Pos) /*!< 0x01000000 */ |
||
2 | mjames | 3600 | |
3601 | #define ADC_SQR2_SQ12_Pos (25U) |
||
9 | mjames | 3602 | #define ADC_SQR2_SQ12_Msk (0x1FUL << ADC_SQR2_SQ12_Pos) /*!< 0x3E000000 */ |
2 | mjames | 3603 | #define ADC_SQR2_SQ12 ADC_SQR2_SQ12_Msk /*!< ADC group regular sequencer rank 12 */ |
9 | mjames | 3604 | #define ADC_SQR2_SQ12_0 (0x01UL << ADC_SQR2_SQ12_Pos) /*!< 0x02000000 */ |
3605 | #define ADC_SQR2_SQ12_1 (0x02UL << ADC_SQR2_SQ12_Pos) /*!< 0x04000000 */ |
||
3606 | #define ADC_SQR2_SQ12_2 (0x04UL << ADC_SQR2_SQ12_Pos) /*!< 0x08000000 */ |
||
3607 | #define ADC_SQR2_SQ12_3 (0x08UL << ADC_SQR2_SQ12_Pos) /*!< 0x10000000 */ |
||
3608 | #define ADC_SQR2_SQ12_4 (0x10UL << ADC_SQR2_SQ12_Pos) /*!< 0x20000000 */ |
||
2 | mjames | 3609 | |
3610 | /******************* Bit definition for ADC_SQR3 register *******************/ |
||
3611 | #define ADC_SQR3_SQ1_Pos (0U) |
||
9 | mjames | 3612 | #define ADC_SQR3_SQ1_Msk (0x1FUL << ADC_SQR3_SQ1_Pos) /*!< 0x0000001F */ |
2 | mjames | 3613 | #define ADC_SQR3_SQ1 ADC_SQR3_SQ1_Msk /*!< ADC group regular sequencer rank 1 */ |
9 | mjames | 3614 | #define ADC_SQR3_SQ1_0 (0x01UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000001 */ |
3615 | #define ADC_SQR3_SQ1_1 (0x02UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000002 */ |
||
3616 | #define ADC_SQR3_SQ1_2 (0x04UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000004 */ |
||
3617 | #define ADC_SQR3_SQ1_3 (0x08UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000008 */ |
||
3618 | #define ADC_SQR3_SQ1_4 (0x10UL << ADC_SQR3_SQ1_Pos) /*!< 0x00000010 */ |
||
2 | mjames | 3619 | |
3620 | #define ADC_SQR3_SQ2_Pos (5U) |
||
9 | mjames | 3621 | #define ADC_SQR3_SQ2_Msk (0x1FUL << ADC_SQR3_SQ2_Pos) /*!< 0x000003E0 */ |
2 | mjames | 3622 | #define ADC_SQR3_SQ2 ADC_SQR3_SQ2_Msk /*!< ADC group regular sequencer rank 2 */ |
9 | mjames | 3623 | #define ADC_SQR3_SQ2_0 (0x01UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000020 */ |
3624 | #define ADC_SQR3_SQ2_1 (0x02UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000040 */ |
||
3625 | #define ADC_SQR3_SQ2_2 (0x04UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000080 */ |
||
3626 | #define ADC_SQR3_SQ2_3 (0x08UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000100 */ |
||
3627 | #define ADC_SQR3_SQ2_4 (0x10UL << ADC_SQR3_SQ2_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 3628 | |
3629 | #define ADC_SQR3_SQ3_Pos (10U) |
||
9 | mjames | 3630 | #define ADC_SQR3_SQ3_Msk (0x1FUL << ADC_SQR3_SQ3_Pos) /*!< 0x00007C00 */ |
2 | mjames | 3631 | #define ADC_SQR3_SQ3 ADC_SQR3_SQ3_Msk /*!< ADC group regular sequencer rank 3 */ |
9 | mjames | 3632 | #define ADC_SQR3_SQ3_0 (0x01UL << ADC_SQR3_SQ3_Pos) /*!< 0x00000400 */ |
3633 | #define ADC_SQR3_SQ3_1 (0x02UL << ADC_SQR3_SQ3_Pos) /*!< 0x00000800 */ |
||
3634 | #define ADC_SQR3_SQ3_2 (0x04UL << ADC_SQR3_SQ3_Pos) /*!< 0x00001000 */ |
||
3635 | #define ADC_SQR3_SQ3_3 (0x08UL << ADC_SQR3_SQ3_Pos) /*!< 0x00002000 */ |
||
3636 | #define ADC_SQR3_SQ3_4 (0x10UL << ADC_SQR3_SQ3_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 3637 | |
3638 | #define ADC_SQR3_SQ4_Pos (15U) |
||
9 | mjames | 3639 | #define ADC_SQR3_SQ4_Msk (0x1FUL << ADC_SQR3_SQ4_Pos) /*!< 0x000F8000 */ |
2 | mjames | 3640 | #define ADC_SQR3_SQ4 ADC_SQR3_SQ4_Msk /*!< ADC group regular sequencer rank 4 */ |
9 | mjames | 3641 | #define ADC_SQR3_SQ4_0 (0x01UL << ADC_SQR3_SQ4_Pos) /*!< 0x00008000 */ |
3642 | #define ADC_SQR3_SQ4_1 (0x02UL << ADC_SQR3_SQ4_Pos) /*!< 0x00010000 */ |
||
3643 | #define ADC_SQR3_SQ4_2 (0x04UL << ADC_SQR3_SQ4_Pos) /*!< 0x00020000 */ |
||
3644 | #define ADC_SQR3_SQ4_3 (0x08UL << ADC_SQR3_SQ4_Pos) /*!< 0x00040000 */ |
||
3645 | #define ADC_SQR3_SQ4_4 (0x10UL << ADC_SQR3_SQ4_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 3646 | |
3647 | #define ADC_SQR3_SQ5_Pos (20U) |
||
9 | mjames | 3648 | #define ADC_SQR3_SQ5_Msk (0x1FUL << ADC_SQR3_SQ5_Pos) /*!< 0x01F00000 */ |
2 | mjames | 3649 | #define ADC_SQR3_SQ5 ADC_SQR3_SQ5_Msk /*!< ADC group regular sequencer rank 5 */ |
9 | mjames | 3650 | #define ADC_SQR3_SQ5_0 (0x01UL << ADC_SQR3_SQ5_Pos) /*!< 0x00100000 */ |
3651 | #define ADC_SQR3_SQ5_1 (0x02UL << ADC_SQR3_SQ5_Pos) /*!< 0x00200000 */ |
||
3652 | #define ADC_SQR3_SQ5_2 (0x04UL << ADC_SQR3_SQ5_Pos) /*!< 0x00400000 */ |
||
3653 | #define ADC_SQR3_SQ5_3 (0x08UL << ADC_SQR3_SQ5_Pos) /*!< 0x00800000 */ |
||
3654 | #define ADC_SQR3_SQ5_4 (0x10UL << ADC_SQR3_SQ5_Pos) /*!< 0x01000000 */ |
||
2 | mjames | 3655 | |
3656 | #define ADC_SQR3_SQ6_Pos (25U) |
||
9 | mjames | 3657 | #define ADC_SQR3_SQ6_Msk (0x1FUL << ADC_SQR3_SQ6_Pos) /*!< 0x3E000000 */ |
2 | mjames | 3658 | #define ADC_SQR3_SQ6 ADC_SQR3_SQ6_Msk /*!< ADC group regular sequencer rank 6 */ |
9 | mjames | 3659 | #define ADC_SQR3_SQ6_0 (0x01UL << ADC_SQR3_SQ6_Pos) /*!< 0x02000000 */ |
3660 | #define ADC_SQR3_SQ6_1 (0x02UL << ADC_SQR3_SQ6_Pos) /*!< 0x04000000 */ |
||
3661 | #define ADC_SQR3_SQ6_2 (0x04UL << ADC_SQR3_SQ6_Pos) /*!< 0x08000000 */ |
||
3662 | #define ADC_SQR3_SQ6_3 (0x08UL << ADC_SQR3_SQ6_Pos) /*!< 0x10000000 */ |
||
3663 | #define ADC_SQR3_SQ6_4 (0x10UL << ADC_SQR3_SQ6_Pos) /*!< 0x20000000 */ |
||
2 | mjames | 3664 | |
3665 | /******************* Bit definition for ADC_JSQR register *******************/ |
||
3666 | #define ADC_JSQR_JSQ1_Pos (0U) |
||
9 | mjames | 3667 | #define ADC_JSQR_JSQ1_Msk (0x1FUL << ADC_JSQR_JSQ1_Pos) /*!< 0x0000001F */ |
2 | mjames | 3668 | #define ADC_JSQR_JSQ1 ADC_JSQR_JSQ1_Msk /*!< ADC group injected sequencer rank 1 */ |
9 | mjames | 3669 | #define ADC_JSQR_JSQ1_0 (0x01UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000001 */ |
3670 | #define ADC_JSQR_JSQ1_1 (0x02UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000002 */ |
||
3671 | #define ADC_JSQR_JSQ1_2 (0x04UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000004 */ |
||
3672 | #define ADC_JSQR_JSQ1_3 (0x08UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000008 */ |
||
3673 | #define ADC_JSQR_JSQ1_4 (0x10UL << ADC_JSQR_JSQ1_Pos) /*!< 0x00000010 */ |
||
2 | mjames | 3674 | |
3675 | #define ADC_JSQR_JSQ2_Pos (5U) |
||
9 | mjames | 3676 | #define ADC_JSQR_JSQ2_Msk (0x1FUL << ADC_JSQR_JSQ2_Pos) /*!< 0x000003E0 */ |
2 | mjames | 3677 | #define ADC_JSQR_JSQ2 ADC_JSQR_JSQ2_Msk /*!< ADC group injected sequencer rank 2 */ |
9 | mjames | 3678 | #define ADC_JSQR_JSQ2_0 (0x01UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000020 */ |
3679 | #define ADC_JSQR_JSQ2_1 (0x02UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000040 */ |
||
3680 | #define ADC_JSQR_JSQ2_2 (0x04UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000080 */ |
||
3681 | #define ADC_JSQR_JSQ2_3 (0x08UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000100 */ |
||
3682 | #define ADC_JSQR_JSQ2_4 (0x10UL << ADC_JSQR_JSQ2_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 3683 | |
3684 | #define ADC_JSQR_JSQ3_Pos (10U) |
||
9 | mjames | 3685 | #define ADC_JSQR_JSQ3_Msk (0x1FUL << ADC_JSQR_JSQ3_Pos) /*!< 0x00007C00 */ |
2 | mjames | 3686 | #define ADC_JSQR_JSQ3 ADC_JSQR_JSQ3_Msk /*!< ADC group injected sequencer rank 3 */ |
9 | mjames | 3687 | #define ADC_JSQR_JSQ3_0 (0x01UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00000400 */ |
3688 | #define ADC_JSQR_JSQ3_1 (0x02UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00000800 */ |
||
3689 | #define ADC_JSQR_JSQ3_2 (0x04UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00001000 */ |
||
3690 | #define ADC_JSQR_JSQ3_3 (0x08UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00002000 */ |
||
3691 | #define ADC_JSQR_JSQ3_4 (0x10UL << ADC_JSQR_JSQ3_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 3692 | |
3693 | #define ADC_JSQR_JSQ4_Pos (15U) |
||
9 | mjames | 3694 | #define ADC_JSQR_JSQ4_Msk (0x1FUL << ADC_JSQR_JSQ4_Pos) /*!< 0x000F8000 */ |
2 | mjames | 3695 | #define ADC_JSQR_JSQ4 ADC_JSQR_JSQ4_Msk /*!< ADC group injected sequencer rank 4 */ |
9 | mjames | 3696 | #define ADC_JSQR_JSQ4_0 (0x01UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00008000 */ |
3697 | #define ADC_JSQR_JSQ4_1 (0x02UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00010000 */ |
||
3698 | #define ADC_JSQR_JSQ4_2 (0x04UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00020000 */ |
||
3699 | #define ADC_JSQR_JSQ4_3 (0x08UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00040000 */ |
||
3700 | #define ADC_JSQR_JSQ4_4 (0x10UL << ADC_JSQR_JSQ4_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 3701 | |
3702 | #define ADC_JSQR_JL_Pos (20U) |
||
9 | mjames | 3703 | #define ADC_JSQR_JL_Msk (0x3UL << ADC_JSQR_JL_Pos) /*!< 0x00300000 */ |
2 | mjames | 3704 | #define ADC_JSQR_JL ADC_JSQR_JL_Msk /*!< ADC group injected sequencer scan length */ |
9 | mjames | 3705 | #define ADC_JSQR_JL_0 (0x1UL << ADC_JSQR_JL_Pos) /*!< 0x00100000 */ |
3706 | #define ADC_JSQR_JL_1 (0x2UL << ADC_JSQR_JL_Pos) /*!< 0x00200000 */ |
||
2 | mjames | 3707 | |
3708 | /******************* Bit definition for ADC_JDR1 register *******************/ |
||
3709 | #define ADC_JDR1_JDATA_Pos (0U) |
||
9 | mjames | 3710 | #define ADC_JDR1_JDATA_Msk (0xFFFFUL << ADC_JDR1_JDATA_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 3711 | #define ADC_JDR1_JDATA ADC_JDR1_JDATA_Msk /*!< ADC group injected sequencer rank 1 conversion data */ |
3712 | |||
3713 | /******************* Bit definition for ADC_JDR2 register *******************/ |
||
3714 | #define ADC_JDR2_JDATA_Pos (0U) |
||
9 | mjames | 3715 | #define ADC_JDR2_JDATA_Msk (0xFFFFUL << ADC_JDR2_JDATA_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 3716 | #define ADC_JDR2_JDATA ADC_JDR2_JDATA_Msk /*!< ADC group injected sequencer rank 2 conversion data */ |
3717 | |||
3718 | /******************* Bit definition for ADC_JDR3 register *******************/ |
||
3719 | #define ADC_JDR3_JDATA_Pos (0U) |
||
9 | mjames | 3720 | #define ADC_JDR3_JDATA_Msk (0xFFFFUL << ADC_JDR3_JDATA_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 3721 | #define ADC_JDR3_JDATA ADC_JDR3_JDATA_Msk /*!< ADC group injected sequencer rank 3 conversion data */ |
3722 | |||
3723 | /******************* Bit definition for ADC_JDR4 register *******************/ |
||
3724 | #define ADC_JDR4_JDATA_Pos (0U) |
||
9 | mjames | 3725 | #define ADC_JDR4_JDATA_Msk (0xFFFFUL << ADC_JDR4_JDATA_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 3726 | #define ADC_JDR4_JDATA ADC_JDR4_JDATA_Msk /*!< ADC group injected sequencer rank 4 conversion data */ |
3727 | |||
3728 | /******************** Bit definition for ADC_DR register ********************/ |
||
3729 | #define ADC_DR_DATA_Pos (0U) |
||
9 | mjames | 3730 | #define ADC_DR_DATA_Msk (0xFFFFUL << ADC_DR_DATA_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 3731 | #define ADC_DR_DATA ADC_DR_DATA_Msk /*!< ADC group regular conversion data */ |
3732 | #define ADC_DR_ADC2DATA_Pos (16U) |
||
9 | mjames | 3733 | #define ADC_DR_ADC2DATA_Msk (0xFFFFUL << ADC_DR_ADC2DATA_Pos) /*!< 0xFFFF0000 */ |
2 | mjames | 3734 | #define ADC_DR_ADC2DATA ADC_DR_ADC2DATA_Msk /*!< ADC group regular conversion data for ADC slave, in multimode */ |
3735 | |||
3736 | |||
3737 | /*****************************************************************************/ |
||
3738 | /* */ |
||
3739 | /* Timers (TIM) */ |
||
3740 | /* */ |
||
3741 | /*****************************************************************************/ |
||
3742 | /******************* Bit definition for TIM_CR1 register *******************/ |
||
3743 | #define TIM_CR1_CEN_Pos (0U) |
||
9 | mjames | 3744 | #define TIM_CR1_CEN_Msk (0x1UL << TIM_CR1_CEN_Pos) /*!< 0x00000001 */ |
2 | mjames | 3745 | #define TIM_CR1_CEN TIM_CR1_CEN_Msk /*!<Counter enable */ |
3746 | #define TIM_CR1_UDIS_Pos (1U) |
||
9 | mjames | 3747 | #define TIM_CR1_UDIS_Msk (0x1UL << TIM_CR1_UDIS_Pos) /*!< 0x00000002 */ |
2 | mjames | 3748 | #define TIM_CR1_UDIS TIM_CR1_UDIS_Msk /*!<Update disable */ |
3749 | #define TIM_CR1_URS_Pos (2U) |
||
9 | mjames | 3750 | #define TIM_CR1_URS_Msk (0x1UL << TIM_CR1_URS_Pos) /*!< 0x00000004 */ |
2 | mjames | 3751 | #define TIM_CR1_URS TIM_CR1_URS_Msk /*!<Update request source */ |
3752 | #define TIM_CR1_OPM_Pos (3U) |
||
9 | mjames | 3753 | #define TIM_CR1_OPM_Msk (0x1UL << TIM_CR1_OPM_Pos) /*!< 0x00000008 */ |
2 | mjames | 3754 | #define TIM_CR1_OPM TIM_CR1_OPM_Msk /*!<One pulse mode */ |
3755 | #define TIM_CR1_DIR_Pos (4U) |
||
9 | mjames | 3756 | #define TIM_CR1_DIR_Msk (0x1UL << TIM_CR1_DIR_Pos) /*!< 0x00000010 */ |
2 | mjames | 3757 | #define TIM_CR1_DIR TIM_CR1_DIR_Msk /*!<Direction */ |
3758 | |||
3759 | #define TIM_CR1_CMS_Pos (5U) |
||
9 | mjames | 3760 | #define TIM_CR1_CMS_Msk (0x3UL << TIM_CR1_CMS_Pos) /*!< 0x00000060 */ |
2 | mjames | 3761 | #define TIM_CR1_CMS TIM_CR1_CMS_Msk /*!<CMS[1:0] bits (Center-aligned mode selection) */ |
9 | mjames | 3762 | #define TIM_CR1_CMS_0 (0x1UL << TIM_CR1_CMS_Pos) /*!< 0x00000020 */ |
3763 | #define TIM_CR1_CMS_1 (0x2UL << TIM_CR1_CMS_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 3764 | |
3765 | #define TIM_CR1_ARPE_Pos (7U) |
||
9 | mjames | 3766 | #define TIM_CR1_ARPE_Msk (0x1UL << TIM_CR1_ARPE_Pos) /*!< 0x00000080 */ |
2 | mjames | 3767 | #define TIM_CR1_ARPE TIM_CR1_ARPE_Msk /*!<Auto-reload preload enable */ |
3768 | |||
3769 | #define TIM_CR1_CKD_Pos (8U) |
||
9 | mjames | 3770 | #define TIM_CR1_CKD_Msk (0x3UL << TIM_CR1_CKD_Pos) /*!< 0x00000300 */ |
2 | mjames | 3771 | #define TIM_CR1_CKD TIM_CR1_CKD_Msk /*!<CKD[1:0] bits (clock division) */ |
9 | mjames | 3772 | #define TIM_CR1_CKD_0 (0x1UL << TIM_CR1_CKD_Pos) /*!< 0x00000100 */ |
3773 | #define TIM_CR1_CKD_1 (0x2UL << TIM_CR1_CKD_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 3774 | |
3775 | /******************* Bit definition for TIM_CR2 register *******************/ |
||
3776 | #define TIM_CR2_CCPC_Pos (0U) |
||
9 | mjames | 3777 | #define TIM_CR2_CCPC_Msk (0x1UL << TIM_CR2_CCPC_Pos) /*!< 0x00000001 */ |
2 | mjames | 3778 | #define TIM_CR2_CCPC TIM_CR2_CCPC_Msk /*!<Capture/Compare Preloaded Control */ |
3779 | #define TIM_CR2_CCUS_Pos (2U) |
||
9 | mjames | 3780 | #define TIM_CR2_CCUS_Msk (0x1UL << TIM_CR2_CCUS_Pos) /*!< 0x00000004 */ |
2 | mjames | 3781 | #define TIM_CR2_CCUS TIM_CR2_CCUS_Msk /*!<Capture/Compare Control Update Selection */ |
3782 | #define TIM_CR2_CCDS_Pos (3U) |
||
9 | mjames | 3783 | #define TIM_CR2_CCDS_Msk (0x1UL << TIM_CR2_CCDS_Pos) /*!< 0x00000008 */ |
2 | mjames | 3784 | #define TIM_CR2_CCDS TIM_CR2_CCDS_Msk /*!<Capture/Compare DMA Selection */ |
3785 | |||
3786 | #define TIM_CR2_MMS_Pos (4U) |
||
9 | mjames | 3787 | #define TIM_CR2_MMS_Msk (0x7UL << TIM_CR2_MMS_Pos) /*!< 0x00000070 */ |
2 | mjames | 3788 | #define TIM_CR2_MMS TIM_CR2_MMS_Msk /*!<MMS[2:0] bits (Master Mode Selection) */ |
9 | mjames | 3789 | #define TIM_CR2_MMS_0 (0x1UL << TIM_CR2_MMS_Pos) /*!< 0x00000010 */ |
3790 | #define TIM_CR2_MMS_1 (0x2UL << TIM_CR2_MMS_Pos) /*!< 0x00000020 */ |
||
3791 | #define TIM_CR2_MMS_2 (0x4UL << TIM_CR2_MMS_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 3792 | |
3793 | #define TIM_CR2_TI1S_Pos (7U) |
||
9 | mjames | 3794 | #define TIM_CR2_TI1S_Msk (0x1UL << TIM_CR2_TI1S_Pos) /*!< 0x00000080 */ |
2 | mjames | 3795 | #define TIM_CR2_TI1S TIM_CR2_TI1S_Msk /*!<TI1 Selection */ |
3796 | #define TIM_CR2_OIS1_Pos (8U) |
||
9 | mjames | 3797 | #define TIM_CR2_OIS1_Msk (0x1UL << TIM_CR2_OIS1_Pos) /*!< 0x00000100 */ |
2 | mjames | 3798 | #define TIM_CR2_OIS1 TIM_CR2_OIS1_Msk /*!<Output Idle state 1 (OC1 output) */ |
3799 | #define TIM_CR2_OIS1N_Pos (9U) |
||
9 | mjames | 3800 | #define TIM_CR2_OIS1N_Msk (0x1UL << TIM_CR2_OIS1N_Pos) /*!< 0x00000200 */ |
2 | mjames | 3801 | #define TIM_CR2_OIS1N TIM_CR2_OIS1N_Msk /*!<Output Idle state 1 (OC1N output) */ |
3802 | #define TIM_CR2_OIS2_Pos (10U) |
||
9 | mjames | 3803 | #define TIM_CR2_OIS2_Msk (0x1UL << TIM_CR2_OIS2_Pos) /*!< 0x00000400 */ |
2 | mjames | 3804 | #define TIM_CR2_OIS2 TIM_CR2_OIS2_Msk /*!<Output Idle state 2 (OC2 output) */ |
3805 | #define TIM_CR2_OIS2N_Pos (11U) |
||
9 | mjames | 3806 | #define TIM_CR2_OIS2N_Msk (0x1UL << TIM_CR2_OIS2N_Pos) /*!< 0x00000800 */ |
2 | mjames | 3807 | #define TIM_CR2_OIS2N TIM_CR2_OIS2N_Msk /*!<Output Idle state 2 (OC2N output) */ |
3808 | #define TIM_CR2_OIS3_Pos (12U) |
||
9 | mjames | 3809 | #define TIM_CR2_OIS3_Msk (0x1UL << TIM_CR2_OIS3_Pos) /*!< 0x00001000 */ |
2 | mjames | 3810 | #define TIM_CR2_OIS3 TIM_CR2_OIS3_Msk /*!<Output Idle state 3 (OC3 output) */ |
3811 | #define TIM_CR2_OIS3N_Pos (13U) |
||
9 | mjames | 3812 | #define TIM_CR2_OIS3N_Msk (0x1UL << TIM_CR2_OIS3N_Pos) /*!< 0x00002000 */ |
2 | mjames | 3813 | #define TIM_CR2_OIS3N TIM_CR2_OIS3N_Msk /*!<Output Idle state 3 (OC3N output) */ |
3814 | #define TIM_CR2_OIS4_Pos (14U) |
||
9 | mjames | 3815 | #define TIM_CR2_OIS4_Msk (0x1UL << TIM_CR2_OIS4_Pos) /*!< 0x00004000 */ |
2 | mjames | 3816 | #define TIM_CR2_OIS4 TIM_CR2_OIS4_Msk /*!<Output Idle state 4 (OC4 output) */ |
3817 | |||
3818 | /******************* Bit definition for TIM_SMCR register ******************/ |
||
3819 | #define TIM_SMCR_SMS_Pos (0U) |
||
9 | mjames | 3820 | #define TIM_SMCR_SMS_Msk (0x7UL << TIM_SMCR_SMS_Pos) /*!< 0x00000007 */ |
2 | mjames | 3821 | #define TIM_SMCR_SMS TIM_SMCR_SMS_Msk /*!<SMS[2:0] bits (Slave mode selection) */ |
9 | mjames | 3822 | #define TIM_SMCR_SMS_0 (0x1UL << TIM_SMCR_SMS_Pos) /*!< 0x00000001 */ |
3823 | #define TIM_SMCR_SMS_1 (0x2UL << TIM_SMCR_SMS_Pos) /*!< 0x00000002 */ |
||
3824 | #define TIM_SMCR_SMS_2 (0x4UL << TIM_SMCR_SMS_Pos) /*!< 0x00000004 */ |
||
2 | mjames | 3825 | |
3826 | #define TIM_SMCR_TS_Pos (4U) |
||
9 | mjames | 3827 | #define TIM_SMCR_TS_Msk (0x7UL << TIM_SMCR_TS_Pos) /*!< 0x00000070 */ |
2 | mjames | 3828 | #define TIM_SMCR_TS TIM_SMCR_TS_Msk /*!<TS[2:0] bits (Trigger selection) */ |
9 | mjames | 3829 | #define TIM_SMCR_TS_0 (0x1UL << TIM_SMCR_TS_Pos) /*!< 0x00000010 */ |
3830 | #define TIM_SMCR_TS_1 (0x2UL << TIM_SMCR_TS_Pos) /*!< 0x00000020 */ |
||
3831 | #define TIM_SMCR_TS_2 (0x4UL << TIM_SMCR_TS_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 3832 | |
3833 | #define TIM_SMCR_MSM_Pos (7U) |
||
9 | mjames | 3834 | #define TIM_SMCR_MSM_Msk (0x1UL << TIM_SMCR_MSM_Pos) /*!< 0x00000080 */ |
2 | mjames | 3835 | #define TIM_SMCR_MSM TIM_SMCR_MSM_Msk /*!<Master/slave mode */ |
3836 | |||
3837 | #define TIM_SMCR_ETF_Pos (8U) |
||
9 | mjames | 3838 | #define TIM_SMCR_ETF_Msk (0xFUL << TIM_SMCR_ETF_Pos) /*!< 0x00000F00 */ |
2 | mjames | 3839 | #define TIM_SMCR_ETF TIM_SMCR_ETF_Msk /*!<ETF[3:0] bits (External trigger filter) */ |
9 | mjames | 3840 | #define TIM_SMCR_ETF_0 (0x1UL << TIM_SMCR_ETF_Pos) /*!< 0x00000100 */ |
3841 | #define TIM_SMCR_ETF_1 (0x2UL << TIM_SMCR_ETF_Pos) /*!< 0x00000200 */ |
||
3842 | #define TIM_SMCR_ETF_2 (0x4UL << TIM_SMCR_ETF_Pos) /*!< 0x00000400 */ |
||
3843 | #define TIM_SMCR_ETF_3 (0x8UL << TIM_SMCR_ETF_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 3844 | |
3845 | #define TIM_SMCR_ETPS_Pos (12U) |
||
9 | mjames | 3846 | #define TIM_SMCR_ETPS_Msk (0x3UL << TIM_SMCR_ETPS_Pos) /*!< 0x00003000 */ |
2 | mjames | 3847 | #define TIM_SMCR_ETPS TIM_SMCR_ETPS_Msk /*!<ETPS[1:0] bits (External trigger prescaler) */ |
9 | mjames | 3848 | #define TIM_SMCR_ETPS_0 (0x1UL << TIM_SMCR_ETPS_Pos) /*!< 0x00001000 */ |
3849 | #define TIM_SMCR_ETPS_1 (0x2UL << TIM_SMCR_ETPS_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 3850 | |
3851 | #define TIM_SMCR_ECE_Pos (14U) |
||
9 | mjames | 3852 | #define TIM_SMCR_ECE_Msk (0x1UL << TIM_SMCR_ECE_Pos) /*!< 0x00004000 */ |
2 | mjames | 3853 | #define TIM_SMCR_ECE TIM_SMCR_ECE_Msk /*!<External clock enable */ |
3854 | #define TIM_SMCR_ETP_Pos (15U) |
||
9 | mjames | 3855 | #define TIM_SMCR_ETP_Msk (0x1UL << TIM_SMCR_ETP_Pos) /*!< 0x00008000 */ |
2 | mjames | 3856 | #define TIM_SMCR_ETP TIM_SMCR_ETP_Msk /*!<External trigger polarity */ |
3857 | |||
3858 | /******************* Bit definition for TIM_DIER register ******************/ |
||
3859 | #define TIM_DIER_UIE_Pos (0U) |
||
9 | mjames | 3860 | #define TIM_DIER_UIE_Msk (0x1UL << TIM_DIER_UIE_Pos) /*!< 0x00000001 */ |
2 | mjames | 3861 | #define TIM_DIER_UIE TIM_DIER_UIE_Msk /*!<Update interrupt enable */ |
3862 | #define TIM_DIER_CC1IE_Pos (1U) |
||
9 | mjames | 3863 | #define TIM_DIER_CC1IE_Msk (0x1UL << TIM_DIER_CC1IE_Pos) /*!< 0x00000002 */ |
2 | mjames | 3864 | #define TIM_DIER_CC1IE TIM_DIER_CC1IE_Msk /*!<Capture/Compare 1 interrupt enable */ |
3865 | #define TIM_DIER_CC2IE_Pos (2U) |
||
9 | mjames | 3866 | #define TIM_DIER_CC2IE_Msk (0x1UL << TIM_DIER_CC2IE_Pos) /*!< 0x00000004 */ |
2 | mjames | 3867 | #define TIM_DIER_CC2IE TIM_DIER_CC2IE_Msk /*!<Capture/Compare 2 interrupt enable */ |
3868 | #define TIM_DIER_CC3IE_Pos (3U) |
||
9 | mjames | 3869 | #define TIM_DIER_CC3IE_Msk (0x1UL << TIM_DIER_CC3IE_Pos) /*!< 0x00000008 */ |
2 | mjames | 3870 | #define TIM_DIER_CC3IE TIM_DIER_CC3IE_Msk /*!<Capture/Compare 3 interrupt enable */ |
3871 | #define TIM_DIER_CC4IE_Pos (4U) |
||
9 | mjames | 3872 | #define TIM_DIER_CC4IE_Msk (0x1UL << TIM_DIER_CC4IE_Pos) /*!< 0x00000010 */ |
2 | mjames | 3873 | #define TIM_DIER_CC4IE TIM_DIER_CC4IE_Msk /*!<Capture/Compare 4 interrupt enable */ |
3874 | #define TIM_DIER_COMIE_Pos (5U) |
||
9 | mjames | 3875 | #define TIM_DIER_COMIE_Msk (0x1UL << TIM_DIER_COMIE_Pos) /*!< 0x00000020 */ |
2 | mjames | 3876 | #define TIM_DIER_COMIE TIM_DIER_COMIE_Msk /*!<COM interrupt enable */ |
3877 | #define TIM_DIER_TIE_Pos (6U) |
||
9 | mjames | 3878 | #define TIM_DIER_TIE_Msk (0x1UL << TIM_DIER_TIE_Pos) /*!< 0x00000040 */ |
2 | mjames | 3879 | #define TIM_DIER_TIE TIM_DIER_TIE_Msk /*!<Trigger interrupt enable */ |
3880 | #define TIM_DIER_BIE_Pos (7U) |
||
9 | mjames | 3881 | #define TIM_DIER_BIE_Msk (0x1UL << TIM_DIER_BIE_Pos) /*!< 0x00000080 */ |
2 | mjames | 3882 | #define TIM_DIER_BIE TIM_DIER_BIE_Msk /*!<Break interrupt enable */ |
3883 | #define TIM_DIER_UDE_Pos (8U) |
||
9 | mjames | 3884 | #define TIM_DIER_UDE_Msk (0x1UL << TIM_DIER_UDE_Pos) /*!< 0x00000100 */ |
2 | mjames | 3885 | #define TIM_DIER_UDE TIM_DIER_UDE_Msk /*!<Update DMA request enable */ |
3886 | #define TIM_DIER_CC1DE_Pos (9U) |
||
9 | mjames | 3887 | #define TIM_DIER_CC1DE_Msk (0x1UL << TIM_DIER_CC1DE_Pos) /*!< 0x00000200 */ |
2 | mjames | 3888 | #define TIM_DIER_CC1DE TIM_DIER_CC1DE_Msk /*!<Capture/Compare 1 DMA request enable */ |
3889 | #define TIM_DIER_CC2DE_Pos (10U) |
||
9 | mjames | 3890 | #define TIM_DIER_CC2DE_Msk (0x1UL << TIM_DIER_CC2DE_Pos) /*!< 0x00000400 */ |
2 | mjames | 3891 | #define TIM_DIER_CC2DE TIM_DIER_CC2DE_Msk /*!<Capture/Compare 2 DMA request enable */ |
3892 | #define TIM_DIER_CC3DE_Pos (11U) |
||
9 | mjames | 3893 | #define TIM_DIER_CC3DE_Msk (0x1UL << TIM_DIER_CC3DE_Pos) /*!< 0x00000800 */ |
2 | mjames | 3894 | #define TIM_DIER_CC3DE TIM_DIER_CC3DE_Msk /*!<Capture/Compare 3 DMA request enable */ |
3895 | #define TIM_DIER_CC4DE_Pos (12U) |
||
9 | mjames | 3896 | #define TIM_DIER_CC4DE_Msk (0x1UL << TIM_DIER_CC4DE_Pos) /*!< 0x00001000 */ |
2 | mjames | 3897 | #define TIM_DIER_CC4DE TIM_DIER_CC4DE_Msk /*!<Capture/Compare 4 DMA request enable */ |
3898 | #define TIM_DIER_COMDE_Pos (13U) |
||
9 | mjames | 3899 | #define TIM_DIER_COMDE_Msk (0x1UL << TIM_DIER_COMDE_Pos) /*!< 0x00002000 */ |
2 | mjames | 3900 | #define TIM_DIER_COMDE TIM_DIER_COMDE_Msk /*!<COM DMA request enable */ |
3901 | #define TIM_DIER_TDE_Pos (14U) |
||
9 | mjames | 3902 | #define TIM_DIER_TDE_Msk (0x1UL << TIM_DIER_TDE_Pos) /*!< 0x00004000 */ |
2 | mjames | 3903 | #define TIM_DIER_TDE TIM_DIER_TDE_Msk /*!<Trigger DMA request enable */ |
3904 | |||
3905 | /******************** Bit definition for TIM_SR register *******************/ |
||
3906 | #define TIM_SR_UIF_Pos (0U) |
||
9 | mjames | 3907 | #define TIM_SR_UIF_Msk (0x1UL << TIM_SR_UIF_Pos) /*!< 0x00000001 */ |
2 | mjames | 3908 | #define TIM_SR_UIF TIM_SR_UIF_Msk /*!<Update interrupt Flag */ |
3909 | #define TIM_SR_CC1IF_Pos (1U) |
||
9 | mjames | 3910 | #define TIM_SR_CC1IF_Msk (0x1UL << TIM_SR_CC1IF_Pos) /*!< 0x00000002 */ |
2 | mjames | 3911 | #define TIM_SR_CC1IF TIM_SR_CC1IF_Msk /*!<Capture/Compare 1 interrupt Flag */ |
3912 | #define TIM_SR_CC2IF_Pos (2U) |
||
9 | mjames | 3913 | #define TIM_SR_CC2IF_Msk (0x1UL << TIM_SR_CC2IF_Pos) /*!< 0x00000004 */ |
2 | mjames | 3914 | #define TIM_SR_CC2IF TIM_SR_CC2IF_Msk /*!<Capture/Compare 2 interrupt Flag */ |
3915 | #define TIM_SR_CC3IF_Pos (3U) |
||
9 | mjames | 3916 | #define TIM_SR_CC3IF_Msk (0x1UL << TIM_SR_CC3IF_Pos) /*!< 0x00000008 */ |
2 | mjames | 3917 | #define TIM_SR_CC3IF TIM_SR_CC3IF_Msk /*!<Capture/Compare 3 interrupt Flag */ |
3918 | #define TIM_SR_CC4IF_Pos (4U) |
||
9 | mjames | 3919 | #define TIM_SR_CC4IF_Msk (0x1UL << TIM_SR_CC4IF_Pos) /*!< 0x00000010 */ |
2 | mjames | 3920 | #define TIM_SR_CC4IF TIM_SR_CC4IF_Msk /*!<Capture/Compare 4 interrupt Flag */ |
3921 | #define TIM_SR_COMIF_Pos (5U) |
||
9 | mjames | 3922 | #define TIM_SR_COMIF_Msk (0x1UL << TIM_SR_COMIF_Pos) /*!< 0x00000020 */ |
2 | mjames | 3923 | #define TIM_SR_COMIF TIM_SR_COMIF_Msk /*!<COM interrupt Flag */ |
3924 | #define TIM_SR_TIF_Pos (6U) |
||
9 | mjames | 3925 | #define TIM_SR_TIF_Msk (0x1UL << TIM_SR_TIF_Pos) /*!< 0x00000040 */ |
2 | mjames | 3926 | #define TIM_SR_TIF TIM_SR_TIF_Msk /*!<Trigger interrupt Flag */ |
3927 | #define TIM_SR_BIF_Pos (7U) |
||
9 | mjames | 3928 | #define TIM_SR_BIF_Msk (0x1UL << TIM_SR_BIF_Pos) /*!< 0x00000080 */ |
2 | mjames | 3929 | #define TIM_SR_BIF TIM_SR_BIF_Msk /*!<Break interrupt Flag */ |
3930 | #define TIM_SR_CC1OF_Pos (9U) |
||
9 | mjames | 3931 | #define TIM_SR_CC1OF_Msk (0x1UL << TIM_SR_CC1OF_Pos) /*!< 0x00000200 */ |
2 | mjames | 3932 | #define TIM_SR_CC1OF TIM_SR_CC1OF_Msk /*!<Capture/Compare 1 Overcapture Flag */ |
3933 | #define TIM_SR_CC2OF_Pos (10U) |
||
9 | mjames | 3934 | #define TIM_SR_CC2OF_Msk (0x1UL << TIM_SR_CC2OF_Pos) /*!< 0x00000400 */ |
2 | mjames | 3935 | #define TIM_SR_CC2OF TIM_SR_CC2OF_Msk /*!<Capture/Compare 2 Overcapture Flag */ |
3936 | #define TIM_SR_CC3OF_Pos (11U) |
||
9 | mjames | 3937 | #define TIM_SR_CC3OF_Msk (0x1UL << TIM_SR_CC3OF_Pos) /*!< 0x00000800 */ |
2 | mjames | 3938 | #define TIM_SR_CC3OF TIM_SR_CC3OF_Msk /*!<Capture/Compare 3 Overcapture Flag */ |
3939 | #define TIM_SR_CC4OF_Pos (12U) |
||
9 | mjames | 3940 | #define TIM_SR_CC4OF_Msk (0x1UL << TIM_SR_CC4OF_Pos) /*!< 0x00001000 */ |
2 | mjames | 3941 | #define TIM_SR_CC4OF TIM_SR_CC4OF_Msk /*!<Capture/Compare 4 Overcapture Flag */ |
3942 | |||
3943 | /******************* Bit definition for TIM_EGR register *******************/ |
||
3944 | #define TIM_EGR_UG_Pos (0U) |
||
9 | mjames | 3945 | #define TIM_EGR_UG_Msk (0x1UL << TIM_EGR_UG_Pos) /*!< 0x00000001 */ |
2 | mjames | 3946 | #define TIM_EGR_UG TIM_EGR_UG_Msk /*!<Update Generation */ |
3947 | #define TIM_EGR_CC1G_Pos (1U) |
||
9 | mjames | 3948 | #define TIM_EGR_CC1G_Msk (0x1UL << TIM_EGR_CC1G_Pos) /*!< 0x00000002 */ |
2 | mjames | 3949 | #define TIM_EGR_CC1G TIM_EGR_CC1G_Msk /*!<Capture/Compare 1 Generation */ |
3950 | #define TIM_EGR_CC2G_Pos (2U) |
||
9 | mjames | 3951 | #define TIM_EGR_CC2G_Msk (0x1UL << TIM_EGR_CC2G_Pos) /*!< 0x00000004 */ |
2 | mjames | 3952 | #define TIM_EGR_CC2G TIM_EGR_CC2G_Msk /*!<Capture/Compare 2 Generation */ |
3953 | #define TIM_EGR_CC3G_Pos (3U) |
||
9 | mjames | 3954 | #define TIM_EGR_CC3G_Msk (0x1UL << TIM_EGR_CC3G_Pos) /*!< 0x00000008 */ |
2 | mjames | 3955 | #define TIM_EGR_CC3G TIM_EGR_CC3G_Msk /*!<Capture/Compare 3 Generation */ |
3956 | #define TIM_EGR_CC4G_Pos (4U) |
||
9 | mjames | 3957 | #define TIM_EGR_CC4G_Msk (0x1UL << TIM_EGR_CC4G_Pos) /*!< 0x00000010 */ |
2 | mjames | 3958 | #define TIM_EGR_CC4G TIM_EGR_CC4G_Msk /*!<Capture/Compare 4 Generation */ |
3959 | #define TIM_EGR_COMG_Pos (5U) |
||
9 | mjames | 3960 | #define TIM_EGR_COMG_Msk (0x1UL << TIM_EGR_COMG_Pos) /*!< 0x00000020 */ |
2 | mjames | 3961 | #define TIM_EGR_COMG TIM_EGR_COMG_Msk /*!<Capture/Compare Control Update Generation */ |
3962 | #define TIM_EGR_TG_Pos (6U) |
||
9 | mjames | 3963 | #define TIM_EGR_TG_Msk (0x1UL << TIM_EGR_TG_Pos) /*!< 0x00000040 */ |
2 | mjames | 3964 | #define TIM_EGR_TG TIM_EGR_TG_Msk /*!<Trigger Generation */ |
3965 | #define TIM_EGR_BG_Pos (7U) |
||
9 | mjames | 3966 | #define TIM_EGR_BG_Msk (0x1UL << TIM_EGR_BG_Pos) /*!< 0x00000080 */ |
2 | mjames | 3967 | #define TIM_EGR_BG TIM_EGR_BG_Msk /*!<Break Generation */ |
3968 | |||
3969 | /****************** Bit definition for TIM_CCMR1 register ******************/ |
||
3970 | #define TIM_CCMR1_CC1S_Pos (0U) |
||
9 | mjames | 3971 | #define TIM_CCMR1_CC1S_Msk (0x3UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000003 */ |
2 | mjames | 3972 | #define TIM_CCMR1_CC1S TIM_CCMR1_CC1S_Msk /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */ |
9 | mjames | 3973 | #define TIM_CCMR1_CC1S_0 (0x1UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000001 */ |
3974 | #define TIM_CCMR1_CC1S_1 (0x2UL << TIM_CCMR1_CC1S_Pos) /*!< 0x00000002 */ |
||
2 | mjames | 3975 | |
3976 | #define TIM_CCMR1_OC1FE_Pos (2U) |
||
9 | mjames | 3977 | #define TIM_CCMR1_OC1FE_Msk (0x1UL << TIM_CCMR1_OC1FE_Pos) /*!< 0x00000004 */ |
2 | mjames | 3978 | #define TIM_CCMR1_OC1FE TIM_CCMR1_OC1FE_Msk /*!<Output Compare 1 Fast enable */ |
3979 | #define TIM_CCMR1_OC1PE_Pos (3U) |
||
9 | mjames | 3980 | #define TIM_CCMR1_OC1PE_Msk (0x1UL << TIM_CCMR1_OC1PE_Pos) /*!< 0x00000008 */ |
2 | mjames | 3981 | #define TIM_CCMR1_OC1PE TIM_CCMR1_OC1PE_Msk /*!<Output Compare 1 Preload enable */ |
3982 | |||
3983 | #define TIM_CCMR1_OC1M_Pos (4U) |
||
9 | mjames | 3984 | #define TIM_CCMR1_OC1M_Msk (0x7UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000070 */ |
2 | mjames | 3985 | #define TIM_CCMR1_OC1M TIM_CCMR1_OC1M_Msk /*!<OC1M[2:0] bits (Output Compare 1 Mode) */ |
9 | mjames | 3986 | #define TIM_CCMR1_OC1M_0 (0x1UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000010 */ |
3987 | #define TIM_CCMR1_OC1M_1 (0x2UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000020 */ |
||
3988 | #define TIM_CCMR1_OC1M_2 (0x4UL << TIM_CCMR1_OC1M_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 3989 | |
3990 | #define TIM_CCMR1_OC1CE_Pos (7U) |
||
9 | mjames | 3991 | #define TIM_CCMR1_OC1CE_Msk (0x1UL << TIM_CCMR1_OC1CE_Pos) /*!< 0x00000080 */ |
2 | mjames | 3992 | #define TIM_CCMR1_OC1CE TIM_CCMR1_OC1CE_Msk /*!<Output Compare 1Clear Enable */ |
3993 | |||
3994 | #define TIM_CCMR1_CC2S_Pos (8U) |
||
9 | mjames | 3995 | #define TIM_CCMR1_CC2S_Msk (0x3UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000300 */ |
2 | mjames | 3996 | #define TIM_CCMR1_CC2S TIM_CCMR1_CC2S_Msk /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */ |
9 | mjames | 3997 | #define TIM_CCMR1_CC2S_0 (0x1UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000100 */ |
3998 | #define TIM_CCMR1_CC2S_1 (0x2UL << TIM_CCMR1_CC2S_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 3999 | |
4000 | #define TIM_CCMR1_OC2FE_Pos (10U) |
||
9 | mjames | 4001 | #define TIM_CCMR1_OC2FE_Msk (0x1UL << TIM_CCMR1_OC2FE_Pos) /*!< 0x00000400 */ |
2 | mjames | 4002 | #define TIM_CCMR1_OC2FE TIM_CCMR1_OC2FE_Msk /*!<Output Compare 2 Fast enable */ |
4003 | #define TIM_CCMR1_OC2PE_Pos (11U) |
||
9 | mjames | 4004 | #define TIM_CCMR1_OC2PE_Msk (0x1UL << TIM_CCMR1_OC2PE_Pos) /*!< 0x00000800 */ |
2 | mjames | 4005 | #define TIM_CCMR1_OC2PE TIM_CCMR1_OC2PE_Msk /*!<Output Compare 2 Preload enable */ |
4006 | |||
4007 | #define TIM_CCMR1_OC2M_Pos (12U) |
||
9 | mjames | 4008 | #define TIM_CCMR1_OC2M_Msk (0x7UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00007000 */ |
2 | mjames | 4009 | #define TIM_CCMR1_OC2M TIM_CCMR1_OC2M_Msk /*!<OC2M[2:0] bits (Output Compare 2 Mode) */ |
9 | mjames | 4010 | #define TIM_CCMR1_OC2M_0 (0x1UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00001000 */ |
4011 | #define TIM_CCMR1_OC2M_1 (0x2UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00002000 */ |
||
4012 | #define TIM_CCMR1_OC2M_2 (0x4UL << TIM_CCMR1_OC2M_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 4013 | |
4014 | #define TIM_CCMR1_OC2CE_Pos (15U) |
||
9 | mjames | 4015 | #define TIM_CCMR1_OC2CE_Msk (0x1UL << TIM_CCMR1_OC2CE_Pos) /*!< 0x00008000 */ |
2 | mjames | 4016 | #define TIM_CCMR1_OC2CE TIM_CCMR1_OC2CE_Msk /*!<Output Compare 2 Clear Enable */ |
4017 | |||
4018 | /*---------------------------------------------------------------------------*/ |
||
4019 | |||
4020 | #define TIM_CCMR1_IC1PSC_Pos (2U) |
||
9 | mjames | 4021 | #define TIM_CCMR1_IC1PSC_Msk (0x3UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x0000000C */ |
2 | mjames | 4022 | #define TIM_CCMR1_IC1PSC TIM_CCMR1_IC1PSC_Msk /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */ |
9 | mjames | 4023 | #define TIM_CCMR1_IC1PSC_0 (0x1UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000004 */ |
4024 | #define TIM_CCMR1_IC1PSC_1 (0x2UL << TIM_CCMR1_IC1PSC_Pos) /*!< 0x00000008 */ |
||
2 | mjames | 4025 | |
4026 | #define TIM_CCMR1_IC1F_Pos (4U) |
||
9 | mjames | 4027 | #define TIM_CCMR1_IC1F_Msk (0xFUL << TIM_CCMR1_IC1F_Pos) /*!< 0x000000F0 */ |
2 | mjames | 4028 | #define TIM_CCMR1_IC1F TIM_CCMR1_IC1F_Msk /*!<IC1F[3:0] bits (Input Capture 1 Filter) */ |
9 | mjames | 4029 | #define TIM_CCMR1_IC1F_0 (0x1UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000010 */ |
4030 | #define TIM_CCMR1_IC1F_1 (0x2UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000020 */ |
||
4031 | #define TIM_CCMR1_IC1F_2 (0x4UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000040 */ |
||
4032 | #define TIM_CCMR1_IC1F_3 (0x8UL << TIM_CCMR1_IC1F_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 4033 | |
4034 | #define TIM_CCMR1_IC2PSC_Pos (10U) |
||
9 | mjames | 4035 | #define TIM_CCMR1_IC2PSC_Msk (0x3UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000C00 */ |
2 | mjames | 4036 | #define TIM_CCMR1_IC2PSC TIM_CCMR1_IC2PSC_Msk /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */ |
9 | mjames | 4037 | #define TIM_CCMR1_IC2PSC_0 (0x1UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000400 */ |
4038 | #define TIM_CCMR1_IC2PSC_1 (0x2UL << TIM_CCMR1_IC2PSC_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 4039 | |
4040 | #define TIM_CCMR1_IC2F_Pos (12U) |
||
9 | mjames | 4041 | #define TIM_CCMR1_IC2F_Msk (0xFUL << TIM_CCMR1_IC2F_Pos) /*!< 0x0000F000 */ |
2 | mjames | 4042 | #define TIM_CCMR1_IC2F TIM_CCMR1_IC2F_Msk /*!<IC2F[3:0] bits (Input Capture 2 Filter) */ |
9 | mjames | 4043 | #define TIM_CCMR1_IC2F_0 (0x1UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00001000 */ |
4044 | #define TIM_CCMR1_IC2F_1 (0x2UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00002000 */ |
||
4045 | #define TIM_CCMR1_IC2F_2 (0x4UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00004000 */ |
||
4046 | #define TIM_CCMR1_IC2F_3 (0x8UL << TIM_CCMR1_IC2F_Pos) /*!< 0x00008000 */ |
||
2 | mjames | 4047 | |
4048 | /****************** Bit definition for TIM_CCMR2 register ******************/ |
||
4049 | #define TIM_CCMR2_CC3S_Pos (0U) |
||
9 | mjames | 4050 | #define TIM_CCMR2_CC3S_Msk (0x3UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000003 */ |
2 | mjames | 4051 | #define TIM_CCMR2_CC3S TIM_CCMR2_CC3S_Msk /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */ |
9 | mjames | 4052 | #define TIM_CCMR2_CC3S_0 (0x1UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000001 */ |
4053 | #define TIM_CCMR2_CC3S_1 (0x2UL << TIM_CCMR2_CC3S_Pos) /*!< 0x00000002 */ |
||
2 | mjames | 4054 | |
4055 | #define TIM_CCMR2_OC3FE_Pos (2U) |
||
9 | mjames | 4056 | #define TIM_CCMR2_OC3FE_Msk (0x1UL << TIM_CCMR2_OC3FE_Pos) /*!< 0x00000004 */ |
2 | mjames | 4057 | #define TIM_CCMR2_OC3FE TIM_CCMR2_OC3FE_Msk /*!<Output Compare 3 Fast enable */ |
4058 | #define TIM_CCMR2_OC3PE_Pos (3U) |
||
9 | mjames | 4059 | #define TIM_CCMR2_OC3PE_Msk (0x1UL << TIM_CCMR2_OC3PE_Pos) /*!< 0x00000008 */ |
2 | mjames | 4060 | #define TIM_CCMR2_OC3PE TIM_CCMR2_OC3PE_Msk /*!<Output Compare 3 Preload enable */ |
4061 | |||
4062 | #define TIM_CCMR2_OC3M_Pos (4U) |
||
9 | mjames | 4063 | #define TIM_CCMR2_OC3M_Msk (0x7UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000070 */ |
2 | mjames | 4064 | #define TIM_CCMR2_OC3M TIM_CCMR2_OC3M_Msk /*!<OC3M[2:0] bits (Output Compare 3 Mode) */ |
9 | mjames | 4065 | #define TIM_CCMR2_OC3M_0 (0x1UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000010 */ |
4066 | #define TIM_CCMR2_OC3M_1 (0x2UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000020 */ |
||
4067 | #define TIM_CCMR2_OC3M_2 (0x4UL << TIM_CCMR2_OC3M_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 4068 | |
4069 | #define TIM_CCMR2_OC3CE_Pos (7U) |
||
9 | mjames | 4070 | #define TIM_CCMR2_OC3CE_Msk (0x1UL << TIM_CCMR2_OC3CE_Pos) /*!< 0x00000080 */ |
2 | mjames | 4071 | #define TIM_CCMR2_OC3CE TIM_CCMR2_OC3CE_Msk /*!<Output Compare 3 Clear Enable */ |
4072 | |||
4073 | #define TIM_CCMR2_CC4S_Pos (8U) |
||
9 | mjames | 4074 | #define TIM_CCMR2_CC4S_Msk (0x3UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000300 */ |
2 | mjames | 4075 | #define TIM_CCMR2_CC4S TIM_CCMR2_CC4S_Msk /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */ |
9 | mjames | 4076 | #define TIM_CCMR2_CC4S_0 (0x1UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000100 */ |
4077 | #define TIM_CCMR2_CC4S_1 (0x2UL << TIM_CCMR2_CC4S_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 4078 | |
4079 | #define TIM_CCMR2_OC4FE_Pos (10U) |
||
9 | mjames | 4080 | #define TIM_CCMR2_OC4FE_Msk (0x1UL << TIM_CCMR2_OC4FE_Pos) /*!< 0x00000400 */ |
2 | mjames | 4081 | #define TIM_CCMR2_OC4FE TIM_CCMR2_OC4FE_Msk /*!<Output Compare 4 Fast enable */ |
4082 | #define TIM_CCMR2_OC4PE_Pos (11U) |
||
9 | mjames | 4083 | #define TIM_CCMR2_OC4PE_Msk (0x1UL << TIM_CCMR2_OC4PE_Pos) /*!< 0x00000800 */ |
2 | mjames | 4084 | #define TIM_CCMR2_OC4PE TIM_CCMR2_OC4PE_Msk /*!<Output Compare 4 Preload enable */ |
4085 | |||
4086 | #define TIM_CCMR2_OC4M_Pos (12U) |
||
9 | mjames | 4087 | #define TIM_CCMR2_OC4M_Msk (0x7UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00007000 */ |
2 | mjames | 4088 | #define TIM_CCMR2_OC4M TIM_CCMR2_OC4M_Msk /*!<OC4M[2:0] bits (Output Compare 4 Mode) */ |
9 | mjames | 4089 | #define TIM_CCMR2_OC4M_0 (0x1UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00001000 */ |
4090 | #define TIM_CCMR2_OC4M_1 (0x2UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00002000 */ |
||
4091 | #define TIM_CCMR2_OC4M_2 (0x4UL << TIM_CCMR2_OC4M_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 4092 | |
4093 | #define TIM_CCMR2_OC4CE_Pos (15U) |
||
9 | mjames | 4094 | #define TIM_CCMR2_OC4CE_Msk (0x1UL << TIM_CCMR2_OC4CE_Pos) /*!< 0x00008000 */ |
2 | mjames | 4095 | #define TIM_CCMR2_OC4CE TIM_CCMR2_OC4CE_Msk /*!<Output Compare 4 Clear Enable */ |
4096 | |||
4097 | /*---------------------------------------------------------------------------*/ |
||
4098 | |||
4099 | #define TIM_CCMR2_IC3PSC_Pos (2U) |
||
9 | mjames | 4100 | #define TIM_CCMR2_IC3PSC_Msk (0x3UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x0000000C */ |
2 | mjames | 4101 | #define TIM_CCMR2_IC3PSC TIM_CCMR2_IC3PSC_Msk /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */ |
9 | mjames | 4102 | #define TIM_CCMR2_IC3PSC_0 (0x1UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000004 */ |
4103 | #define TIM_CCMR2_IC3PSC_1 (0x2UL << TIM_CCMR2_IC3PSC_Pos) /*!< 0x00000008 */ |
||
2 | mjames | 4104 | |
4105 | #define TIM_CCMR2_IC3F_Pos (4U) |
||
9 | mjames | 4106 | #define TIM_CCMR2_IC3F_Msk (0xFUL << TIM_CCMR2_IC3F_Pos) /*!< 0x000000F0 */ |
2 | mjames | 4107 | #define TIM_CCMR2_IC3F TIM_CCMR2_IC3F_Msk /*!<IC3F[3:0] bits (Input Capture 3 Filter) */ |
9 | mjames | 4108 | #define TIM_CCMR2_IC3F_0 (0x1UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000010 */ |
4109 | #define TIM_CCMR2_IC3F_1 (0x2UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000020 */ |
||
4110 | #define TIM_CCMR2_IC3F_2 (0x4UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000040 */ |
||
4111 | #define TIM_CCMR2_IC3F_3 (0x8UL << TIM_CCMR2_IC3F_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 4112 | |
4113 | #define TIM_CCMR2_IC4PSC_Pos (10U) |
||
9 | mjames | 4114 | #define TIM_CCMR2_IC4PSC_Msk (0x3UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000C00 */ |
2 | mjames | 4115 | #define TIM_CCMR2_IC4PSC TIM_CCMR2_IC4PSC_Msk /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */ |
9 | mjames | 4116 | #define TIM_CCMR2_IC4PSC_0 (0x1UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000400 */ |
4117 | #define TIM_CCMR2_IC4PSC_1 (0x2UL << TIM_CCMR2_IC4PSC_Pos) /*!< 0x00000800 */ |
||
2 | mjames | 4118 | |
4119 | #define TIM_CCMR2_IC4F_Pos (12U) |
||
9 | mjames | 4120 | #define TIM_CCMR2_IC4F_Msk (0xFUL << TIM_CCMR2_IC4F_Pos) /*!< 0x0000F000 */ |
2 | mjames | 4121 | #define TIM_CCMR2_IC4F TIM_CCMR2_IC4F_Msk /*!<IC4F[3:0] bits (Input Capture 4 Filter) */ |
9 | mjames | 4122 | #define TIM_CCMR2_IC4F_0 (0x1UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00001000 */ |
4123 | #define TIM_CCMR2_IC4F_1 (0x2UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00002000 */ |
||
4124 | #define TIM_CCMR2_IC4F_2 (0x4UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00004000 */ |
||
4125 | #define TIM_CCMR2_IC4F_3 (0x8UL << TIM_CCMR2_IC4F_Pos) /*!< 0x00008000 */ |
||
2 | mjames | 4126 | |
4127 | /******************* Bit definition for TIM_CCER register ******************/ |
||
4128 | #define TIM_CCER_CC1E_Pos (0U) |
||
9 | mjames | 4129 | #define TIM_CCER_CC1E_Msk (0x1UL << TIM_CCER_CC1E_Pos) /*!< 0x00000001 */ |
2 | mjames | 4130 | #define TIM_CCER_CC1E TIM_CCER_CC1E_Msk /*!<Capture/Compare 1 output enable */ |
4131 | #define TIM_CCER_CC1P_Pos (1U) |
||
9 | mjames | 4132 | #define TIM_CCER_CC1P_Msk (0x1UL << TIM_CCER_CC1P_Pos) /*!< 0x00000002 */ |
2 | mjames | 4133 | #define TIM_CCER_CC1P TIM_CCER_CC1P_Msk /*!<Capture/Compare 1 output Polarity */ |
4134 | #define TIM_CCER_CC1NE_Pos (2U) |
||
9 | mjames | 4135 | #define TIM_CCER_CC1NE_Msk (0x1UL << TIM_CCER_CC1NE_Pos) /*!< 0x00000004 */ |
2 | mjames | 4136 | #define TIM_CCER_CC1NE TIM_CCER_CC1NE_Msk /*!<Capture/Compare 1 Complementary output enable */ |
4137 | #define TIM_CCER_CC1NP_Pos (3U) |
||
9 | mjames | 4138 | #define TIM_CCER_CC1NP_Msk (0x1UL << TIM_CCER_CC1NP_Pos) /*!< 0x00000008 */ |
2 | mjames | 4139 | #define TIM_CCER_CC1NP TIM_CCER_CC1NP_Msk /*!<Capture/Compare 1 Complementary output Polarity */ |
4140 | #define TIM_CCER_CC2E_Pos (4U) |
||
9 | mjames | 4141 | #define TIM_CCER_CC2E_Msk (0x1UL << TIM_CCER_CC2E_Pos) /*!< 0x00000010 */ |
2 | mjames | 4142 | #define TIM_CCER_CC2E TIM_CCER_CC2E_Msk /*!<Capture/Compare 2 output enable */ |
4143 | #define TIM_CCER_CC2P_Pos (5U) |
||
9 | mjames | 4144 | #define TIM_CCER_CC2P_Msk (0x1UL << TIM_CCER_CC2P_Pos) /*!< 0x00000020 */ |
2 | mjames | 4145 | #define TIM_CCER_CC2P TIM_CCER_CC2P_Msk /*!<Capture/Compare 2 output Polarity */ |
4146 | #define TIM_CCER_CC2NE_Pos (6U) |
||
9 | mjames | 4147 | #define TIM_CCER_CC2NE_Msk (0x1UL << TIM_CCER_CC2NE_Pos) /*!< 0x00000040 */ |
2 | mjames | 4148 | #define TIM_CCER_CC2NE TIM_CCER_CC2NE_Msk /*!<Capture/Compare 2 Complementary output enable */ |
4149 | #define TIM_CCER_CC2NP_Pos (7U) |
||
9 | mjames | 4150 | #define TIM_CCER_CC2NP_Msk (0x1UL << TIM_CCER_CC2NP_Pos) /*!< 0x00000080 */ |
2 | mjames | 4151 | #define TIM_CCER_CC2NP TIM_CCER_CC2NP_Msk /*!<Capture/Compare 2 Complementary output Polarity */ |
4152 | #define TIM_CCER_CC3E_Pos (8U) |
||
9 | mjames | 4153 | #define TIM_CCER_CC3E_Msk (0x1UL << TIM_CCER_CC3E_Pos) /*!< 0x00000100 */ |
2 | mjames | 4154 | #define TIM_CCER_CC3E TIM_CCER_CC3E_Msk /*!<Capture/Compare 3 output enable */ |
4155 | #define TIM_CCER_CC3P_Pos (9U) |
||
9 | mjames | 4156 | #define TIM_CCER_CC3P_Msk (0x1UL << TIM_CCER_CC3P_Pos) /*!< 0x00000200 */ |
2 | mjames | 4157 | #define TIM_CCER_CC3P TIM_CCER_CC3P_Msk /*!<Capture/Compare 3 output Polarity */ |
4158 | #define TIM_CCER_CC3NE_Pos (10U) |
||
9 | mjames | 4159 | #define TIM_CCER_CC3NE_Msk (0x1UL << TIM_CCER_CC3NE_Pos) /*!< 0x00000400 */ |
2 | mjames | 4160 | #define TIM_CCER_CC3NE TIM_CCER_CC3NE_Msk /*!<Capture/Compare 3 Complementary output enable */ |
4161 | #define TIM_CCER_CC3NP_Pos (11U) |
||
9 | mjames | 4162 | #define TIM_CCER_CC3NP_Msk (0x1UL << TIM_CCER_CC3NP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4163 | #define TIM_CCER_CC3NP TIM_CCER_CC3NP_Msk /*!<Capture/Compare 3 Complementary output Polarity */ |
4164 | #define TIM_CCER_CC4E_Pos (12U) |
||
9 | mjames | 4165 | #define TIM_CCER_CC4E_Msk (0x1UL << TIM_CCER_CC4E_Pos) /*!< 0x00001000 */ |
2 | mjames | 4166 | #define TIM_CCER_CC4E TIM_CCER_CC4E_Msk /*!<Capture/Compare 4 output enable */ |
4167 | #define TIM_CCER_CC4P_Pos (13U) |
||
9 | mjames | 4168 | #define TIM_CCER_CC4P_Msk (0x1UL << TIM_CCER_CC4P_Pos) /*!< 0x00002000 */ |
2 | mjames | 4169 | #define TIM_CCER_CC4P TIM_CCER_CC4P_Msk /*!<Capture/Compare 4 output Polarity */ |
4170 | |||
4171 | /******************* Bit definition for TIM_CNT register *******************/ |
||
4172 | #define TIM_CNT_CNT_Pos (0U) |
||
9 | mjames | 4173 | #define TIM_CNT_CNT_Msk (0xFFFFFFFFUL << TIM_CNT_CNT_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 4174 | #define TIM_CNT_CNT TIM_CNT_CNT_Msk /*!<Counter Value */ |
4175 | |||
4176 | /******************* Bit definition for TIM_PSC register *******************/ |
||
4177 | #define TIM_PSC_PSC_Pos (0U) |
||
9 | mjames | 4178 | #define TIM_PSC_PSC_Msk (0xFFFFUL << TIM_PSC_PSC_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4179 | #define TIM_PSC_PSC TIM_PSC_PSC_Msk /*!<Prescaler Value */ |
4180 | |||
4181 | /******************* Bit definition for TIM_ARR register *******************/ |
||
4182 | #define TIM_ARR_ARR_Pos (0U) |
||
9 | mjames | 4183 | #define TIM_ARR_ARR_Msk (0xFFFFFFFFUL << TIM_ARR_ARR_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 4184 | #define TIM_ARR_ARR TIM_ARR_ARR_Msk /*!<actual auto-reload Value */ |
4185 | |||
4186 | /******************* Bit definition for TIM_RCR register *******************/ |
||
4187 | #define TIM_RCR_REP_Pos (0U) |
||
9 | mjames | 4188 | #define TIM_RCR_REP_Msk (0xFFUL << TIM_RCR_REP_Pos) /*!< 0x000000FF */ |
2 | mjames | 4189 | #define TIM_RCR_REP TIM_RCR_REP_Msk /*!<Repetition Counter Value */ |
4190 | |||
4191 | /******************* Bit definition for TIM_CCR1 register ******************/ |
||
4192 | #define TIM_CCR1_CCR1_Pos (0U) |
||
9 | mjames | 4193 | #define TIM_CCR1_CCR1_Msk (0xFFFFUL << TIM_CCR1_CCR1_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4194 | #define TIM_CCR1_CCR1 TIM_CCR1_CCR1_Msk /*!<Capture/Compare 1 Value */ |
4195 | |||
4196 | /******************* Bit definition for TIM_CCR2 register ******************/ |
||
4197 | #define TIM_CCR2_CCR2_Pos (0U) |
||
9 | mjames | 4198 | #define TIM_CCR2_CCR2_Msk (0xFFFFUL << TIM_CCR2_CCR2_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4199 | #define TIM_CCR2_CCR2 TIM_CCR2_CCR2_Msk /*!<Capture/Compare 2 Value */ |
4200 | |||
4201 | /******************* Bit definition for TIM_CCR3 register ******************/ |
||
4202 | #define TIM_CCR3_CCR3_Pos (0U) |
||
9 | mjames | 4203 | #define TIM_CCR3_CCR3_Msk (0xFFFFUL << TIM_CCR3_CCR3_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4204 | #define TIM_CCR3_CCR3 TIM_CCR3_CCR3_Msk /*!<Capture/Compare 3 Value */ |
4205 | |||
4206 | /******************* Bit definition for TIM_CCR4 register ******************/ |
||
4207 | #define TIM_CCR4_CCR4_Pos (0U) |
||
9 | mjames | 4208 | #define TIM_CCR4_CCR4_Msk (0xFFFFUL << TIM_CCR4_CCR4_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4209 | #define TIM_CCR4_CCR4 TIM_CCR4_CCR4_Msk /*!<Capture/Compare 4 Value */ |
4210 | |||
4211 | /******************* Bit definition for TIM_BDTR register ******************/ |
||
4212 | #define TIM_BDTR_DTG_Pos (0U) |
||
9 | mjames | 4213 | #define TIM_BDTR_DTG_Msk (0xFFUL << TIM_BDTR_DTG_Pos) /*!< 0x000000FF */ |
2 | mjames | 4214 | #define TIM_BDTR_DTG TIM_BDTR_DTG_Msk /*!<DTG[0:7] bits (Dead-Time Generator set-up) */ |
9 | mjames | 4215 | #define TIM_BDTR_DTG_0 (0x01UL << TIM_BDTR_DTG_Pos) /*!< 0x00000001 */ |
4216 | #define TIM_BDTR_DTG_1 (0x02UL << TIM_BDTR_DTG_Pos) /*!< 0x00000002 */ |
||
4217 | #define TIM_BDTR_DTG_2 (0x04UL << TIM_BDTR_DTG_Pos) /*!< 0x00000004 */ |
||
4218 | #define TIM_BDTR_DTG_3 (0x08UL << TIM_BDTR_DTG_Pos) /*!< 0x00000008 */ |
||
4219 | #define TIM_BDTR_DTG_4 (0x10UL << TIM_BDTR_DTG_Pos) /*!< 0x00000010 */ |
||
4220 | #define TIM_BDTR_DTG_5 (0x20UL << TIM_BDTR_DTG_Pos) /*!< 0x00000020 */ |
||
4221 | #define TIM_BDTR_DTG_6 (0x40UL << TIM_BDTR_DTG_Pos) /*!< 0x00000040 */ |
||
4222 | #define TIM_BDTR_DTG_7 (0x80UL << TIM_BDTR_DTG_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 4223 | |
4224 | #define TIM_BDTR_LOCK_Pos (8U) |
||
9 | mjames | 4225 | #define TIM_BDTR_LOCK_Msk (0x3UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000300 */ |
2 | mjames | 4226 | #define TIM_BDTR_LOCK TIM_BDTR_LOCK_Msk /*!<LOCK[1:0] bits (Lock Configuration) */ |
9 | mjames | 4227 | #define TIM_BDTR_LOCK_0 (0x1UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000100 */ |
4228 | #define TIM_BDTR_LOCK_1 (0x2UL << TIM_BDTR_LOCK_Pos) /*!< 0x00000200 */ |
||
2 | mjames | 4229 | |
4230 | #define TIM_BDTR_OSSI_Pos (10U) |
||
9 | mjames | 4231 | #define TIM_BDTR_OSSI_Msk (0x1UL << TIM_BDTR_OSSI_Pos) /*!< 0x00000400 */ |
2 | mjames | 4232 | #define TIM_BDTR_OSSI TIM_BDTR_OSSI_Msk /*!<Off-State Selection for Idle mode */ |
4233 | #define TIM_BDTR_OSSR_Pos (11U) |
||
9 | mjames | 4234 | #define TIM_BDTR_OSSR_Msk (0x1UL << TIM_BDTR_OSSR_Pos) /*!< 0x00000800 */ |
2 | mjames | 4235 | #define TIM_BDTR_OSSR TIM_BDTR_OSSR_Msk /*!<Off-State Selection for Run mode */ |
4236 | #define TIM_BDTR_BKE_Pos (12U) |
||
9 | mjames | 4237 | #define TIM_BDTR_BKE_Msk (0x1UL << TIM_BDTR_BKE_Pos) /*!< 0x00001000 */ |
2 | mjames | 4238 | #define TIM_BDTR_BKE TIM_BDTR_BKE_Msk /*!<Break enable */ |
4239 | #define TIM_BDTR_BKP_Pos (13U) |
||
9 | mjames | 4240 | #define TIM_BDTR_BKP_Msk (0x1UL << TIM_BDTR_BKP_Pos) /*!< 0x00002000 */ |
2 | mjames | 4241 | #define TIM_BDTR_BKP TIM_BDTR_BKP_Msk /*!<Break Polarity */ |
4242 | #define TIM_BDTR_AOE_Pos (14U) |
||
9 | mjames | 4243 | #define TIM_BDTR_AOE_Msk (0x1UL << TIM_BDTR_AOE_Pos) /*!< 0x00004000 */ |
2 | mjames | 4244 | #define TIM_BDTR_AOE TIM_BDTR_AOE_Msk /*!<Automatic Output enable */ |
4245 | #define TIM_BDTR_MOE_Pos (15U) |
||
9 | mjames | 4246 | #define TIM_BDTR_MOE_Msk (0x1UL << TIM_BDTR_MOE_Pos) /*!< 0x00008000 */ |
2 | mjames | 4247 | #define TIM_BDTR_MOE TIM_BDTR_MOE_Msk /*!<Main Output enable */ |
4248 | |||
4249 | /******************* Bit definition for TIM_DCR register *******************/ |
||
4250 | #define TIM_DCR_DBA_Pos (0U) |
||
9 | mjames | 4251 | #define TIM_DCR_DBA_Msk (0x1FUL << TIM_DCR_DBA_Pos) /*!< 0x0000001F */ |
2 | mjames | 4252 | #define TIM_DCR_DBA TIM_DCR_DBA_Msk /*!<DBA[4:0] bits (DMA Base Address) */ |
9 | mjames | 4253 | #define TIM_DCR_DBA_0 (0x01UL << TIM_DCR_DBA_Pos) /*!< 0x00000001 */ |
4254 | #define TIM_DCR_DBA_1 (0x02UL << TIM_DCR_DBA_Pos) /*!< 0x00000002 */ |
||
4255 | #define TIM_DCR_DBA_2 (0x04UL << TIM_DCR_DBA_Pos) /*!< 0x00000004 */ |
||
4256 | #define TIM_DCR_DBA_3 (0x08UL << TIM_DCR_DBA_Pos) /*!< 0x00000008 */ |
||
4257 | #define TIM_DCR_DBA_4 (0x10UL << TIM_DCR_DBA_Pos) /*!< 0x00000010 */ |
||
2 | mjames | 4258 | |
4259 | #define TIM_DCR_DBL_Pos (8U) |
||
9 | mjames | 4260 | #define TIM_DCR_DBL_Msk (0x1FUL << TIM_DCR_DBL_Pos) /*!< 0x00001F00 */ |
2 | mjames | 4261 | #define TIM_DCR_DBL TIM_DCR_DBL_Msk /*!<DBL[4:0] bits (DMA Burst Length) */ |
9 | mjames | 4262 | #define TIM_DCR_DBL_0 (0x01UL << TIM_DCR_DBL_Pos) /*!< 0x00000100 */ |
4263 | #define TIM_DCR_DBL_1 (0x02UL << TIM_DCR_DBL_Pos) /*!< 0x00000200 */ |
||
4264 | #define TIM_DCR_DBL_2 (0x04UL << TIM_DCR_DBL_Pos) /*!< 0x00000400 */ |
||
4265 | #define TIM_DCR_DBL_3 (0x08UL << TIM_DCR_DBL_Pos) /*!< 0x00000800 */ |
||
4266 | #define TIM_DCR_DBL_4 (0x10UL << TIM_DCR_DBL_Pos) /*!< 0x00001000 */ |
||
2 | mjames | 4267 | |
4268 | /******************* Bit definition for TIM_DMAR register ******************/ |
||
4269 | #define TIM_DMAR_DMAB_Pos (0U) |
||
9 | mjames | 4270 | #define TIM_DMAR_DMAB_Msk (0xFFFFUL << TIM_DMAR_DMAB_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4271 | #define TIM_DMAR_DMAB TIM_DMAR_DMAB_Msk /*!<DMA register for burst accesses */ |
4272 | |||
4273 | /******************************************************************************/ |
||
4274 | /* */ |
||
4275 | /* Real-Time Clock */ |
||
4276 | /* */ |
||
4277 | /******************************************************************************/ |
||
4278 | |||
4279 | /******************* Bit definition for RTC_CRH register ********************/ |
||
4280 | #define RTC_CRH_SECIE_Pos (0U) |
||
9 | mjames | 4281 | #define RTC_CRH_SECIE_Msk (0x1UL << RTC_CRH_SECIE_Pos) /*!< 0x00000001 */ |
2 | mjames | 4282 | #define RTC_CRH_SECIE RTC_CRH_SECIE_Msk /*!< Second Interrupt Enable */ |
4283 | #define RTC_CRH_ALRIE_Pos (1U) |
||
9 | mjames | 4284 | #define RTC_CRH_ALRIE_Msk (0x1UL << RTC_CRH_ALRIE_Pos) /*!< 0x00000002 */ |
2 | mjames | 4285 | #define RTC_CRH_ALRIE RTC_CRH_ALRIE_Msk /*!< Alarm Interrupt Enable */ |
4286 | #define RTC_CRH_OWIE_Pos (2U) |
||
9 | mjames | 4287 | #define RTC_CRH_OWIE_Msk (0x1UL << RTC_CRH_OWIE_Pos) /*!< 0x00000004 */ |
2 | mjames | 4288 | #define RTC_CRH_OWIE RTC_CRH_OWIE_Msk /*!< OverfloW Interrupt Enable */ |
4289 | |||
4290 | /******************* Bit definition for RTC_CRL register ********************/ |
||
4291 | #define RTC_CRL_SECF_Pos (0U) |
||
9 | mjames | 4292 | #define RTC_CRL_SECF_Msk (0x1UL << RTC_CRL_SECF_Pos) /*!< 0x00000001 */ |
2 | mjames | 4293 | #define RTC_CRL_SECF RTC_CRL_SECF_Msk /*!< Second Flag */ |
4294 | #define RTC_CRL_ALRF_Pos (1U) |
||
9 | mjames | 4295 | #define RTC_CRL_ALRF_Msk (0x1UL << RTC_CRL_ALRF_Pos) /*!< 0x00000002 */ |
2 | mjames | 4296 | #define RTC_CRL_ALRF RTC_CRL_ALRF_Msk /*!< Alarm Flag */ |
4297 | #define RTC_CRL_OWF_Pos (2U) |
||
9 | mjames | 4298 | #define RTC_CRL_OWF_Msk (0x1UL << RTC_CRL_OWF_Pos) /*!< 0x00000004 */ |
2 | mjames | 4299 | #define RTC_CRL_OWF RTC_CRL_OWF_Msk /*!< OverfloW Flag */ |
4300 | #define RTC_CRL_RSF_Pos (3U) |
||
9 | mjames | 4301 | #define RTC_CRL_RSF_Msk (0x1UL << RTC_CRL_RSF_Pos) /*!< 0x00000008 */ |
2 | mjames | 4302 | #define RTC_CRL_RSF RTC_CRL_RSF_Msk /*!< Registers Synchronized Flag */ |
4303 | #define RTC_CRL_CNF_Pos (4U) |
||
9 | mjames | 4304 | #define RTC_CRL_CNF_Msk (0x1UL << RTC_CRL_CNF_Pos) /*!< 0x00000010 */ |
2 | mjames | 4305 | #define RTC_CRL_CNF RTC_CRL_CNF_Msk /*!< Configuration Flag */ |
4306 | #define RTC_CRL_RTOFF_Pos (5U) |
||
9 | mjames | 4307 | #define RTC_CRL_RTOFF_Msk (0x1UL << RTC_CRL_RTOFF_Pos) /*!< 0x00000020 */ |
2 | mjames | 4308 | #define RTC_CRL_RTOFF RTC_CRL_RTOFF_Msk /*!< RTC operation OFF */ |
4309 | |||
4310 | /******************* Bit definition for RTC_PRLH register *******************/ |
||
4311 | #define RTC_PRLH_PRL_Pos (0U) |
||
9 | mjames | 4312 | #define RTC_PRLH_PRL_Msk (0xFUL << RTC_PRLH_PRL_Pos) /*!< 0x0000000F */ |
2 | mjames | 4313 | #define RTC_PRLH_PRL RTC_PRLH_PRL_Msk /*!< RTC Prescaler Reload Value High */ |
4314 | |||
4315 | /******************* Bit definition for RTC_PRLL register *******************/ |
||
4316 | #define RTC_PRLL_PRL_Pos (0U) |
||
9 | mjames | 4317 | #define RTC_PRLL_PRL_Msk (0xFFFFUL << RTC_PRLL_PRL_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4318 | #define RTC_PRLL_PRL RTC_PRLL_PRL_Msk /*!< RTC Prescaler Reload Value Low */ |
4319 | |||
4320 | /******************* Bit definition for RTC_DIVH register *******************/ |
||
4321 | #define RTC_DIVH_RTC_DIV_Pos (0U) |
||
9 | mjames | 4322 | #define RTC_DIVH_RTC_DIV_Msk (0xFUL << RTC_DIVH_RTC_DIV_Pos) /*!< 0x0000000F */ |
2 | mjames | 4323 | #define RTC_DIVH_RTC_DIV RTC_DIVH_RTC_DIV_Msk /*!< RTC Clock Divider High */ |
4324 | |||
4325 | /******************* Bit definition for RTC_DIVL register *******************/ |
||
4326 | #define RTC_DIVL_RTC_DIV_Pos (0U) |
||
9 | mjames | 4327 | #define RTC_DIVL_RTC_DIV_Msk (0xFFFFUL << RTC_DIVL_RTC_DIV_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4328 | #define RTC_DIVL_RTC_DIV RTC_DIVL_RTC_DIV_Msk /*!< RTC Clock Divider Low */ |
4329 | |||
4330 | /******************* Bit definition for RTC_CNTH register *******************/ |
||
4331 | #define RTC_CNTH_RTC_CNT_Pos (0U) |
||
9 | mjames | 4332 | #define RTC_CNTH_RTC_CNT_Msk (0xFFFFUL << RTC_CNTH_RTC_CNT_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4333 | #define RTC_CNTH_RTC_CNT RTC_CNTH_RTC_CNT_Msk /*!< RTC Counter High */ |
4334 | |||
4335 | /******************* Bit definition for RTC_CNTL register *******************/ |
||
4336 | #define RTC_CNTL_RTC_CNT_Pos (0U) |
||
9 | mjames | 4337 | #define RTC_CNTL_RTC_CNT_Msk (0xFFFFUL << RTC_CNTL_RTC_CNT_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4338 | #define RTC_CNTL_RTC_CNT RTC_CNTL_RTC_CNT_Msk /*!< RTC Counter Low */ |
4339 | |||
4340 | /******************* Bit definition for RTC_ALRH register *******************/ |
||
4341 | #define RTC_ALRH_RTC_ALR_Pos (0U) |
||
9 | mjames | 4342 | #define RTC_ALRH_RTC_ALR_Msk (0xFFFFUL << RTC_ALRH_RTC_ALR_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4343 | #define RTC_ALRH_RTC_ALR RTC_ALRH_RTC_ALR_Msk /*!< RTC Alarm High */ |
4344 | |||
4345 | /******************* Bit definition for RTC_ALRL register *******************/ |
||
4346 | #define RTC_ALRL_RTC_ALR_Pos (0U) |
||
9 | mjames | 4347 | #define RTC_ALRL_RTC_ALR_Msk (0xFFFFUL << RTC_ALRL_RTC_ALR_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4348 | #define RTC_ALRL_RTC_ALR RTC_ALRL_RTC_ALR_Msk /*!< RTC Alarm Low */ |
4349 | |||
4350 | /******************************************************************************/ |
||
4351 | /* */ |
||
4352 | /* Independent WATCHDOG (IWDG) */ |
||
4353 | /* */ |
||
4354 | /******************************************************************************/ |
||
4355 | |||
4356 | /******************* Bit definition for IWDG_KR register ********************/ |
||
4357 | #define IWDG_KR_KEY_Pos (0U) |
||
9 | mjames | 4358 | #define IWDG_KR_KEY_Msk (0xFFFFUL << IWDG_KR_KEY_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 4359 | #define IWDG_KR_KEY IWDG_KR_KEY_Msk /*!< Key value (write only, read 0000h) */ |
4360 | |||
4361 | /******************* Bit definition for IWDG_PR register ********************/ |
||
4362 | #define IWDG_PR_PR_Pos (0U) |
||
9 | mjames | 4363 | #define IWDG_PR_PR_Msk (0x7UL << IWDG_PR_PR_Pos) /*!< 0x00000007 */ |
2 | mjames | 4364 | #define IWDG_PR_PR IWDG_PR_PR_Msk /*!< PR[2:0] (Prescaler divider) */ |
9 | mjames | 4365 | #define IWDG_PR_PR_0 (0x1UL << IWDG_PR_PR_Pos) /*!< 0x00000001 */ |
4366 | #define IWDG_PR_PR_1 (0x2UL << IWDG_PR_PR_Pos) /*!< 0x00000002 */ |
||
4367 | #define IWDG_PR_PR_2 (0x4UL << IWDG_PR_PR_Pos) /*!< 0x00000004 */ |
||
2 | mjames | 4368 | |
4369 | /******************* Bit definition for IWDG_RLR register *******************/ |
||
4370 | #define IWDG_RLR_RL_Pos (0U) |
||
9 | mjames | 4371 | #define IWDG_RLR_RL_Msk (0xFFFUL << IWDG_RLR_RL_Pos) /*!< 0x00000FFF */ |
2 | mjames | 4372 | #define IWDG_RLR_RL IWDG_RLR_RL_Msk /*!< Watchdog counter reload value */ |
4373 | |||
4374 | /******************* Bit definition for IWDG_SR register ********************/ |
||
4375 | #define IWDG_SR_PVU_Pos (0U) |
||
9 | mjames | 4376 | #define IWDG_SR_PVU_Msk (0x1UL << IWDG_SR_PVU_Pos) /*!< 0x00000001 */ |
2 | mjames | 4377 | #define IWDG_SR_PVU IWDG_SR_PVU_Msk /*!< Watchdog prescaler value update */ |
4378 | #define IWDG_SR_RVU_Pos (1U) |
||
9 | mjames | 4379 | #define IWDG_SR_RVU_Msk (0x1UL << IWDG_SR_RVU_Pos) /*!< 0x00000002 */ |
2 | mjames | 4380 | #define IWDG_SR_RVU IWDG_SR_RVU_Msk /*!< Watchdog counter reload value update */ |
4381 | |||
4382 | /******************************************************************************/ |
||
4383 | /* */ |
||
4384 | /* Window WATCHDOG (WWDG) */ |
||
4385 | /* */ |
||
4386 | /******************************************************************************/ |
||
4387 | |||
4388 | /******************* Bit definition for WWDG_CR register ********************/ |
||
4389 | #define WWDG_CR_T_Pos (0U) |
||
9 | mjames | 4390 | #define WWDG_CR_T_Msk (0x7FUL << WWDG_CR_T_Pos) /*!< 0x0000007F */ |
2 | mjames | 4391 | #define WWDG_CR_T WWDG_CR_T_Msk /*!< T[6:0] bits (7-Bit counter (MSB to LSB)) */ |
9 | mjames | 4392 | #define WWDG_CR_T_0 (0x01UL << WWDG_CR_T_Pos) /*!< 0x00000001 */ |
4393 | #define WWDG_CR_T_1 (0x02UL << WWDG_CR_T_Pos) /*!< 0x00000002 */ |
||
4394 | #define WWDG_CR_T_2 (0x04UL << WWDG_CR_T_Pos) /*!< 0x00000004 */ |
||
4395 | #define WWDG_CR_T_3 (0x08UL << WWDG_CR_T_Pos) /*!< 0x00000008 */ |
||
4396 | #define WWDG_CR_T_4 (0x10UL << WWDG_CR_T_Pos) /*!< 0x00000010 */ |
||
4397 | #define WWDG_CR_T_5 (0x20UL << WWDG_CR_T_Pos) /*!< 0x00000020 */ |
||
4398 | #define WWDG_CR_T_6 (0x40UL << WWDG_CR_T_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 4399 | |
4400 | /* Legacy defines */ |
||
4401 | #define WWDG_CR_T0 WWDG_CR_T_0 |
||
4402 | #define WWDG_CR_T1 WWDG_CR_T_1 |
||
4403 | #define WWDG_CR_T2 WWDG_CR_T_2 |
||
4404 | #define WWDG_CR_T3 WWDG_CR_T_3 |
||
4405 | #define WWDG_CR_T4 WWDG_CR_T_4 |
||
4406 | #define WWDG_CR_T5 WWDG_CR_T_5 |
||
4407 | #define WWDG_CR_T6 WWDG_CR_T_6 |
||
4408 | |||
4409 | #define WWDG_CR_WDGA_Pos (7U) |
||
9 | mjames | 4410 | #define WWDG_CR_WDGA_Msk (0x1UL << WWDG_CR_WDGA_Pos) /*!< 0x00000080 */ |
2 | mjames | 4411 | #define WWDG_CR_WDGA WWDG_CR_WDGA_Msk /*!< Activation bit */ |
4412 | |||
4413 | /******************* Bit definition for WWDG_CFR register *******************/ |
||
4414 | #define WWDG_CFR_W_Pos (0U) |
||
9 | mjames | 4415 | #define WWDG_CFR_W_Msk (0x7FUL << WWDG_CFR_W_Pos) /*!< 0x0000007F */ |
2 | mjames | 4416 | #define WWDG_CFR_W WWDG_CFR_W_Msk /*!< W[6:0] bits (7-bit window value) */ |
9 | mjames | 4417 | #define WWDG_CFR_W_0 (0x01UL << WWDG_CFR_W_Pos) /*!< 0x00000001 */ |
4418 | #define WWDG_CFR_W_1 (0x02UL << WWDG_CFR_W_Pos) /*!< 0x00000002 */ |
||
4419 | #define WWDG_CFR_W_2 (0x04UL << WWDG_CFR_W_Pos) /*!< 0x00000004 */ |
||
4420 | #define WWDG_CFR_W_3 (0x08UL << WWDG_CFR_W_Pos) /*!< 0x00000008 */ |
||
4421 | #define WWDG_CFR_W_4 (0x10UL << WWDG_CFR_W_Pos) /*!< 0x00000010 */ |
||
4422 | #define WWDG_CFR_W_5 (0x20UL << WWDG_CFR_W_Pos) /*!< 0x00000020 */ |
||
4423 | #define WWDG_CFR_W_6 (0x40UL << WWDG_CFR_W_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 4424 | |
4425 | /* Legacy defines */ |
||
4426 | #define WWDG_CFR_W0 WWDG_CFR_W_0 |
||
4427 | #define WWDG_CFR_W1 WWDG_CFR_W_1 |
||
4428 | #define WWDG_CFR_W2 WWDG_CFR_W_2 |
||
4429 | #define WWDG_CFR_W3 WWDG_CFR_W_3 |
||
4430 | #define WWDG_CFR_W4 WWDG_CFR_W_4 |
||
4431 | #define WWDG_CFR_W5 WWDG_CFR_W_5 |
||
4432 | #define WWDG_CFR_W6 WWDG_CFR_W_6 |
||
4433 | |||
4434 | #define WWDG_CFR_WDGTB_Pos (7U) |
||
9 | mjames | 4435 | #define WWDG_CFR_WDGTB_Msk (0x3UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00000180 */ |
2 | mjames | 4436 | #define WWDG_CFR_WDGTB WWDG_CFR_WDGTB_Msk /*!< WDGTB[1:0] bits (Timer Base) */ |
9 | mjames | 4437 | #define WWDG_CFR_WDGTB_0 (0x1UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00000080 */ |
4438 | #define WWDG_CFR_WDGTB_1 (0x2UL << WWDG_CFR_WDGTB_Pos) /*!< 0x00000100 */ |
||
2 | mjames | 4439 | |
4440 | /* Legacy defines */ |
||
4441 | #define WWDG_CFR_WDGTB0 WWDG_CFR_WDGTB_0 |
||
4442 | #define WWDG_CFR_WDGTB1 WWDG_CFR_WDGTB_1 |
||
4443 | |||
4444 | #define WWDG_CFR_EWI_Pos (9U) |
||
9 | mjames | 4445 | #define WWDG_CFR_EWI_Msk (0x1UL << WWDG_CFR_EWI_Pos) /*!< 0x00000200 */ |
2 | mjames | 4446 | #define WWDG_CFR_EWI WWDG_CFR_EWI_Msk /*!< Early Wakeup Interrupt */ |
4447 | |||
4448 | /******************* Bit definition for WWDG_SR register ********************/ |
||
4449 | #define WWDG_SR_EWIF_Pos (0U) |
||
9 | mjames | 4450 | #define WWDG_SR_EWIF_Msk (0x1UL << WWDG_SR_EWIF_Pos) /*!< 0x00000001 */ |
2 | mjames | 4451 | #define WWDG_SR_EWIF WWDG_SR_EWIF_Msk /*!< Early Wakeup Interrupt Flag */ |
4452 | |||
4453 | /******************************************************************************/ |
||
4454 | /* */ |
||
4455 | /* USB Device FS */ |
||
4456 | /* */ |
||
4457 | /******************************************************************************/ |
||
4458 | |||
4459 | /*!< Endpoint-specific registers */ |
||
4460 | #define USB_EP0R USB_BASE /*!< Endpoint 0 register address */ |
||
4461 | #define USB_EP1R (USB_BASE + 0x00000004) /*!< Endpoint 1 register address */ |
||
4462 | #define USB_EP2R (USB_BASE + 0x00000008) /*!< Endpoint 2 register address */ |
||
4463 | #define USB_EP3R (USB_BASE + 0x0000000C) /*!< Endpoint 3 register address */ |
||
4464 | #define USB_EP4R (USB_BASE + 0x00000010) /*!< Endpoint 4 register address */ |
||
4465 | #define USB_EP5R (USB_BASE + 0x00000014) /*!< Endpoint 5 register address */ |
||
4466 | #define USB_EP6R (USB_BASE + 0x00000018) /*!< Endpoint 6 register address */ |
||
4467 | #define USB_EP7R (USB_BASE + 0x0000001C) /*!< Endpoint 7 register address */ |
||
4468 | |||
4469 | /* bit positions */ |
||
4470 | #define USB_EP_CTR_RX_Pos (15U) |
||
9 | mjames | 4471 | #define USB_EP_CTR_RX_Msk (0x1UL << USB_EP_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4472 | #define USB_EP_CTR_RX USB_EP_CTR_RX_Msk /*!< EndPoint Correct TRansfer RX */ |
4473 | #define USB_EP_DTOG_RX_Pos (14U) |
||
9 | mjames | 4474 | #define USB_EP_DTOG_RX_Msk (0x1UL << USB_EP_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4475 | #define USB_EP_DTOG_RX USB_EP_DTOG_RX_Msk /*!< EndPoint Data TOGGLE RX */ |
4476 | #define USB_EPRX_STAT_Pos (12U) |
||
9 | mjames | 4477 | #define USB_EPRX_STAT_Msk (0x3UL << USB_EPRX_STAT_Pos) /*!< 0x00003000 */ |
2 | mjames | 4478 | #define USB_EPRX_STAT USB_EPRX_STAT_Msk /*!< EndPoint RX STATus bit field */ |
4479 | #define USB_EP_SETUP_Pos (11U) |
||
9 | mjames | 4480 | #define USB_EP_SETUP_Msk (0x1UL << USB_EP_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4481 | #define USB_EP_SETUP USB_EP_SETUP_Msk /*!< EndPoint SETUP */ |
4482 | #define USB_EP_T_FIELD_Pos (9U) |
||
9 | mjames | 4483 | #define USB_EP_T_FIELD_Msk (0x3UL << USB_EP_T_FIELD_Pos) /*!< 0x00000600 */ |
2 | mjames | 4484 | #define USB_EP_T_FIELD USB_EP_T_FIELD_Msk /*!< EndPoint TYPE */ |
4485 | #define USB_EP_KIND_Pos (8U) |
||
9 | mjames | 4486 | #define USB_EP_KIND_Msk (0x1UL << USB_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4487 | #define USB_EP_KIND USB_EP_KIND_Msk /*!< EndPoint KIND */ |
4488 | #define USB_EP_CTR_TX_Pos (7U) |
||
9 | mjames | 4489 | #define USB_EP_CTR_TX_Msk (0x1UL << USB_EP_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4490 | #define USB_EP_CTR_TX USB_EP_CTR_TX_Msk /*!< EndPoint Correct TRansfer TX */ |
4491 | #define USB_EP_DTOG_TX_Pos (6U) |
||
9 | mjames | 4492 | #define USB_EP_DTOG_TX_Msk (0x1UL << USB_EP_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4493 | #define USB_EP_DTOG_TX USB_EP_DTOG_TX_Msk /*!< EndPoint Data TOGGLE TX */ |
4494 | #define USB_EPTX_STAT_Pos (4U) |
||
9 | mjames | 4495 | #define USB_EPTX_STAT_Msk (0x3UL << USB_EPTX_STAT_Pos) /*!< 0x00000030 */ |
2 | mjames | 4496 | #define USB_EPTX_STAT USB_EPTX_STAT_Msk /*!< EndPoint TX STATus bit field */ |
4497 | #define USB_EPADDR_FIELD_Pos (0U) |
||
9 | mjames | 4498 | #define USB_EPADDR_FIELD_Msk (0xFUL << USB_EPADDR_FIELD_Pos) /*!< 0x0000000F */ |
2 | mjames | 4499 | #define USB_EPADDR_FIELD USB_EPADDR_FIELD_Msk /*!< EndPoint ADDRess FIELD */ |
4500 | |||
4501 | /* EndPoint REGister MASK (no toggle fields) */ |
||
4502 | #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) |
||
4503 | /*!< EP_TYPE[1:0] EndPoint TYPE */ |
||
4504 | #define USB_EP_TYPE_MASK_Pos (9U) |
||
9 | mjames | 4505 | #define USB_EP_TYPE_MASK_Msk (0x3UL << USB_EP_TYPE_MASK_Pos) /*!< 0x00000600 */ |
2 | mjames | 4506 | #define USB_EP_TYPE_MASK USB_EP_TYPE_MASK_Msk /*!< EndPoint TYPE Mask */ |
4507 | #define USB_EP_BULK 0x00000000U /*!< EndPoint BULK */ |
||
4508 | #define USB_EP_CONTROL 0x00000200U /*!< EndPoint CONTROL */ |
||
4509 | #define USB_EP_ISOCHRONOUS 0x00000400U /*!< EndPoint ISOCHRONOUS */ |
||
4510 | #define USB_EP_INTERRUPT 0x00000600U /*!< EndPoint INTERRUPT */ |
||
4511 | #define USB_EP_T_MASK (~USB_EP_T_FIELD & USB_EPREG_MASK) |
||
4512 | |||
4513 | #define USB_EPKIND_MASK (~USB_EP_KIND & USB_EPREG_MASK) /*!< EP_KIND EndPoint KIND */ |
||
4514 | /*!< STAT_TX[1:0] STATus for TX transfer */ |
||
4515 | #define USB_EP_TX_DIS 0x00000000U /*!< EndPoint TX DISabled */ |
||
4516 | #define USB_EP_TX_STALL 0x00000010U /*!< EndPoint TX STALLed */ |
||
4517 | #define USB_EP_TX_NAK 0x00000020U /*!< EndPoint TX NAKed */ |
||
4518 | #define USB_EP_TX_VALID 0x00000030U /*!< EndPoint TX VALID */ |
||
4519 | #define USB_EPTX_DTOG1 0x00000010U /*!< EndPoint TX Data TOGgle bit1 */ |
||
4520 | #define USB_EPTX_DTOG2 0x00000020U /*!< EndPoint TX Data TOGgle bit2 */ |
||
4521 | #define USB_EPTX_DTOGMASK (USB_EPTX_STAT|USB_EPREG_MASK) |
||
4522 | /*!< STAT_RX[1:0] STATus for RX transfer */ |
||
4523 | #define USB_EP_RX_DIS 0x00000000U /*!< EndPoint RX DISabled */ |
||
4524 | #define USB_EP_RX_STALL 0x00001000U /*!< EndPoint RX STALLed */ |
||
4525 | #define USB_EP_RX_NAK 0x00002000U /*!< EndPoint RX NAKed */ |
||
4526 | #define USB_EP_RX_VALID 0x00003000U /*!< EndPoint RX VALID */ |
||
4527 | #define USB_EPRX_DTOG1 0x00001000U /*!< EndPoint RX Data TOGgle bit1 */ |
||
4528 | #define USB_EPRX_DTOG2 0x00002000U /*!< EndPoint RX Data TOGgle bit1 */ |
||
4529 | #define USB_EPRX_DTOGMASK (USB_EPRX_STAT|USB_EPREG_MASK) |
||
4530 | |||
4531 | /******************* Bit definition for USB_EP0R register *******************/ |
||
4532 | #define USB_EP0R_EA_Pos (0U) |
||
9 | mjames | 4533 | #define USB_EP0R_EA_Msk (0xFUL << USB_EP0R_EA_Pos) /*!< 0x0000000F */ |
2 | mjames | 4534 | #define USB_EP0R_EA USB_EP0R_EA_Msk /*!< Endpoint Address */ |
4535 | |||
4536 | #define USB_EP0R_STAT_TX_Pos (4U) |
||
9 | mjames | 4537 | #define USB_EP0R_STAT_TX_Msk (0x3UL << USB_EP0R_STAT_TX_Pos) /*!< 0x00000030 */ |
2 | mjames | 4538 | #define USB_EP0R_STAT_TX USB_EP0R_STAT_TX_Msk /*!< STAT_TX[1:0] bits (Status bits, for transmission transfers) */ |
9 | mjames | 4539 | #define USB_EP0R_STAT_TX_0 (0x1UL << USB_EP0R_STAT_TX_Pos) /*!< 0x00000010 */ |
4540 | #define USB_EP0R_STAT_TX_1 (0x2UL << USB_EP0R_STAT_TX_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 4541 | |
4542 | #define USB_EP0R_DTOG_TX_Pos (6U) |
||
9 | mjames | 4543 | #define USB_EP0R_DTOG_TX_Msk (0x1UL << USB_EP0R_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4544 | #define USB_EP0R_DTOG_TX USB_EP0R_DTOG_TX_Msk /*!< Data Toggle, for transmission transfers */ |
4545 | #define USB_EP0R_CTR_TX_Pos (7U) |
||
9 | mjames | 4546 | #define USB_EP0R_CTR_TX_Msk (0x1UL << USB_EP0R_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4547 | #define USB_EP0R_CTR_TX USB_EP0R_CTR_TX_Msk /*!< Correct Transfer for transmission */ |
4548 | #define USB_EP0R_EP_KIND_Pos (8U) |
||
9 | mjames | 4549 | #define USB_EP0R_EP_KIND_Msk (0x1UL << USB_EP0R_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4550 | #define USB_EP0R_EP_KIND USB_EP0R_EP_KIND_Msk /*!< Endpoint Kind */ |
4551 | |||
4552 | #define USB_EP0R_EP_TYPE_Pos (9U) |
||
9 | mjames | 4553 | #define USB_EP0R_EP_TYPE_Msk (0x3UL << USB_EP0R_EP_TYPE_Pos) /*!< 0x00000600 */ |
2 | mjames | 4554 | #define USB_EP0R_EP_TYPE USB_EP0R_EP_TYPE_Msk /*!< EP_TYPE[1:0] bits (Endpoint type) */ |
9 | mjames | 4555 | #define USB_EP0R_EP_TYPE_0 (0x1UL << USB_EP0R_EP_TYPE_Pos) /*!< 0x00000200 */ |
4556 | #define USB_EP0R_EP_TYPE_1 (0x2UL << USB_EP0R_EP_TYPE_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 4557 | |
4558 | #define USB_EP0R_SETUP_Pos (11U) |
||
9 | mjames | 4559 | #define USB_EP0R_SETUP_Msk (0x1UL << USB_EP0R_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4560 | #define USB_EP0R_SETUP USB_EP0R_SETUP_Msk /*!< Setup transaction completed */ |
4561 | |||
4562 | #define USB_EP0R_STAT_RX_Pos (12U) |
||
9 | mjames | 4563 | #define USB_EP0R_STAT_RX_Msk (0x3UL << USB_EP0R_STAT_RX_Pos) /*!< 0x00003000 */ |
2 | mjames | 4564 | #define USB_EP0R_STAT_RX USB_EP0R_STAT_RX_Msk /*!< STAT_RX[1:0] bits (Status bits, for reception transfers) */ |
9 | mjames | 4565 | #define USB_EP0R_STAT_RX_0 (0x1UL << USB_EP0R_STAT_RX_Pos) /*!< 0x00001000 */ |
4566 | #define USB_EP0R_STAT_RX_1 (0x2UL << USB_EP0R_STAT_RX_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 4567 | |
4568 | #define USB_EP0R_DTOG_RX_Pos (14U) |
||
9 | mjames | 4569 | #define USB_EP0R_DTOG_RX_Msk (0x1UL << USB_EP0R_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4570 | #define USB_EP0R_DTOG_RX USB_EP0R_DTOG_RX_Msk /*!< Data Toggle, for reception transfers */ |
4571 | #define USB_EP0R_CTR_RX_Pos (15U) |
||
9 | mjames | 4572 | #define USB_EP0R_CTR_RX_Msk (0x1UL << USB_EP0R_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4573 | #define USB_EP0R_CTR_RX USB_EP0R_CTR_RX_Msk /*!< Correct Transfer for reception */ |
4574 | |||
4575 | /******************* Bit definition for USB_EP1R register *******************/ |
||
4576 | #define USB_EP1R_EA_Pos (0U) |
||
9 | mjames | 4577 | #define USB_EP1R_EA_Msk (0xFUL << USB_EP1R_EA_Pos) /*!< 0x0000000F */ |
2 | mjames | 4578 | #define USB_EP1R_EA USB_EP1R_EA_Msk /*!< Endpoint Address */ |
4579 | |||
4580 | #define USB_EP1R_STAT_TX_Pos (4U) |
||
9 | mjames | 4581 | #define USB_EP1R_STAT_TX_Msk (0x3UL << USB_EP1R_STAT_TX_Pos) /*!< 0x00000030 */ |
2 | mjames | 4582 | #define USB_EP1R_STAT_TX USB_EP1R_STAT_TX_Msk /*!< STAT_TX[1:0] bits (Status bits, for transmission transfers) */ |
9 | mjames | 4583 | #define USB_EP1R_STAT_TX_0 (0x1UL << USB_EP1R_STAT_TX_Pos) /*!< 0x00000010 */ |
4584 | #define USB_EP1R_STAT_TX_1 (0x2UL << USB_EP1R_STAT_TX_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 4585 | |
4586 | #define USB_EP1R_DTOG_TX_Pos (6U) |
||
9 | mjames | 4587 | #define USB_EP1R_DTOG_TX_Msk (0x1UL << USB_EP1R_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4588 | #define USB_EP1R_DTOG_TX USB_EP1R_DTOG_TX_Msk /*!< Data Toggle, for transmission transfers */ |
4589 | #define USB_EP1R_CTR_TX_Pos (7U) |
||
9 | mjames | 4590 | #define USB_EP1R_CTR_TX_Msk (0x1UL << USB_EP1R_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4591 | #define USB_EP1R_CTR_TX USB_EP1R_CTR_TX_Msk /*!< Correct Transfer for transmission */ |
4592 | #define USB_EP1R_EP_KIND_Pos (8U) |
||
9 | mjames | 4593 | #define USB_EP1R_EP_KIND_Msk (0x1UL << USB_EP1R_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4594 | #define USB_EP1R_EP_KIND USB_EP1R_EP_KIND_Msk /*!< Endpoint Kind */ |
4595 | |||
4596 | #define USB_EP1R_EP_TYPE_Pos (9U) |
||
9 | mjames | 4597 | #define USB_EP1R_EP_TYPE_Msk (0x3UL << USB_EP1R_EP_TYPE_Pos) /*!< 0x00000600 */ |
2 | mjames | 4598 | #define USB_EP1R_EP_TYPE USB_EP1R_EP_TYPE_Msk /*!< EP_TYPE[1:0] bits (Endpoint type) */ |
9 | mjames | 4599 | #define USB_EP1R_EP_TYPE_0 (0x1UL << USB_EP1R_EP_TYPE_Pos) /*!< 0x00000200 */ |
4600 | #define USB_EP1R_EP_TYPE_1 (0x2UL << USB_EP1R_EP_TYPE_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 4601 | |
4602 | #define USB_EP1R_SETUP_Pos (11U) |
||
9 | mjames | 4603 | #define USB_EP1R_SETUP_Msk (0x1UL << USB_EP1R_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4604 | #define USB_EP1R_SETUP USB_EP1R_SETUP_Msk /*!< Setup transaction completed */ |
4605 | |||
4606 | #define USB_EP1R_STAT_RX_Pos (12U) |
||
9 | mjames | 4607 | #define USB_EP1R_STAT_RX_Msk (0x3UL << USB_EP1R_STAT_RX_Pos) /*!< 0x00003000 */ |
2 | mjames | 4608 | #define USB_EP1R_STAT_RX USB_EP1R_STAT_RX_Msk /*!< STAT_RX[1:0] bits (Status bits, for reception transfers) */ |
9 | mjames | 4609 | #define USB_EP1R_STAT_RX_0 (0x1UL << USB_EP1R_STAT_RX_Pos) /*!< 0x00001000 */ |
4610 | #define USB_EP1R_STAT_RX_1 (0x2UL << USB_EP1R_STAT_RX_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 4611 | |
4612 | #define USB_EP1R_DTOG_RX_Pos (14U) |
||
9 | mjames | 4613 | #define USB_EP1R_DTOG_RX_Msk (0x1UL << USB_EP1R_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4614 | #define USB_EP1R_DTOG_RX USB_EP1R_DTOG_RX_Msk /*!< Data Toggle, for reception transfers */ |
4615 | #define USB_EP1R_CTR_RX_Pos (15U) |
||
9 | mjames | 4616 | #define USB_EP1R_CTR_RX_Msk (0x1UL << USB_EP1R_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4617 | #define USB_EP1R_CTR_RX USB_EP1R_CTR_RX_Msk /*!< Correct Transfer for reception */ |
4618 | |||
4619 | /******************* Bit definition for USB_EP2R register *******************/ |
||
4620 | #define USB_EP2R_EA_Pos (0U) |
||
9 | mjames | 4621 | #define USB_EP2R_EA_Msk (0xFUL << USB_EP2R_EA_Pos) /*!< 0x0000000F */ |
2 | mjames | 4622 | #define USB_EP2R_EA USB_EP2R_EA_Msk /*!< Endpoint Address */ |
4623 | |||
4624 | #define USB_EP2R_STAT_TX_Pos (4U) |
||
9 | mjames | 4625 | #define USB_EP2R_STAT_TX_Msk (0x3UL << USB_EP2R_STAT_TX_Pos) /*!< 0x00000030 */ |
2 | mjames | 4626 | #define USB_EP2R_STAT_TX USB_EP2R_STAT_TX_Msk /*!< STAT_TX[1:0] bits (Status bits, for transmission transfers) */ |
9 | mjames | 4627 | #define USB_EP2R_STAT_TX_0 (0x1UL << USB_EP2R_STAT_TX_Pos) /*!< 0x00000010 */ |
4628 | #define USB_EP2R_STAT_TX_1 (0x2UL << USB_EP2R_STAT_TX_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 4629 | |
4630 | #define USB_EP2R_DTOG_TX_Pos (6U) |
||
9 | mjames | 4631 | #define USB_EP2R_DTOG_TX_Msk (0x1UL << USB_EP2R_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4632 | #define USB_EP2R_DTOG_TX USB_EP2R_DTOG_TX_Msk /*!< Data Toggle, for transmission transfers */ |
4633 | #define USB_EP2R_CTR_TX_Pos (7U) |
||
9 | mjames | 4634 | #define USB_EP2R_CTR_TX_Msk (0x1UL << USB_EP2R_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4635 | #define USB_EP2R_CTR_TX USB_EP2R_CTR_TX_Msk /*!< Correct Transfer for transmission */ |
4636 | #define USB_EP2R_EP_KIND_Pos (8U) |
||
9 | mjames | 4637 | #define USB_EP2R_EP_KIND_Msk (0x1UL << USB_EP2R_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4638 | #define USB_EP2R_EP_KIND USB_EP2R_EP_KIND_Msk /*!< Endpoint Kind */ |
4639 | |||
4640 | #define USB_EP2R_EP_TYPE_Pos (9U) |
||
9 | mjames | 4641 | #define USB_EP2R_EP_TYPE_Msk (0x3UL << USB_EP2R_EP_TYPE_Pos) /*!< 0x00000600 */ |
2 | mjames | 4642 | #define USB_EP2R_EP_TYPE USB_EP2R_EP_TYPE_Msk /*!< EP_TYPE[1:0] bits (Endpoint type) */ |
9 | mjames | 4643 | #define USB_EP2R_EP_TYPE_0 (0x1UL << USB_EP2R_EP_TYPE_Pos) /*!< 0x00000200 */ |
4644 | #define USB_EP2R_EP_TYPE_1 (0x2UL << USB_EP2R_EP_TYPE_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 4645 | |
4646 | #define USB_EP2R_SETUP_Pos (11U) |
||
9 | mjames | 4647 | #define USB_EP2R_SETUP_Msk (0x1UL << USB_EP2R_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4648 | #define USB_EP2R_SETUP USB_EP2R_SETUP_Msk /*!< Setup transaction completed */ |
4649 | |||
4650 | #define USB_EP2R_STAT_RX_Pos (12U) |
||
9 | mjames | 4651 | #define USB_EP2R_STAT_RX_Msk (0x3UL << USB_EP2R_STAT_RX_Pos) /*!< 0x00003000 */ |
2 | mjames | 4652 | #define USB_EP2R_STAT_RX USB_EP2R_STAT_RX_Msk /*!< STAT_RX[1:0] bits (Status bits, for reception transfers) */ |
9 | mjames | 4653 | #define USB_EP2R_STAT_RX_0 (0x1UL << USB_EP2R_STAT_RX_Pos) /*!< 0x00001000 */ |
4654 | #define USB_EP2R_STAT_RX_1 (0x2UL << USB_EP2R_STAT_RX_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 4655 | |
4656 | #define USB_EP2R_DTOG_RX_Pos (14U) |
||
9 | mjames | 4657 | #define USB_EP2R_DTOG_RX_Msk (0x1UL << USB_EP2R_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4658 | #define USB_EP2R_DTOG_RX USB_EP2R_DTOG_RX_Msk /*!< Data Toggle, for reception transfers */ |
4659 | #define USB_EP2R_CTR_RX_Pos (15U) |
||
9 | mjames | 4660 | #define USB_EP2R_CTR_RX_Msk (0x1UL << USB_EP2R_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4661 | #define USB_EP2R_CTR_RX USB_EP2R_CTR_RX_Msk /*!< Correct Transfer for reception */ |
4662 | |||
4663 | /******************* Bit definition for USB_EP3R register *******************/ |
||
4664 | #define USB_EP3R_EA_Pos (0U) |
||
9 | mjames | 4665 | #define USB_EP3R_EA_Msk (0xFUL << USB_EP3R_EA_Pos) /*!< 0x0000000F */ |
2 | mjames | 4666 | #define USB_EP3R_EA USB_EP3R_EA_Msk /*!< Endpoint Address */ |
4667 | |||
4668 | #define USB_EP3R_STAT_TX_Pos (4U) |
||
9 | mjames | 4669 | #define USB_EP3R_STAT_TX_Msk (0x3UL << USB_EP3R_STAT_TX_Pos) /*!< 0x00000030 */ |
2 | mjames | 4670 | #define USB_EP3R_STAT_TX USB_EP3R_STAT_TX_Msk /*!< STAT_TX[1:0] bits (Status bits, for transmission transfers) */ |
9 | mjames | 4671 | #define USB_EP3R_STAT_TX_0 (0x1UL << USB_EP3R_STAT_TX_Pos) /*!< 0x00000010 */ |
4672 | #define USB_EP3R_STAT_TX_1 (0x2UL << USB_EP3R_STAT_TX_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 4673 | |
4674 | #define USB_EP3R_DTOG_TX_Pos (6U) |
||
9 | mjames | 4675 | #define USB_EP3R_DTOG_TX_Msk (0x1UL << USB_EP3R_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4676 | #define USB_EP3R_DTOG_TX USB_EP3R_DTOG_TX_Msk /*!< Data Toggle, for transmission transfers */ |
4677 | #define USB_EP3R_CTR_TX_Pos (7U) |
||
9 | mjames | 4678 | #define USB_EP3R_CTR_TX_Msk (0x1UL << USB_EP3R_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4679 | #define USB_EP3R_CTR_TX USB_EP3R_CTR_TX_Msk /*!< Correct Transfer for transmission */ |
4680 | #define USB_EP3R_EP_KIND_Pos (8U) |
||
9 | mjames | 4681 | #define USB_EP3R_EP_KIND_Msk (0x1UL << USB_EP3R_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4682 | #define USB_EP3R_EP_KIND USB_EP3R_EP_KIND_Msk /*!< Endpoint Kind */ |
4683 | |||
4684 | #define USB_EP3R_EP_TYPE_Pos (9U) |
||
9 | mjames | 4685 | #define USB_EP3R_EP_TYPE_Msk (0x3UL << USB_EP3R_EP_TYPE_Pos) /*!< 0x00000600 */ |
2 | mjames | 4686 | #define USB_EP3R_EP_TYPE USB_EP3R_EP_TYPE_Msk /*!< EP_TYPE[1:0] bits (Endpoint type) */ |
9 | mjames | 4687 | #define USB_EP3R_EP_TYPE_0 (0x1UL << USB_EP3R_EP_TYPE_Pos) /*!< 0x00000200 */ |
4688 | #define USB_EP3R_EP_TYPE_1 (0x2UL << USB_EP3R_EP_TYPE_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 4689 | |
4690 | #define USB_EP3R_SETUP_Pos (11U) |
||
9 | mjames | 4691 | #define USB_EP3R_SETUP_Msk (0x1UL << USB_EP3R_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4692 | #define USB_EP3R_SETUP USB_EP3R_SETUP_Msk /*!< Setup transaction completed */ |
4693 | |||
4694 | #define USB_EP3R_STAT_RX_Pos (12U) |
||
9 | mjames | 4695 | #define USB_EP3R_STAT_RX_Msk (0x3UL << USB_EP3R_STAT_RX_Pos) /*!< 0x00003000 */ |
2 | mjames | 4696 | #define USB_EP3R_STAT_RX USB_EP3R_STAT_RX_Msk /*!< STAT_RX[1:0] bits (Status bits, for reception transfers) */ |
9 | mjames | 4697 | #define USB_EP3R_STAT_RX_0 (0x1UL << USB_EP3R_STAT_RX_Pos) /*!< 0x00001000 */ |
4698 | #define USB_EP3R_STAT_RX_1 (0x2UL << USB_EP3R_STAT_RX_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 4699 | |
4700 | #define USB_EP3R_DTOG_RX_Pos (14U) |
||
9 | mjames | 4701 | #define USB_EP3R_DTOG_RX_Msk (0x1UL << USB_EP3R_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4702 | #define USB_EP3R_DTOG_RX USB_EP3R_DTOG_RX_Msk /*!< Data Toggle, for reception transfers */ |
4703 | #define USB_EP3R_CTR_RX_Pos (15U) |
||
9 | mjames | 4704 | #define USB_EP3R_CTR_RX_Msk (0x1UL << USB_EP3R_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4705 | #define USB_EP3R_CTR_RX USB_EP3R_CTR_RX_Msk /*!< Correct Transfer for reception */ |
4706 | |||
4707 | /******************* Bit definition for USB_EP4R register *******************/ |
||
4708 | #define USB_EP4R_EA_Pos (0U) |
||
9 | mjames | 4709 | #define USB_EP4R_EA_Msk (0xFUL << USB_EP4R_EA_Pos) /*!< 0x0000000F */ |
2 | mjames | 4710 | #define USB_EP4R_EA USB_EP4R_EA_Msk /*!< Endpoint Address */ |
4711 | |||
4712 | #define USB_EP4R_STAT_TX_Pos (4U) |
||
9 | mjames | 4713 | #define USB_EP4R_STAT_TX_Msk (0x3UL << USB_EP4R_STAT_TX_Pos) /*!< 0x00000030 */ |
2 | mjames | 4714 | #define USB_EP4R_STAT_TX USB_EP4R_STAT_TX_Msk /*!< STAT_TX[1:0] bits (Status bits, for transmission transfers) */ |
9 | mjames | 4715 | #define USB_EP4R_STAT_TX_0 (0x1UL << USB_EP4R_STAT_TX_Pos) /*!< 0x00000010 */ |
4716 | #define USB_EP4R_STAT_TX_1 (0x2UL << USB_EP4R_STAT_TX_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 4717 | |
4718 | #define USB_EP4R_DTOG_TX_Pos (6U) |
||
9 | mjames | 4719 | #define USB_EP4R_DTOG_TX_Msk (0x1UL << USB_EP4R_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4720 | #define USB_EP4R_DTOG_TX USB_EP4R_DTOG_TX_Msk /*!< Data Toggle, for transmission transfers */ |
4721 | #define USB_EP4R_CTR_TX_Pos (7U) |
||
9 | mjames | 4722 | #define USB_EP4R_CTR_TX_Msk (0x1UL << USB_EP4R_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4723 | #define USB_EP4R_CTR_TX USB_EP4R_CTR_TX_Msk /*!< Correct Transfer for transmission */ |
4724 | #define USB_EP4R_EP_KIND_Pos (8U) |
||
9 | mjames | 4725 | #define USB_EP4R_EP_KIND_Msk (0x1UL << USB_EP4R_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4726 | #define USB_EP4R_EP_KIND USB_EP4R_EP_KIND_Msk /*!< Endpoint Kind */ |
4727 | |||
4728 | #define USB_EP4R_EP_TYPE_Pos (9U) |
||
9 | mjames | 4729 | #define USB_EP4R_EP_TYPE_Msk (0x3UL << USB_EP4R_EP_TYPE_Pos) /*!< 0x00000600 */ |
2 | mjames | 4730 | #define USB_EP4R_EP_TYPE USB_EP4R_EP_TYPE_Msk /*!< EP_TYPE[1:0] bits (Endpoint type) */ |
9 | mjames | 4731 | #define USB_EP4R_EP_TYPE_0 (0x1UL << USB_EP4R_EP_TYPE_Pos) /*!< 0x00000200 */ |
4732 | #define USB_EP4R_EP_TYPE_1 (0x2UL << USB_EP4R_EP_TYPE_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 4733 | |
4734 | #define USB_EP4R_SETUP_Pos (11U) |
||
9 | mjames | 4735 | #define USB_EP4R_SETUP_Msk (0x1UL << USB_EP4R_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4736 | #define USB_EP4R_SETUP USB_EP4R_SETUP_Msk /*!< Setup transaction completed */ |
4737 | |||
4738 | #define USB_EP4R_STAT_RX_Pos (12U) |
||
9 | mjames | 4739 | #define USB_EP4R_STAT_RX_Msk (0x3UL << USB_EP4R_STAT_RX_Pos) /*!< 0x00003000 */ |
2 | mjames | 4740 | #define USB_EP4R_STAT_RX USB_EP4R_STAT_RX_Msk /*!< STAT_RX[1:0] bits (Status bits, for reception transfers) */ |
9 | mjames | 4741 | #define USB_EP4R_STAT_RX_0 (0x1UL << USB_EP4R_STAT_RX_Pos) /*!< 0x00001000 */ |
4742 | #define USB_EP4R_STAT_RX_1 (0x2UL << USB_EP4R_STAT_RX_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 4743 | |
4744 | #define USB_EP4R_DTOG_RX_Pos (14U) |
||
9 | mjames | 4745 | #define USB_EP4R_DTOG_RX_Msk (0x1UL << USB_EP4R_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4746 | #define USB_EP4R_DTOG_RX USB_EP4R_DTOG_RX_Msk /*!< Data Toggle, for reception transfers */ |
4747 | #define USB_EP4R_CTR_RX_Pos (15U) |
||
9 | mjames | 4748 | #define USB_EP4R_CTR_RX_Msk (0x1UL << USB_EP4R_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4749 | #define USB_EP4R_CTR_RX USB_EP4R_CTR_RX_Msk /*!< Correct Transfer for reception */ |
4750 | |||
4751 | /******************* Bit definition for USB_EP5R register *******************/ |
||
4752 | #define USB_EP5R_EA_Pos (0U) |
||
9 | mjames | 4753 | #define USB_EP5R_EA_Msk (0xFUL << USB_EP5R_EA_Pos) /*!< 0x0000000F */ |
2 | mjames | 4754 | #define USB_EP5R_EA USB_EP5R_EA_Msk /*!< Endpoint Address */ |
4755 | |||
4756 | #define USB_EP5R_STAT_TX_Pos (4U) |
||
9 | mjames | 4757 | #define USB_EP5R_STAT_TX_Msk (0x3UL << USB_EP5R_STAT_TX_Pos) /*!< 0x00000030 */ |
2 | mjames | 4758 | #define USB_EP5R_STAT_TX USB_EP5R_STAT_TX_Msk /*!< STAT_TX[1:0] bits (Status bits, for transmission transfers) */ |
9 | mjames | 4759 | #define USB_EP5R_STAT_TX_0 (0x1UL << USB_EP5R_STAT_TX_Pos) /*!< 0x00000010 */ |
4760 | #define USB_EP5R_STAT_TX_1 (0x2UL << USB_EP5R_STAT_TX_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 4761 | |
4762 | #define USB_EP5R_DTOG_TX_Pos (6U) |
||
9 | mjames | 4763 | #define USB_EP5R_DTOG_TX_Msk (0x1UL << USB_EP5R_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4764 | #define USB_EP5R_DTOG_TX USB_EP5R_DTOG_TX_Msk /*!< Data Toggle, for transmission transfers */ |
4765 | #define USB_EP5R_CTR_TX_Pos (7U) |
||
9 | mjames | 4766 | #define USB_EP5R_CTR_TX_Msk (0x1UL << USB_EP5R_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4767 | #define USB_EP5R_CTR_TX USB_EP5R_CTR_TX_Msk /*!< Correct Transfer for transmission */ |
4768 | #define USB_EP5R_EP_KIND_Pos (8U) |
||
9 | mjames | 4769 | #define USB_EP5R_EP_KIND_Msk (0x1UL << USB_EP5R_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4770 | #define USB_EP5R_EP_KIND USB_EP5R_EP_KIND_Msk /*!< Endpoint Kind */ |
4771 | |||
4772 | #define USB_EP5R_EP_TYPE_Pos (9U) |
||
9 | mjames | 4773 | #define USB_EP5R_EP_TYPE_Msk (0x3UL << USB_EP5R_EP_TYPE_Pos) /*!< 0x00000600 */ |
2 | mjames | 4774 | #define USB_EP5R_EP_TYPE USB_EP5R_EP_TYPE_Msk /*!< EP_TYPE[1:0] bits (Endpoint type) */ |
9 | mjames | 4775 | #define USB_EP5R_EP_TYPE_0 (0x1UL << USB_EP5R_EP_TYPE_Pos) /*!< 0x00000200 */ |
4776 | #define USB_EP5R_EP_TYPE_1 (0x2UL << USB_EP5R_EP_TYPE_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 4777 | |
4778 | #define USB_EP5R_SETUP_Pos (11U) |
||
9 | mjames | 4779 | #define USB_EP5R_SETUP_Msk (0x1UL << USB_EP5R_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4780 | #define USB_EP5R_SETUP USB_EP5R_SETUP_Msk /*!< Setup transaction completed */ |
4781 | |||
4782 | #define USB_EP5R_STAT_RX_Pos (12U) |
||
9 | mjames | 4783 | #define USB_EP5R_STAT_RX_Msk (0x3UL << USB_EP5R_STAT_RX_Pos) /*!< 0x00003000 */ |
2 | mjames | 4784 | #define USB_EP5R_STAT_RX USB_EP5R_STAT_RX_Msk /*!< STAT_RX[1:0] bits (Status bits, for reception transfers) */ |
9 | mjames | 4785 | #define USB_EP5R_STAT_RX_0 (0x1UL << USB_EP5R_STAT_RX_Pos) /*!< 0x00001000 */ |
4786 | #define USB_EP5R_STAT_RX_1 (0x2UL << USB_EP5R_STAT_RX_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 4787 | |
4788 | #define USB_EP5R_DTOG_RX_Pos (14U) |
||
9 | mjames | 4789 | #define USB_EP5R_DTOG_RX_Msk (0x1UL << USB_EP5R_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4790 | #define USB_EP5R_DTOG_RX USB_EP5R_DTOG_RX_Msk /*!< Data Toggle, for reception transfers */ |
4791 | #define USB_EP5R_CTR_RX_Pos (15U) |
||
9 | mjames | 4792 | #define USB_EP5R_CTR_RX_Msk (0x1UL << USB_EP5R_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4793 | #define USB_EP5R_CTR_RX USB_EP5R_CTR_RX_Msk /*!< Correct Transfer for reception */ |
4794 | |||
4795 | /******************* Bit definition for USB_EP6R register *******************/ |
||
4796 | #define USB_EP6R_EA_Pos (0U) |
||
9 | mjames | 4797 | #define USB_EP6R_EA_Msk (0xFUL << USB_EP6R_EA_Pos) /*!< 0x0000000F */ |
2 | mjames | 4798 | #define USB_EP6R_EA USB_EP6R_EA_Msk /*!< Endpoint Address */ |
4799 | |||
4800 | #define USB_EP6R_STAT_TX_Pos (4U) |
||
9 | mjames | 4801 | #define USB_EP6R_STAT_TX_Msk (0x3UL << USB_EP6R_STAT_TX_Pos) /*!< 0x00000030 */ |
2 | mjames | 4802 | #define USB_EP6R_STAT_TX USB_EP6R_STAT_TX_Msk /*!< STAT_TX[1:0] bits (Status bits, for transmission transfers) */ |
9 | mjames | 4803 | #define USB_EP6R_STAT_TX_0 (0x1UL << USB_EP6R_STAT_TX_Pos) /*!< 0x00000010 */ |
4804 | #define USB_EP6R_STAT_TX_1 (0x2UL << USB_EP6R_STAT_TX_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 4805 | |
4806 | #define USB_EP6R_DTOG_TX_Pos (6U) |
||
9 | mjames | 4807 | #define USB_EP6R_DTOG_TX_Msk (0x1UL << USB_EP6R_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4808 | #define USB_EP6R_DTOG_TX USB_EP6R_DTOG_TX_Msk /*!< Data Toggle, for transmission transfers */ |
4809 | #define USB_EP6R_CTR_TX_Pos (7U) |
||
9 | mjames | 4810 | #define USB_EP6R_CTR_TX_Msk (0x1UL << USB_EP6R_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4811 | #define USB_EP6R_CTR_TX USB_EP6R_CTR_TX_Msk /*!< Correct Transfer for transmission */ |
4812 | #define USB_EP6R_EP_KIND_Pos (8U) |
||
9 | mjames | 4813 | #define USB_EP6R_EP_KIND_Msk (0x1UL << USB_EP6R_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4814 | #define USB_EP6R_EP_KIND USB_EP6R_EP_KIND_Msk /*!< Endpoint Kind */ |
4815 | |||
4816 | #define USB_EP6R_EP_TYPE_Pos (9U) |
||
9 | mjames | 4817 | #define USB_EP6R_EP_TYPE_Msk (0x3UL << USB_EP6R_EP_TYPE_Pos) /*!< 0x00000600 */ |
2 | mjames | 4818 | #define USB_EP6R_EP_TYPE USB_EP6R_EP_TYPE_Msk /*!< EP_TYPE[1:0] bits (Endpoint type) */ |
9 | mjames | 4819 | #define USB_EP6R_EP_TYPE_0 (0x1UL << USB_EP6R_EP_TYPE_Pos) /*!< 0x00000200 */ |
4820 | #define USB_EP6R_EP_TYPE_1 (0x2UL << USB_EP6R_EP_TYPE_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 4821 | |
4822 | #define USB_EP6R_SETUP_Pos (11U) |
||
9 | mjames | 4823 | #define USB_EP6R_SETUP_Msk (0x1UL << USB_EP6R_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4824 | #define USB_EP6R_SETUP USB_EP6R_SETUP_Msk /*!< Setup transaction completed */ |
4825 | |||
4826 | #define USB_EP6R_STAT_RX_Pos (12U) |
||
9 | mjames | 4827 | #define USB_EP6R_STAT_RX_Msk (0x3UL << USB_EP6R_STAT_RX_Pos) /*!< 0x00003000 */ |
2 | mjames | 4828 | #define USB_EP6R_STAT_RX USB_EP6R_STAT_RX_Msk /*!< STAT_RX[1:0] bits (Status bits, for reception transfers) */ |
9 | mjames | 4829 | #define USB_EP6R_STAT_RX_0 (0x1UL << USB_EP6R_STAT_RX_Pos) /*!< 0x00001000 */ |
4830 | #define USB_EP6R_STAT_RX_1 (0x2UL << USB_EP6R_STAT_RX_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 4831 | |
4832 | #define USB_EP6R_DTOG_RX_Pos (14U) |
||
9 | mjames | 4833 | #define USB_EP6R_DTOG_RX_Msk (0x1UL << USB_EP6R_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4834 | #define USB_EP6R_DTOG_RX USB_EP6R_DTOG_RX_Msk /*!< Data Toggle, for reception transfers */ |
4835 | #define USB_EP6R_CTR_RX_Pos (15U) |
||
9 | mjames | 4836 | #define USB_EP6R_CTR_RX_Msk (0x1UL << USB_EP6R_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4837 | #define USB_EP6R_CTR_RX USB_EP6R_CTR_RX_Msk /*!< Correct Transfer for reception */ |
4838 | |||
4839 | /******************* Bit definition for USB_EP7R register *******************/ |
||
4840 | #define USB_EP7R_EA_Pos (0U) |
||
9 | mjames | 4841 | #define USB_EP7R_EA_Msk (0xFUL << USB_EP7R_EA_Pos) /*!< 0x0000000F */ |
2 | mjames | 4842 | #define USB_EP7R_EA USB_EP7R_EA_Msk /*!< Endpoint Address */ |
4843 | |||
4844 | #define USB_EP7R_STAT_TX_Pos (4U) |
||
9 | mjames | 4845 | #define USB_EP7R_STAT_TX_Msk (0x3UL << USB_EP7R_STAT_TX_Pos) /*!< 0x00000030 */ |
2 | mjames | 4846 | #define USB_EP7R_STAT_TX USB_EP7R_STAT_TX_Msk /*!< STAT_TX[1:0] bits (Status bits, for transmission transfers) */ |
9 | mjames | 4847 | #define USB_EP7R_STAT_TX_0 (0x1UL << USB_EP7R_STAT_TX_Pos) /*!< 0x00000010 */ |
4848 | #define USB_EP7R_STAT_TX_1 (0x2UL << USB_EP7R_STAT_TX_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 4849 | |
4850 | #define USB_EP7R_DTOG_TX_Pos (6U) |
||
9 | mjames | 4851 | #define USB_EP7R_DTOG_TX_Msk (0x1UL << USB_EP7R_DTOG_TX_Pos) /*!< 0x00000040 */ |
2 | mjames | 4852 | #define USB_EP7R_DTOG_TX USB_EP7R_DTOG_TX_Msk /*!< Data Toggle, for transmission transfers */ |
4853 | #define USB_EP7R_CTR_TX_Pos (7U) |
||
9 | mjames | 4854 | #define USB_EP7R_CTR_TX_Msk (0x1UL << USB_EP7R_CTR_TX_Pos) /*!< 0x00000080 */ |
2 | mjames | 4855 | #define USB_EP7R_CTR_TX USB_EP7R_CTR_TX_Msk /*!< Correct Transfer for transmission */ |
4856 | #define USB_EP7R_EP_KIND_Pos (8U) |
||
9 | mjames | 4857 | #define USB_EP7R_EP_KIND_Msk (0x1UL << USB_EP7R_EP_KIND_Pos) /*!< 0x00000100 */ |
2 | mjames | 4858 | #define USB_EP7R_EP_KIND USB_EP7R_EP_KIND_Msk /*!< Endpoint Kind */ |
4859 | |||
4860 | #define USB_EP7R_EP_TYPE_Pos (9U) |
||
9 | mjames | 4861 | #define USB_EP7R_EP_TYPE_Msk (0x3UL << USB_EP7R_EP_TYPE_Pos) /*!< 0x00000600 */ |
2 | mjames | 4862 | #define USB_EP7R_EP_TYPE USB_EP7R_EP_TYPE_Msk /*!< EP_TYPE[1:0] bits (Endpoint type) */ |
9 | mjames | 4863 | #define USB_EP7R_EP_TYPE_0 (0x1UL << USB_EP7R_EP_TYPE_Pos) /*!< 0x00000200 */ |
4864 | #define USB_EP7R_EP_TYPE_1 (0x2UL << USB_EP7R_EP_TYPE_Pos) /*!< 0x00000400 */ |
||
2 | mjames | 4865 | |
4866 | #define USB_EP7R_SETUP_Pos (11U) |
||
9 | mjames | 4867 | #define USB_EP7R_SETUP_Msk (0x1UL << USB_EP7R_SETUP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4868 | #define USB_EP7R_SETUP USB_EP7R_SETUP_Msk /*!< Setup transaction completed */ |
4869 | |||
4870 | #define USB_EP7R_STAT_RX_Pos (12U) |
||
9 | mjames | 4871 | #define USB_EP7R_STAT_RX_Msk (0x3UL << USB_EP7R_STAT_RX_Pos) /*!< 0x00003000 */ |
2 | mjames | 4872 | #define USB_EP7R_STAT_RX USB_EP7R_STAT_RX_Msk /*!< STAT_RX[1:0] bits (Status bits, for reception transfers) */ |
9 | mjames | 4873 | #define USB_EP7R_STAT_RX_0 (0x1UL << USB_EP7R_STAT_RX_Pos) /*!< 0x00001000 */ |
4874 | #define USB_EP7R_STAT_RX_1 (0x2UL << USB_EP7R_STAT_RX_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 4875 | |
4876 | #define USB_EP7R_DTOG_RX_Pos (14U) |
||
9 | mjames | 4877 | #define USB_EP7R_DTOG_RX_Msk (0x1UL << USB_EP7R_DTOG_RX_Pos) /*!< 0x00004000 */ |
2 | mjames | 4878 | #define USB_EP7R_DTOG_RX USB_EP7R_DTOG_RX_Msk /*!< Data Toggle, for reception transfers */ |
4879 | #define USB_EP7R_CTR_RX_Pos (15U) |
||
9 | mjames | 4880 | #define USB_EP7R_CTR_RX_Msk (0x1UL << USB_EP7R_CTR_RX_Pos) /*!< 0x00008000 */ |
2 | mjames | 4881 | #define USB_EP7R_CTR_RX USB_EP7R_CTR_RX_Msk /*!< Correct Transfer for reception */ |
4882 | |||
4883 | /*!< Common registers */ |
||
4884 | /******************* Bit definition for USB_CNTR register *******************/ |
||
4885 | #define USB_CNTR_FRES_Pos (0U) |
||
9 | mjames | 4886 | #define USB_CNTR_FRES_Msk (0x1UL << USB_CNTR_FRES_Pos) /*!< 0x00000001 */ |
2 | mjames | 4887 | #define USB_CNTR_FRES USB_CNTR_FRES_Msk /*!< Force USB Reset */ |
4888 | #define USB_CNTR_PDWN_Pos (1U) |
||
9 | mjames | 4889 | #define USB_CNTR_PDWN_Msk (0x1UL << USB_CNTR_PDWN_Pos) /*!< 0x00000002 */ |
2 | mjames | 4890 | #define USB_CNTR_PDWN USB_CNTR_PDWN_Msk /*!< Power down */ |
4891 | #define USB_CNTR_LP_MODE_Pos (2U) |
||
9 | mjames | 4892 | #define USB_CNTR_LP_MODE_Msk (0x1UL << USB_CNTR_LP_MODE_Pos) /*!< 0x00000004 */ |
2 | mjames | 4893 | #define USB_CNTR_LP_MODE USB_CNTR_LP_MODE_Msk /*!< Low-power mode */ |
4894 | #define USB_CNTR_FSUSP_Pos (3U) |
||
9 | mjames | 4895 | #define USB_CNTR_FSUSP_Msk (0x1UL << USB_CNTR_FSUSP_Pos) /*!< 0x00000008 */ |
2 | mjames | 4896 | #define USB_CNTR_FSUSP USB_CNTR_FSUSP_Msk /*!< Force suspend */ |
4897 | #define USB_CNTR_RESUME_Pos (4U) |
||
9 | mjames | 4898 | #define USB_CNTR_RESUME_Msk (0x1UL << USB_CNTR_RESUME_Pos) /*!< 0x00000010 */ |
2 | mjames | 4899 | #define USB_CNTR_RESUME USB_CNTR_RESUME_Msk /*!< Resume request */ |
4900 | #define USB_CNTR_ESOFM_Pos (8U) |
||
9 | mjames | 4901 | #define USB_CNTR_ESOFM_Msk (0x1UL << USB_CNTR_ESOFM_Pos) /*!< 0x00000100 */ |
2 | mjames | 4902 | #define USB_CNTR_ESOFM USB_CNTR_ESOFM_Msk /*!< Expected Start Of Frame Interrupt Mask */ |
4903 | #define USB_CNTR_SOFM_Pos (9U) |
||
9 | mjames | 4904 | #define USB_CNTR_SOFM_Msk (0x1UL << USB_CNTR_SOFM_Pos) /*!< 0x00000200 */ |
2 | mjames | 4905 | #define USB_CNTR_SOFM USB_CNTR_SOFM_Msk /*!< Start Of Frame Interrupt Mask */ |
4906 | #define USB_CNTR_RESETM_Pos (10U) |
||
9 | mjames | 4907 | #define USB_CNTR_RESETM_Msk (0x1UL << USB_CNTR_RESETM_Pos) /*!< 0x00000400 */ |
2 | mjames | 4908 | #define USB_CNTR_RESETM USB_CNTR_RESETM_Msk /*!< RESET Interrupt Mask */ |
4909 | #define USB_CNTR_SUSPM_Pos (11U) |
||
9 | mjames | 4910 | #define USB_CNTR_SUSPM_Msk (0x1UL << USB_CNTR_SUSPM_Pos) /*!< 0x00000800 */ |
2 | mjames | 4911 | #define USB_CNTR_SUSPM USB_CNTR_SUSPM_Msk /*!< Suspend mode Interrupt Mask */ |
4912 | #define USB_CNTR_WKUPM_Pos (12U) |
||
9 | mjames | 4913 | #define USB_CNTR_WKUPM_Msk (0x1UL << USB_CNTR_WKUPM_Pos) /*!< 0x00001000 */ |
2 | mjames | 4914 | #define USB_CNTR_WKUPM USB_CNTR_WKUPM_Msk /*!< Wakeup Interrupt Mask */ |
4915 | #define USB_CNTR_ERRM_Pos (13U) |
||
9 | mjames | 4916 | #define USB_CNTR_ERRM_Msk (0x1UL << USB_CNTR_ERRM_Pos) /*!< 0x00002000 */ |
2 | mjames | 4917 | #define USB_CNTR_ERRM USB_CNTR_ERRM_Msk /*!< Error Interrupt Mask */ |
4918 | #define USB_CNTR_PMAOVRM_Pos (14U) |
||
9 | mjames | 4919 | #define USB_CNTR_PMAOVRM_Msk (0x1UL << USB_CNTR_PMAOVRM_Pos) /*!< 0x00004000 */ |
2 | mjames | 4920 | #define USB_CNTR_PMAOVRM USB_CNTR_PMAOVRM_Msk /*!< Packet Memory Area Over / Underrun Interrupt Mask */ |
4921 | #define USB_CNTR_CTRM_Pos (15U) |
||
9 | mjames | 4922 | #define USB_CNTR_CTRM_Msk (0x1UL << USB_CNTR_CTRM_Pos) /*!< 0x00008000 */ |
2 | mjames | 4923 | #define USB_CNTR_CTRM USB_CNTR_CTRM_Msk /*!< Correct Transfer Interrupt Mask */ |
4924 | |||
4925 | /******************* Bit definition for USB_ISTR register *******************/ |
||
4926 | #define USB_ISTR_EP_ID_Pos (0U) |
||
9 | mjames | 4927 | #define USB_ISTR_EP_ID_Msk (0xFUL << USB_ISTR_EP_ID_Pos) /*!< 0x0000000F */ |
2 | mjames | 4928 | #define USB_ISTR_EP_ID USB_ISTR_EP_ID_Msk /*!< Endpoint Identifier */ |
4929 | #define USB_ISTR_DIR_Pos (4U) |
||
9 | mjames | 4930 | #define USB_ISTR_DIR_Msk (0x1UL << USB_ISTR_DIR_Pos) /*!< 0x00000010 */ |
2 | mjames | 4931 | #define USB_ISTR_DIR USB_ISTR_DIR_Msk /*!< Direction of transaction */ |
4932 | #define USB_ISTR_ESOF_Pos (8U) |
||
9 | mjames | 4933 | #define USB_ISTR_ESOF_Msk (0x1UL << USB_ISTR_ESOF_Pos) /*!< 0x00000100 */ |
2 | mjames | 4934 | #define USB_ISTR_ESOF USB_ISTR_ESOF_Msk /*!< Expected Start Of Frame */ |
4935 | #define USB_ISTR_SOF_Pos (9U) |
||
9 | mjames | 4936 | #define USB_ISTR_SOF_Msk (0x1UL << USB_ISTR_SOF_Pos) /*!< 0x00000200 */ |
2 | mjames | 4937 | #define USB_ISTR_SOF USB_ISTR_SOF_Msk /*!< Start Of Frame */ |
4938 | #define USB_ISTR_RESET_Pos (10U) |
||
9 | mjames | 4939 | #define USB_ISTR_RESET_Msk (0x1UL << USB_ISTR_RESET_Pos) /*!< 0x00000400 */ |
2 | mjames | 4940 | #define USB_ISTR_RESET USB_ISTR_RESET_Msk /*!< USB RESET request */ |
4941 | #define USB_ISTR_SUSP_Pos (11U) |
||
9 | mjames | 4942 | #define USB_ISTR_SUSP_Msk (0x1UL << USB_ISTR_SUSP_Pos) /*!< 0x00000800 */ |
2 | mjames | 4943 | #define USB_ISTR_SUSP USB_ISTR_SUSP_Msk /*!< Suspend mode request */ |
4944 | #define USB_ISTR_WKUP_Pos (12U) |
||
9 | mjames | 4945 | #define USB_ISTR_WKUP_Msk (0x1UL << USB_ISTR_WKUP_Pos) /*!< 0x00001000 */ |
2 | mjames | 4946 | #define USB_ISTR_WKUP USB_ISTR_WKUP_Msk /*!< Wake up */ |
4947 | #define USB_ISTR_ERR_Pos (13U) |
||
9 | mjames | 4948 | #define USB_ISTR_ERR_Msk (0x1UL << USB_ISTR_ERR_Pos) /*!< 0x00002000 */ |
2 | mjames | 4949 | #define USB_ISTR_ERR USB_ISTR_ERR_Msk /*!< Error */ |
4950 | #define USB_ISTR_PMAOVR_Pos (14U) |
||
9 | mjames | 4951 | #define USB_ISTR_PMAOVR_Msk (0x1UL << USB_ISTR_PMAOVR_Pos) /*!< 0x00004000 */ |
2 | mjames | 4952 | #define USB_ISTR_PMAOVR USB_ISTR_PMAOVR_Msk /*!< Packet Memory Area Over / Underrun */ |
4953 | #define USB_ISTR_CTR_Pos (15U) |
||
9 | mjames | 4954 | #define USB_ISTR_CTR_Msk (0x1UL << USB_ISTR_CTR_Pos) /*!< 0x00008000 */ |
2 | mjames | 4955 | #define USB_ISTR_CTR USB_ISTR_CTR_Msk /*!< Correct Transfer */ |
4956 | |||
4957 | /******************* Bit definition for USB_FNR register ********************/ |
||
4958 | #define USB_FNR_FN_Pos (0U) |
||
9 | mjames | 4959 | #define USB_FNR_FN_Msk (0x7FFUL << USB_FNR_FN_Pos) /*!< 0x000007FF */ |
2 | mjames | 4960 | #define USB_FNR_FN USB_FNR_FN_Msk /*!< Frame Number */ |
4961 | #define USB_FNR_LSOF_Pos (11U) |
||
9 | mjames | 4962 | #define USB_FNR_LSOF_Msk (0x3UL << USB_FNR_LSOF_Pos) /*!< 0x00001800 */ |
2 | mjames | 4963 | #define USB_FNR_LSOF USB_FNR_LSOF_Msk /*!< Lost SOF */ |
4964 | #define USB_FNR_LCK_Pos (13U) |
||
9 | mjames | 4965 | #define USB_FNR_LCK_Msk (0x1UL << USB_FNR_LCK_Pos) /*!< 0x00002000 */ |
2 | mjames | 4966 | #define USB_FNR_LCK USB_FNR_LCK_Msk /*!< Locked */ |
4967 | #define USB_FNR_RXDM_Pos (14U) |
||
9 | mjames | 4968 | #define USB_FNR_RXDM_Msk (0x1UL << USB_FNR_RXDM_Pos) /*!< 0x00004000 */ |
2 | mjames | 4969 | #define USB_FNR_RXDM USB_FNR_RXDM_Msk /*!< Receive Data - Line Status */ |
4970 | #define USB_FNR_RXDP_Pos (15U) |
||
9 | mjames | 4971 | #define USB_FNR_RXDP_Msk (0x1UL << USB_FNR_RXDP_Pos) /*!< 0x00008000 */ |
2 | mjames | 4972 | #define USB_FNR_RXDP USB_FNR_RXDP_Msk /*!< Receive Data + Line Status */ |
4973 | |||
4974 | /****************** Bit definition for USB_DADDR register *******************/ |
||
4975 | #define USB_DADDR_ADD_Pos (0U) |
||
9 | mjames | 4976 | #define USB_DADDR_ADD_Msk (0x7FUL << USB_DADDR_ADD_Pos) /*!< 0x0000007F */ |
2 | mjames | 4977 | #define USB_DADDR_ADD USB_DADDR_ADD_Msk /*!< ADD[6:0] bits (Device Address) */ |
4978 | #define USB_DADDR_ADD0_Pos (0U) |
||
9 | mjames | 4979 | #define USB_DADDR_ADD0_Msk (0x1UL << USB_DADDR_ADD0_Pos) /*!< 0x00000001 */ |
2 | mjames | 4980 | #define USB_DADDR_ADD0 USB_DADDR_ADD0_Msk /*!< Bit 0 */ |
4981 | #define USB_DADDR_ADD1_Pos (1U) |
||
9 | mjames | 4982 | #define USB_DADDR_ADD1_Msk (0x1UL << USB_DADDR_ADD1_Pos) /*!< 0x00000002 */ |
2 | mjames | 4983 | #define USB_DADDR_ADD1 USB_DADDR_ADD1_Msk /*!< Bit 1 */ |
4984 | #define USB_DADDR_ADD2_Pos (2U) |
||
9 | mjames | 4985 | #define USB_DADDR_ADD2_Msk (0x1UL << USB_DADDR_ADD2_Pos) /*!< 0x00000004 */ |
2 | mjames | 4986 | #define USB_DADDR_ADD2 USB_DADDR_ADD2_Msk /*!< Bit 2 */ |
4987 | #define USB_DADDR_ADD3_Pos (3U) |
||
9 | mjames | 4988 | #define USB_DADDR_ADD3_Msk (0x1UL << USB_DADDR_ADD3_Pos) /*!< 0x00000008 */ |
2 | mjames | 4989 | #define USB_DADDR_ADD3 USB_DADDR_ADD3_Msk /*!< Bit 3 */ |
4990 | #define USB_DADDR_ADD4_Pos (4U) |
||
9 | mjames | 4991 | #define USB_DADDR_ADD4_Msk (0x1UL << USB_DADDR_ADD4_Pos) /*!< 0x00000010 */ |
2 | mjames | 4992 | #define USB_DADDR_ADD4 USB_DADDR_ADD4_Msk /*!< Bit 4 */ |
4993 | #define USB_DADDR_ADD5_Pos (5U) |
||
9 | mjames | 4994 | #define USB_DADDR_ADD5_Msk (0x1UL << USB_DADDR_ADD5_Pos) /*!< 0x00000020 */ |
2 | mjames | 4995 | #define USB_DADDR_ADD5 USB_DADDR_ADD5_Msk /*!< Bit 5 */ |
4996 | #define USB_DADDR_ADD6_Pos (6U) |
||
9 | mjames | 4997 | #define USB_DADDR_ADD6_Msk (0x1UL << USB_DADDR_ADD6_Pos) /*!< 0x00000040 */ |
2 | mjames | 4998 | #define USB_DADDR_ADD6 USB_DADDR_ADD6_Msk /*!< Bit 6 */ |
4999 | |||
5000 | #define USB_DADDR_EF_Pos (7U) |
||
9 | mjames | 5001 | #define USB_DADDR_EF_Msk (0x1UL << USB_DADDR_EF_Pos) /*!< 0x00000080 */ |
2 | mjames | 5002 | #define USB_DADDR_EF USB_DADDR_EF_Msk /*!< Enable Function */ |
5003 | |||
5004 | /****************** Bit definition for USB_BTABLE register ******************/ |
||
5005 | #define USB_BTABLE_BTABLE_Pos (3U) |
||
9 | mjames | 5006 | #define USB_BTABLE_BTABLE_Msk (0x1FFFUL << USB_BTABLE_BTABLE_Pos) /*!< 0x0000FFF8 */ |
2 | mjames | 5007 | #define USB_BTABLE_BTABLE USB_BTABLE_BTABLE_Msk /*!< Buffer Table */ |
5008 | |||
5009 | /*!< Buffer descriptor table */ |
||
5010 | /***************** Bit definition for USB_ADDR0_TX register *****************/ |
||
5011 | #define USB_ADDR0_TX_ADDR0_TX_Pos (1U) |
||
9 | mjames | 5012 | #define USB_ADDR0_TX_ADDR0_TX_Msk (0x7FFFUL << USB_ADDR0_TX_ADDR0_TX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5013 | #define USB_ADDR0_TX_ADDR0_TX USB_ADDR0_TX_ADDR0_TX_Msk /*!< Transmission Buffer Address 0 */ |
5014 | |||
5015 | /***************** Bit definition for USB_ADDR1_TX register *****************/ |
||
5016 | #define USB_ADDR1_TX_ADDR1_TX_Pos (1U) |
||
9 | mjames | 5017 | #define USB_ADDR1_TX_ADDR1_TX_Msk (0x7FFFUL << USB_ADDR1_TX_ADDR1_TX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5018 | #define USB_ADDR1_TX_ADDR1_TX USB_ADDR1_TX_ADDR1_TX_Msk /*!< Transmission Buffer Address 1 */ |
5019 | |||
5020 | /***************** Bit definition for USB_ADDR2_TX register *****************/ |
||
5021 | #define USB_ADDR2_TX_ADDR2_TX_Pos (1U) |
||
9 | mjames | 5022 | #define USB_ADDR2_TX_ADDR2_TX_Msk (0x7FFFUL << USB_ADDR2_TX_ADDR2_TX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5023 | #define USB_ADDR2_TX_ADDR2_TX USB_ADDR2_TX_ADDR2_TX_Msk /*!< Transmission Buffer Address 2 */ |
5024 | |||
5025 | /***************** Bit definition for USB_ADDR3_TX register *****************/ |
||
5026 | #define USB_ADDR3_TX_ADDR3_TX_Pos (1U) |
||
9 | mjames | 5027 | #define USB_ADDR3_TX_ADDR3_TX_Msk (0x7FFFUL << USB_ADDR3_TX_ADDR3_TX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5028 | #define USB_ADDR3_TX_ADDR3_TX USB_ADDR3_TX_ADDR3_TX_Msk /*!< Transmission Buffer Address 3 */ |
5029 | |||
5030 | /***************** Bit definition for USB_ADDR4_TX register *****************/ |
||
5031 | #define USB_ADDR4_TX_ADDR4_TX_Pos (1U) |
||
9 | mjames | 5032 | #define USB_ADDR4_TX_ADDR4_TX_Msk (0x7FFFUL << USB_ADDR4_TX_ADDR4_TX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5033 | #define USB_ADDR4_TX_ADDR4_TX USB_ADDR4_TX_ADDR4_TX_Msk /*!< Transmission Buffer Address 4 */ |
5034 | |||
5035 | /***************** Bit definition for USB_ADDR5_TX register *****************/ |
||
5036 | #define USB_ADDR5_TX_ADDR5_TX_Pos (1U) |
||
9 | mjames | 5037 | #define USB_ADDR5_TX_ADDR5_TX_Msk (0x7FFFUL << USB_ADDR5_TX_ADDR5_TX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5038 | #define USB_ADDR5_TX_ADDR5_TX USB_ADDR5_TX_ADDR5_TX_Msk /*!< Transmission Buffer Address 5 */ |
5039 | |||
5040 | /***************** Bit definition for USB_ADDR6_TX register *****************/ |
||
5041 | #define USB_ADDR6_TX_ADDR6_TX_Pos (1U) |
||
9 | mjames | 5042 | #define USB_ADDR6_TX_ADDR6_TX_Msk (0x7FFFUL << USB_ADDR6_TX_ADDR6_TX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5043 | #define USB_ADDR6_TX_ADDR6_TX USB_ADDR6_TX_ADDR6_TX_Msk /*!< Transmission Buffer Address 6 */ |
5044 | |||
5045 | /***************** Bit definition for USB_ADDR7_TX register *****************/ |
||
5046 | #define USB_ADDR7_TX_ADDR7_TX_Pos (1U) |
||
9 | mjames | 5047 | #define USB_ADDR7_TX_ADDR7_TX_Msk (0x7FFFUL << USB_ADDR7_TX_ADDR7_TX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5048 | #define USB_ADDR7_TX_ADDR7_TX USB_ADDR7_TX_ADDR7_TX_Msk /*!< Transmission Buffer Address 7 */ |
5049 | |||
5050 | /*----------------------------------------------------------------------------*/ |
||
5051 | |||
5052 | /***************** Bit definition for USB_COUNT0_TX register ****************/ |
||
5053 | #define USB_COUNT0_TX_COUNT0_TX_Pos (0U) |
||
9 | mjames | 5054 | #define USB_COUNT0_TX_COUNT0_TX_Msk (0x3FFUL << USB_COUNT0_TX_COUNT0_TX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5055 | #define USB_COUNT0_TX_COUNT0_TX USB_COUNT0_TX_COUNT0_TX_Msk /*!< Transmission Byte Count 0 */ |
5056 | |||
5057 | /***************** Bit definition for USB_COUNT1_TX register ****************/ |
||
5058 | #define USB_COUNT1_TX_COUNT1_TX_Pos (0U) |
||
9 | mjames | 5059 | #define USB_COUNT1_TX_COUNT1_TX_Msk (0x3FFUL << USB_COUNT1_TX_COUNT1_TX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5060 | #define USB_COUNT1_TX_COUNT1_TX USB_COUNT1_TX_COUNT1_TX_Msk /*!< Transmission Byte Count 1 */ |
5061 | |||
5062 | /***************** Bit definition for USB_COUNT2_TX register ****************/ |
||
5063 | #define USB_COUNT2_TX_COUNT2_TX_Pos (0U) |
||
9 | mjames | 5064 | #define USB_COUNT2_TX_COUNT2_TX_Msk (0x3FFUL << USB_COUNT2_TX_COUNT2_TX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5065 | #define USB_COUNT2_TX_COUNT2_TX USB_COUNT2_TX_COUNT2_TX_Msk /*!< Transmission Byte Count 2 */ |
5066 | |||
5067 | /***************** Bit definition for USB_COUNT3_TX register ****************/ |
||
5068 | #define USB_COUNT3_TX_COUNT3_TX_Pos (0U) |
||
9 | mjames | 5069 | #define USB_COUNT3_TX_COUNT3_TX_Msk (0x3FFUL << USB_COUNT3_TX_COUNT3_TX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5070 | #define USB_COUNT3_TX_COUNT3_TX USB_COUNT3_TX_COUNT3_TX_Msk /*!< Transmission Byte Count 3 */ |
5071 | |||
5072 | /***************** Bit definition for USB_COUNT4_TX register ****************/ |
||
5073 | #define USB_COUNT4_TX_COUNT4_TX_Pos (0U) |
||
9 | mjames | 5074 | #define USB_COUNT4_TX_COUNT4_TX_Msk (0x3FFUL << USB_COUNT4_TX_COUNT4_TX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5075 | #define USB_COUNT4_TX_COUNT4_TX USB_COUNT4_TX_COUNT4_TX_Msk /*!< Transmission Byte Count 4 */ |
5076 | |||
5077 | /***************** Bit definition for USB_COUNT5_TX register ****************/ |
||
5078 | #define USB_COUNT5_TX_COUNT5_TX_Pos (0U) |
||
9 | mjames | 5079 | #define USB_COUNT5_TX_COUNT5_TX_Msk (0x3FFUL << USB_COUNT5_TX_COUNT5_TX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5080 | #define USB_COUNT5_TX_COUNT5_TX USB_COUNT5_TX_COUNT5_TX_Msk /*!< Transmission Byte Count 5 */ |
5081 | |||
5082 | /***************** Bit definition for USB_COUNT6_TX register ****************/ |
||
5083 | #define USB_COUNT6_TX_COUNT6_TX_Pos (0U) |
||
9 | mjames | 5084 | #define USB_COUNT6_TX_COUNT6_TX_Msk (0x3FFUL << USB_COUNT6_TX_COUNT6_TX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5085 | #define USB_COUNT6_TX_COUNT6_TX USB_COUNT6_TX_COUNT6_TX_Msk /*!< Transmission Byte Count 6 */ |
5086 | |||
5087 | /***************** Bit definition for USB_COUNT7_TX register ****************/ |
||
5088 | #define USB_COUNT7_TX_COUNT7_TX_Pos (0U) |
||
9 | mjames | 5089 | #define USB_COUNT7_TX_COUNT7_TX_Msk (0x3FFUL << USB_COUNT7_TX_COUNT7_TX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5090 | #define USB_COUNT7_TX_COUNT7_TX USB_COUNT7_TX_COUNT7_TX_Msk /*!< Transmission Byte Count 7 */ |
5091 | |||
5092 | /*----------------------------------------------------------------------------*/ |
||
5093 | |||
5094 | /**************** Bit definition for USB_COUNT0_TX_0 register ***************/ |
||
5095 | #define USB_COUNT0_TX_0_COUNT0_TX_0 0x000003FFU /*!< Transmission Byte Count 0 (low) */ |
||
5096 | |||
5097 | /**************** Bit definition for USB_COUNT0_TX_1 register ***************/ |
||
5098 | #define USB_COUNT0_TX_1_COUNT0_TX_1 0x03FF0000U /*!< Transmission Byte Count 0 (high) */ |
||
5099 | |||
5100 | /**************** Bit definition for USB_COUNT1_TX_0 register ***************/ |
||
5101 | #define USB_COUNT1_TX_0_COUNT1_TX_0 0x000003FFU /*!< Transmission Byte Count 1 (low) */ |
||
5102 | |||
5103 | /**************** Bit definition for USB_COUNT1_TX_1 register ***************/ |
||
5104 | #define USB_COUNT1_TX_1_COUNT1_TX_1 0x03FF0000U /*!< Transmission Byte Count 1 (high) */ |
||
5105 | |||
5106 | /**************** Bit definition for USB_COUNT2_TX_0 register ***************/ |
||
5107 | #define USB_COUNT2_TX_0_COUNT2_TX_0 0x000003FFU /*!< Transmission Byte Count 2 (low) */ |
||
5108 | |||
5109 | /**************** Bit definition for USB_COUNT2_TX_1 register ***************/ |
||
5110 | #define USB_COUNT2_TX_1_COUNT2_TX_1 0x03FF0000U /*!< Transmission Byte Count 2 (high) */ |
||
5111 | |||
5112 | /**************** Bit definition for USB_COUNT3_TX_0 register ***************/ |
||
5113 | #define USB_COUNT3_TX_0_COUNT3_TX_0 0x000003FFU /*!< Transmission Byte Count 3 (low) */ |
||
5114 | |||
5115 | /**************** Bit definition for USB_COUNT3_TX_1 register ***************/ |
||
5116 | #define USB_COUNT3_TX_1_COUNT3_TX_1 0x03FF0000U /*!< Transmission Byte Count 3 (high) */ |
||
5117 | |||
5118 | /**************** Bit definition for USB_COUNT4_TX_0 register ***************/ |
||
5119 | #define USB_COUNT4_TX_0_COUNT4_TX_0 0x000003FFU /*!< Transmission Byte Count 4 (low) */ |
||
5120 | |||
5121 | /**************** Bit definition for USB_COUNT4_TX_1 register ***************/ |
||
5122 | #define USB_COUNT4_TX_1_COUNT4_TX_1 0x03FF0000U /*!< Transmission Byte Count 4 (high) */ |
||
5123 | |||
5124 | /**************** Bit definition for USB_COUNT5_TX_0 register ***************/ |
||
5125 | #define USB_COUNT5_TX_0_COUNT5_TX_0 0x000003FFU /*!< Transmission Byte Count 5 (low) */ |
||
5126 | |||
5127 | /**************** Bit definition for USB_COUNT5_TX_1 register ***************/ |
||
5128 | #define USB_COUNT5_TX_1_COUNT5_TX_1 0x03FF0000U /*!< Transmission Byte Count 5 (high) */ |
||
5129 | |||
5130 | /**************** Bit definition for USB_COUNT6_TX_0 register ***************/ |
||
5131 | #define USB_COUNT6_TX_0_COUNT6_TX_0 0x000003FFU /*!< Transmission Byte Count 6 (low) */ |
||
5132 | |||
5133 | /**************** Bit definition for USB_COUNT6_TX_1 register ***************/ |
||
5134 | #define USB_COUNT6_TX_1_COUNT6_TX_1 0x03FF0000U /*!< Transmission Byte Count 6 (high) */ |
||
5135 | |||
5136 | /**************** Bit definition for USB_COUNT7_TX_0 register ***************/ |
||
5137 | #define USB_COUNT7_TX_0_COUNT7_TX_0 0x000003FFU /*!< Transmission Byte Count 7 (low) */ |
||
5138 | |||
5139 | /**************** Bit definition for USB_COUNT7_TX_1 register ***************/ |
||
5140 | #define USB_COUNT7_TX_1_COUNT7_TX_1 0x03FF0000U /*!< Transmission Byte Count 7 (high) */ |
||
5141 | |||
5142 | /*----------------------------------------------------------------------------*/ |
||
5143 | |||
5144 | /***************** Bit definition for USB_ADDR0_RX register *****************/ |
||
5145 | #define USB_ADDR0_RX_ADDR0_RX_Pos (1U) |
||
9 | mjames | 5146 | #define USB_ADDR0_RX_ADDR0_RX_Msk (0x7FFFUL << USB_ADDR0_RX_ADDR0_RX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5147 | #define USB_ADDR0_RX_ADDR0_RX USB_ADDR0_RX_ADDR0_RX_Msk /*!< Reception Buffer Address 0 */ |
5148 | |||
5149 | /***************** Bit definition for USB_ADDR1_RX register *****************/ |
||
5150 | #define USB_ADDR1_RX_ADDR1_RX_Pos (1U) |
||
9 | mjames | 5151 | #define USB_ADDR1_RX_ADDR1_RX_Msk (0x7FFFUL << USB_ADDR1_RX_ADDR1_RX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5152 | #define USB_ADDR1_RX_ADDR1_RX USB_ADDR1_RX_ADDR1_RX_Msk /*!< Reception Buffer Address 1 */ |
5153 | |||
5154 | /***************** Bit definition for USB_ADDR2_RX register *****************/ |
||
5155 | #define USB_ADDR2_RX_ADDR2_RX_Pos (1U) |
||
9 | mjames | 5156 | #define USB_ADDR2_RX_ADDR2_RX_Msk (0x7FFFUL << USB_ADDR2_RX_ADDR2_RX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5157 | #define USB_ADDR2_RX_ADDR2_RX USB_ADDR2_RX_ADDR2_RX_Msk /*!< Reception Buffer Address 2 */ |
5158 | |||
5159 | /***************** Bit definition for USB_ADDR3_RX register *****************/ |
||
5160 | #define USB_ADDR3_RX_ADDR3_RX_Pos (1U) |
||
9 | mjames | 5161 | #define USB_ADDR3_RX_ADDR3_RX_Msk (0x7FFFUL << USB_ADDR3_RX_ADDR3_RX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5162 | #define USB_ADDR3_RX_ADDR3_RX USB_ADDR3_RX_ADDR3_RX_Msk /*!< Reception Buffer Address 3 */ |
5163 | |||
5164 | /***************** Bit definition for USB_ADDR4_RX register *****************/ |
||
5165 | #define USB_ADDR4_RX_ADDR4_RX_Pos (1U) |
||
9 | mjames | 5166 | #define USB_ADDR4_RX_ADDR4_RX_Msk (0x7FFFUL << USB_ADDR4_RX_ADDR4_RX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5167 | #define USB_ADDR4_RX_ADDR4_RX USB_ADDR4_RX_ADDR4_RX_Msk /*!< Reception Buffer Address 4 */ |
5168 | |||
5169 | /***************** Bit definition for USB_ADDR5_RX register *****************/ |
||
5170 | #define USB_ADDR5_RX_ADDR5_RX_Pos (1U) |
||
9 | mjames | 5171 | #define USB_ADDR5_RX_ADDR5_RX_Msk (0x7FFFUL << USB_ADDR5_RX_ADDR5_RX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5172 | #define USB_ADDR5_RX_ADDR5_RX USB_ADDR5_RX_ADDR5_RX_Msk /*!< Reception Buffer Address 5 */ |
5173 | |||
5174 | /***************** Bit definition for USB_ADDR6_RX register *****************/ |
||
5175 | #define USB_ADDR6_RX_ADDR6_RX_Pos (1U) |
||
9 | mjames | 5176 | #define USB_ADDR6_RX_ADDR6_RX_Msk (0x7FFFUL << USB_ADDR6_RX_ADDR6_RX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5177 | #define USB_ADDR6_RX_ADDR6_RX USB_ADDR6_RX_ADDR6_RX_Msk /*!< Reception Buffer Address 6 */ |
5178 | |||
5179 | /***************** Bit definition for USB_ADDR7_RX register *****************/ |
||
5180 | #define USB_ADDR7_RX_ADDR7_RX_Pos (1U) |
||
9 | mjames | 5181 | #define USB_ADDR7_RX_ADDR7_RX_Msk (0x7FFFUL << USB_ADDR7_RX_ADDR7_RX_Pos) /*!< 0x0000FFFE */ |
2 | mjames | 5182 | #define USB_ADDR7_RX_ADDR7_RX USB_ADDR7_RX_ADDR7_RX_Msk /*!< Reception Buffer Address 7 */ |
5183 | |||
5184 | /*----------------------------------------------------------------------------*/ |
||
5185 | |||
5186 | /***************** Bit definition for USB_COUNT0_RX register ****************/ |
||
5187 | #define USB_COUNT0_RX_COUNT0_RX_Pos (0U) |
||
9 | mjames | 5188 | #define USB_COUNT0_RX_COUNT0_RX_Msk (0x3FFUL << USB_COUNT0_RX_COUNT0_RX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5189 | #define USB_COUNT0_RX_COUNT0_RX USB_COUNT0_RX_COUNT0_RX_Msk /*!< Reception Byte Count */ |
5190 | |||
5191 | #define USB_COUNT0_RX_NUM_BLOCK_Pos (10U) |
||
9 | mjames | 5192 | #define USB_COUNT0_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ |
2 | mjames | 5193 | #define USB_COUNT0_RX_NUM_BLOCK USB_COUNT0_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ |
9 | mjames | 5194 | #define USB_COUNT0_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ |
5195 | #define USB_COUNT0_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ |
||
5196 | #define USB_COUNT0_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ |
||
5197 | #define USB_COUNT0_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ |
||
5198 | #define USB_COUNT0_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT0_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 5199 | |
5200 | #define USB_COUNT0_RX_BLSIZE_Pos (15U) |
||
9 | mjames | 5201 | #define USB_COUNT0_RX_BLSIZE_Msk (0x1UL << USB_COUNT0_RX_BLSIZE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5202 | #define USB_COUNT0_RX_BLSIZE USB_COUNT0_RX_BLSIZE_Msk /*!< BLock SIZE */ |
5203 | |||
5204 | /***************** Bit definition for USB_COUNT1_RX register ****************/ |
||
5205 | #define USB_COUNT1_RX_COUNT1_RX_Pos (0U) |
||
9 | mjames | 5206 | #define USB_COUNT1_RX_COUNT1_RX_Msk (0x3FFUL << USB_COUNT1_RX_COUNT1_RX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5207 | #define USB_COUNT1_RX_COUNT1_RX USB_COUNT1_RX_COUNT1_RX_Msk /*!< Reception Byte Count */ |
5208 | |||
5209 | #define USB_COUNT1_RX_NUM_BLOCK_Pos (10U) |
||
9 | mjames | 5210 | #define USB_COUNT1_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ |
2 | mjames | 5211 | #define USB_COUNT1_RX_NUM_BLOCK USB_COUNT1_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ |
9 | mjames | 5212 | #define USB_COUNT1_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ |
5213 | #define USB_COUNT1_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ |
||
5214 | #define USB_COUNT1_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ |
||
5215 | #define USB_COUNT1_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ |
||
5216 | #define USB_COUNT1_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT1_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 5217 | |
5218 | #define USB_COUNT1_RX_BLSIZE_Pos (15U) |
||
9 | mjames | 5219 | #define USB_COUNT1_RX_BLSIZE_Msk (0x1UL << USB_COUNT1_RX_BLSIZE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5220 | #define USB_COUNT1_RX_BLSIZE USB_COUNT1_RX_BLSIZE_Msk /*!< BLock SIZE */ |
5221 | |||
5222 | /***************** Bit definition for USB_COUNT2_RX register ****************/ |
||
5223 | #define USB_COUNT2_RX_COUNT2_RX_Pos (0U) |
||
9 | mjames | 5224 | #define USB_COUNT2_RX_COUNT2_RX_Msk (0x3FFUL << USB_COUNT2_RX_COUNT2_RX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5225 | #define USB_COUNT2_RX_COUNT2_RX USB_COUNT2_RX_COUNT2_RX_Msk /*!< Reception Byte Count */ |
5226 | |||
5227 | #define USB_COUNT2_RX_NUM_BLOCK_Pos (10U) |
||
9 | mjames | 5228 | #define USB_COUNT2_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ |
2 | mjames | 5229 | #define USB_COUNT2_RX_NUM_BLOCK USB_COUNT2_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ |
9 | mjames | 5230 | #define USB_COUNT2_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ |
5231 | #define USB_COUNT2_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ |
||
5232 | #define USB_COUNT2_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ |
||
5233 | #define USB_COUNT2_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ |
||
5234 | #define USB_COUNT2_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT2_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 5235 | |
5236 | #define USB_COUNT2_RX_BLSIZE_Pos (15U) |
||
9 | mjames | 5237 | #define USB_COUNT2_RX_BLSIZE_Msk (0x1UL << USB_COUNT2_RX_BLSIZE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5238 | #define USB_COUNT2_RX_BLSIZE USB_COUNT2_RX_BLSIZE_Msk /*!< BLock SIZE */ |
5239 | |||
5240 | /***************** Bit definition for USB_COUNT3_RX register ****************/ |
||
5241 | #define USB_COUNT3_RX_COUNT3_RX_Pos (0U) |
||
9 | mjames | 5242 | #define USB_COUNT3_RX_COUNT3_RX_Msk (0x3FFUL << USB_COUNT3_RX_COUNT3_RX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5243 | #define USB_COUNT3_RX_COUNT3_RX USB_COUNT3_RX_COUNT3_RX_Msk /*!< Reception Byte Count */ |
5244 | |||
5245 | #define USB_COUNT3_RX_NUM_BLOCK_Pos (10U) |
||
9 | mjames | 5246 | #define USB_COUNT3_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ |
2 | mjames | 5247 | #define USB_COUNT3_RX_NUM_BLOCK USB_COUNT3_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ |
9 | mjames | 5248 | #define USB_COUNT3_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ |
5249 | #define USB_COUNT3_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ |
||
5250 | #define USB_COUNT3_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ |
||
5251 | #define USB_COUNT3_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ |
||
5252 | #define USB_COUNT3_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT3_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 5253 | |
5254 | #define USB_COUNT3_RX_BLSIZE_Pos (15U) |
||
9 | mjames | 5255 | #define USB_COUNT3_RX_BLSIZE_Msk (0x1UL << USB_COUNT3_RX_BLSIZE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5256 | #define USB_COUNT3_RX_BLSIZE USB_COUNT3_RX_BLSIZE_Msk /*!< BLock SIZE */ |
5257 | |||
5258 | /***************** Bit definition for USB_COUNT4_RX register ****************/ |
||
5259 | #define USB_COUNT4_RX_COUNT4_RX_Pos (0U) |
||
9 | mjames | 5260 | #define USB_COUNT4_RX_COUNT4_RX_Msk (0x3FFUL << USB_COUNT4_RX_COUNT4_RX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5261 | #define USB_COUNT4_RX_COUNT4_RX USB_COUNT4_RX_COUNT4_RX_Msk /*!< Reception Byte Count */ |
5262 | |||
5263 | #define USB_COUNT4_RX_NUM_BLOCK_Pos (10U) |
||
9 | mjames | 5264 | #define USB_COUNT4_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ |
2 | mjames | 5265 | #define USB_COUNT4_RX_NUM_BLOCK USB_COUNT4_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ |
9 | mjames | 5266 | #define USB_COUNT4_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ |
5267 | #define USB_COUNT4_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ |
||
5268 | #define USB_COUNT4_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ |
||
5269 | #define USB_COUNT4_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ |
||
5270 | #define USB_COUNT4_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT4_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 5271 | |
5272 | #define USB_COUNT4_RX_BLSIZE_Pos (15U) |
||
9 | mjames | 5273 | #define USB_COUNT4_RX_BLSIZE_Msk (0x1UL << USB_COUNT4_RX_BLSIZE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5274 | #define USB_COUNT4_RX_BLSIZE USB_COUNT4_RX_BLSIZE_Msk /*!< BLock SIZE */ |
5275 | |||
5276 | /***************** Bit definition for USB_COUNT5_RX register ****************/ |
||
5277 | #define USB_COUNT5_RX_COUNT5_RX_Pos (0U) |
||
9 | mjames | 5278 | #define USB_COUNT5_RX_COUNT5_RX_Msk (0x3FFUL << USB_COUNT5_RX_COUNT5_RX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5279 | #define USB_COUNT5_RX_COUNT5_RX USB_COUNT5_RX_COUNT5_RX_Msk /*!< Reception Byte Count */ |
5280 | |||
5281 | #define USB_COUNT5_RX_NUM_BLOCK_Pos (10U) |
||
9 | mjames | 5282 | #define USB_COUNT5_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ |
2 | mjames | 5283 | #define USB_COUNT5_RX_NUM_BLOCK USB_COUNT5_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ |
9 | mjames | 5284 | #define USB_COUNT5_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ |
5285 | #define USB_COUNT5_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ |
||
5286 | #define USB_COUNT5_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ |
||
5287 | #define USB_COUNT5_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ |
||
5288 | #define USB_COUNT5_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT5_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 5289 | |
5290 | #define USB_COUNT5_RX_BLSIZE_Pos (15U) |
||
9 | mjames | 5291 | #define USB_COUNT5_RX_BLSIZE_Msk (0x1UL << USB_COUNT5_RX_BLSIZE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5292 | #define USB_COUNT5_RX_BLSIZE USB_COUNT5_RX_BLSIZE_Msk /*!< BLock SIZE */ |
5293 | |||
5294 | /***************** Bit definition for USB_COUNT6_RX register ****************/ |
||
5295 | #define USB_COUNT6_RX_COUNT6_RX_Pos (0U) |
||
9 | mjames | 5296 | #define USB_COUNT6_RX_COUNT6_RX_Msk (0x3FFUL << USB_COUNT6_RX_COUNT6_RX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5297 | #define USB_COUNT6_RX_COUNT6_RX USB_COUNT6_RX_COUNT6_RX_Msk /*!< Reception Byte Count */ |
5298 | |||
5299 | #define USB_COUNT6_RX_NUM_BLOCK_Pos (10U) |
||
9 | mjames | 5300 | #define USB_COUNT6_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ |
2 | mjames | 5301 | #define USB_COUNT6_RX_NUM_BLOCK USB_COUNT6_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ |
9 | mjames | 5302 | #define USB_COUNT6_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ |
5303 | #define USB_COUNT6_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ |
||
5304 | #define USB_COUNT6_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ |
||
5305 | #define USB_COUNT6_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ |
||
5306 | #define USB_COUNT6_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT6_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 5307 | |
5308 | #define USB_COUNT6_RX_BLSIZE_Pos (15U) |
||
9 | mjames | 5309 | #define USB_COUNT6_RX_BLSIZE_Msk (0x1UL << USB_COUNT6_RX_BLSIZE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5310 | #define USB_COUNT6_RX_BLSIZE USB_COUNT6_RX_BLSIZE_Msk /*!< BLock SIZE */ |
5311 | |||
5312 | /***************** Bit definition for USB_COUNT7_RX register ****************/ |
||
5313 | #define USB_COUNT7_RX_COUNT7_RX_Pos (0U) |
||
9 | mjames | 5314 | #define USB_COUNT7_RX_COUNT7_RX_Msk (0x3FFUL << USB_COUNT7_RX_COUNT7_RX_Pos) /*!< 0x000003FF */ |
2 | mjames | 5315 | #define USB_COUNT7_RX_COUNT7_RX USB_COUNT7_RX_COUNT7_RX_Msk /*!< Reception Byte Count */ |
5316 | |||
5317 | #define USB_COUNT7_RX_NUM_BLOCK_Pos (10U) |
||
9 | mjames | 5318 | #define USB_COUNT7_RX_NUM_BLOCK_Msk (0x1FUL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00007C00 */ |
2 | mjames | 5319 | #define USB_COUNT7_RX_NUM_BLOCK USB_COUNT7_RX_NUM_BLOCK_Msk /*!< NUM_BLOCK[4:0] bits (Number of blocks) */ |
9 | mjames | 5320 | #define USB_COUNT7_RX_NUM_BLOCK_0 (0x01UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00000400 */ |
5321 | #define USB_COUNT7_RX_NUM_BLOCK_1 (0x02UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00000800 */ |
||
5322 | #define USB_COUNT7_RX_NUM_BLOCK_2 (0x04UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00001000 */ |
||
5323 | #define USB_COUNT7_RX_NUM_BLOCK_3 (0x08UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00002000 */ |
||
5324 | #define USB_COUNT7_RX_NUM_BLOCK_4 (0x10UL << USB_COUNT7_RX_NUM_BLOCK_Pos) /*!< 0x00004000 */ |
||
2 | mjames | 5325 | |
5326 | #define USB_COUNT7_RX_BLSIZE_Pos (15U) |
||
9 | mjames | 5327 | #define USB_COUNT7_RX_BLSIZE_Msk (0x1UL << USB_COUNT7_RX_BLSIZE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5328 | #define USB_COUNT7_RX_BLSIZE USB_COUNT7_RX_BLSIZE_Msk /*!< BLock SIZE */ |
5329 | |||
5330 | /*----------------------------------------------------------------------------*/ |
||
5331 | |||
5332 | /**************** Bit definition for USB_COUNT0_RX_0 register ***************/ |
||
5333 | #define USB_COUNT0_RX_0_COUNT0_RX_0 0x000003FFU /*!< Reception Byte Count (low) */ |
||
5334 | |||
5335 | #define USB_COUNT0_RX_0_NUM_BLOCK_0 0x00007C00U /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ |
||
5336 | #define USB_COUNT0_RX_0_NUM_BLOCK_0_0 0x00000400U /*!< Bit 0 */ |
||
5337 | #define USB_COUNT0_RX_0_NUM_BLOCK_0_1 0x00000800U /*!< Bit 1 */ |
||
5338 | #define USB_COUNT0_RX_0_NUM_BLOCK_0_2 0x00001000U /*!< Bit 2 */ |
||
5339 | #define USB_COUNT0_RX_0_NUM_BLOCK_0_3 0x00002000U /*!< Bit 3 */ |
||
5340 | #define USB_COUNT0_RX_0_NUM_BLOCK_0_4 0x00004000U /*!< Bit 4 */ |
||
5341 | |||
5342 | #define USB_COUNT0_RX_0_BLSIZE_0 0x00008000U /*!< BLock SIZE (low) */ |
||
5343 | |||
5344 | /**************** Bit definition for USB_COUNT0_RX_1 register ***************/ |
||
5345 | #define USB_COUNT0_RX_1_COUNT0_RX_1 0x03FF0000U /*!< Reception Byte Count (high) */ |
||
5346 | |||
5347 | #define USB_COUNT0_RX_1_NUM_BLOCK_1 0x7C000000U /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ |
||
5348 | #define USB_COUNT0_RX_1_NUM_BLOCK_1_0 0x04000000U /*!< Bit 1 */ |
||
5349 | #define USB_COUNT0_RX_1_NUM_BLOCK_1_1 0x08000000U /*!< Bit 1 */ |
||
5350 | #define USB_COUNT0_RX_1_NUM_BLOCK_1_2 0x10000000U /*!< Bit 2 */ |
||
5351 | #define USB_COUNT0_RX_1_NUM_BLOCK_1_3 0x20000000U /*!< Bit 3 */ |
||
5352 | #define USB_COUNT0_RX_1_NUM_BLOCK_1_4 0x40000000U /*!< Bit 4 */ |
||
5353 | |||
5354 | #define USB_COUNT0_RX_1_BLSIZE_1 0x80000000U /*!< BLock SIZE (high) */ |
||
5355 | |||
5356 | /**************** Bit definition for USB_COUNT1_RX_0 register ***************/ |
||
5357 | #define USB_COUNT1_RX_0_COUNT1_RX_0 0x000003FFU /*!< Reception Byte Count (low) */ |
||
5358 | |||
5359 | #define USB_COUNT1_RX_0_NUM_BLOCK_0 0x00007C00U /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ |
||
5360 | #define USB_COUNT1_RX_0_NUM_BLOCK_0_0 0x00000400U /*!< Bit 0 */ |
||
5361 | #define USB_COUNT1_RX_0_NUM_BLOCK_0_1 0x00000800U /*!< Bit 1 */ |
||
5362 | #define USB_COUNT1_RX_0_NUM_BLOCK_0_2 0x00001000U /*!< Bit 2 */ |
||
5363 | #define USB_COUNT1_RX_0_NUM_BLOCK_0_3 0x00002000U /*!< Bit 3 */ |
||
5364 | #define USB_COUNT1_RX_0_NUM_BLOCK_0_4 0x00004000U /*!< Bit 4 */ |
||
5365 | |||
5366 | #define USB_COUNT1_RX_0_BLSIZE_0 0x00008000U /*!< BLock SIZE (low) */ |
||
5367 | |||
5368 | /**************** Bit definition for USB_COUNT1_RX_1 register ***************/ |
||
5369 | #define USB_COUNT1_RX_1_COUNT1_RX_1 0x03FF0000U /*!< Reception Byte Count (high) */ |
||
5370 | |||
5371 | #define USB_COUNT1_RX_1_NUM_BLOCK_1 0x7C000000U /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ |
||
5372 | #define USB_COUNT1_RX_1_NUM_BLOCK_1_0 0x04000000U /*!< Bit 0 */ |
||
5373 | #define USB_COUNT1_RX_1_NUM_BLOCK_1_1 0x08000000U /*!< Bit 1 */ |
||
5374 | #define USB_COUNT1_RX_1_NUM_BLOCK_1_2 0x10000000U /*!< Bit 2 */ |
||
5375 | #define USB_COUNT1_RX_1_NUM_BLOCK_1_3 0x20000000U /*!< Bit 3 */ |
||
5376 | #define USB_COUNT1_RX_1_NUM_BLOCK_1_4 0x40000000U /*!< Bit 4 */ |
||
5377 | |||
5378 | #define USB_COUNT1_RX_1_BLSIZE_1 0x80000000U /*!< BLock SIZE (high) */ |
||
5379 | |||
5380 | /**************** Bit definition for USB_COUNT2_RX_0 register ***************/ |
||
5381 | #define USB_COUNT2_RX_0_COUNT2_RX_0 0x000003FFU /*!< Reception Byte Count (low) */ |
||
5382 | |||
5383 | #define USB_COUNT2_RX_0_NUM_BLOCK_0 0x00007C00U /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ |
||
5384 | #define USB_COUNT2_RX_0_NUM_BLOCK_0_0 0x00000400U /*!< Bit 0 */ |
||
5385 | #define USB_COUNT2_RX_0_NUM_BLOCK_0_1 0x00000800U /*!< Bit 1 */ |
||
5386 | #define USB_COUNT2_RX_0_NUM_BLOCK_0_2 0x00001000U /*!< Bit 2 */ |
||
5387 | #define USB_COUNT2_RX_0_NUM_BLOCK_0_3 0x00002000U /*!< Bit 3 */ |
||
5388 | #define USB_COUNT2_RX_0_NUM_BLOCK_0_4 0x00004000U /*!< Bit 4 */ |
||
5389 | |||
5390 | #define USB_COUNT2_RX_0_BLSIZE_0 0x00008000U /*!< BLock SIZE (low) */ |
||
5391 | |||
5392 | /**************** Bit definition for USB_COUNT2_RX_1 register ***************/ |
||
5393 | #define USB_COUNT2_RX_1_COUNT2_RX_1 0x03FF0000U /*!< Reception Byte Count (high) */ |
||
5394 | |||
5395 | #define USB_COUNT2_RX_1_NUM_BLOCK_1 0x7C000000U /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ |
||
5396 | #define USB_COUNT2_RX_1_NUM_BLOCK_1_0 0x04000000U /*!< Bit 0 */ |
||
5397 | #define USB_COUNT2_RX_1_NUM_BLOCK_1_1 0x08000000U /*!< Bit 1 */ |
||
5398 | #define USB_COUNT2_RX_1_NUM_BLOCK_1_2 0x10000000U /*!< Bit 2 */ |
||
5399 | #define USB_COUNT2_RX_1_NUM_BLOCK_1_3 0x20000000U /*!< Bit 3 */ |
||
5400 | #define USB_COUNT2_RX_1_NUM_BLOCK_1_4 0x40000000U /*!< Bit 4 */ |
||
5401 | |||
5402 | #define USB_COUNT2_RX_1_BLSIZE_1 0x80000000U /*!< BLock SIZE (high) */ |
||
5403 | |||
5404 | /**************** Bit definition for USB_COUNT3_RX_0 register ***************/ |
||
5405 | #define USB_COUNT3_RX_0_COUNT3_RX_0 0x000003FFU /*!< Reception Byte Count (low) */ |
||
5406 | |||
5407 | #define USB_COUNT3_RX_0_NUM_BLOCK_0 0x00007C00U /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ |
||
5408 | #define USB_COUNT3_RX_0_NUM_BLOCK_0_0 0x00000400U /*!< Bit 0 */ |
||
5409 | #define USB_COUNT3_RX_0_NUM_BLOCK_0_1 0x00000800U /*!< Bit 1 */ |
||
5410 | #define USB_COUNT3_RX_0_NUM_BLOCK_0_2 0x00001000U /*!< Bit 2 */ |
||
5411 | #define USB_COUNT3_RX_0_NUM_BLOCK_0_3 0x00002000U /*!< Bit 3 */ |
||
5412 | #define USB_COUNT3_RX_0_NUM_BLOCK_0_4 0x00004000U /*!< Bit 4 */ |
||
5413 | |||
5414 | #define USB_COUNT3_RX_0_BLSIZE_0 0x00008000U /*!< BLock SIZE (low) */ |
||
5415 | |||
5416 | /**************** Bit definition for USB_COUNT3_RX_1 register ***************/ |
||
5417 | #define USB_COUNT3_RX_1_COUNT3_RX_1 0x03FF0000U /*!< Reception Byte Count (high) */ |
||
5418 | |||
5419 | #define USB_COUNT3_RX_1_NUM_BLOCK_1 0x7C000000U /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ |
||
5420 | #define USB_COUNT3_RX_1_NUM_BLOCK_1_0 0x04000000U /*!< Bit 0 */ |
||
5421 | #define USB_COUNT3_RX_1_NUM_BLOCK_1_1 0x08000000U /*!< Bit 1 */ |
||
5422 | #define USB_COUNT3_RX_1_NUM_BLOCK_1_2 0x10000000U /*!< Bit 2 */ |
||
5423 | #define USB_COUNT3_RX_1_NUM_BLOCK_1_3 0x20000000U /*!< Bit 3 */ |
||
5424 | #define USB_COUNT3_RX_1_NUM_BLOCK_1_4 0x40000000U /*!< Bit 4 */ |
||
5425 | |||
5426 | #define USB_COUNT3_RX_1_BLSIZE_1 0x80000000U /*!< BLock SIZE (high) */ |
||
5427 | |||
5428 | /**************** Bit definition for USB_COUNT4_RX_0 register ***************/ |
||
5429 | #define USB_COUNT4_RX_0_COUNT4_RX_0 0x000003FFU /*!< Reception Byte Count (low) */ |
||
5430 | |||
5431 | #define USB_COUNT4_RX_0_NUM_BLOCK_0 0x00007C00U /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ |
||
5432 | #define USB_COUNT4_RX_0_NUM_BLOCK_0_0 0x00000400U /*!< Bit 0 */ |
||
5433 | #define USB_COUNT4_RX_0_NUM_BLOCK_0_1 0x00000800U /*!< Bit 1 */ |
||
5434 | #define USB_COUNT4_RX_0_NUM_BLOCK_0_2 0x00001000U /*!< Bit 2 */ |
||
5435 | #define USB_COUNT4_RX_0_NUM_BLOCK_0_3 0x00002000U /*!< Bit 3 */ |
||
5436 | #define USB_COUNT4_RX_0_NUM_BLOCK_0_4 0x00004000U /*!< Bit 4 */ |
||
5437 | |||
5438 | #define USB_COUNT4_RX_0_BLSIZE_0 0x00008000U /*!< BLock SIZE (low) */ |
||
5439 | |||
5440 | /**************** Bit definition for USB_COUNT4_RX_1 register ***************/ |
||
5441 | #define USB_COUNT4_RX_1_COUNT4_RX_1 0x03FF0000U /*!< Reception Byte Count (high) */ |
||
5442 | |||
5443 | #define USB_COUNT4_RX_1_NUM_BLOCK_1 0x7C000000U /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ |
||
5444 | #define USB_COUNT4_RX_1_NUM_BLOCK_1_0 0x04000000U /*!< Bit 0 */ |
||
5445 | #define USB_COUNT4_RX_1_NUM_BLOCK_1_1 0x08000000U /*!< Bit 1 */ |
||
5446 | #define USB_COUNT4_RX_1_NUM_BLOCK_1_2 0x10000000U /*!< Bit 2 */ |
||
5447 | #define USB_COUNT4_RX_1_NUM_BLOCK_1_3 0x20000000U /*!< Bit 3 */ |
||
5448 | #define USB_COUNT4_RX_1_NUM_BLOCK_1_4 0x40000000U /*!< Bit 4 */ |
||
5449 | |||
5450 | #define USB_COUNT4_RX_1_BLSIZE_1 0x80000000U /*!< BLock SIZE (high) */ |
||
5451 | |||
5452 | /**************** Bit definition for USB_COUNT5_RX_0 register ***************/ |
||
5453 | #define USB_COUNT5_RX_0_COUNT5_RX_0 0x000003FFU /*!< Reception Byte Count (low) */ |
||
5454 | |||
5455 | #define USB_COUNT5_RX_0_NUM_BLOCK_0 0x00007C00U /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ |
||
5456 | #define USB_COUNT5_RX_0_NUM_BLOCK_0_0 0x00000400U /*!< Bit 0 */ |
||
5457 | #define USB_COUNT5_RX_0_NUM_BLOCK_0_1 0x00000800U /*!< Bit 1 */ |
||
5458 | #define USB_COUNT5_RX_0_NUM_BLOCK_0_2 0x00001000U /*!< Bit 2 */ |
||
5459 | #define USB_COUNT5_RX_0_NUM_BLOCK_0_3 0x00002000U /*!< Bit 3 */ |
||
5460 | #define USB_COUNT5_RX_0_NUM_BLOCK_0_4 0x00004000U /*!< Bit 4 */ |
||
5461 | |||
5462 | #define USB_COUNT5_RX_0_BLSIZE_0 0x00008000U /*!< BLock SIZE (low) */ |
||
5463 | |||
5464 | /**************** Bit definition for USB_COUNT5_RX_1 register ***************/ |
||
5465 | #define USB_COUNT5_RX_1_COUNT5_RX_1 0x03FF0000U /*!< Reception Byte Count (high) */ |
||
5466 | |||
5467 | #define USB_COUNT5_RX_1_NUM_BLOCK_1 0x7C000000U /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ |
||
5468 | #define USB_COUNT5_RX_1_NUM_BLOCK_1_0 0x04000000U /*!< Bit 0 */ |
||
5469 | #define USB_COUNT5_RX_1_NUM_BLOCK_1_1 0x08000000U /*!< Bit 1 */ |
||
5470 | #define USB_COUNT5_RX_1_NUM_BLOCK_1_2 0x10000000U /*!< Bit 2 */ |
||
5471 | #define USB_COUNT5_RX_1_NUM_BLOCK_1_3 0x20000000U /*!< Bit 3 */ |
||
5472 | #define USB_COUNT5_RX_1_NUM_BLOCK_1_4 0x40000000U /*!< Bit 4 */ |
||
5473 | |||
5474 | #define USB_COUNT5_RX_1_BLSIZE_1 0x80000000U /*!< BLock SIZE (high) */ |
||
5475 | |||
5476 | /*************** Bit definition for USB_COUNT6_RX_0 register ***************/ |
||
5477 | #define USB_COUNT6_RX_0_COUNT6_RX_0 0x000003FFU /*!< Reception Byte Count (low) */ |
||
5478 | |||
5479 | #define USB_COUNT6_RX_0_NUM_BLOCK_0 0x00007C00U /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ |
||
5480 | #define USB_COUNT6_RX_0_NUM_BLOCK_0_0 0x00000400U /*!< Bit 0 */ |
||
5481 | #define USB_COUNT6_RX_0_NUM_BLOCK_0_1 0x00000800U /*!< Bit 1 */ |
||
5482 | #define USB_COUNT6_RX_0_NUM_BLOCK_0_2 0x00001000U /*!< Bit 2 */ |
||
5483 | #define USB_COUNT6_RX_0_NUM_BLOCK_0_3 0x00002000U /*!< Bit 3 */ |
||
5484 | #define USB_COUNT6_RX_0_NUM_BLOCK_0_4 0x00004000U /*!< Bit 4 */ |
||
5485 | |||
5486 | #define USB_COUNT6_RX_0_BLSIZE_0 0x00008000U /*!< BLock SIZE (low) */ |
||
5487 | |||
5488 | /**************** Bit definition for USB_COUNT6_RX_1 register ***************/ |
||
5489 | #define USB_COUNT6_RX_1_COUNT6_RX_1 0x03FF0000U /*!< Reception Byte Count (high) */ |
||
5490 | |||
5491 | #define USB_COUNT6_RX_1_NUM_BLOCK_1 0x7C000000U /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ |
||
5492 | #define USB_COUNT6_RX_1_NUM_BLOCK_1_0 0x04000000U /*!< Bit 0 */ |
||
5493 | #define USB_COUNT6_RX_1_NUM_BLOCK_1_1 0x08000000U /*!< Bit 1 */ |
||
5494 | #define USB_COUNT6_RX_1_NUM_BLOCK_1_2 0x10000000U /*!< Bit 2 */ |
||
5495 | #define USB_COUNT6_RX_1_NUM_BLOCK_1_3 0x20000000U /*!< Bit 3 */ |
||
5496 | #define USB_COUNT6_RX_1_NUM_BLOCK_1_4 0x40000000U /*!< Bit 4 */ |
||
5497 | |||
5498 | #define USB_COUNT6_RX_1_BLSIZE_1 0x80000000U /*!< BLock SIZE (high) */ |
||
5499 | |||
5500 | /*************** Bit definition for USB_COUNT7_RX_0 register ****************/ |
||
5501 | #define USB_COUNT7_RX_0_COUNT7_RX_0 0x000003FFU /*!< Reception Byte Count (low) */ |
||
5502 | |||
5503 | #define USB_COUNT7_RX_0_NUM_BLOCK_0 0x00007C00U /*!< NUM_BLOCK_0[4:0] bits (Number of blocks) (low) */ |
||
5504 | #define USB_COUNT7_RX_0_NUM_BLOCK_0_0 0x00000400U /*!< Bit 0 */ |
||
5505 | #define USB_COUNT7_RX_0_NUM_BLOCK_0_1 0x00000800U /*!< Bit 1 */ |
||
5506 | #define USB_COUNT7_RX_0_NUM_BLOCK_0_2 0x00001000U /*!< Bit 2 */ |
||
5507 | #define USB_COUNT7_RX_0_NUM_BLOCK_0_3 0x00002000U /*!< Bit 3 */ |
||
5508 | #define USB_COUNT7_RX_0_NUM_BLOCK_0_4 0x00004000U /*!< Bit 4 */ |
||
5509 | |||
5510 | #define USB_COUNT7_RX_0_BLSIZE_0 0x00008000U /*!< BLock SIZE (low) */ |
||
5511 | |||
5512 | /*************** Bit definition for USB_COUNT7_RX_1 register ****************/ |
||
5513 | #define USB_COUNT7_RX_1_COUNT7_RX_1 0x03FF0000U /*!< Reception Byte Count (high) */ |
||
5514 | |||
5515 | #define USB_COUNT7_RX_1_NUM_BLOCK_1 0x7C000000U /*!< NUM_BLOCK_1[4:0] bits (Number of blocks) (high) */ |
||
5516 | #define USB_COUNT7_RX_1_NUM_BLOCK_1_0 0x04000000U /*!< Bit 0 */ |
||
5517 | #define USB_COUNT7_RX_1_NUM_BLOCK_1_1 0x08000000U /*!< Bit 1 */ |
||
5518 | #define USB_COUNT7_RX_1_NUM_BLOCK_1_2 0x10000000U /*!< Bit 2 */ |
||
5519 | #define USB_COUNT7_RX_1_NUM_BLOCK_1_3 0x20000000U /*!< Bit 3 */ |
||
5520 | #define USB_COUNT7_RX_1_NUM_BLOCK_1_4 0x40000000U /*!< Bit 4 */ |
||
5521 | |||
5522 | #define USB_COUNT7_RX_1_BLSIZE_1 0x80000000U /*!< BLock SIZE (high) */ |
||
5523 | |||
5524 | /******************************************************************************/ |
||
5525 | /* */ |
||
5526 | /* Controller Area Network */ |
||
5527 | /* */ |
||
5528 | /******************************************************************************/ |
||
5529 | |||
5530 | /*!< CAN control and status registers */ |
||
5531 | /******************* Bit definition for CAN_MCR register ********************/ |
||
5532 | #define CAN_MCR_INRQ_Pos (0U) |
||
9 | mjames | 5533 | #define CAN_MCR_INRQ_Msk (0x1UL << CAN_MCR_INRQ_Pos) /*!< 0x00000001 */ |
2 | mjames | 5534 | #define CAN_MCR_INRQ CAN_MCR_INRQ_Msk /*!< Initialization Request */ |
5535 | #define CAN_MCR_SLEEP_Pos (1U) |
||
9 | mjames | 5536 | #define CAN_MCR_SLEEP_Msk (0x1UL << CAN_MCR_SLEEP_Pos) /*!< 0x00000002 */ |
2 | mjames | 5537 | #define CAN_MCR_SLEEP CAN_MCR_SLEEP_Msk /*!< Sleep Mode Request */ |
5538 | #define CAN_MCR_TXFP_Pos (2U) |
||
9 | mjames | 5539 | #define CAN_MCR_TXFP_Msk (0x1UL << CAN_MCR_TXFP_Pos) /*!< 0x00000004 */ |
2 | mjames | 5540 | #define CAN_MCR_TXFP CAN_MCR_TXFP_Msk /*!< Transmit FIFO Priority */ |
5541 | #define CAN_MCR_RFLM_Pos (3U) |
||
9 | mjames | 5542 | #define CAN_MCR_RFLM_Msk (0x1UL << CAN_MCR_RFLM_Pos) /*!< 0x00000008 */ |
2 | mjames | 5543 | #define CAN_MCR_RFLM CAN_MCR_RFLM_Msk /*!< Receive FIFO Locked Mode */ |
5544 | #define CAN_MCR_NART_Pos (4U) |
||
9 | mjames | 5545 | #define CAN_MCR_NART_Msk (0x1UL << CAN_MCR_NART_Pos) /*!< 0x00000010 */ |
2 | mjames | 5546 | #define CAN_MCR_NART CAN_MCR_NART_Msk /*!< No Automatic Retransmission */ |
5547 | #define CAN_MCR_AWUM_Pos (5U) |
||
9 | mjames | 5548 | #define CAN_MCR_AWUM_Msk (0x1UL << CAN_MCR_AWUM_Pos) /*!< 0x00000020 */ |
2 | mjames | 5549 | #define CAN_MCR_AWUM CAN_MCR_AWUM_Msk /*!< Automatic Wakeup Mode */ |
5550 | #define CAN_MCR_ABOM_Pos (6U) |
||
9 | mjames | 5551 | #define CAN_MCR_ABOM_Msk (0x1UL << CAN_MCR_ABOM_Pos) /*!< 0x00000040 */ |
2 | mjames | 5552 | #define CAN_MCR_ABOM CAN_MCR_ABOM_Msk /*!< Automatic Bus-Off Management */ |
5553 | #define CAN_MCR_TTCM_Pos (7U) |
||
9 | mjames | 5554 | #define CAN_MCR_TTCM_Msk (0x1UL << CAN_MCR_TTCM_Pos) /*!< 0x00000080 */ |
2 | mjames | 5555 | #define CAN_MCR_TTCM CAN_MCR_TTCM_Msk /*!< Time Triggered Communication Mode */ |
5556 | #define CAN_MCR_RESET_Pos (15U) |
||
9 | mjames | 5557 | #define CAN_MCR_RESET_Msk (0x1UL << CAN_MCR_RESET_Pos) /*!< 0x00008000 */ |
2 | mjames | 5558 | #define CAN_MCR_RESET CAN_MCR_RESET_Msk /*!< CAN software master reset */ |
5559 | #define CAN_MCR_DBF_Pos (16U) |
||
9 | mjames | 5560 | #define CAN_MCR_DBF_Msk (0x1UL << CAN_MCR_DBF_Pos) /*!< 0x00010000 */ |
2 | mjames | 5561 | #define CAN_MCR_DBF CAN_MCR_DBF_Msk /*!< CAN Debug freeze */ |
5562 | |||
5563 | /******************* Bit definition for CAN_MSR register ********************/ |
||
5564 | #define CAN_MSR_INAK_Pos (0U) |
||
9 | mjames | 5565 | #define CAN_MSR_INAK_Msk (0x1UL << CAN_MSR_INAK_Pos) /*!< 0x00000001 */ |
2 | mjames | 5566 | #define CAN_MSR_INAK CAN_MSR_INAK_Msk /*!< Initialization Acknowledge */ |
5567 | #define CAN_MSR_SLAK_Pos (1U) |
||
9 | mjames | 5568 | #define CAN_MSR_SLAK_Msk (0x1UL << CAN_MSR_SLAK_Pos) /*!< 0x00000002 */ |
2 | mjames | 5569 | #define CAN_MSR_SLAK CAN_MSR_SLAK_Msk /*!< Sleep Acknowledge */ |
5570 | #define CAN_MSR_ERRI_Pos (2U) |
||
9 | mjames | 5571 | #define CAN_MSR_ERRI_Msk (0x1UL << CAN_MSR_ERRI_Pos) /*!< 0x00000004 */ |
2 | mjames | 5572 | #define CAN_MSR_ERRI CAN_MSR_ERRI_Msk /*!< Error Interrupt */ |
5573 | #define CAN_MSR_WKUI_Pos (3U) |
||
9 | mjames | 5574 | #define CAN_MSR_WKUI_Msk (0x1UL << CAN_MSR_WKUI_Pos) /*!< 0x00000008 */ |
2 | mjames | 5575 | #define CAN_MSR_WKUI CAN_MSR_WKUI_Msk /*!< Wakeup Interrupt */ |
5576 | #define CAN_MSR_SLAKI_Pos (4U) |
||
9 | mjames | 5577 | #define CAN_MSR_SLAKI_Msk (0x1UL << CAN_MSR_SLAKI_Pos) /*!< 0x00000010 */ |
2 | mjames | 5578 | #define CAN_MSR_SLAKI CAN_MSR_SLAKI_Msk /*!< Sleep Acknowledge Interrupt */ |
5579 | #define CAN_MSR_TXM_Pos (8U) |
||
9 | mjames | 5580 | #define CAN_MSR_TXM_Msk (0x1UL << CAN_MSR_TXM_Pos) /*!< 0x00000100 */ |
2 | mjames | 5581 | #define CAN_MSR_TXM CAN_MSR_TXM_Msk /*!< Transmit Mode */ |
5582 | #define CAN_MSR_RXM_Pos (9U) |
||
9 | mjames | 5583 | #define CAN_MSR_RXM_Msk (0x1UL << CAN_MSR_RXM_Pos) /*!< 0x00000200 */ |
2 | mjames | 5584 | #define CAN_MSR_RXM CAN_MSR_RXM_Msk /*!< Receive Mode */ |
5585 | #define CAN_MSR_SAMP_Pos (10U) |
||
9 | mjames | 5586 | #define CAN_MSR_SAMP_Msk (0x1UL << CAN_MSR_SAMP_Pos) /*!< 0x00000400 */ |
2 | mjames | 5587 | #define CAN_MSR_SAMP CAN_MSR_SAMP_Msk /*!< Last Sample Point */ |
5588 | #define CAN_MSR_RX_Pos (11U) |
||
9 | mjames | 5589 | #define CAN_MSR_RX_Msk (0x1UL << CAN_MSR_RX_Pos) /*!< 0x00000800 */ |
2 | mjames | 5590 | #define CAN_MSR_RX CAN_MSR_RX_Msk /*!< CAN Rx Signal */ |
5591 | |||
5592 | /******************* Bit definition for CAN_TSR register ********************/ |
||
5593 | #define CAN_TSR_RQCP0_Pos (0U) |
||
9 | mjames | 5594 | #define CAN_TSR_RQCP0_Msk (0x1UL << CAN_TSR_RQCP0_Pos) /*!< 0x00000001 */ |
2 | mjames | 5595 | #define CAN_TSR_RQCP0 CAN_TSR_RQCP0_Msk /*!< Request Completed Mailbox0 */ |
5596 | #define CAN_TSR_TXOK0_Pos (1U) |
||
9 | mjames | 5597 | #define CAN_TSR_TXOK0_Msk (0x1UL << CAN_TSR_TXOK0_Pos) /*!< 0x00000002 */ |
2 | mjames | 5598 | #define CAN_TSR_TXOK0 CAN_TSR_TXOK0_Msk /*!< Transmission OK of Mailbox0 */ |
5599 | #define CAN_TSR_ALST0_Pos (2U) |
||
9 | mjames | 5600 | #define CAN_TSR_ALST0_Msk (0x1UL << CAN_TSR_ALST0_Pos) /*!< 0x00000004 */ |
2 | mjames | 5601 | #define CAN_TSR_ALST0 CAN_TSR_ALST0_Msk /*!< Arbitration Lost for Mailbox0 */ |
5602 | #define CAN_TSR_TERR0_Pos (3U) |
||
9 | mjames | 5603 | #define CAN_TSR_TERR0_Msk (0x1UL << CAN_TSR_TERR0_Pos) /*!< 0x00000008 */ |
2 | mjames | 5604 | #define CAN_TSR_TERR0 CAN_TSR_TERR0_Msk /*!< Transmission Error of Mailbox0 */ |
5605 | #define CAN_TSR_ABRQ0_Pos (7U) |
||
9 | mjames | 5606 | #define CAN_TSR_ABRQ0_Msk (0x1UL << CAN_TSR_ABRQ0_Pos) /*!< 0x00000080 */ |
2 | mjames | 5607 | #define CAN_TSR_ABRQ0 CAN_TSR_ABRQ0_Msk /*!< Abort Request for Mailbox0 */ |
5608 | #define CAN_TSR_RQCP1_Pos (8U) |
||
9 | mjames | 5609 | #define CAN_TSR_RQCP1_Msk (0x1UL << CAN_TSR_RQCP1_Pos) /*!< 0x00000100 */ |
2 | mjames | 5610 | #define CAN_TSR_RQCP1 CAN_TSR_RQCP1_Msk /*!< Request Completed Mailbox1 */ |
5611 | #define CAN_TSR_TXOK1_Pos (9U) |
||
9 | mjames | 5612 | #define CAN_TSR_TXOK1_Msk (0x1UL << CAN_TSR_TXOK1_Pos) /*!< 0x00000200 */ |
2 | mjames | 5613 | #define CAN_TSR_TXOK1 CAN_TSR_TXOK1_Msk /*!< Transmission OK of Mailbox1 */ |
5614 | #define CAN_TSR_ALST1_Pos (10U) |
||
9 | mjames | 5615 | #define CAN_TSR_ALST1_Msk (0x1UL << CAN_TSR_ALST1_Pos) /*!< 0x00000400 */ |
2 | mjames | 5616 | #define CAN_TSR_ALST1 CAN_TSR_ALST1_Msk /*!< Arbitration Lost for Mailbox1 */ |
5617 | #define CAN_TSR_TERR1_Pos (11U) |
||
9 | mjames | 5618 | #define CAN_TSR_TERR1_Msk (0x1UL << CAN_TSR_TERR1_Pos) /*!< 0x00000800 */ |
2 | mjames | 5619 | #define CAN_TSR_TERR1 CAN_TSR_TERR1_Msk /*!< Transmission Error of Mailbox1 */ |
5620 | #define CAN_TSR_ABRQ1_Pos (15U) |
||
9 | mjames | 5621 | #define CAN_TSR_ABRQ1_Msk (0x1UL << CAN_TSR_ABRQ1_Pos) /*!< 0x00008000 */ |
2 | mjames | 5622 | #define CAN_TSR_ABRQ1 CAN_TSR_ABRQ1_Msk /*!< Abort Request for Mailbox 1 */ |
5623 | #define CAN_TSR_RQCP2_Pos (16U) |
||
9 | mjames | 5624 | #define CAN_TSR_RQCP2_Msk (0x1UL << CAN_TSR_RQCP2_Pos) /*!< 0x00010000 */ |
2 | mjames | 5625 | #define CAN_TSR_RQCP2 CAN_TSR_RQCP2_Msk /*!< Request Completed Mailbox2 */ |
5626 | #define CAN_TSR_TXOK2_Pos (17U) |
||
9 | mjames | 5627 | #define CAN_TSR_TXOK2_Msk (0x1UL << CAN_TSR_TXOK2_Pos) /*!< 0x00020000 */ |
2 | mjames | 5628 | #define CAN_TSR_TXOK2 CAN_TSR_TXOK2_Msk /*!< Transmission OK of Mailbox 2 */ |
5629 | #define CAN_TSR_ALST2_Pos (18U) |
||
9 | mjames | 5630 | #define CAN_TSR_ALST2_Msk (0x1UL << CAN_TSR_ALST2_Pos) /*!< 0x00040000 */ |
2 | mjames | 5631 | #define CAN_TSR_ALST2 CAN_TSR_ALST2_Msk /*!< Arbitration Lost for mailbox 2 */ |
5632 | #define CAN_TSR_TERR2_Pos (19U) |
||
9 | mjames | 5633 | #define CAN_TSR_TERR2_Msk (0x1UL << CAN_TSR_TERR2_Pos) /*!< 0x00080000 */ |
2 | mjames | 5634 | #define CAN_TSR_TERR2 CAN_TSR_TERR2_Msk /*!< Transmission Error of Mailbox 2 */ |
5635 | #define CAN_TSR_ABRQ2_Pos (23U) |
||
9 | mjames | 5636 | #define CAN_TSR_ABRQ2_Msk (0x1UL << CAN_TSR_ABRQ2_Pos) /*!< 0x00800000 */ |
2 | mjames | 5637 | #define CAN_TSR_ABRQ2 CAN_TSR_ABRQ2_Msk /*!< Abort Request for Mailbox 2 */ |
5638 | #define CAN_TSR_CODE_Pos (24U) |
||
9 | mjames | 5639 | #define CAN_TSR_CODE_Msk (0x3UL << CAN_TSR_CODE_Pos) /*!< 0x03000000 */ |
2 | mjames | 5640 | #define CAN_TSR_CODE CAN_TSR_CODE_Msk /*!< Mailbox Code */ |
5641 | |||
5642 | #define CAN_TSR_TME_Pos (26U) |
||
9 | mjames | 5643 | #define CAN_TSR_TME_Msk (0x7UL << CAN_TSR_TME_Pos) /*!< 0x1C000000 */ |
2 | mjames | 5644 | #define CAN_TSR_TME CAN_TSR_TME_Msk /*!< TME[2:0] bits */ |
5645 | #define CAN_TSR_TME0_Pos (26U) |
||
9 | mjames | 5646 | #define CAN_TSR_TME0_Msk (0x1UL << CAN_TSR_TME0_Pos) /*!< 0x04000000 */ |
2 | mjames | 5647 | #define CAN_TSR_TME0 CAN_TSR_TME0_Msk /*!< Transmit Mailbox 0 Empty */ |
5648 | #define CAN_TSR_TME1_Pos (27U) |
||
9 | mjames | 5649 | #define CAN_TSR_TME1_Msk (0x1UL << CAN_TSR_TME1_Pos) /*!< 0x08000000 */ |
2 | mjames | 5650 | #define CAN_TSR_TME1 CAN_TSR_TME1_Msk /*!< Transmit Mailbox 1 Empty */ |
5651 | #define CAN_TSR_TME2_Pos (28U) |
||
9 | mjames | 5652 | #define CAN_TSR_TME2_Msk (0x1UL << CAN_TSR_TME2_Pos) /*!< 0x10000000 */ |
2 | mjames | 5653 | #define CAN_TSR_TME2 CAN_TSR_TME2_Msk /*!< Transmit Mailbox 2 Empty */ |
5654 | |||
5655 | #define CAN_TSR_LOW_Pos (29U) |
||
9 | mjames | 5656 | #define CAN_TSR_LOW_Msk (0x7UL << CAN_TSR_LOW_Pos) /*!< 0xE0000000 */ |
2 | mjames | 5657 | #define CAN_TSR_LOW CAN_TSR_LOW_Msk /*!< LOW[2:0] bits */ |
5658 | #define CAN_TSR_LOW0_Pos (29U) |
||
9 | mjames | 5659 | #define CAN_TSR_LOW0_Msk (0x1UL << CAN_TSR_LOW0_Pos) /*!< 0x20000000 */ |
2 | mjames | 5660 | #define CAN_TSR_LOW0 CAN_TSR_LOW0_Msk /*!< Lowest Priority Flag for Mailbox 0 */ |
5661 | #define CAN_TSR_LOW1_Pos (30U) |
||
9 | mjames | 5662 | #define CAN_TSR_LOW1_Msk (0x1UL << CAN_TSR_LOW1_Pos) /*!< 0x40000000 */ |
2 | mjames | 5663 | #define CAN_TSR_LOW1 CAN_TSR_LOW1_Msk /*!< Lowest Priority Flag for Mailbox 1 */ |
5664 | #define CAN_TSR_LOW2_Pos (31U) |
||
9 | mjames | 5665 | #define CAN_TSR_LOW2_Msk (0x1UL << CAN_TSR_LOW2_Pos) /*!< 0x80000000 */ |
2 | mjames | 5666 | #define CAN_TSR_LOW2 CAN_TSR_LOW2_Msk /*!< Lowest Priority Flag for Mailbox 2 */ |
5667 | |||
5668 | /******************* Bit definition for CAN_RF0R register *******************/ |
||
5669 | #define CAN_RF0R_FMP0_Pos (0U) |
||
9 | mjames | 5670 | #define CAN_RF0R_FMP0_Msk (0x3UL << CAN_RF0R_FMP0_Pos) /*!< 0x00000003 */ |
2 | mjames | 5671 | #define CAN_RF0R_FMP0 CAN_RF0R_FMP0_Msk /*!< FIFO 0 Message Pending */ |
5672 | #define CAN_RF0R_FULL0_Pos (3U) |
||
9 | mjames | 5673 | #define CAN_RF0R_FULL0_Msk (0x1UL << CAN_RF0R_FULL0_Pos) /*!< 0x00000008 */ |
2 | mjames | 5674 | #define CAN_RF0R_FULL0 CAN_RF0R_FULL0_Msk /*!< FIFO 0 Full */ |
5675 | #define CAN_RF0R_FOVR0_Pos (4U) |
||
9 | mjames | 5676 | #define CAN_RF0R_FOVR0_Msk (0x1UL << CAN_RF0R_FOVR0_Pos) /*!< 0x00000010 */ |
2 | mjames | 5677 | #define CAN_RF0R_FOVR0 CAN_RF0R_FOVR0_Msk /*!< FIFO 0 Overrun */ |
5678 | #define CAN_RF0R_RFOM0_Pos (5U) |
||
9 | mjames | 5679 | #define CAN_RF0R_RFOM0_Msk (0x1UL << CAN_RF0R_RFOM0_Pos) /*!< 0x00000020 */ |
2 | mjames | 5680 | #define CAN_RF0R_RFOM0 CAN_RF0R_RFOM0_Msk /*!< Release FIFO 0 Output Mailbox */ |
5681 | |||
5682 | /******************* Bit definition for CAN_RF1R register *******************/ |
||
5683 | #define CAN_RF1R_FMP1_Pos (0U) |
||
9 | mjames | 5684 | #define CAN_RF1R_FMP1_Msk (0x3UL << CAN_RF1R_FMP1_Pos) /*!< 0x00000003 */ |
2 | mjames | 5685 | #define CAN_RF1R_FMP1 CAN_RF1R_FMP1_Msk /*!< FIFO 1 Message Pending */ |
5686 | #define CAN_RF1R_FULL1_Pos (3U) |
||
9 | mjames | 5687 | #define CAN_RF1R_FULL1_Msk (0x1UL << CAN_RF1R_FULL1_Pos) /*!< 0x00000008 */ |
2 | mjames | 5688 | #define CAN_RF1R_FULL1 CAN_RF1R_FULL1_Msk /*!< FIFO 1 Full */ |
5689 | #define CAN_RF1R_FOVR1_Pos (4U) |
||
9 | mjames | 5690 | #define CAN_RF1R_FOVR1_Msk (0x1UL << CAN_RF1R_FOVR1_Pos) /*!< 0x00000010 */ |
2 | mjames | 5691 | #define CAN_RF1R_FOVR1 CAN_RF1R_FOVR1_Msk /*!< FIFO 1 Overrun */ |
5692 | #define CAN_RF1R_RFOM1_Pos (5U) |
||
9 | mjames | 5693 | #define CAN_RF1R_RFOM1_Msk (0x1UL << CAN_RF1R_RFOM1_Pos) /*!< 0x00000020 */ |
2 | mjames | 5694 | #define CAN_RF1R_RFOM1 CAN_RF1R_RFOM1_Msk /*!< Release FIFO 1 Output Mailbox */ |
5695 | |||
5696 | /******************** Bit definition for CAN_IER register *******************/ |
||
5697 | #define CAN_IER_TMEIE_Pos (0U) |
||
9 | mjames | 5698 | #define CAN_IER_TMEIE_Msk (0x1UL << CAN_IER_TMEIE_Pos) /*!< 0x00000001 */ |
2 | mjames | 5699 | #define CAN_IER_TMEIE CAN_IER_TMEIE_Msk /*!< Transmit Mailbox Empty Interrupt Enable */ |
5700 | #define CAN_IER_FMPIE0_Pos (1U) |
||
9 | mjames | 5701 | #define CAN_IER_FMPIE0_Msk (0x1UL << CAN_IER_FMPIE0_Pos) /*!< 0x00000002 */ |
2 | mjames | 5702 | #define CAN_IER_FMPIE0 CAN_IER_FMPIE0_Msk /*!< FIFO Message Pending Interrupt Enable */ |
5703 | #define CAN_IER_FFIE0_Pos (2U) |
||
9 | mjames | 5704 | #define CAN_IER_FFIE0_Msk (0x1UL << CAN_IER_FFIE0_Pos) /*!< 0x00000004 */ |
2 | mjames | 5705 | #define CAN_IER_FFIE0 CAN_IER_FFIE0_Msk /*!< FIFO Full Interrupt Enable */ |
5706 | #define CAN_IER_FOVIE0_Pos (3U) |
||
9 | mjames | 5707 | #define CAN_IER_FOVIE0_Msk (0x1UL << CAN_IER_FOVIE0_Pos) /*!< 0x00000008 */ |
2 | mjames | 5708 | #define CAN_IER_FOVIE0 CAN_IER_FOVIE0_Msk /*!< FIFO Overrun Interrupt Enable */ |
5709 | #define CAN_IER_FMPIE1_Pos (4U) |
||
9 | mjames | 5710 | #define CAN_IER_FMPIE1_Msk (0x1UL << CAN_IER_FMPIE1_Pos) /*!< 0x00000010 */ |
2 | mjames | 5711 | #define CAN_IER_FMPIE1 CAN_IER_FMPIE1_Msk /*!< FIFO Message Pending Interrupt Enable */ |
5712 | #define CAN_IER_FFIE1_Pos (5U) |
||
9 | mjames | 5713 | #define CAN_IER_FFIE1_Msk (0x1UL << CAN_IER_FFIE1_Pos) /*!< 0x00000020 */ |
2 | mjames | 5714 | #define CAN_IER_FFIE1 CAN_IER_FFIE1_Msk /*!< FIFO Full Interrupt Enable */ |
5715 | #define CAN_IER_FOVIE1_Pos (6U) |
||
9 | mjames | 5716 | #define CAN_IER_FOVIE1_Msk (0x1UL << CAN_IER_FOVIE1_Pos) /*!< 0x00000040 */ |
2 | mjames | 5717 | #define CAN_IER_FOVIE1 CAN_IER_FOVIE1_Msk /*!< FIFO Overrun Interrupt Enable */ |
5718 | #define CAN_IER_EWGIE_Pos (8U) |
||
9 | mjames | 5719 | #define CAN_IER_EWGIE_Msk (0x1UL << CAN_IER_EWGIE_Pos) /*!< 0x00000100 */ |
2 | mjames | 5720 | #define CAN_IER_EWGIE CAN_IER_EWGIE_Msk /*!< Error Warning Interrupt Enable */ |
5721 | #define CAN_IER_EPVIE_Pos (9U) |
||
9 | mjames | 5722 | #define CAN_IER_EPVIE_Msk (0x1UL << CAN_IER_EPVIE_Pos) /*!< 0x00000200 */ |
2 | mjames | 5723 | #define CAN_IER_EPVIE CAN_IER_EPVIE_Msk /*!< Error Passive Interrupt Enable */ |
5724 | #define CAN_IER_BOFIE_Pos (10U) |
||
9 | mjames | 5725 | #define CAN_IER_BOFIE_Msk (0x1UL << CAN_IER_BOFIE_Pos) /*!< 0x00000400 */ |
2 | mjames | 5726 | #define CAN_IER_BOFIE CAN_IER_BOFIE_Msk /*!< Bus-Off Interrupt Enable */ |
5727 | #define CAN_IER_LECIE_Pos (11U) |
||
9 | mjames | 5728 | #define CAN_IER_LECIE_Msk (0x1UL << CAN_IER_LECIE_Pos) /*!< 0x00000800 */ |
2 | mjames | 5729 | #define CAN_IER_LECIE CAN_IER_LECIE_Msk /*!< Last Error Code Interrupt Enable */ |
5730 | #define CAN_IER_ERRIE_Pos (15U) |
||
9 | mjames | 5731 | #define CAN_IER_ERRIE_Msk (0x1UL << CAN_IER_ERRIE_Pos) /*!< 0x00008000 */ |
2 | mjames | 5732 | #define CAN_IER_ERRIE CAN_IER_ERRIE_Msk /*!< Error Interrupt Enable */ |
5733 | #define CAN_IER_WKUIE_Pos (16U) |
||
9 | mjames | 5734 | #define CAN_IER_WKUIE_Msk (0x1UL << CAN_IER_WKUIE_Pos) /*!< 0x00010000 */ |
2 | mjames | 5735 | #define CAN_IER_WKUIE CAN_IER_WKUIE_Msk /*!< Wakeup Interrupt Enable */ |
5736 | #define CAN_IER_SLKIE_Pos (17U) |
||
9 | mjames | 5737 | #define CAN_IER_SLKIE_Msk (0x1UL << CAN_IER_SLKIE_Pos) /*!< 0x00020000 */ |
2 | mjames | 5738 | #define CAN_IER_SLKIE CAN_IER_SLKIE_Msk /*!< Sleep Interrupt Enable */ |
5739 | |||
5740 | /******************** Bit definition for CAN_ESR register *******************/ |
||
5741 | #define CAN_ESR_EWGF_Pos (0U) |
||
9 | mjames | 5742 | #define CAN_ESR_EWGF_Msk (0x1UL << CAN_ESR_EWGF_Pos) /*!< 0x00000001 */ |
2 | mjames | 5743 | #define CAN_ESR_EWGF CAN_ESR_EWGF_Msk /*!< Error Warning Flag */ |
5744 | #define CAN_ESR_EPVF_Pos (1U) |
||
9 | mjames | 5745 | #define CAN_ESR_EPVF_Msk (0x1UL << CAN_ESR_EPVF_Pos) /*!< 0x00000002 */ |
2 | mjames | 5746 | #define CAN_ESR_EPVF CAN_ESR_EPVF_Msk /*!< Error Passive Flag */ |
5747 | #define CAN_ESR_BOFF_Pos (2U) |
||
9 | mjames | 5748 | #define CAN_ESR_BOFF_Msk (0x1UL << CAN_ESR_BOFF_Pos) /*!< 0x00000004 */ |
2 | mjames | 5749 | #define CAN_ESR_BOFF CAN_ESR_BOFF_Msk /*!< Bus-Off Flag */ |
5750 | |||
5751 | #define CAN_ESR_LEC_Pos (4U) |
||
9 | mjames | 5752 | #define CAN_ESR_LEC_Msk (0x7UL << CAN_ESR_LEC_Pos) /*!< 0x00000070 */ |
2 | mjames | 5753 | #define CAN_ESR_LEC CAN_ESR_LEC_Msk /*!< LEC[2:0] bits (Last Error Code) */ |
9 | mjames | 5754 | #define CAN_ESR_LEC_0 (0x1UL << CAN_ESR_LEC_Pos) /*!< 0x00000010 */ |
5755 | #define CAN_ESR_LEC_1 (0x2UL << CAN_ESR_LEC_Pos) /*!< 0x00000020 */ |
||
5756 | #define CAN_ESR_LEC_2 (0x4UL << CAN_ESR_LEC_Pos) /*!< 0x00000040 */ |
||
2 | mjames | 5757 | |
5758 | #define CAN_ESR_TEC_Pos (16U) |
||
9 | mjames | 5759 | #define CAN_ESR_TEC_Msk (0xFFUL << CAN_ESR_TEC_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 5760 | #define CAN_ESR_TEC CAN_ESR_TEC_Msk /*!< Least significant byte of the 9-bit Transmit Error Counter */ |
5761 | #define CAN_ESR_REC_Pos (24U) |
||
9 | mjames | 5762 | #define CAN_ESR_REC_Msk (0xFFUL << CAN_ESR_REC_Pos) /*!< 0xFF000000 */ |
2 | mjames | 5763 | #define CAN_ESR_REC CAN_ESR_REC_Msk /*!< Receive Error Counter */ |
5764 | |||
5765 | /******************* Bit definition for CAN_BTR register ********************/ |
||
5766 | #define CAN_BTR_BRP_Pos (0U) |
||
9 | mjames | 5767 | #define CAN_BTR_BRP_Msk (0x3FFUL << CAN_BTR_BRP_Pos) /*!< 0x000003FF */ |
2 | mjames | 5768 | #define CAN_BTR_BRP CAN_BTR_BRP_Msk /*!<Baud Rate Prescaler */ |
5769 | #define CAN_BTR_TS1_Pos (16U) |
||
9 | mjames | 5770 | #define CAN_BTR_TS1_Msk (0xFUL << CAN_BTR_TS1_Pos) /*!< 0x000F0000 */ |
2 | mjames | 5771 | #define CAN_BTR_TS1 CAN_BTR_TS1_Msk /*!<Time Segment 1 */ |
9 | mjames | 5772 | #define CAN_BTR_TS1_0 (0x1UL << CAN_BTR_TS1_Pos) /*!< 0x00010000 */ |
5773 | #define CAN_BTR_TS1_1 (0x2UL << CAN_BTR_TS1_Pos) /*!< 0x00020000 */ |
||
5774 | #define CAN_BTR_TS1_2 (0x4UL << CAN_BTR_TS1_Pos) /*!< 0x00040000 */ |
||
5775 | #define CAN_BTR_TS1_3 (0x8UL << CAN_BTR_TS1_Pos) /*!< 0x00080000 */ |
||
2 | mjames | 5776 | #define CAN_BTR_TS2_Pos (20U) |
9 | mjames | 5777 | #define CAN_BTR_TS2_Msk (0x7UL << CAN_BTR_TS2_Pos) /*!< 0x00700000 */ |
2 | mjames | 5778 | #define CAN_BTR_TS2 CAN_BTR_TS2_Msk /*!<Time Segment 2 */ |
9 | mjames | 5779 | #define CAN_BTR_TS2_0 (0x1UL << CAN_BTR_TS2_Pos) /*!< 0x00100000 */ |
5780 | #define CAN_BTR_TS2_1 (0x2UL << CAN_BTR_TS2_Pos) /*!< 0x00200000 */ |
||
5781 | #define CAN_BTR_TS2_2 (0x4UL << CAN_BTR_TS2_Pos) /*!< 0x00400000 */ |
||
2 | mjames | 5782 | #define CAN_BTR_SJW_Pos (24U) |
9 | mjames | 5783 | #define CAN_BTR_SJW_Msk (0x3UL << CAN_BTR_SJW_Pos) /*!< 0x03000000 */ |
2 | mjames | 5784 | #define CAN_BTR_SJW CAN_BTR_SJW_Msk /*!<Resynchronization Jump Width */ |
9 | mjames | 5785 | #define CAN_BTR_SJW_0 (0x1UL << CAN_BTR_SJW_Pos) /*!< 0x01000000 */ |
5786 | #define CAN_BTR_SJW_1 (0x2UL << CAN_BTR_SJW_Pos) /*!< 0x02000000 */ |
||
2 | mjames | 5787 | #define CAN_BTR_LBKM_Pos (30U) |
9 | mjames | 5788 | #define CAN_BTR_LBKM_Msk (0x1UL << CAN_BTR_LBKM_Pos) /*!< 0x40000000 */ |
2 | mjames | 5789 | #define CAN_BTR_LBKM CAN_BTR_LBKM_Msk /*!<Loop Back Mode (Debug) */ |
5790 | #define CAN_BTR_SILM_Pos (31U) |
||
9 | mjames | 5791 | #define CAN_BTR_SILM_Msk (0x1UL << CAN_BTR_SILM_Pos) /*!< 0x80000000 */ |
2 | mjames | 5792 | #define CAN_BTR_SILM CAN_BTR_SILM_Msk /*!<Silent Mode */ |
5793 | |||
5794 | /*!< Mailbox registers */ |
||
5795 | /****************** Bit definition for CAN_TI0R register ********************/ |
||
5796 | #define CAN_TI0R_TXRQ_Pos (0U) |
||
9 | mjames | 5797 | #define CAN_TI0R_TXRQ_Msk (0x1UL << CAN_TI0R_TXRQ_Pos) /*!< 0x00000001 */ |
2 | mjames | 5798 | #define CAN_TI0R_TXRQ CAN_TI0R_TXRQ_Msk /*!< Transmit Mailbox Request */ |
5799 | #define CAN_TI0R_RTR_Pos (1U) |
||
9 | mjames | 5800 | #define CAN_TI0R_RTR_Msk (0x1UL << CAN_TI0R_RTR_Pos) /*!< 0x00000002 */ |
2 | mjames | 5801 | #define CAN_TI0R_RTR CAN_TI0R_RTR_Msk /*!< Remote Transmission Request */ |
5802 | #define CAN_TI0R_IDE_Pos (2U) |
||
9 | mjames | 5803 | #define CAN_TI0R_IDE_Msk (0x1UL << CAN_TI0R_IDE_Pos) /*!< 0x00000004 */ |
2 | mjames | 5804 | #define CAN_TI0R_IDE CAN_TI0R_IDE_Msk /*!< Identifier Extension */ |
5805 | #define CAN_TI0R_EXID_Pos (3U) |
||
9 | mjames | 5806 | #define CAN_TI0R_EXID_Msk (0x3FFFFUL << CAN_TI0R_EXID_Pos) /*!< 0x001FFFF8 */ |
2 | mjames | 5807 | #define CAN_TI0R_EXID CAN_TI0R_EXID_Msk /*!< Extended Identifier */ |
5808 | #define CAN_TI0R_STID_Pos (21U) |
||
9 | mjames | 5809 | #define CAN_TI0R_STID_Msk (0x7FFUL << CAN_TI0R_STID_Pos) /*!< 0xFFE00000 */ |
2 | mjames | 5810 | #define CAN_TI0R_STID CAN_TI0R_STID_Msk /*!< Standard Identifier or Extended Identifier */ |
5811 | |||
5812 | /****************** Bit definition for CAN_TDT0R register *******************/ |
||
5813 | #define CAN_TDT0R_DLC_Pos (0U) |
||
9 | mjames | 5814 | #define CAN_TDT0R_DLC_Msk (0xFUL << CAN_TDT0R_DLC_Pos) /*!< 0x0000000F */ |
2 | mjames | 5815 | #define CAN_TDT0R_DLC CAN_TDT0R_DLC_Msk /*!< Data Length Code */ |
5816 | #define CAN_TDT0R_TGT_Pos (8U) |
||
9 | mjames | 5817 | #define CAN_TDT0R_TGT_Msk (0x1UL << CAN_TDT0R_TGT_Pos) /*!< 0x00000100 */ |
2 | mjames | 5818 | #define CAN_TDT0R_TGT CAN_TDT0R_TGT_Msk /*!< Transmit Global Time */ |
5819 | #define CAN_TDT0R_TIME_Pos (16U) |
||
9 | mjames | 5820 | #define CAN_TDT0R_TIME_Msk (0xFFFFUL << CAN_TDT0R_TIME_Pos) /*!< 0xFFFF0000 */ |
2 | mjames | 5821 | #define CAN_TDT0R_TIME CAN_TDT0R_TIME_Msk /*!< Message Time Stamp */ |
5822 | |||
5823 | /****************** Bit definition for CAN_TDL0R register *******************/ |
||
5824 | #define CAN_TDL0R_DATA0_Pos (0U) |
||
9 | mjames | 5825 | #define CAN_TDL0R_DATA0_Msk (0xFFUL << CAN_TDL0R_DATA0_Pos) /*!< 0x000000FF */ |
2 | mjames | 5826 | #define CAN_TDL0R_DATA0 CAN_TDL0R_DATA0_Msk /*!< Data byte 0 */ |
5827 | #define CAN_TDL0R_DATA1_Pos (8U) |
||
9 | mjames | 5828 | #define CAN_TDL0R_DATA1_Msk (0xFFUL << CAN_TDL0R_DATA1_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 5829 | #define CAN_TDL0R_DATA1 CAN_TDL0R_DATA1_Msk /*!< Data byte 1 */ |
5830 | #define CAN_TDL0R_DATA2_Pos (16U) |
||
9 | mjames | 5831 | #define CAN_TDL0R_DATA2_Msk (0xFFUL << CAN_TDL0R_DATA2_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 5832 | #define CAN_TDL0R_DATA2 CAN_TDL0R_DATA2_Msk /*!< Data byte 2 */ |
5833 | #define CAN_TDL0R_DATA3_Pos (24U) |
||
9 | mjames | 5834 | #define CAN_TDL0R_DATA3_Msk (0xFFUL << CAN_TDL0R_DATA3_Pos) /*!< 0xFF000000 */ |
2 | mjames | 5835 | #define CAN_TDL0R_DATA3 CAN_TDL0R_DATA3_Msk /*!< Data byte 3 */ |
5836 | |||
5837 | /****************** Bit definition for CAN_TDH0R register *******************/ |
||
5838 | #define CAN_TDH0R_DATA4_Pos (0U) |
||
9 | mjames | 5839 | #define CAN_TDH0R_DATA4_Msk (0xFFUL << CAN_TDH0R_DATA4_Pos) /*!< 0x000000FF */ |
2 | mjames | 5840 | #define CAN_TDH0R_DATA4 CAN_TDH0R_DATA4_Msk /*!< Data byte 4 */ |
5841 | #define CAN_TDH0R_DATA5_Pos (8U) |
||
9 | mjames | 5842 | #define CAN_TDH0R_DATA5_Msk (0xFFUL << CAN_TDH0R_DATA5_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 5843 | #define CAN_TDH0R_DATA5 CAN_TDH0R_DATA5_Msk /*!< Data byte 5 */ |
5844 | #define CAN_TDH0R_DATA6_Pos (16U) |
||
9 | mjames | 5845 | #define CAN_TDH0R_DATA6_Msk (0xFFUL << CAN_TDH0R_DATA6_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 5846 | #define CAN_TDH0R_DATA6 CAN_TDH0R_DATA6_Msk /*!< Data byte 6 */ |
5847 | #define CAN_TDH0R_DATA7_Pos (24U) |
||
9 | mjames | 5848 | #define CAN_TDH0R_DATA7_Msk (0xFFUL << CAN_TDH0R_DATA7_Pos) /*!< 0xFF000000 */ |
2 | mjames | 5849 | #define CAN_TDH0R_DATA7 CAN_TDH0R_DATA7_Msk /*!< Data byte 7 */ |
5850 | |||
5851 | /******************* Bit definition for CAN_TI1R register *******************/ |
||
5852 | #define CAN_TI1R_TXRQ_Pos (0U) |
||
9 | mjames | 5853 | #define CAN_TI1R_TXRQ_Msk (0x1UL << CAN_TI1R_TXRQ_Pos) /*!< 0x00000001 */ |
2 | mjames | 5854 | #define CAN_TI1R_TXRQ CAN_TI1R_TXRQ_Msk /*!< Transmit Mailbox Request */ |
5855 | #define CAN_TI1R_RTR_Pos (1U) |
||
9 | mjames | 5856 | #define CAN_TI1R_RTR_Msk (0x1UL << CAN_TI1R_RTR_Pos) /*!< 0x00000002 */ |
2 | mjames | 5857 | #define CAN_TI1R_RTR CAN_TI1R_RTR_Msk /*!< Remote Transmission Request */ |
5858 | #define CAN_TI1R_IDE_Pos (2U) |
||
9 | mjames | 5859 | #define CAN_TI1R_IDE_Msk (0x1UL << CAN_TI1R_IDE_Pos) /*!< 0x00000004 */ |
2 | mjames | 5860 | #define CAN_TI1R_IDE CAN_TI1R_IDE_Msk /*!< Identifier Extension */ |
5861 | #define CAN_TI1R_EXID_Pos (3U) |
||
9 | mjames | 5862 | #define CAN_TI1R_EXID_Msk (0x3FFFFUL << CAN_TI1R_EXID_Pos) /*!< 0x001FFFF8 */ |
2 | mjames | 5863 | #define CAN_TI1R_EXID CAN_TI1R_EXID_Msk /*!< Extended Identifier */ |
5864 | #define CAN_TI1R_STID_Pos (21U) |
||
9 | mjames | 5865 | #define CAN_TI1R_STID_Msk (0x7FFUL << CAN_TI1R_STID_Pos) /*!< 0xFFE00000 */ |
2 | mjames | 5866 | #define CAN_TI1R_STID CAN_TI1R_STID_Msk /*!< Standard Identifier or Extended Identifier */ |
5867 | |||
5868 | /******************* Bit definition for CAN_TDT1R register ******************/ |
||
5869 | #define CAN_TDT1R_DLC_Pos (0U) |
||
9 | mjames | 5870 | #define CAN_TDT1R_DLC_Msk (0xFUL << CAN_TDT1R_DLC_Pos) /*!< 0x0000000F */ |
2 | mjames | 5871 | #define CAN_TDT1R_DLC CAN_TDT1R_DLC_Msk /*!< Data Length Code */ |
5872 | #define CAN_TDT1R_TGT_Pos (8U) |
||
9 | mjames | 5873 | #define CAN_TDT1R_TGT_Msk (0x1UL << CAN_TDT1R_TGT_Pos) /*!< 0x00000100 */ |
2 | mjames | 5874 | #define CAN_TDT1R_TGT CAN_TDT1R_TGT_Msk /*!< Transmit Global Time */ |
5875 | #define CAN_TDT1R_TIME_Pos (16U) |
||
9 | mjames | 5876 | #define CAN_TDT1R_TIME_Msk (0xFFFFUL << CAN_TDT1R_TIME_Pos) /*!< 0xFFFF0000 */ |
2 | mjames | 5877 | #define CAN_TDT1R_TIME CAN_TDT1R_TIME_Msk /*!< Message Time Stamp */ |
5878 | |||
5879 | /******************* Bit definition for CAN_TDL1R register ******************/ |
||
5880 | #define CAN_TDL1R_DATA0_Pos (0U) |
||
9 | mjames | 5881 | #define CAN_TDL1R_DATA0_Msk (0xFFUL << CAN_TDL1R_DATA0_Pos) /*!< 0x000000FF */ |
2 | mjames | 5882 | #define CAN_TDL1R_DATA0 CAN_TDL1R_DATA0_Msk /*!< Data byte 0 */ |
5883 | #define CAN_TDL1R_DATA1_Pos (8U) |
||
9 | mjames | 5884 | #define CAN_TDL1R_DATA1_Msk (0xFFUL << CAN_TDL1R_DATA1_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 5885 | #define CAN_TDL1R_DATA1 CAN_TDL1R_DATA1_Msk /*!< Data byte 1 */ |
5886 | #define CAN_TDL1R_DATA2_Pos (16U) |
||
9 | mjames | 5887 | #define CAN_TDL1R_DATA2_Msk (0xFFUL << CAN_TDL1R_DATA2_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 5888 | #define CAN_TDL1R_DATA2 CAN_TDL1R_DATA2_Msk /*!< Data byte 2 */ |
5889 | #define CAN_TDL1R_DATA3_Pos (24U) |
||
9 | mjames | 5890 | #define CAN_TDL1R_DATA3_Msk (0xFFUL << CAN_TDL1R_DATA3_Pos) /*!< 0xFF000000 */ |
2 | mjames | 5891 | #define CAN_TDL1R_DATA3 CAN_TDL1R_DATA3_Msk /*!< Data byte 3 */ |
5892 | |||
5893 | /******************* Bit definition for CAN_TDH1R register ******************/ |
||
5894 | #define CAN_TDH1R_DATA4_Pos (0U) |
||
9 | mjames | 5895 | #define CAN_TDH1R_DATA4_Msk (0xFFUL << CAN_TDH1R_DATA4_Pos) /*!< 0x000000FF */ |
2 | mjames | 5896 | #define CAN_TDH1R_DATA4 CAN_TDH1R_DATA4_Msk /*!< Data byte 4 */ |
5897 | #define CAN_TDH1R_DATA5_Pos (8U) |
||
9 | mjames | 5898 | #define CAN_TDH1R_DATA5_Msk (0xFFUL << CAN_TDH1R_DATA5_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 5899 | #define CAN_TDH1R_DATA5 CAN_TDH1R_DATA5_Msk /*!< Data byte 5 */ |
5900 | #define CAN_TDH1R_DATA6_Pos (16U) |
||
9 | mjames | 5901 | #define CAN_TDH1R_DATA6_Msk (0xFFUL << CAN_TDH1R_DATA6_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 5902 | #define CAN_TDH1R_DATA6 CAN_TDH1R_DATA6_Msk /*!< Data byte 6 */ |
5903 | #define CAN_TDH1R_DATA7_Pos (24U) |
||
9 | mjames | 5904 | #define CAN_TDH1R_DATA7_Msk (0xFFUL << CAN_TDH1R_DATA7_Pos) /*!< 0xFF000000 */ |
2 | mjames | 5905 | #define CAN_TDH1R_DATA7 CAN_TDH1R_DATA7_Msk /*!< Data byte 7 */ |
5906 | |||
5907 | /******************* Bit definition for CAN_TI2R register *******************/ |
||
5908 | #define CAN_TI2R_TXRQ_Pos (0U) |
||
9 | mjames | 5909 | #define CAN_TI2R_TXRQ_Msk (0x1UL << CAN_TI2R_TXRQ_Pos) /*!< 0x00000001 */ |
2 | mjames | 5910 | #define CAN_TI2R_TXRQ CAN_TI2R_TXRQ_Msk /*!< Transmit Mailbox Request */ |
5911 | #define CAN_TI2R_RTR_Pos (1U) |
||
9 | mjames | 5912 | #define CAN_TI2R_RTR_Msk (0x1UL << CAN_TI2R_RTR_Pos) /*!< 0x00000002 */ |
2 | mjames | 5913 | #define CAN_TI2R_RTR CAN_TI2R_RTR_Msk /*!< Remote Transmission Request */ |
5914 | #define CAN_TI2R_IDE_Pos (2U) |
||
9 | mjames | 5915 | #define CAN_TI2R_IDE_Msk (0x1UL << CAN_TI2R_IDE_Pos) /*!< 0x00000004 */ |
2 | mjames | 5916 | #define CAN_TI2R_IDE CAN_TI2R_IDE_Msk /*!< Identifier Extension */ |
5917 | #define CAN_TI2R_EXID_Pos (3U) |
||
9 | mjames | 5918 | #define CAN_TI2R_EXID_Msk (0x3FFFFUL << CAN_TI2R_EXID_Pos) /*!< 0x001FFFF8 */ |
2 | mjames | 5919 | #define CAN_TI2R_EXID CAN_TI2R_EXID_Msk /*!< Extended identifier */ |
5920 | #define CAN_TI2R_STID_Pos (21U) |
||
9 | mjames | 5921 | #define CAN_TI2R_STID_Msk (0x7FFUL << CAN_TI2R_STID_Pos) /*!< 0xFFE00000 */ |
2 | mjames | 5922 | #define CAN_TI2R_STID CAN_TI2R_STID_Msk /*!< Standard Identifier or Extended Identifier */ |
5923 | |||
5924 | /******************* Bit definition for CAN_TDT2R register ******************/ |
||
5925 | #define CAN_TDT2R_DLC_Pos (0U) |
||
9 | mjames | 5926 | #define CAN_TDT2R_DLC_Msk (0xFUL << CAN_TDT2R_DLC_Pos) /*!< 0x0000000F */ |
2 | mjames | 5927 | #define CAN_TDT2R_DLC CAN_TDT2R_DLC_Msk /*!< Data Length Code */ |
5928 | #define CAN_TDT2R_TGT_Pos (8U) |
||
9 | mjames | 5929 | #define CAN_TDT2R_TGT_Msk (0x1UL << CAN_TDT2R_TGT_Pos) /*!< 0x00000100 */ |
2 | mjames | 5930 | #define CAN_TDT2R_TGT CAN_TDT2R_TGT_Msk /*!< Transmit Global Time */ |
5931 | #define CAN_TDT2R_TIME_Pos (16U) |
||
9 | mjames | 5932 | #define CAN_TDT2R_TIME_Msk (0xFFFFUL << CAN_TDT2R_TIME_Pos) /*!< 0xFFFF0000 */ |
2 | mjames | 5933 | #define CAN_TDT2R_TIME CAN_TDT2R_TIME_Msk /*!< Message Time Stamp */ |
5934 | |||
5935 | /******************* Bit definition for CAN_TDL2R register ******************/ |
||
5936 | #define CAN_TDL2R_DATA0_Pos (0U) |
||
9 | mjames | 5937 | #define CAN_TDL2R_DATA0_Msk (0xFFUL << CAN_TDL2R_DATA0_Pos) /*!< 0x000000FF */ |
2 | mjames | 5938 | #define CAN_TDL2R_DATA0 CAN_TDL2R_DATA0_Msk /*!< Data byte 0 */ |
5939 | #define CAN_TDL2R_DATA1_Pos (8U) |
||
9 | mjames | 5940 | #define CAN_TDL2R_DATA1_Msk (0xFFUL << CAN_TDL2R_DATA1_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 5941 | #define CAN_TDL2R_DATA1 CAN_TDL2R_DATA1_Msk /*!< Data byte 1 */ |
5942 | #define CAN_TDL2R_DATA2_Pos (16U) |
||
9 | mjames | 5943 | #define CAN_TDL2R_DATA2_Msk (0xFFUL << CAN_TDL2R_DATA2_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 5944 | #define CAN_TDL2R_DATA2 CAN_TDL2R_DATA2_Msk /*!< Data byte 2 */ |
5945 | #define CAN_TDL2R_DATA3_Pos (24U) |
||
9 | mjames | 5946 | #define CAN_TDL2R_DATA3_Msk (0xFFUL << CAN_TDL2R_DATA3_Pos) /*!< 0xFF000000 */ |
2 | mjames | 5947 | #define CAN_TDL2R_DATA3 CAN_TDL2R_DATA3_Msk /*!< Data byte 3 */ |
5948 | |||
5949 | /******************* Bit definition for CAN_TDH2R register ******************/ |
||
5950 | #define CAN_TDH2R_DATA4_Pos (0U) |
||
9 | mjames | 5951 | #define CAN_TDH2R_DATA4_Msk (0xFFUL << CAN_TDH2R_DATA4_Pos) /*!< 0x000000FF */ |
2 | mjames | 5952 | #define CAN_TDH2R_DATA4 CAN_TDH2R_DATA4_Msk /*!< Data byte 4 */ |
5953 | #define CAN_TDH2R_DATA5_Pos (8U) |
||
9 | mjames | 5954 | #define CAN_TDH2R_DATA5_Msk (0xFFUL << CAN_TDH2R_DATA5_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 5955 | #define CAN_TDH2R_DATA5 CAN_TDH2R_DATA5_Msk /*!< Data byte 5 */ |
5956 | #define CAN_TDH2R_DATA6_Pos (16U) |
||
9 | mjames | 5957 | #define CAN_TDH2R_DATA6_Msk (0xFFUL << CAN_TDH2R_DATA6_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 5958 | #define CAN_TDH2R_DATA6 CAN_TDH2R_DATA6_Msk /*!< Data byte 6 */ |
5959 | #define CAN_TDH2R_DATA7_Pos (24U) |
||
9 | mjames | 5960 | #define CAN_TDH2R_DATA7_Msk (0xFFUL << CAN_TDH2R_DATA7_Pos) /*!< 0xFF000000 */ |
2 | mjames | 5961 | #define CAN_TDH2R_DATA7 CAN_TDH2R_DATA7_Msk /*!< Data byte 7 */ |
5962 | |||
5963 | /******************* Bit definition for CAN_RI0R register *******************/ |
||
5964 | #define CAN_RI0R_RTR_Pos (1U) |
||
9 | mjames | 5965 | #define CAN_RI0R_RTR_Msk (0x1UL << CAN_RI0R_RTR_Pos) /*!< 0x00000002 */ |
2 | mjames | 5966 | #define CAN_RI0R_RTR CAN_RI0R_RTR_Msk /*!< Remote Transmission Request */ |
5967 | #define CAN_RI0R_IDE_Pos (2U) |
||
9 | mjames | 5968 | #define CAN_RI0R_IDE_Msk (0x1UL << CAN_RI0R_IDE_Pos) /*!< 0x00000004 */ |
2 | mjames | 5969 | #define CAN_RI0R_IDE CAN_RI0R_IDE_Msk /*!< Identifier Extension */ |
5970 | #define CAN_RI0R_EXID_Pos (3U) |
||
9 | mjames | 5971 | #define CAN_RI0R_EXID_Msk (0x3FFFFUL << CAN_RI0R_EXID_Pos) /*!< 0x001FFFF8 */ |
2 | mjames | 5972 | #define CAN_RI0R_EXID CAN_RI0R_EXID_Msk /*!< Extended Identifier */ |
5973 | #define CAN_RI0R_STID_Pos (21U) |
||
9 | mjames | 5974 | #define CAN_RI0R_STID_Msk (0x7FFUL << CAN_RI0R_STID_Pos) /*!< 0xFFE00000 */ |
2 | mjames | 5975 | #define CAN_RI0R_STID CAN_RI0R_STID_Msk /*!< Standard Identifier or Extended Identifier */ |
5976 | |||
5977 | /******************* Bit definition for CAN_RDT0R register ******************/ |
||
5978 | #define CAN_RDT0R_DLC_Pos (0U) |
||
9 | mjames | 5979 | #define CAN_RDT0R_DLC_Msk (0xFUL << CAN_RDT0R_DLC_Pos) /*!< 0x0000000F */ |
2 | mjames | 5980 | #define CAN_RDT0R_DLC CAN_RDT0R_DLC_Msk /*!< Data Length Code */ |
5981 | #define CAN_RDT0R_FMI_Pos (8U) |
||
9 | mjames | 5982 | #define CAN_RDT0R_FMI_Msk (0xFFUL << CAN_RDT0R_FMI_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 5983 | #define CAN_RDT0R_FMI CAN_RDT0R_FMI_Msk /*!< Filter Match Index */ |
5984 | #define CAN_RDT0R_TIME_Pos (16U) |
||
9 | mjames | 5985 | #define CAN_RDT0R_TIME_Msk (0xFFFFUL << CAN_RDT0R_TIME_Pos) /*!< 0xFFFF0000 */ |
2 | mjames | 5986 | #define CAN_RDT0R_TIME CAN_RDT0R_TIME_Msk /*!< Message Time Stamp */ |
5987 | |||
5988 | /******************* Bit definition for CAN_RDL0R register ******************/ |
||
5989 | #define CAN_RDL0R_DATA0_Pos (0U) |
||
9 | mjames | 5990 | #define CAN_RDL0R_DATA0_Msk (0xFFUL << CAN_RDL0R_DATA0_Pos) /*!< 0x000000FF */ |
2 | mjames | 5991 | #define CAN_RDL0R_DATA0 CAN_RDL0R_DATA0_Msk /*!< Data byte 0 */ |
5992 | #define CAN_RDL0R_DATA1_Pos (8U) |
||
9 | mjames | 5993 | #define CAN_RDL0R_DATA1_Msk (0xFFUL << CAN_RDL0R_DATA1_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 5994 | #define CAN_RDL0R_DATA1 CAN_RDL0R_DATA1_Msk /*!< Data byte 1 */ |
5995 | #define CAN_RDL0R_DATA2_Pos (16U) |
||
9 | mjames | 5996 | #define CAN_RDL0R_DATA2_Msk (0xFFUL << CAN_RDL0R_DATA2_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 5997 | #define CAN_RDL0R_DATA2 CAN_RDL0R_DATA2_Msk /*!< Data byte 2 */ |
5998 | #define CAN_RDL0R_DATA3_Pos (24U) |
||
9 | mjames | 5999 | #define CAN_RDL0R_DATA3_Msk (0xFFUL << CAN_RDL0R_DATA3_Pos) /*!< 0xFF000000 */ |
2 | mjames | 6000 | #define CAN_RDL0R_DATA3 CAN_RDL0R_DATA3_Msk /*!< Data byte 3 */ |
6001 | |||
6002 | /******************* Bit definition for CAN_RDH0R register ******************/ |
||
6003 | #define CAN_RDH0R_DATA4_Pos (0U) |
||
9 | mjames | 6004 | #define CAN_RDH0R_DATA4_Msk (0xFFUL << CAN_RDH0R_DATA4_Pos) /*!< 0x000000FF */ |
2 | mjames | 6005 | #define CAN_RDH0R_DATA4 CAN_RDH0R_DATA4_Msk /*!< Data byte 4 */ |
6006 | #define CAN_RDH0R_DATA5_Pos (8U) |
||
9 | mjames | 6007 | #define CAN_RDH0R_DATA5_Msk (0xFFUL << CAN_RDH0R_DATA5_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 6008 | #define CAN_RDH0R_DATA5 CAN_RDH0R_DATA5_Msk /*!< Data byte 5 */ |
6009 | #define CAN_RDH0R_DATA6_Pos (16U) |
||
9 | mjames | 6010 | #define CAN_RDH0R_DATA6_Msk (0xFFUL << CAN_RDH0R_DATA6_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 6011 | #define CAN_RDH0R_DATA6 CAN_RDH0R_DATA6_Msk /*!< Data byte 6 */ |
6012 | #define CAN_RDH0R_DATA7_Pos (24U) |
||
9 | mjames | 6013 | #define CAN_RDH0R_DATA7_Msk (0xFFUL << CAN_RDH0R_DATA7_Pos) /*!< 0xFF000000 */ |
2 | mjames | 6014 | #define CAN_RDH0R_DATA7 CAN_RDH0R_DATA7_Msk /*!< Data byte 7 */ |
6015 | |||
6016 | /******************* Bit definition for CAN_RI1R register *******************/ |
||
6017 | #define CAN_RI1R_RTR_Pos (1U) |
||
9 | mjames | 6018 | #define CAN_RI1R_RTR_Msk (0x1UL << CAN_RI1R_RTR_Pos) /*!< 0x00000002 */ |
2 | mjames | 6019 | #define CAN_RI1R_RTR CAN_RI1R_RTR_Msk /*!< Remote Transmission Request */ |
6020 | #define CAN_RI1R_IDE_Pos (2U) |
||
9 | mjames | 6021 | #define CAN_RI1R_IDE_Msk (0x1UL << CAN_RI1R_IDE_Pos) /*!< 0x00000004 */ |
2 | mjames | 6022 | #define CAN_RI1R_IDE CAN_RI1R_IDE_Msk /*!< Identifier Extension */ |
6023 | #define CAN_RI1R_EXID_Pos (3U) |
||
9 | mjames | 6024 | #define CAN_RI1R_EXID_Msk (0x3FFFFUL << CAN_RI1R_EXID_Pos) /*!< 0x001FFFF8 */ |
2 | mjames | 6025 | #define CAN_RI1R_EXID CAN_RI1R_EXID_Msk /*!< Extended identifier */ |
6026 | #define CAN_RI1R_STID_Pos (21U) |
||
9 | mjames | 6027 | #define CAN_RI1R_STID_Msk (0x7FFUL << CAN_RI1R_STID_Pos) /*!< 0xFFE00000 */ |
2 | mjames | 6028 | #define CAN_RI1R_STID CAN_RI1R_STID_Msk /*!< Standard Identifier or Extended Identifier */ |
6029 | |||
6030 | /******************* Bit definition for CAN_RDT1R register ******************/ |
||
6031 | #define CAN_RDT1R_DLC_Pos (0U) |
||
9 | mjames | 6032 | #define CAN_RDT1R_DLC_Msk (0xFUL << CAN_RDT1R_DLC_Pos) /*!< 0x0000000F */ |
2 | mjames | 6033 | #define CAN_RDT1R_DLC CAN_RDT1R_DLC_Msk /*!< Data Length Code */ |
6034 | #define CAN_RDT1R_FMI_Pos (8U) |
||
9 | mjames | 6035 | #define CAN_RDT1R_FMI_Msk (0xFFUL << CAN_RDT1R_FMI_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 6036 | #define CAN_RDT1R_FMI CAN_RDT1R_FMI_Msk /*!< Filter Match Index */ |
6037 | #define CAN_RDT1R_TIME_Pos (16U) |
||
9 | mjames | 6038 | #define CAN_RDT1R_TIME_Msk (0xFFFFUL << CAN_RDT1R_TIME_Pos) /*!< 0xFFFF0000 */ |
2 | mjames | 6039 | #define CAN_RDT1R_TIME CAN_RDT1R_TIME_Msk /*!< Message Time Stamp */ |
6040 | |||
6041 | /******************* Bit definition for CAN_RDL1R register ******************/ |
||
6042 | #define CAN_RDL1R_DATA0_Pos (0U) |
||
9 | mjames | 6043 | #define CAN_RDL1R_DATA0_Msk (0xFFUL << CAN_RDL1R_DATA0_Pos) /*!< 0x000000FF */ |
2 | mjames | 6044 | #define CAN_RDL1R_DATA0 CAN_RDL1R_DATA0_Msk /*!< Data byte 0 */ |
6045 | #define CAN_RDL1R_DATA1_Pos (8U) |
||
9 | mjames | 6046 | #define CAN_RDL1R_DATA1_Msk (0xFFUL << CAN_RDL1R_DATA1_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 6047 | #define CAN_RDL1R_DATA1 CAN_RDL1R_DATA1_Msk /*!< Data byte 1 */ |
6048 | #define CAN_RDL1R_DATA2_Pos (16U) |
||
9 | mjames | 6049 | #define CAN_RDL1R_DATA2_Msk (0xFFUL << CAN_RDL1R_DATA2_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 6050 | #define CAN_RDL1R_DATA2 CAN_RDL1R_DATA2_Msk /*!< Data byte 2 */ |
6051 | #define CAN_RDL1R_DATA3_Pos (24U) |
||
9 | mjames | 6052 | #define CAN_RDL1R_DATA3_Msk (0xFFUL << CAN_RDL1R_DATA3_Pos) /*!< 0xFF000000 */ |
2 | mjames | 6053 | #define CAN_RDL1R_DATA3 CAN_RDL1R_DATA3_Msk /*!< Data byte 3 */ |
6054 | |||
6055 | /******************* Bit definition for CAN_RDH1R register ******************/ |
||
6056 | #define CAN_RDH1R_DATA4_Pos (0U) |
||
9 | mjames | 6057 | #define CAN_RDH1R_DATA4_Msk (0xFFUL << CAN_RDH1R_DATA4_Pos) /*!< 0x000000FF */ |
2 | mjames | 6058 | #define CAN_RDH1R_DATA4 CAN_RDH1R_DATA4_Msk /*!< Data byte 4 */ |
6059 | #define CAN_RDH1R_DATA5_Pos (8U) |
||
9 | mjames | 6060 | #define CAN_RDH1R_DATA5_Msk (0xFFUL << CAN_RDH1R_DATA5_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 6061 | #define CAN_RDH1R_DATA5 CAN_RDH1R_DATA5_Msk /*!< Data byte 5 */ |
6062 | #define CAN_RDH1R_DATA6_Pos (16U) |
||
9 | mjames | 6063 | #define CAN_RDH1R_DATA6_Msk (0xFFUL << CAN_RDH1R_DATA6_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 6064 | #define CAN_RDH1R_DATA6 CAN_RDH1R_DATA6_Msk /*!< Data byte 6 */ |
6065 | #define CAN_RDH1R_DATA7_Pos (24U) |
||
9 | mjames | 6066 | #define CAN_RDH1R_DATA7_Msk (0xFFUL << CAN_RDH1R_DATA7_Pos) /*!< 0xFF000000 */ |
2 | mjames | 6067 | #define CAN_RDH1R_DATA7 CAN_RDH1R_DATA7_Msk /*!< Data byte 7 */ |
6068 | |||
6069 | /*!< CAN filter registers */ |
||
6070 | /******************* Bit definition for CAN_FMR register ********************/ |
||
6071 | #define CAN_FMR_FINIT_Pos (0U) |
||
9 | mjames | 6072 | #define CAN_FMR_FINIT_Msk (0x1UL << CAN_FMR_FINIT_Pos) /*!< 0x00000001 */ |
2 | mjames | 6073 | #define CAN_FMR_FINIT CAN_FMR_FINIT_Msk /*!< Filter Init Mode */ |
6074 | #define CAN_FMR_CAN2SB_Pos (8U) |
||
9 | mjames | 6075 | #define CAN_FMR_CAN2SB_Msk (0x3FUL << CAN_FMR_CAN2SB_Pos) /*!< 0x00003F00 */ |
2 | mjames | 6076 | #define CAN_FMR_CAN2SB CAN_FMR_CAN2SB_Msk /*!< CAN2 start bank */ |
6077 | |||
6078 | /******************* Bit definition for CAN_FM1R register *******************/ |
||
6079 | #define CAN_FM1R_FBM_Pos (0U) |
||
9 | mjames | 6080 | #define CAN_FM1R_FBM_Msk (0x3FFFUL << CAN_FM1R_FBM_Pos) /*!< 0x00003FFF */ |
2 | mjames | 6081 | #define CAN_FM1R_FBM CAN_FM1R_FBM_Msk /*!< Filter Mode */ |
6082 | #define CAN_FM1R_FBM0_Pos (0U) |
||
9 | mjames | 6083 | #define CAN_FM1R_FBM0_Msk (0x1UL << CAN_FM1R_FBM0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6084 | #define CAN_FM1R_FBM0 CAN_FM1R_FBM0_Msk /*!< Filter Init Mode for filter 0 */ |
6085 | #define CAN_FM1R_FBM1_Pos (1U) |
||
9 | mjames | 6086 | #define CAN_FM1R_FBM1_Msk (0x1UL << CAN_FM1R_FBM1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6087 | #define CAN_FM1R_FBM1 CAN_FM1R_FBM1_Msk /*!< Filter Init Mode for filter 1 */ |
6088 | #define CAN_FM1R_FBM2_Pos (2U) |
||
9 | mjames | 6089 | #define CAN_FM1R_FBM2_Msk (0x1UL << CAN_FM1R_FBM2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6090 | #define CAN_FM1R_FBM2 CAN_FM1R_FBM2_Msk /*!< Filter Init Mode for filter 2 */ |
6091 | #define CAN_FM1R_FBM3_Pos (3U) |
||
9 | mjames | 6092 | #define CAN_FM1R_FBM3_Msk (0x1UL << CAN_FM1R_FBM3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6093 | #define CAN_FM1R_FBM3 CAN_FM1R_FBM3_Msk /*!< Filter Init Mode for filter 3 */ |
6094 | #define CAN_FM1R_FBM4_Pos (4U) |
||
9 | mjames | 6095 | #define CAN_FM1R_FBM4_Msk (0x1UL << CAN_FM1R_FBM4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6096 | #define CAN_FM1R_FBM4 CAN_FM1R_FBM4_Msk /*!< Filter Init Mode for filter 4 */ |
6097 | #define CAN_FM1R_FBM5_Pos (5U) |
||
9 | mjames | 6098 | #define CAN_FM1R_FBM5_Msk (0x1UL << CAN_FM1R_FBM5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6099 | #define CAN_FM1R_FBM5 CAN_FM1R_FBM5_Msk /*!< Filter Init Mode for filter 5 */ |
6100 | #define CAN_FM1R_FBM6_Pos (6U) |
||
9 | mjames | 6101 | #define CAN_FM1R_FBM6_Msk (0x1UL << CAN_FM1R_FBM6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6102 | #define CAN_FM1R_FBM6 CAN_FM1R_FBM6_Msk /*!< Filter Init Mode for filter 6 */ |
6103 | #define CAN_FM1R_FBM7_Pos (7U) |
||
9 | mjames | 6104 | #define CAN_FM1R_FBM7_Msk (0x1UL << CAN_FM1R_FBM7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6105 | #define CAN_FM1R_FBM7 CAN_FM1R_FBM7_Msk /*!< Filter Init Mode for filter 7 */ |
6106 | #define CAN_FM1R_FBM8_Pos (8U) |
||
9 | mjames | 6107 | #define CAN_FM1R_FBM8_Msk (0x1UL << CAN_FM1R_FBM8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6108 | #define CAN_FM1R_FBM8 CAN_FM1R_FBM8_Msk /*!< Filter Init Mode for filter 8 */ |
6109 | #define CAN_FM1R_FBM9_Pos (9U) |
||
9 | mjames | 6110 | #define CAN_FM1R_FBM9_Msk (0x1UL << CAN_FM1R_FBM9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6111 | #define CAN_FM1R_FBM9 CAN_FM1R_FBM9_Msk /*!< Filter Init Mode for filter 9 */ |
6112 | #define CAN_FM1R_FBM10_Pos (10U) |
||
9 | mjames | 6113 | #define CAN_FM1R_FBM10_Msk (0x1UL << CAN_FM1R_FBM10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6114 | #define CAN_FM1R_FBM10 CAN_FM1R_FBM10_Msk /*!< Filter Init Mode for filter 10 */ |
6115 | #define CAN_FM1R_FBM11_Pos (11U) |
||
9 | mjames | 6116 | #define CAN_FM1R_FBM11_Msk (0x1UL << CAN_FM1R_FBM11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6117 | #define CAN_FM1R_FBM11 CAN_FM1R_FBM11_Msk /*!< Filter Init Mode for filter 11 */ |
6118 | #define CAN_FM1R_FBM12_Pos (12U) |
||
9 | mjames | 6119 | #define CAN_FM1R_FBM12_Msk (0x1UL << CAN_FM1R_FBM12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6120 | #define CAN_FM1R_FBM12 CAN_FM1R_FBM12_Msk /*!< Filter Init Mode for filter 12 */ |
6121 | #define CAN_FM1R_FBM13_Pos (13U) |
||
9 | mjames | 6122 | #define CAN_FM1R_FBM13_Msk (0x1UL << CAN_FM1R_FBM13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6123 | #define CAN_FM1R_FBM13 CAN_FM1R_FBM13_Msk /*!< Filter Init Mode for filter 13 */ |
6124 | |||
6125 | /******************* Bit definition for CAN_FS1R register *******************/ |
||
6126 | #define CAN_FS1R_FSC_Pos (0U) |
||
9 | mjames | 6127 | #define CAN_FS1R_FSC_Msk (0x3FFFUL << CAN_FS1R_FSC_Pos) /*!< 0x00003FFF */ |
2 | mjames | 6128 | #define CAN_FS1R_FSC CAN_FS1R_FSC_Msk /*!< Filter Scale Configuration */ |
6129 | #define CAN_FS1R_FSC0_Pos (0U) |
||
9 | mjames | 6130 | #define CAN_FS1R_FSC0_Msk (0x1UL << CAN_FS1R_FSC0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6131 | #define CAN_FS1R_FSC0 CAN_FS1R_FSC0_Msk /*!< Filter Scale Configuration for filter 0 */ |
6132 | #define CAN_FS1R_FSC1_Pos (1U) |
||
9 | mjames | 6133 | #define CAN_FS1R_FSC1_Msk (0x1UL << CAN_FS1R_FSC1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6134 | #define CAN_FS1R_FSC1 CAN_FS1R_FSC1_Msk /*!< Filter Scale Configuration for filter 1 */ |
6135 | #define CAN_FS1R_FSC2_Pos (2U) |
||
9 | mjames | 6136 | #define CAN_FS1R_FSC2_Msk (0x1UL << CAN_FS1R_FSC2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6137 | #define CAN_FS1R_FSC2 CAN_FS1R_FSC2_Msk /*!< Filter Scale Configuration for filter 2 */ |
6138 | #define CAN_FS1R_FSC3_Pos (3U) |
||
9 | mjames | 6139 | #define CAN_FS1R_FSC3_Msk (0x1UL << CAN_FS1R_FSC3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6140 | #define CAN_FS1R_FSC3 CAN_FS1R_FSC3_Msk /*!< Filter Scale Configuration for filter 3 */ |
6141 | #define CAN_FS1R_FSC4_Pos (4U) |
||
9 | mjames | 6142 | #define CAN_FS1R_FSC4_Msk (0x1UL << CAN_FS1R_FSC4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6143 | #define CAN_FS1R_FSC4 CAN_FS1R_FSC4_Msk /*!< Filter Scale Configuration for filter 4 */ |
6144 | #define CAN_FS1R_FSC5_Pos (5U) |
||
9 | mjames | 6145 | #define CAN_FS1R_FSC5_Msk (0x1UL << CAN_FS1R_FSC5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6146 | #define CAN_FS1R_FSC5 CAN_FS1R_FSC5_Msk /*!< Filter Scale Configuration for filter 5 */ |
6147 | #define CAN_FS1R_FSC6_Pos (6U) |
||
9 | mjames | 6148 | #define CAN_FS1R_FSC6_Msk (0x1UL << CAN_FS1R_FSC6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6149 | #define CAN_FS1R_FSC6 CAN_FS1R_FSC6_Msk /*!< Filter Scale Configuration for filter 6 */ |
6150 | #define CAN_FS1R_FSC7_Pos (7U) |
||
9 | mjames | 6151 | #define CAN_FS1R_FSC7_Msk (0x1UL << CAN_FS1R_FSC7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6152 | #define CAN_FS1R_FSC7 CAN_FS1R_FSC7_Msk /*!< Filter Scale Configuration for filter 7 */ |
6153 | #define CAN_FS1R_FSC8_Pos (8U) |
||
9 | mjames | 6154 | #define CAN_FS1R_FSC8_Msk (0x1UL << CAN_FS1R_FSC8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6155 | #define CAN_FS1R_FSC8 CAN_FS1R_FSC8_Msk /*!< Filter Scale Configuration for filter 8 */ |
6156 | #define CAN_FS1R_FSC9_Pos (9U) |
||
9 | mjames | 6157 | #define CAN_FS1R_FSC9_Msk (0x1UL << CAN_FS1R_FSC9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6158 | #define CAN_FS1R_FSC9 CAN_FS1R_FSC9_Msk /*!< Filter Scale Configuration for filter 9 */ |
6159 | #define CAN_FS1R_FSC10_Pos (10U) |
||
9 | mjames | 6160 | #define CAN_FS1R_FSC10_Msk (0x1UL << CAN_FS1R_FSC10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6161 | #define CAN_FS1R_FSC10 CAN_FS1R_FSC10_Msk /*!< Filter Scale Configuration for filter 10 */ |
6162 | #define CAN_FS1R_FSC11_Pos (11U) |
||
9 | mjames | 6163 | #define CAN_FS1R_FSC11_Msk (0x1UL << CAN_FS1R_FSC11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6164 | #define CAN_FS1R_FSC11 CAN_FS1R_FSC11_Msk /*!< Filter Scale Configuration for filter 11 */ |
6165 | #define CAN_FS1R_FSC12_Pos (12U) |
||
9 | mjames | 6166 | #define CAN_FS1R_FSC12_Msk (0x1UL << CAN_FS1R_FSC12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6167 | #define CAN_FS1R_FSC12 CAN_FS1R_FSC12_Msk /*!< Filter Scale Configuration for filter 12 */ |
6168 | #define CAN_FS1R_FSC13_Pos (13U) |
||
9 | mjames | 6169 | #define CAN_FS1R_FSC13_Msk (0x1UL << CAN_FS1R_FSC13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6170 | #define CAN_FS1R_FSC13 CAN_FS1R_FSC13_Msk /*!< Filter Scale Configuration for filter 13 */ |
6171 | |||
6172 | /****************** Bit definition for CAN_FFA1R register *******************/ |
||
6173 | #define CAN_FFA1R_FFA_Pos (0U) |
||
9 | mjames | 6174 | #define CAN_FFA1R_FFA_Msk (0x3FFFUL << CAN_FFA1R_FFA_Pos) /*!< 0x00003FFF */ |
2 | mjames | 6175 | #define CAN_FFA1R_FFA CAN_FFA1R_FFA_Msk /*!< Filter FIFO Assignment */ |
6176 | #define CAN_FFA1R_FFA0_Pos (0U) |
||
9 | mjames | 6177 | #define CAN_FFA1R_FFA0_Msk (0x1UL << CAN_FFA1R_FFA0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6178 | #define CAN_FFA1R_FFA0 CAN_FFA1R_FFA0_Msk /*!< Filter FIFO Assignment for filter 0 */ |
6179 | #define CAN_FFA1R_FFA1_Pos (1U) |
||
9 | mjames | 6180 | #define CAN_FFA1R_FFA1_Msk (0x1UL << CAN_FFA1R_FFA1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6181 | #define CAN_FFA1R_FFA1 CAN_FFA1R_FFA1_Msk /*!< Filter FIFO Assignment for filter 1 */ |
6182 | #define CAN_FFA1R_FFA2_Pos (2U) |
||
9 | mjames | 6183 | #define CAN_FFA1R_FFA2_Msk (0x1UL << CAN_FFA1R_FFA2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6184 | #define CAN_FFA1R_FFA2 CAN_FFA1R_FFA2_Msk /*!< Filter FIFO Assignment for filter 2 */ |
6185 | #define CAN_FFA1R_FFA3_Pos (3U) |
||
9 | mjames | 6186 | #define CAN_FFA1R_FFA3_Msk (0x1UL << CAN_FFA1R_FFA3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6187 | #define CAN_FFA1R_FFA3 CAN_FFA1R_FFA3_Msk /*!< Filter FIFO Assignment for filter 3 */ |
6188 | #define CAN_FFA1R_FFA4_Pos (4U) |
||
9 | mjames | 6189 | #define CAN_FFA1R_FFA4_Msk (0x1UL << CAN_FFA1R_FFA4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6190 | #define CAN_FFA1R_FFA4 CAN_FFA1R_FFA4_Msk /*!< Filter FIFO Assignment for filter 4 */ |
6191 | #define CAN_FFA1R_FFA5_Pos (5U) |
||
9 | mjames | 6192 | #define CAN_FFA1R_FFA5_Msk (0x1UL << CAN_FFA1R_FFA5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6193 | #define CAN_FFA1R_FFA5 CAN_FFA1R_FFA5_Msk /*!< Filter FIFO Assignment for filter 5 */ |
6194 | #define CAN_FFA1R_FFA6_Pos (6U) |
||
9 | mjames | 6195 | #define CAN_FFA1R_FFA6_Msk (0x1UL << CAN_FFA1R_FFA6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6196 | #define CAN_FFA1R_FFA6 CAN_FFA1R_FFA6_Msk /*!< Filter FIFO Assignment for filter 6 */ |
6197 | #define CAN_FFA1R_FFA7_Pos (7U) |
||
9 | mjames | 6198 | #define CAN_FFA1R_FFA7_Msk (0x1UL << CAN_FFA1R_FFA7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6199 | #define CAN_FFA1R_FFA7 CAN_FFA1R_FFA7_Msk /*!< Filter FIFO Assignment for filter 7 */ |
6200 | #define CAN_FFA1R_FFA8_Pos (8U) |
||
9 | mjames | 6201 | #define CAN_FFA1R_FFA8_Msk (0x1UL << CAN_FFA1R_FFA8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6202 | #define CAN_FFA1R_FFA8 CAN_FFA1R_FFA8_Msk /*!< Filter FIFO Assignment for filter 8 */ |
6203 | #define CAN_FFA1R_FFA9_Pos (9U) |
||
9 | mjames | 6204 | #define CAN_FFA1R_FFA9_Msk (0x1UL << CAN_FFA1R_FFA9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6205 | #define CAN_FFA1R_FFA9 CAN_FFA1R_FFA9_Msk /*!< Filter FIFO Assignment for filter 9 */ |
6206 | #define CAN_FFA1R_FFA10_Pos (10U) |
||
9 | mjames | 6207 | #define CAN_FFA1R_FFA10_Msk (0x1UL << CAN_FFA1R_FFA10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6208 | #define CAN_FFA1R_FFA10 CAN_FFA1R_FFA10_Msk /*!< Filter FIFO Assignment for filter 10 */ |
6209 | #define CAN_FFA1R_FFA11_Pos (11U) |
||
9 | mjames | 6210 | #define CAN_FFA1R_FFA11_Msk (0x1UL << CAN_FFA1R_FFA11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6211 | #define CAN_FFA1R_FFA11 CAN_FFA1R_FFA11_Msk /*!< Filter FIFO Assignment for filter 11 */ |
6212 | #define CAN_FFA1R_FFA12_Pos (12U) |
||
9 | mjames | 6213 | #define CAN_FFA1R_FFA12_Msk (0x1UL << CAN_FFA1R_FFA12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6214 | #define CAN_FFA1R_FFA12 CAN_FFA1R_FFA12_Msk /*!< Filter FIFO Assignment for filter 12 */ |
6215 | #define CAN_FFA1R_FFA13_Pos (13U) |
||
9 | mjames | 6216 | #define CAN_FFA1R_FFA13_Msk (0x1UL << CAN_FFA1R_FFA13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6217 | #define CAN_FFA1R_FFA13 CAN_FFA1R_FFA13_Msk /*!< Filter FIFO Assignment for filter 13 */ |
6218 | |||
6219 | /******************* Bit definition for CAN_FA1R register *******************/ |
||
6220 | #define CAN_FA1R_FACT_Pos (0U) |
||
9 | mjames | 6221 | #define CAN_FA1R_FACT_Msk (0x3FFFUL << CAN_FA1R_FACT_Pos) /*!< 0x00003FFF */ |
2 | mjames | 6222 | #define CAN_FA1R_FACT CAN_FA1R_FACT_Msk /*!< Filter Active */ |
6223 | #define CAN_FA1R_FACT0_Pos (0U) |
||
9 | mjames | 6224 | #define CAN_FA1R_FACT0_Msk (0x1UL << CAN_FA1R_FACT0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6225 | #define CAN_FA1R_FACT0 CAN_FA1R_FACT0_Msk /*!< Filter 0 Active */ |
6226 | #define CAN_FA1R_FACT1_Pos (1U) |
||
9 | mjames | 6227 | #define CAN_FA1R_FACT1_Msk (0x1UL << CAN_FA1R_FACT1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6228 | #define CAN_FA1R_FACT1 CAN_FA1R_FACT1_Msk /*!< Filter 1 Active */ |
6229 | #define CAN_FA1R_FACT2_Pos (2U) |
||
9 | mjames | 6230 | #define CAN_FA1R_FACT2_Msk (0x1UL << CAN_FA1R_FACT2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6231 | #define CAN_FA1R_FACT2 CAN_FA1R_FACT2_Msk /*!< Filter 2 Active */ |
6232 | #define CAN_FA1R_FACT3_Pos (3U) |
||
9 | mjames | 6233 | #define CAN_FA1R_FACT3_Msk (0x1UL << CAN_FA1R_FACT3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6234 | #define CAN_FA1R_FACT3 CAN_FA1R_FACT3_Msk /*!< Filter 3 Active */ |
6235 | #define CAN_FA1R_FACT4_Pos (4U) |
||
9 | mjames | 6236 | #define CAN_FA1R_FACT4_Msk (0x1UL << CAN_FA1R_FACT4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6237 | #define CAN_FA1R_FACT4 CAN_FA1R_FACT4_Msk /*!< Filter 4 Active */ |
6238 | #define CAN_FA1R_FACT5_Pos (5U) |
||
9 | mjames | 6239 | #define CAN_FA1R_FACT5_Msk (0x1UL << CAN_FA1R_FACT5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6240 | #define CAN_FA1R_FACT5 CAN_FA1R_FACT5_Msk /*!< Filter 5 Active */ |
6241 | #define CAN_FA1R_FACT6_Pos (6U) |
||
9 | mjames | 6242 | #define CAN_FA1R_FACT6_Msk (0x1UL << CAN_FA1R_FACT6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6243 | #define CAN_FA1R_FACT6 CAN_FA1R_FACT6_Msk /*!< Filter 6 Active */ |
6244 | #define CAN_FA1R_FACT7_Pos (7U) |
||
9 | mjames | 6245 | #define CAN_FA1R_FACT7_Msk (0x1UL << CAN_FA1R_FACT7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6246 | #define CAN_FA1R_FACT7 CAN_FA1R_FACT7_Msk /*!< Filter 7 Active */ |
6247 | #define CAN_FA1R_FACT8_Pos (8U) |
||
9 | mjames | 6248 | #define CAN_FA1R_FACT8_Msk (0x1UL << CAN_FA1R_FACT8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6249 | #define CAN_FA1R_FACT8 CAN_FA1R_FACT8_Msk /*!< Filter 8 Active */ |
6250 | #define CAN_FA1R_FACT9_Pos (9U) |
||
9 | mjames | 6251 | #define CAN_FA1R_FACT9_Msk (0x1UL << CAN_FA1R_FACT9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6252 | #define CAN_FA1R_FACT9 CAN_FA1R_FACT9_Msk /*!< Filter 9 Active */ |
6253 | #define CAN_FA1R_FACT10_Pos (10U) |
||
9 | mjames | 6254 | #define CAN_FA1R_FACT10_Msk (0x1UL << CAN_FA1R_FACT10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6255 | #define CAN_FA1R_FACT10 CAN_FA1R_FACT10_Msk /*!< Filter 10 Active */ |
6256 | #define CAN_FA1R_FACT11_Pos (11U) |
||
9 | mjames | 6257 | #define CAN_FA1R_FACT11_Msk (0x1UL << CAN_FA1R_FACT11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6258 | #define CAN_FA1R_FACT11 CAN_FA1R_FACT11_Msk /*!< Filter 11 Active */ |
6259 | #define CAN_FA1R_FACT12_Pos (12U) |
||
9 | mjames | 6260 | #define CAN_FA1R_FACT12_Msk (0x1UL << CAN_FA1R_FACT12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6261 | #define CAN_FA1R_FACT12 CAN_FA1R_FACT12_Msk /*!< Filter 12 Active */ |
6262 | #define CAN_FA1R_FACT13_Pos (13U) |
||
9 | mjames | 6263 | #define CAN_FA1R_FACT13_Msk (0x1UL << CAN_FA1R_FACT13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6264 | #define CAN_FA1R_FACT13 CAN_FA1R_FACT13_Msk /*!< Filter 13 Active */ |
6265 | |||
6266 | /******************* Bit definition for CAN_F0R1 register *******************/ |
||
6267 | #define CAN_F0R1_FB0_Pos (0U) |
||
9 | mjames | 6268 | #define CAN_F0R1_FB0_Msk (0x1UL << CAN_F0R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6269 | #define CAN_F0R1_FB0 CAN_F0R1_FB0_Msk /*!< Filter bit 0 */ |
6270 | #define CAN_F0R1_FB1_Pos (1U) |
||
9 | mjames | 6271 | #define CAN_F0R1_FB1_Msk (0x1UL << CAN_F0R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6272 | #define CAN_F0R1_FB1 CAN_F0R1_FB1_Msk /*!< Filter bit 1 */ |
6273 | #define CAN_F0R1_FB2_Pos (2U) |
||
9 | mjames | 6274 | #define CAN_F0R1_FB2_Msk (0x1UL << CAN_F0R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6275 | #define CAN_F0R1_FB2 CAN_F0R1_FB2_Msk /*!< Filter bit 2 */ |
6276 | #define CAN_F0R1_FB3_Pos (3U) |
||
9 | mjames | 6277 | #define CAN_F0R1_FB3_Msk (0x1UL << CAN_F0R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6278 | #define CAN_F0R1_FB3 CAN_F0R1_FB3_Msk /*!< Filter bit 3 */ |
6279 | #define CAN_F0R1_FB4_Pos (4U) |
||
9 | mjames | 6280 | #define CAN_F0R1_FB4_Msk (0x1UL << CAN_F0R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6281 | #define CAN_F0R1_FB4 CAN_F0R1_FB4_Msk /*!< Filter bit 4 */ |
6282 | #define CAN_F0R1_FB5_Pos (5U) |
||
9 | mjames | 6283 | #define CAN_F0R1_FB5_Msk (0x1UL << CAN_F0R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6284 | #define CAN_F0R1_FB5 CAN_F0R1_FB5_Msk /*!< Filter bit 5 */ |
6285 | #define CAN_F0R1_FB6_Pos (6U) |
||
9 | mjames | 6286 | #define CAN_F0R1_FB6_Msk (0x1UL << CAN_F0R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6287 | #define CAN_F0R1_FB6 CAN_F0R1_FB6_Msk /*!< Filter bit 6 */ |
6288 | #define CAN_F0R1_FB7_Pos (7U) |
||
9 | mjames | 6289 | #define CAN_F0R1_FB7_Msk (0x1UL << CAN_F0R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6290 | #define CAN_F0R1_FB7 CAN_F0R1_FB7_Msk /*!< Filter bit 7 */ |
6291 | #define CAN_F0R1_FB8_Pos (8U) |
||
9 | mjames | 6292 | #define CAN_F0R1_FB8_Msk (0x1UL << CAN_F0R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6293 | #define CAN_F0R1_FB8 CAN_F0R1_FB8_Msk /*!< Filter bit 8 */ |
6294 | #define CAN_F0R1_FB9_Pos (9U) |
||
9 | mjames | 6295 | #define CAN_F0R1_FB9_Msk (0x1UL << CAN_F0R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6296 | #define CAN_F0R1_FB9 CAN_F0R1_FB9_Msk /*!< Filter bit 9 */ |
6297 | #define CAN_F0R1_FB10_Pos (10U) |
||
9 | mjames | 6298 | #define CAN_F0R1_FB10_Msk (0x1UL << CAN_F0R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6299 | #define CAN_F0R1_FB10 CAN_F0R1_FB10_Msk /*!< Filter bit 10 */ |
6300 | #define CAN_F0R1_FB11_Pos (11U) |
||
9 | mjames | 6301 | #define CAN_F0R1_FB11_Msk (0x1UL << CAN_F0R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6302 | #define CAN_F0R1_FB11 CAN_F0R1_FB11_Msk /*!< Filter bit 11 */ |
6303 | #define CAN_F0R1_FB12_Pos (12U) |
||
9 | mjames | 6304 | #define CAN_F0R1_FB12_Msk (0x1UL << CAN_F0R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6305 | #define CAN_F0R1_FB12 CAN_F0R1_FB12_Msk /*!< Filter bit 12 */ |
6306 | #define CAN_F0R1_FB13_Pos (13U) |
||
9 | mjames | 6307 | #define CAN_F0R1_FB13_Msk (0x1UL << CAN_F0R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6308 | #define CAN_F0R1_FB13 CAN_F0R1_FB13_Msk /*!< Filter bit 13 */ |
6309 | #define CAN_F0R1_FB14_Pos (14U) |
||
9 | mjames | 6310 | #define CAN_F0R1_FB14_Msk (0x1UL << CAN_F0R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 6311 | #define CAN_F0R1_FB14 CAN_F0R1_FB14_Msk /*!< Filter bit 14 */ |
6312 | #define CAN_F0R1_FB15_Pos (15U) |
||
9 | mjames | 6313 | #define CAN_F0R1_FB15_Msk (0x1UL << CAN_F0R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 6314 | #define CAN_F0R1_FB15 CAN_F0R1_FB15_Msk /*!< Filter bit 15 */ |
6315 | #define CAN_F0R1_FB16_Pos (16U) |
||
9 | mjames | 6316 | #define CAN_F0R1_FB16_Msk (0x1UL << CAN_F0R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 6317 | #define CAN_F0R1_FB16 CAN_F0R1_FB16_Msk /*!< Filter bit 16 */ |
6318 | #define CAN_F0R1_FB17_Pos (17U) |
||
9 | mjames | 6319 | #define CAN_F0R1_FB17_Msk (0x1UL << CAN_F0R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 6320 | #define CAN_F0R1_FB17 CAN_F0R1_FB17_Msk /*!< Filter bit 17 */ |
6321 | #define CAN_F0R1_FB18_Pos (18U) |
||
9 | mjames | 6322 | #define CAN_F0R1_FB18_Msk (0x1UL << CAN_F0R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 6323 | #define CAN_F0R1_FB18 CAN_F0R1_FB18_Msk /*!< Filter bit 18 */ |
6324 | #define CAN_F0R1_FB19_Pos (19U) |
||
9 | mjames | 6325 | #define CAN_F0R1_FB19_Msk (0x1UL << CAN_F0R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 6326 | #define CAN_F0R1_FB19 CAN_F0R1_FB19_Msk /*!< Filter bit 19 */ |
6327 | #define CAN_F0R1_FB20_Pos (20U) |
||
9 | mjames | 6328 | #define CAN_F0R1_FB20_Msk (0x1UL << CAN_F0R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 6329 | #define CAN_F0R1_FB20 CAN_F0R1_FB20_Msk /*!< Filter bit 20 */ |
6330 | #define CAN_F0R1_FB21_Pos (21U) |
||
9 | mjames | 6331 | #define CAN_F0R1_FB21_Msk (0x1UL << CAN_F0R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 6332 | #define CAN_F0R1_FB21 CAN_F0R1_FB21_Msk /*!< Filter bit 21 */ |
6333 | #define CAN_F0R1_FB22_Pos (22U) |
||
9 | mjames | 6334 | #define CAN_F0R1_FB22_Msk (0x1UL << CAN_F0R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 6335 | #define CAN_F0R1_FB22 CAN_F0R1_FB22_Msk /*!< Filter bit 22 */ |
6336 | #define CAN_F0R1_FB23_Pos (23U) |
||
9 | mjames | 6337 | #define CAN_F0R1_FB23_Msk (0x1UL << CAN_F0R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 6338 | #define CAN_F0R1_FB23 CAN_F0R1_FB23_Msk /*!< Filter bit 23 */ |
6339 | #define CAN_F0R1_FB24_Pos (24U) |
||
9 | mjames | 6340 | #define CAN_F0R1_FB24_Msk (0x1UL << CAN_F0R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 6341 | #define CAN_F0R1_FB24 CAN_F0R1_FB24_Msk /*!< Filter bit 24 */ |
6342 | #define CAN_F0R1_FB25_Pos (25U) |
||
9 | mjames | 6343 | #define CAN_F0R1_FB25_Msk (0x1UL << CAN_F0R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 6344 | #define CAN_F0R1_FB25 CAN_F0R1_FB25_Msk /*!< Filter bit 25 */ |
6345 | #define CAN_F0R1_FB26_Pos (26U) |
||
9 | mjames | 6346 | #define CAN_F0R1_FB26_Msk (0x1UL << CAN_F0R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 6347 | #define CAN_F0R1_FB26 CAN_F0R1_FB26_Msk /*!< Filter bit 26 */ |
6348 | #define CAN_F0R1_FB27_Pos (27U) |
||
9 | mjames | 6349 | #define CAN_F0R1_FB27_Msk (0x1UL << CAN_F0R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 6350 | #define CAN_F0R1_FB27 CAN_F0R1_FB27_Msk /*!< Filter bit 27 */ |
6351 | #define CAN_F0R1_FB28_Pos (28U) |
||
9 | mjames | 6352 | #define CAN_F0R1_FB28_Msk (0x1UL << CAN_F0R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 6353 | #define CAN_F0R1_FB28 CAN_F0R1_FB28_Msk /*!< Filter bit 28 */ |
6354 | #define CAN_F0R1_FB29_Pos (29U) |
||
9 | mjames | 6355 | #define CAN_F0R1_FB29_Msk (0x1UL << CAN_F0R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 6356 | #define CAN_F0R1_FB29 CAN_F0R1_FB29_Msk /*!< Filter bit 29 */ |
6357 | #define CAN_F0R1_FB30_Pos (30U) |
||
9 | mjames | 6358 | #define CAN_F0R1_FB30_Msk (0x1UL << CAN_F0R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 6359 | #define CAN_F0R1_FB30 CAN_F0R1_FB30_Msk /*!< Filter bit 30 */ |
6360 | #define CAN_F0R1_FB31_Pos (31U) |
||
9 | mjames | 6361 | #define CAN_F0R1_FB31_Msk (0x1UL << CAN_F0R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 6362 | #define CAN_F0R1_FB31 CAN_F0R1_FB31_Msk /*!< Filter bit 31 */ |
6363 | |||
6364 | /******************* Bit definition for CAN_F1R1 register *******************/ |
||
6365 | #define CAN_F1R1_FB0_Pos (0U) |
||
9 | mjames | 6366 | #define CAN_F1R1_FB0_Msk (0x1UL << CAN_F1R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6367 | #define CAN_F1R1_FB0 CAN_F1R1_FB0_Msk /*!< Filter bit 0 */ |
6368 | #define CAN_F1R1_FB1_Pos (1U) |
||
9 | mjames | 6369 | #define CAN_F1R1_FB1_Msk (0x1UL << CAN_F1R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6370 | #define CAN_F1R1_FB1 CAN_F1R1_FB1_Msk /*!< Filter bit 1 */ |
6371 | #define CAN_F1R1_FB2_Pos (2U) |
||
9 | mjames | 6372 | #define CAN_F1R1_FB2_Msk (0x1UL << CAN_F1R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6373 | #define CAN_F1R1_FB2 CAN_F1R1_FB2_Msk /*!< Filter bit 2 */ |
6374 | #define CAN_F1R1_FB3_Pos (3U) |
||
9 | mjames | 6375 | #define CAN_F1R1_FB3_Msk (0x1UL << CAN_F1R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6376 | #define CAN_F1R1_FB3 CAN_F1R1_FB3_Msk /*!< Filter bit 3 */ |
6377 | #define CAN_F1R1_FB4_Pos (4U) |
||
9 | mjames | 6378 | #define CAN_F1R1_FB4_Msk (0x1UL << CAN_F1R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6379 | #define CAN_F1R1_FB4 CAN_F1R1_FB4_Msk /*!< Filter bit 4 */ |
6380 | #define CAN_F1R1_FB5_Pos (5U) |
||
9 | mjames | 6381 | #define CAN_F1R1_FB5_Msk (0x1UL << CAN_F1R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6382 | #define CAN_F1R1_FB5 CAN_F1R1_FB5_Msk /*!< Filter bit 5 */ |
6383 | #define CAN_F1R1_FB6_Pos (6U) |
||
9 | mjames | 6384 | #define CAN_F1R1_FB6_Msk (0x1UL << CAN_F1R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6385 | #define CAN_F1R1_FB6 CAN_F1R1_FB6_Msk /*!< Filter bit 6 */ |
6386 | #define CAN_F1R1_FB7_Pos (7U) |
||
9 | mjames | 6387 | #define CAN_F1R1_FB7_Msk (0x1UL << CAN_F1R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6388 | #define CAN_F1R1_FB7 CAN_F1R1_FB7_Msk /*!< Filter bit 7 */ |
6389 | #define CAN_F1R1_FB8_Pos (8U) |
||
9 | mjames | 6390 | #define CAN_F1R1_FB8_Msk (0x1UL << CAN_F1R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6391 | #define CAN_F1R1_FB8 CAN_F1R1_FB8_Msk /*!< Filter bit 8 */ |
6392 | #define CAN_F1R1_FB9_Pos (9U) |
||
9 | mjames | 6393 | #define CAN_F1R1_FB9_Msk (0x1UL << CAN_F1R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6394 | #define CAN_F1R1_FB9 CAN_F1R1_FB9_Msk /*!< Filter bit 9 */ |
6395 | #define CAN_F1R1_FB10_Pos (10U) |
||
9 | mjames | 6396 | #define CAN_F1R1_FB10_Msk (0x1UL << CAN_F1R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6397 | #define CAN_F1R1_FB10 CAN_F1R1_FB10_Msk /*!< Filter bit 10 */ |
6398 | #define CAN_F1R1_FB11_Pos (11U) |
||
9 | mjames | 6399 | #define CAN_F1R1_FB11_Msk (0x1UL << CAN_F1R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6400 | #define CAN_F1R1_FB11 CAN_F1R1_FB11_Msk /*!< Filter bit 11 */ |
6401 | #define CAN_F1R1_FB12_Pos (12U) |
||
9 | mjames | 6402 | #define CAN_F1R1_FB12_Msk (0x1UL << CAN_F1R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6403 | #define CAN_F1R1_FB12 CAN_F1R1_FB12_Msk /*!< Filter bit 12 */ |
6404 | #define CAN_F1R1_FB13_Pos (13U) |
||
9 | mjames | 6405 | #define CAN_F1R1_FB13_Msk (0x1UL << CAN_F1R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6406 | #define CAN_F1R1_FB13 CAN_F1R1_FB13_Msk /*!< Filter bit 13 */ |
6407 | #define CAN_F1R1_FB14_Pos (14U) |
||
9 | mjames | 6408 | #define CAN_F1R1_FB14_Msk (0x1UL << CAN_F1R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 6409 | #define CAN_F1R1_FB14 CAN_F1R1_FB14_Msk /*!< Filter bit 14 */ |
6410 | #define CAN_F1R1_FB15_Pos (15U) |
||
9 | mjames | 6411 | #define CAN_F1R1_FB15_Msk (0x1UL << CAN_F1R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 6412 | #define CAN_F1R1_FB15 CAN_F1R1_FB15_Msk /*!< Filter bit 15 */ |
6413 | #define CAN_F1R1_FB16_Pos (16U) |
||
9 | mjames | 6414 | #define CAN_F1R1_FB16_Msk (0x1UL << CAN_F1R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 6415 | #define CAN_F1R1_FB16 CAN_F1R1_FB16_Msk /*!< Filter bit 16 */ |
6416 | #define CAN_F1R1_FB17_Pos (17U) |
||
9 | mjames | 6417 | #define CAN_F1R1_FB17_Msk (0x1UL << CAN_F1R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 6418 | #define CAN_F1R1_FB17 CAN_F1R1_FB17_Msk /*!< Filter bit 17 */ |
6419 | #define CAN_F1R1_FB18_Pos (18U) |
||
9 | mjames | 6420 | #define CAN_F1R1_FB18_Msk (0x1UL << CAN_F1R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 6421 | #define CAN_F1R1_FB18 CAN_F1R1_FB18_Msk /*!< Filter bit 18 */ |
6422 | #define CAN_F1R1_FB19_Pos (19U) |
||
9 | mjames | 6423 | #define CAN_F1R1_FB19_Msk (0x1UL << CAN_F1R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 6424 | #define CAN_F1R1_FB19 CAN_F1R1_FB19_Msk /*!< Filter bit 19 */ |
6425 | #define CAN_F1R1_FB20_Pos (20U) |
||
9 | mjames | 6426 | #define CAN_F1R1_FB20_Msk (0x1UL << CAN_F1R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 6427 | #define CAN_F1R1_FB20 CAN_F1R1_FB20_Msk /*!< Filter bit 20 */ |
6428 | #define CAN_F1R1_FB21_Pos (21U) |
||
9 | mjames | 6429 | #define CAN_F1R1_FB21_Msk (0x1UL << CAN_F1R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 6430 | #define CAN_F1R1_FB21 CAN_F1R1_FB21_Msk /*!< Filter bit 21 */ |
6431 | #define CAN_F1R1_FB22_Pos (22U) |
||
9 | mjames | 6432 | #define CAN_F1R1_FB22_Msk (0x1UL << CAN_F1R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 6433 | #define CAN_F1R1_FB22 CAN_F1R1_FB22_Msk /*!< Filter bit 22 */ |
6434 | #define CAN_F1R1_FB23_Pos (23U) |
||
9 | mjames | 6435 | #define CAN_F1R1_FB23_Msk (0x1UL << CAN_F1R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 6436 | #define CAN_F1R1_FB23 CAN_F1R1_FB23_Msk /*!< Filter bit 23 */ |
6437 | #define CAN_F1R1_FB24_Pos (24U) |
||
9 | mjames | 6438 | #define CAN_F1R1_FB24_Msk (0x1UL << CAN_F1R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 6439 | #define CAN_F1R1_FB24 CAN_F1R1_FB24_Msk /*!< Filter bit 24 */ |
6440 | #define CAN_F1R1_FB25_Pos (25U) |
||
9 | mjames | 6441 | #define CAN_F1R1_FB25_Msk (0x1UL << CAN_F1R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 6442 | #define CAN_F1R1_FB25 CAN_F1R1_FB25_Msk /*!< Filter bit 25 */ |
6443 | #define CAN_F1R1_FB26_Pos (26U) |
||
9 | mjames | 6444 | #define CAN_F1R1_FB26_Msk (0x1UL << CAN_F1R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 6445 | #define CAN_F1R1_FB26 CAN_F1R1_FB26_Msk /*!< Filter bit 26 */ |
6446 | #define CAN_F1R1_FB27_Pos (27U) |
||
9 | mjames | 6447 | #define CAN_F1R1_FB27_Msk (0x1UL << CAN_F1R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 6448 | #define CAN_F1R1_FB27 CAN_F1R1_FB27_Msk /*!< Filter bit 27 */ |
6449 | #define CAN_F1R1_FB28_Pos (28U) |
||
9 | mjames | 6450 | #define CAN_F1R1_FB28_Msk (0x1UL << CAN_F1R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 6451 | #define CAN_F1R1_FB28 CAN_F1R1_FB28_Msk /*!< Filter bit 28 */ |
6452 | #define CAN_F1R1_FB29_Pos (29U) |
||
9 | mjames | 6453 | #define CAN_F1R1_FB29_Msk (0x1UL << CAN_F1R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 6454 | #define CAN_F1R1_FB29 CAN_F1R1_FB29_Msk /*!< Filter bit 29 */ |
6455 | #define CAN_F1R1_FB30_Pos (30U) |
||
9 | mjames | 6456 | #define CAN_F1R1_FB30_Msk (0x1UL << CAN_F1R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 6457 | #define CAN_F1R1_FB30 CAN_F1R1_FB30_Msk /*!< Filter bit 30 */ |
6458 | #define CAN_F1R1_FB31_Pos (31U) |
||
9 | mjames | 6459 | #define CAN_F1R1_FB31_Msk (0x1UL << CAN_F1R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 6460 | #define CAN_F1R1_FB31 CAN_F1R1_FB31_Msk /*!< Filter bit 31 */ |
6461 | |||
6462 | /******************* Bit definition for CAN_F2R1 register *******************/ |
||
6463 | #define CAN_F2R1_FB0_Pos (0U) |
||
9 | mjames | 6464 | #define CAN_F2R1_FB0_Msk (0x1UL << CAN_F2R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6465 | #define CAN_F2R1_FB0 CAN_F2R1_FB0_Msk /*!< Filter bit 0 */ |
6466 | #define CAN_F2R1_FB1_Pos (1U) |
||
9 | mjames | 6467 | #define CAN_F2R1_FB1_Msk (0x1UL << CAN_F2R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6468 | #define CAN_F2R1_FB1 CAN_F2R1_FB1_Msk /*!< Filter bit 1 */ |
6469 | #define CAN_F2R1_FB2_Pos (2U) |
||
9 | mjames | 6470 | #define CAN_F2R1_FB2_Msk (0x1UL << CAN_F2R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6471 | #define CAN_F2R1_FB2 CAN_F2R1_FB2_Msk /*!< Filter bit 2 */ |
6472 | #define CAN_F2R1_FB3_Pos (3U) |
||
9 | mjames | 6473 | #define CAN_F2R1_FB3_Msk (0x1UL << CAN_F2R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6474 | #define CAN_F2R1_FB3 CAN_F2R1_FB3_Msk /*!< Filter bit 3 */ |
6475 | #define CAN_F2R1_FB4_Pos (4U) |
||
9 | mjames | 6476 | #define CAN_F2R1_FB4_Msk (0x1UL << CAN_F2R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6477 | #define CAN_F2R1_FB4 CAN_F2R1_FB4_Msk /*!< Filter bit 4 */ |
6478 | #define CAN_F2R1_FB5_Pos (5U) |
||
9 | mjames | 6479 | #define CAN_F2R1_FB5_Msk (0x1UL << CAN_F2R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6480 | #define CAN_F2R1_FB5 CAN_F2R1_FB5_Msk /*!< Filter bit 5 */ |
6481 | #define CAN_F2R1_FB6_Pos (6U) |
||
9 | mjames | 6482 | #define CAN_F2R1_FB6_Msk (0x1UL << CAN_F2R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6483 | #define CAN_F2R1_FB6 CAN_F2R1_FB6_Msk /*!< Filter bit 6 */ |
6484 | #define CAN_F2R1_FB7_Pos (7U) |
||
9 | mjames | 6485 | #define CAN_F2R1_FB7_Msk (0x1UL << CAN_F2R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6486 | #define CAN_F2R1_FB7 CAN_F2R1_FB7_Msk /*!< Filter bit 7 */ |
6487 | #define CAN_F2R1_FB8_Pos (8U) |
||
9 | mjames | 6488 | #define CAN_F2R1_FB8_Msk (0x1UL << CAN_F2R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6489 | #define CAN_F2R1_FB8 CAN_F2R1_FB8_Msk /*!< Filter bit 8 */ |
6490 | #define CAN_F2R1_FB9_Pos (9U) |
||
9 | mjames | 6491 | #define CAN_F2R1_FB9_Msk (0x1UL << CAN_F2R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6492 | #define CAN_F2R1_FB9 CAN_F2R1_FB9_Msk /*!< Filter bit 9 */ |
6493 | #define CAN_F2R1_FB10_Pos (10U) |
||
9 | mjames | 6494 | #define CAN_F2R1_FB10_Msk (0x1UL << CAN_F2R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6495 | #define CAN_F2R1_FB10 CAN_F2R1_FB10_Msk /*!< Filter bit 10 */ |
6496 | #define CAN_F2R1_FB11_Pos (11U) |
||
9 | mjames | 6497 | #define CAN_F2R1_FB11_Msk (0x1UL << CAN_F2R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6498 | #define CAN_F2R1_FB11 CAN_F2R1_FB11_Msk /*!< Filter bit 11 */ |
6499 | #define CAN_F2R1_FB12_Pos (12U) |
||
9 | mjames | 6500 | #define CAN_F2R1_FB12_Msk (0x1UL << CAN_F2R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6501 | #define CAN_F2R1_FB12 CAN_F2R1_FB12_Msk /*!< Filter bit 12 */ |
6502 | #define CAN_F2R1_FB13_Pos (13U) |
||
9 | mjames | 6503 | #define CAN_F2R1_FB13_Msk (0x1UL << CAN_F2R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6504 | #define CAN_F2R1_FB13 CAN_F2R1_FB13_Msk /*!< Filter bit 13 */ |
6505 | #define CAN_F2R1_FB14_Pos (14U) |
||
9 | mjames | 6506 | #define CAN_F2R1_FB14_Msk (0x1UL << CAN_F2R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 6507 | #define CAN_F2R1_FB14 CAN_F2R1_FB14_Msk /*!< Filter bit 14 */ |
6508 | #define CAN_F2R1_FB15_Pos (15U) |
||
9 | mjames | 6509 | #define CAN_F2R1_FB15_Msk (0x1UL << CAN_F2R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 6510 | #define CAN_F2R1_FB15 CAN_F2R1_FB15_Msk /*!< Filter bit 15 */ |
6511 | #define CAN_F2R1_FB16_Pos (16U) |
||
9 | mjames | 6512 | #define CAN_F2R1_FB16_Msk (0x1UL << CAN_F2R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 6513 | #define CAN_F2R1_FB16 CAN_F2R1_FB16_Msk /*!< Filter bit 16 */ |
6514 | #define CAN_F2R1_FB17_Pos (17U) |
||
9 | mjames | 6515 | #define CAN_F2R1_FB17_Msk (0x1UL << CAN_F2R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 6516 | #define CAN_F2R1_FB17 CAN_F2R1_FB17_Msk /*!< Filter bit 17 */ |
6517 | #define CAN_F2R1_FB18_Pos (18U) |
||
9 | mjames | 6518 | #define CAN_F2R1_FB18_Msk (0x1UL << CAN_F2R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 6519 | #define CAN_F2R1_FB18 CAN_F2R1_FB18_Msk /*!< Filter bit 18 */ |
6520 | #define CAN_F2R1_FB19_Pos (19U) |
||
9 | mjames | 6521 | #define CAN_F2R1_FB19_Msk (0x1UL << CAN_F2R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 6522 | #define CAN_F2R1_FB19 CAN_F2R1_FB19_Msk /*!< Filter bit 19 */ |
6523 | #define CAN_F2R1_FB20_Pos (20U) |
||
9 | mjames | 6524 | #define CAN_F2R1_FB20_Msk (0x1UL << CAN_F2R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 6525 | #define CAN_F2R1_FB20 CAN_F2R1_FB20_Msk /*!< Filter bit 20 */ |
6526 | #define CAN_F2R1_FB21_Pos (21U) |
||
9 | mjames | 6527 | #define CAN_F2R1_FB21_Msk (0x1UL << CAN_F2R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 6528 | #define CAN_F2R1_FB21 CAN_F2R1_FB21_Msk /*!< Filter bit 21 */ |
6529 | #define CAN_F2R1_FB22_Pos (22U) |
||
9 | mjames | 6530 | #define CAN_F2R1_FB22_Msk (0x1UL << CAN_F2R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 6531 | #define CAN_F2R1_FB22 CAN_F2R1_FB22_Msk /*!< Filter bit 22 */ |
6532 | #define CAN_F2R1_FB23_Pos (23U) |
||
9 | mjames | 6533 | #define CAN_F2R1_FB23_Msk (0x1UL << CAN_F2R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 6534 | #define CAN_F2R1_FB23 CAN_F2R1_FB23_Msk /*!< Filter bit 23 */ |
6535 | #define CAN_F2R1_FB24_Pos (24U) |
||
9 | mjames | 6536 | #define CAN_F2R1_FB24_Msk (0x1UL << CAN_F2R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 6537 | #define CAN_F2R1_FB24 CAN_F2R1_FB24_Msk /*!< Filter bit 24 */ |
6538 | #define CAN_F2R1_FB25_Pos (25U) |
||
9 | mjames | 6539 | #define CAN_F2R1_FB25_Msk (0x1UL << CAN_F2R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 6540 | #define CAN_F2R1_FB25 CAN_F2R1_FB25_Msk /*!< Filter bit 25 */ |
6541 | #define CAN_F2R1_FB26_Pos (26U) |
||
9 | mjames | 6542 | #define CAN_F2R1_FB26_Msk (0x1UL << CAN_F2R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 6543 | #define CAN_F2R1_FB26 CAN_F2R1_FB26_Msk /*!< Filter bit 26 */ |
6544 | #define CAN_F2R1_FB27_Pos (27U) |
||
9 | mjames | 6545 | #define CAN_F2R1_FB27_Msk (0x1UL << CAN_F2R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 6546 | #define CAN_F2R1_FB27 CAN_F2R1_FB27_Msk /*!< Filter bit 27 */ |
6547 | #define CAN_F2R1_FB28_Pos (28U) |
||
9 | mjames | 6548 | #define CAN_F2R1_FB28_Msk (0x1UL << CAN_F2R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 6549 | #define CAN_F2R1_FB28 CAN_F2R1_FB28_Msk /*!< Filter bit 28 */ |
6550 | #define CAN_F2R1_FB29_Pos (29U) |
||
9 | mjames | 6551 | #define CAN_F2R1_FB29_Msk (0x1UL << CAN_F2R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 6552 | #define CAN_F2R1_FB29 CAN_F2R1_FB29_Msk /*!< Filter bit 29 */ |
6553 | #define CAN_F2R1_FB30_Pos (30U) |
||
9 | mjames | 6554 | #define CAN_F2R1_FB30_Msk (0x1UL << CAN_F2R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 6555 | #define CAN_F2R1_FB30 CAN_F2R1_FB30_Msk /*!< Filter bit 30 */ |
6556 | #define CAN_F2R1_FB31_Pos (31U) |
||
9 | mjames | 6557 | #define CAN_F2R1_FB31_Msk (0x1UL << CAN_F2R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 6558 | #define CAN_F2R1_FB31 CAN_F2R1_FB31_Msk /*!< Filter bit 31 */ |
6559 | |||
6560 | /******************* Bit definition for CAN_F3R1 register *******************/ |
||
6561 | #define CAN_F3R1_FB0_Pos (0U) |
||
9 | mjames | 6562 | #define CAN_F3R1_FB0_Msk (0x1UL << CAN_F3R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6563 | #define CAN_F3R1_FB0 CAN_F3R1_FB0_Msk /*!< Filter bit 0 */ |
6564 | #define CAN_F3R1_FB1_Pos (1U) |
||
9 | mjames | 6565 | #define CAN_F3R1_FB1_Msk (0x1UL << CAN_F3R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6566 | #define CAN_F3R1_FB1 CAN_F3R1_FB1_Msk /*!< Filter bit 1 */ |
6567 | #define CAN_F3R1_FB2_Pos (2U) |
||
9 | mjames | 6568 | #define CAN_F3R1_FB2_Msk (0x1UL << CAN_F3R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6569 | #define CAN_F3R1_FB2 CAN_F3R1_FB2_Msk /*!< Filter bit 2 */ |
6570 | #define CAN_F3R1_FB3_Pos (3U) |
||
9 | mjames | 6571 | #define CAN_F3R1_FB3_Msk (0x1UL << CAN_F3R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6572 | #define CAN_F3R1_FB3 CAN_F3R1_FB3_Msk /*!< Filter bit 3 */ |
6573 | #define CAN_F3R1_FB4_Pos (4U) |
||
9 | mjames | 6574 | #define CAN_F3R1_FB4_Msk (0x1UL << CAN_F3R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6575 | #define CAN_F3R1_FB4 CAN_F3R1_FB4_Msk /*!< Filter bit 4 */ |
6576 | #define CAN_F3R1_FB5_Pos (5U) |
||
9 | mjames | 6577 | #define CAN_F3R1_FB5_Msk (0x1UL << CAN_F3R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6578 | #define CAN_F3R1_FB5 CAN_F3R1_FB5_Msk /*!< Filter bit 5 */ |
6579 | #define CAN_F3R1_FB6_Pos (6U) |
||
9 | mjames | 6580 | #define CAN_F3R1_FB6_Msk (0x1UL << CAN_F3R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6581 | #define CAN_F3R1_FB6 CAN_F3R1_FB6_Msk /*!< Filter bit 6 */ |
6582 | #define CAN_F3R1_FB7_Pos (7U) |
||
9 | mjames | 6583 | #define CAN_F3R1_FB7_Msk (0x1UL << CAN_F3R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6584 | #define CAN_F3R1_FB7 CAN_F3R1_FB7_Msk /*!< Filter bit 7 */ |
6585 | #define CAN_F3R1_FB8_Pos (8U) |
||
9 | mjames | 6586 | #define CAN_F3R1_FB8_Msk (0x1UL << CAN_F3R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6587 | #define CAN_F3R1_FB8 CAN_F3R1_FB8_Msk /*!< Filter bit 8 */ |
6588 | #define CAN_F3R1_FB9_Pos (9U) |
||
9 | mjames | 6589 | #define CAN_F3R1_FB9_Msk (0x1UL << CAN_F3R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6590 | #define CAN_F3R1_FB9 CAN_F3R1_FB9_Msk /*!< Filter bit 9 */ |
6591 | #define CAN_F3R1_FB10_Pos (10U) |
||
9 | mjames | 6592 | #define CAN_F3R1_FB10_Msk (0x1UL << CAN_F3R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6593 | #define CAN_F3R1_FB10 CAN_F3R1_FB10_Msk /*!< Filter bit 10 */ |
6594 | #define CAN_F3R1_FB11_Pos (11U) |
||
9 | mjames | 6595 | #define CAN_F3R1_FB11_Msk (0x1UL << CAN_F3R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6596 | #define CAN_F3R1_FB11 CAN_F3R1_FB11_Msk /*!< Filter bit 11 */ |
6597 | #define CAN_F3R1_FB12_Pos (12U) |
||
9 | mjames | 6598 | #define CAN_F3R1_FB12_Msk (0x1UL << CAN_F3R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6599 | #define CAN_F3R1_FB12 CAN_F3R1_FB12_Msk /*!< Filter bit 12 */ |
6600 | #define CAN_F3R1_FB13_Pos (13U) |
||
9 | mjames | 6601 | #define CAN_F3R1_FB13_Msk (0x1UL << CAN_F3R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6602 | #define CAN_F3R1_FB13 CAN_F3R1_FB13_Msk /*!< Filter bit 13 */ |
6603 | #define CAN_F3R1_FB14_Pos (14U) |
||
9 | mjames | 6604 | #define CAN_F3R1_FB14_Msk (0x1UL << CAN_F3R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 6605 | #define CAN_F3R1_FB14 CAN_F3R1_FB14_Msk /*!< Filter bit 14 */ |
6606 | #define CAN_F3R1_FB15_Pos (15U) |
||
9 | mjames | 6607 | #define CAN_F3R1_FB15_Msk (0x1UL << CAN_F3R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 6608 | #define CAN_F3R1_FB15 CAN_F3R1_FB15_Msk /*!< Filter bit 15 */ |
6609 | #define CAN_F3R1_FB16_Pos (16U) |
||
9 | mjames | 6610 | #define CAN_F3R1_FB16_Msk (0x1UL << CAN_F3R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 6611 | #define CAN_F3R1_FB16 CAN_F3R1_FB16_Msk /*!< Filter bit 16 */ |
6612 | #define CAN_F3R1_FB17_Pos (17U) |
||
9 | mjames | 6613 | #define CAN_F3R1_FB17_Msk (0x1UL << CAN_F3R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 6614 | #define CAN_F3R1_FB17 CAN_F3R1_FB17_Msk /*!< Filter bit 17 */ |
6615 | #define CAN_F3R1_FB18_Pos (18U) |
||
9 | mjames | 6616 | #define CAN_F3R1_FB18_Msk (0x1UL << CAN_F3R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 6617 | #define CAN_F3R1_FB18 CAN_F3R1_FB18_Msk /*!< Filter bit 18 */ |
6618 | #define CAN_F3R1_FB19_Pos (19U) |
||
9 | mjames | 6619 | #define CAN_F3R1_FB19_Msk (0x1UL << CAN_F3R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 6620 | #define CAN_F3R1_FB19 CAN_F3R1_FB19_Msk /*!< Filter bit 19 */ |
6621 | #define CAN_F3R1_FB20_Pos (20U) |
||
9 | mjames | 6622 | #define CAN_F3R1_FB20_Msk (0x1UL << CAN_F3R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 6623 | #define CAN_F3R1_FB20 CAN_F3R1_FB20_Msk /*!< Filter bit 20 */ |
6624 | #define CAN_F3R1_FB21_Pos (21U) |
||
9 | mjames | 6625 | #define CAN_F3R1_FB21_Msk (0x1UL << CAN_F3R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 6626 | #define CAN_F3R1_FB21 CAN_F3R1_FB21_Msk /*!< Filter bit 21 */ |
6627 | #define CAN_F3R1_FB22_Pos (22U) |
||
9 | mjames | 6628 | #define CAN_F3R1_FB22_Msk (0x1UL << CAN_F3R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 6629 | #define CAN_F3R1_FB22 CAN_F3R1_FB22_Msk /*!< Filter bit 22 */ |
6630 | #define CAN_F3R1_FB23_Pos (23U) |
||
9 | mjames | 6631 | #define CAN_F3R1_FB23_Msk (0x1UL << CAN_F3R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 6632 | #define CAN_F3R1_FB23 CAN_F3R1_FB23_Msk /*!< Filter bit 23 */ |
6633 | #define CAN_F3R1_FB24_Pos (24U) |
||
9 | mjames | 6634 | #define CAN_F3R1_FB24_Msk (0x1UL << CAN_F3R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 6635 | #define CAN_F3R1_FB24 CAN_F3R1_FB24_Msk /*!< Filter bit 24 */ |
6636 | #define CAN_F3R1_FB25_Pos (25U) |
||
9 | mjames | 6637 | #define CAN_F3R1_FB25_Msk (0x1UL << CAN_F3R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 6638 | #define CAN_F3R1_FB25 CAN_F3R1_FB25_Msk /*!< Filter bit 25 */ |
6639 | #define CAN_F3R1_FB26_Pos (26U) |
||
9 | mjames | 6640 | #define CAN_F3R1_FB26_Msk (0x1UL << CAN_F3R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 6641 | #define CAN_F3R1_FB26 CAN_F3R1_FB26_Msk /*!< Filter bit 26 */ |
6642 | #define CAN_F3R1_FB27_Pos (27U) |
||
9 | mjames | 6643 | #define CAN_F3R1_FB27_Msk (0x1UL << CAN_F3R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 6644 | #define CAN_F3R1_FB27 CAN_F3R1_FB27_Msk /*!< Filter bit 27 */ |
6645 | #define CAN_F3R1_FB28_Pos (28U) |
||
9 | mjames | 6646 | #define CAN_F3R1_FB28_Msk (0x1UL << CAN_F3R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 6647 | #define CAN_F3R1_FB28 CAN_F3R1_FB28_Msk /*!< Filter bit 28 */ |
6648 | #define CAN_F3R1_FB29_Pos (29U) |
||
9 | mjames | 6649 | #define CAN_F3R1_FB29_Msk (0x1UL << CAN_F3R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 6650 | #define CAN_F3R1_FB29 CAN_F3R1_FB29_Msk /*!< Filter bit 29 */ |
6651 | #define CAN_F3R1_FB30_Pos (30U) |
||
9 | mjames | 6652 | #define CAN_F3R1_FB30_Msk (0x1UL << CAN_F3R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 6653 | #define CAN_F3R1_FB30 CAN_F3R1_FB30_Msk /*!< Filter bit 30 */ |
6654 | #define CAN_F3R1_FB31_Pos (31U) |
||
9 | mjames | 6655 | #define CAN_F3R1_FB31_Msk (0x1UL << CAN_F3R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 6656 | #define CAN_F3R1_FB31 CAN_F3R1_FB31_Msk /*!< Filter bit 31 */ |
6657 | |||
6658 | /******************* Bit definition for CAN_F4R1 register *******************/ |
||
6659 | #define CAN_F4R1_FB0_Pos (0U) |
||
9 | mjames | 6660 | #define CAN_F4R1_FB0_Msk (0x1UL << CAN_F4R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6661 | #define CAN_F4R1_FB0 CAN_F4R1_FB0_Msk /*!< Filter bit 0 */ |
6662 | #define CAN_F4R1_FB1_Pos (1U) |
||
9 | mjames | 6663 | #define CAN_F4R1_FB1_Msk (0x1UL << CAN_F4R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6664 | #define CAN_F4R1_FB1 CAN_F4R1_FB1_Msk /*!< Filter bit 1 */ |
6665 | #define CAN_F4R1_FB2_Pos (2U) |
||
9 | mjames | 6666 | #define CAN_F4R1_FB2_Msk (0x1UL << CAN_F4R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6667 | #define CAN_F4R1_FB2 CAN_F4R1_FB2_Msk /*!< Filter bit 2 */ |
6668 | #define CAN_F4R1_FB3_Pos (3U) |
||
9 | mjames | 6669 | #define CAN_F4R1_FB3_Msk (0x1UL << CAN_F4R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6670 | #define CAN_F4R1_FB3 CAN_F4R1_FB3_Msk /*!< Filter bit 3 */ |
6671 | #define CAN_F4R1_FB4_Pos (4U) |
||
9 | mjames | 6672 | #define CAN_F4R1_FB4_Msk (0x1UL << CAN_F4R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6673 | #define CAN_F4R1_FB4 CAN_F4R1_FB4_Msk /*!< Filter bit 4 */ |
6674 | #define CAN_F4R1_FB5_Pos (5U) |
||
9 | mjames | 6675 | #define CAN_F4R1_FB5_Msk (0x1UL << CAN_F4R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6676 | #define CAN_F4R1_FB5 CAN_F4R1_FB5_Msk /*!< Filter bit 5 */ |
6677 | #define CAN_F4R1_FB6_Pos (6U) |
||
9 | mjames | 6678 | #define CAN_F4R1_FB6_Msk (0x1UL << CAN_F4R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6679 | #define CAN_F4R1_FB6 CAN_F4R1_FB6_Msk /*!< Filter bit 6 */ |
6680 | #define CAN_F4R1_FB7_Pos (7U) |
||
9 | mjames | 6681 | #define CAN_F4R1_FB7_Msk (0x1UL << CAN_F4R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6682 | #define CAN_F4R1_FB7 CAN_F4R1_FB7_Msk /*!< Filter bit 7 */ |
6683 | #define CAN_F4R1_FB8_Pos (8U) |
||
9 | mjames | 6684 | #define CAN_F4R1_FB8_Msk (0x1UL << CAN_F4R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6685 | #define CAN_F4R1_FB8 CAN_F4R1_FB8_Msk /*!< Filter bit 8 */ |
6686 | #define CAN_F4R1_FB9_Pos (9U) |
||
9 | mjames | 6687 | #define CAN_F4R1_FB9_Msk (0x1UL << CAN_F4R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6688 | #define CAN_F4R1_FB9 CAN_F4R1_FB9_Msk /*!< Filter bit 9 */ |
6689 | #define CAN_F4R1_FB10_Pos (10U) |
||
9 | mjames | 6690 | #define CAN_F4R1_FB10_Msk (0x1UL << CAN_F4R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6691 | #define CAN_F4R1_FB10 CAN_F4R1_FB10_Msk /*!< Filter bit 10 */ |
6692 | #define CAN_F4R1_FB11_Pos (11U) |
||
9 | mjames | 6693 | #define CAN_F4R1_FB11_Msk (0x1UL << CAN_F4R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6694 | #define CAN_F4R1_FB11 CAN_F4R1_FB11_Msk /*!< Filter bit 11 */ |
6695 | #define CAN_F4R1_FB12_Pos (12U) |
||
9 | mjames | 6696 | #define CAN_F4R1_FB12_Msk (0x1UL << CAN_F4R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6697 | #define CAN_F4R1_FB12 CAN_F4R1_FB12_Msk /*!< Filter bit 12 */ |
6698 | #define CAN_F4R1_FB13_Pos (13U) |
||
9 | mjames | 6699 | #define CAN_F4R1_FB13_Msk (0x1UL << CAN_F4R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6700 | #define CAN_F4R1_FB13 CAN_F4R1_FB13_Msk /*!< Filter bit 13 */ |
6701 | #define CAN_F4R1_FB14_Pos (14U) |
||
9 | mjames | 6702 | #define CAN_F4R1_FB14_Msk (0x1UL << CAN_F4R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 6703 | #define CAN_F4R1_FB14 CAN_F4R1_FB14_Msk /*!< Filter bit 14 */ |
6704 | #define CAN_F4R1_FB15_Pos (15U) |
||
9 | mjames | 6705 | #define CAN_F4R1_FB15_Msk (0x1UL << CAN_F4R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 6706 | #define CAN_F4R1_FB15 CAN_F4R1_FB15_Msk /*!< Filter bit 15 */ |
6707 | #define CAN_F4R1_FB16_Pos (16U) |
||
9 | mjames | 6708 | #define CAN_F4R1_FB16_Msk (0x1UL << CAN_F4R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 6709 | #define CAN_F4R1_FB16 CAN_F4R1_FB16_Msk /*!< Filter bit 16 */ |
6710 | #define CAN_F4R1_FB17_Pos (17U) |
||
9 | mjames | 6711 | #define CAN_F4R1_FB17_Msk (0x1UL << CAN_F4R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 6712 | #define CAN_F4R1_FB17 CAN_F4R1_FB17_Msk /*!< Filter bit 17 */ |
6713 | #define CAN_F4R1_FB18_Pos (18U) |
||
9 | mjames | 6714 | #define CAN_F4R1_FB18_Msk (0x1UL << CAN_F4R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 6715 | #define CAN_F4R1_FB18 CAN_F4R1_FB18_Msk /*!< Filter bit 18 */ |
6716 | #define CAN_F4R1_FB19_Pos (19U) |
||
9 | mjames | 6717 | #define CAN_F4R1_FB19_Msk (0x1UL << CAN_F4R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 6718 | #define CAN_F4R1_FB19 CAN_F4R1_FB19_Msk /*!< Filter bit 19 */ |
6719 | #define CAN_F4R1_FB20_Pos (20U) |
||
9 | mjames | 6720 | #define CAN_F4R1_FB20_Msk (0x1UL << CAN_F4R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 6721 | #define CAN_F4R1_FB20 CAN_F4R1_FB20_Msk /*!< Filter bit 20 */ |
6722 | #define CAN_F4R1_FB21_Pos (21U) |
||
9 | mjames | 6723 | #define CAN_F4R1_FB21_Msk (0x1UL << CAN_F4R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 6724 | #define CAN_F4R1_FB21 CAN_F4R1_FB21_Msk /*!< Filter bit 21 */ |
6725 | #define CAN_F4R1_FB22_Pos (22U) |
||
9 | mjames | 6726 | #define CAN_F4R1_FB22_Msk (0x1UL << CAN_F4R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 6727 | #define CAN_F4R1_FB22 CAN_F4R1_FB22_Msk /*!< Filter bit 22 */ |
6728 | #define CAN_F4R1_FB23_Pos (23U) |
||
9 | mjames | 6729 | #define CAN_F4R1_FB23_Msk (0x1UL << CAN_F4R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 6730 | #define CAN_F4R1_FB23 CAN_F4R1_FB23_Msk /*!< Filter bit 23 */ |
6731 | #define CAN_F4R1_FB24_Pos (24U) |
||
9 | mjames | 6732 | #define CAN_F4R1_FB24_Msk (0x1UL << CAN_F4R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 6733 | #define CAN_F4R1_FB24 CAN_F4R1_FB24_Msk /*!< Filter bit 24 */ |
6734 | #define CAN_F4R1_FB25_Pos (25U) |
||
9 | mjames | 6735 | #define CAN_F4R1_FB25_Msk (0x1UL << CAN_F4R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 6736 | #define CAN_F4R1_FB25 CAN_F4R1_FB25_Msk /*!< Filter bit 25 */ |
6737 | #define CAN_F4R1_FB26_Pos (26U) |
||
9 | mjames | 6738 | #define CAN_F4R1_FB26_Msk (0x1UL << CAN_F4R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 6739 | #define CAN_F4R1_FB26 CAN_F4R1_FB26_Msk /*!< Filter bit 26 */ |
6740 | #define CAN_F4R1_FB27_Pos (27U) |
||
9 | mjames | 6741 | #define CAN_F4R1_FB27_Msk (0x1UL << CAN_F4R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 6742 | #define CAN_F4R1_FB27 CAN_F4R1_FB27_Msk /*!< Filter bit 27 */ |
6743 | #define CAN_F4R1_FB28_Pos (28U) |
||
9 | mjames | 6744 | #define CAN_F4R1_FB28_Msk (0x1UL << CAN_F4R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 6745 | #define CAN_F4R1_FB28 CAN_F4R1_FB28_Msk /*!< Filter bit 28 */ |
6746 | #define CAN_F4R1_FB29_Pos (29U) |
||
9 | mjames | 6747 | #define CAN_F4R1_FB29_Msk (0x1UL << CAN_F4R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 6748 | #define CAN_F4R1_FB29 CAN_F4R1_FB29_Msk /*!< Filter bit 29 */ |
6749 | #define CAN_F4R1_FB30_Pos (30U) |
||
9 | mjames | 6750 | #define CAN_F4R1_FB30_Msk (0x1UL << CAN_F4R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 6751 | #define CAN_F4R1_FB30 CAN_F4R1_FB30_Msk /*!< Filter bit 30 */ |
6752 | #define CAN_F4R1_FB31_Pos (31U) |
||
9 | mjames | 6753 | #define CAN_F4R1_FB31_Msk (0x1UL << CAN_F4R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 6754 | #define CAN_F4R1_FB31 CAN_F4R1_FB31_Msk /*!< Filter bit 31 */ |
6755 | |||
6756 | /******************* Bit definition for CAN_F5R1 register *******************/ |
||
6757 | #define CAN_F5R1_FB0_Pos (0U) |
||
9 | mjames | 6758 | #define CAN_F5R1_FB0_Msk (0x1UL << CAN_F5R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6759 | #define CAN_F5R1_FB0 CAN_F5R1_FB0_Msk /*!< Filter bit 0 */ |
6760 | #define CAN_F5R1_FB1_Pos (1U) |
||
9 | mjames | 6761 | #define CAN_F5R1_FB1_Msk (0x1UL << CAN_F5R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6762 | #define CAN_F5R1_FB1 CAN_F5R1_FB1_Msk /*!< Filter bit 1 */ |
6763 | #define CAN_F5R1_FB2_Pos (2U) |
||
9 | mjames | 6764 | #define CAN_F5R1_FB2_Msk (0x1UL << CAN_F5R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6765 | #define CAN_F5R1_FB2 CAN_F5R1_FB2_Msk /*!< Filter bit 2 */ |
6766 | #define CAN_F5R1_FB3_Pos (3U) |
||
9 | mjames | 6767 | #define CAN_F5R1_FB3_Msk (0x1UL << CAN_F5R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6768 | #define CAN_F5R1_FB3 CAN_F5R1_FB3_Msk /*!< Filter bit 3 */ |
6769 | #define CAN_F5R1_FB4_Pos (4U) |
||
9 | mjames | 6770 | #define CAN_F5R1_FB4_Msk (0x1UL << CAN_F5R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6771 | #define CAN_F5R1_FB4 CAN_F5R1_FB4_Msk /*!< Filter bit 4 */ |
6772 | #define CAN_F5R1_FB5_Pos (5U) |
||
9 | mjames | 6773 | #define CAN_F5R1_FB5_Msk (0x1UL << CAN_F5R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6774 | #define CAN_F5R1_FB5 CAN_F5R1_FB5_Msk /*!< Filter bit 5 */ |
6775 | #define CAN_F5R1_FB6_Pos (6U) |
||
9 | mjames | 6776 | #define CAN_F5R1_FB6_Msk (0x1UL << CAN_F5R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6777 | #define CAN_F5R1_FB6 CAN_F5R1_FB6_Msk /*!< Filter bit 6 */ |
6778 | #define CAN_F5R1_FB7_Pos (7U) |
||
9 | mjames | 6779 | #define CAN_F5R1_FB7_Msk (0x1UL << CAN_F5R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6780 | #define CAN_F5R1_FB7 CAN_F5R1_FB7_Msk /*!< Filter bit 7 */ |
6781 | #define CAN_F5R1_FB8_Pos (8U) |
||
9 | mjames | 6782 | #define CAN_F5R1_FB8_Msk (0x1UL << CAN_F5R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6783 | #define CAN_F5R1_FB8 CAN_F5R1_FB8_Msk /*!< Filter bit 8 */ |
6784 | #define CAN_F5R1_FB9_Pos (9U) |
||
9 | mjames | 6785 | #define CAN_F5R1_FB9_Msk (0x1UL << CAN_F5R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6786 | #define CAN_F5R1_FB9 CAN_F5R1_FB9_Msk /*!< Filter bit 9 */ |
6787 | #define CAN_F5R1_FB10_Pos (10U) |
||
9 | mjames | 6788 | #define CAN_F5R1_FB10_Msk (0x1UL << CAN_F5R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6789 | #define CAN_F5R1_FB10 CAN_F5R1_FB10_Msk /*!< Filter bit 10 */ |
6790 | #define CAN_F5R1_FB11_Pos (11U) |
||
9 | mjames | 6791 | #define CAN_F5R1_FB11_Msk (0x1UL << CAN_F5R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6792 | #define CAN_F5R1_FB11 CAN_F5R1_FB11_Msk /*!< Filter bit 11 */ |
6793 | #define CAN_F5R1_FB12_Pos (12U) |
||
9 | mjames | 6794 | #define CAN_F5R1_FB12_Msk (0x1UL << CAN_F5R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6795 | #define CAN_F5R1_FB12 CAN_F5R1_FB12_Msk /*!< Filter bit 12 */ |
6796 | #define CAN_F5R1_FB13_Pos (13U) |
||
9 | mjames | 6797 | #define CAN_F5R1_FB13_Msk (0x1UL << CAN_F5R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6798 | #define CAN_F5R1_FB13 CAN_F5R1_FB13_Msk /*!< Filter bit 13 */ |
6799 | #define CAN_F5R1_FB14_Pos (14U) |
||
9 | mjames | 6800 | #define CAN_F5R1_FB14_Msk (0x1UL << CAN_F5R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 6801 | #define CAN_F5R1_FB14 CAN_F5R1_FB14_Msk /*!< Filter bit 14 */ |
6802 | #define CAN_F5R1_FB15_Pos (15U) |
||
9 | mjames | 6803 | #define CAN_F5R1_FB15_Msk (0x1UL << CAN_F5R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 6804 | #define CAN_F5R1_FB15 CAN_F5R1_FB15_Msk /*!< Filter bit 15 */ |
6805 | #define CAN_F5R1_FB16_Pos (16U) |
||
9 | mjames | 6806 | #define CAN_F5R1_FB16_Msk (0x1UL << CAN_F5R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 6807 | #define CAN_F5R1_FB16 CAN_F5R1_FB16_Msk /*!< Filter bit 16 */ |
6808 | #define CAN_F5R1_FB17_Pos (17U) |
||
9 | mjames | 6809 | #define CAN_F5R1_FB17_Msk (0x1UL << CAN_F5R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 6810 | #define CAN_F5R1_FB17 CAN_F5R1_FB17_Msk /*!< Filter bit 17 */ |
6811 | #define CAN_F5R1_FB18_Pos (18U) |
||
9 | mjames | 6812 | #define CAN_F5R1_FB18_Msk (0x1UL << CAN_F5R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 6813 | #define CAN_F5R1_FB18 CAN_F5R1_FB18_Msk /*!< Filter bit 18 */ |
6814 | #define CAN_F5R1_FB19_Pos (19U) |
||
9 | mjames | 6815 | #define CAN_F5R1_FB19_Msk (0x1UL << CAN_F5R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 6816 | #define CAN_F5R1_FB19 CAN_F5R1_FB19_Msk /*!< Filter bit 19 */ |
6817 | #define CAN_F5R1_FB20_Pos (20U) |
||
9 | mjames | 6818 | #define CAN_F5R1_FB20_Msk (0x1UL << CAN_F5R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 6819 | #define CAN_F5R1_FB20 CAN_F5R1_FB20_Msk /*!< Filter bit 20 */ |
6820 | #define CAN_F5R1_FB21_Pos (21U) |
||
9 | mjames | 6821 | #define CAN_F5R1_FB21_Msk (0x1UL << CAN_F5R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 6822 | #define CAN_F5R1_FB21 CAN_F5R1_FB21_Msk /*!< Filter bit 21 */ |
6823 | #define CAN_F5R1_FB22_Pos (22U) |
||
9 | mjames | 6824 | #define CAN_F5R1_FB22_Msk (0x1UL << CAN_F5R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 6825 | #define CAN_F5R1_FB22 CAN_F5R1_FB22_Msk /*!< Filter bit 22 */ |
6826 | #define CAN_F5R1_FB23_Pos (23U) |
||
9 | mjames | 6827 | #define CAN_F5R1_FB23_Msk (0x1UL << CAN_F5R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 6828 | #define CAN_F5R1_FB23 CAN_F5R1_FB23_Msk /*!< Filter bit 23 */ |
6829 | #define CAN_F5R1_FB24_Pos (24U) |
||
9 | mjames | 6830 | #define CAN_F5R1_FB24_Msk (0x1UL << CAN_F5R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 6831 | #define CAN_F5R1_FB24 CAN_F5R1_FB24_Msk /*!< Filter bit 24 */ |
6832 | #define CAN_F5R1_FB25_Pos (25U) |
||
9 | mjames | 6833 | #define CAN_F5R1_FB25_Msk (0x1UL << CAN_F5R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 6834 | #define CAN_F5R1_FB25 CAN_F5R1_FB25_Msk /*!< Filter bit 25 */ |
6835 | #define CAN_F5R1_FB26_Pos (26U) |
||
9 | mjames | 6836 | #define CAN_F5R1_FB26_Msk (0x1UL << CAN_F5R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 6837 | #define CAN_F5R1_FB26 CAN_F5R1_FB26_Msk /*!< Filter bit 26 */ |
6838 | #define CAN_F5R1_FB27_Pos (27U) |
||
9 | mjames | 6839 | #define CAN_F5R1_FB27_Msk (0x1UL << CAN_F5R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 6840 | #define CAN_F5R1_FB27 CAN_F5R1_FB27_Msk /*!< Filter bit 27 */ |
6841 | #define CAN_F5R1_FB28_Pos (28U) |
||
9 | mjames | 6842 | #define CAN_F5R1_FB28_Msk (0x1UL << CAN_F5R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 6843 | #define CAN_F5R1_FB28 CAN_F5R1_FB28_Msk /*!< Filter bit 28 */ |
6844 | #define CAN_F5R1_FB29_Pos (29U) |
||
9 | mjames | 6845 | #define CAN_F5R1_FB29_Msk (0x1UL << CAN_F5R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 6846 | #define CAN_F5R1_FB29 CAN_F5R1_FB29_Msk /*!< Filter bit 29 */ |
6847 | #define CAN_F5R1_FB30_Pos (30U) |
||
9 | mjames | 6848 | #define CAN_F5R1_FB30_Msk (0x1UL << CAN_F5R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 6849 | #define CAN_F5R1_FB30 CAN_F5R1_FB30_Msk /*!< Filter bit 30 */ |
6850 | #define CAN_F5R1_FB31_Pos (31U) |
||
9 | mjames | 6851 | #define CAN_F5R1_FB31_Msk (0x1UL << CAN_F5R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 6852 | #define CAN_F5R1_FB31 CAN_F5R1_FB31_Msk /*!< Filter bit 31 */ |
6853 | |||
6854 | /******************* Bit definition for CAN_F6R1 register *******************/ |
||
6855 | #define CAN_F6R1_FB0_Pos (0U) |
||
9 | mjames | 6856 | #define CAN_F6R1_FB0_Msk (0x1UL << CAN_F6R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6857 | #define CAN_F6R1_FB0 CAN_F6R1_FB0_Msk /*!< Filter bit 0 */ |
6858 | #define CAN_F6R1_FB1_Pos (1U) |
||
9 | mjames | 6859 | #define CAN_F6R1_FB1_Msk (0x1UL << CAN_F6R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6860 | #define CAN_F6R1_FB1 CAN_F6R1_FB1_Msk /*!< Filter bit 1 */ |
6861 | #define CAN_F6R1_FB2_Pos (2U) |
||
9 | mjames | 6862 | #define CAN_F6R1_FB2_Msk (0x1UL << CAN_F6R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6863 | #define CAN_F6R1_FB2 CAN_F6R1_FB2_Msk /*!< Filter bit 2 */ |
6864 | #define CAN_F6R1_FB3_Pos (3U) |
||
9 | mjames | 6865 | #define CAN_F6R1_FB3_Msk (0x1UL << CAN_F6R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6866 | #define CAN_F6R1_FB3 CAN_F6R1_FB3_Msk /*!< Filter bit 3 */ |
6867 | #define CAN_F6R1_FB4_Pos (4U) |
||
9 | mjames | 6868 | #define CAN_F6R1_FB4_Msk (0x1UL << CAN_F6R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6869 | #define CAN_F6R1_FB4 CAN_F6R1_FB4_Msk /*!< Filter bit 4 */ |
6870 | #define CAN_F6R1_FB5_Pos (5U) |
||
9 | mjames | 6871 | #define CAN_F6R1_FB5_Msk (0x1UL << CAN_F6R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6872 | #define CAN_F6R1_FB5 CAN_F6R1_FB5_Msk /*!< Filter bit 5 */ |
6873 | #define CAN_F6R1_FB6_Pos (6U) |
||
9 | mjames | 6874 | #define CAN_F6R1_FB6_Msk (0x1UL << CAN_F6R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6875 | #define CAN_F6R1_FB6 CAN_F6R1_FB6_Msk /*!< Filter bit 6 */ |
6876 | #define CAN_F6R1_FB7_Pos (7U) |
||
9 | mjames | 6877 | #define CAN_F6R1_FB7_Msk (0x1UL << CAN_F6R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6878 | #define CAN_F6R1_FB7 CAN_F6R1_FB7_Msk /*!< Filter bit 7 */ |
6879 | #define CAN_F6R1_FB8_Pos (8U) |
||
9 | mjames | 6880 | #define CAN_F6R1_FB8_Msk (0x1UL << CAN_F6R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6881 | #define CAN_F6R1_FB8 CAN_F6R1_FB8_Msk /*!< Filter bit 8 */ |
6882 | #define CAN_F6R1_FB9_Pos (9U) |
||
9 | mjames | 6883 | #define CAN_F6R1_FB9_Msk (0x1UL << CAN_F6R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6884 | #define CAN_F6R1_FB9 CAN_F6R1_FB9_Msk /*!< Filter bit 9 */ |
6885 | #define CAN_F6R1_FB10_Pos (10U) |
||
9 | mjames | 6886 | #define CAN_F6R1_FB10_Msk (0x1UL << CAN_F6R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6887 | #define CAN_F6R1_FB10 CAN_F6R1_FB10_Msk /*!< Filter bit 10 */ |
6888 | #define CAN_F6R1_FB11_Pos (11U) |
||
9 | mjames | 6889 | #define CAN_F6R1_FB11_Msk (0x1UL << CAN_F6R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6890 | #define CAN_F6R1_FB11 CAN_F6R1_FB11_Msk /*!< Filter bit 11 */ |
6891 | #define CAN_F6R1_FB12_Pos (12U) |
||
9 | mjames | 6892 | #define CAN_F6R1_FB12_Msk (0x1UL << CAN_F6R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6893 | #define CAN_F6R1_FB12 CAN_F6R1_FB12_Msk /*!< Filter bit 12 */ |
6894 | #define CAN_F6R1_FB13_Pos (13U) |
||
9 | mjames | 6895 | #define CAN_F6R1_FB13_Msk (0x1UL << CAN_F6R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6896 | #define CAN_F6R1_FB13 CAN_F6R1_FB13_Msk /*!< Filter bit 13 */ |
6897 | #define CAN_F6R1_FB14_Pos (14U) |
||
9 | mjames | 6898 | #define CAN_F6R1_FB14_Msk (0x1UL << CAN_F6R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 6899 | #define CAN_F6R1_FB14 CAN_F6R1_FB14_Msk /*!< Filter bit 14 */ |
6900 | #define CAN_F6R1_FB15_Pos (15U) |
||
9 | mjames | 6901 | #define CAN_F6R1_FB15_Msk (0x1UL << CAN_F6R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 6902 | #define CAN_F6R1_FB15 CAN_F6R1_FB15_Msk /*!< Filter bit 15 */ |
6903 | #define CAN_F6R1_FB16_Pos (16U) |
||
9 | mjames | 6904 | #define CAN_F6R1_FB16_Msk (0x1UL << CAN_F6R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 6905 | #define CAN_F6R1_FB16 CAN_F6R1_FB16_Msk /*!< Filter bit 16 */ |
6906 | #define CAN_F6R1_FB17_Pos (17U) |
||
9 | mjames | 6907 | #define CAN_F6R1_FB17_Msk (0x1UL << CAN_F6R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 6908 | #define CAN_F6R1_FB17 CAN_F6R1_FB17_Msk /*!< Filter bit 17 */ |
6909 | #define CAN_F6R1_FB18_Pos (18U) |
||
9 | mjames | 6910 | #define CAN_F6R1_FB18_Msk (0x1UL << CAN_F6R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 6911 | #define CAN_F6R1_FB18 CAN_F6R1_FB18_Msk /*!< Filter bit 18 */ |
6912 | #define CAN_F6R1_FB19_Pos (19U) |
||
9 | mjames | 6913 | #define CAN_F6R1_FB19_Msk (0x1UL << CAN_F6R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 6914 | #define CAN_F6R1_FB19 CAN_F6R1_FB19_Msk /*!< Filter bit 19 */ |
6915 | #define CAN_F6R1_FB20_Pos (20U) |
||
9 | mjames | 6916 | #define CAN_F6R1_FB20_Msk (0x1UL << CAN_F6R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 6917 | #define CAN_F6R1_FB20 CAN_F6R1_FB20_Msk /*!< Filter bit 20 */ |
6918 | #define CAN_F6R1_FB21_Pos (21U) |
||
9 | mjames | 6919 | #define CAN_F6R1_FB21_Msk (0x1UL << CAN_F6R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 6920 | #define CAN_F6R1_FB21 CAN_F6R1_FB21_Msk /*!< Filter bit 21 */ |
6921 | #define CAN_F6R1_FB22_Pos (22U) |
||
9 | mjames | 6922 | #define CAN_F6R1_FB22_Msk (0x1UL << CAN_F6R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 6923 | #define CAN_F6R1_FB22 CAN_F6R1_FB22_Msk /*!< Filter bit 22 */ |
6924 | #define CAN_F6R1_FB23_Pos (23U) |
||
9 | mjames | 6925 | #define CAN_F6R1_FB23_Msk (0x1UL << CAN_F6R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 6926 | #define CAN_F6R1_FB23 CAN_F6R1_FB23_Msk /*!< Filter bit 23 */ |
6927 | #define CAN_F6R1_FB24_Pos (24U) |
||
9 | mjames | 6928 | #define CAN_F6R1_FB24_Msk (0x1UL << CAN_F6R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 6929 | #define CAN_F6R1_FB24 CAN_F6R1_FB24_Msk /*!< Filter bit 24 */ |
6930 | #define CAN_F6R1_FB25_Pos (25U) |
||
9 | mjames | 6931 | #define CAN_F6R1_FB25_Msk (0x1UL << CAN_F6R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 6932 | #define CAN_F6R1_FB25 CAN_F6R1_FB25_Msk /*!< Filter bit 25 */ |
6933 | #define CAN_F6R1_FB26_Pos (26U) |
||
9 | mjames | 6934 | #define CAN_F6R1_FB26_Msk (0x1UL << CAN_F6R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 6935 | #define CAN_F6R1_FB26 CAN_F6R1_FB26_Msk /*!< Filter bit 26 */ |
6936 | #define CAN_F6R1_FB27_Pos (27U) |
||
9 | mjames | 6937 | #define CAN_F6R1_FB27_Msk (0x1UL << CAN_F6R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 6938 | #define CAN_F6R1_FB27 CAN_F6R1_FB27_Msk /*!< Filter bit 27 */ |
6939 | #define CAN_F6R1_FB28_Pos (28U) |
||
9 | mjames | 6940 | #define CAN_F6R1_FB28_Msk (0x1UL << CAN_F6R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 6941 | #define CAN_F6R1_FB28 CAN_F6R1_FB28_Msk /*!< Filter bit 28 */ |
6942 | #define CAN_F6R1_FB29_Pos (29U) |
||
9 | mjames | 6943 | #define CAN_F6R1_FB29_Msk (0x1UL << CAN_F6R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 6944 | #define CAN_F6R1_FB29 CAN_F6R1_FB29_Msk /*!< Filter bit 29 */ |
6945 | #define CAN_F6R1_FB30_Pos (30U) |
||
9 | mjames | 6946 | #define CAN_F6R1_FB30_Msk (0x1UL << CAN_F6R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 6947 | #define CAN_F6R1_FB30 CAN_F6R1_FB30_Msk /*!< Filter bit 30 */ |
6948 | #define CAN_F6R1_FB31_Pos (31U) |
||
9 | mjames | 6949 | #define CAN_F6R1_FB31_Msk (0x1UL << CAN_F6R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 6950 | #define CAN_F6R1_FB31 CAN_F6R1_FB31_Msk /*!< Filter bit 31 */ |
6951 | |||
6952 | /******************* Bit definition for CAN_F7R1 register *******************/ |
||
6953 | #define CAN_F7R1_FB0_Pos (0U) |
||
9 | mjames | 6954 | #define CAN_F7R1_FB0_Msk (0x1UL << CAN_F7R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 6955 | #define CAN_F7R1_FB0 CAN_F7R1_FB0_Msk /*!< Filter bit 0 */ |
6956 | #define CAN_F7R1_FB1_Pos (1U) |
||
9 | mjames | 6957 | #define CAN_F7R1_FB1_Msk (0x1UL << CAN_F7R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 6958 | #define CAN_F7R1_FB1 CAN_F7R1_FB1_Msk /*!< Filter bit 1 */ |
6959 | #define CAN_F7R1_FB2_Pos (2U) |
||
9 | mjames | 6960 | #define CAN_F7R1_FB2_Msk (0x1UL << CAN_F7R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 6961 | #define CAN_F7R1_FB2 CAN_F7R1_FB2_Msk /*!< Filter bit 2 */ |
6962 | #define CAN_F7R1_FB3_Pos (3U) |
||
9 | mjames | 6963 | #define CAN_F7R1_FB3_Msk (0x1UL << CAN_F7R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 6964 | #define CAN_F7R1_FB3 CAN_F7R1_FB3_Msk /*!< Filter bit 3 */ |
6965 | #define CAN_F7R1_FB4_Pos (4U) |
||
9 | mjames | 6966 | #define CAN_F7R1_FB4_Msk (0x1UL << CAN_F7R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 6967 | #define CAN_F7R1_FB4 CAN_F7R1_FB4_Msk /*!< Filter bit 4 */ |
6968 | #define CAN_F7R1_FB5_Pos (5U) |
||
9 | mjames | 6969 | #define CAN_F7R1_FB5_Msk (0x1UL << CAN_F7R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 6970 | #define CAN_F7R1_FB5 CAN_F7R1_FB5_Msk /*!< Filter bit 5 */ |
6971 | #define CAN_F7R1_FB6_Pos (6U) |
||
9 | mjames | 6972 | #define CAN_F7R1_FB6_Msk (0x1UL << CAN_F7R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 6973 | #define CAN_F7R1_FB6 CAN_F7R1_FB6_Msk /*!< Filter bit 6 */ |
6974 | #define CAN_F7R1_FB7_Pos (7U) |
||
9 | mjames | 6975 | #define CAN_F7R1_FB7_Msk (0x1UL << CAN_F7R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 6976 | #define CAN_F7R1_FB7 CAN_F7R1_FB7_Msk /*!< Filter bit 7 */ |
6977 | #define CAN_F7R1_FB8_Pos (8U) |
||
9 | mjames | 6978 | #define CAN_F7R1_FB8_Msk (0x1UL << CAN_F7R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 6979 | #define CAN_F7R1_FB8 CAN_F7R1_FB8_Msk /*!< Filter bit 8 */ |
6980 | #define CAN_F7R1_FB9_Pos (9U) |
||
9 | mjames | 6981 | #define CAN_F7R1_FB9_Msk (0x1UL << CAN_F7R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 6982 | #define CAN_F7R1_FB9 CAN_F7R1_FB9_Msk /*!< Filter bit 9 */ |
6983 | #define CAN_F7R1_FB10_Pos (10U) |
||
9 | mjames | 6984 | #define CAN_F7R1_FB10_Msk (0x1UL << CAN_F7R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 6985 | #define CAN_F7R1_FB10 CAN_F7R1_FB10_Msk /*!< Filter bit 10 */ |
6986 | #define CAN_F7R1_FB11_Pos (11U) |
||
9 | mjames | 6987 | #define CAN_F7R1_FB11_Msk (0x1UL << CAN_F7R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 6988 | #define CAN_F7R1_FB11 CAN_F7R1_FB11_Msk /*!< Filter bit 11 */ |
6989 | #define CAN_F7R1_FB12_Pos (12U) |
||
9 | mjames | 6990 | #define CAN_F7R1_FB12_Msk (0x1UL << CAN_F7R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 6991 | #define CAN_F7R1_FB12 CAN_F7R1_FB12_Msk /*!< Filter bit 12 */ |
6992 | #define CAN_F7R1_FB13_Pos (13U) |
||
9 | mjames | 6993 | #define CAN_F7R1_FB13_Msk (0x1UL << CAN_F7R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 6994 | #define CAN_F7R1_FB13 CAN_F7R1_FB13_Msk /*!< Filter bit 13 */ |
6995 | #define CAN_F7R1_FB14_Pos (14U) |
||
9 | mjames | 6996 | #define CAN_F7R1_FB14_Msk (0x1UL << CAN_F7R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 6997 | #define CAN_F7R1_FB14 CAN_F7R1_FB14_Msk /*!< Filter bit 14 */ |
6998 | #define CAN_F7R1_FB15_Pos (15U) |
||
9 | mjames | 6999 | #define CAN_F7R1_FB15_Msk (0x1UL << CAN_F7R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7000 | #define CAN_F7R1_FB15 CAN_F7R1_FB15_Msk /*!< Filter bit 15 */ |
7001 | #define CAN_F7R1_FB16_Pos (16U) |
||
9 | mjames | 7002 | #define CAN_F7R1_FB16_Msk (0x1UL << CAN_F7R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7003 | #define CAN_F7R1_FB16 CAN_F7R1_FB16_Msk /*!< Filter bit 16 */ |
7004 | #define CAN_F7R1_FB17_Pos (17U) |
||
9 | mjames | 7005 | #define CAN_F7R1_FB17_Msk (0x1UL << CAN_F7R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7006 | #define CAN_F7R1_FB17 CAN_F7R1_FB17_Msk /*!< Filter bit 17 */ |
7007 | #define CAN_F7R1_FB18_Pos (18U) |
||
9 | mjames | 7008 | #define CAN_F7R1_FB18_Msk (0x1UL << CAN_F7R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7009 | #define CAN_F7R1_FB18 CAN_F7R1_FB18_Msk /*!< Filter bit 18 */ |
7010 | #define CAN_F7R1_FB19_Pos (19U) |
||
9 | mjames | 7011 | #define CAN_F7R1_FB19_Msk (0x1UL << CAN_F7R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7012 | #define CAN_F7R1_FB19 CAN_F7R1_FB19_Msk /*!< Filter bit 19 */ |
7013 | #define CAN_F7R1_FB20_Pos (20U) |
||
9 | mjames | 7014 | #define CAN_F7R1_FB20_Msk (0x1UL << CAN_F7R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7015 | #define CAN_F7R1_FB20 CAN_F7R1_FB20_Msk /*!< Filter bit 20 */ |
7016 | #define CAN_F7R1_FB21_Pos (21U) |
||
9 | mjames | 7017 | #define CAN_F7R1_FB21_Msk (0x1UL << CAN_F7R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7018 | #define CAN_F7R1_FB21 CAN_F7R1_FB21_Msk /*!< Filter bit 21 */ |
7019 | #define CAN_F7R1_FB22_Pos (22U) |
||
9 | mjames | 7020 | #define CAN_F7R1_FB22_Msk (0x1UL << CAN_F7R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7021 | #define CAN_F7R1_FB22 CAN_F7R1_FB22_Msk /*!< Filter bit 22 */ |
7022 | #define CAN_F7R1_FB23_Pos (23U) |
||
9 | mjames | 7023 | #define CAN_F7R1_FB23_Msk (0x1UL << CAN_F7R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7024 | #define CAN_F7R1_FB23 CAN_F7R1_FB23_Msk /*!< Filter bit 23 */ |
7025 | #define CAN_F7R1_FB24_Pos (24U) |
||
9 | mjames | 7026 | #define CAN_F7R1_FB24_Msk (0x1UL << CAN_F7R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7027 | #define CAN_F7R1_FB24 CAN_F7R1_FB24_Msk /*!< Filter bit 24 */ |
7028 | #define CAN_F7R1_FB25_Pos (25U) |
||
9 | mjames | 7029 | #define CAN_F7R1_FB25_Msk (0x1UL << CAN_F7R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7030 | #define CAN_F7R1_FB25 CAN_F7R1_FB25_Msk /*!< Filter bit 25 */ |
7031 | #define CAN_F7R1_FB26_Pos (26U) |
||
9 | mjames | 7032 | #define CAN_F7R1_FB26_Msk (0x1UL << CAN_F7R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7033 | #define CAN_F7R1_FB26 CAN_F7R1_FB26_Msk /*!< Filter bit 26 */ |
7034 | #define CAN_F7R1_FB27_Pos (27U) |
||
9 | mjames | 7035 | #define CAN_F7R1_FB27_Msk (0x1UL << CAN_F7R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7036 | #define CAN_F7R1_FB27 CAN_F7R1_FB27_Msk /*!< Filter bit 27 */ |
7037 | #define CAN_F7R1_FB28_Pos (28U) |
||
9 | mjames | 7038 | #define CAN_F7R1_FB28_Msk (0x1UL << CAN_F7R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7039 | #define CAN_F7R1_FB28 CAN_F7R1_FB28_Msk /*!< Filter bit 28 */ |
7040 | #define CAN_F7R1_FB29_Pos (29U) |
||
9 | mjames | 7041 | #define CAN_F7R1_FB29_Msk (0x1UL << CAN_F7R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7042 | #define CAN_F7R1_FB29 CAN_F7R1_FB29_Msk /*!< Filter bit 29 */ |
7043 | #define CAN_F7R1_FB30_Pos (30U) |
||
9 | mjames | 7044 | #define CAN_F7R1_FB30_Msk (0x1UL << CAN_F7R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7045 | #define CAN_F7R1_FB30 CAN_F7R1_FB30_Msk /*!< Filter bit 30 */ |
7046 | #define CAN_F7R1_FB31_Pos (31U) |
||
9 | mjames | 7047 | #define CAN_F7R1_FB31_Msk (0x1UL << CAN_F7R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7048 | #define CAN_F7R1_FB31 CAN_F7R1_FB31_Msk /*!< Filter bit 31 */ |
7049 | |||
7050 | /******************* Bit definition for CAN_F8R1 register *******************/ |
||
7051 | #define CAN_F8R1_FB0_Pos (0U) |
||
9 | mjames | 7052 | #define CAN_F8R1_FB0_Msk (0x1UL << CAN_F8R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7053 | #define CAN_F8R1_FB0 CAN_F8R1_FB0_Msk /*!< Filter bit 0 */ |
7054 | #define CAN_F8R1_FB1_Pos (1U) |
||
9 | mjames | 7055 | #define CAN_F8R1_FB1_Msk (0x1UL << CAN_F8R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7056 | #define CAN_F8R1_FB1 CAN_F8R1_FB1_Msk /*!< Filter bit 1 */ |
7057 | #define CAN_F8R1_FB2_Pos (2U) |
||
9 | mjames | 7058 | #define CAN_F8R1_FB2_Msk (0x1UL << CAN_F8R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7059 | #define CAN_F8R1_FB2 CAN_F8R1_FB2_Msk /*!< Filter bit 2 */ |
7060 | #define CAN_F8R1_FB3_Pos (3U) |
||
9 | mjames | 7061 | #define CAN_F8R1_FB3_Msk (0x1UL << CAN_F8R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7062 | #define CAN_F8R1_FB3 CAN_F8R1_FB3_Msk /*!< Filter bit 3 */ |
7063 | #define CAN_F8R1_FB4_Pos (4U) |
||
9 | mjames | 7064 | #define CAN_F8R1_FB4_Msk (0x1UL << CAN_F8R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7065 | #define CAN_F8R1_FB4 CAN_F8R1_FB4_Msk /*!< Filter bit 4 */ |
7066 | #define CAN_F8R1_FB5_Pos (5U) |
||
9 | mjames | 7067 | #define CAN_F8R1_FB5_Msk (0x1UL << CAN_F8R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7068 | #define CAN_F8R1_FB5 CAN_F8R1_FB5_Msk /*!< Filter bit 5 */ |
7069 | #define CAN_F8R1_FB6_Pos (6U) |
||
9 | mjames | 7070 | #define CAN_F8R1_FB6_Msk (0x1UL << CAN_F8R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7071 | #define CAN_F8R1_FB6 CAN_F8R1_FB6_Msk /*!< Filter bit 6 */ |
7072 | #define CAN_F8R1_FB7_Pos (7U) |
||
9 | mjames | 7073 | #define CAN_F8R1_FB7_Msk (0x1UL << CAN_F8R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7074 | #define CAN_F8R1_FB7 CAN_F8R1_FB7_Msk /*!< Filter bit 7 */ |
7075 | #define CAN_F8R1_FB8_Pos (8U) |
||
9 | mjames | 7076 | #define CAN_F8R1_FB8_Msk (0x1UL << CAN_F8R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7077 | #define CAN_F8R1_FB8 CAN_F8R1_FB8_Msk /*!< Filter bit 8 */ |
7078 | #define CAN_F8R1_FB9_Pos (9U) |
||
9 | mjames | 7079 | #define CAN_F8R1_FB9_Msk (0x1UL << CAN_F8R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7080 | #define CAN_F8R1_FB9 CAN_F8R1_FB9_Msk /*!< Filter bit 9 */ |
7081 | #define CAN_F8R1_FB10_Pos (10U) |
||
9 | mjames | 7082 | #define CAN_F8R1_FB10_Msk (0x1UL << CAN_F8R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7083 | #define CAN_F8R1_FB10 CAN_F8R1_FB10_Msk /*!< Filter bit 10 */ |
7084 | #define CAN_F8R1_FB11_Pos (11U) |
||
9 | mjames | 7085 | #define CAN_F8R1_FB11_Msk (0x1UL << CAN_F8R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7086 | #define CAN_F8R1_FB11 CAN_F8R1_FB11_Msk /*!< Filter bit 11 */ |
7087 | #define CAN_F8R1_FB12_Pos (12U) |
||
9 | mjames | 7088 | #define CAN_F8R1_FB12_Msk (0x1UL << CAN_F8R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7089 | #define CAN_F8R1_FB12 CAN_F8R1_FB12_Msk /*!< Filter bit 12 */ |
7090 | #define CAN_F8R1_FB13_Pos (13U) |
||
9 | mjames | 7091 | #define CAN_F8R1_FB13_Msk (0x1UL << CAN_F8R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7092 | #define CAN_F8R1_FB13 CAN_F8R1_FB13_Msk /*!< Filter bit 13 */ |
7093 | #define CAN_F8R1_FB14_Pos (14U) |
||
9 | mjames | 7094 | #define CAN_F8R1_FB14_Msk (0x1UL << CAN_F8R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7095 | #define CAN_F8R1_FB14 CAN_F8R1_FB14_Msk /*!< Filter bit 14 */ |
7096 | #define CAN_F8R1_FB15_Pos (15U) |
||
9 | mjames | 7097 | #define CAN_F8R1_FB15_Msk (0x1UL << CAN_F8R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7098 | #define CAN_F8R1_FB15 CAN_F8R1_FB15_Msk /*!< Filter bit 15 */ |
7099 | #define CAN_F8R1_FB16_Pos (16U) |
||
9 | mjames | 7100 | #define CAN_F8R1_FB16_Msk (0x1UL << CAN_F8R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7101 | #define CAN_F8R1_FB16 CAN_F8R1_FB16_Msk /*!< Filter bit 16 */ |
7102 | #define CAN_F8R1_FB17_Pos (17U) |
||
9 | mjames | 7103 | #define CAN_F8R1_FB17_Msk (0x1UL << CAN_F8R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7104 | #define CAN_F8R1_FB17 CAN_F8R1_FB17_Msk /*!< Filter bit 17 */ |
7105 | #define CAN_F8R1_FB18_Pos (18U) |
||
9 | mjames | 7106 | #define CAN_F8R1_FB18_Msk (0x1UL << CAN_F8R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7107 | #define CAN_F8R1_FB18 CAN_F8R1_FB18_Msk /*!< Filter bit 18 */ |
7108 | #define CAN_F8R1_FB19_Pos (19U) |
||
9 | mjames | 7109 | #define CAN_F8R1_FB19_Msk (0x1UL << CAN_F8R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7110 | #define CAN_F8R1_FB19 CAN_F8R1_FB19_Msk /*!< Filter bit 19 */ |
7111 | #define CAN_F8R1_FB20_Pos (20U) |
||
9 | mjames | 7112 | #define CAN_F8R1_FB20_Msk (0x1UL << CAN_F8R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7113 | #define CAN_F8R1_FB20 CAN_F8R1_FB20_Msk /*!< Filter bit 20 */ |
7114 | #define CAN_F8R1_FB21_Pos (21U) |
||
9 | mjames | 7115 | #define CAN_F8R1_FB21_Msk (0x1UL << CAN_F8R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7116 | #define CAN_F8R1_FB21 CAN_F8R1_FB21_Msk /*!< Filter bit 21 */ |
7117 | #define CAN_F8R1_FB22_Pos (22U) |
||
9 | mjames | 7118 | #define CAN_F8R1_FB22_Msk (0x1UL << CAN_F8R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7119 | #define CAN_F8R1_FB22 CAN_F8R1_FB22_Msk /*!< Filter bit 22 */ |
7120 | #define CAN_F8R1_FB23_Pos (23U) |
||
9 | mjames | 7121 | #define CAN_F8R1_FB23_Msk (0x1UL << CAN_F8R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7122 | #define CAN_F8R1_FB23 CAN_F8R1_FB23_Msk /*!< Filter bit 23 */ |
7123 | #define CAN_F8R1_FB24_Pos (24U) |
||
9 | mjames | 7124 | #define CAN_F8R1_FB24_Msk (0x1UL << CAN_F8R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7125 | #define CAN_F8R1_FB24 CAN_F8R1_FB24_Msk /*!< Filter bit 24 */ |
7126 | #define CAN_F8R1_FB25_Pos (25U) |
||
9 | mjames | 7127 | #define CAN_F8R1_FB25_Msk (0x1UL << CAN_F8R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7128 | #define CAN_F8R1_FB25 CAN_F8R1_FB25_Msk /*!< Filter bit 25 */ |
7129 | #define CAN_F8R1_FB26_Pos (26U) |
||
9 | mjames | 7130 | #define CAN_F8R1_FB26_Msk (0x1UL << CAN_F8R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7131 | #define CAN_F8R1_FB26 CAN_F8R1_FB26_Msk /*!< Filter bit 26 */ |
7132 | #define CAN_F8R1_FB27_Pos (27U) |
||
9 | mjames | 7133 | #define CAN_F8R1_FB27_Msk (0x1UL << CAN_F8R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7134 | #define CAN_F8R1_FB27 CAN_F8R1_FB27_Msk /*!< Filter bit 27 */ |
7135 | #define CAN_F8R1_FB28_Pos (28U) |
||
9 | mjames | 7136 | #define CAN_F8R1_FB28_Msk (0x1UL << CAN_F8R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7137 | #define CAN_F8R1_FB28 CAN_F8R1_FB28_Msk /*!< Filter bit 28 */ |
7138 | #define CAN_F8R1_FB29_Pos (29U) |
||
9 | mjames | 7139 | #define CAN_F8R1_FB29_Msk (0x1UL << CAN_F8R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7140 | #define CAN_F8R1_FB29 CAN_F8R1_FB29_Msk /*!< Filter bit 29 */ |
7141 | #define CAN_F8R1_FB30_Pos (30U) |
||
9 | mjames | 7142 | #define CAN_F8R1_FB30_Msk (0x1UL << CAN_F8R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7143 | #define CAN_F8R1_FB30 CAN_F8R1_FB30_Msk /*!< Filter bit 30 */ |
7144 | #define CAN_F8R1_FB31_Pos (31U) |
||
9 | mjames | 7145 | #define CAN_F8R1_FB31_Msk (0x1UL << CAN_F8R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7146 | #define CAN_F8R1_FB31 CAN_F8R1_FB31_Msk /*!< Filter bit 31 */ |
7147 | |||
7148 | /******************* Bit definition for CAN_F9R1 register *******************/ |
||
7149 | #define CAN_F9R1_FB0_Pos (0U) |
||
9 | mjames | 7150 | #define CAN_F9R1_FB0_Msk (0x1UL << CAN_F9R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7151 | #define CAN_F9R1_FB0 CAN_F9R1_FB0_Msk /*!< Filter bit 0 */ |
7152 | #define CAN_F9R1_FB1_Pos (1U) |
||
9 | mjames | 7153 | #define CAN_F9R1_FB1_Msk (0x1UL << CAN_F9R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7154 | #define CAN_F9R1_FB1 CAN_F9R1_FB1_Msk /*!< Filter bit 1 */ |
7155 | #define CAN_F9R1_FB2_Pos (2U) |
||
9 | mjames | 7156 | #define CAN_F9R1_FB2_Msk (0x1UL << CAN_F9R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7157 | #define CAN_F9R1_FB2 CAN_F9R1_FB2_Msk /*!< Filter bit 2 */ |
7158 | #define CAN_F9R1_FB3_Pos (3U) |
||
9 | mjames | 7159 | #define CAN_F9R1_FB3_Msk (0x1UL << CAN_F9R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7160 | #define CAN_F9R1_FB3 CAN_F9R1_FB3_Msk /*!< Filter bit 3 */ |
7161 | #define CAN_F9R1_FB4_Pos (4U) |
||
9 | mjames | 7162 | #define CAN_F9R1_FB4_Msk (0x1UL << CAN_F9R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7163 | #define CAN_F9R1_FB4 CAN_F9R1_FB4_Msk /*!< Filter bit 4 */ |
7164 | #define CAN_F9R1_FB5_Pos (5U) |
||
9 | mjames | 7165 | #define CAN_F9R1_FB5_Msk (0x1UL << CAN_F9R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7166 | #define CAN_F9R1_FB5 CAN_F9R1_FB5_Msk /*!< Filter bit 5 */ |
7167 | #define CAN_F9R1_FB6_Pos (6U) |
||
9 | mjames | 7168 | #define CAN_F9R1_FB6_Msk (0x1UL << CAN_F9R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7169 | #define CAN_F9R1_FB6 CAN_F9R1_FB6_Msk /*!< Filter bit 6 */ |
7170 | #define CAN_F9R1_FB7_Pos (7U) |
||
9 | mjames | 7171 | #define CAN_F9R1_FB7_Msk (0x1UL << CAN_F9R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7172 | #define CAN_F9R1_FB7 CAN_F9R1_FB7_Msk /*!< Filter bit 7 */ |
7173 | #define CAN_F9R1_FB8_Pos (8U) |
||
9 | mjames | 7174 | #define CAN_F9R1_FB8_Msk (0x1UL << CAN_F9R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7175 | #define CAN_F9R1_FB8 CAN_F9R1_FB8_Msk /*!< Filter bit 8 */ |
7176 | #define CAN_F9R1_FB9_Pos (9U) |
||
9 | mjames | 7177 | #define CAN_F9R1_FB9_Msk (0x1UL << CAN_F9R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7178 | #define CAN_F9R1_FB9 CAN_F9R1_FB9_Msk /*!< Filter bit 9 */ |
7179 | #define CAN_F9R1_FB10_Pos (10U) |
||
9 | mjames | 7180 | #define CAN_F9R1_FB10_Msk (0x1UL << CAN_F9R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7181 | #define CAN_F9R1_FB10 CAN_F9R1_FB10_Msk /*!< Filter bit 10 */ |
7182 | #define CAN_F9R1_FB11_Pos (11U) |
||
9 | mjames | 7183 | #define CAN_F9R1_FB11_Msk (0x1UL << CAN_F9R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7184 | #define CAN_F9R1_FB11 CAN_F9R1_FB11_Msk /*!< Filter bit 11 */ |
7185 | #define CAN_F9R1_FB12_Pos (12U) |
||
9 | mjames | 7186 | #define CAN_F9R1_FB12_Msk (0x1UL << CAN_F9R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7187 | #define CAN_F9R1_FB12 CAN_F9R1_FB12_Msk /*!< Filter bit 12 */ |
7188 | #define CAN_F9R1_FB13_Pos (13U) |
||
9 | mjames | 7189 | #define CAN_F9R1_FB13_Msk (0x1UL << CAN_F9R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7190 | #define CAN_F9R1_FB13 CAN_F9R1_FB13_Msk /*!< Filter bit 13 */ |
7191 | #define CAN_F9R1_FB14_Pos (14U) |
||
9 | mjames | 7192 | #define CAN_F9R1_FB14_Msk (0x1UL << CAN_F9R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7193 | #define CAN_F9R1_FB14 CAN_F9R1_FB14_Msk /*!< Filter bit 14 */ |
7194 | #define CAN_F9R1_FB15_Pos (15U) |
||
9 | mjames | 7195 | #define CAN_F9R1_FB15_Msk (0x1UL << CAN_F9R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7196 | #define CAN_F9R1_FB15 CAN_F9R1_FB15_Msk /*!< Filter bit 15 */ |
7197 | #define CAN_F9R1_FB16_Pos (16U) |
||
9 | mjames | 7198 | #define CAN_F9R1_FB16_Msk (0x1UL << CAN_F9R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7199 | #define CAN_F9R1_FB16 CAN_F9R1_FB16_Msk /*!< Filter bit 16 */ |
7200 | #define CAN_F9R1_FB17_Pos (17U) |
||
9 | mjames | 7201 | #define CAN_F9R1_FB17_Msk (0x1UL << CAN_F9R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7202 | #define CAN_F9R1_FB17 CAN_F9R1_FB17_Msk /*!< Filter bit 17 */ |
7203 | #define CAN_F9R1_FB18_Pos (18U) |
||
9 | mjames | 7204 | #define CAN_F9R1_FB18_Msk (0x1UL << CAN_F9R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7205 | #define CAN_F9R1_FB18 CAN_F9R1_FB18_Msk /*!< Filter bit 18 */ |
7206 | #define CAN_F9R1_FB19_Pos (19U) |
||
9 | mjames | 7207 | #define CAN_F9R1_FB19_Msk (0x1UL << CAN_F9R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7208 | #define CAN_F9R1_FB19 CAN_F9R1_FB19_Msk /*!< Filter bit 19 */ |
7209 | #define CAN_F9R1_FB20_Pos (20U) |
||
9 | mjames | 7210 | #define CAN_F9R1_FB20_Msk (0x1UL << CAN_F9R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7211 | #define CAN_F9R1_FB20 CAN_F9R1_FB20_Msk /*!< Filter bit 20 */ |
7212 | #define CAN_F9R1_FB21_Pos (21U) |
||
9 | mjames | 7213 | #define CAN_F9R1_FB21_Msk (0x1UL << CAN_F9R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7214 | #define CAN_F9R1_FB21 CAN_F9R1_FB21_Msk /*!< Filter bit 21 */ |
7215 | #define CAN_F9R1_FB22_Pos (22U) |
||
9 | mjames | 7216 | #define CAN_F9R1_FB22_Msk (0x1UL << CAN_F9R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7217 | #define CAN_F9R1_FB22 CAN_F9R1_FB22_Msk /*!< Filter bit 22 */ |
7218 | #define CAN_F9R1_FB23_Pos (23U) |
||
9 | mjames | 7219 | #define CAN_F9R1_FB23_Msk (0x1UL << CAN_F9R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7220 | #define CAN_F9R1_FB23 CAN_F9R1_FB23_Msk /*!< Filter bit 23 */ |
7221 | #define CAN_F9R1_FB24_Pos (24U) |
||
9 | mjames | 7222 | #define CAN_F9R1_FB24_Msk (0x1UL << CAN_F9R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7223 | #define CAN_F9R1_FB24 CAN_F9R1_FB24_Msk /*!< Filter bit 24 */ |
7224 | #define CAN_F9R1_FB25_Pos (25U) |
||
9 | mjames | 7225 | #define CAN_F9R1_FB25_Msk (0x1UL << CAN_F9R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7226 | #define CAN_F9R1_FB25 CAN_F9R1_FB25_Msk /*!< Filter bit 25 */ |
7227 | #define CAN_F9R1_FB26_Pos (26U) |
||
9 | mjames | 7228 | #define CAN_F9R1_FB26_Msk (0x1UL << CAN_F9R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7229 | #define CAN_F9R1_FB26 CAN_F9R1_FB26_Msk /*!< Filter bit 26 */ |
7230 | #define CAN_F9R1_FB27_Pos (27U) |
||
9 | mjames | 7231 | #define CAN_F9R1_FB27_Msk (0x1UL << CAN_F9R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7232 | #define CAN_F9R1_FB27 CAN_F9R1_FB27_Msk /*!< Filter bit 27 */ |
7233 | #define CAN_F9R1_FB28_Pos (28U) |
||
9 | mjames | 7234 | #define CAN_F9R1_FB28_Msk (0x1UL << CAN_F9R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7235 | #define CAN_F9R1_FB28 CAN_F9R1_FB28_Msk /*!< Filter bit 28 */ |
7236 | #define CAN_F9R1_FB29_Pos (29U) |
||
9 | mjames | 7237 | #define CAN_F9R1_FB29_Msk (0x1UL << CAN_F9R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7238 | #define CAN_F9R1_FB29 CAN_F9R1_FB29_Msk /*!< Filter bit 29 */ |
7239 | #define CAN_F9R1_FB30_Pos (30U) |
||
9 | mjames | 7240 | #define CAN_F9R1_FB30_Msk (0x1UL << CAN_F9R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7241 | #define CAN_F9R1_FB30 CAN_F9R1_FB30_Msk /*!< Filter bit 30 */ |
7242 | #define CAN_F9R1_FB31_Pos (31U) |
||
9 | mjames | 7243 | #define CAN_F9R1_FB31_Msk (0x1UL << CAN_F9R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7244 | #define CAN_F9R1_FB31 CAN_F9R1_FB31_Msk /*!< Filter bit 31 */ |
7245 | |||
7246 | /******************* Bit definition for CAN_F10R1 register ******************/ |
||
7247 | #define CAN_F10R1_FB0_Pos (0U) |
||
9 | mjames | 7248 | #define CAN_F10R1_FB0_Msk (0x1UL << CAN_F10R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7249 | #define CAN_F10R1_FB0 CAN_F10R1_FB0_Msk /*!< Filter bit 0 */ |
7250 | #define CAN_F10R1_FB1_Pos (1U) |
||
9 | mjames | 7251 | #define CAN_F10R1_FB1_Msk (0x1UL << CAN_F10R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7252 | #define CAN_F10R1_FB1 CAN_F10R1_FB1_Msk /*!< Filter bit 1 */ |
7253 | #define CAN_F10R1_FB2_Pos (2U) |
||
9 | mjames | 7254 | #define CAN_F10R1_FB2_Msk (0x1UL << CAN_F10R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7255 | #define CAN_F10R1_FB2 CAN_F10R1_FB2_Msk /*!< Filter bit 2 */ |
7256 | #define CAN_F10R1_FB3_Pos (3U) |
||
9 | mjames | 7257 | #define CAN_F10R1_FB3_Msk (0x1UL << CAN_F10R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7258 | #define CAN_F10R1_FB3 CAN_F10R1_FB3_Msk /*!< Filter bit 3 */ |
7259 | #define CAN_F10R1_FB4_Pos (4U) |
||
9 | mjames | 7260 | #define CAN_F10R1_FB4_Msk (0x1UL << CAN_F10R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7261 | #define CAN_F10R1_FB4 CAN_F10R1_FB4_Msk /*!< Filter bit 4 */ |
7262 | #define CAN_F10R1_FB5_Pos (5U) |
||
9 | mjames | 7263 | #define CAN_F10R1_FB5_Msk (0x1UL << CAN_F10R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7264 | #define CAN_F10R1_FB5 CAN_F10R1_FB5_Msk /*!< Filter bit 5 */ |
7265 | #define CAN_F10R1_FB6_Pos (6U) |
||
9 | mjames | 7266 | #define CAN_F10R1_FB6_Msk (0x1UL << CAN_F10R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7267 | #define CAN_F10R1_FB6 CAN_F10R1_FB6_Msk /*!< Filter bit 6 */ |
7268 | #define CAN_F10R1_FB7_Pos (7U) |
||
9 | mjames | 7269 | #define CAN_F10R1_FB7_Msk (0x1UL << CAN_F10R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7270 | #define CAN_F10R1_FB7 CAN_F10R1_FB7_Msk /*!< Filter bit 7 */ |
7271 | #define CAN_F10R1_FB8_Pos (8U) |
||
9 | mjames | 7272 | #define CAN_F10R1_FB8_Msk (0x1UL << CAN_F10R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7273 | #define CAN_F10R1_FB8 CAN_F10R1_FB8_Msk /*!< Filter bit 8 */ |
7274 | #define CAN_F10R1_FB9_Pos (9U) |
||
9 | mjames | 7275 | #define CAN_F10R1_FB9_Msk (0x1UL << CAN_F10R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7276 | #define CAN_F10R1_FB9 CAN_F10R1_FB9_Msk /*!< Filter bit 9 */ |
7277 | #define CAN_F10R1_FB10_Pos (10U) |
||
9 | mjames | 7278 | #define CAN_F10R1_FB10_Msk (0x1UL << CAN_F10R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7279 | #define CAN_F10R1_FB10 CAN_F10R1_FB10_Msk /*!< Filter bit 10 */ |
7280 | #define CAN_F10R1_FB11_Pos (11U) |
||
9 | mjames | 7281 | #define CAN_F10R1_FB11_Msk (0x1UL << CAN_F10R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7282 | #define CAN_F10R1_FB11 CAN_F10R1_FB11_Msk /*!< Filter bit 11 */ |
7283 | #define CAN_F10R1_FB12_Pos (12U) |
||
9 | mjames | 7284 | #define CAN_F10R1_FB12_Msk (0x1UL << CAN_F10R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7285 | #define CAN_F10R1_FB12 CAN_F10R1_FB12_Msk /*!< Filter bit 12 */ |
7286 | #define CAN_F10R1_FB13_Pos (13U) |
||
9 | mjames | 7287 | #define CAN_F10R1_FB13_Msk (0x1UL << CAN_F10R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7288 | #define CAN_F10R1_FB13 CAN_F10R1_FB13_Msk /*!< Filter bit 13 */ |
7289 | #define CAN_F10R1_FB14_Pos (14U) |
||
9 | mjames | 7290 | #define CAN_F10R1_FB14_Msk (0x1UL << CAN_F10R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7291 | #define CAN_F10R1_FB14 CAN_F10R1_FB14_Msk /*!< Filter bit 14 */ |
7292 | #define CAN_F10R1_FB15_Pos (15U) |
||
9 | mjames | 7293 | #define CAN_F10R1_FB15_Msk (0x1UL << CAN_F10R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7294 | #define CAN_F10R1_FB15 CAN_F10R1_FB15_Msk /*!< Filter bit 15 */ |
7295 | #define CAN_F10R1_FB16_Pos (16U) |
||
9 | mjames | 7296 | #define CAN_F10R1_FB16_Msk (0x1UL << CAN_F10R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7297 | #define CAN_F10R1_FB16 CAN_F10R1_FB16_Msk /*!< Filter bit 16 */ |
7298 | #define CAN_F10R1_FB17_Pos (17U) |
||
9 | mjames | 7299 | #define CAN_F10R1_FB17_Msk (0x1UL << CAN_F10R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7300 | #define CAN_F10R1_FB17 CAN_F10R1_FB17_Msk /*!< Filter bit 17 */ |
7301 | #define CAN_F10R1_FB18_Pos (18U) |
||
9 | mjames | 7302 | #define CAN_F10R1_FB18_Msk (0x1UL << CAN_F10R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7303 | #define CAN_F10R1_FB18 CAN_F10R1_FB18_Msk /*!< Filter bit 18 */ |
7304 | #define CAN_F10R1_FB19_Pos (19U) |
||
9 | mjames | 7305 | #define CAN_F10R1_FB19_Msk (0x1UL << CAN_F10R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7306 | #define CAN_F10R1_FB19 CAN_F10R1_FB19_Msk /*!< Filter bit 19 */ |
7307 | #define CAN_F10R1_FB20_Pos (20U) |
||
9 | mjames | 7308 | #define CAN_F10R1_FB20_Msk (0x1UL << CAN_F10R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7309 | #define CAN_F10R1_FB20 CAN_F10R1_FB20_Msk /*!< Filter bit 20 */ |
7310 | #define CAN_F10R1_FB21_Pos (21U) |
||
9 | mjames | 7311 | #define CAN_F10R1_FB21_Msk (0x1UL << CAN_F10R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7312 | #define CAN_F10R1_FB21 CAN_F10R1_FB21_Msk /*!< Filter bit 21 */ |
7313 | #define CAN_F10R1_FB22_Pos (22U) |
||
9 | mjames | 7314 | #define CAN_F10R1_FB22_Msk (0x1UL << CAN_F10R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7315 | #define CAN_F10R1_FB22 CAN_F10R1_FB22_Msk /*!< Filter bit 22 */ |
7316 | #define CAN_F10R1_FB23_Pos (23U) |
||
9 | mjames | 7317 | #define CAN_F10R1_FB23_Msk (0x1UL << CAN_F10R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7318 | #define CAN_F10R1_FB23 CAN_F10R1_FB23_Msk /*!< Filter bit 23 */ |
7319 | #define CAN_F10R1_FB24_Pos (24U) |
||
9 | mjames | 7320 | #define CAN_F10R1_FB24_Msk (0x1UL << CAN_F10R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7321 | #define CAN_F10R1_FB24 CAN_F10R1_FB24_Msk /*!< Filter bit 24 */ |
7322 | #define CAN_F10R1_FB25_Pos (25U) |
||
9 | mjames | 7323 | #define CAN_F10R1_FB25_Msk (0x1UL << CAN_F10R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7324 | #define CAN_F10R1_FB25 CAN_F10R1_FB25_Msk /*!< Filter bit 25 */ |
7325 | #define CAN_F10R1_FB26_Pos (26U) |
||
9 | mjames | 7326 | #define CAN_F10R1_FB26_Msk (0x1UL << CAN_F10R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7327 | #define CAN_F10R1_FB26 CAN_F10R1_FB26_Msk /*!< Filter bit 26 */ |
7328 | #define CAN_F10R1_FB27_Pos (27U) |
||
9 | mjames | 7329 | #define CAN_F10R1_FB27_Msk (0x1UL << CAN_F10R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7330 | #define CAN_F10R1_FB27 CAN_F10R1_FB27_Msk /*!< Filter bit 27 */ |
7331 | #define CAN_F10R1_FB28_Pos (28U) |
||
9 | mjames | 7332 | #define CAN_F10R1_FB28_Msk (0x1UL << CAN_F10R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7333 | #define CAN_F10R1_FB28 CAN_F10R1_FB28_Msk /*!< Filter bit 28 */ |
7334 | #define CAN_F10R1_FB29_Pos (29U) |
||
9 | mjames | 7335 | #define CAN_F10R1_FB29_Msk (0x1UL << CAN_F10R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7336 | #define CAN_F10R1_FB29 CAN_F10R1_FB29_Msk /*!< Filter bit 29 */ |
7337 | #define CAN_F10R1_FB30_Pos (30U) |
||
9 | mjames | 7338 | #define CAN_F10R1_FB30_Msk (0x1UL << CAN_F10R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7339 | #define CAN_F10R1_FB30 CAN_F10R1_FB30_Msk /*!< Filter bit 30 */ |
7340 | #define CAN_F10R1_FB31_Pos (31U) |
||
9 | mjames | 7341 | #define CAN_F10R1_FB31_Msk (0x1UL << CAN_F10R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7342 | #define CAN_F10R1_FB31 CAN_F10R1_FB31_Msk /*!< Filter bit 31 */ |
7343 | |||
7344 | /******************* Bit definition for CAN_F11R1 register ******************/ |
||
7345 | #define CAN_F11R1_FB0_Pos (0U) |
||
9 | mjames | 7346 | #define CAN_F11R1_FB0_Msk (0x1UL << CAN_F11R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7347 | #define CAN_F11R1_FB0 CAN_F11R1_FB0_Msk /*!< Filter bit 0 */ |
7348 | #define CAN_F11R1_FB1_Pos (1U) |
||
9 | mjames | 7349 | #define CAN_F11R1_FB1_Msk (0x1UL << CAN_F11R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7350 | #define CAN_F11R1_FB1 CAN_F11R1_FB1_Msk /*!< Filter bit 1 */ |
7351 | #define CAN_F11R1_FB2_Pos (2U) |
||
9 | mjames | 7352 | #define CAN_F11R1_FB2_Msk (0x1UL << CAN_F11R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7353 | #define CAN_F11R1_FB2 CAN_F11R1_FB2_Msk /*!< Filter bit 2 */ |
7354 | #define CAN_F11R1_FB3_Pos (3U) |
||
9 | mjames | 7355 | #define CAN_F11R1_FB3_Msk (0x1UL << CAN_F11R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7356 | #define CAN_F11R1_FB3 CAN_F11R1_FB3_Msk /*!< Filter bit 3 */ |
7357 | #define CAN_F11R1_FB4_Pos (4U) |
||
9 | mjames | 7358 | #define CAN_F11R1_FB4_Msk (0x1UL << CAN_F11R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7359 | #define CAN_F11R1_FB4 CAN_F11R1_FB4_Msk /*!< Filter bit 4 */ |
7360 | #define CAN_F11R1_FB5_Pos (5U) |
||
9 | mjames | 7361 | #define CAN_F11R1_FB5_Msk (0x1UL << CAN_F11R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7362 | #define CAN_F11R1_FB5 CAN_F11R1_FB5_Msk /*!< Filter bit 5 */ |
7363 | #define CAN_F11R1_FB6_Pos (6U) |
||
9 | mjames | 7364 | #define CAN_F11R1_FB6_Msk (0x1UL << CAN_F11R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7365 | #define CAN_F11R1_FB6 CAN_F11R1_FB6_Msk /*!< Filter bit 6 */ |
7366 | #define CAN_F11R1_FB7_Pos (7U) |
||
9 | mjames | 7367 | #define CAN_F11R1_FB7_Msk (0x1UL << CAN_F11R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7368 | #define CAN_F11R1_FB7 CAN_F11R1_FB7_Msk /*!< Filter bit 7 */ |
7369 | #define CAN_F11R1_FB8_Pos (8U) |
||
9 | mjames | 7370 | #define CAN_F11R1_FB8_Msk (0x1UL << CAN_F11R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7371 | #define CAN_F11R1_FB8 CAN_F11R1_FB8_Msk /*!< Filter bit 8 */ |
7372 | #define CAN_F11R1_FB9_Pos (9U) |
||
9 | mjames | 7373 | #define CAN_F11R1_FB9_Msk (0x1UL << CAN_F11R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7374 | #define CAN_F11R1_FB9 CAN_F11R1_FB9_Msk /*!< Filter bit 9 */ |
7375 | #define CAN_F11R1_FB10_Pos (10U) |
||
9 | mjames | 7376 | #define CAN_F11R1_FB10_Msk (0x1UL << CAN_F11R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7377 | #define CAN_F11R1_FB10 CAN_F11R1_FB10_Msk /*!< Filter bit 10 */ |
7378 | #define CAN_F11R1_FB11_Pos (11U) |
||
9 | mjames | 7379 | #define CAN_F11R1_FB11_Msk (0x1UL << CAN_F11R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7380 | #define CAN_F11R1_FB11 CAN_F11R1_FB11_Msk /*!< Filter bit 11 */ |
7381 | #define CAN_F11R1_FB12_Pos (12U) |
||
9 | mjames | 7382 | #define CAN_F11R1_FB12_Msk (0x1UL << CAN_F11R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7383 | #define CAN_F11R1_FB12 CAN_F11R1_FB12_Msk /*!< Filter bit 12 */ |
7384 | #define CAN_F11R1_FB13_Pos (13U) |
||
9 | mjames | 7385 | #define CAN_F11R1_FB13_Msk (0x1UL << CAN_F11R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7386 | #define CAN_F11R1_FB13 CAN_F11R1_FB13_Msk /*!< Filter bit 13 */ |
7387 | #define CAN_F11R1_FB14_Pos (14U) |
||
9 | mjames | 7388 | #define CAN_F11R1_FB14_Msk (0x1UL << CAN_F11R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7389 | #define CAN_F11R1_FB14 CAN_F11R1_FB14_Msk /*!< Filter bit 14 */ |
7390 | #define CAN_F11R1_FB15_Pos (15U) |
||
9 | mjames | 7391 | #define CAN_F11R1_FB15_Msk (0x1UL << CAN_F11R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7392 | #define CAN_F11R1_FB15 CAN_F11R1_FB15_Msk /*!< Filter bit 15 */ |
7393 | #define CAN_F11R1_FB16_Pos (16U) |
||
9 | mjames | 7394 | #define CAN_F11R1_FB16_Msk (0x1UL << CAN_F11R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7395 | #define CAN_F11R1_FB16 CAN_F11R1_FB16_Msk /*!< Filter bit 16 */ |
7396 | #define CAN_F11R1_FB17_Pos (17U) |
||
9 | mjames | 7397 | #define CAN_F11R1_FB17_Msk (0x1UL << CAN_F11R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7398 | #define CAN_F11R1_FB17 CAN_F11R1_FB17_Msk /*!< Filter bit 17 */ |
7399 | #define CAN_F11R1_FB18_Pos (18U) |
||
9 | mjames | 7400 | #define CAN_F11R1_FB18_Msk (0x1UL << CAN_F11R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7401 | #define CAN_F11R1_FB18 CAN_F11R1_FB18_Msk /*!< Filter bit 18 */ |
7402 | #define CAN_F11R1_FB19_Pos (19U) |
||
9 | mjames | 7403 | #define CAN_F11R1_FB19_Msk (0x1UL << CAN_F11R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7404 | #define CAN_F11R1_FB19 CAN_F11R1_FB19_Msk /*!< Filter bit 19 */ |
7405 | #define CAN_F11R1_FB20_Pos (20U) |
||
9 | mjames | 7406 | #define CAN_F11R1_FB20_Msk (0x1UL << CAN_F11R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7407 | #define CAN_F11R1_FB20 CAN_F11R1_FB20_Msk /*!< Filter bit 20 */ |
7408 | #define CAN_F11R1_FB21_Pos (21U) |
||
9 | mjames | 7409 | #define CAN_F11R1_FB21_Msk (0x1UL << CAN_F11R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7410 | #define CAN_F11R1_FB21 CAN_F11R1_FB21_Msk /*!< Filter bit 21 */ |
7411 | #define CAN_F11R1_FB22_Pos (22U) |
||
9 | mjames | 7412 | #define CAN_F11R1_FB22_Msk (0x1UL << CAN_F11R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7413 | #define CAN_F11R1_FB22 CAN_F11R1_FB22_Msk /*!< Filter bit 22 */ |
7414 | #define CAN_F11R1_FB23_Pos (23U) |
||
9 | mjames | 7415 | #define CAN_F11R1_FB23_Msk (0x1UL << CAN_F11R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7416 | #define CAN_F11R1_FB23 CAN_F11R1_FB23_Msk /*!< Filter bit 23 */ |
7417 | #define CAN_F11R1_FB24_Pos (24U) |
||
9 | mjames | 7418 | #define CAN_F11R1_FB24_Msk (0x1UL << CAN_F11R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7419 | #define CAN_F11R1_FB24 CAN_F11R1_FB24_Msk /*!< Filter bit 24 */ |
7420 | #define CAN_F11R1_FB25_Pos (25U) |
||
9 | mjames | 7421 | #define CAN_F11R1_FB25_Msk (0x1UL << CAN_F11R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7422 | #define CAN_F11R1_FB25 CAN_F11R1_FB25_Msk /*!< Filter bit 25 */ |
7423 | #define CAN_F11R1_FB26_Pos (26U) |
||
9 | mjames | 7424 | #define CAN_F11R1_FB26_Msk (0x1UL << CAN_F11R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7425 | #define CAN_F11R1_FB26 CAN_F11R1_FB26_Msk /*!< Filter bit 26 */ |
7426 | #define CAN_F11R1_FB27_Pos (27U) |
||
9 | mjames | 7427 | #define CAN_F11R1_FB27_Msk (0x1UL << CAN_F11R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7428 | #define CAN_F11R1_FB27 CAN_F11R1_FB27_Msk /*!< Filter bit 27 */ |
7429 | #define CAN_F11R1_FB28_Pos (28U) |
||
9 | mjames | 7430 | #define CAN_F11R1_FB28_Msk (0x1UL << CAN_F11R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7431 | #define CAN_F11R1_FB28 CAN_F11R1_FB28_Msk /*!< Filter bit 28 */ |
7432 | #define CAN_F11R1_FB29_Pos (29U) |
||
9 | mjames | 7433 | #define CAN_F11R1_FB29_Msk (0x1UL << CAN_F11R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7434 | #define CAN_F11R1_FB29 CAN_F11R1_FB29_Msk /*!< Filter bit 29 */ |
7435 | #define CAN_F11R1_FB30_Pos (30U) |
||
9 | mjames | 7436 | #define CAN_F11R1_FB30_Msk (0x1UL << CAN_F11R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7437 | #define CAN_F11R1_FB30 CAN_F11R1_FB30_Msk /*!< Filter bit 30 */ |
7438 | #define CAN_F11R1_FB31_Pos (31U) |
||
9 | mjames | 7439 | #define CAN_F11R1_FB31_Msk (0x1UL << CAN_F11R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7440 | #define CAN_F11R1_FB31 CAN_F11R1_FB31_Msk /*!< Filter bit 31 */ |
7441 | |||
7442 | /******************* Bit definition for CAN_F12R1 register ******************/ |
||
7443 | #define CAN_F12R1_FB0_Pos (0U) |
||
9 | mjames | 7444 | #define CAN_F12R1_FB0_Msk (0x1UL << CAN_F12R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7445 | #define CAN_F12R1_FB0 CAN_F12R1_FB0_Msk /*!< Filter bit 0 */ |
7446 | #define CAN_F12R1_FB1_Pos (1U) |
||
9 | mjames | 7447 | #define CAN_F12R1_FB1_Msk (0x1UL << CAN_F12R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7448 | #define CAN_F12R1_FB1 CAN_F12R1_FB1_Msk /*!< Filter bit 1 */ |
7449 | #define CAN_F12R1_FB2_Pos (2U) |
||
9 | mjames | 7450 | #define CAN_F12R1_FB2_Msk (0x1UL << CAN_F12R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7451 | #define CAN_F12R1_FB2 CAN_F12R1_FB2_Msk /*!< Filter bit 2 */ |
7452 | #define CAN_F12R1_FB3_Pos (3U) |
||
9 | mjames | 7453 | #define CAN_F12R1_FB3_Msk (0x1UL << CAN_F12R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7454 | #define CAN_F12R1_FB3 CAN_F12R1_FB3_Msk /*!< Filter bit 3 */ |
7455 | #define CAN_F12R1_FB4_Pos (4U) |
||
9 | mjames | 7456 | #define CAN_F12R1_FB4_Msk (0x1UL << CAN_F12R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7457 | #define CAN_F12R1_FB4 CAN_F12R1_FB4_Msk /*!< Filter bit 4 */ |
7458 | #define CAN_F12R1_FB5_Pos (5U) |
||
9 | mjames | 7459 | #define CAN_F12R1_FB5_Msk (0x1UL << CAN_F12R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7460 | #define CAN_F12R1_FB5 CAN_F12R1_FB5_Msk /*!< Filter bit 5 */ |
7461 | #define CAN_F12R1_FB6_Pos (6U) |
||
9 | mjames | 7462 | #define CAN_F12R1_FB6_Msk (0x1UL << CAN_F12R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7463 | #define CAN_F12R1_FB6 CAN_F12R1_FB6_Msk /*!< Filter bit 6 */ |
7464 | #define CAN_F12R1_FB7_Pos (7U) |
||
9 | mjames | 7465 | #define CAN_F12R1_FB7_Msk (0x1UL << CAN_F12R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7466 | #define CAN_F12R1_FB7 CAN_F12R1_FB7_Msk /*!< Filter bit 7 */ |
7467 | #define CAN_F12R1_FB8_Pos (8U) |
||
9 | mjames | 7468 | #define CAN_F12R1_FB8_Msk (0x1UL << CAN_F12R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7469 | #define CAN_F12R1_FB8 CAN_F12R1_FB8_Msk /*!< Filter bit 8 */ |
7470 | #define CAN_F12R1_FB9_Pos (9U) |
||
9 | mjames | 7471 | #define CAN_F12R1_FB9_Msk (0x1UL << CAN_F12R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7472 | #define CAN_F12R1_FB9 CAN_F12R1_FB9_Msk /*!< Filter bit 9 */ |
7473 | #define CAN_F12R1_FB10_Pos (10U) |
||
9 | mjames | 7474 | #define CAN_F12R1_FB10_Msk (0x1UL << CAN_F12R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7475 | #define CAN_F12R1_FB10 CAN_F12R1_FB10_Msk /*!< Filter bit 10 */ |
7476 | #define CAN_F12R1_FB11_Pos (11U) |
||
9 | mjames | 7477 | #define CAN_F12R1_FB11_Msk (0x1UL << CAN_F12R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7478 | #define CAN_F12R1_FB11 CAN_F12R1_FB11_Msk /*!< Filter bit 11 */ |
7479 | #define CAN_F12R1_FB12_Pos (12U) |
||
9 | mjames | 7480 | #define CAN_F12R1_FB12_Msk (0x1UL << CAN_F12R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7481 | #define CAN_F12R1_FB12 CAN_F12R1_FB12_Msk /*!< Filter bit 12 */ |
7482 | #define CAN_F12R1_FB13_Pos (13U) |
||
9 | mjames | 7483 | #define CAN_F12R1_FB13_Msk (0x1UL << CAN_F12R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7484 | #define CAN_F12R1_FB13 CAN_F12R1_FB13_Msk /*!< Filter bit 13 */ |
7485 | #define CAN_F12R1_FB14_Pos (14U) |
||
9 | mjames | 7486 | #define CAN_F12R1_FB14_Msk (0x1UL << CAN_F12R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7487 | #define CAN_F12R1_FB14 CAN_F12R1_FB14_Msk /*!< Filter bit 14 */ |
7488 | #define CAN_F12R1_FB15_Pos (15U) |
||
9 | mjames | 7489 | #define CAN_F12R1_FB15_Msk (0x1UL << CAN_F12R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7490 | #define CAN_F12R1_FB15 CAN_F12R1_FB15_Msk /*!< Filter bit 15 */ |
7491 | #define CAN_F12R1_FB16_Pos (16U) |
||
9 | mjames | 7492 | #define CAN_F12R1_FB16_Msk (0x1UL << CAN_F12R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7493 | #define CAN_F12R1_FB16 CAN_F12R1_FB16_Msk /*!< Filter bit 16 */ |
7494 | #define CAN_F12R1_FB17_Pos (17U) |
||
9 | mjames | 7495 | #define CAN_F12R1_FB17_Msk (0x1UL << CAN_F12R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7496 | #define CAN_F12R1_FB17 CAN_F12R1_FB17_Msk /*!< Filter bit 17 */ |
7497 | #define CAN_F12R1_FB18_Pos (18U) |
||
9 | mjames | 7498 | #define CAN_F12R1_FB18_Msk (0x1UL << CAN_F12R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7499 | #define CAN_F12R1_FB18 CAN_F12R1_FB18_Msk /*!< Filter bit 18 */ |
7500 | #define CAN_F12R1_FB19_Pos (19U) |
||
9 | mjames | 7501 | #define CAN_F12R1_FB19_Msk (0x1UL << CAN_F12R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7502 | #define CAN_F12R1_FB19 CAN_F12R1_FB19_Msk /*!< Filter bit 19 */ |
7503 | #define CAN_F12R1_FB20_Pos (20U) |
||
9 | mjames | 7504 | #define CAN_F12R1_FB20_Msk (0x1UL << CAN_F12R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7505 | #define CAN_F12R1_FB20 CAN_F12R1_FB20_Msk /*!< Filter bit 20 */ |
7506 | #define CAN_F12R1_FB21_Pos (21U) |
||
9 | mjames | 7507 | #define CAN_F12R1_FB21_Msk (0x1UL << CAN_F12R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7508 | #define CAN_F12R1_FB21 CAN_F12R1_FB21_Msk /*!< Filter bit 21 */ |
7509 | #define CAN_F12R1_FB22_Pos (22U) |
||
9 | mjames | 7510 | #define CAN_F12R1_FB22_Msk (0x1UL << CAN_F12R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7511 | #define CAN_F12R1_FB22 CAN_F12R1_FB22_Msk /*!< Filter bit 22 */ |
7512 | #define CAN_F12R1_FB23_Pos (23U) |
||
9 | mjames | 7513 | #define CAN_F12R1_FB23_Msk (0x1UL << CAN_F12R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7514 | #define CAN_F12R1_FB23 CAN_F12R1_FB23_Msk /*!< Filter bit 23 */ |
7515 | #define CAN_F12R1_FB24_Pos (24U) |
||
9 | mjames | 7516 | #define CAN_F12R1_FB24_Msk (0x1UL << CAN_F12R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7517 | #define CAN_F12R1_FB24 CAN_F12R1_FB24_Msk /*!< Filter bit 24 */ |
7518 | #define CAN_F12R1_FB25_Pos (25U) |
||
9 | mjames | 7519 | #define CAN_F12R1_FB25_Msk (0x1UL << CAN_F12R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7520 | #define CAN_F12R1_FB25 CAN_F12R1_FB25_Msk /*!< Filter bit 25 */ |
7521 | #define CAN_F12R1_FB26_Pos (26U) |
||
9 | mjames | 7522 | #define CAN_F12R1_FB26_Msk (0x1UL << CAN_F12R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7523 | #define CAN_F12R1_FB26 CAN_F12R1_FB26_Msk /*!< Filter bit 26 */ |
7524 | #define CAN_F12R1_FB27_Pos (27U) |
||
9 | mjames | 7525 | #define CAN_F12R1_FB27_Msk (0x1UL << CAN_F12R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7526 | #define CAN_F12R1_FB27 CAN_F12R1_FB27_Msk /*!< Filter bit 27 */ |
7527 | #define CAN_F12R1_FB28_Pos (28U) |
||
9 | mjames | 7528 | #define CAN_F12R1_FB28_Msk (0x1UL << CAN_F12R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7529 | #define CAN_F12R1_FB28 CAN_F12R1_FB28_Msk /*!< Filter bit 28 */ |
7530 | #define CAN_F12R1_FB29_Pos (29U) |
||
9 | mjames | 7531 | #define CAN_F12R1_FB29_Msk (0x1UL << CAN_F12R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7532 | #define CAN_F12R1_FB29 CAN_F12R1_FB29_Msk /*!< Filter bit 29 */ |
7533 | #define CAN_F12R1_FB30_Pos (30U) |
||
9 | mjames | 7534 | #define CAN_F12R1_FB30_Msk (0x1UL << CAN_F12R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7535 | #define CAN_F12R1_FB30 CAN_F12R1_FB30_Msk /*!< Filter bit 30 */ |
7536 | #define CAN_F12R1_FB31_Pos (31U) |
||
9 | mjames | 7537 | #define CAN_F12R1_FB31_Msk (0x1UL << CAN_F12R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7538 | #define CAN_F12R1_FB31 CAN_F12R1_FB31_Msk /*!< Filter bit 31 */ |
7539 | |||
7540 | /******************* Bit definition for CAN_F13R1 register ******************/ |
||
7541 | #define CAN_F13R1_FB0_Pos (0U) |
||
9 | mjames | 7542 | #define CAN_F13R1_FB0_Msk (0x1UL << CAN_F13R1_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7543 | #define CAN_F13R1_FB0 CAN_F13R1_FB0_Msk /*!< Filter bit 0 */ |
7544 | #define CAN_F13R1_FB1_Pos (1U) |
||
9 | mjames | 7545 | #define CAN_F13R1_FB1_Msk (0x1UL << CAN_F13R1_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7546 | #define CAN_F13R1_FB1 CAN_F13R1_FB1_Msk /*!< Filter bit 1 */ |
7547 | #define CAN_F13R1_FB2_Pos (2U) |
||
9 | mjames | 7548 | #define CAN_F13R1_FB2_Msk (0x1UL << CAN_F13R1_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7549 | #define CAN_F13R1_FB2 CAN_F13R1_FB2_Msk /*!< Filter bit 2 */ |
7550 | #define CAN_F13R1_FB3_Pos (3U) |
||
9 | mjames | 7551 | #define CAN_F13R1_FB3_Msk (0x1UL << CAN_F13R1_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7552 | #define CAN_F13R1_FB3 CAN_F13R1_FB3_Msk /*!< Filter bit 3 */ |
7553 | #define CAN_F13R1_FB4_Pos (4U) |
||
9 | mjames | 7554 | #define CAN_F13R1_FB4_Msk (0x1UL << CAN_F13R1_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7555 | #define CAN_F13R1_FB4 CAN_F13R1_FB4_Msk /*!< Filter bit 4 */ |
7556 | #define CAN_F13R1_FB5_Pos (5U) |
||
9 | mjames | 7557 | #define CAN_F13R1_FB5_Msk (0x1UL << CAN_F13R1_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7558 | #define CAN_F13R1_FB5 CAN_F13R1_FB5_Msk /*!< Filter bit 5 */ |
7559 | #define CAN_F13R1_FB6_Pos (6U) |
||
9 | mjames | 7560 | #define CAN_F13R1_FB6_Msk (0x1UL << CAN_F13R1_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7561 | #define CAN_F13R1_FB6 CAN_F13R1_FB6_Msk /*!< Filter bit 6 */ |
7562 | #define CAN_F13R1_FB7_Pos (7U) |
||
9 | mjames | 7563 | #define CAN_F13R1_FB7_Msk (0x1UL << CAN_F13R1_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7564 | #define CAN_F13R1_FB7 CAN_F13R1_FB7_Msk /*!< Filter bit 7 */ |
7565 | #define CAN_F13R1_FB8_Pos (8U) |
||
9 | mjames | 7566 | #define CAN_F13R1_FB8_Msk (0x1UL << CAN_F13R1_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7567 | #define CAN_F13R1_FB8 CAN_F13R1_FB8_Msk /*!< Filter bit 8 */ |
7568 | #define CAN_F13R1_FB9_Pos (9U) |
||
9 | mjames | 7569 | #define CAN_F13R1_FB9_Msk (0x1UL << CAN_F13R1_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7570 | #define CAN_F13R1_FB9 CAN_F13R1_FB9_Msk /*!< Filter bit 9 */ |
7571 | #define CAN_F13R1_FB10_Pos (10U) |
||
9 | mjames | 7572 | #define CAN_F13R1_FB10_Msk (0x1UL << CAN_F13R1_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7573 | #define CAN_F13R1_FB10 CAN_F13R1_FB10_Msk /*!< Filter bit 10 */ |
7574 | #define CAN_F13R1_FB11_Pos (11U) |
||
9 | mjames | 7575 | #define CAN_F13R1_FB11_Msk (0x1UL << CAN_F13R1_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7576 | #define CAN_F13R1_FB11 CAN_F13R1_FB11_Msk /*!< Filter bit 11 */ |
7577 | #define CAN_F13R1_FB12_Pos (12U) |
||
9 | mjames | 7578 | #define CAN_F13R1_FB12_Msk (0x1UL << CAN_F13R1_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7579 | #define CAN_F13R1_FB12 CAN_F13R1_FB12_Msk /*!< Filter bit 12 */ |
7580 | #define CAN_F13R1_FB13_Pos (13U) |
||
9 | mjames | 7581 | #define CAN_F13R1_FB13_Msk (0x1UL << CAN_F13R1_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7582 | #define CAN_F13R1_FB13 CAN_F13R1_FB13_Msk /*!< Filter bit 13 */ |
7583 | #define CAN_F13R1_FB14_Pos (14U) |
||
9 | mjames | 7584 | #define CAN_F13R1_FB14_Msk (0x1UL << CAN_F13R1_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7585 | #define CAN_F13R1_FB14 CAN_F13R1_FB14_Msk /*!< Filter bit 14 */ |
7586 | #define CAN_F13R1_FB15_Pos (15U) |
||
9 | mjames | 7587 | #define CAN_F13R1_FB15_Msk (0x1UL << CAN_F13R1_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7588 | #define CAN_F13R1_FB15 CAN_F13R1_FB15_Msk /*!< Filter bit 15 */ |
7589 | #define CAN_F13R1_FB16_Pos (16U) |
||
9 | mjames | 7590 | #define CAN_F13R1_FB16_Msk (0x1UL << CAN_F13R1_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7591 | #define CAN_F13R1_FB16 CAN_F13R1_FB16_Msk /*!< Filter bit 16 */ |
7592 | #define CAN_F13R1_FB17_Pos (17U) |
||
9 | mjames | 7593 | #define CAN_F13R1_FB17_Msk (0x1UL << CAN_F13R1_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7594 | #define CAN_F13R1_FB17 CAN_F13R1_FB17_Msk /*!< Filter bit 17 */ |
7595 | #define CAN_F13R1_FB18_Pos (18U) |
||
9 | mjames | 7596 | #define CAN_F13R1_FB18_Msk (0x1UL << CAN_F13R1_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7597 | #define CAN_F13R1_FB18 CAN_F13R1_FB18_Msk /*!< Filter bit 18 */ |
7598 | #define CAN_F13R1_FB19_Pos (19U) |
||
9 | mjames | 7599 | #define CAN_F13R1_FB19_Msk (0x1UL << CAN_F13R1_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7600 | #define CAN_F13R1_FB19 CAN_F13R1_FB19_Msk /*!< Filter bit 19 */ |
7601 | #define CAN_F13R1_FB20_Pos (20U) |
||
9 | mjames | 7602 | #define CAN_F13R1_FB20_Msk (0x1UL << CAN_F13R1_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7603 | #define CAN_F13R1_FB20 CAN_F13R1_FB20_Msk /*!< Filter bit 20 */ |
7604 | #define CAN_F13R1_FB21_Pos (21U) |
||
9 | mjames | 7605 | #define CAN_F13R1_FB21_Msk (0x1UL << CAN_F13R1_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7606 | #define CAN_F13R1_FB21 CAN_F13R1_FB21_Msk /*!< Filter bit 21 */ |
7607 | #define CAN_F13R1_FB22_Pos (22U) |
||
9 | mjames | 7608 | #define CAN_F13R1_FB22_Msk (0x1UL << CAN_F13R1_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7609 | #define CAN_F13R1_FB22 CAN_F13R1_FB22_Msk /*!< Filter bit 22 */ |
7610 | #define CAN_F13R1_FB23_Pos (23U) |
||
9 | mjames | 7611 | #define CAN_F13R1_FB23_Msk (0x1UL << CAN_F13R1_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7612 | #define CAN_F13R1_FB23 CAN_F13R1_FB23_Msk /*!< Filter bit 23 */ |
7613 | #define CAN_F13R1_FB24_Pos (24U) |
||
9 | mjames | 7614 | #define CAN_F13R1_FB24_Msk (0x1UL << CAN_F13R1_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7615 | #define CAN_F13R1_FB24 CAN_F13R1_FB24_Msk /*!< Filter bit 24 */ |
7616 | #define CAN_F13R1_FB25_Pos (25U) |
||
9 | mjames | 7617 | #define CAN_F13R1_FB25_Msk (0x1UL << CAN_F13R1_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7618 | #define CAN_F13R1_FB25 CAN_F13R1_FB25_Msk /*!< Filter bit 25 */ |
7619 | #define CAN_F13R1_FB26_Pos (26U) |
||
9 | mjames | 7620 | #define CAN_F13R1_FB26_Msk (0x1UL << CAN_F13R1_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7621 | #define CAN_F13R1_FB26 CAN_F13R1_FB26_Msk /*!< Filter bit 26 */ |
7622 | #define CAN_F13R1_FB27_Pos (27U) |
||
9 | mjames | 7623 | #define CAN_F13R1_FB27_Msk (0x1UL << CAN_F13R1_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7624 | #define CAN_F13R1_FB27 CAN_F13R1_FB27_Msk /*!< Filter bit 27 */ |
7625 | #define CAN_F13R1_FB28_Pos (28U) |
||
9 | mjames | 7626 | #define CAN_F13R1_FB28_Msk (0x1UL << CAN_F13R1_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7627 | #define CAN_F13R1_FB28 CAN_F13R1_FB28_Msk /*!< Filter bit 28 */ |
7628 | #define CAN_F13R1_FB29_Pos (29U) |
||
9 | mjames | 7629 | #define CAN_F13R1_FB29_Msk (0x1UL << CAN_F13R1_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7630 | #define CAN_F13R1_FB29 CAN_F13R1_FB29_Msk /*!< Filter bit 29 */ |
7631 | #define CAN_F13R1_FB30_Pos (30U) |
||
9 | mjames | 7632 | #define CAN_F13R1_FB30_Msk (0x1UL << CAN_F13R1_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7633 | #define CAN_F13R1_FB30 CAN_F13R1_FB30_Msk /*!< Filter bit 30 */ |
7634 | #define CAN_F13R1_FB31_Pos (31U) |
||
9 | mjames | 7635 | #define CAN_F13R1_FB31_Msk (0x1UL << CAN_F13R1_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7636 | #define CAN_F13R1_FB31 CAN_F13R1_FB31_Msk /*!< Filter bit 31 */ |
7637 | |||
7638 | /******************* Bit definition for CAN_F0R2 register *******************/ |
||
7639 | #define CAN_F0R2_FB0_Pos (0U) |
||
9 | mjames | 7640 | #define CAN_F0R2_FB0_Msk (0x1UL << CAN_F0R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7641 | #define CAN_F0R2_FB0 CAN_F0R2_FB0_Msk /*!< Filter bit 0 */ |
7642 | #define CAN_F0R2_FB1_Pos (1U) |
||
9 | mjames | 7643 | #define CAN_F0R2_FB1_Msk (0x1UL << CAN_F0R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7644 | #define CAN_F0R2_FB1 CAN_F0R2_FB1_Msk /*!< Filter bit 1 */ |
7645 | #define CAN_F0R2_FB2_Pos (2U) |
||
9 | mjames | 7646 | #define CAN_F0R2_FB2_Msk (0x1UL << CAN_F0R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7647 | #define CAN_F0R2_FB2 CAN_F0R2_FB2_Msk /*!< Filter bit 2 */ |
7648 | #define CAN_F0R2_FB3_Pos (3U) |
||
9 | mjames | 7649 | #define CAN_F0R2_FB3_Msk (0x1UL << CAN_F0R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7650 | #define CAN_F0R2_FB3 CAN_F0R2_FB3_Msk /*!< Filter bit 3 */ |
7651 | #define CAN_F0R2_FB4_Pos (4U) |
||
9 | mjames | 7652 | #define CAN_F0R2_FB4_Msk (0x1UL << CAN_F0R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7653 | #define CAN_F0R2_FB4 CAN_F0R2_FB4_Msk /*!< Filter bit 4 */ |
7654 | #define CAN_F0R2_FB5_Pos (5U) |
||
9 | mjames | 7655 | #define CAN_F0R2_FB5_Msk (0x1UL << CAN_F0R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7656 | #define CAN_F0R2_FB5 CAN_F0R2_FB5_Msk /*!< Filter bit 5 */ |
7657 | #define CAN_F0R2_FB6_Pos (6U) |
||
9 | mjames | 7658 | #define CAN_F0R2_FB6_Msk (0x1UL << CAN_F0R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7659 | #define CAN_F0R2_FB6 CAN_F0R2_FB6_Msk /*!< Filter bit 6 */ |
7660 | #define CAN_F0R2_FB7_Pos (7U) |
||
9 | mjames | 7661 | #define CAN_F0R2_FB7_Msk (0x1UL << CAN_F0R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7662 | #define CAN_F0R2_FB7 CAN_F0R2_FB7_Msk /*!< Filter bit 7 */ |
7663 | #define CAN_F0R2_FB8_Pos (8U) |
||
9 | mjames | 7664 | #define CAN_F0R2_FB8_Msk (0x1UL << CAN_F0R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7665 | #define CAN_F0R2_FB8 CAN_F0R2_FB8_Msk /*!< Filter bit 8 */ |
7666 | #define CAN_F0R2_FB9_Pos (9U) |
||
9 | mjames | 7667 | #define CAN_F0R2_FB9_Msk (0x1UL << CAN_F0R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7668 | #define CAN_F0R2_FB9 CAN_F0R2_FB9_Msk /*!< Filter bit 9 */ |
7669 | #define CAN_F0R2_FB10_Pos (10U) |
||
9 | mjames | 7670 | #define CAN_F0R2_FB10_Msk (0x1UL << CAN_F0R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7671 | #define CAN_F0R2_FB10 CAN_F0R2_FB10_Msk /*!< Filter bit 10 */ |
7672 | #define CAN_F0R2_FB11_Pos (11U) |
||
9 | mjames | 7673 | #define CAN_F0R2_FB11_Msk (0x1UL << CAN_F0R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7674 | #define CAN_F0R2_FB11 CAN_F0R2_FB11_Msk /*!< Filter bit 11 */ |
7675 | #define CAN_F0R2_FB12_Pos (12U) |
||
9 | mjames | 7676 | #define CAN_F0R2_FB12_Msk (0x1UL << CAN_F0R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7677 | #define CAN_F0R2_FB12 CAN_F0R2_FB12_Msk /*!< Filter bit 12 */ |
7678 | #define CAN_F0R2_FB13_Pos (13U) |
||
9 | mjames | 7679 | #define CAN_F0R2_FB13_Msk (0x1UL << CAN_F0R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7680 | #define CAN_F0R2_FB13 CAN_F0R2_FB13_Msk /*!< Filter bit 13 */ |
7681 | #define CAN_F0R2_FB14_Pos (14U) |
||
9 | mjames | 7682 | #define CAN_F0R2_FB14_Msk (0x1UL << CAN_F0R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7683 | #define CAN_F0R2_FB14 CAN_F0R2_FB14_Msk /*!< Filter bit 14 */ |
7684 | #define CAN_F0R2_FB15_Pos (15U) |
||
9 | mjames | 7685 | #define CAN_F0R2_FB15_Msk (0x1UL << CAN_F0R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7686 | #define CAN_F0R2_FB15 CAN_F0R2_FB15_Msk /*!< Filter bit 15 */ |
7687 | #define CAN_F0R2_FB16_Pos (16U) |
||
9 | mjames | 7688 | #define CAN_F0R2_FB16_Msk (0x1UL << CAN_F0R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7689 | #define CAN_F0R2_FB16 CAN_F0R2_FB16_Msk /*!< Filter bit 16 */ |
7690 | #define CAN_F0R2_FB17_Pos (17U) |
||
9 | mjames | 7691 | #define CAN_F0R2_FB17_Msk (0x1UL << CAN_F0R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7692 | #define CAN_F0R2_FB17 CAN_F0R2_FB17_Msk /*!< Filter bit 17 */ |
7693 | #define CAN_F0R2_FB18_Pos (18U) |
||
9 | mjames | 7694 | #define CAN_F0R2_FB18_Msk (0x1UL << CAN_F0R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7695 | #define CAN_F0R2_FB18 CAN_F0R2_FB18_Msk /*!< Filter bit 18 */ |
7696 | #define CAN_F0R2_FB19_Pos (19U) |
||
9 | mjames | 7697 | #define CAN_F0R2_FB19_Msk (0x1UL << CAN_F0R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7698 | #define CAN_F0R2_FB19 CAN_F0R2_FB19_Msk /*!< Filter bit 19 */ |
7699 | #define CAN_F0R2_FB20_Pos (20U) |
||
9 | mjames | 7700 | #define CAN_F0R2_FB20_Msk (0x1UL << CAN_F0R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7701 | #define CAN_F0R2_FB20 CAN_F0R2_FB20_Msk /*!< Filter bit 20 */ |
7702 | #define CAN_F0R2_FB21_Pos (21U) |
||
9 | mjames | 7703 | #define CAN_F0R2_FB21_Msk (0x1UL << CAN_F0R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7704 | #define CAN_F0R2_FB21 CAN_F0R2_FB21_Msk /*!< Filter bit 21 */ |
7705 | #define CAN_F0R2_FB22_Pos (22U) |
||
9 | mjames | 7706 | #define CAN_F0R2_FB22_Msk (0x1UL << CAN_F0R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7707 | #define CAN_F0R2_FB22 CAN_F0R2_FB22_Msk /*!< Filter bit 22 */ |
7708 | #define CAN_F0R2_FB23_Pos (23U) |
||
9 | mjames | 7709 | #define CAN_F0R2_FB23_Msk (0x1UL << CAN_F0R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7710 | #define CAN_F0R2_FB23 CAN_F0R2_FB23_Msk /*!< Filter bit 23 */ |
7711 | #define CAN_F0R2_FB24_Pos (24U) |
||
9 | mjames | 7712 | #define CAN_F0R2_FB24_Msk (0x1UL << CAN_F0R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7713 | #define CAN_F0R2_FB24 CAN_F0R2_FB24_Msk /*!< Filter bit 24 */ |
7714 | #define CAN_F0R2_FB25_Pos (25U) |
||
9 | mjames | 7715 | #define CAN_F0R2_FB25_Msk (0x1UL << CAN_F0R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7716 | #define CAN_F0R2_FB25 CAN_F0R2_FB25_Msk /*!< Filter bit 25 */ |
7717 | #define CAN_F0R2_FB26_Pos (26U) |
||
9 | mjames | 7718 | #define CAN_F0R2_FB26_Msk (0x1UL << CAN_F0R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7719 | #define CAN_F0R2_FB26 CAN_F0R2_FB26_Msk /*!< Filter bit 26 */ |
7720 | #define CAN_F0R2_FB27_Pos (27U) |
||
9 | mjames | 7721 | #define CAN_F0R2_FB27_Msk (0x1UL << CAN_F0R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7722 | #define CAN_F0R2_FB27 CAN_F0R2_FB27_Msk /*!< Filter bit 27 */ |
7723 | #define CAN_F0R2_FB28_Pos (28U) |
||
9 | mjames | 7724 | #define CAN_F0R2_FB28_Msk (0x1UL << CAN_F0R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7725 | #define CAN_F0R2_FB28 CAN_F0R2_FB28_Msk /*!< Filter bit 28 */ |
7726 | #define CAN_F0R2_FB29_Pos (29U) |
||
9 | mjames | 7727 | #define CAN_F0R2_FB29_Msk (0x1UL << CAN_F0R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7728 | #define CAN_F0R2_FB29 CAN_F0R2_FB29_Msk /*!< Filter bit 29 */ |
7729 | #define CAN_F0R2_FB30_Pos (30U) |
||
9 | mjames | 7730 | #define CAN_F0R2_FB30_Msk (0x1UL << CAN_F0R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7731 | #define CAN_F0R2_FB30 CAN_F0R2_FB30_Msk /*!< Filter bit 30 */ |
7732 | #define CAN_F0R2_FB31_Pos (31U) |
||
9 | mjames | 7733 | #define CAN_F0R2_FB31_Msk (0x1UL << CAN_F0R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7734 | #define CAN_F0R2_FB31 CAN_F0R2_FB31_Msk /*!< Filter bit 31 */ |
7735 | |||
7736 | /******************* Bit definition for CAN_F1R2 register *******************/ |
||
7737 | #define CAN_F1R2_FB0_Pos (0U) |
||
9 | mjames | 7738 | #define CAN_F1R2_FB0_Msk (0x1UL << CAN_F1R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7739 | #define CAN_F1R2_FB0 CAN_F1R2_FB0_Msk /*!< Filter bit 0 */ |
7740 | #define CAN_F1R2_FB1_Pos (1U) |
||
9 | mjames | 7741 | #define CAN_F1R2_FB1_Msk (0x1UL << CAN_F1R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7742 | #define CAN_F1R2_FB1 CAN_F1R2_FB1_Msk /*!< Filter bit 1 */ |
7743 | #define CAN_F1R2_FB2_Pos (2U) |
||
9 | mjames | 7744 | #define CAN_F1R2_FB2_Msk (0x1UL << CAN_F1R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7745 | #define CAN_F1R2_FB2 CAN_F1R2_FB2_Msk /*!< Filter bit 2 */ |
7746 | #define CAN_F1R2_FB3_Pos (3U) |
||
9 | mjames | 7747 | #define CAN_F1R2_FB3_Msk (0x1UL << CAN_F1R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7748 | #define CAN_F1R2_FB3 CAN_F1R2_FB3_Msk /*!< Filter bit 3 */ |
7749 | #define CAN_F1R2_FB4_Pos (4U) |
||
9 | mjames | 7750 | #define CAN_F1R2_FB4_Msk (0x1UL << CAN_F1R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7751 | #define CAN_F1R2_FB4 CAN_F1R2_FB4_Msk /*!< Filter bit 4 */ |
7752 | #define CAN_F1R2_FB5_Pos (5U) |
||
9 | mjames | 7753 | #define CAN_F1R2_FB5_Msk (0x1UL << CAN_F1R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7754 | #define CAN_F1R2_FB5 CAN_F1R2_FB5_Msk /*!< Filter bit 5 */ |
7755 | #define CAN_F1R2_FB6_Pos (6U) |
||
9 | mjames | 7756 | #define CAN_F1R2_FB6_Msk (0x1UL << CAN_F1R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7757 | #define CAN_F1R2_FB6 CAN_F1R2_FB6_Msk /*!< Filter bit 6 */ |
7758 | #define CAN_F1R2_FB7_Pos (7U) |
||
9 | mjames | 7759 | #define CAN_F1R2_FB7_Msk (0x1UL << CAN_F1R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7760 | #define CAN_F1R2_FB7 CAN_F1R2_FB7_Msk /*!< Filter bit 7 */ |
7761 | #define CAN_F1R2_FB8_Pos (8U) |
||
9 | mjames | 7762 | #define CAN_F1R2_FB8_Msk (0x1UL << CAN_F1R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7763 | #define CAN_F1R2_FB8 CAN_F1R2_FB8_Msk /*!< Filter bit 8 */ |
7764 | #define CAN_F1R2_FB9_Pos (9U) |
||
9 | mjames | 7765 | #define CAN_F1R2_FB9_Msk (0x1UL << CAN_F1R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7766 | #define CAN_F1R2_FB9 CAN_F1R2_FB9_Msk /*!< Filter bit 9 */ |
7767 | #define CAN_F1R2_FB10_Pos (10U) |
||
9 | mjames | 7768 | #define CAN_F1R2_FB10_Msk (0x1UL << CAN_F1R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7769 | #define CAN_F1R2_FB10 CAN_F1R2_FB10_Msk /*!< Filter bit 10 */ |
7770 | #define CAN_F1R2_FB11_Pos (11U) |
||
9 | mjames | 7771 | #define CAN_F1R2_FB11_Msk (0x1UL << CAN_F1R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7772 | #define CAN_F1R2_FB11 CAN_F1R2_FB11_Msk /*!< Filter bit 11 */ |
7773 | #define CAN_F1R2_FB12_Pos (12U) |
||
9 | mjames | 7774 | #define CAN_F1R2_FB12_Msk (0x1UL << CAN_F1R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7775 | #define CAN_F1R2_FB12 CAN_F1R2_FB12_Msk /*!< Filter bit 12 */ |
7776 | #define CAN_F1R2_FB13_Pos (13U) |
||
9 | mjames | 7777 | #define CAN_F1R2_FB13_Msk (0x1UL << CAN_F1R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7778 | #define CAN_F1R2_FB13 CAN_F1R2_FB13_Msk /*!< Filter bit 13 */ |
7779 | #define CAN_F1R2_FB14_Pos (14U) |
||
9 | mjames | 7780 | #define CAN_F1R2_FB14_Msk (0x1UL << CAN_F1R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7781 | #define CAN_F1R2_FB14 CAN_F1R2_FB14_Msk /*!< Filter bit 14 */ |
7782 | #define CAN_F1R2_FB15_Pos (15U) |
||
9 | mjames | 7783 | #define CAN_F1R2_FB15_Msk (0x1UL << CAN_F1R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7784 | #define CAN_F1R2_FB15 CAN_F1R2_FB15_Msk /*!< Filter bit 15 */ |
7785 | #define CAN_F1R2_FB16_Pos (16U) |
||
9 | mjames | 7786 | #define CAN_F1R2_FB16_Msk (0x1UL << CAN_F1R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7787 | #define CAN_F1R2_FB16 CAN_F1R2_FB16_Msk /*!< Filter bit 16 */ |
7788 | #define CAN_F1R2_FB17_Pos (17U) |
||
9 | mjames | 7789 | #define CAN_F1R2_FB17_Msk (0x1UL << CAN_F1R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7790 | #define CAN_F1R2_FB17 CAN_F1R2_FB17_Msk /*!< Filter bit 17 */ |
7791 | #define CAN_F1R2_FB18_Pos (18U) |
||
9 | mjames | 7792 | #define CAN_F1R2_FB18_Msk (0x1UL << CAN_F1R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7793 | #define CAN_F1R2_FB18 CAN_F1R2_FB18_Msk /*!< Filter bit 18 */ |
7794 | #define CAN_F1R2_FB19_Pos (19U) |
||
9 | mjames | 7795 | #define CAN_F1R2_FB19_Msk (0x1UL << CAN_F1R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7796 | #define CAN_F1R2_FB19 CAN_F1R2_FB19_Msk /*!< Filter bit 19 */ |
7797 | #define CAN_F1R2_FB20_Pos (20U) |
||
9 | mjames | 7798 | #define CAN_F1R2_FB20_Msk (0x1UL << CAN_F1R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7799 | #define CAN_F1R2_FB20 CAN_F1R2_FB20_Msk /*!< Filter bit 20 */ |
7800 | #define CAN_F1R2_FB21_Pos (21U) |
||
9 | mjames | 7801 | #define CAN_F1R2_FB21_Msk (0x1UL << CAN_F1R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7802 | #define CAN_F1R2_FB21 CAN_F1R2_FB21_Msk /*!< Filter bit 21 */ |
7803 | #define CAN_F1R2_FB22_Pos (22U) |
||
9 | mjames | 7804 | #define CAN_F1R2_FB22_Msk (0x1UL << CAN_F1R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7805 | #define CAN_F1R2_FB22 CAN_F1R2_FB22_Msk /*!< Filter bit 22 */ |
7806 | #define CAN_F1R2_FB23_Pos (23U) |
||
9 | mjames | 7807 | #define CAN_F1R2_FB23_Msk (0x1UL << CAN_F1R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7808 | #define CAN_F1R2_FB23 CAN_F1R2_FB23_Msk /*!< Filter bit 23 */ |
7809 | #define CAN_F1R2_FB24_Pos (24U) |
||
9 | mjames | 7810 | #define CAN_F1R2_FB24_Msk (0x1UL << CAN_F1R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7811 | #define CAN_F1R2_FB24 CAN_F1R2_FB24_Msk /*!< Filter bit 24 */ |
7812 | #define CAN_F1R2_FB25_Pos (25U) |
||
9 | mjames | 7813 | #define CAN_F1R2_FB25_Msk (0x1UL << CAN_F1R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7814 | #define CAN_F1R2_FB25 CAN_F1R2_FB25_Msk /*!< Filter bit 25 */ |
7815 | #define CAN_F1R2_FB26_Pos (26U) |
||
9 | mjames | 7816 | #define CAN_F1R2_FB26_Msk (0x1UL << CAN_F1R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7817 | #define CAN_F1R2_FB26 CAN_F1R2_FB26_Msk /*!< Filter bit 26 */ |
7818 | #define CAN_F1R2_FB27_Pos (27U) |
||
9 | mjames | 7819 | #define CAN_F1R2_FB27_Msk (0x1UL << CAN_F1R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7820 | #define CAN_F1R2_FB27 CAN_F1R2_FB27_Msk /*!< Filter bit 27 */ |
7821 | #define CAN_F1R2_FB28_Pos (28U) |
||
9 | mjames | 7822 | #define CAN_F1R2_FB28_Msk (0x1UL << CAN_F1R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7823 | #define CAN_F1R2_FB28 CAN_F1R2_FB28_Msk /*!< Filter bit 28 */ |
7824 | #define CAN_F1R2_FB29_Pos (29U) |
||
9 | mjames | 7825 | #define CAN_F1R2_FB29_Msk (0x1UL << CAN_F1R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7826 | #define CAN_F1R2_FB29 CAN_F1R2_FB29_Msk /*!< Filter bit 29 */ |
7827 | #define CAN_F1R2_FB30_Pos (30U) |
||
9 | mjames | 7828 | #define CAN_F1R2_FB30_Msk (0x1UL << CAN_F1R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7829 | #define CAN_F1R2_FB30 CAN_F1R2_FB30_Msk /*!< Filter bit 30 */ |
7830 | #define CAN_F1R2_FB31_Pos (31U) |
||
9 | mjames | 7831 | #define CAN_F1R2_FB31_Msk (0x1UL << CAN_F1R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7832 | #define CAN_F1R2_FB31 CAN_F1R2_FB31_Msk /*!< Filter bit 31 */ |
7833 | |||
7834 | /******************* Bit definition for CAN_F2R2 register *******************/ |
||
7835 | #define CAN_F2R2_FB0_Pos (0U) |
||
9 | mjames | 7836 | #define CAN_F2R2_FB0_Msk (0x1UL << CAN_F2R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7837 | #define CAN_F2R2_FB0 CAN_F2R2_FB0_Msk /*!< Filter bit 0 */ |
7838 | #define CAN_F2R2_FB1_Pos (1U) |
||
9 | mjames | 7839 | #define CAN_F2R2_FB1_Msk (0x1UL << CAN_F2R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7840 | #define CAN_F2R2_FB1 CAN_F2R2_FB1_Msk /*!< Filter bit 1 */ |
7841 | #define CAN_F2R2_FB2_Pos (2U) |
||
9 | mjames | 7842 | #define CAN_F2R2_FB2_Msk (0x1UL << CAN_F2R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7843 | #define CAN_F2R2_FB2 CAN_F2R2_FB2_Msk /*!< Filter bit 2 */ |
7844 | #define CAN_F2R2_FB3_Pos (3U) |
||
9 | mjames | 7845 | #define CAN_F2R2_FB3_Msk (0x1UL << CAN_F2R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7846 | #define CAN_F2R2_FB3 CAN_F2R2_FB3_Msk /*!< Filter bit 3 */ |
7847 | #define CAN_F2R2_FB4_Pos (4U) |
||
9 | mjames | 7848 | #define CAN_F2R2_FB4_Msk (0x1UL << CAN_F2R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7849 | #define CAN_F2R2_FB4 CAN_F2R2_FB4_Msk /*!< Filter bit 4 */ |
7850 | #define CAN_F2R2_FB5_Pos (5U) |
||
9 | mjames | 7851 | #define CAN_F2R2_FB5_Msk (0x1UL << CAN_F2R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7852 | #define CAN_F2R2_FB5 CAN_F2R2_FB5_Msk /*!< Filter bit 5 */ |
7853 | #define CAN_F2R2_FB6_Pos (6U) |
||
9 | mjames | 7854 | #define CAN_F2R2_FB6_Msk (0x1UL << CAN_F2R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7855 | #define CAN_F2R2_FB6 CAN_F2R2_FB6_Msk /*!< Filter bit 6 */ |
7856 | #define CAN_F2R2_FB7_Pos (7U) |
||
9 | mjames | 7857 | #define CAN_F2R2_FB7_Msk (0x1UL << CAN_F2R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7858 | #define CAN_F2R2_FB7 CAN_F2R2_FB7_Msk /*!< Filter bit 7 */ |
7859 | #define CAN_F2R2_FB8_Pos (8U) |
||
9 | mjames | 7860 | #define CAN_F2R2_FB8_Msk (0x1UL << CAN_F2R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7861 | #define CAN_F2R2_FB8 CAN_F2R2_FB8_Msk /*!< Filter bit 8 */ |
7862 | #define CAN_F2R2_FB9_Pos (9U) |
||
9 | mjames | 7863 | #define CAN_F2R2_FB9_Msk (0x1UL << CAN_F2R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7864 | #define CAN_F2R2_FB9 CAN_F2R2_FB9_Msk /*!< Filter bit 9 */ |
7865 | #define CAN_F2R2_FB10_Pos (10U) |
||
9 | mjames | 7866 | #define CAN_F2R2_FB10_Msk (0x1UL << CAN_F2R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7867 | #define CAN_F2R2_FB10 CAN_F2R2_FB10_Msk /*!< Filter bit 10 */ |
7868 | #define CAN_F2R2_FB11_Pos (11U) |
||
9 | mjames | 7869 | #define CAN_F2R2_FB11_Msk (0x1UL << CAN_F2R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7870 | #define CAN_F2R2_FB11 CAN_F2R2_FB11_Msk /*!< Filter bit 11 */ |
7871 | #define CAN_F2R2_FB12_Pos (12U) |
||
9 | mjames | 7872 | #define CAN_F2R2_FB12_Msk (0x1UL << CAN_F2R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7873 | #define CAN_F2R2_FB12 CAN_F2R2_FB12_Msk /*!< Filter bit 12 */ |
7874 | #define CAN_F2R2_FB13_Pos (13U) |
||
9 | mjames | 7875 | #define CAN_F2R2_FB13_Msk (0x1UL << CAN_F2R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7876 | #define CAN_F2R2_FB13 CAN_F2R2_FB13_Msk /*!< Filter bit 13 */ |
7877 | #define CAN_F2R2_FB14_Pos (14U) |
||
9 | mjames | 7878 | #define CAN_F2R2_FB14_Msk (0x1UL << CAN_F2R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7879 | #define CAN_F2R2_FB14 CAN_F2R2_FB14_Msk /*!< Filter bit 14 */ |
7880 | #define CAN_F2R2_FB15_Pos (15U) |
||
9 | mjames | 7881 | #define CAN_F2R2_FB15_Msk (0x1UL << CAN_F2R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7882 | #define CAN_F2R2_FB15 CAN_F2R2_FB15_Msk /*!< Filter bit 15 */ |
7883 | #define CAN_F2R2_FB16_Pos (16U) |
||
9 | mjames | 7884 | #define CAN_F2R2_FB16_Msk (0x1UL << CAN_F2R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7885 | #define CAN_F2R2_FB16 CAN_F2R2_FB16_Msk /*!< Filter bit 16 */ |
7886 | #define CAN_F2R2_FB17_Pos (17U) |
||
9 | mjames | 7887 | #define CAN_F2R2_FB17_Msk (0x1UL << CAN_F2R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7888 | #define CAN_F2R2_FB17 CAN_F2R2_FB17_Msk /*!< Filter bit 17 */ |
7889 | #define CAN_F2R2_FB18_Pos (18U) |
||
9 | mjames | 7890 | #define CAN_F2R2_FB18_Msk (0x1UL << CAN_F2R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7891 | #define CAN_F2R2_FB18 CAN_F2R2_FB18_Msk /*!< Filter bit 18 */ |
7892 | #define CAN_F2R2_FB19_Pos (19U) |
||
9 | mjames | 7893 | #define CAN_F2R2_FB19_Msk (0x1UL << CAN_F2R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7894 | #define CAN_F2R2_FB19 CAN_F2R2_FB19_Msk /*!< Filter bit 19 */ |
7895 | #define CAN_F2R2_FB20_Pos (20U) |
||
9 | mjames | 7896 | #define CAN_F2R2_FB20_Msk (0x1UL << CAN_F2R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7897 | #define CAN_F2R2_FB20 CAN_F2R2_FB20_Msk /*!< Filter bit 20 */ |
7898 | #define CAN_F2R2_FB21_Pos (21U) |
||
9 | mjames | 7899 | #define CAN_F2R2_FB21_Msk (0x1UL << CAN_F2R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7900 | #define CAN_F2R2_FB21 CAN_F2R2_FB21_Msk /*!< Filter bit 21 */ |
7901 | #define CAN_F2R2_FB22_Pos (22U) |
||
9 | mjames | 7902 | #define CAN_F2R2_FB22_Msk (0x1UL << CAN_F2R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 7903 | #define CAN_F2R2_FB22 CAN_F2R2_FB22_Msk /*!< Filter bit 22 */ |
7904 | #define CAN_F2R2_FB23_Pos (23U) |
||
9 | mjames | 7905 | #define CAN_F2R2_FB23_Msk (0x1UL << CAN_F2R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 7906 | #define CAN_F2R2_FB23 CAN_F2R2_FB23_Msk /*!< Filter bit 23 */ |
7907 | #define CAN_F2R2_FB24_Pos (24U) |
||
9 | mjames | 7908 | #define CAN_F2R2_FB24_Msk (0x1UL << CAN_F2R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 7909 | #define CAN_F2R2_FB24 CAN_F2R2_FB24_Msk /*!< Filter bit 24 */ |
7910 | #define CAN_F2R2_FB25_Pos (25U) |
||
9 | mjames | 7911 | #define CAN_F2R2_FB25_Msk (0x1UL << CAN_F2R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 7912 | #define CAN_F2R2_FB25 CAN_F2R2_FB25_Msk /*!< Filter bit 25 */ |
7913 | #define CAN_F2R2_FB26_Pos (26U) |
||
9 | mjames | 7914 | #define CAN_F2R2_FB26_Msk (0x1UL << CAN_F2R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 7915 | #define CAN_F2R2_FB26 CAN_F2R2_FB26_Msk /*!< Filter bit 26 */ |
7916 | #define CAN_F2R2_FB27_Pos (27U) |
||
9 | mjames | 7917 | #define CAN_F2R2_FB27_Msk (0x1UL << CAN_F2R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 7918 | #define CAN_F2R2_FB27 CAN_F2R2_FB27_Msk /*!< Filter bit 27 */ |
7919 | #define CAN_F2R2_FB28_Pos (28U) |
||
9 | mjames | 7920 | #define CAN_F2R2_FB28_Msk (0x1UL << CAN_F2R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 7921 | #define CAN_F2R2_FB28 CAN_F2R2_FB28_Msk /*!< Filter bit 28 */ |
7922 | #define CAN_F2R2_FB29_Pos (29U) |
||
9 | mjames | 7923 | #define CAN_F2R2_FB29_Msk (0x1UL << CAN_F2R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 7924 | #define CAN_F2R2_FB29 CAN_F2R2_FB29_Msk /*!< Filter bit 29 */ |
7925 | #define CAN_F2R2_FB30_Pos (30U) |
||
9 | mjames | 7926 | #define CAN_F2R2_FB30_Msk (0x1UL << CAN_F2R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 7927 | #define CAN_F2R2_FB30 CAN_F2R2_FB30_Msk /*!< Filter bit 30 */ |
7928 | #define CAN_F2R2_FB31_Pos (31U) |
||
9 | mjames | 7929 | #define CAN_F2R2_FB31_Msk (0x1UL << CAN_F2R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 7930 | #define CAN_F2R2_FB31 CAN_F2R2_FB31_Msk /*!< Filter bit 31 */ |
7931 | |||
7932 | /******************* Bit definition for CAN_F3R2 register *******************/ |
||
7933 | #define CAN_F3R2_FB0_Pos (0U) |
||
9 | mjames | 7934 | #define CAN_F3R2_FB0_Msk (0x1UL << CAN_F3R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 7935 | #define CAN_F3R2_FB0 CAN_F3R2_FB0_Msk /*!< Filter bit 0 */ |
7936 | #define CAN_F3R2_FB1_Pos (1U) |
||
9 | mjames | 7937 | #define CAN_F3R2_FB1_Msk (0x1UL << CAN_F3R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 7938 | #define CAN_F3R2_FB1 CAN_F3R2_FB1_Msk /*!< Filter bit 1 */ |
7939 | #define CAN_F3R2_FB2_Pos (2U) |
||
9 | mjames | 7940 | #define CAN_F3R2_FB2_Msk (0x1UL << CAN_F3R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 7941 | #define CAN_F3R2_FB2 CAN_F3R2_FB2_Msk /*!< Filter bit 2 */ |
7942 | #define CAN_F3R2_FB3_Pos (3U) |
||
9 | mjames | 7943 | #define CAN_F3R2_FB3_Msk (0x1UL << CAN_F3R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 7944 | #define CAN_F3R2_FB3 CAN_F3R2_FB3_Msk /*!< Filter bit 3 */ |
7945 | #define CAN_F3R2_FB4_Pos (4U) |
||
9 | mjames | 7946 | #define CAN_F3R2_FB4_Msk (0x1UL << CAN_F3R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 7947 | #define CAN_F3R2_FB4 CAN_F3R2_FB4_Msk /*!< Filter bit 4 */ |
7948 | #define CAN_F3R2_FB5_Pos (5U) |
||
9 | mjames | 7949 | #define CAN_F3R2_FB5_Msk (0x1UL << CAN_F3R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 7950 | #define CAN_F3R2_FB5 CAN_F3R2_FB5_Msk /*!< Filter bit 5 */ |
7951 | #define CAN_F3R2_FB6_Pos (6U) |
||
9 | mjames | 7952 | #define CAN_F3R2_FB6_Msk (0x1UL << CAN_F3R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 7953 | #define CAN_F3R2_FB6 CAN_F3R2_FB6_Msk /*!< Filter bit 6 */ |
7954 | #define CAN_F3R2_FB7_Pos (7U) |
||
9 | mjames | 7955 | #define CAN_F3R2_FB7_Msk (0x1UL << CAN_F3R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 7956 | #define CAN_F3R2_FB7 CAN_F3R2_FB7_Msk /*!< Filter bit 7 */ |
7957 | #define CAN_F3R2_FB8_Pos (8U) |
||
9 | mjames | 7958 | #define CAN_F3R2_FB8_Msk (0x1UL << CAN_F3R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 7959 | #define CAN_F3R2_FB8 CAN_F3R2_FB8_Msk /*!< Filter bit 8 */ |
7960 | #define CAN_F3R2_FB9_Pos (9U) |
||
9 | mjames | 7961 | #define CAN_F3R2_FB9_Msk (0x1UL << CAN_F3R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 7962 | #define CAN_F3R2_FB9 CAN_F3R2_FB9_Msk /*!< Filter bit 9 */ |
7963 | #define CAN_F3R2_FB10_Pos (10U) |
||
9 | mjames | 7964 | #define CAN_F3R2_FB10_Msk (0x1UL << CAN_F3R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 7965 | #define CAN_F3R2_FB10 CAN_F3R2_FB10_Msk /*!< Filter bit 10 */ |
7966 | #define CAN_F3R2_FB11_Pos (11U) |
||
9 | mjames | 7967 | #define CAN_F3R2_FB11_Msk (0x1UL << CAN_F3R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 7968 | #define CAN_F3R2_FB11 CAN_F3R2_FB11_Msk /*!< Filter bit 11 */ |
7969 | #define CAN_F3R2_FB12_Pos (12U) |
||
9 | mjames | 7970 | #define CAN_F3R2_FB12_Msk (0x1UL << CAN_F3R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 7971 | #define CAN_F3R2_FB12 CAN_F3R2_FB12_Msk /*!< Filter bit 12 */ |
7972 | #define CAN_F3R2_FB13_Pos (13U) |
||
9 | mjames | 7973 | #define CAN_F3R2_FB13_Msk (0x1UL << CAN_F3R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 7974 | #define CAN_F3R2_FB13 CAN_F3R2_FB13_Msk /*!< Filter bit 13 */ |
7975 | #define CAN_F3R2_FB14_Pos (14U) |
||
9 | mjames | 7976 | #define CAN_F3R2_FB14_Msk (0x1UL << CAN_F3R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 7977 | #define CAN_F3R2_FB14 CAN_F3R2_FB14_Msk /*!< Filter bit 14 */ |
7978 | #define CAN_F3R2_FB15_Pos (15U) |
||
9 | mjames | 7979 | #define CAN_F3R2_FB15_Msk (0x1UL << CAN_F3R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 7980 | #define CAN_F3R2_FB15 CAN_F3R2_FB15_Msk /*!< Filter bit 15 */ |
7981 | #define CAN_F3R2_FB16_Pos (16U) |
||
9 | mjames | 7982 | #define CAN_F3R2_FB16_Msk (0x1UL << CAN_F3R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 7983 | #define CAN_F3R2_FB16 CAN_F3R2_FB16_Msk /*!< Filter bit 16 */ |
7984 | #define CAN_F3R2_FB17_Pos (17U) |
||
9 | mjames | 7985 | #define CAN_F3R2_FB17_Msk (0x1UL << CAN_F3R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 7986 | #define CAN_F3R2_FB17 CAN_F3R2_FB17_Msk /*!< Filter bit 17 */ |
7987 | #define CAN_F3R2_FB18_Pos (18U) |
||
9 | mjames | 7988 | #define CAN_F3R2_FB18_Msk (0x1UL << CAN_F3R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 7989 | #define CAN_F3R2_FB18 CAN_F3R2_FB18_Msk /*!< Filter bit 18 */ |
7990 | #define CAN_F3R2_FB19_Pos (19U) |
||
9 | mjames | 7991 | #define CAN_F3R2_FB19_Msk (0x1UL << CAN_F3R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 7992 | #define CAN_F3R2_FB19 CAN_F3R2_FB19_Msk /*!< Filter bit 19 */ |
7993 | #define CAN_F3R2_FB20_Pos (20U) |
||
9 | mjames | 7994 | #define CAN_F3R2_FB20_Msk (0x1UL << CAN_F3R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 7995 | #define CAN_F3R2_FB20 CAN_F3R2_FB20_Msk /*!< Filter bit 20 */ |
7996 | #define CAN_F3R2_FB21_Pos (21U) |
||
9 | mjames | 7997 | #define CAN_F3R2_FB21_Msk (0x1UL << CAN_F3R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 7998 | #define CAN_F3R2_FB21 CAN_F3R2_FB21_Msk /*!< Filter bit 21 */ |
7999 | #define CAN_F3R2_FB22_Pos (22U) |
||
9 | mjames | 8000 | #define CAN_F3R2_FB22_Msk (0x1UL << CAN_F3R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8001 | #define CAN_F3R2_FB22 CAN_F3R2_FB22_Msk /*!< Filter bit 22 */ |
8002 | #define CAN_F3R2_FB23_Pos (23U) |
||
9 | mjames | 8003 | #define CAN_F3R2_FB23_Msk (0x1UL << CAN_F3R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8004 | #define CAN_F3R2_FB23 CAN_F3R2_FB23_Msk /*!< Filter bit 23 */ |
8005 | #define CAN_F3R2_FB24_Pos (24U) |
||
9 | mjames | 8006 | #define CAN_F3R2_FB24_Msk (0x1UL << CAN_F3R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8007 | #define CAN_F3R2_FB24 CAN_F3R2_FB24_Msk /*!< Filter bit 24 */ |
8008 | #define CAN_F3R2_FB25_Pos (25U) |
||
9 | mjames | 8009 | #define CAN_F3R2_FB25_Msk (0x1UL << CAN_F3R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8010 | #define CAN_F3R2_FB25 CAN_F3R2_FB25_Msk /*!< Filter bit 25 */ |
8011 | #define CAN_F3R2_FB26_Pos (26U) |
||
9 | mjames | 8012 | #define CAN_F3R2_FB26_Msk (0x1UL << CAN_F3R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8013 | #define CAN_F3R2_FB26 CAN_F3R2_FB26_Msk /*!< Filter bit 26 */ |
8014 | #define CAN_F3R2_FB27_Pos (27U) |
||
9 | mjames | 8015 | #define CAN_F3R2_FB27_Msk (0x1UL << CAN_F3R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8016 | #define CAN_F3R2_FB27 CAN_F3R2_FB27_Msk /*!< Filter bit 27 */ |
8017 | #define CAN_F3R2_FB28_Pos (28U) |
||
9 | mjames | 8018 | #define CAN_F3R2_FB28_Msk (0x1UL << CAN_F3R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8019 | #define CAN_F3R2_FB28 CAN_F3R2_FB28_Msk /*!< Filter bit 28 */ |
8020 | #define CAN_F3R2_FB29_Pos (29U) |
||
9 | mjames | 8021 | #define CAN_F3R2_FB29_Msk (0x1UL << CAN_F3R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8022 | #define CAN_F3R2_FB29 CAN_F3R2_FB29_Msk /*!< Filter bit 29 */ |
8023 | #define CAN_F3R2_FB30_Pos (30U) |
||
9 | mjames | 8024 | #define CAN_F3R2_FB30_Msk (0x1UL << CAN_F3R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8025 | #define CAN_F3R2_FB30 CAN_F3R2_FB30_Msk /*!< Filter bit 30 */ |
8026 | #define CAN_F3R2_FB31_Pos (31U) |
||
9 | mjames | 8027 | #define CAN_F3R2_FB31_Msk (0x1UL << CAN_F3R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8028 | #define CAN_F3R2_FB31 CAN_F3R2_FB31_Msk /*!< Filter bit 31 */ |
8029 | |||
8030 | /******************* Bit definition for CAN_F4R2 register *******************/ |
||
8031 | #define CAN_F4R2_FB0_Pos (0U) |
||
9 | mjames | 8032 | #define CAN_F4R2_FB0_Msk (0x1UL << CAN_F4R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8033 | #define CAN_F4R2_FB0 CAN_F4R2_FB0_Msk /*!< Filter bit 0 */ |
8034 | #define CAN_F4R2_FB1_Pos (1U) |
||
9 | mjames | 8035 | #define CAN_F4R2_FB1_Msk (0x1UL << CAN_F4R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8036 | #define CAN_F4R2_FB1 CAN_F4R2_FB1_Msk /*!< Filter bit 1 */ |
8037 | #define CAN_F4R2_FB2_Pos (2U) |
||
9 | mjames | 8038 | #define CAN_F4R2_FB2_Msk (0x1UL << CAN_F4R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8039 | #define CAN_F4R2_FB2 CAN_F4R2_FB2_Msk /*!< Filter bit 2 */ |
8040 | #define CAN_F4R2_FB3_Pos (3U) |
||
9 | mjames | 8041 | #define CAN_F4R2_FB3_Msk (0x1UL << CAN_F4R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8042 | #define CAN_F4R2_FB3 CAN_F4R2_FB3_Msk /*!< Filter bit 3 */ |
8043 | #define CAN_F4R2_FB4_Pos (4U) |
||
9 | mjames | 8044 | #define CAN_F4R2_FB4_Msk (0x1UL << CAN_F4R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8045 | #define CAN_F4R2_FB4 CAN_F4R2_FB4_Msk /*!< Filter bit 4 */ |
8046 | #define CAN_F4R2_FB5_Pos (5U) |
||
9 | mjames | 8047 | #define CAN_F4R2_FB5_Msk (0x1UL << CAN_F4R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8048 | #define CAN_F4R2_FB5 CAN_F4R2_FB5_Msk /*!< Filter bit 5 */ |
8049 | #define CAN_F4R2_FB6_Pos (6U) |
||
9 | mjames | 8050 | #define CAN_F4R2_FB6_Msk (0x1UL << CAN_F4R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8051 | #define CAN_F4R2_FB6 CAN_F4R2_FB6_Msk /*!< Filter bit 6 */ |
8052 | #define CAN_F4R2_FB7_Pos (7U) |
||
9 | mjames | 8053 | #define CAN_F4R2_FB7_Msk (0x1UL << CAN_F4R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8054 | #define CAN_F4R2_FB7 CAN_F4R2_FB7_Msk /*!< Filter bit 7 */ |
8055 | #define CAN_F4R2_FB8_Pos (8U) |
||
9 | mjames | 8056 | #define CAN_F4R2_FB8_Msk (0x1UL << CAN_F4R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8057 | #define CAN_F4R2_FB8 CAN_F4R2_FB8_Msk /*!< Filter bit 8 */ |
8058 | #define CAN_F4R2_FB9_Pos (9U) |
||
9 | mjames | 8059 | #define CAN_F4R2_FB9_Msk (0x1UL << CAN_F4R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8060 | #define CAN_F4R2_FB9 CAN_F4R2_FB9_Msk /*!< Filter bit 9 */ |
8061 | #define CAN_F4R2_FB10_Pos (10U) |
||
9 | mjames | 8062 | #define CAN_F4R2_FB10_Msk (0x1UL << CAN_F4R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8063 | #define CAN_F4R2_FB10 CAN_F4R2_FB10_Msk /*!< Filter bit 10 */ |
8064 | #define CAN_F4R2_FB11_Pos (11U) |
||
9 | mjames | 8065 | #define CAN_F4R2_FB11_Msk (0x1UL << CAN_F4R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8066 | #define CAN_F4R2_FB11 CAN_F4R2_FB11_Msk /*!< Filter bit 11 */ |
8067 | #define CAN_F4R2_FB12_Pos (12U) |
||
9 | mjames | 8068 | #define CAN_F4R2_FB12_Msk (0x1UL << CAN_F4R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8069 | #define CAN_F4R2_FB12 CAN_F4R2_FB12_Msk /*!< Filter bit 12 */ |
8070 | #define CAN_F4R2_FB13_Pos (13U) |
||
9 | mjames | 8071 | #define CAN_F4R2_FB13_Msk (0x1UL << CAN_F4R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8072 | #define CAN_F4R2_FB13 CAN_F4R2_FB13_Msk /*!< Filter bit 13 */ |
8073 | #define CAN_F4R2_FB14_Pos (14U) |
||
9 | mjames | 8074 | #define CAN_F4R2_FB14_Msk (0x1UL << CAN_F4R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8075 | #define CAN_F4R2_FB14 CAN_F4R2_FB14_Msk /*!< Filter bit 14 */ |
8076 | #define CAN_F4R2_FB15_Pos (15U) |
||
9 | mjames | 8077 | #define CAN_F4R2_FB15_Msk (0x1UL << CAN_F4R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8078 | #define CAN_F4R2_FB15 CAN_F4R2_FB15_Msk /*!< Filter bit 15 */ |
8079 | #define CAN_F4R2_FB16_Pos (16U) |
||
9 | mjames | 8080 | #define CAN_F4R2_FB16_Msk (0x1UL << CAN_F4R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8081 | #define CAN_F4R2_FB16 CAN_F4R2_FB16_Msk /*!< Filter bit 16 */ |
8082 | #define CAN_F4R2_FB17_Pos (17U) |
||
9 | mjames | 8083 | #define CAN_F4R2_FB17_Msk (0x1UL << CAN_F4R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8084 | #define CAN_F4R2_FB17 CAN_F4R2_FB17_Msk /*!< Filter bit 17 */ |
8085 | #define CAN_F4R2_FB18_Pos (18U) |
||
9 | mjames | 8086 | #define CAN_F4R2_FB18_Msk (0x1UL << CAN_F4R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8087 | #define CAN_F4R2_FB18 CAN_F4R2_FB18_Msk /*!< Filter bit 18 */ |
8088 | #define CAN_F4R2_FB19_Pos (19U) |
||
9 | mjames | 8089 | #define CAN_F4R2_FB19_Msk (0x1UL << CAN_F4R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8090 | #define CAN_F4R2_FB19 CAN_F4R2_FB19_Msk /*!< Filter bit 19 */ |
8091 | #define CAN_F4R2_FB20_Pos (20U) |
||
9 | mjames | 8092 | #define CAN_F4R2_FB20_Msk (0x1UL << CAN_F4R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8093 | #define CAN_F4R2_FB20 CAN_F4R2_FB20_Msk /*!< Filter bit 20 */ |
8094 | #define CAN_F4R2_FB21_Pos (21U) |
||
9 | mjames | 8095 | #define CAN_F4R2_FB21_Msk (0x1UL << CAN_F4R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8096 | #define CAN_F4R2_FB21 CAN_F4R2_FB21_Msk /*!< Filter bit 21 */ |
8097 | #define CAN_F4R2_FB22_Pos (22U) |
||
9 | mjames | 8098 | #define CAN_F4R2_FB22_Msk (0x1UL << CAN_F4R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8099 | #define CAN_F4R2_FB22 CAN_F4R2_FB22_Msk /*!< Filter bit 22 */ |
8100 | #define CAN_F4R2_FB23_Pos (23U) |
||
9 | mjames | 8101 | #define CAN_F4R2_FB23_Msk (0x1UL << CAN_F4R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8102 | #define CAN_F4R2_FB23 CAN_F4R2_FB23_Msk /*!< Filter bit 23 */ |
8103 | #define CAN_F4R2_FB24_Pos (24U) |
||
9 | mjames | 8104 | #define CAN_F4R2_FB24_Msk (0x1UL << CAN_F4R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8105 | #define CAN_F4R2_FB24 CAN_F4R2_FB24_Msk /*!< Filter bit 24 */ |
8106 | #define CAN_F4R2_FB25_Pos (25U) |
||
9 | mjames | 8107 | #define CAN_F4R2_FB25_Msk (0x1UL << CAN_F4R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8108 | #define CAN_F4R2_FB25 CAN_F4R2_FB25_Msk /*!< Filter bit 25 */ |
8109 | #define CAN_F4R2_FB26_Pos (26U) |
||
9 | mjames | 8110 | #define CAN_F4R2_FB26_Msk (0x1UL << CAN_F4R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8111 | #define CAN_F4R2_FB26 CAN_F4R2_FB26_Msk /*!< Filter bit 26 */ |
8112 | #define CAN_F4R2_FB27_Pos (27U) |
||
9 | mjames | 8113 | #define CAN_F4R2_FB27_Msk (0x1UL << CAN_F4R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8114 | #define CAN_F4R2_FB27 CAN_F4R2_FB27_Msk /*!< Filter bit 27 */ |
8115 | #define CAN_F4R2_FB28_Pos (28U) |
||
9 | mjames | 8116 | #define CAN_F4R2_FB28_Msk (0x1UL << CAN_F4R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8117 | #define CAN_F4R2_FB28 CAN_F4R2_FB28_Msk /*!< Filter bit 28 */ |
8118 | #define CAN_F4R2_FB29_Pos (29U) |
||
9 | mjames | 8119 | #define CAN_F4R2_FB29_Msk (0x1UL << CAN_F4R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8120 | #define CAN_F4R2_FB29 CAN_F4R2_FB29_Msk /*!< Filter bit 29 */ |
8121 | #define CAN_F4R2_FB30_Pos (30U) |
||
9 | mjames | 8122 | #define CAN_F4R2_FB30_Msk (0x1UL << CAN_F4R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8123 | #define CAN_F4R2_FB30 CAN_F4R2_FB30_Msk /*!< Filter bit 30 */ |
8124 | #define CAN_F4R2_FB31_Pos (31U) |
||
9 | mjames | 8125 | #define CAN_F4R2_FB31_Msk (0x1UL << CAN_F4R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8126 | #define CAN_F4R2_FB31 CAN_F4R2_FB31_Msk /*!< Filter bit 31 */ |
8127 | |||
8128 | /******************* Bit definition for CAN_F5R2 register *******************/ |
||
8129 | #define CAN_F5R2_FB0_Pos (0U) |
||
9 | mjames | 8130 | #define CAN_F5R2_FB0_Msk (0x1UL << CAN_F5R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8131 | #define CAN_F5R2_FB0 CAN_F5R2_FB0_Msk /*!< Filter bit 0 */ |
8132 | #define CAN_F5R2_FB1_Pos (1U) |
||
9 | mjames | 8133 | #define CAN_F5R2_FB1_Msk (0x1UL << CAN_F5R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8134 | #define CAN_F5R2_FB1 CAN_F5R2_FB1_Msk /*!< Filter bit 1 */ |
8135 | #define CAN_F5R2_FB2_Pos (2U) |
||
9 | mjames | 8136 | #define CAN_F5R2_FB2_Msk (0x1UL << CAN_F5R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8137 | #define CAN_F5R2_FB2 CAN_F5R2_FB2_Msk /*!< Filter bit 2 */ |
8138 | #define CAN_F5R2_FB3_Pos (3U) |
||
9 | mjames | 8139 | #define CAN_F5R2_FB3_Msk (0x1UL << CAN_F5R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8140 | #define CAN_F5R2_FB3 CAN_F5R2_FB3_Msk /*!< Filter bit 3 */ |
8141 | #define CAN_F5R2_FB4_Pos (4U) |
||
9 | mjames | 8142 | #define CAN_F5R2_FB4_Msk (0x1UL << CAN_F5R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8143 | #define CAN_F5R2_FB4 CAN_F5R2_FB4_Msk /*!< Filter bit 4 */ |
8144 | #define CAN_F5R2_FB5_Pos (5U) |
||
9 | mjames | 8145 | #define CAN_F5R2_FB5_Msk (0x1UL << CAN_F5R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8146 | #define CAN_F5R2_FB5 CAN_F5R2_FB5_Msk /*!< Filter bit 5 */ |
8147 | #define CAN_F5R2_FB6_Pos (6U) |
||
9 | mjames | 8148 | #define CAN_F5R2_FB6_Msk (0x1UL << CAN_F5R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8149 | #define CAN_F5R2_FB6 CAN_F5R2_FB6_Msk /*!< Filter bit 6 */ |
8150 | #define CAN_F5R2_FB7_Pos (7U) |
||
9 | mjames | 8151 | #define CAN_F5R2_FB7_Msk (0x1UL << CAN_F5R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8152 | #define CAN_F5R2_FB7 CAN_F5R2_FB7_Msk /*!< Filter bit 7 */ |
8153 | #define CAN_F5R2_FB8_Pos (8U) |
||
9 | mjames | 8154 | #define CAN_F5R2_FB8_Msk (0x1UL << CAN_F5R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8155 | #define CAN_F5R2_FB8 CAN_F5R2_FB8_Msk /*!< Filter bit 8 */ |
8156 | #define CAN_F5R2_FB9_Pos (9U) |
||
9 | mjames | 8157 | #define CAN_F5R2_FB9_Msk (0x1UL << CAN_F5R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8158 | #define CAN_F5R2_FB9 CAN_F5R2_FB9_Msk /*!< Filter bit 9 */ |
8159 | #define CAN_F5R2_FB10_Pos (10U) |
||
9 | mjames | 8160 | #define CAN_F5R2_FB10_Msk (0x1UL << CAN_F5R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8161 | #define CAN_F5R2_FB10 CAN_F5R2_FB10_Msk /*!< Filter bit 10 */ |
8162 | #define CAN_F5R2_FB11_Pos (11U) |
||
9 | mjames | 8163 | #define CAN_F5R2_FB11_Msk (0x1UL << CAN_F5R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8164 | #define CAN_F5R2_FB11 CAN_F5R2_FB11_Msk /*!< Filter bit 11 */ |
8165 | #define CAN_F5R2_FB12_Pos (12U) |
||
9 | mjames | 8166 | #define CAN_F5R2_FB12_Msk (0x1UL << CAN_F5R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8167 | #define CAN_F5R2_FB12 CAN_F5R2_FB12_Msk /*!< Filter bit 12 */ |
8168 | #define CAN_F5R2_FB13_Pos (13U) |
||
9 | mjames | 8169 | #define CAN_F5R2_FB13_Msk (0x1UL << CAN_F5R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8170 | #define CAN_F5R2_FB13 CAN_F5R2_FB13_Msk /*!< Filter bit 13 */ |
8171 | #define CAN_F5R2_FB14_Pos (14U) |
||
9 | mjames | 8172 | #define CAN_F5R2_FB14_Msk (0x1UL << CAN_F5R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8173 | #define CAN_F5R2_FB14 CAN_F5R2_FB14_Msk /*!< Filter bit 14 */ |
8174 | #define CAN_F5R2_FB15_Pos (15U) |
||
9 | mjames | 8175 | #define CAN_F5R2_FB15_Msk (0x1UL << CAN_F5R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8176 | #define CAN_F5R2_FB15 CAN_F5R2_FB15_Msk /*!< Filter bit 15 */ |
8177 | #define CAN_F5R2_FB16_Pos (16U) |
||
9 | mjames | 8178 | #define CAN_F5R2_FB16_Msk (0x1UL << CAN_F5R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8179 | #define CAN_F5R2_FB16 CAN_F5R2_FB16_Msk /*!< Filter bit 16 */ |
8180 | #define CAN_F5R2_FB17_Pos (17U) |
||
9 | mjames | 8181 | #define CAN_F5R2_FB17_Msk (0x1UL << CAN_F5R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8182 | #define CAN_F5R2_FB17 CAN_F5R2_FB17_Msk /*!< Filter bit 17 */ |
8183 | #define CAN_F5R2_FB18_Pos (18U) |
||
9 | mjames | 8184 | #define CAN_F5R2_FB18_Msk (0x1UL << CAN_F5R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8185 | #define CAN_F5R2_FB18 CAN_F5R2_FB18_Msk /*!< Filter bit 18 */ |
8186 | #define CAN_F5R2_FB19_Pos (19U) |
||
9 | mjames | 8187 | #define CAN_F5R2_FB19_Msk (0x1UL << CAN_F5R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8188 | #define CAN_F5R2_FB19 CAN_F5R2_FB19_Msk /*!< Filter bit 19 */ |
8189 | #define CAN_F5R2_FB20_Pos (20U) |
||
9 | mjames | 8190 | #define CAN_F5R2_FB20_Msk (0x1UL << CAN_F5R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8191 | #define CAN_F5R2_FB20 CAN_F5R2_FB20_Msk /*!< Filter bit 20 */ |
8192 | #define CAN_F5R2_FB21_Pos (21U) |
||
9 | mjames | 8193 | #define CAN_F5R2_FB21_Msk (0x1UL << CAN_F5R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8194 | #define CAN_F5R2_FB21 CAN_F5R2_FB21_Msk /*!< Filter bit 21 */ |
8195 | #define CAN_F5R2_FB22_Pos (22U) |
||
9 | mjames | 8196 | #define CAN_F5R2_FB22_Msk (0x1UL << CAN_F5R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8197 | #define CAN_F5R2_FB22 CAN_F5R2_FB22_Msk /*!< Filter bit 22 */ |
8198 | #define CAN_F5R2_FB23_Pos (23U) |
||
9 | mjames | 8199 | #define CAN_F5R2_FB23_Msk (0x1UL << CAN_F5R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8200 | #define CAN_F5R2_FB23 CAN_F5R2_FB23_Msk /*!< Filter bit 23 */ |
8201 | #define CAN_F5R2_FB24_Pos (24U) |
||
9 | mjames | 8202 | #define CAN_F5R2_FB24_Msk (0x1UL << CAN_F5R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8203 | #define CAN_F5R2_FB24 CAN_F5R2_FB24_Msk /*!< Filter bit 24 */ |
8204 | #define CAN_F5R2_FB25_Pos (25U) |
||
9 | mjames | 8205 | #define CAN_F5R2_FB25_Msk (0x1UL << CAN_F5R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8206 | #define CAN_F5R2_FB25 CAN_F5R2_FB25_Msk /*!< Filter bit 25 */ |
8207 | #define CAN_F5R2_FB26_Pos (26U) |
||
9 | mjames | 8208 | #define CAN_F5R2_FB26_Msk (0x1UL << CAN_F5R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8209 | #define CAN_F5R2_FB26 CAN_F5R2_FB26_Msk /*!< Filter bit 26 */ |
8210 | #define CAN_F5R2_FB27_Pos (27U) |
||
9 | mjames | 8211 | #define CAN_F5R2_FB27_Msk (0x1UL << CAN_F5R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8212 | #define CAN_F5R2_FB27 CAN_F5R2_FB27_Msk /*!< Filter bit 27 */ |
8213 | #define CAN_F5R2_FB28_Pos (28U) |
||
9 | mjames | 8214 | #define CAN_F5R2_FB28_Msk (0x1UL << CAN_F5R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8215 | #define CAN_F5R2_FB28 CAN_F5R2_FB28_Msk /*!< Filter bit 28 */ |
8216 | #define CAN_F5R2_FB29_Pos (29U) |
||
9 | mjames | 8217 | #define CAN_F5R2_FB29_Msk (0x1UL << CAN_F5R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8218 | #define CAN_F5R2_FB29 CAN_F5R2_FB29_Msk /*!< Filter bit 29 */ |
8219 | #define CAN_F5R2_FB30_Pos (30U) |
||
9 | mjames | 8220 | #define CAN_F5R2_FB30_Msk (0x1UL << CAN_F5R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8221 | #define CAN_F5R2_FB30 CAN_F5R2_FB30_Msk /*!< Filter bit 30 */ |
8222 | #define CAN_F5R2_FB31_Pos (31U) |
||
9 | mjames | 8223 | #define CAN_F5R2_FB31_Msk (0x1UL << CAN_F5R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8224 | #define CAN_F5R2_FB31 CAN_F5R2_FB31_Msk /*!< Filter bit 31 */ |
8225 | |||
8226 | /******************* Bit definition for CAN_F6R2 register *******************/ |
||
8227 | #define CAN_F6R2_FB0_Pos (0U) |
||
9 | mjames | 8228 | #define CAN_F6R2_FB0_Msk (0x1UL << CAN_F6R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8229 | #define CAN_F6R2_FB0 CAN_F6R2_FB0_Msk /*!< Filter bit 0 */ |
8230 | #define CAN_F6R2_FB1_Pos (1U) |
||
9 | mjames | 8231 | #define CAN_F6R2_FB1_Msk (0x1UL << CAN_F6R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8232 | #define CAN_F6R2_FB1 CAN_F6R2_FB1_Msk /*!< Filter bit 1 */ |
8233 | #define CAN_F6R2_FB2_Pos (2U) |
||
9 | mjames | 8234 | #define CAN_F6R2_FB2_Msk (0x1UL << CAN_F6R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8235 | #define CAN_F6R2_FB2 CAN_F6R2_FB2_Msk /*!< Filter bit 2 */ |
8236 | #define CAN_F6R2_FB3_Pos (3U) |
||
9 | mjames | 8237 | #define CAN_F6R2_FB3_Msk (0x1UL << CAN_F6R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8238 | #define CAN_F6R2_FB3 CAN_F6R2_FB3_Msk /*!< Filter bit 3 */ |
8239 | #define CAN_F6R2_FB4_Pos (4U) |
||
9 | mjames | 8240 | #define CAN_F6R2_FB4_Msk (0x1UL << CAN_F6R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8241 | #define CAN_F6R2_FB4 CAN_F6R2_FB4_Msk /*!< Filter bit 4 */ |
8242 | #define CAN_F6R2_FB5_Pos (5U) |
||
9 | mjames | 8243 | #define CAN_F6R2_FB5_Msk (0x1UL << CAN_F6R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8244 | #define CAN_F6R2_FB5 CAN_F6R2_FB5_Msk /*!< Filter bit 5 */ |
8245 | #define CAN_F6R2_FB6_Pos (6U) |
||
9 | mjames | 8246 | #define CAN_F6R2_FB6_Msk (0x1UL << CAN_F6R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8247 | #define CAN_F6R2_FB6 CAN_F6R2_FB6_Msk /*!< Filter bit 6 */ |
8248 | #define CAN_F6R2_FB7_Pos (7U) |
||
9 | mjames | 8249 | #define CAN_F6R2_FB7_Msk (0x1UL << CAN_F6R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8250 | #define CAN_F6R2_FB7 CAN_F6R2_FB7_Msk /*!< Filter bit 7 */ |
8251 | #define CAN_F6R2_FB8_Pos (8U) |
||
9 | mjames | 8252 | #define CAN_F6R2_FB8_Msk (0x1UL << CAN_F6R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8253 | #define CAN_F6R2_FB8 CAN_F6R2_FB8_Msk /*!< Filter bit 8 */ |
8254 | #define CAN_F6R2_FB9_Pos (9U) |
||
9 | mjames | 8255 | #define CAN_F6R2_FB9_Msk (0x1UL << CAN_F6R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8256 | #define CAN_F6R2_FB9 CAN_F6R2_FB9_Msk /*!< Filter bit 9 */ |
8257 | #define CAN_F6R2_FB10_Pos (10U) |
||
9 | mjames | 8258 | #define CAN_F6R2_FB10_Msk (0x1UL << CAN_F6R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8259 | #define CAN_F6R2_FB10 CAN_F6R2_FB10_Msk /*!< Filter bit 10 */ |
8260 | #define CAN_F6R2_FB11_Pos (11U) |
||
9 | mjames | 8261 | #define CAN_F6R2_FB11_Msk (0x1UL << CAN_F6R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8262 | #define CAN_F6R2_FB11 CAN_F6R2_FB11_Msk /*!< Filter bit 11 */ |
8263 | #define CAN_F6R2_FB12_Pos (12U) |
||
9 | mjames | 8264 | #define CAN_F6R2_FB12_Msk (0x1UL << CAN_F6R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8265 | #define CAN_F6R2_FB12 CAN_F6R2_FB12_Msk /*!< Filter bit 12 */ |
8266 | #define CAN_F6R2_FB13_Pos (13U) |
||
9 | mjames | 8267 | #define CAN_F6R2_FB13_Msk (0x1UL << CAN_F6R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8268 | #define CAN_F6R2_FB13 CAN_F6R2_FB13_Msk /*!< Filter bit 13 */ |
8269 | #define CAN_F6R2_FB14_Pos (14U) |
||
9 | mjames | 8270 | #define CAN_F6R2_FB14_Msk (0x1UL << CAN_F6R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8271 | #define CAN_F6R2_FB14 CAN_F6R2_FB14_Msk /*!< Filter bit 14 */ |
8272 | #define CAN_F6R2_FB15_Pos (15U) |
||
9 | mjames | 8273 | #define CAN_F6R2_FB15_Msk (0x1UL << CAN_F6R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8274 | #define CAN_F6R2_FB15 CAN_F6R2_FB15_Msk /*!< Filter bit 15 */ |
8275 | #define CAN_F6R2_FB16_Pos (16U) |
||
9 | mjames | 8276 | #define CAN_F6R2_FB16_Msk (0x1UL << CAN_F6R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8277 | #define CAN_F6R2_FB16 CAN_F6R2_FB16_Msk /*!< Filter bit 16 */ |
8278 | #define CAN_F6R2_FB17_Pos (17U) |
||
9 | mjames | 8279 | #define CAN_F6R2_FB17_Msk (0x1UL << CAN_F6R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8280 | #define CAN_F6R2_FB17 CAN_F6R2_FB17_Msk /*!< Filter bit 17 */ |
8281 | #define CAN_F6R2_FB18_Pos (18U) |
||
9 | mjames | 8282 | #define CAN_F6R2_FB18_Msk (0x1UL << CAN_F6R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8283 | #define CAN_F6R2_FB18 CAN_F6R2_FB18_Msk /*!< Filter bit 18 */ |
8284 | #define CAN_F6R2_FB19_Pos (19U) |
||
9 | mjames | 8285 | #define CAN_F6R2_FB19_Msk (0x1UL << CAN_F6R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8286 | #define CAN_F6R2_FB19 CAN_F6R2_FB19_Msk /*!< Filter bit 19 */ |
8287 | #define CAN_F6R2_FB20_Pos (20U) |
||
9 | mjames | 8288 | #define CAN_F6R2_FB20_Msk (0x1UL << CAN_F6R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8289 | #define CAN_F6R2_FB20 CAN_F6R2_FB20_Msk /*!< Filter bit 20 */ |
8290 | #define CAN_F6R2_FB21_Pos (21U) |
||
9 | mjames | 8291 | #define CAN_F6R2_FB21_Msk (0x1UL << CAN_F6R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8292 | #define CAN_F6R2_FB21 CAN_F6R2_FB21_Msk /*!< Filter bit 21 */ |
8293 | #define CAN_F6R2_FB22_Pos (22U) |
||
9 | mjames | 8294 | #define CAN_F6R2_FB22_Msk (0x1UL << CAN_F6R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8295 | #define CAN_F6R2_FB22 CAN_F6R2_FB22_Msk /*!< Filter bit 22 */ |
8296 | #define CAN_F6R2_FB23_Pos (23U) |
||
9 | mjames | 8297 | #define CAN_F6R2_FB23_Msk (0x1UL << CAN_F6R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8298 | #define CAN_F6R2_FB23 CAN_F6R2_FB23_Msk /*!< Filter bit 23 */ |
8299 | #define CAN_F6R2_FB24_Pos (24U) |
||
9 | mjames | 8300 | #define CAN_F6R2_FB24_Msk (0x1UL << CAN_F6R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8301 | #define CAN_F6R2_FB24 CAN_F6R2_FB24_Msk /*!< Filter bit 24 */ |
8302 | #define CAN_F6R2_FB25_Pos (25U) |
||
9 | mjames | 8303 | #define CAN_F6R2_FB25_Msk (0x1UL << CAN_F6R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8304 | #define CAN_F6R2_FB25 CAN_F6R2_FB25_Msk /*!< Filter bit 25 */ |
8305 | #define CAN_F6R2_FB26_Pos (26U) |
||
9 | mjames | 8306 | #define CAN_F6R2_FB26_Msk (0x1UL << CAN_F6R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8307 | #define CAN_F6R2_FB26 CAN_F6R2_FB26_Msk /*!< Filter bit 26 */ |
8308 | #define CAN_F6R2_FB27_Pos (27U) |
||
9 | mjames | 8309 | #define CAN_F6R2_FB27_Msk (0x1UL << CAN_F6R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8310 | #define CAN_F6R2_FB27 CAN_F6R2_FB27_Msk /*!< Filter bit 27 */ |
8311 | #define CAN_F6R2_FB28_Pos (28U) |
||
9 | mjames | 8312 | #define CAN_F6R2_FB28_Msk (0x1UL << CAN_F6R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8313 | #define CAN_F6R2_FB28 CAN_F6R2_FB28_Msk /*!< Filter bit 28 */ |
8314 | #define CAN_F6R2_FB29_Pos (29U) |
||
9 | mjames | 8315 | #define CAN_F6R2_FB29_Msk (0x1UL << CAN_F6R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8316 | #define CAN_F6R2_FB29 CAN_F6R2_FB29_Msk /*!< Filter bit 29 */ |
8317 | #define CAN_F6R2_FB30_Pos (30U) |
||
9 | mjames | 8318 | #define CAN_F6R2_FB30_Msk (0x1UL << CAN_F6R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8319 | #define CAN_F6R2_FB30 CAN_F6R2_FB30_Msk /*!< Filter bit 30 */ |
8320 | #define CAN_F6R2_FB31_Pos (31U) |
||
9 | mjames | 8321 | #define CAN_F6R2_FB31_Msk (0x1UL << CAN_F6R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8322 | #define CAN_F6R2_FB31 CAN_F6R2_FB31_Msk /*!< Filter bit 31 */ |
8323 | |||
8324 | /******************* Bit definition for CAN_F7R2 register *******************/ |
||
8325 | #define CAN_F7R2_FB0_Pos (0U) |
||
9 | mjames | 8326 | #define CAN_F7R2_FB0_Msk (0x1UL << CAN_F7R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8327 | #define CAN_F7R2_FB0 CAN_F7R2_FB0_Msk /*!< Filter bit 0 */ |
8328 | #define CAN_F7R2_FB1_Pos (1U) |
||
9 | mjames | 8329 | #define CAN_F7R2_FB1_Msk (0x1UL << CAN_F7R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8330 | #define CAN_F7R2_FB1 CAN_F7R2_FB1_Msk /*!< Filter bit 1 */ |
8331 | #define CAN_F7R2_FB2_Pos (2U) |
||
9 | mjames | 8332 | #define CAN_F7R2_FB2_Msk (0x1UL << CAN_F7R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8333 | #define CAN_F7R2_FB2 CAN_F7R2_FB2_Msk /*!< Filter bit 2 */ |
8334 | #define CAN_F7R2_FB3_Pos (3U) |
||
9 | mjames | 8335 | #define CAN_F7R2_FB3_Msk (0x1UL << CAN_F7R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8336 | #define CAN_F7R2_FB3 CAN_F7R2_FB3_Msk /*!< Filter bit 3 */ |
8337 | #define CAN_F7R2_FB4_Pos (4U) |
||
9 | mjames | 8338 | #define CAN_F7R2_FB4_Msk (0x1UL << CAN_F7R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8339 | #define CAN_F7R2_FB4 CAN_F7R2_FB4_Msk /*!< Filter bit 4 */ |
8340 | #define CAN_F7R2_FB5_Pos (5U) |
||
9 | mjames | 8341 | #define CAN_F7R2_FB5_Msk (0x1UL << CAN_F7R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8342 | #define CAN_F7R2_FB5 CAN_F7R2_FB5_Msk /*!< Filter bit 5 */ |
8343 | #define CAN_F7R2_FB6_Pos (6U) |
||
9 | mjames | 8344 | #define CAN_F7R2_FB6_Msk (0x1UL << CAN_F7R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8345 | #define CAN_F7R2_FB6 CAN_F7R2_FB6_Msk /*!< Filter bit 6 */ |
8346 | #define CAN_F7R2_FB7_Pos (7U) |
||
9 | mjames | 8347 | #define CAN_F7R2_FB7_Msk (0x1UL << CAN_F7R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8348 | #define CAN_F7R2_FB7 CAN_F7R2_FB7_Msk /*!< Filter bit 7 */ |
8349 | #define CAN_F7R2_FB8_Pos (8U) |
||
9 | mjames | 8350 | #define CAN_F7R2_FB8_Msk (0x1UL << CAN_F7R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8351 | #define CAN_F7R2_FB8 CAN_F7R2_FB8_Msk /*!< Filter bit 8 */ |
8352 | #define CAN_F7R2_FB9_Pos (9U) |
||
9 | mjames | 8353 | #define CAN_F7R2_FB9_Msk (0x1UL << CAN_F7R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8354 | #define CAN_F7R2_FB9 CAN_F7R2_FB9_Msk /*!< Filter bit 9 */ |
8355 | #define CAN_F7R2_FB10_Pos (10U) |
||
9 | mjames | 8356 | #define CAN_F7R2_FB10_Msk (0x1UL << CAN_F7R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8357 | #define CAN_F7R2_FB10 CAN_F7R2_FB10_Msk /*!< Filter bit 10 */ |
8358 | #define CAN_F7R2_FB11_Pos (11U) |
||
9 | mjames | 8359 | #define CAN_F7R2_FB11_Msk (0x1UL << CAN_F7R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8360 | #define CAN_F7R2_FB11 CAN_F7R2_FB11_Msk /*!< Filter bit 11 */ |
8361 | #define CAN_F7R2_FB12_Pos (12U) |
||
9 | mjames | 8362 | #define CAN_F7R2_FB12_Msk (0x1UL << CAN_F7R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8363 | #define CAN_F7R2_FB12 CAN_F7R2_FB12_Msk /*!< Filter bit 12 */ |
8364 | #define CAN_F7R2_FB13_Pos (13U) |
||
9 | mjames | 8365 | #define CAN_F7R2_FB13_Msk (0x1UL << CAN_F7R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8366 | #define CAN_F7R2_FB13 CAN_F7R2_FB13_Msk /*!< Filter bit 13 */ |
8367 | #define CAN_F7R2_FB14_Pos (14U) |
||
9 | mjames | 8368 | #define CAN_F7R2_FB14_Msk (0x1UL << CAN_F7R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8369 | #define CAN_F7R2_FB14 CAN_F7R2_FB14_Msk /*!< Filter bit 14 */ |
8370 | #define CAN_F7R2_FB15_Pos (15U) |
||
9 | mjames | 8371 | #define CAN_F7R2_FB15_Msk (0x1UL << CAN_F7R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8372 | #define CAN_F7R2_FB15 CAN_F7R2_FB15_Msk /*!< Filter bit 15 */ |
8373 | #define CAN_F7R2_FB16_Pos (16U) |
||
9 | mjames | 8374 | #define CAN_F7R2_FB16_Msk (0x1UL << CAN_F7R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8375 | #define CAN_F7R2_FB16 CAN_F7R2_FB16_Msk /*!< Filter bit 16 */ |
8376 | #define CAN_F7R2_FB17_Pos (17U) |
||
9 | mjames | 8377 | #define CAN_F7R2_FB17_Msk (0x1UL << CAN_F7R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8378 | #define CAN_F7R2_FB17 CAN_F7R2_FB17_Msk /*!< Filter bit 17 */ |
8379 | #define CAN_F7R2_FB18_Pos (18U) |
||
9 | mjames | 8380 | #define CAN_F7R2_FB18_Msk (0x1UL << CAN_F7R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8381 | #define CAN_F7R2_FB18 CAN_F7R2_FB18_Msk /*!< Filter bit 18 */ |
8382 | #define CAN_F7R2_FB19_Pos (19U) |
||
9 | mjames | 8383 | #define CAN_F7R2_FB19_Msk (0x1UL << CAN_F7R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8384 | #define CAN_F7R2_FB19 CAN_F7R2_FB19_Msk /*!< Filter bit 19 */ |
8385 | #define CAN_F7R2_FB20_Pos (20U) |
||
9 | mjames | 8386 | #define CAN_F7R2_FB20_Msk (0x1UL << CAN_F7R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8387 | #define CAN_F7R2_FB20 CAN_F7R2_FB20_Msk /*!< Filter bit 20 */ |
8388 | #define CAN_F7R2_FB21_Pos (21U) |
||
9 | mjames | 8389 | #define CAN_F7R2_FB21_Msk (0x1UL << CAN_F7R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8390 | #define CAN_F7R2_FB21 CAN_F7R2_FB21_Msk /*!< Filter bit 21 */ |
8391 | #define CAN_F7R2_FB22_Pos (22U) |
||
9 | mjames | 8392 | #define CAN_F7R2_FB22_Msk (0x1UL << CAN_F7R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8393 | #define CAN_F7R2_FB22 CAN_F7R2_FB22_Msk /*!< Filter bit 22 */ |
8394 | #define CAN_F7R2_FB23_Pos (23U) |
||
9 | mjames | 8395 | #define CAN_F7R2_FB23_Msk (0x1UL << CAN_F7R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8396 | #define CAN_F7R2_FB23 CAN_F7R2_FB23_Msk /*!< Filter bit 23 */ |
8397 | #define CAN_F7R2_FB24_Pos (24U) |
||
9 | mjames | 8398 | #define CAN_F7R2_FB24_Msk (0x1UL << CAN_F7R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8399 | #define CAN_F7R2_FB24 CAN_F7R2_FB24_Msk /*!< Filter bit 24 */ |
8400 | #define CAN_F7R2_FB25_Pos (25U) |
||
9 | mjames | 8401 | #define CAN_F7R2_FB25_Msk (0x1UL << CAN_F7R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8402 | #define CAN_F7R2_FB25 CAN_F7R2_FB25_Msk /*!< Filter bit 25 */ |
8403 | #define CAN_F7R2_FB26_Pos (26U) |
||
9 | mjames | 8404 | #define CAN_F7R2_FB26_Msk (0x1UL << CAN_F7R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8405 | #define CAN_F7R2_FB26 CAN_F7R2_FB26_Msk /*!< Filter bit 26 */ |
8406 | #define CAN_F7R2_FB27_Pos (27U) |
||
9 | mjames | 8407 | #define CAN_F7R2_FB27_Msk (0x1UL << CAN_F7R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8408 | #define CAN_F7R2_FB27 CAN_F7R2_FB27_Msk /*!< Filter bit 27 */ |
8409 | #define CAN_F7R2_FB28_Pos (28U) |
||
9 | mjames | 8410 | #define CAN_F7R2_FB28_Msk (0x1UL << CAN_F7R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8411 | #define CAN_F7R2_FB28 CAN_F7R2_FB28_Msk /*!< Filter bit 28 */ |
8412 | #define CAN_F7R2_FB29_Pos (29U) |
||
9 | mjames | 8413 | #define CAN_F7R2_FB29_Msk (0x1UL << CAN_F7R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8414 | #define CAN_F7R2_FB29 CAN_F7R2_FB29_Msk /*!< Filter bit 29 */ |
8415 | #define CAN_F7R2_FB30_Pos (30U) |
||
9 | mjames | 8416 | #define CAN_F7R2_FB30_Msk (0x1UL << CAN_F7R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8417 | #define CAN_F7R2_FB30 CAN_F7R2_FB30_Msk /*!< Filter bit 30 */ |
8418 | #define CAN_F7R2_FB31_Pos (31U) |
||
9 | mjames | 8419 | #define CAN_F7R2_FB31_Msk (0x1UL << CAN_F7R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8420 | #define CAN_F7R2_FB31 CAN_F7R2_FB31_Msk /*!< Filter bit 31 */ |
8421 | |||
8422 | /******************* Bit definition for CAN_F8R2 register *******************/ |
||
8423 | #define CAN_F8R2_FB0_Pos (0U) |
||
9 | mjames | 8424 | #define CAN_F8R2_FB0_Msk (0x1UL << CAN_F8R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8425 | #define CAN_F8R2_FB0 CAN_F8R2_FB0_Msk /*!< Filter bit 0 */ |
8426 | #define CAN_F8R2_FB1_Pos (1U) |
||
9 | mjames | 8427 | #define CAN_F8R2_FB1_Msk (0x1UL << CAN_F8R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8428 | #define CAN_F8R2_FB1 CAN_F8R2_FB1_Msk /*!< Filter bit 1 */ |
8429 | #define CAN_F8R2_FB2_Pos (2U) |
||
9 | mjames | 8430 | #define CAN_F8R2_FB2_Msk (0x1UL << CAN_F8R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8431 | #define CAN_F8R2_FB2 CAN_F8R2_FB2_Msk /*!< Filter bit 2 */ |
8432 | #define CAN_F8R2_FB3_Pos (3U) |
||
9 | mjames | 8433 | #define CAN_F8R2_FB3_Msk (0x1UL << CAN_F8R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8434 | #define CAN_F8R2_FB3 CAN_F8R2_FB3_Msk /*!< Filter bit 3 */ |
8435 | #define CAN_F8R2_FB4_Pos (4U) |
||
9 | mjames | 8436 | #define CAN_F8R2_FB4_Msk (0x1UL << CAN_F8R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8437 | #define CAN_F8R2_FB4 CAN_F8R2_FB4_Msk /*!< Filter bit 4 */ |
8438 | #define CAN_F8R2_FB5_Pos (5U) |
||
9 | mjames | 8439 | #define CAN_F8R2_FB5_Msk (0x1UL << CAN_F8R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8440 | #define CAN_F8R2_FB5 CAN_F8R2_FB5_Msk /*!< Filter bit 5 */ |
8441 | #define CAN_F8R2_FB6_Pos (6U) |
||
9 | mjames | 8442 | #define CAN_F8R2_FB6_Msk (0x1UL << CAN_F8R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8443 | #define CAN_F8R2_FB6 CAN_F8R2_FB6_Msk /*!< Filter bit 6 */ |
8444 | #define CAN_F8R2_FB7_Pos (7U) |
||
9 | mjames | 8445 | #define CAN_F8R2_FB7_Msk (0x1UL << CAN_F8R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8446 | #define CAN_F8R2_FB7 CAN_F8R2_FB7_Msk /*!< Filter bit 7 */ |
8447 | #define CAN_F8R2_FB8_Pos (8U) |
||
9 | mjames | 8448 | #define CAN_F8R2_FB8_Msk (0x1UL << CAN_F8R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8449 | #define CAN_F8R2_FB8 CAN_F8R2_FB8_Msk /*!< Filter bit 8 */ |
8450 | #define CAN_F8R2_FB9_Pos (9U) |
||
9 | mjames | 8451 | #define CAN_F8R2_FB9_Msk (0x1UL << CAN_F8R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8452 | #define CAN_F8R2_FB9 CAN_F8R2_FB9_Msk /*!< Filter bit 9 */ |
8453 | #define CAN_F8R2_FB10_Pos (10U) |
||
9 | mjames | 8454 | #define CAN_F8R2_FB10_Msk (0x1UL << CAN_F8R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8455 | #define CAN_F8R2_FB10 CAN_F8R2_FB10_Msk /*!< Filter bit 10 */ |
8456 | #define CAN_F8R2_FB11_Pos (11U) |
||
9 | mjames | 8457 | #define CAN_F8R2_FB11_Msk (0x1UL << CAN_F8R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8458 | #define CAN_F8R2_FB11 CAN_F8R2_FB11_Msk /*!< Filter bit 11 */ |
8459 | #define CAN_F8R2_FB12_Pos (12U) |
||
9 | mjames | 8460 | #define CAN_F8R2_FB12_Msk (0x1UL << CAN_F8R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8461 | #define CAN_F8R2_FB12 CAN_F8R2_FB12_Msk /*!< Filter bit 12 */ |
8462 | #define CAN_F8R2_FB13_Pos (13U) |
||
9 | mjames | 8463 | #define CAN_F8R2_FB13_Msk (0x1UL << CAN_F8R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8464 | #define CAN_F8R2_FB13 CAN_F8R2_FB13_Msk /*!< Filter bit 13 */ |
8465 | #define CAN_F8R2_FB14_Pos (14U) |
||
9 | mjames | 8466 | #define CAN_F8R2_FB14_Msk (0x1UL << CAN_F8R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8467 | #define CAN_F8R2_FB14 CAN_F8R2_FB14_Msk /*!< Filter bit 14 */ |
8468 | #define CAN_F8R2_FB15_Pos (15U) |
||
9 | mjames | 8469 | #define CAN_F8R2_FB15_Msk (0x1UL << CAN_F8R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8470 | #define CAN_F8R2_FB15 CAN_F8R2_FB15_Msk /*!< Filter bit 15 */ |
8471 | #define CAN_F8R2_FB16_Pos (16U) |
||
9 | mjames | 8472 | #define CAN_F8R2_FB16_Msk (0x1UL << CAN_F8R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8473 | #define CAN_F8R2_FB16 CAN_F8R2_FB16_Msk /*!< Filter bit 16 */ |
8474 | #define CAN_F8R2_FB17_Pos (17U) |
||
9 | mjames | 8475 | #define CAN_F8R2_FB17_Msk (0x1UL << CAN_F8R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8476 | #define CAN_F8R2_FB17 CAN_F8R2_FB17_Msk /*!< Filter bit 17 */ |
8477 | #define CAN_F8R2_FB18_Pos (18U) |
||
9 | mjames | 8478 | #define CAN_F8R2_FB18_Msk (0x1UL << CAN_F8R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8479 | #define CAN_F8R2_FB18 CAN_F8R2_FB18_Msk /*!< Filter bit 18 */ |
8480 | #define CAN_F8R2_FB19_Pos (19U) |
||
9 | mjames | 8481 | #define CAN_F8R2_FB19_Msk (0x1UL << CAN_F8R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8482 | #define CAN_F8R2_FB19 CAN_F8R2_FB19_Msk /*!< Filter bit 19 */ |
8483 | #define CAN_F8R2_FB20_Pos (20U) |
||
9 | mjames | 8484 | #define CAN_F8R2_FB20_Msk (0x1UL << CAN_F8R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8485 | #define CAN_F8R2_FB20 CAN_F8R2_FB20_Msk /*!< Filter bit 20 */ |
8486 | #define CAN_F8R2_FB21_Pos (21U) |
||
9 | mjames | 8487 | #define CAN_F8R2_FB21_Msk (0x1UL << CAN_F8R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8488 | #define CAN_F8R2_FB21 CAN_F8R2_FB21_Msk /*!< Filter bit 21 */ |
8489 | #define CAN_F8R2_FB22_Pos (22U) |
||
9 | mjames | 8490 | #define CAN_F8R2_FB22_Msk (0x1UL << CAN_F8R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8491 | #define CAN_F8R2_FB22 CAN_F8R2_FB22_Msk /*!< Filter bit 22 */ |
8492 | #define CAN_F8R2_FB23_Pos (23U) |
||
9 | mjames | 8493 | #define CAN_F8R2_FB23_Msk (0x1UL << CAN_F8R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8494 | #define CAN_F8R2_FB23 CAN_F8R2_FB23_Msk /*!< Filter bit 23 */ |
8495 | #define CAN_F8R2_FB24_Pos (24U) |
||
9 | mjames | 8496 | #define CAN_F8R2_FB24_Msk (0x1UL << CAN_F8R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8497 | #define CAN_F8R2_FB24 CAN_F8R2_FB24_Msk /*!< Filter bit 24 */ |
8498 | #define CAN_F8R2_FB25_Pos (25U) |
||
9 | mjames | 8499 | #define CAN_F8R2_FB25_Msk (0x1UL << CAN_F8R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8500 | #define CAN_F8R2_FB25 CAN_F8R2_FB25_Msk /*!< Filter bit 25 */ |
8501 | #define CAN_F8R2_FB26_Pos (26U) |
||
9 | mjames | 8502 | #define CAN_F8R2_FB26_Msk (0x1UL << CAN_F8R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8503 | #define CAN_F8R2_FB26 CAN_F8R2_FB26_Msk /*!< Filter bit 26 */ |
8504 | #define CAN_F8R2_FB27_Pos (27U) |
||
9 | mjames | 8505 | #define CAN_F8R2_FB27_Msk (0x1UL << CAN_F8R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8506 | #define CAN_F8R2_FB27 CAN_F8R2_FB27_Msk /*!< Filter bit 27 */ |
8507 | #define CAN_F8R2_FB28_Pos (28U) |
||
9 | mjames | 8508 | #define CAN_F8R2_FB28_Msk (0x1UL << CAN_F8R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8509 | #define CAN_F8R2_FB28 CAN_F8R2_FB28_Msk /*!< Filter bit 28 */ |
8510 | #define CAN_F8R2_FB29_Pos (29U) |
||
9 | mjames | 8511 | #define CAN_F8R2_FB29_Msk (0x1UL << CAN_F8R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8512 | #define CAN_F8R2_FB29 CAN_F8R2_FB29_Msk /*!< Filter bit 29 */ |
8513 | #define CAN_F8R2_FB30_Pos (30U) |
||
9 | mjames | 8514 | #define CAN_F8R2_FB30_Msk (0x1UL << CAN_F8R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8515 | #define CAN_F8R2_FB30 CAN_F8R2_FB30_Msk /*!< Filter bit 30 */ |
8516 | #define CAN_F8R2_FB31_Pos (31U) |
||
9 | mjames | 8517 | #define CAN_F8R2_FB31_Msk (0x1UL << CAN_F8R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8518 | #define CAN_F8R2_FB31 CAN_F8R2_FB31_Msk /*!< Filter bit 31 */ |
8519 | |||
8520 | /******************* Bit definition for CAN_F9R2 register *******************/ |
||
8521 | #define CAN_F9R2_FB0_Pos (0U) |
||
9 | mjames | 8522 | #define CAN_F9R2_FB0_Msk (0x1UL << CAN_F9R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8523 | #define CAN_F9R2_FB0 CAN_F9R2_FB0_Msk /*!< Filter bit 0 */ |
8524 | #define CAN_F9R2_FB1_Pos (1U) |
||
9 | mjames | 8525 | #define CAN_F9R2_FB1_Msk (0x1UL << CAN_F9R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8526 | #define CAN_F9R2_FB1 CAN_F9R2_FB1_Msk /*!< Filter bit 1 */ |
8527 | #define CAN_F9R2_FB2_Pos (2U) |
||
9 | mjames | 8528 | #define CAN_F9R2_FB2_Msk (0x1UL << CAN_F9R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8529 | #define CAN_F9R2_FB2 CAN_F9R2_FB2_Msk /*!< Filter bit 2 */ |
8530 | #define CAN_F9R2_FB3_Pos (3U) |
||
9 | mjames | 8531 | #define CAN_F9R2_FB3_Msk (0x1UL << CAN_F9R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8532 | #define CAN_F9R2_FB3 CAN_F9R2_FB3_Msk /*!< Filter bit 3 */ |
8533 | #define CAN_F9R2_FB4_Pos (4U) |
||
9 | mjames | 8534 | #define CAN_F9R2_FB4_Msk (0x1UL << CAN_F9R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8535 | #define CAN_F9R2_FB4 CAN_F9R2_FB4_Msk /*!< Filter bit 4 */ |
8536 | #define CAN_F9R2_FB5_Pos (5U) |
||
9 | mjames | 8537 | #define CAN_F9R2_FB5_Msk (0x1UL << CAN_F9R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8538 | #define CAN_F9R2_FB5 CAN_F9R2_FB5_Msk /*!< Filter bit 5 */ |
8539 | #define CAN_F9R2_FB6_Pos (6U) |
||
9 | mjames | 8540 | #define CAN_F9R2_FB6_Msk (0x1UL << CAN_F9R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8541 | #define CAN_F9R2_FB6 CAN_F9R2_FB6_Msk /*!< Filter bit 6 */ |
8542 | #define CAN_F9R2_FB7_Pos (7U) |
||
9 | mjames | 8543 | #define CAN_F9R2_FB7_Msk (0x1UL << CAN_F9R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8544 | #define CAN_F9R2_FB7 CAN_F9R2_FB7_Msk /*!< Filter bit 7 */ |
8545 | #define CAN_F9R2_FB8_Pos (8U) |
||
9 | mjames | 8546 | #define CAN_F9R2_FB8_Msk (0x1UL << CAN_F9R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8547 | #define CAN_F9R2_FB8 CAN_F9R2_FB8_Msk /*!< Filter bit 8 */ |
8548 | #define CAN_F9R2_FB9_Pos (9U) |
||
9 | mjames | 8549 | #define CAN_F9R2_FB9_Msk (0x1UL << CAN_F9R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8550 | #define CAN_F9R2_FB9 CAN_F9R2_FB9_Msk /*!< Filter bit 9 */ |
8551 | #define CAN_F9R2_FB10_Pos (10U) |
||
9 | mjames | 8552 | #define CAN_F9R2_FB10_Msk (0x1UL << CAN_F9R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8553 | #define CAN_F9R2_FB10 CAN_F9R2_FB10_Msk /*!< Filter bit 10 */ |
8554 | #define CAN_F9R2_FB11_Pos (11U) |
||
9 | mjames | 8555 | #define CAN_F9R2_FB11_Msk (0x1UL << CAN_F9R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8556 | #define CAN_F9R2_FB11 CAN_F9R2_FB11_Msk /*!< Filter bit 11 */ |
8557 | #define CAN_F9R2_FB12_Pos (12U) |
||
9 | mjames | 8558 | #define CAN_F9R2_FB12_Msk (0x1UL << CAN_F9R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8559 | #define CAN_F9R2_FB12 CAN_F9R2_FB12_Msk /*!< Filter bit 12 */ |
8560 | #define CAN_F9R2_FB13_Pos (13U) |
||
9 | mjames | 8561 | #define CAN_F9R2_FB13_Msk (0x1UL << CAN_F9R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8562 | #define CAN_F9R2_FB13 CAN_F9R2_FB13_Msk /*!< Filter bit 13 */ |
8563 | #define CAN_F9R2_FB14_Pos (14U) |
||
9 | mjames | 8564 | #define CAN_F9R2_FB14_Msk (0x1UL << CAN_F9R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8565 | #define CAN_F9R2_FB14 CAN_F9R2_FB14_Msk /*!< Filter bit 14 */ |
8566 | #define CAN_F9R2_FB15_Pos (15U) |
||
9 | mjames | 8567 | #define CAN_F9R2_FB15_Msk (0x1UL << CAN_F9R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8568 | #define CAN_F9R2_FB15 CAN_F9R2_FB15_Msk /*!< Filter bit 15 */ |
8569 | #define CAN_F9R2_FB16_Pos (16U) |
||
9 | mjames | 8570 | #define CAN_F9R2_FB16_Msk (0x1UL << CAN_F9R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8571 | #define CAN_F9R2_FB16 CAN_F9R2_FB16_Msk /*!< Filter bit 16 */ |
8572 | #define CAN_F9R2_FB17_Pos (17U) |
||
9 | mjames | 8573 | #define CAN_F9R2_FB17_Msk (0x1UL << CAN_F9R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8574 | #define CAN_F9R2_FB17 CAN_F9R2_FB17_Msk /*!< Filter bit 17 */ |
8575 | #define CAN_F9R2_FB18_Pos (18U) |
||
9 | mjames | 8576 | #define CAN_F9R2_FB18_Msk (0x1UL << CAN_F9R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8577 | #define CAN_F9R2_FB18 CAN_F9R2_FB18_Msk /*!< Filter bit 18 */ |
8578 | #define CAN_F9R2_FB19_Pos (19U) |
||
9 | mjames | 8579 | #define CAN_F9R2_FB19_Msk (0x1UL << CAN_F9R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8580 | #define CAN_F9R2_FB19 CAN_F9R2_FB19_Msk /*!< Filter bit 19 */ |
8581 | #define CAN_F9R2_FB20_Pos (20U) |
||
9 | mjames | 8582 | #define CAN_F9R2_FB20_Msk (0x1UL << CAN_F9R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8583 | #define CAN_F9R2_FB20 CAN_F9R2_FB20_Msk /*!< Filter bit 20 */ |
8584 | #define CAN_F9R2_FB21_Pos (21U) |
||
9 | mjames | 8585 | #define CAN_F9R2_FB21_Msk (0x1UL << CAN_F9R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8586 | #define CAN_F9R2_FB21 CAN_F9R2_FB21_Msk /*!< Filter bit 21 */ |
8587 | #define CAN_F9R2_FB22_Pos (22U) |
||
9 | mjames | 8588 | #define CAN_F9R2_FB22_Msk (0x1UL << CAN_F9R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8589 | #define CAN_F9R2_FB22 CAN_F9R2_FB22_Msk /*!< Filter bit 22 */ |
8590 | #define CAN_F9R2_FB23_Pos (23U) |
||
9 | mjames | 8591 | #define CAN_F9R2_FB23_Msk (0x1UL << CAN_F9R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8592 | #define CAN_F9R2_FB23 CAN_F9R2_FB23_Msk /*!< Filter bit 23 */ |
8593 | #define CAN_F9R2_FB24_Pos (24U) |
||
9 | mjames | 8594 | #define CAN_F9R2_FB24_Msk (0x1UL << CAN_F9R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8595 | #define CAN_F9R2_FB24 CAN_F9R2_FB24_Msk /*!< Filter bit 24 */ |
8596 | #define CAN_F9R2_FB25_Pos (25U) |
||
9 | mjames | 8597 | #define CAN_F9R2_FB25_Msk (0x1UL << CAN_F9R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8598 | #define CAN_F9R2_FB25 CAN_F9R2_FB25_Msk /*!< Filter bit 25 */ |
8599 | #define CAN_F9R2_FB26_Pos (26U) |
||
9 | mjames | 8600 | #define CAN_F9R2_FB26_Msk (0x1UL << CAN_F9R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8601 | #define CAN_F9R2_FB26 CAN_F9R2_FB26_Msk /*!< Filter bit 26 */ |
8602 | #define CAN_F9R2_FB27_Pos (27U) |
||
9 | mjames | 8603 | #define CAN_F9R2_FB27_Msk (0x1UL << CAN_F9R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8604 | #define CAN_F9R2_FB27 CAN_F9R2_FB27_Msk /*!< Filter bit 27 */ |
8605 | #define CAN_F9R2_FB28_Pos (28U) |
||
9 | mjames | 8606 | #define CAN_F9R2_FB28_Msk (0x1UL << CAN_F9R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8607 | #define CAN_F9R2_FB28 CAN_F9R2_FB28_Msk /*!< Filter bit 28 */ |
8608 | #define CAN_F9R2_FB29_Pos (29U) |
||
9 | mjames | 8609 | #define CAN_F9R2_FB29_Msk (0x1UL << CAN_F9R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8610 | #define CAN_F9R2_FB29 CAN_F9R2_FB29_Msk /*!< Filter bit 29 */ |
8611 | #define CAN_F9R2_FB30_Pos (30U) |
||
9 | mjames | 8612 | #define CAN_F9R2_FB30_Msk (0x1UL << CAN_F9R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8613 | #define CAN_F9R2_FB30 CAN_F9R2_FB30_Msk /*!< Filter bit 30 */ |
8614 | #define CAN_F9R2_FB31_Pos (31U) |
||
9 | mjames | 8615 | #define CAN_F9R2_FB31_Msk (0x1UL << CAN_F9R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8616 | #define CAN_F9R2_FB31 CAN_F9R2_FB31_Msk /*!< Filter bit 31 */ |
8617 | |||
8618 | /******************* Bit definition for CAN_F10R2 register ******************/ |
||
8619 | #define CAN_F10R2_FB0_Pos (0U) |
||
9 | mjames | 8620 | #define CAN_F10R2_FB0_Msk (0x1UL << CAN_F10R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8621 | #define CAN_F10R2_FB0 CAN_F10R2_FB0_Msk /*!< Filter bit 0 */ |
8622 | #define CAN_F10R2_FB1_Pos (1U) |
||
9 | mjames | 8623 | #define CAN_F10R2_FB1_Msk (0x1UL << CAN_F10R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8624 | #define CAN_F10R2_FB1 CAN_F10R2_FB1_Msk /*!< Filter bit 1 */ |
8625 | #define CAN_F10R2_FB2_Pos (2U) |
||
9 | mjames | 8626 | #define CAN_F10R2_FB2_Msk (0x1UL << CAN_F10R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8627 | #define CAN_F10R2_FB2 CAN_F10R2_FB2_Msk /*!< Filter bit 2 */ |
8628 | #define CAN_F10R2_FB3_Pos (3U) |
||
9 | mjames | 8629 | #define CAN_F10R2_FB3_Msk (0x1UL << CAN_F10R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8630 | #define CAN_F10R2_FB3 CAN_F10R2_FB3_Msk /*!< Filter bit 3 */ |
8631 | #define CAN_F10R2_FB4_Pos (4U) |
||
9 | mjames | 8632 | #define CAN_F10R2_FB4_Msk (0x1UL << CAN_F10R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8633 | #define CAN_F10R2_FB4 CAN_F10R2_FB4_Msk /*!< Filter bit 4 */ |
8634 | #define CAN_F10R2_FB5_Pos (5U) |
||
9 | mjames | 8635 | #define CAN_F10R2_FB5_Msk (0x1UL << CAN_F10R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8636 | #define CAN_F10R2_FB5 CAN_F10R2_FB5_Msk /*!< Filter bit 5 */ |
8637 | #define CAN_F10R2_FB6_Pos (6U) |
||
9 | mjames | 8638 | #define CAN_F10R2_FB6_Msk (0x1UL << CAN_F10R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8639 | #define CAN_F10R2_FB6 CAN_F10R2_FB6_Msk /*!< Filter bit 6 */ |
8640 | #define CAN_F10R2_FB7_Pos (7U) |
||
9 | mjames | 8641 | #define CAN_F10R2_FB7_Msk (0x1UL << CAN_F10R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8642 | #define CAN_F10R2_FB7 CAN_F10R2_FB7_Msk /*!< Filter bit 7 */ |
8643 | #define CAN_F10R2_FB8_Pos (8U) |
||
9 | mjames | 8644 | #define CAN_F10R2_FB8_Msk (0x1UL << CAN_F10R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8645 | #define CAN_F10R2_FB8 CAN_F10R2_FB8_Msk /*!< Filter bit 8 */ |
8646 | #define CAN_F10R2_FB9_Pos (9U) |
||
9 | mjames | 8647 | #define CAN_F10R2_FB9_Msk (0x1UL << CAN_F10R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8648 | #define CAN_F10R2_FB9 CAN_F10R2_FB9_Msk /*!< Filter bit 9 */ |
8649 | #define CAN_F10R2_FB10_Pos (10U) |
||
9 | mjames | 8650 | #define CAN_F10R2_FB10_Msk (0x1UL << CAN_F10R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8651 | #define CAN_F10R2_FB10 CAN_F10R2_FB10_Msk /*!< Filter bit 10 */ |
8652 | #define CAN_F10R2_FB11_Pos (11U) |
||
9 | mjames | 8653 | #define CAN_F10R2_FB11_Msk (0x1UL << CAN_F10R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8654 | #define CAN_F10R2_FB11 CAN_F10R2_FB11_Msk /*!< Filter bit 11 */ |
8655 | #define CAN_F10R2_FB12_Pos (12U) |
||
9 | mjames | 8656 | #define CAN_F10R2_FB12_Msk (0x1UL << CAN_F10R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8657 | #define CAN_F10R2_FB12 CAN_F10R2_FB12_Msk /*!< Filter bit 12 */ |
8658 | #define CAN_F10R2_FB13_Pos (13U) |
||
9 | mjames | 8659 | #define CAN_F10R2_FB13_Msk (0x1UL << CAN_F10R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8660 | #define CAN_F10R2_FB13 CAN_F10R2_FB13_Msk /*!< Filter bit 13 */ |
8661 | #define CAN_F10R2_FB14_Pos (14U) |
||
9 | mjames | 8662 | #define CAN_F10R2_FB14_Msk (0x1UL << CAN_F10R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8663 | #define CAN_F10R2_FB14 CAN_F10R2_FB14_Msk /*!< Filter bit 14 */ |
8664 | #define CAN_F10R2_FB15_Pos (15U) |
||
9 | mjames | 8665 | #define CAN_F10R2_FB15_Msk (0x1UL << CAN_F10R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8666 | #define CAN_F10R2_FB15 CAN_F10R2_FB15_Msk /*!< Filter bit 15 */ |
8667 | #define CAN_F10R2_FB16_Pos (16U) |
||
9 | mjames | 8668 | #define CAN_F10R2_FB16_Msk (0x1UL << CAN_F10R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8669 | #define CAN_F10R2_FB16 CAN_F10R2_FB16_Msk /*!< Filter bit 16 */ |
8670 | #define CAN_F10R2_FB17_Pos (17U) |
||
9 | mjames | 8671 | #define CAN_F10R2_FB17_Msk (0x1UL << CAN_F10R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8672 | #define CAN_F10R2_FB17 CAN_F10R2_FB17_Msk /*!< Filter bit 17 */ |
8673 | #define CAN_F10R2_FB18_Pos (18U) |
||
9 | mjames | 8674 | #define CAN_F10R2_FB18_Msk (0x1UL << CAN_F10R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8675 | #define CAN_F10R2_FB18 CAN_F10R2_FB18_Msk /*!< Filter bit 18 */ |
8676 | #define CAN_F10R2_FB19_Pos (19U) |
||
9 | mjames | 8677 | #define CAN_F10R2_FB19_Msk (0x1UL << CAN_F10R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8678 | #define CAN_F10R2_FB19 CAN_F10R2_FB19_Msk /*!< Filter bit 19 */ |
8679 | #define CAN_F10R2_FB20_Pos (20U) |
||
9 | mjames | 8680 | #define CAN_F10R2_FB20_Msk (0x1UL << CAN_F10R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8681 | #define CAN_F10R2_FB20 CAN_F10R2_FB20_Msk /*!< Filter bit 20 */ |
8682 | #define CAN_F10R2_FB21_Pos (21U) |
||
9 | mjames | 8683 | #define CAN_F10R2_FB21_Msk (0x1UL << CAN_F10R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8684 | #define CAN_F10R2_FB21 CAN_F10R2_FB21_Msk /*!< Filter bit 21 */ |
8685 | #define CAN_F10R2_FB22_Pos (22U) |
||
9 | mjames | 8686 | #define CAN_F10R2_FB22_Msk (0x1UL << CAN_F10R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8687 | #define CAN_F10R2_FB22 CAN_F10R2_FB22_Msk /*!< Filter bit 22 */ |
8688 | #define CAN_F10R2_FB23_Pos (23U) |
||
9 | mjames | 8689 | #define CAN_F10R2_FB23_Msk (0x1UL << CAN_F10R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8690 | #define CAN_F10R2_FB23 CAN_F10R2_FB23_Msk /*!< Filter bit 23 */ |
8691 | #define CAN_F10R2_FB24_Pos (24U) |
||
9 | mjames | 8692 | #define CAN_F10R2_FB24_Msk (0x1UL << CAN_F10R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8693 | #define CAN_F10R2_FB24 CAN_F10R2_FB24_Msk /*!< Filter bit 24 */ |
8694 | #define CAN_F10R2_FB25_Pos (25U) |
||
9 | mjames | 8695 | #define CAN_F10R2_FB25_Msk (0x1UL << CAN_F10R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8696 | #define CAN_F10R2_FB25 CAN_F10R2_FB25_Msk /*!< Filter bit 25 */ |
8697 | #define CAN_F10R2_FB26_Pos (26U) |
||
9 | mjames | 8698 | #define CAN_F10R2_FB26_Msk (0x1UL << CAN_F10R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8699 | #define CAN_F10R2_FB26 CAN_F10R2_FB26_Msk /*!< Filter bit 26 */ |
8700 | #define CAN_F10R2_FB27_Pos (27U) |
||
9 | mjames | 8701 | #define CAN_F10R2_FB27_Msk (0x1UL << CAN_F10R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8702 | #define CAN_F10R2_FB27 CAN_F10R2_FB27_Msk /*!< Filter bit 27 */ |
8703 | #define CAN_F10R2_FB28_Pos (28U) |
||
9 | mjames | 8704 | #define CAN_F10R2_FB28_Msk (0x1UL << CAN_F10R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8705 | #define CAN_F10R2_FB28 CAN_F10R2_FB28_Msk /*!< Filter bit 28 */ |
8706 | #define CAN_F10R2_FB29_Pos (29U) |
||
9 | mjames | 8707 | #define CAN_F10R2_FB29_Msk (0x1UL << CAN_F10R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8708 | #define CAN_F10R2_FB29 CAN_F10R2_FB29_Msk /*!< Filter bit 29 */ |
8709 | #define CAN_F10R2_FB30_Pos (30U) |
||
9 | mjames | 8710 | #define CAN_F10R2_FB30_Msk (0x1UL << CAN_F10R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8711 | #define CAN_F10R2_FB30 CAN_F10R2_FB30_Msk /*!< Filter bit 30 */ |
8712 | #define CAN_F10R2_FB31_Pos (31U) |
||
9 | mjames | 8713 | #define CAN_F10R2_FB31_Msk (0x1UL << CAN_F10R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8714 | #define CAN_F10R2_FB31 CAN_F10R2_FB31_Msk /*!< Filter bit 31 */ |
8715 | |||
8716 | /******************* Bit definition for CAN_F11R2 register ******************/ |
||
8717 | #define CAN_F11R2_FB0_Pos (0U) |
||
9 | mjames | 8718 | #define CAN_F11R2_FB0_Msk (0x1UL << CAN_F11R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8719 | #define CAN_F11R2_FB0 CAN_F11R2_FB0_Msk /*!< Filter bit 0 */ |
8720 | #define CAN_F11R2_FB1_Pos (1U) |
||
9 | mjames | 8721 | #define CAN_F11R2_FB1_Msk (0x1UL << CAN_F11R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8722 | #define CAN_F11R2_FB1 CAN_F11R2_FB1_Msk /*!< Filter bit 1 */ |
8723 | #define CAN_F11R2_FB2_Pos (2U) |
||
9 | mjames | 8724 | #define CAN_F11R2_FB2_Msk (0x1UL << CAN_F11R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8725 | #define CAN_F11R2_FB2 CAN_F11R2_FB2_Msk /*!< Filter bit 2 */ |
8726 | #define CAN_F11R2_FB3_Pos (3U) |
||
9 | mjames | 8727 | #define CAN_F11R2_FB3_Msk (0x1UL << CAN_F11R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8728 | #define CAN_F11R2_FB3 CAN_F11R2_FB3_Msk /*!< Filter bit 3 */ |
8729 | #define CAN_F11R2_FB4_Pos (4U) |
||
9 | mjames | 8730 | #define CAN_F11R2_FB4_Msk (0x1UL << CAN_F11R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8731 | #define CAN_F11R2_FB4 CAN_F11R2_FB4_Msk /*!< Filter bit 4 */ |
8732 | #define CAN_F11R2_FB5_Pos (5U) |
||
9 | mjames | 8733 | #define CAN_F11R2_FB5_Msk (0x1UL << CAN_F11R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8734 | #define CAN_F11R2_FB5 CAN_F11R2_FB5_Msk /*!< Filter bit 5 */ |
8735 | #define CAN_F11R2_FB6_Pos (6U) |
||
9 | mjames | 8736 | #define CAN_F11R2_FB6_Msk (0x1UL << CAN_F11R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8737 | #define CAN_F11R2_FB6 CAN_F11R2_FB6_Msk /*!< Filter bit 6 */ |
8738 | #define CAN_F11R2_FB7_Pos (7U) |
||
9 | mjames | 8739 | #define CAN_F11R2_FB7_Msk (0x1UL << CAN_F11R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8740 | #define CAN_F11R2_FB7 CAN_F11R2_FB7_Msk /*!< Filter bit 7 */ |
8741 | #define CAN_F11R2_FB8_Pos (8U) |
||
9 | mjames | 8742 | #define CAN_F11R2_FB8_Msk (0x1UL << CAN_F11R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8743 | #define CAN_F11R2_FB8 CAN_F11R2_FB8_Msk /*!< Filter bit 8 */ |
8744 | #define CAN_F11R2_FB9_Pos (9U) |
||
9 | mjames | 8745 | #define CAN_F11R2_FB9_Msk (0x1UL << CAN_F11R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8746 | #define CAN_F11R2_FB9 CAN_F11R2_FB9_Msk /*!< Filter bit 9 */ |
8747 | #define CAN_F11R2_FB10_Pos (10U) |
||
9 | mjames | 8748 | #define CAN_F11R2_FB10_Msk (0x1UL << CAN_F11R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8749 | #define CAN_F11R2_FB10 CAN_F11R2_FB10_Msk /*!< Filter bit 10 */ |
8750 | #define CAN_F11R2_FB11_Pos (11U) |
||
9 | mjames | 8751 | #define CAN_F11R2_FB11_Msk (0x1UL << CAN_F11R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8752 | #define CAN_F11R2_FB11 CAN_F11R2_FB11_Msk /*!< Filter bit 11 */ |
8753 | #define CAN_F11R2_FB12_Pos (12U) |
||
9 | mjames | 8754 | #define CAN_F11R2_FB12_Msk (0x1UL << CAN_F11R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8755 | #define CAN_F11R2_FB12 CAN_F11R2_FB12_Msk /*!< Filter bit 12 */ |
8756 | #define CAN_F11R2_FB13_Pos (13U) |
||
9 | mjames | 8757 | #define CAN_F11R2_FB13_Msk (0x1UL << CAN_F11R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8758 | #define CAN_F11R2_FB13 CAN_F11R2_FB13_Msk /*!< Filter bit 13 */ |
8759 | #define CAN_F11R2_FB14_Pos (14U) |
||
9 | mjames | 8760 | #define CAN_F11R2_FB14_Msk (0x1UL << CAN_F11R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8761 | #define CAN_F11R2_FB14 CAN_F11R2_FB14_Msk /*!< Filter bit 14 */ |
8762 | #define CAN_F11R2_FB15_Pos (15U) |
||
9 | mjames | 8763 | #define CAN_F11R2_FB15_Msk (0x1UL << CAN_F11R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8764 | #define CAN_F11R2_FB15 CAN_F11R2_FB15_Msk /*!< Filter bit 15 */ |
8765 | #define CAN_F11R2_FB16_Pos (16U) |
||
9 | mjames | 8766 | #define CAN_F11R2_FB16_Msk (0x1UL << CAN_F11R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8767 | #define CAN_F11R2_FB16 CAN_F11R2_FB16_Msk /*!< Filter bit 16 */ |
8768 | #define CAN_F11R2_FB17_Pos (17U) |
||
9 | mjames | 8769 | #define CAN_F11R2_FB17_Msk (0x1UL << CAN_F11R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8770 | #define CAN_F11R2_FB17 CAN_F11R2_FB17_Msk /*!< Filter bit 17 */ |
8771 | #define CAN_F11R2_FB18_Pos (18U) |
||
9 | mjames | 8772 | #define CAN_F11R2_FB18_Msk (0x1UL << CAN_F11R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8773 | #define CAN_F11R2_FB18 CAN_F11R2_FB18_Msk /*!< Filter bit 18 */ |
8774 | #define CAN_F11R2_FB19_Pos (19U) |
||
9 | mjames | 8775 | #define CAN_F11R2_FB19_Msk (0x1UL << CAN_F11R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8776 | #define CAN_F11R2_FB19 CAN_F11R2_FB19_Msk /*!< Filter bit 19 */ |
8777 | #define CAN_F11R2_FB20_Pos (20U) |
||
9 | mjames | 8778 | #define CAN_F11R2_FB20_Msk (0x1UL << CAN_F11R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8779 | #define CAN_F11R2_FB20 CAN_F11R2_FB20_Msk /*!< Filter bit 20 */ |
8780 | #define CAN_F11R2_FB21_Pos (21U) |
||
9 | mjames | 8781 | #define CAN_F11R2_FB21_Msk (0x1UL << CAN_F11R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8782 | #define CAN_F11R2_FB21 CAN_F11R2_FB21_Msk /*!< Filter bit 21 */ |
8783 | #define CAN_F11R2_FB22_Pos (22U) |
||
9 | mjames | 8784 | #define CAN_F11R2_FB22_Msk (0x1UL << CAN_F11R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8785 | #define CAN_F11R2_FB22 CAN_F11R2_FB22_Msk /*!< Filter bit 22 */ |
8786 | #define CAN_F11R2_FB23_Pos (23U) |
||
9 | mjames | 8787 | #define CAN_F11R2_FB23_Msk (0x1UL << CAN_F11R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8788 | #define CAN_F11R2_FB23 CAN_F11R2_FB23_Msk /*!< Filter bit 23 */ |
8789 | #define CAN_F11R2_FB24_Pos (24U) |
||
9 | mjames | 8790 | #define CAN_F11R2_FB24_Msk (0x1UL << CAN_F11R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8791 | #define CAN_F11R2_FB24 CAN_F11R2_FB24_Msk /*!< Filter bit 24 */ |
8792 | #define CAN_F11R2_FB25_Pos (25U) |
||
9 | mjames | 8793 | #define CAN_F11R2_FB25_Msk (0x1UL << CAN_F11R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8794 | #define CAN_F11R2_FB25 CAN_F11R2_FB25_Msk /*!< Filter bit 25 */ |
8795 | #define CAN_F11R2_FB26_Pos (26U) |
||
9 | mjames | 8796 | #define CAN_F11R2_FB26_Msk (0x1UL << CAN_F11R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8797 | #define CAN_F11R2_FB26 CAN_F11R2_FB26_Msk /*!< Filter bit 26 */ |
8798 | #define CAN_F11R2_FB27_Pos (27U) |
||
9 | mjames | 8799 | #define CAN_F11R2_FB27_Msk (0x1UL << CAN_F11R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8800 | #define CAN_F11R2_FB27 CAN_F11R2_FB27_Msk /*!< Filter bit 27 */ |
8801 | #define CAN_F11R2_FB28_Pos (28U) |
||
9 | mjames | 8802 | #define CAN_F11R2_FB28_Msk (0x1UL << CAN_F11R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8803 | #define CAN_F11R2_FB28 CAN_F11R2_FB28_Msk /*!< Filter bit 28 */ |
8804 | #define CAN_F11R2_FB29_Pos (29U) |
||
9 | mjames | 8805 | #define CAN_F11R2_FB29_Msk (0x1UL << CAN_F11R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8806 | #define CAN_F11R2_FB29 CAN_F11R2_FB29_Msk /*!< Filter bit 29 */ |
8807 | #define CAN_F11R2_FB30_Pos (30U) |
||
9 | mjames | 8808 | #define CAN_F11R2_FB30_Msk (0x1UL << CAN_F11R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8809 | #define CAN_F11R2_FB30 CAN_F11R2_FB30_Msk /*!< Filter bit 30 */ |
8810 | #define CAN_F11R2_FB31_Pos (31U) |
||
9 | mjames | 8811 | #define CAN_F11R2_FB31_Msk (0x1UL << CAN_F11R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8812 | #define CAN_F11R2_FB31 CAN_F11R2_FB31_Msk /*!< Filter bit 31 */ |
8813 | |||
8814 | /******************* Bit definition for CAN_F12R2 register ******************/ |
||
8815 | #define CAN_F12R2_FB0_Pos (0U) |
||
9 | mjames | 8816 | #define CAN_F12R2_FB0_Msk (0x1UL << CAN_F12R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8817 | #define CAN_F12R2_FB0 CAN_F12R2_FB0_Msk /*!< Filter bit 0 */ |
8818 | #define CAN_F12R2_FB1_Pos (1U) |
||
9 | mjames | 8819 | #define CAN_F12R2_FB1_Msk (0x1UL << CAN_F12R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8820 | #define CAN_F12R2_FB1 CAN_F12R2_FB1_Msk /*!< Filter bit 1 */ |
8821 | #define CAN_F12R2_FB2_Pos (2U) |
||
9 | mjames | 8822 | #define CAN_F12R2_FB2_Msk (0x1UL << CAN_F12R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8823 | #define CAN_F12R2_FB2 CAN_F12R2_FB2_Msk /*!< Filter bit 2 */ |
8824 | #define CAN_F12R2_FB3_Pos (3U) |
||
9 | mjames | 8825 | #define CAN_F12R2_FB3_Msk (0x1UL << CAN_F12R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8826 | #define CAN_F12R2_FB3 CAN_F12R2_FB3_Msk /*!< Filter bit 3 */ |
8827 | #define CAN_F12R2_FB4_Pos (4U) |
||
9 | mjames | 8828 | #define CAN_F12R2_FB4_Msk (0x1UL << CAN_F12R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8829 | #define CAN_F12R2_FB4 CAN_F12R2_FB4_Msk /*!< Filter bit 4 */ |
8830 | #define CAN_F12R2_FB5_Pos (5U) |
||
9 | mjames | 8831 | #define CAN_F12R2_FB5_Msk (0x1UL << CAN_F12R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8832 | #define CAN_F12R2_FB5 CAN_F12R2_FB5_Msk /*!< Filter bit 5 */ |
8833 | #define CAN_F12R2_FB6_Pos (6U) |
||
9 | mjames | 8834 | #define CAN_F12R2_FB6_Msk (0x1UL << CAN_F12R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8835 | #define CAN_F12R2_FB6 CAN_F12R2_FB6_Msk /*!< Filter bit 6 */ |
8836 | #define CAN_F12R2_FB7_Pos (7U) |
||
9 | mjames | 8837 | #define CAN_F12R2_FB7_Msk (0x1UL << CAN_F12R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8838 | #define CAN_F12R2_FB7 CAN_F12R2_FB7_Msk /*!< Filter bit 7 */ |
8839 | #define CAN_F12R2_FB8_Pos (8U) |
||
9 | mjames | 8840 | #define CAN_F12R2_FB8_Msk (0x1UL << CAN_F12R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8841 | #define CAN_F12R2_FB8 CAN_F12R2_FB8_Msk /*!< Filter bit 8 */ |
8842 | #define CAN_F12R2_FB9_Pos (9U) |
||
9 | mjames | 8843 | #define CAN_F12R2_FB9_Msk (0x1UL << CAN_F12R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8844 | #define CAN_F12R2_FB9 CAN_F12R2_FB9_Msk /*!< Filter bit 9 */ |
8845 | #define CAN_F12R2_FB10_Pos (10U) |
||
9 | mjames | 8846 | #define CAN_F12R2_FB10_Msk (0x1UL << CAN_F12R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8847 | #define CAN_F12R2_FB10 CAN_F12R2_FB10_Msk /*!< Filter bit 10 */ |
8848 | #define CAN_F12R2_FB11_Pos (11U) |
||
9 | mjames | 8849 | #define CAN_F12R2_FB11_Msk (0x1UL << CAN_F12R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8850 | #define CAN_F12R2_FB11 CAN_F12R2_FB11_Msk /*!< Filter bit 11 */ |
8851 | #define CAN_F12R2_FB12_Pos (12U) |
||
9 | mjames | 8852 | #define CAN_F12R2_FB12_Msk (0x1UL << CAN_F12R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8853 | #define CAN_F12R2_FB12 CAN_F12R2_FB12_Msk /*!< Filter bit 12 */ |
8854 | #define CAN_F12R2_FB13_Pos (13U) |
||
9 | mjames | 8855 | #define CAN_F12R2_FB13_Msk (0x1UL << CAN_F12R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8856 | #define CAN_F12R2_FB13 CAN_F12R2_FB13_Msk /*!< Filter bit 13 */ |
8857 | #define CAN_F12R2_FB14_Pos (14U) |
||
9 | mjames | 8858 | #define CAN_F12R2_FB14_Msk (0x1UL << CAN_F12R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8859 | #define CAN_F12R2_FB14 CAN_F12R2_FB14_Msk /*!< Filter bit 14 */ |
8860 | #define CAN_F12R2_FB15_Pos (15U) |
||
9 | mjames | 8861 | #define CAN_F12R2_FB15_Msk (0x1UL << CAN_F12R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8862 | #define CAN_F12R2_FB15 CAN_F12R2_FB15_Msk /*!< Filter bit 15 */ |
8863 | #define CAN_F12R2_FB16_Pos (16U) |
||
9 | mjames | 8864 | #define CAN_F12R2_FB16_Msk (0x1UL << CAN_F12R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8865 | #define CAN_F12R2_FB16 CAN_F12R2_FB16_Msk /*!< Filter bit 16 */ |
8866 | #define CAN_F12R2_FB17_Pos (17U) |
||
9 | mjames | 8867 | #define CAN_F12R2_FB17_Msk (0x1UL << CAN_F12R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8868 | #define CAN_F12R2_FB17 CAN_F12R2_FB17_Msk /*!< Filter bit 17 */ |
8869 | #define CAN_F12R2_FB18_Pos (18U) |
||
9 | mjames | 8870 | #define CAN_F12R2_FB18_Msk (0x1UL << CAN_F12R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8871 | #define CAN_F12R2_FB18 CAN_F12R2_FB18_Msk /*!< Filter bit 18 */ |
8872 | #define CAN_F12R2_FB19_Pos (19U) |
||
9 | mjames | 8873 | #define CAN_F12R2_FB19_Msk (0x1UL << CAN_F12R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8874 | #define CAN_F12R2_FB19 CAN_F12R2_FB19_Msk /*!< Filter bit 19 */ |
8875 | #define CAN_F12R2_FB20_Pos (20U) |
||
9 | mjames | 8876 | #define CAN_F12R2_FB20_Msk (0x1UL << CAN_F12R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8877 | #define CAN_F12R2_FB20 CAN_F12R2_FB20_Msk /*!< Filter bit 20 */ |
8878 | #define CAN_F12R2_FB21_Pos (21U) |
||
9 | mjames | 8879 | #define CAN_F12R2_FB21_Msk (0x1UL << CAN_F12R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8880 | #define CAN_F12R2_FB21 CAN_F12R2_FB21_Msk /*!< Filter bit 21 */ |
8881 | #define CAN_F12R2_FB22_Pos (22U) |
||
9 | mjames | 8882 | #define CAN_F12R2_FB22_Msk (0x1UL << CAN_F12R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8883 | #define CAN_F12R2_FB22 CAN_F12R2_FB22_Msk /*!< Filter bit 22 */ |
8884 | #define CAN_F12R2_FB23_Pos (23U) |
||
9 | mjames | 8885 | #define CAN_F12R2_FB23_Msk (0x1UL << CAN_F12R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8886 | #define CAN_F12R2_FB23 CAN_F12R2_FB23_Msk /*!< Filter bit 23 */ |
8887 | #define CAN_F12R2_FB24_Pos (24U) |
||
9 | mjames | 8888 | #define CAN_F12R2_FB24_Msk (0x1UL << CAN_F12R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8889 | #define CAN_F12R2_FB24 CAN_F12R2_FB24_Msk /*!< Filter bit 24 */ |
8890 | #define CAN_F12R2_FB25_Pos (25U) |
||
9 | mjames | 8891 | #define CAN_F12R2_FB25_Msk (0x1UL << CAN_F12R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8892 | #define CAN_F12R2_FB25 CAN_F12R2_FB25_Msk /*!< Filter bit 25 */ |
8893 | #define CAN_F12R2_FB26_Pos (26U) |
||
9 | mjames | 8894 | #define CAN_F12R2_FB26_Msk (0x1UL << CAN_F12R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8895 | #define CAN_F12R2_FB26 CAN_F12R2_FB26_Msk /*!< Filter bit 26 */ |
8896 | #define CAN_F12R2_FB27_Pos (27U) |
||
9 | mjames | 8897 | #define CAN_F12R2_FB27_Msk (0x1UL << CAN_F12R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8898 | #define CAN_F12R2_FB27 CAN_F12R2_FB27_Msk /*!< Filter bit 27 */ |
8899 | #define CAN_F12R2_FB28_Pos (28U) |
||
9 | mjames | 8900 | #define CAN_F12R2_FB28_Msk (0x1UL << CAN_F12R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8901 | #define CAN_F12R2_FB28 CAN_F12R2_FB28_Msk /*!< Filter bit 28 */ |
8902 | #define CAN_F12R2_FB29_Pos (29U) |
||
9 | mjames | 8903 | #define CAN_F12R2_FB29_Msk (0x1UL << CAN_F12R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 8904 | #define CAN_F12R2_FB29 CAN_F12R2_FB29_Msk /*!< Filter bit 29 */ |
8905 | #define CAN_F12R2_FB30_Pos (30U) |
||
9 | mjames | 8906 | #define CAN_F12R2_FB30_Msk (0x1UL << CAN_F12R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 8907 | #define CAN_F12R2_FB30 CAN_F12R2_FB30_Msk /*!< Filter bit 30 */ |
8908 | #define CAN_F12R2_FB31_Pos (31U) |
||
9 | mjames | 8909 | #define CAN_F12R2_FB31_Msk (0x1UL << CAN_F12R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 8910 | #define CAN_F12R2_FB31 CAN_F12R2_FB31_Msk /*!< Filter bit 31 */ |
8911 | |||
8912 | /******************* Bit definition for CAN_F13R2 register ******************/ |
||
8913 | #define CAN_F13R2_FB0_Pos (0U) |
||
9 | mjames | 8914 | #define CAN_F13R2_FB0_Msk (0x1UL << CAN_F13R2_FB0_Pos) /*!< 0x00000001 */ |
2 | mjames | 8915 | #define CAN_F13R2_FB0 CAN_F13R2_FB0_Msk /*!< Filter bit 0 */ |
8916 | #define CAN_F13R2_FB1_Pos (1U) |
||
9 | mjames | 8917 | #define CAN_F13R2_FB1_Msk (0x1UL << CAN_F13R2_FB1_Pos) /*!< 0x00000002 */ |
2 | mjames | 8918 | #define CAN_F13R2_FB1 CAN_F13R2_FB1_Msk /*!< Filter bit 1 */ |
8919 | #define CAN_F13R2_FB2_Pos (2U) |
||
9 | mjames | 8920 | #define CAN_F13R2_FB2_Msk (0x1UL << CAN_F13R2_FB2_Pos) /*!< 0x00000004 */ |
2 | mjames | 8921 | #define CAN_F13R2_FB2 CAN_F13R2_FB2_Msk /*!< Filter bit 2 */ |
8922 | #define CAN_F13R2_FB3_Pos (3U) |
||
9 | mjames | 8923 | #define CAN_F13R2_FB3_Msk (0x1UL << CAN_F13R2_FB3_Pos) /*!< 0x00000008 */ |
2 | mjames | 8924 | #define CAN_F13R2_FB3 CAN_F13R2_FB3_Msk /*!< Filter bit 3 */ |
8925 | #define CAN_F13R2_FB4_Pos (4U) |
||
9 | mjames | 8926 | #define CAN_F13R2_FB4_Msk (0x1UL << CAN_F13R2_FB4_Pos) /*!< 0x00000010 */ |
2 | mjames | 8927 | #define CAN_F13R2_FB4 CAN_F13R2_FB4_Msk /*!< Filter bit 4 */ |
8928 | #define CAN_F13R2_FB5_Pos (5U) |
||
9 | mjames | 8929 | #define CAN_F13R2_FB5_Msk (0x1UL << CAN_F13R2_FB5_Pos) /*!< 0x00000020 */ |
2 | mjames | 8930 | #define CAN_F13R2_FB5 CAN_F13R2_FB5_Msk /*!< Filter bit 5 */ |
8931 | #define CAN_F13R2_FB6_Pos (6U) |
||
9 | mjames | 8932 | #define CAN_F13R2_FB6_Msk (0x1UL << CAN_F13R2_FB6_Pos) /*!< 0x00000040 */ |
2 | mjames | 8933 | #define CAN_F13R2_FB6 CAN_F13R2_FB6_Msk /*!< Filter bit 6 */ |
8934 | #define CAN_F13R2_FB7_Pos (7U) |
||
9 | mjames | 8935 | #define CAN_F13R2_FB7_Msk (0x1UL << CAN_F13R2_FB7_Pos) /*!< 0x00000080 */ |
2 | mjames | 8936 | #define CAN_F13R2_FB7 CAN_F13R2_FB7_Msk /*!< Filter bit 7 */ |
8937 | #define CAN_F13R2_FB8_Pos (8U) |
||
9 | mjames | 8938 | #define CAN_F13R2_FB8_Msk (0x1UL << CAN_F13R2_FB8_Pos) /*!< 0x00000100 */ |
2 | mjames | 8939 | #define CAN_F13R2_FB8 CAN_F13R2_FB8_Msk /*!< Filter bit 8 */ |
8940 | #define CAN_F13R2_FB9_Pos (9U) |
||
9 | mjames | 8941 | #define CAN_F13R2_FB9_Msk (0x1UL << CAN_F13R2_FB9_Pos) /*!< 0x00000200 */ |
2 | mjames | 8942 | #define CAN_F13R2_FB9 CAN_F13R2_FB9_Msk /*!< Filter bit 9 */ |
8943 | #define CAN_F13R2_FB10_Pos (10U) |
||
9 | mjames | 8944 | #define CAN_F13R2_FB10_Msk (0x1UL << CAN_F13R2_FB10_Pos) /*!< 0x00000400 */ |
2 | mjames | 8945 | #define CAN_F13R2_FB10 CAN_F13R2_FB10_Msk /*!< Filter bit 10 */ |
8946 | #define CAN_F13R2_FB11_Pos (11U) |
||
9 | mjames | 8947 | #define CAN_F13R2_FB11_Msk (0x1UL << CAN_F13R2_FB11_Pos) /*!< 0x00000800 */ |
2 | mjames | 8948 | #define CAN_F13R2_FB11 CAN_F13R2_FB11_Msk /*!< Filter bit 11 */ |
8949 | #define CAN_F13R2_FB12_Pos (12U) |
||
9 | mjames | 8950 | #define CAN_F13R2_FB12_Msk (0x1UL << CAN_F13R2_FB12_Pos) /*!< 0x00001000 */ |
2 | mjames | 8951 | #define CAN_F13R2_FB12 CAN_F13R2_FB12_Msk /*!< Filter bit 12 */ |
8952 | #define CAN_F13R2_FB13_Pos (13U) |
||
9 | mjames | 8953 | #define CAN_F13R2_FB13_Msk (0x1UL << CAN_F13R2_FB13_Pos) /*!< 0x00002000 */ |
2 | mjames | 8954 | #define CAN_F13R2_FB13 CAN_F13R2_FB13_Msk /*!< Filter bit 13 */ |
8955 | #define CAN_F13R2_FB14_Pos (14U) |
||
9 | mjames | 8956 | #define CAN_F13R2_FB14_Msk (0x1UL << CAN_F13R2_FB14_Pos) /*!< 0x00004000 */ |
2 | mjames | 8957 | #define CAN_F13R2_FB14 CAN_F13R2_FB14_Msk /*!< Filter bit 14 */ |
8958 | #define CAN_F13R2_FB15_Pos (15U) |
||
9 | mjames | 8959 | #define CAN_F13R2_FB15_Msk (0x1UL << CAN_F13R2_FB15_Pos) /*!< 0x00008000 */ |
2 | mjames | 8960 | #define CAN_F13R2_FB15 CAN_F13R2_FB15_Msk /*!< Filter bit 15 */ |
8961 | #define CAN_F13R2_FB16_Pos (16U) |
||
9 | mjames | 8962 | #define CAN_F13R2_FB16_Msk (0x1UL << CAN_F13R2_FB16_Pos) /*!< 0x00010000 */ |
2 | mjames | 8963 | #define CAN_F13R2_FB16 CAN_F13R2_FB16_Msk /*!< Filter bit 16 */ |
8964 | #define CAN_F13R2_FB17_Pos (17U) |
||
9 | mjames | 8965 | #define CAN_F13R2_FB17_Msk (0x1UL << CAN_F13R2_FB17_Pos) /*!< 0x00020000 */ |
2 | mjames | 8966 | #define CAN_F13R2_FB17 CAN_F13R2_FB17_Msk /*!< Filter bit 17 */ |
8967 | #define CAN_F13R2_FB18_Pos (18U) |
||
9 | mjames | 8968 | #define CAN_F13R2_FB18_Msk (0x1UL << CAN_F13R2_FB18_Pos) /*!< 0x00040000 */ |
2 | mjames | 8969 | #define CAN_F13R2_FB18 CAN_F13R2_FB18_Msk /*!< Filter bit 18 */ |
8970 | #define CAN_F13R2_FB19_Pos (19U) |
||
9 | mjames | 8971 | #define CAN_F13R2_FB19_Msk (0x1UL << CAN_F13R2_FB19_Pos) /*!< 0x00080000 */ |
2 | mjames | 8972 | #define CAN_F13R2_FB19 CAN_F13R2_FB19_Msk /*!< Filter bit 19 */ |
8973 | #define CAN_F13R2_FB20_Pos (20U) |
||
9 | mjames | 8974 | #define CAN_F13R2_FB20_Msk (0x1UL << CAN_F13R2_FB20_Pos) /*!< 0x00100000 */ |
2 | mjames | 8975 | #define CAN_F13R2_FB20 CAN_F13R2_FB20_Msk /*!< Filter bit 20 */ |
8976 | #define CAN_F13R2_FB21_Pos (21U) |
||
9 | mjames | 8977 | #define CAN_F13R2_FB21_Msk (0x1UL << CAN_F13R2_FB21_Pos) /*!< 0x00200000 */ |
2 | mjames | 8978 | #define CAN_F13R2_FB21 CAN_F13R2_FB21_Msk /*!< Filter bit 21 */ |
8979 | #define CAN_F13R2_FB22_Pos (22U) |
||
9 | mjames | 8980 | #define CAN_F13R2_FB22_Msk (0x1UL << CAN_F13R2_FB22_Pos) /*!< 0x00400000 */ |
2 | mjames | 8981 | #define CAN_F13R2_FB22 CAN_F13R2_FB22_Msk /*!< Filter bit 22 */ |
8982 | #define CAN_F13R2_FB23_Pos (23U) |
||
9 | mjames | 8983 | #define CAN_F13R2_FB23_Msk (0x1UL << CAN_F13R2_FB23_Pos) /*!< 0x00800000 */ |
2 | mjames | 8984 | #define CAN_F13R2_FB23 CAN_F13R2_FB23_Msk /*!< Filter bit 23 */ |
8985 | #define CAN_F13R2_FB24_Pos (24U) |
||
9 | mjames | 8986 | #define CAN_F13R2_FB24_Msk (0x1UL << CAN_F13R2_FB24_Pos) /*!< 0x01000000 */ |
2 | mjames | 8987 | #define CAN_F13R2_FB24 CAN_F13R2_FB24_Msk /*!< Filter bit 24 */ |
8988 | #define CAN_F13R2_FB25_Pos (25U) |
||
9 | mjames | 8989 | #define CAN_F13R2_FB25_Msk (0x1UL << CAN_F13R2_FB25_Pos) /*!< 0x02000000 */ |
2 | mjames | 8990 | #define CAN_F13R2_FB25 CAN_F13R2_FB25_Msk /*!< Filter bit 25 */ |
8991 | #define CAN_F13R2_FB26_Pos (26U) |
||
9 | mjames | 8992 | #define CAN_F13R2_FB26_Msk (0x1UL << CAN_F13R2_FB26_Pos) /*!< 0x04000000 */ |
2 | mjames | 8993 | #define CAN_F13R2_FB26 CAN_F13R2_FB26_Msk /*!< Filter bit 26 */ |
8994 | #define CAN_F13R2_FB27_Pos (27U) |
||
9 | mjames | 8995 | #define CAN_F13R2_FB27_Msk (0x1UL << CAN_F13R2_FB27_Pos) /*!< 0x08000000 */ |
2 | mjames | 8996 | #define CAN_F13R2_FB27 CAN_F13R2_FB27_Msk /*!< Filter bit 27 */ |
8997 | #define CAN_F13R2_FB28_Pos (28U) |
||
9 | mjames | 8998 | #define CAN_F13R2_FB28_Msk (0x1UL << CAN_F13R2_FB28_Pos) /*!< 0x10000000 */ |
2 | mjames | 8999 | #define CAN_F13R2_FB28 CAN_F13R2_FB28_Msk /*!< Filter bit 28 */ |
9000 | #define CAN_F13R2_FB29_Pos (29U) |
||
9 | mjames | 9001 | #define CAN_F13R2_FB29_Msk (0x1UL << CAN_F13R2_FB29_Pos) /*!< 0x20000000 */ |
2 | mjames | 9002 | #define CAN_F13R2_FB29 CAN_F13R2_FB29_Msk /*!< Filter bit 29 */ |
9003 | #define CAN_F13R2_FB30_Pos (30U) |
||
9 | mjames | 9004 | #define CAN_F13R2_FB30_Msk (0x1UL << CAN_F13R2_FB30_Pos) /*!< 0x40000000 */ |
2 | mjames | 9005 | #define CAN_F13R2_FB30 CAN_F13R2_FB30_Msk /*!< Filter bit 30 */ |
9006 | #define CAN_F13R2_FB31_Pos (31U) |
||
9 | mjames | 9007 | #define CAN_F13R2_FB31_Msk (0x1UL << CAN_F13R2_FB31_Pos) /*!< 0x80000000 */ |
2 | mjames | 9008 | #define CAN_F13R2_FB31 CAN_F13R2_FB31_Msk /*!< Filter bit 31 */ |
9009 | |||
9010 | /******************************************************************************/ |
||
9011 | /* */ |
||
9012 | /* Serial Peripheral Interface */ |
||
9013 | /* */ |
||
9014 | /******************************************************************************/ |
||
9015 | |||
9016 | /******************* Bit definition for SPI_CR1 register ********************/ |
||
9017 | #define SPI_CR1_CPHA_Pos (0U) |
||
9 | mjames | 9018 | #define SPI_CR1_CPHA_Msk (0x1UL << SPI_CR1_CPHA_Pos) /*!< 0x00000001 */ |
2 | mjames | 9019 | #define SPI_CR1_CPHA SPI_CR1_CPHA_Msk /*!< Clock Phase */ |
9020 | #define SPI_CR1_CPOL_Pos (1U) |
||
9 | mjames | 9021 | #define SPI_CR1_CPOL_Msk (0x1UL << SPI_CR1_CPOL_Pos) /*!< 0x00000002 */ |
2 | mjames | 9022 | #define SPI_CR1_CPOL SPI_CR1_CPOL_Msk /*!< Clock Polarity */ |
9023 | #define SPI_CR1_MSTR_Pos (2U) |
||
9 | mjames | 9024 | #define SPI_CR1_MSTR_Msk (0x1UL << SPI_CR1_MSTR_Pos) /*!< 0x00000004 */ |
2 | mjames | 9025 | #define SPI_CR1_MSTR SPI_CR1_MSTR_Msk /*!< Master Selection */ |
9026 | |||
9027 | #define SPI_CR1_BR_Pos (3U) |
||
9 | mjames | 9028 | #define SPI_CR1_BR_Msk (0x7UL << SPI_CR1_BR_Pos) /*!< 0x00000038 */ |
2 | mjames | 9029 | #define SPI_CR1_BR SPI_CR1_BR_Msk /*!< BR[2:0] bits (Baud Rate Control) */ |
9 | mjames | 9030 | #define SPI_CR1_BR_0 (0x1UL << SPI_CR1_BR_Pos) /*!< 0x00000008 */ |
9031 | #define SPI_CR1_BR_1 (0x2UL << SPI_CR1_BR_Pos) /*!< 0x00000010 */ |
||
9032 | #define SPI_CR1_BR_2 (0x4UL << SPI_CR1_BR_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 9033 | |
9034 | #define SPI_CR1_SPE_Pos (6U) |
||
9 | mjames | 9035 | #define SPI_CR1_SPE_Msk (0x1UL << SPI_CR1_SPE_Pos) /*!< 0x00000040 */ |
2 | mjames | 9036 | #define SPI_CR1_SPE SPI_CR1_SPE_Msk /*!< SPI Enable */ |
9037 | #define SPI_CR1_LSBFIRST_Pos (7U) |
||
9 | mjames | 9038 | #define SPI_CR1_LSBFIRST_Msk (0x1UL << SPI_CR1_LSBFIRST_Pos) /*!< 0x00000080 */ |
2 | mjames | 9039 | #define SPI_CR1_LSBFIRST SPI_CR1_LSBFIRST_Msk /*!< Frame Format */ |
9040 | #define SPI_CR1_SSI_Pos (8U) |
||
9 | mjames | 9041 | #define SPI_CR1_SSI_Msk (0x1UL << SPI_CR1_SSI_Pos) /*!< 0x00000100 */ |
2 | mjames | 9042 | #define SPI_CR1_SSI SPI_CR1_SSI_Msk /*!< Internal slave select */ |
9043 | #define SPI_CR1_SSM_Pos (9U) |
||
9 | mjames | 9044 | #define SPI_CR1_SSM_Msk (0x1UL << SPI_CR1_SSM_Pos) /*!< 0x00000200 */ |
2 | mjames | 9045 | #define SPI_CR1_SSM SPI_CR1_SSM_Msk /*!< Software slave management */ |
9046 | #define SPI_CR1_RXONLY_Pos (10U) |
||
9 | mjames | 9047 | #define SPI_CR1_RXONLY_Msk (0x1UL << SPI_CR1_RXONLY_Pos) /*!< 0x00000400 */ |
2 | mjames | 9048 | #define SPI_CR1_RXONLY SPI_CR1_RXONLY_Msk /*!< Receive only */ |
9049 | #define SPI_CR1_DFF_Pos (11U) |
||
9 | mjames | 9050 | #define SPI_CR1_DFF_Msk (0x1UL << SPI_CR1_DFF_Pos) /*!< 0x00000800 */ |
2 | mjames | 9051 | #define SPI_CR1_DFF SPI_CR1_DFF_Msk /*!< Data Frame Format */ |
9052 | #define SPI_CR1_CRCNEXT_Pos (12U) |
||
9 | mjames | 9053 | #define SPI_CR1_CRCNEXT_Msk (0x1UL << SPI_CR1_CRCNEXT_Pos) /*!< 0x00001000 */ |
2 | mjames | 9054 | #define SPI_CR1_CRCNEXT SPI_CR1_CRCNEXT_Msk /*!< Transmit CRC next */ |
9055 | #define SPI_CR1_CRCEN_Pos (13U) |
||
9 | mjames | 9056 | #define SPI_CR1_CRCEN_Msk (0x1UL << SPI_CR1_CRCEN_Pos) /*!< 0x00002000 */ |
2 | mjames | 9057 | #define SPI_CR1_CRCEN SPI_CR1_CRCEN_Msk /*!< Hardware CRC calculation enable */ |
9058 | #define SPI_CR1_BIDIOE_Pos (14U) |
||
9 | mjames | 9059 | #define SPI_CR1_BIDIOE_Msk (0x1UL << SPI_CR1_BIDIOE_Pos) /*!< 0x00004000 */ |
2 | mjames | 9060 | #define SPI_CR1_BIDIOE SPI_CR1_BIDIOE_Msk /*!< Output enable in bidirectional mode */ |
9061 | #define SPI_CR1_BIDIMODE_Pos (15U) |
||
9 | mjames | 9062 | #define SPI_CR1_BIDIMODE_Msk (0x1UL << SPI_CR1_BIDIMODE_Pos) /*!< 0x00008000 */ |
2 | mjames | 9063 | #define SPI_CR1_BIDIMODE SPI_CR1_BIDIMODE_Msk /*!< Bidirectional data mode enable */ |
9064 | |||
9065 | /******************* Bit definition for SPI_CR2 register ********************/ |
||
9066 | #define SPI_CR2_RXDMAEN_Pos (0U) |
||
9 | mjames | 9067 | #define SPI_CR2_RXDMAEN_Msk (0x1UL << SPI_CR2_RXDMAEN_Pos) /*!< 0x00000001 */ |
2 | mjames | 9068 | #define SPI_CR2_RXDMAEN SPI_CR2_RXDMAEN_Msk /*!< Rx Buffer DMA Enable */ |
9069 | #define SPI_CR2_TXDMAEN_Pos (1U) |
||
9 | mjames | 9070 | #define SPI_CR2_TXDMAEN_Msk (0x1UL << SPI_CR2_TXDMAEN_Pos) /*!< 0x00000002 */ |
2 | mjames | 9071 | #define SPI_CR2_TXDMAEN SPI_CR2_TXDMAEN_Msk /*!< Tx Buffer DMA Enable */ |
9072 | #define SPI_CR2_SSOE_Pos (2U) |
||
9 | mjames | 9073 | #define SPI_CR2_SSOE_Msk (0x1UL << SPI_CR2_SSOE_Pos) /*!< 0x00000004 */ |
2 | mjames | 9074 | #define SPI_CR2_SSOE SPI_CR2_SSOE_Msk /*!< SS Output Enable */ |
9075 | #define SPI_CR2_ERRIE_Pos (5U) |
||
9 | mjames | 9076 | #define SPI_CR2_ERRIE_Msk (0x1UL << SPI_CR2_ERRIE_Pos) /*!< 0x00000020 */ |
2 | mjames | 9077 | #define SPI_CR2_ERRIE SPI_CR2_ERRIE_Msk /*!< Error Interrupt Enable */ |
9078 | #define SPI_CR2_RXNEIE_Pos (6U) |
||
9 | mjames | 9079 | #define SPI_CR2_RXNEIE_Msk (0x1UL << SPI_CR2_RXNEIE_Pos) /*!< 0x00000040 */ |
2 | mjames | 9080 | #define SPI_CR2_RXNEIE SPI_CR2_RXNEIE_Msk /*!< RX buffer Not Empty Interrupt Enable */ |
9081 | #define SPI_CR2_TXEIE_Pos (7U) |
||
9 | mjames | 9082 | #define SPI_CR2_TXEIE_Msk (0x1UL << SPI_CR2_TXEIE_Pos) /*!< 0x00000080 */ |
2 | mjames | 9083 | #define SPI_CR2_TXEIE SPI_CR2_TXEIE_Msk /*!< Tx buffer Empty Interrupt Enable */ |
9084 | |||
9085 | /******************** Bit definition for SPI_SR register ********************/ |
||
9086 | #define SPI_SR_RXNE_Pos (0U) |
||
9 | mjames | 9087 | #define SPI_SR_RXNE_Msk (0x1UL << SPI_SR_RXNE_Pos) /*!< 0x00000001 */ |
2 | mjames | 9088 | #define SPI_SR_RXNE SPI_SR_RXNE_Msk /*!< Receive buffer Not Empty */ |
9089 | #define SPI_SR_TXE_Pos (1U) |
||
9 | mjames | 9090 | #define SPI_SR_TXE_Msk (0x1UL << SPI_SR_TXE_Pos) /*!< 0x00000002 */ |
2 | mjames | 9091 | #define SPI_SR_TXE SPI_SR_TXE_Msk /*!< Transmit buffer Empty */ |
9092 | #define SPI_SR_CHSIDE_Pos (2U) |
||
9 | mjames | 9093 | #define SPI_SR_CHSIDE_Msk (0x1UL << SPI_SR_CHSIDE_Pos) /*!< 0x00000004 */ |
2 | mjames | 9094 | #define SPI_SR_CHSIDE SPI_SR_CHSIDE_Msk /*!< Channel side */ |
9095 | #define SPI_SR_UDR_Pos (3U) |
||
9 | mjames | 9096 | #define SPI_SR_UDR_Msk (0x1UL << SPI_SR_UDR_Pos) /*!< 0x00000008 */ |
2 | mjames | 9097 | #define SPI_SR_UDR SPI_SR_UDR_Msk /*!< Underrun flag */ |
9098 | #define SPI_SR_CRCERR_Pos (4U) |
||
9 | mjames | 9099 | #define SPI_SR_CRCERR_Msk (0x1UL << SPI_SR_CRCERR_Pos) /*!< 0x00000010 */ |
2 | mjames | 9100 | #define SPI_SR_CRCERR SPI_SR_CRCERR_Msk /*!< CRC Error flag */ |
9101 | #define SPI_SR_MODF_Pos (5U) |
||
9 | mjames | 9102 | #define SPI_SR_MODF_Msk (0x1UL << SPI_SR_MODF_Pos) /*!< 0x00000020 */ |
2 | mjames | 9103 | #define SPI_SR_MODF SPI_SR_MODF_Msk /*!< Mode fault */ |
9104 | #define SPI_SR_OVR_Pos (6U) |
||
9 | mjames | 9105 | #define SPI_SR_OVR_Msk (0x1UL << SPI_SR_OVR_Pos) /*!< 0x00000040 */ |
2 | mjames | 9106 | #define SPI_SR_OVR SPI_SR_OVR_Msk /*!< Overrun flag */ |
9107 | #define SPI_SR_BSY_Pos (7U) |
||
9 | mjames | 9108 | #define SPI_SR_BSY_Msk (0x1UL << SPI_SR_BSY_Pos) /*!< 0x00000080 */ |
2 | mjames | 9109 | #define SPI_SR_BSY SPI_SR_BSY_Msk /*!< Busy flag */ |
9110 | |||
9111 | /******************** Bit definition for SPI_DR register ********************/ |
||
9112 | #define SPI_DR_DR_Pos (0U) |
||
9 | mjames | 9113 | #define SPI_DR_DR_Msk (0xFFFFUL << SPI_DR_DR_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 9114 | #define SPI_DR_DR SPI_DR_DR_Msk /*!< Data Register */ |
9115 | |||
9116 | /******************* Bit definition for SPI_CRCPR register ******************/ |
||
9117 | #define SPI_CRCPR_CRCPOLY_Pos (0U) |
||
9 | mjames | 9118 | #define SPI_CRCPR_CRCPOLY_Msk (0xFFFFUL << SPI_CRCPR_CRCPOLY_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 9119 | #define SPI_CRCPR_CRCPOLY SPI_CRCPR_CRCPOLY_Msk /*!< CRC polynomial register */ |
9120 | |||
9121 | /****************** Bit definition for SPI_RXCRCR register ******************/ |
||
9122 | #define SPI_RXCRCR_RXCRC_Pos (0U) |
||
9 | mjames | 9123 | #define SPI_RXCRCR_RXCRC_Msk (0xFFFFUL << SPI_RXCRCR_RXCRC_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 9124 | #define SPI_RXCRCR_RXCRC SPI_RXCRCR_RXCRC_Msk /*!< Rx CRC Register */ |
9125 | |||
9126 | /****************** Bit definition for SPI_TXCRCR register ******************/ |
||
9127 | #define SPI_TXCRCR_TXCRC_Pos (0U) |
||
9 | mjames | 9128 | #define SPI_TXCRCR_TXCRC_Msk (0xFFFFUL << SPI_TXCRCR_TXCRC_Pos) /*!< 0x0000FFFF */ |
2 | mjames | 9129 | #define SPI_TXCRCR_TXCRC SPI_TXCRCR_TXCRC_Msk /*!< Tx CRC Register */ |
9130 | |||
9131 | #define SPI_I2SCFGR_I2SMOD_Pos (11U) |
||
9 | mjames | 9132 | #define SPI_I2SCFGR_I2SMOD_Msk (0x1UL << SPI_I2SCFGR_I2SMOD_Pos) /*!< 0x00000800 */ |
2 | mjames | 9133 | #define SPI_I2SCFGR_I2SMOD SPI_I2SCFGR_I2SMOD_Msk /*!< I2S mode selection */ |
9134 | |||
9135 | /******************************************************************************/ |
||
9136 | /* */ |
||
9137 | /* Inter-integrated Circuit Interface */ |
||
9138 | /* */ |
||
9139 | /******************************************************************************/ |
||
9140 | |||
9141 | /******************* Bit definition for I2C_CR1 register ********************/ |
||
9142 | #define I2C_CR1_PE_Pos (0U) |
||
9 | mjames | 9143 | #define I2C_CR1_PE_Msk (0x1UL << I2C_CR1_PE_Pos) /*!< 0x00000001 */ |
2 | mjames | 9144 | #define I2C_CR1_PE I2C_CR1_PE_Msk /*!< Peripheral Enable */ |
9145 | #define I2C_CR1_SMBUS_Pos (1U) |
||
9 | mjames | 9146 | #define I2C_CR1_SMBUS_Msk (0x1UL << I2C_CR1_SMBUS_Pos) /*!< 0x00000002 */ |
2 | mjames | 9147 | #define I2C_CR1_SMBUS I2C_CR1_SMBUS_Msk /*!< SMBus Mode */ |
9148 | #define I2C_CR1_SMBTYPE_Pos (3U) |
||
9 | mjames | 9149 | #define I2C_CR1_SMBTYPE_Msk (0x1UL << I2C_CR1_SMBTYPE_Pos) /*!< 0x00000008 */ |
2 | mjames | 9150 | #define I2C_CR1_SMBTYPE I2C_CR1_SMBTYPE_Msk /*!< SMBus Type */ |
9151 | #define I2C_CR1_ENARP_Pos (4U) |
||
9 | mjames | 9152 | #define I2C_CR1_ENARP_Msk (0x1UL << I2C_CR1_ENARP_Pos) /*!< 0x00000010 */ |
2 | mjames | 9153 | #define I2C_CR1_ENARP I2C_CR1_ENARP_Msk /*!< ARP Enable */ |
9154 | #define I2C_CR1_ENPEC_Pos (5U) |
||
9 | mjames | 9155 | #define I2C_CR1_ENPEC_Msk (0x1UL << I2C_CR1_ENPEC_Pos) /*!< 0x00000020 */ |
2 | mjames | 9156 | #define I2C_CR1_ENPEC I2C_CR1_ENPEC_Msk /*!< PEC Enable */ |
9157 | #define I2C_CR1_ENGC_Pos (6U) |
||
9 | mjames | 9158 | #define I2C_CR1_ENGC_Msk (0x1UL << I2C_CR1_ENGC_Pos) /*!< 0x00000040 */ |
2 | mjames | 9159 | #define I2C_CR1_ENGC I2C_CR1_ENGC_Msk /*!< General Call Enable */ |
9160 | #define I2C_CR1_NOSTRETCH_Pos (7U) |
||
9 | mjames | 9161 | #define I2C_CR1_NOSTRETCH_Msk (0x1UL << I2C_CR1_NOSTRETCH_Pos) /*!< 0x00000080 */ |
2 | mjames | 9162 | #define I2C_CR1_NOSTRETCH I2C_CR1_NOSTRETCH_Msk /*!< Clock Stretching Disable (Slave mode) */ |
9163 | #define I2C_CR1_START_Pos (8U) |
||
9 | mjames | 9164 | #define I2C_CR1_START_Msk (0x1UL << I2C_CR1_START_Pos) /*!< 0x00000100 */ |
2 | mjames | 9165 | #define I2C_CR1_START I2C_CR1_START_Msk /*!< Start Generation */ |
9166 | #define I2C_CR1_STOP_Pos (9U) |
||
9 | mjames | 9167 | #define I2C_CR1_STOP_Msk (0x1UL << I2C_CR1_STOP_Pos) /*!< 0x00000200 */ |
2 | mjames | 9168 | #define I2C_CR1_STOP I2C_CR1_STOP_Msk /*!< Stop Generation */ |
9169 | #define I2C_CR1_ACK_Pos (10U) |
||
9 | mjames | 9170 | #define I2C_CR1_ACK_Msk (0x1UL << I2C_CR1_ACK_Pos) /*!< 0x00000400 */ |
2 | mjames | 9171 | #define I2C_CR1_ACK I2C_CR1_ACK_Msk /*!< Acknowledge Enable */ |
9172 | #define I2C_CR1_POS_Pos (11U) |
||
9 | mjames | 9173 | #define I2C_CR1_POS_Msk (0x1UL << I2C_CR1_POS_Pos) /*!< 0x00000800 */ |
2 | mjames | 9174 | #define I2C_CR1_POS I2C_CR1_POS_Msk /*!< Acknowledge/PEC Position (for data reception) */ |
9175 | #define I2C_CR1_PEC_Pos (12U) |
||
9 | mjames | 9176 | #define I2C_CR1_PEC_Msk (0x1UL << I2C_CR1_PEC_Pos) /*!< 0x00001000 */ |
2 | mjames | 9177 | #define I2C_CR1_PEC I2C_CR1_PEC_Msk /*!< Packet Error Checking */ |
9178 | #define I2C_CR1_ALERT_Pos (13U) |
||
9 | mjames | 9179 | #define I2C_CR1_ALERT_Msk (0x1UL << I2C_CR1_ALERT_Pos) /*!< 0x00002000 */ |
2 | mjames | 9180 | #define I2C_CR1_ALERT I2C_CR1_ALERT_Msk /*!< SMBus Alert */ |
9181 | #define I2C_CR1_SWRST_Pos (15U) |
||
9 | mjames | 9182 | #define I2C_CR1_SWRST_Msk (0x1UL << I2C_CR1_SWRST_Pos) /*!< 0x00008000 */ |
2 | mjames | 9183 | #define I2C_CR1_SWRST I2C_CR1_SWRST_Msk /*!< Software Reset */ |
9184 | |||
9185 | /******************* Bit definition for I2C_CR2 register ********************/ |
||
9186 | #define I2C_CR2_FREQ_Pos (0U) |
||
9 | mjames | 9187 | #define I2C_CR2_FREQ_Msk (0x3FUL << I2C_CR2_FREQ_Pos) /*!< 0x0000003F */ |
2 | mjames | 9188 | #define I2C_CR2_FREQ I2C_CR2_FREQ_Msk /*!< FREQ[5:0] bits (Peripheral Clock Frequency) */ |
9 | mjames | 9189 | #define I2C_CR2_FREQ_0 (0x01UL << I2C_CR2_FREQ_Pos) /*!< 0x00000001 */ |
9190 | #define I2C_CR2_FREQ_1 (0x02UL << I2C_CR2_FREQ_Pos) /*!< 0x00000002 */ |
||
9191 | #define I2C_CR2_FREQ_2 (0x04UL << I2C_CR2_FREQ_Pos) /*!< 0x00000004 */ |
||
9192 | #define I2C_CR2_FREQ_3 (0x08UL << I2C_CR2_FREQ_Pos) /*!< 0x00000008 */ |
||
9193 | #define I2C_CR2_FREQ_4 (0x10UL << I2C_CR2_FREQ_Pos) /*!< 0x00000010 */ |
||
9194 | #define I2C_CR2_FREQ_5 (0x20UL << I2C_CR2_FREQ_Pos) /*!< 0x00000020 */ |
||
2 | mjames | 9195 | |
9196 | #define I2C_CR2_ITERREN_Pos (8U) |
||
9 | mjames | 9197 | #define I2C_CR2_ITERREN_Msk (0x1UL << I2C_CR2_ITERREN_Pos) /*!< 0x00000100 */ |
2 | mjames | 9198 | #define I2C_CR2_ITERREN I2C_CR2_ITERREN_Msk /*!< Error Interrupt Enable */ |
9199 | #define I2C_CR2_ITEVTEN_Pos (9U) |
||
9 | mjames | 9200 | #define I2C_CR2_ITEVTEN_Msk (0x1UL << I2C_CR2_ITEVTEN_Pos) /*!< 0x00000200 */ |
2 | mjames | 9201 | #define I2C_CR2_ITEVTEN I2C_CR2_ITEVTEN_Msk /*!< Event Interrupt Enable */ |
9202 | #define I2C_CR2_ITBUFEN_Pos (10U) |
||
9 | mjames | 9203 | #define I2C_CR2_ITBUFEN_Msk (0x1UL << I2C_CR2_ITBUFEN_Pos) /*!< 0x00000400 */ |
2 | mjames | 9204 | #define I2C_CR2_ITBUFEN I2C_CR2_ITBUFEN_Msk /*!< Buffer Interrupt Enable */ |
9205 | #define I2C_CR2_DMAEN_Pos (11U) |
||
9 | mjames | 9206 | #define I2C_CR2_DMAEN_Msk (0x1UL << I2C_CR2_DMAEN_Pos) /*!< 0x00000800 */ |
2 | mjames | 9207 | #define I2C_CR2_DMAEN I2C_CR2_DMAEN_Msk /*!< DMA Requests Enable */ |
9208 | #define I2C_CR2_LAST_Pos (12U) |
||
9 | mjames | 9209 | #define I2C_CR2_LAST_Msk (0x1UL << I2C_CR2_LAST_Pos) /*!< 0x00001000 */ |
2 | mjames | 9210 | #define I2C_CR2_LAST I2C_CR2_LAST_Msk /*!< DMA Last Transfer */ |
9211 | |||
9212 | /******************* Bit definition for I2C_OAR1 register *******************/ |
||
9213 | #define I2C_OAR1_ADD1_7 0x000000FEU /*!< Interface Address */ |
||
9214 | #define I2C_OAR1_ADD8_9 0x00000300U /*!< Interface Address */ |
||
9215 | |||
9216 | #define I2C_OAR1_ADD0_Pos (0U) |
||
9 | mjames | 9217 | #define I2C_OAR1_ADD0_Msk (0x1UL << I2C_OAR1_ADD0_Pos) /*!< 0x00000001 */ |
2 | mjames | 9218 | #define I2C_OAR1_ADD0 I2C_OAR1_ADD0_Msk /*!< Bit 0 */ |
9219 | #define I2C_OAR1_ADD1_Pos (1U) |
||
9 | mjames | 9220 | #define I2C_OAR1_ADD1_Msk (0x1UL << I2C_OAR1_ADD1_Pos) /*!< 0x00000002 */ |
2 | mjames | 9221 | #define I2C_OAR1_ADD1 I2C_OAR1_ADD1_Msk /*!< Bit 1 */ |
9222 | #define I2C_OAR1_ADD2_Pos (2U) |
||
9 | mjames | 9223 | #define I2C_OAR1_ADD2_Msk (0x1UL << I2C_OAR1_ADD2_Pos) /*!< 0x00000004 */ |
2 | mjames | 9224 | #define I2C_OAR1_ADD2 I2C_OAR1_ADD2_Msk /*!< Bit 2 */ |
9225 | #define I2C_OAR1_ADD3_Pos (3U) |
||
9 | mjames | 9226 | #define I2C_OAR1_ADD3_Msk (0x1UL << I2C_OAR1_ADD3_Pos) /*!< 0x00000008 */ |
2 | mjames | 9227 | #define I2C_OAR1_ADD3 I2C_OAR1_ADD3_Msk /*!< Bit 3 */ |
9228 | #define I2C_OAR1_ADD4_Pos (4U) |
||
9 | mjames | 9229 | #define I2C_OAR1_ADD4_Msk (0x1UL << I2C_OAR1_ADD4_Pos) /*!< 0x00000010 */ |
2 | mjames | 9230 | #define I2C_OAR1_ADD4 I2C_OAR1_ADD4_Msk /*!< Bit 4 */ |
9231 | #define I2C_OAR1_ADD5_Pos (5U) |
||
9 | mjames | 9232 | #define I2C_OAR1_ADD5_Msk (0x1UL << I2C_OAR1_ADD5_Pos) /*!< 0x00000020 */ |
2 | mjames | 9233 | #define I2C_OAR1_ADD5 I2C_OAR1_ADD5_Msk /*!< Bit 5 */ |
9234 | #define I2C_OAR1_ADD6_Pos (6U) |
||
9 | mjames | 9235 | #define I2C_OAR1_ADD6_Msk (0x1UL << I2C_OAR1_ADD6_Pos) /*!< 0x00000040 */ |
2 | mjames | 9236 | #define I2C_OAR1_ADD6 I2C_OAR1_ADD6_Msk /*!< Bit 6 */ |
9237 | #define I2C_OAR1_ADD7_Pos (7U) |
||
9 | mjames | 9238 | #define I2C_OAR1_ADD7_Msk (0x1UL << I2C_OAR1_ADD7_Pos) /*!< 0x00000080 */ |
2 | mjames | 9239 | #define I2C_OAR1_ADD7 I2C_OAR1_ADD7_Msk /*!< Bit 7 */ |
9240 | #define I2C_OAR1_ADD8_Pos (8U) |
||
9 | mjames | 9241 | #define I2C_OAR1_ADD8_Msk (0x1UL << I2C_OAR1_ADD8_Pos) /*!< 0x00000100 */ |
2 | mjames | 9242 | #define I2C_OAR1_ADD8 I2C_OAR1_ADD8_Msk /*!< Bit 8 */ |
9243 | #define I2C_OAR1_ADD9_Pos (9U) |
||
9 | mjames | 9244 | #define I2C_OAR1_ADD9_Msk (0x1UL << I2C_OAR1_ADD9_Pos) /*!< 0x00000200 */ |
2 | mjames | 9245 | #define I2C_OAR1_ADD9 I2C_OAR1_ADD9_Msk /*!< Bit 9 */ |
9246 | |||
9247 | #define I2C_OAR1_ADDMODE_Pos (15U) |
||
9 | mjames | 9248 | #define I2C_OAR1_ADDMODE_Msk (0x1UL << I2C_OAR1_ADDMODE_Pos) /*!< 0x00008000 */ |
2 | mjames | 9249 | #define I2C_OAR1_ADDMODE I2C_OAR1_ADDMODE_Msk /*!< Addressing Mode (Slave mode) */ |
9250 | |||
9251 | /******************* Bit definition for I2C_OAR2 register *******************/ |
||
9252 | #define I2C_OAR2_ENDUAL_Pos (0U) |
||
9 | mjames | 9253 | #define I2C_OAR2_ENDUAL_Msk (0x1UL << I2C_OAR2_ENDUAL_Pos) /*!< 0x00000001 */ |
2 | mjames | 9254 | #define I2C_OAR2_ENDUAL I2C_OAR2_ENDUAL_Msk /*!< Dual addressing mode enable */ |
9255 | #define I2C_OAR2_ADD2_Pos (1U) |
||
9 | mjames | 9256 | #define I2C_OAR2_ADD2_Msk (0x7FUL << I2C_OAR2_ADD2_Pos) /*!< 0x000000FE */ |
2 | mjames | 9257 | #define I2C_OAR2_ADD2 I2C_OAR2_ADD2_Msk /*!< Interface address */ |
9258 | |||
9259 | /******************** Bit definition for I2C_DR register ********************/ |
||
9260 | #define I2C_DR_DR_Pos (0U) |
||
9 | mjames | 9261 | #define I2C_DR_DR_Msk (0xFFUL << I2C_DR_DR_Pos) /*!< 0x000000FF */ |
2 | mjames | 9262 | #define I2C_DR_DR I2C_DR_DR_Msk /*!< 8-bit Data Register */ |
9263 | |||
9264 | /******************* Bit definition for I2C_SR1 register ********************/ |
||
9265 | #define I2C_SR1_SB_Pos (0U) |
||
9 | mjames | 9266 | #define I2C_SR1_SB_Msk (0x1UL << I2C_SR1_SB_Pos) /*!< 0x00000001 */ |
2 | mjames | 9267 | #define I2C_SR1_SB I2C_SR1_SB_Msk /*!< Start Bit (Master mode) */ |
9268 | #define I2C_SR1_ADDR_Pos (1U) |
||
9 | mjames | 9269 | #define I2C_SR1_ADDR_Msk (0x1UL << I2C_SR1_ADDR_Pos) /*!< 0x00000002 */ |
2 | mjames | 9270 | #define I2C_SR1_ADDR I2C_SR1_ADDR_Msk /*!< Address sent (master mode)/matched (slave mode) */ |
9271 | #define I2C_SR1_BTF_Pos (2U) |
||
9 | mjames | 9272 | #define I2C_SR1_BTF_Msk (0x1UL << I2C_SR1_BTF_Pos) /*!< 0x00000004 */ |
2 | mjames | 9273 | #define I2C_SR1_BTF I2C_SR1_BTF_Msk /*!< Byte Transfer Finished */ |
9274 | #define I2C_SR1_ADD10_Pos (3U) |
||
9 | mjames | 9275 | #define I2C_SR1_ADD10_Msk (0x1UL << I2C_SR1_ADD10_Pos) /*!< 0x00000008 */ |
2 | mjames | 9276 | #define I2C_SR1_ADD10 I2C_SR1_ADD10_Msk /*!< 10-bit header sent (Master mode) */ |
9277 | #define I2C_SR1_STOPF_Pos (4U) |
||
9 | mjames | 9278 | #define I2C_SR1_STOPF_Msk (0x1UL << I2C_SR1_STOPF_Pos) /*!< 0x00000010 */ |
2 | mjames | 9279 | #define I2C_SR1_STOPF I2C_SR1_STOPF_Msk /*!< Stop detection (Slave mode) */ |
9280 | #define I2C_SR1_RXNE_Pos (6U) |
||
9 | mjames | 9281 | #define I2C_SR1_RXNE_Msk (0x1UL << I2C_SR1_RXNE_Pos) /*!< 0x00000040 */ |
2 | mjames | 9282 | #define I2C_SR1_RXNE I2C_SR1_RXNE_Msk /*!< Data Register not Empty (receivers) */ |
9283 | #define I2C_SR1_TXE_Pos (7U) |
||
9 | mjames | 9284 | #define I2C_SR1_TXE_Msk (0x1UL << I2C_SR1_TXE_Pos) /*!< 0x00000080 */ |
2 | mjames | 9285 | #define I2C_SR1_TXE I2C_SR1_TXE_Msk /*!< Data Register Empty (transmitters) */ |
9286 | #define I2C_SR1_BERR_Pos (8U) |
||
9 | mjames | 9287 | #define I2C_SR1_BERR_Msk (0x1UL << I2C_SR1_BERR_Pos) /*!< 0x00000100 */ |
2 | mjames | 9288 | #define I2C_SR1_BERR I2C_SR1_BERR_Msk /*!< Bus Error */ |
9289 | #define I2C_SR1_ARLO_Pos (9U) |
||
9 | mjames | 9290 | #define I2C_SR1_ARLO_Msk (0x1UL << I2C_SR1_ARLO_Pos) /*!< 0x00000200 */ |
2 | mjames | 9291 | #define I2C_SR1_ARLO I2C_SR1_ARLO_Msk /*!< Arbitration Lost (master mode) */ |
9292 | #define I2C_SR1_AF_Pos (10U) |
||
9 | mjames | 9293 | #define I2C_SR1_AF_Msk (0x1UL << I2C_SR1_AF_Pos) /*!< 0x00000400 */ |
2 | mjames | 9294 | #define I2C_SR1_AF I2C_SR1_AF_Msk /*!< Acknowledge Failure */ |
9295 | #define I2C_SR1_OVR_Pos (11U) |
||
9 | mjames | 9296 | #define I2C_SR1_OVR_Msk (0x1UL << I2C_SR1_OVR_Pos) /*!< 0x00000800 */ |
2 | mjames | 9297 | #define I2C_SR1_OVR I2C_SR1_OVR_Msk /*!< Overrun/Underrun */ |
9298 | #define I2C_SR1_PECERR_Pos (12U) |
||
9 | mjames | 9299 | #define I2C_SR1_PECERR_Msk (0x1UL << I2C_SR1_PECERR_Pos) /*!< 0x00001000 */ |
2 | mjames | 9300 | #define I2C_SR1_PECERR I2C_SR1_PECERR_Msk /*!< PEC Error in reception */ |
9301 | #define I2C_SR1_TIMEOUT_Pos (14U) |
||
9 | mjames | 9302 | #define I2C_SR1_TIMEOUT_Msk (0x1UL << I2C_SR1_TIMEOUT_Pos) /*!< 0x00004000 */ |
2 | mjames | 9303 | #define I2C_SR1_TIMEOUT I2C_SR1_TIMEOUT_Msk /*!< Timeout or Tlow Error */ |
9304 | #define I2C_SR1_SMBALERT_Pos (15U) |
||
9 | mjames | 9305 | #define I2C_SR1_SMBALERT_Msk (0x1UL << I2C_SR1_SMBALERT_Pos) /*!< 0x00008000 */ |
2 | mjames | 9306 | #define I2C_SR1_SMBALERT I2C_SR1_SMBALERT_Msk /*!< SMBus Alert */ |
9307 | |||
9308 | /******************* Bit definition for I2C_SR2 register ********************/ |
||
9309 | #define I2C_SR2_MSL_Pos (0U) |
||
9 | mjames | 9310 | #define I2C_SR2_MSL_Msk (0x1UL << I2C_SR2_MSL_Pos) /*!< 0x00000001 */ |
2 | mjames | 9311 | #define I2C_SR2_MSL I2C_SR2_MSL_Msk /*!< Master/Slave */ |
9312 | #define I2C_SR2_BUSY_Pos (1U) |
||
9 | mjames | 9313 | #define I2C_SR2_BUSY_Msk (0x1UL << I2C_SR2_BUSY_Pos) /*!< 0x00000002 */ |
2 | mjames | 9314 | #define I2C_SR2_BUSY I2C_SR2_BUSY_Msk /*!< Bus Busy */ |
9315 | #define I2C_SR2_TRA_Pos (2U) |
||
9 | mjames | 9316 | #define I2C_SR2_TRA_Msk (0x1UL << I2C_SR2_TRA_Pos) /*!< 0x00000004 */ |
2 | mjames | 9317 | #define I2C_SR2_TRA I2C_SR2_TRA_Msk /*!< Transmitter/Receiver */ |
9318 | #define I2C_SR2_GENCALL_Pos (4U) |
||
9 | mjames | 9319 | #define I2C_SR2_GENCALL_Msk (0x1UL << I2C_SR2_GENCALL_Pos) /*!< 0x00000010 */ |
2 | mjames | 9320 | #define I2C_SR2_GENCALL I2C_SR2_GENCALL_Msk /*!< General Call Address (Slave mode) */ |
9321 | #define I2C_SR2_SMBDEFAULT_Pos (5U) |
||
9 | mjames | 9322 | #define I2C_SR2_SMBDEFAULT_Msk (0x1UL << I2C_SR2_SMBDEFAULT_Pos) /*!< 0x00000020 */ |
2 | mjames | 9323 | #define I2C_SR2_SMBDEFAULT I2C_SR2_SMBDEFAULT_Msk /*!< SMBus Device Default Address (Slave mode) */ |
9324 | #define I2C_SR2_SMBHOST_Pos (6U) |
||
9 | mjames | 9325 | #define I2C_SR2_SMBHOST_Msk (0x1UL << I2C_SR2_SMBHOST_Pos) /*!< 0x00000040 */ |
2 | mjames | 9326 | #define I2C_SR2_SMBHOST I2C_SR2_SMBHOST_Msk /*!< SMBus Host Header (Slave mode) */ |
9327 | #define I2C_SR2_DUALF_Pos (7U) |
||
9 | mjames | 9328 | #define I2C_SR2_DUALF_Msk (0x1UL << I2C_SR2_DUALF_Pos) /*!< 0x00000080 */ |
2 | mjames | 9329 | #define I2C_SR2_DUALF I2C_SR2_DUALF_Msk /*!< Dual Flag (Slave mode) */ |
9330 | #define I2C_SR2_PEC_Pos (8U) |
||
9 | mjames | 9331 | #define I2C_SR2_PEC_Msk (0xFFUL << I2C_SR2_PEC_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 9332 | #define I2C_SR2_PEC I2C_SR2_PEC_Msk /*!< Packet Error Checking Register */ |
9333 | |||
9334 | /******************* Bit definition for I2C_CCR register ********************/ |
||
9335 | #define I2C_CCR_CCR_Pos (0U) |
||
9 | mjames | 9336 | #define I2C_CCR_CCR_Msk (0xFFFUL << I2C_CCR_CCR_Pos) /*!< 0x00000FFF */ |
2 | mjames | 9337 | #define I2C_CCR_CCR I2C_CCR_CCR_Msk /*!< Clock Control Register in Fast/Standard mode (Master mode) */ |
9338 | #define I2C_CCR_DUTY_Pos (14U) |
||
9 | mjames | 9339 | #define I2C_CCR_DUTY_Msk (0x1UL << I2C_CCR_DUTY_Pos) /*!< 0x00004000 */ |
2 | mjames | 9340 | #define I2C_CCR_DUTY I2C_CCR_DUTY_Msk /*!< Fast Mode Duty Cycle */ |
9341 | #define I2C_CCR_FS_Pos (15U) |
||
9 | mjames | 9342 | #define I2C_CCR_FS_Msk (0x1UL << I2C_CCR_FS_Pos) /*!< 0x00008000 */ |
2 | mjames | 9343 | #define I2C_CCR_FS I2C_CCR_FS_Msk /*!< I2C Master Mode Selection */ |
9344 | |||
9345 | /****************** Bit definition for I2C_TRISE register *******************/ |
||
9346 | #define I2C_TRISE_TRISE_Pos (0U) |
||
9 | mjames | 9347 | #define I2C_TRISE_TRISE_Msk (0x3FUL << I2C_TRISE_TRISE_Pos) /*!< 0x0000003F */ |
2 | mjames | 9348 | #define I2C_TRISE_TRISE I2C_TRISE_TRISE_Msk /*!< Maximum Rise Time in Fast/Standard mode (Master mode) */ |
9349 | |||
9350 | /******************************************************************************/ |
||
9351 | /* */ |
||
9352 | /* Universal Synchronous Asynchronous Receiver Transmitter */ |
||
9353 | /* */ |
||
9354 | /******************************************************************************/ |
||
9355 | |||
9356 | /******************* Bit definition for USART_SR register *******************/ |
||
9357 | #define USART_SR_PE_Pos (0U) |
||
9 | mjames | 9358 | #define USART_SR_PE_Msk (0x1UL << USART_SR_PE_Pos) /*!< 0x00000001 */ |
2 | mjames | 9359 | #define USART_SR_PE USART_SR_PE_Msk /*!< Parity Error */ |
9360 | #define USART_SR_FE_Pos (1U) |
||
9 | mjames | 9361 | #define USART_SR_FE_Msk (0x1UL << USART_SR_FE_Pos) /*!< 0x00000002 */ |
2 | mjames | 9362 | #define USART_SR_FE USART_SR_FE_Msk /*!< Framing Error */ |
9363 | #define USART_SR_NE_Pos (2U) |
||
9 | mjames | 9364 | #define USART_SR_NE_Msk (0x1UL << USART_SR_NE_Pos) /*!< 0x00000004 */ |
2 | mjames | 9365 | #define USART_SR_NE USART_SR_NE_Msk /*!< Noise Error Flag */ |
9366 | #define USART_SR_ORE_Pos (3U) |
||
9 | mjames | 9367 | #define USART_SR_ORE_Msk (0x1UL << USART_SR_ORE_Pos) /*!< 0x00000008 */ |
2 | mjames | 9368 | #define USART_SR_ORE USART_SR_ORE_Msk /*!< OverRun Error */ |
9369 | #define USART_SR_IDLE_Pos (4U) |
||
9 | mjames | 9370 | #define USART_SR_IDLE_Msk (0x1UL << USART_SR_IDLE_Pos) /*!< 0x00000010 */ |
2 | mjames | 9371 | #define USART_SR_IDLE USART_SR_IDLE_Msk /*!< IDLE line detected */ |
9372 | #define USART_SR_RXNE_Pos (5U) |
||
9 | mjames | 9373 | #define USART_SR_RXNE_Msk (0x1UL << USART_SR_RXNE_Pos) /*!< 0x00000020 */ |
2 | mjames | 9374 | #define USART_SR_RXNE USART_SR_RXNE_Msk /*!< Read Data Register Not Empty */ |
9375 | #define USART_SR_TC_Pos (6U) |
||
9 | mjames | 9376 | #define USART_SR_TC_Msk (0x1UL << USART_SR_TC_Pos) /*!< 0x00000040 */ |
2 | mjames | 9377 | #define USART_SR_TC USART_SR_TC_Msk /*!< Transmission Complete */ |
9378 | #define USART_SR_TXE_Pos (7U) |
||
9 | mjames | 9379 | #define USART_SR_TXE_Msk (0x1UL << USART_SR_TXE_Pos) /*!< 0x00000080 */ |
2 | mjames | 9380 | #define USART_SR_TXE USART_SR_TXE_Msk /*!< Transmit Data Register Empty */ |
9381 | #define USART_SR_LBD_Pos (8U) |
||
9 | mjames | 9382 | #define USART_SR_LBD_Msk (0x1UL << USART_SR_LBD_Pos) /*!< 0x00000100 */ |
2 | mjames | 9383 | #define USART_SR_LBD USART_SR_LBD_Msk /*!< LIN Break Detection Flag */ |
9384 | #define USART_SR_CTS_Pos (9U) |
||
9 | mjames | 9385 | #define USART_SR_CTS_Msk (0x1UL << USART_SR_CTS_Pos) /*!< 0x00000200 */ |
2 | mjames | 9386 | #define USART_SR_CTS USART_SR_CTS_Msk /*!< CTS Flag */ |
9387 | |||
9388 | /******************* Bit definition for USART_DR register *******************/ |
||
9389 | #define USART_DR_DR_Pos (0U) |
||
9 | mjames | 9390 | #define USART_DR_DR_Msk (0x1FFUL << USART_DR_DR_Pos) /*!< 0x000001FF */ |
2 | mjames | 9391 | #define USART_DR_DR USART_DR_DR_Msk /*!< Data value */ |
9392 | |||
9393 | /****************** Bit definition for USART_BRR register *******************/ |
||
9394 | #define USART_BRR_DIV_Fraction_Pos (0U) |
||
9 | mjames | 9395 | #define USART_BRR_DIV_Fraction_Msk (0xFUL << USART_BRR_DIV_Fraction_Pos) /*!< 0x0000000F */ |
2 | mjames | 9396 | #define USART_BRR_DIV_Fraction USART_BRR_DIV_Fraction_Msk /*!< Fraction of USARTDIV */ |
9397 | #define USART_BRR_DIV_Mantissa_Pos (4U) |
||
9 | mjames | 9398 | #define USART_BRR_DIV_Mantissa_Msk (0xFFFUL << USART_BRR_DIV_Mantissa_Pos) /*!< 0x0000FFF0 */ |
2 | mjames | 9399 | #define USART_BRR_DIV_Mantissa USART_BRR_DIV_Mantissa_Msk /*!< Mantissa of USARTDIV */ |
9400 | |||
9401 | /****************** Bit definition for USART_CR1 register *******************/ |
||
9402 | #define USART_CR1_SBK_Pos (0U) |
||
9 | mjames | 9403 | #define USART_CR1_SBK_Msk (0x1UL << USART_CR1_SBK_Pos) /*!< 0x00000001 */ |
2 | mjames | 9404 | #define USART_CR1_SBK USART_CR1_SBK_Msk /*!< Send Break */ |
9405 | #define USART_CR1_RWU_Pos (1U) |
||
9 | mjames | 9406 | #define USART_CR1_RWU_Msk (0x1UL << USART_CR1_RWU_Pos) /*!< 0x00000002 */ |
2 | mjames | 9407 | #define USART_CR1_RWU USART_CR1_RWU_Msk /*!< Receiver wakeup */ |
9408 | #define USART_CR1_RE_Pos (2U) |
||
9 | mjames | 9409 | #define USART_CR1_RE_Msk (0x1UL << USART_CR1_RE_Pos) /*!< 0x00000004 */ |
2 | mjames | 9410 | #define USART_CR1_RE USART_CR1_RE_Msk /*!< Receiver Enable */ |
9411 | #define USART_CR1_TE_Pos (3U) |
||
9 | mjames | 9412 | #define USART_CR1_TE_Msk (0x1UL << USART_CR1_TE_Pos) /*!< 0x00000008 */ |
2 | mjames | 9413 | #define USART_CR1_TE USART_CR1_TE_Msk /*!< Transmitter Enable */ |
9414 | #define USART_CR1_IDLEIE_Pos (4U) |
||
9 | mjames | 9415 | #define USART_CR1_IDLEIE_Msk (0x1UL << USART_CR1_IDLEIE_Pos) /*!< 0x00000010 */ |
2 | mjames | 9416 | #define USART_CR1_IDLEIE USART_CR1_IDLEIE_Msk /*!< IDLE Interrupt Enable */ |
9417 | #define USART_CR1_RXNEIE_Pos (5U) |
||
9 | mjames | 9418 | #define USART_CR1_RXNEIE_Msk (0x1UL << USART_CR1_RXNEIE_Pos) /*!< 0x00000020 */ |
2 | mjames | 9419 | #define USART_CR1_RXNEIE USART_CR1_RXNEIE_Msk /*!< RXNE Interrupt Enable */ |
9420 | #define USART_CR1_TCIE_Pos (6U) |
||
9 | mjames | 9421 | #define USART_CR1_TCIE_Msk (0x1UL << USART_CR1_TCIE_Pos) /*!< 0x00000040 */ |
2 | mjames | 9422 | #define USART_CR1_TCIE USART_CR1_TCIE_Msk /*!< Transmission Complete Interrupt Enable */ |
9423 | #define USART_CR1_TXEIE_Pos (7U) |
||
9 | mjames | 9424 | #define USART_CR1_TXEIE_Msk (0x1UL << USART_CR1_TXEIE_Pos) /*!< 0x00000080 */ |
2 | mjames | 9425 | #define USART_CR1_TXEIE USART_CR1_TXEIE_Msk /*!< PE Interrupt Enable */ |
9426 | #define USART_CR1_PEIE_Pos (8U) |
||
9 | mjames | 9427 | #define USART_CR1_PEIE_Msk (0x1UL << USART_CR1_PEIE_Pos) /*!< 0x00000100 */ |
2 | mjames | 9428 | #define USART_CR1_PEIE USART_CR1_PEIE_Msk /*!< PE Interrupt Enable */ |
9429 | #define USART_CR1_PS_Pos (9U) |
||
9 | mjames | 9430 | #define USART_CR1_PS_Msk (0x1UL << USART_CR1_PS_Pos) /*!< 0x00000200 */ |
2 | mjames | 9431 | #define USART_CR1_PS USART_CR1_PS_Msk /*!< Parity Selection */ |
9432 | #define USART_CR1_PCE_Pos (10U) |
||
9 | mjames | 9433 | #define USART_CR1_PCE_Msk (0x1UL << USART_CR1_PCE_Pos) /*!< 0x00000400 */ |
2 | mjames | 9434 | #define USART_CR1_PCE USART_CR1_PCE_Msk /*!< Parity Control Enable */ |
9435 | #define USART_CR1_WAKE_Pos (11U) |
||
9 | mjames | 9436 | #define USART_CR1_WAKE_Msk (0x1UL << USART_CR1_WAKE_Pos) /*!< 0x00000800 */ |
2 | mjames | 9437 | #define USART_CR1_WAKE USART_CR1_WAKE_Msk /*!< Wakeup method */ |
9438 | #define USART_CR1_M_Pos (12U) |
||
9 | mjames | 9439 | #define USART_CR1_M_Msk (0x1UL << USART_CR1_M_Pos) /*!< 0x00001000 */ |
2 | mjames | 9440 | #define USART_CR1_M USART_CR1_M_Msk /*!< Word length */ |
9441 | #define USART_CR1_UE_Pos (13U) |
||
9 | mjames | 9442 | #define USART_CR1_UE_Msk (0x1UL << USART_CR1_UE_Pos) /*!< 0x00002000 */ |
2 | mjames | 9443 | #define USART_CR1_UE USART_CR1_UE_Msk /*!< USART Enable */ |
9444 | |||
9445 | /****************** Bit definition for USART_CR2 register *******************/ |
||
9446 | #define USART_CR2_ADD_Pos (0U) |
||
9 | mjames | 9447 | #define USART_CR2_ADD_Msk (0xFUL << USART_CR2_ADD_Pos) /*!< 0x0000000F */ |
2 | mjames | 9448 | #define USART_CR2_ADD USART_CR2_ADD_Msk /*!< Address of the USART node */ |
9449 | #define USART_CR2_LBDL_Pos (5U) |
||
9 | mjames | 9450 | #define USART_CR2_LBDL_Msk (0x1UL << USART_CR2_LBDL_Pos) /*!< 0x00000020 */ |
2 | mjames | 9451 | #define USART_CR2_LBDL USART_CR2_LBDL_Msk /*!< LIN Break Detection Length */ |
9452 | #define USART_CR2_LBDIE_Pos (6U) |
||
9 | mjames | 9453 | #define USART_CR2_LBDIE_Msk (0x1UL << USART_CR2_LBDIE_Pos) /*!< 0x00000040 */ |
2 | mjames | 9454 | #define USART_CR2_LBDIE USART_CR2_LBDIE_Msk /*!< LIN Break Detection Interrupt Enable */ |
9455 | #define USART_CR2_LBCL_Pos (8U) |
||
9 | mjames | 9456 | #define USART_CR2_LBCL_Msk (0x1UL << USART_CR2_LBCL_Pos) /*!< 0x00000100 */ |
2 | mjames | 9457 | #define USART_CR2_LBCL USART_CR2_LBCL_Msk /*!< Last Bit Clock pulse */ |
9458 | #define USART_CR2_CPHA_Pos (9U) |
||
9 | mjames | 9459 | #define USART_CR2_CPHA_Msk (0x1UL << USART_CR2_CPHA_Pos) /*!< 0x00000200 */ |
2 | mjames | 9460 | #define USART_CR2_CPHA USART_CR2_CPHA_Msk /*!< Clock Phase */ |
9461 | #define USART_CR2_CPOL_Pos (10U) |
||
9 | mjames | 9462 | #define USART_CR2_CPOL_Msk (0x1UL << USART_CR2_CPOL_Pos) /*!< 0x00000400 */ |
2 | mjames | 9463 | #define USART_CR2_CPOL USART_CR2_CPOL_Msk /*!< Clock Polarity */ |
9464 | #define USART_CR2_CLKEN_Pos (11U) |
||
9 | mjames | 9465 | #define USART_CR2_CLKEN_Msk (0x1UL << USART_CR2_CLKEN_Pos) /*!< 0x00000800 */ |
2 | mjames | 9466 | #define USART_CR2_CLKEN USART_CR2_CLKEN_Msk /*!< Clock Enable */ |
9467 | |||
9468 | #define USART_CR2_STOP_Pos (12U) |
||
9 | mjames | 9469 | #define USART_CR2_STOP_Msk (0x3UL << USART_CR2_STOP_Pos) /*!< 0x00003000 */ |
2 | mjames | 9470 | #define USART_CR2_STOP USART_CR2_STOP_Msk /*!< STOP[1:0] bits (STOP bits) */ |
9 | mjames | 9471 | #define USART_CR2_STOP_0 (0x1UL << USART_CR2_STOP_Pos) /*!< 0x00001000 */ |
9472 | #define USART_CR2_STOP_1 (0x2UL << USART_CR2_STOP_Pos) /*!< 0x00002000 */ |
||
2 | mjames | 9473 | |
9474 | #define USART_CR2_LINEN_Pos (14U) |
||
9 | mjames | 9475 | #define USART_CR2_LINEN_Msk (0x1UL << USART_CR2_LINEN_Pos) /*!< 0x00004000 */ |
2 | mjames | 9476 | #define USART_CR2_LINEN USART_CR2_LINEN_Msk /*!< LIN mode enable */ |
9477 | |||
9478 | /****************** Bit definition for USART_CR3 register *******************/ |
||
9479 | #define USART_CR3_EIE_Pos (0U) |
||
9 | mjames | 9480 | #define USART_CR3_EIE_Msk (0x1UL << USART_CR3_EIE_Pos) /*!< 0x00000001 */ |
2 | mjames | 9481 | #define USART_CR3_EIE USART_CR3_EIE_Msk /*!< Error Interrupt Enable */ |
9482 | #define USART_CR3_IREN_Pos (1U) |
||
9 | mjames | 9483 | #define USART_CR3_IREN_Msk (0x1UL << USART_CR3_IREN_Pos) /*!< 0x00000002 */ |
2 | mjames | 9484 | #define USART_CR3_IREN USART_CR3_IREN_Msk /*!< IrDA mode Enable */ |
9485 | #define USART_CR3_IRLP_Pos (2U) |
||
9 | mjames | 9486 | #define USART_CR3_IRLP_Msk (0x1UL << USART_CR3_IRLP_Pos) /*!< 0x00000004 */ |
2 | mjames | 9487 | #define USART_CR3_IRLP USART_CR3_IRLP_Msk /*!< IrDA Low-Power */ |
9488 | #define USART_CR3_HDSEL_Pos (3U) |
||
9 | mjames | 9489 | #define USART_CR3_HDSEL_Msk (0x1UL << USART_CR3_HDSEL_Pos) /*!< 0x00000008 */ |
2 | mjames | 9490 | #define USART_CR3_HDSEL USART_CR3_HDSEL_Msk /*!< Half-Duplex Selection */ |
9491 | #define USART_CR3_NACK_Pos (4U) |
||
9 | mjames | 9492 | #define USART_CR3_NACK_Msk (0x1UL << USART_CR3_NACK_Pos) /*!< 0x00000010 */ |
2 | mjames | 9493 | #define USART_CR3_NACK USART_CR3_NACK_Msk /*!< Smartcard NACK enable */ |
9494 | #define USART_CR3_SCEN_Pos (5U) |
||
9 | mjames | 9495 | #define USART_CR3_SCEN_Msk (0x1UL << USART_CR3_SCEN_Pos) /*!< 0x00000020 */ |
2 | mjames | 9496 | #define USART_CR3_SCEN USART_CR3_SCEN_Msk /*!< Smartcard mode enable */ |
9497 | #define USART_CR3_DMAR_Pos (6U) |
||
9 | mjames | 9498 | #define USART_CR3_DMAR_Msk (0x1UL << USART_CR3_DMAR_Pos) /*!< 0x00000040 */ |
2 | mjames | 9499 | #define USART_CR3_DMAR USART_CR3_DMAR_Msk /*!< DMA Enable Receiver */ |
9500 | #define USART_CR3_DMAT_Pos (7U) |
||
9 | mjames | 9501 | #define USART_CR3_DMAT_Msk (0x1UL << USART_CR3_DMAT_Pos) /*!< 0x00000080 */ |
2 | mjames | 9502 | #define USART_CR3_DMAT USART_CR3_DMAT_Msk /*!< DMA Enable Transmitter */ |
9503 | #define USART_CR3_RTSE_Pos (8U) |
||
9 | mjames | 9504 | #define USART_CR3_RTSE_Msk (0x1UL << USART_CR3_RTSE_Pos) /*!< 0x00000100 */ |
2 | mjames | 9505 | #define USART_CR3_RTSE USART_CR3_RTSE_Msk /*!< RTS Enable */ |
9506 | #define USART_CR3_CTSE_Pos (9U) |
||
9 | mjames | 9507 | #define USART_CR3_CTSE_Msk (0x1UL << USART_CR3_CTSE_Pos) /*!< 0x00000200 */ |
2 | mjames | 9508 | #define USART_CR3_CTSE USART_CR3_CTSE_Msk /*!< CTS Enable */ |
9509 | #define USART_CR3_CTSIE_Pos (10U) |
||
9 | mjames | 9510 | #define USART_CR3_CTSIE_Msk (0x1UL << USART_CR3_CTSIE_Pos) /*!< 0x00000400 */ |
2 | mjames | 9511 | #define USART_CR3_CTSIE USART_CR3_CTSIE_Msk /*!< CTS Interrupt Enable */ |
9512 | |||
9513 | /****************** Bit definition for USART_GTPR register ******************/ |
||
9514 | #define USART_GTPR_PSC_Pos (0U) |
||
9 | mjames | 9515 | #define USART_GTPR_PSC_Msk (0xFFUL << USART_GTPR_PSC_Pos) /*!< 0x000000FF */ |
2 | mjames | 9516 | #define USART_GTPR_PSC USART_GTPR_PSC_Msk /*!< PSC[7:0] bits (Prescaler value) */ |
9 | mjames | 9517 | #define USART_GTPR_PSC_0 (0x01UL << USART_GTPR_PSC_Pos) /*!< 0x00000001 */ |
9518 | #define USART_GTPR_PSC_1 (0x02UL << USART_GTPR_PSC_Pos) /*!< 0x00000002 */ |
||
9519 | #define USART_GTPR_PSC_2 (0x04UL << USART_GTPR_PSC_Pos) /*!< 0x00000004 */ |
||
9520 | #define USART_GTPR_PSC_3 (0x08UL << USART_GTPR_PSC_Pos) /*!< 0x00000008 */ |
||
9521 | #define USART_GTPR_PSC_4 (0x10UL << USART_GTPR_PSC_Pos) /*!< 0x00000010 */ |
||
9522 | #define USART_GTPR_PSC_5 (0x20UL << USART_GTPR_PSC_Pos) /*!< 0x00000020 */ |
||
9523 | #define USART_GTPR_PSC_6 (0x40UL << USART_GTPR_PSC_Pos) /*!< 0x00000040 */ |
||
9524 | #define USART_GTPR_PSC_7 (0x80UL << USART_GTPR_PSC_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 9525 | |
9526 | #define USART_GTPR_GT_Pos (8U) |
||
9 | mjames | 9527 | #define USART_GTPR_GT_Msk (0xFFUL << USART_GTPR_GT_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 9528 | #define USART_GTPR_GT USART_GTPR_GT_Msk /*!< Guard time value */ |
9529 | |||
9530 | /******************************************************************************/ |
||
9531 | /* */ |
||
9532 | /* Debug MCU */ |
||
9533 | /* */ |
||
9534 | /******************************************************************************/ |
||
9535 | |||
9536 | /**************** Bit definition for DBGMCU_IDCODE register *****************/ |
||
9537 | #define DBGMCU_IDCODE_DEV_ID_Pos (0U) |
||
9 | mjames | 9538 | #define DBGMCU_IDCODE_DEV_ID_Msk (0xFFFUL << DBGMCU_IDCODE_DEV_ID_Pos) /*!< 0x00000FFF */ |
2 | mjames | 9539 | #define DBGMCU_IDCODE_DEV_ID DBGMCU_IDCODE_DEV_ID_Msk /*!< Device Identifier */ |
9540 | |||
9541 | #define DBGMCU_IDCODE_REV_ID_Pos (16U) |
||
9 | mjames | 9542 | #define DBGMCU_IDCODE_REV_ID_Msk (0xFFFFUL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0xFFFF0000 */ |
2 | mjames | 9543 | #define DBGMCU_IDCODE_REV_ID DBGMCU_IDCODE_REV_ID_Msk /*!< REV_ID[15:0] bits (Revision Identifier) */ |
9 | mjames | 9544 | #define DBGMCU_IDCODE_REV_ID_0 (0x0001UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00010000 */ |
9545 | #define DBGMCU_IDCODE_REV_ID_1 (0x0002UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00020000 */ |
||
9546 | #define DBGMCU_IDCODE_REV_ID_2 (0x0004UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00040000 */ |
||
9547 | #define DBGMCU_IDCODE_REV_ID_3 (0x0008UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00080000 */ |
||
9548 | #define DBGMCU_IDCODE_REV_ID_4 (0x0010UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00100000 */ |
||
9549 | #define DBGMCU_IDCODE_REV_ID_5 (0x0020UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00200000 */ |
||
9550 | #define DBGMCU_IDCODE_REV_ID_6 (0x0040UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00400000 */ |
||
9551 | #define DBGMCU_IDCODE_REV_ID_7 (0x0080UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x00800000 */ |
||
9552 | #define DBGMCU_IDCODE_REV_ID_8 (0x0100UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x01000000 */ |
||
9553 | #define DBGMCU_IDCODE_REV_ID_9 (0x0200UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x02000000 */ |
||
9554 | #define DBGMCU_IDCODE_REV_ID_10 (0x0400UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x04000000 */ |
||
9555 | #define DBGMCU_IDCODE_REV_ID_11 (0x0800UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x08000000 */ |
||
9556 | #define DBGMCU_IDCODE_REV_ID_12 (0x1000UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x10000000 */ |
||
9557 | #define DBGMCU_IDCODE_REV_ID_13 (0x2000UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x20000000 */ |
||
9558 | #define DBGMCU_IDCODE_REV_ID_14 (0x4000UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x40000000 */ |
||
9559 | #define DBGMCU_IDCODE_REV_ID_15 (0x8000UL << DBGMCU_IDCODE_REV_ID_Pos) /*!< 0x80000000 */ |
||
2 | mjames | 9560 | |
9561 | /****************** Bit definition for DBGMCU_CR register *******************/ |
||
9562 | #define DBGMCU_CR_DBG_SLEEP_Pos (0U) |
||
9 | mjames | 9563 | #define DBGMCU_CR_DBG_SLEEP_Msk (0x1UL << DBGMCU_CR_DBG_SLEEP_Pos) /*!< 0x00000001 */ |
2 | mjames | 9564 | #define DBGMCU_CR_DBG_SLEEP DBGMCU_CR_DBG_SLEEP_Msk /*!< Debug Sleep Mode */ |
9565 | #define DBGMCU_CR_DBG_STOP_Pos (1U) |
||
9 | mjames | 9566 | #define DBGMCU_CR_DBG_STOP_Msk (0x1UL << DBGMCU_CR_DBG_STOP_Pos) /*!< 0x00000002 */ |
2 | mjames | 9567 | #define DBGMCU_CR_DBG_STOP DBGMCU_CR_DBG_STOP_Msk /*!< Debug Stop Mode */ |
9568 | #define DBGMCU_CR_DBG_STANDBY_Pos (2U) |
||
9 | mjames | 9569 | #define DBGMCU_CR_DBG_STANDBY_Msk (0x1UL << DBGMCU_CR_DBG_STANDBY_Pos) /*!< 0x00000004 */ |
2 | mjames | 9570 | #define DBGMCU_CR_DBG_STANDBY DBGMCU_CR_DBG_STANDBY_Msk /*!< Debug Standby mode */ |
9571 | #define DBGMCU_CR_TRACE_IOEN_Pos (5U) |
||
9 | mjames | 9572 | #define DBGMCU_CR_TRACE_IOEN_Msk (0x1UL << DBGMCU_CR_TRACE_IOEN_Pos) /*!< 0x00000020 */ |
2 | mjames | 9573 | #define DBGMCU_CR_TRACE_IOEN DBGMCU_CR_TRACE_IOEN_Msk /*!< Trace Pin Assignment Control */ |
9574 | |||
9575 | #define DBGMCU_CR_TRACE_MODE_Pos (6U) |
||
9 | mjames | 9576 | #define DBGMCU_CR_TRACE_MODE_Msk (0x3UL << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x000000C0 */ |
2 | mjames | 9577 | #define DBGMCU_CR_TRACE_MODE DBGMCU_CR_TRACE_MODE_Msk /*!< TRACE_MODE[1:0] bits (Trace Pin Assignment Control) */ |
9 | mjames | 9578 | #define DBGMCU_CR_TRACE_MODE_0 (0x1UL << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x00000040 */ |
9579 | #define DBGMCU_CR_TRACE_MODE_1 (0x2UL << DBGMCU_CR_TRACE_MODE_Pos) /*!< 0x00000080 */ |
||
2 | mjames | 9580 | |
9581 | #define DBGMCU_CR_DBG_IWDG_STOP_Pos (8U) |
||
9 | mjames | 9582 | #define DBGMCU_CR_DBG_IWDG_STOP_Msk (0x1UL << DBGMCU_CR_DBG_IWDG_STOP_Pos) /*!< 0x00000100 */ |
2 | mjames | 9583 | #define DBGMCU_CR_DBG_IWDG_STOP DBGMCU_CR_DBG_IWDG_STOP_Msk /*!< Debug Independent Watchdog stopped when Core is halted */ |
9584 | #define DBGMCU_CR_DBG_WWDG_STOP_Pos (9U) |
||
9 | mjames | 9585 | #define DBGMCU_CR_DBG_WWDG_STOP_Msk (0x1UL << DBGMCU_CR_DBG_WWDG_STOP_Pos) /*!< 0x00000200 */ |
2 | mjames | 9586 | #define DBGMCU_CR_DBG_WWDG_STOP DBGMCU_CR_DBG_WWDG_STOP_Msk /*!< Debug Window Watchdog stopped when Core is halted */ |
9587 | #define DBGMCU_CR_DBG_TIM1_STOP_Pos (10U) |
||
9 | mjames | 9588 | #define DBGMCU_CR_DBG_TIM1_STOP_Msk (0x1UL << DBGMCU_CR_DBG_TIM1_STOP_Pos) /*!< 0x00000400 */ |
2 | mjames | 9589 | #define DBGMCU_CR_DBG_TIM1_STOP DBGMCU_CR_DBG_TIM1_STOP_Msk /*!< TIM1 counter stopped when core is halted */ |
9590 | #define DBGMCU_CR_DBG_TIM2_STOP_Pos (11U) |
||
9 | mjames | 9591 | #define DBGMCU_CR_DBG_TIM2_STOP_Msk (0x1UL << DBGMCU_CR_DBG_TIM2_STOP_Pos) /*!< 0x00000800 */ |
2 | mjames | 9592 | #define DBGMCU_CR_DBG_TIM2_STOP DBGMCU_CR_DBG_TIM2_STOP_Msk /*!< TIM2 counter stopped when core is halted */ |
9593 | #define DBGMCU_CR_DBG_TIM3_STOP_Pos (12U) |
||
9 | mjames | 9594 | #define DBGMCU_CR_DBG_TIM3_STOP_Msk (0x1UL << DBGMCU_CR_DBG_TIM3_STOP_Pos) /*!< 0x00001000 */ |
2 | mjames | 9595 | #define DBGMCU_CR_DBG_TIM3_STOP DBGMCU_CR_DBG_TIM3_STOP_Msk /*!< TIM3 counter stopped when core is halted */ |
9596 | #define DBGMCU_CR_DBG_CAN1_STOP_Pos (14U) |
||
9 | mjames | 9597 | #define DBGMCU_CR_DBG_CAN1_STOP_Msk (0x1UL << DBGMCU_CR_DBG_CAN1_STOP_Pos) /*!< 0x00004000 */ |
2 | mjames | 9598 | #define DBGMCU_CR_DBG_CAN1_STOP DBGMCU_CR_DBG_CAN1_STOP_Msk /*!< Debug CAN1 stopped when Core is halted */ |
9599 | #define DBGMCU_CR_DBG_I2C1_SMBUS_TIMEOUT_Pos (15U) |
||
9 | mjames | 9600 | #define DBGMCU_CR_DBG_I2C1_SMBUS_TIMEOUT_Msk (0x1UL << DBGMCU_CR_DBG_I2C1_SMBUS_TIMEOUT_Pos) /*!< 0x00008000 */ |
2 | mjames | 9601 | #define DBGMCU_CR_DBG_I2C1_SMBUS_TIMEOUT DBGMCU_CR_DBG_I2C1_SMBUS_TIMEOUT_Msk /*!< SMBUS timeout mode stopped when Core is halted */ |
9602 | |||
9603 | /******************************************************************************/ |
||
9604 | /* */ |
||
9605 | /* FLASH and Option Bytes Registers */ |
||
9606 | /* */ |
||
9607 | /******************************************************************************/ |
||
9608 | /******************* Bit definition for FLASH_ACR register ******************/ |
||
9609 | #define FLASH_ACR_LATENCY_Pos (0U) |
||
9 | mjames | 9610 | #define FLASH_ACR_LATENCY_Msk (0x7UL << FLASH_ACR_LATENCY_Pos) /*!< 0x00000007 */ |
2 | mjames | 9611 | #define FLASH_ACR_LATENCY FLASH_ACR_LATENCY_Msk /*!< LATENCY[2:0] bits (Latency) */ |
9 | mjames | 9612 | #define FLASH_ACR_LATENCY_0 (0x1UL << FLASH_ACR_LATENCY_Pos) /*!< 0x00000001 */ |
9613 | #define FLASH_ACR_LATENCY_1 (0x2UL << FLASH_ACR_LATENCY_Pos) /*!< 0x00000002 */ |
||
9614 | #define FLASH_ACR_LATENCY_2 (0x4UL << FLASH_ACR_LATENCY_Pos) /*!< 0x00000004 */ |
||
2 | mjames | 9615 | |
9616 | #define FLASH_ACR_HLFCYA_Pos (3U) |
||
9 | mjames | 9617 | #define FLASH_ACR_HLFCYA_Msk (0x1UL << FLASH_ACR_HLFCYA_Pos) /*!< 0x00000008 */ |
2 | mjames | 9618 | #define FLASH_ACR_HLFCYA FLASH_ACR_HLFCYA_Msk /*!< Flash Half Cycle Access Enable */ |
9619 | #define FLASH_ACR_PRFTBE_Pos (4U) |
||
9 | mjames | 9620 | #define FLASH_ACR_PRFTBE_Msk (0x1UL << FLASH_ACR_PRFTBE_Pos) /*!< 0x00000010 */ |
2 | mjames | 9621 | #define FLASH_ACR_PRFTBE FLASH_ACR_PRFTBE_Msk /*!< Prefetch Buffer Enable */ |
9622 | #define FLASH_ACR_PRFTBS_Pos (5U) |
||
9 | mjames | 9623 | #define FLASH_ACR_PRFTBS_Msk (0x1UL << FLASH_ACR_PRFTBS_Pos) /*!< 0x00000020 */ |
2 | mjames | 9624 | #define FLASH_ACR_PRFTBS FLASH_ACR_PRFTBS_Msk /*!< Prefetch Buffer Status */ |
9625 | |||
9626 | /****************** Bit definition for FLASH_KEYR register ******************/ |
||
9627 | #define FLASH_KEYR_FKEYR_Pos (0U) |
||
9 | mjames | 9628 | #define FLASH_KEYR_FKEYR_Msk (0xFFFFFFFFUL << FLASH_KEYR_FKEYR_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 9629 | #define FLASH_KEYR_FKEYR FLASH_KEYR_FKEYR_Msk /*!< FPEC Key */ |
9630 | |||
9631 | #define RDP_KEY_Pos (0U) |
||
9 | mjames | 9632 | #define RDP_KEY_Msk (0xA5UL << RDP_KEY_Pos) /*!< 0x000000A5 */ |
2 | mjames | 9633 | #define RDP_KEY RDP_KEY_Msk /*!< RDP Key */ |
9634 | #define FLASH_KEY1_Pos (0U) |
||
9 | mjames | 9635 | #define FLASH_KEY1_Msk (0x45670123UL << FLASH_KEY1_Pos) /*!< 0x45670123 */ |
2 | mjames | 9636 | #define FLASH_KEY1 FLASH_KEY1_Msk /*!< FPEC Key1 */ |
9637 | #define FLASH_KEY2_Pos (0U) |
||
9 | mjames | 9638 | #define FLASH_KEY2_Msk (0xCDEF89ABUL << FLASH_KEY2_Pos) /*!< 0xCDEF89AB */ |
2 | mjames | 9639 | #define FLASH_KEY2 FLASH_KEY2_Msk /*!< FPEC Key2 */ |
9640 | |||
9641 | /***************** Bit definition for FLASH_OPTKEYR register ****************/ |
||
9642 | #define FLASH_OPTKEYR_OPTKEYR_Pos (0U) |
||
9 | mjames | 9643 | #define FLASH_OPTKEYR_OPTKEYR_Msk (0xFFFFFFFFUL << FLASH_OPTKEYR_OPTKEYR_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 9644 | #define FLASH_OPTKEYR_OPTKEYR FLASH_OPTKEYR_OPTKEYR_Msk /*!< Option Byte Key */ |
9645 | |||
9646 | #define FLASH_OPTKEY1 FLASH_KEY1 /*!< Option Byte Key1 */ |
||
9647 | #define FLASH_OPTKEY2 FLASH_KEY2 /*!< Option Byte Key2 */ |
||
9648 | |||
9649 | /****************** Bit definition for FLASH_SR register ********************/ |
||
9650 | #define FLASH_SR_BSY_Pos (0U) |
||
9 | mjames | 9651 | #define FLASH_SR_BSY_Msk (0x1UL << FLASH_SR_BSY_Pos) /*!< 0x00000001 */ |
2 | mjames | 9652 | #define FLASH_SR_BSY FLASH_SR_BSY_Msk /*!< Busy */ |
9653 | #define FLASH_SR_PGERR_Pos (2U) |
||
9 | mjames | 9654 | #define FLASH_SR_PGERR_Msk (0x1UL << FLASH_SR_PGERR_Pos) /*!< 0x00000004 */ |
2 | mjames | 9655 | #define FLASH_SR_PGERR FLASH_SR_PGERR_Msk /*!< Programming Error */ |
9656 | #define FLASH_SR_WRPRTERR_Pos (4U) |
||
9 | mjames | 9657 | #define FLASH_SR_WRPRTERR_Msk (0x1UL << FLASH_SR_WRPRTERR_Pos) /*!< 0x00000010 */ |
2 | mjames | 9658 | #define FLASH_SR_WRPRTERR FLASH_SR_WRPRTERR_Msk /*!< Write Protection Error */ |
9659 | #define FLASH_SR_EOP_Pos (5U) |
||
9 | mjames | 9660 | #define FLASH_SR_EOP_Msk (0x1UL << FLASH_SR_EOP_Pos) /*!< 0x00000020 */ |
2 | mjames | 9661 | #define FLASH_SR_EOP FLASH_SR_EOP_Msk /*!< End of operation */ |
9662 | |||
9663 | /******************* Bit definition for FLASH_CR register *******************/ |
||
9664 | #define FLASH_CR_PG_Pos (0U) |
||
9 | mjames | 9665 | #define FLASH_CR_PG_Msk (0x1UL << FLASH_CR_PG_Pos) /*!< 0x00000001 */ |
2 | mjames | 9666 | #define FLASH_CR_PG FLASH_CR_PG_Msk /*!< Programming */ |
9667 | #define FLASH_CR_PER_Pos (1U) |
||
9 | mjames | 9668 | #define FLASH_CR_PER_Msk (0x1UL << FLASH_CR_PER_Pos) /*!< 0x00000002 */ |
2 | mjames | 9669 | #define FLASH_CR_PER FLASH_CR_PER_Msk /*!< Page Erase */ |
9670 | #define FLASH_CR_MER_Pos (2U) |
||
9 | mjames | 9671 | #define FLASH_CR_MER_Msk (0x1UL << FLASH_CR_MER_Pos) /*!< 0x00000004 */ |
2 | mjames | 9672 | #define FLASH_CR_MER FLASH_CR_MER_Msk /*!< Mass Erase */ |
9673 | #define FLASH_CR_OPTPG_Pos (4U) |
||
9 | mjames | 9674 | #define FLASH_CR_OPTPG_Msk (0x1UL << FLASH_CR_OPTPG_Pos) /*!< 0x00000010 */ |
2 | mjames | 9675 | #define FLASH_CR_OPTPG FLASH_CR_OPTPG_Msk /*!< Option Byte Programming */ |
9676 | #define FLASH_CR_OPTER_Pos (5U) |
||
9 | mjames | 9677 | #define FLASH_CR_OPTER_Msk (0x1UL << FLASH_CR_OPTER_Pos) /*!< 0x00000020 */ |
2 | mjames | 9678 | #define FLASH_CR_OPTER FLASH_CR_OPTER_Msk /*!< Option Byte Erase */ |
9679 | #define FLASH_CR_STRT_Pos (6U) |
||
9 | mjames | 9680 | #define FLASH_CR_STRT_Msk (0x1UL << FLASH_CR_STRT_Pos) /*!< 0x00000040 */ |
2 | mjames | 9681 | #define FLASH_CR_STRT FLASH_CR_STRT_Msk /*!< Start */ |
9682 | #define FLASH_CR_LOCK_Pos (7U) |
||
9 | mjames | 9683 | #define FLASH_CR_LOCK_Msk (0x1UL << FLASH_CR_LOCK_Pos) /*!< 0x00000080 */ |
2 | mjames | 9684 | #define FLASH_CR_LOCK FLASH_CR_LOCK_Msk /*!< Lock */ |
9685 | #define FLASH_CR_OPTWRE_Pos (9U) |
||
9 | mjames | 9686 | #define FLASH_CR_OPTWRE_Msk (0x1UL << FLASH_CR_OPTWRE_Pos) /*!< 0x00000200 */ |
2 | mjames | 9687 | #define FLASH_CR_OPTWRE FLASH_CR_OPTWRE_Msk /*!< Option Bytes Write Enable */ |
9688 | #define FLASH_CR_ERRIE_Pos (10U) |
||
9 | mjames | 9689 | #define FLASH_CR_ERRIE_Msk (0x1UL << FLASH_CR_ERRIE_Pos) /*!< 0x00000400 */ |
2 | mjames | 9690 | #define FLASH_CR_ERRIE FLASH_CR_ERRIE_Msk /*!< Error Interrupt Enable */ |
9691 | #define FLASH_CR_EOPIE_Pos (12U) |
||
9 | mjames | 9692 | #define FLASH_CR_EOPIE_Msk (0x1UL << FLASH_CR_EOPIE_Pos) /*!< 0x00001000 */ |
2 | mjames | 9693 | #define FLASH_CR_EOPIE FLASH_CR_EOPIE_Msk /*!< End of operation interrupt enable */ |
9694 | |||
9695 | /******************* Bit definition for FLASH_AR register *******************/ |
||
9696 | #define FLASH_AR_FAR_Pos (0U) |
||
9 | mjames | 9697 | #define FLASH_AR_FAR_Msk (0xFFFFFFFFUL << FLASH_AR_FAR_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 9698 | #define FLASH_AR_FAR FLASH_AR_FAR_Msk /*!< Flash Address */ |
9699 | |||
9700 | /****************** Bit definition for FLASH_OBR register *******************/ |
||
9701 | #define FLASH_OBR_OPTERR_Pos (0U) |
||
9 | mjames | 9702 | #define FLASH_OBR_OPTERR_Msk (0x1UL << FLASH_OBR_OPTERR_Pos) /*!< 0x00000001 */ |
2 | mjames | 9703 | #define FLASH_OBR_OPTERR FLASH_OBR_OPTERR_Msk /*!< Option Byte Error */ |
9704 | #define FLASH_OBR_RDPRT_Pos (1U) |
||
9 | mjames | 9705 | #define FLASH_OBR_RDPRT_Msk (0x1UL << FLASH_OBR_RDPRT_Pos) /*!< 0x00000002 */ |
2 | mjames | 9706 | #define FLASH_OBR_RDPRT FLASH_OBR_RDPRT_Msk /*!< Read protection */ |
9707 | |||
9708 | #define FLASH_OBR_IWDG_SW_Pos (2U) |
||
9 | mjames | 9709 | #define FLASH_OBR_IWDG_SW_Msk (0x1UL << FLASH_OBR_IWDG_SW_Pos) /*!< 0x00000004 */ |
2 | mjames | 9710 | #define FLASH_OBR_IWDG_SW FLASH_OBR_IWDG_SW_Msk /*!< IWDG SW */ |
9711 | #define FLASH_OBR_nRST_STOP_Pos (3U) |
||
9 | mjames | 9712 | #define FLASH_OBR_nRST_STOP_Msk (0x1UL << FLASH_OBR_nRST_STOP_Pos) /*!< 0x00000008 */ |
2 | mjames | 9713 | #define FLASH_OBR_nRST_STOP FLASH_OBR_nRST_STOP_Msk /*!< nRST_STOP */ |
9714 | #define FLASH_OBR_nRST_STDBY_Pos (4U) |
||
9 | mjames | 9715 | #define FLASH_OBR_nRST_STDBY_Msk (0x1UL << FLASH_OBR_nRST_STDBY_Pos) /*!< 0x00000010 */ |
2 | mjames | 9716 | #define FLASH_OBR_nRST_STDBY FLASH_OBR_nRST_STDBY_Msk /*!< nRST_STDBY */ |
9717 | #define FLASH_OBR_USER_Pos (2U) |
||
9 | mjames | 9718 | #define FLASH_OBR_USER_Msk (0x7UL << FLASH_OBR_USER_Pos) /*!< 0x0000001C */ |
2 | mjames | 9719 | #define FLASH_OBR_USER FLASH_OBR_USER_Msk /*!< User Option Bytes */ |
9720 | #define FLASH_OBR_DATA0_Pos (10U) |
||
9 | mjames | 9721 | #define FLASH_OBR_DATA0_Msk (0xFFUL << FLASH_OBR_DATA0_Pos) /*!< 0x0003FC00 */ |
2 | mjames | 9722 | #define FLASH_OBR_DATA0 FLASH_OBR_DATA0_Msk /*!< Data0 */ |
9723 | #define FLASH_OBR_DATA1_Pos (18U) |
||
9 | mjames | 9724 | #define FLASH_OBR_DATA1_Msk (0xFFUL << FLASH_OBR_DATA1_Pos) /*!< 0x03FC0000 */ |
2 | mjames | 9725 | #define FLASH_OBR_DATA1 FLASH_OBR_DATA1_Msk /*!< Data1 */ |
9726 | |||
9727 | /****************** Bit definition for FLASH_WRPR register ******************/ |
||
9728 | #define FLASH_WRPR_WRP_Pos (0U) |
||
9 | mjames | 9729 | #define FLASH_WRPR_WRP_Msk (0xFFFFFFFFUL << FLASH_WRPR_WRP_Pos) /*!< 0xFFFFFFFF */ |
2 | mjames | 9730 | #define FLASH_WRPR_WRP FLASH_WRPR_WRP_Msk /*!< Write Protect */ |
9731 | |||
9732 | /*----------------------------------------------------------------------------*/ |
||
9733 | |||
9734 | /****************** Bit definition for FLASH_RDP register *******************/ |
||
9735 | #define FLASH_RDP_RDP_Pos (0U) |
||
9 | mjames | 9736 | #define FLASH_RDP_RDP_Msk (0xFFUL << FLASH_RDP_RDP_Pos) /*!< 0x000000FF */ |
2 | mjames | 9737 | #define FLASH_RDP_RDP FLASH_RDP_RDP_Msk /*!< Read protection option byte */ |
9738 | #define FLASH_RDP_nRDP_Pos (8U) |
||
9 | mjames | 9739 | #define FLASH_RDP_nRDP_Msk (0xFFUL << FLASH_RDP_nRDP_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 9740 | #define FLASH_RDP_nRDP FLASH_RDP_nRDP_Msk /*!< Read protection complemented option byte */ |
9741 | |||
9742 | /****************** Bit definition for FLASH_USER register ******************/ |
||
9743 | #define FLASH_USER_USER_Pos (16U) |
||
9 | mjames | 9744 | #define FLASH_USER_USER_Msk (0xFFUL << FLASH_USER_USER_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 9745 | #define FLASH_USER_USER FLASH_USER_USER_Msk /*!< User option byte */ |
9746 | #define FLASH_USER_nUSER_Pos (24U) |
||
9 | mjames | 9747 | #define FLASH_USER_nUSER_Msk (0xFFUL << FLASH_USER_nUSER_Pos) /*!< 0xFF000000 */ |
2 | mjames | 9748 | #define FLASH_USER_nUSER FLASH_USER_nUSER_Msk /*!< User complemented option byte */ |
9749 | |||
9750 | /****************** Bit definition for FLASH_Data0 register *****************/ |
||
9751 | #define FLASH_DATA0_DATA0_Pos (0U) |
||
9 | mjames | 9752 | #define FLASH_DATA0_DATA0_Msk (0xFFUL << FLASH_DATA0_DATA0_Pos) /*!< 0x000000FF */ |
2 | mjames | 9753 | #define FLASH_DATA0_DATA0 FLASH_DATA0_DATA0_Msk /*!< User data storage option byte */ |
9754 | #define FLASH_DATA0_nDATA0_Pos (8U) |
||
9 | mjames | 9755 | #define FLASH_DATA0_nDATA0_Msk (0xFFUL << FLASH_DATA0_nDATA0_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 9756 | #define FLASH_DATA0_nDATA0 FLASH_DATA0_nDATA0_Msk /*!< User data storage complemented option byte */ |
9757 | |||
9758 | /****************** Bit definition for FLASH_Data1 register *****************/ |
||
9759 | #define FLASH_DATA1_DATA1_Pos (16U) |
||
9 | mjames | 9760 | #define FLASH_DATA1_DATA1_Msk (0xFFUL << FLASH_DATA1_DATA1_Pos) /*!< 0x00FF0000 */ |
2 | mjames | 9761 | #define FLASH_DATA1_DATA1 FLASH_DATA1_DATA1_Msk /*!< User data storage option byte */ |
9762 | #define FLASH_DATA1_nDATA1_Pos (24U) |
||
9 | mjames | 9763 | #define FLASH_DATA1_nDATA1_Msk (0xFFUL << FLASH_DATA1_nDATA1_Pos) /*!< 0xFF000000 */ |
2 | mjames | 9764 | #define FLASH_DATA1_nDATA1 FLASH_DATA1_nDATA1_Msk /*!< User data storage complemented option byte */ |
9765 | |||
9766 | /****************** Bit definition for FLASH_WRP0 register ******************/ |
||
9767 | #define FLASH_WRP0_WRP0_Pos (0U) |
||
9 | mjames | 9768 | #define FLASH_WRP0_WRP0_Msk (0xFFUL << FLASH_WRP0_WRP0_Pos) /*!< 0x000000FF */ |
2 | mjames | 9769 | #define FLASH_WRP0_WRP0 FLASH_WRP0_WRP0_Msk /*!< Flash memory write protection option bytes */ |
9770 | #define FLASH_WRP0_nWRP0_Pos (8U) |
||
9 | mjames | 9771 | #define FLASH_WRP0_nWRP0_Msk (0xFFUL << FLASH_WRP0_nWRP0_Pos) /*!< 0x0000FF00 */ |
2 | mjames | 9772 | #define FLASH_WRP0_nWRP0 FLASH_WRP0_nWRP0_Msk /*!< Flash memory write protection complemented option bytes */ |
9773 | |||
9774 | |||
9775 | |||
9776 | /** |
||
9777 | * @} |
||
9778 | */ |
||
9779 | |||
9780 | /** |
||
9781 | * @} |
||
9782 | */ |
||
9783 | |||
9784 | /** @addtogroup Exported_macro |
||
9785 | * @{ |
||
9786 | */ |
||
9787 | |||
9788 | /****************************** ADC Instances *********************************/ |
||
9789 | #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1) || \ |
||
9790 | ((INSTANCE) == ADC2)) |
||
9791 | |||
9792 | #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC12_COMMON) |
||
9793 | |||
9794 | #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1) |
||
9795 | |||
9796 | #define IS_ADC_DMA_CAPABILITY_INSTANCE(INSTANCE) ((INSTANCE) == ADC1) |
||
9797 | |||
9798 | /****************************** CAN Instances *********************************/ |
||
9799 | #define IS_CAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CAN1) |
||
9800 | |||
9801 | /****************************** CRC Instances *********************************/ |
||
9802 | #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC) |
||
9803 | |||
9804 | /****************************** DAC Instances *********************************/ |
||
9805 | |||
9806 | /****************************** DMA Instances *********************************/ |
||
9807 | #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \ |
||
9808 | ((INSTANCE) == DMA1_Channel2) || \ |
||
9809 | ((INSTANCE) == DMA1_Channel3) || \ |
||
9810 | ((INSTANCE) == DMA1_Channel4) || \ |
||
9811 | ((INSTANCE) == DMA1_Channel5) || \ |
||
9812 | ((INSTANCE) == DMA1_Channel6) || \ |
||
9813 | ((INSTANCE) == DMA1_Channel7)) |
||
9814 | |||
9815 | /******************************* GPIO Instances *******************************/ |
||
9816 | #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \ |
||
9817 | ((INSTANCE) == GPIOB) || \ |
||
9818 | ((INSTANCE) == GPIOC) || \ |
||
9819 | ((INSTANCE) == GPIOD)) |
||
9820 | |||
9821 | /**************************** GPIO Alternate Function Instances ***************/ |
||
9822 | #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) |
||
9823 | |||
9824 | /**************************** GPIO Lock Instances *****************************/ |
||
9825 | #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) |
||
9826 | |||
9827 | /******************************** I2C Instances *******************************/ |
||
9828 | #define IS_I2C_ALL_INSTANCE(INSTANCE) ((INSTANCE) == I2C1) |
||
9829 | |||
9830 | /******************************* SMBUS Instances ******************************/ |
||
9831 | #define IS_SMBUS_ALL_INSTANCE IS_I2C_ALL_INSTANCE |
||
9832 | |||
9833 | /****************************** IWDG Instances ********************************/ |
||
9834 | #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG) |
||
9835 | |||
9836 | /******************************** SPI Instances *******************************/ |
||
9837 | #define IS_SPI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SPI1) |
||
9838 | |||
9839 | /****************************** START TIM Instances ***************************/ |
||
9840 | /****************************** TIM Instances *********************************/ |
||
9841 | #define IS_TIM_INSTANCE(INSTANCE)\ |
||
9842 | (((INSTANCE) == TIM1) || \ |
||
9843 | ((INSTANCE) == TIM2) || \ |
||
9844 | ((INSTANCE) == TIM3)) |
||
9845 | |||
9846 | #define IS_TIM_ADVANCED_INSTANCE(INSTANCE) ((INSTANCE) == TIM1) |
||
9847 | |||
9848 | #define IS_TIM_CC1_INSTANCE(INSTANCE)\ |
||
9849 | (((INSTANCE) == TIM1) || \ |
||
9850 | ((INSTANCE) == TIM2) || \ |
||
9851 | ((INSTANCE) == TIM3)) |
||
9852 | |||
9853 | #define IS_TIM_CC2_INSTANCE(INSTANCE)\ |
||
9854 | (((INSTANCE) == TIM1) || \ |
||
9855 | ((INSTANCE) == TIM2) || \ |
||
9856 | ((INSTANCE) == TIM3)) |
||
9857 | |||
9858 | #define IS_TIM_CC3_INSTANCE(INSTANCE)\ |
||
9859 | (((INSTANCE) == TIM1) || \ |
||
9860 | ((INSTANCE) == TIM2) || \ |
||
9861 | ((INSTANCE) == TIM3)) |
||
9862 | |||
9863 | #define IS_TIM_CC4_INSTANCE(INSTANCE)\ |
||
9864 | (((INSTANCE) == TIM1) || \ |
||
9865 | ((INSTANCE) == TIM2) || \ |
||
9866 | ((INSTANCE) == TIM3)) |
||
9867 | |||
9868 | #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\ |
||
9869 | (((INSTANCE) == TIM1) || \ |
||
9870 | ((INSTANCE) == TIM2) || \ |
||
9871 | ((INSTANCE) == TIM3)) |
||
9872 | |||
9873 | #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\ |
||
9874 | (((INSTANCE) == TIM1) || \ |
||
9875 | ((INSTANCE) == TIM2) || \ |
||
9876 | ((INSTANCE) == TIM3)) |
||
9877 | |||
9878 | #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\ |
||
9879 | (((INSTANCE) == TIM1) || \ |
||
9880 | ((INSTANCE) == TIM2) || \ |
||
9881 | ((INSTANCE) == TIM3)) |
||
9882 | |||
9883 | #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\ |
||
9884 | (((INSTANCE) == TIM1) || \ |
||
9885 | ((INSTANCE) == TIM2) || \ |
||
9886 | ((INSTANCE) == TIM3)) |
||
9887 | |||
9888 | #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\ |
||
9889 | (((INSTANCE) == TIM1) || \ |
||
9890 | ((INSTANCE) == TIM2) || \ |
||
9891 | ((INSTANCE) == TIM3)) |
||
9892 | |||
9893 | #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)\ |
||
9894 | (((INSTANCE) == TIM1) || \ |
||
9895 | ((INSTANCE) == TIM2) || \ |
||
9896 | ((INSTANCE) == TIM3)) |
||
9897 | |||
9898 | #define IS_TIM_XOR_INSTANCE(INSTANCE)\ |
||
9899 | (((INSTANCE) == TIM1) || \ |
||
9900 | ((INSTANCE) == TIM2) || \ |
||
9901 | ((INSTANCE) == TIM3)) |
||
9902 | |||
9903 | #define IS_TIM_MASTER_INSTANCE(INSTANCE)\ |
||
9904 | (((INSTANCE) == TIM1) || \ |
||
9905 | ((INSTANCE) == TIM2) || \ |
||
9906 | ((INSTANCE) == TIM3)) |
||
9907 | |||
9908 | #define IS_TIM_SLAVE_INSTANCE(INSTANCE)\ |
||
9909 | (((INSTANCE) == TIM1) || \ |
||
9910 | ((INSTANCE) == TIM2) || \ |
||
9911 | ((INSTANCE) == TIM3)) |
||
9912 | |||
9913 | #define IS_TIM_DMABURST_INSTANCE(INSTANCE)\ |
||
9914 | (((INSTANCE) == TIM1) || \ |
||
9915 | ((INSTANCE) == TIM2) || \ |
||
9916 | ((INSTANCE) == TIM3)) |
||
9917 | |||
9918 | #define IS_TIM_BREAK_INSTANCE(INSTANCE)\ |
||
9919 | ((INSTANCE) == TIM1) |
||
9920 | |||
9921 | #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \ |
||
9922 | ((((INSTANCE) == TIM1) && \ |
||
9923 | (((CHANNEL) == TIM_CHANNEL_1) || \ |
||
9924 | ((CHANNEL) == TIM_CHANNEL_2) || \ |
||
9925 | ((CHANNEL) == TIM_CHANNEL_3) || \ |
||
9926 | ((CHANNEL) == TIM_CHANNEL_4))) \ |
||
9927 | || \ |
||
9928 | (((INSTANCE) == TIM2) && \ |
||
9929 | (((CHANNEL) == TIM_CHANNEL_1) || \ |
||
9930 | ((CHANNEL) == TIM_CHANNEL_2) || \ |
||
9931 | ((CHANNEL) == TIM_CHANNEL_3) || \ |
||
9932 | ((CHANNEL) == TIM_CHANNEL_4))) \ |
||
9933 | || \ |
||
9934 | (((INSTANCE) == TIM3) && \ |
||
9935 | (((CHANNEL) == TIM_CHANNEL_1) || \ |
||
9936 | ((CHANNEL) == TIM_CHANNEL_2) || \ |
||
9937 | ((CHANNEL) == TIM_CHANNEL_3) || \ |
||
9938 | ((CHANNEL) == TIM_CHANNEL_4)))) |
||
9939 | |||
9940 | #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \ |
||
9941 | (((INSTANCE) == TIM1) && \ |
||
9942 | (((CHANNEL) == TIM_CHANNEL_1) || \ |
||
9943 | ((CHANNEL) == TIM_CHANNEL_2) || \ |
||
9944 | ((CHANNEL) == TIM_CHANNEL_3))) |
||
9945 | |||
9946 | #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\ |
||
9947 | (((INSTANCE) == TIM1) || \ |
||
9948 | ((INSTANCE) == TIM2) || \ |
||
9949 | ((INSTANCE) == TIM3)) |
||
9950 | |||
9951 | #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\ |
||
9952 | ((INSTANCE) == TIM1) |
||
9953 | |||
9954 | #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\ |
||
9955 | (((INSTANCE) == TIM1) || \ |
||
9956 | ((INSTANCE) == TIM2) || \ |
||
9957 | ((INSTANCE) == TIM3)) |
||
9958 | |||
9959 | #define IS_TIM_DMA_INSTANCE(INSTANCE)\ |
||
9960 | (((INSTANCE) == TIM1) || \ |
||
9961 | ((INSTANCE) == TIM2) || \ |
||
9962 | ((INSTANCE) == TIM3)) |
||
9963 | |||
9964 | #define IS_TIM_DMA_CC_INSTANCE(INSTANCE)\ |
||
9965 | (((INSTANCE) == TIM1) || \ |
||
9966 | ((INSTANCE) == TIM2) || \ |
||
9967 | ((INSTANCE) == TIM3)) |
||
9968 | |||
9969 | #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE)\ |
||
9970 | ((INSTANCE) == TIM1) |
||
9971 | |||
9972 | #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ |
||
9973 | ((INSTANCE) == TIM2) || \ |
||
9974 | ((INSTANCE) == TIM3)) |
||
9975 | |||
9976 | #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ |
||
9977 | ((INSTANCE) == TIM2) || \ |
||
9978 | ((INSTANCE) == TIM3)) |
||
9979 | |||
9980 | #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) 0U |
||
9981 | |||
9982 | /****************************** END TIM Instances *****************************/ |
||
9983 | |||
9984 | |||
9985 | /******************** USART Instances : Synchronous mode **********************/ |
||
9986 | #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
9987 | ((INSTANCE) == USART2)) |
||
9988 | |||
9989 | /******************** UART Instances : Asynchronous mode **********************/ |
||
9990 | #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
9991 | ((INSTANCE) == USART2) ) |
||
9992 | |||
9993 | /******************** UART Instances : Half-Duplex mode **********************/ |
||
9994 | #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
9995 | ((INSTANCE) == USART2) ) |
||
9996 | |||
9997 | /******************** UART Instances : LIN mode **********************/ |
||
9998 | #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
9999 | ((INSTANCE) == USART2) ) |
||
10000 | |||
10001 | /****************** UART Instances : Hardware Flow control ********************/ |
||
10002 | #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
10003 | ((INSTANCE) == USART2) ) |
||
10004 | |||
10005 | /********************* UART Instances : Smard card mode ***********************/ |
||
10006 | #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
10007 | ((INSTANCE) == USART2) ) |
||
10008 | |||
10009 | /*********************** UART Instances : IRDA mode ***************************/ |
||
10010 | #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
10011 | ((INSTANCE) == USART2) ) |
||
10012 | |||
10013 | /***************** UART Instances : Multi-Processor mode **********************/ |
||
10014 | #define IS_UART_MULTIPROCESSOR_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
10015 | ((INSTANCE) == USART2) ) |
||
10016 | |||
10017 | /***************** UART Instances : DMA mode available **********************/ |
||
10018 | #define IS_UART_DMA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ |
||
10019 | ((INSTANCE) == USART2)) |
||
10020 | |||
10021 | /****************************** RTC Instances *********************************/ |
||
10022 | #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC) |
||
10023 | |||
10024 | /**************************** WWDG Instances *****************************/ |
||
10025 | #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG) |
||
10026 | |||
10027 | /****************************** USB Instances ********************************/ |
||
9 | mjames | 10028 | #define IS_PCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB) |
2 | mjames | 10029 | |
10030 | |||
10031 | |||
10032 | #define RCC_HSE_MIN 4000000U |
||
10033 | #define RCC_HSE_MAX 16000000U |
||
10034 | |||
10035 | #define RCC_MAX_FREQUENCY 72000000U |
||
10036 | |||
10037 | /** |
||
10038 | * @} |
||
10039 | */ |
||
10040 | /******************************************************************************/ |
||
10041 | /* For a painless codes migration between the STM32F1xx device product */ |
||
10042 | /* lines, the aliases defined below are put in place to overcome the */ |
||
10043 | /* differences in the interrupt handlers and IRQn definitions. */ |
||
10044 | /* No need to update developed interrupt code when moving across */ |
||
10045 | /* product lines within the same STM32F1 Family */ |
||
10046 | /******************************************************************************/ |
||
10047 | |||
10048 | /* Aliases for __IRQn */ |
||
10049 | #define ADC1_IRQn ADC1_2_IRQn |
||
10050 | #define TIM1_BRK_TIM9_IRQn TIM1_BRK_IRQn |
||
10051 | #define TIM1_BRK_TIM15_IRQn TIM1_BRK_IRQn |
||
9 | mjames | 10052 | #define TIM9_IRQn TIM1_BRK_IRQn |
10053 | #define TIM11_IRQn TIM1_TRG_COM_IRQn |
||
2 | mjames | 10054 | #define TIM1_TRG_COM_TIM17_IRQn TIM1_TRG_COM_IRQn |
10055 | #define TIM1_TRG_COM_TIM11_IRQn TIM1_TRG_COM_IRQn |
||
9 | mjames | 10056 | #define TIM1_UP_TIM16_IRQn TIM1_UP_IRQn |
2 | mjames | 10057 | #define TIM1_UP_TIM10_IRQn TIM1_UP_IRQn |
10058 | #define TIM10_IRQn TIM1_UP_IRQn |
||
10059 | #define OTG_FS_WKUP_IRQn USBWakeUp_IRQn |
||
10060 | #define CEC_IRQn USBWakeUp_IRQn |
||
10061 | #define USB_HP_IRQn USB_HP_CAN1_TX_IRQn |
||
10062 | #define CAN1_TX_IRQn USB_HP_CAN1_TX_IRQn |
||
9 | mjames | 10063 | #define USB_LP_IRQn USB_LP_CAN1_RX0_IRQn |
2 | mjames | 10064 | #define CAN1_RX0_IRQn USB_LP_CAN1_RX0_IRQn |
10065 | |||
10066 | |||
10067 | /* Aliases for __IRQHandler */ |
||
10068 | #define ADC1_IRQHandler ADC1_2_IRQHandler |
||
10069 | #define TIM1_BRK_TIM9_IRQHandler TIM1_BRK_IRQHandler |
||
10070 | #define TIM1_BRK_TIM15_IRQHandler TIM1_BRK_IRQHandler |
||
9 | mjames | 10071 | #define TIM9_IRQHandler TIM1_BRK_IRQHandler |
10072 | #define TIM11_IRQHandler TIM1_TRG_COM_IRQHandler |
||
2 | mjames | 10073 | #define TIM1_TRG_COM_TIM17_IRQHandler TIM1_TRG_COM_IRQHandler |
10074 | #define TIM1_TRG_COM_TIM11_IRQHandler TIM1_TRG_COM_IRQHandler |
||
9 | mjames | 10075 | #define TIM1_UP_TIM16_IRQHandler TIM1_UP_IRQHandler |
2 | mjames | 10076 | #define TIM1_UP_TIM10_IRQHandler TIM1_UP_IRQHandler |
10077 | #define TIM10_IRQHandler TIM1_UP_IRQHandler |
||
10078 | #define OTG_FS_WKUP_IRQHandler USBWakeUp_IRQHandler |
||
10079 | #define CEC_IRQHandler USBWakeUp_IRQHandler |
||
10080 | #define USB_HP_IRQHandler USB_HP_CAN1_TX_IRQHandler |
||
10081 | #define CAN1_TX_IRQHandler USB_HP_CAN1_TX_IRQHandler |
||
9 | mjames | 10082 | #define USB_LP_IRQHandler USB_LP_CAN1_RX0_IRQHandler |
2 | mjames | 10083 | #define CAN1_RX0_IRQHandler USB_LP_CAN1_RX0_IRQHandler |
10084 | |||
10085 | |||
10086 | /** |
||
10087 | * @} |
||
10088 | */ |
||
10089 | |||
10090 | /** |
||
10091 | * @} |
||
10092 | */ |
||
10093 | |||
10094 | |||
10095 | #ifdef __cplusplus |
||
10096 | } |
||
10097 | #endif /* __cplusplus */ |
||
10098 | |||
10099 | #endif /* __STM32F103x6_H */ |
||
10100 | |||
10101 | |||
10102 | |||
10103 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |