Lines Matching refs:INSTANCE

17877 #define IS_ADC_ALL_INSTANCE(INSTANCE) (((INSTANCE) == ADC1) || \  argument
17878 ((INSTANCE) == ADC2) || \
17879 ((INSTANCE) == ADC3))
17881 #define IS_ADC_MULTIMODE_MASTER_INSTANCE(INSTANCE) ((INSTANCE) == ADC1) argument
17883 #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC123_COMMON) argument
17886 #define IS_CAN_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CAN1) argument
17889 #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \ argument
17890 ((INSTANCE) == COMP2))
17895 #define IS_COMP_WINDOWMODE_INSTANCE(INSTANCE) ((INSTANCE) == COMP2) argument
17898 #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC) argument
17901 #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC1) argument
17904 #define IS_DFSDM_FILTER_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Filter0) || \ argument
17905 ((INSTANCE) == DFSDM1_Filter1) || \
17906 ((INSTANCE) == DFSDM1_Filter2) || \
17907 ((INSTANCE) == DFSDM1_Filter3))
17909 #define IS_DFSDM_CHANNEL_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DFSDM1_Channel0) || \ argument
17910 ((INSTANCE) == DFSDM1_Channel1) || \
17911 ((INSTANCE) == DFSDM1_Channel2) || \
17912 ((INSTANCE) == DFSDM1_Channel3) || \
17913 ((INSTANCE) == DFSDM1_Channel4) || \
17914 ((INSTANCE) == DFSDM1_Channel5) || \
17915 ((INSTANCE) == DFSDM1_Channel6) || \
17916 ((INSTANCE) == DFSDM1_Channel7))
17919 #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \ argument
17920 ((INSTANCE) == DMA1_Channel2) || \
17921 ((INSTANCE) == DMA1_Channel3) || \
17922 ((INSTANCE) == DMA1_Channel4) || \
17923 ((INSTANCE) == DMA1_Channel5) || \
17924 ((INSTANCE) == DMA1_Channel6) || \
17925 ((INSTANCE) == DMA1_Channel7) || \
17926 ((INSTANCE) == DMA2_Channel1) || \
17927 ((INSTANCE) == DMA2_Channel2) || \
17928 ((INSTANCE) == DMA2_Channel3) || \
17929 ((INSTANCE) == DMA2_Channel4) || \
17930 ((INSTANCE) == DMA2_Channel5) || \
17931 ((INSTANCE) == DMA2_Channel6) || \
17932 ((INSTANCE) == DMA2_Channel7))
17935 #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \ argument
17936 ((INSTANCE) == GPIOB) || \
17937 ((INSTANCE) == GPIOC) || \
17938 ((INSTANCE) == GPIOD) || \
17939 ((INSTANCE) == GPIOE) || \
17940 ((INSTANCE) == GPIOF) || \
17941 ((INSTANCE) == GPIOG) || \
17942 ((INSTANCE) == GPIOH))
17946 #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) argument
17950 #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) argument
17953 #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ argument
17954 ((INSTANCE) == I2C2) || \
17955 ((INSTANCE) == I2C3))
17958 #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE) argument
17961 #define IS_LCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == LCD) argument
17964 #define IS_HCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB_OTG_FS) argument
17967 #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1) || \ argument
17968 ((INSTANCE) == OPAMP2))
17973 #define IS_PCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB_OTG_FS) argument
17976 #define IS_QSPI_ALL_INSTANCE(INSTANCE) ((INSTANCE) == QUADSPI) argument
17979 #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG) argument
17982 #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC) argument
17985 #define IS_SAI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SAI1_Block_A) || \ argument
17986 ((INSTANCE) == SAI1_Block_B) || \
17987 ((INSTANCE) == SAI2_Block_A) || \
17988 ((INSTANCE) == SAI2_Block_B))
17991 #define IS_SDMMC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SDMMC1) argument
17994 #define IS_SMBUS_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ argument
17995 ((INSTANCE) == I2C2) || \
17996 ((INSTANCE) == I2C3))
17999 #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \ argument
18000 ((INSTANCE) == SPI2) || \
18001 ((INSTANCE) == SPI3))
18004 #define IS_SWPMI_INSTANCE(INSTANCE) ((INSTANCE) == SWPMI1) argument
18007 #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1) || \ argument
18008 ((INSTANCE) == LPTIM2))
18011 #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18012 ((INSTANCE) == TIM2) || \
18013 ((INSTANCE) == TIM3) || \
18014 ((INSTANCE) == TIM4) || \
18015 ((INSTANCE) == TIM5) || \
18016 ((INSTANCE) == TIM6) || \
18017 ((INSTANCE) == TIM7) || \
18018 ((INSTANCE) == TIM8) || \
18019 ((INSTANCE) == TIM15) || \
18020 ((INSTANCE) == TIM16) || \
18021 ((INSTANCE) == TIM17))
18024 #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
18025 ((INSTANCE) == TIM5))
18028 #define IS_TIM_BREAK_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18029 ((INSTANCE) == TIM8) || \
18030 ((INSTANCE) == TIM15) || \
18031 ((INSTANCE) == TIM16) || \
18032 ((INSTANCE) == TIM17))
18035 #define IS_TIM_BREAKSOURCE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18036 ((INSTANCE) == TIM8) || \
18037 ((INSTANCE) == TIM15) || \
18038 ((INSTANCE) == TIM16) || \
18039 ((INSTANCE) == TIM17))
18042 #define IS_TIM_BKIN2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18043 ((INSTANCE) == TIM8))
18046 #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18047 ((INSTANCE) == TIM2) || \
18048 ((INSTANCE) == TIM3) || \
18049 ((INSTANCE) == TIM4) || \
18050 ((INSTANCE) == TIM5) || \
18051 ((INSTANCE) == TIM8) || \
18052 ((INSTANCE) == TIM15) || \
18053 ((INSTANCE) == TIM16) || \
18054 ((INSTANCE) == TIM17))
18057 #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18058 ((INSTANCE) == TIM2) || \
18059 ((INSTANCE) == TIM3) || \
18060 ((INSTANCE) == TIM4) || \
18061 ((INSTANCE) == TIM5) || \
18062 ((INSTANCE) == TIM8) || \
18063 ((INSTANCE) == TIM15))
18066 #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18067 ((INSTANCE) == TIM2) || \
18068 ((INSTANCE) == TIM3) || \
18069 ((INSTANCE) == TIM4) || \
18070 ((INSTANCE) == TIM5) || \
18071 ((INSTANCE) == TIM8))
18074 #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18075 ((INSTANCE) == TIM2) || \
18076 ((INSTANCE) == TIM3) || \
18077 ((INSTANCE) == TIM4) || \
18078 ((INSTANCE) == TIM5) || \
18079 ((INSTANCE) == TIM8))
18082 #define IS_TIM_CC5_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18083 ((INSTANCE) == TIM8))
18086 #define IS_TIM_CC6_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18087 ((INSTANCE) == TIM8))
18090 #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18091 ((INSTANCE) == TIM8) || \
18092 ((INSTANCE) == TIM15) || \
18093 ((INSTANCE) == TIM16) || \
18094 ((INSTANCE) == TIM17))
18097 #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18098 ((INSTANCE) == TIM2) || \
18099 ((INSTANCE) == TIM3) || \
18100 ((INSTANCE) == TIM4) || \
18101 ((INSTANCE) == TIM5) || \
18102 ((INSTANCE) == TIM6) || \
18103 ((INSTANCE) == TIM7) || \
18104 ((INSTANCE) == TIM8) || \
18105 ((INSTANCE) == TIM15) || \
18106 ((INSTANCE) == TIM16) || \
18107 ((INSTANCE) == TIM17))
18110 #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18111 ((INSTANCE) == TIM2) || \
18112 ((INSTANCE) == TIM3) || \
18113 ((INSTANCE) == TIM4) || \
18114 ((INSTANCE) == TIM5) || \
18115 ((INSTANCE) == TIM8) || \
18116 ((INSTANCE) == TIM15) || \
18117 ((INSTANCE) == TIM16) || \
18118 ((INSTANCE) == TIM17))
18121 #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18122 ((INSTANCE) == TIM2) || \
18123 ((INSTANCE) == TIM3) || \
18124 ((INSTANCE) == TIM4) || \
18125 ((INSTANCE) == TIM5) || \
18126 ((INSTANCE) == TIM8) || \
18127 ((INSTANCE) == TIM15) || \
18128 ((INSTANCE) == TIM16) || \
18129 ((INSTANCE) == TIM17))
18132 #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \ argument
18133 ((((INSTANCE) == TIM1) && \
18141 (((INSTANCE) == TIM2) && \
18147 (((INSTANCE) == TIM3) && \
18153 (((INSTANCE) == TIM4) && \
18159 (((INSTANCE) == TIM5) && \
18165 (((INSTANCE) == TIM8) && \
18173 (((INSTANCE) == TIM15) && \
18177 (((INSTANCE) == TIM16) && \
18180 (((INSTANCE) == TIM17) && \
18184 #define IS_TIM_CCXN_INSTANCE(INSTANCE, CHANNEL) \ argument
18185 ((((INSTANCE) == TIM1) && \
18190 (((INSTANCE) == TIM8) && \
18195 (((INSTANCE) == TIM15) && \
18198 (((INSTANCE) == TIM16) && \
18201 (((INSTANCE) == TIM17) && \
18205 #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18206 ((INSTANCE) == TIM2) || \
18207 ((INSTANCE) == TIM3) || \
18208 ((INSTANCE) == TIM4) || \
18209 ((INSTANCE) == TIM5) || \
18210 ((INSTANCE) == TIM8) || \
18211 ((INSTANCE) == TIM15) || \
18212 ((INSTANCE) == TIM16) || \
18213 ((INSTANCE) == TIM17))
18216 #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18217 ((INSTANCE) == TIM2) || \
18218 ((INSTANCE) == TIM3) || \
18219 ((INSTANCE) == TIM4) || \
18220 ((INSTANCE) == TIM5) || \
18221 ((INSTANCE) == TIM8) || \
18222 ((INSTANCE) == TIM15))
18225 #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18226 ((INSTANCE) == TIM2) || \
18227 ((INSTANCE) == TIM3) || \
18228 ((INSTANCE) == TIM4) || \
18229 ((INSTANCE) == TIM5) || \
18230 ((INSTANCE) == TIM8))
18233 #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18234 ((INSTANCE) == TIM2) || \
18235 ((INSTANCE) == TIM3) || \
18236 ((INSTANCE) == TIM4) || \
18237 ((INSTANCE) == TIM5) || \
18238 ((INSTANCE) == TIM8) || \
18239 ((INSTANCE) == TIM15))
18242 #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18243 ((INSTANCE) == TIM2) || \
18244 ((INSTANCE) == TIM3) || \
18245 ((INSTANCE) == TIM4) || \
18246 ((INSTANCE) == TIM5) || \
18247 ((INSTANCE) == TIM8) || \
18248 ((INSTANCE) == TIM15))
18251 #define IS_TIM_COMBINED3PHASEPWM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18252 ((INSTANCE) == TIM8))
18255 #define IS_TIM_COMMUTATION_EVENT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18256 ((INSTANCE) == TIM8) || \
18257 ((INSTANCE) == TIM15) || \
18258 ((INSTANCE) == TIM16) || \
18259 ((INSTANCE) == TIM17))
18262 #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18263 ((INSTANCE) == TIM2) || \
18264 ((INSTANCE) == TIM3) || \
18265 ((INSTANCE) == TIM4) || \
18266 ((INSTANCE) == TIM5) || \
18267 ((INSTANCE) == TIM8))
18270 #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18271 ((INSTANCE) == TIM2) || \
18272 ((INSTANCE) == TIM3) || \
18273 ((INSTANCE) == TIM4) || \
18274 ((INSTANCE) == TIM5) || \
18275 ((INSTANCE) == TIM8))
18278 #define IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18279 ((INSTANCE) == TIM2) || \
18280 ((INSTANCE) == TIM3) || \
18281 ((INSTANCE) == TIM4) || \
18282 ((INSTANCE) == TIM5) || \
18283 ((INSTANCE) == TIM8))
18286 #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18287 ((INSTANCE) == TIM2) || \
18288 ((INSTANCE) == TIM3) || \
18289 ((INSTANCE) == TIM4) || \
18290 ((INSTANCE) == TIM5) || \
18291 ((INSTANCE) == TIM8))
18294 #define IS_TIM_ETRSEL_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18295 ((INSTANCE) == TIM2) || \
18296 ((INSTANCE) == TIM3) || \
18297 ((INSTANCE) == TIM8))
18300 #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18301 ((INSTANCE) == TIM2) || \
18302 ((INSTANCE) == TIM3) || \
18303 ((INSTANCE) == TIM4) || \
18304 ((INSTANCE) == TIM5) || \
18305 ((INSTANCE) == TIM6) || \
18306 ((INSTANCE) == TIM7) || \
18307 ((INSTANCE) == TIM8) || \
18308 ((INSTANCE) == TIM15))
18311 #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18312 ((INSTANCE) == TIM2) || \
18313 ((INSTANCE) == TIM3) || \
18314 ((INSTANCE) == TIM4) || \
18315 ((INSTANCE) == TIM5) || \
18316 ((INSTANCE) == TIM8) || \
18317 ((INSTANCE) == TIM15))
18320 #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18321 ((INSTANCE) == TIM2) || \
18322 ((INSTANCE) == TIM3) || \
18323 ((INSTANCE) == TIM4) || \
18324 ((INSTANCE) == TIM5) || \
18325 ((INSTANCE) == TIM8))
18328 #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18329 ((INSTANCE) == TIM2) || \
18330 ((INSTANCE) == TIM3) || \
18331 ((INSTANCE) == TIM8) || \
18332 ((INSTANCE) == TIM15) || \
18333 ((INSTANCE) == TIM16) || \
18334 ((INSTANCE) == TIM17))
18337 #define IS_TIM_REPETITION_COUNTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18338 ((INSTANCE) == TIM8) || \
18339 ((INSTANCE) == TIM15) || \
18340 ((INSTANCE) == TIM16) || \
18341 ((INSTANCE) == TIM17))
18344 #define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE) argument
18347 #define IS_TIM_TRGO2_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18348 ((INSTANCE) == TIM8))
18351 #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18352 ((INSTANCE) == TIM2) || \
18353 ((INSTANCE) == TIM3) || \
18354 ((INSTANCE) == TIM4) || \
18355 ((INSTANCE) == TIM5) || \
18356 ((INSTANCE) == TIM8) || \
18357 ((INSTANCE) == TIM15))
18360 #define IS_TIM_ADVANCED_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \ argument
18361 ((INSTANCE) == TIM8))
18364 #define IS_TSC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == TSC) argument
18367 #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18368 ((INSTANCE) == USART2) || \
18369 ((INSTANCE) == USART3))
18372 #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18373 ((INSTANCE) == USART2) || \
18374 ((INSTANCE) == USART3) || \
18375 ((INSTANCE) == UART4) || \
18376 ((INSTANCE) == UART5))
18379 #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18380 ((INSTANCE) == USART2) || \
18381 ((INSTANCE) == USART3) || \
18382 ((INSTANCE) == UART4) || \
18383 ((INSTANCE) == UART5))
18386 #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18387 ((INSTANCE) == USART2) || \
18388 ((INSTANCE) == USART3) || \
18389 ((INSTANCE) == UART4) || \
18390 ((INSTANCE) == UART5) || \
18391 ((INSTANCE) == LPUART1))
18394 #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18395 ((INSTANCE) == USART2) || \
18396 ((INSTANCE) == USART3) || \
18397 ((INSTANCE) == UART4) || \
18398 ((INSTANCE) == UART5) || \
18399 ((INSTANCE) == LPUART1))
18402 #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18403 ((INSTANCE) == USART2) || \
18404 ((INSTANCE) == USART3) || \
18405 ((INSTANCE) == UART4) || \
18406 ((INSTANCE) == UART5) || \
18407 ((INSTANCE) == LPUART1))
18410 #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18411 ((INSTANCE) == USART2) || \
18412 ((INSTANCE) == USART3) || \
18413 ((INSTANCE) == UART4) || \
18414 ((INSTANCE) == UART5))
18417 #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18418 ((INSTANCE) == USART2) || \
18419 ((INSTANCE) == USART3) || \
18420 ((INSTANCE) == UART4) || \
18421 ((INSTANCE) == UART5) || \
18422 ((INSTANCE) == LPUART1))
18425 #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18426 ((INSTANCE) == USART2) || \
18427 ((INSTANCE) == USART3) || \
18428 ((INSTANCE) == UART4) || \
18429 ((INSTANCE) == UART5))
18432 #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
18433 ((INSTANCE) == USART2) || \
18434 ((INSTANCE) == USART3))
18437 #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1) argument
18440 #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG) argument
18443 #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG) argument