Lines Matching refs:INSTANCE
9031 #define IS_ADC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == ADC1) argument
9033 #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_COMMON) argument
9036 #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \ argument
9037 ((INSTANCE) == COMP2))
9042 #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC) argument
9045 #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC) argument
9048 #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \ argument
9049 ((INSTANCE) == DMA1_Channel2) || \
9050 ((INSTANCE) == DMA1_Channel3) || \
9051 ((INSTANCE) == DMA1_Channel4) || \
9052 ((INSTANCE) == DMA1_Channel5) || \
9053 ((INSTANCE) == DMA1_Channel6) || \
9054 ((INSTANCE) == DMA1_Channel7) || \
9055 ((INSTANCE) == DMA2_Channel1) || \
9056 ((INSTANCE) == DMA2_Channel2) || \
9057 ((INSTANCE) == DMA2_Channel3) || \
9058 ((INSTANCE) == DMA2_Channel4) || \
9059 ((INSTANCE) == DMA2_Channel5))
9062 #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \ argument
9063 ((INSTANCE) == GPIOB) || \
9064 ((INSTANCE) == GPIOC) || \
9065 ((INSTANCE) == GPIOD) || \
9066 ((INSTANCE) == GPIOE) || \
9067 ((INSTANCE) == GPIOF) || \
9068 ((INSTANCE) == GPIOG) || \
9069 ((INSTANCE) == GPIOH))
9072 #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) argument
9076 #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) argument
9079 #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ argument
9080 ((INSTANCE) == I2C2))
9083 #define IS_SMBUS_ALL_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE) argument
9086 #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI2) || \ argument
9087 ((INSTANCE) == SPI3))
9089 #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG) argument
9092 #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1) || \ argument
9093 ((INSTANCE) == OPAMP2))
9098 #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC) argument
9101 #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \ argument
9102 ((INSTANCE) == SPI2) || \
9103 ((INSTANCE) == SPI3))
9106 #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9107 ((INSTANCE) == TIM3) || \
9108 ((INSTANCE) == TIM4) || \
9109 ((INSTANCE) == TIM5) || \
9110 ((INSTANCE) == TIM6) || \
9111 ((INSTANCE) == TIM7) || \
9112 ((INSTANCE) == TIM9) || \
9113 ((INSTANCE) == TIM10) || \
9114 ((INSTANCE) == TIM11))
9116 #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9117 ((INSTANCE) == TIM3) || \
9118 ((INSTANCE) == TIM4) || \
9119 ((INSTANCE) == TIM5) || \
9120 ((INSTANCE) == TIM9) || \
9121 ((INSTANCE) == TIM10) || \
9122 ((INSTANCE) == TIM11))
9124 #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9125 ((INSTANCE) == TIM3) || \
9126 ((INSTANCE) == TIM4) || \
9127 ((INSTANCE) == TIM5) || \
9128 ((INSTANCE) == TIM9))
9130 #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9131 ((INSTANCE) == TIM3) || \
9132 ((INSTANCE) == TIM4) || \
9133 ((INSTANCE) == TIM5))
9135 #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9136 ((INSTANCE) == TIM3) || \
9137 ((INSTANCE) == TIM4) || \
9138 ((INSTANCE) == TIM5))
9140 #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9141 ((INSTANCE) == TIM3) || \
9142 ((INSTANCE) == TIM4) || \
9143 ((INSTANCE) == TIM5) || \
9144 ((INSTANCE) == TIM9))
9146 #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9147 ((INSTANCE) == TIM3) || \
9148 ((INSTANCE) == TIM4) || \
9149 ((INSTANCE) == TIM5) || \
9150 ((INSTANCE) == TIM9) || \
9151 ((INSTANCE) == TIM10) || \
9152 ((INSTANCE) == TIM11))
9154 #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9155 ((INSTANCE) == TIM3) || \
9156 ((INSTANCE) == TIM4) || \
9157 ((INSTANCE) == TIM5) || \
9158 ((INSTANCE) == TIM9))
9160 #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9161 ((INSTANCE) == TIM3) || \
9162 ((INSTANCE) == TIM4) || \
9163 ((INSTANCE) == TIM5) || \
9164 ((INSTANCE) == TIM9))
9166 #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9167 ((INSTANCE) == TIM3) || \
9168 ((INSTANCE) == TIM4))
9170 #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9171 ((INSTANCE) == TIM3) || \
9172 ((INSTANCE) == TIM4) || \
9173 ((INSTANCE) == TIM5))
9175 #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9176 ((INSTANCE) == TIM3) || \
9177 ((INSTANCE) == TIM4) || \
9178 ((INSTANCE) == TIM5))
9181 #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9182 ((INSTANCE) == TIM3) || \
9183 ((INSTANCE) == TIM4) || \
9184 ((INSTANCE) == TIM5) || \
9185 ((INSTANCE) == TIM6) || \
9186 ((INSTANCE) == TIM7) || \
9187 ((INSTANCE) == TIM9))
9189 #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9190 ((INSTANCE) == TIM3) || \
9191 ((INSTANCE) == TIM4) || \
9192 ((INSTANCE) == TIM5) || \
9193 ((INSTANCE) == TIM9))
9195 #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) ((INSTANCE) == TIM5) argument
9197 #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9198 ((INSTANCE) == TIM3) || \
9199 ((INSTANCE) == TIM4) || \
9200 ((INSTANCE) == TIM5))
9202 #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \ argument
9203 ((((INSTANCE) == TIM2) && \
9209 (((INSTANCE) == TIM3) && \
9215 (((INSTANCE) == TIM4) && \
9221 (((INSTANCE) == TIM5) && \
9227 (((INSTANCE) == TIM9) && \
9231 (((INSTANCE) == TIM10) && \
9234 (((INSTANCE) == TIM11) && \
9237 #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9238 ((INSTANCE) == TIM3) || \
9239 ((INSTANCE) == TIM4) || \
9240 ((INSTANCE) == TIM5) || \
9241 ((INSTANCE) == TIM9) || \
9242 ((INSTANCE) == TIM10) || \
9243 ((INSTANCE) == TIM11))
9245 #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9246 ((INSTANCE) == TIM3) || \
9247 ((INSTANCE) == TIM4) || \
9248 ((INSTANCE) == TIM5) || \
9249 ((INSTANCE) == TIM6) || \
9250 ((INSTANCE) == TIM7))
9252 #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9253 ((INSTANCE) == TIM3) || \
9254 ((INSTANCE) == TIM4) || \
9255 ((INSTANCE) == TIM5))
9257 #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9258 ((INSTANCE) == TIM3) || \
9259 ((INSTANCE) == TIM4) || \
9260 ((INSTANCE) == TIM5) || \
9261 ((INSTANCE) == TIM9))
9263 #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9264 ((INSTANCE) == TIM3) || \
9265 ((INSTANCE) == TIM4) || \
9266 ((INSTANCE) == TIM5) || \
9267 ((INSTANCE) == TIM9))
9269 #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
9270 ((INSTANCE) == TIM3) || \
9271 ((INSTANCE) == TIM9) || \
9272 ((INSTANCE) == TIM10) || \
9273 ((INSTANCE) == TIM11))
9276 #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9277 ((INSTANCE) == USART2) || \
9278 ((INSTANCE) == USART3))
9281 #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9282 ((INSTANCE) == USART2) || \
9283 ((INSTANCE) == USART3) || \
9284 ((INSTANCE) == UART4) || \
9285 ((INSTANCE) == UART5))
9288 #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9289 ((INSTANCE) == USART2) || \
9290 ((INSTANCE) == USART3) || \
9291 ((INSTANCE) == UART4) || \
9292 … ((INSTANCE) == UART5))
9295 #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9296 ((INSTANCE) == USART2) || \
9297 ((INSTANCE) == USART3) || \
9298 ((INSTANCE) == UART4) || \
9299 ((INSTANCE) == UART5))
9302 #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9303 ((INSTANCE) == USART2) || \
9304 ((INSTANCE) == USART3))
9307 #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9308 ((INSTANCE) == USART2) || \
9309 ((INSTANCE) == USART3))
9312 #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9313 ((INSTANCE) == USART2) || \
9314 ((INSTANCE) == USART3) || \
9315 ((INSTANCE) == UART4) || \
9316 ((INSTANCE) == UART5))
9319 #define IS_UART_MULTIPROCESSOR_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9320 ((INSTANCE) == USART2) || \
9321 ((INSTANCE) == USART3) || \
9322 ((INSTANCE) == UART4) || \
9323 ((INSTANCE) == UART5))
9326 #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG) argument
9330 #define IS_LCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == LCD) argument
9333 #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB) argument