STM32G474xx HAL 用户手册
宏定义
COMP 正相输入端(同相输入)
COMP 导出的常量

宏定义

#define COMP_INPUT_PLUS_IO1   (0x00000000UL)
#define COMP_INPUT_PLUS_IO2   (COMP_CSR_INPSEL)

宏定义说明

#define COMP_INPUT_PLUS_IO1   (0x00000000UL)

比较器正相输入端连接到 IO1(对于 COMP1 为引脚 PA1,对于 COMP2 为引脚 PA7,对于 COMP3 为引脚 PA0,对于 COMP4 为引脚 PB0,对于 COMP5 为引脚 PB13,对于 COMP6 为引脚 PB11,对于 COMP7 为引脚 PB14)。注意:有关 COMPx 实例的可用性,请参考数据手册

定义位于文件 stm32g4xx_hal_comp.h 的第 147 行。

#define COMP_INPUT_PLUS_IO2   (COMP_CSR_INPSEL)

比较器正相输入端连接到 IO2(对于 COMP1 为引脚 PB1,对于 COMP2 为引脚 PA3,对于 COMP3 为引脚 PC1,对于 COMP4 为引脚 PE7,对于 COMP5 为引脚 PD12,对于 COMP6 为引脚 PD11,对于 COMP7 为引脚 PD14)。注意:有关 COMPx 实例的可用性,请参考数据手册

定义位于文件 stm32g4xx_hal_comp.h 的第 148 行。