Lines Matching refs:INSTANCE

8729 #define IS_ADC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == ADC1)  argument
8731 #define IS_ADC_COMMON_INSTANCE(INSTANCE) ((INSTANCE) == ADC1_COMMON) argument
8734 #define IS_COMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == COMP1) || \ argument
8735 ((INSTANCE) == COMP2))
8740 #define IS_CRC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == CRC) argument
8743 #define IS_DAC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == DAC) argument
8746 #define IS_DMA_ALL_INSTANCE(INSTANCE) (((INSTANCE) == DMA1_Channel1) || \ argument
8747 ((INSTANCE) == DMA1_Channel2) || \
8748 ((INSTANCE) == DMA1_Channel3) || \
8749 ((INSTANCE) == DMA1_Channel4) || \
8750 ((INSTANCE) == DMA1_Channel5) || \
8751 ((INSTANCE) == DMA1_Channel6) || \
8752 ((INSTANCE) == DMA1_Channel7) || \
8753 ((INSTANCE) == DMA2_Channel1) || \
8754 ((INSTANCE) == DMA2_Channel2) || \
8755 ((INSTANCE) == DMA2_Channel3) || \
8756 ((INSTANCE) == DMA2_Channel4) || \
8757 ((INSTANCE) == DMA2_Channel5))
8760 #define IS_GPIO_ALL_INSTANCE(INSTANCE) (((INSTANCE) == GPIOA) || \ argument
8761 ((INSTANCE) == GPIOB) || \
8762 ((INSTANCE) == GPIOC) || \
8763 ((INSTANCE) == GPIOD) || \
8764 ((INSTANCE) == GPIOE) || \
8765 ((INSTANCE) == GPIOH))
8768 #define IS_GPIO_AF_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) argument
8772 #define IS_GPIO_LOCK_INSTANCE(INSTANCE) IS_GPIO_ALL_INSTANCE(INSTANCE) argument
8775 #define IS_I2C_ALL_INSTANCE(INSTANCE) (((INSTANCE) == I2C1) || \ argument
8776 ((INSTANCE) == I2C2))
8779 #define IS_SMBUS_ALL_INSTANCE(INSTANCE) IS_I2C_ALL_INSTANCE(INSTANCE) argument
8782 #define IS_I2S_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI2) || \ argument
8783 ((INSTANCE) == SPI3))
8785 #define IS_IWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == IWDG) argument
8788 #define IS_OPAMP_ALL_INSTANCE(INSTANCE) (((INSTANCE) == OPAMP1) || \ argument
8789 ((INSTANCE) == OPAMP2))
8794 #define IS_RTC_ALL_INSTANCE(INSTANCE) ((INSTANCE) == RTC) argument
8797 #define IS_SPI_ALL_INSTANCE(INSTANCE) (((INSTANCE) == SPI1) || \ argument
8798 ((INSTANCE) == SPI2) || \
8799 ((INSTANCE) == SPI3))
8802 #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8803 ((INSTANCE) == TIM3) || \
8804 ((INSTANCE) == TIM4) || \
8805 ((INSTANCE) == TIM5) || \
8806 ((INSTANCE) == TIM6) || \
8807 ((INSTANCE) == TIM7) || \
8808 ((INSTANCE) == TIM9) || \
8809 ((INSTANCE) == TIM10) || \
8810 ((INSTANCE) == TIM11))
8812 #define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8813 ((INSTANCE) == TIM3) || \
8814 ((INSTANCE) == TIM4) || \
8815 ((INSTANCE) == TIM5) || \
8816 ((INSTANCE) == TIM9) || \
8817 ((INSTANCE) == TIM10) || \
8818 ((INSTANCE) == TIM11))
8820 #define IS_TIM_CC2_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8821 ((INSTANCE) == TIM3) || \
8822 ((INSTANCE) == TIM4) || \
8823 ((INSTANCE) == TIM5) || \
8824 ((INSTANCE) == TIM9))
8826 #define IS_TIM_CC3_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8827 ((INSTANCE) == TIM3) || \
8828 ((INSTANCE) == TIM4) || \
8829 ((INSTANCE) == TIM5))
8831 #define IS_TIM_CC4_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8832 ((INSTANCE) == TIM3) || \
8833 ((INSTANCE) == TIM4) || \
8834 ((INSTANCE) == TIM5))
8836 #define IS_TIM_CLOCKSOURCE_ETRMODE1_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8837 ((INSTANCE) == TIM3) || \
8838 ((INSTANCE) == TIM4) || \
8839 ((INSTANCE) == TIM5) || \
8840 ((INSTANCE) == TIM9))
8842 #define IS_TIM_CLOCKSOURCE_ETRMODE2_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8843 ((INSTANCE) == TIM3) || \
8844 ((INSTANCE) == TIM4) || \
8845 ((INSTANCE) == TIM5) || \
8846 ((INSTANCE) == TIM9) || \
8847 ((INSTANCE) == TIM10) || \
8848 ((INSTANCE) == TIM11))
8850 #define IS_TIM_CLOCKSOURCE_TIX_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8851 ((INSTANCE) == TIM3) || \
8852 ((INSTANCE) == TIM4) || \
8853 ((INSTANCE) == TIM5) || \
8854 ((INSTANCE) == TIM9))
8856 #define IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8857 ((INSTANCE) == TIM3) || \
8858 ((INSTANCE) == TIM4) || \
8859 ((INSTANCE) == TIM5) || \
8860 ((INSTANCE) == TIM9))
8862 #define IS_TIM_OCXREF_CLEAR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8863 ((INSTANCE) == TIM3) || \
8864 ((INSTANCE) == TIM4))
8866 #define IS_TIM_XOR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8867 ((INSTANCE) == TIM3) || \
8868 ((INSTANCE) == TIM4) || \
8869 ((INSTANCE) == TIM5))
8871 #define IS_TIM_ETR_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8872 ((INSTANCE) == TIM3) || \
8873 ((INSTANCE) == TIM4) || \
8874 ((INSTANCE) == TIM5))
8877 #define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8878 ((INSTANCE) == TIM3) || \
8879 ((INSTANCE) == TIM4) || \
8880 ((INSTANCE) == TIM5) || \
8881 ((INSTANCE) == TIM6) || \
8882 ((INSTANCE) == TIM7) || \
8883 ((INSTANCE) == TIM9))
8885 #define IS_TIM_SLAVE_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8886 ((INSTANCE) == TIM3) || \
8887 ((INSTANCE) == TIM4) || \
8888 ((INSTANCE) == TIM5) || \
8889 ((INSTANCE) == TIM9))
8891 #define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE) ((INSTANCE) == TIM5) argument
8893 #define IS_TIM_DMABURST_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8894 ((INSTANCE) == TIM3) || \
8895 ((INSTANCE) == TIM4) || \
8896 ((INSTANCE) == TIM5))
8898 #define IS_TIM_CCX_INSTANCE(INSTANCE, CHANNEL) \ argument
8899 ((((INSTANCE) == TIM2) && \
8905 (((INSTANCE) == TIM3) && \
8911 (((INSTANCE) == TIM4) && \
8917 (((INSTANCE) == TIM5) && \
8923 (((INSTANCE) == TIM9) && \
8927 (((INSTANCE) == TIM10) && \
8930 (((INSTANCE) == TIM11) && \
8933 #define IS_TIM_CLOCK_DIVISION_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8934 ((INSTANCE) == TIM3) || \
8935 ((INSTANCE) == TIM4) || \
8936 ((INSTANCE) == TIM5) || \
8937 ((INSTANCE) == TIM9) || \
8938 ((INSTANCE) == TIM10) || \
8939 ((INSTANCE) == TIM11))
8941 #define IS_TIM_DMA_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8942 ((INSTANCE) == TIM3) || \
8943 ((INSTANCE) == TIM4) || \
8944 ((INSTANCE) == TIM5) || \
8945 ((INSTANCE) == TIM6) || \
8946 ((INSTANCE) == TIM7))
8948 #define IS_TIM_DMA_CC_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8949 ((INSTANCE) == TIM3) || \
8950 ((INSTANCE) == TIM4) || \
8951 ((INSTANCE) == TIM5))
8953 #define IS_TIM_COUNTER_MODE_SELECT_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8954 ((INSTANCE) == TIM3) || \
8955 ((INSTANCE) == TIM4) || \
8956 ((INSTANCE) == TIM5) || \
8957 ((INSTANCE) == TIM9))
8959 #define IS_TIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8960 ((INSTANCE) == TIM3) || \
8961 ((INSTANCE) == TIM4) || \
8962 ((INSTANCE) == TIM5) || \
8963 ((INSTANCE) == TIM9))
8965 #define IS_TIM_REMAP_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \ argument
8966 ((INSTANCE) == TIM3) || \
8967 ((INSTANCE) == TIM9) || \
8968 ((INSTANCE) == TIM10) || \
8969 ((INSTANCE) == TIM11))
8972 #define IS_USART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
8973 ((INSTANCE) == USART2) || \
8974 ((INSTANCE) == USART3))
8977 #define IS_UART_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
8978 ((INSTANCE) == USART2) || \
8979 ((INSTANCE) == USART3))
8982 #define IS_UART_HALFDUPLEX_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
8983 ((INSTANCE) == USART2) || \
8984 … ((INSTANCE) == USART3))
8987 #define IS_UART_LIN_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
8988 ((INSTANCE) == USART2) || \
8989 ((INSTANCE) == USART3))
8992 #define IS_UART_HWFLOW_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
8993 ((INSTANCE) == USART2) || \
8994 ((INSTANCE) == USART3))
8997 #define IS_SMARTCARD_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
8998 ((INSTANCE) == USART2) || \
8999 ((INSTANCE) == USART3))
9002 #define IS_IRDA_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9003 ((INSTANCE) == USART2) || \
9004 ((INSTANCE) == USART3))
9007 #define IS_UART_MULTIPROCESSOR_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ argument
9008 ((INSTANCE) == USART2) || \
9009 ((INSTANCE) == USART3))
9012 #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((INSTANCE) == WWDG) argument
9016 #define IS_LCD_ALL_INSTANCE(INSTANCE) ((INSTANCE) == LCD) argument
9019 #define IS_USB_ALL_INSTANCE(INSTANCE) ((INSTANCE) == USB) argument