黑皮男 发表于 2015-5-28 15:38:56

Warning[Pe188]: enumerated type mixed with another type

本帖最后由 黑皮男 于 2015-5-28 15:43 编辑

Warning: enumerated type mixed with another type
编译时报出以上警告,代码如下:#defineTOUCH_RST_PORT GPIOA
#define TOUCH_RST_PIN   GPIO_PIN_13
#define Touch_Rst_High()   HAL_GPIO_WritePin(TOUCH_RST_PORT, TOUCH_RST_PIN, RESET)
在程序中使用语句Touch_Rst_High()时报出警告,求解决方法,编译器是IAR




ssoman 发表于 2015-5-28 15:43:43

不知道上

黑皮男 发表于 2015-5-28 15:51:23

ssoman 发表于 2015-5-28 15:43
不知道上

已知晓,应该用GPIO_PIN_RESET,而不是RESET。
RESET和GPIO_PIN_RESET是不同的枚举

ssoman 发表于 2015-5-29 00:45:03

原来这样
页: [1]
查看完整版本: Warning[Pe188]: enumerated type mixed with another type