Lines Matching refs:INSTANCE
7526 #define IS_ADC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == ADC1) argument
7527 #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_COMMON) argument
7530 #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \ argument
7531 ((INSTANCE) == COMP2))
7536 #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC) argument
7539 #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC) argument
7542 #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \ argument
7543 ((INSTANCE) == DMA1_Channel2) || \
7544 ((INSTANCE) == DMA1_Channel3) || \
7545 ((INSTANCE) == DMA1_Channel4) || \
7546 ((INSTANCE) == DMA1_Channel5) || \
7547 ((INSTANCE) == DMA1_Channel6) || \
7548 ((INSTANCE) == DMA1_Channel7))
7551 #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \ argument
7552 ((INSTANCE) == GPIOB) || \
7553 ((INSTANCE) == GPIOC) || \
7554 ((INSTANCE) == GPIOD) || \
7555 ((INSTANCE) == GPIOE) || \
7556 ((INSTANCE) == GPIOH))
7558 #define IS_GPIO_AF_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \ argument
7559 ((INSTANCE) == GPIOB) || \
7560 ((INSTANCE) == GPIOC) || \
7561 ((INSTANCE) == GPIOD) || \
7562 ((INSTANCE) == GPIOE) || \
7563 ((INSTANCE) == GPIOH))
7566 #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ argument
7567 ((INSTANCE) == I2C2) || \
7568 ((INSTANCE) == I2C3))
7571 #define IS_I2C_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ argument
7572 ((INSTANCE) == I2C3))
7576 #define IS_I2S_ALL_INSTANCE(INSTANCE) ((INSTANCE) == SPI2) argument
7579 #define IS_RNG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RNG) argument
7582 #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC) argument
7585 #define IS_SMBUS_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ argument
7586 ((INSTANCE) == I2C3))
7589 #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \ argument
7590 ((INSTANCE) == SPI2))
7593 #define IS_LPTIM_INSTANCE(INSTANCE) ((INSTANCE) == LPTIM1) argument
7596 #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7597 ((INSTANCE) == TIM3) || \
7598 ((INSTANCE) == TIM6) || \
7599 ((INSTANCE) == TIM7) || \
7600 ((INSTANCE) == TIM21) || \
7601 ((INSTANCE) == TIM22))
7604 #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7605 ((INSTANCE) == TIM3) || \
7606 ((INSTANCE) == TIM21) || \
7607 ((INSTANCE) == TIM22))
7610 #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7611 ((INSTANCE) == TIM3) || \
7612 ((INSTANCE) == TIM21) || \
7613 ((INSTANCE) == TIM22))
7616 #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7617 ((INSTANCE) == TIM3) || \
7618 ((INSTANCE) == TIM21))
7621 #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7622 ((INSTANCE) == TIM3) || \
7623 ((INSTANCE) == TIM21) || \
7624 ((INSTANCE) == TIM22))
7627 #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7628 ((INSTANCE) == TIM3) || \
7629 ((INSTANCE) == TIM21))
7632 #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7633 ((INSTANCE) == TIM3) || \
7634 ((INSTANCE) == TIM21) || \
7635 ((INSTANCE) == TIM22))
7638 #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7639 ((INSTANCE) == TIM3) || \
7640 ((INSTANCE) == TIM21) || \
7641 ((INSTANCE) == TIM22))
7644 #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7645 ((INSTANCE) == TIM3) || \
7646 ((INSTANCE) == TIM21) || \
7647 ((INSTANCE) == TIM22))
7650 #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7651 ((INSTANCE) == TIM3))
7654 #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7655 ((INSTANCE) == TIM3))
7660 #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7661 ((INSTANCE) == TIM3))
7664 #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7665 ((INSTANCE) == TIM3) || \
7666 ((INSTANCE) == TIM6) || \
7667 ((INSTANCE) == TIM7))
7670 #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7671 ((INSTANCE) == TIM3))
7674 #define IS_TIM_CCDMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7675 (INSTANCE) == TIM3))
7678 #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7679 ((INSTANCE) == TIM3))
7682 #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7683 ((INSTANCE) == TIM3) || \
7684 ((INSTANCE) == TIM6) || \
7685 ((INSTANCE) == TIM7) || \
7686 ((INSTANCE) == TIM21) || \
7687 ((INSTANCE) == TIM22))
7690 #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7691 ((INSTANCE) == TIM3) || \
7692 ((INSTANCE) == TIM21) || \
7693 ((INSTANCE) == TIM22))
7698 #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7699 ((INSTANCE) == TIM3) || \
7700 ((INSTANCE) == TIM21) || \
7701 ((INSTANCE) == TIM22))
7704 #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7705 ((INSTANCE) == TIM3) || \
7706 ((INSTANCE) == TIM21) || \
7707 ((INSTANCE) == TIM22))
7710 #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7711 ((INSTANCE) == TIM3) || \
7712 ((INSTANCE) == TIM21) || \
7713 ((INSTANCE) == TIM22))
7716 #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
7717 ((INSTANCE) == TIM3))
7720 #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \ argument
7721 (((((INSTANCE) == TIM2) || \
7722 ((INSTANCE) == TIM3)) \
7729 (((INSTANCE) == TIM21) && \
7733 (((INSTANCE) == TIM22) && \
7738 #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7739 ((INSTANCE) == USART2) || \
7740 ((INSTANCE) == USART4) || \
7741 ((INSTANCE) == USART5) || \
7742 ((INSTANCE) == LPUART1))
7745 #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7746 ((INSTANCE) == USART2) || \
7747 ((INSTANCE) == USART4) || \
7748 ((INSTANCE) == USART5))
7752 #define IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7753 ((INSTANCE) == USART2))
7756 #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7757 ((INSTANCE) == USART2) || \
7758 ((INSTANCE) == USART4) || \
7759 ((INSTANCE) == USART5) || \
7760 ((INSTANCE) == LPUART1))
7763 #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7764 ((INSTANCE) == USART2))
7767 #define IS_UART_WAKEUP_FROMSTOP_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7768 ((INSTANCE) == USART2) || \
7769 ((INSTANCE) == LPUART1))
7771 #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7772 ((INSTANCE) == USART2) || \
7773 ((INSTANCE) == USART4) || \
7774 ((INSTANCE) == USART5) || \
7775 ((INSTANCE) == LPUART1))
7778 #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7779 ((INSTANCE) == USART2))
7782 #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
7783 ((INSTANCE) == USART2))
7786 #define IS_LPUART_INSTANCE(INSTANCE) ((INSTANCE) == LPUART1) argument
7789 #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG) argument
7792 #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB) argument
7795 #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG) argument
7798 #define IS_LCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == LCD) argument