mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Committer:
yusuke_kyo
Date:
Wed Apr 08 08:04:18 2015 +0000
Revision:
98:01a414ca7d6d
Parent:
93:e188a91d3eaa
remove SerialHalfDuplex.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 93:e188a91d3eaa 1 /**
Kojto 93:e188a91d3eaa 2 ******************************************************************************
Kojto 93:e188a91d3eaa 3 * @file stm32f303xe.h
Kojto 93:e188a91d3eaa 4 * @author MCD Application Team
Kojto 93:e188a91d3eaa 5 * @version V2.1.0
Kojto 93:e188a91d3eaa 6 * @date 12-Sept-2014
Kojto 93:e188a91d3eaa 7 * @brief CMSIS STM32F303xE Devices Peripheral Access Layer Header File.
Kojto 93:e188a91d3eaa 8 *
Kojto 93:e188a91d3eaa 9 * This file contains:
Kojto 93:e188a91d3eaa 10 * - Data structures and the address mapping for all peripherals
Kojto 93:e188a91d3eaa 11 * - Peripheral's registers declarations and bits definition
Kojto 93:e188a91d3eaa 12 * - Macros to access peripheral’s registers hardware
Kojto 93:e188a91d3eaa 13 *
Kojto 93:e188a91d3eaa 14 ******************************************************************************
Kojto 93:e188a91d3eaa 15 * @attention
Kojto 93:e188a91d3eaa 16 *
Kojto 93:e188a91d3eaa 17 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
Kojto 93:e188a91d3eaa 18 *
Kojto 93:e188a91d3eaa 19 * Redistribution and use in source and binary forms, with or without modification,
Kojto 93:e188a91d3eaa 20 * are permitted provided that the following conditions are met:
Kojto 93:e188a91d3eaa 21 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 93:e188a91d3eaa 22 * this list of conditions and the following disclaimer.
Kojto 93:e188a91d3eaa 23 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 93:e188a91d3eaa 24 * this list of conditions and the following disclaimer in the documentation
Kojto 93:e188a91d3eaa 25 * and/or other materials provided with the distribution.
Kojto 93:e188a91d3eaa 26 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 93:e188a91d3eaa 27 * may be used to endorse or promote products derived from this software
Kojto 93:e188a91d3eaa 28 * without specific prior written permission.
Kojto 93:e188a91d3eaa 29 *
Kojto 93:e188a91d3eaa 30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 93:e188a91d3eaa 31 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 93:e188a91d3eaa 32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 93:e188a91d3eaa 33 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 93:e188a91d3eaa 34 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 93:e188a91d3eaa 35 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 93:e188a91d3eaa 36 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 93:e188a91d3eaa 37 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 93:e188a91d3eaa 38 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 93:e188a91d3eaa 39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 93:e188a91d3eaa 40 *
Kojto 93:e188a91d3eaa 41 ******************************************************************************
Kojto 93:e188a91d3eaa 42 */
Kojto 93:e188a91d3eaa 43
Kojto 93:e188a91d3eaa 44 /** @addtogroup CMSIS_Device
Kojto 93:e188a91d3eaa 45 * @{
Kojto 93:e188a91d3eaa 46 */
Kojto 93:e188a91d3eaa 47
Kojto 93:e188a91d3eaa 48 /** @addtogroup stm32f303xe
Kojto 93:e188a91d3eaa 49 * @{
Kojto 93:e188a91d3eaa 50 */
Kojto 93:e188a91d3eaa 51
Kojto 93:e188a91d3eaa 52 #ifndef __STM32F303xE_H
Kojto 93:e188a91d3eaa 53 #define __STM32F303xE_H
Kojto 93:e188a91d3eaa 54
Kojto 93:e188a91d3eaa 55 #ifdef __cplusplus
Kojto 93:e188a91d3eaa 56 extern "C" {
Kojto 93:e188a91d3eaa 57 #endif /* __cplusplus */
Kojto 93:e188a91d3eaa 58
Kojto 93:e188a91d3eaa 59 /** @addtogroup Configuration_section_for_CMSIS
Kojto 93:e188a91d3eaa 60 * @{
Kojto 93:e188a91d3eaa 61 */
Kojto 93:e188a91d3eaa 62
Kojto 93:e188a91d3eaa 63 /**
Kojto 93:e188a91d3eaa 64 * @brief Configuration of the Cortex-M4 Processor and Core Peripherals
Kojto 93:e188a91d3eaa 65 */
Kojto 93:e188a91d3eaa 66 #define __CM4_REV 0x0001 /*!< Core revision r0p1 */
Kojto 93:e188a91d3eaa 67 #define __MPU_PRESENT 1 /*!< STM32F303xE devices provide an MPU */
Kojto 93:e188a91d3eaa 68 #define __NVIC_PRIO_BITS 4 /*!< STM32F303xE devices use 4 Bits for the Priority Levels */
Kojto 93:e188a91d3eaa 69 #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
Kojto 93:e188a91d3eaa 70 #define __FPU_PRESENT 1 /*!< STM32F303xE devices provide an FPU */
Kojto 93:e188a91d3eaa 71
Kojto 93:e188a91d3eaa 72 /**
Kojto 93:e188a91d3eaa 73 * @}
Kojto 93:e188a91d3eaa 74 */
Kojto 93:e188a91d3eaa 75
Kojto 93:e188a91d3eaa 76 /** @addtogroup Peripheral_interrupt_number_definition
Kojto 93:e188a91d3eaa 77 * @{
Kojto 93:e188a91d3eaa 78 */
Kojto 93:e188a91d3eaa 79
Kojto 93:e188a91d3eaa 80 /**
Kojto 93:e188a91d3eaa 81 * @brief STM32F303xE devices Interrupt Number Definition, according to the selected device
Kojto 93:e188a91d3eaa 82 * in @ref Library_configuration_section
Kojto 93:e188a91d3eaa 83 */
Kojto 93:e188a91d3eaa 84 typedef enum
Kojto 93:e188a91d3eaa 85 {
Kojto 93:e188a91d3eaa 86 /****** Cortex-M4 Processor Exceptions Numbers ****************************************************************/
Kojto 93:e188a91d3eaa 87 NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
Kojto 93:e188a91d3eaa 88 MemoryManagement_IRQn = -12, /*!< 4 Cortex-M4 Memory Management Interrupt */
Kojto 93:e188a91d3eaa 89 BusFault_IRQn = -11, /*!< 5 Cortex-M4 Bus Fault Interrupt */
Kojto 93:e188a91d3eaa 90 UsageFault_IRQn = -10, /*!< 6 Cortex-M4 Usage Fault Interrupt */
Kojto 93:e188a91d3eaa 91 SVCall_IRQn = -5, /*!< 11 Cortex-M4 SV Call Interrupt */
Kojto 93:e188a91d3eaa 92 DebugMonitor_IRQn = -4, /*!< 12 Cortex-M4 Debug Monitor Interrupt */
Kojto 93:e188a91d3eaa 93 PendSV_IRQn = -2, /*!< 14 Cortex-M4 Pend SV Interrupt */
Kojto 93:e188a91d3eaa 94 SysTick_IRQn = -1, /*!< 15 Cortex-M4 System Tick Interrupt */
Kojto 93:e188a91d3eaa 95 /****** STM32 specific Interrupt Numbers **********************************************************************/
Kojto 93:e188a91d3eaa 96 WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
Kojto 93:e188a91d3eaa 97 PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */
Kojto 93:e188a91d3eaa 98 TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line 19 */
Kojto 93:e188a91d3eaa 99 RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line 20 */
Kojto 93:e188a91d3eaa 100 FLASH_IRQn = 4, /*!< FLASH global Interrupt */
Kojto 93:e188a91d3eaa 101 RCC_IRQn = 5, /*!< RCC global Interrupt */
Kojto 93:e188a91d3eaa 102 EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */
Kojto 93:e188a91d3eaa 103 EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */
Kojto 93:e188a91d3eaa 104 EXTI2_TSC_IRQn = 8, /*!< EXTI Line2 Interrupt and Touch Sense Controller Interrupt */
Kojto 93:e188a91d3eaa 105 EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */
Kojto 93:e188a91d3eaa 106 EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */
Kojto 93:e188a91d3eaa 107 DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 Interrupt */
Kojto 93:e188a91d3eaa 108 DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 Interrupt */
Kojto 93:e188a91d3eaa 109 DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 Interrupt */
Kojto 93:e188a91d3eaa 110 DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 Interrupt */
Kojto 93:e188a91d3eaa 111 DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 Interrupt */
Kojto 93:e188a91d3eaa 112 DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 Interrupt */
Kojto 93:e188a91d3eaa 113 DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 Interrupt */
Kojto 93:e188a91d3eaa 114 ADC1_2_IRQn = 18, /*!< ADC1 & ADC2 Interrupts */
Kojto 93:e188a91d3eaa 115 USB_HP_CAN_TX_IRQn = 19, /*!< USB Device High Priority or CAN TX Interrupts */
Kojto 93:e188a91d3eaa 116 USB_LP_CAN_RX0_IRQn = 20, /*!< USB Device Low Priority or CAN RX0 Interrupts */
Kojto 93:e188a91d3eaa 117 CAN_RX1_IRQn = 21, /*!< CAN RX1 Interrupt */
Kojto 93:e188a91d3eaa 118 CAN_SCE_IRQn = 22, /*!< CAN SCE Interrupt */
Kojto 93:e188a91d3eaa 119 EXTI9_5_IRQn = 23, /*!< External Line[9:5] Interrupts */
Kojto 93:e188a91d3eaa 120 TIM1_BRK_TIM15_IRQn = 24, /*!< TIM1 Break and TIM15 Interrupts */
Kojto 93:e188a91d3eaa 121 TIM1_UP_TIM16_IRQn = 25, /*!< TIM1 Update and TIM16 Interrupts */
Kojto 93:e188a91d3eaa 122 TIM1_TRG_COM_TIM17_IRQn = 26, /*!< TIM1 Trigger and Commutation and TIM17 Interrupt */
Kojto 93:e188a91d3eaa 123 TIM1_CC_IRQn = 27, /*!< TIM1 Capture Compare Interrupt */
Kojto 93:e188a91d3eaa 124 TIM2_IRQn = 28, /*!< TIM2 global Interrupt */
Kojto 93:e188a91d3eaa 125 TIM3_IRQn = 29, /*!< TIM3 global Interrupt */
Kojto 93:e188a91d3eaa 126 TIM4_IRQn = 30, /*!< TIM4 global Interrupt */
Kojto 93:e188a91d3eaa 127 I2C1_EV_IRQn = 31, /*!< I2C1 Event Interrupt & EXTI Line23 Interrupt (I2C1 wakeup) */
Kojto 93:e188a91d3eaa 128 I2C1_ER_IRQn = 32, /*!< I2C1 Error Interrupt */
Kojto 93:e188a91d3eaa 129 I2C2_EV_IRQn = 33, /*!< I2C2 Event Interrupt & EXTI Line24 Interrupt (I2C2 wakeup) */
Kojto 93:e188a91d3eaa 130 I2C2_ER_IRQn = 34, /*!< I2C2 Error Interrupt */
Kojto 93:e188a91d3eaa 131 SPI1_IRQn = 35, /*!< SPI1 global Interrupt */
Kojto 93:e188a91d3eaa 132 SPI2_IRQn = 36, /*!< SPI2 global Interrupt */
Kojto 93:e188a91d3eaa 133 USART1_IRQn = 37, /*!< USART1 global Interrupt & EXTI Line25 Interrupt (USART1 wakeup) */
Kojto 93:e188a91d3eaa 134 USART2_IRQn = 38, /*!< USART2 global Interrupt & EXTI Line26 Interrupt (USART2 wakeup) */
Kojto 93:e188a91d3eaa 135 USART3_IRQn = 39, /*!< USART3 global Interrupt & EXTI Line28 Interrupt (USART3 wakeup) */
Kojto 93:e188a91d3eaa 136 EXTI15_10_IRQn = 40, /*!< External Line[15:10] Interrupts */
Kojto 93:e188a91d3eaa 137 RTC_Alarm_IRQn = 41, /*!< RTC Alarm (A and B) through EXTI Line 17 Interrupt */
Kojto 93:e188a91d3eaa 138 USBWakeUp_IRQn = 42, /*!< USB Wakeup Interrupt */
Kojto 93:e188a91d3eaa 139 TIM8_BRK_IRQn = 43, /*!< TIM8 Break Interrupt */
Kojto 93:e188a91d3eaa 140 TIM8_UP_IRQn = 44, /*!< TIM8 Update Interrupt */
Kojto 93:e188a91d3eaa 141 TIM8_TRG_COM_IRQn = 45, /*!< TIM8 Trigger and Commutation Interrupt */
Kojto 93:e188a91d3eaa 142 TIM8_CC_IRQn = 46, /*!< TIM8 Capture Compare Interrupt */
Kojto 93:e188a91d3eaa 143 ADC3_IRQn = 47, /*!< ADC3 global Interrupt */
Kojto 93:e188a91d3eaa 144 FMC_IRQn = 48, /*!< FMC global Interrupt */
Kojto 93:e188a91d3eaa 145 SPI3_IRQn = 51, /*!< SPI3 global Interrupt */
Kojto 93:e188a91d3eaa 146 UART4_IRQn = 52, /*!< UART4 global Interrupt & EXTI Line34 Interrupt (UART4 wakeup) */
Kojto 93:e188a91d3eaa 147 UART5_IRQn = 53, /*!< UART5 global Interrupt & EXTI Line35 Interrupt (UART5 wakeup) */
Kojto 93:e188a91d3eaa 148 TIM6_DAC_IRQn = 54, /*!< TIM6 global and DAC channel 1&2 underrun error interrupts */
Kojto 93:e188a91d3eaa 149 TIM7_IRQn = 55, /*!< TIM7 global Interrupt */
Kojto 93:e188a91d3eaa 150 DMA2_Channel1_IRQn = 56, /*!< DMA2 Channel 1 global Interrupt */
Kojto 93:e188a91d3eaa 151 DMA2_Channel2_IRQn = 57, /*!< DMA2 Channel 2 global Interrupt */
Kojto 93:e188a91d3eaa 152 DMA2_Channel3_IRQn = 58, /*!< DMA2 Channel 3 global Interrupt */
Kojto 93:e188a91d3eaa 153 DMA2_Channel4_IRQn = 59, /*!< DMA2 Channel 4 global Interrupt */
Kojto 93:e188a91d3eaa 154 DMA2_Channel5_IRQn = 60, /*!< DMA2 Channel 5 global Interrupt */
Kojto 93:e188a91d3eaa 155 ADC4_IRQn = 61, /*!< ADC4 global Interrupt */
Kojto 93:e188a91d3eaa 156 COMP1_2_3_IRQn = 64, /*!< COMP1, COMP2 and COMP3 global Interrupt via EXTI Line21, 22 and 29*/
Kojto 93:e188a91d3eaa 157 COMP4_5_6_IRQn = 65, /*!< COMP4, COMP5 and COMP6 global Interrupt via EXTI Line30, 31 and 32*/
Kojto 93:e188a91d3eaa 158 COMP7_IRQn = 66, /*!< COMP7 global Interrupt via EXTI Line33 */
Kojto 93:e188a91d3eaa 159 I2C3_EV_IRQn = 72, /*!< I2C3 event interrupt */
Kojto 93:e188a91d3eaa 160 I2C3_ER_IRQn = 73, /*!< I2C3 error interrupt */
Kojto 93:e188a91d3eaa 161 USB_HP_IRQn = 74, /*!< USB High Priority global Interrupt remap */
Kojto 93:e188a91d3eaa 162 USB_LP_IRQn = 75, /*!< USB Low Priority global Interrupt remap */
Kojto 93:e188a91d3eaa 163 USBWakeUp_RMP_IRQn = 76, /*!< USB Wakeup Interrupt remap */
Kojto 93:e188a91d3eaa 164 TIM20_BRK_IRQn = 77, /*!< TIM20 Break Interrupt */
Kojto 93:e188a91d3eaa 165 TIM20_UP_IRQn = 78, /*!< TIM20 Update Interrupt */
Kojto 93:e188a91d3eaa 166 TIM20_TRG_COM_IRQn = 79, /*!< TIM20 Trigger and Commutation Interrupt */
Kojto 93:e188a91d3eaa 167 TIM20_CC_IRQn = 80, /*!< TIM20 Capture Compare Interrupt */
Kojto 93:e188a91d3eaa 168 FPU_IRQn = 81, /*!< Floating point Interrupt */
Kojto 93:e188a91d3eaa 169 SPI4_IRQn = 84, /*!< SPI4 global Interrupt */
Kojto 93:e188a91d3eaa 170 } IRQn_Type;
Kojto 93:e188a91d3eaa 171
Kojto 93:e188a91d3eaa 172 /**
Kojto 93:e188a91d3eaa 173 * @}
Kojto 93:e188a91d3eaa 174 */
Kojto 93:e188a91d3eaa 175
Kojto 93:e188a91d3eaa 176 #include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
Kojto 93:e188a91d3eaa 177 #include "system_stm32f3xx.h" /* STM32F3xx System Header */
Kojto 93:e188a91d3eaa 178 #include <stdint.h>
Kojto 93:e188a91d3eaa 179
Kojto 93:e188a91d3eaa 180 /** @addtogroup Peripheral_registers_structures
Kojto 93:e188a91d3eaa 181 * @{
Kojto 93:e188a91d3eaa 182 */
Kojto 93:e188a91d3eaa 183
Kojto 93:e188a91d3eaa 184 /**
Kojto 93:e188a91d3eaa 185 * @brief Analog to Digital Converter
Kojto 93:e188a91d3eaa 186 */
Kojto 93:e188a91d3eaa 187
Kojto 93:e188a91d3eaa 188 typedef struct
Kojto 93:e188a91d3eaa 189 {
Kojto 93:e188a91d3eaa 190 __IO uint32_t ISR; /*!< ADC Interrupt and Status Register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 191 __IO uint32_t IER; /*!< ADC Interrupt Enable Register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 192 __IO uint32_t CR; /*!< ADC control register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 193 __IO uint32_t CFGR; /*!< ADC Configuration register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 194 uint32_t RESERVED0; /*!< Reserved, 0x010 */
Kojto 93:e188a91d3eaa 195 __IO uint32_t SMPR1; /*!< ADC sample time register 1, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 196 __IO uint32_t SMPR2; /*!< ADC sample time register 2, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 197 uint32_t RESERVED1; /*!< Reserved, 0x01C */
Kojto 93:e188a91d3eaa 198 __IO uint32_t TR1; /*!< ADC watchdog threshold register 1, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 199 __IO uint32_t TR2; /*!< ADC watchdog threshold register 2, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 200 __IO uint32_t TR3; /*!< ADC watchdog threshold register 3, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 201 uint32_t RESERVED2; /*!< Reserved, 0x02C */
Kojto 93:e188a91d3eaa 202 __IO uint32_t SQR1; /*!< ADC regular sequence register 1, Address offset: 0x30 */
Kojto 93:e188a91d3eaa 203 __IO uint32_t SQR2; /*!< ADC regular sequence register 2, Address offset: 0x34 */
Kojto 93:e188a91d3eaa 204 __IO uint32_t SQR3; /*!< ADC regular sequence register 3, Address offset: 0x38 */
Kojto 93:e188a91d3eaa 205 __IO uint32_t SQR4; /*!< ADC regular sequence register 4, Address offset: 0x3C */
Kojto 93:e188a91d3eaa 206 __IO uint32_t DR; /*!< ADC regular data register, Address offset: 0x40 */
Kojto 93:e188a91d3eaa 207 uint32_t RESERVED3; /*!< Reserved, 0x044 */
Kojto 93:e188a91d3eaa 208 uint32_t RESERVED4; /*!< Reserved, 0x048 */
Kojto 93:e188a91d3eaa 209 __IO uint32_t JSQR; /*!< ADC injected sequence register, Address offset: 0x4C */
Kojto 93:e188a91d3eaa 210 uint32_t RESERVED5[4]; /*!< Reserved, 0x050 - 0x05C */
Kojto 93:e188a91d3eaa 211 __IO uint32_t OFR1; /*!< ADC offset register 1, Address offset: 0x60 */
Kojto 93:e188a91d3eaa 212 __IO uint32_t OFR2; /*!< ADC offset register 2, Address offset: 0x64 */
Kojto 93:e188a91d3eaa 213 __IO uint32_t OFR3; /*!< ADC offset register 3, Address offset: 0x68 */
Kojto 93:e188a91d3eaa 214 __IO uint32_t OFR4; /*!< ADC offset register 4, Address offset: 0x6C */
Kojto 93:e188a91d3eaa 215 uint32_t RESERVED6[4]; /*!< Reserved, 0x070 - 0x07C */
Kojto 93:e188a91d3eaa 216 __IO uint32_t JDR1; /*!< ADC injected data register 1, Address offset: 0x80 */
Kojto 93:e188a91d3eaa 217 __IO uint32_t JDR2; /*!< ADC injected data register 2, Address offset: 0x84 */
Kojto 93:e188a91d3eaa 218 __IO uint32_t JDR3; /*!< ADC injected data register 3, Address offset: 0x88 */
Kojto 93:e188a91d3eaa 219 __IO uint32_t JDR4; /*!< ADC injected data register 4, Address offset: 0x8C */
Kojto 93:e188a91d3eaa 220 uint32_t RESERVED7[4]; /*!< Reserved, 0x090 - 0x09C */
Kojto 93:e188a91d3eaa 221 __IO uint32_t AWD2CR; /*!< ADC Analog Watchdog 2 Configuration Register, Address offset: 0xA0 */
Kojto 93:e188a91d3eaa 222 __IO uint32_t AWD3CR; /*!< ADC Analog Watchdog 3 Configuration Register, Address offset: 0xA4 */
Kojto 93:e188a91d3eaa 223 uint32_t RESERVED8; /*!< Reserved, 0x0A8 */
Kojto 93:e188a91d3eaa 224 uint32_t RESERVED9; /*!< Reserved, 0x0AC */
Kojto 93:e188a91d3eaa 225 __IO uint32_t DIFSEL; /*!< ADC Differential Mode Selection Register, Address offset: 0xB0 */
Kojto 93:e188a91d3eaa 226 __IO uint32_t CALFACT; /*!< ADC Calibration Factors, Address offset: 0xB4 */
Kojto 93:e188a91d3eaa 227
Kojto 93:e188a91d3eaa 228 } ADC_TypeDef;
Kojto 93:e188a91d3eaa 229
Kojto 93:e188a91d3eaa 230 typedef struct
Kojto 93:e188a91d3eaa 231 {
Kojto 93:e188a91d3eaa 232 __IO uint32_t CSR; /*!< ADC Common status register, Address offset: ADC1/3 base address + 0x300 */
Kojto 93:e188a91d3eaa 233 uint32_t RESERVED; /*!< Reserved, ADC1/3 base address + 0x304 */
Kojto 93:e188a91d3eaa 234 __IO uint32_t CCR; /*!< ADC common control register, Address offset: ADC1/3 base address + 0x308 */
Kojto 93:e188a91d3eaa 235 __IO uint32_t CDR; /*!< ADC common regular data register for dual
Kojto 93:e188a91d3eaa 236 AND triple modes, Address offset: ADC1/3 base address + 0x30C */
Kojto 93:e188a91d3eaa 237 } ADC_Common_TypeDef;
Kojto 93:e188a91d3eaa 238
Kojto 93:e188a91d3eaa 239 /**
Kojto 93:e188a91d3eaa 240 * @brief Controller Area Network TxMailBox
Kojto 93:e188a91d3eaa 241 */
Kojto 93:e188a91d3eaa 242 typedef struct
Kojto 93:e188a91d3eaa 243 {
Kojto 93:e188a91d3eaa 244 __IO uint32_t TIR; /*!< CAN TX mailbox identifier register */
Kojto 93:e188a91d3eaa 245 __IO uint32_t TDTR; /*!< CAN mailbox data length control and time stamp register */
Kojto 93:e188a91d3eaa 246 __IO uint32_t TDLR; /*!< CAN mailbox data low register */
Kojto 93:e188a91d3eaa 247 __IO uint32_t TDHR; /*!< CAN mailbox data high register */
Kojto 93:e188a91d3eaa 248 } CAN_TxMailBox_TypeDef;
Kojto 93:e188a91d3eaa 249
Kojto 93:e188a91d3eaa 250 /**
Kojto 93:e188a91d3eaa 251 * @brief Controller Area Network FIFOMailBox
Kojto 93:e188a91d3eaa 252 */
Kojto 93:e188a91d3eaa 253 typedef struct
Kojto 93:e188a91d3eaa 254 {
Kojto 93:e188a91d3eaa 255 __IO uint32_t RIR; /*!< CAN receive FIFO mailbox identifier register */
Kojto 93:e188a91d3eaa 256 __IO uint32_t RDTR; /*!< CAN receive FIFO mailbox data length control and time stamp register */
Kojto 93:e188a91d3eaa 257 __IO uint32_t RDLR; /*!< CAN receive FIFO mailbox data low register */
Kojto 93:e188a91d3eaa 258 __IO uint32_t RDHR; /*!< CAN receive FIFO mailbox data high register */
Kojto 93:e188a91d3eaa 259 } CAN_FIFOMailBox_TypeDef;
Kojto 93:e188a91d3eaa 260
Kojto 93:e188a91d3eaa 261 /**
Kojto 93:e188a91d3eaa 262 * @brief Controller Area Network FilterRegister
Kojto 93:e188a91d3eaa 263 */
Kojto 93:e188a91d3eaa 264 typedef struct
Kojto 93:e188a91d3eaa 265 {
Kojto 93:e188a91d3eaa 266 __IO uint32_t FR1; /*!< CAN Filter bank register 1 */
Kojto 93:e188a91d3eaa 267 __IO uint32_t FR2; /*!< CAN Filter bank register 1 */
Kojto 93:e188a91d3eaa 268 } CAN_FilterRegister_TypeDef;
Kojto 93:e188a91d3eaa 269
Kojto 93:e188a91d3eaa 270 /**
Kojto 93:e188a91d3eaa 271 * @brief Controller Area Network
Kojto 93:e188a91d3eaa 272 */
Kojto 93:e188a91d3eaa 273 typedef struct
Kojto 93:e188a91d3eaa 274 {
Kojto 93:e188a91d3eaa 275 __IO uint32_t MCR; /*!< CAN master control register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 276 __IO uint32_t MSR; /*!< CAN master status register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 277 __IO uint32_t TSR; /*!< CAN transmit status register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 278 __IO uint32_t RF0R; /*!< CAN receive FIFO 0 register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 279 __IO uint32_t RF1R; /*!< CAN receive FIFO 1 register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 280 __IO uint32_t IER; /*!< CAN interrupt enable register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 281 __IO uint32_t ESR; /*!< CAN error status register, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 282 __IO uint32_t BTR; /*!< CAN bit timing register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 283 uint32_t RESERVED0[88]; /*!< Reserved, 0x020 - 0x17F */
Kojto 93:e188a91d3eaa 284 CAN_TxMailBox_TypeDef sTxMailBox[3]; /*!< CAN Tx MailBox, Address offset: 0x180 - 0x1AC */
Kojto 93:e188a91d3eaa 285 CAN_FIFOMailBox_TypeDef sFIFOMailBox[2]; /*!< CAN FIFO MailBox, Address offset: 0x1B0 - 0x1CC */
Kojto 93:e188a91d3eaa 286 uint32_t RESERVED1[12]; /*!< Reserved, 0x1D0 - 0x1FF */
Kojto 93:e188a91d3eaa 287 __IO uint32_t FMR; /*!< CAN filter master register, Address offset: 0x200 */
Kojto 93:e188a91d3eaa 288 __IO uint32_t FM1R; /*!< CAN filter mode register, Address offset: 0x204 */
Kojto 93:e188a91d3eaa 289 uint32_t RESERVED2; /*!< Reserved, 0x208 */
Kojto 93:e188a91d3eaa 290 __IO uint32_t FS1R; /*!< CAN filter scale register, Address offset: 0x20C */
Kojto 93:e188a91d3eaa 291 uint32_t RESERVED3; /*!< Reserved, 0x210 */
Kojto 93:e188a91d3eaa 292 __IO uint32_t FFA1R; /*!< CAN filter FIFO assignment register, Address offset: 0x214 */
Kojto 93:e188a91d3eaa 293 uint32_t RESERVED4; /*!< Reserved, 0x218 */
Kojto 93:e188a91d3eaa 294 __IO uint32_t FA1R; /*!< CAN filter activation register, Address offset: 0x21C */
Kojto 93:e188a91d3eaa 295 uint32_t RESERVED5[8]; /*!< Reserved, 0x220-0x23F */
Kojto 93:e188a91d3eaa 296 CAN_FilterRegister_TypeDef sFilterRegister[28]; /*!< CAN Filter Register, Address offset: 0x240-0x31C */
Kojto 93:e188a91d3eaa 297 } CAN_TypeDef;
Kojto 93:e188a91d3eaa 298
Kojto 93:e188a91d3eaa 299 /**
Kojto 93:e188a91d3eaa 300 * @brief Analog Comparators
Kojto 93:e188a91d3eaa 301 */
Kojto 93:e188a91d3eaa 302
Kojto 93:e188a91d3eaa 303 typedef struct
Kojto 93:e188a91d3eaa 304 {
Kojto 93:e188a91d3eaa 305 __IO uint32_t CSR; /*!< Comparator control Status register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 306 } COMP_TypeDef;
Kojto 93:e188a91d3eaa 307
Kojto 93:e188a91d3eaa 308 /**
Kojto 93:e188a91d3eaa 309 * @brief CRC calculation unit
Kojto 93:e188a91d3eaa 310 */
Kojto 93:e188a91d3eaa 311
Kojto 93:e188a91d3eaa 312 typedef struct
Kojto 93:e188a91d3eaa 313 {
Kojto 93:e188a91d3eaa 314 __IO uint32_t DR; /*!< CRC Data register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 315 __IO uint8_t IDR; /*!< CRC Independent data register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 316 uint8_t RESERVED0; /*!< Reserved, 0x05 */
Kojto 93:e188a91d3eaa 317 uint16_t RESERVED1; /*!< Reserved, 0x06 */
Kojto 93:e188a91d3eaa 318 __IO uint32_t CR; /*!< CRC Control register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 319 uint32_t RESERVED2; /*!< Reserved, 0x0C */
Kojto 93:e188a91d3eaa 320 __IO uint32_t INIT; /*!< Initial CRC value register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 321 __IO uint32_t POL; /*!< CRC polynomial register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 322 } CRC_TypeDef;
Kojto 93:e188a91d3eaa 323
Kojto 93:e188a91d3eaa 324 /**
Kojto 93:e188a91d3eaa 325 * @brief Digital to Analog Converter
Kojto 93:e188a91d3eaa 326 */
Kojto 93:e188a91d3eaa 327
Kojto 93:e188a91d3eaa 328 typedef struct
Kojto 93:e188a91d3eaa 329 {
Kojto 93:e188a91d3eaa 330 __IO uint32_t CR; /*!< DAC control register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 331 __IO uint32_t SWTRIGR; /*!< DAC software trigger register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 332 __IO uint32_t DHR12R1; /*!< DAC channel1 12-bit right-aligned data holding register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 333 __IO uint32_t DHR12L1; /*!< DAC channel1 12-bit left aligned data holding register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 334 __IO uint32_t DHR8R1; /*!< DAC channel1 8-bit right aligned data holding register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 335 __IO uint32_t DHR12R2; /*!< DAC channel2 12-bit right aligned data holding register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 336 __IO uint32_t DHR12L2; /*!< DAC channel2 12-bit left aligned data holding register, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 337 __IO uint32_t DHR8R2; /*!< DAC channel2 8-bit right-aligned data holding register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 338 __IO uint32_t DHR12RD; /*!< Dual DAC 12-bit right-aligned data holding register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 339 __IO uint32_t DHR12LD; /*!< DUAL DAC 12-bit left aligned data holding register, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 340 __IO uint32_t DHR8RD; /*!< DUAL DAC 8-bit right aligned data holding register, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 341 __IO uint32_t DOR1; /*!< DAC channel1 data output register, Address offset: 0x2C */
Kojto 93:e188a91d3eaa 342 __IO uint32_t DOR2; /*!< DAC channel2 data output register, Address offset: 0x30 */
Kojto 93:e188a91d3eaa 343 __IO uint32_t SR; /*!< DAC status register, Address offset: 0x34 */
Kojto 93:e188a91d3eaa 344 } DAC_TypeDef;
Kojto 93:e188a91d3eaa 345
Kojto 93:e188a91d3eaa 346 /**
Kojto 93:e188a91d3eaa 347 * @brief Debug MCU
Kojto 93:e188a91d3eaa 348 */
Kojto 93:e188a91d3eaa 349
Kojto 93:e188a91d3eaa 350 typedef struct
Kojto 93:e188a91d3eaa 351 {
Kojto 93:e188a91d3eaa 352 __IO uint32_t IDCODE; /*!< MCU device ID code, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 353 __IO uint32_t CR; /*!< Debug MCU configuration register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 354 __IO uint32_t APB1FZ; /*!< Debug MCU APB1 freeze register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 355 __IO uint32_t APB2FZ; /*!< Debug MCU APB2 freeze register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 356 }DBGMCU_TypeDef;
Kojto 93:e188a91d3eaa 357
Kojto 93:e188a91d3eaa 358 /**
Kojto 93:e188a91d3eaa 359 * @brief DMA Controller
Kojto 93:e188a91d3eaa 360 */
Kojto 93:e188a91d3eaa 361
Kojto 93:e188a91d3eaa 362 typedef struct
Kojto 93:e188a91d3eaa 363 {
Kojto 93:e188a91d3eaa 364 __IO uint32_t CCR; /*!< DMA channel x configuration register */
Kojto 93:e188a91d3eaa 365 __IO uint32_t CNDTR; /*!< DMA channel x number of data register */
Kojto 93:e188a91d3eaa 366 __IO uint32_t CPAR; /*!< DMA channel x peripheral address register */
Kojto 93:e188a91d3eaa 367 __IO uint32_t CMAR; /*!< DMA channel x memory address register */
Kojto 93:e188a91d3eaa 368 } DMA_Channel_TypeDef;
Kojto 93:e188a91d3eaa 369
Kojto 93:e188a91d3eaa 370 typedef struct
Kojto 93:e188a91d3eaa 371 {
Kojto 93:e188a91d3eaa 372 __IO uint32_t ISR; /*!< DMA interrupt status register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 373 __IO uint32_t IFCR; /*!< DMA interrupt clear flag register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 374 } DMA_TypeDef;
Kojto 93:e188a91d3eaa 375
Kojto 93:e188a91d3eaa 376 /**
Kojto 93:e188a91d3eaa 377 * @brief External Interrupt/Event Controller
Kojto 93:e188a91d3eaa 378 */
Kojto 93:e188a91d3eaa 379
Kojto 93:e188a91d3eaa 380 typedef struct
Kojto 93:e188a91d3eaa 381 {
Kojto 93:e188a91d3eaa 382 __IO uint32_t IMR; /*!< EXTI Interrupt mask register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 383 __IO uint32_t EMR; /*!< EXTI Event mask register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 384 __IO uint32_t RTSR; /*!< EXTI Rising trigger selection register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 385 __IO uint32_t FTSR; /*!< EXTI Falling trigger selection register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 386 __IO uint32_t SWIER; /*!< EXTI Software interrupt event register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 387 __IO uint32_t PR; /*!< EXTI Pending register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 388 uint32_t RESERVED1; /*!< Reserved, 0x18 */
Kojto 93:e188a91d3eaa 389 uint32_t RESERVED2; /*!< Reserved, 0x1C */
Kojto 93:e188a91d3eaa 390 __IO uint32_t IMR2; /*!< EXTI Interrupt mask register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 391 __IO uint32_t EMR2; /*!< EXTI Event mask register, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 392 __IO uint32_t RTSR2; /*!< EXTI Rising trigger selection register, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 393 __IO uint32_t FTSR2; /*!< EXTI Falling trigger selection register, Address offset: 0x2C */
Kojto 93:e188a91d3eaa 394 __IO uint32_t SWIER2; /*!< EXTI Software interrupt event register, Address offset: 0x30 */
Kojto 93:e188a91d3eaa 395 __IO uint32_t PR2; /*!< EXTI Pending register, Address offset: 0x34 */
Kojto 93:e188a91d3eaa 396 }EXTI_TypeDef;
Kojto 93:e188a91d3eaa 397
Kojto 93:e188a91d3eaa 398 /**
Kojto 93:e188a91d3eaa 399 * @brief FLASH Registers
Kojto 93:e188a91d3eaa 400 */
Kojto 93:e188a91d3eaa 401
Kojto 93:e188a91d3eaa 402 typedef struct
Kojto 93:e188a91d3eaa 403 {
Kojto 93:e188a91d3eaa 404 __IO uint32_t ACR; /*!< FLASH access control register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 405 __IO uint32_t KEYR; /*!< FLASH key register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 406 __IO uint32_t OPTKEYR; /*!< FLASH option key register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 407 __IO uint32_t SR; /*!< FLASH status register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 408 __IO uint32_t CR; /*!< FLASH control register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 409 __IO uint32_t AR; /*!< FLASH address register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 410 uint32_t RESERVED; /*!< Reserved, 0x18 */
Kojto 93:e188a91d3eaa 411 __IO uint32_t OBR; /*!< FLASH Option byte register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 412 __IO uint32_t WRPR; /*!< FLASH Write register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 413
Kojto 93:e188a91d3eaa 414 } FLASH_TypeDef;
Kojto 93:e188a91d3eaa 415
Kojto 93:e188a91d3eaa 416 /**
Kojto 93:e188a91d3eaa 417 * @brief Flexible Memory Controller
Kojto 93:e188a91d3eaa 418 */
Kojto 93:e188a91d3eaa 419
Kojto 93:e188a91d3eaa 420 typedef struct
Kojto 93:e188a91d3eaa 421 {
Kojto 93:e188a91d3eaa 422 __IO uint32_t BTCR[8]; /*!< NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), Address offset: 0x00-1C */
Kojto 93:e188a91d3eaa 423 } FMC_Bank1_TypeDef;
Kojto 93:e188a91d3eaa 424
Kojto 93:e188a91d3eaa 425 /**
Kojto 93:e188a91d3eaa 426 * @brief Flexible Memory Controller Bank1E
Kojto 93:e188a91d3eaa 427 */
Kojto 93:e188a91d3eaa 428
Kojto 93:e188a91d3eaa 429 typedef struct
Kojto 93:e188a91d3eaa 430 {
Kojto 93:e188a91d3eaa 431 __IO uint32_t BWTR[7]; /*!< NOR/PSRAM write timing registers, Address offset: 0x104-0x11C */
Kojto 93:e188a91d3eaa 432 } FMC_Bank1E_TypeDef;
Kojto 93:e188a91d3eaa 433
Kojto 93:e188a91d3eaa 434 /**
Kojto 93:e188a91d3eaa 435 * @brief Flexible Memory Controller Bank2
Kojto 93:e188a91d3eaa 436 */
Kojto 93:e188a91d3eaa 437
Kojto 93:e188a91d3eaa 438 typedef struct
Kojto 93:e188a91d3eaa 439 {
Kojto 93:e188a91d3eaa 440 __IO uint32_t PCR2; /*!< NAND Flash control register 2, Address offset: 0x60 */
Kojto 93:e188a91d3eaa 441 __IO uint32_t SR2; /*!< NAND Flash FIFO status and interrupt register 2, Address offset: 0x64 */
Kojto 93:e188a91d3eaa 442 __IO uint32_t PMEM2; /*!< NAND Flash Common memory space timing register 2, Address offset: 0x68 */
Kojto 93:e188a91d3eaa 443 __IO uint32_t PATT2; /*!< NAND Flash Attribute memory space timing register 2, Address offset: 0x6C */
Kojto 93:e188a91d3eaa 444 uint32_t RESERVED0; /*!< Reserved, 0x70 */
Kojto 93:e188a91d3eaa 445 __IO uint32_t ECCR2; /*!< NAND Flash ECC result registers 2, Address offset: 0x74 */
Kojto 93:e188a91d3eaa 446 uint32_t RESERVED1; /*!< Reserved, 0x78 */
Kojto 93:e188a91d3eaa 447 uint32_t RESERVED2; /*!< Reserved, 0x7C */
Kojto 93:e188a91d3eaa 448 __IO uint32_t PCR3; /*!< NAND Flash control register 3, Address offset: 0x80 */
Kojto 93:e188a91d3eaa 449 __IO uint32_t SR3; /*!< NAND Flash FIFO status and interrupt register 3, Address offset: 0x84 */
Kojto 93:e188a91d3eaa 450 __IO uint32_t PMEM3; /*!< NAND Flash Common memory space timing register 3, Address offset: 0x88 */
Kojto 93:e188a91d3eaa 451 __IO uint32_t PATT3; /*!< NAND Flash Attribute memory space timing register 3, Address offset: 0x8C */
Kojto 93:e188a91d3eaa 452 uint32_t RESERVED3; /*!< Reserved, 0x90 */
Kojto 93:e188a91d3eaa 453 __IO uint32_t ECCR3; /*!< NAND Flash ECC result registers 3, Address offset: 0x94 */
Kojto 93:e188a91d3eaa 454 } FMC_Bank2_3_TypeDef;
Kojto 93:e188a91d3eaa 455
Kojto 93:e188a91d3eaa 456 /**
Kojto 93:e188a91d3eaa 457 * @brief Flexible Memory Controller Bank4
Kojto 93:e188a91d3eaa 458 */
Kojto 93:e188a91d3eaa 459
Kojto 93:e188a91d3eaa 460 typedef struct
Kojto 93:e188a91d3eaa 461 {
Kojto 93:e188a91d3eaa 462 __IO uint32_t PCR4; /*!< PC Card control register 4, Address offset: 0xA0 */
Kojto 93:e188a91d3eaa 463 __IO uint32_t SR4; /*!< PC Card FIFO status and interrupt register 4, Address offset: 0xA4 */
Kojto 93:e188a91d3eaa 464 __IO uint32_t PMEM4; /*!< PC Card Common memory space timing register 4, Address offset: 0xA8 */
Kojto 93:e188a91d3eaa 465 __IO uint32_t PATT4; /*!< PC Card Attribute memory space timing register 4, Address offset: 0xAC */
Kojto 93:e188a91d3eaa 466 __IO uint32_t PIO4; /*!< PC Card I/O space timing register 4, Address offset: 0xB0 */
Kojto 93:e188a91d3eaa 467 } FMC_Bank4_TypeDef;
Kojto 93:e188a91d3eaa 468
Kojto 93:e188a91d3eaa 469 /**
Kojto 93:e188a91d3eaa 470 * @brief Option Bytes Registers
Kojto 93:e188a91d3eaa 471 */
Kojto 93:e188a91d3eaa 472 typedef struct
Kojto 93:e188a91d3eaa 473 {
Kojto 93:e188a91d3eaa 474 __IO uint16_t RDP; /*!<FLASH option byte Read protection, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 475 __IO uint16_t USER; /*!<FLASH option byte user options, Address offset: 0x02 */
Kojto 93:e188a91d3eaa 476 uint16_t RESERVED0; /*!< Reserved, 0x04 */
Kojto 93:e188a91d3eaa 477 uint16_t RESERVED1; /*!< Reserved, 0x06 */
Kojto 93:e188a91d3eaa 478 __IO uint16_t WRP0; /*!<FLASH option byte write protection 0, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 479 __IO uint16_t WRP1; /*!<FLASH option byte write protection 1, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 480 __IO uint16_t WRP2; /*!<FLASH option byte write protection 2, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 481 __IO uint16_t WRP3; /*!<FLASH option byte write protection 3, Address offset: 0x12 */
Kojto 93:e188a91d3eaa 482 } OB_TypeDef;
Kojto 93:e188a91d3eaa 483
Kojto 93:e188a91d3eaa 484 /**
Kojto 93:e188a91d3eaa 485 * @brief General Purpose I/O
Kojto 93:e188a91d3eaa 486 */
Kojto 93:e188a91d3eaa 487
Kojto 93:e188a91d3eaa 488 typedef struct
Kojto 93:e188a91d3eaa 489 {
Kojto 93:e188a91d3eaa 490 __IO uint32_t MODER; /*!< GPIO port mode register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 491 __IO uint32_t OTYPER; /*!< GPIO port output type register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 492 __IO uint32_t OSPEEDR; /*!< GPIO port output speed register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 493 __IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 494 __IO uint32_t IDR; /*!< GPIO port input data register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 495 __IO uint32_t ODR; /*!< GPIO port output data register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 496 __IO uint16_t BSRRL; /*!< GPIO port bit set/reset low register, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 497 __IO uint16_t BSRRH; /*!< GPIO port bit set/reset high register, Address offset: 0x1A */
Kojto 93:e188a91d3eaa 498 __IO uint32_t LCKR; /*!< GPIO port configuration lock register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 499 __IO uint32_t AFR[2]; /*!< GPIO alternate function registers, Address offset: 0x20-0x24 */
Kojto 93:e188a91d3eaa 500 __IO uint32_t BRR; /*!< GPIO bit reset register, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 501 }GPIO_TypeDef;
Kojto 93:e188a91d3eaa 502
Kojto 93:e188a91d3eaa 503 /**
Kojto 93:e188a91d3eaa 504 * @brief Operational Amplifier (OPAMP)
Kojto 93:e188a91d3eaa 505 */
Kojto 93:e188a91d3eaa 506
Kojto 93:e188a91d3eaa 507 typedef struct
Kojto 93:e188a91d3eaa 508 {
Kojto 93:e188a91d3eaa 509 __IO uint32_t CSR; /*!< OPAMP control and status register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 510 } OPAMP_TypeDef;
Kojto 93:e188a91d3eaa 511
Kojto 93:e188a91d3eaa 512 /**
Kojto 93:e188a91d3eaa 513 * @brief System configuration controller
Kojto 93:e188a91d3eaa 514 */
Kojto 93:e188a91d3eaa 515
Kojto 93:e188a91d3eaa 516 typedef struct
Kojto 93:e188a91d3eaa 517 {
Kojto 93:e188a91d3eaa 518 __IO uint32_t CFGR1; /*!< SYSCFG configuration register 1, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 519 __IO uint32_t RCR; /*!< SYSCFG CCM SRAM protection register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 520 __IO uint32_t EXTICR[4]; /*!< SYSCFG external interrupt configuration registers, Address offset: 0x14-0x08 */
Kojto 93:e188a91d3eaa 521 __IO uint32_t CFGR2; /*!< SYSCFG configuration register 2, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 522 __IO uint32_t RESERVED0; /*!< Reserved, 0x1C */
Kojto 93:e188a91d3eaa 523 __IO uint32_t RESERVED1; /*!< Reserved, 0x20 */
Kojto 93:e188a91d3eaa 524 __IO uint32_t RESERVED2; /*!< Reserved, 0x24 */
Kojto 93:e188a91d3eaa 525 __IO uint32_t RESERVED4; /*!< Reserved, 0x28 */
Kojto 93:e188a91d3eaa 526 __IO uint32_t RESERVED5; /*!< Reserved, 0x2C */
Kojto 93:e188a91d3eaa 527 __IO uint32_t RESERVED6; /*!< Reserved, 0x30 */
Kojto 93:e188a91d3eaa 528 __IO uint32_t RESERVED7; /*!< Reserved, 0x34 */
Kojto 93:e188a91d3eaa 529 __IO uint32_t RESERVED8; /*!< Reserved, 0x38 */
Kojto 93:e188a91d3eaa 530 __IO uint32_t RESERVED9; /*!< Reserved, 0x3C */
Kojto 93:e188a91d3eaa 531 __IO uint32_t RESERVED10; /*!< Reserved, 0x40 */
Kojto 93:e188a91d3eaa 532 __IO uint32_t RESERVED11; /*!< Reserved, 0x44 */
Kojto 93:e188a91d3eaa 533 __IO uint32_t CFGR4; /*!< SYSCFG configuration register 4, Address offset: 0x48 */
Kojto 93:e188a91d3eaa 534 __IO uint32_t RESERVED12; /*!< Reserved, 0x4C */
Kojto 93:e188a91d3eaa 535 __IO uint32_t RESERVED13; /*!< Reserved, 0x50 */
Kojto 93:e188a91d3eaa 536 } SYSCFG_TypeDef;
Kojto 93:e188a91d3eaa 537
Kojto 93:e188a91d3eaa 538 /**
Kojto 93:e188a91d3eaa 539 * @brief Inter-integrated Circuit Interface
Kojto 93:e188a91d3eaa 540 */
Kojto 93:e188a91d3eaa 541
Kojto 93:e188a91d3eaa 542 typedef struct
Kojto 93:e188a91d3eaa 543 {
Kojto 93:e188a91d3eaa 544 __IO uint32_t CR1; /*!< I2C Control register 1, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 545 __IO uint32_t CR2; /*!< I2C Control register 2, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 546 __IO uint32_t OAR1; /*!< I2C Own address 1 register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 547 __IO uint32_t OAR2; /*!< I2C Own address 2 register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 548 __IO uint32_t TIMINGR; /*!< I2C Timing register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 549 __IO uint32_t TIMEOUTR; /*!< I2C Timeout register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 550 __IO uint32_t ISR; /*!< I2C Interrupt and status register, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 551 __IO uint32_t ICR; /*!< I2C Interrupt clear register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 552 __IO uint32_t PECR; /*!< I2C PEC register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 553 __IO uint32_t RXDR; /*!< I2C Receive data register, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 554 __IO uint32_t TXDR; /*!< I2C Transmit data register, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 555 }I2C_TypeDef;
Kojto 93:e188a91d3eaa 556
Kojto 93:e188a91d3eaa 557 /**
Kojto 93:e188a91d3eaa 558 * @brief Independent WATCHDOG
Kojto 93:e188a91d3eaa 559 */
Kojto 93:e188a91d3eaa 560
Kojto 93:e188a91d3eaa 561 typedef struct
Kojto 93:e188a91d3eaa 562 {
Kojto 93:e188a91d3eaa 563 __IO uint32_t KR; /*!< IWDG Key register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 564 __IO uint32_t PR; /*!< IWDG Prescaler register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 565 __IO uint32_t RLR; /*!< IWDG Reload register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 566 __IO uint32_t SR; /*!< IWDG Status register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 567 __IO uint32_t WINR; /*!< IWDG Window register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 568 } IWDG_TypeDef;
Kojto 93:e188a91d3eaa 569
Kojto 93:e188a91d3eaa 570 /**
Kojto 93:e188a91d3eaa 571 * @brief Power Control
Kojto 93:e188a91d3eaa 572 */
Kojto 93:e188a91d3eaa 573
Kojto 93:e188a91d3eaa 574 typedef struct
Kojto 93:e188a91d3eaa 575 {
Kojto 93:e188a91d3eaa 576 __IO uint32_t CR; /*!< PWR power control register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 577 __IO uint32_t CSR; /*!< PWR power control/status register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 578 } PWR_TypeDef;
Kojto 93:e188a91d3eaa 579
Kojto 93:e188a91d3eaa 580 /**
Kojto 93:e188a91d3eaa 581 * @brief Reset and Clock Control
Kojto 93:e188a91d3eaa 582 */
Kojto 93:e188a91d3eaa 583 typedef struct
Kojto 93:e188a91d3eaa 584 {
Kojto 93:e188a91d3eaa 585 __IO uint32_t CR; /*!< RCC clock control register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 586 __IO uint32_t CFGR; /*!< RCC clock configuration register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 587 __IO uint32_t CIR; /*!< RCC clock interrupt register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 588 __IO uint32_t APB2RSTR; /*!< RCC APB2 peripheral reset register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 589 __IO uint32_t APB1RSTR; /*!< RCC APB1 peripheral reset register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 590 __IO uint32_t AHBENR; /*!< RCC AHB peripheral clock register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 591 __IO uint32_t APB2ENR; /*!< RCC APB2 peripheral clock enable register, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 592 __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 593 __IO uint32_t BDCR; /*!< RCC Backup domain control register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 594 __IO uint32_t CSR; /*!< RCC clock control & status register, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 595 __IO uint32_t AHBRSTR; /*!< RCC AHB peripheral reset register, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 596 __IO uint32_t CFGR2; /*!< RCC clock configuration register 2, Address offset: 0x2C */
Kojto 93:e188a91d3eaa 597 __IO uint32_t CFGR3; /*!< RCC clock configuration register 3, Address offset: 0x30 */
Kojto 93:e188a91d3eaa 598 } RCC_TypeDef;
Kojto 93:e188a91d3eaa 599
Kojto 93:e188a91d3eaa 600 /**
Kojto 93:e188a91d3eaa 601 * @brief Real-Time Clock
Kojto 93:e188a91d3eaa 602 */
Kojto 93:e188a91d3eaa 603
Kojto 93:e188a91d3eaa 604 typedef struct
Kojto 93:e188a91d3eaa 605 {
Kojto 93:e188a91d3eaa 606 __IO uint32_t TR; /*!< RTC time register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 607 __IO uint32_t DR; /*!< RTC date register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 608 __IO uint32_t CR; /*!< RTC control register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 609 __IO uint32_t ISR; /*!< RTC initialization and status register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 610 __IO uint32_t PRER; /*!< RTC prescaler register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 611 __IO uint32_t WUTR; /*!< RTC wakeup timer register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 612 uint32_t RESERVED0; /*!< Reserved, 0x18 */
Kojto 93:e188a91d3eaa 613 __IO uint32_t ALRMAR; /*!< RTC alarm A register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 614 __IO uint32_t ALRMBR; /*!< RTC alarm B register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 615 __IO uint32_t WPR; /*!< RTC write protection register, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 616 __IO uint32_t SSR; /*!< RTC sub second register, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 617 __IO uint32_t SHIFTR; /*!< RTC shift control register, Address offset: 0x2C */
Kojto 93:e188a91d3eaa 618 __IO uint32_t TSTR; /*!< RTC time stamp time register, Address offset: 0x30 */
Kojto 93:e188a91d3eaa 619 __IO uint32_t TSDR; /*!< RTC time stamp date register, Address offset: 0x34 */
Kojto 93:e188a91d3eaa 620 __IO uint32_t TSSSR; /*!< RTC time-stamp sub second register, Address offset: 0x38 */
Kojto 93:e188a91d3eaa 621 __IO uint32_t CALR; /*!< RTC calibration register, Address offset: 0x3C */
Kojto 93:e188a91d3eaa 622 __IO uint32_t TAFCR; /*!< RTC tamper and alternate function configuration register, Address offset: 0x40 */
Kojto 93:e188a91d3eaa 623 __IO uint32_t ALRMASSR; /*!< RTC alarm A sub second register, Address offset: 0x44 */
Kojto 93:e188a91d3eaa 624 __IO uint32_t ALRMBSSR; /*!< RTC alarm B sub second register, Address offset: 0x48 */
Kojto 93:e188a91d3eaa 625 uint32_t RESERVED7; /*!< Reserved, 0x4C */
Kojto 93:e188a91d3eaa 626 __IO uint32_t BKP0R; /*!< RTC backup register 0, Address offset: 0x50 */
Kojto 93:e188a91d3eaa 627 __IO uint32_t BKP1R; /*!< RTC backup register 1, Address offset: 0x54 */
Kojto 93:e188a91d3eaa 628 __IO uint32_t BKP2R; /*!< RTC backup register 2, Address offset: 0x58 */
Kojto 93:e188a91d3eaa 629 __IO uint32_t BKP3R; /*!< RTC backup register 3, Address offset: 0x5C */
Kojto 93:e188a91d3eaa 630 __IO uint32_t BKP4R; /*!< RTC backup register 4, Address offset: 0x60 */
Kojto 93:e188a91d3eaa 631 __IO uint32_t BKP5R; /*!< RTC backup register 5, Address offset: 0x64 */
Kojto 93:e188a91d3eaa 632 __IO uint32_t BKP6R; /*!< RTC backup register 6, Address offset: 0x68 */
Kojto 93:e188a91d3eaa 633 __IO uint32_t BKP7R; /*!< RTC backup register 7, Address offset: 0x6C */
Kojto 93:e188a91d3eaa 634 __IO uint32_t BKP8R; /*!< RTC backup register 8, Address offset: 0x70 */
Kojto 93:e188a91d3eaa 635 __IO uint32_t BKP9R; /*!< RTC backup register 9, Address offset: 0x74 */
Kojto 93:e188a91d3eaa 636 __IO uint32_t BKP10R; /*!< RTC backup register 10, Address offset: 0x78 */
Kojto 93:e188a91d3eaa 637 __IO uint32_t BKP11R; /*!< RTC backup register 11, Address offset: 0x7C */
Kojto 93:e188a91d3eaa 638 __IO uint32_t BKP12R; /*!< RTC backup register 12, Address offset: 0x80 */
Kojto 93:e188a91d3eaa 639 __IO uint32_t BKP13R; /*!< RTC backup register 13, Address offset: 0x84 */
Kojto 93:e188a91d3eaa 640 __IO uint32_t BKP14R; /*!< RTC backup register 14, Address offset: 0x88 */
Kojto 93:e188a91d3eaa 641 __IO uint32_t BKP15R; /*!< RTC backup register 15, Address offset: 0x8C */
Kojto 93:e188a91d3eaa 642 } RTC_TypeDef;
Kojto 93:e188a91d3eaa 643
Kojto 93:e188a91d3eaa 644
Kojto 93:e188a91d3eaa 645 /**
Kojto 93:e188a91d3eaa 646 * @brief Serial Peripheral Interface
Kojto 93:e188a91d3eaa 647 */
Kojto 93:e188a91d3eaa 648
Kojto 93:e188a91d3eaa 649 typedef struct
Kojto 93:e188a91d3eaa 650 {
Kojto 93:e188a91d3eaa 651 __IO uint32_t CR1; /*!< SPI Control register 1 (not used in I2S mode), Address offset: 0x00 */
Kojto 93:e188a91d3eaa 652 __IO uint32_t CR2; /*!< SPI Control register 2, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 653 __IO uint32_t SR; /*!< SPI Status register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 654 __IO uint32_t DR; /*!< SPI data register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 655 __IO uint32_t CRCPR; /*!< SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10 */
Kojto 93:e188a91d3eaa 656 __IO uint32_t RXCRCR; /*!< SPI Rx CRC register (not used in I2S mode), Address offset: 0x14 */
Kojto 93:e188a91d3eaa 657 __IO uint32_t TXCRCR; /*!< SPI Tx CRC register (not used in I2S mode), Address offset: 0x18 */
Kojto 93:e188a91d3eaa 658 __IO uint32_t I2SCFGR; /*!< SPI_I2S configuration register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 659 __IO uint32_t I2SPR; /*!< SPI_I2S prescaler register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 660 } SPI_TypeDef;
Kojto 93:e188a91d3eaa 661
Kojto 93:e188a91d3eaa 662 /**
Kojto 93:e188a91d3eaa 663 * @brief TIM
Kojto 93:e188a91d3eaa 664 */
Kojto 93:e188a91d3eaa 665 typedef struct
Kojto 93:e188a91d3eaa 666 {
Kojto 93:e188a91d3eaa 667 __IO uint32_t CR1; /*!< TIM control register 1, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 668 __IO uint32_t CR2; /*!< TIM control register 2, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 669 __IO uint32_t SMCR; /*!< TIM slave mode control register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 670 __IO uint32_t DIER; /*!< TIM DMA/interrupt enable register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 671 __IO uint32_t SR; /*!< TIM status register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 672 __IO uint32_t EGR; /*!< TIM event generation register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 673 __IO uint32_t CCMR1; /*!< TIM capture/compare mode register 1, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 674 __IO uint32_t CCMR2; /*!< TIM capture/compare mode register 2, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 675 __IO uint32_t CCER; /*!< TIM capture/compare enable register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 676 __IO uint32_t CNT; /*!< TIM counter register, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 677 __IO uint32_t PSC; /*!< TIM prescaler, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 678 __IO uint32_t ARR; /*!< TIM auto-reload register, Address offset: 0x2C */
Kojto 93:e188a91d3eaa 679 __IO uint32_t RCR; /*!< TIM repetition counter register, Address offset: 0x30 */
Kojto 93:e188a91d3eaa 680 __IO uint32_t CCR1; /*!< TIM capture/compare register 1, Address offset: 0x34 */
Kojto 93:e188a91d3eaa 681 __IO uint32_t CCR2; /*!< TIM capture/compare register 2, Address offset: 0x38 */
Kojto 93:e188a91d3eaa 682 __IO uint32_t CCR3; /*!< TIM capture/compare register 3, Address offset: 0x3C */
Kojto 93:e188a91d3eaa 683 __IO uint32_t CCR4; /*!< TIM capture/compare register 4, Address offset: 0x40 */
Kojto 93:e188a91d3eaa 684 __IO uint32_t BDTR; /*!< TIM break and dead-time register, Address offset: 0x44 */
Kojto 93:e188a91d3eaa 685 __IO uint32_t DCR; /*!< TIM DMA control register, Address offset: 0x48 */
Kojto 93:e188a91d3eaa 686 __IO uint32_t DMAR; /*!< TIM DMA address for full transfer, Address offset: 0x4C */
Kojto 93:e188a91d3eaa 687 __IO uint32_t OR; /*!< TIM option register, Address offset: 0x50 */
Kojto 93:e188a91d3eaa 688 __IO uint32_t CCMR3; /*!< TIM capture/compare mode register 3, Address offset: 0x54 */
Kojto 93:e188a91d3eaa 689 __IO uint32_t CCR5; /*!< TIM capture/compare register5, Address offset: 0x58 */
Kojto 93:e188a91d3eaa 690 __IO uint32_t CCR6; /*!< TIM capture/compare register 4, Address offset: 0x5C */
Kojto 93:e188a91d3eaa 691 } TIM_TypeDef;
Kojto 93:e188a91d3eaa 692
Kojto 93:e188a91d3eaa 693 /**
Kojto 93:e188a91d3eaa 694 * @brief Touch Sensing Controller (TSC)
Kojto 93:e188a91d3eaa 695 */
Kojto 93:e188a91d3eaa 696 typedef struct
Kojto 93:e188a91d3eaa 697 {
Kojto 93:e188a91d3eaa 698 __IO uint32_t CR; /*!< TSC control register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 699 __IO uint32_t IER; /*!< TSC interrupt enable register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 700 __IO uint32_t ICR; /*!< TSC interrupt clear register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 701 __IO uint32_t ISR; /*!< TSC interrupt status register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 702 __IO uint32_t IOHCR; /*!< TSC I/O hysteresis control register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 703 uint32_t RESERVED1; /*!< Reserved, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 704 __IO uint32_t IOASCR; /*!< TSC I/O analog switch control register, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 705 uint32_t RESERVED2; /*!< Reserved, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 706 __IO uint32_t IOSCR; /*!< TSC I/O sampling control register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 707 uint32_t RESERVED3; /*!< Reserved, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 708 __IO uint32_t IOCCR; /*!< TSC I/O channel control register, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 709 uint32_t RESERVED4; /*!< Reserved, Address offset: 0x2C */
Kojto 93:e188a91d3eaa 710 __IO uint32_t IOGCSR; /*!< TSC I/O group control status register, Address offset: 0x30 */
Kojto 93:e188a91d3eaa 711 __IO uint32_t IOGXCR[8]; /*!< TSC I/O group x counter register, Address offset: 0x34-50 */
Kojto 93:e188a91d3eaa 712 } TSC_TypeDef;
Kojto 93:e188a91d3eaa 713
Kojto 93:e188a91d3eaa 714 /**
Kojto 93:e188a91d3eaa 715 * @brief Universal Synchronous Asynchronous Receiver Transmitter
Kojto 93:e188a91d3eaa 716 */
Kojto 93:e188a91d3eaa 717
Kojto 93:e188a91d3eaa 718 typedef struct
Kojto 93:e188a91d3eaa 719 {
Kojto 93:e188a91d3eaa 720 __IO uint32_t CR1; /*!< USART Control register 1, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 721 __IO uint32_t CR2; /*!< USART Control register 2, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 722 __IO uint32_t CR3; /*!< USART Control register 3, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 723 __IO uint32_t BRR; /*!< USART Baud rate register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 724 __IO uint32_t GTPR; /*!< USART Guard time and prescaler register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 725 __IO uint32_t RTOR; /*!< USART Receiver Time Out register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 726 __IO uint32_t RQR; /*!< USART Request register, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 727 __IO uint32_t ISR; /*!< USART Interrupt and status register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 728 __IO uint32_t ICR; /*!< USART Interrupt flag Clear register, Address offset: 0x20 */
Kojto 93:e188a91d3eaa 729 __IO uint16_t RDR; /*!< USART Receive Data register, Address offset: 0x24 */
Kojto 93:e188a91d3eaa 730 uint16_t RESERVED1; /*!< Reserved, 0x26 */
Kojto 93:e188a91d3eaa 731 __IO uint16_t TDR; /*!< USART Transmit Data register, Address offset: 0x28 */
Kojto 93:e188a91d3eaa 732 uint16_t RESERVED2; /*!< Reserved, 0x2A */
Kojto 93:e188a91d3eaa 733 } USART_TypeDef;
Kojto 93:e188a91d3eaa 734
Kojto 93:e188a91d3eaa 735 /**
Kojto 93:e188a91d3eaa 736 * @brief Universal Serial Bus Full Speed Device
Kojto 93:e188a91d3eaa 737 */
Kojto 93:e188a91d3eaa 738
Kojto 93:e188a91d3eaa 739 typedef struct
Kojto 93:e188a91d3eaa 740 {
Kojto 93:e188a91d3eaa 741 __IO uint16_t EP0R; /*!< USB Endpoint 0 register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 742 __IO uint16_t RESERVED0; /*!< Reserved */
Kojto 93:e188a91d3eaa 743 __IO uint16_t EP1R; /*!< USB Endpoint 1 register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 744 __IO uint16_t RESERVED1; /*!< Reserved */
Kojto 93:e188a91d3eaa 745 __IO uint16_t EP2R; /*!< USB Endpoint 2 register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 746 __IO uint16_t RESERVED2; /*!< Reserved */
Kojto 93:e188a91d3eaa 747 __IO uint16_t EP3R; /*!< USB Endpoint 3 register, Address offset: 0x0C */
Kojto 93:e188a91d3eaa 748 __IO uint16_t RESERVED3; /*!< Reserved */
Kojto 93:e188a91d3eaa 749 __IO uint16_t EP4R; /*!< USB Endpoint 4 register, Address offset: 0x10 */
Kojto 93:e188a91d3eaa 750 __IO uint16_t RESERVED4; /*!< Reserved */
Kojto 93:e188a91d3eaa 751 __IO uint16_t EP5R; /*!< USB Endpoint 5 register, Address offset: 0x14 */
Kojto 93:e188a91d3eaa 752 __IO uint16_t RESERVED5; /*!< Reserved */
Kojto 93:e188a91d3eaa 753 __IO uint16_t EP6R; /*!< USB Endpoint 6 register, Address offset: 0x18 */
Kojto 93:e188a91d3eaa 754 __IO uint16_t RESERVED6; /*!< Reserved */
Kojto 93:e188a91d3eaa 755 __IO uint16_t EP7R; /*!< USB Endpoint 7 register, Address offset: 0x1C */
Kojto 93:e188a91d3eaa 756 __IO uint16_t RESERVED7[17]; /*!< Reserved */
Kojto 93:e188a91d3eaa 757 __IO uint16_t CNTR; /*!< Control register, Address offset: 0x40 */
Kojto 93:e188a91d3eaa 758 __IO uint16_t RESERVED8; /*!< Reserved */
Kojto 93:e188a91d3eaa 759 __IO uint16_t ISTR; /*!< Interrupt status register, Address offset: 0x44 */
Kojto 93:e188a91d3eaa 760 __IO uint16_t RESERVED9; /*!< Reserved */
Kojto 93:e188a91d3eaa 761 __IO uint16_t FNR; /*!< Frame number register, Address offset: 0x48 */
Kojto 93:e188a91d3eaa 762 __IO uint16_t RESERVEDA; /*!< Reserved */
Kojto 93:e188a91d3eaa 763 __IO uint16_t DADDR; /*!< Device address register, Address offset: 0x4C */
Kojto 93:e188a91d3eaa 764 __IO uint16_t RESERVEDB; /*!< Reserved */
Kojto 93:e188a91d3eaa 765 __IO uint16_t BTABLE; /*!< Buffer Table address register, Address offset: 0x50 */
Kojto 93:e188a91d3eaa 766 __IO uint16_t RESERVEDC; /*!< Reserved */
Kojto 93:e188a91d3eaa 767 __IO uint16_t LPMCSR; /*!< LPM Control and Status register, Address offset: 0x54 */
Kojto 93:e188a91d3eaa 768 __IO uint16_t RESERVEDD; /*!< Reserved */
Kojto 93:e188a91d3eaa 769 } USB_TypeDef;
Kojto 93:e188a91d3eaa 770
Kojto 93:e188a91d3eaa 771 /**
Kojto 93:e188a91d3eaa 772 * @brief Window WATCHDOG
Kojto 93:e188a91d3eaa 773 */
Kojto 93:e188a91d3eaa 774 typedef struct
Kojto 93:e188a91d3eaa 775 {
Kojto 93:e188a91d3eaa 776 __IO uint32_t CR; /*!< WWDG Control register, Address offset: 0x00 */
Kojto 93:e188a91d3eaa 777 __IO uint32_t CFR; /*!< WWDG Configuration register, Address offset: 0x04 */
Kojto 93:e188a91d3eaa 778 __IO uint32_t SR; /*!< WWDG Status register, Address offset: 0x08 */
Kojto 93:e188a91d3eaa 779 } WWDG_TypeDef;
Kojto 93:e188a91d3eaa 780
Kojto 93:e188a91d3eaa 781 /** @addtogroup Peripheral_memory_map
Kojto 93:e188a91d3eaa 782 * @{
Kojto 93:e188a91d3eaa 783 */
Kojto 93:e188a91d3eaa 784
Kojto 93:e188a91d3eaa 785 #define FLASH_BASE ((uint32_t)0x08000000) /*!< FLASH(512KB) base address in the alias region */
Kojto 93:e188a91d3eaa 786 #define CCMDATARAM_BASE ((uint32_t)0x10000000) /*!< CCM(core coupled memory) data RAM(16 KB) base address in the alias region */
Kojto 93:e188a91d3eaa 787 #define SRAM_BASE ((uint32_t)0x20000000) /*!< SRAM(64KB) base address in the alias region */
Kojto 93:e188a91d3eaa 788 #define PERIPH_BASE ((uint32_t)0x40000000) /*!< Peripheral base address in the alias region */
Kojto 93:e188a91d3eaa 789 #define FMC_R_BASE ((uint32_t)0xA0000000) /*!< FMC registers base address */
Kojto 93:e188a91d3eaa 790
Kojto 93:e188a91d3eaa 791 #define CCMDATARAM_BB_BASE ((uint32_t)0x12000000) /*!< CCM(core coupled memory) data RAM(16 KB) base address in the bit-band region */
Kojto 93:e188a91d3eaa 792 #define SRAM_BB_BASE ((uint32_t)0x22000000) /*!< SRAM(64KB) base address in the bit-band region */
Kojto 93:e188a91d3eaa 793 #define PERIPH_BB_BASE ((uint32_t)0x42000000) /*!< Peripheral base address in the bit-band region */
Kojto 93:e188a91d3eaa 794
Kojto 93:e188a91d3eaa 795
Kojto 93:e188a91d3eaa 796 /*!< Peripheral memory map */
Kojto 93:e188a91d3eaa 797 #define APB1PERIPH_BASE PERIPH_BASE
Kojto 93:e188a91d3eaa 798 #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000)
Kojto 93:e188a91d3eaa 799 #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000)
Kojto 93:e188a91d3eaa 800 #define AHB2PERIPH_BASE (PERIPH_BASE + 0x08000000)
Kojto 93:e188a91d3eaa 801 #define AHB3PERIPH_BASE (PERIPH_BASE + 0x10000000)
Kojto 93:e188a91d3eaa 802
Kojto 93:e188a91d3eaa 803 /*!< APB1 peripherals */
Kojto 93:e188a91d3eaa 804 #define TIM2_BASE (APB1PERIPH_BASE + 0x00000000)
Kojto 93:e188a91d3eaa 805 #define TIM3_BASE (APB1PERIPH_BASE + 0x00000400)
Kojto 93:e188a91d3eaa 806 #define TIM4_BASE (APB1PERIPH_BASE + 0x00000800)
Kojto 93:e188a91d3eaa 807 #define TIM6_BASE (APB1PERIPH_BASE + 0x00001000)
Kojto 93:e188a91d3eaa 808 #define TIM7_BASE (APB1PERIPH_BASE + 0x00001400)
Kojto 93:e188a91d3eaa 809 #define RTC_BASE (APB1PERIPH_BASE + 0x00002800)
Kojto 93:e188a91d3eaa 810 #define WWDG_BASE (APB1PERIPH_BASE + 0x00002C00)
Kojto 93:e188a91d3eaa 811 #define IWDG_BASE (APB1PERIPH_BASE + 0x00003000)
Kojto 93:e188a91d3eaa 812 #define I2S2ext_BASE (APB1PERIPH_BASE + 0x00003400)
Kojto 93:e188a91d3eaa 813 #define SPI2_BASE (APB1PERIPH_BASE + 0x00003800)
Kojto 93:e188a91d3eaa 814 #define SPI3_BASE (APB1PERIPH_BASE + 0x00003C00)
Kojto 93:e188a91d3eaa 815 #define I2S3ext_BASE (APB1PERIPH_BASE + 0x00004000)
Kojto 93:e188a91d3eaa 816 #define USART2_BASE (APB1PERIPH_BASE + 0x00004400)
Kojto 93:e188a91d3eaa 817 #define USART3_BASE (APB1PERIPH_BASE + 0x00004800)
Kojto 93:e188a91d3eaa 818 #define UART4_BASE (APB1PERIPH_BASE + 0x00004C00)
Kojto 93:e188a91d3eaa 819 #define UART5_BASE (APB1PERIPH_BASE + 0x00005000)
Kojto 93:e188a91d3eaa 820 #define I2C1_BASE (APB1PERIPH_BASE + 0x00005400)
Kojto 93:e188a91d3eaa 821 #define I2C2_BASE (APB1PERIPH_BASE + 0x00005800)
Kojto 93:e188a91d3eaa 822 #define USB_BASE (APB1PERIPH_BASE + 0x00005C00) /*!< USB_IP Peripheral Registers base address */
Kojto 93:e188a91d3eaa 823 #define USB_PMAADDR (APB1PERIPH_BASE + 0x00006000) /*!< USB_IP Packet Memory Area base address */
Kojto 93:e188a91d3eaa 824 #define CAN_BASE (APB1PERIPH_BASE + 0x00006400)
Kojto 93:e188a91d3eaa 825 #define PWR_BASE (APB1PERIPH_BASE + 0x00007000)
Kojto 93:e188a91d3eaa 826 #define DAC1_BASE (APB1PERIPH_BASE + 0x00007400)
Kojto 93:e188a91d3eaa 827 #define DAC_BASE DAC1_BASE
Kojto 93:e188a91d3eaa 828 #define I2C3_BASE (APB1PERIPH_BASE + 0x00007800)
Kojto 93:e188a91d3eaa 829
Kojto 93:e188a91d3eaa 830 /*!< APB2 peripherals */
Kojto 93:e188a91d3eaa 831 #define SYSCFG_BASE (APB2PERIPH_BASE + 0x00000000)
Kojto 93:e188a91d3eaa 832 #define COMP1_BASE (APB2PERIPH_BASE + 0x0000001C)
Kojto 93:e188a91d3eaa 833 #define COMP2_BASE (APB2PERIPH_BASE + 0x00000020)
Kojto 93:e188a91d3eaa 834 #define COMP3_BASE (APB2PERIPH_BASE + 0x00000024)
Kojto 93:e188a91d3eaa 835 #define COMP4_BASE (APB2PERIPH_BASE + 0x00000028)
Kojto 93:e188a91d3eaa 836 #define COMP5_BASE (APB2PERIPH_BASE + 0x0000002C)
Kojto 93:e188a91d3eaa 837 #define COMP6_BASE (APB2PERIPH_BASE + 0x00000030)
Kojto 93:e188a91d3eaa 838 #define COMP7_BASE (APB2PERIPH_BASE + 0x00000034)
Kojto 93:e188a91d3eaa 839 #define COMP_BASE COMP1_BASE
Kojto 93:e188a91d3eaa 840 #define OPAMP1_BASE (APB2PERIPH_BASE + 0x00000038)
Kojto 93:e188a91d3eaa 841 #define OPAMP2_BASE (APB2PERIPH_BASE + 0x0000003C)
Kojto 93:e188a91d3eaa 842 #define OPAMP3_BASE (APB2PERIPH_BASE + 0x00000040)
Kojto 93:e188a91d3eaa 843 #define OPAMP4_BASE (APB2PERIPH_BASE + 0x00000044)
Kojto 93:e188a91d3eaa 844 #define OPAMP_BASE OPAMP1_BASE
Kojto 93:e188a91d3eaa 845 #define EXTI_BASE (APB2PERIPH_BASE + 0x00000400)
Kojto 93:e188a91d3eaa 846 #define TIM1_BASE (APB2PERIPH_BASE + 0x00002C00)
Kojto 93:e188a91d3eaa 847 #define SPI1_BASE (APB2PERIPH_BASE + 0x00003000)
Kojto 93:e188a91d3eaa 848 #define TIM8_BASE (APB2PERIPH_BASE + 0x00003400)
Kojto 93:e188a91d3eaa 849 #define USART1_BASE (APB2PERIPH_BASE + 0x00003800)
Kojto 93:e188a91d3eaa 850 #define SPI4_BASE (APB2PERIPH_BASE + 0x00003C00)
Kojto 93:e188a91d3eaa 851 #define TIM15_BASE (APB2PERIPH_BASE + 0x00004000)
Kojto 93:e188a91d3eaa 852 #define TIM16_BASE (APB2PERIPH_BASE + 0x00004400)
Kojto 93:e188a91d3eaa 853 #define TIM17_BASE (APB2PERIPH_BASE + 0x00004800)
Kojto 93:e188a91d3eaa 854 #define TIM20_BASE (APB2PERIPH_BASE + 0x00005000)
Kojto 93:e188a91d3eaa 855
Kojto 93:e188a91d3eaa 856 /*!< AHB1 peripherals */
Kojto 93:e188a91d3eaa 857 #define DMA1_BASE (AHB1PERIPH_BASE + 0x00000000)
Kojto 93:e188a91d3eaa 858 #define DMA1_Channel1_BASE (AHB1PERIPH_BASE + 0x00000008)
Kojto 93:e188a91d3eaa 859 #define DMA1_Channel2_BASE (AHB1PERIPH_BASE + 0x0000001C)
Kojto 93:e188a91d3eaa 860 #define DMA1_Channel3_BASE (AHB1PERIPH_BASE + 0x00000030)
Kojto 93:e188a91d3eaa 861 #define DMA1_Channel4_BASE (AHB1PERIPH_BASE + 0x00000044)
Kojto 93:e188a91d3eaa 862 #define DMA1_Channel5_BASE (AHB1PERIPH_BASE + 0x00000058)
Kojto 93:e188a91d3eaa 863 #define DMA1_Channel6_BASE (AHB1PERIPH_BASE + 0x0000006C)
Kojto 93:e188a91d3eaa 864 #define DMA1_Channel7_BASE (AHB1PERIPH_BASE + 0x00000080)
Kojto 93:e188a91d3eaa 865 #define DMA2_BASE (AHB1PERIPH_BASE + 0x00000400)
Kojto 93:e188a91d3eaa 866 #define DMA2_Channel1_BASE (AHB1PERIPH_BASE + 0x00000408)
Kojto 93:e188a91d3eaa 867 #define DMA2_Channel2_BASE (AHB1PERIPH_BASE + 0x0000041C)
Kojto 93:e188a91d3eaa 868 #define DMA2_Channel3_BASE (AHB1PERIPH_BASE + 0x00000430)
Kojto 93:e188a91d3eaa 869 #define DMA2_Channel4_BASE (AHB1PERIPH_BASE + 0x00000444)
Kojto 93:e188a91d3eaa 870 #define DMA2_Channel5_BASE (AHB1PERIPH_BASE + 0x00000458)
Kojto 93:e188a91d3eaa 871 #define RCC_BASE (AHB1PERIPH_BASE + 0x00001000)
Kojto 93:e188a91d3eaa 872 #define FLASH_R_BASE (AHB1PERIPH_BASE + 0x00002000) /*!< Flash registers base address */
Kojto 93:e188a91d3eaa 873 #define OB_BASE ((uint32_t)0x1FFFF800) /*!< Flash Option Bytes base address */
Kojto 93:e188a91d3eaa 874 #define CRC_BASE (AHB1PERIPH_BASE + 0x00003000)
Kojto 93:e188a91d3eaa 875 #define TSC_BASE (AHB1PERIPH_BASE + 0x00004000)
Kojto 93:e188a91d3eaa 876
Kojto 93:e188a91d3eaa 877 /*!< AHB2 peripherals */
Kojto 93:e188a91d3eaa 878 #define GPIOA_BASE (AHB2PERIPH_BASE + 0x00000000)
Kojto 93:e188a91d3eaa 879 #define GPIOB_BASE (AHB2PERIPH_BASE + 0x00000400)
Kojto 93:e188a91d3eaa 880 #define GPIOC_BASE (AHB2PERIPH_BASE + 0x00000800)
Kojto 93:e188a91d3eaa 881 #define GPIOD_BASE (AHB2PERIPH_BASE + 0x00000C00)
Kojto 93:e188a91d3eaa 882 #define GPIOE_BASE (AHB2PERIPH_BASE + 0x00001000)
Kojto 93:e188a91d3eaa 883 #define GPIOF_BASE (AHB2PERIPH_BASE + 0x00001400)
Kojto 93:e188a91d3eaa 884 #define GPIOG_BASE (AHB2PERIPH_BASE + 0x00001800)
Kojto 93:e188a91d3eaa 885 #define GPIOH_BASE (AHB2PERIPH_BASE + 0x00001C00)
Kojto 93:e188a91d3eaa 886
Kojto 93:e188a91d3eaa 887 /*!< AHB3 peripherals */
Kojto 93:e188a91d3eaa 888 #define ADC1_BASE (AHB3PERIPH_BASE + 0x00000000)
Kojto 93:e188a91d3eaa 889 #define ADC2_BASE (AHB3PERIPH_BASE + 0x00000100)
Kojto 93:e188a91d3eaa 890 #define ADC1_2_COMMON_BASE (AHB3PERIPH_BASE + 0x00000300)
Kojto 93:e188a91d3eaa 891 #define ADC3_BASE (AHB3PERIPH_BASE + 0x00000400)
Kojto 93:e188a91d3eaa 892 #define ADC4_BASE (AHB3PERIPH_BASE + 0x00000500)
Kojto 93:e188a91d3eaa 893 #define ADC3_4_COMMON_BASE (AHB3PERIPH_BASE + 0x00000700)
Kojto 93:e188a91d3eaa 894
Kojto 93:e188a91d3eaa 895 /*!< FMC Bankx registers base address */
Kojto 93:e188a91d3eaa 896 #define FMC_Bank1_R_BASE (FMC_R_BASE + 0x0000)
Kojto 93:e188a91d3eaa 897 #define FMC_Bank1E_R_BASE (FMC_R_BASE + 0x0104)
Kojto 93:e188a91d3eaa 898 #define FMC_Bank2_3_R_BASE (FMC_R_BASE + 0x0060)
Kojto 93:e188a91d3eaa 899 #define FMC_Bank4_R_BASE (FMC_R_BASE + 0x00A0)
Kojto 93:e188a91d3eaa 900
Kojto 93:e188a91d3eaa 901 #define DBGMCU_BASE ((uint32_t)0xE0042000) /*!< Debug MCU registers base address */
Kojto 93:e188a91d3eaa 902 /**
Kojto 93:e188a91d3eaa 903 * @}
Kojto 93:e188a91d3eaa 904 */
Kojto 93:e188a91d3eaa 905
Kojto 93:e188a91d3eaa 906 /** @addtogroup Peripheral_declaration
Kojto 93:e188a91d3eaa 907 * @{
Kojto 93:e188a91d3eaa 908 */
Kojto 93:e188a91d3eaa 909 #define TIM2 ((TIM_TypeDef *) TIM2_BASE)
Kojto 93:e188a91d3eaa 910 #define TIM3 ((TIM_TypeDef *) TIM3_BASE)
Kojto 93:e188a91d3eaa 911 #define TIM4 ((TIM_TypeDef *) TIM4_BASE)
Kojto 93:e188a91d3eaa 912 #define TIM6 ((TIM_TypeDef *) TIM6_BASE)
Kojto 93:e188a91d3eaa 913 #define TIM7 ((TIM_TypeDef *) TIM7_BASE)
Kojto 93:e188a91d3eaa 914 #define RTC ((RTC_TypeDef *) RTC_BASE)
Kojto 93:e188a91d3eaa 915 #define WWDG ((WWDG_TypeDef *) WWDG_BASE)
Kojto 93:e188a91d3eaa 916 #define IWDG ((IWDG_TypeDef *) IWDG_BASE)
Kojto 93:e188a91d3eaa 917 #define I2S2ext ((SPI_TypeDef *) I2S2ext_BASE)
Kojto 93:e188a91d3eaa 918 #define SPI2 ((SPI_TypeDef *) SPI2_BASE)
Kojto 93:e188a91d3eaa 919 #define SPI3 ((SPI_TypeDef *) SPI3_BASE)
Kojto 93:e188a91d3eaa 920 #define I2S3ext ((SPI_TypeDef *) I2S3ext_BASE)
Kojto 93:e188a91d3eaa 921 #define USART2 ((USART_TypeDef *) USART2_BASE)
Kojto 93:e188a91d3eaa 922 #define USART3 ((USART_TypeDef *) USART3_BASE)
Kojto 93:e188a91d3eaa 923 #define UART4 ((USART_TypeDef *) UART4_BASE)
Kojto 93:e188a91d3eaa 924 #define UART5 ((USART_TypeDef *) UART5_BASE)
Kojto 93:e188a91d3eaa 925 #define I2C1 ((I2C_TypeDef *) I2C1_BASE)
Kojto 93:e188a91d3eaa 926 #define I2C2 ((I2C_TypeDef *) I2C2_BASE)
Kojto 93:e188a91d3eaa 927 #define CAN ((CAN_TypeDef *) CAN_BASE)
Kojto 93:e188a91d3eaa 928 #define PWR ((PWR_TypeDef *) PWR_BASE)
Kojto 93:e188a91d3eaa 929 #define DAC ((DAC_TypeDef *) DAC_BASE)
Kojto 93:e188a91d3eaa 930 #define DAC1 ((DAC_TypeDef *) DAC1_BASE)
Kojto 93:e188a91d3eaa 931 #define I2C3 ((I2C_TypeDef *) I2C3_BASE)
Kojto 93:e188a91d3eaa 932 #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE)
Kojto 93:e188a91d3eaa 933 #define COMP ((COMP_TypeDef *) COMP_BASE)
Kojto 93:e188a91d3eaa 934 #define COMP1 ((COMP_TypeDef *) COMP1_BASE)
Kojto 93:e188a91d3eaa 935 #define COMP2 ((COMP_TypeDef *) COMP2_BASE)
Kojto 93:e188a91d3eaa 936 #define COMP3 ((COMP_TypeDef *) COMP3_BASE)
Kojto 93:e188a91d3eaa 937 #define COMP4 ((COMP_TypeDef *) COMP4_BASE)
Kojto 93:e188a91d3eaa 938 #define COMP5 ((COMP_TypeDef *) COMP5_BASE)
Kojto 93:e188a91d3eaa 939 #define COMP6 ((COMP_TypeDef *) COMP6_BASE)
Kojto 93:e188a91d3eaa 940 #define COMP7 ((COMP_TypeDef *) COMP7_BASE)
Kojto 93:e188a91d3eaa 941 #define OPAMP ((OPAMP_TypeDef *) OPAMP_BASE)
Kojto 93:e188a91d3eaa 942 #define OPAMP1 ((OPAMP_TypeDef *) OPAMP1_BASE)
Kojto 93:e188a91d3eaa 943 #define OPAMP2 ((OPAMP_TypeDef *) OPAMP2_BASE)
Kojto 93:e188a91d3eaa 944 #define OPAMP3 ((OPAMP_TypeDef *) OPAMP3_BASE)
Kojto 93:e188a91d3eaa 945 #define OPAMP4 ((OPAMP_TypeDef *) OPAMP4_BASE)
Kojto 93:e188a91d3eaa 946 #define EXTI ((EXTI_TypeDef *) EXTI_BASE)
Kojto 93:e188a91d3eaa 947 #define TIM1 ((TIM_TypeDef *) TIM1_BASE)
Kojto 93:e188a91d3eaa 948 #define SPI1 ((SPI_TypeDef *) SPI1_BASE)
Kojto 93:e188a91d3eaa 949 #define TIM8 ((TIM_TypeDef *) TIM8_BASE)
Kojto 93:e188a91d3eaa 950 #define USART1 ((USART_TypeDef *) USART1_BASE)
Kojto 93:e188a91d3eaa 951 #define SPI4 ((SPI_TypeDef *) SPI4_BASE)
Kojto 93:e188a91d3eaa 952 #define TIM15 ((TIM_TypeDef *) TIM15_BASE)
Kojto 93:e188a91d3eaa 953 #define TIM16 ((TIM_TypeDef *) TIM16_BASE)
Kojto 93:e188a91d3eaa 954 #define TIM17 ((TIM_TypeDef *) TIM17_BASE)
Kojto 93:e188a91d3eaa 955 #define TIM20 ((TIM_TypeDef *) TIM20_BASE)
Kojto 93:e188a91d3eaa 956 #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
Kojto 93:e188a91d3eaa 957 #define DMA1 ((DMA_TypeDef *) DMA1_BASE)
Kojto 93:e188a91d3eaa 958 #define DMA1_Channel1 ((DMA_Channel_TypeDef *) DMA1_Channel1_BASE)
Kojto 93:e188a91d3eaa 959 #define DMA1_Channel2 ((DMA_Channel_TypeDef *) DMA1_Channel2_BASE)
Kojto 93:e188a91d3eaa 960 #define DMA1_Channel3 ((DMA_Channel_TypeDef *) DMA1_Channel3_BASE)
Kojto 93:e188a91d3eaa 961 #define DMA1_Channel4 ((DMA_Channel_TypeDef *) DMA1_Channel4_BASE)
Kojto 93:e188a91d3eaa 962 #define DMA1_Channel5 ((DMA_Channel_TypeDef *) DMA1_Channel5_BASE)
Kojto 93:e188a91d3eaa 963 #define DMA1_Channel6 ((DMA_Channel_TypeDef *) DMA1_Channel6_BASE)
Kojto 93:e188a91d3eaa 964 #define DMA1_Channel7 ((DMA_Channel_TypeDef *) DMA1_Channel7_BASE)
Kojto 93:e188a91d3eaa 965 #define DMA2 ((DMA_TypeDef *) DMA2_BASE)
Kojto 93:e188a91d3eaa 966 #define DMA2_Channel1 ((DMA_Channel_TypeDef *) DMA2_Channel1_BASE)
Kojto 93:e188a91d3eaa 967 #define DMA2_Channel2 ((DMA_Channel_TypeDef *) DMA2_Channel2_BASE)
Kojto 93:e188a91d3eaa 968 #define DMA2_Channel3 ((DMA_Channel_TypeDef *) DMA2_Channel3_BASE)
Kojto 93:e188a91d3eaa 969 #define DMA2_Channel4 ((DMA_Channel_TypeDef *) DMA2_Channel4_BASE)
Kojto 93:e188a91d3eaa 970 #define DMA2_Channel5 ((DMA_Channel_TypeDef *) DMA2_Channel5_BASE)
Kojto 93:e188a91d3eaa 971 #define RCC ((RCC_TypeDef *) RCC_BASE)
Kojto 93:e188a91d3eaa 972 #define FLASH ((FLASH_TypeDef *) FLASH_R_BASE)
Kojto 93:e188a91d3eaa 973 #define OB ((OB_TypeDef *) OB_BASE)
Kojto 93:e188a91d3eaa 974 #define CRC ((CRC_TypeDef *) CRC_BASE)
Kojto 93:e188a91d3eaa 975 #define TSC ((TSC_TypeDef *) TSC_BASE)
Kojto 93:e188a91d3eaa 976 #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE)
Kojto 93:e188a91d3eaa 977 #define GPIOB ((GPIO_TypeDef *) GPIOB_BASE)
Kojto 93:e188a91d3eaa 978 #define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
Kojto 93:e188a91d3eaa 979 #define GPIOD ((GPIO_TypeDef *) GPIOD_BASE)
Kojto 93:e188a91d3eaa 980 #define GPIOE ((GPIO_TypeDef *) GPIOE_BASE)
Kojto 93:e188a91d3eaa 981 #define GPIOF ((GPIO_TypeDef *) GPIOF_BASE)
Kojto 93:e188a91d3eaa 982 #define GPIOG ((GPIO_TypeDef *) GPIOG_BASE)
Kojto 93:e188a91d3eaa 983 #define GPIOH ((GPIO_TypeDef *) GPIOH_BASE)
Kojto 93:e188a91d3eaa 984 #define ADC1 ((ADC_TypeDef *) ADC1_BASE)
Kojto 93:e188a91d3eaa 985 #define ADC2 ((ADC_TypeDef *) ADC2_BASE)
Kojto 93:e188a91d3eaa 986 #define ADC3 ((ADC_TypeDef *) ADC3_BASE)
Kojto 93:e188a91d3eaa 987 #define ADC4 ((ADC_TypeDef *) ADC4_BASE)
Kojto 93:e188a91d3eaa 988 #define ADC1_2_COMMON ((ADC_Common_TypeDef *) ADC1_2_COMMON_BASE)
Kojto 93:e188a91d3eaa 989 #define ADC3_4_COMMON ((ADC_Common_TypeDef *) ADC3_4_COMMON_BASE)
Kojto 93:e188a91d3eaa 990 #define USB ((USB_TypeDef *) USB_BASE)
Kojto 93:e188a91d3eaa 991 #define FMC_Bank1 ((FMC_Bank1_TypeDef *) FMC_Bank1_R_BASE)
Kojto 93:e188a91d3eaa 992 #define FMC_Bank1E ((FMC_Bank1E_TypeDef *) FMC_Bank1E_R_BASE)
Kojto 93:e188a91d3eaa 993 #define FMC_Bank2_3 ((FMC_Bank2_3_TypeDef *) FMC_Bank2_3_R_BASE)
Kojto 93:e188a91d3eaa 994 #define FMC_Bank4 ((FMC_Bank4_TypeDef *) FMC_Bank4_R_BASE)
Kojto 93:e188a91d3eaa 995
Kojto 93:e188a91d3eaa 996 /**
Kojto 93:e188a91d3eaa 997 * @}
Kojto 93:e188a91d3eaa 998 */
Kojto 93:e188a91d3eaa 999
Kojto 93:e188a91d3eaa 1000 /** @addtogroup Exported_constants
Kojto 93:e188a91d3eaa 1001 * @{
Kojto 93:e188a91d3eaa 1002 */
Kojto 93:e188a91d3eaa 1003
Kojto 93:e188a91d3eaa 1004 /** @addtogroup Peripheral_Registers_Bits_Definition
Kojto 93:e188a91d3eaa 1005 * @{
Kojto 93:e188a91d3eaa 1006 */
Kojto 93:e188a91d3eaa 1007
Kojto 93:e188a91d3eaa 1008 /******************************************************************************/
Kojto 93:e188a91d3eaa 1009 /* Peripheral Registers_Bits_Definition */
Kojto 93:e188a91d3eaa 1010 /******************************************************************************/
Kojto 93:e188a91d3eaa 1011
Kojto 93:e188a91d3eaa 1012 /******************************************************************************/
Kojto 93:e188a91d3eaa 1013 /* */
Kojto 93:e188a91d3eaa 1014 /* Analog to Digital Converter SAR (ADC) */
Kojto 93:e188a91d3eaa 1015 /* */
Kojto 93:e188a91d3eaa 1016 /******************************************************************************/
Kojto 93:e188a91d3eaa 1017 /******************** Bit definition for ADC_ISR register ********************/
Kojto 93:e188a91d3eaa 1018 #define ADC_ISR_ADRD ((uint32_t)0x00000001) /*!< ADC Ready (ADRDY) flag */
Kojto 93:e188a91d3eaa 1019 #define ADC_ISR_EOSMP ((uint32_t)0x00000002) /*!< ADC End of Sampling flag */
Kojto 93:e188a91d3eaa 1020 #define ADC_ISR_EOC ((uint32_t)0x00000004) /*!< ADC End of Regular Conversion flag */
Kojto 93:e188a91d3eaa 1021 #define ADC_ISR_EOS ((uint32_t)0x00000008) /*!< ADC End of Regular sequence of Conversions flag */
Kojto 93:e188a91d3eaa 1022 #define ADC_ISR_OVR ((uint32_t)0x00000010) /*!< ADC overrun flag */
Kojto 93:e188a91d3eaa 1023 #define ADC_ISR_JEOC ((uint32_t)0x00000020) /*!< ADC End of Injected Conversion flag */
Kojto 93:e188a91d3eaa 1024 #define ADC_ISR_JEOS ((uint32_t)0x00000040) /*!< ADC End of Injected sequence of Conversions flag */
Kojto 93:e188a91d3eaa 1025 #define ADC_ISR_AWD1 ((uint32_t)0x00000080) /*!< ADC Analog watchdog 1 flag */
Kojto 93:e188a91d3eaa 1026 #define ADC_ISR_AWD2 ((uint32_t)0x00000100) /*!< ADC Analog watchdog 2 flag */
Kojto 93:e188a91d3eaa 1027 #define ADC_ISR_AWD3 ((uint32_t)0x00000200) /*!< ADC Analog watchdog 3 flag */
Kojto 93:e188a91d3eaa 1028 #define ADC_ISR_JQOVF ((uint32_t)0x00000400) /*!< ADC Injected Context Queue Overflow flag */
Kojto 93:e188a91d3eaa 1029
Kojto 93:e188a91d3eaa 1030 /******************** Bit definition for ADC_IER register ********************/
Kojto 93:e188a91d3eaa 1031 #define ADC_IER_RDY ((uint32_t)0x00000001) /*!< ADC Ready (ADRDY) interrupt source */
Kojto 93:e188a91d3eaa 1032 #define ADC_IER_EOSMP ((uint32_t)0x00000002) /*!< ADC End of Sampling interrupt source */
Kojto 93:e188a91d3eaa 1033 #define ADC_IER_EOC ((uint32_t)0x00000004) /*!< ADC End of Regular Conversion interrupt source */
Kojto 93:e188a91d3eaa 1034 #define ADC_IER_EOS ((uint32_t)0x00000008) /*!< ADC End of Regular sequence of Conversions interrupt source */
Kojto 93:e188a91d3eaa 1035 #define ADC_IER_OVR ((uint32_t)0x00000010) /*!< ADC overrun interrupt source */
Kojto 93:e188a91d3eaa 1036 #define ADC_IER_JEOC ((uint32_t)0x00000020) /*!< ADC End of Injected Conversion interrupt source */
Kojto 93:e188a91d3eaa 1037 #define ADC_IER_JEOS ((uint32_t)0x00000040) /*!< ADC End of Injected sequence of Conversions interrupt source */
Kojto 93:e188a91d3eaa 1038 #define ADC_IER_AWD1 ((uint32_t)0x00000080) /*!< ADC Analog watchdog 1 interrupt source */
Kojto 93:e188a91d3eaa 1039 #define ADC_IER_AWD2 ((uint32_t)0x00000100) /*!< ADC Analog watchdog 2 interrupt source */
Kojto 93:e188a91d3eaa 1040 #define ADC_IER_AWD3 ((uint32_t)0x00000200) /*!< ADC Analog watchdog 3 interrupt source */
Kojto 93:e188a91d3eaa 1041 #define ADC_IER_JQOVF ((uint32_t)0x00000400) /*!< ADC Injected Context Queue Overflow interrupt source */
Kojto 93:e188a91d3eaa 1042
Kojto 93:e188a91d3eaa 1043 /******************** Bit definition for ADC_CR register ********************/
Kojto 93:e188a91d3eaa 1044 #define ADC_CR_ADEN ((uint32_t)0x00000001) /*!< ADC Enable control */
Kojto 93:e188a91d3eaa 1045 #define ADC_CR_ADDIS ((uint32_t)0x00000002) /*!< ADC Disable command */
Kojto 93:e188a91d3eaa 1046 #define ADC_CR_ADSTART ((uint32_t)0x00000004) /*!< ADC Start of Regular conversion */
Kojto 93:e188a91d3eaa 1047 #define ADC_CR_JADSTART ((uint32_t)0x00000008) /*!< ADC Start of injected conversion */
Kojto 93:e188a91d3eaa 1048 #define ADC_CR_ADSTP ((uint32_t)0x00000010) /*!< ADC Stop of Regular conversion */
Kojto 93:e188a91d3eaa 1049 #define ADC_CR_JADSTP ((uint32_t)0x00000020) /*!< ADC Stop of injected conversion */
Kojto 93:e188a91d3eaa 1050 #define ADC_CR_ADVREGEN ((uint32_t)0x30000000) /*!< ADC Voltage regulator Enable */
Kojto 93:e188a91d3eaa 1051 #define ADC_CR_ADVREGEN_0 ((uint32_t)0x10000000) /*!< ADC ADVREGEN bit 0 */
Kojto 93:e188a91d3eaa 1052 #define ADC_CR_ADVREGEN_1 ((uint32_t)0x20000000) /*!< ADC ADVREGEN bit 1 */
Kojto 93:e188a91d3eaa 1053 #define ADC_CR_ADCALDIF ((uint32_t)0x40000000) /*!< ADC Differential Mode for calibration */
Kojto 93:e188a91d3eaa 1054 #define ADC_CR_ADCAL ((uint32_t)0x80000000) /*!< ADC Calibration */
Kojto 93:e188a91d3eaa 1055
Kojto 93:e188a91d3eaa 1056 /******************** Bit definition for ADC_CFGR register ********************/
Kojto 93:e188a91d3eaa 1057 #define ADC_CFGR_DMAEN ((uint32_t)0x00000001) /*!< ADC DMA Enable */
Kojto 93:e188a91d3eaa 1058 #define ADC_CFGR_DMACFG ((uint32_t)0x00000002) /*!< ADC DMA configuration */
Kojto 93:e188a91d3eaa 1059
Kojto 93:e188a91d3eaa 1060 #define ADC_CFGR_RES ((uint32_t)0x00000018) /*!< ADC Data resolution */
Kojto 93:e188a91d3eaa 1061 #define ADC_CFGR_RES_0 ((uint32_t)0x00000008) /*!< ADC RES bit 0 */
Kojto 93:e188a91d3eaa 1062 #define ADC_CFGR_RES_1 ((uint32_t)0x00000010) /*!< ADC RES bit 1 */
Kojto 93:e188a91d3eaa 1063
Kojto 93:e188a91d3eaa 1064 #define ADC_CFGR_ALIGN ((uint32_t)0x00000020) /*!< ADC Data Alignement */
Kojto 93:e188a91d3eaa 1065
Kojto 93:e188a91d3eaa 1066 #define ADC_CFGR_EXTSEL ((uint32_t)0x000003C0) /*!< ADC External trigger selection for regular group */
Kojto 93:e188a91d3eaa 1067 #define ADC_CFGR_EXTSEL_0 ((uint32_t)0x00000040) /*!< ADC EXTSEL bit 0 */
Kojto 93:e188a91d3eaa 1068 #define ADC_CFGR_EXTSEL_1 ((uint32_t)0x00000080) /*!< ADC EXTSEL bit 1 */
Kojto 93:e188a91d3eaa 1069 #define ADC_CFGR_EXTSEL_2 ((uint32_t)0x00000100) /*!< ADC EXTSEL bit 2 */
Kojto 93:e188a91d3eaa 1070 #define ADC_CFGR_EXTSEL_3 ((uint32_t)0x00000200) /*!< ADC EXTSEL bit 3 */
Kojto 93:e188a91d3eaa 1071
Kojto 93:e188a91d3eaa 1072 #define ADC_CFGR_EXTEN ((uint32_t)0x00000C00) /*!< ADC External trigger enable and polarity selection for regular channels */
Kojto 93:e188a91d3eaa 1073 #define ADC_CFGR_EXTEN_0 ((uint32_t)0x00000400) /*!< ADC EXTEN bit 0 */
Kojto 93:e188a91d3eaa 1074 #define ADC_CFGR_EXTEN_1 ((uint32_t)0x00000800) /*!< ADC EXTEN bit 1 */
Kojto 93:e188a91d3eaa 1075
Kojto 93:e188a91d3eaa 1076 #define ADC_CFGR_OVRMOD ((uint32_t)0x00001000) /*!< ADC overrun mode */
Kojto 93:e188a91d3eaa 1077 #define ADC_CFGR_CONT ((uint32_t)0x00002000) /*!< ADC Single/continuous conversion mode for regular conversion */
Kojto 93:e188a91d3eaa 1078 #define ADC_CFGR_AUTDLY ((uint32_t)0x00004000) /*!< ADC Delayed conversion mode */
Kojto 93:e188a91d3eaa 1079 #define ADC_CFGR_AUTOFF ((uint32_t)0x00008000) /*!< ADC Auto power OFF */
Kojto 93:e188a91d3eaa 1080 #define ADC_CFGR_DISCEN ((uint32_t)0x00010000) /*!< ADC Discontinuous mode for regular channels */
Kojto 93:e188a91d3eaa 1081
Kojto 93:e188a91d3eaa 1082 #define ADC_CFGR_DISCNUM ((uint32_t)0x000E0000) /*!< ADC Discontinuous mode channel count */
Kojto 93:e188a91d3eaa 1083 #define ADC_CFGR_DISCNUM_0 ((uint32_t)0x00020000) /*!< ADC DISCNUM bit 0 */
Kojto 93:e188a91d3eaa 1084 #define ADC_CFGR_DISCNUM_1 ((uint32_t)0x00040000) /*!< ADC DISCNUM bit 1 */
Kojto 93:e188a91d3eaa 1085 #define ADC_CFGR_DISCNUM_2 ((uint32_t)0x00080000) /*!< ADC DISCNUM bit 2 */
Kojto 93:e188a91d3eaa 1086
Kojto 93:e188a91d3eaa 1087 #define ADC_CFGR_JDISCEN ((uint32_t)0x00100000) /*!< ADC Discontinous mode on injected channels */
Kojto 93:e188a91d3eaa 1088 #define ADC_CFGR_JQM ((uint32_t)0x00200000) /*!< ADC JSQR Queue mode */
Kojto 93:e188a91d3eaa 1089 #define ADC_CFGR_AWD1SGL ((uint32_t)0x00400000) /*!< Eanble the watchdog 1 on a single channel or on all channels */
Kojto 93:e188a91d3eaa 1090 #define ADC_CFGR_AWD1EN ((uint32_t)0x00800000) /*!< ADC Analog watchdog 1 enable on regular Channels */
Kojto 93:e188a91d3eaa 1091 #define ADC_CFGR_JAWD1EN ((uint32_t)0x01000000) /*!< ADC Analog watchdog 1 enable on injected Channels */
Kojto 93:e188a91d3eaa 1092 #define ADC_CFGR_JAUTO ((uint32_t)0x02000000) /*!< ADC Automatic injected group conversion */
Kojto 93:e188a91d3eaa 1093
Kojto 93:e188a91d3eaa 1094 #define ADC_CFGR_AWD1CH ((uint32_t)0x7C000000) /*!< ADC Analog watchdog 1 Channel selection */
Kojto 93:e188a91d3eaa 1095 #define ADC_CFGR_AWD1CH_0 ((uint32_t)0x04000000) /*!< ADC AWD1CH bit 0 */
Kojto 93:e188a91d3eaa 1096 #define ADC_CFGR_AWD1CH_1 ((uint32_t)0x08000000) /*!< ADC AWD1CH bit 1 */
Kojto 93:e188a91d3eaa 1097 #define ADC_CFGR_AWD1CH_2 ((uint32_t)0x10000000) /*!< ADC AWD1CH bit 2 */
Kojto 93:e188a91d3eaa 1098 #define ADC_CFGR_AWD1CH_3 ((uint32_t)0x20000000) /*!< ADC AWD1CH bit 3 */
Kojto 93:e188a91d3eaa 1099 #define ADC_CFGR_AWD1CH_4 ((uint32_t)0x40000000) /*!< ADC AWD1CH bit 4 */
Kojto 93:e188a91d3eaa 1100
Kojto 93:e188a91d3eaa 1101 /******************** Bit definition for ADC_SMPR1 register ********************/
Kojto 93:e188a91d3eaa 1102 #define ADC_SMPR1_SMP0 ((uint32_t)0x00000007) /*!< ADC Channel 0 Sampling time selection */
Kojto 93:e188a91d3eaa 1103 #define ADC_SMPR1_SMP0_0 ((uint32_t)0x00000001) /*!< ADC SMP0 bit 0 */
Kojto 93:e188a91d3eaa 1104 #define ADC_SMPR1_SMP0_1 ((uint32_t)0x00000002) /*!< ADC SMP0 bit 1 */
Kojto 93:e188a91d3eaa 1105 #define ADC_SMPR1_SMP0_2 ((uint32_t)0x00000004) /*!< ADC SMP0 bit 2 */
Kojto 93:e188a91d3eaa 1106
Kojto 93:e188a91d3eaa 1107 #define ADC_SMPR1_SMP1 ((uint32_t)0x00000038) /*!< ADC Channel 1 Sampling time selection */
Kojto 93:e188a91d3eaa 1108 #define ADC_SMPR1_SMP1_0 ((uint32_t)0x00000008) /*!< ADC SMP1 bit 0 */
Kojto 93:e188a91d3eaa 1109 #define ADC_SMPR1_SMP1_1 ((uint32_t)0x00000010) /*!< ADC SMP1 bit 1 */
Kojto 93:e188a91d3eaa 1110 #define ADC_SMPR1_SMP1_2 ((uint32_t)0x00000020) /*!< ADC SMP1 bit 2 */
Kojto 93:e188a91d3eaa 1111
Kojto 93:e188a91d3eaa 1112 #define ADC_SMPR1_SMP2 ((uint32_t)0x000001C0) /*!< ADC Channel 2 Sampling time selection */
Kojto 93:e188a91d3eaa 1113 #define ADC_SMPR1_SMP2_0 ((uint32_t)0x00000040) /*!< ADC SMP2 bit 0 */
Kojto 93:e188a91d3eaa 1114 #define ADC_SMPR1_SMP2_1 ((uint32_t)0x00000080) /*!< ADC SMP2 bit 1 */
Kojto 93:e188a91d3eaa 1115 #define ADC_SMPR1_SMP2_2 ((uint32_t)0x00000100) /*!< ADC SMP2 bit 2 */
Kojto 93:e188a91d3eaa 1116
Kojto 93:e188a91d3eaa 1117 #define ADC_SMPR1_SMP3 ((uint32_t)0x00000E00) /*!< ADC Channel 3 Sampling time selection */
Kojto 93:e188a91d3eaa 1118 #define ADC_SMPR1_SMP3_0 ((uint32_t)0x00000200) /*!< ADC SMP3 bit 0 */
Kojto 93:e188a91d3eaa 1119 #define ADC_SMPR1_SMP3_1 ((uint32_t)0x00000400) /*!< ADC SMP3 bit 1 */
Kojto 93:e188a91d3eaa 1120 #define ADC_SMPR1_SMP3_2 ((uint32_t)0x00000800) /*!< ADC SMP3 bit 2 */
Kojto 93:e188a91d3eaa 1121
Kojto 93:e188a91d3eaa 1122 #define ADC_SMPR1_SMP4 ((uint32_t)0x00007000) /*!< ADC Channel 4 Sampling time selection */
Kojto 93:e188a91d3eaa 1123 #define ADC_SMPR1_SMP4_0 ((uint32_t)0x00001000) /*!< ADC SMP4 bit 0 */
Kojto 93:e188a91d3eaa 1124 #define ADC_SMPR1_SMP4_1 ((uint32_t)0x00002000) /*!< ADC SMP4 bit 1 */
Kojto 93:e188a91d3eaa 1125 #define ADC_SMPR1_SMP4_2 ((uint32_t)0x00004000) /*!< ADC SMP4 bit 2 */
Kojto 93:e188a91d3eaa 1126
Kojto 93:e188a91d3eaa 1127 #define ADC_SMPR1_SMP5 ((uint32_t)0x00038000) /*!< ADC Channel 5 Sampling time selection */
Kojto 93:e188a91d3eaa 1128 #define ADC_SMPR1_SMP5_0 ((uint32_t)0x00008000) /*!< ADC SMP5 bit 0 */
Kojto 93:e188a91d3eaa 1129 #define ADC_SMPR1_SMP5_1 ((uint32_t)0x00010000) /*!< ADC SMP5 bit 1 */
Kojto 93:e188a91d3eaa 1130 #define ADC_SMPR1_SMP5_2 ((uint32_t)0x00020000) /*!< ADC SMP5 bit 2 */
Kojto 93:e188a91d3eaa 1131
Kojto 93:e188a91d3eaa 1132 #define ADC_SMPR1_SMP6 ((uint32_t)0x001C0000) /*!< ADC Channel 6 Sampling time selection */
Kojto 93:e188a91d3eaa 1133 #define ADC_SMPR1_SMP6_0 ((uint32_t)0x00040000) /*!< ADC SMP6 bit 0 */
Kojto 93:e188a91d3eaa 1134 #define ADC_SMPR1_SMP6_1 ((uint32_t)0x00080000) /*!< ADC SMP6 bit 1 */
Kojto 93:e188a91d3eaa 1135 #define ADC_SMPR1_SMP6_2 ((uint32_t)0x00100000) /*!< ADC SMP6 bit 2 */
Kojto 93:e188a91d3eaa 1136
Kojto 93:e188a91d3eaa 1137 #define ADC_SMPR1_SMP7 ((uint32_t)0x00E00000) /*!< ADC Channel 7 Sampling time selection */
Kojto 93:e188a91d3eaa 1138 #define ADC_SMPR1_SMP7_0 ((uint32_t)0x00200000) /*!< ADC SMP7 bit 0 */
Kojto 93:e188a91d3eaa 1139 #define ADC_SMPR1_SMP7_1 ((uint32_t)0x00400000) /*!< ADC SMP7 bit 1 */
Kojto 93:e188a91d3eaa 1140 #define ADC_SMPR1_SMP7_2 ((uint32_t)0x00800000) /*!< ADC SMP7 bit 2 */
Kojto 93:e188a91d3eaa 1141
Kojto 93:e188a91d3eaa 1142 #define ADC_SMPR1_SMP8 ((uint32_t)0x07000000) /*!< ADC Channel 8 Sampling time selection */
Kojto 93:e188a91d3eaa 1143 #define ADC_SMPR1_SMP8_0 ((uint32_t)0x01000000) /*!< ADC SMP8 bit 0 */
Kojto 93:e188a91d3eaa 1144 #define ADC_SMPR1_SMP8_1 ((uint32_t)0x02000000) /*!< ADC SMP8 bit 1 */
Kojto 93:e188a91d3eaa 1145 #define ADC_SMPR1_SMP8_2 ((uint32_t)0x04000000) /*!< ADC SMP8 bit 2 */
Kojto 93:e188a91d3eaa 1146
Kojto 93:e188a91d3eaa 1147 #define ADC_SMPR1_SMP9 ((uint32_t)0x38000000) /*!< ADC Channel 9 Sampling time selection */
Kojto 93:e188a91d3eaa 1148 #define ADC_SMPR1_SMP9_0 ((uint32_t)0x08000000) /*!< ADC SMP9 bit 0 */
Kojto 93:e188a91d3eaa 1149 #define ADC_SMPR1_SMP9_1 ((uint32_t)0x10000000) /*!< ADC SMP9 bit 1 */
Kojto 93:e188a91d3eaa 1150 #define ADC_SMPR1_SMP9_2 ((uint32_t)0x20000000) /*!< ADC SMP9 bit 2 */
Kojto 93:e188a91d3eaa 1151
Kojto 93:e188a91d3eaa 1152 /******************** Bit definition for ADC_SMPR2 register ********************/
Kojto 93:e188a91d3eaa 1153 #define ADC_SMPR2_SMP10 ((uint32_t)0x00000007) /*!< ADC Channel 10 Sampling time selection */
Kojto 93:e188a91d3eaa 1154 #define ADC_SMPR2_SMP10_0 ((uint32_t)0x00000001) /*!< ADC SMP10 bit 0 */
Kojto 93:e188a91d3eaa 1155 #define ADC_SMPR2_SMP10_1 ((uint32_t)0x00000002) /*!< ADC SMP10 bit 1 */
Kojto 93:e188a91d3eaa 1156 #define ADC_SMPR2_SMP10_2 ((uint32_t)0x00000004) /*!< ADC SMP10 bit 2 */
Kojto 93:e188a91d3eaa 1157
Kojto 93:e188a91d3eaa 1158 #define ADC_SMPR2_SMP11 ((uint32_t)0x00000038) /*!< ADC Channel 11 Sampling time selection */
Kojto 93:e188a91d3eaa 1159 #define ADC_SMPR2_SMP11_0 ((uint32_t)0x00000008) /*!< ADC SMP11 bit 0 */
Kojto 93:e188a91d3eaa 1160 #define ADC_SMPR2_SMP11_1 ((uint32_t)0x00000010) /*!< ADC SMP11 bit 1 */
Kojto 93:e188a91d3eaa 1161 #define ADC_SMPR2_SMP11_2 ((uint32_t)0x00000020) /*!< ADC SMP11 bit 2 */
Kojto 93:e188a91d3eaa 1162
Kojto 93:e188a91d3eaa 1163 #define ADC_SMPR2_SMP12 ((uint32_t)0x000001C0) /*!< ADC Channel 12 Sampling time selection */
Kojto 93:e188a91d3eaa 1164 #define ADC_SMPR2_SMP12_0 ((uint32_t)0x00000040) /*!< ADC SMP12 bit 0 */
Kojto 93:e188a91d3eaa 1165 #define ADC_SMPR2_SMP12_1 ((uint32_t)0x00000080) /*!< ADC SMP12 bit 1 */
Kojto 93:e188a91d3eaa 1166 #define ADC_SMPR2_SMP12_2 ((uint32_t)0x00000100) /*!< ADC SMP12 bit 2 */
Kojto 93:e188a91d3eaa 1167
Kojto 93:e188a91d3eaa 1168 #define ADC_SMPR2_SMP13 ((uint32_t)0x00000E00) /*!< ADC Channel 13 Sampling time selection */
Kojto 93:e188a91d3eaa 1169 #define ADC_SMPR2_SMP13_0 ((uint32_t)0x00000200) /*!< ADC SMP13 bit 0 */
Kojto 93:e188a91d3eaa 1170 #define ADC_SMPR2_SMP13_1 ((uint32_t)0x00000400) /*!< ADC SMP13 bit 1 */
Kojto 93:e188a91d3eaa 1171 #define ADC_SMPR2_SMP13_2 ((uint32_t)0x00000800) /*!< ADC SMP13 bit 2 */
Kojto 93:e188a91d3eaa 1172
Kojto 93:e188a91d3eaa 1173 #define ADC_SMPR2_SMP14 ((uint32_t)0x00007000) /*!< ADC Channel 14 Sampling time selection */
Kojto 93:e188a91d3eaa 1174 #define ADC_SMPR2_SMP14_0 ((uint32_t)0x00001000) /*!< ADC SMP14 bit 0 */
Kojto 93:e188a91d3eaa 1175 #define ADC_SMPR2_SMP14_1 ((uint32_t)0x00002000) /*!< ADC SMP14 bit 1 */
Kojto 93:e188a91d3eaa 1176 #define ADC_SMPR2_SMP14_2 ((uint32_t)0x00004000) /*!< ADC SMP14 bit 2 */
Kojto 93:e188a91d3eaa 1177
Kojto 93:e188a91d3eaa 1178 #define ADC_SMPR2_SMP15 ((uint32_t)0x00038000) /*!< ADC Channel 15 Sampling time selection */
Kojto 93:e188a91d3eaa 1179 #define ADC_SMPR2_SMP15_0 ((uint32_t)0x00008000) /*!< ADC SMP15 bit 0 */
Kojto 93:e188a91d3eaa 1180 #define ADC_SMPR2_SMP15_1 ((uint32_t)0x00010000) /*!< ADC SMP15 bit 1 */
Kojto 93:e188a91d3eaa 1181 #define ADC_SMPR2_SMP15_2 ((uint32_t)0x00020000) /*!< ADC SMP15 bit 2 */
Kojto 93:e188a91d3eaa 1182
Kojto 93:e188a91d3eaa 1183 #define ADC_SMPR2_SMP16 ((uint32_t)0x001C0000) /*!< ADC Channel 16 Sampling time selection */
Kojto 93:e188a91d3eaa 1184 #define ADC_SMPR2_SMP16_0 ((uint32_t)0x00040000) /*!< ADC SMP16 bit 0 */
Kojto 93:e188a91d3eaa 1185 #define ADC_SMPR2_SMP16_1 ((uint32_t)0x00080000) /*!< ADC SMP16 bit 1 */
Kojto 93:e188a91d3eaa 1186 #define ADC_SMPR2_SMP16_2 ((uint32_t)0x00100000) /*!< ADC SMP16 bit 2 */
Kojto 93:e188a91d3eaa 1187
Kojto 93:e188a91d3eaa 1188 #define ADC_SMPR2_SMP17 ((uint32_t)0x00E00000) /*!< ADC Channel 17 Sampling time selection */
Kojto 93:e188a91d3eaa 1189 #define ADC_SMPR2_SMP17_0 ((uint32_t)0x00200000) /*!< ADC SMP17 bit 0 */
Kojto 93:e188a91d3eaa 1190 #define ADC_SMPR2_SMP17_1 ((uint32_t)0x00400000) /*!< ADC SMP17 bit 1 */
Kojto 93:e188a91d3eaa 1191 #define ADC_SMPR2_SMP17_2 ((uint32_t)0x00800000) /*!< ADC SMP17 bit 2 */
Kojto 93:e188a91d3eaa 1192
Kojto 93:e188a91d3eaa 1193 #define ADC_SMPR2_SMP18 ((uint32_t)0x07000000) /*!< ADC Channel 18 Sampling time selection */
Kojto 93:e188a91d3eaa 1194 #define ADC_SMPR2_SMP18_0 ((uint32_t)0x01000000) /*!< ADC SMP18 bit 0 */
Kojto 93:e188a91d3eaa 1195 #define ADC_SMPR2_SMP18_1 ((uint32_t)0x02000000) /*!< ADC SMP18 bit 1 */
Kojto 93:e188a91d3eaa 1196 #define ADC_SMPR2_SMP18_2 ((uint32_t)0x04000000) /*!< ADC SMP18 bit 2 */
Kojto 93:e188a91d3eaa 1197
Kojto 93:e188a91d3eaa 1198 /******************** Bit definition for ADC_TR1 register ********************/
Kojto 93:e188a91d3eaa 1199 #define ADC_TR1_LT1 ((uint32_t)0x00000FFF) /*!< ADC Analog watchdog 1 lower threshold */
Kojto 93:e188a91d3eaa 1200 #define ADC_TR1_LT1_0 ((uint32_t)0x00000001) /*!< ADC LT1 bit 0 */
Kojto 93:e188a91d3eaa 1201 #define ADC_TR1_LT1_1 ((uint32_t)0x00000002) /*!< ADC LT1 bit 1 */
Kojto 93:e188a91d3eaa 1202 #define ADC_TR1_LT1_2 ((uint32_t)0x00000004) /*!< ADC LT1 bit 2 */
Kojto 93:e188a91d3eaa 1203 #define ADC_TR1_LT1_3 ((uint32_t)0x00000008) /*!< ADC LT1 bit 3 */
Kojto 93:e188a91d3eaa 1204 #define ADC_TR1_LT1_4 ((uint32_t)0x00000010) /*!< ADC LT1 bit 4 */
Kojto 93:e188a91d3eaa 1205 #define ADC_TR1_LT1_5 ((uint32_t)0x00000020) /*!< ADC LT1 bit 5 */
Kojto 93:e188a91d3eaa 1206 #define ADC_TR1_LT1_6 ((uint32_t)0x00000040) /*!< ADC LT1 bit 6 */
Kojto 93:e188a91d3eaa 1207 #define ADC_TR1_LT1_7 ((uint32_t)0x00000080) /*!< ADC LT1 bit 7 */
Kojto 93:e188a91d3eaa 1208 #define ADC_TR1_LT1_8 ((uint32_t)0x00000100) /*!< ADC LT1 bit 8 */
Kojto 93:e188a91d3eaa 1209 #define ADC_TR1_LT1_9 ((uint32_t)0x00000200) /*!< ADC LT1 bit 9 */
Kojto 93:e188a91d3eaa 1210 #define ADC_TR1_LT1_10 ((uint32_t)0x00000400) /*!< ADC LT1 bit 10 */
Kojto 93:e188a91d3eaa 1211 #define ADC_TR1_LT1_11 ((uint32_t)0x00000800) /*!< ADC LT1 bit 11 */
Kojto 93:e188a91d3eaa 1212
Kojto 93:e188a91d3eaa 1213 #define ADC_TR1_HT1 ((uint32_t)0x0FFF0000) /*!< ADC Analog watchdog 1 higher threshold */
Kojto 93:e188a91d3eaa 1214 #define ADC_TR1_HT1_0 ((uint32_t)0x00010000) /*!< ADC HT1 bit 0 */
Kojto 93:e188a91d3eaa 1215 #define ADC_TR1_HT1_1 ((uint32_t)0x00020000) /*!< ADC HT1 bit 1 */
Kojto 93:e188a91d3eaa 1216 #define ADC_TR1_HT1_2 ((uint32_t)0x00040000) /*!< ADC HT1 bit 2 */
Kojto 93:e188a91d3eaa 1217 #define ADC_TR1_HT1_3 ((uint32_t)0x00080000) /*!< ADC HT1 bit 3 */
Kojto 93:e188a91d3eaa 1218 #define ADC_TR1_HT1_4 ((uint32_t)0x00100000) /*!< ADC HT1 bit 4 */
Kojto 93:e188a91d3eaa 1219 #define ADC_TR1_HT1_5 ((uint32_t)0x00200000) /*!< ADC HT1 bit 5 */
Kojto 93:e188a91d3eaa 1220 #define ADC_TR1_HT1_6 ((uint32_t)0x00400000) /*!< ADC HT1 bit 6 */
Kojto 93:e188a91d3eaa 1221 #define ADC_TR1_HT1_7 ((uint32_t)0x00800000) /*!< ADC HT1 bit 7 */
Kojto 93:e188a91d3eaa 1222 #define ADC_TR1_HT1_8 ((uint32_t)0x01000000) /*!< ADC HT1 bit 8 */
Kojto 93:e188a91d3eaa 1223 #define ADC_TR1_HT1_9 ((uint32_t)0x02000000) /*!< ADC HT1 bit 9 */
Kojto 93:e188a91d3eaa 1224 #define ADC_TR1_HT1_10 ((uint32_t)0x04000000) /*!< ADC HT1 bit 10 */
Kojto 93:e188a91d3eaa 1225 #define ADC_TR1_HT1_11 ((uint32_t)0x08000000) /*!< ADC HT1 bit 11 */
Kojto 93:e188a91d3eaa 1226
Kojto 93:e188a91d3eaa 1227 /******************** Bit definition for ADC_TR2 register ********************/
Kojto 93:e188a91d3eaa 1228 #define ADC_TR2_LT2 ((uint32_t)0x000000FF) /*!< ADC Analog watchdog 2 lower threshold */
Kojto 93:e188a91d3eaa 1229 #define ADC_TR2_LT2_0 ((uint32_t)0x00000001) /*!< ADC LT2 bit 0 */
Kojto 93:e188a91d3eaa 1230 #define ADC_TR2_LT2_1 ((uint32_t)0x00000002) /*!< ADC LT2 bit 1 */
Kojto 93:e188a91d3eaa 1231 #define ADC_TR2_LT2_2 ((uint32_t)0x00000004) /*!< ADC LT2 bit 2 */
Kojto 93:e188a91d3eaa 1232 #define ADC_TR2_LT2_3 ((uint32_t)0x00000008) /*!< ADC LT2 bit 3 */
Kojto 93:e188a91d3eaa 1233 #define ADC_TR2_LT2_4 ((uint32_t)0x00000010) /*!< ADC LT2 bit 4 */
Kojto 93:e188a91d3eaa 1234 #define ADC_TR2_LT2_5 ((uint32_t)0x00000020) /*!< ADC LT2 bit 5 */
Kojto 93:e188a91d3eaa 1235 #define ADC_TR2_LT2_6 ((uint32_t)0x00000040) /*!< ADC LT2 bit 6 */
Kojto 93:e188a91d3eaa 1236 #define ADC_TR2_LT2_7 ((uint32_t)0x00000080) /*!< ADC LT2 bit 7 */
Kojto 93:e188a91d3eaa 1237
Kojto 93:e188a91d3eaa 1238 #define ADC_TR2_HT2 ((uint32_t)0x00FF0000) /*!< ADC Analog watchdog 2 higher threshold */
Kojto 93:e188a91d3eaa 1239 #define ADC_TR2_HT2_0 ((uint32_t)0x00010000) /*!< ADC HT2 bit 0 */
Kojto 93:e188a91d3eaa 1240 #define ADC_TR2_HT2_1 ((uint32_t)0x00020000) /*!< ADC HT2 bit 1 */
Kojto 93:e188a91d3eaa 1241 #define ADC_TR2_HT2_2 ((uint32_t)0x00040000) /*!< ADC HT2 bit 2 */
Kojto 93:e188a91d3eaa 1242 #define ADC_TR2_HT2_3 ((uint32_t)0x00080000) /*!< ADC HT2 bit 3 */
Kojto 93:e188a91d3eaa 1243 #define ADC_TR2_HT2_4 ((uint32_t)0x00100000) /*!< ADC HT2 bit 4 */
Kojto 93:e188a91d3eaa 1244 #define ADC_TR2_HT2_5 ((uint32_t)0x00200000) /*!< ADC HT2 bit 5 */
Kojto 93:e188a91d3eaa 1245 #define ADC_TR2_HT2_6 ((uint32_t)0x00400000) /*!< ADC HT2 bit 6 */
Kojto 93:e188a91d3eaa 1246 #define ADC_TR2_HT2_7 ((uint32_t)0x00800000) /*!< ADC HT2 bit 7 */
Kojto 93:e188a91d3eaa 1247
Kojto 93:e188a91d3eaa 1248 /******************** Bit definition for ADC_TR3 register ********************/
Kojto 93:e188a91d3eaa 1249 #define ADC_TR3_LT3 ((uint32_t)0x000000FF) /*!< ADC Analog watchdog 3 lower threshold */
Kojto 93:e188a91d3eaa 1250 #define ADC_TR3_LT3_0 ((uint32_t)0x00000001) /*!< ADC LT3 bit 0 */
Kojto 93:e188a91d3eaa 1251 #define ADC_TR3_LT3_1 ((uint32_t)0x00000002) /*!< ADC LT3 bit 1 */
Kojto 93:e188a91d3eaa 1252 #define ADC_TR3_LT3_2 ((uint32_t)0x00000004) /*!< ADC LT3 bit 2 */
Kojto 93:e188a91d3eaa 1253 #define ADC_TR3_LT3_3 ((uint32_t)0x00000008) /*!< ADC LT3 bit 3 */
Kojto 93:e188a91d3eaa 1254 #define ADC_TR3_LT3_4 ((uint32_t)0x00000010) /*!< ADC LT3 bit 4 */
Kojto 93:e188a91d3eaa 1255 #define ADC_TR3_LT3_5 ((uint32_t)0x00000020) /*!< ADC LT3 bit 5 */
Kojto 93:e188a91d3eaa 1256 #define ADC_TR3_LT3_6 ((uint32_t)0x00000040) /*!< ADC LT3 bit 6 */
Kojto 93:e188a91d3eaa 1257 #define ADC_TR3_LT3_7 ((uint32_t)0x00000080) /*!< ADC LT3 bit 7 */
Kojto 93:e188a91d3eaa 1258
Kojto 93:e188a91d3eaa 1259 #define ADC_TR3_HT3 ((uint32_t)0x00FF0000) /*!< ADC Analog watchdog 3 higher threshold */
Kojto 93:e188a91d3eaa 1260 #define ADC_TR3_HT3_0 ((uint32_t)0x00010000) /*!< ADC HT3 bit 0 */
Kojto 93:e188a91d3eaa 1261 #define ADC_TR3_HT3_1 ((uint32_t)0x00020000) /*!< ADC HT3 bit 1 */
Kojto 93:e188a91d3eaa 1262 #define ADC_TR3_HT3_2 ((uint32_t)0x00040000) /*!< ADC HT3 bit 2 */
Kojto 93:e188a91d3eaa 1263 #define ADC_TR3_HT3_3 ((uint32_t)0x00080000) /*!< ADC HT3 bit 3 */
Kojto 93:e188a91d3eaa 1264 #define ADC_TR3_HT3_4 ((uint32_t)0x00100000) /*!< ADC HT3 bit 4 */
Kojto 93:e188a91d3eaa 1265 #define ADC_TR3_HT3_5 ((uint32_t)0x00200000) /*!< ADC HT3 bit 5 */
Kojto 93:e188a91d3eaa 1266 #define ADC_TR3_HT3_6 ((uint32_t)0x00400000) /*!< ADC HT3 bit 6 */
Kojto 93:e188a91d3eaa 1267 #define ADC_TR3_HT3_7 ((uint32_t)0x00800000) /*!< ADC HT3 bit 7 */
Kojto 93:e188a91d3eaa 1268
Kojto 93:e188a91d3eaa 1269 /******************** Bit definition for ADC_SQR1 register ********************/
Kojto 93:e188a91d3eaa 1270 #define ADC_SQR1_L ((uint32_t)0x0000000F) /*!< ADC regular channel sequence lenght */
Kojto 93:e188a91d3eaa 1271 #define ADC_SQR1_L_0 ((uint32_t)0x00000001) /*!< ADC L bit 0 */
Kojto 93:e188a91d3eaa 1272 #define ADC_SQR1_L_1 ((uint32_t)0x00000002) /*!< ADC L bit 1 */
Kojto 93:e188a91d3eaa 1273 #define ADC_SQR1_L_2 ((uint32_t)0x00000004) /*!< ADC L bit 2 */
Kojto 93:e188a91d3eaa 1274 #define ADC_SQR1_L_3 ((uint32_t)0x00000008) /*!< ADC L bit 3 */
Kojto 93:e188a91d3eaa 1275
Kojto 93:e188a91d3eaa 1276 #define ADC_SQR1_SQ1 ((uint32_t)0x000007C0) /*!< ADC 1st conversion in regular sequence */
Kojto 93:e188a91d3eaa 1277 #define ADC_SQR1_SQ1_0 ((uint32_t)0x00000040) /*!< ADC SQ1 bit 0 */
Kojto 93:e188a91d3eaa 1278 #define ADC_SQR1_SQ1_1 ((uint32_t)0x00000080) /*!< ADC SQ1 bit 1 */
Kojto 93:e188a91d3eaa 1279 #define ADC_SQR1_SQ1_2 ((uint32_t)0x00000100) /*!< ADC SQ1 bit 2 */
Kojto 93:e188a91d3eaa 1280 #define ADC_SQR1_SQ1_3 ((uint32_t)0x00000200) /*!< ADC SQ1 bit 3 */
Kojto 93:e188a91d3eaa 1281 #define ADC_SQR1_SQ1_4 ((uint32_t)0x00000400) /*!< ADC SQ1 bit 4 */
Kojto 93:e188a91d3eaa 1282
Kojto 93:e188a91d3eaa 1283 #define ADC_SQR1_SQ2 ((uint32_t)0x0001F000) /*!< ADC 2nd conversion in regular sequence */
Kojto 93:e188a91d3eaa 1284 #define ADC_SQR1_SQ2_0 ((uint32_t)0x00001000) /*!< ADC SQ2 bit 0 */
Kojto 93:e188a91d3eaa 1285 #define ADC_SQR1_SQ2_1 ((uint32_t)0x00002000) /*!< ADC SQ2 bit 1 */
Kojto 93:e188a91d3eaa 1286 #define ADC_SQR1_SQ2_2 ((uint32_t)0x00004000) /*!< ADC SQ2 bit 2 */
Kojto 93:e188a91d3eaa 1287 #define ADC_SQR1_SQ2_3 ((uint32_t)0x00008000) /*!< ADC SQ2 bit 3 */
Kojto 93:e188a91d3eaa 1288 #define ADC_SQR1_SQ2_4 ((uint32_t)0x00010000) /*!< ADC SQ2 bit 4 */
Kojto 93:e188a91d3eaa 1289
Kojto 93:e188a91d3eaa 1290 #define ADC_SQR1_SQ3 ((uint32_t)0x007C0000) /*!< ADC 3rd conversion in regular sequence */
Kojto 93:e188a91d3eaa 1291 #define ADC_SQR1_SQ3_0 ((uint32_t)0x00040000) /*!< ADC SQ3 bit 0 */
Kojto 93:e188a91d3eaa 1292 #define ADC_SQR1_SQ3_1 ((uint32_t)0x00080000) /*!< ADC SQ3 bit 1 */
Kojto 93:e188a91d3eaa 1293 #define ADC_SQR1_SQ3_2 ((uint32_t)0x00100000) /*!< ADC SQ3 bit 2 */
Kojto 93:e188a91d3eaa 1294 #define ADC_SQR1_SQ3_3 ((uint32_t)0x00200000) /*!< ADC SQ3 bit 3 */
Kojto 93:e188a91d3eaa 1295 #define ADC_SQR1_SQ3_4 ((uint32_t)0x00400000) /*!< ADC SQ3 bit 4 */
Kojto 93:e188a91d3eaa 1296
Kojto 93:e188a91d3eaa 1297 #define ADC_SQR1_SQ4 ((uint32_t)0x1F000000) /*!< ADC 4th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1298 #define ADC_SQR1_SQ4_0 ((uint32_t)0x01000000) /*!< ADC SQ4 bit 0 */
Kojto 93:e188a91d3eaa 1299 #define ADC_SQR1_SQ4_1 ((uint32_t)0x02000000) /*!< ADC SQ4 bit 1 */
Kojto 93:e188a91d3eaa 1300 #define ADC_SQR1_SQ4_2 ((uint32_t)0x04000000) /*!< ADC SQ4 bit 2 */
Kojto 93:e188a91d3eaa 1301 #define ADC_SQR1_SQ4_3 ((uint32_t)0x08000000) /*!< ADC SQ4 bit 3 */
Kojto 93:e188a91d3eaa 1302 #define ADC_SQR1_SQ4_4 ((uint32_t)0x10000000) /*!< ADC SQ4 bit 4 */
Kojto 93:e188a91d3eaa 1303
Kojto 93:e188a91d3eaa 1304 /******************** Bit definition for ADC_SQR2 register ********************/
Kojto 93:e188a91d3eaa 1305 #define ADC_SQR2_SQ5 ((uint32_t)0x0000001F) /*!< ADC 5th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1306 #define ADC_SQR2_SQ5_0 ((uint32_t)0x00000001) /*!< ADC SQ5 bit 0 */
Kojto 93:e188a91d3eaa 1307 #define ADC_SQR2_SQ5_1 ((uint32_t)0x00000002) /*!< ADC SQ5 bit 1 */
Kojto 93:e188a91d3eaa 1308 #define ADC_SQR2_SQ5_2 ((uint32_t)0x00000004) /*!< ADC SQ5 bit 2 */
Kojto 93:e188a91d3eaa 1309 #define ADC_SQR2_SQ5_3 ((uint32_t)0x00000008) /*!< ADC SQ5 bit 3 */
Kojto 93:e188a91d3eaa 1310 #define ADC_SQR2_SQ5_4 ((uint32_t)0x00000010) /*!< ADC SQ5 bit 4 */
Kojto 93:e188a91d3eaa 1311
Kojto 93:e188a91d3eaa 1312 #define ADC_SQR2_SQ6 ((uint32_t)0x000007C0) /*!< ADC 6th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1313 #define ADC_SQR2_SQ6_0 ((uint32_t)0x00000040) /*!< ADC SQ6 bit 0 */
Kojto 93:e188a91d3eaa 1314 #define ADC_SQR2_SQ6_1 ((uint32_t)0x00000080) /*!< ADC SQ6 bit 1 */
Kojto 93:e188a91d3eaa 1315 #define ADC_SQR2_SQ6_2 ((uint32_t)0x00000100) /*!< ADC SQ6 bit 2 */
Kojto 93:e188a91d3eaa 1316 #define ADC_SQR2_SQ6_3 ((uint32_t)0x00000200) /*!< ADC SQ6 bit 3 */
Kojto 93:e188a91d3eaa 1317 #define ADC_SQR2_SQ6_4 ((uint32_t)0x00000400) /*!< ADC SQ6 bit 4 */
Kojto 93:e188a91d3eaa 1318
Kojto 93:e188a91d3eaa 1319 #define ADC_SQR2_SQ7 ((uint32_t)0x0001F000) /*!< ADC 7th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1320 #define ADC_SQR2_SQ7_0 ((uint32_t)0x00001000) /*!< ADC SQ7 bit 0 */
Kojto 93:e188a91d3eaa 1321 #define ADC_SQR2_SQ7_1 ((uint32_t)0x00002000) /*!< ADC SQ7 bit 1 */
Kojto 93:e188a91d3eaa 1322 #define ADC_SQR2_SQ7_2 ((uint32_t)0x00004000) /*!< ADC SQ7 bit 2 */
Kojto 93:e188a91d3eaa 1323 #define ADC_SQR2_SQ7_3 ((uint32_t)0x00008000) /*!< ADC SQ7 bit 3 */
Kojto 93:e188a91d3eaa 1324 #define ADC_SQR2_SQ7_4 ((uint32_t)0x00010000) /*!< ADC SQ7 bit 4 */
Kojto 93:e188a91d3eaa 1325
Kojto 93:e188a91d3eaa 1326 #define ADC_SQR2_SQ8 ((uint32_t)0x007C0000) /*!< ADC 8th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1327 #define ADC_SQR2_SQ8_0 ((uint32_t)0x00040000) /*!< ADC SQ8 bit 0 */
Kojto 93:e188a91d3eaa 1328 #define ADC_SQR2_SQ8_1 ((uint32_t)0x00080000) /*!< ADC SQ8 bit 1 */
Kojto 93:e188a91d3eaa 1329 #define ADC_SQR2_SQ8_2 ((uint32_t)0x00100000) /*!< ADC SQ8 bit 2 */
Kojto 93:e188a91d3eaa 1330 #define ADC_SQR2_SQ8_3 ((uint32_t)0x00200000) /*!< ADC SQ8 bit 3 */
Kojto 93:e188a91d3eaa 1331 #define ADC_SQR2_SQ8_4 ((uint32_t)0x00400000) /*!< ADC SQ8 bit 4 */
Kojto 93:e188a91d3eaa 1332
Kojto 93:e188a91d3eaa 1333 #define ADC_SQR2_SQ9 ((uint32_t)0x1F000000) /*!< ADC 9th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1334 #define ADC_SQR2_SQ9_0 ((uint32_t)0x01000000) /*!< ADC SQ9 bit 0 */
Kojto 93:e188a91d3eaa 1335 #define ADC_SQR2_SQ9_1 ((uint32_t)0x02000000) /*!< ADC SQ9 bit 1 */
Kojto 93:e188a91d3eaa 1336 #define ADC_SQR2_SQ9_2 ((uint32_t)0x04000000) /*!< ADC SQ9 bit 2 */
Kojto 93:e188a91d3eaa 1337 #define ADC_SQR2_SQ9_3 ((uint32_t)0x08000000) /*!< ADC SQ9 bit 3 */
Kojto 93:e188a91d3eaa 1338 #define ADC_SQR2_SQ9_4 ((uint32_t)0x10000000) /*!< ADC SQ9 bit 4 */
Kojto 93:e188a91d3eaa 1339
Kojto 93:e188a91d3eaa 1340 /******************** Bit definition for ADC_SQR3 register ********************/
Kojto 93:e188a91d3eaa 1341 #define ADC_SQR3_SQ10 ((uint32_t)0x0000001F) /*!< ADC 10th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1342 #define ADC_SQR3_SQ10_0 ((uint32_t)0x00000001) /*!< ADC SQ10 bit 0 */
Kojto 93:e188a91d3eaa 1343 #define ADC_SQR3_SQ10_1 ((uint32_t)0x00000002) /*!< ADC SQ10 bit 1 */
Kojto 93:e188a91d3eaa 1344 #define ADC_SQR3_SQ10_2 ((uint32_t)0x00000004) /*!< ADC SQ10 bit 2 */
Kojto 93:e188a91d3eaa 1345 #define ADC_SQR3_SQ10_3 ((uint32_t)0x00000008) /*!< ADC SQ10 bit 3 */
Kojto 93:e188a91d3eaa 1346 #define ADC_SQR3_SQ10_4 ((uint32_t)0x00000010) /*!< ADC SQ10 bit 4 */
Kojto 93:e188a91d3eaa 1347
Kojto 93:e188a91d3eaa 1348 #define ADC_SQR3_SQ11 ((uint32_t)0x000007C0) /*!< ADC 11th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1349 #define ADC_SQR3_SQ11_0 ((uint32_t)0x00000040) /*!< ADC SQ11 bit 0 */
Kojto 93:e188a91d3eaa 1350 #define ADC_SQR3_SQ11_1 ((uint32_t)0x00000080) /*!< ADC SQ11 bit 1 */
Kojto 93:e188a91d3eaa 1351 #define ADC_SQR3_SQ11_2 ((uint32_t)0x00000100) /*!< ADC SQ11 bit 2 */
Kojto 93:e188a91d3eaa 1352 #define ADC_SQR3_SQ11_3 ((uint32_t)0x00000200) /*!< ADC SQ11 bit 3 */
Kojto 93:e188a91d3eaa 1353 #define ADC_SQR3_SQ11_4 ((uint32_t)0x00000400) /*!< ADC SQ11 bit 4 */
Kojto 93:e188a91d3eaa 1354
Kojto 93:e188a91d3eaa 1355 #define ADC_SQR3_SQ12 ((uint32_t)0x0001F000) /*!< ADC 12th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1356 #define ADC_SQR3_SQ12_0 ((uint32_t)0x00001000) /*!< ADC SQ12 bit 0 */
Kojto 93:e188a91d3eaa 1357 #define ADC_SQR3_SQ12_1 ((uint32_t)0x00002000) /*!< ADC SQ12 bit 1 */
Kojto 93:e188a91d3eaa 1358 #define ADC_SQR3_SQ12_2 ((uint32_t)0x00004000) /*!< ADC SQ12 bit 2 */
Kojto 93:e188a91d3eaa 1359 #define ADC_SQR3_SQ12_3 ((uint32_t)0x00008000) /*!< ADC SQ12 bit 3 */
Kojto 93:e188a91d3eaa 1360 #define ADC_SQR3_SQ12_4 ((uint32_t)0x00010000) /*!< ADC SQ12 bit 4 */
Kojto 93:e188a91d3eaa 1361
Kojto 93:e188a91d3eaa 1362 #define ADC_SQR3_SQ13 ((uint32_t)0x007C0000) /*!< ADC 13th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1363 #define ADC_SQR3_SQ13_0 ((uint32_t)0x00040000) /*!< ADC SQ13 bit 0 */
Kojto 93:e188a91d3eaa 1364 #define ADC_SQR3_SQ13_1 ((uint32_t)0x00080000) /*!< ADC SQ13 bit 1 */
Kojto 93:e188a91d3eaa 1365 #define ADC_SQR3_SQ13_2 ((uint32_t)0x00100000) /*!< ADC SQ13 bit 2 */
Kojto 93:e188a91d3eaa 1366 #define ADC_SQR3_SQ13_3 ((uint32_t)0x00200000) /*!< ADC SQ13 bit 3 */
Kojto 93:e188a91d3eaa 1367 #define ADC_SQR3_SQ13_4 ((uint32_t)0x00400000) /*!< ADC SQ13 bit 4 */
Kojto 93:e188a91d3eaa 1368
Kojto 93:e188a91d3eaa 1369 #define ADC_SQR3_SQ14 ((uint32_t)0x1F000000) /*!< ADC 14th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1370 #define ADC_SQR3_SQ14_0 ((uint32_t)0x01000000) /*!< ADC SQ14 bit 0 */
Kojto 93:e188a91d3eaa 1371 #define ADC_SQR3_SQ14_1 ((uint32_t)0x02000000) /*!< ADC SQ14 bit 1 */
Kojto 93:e188a91d3eaa 1372 #define ADC_SQR3_SQ14_2 ((uint32_t)0x04000000) /*!< ADC SQ14 bit 2 */
Kojto 93:e188a91d3eaa 1373 #define ADC_SQR3_SQ14_3 ((uint32_t)0x08000000) /*!< ADC SQ14 bit 3 */
Kojto 93:e188a91d3eaa 1374 #define ADC_SQR3_SQ14_4 ((uint32_t)0x10000000) /*!< ADC SQ14 bit 4 */
Kojto 93:e188a91d3eaa 1375
Kojto 93:e188a91d3eaa 1376 /******************** Bit definition for ADC_SQR4 register ********************/
Kojto 93:e188a91d3eaa 1377 #define ADC_SQR4_SQ15 ((uint32_t)0x0000001F) /*!< ADC 15th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1378 #define ADC_SQR4_SQ15_0 ((uint32_t)0x00000001) /*!< ADC SQ15 bit 0 */
Kojto 93:e188a91d3eaa 1379 #define ADC_SQR4_SQ15_1 ((uint32_t)0x00000002) /*!< ADC SQ15 bit 1 */
Kojto 93:e188a91d3eaa 1380 #define ADC_SQR4_SQ15_2 ((uint32_t)0x00000004) /*!< ADC SQ15 bit 2 */
Kojto 93:e188a91d3eaa 1381 #define ADC_SQR4_SQ15_3 ((uint32_t)0x00000008) /*!< ADC SQ15 bit 3 */
Kojto 93:e188a91d3eaa 1382 #define ADC_SQR4_SQ15_4 ((uint32_t)0x00000010) /*!< ADC SQ105 bit 4 */
Kojto 93:e188a91d3eaa 1383
Kojto 93:e188a91d3eaa 1384 #define ADC_SQR4_SQ16 ((uint32_t)0x000007C0) /*!< ADC 16th conversion in regular sequence */
Kojto 93:e188a91d3eaa 1385 #define ADC_SQR4_SQ16_0 ((uint32_t)0x00000040) /*!< ADC SQ16 bit 0 */
Kojto 93:e188a91d3eaa 1386 #define ADC_SQR4_SQ16_1 ((uint32_t)0x00000080) /*!< ADC SQ16 bit 1 */
Kojto 93:e188a91d3eaa 1387 #define ADC_SQR4_SQ16_2 ((uint32_t)0x00000100) /*!< ADC SQ16 bit 2 */
Kojto 93:e188a91d3eaa 1388 #define ADC_SQR4_SQ16_3 ((uint32_t)0x00000200) /*!< ADC SQ16 bit 3 */
Kojto 93:e188a91d3eaa 1389 #define ADC_SQR4_SQ16_4 ((uint32_t)0x00000400) /*!< ADC SQ16 bit 4 */
Kojto 93:e188a91d3eaa 1390 /******************** Bit definition for ADC_DR register ********************/
Kojto 93:e188a91d3eaa 1391 #define ADC_DR_RDATA ((uint32_t)0x0000FFFF) /*!< ADC regular Data converted */
Kojto 93:e188a91d3eaa 1392 #define ADC_DR_RDATA_0 ((uint32_t)0x00000001) /*!< ADC RDATA bit 0 */
Kojto 93:e188a91d3eaa 1393 #define ADC_DR_RDATA_1 ((uint32_t)0x00000002) /*!< ADC RDATA bit 1 */
Kojto 93:e188a91d3eaa 1394 #define ADC_DR_RDATA_2 ((uint32_t)0x00000004) /*!< ADC RDATA bit 2 */
Kojto 93:e188a91d3eaa 1395 #define ADC_DR_RDATA_3 ((uint32_t)0x00000008) /*!< ADC RDATA bit 3 */
Kojto 93:e188a91d3eaa 1396 #define ADC_DR_RDATA_4 ((uint32_t)0x00000010) /*!< ADC RDATA bit 4 */
Kojto 93:e188a91d3eaa 1397 #define ADC_DR_RDATA_5 ((uint32_t)0x00000020) /*!< ADC RDATA bit 5 */
Kojto 93:e188a91d3eaa 1398 #define ADC_DR_RDATA_6 ((uint32_t)0x00000040) /*!< ADC RDATA bit 6 */
Kojto 93:e188a91d3eaa 1399 #define ADC_DR_RDATA_7 ((uint32_t)0x00000080) /*!< ADC RDATA bit 7 */
Kojto 93:e188a91d3eaa 1400 #define ADC_DR_RDATA_8 ((uint32_t)0x00000100) /*!< ADC RDATA bit 8 */
Kojto 93:e188a91d3eaa 1401 #define ADC_DR_RDATA_9 ((uint32_t)0x00000200) /*!< ADC RDATA bit 9 */
Kojto 93:e188a91d3eaa 1402 #define ADC_DR_RDATA_10 ((uint32_t)0x00000400) /*!< ADC RDATA bit 10 */
Kojto 93:e188a91d3eaa 1403 #define ADC_DR_RDATA_11 ((uint32_t)0x00000800) /*!< ADC RDATA bit 11 */
Kojto 93:e188a91d3eaa 1404 #define ADC_DR_RDATA_12 ((uint32_t)0x00001000) /*!< ADC RDATA bit 12 */
Kojto 93:e188a91d3eaa 1405 #define ADC_DR_RDATA_13 ((uint32_t)0x00002000) /*!< ADC RDATA bit 13 */
Kojto 93:e188a91d3eaa 1406 #define ADC_DR_RDATA_14 ((uint32_t)0x00004000) /*!< ADC RDATA bit 14 */
Kojto 93:e188a91d3eaa 1407 #define ADC_DR_RDATA_15 ((uint32_t)0x00008000) /*!< ADC RDATA bit 15 */
Kojto 93:e188a91d3eaa 1408
Kojto 93:e188a91d3eaa 1409 /******************** Bit definition for ADC_JSQR register ********************/
Kojto 93:e188a91d3eaa 1410 #define ADC_JSQR_JL ((uint32_t)0x00000003) /*!< ADC injected channel sequence length */
Kojto 93:e188a91d3eaa 1411 #define ADC_JSQR_JL_0 ((uint32_t)0x00000001) /*!< ADC JL bit 0 */
Kojto 93:e188a91d3eaa 1412 #define ADC_JSQR_JL_1 ((uint32_t)0x00000002) /*!< ADC JL bit 1 */
Kojto 93:e188a91d3eaa 1413
Kojto 93:e188a91d3eaa 1414 #define ADC_JSQR_JEXTSEL ((uint32_t)0x0000003C) /*!< ADC external trigger selection for injected group */
Kojto 93:e188a91d3eaa 1415 #define ADC_JSQR_JEXTSEL_0 ((uint32_t)0x00000004) /*!< ADC JEXTSEL bit 0 */
Kojto 93:e188a91d3eaa 1416 #define ADC_JSQR_JEXTSEL_1 ((uint32_t)0x00000008) /*!< ADC JEXTSEL bit 1 */
Kojto 93:e188a91d3eaa 1417 #define ADC_JSQR_JEXTSEL_2 ((uint32_t)0x00000010) /*!< ADC JEXTSEL bit 2 */
Kojto 93:e188a91d3eaa 1418 #define ADC_JSQR_JEXTSEL_3 ((uint32_t)0x00000020) /*!< ADC JEXTSEL bit 3 */
Kojto 93:e188a91d3eaa 1419
Kojto 93:e188a91d3eaa 1420 #define ADC_JSQR_JEXTEN ((uint32_t)0x000000C0) /*!< ADC external trigger enable and polarity selection for injected channels */
Kojto 93:e188a91d3eaa 1421 #define ADC_JSQR_JEXTEN_0 ((uint32_t)0x00000040) /*!< ADC JEXTEN bit 0 */
Kojto 93:e188a91d3eaa 1422 #define ADC_JSQR_JEXTEN_1 ((uint32_t)0x00000080) /*!< ADC JEXTEN bit 1 */
Kojto 93:e188a91d3eaa 1423
Kojto 93:e188a91d3eaa 1424 #define ADC_JSQR_JSQ1 ((uint32_t)0x00001F00) /*!< ADC 1st conversion in injected sequence */
Kojto 93:e188a91d3eaa 1425 #define ADC_JSQR_JSQ1_0 ((uint32_t)0x00000100) /*!< ADC JSQ1 bit 0 */
Kojto 93:e188a91d3eaa 1426 #define ADC_JSQR_JSQ1_1 ((uint32_t)0x00000200) /*!< ADC JSQ1 bit 1 */
Kojto 93:e188a91d3eaa 1427 #define ADC_JSQR_JSQ1_2 ((uint32_t)0x00000400) /*!< ADC JSQ1 bit 2 */
Kojto 93:e188a91d3eaa 1428 #define ADC_JSQR_JSQ1_3 ((uint32_t)0x00000800) /*!< ADC JSQ1 bit 3 */
Kojto 93:e188a91d3eaa 1429 #define ADC_JSQR_JSQ1_4 ((uint32_t)0x00001000) /*!< ADC JSQ1 bit 4 */
Kojto 93:e188a91d3eaa 1430
Kojto 93:e188a91d3eaa 1431 #define ADC_JSQR_JSQ2 ((uint32_t)0x0007C000) /*!< ADC 2nd conversion in injected sequence */
Kojto 93:e188a91d3eaa 1432 #define ADC_JSQR_JSQ2_0 ((uint32_t)0x00004000) /*!< ADC JSQ2 bit 0 */
Kojto 93:e188a91d3eaa 1433 #define ADC_JSQR_JSQ2_1 ((uint32_t)0x00008000) /*!< ADC JSQ2 bit 1 */
Kojto 93:e188a91d3eaa 1434 #define ADC_JSQR_JSQ2_2 ((uint32_t)0x00010000) /*!< ADC JSQ2 bit 2 */
Kojto 93:e188a91d3eaa 1435 #define ADC_JSQR_JSQ2_3 ((uint32_t)0x00020000) /*!< ADC JSQ2 bit 3 */
Kojto 93:e188a91d3eaa 1436 #define ADC_JSQR_JSQ2_4 ((uint32_t)0x00040000) /*!< ADC JSQ2 bit 4 */
Kojto 93:e188a91d3eaa 1437
Kojto 93:e188a91d3eaa 1438 #define ADC_JSQR_JSQ3 ((uint32_t)0x01F00000) /*!< ADC 3rd conversion in injected sequence */
Kojto 93:e188a91d3eaa 1439 #define ADC_JSQR_JSQ3_0 ((uint32_t)0x00100000) /*!< ADC JSQ3 bit 0 */
Kojto 93:e188a91d3eaa 1440 #define ADC_JSQR_JSQ3_1 ((uint32_t)0x00200000) /*!< ADC JSQ3 bit 1 */
Kojto 93:e188a91d3eaa 1441 #define ADC_JSQR_JSQ3_2 ((uint32_t)0x00400000) /*!< ADC JSQ3 bit 2 */
Kojto 93:e188a91d3eaa 1442 #define ADC_JSQR_JSQ3_3 ((uint32_t)0x00800000) /*!< ADC JSQ3 bit 3 */
Kojto 93:e188a91d3eaa 1443 #define ADC_JSQR_JSQ3_4 ((uint32_t)0x01000000) /*!< ADC JSQ3 bit 4 */
Kojto 93:e188a91d3eaa 1444
Kojto 93:e188a91d3eaa 1445 #define ADC_JSQR_JSQ4 ((uint32_t)0x7C000000) /*!< ADC 4th conversion in injected sequence */
Kojto 93:e188a91d3eaa 1446 #define ADC_JSQR_JSQ4_0 ((uint32_t)0x04000000) /*!< ADC JSQ4 bit 0 */
Kojto 93:e188a91d3eaa 1447 #define ADC_JSQR_JSQ4_1 ((uint32_t)0x08000000) /*!< ADC JSQ4 bit 1 */
Kojto 93:e188a91d3eaa 1448 #define ADC_JSQR_JSQ4_2 ((uint32_t)0x10000000) /*!< ADC JSQ4 bit 2 */
Kojto 93:e188a91d3eaa 1449 #define ADC_JSQR_JSQ4_3 ((uint32_t)0x20000000) /*!< ADC JSQ4 bit 3 */
Kojto 93:e188a91d3eaa 1450 #define ADC_JSQR_JSQ4_4 ((uint32_t)0x40000000) /*!< ADC JSQ4 bit 4 */
Kojto 93:e188a91d3eaa 1451
Kojto 93:e188a91d3eaa 1452 /******************** Bit definition for ADC_OFR1 register ********************/
Kojto 93:e188a91d3eaa 1453 #define ADC_OFR1_OFFSET1 ((uint32_t)0x00000FFF) /*!< ADC data offset 1 for channel programmed into bits OFFSET1_CH[4:0] */
Kojto 93:e188a91d3eaa 1454 #define ADC_OFR1_OFFSET1_0 ((uint32_t)0x00000001) /*!< ADC OFFSET1 bit 0 */
Kojto 93:e188a91d3eaa 1455 #define ADC_OFR1_OFFSET1_1 ((uint32_t)0x00000002) /*!< ADC OFFSET1 bit 1 */
Kojto 93:e188a91d3eaa 1456 #define ADC_OFR1_OFFSET1_2 ((uint32_t)0x00000004) /*!< ADC OFFSET1 bit 2 */
Kojto 93:e188a91d3eaa 1457 #define ADC_OFR1_OFFSET1_3 ((uint32_t)0x00000008) /*!< ADC OFFSET1 bit 3 */
Kojto 93:e188a91d3eaa 1458 #define ADC_OFR1_OFFSET1_4 ((uint32_t)0x00000010) /*!< ADC OFFSET1 bit 4 */
Kojto 93:e188a91d3eaa 1459 #define ADC_OFR1_OFFSET1_5 ((uint32_t)0x00000020) /*!< ADC OFFSET1 bit 5 */
Kojto 93:e188a91d3eaa 1460 #define ADC_OFR1_OFFSET1_6 ((uint32_t)0x00000040) /*!< ADC OFFSET1 bit 6 */
Kojto 93:e188a91d3eaa 1461 #define ADC_OFR1_OFFSET1_7 ((uint32_t)0x00000080) /*!< ADC OFFSET1 bit 7 */
Kojto 93:e188a91d3eaa 1462 #define ADC_OFR1_OFFSET1_8 ((uint32_t)0x00000100) /*!< ADC OFFSET1 bit 8 */
Kojto 93:e188a91d3eaa 1463 #define ADC_OFR1_OFFSET1_9 ((uint32_t)0x00000200) /*!< ADC OFFSET1 bit 9 */
Kojto 93:e188a91d3eaa 1464 #define ADC_OFR1_OFFSET1_10 ((uint32_t)0x00000400) /*!< ADC OFFSET1 bit 10 */
Kojto 93:e188a91d3eaa 1465 #define ADC_OFR1_OFFSET1_11 ((uint32_t)0x00000800) /*!< ADC OFFSET1 bit 11 */
Kojto 93:e188a91d3eaa 1466
Kojto 93:e188a91d3eaa 1467 #define ADC_OFR1_OFFSET1_CH ((uint32_t)0x7C000000) /*!< ADC Channel selection for the data offset 1 */
Kojto 93:e188a91d3eaa 1468 #define ADC_OFR1_OFFSET1_CH_0 ((uint32_t)0x04000000) /*!< ADC OFFSET1_CH bit 0 */
Kojto 93:e188a91d3eaa 1469 #define ADC_OFR1_OFFSET1_CH_1 ((uint32_t)0x08000000) /*!< ADC OFFSET1_CH bit 1 */
Kojto 93:e188a91d3eaa 1470 #define ADC_OFR1_OFFSET1_CH_2 ((uint32_t)0x10000000) /*!< ADC OFFSET1_CH bit 2 */
Kojto 93:e188a91d3eaa 1471 #define ADC_OFR1_OFFSET1_CH_3 ((uint32_t)0x20000000) /*!< ADC OFFSET1_CH bit 3 */
Kojto 93:e188a91d3eaa 1472 #define ADC_OFR1_OFFSET1_CH_4 ((uint32_t)0x40000000) /*!< ADC OFFSET1_CH bit 4 */
Kojto 93:e188a91d3eaa 1473
Kojto 93:e188a91d3eaa 1474 #define ADC_OFR1_OFFSET1_EN ((uint32_t)0x80000000) /*!< ADC offset 1 enable */
Kojto 93:e188a91d3eaa 1475
Kojto 93:e188a91d3eaa 1476 /******************** Bit definition for ADC_OFR2 register ********************/
Kojto 93:e188a91d3eaa 1477 #define ADC_OFR2_OFFSET2 ((uint32_t)0x00000FFF) /*!< ADC data offset 2 for channel programmed into bits OFFSET2_CH[4:0] */
Kojto 93:e188a91d3eaa 1478 #define ADC_OFR2_OFFSET2_0 ((uint32_t)0x00000001) /*!< ADC OFFSET2 bit 0 */
Kojto 93:e188a91d3eaa 1479 #define ADC_OFR2_OFFSET2_1 ((uint32_t)0x00000002) /*!< ADC OFFSET2 bit 1 */
Kojto 93:e188a91d3eaa 1480 #define ADC_OFR2_OFFSET2_2 ((uint32_t)0x00000004) /*!< ADC OFFSET2 bit 2 */
Kojto 93:e188a91d3eaa 1481 #define ADC_OFR2_OFFSET2_3 ((uint32_t)0x00000008) /*!< ADC OFFSET2 bit 3 */
Kojto 93:e188a91d3eaa 1482 #define ADC_OFR2_OFFSET2_4 ((uint32_t)0x00000010) /*!< ADC OFFSET2 bit 4 */
Kojto 93:e188a91d3eaa 1483 #define ADC_OFR2_OFFSET2_5 ((uint32_t)0x00000020) /*!< ADC OFFSET2 bit 5 */
Kojto 93:e188a91d3eaa 1484 #define ADC_OFR2_OFFSET2_6 ((uint32_t)0x00000040) /*!< ADC OFFSET2 bit 6 */
Kojto 93:e188a91d3eaa 1485 #define ADC_OFR2_OFFSET2_7 ((uint32_t)0x00000080) /*!< ADC OFFSET2 bit 7 */
Kojto 93:e188a91d3eaa 1486 #define ADC_OFR2_OFFSET2_8 ((uint32_t)0x00000100) /*!< ADC OFFSET2 bit 8 */
Kojto 93:e188a91d3eaa 1487 #define ADC_OFR2_OFFSET2_9 ((uint32_t)0x00000200) /*!< ADC OFFSET2 bit 9 */
Kojto 93:e188a91d3eaa 1488 #define ADC_OFR2_OFFSET2_10 ((uint32_t)0x00000400) /*!< ADC OFFSET2 bit 10 */
Kojto 93:e188a91d3eaa 1489 #define ADC_OFR2_OFFSET2_11 ((uint32_t)0x00000800) /*!< ADC OFFSET2 bit 11 */
Kojto 93:e188a91d3eaa 1490
Kojto 93:e188a91d3eaa 1491 #define ADC_OFR2_OFFSET2_CH ((uint32_t)0x7C000000) /*!< ADC Channel selection for the data offset 2 */
Kojto 93:e188a91d3eaa 1492 #define ADC_OFR2_OFFSET2_CH_0 ((uint32_t)0x04000000) /*!< ADC OFFSET2_CH bit 0 */
Kojto 93:e188a91d3eaa 1493 #define ADC_OFR2_OFFSET2_CH_1 ((uint32_t)0x08000000) /*!< ADC OFFSET2_CH bit 1 */
Kojto 93:e188a91d3eaa 1494 #define ADC_OFR2_OFFSET2_CH_2 ((uint32_t)0x10000000) /*!< ADC OFFSET2_CH bit 2 */
Kojto 93:e188a91d3eaa 1495 #define ADC_OFR2_OFFSET2_CH_3 ((uint32_t)0x20000000) /*!< ADC OFFSET2_CH bit 3 */
Kojto 93:e188a91d3eaa 1496 #define ADC_OFR2_OFFSET2_CH_4 ((uint32_t)0x40000000) /*!< ADC OFFSET2_CH bit 4 */
Kojto 93:e188a91d3eaa 1497
Kojto 93:e188a91d3eaa 1498 #define ADC_OFR2_OFFSET2_EN ((uint32_t)0x80000000) /*!< ADC offset 2 enable */
Kojto 93:e188a91d3eaa 1499
Kojto 93:e188a91d3eaa 1500 /******************** Bit definition for ADC_OFR3 register ********************/
Kojto 93:e188a91d3eaa 1501 #define ADC_OFR3_OFFSET3 ((uint32_t)0x00000FFF) /*!< ADC data offset 3 for channel programmed into bits OFFSET3_CH[4:0] */
Kojto 93:e188a91d3eaa 1502 #define ADC_OFR3_OFFSET3_0 ((uint32_t)0x00000001) /*!< ADC OFFSET3 bit 0 */
Kojto 93:e188a91d3eaa 1503 #define ADC_OFR3_OFFSET3_1 ((uint32_t)0x00000002) /*!< ADC OFFSET3 bit 1 */
Kojto 93:e188a91d3eaa 1504 #define ADC_OFR3_OFFSET3_2 ((uint32_t)0x00000004) /*!< ADC OFFSET3 bit 2 */
Kojto 93:e188a91d3eaa 1505 #define ADC_OFR3_OFFSET3_3 ((uint32_t)0x00000008) /*!< ADC OFFSET3 bit 3 */
Kojto 93:e188a91d3eaa 1506 #define ADC_OFR3_OFFSET3_4 ((uint32_t)0x00000010) /*!< ADC OFFSET3 bit 4 */
Kojto 93:e188a91d3eaa 1507 #define ADC_OFR3_OFFSET3_5 ((uint32_t)0x00000020) /*!< ADC OFFSET3 bit 5 */
Kojto 93:e188a91d3eaa 1508 #define ADC_OFR3_OFFSET3_6 ((uint32_t)0x00000040) /*!< ADC OFFSET3 bit 6 */
Kojto 93:e188a91d3eaa 1509 #define ADC_OFR3_OFFSET3_7 ((uint32_t)0x00000080) /*!< ADC OFFSET3 bit 7 */
Kojto 93:e188a91d3eaa 1510 #define ADC_OFR3_OFFSET3_8 ((uint32_t)0x00000100) /*!< ADC OFFSET3 bit 8 */
Kojto 93:e188a91d3eaa 1511 #define ADC_OFR3_OFFSET3_9 ((uint32_t)0x00000200) /*!< ADC OFFSET3 bit 9 */
Kojto 93:e188a91d3eaa 1512 #define ADC_OFR3_OFFSET3_10 ((uint32_t)0x00000400) /*!< ADC OFFSET3 bit 10 */
Kojto 93:e188a91d3eaa 1513 #define ADC_OFR3_OFFSET3_11 ((uint32_t)0x00000800) /*!< ADC OFFSET3 bit 11 */
Kojto 93:e188a91d3eaa 1514
Kojto 93:e188a91d3eaa 1515 #define ADC_OFR3_OFFSET3_CH ((uint32_t)0x7C000000) /*!< ADC Channel selection for the data offset 3 */
Kojto 93:e188a91d3eaa 1516 #define ADC_OFR3_OFFSET3_CH_0 ((uint32_t)0x04000000) /*!< ADC OFFSET3_CH bit 0 */
Kojto 93:e188a91d3eaa 1517 #define ADC_OFR3_OFFSET3_CH_1 ((uint32_t)0x08000000) /*!< ADC OFFSET3_CH bit 1 */
Kojto 93:e188a91d3eaa 1518 #define ADC_OFR3_OFFSET3_CH_2 ((uint32_t)0x10000000) /*!< ADC OFFSET3_CH bit 2 */
Kojto 93:e188a91d3eaa 1519 #define ADC_OFR3_OFFSET3_CH_3 ((uint32_t)0x20000000) /*!< ADC OFFSET3_CH bit 3 */
Kojto 93:e188a91d3eaa 1520 #define ADC_OFR3_OFFSET3_CH_4 ((uint32_t)0x40000000) /*!< ADC OFFSET3_CH bit 4 */
Kojto 93:e188a91d3eaa 1521
Kojto 93:e188a91d3eaa 1522 #define ADC_OFR3_OFFSET3_EN ((uint32_t)0x80000000) /*!< ADC offset 3 enable */
Kojto 93:e188a91d3eaa 1523
Kojto 93:e188a91d3eaa 1524 /******************** Bit definition for ADC_OFR4 register ********************/
Kojto 93:e188a91d3eaa 1525 #define ADC_OFR4_OFFSET4 ((uint32_t)0x00000FFF) /*!< ADC data offset 4 for channel programmed into bits OFFSET4_CH[4:0] */
Kojto 93:e188a91d3eaa 1526 #define ADC_OFR4_OFFSET4_0 ((uint32_t)0x00000001) /*!< ADC OFFSET4 bit 0 */
Kojto 93:e188a91d3eaa 1527 #define ADC_OFR4_OFFSET4_1 ((uint32_t)0x00000002) /*!< ADC OFFSET4 bit 1 */
Kojto 93:e188a91d3eaa 1528 #define ADC_OFR4_OFFSET4_2 ((uint32_t)0x00000004) /*!< ADC OFFSET4 bit 2 */
Kojto 93:e188a91d3eaa 1529 #define ADC_OFR4_OFFSET4_3 ((uint32_t)0x00000008) /*!< ADC OFFSET4 bit 3 */
Kojto 93:e188a91d3eaa 1530 #define ADC_OFR4_OFFSET4_4 ((uint32_t)0x00000010) /*!< ADC OFFSET4 bit 4 */
Kojto 93:e188a91d3eaa 1531 #define ADC_OFR4_OFFSET4_5 ((uint32_t)0x00000020) /*!< ADC OFFSET4 bit 5 */
Kojto 93:e188a91d3eaa 1532 #define ADC_OFR4_OFFSET4_6 ((uint32_t)0x00000040) /*!< ADC OFFSET4 bit 6 */
Kojto 93:e188a91d3eaa 1533 #define ADC_OFR4_OFFSET4_7 ((uint32_t)0x00000080) /*!< ADC OFFSET4 bit 7 */
Kojto 93:e188a91d3eaa 1534 #define ADC_OFR4_OFFSET4_8 ((uint32_t)0x00000100) /*!< ADC OFFSET4 bit 8 */
Kojto 93:e188a91d3eaa 1535 #define ADC_OFR4_OFFSET4_9 ((uint32_t)0x00000200) /*!< ADC OFFSET4 bit 9 */
Kojto 93:e188a91d3eaa 1536 #define ADC_OFR4_OFFSET4_10 ((uint32_t)0x00000400) /*!< ADC OFFSET4 bit 10 */
Kojto 93:e188a91d3eaa 1537 #define ADC_OFR4_OFFSET4_11 ((uint32_t)0x00000800) /*!< ADC OFFSET4 bit 11 */
Kojto 93:e188a91d3eaa 1538
Kojto 93:e188a91d3eaa 1539 #define ADC_OFR4_OFFSET4_CH ((uint32_t)0x7C000000) /*!< ADC Channel selection for the data offset 4 */
Kojto 93:e188a91d3eaa 1540 #define ADC_OFR4_OFFSET4_CH_0 ((uint32_t)0x04000000) /*!< ADC OFFSET4_CH bit 0 */
Kojto 93:e188a91d3eaa 1541 #define ADC_OFR4_OFFSET4_CH_1 ((uint32_t)0x08000000) /*!< ADC OFFSET4_CH bit 1 */
Kojto 93:e188a91d3eaa 1542 #define ADC_OFR4_OFFSET4_CH_2 ((uint32_t)0x10000000) /*!< ADC OFFSET4_CH bit 2 */
Kojto 93:e188a91d3eaa 1543 #define ADC_OFR4_OFFSET4_CH_3 ((uint32_t)0x20000000) /*!< ADC OFFSET4_CH bit 3 */
Kojto 93:e188a91d3eaa 1544 #define ADC_OFR4_OFFSET4_CH_4 ((uint32_t)0x40000000) /*!< ADC OFFSET4_CH bit 4 */
Kojto 93:e188a91d3eaa 1545
Kojto 93:e188a91d3eaa 1546 #define ADC_OFR4_OFFSET4_EN ((uint32_t)0x80000000) /*!< ADC offset 4 enable */
Kojto 93:e188a91d3eaa 1547
Kojto 93:e188a91d3eaa 1548 /******************** Bit definition for ADC_JDR1 register ********************/
Kojto 93:e188a91d3eaa 1549 #define ADC_JDR1_JDATA ((uint32_t)0x0000FFFF) /*!< ADC Injected DATA */
Kojto 93:e188a91d3eaa 1550 #define ADC_JDR1_JDATA_0 ((uint32_t)0x00000001) /*!< ADC JDATA bit 0 */
Kojto 93:e188a91d3eaa 1551 #define ADC_JDR1_JDATA_1 ((uint32_t)0x00000002) /*!< ADC JDATA bit 1 */
Kojto 93:e188a91d3eaa 1552 #define ADC_JDR1_JDATA_2 ((uint32_t)0x00000004) /*!< ADC JDATA bit 2 */
Kojto 93:e188a91d3eaa 1553 #define ADC_JDR1_JDATA_3 ((uint32_t)0x00000008) /*!< ADC JDATA bit 3 */
Kojto 93:e188a91d3eaa 1554 #define ADC_JDR1_JDATA_4 ((uint32_t)0x00000010) /*!< ADC JDATA bit 4 */
Kojto 93:e188a91d3eaa 1555 #define ADC_JDR1_JDATA_5 ((uint32_t)0x00000020) /*!< ADC JDATA bit 5 */
Kojto 93:e188a91d3eaa 1556 #define ADC_JDR1_JDATA_6 ((uint32_t)0x00000040) /*!< ADC JDATA bit 6 */
Kojto 93:e188a91d3eaa 1557 #define ADC_JDR1_JDATA_7 ((uint32_t)0x00000080) /*!< ADC JDATA bit 7 */
Kojto 93:e188a91d3eaa 1558 #define ADC_JDR1_JDATA_8 ((uint32_t)0x00000100) /*!< ADC JDATA bit 8 */
Kojto 93:e188a91d3eaa 1559 #define ADC_JDR1_JDATA_9 ((uint32_t)0x00000200) /*!< ADC JDATA bit 9 */
Kojto 93:e188a91d3eaa 1560 #define ADC_JDR1_JDATA_10 ((uint32_t)0x00000400) /*!< ADC JDATA bit 10 */
Kojto 93:e188a91d3eaa 1561 #define ADC_JDR1_JDATA_11 ((uint32_t)0x00000800) /*!< ADC JDATA bit 11 */
Kojto 93:e188a91d3eaa 1562 #define ADC_JDR1_JDATA_12 ((uint32_t)0x00001000) /*!< ADC JDATA bit 12 */
Kojto 93:e188a91d3eaa 1563 #define ADC_JDR1_JDATA_13 ((uint32_t)0x00002000) /*!< ADC JDATA bit 13 */
Kojto 93:e188a91d3eaa 1564 #define ADC_JDR1_JDATA_14 ((uint32_t)0x00004000) /*!< ADC JDATA bit 14 */
Kojto 93:e188a91d3eaa 1565 #define ADC_JDR1_JDATA_15 ((uint32_t)0x00008000) /*!< ADC JDATA bit 15 */
Kojto 93:e188a91d3eaa 1566
Kojto 93:e188a91d3eaa 1567 /******************** Bit definition for ADC_JDR2 register ********************/
Kojto 93:e188a91d3eaa 1568 #define ADC_JDR2_JDATA ((uint32_t)0x0000FFFF) /*!< ADC Injected DATA */
Kojto 93:e188a91d3eaa 1569 #define ADC_JDR2_JDATA_0 ((uint32_t)0x00000001) /*!< ADC JDATA bit 0 */
Kojto 93:e188a91d3eaa 1570 #define ADC_JDR2_JDATA_1 ((uint32_t)0x00000002) /*!< ADC JDATA bit 1 */
Kojto 93:e188a91d3eaa 1571 #define ADC_JDR2_JDATA_2 ((uint32_t)0x00000004) /*!< ADC JDATA bit 2 */
Kojto 93:e188a91d3eaa 1572 #define ADC_JDR2_JDATA_3 ((uint32_t)0x00000008) /*!< ADC JDATA bit 3 */
Kojto 93:e188a91d3eaa 1573 #define ADC_JDR2_JDATA_4 ((uint32_t)0x00000010) /*!< ADC JDATA bit 4 */
Kojto 93:e188a91d3eaa 1574 #define ADC_JDR2_JDATA_5 ((uint32_t)0x00000020) /*!< ADC JDATA bit 5 */
Kojto 93:e188a91d3eaa 1575 #define ADC_JDR2_JDATA_6 ((uint32_t)0x00000040) /*!< ADC JDATA bit 6 */
Kojto 93:e188a91d3eaa 1576 #define ADC_JDR2_JDATA_7 ((uint32_t)0x00000080) /*!< ADC JDATA bit 7 */
Kojto 93:e188a91d3eaa 1577 #define ADC_JDR2_JDATA_8 ((uint32_t)0x00000100) /*!< ADC JDATA bit 8 */
Kojto 93:e188a91d3eaa 1578 #define ADC_JDR2_JDATA_9 ((uint32_t)0x00000200) /*!< ADC JDATA bit 9 */
Kojto 93:e188a91d3eaa 1579 #define ADC_JDR2_JDATA_10 ((uint32_t)0x00000400) /*!< ADC JDATA bit 10 */
Kojto 93:e188a91d3eaa 1580 #define ADC_JDR2_JDATA_11 ((uint32_t)0x00000800) /*!< ADC JDATA bit 11 */
Kojto 93:e188a91d3eaa 1581 #define ADC_JDR2_JDATA_12 ((uint32_t)0x00001000) /*!< ADC JDATA bit 12 */
Kojto 93:e188a91d3eaa 1582 #define ADC_JDR2_JDATA_13 ((uint32_t)0x00002000) /*!< ADC JDATA bit 13 */
Kojto 93:e188a91d3eaa 1583 #define ADC_JDR2_JDATA_14 ((uint32_t)0x00004000) /*!< ADC JDATA bit 14 */
Kojto 93:e188a91d3eaa 1584 #define ADC_JDR2_JDATA_15 ((uint32_t)0x00008000) /*!< ADC JDATA bit 15 */
Kojto 93:e188a91d3eaa 1585
Kojto 93:e188a91d3eaa 1586 /******************** Bit definition for ADC_JDR3 register ********************/
Kojto 93:e188a91d3eaa 1587 #define ADC_JDR3_JDATA ((uint32_t)0x0000FFFF) /*!< ADC Injected DATA */
Kojto 93:e188a91d3eaa 1588 #define ADC_JDR3_JDATA_0 ((uint32_t)0x00000001) /*!< ADC JDATA bit 0 */
Kojto 93:e188a91d3eaa 1589 #define ADC_JDR3_JDATA_1 ((uint32_t)0x00000002) /*!< ADC JDATA bit 1 */
Kojto 93:e188a91d3eaa 1590 #define ADC_JDR3_JDATA_2 ((uint32_t)0x00000004) /*!< ADC JDATA bit 2 */
Kojto 93:e188a91d3eaa 1591 #define ADC_JDR3_JDATA_3 ((uint32_t)0x00000008) /*!< ADC JDATA bit 3 */
Kojto 93:e188a91d3eaa 1592 #define ADC_JDR3_JDATA_4 ((uint32_t)0x00000010) /*!< ADC JDATA bit 4 */
Kojto 93:e188a91d3eaa 1593 #define ADC_JDR3_JDATA_5 ((uint32_t)0x00000020) /*!< ADC JDATA bit 5 */
Kojto 93:e188a91d3eaa 1594 #define ADC_JDR3_JDATA_6 ((uint32_t)0x00000040) /*!< ADC JDATA bit 6 */
Kojto 93:e188a91d3eaa 1595 #define ADC_JDR3_JDATA_7 ((uint32_t)0x00000080) /*!< ADC JDATA bit 7 */
Kojto 93:e188a91d3eaa 1596 #define ADC_JDR3_JDATA_8 ((uint32_t)0x00000100) /*!< ADC JDATA bit 8 */
Kojto 93:e188a91d3eaa 1597 #define ADC_JDR3_JDATA_9 ((uint32_t)0x00000200) /*!< ADC JDATA bit 9 */
Kojto 93:e188a91d3eaa 1598 #define ADC_JDR3_JDATA_10 ((uint32_t)0x00000400) /*!< ADC JDATA bit 10 */
Kojto 93:e188a91d3eaa 1599 #define ADC_JDR3_JDATA_11 ((uint32_t)0x00000800) /*!< ADC JDATA bit 11 */
Kojto 93:e188a91d3eaa 1600 #define ADC_JDR3_JDATA_12 ((uint32_t)0x00001000) /*!< ADC JDATA bit 12 */
Kojto 93:e188a91d3eaa 1601 #define ADC_JDR3_JDATA_13 ((uint32_t)0x00002000) /*!< ADC JDATA bit 13 */
Kojto 93:e188a91d3eaa 1602 #define ADC_JDR3_JDATA_14 ((uint32_t)0x00004000) /*!< ADC JDATA bit 14 */
Kojto 93:e188a91d3eaa 1603 #define ADC_JDR3_JDATA_15 ((uint32_t)0x00008000) /*!< ADC JDATA bit 15 */
Kojto 93:e188a91d3eaa 1604
Kojto 93:e188a91d3eaa 1605 /******************** Bit definition for ADC_JDR4 register ********************/
Kojto 93:e188a91d3eaa 1606 #define ADC_JDR4_JDATA ((uint32_t)0x0000FFFF) /*!< ADC Injected DATA */
Kojto 93:e188a91d3eaa 1607 #define ADC_JDR4_JDATA_0 ((uint32_t)0x00000001) /*!< ADC JDATA bit 0 */
Kojto 93:e188a91d3eaa 1608 #define ADC_JDR4_JDATA_1 ((uint32_t)0x00000002) /*!< ADC JDATA bit 1 */
Kojto 93:e188a91d3eaa 1609 #define ADC_JDR4_JDATA_2 ((uint32_t)0x00000004) /*!< ADC JDATA bit 2 */
Kojto 93:e188a91d3eaa 1610 #define ADC_JDR4_JDATA_3 ((uint32_t)0x00000008) /*!< ADC JDATA bit 3 */
Kojto 93:e188a91d3eaa 1611 #define ADC_JDR4_JDATA_4 ((uint32_t)0x00000010) /*!< ADC JDATA bit 4 */
Kojto 93:e188a91d3eaa 1612 #define ADC_JDR4_JDATA_5 ((uint32_t)0x00000020) /*!< ADC JDATA bit 5 */
Kojto 93:e188a91d3eaa 1613 #define ADC_JDR4_JDATA_6 ((uint32_t)0x00000040) /*!< ADC JDATA bit 6 */
Kojto 93:e188a91d3eaa 1614 #define ADC_JDR4_JDATA_7 ((uint32_t)0x00000080) /*!< ADC JDATA bit 7 */
Kojto 93:e188a91d3eaa 1615 #define ADC_JDR4_JDATA_8 ((uint32_t)0x00000100) /*!< ADC JDATA bit 8 */
Kojto 93:e188a91d3eaa 1616 #define ADC_JDR4_JDATA_9 ((uint32_t)0x00000200) /*!< ADC JDATA bit 9 */
Kojto 93:e188a91d3eaa 1617 #define ADC_JDR4_JDATA_10 ((uint32_t)0x00000400) /*!< ADC JDATA bit 10 */
Kojto 93:e188a91d3eaa 1618 #define ADC_JDR4_JDATA_11 ((uint32_t)0x00000800) /*!< ADC JDATA bit 11 */
Kojto 93:e188a91d3eaa 1619 #define ADC_JDR4_JDATA_12 ((uint32_t)0x00001000) /*!< ADC JDATA bit 12 */
Kojto 93:e188a91d3eaa 1620 #define ADC_JDR4_JDATA_13 ((uint32_t)0x00002000) /*!< ADC JDATA bit 13 */
Kojto 93:e188a91d3eaa 1621 #define ADC_JDR4_JDATA_14 ((uint32_t)0x00004000) /*!< ADC JDATA bit 14 */
Kojto 93:e188a91d3eaa 1622 #define ADC_JDR4_JDATA_15 ((uint32_t)0x00008000) /*!< ADC JDATA bit 15 */
Kojto 93:e188a91d3eaa 1623
Kojto 93:e188a91d3eaa 1624 /******************** Bit definition for ADC_AWD2CR register ********************/
Kojto 93:e188a91d3eaa 1625 #define ADC_AWD2CR_AWD2CH ((uint32_t)0x0007FFFE) /*!< ADC Analog watchdog 2 channel selection */
Kojto 93:e188a91d3eaa 1626 #define ADC_AWD2CR_AWD2CH_0 ((uint32_t)0x00000002) /*!< ADC AWD2CH bit 0 */
Kojto 93:e188a91d3eaa 1627 #define ADC_AWD2CR_AWD2CH_1 ((uint32_t)0x00000004) /*!< ADC AWD2CH bit 1 */
Kojto 93:e188a91d3eaa 1628 #define ADC_AWD2CR_AWD2CH_2 ((uint32_t)0x00000008) /*!< ADC AWD2CH bit 2 */
Kojto 93:e188a91d3eaa 1629 #define ADC_AWD2CR_AWD2CH_3 ((uint32_t)0x00000010) /*!< ADC AWD2CH bit 3 */
Kojto 93:e188a91d3eaa 1630 #define ADC_AWD2CR_AWD2CH_4 ((uint32_t)0x00000020) /*!< ADC AWD2CH bit 4 */
Kojto 93:e188a91d3eaa 1631 #define ADC_AWD2CR_AWD2CH_5 ((uint32_t)0x00000040) /*!< ADC AWD2CH bit 5 */
Kojto 93:e188a91d3eaa 1632 #define ADC_AWD2CR_AWD2CH_6 ((uint32_t)0x00000080) /*!< ADC AWD2CH bit 6 */
Kojto 93:e188a91d3eaa 1633 #define ADC_AWD2CR_AWD2CH_7 ((uint32_t)0x00000100) /*!< ADC AWD2CH bit 7 */
Kojto 93:e188a91d3eaa 1634 #define ADC_AWD2CR_AWD2CH_8 ((uint32_t)0x00000200) /*!< ADC AWD2CH bit 8 */
Kojto 93:e188a91d3eaa 1635 #define ADC_AWD2CR_AWD2CH_9 ((uint32_t)0x00000400) /*!< ADC AWD2CH bit 9 */
Kojto 93:e188a91d3eaa 1636 #define ADC_AWD2CR_AWD2CH_10 ((uint32_t)0x00000800) /*!< ADC AWD2CH bit 10 */
Kojto 93:e188a91d3eaa 1637 #define ADC_AWD2CR_AWD2CH_11 ((uint32_t)0x00001000) /*!< ADC AWD2CH bit 11 */
Kojto 93:e188a91d3eaa 1638 #define ADC_AWD2CR_AWD2CH_12 ((uint32_t)0x00002000) /*!< ADC AWD2CH bit 12 */
Kojto 93:e188a91d3eaa 1639 #define ADC_AWD2CR_AWD2CH_13 ((uint32_t)0x00004000) /*!< ADC AWD2CH bit 13 */
Kojto 93:e188a91d3eaa 1640 #define ADC_AWD2CR_AWD2CH_14 ((uint32_t)0x00008000) /*!< ADC AWD2CH bit 14 */
Kojto 93:e188a91d3eaa 1641 #define ADC_AWD2CR_AWD2CH_15 ((uint32_t)0x00010000) /*!< ADC AWD2CH bit 15 */
Kojto 93:e188a91d3eaa 1642 #define ADC_AWD2CR_AWD2CH_16 ((uint32_t)0x00020000) /*!< ADC AWD2CH bit 16 */
Kojto 93:e188a91d3eaa 1643 #define ADC_AWD2CR_AWD2CH_17 ((uint32_t)0x00030000) /*!< ADC AWD2CH bit 17 */
Kojto 93:e188a91d3eaa 1644
Kojto 93:e188a91d3eaa 1645 /******************** Bit definition for ADC_AWD3CR register ********************/
Kojto 93:e188a91d3eaa 1646 #define ADC_AWD3CR_AWD3CH ((uint32_t)0x0007FFFE) /*!< ADC Analog watchdog 2 channel selection */
Kojto 93:e188a91d3eaa 1647 #define ADC_AWD3CR_AWD3CH_0 ((uint32_t)0x00000002) /*!< ADC AWD3CH bit 0 */
Kojto 93:e188a91d3eaa 1648 #define ADC_AWD3CR_AWD3CH_1 ((uint32_t)0x00000004) /*!< ADC AWD3CH bit 1 */
Kojto 93:e188a91d3eaa 1649 #define ADC_AWD3CR_AWD3CH_2 ((uint32_t)0x00000008) /*!< ADC AWD3CH bit 2 */
Kojto 93:e188a91d3eaa 1650 #define ADC_AWD3CR_AWD3CH_3 ((uint32_t)0x00000010) /*!< ADC AWD3CH bit 3 */
Kojto 93:e188a91d3eaa 1651 #define ADC_AWD3CR_AWD3CH_4 ((uint32_t)0x00000020) /*!< ADC AWD3CH bit 4 */
Kojto 93:e188a91d3eaa 1652 #define ADC_AWD3CR_AWD3CH_5 ((uint32_t)0x00000040) /*!< ADC AWD3CH bit 5 */
Kojto 93:e188a91d3eaa 1653 #define ADC_AWD3CR_AWD3CH_6 ((uint32_t)0x00000080) /*!< ADC AWD3CH bit 6 */
Kojto 93:e188a91d3eaa 1654 #define ADC_AWD3CR_AWD3CH_7 ((uint32_t)0x00000100) /*!< ADC AWD3CH bit 7 */
Kojto 93:e188a91d3eaa 1655 #define ADC_AWD3CR_AWD3CH_8 ((uint32_t)0x00000200) /*!< ADC AWD3CH bit 8 */
Kojto 93:e188a91d3eaa 1656 #define ADC_AWD3CR_AWD3CH_9 ((uint32_t)0x00000400) /*!< ADC AWD3CH bit 9 */
Kojto 93:e188a91d3eaa 1657 #define ADC_AWD3CR_AWD3CH_10 ((uint32_t)0x00000800) /*!< ADC AWD3CH bit 10 */
Kojto 93:e188a91d3eaa 1658 #define ADC_AWD3CR_AWD3CH_11 ((uint32_t)0x00001000) /*!< ADC AWD3CH bit 11 */
Kojto 93:e188a91d3eaa 1659 #define ADC_AWD3CR_AWD3CH_12 ((uint32_t)0x00002000) /*!< ADC AWD3CH bit 12 */
Kojto 93:e188a91d3eaa 1660 #define ADC_AWD3CR_AWD3CH_13 ((uint32_t)0x00004000) /*!< ADC AWD3CH bit 13 */
Kojto 93:e188a91d3eaa 1661 #define ADC_AWD3CR_AWD3CH_14 ((uint32_t)0x00008000) /*!< ADC AWD3CH bit 14 */
Kojto 93:e188a91d3eaa 1662 #define ADC_AWD3CR_AWD3CH_15 ((uint32_t)0x00010000) /*!< ADC AWD3CH bit 15 */
Kojto 93:e188a91d3eaa 1663 #define ADC_AWD3CR_AWD3CH_16 ((uint32_t)0x00020000) /*!< ADC AWD3CH bit 16 */
Kojto 93:e188a91d3eaa 1664 #define ADC_AWD3CR_AWD3CH_17 ((uint32_t)0x00030000) /*!< ADC AWD3CH bit 17 */
Kojto 93:e188a91d3eaa 1665
Kojto 93:e188a91d3eaa 1666 /******************** Bit definition for ADC_DIFSEL register ********************/
Kojto 93:e188a91d3eaa 1667 #define ADC_DIFSEL_DIFSEL ((uint32_t)0x0007FFFE) /*!< ADC differential modes for channels 1 to 18 */
Kojto 93:e188a91d3eaa 1668 #define ADC_DIFSEL_DIFSEL_0 ((uint32_t)0x00000002) /*!< ADC DIFSEL bit 0 */
Kojto 93:e188a91d3eaa 1669 #define ADC_DIFSEL_DIFSEL_1 ((uint32_t)0x00000004) /*!< ADC DIFSEL bit 1 */
Kojto 93:e188a91d3eaa 1670 #define ADC_DIFSEL_DIFSEL_2 ((uint32_t)0x00000008) /*!< ADC DIFSEL bit 2 */
Kojto 93:e188a91d3eaa 1671 #define ADC_DIFSEL_DIFSEL_3 ((uint32_t)0x00000010) /*!< ADC DIFSEL bit 3 */
Kojto 93:e188a91d3eaa 1672 #define ADC_DIFSEL_DIFSEL_4 ((uint32_t)0x00000020) /*!< ADC DIFSEL bit 4 */
Kojto 93:e188a91d3eaa 1673 #define ADC_DIFSEL_DIFSEL_5 ((uint32_t)0x00000040) /*!< ADC DIFSEL bit 5 */
Kojto 93:e188a91d3eaa 1674 #define ADC_DIFSEL_DIFSEL_6 ((uint32_t)0x00000080) /*!< ADC DIFSEL bit 6 */
Kojto 93:e188a91d3eaa 1675 #define ADC_DIFSEL_DIFSEL_7 ((uint32_t)0x00000100) /*!< ADC DIFSEL bit 7 */
Kojto 93:e188a91d3eaa 1676 #define ADC_DIFSEL_DIFSEL_8 ((uint32_t)0x00000200) /*!< ADC DIFSEL bit 8 */
Kojto 93:e188a91d3eaa 1677 #define ADC_DIFSEL_DIFSEL_9 ((uint32_t)0x00000400) /*!< ADC DIFSEL bit 9 */
Kojto 93:e188a91d3eaa 1678 #define ADC_DIFSEL_DIFSEL_10 ((uint32_t)0x00000800) /*!< ADC DIFSEL bit 10 */
Kojto 93:e188a91d3eaa 1679 #define ADC_DIFSEL_DIFSEL_11 ((uint32_t)0x00001000) /*!< ADC DIFSEL bit 11 */
Kojto 93:e188a91d3eaa 1680 #define ADC_DIFSEL_DIFSEL_12 ((uint32_t)0x00002000) /*!< ADC DIFSEL bit 12 */
Kojto 93:e188a91d3eaa 1681 #define ADC_DIFSEL_DIFSEL_13 ((uint32_t)0x00004000) /*!< ADC DIFSEL bit 13 */
Kojto 93:e188a91d3eaa 1682 #define ADC_DIFSEL_DIFSEL_14 ((uint32_t)0x00008000) /*!< ADC DIFSEL bit 14 */
Kojto 93:e188a91d3eaa 1683 #define ADC_DIFSEL_DIFSEL_15 ((uint32_t)0x00010000) /*!< ADC DIFSEL bit 15 */
Kojto 93:e188a91d3eaa 1684 #define ADC_DIFSEL_DIFSEL_16 ((uint32_t)0x00020000) /*!< ADC DIFSEL bit 16 */
Kojto 93:e188a91d3eaa 1685 #define ADC_DIFSEL_DIFSEL_17 ((uint32_t)0x00030000) /*!< ADC DIFSEL bit 17 */
Kojto 93:e188a91d3eaa 1686
Kojto 93:e188a91d3eaa 1687 /******************** Bit definition for ADC_CALFACT register ********************/
Kojto 93:e188a91d3eaa 1688 #define ADC_CALFACT_CALFACT_S ((uint32_t)0x0000007F) /*!< ADC calibration factors in single-ended mode */
Kojto 93:e188a91d3eaa 1689 #define ADC_CALFACT_CALFACT_S_0 ((uint32_t)0x00000001) /*!< ADC CALFACT_S bit 0 */
Kojto 93:e188a91d3eaa 1690 #define ADC_CALFACT_CALFACT_S_1 ((uint32_t)0x00000002) /*!< ADC CALFACT_S bit 1 */
Kojto 93:e188a91d3eaa 1691 #define ADC_CALFACT_CALFACT_S_2 ((uint32_t)0x00000004) /*!< ADC CALFACT_S bit 2 */
Kojto 93:e188a91d3eaa 1692 #define ADC_CALFACT_CALFACT_S_3 ((uint32_t)0x00000008) /*!< ADC CALFACT_S bit 3 */
Kojto 93:e188a91d3eaa 1693 #define ADC_CALFACT_CALFACT_S_4 ((uint32_t)0x00000010) /*!< ADC CALFACT_S bit 4 */
Kojto 93:e188a91d3eaa 1694 #define ADC_CALFACT_CALFACT_S_5 ((uint32_t)0x00000020) /*!< ADC CALFACT_S bit 5 */
Kojto 93:e188a91d3eaa 1695 #define ADC_CALFACT_CALFACT_S_6 ((uint32_t)0x00000040) /*!< ADC CALFACT_S bit 6 */
Kojto 93:e188a91d3eaa 1696 #define ADC_CALFACT_CALFACT_D ((uint32_t)0x007F0000) /*!< ADC calibration factors in differential mode */
Kojto 93:e188a91d3eaa 1697 #define ADC_CALFACT_CALFACT_D_0 ((uint32_t)0x00010000) /*!< ADC CALFACT_D bit 0 */
Kojto 93:e188a91d3eaa 1698 #define ADC_CALFACT_CALFACT_D_1 ((uint32_t)0x00020000) /*!< ADC CALFACT_D bit 1 */
Kojto 93:e188a91d3eaa 1699 #define ADC_CALFACT_CALFACT_D_2 ((uint32_t)0x00040000) /*!< ADC CALFACT_D bit 2 */
Kojto 93:e188a91d3eaa 1700 #define ADC_CALFACT_CALFACT_D_3 ((uint32_t)0x00080000) /*!< ADC CALFACT_D bit 3 */
Kojto 93:e188a91d3eaa 1701 #define ADC_CALFACT_CALFACT_D_4 ((uint32_t)0x00100000) /*!< ADC CALFACT_D bit 4 */
Kojto 93:e188a91d3eaa 1702 #define ADC_CALFACT_CALFACT_D_5 ((uint32_t)0x00200000) /*!< ADC CALFACT_D bit 5 */
Kojto 93:e188a91d3eaa 1703 #define ADC_CALFACT_CALFACT_D_6 ((uint32_t)0x00400000) /*!< ADC CALFACT_D bit 6 */
Kojto 93:e188a91d3eaa 1704
Kojto 93:e188a91d3eaa 1705 /************************* ADC Common registers *****************************/
Kojto 93:e188a91d3eaa 1706 /******************** Bit definition for ADC12_CSR register ********************/
Kojto 93:e188a91d3eaa 1707 #define ADC12_CSR_ADRDY_MST ((uint32_t)0x00000001) /*!< Master ADC ready */
Kojto 93:e188a91d3eaa 1708 #define ADC12_CSR_ADRDY_EOSMP_MST ((uint32_t)0x00000002) /*!< End of sampling phase flag of the master ADC */
Kojto 93:e188a91d3eaa 1709 #define ADC12_CSR_ADRDY_EOC_MST ((uint32_t)0x00000004) /*!< End of regular conversion of the master ADC */
Kojto 93:e188a91d3eaa 1710 #define ADC12_CSR_ADRDY_EOS_MST ((uint32_t)0x00000008) /*!< End of regular sequence flag of the master ADC */
Kojto 93:e188a91d3eaa 1711 #define ADC12_CSR_ADRDY_OVR_MST ((uint32_t)0x00000010) /*!< Overrun flag of the master ADC */
Kojto 93:e188a91d3eaa 1712 #define ADC12_CSR_ADRDY_JEOC_MST ((uint32_t)0x00000020) /*!< End of injected conversion of the master ADC */
Kojto 93:e188a91d3eaa 1713 #define ADC12_CSR_ADRDY_JEOS_MST ((uint32_t)0x00000040) /*!< End of injected sequence flag of the master ADC */
Kojto 93:e188a91d3eaa 1714 #define ADC12_CSR_AWD1_MST ((uint32_t)0x00000080) /*!< Analog watchdog 1 flag of the master ADC */
Kojto 93:e188a91d3eaa 1715 #define ADC12_CSR_AWD2_MST ((uint32_t)0x00000100) /*!< Analog watchdog 2 flag of the master ADC */
Kojto 93:e188a91d3eaa 1716 #define ADC12_CSR_AWD3_MST ((uint32_t)0x00000200) /*!< Analog watchdog 3 flag of the master ADC */
Kojto 93:e188a91d3eaa 1717 #define ADC12_CSR_JQOVF_MST ((uint32_t)0x00000400) /*!< Injected context queue overflow flag of the master ADC */
Kojto 93:e188a91d3eaa 1718 #define ADC12_CSR_ADRDY_SLV ((uint32_t)0x00010000) /*!< Slave ADC ready */
Kojto 93:e188a91d3eaa 1719 #define ADC12_CSR_ADRDY_EOSMP_SLV ((uint32_t)0x00020000) /*!< End of sampling phase flag of the slave ADC */
Kojto 93:e188a91d3eaa 1720 #define ADC12_CSR_ADRDY_EOC_SLV ((uint32_t)0x00040000) /*!< End of regular conversion of the slave ADC */
Kojto 93:e188a91d3eaa 1721 #define ADC12_CSR_ADRDY_EOS_SLV ((uint32_t)0x00080000) /*!< End of regular sequence flag of the slave ADC */
Kojto 93:e188a91d3eaa 1722 #define ADC12_CSR_ADRDY_OVR_SLV ((uint32_t)0x00100000) /*!< Overrun flag of the slave ADC */
Kojto 93:e188a91d3eaa 1723 #define ADC12_CSR_ADRDY_JEOC_SLV ((uint32_t)0x00200000) /*!< End of injected conversion of the slave ADC */
Kojto 93:e188a91d3eaa 1724 #define ADC12_CSR_ADRDY_JEOS_SLV ((uint32_t)0x00400000) /*!< End of injected sequence flag of the slave ADC */
Kojto 93:e188a91d3eaa 1725 #define ADC12_CSR_AWD1_SLV ((uint32_t)0x00800000) /*!< Analog watchdog 1 flag of the slave ADC */
Kojto 93:e188a91d3eaa 1726 #define ADC12_CSR_AWD2_SLV ((uint32_t)0x01000000) /*!< Analog watchdog 2 flag of the slave ADC */
Kojto 93:e188a91d3eaa 1727 #define ADC12_CSR_AWD3_SLV ((uint32_t)0x02000000) /*!< Analog watchdog 3 flag of the slave ADC */
Kojto 93:e188a91d3eaa 1728 #define ADC12_CSR_JQOVF_SLV ((uint32_t)0x04000000) /*!< Injected context queue overflow flag of the slave ADC */
Kojto 93:e188a91d3eaa 1729
Kojto 93:e188a91d3eaa 1730 /******************** Bit definition for ADC34_CSR register ********************/
Kojto 93:e188a91d3eaa 1731 #define ADC34_CSR_ADRDY_MST ((uint32_t)0x00000001) /*!< Master ADC ready */
Kojto 93:e188a91d3eaa 1732 #define ADC34_CSR_ADRDY_EOSMP_MST ((uint32_t)0x00000002) /*!< End of sampling phase flag of the master ADC */
Kojto 93:e188a91d3eaa 1733 #define ADC34_CSR_ADRDY_EOC_MST ((uint32_t)0x00000004) /*!< End of regular conversion of the master ADC */
Kojto 93:e188a91d3eaa 1734 #define ADC34_CSR_ADRDY_EOS_MST ((uint32_t)0x00000008) /*!< End of regular sequence flag of the master ADC */
Kojto 93:e188a91d3eaa 1735 #define ADC34_CSR_ADRDY_OVR_MST ((uint32_t)0x00000010) /*!< Overrun flag of the master ADC */
Kojto 93:e188a91d3eaa 1736 #define ADC34_CSR_ADRDY_JEOC_MST ((uint32_t)0x00000020) /*!< End of injected conversion of the master ADC */
Kojto 93:e188a91d3eaa 1737 #define ADC34_CSR_ADRDY_JEOS_MST ((uint32_t)0x00000040) /*!< End of injected sequence flag of the master ADC */
Kojto 93:e188a91d3eaa 1738 #define ADC34_CSR_AWD1_MST ((uint32_t)0x00000080) /*!< Analog watchdog 1 flag of the master ADC */
Kojto 93:e188a91d3eaa 1739 #define ADC34_CSR_AWD2_MST ((uint32_t)0x00000100) /*!< Analog watchdog 2 flag of the master ADC */
Kojto 93:e188a91d3eaa 1740 #define ADC34_CSR_AWD3_MST ((uint32_t)0x00000200) /*!< Analog watchdog 3 flag of the master ADC */
Kojto 93:e188a91d3eaa 1741 #define ADC34_CSR_JQOVF_MST ((uint32_t)0x00000400) /*!< Injected context queue overflow flag of the master ADC */
Kojto 93:e188a91d3eaa 1742 #define ADC34_CSR_ADRDY_SLV ((uint32_t)0x00010000) /*!< Slave ADC ready */
Kojto 93:e188a91d3eaa 1743 #define ADC34_CSR_ADRDY_EOSMP_SLV ((uint32_t)0x00020000) /*!< End of sampling phase flag of the slave ADC */
Kojto 93:e188a91d3eaa 1744 #define ADC34_CSR_ADRDY_EOC_SLV ((uint32_t)0x00040000) /*!< End of regular conversion of the slave ADC */
Kojto 93:e188a91d3eaa 1745 #define ADC34_CSR_ADRDY_EOS_SLV ((uint32_t)0x00080000) /*!< End of regular sequence flag of the slave ADC */
Kojto 93:e188a91d3eaa 1746 #define ADC12_CSR_ADRDY_OVR_SLV ((uint32_t)0x00100000) /*!< Overrun flag of the slave ADC */
Kojto 93:e188a91d3eaa 1747 #define ADC34_CSR_ADRDY_JEOC_SLV ((uint32_t)0x00200000) /*!< End of injected conversion of the slave ADC */
Kojto 93:e188a91d3eaa 1748 #define ADC34_CSR_ADRDY_JEOS_SLV ((uint32_t)0x00400000) /*!< End of injected sequence flag of the slave ADC */
Kojto 93:e188a91d3eaa 1749 #define ADC34_CSR_AWD1_SLV ((uint32_t)0x00800000) /*!< Analog watchdog 1 flag of the slave ADC */
Kojto 93:e188a91d3eaa 1750 #define ADC34_CSR_AWD2_SLV ((uint32_t)0x01000000) /*!< Analog watchdog 2 flag of the slave ADC */
Kojto 93:e188a91d3eaa 1751 #define ADC34_CSR_AWD3_SLV ((uint32_t)0x02000000) /*!< Analog watchdog 3 flag of the slave ADC */
Kojto 93:e188a91d3eaa 1752 #define ADC34_CSR_JQOVF_SLV ((uint32_t)0x04000000) /*!< Injected context queue overflow flag of the slave ADC */
Kojto 93:e188a91d3eaa 1753
Kojto 93:e188a91d3eaa 1754 /******************** Bit definition for ADC_CCR register ********************/
Kojto 93:e188a91d3eaa 1755 #define ADC12_CCR_MULTI ((uint32_t)0x0000001F) /*!< Multi ADC mode selection */
Kojto 93:e188a91d3eaa 1756 #define ADC12_CCR_MULTI_0 ((uint32_t)0x00000001) /*!< MULTI bit 0 */
Kojto 93:e188a91d3eaa 1757 #define ADC12_CCR_MULTI_1 ((uint32_t)0x00000002) /*!< MULTI bit 1 */
Kojto 93:e188a91d3eaa 1758 #define ADC12_CCR_MULTI_2 ((uint32_t)0x00000004) /*!< MULTI bit 2 */
Kojto 93:e188a91d3eaa 1759 #define ADC12_CCR_MULTI_3 ((uint32_t)0x00000008) /*!< MULTI bit 3 */
Kojto 93:e188a91d3eaa 1760 #define ADC12_CCR_MULTI_4 ((uint32_t)0x00000010) /*!< MULTI bit 4 */
Kojto 93:e188a91d3eaa 1761 #define ADC12_CCR_DELAY ((uint32_t)0x00000F00) /*!< Delay between 2 sampling phases */
Kojto 93:e188a91d3eaa 1762 #define ADC12_CCR_DELAY_0 ((uint32_t)0x00000100) /*!< DELAY bit 0 */
Kojto 93:e188a91d3eaa 1763 #define ADC12_CCR_DELAY_1 ((uint32_t)0x00000200) /*!< DELAY bit 1 */
Kojto 93:e188a91d3eaa 1764 #define ADC12_CCR_DELAY_2 ((uint32_t)0x00000400) /*!< DELAY bit 2 */
Kojto 93:e188a91d3eaa 1765 #define ADC12_CCR_DELAY_3 ((uint32_t)0x00000800) /*!< DELAY bit 3 */
Kojto 93:e188a91d3eaa 1766 #define ADC12_CCR_DMACFG ((uint32_t)0x00002000) /*!< DMA configuration for multi-ADC mode */
Kojto 93:e188a91d3eaa 1767 #define ADC12_CCR_MDMA ((uint32_t)0x0000C000) /*!< DMA mode for multi-ADC mode */
Kojto 93:e188a91d3eaa 1768 #define ADC12_CCR_MDMA_0 ((uint32_t)0x00004000) /*!< MDMA bit 0 */
Kojto 93:e188a91d3eaa 1769 #define ADC12_CCR_MDMA_1 ((uint32_t)0x00008000) /*!< MDMA bit 1 */
Kojto 93:e188a91d3eaa 1770 #define ADC12_CCR_CKMODE ((uint32_t)0x00030000) /*!< ADC clock mode */
Kojto 93:e188a91d3eaa 1771 #define ADC12_CCR_CKMODE_0 ((uint32_t)0x00010000) /*!< CKMODE bit 0 */
Kojto 93:e188a91d3eaa 1772 #define ADC12_CCR_CKMODE_1 ((uint32_t)0x00020000) /*!< CKMODE bit 1 */
Kojto 93:e188a91d3eaa 1773 #define ADC12_CCR_VREFEN ((uint32_t)0x00400000) /*!< VREFINT enable */
Kojto 93:e188a91d3eaa 1774 #define ADC12_CCR_TSEN ((uint32_t)0x00800000) /*!< Temperature sensor enable */
Kojto 93:e188a91d3eaa 1775 #define ADC12_CCR_VBATEN ((uint32_t)0x01000000) /*!< VBAT enable */
Kojto 93:e188a91d3eaa 1776
Kojto 93:e188a91d3eaa 1777 /******************** Bit definition for ADC_CCR register ********************/
Kojto 93:e188a91d3eaa 1778 #define ADC34_CCR_MULTI ((uint32_t)0x0000001F) /*!< Multi ADC mode selection */
Kojto 93:e188a91d3eaa 1779 #define ADC34_CCR_MULTI_0 ((uint32_t)0x00000001) /*!< MULTI bit 0 */
Kojto 93:e188a91d3eaa 1780 #define ADC34_CCR_MULTI_1 ((uint32_t)0x00000002) /*!< MULTI bit 1 */
Kojto 93:e188a91d3eaa 1781 #define ADC34_CCR_MULTI_2 ((uint32_t)0x00000004) /*!< MULTI bit 2 */
Kojto 93:e188a91d3eaa 1782 #define ADC34_CCR_MULTI_3 ((uint32_t)0x00000008) /*!< MULTI bit 3 */
Kojto 93:e188a91d3eaa 1783 #define ADC34_CCR_MULTI_4 ((uint32_t)0x00000010) /*!< MULTI bit 4 */
Kojto 93:e188a91d3eaa 1784
Kojto 93:e188a91d3eaa 1785 #define ADC34_CCR_DELAY ((uint32_t)0x00000F00) /*!< Delay between 2 sampling phases */
Kojto 93:e188a91d3eaa 1786 #define ADC34_CCR_DELAY_0 ((uint32_t)0x00000100) /*!< DELAY bit 0 */
Kojto 93:e188a91d3eaa 1787 #define ADC34_CCR_DELAY_1 ((uint32_t)0x00000200) /*!< DELAY bit 1 */
Kojto 93:e188a91d3eaa 1788 #define ADC34_CCR_DELAY_2 ((uint32_t)0x00000400) /*!< DELAY bit 2 */
Kojto 93:e188a91d3eaa 1789 #define ADC34_CCR_DELAY_3 ((uint32_t)0x00000800) /*!< DELAY bit 3 */
Kojto 93:e188a91d3eaa 1790
Kojto 93:e188a91d3eaa 1791 #define ADC34_CCR_DMACFG ((uint32_t)0x00002000) /*!< DMA configuration for multi-ADC mode */
Kojto 93:e188a91d3eaa 1792 #define ADC34_CCR_MDMA ((uint32_t)0x0000C000) /*!< DMA mode for multi-ADC mode */
Kojto 93:e188a91d3eaa 1793 #define ADC34_CCR_MDMA_0 ((uint32_t)0x00004000) /*!< MDMA bit 0 */
Kojto 93:e188a91d3eaa 1794 #define ADC34_CCR_MDMA_1 ((uint32_t)0x00008000) /*!< MDMA bit 1 */
Kojto 93:e188a91d3eaa 1795
Kojto 93:e188a91d3eaa 1796 #define ADC34_CCR_CKMODE ((uint32_t)0x00030000) /*!< ADC clock mode */
Kojto 93:e188a91d3eaa 1797 #define ADC34_CCR_CKMODE_0 ((uint32_t)0x00010000) /*!< CKMODE bit 0 */
Kojto 93:e188a91d3eaa 1798 #define ADC34_CCR_CKMODE_1 ((uint32_t)0x00020000) /*!< CKMODE bit 1 */
Kojto 93:e188a91d3eaa 1799
Kojto 93:e188a91d3eaa 1800 #define ADC34_CCR_VREFEN ((uint32_t)0x00400000) /*!< VREFINT enable */
Kojto 93:e188a91d3eaa 1801 #define ADC34_CCR_TSEN ((uint32_t)0x00800000) /*!< Temperature sensor enable */
Kojto 93:e188a91d3eaa 1802 #define ADC34_CCR_VBATEN ((uint32_t)0x01000000) /*!< VBAT enable */
Kojto 93:e188a91d3eaa 1803
Kojto 93:e188a91d3eaa 1804 /******************** Bit definition for ADC_CDR register ********************/
Kojto 93:e188a91d3eaa 1805 #define ADC12_CDR_RDATA_MST ((uint32_t)0x0000FFFF) /*!< Regular Data of the master ADC */
Kojto 93:e188a91d3eaa 1806 #define ADC12_CDR_RDATA_MST_0 ((uint32_t)0x00000001) /*!< RDATA_MST bit 0 */
Kojto 93:e188a91d3eaa 1807 #define ADC12_CDR_RDATA_MST_1 ((uint32_t)0x00000002) /*!< RDATA_MST bit 1 */
Kojto 93:e188a91d3eaa 1808 #define ADC12_CDR_RDATA_MST_2 ((uint32_t)0x00000004) /*!< RDATA_MST bit 2 */
Kojto 93:e188a91d3eaa 1809 #define ADC12_CDR_RDATA_MST_3 ((uint32_t)0x00000008) /*!< RDATA_MST bit 3 */
Kojto 93:e188a91d3eaa 1810 #define ADC12_CDR_RDATA_MST_4 ((uint32_t)0x00000010) /*!< RDATA_MST bit 4 */
Kojto 93:e188a91d3eaa 1811 #define ADC12_CDR_RDATA_MST_5 ((uint32_t)0x00000020) /*!< RDATA_MST bit 5 */
Kojto 93:e188a91d3eaa 1812 #define ADC12_CDR_RDATA_MST_6 ((uint32_t)0x00000040) /*!< RDATA_MST bit 6 */
Kojto 93:e188a91d3eaa 1813 #define ADC12_CDR_RDATA_MST_7 ((uint32_t)0x00000080) /*!< RDATA_MST bit 7 */
Kojto 93:e188a91d3eaa 1814 #define ADC12_CDR_RDATA_MST_8 ((uint32_t)0x00000100) /*!< RDATA_MST bit 8 */
Kojto 93:e188a91d3eaa 1815 #define ADC12_CDR_RDATA_MST_9 ((uint32_t)0x00000200) /*!< RDATA_MST bit 9 */
Kojto 93:e188a91d3eaa 1816 #define ADC12_CDR_RDATA_MST_10 ((uint32_t)0x00000400) /*!< RDATA_MST bit 10 */
Kojto 93:e188a91d3eaa 1817 #define ADC12_CDR_RDATA_MST_11 ((uint32_t)0x00000800) /*!< RDATA_MST bit 11 */
Kojto 93:e188a91d3eaa 1818 #define ADC12_CDR_RDATA_MST_12 ((uint32_t)0x00001000) /*!< RDATA_MST bit 12 */
Kojto 93:e188a91d3eaa 1819 #define ADC12_CDR_RDATA_MST_13 ((uint32_t)0x00002000) /*!< RDATA_MST bit 13 */
Kojto 93:e188a91d3eaa 1820 #define ADC12_CDR_RDATA_MST_14 ((uint32_t)0x00004000) /*!< RDATA_MST bit 14 */
Kojto 93:e188a91d3eaa 1821 #define ADC12_CDR_RDATA_MST_15 ((uint32_t)0x00008000) /*!< RDATA_MST bit 15 */
Kojto 93:e188a91d3eaa 1822
Kojto 93:e188a91d3eaa 1823 #define ADC12_CDR_RDATA_SLV ((uint32_t)0xFFFF0000) /*!< Regular Data of the master ADC */
Kojto 93:e188a91d3eaa 1824 #define ADC12_CDR_RDATA_SLV_0 ((uint32_t)0x00010000) /*!< RDATA_SLV bit 0 */
Kojto 93:e188a91d3eaa 1825 #define ADC12_CDR_RDATA_SLV_1 ((uint32_t)0x00020000) /*!< RDATA_SLV bit 1 */
Kojto 93:e188a91d3eaa 1826 #define ADC12_CDR_RDATA_SLV_2 ((uint32_t)0x00040000) /*!< RDATA_SLV bit 2 */
Kojto 93:e188a91d3eaa 1827 #define ADC12_CDR_RDATA_SLV_3 ((uint32_t)0x00080000) /*!< RDATA_SLV bit 3 */
Kojto 93:e188a91d3eaa 1828 #define ADC12_CDR_RDATA_SLV_4 ((uint32_t)0x00100000) /*!< RDATA_SLV bit 4 */
Kojto 93:e188a91d3eaa 1829 #define ADC12_CDR_RDATA_SLV_5 ((uint32_t)0x00200000) /*!< RDATA_SLV bit 5 */
Kojto 93:e188a91d3eaa 1830 #define ADC12_CDR_RDATA_SLV_6 ((uint32_t)0x00400000) /*!< RDATA_SLV bit 6 */
Kojto 93:e188a91d3eaa 1831 #define ADC12_CDR_RDATA_SLV_7 ((uint32_t)0x00800000) /*!< RDATA_SLV bit 7 */
Kojto 93:e188a91d3eaa 1832 #define ADC12_CDR_RDATA_SLV_8 ((uint32_t)0x01000000) /*!< RDATA_SLV bit 8 */
Kojto 93:e188a91d3eaa 1833 #define ADC12_CDR_RDATA_SLV_9 ((uint32_t)0x02000000) /*!< RDATA_SLV bit 9 */
Kojto 93:e188a91d3eaa 1834 #define ADC12_CDR_RDATA_SLV_10 ((uint32_t)0x04000000) /*!< RDATA_SLV bit 10 */
Kojto 93:e188a91d3eaa 1835 #define ADC12_CDR_RDATA_SLV_11 ((uint32_t)0x08000000) /*!< RDATA_SLV bit 11 */
Kojto 93:e188a91d3eaa 1836 #define ADC12_CDR_RDATA_SLV_12 ((uint32_t)0x10000000) /*!< RDATA_SLV bit 12 */
Kojto 93:e188a91d3eaa 1837 #define ADC12_CDR_RDATA_SLV_13 ((uint32_t)0x20000000) /*!< RDATA_SLV bit 13 */
Kojto 93:e188a91d3eaa 1838 #define ADC12_CDR_RDATA_SLV_14 ((uint32_t)0x40000000) /*!< RDATA_SLV bit 14 */
Kojto 93:e188a91d3eaa 1839 #define ADC12_CDR_RDATA_SLV_15 ((uint32_t)0x80000000) /*!< RDATA_SLV bit 15 */
Kojto 93:e188a91d3eaa 1840
Kojto 93:e188a91d3eaa 1841 /******************** Bit definition for ADC_CDR register ********************/
Kojto 93:e188a91d3eaa 1842 #define ADC34_CDR_RDATA_MST ((uint32_t)0x0000FFFF) /*!< Regular Data of the master ADC */
Kojto 93:e188a91d3eaa 1843 #define ADC34_CDR_RDATA_MST_0 ((uint32_t)0x00000001) /*!< RDATA_MST bit 0 */
Kojto 93:e188a91d3eaa 1844 #define ADC34_CDR_RDATA_MST_1 ((uint32_t)0x00000002) /*!< RDATA_MST bit 1 */
Kojto 93:e188a91d3eaa 1845 #define ADC34_CDR_RDATA_MST_2 ((uint32_t)0x00000004) /*!< RDATA_MST bit 2 */
Kojto 93:e188a91d3eaa 1846 #define ADC34_CDR_RDATA_MST_3 ((uint32_t)0x00000008) /*!< RDATA_MST bit 3 */
Kojto 93:e188a91d3eaa 1847 #define ADC34_CDR_RDATA_MST_4 ((uint32_t)0x00000010) /*!< RDATA_MST bit 4 */
Kojto 93:e188a91d3eaa 1848 #define ADC34_CDR_RDATA_MST_5 ((uint32_t)0x00000020) /*!< RDATA_MST bit 5 */
Kojto 93:e188a91d3eaa 1849 #define ADC34_CDR_RDATA_MST_6 ((uint32_t)0x00000040) /*!< RDATA_MST bit 6 */
Kojto 93:e188a91d3eaa 1850 #define ADC34_CDR_RDATA_MST_7 ((uint32_t)0x00000080) /*!< RDATA_MST bit 7 */
Kojto 93:e188a91d3eaa 1851 #define ADC34_CDR_RDATA_MST_8 ((uint32_t)0x00000100) /*!< RDATA_MST bit 8 */
Kojto 93:e188a91d3eaa 1852 #define ADC34_CDR_RDATA_MST_9 ((uint32_t)0x00000200) /*!< RDATA_MST bit 9 */
Kojto 93:e188a91d3eaa 1853 #define ADC34_CDR_RDATA_MST_10 ((uint32_t)0x00000400) /*!< RDATA_MST bit 10 */
Kojto 93:e188a91d3eaa 1854 #define ADC34_CDR_RDATA_MST_11 ((uint32_t)0x00000800) /*!< RDATA_MST bit 11 */
Kojto 93:e188a91d3eaa 1855 #define ADC34_CDR_RDATA_MST_12 ((uint32_t)0x00001000) /*!< RDATA_MST bit 12 */
Kojto 93:e188a91d3eaa 1856 #define ADC34_CDR_RDATA_MST_13 ((uint32_t)0x00002000) /*!< RDATA_MST bit 13 */
Kojto 93:e188a91d3eaa 1857 #define ADC34_CDR_RDATA_MST_14 ((uint32_t)0x00004000) /*!< RDATA_MST bit 14 */
Kojto 93:e188a91d3eaa 1858 #define ADC34_CDR_RDATA_MST_15 ((uint32_t)0x00008000) /*!< RDATA_MST bit 15 */
Kojto 93:e188a91d3eaa 1859
Kojto 93:e188a91d3eaa 1860 #define ADC34_CDR_RDATA_SLV ((uint32_t)0xFFFF0000) /*!< Regular Data of the master ADC */
Kojto 93:e188a91d3eaa 1861 #define ADC34_CDR_RDATA_SLV_0 ((uint32_t)0x00010000) /*!< RDATA_SLV bit 0 */
Kojto 93:e188a91d3eaa 1862 #define ADC34_CDR_RDATA_SLV_1 ((uint32_t)0x00020000) /*!< RDATA_SLV bit 1 */
Kojto 93:e188a91d3eaa 1863 #define ADC34_CDR_RDATA_SLV_2 ((uint32_t)0x00040000) /*!< RDATA_SLV bit 2 */
Kojto 93:e188a91d3eaa 1864 #define ADC34_CDR_RDATA_SLV_3 ((uint32_t)0x00080000) /*!< RDATA_SLV bit 3 */
Kojto 93:e188a91d3eaa 1865 #define ADC34_CDR_RDATA_SLV_4 ((uint32_t)0x00100000) /*!< RDATA_SLV bit 4 */
Kojto 93:e188a91d3eaa 1866 #define ADC34_CDR_RDATA_SLV_5 ((uint32_t)0x00200000) /*!< RDATA_SLV bit 5 */
Kojto 93:e188a91d3eaa 1867 #define ADC34_CDR_RDATA_SLV_6 ((uint32_t)0x00400000) /*!< RDATA_SLV bit 6 */
Kojto 93:e188a91d3eaa 1868 #define ADC34_CDR_RDATA_SLV_7 ((uint32_t)0x00800000) /*!< RDATA_SLV bit 7 */
Kojto 93:e188a91d3eaa 1869 #define ADC34_CDR_RDATA_SLV_8 ((uint32_t)0x01000000) /*!< RDATA_SLV bit 8 */
Kojto 93:e188a91d3eaa 1870 #define ADC34_CDR_RDATA_SLV_9 ((uint32_t)0x02000000) /*!< RDATA_SLV bit 9 */
Kojto 93:e188a91d3eaa 1871 #define ADC34_CDR_RDATA_SLV_10 ((uint32_t)0x04000000) /*!< RDATA_SLV bit 10 */
Kojto 93:e188a91d3eaa 1872 #define ADC34_CDR_RDATA_SLV_11 ((uint32_t)0x08000000) /*!< RDATA_SLV bit 11 */
Kojto 93:e188a91d3eaa 1873 #define ADC34_CDR_RDATA_SLV_12 ((uint32_t)0x10000000) /*!< RDATA_SLV bit 12 */
Kojto 93:e188a91d3eaa 1874 #define ADC34_CDR_RDATA_SLV_13 ((uint32_t)0x20000000) /*!< RDATA_SLV bit 13 */
Kojto 93:e188a91d3eaa 1875 #define ADC34_CDR_RDATA_SLV_14 ((uint32_t)0x40000000) /*!< RDATA_SLV bit 14 */
Kojto 93:e188a91d3eaa 1876 #define ADC34_CDR_RDATA_SLV_15 ((uint32_t)0x80000000) /*!< RDATA_SLV bit 15 */
Kojto 93:e188a91d3eaa 1877
Kojto 93:e188a91d3eaa 1878 /******************************************************************************/
Kojto 93:e188a91d3eaa 1879 /* */
Kojto 93:e188a91d3eaa 1880 /* Analog Comparators (COMP) */
Kojto 93:e188a91d3eaa 1881 /* */
Kojto 93:e188a91d3eaa 1882 /******************************************************************************/
Kojto 93:e188a91d3eaa 1883 /********************** Bit definition for COMP1_CSR register ***************/
Kojto 93:e188a91d3eaa 1884 #define COMP1_CSR_COMP1EN ((uint32_t)0x00000001) /*!< COMP1 enable */
Kojto 93:e188a91d3eaa 1885 #define COMP1_CSR_COMP1SW1 ((uint32_t)0x00000002) /*!< COMP1 SW1 switch control */
Kojto 93:e188a91d3eaa 1886 #define COMP1_CSR_COMP1INSEL ((uint32_t)0x00000070) /*!< COMP1 inverting input select */
Kojto 93:e188a91d3eaa 1887 #define COMP1_CSR_COMP1INSEL_0 ((uint32_t)0x00000010) /*!< COMP1 inverting input select bit 0 */
Kojto 93:e188a91d3eaa 1888 #define COMP1_CSR_COMP1INSEL_1 ((uint32_t)0x00000020) /*!< COMP1 inverting input select bit 1 */
Kojto 93:e188a91d3eaa 1889 #define COMP1_CSR_COMP1INSEL_2 ((uint32_t)0x00000040) /*!< COMP1 inverting input select bit 2 */
Kojto 93:e188a91d3eaa 1890 #define COMP1_CSR_COMP1OUTSEL ((uint32_t)0x00003C00) /*!< COMP1 output select */
Kojto 93:e188a91d3eaa 1891 #define COMP1_CSR_COMP1OUTSEL_0 ((uint32_t)0x00000400) /*!< COMP1 output select bit 0 */
Kojto 93:e188a91d3eaa 1892 #define COMP1_CSR_COMP1OUTSEL_1 ((uint32_t)0x00000800) /*!< COMP1 output select bit 1 */
Kojto 93:e188a91d3eaa 1893 #define COMP1_CSR_COMP1OUTSEL_2 ((uint32_t)0x00001000) /*!< COMP1 output select bit 2 */
Kojto 93:e188a91d3eaa 1894 #define COMP1_CSR_COMP1OUTSEL_3 ((uint32_t)0x00002000) /*!< COMP1 output select bit 3 */
Kojto 93:e188a91d3eaa 1895 #define COMP1_CSR_COMP1POL ((uint32_t)0x00008000) /*!< COMP1 output polarity */
Kojto 93:e188a91d3eaa 1896 #define COMP1_CSR_COMP1BLANKING ((uint32_t)0x000C0000) /*!< COMP1 blanking */
Kojto 93:e188a91d3eaa 1897 #define COMP1_CSR_COMP1BLANKING_0 ((uint32_t)0x00040000) /*!< COMP1 blanking bit 0 */
Kojto 93:e188a91d3eaa 1898 #define COMP1_CSR_COMP1BLANKING_1 ((uint32_t)0x00080000) /*!< COMP1 blanking bit 1 */
Kojto 93:e188a91d3eaa 1899 #define COMP1_CSR_COMP1BLANKING_2 ((uint32_t)0x00100000) /*!< COMP1 blanking bit 2 */
Kojto 93:e188a91d3eaa 1900 #define COMP1_CSR_COMP1OUT ((uint32_t)0x40000000) /*!< COMP1 output level */
Kojto 93:e188a91d3eaa 1901 #define COMP1_CSR_COMP1LOCK ((uint32_t)0x80000000) /*!< COMP1 lock */
Kojto 93:e188a91d3eaa 1902
Kojto 93:e188a91d3eaa 1903 /********************** Bit definition for COMP2_CSR register ***************/
Kojto 93:e188a91d3eaa 1904 #define COMP2_CSR_COMP2EN ((uint32_t)0x00000001) /*!< COMP2 enable */
Kojto 93:e188a91d3eaa 1905 #define COMP2_CSR_COMP2INSEL ((uint32_t)0x00400070) /*!< COMP2 inverting input select */
Kojto 93:e188a91d3eaa 1906 #define COMP2_CSR_COMP2INSEL_0 ((uint32_t)0x00000010) /*!< COMP2 inverting input select bit 0 */
Kojto 93:e188a91d3eaa 1907 #define COMP2_CSR_COMP2INSEL_1 ((uint32_t)0x00000020) /*!< COMP2 inverting input select bit 1 */
Kojto 93:e188a91d3eaa 1908 #define COMP2_CSR_COMP2INSEL_2 ((uint32_t)0x00000040) /*!< COMP2 inverting input select bit 2 */
Kojto 93:e188a91d3eaa 1909 #define COMP2_CSR_COMP2INSEL_3 ((uint32_t)0x00400000) /*!< COMP2 inverting input select bit 3 */
Kojto 93:e188a91d3eaa 1910 #define COMP2_CSR_COMP2OUTSEL ((uint32_t)0x00003C00) /*!< COMP2 output select */
Kojto 93:e188a91d3eaa 1911 #define COMP2_CSR_COMP2OUTSEL_0 ((uint32_t)0x00000400) /*!< COMP2 output select bit 0 */
Kojto 93:e188a91d3eaa 1912 #define COMP2_CSR_COMP2OUTSEL_1 ((uint32_t)0x00000800) /*!< COMP2 output select bit 1 */
Kojto 93:e188a91d3eaa 1913 #define COMP2_CSR_COMP2OUTSEL_2 ((uint32_t)0x00001000) /*!< COMP2 output select bit 2 */
Kojto 93:e188a91d3eaa 1914 #define COMP2_CSR_COMP2OUTSEL_3 ((uint32_t)0x00002000) /*!< COMP2 output select bit 3 */
Kojto 93:e188a91d3eaa 1915 #define COMP2_CSR_COMP2POL ((uint32_t)0x00008000) /*!< COMP2 output polarity */
Kojto 93:e188a91d3eaa 1916 #define COMP2_CSR_COMP2BLANKING ((uint32_t)0x000C0000) /*!< COMP2 blanking */
Kojto 93:e188a91d3eaa 1917 #define COMP2_CSR_COMP2BLANKING_0 ((uint32_t)0x00040000) /*!< COMP2 blanking bit 0 */
Kojto 93:e188a91d3eaa 1918 #define COMP2_CSR_COMP2BLANKING_1 ((uint32_t)0x00080000) /*!< COMP2 blanking bit 1 */
Kojto 93:e188a91d3eaa 1919 #define COMP2_CSR_COMP2BLANKING_2 ((uint32_t)0x00100000) /*!< COMP2 blanking bit 2 */
Kojto 93:e188a91d3eaa 1920 #define COMP2_CSR_COMP2OUT ((uint32_t)0x40000000) /*!< COMP2 output level */
Kojto 93:e188a91d3eaa 1921 #define COMP2_CSR_COMP2LOCK ((uint32_t)0x80000000) /*!< COMP2 lock */
Kojto 93:e188a91d3eaa 1922
Kojto 93:e188a91d3eaa 1923 /********************** Bit definition for COMP3_CSR register ***************/
Kojto 93:e188a91d3eaa 1924 #define COMP3_CSR_COMP3EN ((uint32_t)0x00000001) /*!< COMP3 enable */
Kojto 93:e188a91d3eaa 1925 #define COMP3_CSR_COMP3INSEL ((uint32_t)0x00000070) /*!< COMP3 inverting input select */
Kojto 93:e188a91d3eaa 1926 #define COMP3_CSR_COMP3INSEL_0 ((uint32_t)0x00000010) /*!< COMP3 inverting input select bit 0 */
Kojto 93:e188a91d3eaa 1927 #define COMP3_CSR_COMP3INSEL_1 ((uint32_t)0x00000020) /*!< COMP3 inverting input select bit 1 */
Kojto 93:e188a91d3eaa 1928 #define COMP3_CSR_COMP3INSEL_2 ((uint32_t)0x00000040) /*!< COMP3 inverting input select bit 2 */
Kojto 93:e188a91d3eaa 1929 #define COMP3_CSR_COMP3OUTSEL ((uint32_t)0x00003C00) /*!< COMP3 output select */
Kojto 93:e188a91d3eaa 1930 #define COMP3_CSR_COMP3OUTSEL_0 ((uint32_t)0x00000400) /*!< COMP3 output select bit 0 */
Kojto 93:e188a91d3eaa 1931 #define COMP3_CSR_COMP3OUTSEL_1 ((uint32_t)0x00000800) /*!< COMP3 output select bit 1 */
Kojto 93:e188a91d3eaa 1932 #define COMP3_CSR_COMP3OUTSEL_2 ((uint32_t)0x00001000) /*!< COMP3 output select bit 2 */
Kojto 93:e188a91d3eaa 1933 #define COMP3_CSR_COMP3OUTSEL_3 ((uint32_t)0x00002000) /*!< COMP3 output select bit 3 */
Kojto 93:e188a91d3eaa 1934 #define COMP3_CSR_COMP3POL ((uint32_t)0x00008000) /*!< COMP3 output polarity */
Kojto 93:e188a91d3eaa 1935 #define COMP3_CSR_COMP3BLANKING ((uint32_t)0x000C0000) /*!< COMP3 blanking */
Kojto 93:e188a91d3eaa 1936 #define COMP3_CSR_COMP3BLANKING_0 ((uint32_t)0x00040000) /*!< COMP3 blanking bit 0 */
Kojto 93:e188a91d3eaa 1937 #define COMP3_CSR_COMP3BLANKING_1 ((uint32_t)0x00080000) /*!< COMP3 blanking bit 1 */
Kojto 93:e188a91d3eaa 1938 #define COMP3_CSR_COMP3BLANKING_2 ((uint32_t)0x00100000) /*!< COMP3 blanking bit 2 */
Kojto 93:e188a91d3eaa 1939 #define COMP3_CSR_COMP3OUT ((uint32_t)0x40000000) /*!< COMP3 output level */
Kojto 93:e188a91d3eaa 1940 #define COMP3_CSR_COMP3LOCK ((uint32_t)0x80000000) /*!< COMP3 lock */
Kojto 93:e188a91d3eaa 1941
Kojto 93:e188a91d3eaa 1942 /********************** Bit definition for COMP4_CSR register ***************/
Kojto 93:e188a91d3eaa 1943 #define COMP4_CSR_COMP4EN ((uint32_t)0x00000001) /*!< COMP4 enable */
Kojto 93:e188a91d3eaa 1944 #define COMP4_CSR_COMP4INSEL ((uint32_t)0x00400070) /*!< COMP4 inverting input select */
Kojto 93:e188a91d3eaa 1945 #define COMP4_CSR_COMP4INSEL_0 ((uint32_t)0x00000010) /*!< COMP4 inverting input select bit 0 */
Kojto 93:e188a91d3eaa 1946 #define COMP4_CSR_COMP4INSEL_1 ((uint32_t)0x00000020) /*!< COMP4 inverting input select bit 1 */
Kojto 93:e188a91d3eaa 1947 #define COMP4_CSR_COMP4INSEL_2 ((uint32_t)0x00000040) /*!< COMP4 inverting input select bit 2 */
Kojto 93:e188a91d3eaa 1948 #define COMP4_CSR_COMP4INSEL_3 ((uint32_t)0x00400000) /*!< COMP4 inverting input select bit 3 */
Kojto 93:e188a91d3eaa 1949 #define COMP4_CSR_COMP4OUTSEL ((uint32_t)0x00003C00) /*!< COMP4 output select */
Kojto 93:e188a91d3eaa 1950 #define COMP4_CSR_COMP4OUTSEL_0 ((uint32_t)0x00000400) /*!< COMP4 output select bit 0 */
Kojto 93:e188a91d3eaa 1951 #define COMP4_CSR_COMP4OUTSEL_1 ((uint32_t)0x00000800) /*!< COMP4 output select bit 1 */
Kojto 93:e188a91d3eaa 1952 #define COMP4_CSR_COMP4OUTSEL_2 ((uint32_t)0x00001000) /*!< COMP4 output select bit 2 */
Kojto 93:e188a91d3eaa 1953 #define COMP4_CSR_COMP4OUTSEL_3 ((uint32_t)0x00002000) /*!< COMP4 output select bit 3 */
Kojto 93:e188a91d3eaa 1954 #define COMP4_CSR_COMP4POL ((uint32_t)0x00008000) /*!< COMP4 output polarity */
Kojto 93:e188a91d3eaa 1955 #define COMP4_CSR_COMP4BLANKING ((uint32_t)0x000C0000) /*!< COMP4 blanking */
Kojto 93:e188a91d3eaa 1956 #define COMP4_CSR_COMP4BLANKING_0 ((uint32_t)0x00040000) /*!< COMP4 blanking bit 0 */
Kojto 93:e188a91d3eaa 1957 #define COMP4_CSR_COMP4BLANKING_1 ((uint32_t)0x00080000) /*!< COMP4 blanking bit 1 */
Kojto 93:e188a91d3eaa 1958 #define COMP4_CSR_COMP4BLANKING_2 ((uint32_t)0x00100000) /*!< COMP4 blanking bit 2 */
Kojto 93:e188a91d3eaa 1959 #define COMP4_CSR_COMP4OUT ((uint32_t)0x40000000) /*!< COMP4 output level */
Kojto 93:e188a91d3eaa 1960 #define COMP4_CSR_COMP4LOCK ((uint32_t)0x80000000) /*!< COMP4 lock */
Kojto 93:e188a91d3eaa 1961
Kojto 93:e188a91d3eaa 1962 /********************** Bit definition for COMP5_CSR register ***************/
Kojto 93:e188a91d3eaa 1963 #define COMP5_CSR_COMP5EN ((uint32_t)0x00000001) /*!< COMP5 enable */
Kojto 93:e188a91d3eaa 1964 #define COMP5_CSR_COMP5INSEL ((uint32_t)0x00000070) /*!< COMP5 inverting input select */
Kojto 93:e188a91d3eaa 1965 #define COMP5_CSR_COMP5INSEL_0 ((uint32_t)0x00000010) /*!< COMP5 inverting input select bit 0 */
Kojto 93:e188a91d3eaa 1966 #define COMP5_CSR_COMP5INSEL_1 ((uint32_t)0x00000020) /*!< COMP5 inverting input select bit 1 */
Kojto 93:e188a91d3eaa 1967 #define COMP5_CSR_COMP5INSEL_2 ((uint32_t)0x00000040) /*!< COMP5 inverting input select bit 2 */
Kojto 93:e188a91d3eaa 1968 #define COMP5_CSR_COMP5OUTSEL ((uint32_t)0x00003C00) /*!< COMP5 output select */
Kojto 93:e188a91d3eaa 1969 #define COMP5_CSR_COMP5OUTSEL_0 ((uint32_t)0x00000400) /*!< COMP5 output select bit 0 */
Kojto 93:e188a91d3eaa 1970 #define COMP5_CSR_COMP5OUTSEL_1 ((uint32_t)0x00000800) /*!< COMP5 output select bit 1 */
Kojto 93:e188a91d3eaa 1971 #define COMP5_CSR_COMP5OUTSEL_2 ((uint32_t)0x00001000) /*!< COMP5 output select bit 2 */
Kojto 93:e188a91d3eaa 1972 #define COMP5_CSR_COMP5OUTSEL_3 ((uint32_t)0x00002000) /*!< COMP5 output select bit 3 */
Kojto 93:e188a91d3eaa 1973 #define COMP5_CSR_COMP5POL ((uint32_t)0x00008000) /*!< COMP5 output polarity */
Kojto 93:e188a91d3eaa 1974 #define COMP5_CSR_COMP5BLANKING ((uint32_t)0x000C0000) /*!< COMP5 blanking */
Kojto 93:e188a91d3eaa 1975 #define COMP5_CSR_COMP5BLANKING_0 ((uint32_t)0x00040000) /*!< COMP5 blanking bit 0 */
Kojto 93:e188a91d3eaa 1976 #define COMP5_CSR_COMP5BLANKING_1 ((uint32_t)0x00080000) /*!< COMP5 blanking bit 1 */
Kojto 93:e188a91d3eaa 1977 #define COMP5_CSR_COMP5BLANKING_2 ((uint32_t)0x00100000) /*!< COMP5 blanking bit 2 */
Kojto 93:e188a91d3eaa 1978 #define COMP5_CSR_COMP5OUT ((uint32_t)0x40000000) /*!< COMP5 output level */
Kojto 93:e188a91d3eaa 1979 #define COMP5_CSR_COMP5LOCK ((uint32_t)0x80000000) /*!< COMP5 lock */
Kojto 93:e188a91d3eaa 1980
Kojto 93:e188a91d3eaa 1981 /********************** Bit definition for COMP6_CSR register ***************/
Kojto 93:e188a91d3eaa 1982 #define COMP6_CSR_COMP6EN ((uint32_t)0x00000001) /*!< COMP6 enable */
Kojto 93:e188a91d3eaa 1983 #define COMP6_CSR_COMP6INSEL ((uint32_t)0x00400070) /*!< COMP6 inverting input select */
Kojto 93:e188a91d3eaa 1984 #define COMP6_CSR_COMP6INSEL_0 ((uint32_t)0x00000010) /*!< COMP6 inverting input select bit 0 */
Kojto 93:e188a91d3eaa 1985 #define COMP6_CSR_COMP6INSEL_1 ((uint32_t)0x00000020) /*!< COMP6 inverting input select bit 1 */
Kojto 93:e188a91d3eaa 1986 #define COMP6_CSR_COMP6INSEL_2 ((uint32_t)0x00000040) /*!< COMP6 inverting input select bit 2 */
Kojto 93:e188a91d3eaa 1987 #define COMP6_CSR_COMP6INSEL_3 ((uint32_t)0x00400000) /*!< COMP6 inverting input select bit 3 */
Kojto 93:e188a91d3eaa 1988 #define COMP6_CSR_COMP6OUTSEL ((uint32_t)0x00003C00) /*!< COMP6 output select */
Kojto 93:e188a91d3eaa 1989 #define COMP6_CSR_COMP6OUTSEL_0 ((uint32_t)0x00000400) /*!< COMP6 output select bit 0 */
Kojto 93:e188a91d3eaa 1990 #define COMP6_CSR_COMP6OUTSEL_1 ((uint32_t)0x00000800) /*!< COMP6 output select bit 1 */
Kojto 93:e188a91d3eaa 1991 #define COMP6_CSR_COMP6OUTSEL_2 ((uint32_t)0x00001000) /*!< COMP6 output select bit 2 */
Kojto 93:e188a91d3eaa 1992 #define COMP6_CSR_COMP6OUTSEL_3 ((uint32_t)0x00002000) /*!< COMP6 output select bit 3 */
Kojto 93:e188a91d3eaa 1993 #define COMP6_CSR_COMP6POL ((uint32_t)0x00008000) /*!< COMP6 output polarity */
Kojto 93:e188a91d3eaa 1994 #define COMP6_CSR_COMP6BLANKING ((uint32_t)0x000C0000) /*!< COMP6 blanking */
Kojto 93:e188a91d3eaa 1995 #define COMP6_CSR_COMP6BLANKING_0 ((uint32_t)0x00040000) /*!< COMP6 blanking bit 0 */
Kojto 93:e188a91d3eaa 1996 #define COMP6_CSR_COMP6BLANKING_1 ((uint32_t)0x00080000) /*!< COMP6 blanking bit 1 */
Kojto 93:e188a91d3eaa 1997 #define COMP6_CSR_COMP6BLANKING_2 ((uint32_t)0x00100000) /*!< COMP6 blanking bit 2 */
Kojto 93:e188a91d3eaa 1998 #define COMP6_CSR_COMP6OUT ((uint32_t)0x40000000) /*!< COMP6 output level */
Kojto 93:e188a91d3eaa 1999 #define COMP6_CSR_COMP6LOCK ((uint32_t)0x80000000) /*!< COMP6 lock */
Kojto 93:e188a91d3eaa 2000
Kojto 93:e188a91d3eaa 2001 /********************** Bit definition for COMP7_CSR register ***************/
Kojto 93:e188a91d3eaa 2002 #define COMP7_CSR_COMP7EN ((uint32_t)0x00000001) /*!< COMP7 enable */
Kojto 93:e188a91d3eaa 2003 #define COMP7_CSR_COMP7INSEL ((uint32_t)0x00000070) /*!< COMP7 inverting input select */
Kojto 93:e188a91d3eaa 2004 #define COMP7_CSR_COMP7INSEL_0 ((uint32_t)0x00000010) /*!< COMP7 inverting input select bit 0 */
Kojto 93:e188a91d3eaa 2005 #define COMP7_CSR_COMP7INSEL_1 ((uint32_t)0x00000020) /*!< COMP7 inverting input select bit 1 */
Kojto 93:e188a91d3eaa 2006 #define COMP7_CSR_COMP7INSEL_2 ((uint32_t)0x00000040) /*!< COMP7 inverting input select bit 2 */
Kojto 93:e188a91d3eaa 2007 #define COMP7_CSR_COMP7OUTSEL ((uint32_t)0x00003C00) /*!< COMP7 output select */
Kojto 93:e188a91d3eaa 2008 #define COMP7_CSR_COMP7OUTSEL_0 ((uint32_t)0x00000400) /*!< COMP7 output select bit 0 */
Kojto 93:e188a91d3eaa 2009 #define COMP7_CSR_COMP7OUTSEL_1 ((uint32_t)0x00000800) /*!< COMP7 output select bit 1 */
Kojto 93:e188a91d3eaa 2010 #define COMP7_CSR_COMP7OUTSEL_2 ((uint32_t)0x00001000) /*!< COMP7 output select bit 2 */
Kojto 93:e188a91d3eaa 2011 #define COMP7_CSR_COMP7OUTSEL_3 ((uint32_t)0x00002000) /*!< COMP7 output select bit 3 */
Kojto 93:e188a91d3eaa 2012 #define COMP7_CSR_COMP7POL ((uint32_t)0x00008000) /*!< COMP7 output polarity */
Kojto 93:e188a91d3eaa 2013 #define COMP7_CSR_COMP7BLANKING ((uint32_t)0x000C0000) /*!< COMP7 blanking */
Kojto 93:e188a91d3eaa 2014 #define COMP7_CSR_COMP7BLANKING_0 ((uint32_t)0x00040000) /*!< COMP7 blanking bit 0 */
Kojto 93:e188a91d3eaa 2015 #define COMP7_CSR_COMP7BLANKING_1 ((uint32_t)0x00080000) /*!< COMP7 blanking bit 1 */
Kojto 93:e188a91d3eaa 2016 #define COMP7_CSR_COMP7BLANKING_2 ((uint32_t)0x00100000) /*!< COMP7 blanking bit 2 */
Kojto 93:e188a91d3eaa 2017 #define COMP7_CSR_COMP7OUT ((uint32_t)0x40000000) /*!< COMP7 output level */
Kojto 93:e188a91d3eaa 2018 #define COMP7_CSR_COMP7LOCK ((uint32_t)0x80000000) /*!< COMP7 lock */
Kojto 93:e188a91d3eaa 2019
Kojto 93:e188a91d3eaa 2020 /********************** Bit definition for COMP_CSR register ****************/
Kojto 93:e188a91d3eaa 2021 #define COMP_CSR_COMPxEN ((uint32_t)0x00000001) /*!< COMPx enable */
Kojto 93:e188a91d3eaa 2022 #define COMP_CSR_COMPxINSEL ((uint32_t)0x00400070) /*!< COMPx inverting input select */
Kojto 93:e188a91d3eaa 2023 #define COMP_CSR_COMPxINSEL_0 ((uint32_t)0x00000010) /*!< COMPx inverting input select bit 0 */
Kojto 93:e188a91d3eaa 2024 #define COMP_CSR_COMPxINSEL_1 ((uint32_t)0x00000020) /*!< COMPx inverting input select bit 1 */
Kojto 93:e188a91d3eaa 2025 #define COMP_CSR_COMPxINSEL_2 ((uint32_t)0x00000040) /*!< COMPx inverting input select bit 2 */
Kojto 93:e188a91d3eaa 2026 #define COMP_CSR_COMPxINSEL_3 ((uint32_t)0x00400000) /*!< COMPx inverting input select bit 3 */
Kojto 93:e188a91d3eaa 2027 #define COMP_CSR_COMPxOUTSEL ((uint32_t)0x00003C00) /*!< COMPx output select */
Kojto 93:e188a91d3eaa 2028 #define COMP_CSR_COMPxOUTSEL_0 ((uint32_t)0x00000400) /*!< COMPx output select bit 0 */
Kojto 93:e188a91d3eaa 2029 #define COMP_CSR_COMPxOUTSEL_1 ((uint32_t)0x00000800) /*!< COMPx output select bit 1 */
Kojto 93:e188a91d3eaa 2030 #define COMP_CSR_COMPxOUTSEL_2 ((uint32_t)0x00001000) /*!< COMPx output select bit 2 */
Kojto 93:e188a91d3eaa 2031 #define COMP_CSR_COMPxOUTSEL_3 ((uint32_t)0x00002000) /*!< COMPx output select bit 3 */
Kojto 93:e188a91d3eaa 2032 #define COMP_CSR_COMPxPOL ((uint32_t)0x00008000) /*!< COMPx output polarity */
Kojto 93:e188a91d3eaa 2033 #define COMP_CSR_COMPxBLANKING ((uint32_t)0x000C0000) /*!< COMPx blanking */
Kojto 93:e188a91d3eaa 2034 #define COMP_CSR_COMPxBLANKING_0 ((uint32_t)0x00040000) /*!< COMPx blanking bit 0 */
Kojto 93:e188a91d3eaa 2035 #define COMP_CSR_COMPxBLANKING_1 ((uint32_t)0x00080000) /*!< COMPx blanking bit 1 */
Kojto 93:e188a91d3eaa 2036 #define COMP_CSR_COMPxBLANKING_2 ((uint32_t)0x00100000) /*!< COMPx blanking bit 2 */
Kojto 93:e188a91d3eaa 2037 #define COMP_CSR_COMPxOUT ((uint32_t)0x40000000) /*!< COMPx output level */
Kojto 93:e188a91d3eaa 2038 #define COMP_CSR_COMPxLOCK ((uint32_t)0x80000000) /*!< COMPx lock */
Kojto 93:e188a91d3eaa 2039
Kojto 93:e188a91d3eaa 2040 /******************************************************************************/
Kojto 93:e188a91d3eaa 2041 /* */
Kojto 93:e188a91d3eaa 2042 /* Operational Amplifier (OPAMP) */
Kojto 93:e188a91d3eaa 2043 /* */
Kojto 93:e188a91d3eaa 2044 /******************************************************************************/
Kojto 93:e188a91d3eaa 2045 /********************* Bit definition for OPAMP1_CSR register ***************/
Kojto 93:e188a91d3eaa 2046 #define OPAMP1_CSR_OPAMP1EN ((uint32_t)0x00000001) /*!< OPAMP1 enable */
Kojto 93:e188a91d3eaa 2047 #define OPAMP1_CSR_FORCEVP ((uint32_t)0x00000002) /*!< Connect the internal references to the plus input of the OPAMPX */
Kojto 93:e188a91d3eaa 2048 #define OPAMP1_CSR_VPSEL ((uint32_t)0x0000000C) /*!< Non inverting input selection */
Kojto 93:e188a91d3eaa 2049 #define OPAMP1_CSR_VPSEL_0 ((uint32_t)0x00000004) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2050 #define OPAMP1_CSR_VPSEL_1 ((uint32_t)0x00000008) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2051 #define OPAMP1_CSR_VMSEL ((uint32_t)0x00000060) /*!< Inverting input selection */
Kojto 93:e188a91d3eaa 2052 #define OPAMP1_CSR_VMSEL_0 ((uint32_t)0x00000020) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2053 #define OPAMP1_CSR_VMSEL_1 ((uint32_t)0x00000040) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2054 #define OPAMP1_CSR_TCMEN ((uint32_t)0x00000080) /*!< Timer-Controlled Mux mode enable */
Kojto 93:e188a91d3eaa 2055 #define OPAMP1_CSR_VMSSEL ((uint32_t)0x00000100) /*!< Inverting input secondary selection */
Kojto 93:e188a91d3eaa 2056 #define OPAMP1_CSR_VPSSEL ((uint32_t)0x00000600) /*!< Non inverting input secondary selection */
Kojto 93:e188a91d3eaa 2057 #define OPAMP1_CSR_VPSSEL_0 ((uint32_t)0x00000200) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2058 #define OPAMP1_CSR_VPSSEL_1 ((uint32_t)0x00000400) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2059 #define OPAMP1_CSR_CALON ((uint32_t)0x00000800) /*!< Calibration mode enable */
Kojto 93:e188a91d3eaa 2060 #define OPAMP1_CSR_CALSEL ((uint32_t)0x00003000) /*!< Calibration selection */
Kojto 93:e188a91d3eaa 2061 #define OPAMP1_CSR_CALSEL_0 ((uint32_t)0x00001000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2062 #define OPAMP1_CSR_CALSEL_1 ((uint32_t)0x00002000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2063 #define OPAMP1_CSR_PGGAIN ((uint32_t)0x0003C000) /*!< Gain in PGA mode */
Kojto 93:e188a91d3eaa 2064 #define OPAMP1_CSR_PGGAIN_0 ((uint32_t)0x00004000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2065 #define OPAMP1_CSR_PGGAIN_1 ((uint32_t)0x00008000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2066 #define OPAMP1_CSR_PGGAIN_2 ((uint32_t)0x00010000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 2067 #define OPAMP1_CSR_PGGAIN_3 ((uint32_t)0x00020000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 2068 #define OPAMP1_CSR_USERTRIM ((uint32_t)0x00040000) /*!< User trimming enable */
Kojto 93:e188a91d3eaa 2069 #define OPAMP1_CSR_TRIMOFFSETP ((uint32_t)0x00F80000) /*!< Offset trimming value (PMOS) */
Kojto 93:e188a91d3eaa 2070 #define OPAMP1_CSR_TRIMOFFSETN ((uint32_t)0x1F000000) /*!< Offset trimming value (NMOS) */
Kojto 93:e188a91d3eaa 2071 #define OPAMP1_CSR_TSTREF ((uint32_t)0x20000000) /*!< It enables the switch to put out the internal reference */
Kojto 93:e188a91d3eaa 2072 #define OPAMP1_CSR_OUTCAL ((uint32_t)0x40000000) /*!< OPAMP ouput status flag */
Kojto 93:e188a91d3eaa 2073 #define OPAMP1_CSR_LOCK ((uint32_t)0x80000000) /*!< OPAMP lock */
Kojto 93:e188a91d3eaa 2074
Kojto 93:e188a91d3eaa 2075 /********************* Bit definition for OPAMP2_CSR register ***************/
Kojto 93:e188a91d3eaa 2076 #define OPAMP2_CSR_OPAMP2EN ((uint32_t)0x00000001) /*!< OPAMP2 enable */
Kojto 93:e188a91d3eaa 2077 #define OPAMP2_CSR_FORCEVP ((uint32_t)0x00000002) /*!< Connect the internal references to the plus input of the OPAMPX */
Kojto 93:e188a91d3eaa 2078 #define OPAMP2_CSR_VPSEL ((uint32_t)0x0000000C) /*!< Non inverting input selection */
Kojto 93:e188a91d3eaa 2079 #define OPAMP2_CSR_VPSEL_0 ((uint32_t)0x00000004) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2080 #define OPAMP2_CSR_VPSEL_1 ((uint32_t)0x00000008) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2081 #define OPAMP2_CSR_VMSEL ((uint32_t)0x00000060) /*!< Inverting input selection */
Kojto 93:e188a91d3eaa 2082 #define OPAMP2_CSR_VMSEL_0 ((uint32_t)0x00000020) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2083 #define OPAMP2_CSR_VMSEL_1 ((uint32_t)0x00000040) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2084 #define OPAMP2_CSR_TCMEN ((uint32_t)0x00000080) /*!< Timer-Controlled Mux mode enable */
Kojto 93:e188a91d3eaa 2085 #define OPAMP2_CSR_VMSSEL ((uint32_t)0x00000100) /*!< Inverting input secondary selection */
Kojto 93:e188a91d3eaa 2086 #define OPAMP2_CSR_VPSSEL ((uint32_t)0x00000600) /*!< Non inverting input secondary selection */
Kojto 93:e188a91d3eaa 2087 #define OPAMP2_CSR_VPSSEL_0 ((uint32_t)0x00000200) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2088 #define OPAMP2_CSR_VPSSEL_1 ((uint32_t)0x00000400) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2089 #define OPAMP2_CSR_CALON ((uint32_t)0x00000800) /*!< Calibration mode enable */
Kojto 93:e188a91d3eaa 2090 #define OPAMP2_CSR_CALSEL ((uint32_t)0x00003000) /*!< Calibration selection */
Kojto 93:e188a91d3eaa 2091 #define OPAMP2_CSR_CALSEL_0 ((uint32_t)0x00001000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2092 #define OPAMP2_CSR_CALSEL_1 ((uint32_t)0x00002000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2093 #define OPAMP2_CSR_PGGAIN ((uint32_t)0x0003C000) /*!< Gain in PGA mode */
Kojto 93:e188a91d3eaa 2094 #define OPAMP2_CSR_PGGAIN_0 ((uint32_t)0x00004000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2095 #define OPAMP2_CSR_PGGAIN_1 ((uint32_t)0x00008000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2096 #define OPAMP2_CSR_PGGAIN_2 ((uint32_t)0x00010000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 2097 #define OPAMP2_CSR_PGGAIN_3 ((uint32_t)0x00020000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 2098 #define OPAMP2_CSR_USERTRIM ((uint32_t)0x00040000) /*!< User trimming enable */
Kojto 93:e188a91d3eaa 2099 #define OPAMP2_CSR_TRIMOFFSETP ((uint32_t)0x00F80000) /*!< Offset trimming value (PMOS) */
Kojto 93:e188a91d3eaa 2100 #define OPAMP2_CSR_TRIMOFFSETN ((uint32_t)0x1F000000) /*!< Offset trimming value (NMOS) */
Kojto 93:e188a91d3eaa 2101 #define OPAMP2_CSR_TSTREF ((uint32_t)0x20000000) /*!< It enables the switch to put out the internal reference */
Kojto 93:e188a91d3eaa 2102 #define OPAMP2_CSR_OUTCAL ((uint32_t)0x40000000) /*!< OPAMP ouput status flag */
Kojto 93:e188a91d3eaa 2103 #define OPAMP2_CSR_LOCK ((uint32_t)0x80000000) /*!< OPAMP lock */
Kojto 93:e188a91d3eaa 2104
Kojto 93:e188a91d3eaa 2105 /********************* Bit definition for OPAMP3_CSR register ***************/
Kojto 93:e188a91d3eaa 2106 #define OPAMP3_CSR_OPAMP3EN ((uint32_t)0x00000001) /*!< OPAMP3 enable */
Kojto 93:e188a91d3eaa 2107 #define OPAMP3_CSR_FORCEVP ((uint32_t)0x00000002) /*!< Connect the internal references to the plus input of the OPAMPX */
Kojto 93:e188a91d3eaa 2108 #define OPAMP3_CSR_VPSEL ((uint32_t)0x0000000C) /*!< Non inverting input selection */
Kojto 93:e188a91d3eaa 2109 #define OPAMP3_CSR_VPSEL_0 ((uint32_t)0x00000004) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2110 #define OPAMP3_CSR_VPSEL_1 ((uint32_t)0x00000008) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2111 #define OPAMP3_CSR_VMSEL ((uint32_t)0x00000060) /*!< Inverting input selection */
Kojto 93:e188a91d3eaa 2112 #define OPAMP3_CSR_VMSEL_0 ((uint32_t)0x00000020) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2113 #define OPAMP3_CSR_VMSEL_1 ((uint32_t)0x00000040) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2114 #define OPAMP3_CSR_TCMEN ((uint32_t)0x00000080) /*!< Timer-Controlled Mux mode enable */
Kojto 93:e188a91d3eaa 2115 #define OPAMP3_CSR_VMSSEL ((uint32_t)0x00000100) /*!< Inverting input secondary selection */
Kojto 93:e188a91d3eaa 2116 #define OPAMP3_CSR_VPSSEL ((uint32_t)0x00000600) /*!< Non inverting input secondary selection */
Kojto 93:e188a91d3eaa 2117 #define OPAMP3_CSR_VPSSEL_0 ((uint32_t)0x00000200) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2118 #define OPAMP3_CSR_VPSSEL_1 ((uint32_t)0x00000400) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2119 #define OPAMP3_CSR_CALON ((uint32_t)0x00000800) /*!< Calibration mode enable */
Kojto 93:e188a91d3eaa 2120 #define OPAMP3_CSR_CALSEL ((uint32_t)0x00003000) /*!< Calibration selection */
Kojto 93:e188a91d3eaa 2121 #define OPAMP3_CSR_CALSEL_0 ((uint32_t)0x00001000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2122 #define OPAMP3_CSR_CALSEL_1 ((uint32_t)0x00002000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2123 #define OPAMP3_CSR_PGGAIN ((uint32_t)0x0003C000) /*!< Gain in PGA mode */
Kojto 93:e188a91d3eaa 2124 #define OPAMP3_CSR_PGGAIN_0 ((uint32_t)0x00004000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2125 #define OPAMP3_CSR_PGGAIN_1 ((uint32_t)0x00008000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2126 #define OPAMP3_CSR_PGGAIN_2 ((uint32_t)0x00010000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 2127 #define OPAMP3_CSR_PGGAIN_3 ((uint32_t)0x00020000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 2128 #define OPAMP3_CSR_USERTRIM ((uint32_t)0x00040000) /*!< User trimming enable */
Kojto 93:e188a91d3eaa 2129 #define OPAMP3_CSR_TRIMOFFSETP ((uint32_t)0x00F80000) /*!< Offset trimming value (PMOS) */
Kojto 93:e188a91d3eaa 2130 #define OPAMP3_CSR_TRIMOFFSETN ((uint32_t)0x1F000000) /*!< Offset trimming value (NMOS) */
Kojto 93:e188a91d3eaa 2131 #define OPAMP3_CSR_TSTREF ((uint32_t)0x20000000) /*!< It enables the switch to put out the internal reference */
Kojto 93:e188a91d3eaa 2132 #define OPAMP3_CSR_OUTCAL ((uint32_t)0x40000000) /*!< OPAMP ouput status flag */
Kojto 93:e188a91d3eaa 2133 #define OPAMP3_CSR_LOCK ((uint32_t)0x80000000) /*!< OPAMP lock */
Kojto 93:e188a91d3eaa 2134
Kojto 93:e188a91d3eaa 2135 /********************* Bit definition for OPAMP4_CSR register ***************/
Kojto 93:e188a91d3eaa 2136 #define OPAMP4_CSR_OPAMP4EN ((uint32_t)0x00000001) /*!< OPAMP4 enable */
Kojto 93:e188a91d3eaa 2137 #define OPAMP4_CSR_FORCEVP ((uint32_t)0x00000002) /*!< Connect the internal references to the plus input of the OPAMPX */
Kojto 93:e188a91d3eaa 2138 #define OPAMP4_CSR_VPSEL ((uint32_t)0x0000000C) /*!< Non inverting input selection */
Kojto 93:e188a91d3eaa 2139 #define OPAMP4_CSR_VPSEL_0 ((uint32_t)0x00000004) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2140 #define OPAMP4_CSR_VPSEL_1 ((uint32_t)0x00000008) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2141 #define OPAMP4_CSR_VMSEL ((uint32_t)0x00000060) /*!< Inverting input selection */
Kojto 93:e188a91d3eaa 2142 #define OPAMP4_CSR_VMSEL_0 ((uint32_t)0x00000020) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2143 #define OPAMP4_CSR_VMSEL_1 ((uint32_t)0x00000040) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2144 #define OPAMP4_CSR_TCMEN ((uint32_t)0x00000080) /*!< Timer-Controlled Mux mode enable */
Kojto 93:e188a91d3eaa 2145 #define OPAMP4_CSR_VMSSEL ((uint32_t)0x00000100) /*!< Inverting input secondary selection */
Kojto 93:e188a91d3eaa 2146 #define OPAMP4_CSR_VPSSEL ((uint32_t)0x00000600) /*!< Non inverting input secondary selection */
Kojto 93:e188a91d3eaa 2147 #define OPAMP4_CSR_VPSSEL_0 ((uint32_t)0x00000200) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2148 #define OPAMP4_CSR_VPSSEL_1 ((uint32_t)0x00000400) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2149 #define OPAMP4_CSR_CALON ((uint32_t)0x00000800) /*!< Calibration mode enable */
Kojto 93:e188a91d3eaa 2150 #define OPAMP4_CSR_CALSEL ((uint32_t)0x00003000) /*!< Calibration selection */
Kojto 93:e188a91d3eaa 2151 #define OPAMP4_CSR_CALSEL_0 ((uint32_t)0x00001000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2152 #define OPAMP4_CSR_CALSEL_1 ((uint32_t)0x00002000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2153 #define OPAMP4_CSR_PGGAIN ((uint32_t)0x0003C000) /*!< Gain in PGA mode */
Kojto 93:e188a91d3eaa 2154 #define OPAMP4_CSR_PGGAIN_0 ((uint32_t)0x00004000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2155 #define OPAMP4_CSR_PGGAIN_1 ((uint32_t)0x00008000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2156 #define OPAMP4_CSR_PGGAIN_2 ((uint32_t)0x00010000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 2157 #define OPAMP4_CSR_PGGAIN_3 ((uint32_t)0x00020000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 2158 #define OPAMP4_CSR_USERTRIM ((uint32_t)0x00040000) /*!< User trimming enable */
Kojto 93:e188a91d3eaa 2159 #define OPAMP4_CSR_TRIMOFFSETP ((uint32_t)0x00F80000) /*!< Offset trimming value (PMOS) */
Kojto 93:e188a91d3eaa 2160 #define OPAMP4_CSR_TRIMOFFSETN ((uint32_t)0x1F000000) /*!< Offset trimming value (NMOS) */
Kojto 93:e188a91d3eaa 2161 #define OPAMP4_CSR_TSTREF ((uint32_t)0x20000000) /*!< It enables the switch to put out the internal reference */
Kojto 93:e188a91d3eaa 2162 #define OPAMP4_CSR_OUTCAL ((uint32_t)0x40000000) /*!< OPAMP ouput status flag */
Kojto 93:e188a91d3eaa 2163 #define OPAMP4_CSR_LOCK ((uint32_t)0x80000000) /*!< OPAMP lock */
Kojto 93:e188a91d3eaa 2164
Kojto 93:e188a91d3eaa 2165 /********************* Bit definition for OPAMPx_CSR register ***************/
Kojto 93:e188a91d3eaa 2166 #define OPAMP_CSR_OPAMPxEN ((uint32_t)0x00000001) /*!< OPAMP enable */
Kojto 93:e188a91d3eaa 2167 #define OPAMP_CSR_FORCEVP ((uint32_t)0x00000002) /*!< Connect the internal references to the plus input of the OPAMPX */
Kojto 93:e188a91d3eaa 2168 #define OPAMP_CSR_VPSEL ((uint32_t)0x0000000C) /*!< Non inverting input selection */
Kojto 93:e188a91d3eaa 2169 #define OPAMP_CSR_VPSEL_0 ((uint32_t)0x00000004) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2170 #define OPAMP_CSR_VPSEL_1 ((uint32_t)0x00000008) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2171 #define OPAMP_CSR_VMSEL ((uint32_t)0x00000060) /*!< Inverting input selection */
Kojto 93:e188a91d3eaa 2172 #define OPAMP_CSR_VMSEL_0 ((uint32_t)0x00000020) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2173 #define OPAMP_CSR_VMSEL_1 ((uint32_t)0x00000040) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2174 #define OPAMP_CSR_TCMEN ((uint32_t)0x00000080) /*!< Timer-Controlled Mux mode enable */
Kojto 93:e188a91d3eaa 2175 #define OPAMP_CSR_VMSSEL ((uint32_t)0x00000100) /*!< Inverting input secondary selection */
Kojto 93:e188a91d3eaa 2176 #define OPAMP_CSR_VPSSEL ((uint32_t)0x00000600) /*!< Non inverting input secondary selection */
Kojto 93:e188a91d3eaa 2177 #define OPAMP_CSR_VPSSEL_0 ((uint32_t)0x00000200) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2178 #define OPAMP_CSR_VPSSEL_1 ((uint32_t)0x00000400) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2179 #define OPAMP_CSR_CALON ((uint32_t)0x00000800) /*!< Calibration mode enable */
Kojto 93:e188a91d3eaa 2180 #define OPAMP_CSR_CALSEL ((uint32_t)0x00003000) /*!< Calibration selection */
Kojto 93:e188a91d3eaa 2181 #define OPAMP_CSR_CALSEL_0 ((uint32_t)0x00001000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2182 #define OPAMP_CSR_CALSEL_1 ((uint32_t)0x00002000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2183 #define OPAMP_CSR_PGGAIN ((uint32_t)0x0003C000) /*!< Gain in PGA mode */
Kojto 93:e188a91d3eaa 2184 #define OPAMP_CSR_PGGAIN_0 ((uint32_t)0x00004000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 2185 #define OPAMP_CSR_PGGAIN_1 ((uint32_t)0x00008000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 2186 #define OPAMP_CSR_PGGAIN_2 ((uint32_t)0x00010000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 2187 #define OPAMP_CSR_PGGAIN_3 ((uint32_t)0x00020000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 2188 #define OPAMP_CSR_USERTRIM ((uint32_t)0x00040000) /*!< User trimming enable */
Kojto 93:e188a91d3eaa 2189 #define OPAMP_CSR_TRIMOFFSETP ((uint32_t)0x00F80000) /*!< Offset trimming value (PMOS) */
Kojto 93:e188a91d3eaa 2190 #define OPAMP_CSR_TRIMOFFSETN ((uint32_t)0x1F000000) /*!< Offset trimming value (NMOS) */
Kojto 93:e188a91d3eaa 2191 #define OPAMP_CSR_TSTREF ((uint32_t)0x20000000) /*!< It enables the switch to put out the internal reference */
Kojto 93:e188a91d3eaa 2192 #define OPAMP_CSR_OUTCAL ((uint32_t)0x40000000) /*!< OPAMP ouput status flag */
Kojto 93:e188a91d3eaa 2193 #define OPAMP_CSR_LOCK ((uint32_t)0x80000000) /*!< OPAMP lock */
Kojto 93:e188a91d3eaa 2194
Kojto 93:e188a91d3eaa 2195 /******************************************************************************/
Kojto 93:e188a91d3eaa 2196 /* */
Kojto 93:e188a91d3eaa 2197 /* Controller Area Network (CAN ) */
Kojto 93:e188a91d3eaa 2198 /* */
Kojto 93:e188a91d3eaa 2199 /******************************************************************************/
Kojto 93:e188a91d3eaa 2200 /******************* Bit definition for CAN_MCR register ********************/
Kojto 93:e188a91d3eaa 2201 #define CAN_MCR_INRQ ((uint32_t)0x00000001) /*!<Initialization Request */
Kojto 93:e188a91d3eaa 2202 #define CAN_MCR_SLEEP ((uint32_t)0x00000002) /*!<Sleep Mode Request */
Kojto 93:e188a91d3eaa 2203 #define CAN_MCR_TXFP ((uint32_t)0x00000004) /*!<Transmit FIFO Priority */
Kojto 93:e188a91d3eaa 2204 #define CAN_MCR_RFLM ((uint32_t)0x00000008) /*!<Receive FIFO Locked Mode */
Kojto 93:e188a91d3eaa 2205 #define CAN_MCR_NART ((uint32_t)0x00000010) /*!<No Automatic Retransmission */
Kojto 93:e188a91d3eaa 2206 #define CAN_MCR_AWUM ((uint32_t)0x00000020) /*!<Automatic Wakeup Mode */
Kojto 93:e188a91d3eaa 2207 #define CAN_MCR_ABOM ((uint32_t)0x00000040) /*!<Automatic Bus-Off Management */
Kojto 93:e188a91d3eaa 2208 #define CAN_MCR_TTCM ((uint32_t)0x00000080) /*!<Time Triggered Communication Mode */
Kojto 93:e188a91d3eaa 2209 #define CAN_MCR_RESET ((uint32_t)0x00008000) /*!<bxCAN software master reset */
Kojto 93:e188a91d3eaa 2210
Kojto 93:e188a91d3eaa 2211 /******************* Bit definition for CAN_MSR register ********************/
Kojto 93:e188a91d3eaa 2212 #define CAN_MSR_INAK ((uint32_t)0x00000001) /*!<Initialization Acknowledge */
Kojto 93:e188a91d3eaa 2213 #define CAN_MSR_SLAK ((uint32_t)0x00000002) /*!<Sleep Acknowledge */
Kojto 93:e188a91d3eaa 2214 #define CAN_MSR_ERRI ((uint32_t)0x00000004) /*!<Error Interrupt */
Kojto 93:e188a91d3eaa 2215 #define CAN_MSR_WKUI ((uint32_t)0x00000008) /*!<Wakeup Interrupt */
Kojto 93:e188a91d3eaa 2216 #define CAN_MSR_SLAKI ((uint32_t)0x00000010) /*!<Sleep Acknowledge Interrupt */
Kojto 93:e188a91d3eaa 2217 #define CAN_MSR_TXM ((uint32_t)0x00000100) /*!<Transmit Mode */
Kojto 93:e188a91d3eaa 2218 #define CAN_MSR_RXM ((uint32_t)0x00000200) /*!<Receive Mode */
Kojto 93:e188a91d3eaa 2219 #define CAN_MSR_SAMP ((uint32_t)0x00000400) /*!<Last Sample Point */
Kojto 93:e188a91d3eaa 2220 #define CAN_MSR_RX ((uint32_t)0x00000800) /*!<CAN Rx Signal */
Kojto 93:e188a91d3eaa 2221
Kojto 93:e188a91d3eaa 2222 /******************* Bit definition for CAN_TSR register ********************/
Kojto 93:e188a91d3eaa 2223 #define CAN_TSR_RQCP0 ((uint32_t)0x00000001) /*!<Request Completed Mailbox0 */
Kojto 93:e188a91d3eaa 2224 #define CAN_TSR_TXOK0 ((uint32_t)0x00000002) /*!<Transmission OK of Mailbox0 */
Kojto 93:e188a91d3eaa 2225 #define CAN_TSR_ALST0 ((uint32_t)0x00000004) /*!<Arbitration Lost for Mailbox0 */
Kojto 93:e188a91d3eaa 2226 #define CAN_TSR_TERR0 ((uint32_t)0x00000008) /*!<Transmission Error of Mailbox0 */
Kojto 93:e188a91d3eaa 2227 #define CAN_TSR_ABRQ0 ((uint32_t)0x00000080) /*!<Abort Request for Mailbox0 */
Kojto 93:e188a91d3eaa 2228 #define CAN_TSR_RQCP1 ((uint32_t)0x00000100) /*!<Request Completed Mailbox1 */
Kojto 93:e188a91d3eaa 2229 #define CAN_TSR_TXOK1 ((uint32_t)0x00000200) /*!<Transmission OK of Mailbox1 */
Kojto 93:e188a91d3eaa 2230 #define CAN_TSR_ALST1 ((uint32_t)0x00000400) /*!<Arbitration Lost for Mailbox1 */
Kojto 93:e188a91d3eaa 2231 #define CAN_TSR_TERR1 ((uint32_t)0x00000800) /*!<Transmission Error of Mailbox1 */
Kojto 93:e188a91d3eaa 2232 #define CAN_TSR_ABRQ1 ((uint32_t)0x00008000) /*!<Abort Request for Mailbox 1 */
Kojto 93:e188a91d3eaa 2233 #define CAN_TSR_RQCP2 ((uint32_t)0x00010000) /*!<Request Completed Mailbox2 */
Kojto 93:e188a91d3eaa 2234 #define CAN_TSR_TXOK2 ((uint32_t)0x00020000) /*!<Transmission OK of Mailbox 2 */
Kojto 93:e188a91d3eaa 2235 #define CAN_TSR_ALST2 ((uint32_t)0x00040000) /*!<Arbitration Lost for mailbox 2 */
Kojto 93:e188a91d3eaa 2236 #define CAN_TSR_TERR2 ((uint32_t)0x00080000) /*!<Transmission Error of Mailbox 2 */
Kojto 93:e188a91d3eaa 2237 #define CAN_TSR_ABRQ2 ((uint32_t)0x00800000) /*!<Abort Request for Mailbox 2 */
Kojto 93:e188a91d3eaa 2238 #define CAN_TSR_CODE ((uint32_t)0x03000000) /*!<Mailbox Code */
Kojto 93:e188a91d3eaa 2239
Kojto 93:e188a91d3eaa 2240 #define CAN_TSR_TME ((uint32_t)0x1C000000) /*!<TME[2:0] bits */
Kojto 93:e188a91d3eaa 2241 #define CAN_TSR_TME0 ((uint32_t)0x04000000) /*!<Transmit Mailbox 0 Empty */
Kojto 93:e188a91d3eaa 2242 #define CAN_TSR_TME1 ((uint32_t)0x08000000) /*!<Transmit Mailbox 1 Empty */
Kojto 93:e188a91d3eaa 2243 #define CAN_TSR_TME2 ((uint32_t)0x10000000) /*!<Transmit Mailbox 2 Empty */
Kojto 93:e188a91d3eaa 2244
Kojto 93:e188a91d3eaa 2245 #define CAN_TSR_LOW ((uint32_t)0xE0000000) /*!<LOW[2:0] bits */
Kojto 93:e188a91d3eaa 2246 #define CAN_TSR_LOW0 ((uint32_t)0x20000000) /*!<Lowest Priority Flag for Mailbox 0 */
Kojto 93:e188a91d3eaa 2247 #define CAN_TSR_LOW1 ((uint32_t)0x40000000) /*!<Lowest Priority Flag for Mailbox 1 */
Kojto 93:e188a91d3eaa 2248 #define CAN_TSR_LOW2 ((uint32_t)0x80000000) /*!<Lowest Priority Flag for Mailbox 2 */
Kojto 93:e188a91d3eaa 2249
Kojto 93:e188a91d3eaa 2250 /******************* Bit definition for CAN_RF0R register *******************/
Kojto 93:e188a91d3eaa 2251 #define CAN_RF0R_FMP0 ((uint32_t)0x00000003) /*!<FIFO 0 Message Pending */
Kojto 93:e188a91d3eaa 2252 #define CAN_RF0R_FULL0 ((uint32_t)0x00000008) /*!<FIFO 0 Full */
Kojto 93:e188a91d3eaa 2253 #define CAN_RF0R_FOVR0 ((uint32_t)0x00000010) /*!<FIFO 0 Overrun */
Kojto 93:e188a91d3eaa 2254 #define CAN_RF0R_RFOM0 ((uint32_t)0x00000020) /*!<Release FIFO 0 Output Mailbox */
Kojto 93:e188a91d3eaa 2255
Kojto 93:e188a91d3eaa 2256 /******************* Bit definition for CAN_RF1R register *******************/
Kojto 93:e188a91d3eaa 2257 #define CAN_RF1R_FMP1 ((uint32_t)0x00000003) /*!<FIFO 1 Message Pending */
Kojto 93:e188a91d3eaa 2258 #define CAN_RF1R_FULL1 ((uint32_t)0x00000008) /*!<FIFO 1 Full */
Kojto 93:e188a91d3eaa 2259 #define CAN_RF1R_FOVR1 ((uint32_t)0x00000010) /*!<FIFO 1 Overrun */
Kojto 93:e188a91d3eaa 2260 #define CAN_RF1R_RFOM1 ((uint32_t)0x00000020) /*!<Release FIFO 1 Output Mailbox */
Kojto 93:e188a91d3eaa 2261
Kojto 93:e188a91d3eaa 2262 /******************** Bit definition for CAN_IER register *******************/
Kojto 93:e188a91d3eaa 2263 #define CAN_IER_TMEIE ((uint32_t)0x00000001) /*!<Transmit Mailbox Empty Interrupt Enable */
Kojto 93:e188a91d3eaa 2264 #define CAN_IER_FMPIE0 ((uint32_t)0x00000002) /*!<FIFO Message Pending Interrupt Enable */
Kojto 93:e188a91d3eaa 2265 #define CAN_IER_FFIE0 ((uint32_t)0x00000004) /*!<FIFO Full Interrupt Enable */
Kojto 93:e188a91d3eaa 2266 #define CAN_IER_FOVIE0 ((uint32_t)0x00000008) /*!<FIFO Overrun Interrupt Enable */
Kojto 93:e188a91d3eaa 2267 #define CAN_IER_FMPIE1 ((uint32_t)0x00000010) /*!<FIFO Message Pending Interrupt Enable */
Kojto 93:e188a91d3eaa 2268 #define CAN_IER_FFIE1 ((uint32_t)0x00000020) /*!<FIFO Full Interrupt Enable */
Kojto 93:e188a91d3eaa 2269 #define CAN_IER_FOVIE1 ((uint32_t)0x00000040) /*!<FIFO Overrun Interrupt Enable */
Kojto 93:e188a91d3eaa 2270 #define CAN_IER_EWGIE ((uint32_t)0x00000100) /*!<Error Warning Interrupt Enable */
Kojto 93:e188a91d3eaa 2271 #define CAN_IER_EPVIE ((uint32_t)0x00000200) /*!<Error Passive Interrupt Enable */
Kojto 93:e188a91d3eaa 2272 #define CAN_IER_BOFIE ((uint32_t)0x00000400) /*!<Bus-Off Interrupt Enable */
Kojto 93:e188a91d3eaa 2273 #define CAN_IER_LECIE ((uint32_t)0x00000800) /*!<Last Error Code Interrupt Enable */
Kojto 93:e188a91d3eaa 2274 #define CAN_IER_ERRIE ((uint32_t)0x00008000) /*!<Error Interrupt Enable */
Kojto 93:e188a91d3eaa 2275 #define CAN_IER_WKUIE ((uint32_t)0x00010000) /*!<Wakeup Interrupt Enable */
Kojto 93:e188a91d3eaa 2276 #define CAN_IER_SLKIE ((uint32_t)0x00020000) /*!<Sleep Interrupt Enable */
Kojto 93:e188a91d3eaa 2277
Kojto 93:e188a91d3eaa 2278 /******************** Bit definition for CAN_ESR register *******************/
Kojto 93:e188a91d3eaa 2279 #define CAN_ESR_EWGF ((uint32_t)0x00000001) /*!<Error Warning Flag */
Kojto 93:e188a91d3eaa 2280 #define CAN_ESR_EPVF ((uint32_t)0x00000002) /*!<Error Passive Flag */
Kojto 93:e188a91d3eaa 2281 #define CAN_ESR_BOFF ((uint32_t)0x00000004) /*!<Bus-Off Flag */
Kojto 93:e188a91d3eaa 2282
Kojto 93:e188a91d3eaa 2283 #define CAN_ESR_LEC ((uint32_t)0x00000070) /*!<LEC[2:0] bits (Last Error Code) */
Kojto 93:e188a91d3eaa 2284 #define CAN_ESR_LEC_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 2285 #define CAN_ESR_LEC_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 2286 #define CAN_ESR_LEC_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 2287
Kojto 93:e188a91d3eaa 2288 #define CAN_ESR_TEC ((uint32_t)0x00FF0000) /*!<Least significant byte of the 9-bit Transmit Error Counter */
Kojto 93:e188a91d3eaa 2289 #define CAN_ESR_REC ((uint32_t)0xFF000000) /*!<Receive Error Counter */
Kojto 93:e188a91d3eaa 2290
Kojto 93:e188a91d3eaa 2291 /******************* Bit definition for CAN_BTR register ********************/
Kojto 93:e188a91d3eaa 2292 #define CAN_BTR_BRP ((uint32_t)0x000003FF) /*!<Baud Rate Prescaler */
Kojto 93:e188a91d3eaa 2293 #define CAN_BTR_TS1 ((uint32_t)0x000F0000) /*!<Time Segment 1 */
Kojto 93:e188a91d3eaa 2294 #define CAN_BTR_TS1_0 ((uint32_t)0x00010000) /*!<Time Segment 1 (Bit 0) */
Kojto 93:e188a91d3eaa 2295 #define CAN_BTR_TS1_1 ((uint32_t)0x00020000) /*!<Time Segment 1 (Bit 1) */
Kojto 93:e188a91d3eaa 2296 #define CAN_BTR_TS1_2 ((uint32_t)0x00040000) /*!<Time Segment 1 (Bit 2) */
Kojto 93:e188a91d3eaa 2297 #define CAN_BTR_TS1_3 ((uint32_t)0x00080000) /*!<Time Segment 1 (Bit 3) */
Kojto 93:e188a91d3eaa 2298 #define CAN_BTR_TS2 ((uint32_t)0x00700000) /*!<Time Segment 2 */
Kojto 93:e188a91d3eaa 2299 #define CAN_BTR_TS2_0 ((uint32_t)0x00100000) /*!<Time Segment 2 (Bit 0) */
Kojto 93:e188a91d3eaa 2300 #define CAN_BTR_TS2_1 ((uint32_t)0x00200000) /*!<Time Segment 2 (Bit 1) */
Kojto 93:e188a91d3eaa 2301 #define CAN_BTR_TS2_2 ((uint32_t)0x00400000) /*!<Time Segment 2 (Bit 2) */
Kojto 93:e188a91d3eaa 2302 #define CAN_BTR_SJW ((uint32_t)0x03000000) /*!<Resynchronization Jump Width */
Kojto 93:e188a91d3eaa 2303 #define CAN_BTR_SJW_0 ((uint32_t)0x01000000) /*!<Resynchronization Jump Width (Bit 0) */
Kojto 93:e188a91d3eaa 2304 #define CAN_BTR_SJW_1 ((uint32_t)0x02000000) /*!<Resynchronization Jump Width (Bit 1) */
Kojto 93:e188a91d3eaa 2305 #define CAN_BTR_LBKM ((uint32_t)0x40000000) /*!<Loop Back Mode (Debug) */
Kojto 93:e188a91d3eaa 2306 #define CAN_BTR_SILM ((uint32_t)0x80000000) /*!<Silent Mode */
Kojto 93:e188a91d3eaa 2307
Kojto 93:e188a91d3eaa 2308 /*!<Mailbox registers */
Kojto 93:e188a91d3eaa 2309 /****************** Bit definition for CAN_TI0R register ********************/
Kojto 93:e188a91d3eaa 2310 #define CAN_TI0R_TXRQ ((uint32_t)0x00000001) /*!<Transmit Mailbox Request */
Kojto 93:e188a91d3eaa 2311 #define CAN_TI0R_RTR ((uint32_t)0x00000002) /*!<Remote Transmission Request */
Kojto 93:e188a91d3eaa 2312 #define CAN_TI0R_IDE ((uint32_t)0x00000004) /*!<Identifier Extension */
Kojto 93:e188a91d3eaa 2313 #define CAN_TI0R_EXID ((uint32_t)0x001FFFF8) /*!<Extended Identifier */
Kojto 93:e188a91d3eaa 2314 #define CAN_TI0R_STID ((uint32_t)0xFFE00000) /*!<Standard Identifier or Extended Identifier */
Kojto 93:e188a91d3eaa 2315
Kojto 93:e188a91d3eaa 2316 /****************** Bit definition for CAN_TDT0R register *******************/
Kojto 93:e188a91d3eaa 2317 #define CAN_TDT0R_DLC ((uint32_t)0x0000000F) /*!<Data Length Code */
Kojto 93:e188a91d3eaa 2318 #define CAN_TDT0R_TGT ((uint32_t)0x00000100) /*!<Transmit Global Time */
Kojto 93:e188a91d3eaa 2319 #define CAN_TDT0R_TIME ((uint32_t)0xFFFF0000) /*!<Message Time Stamp */
Kojto 93:e188a91d3eaa 2320
Kojto 93:e188a91d3eaa 2321 /****************** Bit definition for CAN_TDL0R register *******************/
Kojto 93:e188a91d3eaa 2322 #define CAN_TDL0R_DATA0 ((uint32_t)0x000000FF) /*!<Data byte 0 */
Kojto 93:e188a91d3eaa 2323 #define CAN_TDL0R_DATA1 ((uint32_t)0x0000FF00) /*!<Data byte 1 */
Kojto 93:e188a91d3eaa 2324 #define CAN_TDL0R_DATA2 ((uint32_t)0x00FF0000) /*!<Data byte 2 */
Kojto 93:e188a91d3eaa 2325 #define CAN_TDL0R_DATA3 ((uint32_t)0xFF000000) /*!<Data byte 3 */
Kojto 93:e188a91d3eaa 2326
Kojto 93:e188a91d3eaa 2327 /****************** Bit definition for CAN_TDH0R register *******************/
Kojto 93:e188a91d3eaa 2328 #define CAN_TDH0R_DATA4 ((uint32_t)0x000000FF) /*!<Data byte 4 */
Kojto 93:e188a91d3eaa 2329 #define CAN_TDH0R_DATA5 ((uint32_t)0x0000FF00) /*!<Data byte 5 */
Kojto 93:e188a91d3eaa 2330 #define CAN_TDH0R_DATA6 ((uint32_t)0x00FF0000) /*!<Data byte 6 */
Kojto 93:e188a91d3eaa 2331 #define CAN_TDH0R_DATA7 ((uint32_t)0xFF000000) /*!<Data byte 7 */
Kojto 93:e188a91d3eaa 2332
Kojto 93:e188a91d3eaa 2333 /******************* Bit definition for CAN_TI1R register *******************/
Kojto 93:e188a91d3eaa 2334 #define CAN_TI1R_TXRQ ((uint32_t)0x00000001) /*!<Transmit Mailbox Request */
Kojto 93:e188a91d3eaa 2335 #define CAN_TI1R_RTR ((uint32_t)0x00000002) /*!<Remote Transmission Request */
Kojto 93:e188a91d3eaa 2336 #define CAN_TI1R_IDE ((uint32_t)0x00000004) /*!<Identifier Extension */
Kojto 93:e188a91d3eaa 2337 #define CAN_TI1R_EXID ((uint32_t)0x001FFFF8) /*!<Extended Identifier */
Kojto 93:e188a91d3eaa 2338 #define CAN_TI1R_STID ((uint32_t)0xFFE00000) /*!<Standard Identifier or Extended Identifier */
Kojto 93:e188a91d3eaa 2339
Kojto 93:e188a91d3eaa 2340 /******************* Bit definition for CAN_TDT1R register ******************/
Kojto 93:e188a91d3eaa 2341 #define CAN_TDT1R_DLC ((uint32_t)0x0000000F) /*!<Data Length Code */
Kojto 93:e188a91d3eaa 2342 #define CAN_TDT1R_TGT ((uint32_t)0x00000100) /*!<Transmit Global Time */
Kojto 93:e188a91d3eaa 2343 #define CAN_TDT1R_TIME ((uint32_t)0xFFFF0000) /*!<Message Time Stamp */
Kojto 93:e188a91d3eaa 2344
Kojto 93:e188a91d3eaa 2345 /******************* Bit definition for CAN_TDL1R register ******************/
Kojto 93:e188a91d3eaa 2346 #define CAN_TDL1R_DATA0 ((uint32_t)0x000000FF) /*!<Data byte 0 */
Kojto 93:e188a91d3eaa 2347 #define CAN_TDL1R_DATA1 ((uint32_t)0x0000FF00) /*!<Data byte 1 */
Kojto 93:e188a91d3eaa 2348 #define CAN_TDL1R_DATA2 ((uint32_t)0x00FF0000) /*!<Data byte 2 */
Kojto 93:e188a91d3eaa 2349 #define CAN_TDL1R_DATA3 ((uint32_t)0xFF000000) /*!<Data byte 3 */
Kojto 93:e188a91d3eaa 2350
Kojto 93:e188a91d3eaa 2351 /******************* Bit definition for CAN_TDH1R register ******************/
Kojto 93:e188a91d3eaa 2352 #define CAN_TDH1R_DATA4 ((uint32_t)0x000000FF) /*!<Data byte 4 */
Kojto 93:e188a91d3eaa 2353 #define CAN_TDH1R_DATA5 ((uint32_t)0x0000FF00) /*!<Data byte 5 */
Kojto 93:e188a91d3eaa 2354 #define CAN_TDH1R_DATA6 ((uint32_t)0x00FF0000) /*!<Data byte 6 */
Kojto 93:e188a91d3eaa 2355 #define CAN_TDH1R_DATA7 ((uint32_t)0xFF000000) /*!<Data byte 7 */
Kojto 93:e188a91d3eaa 2356
Kojto 93:e188a91d3eaa 2357 /******************* Bit definition for CAN_TI2R register *******************/
Kojto 93:e188a91d3eaa 2358 #define CAN_TI2R_TXRQ ((uint32_t)0x00000001) /*!<Transmit Mailbox Request */
Kojto 93:e188a91d3eaa 2359 #define CAN_TI2R_RTR ((uint32_t)0x00000002) /*!<Remote Transmission Request */
Kojto 93:e188a91d3eaa 2360 #define CAN_TI2R_IDE ((uint32_t)0x00000004) /*!<Identifier Extension */
Kojto 93:e188a91d3eaa 2361 #define CAN_TI2R_EXID ((uint32_t)0x001FFFF8) /*!<Extended identifier */
Kojto 93:e188a91d3eaa 2362 #define CAN_TI2R_STID ((uint32_t)0xFFE00000) /*!<Standard Identifier or Extended Identifier */
Kojto 93:e188a91d3eaa 2363
Kojto 93:e188a91d3eaa 2364 /******************* Bit definition for CAN_TDT2R register ******************/
Kojto 93:e188a91d3eaa 2365 #define CAN_TDT2R_DLC ((uint32_t)0x0000000F) /*!<Data Length Code */
Kojto 93:e188a91d3eaa 2366 #define CAN_TDT2R_TGT ((uint32_t)0x00000100) /*!<Transmit Global Time */
Kojto 93:e188a91d3eaa 2367 #define CAN_TDT2R_TIME ((uint32_t)0xFFFF0000) /*!<Message Time Stamp */
Kojto 93:e188a91d3eaa 2368
Kojto 93:e188a91d3eaa 2369 /******************* Bit definition for CAN_TDL2R register ******************/
Kojto 93:e188a91d3eaa 2370 #define CAN_TDL2R_DATA0 ((uint32_t)0x000000FF) /*!<Data byte 0 */
Kojto 93:e188a91d3eaa 2371 #define CAN_TDL2R_DATA1 ((uint32_t)0x0000FF00) /*!<Data byte 1 */
Kojto 93:e188a91d3eaa 2372 #define CAN_TDL2R_DATA2 ((uint32_t)0x00FF0000) /*!<Data byte 2 */
Kojto 93:e188a91d3eaa 2373 #define CAN_TDL2R_DATA3 ((uint32_t)0xFF000000) /*!<Data byte 3 */
Kojto 93:e188a91d3eaa 2374
Kojto 93:e188a91d3eaa 2375 /******************* Bit definition for CAN_TDH2R register ******************/
Kojto 93:e188a91d3eaa 2376 #define CAN_TDH2R_DATA4 ((uint32_t)0x000000FF) /*!<Data byte 4 */
Kojto 93:e188a91d3eaa 2377 #define CAN_TDH2R_DATA5 ((uint32_t)0x0000FF00) /*!<Data byte 5 */
Kojto 93:e188a91d3eaa 2378 #define CAN_TDH2R_DATA6 ((uint32_t)0x00FF0000) /*!<Data byte 6 */
Kojto 93:e188a91d3eaa 2379 #define CAN_TDH2R_DATA7 ((uint32_t)0xFF000000) /*!<Data byte 7 */
Kojto 93:e188a91d3eaa 2380
Kojto 93:e188a91d3eaa 2381 /******************* Bit definition for CAN_RI0R register *******************/
Kojto 93:e188a91d3eaa 2382 #define CAN_RI0R_RTR ((uint32_t)0x00000002) /*!<Remote Transmission Request */
Kojto 93:e188a91d3eaa 2383 #define CAN_RI0R_IDE ((uint32_t)0x00000004) /*!<Identifier Extension */
Kojto 93:e188a91d3eaa 2384 #define CAN_RI0R_EXID ((uint32_t)0x001FFFF8) /*!<Extended Identifier */
Kojto 93:e188a91d3eaa 2385 #define CAN_RI0R_STID ((uint32_t)0xFFE00000) /*!<Standard Identifier or Extended Identifier */
Kojto 93:e188a91d3eaa 2386
Kojto 93:e188a91d3eaa 2387 /******************* Bit definition for CAN_RDT0R register ******************/
Kojto 93:e188a91d3eaa 2388 #define CAN_RDT0R_DLC ((uint32_t)0x0000000F) /*!<Data Length Code */
Kojto 93:e188a91d3eaa 2389 #define CAN_RDT0R_FMI ((uint32_t)0x0000FF00) /*!<Filter Match Index */
Kojto 93:e188a91d3eaa 2390 #define CAN_RDT0R_TIME ((uint32_t)0xFFFF0000) /*!<Message Time Stamp */
Kojto 93:e188a91d3eaa 2391
Kojto 93:e188a91d3eaa 2392 /******************* Bit definition for CAN_RDL0R register ******************/
Kojto 93:e188a91d3eaa 2393 #define CAN_RDL0R_DATA0 ((uint32_t)0x000000FF) /*!<Data byte 0 */
Kojto 93:e188a91d3eaa 2394 #define CAN_RDL0R_DATA1 ((uint32_t)0x0000FF00) /*!<Data byte 1 */
Kojto 93:e188a91d3eaa 2395 #define CAN_RDL0R_DATA2 ((uint32_t)0x00FF0000) /*!<Data byte 2 */
Kojto 93:e188a91d3eaa 2396 #define CAN_RDL0R_DATA3 ((uint32_t)0xFF000000) /*!<Data byte 3 */
Kojto 93:e188a91d3eaa 2397
Kojto 93:e188a91d3eaa 2398 /******************* Bit definition for CAN_RDH0R register ******************/
Kojto 93:e188a91d3eaa 2399 #define CAN_RDH0R_DATA4 ((uint32_t)0x000000FF) /*!<Data byte 4 */
Kojto 93:e188a91d3eaa 2400 #define CAN_RDH0R_DATA5 ((uint32_t)0x0000FF00) /*!<Data byte 5 */
Kojto 93:e188a91d3eaa 2401 #define CAN_RDH0R_DATA6 ((uint32_t)0x00FF0000) /*!<Data byte 6 */
Kojto 93:e188a91d3eaa 2402 #define CAN_RDH0R_DATA7 ((uint32_t)0xFF000000) /*!<Data byte 7 */
Kojto 93:e188a91d3eaa 2403
Kojto 93:e188a91d3eaa 2404 /******************* Bit definition for CAN_RI1R register *******************/
Kojto 93:e188a91d3eaa 2405 #define CAN_RI1R_RTR ((uint32_t)0x00000002) /*!<Remote Transmission Request */
Kojto 93:e188a91d3eaa 2406 #define CAN_RI1R_IDE ((uint32_t)0x00000004) /*!<Identifier Extension */
Kojto 93:e188a91d3eaa 2407 #define CAN_RI1R_EXID ((uint32_t)0x001FFFF8) /*!<Extended identifier */
Kojto 93:e188a91d3eaa 2408 #define CAN_RI1R_STID ((uint32_t)0xFFE00000) /*!<Standard Identifier or Extended Identifier */
Kojto 93:e188a91d3eaa 2409
Kojto 93:e188a91d3eaa 2410 /******************* Bit definition for CAN_RDT1R register ******************/
Kojto 93:e188a91d3eaa 2411 #define CAN_RDT1R_DLC ((uint32_t)0x0000000F) /*!<Data Length Code */
Kojto 93:e188a91d3eaa 2412 #define CAN_RDT1R_FMI ((uint32_t)0x0000FF00) /*!<Filter Match Index */
Kojto 93:e188a91d3eaa 2413 #define CAN_RDT1R_TIME ((uint32_t)0xFFFF0000) /*!<Message Time Stamp */
Kojto 93:e188a91d3eaa 2414
Kojto 93:e188a91d3eaa 2415 /******************* Bit definition for CAN_RDL1R register ******************/
Kojto 93:e188a91d3eaa 2416 #define CAN_RDL1R_DATA0 ((uint32_t)0x000000FF) /*!<Data byte 0 */
Kojto 93:e188a91d3eaa 2417 #define CAN_RDL1R_DATA1 ((uint32_t)0x0000FF00) /*!<Data byte 1 */
Kojto 93:e188a91d3eaa 2418 #define CAN_RDL1R_DATA2 ((uint32_t)0x00FF0000) /*!<Data byte 2 */
Kojto 93:e188a91d3eaa 2419 #define CAN_RDL1R_DATA3 ((uint32_t)0xFF000000) /*!<Data byte 3 */
Kojto 93:e188a91d3eaa 2420
Kojto 93:e188a91d3eaa 2421 /******************* Bit definition for CAN_RDH1R register ******************/
Kojto 93:e188a91d3eaa 2422 #define CAN_RDH1R_DATA4 ((uint32_t)0x000000FF) /*!<Data byte 4 */
Kojto 93:e188a91d3eaa 2423 #define CAN_RDH1R_DATA5 ((uint32_t)0x0000FF00) /*!<Data byte 5 */
Kojto 93:e188a91d3eaa 2424 #define CAN_RDH1R_DATA6 ((uint32_t)0x00FF0000) /*!<Data byte 6 */
Kojto 93:e188a91d3eaa 2425 #define CAN_RDH1R_DATA7 ((uint32_t)0xFF000000) /*!<Data byte 7 */
Kojto 93:e188a91d3eaa 2426
Kojto 93:e188a91d3eaa 2427 /*!<CAN filter registers */
Kojto 93:e188a91d3eaa 2428 /******************* Bit definition for CAN_FMR register ********************/
Kojto 93:e188a91d3eaa 2429 #define CAN_FMR_FINIT ((uint32_t)0x00000001) /*!<Filter Init Mode */
Kojto 93:e188a91d3eaa 2430
Kojto 93:e188a91d3eaa 2431 /******************* Bit definition for CAN_FM1R register *******************/
Kojto 93:e188a91d3eaa 2432 #define CAN_FM1R_FBM ((uint32_t)0x00003FFF) /*!<Filter Mode */
Kojto 93:e188a91d3eaa 2433 #define CAN_FM1R_FBM0 ((uint32_t)0x00000001) /*!<Filter Init Mode bit 0 */
Kojto 93:e188a91d3eaa 2434 #define CAN_FM1R_FBM1 ((uint32_t)0x00000002) /*!<Filter Init Mode bit 1 */
Kojto 93:e188a91d3eaa 2435 #define CAN_FM1R_FBM2 ((uint32_t)0x00000004) /*!<Filter Init Mode bit 2 */
Kojto 93:e188a91d3eaa 2436 #define CAN_FM1R_FBM3 ((uint32_t)0x00000008) /*!<Filter Init Mode bit 3 */
Kojto 93:e188a91d3eaa 2437 #define CAN_FM1R_FBM4 ((uint32_t)0x00000010) /*!<Filter Init Mode bit 4 */
Kojto 93:e188a91d3eaa 2438 #define CAN_FM1R_FBM5 ((uint32_t)0x00000020) /*!<Filter Init Mode bit 5 */
Kojto 93:e188a91d3eaa 2439 #define CAN_FM1R_FBM6 ((uint32_t)0x00000040) /*!<Filter Init Mode bit 6 */
Kojto 93:e188a91d3eaa 2440 #define CAN_FM1R_FBM7 ((uint32_t)0x00000080) /*!<Filter Init Mode bit 7 */
Kojto 93:e188a91d3eaa 2441 #define CAN_FM1R_FBM8 ((uint32_t)0x00000100) /*!<Filter Init Mode bit 8 */
Kojto 93:e188a91d3eaa 2442 #define CAN_FM1R_FBM9 ((uint32_t)0x00000200) /*!<Filter Init Mode bit 9 */
Kojto 93:e188a91d3eaa 2443 #define CAN_FM1R_FBM10 ((uint32_t)0x00000400) /*!<Filter Init Mode bit 10 */
Kojto 93:e188a91d3eaa 2444 #define CAN_FM1R_FBM11 ((uint32_t)0x00000800) /*!<Filter Init Mode bit 11 */
Kojto 93:e188a91d3eaa 2445 #define CAN_FM1R_FBM12 ((uint32_t)0x00001000) /*!<Filter Init Mode bit 12 */
Kojto 93:e188a91d3eaa 2446 #define CAN_FM1R_FBM13 ((uint32_t)0x00002000) /*!<Filter Init Mode bit 13 */
Kojto 93:e188a91d3eaa 2447
Kojto 93:e188a91d3eaa 2448 /******************* Bit definition for CAN_FS1R register *******************/
Kojto 93:e188a91d3eaa 2449 #define CAN_FS1R_FSC ((uint32_t)0x00003FFF) /*!<Filter Scale Configuration */
Kojto 93:e188a91d3eaa 2450 #define CAN_FS1R_FSC0 ((uint32_t)0x00000001) /*!<Filter Scale Configuration bit 0 */
Kojto 93:e188a91d3eaa 2451 #define CAN_FS1R_FSC1 ((uint32_t)0x00000002) /*!<Filter Scale Configuration bit 1 */
Kojto 93:e188a91d3eaa 2452 #define CAN_FS1R_FSC2 ((uint32_t)0x00000004) /*!<Filter Scale Configuration bit 2 */
Kojto 93:e188a91d3eaa 2453 #define CAN_FS1R_FSC3 ((uint32_t)0x00000008) /*!<Filter Scale Configuration bit 3 */
Kojto 93:e188a91d3eaa 2454 #define CAN_FS1R_FSC4 ((uint32_t)0x00000010) /*!<Filter Scale Configuration bit 4 */
Kojto 93:e188a91d3eaa 2455 #define CAN_FS1R_FSC5 ((uint32_t)0x00000020) /*!<Filter Scale Configuration bit 5 */
Kojto 93:e188a91d3eaa 2456 #define CAN_FS1R_FSC6 ((uint32_t)0x00000040) /*!<Filter Scale Configuration bit 6 */
Kojto 93:e188a91d3eaa 2457 #define CAN_FS1R_FSC7 ((uint32_t)0x00000080) /*!<Filter Scale Configuration bit 7 */
Kojto 93:e188a91d3eaa 2458 #define CAN_FS1R_FSC8 ((uint32_t)0x00000100) /*!<Filter Scale Configuration bit 8 */
Kojto 93:e188a91d3eaa 2459 #define CAN_FS1R_FSC9 ((uint32_t)0x00000200) /*!<Filter Scale Configuration bit 9 */
Kojto 93:e188a91d3eaa 2460 #define CAN_FS1R_FSC10 ((uint32_t)0x00000400) /*!<Filter Scale Configuration bit 10 */
Kojto 93:e188a91d3eaa 2461 #define CAN_FS1R_FSC11 ((uint32_t)0x00000800) /*!<Filter Scale Configuration bit 11 */
Kojto 93:e188a91d3eaa 2462 #define CAN_FS1R_FSC12 ((uint32_t)0x00001000) /*!<Filter Scale Configuration bit 12 */
Kojto 93:e188a91d3eaa 2463 #define CAN_FS1R_FSC13 ((uint32_t)0x00002000) /*!<Filter Scale Configuration bit 13 */
Kojto 93:e188a91d3eaa 2464
Kojto 93:e188a91d3eaa 2465 /****************** Bit definition for CAN_FFA1R register *******************/
Kojto 93:e188a91d3eaa 2466 #define CAN_FFA1R_FFA ((uint32_t)0x00003FFF) /*!<Filter FIFO Assignment */
Kojto 93:e188a91d3eaa 2467 #define CAN_FFA1R_FFA0 ((uint32_t)0x00000001) /*!<Filter FIFO Assignment for Filter 0 */
Kojto 93:e188a91d3eaa 2468 #define CAN_FFA1R_FFA1 ((uint32_t)0x00000002) /*!<Filter FIFO Assignment for Filter 1 */
Kojto 93:e188a91d3eaa 2469 #define CAN_FFA1R_FFA2 ((uint32_t)0x00000004) /*!<Filter FIFO Assignment for Filter 2 */
Kojto 93:e188a91d3eaa 2470 #define CAN_FFA1R_FFA3 ((uint32_t)0x00000008) /*!<Filter FIFO Assignment for Filter 3 */
Kojto 93:e188a91d3eaa 2471 #define CAN_FFA1R_FFA4 ((uint32_t)0x00000010) /*!<Filter FIFO Assignment for Filter 4 */
Kojto 93:e188a91d3eaa 2472 #define CAN_FFA1R_FFA5 ((uint32_t)0x00000020) /*!<Filter FIFO Assignment for Filter 5 */
Kojto 93:e188a91d3eaa 2473 #define CAN_FFA1R_FFA6 ((uint32_t)0x00000040) /*!<Filter FIFO Assignment for Filter 6 */
Kojto 93:e188a91d3eaa 2474 #define CAN_FFA1R_FFA7 ((uint32_t)0x00000080) /*!<Filter FIFO Assignment for Filter 7 */
Kojto 93:e188a91d3eaa 2475 #define CAN_FFA1R_FFA8 ((uint32_t)0x00000100) /*!<Filter FIFO Assignment for Filter 8 */
Kojto 93:e188a91d3eaa 2476 #define CAN_FFA1R_FFA9 ((uint32_t)0x00000200) /*!<Filter FIFO Assignment for Filter 9 */
Kojto 93:e188a91d3eaa 2477 #define CAN_FFA1R_FFA10 ((uint32_t)0x00000400) /*!<Filter FIFO Assignment for Filter 10 */
Kojto 93:e188a91d3eaa 2478 #define CAN_FFA1R_FFA11 ((uint32_t)0x00000800) /*!<Filter FIFO Assignment for Filter 11 */
Kojto 93:e188a91d3eaa 2479 #define CAN_FFA1R_FFA12 ((uint32_t)0x00001000) /*!<Filter FIFO Assignment for Filter 12 */
Kojto 93:e188a91d3eaa 2480 #define CAN_FFA1R_FFA13 ((uint32_t)0x00002000) /*!<Filter FIFO Assignment for Filter 13 */
Kojto 93:e188a91d3eaa 2481
Kojto 93:e188a91d3eaa 2482 /******************* Bit definition for CAN_FA1R register *******************/
Kojto 93:e188a91d3eaa 2483 #define CAN_FA1R_FACT ((uint32_t)0x00003FFF) /*!<Filter Active */
Kojto 93:e188a91d3eaa 2484 #define CAN_FA1R_FACT0 ((uint32_t)0x00000001) /*!<Filter 0 Active */
Kojto 93:e188a91d3eaa 2485 #define CAN_FA1R_FACT1 ((uint32_t)0x00000002) /*!<Filter 1 Active */
Kojto 93:e188a91d3eaa 2486 #define CAN_FA1R_FACT2 ((uint32_t)0x00000004) /*!<Filter 2 Active */
Kojto 93:e188a91d3eaa 2487 #define CAN_FA1R_FACT3 ((uint32_t)0x00000008) /*!<Filter 3 Active */
Kojto 93:e188a91d3eaa 2488 #define CAN_FA1R_FACT4 ((uint32_t)0x00000010) /*!<Filter 4 Active */
Kojto 93:e188a91d3eaa 2489 #define CAN_FA1R_FACT5 ((uint32_t)0x00000020) /*!<Filter 5 Active */
Kojto 93:e188a91d3eaa 2490 #define CAN_FA1R_FACT6 ((uint32_t)0x00000040) /*!<Filter 6 Active */
Kojto 93:e188a91d3eaa 2491 #define CAN_FA1R_FACT7 ((uint32_t)0x00000080) /*!<Filter 7 Active */
Kojto 93:e188a91d3eaa 2492 #define CAN_FA1R_FACT8 ((uint32_t)0x00000100) /*!<Filter 8 Active */
Kojto 93:e188a91d3eaa 2493 #define CAN_FA1R_FACT9 ((uint32_t)0x00000200) /*!<Filter 9 Active */
Kojto 93:e188a91d3eaa 2494 #define CAN_FA1R_FACT10 ((uint32_t)0x00000400) /*!<Filter 10 Active */
Kojto 93:e188a91d3eaa 2495 #define CAN_FA1R_FACT11 ((uint32_t)0x00000800) /*!<Filter 11 Active */
Kojto 93:e188a91d3eaa 2496 #define CAN_FA1R_FACT12 ((uint32_t)0x00001000) /*!<Filter 12 Active */
Kojto 93:e188a91d3eaa 2497 #define CAN_FA1R_FACT13 ((uint32_t)0x00002000) /*!<Filter 13 Active */
Kojto 93:e188a91d3eaa 2498
Kojto 93:e188a91d3eaa 2499 /******************* Bit definition for CAN_F0R1 register *******************/
Kojto 93:e188a91d3eaa 2500 #define CAN_F0R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2501 #define CAN_F0R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2502 #define CAN_F0R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2503 #define CAN_F0R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2504 #define CAN_F0R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2505 #define CAN_F0R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2506 #define CAN_F0R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2507 #define CAN_F0R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2508 #define CAN_F0R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2509 #define CAN_F0R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2510 #define CAN_F0R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2511 #define CAN_F0R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2512 #define CAN_F0R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2513 #define CAN_F0R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2514 #define CAN_F0R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2515 #define CAN_F0R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2516 #define CAN_F0R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2517 #define CAN_F0R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2518 #define CAN_F0R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2519 #define CAN_F0R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2520 #define CAN_F0R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2521 #define CAN_F0R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2522 #define CAN_F0R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2523 #define CAN_F0R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2524 #define CAN_F0R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2525 #define CAN_F0R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2526 #define CAN_F0R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2527 #define CAN_F0R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2528 #define CAN_F0R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2529 #define CAN_F0R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2530 #define CAN_F0R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2531 #define CAN_F0R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2532
Kojto 93:e188a91d3eaa 2533 /******************* Bit definition for CAN_F1R1 register *******************/
Kojto 93:e188a91d3eaa 2534 #define CAN_F1R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2535 #define CAN_F1R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2536 #define CAN_F1R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2537 #define CAN_F1R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2538 #define CAN_F1R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2539 #define CAN_F1R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2540 #define CAN_F1R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2541 #define CAN_F1R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2542 #define CAN_F1R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2543 #define CAN_F1R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2544 #define CAN_F1R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2545 #define CAN_F1R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2546 #define CAN_F1R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2547 #define CAN_F1R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2548 #define CAN_F1R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2549 #define CAN_F1R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2550 #define CAN_F1R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2551 #define CAN_F1R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2552 #define CAN_F1R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2553 #define CAN_F1R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2554 #define CAN_F1R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2555 #define CAN_F1R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2556 #define CAN_F1R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2557 #define CAN_F1R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2558 #define CAN_F1R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2559 #define CAN_F1R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2560 #define CAN_F1R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2561 #define CAN_F1R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2562 #define CAN_F1R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2563 #define CAN_F1R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2564 #define CAN_F1R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2565 #define CAN_F1R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2566
Kojto 93:e188a91d3eaa 2567 /******************* Bit definition for CAN_F2R1 register *******************/
Kojto 93:e188a91d3eaa 2568 #define CAN_F2R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2569 #define CAN_F2R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2570 #define CAN_F2R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2571 #define CAN_F2R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2572 #define CAN_F2R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2573 #define CAN_F2R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2574 #define CAN_F2R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2575 #define CAN_F2R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2576 #define CAN_F2R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2577 #define CAN_F2R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2578 #define CAN_F2R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2579 #define CAN_F2R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2580 #define CAN_F2R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2581 #define CAN_F2R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2582 #define CAN_F2R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2583 #define CAN_F2R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2584 #define CAN_F2R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2585 #define CAN_F2R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2586 #define CAN_F2R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2587 #define CAN_F2R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2588 #define CAN_F2R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2589 #define CAN_F2R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2590 #define CAN_F2R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2591 #define CAN_F2R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2592 #define CAN_F2R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2593 #define CAN_F2R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2594 #define CAN_F2R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2595 #define CAN_F2R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2596 #define CAN_F2R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2597 #define CAN_F2R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2598 #define CAN_F2R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2599 #define CAN_F2R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2600
Kojto 93:e188a91d3eaa 2601 /******************* Bit definition for CAN_F3R1 register *******************/
Kojto 93:e188a91d3eaa 2602 #define CAN_F3R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2603 #define CAN_F3R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2604 #define CAN_F3R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2605 #define CAN_F3R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2606 #define CAN_F3R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2607 #define CAN_F3R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2608 #define CAN_F3R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2609 #define CAN_F3R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2610 #define CAN_F3R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2611 #define CAN_F3R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2612 #define CAN_F3R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2613 #define CAN_F3R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2614 #define CAN_F3R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2615 #define CAN_F3R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2616 #define CAN_F3R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2617 #define CAN_F3R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2618 #define CAN_F3R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2619 #define CAN_F3R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2620 #define CAN_F3R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2621 #define CAN_F3R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2622 #define CAN_F3R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2623 #define CAN_F3R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2624 #define CAN_F3R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2625 #define CAN_F3R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2626 #define CAN_F3R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2627 #define CAN_F3R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2628 #define CAN_F3R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2629 #define CAN_F3R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2630 #define CAN_F3R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2631 #define CAN_F3R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2632 #define CAN_F3R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2633 #define CAN_F3R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2634
Kojto 93:e188a91d3eaa 2635 /******************* Bit definition for CAN_F4R1 register *******************/
Kojto 93:e188a91d3eaa 2636 #define CAN_F4R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2637 #define CAN_F4R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2638 #define CAN_F4R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2639 #define CAN_F4R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2640 #define CAN_F4R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2641 #define CAN_F4R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2642 #define CAN_F4R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2643 #define CAN_F4R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2644 #define CAN_F4R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2645 #define CAN_F4R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2646 #define CAN_F4R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2647 #define CAN_F4R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2648 #define CAN_F4R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2649 #define CAN_F4R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2650 #define CAN_F4R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2651 #define CAN_F4R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2652 #define CAN_F4R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2653 #define CAN_F4R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2654 #define CAN_F4R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2655 #define CAN_F4R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2656 #define CAN_F4R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2657 #define CAN_F4R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2658 #define CAN_F4R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2659 #define CAN_F4R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2660 #define CAN_F4R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2661 #define CAN_F4R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2662 #define CAN_F4R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2663 #define CAN_F4R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2664 #define CAN_F4R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2665 #define CAN_F4R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2666 #define CAN_F4R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2667 #define CAN_F4R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2668
Kojto 93:e188a91d3eaa 2669 /******************* Bit definition for CAN_F5R1 register *******************/
Kojto 93:e188a91d3eaa 2670 #define CAN_F5R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2671 #define CAN_F5R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2672 #define CAN_F5R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2673 #define CAN_F5R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2674 #define CAN_F5R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2675 #define CAN_F5R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2676 #define CAN_F5R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2677 #define CAN_F5R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2678 #define CAN_F5R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2679 #define CAN_F5R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2680 #define CAN_F5R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2681 #define CAN_F5R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2682 #define CAN_F5R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2683 #define CAN_F5R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2684 #define CAN_F5R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2685 #define CAN_F5R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2686 #define CAN_F5R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2687 #define CAN_F5R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2688 #define CAN_F5R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2689 #define CAN_F5R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2690 #define CAN_F5R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2691 #define CAN_F5R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2692 #define CAN_F5R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2693 #define CAN_F5R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2694 #define CAN_F5R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2695 #define CAN_F5R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2696 #define CAN_F5R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2697 #define CAN_F5R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2698 #define CAN_F5R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2699 #define CAN_F5R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2700 #define CAN_F5R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2701 #define CAN_F5R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2702
Kojto 93:e188a91d3eaa 2703 /******************* Bit definition for CAN_F6R1 register *******************/
Kojto 93:e188a91d3eaa 2704 #define CAN_F6R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2705 #define CAN_F6R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2706 #define CAN_F6R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2707 #define CAN_F6R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2708 #define CAN_F6R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2709 #define CAN_F6R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2710 #define CAN_F6R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2711 #define CAN_F6R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2712 #define CAN_F6R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2713 #define CAN_F6R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2714 #define CAN_F6R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2715 #define CAN_F6R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2716 #define CAN_F6R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2717 #define CAN_F6R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2718 #define CAN_F6R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2719 #define CAN_F6R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2720 #define CAN_F6R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2721 #define CAN_F6R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2722 #define CAN_F6R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2723 #define CAN_F6R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2724 #define CAN_F6R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2725 #define CAN_F6R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2726 #define CAN_F6R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2727 #define CAN_F6R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2728 #define CAN_F6R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2729 #define CAN_F6R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2730 #define CAN_F6R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2731 #define CAN_F6R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2732 #define CAN_F6R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2733 #define CAN_F6R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2734 #define CAN_F6R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2735 #define CAN_F6R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2736
Kojto 93:e188a91d3eaa 2737 /******************* Bit definition for CAN_F7R1 register *******************/
Kojto 93:e188a91d3eaa 2738 #define CAN_F7R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2739 #define CAN_F7R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2740 #define CAN_F7R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2741 #define CAN_F7R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2742 #define CAN_F7R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2743 #define CAN_F7R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2744 #define CAN_F7R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2745 #define CAN_F7R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2746 #define CAN_F7R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2747 #define CAN_F7R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2748 #define CAN_F7R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2749 #define CAN_F7R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2750 #define CAN_F7R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2751 #define CAN_F7R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2752 #define CAN_F7R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2753 #define CAN_F7R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2754 #define CAN_F7R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2755 #define CAN_F7R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2756 #define CAN_F7R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2757 #define CAN_F7R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2758 #define CAN_F7R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2759 #define CAN_F7R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2760 #define CAN_F7R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2761 #define CAN_F7R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2762 #define CAN_F7R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2763 #define CAN_F7R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2764 #define CAN_F7R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2765 #define CAN_F7R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2766 #define CAN_F7R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2767 #define CAN_F7R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2768 #define CAN_F7R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2769 #define CAN_F7R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2770
Kojto 93:e188a91d3eaa 2771 /******************* Bit definition for CAN_F8R1 register *******************/
Kojto 93:e188a91d3eaa 2772 #define CAN_F8R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2773 #define CAN_F8R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2774 #define CAN_F8R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2775 #define CAN_F8R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2776 #define CAN_F8R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2777 #define CAN_F8R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2778 #define CAN_F8R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2779 #define CAN_F8R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2780 #define CAN_F8R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2781 #define CAN_F8R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2782 #define CAN_F8R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2783 #define CAN_F8R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2784 #define CAN_F8R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2785 #define CAN_F8R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2786 #define CAN_F8R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2787 #define CAN_F8R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2788 #define CAN_F8R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2789 #define CAN_F8R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2790 #define CAN_F8R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2791 #define CAN_F8R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2792 #define CAN_F8R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2793 #define CAN_F8R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2794 #define CAN_F8R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2795 #define CAN_F8R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2796 #define CAN_F8R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2797 #define CAN_F8R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2798 #define CAN_F8R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2799 #define CAN_F8R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2800 #define CAN_F8R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2801 #define CAN_F8R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2802 #define CAN_F8R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2803 #define CAN_F8R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2804
Kojto 93:e188a91d3eaa 2805 /******************* Bit definition for CAN_F9R1 register *******************/
Kojto 93:e188a91d3eaa 2806 #define CAN_F9R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2807 #define CAN_F9R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2808 #define CAN_F9R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2809 #define CAN_F9R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2810 #define CAN_F9R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2811 #define CAN_F9R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2812 #define CAN_F9R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2813 #define CAN_F9R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2814 #define CAN_F9R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2815 #define CAN_F9R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2816 #define CAN_F9R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2817 #define CAN_F9R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2818 #define CAN_F9R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2819 #define CAN_F9R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2820 #define CAN_F9R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2821 #define CAN_F9R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2822 #define CAN_F9R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2823 #define CAN_F9R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2824 #define CAN_F9R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2825 #define CAN_F9R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2826 #define CAN_F9R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2827 #define CAN_F9R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2828 #define CAN_F9R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2829 #define CAN_F9R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2830 #define CAN_F9R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2831 #define CAN_F9R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2832 #define CAN_F9R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2833 #define CAN_F9R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2834 #define CAN_F9R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2835 #define CAN_F9R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2836 #define CAN_F9R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2837 #define CAN_F9R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2838
Kojto 93:e188a91d3eaa 2839 /******************* Bit definition for CAN_F10R1 register ******************/
Kojto 93:e188a91d3eaa 2840 #define CAN_F10R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2841 #define CAN_F10R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2842 #define CAN_F10R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2843 #define CAN_F10R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2844 #define CAN_F10R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2845 #define CAN_F10R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2846 #define CAN_F10R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2847 #define CAN_F10R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2848 #define CAN_F10R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2849 #define CAN_F10R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2850 #define CAN_F10R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2851 #define CAN_F10R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2852 #define CAN_F10R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2853 #define CAN_F10R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2854 #define CAN_F10R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2855 #define CAN_F10R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2856 #define CAN_F10R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2857 #define CAN_F10R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2858 #define CAN_F10R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2859 #define CAN_F10R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2860 #define CAN_F10R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2861 #define CAN_F10R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2862 #define CAN_F10R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2863 #define CAN_F10R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2864 #define CAN_F10R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2865 #define CAN_F10R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2866 #define CAN_F10R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2867 #define CAN_F10R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2868 #define CAN_F10R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2869 #define CAN_F10R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2870 #define CAN_F10R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2871 #define CAN_F10R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2872
Kojto 93:e188a91d3eaa 2873 /******************* Bit definition for CAN_F11R1 register ******************/
Kojto 93:e188a91d3eaa 2874 #define CAN_F11R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2875 #define CAN_F11R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2876 #define CAN_F11R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2877 #define CAN_F11R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2878 #define CAN_F11R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2879 #define CAN_F11R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2880 #define CAN_F11R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2881 #define CAN_F11R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2882 #define CAN_F11R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2883 #define CAN_F11R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2884 #define CAN_F11R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2885 #define CAN_F11R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2886 #define CAN_F11R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2887 #define CAN_F11R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2888 #define CAN_F11R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2889 #define CAN_F11R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2890 #define CAN_F11R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2891 #define CAN_F11R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2892 #define CAN_F11R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2893 #define CAN_F11R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2894 #define CAN_F11R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2895 #define CAN_F11R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2896 #define CAN_F11R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2897 #define CAN_F11R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2898 #define CAN_F11R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2899 #define CAN_F11R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2900 #define CAN_F11R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2901 #define CAN_F11R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2902 #define CAN_F11R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2903 #define CAN_F11R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2904 #define CAN_F11R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2905 #define CAN_F11R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2906
Kojto 93:e188a91d3eaa 2907 /******************* Bit definition for CAN_F12R1 register ******************/
Kojto 93:e188a91d3eaa 2908 #define CAN_F12R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2909 #define CAN_F12R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2910 #define CAN_F12R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2911 #define CAN_F12R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2912 #define CAN_F12R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2913 #define CAN_F12R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2914 #define CAN_F12R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2915 #define CAN_F12R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2916 #define CAN_F12R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2917 #define CAN_F12R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2918 #define CAN_F12R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2919 #define CAN_F12R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2920 #define CAN_F12R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2921 #define CAN_F12R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2922 #define CAN_F12R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2923 #define CAN_F12R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2924 #define CAN_F12R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2925 #define CAN_F12R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2926 #define CAN_F12R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2927 #define CAN_F12R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2928 #define CAN_F12R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2929 #define CAN_F12R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2930 #define CAN_F12R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2931 #define CAN_F12R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2932 #define CAN_F12R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2933 #define CAN_F12R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2934 #define CAN_F12R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2935 #define CAN_F12R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2936 #define CAN_F12R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2937 #define CAN_F12R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2938 #define CAN_F12R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2939 #define CAN_F12R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2940
Kojto 93:e188a91d3eaa 2941 /******************* Bit definition for CAN_F13R1 register ******************/
Kojto 93:e188a91d3eaa 2942 #define CAN_F13R1_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2943 #define CAN_F13R1_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2944 #define CAN_F13R1_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2945 #define CAN_F13R1_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2946 #define CAN_F13R1_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2947 #define CAN_F13R1_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2948 #define CAN_F13R1_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2949 #define CAN_F13R1_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2950 #define CAN_F13R1_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2951 #define CAN_F13R1_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2952 #define CAN_F13R1_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2953 #define CAN_F13R1_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2954 #define CAN_F13R1_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2955 #define CAN_F13R1_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2956 #define CAN_F13R1_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2957 #define CAN_F13R1_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2958 #define CAN_F13R1_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2959 #define CAN_F13R1_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2960 #define CAN_F13R1_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2961 #define CAN_F13R1_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2962 #define CAN_F13R1_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2963 #define CAN_F13R1_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2964 #define CAN_F13R1_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2965 #define CAN_F13R1_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 2966 #define CAN_F13R1_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 2967 #define CAN_F13R1_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 2968 #define CAN_F13R1_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 2969 #define CAN_F13R1_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 2970 #define CAN_F13R1_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 2971 #define CAN_F13R1_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 2972 #define CAN_F13R1_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 2973 #define CAN_F13R1_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 2974
Kojto 93:e188a91d3eaa 2975 /******************* Bit definition for CAN_F0R2 register *******************/
Kojto 93:e188a91d3eaa 2976 #define CAN_F0R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 2977 #define CAN_F0R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 2978 #define CAN_F0R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 2979 #define CAN_F0R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 2980 #define CAN_F0R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 2981 #define CAN_F0R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 2982 #define CAN_F0R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 2983 #define CAN_F0R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 2984 #define CAN_F0R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 2985 #define CAN_F0R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 2986 #define CAN_F0R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 2987 #define CAN_F0R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 2988 #define CAN_F0R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 2989 #define CAN_F0R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 2990 #define CAN_F0R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 2991 #define CAN_F0R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 2992 #define CAN_F0R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 2993 #define CAN_F0R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 2994 #define CAN_F0R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 2995 #define CAN_F0R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 2996 #define CAN_F0R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 2997 #define CAN_F0R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 2998 #define CAN_F0R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 2999 #define CAN_F0R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3000 #define CAN_F0R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3001 #define CAN_F0R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3002 #define CAN_F0R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3003 #define CAN_F0R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3004 #define CAN_F0R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3005 #define CAN_F0R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3006 #define CAN_F0R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3007 #define CAN_F0R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3008
Kojto 93:e188a91d3eaa 3009 /******************* Bit definition for CAN_F1R2 register *******************/
Kojto 93:e188a91d3eaa 3010 #define CAN_F1R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3011 #define CAN_F1R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3012 #define CAN_F1R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3013 #define CAN_F1R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3014 #define CAN_F1R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3015 #define CAN_F1R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3016 #define CAN_F1R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3017 #define CAN_F1R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3018 #define CAN_F1R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3019 #define CAN_F1R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3020 #define CAN_F1R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3021 #define CAN_F1R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3022 #define CAN_F1R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3023 #define CAN_F1R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3024 #define CAN_F1R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3025 #define CAN_F1R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3026 #define CAN_F1R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3027 #define CAN_F1R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3028 #define CAN_F1R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3029 #define CAN_F1R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3030 #define CAN_F1R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3031 #define CAN_F1R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3032 #define CAN_F1R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3033 #define CAN_F1R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3034 #define CAN_F1R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3035 #define CAN_F1R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3036 #define CAN_F1R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3037 #define CAN_F1R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3038 #define CAN_F1R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3039 #define CAN_F1R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3040 #define CAN_F1R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3041 #define CAN_F1R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3042
Kojto 93:e188a91d3eaa 3043 /******************* Bit definition for CAN_F2R2 register *******************/
Kojto 93:e188a91d3eaa 3044 #define CAN_F2R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3045 #define CAN_F2R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3046 #define CAN_F2R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3047 #define CAN_F2R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3048 #define CAN_F2R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3049 #define CAN_F2R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3050 #define CAN_F2R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3051 #define CAN_F2R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3052 #define CAN_F2R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3053 #define CAN_F2R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3054 #define CAN_F2R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3055 #define CAN_F2R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3056 #define CAN_F2R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3057 #define CAN_F2R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3058 #define CAN_F2R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3059 #define CAN_F2R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3060 #define CAN_F2R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3061 #define CAN_F2R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3062 #define CAN_F2R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3063 #define CAN_F2R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3064 #define CAN_F2R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3065 #define CAN_F2R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3066 #define CAN_F2R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3067 #define CAN_F2R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3068 #define CAN_F2R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3069 #define CAN_F2R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3070 #define CAN_F2R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3071 #define CAN_F2R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3072 #define CAN_F2R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3073 #define CAN_F2R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3074 #define CAN_F2R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3075 #define CAN_F2R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3076
Kojto 93:e188a91d3eaa 3077 /******************* Bit definition for CAN_F3R2 register *******************/
Kojto 93:e188a91d3eaa 3078 #define CAN_F3R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3079 #define CAN_F3R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3080 #define CAN_F3R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3081 #define CAN_F3R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3082 #define CAN_F3R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3083 #define CAN_F3R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3084 #define CAN_F3R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3085 #define CAN_F3R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3086 #define CAN_F3R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3087 #define CAN_F3R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3088 #define CAN_F3R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3089 #define CAN_F3R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3090 #define CAN_F3R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3091 #define CAN_F3R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3092 #define CAN_F3R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3093 #define CAN_F3R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3094 #define CAN_F3R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3095 #define CAN_F3R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3096 #define CAN_F3R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3097 #define CAN_F3R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3098 #define CAN_F3R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3099 #define CAN_F3R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3100 #define CAN_F3R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3101 #define CAN_F3R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3102 #define CAN_F3R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3103 #define CAN_F3R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3104 #define CAN_F3R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3105 #define CAN_F3R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3106 #define CAN_F3R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3107 #define CAN_F3R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3108 #define CAN_F3R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3109 #define CAN_F3R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3110
Kojto 93:e188a91d3eaa 3111 /******************* Bit definition for CAN_F4R2 register *******************/
Kojto 93:e188a91d3eaa 3112 #define CAN_F4R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3113 #define CAN_F4R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3114 #define CAN_F4R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3115 #define CAN_F4R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3116 #define CAN_F4R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3117 #define CAN_F4R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3118 #define CAN_F4R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3119 #define CAN_F4R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3120 #define CAN_F4R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3121 #define CAN_F4R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3122 #define CAN_F4R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3123 #define CAN_F4R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3124 #define CAN_F4R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3125 #define CAN_F4R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3126 #define CAN_F4R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3127 #define CAN_F4R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3128 #define CAN_F4R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3129 #define CAN_F4R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3130 #define CAN_F4R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3131 #define CAN_F4R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3132 #define CAN_F4R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3133 #define CAN_F4R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3134 #define CAN_F4R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3135 #define CAN_F4R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3136 #define CAN_F4R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3137 #define CAN_F4R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3138 #define CAN_F4R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3139 #define CAN_F4R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3140 #define CAN_F4R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3141 #define CAN_F4R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3142 #define CAN_F4R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3143 #define CAN_F4R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3144
Kojto 93:e188a91d3eaa 3145 /******************* Bit definition for CAN_F5R2 register *******************/
Kojto 93:e188a91d3eaa 3146 #define CAN_F5R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3147 #define CAN_F5R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3148 #define CAN_F5R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3149 #define CAN_F5R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3150 #define CAN_F5R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3151 #define CAN_F5R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3152 #define CAN_F5R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3153 #define CAN_F5R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3154 #define CAN_F5R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3155 #define CAN_F5R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3156 #define CAN_F5R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3157 #define CAN_F5R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3158 #define CAN_F5R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3159 #define CAN_F5R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3160 #define CAN_F5R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3161 #define CAN_F5R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3162 #define CAN_F5R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3163 #define CAN_F5R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3164 #define CAN_F5R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3165 #define CAN_F5R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3166 #define CAN_F5R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3167 #define CAN_F5R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3168 #define CAN_F5R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3169 #define CAN_F5R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3170 #define CAN_F5R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3171 #define CAN_F5R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3172 #define CAN_F5R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3173 #define CAN_F5R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3174 #define CAN_F5R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3175 #define CAN_F5R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3176 #define CAN_F5R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3177 #define CAN_F5R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3178
Kojto 93:e188a91d3eaa 3179 /******************* Bit definition for CAN_F6R2 register *******************/
Kojto 93:e188a91d3eaa 3180 #define CAN_F6R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3181 #define CAN_F6R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3182 #define CAN_F6R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3183 #define CAN_F6R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3184 #define CAN_F6R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3185 #define CAN_F6R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3186 #define CAN_F6R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3187 #define CAN_F6R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3188 #define CAN_F6R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3189 #define CAN_F6R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3190 #define CAN_F6R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3191 #define CAN_F6R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3192 #define CAN_F6R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3193 #define CAN_F6R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3194 #define CAN_F6R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3195 #define CAN_F6R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3196 #define CAN_F6R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3197 #define CAN_F6R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3198 #define CAN_F6R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3199 #define CAN_F6R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3200 #define CAN_F6R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3201 #define CAN_F6R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3202 #define CAN_F6R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3203 #define CAN_F6R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3204 #define CAN_F6R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3205 #define CAN_F6R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3206 #define CAN_F6R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3207 #define CAN_F6R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3208 #define CAN_F6R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3209 #define CAN_F6R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3210 #define CAN_F6R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3211 #define CAN_F6R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3212
Kojto 93:e188a91d3eaa 3213 /******************* Bit definition for CAN_F7R2 register *******************/
Kojto 93:e188a91d3eaa 3214 #define CAN_F7R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3215 #define CAN_F7R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3216 #define CAN_F7R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3217 #define CAN_F7R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3218 #define CAN_F7R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3219 #define CAN_F7R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3220 #define CAN_F7R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3221 #define CAN_F7R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3222 #define CAN_F7R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3223 #define CAN_F7R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3224 #define CAN_F7R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3225 #define CAN_F7R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3226 #define CAN_F7R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3227 #define CAN_F7R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3228 #define CAN_F7R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3229 #define CAN_F7R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3230 #define CAN_F7R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3231 #define CAN_F7R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3232 #define CAN_F7R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3233 #define CAN_F7R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3234 #define CAN_F7R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3235 #define CAN_F7R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3236 #define CAN_F7R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3237 #define CAN_F7R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3238 #define CAN_F7R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3239 #define CAN_F7R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3240 #define CAN_F7R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3241 #define CAN_F7R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3242 #define CAN_F7R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3243 #define CAN_F7R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3244 #define CAN_F7R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3245 #define CAN_F7R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3246
Kojto 93:e188a91d3eaa 3247 /******************* Bit definition for CAN_F8R2 register *******************/
Kojto 93:e188a91d3eaa 3248 #define CAN_F8R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3249 #define CAN_F8R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3250 #define CAN_F8R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3251 #define CAN_F8R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3252 #define CAN_F8R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3253 #define CAN_F8R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3254 #define CAN_F8R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3255 #define CAN_F8R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3256 #define CAN_F8R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3257 #define CAN_F8R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3258 #define CAN_F8R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3259 #define CAN_F8R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3260 #define CAN_F8R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3261 #define CAN_F8R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3262 #define CAN_F8R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3263 #define CAN_F8R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3264 #define CAN_F8R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3265 #define CAN_F8R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3266 #define CAN_F8R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3267 #define CAN_F8R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3268 #define CAN_F8R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3269 #define CAN_F8R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3270 #define CAN_F8R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3271 #define CAN_F8R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3272 #define CAN_F8R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3273 #define CAN_F8R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3274 #define CAN_F8R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3275 #define CAN_F8R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3276 #define CAN_F8R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3277 #define CAN_F8R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3278 #define CAN_F8R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3279 #define CAN_F8R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3280
Kojto 93:e188a91d3eaa 3281 /******************* Bit definition for CAN_F9R2 register *******************/
Kojto 93:e188a91d3eaa 3282 #define CAN_F9R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3283 #define CAN_F9R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3284 #define CAN_F9R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3285 #define CAN_F9R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3286 #define CAN_F9R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3287 #define CAN_F9R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3288 #define CAN_F9R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3289 #define CAN_F9R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3290 #define CAN_F9R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3291 #define CAN_F9R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3292 #define CAN_F9R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3293 #define CAN_F9R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3294 #define CAN_F9R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3295 #define CAN_F9R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3296 #define CAN_F9R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3297 #define CAN_F9R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3298 #define CAN_F9R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3299 #define CAN_F9R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3300 #define CAN_F9R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3301 #define CAN_F9R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3302 #define CAN_F9R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3303 #define CAN_F9R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3304 #define CAN_F9R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3305 #define CAN_F9R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3306 #define CAN_F9R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3307 #define CAN_F9R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3308 #define CAN_F9R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3309 #define CAN_F9R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3310 #define CAN_F9R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3311 #define CAN_F9R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3312 #define CAN_F9R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3313 #define CAN_F9R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3314
Kojto 93:e188a91d3eaa 3315 /******************* Bit definition for CAN_F10R2 register ******************/
Kojto 93:e188a91d3eaa 3316 #define CAN_F10R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3317 #define CAN_F10R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3318 #define CAN_F10R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3319 #define CAN_F10R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3320 #define CAN_F10R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3321 #define CAN_F10R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3322 #define CAN_F10R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3323 #define CAN_F10R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3324 #define CAN_F10R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3325 #define CAN_F10R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3326 #define CAN_F10R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3327 #define CAN_F10R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3328 #define CAN_F10R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3329 #define CAN_F10R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3330 #define CAN_F10R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3331 #define CAN_F10R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3332 #define CAN_F10R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3333 #define CAN_F10R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3334 #define CAN_F10R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3335 #define CAN_F10R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3336 #define CAN_F10R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3337 #define CAN_F10R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3338 #define CAN_F10R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3339 #define CAN_F10R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3340 #define CAN_F10R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3341 #define CAN_F10R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3342 #define CAN_F10R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3343 #define CAN_F10R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3344 #define CAN_F10R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3345 #define CAN_F10R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3346 #define CAN_F10R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3347 #define CAN_F10R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3348
Kojto 93:e188a91d3eaa 3349 /******************* Bit definition for CAN_F11R2 register ******************/
Kojto 93:e188a91d3eaa 3350 #define CAN_F11R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3351 #define CAN_F11R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3352 #define CAN_F11R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3353 #define CAN_F11R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3354 #define CAN_F11R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3355 #define CAN_F11R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3356 #define CAN_F11R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3357 #define CAN_F11R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3358 #define CAN_F11R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3359 #define CAN_F11R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3360 #define CAN_F11R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3361 #define CAN_F11R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3362 #define CAN_F11R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3363 #define CAN_F11R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3364 #define CAN_F11R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3365 #define CAN_F11R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3366 #define CAN_F11R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3367 #define CAN_F11R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3368 #define CAN_F11R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3369 #define CAN_F11R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3370 #define CAN_F11R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3371 #define CAN_F11R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3372 #define CAN_F11R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3373 #define CAN_F11R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3374 #define CAN_F11R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3375 #define CAN_F11R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3376 #define CAN_F11R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3377 #define CAN_F11R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3378 #define CAN_F11R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3379 #define CAN_F11R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3380 #define CAN_F11R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3381 #define CAN_F11R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3382
Kojto 93:e188a91d3eaa 3383 /******************* Bit definition for CAN_F12R2 register ******************/
Kojto 93:e188a91d3eaa 3384 #define CAN_F12R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3385 #define CAN_F12R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3386 #define CAN_F12R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3387 #define CAN_F12R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3388 #define CAN_F12R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3389 #define CAN_F12R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3390 #define CAN_F12R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3391 #define CAN_F12R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3392 #define CAN_F12R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3393 #define CAN_F12R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3394 #define CAN_F12R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3395 #define CAN_F12R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3396 #define CAN_F12R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3397 #define CAN_F12R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3398 #define CAN_F12R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3399 #define CAN_F12R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3400 #define CAN_F12R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3401 #define CAN_F12R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3402 #define CAN_F12R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3403 #define CAN_F12R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3404 #define CAN_F12R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3405 #define CAN_F12R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3406 #define CAN_F12R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3407 #define CAN_F12R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3408 #define CAN_F12R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3409 #define CAN_F12R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3410 #define CAN_F12R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3411 #define CAN_F12R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3412 #define CAN_F12R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3413 #define CAN_F12R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3414 #define CAN_F12R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3415 #define CAN_F12R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3416
Kojto 93:e188a91d3eaa 3417 /******************* Bit definition for CAN_F13R2 register ******************/
Kojto 93:e188a91d3eaa 3418 #define CAN_F13R2_FB0 ((uint32_t)0x00000001) /*!<Filter bit 0 */
Kojto 93:e188a91d3eaa 3419 #define CAN_F13R2_FB1 ((uint32_t)0x00000002) /*!<Filter bit 1 */
Kojto 93:e188a91d3eaa 3420 #define CAN_F13R2_FB2 ((uint32_t)0x00000004) /*!<Filter bit 2 */
Kojto 93:e188a91d3eaa 3421 #define CAN_F13R2_FB3 ((uint32_t)0x00000008) /*!<Filter bit 3 */
Kojto 93:e188a91d3eaa 3422 #define CAN_F13R2_FB4 ((uint32_t)0x00000010) /*!<Filter bit 4 */
Kojto 93:e188a91d3eaa 3423 #define CAN_F13R2_FB5 ((uint32_t)0x00000020) /*!<Filter bit 5 */
Kojto 93:e188a91d3eaa 3424 #define CAN_F13R2_FB6 ((uint32_t)0x00000040) /*!<Filter bit 6 */
Kojto 93:e188a91d3eaa 3425 #define CAN_F13R2_FB7 ((uint32_t)0x00000080) /*!<Filter bit 7 */
Kojto 93:e188a91d3eaa 3426 #define CAN_F13R2_FB8 ((uint32_t)0x00000100) /*!<Filter bit 8 */
Kojto 93:e188a91d3eaa 3427 #define CAN_F13R2_FB9 ((uint32_t)0x00000200) /*!<Filter bit 9 */
Kojto 93:e188a91d3eaa 3428 #define CAN_F13R2_FB10 ((uint32_t)0x00000400) /*!<Filter bit 10 */
Kojto 93:e188a91d3eaa 3429 #define CAN_F13R2_FB11 ((uint32_t)0x00000800) /*!<Filter bit 11 */
Kojto 93:e188a91d3eaa 3430 #define CAN_F13R2_FB12 ((uint32_t)0x00001000) /*!<Filter bit 12 */
Kojto 93:e188a91d3eaa 3431 #define CAN_F13R2_FB13 ((uint32_t)0x00002000) /*!<Filter bit 13 */
Kojto 93:e188a91d3eaa 3432 #define CAN_F13R2_FB14 ((uint32_t)0x00004000) /*!<Filter bit 14 */
Kojto 93:e188a91d3eaa 3433 #define CAN_F13R2_FB15 ((uint32_t)0x00008000) /*!<Filter bit 15 */
Kojto 93:e188a91d3eaa 3434 #define CAN_F13R2_FB16 ((uint32_t)0x00010000) /*!<Filter bit 16 */
Kojto 93:e188a91d3eaa 3435 #define CAN_F13R2_FB17 ((uint32_t)0x00020000) /*!<Filter bit 17 */
Kojto 93:e188a91d3eaa 3436 #define CAN_F13R2_FB18 ((uint32_t)0x00040000) /*!<Filter bit 18 */
Kojto 93:e188a91d3eaa 3437 #define CAN_F13R2_FB19 ((uint32_t)0x00080000) /*!<Filter bit 19 */
Kojto 93:e188a91d3eaa 3438 #define CAN_F13R2_FB20 ((uint32_t)0x00100000) /*!<Filter bit 20 */
Kojto 93:e188a91d3eaa 3439 #define CAN_F13R2_FB21 ((uint32_t)0x00200000) /*!<Filter bit 21 */
Kojto 93:e188a91d3eaa 3440 #define CAN_F13R2_FB22 ((uint32_t)0x00400000) /*!<Filter bit 22 */
Kojto 93:e188a91d3eaa 3441 #define CAN_F13R2_FB23 ((uint32_t)0x00800000) /*!<Filter bit 23 */
Kojto 93:e188a91d3eaa 3442 #define CAN_F13R2_FB24 ((uint32_t)0x01000000) /*!<Filter bit 24 */
Kojto 93:e188a91d3eaa 3443 #define CAN_F13R2_FB25 ((uint32_t)0x02000000) /*!<Filter bit 25 */
Kojto 93:e188a91d3eaa 3444 #define CAN_F13R2_FB26 ((uint32_t)0x04000000) /*!<Filter bit 26 */
Kojto 93:e188a91d3eaa 3445 #define CAN_F13R2_FB27 ((uint32_t)0x08000000) /*!<Filter bit 27 */
Kojto 93:e188a91d3eaa 3446 #define CAN_F13R2_FB28 ((uint32_t)0x10000000) /*!<Filter bit 28 */
Kojto 93:e188a91d3eaa 3447 #define CAN_F13R2_FB29 ((uint32_t)0x20000000) /*!<Filter bit 29 */
Kojto 93:e188a91d3eaa 3448 #define CAN_F13R2_FB30 ((uint32_t)0x40000000) /*!<Filter bit 30 */
Kojto 93:e188a91d3eaa 3449 #define CAN_F13R2_FB31 ((uint32_t)0x80000000) /*!<Filter bit 31 */
Kojto 93:e188a91d3eaa 3450
Kojto 93:e188a91d3eaa 3451 /******************************************************************************/
Kojto 93:e188a91d3eaa 3452 /* */
Kojto 93:e188a91d3eaa 3453 /* CRC calculation unit (CRC) */
Kojto 93:e188a91d3eaa 3454 /* */
Kojto 93:e188a91d3eaa 3455 /******************************************************************************/
Kojto 93:e188a91d3eaa 3456 /******************* Bit definition for CRC_DR register *********************/
Kojto 93:e188a91d3eaa 3457 #define CRC_DR_DR ((uint32_t)0xFFFFFFFF) /*!< Data register bits */
Kojto 93:e188a91d3eaa 3458
Kojto 93:e188a91d3eaa 3459 /******************* Bit definition for CRC_IDR register ********************/
Kojto 93:e188a91d3eaa 3460 #define CRC_IDR_IDR ((uint32_t)0xFF) /*!< General-purpose 8-bit data register bits */
Kojto 93:e188a91d3eaa 3461
Kojto 93:e188a91d3eaa 3462 /******************** Bit definition for CRC_CR register ********************/
Kojto 93:e188a91d3eaa 3463 #define CRC_CR_RESET ((uint32_t)0x00000001) /*!< RESET the CRC computation unit bit */
Kojto 93:e188a91d3eaa 3464 #define CRC_CR_POLYSIZE ((uint32_t)0x00000018) /*!< Polynomial size bits */
Kojto 93:e188a91d3eaa 3465 #define CRC_CR_POLYSIZE_0 ((uint32_t)0x00000008) /*!< Polynomial size bit 0 */
Kojto 93:e188a91d3eaa 3466 #define CRC_CR_POLYSIZE_1 ((uint32_t)0x00000010) /*!< Polynomial size bit 1 */
Kojto 93:e188a91d3eaa 3467 #define CRC_CR_REV_IN ((uint32_t)0x00000060) /*!< REV_IN Reverse Input Data bits */
Kojto 93:e188a91d3eaa 3468 #define CRC_CR_REV_IN_0 ((uint32_t)0x00000020) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3469 #define CRC_CR_REV_IN_1 ((uint32_t)0x00000040) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3470 #define CRC_CR_REV_OUT ((uint32_t)0x00000080) /*!< REV_OUT Reverse Output Data bits */
Kojto 93:e188a91d3eaa 3471
Kojto 93:e188a91d3eaa 3472 /******************* Bit definition for CRC_INIT register *******************/
Kojto 93:e188a91d3eaa 3473 #define CRC_INIT_INIT ((uint32_t)0xFFFFFFFF) /*!< Initial CRC value bits */
Kojto 93:e188a91d3eaa 3474
Kojto 93:e188a91d3eaa 3475 /******************* Bit definition for CRC_POL register ********************/
Kojto 93:e188a91d3eaa 3476 #define CRC_POL_POL ((uint32_t)0xFFFFFFFF) /*!< Coefficients of the polynomial */
Kojto 93:e188a91d3eaa 3477
Kojto 93:e188a91d3eaa 3478 /******************************************************************************/
Kojto 93:e188a91d3eaa 3479 /* */
Kojto 93:e188a91d3eaa 3480 /* Digital to Analog Converter (DAC) */
Kojto 93:e188a91d3eaa 3481 /* */
Kojto 93:e188a91d3eaa 3482 /******************************************************************************/
Kojto 93:e188a91d3eaa 3483 /******************** Bit definition for DAC_CR register ********************/
Kojto 93:e188a91d3eaa 3484 #define DAC_CR_EN1 ((uint32_t)0x00000001) /*!< DAC channel1 enable */
Kojto 93:e188a91d3eaa 3485 #define DAC_CR_BOFF1 ((uint32_t)0x00000002) /*!< DAC channel1 output buffer disable */
Kojto 93:e188a91d3eaa 3486 #define DAC_CR_TEN1 ((uint32_t)0x00000004) /*!< DAC channel1 Trigger enable */
Kojto 93:e188a91d3eaa 3487
Kojto 93:e188a91d3eaa 3488 #define DAC_CR_TSEL1 ((uint32_t)0x00000038) /*!< TSEL1[2:0] (DAC channel1 Trigger selection) */
Kojto 93:e188a91d3eaa 3489 #define DAC_CR_TSEL1_0 ((uint32_t)0x00000008) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3490 #define DAC_CR_TSEL1_1 ((uint32_t)0x00000010) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3491 #define DAC_CR_TSEL1_2 ((uint32_t)0x00000020) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 3492
Kojto 93:e188a91d3eaa 3493 #define DAC_CR_WAVE1 ((uint32_t)0x000000C0) /*!< WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable) */
Kojto 93:e188a91d3eaa 3494 #define DAC_CR_WAVE1_0 ((uint32_t)0x00000040) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3495 #define DAC_CR_WAVE1_1 ((uint32_t)0x00000080) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3496
Kojto 93:e188a91d3eaa 3497 #define DAC_CR_MAMP1 ((uint32_t)0x00000F00) /*!< MAMP1[3:0] (DAC channel1 Mask/Amplitude selector) */
Kojto 93:e188a91d3eaa 3498 #define DAC_CR_MAMP1_0 ((uint32_t)0x00000100) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3499 #define DAC_CR_MAMP1_1 ((uint32_t)0x00000200) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3500 #define DAC_CR_MAMP1_2 ((uint32_t)0x00000400) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 3501 #define DAC_CR_MAMP1_3 ((uint32_t)0x00000800) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 3502
Kojto 93:e188a91d3eaa 3503 #define DAC_CR_DMAEN1 ((uint32_t)0x00001000) /*!< DAC channel1 DMA enable */
Kojto 93:e188a91d3eaa 3504 #define DAC_CR_DMAUDRIE1 ((uint32_t)0x00002000) /*!< DAC channel1 DMA underrun IT enable */
Kojto 93:e188a91d3eaa 3505 #define DAC_CR_EN2 ((uint32_t)0x00010000) /*!< DAC channel2 enable */
Kojto 93:e188a91d3eaa 3506 #define DAC_CR_BOFF2 ((uint32_t)0x00020000) /*!< DAC channel2 output buffer disable */
Kojto 93:e188a91d3eaa 3507 #define DAC_CR_TEN2 ((uint32_t)0x00040000) /*!< DAC channel2 Trigger enable */
Kojto 93:e188a91d3eaa 3508
Kojto 93:e188a91d3eaa 3509 #define DAC_CR_TSEL2 ((uint32_t)0x00380000) /*!< TSEL2[2:0] (DAC channel2 Trigger selection) */
Kojto 93:e188a91d3eaa 3510 #define DAC_CR_TSEL2_0 ((uint32_t)0x00080000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3511 #define DAC_CR_TSEL2_1 ((uint32_t)0x00100000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3512 #define DAC_CR_TSEL2_2 ((uint32_t)0x00200000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 3513
Kojto 93:e188a91d3eaa 3514 #define DAC_CR_WAVE2 ((uint32_t)0x00C00000) /*!< WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable) */
Kojto 93:e188a91d3eaa 3515 #define DAC_CR_WAVE2_0 ((uint32_t)0x00400000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3516 #define DAC_CR_WAVE2_1 ((uint32_t)0x00800000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3517
Kojto 93:e188a91d3eaa 3518 #define DAC_CR_MAMP2 ((uint32_t)0x0F000000) /*!< MAMP2[3:0] (DAC channel2 Mask/Amplitude selector) */
Kojto 93:e188a91d3eaa 3519 #define DAC_CR_MAMP2_0 ((uint32_t)0x01000000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3520 #define DAC_CR_MAMP2_1 ((uint32_t)0x02000000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3521 #define DAC_CR_MAMP2_2 ((uint32_t)0x04000000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 3522 #define DAC_CR_MAMP2_3 ((uint32_t)0x08000000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 3523
Kojto 93:e188a91d3eaa 3524 #define DAC_CR_DMAEN2 ((uint32_t)0x10000000) /*!< DAC channel2 DMA enabled */
Kojto 93:e188a91d3eaa 3525 #define DAC_CR_DMAUDRIE2 ((uint32_t)0x20000000) /*!< DAC channel2 DMA underrun IT enable */
Kojto 93:e188a91d3eaa 3526
Kojto 93:e188a91d3eaa 3527 /***************** Bit definition for DAC_SWTRIGR register ******************/
Kojto 93:e188a91d3eaa 3528 #define DAC_SWTRIGR_SWTRIG1 ((uint32_t)0x00000001) /*!< DAC channel1 software trigger */
Kojto 93:e188a91d3eaa 3529 #define DAC_SWTRIGR_SWTRIG2 ((uint32_t)0x00000002) /*!< DAC channel2 software trigger */
Kojto 93:e188a91d3eaa 3530
Kojto 93:e188a91d3eaa 3531 /***************** Bit definition for DAC_DHR12R1 register ******************/
Kojto 93:e188a91d3eaa 3532 #define DAC_DHR12R1_DACC1DHR ((uint32_t)0x00000FFF) /*!< DAC channel1 12-bit Right aligned data */
Kojto 93:e188a91d3eaa 3533
Kojto 93:e188a91d3eaa 3534 /***************** Bit definition for DAC_DHR12L1 register ******************/
Kojto 93:e188a91d3eaa 3535 #define DAC_DHR12L1_DACC1DHR ((uint32_t)0x0000FFF0) /*!< DAC channel1 12-bit Left aligned data */
Kojto 93:e188a91d3eaa 3536
Kojto 93:e188a91d3eaa 3537 /****************** Bit definition for DAC_DHR8R1 register ******************/
Kojto 93:e188a91d3eaa 3538 #define DAC_DHR8R1_DACC1DHR ((uint32_t)0x000000FF) /*!< DAC channel1 8-bit Right aligned data */
Kojto 93:e188a91d3eaa 3539
Kojto 93:e188a91d3eaa 3540 /***************** Bit definition for DAC_DHR12R2 register ******************/
Kojto 93:e188a91d3eaa 3541 #define DAC_DHR12R2_DACC2DHR ((uint32_t)0x00000FFF) /*!< DAC channel2 12-bit Right aligned data */
Kojto 93:e188a91d3eaa 3542
Kojto 93:e188a91d3eaa 3543 /***************** Bit definition for DAC_DHR12L2 register ******************/
Kojto 93:e188a91d3eaa 3544 #define DAC_DHR12L2_DACC2DHR ((uint32_t)0x0000FFF0) /*!< DAC channel2 12-bit Left aligned data */
Kojto 93:e188a91d3eaa 3545
Kojto 93:e188a91d3eaa 3546 /****************** Bit definition for DAC_DHR8R2 register ******************/
Kojto 93:e188a91d3eaa 3547 #define DAC_DHR8R2_DACC2DHR ((uint32_t)0x000000FF) /*!< DAC channel2 8-bit Right aligned data */
Kojto 93:e188a91d3eaa 3548
Kojto 93:e188a91d3eaa 3549 /***************** Bit definition for DAC_DHR12RD register ******************/
Kojto 93:e188a91d3eaa 3550 #define DAC_DHR12RD_DACC1DHR ((uint32_t)0x00000FFF) /*!< DAC channel1 12-bit Right aligned data */
Kojto 93:e188a91d3eaa 3551 #define DAC_DHR12RD_DACC2DHR ((uint32_t)0x0FFF0000) /*!< DAC channel2 12-bit Right aligned data */
Kojto 93:e188a91d3eaa 3552
Kojto 93:e188a91d3eaa 3553 /***************** Bit definition for DAC_DHR12LD register ******************/
Kojto 93:e188a91d3eaa 3554 #define DAC_DHR12LD_DACC1DHR ((uint32_t)0x0000FFF0) /*!< DAC channel1 12-bit Left aligned data */
Kojto 93:e188a91d3eaa 3555 #define DAC_DHR12LD_DACC2DHR ((uint32_t)0xFFF00000) /*!< DAC channel2 12-bit Left aligned data */
Kojto 93:e188a91d3eaa 3556
Kojto 93:e188a91d3eaa 3557 /****************** Bit definition for DAC_DHR8RD register ******************/
Kojto 93:e188a91d3eaa 3558 #define DAC_DHR8RD_DACC1DHR ((uint32_t)0x000000FF) /*!< DAC channel1 8-bit Right aligned data */
Kojto 93:e188a91d3eaa 3559 #define DAC_DHR8RD_DACC2DHR ((uint32_t)0x0000FF00) /*!< DAC channel2 8-bit Right aligned data */
Kojto 93:e188a91d3eaa 3560
Kojto 93:e188a91d3eaa 3561 /******************* Bit definition for DAC_DOR1 register *******************/
Kojto 93:e188a91d3eaa 3562 #define DAC_DOR1_DACC1DOR ((uint32_t)0x00000FFF) /*!< DAC channel1 data output */
Kojto 93:e188a91d3eaa 3563
Kojto 93:e188a91d3eaa 3564 /******************* Bit definition for DAC_DOR2 register *******************/
Kojto 93:e188a91d3eaa 3565 #define DAC_DOR2_DACC2DOR ((uint32_t)0x00000FFF) /*!< DAC channel2 data output */
Kojto 93:e188a91d3eaa 3566
Kojto 93:e188a91d3eaa 3567 /******************** Bit definition for DAC_SR register ********************/
Kojto 93:e188a91d3eaa 3568 #define DAC_SR_DMAUDR1 ((uint32_t)0x00002000) /*!< DAC channel1 DMA underrun flag */
Kojto 93:e188a91d3eaa 3569 #define DAC_SR_DMAUDR2 ((uint32_t)0x20000000) /*!< DAC channel2 DMA underrun flag */
Kojto 93:e188a91d3eaa 3570
Kojto 93:e188a91d3eaa 3571 /******************************************************************************/
Kojto 93:e188a91d3eaa 3572 /* */
Kojto 93:e188a91d3eaa 3573 /* Debug MCU (DBGMCU) */
Kojto 93:e188a91d3eaa 3574 /* */
Kojto 93:e188a91d3eaa 3575 /******************************************************************************/
Kojto 93:e188a91d3eaa 3576 /******************** Bit definition for DBGMCU_IDCODE register *************/
Kojto 93:e188a91d3eaa 3577 #define DBGMCU_IDCODE_DEV_ID ((uint32_t)0x00000FFF)
Kojto 93:e188a91d3eaa 3578 #define DBGMCU_IDCODE_REV_ID ((uint32_t)0xFFFF0000)
Kojto 93:e188a91d3eaa 3579
Kojto 93:e188a91d3eaa 3580 /******************** Bit definition for DBGMCU_CR register *****************/
Kojto 93:e188a91d3eaa 3581 #define DBGMCU_CR_DBG_SLEEP ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 3582 #define DBGMCU_CR_DBG_STOP ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 3583 #define DBGMCU_CR_DBG_STANDBY ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 3584 #define DBGMCU_CR_TRACE_IOEN ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 3585
Kojto 93:e188a91d3eaa 3586 #define DBGMCU_CR_TRACE_MODE ((uint32_t)0x000000C0)
Kojto 93:e188a91d3eaa 3587 #define DBGMCU_CR_TRACE_MODE_0 ((uint32_t)0x00000040)/*!<Bit 0 */
Kojto 93:e188a91d3eaa 3588 #define DBGMCU_CR_TRACE_MODE_1 ((uint32_t)0x00000080)/*!<Bit 1 */
Kojto 93:e188a91d3eaa 3589
Kojto 93:e188a91d3eaa 3590 /******************** Bit definition for DBGMCU_APB1_FZ register ************/
Kojto 93:e188a91d3eaa 3591 #define DBGMCU_APB1_FZ_DBG_TIM2_STOP ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 3592 #define DBGMCU_APB1_FZ_DBG_TIM3_STOP ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 3593 #define DBGMCU_APB1_FZ_DBG_TIM4_STOP ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 3594 #define DBGMCU_APB1_FZ_DBG_TIM6_STOP ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 3595 #define DBGMCU_APB1_FZ_DBG_TIM7_STOP ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 3596 #define DBGMCU_APB1_FZ_DBG_RTC_STOP ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 3597 #define DBGMCU_APB1_FZ_DBG_WWDG_STOP ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 3598 #define DBGMCU_APB1_FZ_DBG_IWDG_STOP ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 3599 #define DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 3600 #define DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 3601 #define DBGMCU_APB1_FZ_DBG_CAN_STOP ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 3602 #define DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 3603
Kojto 93:e188a91d3eaa 3604 /******************** Bit definition for DBGMCU_APB2_FZ register ************/
Kojto 93:e188a91d3eaa 3605 #define DBGMCU_APB2_FZ_DBG_TIM1_STOP ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 3606 #define DBGMCU_APB2_FZ_DBG_TIM8_STOP ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 3607 #define DBGMCU_APB2_FZ_DBG_TIM15_STOP ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 3608 #define DBGMCU_APB2_FZ_DBG_TIM16_STOP ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 3609 #define DBGMCU_APB2_FZ_DBG_TIM17_STOP ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 3610 #define DBGMCU_APB2_FZ_DBG_TIM20_STOP ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 3611
Kojto 93:e188a91d3eaa 3612 /******************************************************************************/
Kojto 93:e188a91d3eaa 3613 /* */
Kojto 93:e188a91d3eaa 3614 /* DMA Controller (DMA) */
Kojto 93:e188a91d3eaa 3615 /* */
Kojto 93:e188a91d3eaa 3616 /******************************************************************************/
Kojto 93:e188a91d3eaa 3617 /******************* Bit definition for DMA_ISR register ********************/
Kojto 93:e188a91d3eaa 3618 #define DMA_ISR_GIF1 ((uint32_t)0x00000001) /*!< Channel 1 Global interrupt flag */
Kojto 93:e188a91d3eaa 3619 #define DMA_ISR_TCIF1 ((uint32_t)0x00000002) /*!< Channel 1 Transfer Complete flag */
Kojto 93:e188a91d3eaa 3620 #define DMA_ISR_HTIF1 ((uint32_t)0x00000004) /*!< Channel 1 Half Transfer flag */
Kojto 93:e188a91d3eaa 3621 #define DMA_ISR_TEIF1 ((uint32_t)0x00000008) /*!< Channel 1 Transfer Error flag */
Kojto 93:e188a91d3eaa 3622 #define DMA_ISR_GIF2 ((uint32_t)0x00000010) /*!< Channel 2 Global interrupt flag */
Kojto 93:e188a91d3eaa 3623 #define DMA_ISR_TCIF2 ((uint32_t)0x00000020) /*!< Channel 2 Transfer Complete flag */
Kojto 93:e188a91d3eaa 3624 #define DMA_ISR_HTIF2 ((uint32_t)0x00000040) /*!< Channel 2 Half Transfer flag */
Kojto 93:e188a91d3eaa 3625 #define DMA_ISR_TEIF2 ((uint32_t)0x00000080) /*!< Channel 2 Transfer Error flag */
Kojto 93:e188a91d3eaa 3626 #define DMA_ISR_GIF3 ((uint32_t)0x00000100) /*!< Channel 3 Global interrupt flag */
Kojto 93:e188a91d3eaa 3627 #define DMA_ISR_TCIF3 ((uint32_t)0x00000200) /*!< Channel 3 Transfer Complete flag */
Kojto 93:e188a91d3eaa 3628 #define DMA_ISR_HTIF3 ((uint32_t)0x00000400) /*!< Channel 3 Half Transfer flag */
Kojto 93:e188a91d3eaa 3629 #define DMA_ISR_TEIF3 ((uint32_t)0x00000800) /*!< Channel 3 Transfer Error flag */
Kojto 93:e188a91d3eaa 3630 #define DMA_ISR_GIF4 ((uint32_t)0x00001000) /*!< Channel 4 Global interrupt flag */
Kojto 93:e188a91d3eaa 3631 #define DMA_ISR_TCIF4 ((uint32_t)0x00002000) /*!< Channel 4 Transfer Complete flag */
Kojto 93:e188a91d3eaa 3632 #define DMA_ISR_HTIF4 ((uint32_t)0x00004000) /*!< Channel 4 Half Transfer flag */
Kojto 93:e188a91d3eaa 3633 #define DMA_ISR_TEIF4 ((uint32_t)0x00008000) /*!< Channel 4 Transfer Error flag */
Kojto 93:e188a91d3eaa 3634 #define DMA_ISR_GIF5 ((uint32_t)0x00010000) /*!< Channel 5 Global interrupt flag */
Kojto 93:e188a91d3eaa 3635 #define DMA_ISR_TCIF5 ((uint32_t)0x00020000) /*!< Channel 5 Transfer Complete flag */
Kojto 93:e188a91d3eaa 3636 #define DMA_ISR_HTIF5 ((uint32_t)0x00040000) /*!< Channel 5 Half Transfer flag */
Kojto 93:e188a91d3eaa 3637 #define DMA_ISR_TEIF5 ((uint32_t)0x00080000) /*!< Channel 5 Transfer Error flag */
Kojto 93:e188a91d3eaa 3638 #define DMA_ISR_GIF6 ((uint32_t)0x00100000) /*!< Channel 6 Global interrupt flag */
Kojto 93:e188a91d3eaa 3639 #define DMA_ISR_TCIF6 ((uint32_t)0x00200000) /*!< Channel 6 Transfer Complete flag */
Kojto 93:e188a91d3eaa 3640 #define DMA_ISR_HTIF6 ((uint32_t)0x00400000) /*!< Channel 6 Half Transfer flag */
Kojto 93:e188a91d3eaa 3641 #define DMA_ISR_TEIF6 ((uint32_t)0x00800000) /*!< Channel 6 Transfer Error flag */
Kojto 93:e188a91d3eaa 3642 #define DMA_ISR_GIF7 ((uint32_t)0x01000000) /*!< Channel 7 Global interrupt flag */
Kojto 93:e188a91d3eaa 3643 #define DMA_ISR_TCIF7 ((uint32_t)0x02000000) /*!< Channel 7 Transfer Complete flag */
Kojto 93:e188a91d3eaa 3644 #define DMA_ISR_HTIF7 ((uint32_t)0x04000000) /*!< Channel 7 Half Transfer flag */
Kojto 93:e188a91d3eaa 3645 #define DMA_ISR_TEIF7 ((uint32_t)0x08000000) /*!< Channel 7 Transfer Error flag */
Kojto 93:e188a91d3eaa 3646
Kojto 93:e188a91d3eaa 3647 /******************* Bit definition for DMA_IFCR register *******************/
Kojto 93:e188a91d3eaa 3648 #define DMA_IFCR_CGIF1 ((uint32_t)0x00000001) /*!< Channel 1 Global interrupt clear */
Kojto 93:e188a91d3eaa 3649 #define DMA_IFCR_CTCIF1 ((uint32_t)0x00000002) /*!< Channel 1 Transfer Complete clear */
Kojto 93:e188a91d3eaa 3650 #define DMA_IFCR_CHTIF1 ((uint32_t)0x00000004) /*!< Channel 1 Half Transfer clear */
Kojto 93:e188a91d3eaa 3651 #define DMA_IFCR_CTEIF1 ((uint32_t)0x00000008) /*!< Channel 1 Transfer Error clear */
Kojto 93:e188a91d3eaa 3652 #define DMA_IFCR_CGIF2 ((uint32_t)0x00000010) /*!< Channel 2 Global interrupt clear */
Kojto 93:e188a91d3eaa 3653 #define DMA_IFCR_CTCIF2 ((uint32_t)0x00000020) /*!< Channel 2 Transfer Complete clear */
Kojto 93:e188a91d3eaa 3654 #define DMA_IFCR_CHTIF2 ((uint32_t)0x00000040) /*!< Channel 2 Half Transfer clear */
Kojto 93:e188a91d3eaa 3655 #define DMA_IFCR_CTEIF2 ((uint32_t)0x00000080) /*!< Channel 2 Transfer Error clear */
Kojto 93:e188a91d3eaa 3656 #define DMA_IFCR_CGIF3 ((uint32_t)0x00000100) /*!< Channel 3 Global interrupt clear */
Kojto 93:e188a91d3eaa 3657 #define DMA_IFCR_CTCIF3 ((uint32_t)0x00000200) /*!< Channel 3 Transfer Complete clear */
Kojto 93:e188a91d3eaa 3658 #define DMA_IFCR_CHTIF3 ((uint32_t)0x00000400) /*!< Channel 3 Half Transfer clear */
Kojto 93:e188a91d3eaa 3659 #define DMA_IFCR_CTEIF3 ((uint32_t)0x00000800) /*!< Channel 3 Transfer Error clear */
Kojto 93:e188a91d3eaa 3660 #define DMA_IFCR_CGIF4 ((uint32_t)0x00001000) /*!< Channel 4 Global interrupt clear */
Kojto 93:e188a91d3eaa 3661 #define DMA_IFCR_CTCIF4 ((uint32_t)0x00002000) /*!< Channel 4 Transfer Complete clear */
Kojto 93:e188a91d3eaa 3662 #define DMA_IFCR_CHTIF4 ((uint32_t)0x00004000) /*!< Channel 4 Half Transfer clear */
Kojto 93:e188a91d3eaa 3663 #define DMA_IFCR_CTEIF4 ((uint32_t)0x00008000) /*!< Channel 4 Transfer Error clear */
Kojto 93:e188a91d3eaa 3664 #define DMA_IFCR_CGIF5 ((uint32_t)0x00010000) /*!< Channel 5 Global interrupt clear */
Kojto 93:e188a91d3eaa 3665 #define DMA_IFCR_CTCIF5 ((uint32_t)0x00020000) /*!< Channel 5 Transfer Complete clear */
Kojto 93:e188a91d3eaa 3666 #define DMA_IFCR_CHTIF5 ((uint32_t)0x00040000) /*!< Channel 5 Half Transfer clear */
Kojto 93:e188a91d3eaa 3667 #define DMA_IFCR_CTEIF5 ((uint32_t)0x00080000) /*!< Channel 5 Transfer Error clear */
Kojto 93:e188a91d3eaa 3668 #define DMA_IFCR_CGIF6 ((uint32_t)0x00100000) /*!< Channel 6 Global interrupt clear */
Kojto 93:e188a91d3eaa 3669 #define DMA_IFCR_CTCIF6 ((uint32_t)0x00200000) /*!< Channel 6 Transfer Complete clear */
Kojto 93:e188a91d3eaa 3670 #define DMA_IFCR_CHTIF6 ((uint32_t)0x00400000) /*!< Channel 6 Half Transfer clear */
Kojto 93:e188a91d3eaa 3671 #define DMA_IFCR_CTEIF6 ((uint32_t)0x00800000) /*!< Channel 6 Transfer Error clear */
Kojto 93:e188a91d3eaa 3672 #define DMA_IFCR_CGIF7 ((uint32_t)0x01000000) /*!< Channel 7 Global interrupt clear */
Kojto 93:e188a91d3eaa 3673 #define DMA_IFCR_CTCIF7 ((uint32_t)0x02000000) /*!< Channel 7 Transfer Complete clear */
Kojto 93:e188a91d3eaa 3674 #define DMA_IFCR_CHTIF7 ((uint32_t)0x04000000) /*!< Channel 7 Half Transfer clear */
Kojto 93:e188a91d3eaa 3675 #define DMA_IFCR_CTEIF7 ((uint32_t)0x08000000) /*!< Channel 7 Transfer Error clear */
Kojto 93:e188a91d3eaa 3676
Kojto 93:e188a91d3eaa 3677 /******************* Bit definition for DMA_CCR register ********************/
Kojto 93:e188a91d3eaa 3678 #define DMA_CCR_EN ((uint32_t)0x00000001) /*!< Channel enable */
Kojto 93:e188a91d3eaa 3679 #define DMA_CCR_TCIE ((uint32_t)0x00000002) /*!< Transfer complete interrupt enable */
Kojto 93:e188a91d3eaa 3680 #define DMA_CCR_HTIE ((uint32_t)0x00000004) /*!< Half Transfer interrupt enable */
Kojto 93:e188a91d3eaa 3681 #define DMA_CCR_TEIE ((uint32_t)0x00000008) /*!< Transfer error interrupt enable */
Kojto 93:e188a91d3eaa 3682 #define DMA_CCR_DIR ((uint32_t)0x00000010) /*!< Data transfer direction */
Kojto 93:e188a91d3eaa 3683 #define DMA_CCR_CIRC ((uint32_t)0x00000020) /*!< Circular mode */
Kojto 93:e188a91d3eaa 3684 #define DMA_CCR_PINC ((uint32_t)0x00000040) /*!< Peripheral increment mode */
Kojto 93:e188a91d3eaa 3685 #define DMA_CCR_MINC ((uint32_t)0x00000080) /*!< Memory increment mode */
Kojto 93:e188a91d3eaa 3686
Kojto 93:e188a91d3eaa 3687 #define DMA_CCR_PSIZE ((uint32_t)0x00000300) /*!< PSIZE[1:0] bits (Peripheral size) */
Kojto 93:e188a91d3eaa 3688 #define DMA_CCR_PSIZE_0 ((uint32_t)0x00000100) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3689 #define DMA_CCR_PSIZE_1 ((uint32_t)0x00000200) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3690
Kojto 93:e188a91d3eaa 3691 #define DMA_CCR_MSIZE ((uint32_t)0x00000C00) /*!< MSIZE[1:0] bits (Memory size) */
Kojto 93:e188a91d3eaa 3692 #define DMA_CCR_MSIZE_0 ((uint32_t)0x00000400) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3693 #define DMA_CCR_MSIZE_1 ((uint32_t)0x00000800) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3694
Kojto 93:e188a91d3eaa 3695 #define DMA_CCR_PL ((uint32_t)0x00003000) /*!< PL[1:0] bits(Channel Priority level)*/
Kojto 93:e188a91d3eaa 3696 #define DMA_CCR_PL_0 ((uint32_t)0x00001000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3697 #define DMA_CCR_PL_1 ((uint32_t)0x00002000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3698
Kojto 93:e188a91d3eaa 3699 #define DMA_CCR_MEM2MEM ((uint32_t)0x00004000) /*!< Memory to memory mode */
Kojto 93:e188a91d3eaa 3700
Kojto 93:e188a91d3eaa 3701 /****************** Bit definition for DMA_CNDTR register *******************/
Kojto 93:e188a91d3eaa 3702 #define DMA_CNDTR_NDT ((uint32_t)0x0000FFFF) /*!< Number of data to Transfer */
Kojto 93:e188a91d3eaa 3703
Kojto 93:e188a91d3eaa 3704 /****************** Bit definition for DMA_CPAR register ********************/
Kojto 93:e188a91d3eaa 3705 #define DMA_CPAR_PA ((uint32_t)0xFFFFFFFF) /*!< Peripheral Address */
Kojto 93:e188a91d3eaa 3706
Kojto 93:e188a91d3eaa 3707 /****************** Bit definition for DMA_CMAR register ********************/
Kojto 93:e188a91d3eaa 3708 #define DMA_CMAR_MA ((uint32_t)0xFFFFFFFF) /*!< Memory Address */
Kojto 93:e188a91d3eaa 3709
Kojto 93:e188a91d3eaa 3710 /******************************************************************************/
Kojto 93:e188a91d3eaa 3711 /* */
Kojto 93:e188a91d3eaa 3712 /* External Interrupt/Event Controller (EXTI) */
Kojto 93:e188a91d3eaa 3713 /* */
Kojto 93:e188a91d3eaa 3714 /******************************************************************************/
Kojto 93:e188a91d3eaa 3715 /******************* Bit definition for EXTI_IMR1/EXTI_IMR2 register ********/
Kojto 93:e188a91d3eaa 3716 #define EXTI_IMR_MR0 ((uint32_t)0x00000001) /*!< Interrupt Mask on line 0 */
Kojto 93:e188a91d3eaa 3717 #define EXTI_IMR_MR1 ((uint32_t)0x00000002) /*!< Interrupt Mask on line 1 */
Kojto 93:e188a91d3eaa 3718 #define EXTI_IMR_MR2 ((uint32_t)0x00000004) /*!< Interrupt Mask on line 2 */
Kojto 93:e188a91d3eaa 3719 #define EXTI_IMR_MR3 ((uint32_t)0x00000008) /*!< Interrupt Mask on line 3 */
Kojto 93:e188a91d3eaa 3720 #define EXTI_IMR_MR4 ((uint32_t)0x00000010) /*!< Interrupt Mask on line 4 */
Kojto 93:e188a91d3eaa 3721 #define EXTI_IMR_MR5 ((uint32_t)0x00000020) /*!< Interrupt Mask on line 5 */
Kojto 93:e188a91d3eaa 3722 #define EXTI_IMR_MR6 ((uint32_t)0x00000040) /*!< Interrupt Mask on line 6 */
Kojto 93:e188a91d3eaa 3723 #define EXTI_IMR_MR7 ((uint32_t)0x00000080) /*!< Interrupt Mask on line 7 */
Kojto 93:e188a91d3eaa 3724 #define EXTI_IMR_MR8 ((uint32_t)0x00000100) /*!< Interrupt Mask on line 8 */
Kojto 93:e188a91d3eaa 3725 #define EXTI_IMR_MR9 ((uint32_t)0x00000200) /*!< Interrupt Mask on line 9 */
Kojto 93:e188a91d3eaa 3726 #define EXTI_IMR_MR10 ((uint32_t)0x00000400) /*!< Interrupt Mask on line 10 */
Kojto 93:e188a91d3eaa 3727 #define EXTI_IMR_MR11 ((uint32_t)0x00000800) /*!< Interrupt Mask on line 11 */
Kojto 93:e188a91d3eaa 3728 #define EXTI_IMR_MR12 ((uint32_t)0x00001000) /*!< Interrupt Mask on line 12 */
Kojto 93:e188a91d3eaa 3729 #define EXTI_IMR_MR13 ((uint32_t)0x00002000) /*!< Interrupt Mask on line 13 */
Kojto 93:e188a91d3eaa 3730 #define EXTI_IMR_MR14 ((uint32_t)0x00004000) /*!< Interrupt Mask on line 14 */
Kojto 93:e188a91d3eaa 3731 #define EXTI_IMR_MR15 ((uint32_t)0x00008000) /*!< Interrupt Mask on line 15 */
Kojto 93:e188a91d3eaa 3732 #define EXTI_IMR_MR16 ((uint32_t)0x00010000) /*!< Interrupt Mask on line 16 */
Kojto 93:e188a91d3eaa 3733 #define EXTI_IMR_MR17 ((uint32_t)0x00020000) /*!< Interrupt Mask on line 17 */
Kojto 93:e188a91d3eaa 3734 #define EXTI_IMR_MR18 ((uint32_t)0x00040000) /*!< Interrupt Mask on line 18 */
Kojto 93:e188a91d3eaa 3735 #define EXTI_IMR_MR19 ((uint32_t)0x00080000) /*!< Interrupt Mask on line 19 */
Kojto 93:e188a91d3eaa 3736 #define EXTI_IMR_MR20 ((uint32_t)0x00100000) /*!< Interrupt Mask on line 20 */
Kojto 93:e188a91d3eaa 3737 #define EXTI_IMR_MR21 ((uint32_t)0x00200000) /*!< Interrupt Mask on line 21 */
Kojto 93:e188a91d3eaa 3738 #define EXTI_IMR_MR22 ((uint32_t)0x00400000) /*!< Interrupt Mask on line 22 */
Kojto 93:e188a91d3eaa 3739 #define EXTI_IMR_MR23 ((uint32_t)0x00800000) /*!< Interrupt Mask on line 23 */
Kojto 93:e188a91d3eaa 3740 #define EXTI_IMR_MR24 ((uint32_t)0x01000000) /*!< Interrupt Mask on line 24 */
Kojto 93:e188a91d3eaa 3741 #define EXTI_IMR_MR25 ((uint32_t)0x02000000) /*!< Interrupt Mask on line 25 */
Kojto 93:e188a91d3eaa 3742 #define EXTI_IMR_MR26 ((uint32_t)0x04000000) /*!< Interrupt Mask on line 26 */
Kojto 93:e188a91d3eaa 3743 #define EXTI_IMR_MR27 ((uint32_t)0x08000000) /*!< Interrupt Mask on line 27 */
Kojto 93:e188a91d3eaa 3744 #define EXTI_IMR_MR28 ((uint32_t)0x10000000) /*!< Interrupt Mask on line 28 */
Kojto 93:e188a91d3eaa 3745
Kojto 93:e188a91d3eaa 3746 /******************* Bit definition for EXTI_EMR1/EXTI_EMR2 register ********/
Kojto 93:e188a91d3eaa 3747 #define EXTI_EMR_MR0 ((uint32_t)0x00000001) /*!< Event Mask on line 0 */
Kojto 93:e188a91d3eaa 3748 #define EXTI_EMR_MR1 ((uint32_t)0x00000002) /*!< Event Mask on line 1 */
Kojto 93:e188a91d3eaa 3749 #define EXTI_EMR_MR2 ((uint32_t)0x00000004) /*!< Event Mask on line 2 */
Kojto 93:e188a91d3eaa 3750 #define EXTI_EMR_MR3 ((uint32_t)0x00000008) /*!< Event Mask on line 3 */
Kojto 93:e188a91d3eaa 3751 #define EXTI_EMR_MR4 ((uint32_t)0x00000010) /*!< Event Mask on line 4 */
Kojto 93:e188a91d3eaa 3752 #define EXTI_EMR_MR5 ((uint32_t)0x00000020) /*!< Event Mask on line 5 */
Kojto 93:e188a91d3eaa 3753 #define EXTI_EMR_MR6 ((uint32_t)0x00000040) /*!< Event Mask on line 6 */
Kojto 93:e188a91d3eaa 3754 #define EXTI_EMR_MR7 ((uint32_t)0x00000080) /*!< Event Mask on line 7 */
Kojto 93:e188a91d3eaa 3755 #define EXTI_EMR_MR8 ((uint32_t)0x00000100) /*!< Event Mask on line 8 */
Kojto 93:e188a91d3eaa 3756 #define EXTI_EMR_MR9 ((uint32_t)0x00000200) /*!< Event Mask on line 9 */
Kojto 93:e188a91d3eaa 3757 #define EXTI_EMR_MR10 ((uint32_t)0x00000400) /*!< Event Mask on line 10 */
Kojto 93:e188a91d3eaa 3758 #define EXTI_EMR_MR11 ((uint32_t)0x00000800) /*!< Event Mask on line 11 */
Kojto 93:e188a91d3eaa 3759 #define EXTI_EMR_MR12 ((uint32_t)0x00001000) /*!< Event Mask on line 12 */
Kojto 93:e188a91d3eaa 3760 #define EXTI_EMR_MR13 ((uint32_t)0x00002000) /*!< Event Mask on line 13 */
Kojto 93:e188a91d3eaa 3761 #define EXTI_EMR_MR14 ((uint32_t)0x00004000) /*!< Event Mask on line 14 */
Kojto 93:e188a91d3eaa 3762 #define EXTI_EMR_MR15 ((uint32_t)0x00008000) /*!< Event Mask on line 15 */
Kojto 93:e188a91d3eaa 3763 #define EXTI_EMR_MR16 ((uint32_t)0x00010000) /*!< Event Mask on line 16 */
Kojto 93:e188a91d3eaa 3764 #define EXTI_EMR_MR17 ((uint32_t)0x00020000) /*!< Event Mask on line 17 */
Kojto 93:e188a91d3eaa 3765 #define EXTI_EMR_MR18 ((uint32_t)0x00040000) /*!< Event Mask on line 18 */
Kojto 93:e188a91d3eaa 3766 #define EXTI_EMR_MR19 ((uint32_t)0x00080000) /*!< Event Mask on line 19 */
Kojto 93:e188a91d3eaa 3767 #define EXTI_EMR_MR20 ((uint32_t)0x00100000) /*!< Event Mask on line 20 */
Kojto 93:e188a91d3eaa 3768 #define EXTI_EMR_MR21 ((uint32_t)0x00200000) /*!< Event Mask on line 21 */
Kojto 93:e188a91d3eaa 3769 #define EXTI_EMR_MR22 ((uint32_t)0x00400000) /*!< Event Mask on line 22 */
Kojto 93:e188a91d3eaa 3770 #define EXTI_EMR_MR23 ((uint32_t)0x00800000) /*!< Event Mask on line 23 */
Kojto 93:e188a91d3eaa 3771 #define EXTI_EMR_MR24 ((uint32_t)0x01000000) /*!< Event Mask on line 24 */
Kojto 93:e188a91d3eaa 3772 #define EXTI_EMR_MR25 ((uint32_t)0x02000000) /*!< Event Mask on line 25 */
Kojto 93:e188a91d3eaa 3773 #define EXTI_EMR_MR26 ((uint32_t)0x04000000) /*!< Event Mask on line 26 */
Kojto 93:e188a91d3eaa 3774 #define EXTI_EMR_MR27 ((uint32_t)0x08000000) /*!< Event Mask on line 27 */
Kojto 93:e188a91d3eaa 3775 #define EXTI_EMR_MR28 ((uint32_t)0x10000000) /*!< Event Mask on line 28 */
Kojto 93:e188a91d3eaa 3776
Kojto 93:e188a91d3eaa 3777 /****************** Bit definition for EXTI_RTSR1/EXTI_RTSR2 register *******/
Kojto 93:e188a91d3eaa 3778 #define EXTI_RTSR_TR0 ((uint32_t)0x00000001) /*!< Rising trigger event configuration bit of line 0 */
Kojto 93:e188a91d3eaa 3779 #define EXTI_RTSR_TR1 ((uint32_t)0x00000002) /*!< Rising trigger event configuration bit of line 1 */
Kojto 93:e188a91d3eaa 3780 #define EXTI_RTSR_TR2 ((uint32_t)0x00000004) /*!< Rising trigger event configuration bit of line 2 */
Kojto 93:e188a91d3eaa 3781 #define EXTI_RTSR_TR3 ((uint32_t)0x00000008) /*!< Rising trigger event configuration bit of line 3 */
Kojto 93:e188a91d3eaa 3782 #define EXTI_RTSR_TR4 ((uint32_t)0x00000010) /*!< Rising trigger event configuration bit of line 4 */
Kojto 93:e188a91d3eaa 3783 #define EXTI_RTSR_TR5 ((uint32_t)0x00000020) /*!< Rising trigger event configuration bit of line 5 */
Kojto 93:e188a91d3eaa 3784 #define EXTI_RTSR_TR6 ((uint32_t)0x00000040) /*!< Rising trigger event configuration bit of line 6 */
Kojto 93:e188a91d3eaa 3785 #define EXTI_RTSR_TR7 ((uint32_t)0x00000080) /*!< Rising trigger event configuration bit of line 7 */
Kojto 93:e188a91d3eaa 3786 #define EXTI_RTSR_TR8 ((uint32_t)0x00000100) /*!< Rising trigger event configuration bit of line 8 */
Kojto 93:e188a91d3eaa 3787 #define EXTI_RTSR_TR9 ((uint32_t)0x00000200) /*!< Rising trigger event configuration bit of line 9 */
Kojto 93:e188a91d3eaa 3788 #define EXTI_RTSR_TR10 ((uint32_t)0x00000400) /*!< Rising trigger event configuration bit of line 10 */
Kojto 93:e188a91d3eaa 3789 #define EXTI_RTSR_TR11 ((uint32_t)0x00000800) /*!< Rising trigger event configuration bit of line 11 */
Kojto 93:e188a91d3eaa 3790 #define EXTI_RTSR_TR12 ((uint32_t)0x00001000) /*!< Rising trigger event configuration bit of line 12 */
Kojto 93:e188a91d3eaa 3791 #define EXTI_RTSR_TR13 ((uint32_t)0x00002000) /*!< Rising trigger event configuration bit of line 13 */
Kojto 93:e188a91d3eaa 3792 #define EXTI_RTSR_TR14 ((uint32_t)0x00004000) /*!< Rising trigger event configuration bit of line 14 */
Kojto 93:e188a91d3eaa 3793 #define EXTI_RTSR_TR15 ((uint32_t)0x00008000) /*!< Rising trigger event configuration bit of line 15 */
Kojto 93:e188a91d3eaa 3794 #define EXTI_RTSR_TR16 ((uint32_t)0x00010000) /*!< Rising trigger event configuration bit of line 16 */
Kojto 93:e188a91d3eaa 3795 #define EXTI_RTSR_TR17 ((uint32_t)0x00020000) /*!< Rising trigger event configuration bit of line 17 */
Kojto 93:e188a91d3eaa 3796 #define EXTI_RTSR_TR18 ((uint32_t)0x00040000) /*!< Rising trigger event configuration bit of line 18 */
Kojto 93:e188a91d3eaa 3797 #define EXTI_RTSR_TR19 ((uint32_t)0x00080000) /*!< Rising trigger event configuration bit of line 19 */
Kojto 93:e188a91d3eaa 3798 #define EXTI_RTSR_TR20 ((uint32_t)0x00100000) /*!< Rising trigger event configuration bit of line 20 */
Kojto 93:e188a91d3eaa 3799 #define EXTI_RTSR_TR21 ((uint32_t)0x00200000) /*!< Rising trigger event configuration bit of line 21 */
Kojto 93:e188a91d3eaa 3800 #define EXTI_RTSR_TR22 ((uint32_t)0x00400000) /*!< Rising trigger event configuration bit of line 22 */
Kojto 93:e188a91d3eaa 3801 #define EXTI_RTSR_TR23 ((uint32_t)0x00800000) /*!< Rising trigger event configuration bit of line 23 */
Kojto 93:e188a91d3eaa 3802 #define EXTI_RTSR_TR24 ((uint32_t)0x01000000) /*!< Rising trigger event configuration bit of line 24 */
Kojto 93:e188a91d3eaa 3803 #define EXTI_RTSR_TR25 ((uint32_t)0x02000000) /*!< Rising trigger event configuration bit of line 25 */
Kojto 93:e188a91d3eaa 3804 #define EXTI_RTSR_TR26 ((uint32_t)0x04000000) /*!< Rising trigger event configuration bit of line 26 */
Kojto 93:e188a91d3eaa 3805 #define EXTI_RTSR_TR27 ((uint32_t)0x08000000) /*!< Rising trigger event configuration bit of line 27 */
Kojto 93:e188a91d3eaa 3806 #define EXTI_RTSR_TR28 ((uint32_t)0x10000000) /*!< Rising trigger event configuration bit of line 28 */
Kojto 93:e188a91d3eaa 3807
Kojto 93:e188a91d3eaa 3808 /****************** Bit definition for EXTI_FTSR1/EXTI_FTSR2 register *******/
Kojto 93:e188a91d3eaa 3809 #define EXTI_FTSR_TR0 ((uint32_t)0x00000001) /*!< Falling trigger event configuration bit of line 0 */
Kojto 93:e188a91d3eaa 3810 #define EXTI_FTSR_TR1 ((uint32_t)0x00000002) /*!< Falling trigger event configuration bit of line 1 */
Kojto 93:e188a91d3eaa 3811 #define EXTI_FTSR_TR2 ((uint32_t)0x00000004) /*!< Falling trigger event configuration bit of line 2 */
Kojto 93:e188a91d3eaa 3812 #define EXTI_FTSR_TR3 ((uint32_t)0x00000008) /*!< Falling trigger event configuration bit of line 3 */
Kojto 93:e188a91d3eaa 3813 #define EXTI_FTSR_TR4 ((uint32_t)0x00000010) /*!< Falling trigger event configuration bit of line 4 */
Kojto 93:e188a91d3eaa 3814 #define EXTI_FTSR_TR5 ((uint32_t)0x00000020) /*!< Falling trigger event configuration bit of line 5 */
Kojto 93:e188a91d3eaa 3815 #define EXTI_FTSR_TR6 ((uint32_t)0x00000040) /*!< Falling trigger event configuration bit of line 6 */
Kojto 93:e188a91d3eaa 3816 #define EXTI_FTSR_TR7 ((uint32_t)0x00000080) /*!< Falling trigger event configuration bit of line 7 */
Kojto 93:e188a91d3eaa 3817 #define EXTI_FTSR_TR8 ((uint32_t)0x00000100) /*!< Falling trigger event configuration bit of line 8 */
Kojto 93:e188a91d3eaa 3818 #define EXTI_FTSR_TR9 ((uint32_t)0x00000200) /*!< Falling trigger event configuration bit of line 9 */
Kojto 93:e188a91d3eaa 3819 #define EXTI_FTSR_TR10 ((uint32_t)0x00000400) /*!< Falling trigger event configuration bit of line 10 */
Kojto 93:e188a91d3eaa 3820 #define EXTI_FTSR_TR11 ((uint32_t)0x00000800) /*!< Falling trigger event configuration bit of line 11 */
Kojto 93:e188a91d3eaa 3821 #define EXTI_FTSR_TR12 ((uint32_t)0x00001000) /*!< Falling trigger event configuration bit of line 12 */
Kojto 93:e188a91d3eaa 3822 #define EXTI_FTSR_TR13 ((uint32_t)0x00002000) /*!< Falling trigger event configuration bit of line 13 */
Kojto 93:e188a91d3eaa 3823 #define EXTI_FTSR_TR14 ((uint32_t)0x00004000) /*!< Falling trigger event configuration bit of line 14 */
Kojto 93:e188a91d3eaa 3824 #define EXTI_FTSR_TR15 ((uint32_t)0x00008000) /*!< Falling trigger event configuration bit of line 15 */
Kojto 93:e188a91d3eaa 3825 #define EXTI_FTSR_TR16 ((uint32_t)0x00010000) /*!< Falling trigger event configuration bit of line 16 */
Kojto 93:e188a91d3eaa 3826 #define EXTI_FTSR_TR17 ((uint32_t)0x00020000) /*!< Falling trigger event configuration bit of line 17 */
Kojto 93:e188a91d3eaa 3827 #define EXTI_FTSR_TR18 ((uint32_t)0x00040000) /*!< Falling trigger event configuration bit of line 18 */
Kojto 93:e188a91d3eaa 3828 #define EXTI_FTSR_TR19 ((uint32_t)0x00080000) /*!< Falling trigger event configuration bit of line 19 */
Kojto 93:e188a91d3eaa 3829 #define EXTI_FTSR_TR20 ((uint32_t)0x00100000) /*!< Falling trigger event configuration bit of line 20 */
Kojto 93:e188a91d3eaa 3830 #define EXTI_FTSR_TR21 ((uint32_t)0x00200000) /*!< Falling trigger event configuration bit of line 21 */
Kojto 93:e188a91d3eaa 3831 #define EXTI_FTSR_TR22 ((uint32_t)0x00400000) /*!< Falling trigger event configuration bit of line 22 */
Kojto 93:e188a91d3eaa 3832 #define EXTI_FTSR_TR23 ((uint32_t)0x00800000) /*!< Falling trigger event configuration bit of line 23 */
Kojto 93:e188a91d3eaa 3833 #define EXTI_FTSR_TR24 ((uint32_t)0x01000000) /*!< Falling trigger event configuration bit of line 24 */
Kojto 93:e188a91d3eaa 3834 #define EXTI_FTSR_TR25 ((uint32_t)0x02000000) /*!< Falling trigger event configuration bit of line 25 */
Kojto 93:e188a91d3eaa 3835 #define EXTI_FTSR_TR26 ((uint32_t)0x04000000) /*!< Falling trigger event configuration bit of line 26 */
Kojto 93:e188a91d3eaa 3836 #define EXTI_FTSR_TR27 ((uint32_t)0x08000000) /*!< Falling trigger event configuration bit of line 27 */
Kojto 93:e188a91d3eaa 3837 #define EXTI_FTSR_TR28 ((uint32_t)0x10000000) /*!< Falling trigger event configuration bit of line 28 */
Kojto 93:e188a91d3eaa 3838
Kojto 93:e188a91d3eaa 3839 /****************** Bit definition for EXTI_SWIER1/EXTI_SWIER2 register *****/
Kojto 93:e188a91d3eaa 3840 #define EXTI_SWIER_SWIER0 ((uint32_t)0x00000001) /*!< Software Interrupt on line 0 */
Kojto 93:e188a91d3eaa 3841 #define EXTI_SWIER_SWIER1 ((uint32_t)0x00000002) /*!< Software Interrupt on line 1 */
Kojto 93:e188a91d3eaa 3842 #define EXTI_SWIER_SWIER2 ((uint32_t)0x00000004) /*!< Software Interrupt on line 2 */
Kojto 93:e188a91d3eaa 3843 #define EXTI_SWIER_SWIER3 ((uint32_t)0x00000008) /*!< Software Interrupt on line 3 */
Kojto 93:e188a91d3eaa 3844 #define EXTI_SWIER_SWIER4 ((uint32_t)0x00000010) /*!< Software Interrupt on line 4 */
Kojto 93:e188a91d3eaa 3845 #define EXTI_SWIER_SWIER5 ((uint32_t)0x00000020) /*!< Software Interrupt on line 5 */
Kojto 93:e188a91d3eaa 3846 #define EXTI_SWIER_SWIER6 ((uint32_t)0x00000040) /*!< Software Interrupt on line 6 */
Kojto 93:e188a91d3eaa 3847 #define EXTI_SWIER_SWIER7 ((uint32_t)0x00000080) /*!< Software Interrupt on line 7 */
Kojto 93:e188a91d3eaa 3848 #define EXTI_SWIER_SWIER8 ((uint32_t)0x00000100) /*!< Software Interrupt on line 8 */
Kojto 93:e188a91d3eaa 3849 #define EXTI_SWIER_SWIER9 ((uint32_t)0x00000200) /*!< Software Interrupt on line 9 */
Kojto 93:e188a91d3eaa 3850 #define EXTI_SWIER_SWIER10 ((uint32_t)0x00000400) /*!< Software Interrupt on line 10 */
Kojto 93:e188a91d3eaa 3851 #define EXTI_SWIER_SWIER11 ((uint32_t)0x00000800) /*!< Software Interrupt on line 11 */
Kojto 93:e188a91d3eaa 3852 #define EXTI_SWIER_SWIER12 ((uint32_t)0x00001000) /*!< Software Interrupt on line 12 */
Kojto 93:e188a91d3eaa 3853 #define EXTI_SWIER_SWIER13 ((uint32_t)0x00002000) /*!< Software Interrupt on line 13 */
Kojto 93:e188a91d3eaa 3854 #define EXTI_SWIER_SWIER14 ((uint32_t)0x00004000) /*!< Software Interrupt on line 14 */
Kojto 93:e188a91d3eaa 3855 #define EXTI_SWIER_SWIER15 ((uint32_t)0x00008000) /*!< Software Interrupt on line 15 */
Kojto 93:e188a91d3eaa 3856 #define EXTI_SWIER_SWIER16 ((uint32_t)0x00010000) /*!< Software Interrupt on line 16 */
Kojto 93:e188a91d3eaa 3857 #define EXTI_SWIER_SWIER17 ((uint32_t)0x00020000) /*!< Software Interrupt on line 17 */
Kojto 93:e188a91d3eaa 3858 #define EXTI_SWIER_SWIER18 ((uint32_t)0x00040000) /*!< Software Interrupt on line 18 */
Kojto 93:e188a91d3eaa 3859 #define EXTI_SWIER_SWIER19 ((uint32_t)0x00080000) /*!< Software Interrupt on line 19 */
Kojto 93:e188a91d3eaa 3860 #define EXTI_SWIER_SWIER20 ((uint32_t)0x00100000) /*!< Software Interrupt on line 20 */
Kojto 93:e188a91d3eaa 3861 #define EXTI_SWIER_SWIER21 ((uint32_t)0x00200000) /*!< Software Interrupt on line 21 */
Kojto 93:e188a91d3eaa 3862 #define EXTI_SWIER_SWIER22 ((uint32_t)0x00400000) /*!< Software Interrupt on line 22 */
Kojto 93:e188a91d3eaa 3863 #define EXTI_SWIER_SWIER23 ((uint32_t)0x00800000) /*!< Software Interrupt on line 23 */
Kojto 93:e188a91d3eaa 3864 #define EXTI_SWIER_SWIER24 ((uint32_t)0x01000000) /*!< Software Interrupt on line 24 */
Kojto 93:e188a91d3eaa 3865 #define EXTI_SWIER_SWIER25 ((uint32_t)0x02000000) /*!< Software Interrupt on line 25 */
Kojto 93:e188a91d3eaa 3866 #define EXTI_SWIER_SWIER26 ((uint32_t)0x04000000) /*!< Software Interrupt on line 26 */
Kojto 93:e188a91d3eaa 3867 #define EXTI_SWIER_SWIER27 ((uint32_t)0x08000000) /*!< Software Interrupt on line 27 */
Kojto 93:e188a91d3eaa 3868 #define EXTI_SWIER_SWIER28 ((uint32_t)0x10000000) /*!< Software Interrupt on line 28 */
Kojto 93:e188a91d3eaa 3869
Kojto 93:e188a91d3eaa 3870 /******************* Bit definition for EXTI_PR1/EXTI_PR2 register **********/
Kojto 93:e188a91d3eaa 3871 #define EXTI_PR_PR0 ((uint32_t)0x00000001) /*!< Pending bit for line 0 */
Kojto 93:e188a91d3eaa 3872 #define EXTI_PR_PR1 ((uint32_t)0x00000002) /*!< Pending bit for line 1 */
Kojto 93:e188a91d3eaa 3873 #define EXTI_PR_PR2 ((uint32_t)0x00000004) /*!< Pending bit for line 2 */
Kojto 93:e188a91d3eaa 3874 #define EXTI_PR_PR3 ((uint32_t)0x00000008) /*!< Pending bit for line 3 */
Kojto 93:e188a91d3eaa 3875 #define EXTI_PR_PR4 ((uint32_t)0x00000010) /*!< Pending bit for line 4 */
Kojto 93:e188a91d3eaa 3876 #define EXTI_PR_PR5 ((uint32_t)0x00000020) /*!< Pending bit for line 5 */
Kojto 93:e188a91d3eaa 3877 #define EXTI_PR_PR6 ((uint32_t)0x00000040) /*!< Pending bit for line 6 */
Kojto 93:e188a91d3eaa 3878 #define EXTI_PR_PR7 ((uint32_t)0x00000080) /*!< Pending bit for line 7 */
Kojto 93:e188a91d3eaa 3879 #define EXTI_PR_PR8 ((uint32_t)0x00000100) /*!< Pending bit for line 8 */
Kojto 93:e188a91d3eaa 3880 #define EXTI_PR_PR9 ((uint32_t)0x00000200) /*!< Pending bit for line 9 */
Kojto 93:e188a91d3eaa 3881 #define EXTI_PR_PR10 ((uint32_t)0x00000400) /*!< Pending bit for line 10 */
Kojto 93:e188a91d3eaa 3882 #define EXTI_PR_PR11 ((uint32_t)0x00000800) /*!< Pending bit for line 11 */
Kojto 93:e188a91d3eaa 3883 #define EXTI_PR_PR12 ((uint32_t)0x00001000) /*!< Pending bit for line 12 */
Kojto 93:e188a91d3eaa 3884 #define EXTI_PR_PR13 ((uint32_t)0x00002000) /*!< Pending bit for line 13 */
Kojto 93:e188a91d3eaa 3885 #define EXTI_PR_PR14 ((uint32_t)0x00004000) /*!< Pending bit for line 14 */
Kojto 93:e188a91d3eaa 3886 #define EXTI_PR_PR15 ((uint32_t)0x00008000) /*!< Pending bit for line 15 */
Kojto 93:e188a91d3eaa 3887 #define EXTI_PR_PR16 ((uint32_t)0x00010000) /*!< Pending bit for line 16 */
Kojto 93:e188a91d3eaa 3888 #define EXTI_PR_PR17 ((uint32_t)0x00020000) /*!< Pending bit for line 17 */
Kojto 93:e188a91d3eaa 3889 #define EXTI_PR_PR18 ((uint32_t)0x00040000) /*!< Pending bit for line 18 */
Kojto 93:e188a91d3eaa 3890 #define EXTI_PR_PR19 ((uint32_t)0x00080000) /*!< Pending bit for line 19 */
Kojto 93:e188a91d3eaa 3891 #define EXTI_PR_PR20 ((uint32_t)0x00100000) /*!< Pending bit for line 20 */
Kojto 93:e188a91d3eaa 3892 #define EXTI_PR_PR21 ((uint32_t)0x00200000) /*!< Pending bit for line 21 */
Kojto 93:e188a91d3eaa 3893 #define EXTI_PR_PR22 ((uint32_t)0x00400000) /*!< Pending bit for line 22 */
Kojto 93:e188a91d3eaa 3894 #define EXTI_PR_PR23 ((uint32_t)0x00800000) /*!< Pending bit for line 23 */
Kojto 93:e188a91d3eaa 3895 #define EXTI_PR_PR24 ((uint32_t)0x01000000) /*!< Pending bit for line 24 */
Kojto 93:e188a91d3eaa 3896 #define EXTI_PR_PR25 ((uint32_t)0x02000000) /*!< Pending bit for line 25 */
Kojto 93:e188a91d3eaa 3897 #define EXTI_PR_PR26 ((uint32_t)0x04000000) /*!< Pending bit for line 26 */
Kojto 93:e188a91d3eaa 3898 #define EXTI_PR_PR27 ((uint32_t)0x08000000) /*!< Pending bit for line 27 */
Kojto 93:e188a91d3eaa 3899 #define EXTI_PR_PR28 ((uint32_t)0x10000000) /*!< Pending bit for line 28 */
Kojto 93:e188a91d3eaa 3900
Kojto 93:e188a91d3eaa 3901 /******************************************************************************/
Kojto 93:e188a91d3eaa 3902 /* */
Kojto 93:e188a91d3eaa 3903 /* FLASH */
Kojto 93:e188a91d3eaa 3904 /* */
Kojto 93:e188a91d3eaa 3905 /******************************************************************************/
Kojto 93:e188a91d3eaa 3906 /******************* Bit definition for FLASH_ACR register ******************/
Kojto 93:e188a91d3eaa 3907 #define FLASH_ACR_LATENCY ((uint32_t)0x00000007) /*!< LATENCY[2:0] bits (Latency) */
Kojto 93:e188a91d3eaa 3908 #define FLASH_ACR_LATENCY_0 ((uint32_t)0x00000001) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 3909 #define FLASH_ACR_LATENCY_1 ((uint32_t)0x00000002) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 3910 #define FLASH_ACR_LATENCY_2 ((uint32_t)0x00000004) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 3911
Kojto 93:e188a91d3eaa 3912 #define FLASH_ACR_HLFCYA ((uint32_t)0x00000008) /*!< Flash Half Cycle Access Enable */
Kojto 93:e188a91d3eaa 3913 #define FLASH_ACR_PRFTBE ((uint32_t)0x00000010) /*!< Prefetch Buffer Enable */
Kojto 93:e188a91d3eaa 3914 #define FLASH_ACR_PRFTBS ((uint32_t)0x00000020) /*!< Prefetch Buffer Status */
Kojto 93:e188a91d3eaa 3915
Kojto 93:e188a91d3eaa 3916 /****************** Bit definition for FLASH_KEYR register ******************/
Kojto 93:e188a91d3eaa 3917 #define FLASH_KEYR_FKEYR ((uint32_t)0xFFFFFFFF) /*!< FPEC Key */
Kojto 93:e188a91d3eaa 3918
Kojto 93:e188a91d3eaa 3919 #define RDP_KEY ((uint32_t)0x000000A5) /*!< RDP Key */
Kojto 93:e188a91d3eaa 3920 #define FLASH_KEY1 ((uint32_t)0x45670123) /*!< FPEC Key1 */
Kojto 93:e188a91d3eaa 3921 #define FLASH_KEY2 ((uint32_t)0xCDEF89AB) /*!< FPEC Key2 */
Kojto 93:e188a91d3eaa 3922
Kojto 93:e188a91d3eaa 3923 /***************** Bit definition for FLASH_OPTKEYR register ****************/
Kojto 93:e188a91d3eaa 3924 #define FLASH_OPTKEYR_OPTKEYR ((uint32_t)0xFFFFFFFF) /*!< Option Byte Key */
Kojto 93:e188a91d3eaa 3925
Kojto 93:e188a91d3eaa 3926 #define FLASH_OPTKEY1 FLASH_KEY1 /*!< Option Byte Key1 */
Kojto 93:e188a91d3eaa 3927 #define FLASH_OPTKEY2 FLASH_KEY2 /*!< Option Byte Key2 */
Kojto 93:e188a91d3eaa 3928
Kojto 93:e188a91d3eaa 3929 /****************** Bit definition for FLASH_SR register *******************/
Kojto 93:e188a91d3eaa 3930 #define FLASH_SR_BSY ((uint32_t)0x00000001) /*!< Busy */
Kojto 93:e188a91d3eaa 3931 #define FLASH_SR_PGERR ((uint32_t)0x00000004) /*!< Programming Error */
Kojto 93:e188a91d3eaa 3932 #define FLASH_SR_WRPERR ((uint32_t)0x00000010) /*!< Write Protection Error */
Kojto 93:e188a91d3eaa 3933 #define FLASH_SR_EOP ((uint32_t)0x00000020) /*!< End of operation */
Kojto 93:e188a91d3eaa 3934
Kojto 93:e188a91d3eaa 3935 /******************* Bit definition for FLASH_CR register *******************/
Kojto 93:e188a91d3eaa 3936 #define FLASH_CR_PG ((uint32_t)0x00000001) /*!< Programming */
Kojto 93:e188a91d3eaa 3937 #define FLASH_CR_PER ((uint32_t)0x00000002) /*!< Page Erase */
Kojto 93:e188a91d3eaa 3938 #define FLASH_CR_MER ((uint32_t)0x00000004) /*!< Mass Erase */
Kojto 93:e188a91d3eaa 3939 #define FLASH_CR_OPTPG ((uint32_t)0x00000010) /*!< Option Byte Programming */
Kojto 93:e188a91d3eaa 3940 #define FLASH_CR_OPTER ((uint32_t)0x00000020) /*!< Option Byte Erase */
Kojto 93:e188a91d3eaa 3941 #define FLASH_CR_STRT ((uint32_t)0x00000040) /*!< Start */
Kojto 93:e188a91d3eaa 3942 #define FLASH_CR_LOCK ((uint32_t)0x00000080) /*!< Lock */
Kojto 93:e188a91d3eaa 3943 #define FLASH_CR_OPTWRE ((uint32_t)0x00000200) /*!< Option Bytes Write Enable */
Kojto 93:e188a91d3eaa 3944 #define FLASH_CR_ERRIE ((uint32_t)0x00000400) /*!< Error Interrupt Enable */
Kojto 93:e188a91d3eaa 3945 #define FLASH_CR_EOPIE ((uint32_t)0x00001000) /*!< End of operation interrupt enable */
Kojto 93:e188a91d3eaa 3946 #define FLASH_CR_OBL_LAUNCH ((uint32_t)0x00002000) /*!< OptionBytes Loader Launch */
Kojto 93:e188a91d3eaa 3947
Kojto 93:e188a91d3eaa 3948 /******************* Bit definition for FLASH_AR register *******************/
Kojto 93:e188a91d3eaa 3949 #define FLASH_AR_FAR ((uint32_t)0xFFFFFFFF) /*!< Flash Address */
Kojto 93:e188a91d3eaa 3950
Kojto 93:e188a91d3eaa 3951 /****************** Bit definition for FLASH_OBR register *******************/
Kojto 93:e188a91d3eaa 3952 #define FLASH_OBR_OPTERR ((uint32_t)0x00000001) /*!< Option Byte Error */
Kojto 93:e188a91d3eaa 3953 #define FLASH_OBR_RDPRT ((uint32_t)0x00000006) /*!< Read protection */
Kojto 93:e188a91d3eaa 3954 #define FLASH_OBR_RDPRT_1 ((uint32_t)0x00000002) /*!< Read protection Level 1 */
Kojto 93:e188a91d3eaa 3955 #define FLASH_OBR_RDPRT_2 ((uint32_t)0x00000006) /*!< Read protection Level 2 */
Kojto 93:e188a91d3eaa 3956
Kojto 93:e188a91d3eaa 3957 #define FLASH_OBR_USER ((uint32_t)0x00007700) /*!< User Option Bytes */
Kojto 93:e188a91d3eaa 3958 #define FLASH_OBR_IWDG_SW ((uint32_t)0x00000100) /*!< IWDG SW */
Kojto 93:e188a91d3eaa 3959 #define FLASH_OBR_nRST_STOP ((uint32_t)0x00000200) /*!< nRST_STOP */
Kojto 93:e188a91d3eaa 3960 #define FLASH_OBR_nRST_STDBY ((uint32_t)0x00000400) /*!< nRST_STDBY */
Kojto 93:e188a91d3eaa 3961 #define FLASH_OBR_nBOOT1 ((uint32_t)0x00001000) /*!< nBOOT1 */
Kojto 93:e188a91d3eaa 3962 #define FLASH_OBR_VDDA_MONITOR ((uint32_t)0x00002000) /*!< VDDA_MONITOR */
Kojto 93:e188a91d3eaa 3963 #define FLASH_OBR_SRAM_PE ((uint32_t)0x00004000) /*!< SRAM_PE */
Kojto 93:e188a91d3eaa 3964
Kojto 93:e188a91d3eaa 3965 /****************** Bit definition for FLASH_WRPR register ******************/
Kojto 93:e188a91d3eaa 3966 #define FLASH_WRPR_WRP ((uint32_t)0xFFFFFFFF) /*!< Write Protect */
Kojto 93:e188a91d3eaa 3967
Kojto 93:e188a91d3eaa 3968 /*----------------------------------------------------------------------------*/
Kojto 93:e188a91d3eaa 3969
Kojto 93:e188a91d3eaa 3970 /****************** Bit definition for OB_RDP register **********************/
Kojto 93:e188a91d3eaa 3971 #define OB_RDP_RDP ((uint32_t)0x000000FF) /*!< Read protection option byte */
Kojto 93:e188a91d3eaa 3972 #define OB_RDP_nRDP ((uint32_t)0x0000FF00) /*!< Read protection complemented option byte */
Kojto 93:e188a91d3eaa 3973
Kojto 93:e188a91d3eaa 3974 /****************** Bit definition for OB_USER register *********************/
Kojto 93:e188a91d3eaa 3975 #define OB_USER_USER ((uint32_t)0x00FF0000) /*!< User option byte */
Kojto 93:e188a91d3eaa 3976 #define OB_USER_nUSER ((uint32_t)0xFF000000) /*!< User complemented option byte */
Kojto 93:e188a91d3eaa 3977
Kojto 93:e188a91d3eaa 3978 /****************** Bit definition for FLASH_WRP0 register ******************/
Kojto 93:e188a91d3eaa 3979 #define OB_WRP0_WRP0 ((uint32_t)0x000000FF) /*!< Flash memory write protection option bytes */
Kojto 93:e188a91d3eaa 3980 #define OB_WRP0_nWRP0 ((uint32_t)0x0000FF00) /*!< Flash memory write protection complemented option bytes */
Kojto 93:e188a91d3eaa 3981
Kojto 93:e188a91d3eaa 3982 /****************** Bit definition for FLASH_WRP1 register ******************/
Kojto 93:e188a91d3eaa 3983 #define OB_WRP1_WRP1 ((uint32_t)0x00FF0000) /*!< Flash memory write protection option bytes */
Kojto 93:e188a91d3eaa 3984 #define OB_WRP1_nWRP1 ((uint32_t)0xFF000000) /*!< Flash memory write protection complemented option bytes */
Kojto 93:e188a91d3eaa 3985
Kojto 93:e188a91d3eaa 3986 /****************** Bit definition for FLASH_WRP2 register ******************/
Kojto 93:e188a91d3eaa 3987 #define OB_WRP2_WRP2 ((uint32_t)0x000000FF) /*!< Flash memory write protection option bytes */
Kojto 93:e188a91d3eaa 3988 #define OB_WRP2_nWRP2 ((uint32_t)0x0000FF00) /*!< Flash memory write protection complemented option bytes */
Kojto 93:e188a91d3eaa 3989
Kojto 93:e188a91d3eaa 3990 /****************** Bit definition for FLASH_WRP3 register ******************/
Kojto 93:e188a91d3eaa 3991 #define OB_WRP3_WRP3 ((uint32_t)0x00FF0000) /*!< Flash memory write protection option bytes */
Kojto 93:e188a91d3eaa 3992 #define OB_WRP3_nWRP3 ((uint32_t)0xFF000000) /*!< Flash memory write protection complemented option bytes */
Kojto 93:e188a91d3eaa 3993
Kojto 93:e188a91d3eaa 3994
Kojto 93:e188a91d3eaa 3995 /******************************************************************************/
Kojto 93:e188a91d3eaa 3996 /* */
Kojto 93:e188a91d3eaa 3997 /* Flexible Memory Controller */
Kojto 93:e188a91d3eaa 3998 /* */
Kojto 93:e188a91d3eaa 3999 /******************************************************************************/
Kojto 93:e188a91d3eaa 4000 /****************** Bit definition for FMC_BCR1 register *******************/
Kojto 93:e188a91d3eaa 4001 #define FMC_BCR1_MBKEN ((uint32_t)0x00000001) /*!<Memory bank enable bit */
Kojto 93:e188a91d3eaa 4002 #define FMC_BCR1_MUXEN ((uint32_t)0x00000002) /*!<Address/data multiplexing enable bit */
Kojto 93:e188a91d3eaa 4003
Kojto 93:e188a91d3eaa 4004 #define FMC_BCR1_MTYP ((uint32_t)0x0000000C) /*!<MTYP[1:0] bits (Memory type) */
Kojto 93:e188a91d3eaa 4005 #define FMC_BCR1_MTYP_0 ((uint32_t)0x00000004) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4006 #define FMC_BCR1_MTYP_1 ((uint32_t)0x00000008) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4007
Kojto 93:e188a91d3eaa 4008 #define FMC_BCR1_MWID ((uint32_t)0x00000030) /*!<MWID[1:0] bits (Memory data bus width) */
Kojto 93:e188a91d3eaa 4009 #define FMC_BCR1_MWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4010 #define FMC_BCR1_MWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4011
Kojto 93:e188a91d3eaa 4012 #define FMC_BCR1_FACCEN ((uint32_t)0x00000040) /*!<Flash access enable */
Kojto 93:e188a91d3eaa 4013 #define FMC_BCR1_BURSTEN ((uint32_t)0x00000100) /*!<Burst enable bit */
Kojto 93:e188a91d3eaa 4014 #define FMC_BCR1_WAITPOL ((uint32_t)0x00000200) /*!<Wait signal polarity bit */
Kojto 93:e188a91d3eaa 4015 #define FMC_BCR1_WRAPMOD ((uint32_t)0x00000400) /*!<Wrapped burst mode support */
Kojto 93:e188a91d3eaa 4016 #define FMC_BCR1_WAITCFG ((uint32_t)0x00000800) /*!<Wait timing configuration */
Kojto 93:e188a91d3eaa 4017 #define FMC_BCR1_WREN ((uint32_t)0x00001000) /*!<Write enable bit */
Kojto 93:e188a91d3eaa 4018 #define FMC_BCR1_WAITEN ((uint32_t)0x00002000) /*!<Wait enable bit */
Kojto 93:e188a91d3eaa 4019 #define FMC_BCR1_EXTMOD ((uint32_t)0x00004000) /*!<Extended mode enable */
Kojto 93:e188a91d3eaa 4020 #define FMC_BCR1_ASYNCWAIT ((uint32_t)0x00008000) /*!<Asynchronous wait */
Kojto 93:e188a91d3eaa 4021 #define FMC_BCR1_CBURSTRW ((uint32_t)0x00080000) /*!<Write burst enable */
Kojto 93:e188a91d3eaa 4022 #define FMC_BCR1_CCLKEN ((uint32_t)0x00100000) /*!<Continous clock enable */
Kojto 93:e188a91d3eaa 4023
Kojto 93:e188a91d3eaa 4024 /****************** Bit definition for FMC_BCR2 register *******************/
Kojto 93:e188a91d3eaa 4025 #define FMC_BCR2_MBKEN ((uint32_t)0x00000001) /*!<Memory bank enable bit */
Kojto 93:e188a91d3eaa 4026 #define FMC_BCR2_MUXEN ((uint32_t)0x00000002) /*!<Address/data multiplexing enable bit */
Kojto 93:e188a91d3eaa 4027
Kojto 93:e188a91d3eaa 4028 #define FMC_BCR2_MTYP ((uint32_t)0x0000000C) /*!<MTYP[1:0] bits (Memory type) */
Kojto 93:e188a91d3eaa 4029 #define FMC_BCR2_MTYP_0 ((uint32_t)0x00000004) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4030 #define FMC_BCR2_MTYP_1 ((uint32_t)0x00000008) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4031
Kojto 93:e188a91d3eaa 4032 #define FMC_BCR2_MWID ((uint32_t)0x00000030) /*!<MWID[1:0] bits (Memory data bus width) */
Kojto 93:e188a91d3eaa 4033 #define FMC_BCR2_MWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4034 #define FMC_BCR2_MWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4035
Kojto 93:e188a91d3eaa 4036 #define FMC_BCR2_FACCEN ((uint32_t)0x00000040) /*!<Flash access enable */
Kojto 93:e188a91d3eaa 4037 #define FMC_BCR2_BURSTEN ((uint32_t)0x00000100) /*!<Burst enable bit */
Kojto 93:e188a91d3eaa 4038 #define FMC_BCR2_WAITPOL ((uint32_t)0x00000200) /*!<Wait signal polarity bit */
Kojto 93:e188a91d3eaa 4039 #define FMC_BCR2_WRAPMOD ((uint32_t)0x00000400) /*!<Wrapped burst mode support */
Kojto 93:e188a91d3eaa 4040 #define FMC_BCR2_WAITCFG ((uint32_t)0x00000800) /*!<Wait timing configuration */
Kojto 93:e188a91d3eaa 4041 #define FMC_BCR2_WREN ((uint32_t)0x00001000) /*!<Write enable bit */
Kojto 93:e188a91d3eaa 4042 #define FMC_BCR2_WAITEN ((uint32_t)0x00002000) /*!<Wait enable bit */
Kojto 93:e188a91d3eaa 4043 #define FMC_BCR2_EXTMOD ((uint32_t)0x00004000) /*!<Extended mode enable */
Kojto 93:e188a91d3eaa 4044 #define FMC_BCR2_ASYNCWAIT ((uint32_t)0x00008000) /*!<Asynchronous wait */
Kojto 93:e188a91d3eaa 4045 #define FMC_BCR2_CBURSTRW ((uint32_t)0x00080000) /*!<Write burst enable */
Kojto 93:e188a91d3eaa 4046
Kojto 93:e188a91d3eaa 4047 /****************** Bit definition for FMC_BCR3 register *******************/
Kojto 93:e188a91d3eaa 4048 #define FMC_BCR3_MBKEN ((uint32_t)0x00000001) /*!<Memory bank enable bit */
Kojto 93:e188a91d3eaa 4049 #define FMC_BCR3_MUXEN ((uint32_t)0x00000002) /*!<Address/data multiplexing enable bit */
Kojto 93:e188a91d3eaa 4050
Kojto 93:e188a91d3eaa 4051 #define FMC_BCR3_MTYP ((uint32_t)0x0000000C) /*!<MTYP[1:0] bits (Memory type) */
Kojto 93:e188a91d3eaa 4052 #define FMC_BCR3_MTYP_0 ((uint32_t)0x00000004) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4053 #define FMC_BCR3_MTYP_1 ((uint32_t)0x00000008) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4054
Kojto 93:e188a91d3eaa 4055 #define FMC_BCR3_MWID ((uint32_t)0x00000030) /*!<MWID[1:0] bits (Memory data bus width) */
Kojto 93:e188a91d3eaa 4056 #define FMC_BCR3_MWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4057 #define FMC_BCR3_MWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4058
Kojto 93:e188a91d3eaa 4059 #define FMC_BCR3_FACCEN ((uint32_t)0x00000040) /*!<Flash access enable */
Kojto 93:e188a91d3eaa 4060 #define FMC_BCR3_BURSTEN ((uint32_t)0x00000100) /*!<Burst enable bit */
Kojto 93:e188a91d3eaa 4061 #define FMC_BCR3_WAITPOL ((uint32_t)0x00000200) /*!<Wait signal polarity bit */
Kojto 93:e188a91d3eaa 4062 #define FMC_BCR3_WRAPMOD ((uint32_t)0x00000400) /*!<Wrapped burst mode support */
Kojto 93:e188a91d3eaa 4063 #define FMC_BCR3_WAITCFG ((uint32_t)0x00000800) /*!<Wait timing configuration */
Kojto 93:e188a91d3eaa 4064 #define FMC_BCR3_WREN ((uint32_t)0x00001000) /*!<Write enable bit */
Kojto 93:e188a91d3eaa 4065 #define FMC_BCR3_WAITEN ((uint32_t)0x00002000) /*!<Wait enable bit */
Kojto 93:e188a91d3eaa 4066 #define FMC_BCR3_EXTMOD ((uint32_t)0x00004000) /*!<Extended mode enable */
Kojto 93:e188a91d3eaa 4067 #define FMC_BCR3_ASYNCWAIT ((uint32_t)0x00008000) /*!<Asynchronous wait */
Kojto 93:e188a91d3eaa 4068 #define FMC_BCR3_CBURSTRW ((uint32_t)0x00080000) /*!<Write burst enable */
Kojto 93:e188a91d3eaa 4069
Kojto 93:e188a91d3eaa 4070 /****************** Bit definition for FMC_BCR4 register *******************/
Kojto 93:e188a91d3eaa 4071 #define FMC_BCR4_MBKEN ((uint32_t)0x00000001) /*!<Memory bank enable bit */
Kojto 93:e188a91d3eaa 4072 #define FMC_BCR4_MUXEN ((uint32_t)0x00000002) /*!<Address/data multiplexing enable bit */
Kojto 93:e188a91d3eaa 4073
Kojto 93:e188a91d3eaa 4074 #define FMC_BCR4_MTYP ((uint32_t)0x0000000C) /*!<MTYP[1:0] bits (Memory type) */
Kojto 93:e188a91d3eaa 4075 #define FMC_BCR4_MTYP_0 ((uint32_t)0x00000004) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4076 #define FMC_BCR4_MTYP_1 ((uint32_t)0x00000008) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4077
Kojto 93:e188a91d3eaa 4078 #define FMC_BCR4_MWID ((uint32_t)0x00000030) /*!<MWID[1:0] bits (Memory data bus width) */
Kojto 93:e188a91d3eaa 4079 #define FMC_BCR4_MWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4080 #define FMC_BCR4_MWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4081
Kojto 93:e188a91d3eaa 4082 #define FMC_BCR4_FACCEN ((uint32_t)0x00000040) /*!<Flash access enable */
Kojto 93:e188a91d3eaa 4083 #define FMC_BCR4_BURSTEN ((uint32_t)0x00000100) /*!<Burst enable bit */
Kojto 93:e188a91d3eaa 4084 #define FMC_BCR4_WAITPOL ((uint32_t)0x00000200) /*!<Wait signal polarity bit */
Kojto 93:e188a91d3eaa 4085 #define FMC_BCR4_WRAPMOD ((uint32_t)0x00000400) /*!<Wrapped burst mode support */
Kojto 93:e188a91d3eaa 4086 #define FMC_BCR4_WAITCFG ((uint32_t)0x00000800) /*!<Wait timing configuration */
Kojto 93:e188a91d3eaa 4087 #define FMC_BCR4_WREN ((uint32_t)0x00001000) /*!<Write enable bit */
Kojto 93:e188a91d3eaa 4088 #define FMC_BCR4_WAITEN ((uint32_t)0x00002000) /*!<Wait enable bit */
Kojto 93:e188a91d3eaa 4089 #define FMC_BCR4_EXTMOD ((uint32_t)0x00004000) /*!<Extended mode enable */
Kojto 93:e188a91d3eaa 4090 #define FMC_BCR4_ASYNCWAIT ((uint32_t)0x00008000) /*!<Asynchronous wait */
Kojto 93:e188a91d3eaa 4091 #define FMC_BCR4_CBURSTRW ((uint32_t)0x00080000) /*!<Write burst enable */
Kojto 93:e188a91d3eaa 4092
Kojto 93:e188a91d3eaa 4093 /****************** Bit definition for FMC_BTR1 register ******************/
Kojto 93:e188a91d3eaa 4094 #define FMC_BTR1_ADDSET ((uint32_t)0x0000000F) /*!<ADDSET[3:0] bits (Address setup phase duration) */
Kojto 93:e188a91d3eaa 4095 #define FMC_BTR1_ADDSET_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4096 #define FMC_BTR1_ADDSET_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4097 #define FMC_BTR1_ADDSET_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4098 #define FMC_BTR1_ADDSET_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4099
Kojto 93:e188a91d3eaa 4100 #define FMC_BTR1_ADDHLD ((uint32_t)0x000000F0) /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
Kojto 93:e188a91d3eaa 4101 #define FMC_BTR1_ADDHLD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4102 #define FMC_BTR1_ADDHLD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4103 #define FMC_BTR1_ADDHLD_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4104 #define FMC_BTR1_ADDHLD_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4105
Kojto 93:e188a91d3eaa 4106 #define FMC_BTR1_DATAST ((uint32_t)0x0000FF00) /*!<DATAST [3:0] bits (Data-phase duration) */
Kojto 93:e188a91d3eaa 4107 #define FMC_BTR1_DATAST_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4108 #define FMC_BTR1_DATAST_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4109 #define FMC_BTR1_DATAST_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4110 #define FMC_BTR1_DATAST_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4111 #define FMC_BTR1_DATAST_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4112 #define FMC_BTR1_DATAST_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4113 #define FMC_BTR1_DATAST_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4114 #define FMC_BTR1_DATAST_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4115
Kojto 93:e188a91d3eaa 4116 #define FMC_BTR1_BUSTURN ((uint32_t)0x000F0000) /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
Kojto 93:e188a91d3eaa 4117 #define FMC_BTR1_BUSTURN_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4118 #define FMC_BTR1_BUSTURN_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4119 #define FMC_BTR1_BUSTURN_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4120 #define FMC_BTR1_BUSTURN_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4121
Kojto 93:e188a91d3eaa 4122 #define FMC_BTR1_CLKDIV ((uint32_t)0x00F00000) /*!<CLKDIV[3:0] bits (Clock divide ratio) */
Kojto 93:e188a91d3eaa 4123 #define FMC_BTR1_CLKDIV_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4124 #define FMC_BTR1_CLKDIV_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4125 #define FMC_BTR1_CLKDIV_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4126 #define FMC_BTR1_CLKDIV_3 ((uint32_t)0x00800000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4127
Kojto 93:e188a91d3eaa 4128 #define FMC_BTR1_DATLAT ((uint32_t)0x0F000000) /*!<DATLA[3:0] bits (Data latency) */
Kojto 93:e188a91d3eaa 4129 #define FMC_BTR1_DATLAT_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4130 #define FMC_BTR1_DATLAT_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4131 #define FMC_BTR1_DATLAT_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4132 #define FMC_BTR1_DATLAT_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4133
Kojto 93:e188a91d3eaa 4134 #define FMC_BTR1_ACCMOD ((uint32_t)0x30000000) /*!<ACCMOD[1:0] bits (Access mode) */
Kojto 93:e188a91d3eaa 4135 #define FMC_BTR1_ACCMOD_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4136 #define FMC_BTR1_ACCMOD_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4137
Kojto 93:e188a91d3eaa 4138 /****************** Bit definition for FMC_BTR2 register *******************/
Kojto 93:e188a91d3eaa 4139 #define FMC_BTR2_ADDSET ((uint32_t)0x0000000F) /*!<ADDSET[3:0] bits (Address setup phase duration) */
Kojto 93:e188a91d3eaa 4140 #define FMC_BTR2_ADDSET_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4141 #define FMC_BTR2_ADDSET_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4142 #define FMC_BTR2_ADDSET_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4143 #define FMC_BTR2_ADDSET_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4144
Kojto 93:e188a91d3eaa 4145 #define FMC_BTR2_ADDHLD ((uint32_t)0x000000F0) /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
Kojto 93:e188a91d3eaa 4146 #define FMC_BTR2_ADDHLD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4147 #define FMC_BTR2_ADDHLD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4148 #define FMC_BTR2_ADDHLD_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4149 #define FMC_BTR2_ADDHLD_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4150
Kojto 93:e188a91d3eaa 4151 #define FMC_BTR2_DATAST ((uint32_t)0x0000FF00) /*!<DATAST [3:0] bits (Data-phase duration) */
Kojto 93:e188a91d3eaa 4152 #define FMC_BTR2_DATAST_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4153 #define FMC_BTR2_DATAST_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4154 #define FMC_BTR2_DATAST_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4155 #define FMC_BTR2_DATAST_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4156 #define FMC_BTR2_DATAST_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4157 #define FMC_BTR2_DATAST_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4158 #define FMC_BTR2_DATAST_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4159 #define FMC_BTR2_DATAST_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4160
Kojto 93:e188a91d3eaa 4161 #define FMC_BTR2_BUSTURN ((uint32_t)0x000F0000) /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
Kojto 93:e188a91d3eaa 4162 #define FMC_BTR2_BUSTURN_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4163 #define FMC_BTR2_BUSTURN_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4164 #define FMC_BTR2_BUSTURN_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4165 #define FMC_BTR2_BUSTURN_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4166
Kojto 93:e188a91d3eaa 4167 #define FMC_BTR2_CLKDIV ((uint32_t)0x00F00000) /*!<CLKDIV[3:0] bits (Clock divide ratio) */
Kojto 93:e188a91d3eaa 4168 #define FMC_BTR2_CLKDIV_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4169 #define FMC_BTR2_CLKDIV_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4170 #define FMC_BTR2_CLKDIV_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4171 #define FMC_BTR2_CLKDIV_3 ((uint32_t)0x00800000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4172
Kojto 93:e188a91d3eaa 4173 #define FMC_BTR2_DATLAT ((uint32_t)0x0F000000) /*!<DATLA[3:0] bits (Data latency) */
Kojto 93:e188a91d3eaa 4174 #define FMC_BTR2_DATLAT_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4175 #define FMC_BTR2_DATLAT_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4176 #define FMC_BTR2_DATLAT_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4177 #define FMC_BTR2_DATLAT_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4178
Kojto 93:e188a91d3eaa 4179 #define FMC_BTR2_ACCMOD ((uint32_t)0x30000000) /*!<ACCMOD[1:0] bits (Access mode) */
Kojto 93:e188a91d3eaa 4180 #define FMC_BTR2_ACCMOD_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4181 #define FMC_BTR2_ACCMOD_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4182
Kojto 93:e188a91d3eaa 4183 /******************* Bit definition for FMC_BTR3 register *******************/
Kojto 93:e188a91d3eaa 4184 #define FMC_BTR3_ADDSET ((uint32_t)0x0000000F) /*!<ADDSET[3:0] bits (Address setup phase duration) */
Kojto 93:e188a91d3eaa 4185 #define FMC_BTR3_ADDSET_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4186 #define FMC_BTR3_ADDSET_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4187 #define FMC_BTR3_ADDSET_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4188 #define FMC_BTR3_ADDSET_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4189
Kojto 93:e188a91d3eaa 4190 #define FMC_BTR3_ADDHLD ((uint32_t)0x000000F0) /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
Kojto 93:e188a91d3eaa 4191 #define FMC_BTR3_ADDHLD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4192 #define FMC_BTR3_ADDHLD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4193 #define FMC_BTR3_ADDHLD_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4194 #define FMC_BTR3_ADDHLD_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4195
Kojto 93:e188a91d3eaa 4196 #define FMC_BTR3_DATAST ((uint32_t)0x0000FF00) /*!<DATAST [3:0] bits (Data-phase duration) */
Kojto 93:e188a91d3eaa 4197 #define FMC_BTR3_DATAST_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4198 #define FMC_BTR3_DATAST_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4199 #define FMC_BTR3_DATAST_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4200 #define FMC_BTR3_DATAST_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4201 #define FMC_BTR3_DATAST_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4202 #define FMC_BTR3_DATAST_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4203 #define FMC_BTR3_DATAST_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4204 #define FMC_BTR3_DATAST_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4205
Kojto 93:e188a91d3eaa 4206 #define FMC_BTR3_BUSTURN ((uint32_t)0x000F0000) /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
Kojto 93:e188a91d3eaa 4207 #define FMC_BTR3_BUSTURN_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4208 #define FMC_BTR3_BUSTURN_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4209 #define FMC_BTR3_BUSTURN_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4210 #define FMC_BTR3_BUSTURN_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4211
Kojto 93:e188a91d3eaa 4212 #define FMC_BTR3_CLKDIV ((uint32_t)0x00F00000) /*!<CLKDIV[3:0] bits (Clock divide ratio) */
Kojto 93:e188a91d3eaa 4213 #define FMC_BTR3_CLKDIV_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4214 #define FMC_BTR3_CLKDIV_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4215 #define FMC_BTR3_CLKDIV_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4216 #define FMC_BTR3_CLKDIV_3 ((uint32_t)0x00800000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4217
Kojto 93:e188a91d3eaa 4218 #define FMC_BTR3_DATLAT ((uint32_t)0x0F000000) /*!<DATLA[3:0] bits (Data latency) */
Kojto 93:e188a91d3eaa 4219 #define FMC_BTR3_DATLAT_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4220 #define FMC_BTR3_DATLAT_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4221 #define FMC_BTR3_DATLAT_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4222 #define FMC_BTR3_DATLAT_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4223
Kojto 93:e188a91d3eaa 4224 #define FMC_BTR3_ACCMOD ((uint32_t)0x30000000) /*!<ACCMOD[1:0] bits (Access mode) */
Kojto 93:e188a91d3eaa 4225 #define FMC_BTR3_ACCMOD_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4226 #define FMC_BTR3_ACCMOD_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4227
Kojto 93:e188a91d3eaa 4228 /****************** Bit definition for FMC_BTR4 register *******************/
Kojto 93:e188a91d3eaa 4229 #define FMC_BTR4_ADDSET ((uint32_t)0x0000000F) /*!<ADDSET[3:0] bits (Address setup phase duration) */
Kojto 93:e188a91d3eaa 4230 #define FMC_BTR4_ADDSET_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4231 #define FMC_BTR4_ADDSET_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4232 #define FMC_BTR4_ADDSET_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4233 #define FMC_BTR4_ADDSET_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4234
Kojto 93:e188a91d3eaa 4235 #define FMC_BTR4_ADDHLD ((uint32_t)0x000000F0) /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
Kojto 93:e188a91d3eaa 4236 #define FMC_BTR4_ADDHLD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4237 #define FMC_BTR4_ADDHLD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4238 #define FMC_BTR4_ADDHLD_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4239 #define FMC_BTR4_ADDHLD_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4240
Kojto 93:e188a91d3eaa 4241 #define FMC_BTR4_DATAST ((uint32_t)0x0000FF00) /*!<DATAST [3:0] bits (Data-phase duration) */
Kojto 93:e188a91d3eaa 4242 #define FMC_BTR4_DATAST_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4243 #define FMC_BTR4_DATAST_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4244 #define FMC_BTR4_DATAST_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4245 #define FMC_BTR4_DATAST_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4246 #define FMC_BTR4_DATAST_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4247 #define FMC_BTR4_DATAST_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4248 #define FMC_BTR4_DATAST_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4249 #define FMC_BTR4_DATAST_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4250
Kojto 93:e188a91d3eaa 4251 #define FMC_BTR4_BUSTURN ((uint32_t)0x000F0000) /*!<BUSTURN[3:0] bits (Bus turnaround phase duration) */
Kojto 93:e188a91d3eaa 4252 #define FMC_BTR4_BUSTURN_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4253 #define FMC_BTR4_BUSTURN_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4254 #define FMC_BTR4_BUSTURN_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4255 #define FMC_BTR4_BUSTURN_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4256
Kojto 93:e188a91d3eaa 4257 #define FMC_BTR4_CLKDIV ((uint32_t)0x00F00000) /*!<CLKDIV[3:0] bits (Clock divide ratio) */
Kojto 93:e188a91d3eaa 4258 #define FMC_BTR4_CLKDIV_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4259 #define FMC_BTR4_CLKDIV_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4260 #define FMC_BTR4_CLKDIV_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4261 #define FMC_BTR4_CLKDIV_3 ((uint32_t)0x00800000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4262
Kojto 93:e188a91d3eaa 4263 #define FMC_BTR4_DATLAT ((uint32_t)0x0F000000) /*!<DATLA[3:0] bits (Data latency) */
Kojto 93:e188a91d3eaa 4264 #define FMC_BTR4_DATLAT_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4265 #define FMC_BTR4_DATLAT_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4266 #define FMC_BTR4_DATLAT_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4267 #define FMC_BTR4_DATLAT_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4268
Kojto 93:e188a91d3eaa 4269 #define FMC_BTR4_ACCMOD ((uint32_t)0x30000000) /*!<ACCMOD[1:0] bits (Access mode) */
Kojto 93:e188a91d3eaa 4270 #define FMC_BTR4_ACCMOD_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4271 #define FMC_BTR4_ACCMOD_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4272
Kojto 93:e188a91d3eaa 4273 /****************** Bit definition for FMC_BWTR1 register ******************/
Kojto 93:e188a91d3eaa 4274 #define FMC_BWTR1_ADDSET ((uint32_t)0x0000000F) /*!<ADDSET[3:0] bits (Address setup phase duration) */
Kojto 93:e188a91d3eaa 4275 #define FMC_BWTR1_ADDSET_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4276 #define FMC_BWTR1_ADDSET_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4277 #define FMC_BWTR1_ADDSET_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4278 #define FMC_BWTR1_ADDSET_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4279
Kojto 93:e188a91d3eaa 4280 #define FMC_BWTR1_ADDHLD ((uint32_t)0x000000F0) /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
Kojto 93:e188a91d3eaa 4281 #define FMC_BWTR1_ADDHLD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4282 #define FMC_BWTR1_ADDHLD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4283 #define FMC_BWTR1_ADDHLD_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4284 #define FMC_BWTR1_ADDHLD_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4285
Kojto 93:e188a91d3eaa 4286 #define FMC_BWTR1_DATAST ((uint32_t)0x0000FF00) /*!<DATAST [3:0] bits (Data-phase duration) */
Kojto 93:e188a91d3eaa 4287 #define FMC_BWTR1_DATAST_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4288 #define FMC_BWTR1_DATAST_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4289 #define FMC_BWTR1_DATAST_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4290 #define FMC_BWTR1_DATAST_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4291 #define FMC_BWTR1_DATAST_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4292 #define FMC_BWTR1_DATAST_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4293 #define FMC_BWTR1_DATAST_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4294 #define FMC_BWTR1_DATAST_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4295
Kojto 93:e188a91d3eaa 4296 #define FMC_BWTR1_CLKDIV ((uint32_t)0x00F00000) /*!<CLKDIV[3:0] bits (Clock divide ratio) */
Kojto 93:e188a91d3eaa 4297 #define FMC_BWTR1_CLKDIV_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4298 #define FMC_BWTR1_CLKDIV_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4299 #define FMC_BWTR1_CLKDIV_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4300 #define FMC_BWTR1_CLKDIV_3 ((uint32_t)0x00800000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4301
Kojto 93:e188a91d3eaa 4302 #define FMC_BWTR1_DATLAT ((uint32_t)0x0F000000) /*!<DATLA[3:0] bits (Data latency) */
Kojto 93:e188a91d3eaa 4303 #define FMC_BWTR1_DATLAT_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4304 #define FMC_BWTR1_DATLAT_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4305 #define FMC_BWTR1_DATLAT_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4306 #define FMC_BWTR1_DATLAT_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4307
Kojto 93:e188a91d3eaa 4308 #define FMC_BWTR1_ACCMOD ((uint32_t)0x30000000) /*!<ACCMOD[1:0] bits (Access mode) */
Kojto 93:e188a91d3eaa 4309 #define FMC_BWTR1_ACCMOD_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4310 #define FMC_BWTR1_ACCMOD_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4311
Kojto 93:e188a91d3eaa 4312 /****************** Bit definition for FMC_BWTR2 register ******************/
Kojto 93:e188a91d3eaa 4313 #define FMC_BWTR2_ADDSET ((uint32_t)0x0000000F) /*!<ADDSET[3:0] bits (Address setup phase duration) */
Kojto 93:e188a91d3eaa 4314 #define FMC_BWTR2_ADDSET_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4315 #define FMC_BWTR2_ADDSET_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4316 #define FMC_BWTR2_ADDSET_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4317 #define FMC_BWTR2_ADDSET_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4318
Kojto 93:e188a91d3eaa 4319 #define FMC_BWTR2_ADDHLD ((uint32_t)0x000000F0) /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
Kojto 93:e188a91d3eaa 4320 #define FMC_BWTR2_ADDHLD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4321 #define FMC_BWTR2_ADDHLD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4322 #define FMC_BWTR2_ADDHLD_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4323 #define FMC_BWTR2_ADDHLD_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4324
Kojto 93:e188a91d3eaa 4325 #define FMC_BWTR2_DATAST ((uint32_t)0x0000FF00) /*!<DATAST [3:0] bits (Data-phase duration) */
Kojto 93:e188a91d3eaa 4326 #define FMC_BWTR2_DATAST_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4327 #define FMC_BWTR2_DATAST_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4328 #define FMC_BWTR2_DATAST_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4329 #define FMC_BWTR2_DATAST_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4330 #define FMC_BWTR2_DATAST_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4331 #define FMC_BWTR2_DATAST_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4332 #define FMC_BWTR2_DATAST_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4333 #define FMC_BWTR2_DATAST_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4334
Kojto 93:e188a91d3eaa 4335 #define FMC_BWTR2_CLKDIV ((uint32_t)0x00F00000) /*!<CLKDIV[3:0] bits (Clock divide ratio) */
Kojto 93:e188a91d3eaa 4336 #define FMC_BWTR2_CLKDIV_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4337 #define FMC_BWTR2_CLKDIV_1 ((uint32_t)0x00200000) /*!<Bit 1*/
Kojto 93:e188a91d3eaa 4338 #define FMC_BWTR2_CLKDIV_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4339 #define FMC_BWTR2_CLKDIV_3 ((uint32_t)0x00800000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4340
Kojto 93:e188a91d3eaa 4341 #define FMC_BWTR2_DATLAT ((uint32_t)0x0F000000) /*!<DATLA[3:0] bits (Data latency) */
Kojto 93:e188a91d3eaa 4342 #define FMC_BWTR2_DATLAT_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4343 #define FMC_BWTR2_DATLAT_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4344 #define FMC_BWTR2_DATLAT_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4345 #define FMC_BWTR2_DATLAT_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4346
Kojto 93:e188a91d3eaa 4347 #define FMC_BWTR2_ACCMOD ((uint32_t)0x30000000) /*!<ACCMOD[1:0] bits (Access mode) */
Kojto 93:e188a91d3eaa 4348 #define FMC_BWTR2_ACCMOD_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4349 #define FMC_BWTR2_ACCMOD_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4350
Kojto 93:e188a91d3eaa 4351 /****************** Bit definition for FMC_BWTR3 register ******************/
Kojto 93:e188a91d3eaa 4352 #define FMC_BWTR3_ADDSET ((uint32_t)0x0000000F) /*!<ADDSET[3:0] bits (Address setup phase duration) */
Kojto 93:e188a91d3eaa 4353 #define FMC_BWTR3_ADDSET_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4354 #define FMC_BWTR3_ADDSET_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4355 #define FMC_BWTR3_ADDSET_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4356 #define FMC_BWTR3_ADDSET_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4357
Kojto 93:e188a91d3eaa 4358 #define FMC_BWTR3_ADDHLD ((uint32_t)0x000000F0) /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
Kojto 93:e188a91d3eaa 4359 #define FMC_BWTR3_ADDHLD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4360 #define FMC_BWTR3_ADDHLD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4361 #define FMC_BWTR3_ADDHLD_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4362 #define FMC_BWTR3_ADDHLD_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4363
Kojto 93:e188a91d3eaa 4364 #define FMC_BWTR3_DATAST ((uint32_t)0x0000FF00) /*!<DATAST [3:0] bits (Data-phase duration) */
Kojto 93:e188a91d3eaa 4365 #define FMC_BWTR3_DATAST_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4366 #define FMC_BWTR3_DATAST_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4367 #define FMC_BWTR3_DATAST_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4368 #define FMC_BWTR3_DATAST_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4369 #define FMC_BWTR3_DATAST_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4370 #define FMC_BWTR3_DATAST_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4371 #define FMC_BWTR3_DATAST_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4372 #define FMC_BWTR3_DATAST_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4373
Kojto 93:e188a91d3eaa 4374 #define FMC_BWTR3_CLKDIV ((uint32_t)0x00F00000) /*!<CLKDIV[3:0] bits (Clock divide ratio) */
Kojto 93:e188a91d3eaa 4375 #define FMC_BWTR3_CLKDIV_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4376 #define FMC_BWTR3_CLKDIV_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4377 #define FMC_BWTR3_CLKDIV_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4378 #define FMC_BWTR3_CLKDIV_3 ((uint32_t)0x00800000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4379
Kojto 93:e188a91d3eaa 4380 #define FMC_BWTR3_DATLAT ((uint32_t)0x0F000000) /*!<DATLA[3:0] bits (Data latency) */
Kojto 93:e188a91d3eaa 4381 #define FMC_BWTR3_DATLAT_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4382 #define FMC_BWTR3_DATLAT_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4383 #define FMC_BWTR3_DATLAT_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4384 #define FMC_BWTR3_DATLAT_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4385
Kojto 93:e188a91d3eaa 4386 #define FMC_BWTR3_ACCMOD ((uint32_t)0x30000000) /*!<ACCMOD[1:0] bits (Access mode) */
Kojto 93:e188a91d3eaa 4387 #define FMC_BWTR3_ACCMOD_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4388 #define FMC_BWTR3_ACCMOD_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4389
Kojto 93:e188a91d3eaa 4390 /****************** Bit definition for FMC_BWTR4 register ******************/
Kojto 93:e188a91d3eaa 4391 #define FMC_BWTR4_ADDSET ((uint32_t)0x0000000F) /*!<ADDSET[3:0] bits (Address setup phase duration) */
Kojto 93:e188a91d3eaa 4392 #define FMC_BWTR4_ADDSET_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4393 #define FMC_BWTR4_ADDSET_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4394 #define FMC_BWTR4_ADDSET_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4395 #define FMC_BWTR4_ADDSET_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4396
Kojto 93:e188a91d3eaa 4397 #define FMC_BWTR4_ADDHLD ((uint32_t)0x000000F0) /*!<ADDHLD[3:0] bits (Address-hold phase duration) */
Kojto 93:e188a91d3eaa 4398 #define FMC_BWTR4_ADDHLD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4399 #define FMC_BWTR4_ADDHLD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4400 #define FMC_BWTR4_ADDHLD_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4401 #define FMC_BWTR4_ADDHLD_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4402
Kojto 93:e188a91d3eaa 4403 #define FMC_BWTR4_DATAST ((uint32_t)0x0000FF00) /*!<DATAST [3:0] bits (Data-phase duration) */
Kojto 93:e188a91d3eaa 4404 #define FMC_BWTR4_DATAST_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4405 #define FMC_BWTR4_DATAST_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4406 #define FMC_BWTR4_DATAST_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4407 #define FMC_BWTR4_DATAST_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4408 #define FMC_BWTR4_DATAST_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4409 #define FMC_BWTR4_DATAST_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4410 #define FMC_BWTR4_DATAST_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4411 #define FMC_BWTR4_DATAST_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4412
Kojto 93:e188a91d3eaa 4413 #define FMC_BWTR4_CLKDIV ((uint32_t)0x00F00000) /*!<CLKDIV[3:0] bits (Clock divide ratio) */
Kojto 93:e188a91d3eaa 4414 #define FMC_BWTR4_CLKDIV_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4415 #define FMC_BWTR4_CLKDIV_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4416 #define FMC_BWTR4_CLKDIV_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4417 #define FMC_BWTR4_CLKDIV_3 ((uint32_t)0x00800000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4418
Kojto 93:e188a91d3eaa 4419 #define FMC_BWTR4_DATLAT ((uint32_t)0x0F000000) /*!<DATLA[3:0] bits (Data latency) */
Kojto 93:e188a91d3eaa 4420 #define FMC_BWTR4_DATLAT_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4421 #define FMC_BWTR4_DATLAT_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4422 #define FMC_BWTR4_DATLAT_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4423 #define FMC_BWTR4_DATLAT_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4424
Kojto 93:e188a91d3eaa 4425 #define FMC_BWTR4_ACCMOD ((uint32_t)0x30000000) /*!<ACCMOD[1:0] bits (Access mode) */
Kojto 93:e188a91d3eaa 4426 #define FMC_BWTR4_ACCMOD_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4427 #define FMC_BWTR4_ACCMOD_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4428
Kojto 93:e188a91d3eaa 4429 /****************** Bit definition for FMC_PCR2 register *******************/
Kojto 93:e188a91d3eaa 4430 #define FMC_PCR2_PWAITEN ((uint32_t)0x00000002) /*!<Wait feature enable bit */
Kojto 93:e188a91d3eaa 4431 #define FMC_PCR2_PBKEN ((uint32_t)0x00000004) /*!<PC Card/NAND Flash memory bank enable bit */
Kojto 93:e188a91d3eaa 4432 #define FMC_PCR2_PTYP ((uint32_t)0x00000008) /*!<Memory type */
Kojto 93:e188a91d3eaa 4433
Kojto 93:e188a91d3eaa 4434 #define FMC_PCR2_PWID ((uint32_t)0x00000030) /*!<PWID[1:0] bits (NAND Flash databus width) */
Kojto 93:e188a91d3eaa 4435 #define FMC_PCR2_PWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4436 #define FMC_PCR2_PWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4437
Kojto 93:e188a91d3eaa 4438 #define FMC_PCR2_ECCEN ((uint32_t)0x00000040) /*!<ECC computation logic enable bit */
Kojto 93:e188a91d3eaa 4439
Kojto 93:e188a91d3eaa 4440 #define FMC_PCR2_TCLR ((uint32_t)0x00001E00) /*!<TCLR[3:0] bits (CLE to RE delay) */
Kojto 93:e188a91d3eaa 4441 #define FMC_PCR2_TCLR_0 ((uint32_t)0x00000200) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4442 #define FMC_PCR2_TCLR_1 ((uint32_t)0x00000400) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4443 #define FMC_PCR2_TCLR_2 ((uint32_t)0x00000800) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4444 #define FMC_PCR2_TCLR_3 ((uint32_t)0x00001000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4445
Kojto 93:e188a91d3eaa 4446 #define FMC_PCR2_TAR ((uint32_t)0x0001E000) /*!<TAR[3:0] bits (ALE to RE delay) */
Kojto 93:e188a91d3eaa 4447 #define FMC_PCR2_TAR_0 ((uint32_t)0x00002000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4448 #define FMC_PCR2_TAR_1 ((uint32_t)0x00004000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4449 #define FMC_PCR2_TAR_2 ((uint32_t)0x00008000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4450 #define FMC_PCR2_TAR_3 ((uint32_t)0x00010000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4451
Kojto 93:e188a91d3eaa 4452 #define FMC_PCR2_ECCPS ((uint32_t)0x000E0000) /*!<ECCPS[1:0] bits (ECC page size) */
Kojto 93:e188a91d3eaa 4453 #define FMC_PCR2_ECCPS_0 ((uint32_t)0x00020000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4454 #define FMC_PCR2_ECCPS_1 ((uint32_t)0x00040000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4455 #define FMC_PCR2_ECCPS_2 ((uint32_t)0x00080000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4456
Kojto 93:e188a91d3eaa 4457 /****************** Bit definition for FMC_PCR3 register *******************/
Kojto 93:e188a91d3eaa 4458 #define FMC_PCR3_PWAITEN ((uint32_t)0x00000002) /*!<Wait feature enable bit */
Kojto 93:e188a91d3eaa 4459 #define FMC_PCR3_PBKEN ((uint32_t)0x00000004) /*!<PC Card/NAND Flash memory bank enable bit */
Kojto 93:e188a91d3eaa 4460 #define FMC_PCR3_PTYP ((uint32_t)0x00000008) /*!<Memory type */
Kojto 93:e188a91d3eaa 4461
Kojto 93:e188a91d3eaa 4462 #define FMC_PCR3_PWID ((uint32_t)0x00000030) /*!<PWID[1:0] bits (NAND Flash databus width) */
Kojto 93:e188a91d3eaa 4463 #define FMC_PCR3_PWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4464 #define FMC_PCR3_PWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4465
Kojto 93:e188a91d3eaa 4466 #define FMC_PCR3_ECCEN ((uint32_t)0x00000040) /*!<ECC computation logic enable bit */
Kojto 93:e188a91d3eaa 4467
Kojto 93:e188a91d3eaa 4468 #define FMC_PCR3_TCLR ((uint32_t)0x00001E00) /*!<TCLR[3:0] bits (CLE to RE delay) */
Kojto 93:e188a91d3eaa 4469 #define FMC_PCR3_TCLR_0 ((uint32_t)0x00000200) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4470 #define FMC_PCR3_TCLR_1 ((uint32_t)0x00000400) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4471 #define FMC_PCR3_TCLR_2 ((uint32_t)0x00000800) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4472 #define FMC_PCR3_TCLR_3 ((uint32_t)0x00001000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4473
Kojto 93:e188a91d3eaa 4474 #define FMC_PCR3_TAR ((uint32_t)0x0001E000) /*!<TAR[3:0] bits (ALE to RE delay) */
Kojto 93:e188a91d3eaa 4475 #define FMC_PCR3_TAR_0 ((uint32_t)0x00002000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4476 #define FMC_PCR3_TAR_1 ((uint32_t)0x00004000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4477 #define FMC_PCR3_TAR_2 ((uint32_t)0x00008000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4478 #define FMC_PCR3_TAR_3 ((uint32_t)0x00010000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4479
Kojto 93:e188a91d3eaa 4480 #define FMC_PCR3_ECCPS ((uint32_t)0x000E0000) /*!<ECCPS[2:0] bits (ECC page size) */
Kojto 93:e188a91d3eaa 4481 #define FMC_PCR3_ECCPS_0 ((uint32_t)0x00020000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4482 #define FMC_PCR3_ECCPS_1 ((uint32_t)0x00040000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4483 #define FMC_PCR3_ECCPS_2 ((uint32_t)0x00080000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4484
Kojto 93:e188a91d3eaa 4485 /****************** Bit definition for FMC_PCR4 register *******************/
Kojto 93:e188a91d3eaa 4486 #define FMC_PCR4_PWAITEN ((uint32_t)0x00000002) /*!<Wait feature enable bit */
Kojto 93:e188a91d3eaa 4487 #define FMC_PCR4_PBKEN ((uint32_t)0x00000004) /*!<PC Card/NAND Flash memory bank enable bit */
Kojto 93:e188a91d3eaa 4488 #define FMC_PCR4_PTYP ((uint32_t)0x00000008) /*!<Memory type */
Kojto 93:e188a91d3eaa 4489
Kojto 93:e188a91d3eaa 4490 #define FMC_PCR4_PWID ((uint32_t)0x00000030) /*!<PWID[1:0] bits (NAND Flash databus width) */
Kojto 93:e188a91d3eaa 4491 #define FMC_PCR4_PWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4492 #define FMC_PCR4_PWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4493
Kojto 93:e188a91d3eaa 4494 #define FMC_PCR4_ECCEN ((uint32_t)0x00000040) /*!<ECC computation logic enable bit */
Kojto 93:e188a91d3eaa 4495
Kojto 93:e188a91d3eaa 4496 #define FMC_PCR4_TCLR ((uint32_t)0x00001E00) /*!<TCLR[3:0] bits (CLE to RE delay) */
Kojto 93:e188a91d3eaa 4497 #define FMC_PCR4_TCLR_0 ((uint32_t)0x00000200) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4498 #define FMC_PCR4_TCLR_1 ((uint32_t)0x00000400) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4499 #define FMC_PCR4_TCLR_2 ((uint32_t)0x00000800) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4500 #define FMC_PCR4_TCLR_3 ((uint32_t)0x00001000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4501
Kojto 93:e188a91d3eaa 4502 #define FMC_PCR4_TAR ((uint32_t)0x0001E000) /*!<TAR[3:0] bits (ALE to RE delay) */
Kojto 93:e188a91d3eaa 4503 #define FMC_PCR4_TAR_0 ((uint32_t)0x00002000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4504 #define FMC_PCR4_TAR_1 ((uint32_t)0x00004000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4505 #define FMC_PCR4_TAR_2 ((uint32_t)0x00008000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4506 #define FMC_PCR4_TAR_3 ((uint32_t)0x00010000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4507
Kojto 93:e188a91d3eaa 4508 #define FMC_PCR4_ECCPS ((uint32_t)0x000E0000) /*!<ECCPS[2:0] bits (ECC page size) */
Kojto 93:e188a91d3eaa 4509 #define FMC_PCR4_ECCPS_0 ((uint32_t)0x00020000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4510 #define FMC_PCR4_ECCPS_1 ((uint32_t)0x00040000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4511 #define FMC_PCR4_ECCPS_2 ((uint32_t)0x00080000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4512
Kojto 93:e188a91d3eaa 4513 /******************* Bit definition for FMC_SR2 register *******************/
Kojto 93:e188a91d3eaa 4514 #define FMC_SR2_IRS ((uint32_t)0x01) /*!<Interrupt Rising Edge status */
Kojto 93:e188a91d3eaa 4515 #define FMC_SR2_ILS ((uint32_t)0x02) /*!<Interrupt Level status */
Kojto 93:e188a91d3eaa 4516 #define FMC_SR2_IFS ((uint32_t)0x04) /*!<Interrupt Falling Edge status */
Kojto 93:e188a91d3eaa 4517 #define FMC_SR2_IREN ((uint32_t)0x08) /*!<Interrupt Rising Edge detection Enable bit */
Kojto 93:e188a91d3eaa 4518 #define FMC_SR2_ILEN ((uint32_t)0x10) /*!<Interrupt Level detection Enable bit */
Kojto 93:e188a91d3eaa 4519 #define FMC_SR2_IFEN ((uint32_t)0x20) /*!<Interrupt Falling Edge detection Enable bit */
Kojto 93:e188a91d3eaa 4520 #define FMC_SR2_FEMPT ((uint32_t)0x40) /*!<FIFO empty */
Kojto 93:e188a91d3eaa 4521
Kojto 93:e188a91d3eaa 4522 /******************* Bit definition for FMC_SR3 register *******************/
Kojto 93:e188a91d3eaa 4523 #define FMC_SR3_IRS ((uint32_t)0x01) /*!<Interrupt Rising Edge status */
Kojto 93:e188a91d3eaa 4524 #define FMC_SR3_ILS ((uint32_t)0x02) /*!<Interrupt Level status */
Kojto 93:e188a91d3eaa 4525 #define FMC_SR3_IFS ((uint32_t)0x04) /*!<Interrupt Falling Edge status */
Kojto 93:e188a91d3eaa 4526 #define FMC_SR3_IREN ((uint32_t)0x08) /*!<Interrupt Rising Edge detection Enable bit */
Kojto 93:e188a91d3eaa 4527 #define FMC_SR3_ILEN ((uint32_t)0x10) /*!<Interrupt Level detection Enable bit */
Kojto 93:e188a91d3eaa 4528 #define FMC_SR3_IFEN ((uint32_t)0x20) /*!<Interrupt Falling Edge detection Enable bit */
Kojto 93:e188a91d3eaa 4529 #define FMC_SR3_FEMPT ((uint32_t)0x40) /*!<FIFO empty */
Kojto 93:e188a91d3eaa 4530
Kojto 93:e188a91d3eaa 4531 /******************* Bit definition for FMC_SR4 register *******************/
Kojto 93:e188a91d3eaa 4532 #define FMC_SR4_IRS ((uint32_t)0x01) /*!<Interrupt Rising Edge status */
Kojto 93:e188a91d3eaa 4533 #define FMC_SR4_ILS ((uint32_t)0x02) /*!<Interrupt Level status */
Kojto 93:e188a91d3eaa 4534 #define FMC_SR4_IFS ((uint32_t)0x04) /*!<Interrupt Falling Edge status */
Kojto 93:e188a91d3eaa 4535 #define FMC_SR4_IREN ((uint32_t)0x08) /*!<Interrupt Rising Edge detection Enable bit */
Kojto 93:e188a91d3eaa 4536 #define FMC_SR4_ILEN ((uint32_t)0x10) /*!<Interrupt Level detection Enable bit */
Kojto 93:e188a91d3eaa 4537 #define FMC_SR4_IFEN ((uint32_t)0x20) /*!<Interrupt Falling Edge detection Enable bit */
Kojto 93:e188a91d3eaa 4538 #define FMC_SR4_FEMPT ((uint32_t)0x40) /*!<FIFO empty */
Kojto 93:e188a91d3eaa 4539
Kojto 93:e188a91d3eaa 4540 /****************** Bit definition for FMC_PMEM2 register ******************/
Kojto 93:e188a91d3eaa 4541 #define FMC_PMEM2_MEMSET2 ((uint32_t)0x000000FF) /*!<MEMSET2[7:0] bits (Common memory 2 setup time) */
Kojto 93:e188a91d3eaa 4542 #define FMC_PMEM2_MEMSET2_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4543 #define FMC_PMEM2_MEMSET2_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4544 #define FMC_PMEM2_MEMSET2_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4545 #define FMC_PMEM2_MEMSET2_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4546 #define FMC_PMEM2_MEMSET2_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4547 #define FMC_PMEM2_MEMSET2_5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4548 #define FMC_PMEM2_MEMSET2_6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4549 #define FMC_PMEM2_MEMSET2_7 ((uint32_t)0x00000080) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4550
Kojto 93:e188a91d3eaa 4551 #define FMC_PMEM2_MEMWAIT2 ((uint32_t)0x0000FF00) /*!<MEMWAIT2[7:0] bits (Common memory 2 wait time) */
Kojto 93:e188a91d3eaa 4552 #define FMC_PMEM2_MEMWAIT2_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4553 #define FMC_PMEM2_MEMWAIT2_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4554 #define FMC_PMEM2_MEMWAIT2_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4555 #define FMC_PMEM2_MEMWAIT2_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4556 #define FMC_PMEM2_MEMWAIT2_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4557 #define FMC_PMEM2_MEMWAIT2_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4558 #define FMC_PMEM2_MEMWAIT2_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4559 #define FMC_PMEM2_MEMWAIT2_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4560
Kojto 93:e188a91d3eaa 4561 #define FMC_PMEM2_MEMHOLD2 ((uint32_t)0x00FF0000) /*!<MEMHOLD2[7:0] bits (Common memory 2 hold time) */
Kojto 93:e188a91d3eaa 4562 #define FMC_PMEM2_MEMHOLD2_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4563 #define FMC_PMEM2_MEMHOLD2_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4564 #define FMC_PMEM2_MEMHOLD2_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4565 #define FMC_PMEM2_MEMHOLD2_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4566 #define FMC_PMEM2_MEMHOLD2_4 ((uint32_t)0x00100000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4567 #define FMC_PMEM2_MEMHOLD2_5 ((uint32_t)0x00200000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4568 #define FMC_PMEM2_MEMHOLD2_6 ((uint32_t)0x00400000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4569 #define FMC_PMEM2_MEMHOLD2_7 ((uint32_t)0x00800000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4570
Kojto 93:e188a91d3eaa 4571 #define FMC_PMEM2_MEMHIZ2 ((uint32_t)0xFF000000) /*!<MEMHIZ2[7:0] bits (Common memory 2 databus HiZ time) */
Kojto 93:e188a91d3eaa 4572 #define FMC_PMEM2_MEMHIZ2_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4573 #define FMC_PMEM2_MEMHIZ2_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4574 #define FMC_PMEM2_MEMHIZ2_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4575 #define FMC_PMEM2_MEMHIZ2_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4576 #define FMC_PMEM2_MEMHIZ2_4 ((uint32_t)0x10000000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4577 #define FMC_PMEM2_MEMHIZ2_5 ((uint32_t)0x20000000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4578 #define FMC_PMEM2_MEMHIZ2_6 ((uint32_t)0x40000000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4579 #define FMC_PMEM2_MEMHIZ2_7 ((uint32_t)0x80000000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4580
Kojto 93:e188a91d3eaa 4581 /****************** Bit definition for FMC_PMEM3 register ******************/
Kojto 93:e188a91d3eaa 4582 #define FMC_PMEM3_MEMSET3 ((uint32_t)0x000000FF) /*!<MEMSET3[7:0] bits (Common memory 3 setup time) */
Kojto 93:e188a91d3eaa 4583 #define FMC_PMEM3_MEMSET3_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4584 #define FMC_PMEM3_MEMSET3_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4585 #define FMC_PMEM3_MEMSET3_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4586 #define FMC_PMEM3_MEMSET3_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4587 #define FMC_PMEM3_MEMSET3_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4588 #define FMC_PMEM3_MEMSET3_5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4589 #define FMC_PMEM3_MEMSET3_6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4590 #define FMC_PMEM3_MEMSET3_7 ((uint32_t)0x00000080) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4591
Kojto 93:e188a91d3eaa 4592 #define FMC_PMEM3_MEMWAIT3 ((uint32_t)0x0000FF00) /*!<MEMWAIT3[7:0] bits (Common memory 3 wait time) */
Kojto 93:e188a91d3eaa 4593 #define FMC_PMEM3_MEMWAIT3_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4594 #define FMC_PMEM3_MEMWAIT3_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4595 #define FMC_PMEM3_MEMWAIT3_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4596 #define FMC_PMEM3_MEMWAIT3_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4597 #define FMC_PMEM3_MEMWAIT3_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4598 #define FMC_PMEM3_MEMWAIT3_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4599 #define FMC_PMEM3_MEMWAIT3_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4600 #define FMC_PMEM3_MEMWAIT3_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4601
Kojto 93:e188a91d3eaa 4602 #define FMC_PMEM3_MEMHOLD3 ((uint32_t)0x00FF0000) /*!<MEMHOLD3[7:0] bits (Common memory 3 hold time) */
Kojto 93:e188a91d3eaa 4603 #define FMC_PMEM3_MEMHOLD3_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4604 #define FMC_PMEM3_MEMHOLD3_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4605 #define FMC_PMEM3_MEMHOLD3_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4606 #define FMC_PMEM3_MEMHOLD3_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4607 #define FMC_PMEM3_MEMHOLD3_4 ((uint32_t)0x00100000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4608 #define FMC_PMEM3_MEMHOLD3_5 ((uint32_t)0x00200000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4609 #define FMC_PMEM3_MEMHOLD3_6 ((uint32_t)0x00400000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4610 #define FMC_PMEM3_MEMHOLD3_7 ((uint32_t)0x00800000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4611
Kojto 93:e188a91d3eaa 4612 #define FMC_PMEM3_MEMHIZ3 ((uint32_t)0xFF000000) /*!<MEMHIZ3[7:0] bits (Common memory 3 databus HiZ time) */
Kojto 93:e188a91d3eaa 4613 #define FMC_PMEM3_MEMHIZ3_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4614 #define FMC_PMEM3_MEMHIZ3_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4615 #define FMC_PMEM3_MEMHIZ3_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4616 #define FMC_PMEM3_MEMHIZ3_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4617 #define FMC_PMEM3_MEMHIZ3_4 ((uint32_t)0x10000000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4618 #define FMC_PMEM3_MEMHIZ3_5 ((uint32_t)0x20000000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4619 #define FMC_PMEM3_MEMHIZ3_6 ((uint32_t)0x40000000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4620 #define FMC_PMEM3_MEMHIZ3_7 ((uint32_t)0x80000000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4621
Kojto 93:e188a91d3eaa 4622 /****************** Bit definition for FMC_PMEM4 register ******************/
Kojto 93:e188a91d3eaa 4623 #define FMC_PMEM4_MEMSET4 ((uint32_t)0x000000FF) /*!<MEMSET4[7:0] bits (Common memory 4 setup time) */
Kojto 93:e188a91d3eaa 4624 #define FMC_PMEM4_MEMSET4_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4625 #define FMC_PMEM4_MEMSET4_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4626 #define FMC_PMEM4_MEMSET4_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4627 #define FMC_PMEM4_MEMSET4_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4628 #define FMC_PMEM4_MEMSET4_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4629 #define FMC_PMEM4_MEMSET4_5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4630 #define FMC_PMEM4_MEMSET4_6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4631 #define FMC_PMEM4_MEMSET4_7 ((uint32_t)0x00000080) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4632
Kojto 93:e188a91d3eaa 4633 #define FMC_PMEM4_MEMWAIT4 ((uint32_t)0x0000FF00) /*!<MEMWAIT4[7:0] bits (Common memory 4 wait time) */
Kojto 93:e188a91d3eaa 4634 #define FMC_PMEM4_MEMWAIT4_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4635 #define FMC_PMEM4_MEMWAIT4_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4636 #define FMC_PMEM4_MEMWAIT4_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4637 #define FMC_PMEM4_MEMWAIT4_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4638 #define FMC_PMEM4_MEMWAIT4_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4639 #define FMC_PMEM4_MEMWAIT4_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4640 #define FMC_PMEM4_MEMWAIT4_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4641 #define FMC_PMEM4_MEMWAIT4_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4642
Kojto 93:e188a91d3eaa 4643 #define FMC_PMEM4_MEMHOLD4 ((uint32_t)0x00FF0000) /*!<MEMHOLD4[7:0] bits (Common memory 4 hold time) */
Kojto 93:e188a91d3eaa 4644 #define FMC_PMEM4_MEMHOLD4_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4645 #define FMC_PMEM4_MEMHOLD4_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4646 #define FMC_PMEM4_MEMHOLD4_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4647 #define FMC_PMEM4_MEMHOLD4_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4648 #define FMC_PMEM4_MEMHOLD4_4 ((uint32_t)0x00100000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4649 #define FMC_PMEM4_MEMHOLD4_5 ((uint32_t)0x00200000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4650 #define FMC_PMEM4_MEMHOLD4_6 ((uint32_t)0x00400000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4651 #define FMC_PMEM4_MEMHOLD4_7 ((uint32_t)0x00800000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4652
Kojto 93:e188a91d3eaa 4653 #define FMC_PMEM4_MEMHIZ4 ((uint32_t)0xFF000000) /*!<MEMHIZ4[7:0] bits (Common memory 4 databus HiZ time) */
Kojto 93:e188a91d3eaa 4654 #define FMC_PMEM4_MEMHIZ4_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4655 #define FMC_PMEM4_MEMHIZ4_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4656 #define FMC_PMEM4_MEMHIZ4_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4657 #define FMC_PMEM4_MEMHIZ4_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4658 #define FMC_PMEM4_MEMHIZ4_4 ((uint32_t)0x10000000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4659 #define FMC_PMEM4_MEMHIZ4_5 ((uint32_t)0x20000000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4660 #define FMC_PMEM4_MEMHIZ4_6 ((uint32_t)0x40000000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4661 #define FMC_PMEM4_MEMHIZ4_7 ((uint32_t)0x80000000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4662
Kojto 93:e188a91d3eaa 4663 /****************** Bit definition for FMC_PATT2 register ******************/
Kojto 93:e188a91d3eaa 4664 #define FMC_PATT2_ATTSET2 ((uint32_t)0x000000FF) /*!<ATTSET2[7:0] bits (Attribute memory 2 setup time) */
Kojto 93:e188a91d3eaa 4665 #define FMC_PATT2_ATTSET2_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4666 #define FMC_PATT2_ATTSET2_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4667 #define FMC_PATT2_ATTSET2_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4668 #define FMC_PATT2_ATTSET2_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4669 #define FMC_PATT2_ATTSET2_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4670 #define FMC_PATT2_ATTSET2_5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4671 #define FMC_PATT2_ATTSET2_6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4672 #define FMC_PATT2_ATTSET2_7 ((uint32_t)0x00000080) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4673
Kojto 93:e188a91d3eaa 4674 #define FMC_PATT2_ATTWAIT2 ((uint32_t)0x0000FF00) /*!<ATTWAIT2[7:0] bits (Attribute memory 2 wait time) */
Kojto 93:e188a91d3eaa 4675 #define FMC_PATT2_ATTWAIT2_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4676 #define FMC_PATT2_ATTWAIT2_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4677 #define FMC_PATT2_ATTWAIT2_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4678 #define FMC_PATT2_ATTWAIT2_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4679 #define FMC_PATT2_ATTWAIT2_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4680 #define FMC_PATT2_ATTWAIT2_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4681 #define FMC_PATT2_ATTWAIT2_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4682 #define FMC_PATT2_ATTWAIT2_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4683
Kojto 93:e188a91d3eaa 4684 #define FMC_PATT2_ATTHOLD2 ((uint32_t)0x00FF0000) /*!<ATTHOLD2[7:0] bits (Attribute memory 2 hold time) */
Kojto 93:e188a91d3eaa 4685 #define FMC_PATT2_ATTHOLD2_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4686 #define FMC_PATT2_ATTHOLD2_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4687 #define FMC_PATT2_ATTHOLD2_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4688 #define FMC_PATT2_ATTHOLD2_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4689 #define FMC_PATT2_ATTHOLD2_4 ((uint32_t)0x00100000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4690 #define FMC_PATT2_ATTHOLD2_5 ((uint32_t)0x00200000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4691 #define FMC_PATT2_ATTHOLD2_6 ((uint32_t)0x00400000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4692 #define FMC_PATT2_ATTHOLD2_7 ((uint32_t)0x00800000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4693
Kojto 93:e188a91d3eaa 4694 #define FMC_PATT2_ATTHIZ2 ((uint32_t)0xFF000000) /*!<ATTHIZ2[7:0] bits (Attribute memory 2 databus HiZ time) */
Kojto 93:e188a91d3eaa 4695 #define FMC_PATT2_ATTHIZ2_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4696 #define FMC_PATT2_ATTHIZ2_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4697 #define FMC_PATT2_ATTHIZ2_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4698 #define FMC_PATT2_ATTHIZ2_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4699 #define FMC_PATT2_ATTHIZ2_4 ((uint32_t)0x10000000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4700 #define FMC_PATT2_ATTHIZ2_5 ((uint32_t)0x20000000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4701 #define FMC_PATT2_ATTHIZ2_6 ((uint32_t)0x40000000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4702 #define FMC_PATT2_ATTHIZ2_7 ((uint32_t)0x80000000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4703
Kojto 93:e188a91d3eaa 4704 /****************** Bit definition for FMC_PATT3 register ******************/
Kojto 93:e188a91d3eaa 4705 #define FMC_PATT3_ATTSET3 ((uint32_t)0x000000FF) /*!<ATTSET3[7:0] bits (Attribute memory 3 setup time) */
Kojto 93:e188a91d3eaa 4706 #define FMC_PATT3_ATTSET3_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4707 #define FMC_PATT3_ATTSET3_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4708 #define FMC_PATT3_ATTSET3_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4709 #define FMC_PATT3_ATTSET3_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4710 #define FMC_PATT3_ATTSET3_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4711 #define FMC_PATT3_ATTSET3_5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4712 #define FMC_PATT3_ATTSET3_6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4713 #define FMC_PATT3_ATTSET3_7 ((uint32_t)0x00000080) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4714
Kojto 93:e188a91d3eaa 4715 #define FMC_PATT3_ATTWAIT3 ((uint32_t)0x0000FF00) /*!<ATTWAIT3[7:0] bits (Attribute memory 3 wait time) */
Kojto 93:e188a91d3eaa 4716 #define FMC_PATT3_ATTWAIT3_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4717 #define FMC_PATT3_ATTWAIT3_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4718 #define FMC_PATT3_ATTWAIT3_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4719 #define FMC_PATT3_ATTWAIT3_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4720 #define FMC_PATT3_ATTWAIT3_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4721 #define FMC_PATT3_ATTWAIT3_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4722 #define FMC_PATT3_ATTWAIT3_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4723 #define FMC_PATT3_ATTWAIT3_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4724
Kojto 93:e188a91d3eaa 4725 #define FMC_PATT3_ATTHOLD3 ((uint32_t)0x00FF0000) /*!<ATTHOLD3[7:0] bits (Attribute memory 3 hold time) */
Kojto 93:e188a91d3eaa 4726 #define FMC_PATT3_ATTHOLD3_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4727 #define FMC_PATT3_ATTHOLD3_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4728 #define FMC_PATT3_ATTHOLD3_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4729 #define FMC_PATT3_ATTHOLD3_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4730 #define FMC_PATT3_ATTHOLD3_4 ((uint32_t)0x00100000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4731 #define FMC_PATT3_ATTHOLD3_5 ((uint32_t)0x00200000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4732 #define FMC_PATT3_ATTHOLD3_6 ((uint32_t)0x00400000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4733 #define FMC_PATT3_ATTHOLD3_7 ((uint32_t)0x00800000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4734
Kojto 93:e188a91d3eaa 4735 #define FMC_PATT3_ATTHIZ3 ((uint32_t)0xFF000000) /*!<ATTHIZ3[7:0] bits (Attribute memory 3 databus HiZ time) */
Kojto 93:e188a91d3eaa 4736 #define FMC_PATT3_ATTHIZ3_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4737 #define FMC_PATT3_ATTHIZ3_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4738 #define FMC_PATT3_ATTHIZ3_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4739 #define FMC_PATT3_ATTHIZ3_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4740 #define FMC_PATT3_ATTHIZ3_4 ((uint32_t)0x10000000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4741 #define FMC_PATT3_ATTHIZ3_5 ((uint32_t)0x20000000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4742 #define FMC_PATT3_ATTHIZ3_6 ((uint32_t)0x40000000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4743 #define FMC_PATT3_ATTHIZ3_7 ((uint32_t)0x80000000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4744
Kojto 93:e188a91d3eaa 4745 /****************** Bit definition for FMC_PATT4 register ******************/
Kojto 93:e188a91d3eaa 4746 #define FMC_PATT4_ATTSET4 ((uint32_t)0x000000FF) /*!<ATTSET4[7:0] bits (Attribute memory 4 setup time) */
Kojto 93:e188a91d3eaa 4747 #define FMC_PATT4_ATTSET4_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4748 #define FMC_PATT4_ATTSET4_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4749 #define FMC_PATT4_ATTSET4_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4750 #define FMC_PATT4_ATTSET4_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4751 #define FMC_PATT4_ATTSET4_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4752 #define FMC_PATT4_ATTSET4_5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4753 #define FMC_PATT4_ATTSET4_6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4754 #define FMC_PATT4_ATTSET4_7 ((uint32_t)0x00000080) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4755
Kojto 93:e188a91d3eaa 4756 #define FMC_PATT4_ATTWAIT4 ((uint32_t)0x0000FF00) /*!<ATTWAIT4[7:0] bits (Attribute memory 4 wait time) */
Kojto 93:e188a91d3eaa 4757 #define FMC_PATT4_ATTWAIT4_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4758 #define FMC_PATT4_ATTWAIT4_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4759 #define FMC_PATT4_ATTWAIT4_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4760 #define FMC_PATT4_ATTWAIT4_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4761 #define FMC_PATT4_ATTWAIT4_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4762 #define FMC_PATT4_ATTWAIT4_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4763 #define FMC_PATT4_ATTWAIT4_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4764 #define FMC_PATT4_ATTWAIT4_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4765
Kojto 93:e188a91d3eaa 4766 #define FMC_PATT4_ATTHOLD4 ((uint32_t)0x00FF0000) /*!<ATTHOLD4[7:0] bits (Attribute memory 4 hold time) */
Kojto 93:e188a91d3eaa 4767 #define FMC_PATT4_ATTHOLD4_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4768 #define FMC_PATT4_ATTHOLD4_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4769 #define FMC_PATT4_ATTHOLD4_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4770 #define FMC_PATT4_ATTHOLD4_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4771 #define FMC_PATT4_ATTHOLD4_4 ((uint32_t)0x00100000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4772 #define FMC_PATT4_ATTHOLD4_5 ((uint32_t)0x00200000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4773 #define FMC_PATT4_ATTHOLD4_6 ((uint32_t)0x00400000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4774 #define FMC_PATT4_ATTHOLD4_7 ((uint32_t)0x00800000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4775
Kojto 93:e188a91d3eaa 4776 #define FMC_PATT4_ATTHIZ4 ((uint32_t)0xFF000000) /*!<ATTHIZ4[7:0] bits (Attribute memory 4 databus HiZ time) */
Kojto 93:e188a91d3eaa 4777 #define FMC_PATT4_ATTHIZ4_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4778 #define FMC_PATT4_ATTHIZ4_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4779 #define FMC_PATT4_ATTHIZ4_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4780 #define FMC_PATT4_ATTHIZ4_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4781 #define FMC_PATT4_ATTHIZ4_4 ((uint32_t)0x10000000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4782 #define FMC_PATT4_ATTHIZ4_5 ((uint32_t)0x20000000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4783 #define FMC_PATT4_ATTHIZ4_6 ((uint32_t)0x40000000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4784 #define FMC_PATT4_ATTHIZ4_7 ((uint32_t)0x80000000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4785
Kojto 93:e188a91d3eaa 4786 /****************** Bit definition for FMC_PIO4 register *******************/
Kojto 93:e188a91d3eaa 4787 #define FMC_PIO4_IOSET4 ((uint32_t)0x000000FF) /*!<IOSET4[7:0] bits (I/O 4 setup time) */
Kojto 93:e188a91d3eaa 4788 #define FMC_PIO4_IOSET4_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4789 #define FMC_PIO4_IOSET4_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4790 #define FMC_PIO4_IOSET4_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4791 #define FMC_PIO4_IOSET4_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4792 #define FMC_PIO4_IOSET4_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4793 #define FMC_PIO4_IOSET4_5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4794 #define FMC_PIO4_IOSET4_6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4795 #define FMC_PIO4_IOSET4_7 ((uint32_t)0x00000080) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4796
Kojto 93:e188a91d3eaa 4797 #define FMC_PIO4_IOWAIT4 ((uint32_t)0x0000FF00) /*!<IOWAIT4[7:0] bits (I/O 4 wait time) */
Kojto 93:e188a91d3eaa 4798 #define FMC_PIO4_IOWAIT4_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4799 #define FMC_PIO4_IOWAIT4_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4800 #define FMC_PIO4_IOWAIT4_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4801 #define FMC_PIO4_IOWAIT4_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4802 #define FMC_PIO4_IOWAIT4_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4803 #define FMC_PIO4_IOWAIT4_5 ((uint32_t)0x00002000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4804 #define FMC_PIO4_IOWAIT4_6 ((uint32_t)0x00004000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4805 #define FMC_PIO4_IOWAIT4_7 ((uint32_t)0x00008000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4806
Kojto 93:e188a91d3eaa 4807 #define FMC_PIO4_IOHOLD4 ((uint32_t)0x00FF0000) /*!<IOHOLD4[7:0] bits (I/O 4 hold time) */
Kojto 93:e188a91d3eaa 4808 #define FMC_PIO4_IOHOLD4_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4809 #define FMC_PIO4_IOHOLD4_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4810 #define FMC_PIO4_IOHOLD4_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4811 #define FMC_PIO4_IOHOLD4_3 ((uint32_t)0x00080000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4812 #define FMC_PIO4_IOHOLD4_4 ((uint32_t)0x00100000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4813 #define FMC_PIO4_IOHOLD4_5 ((uint32_t)0x00200000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4814 #define FMC_PIO4_IOHOLD4_6 ((uint32_t)0x00400000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4815 #define FMC_PIO4_IOHOLD4_7 ((uint32_t)0x00800000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4816
Kojto 93:e188a91d3eaa 4817 #define FMC_PIO4_IOHIZ4 ((uint32_t)0xFF000000) /*!<IOHIZ4[7:0] bits (I/O 4 databus HiZ time) */
Kojto 93:e188a91d3eaa 4818 #define FMC_PIO4_IOHIZ4_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4819 #define FMC_PIO4_IOHIZ4_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4820 #define FMC_PIO4_IOHIZ4_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4821 #define FMC_PIO4_IOHIZ4_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4822 #define FMC_PIO4_IOHIZ4_4 ((uint32_t)0x10000000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 4823 #define FMC_PIO4_IOHIZ4_5 ((uint32_t)0x20000000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 4824 #define FMC_PIO4_IOHIZ4_6 ((uint32_t)0x40000000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 4825 #define FMC_PIO4_IOHIZ4_7 ((uint32_t)0x80000000) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 4826
Kojto 93:e188a91d3eaa 4827 /****************** Bit definition for FMC_ECCR2 register ******************/
Kojto 93:e188a91d3eaa 4828 #define FMC_ECCR2_ECC2 ((uint32_t)0xFFFFFFFF) /*!<ECC result */
Kojto 93:e188a91d3eaa 4829
Kojto 93:e188a91d3eaa 4830 /****************** Bit definition for FMC_ECCR3 register ******************/
Kojto 93:e188a91d3eaa 4831 #define FMC_ECCR3_ECC3 ((uint32_t)0xFFFFFFFF) /*!<ECC result */
Kojto 93:e188a91d3eaa 4832
Kojto 93:e188a91d3eaa 4833 /****************** Bit definition for FMC_SDCR1 register ******************/
Kojto 93:e188a91d3eaa 4834 #define FMC_SDCR1_NC ((uint32_t)0x00000003) /*!<NC[1:0] bits (Number of column bits) */
Kojto 93:e188a91d3eaa 4835 #define FMC_SDCR1_NC_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4836 #define FMC_SDCR1_NC_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4837
Kojto 93:e188a91d3eaa 4838 #define FMC_SDCR1_NR ((uint32_t)0x0000000C) /*!<NR[1:0] bits (Number of row bits) */
Kojto 93:e188a91d3eaa 4839 #define FMC_SDCR1_NR_0 ((uint32_t)0x00000004) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4840 #define FMC_SDCR1_NR_1 ((uint32_t)0x00000008) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4841
Kojto 93:e188a91d3eaa 4842 #define FMC_SDCR1_MWID ((uint32_t)0x00000030) /*!<NR[1:0] bits (Number of row bits) */
Kojto 93:e188a91d3eaa 4843 #define FMC_SDCR1_MWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4844 #define FMC_SDCR1_MWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4845
Kojto 93:e188a91d3eaa 4846 #define FMC_SDCR1_NB ((uint32_t)0x00000040) /*!<Number of internal bank */
Kojto 93:e188a91d3eaa 4847
Kojto 93:e188a91d3eaa 4848 #define FMC_SDCR1_CAS ((uint32_t)0x00000180) /*!<CAS[1:0] bits (CAS latency) */
Kojto 93:e188a91d3eaa 4849 #define FMC_SDCR1_CAS_0 ((uint32_t)0x00000080) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4850 #define FMC_SDCR1_CAS_1 ((uint32_t)0x00000100) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4851
Kojto 93:e188a91d3eaa 4852 #define FMC_SDCR1_WP ((uint32_t)0x00000200) /*!<Write protection */
Kojto 93:e188a91d3eaa 4853
Kojto 93:e188a91d3eaa 4854 #define FMC_SDCR1_SDCLK ((uint32_t)0x00000C00) /*!<SDRAM clock configuration */
Kojto 93:e188a91d3eaa 4855 #define FMC_SDCR1_SDCLK_0 ((uint32_t)0x00000400) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4856 #define FMC_SDCR1_SDCLK_1 ((uint32_t)0x00000800) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4857
Kojto 93:e188a91d3eaa 4858 #define FMC_SDCR1_RBURST ((uint32_t)0x00001000) /*!<Read burst */
Kojto 93:e188a91d3eaa 4859
Kojto 93:e188a91d3eaa 4860 #define FMC_SDCR1_RPIPE ((uint32_t)0x00006000) /*!<Write protection */
Kojto 93:e188a91d3eaa 4861 #define FMC_SDCR1_RPIPE_0 ((uint32_t)0x00002000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4862 #define FMC_SDCR1_RPIPE_1 ((uint32_t)0x00004000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4863
Kojto 93:e188a91d3eaa 4864 /****************** Bit definition for FMC_SDCR2 register ******************/
Kojto 93:e188a91d3eaa 4865 #define FMC_SDCR2_NC ((uint32_t)0x00000003) /*!<NC[1:0] bits (Number of column bits) */
Kojto 93:e188a91d3eaa 4866 #define FMC_SDCR2_NC_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4867 #define FMC_SDCR2_NC_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4868
Kojto 93:e188a91d3eaa 4869 #define FMC_SDCR2_NR ((uint32_t)0x0000000C) /*!<NR[1:0] bits (Number of row bits) */
Kojto 93:e188a91d3eaa 4870 #define FMC_SDCR2_NR_0 ((uint32_t)0x00000004) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4871 #define FMC_SDCR2_NR_1 ((uint32_t)0x00000008) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4872
Kojto 93:e188a91d3eaa 4873 #define FMC_SDCR2_MWID ((uint32_t)0x00000030) /*!<NR[1:0] bits (Number of row bits) */
Kojto 93:e188a91d3eaa 4874 #define FMC_SDCR2_MWID_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4875 #define FMC_SDCR2_MWID_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4876
Kojto 93:e188a91d3eaa 4877 #define FMC_SDCR2_NB ((uint32_t)0x00000040) /*!<Number of internal bank */
Kojto 93:e188a91d3eaa 4878
Kojto 93:e188a91d3eaa 4879 #define FMC_SDCR2_CAS ((uint32_t)0x00000180) /*!<CAS[1:0] bits (CAS latency) */
Kojto 93:e188a91d3eaa 4880 #define FMC_SDCR2_CAS_0 ((uint32_t)0x00000080) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4881 #define FMC_SDCR2_CAS_1 ((uint32_t)0x00000100) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4882
Kojto 93:e188a91d3eaa 4883 #define FMC_SDCR2_WP ((uint32_t)0x00000200) /*!<Write protection */
Kojto 93:e188a91d3eaa 4884
Kojto 93:e188a91d3eaa 4885 #define FMC_SDCR2_SDCLK ((uint32_t)0x00000C00) /*!<SDCLK[1:0] (SDRAM clock configuration) */
Kojto 93:e188a91d3eaa 4886 #define FMC_SDCR2_SDCLK_0 ((uint32_t)0x00000400) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4887 #define FMC_SDCR2_SDCLK_1 ((uint32_t)0x00000800) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4888
Kojto 93:e188a91d3eaa 4889 #define FMC_SDCR2_RBURST ((uint32_t)0x00001000) /*!<Read burst */
Kojto 93:e188a91d3eaa 4890
Kojto 93:e188a91d3eaa 4891 #define FMC_SDCR2_RPIPE ((uint32_t)0x00006000) /*!<RPIPE[1:0](Read pipe) */
Kojto 93:e188a91d3eaa 4892 #define FMC_SDCR2_RPIPE_0 ((uint32_t)0x00002000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4893 #define FMC_SDCR2_RPIPE_1 ((uint32_t)0x00004000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4894
Kojto 93:e188a91d3eaa 4895 /****************** Bit definition for FMC_SDTR1 register ******************/
Kojto 93:e188a91d3eaa 4896 #define FMC_SDTR1_TMRD ((uint32_t)0x0000000F) /*!<TMRD[3:0] bits (Load mode register to active) */
Kojto 93:e188a91d3eaa 4897 #define FMC_SDTR1_TMRD_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4898 #define FMC_SDTR1_TMRD_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4899 #define FMC_SDTR1_TMRD_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4900 #define FMC_SDTR1_TMRD_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4901
Kojto 93:e188a91d3eaa 4902 #define FMC_SDTR1_TXSR ((uint32_t)0x000000F0) /*!<TXSR[3:0] bits (Exit self refresh) */
Kojto 93:e188a91d3eaa 4903 #define FMC_SDTR1_TXSR_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4904 #define FMC_SDTR1_TXSR_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4905 #define FMC_SDTR1_TXSR_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4906 #define FMC_SDTR1_TXSR_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4907
Kojto 93:e188a91d3eaa 4908 #define FMC_SDTR1_TRAS ((uint32_t)0x00000F00) /*!<TRAS[3:0] bits (Self refresh time) */
Kojto 93:e188a91d3eaa 4909 #define FMC_SDTR1_TRAS_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4910 #define FMC_SDTR1_TRAS_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4911 #define FMC_SDTR1_TRAS_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4912 #define FMC_SDTR1_TRAS_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4913
Kojto 93:e188a91d3eaa 4914 #define FMC_SDTR1_TRC ((uint32_t)0x0000F000) /*!<TRC[2:0] bits (Row cycle delay) */
Kojto 93:e188a91d3eaa 4915 #define FMC_SDTR1_TRC_0 ((uint32_t)0x00001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4916 #define FMC_SDTR1_TRC_1 ((uint32_t)0x00002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4917 #define FMC_SDTR1_TRC_2 ((uint32_t)0x00004000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4918
Kojto 93:e188a91d3eaa 4919 #define FMC_SDTR1_TWR ((uint32_t)0x000F0000) /*!<TRC[2:0] bits (Write recovery delay) */
Kojto 93:e188a91d3eaa 4920 #define FMC_SDTR1_TWR_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4921 #define FMC_SDTR1_TWR_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4922 #define FMC_SDTR1_TWR_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4923
Kojto 93:e188a91d3eaa 4924 #define FMC_SDTR1_TRP ((uint32_t)0x00F00000) /*!<TRP[2:0] bits (Row precharge delay) */
Kojto 93:e188a91d3eaa 4925 #define FMC_SDTR1_TRP_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4926 #define FMC_SDTR1_TRP_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4927 #define FMC_SDTR1_TRP_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4928
Kojto 93:e188a91d3eaa 4929 #define FMC_SDTR1_TRCD ((uint32_t)0x0F000000) /*!<TRP[2:0] bits (Row to column delay) */
Kojto 93:e188a91d3eaa 4930 #define FMC_SDTR1_TRCD_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4931 #define FMC_SDTR1_TRCD_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4932 #define FMC_SDTR1_TRCD_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4933
Kojto 93:e188a91d3eaa 4934 /****************** Bit definition for FMC_SDTR2 register ******************/
Kojto 93:e188a91d3eaa 4935 #define FMC_SDTR2_TMRD ((uint32_t)0x0000000F) /*!<TMRD[3:0] bits (Load mode register to active) */
Kojto 93:e188a91d3eaa 4936 #define FMC_SDTR2_TMRD_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4937 #define FMC_SDTR2_TMRD_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4938 #define FMC_SDTR2_TMRD_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4939 #define FMC_SDTR2_TMRD_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4940
Kojto 93:e188a91d3eaa 4941 #define FMC_SDTR2_TXSR ((uint32_t)0x000000F0) /*!<TXSR[3:0] bits (Exit self refresh) */
Kojto 93:e188a91d3eaa 4942 #define FMC_SDTR2_TXSR_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4943 #define FMC_SDTR2_TXSR_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4944 #define FMC_SDTR2_TXSR_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4945 #define FMC_SDTR2_TXSR_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4946
Kojto 93:e188a91d3eaa 4947 #define FMC_SDTR2_TRAS ((uint32_t)0x00000F00) /*!<TRAS[3:0] bits (Self refresh time) */
Kojto 93:e188a91d3eaa 4948 #define FMC_SDTR2_TRAS_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4949 #define FMC_SDTR2_TRAS_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4950 #define FMC_SDTR2_TRAS_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4951 #define FMC_SDTR2_TRAS_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4952
Kojto 93:e188a91d3eaa 4953 #define FMC_SDTR2_TRC ((uint32_t)0x0000F000) /*!<TRC[2:0] bits (Row cycle delay) */
Kojto 93:e188a91d3eaa 4954 #define FMC_SDTR2_TRC_0 ((uint32_t)0x00001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4955 #define FMC_SDTR2_TRC_1 ((uint32_t)0x00002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4956 #define FMC_SDTR2_TRC_2 ((uint32_t)0x00004000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4957
Kojto 93:e188a91d3eaa 4958 #define FMC_SDTR2_TWR ((uint32_t)0x000F0000) /*!<TRC[2:0] bits (Write recovery delay) */
Kojto 93:e188a91d3eaa 4959 #define FMC_SDTR2_TWR_0 ((uint32_t)0x00010000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4960 #define FMC_SDTR2_TWR_1 ((uint32_t)0x00020000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4961 #define FMC_SDTR2_TWR_2 ((uint32_t)0x00040000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4962
Kojto 93:e188a91d3eaa 4963 #define FMC_SDTR2_TRP ((uint32_t)0x00F00000) /*!<TRP[2:0] bits (Row precharge delay) */
Kojto 93:e188a91d3eaa 4964 #define FMC_SDTR2_TRP_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4965 #define FMC_SDTR2_TRP_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4966 #define FMC_SDTR2_TRP_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4967
Kojto 93:e188a91d3eaa 4968 #define FMC_SDTR2_TRCD ((uint32_t)0x0F000000) /*!<TRP[2:0] bits (Row to column delay) */
Kojto 93:e188a91d3eaa 4969 #define FMC_SDTR2_TRCD_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4970 #define FMC_SDTR2_TRCD_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4971 #define FMC_SDTR2_TRCD_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4972
Kojto 93:e188a91d3eaa 4973 /****************** Bit definition for FMC_SDCMR register ******************/
Kojto 93:e188a91d3eaa 4974 #define FMC_SDCMR_MODE ((uint32_t)0x00000007) /*!<MODE[2:0] bits (Command mode) */
Kojto 93:e188a91d3eaa 4975 #define FMC_SDCMR_MODE_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4976 #define FMC_SDCMR_MODE_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4977 #define FMC_SDCMR_MODE_2 ((uint32_t)0x00000003) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4978
Kojto 93:e188a91d3eaa 4979 #define FMC_SDCMR_CTB2 ((uint32_t)0x00000008) /*!<Command target 2 */
Kojto 93:e188a91d3eaa 4980
Kojto 93:e188a91d3eaa 4981 #define FMC_SDCMR_CTB1 ((uint32_t)0x00000010) /*!<Command target 1 */
Kojto 93:e188a91d3eaa 4982
Kojto 93:e188a91d3eaa 4983 #define FMC_SDCMR_NRFS ((uint32_t)0x000001E0) /*!<NRFS[3:0] bits (Number of auto-refresh) */
Kojto 93:e188a91d3eaa 4984 #define FMC_SDCMR_NRFS_0 ((uint32_t)0x00000020) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 4985 #define FMC_SDCMR_NRFS_1 ((uint32_t)0x00000040) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 4986 #define FMC_SDCMR_NRFS_2 ((uint32_t)0x00000080) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 4987 #define FMC_SDCMR_NRFS_3 ((uint32_t)0x00000100) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 4988
Kojto 93:e188a91d3eaa 4989 #define FMC_SDCMR_MRD ((uint32_t)0x003FFE00) /*!<MRD[12:0] bits (Mode register definition) */
Kojto 93:e188a91d3eaa 4990
Kojto 93:e188a91d3eaa 4991 /****************** Bit definition for FMC_SDRTR register ******************/
Kojto 93:e188a91d3eaa 4992 #define FMC_SDRTR_CRE ((uint32_t)0x00000001) /*!<Clear refresh error flag */
Kojto 93:e188a91d3eaa 4993
Kojto 93:e188a91d3eaa 4994 #define FMC_SDRTR_COUNT ((uint32_t)0x00003FFE) /*!<COUNT[12:0] bits (Refresh timer count) */
Kojto 93:e188a91d3eaa 4995
Kojto 93:e188a91d3eaa 4996 #define FMC_SDRTR_REIE ((uint32_t)0x00004000) /*!<RES interupt enable */
Kojto 93:e188a91d3eaa 4997
Kojto 93:e188a91d3eaa 4998 /****************** Bit definition for FMC_SDSR register ******************/
Kojto 93:e188a91d3eaa 4999 #define FMC_SDSR_RE ((uint32_t)0x00000001) /*!<Refresh error flag */
Kojto 93:e188a91d3eaa 5000
Kojto 93:e188a91d3eaa 5001 #define FMC_SDSR_MODES1 ((uint32_t)0x00000006) /*!<MODES1[1:0]bits (Status mode for bank 1) */
Kojto 93:e188a91d3eaa 5002 #define FMC_SDSR_MODES1_0 ((uint32_t)0x00000002) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 5003 #define FMC_SDSR_MODES1_1 ((uint32_t)0x00000004) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 5004
Kojto 93:e188a91d3eaa 5005 #define FMC_SDSR_MODES2 ((uint32_t)0x00000018) /*!<MODES2[1:0]bits (Status mode for bank 2) */
Kojto 93:e188a91d3eaa 5006 #define FMC_SDSR_MODES2_0 ((uint32_t)0x00000008) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 5007 #define FMC_SDSR_MODES2_1 ((uint32_t)0x00000010) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 5008 #define FMC_SDSR_BUSY ((uint32_t)0x00000020) /*!<Busy status */
Kojto 93:e188a91d3eaa 5009
Kojto 93:e188a91d3eaa 5010
Kojto 93:e188a91d3eaa 5011
Kojto 93:e188a91d3eaa 5012 /******************************************************************************/
Kojto 93:e188a91d3eaa 5013 /* */
Kojto 93:e188a91d3eaa 5014 /* General Purpose I/O (GPIO) */
Kojto 93:e188a91d3eaa 5015 /* */
Kojto 93:e188a91d3eaa 5016 /******************************************************************************/
Kojto 93:e188a91d3eaa 5017 /******************* Bit definition for GPIO_MODER register *****************/
Kojto 93:e188a91d3eaa 5018 #define GPIO_MODER_MODER0 ((uint32_t)0x00000003)
Kojto 93:e188a91d3eaa 5019 #define GPIO_MODER_MODER0_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5020 #define GPIO_MODER_MODER0_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5021 #define GPIO_MODER_MODER1 ((uint32_t)0x0000000C)
Kojto 93:e188a91d3eaa 5022 #define GPIO_MODER_MODER1_0 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5023 #define GPIO_MODER_MODER1_1 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5024 #define GPIO_MODER_MODER2 ((uint32_t)0x00000030)
Kojto 93:e188a91d3eaa 5025 #define GPIO_MODER_MODER2_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5026 #define GPIO_MODER_MODER2_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5027 #define GPIO_MODER_MODER3 ((uint32_t)0x000000C0)
Kojto 93:e188a91d3eaa 5028 #define GPIO_MODER_MODER3_0 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5029 #define GPIO_MODER_MODER3_1 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5030 #define GPIO_MODER_MODER4 ((uint32_t)0x00000300)
Kojto 93:e188a91d3eaa 5031 #define GPIO_MODER_MODER4_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5032 #define GPIO_MODER_MODER4_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5033 #define GPIO_MODER_MODER5 ((uint32_t)0x00000C00)
Kojto 93:e188a91d3eaa 5034 #define GPIO_MODER_MODER5_0 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5035 #define GPIO_MODER_MODER5_1 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5036 #define GPIO_MODER_MODER6 ((uint32_t)0x00003000)
Kojto 93:e188a91d3eaa 5037 #define GPIO_MODER_MODER6_0 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5038 #define GPIO_MODER_MODER6_1 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5039 #define GPIO_MODER_MODER7 ((uint32_t)0x0000C000)
Kojto 93:e188a91d3eaa 5040 #define GPIO_MODER_MODER7_0 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5041 #define GPIO_MODER_MODER7_1 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5042 #define GPIO_MODER_MODER8 ((uint32_t)0x00030000)
Kojto 93:e188a91d3eaa 5043 #define GPIO_MODER_MODER8_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 5044 #define GPIO_MODER_MODER8_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 5045 #define GPIO_MODER_MODER9 ((uint32_t)0x000C0000)
Kojto 93:e188a91d3eaa 5046 #define GPIO_MODER_MODER9_0 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 5047 #define GPIO_MODER_MODER9_1 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 5048 #define GPIO_MODER_MODER10 ((uint32_t)0x00300000)
Kojto 93:e188a91d3eaa 5049 #define GPIO_MODER_MODER10_0 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 5050 #define GPIO_MODER_MODER10_1 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 5051 #define GPIO_MODER_MODER11 ((uint32_t)0x00C00000)
Kojto 93:e188a91d3eaa 5052 #define GPIO_MODER_MODER11_0 ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 5053 #define GPIO_MODER_MODER11_1 ((uint32_t)0x00800000)
Kojto 93:e188a91d3eaa 5054 #define GPIO_MODER_MODER12 ((uint32_t)0x03000000)
Kojto 93:e188a91d3eaa 5055 #define GPIO_MODER_MODER12_0 ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 5056 #define GPIO_MODER_MODER12_1 ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 5057 #define GPIO_MODER_MODER13 ((uint32_t)0x0C000000)
Kojto 93:e188a91d3eaa 5058 #define GPIO_MODER_MODER13_0 ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 5059 #define GPIO_MODER_MODER13_1 ((uint32_t)0x08000000)
Kojto 93:e188a91d3eaa 5060 #define GPIO_MODER_MODER14 ((uint32_t)0x30000000)
Kojto 93:e188a91d3eaa 5061 #define GPIO_MODER_MODER14_0 ((uint32_t)0x10000000)
Kojto 93:e188a91d3eaa 5062 #define GPIO_MODER_MODER14_1 ((uint32_t)0x20000000)
Kojto 93:e188a91d3eaa 5063 #define GPIO_MODER_MODER15 ((uint32_t)0xC0000000)
Kojto 93:e188a91d3eaa 5064 #define GPIO_MODER_MODER15_0 ((uint32_t)0x40000000)
Kojto 93:e188a91d3eaa 5065 #define GPIO_MODER_MODER15_1 ((uint32_t)0x80000000)
Kojto 93:e188a91d3eaa 5066
Kojto 93:e188a91d3eaa 5067 /****************** Bit definition for GPIO_OTYPER register *****************/
Kojto 93:e188a91d3eaa 5068 #define GPIO_OTYPER_OT_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5069 #define GPIO_OTYPER_OT_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5070 #define GPIO_OTYPER_OT_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5071 #define GPIO_OTYPER_OT_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5072 #define GPIO_OTYPER_OT_4 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5073 #define GPIO_OTYPER_OT_5 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5074 #define GPIO_OTYPER_OT_6 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5075 #define GPIO_OTYPER_OT_7 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5076 #define GPIO_OTYPER_OT_8 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5077 #define GPIO_OTYPER_OT_9 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5078 #define GPIO_OTYPER_OT_10 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5079 #define GPIO_OTYPER_OT_11 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5080 #define GPIO_OTYPER_OT_12 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5081 #define GPIO_OTYPER_OT_13 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5082 #define GPIO_OTYPER_OT_14 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5083 #define GPIO_OTYPER_OT_15 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5084
Kojto 93:e188a91d3eaa 5085 /**************** Bit definition for GPIO_OSPEEDR register ******************/
Kojto 93:e188a91d3eaa 5086 #define GPIO_OSPEEDER_OSPEEDR0 ((uint32_t)0x00000003)
Kojto 93:e188a91d3eaa 5087 #define GPIO_OSPEEDER_OSPEEDR0_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5088 #define GPIO_OSPEEDER_OSPEEDR0_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5089 #define GPIO_OSPEEDER_OSPEEDR1 ((uint32_t)0x0000000C)
Kojto 93:e188a91d3eaa 5090 #define GPIO_OSPEEDER_OSPEEDR1_0 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5091 #define GPIO_OSPEEDER_OSPEEDR1_1 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5092 #define GPIO_OSPEEDER_OSPEEDR2 ((uint32_t)0x00000030)
Kojto 93:e188a91d3eaa 5093 #define GPIO_OSPEEDER_OSPEEDR2_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5094 #define GPIO_OSPEEDER_OSPEEDR2_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5095 #define GPIO_OSPEEDER_OSPEEDR3 ((uint32_t)0x000000C0)
Kojto 93:e188a91d3eaa 5096 #define GPIO_OSPEEDER_OSPEEDR3_0 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5097 #define GPIO_OSPEEDER_OSPEEDR3_1 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5098 #define GPIO_OSPEEDER_OSPEEDR4 ((uint32_t)0x00000300)
Kojto 93:e188a91d3eaa 5099 #define GPIO_OSPEEDER_OSPEEDR4_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5100 #define GPIO_OSPEEDER_OSPEEDR4_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5101 #define GPIO_OSPEEDER_OSPEEDR5 ((uint32_t)0x00000C00)
Kojto 93:e188a91d3eaa 5102 #define GPIO_OSPEEDER_OSPEEDR5_0 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5103 #define GPIO_OSPEEDER_OSPEEDR5_1 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5104 #define GPIO_OSPEEDER_OSPEEDR6 ((uint32_t)0x00003000)
Kojto 93:e188a91d3eaa 5105 #define GPIO_OSPEEDER_OSPEEDR6_0 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5106 #define GPIO_OSPEEDER_OSPEEDR6_1 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5107 #define GPIO_OSPEEDER_OSPEEDR7 ((uint32_t)0x0000C000)
Kojto 93:e188a91d3eaa 5108 #define GPIO_OSPEEDER_OSPEEDR7_0 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5109 #define GPIO_OSPEEDER_OSPEEDR7_1 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5110 #define GPIO_OSPEEDER_OSPEEDR8 ((uint32_t)0x00030000)
Kojto 93:e188a91d3eaa 5111 #define GPIO_OSPEEDER_OSPEEDR8_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 5112 #define GPIO_OSPEEDER_OSPEEDR8_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 5113 #define GPIO_OSPEEDER_OSPEEDR9 ((uint32_t)0x000C0000)
Kojto 93:e188a91d3eaa 5114 #define GPIO_OSPEEDER_OSPEEDR9_0 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 5115 #define GPIO_OSPEEDER_OSPEEDR9_1 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 5116 #define GPIO_OSPEEDER_OSPEEDR10 ((uint32_t)0x00300000)
Kojto 93:e188a91d3eaa 5117 #define GPIO_OSPEEDER_OSPEEDR10_0 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 5118 #define GPIO_OSPEEDER_OSPEEDR10_1 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 5119 #define GPIO_OSPEEDER_OSPEEDR11 ((uint32_t)0x00C00000)
Kojto 93:e188a91d3eaa 5120 #define GPIO_OSPEEDER_OSPEEDR11_0 ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 5121 #define GPIO_OSPEEDER_OSPEEDR11_1 ((uint32_t)0x00800000)
Kojto 93:e188a91d3eaa 5122 #define GPIO_OSPEEDER_OSPEEDR12 ((uint32_t)0x03000000)
Kojto 93:e188a91d3eaa 5123 #define GPIO_OSPEEDER_OSPEEDR12_0 ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 5124 #define GPIO_OSPEEDER_OSPEEDR12_1 ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 5125 #define GPIO_OSPEEDER_OSPEEDR13 ((uint32_t)0x0C000000)
Kojto 93:e188a91d3eaa 5126 #define GPIO_OSPEEDER_OSPEEDR13_0 ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 5127 #define GPIO_OSPEEDER_OSPEEDR13_1 ((uint32_t)0x08000000)
Kojto 93:e188a91d3eaa 5128 #define GPIO_OSPEEDER_OSPEEDR14 ((uint32_t)0x30000000)
Kojto 93:e188a91d3eaa 5129 #define GPIO_OSPEEDER_OSPEEDR14_0 ((uint32_t)0x10000000)
Kojto 93:e188a91d3eaa 5130 #define GPIO_OSPEEDER_OSPEEDR14_1 ((uint32_t)0x20000000)
Kojto 93:e188a91d3eaa 5131 #define GPIO_OSPEEDER_OSPEEDR15 ((uint32_t)0xC0000000)
Kojto 93:e188a91d3eaa 5132 #define GPIO_OSPEEDER_OSPEEDR15_0 ((uint32_t)0x40000000)
Kojto 93:e188a91d3eaa 5133 #define GPIO_OSPEEDER_OSPEEDR15_1 ((uint32_t)0x80000000)
Kojto 93:e188a91d3eaa 5134
Kojto 93:e188a91d3eaa 5135 /******************* Bit definition for GPIO_PUPDR register ******************/
Kojto 93:e188a91d3eaa 5136 #define GPIO_PUPDR_PUPDR0 ((uint32_t)0x00000003)
Kojto 93:e188a91d3eaa 5137 #define GPIO_PUPDR_PUPDR0_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5138 #define GPIO_PUPDR_PUPDR0_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5139 #define GPIO_PUPDR_PUPDR1 ((uint32_t)0x0000000C)
Kojto 93:e188a91d3eaa 5140 #define GPIO_PUPDR_PUPDR1_0 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5141 #define GPIO_PUPDR_PUPDR1_1 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5142 #define GPIO_PUPDR_PUPDR2 ((uint32_t)0x00000030)
Kojto 93:e188a91d3eaa 5143 #define GPIO_PUPDR_PUPDR2_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5144 #define GPIO_PUPDR_PUPDR2_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5145 #define GPIO_PUPDR_PUPDR3 ((uint32_t)0x000000C0)
Kojto 93:e188a91d3eaa 5146 #define GPIO_PUPDR_PUPDR3_0 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5147 #define GPIO_PUPDR_PUPDR3_1 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5148 #define GPIO_PUPDR_PUPDR4 ((uint32_t)0x00000300)
Kojto 93:e188a91d3eaa 5149 #define GPIO_PUPDR_PUPDR4_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5150 #define GPIO_PUPDR_PUPDR4_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5151 #define GPIO_PUPDR_PUPDR5 ((uint32_t)0x00000C00)
Kojto 93:e188a91d3eaa 5152 #define GPIO_PUPDR_PUPDR5_0 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5153 #define GPIO_PUPDR_PUPDR5_1 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5154 #define GPIO_PUPDR_PUPDR6 ((uint32_t)0x00003000)
Kojto 93:e188a91d3eaa 5155 #define GPIO_PUPDR_PUPDR6_0 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5156 #define GPIO_PUPDR_PUPDR6_1 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5157 #define GPIO_PUPDR_PUPDR7 ((uint32_t)0x0000C000)
Kojto 93:e188a91d3eaa 5158 #define GPIO_PUPDR_PUPDR7_0 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5159 #define GPIO_PUPDR_PUPDR7_1 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5160 #define GPIO_PUPDR_PUPDR8 ((uint32_t)0x00030000)
Kojto 93:e188a91d3eaa 5161 #define GPIO_PUPDR_PUPDR8_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 5162 #define GPIO_PUPDR_PUPDR8_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 5163 #define GPIO_PUPDR_PUPDR9 ((uint32_t)0x000C0000)
Kojto 93:e188a91d3eaa 5164 #define GPIO_PUPDR_PUPDR9_0 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 5165 #define GPIO_PUPDR_PUPDR9_1 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 5166 #define GPIO_PUPDR_PUPDR10 ((uint32_t)0x00300000)
Kojto 93:e188a91d3eaa 5167 #define GPIO_PUPDR_PUPDR10_0 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 5168 #define GPIO_PUPDR_PUPDR10_1 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 5169 #define GPIO_PUPDR_PUPDR11 ((uint32_t)0x00C00000)
Kojto 93:e188a91d3eaa 5170 #define GPIO_PUPDR_PUPDR11_0 ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 5171 #define GPIO_PUPDR_PUPDR11_1 ((uint32_t)0x00800000)
Kojto 93:e188a91d3eaa 5172 #define GPIO_PUPDR_PUPDR12 ((uint32_t)0x03000000)
Kojto 93:e188a91d3eaa 5173 #define GPIO_PUPDR_PUPDR12_0 ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 5174 #define GPIO_PUPDR_PUPDR12_1 ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 5175 #define GPIO_PUPDR_PUPDR13 ((uint32_t)0x0C000000)
Kojto 93:e188a91d3eaa 5176 #define GPIO_PUPDR_PUPDR13_0 ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 5177 #define GPIO_PUPDR_PUPDR13_1 ((uint32_t)0x08000000)
Kojto 93:e188a91d3eaa 5178 #define GPIO_PUPDR_PUPDR14 ((uint32_t)0x30000000)
Kojto 93:e188a91d3eaa 5179 #define GPIO_PUPDR_PUPDR14_0 ((uint32_t)0x10000000)
Kojto 93:e188a91d3eaa 5180 #define GPIO_PUPDR_PUPDR14_1 ((uint32_t)0x20000000)
Kojto 93:e188a91d3eaa 5181 #define GPIO_PUPDR_PUPDR15 ((uint32_t)0xC0000000)
Kojto 93:e188a91d3eaa 5182 #define GPIO_PUPDR_PUPDR15_0 ((uint32_t)0x40000000)
Kojto 93:e188a91d3eaa 5183 #define GPIO_PUPDR_PUPDR15_1 ((uint32_t)0x80000000)
Kojto 93:e188a91d3eaa 5184
Kojto 93:e188a91d3eaa 5185 /******************* Bit definition for GPIO_IDR register *******************/
Kojto 93:e188a91d3eaa 5186 #define GPIO_IDR_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5187 #define GPIO_IDR_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5188 #define GPIO_IDR_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5189 #define GPIO_IDR_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5190 #define GPIO_IDR_4 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5191 #define GPIO_IDR_5 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5192 #define GPIO_IDR_6 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5193 #define GPIO_IDR_7 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5194 #define GPIO_IDR_8 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5195 #define GPIO_IDR_9 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5196 #define GPIO_IDR_10 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5197 #define GPIO_IDR_11 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5198 #define GPIO_IDR_12 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5199 #define GPIO_IDR_13 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5200 #define GPIO_IDR_14 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5201 #define GPIO_IDR_15 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5202
Kojto 93:e188a91d3eaa 5203 /****************** Bit definition for GPIO_ODR register ********************/
Kojto 93:e188a91d3eaa 5204 #define GPIO_ODR_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5205 #define GPIO_ODR_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5206 #define GPIO_ODR_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5207 #define GPIO_ODR_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5208 #define GPIO_ODR_4 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5209 #define GPIO_ODR_5 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5210 #define GPIO_ODR_6 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5211 #define GPIO_ODR_7 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5212 #define GPIO_ODR_8 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5213 #define GPIO_ODR_9 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5214 #define GPIO_ODR_10 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5215 #define GPIO_ODR_11 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5216 #define GPIO_ODR_12 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5217 #define GPIO_ODR_13 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5218 #define GPIO_ODR_14 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5219 #define GPIO_ODR_15 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5220
Kojto 93:e188a91d3eaa 5221 /****************** Bit definition for GPIO_BSRR register ********************/
Kojto 93:e188a91d3eaa 5222 #define GPIO_BSRR_BS_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5223 #define GPIO_BSRR_BS_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5224 #define GPIO_BSRR_BS_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5225 #define GPIO_BSRR_BS_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5226 #define GPIO_BSRR_BS_4 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5227 #define GPIO_BSRR_BS_5 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5228 #define GPIO_BSRR_BS_6 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5229 #define GPIO_BSRR_BS_7 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5230 #define GPIO_BSRR_BS_8 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5231 #define GPIO_BSRR_BS_9 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5232 #define GPIO_BSRR_BS_10 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5233 #define GPIO_BSRR_BS_11 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5234 #define GPIO_BSRR_BS_12 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5235 #define GPIO_BSRR_BS_13 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5236 #define GPIO_BSRR_BS_14 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5237 #define GPIO_BSRR_BS_15 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5238 #define GPIO_BSRR_BR_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 5239 #define GPIO_BSRR_BR_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 5240 #define GPIO_BSRR_BR_2 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 5241 #define GPIO_BSRR_BR_3 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 5242 #define GPIO_BSRR_BR_4 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 5243 #define GPIO_BSRR_BR_5 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 5244 #define GPIO_BSRR_BR_6 ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 5245 #define GPIO_BSRR_BR_7 ((uint32_t)0x00800000)
Kojto 93:e188a91d3eaa 5246 #define GPIO_BSRR_BR_8 ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 5247 #define GPIO_BSRR_BR_9 ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 5248 #define GPIO_BSRR_BR_10 ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 5249 #define GPIO_BSRR_BR_11 ((uint32_t)0x08000000)
Kojto 93:e188a91d3eaa 5250 #define GPIO_BSRR_BR_12 ((uint32_t)0x10000000)
Kojto 93:e188a91d3eaa 5251 #define GPIO_BSRR_BR_13 ((uint32_t)0x20000000)
Kojto 93:e188a91d3eaa 5252 #define GPIO_BSRR_BR_14 ((uint32_t)0x40000000)
Kojto 93:e188a91d3eaa 5253 #define GPIO_BSRR_BR_15 ((uint32_t)0x80000000)
Kojto 93:e188a91d3eaa 5254
Kojto 93:e188a91d3eaa 5255 /****************** Bit definition for GPIO_LCKR register ********************/
Kojto 93:e188a91d3eaa 5256 #define GPIO_LCKR_LCK0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5257 #define GPIO_LCKR_LCK1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5258 #define GPIO_LCKR_LCK2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5259 #define GPIO_LCKR_LCK3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5260 #define GPIO_LCKR_LCK4 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5261 #define GPIO_LCKR_LCK5 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5262 #define GPIO_LCKR_LCK6 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5263 #define GPIO_LCKR_LCK7 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5264 #define GPIO_LCKR_LCK8 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5265 #define GPIO_LCKR_LCK9 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5266 #define GPIO_LCKR_LCK10 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5267 #define GPIO_LCKR_LCK11 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5268 #define GPIO_LCKR_LCK12 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5269 #define GPIO_LCKR_LCK13 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5270 #define GPIO_LCKR_LCK14 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5271 #define GPIO_LCKR_LCK15 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5272 #define GPIO_LCKR_LCKK ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 5273
Kojto 93:e188a91d3eaa 5274 /****************** Bit definition for GPIO_AFRL register ********************/
Kojto 93:e188a91d3eaa 5275 #define GPIO_AFRL_AFRL0 ((uint32_t)0x0000000F)
Kojto 93:e188a91d3eaa 5276 #define GPIO_AFRL_AFRL1 ((uint32_t)0x000000F0)
Kojto 93:e188a91d3eaa 5277 #define GPIO_AFRL_AFRL2 ((uint32_t)0x00000F00)
Kojto 93:e188a91d3eaa 5278 #define GPIO_AFRL_AFRL3 ((uint32_t)0x0000F000)
Kojto 93:e188a91d3eaa 5279 #define GPIO_AFRL_AFRL4 ((uint32_t)0x000F0000)
Kojto 93:e188a91d3eaa 5280 #define GPIO_AFRL_AFRL5 ((uint32_t)0x00F00000)
Kojto 93:e188a91d3eaa 5281 #define GPIO_AFRL_AFRL6 ((uint32_t)0x0F000000)
Kojto 93:e188a91d3eaa 5282 #define GPIO_AFRL_AFRL7 ((uint32_t)0xF0000000)
Kojto 93:e188a91d3eaa 5283
Kojto 93:e188a91d3eaa 5284 /****************** Bit definition for GPIO_AFRH register ********************/
Kojto 93:e188a91d3eaa 5285 #define GPIO_AFRH_AFRH0 ((uint32_t)0x0000000F)
Kojto 93:e188a91d3eaa 5286 #define GPIO_AFRH_AFRH1 ((uint32_t)0x000000F0)
Kojto 93:e188a91d3eaa 5287 #define GPIO_AFRH_AFRH2 ((uint32_t)0x00000F00)
Kojto 93:e188a91d3eaa 5288 #define GPIO_AFRH_AFRH3 ((uint32_t)0x0000F000)
Kojto 93:e188a91d3eaa 5289 #define GPIO_AFRH_AFRH4 ((uint32_t)0x000F0000)
Kojto 93:e188a91d3eaa 5290 #define GPIO_AFRH_AFRH5 ((uint32_t)0x00F00000)
Kojto 93:e188a91d3eaa 5291 #define GPIO_AFRH_AFRH6 ((uint32_t)0x0F000000)
Kojto 93:e188a91d3eaa 5292 #define GPIO_AFRH_AFRH7 ((uint32_t)0xF0000000)
Kojto 93:e188a91d3eaa 5293
Kojto 93:e188a91d3eaa 5294 /****************** Bit definition for GPIO_BRR register *********************/
Kojto 93:e188a91d3eaa 5295 #define GPIO_BRR_BR_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5296 #define GPIO_BRR_BR_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5297 #define GPIO_BRR_BR_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5298 #define GPIO_BRR_BR_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5299 #define GPIO_BRR_BR_4 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5300 #define GPIO_BRR_BR_5 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5301 #define GPIO_BRR_BR_6 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5302 #define GPIO_BRR_BR_7 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 5303 #define GPIO_BRR_BR_8 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5304 #define GPIO_BRR_BR_9 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5305 #define GPIO_BRR_BR_10 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5306 #define GPIO_BRR_BR_11 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5307 #define GPIO_BRR_BR_12 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5308 #define GPIO_BRR_BR_13 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5309 #define GPIO_BRR_BR_14 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5310 #define GPIO_BRR_BR_15 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 5311
Kojto 93:e188a91d3eaa 5312 /******************************************************************************/
Kojto 93:e188a91d3eaa 5313 /* */
Kojto 93:e188a91d3eaa 5314 /* Inter-integrated Circuit Interface (I2C) */
Kojto 93:e188a91d3eaa 5315 /* */
Kojto 93:e188a91d3eaa 5316 /******************************************************************************/
Kojto 93:e188a91d3eaa 5317 /******************* Bit definition for I2C_CR1 register *******************/
Kojto 93:e188a91d3eaa 5318 #define I2C_CR1_PE ((uint32_t)0x00000001) /*!< Peripheral enable */
Kojto 93:e188a91d3eaa 5319 #define I2C_CR1_TXIE ((uint32_t)0x00000002) /*!< TX interrupt enable */
Kojto 93:e188a91d3eaa 5320 #define I2C_CR1_RXIE ((uint32_t)0x00000004) /*!< RX interrupt enable */
Kojto 93:e188a91d3eaa 5321 #define I2C_CR1_ADDRIE ((uint32_t)0x00000008) /*!< Address match interrupt enable */
Kojto 93:e188a91d3eaa 5322 #define I2C_CR1_NACKIE ((uint32_t)0x00000010) /*!< NACK received interrupt enable */
Kojto 93:e188a91d3eaa 5323 #define I2C_CR1_STOPIE ((uint32_t)0x00000020) /*!< STOP detection interrupt enable */
Kojto 93:e188a91d3eaa 5324 #define I2C_CR1_TCIE ((uint32_t)0x00000040) /*!< Transfer complete interrupt enable */
Kojto 93:e188a91d3eaa 5325 #define I2C_CR1_ERRIE ((uint32_t)0x00000080) /*!< Errors interrupt enable */
Kojto 93:e188a91d3eaa 5326 #define I2C_CR1_DFN ((uint32_t)0x00000F00) /*!< Digital noise filter */
Kojto 93:e188a91d3eaa 5327 #define I2C_CR1_ANFOFF ((uint32_t)0x00001000) /*!< Analog noise filter OFF */
Kojto 93:e188a91d3eaa 5328 #define I2C_CR1_SWRST ((uint32_t)0x00002000) /*!< Software reset */
Kojto 93:e188a91d3eaa 5329 #define I2C_CR1_TXDMAEN ((uint32_t)0x00004000) /*!< DMA transmission requests enable */
Kojto 93:e188a91d3eaa 5330 #define I2C_CR1_RXDMAEN ((uint32_t)0x00008000) /*!< DMA reception requests enable */
Kojto 93:e188a91d3eaa 5331 #define I2C_CR1_SBC ((uint32_t)0x00010000) /*!< Slave byte control */
Kojto 93:e188a91d3eaa 5332 #define I2C_CR1_NOSTRETCH ((uint32_t)0x00020000) /*!< Clock stretching disable */
Kojto 93:e188a91d3eaa 5333 #define I2C_CR1_WUPEN ((uint32_t)0x00040000) /*!< Wakeup from STOP enable */
Kojto 93:e188a91d3eaa 5334 #define I2C_CR1_GCEN ((uint32_t)0x00080000) /*!< General call enable */
Kojto 93:e188a91d3eaa 5335 #define I2C_CR1_SMBHEN ((uint32_t)0x00100000) /*!< SMBus host address enable */
Kojto 93:e188a91d3eaa 5336 #define I2C_CR1_SMBDEN ((uint32_t)0x00200000) /*!< SMBus device default address enable */
Kojto 93:e188a91d3eaa 5337 #define I2C_CR1_ALERTEN ((uint32_t)0x00400000) /*!< SMBus alert enable */
Kojto 93:e188a91d3eaa 5338 #define I2C_CR1_PECEN ((uint32_t)0x00800000) /*!< PEC enable */
Kojto 93:e188a91d3eaa 5339
Kojto 93:e188a91d3eaa 5340 /****************** Bit definition for I2C_CR2 register ********************/
Kojto 93:e188a91d3eaa 5341 #define I2C_CR2_SADD ((uint32_t)0x000003FF) /*!< Slave address (master mode) */
Kojto 93:e188a91d3eaa 5342 #define I2C_CR2_RD_WRN ((uint32_t)0x00000400) /*!< Transfer direction (master mode) */
Kojto 93:e188a91d3eaa 5343 #define I2C_CR2_ADD10 ((uint32_t)0x00000800) /*!< 10-bit addressing mode (master mode) */
Kojto 93:e188a91d3eaa 5344 #define I2C_CR2_HEAD10R ((uint32_t)0x00001000) /*!< 10-bit address header only read direction (master mode) */
Kojto 93:e188a91d3eaa 5345 #define I2C_CR2_START ((uint32_t)0x00002000) /*!< START generation */
Kojto 93:e188a91d3eaa 5346 #define I2C_CR2_STOP ((uint32_t)0x00004000) /*!< STOP generation (master mode) */
Kojto 93:e188a91d3eaa 5347 #define I2C_CR2_NACK ((uint32_t)0x00008000) /*!< NACK generation (slave mode) */
Kojto 93:e188a91d3eaa 5348 #define I2C_CR2_NBYTES ((uint32_t)0x00FF0000) /*!< Number of bytes */
Kojto 93:e188a91d3eaa 5349 #define I2C_CR2_RELOAD ((uint32_t)0x01000000) /*!< NBYTES reload mode */
Kojto 93:e188a91d3eaa 5350 #define I2C_CR2_AUTOEND ((uint32_t)0x02000000) /*!< Automatic end mode (master mode) */
Kojto 93:e188a91d3eaa 5351 #define I2C_CR2_PECBYTE ((uint32_t)0x04000000) /*!< Packet error checking byte */
Kojto 93:e188a91d3eaa 5352
Kojto 93:e188a91d3eaa 5353 /******************* Bit definition for I2C_OAR1 register ******************/
Kojto 93:e188a91d3eaa 5354 #define I2C_OAR1_OA1 ((uint32_t)0x000003FF) /*!< Interface own address 1 */
Kojto 93:e188a91d3eaa 5355 #define I2C_OAR1_OA1MODE ((uint32_t)0x00000400) /*!< Own address 1 10-bit mode */
Kojto 93:e188a91d3eaa 5356 #define I2C_OAR1_OA1EN ((uint32_t)0x00008000) /*!< Own address 1 enable */
Kojto 93:e188a91d3eaa 5357
Kojto 93:e188a91d3eaa 5358 /******************* Bit definition for I2C_OAR2 register *******************/
Kojto 93:e188a91d3eaa 5359 #define I2C_OAR2_OA2 ((uint32_t)0x000000FE) /*!< Interface own address 2 */
Kojto 93:e188a91d3eaa 5360 #define I2C_OAR2_OA2MSK ((uint32_t)0x00000700) /*!< Own address 2 masks */
Kojto 93:e188a91d3eaa 5361 #define I2C_OAR2_OA2EN ((uint32_t)0x00008000) /*!< Own address 2 enable */
Kojto 93:e188a91d3eaa 5362
Kojto 93:e188a91d3eaa 5363 /******************* Bit definition for I2C_TIMINGR register *****************/
Kojto 93:e188a91d3eaa 5364 #define I2C_TIMINGR_SCLL ((uint32_t)0x000000FF) /*!< SCL low period (master mode) */
Kojto 93:e188a91d3eaa 5365 #define I2C_TIMINGR_SCLH ((uint32_t)0x0000FF00) /*!< SCL high period (master mode) */
Kojto 93:e188a91d3eaa 5366 #define I2C_TIMINGR_SDADEL ((uint32_t)0x000F0000) /*!< Data hold time */
Kojto 93:e188a91d3eaa 5367 #define I2C_TIMINGR_SCLDEL ((uint32_t)0x00F00000) /*!< Data setup time */
Kojto 93:e188a91d3eaa 5368 #define I2C_TIMINGR_PRESC ((uint32_t)0xF0000000) /*!< Timings prescaler */
Kojto 93:e188a91d3eaa 5369
Kojto 93:e188a91d3eaa 5370 /******************* Bit definition for I2C_TIMEOUTR register *****************/
Kojto 93:e188a91d3eaa 5371 #define I2C_TIMEOUTR_TIMEOUTA ((uint32_t)0x00000FFF) /*!< Bus timeout A */
Kojto 93:e188a91d3eaa 5372 #define I2C_TIMEOUTR_TIDLE ((uint32_t)0x00001000) /*!< Idle clock timeout detection */
Kojto 93:e188a91d3eaa 5373 #define I2C_TIMEOUTR_TIMOUTEN ((uint32_t)0x00008000) /*!< Clock timeout enable */
Kojto 93:e188a91d3eaa 5374 #define I2C_TIMEOUTR_TIMEOUTB ((uint32_t)0x0FFF0000) /*!< Bus timeout B*/
Kojto 93:e188a91d3eaa 5375 #define I2C_TIMEOUTR_TEXTEN ((uint32_t)0x80000000) /*!< Extended clock timeout enable */
Kojto 93:e188a91d3eaa 5376
Kojto 93:e188a91d3eaa 5377 /****************** Bit definition for I2C_ISR register *********************/
Kojto 93:e188a91d3eaa 5378 #define I2C_ISR_TXE ((uint32_t)0x00000001) /*!< Transmit data register empty */
Kojto 93:e188a91d3eaa 5379 #define I2C_ISR_TXIS ((uint32_t)0x00000002) /*!< Transmit interrupt status */
Kojto 93:e188a91d3eaa 5380 #define I2C_ISR_RXNE ((uint32_t)0x00000004) /*!< Receive data register not empty */
Kojto 93:e188a91d3eaa 5381 #define I2C_ISR_ADDR ((uint32_t)0x00000008) /*!< Address matched (slave mode)*/
Kojto 93:e188a91d3eaa 5382 #define I2C_ISR_NACKF ((uint32_t)0x00000010) /*!< NACK received flag */
Kojto 93:e188a91d3eaa 5383 #define I2C_ISR_STOPF ((uint32_t)0x00000020) /*!< STOP detection flag */
Kojto 93:e188a91d3eaa 5384 #define I2C_ISR_TC ((uint32_t)0x00000040) /*!< Transfer complete (master mode) */
Kojto 93:e188a91d3eaa 5385 #define I2C_ISR_TCR ((uint32_t)0x00000080) /*!< Transfer complete reload */
Kojto 93:e188a91d3eaa 5386 #define I2C_ISR_BERR ((uint32_t)0x00000100) /*!< Bus error */
Kojto 93:e188a91d3eaa 5387 #define I2C_ISR_ARLO ((uint32_t)0x00000200) /*!< Arbitration lost */
Kojto 93:e188a91d3eaa 5388 #define I2C_ISR_OVR ((uint32_t)0x00000400) /*!< Overrun/Underrun */
Kojto 93:e188a91d3eaa 5389 #define I2C_ISR_PECERR ((uint32_t)0x00000800) /*!< PEC error in reception */
Kojto 93:e188a91d3eaa 5390 #define I2C_ISR_TIMEOUT ((uint32_t)0x00001000) /*!< Timeout or Tlow detection flag */
Kojto 93:e188a91d3eaa 5391 #define I2C_ISR_ALERT ((uint32_t)0x00002000) /*!< SMBus alert */
Kojto 93:e188a91d3eaa 5392 #define I2C_ISR_BUSY ((uint32_t)0x00008000) /*!< Bus busy */
Kojto 93:e188a91d3eaa 5393 #define I2C_ISR_DIR ((uint32_t)0x00010000) /*!< Transfer direction (slave mode) */
Kojto 93:e188a91d3eaa 5394 #define I2C_ISR_ADDCODE ((uint32_t)0x00FE0000) /*!< Address match code (slave mode) */
Kojto 93:e188a91d3eaa 5395
Kojto 93:e188a91d3eaa 5396 /****************** Bit definition for I2C_ICR register *********************/
Kojto 93:e188a91d3eaa 5397 #define I2C_ICR_ADDRCF ((uint32_t)0x00000008) /*!< Address matched clear flag */
Kojto 93:e188a91d3eaa 5398 #define I2C_ICR_NACKCF ((uint32_t)0x00000010) /*!< NACK clear flag */
Kojto 93:e188a91d3eaa 5399 #define I2C_ICR_STOPCF ((uint32_t)0x00000020) /*!< STOP detection clear flag */
Kojto 93:e188a91d3eaa 5400 #define I2C_ICR_BERRCF ((uint32_t)0x00000100) /*!< Bus error clear flag */
Kojto 93:e188a91d3eaa 5401 #define I2C_ICR_ARLOCF ((uint32_t)0x00000200) /*!< Arbitration lost clear flag */
Kojto 93:e188a91d3eaa 5402 #define I2C_ICR_OVRCF ((uint32_t)0x00000400) /*!< Overrun/Underrun clear flag */
Kojto 93:e188a91d3eaa 5403 #define I2C_ICR_PECCF ((uint32_t)0x00000800) /*!< PAC error clear flag */
Kojto 93:e188a91d3eaa 5404 #define I2C_ICR_TIMOUTCF ((uint32_t)0x00001000) /*!< Timeout clear flag */
Kojto 93:e188a91d3eaa 5405 #define I2C_ICR_ALERTCF ((uint32_t)0x00002000) /*!< Alert clear flag */
Kojto 93:e188a91d3eaa 5406
Kojto 93:e188a91d3eaa 5407 /****************** Bit definition for I2C_PECR register ********************/
Kojto 93:e188a91d3eaa 5408 #define I2C_PECR_PEC ((uint32_t)0x000000FF) /*!< PEC register */
Kojto 93:e188a91d3eaa 5409
Kojto 93:e188a91d3eaa 5410 /****************** Bit definition for I2C_RXDR register *********************/
Kojto 93:e188a91d3eaa 5411 #define I2C_RXDR_RXDATA ((uint32_t)0x000000FF) /*!< 8-bit receive data */
Kojto 93:e188a91d3eaa 5412
Kojto 93:e188a91d3eaa 5413 /****************** Bit definition for I2C_TXDR register *********************/
Kojto 93:e188a91d3eaa 5414 #define I2C_TXDR_TXDATA ((uint32_t)0x000000FF) /*!< 8-bit transmit data */
Kojto 93:e188a91d3eaa 5415
Kojto 93:e188a91d3eaa 5416
Kojto 93:e188a91d3eaa 5417 /******************************************************************************/
Kojto 93:e188a91d3eaa 5418 /* */
Kojto 93:e188a91d3eaa 5419 /* Independent WATCHDOG (IWDG) */
Kojto 93:e188a91d3eaa 5420 /* */
Kojto 93:e188a91d3eaa 5421 /******************************************************************************/
Kojto 93:e188a91d3eaa 5422 /******************* Bit definition for IWDG_KR register ********************/
Kojto 93:e188a91d3eaa 5423 #define IWDG_KR_KEY ((uint32_t)0x0000FFFF) /*!< Key value (write only, read 0000h) */
Kojto 93:e188a91d3eaa 5424
Kojto 93:e188a91d3eaa 5425 /******************* Bit definition for IWDG_PR register ********************/
Kojto 93:e188a91d3eaa 5426 #define IWDG_PR_PR ((uint32_t)0x00000007) /*!< PR[2:0] (Prescaler divider) */
Kojto 93:e188a91d3eaa 5427 #define IWDG_PR_PR_0 ((uint32_t)0x00000001) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5428 #define IWDG_PR_PR_1 ((uint32_t)0x00000002) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5429 #define IWDG_PR_PR_2 ((uint32_t)0x00000004) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5430
Kojto 93:e188a91d3eaa 5431 /******************* Bit definition for IWDG_RLR register *******************/
Kojto 93:e188a91d3eaa 5432 #define IWDG_RLR_RL ((uint32_t)0x00000FFF) /*!< Watchdog counter reload value */
Kojto 93:e188a91d3eaa 5433
Kojto 93:e188a91d3eaa 5434 /******************* Bit definition for IWDG_SR register ********************/
Kojto 93:e188a91d3eaa 5435 #define IWDG_SR_PVU ((uint32_t)0x00000001) /*!< Watchdog prescaler value update */
Kojto 93:e188a91d3eaa 5436 #define IWDG_SR_RVU ((uint32_t)0x00000002) /*!< Watchdog counter reload value update */
Kojto 93:e188a91d3eaa 5437 #define IWDG_SR_WVU ((uint32_t)0x00000004) /*!< Watchdog counter window value update */
Kojto 93:e188a91d3eaa 5438
Kojto 93:e188a91d3eaa 5439 /******************* Bit definition for IWDG_KR register ********************/
Kojto 93:e188a91d3eaa 5440 #define IWDG_WINR_WIN ((uint32_t)0x00000FFF) /*!< Watchdog counter window value */
Kojto 93:e188a91d3eaa 5441
Kojto 93:e188a91d3eaa 5442 /******************************************************************************/
Kojto 93:e188a91d3eaa 5443 /* */
Kojto 93:e188a91d3eaa 5444 /* Power Control */
Kojto 93:e188a91d3eaa 5445 /* */
Kojto 93:e188a91d3eaa 5446 /******************************************************************************/
Kojto 93:e188a91d3eaa 5447 /******************** Bit definition for PWR_CR register ********************/
Kojto 93:e188a91d3eaa 5448 #define PWR_CR_LPDS ((uint32_t)0x00000001) /*!< Low-power Deepsleep */
Kojto 93:e188a91d3eaa 5449 #define PWR_CR_PDDS ((uint32_t)0x00000002) /*!< Power Down Deepsleep */
Kojto 93:e188a91d3eaa 5450 #define PWR_CR_CWUF ((uint32_t)0x00000004) /*!< Clear Wakeup Flag */
Kojto 93:e188a91d3eaa 5451 #define PWR_CR_CSBF ((uint32_t)0x00000008) /*!< Clear Standby Flag */
Kojto 93:e188a91d3eaa 5452 #define PWR_CR_PVDE ((uint32_t)0x00000010) /*!< Power Voltage Detector Enable */
Kojto 93:e188a91d3eaa 5453
Kojto 93:e188a91d3eaa 5454 #define PWR_CR_PLS ((uint32_t)0x000000E0) /*!< PLS[2:0] bits (PVD Level Selection) */
Kojto 93:e188a91d3eaa 5455 #define PWR_CR_PLS_0 ((uint32_t)0x00000020) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5456 #define PWR_CR_PLS_1 ((uint32_t)0x00000040) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5457 #define PWR_CR_PLS_2 ((uint32_t)0x00000080) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5458
Kojto 93:e188a91d3eaa 5459 /*!< PVD level configuration */
Kojto 93:e188a91d3eaa 5460 #define PWR_CR_PLS_LEV0 ((uint32_t)0x00000000) /*!< PVD level 0 */
Kojto 93:e188a91d3eaa 5461 #define PWR_CR_PLS_LEV1 ((uint32_t)0x00000020) /*!< PVD level 1 */
Kojto 93:e188a91d3eaa 5462 #define PWR_CR_PLS_LEV2 ((uint32_t)0x00000040) /*!< PVD level 2 */
Kojto 93:e188a91d3eaa 5463 #define PWR_CR_PLS_LEV3 ((uint32_t)0x00000060) /*!< PVD level 3 */
Kojto 93:e188a91d3eaa 5464 #define PWR_CR_PLS_LEV4 ((uint32_t)0x00000080) /*!< PVD level 4 */
Kojto 93:e188a91d3eaa 5465 #define PWR_CR_PLS_LEV5 ((uint32_t)0x000000A0) /*!< PVD level 5 */
Kojto 93:e188a91d3eaa 5466 #define PWR_CR_PLS_LEV6 ((uint32_t)0x000000C0) /*!< PVD level 6 */
Kojto 93:e188a91d3eaa 5467 #define PWR_CR_PLS_LEV7 ((uint32_t)0x000000E0) /*!< PVD level 7 */
Kojto 93:e188a91d3eaa 5468
Kojto 93:e188a91d3eaa 5469 #define PWR_CR_DBP ((uint32_t)0x00000100) /*!< Disable Backup Domain write protection */
Kojto 93:e188a91d3eaa 5470
Kojto 93:e188a91d3eaa 5471 /******************* Bit definition for PWR_CSR register ********************/
Kojto 93:e188a91d3eaa 5472 #define PWR_CSR_WUF ((uint32_t)0x00000001) /*!< Wakeup Flag */
Kojto 93:e188a91d3eaa 5473 #define PWR_CSR_SBF ((uint32_t)0x00000002) /*!< Standby Flag */
Kojto 93:e188a91d3eaa 5474 #define PWR_CSR_PVDO ((uint32_t)0x00000004) /*!< PVD Output */
Kojto 93:e188a91d3eaa 5475 #define PWR_CSR_VREFINTRDYF ((uint32_t)0x00000008) /*!< Internal voltage reference (VREFINT) ready flag */
Kojto 93:e188a91d3eaa 5476
Kojto 93:e188a91d3eaa 5477 #define PWR_CSR_EWUP1 ((uint32_t)0x00000100) /*!< Enable WKUP pin 1 */
Kojto 93:e188a91d3eaa 5478 #define PWR_CSR_EWUP2 ((uint32_t)0x00000200) /*!< Enable WKUP pin 2 */
Kojto 93:e188a91d3eaa 5479 #define PWR_CSR_EWUP3 ((uint32_t)0x00000400) /*!< Enable WKUP pin 3 */
Kojto 93:e188a91d3eaa 5480
Kojto 93:e188a91d3eaa 5481 /******************************************************************************/
Kojto 93:e188a91d3eaa 5482 /* */
Kojto 93:e188a91d3eaa 5483 /* Reset and Clock Control */
Kojto 93:e188a91d3eaa 5484 /* */
Kojto 93:e188a91d3eaa 5485 /******************************************************************************/
Kojto 93:e188a91d3eaa 5486 /******************** Bit definition for RCC_CR register ********************/
Kojto 93:e188a91d3eaa 5487 #define RCC_CR_HSION ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5488 #define RCC_CR_HSIRDY ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5489
Kojto 93:e188a91d3eaa 5490 #define RCC_CR_HSITRIM ((uint32_t)0x000000F8)
Kojto 93:e188a91d3eaa 5491 #define RCC_CR_HSITRIM_0 ((uint32_t)0x00000008)/*!<Bit 0 */
Kojto 93:e188a91d3eaa 5492 #define RCC_CR_HSITRIM_1 ((uint32_t)0x00000010)/*!<Bit 1 */
Kojto 93:e188a91d3eaa 5493 #define RCC_CR_HSITRIM_2 ((uint32_t)0x00000020)/*!<Bit 2 */
Kojto 93:e188a91d3eaa 5494 #define RCC_CR_HSITRIM_3 ((uint32_t)0x00000040)/*!<Bit 3 */
Kojto 93:e188a91d3eaa 5495 #define RCC_CR_HSITRIM_4 ((uint32_t)0x00000080)/*!<Bit 4 */
Kojto 93:e188a91d3eaa 5496
Kojto 93:e188a91d3eaa 5497 #define RCC_CR_HSICAL ((uint32_t)0x0000FF00)
Kojto 93:e188a91d3eaa 5498 #define RCC_CR_HSICAL_0 ((uint32_t)0x00000100)/*!<Bit 0 */
Kojto 93:e188a91d3eaa 5499 #define RCC_CR_HSICAL_1 ((uint32_t)0x00000200)/*!<Bit 1 */
Kojto 93:e188a91d3eaa 5500 #define RCC_CR_HSICAL_2 ((uint32_t)0x00000400)/*!<Bit 2 */
Kojto 93:e188a91d3eaa 5501 #define RCC_CR_HSICAL_3 ((uint32_t)0x00000800)/*!<Bit 3 */
Kojto 93:e188a91d3eaa 5502 #define RCC_CR_HSICAL_4 ((uint32_t)0x00001000)/*!<Bit 4 */
Kojto 93:e188a91d3eaa 5503 #define RCC_CR_HSICAL_5 ((uint32_t)0x00002000)/*!<Bit 5 */
Kojto 93:e188a91d3eaa 5504 #define RCC_CR_HSICAL_6 ((uint32_t)0x00004000)/*!<Bit 6 */
Kojto 93:e188a91d3eaa 5505 #define RCC_CR_HSICAL_7 ((uint32_t)0x00008000)/*!<Bit 7 */
Kojto 93:e188a91d3eaa 5506
Kojto 93:e188a91d3eaa 5507 #define RCC_CR_HSEON ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 5508 #define RCC_CR_HSERDY ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 5509 #define RCC_CR_HSEBYP ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 5510 #define RCC_CR_CSSON ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 5511 #define RCC_CR_PLLON ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 5512 #define RCC_CR_PLLRDY ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 5513
Kojto 93:e188a91d3eaa 5514 /******************** Bit definition for RCC_CFGR register ******************/
Kojto 93:e188a91d3eaa 5515 /*!< SW configuration */
Kojto 93:e188a91d3eaa 5516 #define RCC_CFGR_SW ((uint32_t)0x00000003) /*!< SW[1:0] bits (System clock Switch) */
Kojto 93:e188a91d3eaa 5517 #define RCC_CFGR_SW_0 ((uint32_t)0x00000001) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5518 #define RCC_CFGR_SW_1 ((uint32_t)0x00000002) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5519
Kojto 93:e188a91d3eaa 5520 #define RCC_CFGR_SW_HSI ((uint32_t)0x00000000) /*!< HSI selected as system clock */
Kojto 93:e188a91d3eaa 5521 #define RCC_CFGR_SW_HSE ((uint32_t)0x00000001) /*!< HSE selected as system clock */
Kojto 93:e188a91d3eaa 5522 #define RCC_CFGR_SW_PLL ((uint32_t)0x00000002) /*!< PLL selected as system clock */
Kojto 93:e188a91d3eaa 5523
Kojto 93:e188a91d3eaa 5524 /*!< SWS configuration */
Kojto 93:e188a91d3eaa 5525 #define RCC_CFGR_SWS ((uint32_t)0x0000000C) /*!< SWS[1:0] bits (System Clock Switch Status) */
Kojto 93:e188a91d3eaa 5526 #define RCC_CFGR_SWS_0 ((uint32_t)0x00000004) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5527 #define RCC_CFGR_SWS_1 ((uint32_t)0x00000008) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5528
Kojto 93:e188a91d3eaa 5529 #define RCC_CFGR_SWS_HSI ((uint32_t)0x00000000) /*!< HSI oscillator used as system clock */
Kojto 93:e188a91d3eaa 5530 #define RCC_CFGR_SWS_HSE ((uint32_t)0x00000004) /*!< HSE oscillator used as system clock */
Kojto 93:e188a91d3eaa 5531 #define RCC_CFGR_SWS_PLL ((uint32_t)0x00000008) /*!< PLL used as system clock */
Kojto 93:e188a91d3eaa 5532
Kojto 93:e188a91d3eaa 5533 /*!< HPRE configuration */
Kojto 93:e188a91d3eaa 5534 #define RCC_CFGR_HPRE ((uint32_t)0x000000F0) /*!< HPRE[3:0] bits (AHB prescaler) */
Kojto 93:e188a91d3eaa 5535 #define RCC_CFGR_HPRE_0 ((uint32_t)0x00000010) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5536 #define RCC_CFGR_HPRE_1 ((uint32_t)0x00000020) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5537 #define RCC_CFGR_HPRE_2 ((uint32_t)0x00000040) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5538 #define RCC_CFGR_HPRE_3 ((uint32_t)0x00000080) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 5539
Kojto 93:e188a91d3eaa 5540 #define RCC_CFGR_HPRE_DIV1 ((uint32_t)0x00000000) /*!< SYSCLK not divided */
Kojto 93:e188a91d3eaa 5541 #define RCC_CFGR_HPRE_DIV2 ((uint32_t)0x00000080) /*!< SYSCLK divided by 2 */
Kojto 93:e188a91d3eaa 5542 #define RCC_CFGR_HPRE_DIV4 ((uint32_t)0x00000090) /*!< SYSCLK divided by 4 */
Kojto 93:e188a91d3eaa 5543 #define RCC_CFGR_HPRE_DIV8 ((uint32_t)0x000000A0) /*!< SYSCLK divided by 8 */
Kojto 93:e188a91d3eaa 5544 #define RCC_CFGR_HPRE_DIV16 ((uint32_t)0x000000B0) /*!< SYSCLK divided by 16 */
Kojto 93:e188a91d3eaa 5545 #define RCC_CFGR_HPRE_DIV64 ((uint32_t)0x000000C0) /*!< SYSCLK divided by 64 */
Kojto 93:e188a91d3eaa 5546 #define RCC_CFGR_HPRE_DIV128 ((uint32_t)0x000000D0) /*!< SYSCLK divided by 128 */
Kojto 93:e188a91d3eaa 5547 #define RCC_CFGR_HPRE_DIV256 ((uint32_t)0x000000E0) /*!< SYSCLK divided by 256 */
Kojto 93:e188a91d3eaa 5548 #define RCC_CFGR_HPRE_DIV512 ((uint32_t)0x000000F0) /*!< SYSCLK divided by 512 */
Kojto 93:e188a91d3eaa 5549
Kojto 93:e188a91d3eaa 5550 /*!< PPRE1 configuration */
Kojto 93:e188a91d3eaa 5551 #define RCC_CFGR_PPRE1 ((uint32_t)0x00000700) /*!< PRE1[2:0] bits (APB1 prescaler) */
Kojto 93:e188a91d3eaa 5552 #define RCC_CFGR_PPRE1_0 ((uint32_t)0x00000100) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5553 #define RCC_CFGR_PPRE1_1 ((uint32_t)0x00000200) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5554 #define RCC_CFGR_PPRE1_2 ((uint32_t)0x00000400) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5555
Kojto 93:e188a91d3eaa 5556 #define RCC_CFGR_PPRE1_DIV1 ((uint32_t)0x00000000) /*!< HCLK not divided */
Kojto 93:e188a91d3eaa 5557 #define RCC_CFGR_PPRE1_DIV2 ((uint32_t)0x00000400) /*!< HCLK divided by 2 */
Kojto 93:e188a91d3eaa 5558 #define RCC_CFGR_PPRE1_DIV4 ((uint32_t)0x00000500) /*!< HCLK divided by 4 */
Kojto 93:e188a91d3eaa 5559 #define RCC_CFGR_PPRE1_DIV8 ((uint32_t)0x00000600) /*!< HCLK divided by 8 */
Kojto 93:e188a91d3eaa 5560 #define RCC_CFGR_PPRE1_DIV16 ((uint32_t)0x00000700) /*!< HCLK divided by 16 */
Kojto 93:e188a91d3eaa 5561
Kojto 93:e188a91d3eaa 5562 /*!< PPRE2 configuration */
Kojto 93:e188a91d3eaa 5563 #define RCC_CFGR_PPRE2 ((uint32_t)0x00003800) /*!< PRE2[2:0] bits (APB2 prescaler) */
Kojto 93:e188a91d3eaa 5564 #define RCC_CFGR_PPRE2_0 ((uint32_t)0x00000800) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5565 #define RCC_CFGR_PPRE2_1 ((uint32_t)0x00001000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5566 #define RCC_CFGR_PPRE2_2 ((uint32_t)0x00002000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5567
Kojto 93:e188a91d3eaa 5568 #define RCC_CFGR_PPRE2_DIV1 ((uint32_t)0x00000000) /*!< HCLK not divided */
Kojto 93:e188a91d3eaa 5569 #define RCC_CFGR_PPRE2_DIV2 ((uint32_t)0x00002000) /*!< HCLK divided by 2 */
Kojto 93:e188a91d3eaa 5570 #define RCC_CFGR_PPRE2_DIV4 ((uint32_t)0x00002800) /*!< HCLK divided by 4 */
Kojto 93:e188a91d3eaa 5571 #define RCC_CFGR_PPRE2_DIV8 ((uint32_t)0x00003000) /*!< HCLK divided by 8 */
Kojto 93:e188a91d3eaa 5572 #define RCC_CFGR_PPRE2_DIV16 ((uint32_t)0x00003800) /*!< HCLK divided by 16 */
Kojto 93:e188a91d3eaa 5573
Kojto 93:e188a91d3eaa 5574 #define RCC_CFGR_PLLSRC ((uint32_t)0x00018000) /*!< PLL entry clock source */
Kojto 93:e188a91d3eaa 5575 #define RCC_CFGR_PLLSRC_HSI_PREDIV ((uint32_t)0x00008000) /*!< HSI/PREDIV clock as PLL entry clock source */
Kojto 93:e188a91d3eaa 5576 #define RCC_CFGR_PLLSRC_HSE_PREDIV ((uint32_t)0x00010000) /*!< HSE/PREDIV clock selected as PLL entry clock source */
Kojto 93:e188a91d3eaa 5577
Kojto 93:e188a91d3eaa 5578 #define RCC_CFGR_PLLXTPRE ((uint32_t)0x00020000) /*!< HSE divider for PLL entry */
Kojto 93:e188a91d3eaa 5579 #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV1 ((uint32_t)0x00000000) /*!< HSE/PREDIV clock not divided for PLL entry */
Kojto 93:e188a91d3eaa 5580 #define RCC_CFGR_PLLXTPRE_HSE_PREDIV_DIV2 ((uint32_t)0x00020000) /*!< HSE/PREDIV clock divided by 2 for PLL entry */
Kojto 93:e188a91d3eaa 5581
Kojto 93:e188a91d3eaa 5582 /*!< PLLMUL configuration */
Kojto 93:e188a91d3eaa 5583 #define RCC_CFGR_PLLMUL ((uint32_t)0x003C0000) /*!< PLLMUL[3:0] bits (PLL multiplication factor) */
Kojto 93:e188a91d3eaa 5584 #define RCC_CFGR_PLLMUL_0 ((uint32_t)0x00040000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5585 #define RCC_CFGR_PLLMUL_1 ((uint32_t)0x00080000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5586 #define RCC_CFGR_PLLMUL_2 ((uint32_t)0x00100000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5587 #define RCC_CFGR_PLLMUL_3 ((uint32_t)0x00200000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 5588
Kojto 93:e188a91d3eaa 5589 #define RCC_CFGR_PLLMUL2 ((uint32_t)0x00000000) /*!< PLL input clock*2 */
Kojto 93:e188a91d3eaa 5590 #define RCC_CFGR_PLLMUL3 ((uint32_t)0x00040000) /*!< PLL input clock*3 */
Kojto 93:e188a91d3eaa 5591 #define RCC_CFGR_PLLMUL4 ((uint32_t)0x00080000) /*!< PLL input clock*4 */
Kojto 93:e188a91d3eaa 5592 #define RCC_CFGR_PLLMUL5 ((uint32_t)0x000C0000) /*!< PLL input clock*5 */
Kojto 93:e188a91d3eaa 5593 #define RCC_CFGR_PLLMUL6 ((uint32_t)0x00100000) /*!< PLL input clock*6 */
Kojto 93:e188a91d3eaa 5594 #define RCC_CFGR_PLLMUL7 ((uint32_t)0x00140000) /*!< PLL input clock*7 */
Kojto 93:e188a91d3eaa 5595 #define RCC_CFGR_PLLMUL8 ((uint32_t)0x00180000) /*!< PLL input clock*8 */
Kojto 93:e188a91d3eaa 5596 #define RCC_CFGR_PLLMUL9 ((uint32_t)0x001C0000) /*!< PLL input clock*9 */
Kojto 93:e188a91d3eaa 5597 #define RCC_CFGR_PLLMUL10 ((uint32_t)0x00200000) /*!< PLL input clock10 */
Kojto 93:e188a91d3eaa 5598 #define RCC_CFGR_PLLMUL11 ((uint32_t)0x00240000) /*!< PLL input clock*11 */
Kojto 93:e188a91d3eaa 5599 #define RCC_CFGR_PLLMUL12 ((uint32_t)0x00280000) /*!< PLL input clock*12 */
Kojto 93:e188a91d3eaa 5600 #define RCC_CFGR_PLLMUL13 ((uint32_t)0x002C0000) /*!< PLL input clock*13 */
Kojto 93:e188a91d3eaa 5601 #define RCC_CFGR_PLLMUL14 ((uint32_t)0x00300000) /*!< PLL input clock*14 */
Kojto 93:e188a91d3eaa 5602 #define RCC_CFGR_PLLMUL15 ((uint32_t)0x00340000) /*!< PLL input clock*15 */
Kojto 93:e188a91d3eaa 5603 #define RCC_CFGR_PLLMUL16 ((uint32_t)0x00380000) /*!< PLL input clock*16 */
Kojto 93:e188a91d3eaa 5604
Kojto 93:e188a91d3eaa 5605 /*!< USB configuration */
Kojto 93:e188a91d3eaa 5606 #define RCC_CFGR_USBPRE ((uint32_t)0x00400000) /*!< USB prescaler */
Kojto 93:e188a91d3eaa 5607
Kojto 93:e188a91d3eaa 5608 #define RCC_CFGR_USBPRE_DIV1_5 ((uint32_t)0x00000000) /*!< USB prescaler is PLL clock divided by 1.5 */
Kojto 93:e188a91d3eaa 5609 #define RCC_CFGR_USBPRE_DIV1 ((uint32_t)0x00400000) /*!< USB prescaler is PLL clock divided by 1 */
Kojto 93:e188a91d3eaa 5610
Kojto 93:e188a91d3eaa 5611 /*!< I2S configuration */
Kojto 93:e188a91d3eaa 5612 #define RCC_CFGR_I2SSRC ((uint32_t)0x00800000) /*!< I2S external clock source selection */
Kojto 93:e188a91d3eaa 5613
Kojto 93:e188a91d3eaa 5614 #define RCC_CFGR_I2SSRC_SYSCLK ((uint32_t)0x00000000) /*!< System clock selected as I2S clock source */
Kojto 93:e188a91d3eaa 5615 #define RCC_CFGR_I2SSRC_EXT ((uint32_t)0x00800000) /*!< External clock selected as I2S clock source */
Kojto 93:e188a91d3eaa 5616
Kojto 93:e188a91d3eaa 5617 /*!< MCO configuration */
Kojto 93:e188a91d3eaa 5618 #define RCC_CFGR_MCO ((uint32_t)0x07000000) /*!< MCO[2:0] bits (Microcontroller Clock Output) */
Kojto 93:e188a91d3eaa 5619 #define RCC_CFGR_MCO_0 ((uint32_t)0x01000000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5620 #define RCC_CFGR_MCO_1 ((uint32_t)0x02000000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5621 #define RCC_CFGR_MCO_2 ((uint32_t)0x04000000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5622
Kojto 93:e188a91d3eaa 5623 #define RCC_CFGR_MCO_NOCLOCK ((uint32_t)0x00000000) /*!< No clock */
Kojto 93:e188a91d3eaa 5624 #define RCC_CFGR_MCO_LSI ((uint32_t)0x02000000) /*!< LSI clock selected as MCO source */
Kojto 93:e188a91d3eaa 5625 #define RCC_CFGR_MCO_LSE ((uint32_t)0x03000000) /*!< LSE clock selected as MCO source */
Kojto 93:e188a91d3eaa 5626 #define RCC_CFGR_MCO_SYSCLK ((uint32_t)0x04000000) /*!< System clock selected as MCO source */
Kojto 93:e188a91d3eaa 5627 #define RCC_CFGR_MCO_HSI ((uint32_t)0x05000000) /*!< HSI clock selected as MCO source */
Kojto 93:e188a91d3eaa 5628 #define RCC_CFGR_MCO_HSE ((uint32_t)0x06000000) /*!< HSE clock selected as MCO source */
Kojto 93:e188a91d3eaa 5629 #define RCC_CFGR_MCO_PLL ((uint32_t)0x07000000) /*!< PLL clock divided by 2 selected as MCO source */
Kojto 93:e188a91d3eaa 5630
Kojto 93:e188a91d3eaa 5631 #define RCC_CFGR_MCOF ((uint32_t)0x10000000) /*!< Microcontroller Clock Output Flag */
Kojto 93:e188a91d3eaa 5632
Kojto 93:e188a91d3eaa 5633 #define RCC_CFGR_MCOPRE ((uint32_t)0x70000000) /*!< MCOPRE[3:0] bits (Microcontroller Clock Output Prescaler) */
Kojto 93:e188a91d3eaa 5634 #define RCC_CFGR_MCOPRE_0 ((uint32_t)0x10000000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5635 #define RCC_CFGR_MCOPRE_1 ((uint32_t)0x20000000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5636 #define RCC_CFGR_MCOPRE_2 ((uint32_t)0x40000000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5637
Kojto 93:e188a91d3eaa 5638 #define RCC_CFGR_PLLNODIV ((uint32_t)0x80000000) /*!< PLL is not divided to MCO */
Kojto 93:e188a91d3eaa 5639
Kojto 93:e188a91d3eaa 5640 /********************* Bit definition for RCC_CIR register ********************/
Kojto 93:e188a91d3eaa 5641 #define RCC_CIR_LSIRDYF ((uint32_t)0x00000001) /*!< LSI Ready Interrupt flag */
Kojto 93:e188a91d3eaa 5642 #define RCC_CIR_LSERDYF ((uint32_t)0x00000002) /*!< LSE Ready Interrupt flag */
Kojto 93:e188a91d3eaa 5643 #define RCC_CIR_HSIRDYF ((uint32_t)0x00000004) /*!< HSI Ready Interrupt flag */
Kojto 93:e188a91d3eaa 5644 #define RCC_CIR_HSERDYF ((uint32_t)0x00000008) /*!< HSE Ready Interrupt flag */
Kojto 93:e188a91d3eaa 5645 #define RCC_CIR_PLLRDYF ((uint32_t)0x00000010) /*!< PLL Ready Interrupt flag */
Kojto 93:e188a91d3eaa 5646 #define RCC_CIR_CSSF ((uint32_t)0x00000080) /*!< Clock Security System Interrupt flag */
Kojto 93:e188a91d3eaa 5647 #define RCC_CIR_LSIRDYIE ((uint32_t)0x00000100) /*!< LSI Ready Interrupt Enable */
Kojto 93:e188a91d3eaa 5648 #define RCC_CIR_LSERDYIE ((uint32_t)0x00000200) /*!< LSE Ready Interrupt Enable */
Kojto 93:e188a91d3eaa 5649 #define RCC_CIR_HSIRDYIE ((uint32_t)0x00000400) /*!< HSI Ready Interrupt Enable */
Kojto 93:e188a91d3eaa 5650 #define RCC_CIR_HSERDYIE ((uint32_t)0x00000800) /*!< HSE Ready Interrupt Enable */
Kojto 93:e188a91d3eaa 5651 #define RCC_CIR_PLLRDYIE ((uint32_t)0x00001000) /*!< PLL Ready Interrupt Enable */
Kojto 93:e188a91d3eaa 5652 #define RCC_CIR_LSIRDYC ((uint32_t)0x00010000) /*!< LSI Ready Interrupt Clear */
Kojto 93:e188a91d3eaa 5653 #define RCC_CIR_LSERDYC ((uint32_t)0x00020000) /*!< LSE Ready Interrupt Clear */
Kojto 93:e188a91d3eaa 5654 #define RCC_CIR_HSIRDYC ((uint32_t)0x00040000) /*!< HSI Ready Interrupt Clear */
Kojto 93:e188a91d3eaa 5655 #define RCC_CIR_HSERDYC ((uint32_t)0x00080000) /*!< HSE Ready Interrupt Clear */
Kojto 93:e188a91d3eaa 5656 #define RCC_CIR_PLLRDYC ((uint32_t)0x00100000) /*!< PLL Ready Interrupt Clear */
Kojto 93:e188a91d3eaa 5657 #define RCC_CIR_CSSC ((uint32_t)0x00800000) /*!< Clock Security System Interrupt Clear */
Kojto 93:e188a91d3eaa 5658
Kojto 93:e188a91d3eaa 5659 /****************** Bit definition for RCC_APB2RSTR register *****************/
Kojto 93:e188a91d3eaa 5660 #define RCC_APB2RSTR_SYSCFGRST ((uint32_t)0x00000001) /*!< SYSCFG reset */
Kojto 93:e188a91d3eaa 5661 #define RCC_APB2RSTR_TIM1RST ((uint32_t)0x00000800) /*!< TIM1 reset */
Kojto 93:e188a91d3eaa 5662 #define RCC_APB2RSTR_SPI1RST ((uint32_t)0x00001000) /*!< SPI1 reset */
Kojto 93:e188a91d3eaa 5663 #define RCC_APB2RSTR_TIM8RST ((uint32_t)0x00002000) /*!< TIM8 reset */
Kojto 93:e188a91d3eaa 5664 #define RCC_APB2RSTR_USART1RST ((uint32_t)0x00004000) /*!< USART1 reset */
Kojto 93:e188a91d3eaa 5665 #define RCC_APB2RSTR_SPI4RST ((uint32_t)0x00008000) /*!< SPI4 reset */
Kojto 93:e188a91d3eaa 5666 #define RCC_APB2RSTR_TIM15RST ((uint32_t)0x00010000) /*!< TIM15 reset */
Kojto 93:e188a91d3eaa 5667 #define RCC_APB2RSTR_TIM16RST ((uint32_t)0x00020000) /*!< TIM16 reset */
Kojto 93:e188a91d3eaa 5668 #define RCC_APB2RSTR_TIM17RST ((uint32_t)0x00040000) /*!< TIM17 reset */
Kojto 93:e188a91d3eaa 5669 #define RCC_APB2RSTR_TIM20RST ((uint32_t)0x00100000) /*!< TIM20 reset */
Kojto 93:e188a91d3eaa 5670
Kojto 93:e188a91d3eaa 5671 /****************** Bit definition for RCC_APB1RSTR register ******************/
Kojto 93:e188a91d3eaa 5672 #define RCC_APB1RSTR_TIM2RST ((uint32_t)0x00000001) /*!< Timer 2 reset */
Kojto 93:e188a91d3eaa 5673 #define RCC_APB1RSTR_TIM3RST ((uint32_t)0x00000002) /*!< Timer 3 reset */
Kojto 93:e188a91d3eaa 5674 #define RCC_APB1RSTR_TIM4RST ((uint32_t)0x00000004) /*!< Timer 4 reset */
Kojto 93:e188a91d3eaa 5675 #define RCC_APB1RSTR_TIM6RST ((uint32_t)0x00000010) /*!< Timer 6 reset */
Kojto 93:e188a91d3eaa 5676 #define RCC_APB1RSTR_TIM7RST ((uint32_t)0x00000020) /*!< Timer 7 reset */
Kojto 93:e188a91d3eaa 5677 #define RCC_APB1RSTR_WWDGRST ((uint32_t)0x00000800) /*!< Window Watchdog reset */
Kojto 93:e188a91d3eaa 5678 #define RCC_APB1RSTR_SPI2RST ((uint32_t)0x00004000) /*!< SPI2 reset */
Kojto 93:e188a91d3eaa 5679 #define RCC_APB1RSTR_SPI3RST ((uint32_t)0x00008000) /*!< SPI3 reset */
Kojto 93:e188a91d3eaa 5680 #define RCC_APB1RSTR_USART2RST ((uint32_t)0x00020000) /*!< USART 2 reset */
Kojto 93:e188a91d3eaa 5681 #define RCC_APB1RSTR_USART3RST ((uint32_t)0x00040000) /*!< USART 3 reset */
Kojto 93:e188a91d3eaa 5682 #define RCC_APB1RSTR_UART4RST ((uint32_t)0x00080000) /*!< UART 4 reset */
Kojto 93:e188a91d3eaa 5683 #define RCC_APB1RSTR_UART5RST ((uint32_t)0x00100000) /*!< UART 5 reset */
Kojto 93:e188a91d3eaa 5684 #define RCC_APB1RSTR_I2C1RST ((uint32_t)0x00200000) /*!< I2C 1 reset */
Kojto 93:e188a91d3eaa 5685 #define RCC_APB1RSTR_I2C2RST ((uint32_t)0x00400000) /*!< I2C 2 reset */
Kojto 93:e188a91d3eaa 5686 #define RCC_APB1RSTR_USBRST ((uint32_t)0x00800000) /*!< USB reset */
Kojto 93:e188a91d3eaa 5687 #define RCC_APB1RSTR_CANRST ((uint32_t)0x02000000) /*!< CAN reset */
Kojto 93:e188a91d3eaa 5688 #define RCC_APB1RSTR_PWRRST ((uint32_t)0x10000000) /*!< PWR reset */
Kojto 93:e188a91d3eaa 5689 #define RCC_APB1RSTR_DAC1RST ((uint32_t)0x20000000) /*!< DAC 1 reset */
Kojto 93:e188a91d3eaa 5690 #define RCC_APB1RSTR_I2C3RST ((uint32_t)0x40000000) /*!< I2C 3 reset */
Kojto 93:e188a91d3eaa 5691
Kojto 93:e188a91d3eaa 5692 /****************** Bit definition for RCC_AHBENR register ******************/
Kojto 93:e188a91d3eaa 5693 #define RCC_AHBENR_DMA1EN ((uint32_t)0x00000001) /*!< DMA1 clock enable */
Kojto 93:e188a91d3eaa 5694 #define RCC_AHBENR_DMA2EN ((uint32_t)0x00000002) /*!< DMA2 clock enable */
Kojto 93:e188a91d3eaa 5695 #define RCC_AHBENR_SRAMEN ((uint32_t)0x00000004) /*!< SRAM interface clock enable */
Kojto 93:e188a91d3eaa 5696 #define RCC_AHBENR_FLITFEN ((uint32_t)0x00000010) /*!< FLITF clock enable */
Kojto 93:e188a91d3eaa 5697 #define RCC_AHBENR_FMCEN ((uint32_t)0x00000020) /*!< FMC clock enable */
Kojto 93:e188a91d3eaa 5698 #define RCC_AHBENR_CRCEN ((uint32_t)0x00000040) /*!< CRC clock enable */
Kojto 93:e188a91d3eaa 5699 #define RCC_AHBENR_GPIOHEN ((uint32_t)0x00010000) /*!< GPIOH clock enable */
Kojto 93:e188a91d3eaa 5700 #define RCC_AHBENR_GPIOAEN ((uint32_t)0x00020000) /*!< GPIOA clock enable */
Kojto 93:e188a91d3eaa 5701 #define RCC_AHBENR_GPIOBEN ((uint32_t)0x00040000) /*!< GPIOB clock enable */
Kojto 93:e188a91d3eaa 5702 #define RCC_AHBENR_GPIOCEN ((uint32_t)0x00080000) /*!< GPIOC clock enable */
Kojto 93:e188a91d3eaa 5703 #define RCC_AHBENR_GPIODEN ((uint32_t)0x00100000) /*!< GPIOD clock enable */
Kojto 93:e188a91d3eaa 5704 #define RCC_AHBENR_GPIOEEN ((uint32_t)0x00200000) /*!< GPIOE clock enable */
Kojto 93:e188a91d3eaa 5705 #define RCC_AHBENR_GPIOFEN ((uint32_t)0x00400000) /*!< GPIOF clock enable */
Kojto 93:e188a91d3eaa 5706 #define RCC_AHBENR_GPIOGEN ((uint32_t)0x00800000) /*!< GPIOG clock enable */
Kojto 93:e188a91d3eaa 5707 #define RCC_AHBENR_TSCEN ((uint32_t)0x01000000) /*!< TS clock enable */
Kojto 93:e188a91d3eaa 5708 #define RCC_AHBENR_ADC12EN ((uint32_t)0x10000000) /*!< ADC1/ ADC2 clock enable */
Kojto 93:e188a91d3eaa 5709 #define RCC_AHBENR_ADC34EN ((uint32_t)0x20000000) /*!< ADC3/ ADC4 clock enable */
Kojto 93:e188a91d3eaa 5710
Kojto 93:e188a91d3eaa 5711 /***************** Bit definition for RCC_APB2ENR register ******************/
Kojto 93:e188a91d3eaa 5712 #define RCC_APB2ENR_SYSCFGEN ((uint32_t)0x00000001) /*!< SYSCFG clock enable */
Kojto 93:e188a91d3eaa 5713 #define RCC_APB2ENR_TIM1EN ((uint32_t)0x00000800) /*!< TIM1 clock enable */
Kojto 93:e188a91d3eaa 5714 #define RCC_APB2ENR_SPI1EN ((uint32_t)0x00001000) /*!< SPI1 clock enable */
Kojto 93:e188a91d3eaa 5715 #define RCC_APB2ENR_TIM8EN ((uint32_t)0x00002000) /*!< TIM8 clock enable */
Kojto 93:e188a91d3eaa 5716 #define RCC_APB2ENR_USART1EN ((uint32_t)0x00004000) /*!< USART1 clock enable */
Kojto 93:e188a91d3eaa 5717 #define RCC_APB2ENR_SPI4EN ((uint32_t)0x00008000) /*!< SPI4 clock enable */
Kojto 93:e188a91d3eaa 5718 #define RCC_APB2ENR_TIM15EN ((uint32_t)0x00010000) /*!< TIM15 clock enable */
Kojto 93:e188a91d3eaa 5719 #define RCC_APB2ENR_TIM16EN ((uint32_t)0x00020000) /*!< TIM16 clock enable */
Kojto 93:e188a91d3eaa 5720 #define RCC_APB2ENR_TIM17EN ((uint32_t)0x00040000) /*!< TIM17 clock enable */
Kojto 93:e188a91d3eaa 5721 #define RCC_APB2ENR_TIM20EN ((uint32_t)0x00100000) /*!< TIM20 clock enable */
Kojto 93:e188a91d3eaa 5722
Kojto 93:e188a91d3eaa 5723 /****************** Bit definition for RCC_APB1ENR register ******************/
Kojto 93:e188a91d3eaa 5724 #define RCC_APB1ENR_TIM2EN ((uint32_t)0x00000001) /*!< Timer 2 clock enable */
Kojto 93:e188a91d3eaa 5725 #define RCC_APB1ENR_TIM3EN ((uint32_t)0x00000002) /*!< Timer 3 clock enable */
Kojto 93:e188a91d3eaa 5726 #define RCC_APB1ENR_TIM4EN ((uint32_t)0x00000004) /*!< Timer 4 clock enable */
Kojto 93:e188a91d3eaa 5727 #define RCC_APB1ENR_TIM6EN ((uint32_t)0x00000010) /*!< Timer 6 clock enable */
Kojto 93:e188a91d3eaa 5728 #define RCC_APB1ENR_TIM7EN ((uint32_t)0x00000020) /*!< Timer 7 clock enable */
Kojto 93:e188a91d3eaa 5729 #define RCC_APB1ENR_WWDGEN ((uint32_t)0x00000800) /*!< Window Watchdog clock enable */
Kojto 93:e188a91d3eaa 5730 #define RCC_APB1ENR_SPI2EN ((uint32_t)0x00004000) /*!< SPI2 clock enable */
Kojto 93:e188a91d3eaa 5731 #define RCC_APB1ENR_SPI3EN ((uint32_t)0x00008000) /*!< SPI3 clock enable */
Kojto 93:e188a91d3eaa 5732 #define RCC_APB1ENR_USART2EN ((uint32_t)0x00020000) /*!< USART 2 clock enable */
Kojto 93:e188a91d3eaa 5733 #define RCC_APB1ENR_USART3EN ((uint32_t)0x00040000) /*!< USART 3 clock enable */
Kojto 93:e188a91d3eaa 5734 #define RCC_APB1ENR_UART4EN ((uint32_t)0x00080000) /*!< UART 4 clock enable */
Kojto 93:e188a91d3eaa 5735 #define RCC_APB1ENR_UART5EN ((uint32_t)0x00100000) /*!< UART 5 clock enable */
Kojto 93:e188a91d3eaa 5736 #define RCC_APB1ENR_I2C1EN ((uint32_t)0x00200000) /*!< I2C 1 clock enable */
Kojto 93:e188a91d3eaa 5737 #define RCC_APB1ENR_I2C2EN ((uint32_t)0x00400000) /*!< I2C 2 clock enable */
Kojto 93:e188a91d3eaa 5738 #define RCC_APB1ENR_USBEN ((uint32_t)0x00800000) /*!< USB clock enable */
Kojto 93:e188a91d3eaa 5739 #define RCC_APB1ENR_CANEN ((uint32_t)0x02000000) /*!< CAN clock enable */
Kojto 93:e188a91d3eaa 5740 #define RCC_APB1ENR_PWREN ((uint32_t)0x10000000) /*!< PWR clock enable */
Kojto 93:e188a91d3eaa 5741 #define RCC_APB1ENR_DAC1EN ((uint32_t)0x20000000) /*!< DAC 1 clock enable */
Kojto 93:e188a91d3eaa 5742 #define RCC_APB1ENR_I2C3EN ((uint32_t)0x40000000) /*!< I2C 3 clock enable */
Kojto 93:e188a91d3eaa 5743
Kojto 93:e188a91d3eaa 5744 /******************** Bit definition for RCC_BDCR register ******************/
Kojto 93:e188a91d3eaa 5745 #define RCC_BDCR_LSE ((uint32_t)0x00000007) /*!< External Low Speed oscillator [2:0] bits */
Kojto 93:e188a91d3eaa 5746 #define RCC_BDCR_LSEON ((uint32_t)0x00000001) /*!< External Low Speed oscillator enable */
Kojto 93:e188a91d3eaa 5747 #define RCC_BDCR_LSERDY ((uint32_t)0x00000002) /*!< External Low Speed oscillator Ready */
Kojto 93:e188a91d3eaa 5748 #define RCC_BDCR_LSEBYP ((uint32_t)0x00000004) /*!< External Low Speed oscillator Bypass */
Kojto 93:e188a91d3eaa 5749
Kojto 93:e188a91d3eaa 5750 #define RCC_BDCR_LSEDRV ((uint32_t)0x00000018) /*!< LSEDRV[1:0] bits (LSE Osc. drive capability) */
Kojto 93:e188a91d3eaa 5751 #define RCC_BDCR_LSEDRV_0 ((uint32_t)0x00000008) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5752 #define RCC_BDCR_LSEDRV_1 ((uint32_t)0x00000010) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5753
Kojto 93:e188a91d3eaa 5754 #define RCC_BDCR_RTCSEL ((uint32_t)0x00000300) /*!< RTCSEL[1:0] bits (RTC clock source selection) */
Kojto 93:e188a91d3eaa 5755 #define RCC_BDCR_RTCSEL_0 ((uint32_t)0x00000100) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5756 #define RCC_BDCR_RTCSEL_1 ((uint32_t)0x00000200) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5757
Kojto 93:e188a91d3eaa 5758 /*!< RTC configuration */
Kojto 93:e188a91d3eaa 5759 #define RCC_BDCR_RTCSEL_NOCLOCK ((uint32_t)0x00000000) /*!< No clock */
Kojto 93:e188a91d3eaa 5760 #define RCC_BDCR_RTCSEL_LSE ((uint32_t)0x00000100) /*!< LSE oscillator clock used as RTC clock */
Kojto 93:e188a91d3eaa 5761 #define RCC_BDCR_RTCSEL_LSI ((uint32_t)0x00000200) /*!< LSI oscillator clock used as RTC clock */
Kojto 93:e188a91d3eaa 5762 #define RCC_BDCR_RTCSEL_HSE ((uint32_t)0x00000300) /*!< HSE oscillator clock divided by 32 used as RTC clock */
Kojto 93:e188a91d3eaa 5763
Kojto 93:e188a91d3eaa 5764 #define RCC_BDCR_RTCEN ((uint32_t)0x00008000) /*!< RTC clock enable */
Kojto 93:e188a91d3eaa 5765 #define RCC_BDCR_BDRST ((uint32_t)0x00010000) /*!< Backup domain software reset */
Kojto 93:e188a91d3eaa 5766
Kojto 93:e188a91d3eaa 5767 /******************** Bit definition for RCC_CSR register *******************/
Kojto 93:e188a91d3eaa 5768 #define RCC_CSR_LSION ((uint32_t)0x00000001) /*!< Internal Low Speed oscillator enable */
Kojto 93:e188a91d3eaa 5769 #define RCC_CSR_LSIRDY ((uint32_t)0x00000002) /*!< Internal Low Speed oscillator Ready */
Kojto 93:e188a91d3eaa 5770 #define RCC_CSR_RMVF ((uint32_t)0x01000000) /*!< Remove reset flag */
Kojto 93:e188a91d3eaa 5771 #define RCC_CSR_OBLRSTF ((uint32_t)0x02000000) /*!< OBL reset flag */
Kojto 93:e188a91d3eaa 5772 #define RCC_CSR_PINRSTF ((uint32_t)0x04000000) /*!< PIN reset flag */
Kojto 93:e188a91d3eaa 5773 #define RCC_CSR_PORRSTF ((uint32_t)0x08000000) /*!< POR/PDR reset flag */
Kojto 93:e188a91d3eaa 5774 #define RCC_CSR_SFTRSTF ((uint32_t)0x10000000) /*!< Software Reset flag */
Kojto 93:e188a91d3eaa 5775 #define RCC_CSR_IWDGRSTF ((uint32_t)0x20000000) /*!< Independent Watchdog reset flag */
Kojto 93:e188a91d3eaa 5776 #define RCC_CSR_WWDGRSTF ((uint32_t)0x40000000) /*!< Window watchdog reset flag */
Kojto 93:e188a91d3eaa 5777 #define RCC_CSR_LPWRRSTF ((uint32_t)0x80000000) /*!< Low-Power reset flag */
Kojto 93:e188a91d3eaa 5778
Kojto 93:e188a91d3eaa 5779 /******************* Bit definition for RCC_AHBRSTR register ****************/
Kojto 93:e188a91d3eaa 5780 #define RCC_AHBRSTR_FMCRST ((uint32_t)0x00000020) /*!< FMC reset */
Kojto 93:e188a91d3eaa 5781 #define RCC_AHBRSTR_GPIOHRST ((uint32_t)0x00010000) /*!< GPIOH reset */
Kojto 93:e188a91d3eaa 5782 #define RCC_AHBRSTR_GPIOARST ((uint32_t)0x00020000) /*!< GPIOA reset */
Kojto 93:e188a91d3eaa 5783 #define RCC_AHBRSTR_GPIOBRST ((uint32_t)0x00040000) /*!< GPIOB reset */
Kojto 93:e188a91d3eaa 5784 #define RCC_AHBRSTR_GPIOCRST ((uint32_t)0x00080000) /*!< GPIOC reset */
Kojto 93:e188a91d3eaa 5785 #define RCC_AHBRSTR_GPIODRST ((uint32_t)0x00100000) /*!< GPIOD reset */
Kojto 93:e188a91d3eaa 5786 #define RCC_AHBRSTR_GPIOERST ((uint32_t)0x00200000) /*!< GPIOE reset */
Kojto 93:e188a91d3eaa 5787 #define RCC_AHBRSTR_GPIOFRST ((uint32_t)0x00400000) /*!< GPIOF reset */
Kojto 93:e188a91d3eaa 5788 #define RCC_AHBRSTR_GPIOGRST ((uint32_t)0x00800000) /*!< GPIOG reset */
Kojto 93:e188a91d3eaa 5789 #define RCC_AHBRSTR_TSCRST ((uint32_t)0x01000000) /*!< TSC reset */
Kojto 93:e188a91d3eaa 5790 #define RCC_AHBRSTR_ADC12RST ((uint32_t)0x10000000) /*!< ADC1 & ADC2 reset */
Kojto 93:e188a91d3eaa 5791 #define RCC_AHBRSTR_ADC34RST ((uint32_t)0x20000000) /*!< ADC3 & ADC4 reset */
Kojto 93:e188a91d3eaa 5792
Kojto 93:e188a91d3eaa 5793 /******************* Bit definition for RCC_CFGR2 register ******************/
Kojto 93:e188a91d3eaa 5794 /*!< PREDIV configuration */
Kojto 93:e188a91d3eaa 5795 #define RCC_CFGR2_PREDIV ((uint32_t)0x0000000F) /*!< PREDIV[3:0] bits */
Kojto 93:e188a91d3eaa 5796 #define RCC_CFGR2_PREDIV_0 ((uint32_t)0x00000001) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5797 #define RCC_CFGR2_PREDIV_1 ((uint32_t)0x00000002) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5798 #define RCC_CFGR2_PREDIV_2 ((uint32_t)0x00000004) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5799 #define RCC_CFGR2_PREDIV_3 ((uint32_t)0x00000008) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 5800
Kojto 93:e188a91d3eaa 5801 #define RCC_CFGR2_PREDIV_DIV1 ((uint32_t)0x00000000) /*!< PREDIV input clock not divided */
Kojto 93:e188a91d3eaa 5802 #define RCC_CFGR2_PREDIV_DIV2 ((uint32_t)0x00000001) /*!< PREDIV input clock divided by 2 */
Kojto 93:e188a91d3eaa 5803 #define RCC_CFGR2_PREDIV_DIV3 ((uint32_t)0x00000002) /*!< PREDIV input clock divided by 3 */
Kojto 93:e188a91d3eaa 5804 #define RCC_CFGR2_PREDIV_DIV4 ((uint32_t)0x00000003) /*!< PREDIV input clock divided by 4 */
Kojto 93:e188a91d3eaa 5805 #define RCC_CFGR2_PREDIV_DIV5 ((uint32_t)0x00000004) /*!< PREDIV input clock divided by 5 */
Kojto 93:e188a91d3eaa 5806 #define RCC_CFGR2_PREDIV_DIV6 ((uint32_t)0x00000005) /*!< PREDIV input clock divided by 6 */
Kojto 93:e188a91d3eaa 5807 #define RCC_CFGR2_PREDIV_DIV7 ((uint32_t)0x00000006) /*!< PREDIV input clock divided by 7 */
Kojto 93:e188a91d3eaa 5808 #define RCC_CFGR2_PREDIV_DIV8 ((uint32_t)0x00000007) /*!< PREDIV input clock divided by 8 */
Kojto 93:e188a91d3eaa 5809 #define RCC_CFGR2_PREDIV_DIV9 ((uint32_t)0x00000008) /*!< PREDIV input clock divided by 9 */
Kojto 93:e188a91d3eaa 5810 #define RCC_CFGR2_PREDIV_DIV10 ((uint32_t)0x00000009) /*!< PREDIV input clock divided by 10 */
Kojto 93:e188a91d3eaa 5811 #define RCC_CFGR2_PREDIV_DIV11 ((uint32_t)0x0000000A) /*!< PREDIV input clock divided by 11 */
Kojto 93:e188a91d3eaa 5812 #define RCC_CFGR2_PREDIV_DIV12 ((uint32_t)0x0000000B) /*!< PREDIV input clock divided by 12 */
Kojto 93:e188a91d3eaa 5813 #define RCC_CFGR2_PREDIV_DIV13 ((uint32_t)0x0000000C) /*!< PREDIV input clock divided by 13 */
Kojto 93:e188a91d3eaa 5814 #define RCC_CFGR2_PREDIV_DIV14 ((uint32_t)0x0000000D) /*!< PREDIV input clock divided by 14 */
Kojto 93:e188a91d3eaa 5815 #define RCC_CFGR2_PREDIV_DIV15 ((uint32_t)0x0000000E) /*!< PREDIV input clock divided by 15 */
Kojto 93:e188a91d3eaa 5816 #define RCC_CFGR2_PREDIV_DIV16 ((uint32_t)0x0000000F) /*!< PREDIV input clock divided by 16 */
Kojto 93:e188a91d3eaa 5817
Kojto 93:e188a91d3eaa 5818 /*!< ADCPRE12 configuration */
Kojto 93:e188a91d3eaa 5819 #define RCC_CFGR2_ADCPRE12 ((uint32_t)0x000001F0) /*!< ADCPRE12[8:4] bits */
Kojto 93:e188a91d3eaa 5820 #define RCC_CFGR2_ADCPRE12_0 ((uint32_t)0x00000010) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5821 #define RCC_CFGR2_ADCPRE12_1 ((uint32_t)0x00000020) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5822 #define RCC_CFGR2_ADCPRE12_2 ((uint32_t)0x00000040) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5823 #define RCC_CFGR2_ADCPRE12_3 ((uint32_t)0x00000080) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 5824 #define RCC_CFGR2_ADCPRE12_4 ((uint32_t)0x00000100) /*!< Bit 4 */
Kojto 93:e188a91d3eaa 5825
Kojto 93:e188a91d3eaa 5826 #define RCC_CFGR2_ADCPRE12_NO ((uint32_t)0x00000000) /*!< ADC12 clock disabled, ADC12 can use AHB clock */
Kojto 93:e188a91d3eaa 5827 #define RCC_CFGR2_ADCPRE12_DIV1 ((uint32_t)0x00000100) /*!< ADC12 PLL clock divided by 1 */
Kojto 93:e188a91d3eaa 5828 #define RCC_CFGR2_ADCPRE12_DIV2 ((uint32_t)0x00000110) /*!< ADC12 PLL clock divided by 2 */
Kojto 93:e188a91d3eaa 5829 #define RCC_CFGR2_ADCPRE12_DIV4 ((uint32_t)0x00000120) /*!< ADC12 PLL clock divided by 4 */
Kojto 93:e188a91d3eaa 5830 #define RCC_CFGR2_ADCPRE12_DIV6 ((uint32_t)0x00000130) /*!< ADC12 PLL clock divided by 6 */
Kojto 93:e188a91d3eaa 5831 #define RCC_CFGR2_ADCPRE12_DIV8 ((uint32_t)0x00000140) /*!< ADC12 PLL clock divided by 8 */
Kojto 93:e188a91d3eaa 5832 #define RCC_CFGR2_ADCPRE12_DIV10 ((uint32_t)0x00000150) /*!< ADC12 PLL clock divided by 10 */
Kojto 93:e188a91d3eaa 5833 #define RCC_CFGR2_ADCPRE12_DIV12 ((uint32_t)0x00000160) /*!< ADC12 PLL clock divided by 12 */
Kojto 93:e188a91d3eaa 5834 #define RCC_CFGR2_ADCPRE12_DIV16 ((uint32_t)0x00000170) /*!< ADC12 PLL clock divided by 16 */
Kojto 93:e188a91d3eaa 5835 #define RCC_CFGR2_ADCPRE12_DIV32 ((uint32_t)0x00000180) /*!< ADC12 PLL clock divided by 32 */
Kojto 93:e188a91d3eaa 5836 #define RCC_CFGR2_ADCPRE12_DIV64 ((uint32_t)0x00000190) /*!< ADC12 PLL clock divided by 64 */
Kojto 93:e188a91d3eaa 5837 #define RCC_CFGR2_ADCPRE12_DIV128 ((uint32_t)0x000001A0) /*!< ADC12 PLL clock divided by 128 */
Kojto 93:e188a91d3eaa 5838 #define RCC_CFGR2_ADCPRE12_DIV256 ((uint32_t)0x000001B0) /*!< ADC12 PLL clock divided by 256 */
Kojto 93:e188a91d3eaa 5839
Kojto 93:e188a91d3eaa 5840 /*!< ADCPRE34 configuration */
Kojto 93:e188a91d3eaa 5841 #define RCC_CFGR2_ADCPRE34 ((uint32_t)0x00003E00) /*!< ADCPRE34[13:5] bits */
Kojto 93:e188a91d3eaa 5842 #define RCC_CFGR2_ADCPRE34_0 ((uint32_t)0x00000200) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5843 #define RCC_CFGR2_ADCPRE34_1 ((uint32_t)0x00000400) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5844 #define RCC_CFGR2_ADCPRE34_2 ((uint32_t)0x00000800) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 5845 #define RCC_CFGR2_ADCPRE34_3 ((uint32_t)0x00001000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 5846 #define RCC_CFGR2_ADCPRE34_4 ((uint32_t)0x00002000) /*!< Bit 4 */
Kojto 93:e188a91d3eaa 5847
Kojto 93:e188a91d3eaa 5848 #define RCC_CFGR2_ADCPRE34_NO ((uint32_t)0x00000000) /*!< ADC34 clock disabled, ADC34 can use AHB clock */
Kojto 93:e188a91d3eaa 5849 #define RCC_CFGR2_ADCPRE34_DIV1 ((uint32_t)0x00002000) /*!< ADC34 PLL clock divided by 1 */
Kojto 93:e188a91d3eaa 5850 #define RCC_CFGR2_ADCPRE34_DIV2 ((uint32_t)0x00002200) /*!< ADC34 PLL clock divided by 2 */
Kojto 93:e188a91d3eaa 5851 #define RCC_CFGR2_ADCPRE34_DIV4 ((uint32_t)0x00002400) /*!< ADC34 PLL clock divided by 4 */
Kojto 93:e188a91d3eaa 5852 #define RCC_CFGR2_ADCPRE34_DIV6 ((uint32_t)0x00002600) /*!< ADC34 PLL clock divided by 6 */
Kojto 93:e188a91d3eaa 5853 #define RCC_CFGR2_ADCPRE34_DIV8 ((uint32_t)0x00002800) /*!< ADC34 PLL clock divided by 8 */
Kojto 93:e188a91d3eaa 5854 #define RCC_CFGR2_ADCPRE34_DIV10 ((uint32_t)0x00002A00) /*!< ADC34 PLL clock divided by 10 */
Kojto 93:e188a91d3eaa 5855 #define RCC_CFGR2_ADCPRE34_DIV12 ((uint32_t)0x00002C00) /*!< ADC34 PLL clock divided by 12 */
Kojto 93:e188a91d3eaa 5856 #define RCC_CFGR2_ADCPRE34_DIV16 ((uint32_t)0x00002E00) /*!< ADC34 PLL clock divided by 16 */
Kojto 93:e188a91d3eaa 5857 #define RCC_CFGR2_ADCPRE34_DIV32 ((uint32_t)0x00003000) /*!< ADC34 PLL clock divided by 32 */
Kojto 93:e188a91d3eaa 5858 #define RCC_CFGR2_ADCPRE34_DIV64 ((uint32_t)0x00003200) /*!< ADC34 PLL clock divided by 64 */
Kojto 93:e188a91d3eaa 5859 #define RCC_CFGR2_ADCPRE34_DIV128 ((uint32_t)0x00003400) /*!< ADC34 PLL clock divided by 128 */
Kojto 93:e188a91d3eaa 5860 #define RCC_CFGR2_ADCPRE34_DIV256 ((uint32_t)0x00003600) /*!< ADC34 PLL clock divided by 256 */
Kojto 93:e188a91d3eaa 5861
Kojto 93:e188a91d3eaa 5862 /******************* Bit definition for RCC_CFGR3 register ******************/
Kojto 93:e188a91d3eaa 5863 #define RCC_CFGR3_USART1SW ((uint32_t)0x00000003) /*!< USART1SW[1:0] bits */
Kojto 93:e188a91d3eaa 5864 #define RCC_CFGR3_USART1SW_0 ((uint32_t)0x00000001) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5865 #define RCC_CFGR3_USART1SW_1 ((uint32_t)0x00000002) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5866
Kojto 93:e188a91d3eaa 5867 #define RCC_CFGR3_USART1SW_PCLK ((uint32_t)0x00000000) /*!< PCLK1 clock used as USART1 clock source */
Kojto 93:e188a91d3eaa 5868 #define RCC_CFGR3_USART1SW_SYSCLK ((uint32_t)0x00000001) /*!< System clock selected as USART1 clock source */
Kojto 93:e188a91d3eaa 5869 #define RCC_CFGR3_USART1SW_LSE ((uint32_t)0x00000002) /*!< LSE oscillator clock used as USART1 clock source */
Kojto 93:e188a91d3eaa 5870 #define RCC_CFGR3_USART1SW_HSI ((uint32_t)0x00000003) /*!< HSI oscillator clock used as USART1 clock source */
Kojto 93:e188a91d3eaa 5871
Kojto 93:e188a91d3eaa 5872 #define RCC_CFGR3_I2CSW ((uint32_t)0x00000070) /*!< I2CSW bits */
Kojto 93:e188a91d3eaa 5873 #define RCC_CFGR3_I2C1SW ((uint32_t)0x00000010) /*!< I2C1SW bits */
Kojto 93:e188a91d3eaa 5874 #define RCC_CFGR3_I2C2SW ((uint32_t)0x00000020) /*!< I2C2SW bits */
Kojto 93:e188a91d3eaa 5875 #define RCC_CFGR3_I2C3SW ((uint32_t)0x00000040) /*!< I2C3SW bits */
Kojto 93:e188a91d3eaa 5876
Kojto 93:e188a91d3eaa 5877 #define RCC_CFGR3_I2C1SW_HSI ((uint32_t)0x00000000) /*!< HSI oscillator clock used as I2C1 clock source */
Kojto 93:e188a91d3eaa 5878 #define RCC_CFGR3_I2C1SW_SYSCLK ((uint32_t)0x00000010) /*!< System clock selected as I2C1 clock source */
Kojto 93:e188a91d3eaa 5879 #define RCC_CFGR3_I2C2SW_HSI ((uint32_t)0x00000000) /*!< HSI oscillator clock used as I2C2 clock source */
Kojto 93:e188a91d3eaa 5880 #define RCC_CFGR3_I2C2SW_SYSCLK ((uint32_t)0x00000020) /*!< System clock selected as I2C2 clock source */
Kojto 93:e188a91d3eaa 5881 #define RCC_CFGR3_I2C3SW_HSI ((uint32_t)0x00000000) /*!< HSI oscillator clock used as I2C3 clock source */
Kojto 93:e188a91d3eaa 5882 #define RCC_CFGR3_I2C3SW_SYSCLK ((uint32_t)0x00000040) /*!< System clock selected as I2C3 clock source */
Kojto 93:e188a91d3eaa 5883
Kojto 93:e188a91d3eaa 5884 #define RCC_CFGR3_TIMSW ((uint32_t)0x0000AF00) /*!< TIMSW bits */
Kojto 93:e188a91d3eaa 5885 #define RCC_CFGR3_TIM1SW ((uint32_t)0x00000100) /*!< TIM1SW bits */
Kojto 93:e188a91d3eaa 5886 #define RCC_CFGR3_TIM8SW ((uint32_t)0x00000200) /*!< TIM8SW bits */
Kojto 93:e188a91d3eaa 5887 #define RCC_CFGR3_TIM15SW ((uint32_t)0x00000400) /*!< TIM15SW bits */
Kojto 93:e188a91d3eaa 5888 #define RCC_CFGR3_TIM16SW ((uint32_t)0x00000800) /*!< TIM16SW bits */
Kojto 93:e188a91d3eaa 5889 #define RCC_CFGR3_TIM17SW ((uint32_t)0x00002000) /*!< TIM17SW bits */
Kojto 93:e188a91d3eaa 5890 #define RCC_CFGR3_TIM20SW ((uint32_t)0x00008000) /*!< TIM20SW bits */
Kojto 93:e188a91d3eaa 5891 #define RCC_CFGR3_TIM2SW ((uint32_t)0x01000000) /*!< TIM2SW bits */
Kojto 93:e188a91d3eaa 5892 #define RCC_CFGR3_TIM34SW ((uint32_t)0x02000000) /*!< TIM34SW bits */
Kojto 93:e188a91d3eaa 5893
Kojto 93:e188a91d3eaa 5894 #define RCC_CFGR3_TIM1SW_HCLK ((uint32_t)0x00000000) /*!< HCLK used as TIM1 clock source */
Kojto 93:e188a91d3eaa 5895 #define RCC_CFGR3_TIM1SW_PLL ((uint32_t)0x00000100) /*!< PLL clock used as TIM1 clock source */
Kojto 93:e188a91d3eaa 5896
Kojto 93:e188a91d3eaa 5897 #define RCC_CFGR3_TIM8SW_HCLK ((uint32_t)0x00000000) /*!< HCLK used as TIM8 clock source */
Kojto 93:e188a91d3eaa 5898 #define RCC_CFGR3_TIM8SW_PLL ((uint32_t)0x00000200) /*!< PLL clock used as TIM8 clock source */
Kojto 93:e188a91d3eaa 5899
Kojto 93:e188a91d3eaa 5900 #define RCC_CFGR3_TIM15SW_HCLK ((uint32_t)0x00000000) /*!< HCLK used as TIM15 clock source */
Kojto 93:e188a91d3eaa 5901 #define RCC_CFGR3_TIM15SW_PLL ((uint32_t)0x00000400) /*!< PLL clock used as TIM15 clock source */
Kojto 93:e188a91d3eaa 5902
Kojto 93:e188a91d3eaa 5903 #define RCC_CFGR3_TIM16SW_HCLK ((uint32_t)0x00000000) /*!< HCLK used as TIM16 clock source */
Kojto 93:e188a91d3eaa 5904 #define RCC_CFGR3_TIM16SW_PLL ((uint32_t)0x00000800) /*!< PLL clock used as TIM16 clock source */
Kojto 93:e188a91d3eaa 5905
Kojto 93:e188a91d3eaa 5906 #define RCC_CFGR3_TIM17SW_HCLK ((uint32_t)0x00000000) /*!< HCLK used as TIM17 clock source */
Kojto 93:e188a91d3eaa 5907 #define RCC_CFGR3_TIM17SW_PLL ((uint32_t)0x00002000) /*!< PLL clock used as TIM17 clock source */
Kojto 93:e188a91d3eaa 5908
Kojto 93:e188a91d3eaa 5909 #define RCC_CFGR3_TIM20SW_HCLK ((uint32_t)0x00000000) /*!< HCLK used as TIM20 clock source */
Kojto 93:e188a91d3eaa 5910 #define RCC_CFGR3_TIM20SW_PLL ((uint32_t)0x00008000) /*!< PLL clock used as TIM20 clock source */
Kojto 93:e188a91d3eaa 5911
Kojto 93:e188a91d3eaa 5912 #define RCC_CFGR3_USART2SW ((uint32_t)0x00030000) /*!< USART2SW[1:0] bits */
Kojto 93:e188a91d3eaa 5913 #define RCC_CFGR3_USART2SW_0 ((uint32_t)0x00010000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5914 #define RCC_CFGR3_USART2SW_1 ((uint32_t)0x00020000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5915
Kojto 93:e188a91d3eaa 5916 #define RCC_CFGR3_USART2SW_PCLK ((uint32_t)0x00000000) /*!< PCLK2 clock used as USART2 clock source */
Kojto 93:e188a91d3eaa 5917 #define RCC_CFGR3_USART2SW_SYSCLK ((uint32_t)0x00010000) /*!< System clock selected as USART2 clock source */
Kojto 93:e188a91d3eaa 5918 #define RCC_CFGR3_USART2SW_LSE ((uint32_t)0x00020000) /*!< LSE oscillator clock used as USART2 clock source */
Kojto 93:e188a91d3eaa 5919 #define RCC_CFGR3_USART2SW_HSI ((uint32_t)0x00030000) /*!< HSI oscillator clock used as USART2 clock source */
Kojto 93:e188a91d3eaa 5920
Kojto 93:e188a91d3eaa 5921 #define RCC_CFGR3_USART3SW ((uint32_t)0x000C0000) /*!< USART3SW[1:0] bits */
Kojto 93:e188a91d3eaa 5922 #define RCC_CFGR3_USART3SW_0 ((uint32_t)0x00040000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5923 #define RCC_CFGR3_USART3SW_1 ((uint32_t)0x00080000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5924
Kojto 93:e188a91d3eaa 5925 #define RCC_CFGR3_USART3SW_PCLK ((uint32_t)0x00000000) /*!< PCLK2 clock used as USART3 clock source */
Kojto 93:e188a91d3eaa 5926 #define RCC_CFGR3_USART3SW_SYSCLK ((uint32_t)0x00040000) /*!< System clock selected as USART3 clock source */
Kojto 93:e188a91d3eaa 5927 #define RCC_CFGR3_USART3SW_LSE ((uint32_t)0x00080000) /*!< LSE oscillator clock used as USART3 clock source */
Kojto 93:e188a91d3eaa 5928 #define RCC_CFGR3_USART3SW_HSI ((uint32_t)0x000C0000) /*!< HSI oscillator clock used as USART3 clock source */
Kojto 93:e188a91d3eaa 5929
Kojto 93:e188a91d3eaa 5930 #define RCC_CFGR3_UART4SW ((uint32_t)0x00300000) /*!< UART4SW[1:0] bits */
Kojto 93:e188a91d3eaa 5931 #define RCC_CFGR3_UART4SW_0 ((uint32_t)0x00100000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5932 #define RCC_CFGR3_UART4SW_1 ((uint32_t)0x00200000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5933
Kojto 93:e188a91d3eaa 5934 #define RCC_CFGR3_UART4SW_PCLK ((uint32_t)0x00000000) /*!< PCLK2 clock used as UART4 clock source */
Kojto 93:e188a91d3eaa 5935 #define RCC_CFGR3_UART4SW_SYSCLK ((uint32_t)0x00100000) /*!< System clock selected as UART4 clock source */
Kojto 93:e188a91d3eaa 5936 #define RCC_CFGR3_UART4SW_LSE ((uint32_t)0x00200000) /*!< LSE oscillator clock used as UART4 clock source */
Kojto 93:e188a91d3eaa 5937 #define RCC_CFGR3_UART4SW_HSI ((uint32_t)0x00300000) /*!< HSI oscillator clock used as UART4 clock source */
Kojto 93:e188a91d3eaa 5938
Kojto 93:e188a91d3eaa 5939 #define RCC_CFGR3_UART5SW ((uint32_t)0x00C00000) /*!< UART5SW[1:0] bits */
Kojto 93:e188a91d3eaa 5940 #define RCC_CFGR3_UART5SW_0 ((uint32_t)0x00400000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 5941 #define RCC_CFGR3_UART5SW_1 ((uint32_t)0x00800000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 5942
Kojto 93:e188a91d3eaa 5943 #define RCC_CFGR3_UART5SW_PCLK ((uint32_t)0x00000000) /*!< PCLK2 clock used as UART5 clock source */
Kojto 93:e188a91d3eaa 5944 #define RCC_CFGR3_UART5SW_SYSCLK ((uint32_t)0x00400000) /*!< System clock selected as UART5 clock source */
Kojto 93:e188a91d3eaa 5945 #define RCC_CFGR3_UART5SW_LSE ((uint32_t)0x00800000) /*!< LSE oscillator clock used as UART5 clock source */
Kojto 93:e188a91d3eaa 5946 #define RCC_CFGR3_UART5SW_HSI ((uint32_t)0x00C00000) /*!< HSI oscillator clock used as UART5 clock source */
Kojto 93:e188a91d3eaa 5947
Kojto 93:e188a91d3eaa 5948 #define RCC_CFGR3_TIM2SW_HCLK ((uint32_t)0x00000000) /*!< HCLK used as TIM2 clock source */
Kojto 93:e188a91d3eaa 5949 #define RCC_CFGR3_TIM2SW_PLL ((uint32_t)0x01000000) /*!< PLL clock used as TIM2 clock source */
Kojto 93:e188a91d3eaa 5950
Kojto 93:e188a91d3eaa 5951 #define RCC_CFGR3_TIM34SW_HCLK ((uint32_t)0x00000000) /*!< HCLK used as TIM3/TIM4 clock source */
Kojto 93:e188a91d3eaa 5952 #define RCC_CFGR3_TIM34SW_PLL ((uint32_t)0x02000000) /*!< PLL clock used as TIM3/TIM4 clock source */
Kojto 93:e188a91d3eaa 5953
Kojto 93:e188a91d3eaa 5954 /******************************************************************************/
Kojto 93:e188a91d3eaa 5955 /* */
Kojto 93:e188a91d3eaa 5956 /* Real-Time Clock (RTC) */
Kojto 93:e188a91d3eaa 5957 /* */
Kojto 93:e188a91d3eaa 5958 /******************************************************************************/
Kojto 93:e188a91d3eaa 5959 /******************** Bits definition for RTC_TR register *******************/
Kojto 93:e188a91d3eaa 5960 #define RTC_TR_PM ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 5961 #define RTC_TR_HT ((uint32_t)0x00300000)
Kojto 93:e188a91d3eaa 5962 #define RTC_TR_HT_0 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 5963 #define RTC_TR_HT_1 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 5964 #define RTC_TR_HU ((uint32_t)0x000F0000)
Kojto 93:e188a91d3eaa 5965 #define RTC_TR_HU_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 5966 #define RTC_TR_HU_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 5967 #define RTC_TR_HU_2 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 5968 #define RTC_TR_HU_3 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 5969 #define RTC_TR_MNT ((uint32_t)0x00007000)
Kojto 93:e188a91d3eaa 5970 #define RTC_TR_MNT_0 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 5971 #define RTC_TR_MNT_1 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 5972 #define RTC_TR_MNT_2 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 5973 #define RTC_TR_MNU ((uint32_t)0x00000F00)
Kojto 93:e188a91d3eaa 5974 #define RTC_TR_MNU_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 5975 #define RTC_TR_MNU_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 5976 #define RTC_TR_MNU_2 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 5977 #define RTC_TR_MNU_3 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 5978 #define RTC_TR_ST ((uint32_t)0x00000070)
Kojto 93:e188a91d3eaa 5979 #define RTC_TR_ST_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 5980 #define RTC_TR_ST_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 5981 #define RTC_TR_ST_2 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 5982 #define RTC_TR_SU ((uint32_t)0x0000000F)
Kojto 93:e188a91d3eaa 5983 #define RTC_TR_SU_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 5984 #define RTC_TR_SU_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 5985 #define RTC_TR_SU_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 5986 #define RTC_TR_SU_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 5987
Kojto 93:e188a91d3eaa 5988 /******************** Bits definition for RTC_DR register *******************/
Kojto 93:e188a91d3eaa 5989 #define RTC_DR_YT ((uint32_t)0x00F00000)
Kojto 93:e188a91d3eaa 5990 #define RTC_DR_YT_0 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 5991 #define RTC_DR_YT_1 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 5992 #define RTC_DR_YT_2 ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 5993 #define RTC_DR_YT_3 ((uint32_t)0x00800000)
Kojto 93:e188a91d3eaa 5994 #define RTC_DR_YU ((uint32_t)0x000F0000)
Kojto 93:e188a91d3eaa 5995 #define RTC_DR_YU_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 5996 #define RTC_DR_YU_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 5997 #define RTC_DR_YU_2 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 5998 #define RTC_DR_YU_3 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 5999 #define RTC_DR_WDU ((uint32_t)0x0000E000)
Kojto 93:e188a91d3eaa 6000 #define RTC_DR_WDU_0 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6001 #define RTC_DR_WDU_1 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6002 #define RTC_DR_WDU_2 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 6003 #define RTC_DR_MT ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 6004 #define RTC_DR_MU ((uint32_t)0x00000F00)
Kojto 93:e188a91d3eaa 6005 #define RTC_DR_MU_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6006 #define RTC_DR_MU_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 6007 #define RTC_DR_MU_2 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 6008 #define RTC_DR_MU_3 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 6009 #define RTC_DR_DT ((uint32_t)0x00000030)
Kojto 93:e188a91d3eaa 6010 #define RTC_DR_DT_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6011 #define RTC_DR_DT_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6012 #define RTC_DR_DU ((uint32_t)0x0000000F)
Kojto 93:e188a91d3eaa 6013 #define RTC_DR_DU_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6014 #define RTC_DR_DU_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6015 #define RTC_DR_DU_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6016 #define RTC_DR_DU_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6017
Kojto 93:e188a91d3eaa 6018 /******************** Bits definition for RTC_CR register *******************/
Kojto 93:e188a91d3eaa 6019 #define RTC_CR_COE ((uint32_t)0x00800000)
Kojto 93:e188a91d3eaa 6020 #define RTC_CR_OSEL ((uint32_t)0x00600000)
Kojto 93:e188a91d3eaa 6021 #define RTC_CR_OSEL_0 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 6022 #define RTC_CR_OSEL_1 ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 6023 #define RTC_CR_POL ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 6024 #define RTC_CR_COSEL ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 6025 #define RTC_CR_BCK ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 6026 #define RTC_CR_SUB1H ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 6027 #define RTC_CR_ADD1H ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 6028 #define RTC_CR_TSIE ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 6029 #define RTC_CR_WUTIE ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6030 #define RTC_CR_ALRBIE ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6031 #define RTC_CR_ALRAIE ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 6032 #define RTC_CR_TSE ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 6033 #define RTC_CR_WUTE ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 6034 #define RTC_CR_ALRBE ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 6035 #define RTC_CR_ALRAE ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6036 #define RTC_CR_FMT ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 6037 #define RTC_CR_BYPSHAD ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6038 #define RTC_CR_REFCKON ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6039 #define RTC_CR_TSEDGE ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6040 #define RTC_CR_WUCKSEL ((uint32_t)0x00000007)
Kojto 93:e188a91d3eaa 6041 #define RTC_CR_WUCKSEL_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6042 #define RTC_CR_WUCKSEL_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6043 #define RTC_CR_WUCKSEL_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6044
Kojto 93:e188a91d3eaa 6045 /******************** Bits definition for RTC_ISR register ******************/
Kojto 93:e188a91d3eaa 6046 #define RTC_ISR_RECALPF ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 6047 #define RTC_ISR_TAMP3F ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 6048 #define RTC_ISR_TAMP2F ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6049 #define RTC_ISR_TAMP1F ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6050 #define RTC_ISR_TSOVF ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 6051 #define RTC_ISR_TSF ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 6052 #define RTC_ISR_WUTF ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 6053 #define RTC_ISR_ALRBF ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 6054 #define RTC_ISR_ALRAF ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6055 #define RTC_ISR_INIT ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 6056 #define RTC_ISR_INITF ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 6057 #define RTC_ISR_RSF ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6058 #define RTC_ISR_INITS ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6059 #define RTC_ISR_SHPF ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6060 #define RTC_ISR_WUTWF ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6061 #define RTC_ISR_ALRBWF ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6062 #define RTC_ISR_ALRAWF ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6063
Kojto 93:e188a91d3eaa 6064 /******************** Bits definition for RTC_PRER register *****************/
Kojto 93:e188a91d3eaa 6065 #define RTC_PRER_PREDIV_A ((uint32_t)0x007F0000)
Kojto 93:e188a91d3eaa 6066 #define RTC_PRER_PREDIV_S ((uint32_t)0x00007FFF)
Kojto 93:e188a91d3eaa 6067
Kojto 93:e188a91d3eaa 6068 /******************** Bits definition for RTC_WUTR register *****************/
Kojto 93:e188a91d3eaa 6069 #define RTC_WUTR_WUT ((uint32_t)0x0000FFFF)
Kojto 93:e188a91d3eaa 6070
Kojto 93:e188a91d3eaa 6071 /******************** Bits definition for RTC_ALRMAR register ***************/
Kojto 93:e188a91d3eaa 6072 #define RTC_ALRMAR_MSK4 ((uint32_t)0x80000000)
Kojto 93:e188a91d3eaa 6073 #define RTC_ALRMAR_WDSEL ((uint32_t)0x40000000)
Kojto 93:e188a91d3eaa 6074 #define RTC_ALRMAR_DT ((uint32_t)0x30000000)
Kojto 93:e188a91d3eaa 6075 #define RTC_ALRMAR_DT_0 ((uint32_t)0x10000000)
Kojto 93:e188a91d3eaa 6076 #define RTC_ALRMAR_DT_1 ((uint32_t)0x20000000)
Kojto 93:e188a91d3eaa 6077 #define RTC_ALRMAR_DU ((uint32_t)0x0F000000)
Kojto 93:e188a91d3eaa 6078 #define RTC_ALRMAR_DU_0 ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 6079 #define RTC_ALRMAR_DU_1 ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 6080 #define RTC_ALRMAR_DU_2 ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 6081 #define RTC_ALRMAR_DU_3 ((uint32_t)0x08000000)
Kojto 93:e188a91d3eaa 6082 #define RTC_ALRMAR_MSK3 ((uint32_t)0x00800000)
Kojto 93:e188a91d3eaa 6083 #define RTC_ALRMAR_PM ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 6084 #define RTC_ALRMAR_HT ((uint32_t)0x00300000)
Kojto 93:e188a91d3eaa 6085 #define RTC_ALRMAR_HT_0 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 6086 #define RTC_ALRMAR_HT_1 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 6087 #define RTC_ALRMAR_HU ((uint32_t)0x000F0000)
Kojto 93:e188a91d3eaa 6088 #define RTC_ALRMAR_HU_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 6089 #define RTC_ALRMAR_HU_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 6090 #define RTC_ALRMAR_HU_2 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 6091 #define RTC_ALRMAR_HU_3 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 6092 #define RTC_ALRMAR_MSK2 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 6093 #define RTC_ALRMAR_MNT ((uint32_t)0x00007000)
Kojto 93:e188a91d3eaa 6094 #define RTC_ALRMAR_MNT_0 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 6095 #define RTC_ALRMAR_MNT_1 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6096 #define RTC_ALRMAR_MNT_2 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6097 #define RTC_ALRMAR_MNU ((uint32_t)0x00000F00)
Kojto 93:e188a91d3eaa 6098 #define RTC_ALRMAR_MNU_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6099 #define RTC_ALRMAR_MNU_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 6100 #define RTC_ALRMAR_MNU_2 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 6101 #define RTC_ALRMAR_MNU_3 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 6102 #define RTC_ALRMAR_MSK1 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 6103 #define RTC_ALRMAR_ST ((uint32_t)0x00000070)
Kojto 93:e188a91d3eaa 6104 #define RTC_ALRMAR_ST_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6105 #define RTC_ALRMAR_ST_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6106 #define RTC_ALRMAR_ST_2 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 6107 #define RTC_ALRMAR_SU ((uint32_t)0x0000000F)
Kojto 93:e188a91d3eaa 6108 #define RTC_ALRMAR_SU_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6109 #define RTC_ALRMAR_SU_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6110 #define RTC_ALRMAR_SU_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6111 #define RTC_ALRMAR_SU_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6112
Kojto 93:e188a91d3eaa 6113 /******************** Bits definition for RTC_ALRMBR register ***************/
Kojto 93:e188a91d3eaa 6114 #define RTC_ALRMBR_MSK4 ((uint32_t)0x80000000)
Kojto 93:e188a91d3eaa 6115 #define RTC_ALRMBR_WDSEL ((uint32_t)0x40000000)
Kojto 93:e188a91d3eaa 6116 #define RTC_ALRMBR_DT ((uint32_t)0x30000000)
Kojto 93:e188a91d3eaa 6117 #define RTC_ALRMBR_DT_0 ((uint32_t)0x10000000)
Kojto 93:e188a91d3eaa 6118 #define RTC_ALRMBR_DT_1 ((uint32_t)0x20000000)
Kojto 93:e188a91d3eaa 6119 #define RTC_ALRMBR_DU ((uint32_t)0x0F000000)
Kojto 93:e188a91d3eaa 6120 #define RTC_ALRMBR_DU_0 ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 6121 #define RTC_ALRMBR_DU_1 ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 6122 #define RTC_ALRMBR_DU_2 ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 6123 #define RTC_ALRMBR_DU_3 ((uint32_t)0x08000000)
Kojto 93:e188a91d3eaa 6124 #define RTC_ALRMBR_MSK3 ((uint32_t)0x00800000)
Kojto 93:e188a91d3eaa 6125 #define RTC_ALRMBR_PM ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 6126 #define RTC_ALRMBR_HT ((uint32_t)0x00300000)
Kojto 93:e188a91d3eaa 6127 #define RTC_ALRMBR_HT_0 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 6128 #define RTC_ALRMBR_HT_1 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 6129 #define RTC_ALRMBR_HU ((uint32_t)0x000F0000)
Kojto 93:e188a91d3eaa 6130 #define RTC_ALRMBR_HU_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 6131 #define RTC_ALRMBR_HU_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 6132 #define RTC_ALRMBR_HU_2 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 6133 #define RTC_ALRMBR_HU_3 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 6134 #define RTC_ALRMBR_MSK2 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 6135 #define RTC_ALRMBR_MNT ((uint32_t)0x00007000)
Kojto 93:e188a91d3eaa 6136 #define RTC_ALRMBR_MNT_0 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 6137 #define RTC_ALRMBR_MNT_1 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6138 #define RTC_ALRMBR_MNT_2 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6139 #define RTC_ALRMBR_MNU ((uint32_t)0x00000F00)
Kojto 93:e188a91d3eaa 6140 #define RTC_ALRMBR_MNU_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6141 #define RTC_ALRMBR_MNU_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 6142 #define RTC_ALRMBR_MNU_2 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 6143 #define RTC_ALRMBR_MNU_3 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 6144 #define RTC_ALRMBR_MSK1 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 6145 #define RTC_ALRMBR_ST ((uint32_t)0x00000070)
Kojto 93:e188a91d3eaa 6146 #define RTC_ALRMBR_ST_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6147 #define RTC_ALRMBR_ST_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6148 #define RTC_ALRMBR_ST_2 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 6149 #define RTC_ALRMBR_SU ((uint32_t)0x0000000F)
Kojto 93:e188a91d3eaa 6150 #define RTC_ALRMBR_SU_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6151 #define RTC_ALRMBR_SU_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6152 #define RTC_ALRMBR_SU_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6153 #define RTC_ALRMBR_SU_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6154
Kojto 93:e188a91d3eaa 6155 /******************** Bits definition for RTC_WPR register ******************/
Kojto 93:e188a91d3eaa 6156 #define RTC_WPR_KEY ((uint32_t)0x000000FF)
Kojto 93:e188a91d3eaa 6157
Kojto 93:e188a91d3eaa 6158 /******************** Bits definition for RTC_SSR register ******************/
Kojto 93:e188a91d3eaa 6159 #define RTC_SSR_SS ((uint32_t)0x0000FFFF)
Kojto 93:e188a91d3eaa 6160
Kojto 93:e188a91d3eaa 6161 /******************** Bits definition for RTC_SHIFTR register ***************/
Kojto 93:e188a91d3eaa 6162 #define RTC_SHIFTR_SUBFS ((uint32_t)0x00007FFF)
Kojto 93:e188a91d3eaa 6163 #define RTC_SHIFTR_ADD1S ((uint32_t)0x80000000)
Kojto 93:e188a91d3eaa 6164
Kojto 93:e188a91d3eaa 6165 /******************** Bits definition for RTC_TSTR register *****************/
Kojto 93:e188a91d3eaa 6166 #define RTC_TSTR_PM ((uint32_t)0x00400000)
Kojto 93:e188a91d3eaa 6167 #define RTC_TSTR_HT ((uint32_t)0x00300000)
Kojto 93:e188a91d3eaa 6168 #define RTC_TSTR_HT_0 ((uint32_t)0x00100000)
Kojto 93:e188a91d3eaa 6169 #define RTC_TSTR_HT_1 ((uint32_t)0x00200000)
Kojto 93:e188a91d3eaa 6170 #define RTC_TSTR_HU ((uint32_t)0x000F0000)
Kojto 93:e188a91d3eaa 6171 #define RTC_TSTR_HU_0 ((uint32_t)0x00010000)
Kojto 93:e188a91d3eaa 6172 #define RTC_TSTR_HU_1 ((uint32_t)0x00020000)
Kojto 93:e188a91d3eaa 6173 #define RTC_TSTR_HU_2 ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 6174 #define RTC_TSTR_HU_3 ((uint32_t)0x00080000)
Kojto 93:e188a91d3eaa 6175 #define RTC_TSTR_MNT ((uint32_t)0x00007000)
Kojto 93:e188a91d3eaa 6176 #define RTC_TSTR_MNT_0 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 6177 #define RTC_TSTR_MNT_1 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6178 #define RTC_TSTR_MNT_2 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6179 #define RTC_TSTR_MNU ((uint32_t)0x00000F00)
Kojto 93:e188a91d3eaa 6180 #define RTC_TSTR_MNU_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6181 #define RTC_TSTR_MNU_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 6182 #define RTC_TSTR_MNU_2 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 6183 #define RTC_TSTR_MNU_3 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 6184 #define RTC_TSTR_ST ((uint32_t)0x00000070)
Kojto 93:e188a91d3eaa 6185 #define RTC_TSTR_ST_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6186 #define RTC_TSTR_ST_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6187 #define RTC_TSTR_ST_2 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 6188 #define RTC_TSTR_SU ((uint32_t)0x0000000F)
Kojto 93:e188a91d3eaa 6189 #define RTC_TSTR_SU_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6190 #define RTC_TSTR_SU_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6191 #define RTC_TSTR_SU_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6192 #define RTC_TSTR_SU_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6193
Kojto 93:e188a91d3eaa 6194 /******************** Bits definition for RTC_TSDR register *****************/
Kojto 93:e188a91d3eaa 6195 #define RTC_TSDR_WDU ((uint32_t)0x0000E000)
Kojto 93:e188a91d3eaa 6196 #define RTC_TSDR_WDU_0 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6197 #define RTC_TSDR_WDU_1 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6198 #define RTC_TSDR_WDU_2 ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 6199 #define RTC_TSDR_MT ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 6200 #define RTC_TSDR_MU ((uint32_t)0x00000F00)
Kojto 93:e188a91d3eaa 6201 #define RTC_TSDR_MU_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6202 #define RTC_TSDR_MU_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 6203 #define RTC_TSDR_MU_2 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 6204 #define RTC_TSDR_MU_3 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 6205 #define RTC_TSDR_DT ((uint32_t)0x00000030)
Kojto 93:e188a91d3eaa 6206 #define RTC_TSDR_DT_0 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6207 #define RTC_TSDR_DT_1 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6208 #define RTC_TSDR_DU ((uint32_t)0x0000000F)
Kojto 93:e188a91d3eaa 6209 #define RTC_TSDR_DU_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6210 #define RTC_TSDR_DU_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6211 #define RTC_TSDR_DU_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6212 #define RTC_TSDR_DU_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6213
Kojto 93:e188a91d3eaa 6214 /******************** Bits definition for RTC_TSSSR register ****************/
Kojto 93:e188a91d3eaa 6215 #define RTC_TSSSR_SS ((uint32_t)0x0000FFFF)
Kojto 93:e188a91d3eaa 6216
Kojto 93:e188a91d3eaa 6217 /******************** Bits definition for RTC_CAL register *****************/
Kojto 93:e188a91d3eaa 6218 #define RTC_CALR_CALP ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 6219 #define RTC_CALR_CALW8 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6220 #define RTC_CALR_CALW16 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6221 #define RTC_CALR_CALM ((uint32_t)0x000001FF)
Kojto 93:e188a91d3eaa 6222 #define RTC_CALR_CALM_0 ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6223 #define RTC_CALR_CALM_1 ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6224 #define RTC_CALR_CALM_2 ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6225 #define RTC_CALR_CALM_3 ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6226 #define RTC_CALR_CALM_4 ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6227 #define RTC_CALR_CALM_5 ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6228 #define RTC_CALR_CALM_6 ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 6229 #define RTC_CALR_CALM_7 ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 6230 #define RTC_CALR_CALM_8 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6231
Kojto 93:e188a91d3eaa 6232 /******************** Bits definition for RTC_TAFCR register ****************/
Kojto 93:e188a91d3eaa 6233 #define RTC_TAFCR_ALARMOUTTYPE ((uint32_t)0x00040000)
Kojto 93:e188a91d3eaa 6234 #define RTC_TAFCR_TAMPPUDIS ((uint32_t)0x00008000)
Kojto 93:e188a91d3eaa 6235 #define RTC_TAFCR_TAMPPRCH ((uint32_t)0x00006000)
Kojto 93:e188a91d3eaa 6236 #define RTC_TAFCR_TAMPPRCH_0 ((uint32_t)0x00002000)
Kojto 93:e188a91d3eaa 6237 #define RTC_TAFCR_TAMPPRCH_1 ((uint32_t)0x00004000)
Kojto 93:e188a91d3eaa 6238 #define RTC_TAFCR_TAMPFLT ((uint32_t)0x00001800)
Kojto 93:e188a91d3eaa 6239 #define RTC_TAFCR_TAMPFLT_0 ((uint32_t)0x00000800)
Kojto 93:e188a91d3eaa 6240 #define RTC_TAFCR_TAMPFLT_1 ((uint32_t)0x00001000)
Kojto 93:e188a91d3eaa 6241 #define RTC_TAFCR_TAMPFREQ ((uint32_t)0x00000700)
Kojto 93:e188a91d3eaa 6242 #define RTC_TAFCR_TAMPFREQ_0 ((uint32_t)0x00000100)
Kojto 93:e188a91d3eaa 6243 #define RTC_TAFCR_TAMPFREQ_1 ((uint32_t)0x00000200)
Kojto 93:e188a91d3eaa 6244 #define RTC_TAFCR_TAMPFREQ_2 ((uint32_t)0x00000400)
Kojto 93:e188a91d3eaa 6245 #define RTC_TAFCR_TAMPTS ((uint32_t)0x00000080)
Kojto 93:e188a91d3eaa 6246 #define RTC_TAFCR_TAMP3TRG ((uint32_t)0x00000040)
Kojto 93:e188a91d3eaa 6247 #define RTC_TAFCR_TAMP3E ((uint32_t)0x00000020)
Kojto 93:e188a91d3eaa 6248 #define RTC_TAFCR_TAMP2TRG ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6249 #define RTC_TAFCR_TAMP2E ((uint32_t)0x00000008)
Kojto 93:e188a91d3eaa 6250 #define RTC_TAFCR_TAMPIE ((uint32_t)0x00000004)
Kojto 93:e188a91d3eaa 6251 #define RTC_TAFCR_TAMP1TRG ((uint32_t)0x00000002)
Kojto 93:e188a91d3eaa 6252 #define RTC_TAFCR_TAMP1E ((uint32_t)0x00000001)
Kojto 93:e188a91d3eaa 6253
Kojto 93:e188a91d3eaa 6254 /******************** Bits definition for RTC_ALRMASSR register *************/
Kojto 93:e188a91d3eaa 6255 #define RTC_ALRMASSR_MASKSS ((uint32_t)0x0F000000)
Kojto 93:e188a91d3eaa 6256 #define RTC_ALRMASSR_MASKSS_0 ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 6257 #define RTC_ALRMASSR_MASKSS_1 ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 6258 #define RTC_ALRMASSR_MASKSS_2 ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 6259 #define RTC_ALRMASSR_MASKSS_3 ((uint32_t)0x08000000)
Kojto 93:e188a91d3eaa 6260 #define RTC_ALRMASSR_SS ((uint32_t)0x00007FFF)
Kojto 93:e188a91d3eaa 6261
Kojto 93:e188a91d3eaa 6262 /******************** Bits definition for RTC_ALRMBSSR register *************/
Kojto 93:e188a91d3eaa 6263 #define RTC_ALRMBSSR_MASKSS ((uint32_t)0x0F000000)
Kojto 93:e188a91d3eaa 6264 #define RTC_ALRMBSSR_MASKSS_0 ((uint32_t)0x01000000)
Kojto 93:e188a91d3eaa 6265 #define RTC_ALRMBSSR_MASKSS_1 ((uint32_t)0x02000000)
Kojto 93:e188a91d3eaa 6266 #define RTC_ALRMBSSR_MASKSS_2 ((uint32_t)0x04000000)
Kojto 93:e188a91d3eaa 6267 #define RTC_ALRMBSSR_MASKSS_3 ((uint32_t)0x08000000)
Kojto 93:e188a91d3eaa 6268 #define RTC_ALRMBSSR_SS ((uint32_t)0x00007FFF)
Kojto 93:e188a91d3eaa 6269
Kojto 93:e188a91d3eaa 6270 /******************** Bits definition for RTC_BKP0R register ****************/
Kojto 93:e188a91d3eaa 6271 #define RTC_BKP0R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6272
Kojto 93:e188a91d3eaa 6273 /******************** Bits definition for RTC_BKP1R register ****************/
Kojto 93:e188a91d3eaa 6274 #define RTC_BKP1R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6275
Kojto 93:e188a91d3eaa 6276 /******************** Bits definition for RTC_BKP2R register ****************/
Kojto 93:e188a91d3eaa 6277 #define RTC_BKP2R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6278
Kojto 93:e188a91d3eaa 6279 /******************** Bits definition for RTC_BKP3R register ****************/
Kojto 93:e188a91d3eaa 6280 #define RTC_BKP3R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6281
Kojto 93:e188a91d3eaa 6282 /******************** Bits definition for RTC_BKP4R register ****************/
Kojto 93:e188a91d3eaa 6283 #define RTC_BKP4R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6284
Kojto 93:e188a91d3eaa 6285 /******************** Bits definition for RTC_BKP5R register ****************/
Kojto 93:e188a91d3eaa 6286 #define RTC_BKP5R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6287
Kojto 93:e188a91d3eaa 6288 /******************** Bits definition for RTC_BKP6R register ****************/
Kojto 93:e188a91d3eaa 6289 #define RTC_BKP6R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6290
Kojto 93:e188a91d3eaa 6291 /******************** Bits definition for RTC_BKP7R register ****************/
Kojto 93:e188a91d3eaa 6292 #define RTC_BKP7R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6293
Kojto 93:e188a91d3eaa 6294 /******************** Bits definition for RTC_BKP8R register ****************/
Kojto 93:e188a91d3eaa 6295 #define RTC_BKP8R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6296
Kojto 93:e188a91d3eaa 6297 /******************** Bits definition for RTC_BKP9R register ****************/
Kojto 93:e188a91d3eaa 6298 #define RTC_BKP9R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6299
Kojto 93:e188a91d3eaa 6300 /******************** Bits definition for RTC_BKP10R register ***************/
Kojto 93:e188a91d3eaa 6301 #define RTC_BKP10R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6302
Kojto 93:e188a91d3eaa 6303 /******************** Bits definition for RTC_BKP11R register ***************/
Kojto 93:e188a91d3eaa 6304 #define RTC_BKP11R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6305
Kojto 93:e188a91d3eaa 6306 /******************** Bits definition for RTC_BKP12R register ***************/
Kojto 93:e188a91d3eaa 6307 #define RTC_BKP12R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6308
Kojto 93:e188a91d3eaa 6309 /******************** Bits definition for RTC_BKP13R register ***************/
Kojto 93:e188a91d3eaa 6310 #define RTC_BKP13R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6311
Kojto 93:e188a91d3eaa 6312 /******************** Bits definition for RTC_BKP14R register ***************/
Kojto 93:e188a91d3eaa 6313 #define RTC_BKP14R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6314
Kojto 93:e188a91d3eaa 6315 /******************** Bits definition for RTC_BKP15R register ***************/
Kojto 93:e188a91d3eaa 6316 #define RTC_BKP15R ((uint32_t)0xFFFFFFFF)
Kojto 93:e188a91d3eaa 6317
Kojto 93:e188a91d3eaa 6318 /******************** Number of backup registers ******************************/
Kojto 93:e188a91d3eaa 6319 #define RTC_BKP_NUMBER ((uint32_t)0x00000010)
Kojto 93:e188a91d3eaa 6320
Kojto 93:e188a91d3eaa 6321 /******************************************************************************/
Kojto 93:e188a91d3eaa 6322 /* */
Kojto 93:e188a91d3eaa 6323 /* Serial Peripheral Interface (SPI) */
Kojto 93:e188a91d3eaa 6324 /* */
Kojto 93:e188a91d3eaa 6325 /******************************************************************************/
Kojto 93:e188a91d3eaa 6326 /******************* Bit definition for SPI_CR1 register ********************/
Kojto 93:e188a91d3eaa 6327 #define SPI_CR1_CPHA ((uint32_t)0x00000001) /*!< Clock Phase */
Kojto 93:e188a91d3eaa 6328 #define SPI_CR1_CPOL ((uint32_t)0x00000002) /*!< Clock Polarity */
Kojto 93:e188a91d3eaa 6329 #define SPI_CR1_MSTR ((uint32_t)0x00000004) /*!< Master Selection */
Kojto 93:e188a91d3eaa 6330 #define SPI_CR1_BR ((uint32_t)0x00000038) /*!< BR[2:0] bits (Baud Rate Control) */
Kojto 93:e188a91d3eaa 6331 #define SPI_CR1_BR_0 ((uint32_t)0x00000008) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 6332 #define SPI_CR1_BR_1 ((uint32_t)0x00000010) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 6333 #define SPI_CR1_BR_2 ((uint32_t)0x00000020) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 6334 #define SPI_CR1_SPE ((uint32_t)0x00000040) /*!< SPI Enable */
Kojto 93:e188a91d3eaa 6335 #define SPI_CR1_LSBFIRST ((uint32_t)0x00000080) /*!< Frame Format */
Kojto 93:e188a91d3eaa 6336 #define SPI_CR1_SSI ((uint32_t)0x00000100) /*!< Internal slave select */
Kojto 93:e188a91d3eaa 6337 #define SPI_CR1_SSM ((uint32_t)0x00000200) /*!< Software slave management */
Kojto 93:e188a91d3eaa 6338 #define SPI_CR1_RXONLY ((uint32_t)0x00000400) /*!< Receive only */
Kojto 93:e188a91d3eaa 6339 #define SPI_CR1_CRCL ((uint32_t)0x00000800) /*!< CRC Length */
Kojto 93:e188a91d3eaa 6340 #define SPI_CR1_CRCNEXT ((uint32_t)0x00001000) /*!< Transmit CRC next */
Kojto 93:e188a91d3eaa 6341 #define SPI_CR1_CRCEN ((uint32_t)0x00002000) /*!< Hardware CRC calculation enable */
Kojto 93:e188a91d3eaa 6342 #define SPI_CR1_BIDIOE ((uint32_t)0x00004000) /*!< Output enable in bidirectional mode */
Kojto 93:e188a91d3eaa 6343 #define SPI_CR1_BIDIMODE ((uint32_t)0x00008000) /*!< Bidirectional data mode enable */
Kojto 93:e188a91d3eaa 6344
Kojto 93:e188a91d3eaa 6345 /******************* Bit definition for SPI_CR2 register ********************/
Kojto 93:e188a91d3eaa 6346 #define SPI_CR2_RXDMAEN ((uint32_t)0x00000001) /*!< Rx Buffer DMA Enable */
Kojto 93:e188a91d3eaa 6347 #define SPI_CR2_TXDMAEN ((uint32_t)0x00000002) /*!< Tx Buffer DMA Enable */
Kojto 93:e188a91d3eaa 6348 #define SPI_CR2_SSOE ((uint32_t)0x00000004) /*!< SS Output Enable */
Kojto 93:e188a91d3eaa 6349 #define SPI_CR2_NSSP ((uint32_t)0x00000008) /*!< NSS pulse management Enable */
Kojto 93:e188a91d3eaa 6350 #define SPI_CR2_FRF ((uint32_t)0x00000010) /*!< Frame Format Enable */
Kojto 93:e188a91d3eaa 6351 #define SPI_CR2_ERRIE ((uint32_t)0x00000020) /*!< Error Interrupt Enable */
Kojto 93:e188a91d3eaa 6352 #define SPI_CR2_RXNEIE ((uint32_t)0x00000040) /*!< RX buffer Not Empty Interrupt Enable */
Kojto 93:e188a91d3eaa 6353 #define SPI_CR2_TXEIE ((uint32_t)0x00000080) /*!< Tx buffer Empty Interrupt Enable */
Kojto 93:e188a91d3eaa 6354 #define SPI_CR2_DS ((uint32_t)0x00000F00) /*!< DS[3:0] Data Size */
Kojto 93:e188a91d3eaa 6355 #define SPI_CR2_DS_0 ((uint32_t)0x00000100) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 6356 #define SPI_CR2_DS_1 ((uint32_t)0x00000200) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 6357 #define SPI_CR2_DS_2 ((uint32_t)0x00000400) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 6358 #define SPI_CR2_DS_3 ((uint32_t)0x00000800) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 6359 #define SPI_CR2_FRXTH ((uint32_t)0x00001000) /*!< FIFO reception Threshold */
Kojto 93:e188a91d3eaa 6360 #define SPI_CR2_LDMARX ((uint32_t)0x00002000) /*!< Last DMA transfer for reception */
Kojto 93:e188a91d3eaa 6361 #define SPI_CR2_LDMATX ((uint32_t)0x00004000) /*!< Last DMA transfer for transmission */
Kojto 93:e188a91d3eaa 6362
Kojto 93:e188a91d3eaa 6363 /******************** Bit definition for SPI_SR register ********************/
Kojto 93:e188a91d3eaa 6364 #define SPI_SR_RXNE ((uint32_t)0x00000001) /*!< Receive buffer Not Empty */
Kojto 93:e188a91d3eaa 6365 #define SPI_SR_TXE ((uint32_t)0x00000002) /*!< Transmit buffer Empty */
Kojto 93:e188a91d3eaa 6366 #define SPI_SR_CHSIDE ((uint32_t)0x00000004) /*!< Channel side */
Kojto 93:e188a91d3eaa 6367 #define SPI_SR_UDR ((uint32_t)0x00000008) /*!< Underrun flag */
Kojto 93:e188a91d3eaa 6368 #define SPI_SR_CRCERR ((uint32_t)0x00000010) /*!< CRC Error flag */
Kojto 93:e188a91d3eaa 6369 #define SPI_SR_MODF ((uint32_t)0x00000020) /*!< Mode fault */
Kojto 93:e188a91d3eaa 6370 #define SPI_SR_OVR ((uint32_t)0x00000040) /*!< Overrun flag */
Kojto 93:e188a91d3eaa 6371 #define SPI_SR_BSY ((uint32_t)0x00000080) /*!< Busy flag */
Kojto 93:e188a91d3eaa 6372 #define SPI_SR_FRE ((uint32_t)0x00000100) /*!< TI frame format error */
Kojto 93:e188a91d3eaa 6373 #define SPI_SR_FRLVL ((uint32_t)0x00000600) /*!< FIFO Reception Level */
Kojto 93:e188a91d3eaa 6374 #define SPI_SR_FRLVL_0 ((uint32_t)0x00000200) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 6375 #define SPI_SR_FRLVL_1 ((uint32_t)0x00000400) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 6376 #define SPI_SR_FTLVL ((uint32_t)0x00001800) /*!< FIFO Transmission Level */
Kojto 93:e188a91d3eaa 6377 #define SPI_SR_FTLVL_0 ((uint32_t)0x00000800) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 6378 #define SPI_SR_FTLVL_1 ((uint32_t)0x00001000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 6379
Kojto 93:e188a91d3eaa 6380 /******************** Bit definition for SPI_DR register ********************/
Kojto 93:e188a91d3eaa 6381 #define SPI_DR_DR ((uint32_t)0x0000FFFF) /*!< Data Register */
Kojto 93:e188a91d3eaa 6382
Kojto 93:e188a91d3eaa 6383 /******************* Bit definition for SPI_CRCPR register ******************/
Kojto 93:e188a91d3eaa 6384 #define SPI_CRCPR_CRCPOLY ((uint32_t)0x0000FFFF) /*!< CRC polynomial register */
Kojto 93:e188a91d3eaa 6385
Kojto 93:e188a91d3eaa 6386 /****************** Bit definition for SPI_RXCRCR register ******************/
Kojto 93:e188a91d3eaa 6387 #define SPI_RXCRCR_RXCRC ((uint32_t)0x0000FFFF) /*!< Rx CRC Register */
Kojto 93:e188a91d3eaa 6388
Kojto 93:e188a91d3eaa 6389 /****************** Bit definition for SPI_TXCRCR register ******************/
Kojto 93:e188a91d3eaa 6390 #define SPI_TXCRCR_TXCRC ((uint32_t)0x0000FFFF) /*!< Tx CRC Register */
Kojto 93:e188a91d3eaa 6391
Kojto 93:e188a91d3eaa 6392 /****************** Bit definition for SPI_I2SCFGR register *****************/
Kojto 93:e188a91d3eaa 6393 #define SPI_I2SCFGR_CHLEN ((uint32_t)0x00000001) /*!<Channel length (number of bits per audio channel) */
Kojto 93:e188a91d3eaa 6394 #define SPI_I2SCFGR_DATLEN ((uint32_t)0x00000006) /*!<DATLEN[1:0] bits (Data length to be transferred) */
Kojto 93:e188a91d3eaa 6395 #define SPI_I2SCFGR_DATLEN_0 ((uint32_t)0x00000002) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6396 #define SPI_I2SCFGR_DATLEN_1 ((uint32_t)0x00000004) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6397 #define SPI_I2SCFGR_CKPOL ((uint32_t)0x00000008) /*!<steady state clock polarity */
Kojto 93:e188a91d3eaa 6398 #define SPI_I2SCFGR_I2SSTD ((uint32_t)0x00000030) /*!<I2SSTD[1:0] bits (I2S standard selection) */
Kojto 93:e188a91d3eaa 6399 #define SPI_I2SCFGR_I2SSTD_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6400 #define SPI_I2SCFGR_I2SSTD_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6401 #define SPI_I2SCFGR_PCMSYNC ((uint32_t)0x00000080) /*!<PCM frame synchronization */
Kojto 93:e188a91d3eaa 6402 #define SPI_I2SCFGR_I2SCFG ((uint32_t)0x00000300) /*!<I2SCFG[1:0] bits (I2S configuration mode) */
Kojto 93:e188a91d3eaa 6403 #define SPI_I2SCFGR_I2SCFG_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6404 #define SPI_I2SCFGR_I2SCFG_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6405 #define SPI_I2SCFGR_I2SE ((uint32_t)0x00000400) /*!<I2S Enable */
Kojto 93:e188a91d3eaa 6406 #define SPI_I2SCFGR_I2SMOD ((uint32_t)0x00000800) /*!<I2S mode selection */
Kojto 93:e188a91d3eaa 6407
Kojto 93:e188a91d3eaa 6408 /****************** Bit definition for SPI_I2SPR register *******************/
Kojto 93:e188a91d3eaa 6409 #define SPI_I2SPR_I2SDIV ((uint32_t)0x000000FF) /*!<I2S Linear prescaler */
Kojto 93:e188a91d3eaa 6410 #define SPI_I2SPR_ODD ((uint32_t)0x00000100) /*!<Odd factor for the prescaler */
Kojto 93:e188a91d3eaa 6411 #define SPI_I2SPR_MCKOE ((uint32_t)0x00000200) /*!<Master Clock Output Enable */
Kojto 93:e188a91d3eaa 6412
Kojto 93:e188a91d3eaa 6413 /******************************************************************************/
Kojto 93:e188a91d3eaa 6414 /* */
Kojto 93:e188a91d3eaa 6415 /* System Configuration(SYSCFG) */
Kojto 93:e188a91d3eaa 6416 /* */
Kojto 93:e188a91d3eaa 6417 /******************************************************************************/
Kojto 93:e188a91d3eaa 6418 /***************** Bit definition for SYSCFG_CFGR1 register *****************/
Kojto 93:e188a91d3eaa 6419 #define SYSCFG_CFGR1_MEM_MODE ((uint32_t)0x00000007) /*!< SYSCFG_Memory Remap Config */
Kojto 93:e188a91d3eaa 6420 #define SYSCFG_CFGR1_MEM_MODE_0 ((uint32_t)0x00000001) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 6421 #define SYSCFG_CFGR1_MEM_MODE_1 ((uint32_t)0x00000002) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 6422 #define SYSCFG_CFGR1_MEM_MODE_2 ((uint32_t)0x00000004) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 6423 #define SYSCFG_CFGR1_USB_IT_RMP ((uint32_t)0x00000020) /*!< USB interrupt remap */
Kojto 93:e188a91d3eaa 6424 #define SYSCFG_CFGR1_TIM1_ITR3_RMP ((uint32_t)0x00000040) /*!< Timer 1 ITR3 selection */
Kojto 93:e188a91d3eaa 6425 #define SYSCFG_CFGR1_DAC1_TRIG1_RMP ((uint32_t)0x00000080) /*!< DAC1 Trigger1 remap */
Kojto 93:e188a91d3eaa 6426 #define SYSCFG_CFGR1_DMA_RMP ((uint32_t)0x00007900) /*!< DMA remap mask */
Kojto 93:e188a91d3eaa 6427 #define SYSCFG_CFGR1_ADC24_DMA_RMP ((uint32_t)0x00000100) /*!< ADC2 and ADC4 DMA remap */
Kojto 93:e188a91d3eaa 6428 #define SYSCFG_CFGR1_TIM16_DMA_RMP ((uint32_t)0x00000800) /*!< Timer 16 DMA remap */
Kojto 93:e188a91d3eaa 6429 #define SYSCFG_CFGR1_TIM17_DMA_RMP ((uint32_t)0x00001000) /*!< Timer 17 DMA remap */
Kojto 93:e188a91d3eaa 6430 #define SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP ((uint32_t)0x00002000) /*!< Timer 6 / DAC1 CH1 DMA remap */
Kojto 93:e188a91d3eaa 6431 #define SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP ((uint32_t)0x00004000) /*!< Timer 7 / DAC1 CH2 DMA remap */
Kojto 93:e188a91d3eaa 6432 #define SYSCFG_CFGR1_I2C_PB6_FMP ((uint32_t)0x00010000) /*!< I2C PB6 Fast mode plus */
Kojto 93:e188a91d3eaa 6433 #define SYSCFG_CFGR1_I2C_PB7_FMP ((uint32_t)0x00020000) /*!< I2C PB7 Fast mode plus */
Kojto 93:e188a91d3eaa 6434 #define SYSCFG_CFGR1_I2C_PB8_FMP ((uint32_t)0x00040000) /*!< I2C PB8 Fast mode plus */
Kojto 93:e188a91d3eaa 6435 #define SYSCFG_CFGR1_I2C_PB9_FMP ((uint32_t)0x00080000) /*!< I2C PB9 Fast mode plus */
Kojto 93:e188a91d3eaa 6436 #define SYSCFG_CFGR1_I2C1_FMP ((uint32_t)0x00100000) /*!< I2C1 Fast mode plus */
Kojto 93:e188a91d3eaa 6437 #define SYSCFG_CFGR1_I2C2_FMP ((uint32_t)0x00200000) /*!< I2C2 Fast mode plus */
Kojto 93:e188a91d3eaa 6438 #define SYSCFG_CFGR1_ENCODER_MODE ((uint32_t)0x00C00000) /*!< Encoder Mode */
Kojto 93:e188a91d3eaa 6439 #define SYSCFG_CFGR1_ENCODER_MODE_0 ((uint32_t)0x00400000) /*!< Encoder Mode 0 */
Kojto 93:e188a91d3eaa 6440 #define SYSCFG_CFGR1_ENCODER_MODE_1 ((uint32_t)0x00800000) /*!< Encoder Mode 1 */
Kojto 93:e188a91d3eaa 6441 #define SYSCFG_CFGR1_I2C3_FMP ((uint32_t)0x01000000) /*!< I2C3 Fast mode plus */
Kojto 93:e188a91d3eaa 6442 #define SYSCFG_CFGR1_FPU_IE ((uint32_t)0xFC000000) /*!< Floating Point Unit Interrupt Enable */
Kojto 93:e188a91d3eaa 6443 #define SYSCFG_CFGR1_FPU_IE_0 ((uint32_t)0x04000000) /*!< Floating Point Unit Interrupt Enable 0 */
Kojto 93:e188a91d3eaa 6444 #define SYSCFG_CFGR1_FPU_IE_1 ((uint32_t)0x08000000) /*!< Floating Point Unit Interrupt Enable 1 */
Kojto 93:e188a91d3eaa 6445 #define SYSCFG_CFGR1_FPU_IE_2 ((uint32_t)0x10000000) /*!< Floating Point Unit Interrupt Enable 2 */
Kojto 93:e188a91d3eaa 6446 #define SYSCFG_CFGR1_FPU_IE_3 ((uint32_t)0x20000000) /*!< Floating Point Unit Interrupt Enable 3 */
Kojto 93:e188a91d3eaa 6447 #define SYSCFG_CFGR1_FPU_IE_4 ((uint32_t)0x40000000) /*!< Floating Point Unit Interrupt Enable 4 */
Kojto 93:e188a91d3eaa 6448 #define SYSCFG_CFGR1_FPU_IE_5 ((uint32_t)0x80000000) /*!< Floating Point Unit Interrupt Enable 5 */
Kojto 93:e188a91d3eaa 6449
Kojto 93:e188a91d3eaa 6450 /***************** Bit definition for SYSCFG_RCR register *******************/
Kojto 93:e188a91d3eaa 6451 #define SYSCFG_RCR_PAGE0 ((uint32_t)0x00000001) /*!< ICODE SRAM Write protection page 0 */
Kojto 93:e188a91d3eaa 6452 #define SYSCFG_RCR_PAGE1 ((uint32_t)0x00000002) /*!< ICODE SRAM Write protection page 1 */
Kojto 93:e188a91d3eaa 6453 #define SYSCFG_RCR_PAGE2 ((uint32_t)0x00000004) /*!< ICODE SRAM Write protection page 2 */
Kojto 93:e188a91d3eaa 6454 #define SYSCFG_RCR_PAGE3 ((uint32_t)0x00000008) /*!< ICODE SRAM Write protection page 3 */
Kojto 93:e188a91d3eaa 6455 #define SYSCFG_RCR_PAGE4 ((uint32_t)0x00000010) /*!< ICODE SRAM Write protection page 4 */
Kojto 93:e188a91d3eaa 6456 #define SYSCFG_RCR_PAGE5 ((uint32_t)0x00000020) /*!< ICODE SRAM Write protection page 5 */
Kojto 93:e188a91d3eaa 6457 #define SYSCFG_RCR_PAGE6 ((uint32_t)0x00000040) /*!< ICODE SRAM Write protection page 6 */
Kojto 93:e188a91d3eaa 6458 #define SYSCFG_RCR_PAGE7 ((uint32_t)0x00000080) /*!< ICODE SRAM Write protection page 7 */
Kojto 93:e188a91d3eaa 6459 #define SYSCFG_RCR_PAGE8 ((uint32_t)0x00000100) /*!< ICODE SRAM Write protection page 8 */
Kojto 93:e188a91d3eaa 6460 #define SYSCFG_RCR_PAGE9 ((uint32_t)0x00000200) /*!< ICODE SRAM Write protection page 9 */
Kojto 93:e188a91d3eaa 6461 #define SYSCFG_RCR_PAGE10 ((uint32_t)0x00000400) /*!< ICODE SRAM Write protection page 10 */
Kojto 93:e188a91d3eaa 6462 #define SYSCFG_RCR_PAGE11 ((uint32_t)0x00000800) /*!< ICODE SRAM Write protection page 11 */
Kojto 93:e188a91d3eaa 6463 #define SYSCFG_RCR_PAGE12 ((uint32_t)0x00001000) /*!< ICODE SRAM Write protection page 12 */
Kojto 93:e188a91d3eaa 6464 #define SYSCFG_RCR_PAGE13 ((uint32_t)0x00002000) /*!< ICODE SRAM Write protection page 13 */
Kojto 93:e188a91d3eaa 6465 #define SYSCFG_RCR_PAGE14 ((uint32_t)0x00004000) /*!< ICODE SRAM Write protection page 14 */
Kojto 93:e188a91d3eaa 6466 #define SYSCFG_RCR_PAGE15 ((uint32_t)0x00008000) /*!< ICODE SRAM Write protection page 15 */
Kojto 93:e188a91d3eaa 6467
Kojto 93:e188a91d3eaa 6468 /***************** Bit definition for SYSCFG_EXTICR1 register ***************/
Kojto 93:e188a91d3eaa 6469 #define SYSCFG_EXTICR1_EXTI0 ((uint32_t)0x0000000F) /*!< EXTI 0 configuration */
Kojto 93:e188a91d3eaa 6470 #define SYSCFG_EXTICR1_EXTI1 ((uint32_t)0x000000F0) /*!< EXTI 1 configuration */
Kojto 93:e188a91d3eaa 6471 #define SYSCFG_EXTICR1_EXTI2 ((uint32_t)0x00000F00) /*!< EXTI 2 configuration */
Kojto 93:e188a91d3eaa 6472 #define SYSCFG_EXTICR1_EXTI3 ((uint32_t)0x0000F000) /*!< EXTI 3 configuration */
Kojto 93:e188a91d3eaa 6473
Kojto 93:e188a91d3eaa 6474 /*!<*
Kojto 93:e188a91d3eaa 6475 * @brief EXTI0 configuration
Kojto 93:e188a91d3eaa 6476 */
Kojto 93:e188a91d3eaa 6477 #define SYSCFG_EXTICR1_EXTI0_PA ((uint32_t)0x00000000) /*!< PA[0] pin */
Kojto 93:e188a91d3eaa 6478 #define SYSCFG_EXTICR1_EXTI0_PB ((uint32_t)0x00000001) /*!< PB[0] pin */
Kojto 93:e188a91d3eaa 6479 #define SYSCFG_EXTICR1_EXTI0_PC ((uint32_t)0x00000002) /*!< PC[0] pin */
Kojto 93:e188a91d3eaa 6480 #define SYSCFG_EXTICR1_EXTI0_PD ((uint32_t)0x00000003) /*!< PD[0] pin */
Kojto 93:e188a91d3eaa 6481 #define SYSCFG_EXTICR1_EXTI0_PE ((uint32_t)0x00000004) /*!< PE[0] pin */
Kojto 93:e188a91d3eaa 6482 #define SYSCFG_EXTICR1_EXTI0_PF ((uint32_t)0x00000005) /*!< PF[0] pin */
Kojto 93:e188a91d3eaa 6483 #define SYSCFG_EXTICR1_EXTI0_PG ((uint32_t)0x00000006) /*!< PG[0] pin */
Kojto 93:e188a91d3eaa 6484 #define SYSCFG_EXTICR1_EXTI0_PH ((uint32_t)0x00000007) /*!< PH[0] pin */
Kojto 93:e188a91d3eaa 6485
Kojto 93:e188a91d3eaa 6486 /*!<*
Kojto 93:e188a91d3eaa 6487 * @brief EXTI1 configuration
Kojto 93:e188a91d3eaa 6488 */
Kojto 93:e188a91d3eaa 6489 #define SYSCFG_EXTICR1_EXTI1_PA ((uint32_t)0x00000000) /*!< PA[1] pin */
Kojto 93:e188a91d3eaa 6490 #define SYSCFG_EXTICR1_EXTI1_PB ((uint32_t)0x00000010) /*!< PB[1] pin */
Kojto 93:e188a91d3eaa 6491 #define SYSCFG_EXTICR1_EXTI1_PC ((uint32_t)0x00000020) /*!< PC[1] pin */
Kojto 93:e188a91d3eaa 6492 #define SYSCFG_EXTICR1_EXTI1_PD ((uint32_t)0x00000030) /*!< PD[1] pin */
Kojto 93:e188a91d3eaa 6493 #define SYSCFG_EXTICR1_EXTI1_PE ((uint32_t)0x00000040) /*!< PE[1] pin */
Kojto 93:e188a91d3eaa 6494 #define SYSCFG_EXTICR1_EXTI1_PF ((uint32_t)0x00000050) /*!< PF[1] pin */
Kojto 93:e188a91d3eaa 6495 #define SYSCFG_EXTICR1_EXTI1_PG ((uint32_t)0x00000060) /*!< PG[1] pin */
Kojto 93:e188a91d3eaa 6496 #define SYSCFG_EXTICR1_EXTI1_PH ((uint32_t)0x00000070) /*!< PH[1] pin */
Kojto 93:e188a91d3eaa 6497
Kojto 93:e188a91d3eaa 6498 /*!<*
Kojto 93:e188a91d3eaa 6499 * @brief EXTI2 configuration
Kojto 93:e188a91d3eaa 6500 */
Kojto 93:e188a91d3eaa 6501 #define SYSCFG_EXTICR1_EXTI2_PA ((uint32_t)0x00000000) /*!< PA[2] pin */
Kojto 93:e188a91d3eaa 6502 #define SYSCFG_EXTICR1_EXTI2_PB ((uint32_t)0x00000100) /*!< PB[2] pin */
Kojto 93:e188a91d3eaa 6503 #define SYSCFG_EXTICR1_EXTI2_PC ((uint32_t)0x00000200) /*!< PC[2] pin */
Kojto 93:e188a91d3eaa 6504 #define SYSCFG_EXTICR1_EXTI2_PD ((uint32_t)0x00000300) /*!< PD[2] pin */
Kojto 93:e188a91d3eaa 6505 #define SYSCFG_EXTICR1_EXTI2_PE ((uint32_t)0x00000400) /*!< PE[2] pin */
Kojto 93:e188a91d3eaa 6506 #define SYSCFG_EXTICR1_EXTI2_PF ((uint32_t)0x00000500) /*!< PF[2] pin */
Kojto 93:e188a91d3eaa 6507 #define SYSCFG_EXTICR1_EXTI2_PG ((uint32_t)0x00000600) /*!< PG[2] pin */
Kojto 93:e188a91d3eaa 6508
Kojto 93:e188a91d3eaa 6509 /*!<*
Kojto 93:e188a91d3eaa 6510 * @brief EXTI3 configuration
Kojto 93:e188a91d3eaa 6511 */
Kojto 93:e188a91d3eaa 6512 #define SYSCFG_EXTICR1_EXTI3_PA ((uint32_t)0x00000000) /*!< PA[3] pin */
Kojto 93:e188a91d3eaa 6513 #define SYSCFG_EXTICR1_EXTI3_PB ((uint32_t)0x00001000) /*!< PB[3] pin */
Kojto 93:e188a91d3eaa 6514 #define SYSCFG_EXTICR1_EXTI3_PC ((uint32_t)0x00002000) /*!< PC[3] pin */
Kojto 93:e188a91d3eaa 6515 #define SYSCFG_EXTICR1_EXTI3_PD ((uint32_t)0x00003000) /*!< PD[3] pin */
Kojto 93:e188a91d3eaa 6516 #define SYSCFG_EXTICR1_EXTI3_PE ((uint32_t)0x00004000) /*!< PE[3] pin */
Kojto 93:e188a91d3eaa 6517 #define SYSCFG_EXTICR1_EXTI3_PF ((uint32_t)0x00005000) /*!< PE[3] pin */
Kojto 93:e188a91d3eaa 6518 #define SYSCFG_EXTICR1_EXTI3_PG ((uint32_t)0x00006000) /*!< PG[3] pin */
Kojto 93:e188a91d3eaa 6519
Kojto 93:e188a91d3eaa 6520 /***************** Bit definition for SYSCFG_EXTICR2 register ***************/
Kojto 93:e188a91d3eaa 6521 #define SYSCFG_EXTICR2_EXTI4 ((uint32_t)0x0000000F) /*!< EXTI 4 configuration */
Kojto 93:e188a91d3eaa 6522 #define SYSCFG_EXTICR2_EXTI5 ((uint32_t)0x000000F0) /*!< EXTI 5 configuration */
Kojto 93:e188a91d3eaa 6523 #define SYSCFG_EXTICR2_EXTI6 ((uint32_t)0x00000F00) /*!< EXTI 6 configuration */
Kojto 93:e188a91d3eaa 6524 #define SYSCFG_EXTICR2_EXTI7 ((uint32_t)0x0000F000) /*!< EXTI 7 configuration */
Kojto 93:e188a91d3eaa 6525
Kojto 93:e188a91d3eaa 6526 /*!<*
Kojto 93:e188a91d3eaa 6527 * @brief EXTI4 configuration
Kojto 93:e188a91d3eaa 6528 */
Kojto 93:e188a91d3eaa 6529 #define SYSCFG_EXTICR2_EXTI4_PA ((uint32_t)0x00000000) /*!< PA[4] pin */
Kojto 93:e188a91d3eaa 6530 #define SYSCFG_EXTICR2_EXTI4_PB ((uint32_t)0x00000001) /*!< PB[4] pin */
Kojto 93:e188a91d3eaa 6531 #define SYSCFG_EXTICR2_EXTI4_PC ((uint32_t)0x00000002) /*!< PC[4] pin */
Kojto 93:e188a91d3eaa 6532 #define SYSCFG_EXTICR2_EXTI4_PD ((uint32_t)0x00000003) /*!< PD[4] pin */
Kojto 93:e188a91d3eaa 6533 #define SYSCFG_EXTICR2_EXTI4_PE ((uint32_t)0x00000004) /*!< PE[4] pin */
Kojto 93:e188a91d3eaa 6534 #define SYSCFG_EXTICR2_EXTI4_PF ((uint32_t)0x00000005) /*!< PF[4] pin */
Kojto 93:e188a91d3eaa 6535 #define SYSCFG_EXTICR2_EXTI4_PG ((uint32_t)0x00000006) /*!< PG[4] pin */
Kojto 93:e188a91d3eaa 6536 #define SYSCFG_EXTICR2_EXTI4_PH ((uint32_t)0x00000007) /*!< PH[4] pin */
Kojto 93:e188a91d3eaa 6537
Kojto 93:e188a91d3eaa 6538 /*!<*
Kojto 93:e188a91d3eaa 6539 * @brief EXTI5 configuration
Kojto 93:e188a91d3eaa 6540 */
Kojto 93:e188a91d3eaa 6541 #define SYSCFG_EXTICR2_EXTI5_PA ((uint32_t)0x00000000) /*!< PA[5] pin */
Kojto 93:e188a91d3eaa 6542 #define SYSCFG_EXTICR2_EXTI5_PB ((uint32_t)0x00000010) /*!< PB[5] pin */
Kojto 93:e188a91d3eaa 6543 #define SYSCFG_EXTICR2_EXTI5_PC ((uint32_t)0x00000020) /*!< PC[5] pin */
Kojto 93:e188a91d3eaa 6544 #define SYSCFG_EXTICR2_EXTI5_PD ((uint32_t)0x00000030) /*!< PD[5] pin */
Kojto 93:e188a91d3eaa 6545 #define SYSCFG_EXTICR2_EXTI5_PE ((uint32_t)0x00000040) /*!< PE[5] pin */
Kojto 93:e188a91d3eaa 6546 #define SYSCFG_EXTICR2_EXTI5_PF ((uint32_t)0x00000050) /*!< PF[5] pin */
Kojto 93:e188a91d3eaa 6547 #define SYSCFG_EXTICR2_EXTI5_PG ((uint32_t)0x00000060) /*!< PG[5] pin */
Kojto 93:e188a91d3eaa 6548
Kojto 93:e188a91d3eaa 6549 /*!<*
Kojto 93:e188a91d3eaa 6550 * @brief EXTI6 configuration
Kojto 93:e188a91d3eaa 6551 */
Kojto 93:e188a91d3eaa 6552 #define SYSCFG_EXTICR2_EXTI6_PA ((uint32_t)0x00000000) /*!< PA[6] pin */
Kojto 93:e188a91d3eaa 6553 #define SYSCFG_EXTICR2_EXTI6_PB ((uint32_t)0x00000100) /*!< PB[6] pin */
Kojto 93:e188a91d3eaa 6554 #define SYSCFG_EXTICR2_EXTI6_PC ((uint32_t)0x00000200) /*!< PC[6] pin */
Kojto 93:e188a91d3eaa 6555 #define SYSCFG_EXTICR2_EXTI6_PD ((uint32_t)0x00000300) /*!< PD[6] pin */
Kojto 93:e188a91d3eaa 6556 #define SYSCFG_EXTICR2_EXTI6_PE ((uint32_t)0x00000400) /*!< PE[6] pin */
Kojto 93:e188a91d3eaa 6557 #define SYSCFG_EXTICR2_EXTI6_PF ((uint32_t)0x00000500) /*!< PF[6] pin */
Kojto 93:e188a91d3eaa 6558 #define SYSCFG_EXTICR2_EXTI6_PG ((uint32_t)0x00000600) /*!< PG[6] pin */
Kojto 93:e188a91d3eaa 6559
Kojto 93:e188a91d3eaa 6560 /*!<*
Kojto 93:e188a91d3eaa 6561 * @brief EXTI7 configuration
Kojto 93:e188a91d3eaa 6562 */
Kojto 93:e188a91d3eaa 6563 #define SYSCFG_EXTICR2_EXTI7_PA ((uint32_t)0x00000000) /*!< PA[7] pin */
Kojto 93:e188a91d3eaa 6564 #define SYSCFG_EXTICR2_EXTI7_PB ((uint32_t)0x00001000) /*!< PB[7] pin */
Kojto 93:e188a91d3eaa 6565 #define SYSCFG_EXTICR2_EXTI7_PC ((uint32_t)0x00002000) /*!< PC[7] pin */
Kojto 93:e188a91d3eaa 6566 #define SYSCFG_EXTICR2_EXTI7_PD ((uint32_t)0x00003000) /*!< PD[7] pin */
Kojto 93:e188a91d3eaa 6567 #define SYSCFG_EXTICR2_EXTI7_PE ((uint32_t)0x00004000) /*!< PE[7] pin */
Kojto 93:e188a91d3eaa 6568 #define SYSCFG_EXTICR2_EXTI7_PF ((uint32_t)0x00005000) /*!< PF[7] pin */
Kojto 93:e188a91d3eaa 6569 #define SYSCFG_EXTICR2_EXTI7_PG ((uint32_t)0x00006000) /*!< PG[7] pin */
Kojto 93:e188a91d3eaa 6570
Kojto 93:e188a91d3eaa 6571 /***************** Bit definition for SYSCFG_EXTICR3 register ***************/
Kojto 93:e188a91d3eaa 6572 #define SYSCFG_EXTICR3_EXTI8 ((uint32_t)0x0000000F) /*!< EXTI 8 configuration */
Kojto 93:e188a91d3eaa 6573 #define SYSCFG_EXTICR3_EXTI9 ((uint32_t)0x000000F0) /*!< EXTI 9 configuration */
Kojto 93:e188a91d3eaa 6574 #define SYSCFG_EXTICR3_EXTI10 ((uint32_t)0x00000F00) /*!< EXTI 10 configuration */
Kojto 93:e188a91d3eaa 6575 #define SYSCFG_EXTICR3_EXTI11 ((uint32_t)0x0000F000) /*!< EXTI 11 configuration */
Kojto 93:e188a91d3eaa 6576
Kojto 93:e188a91d3eaa 6577 /*!<*
Kojto 93:e188a91d3eaa 6578 * @brief EXTI8 configuration
Kojto 93:e188a91d3eaa 6579 */
Kojto 93:e188a91d3eaa 6580 #define SYSCFG_EXTICR3_EXTI8_PA ((uint32_t)0x00000000) /*!< PA[8] pin */
Kojto 93:e188a91d3eaa 6581 #define SYSCFG_EXTICR3_EXTI8_PB ((uint32_t)0x00000001) /*!< PB[8] pin */
Kojto 93:e188a91d3eaa 6582 #define SYSCFG_EXTICR3_EXTI8_PC ((uint32_t)0x00000002) /*!< PC[8] pin */
Kojto 93:e188a91d3eaa 6583 #define SYSCFG_EXTICR3_EXTI8_PD ((uint32_t)0x00000003) /*!< PD[8] pin */
Kojto 93:e188a91d3eaa 6584 #define SYSCFG_EXTICR3_EXTI8_PE ((uint32_t)0x00000004) /*!< PE[8] pin */
Kojto 93:e188a91d3eaa 6585 #define SYSCFG_EXTICR3_EXTI8_PF ((uint32_t)0x00000005) /*!< PF[8] pin */
Kojto 93:e188a91d3eaa 6586 #define SYSCFG_EXTICR3_EXTI8_PG ((uint32_t)0x00000006) /*!< PG[8] pin */
Kojto 93:e188a91d3eaa 6587
Kojto 93:e188a91d3eaa 6588 /*!<*
Kojto 93:e188a91d3eaa 6589 * @brief EXTI9 configuration
Kojto 93:e188a91d3eaa 6590 */
Kojto 93:e188a91d3eaa 6591 #define SYSCFG_EXTICR3_EXTI9_PA ((uint32_t)0x00000000) /*!< PA[9] pin */
Kojto 93:e188a91d3eaa 6592 #define SYSCFG_EXTICR3_EXTI9_PB ((uint32_t)0x00000010) /*!< PB[9] pin */
Kojto 93:e188a91d3eaa 6593 #define SYSCFG_EXTICR3_EXTI9_PC ((uint32_t)0x00000020) /*!< PC[9] pin */
Kojto 93:e188a91d3eaa 6594 #define SYSCFG_EXTICR3_EXTI9_PD ((uint32_t)0x00000030) /*!< PD[9] pin */
Kojto 93:e188a91d3eaa 6595 #define SYSCFG_EXTICR3_EXTI9_PE ((uint32_t)0x00000040) /*!< PE[9] pin */
Kojto 93:e188a91d3eaa 6596 #define SYSCFG_EXTICR3_EXTI9_PF ((uint32_t)0x00000050) /*!< PF[9] pin */
Kojto 93:e188a91d3eaa 6597 #define SYSCFG_EXTICR3_EXTI9_PG ((uint32_t)0x00000060) /*!< PG[9] pin */
Kojto 93:e188a91d3eaa 6598
Kojto 93:e188a91d3eaa 6599 /*!<*
Kojto 93:e188a91d3eaa 6600 * @brief EXTI10 configuration
Kojto 93:e188a91d3eaa 6601 */
Kojto 93:e188a91d3eaa 6602 #define SYSCFG_EXTICR3_EXTI10_PA ((uint32_t)0x00000000) /*!< PA[10] pin */
Kojto 93:e188a91d3eaa 6603 #define SYSCFG_EXTICR3_EXTI10_PB ((uint32_t)0x00000100) /*!< PB[10] pin */
Kojto 93:e188a91d3eaa 6604 #define SYSCFG_EXTICR3_EXTI10_PC ((uint32_t)0x00000200) /*!< PC[10] pin */
Kojto 93:e188a91d3eaa 6605 #define SYSCFG_EXTICR3_EXTI10_PD ((uint32_t)0x00000300) /*!< PD[10] pin */
Kojto 93:e188a91d3eaa 6606 #define SYSCFG_EXTICR3_EXTI10_PE ((uint32_t)0x00000400) /*!< PE[10] pin */
Kojto 93:e188a91d3eaa 6607 #define SYSCFG_EXTICR3_EXTI10_PF ((uint32_t)0x00000500) /*!< PF[10] pin */
Kojto 93:e188a91d3eaa 6608 #define SYSCFG_EXTICR3_EXTI10_PG ((uint32_t)0x00000600) /*!< PG[10] pin */
Kojto 93:e188a91d3eaa 6609
Kojto 93:e188a91d3eaa 6610 /*!<*
Kojto 93:e188a91d3eaa 6611 * @brief EXTI11 configuration
Kojto 93:e188a91d3eaa 6612 */
Kojto 93:e188a91d3eaa 6613 #define SYSCFG_EXTICR3_EXTI11_PA ((uint32_t)0x00000000) /*!< PA[11] pin */
Kojto 93:e188a91d3eaa 6614 #define SYSCFG_EXTICR3_EXTI11_PB ((uint32_t)0x00001000) /*!< PB[11] pin */
Kojto 93:e188a91d3eaa 6615 #define SYSCFG_EXTICR3_EXTI11_PC ((uint32_t)0x00002000) /*!< PC[11] pin */
Kojto 93:e188a91d3eaa 6616 #define SYSCFG_EXTICR3_EXTI11_PD ((uint32_t)0x00003000) /*!< PD[11] pin */
Kojto 93:e188a91d3eaa 6617 #define SYSCFG_EXTICR3_EXTI11_PE ((uint32_t)0x00004000) /*!< PE[11] pin */
Kojto 93:e188a91d3eaa 6618 #define SYSCFG_EXTICR3_EXTI11_PF ((uint32_t)0x00005000) /*!< PF[11] pin */
Kojto 93:e188a91d3eaa 6619 #define SYSCFG_EXTICR3_EXTI11_PG ((uint32_t)0x00006000) /*!< PG[11] pin */
Kojto 93:e188a91d3eaa 6620
Kojto 93:e188a91d3eaa 6621 /***************** Bit definition for SYSCFG_EXTICR4 register *****************/
Kojto 93:e188a91d3eaa 6622 #define SYSCFG_EXTICR4_EXTI12 ((uint32_t)0x0000000F) /*!< EXTI 12 configuration */
Kojto 93:e188a91d3eaa 6623 #define SYSCFG_EXTICR4_EXTI13 ((uint32_t)0x000000F0) /*!< EXTI 13 configuration */
Kojto 93:e188a91d3eaa 6624 #define SYSCFG_EXTICR4_EXTI14 ((uint32_t)0x00000F00) /*!< EXTI 14 configuration */
Kojto 93:e188a91d3eaa 6625 #define SYSCFG_EXTICR4_EXTI15 ((uint32_t)0x0000F000) /*!< EXTI 15 configuration */
Kojto 93:e188a91d3eaa 6626
Kojto 93:e188a91d3eaa 6627 /*!<*
Kojto 93:e188a91d3eaa 6628 * @brief EXTI12 configuration
Kojto 93:e188a91d3eaa 6629 */
Kojto 93:e188a91d3eaa 6630 #define SYSCFG_EXTICR4_EXTI12_PA ((uint32_t)0x00000000) /*!< PA[12] pin */
Kojto 93:e188a91d3eaa 6631 #define SYSCFG_EXTICR4_EXTI12_PB ((uint32_t)0x00000001) /*!< PB[12] pin */
Kojto 93:e188a91d3eaa 6632 #define SYSCFG_EXTICR4_EXTI12_PC ((uint32_t)0x00000002) /*!< PC[12] pin */
Kojto 93:e188a91d3eaa 6633 #define SYSCFG_EXTICR4_EXTI12_PD ((uint32_t)0x00000003) /*!< PD[12] pin */
Kojto 93:e188a91d3eaa 6634 #define SYSCFG_EXTICR4_EXTI12_PE ((uint32_t)0x00000004) /*!< PE[12] pin */
Kojto 93:e188a91d3eaa 6635 #define SYSCFG_EXTICR4_EXTI12_PF ((uint32_t)0x00000005) /*!< PF[12] pin */
Kojto 93:e188a91d3eaa 6636 #define SYSCFG_EXTICR4_EXTI12_PG ((uint32_t)0x00000006) /*!< PG[12] pin */
Kojto 93:e188a91d3eaa 6637
Kojto 93:e188a91d3eaa 6638 /*!<*
Kojto 93:e188a91d3eaa 6639 * @brief EXTI13 configuration
Kojto 93:e188a91d3eaa 6640 */
Kojto 93:e188a91d3eaa 6641 #define SYSCFG_EXTICR4_EXTI13_PA ((uint32_t)0x00000000) /*!< PA[13] pin */
Kojto 93:e188a91d3eaa 6642 #define SYSCFG_EXTICR4_EXTI13_PB ((uint32_t)0x00000010) /*!< PB[13] pin */
Kojto 93:e188a91d3eaa 6643 #define SYSCFG_EXTICR4_EXTI13_PC ((uint32_t)0x00000020) /*!< PC[13] pin */
Kojto 93:e188a91d3eaa 6644 #define SYSCFG_EXTICR4_EXTI13_PD ((uint32_t)0x00000030) /*!< PD[13] pin */
Kojto 93:e188a91d3eaa 6645 #define SYSCFG_EXTICR4_EXTI13_PE ((uint32_t)0x00000040) /*!< PE[13] pin */
Kojto 93:e188a91d3eaa 6646 #define SYSCFG_EXTICR4_EXTI13_PF ((uint32_t)0x00000050) /*!< PF[13] pin */
Kojto 93:e188a91d3eaa 6647 #define SYSCFG_EXTICR4_EXTI13_PG ((uint32_t)0x00000060) /*!< PG[13] pin */
Kojto 93:e188a91d3eaa 6648
Kojto 93:e188a91d3eaa 6649 /*!<*
Kojto 93:e188a91d3eaa 6650 * @brief EXTI14 configuration
Kojto 93:e188a91d3eaa 6651 */
Kojto 93:e188a91d3eaa 6652 #define SYSCFG_EXTICR4_EXTI14_PA ((uint32_t)0x00000000) /*!< PA[14] pin */
Kojto 93:e188a91d3eaa 6653 #define SYSCFG_EXTICR4_EXTI14_PB ((uint32_t)0x00000100) /*!< PB[14] pin */
Kojto 93:e188a91d3eaa 6654 #define SYSCFG_EXTICR4_EXTI14_PC ((uint32_t)0x00000200) /*!< PC[14] pin */
Kojto 93:e188a91d3eaa 6655 #define SYSCFG_EXTICR4_EXTI14_PD ((uint32_t)0x00000300) /*!< PD[14] pin */
Kojto 93:e188a91d3eaa 6656 #define SYSCFG_EXTICR4_EXTI14_PE ((uint32_t)0x00000400) /*!< PE[14] pin */
Kojto 93:e188a91d3eaa 6657 #define SYSCFG_EXTICR4_EXTI14_PF ((uint32_t)0x00000500) /*!< PF[14] pin */
Kojto 93:e188a91d3eaa 6658 #define SYSCFG_EXTICR4_EXTI14_PG ((uint32_t)0x00000600) /*!< PG[14] pin */
Kojto 93:e188a91d3eaa 6659
Kojto 93:e188a91d3eaa 6660 /*!<*
Kojto 93:e188a91d3eaa 6661 * @brief EXTI15 configuration
Kojto 93:e188a91d3eaa 6662 */
Kojto 93:e188a91d3eaa 6663 #define SYSCFG_EXTICR4_EXTI15_PA ((uint32_t)0x00000000) /*!< PA[15] pin */
Kojto 93:e188a91d3eaa 6664 #define SYSCFG_EXTICR4_EXTI15_PB ((uint32_t)0x00001000) /*!< PB[15] pin */
Kojto 93:e188a91d3eaa 6665 #define SYSCFG_EXTICR4_EXTI15_PC ((uint32_t)0x00002000) /*!< PC[15] pin */
Kojto 93:e188a91d3eaa 6666 #define SYSCFG_EXTICR4_EXTI15_PD ((uint32_t)0x00003000) /*!< PD[15] pin */
Kojto 93:e188a91d3eaa 6667 #define SYSCFG_EXTICR4_EXTI15_PE ((uint32_t)0x00004000) /*!< PE[15] pin */
Kojto 93:e188a91d3eaa 6668 #define SYSCFG_EXTICR4_EXTI15_PF ((uint32_t)0x00005000) /*!< PF[15] pin */
Kojto 93:e188a91d3eaa 6669 #define SYSCFG_EXTICR4_EXTI15_PG ((uint32_t)0x00006000) /*!< PG[15] pin */
Kojto 93:e188a91d3eaa 6670
Kojto 93:e188a91d3eaa 6671 /***************** Bit definition for SYSCFG_CFGR2 register *****************/
Kojto 93:e188a91d3eaa 6672 #define SYSCFG_CFGR2_LOCKUP_LOCK ((uint32_t)0x00000001) /*!< Enables and locks the LOCKUP (Hardfault) output of CortexM4 with Break Input of TIM1/8/15/16/17/20 */
Kojto 93:e188a91d3eaa 6673 #define SYSCFG_CFGR2_SRAM_PARITY_LOCK ((uint32_t)0x00000002) /*!< Enables and locks the SRAM_PARITY error signal with Break Input of TIM1/8/15/16/17/20 */
Kojto 93:e188a91d3eaa 6674 #define SYSCFG_CFGR2_PVD_LOCK ((uint32_t)0x00000004) /*!< Enables and locks the PVD connection with TIM1/8/15/16/17/20 Break Input, as well as the PVDE and PLS[2:0] in the PWR_CR register */
Kojto 93:e188a91d3eaa 6675 #define SYSCFG_CFGR2_BYP_ADDR_PAR ((uint32_t)0x00000010) /*!< Disables the adddress parity check on RAM */
Kojto 93:e188a91d3eaa 6676 #define SYSCFG_CFGR2_SRAM_PE ((uint32_t)0x00000100) /*!< SRAM Parity error flag */
Kojto 93:e188a91d3eaa 6677
Kojto 93:e188a91d3eaa 6678 /***************** Bit definition for SYSCFG_CFGR4 register *****************/
Kojto 93:e188a91d3eaa 6679 #define SYSCFG_CFGR4_ADC12_EXT2_RMP ((uint32_t)0x00000001) /*!< ADC12 regular channel EXT2 remap */
Kojto 93:e188a91d3eaa 6680 #define SYSCFG_CFGR4_ADC12_EXT3_RMP ((uint32_t)0x00000002) /*!< ADC12 regular channel EXT3 remap */
Kojto 93:e188a91d3eaa 6681 #define SYSCFG_CFGR4_ADC12_EXT5_RMP ((uint32_t)0x00000004) /*!< ADC12 regular channel EXT5 remap */
Kojto 93:e188a91d3eaa 6682 #define SYSCFG_CFGR4_ADC12_EXT13_RMP ((uint32_t)0x00000008) /*!< ADC12 regular channel EXT13 remap */
Kojto 93:e188a91d3eaa 6683 #define SYSCFG_CFGR4_ADC12_EXT15_RMP ((uint32_t)0x00000010) /*!< ADC12 regular channel EXT15 remap */
Kojto 93:e188a91d3eaa 6684 #define SYSCFG_CFGR4_ADC12_JEXT3_RMP ((uint32_t)0x00000020) /*!< ADC12 injected channel JEXT3 remap */
Kojto 93:e188a91d3eaa 6685 #define SYSCFG_CFGR4_ADC12_JEXT6_RMP ((uint32_t)0x00000040) /*!< ADC12 injected channel JEXT6 remap */
Kojto 93:e188a91d3eaa 6686 #define SYSCFG_CFGR4_ADC12_JEXT13_RMP ((uint32_t)0x00000080) /*!< ADC12 injected channel JEXT13 remap */
Kojto 93:e188a91d3eaa 6687 #define SYSCFG_CFGR4_ADC34_EXT5_RMP ((uint32_t)0x00000100) /*!< ADC34 regular channel EXT5 remap */
Kojto 93:e188a91d3eaa 6688 #define SYSCFG_CFGR4_ADC34_EXT6_RMP ((uint32_t)0x00000200) /*!< ADC34 regular channel EXT6 remap */
Kojto 93:e188a91d3eaa 6689 #define SYSCFG_CFGR4_ADC34_EXT15_RMP ((uint32_t)0x00000400) /*!< ADC34 regular channel EXT15 remap */
Kojto 93:e188a91d3eaa 6690 #define SYSCFG_CFGR4_ADC34_JEXT5_RMP ((uint32_t)0x00000800) /*!< ADC34 injected channel JEXT5 remap */
Kojto 93:e188a91d3eaa 6691 #define SYSCFG_CFGR4_ADC34_JEXT11_RMP ((uint32_t)0x00001000) /*!< ADC34 injected channel JEXT11 remap */
Kojto 93:e188a91d3eaa 6692 #define SYSCFG_CFGR4_ADC34_JEXT14_RMP ((uint32_t)0x00002000) /*!< ADC34 injected channel JEXT14 remap */
Kojto 93:e188a91d3eaa 6693
Kojto 93:e188a91d3eaa 6694 /******************************************************************************/
Kojto 93:e188a91d3eaa 6695 /* */
Kojto 93:e188a91d3eaa 6696 /* TIM */
Kojto 93:e188a91d3eaa 6697 /* */
Kojto 93:e188a91d3eaa 6698 /******************************************************************************/
Kojto 93:e188a91d3eaa 6699 /******************* Bit definition for TIM_CR1 register ********************/
Kojto 93:e188a91d3eaa 6700 #define TIM_CR1_CEN ((uint32_t)0x00000001) /*!<Counter enable */
Kojto 93:e188a91d3eaa 6701 #define TIM_CR1_UDIS ((uint32_t)0x00000002) /*!<Update disable */
Kojto 93:e188a91d3eaa 6702 #define TIM_CR1_URS ((uint32_t)0x00000004) /*!<Update request source */
Kojto 93:e188a91d3eaa 6703 #define TIM_CR1_OPM ((uint32_t)0x00000008) /*!<One pulse mode */
Kojto 93:e188a91d3eaa 6704 #define TIM_CR1_DIR ((uint32_t)0x00000010) /*!<Direction */
Kojto 93:e188a91d3eaa 6705
Kojto 93:e188a91d3eaa 6706 #define TIM_CR1_CMS ((uint32_t)0x00000060) /*!<CMS[1:0] bits (Center-aligned mode selection) */
Kojto 93:e188a91d3eaa 6707 #define TIM_CR1_CMS_0 ((uint32_t)0x00000020) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6708 #define TIM_CR1_CMS_1 ((uint32_t)0x00000040) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6709
Kojto 93:e188a91d3eaa 6710 #define TIM_CR1_ARPE ((uint32_t)0x00000080) /*!<Auto-reload preload enable */
Kojto 93:e188a91d3eaa 6711
Kojto 93:e188a91d3eaa 6712 #define TIM_CR1_CKD ((uint32_t)0x00000300) /*!<CKD[1:0] bits (clock division) */
Kojto 93:e188a91d3eaa 6713 #define TIM_CR1_CKD_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6714 #define TIM_CR1_CKD_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6715
Kojto 93:e188a91d3eaa 6716 #define TIM_CR1_UIFREMAP ((uint32_t)0x00000800) /*!<Update interrupt flag remap */
Kojto 93:e188a91d3eaa 6717
Kojto 93:e188a91d3eaa 6718 /******************* Bit definition for TIM_CR2 register ********************/
Kojto 93:e188a91d3eaa 6719 #define TIM_CR2_CCPC ((uint32_t)0x00000001) /*!<Capture/Compare Preloaded Control */
Kojto 93:e188a91d3eaa 6720 #define TIM_CR2_CCUS ((uint32_t)0x00000004) /*!<Capture/Compare Control Update Selection */
Kojto 93:e188a91d3eaa 6721 #define TIM_CR2_CCDS ((uint32_t)0x00000008) /*!<Capture/Compare DMA Selection */
Kojto 93:e188a91d3eaa 6722
Kojto 93:e188a91d3eaa 6723 #define TIM_CR2_MMS ((uint32_t)0x00000070) /*!<MMS[2:0] bits (Master Mode Selection) */
Kojto 93:e188a91d3eaa 6724 #define TIM_CR2_MMS_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6725 #define TIM_CR2_MMS_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6726 #define TIM_CR2_MMS_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6727
Kojto 93:e188a91d3eaa 6728 #define TIM_CR2_TI1S ((uint32_t)0x00000080) /*!<TI1 Selection */
Kojto 93:e188a91d3eaa 6729 #define TIM_CR2_OIS1 ((uint32_t)0x00000100) /*!<Output Idle state 1 (OC1 output) */
Kojto 93:e188a91d3eaa 6730 #define TIM_CR2_OIS1N ((uint32_t)0x00000200) /*!<Output Idle state 1 (OC1N output) */
Kojto 93:e188a91d3eaa 6731 #define TIM_CR2_OIS2 ((uint32_t)0x00000400) /*!<Output Idle state 2 (OC2 output) */
Kojto 93:e188a91d3eaa 6732 #define TIM_CR2_OIS2N ((uint32_t)0x00000800) /*!<Output Idle state 2 (OC2N output) */
Kojto 93:e188a91d3eaa 6733 #define TIM_CR2_OIS3 ((uint32_t)0x00001000) /*!<Output Idle state 3 (OC3 output) */
Kojto 93:e188a91d3eaa 6734 #define TIM_CR2_OIS3N ((uint32_t)0x00002000) /*!<Output Idle state 3 (OC3N output) */
Kojto 93:e188a91d3eaa 6735 #define TIM_CR2_OIS4 ((uint32_t)0x00004000) /*!<Output Idle state 4 (OC4 output) */
Kojto 93:e188a91d3eaa 6736 #define TIM_CR2_OIS5 ((uint32_t)0x00010000) /*!<Output Idle state 4 (OC4 output) */
Kojto 93:e188a91d3eaa 6737 #define TIM_CR2_OIS6 ((uint32_t)0x00040000) /*!<Output Idle state 4 (OC4 output) */
Kojto 93:e188a91d3eaa 6738
Kojto 93:e188a91d3eaa 6739 #define TIM_CR2_MMS2 ((uint32_t)0x00F00000) /*!<MMS[2:0] bits (Master Mode Selection) */
Kojto 93:e188a91d3eaa 6740 #define TIM_CR2_MMS2_0 ((uint32_t)0x00100000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6741 #define TIM_CR2_MMS2_1 ((uint32_t)0x00200000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6742 #define TIM_CR2_MMS2_2 ((uint32_t)0x00400000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6743 #define TIM_CR2_MMS2_3 ((uint32_t)0x00800000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6744
Kojto 93:e188a91d3eaa 6745 /******************* Bit definition for TIM_SMCR register *******************/
Kojto 93:e188a91d3eaa 6746 #define TIM_SMCR_SMS ((uint32_t)0x00010007) /*!<SMS[2:0] bits (Slave mode selection) */
Kojto 93:e188a91d3eaa 6747 #define TIM_SMCR_SMS_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6748 #define TIM_SMCR_SMS_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6749 #define TIM_SMCR_SMS_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6750 #define TIM_SMCR_SMS_3 ((uint32_t)0x00010000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6751
Kojto 93:e188a91d3eaa 6752 #define TIM_SMCR_OCCS ((uint32_t)0x00000008) /*!< OCREF clear selection */
Kojto 93:e188a91d3eaa 6753
Kojto 93:e188a91d3eaa 6754 #define TIM_SMCR_TS ((uint32_t)0x00000070) /*!<TS[2:0] bits (Trigger selection) */
Kojto 93:e188a91d3eaa 6755 #define TIM_SMCR_TS_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6756 #define TIM_SMCR_TS_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6757 #define TIM_SMCR_TS_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6758
Kojto 93:e188a91d3eaa 6759 #define TIM_SMCR_MSM ((uint32_t)0x00000080) /*!<Master/slave mode */
Kojto 93:e188a91d3eaa 6760
Kojto 93:e188a91d3eaa 6761 #define TIM_SMCR_ETF ((uint32_t)0x00000F00) /*!<ETF[3:0] bits (External trigger filter) */
Kojto 93:e188a91d3eaa 6762 #define TIM_SMCR_ETF_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6763 #define TIM_SMCR_ETF_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6764 #define TIM_SMCR_ETF_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6765 #define TIM_SMCR_ETF_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6766
Kojto 93:e188a91d3eaa 6767 #define TIM_SMCR_ETPS ((uint32_t)0x00003000) /*!<ETPS[1:0] bits (External trigger prescaler) */
Kojto 93:e188a91d3eaa 6768 #define TIM_SMCR_ETPS_0 ((uint32_t)0x00001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6769 #define TIM_SMCR_ETPS_1 ((uint32_t)0x00002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6770
Kojto 93:e188a91d3eaa 6771 #define TIM_SMCR_ECE ((uint32_t)0x00004000) /*!<External clock enable */
Kojto 93:e188a91d3eaa 6772 #define TIM_SMCR_ETP ((uint32_t)0x00008000) /*!<External trigger polarity */
Kojto 93:e188a91d3eaa 6773
Kojto 93:e188a91d3eaa 6774 /******************* Bit definition for TIM_DIER register *******************/
Kojto 93:e188a91d3eaa 6775 #define TIM_DIER_UIE ((uint32_t)0x00000001) /*!<Update interrupt enable */
Kojto 93:e188a91d3eaa 6776 #define TIM_DIER_CC1IE ((uint32_t)0x00000002) /*!<Capture/Compare 1 interrupt enable */
Kojto 93:e188a91d3eaa 6777 #define TIM_DIER_CC2IE ((uint32_t)0x00000004) /*!<Capture/Compare 2 interrupt enable */
Kojto 93:e188a91d3eaa 6778 #define TIM_DIER_CC3IE ((uint32_t)0x00000008) /*!<Capture/Compare 3 interrupt enable */
Kojto 93:e188a91d3eaa 6779 #define TIM_DIER_CC4IE ((uint32_t)0x00000010) /*!<Capture/Compare 4 interrupt enable */
Kojto 93:e188a91d3eaa 6780 #define TIM_DIER_COMIE ((uint32_t)0x00000020) /*!<COM interrupt enable */
Kojto 93:e188a91d3eaa 6781 #define TIM_DIER_TIE ((uint32_t)0x00000040) /*!<Trigger interrupt enable */
Kojto 93:e188a91d3eaa 6782 #define TIM_DIER_BIE ((uint32_t)0x00000080) /*!<Break interrupt enable */
Kojto 93:e188a91d3eaa 6783 #define TIM_DIER_UDE ((uint32_t)0x00000100) /*!<Update DMA request enable */
Kojto 93:e188a91d3eaa 6784 #define TIM_DIER_CC1DE ((uint32_t)0x00000200) /*!<Capture/Compare 1 DMA request enable */
Kojto 93:e188a91d3eaa 6785 #define TIM_DIER_CC2DE ((uint32_t)0x00000400) /*!<Capture/Compare 2 DMA request enable */
Kojto 93:e188a91d3eaa 6786 #define TIM_DIER_CC3DE ((uint32_t)0x00000800) /*!<Capture/Compare 3 DMA request enable */
Kojto 93:e188a91d3eaa 6787 #define TIM_DIER_CC4DE ((uint32_t)0x00001000) /*!<Capture/Compare 4 DMA request enable */
Kojto 93:e188a91d3eaa 6788 #define TIM_DIER_COMDE ((uint32_t)0x00002000) /*!<COM DMA request enable */
Kojto 93:e188a91d3eaa 6789 #define TIM_DIER_TDE ((uint32_t)0x00004000) /*!<Trigger DMA request enable */
Kojto 93:e188a91d3eaa 6790
Kojto 93:e188a91d3eaa 6791 /******************** Bit definition for TIM_SR register ********************/
Kojto 93:e188a91d3eaa 6792 #define TIM_SR_UIF ((uint32_t)0x00000001) /*!<Update interrupt Flag */
Kojto 93:e188a91d3eaa 6793 #define TIM_SR_CC1IF ((uint32_t)0x00000002) /*!<Capture/Compare 1 interrupt Flag */
Kojto 93:e188a91d3eaa 6794 #define TIM_SR_CC2IF ((uint32_t)0x00000004) /*!<Capture/Compare 2 interrupt Flag */
Kojto 93:e188a91d3eaa 6795 #define TIM_SR_CC3IF ((uint32_t)0x00000008) /*!<Capture/Compare 3 interrupt Flag */
Kojto 93:e188a91d3eaa 6796 #define TIM_SR_CC4IF ((uint32_t)0x00000010) /*!<Capture/Compare 4 interrupt Flag */
Kojto 93:e188a91d3eaa 6797 #define TIM_SR_COMIF ((uint32_t)0x00000020) /*!<COM interrupt Flag */
Kojto 93:e188a91d3eaa 6798 #define TIM_SR_TIF ((uint32_t)0x00000040) /*!<Trigger interrupt Flag */
Kojto 93:e188a91d3eaa 6799 #define TIM_SR_BIF ((uint32_t)0x00000080) /*!<Break interrupt Flag */
Kojto 93:e188a91d3eaa 6800 #define TIM_SR_B2IF ((uint32_t)0x00000100) /*!<Break2 interrupt Flag */
Kojto 93:e188a91d3eaa 6801 #define TIM_SR_CC1OF ((uint32_t)0x00000200) /*!<Capture/Compare 1 Overcapture Flag */
Kojto 93:e188a91d3eaa 6802 #define TIM_SR_CC2OF ((uint32_t)0x00000400) /*!<Capture/Compare 2 Overcapture Flag */
Kojto 93:e188a91d3eaa 6803 #define TIM_SR_CC3OF ((uint32_t)0x00000800) /*!<Capture/Compare 3 Overcapture Flag */
Kojto 93:e188a91d3eaa 6804 #define TIM_SR_CC4OF ((uint32_t)0x00001000) /*!<Capture/Compare 4 Overcapture Flag */
Kojto 93:e188a91d3eaa 6805 #define TIM_SR_CC5IF ((uint32_t)0x00010000) /*!<Capture/Compare 5 interrupt Flag */
Kojto 93:e188a91d3eaa 6806 #define TIM_SR_CC6IF ((uint32_t)0x00020000) /*!<Capture/Compare 6 interrupt Flag */
Kojto 93:e188a91d3eaa 6807
Kojto 93:e188a91d3eaa 6808 /******************* Bit definition for TIM_EGR register ********************/
Kojto 93:e188a91d3eaa 6809 #define TIM_EGR_UG ((uint32_t)0x00000001) /*!<Update Generation */
Kojto 93:e188a91d3eaa 6810 #define TIM_EGR_CC1G ((uint32_t)0x00000002) /*!<Capture/Compare 1 Generation */
Kojto 93:e188a91d3eaa 6811 #define TIM_EGR_CC2G ((uint32_t)0x00000004) /*!<Capture/Compare 2 Generation */
Kojto 93:e188a91d3eaa 6812 #define TIM_EGR_CC3G ((uint32_t)0x00000008) /*!<Capture/Compare 3 Generation */
Kojto 93:e188a91d3eaa 6813 #define TIM_EGR_CC4G ((uint32_t)0x00000010) /*!<Capture/Compare 4 Generation */
Kojto 93:e188a91d3eaa 6814 #define TIM_EGR_COMG ((uint32_t)0x00000020) /*!<Capture/Compare Control Update Generation */
Kojto 93:e188a91d3eaa 6815 #define TIM_EGR_TG ((uint32_t)0x00000040) /*!<Trigger Generation */
Kojto 93:e188a91d3eaa 6816 #define TIM_EGR_BG ((uint32_t)0x00000080) /*!<Break Generation */
Kojto 93:e188a91d3eaa 6817 #define TIM_EGR_B2G ((uint32_t)0x00000100) /*!<Break Generation */
Kojto 93:e188a91d3eaa 6818
Kojto 93:e188a91d3eaa 6819 /****************** Bit definition for TIM_CCMR1 register *******************/
Kojto 93:e188a91d3eaa 6820 #define TIM_CCMR1_CC1S ((uint32_t)0x00000003) /*!<CC1S[1:0] bits (Capture/Compare 1 Selection) */
Kojto 93:e188a91d3eaa 6821 #define TIM_CCMR1_CC1S_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6822 #define TIM_CCMR1_CC1S_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6823
Kojto 93:e188a91d3eaa 6824 #define TIM_CCMR1_OC1FE ((uint32_t)0x00000004) /*!<Output Compare 1 Fast enable */
Kojto 93:e188a91d3eaa 6825 #define TIM_CCMR1_OC1PE ((uint32_t)0x00000008) /*!<Output Compare 1 Preload enable */
Kojto 93:e188a91d3eaa 6826
Kojto 93:e188a91d3eaa 6827 #define TIM_CCMR1_OC1M ((uint32_t)0x00010070) /*!<OC1M[2:0] bits (Output Compare 1 Mode) */
Kojto 93:e188a91d3eaa 6828 #define TIM_CCMR1_OC1M_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6829 #define TIM_CCMR1_OC1M_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6830 #define TIM_CCMR1_OC1M_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6831 #define TIM_CCMR1_OC1M_3 ((uint32_t)0x00010000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6832
Kojto 93:e188a91d3eaa 6833 #define TIM_CCMR1_OC1CE ((uint32_t)0x00000080) /*!<Output Compare 1Clear Enable */
Kojto 93:e188a91d3eaa 6834
Kojto 93:e188a91d3eaa 6835 #define TIM_CCMR1_CC2S ((uint32_t)0x00000300) /*!<CC2S[1:0] bits (Capture/Compare 2 Selection) */
Kojto 93:e188a91d3eaa 6836 #define TIM_CCMR1_CC2S_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6837 #define TIM_CCMR1_CC2S_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6838
Kojto 93:e188a91d3eaa 6839 #define TIM_CCMR1_OC2FE ((uint32_t)0x00000400) /*!<Output Compare 2 Fast enable */
Kojto 93:e188a91d3eaa 6840 #define TIM_CCMR1_OC2PE ((uint32_t)0x00000800) /*!<Output Compare 2 Preload enable */
Kojto 93:e188a91d3eaa 6841
Kojto 93:e188a91d3eaa 6842 #define TIM_CCMR1_OC2M ((uint32_t)0x01007000) /*!<OC2M[2:0] bits (Output Compare 2 Mode) */
Kojto 93:e188a91d3eaa 6843 #define TIM_CCMR1_OC2M_0 ((uint32_t)0x00001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6844 #define TIM_CCMR1_OC2M_1 ((uint32_t)0x00002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6845 #define TIM_CCMR1_OC2M_2 ((uint32_t)0x00004000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6846 #define TIM_CCMR1_OC2M_3 ((uint32_t)0x01000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6847
Kojto 93:e188a91d3eaa 6848 #define TIM_CCMR1_OC2CE ((uint32_t)0x00008000) /*!<Output Compare 2 Clear Enable */
Kojto 93:e188a91d3eaa 6849
Kojto 93:e188a91d3eaa 6850 /*----------------------------------------------------------------------------*/
Kojto 93:e188a91d3eaa 6851
Kojto 93:e188a91d3eaa 6852 #define TIM_CCMR1_IC1PSC ((uint32_t)0x0000000C) /*!<IC1PSC[1:0] bits (Input Capture 1 Prescaler) */
Kojto 93:e188a91d3eaa 6853 #define TIM_CCMR1_IC1PSC_0 ((uint32_t)0x00000004) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6854 #define TIM_CCMR1_IC1PSC_1 ((uint32_t)0x00000008) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6855
Kojto 93:e188a91d3eaa 6856 #define TIM_CCMR1_IC1F ((uint32_t)0x000000F0) /*!<IC1F[3:0] bits (Input Capture 1 Filter) */
Kojto 93:e188a91d3eaa 6857 #define TIM_CCMR1_IC1F_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6858 #define TIM_CCMR1_IC1F_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6859 #define TIM_CCMR1_IC1F_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6860 #define TIM_CCMR1_IC1F_3 ((uint32_t)0x00000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6861
Kojto 93:e188a91d3eaa 6862 #define TIM_CCMR1_IC2PSC ((uint32_t)0x00000C00) /*!<IC2PSC[1:0] bits (Input Capture 2 Prescaler) */
Kojto 93:e188a91d3eaa 6863 #define TIM_CCMR1_IC2PSC_0 ((uint32_t)0x00000400) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6864 #define TIM_CCMR1_IC2PSC_1 ((uint32_t)0x00000800) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6865
Kojto 93:e188a91d3eaa 6866 #define TIM_CCMR1_IC2F ((uint32_t)0x0000F000) /*!<IC2F[3:0] bits (Input Capture 2 Filter) */
Kojto 93:e188a91d3eaa 6867 #define TIM_CCMR1_IC2F_0 ((uint32_t)0x00001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6868 #define TIM_CCMR1_IC2F_1 ((uint32_t)0x00002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6869 #define TIM_CCMR1_IC2F_2 ((uint32_t)0x00004000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6870 #define TIM_CCMR1_IC2F_3 ((uint32_t)0x00008000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6871
Kojto 93:e188a91d3eaa 6872 /****************** Bit definition for TIM_CCMR2 register *******************/
Kojto 93:e188a91d3eaa 6873 #define TIM_CCMR2_CC3S ((uint32_t)0x00000003) /*!<CC3S[1:0] bits (Capture/Compare 3 Selection) */
Kojto 93:e188a91d3eaa 6874 #define TIM_CCMR2_CC3S_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6875 #define TIM_CCMR2_CC3S_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6876
Kojto 93:e188a91d3eaa 6877 #define TIM_CCMR2_OC3FE ((uint32_t)0x00000004) /*!<Output Compare 3 Fast enable */
Kojto 93:e188a91d3eaa 6878 #define TIM_CCMR2_OC3PE ((uint32_t)0x00000008) /*!<Output Compare 3 Preload enable */
Kojto 93:e188a91d3eaa 6879
Kojto 93:e188a91d3eaa 6880 #define TIM_CCMR2_OC3M ((uint32_t)0x00010070) /*!<OC3M[2:0] bits (Output Compare 3 Mode) */
Kojto 93:e188a91d3eaa 6881 #define TIM_CCMR2_OC3M_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6882 #define TIM_CCMR2_OC3M_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6883 #define TIM_CCMR2_OC3M_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6884 #define TIM_CCMR2_OC3M_3 ((uint32_t)0x00010000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6885
Kojto 93:e188a91d3eaa 6886 #define TIM_CCMR2_OC3CE ((uint32_t)0x00000080) /*!<Output Compare 3 Clear Enable */
Kojto 93:e188a91d3eaa 6887
Kojto 93:e188a91d3eaa 6888 #define TIM_CCMR2_CC4S ((uint32_t)0x00000300) /*!<CC4S[1:0] bits (Capture/Compare 4 Selection) */
Kojto 93:e188a91d3eaa 6889 #define TIM_CCMR2_CC4S_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6890 #define TIM_CCMR2_CC4S_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6891
Kojto 93:e188a91d3eaa 6892 #define TIM_CCMR2_OC4FE ((uint32_t)0x00000400) /*!<Output Compare 4 Fast enable */
Kojto 93:e188a91d3eaa 6893 #define TIM_CCMR2_OC4PE ((uint32_t)0x00000800) /*!<Output Compare 4 Preload enable */
Kojto 93:e188a91d3eaa 6894
Kojto 93:e188a91d3eaa 6895 #define TIM_CCMR2_OC4M ((uint32_t)0x01007000) /*!<OC4M[2:0] bits (Output Compare 4 Mode) */
Kojto 93:e188a91d3eaa 6896 #define TIM_CCMR2_OC4M_0 ((uint32_t)0x00001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6897 #define TIM_CCMR2_OC4M_1 ((uint32_t)0x00002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6898 #define TIM_CCMR2_OC4M_2 ((uint32_t)0x00004000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6899 #define TIM_CCMR2_OC4M_3 ((uint32_t)0x01000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6900
Kojto 93:e188a91d3eaa 6901 #define TIM_CCMR2_OC4CE ((uint32_t)0x00008000) /*!<Output Compare 4 Clear Enable */
Kojto 93:e188a91d3eaa 6902
Kojto 93:e188a91d3eaa 6903 /*----------------------------------------------------------------------------*/
Kojto 93:e188a91d3eaa 6904
Kojto 93:e188a91d3eaa 6905 #define TIM_CCMR2_IC3PSC ((uint32_t)0x00000000000C) /*!<IC3PSC[1:0] bits (Input Capture 3 Prescaler) */
Kojto 93:e188a91d3eaa 6906 #define TIM_CCMR2_IC3PSC_0 ((uint32_t)0x000000000004) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6907 #define TIM_CCMR2_IC3PSC_1 ((uint32_t)0x000000000008) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6908
Kojto 93:e188a91d3eaa 6909 #define TIM_CCMR2_IC3F ((uint32_t)0x0000000000F0) /*!<IC3F[3:0] bits (Input Capture 3 Filter) */
Kojto 93:e188a91d3eaa 6910 #define TIM_CCMR2_IC3F_0 ((uint32_t)0x000000000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6911 #define TIM_CCMR2_IC3F_1 ((uint32_t)0x000000000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6912 #define TIM_CCMR2_IC3F_2 ((uint32_t)0x000000000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6913 #define TIM_CCMR2_IC3F_3 ((uint32_t)0x000000000080) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6914
Kojto 93:e188a91d3eaa 6915 #define TIM_CCMR2_IC4PSC ((uint32_t)0x000000000C00) /*!<IC4PSC[1:0] bits (Input Capture 4 Prescaler) */
Kojto 93:e188a91d3eaa 6916 #define TIM_CCMR2_IC4PSC_0 ((uint32_t)0x000000000400) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6917 #define TIM_CCMR2_IC4PSC_1 ((uint32_t)0x000000000800) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6918
Kojto 93:e188a91d3eaa 6919 #define TIM_CCMR2_IC4F ((uint32_t)0x00000000F000) /*!<IC4F[3:0] bits (Input Capture 4 Filter) */
Kojto 93:e188a91d3eaa 6920 #define TIM_CCMR2_IC4F_0 ((uint32_t)0x000000001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6921 #define TIM_CCMR2_IC4F_1 ((uint32_t)0x000000002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6922 #define TIM_CCMR2_IC4F_2 ((uint32_t)0x000000004000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6923 #define TIM_CCMR2_IC4F_3 ((uint32_t)0x000000008000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6924
Kojto 93:e188a91d3eaa 6925 /******************* Bit definition for TIM_CCER register *******************/
Kojto 93:e188a91d3eaa 6926 #define TIM_CCER_CC1E ((uint32_t)0x00000001) /*!<Capture/Compare 1 output enable */
Kojto 93:e188a91d3eaa 6927 #define TIM_CCER_CC1P ((uint32_t)0x00000002) /*!<Capture/Compare 1 output Polarity */
Kojto 93:e188a91d3eaa 6928 #define TIM_CCER_CC1NE ((uint32_t)0x00000004) /*!<Capture/Compare 1 Complementary output enable */
Kojto 93:e188a91d3eaa 6929 #define TIM_CCER_CC1NP ((uint32_t)0x00000008) /*!<Capture/Compare 1 Complementary output Polarity */
Kojto 93:e188a91d3eaa 6930 #define TIM_CCER_CC2E ((uint32_t)0x00000010) /*!<Capture/Compare 2 output enable */
Kojto 93:e188a91d3eaa 6931 #define TIM_CCER_CC2P ((uint32_t)0x00000020) /*!<Capture/Compare 2 output Polarity */
Kojto 93:e188a91d3eaa 6932 #define TIM_CCER_CC2NE ((uint32_t)0x00000040) /*!<Capture/Compare 2 Complementary output enable */
Kojto 93:e188a91d3eaa 6933 #define TIM_CCER_CC2NP ((uint32_t)0x00000080) /*!<Capture/Compare 2 Complementary output Polarity */
Kojto 93:e188a91d3eaa 6934 #define TIM_CCER_CC3E ((uint32_t)0x00000100) /*!<Capture/Compare 3 output enable */
Kojto 93:e188a91d3eaa 6935 #define TIM_CCER_CC3P ((uint32_t)0x00000200) /*!<Capture/Compare 3 output Polarity */
Kojto 93:e188a91d3eaa 6936 #define TIM_CCER_CC3NE ((uint32_t)0x00000400) /*!<Capture/Compare 3 Complementary output enable */
Kojto 93:e188a91d3eaa 6937 #define TIM_CCER_CC3NP ((uint32_t)0x00000800) /*!<Capture/Compare 3 Complementary output Polarity */
Kojto 93:e188a91d3eaa 6938 #define TIM_CCER_CC4E ((uint32_t)0x00001000) /*!<Capture/Compare 4 output enable */
Kojto 93:e188a91d3eaa 6939 #define TIM_CCER_CC4P ((uint32_t)0x00002000) /*!<Capture/Compare 4 output Polarity */
Kojto 93:e188a91d3eaa 6940 #define TIM_CCER_CC4NP ((uint32_t)0x00008000) /*!<Capture/Compare 4 Complementary output Polarity */
Kojto 93:e188a91d3eaa 6941 #define TIM_CCER_CC5E ((uint32_t)0x00010000) /*!<Capture/Compare 5 output enable */
Kojto 93:e188a91d3eaa 6942 #define TIM_CCER_CC5P ((uint32_t)0x00020000) /*!<Capture/Compare 5 output Polarity */
Kojto 93:e188a91d3eaa 6943 #define TIM_CCER_CC6E ((uint32_t)0x00100000) /*!<Capture/Compare 6 output enable */
Kojto 93:e188a91d3eaa 6944 #define TIM_CCER_CC6P ((uint32_t)0x00200000) /*!<Capture/Compare 6 output Polarity */
Kojto 93:e188a91d3eaa 6945
Kojto 93:e188a91d3eaa 6946 /******************* Bit definition for TIM_CNT register ********************/
Kojto 93:e188a91d3eaa 6947 #define TIM_CNT_CNT ((uint32_t)0xFFFFFFFF) /*!<Counter Value */
Kojto 93:e188a91d3eaa 6948 #define TIM_CNT_UIFCPY ((uint32_t)0x80000000) /*!<Update interrupt flag copy */
Kojto 93:e188a91d3eaa 6949
Kojto 93:e188a91d3eaa 6950 /******************* Bit definition for TIM_PSC register ********************/
Kojto 93:e188a91d3eaa 6951 #define TIM_PSC_PSC ((uint32_t)0x0000FFFF) /*!<Prescaler Value */
Kojto 93:e188a91d3eaa 6952
Kojto 93:e188a91d3eaa 6953 /******************* Bit definition for TIM_ARR register ********************/
Kojto 93:e188a91d3eaa 6954 #define TIM_ARR_ARR ((uint32_t)0xFFFFFFFF) /*!<actual auto-reload Value */
Kojto 93:e188a91d3eaa 6955
Kojto 93:e188a91d3eaa 6956 /******************* Bit definition for TIM_RCR register ********************/
Kojto 93:e188a91d3eaa 6957 #define TIM_RCR_REP ((uint32_t)0x000000FF) /*!<Repetition Counter Value */
Kojto 93:e188a91d3eaa 6958
Kojto 93:e188a91d3eaa 6959 /******************* Bit definition for TIM_CCR1 register *******************/
Kojto 93:e188a91d3eaa 6960 #define TIM_CCR1_CCR1 ((uint32_t)0x0000FFFF) /*!<Capture/Compare 1 Value */
Kojto 93:e188a91d3eaa 6961
Kojto 93:e188a91d3eaa 6962 /******************* Bit definition for TIM_CCR2 register *******************/
Kojto 93:e188a91d3eaa 6963 #define TIM_CCR2_CCR2 ((uint32_t)0x0000FFFF) /*!<Capture/Compare 2 Value */
Kojto 93:e188a91d3eaa 6964
Kojto 93:e188a91d3eaa 6965 /******************* Bit definition for TIM_CCR3 register *******************/
Kojto 93:e188a91d3eaa 6966 #define TIM_CCR3_CCR3 ((uint32_t)0x0000FFFF) /*!<Capture/Compare 3 Value */
Kojto 93:e188a91d3eaa 6967
Kojto 93:e188a91d3eaa 6968 /******************* Bit definition for TIM_CCR4 register *******************/
Kojto 93:e188a91d3eaa 6969 #define TIM_CCR4_CCR4 ((uint32_t)0x0000FFFF) /*!<Capture/Compare 4 Value */
Kojto 93:e188a91d3eaa 6970
Kojto 93:e188a91d3eaa 6971 /******************* Bit definition for TIM_CCR5 register *******************/
Kojto 93:e188a91d3eaa 6972 #define TIM_CCR5_CCR5 ((uint32_t)0xFFFFFFFF) /*!<Capture/Compare 5 Value */
Kojto 93:e188a91d3eaa 6973 #define TIM_CCR5_GC5C1 ((uint32_t)0x20000000) /*!<Group Channel 5 and Channel 1 */
Kojto 93:e188a91d3eaa 6974 #define TIM_CCR5_GC5C2 ((uint32_t)0x40000000) /*!<Group Channel 5 and Channel 2 */
Kojto 93:e188a91d3eaa 6975 #define TIM_CCR5_GC5C3 ((uint32_t)0x80000000) /*!<Group Channel 5 and Channel 3 */
Kojto 93:e188a91d3eaa 6976
Kojto 93:e188a91d3eaa 6977 /******************* Bit definition for TIM_CCR6 register *******************/
Kojto 93:e188a91d3eaa 6978 #define TIM_CCR6_CCR6 ((uint32_t)0x0000FFFF) /*!<Capture/Compare 6 Value */
Kojto 93:e188a91d3eaa 6979
Kojto 93:e188a91d3eaa 6980 /******************* Bit definition for TIM_BDTR register *******************/
Kojto 93:e188a91d3eaa 6981 #define TIM_BDTR_DTG ((uint32_t)0x000000FF) /*!<DTG[0:7] bits (Dead-Time Generator set-up) */
Kojto 93:e188a91d3eaa 6982 #define TIM_BDTR_DTG_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6983 #define TIM_BDTR_DTG_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6984 #define TIM_BDTR_DTG_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 6985 #define TIM_BDTR_DTG_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 6986 #define TIM_BDTR_DTG_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 6987 #define TIM_BDTR_DTG_5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 6988 #define TIM_BDTR_DTG_6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 6989 #define TIM_BDTR_DTG_7 ((uint32_t)0x00000080) /*!<Bit 7 */
Kojto 93:e188a91d3eaa 6990
Kojto 93:e188a91d3eaa 6991 #define TIM_BDTR_LOCK ((uint32_t)0x00000300) /*!<LOCK[1:0] bits (Lock Configuration) */
Kojto 93:e188a91d3eaa 6992 #define TIM_BDTR_LOCK_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 6993 #define TIM_BDTR_LOCK_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 6994
Kojto 93:e188a91d3eaa 6995 #define TIM_BDTR_OSSI ((uint32_t)0x00000400) /*!<Off-State Selection for Idle mode */
Kojto 93:e188a91d3eaa 6996 #define TIM_BDTR_OSSR ((uint32_t)0x00000800) /*!<Off-State Selection for Run mode */
Kojto 93:e188a91d3eaa 6997 #define TIM_BDTR_BKE ((uint32_t)0x00001000) /*!<Break enable for Break1 */
Kojto 93:e188a91d3eaa 6998 #define TIM_BDTR_BKP ((uint32_t)0x00002000) /*!<Break Polarity for Break1 */
Kojto 93:e188a91d3eaa 6999 #define TIM_BDTR_AOE ((uint32_t)0x00004000) /*!<Automatic Output enable */
Kojto 93:e188a91d3eaa 7000 #define TIM_BDTR_MOE ((uint32_t)0x00008000) /*!<Main Output enable */
Kojto 93:e188a91d3eaa 7001
Kojto 93:e188a91d3eaa 7002 #define TIM_BDTR_BKF ((uint32_t)0x000F0000) /*!<Break Filter for Break1 */
Kojto 93:e188a91d3eaa 7003 #define TIM_BDTR_BK2F ((uint32_t)0x00F00000) /*!<Break Filter for Break2 */
Kojto 93:e188a91d3eaa 7004
Kojto 93:e188a91d3eaa 7005 #define TIM_BDTR_BK2E ((uint32_t)0x01000000) /*!<Break enable for Break2 */
Kojto 93:e188a91d3eaa 7006 #define TIM_BDTR_BK2P ((uint32_t)0x02000000) /*!<Break Polarity for Break2 */
Kojto 93:e188a91d3eaa 7007
Kojto 93:e188a91d3eaa 7008 /******************* Bit definition for TIM_DCR register ********************/
Kojto 93:e188a91d3eaa 7009 #define TIM_DCR_DBA ((uint32_t)0x0000001F) /*!<DBA[4:0] bits (DMA Base Address) */
Kojto 93:e188a91d3eaa 7010 #define TIM_DCR_DBA_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7011 #define TIM_DCR_DBA_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7012 #define TIM_DCR_DBA_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7013 #define TIM_DCR_DBA_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7014 #define TIM_DCR_DBA_4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 7015
Kojto 93:e188a91d3eaa 7016 #define TIM_DCR_DBL ((uint32_t)0x00001F00) /*!<DBL[4:0] bits (DMA Burst Length) */
Kojto 93:e188a91d3eaa 7017 #define TIM_DCR_DBL_0 ((uint32_t)0x00000100) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7018 #define TIM_DCR_DBL_1 ((uint32_t)0x00000200) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7019 #define TIM_DCR_DBL_2 ((uint32_t)0x00000400) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7020 #define TIM_DCR_DBL_3 ((uint32_t)0x00000800) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7021 #define TIM_DCR_DBL_4 ((uint32_t)0x00001000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 7022
Kojto 93:e188a91d3eaa 7023 /******************* Bit definition for TIM_DMAR register *******************/
Kojto 93:e188a91d3eaa 7024 #define TIM_DMAR_DMAB ((uint32_t)0x0000FFFF) /*!<DMA register for burst accesses */
Kojto 93:e188a91d3eaa 7025
Kojto 93:e188a91d3eaa 7026 /******************* Bit definition for TIM16_OR register ********************/
Kojto 93:e188a91d3eaa 7027 #define TIM16_OR_TI1_RMP ((uint32_t)0x00000003) /*!<TI1_RMP[1:0] bits (TIM16 Input 1 remap) */
Kojto 93:e188a91d3eaa 7028 #define TIM16_OR_TI1_RMP_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7029 #define TIM16_OR_TI1_RMP_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7030
Kojto 93:e188a91d3eaa 7031 /******************* Bit definition for TIM1_OR register ********************/
Kojto 93:e188a91d3eaa 7032 #define TIM1_OR_ETR_RMP ((uint32_t)0x0000000F) /*!<ETR_RMP[3:0] bits (TIM1 ETR remap) */
Kojto 93:e188a91d3eaa 7033 #define TIM1_OR_ETR_RMP_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7034 #define TIM1_OR_ETR_RMP_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7035 #define TIM1_OR_ETR_RMP_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7036 #define TIM1_OR_ETR_RMP_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7037
Kojto 93:e188a91d3eaa 7038 /******************* Bit definition for TIM8_OR register ********************/
Kojto 93:e188a91d3eaa 7039 #define TIM8_OR_ETR_RMP ((uint32_t)0x0000000F) /*!<ETR_RMP[3:0] bits (TIM8 ETR remap) */
Kojto 93:e188a91d3eaa 7040 #define TIM8_OR_ETR_RMP_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7041 #define TIM8_OR_ETR_RMP_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7042 #define TIM8_OR_ETR_RMP_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7043 #define TIM8_OR_ETR_RMP_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7044
Kojto 93:e188a91d3eaa 7045 /******************* Bit definition for TIM20_OR register *******************/
Kojto 93:e188a91d3eaa 7046 #define TIM20_OR_ETR_RMP ((uint32_t)0x0000000F) /*!<ETR_RMP[3:0] bits (TIM20 ETR remap) */
Kojto 93:e188a91d3eaa 7047 #define TIM20_OR_ETR_RMP_0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7048 #define TIM20_OR_ETR_RMP_1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7049 #define TIM20_OR_ETR_RMP_2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7050 #define TIM20_OR_ETR_RMP_3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7051
Kojto 93:e188a91d3eaa 7052 /****************** Bit definition for TIM_CCMR3 register *******************/
Kojto 93:e188a91d3eaa 7053 #define TIM_CCMR3_OC5FE ((uint32_t)0x00000004) /*!<Output Compare 5 Fast enable */
Kojto 93:e188a91d3eaa 7054 #define TIM_CCMR3_OC5PE ((uint32_t)0x00000008) /*!<Output Compare 5 Preload enable */
Kojto 93:e188a91d3eaa 7055
Kojto 93:e188a91d3eaa 7056 #define TIM_CCMR3_OC5M ((uint32_t)0x00010070) /*!<OC5M[2:0] bits (Output Compare 5 Mode) */
Kojto 93:e188a91d3eaa 7057 #define TIM_CCMR3_OC5M_0 ((uint32_t)0x00000010) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7058 #define TIM_CCMR3_OC5M_1 ((uint32_t)0x00000020) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7059 #define TIM_CCMR3_OC5M_2 ((uint32_t)0x00000040) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7060 #define TIM_CCMR3_OC5M_3 ((uint32_t)0x00010000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7061
Kojto 93:e188a91d3eaa 7062 #define TIM_CCMR3_OC5CE ((uint32_t)0x00000080) /*!<Output Compare 5 Clear Enable */
Kojto 93:e188a91d3eaa 7063
Kojto 93:e188a91d3eaa 7064 #define TIM_CCMR3_OC6FE ((uint32_t)0x00000400) /*!<Output Compare 6 Fast enable */
Kojto 93:e188a91d3eaa 7065 #define TIM_CCMR3_OC6PE ((uint32_t)0x00000800) /*!<Output Compare 6 Preload enable */
Kojto 93:e188a91d3eaa 7066
Kojto 93:e188a91d3eaa 7067 #define TIM_CCMR3_OC6M ((uint32_t)0x01007000) /*!<OC6M[2:0] bits (Output Compare 6 Mode) */
Kojto 93:e188a91d3eaa 7068 #define TIM_CCMR3_OC6M_0 ((uint32_t)0x00001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7069 #define TIM_CCMR3_OC6M_1 ((uint32_t)0x00002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7070 #define TIM_CCMR3_OC6M_2 ((uint32_t)0x00004000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7071 #define TIM_CCMR3_OC6M_3 ((uint32_t)0x01000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7072
Kojto 93:e188a91d3eaa 7073 #define TIM_CCMR3_OC6CE ((uint32_t)0x00008000) /*!<Output Compare 6 Clear Enable */
Kojto 93:e188a91d3eaa 7074
Kojto 93:e188a91d3eaa 7075 /******************************************************************************/
Kojto 93:e188a91d3eaa 7076 /* */
Kojto 93:e188a91d3eaa 7077 /* Touch Sensing Controller (TSC) */
Kojto 93:e188a91d3eaa 7078 /* */
Kojto 93:e188a91d3eaa 7079 /******************************************************************************/
Kojto 93:e188a91d3eaa 7080 /******************* Bit definition for TSC_CR register *********************/
Kojto 93:e188a91d3eaa 7081 #define TSC_CR_TSCE ((uint32_t)0x00000001) /*!<Touch sensing controller enable */
Kojto 93:e188a91d3eaa 7082 #define TSC_CR_START ((uint32_t)0x00000002) /*!<Start acquisition */
Kojto 93:e188a91d3eaa 7083 #define TSC_CR_AM ((uint32_t)0x00000004) /*!<Acquisition mode */
Kojto 93:e188a91d3eaa 7084 #define TSC_CR_SYNCPOL ((uint32_t)0x00000008) /*!<Synchronization pin polarity */
Kojto 93:e188a91d3eaa 7085 #define TSC_CR_IODEF ((uint32_t)0x00000010) /*!<IO default mode */
Kojto 93:e188a91d3eaa 7086
Kojto 93:e188a91d3eaa 7087 #define TSC_CR_MCV ((uint32_t)0x000000E0) /*!<MCV[2:0] bits (Max Count Value) */
Kojto 93:e188a91d3eaa 7088 #define TSC_CR_MCV_0 ((uint32_t)0x00000020) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7089 #define TSC_CR_MCV_1 ((uint32_t)0x00000040) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7090 #define TSC_CR_MCV_2 ((uint32_t)0x00000080) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7091
Kojto 93:e188a91d3eaa 7092 #define TSC_CR_PGPSC ((uint32_t)0x00007000) /*!<PGPSC[2:0] bits (Pulse Generator Prescaler) */
Kojto 93:e188a91d3eaa 7093 #define TSC_CR_PGPSC_0 ((uint32_t)0x00001000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7094 #define TSC_CR_PGPSC_1 ((uint32_t)0x00002000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7095 #define TSC_CR_PGPSC_2 ((uint32_t)0x00004000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7096
Kojto 93:e188a91d3eaa 7097 #define TSC_CR_SSPSC ((uint32_t)0x00008000) /*!<Spread Spectrum Prescaler */
Kojto 93:e188a91d3eaa 7098 #define TSC_CR_SSE ((uint32_t)0x00010000) /*!<Spread Spectrum Enable */
Kojto 93:e188a91d3eaa 7099
Kojto 93:e188a91d3eaa 7100 #define TSC_CR_SSD ((uint32_t)0x00FE0000) /*!<SSD[6:0] bits (Spread Spectrum Deviation) */
Kojto 93:e188a91d3eaa 7101 #define TSC_CR_SSD_0 ((uint32_t)0x00020000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7102 #define TSC_CR_SSD_1 ((uint32_t)0x00040000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7103 #define TSC_CR_SSD_2 ((uint32_t)0x00080000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7104 #define TSC_CR_SSD_3 ((uint32_t)0x00100000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7105 #define TSC_CR_SSD_4 ((uint32_t)0x00200000) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 7106 #define TSC_CR_SSD_5 ((uint32_t)0x00400000) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 7107 #define TSC_CR_SSD_6 ((uint32_t)0x00800000) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 7108
Kojto 93:e188a91d3eaa 7109 #define TSC_CR_CTPL ((uint32_t)0x0F000000) /*!<CTPL[3:0] bits (Charge Transfer pulse low) */
Kojto 93:e188a91d3eaa 7110 #define TSC_CR_CTPL_0 ((uint32_t)0x01000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7111 #define TSC_CR_CTPL_1 ((uint32_t)0x02000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7112 #define TSC_CR_CTPL_2 ((uint32_t)0x04000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7113 #define TSC_CR_CTPL_3 ((uint32_t)0x08000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7114
Kojto 93:e188a91d3eaa 7115 #define TSC_CR_CTPH ((uint32_t)0xF0000000) /*!<CTPH[3:0] bits (Charge Transfer pulse high) */
Kojto 93:e188a91d3eaa 7116 #define TSC_CR_CTPH_0 ((uint32_t)0x10000000) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7117 #define TSC_CR_CTPH_1 ((uint32_t)0x20000000) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7118 #define TSC_CR_CTPH_2 ((uint32_t)0x40000000) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7119 #define TSC_CR_CTPH_3 ((uint32_t)0x80000000) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7120
Kojto 93:e188a91d3eaa 7121 /******************* Bit definition for TSC_IER register ********************/
Kojto 93:e188a91d3eaa 7122 #define TSC_IER_EOAIE ((uint32_t)0x00000001) /*!<End of acquisition interrupt enable */
Kojto 93:e188a91d3eaa 7123 #define TSC_IER_MCEIE ((uint32_t)0x00000002) /*!<Max count error interrupt enable */
Kojto 93:e188a91d3eaa 7124
Kojto 93:e188a91d3eaa 7125 /******************* Bit definition for TSC_ICR register ********************/
Kojto 93:e188a91d3eaa 7126 #define TSC_ICR_EOAIC ((uint32_t)0x00000001) /*!<End of acquisition interrupt clear */
Kojto 93:e188a91d3eaa 7127 #define TSC_ICR_MCEIC ((uint32_t)0x00000002) /*!<Max count error interrupt clear */
Kojto 93:e188a91d3eaa 7128
Kojto 93:e188a91d3eaa 7129 /******************* Bit definition for TSC_ISR register ********************/
Kojto 93:e188a91d3eaa 7130 #define TSC_ISR_EOAF ((uint32_t)0x00000001) /*!<End of acquisition flag */
Kojto 93:e188a91d3eaa 7131 #define TSC_ISR_MCEF ((uint32_t)0x00000002) /*!<Max count error flag */
Kojto 93:e188a91d3eaa 7132
Kojto 93:e188a91d3eaa 7133 /******************* Bit definition for TSC_IOHCR register ******************/
Kojto 93:e188a91d3eaa 7134 #define TSC_IOHCR_G1_IO1 ((uint32_t)0x00000001) /*!<GROUP1_IO1 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7135 #define TSC_IOHCR_G1_IO2 ((uint32_t)0x00000002) /*!<GROUP1_IO2 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7136 #define TSC_IOHCR_G1_IO3 ((uint32_t)0x00000004) /*!<GROUP1_IO3 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7137 #define TSC_IOHCR_G1_IO4 ((uint32_t)0x00000008) /*!<GROUP1_IO4 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7138 #define TSC_IOHCR_G2_IO1 ((uint32_t)0x00000010) /*!<GROUP2_IO1 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7139 #define TSC_IOHCR_G2_IO2 ((uint32_t)0x00000020) /*!<GROUP2_IO2 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7140 #define TSC_IOHCR_G2_IO3 ((uint32_t)0x00000040) /*!<GROUP2_IO3 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7141 #define TSC_IOHCR_G2_IO4 ((uint32_t)0x00000080) /*!<GROUP2_IO4 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7142 #define TSC_IOHCR_G3_IO1 ((uint32_t)0x00000100) /*!<GROUP3_IO1 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7143 #define TSC_IOHCR_G3_IO2 ((uint32_t)0x00000200) /*!<GROUP3_IO2 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7144 #define TSC_IOHCR_G3_IO3 ((uint32_t)0x00000400) /*!<GROUP3_IO3 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7145 #define TSC_IOHCR_G3_IO4 ((uint32_t)0x00000800) /*!<GROUP3_IO4 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7146 #define TSC_IOHCR_G4_IO1 ((uint32_t)0x00001000) /*!<GROUP4_IO1 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7147 #define TSC_IOHCR_G4_IO2 ((uint32_t)0x00002000) /*!<GROUP4_IO2 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7148 #define TSC_IOHCR_G4_IO3 ((uint32_t)0x00004000) /*!<GROUP4_IO3 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7149 #define TSC_IOHCR_G4_IO4 ((uint32_t)0x00008000) /*!<GROUP4_IO4 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7150 #define TSC_IOHCR_G5_IO1 ((uint32_t)0x00010000) /*!<GROUP5_IO1 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7151 #define TSC_IOHCR_G5_IO2 ((uint32_t)0x00020000) /*!<GROUP5_IO2 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7152 #define TSC_IOHCR_G5_IO3 ((uint32_t)0x00040000) /*!<GROUP5_IO3 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7153 #define TSC_IOHCR_G5_IO4 ((uint32_t)0x00080000) /*!<GROUP5_IO4 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7154 #define TSC_IOHCR_G6_IO1 ((uint32_t)0x00100000) /*!<GROUP6_IO1 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7155 #define TSC_IOHCR_G6_IO2 ((uint32_t)0x00200000) /*!<GROUP6_IO2 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7156 #define TSC_IOHCR_G6_IO3 ((uint32_t)0x00400000) /*!<GROUP6_IO3 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7157 #define TSC_IOHCR_G6_IO4 ((uint32_t)0x00800000) /*!<GROUP6_IO4 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7158 #define TSC_IOHCR_G7_IO1 ((uint32_t)0x01000000) /*!<GROUP7_IO1 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7159 #define TSC_IOHCR_G7_IO2 ((uint32_t)0x02000000) /*!<GROUP7_IO2 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7160 #define TSC_IOHCR_G7_IO3 ((uint32_t)0x04000000) /*!<GROUP7_IO3 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7161 #define TSC_IOHCR_G7_IO4 ((uint32_t)0x08000000) /*!<GROUP7_IO4 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7162 #define TSC_IOHCR_G8_IO1 ((uint32_t)0x10000000) /*!<GROUP8_IO1 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7163 #define TSC_IOHCR_G8_IO2 ((uint32_t)0x20000000) /*!<GROUP8_IO2 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7164 #define TSC_IOHCR_G8_IO3 ((uint32_t)0x40000000) /*!<GROUP8_IO3 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7165 #define TSC_IOHCR_G8_IO4 ((uint32_t)0x80000000) /*!<GROUP8_IO4 schmitt trigger hysteresis mode */
Kojto 93:e188a91d3eaa 7166
Kojto 93:e188a91d3eaa 7167 /******************* Bit definition for TSC_IOASCR register *****************/
Kojto 93:e188a91d3eaa 7168 #define TSC_IOASCR_G1_IO1 ((uint32_t)0x00000001) /*!<GROUP1_IO1 analog switch enable */
Kojto 93:e188a91d3eaa 7169 #define TSC_IOASCR_G1_IO2 ((uint32_t)0x00000002) /*!<GROUP1_IO2 analog switch enable */
Kojto 93:e188a91d3eaa 7170 #define TSC_IOASCR_G1_IO3 ((uint32_t)0x00000004) /*!<GROUP1_IO3 analog switch enable */
Kojto 93:e188a91d3eaa 7171 #define TSC_IOASCR_G1_IO4 ((uint32_t)0x00000008) /*!<GROUP1_IO4 analog switch enable */
Kojto 93:e188a91d3eaa 7172 #define TSC_IOASCR_G2_IO1 ((uint32_t)0x00000010) /*!<GROUP2_IO1 analog switch enable */
Kojto 93:e188a91d3eaa 7173 #define TSC_IOASCR_G2_IO2 ((uint32_t)0x00000020) /*!<GROUP2_IO2 analog switch enable */
Kojto 93:e188a91d3eaa 7174 #define TSC_IOASCR_G2_IO3 ((uint32_t)0x00000040) /*!<GROUP2_IO3 analog switch enable */
Kojto 93:e188a91d3eaa 7175 #define TSC_IOASCR_G2_IO4 ((uint32_t)0x00000080) /*!<GROUP2_IO4 analog switch enable */
Kojto 93:e188a91d3eaa 7176 #define TSC_IOASCR_G3_IO1 ((uint32_t)0x00000100) /*!<GROUP3_IO1 analog switch enable */
Kojto 93:e188a91d3eaa 7177 #define TSC_IOASCR_G3_IO2 ((uint32_t)0x00000200) /*!<GROUP3_IO2 analog switch enable */
Kojto 93:e188a91d3eaa 7178 #define TSC_IOASCR_G3_IO3 ((uint32_t)0x00000400) /*!<GROUP3_IO3 analog switch enable */
Kojto 93:e188a91d3eaa 7179 #define TSC_IOASCR_G3_IO4 ((uint32_t)0x00000800) /*!<GROUP3_IO4 analog switch enable */
Kojto 93:e188a91d3eaa 7180 #define TSC_IOASCR_G4_IO1 ((uint32_t)0x00001000) /*!<GROUP4_IO1 analog switch enable */
Kojto 93:e188a91d3eaa 7181 #define TSC_IOASCR_G4_IO2 ((uint32_t)0x00002000) /*!<GROUP4_IO2 analog switch enable */
Kojto 93:e188a91d3eaa 7182 #define TSC_IOASCR_G4_IO3 ((uint32_t)0x00004000) /*!<GROUP4_IO3 analog switch enable */
Kojto 93:e188a91d3eaa 7183 #define TSC_IOASCR_G4_IO4 ((uint32_t)0x00008000) /*!<GROUP4_IO4 analog switch enable */
Kojto 93:e188a91d3eaa 7184 #define TSC_IOASCR_G5_IO1 ((uint32_t)0x00010000) /*!<GROUP5_IO1 analog switch enable */
Kojto 93:e188a91d3eaa 7185 #define TSC_IOASCR_G5_IO2 ((uint32_t)0x00020000) /*!<GROUP5_IO2 analog switch enable */
Kojto 93:e188a91d3eaa 7186 #define TSC_IOASCR_G5_IO3 ((uint32_t)0x00040000) /*!<GROUP5_IO3 analog switch enable */
Kojto 93:e188a91d3eaa 7187 #define TSC_IOASCR_G5_IO4 ((uint32_t)0x00080000) /*!<GROUP5_IO4 analog switch enable */
Kojto 93:e188a91d3eaa 7188 #define TSC_IOASCR_G6_IO1 ((uint32_t)0x00100000) /*!<GROUP6_IO1 analog switch enable */
Kojto 93:e188a91d3eaa 7189 #define TSC_IOASCR_G6_IO2 ((uint32_t)0x00200000) /*!<GROUP6_IO2 analog switch enable */
Kojto 93:e188a91d3eaa 7190 #define TSC_IOASCR_G6_IO3 ((uint32_t)0x00400000) /*!<GROUP6_IO3 analog switch enable */
Kojto 93:e188a91d3eaa 7191 #define TSC_IOASCR_G6_IO4 ((uint32_t)0x00800000) /*!<GROUP6_IO4 analog switch enable */
Kojto 93:e188a91d3eaa 7192 #define TSC_IOASCR_G7_IO1 ((uint32_t)0x01000000) /*!<GROUP7_IO1 analog switch enable */
Kojto 93:e188a91d3eaa 7193 #define TSC_IOASCR_G7_IO2 ((uint32_t)0x02000000) /*!<GROUP7_IO2 analog switch enable */
Kojto 93:e188a91d3eaa 7194 #define TSC_IOASCR_G7_IO3 ((uint32_t)0x04000000) /*!<GROUP7_IO3 analog switch enable */
Kojto 93:e188a91d3eaa 7195 #define TSC_IOASCR_G7_IO4 ((uint32_t)0x08000000) /*!<GROUP7_IO4 analog switch enable */
Kojto 93:e188a91d3eaa 7196 #define TSC_IOASCR_G8_IO1 ((uint32_t)0x10000000) /*!<GROUP8_IO1 analog switch enable */
Kojto 93:e188a91d3eaa 7197 #define TSC_IOASCR_G8_IO2 ((uint32_t)0x20000000) /*!<GROUP8_IO2 analog switch enable */
Kojto 93:e188a91d3eaa 7198 #define TSC_IOASCR_G8_IO3 ((uint32_t)0x40000000) /*!<GROUP8_IO3 analog switch enable */
Kojto 93:e188a91d3eaa 7199 #define TSC_IOASCR_G8_IO4 ((uint32_t)0x80000000) /*!<GROUP8_IO4 analog switch enable */
Kojto 93:e188a91d3eaa 7200
Kojto 93:e188a91d3eaa 7201 /******************* Bit definition for TSC_IOSCR register ******************/
Kojto 93:e188a91d3eaa 7202 #define TSC_IOSCR_G1_IO1 ((uint32_t)0x00000001) /*!<GROUP1_IO1 sampling mode */
Kojto 93:e188a91d3eaa 7203 #define TSC_IOSCR_G1_IO2 ((uint32_t)0x00000002) /*!<GROUP1_IO2 sampling mode */
Kojto 93:e188a91d3eaa 7204 #define TSC_IOSCR_G1_IO3 ((uint32_t)0x00000004) /*!<GROUP1_IO3 sampling mode */
Kojto 93:e188a91d3eaa 7205 #define TSC_IOSCR_G1_IO4 ((uint32_t)0x00000008) /*!<GROUP1_IO4 sampling mode */
Kojto 93:e188a91d3eaa 7206 #define TSC_IOSCR_G2_IO1 ((uint32_t)0x00000010) /*!<GROUP2_IO1 sampling mode */
Kojto 93:e188a91d3eaa 7207 #define TSC_IOSCR_G2_IO2 ((uint32_t)0x00000020) /*!<GROUP2_IO2 sampling mode */
Kojto 93:e188a91d3eaa 7208 #define TSC_IOSCR_G2_IO3 ((uint32_t)0x00000040) /*!<GROUP2_IO3 sampling mode */
Kojto 93:e188a91d3eaa 7209 #define TSC_IOSCR_G2_IO4 ((uint32_t)0x00000080) /*!<GROUP2_IO4 sampling mode */
Kojto 93:e188a91d3eaa 7210 #define TSC_IOSCR_G3_IO1 ((uint32_t)0x00000100) /*!<GROUP3_IO1 sampling mode */
Kojto 93:e188a91d3eaa 7211 #define TSC_IOSCR_G3_IO2 ((uint32_t)0x00000200) /*!<GROUP3_IO2 sampling mode */
Kojto 93:e188a91d3eaa 7212 #define TSC_IOSCR_G3_IO3 ((uint32_t)0x00000400) /*!<GROUP3_IO3 sampling mode */
Kojto 93:e188a91d3eaa 7213 #define TSC_IOSCR_G3_IO4 ((uint32_t)0x00000800) /*!<GROUP3_IO4 sampling mode */
Kojto 93:e188a91d3eaa 7214 #define TSC_IOSCR_G4_IO1 ((uint32_t)0x00001000) /*!<GROUP4_IO1 sampling mode */
Kojto 93:e188a91d3eaa 7215 #define TSC_IOSCR_G4_IO2 ((uint32_t)0x00002000) /*!<GROUP4_IO2 sampling mode */
Kojto 93:e188a91d3eaa 7216 #define TSC_IOSCR_G4_IO3 ((uint32_t)0x00004000) /*!<GROUP4_IO3 sampling mode */
Kojto 93:e188a91d3eaa 7217 #define TSC_IOSCR_G4_IO4 ((uint32_t)0x00008000) /*!<GROUP4_IO4 sampling mode */
Kojto 93:e188a91d3eaa 7218 #define TSC_IOSCR_G5_IO1 ((uint32_t)0x00010000) /*!<GROUP5_IO1 sampling mode */
Kojto 93:e188a91d3eaa 7219 #define TSC_IOSCR_G5_IO2 ((uint32_t)0x00020000) /*!<GROUP5_IO2 sampling mode */
Kojto 93:e188a91d3eaa 7220 #define TSC_IOSCR_G5_IO3 ((uint32_t)0x00040000) /*!<GROUP5_IO3 sampling mode */
Kojto 93:e188a91d3eaa 7221 #define TSC_IOSCR_G5_IO4 ((uint32_t)0x00080000) /*!<GROUP5_IO4 sampling mode */
Kojto 93:e188a91d3eaa 7222 #define TSC_IOSCR_G6_IO1 ((uint32_t)0x00100000) /*!<GROUP6_IO1 sampling mode */
Kojto 93:e188a91d3eaa 7223 #define TSC_IOSCR_G6_IO2 ((uint32_t)0x00200000) /*!<GROUP6_IO2 sampling mode */
Kojto 93:e188a91d3eaa 7224 #define TSC_IOSCR_G6_IO3 ((uint32_t)0x00400000) /*!<GROUP6_IO3 sampling mode */
Kojto 93:e188a91d3eaa 7225 #define TSC_IOSCR_G6_IO4 ((uint32_t)0x00800000) /*!<GROUP6_IO4 sampling mode */
Kojto 93:e188a91d3eaa 7226 #define TSC_IOSCR_G7_IO1 ((uint32_t)0x01000000) /*!<GROUP7_IO1 sampling mode */
Kojto 93:e188a91d3eaa 7227 #define TSC_IOSCR_G7_IO2 ((uint32_t)0x02000000) /*!<GROUP7_IO2 sampling mode */
Kojto 93:e188a91d3eaa 7228 #define TSC_IOSCR_G7_IO3 ((uint32_t)0x04000000) /*!<GROUP7_IO3 sampling mode */
Kojto 93:e188a91d3eaa 7229 #define TSC_IOSCR_G7_IO4 ((uint32_t)0x08000000) /*!<GROUP7_IO4 sampling mode */
Kojto 93:e188a91d3eaa 7230 #define TSC_IOSCR_G8_IO1 ((uint32_t)0x10000000) /*!<GROUP8_IO1 sampling mode */
Kojto 93:e188a91d3eaa 7231 #define TSC_IOSCR_G8_IO2 ((uint32_t)0x20000000) /*!<GROUP8_IO2 sampling mode */
Kojto 93:e188a91d3eaa 7232 #define TSC_IOSCR_G8_IO3 ((uint32_t)0x40000000) /*!<GROUP8_IO3 sampling mode */
Kojto 93:e188a91d3eaa 7233 #define TSC_IOSCR_G8_IO4 ((uint32_t)0x80000000) /*!<GROUP8_IO4 sampling mode */
Kojto 93:e188a91d3eaa 7234
Kojto 93:e188a91d3eaa 7235 /******************* Bit definition for TSC_IOCCR register ******************/
Kojto 93:e188a91d3eaa 7236 #define TSC_IOCCR_G1_IO1 ((uint32_t)0x00000001) /*!<GROUP1_IO1 channel mode */
Kojto 93:e188a91d3eaa 7237 #define TSC_IOCCR_G1_IO2 ((uint32_t)0x00000002) /*!<GROUP1_IO2 channel mode */
Kojto 93:e188a91d3eaa 7238 #define TSC_IOCCR_G1_IO3 ((uint32_t)0x00000004) /*!<GROUP1_IO3 channel mode */
Kojto 93:e188a91d3eaa 7239 #define TSC_IOCCR_G1_IO4 ((uint32_t)0x00000008) /*!<GROUP1_IO4 channel mode */
Kojto 93:e188a91d3eaa 7240 #define TSC_IOCCR_G2_IO1 ((uint32_t)0x00000010) /*!<GROUP2_IO1 channel mode */
Kojto 93:e188a91d3eaa 7241 #define TSC_IOCCR_G2_IO2 ((uint32_t)0x00000020) /*!<GROUP2_IO2 channel mode */
Kojto 93:e188a91d3eaa 7242 #define TSC_IOCCR_G2_IO3 ((uint32_t)0x00000040) /*!<GROUP2_IO3 channel mode */
Kojto 93:e188a91d3eaa 7243 #define TSC_IOCCR_G2_IO4 ((uint32_t)0x00000080) /*!<GROUP2_IO4 channel mode */
Kojto 93:e188a91d3eaa 7244 #define TSC_IOCCR_G3_IO1 ((uint32_t)0x00000100) /*!<GROUP3_IO1 channel mode */
Kojto 93:e188a91d3eaa 7245 #define TSC_IOCCR_G3_IO2 ((uint32_t)0x00000200) /*!<GROUP3_IO2 channel mode */
Kojto 93:e188a91d3eaa 7246 #define TSC_IOCCR_G3_IO3 ((uint32_t)0x00000400) /*!<GROUP3_IO3 channel mode */
Kojto 93:e188a91d3eaa 7247 #define TSC_IOCCR_G3_IO4 ((uint32_t)0x00000800) /*!<GROUP3_IO4 channel mode */
Kojto 93:e188a91d3eaa 7248 #define TSC_IOCCR_G4_IO1 ((uint32_t)0x00001000) /*!<GROUP4_IO1 channel mode */
Kojto 93:e188a91d3eaa 7249 #define TSC_IOCCR_G4_IO2 ((uint32_t)0x00002000) /*!<GROUP4_IO2 channel mode */
Kojto 93:e188a91d3eaa 7250 #define TSC_IOCCR_G4_IO3 ((uint32_t)0x00004000) /*!<GROUP4_IO3 channel mode */
Kojto 93:e188a91d3eaa 7251 #define TSC_IOCCR_G4_IO4 ((uint32_t)0x00008000) /*!<GROUP4_IO4 channel mode */
Kojto 93:e188a91d3eaa 7252 #define TSC_IOCCR_G5_IO1 ((uint32_t)0x00010000) /*!<GROUP5_IO1 channel mode */
Kojto 93:e188a91d3eaa 7253 #define TSC_IOCCR_G5_IO2 ((uint32_t)0x00020000) /*!<GROUP5_IO2 channel mode */
Kojto 93:e188a91d3eaa 7254 #define TSC_IOCCR_G5_IO3 ((uint32_t)0x00040000) /*!<GROUP5_IO3 channel mode */
Kojto 93:e188a91d3eaa 7255 #define TSC_IOCCR_G5_IO4 ((uint32_t)0x00080000) /*!<GROUP5_IO4 channel mode */
Kojto 93:e188a91d3eaa 7256 #define TSC_IOCCR_G6_IO1 ((uint32_t)0x00100000) /*!<GROUP6_IO1 channel mode */
Kojto 93:e188a91d3eaa 7257 #define TSC_IOCCR_G6_IO2 ((uint32_t)0x00200000) /*!<GROUP6_IO2 channel mode */
Kojto 93:e188a91d3eaa 7258 #define TSC_IOCCR_G6_IO3 ((uint32_t)0x00400000) /*!<GROUP6_IO3 channel mode */
Kojto 93:e188a91d3eaa 7259 #define TSC_IOCCR_G6_IO4 ((uint32_t)0x00800000) /*!<GROUP6_IO4 channel mode */
Kojto 93:e188a91d3eaa 7260 #define TSC_IOCCR_G7_IO1 ((uint32_t)0x01000000) /*!<GROUP7_IO1 channel mode */
Kojto 93:e188a91d3eaa 7261 #define TSC_IOCCR_G7_IO2 ((uint32_t)0x02000000) /*!<GROUP7_IO2 channel mode */
Kojto 93:e188a91d3eaa 7262 #define TSC_IOCCR_G7_IO3 ((uint32_t)0x04000000) /*!<GROUP7_IO3 channel mode */
Kojto 93:e188a91d3eaa 7263 #define TSC_IOCCR_G7_IO4 ((uint32_t)0x08000000) /*!<GROUP7_IO4 channel mode */
Kojto 93:e188a91d3eaa 7264 #define TSC_IOCCR_G8_IO1 ((uint32_t)0x10000000) /*!<GROUP8_IO1 channel mode */
Kojto 93:e188a91d3eaa 7265 #define TSC_IOCCR_G8_IO2 ((uint32_t)0x20000000) /*!<GROUP8_IO2 channel mode */
Kojto 93:e188a91d3eaa 7266 #define TSC_IOCCR_G8_IO3 ((uint32_t)0x40000000) /*!<GROUP8_IO3 channel mode */
Kojto 93:e188a91d3eaa 7267 #define TSC_IOCCR_G8_IO4 ((uint32_t)0x80000000) /*!<GROUP8_IO4 channel mode */
Kojto 93:e188a91d3eaa 7268
Kojto 93:e188a91d3eaa 7269 /******************* Bit definition for TSC_IOGCSR register *****************/
Kojto 93:e188a91d3eaa 7270 #define TSC_IOGCSR_G1E ((uint32_t)0x00000001) /*!<Analog IO GROUP1 enable */
Kojto 93:e188a91d3eaa 7271 #define TSC_IOGCSR_G2E ((uint32_t)0x00000002) /*!<Analog IO GROUP2 enable */
Kojto 93:e188a91d3eaa 7272 #define TSC_IOGCSR_G3E ((uint32_t)0x00000004) /*!<Analog IO GROUP3 enable */
Kojto 93:e188a91d3eaa 7273 #define TSC_IOGCSR_G4E ((uint32_t)0x00000008) /*!<Analog IO GROUP4 enable */
Kojto 93:e188a91d3eaa 7274 #define TSC_IOGCSR_G5E ((uint32_t)0x00000010) /*!<Analog IO GROUP5 enable */
Kojto 93:e188a91d3eaa 7275 #define TSC_IOGCSR_G6E ((uint32_t)0x00000020) /*!<Analog IO GROUP6 enable */
Kojto 93:e188a91d3eaa 7276 #define TSC_IOGCSR_G7E ((uint32_t)0x00000040) /*!<Analog IO GROUP7 enable */
Kojto 93:e188a91d3eaa 7277 #define TSC_IOGCSR_G8E ((uint32_t)0x00000080) /*!<Analog IO GROUP8 enable */
Kojto 93:e188a91d3eaa 7278 #define TSC_IOGCSR_G1S ((uint32_t)0x00010000) /*!<Analog IO GROUP1 status */
Kojto 93:e188a91d3eaa 7279 #define TSC_IOGCSR_G2S ((uint32_t)0x00020000) /*!<Analog IO GROUP2 status */
Kojto 93:e188a91d3eaa 7280 #define TSC_IOGCSR_G3S ((uint32_t)0x00040000) /*!<Analog IO GROUP3 status */
Kojto 93:e188a91d3eaa 7281 #define TSC_IOGCSR_G4S ((uint32_t)0x00080000) /*!<Analog IO GROUP4 status */
Kojto 93:e188a91d3eaa 7282 #define TSC_IOGCSR_G5S ((uint32_t)0x00100000) /*!<Analog IO GROUP5 status */
Kojto 93:e188a91d3eaa 7283 #define TSC_IOGCSR_G6S ((uint32_t)0x00200000) /*!<Analog IO GROUP6 status */
Kojto 93:e188a91d3eaa 7284 #define TSC_IOGCSR_G7S ((uint32_t)0x00400000) /*!<Analog IO GROUP7 status */
Kojto 93:e188a91d3eaa 7285 #define TSC_IOGCSR_G8S ((uint32_t)0x00800000) /*!<Analog IO GROUP8 status */
Kojto 93:e188a91d3eaa 7286
Kojto 93:e188a91d3eaa 7287 /******************* Bit definition for TSC_IOGXCR register *****************/
Kojto 93:e188a91d3eaa 7288 #define TSC_IOGXCR_CNT ((uint32_t)0x00003FFF) /*!<CNT[13:0] bits (Counter value) */
Kojto 93:e188a91d3eaa 7289
Kojto 93:e188a91d3eaa 7290 /******************************************************************************/
Kojto 93:e188a91d3eaa 7291 /* */
Kojto 93:e188a91d3eaa 7292 /* Universal Synchronous Asynchronous Receiver Transmitter (USART) */
Kojto 93:e188a91d3eaa 7293 /* */
Kojto 93:e188a91d3eaa 7294 /******************************************************************************/
Kojto 93:e188a91d3eaa 7295 /****************** Bit definition for USART_CR1 register *******************/
Kojto 93:e188a91d3eaa 7296 #define USART_CR1_UE ((uint32_t)0x00000001) /*!< USART Enable */
Kojto 93:e188a91d3eaa 7297 #define USART_CR1_UESM ((uint32_t)0x00000002) /*!< USART Enable in STOP Mode */
Kojto 93:e188a91d3eaa 7298 #define USART_CR1_RE ((uint32_t)0x00000004) /*!< Receiver Enable */
Kojto 93:e188a91d3eaa 7299 #define USART_CR1_TE ((uint32_t)0x00000008) /*!< Transmitter Enable */
Kojto 93:e188a91d3eaa 7300 #define USART_CR1_IDLEIE ((uint32_t)0x00000010) /*!< IDLE Interrupt Enable */
Kojto 93:e188a91d3eaa 7301 #define USART_CR1_RXNEIE ((uint32_t)0x00000020) /*!< RXNE Interrupt Enable */
Kojto 93:e188a91d3eaa 7302 #define USART_CR1_TCIE ((uint32_t)0x00000040) /*!< Transmission Complete Interrupt Enable */
Kojto 93:e188a91d3eaa 7303 #define USART_CR1_TXEIE ((uint32_t)0x00000080) /*!< TXE Interrupt Enable */
Kojto 93:e188a91d3eaa 7304 #define USART_CR1_PEIE ((uint32_t)0x00000100) /*!< PE Interrupt Enable */
Kojto 93:e188a91d3eaa 7305 #define USART_CR1_PS ((uint32_t)0x00000200) /*!< Parity Selection */
Kojto 93:e188a91d3eaa 7306 #define USART_CR1_PCE ((uint32_t)0x00000400) /*!< Parity Control Enable */
Kojto 93:e188a91d3eaa 7307 #define USART_CR1_WAKE ((uint32_t)0x00000800) /*!< Receiver Wakeup method */
Kojto 93:e188a91d3eaa 7308 #define USART_CR1_M0 ((uint32_t)0x00001000) /*!< Word length bit 0 */
Kojto 93:e188a91d3eaa 7309 #define USART_CR1_MME ((uint32_t)0x00002000) /*!< Mute Mode Enable */
Kojto 93:e188a91d3eaa 7310 #define USART_CR1_CMIE ((uint32_t)0x00004000) /*!< Character match interrupt enable */
Kojto 93:e188a91d3eaa 7311 #define USART_CR1_OVER8 ((uint32_t)0x00008000) /*!< Oversampling by 8-bit or 16-bit mode */
Kojto 93:e188a91d3eaa 7312 #define USART_CR1_DEDT ((uint32_t)0x001F0000) /*!< DEDT[4:0] bits (Driver Enable Deassertion Time) */
Kojto 93:e188a91d3eaa 7313 #define USART_CR1_DEDT_0 ((uint32_t)0x00010000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 7314 #define USART_CR1_DEDT_1 ((uint32_t)0x00020000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 7315 #define USART_CR1_DEDT_2 ((uint32_t)0x00040000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 7316 #define USART_CR1_DEDT_3 ((uint32_t)0x00080000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 7317 #define USART_CR1_DEDT_4 ((uint32_t)0x00100000) /*!< Bit 4 */
Kojto 93:e188a91d3eaa 7318 #define USART_CR1_DEAT ((uint32_t)0x03E00000) /*!< DEAT[4:0] bits (Driver Enable Assertion Time) */
Kojto 93:e188a91d3eaa 7319 #define USART_CR1_DEAT_0 ((uint32_t)0x00200000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 7320 #define USART_CR1_DEAT_1 ((uint32_t)0x00400000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 7321 #define USART_CR1_DEAT_2 ((uint32_t)0x00800000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 7322 #define USART_CR1_DEAT_3 ((uint32_t)0x01000000) /*!< Bit 3 */
Kojto 93:e188a91d3eaa 7323 #define USART_CR1_DEAT_4 ((uint32_t)0x02000000) /*!< Bit 4 */
Kojto 93:e188a91d3eaa 7324 #define USART_CR1_RTOIE ((uint32_t)0x04000000) /*!< Receive Time Out interrupt enable */
Kojto 93:e188a91d3eaa 7325 #define USART_CR1_EOBIE ((uint32_t)0x08000000) /*!< End of Block interrupt enable */
Kojto 93:e188a91d3eaa 7326 #define USART_CR1_M1 ((uint32_t)0x10000000) /*!< Word length bit 1 */
Kojto 93:e188a91d3eaa 7327 #define USART_CR1_M ((uint32_t)0x10001000) /*!< [M1:M0] Word length */
Kojto 93:e188a91d3eaa 7328
Kojto 93:e188a91d3eaa 7329 /****************** Bit definition for USART_CR2 register *******************/
Kojto 93:e188a91d3eaa 7330 #define USART_CR2_ADDM7 ((uint32_t)0x00000010) /*!< 7-bit or 4-bit Address Detection */
Kojto 93:e188a91d3eaa 7331 #define USART_CR2_LBDL ((uint32_t)0x00000020) /*!< LIN Break Detection Length */
Kojto 93:e188a91d3eaa 7332 #define USART_CR2_LBDIE ((uint32_t)0x00000040) /*!< LIN Break Detection Interrupt Enable */
Kojto 93:e188a91d3eaa 7333 #define USART_CR2_LBCL ((uint32_t)0x00000100) /*!< Last Bit Clock pulse */
Kojto 93:e188a91d3eaa 7334 #define USART_CR2_CPHA ((uint32_t)0x00000200) /*!< Clock Phase */
Kojto 93:e188a91d3eaa 7335 #define USART_CR2_CPOL ((uint32_t)0x00000400) /*!< Clock Polarity */
Kojto 93:e188a91d3eaa 7336 #define USART_CR2_CLKEN ((uint32_t)0x00000800) /*!< Clock Enable */
Kojto 93:e188a91d3eaa 7337 #define USART_CR2_STOP ((uint32_t)0x00003000) /*!< STOP[1:0] bits (STOP bits) */
Kojto 93:e188a91d3eaa 7338 #define USART_CR2_STOP_0 ((uint32_t)0x00001000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 7339 #define USART_CR2_STOP_1 ((uint32_t)0x00002000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 7340 #define USART_CR2_LINEN ((uint32_t)0x00004000) /*!< LIN mode enable */
Kojto 93:e188a91d3eaa 7341 #define USART_CR2_SWAP ((uint32_t)0x00008000) /*!< SWAP TX/RX pins */
Kojto 93:e188a91d3eaa 7342 #define USART_CR2_RXINV ((uint32_t)0x00010000) /*!< RX pin active level inversion */
Kojto 93:e188a91d3eaa 7343 #define USART_CR2_TXINV ((uint32_t)0x00020000) /*!< TX pin active level inversion */
Kojto 93:e188a91d3eaa 7344 #define USART_CR2_DATAINV ((uint32_t)0x00040000) /*!< Binary data inversion */
Kojto 93:e188a91d3eaa 7345 #define USART_CR2_MSBFIRST ((uint32_t)0x00080000) /*!< Most Significant Bit First */
Kojto 93:e188a91d3eaa 7346 #define USART_CR2_ABREN ((uint32_t)0x00100000) /*!< Auto Baud-Rate Enable*/
Kojto 93:e188a91d3eaa 7347 #define USART_CR2_ABRMODE ((uint32_t)0x00600000) /*!< ABRMOD[1:0] bits (Auto Baud-Rate Mode) */
Kojto 93:e188a91d3eaa 7348 #define USART_CR2_ABRMODE_0 ((uint32_t)0x00200000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 7349 #define USART_CR2_ABRMODE_1 ((uint32_t)0x00400000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 7350 #define USART_CR2_RTOEN ((uint32_t)0x00800000) /*!< Receiver Time-Out enable */
Kojto 93:e188a91d3eaa 7351 #define USART_CR2_ADD ((uint32_t)0xFF000000) /*!< Address of the USART node */
Kojto 93:e188a91d3eaa 7352
Kojto 93:e188a91d3eaa 7353 /****************** Bit definition for USART_CR3 register *******************/
Kojto 93:e188a91d3eaa 7354 #define USART_CR3_EIE ((uint32_t)0x00000001) /*!< Error Interrupt Enable */
Kojto 93:e188a91d3eaa 7355 #define USART_CR3_IREN ((uint32_t)0x00000002) /*!< IrDA mode Enable */
Kojto 93:e188a91d3eaa 7356 #define USART_CR3_IRLP ((uint32_t)0x00000004) /*!< IrDA Low-Power */
Kojto 93:e188a91d3eaa 7357 #define USART_CR3_HDSEL ((uint32_t)0x00000008) /*!< Half-Duplex Selection */
Kojto 93:e188a91d3eaa 7358 #define USART_CR3_NACK ((uint32_t)0x00000010) /*!< SmartCard NACK enable */
Kojto 93:e188a91d3eaa 7359 #define USART_CR3_SCEN ((uint32_t)0x00000020) /*!< SmartCard mode enable */
Kojto 93:e188a91d3eaa 7360 #define USART_CR3_DMAR ((uint32_t)0x00000040) /*!< DMA Enable Receiver */
Kojto 93:e188a91d3eaa 7361 #define USART_CR3_DMAT ((uint32_t)0x00000080) /*!< DMA Enable Transmitter */
Kojto 93:e188a91d3eaa 7362 #define USART_CR3_RTSE ((uint32_t)0x00000100) /*!< RTS Enable */
Kojto 93:e188a91d3eaa 7363 #define USART_CR3_CTSE ((uint32_t)0x00000200) /*!< CTS Enable */
Kojto 93:e188a91d3eaa 7364 #define USART_CR3_CTSIE ((uint32_t)0x00000400) /*!< CTS Interrupt Enable */
Kojto 93:e188a91d3eaa 7365 #define USART_CR3_ONEBIT ((uint32_t)0x00000800) /*!< One sample bit method enable */
Kojto 93:e188a91d3eaa 7366 #define USART_CR3_OVRDIS ((uint32_t)0x00001000) /*!< Overrun Disable */
Kojto 93:e188a91d3eaa 7367 #define USART_CR3_DDRE ((uint32_t)0x00002000) /*!< DMA Disable on Reception Error */
Kojto 93:e188a91d3eaa 7368 #define USART_CR3_DEM ((uint32_t)0x00004000) /*!< Driver Enable Mode */
Kojto 93:e188a91d3eaa 7369 #define USART_CR3_DEP ((uint32_t)0x00008000) /*!< Driver Enable Polarity Selection */
Kojto 93:e188a91d3eaa 7370 #define USART_CR3_SCARCNT ((uint32_t)0x000E0000) /*!< SCARCNT[2:0] bits (SmartCard Auto-Retry Count) */
Kojto 93:e188a91d3eaa 7371 #define USART_CR3_SCARCNT_0 ((uint32_t)0x00020000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 7372 #define USART_CR3_SCARCNT_1 ((uint32_t)0x00040000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 7373 #define USART_CR3_SCARCNT_2 ((uint32_t)0x00080000) /*!< Bit 2 */
Kojto 93:e188a91d3eaa 7374 #define USART_CR3_WUS ((uint32_t)0x00300000) /*!< WUS[1:0] bits (Wake UP Interrupt Flag Selection) */
Kojto 93:e188a91d3eaa 7375 #define USART_CR3_WUS_0 ((uint32_t)0x00100000) /*!< Bit 0 */
Kojto 93:e188a91d3eaa 7376 #define USART_CR3_WUS_1 ((uint32_t)0x00200000) /*!< Bit 1 */
Kojto 93:e188a91d3eaa 7377 #define USART_CR3_WUFIE ((uint32_t)0x00400000) /*!< Wake Up Interrupt Enable */
Kojto 93:e188a91d3eaa 7378
Kojto 93:e188a91d3eaa 7379 /****************** Bit definition for USART_BRR register *******************/
Kojto 93:e188a91d3eaa 7380 #define USART_BRR_DIV_FRACTION ((uint32_t)0x0000000F) /*!< Fraction of USARTDIV */
Kojto 93:e188a91d3eaa 7381 #define USART_BRR_DIV_MANTISSA ((uint32_t)0x0000FFF0) /*!< Mantissa of USARTDIV */
Kojto 93:e188a91d3eaa 7382
Kojto 93:e188a91d3eaa 7383 /****************** Bit definition for USART_GTPR register ******************/
Kojto 93:e188a91d3eaa 7384 #define USART_GTPR_PSC ((uint32_t)0x000000FF) /*!< PSC[7:0] bits (Prescaler value) */
Kojto 93:e188a91d3eaa 7385 #define USART_GTPR_GT ((uint32_t)0x0000FF00) /*!< GT[7:0] bits (Guard time value) */
Kojto 93:e188a91d3eaa 7386
Kojto 93:e188a91d3eaa 7387
Kojto 93:e188a91d3eaa 7388 /******************* Bit definition for USART_RTOR register *****************/
Kojto 93:e188a91d3eaa 7389 #define USART_RTOR_RTO ((uint32_t)0x00FFFFFF) /*!< Receiver Time Out Value */
Kojto 93:e188a91d3eaa 7390 #define USART_RTOR_BLEN ((uint32_t)0xFF000000) /*!< Block Length */
Kojto 93:e188a91d3eaa 7391
Kojto 93:e188a91d3eaa 7392 /******************* Bit definition for USART_RQR register ******************/
Kojto 93:e188a91d3eaa 7393 #define USART_RQR_ABRRQ ((uint32_t)0x00000001) /*!< Auto-Baud Rate Request */
Kojto 93:e188a91d3eaa 7394 #define USART_RQR_SBKRQ ((uint32_t)0x00000002) /*!< Send Break Request */
Kojto 93:e188a91d3eaa 7395 #define USART_RQR_MMRQ ((uint32_t)0x00000004) /*!< Mute Mode Request */
Kojto 93:e188a91d3eaa 7396 #define USART_RQR_RXFRQ ((uint32_t)0x00000008) /*!< Receive Data flush Request */
Kojto 93:e188a91d3eaa 7397 #define USART_RQR_TXFRQ ((uint32_t)0x00000010) /*!< Transmit data flush Request */
Kojto 93:e188a91d3eaa 7398
Kojto 93:e188a91d3eaa 7399 /******************* Bit definition for USART_ISR register ******************/
Kojto 93:e188a91d3eaa 7400 #define USART_ISR_PE ((uint32_t)0x00000001) /*!< Parity Error */
Kojto 93:e188a91d3eaa 7401 #define USART_ISR_FE ((uint32_t)0x00000002) /*!< Framing Error */
Kojto 93:e188a91d3eaa 7402 #define USART_ISR_NE ((uint32_t)0x00000004) /*!< Noise detected Flag */
Kojto 93:e188a91d3eaa 7403 #define USART_ISR_ORE ((uint32_t)0x00000008) /*!< OverRun Error */
Kojto 93:e188a91d3eaa 7404 #define USART_ISR_IDLE ((uint32_t)0x00000010) /*!< IDLE line detected */
Kojto 93:e188a91d3eaa 7405 #define USART_ISR_RXNE ((uint32_t)0x00000020) /*!< Read Data Register Not Empty */
Kojto 93:e188a91d3eaa 7406 #define USART_ISR_TC ((uint32_t)0x00000040) /*!< Transmission Complete */
Kojto 93:e188a91d3eaa 7407 #define USART_ISR_TXE ((uint32_t)0x00000080) /*!< Transmit Data Register Empty */
Kojto 93:e188a91d3eaa 7408 #define USART_ISR_LBDF ((uint32_t)0x00000100) /*!< LIN Break Detection Flag */
Kojto 93:e188a91d3eaa 7409 #define USART_ISR_CTSIF ((uint32_t)0x00000200) /*!< CTS interrupt flag */
Kojto 93:e188a91d3eaa 7410 #define USART_ISR_CTS ((uint32_t)0x00000400) /*!< CTS flag */
Kojto 93:e188a91d3eaa 7411 #define USART_ISR_RTOF ((uint32_t)0x00000800) /*!< Receiver Time Out */
Kojto 93:e188a91d3eaa 7412 #define USART_ISR_EOBF ((uint32_t)0x00001000) /*!< End Of Block Flag */
Kojto 93:e188a91d3eaa 7413 #define USART_ISR_ABRE ((uint32_t)0x00004000) /*!< Auto-Baud Rate Error */
Kojto 93:e188a91d3eaa 7414 #define USART_ISR_ABRF ((uint32_t)0x00008000) /*!< Auto-Baud Rate Flag */
Kojto 93:e188a91d3eaa 7415 #define USART_ISR_BUSY ((uint32_t)0x00010000) /*!< Busy Flag */
Kojto 93:e188a91d3eaa 7416 #define USART_ISR_CMF ((uint32_t)0x00020000) /*!< Character Match Flag */
Kojto 93:e188a91d3eaa 7417 #define USART_ISR_SBKF ((uint32_t)0x00040000) /*!< Send Break Flag */
Kojto 93:e188a91d3eaa 7418 #define USART_ISR_RWU ((uint32_t)0x00080000) /*!< Receive Wake Up from mute mode Flag */
Kojto 93:e188a91d3eaa 7419 #define USART_ISR_WUF ((uint32_t)0x00100000) /*!< Wake Up from stop mode Flag */
Kojto 93:e188a91d3eaa 7420 #define USART_ISR_TEACK ((uint32_t)0x00200000) /*!< Transmit Enable Acknowledge Flag */
Kojto 93:e188a91d3eaa 7421 #define USART_ISR_REACK ((uint32_t)0x00400000) /*!< Receive Enable Acknowledge Flag */
Kojto 93:e188a91d3eaa 7422
Kojto 93:e188a91d3eaa 7423 /******************* Bit definition for USART_ICR register ******************/
Kojto 93:e188a91d3eaa 7424 #define USART_ICR_PECF ((uint32_t)0x00000001) /*!< Parity Error Clear Flag */
Kojto 93:e188a91d3eaa 7425 #define USART_ICR_FECF ((uint32_t)0x00000002) /*!< Framing Error Clear Flag */
Kojto 93:e188a91d3eaa 7426 #define USART_ICR_NCF ((uint32_t)0x00000004) /*!< Noise detected Clear Flag */
Kojto 93:e188a91d3eaa 7427 #define USART_ICR_ORECF ((uint32_t)0x00000008) /*!< OverRun Error Clear Flag */
Kojto 93:e188a91d3eaa 7428 #define USART_ICR_IDLECF ((uint32_t)0x00000010) /*!< IDLE line detected Clear Flag */
Kojto 93:e188a91d3eaa 7429 #define USART_ICR_TCCF ((uint32_t)0x00000040) /*!< Transmission Complete Clear Flag */
Kojto 93:e188a91d3eaa 7430 #define USART_ICR_LBDCF ((uint32_t)0x00000100) /*!< LIN Break Detection Clear Flag */
Kojto 93:e188a91d3eaa 7431 #define USART_ICR_CTSCF ((uint32_t)0x00000200) /*!< CTS Interrupt Clear Flag */
Kojto 93:e188a91d3eaa 7432 #define USART_ICR_RTOCF ((uint32_t)0x00000800) /*!< Receiver Time Out Clear Flag */
Kojto 93:e188a91d3eaa 7433 #define USART_ICR_EOBCF ((uint32_t)0x00001000) /*!< End Of Block Clear Flag */
Kojto 93:e188a91d3eaa 7434 #define USART_ICR_CMCF ((uint32_t)0x00020000) /*!< Character Match Clear Flag */
Kojto 93:e188a91d3eaa 7435 #define USART_ICR_WUCF ((uint32_t)0x00100000) /*!< Wake Up from stop mode Clear Flag */
Kojto 93:e188a91d3eaa 7436
Kojto 93:e188a91d3eaa 7437 /******************* Bit definition for USART_RDR register ******************/
Kojto 93:e188a91d3eaa 7438 #define USART_RDR_RDR ((uint32_t)0x000001FF) /*!< RDR[8:0] bits (Receive Data value) */
Kojto 93:e188a91d3eaa 7439
Kojto 93:e188a91d3eaa 7440 /******************* Bit definition for USART_TDR register ******************/
Kojto 93:e188a91d3eaa 7441 #define USART_TDR_TDR ((uint32_t)0x000001FF) /*!< TDR[8:0] bits (Transmit Data value) */
Kojto 93:e188a91d3eaa 7442
Kojto 93:e188a91d3eaa 7443 /******************************************************************************/
Kojto 93:e188a91d3eaa 7444 /* */
Kojto 93:e188a91d3eaa 7445 /* USB Device General registers */
Kojto 93:e188a91d3eaa 7446 /* */
Kojto 93:e188a91d3eaa 7447 /******************************************************************************/
Kojto 93:e188a91d3eaa 7448 #define USB_CNTR (USB_BASE + 0x40) /*!< Control register */
Kojto 93:e188a91d3eaa 7449 #define USB_ISTR (USB_BASE + 0x44) /*!< Interrupt status register */
Kojto 93:e188a91d3eaa 7450 #define USB_FNR (USB_BASE + 0x48) /*!< Frame number register */
Kojto 93:e188a91d3eaa 7451 #define USB_DADDR (USB_BASE + 0x4C) /*!< Device address register */
Kojto 93:e188a91d3eaa 7452 #define USB_BTABLE (USB_BASE + 0x50) /*!< Buffer Table address register */
Kojto 93:e188a91d3eaa 7453 #define USB_LPMCSR (USB_BASE + 0x54) /*!< LPM Control and Status register */
Kojto 93:e188a91d3eaa 7454
Kojto 93:e188a91d3eaa 7455 /**************************** ISTR interrupt events *************************/
Kojto 93:e188a91d3eaa 7456 #define USB_ISTR_CTR ((uint16_t)0x8000) /*!< Correct TRansfer (clear-only bit) */
Kojto 93:e188a91d3eaa 7457 #define USB_ISTR_PMAOVRM ((uint16_t)0x4000) /*!< DMA OVeR/underrun (clear-only bit) */
Kojto 93:e188a91d3eaa 7458 #define USB_ISTR_ERR ((uint16_t)0x2000) /*!< ERRor (clear-only bit) */
Kojto 93:e188a91d3eaa 7459 #define USB_ISTR_WKUP ((uint16_t)0x1000) /*!< WaKe UP (clear-only bit) */
Kojto 93:e188a91d3eaa 7460 #define USB_ISTR_SUSP ((uint16_t)0x0800) /*!< SUSPend (clear-only bit) */
Kojto 93:e188a91d3eaa 7461 #define USB_ISTR_RESET ((uint16_t)0x0400) /*!< RESET (clear-only bit) */
Kojto 93:e188a91d3eaa 7462 #define USB_ISTR_SOF ((uint16_t)0x0200) /*!< Start Of Frame (clear-only bit) */
Kojto 93:e188a91d3eaa 7463 #define USB_ISTR_ESOF ((uint16_t)0x0100) /*!< Expected Start Of Frame (clear-only bit) */
Kojto 93:e188a91d3eaa 7464 #define USB_ISTR_L1REQ ((uint16_t)0x0080) /*!< LPM L1 state request */
Kojto 93:e188a91d3eaa 7465 #define USB_ISTR_DIR ((uint16_t)0x0010) /*!< DIRection of transaction (read-only bit) */
Kojto 93:e188a91d3eaa 7466 #define USB_ISTR_EP_ID ((uint16_t)0x000F) /*!< EndPoint IDentifier (read-only bit) */
Kojto 93:e188a91d3eaa 7467
Kojto 93:e188a91d3eaa 7468 #define USB_CLR_CTR (~USB_ISTR_CTR) /*!< clear Correct TRansfer bit */
Kojto 93:e188a91d3eaa 7469 #define USB_CLR_PMAOVRM (~USB_ISTR_PMAOVR) /*!< clear DMA OVeR/underrun bit*/
Kojto 93:e188a91d3eaa 7470 #define USB_CLR_ERR (~USB_ISTR_ERR) /*!< clear ERRor bit */
Kojto 93:e188a91d3eaa 7471 #define USB_CLR_WKUP (~USB_ISTR_WKUP) /*!< clear WaKe UP bit */
Kojto 93:e188a91d3eaa 7472 #define USB_CLR_SUSP (~USB_ISTR_SUSP) /*!< clear SUSPend bit */
Kojto 93:e188a91d3eaa 7473 #define USB_CLR_RESET (~USB_ISTR_RESET) /*!< clear RESET bit */
Kojto 93:e188a91d3eaa 7474 #define USB_CLR_SOF (~USB_ISTR_SOF) /*!< clear Start Of Frame bit */
Kojto 93:e188a91d3eaa 7475 #define USB_CLR_ESOF (~USB_ISTR_ESOF) /*!< clear Expected Start Of Frame bit */
Kojto 93:e188a91d3eaa 7476 #define USB_CLR_L1REQ (~USB_ISTR_L1REQ) /*!< clear LPM L1 bit */
Kojto 93:e188a91d3eaa 7477
Kojto 93:e188a91d3eaa 7478 /************************* CNTR control register bits definitions ***********/
Kojto 93:e188a91d3eaa 7479 #define USB_CNTR_CTRM ((uint16_t)0x8000) /*!< Correct TRansfer Mask */
Kojto 93:e188a91d3eaa 7480 #define USB_CNTR_PMAOVRM ((uint16_t)0x4000) /*!< DMA OVeR/underrun Mask */
Kojto 93:e188a91d3eaa 7481 #define USB_CNTR_ERRM ((uint16_t)0x2000) /*!< ERRor Mask */
Kojto 93:e188a91d3eaa 7482 #define USB_CNTR_WKUPM ((uint16_t)0x1000) /*!< WaKe UP Mask */
Kojto 93:e188a91d3eaa 7483 #define USB_CNTR_SUSPM ((uint16_t)0x0800) /*!< SUSPend Mask */
Kojto 93:e188a91d3eaa 7484 #define USB_CNTR_RESETM ((uint16_t)0x0400) /*!< RESET Mask */
Kojto 93:e188a91d3eaa 7485 #define USB_CNTR_SOFM ((uint16_t)0x0200) /*!< Start Of Frame Mask */
Kojto 93:e188a91d3eaa 7486 #define USB_CNTR_ESOFM ((uint16_t)0x0100) /*!< Expected Start Of Frame Mask */
Kojto 93:e188a91d3eaa 7487 #define USB_CNTR_L1REQM ((uint16_t)0x0080) /*!< LPM L1 state request interrupt mask */
Kojto 93:e188a91d3eaa 7488 #define USB_CNTR_L1RESUME ((uint16_t)0x0020) /*!< LPM L1 Resume request */
Kojto 93:e188a91d3eaa 7489 #define USB_CNTR_RESUME ((uint16_t)0x0010) /*!< RESUME request */
Kojto 93:e188a91d3eaa 7490 #define USB_CNTR_FSUSP ((uint16_t)0x0008) /*!< Force SUSPend */
Kojto 93:e188a91d3eaa 7491 #define USB_CNTR_LP_MODE ((uint16_t)0x0004) /*!< Low-power MODE */
Kojto 93:e188a91d3eaa 7492 #define USB_CNTR_PDWN ((uint16_t)0x0002) /*!< Power DoWN */
Kojto 93:e188a91d3eaa 7493 #define USB_CNTR_FRES ((uint16_t)0x0001) /*!< Force USB RESet */
Kojto 93:e188a91d3eaa 7494
Kojto 93:e188a91d3eaa 7495 /*************************** LPM register bits definitions ******************/
Kojto 93:e188a91d3eaa 7496 #define USB_LPMCSR_BESL ((uint16_t)0x00F0) /*!< BESL value received with last ACKed LPM Token */
Kojto 93:e188a91d3eaa 7497 #define USB_LPMCSR_REMWAKE ((uint16_t)0x0008) /*!< bRemoteWake value received with last ACKed LPM Token */
Kojto 93:e188a91d3eaa 7498 #define USB_LPMCSR_LPMACK ((uint16_t)0x0002) /*!< LPM Token acknowledge enable*/
Kojto 93:e188a91d3eaa 7499 #define USB_LPMCSR_LMPEN ((uint16_t)0x0001) /*!< LPM support enable */
Kojto 93:e188a91d3eaa 7500
Kojto 93:e188a91d3eaa 7501 /******************** FNR Frame Number Register bit definitions ************/
Kojto 93:e188a91d3eaa 7502 #define USB_FNR_RXDP ((uint16_t)0x8000) /*!< status of D+ data line */
Kojto 93:e188a91d3eaa 7503 #define USB_FNR_RXDM ((uint16_t)0x4000) /*!< status of D- data line */
Kojto 93:e188a91d3eaa 7504 #define USB_FNR_LCK ((uint16_t)0x2000) /*!< LoCKed */
Kojto 93:e188a91d3eaa 7505 #define USB_FNR_LSOF ((uint16_t)0x1800) /*!< Lost SOF */
Kojto 93:e188a91d3eaa 7506 #define USB_FNR_FN ((uint16_t)0x07FF) /*!< Frame Number */
Kojto 93:e188a91d3eaa 7507
Kojto 93:e188a91d3eaa 7508 /******************** DADDR Device ADDRess bit definitions ****************/
Kojto 93:e188a91d3eaa 7509 #define USB_DADDR_EF ((uint8_t)0x80) /*!< USB device address Enable Function */
Kojto 93:e188a91d3eaa 7510 #define USB_DADDR_ADD ((uint8_t)0x7F) /*!< USB device address */
Kojto 93:e188a91d3eaa 7511
Kojto 93:e188a91d3eaa 7512 /****************************** Endpoint register *************************/
Kojto 93:e188a91d3eaa 7513 #define USB_EP0R USB_BASE /*!< endpoint 0 register address */
Kojto 93:e188a91d3eaa 7514 #define USB_EP1R (USB_BASE + 0x04) /*!< endpoint 1 register address */
Kojto 93:e188a91d3eaa 7515 #define USB_EP2R (USB_BASE + 0x08) /*!< endpoint 2 register address */
Kojto 93:e188a91d3eaa 7516 #define USB_EP3R (USB_BASE + 0x0C) /*!< endpoint 3 register address */
Kojto 93:e188a91d3eaa 7517 #define USB_EP4R (USB_BASE + 0x10) /*!< endpoint 4 register address */
Kojto 93:e188a91d3eaa 7518 #define USB_EP5R (USB_BASE + 0x14) /*!< endpoint 5 register address */
Kojto 93:e188a91d3eaa 7519 #define USB_EP6R (USB_BASE + 0x18) /*!< endpoint 6 register address */
Kojto 93:e188a91d3eaa 7520 #define USB_EP7R (USB_BASE + 0x1C) /*!< endpoint 7 register address */
Kojto 93:e188a91d3eaa 7521 /* bit positions */
Kojto 93:e188a91d3eaa 7522 #define USB_EP_CTR_RX ((uint16_t)0x8000) /*!< EndPoint Correct TRansfer RX */
Kojto 93:e188a91d3eaa 7523 #define USB_EP_DTOG_RX ((uint16_t)0x4000) /*!< EndPoint Data TOGGLE RX */
Kojto 93:e188a91d3eaa 7524 #define USB_EPRX_STAT ((uint16_t)0x3000) /*!< EndPoint RX STATus bit field */
Kojto 93:e188a91d3eaa 7525 #define USB_EP_SETUP ((uint16_t)0x0800) /*!< EndPoint SETUP */
Kojto 93:e188a91d3eaa 7526 #define USB_EP_T_FIELD ((uint16_t)0x0600) /*!< EndPoint TYPE */
Kojto 93:e188a91d3eaa 7527 #define USB_EP_KIND ((uint16_t)0x0100) /*!< EndPoint KIND */
Kojto 93:e188a91d3eaa 7528 #define USB_EP_CTR_TX ((uint16_t)0x0080) /*!< EndPoint Correct TRansfer TX */
Kojto 93:e188a91d3eaa 7529 #define USB_EP_DTOG_TX ((uint16_t)0x0040) /*!< EndPoint Data TOGGLE TX */
Kojto 93:e188a91d3eaa 7530 #define USB_EPTX_STAT ((uint16_t)0x0030) /*!< EndPoint TX STATus bit field */
Kojto 93:e188a91d3eaa 7531 #define USB_EPADDR_FIELD ((uint16_t)0x000F) /*!< EndPoint ADDRess FIELD */
Kojto 93:e188a91d3eaa 7532
Kojto 93:e188a91d3eaa 7533 /* EndPoint REGister MASK (no toggle fields) */
Kojto 93:e188a91d3eaa 7534 #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)
Kojto 93:e188a91d3eaa 7535 /*!< EP_TYPE[1:0] EndPoint TYPE */
Kojto 93:e188a91d3eaa 7536 #define USB_EP_TYPE_MASK ((uint16_t)0x0600) /*!< EndPoint TYPE Mask */
Kojto 93:e188a91d3eaa 7537 #define USB_EP_BULK ((uint16_t)0x0000) /*!< EndPoint BULK */
Kojto 93:e188a91d3eaa 7538 #define USB_EP_CONTROL ((uint16_t)0x0200) /*!< EndPoint CONTROL */
Kojto 93:e188a91d3eaa 7539 #define USB_EP_ISOCHRONOUS ((uint16_t)0x0400) /*!< EndPoint ISOCHRONOUS */
Kojto 93:e188a91d3eaa 7540 #define USB_EP_INTERRUPT ((uint16_t)0x0600) /*!< EndPoint INTERRUPT */
Kojto 93:e188a91d3eaa 7541 #define USB_EP_T_MASK (~USB_EP_T_FIELD & USB_EPREG_MASK)
Kojto 93:e188a91d3eaa 7542
Kojto 93:e188a91d3eaa 7543 #define USB_EPKIND_MASK (~USB_EP_KIND & USB_EPREG_MASK) /*!< EP_KIND EndPoint KIND */
Kojto 93:e188a91d3eaa 7544 /*!< STAT_TX[1:0] STATus for TX transfer */
Kojto 93:e188a91d3eaa 7545 #define USB_EP_TX_DIS ((uint16_t)0x0000) /*!< EndPoint TX DISabled */
Kojto 93:e188a91d3eaa 7546 #define USB_EP_TX_STALL ((uint16_t)0x0010) /*!< EndPoint TX STALLed */
Kojto 93:e188a91d3eaa 7547 #define USB_EP_TX_NAK ((uint16_t)0x0020) /*!< EndPoint TX NAKed */
Kojto 93:e188a91d3eaa 7548 #define USB_EP_TX_VALID ((uint16_t)0x0030) /*!< EndPoint TX VALID */
Kojto 93:e188a91d3eaa 7549 #define USB_EPTX_DTOG1 ((uint16_t)0x0010) /*!< EndPoint TX Data TOGgle bit1 */
Kojto 93:e188a91d3eaa 7550 #define USB_EPTX_DTOG2 ((uint16_t)0x0020) /*!< EndPoint TX Data TOGgle bit2 */
Kojto 93:e188a91d3eaa 7551 #define USB_EPTX_DTOGMASK (USB_EPTX_STAT|USB_EPREG_MASK)
Kojto 93:e188a91d3eaa 7552 /*!< STAT_RX[1:0] STATus for RX transfer */
Kojto 93:e188a91d3eaa 7553 #define USB_EP_RX_DIS ((uint16_t)0x0000) /*!< EndPoint RX DISabled */
Kojto 93:e188a91d3eaa 7554 #define USB_EP_RX_STALL ((uint16_t)0x1000) /*!< EndPoint RX STALLed */
Kojto 93:e188a91d3eaa 7555 #define USB_EP_RX_NAK ((uint16_t)0x2000) /*!< EndPoint RX NAKed */
Kojto 93:e188a91d3eaa 7556 #define USB_EP_RX_VALID ((uint16_t)0x3000) /*!< EndPoint RX VALID */
Kojto 93:e188a91d3eaa 7557 #define USB_EPRX_DTOG1 ((uint16_t)0x1000) /*!< EndPoint RX Data TOGgle bit1 */
Kojto 93:e188a91d3eaa 7558 #define USB_EPRX_DTOG2 ((uint16_t)0x2000) /*!< EndPoint RX Data TOGgle bit1 */
Kojto 93:e188a91d3eaa 7559 #define USB_EPRX_DTOGMASK (USB_EPRX_STAT|USB_EPREG_MASK)
Kojto 93:e188a91d3eaa 7560
Kojto 93:e188a91d3eaa 7561 /******************************************************************************/
Kojto 93:e188a91d3eaa 7562 /* */
Kojto 93:e188a91d3eaa 7563 /* Window WATCHDOG */
Kojto 93:e188a91d3eaa 7564 /* */
Kojto 93:e188a91d3eaa 7565 /******************************************************************************/
Kojto 93:e188a91d3eaa 7566 /******************* Bit definition for WWDG_CR register ********************/
Kojto 93:e188a91d3eaa 7567 #define WWDG_CR_T ((uint32_t)0x0000007F) /*!<T[6:0] bits (7-Bit counter (MSB to LSB)) */
Kojto 93:e188a91d3eaa 7568 #define WWDG_CR_T0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7569 #define WWDG_CR_T1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7570 #define WWDG_CR_T2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7571 #define WWDG_CR_T3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7572 #define WWDG_CR_T4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 7573 #define WWDG_CR_T5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 7574 #define WWDG_CR_T6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 7575
Kojto 93:e188a91d3eaa 7576 #define WWDG_CR_WDGA ((uint32_t)0x00000080) /*!<Activation bit */
Kojto 93:e188a91d3eaa 7577
Kojto 93:e188a91d3eaa 7578 /******************* Bit definition for WWDG_CFR register *******************/
Kojto 93:e188a91d3eaa 7579 #define WWDG_CFR_W ((uint32_t)0x0000007F) /*!<W[6:0] bits (7-bit window value) */
Kojto 93:e188a91d3eaa 7580 #define WWDG_CFR_W0 ((uint32_t)0x00000001) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7581 #define WWDG_CFR_W1 ((uint32_t)0x00000002) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7582 #define WWDG_CFR_W2 ((uint32_t)0x00000004) /*!<Bit 2 */
Kojto 93:e188a91d3eaa 7583 #define WWDG_CFR_W3 ((uint32_t)0x00000008) /*!<Bit 3 */
Kojto 93:e188a91d3eaa 7584 #define WWDG_CFR_W4 ((uint32_t)0x00000010) /*!<Bit 4 */
Kojto 93:e188a91d3eaa 7585 #define WWDG_CFR_W5 ((uint32_t)0x00000020) /*!<Bit 5 */
Kojto 93:e188a91d3eaa 7586 #define WWDG_CFR_W6 ((uint32_t)0x00000040) /*!<Bit 6 */
Kojto 93:e188a91d3eaa 7587
Kojto 93:e188a91d3eaa 7588 #define WWDG_CFR_WDGTB ((uint32_t)0x00000180) /*!<WDGTB[1:0] bits (Timer Base) */
Kojto 93:e188a91d3eaa 7589 #define WWDG_CFR_WDGTB0 ((uint32_t)0x00000080) /*!<Bit 0 */
Kojto 93:e188a91d3eaa 7590 #define WWDG_CFR_WDGTB1 ((uint32_t)0x00000100) /*!<Bit 1 */
Kojto 93:e188a91d3eaa 7591
Kojto 93:e188a91d3eaa 7592 #define WWDG_CFR_EWI ((uint32_t)0x00000200) /*!<Early Wakeup Interrupt */
Kojto 93:e188a91d3eaa 7593
Kojto 93:e188a91d3eaa 7594 /******************* Bit definition for WWDG_SR register ********************/
Kojto 93:e188a91d3eaa 7595 #define WWDG_SR_EWIF ((uint32_t)0x00000001) /*!<Early Wakeup Interrupt Flag */
Kojto 93:e188a91d3eaa 7596
Kojto 93:e188a91d3eaa 7597 /**
Kojto 93:e188a91d3eaa 7598 * @}
Kojto 93:e188a91d3eaa 7599 */
Kojto 93:e188a91d3eaa 7600
Kojto 93:e188a91d3eaa 7601 /**
Kojto 93:e188a91d3eaa 7602 * @}
Kojto 93:e188a91d3eaa 7603 */
Kojto 93:e188a91d3eaa 7604
Kojto 93:e188a91d3eaa 7605 /** @addtogroup Exported_macros
Kojto 93:e188a91d3eaa 7606 * @{
Kojto 93:e188a91d3eaa 7607 */
Kojto 93:e188a91d3eaa 7608
Kojto 93:e188a91d3eaa 7609 /****************************** ADC Instances *********************************/
Kojto 93:e188a91d3eaa 7610 #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1) || \
Kojto 93:e188a91d3eaa 7611 ((INSTANCE) == ADC2) || \
Kojto 93:e188a91d3eaa 7612 ((INSTANCE) == ADC3) || \
Kojto 93:e188a91d3eaa 7613 ((INSTANCE) == ADC4))
Kojto 93:e188a91d3eaa 7614
Kojto 93:e188a91d3eaa 7615 #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == ADC1) || \
Kojto 93:e188a91d3eaa 7616 ((INSTANCE) == ADC3))
Kojto 93:e188a91d3eaa 7617
Kojto 93:e188a91d3eaa 7618 #define IS_ADC_COMMON_INSTANCE(INSTANCE) (((INSTANCE) == ADC1_2_COMMON) || \
Kojto 93:e188a91d3eaa 7619 ((INSTANCE) == ADC3_4_COMMON))
Kojto 93:e188a91d3eaa 7620
Kojto 93:e188a91d3eaa 7621 /****************************** CAN Instances *********************************/
Kojto 93:e188a91d3eaa 7622 #define IS_CAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CAN)
Kojto 93:e188a91d3eaa 7623
Kojto 93:e188a91d3eaa 7624 /****************************** COMP Instances ********************************/
Kojto 93:e188a91d3eaa 7625 #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \
Kojto 93:e188a91d3eaa 7626 ((INSTANCE) == COMP2) || \
Kojto 93:e188a91d3eaa 7627 ((INSTANCE) == COMP3) || \
Kojto 93:e188a91d3eaa 7628 ((INSTANCE) == COMP4) || \
Kojto 93:e188a91d3eaa 7629 ((INSTANCE) == COMP5) || \
Kojto 93:e188a91d3eaa 7630 ((INSTANCE) == COMP6) || \
Kojto 93:e188a91d3eaa 7631 ((INSTANCE) == COMP7))
Kojto 93:e188a91d3eaa 7632
Kojto 93:e188a91d3eaa 7633 /******************** COMP Instances with window mode capability **************/
Kojto 93:e188a91d3eaa 7634 #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) (((INSTANCE) == COMP2) || \
Kojto 93:e188a91d3eaa 7635 ((INSTANCE) == COMP4) || \
Kojto 93:e188a91d3eaa 7636 ((INSTANCE) == COMP6))
Kojto 93:e188a91d3eaa 7637
Kojto 93:e188a91d3eaa 7638 /****************************** CRC Instances *********************************/
Kojto 93:e188a91d3eaa 7639 #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC)
Kojto 93:e188a91d3eaa 7640
Kojto 93:e188a91d3eaa 7641 /****************************** DAC Instances *********************************/
Kojto 93:e188a91d3eaa 7642 #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1)
Kojto 93:e188a91d3eaa 7643
Kojto 93:e188a91d3eaa 7644 #define IS_DAC_CHANNEL_INSTANCE(INSTANCE, CHANNEL) \
Kojto 93:e188a91d3eaa 7645 (((INSTANCE) == DAC1) && \
Kojto 93:e188a91d3eaa 7646 (((CHANNEL) == DAC_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7647 ((CHANNEL) == DAC_CHANNEL_2)))
Kojto 93:e188a91d3eaa 7648
Kojto 93:e188a91d3eaa 7649 /****************************** DMA Instances *********************************/
Kojto 93:e188a91d3eaa 7650 #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \
Kojto 93:e188a91d3eaa 7651 ((INSTANCE) == DMA1_Channel2) || \
Kojto 93:e188a91d3eaa 7652 ((INSTANCE) == DMA1_Channel3) || \
Kojto 93:e188a91d3eaa 7653 ((INSTANCE) == DMA1_Channel4) || \
Kojto 93:e188a91d3eaa 7654 ((INSTANCE) == DMA1_Channel5) || \
Kojto 93:e188a91d3eaa 7655 ((INSTANCE) == DMA1_Channel6) || \
Kojto 93:e188a91d3eaa 7656 ((INSTANCE) == DMA1_Channel7) || \
Kojto 93:e188a91d3eaa 7657 ((INSTANCE) == DMA2_Channel1) || \
Kojto 93:e188a91d3eaa 7658 ((INSTANCE) == DMA2_Channel2) || \
Kojto 93:e188a91d3eaa 7659 ((INSTANCE) == DMA2_Channel3) || \
Kojto 93:e188a91d3eaa 7660 ((INSTANCE) == DMA2_Channel4) || \
Kojto 93:e188a91d3eaa 7661 ((INSTANCE) == DMA2_Channel5))
Kojto 93:e188a91d3eaa 7662
Kojto 93:e188a91d3eaa 7663 /****************************** GPIO Instances ********************************/
Kojto 93:e188a91d3eaa 7664 #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \
Kojto 93:e188a91d3eaa 7665 ((INSTANCE) == GPIOB) || \
Kojto 93:e188a91d3eaa 7666 ((INSTANCE) == GPIOC) || \
Kojto 93:e188a91d3eaa 7667 ((INSTANCE) == GPIOD) || \
Kojto 93:e188a91d3eaa 7668 ((INSTANCE) == GPIOE) || \
Kojto 93:e188a91d3eaa 7669 ((INSTANCE) == GPIOF) || \
Kojto 93:e188a91d3eaa 7670 ((INSTANCE) == GPIOG) || \
Kojto 93:e188a91d3eaa 7671 ((INSTANCE) == GPIOH))
Kojto 93:e188a91d3eaa 7672
Kojto 93:e188a91d3eaa 7673 /****************************** I2C Instances *********************************/
Kojto 93:e188a91d3eaa 7674 #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
Kojto 93:e188a91d3eaa 7675 ((INSTANCE) == I2C2) || \
Kojto 93:e188a91d3eaa 7676 ((INSTANCE) == I2C3))
Kojto 93:e188a91d3eaa 7677
Kojto 93:e188a91d3eaa 7678 /****************************** I2S Instances *********************************/
Kojto 93:e188a91d3eaa 7679 #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI2) || \
Kojto 93:e188a91d3eaa 7680 ((INSTANCE) == SPI3))
Kojto 93:e188a91d3eaa 7681
Kojto 93:e188a91d3eaa 7682 /****************************** IWDG Instances ********************************/
Kojto 93:e188a91d3eaa 7683 #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG)
Kojto 93:e188a91d3eaa 7684
Kojto 93:e188a91d3eaa 7685 /****************************** OPAMP Instances *******************************/
Kojto 93:e188a91d3eaa 7686 #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1) || \
Kojto 93:e188a91d3eaa 7687 ((INSTANCE) == OPAMP2) || \
Kojto 93:e188a91d3eaa 7688 ((INSTANCE) == OPAMP3) || \
Kojto 93:e188a91d3eaa 7689 ((INSTANCE) == OPAMP4))
Kojto 93:e188a91d3eaa 7690
Kojto 93:e188a91d3eaa 7691 /****************************** RTC Instances *********************************/
Kojto 93:e188a91d3eaa 7692 #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC)
Kojto 93:e188a91d3eaa 7693
Kojto 93:e188a91d3eaa 7694 /****************************** SMBUS Instances *******************************/
Kojto 93:e188a91d3eaa 7695 #define IS_SMBUS_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \
Kojto 93:e188a91d3eaa 7696 ((INSTANCE) == I2C2) || \
Kojto 93:e188a91d3eaa 7697 ((INSTANCE) == I2C3))
Kojto 93:e188a91d3eaa 7698
Kojto 93:e188a91d3eaa 7699 /****************************** SPI Instances *********************************/
Kojto 93:e188a91d3eaa 7700 #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \
Kojto 93:e188a91d3eaa 7701 ((INSTANCE) == SPI2) || \
Kojto 93:e188a91d3eaa 7702 ((INSTANCE) == SPI3) || \
Kojto 93:e188a91d3eaa 7703 ((INSTANCE) == SPI4))
Kojto 93:e188a91d3eaa 7704
Kojto 93:e188a91d3eaa 7705 /******************* TIM Instances : All supported instances ******************/
Kojto 93:e188a91d3eaa 7706 #define IS_TIM_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7707 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7708 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7709 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7710 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7711 ((INSTANCE) == TIM6) || \
Kojto 93:e188a91d3eaa 7712 ((INSTANCE) == TIM7) || \
Kojto 93:e188a91d3eaa 7713 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7714 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7715 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 7716 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 7717 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7718
Kojto 93:e188a91d3eaa 7719 /******************* TIM Instances : at least 1 capture/compare channel *******/
Kojto 93:e188a91d3eaa 7720 #define IS_TIM_CC1_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7721 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7722 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7723 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7724 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7725 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7726 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7727 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 7728 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 7729 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7730
Kojto 93:e188a91d3eaa 7731 /****************** TIM Instances : at least 2 capture/compare channels *******/
Kojto 93:e188a91d3eaa 7732 #define IS_TIM_CC2_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7733 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7734 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7735 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7736 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7737 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7738 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7739 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7740
Kojto 93:e188a91d3eaa 7741 /****************** TIM Instances : at least 3 capture/compare channels *******/
Kojto 93:e188a91d3eaa 7742 #define IS_TIM_CC3_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7743 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7744 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7745 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7746 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7747 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7748 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7749
Kojto 93:e188a91d3eaa 7750 /****************** TIM Instances : at least 4 capture/compare channels *******/
Kojto 93:e188a91d3eaa 7751 #define IS_TIM_CC4_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7752 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7753 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7754 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7755 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7756 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7757 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7758
Kojto 93:e188a91d3eaa 7759 /****************** TIM Instances : at least 5 capture/compare channels *******/
Kojto 93:e188a91d3eaa 7760 #define IS_TIM_CC5_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7761 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7762 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7763 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7764
Kojto 93:e188a91d3eaa 7765 /****************** TIM Instances : at least 6 capture/compare channels *******/
Kojto 93:e188a91d3eaa 7766 #define IS_TIM_CC6_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7767 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7768 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7769 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7770
Kojto 93:e188a91d3eaa 7771 /************************** TIM Instances : Advanced-control timers ***********/
Kojto 93:e188a91d3eaa 7772
Kojto 93:e188a91d3eaa 7773 /****************** TIM Instances : supporting clock selection ****************/
Kojto 93:e188a91d3eaa 7774 #define IS_TIM_CLOCK_SELECT_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7775 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7776 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7777 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7778 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7779 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7780 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7781 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7782
Kojto 93:e188a91d3eaa 7783 /****************** TIM Instances : supporting external clock mode 1 for ETRF input */
Kojto 93:e188a91d3eaa 7784 #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7785 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7786 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7787 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7788 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7789 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7790 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7791
Kojto 93:e188a91d3eaa 7792 /****************** TIM Instances : supporting external clock mode 2 **********/
Kojto 93:e188a91d3eaa 7793 #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7794 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7795 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7796 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7797 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7798 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7799 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7800
Kojto 93:e188a91d3eaa 7801 /****************** TIM Instances : supporting external clock mode 1 for TIX inputs*/
Kojto 93:e188a91d3eaa 7802 #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7803 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7804 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7805 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7806 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7807 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7808 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7809 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7810
Kojto 93:e188a91d3eaa 7811 /****************** TIM Instances : supporting internal trigger inputs(ITRX) *******/
Kojto 93:e188a91d3eaa 7812 #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7813 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7814 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7815 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7816 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7817 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7818 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7819 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7820
Kojto 93:e188a91d3eaa 7821 /****************** TIM Instances : supporting OCxREF clear *******************/
Kojto 93:e188a91d3eaa 7822 #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7823 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7824 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7825 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7826 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7827 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7828 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7829
Kojto 93:e188a91d3eaa 7830 /****************** TIM Instances : supporting encoder interface **************/
Kojto 93:e188a91d3eaa 7831 #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7832 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7833 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7834 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7835 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7836 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7837 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7838
Kojto 93:e188a91d3eaa 7839 /****************** TIM Instances : supporting Hall interface *****************/
Kojto 93:e188a91d3eaa 7840 #define IS_TIM_HALL_INTERFACE_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7841 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7842 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7843 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7844
Kojto 93:e188a91d3eaa 7845 /****************** TIM Instances : supporting input XOR function *************/
Kojto 93:e188a91d3eaa 7846 #define IS_TIM_XOR_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7847 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7848 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7849 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7850 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7851 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7852 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7853 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7854
Kojto 93:e188a91d3eaa 7855 /****************** TIM Instances : supporting master mode ********************/
Kojto 93:e188a91d3eaa 7856 #define IS_TIM_MASTER_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7857 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7858 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7859 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7860 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7861 ((INSTANCE) == TIM6) || \
Kojto 93:e188a91d3eaa 7862 ((INSTANCE) == TIM7) || \
Kojto 93:e188a91d3eaa 7863 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7864 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7865 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7866
Kojto 93:e188a91d3eaa 7867 /****************** TIM Instances : supporting slave mode *********************/
Kojto 93:e188a91d3eaa 7868 #define IS_TIM_SLAVE_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7869 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7870 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7871 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7872 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7873 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7874 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7875 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7876
Kojto 93:e188a91d3eaa 7877 /****************** TIM Instances : supporting synchronization ****************/
Kojto 93:e188a91d3eaa 7878 #define IS_TIM_SYNCHRO_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7879 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7880 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7881 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7882 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7883 ((INSTANCE) == TIM6) || \
Kojto 93:e188a91d3eaa 7884 ((INSTANCE) == TIM7) || \
Kojto 93:e188a91d3eaa 7885 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7886 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7887 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7888
Kojto 93:e188a91d3eaa 7889 /****************** TIM Instances : supporting 32 bits counter ****************/
Kojto 93:e188a91d3eaa 7890 #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7891 ((INSTANCE) == TIM2)
Kojto 93:e188a91d3eaa 7892
Kojto 93:e188a91d3eaa 7893 /****************** TIM Instances : supporting DMA burst **********************/
Kojto 93:e188a91d3eaa 7894 #define IS_TIM_DMABURST_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7895 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7896 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7897 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7898 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 7899 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7900 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7901 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 7902 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 7903 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7904
Kojto 93:e188a91d3eaa 7905 /****************** TIM Instances : supporting the break function *************/
Kojto 93:e188a91d3eaa 7906 #define IS_TIM_BREAK_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7907 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7908 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 7909 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 7910 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 7911 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 7912 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 7913
Kojto 93:e188a91d3eaa 7914 /****************** TIM Instances : supporting input/output channel(s) ********/
Kojto 93:e188a91d3eaa 7915 #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \
Kojto 93:e188a91d3eaa 7916 ((((INSTANCE) == TIM1) && \
Kojto 93:e188a91d3eaa 7917 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7918 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7919 ((CHANNEL) == TIM_CHANNEL_3) || \
Kojto 93:e188a91d3eaa 7920 ((CHANNEL) == TIM_CHANNEL_4) || \
Kojto 93:e188a91d3eaa 7921 ((CHANNEL) == TIM_CHANNEL_5) || \
Kojto 93:e188a91d3eaa 7922 ((CHANNEL) == TIM_CHANNEL_6))) \
Kojto 93:e188a91d3eaa 7923 || \
Kojto 93:e188a91d3eaa 7924 (((INSTANCE) == TIM2) && \
Kojto 93:e188a91d3eaa 7925 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7926 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7927 ((CHANNEL) == TIM_CHANNEL_3) || \
Kojto 93:e188a91d3eaa 7928 ((CHANNEL) == TIM_CHANNEL_4))) \
Kojto 93:e188a91d3eaa 7929 || \
Kojto 93:e188a91d3eaa 7930 (((INSTANCE) == TIM3) && \
Kojto 93:e188a91d3eaa 7931 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7932 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7933 ((CHANNEL) == TIM_CHANNEL_3) || \
Kojto 93:e188a91d3eaa 7934 ((CHANNEL) == TIM_CHANNEL_4))) \
Kojto 93:e188a91d3eaa 7935 || \
Kojto 93:e188a91d3eaa 7936 (((INSTANCE) == TIM4) && \
Kojto 93:e188a91d3eaa 7937 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7938 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7939 ((CHANNEL) == TIM_CHANNEL_3) || \
Kojto 93:e188a91d3eaa 7940 ((CHANNEL) == TIM_CHANNEL_4))) \
Kojto 93:e188a91d3eaa 7941 || \
Kojto 93:e188a91d3eaa 7942 (((INSTANCE) == TIM8) && \
Kojto 93:e188a91d3eaa 7943 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7944 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7945 ((CHANNEL) == TIM_CHANNEL_3) || \
Kojto 93:e188a91d3eaa 7946 ((CHANNEL) == TIM_CHANNEL_4) || \
Kojto 93:e188a91d3eaa 7947 ((CHANNEL) == TIM_CHANNEL_5) || \
Kojto 93:e188a91d3eaa 7948 ((CHANNEL) == TIM_CHANNEL_6))) \
Kojto 93:e188a91d3eaa 7949 || \
Kojto 93:e188a91d3eaa 7950 (((INSTANCE) == TIM15) && \
Kojto 93:e188a91d3eaa 7951 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7952 ((CHANNEL) == TIM_CHANNEL_2))) \
Kojto 93:e188a91d3eaa 7953 || \
Kojto 93:e188a91d3eaa 7954 (((INSTANCE) == TIM16) && \
Kojto 93:e188a91d3eaa 7955 (((CHANNEL) == TIM_CHANNEL_1))) \
Kojto 93:e188a91d3eaa 7956 || \
Kojto 93:e188a91d3eaa 7957 (((INSTANCE) == TIM17) && \
Kojto 93:e188a91d3eaa 7958 (((CHANNEL) == TIM_CHANNEL_1))) \
Kojto 93:e188a91d3eaa 7959 || \
Kojto 93:e188a91d3eaa 7960 (((INSTANCE) == TIM20) && \
Kojto 93:e188a91d3eaa 7961 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7962 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7963 ((CHANNEL) == TIM_CHANNEL_3) || \
Kojto 93:e188a91d3eaa 7964 ((CHANNEL) == TIM_CHANNEL_4) || \
Kojto 93:e188a91d3eaa 7965 ((CHANNEL) == TIM_CHANNEL_5) || \
Kojto 93:e188a91d3eaa 7966 ((CHANNEL) == TIM_CHANNEL_6))))
Kojto 93:e188a91d3eaa 7967
Kojto 93:e188a91d3eaa 7968 /****************** TIM Instances : supporting complementary output(s) ********/
Kojto 93:e188a91d3eaa 7969 #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \
Kojto 93:e188a91d3eaa 7970 ((((INSTANCE) == TIM1) && \
Kojto 93:e188a91d3eaa 7971 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7972 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7973 ((CHANNEL) == TIM_CHANNEL_3))) \
Kojto 93:e188a91d3eaa 7974 || \
Kojto 93:e188a91d3eaa 7975 (((INSTANCE) == TIM8) && \
Kojto 93:e188a91d3eaa 7976 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7977 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7978 ((CHANNEL) == TIM_CHANNEL_3))) \
Kojto 93:e188a91d3eaa 7979 || \
Kojto 93:e188a91d3eaa 7980 (((INSTANCE) == TIM15) && \
Kojto 93:e188a91d3eaa 7981 ((CHANNEL) == TIM_CHANNEL_1)) \
Kojto 93:e188a91d3eaa 7982 || \
Kojto 93:e188a91d3eaa 7983 (((INSTANCE) == TIM16) && \
Kojto 93:e188a91d3eaa 7984 ((CHANNEL) == TIM_CHANNEL_1)) \
Kojto 93:e188a91d3eaa 7985 || \
Kojto 93:e188a91d3eaa 7986 (((INSTANCE) == TIM17) && \
Kojto 93:e188a91d3eaa 7987 ((CHANNEL) == TIM_CHANNEL_1)) \
Kojto 93:e188a91d3eaa 7988 || \
Kojto 93:e188a91d3eaa 7989 (((INSTANCE) == TIM20) && \
Kojto 93:e188a91d3eaa 7990 (((CHANNEL) == TIM_CHANNEL_1) || \
Kojto 93:e188a91d3eaa 7991 ((CHANNEL) == TIM_CHANNEL_2) || \
Kojto 93:e188a91d3eaa 7992 ((CHANNEL) == TIM_CHANNEL_3))))
Kojto 93:e188a91d3eaa 7993
Kojto 93:e188a91d3eaa 7994 /****************** TIM Instances : supporting counting mode selection ********/
Kojto 93:e188a91d3eaa 7995 #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 7996 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 7997 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 7998 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 7999 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 8000 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8001 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8002
Kojto 93:e188a91d3eaa 8003 /****************** TIM Instances : supporting repetition counter *************/
Kojto 93:e188a91d3eaa 8004 #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 8005 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8006 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8007 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 8008 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 8009 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 8010 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8011
Kojto 93:e188a91d3eaa 8012 /****************** TIM Instances : supporting clock division *****************/
Kojto 93:e188a91d3eaa 8013 #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 8014 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8015 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 8016 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 8017 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 8018 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8019 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 8020 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 8021 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 8022 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8023
Kojto 93:e188a91d3eaa 8024 /****************** TIM Instances : supporting 2 break inputs *****************/
Kojto 93:e188a91d3eaa 8025 #define IS_TIM_BKIN2_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 8026 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8027 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8028 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8029
Kojto 93:e188a91d3eaa 8030 /****************** TIM Instances : supporting ADC triggering through TRGO2 ***/
Kojto 93:e188a91d3eaa 8031 #define IS_TIM_TRGO2_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 8032 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8033 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8034 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8035
Kojto 93:e188a91d3eaa 8036 /****************** TIM Instances : supporting DMA generation on Update events*/
Kojto 93:e188a91d3eaa 8037 #define IS_TIM_DMA_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 8038 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8039 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 8040 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 8041 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 8042 ((INSTANCE) == TIM6) || \
Kojto 93:e188a91d3eaa 8043 ((INSTANCE) == TIM7) || \
Kojto 93:e188a91d3eaa 8044 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8045 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 8046 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 8047 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 8048 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8049
Kojto 93:e188a91d3eaa 8050 /****************** TIM Instances : supporting DMA generation on Capture/Compare events */
Kojto 93:e188a91d3eaa 8051 #define IS_TIM_DMA_CC_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 8052 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8053 ((INSTANCE) == TIM2) || \
Kojto 93:e188a91d3eaa 8054 ((INSTANCE) == TIM3) || \
Kojto 93:e188a91d3eaa 8055 ((INSTANCE) == TIM4) || \
Kojto 93:e188a91d3eaa 8056 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8057 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 8058 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 8059 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 8060 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8061
Kojto 93:e188a91d3eaa 8062 /****************** TIM Instances : supporting commutation event generation ***/
Kojto 93:e188a91d3eaa 8063 #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 8064 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8065 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8066 ((INSTANCE) == TIM15) || \
Kojto 93:e188a91d3eaa 8067 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 8068 ((INSTANCE) == TIM17) || \
Kojto 93:e188a91d3eaa 8069 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8070
Kojto 93:e188a91d3eaa 8071 /****************** TIM Instances : supporting remapping capability ***********/
Kojto 93:e188a91d3eaa 8072 #define IS_TIM_REMAP_INSTANCE(INSTANCE)\
Kojto 93:e188a91d3eaa 8073 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8074 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8075 ((INSTANCE) == TIM16) || \
Kojto 93:e188a91d3eaa 8076 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8077
Kojto 93:e188a91d3eaa 8078 /****************** TIM Instances : supporting combined 3-phase PWM mode ******/
Kojto 93:e188a91d3eaa 8079 #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) \
Kojto 93:e188a91d3eaa 8080 (((INSTANCE) == TIM1) || \
Kojto 93:e188a91d3eaa 8081 ((INSTANCE) == TIM8) || \
Kojto 93:e188a91d3eaa 8082 ((INSTANCE) == TIM20))
Kojto 93:e188a91d3eaa 8083
Kojto 93:e188a91d3eaa 8084 /****************************** TSC Instances *********************************/
Kojto 93:e188a91d3eaa 8085 #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC)
Kojto 93:e188a91d3eaa 8086
Kojto 93:e188a91d3eaa 8087 /******************** USART Instances : Synchronous mode **********************/
Kojto 93:e188a91d3eaa 8088 #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8089 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8090 ((INSTANCE) == USART3))
Kojto 93:e188a91d3eaa 8091
Kojto 93:e188a91d3eaa 8092 /****************** USART Instances : Auto Baud Rate detection ****************/
Kojto 93:e188a91d3eaa 8093 #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8094 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8095 ((INSTANCE) == USART3))
Kojto 93:e188a91d3eaa 8096
Kojto 93:e188a91d3eaa 8097 /******************** UART Instances : Asynchronous mode **********************/
Kojto 93:e188a91d3eaa 8098 #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8099 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8100 ((INSTANCE) == USART3) || \
Kojto 93:e188a91d3eaa 8101 ((INSTANCE) == UART4) || \
Kojto 93:e188a91d3eaa 8102 ((INSTANCE) == UART5))
Kojto 93:e188a91d3eaa 8103
Kojto 93:e188a91d3eaa 8104 /******************** UART Instances : Half-Duplex mode **********************/
Kojto 93:e188a91d3eaa 8105 #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8106 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8107 ((INSTANCE) == USART3) || \
Kojto 93:e188a91d3eaa 8108 ((INSTANCE) == UART4) || \
Kojto 93:e188a91d3eaa 8109 ((INSTANCE) == UART5))
Kojto 93:e188a91d3eaa 8110
Kojto 93:e188a91d3eaa 8111 /******************** UART Instances : LIN mode **********************/
Kojto 93:e188a91d3eaa 8112 #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8113 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8114 ((INSTANCE) == USART3) || \
Kojto 93:e188a91d3eaa 8115 ((INSTANCE) == UART4) || \
Kojto 93:e188a91d3eaa 8116 ((INSTANCE) == UART5))
Kojto 93:e188a91d3eaa 8117
Kojto 93:e188a91d3eaa 8118 /******************** UART Instances : Wake-up from Stop mode **********************/
Kojto 93:e188a91d3eaa 8119 #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8120 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8121 ((INSTANCE) == USART3) || \
Kojto 93:e188a91d3eaa 8122 ((INSTANCE) == UART4) || \
Kojto 93:e188a91d3eaa 8123 ((INSTANCE) == UART5))
Kojto 93:e188a91d3eaa 8124
Kojto 93:e188a91d3eaa 8125 /****************** UART Instances : Hardware Flow control ********************/
Kojto 93:e188a91d3eaa 8126 #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8127 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8128 ((INSTANCE) == USART3))
Kojto 93:e188a91d3eaa 8129
Kojto 93:e188a91d3eaa 8130 /****************** UART Instances : Auto Baud Rate detection *****************/
Kojto 93:e188a91d3eaa 8131 #define IS_UART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8132 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8133 ((INSTANCE) == USART3))
Kojto 93:e188a91d3eaa 8134
Kojto 93:e188a91d3eaa 8135 /****************** UART Instances : Driver Enable ****************************/
Kojto 93:e188a91d3eaa 8136 #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8137 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8138 ((INSTANCE) == USART3))
Kojto 93:e188a91d3eaa 8139
Kojto 93:e188a91d3eaa 8140 /********************* UART Instances : Smard card mode ***********************/
Kojto 93:e188a91d3eaa 8141 #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8142 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8143 ((INSTANCE) == USART3))
Kojto 93:e188a91d3eaa 8144
Kojto 93:e188a91d3eaa 8145 /*********************** UART Instances : IRDA mode ***************************/
Kojto 93:e188a91d3eaa 8146 #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \
Kojto 93:e188a91d3eaa 8147 ((INSTANCE) == USART2) || \
Kojto 93:e188a91d3eaa 8148 ((INSTANCE) == USART3) || \
Kojto 93:e188a91d3eaa 8149 ((INSTANCE) == UART4) || \
Kojto 93:e188a91d3eaa 8150 ((INSTANCE) == UART5))
Kojto 93:e188a91d3eaa 8151
Kojto 93:e188a91d3eaa 8152 /****************************** USB Instances *********************************/
Kojto 93:e188a91d3eaa 8153 #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB)
Kojto 93:e188a91d3eaa 8154
Kojto 93:e188a91d3eaa 8155 /****************************** WWDG Instances ********************************/
Kojto 93:e188a91d3eaa 8156 #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG)
Kojto 93:e188a91d3eaa 8157
Kojto 93:e188a91d3eaa 8158 /**
Kojto 93:e188a91d3eaa 8159 * @}
Kojto 93:e188a91d3eaa 8160 */
Kojto 93:e188a91d3eaa 8161
Kojto 93:e188a91d3eaa 8162
Kojto 93:e188a91d3eaa 8163 /******************************************************************************/
Kojto 93:e188a91d3eaa 8164 /* For a painless codes migration between the STM32F3xx device product */
Kojto 93:e188a91d3eaa 8165 /* lines, the aliases defined below are put in place to overcome the */
Kojto 93:e188a91d3eaa 8166 /* differences in the interrupt handlers and IRQn definitions. */
Kojto 93:e188a91d3eaa 8167 /* No need to update developed interrupt code when moving across */
Kojto 93:e188a91d3eaa 8168 /* product lines within the same STM32F3 Family */
Kojto 93:e188a91d3eaa 8169 /******************************************************************************/
Kojto 93:e188a91d3eaa 8170
Kojto 93:e188a91d3eaa 8171 /* Aliases for __IRQn */
Kojto 93:e188a91d3eaa 8172
Kojto 93:e188a91d3eaa 8173 #define ADC1_IRQn ADC1_2_IRQn
Kojto 93:e188a91d3eaa 8174 #define CAN_TX_IRQn USB_HP_CAN_TX_IRQn
Kojto 93:e188a91d3eaa 8175 #define CAN_RX0_IRQn USB_LP_CAN_RX0_IRQn
Kojto 93:e188a91d3eaa 8176 #define TIM15_IRQn TIM1_BRK_TIM15_IRQn
Kojto 93:e188a91d3eaa 8177 #define TIM16_IRQn TIM1_UP_TIM16_IRQn
Kojto 93:e188a91d3eaa 8178 #define TIM17_IRQn TIM1_TRG_COM_TIM17_IRQn
Kojto 93:e188a91d3eaa 8179 #define COMP_IRQn COMP1_2_3_IRQn
Kojto 93:e188a91d3eaa 8180 #define COMP2_IRQn COMP1_2_3_IRQn
Kojto 93:e188a91d3eaa 8181 #define COMP1_2_IRQn COMP1_2_3_IRQn
Kojto 93:e188a91d3eaa 8182 #define COMP4_6_IRQn COMP4_5_6_IRQn
Kojto 93:e188a91d3eaa 8183 #define TIM6_DAC1_IRQn TIM6_DAC_IRQn
Kojto 93:e188a91d3eaa 8184
Kojto 93:e188a91d3eaa 8185 /* Aliases for __IRQHandler */
Kojto 93:e188a91d3eaa 8186 #define ADC1_IRQHandler ADC1_2_IRQHandler
Kojto 93:e188a91d3eaa 8187 #define CAN_TX_IRQHandler USB_HP_CAN_TX_IRQHandler
Kojto 93:e188a91d3eaa 8188 #define CAN_RX0_IRQHandler USB_LP_CAN_RX0_IRQHandler
Kojto 93:e188a91d3eaa 8189 #define TIM15_IRQHandler TIM1_BRK_TIM15_IRQHandler
Kojto 93:e188a91d3eaa 8190 #define TIM16_IRQHandler TIM1_UP_TIM16_IRQHandler
Kojto 93:e188a91d3eaa 8191 #define TIM17_IRQHandler TIM1_TRG_COM_TIM17_IRQHandler
Kojto 93:e188a91d3eaa 8192 #define COMP_IRQHandler COMP1_2_3_IRQHandler
Kojto 93:e188a91d3eaa 8193 #define COMP2_IRQHandler COMP1_2_3_IRQHandler
Kojto 93:e188a91d3eaa 8194 #define COMP1_2_IRQHandler COMP1_2_3_IRQHandler
Kojto 93:e188a91d3eaa 8195 #define COMP4_6_IRQHandler COMP4_5_6_IRQHandler
Kojto 93:e188a91d3eaa 8196 #define TIM6_DAC1_IRQHandler TIM6_DAC_IRQHandler
Kojto 93:e188a91d3eaa 8197
Kojto 93:e188a91d3eaa 8198 #ifdef __cplusplus
Kojto 93:e188a91d3eaa 8199 }
Kojto 93:e188a91d3eaa 8200 #endif /* __cplusplus */
Kojto 93:e188a91d3eaa 8201
Kojto 93:e188a91d3eaa 8202 #endif /* __STM32F303xE_H */
Kojto 93:e188a91d3eaa 8203
Kojto 93:e188a91d3eaa 8204 /**
Kojto 93:e188a91d3eaa 8205 * @}
Kojto 93:e188a91d3eaa 8206 */
Kojto 93:e188a91d3eaa 8207
Kojto 93:e188a91d3eaa 8208 /**
Kojto 93:e188a91d3eaa 8209 * @}
Kojto 93:e188a91d3eaa 8210 */
Kojto 93:e188a91d3eaa 8211
Kojto 93:e188a91d3eaa 8212 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/