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
不知道上
已知晓,应该用GPIO_PIN_RESET,而不是RESET。
RESET和GPIO_PIN_RESET是不同的枚举 原来这样
页:
[1]