High Speed
ï‚· #define: COMP_Mode_MediumSpeed COMP_CSR_COMPxMODE_0
Medium Speed
ï‚· #define: COMP_Mode_LowPower COMP_CSR_COMPxMODE_1
Low power mode
ï‚· #define: COMP_Mode_UltraLowPower COMP_CSR_COMPxMODE
Ultra-low power mode
COMP_NonInvertingInput
ï‚· #define: COMP_NonInvertingInput_IO1 ((uint32_t)0x00000000)
I/O1 (PA1 for COMP1, PA7 for COMP2, PB14 for COMP3, PB0 for COMP4, PD12 for
COMP5, PD11 for COMP6, PA0 for COMP7) connected to comparator non inverting input
ï‚· #define: COMP_NonInvertingInput_IO2 COMP_CSR_COMPxNONINSEL
I/O2 (PA3 for COMP2, PD14 for COMP3, PE7 for COMP4, PB13 for COMP5, PB11 for
COMP6, PC1 for COMP7) connected to comparator non inverting input
COMP_Output
ï‚· #define: COMP_Output_None ((uint32_t)0x00000000)
COMP output isn't connected to other peripherals
ï‚· #define: COMP_Output_TIM1BKIN COMP_CSR_COMPxOUTSEL_0
COMP output connected to TIM1 Break Input (BKIN)
ï‚· #define: COMP_Output_TIM1BKIN2 ((uint32_t)0x00000800)
COMP output connected to TIM1 Break Input 2 (BKIN2)
ï‚· #define: COMP_Output_TIM8BKIN ((uint32_t)0x00000C00)
COMP output connected to TIM8 Break Input (BKIN)
ï‚· #define: COMP_Output_TIM8BKIN2 ((uint32_t)0x00001000)
COMP output connected to TIM8 Break Input 2 (BKIN2)
ï‚· #define: COMP_Output_TIM1BKIN2_TIM8BKIN2 ((uint32_t)0x00001400)