unsigned char HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
unsigned char ucDI;
HAL_Delay(100); //消抖
if(GPIO_Pin == GPIO_PIN_0)
ucDI |= 0x01;
else
ucDI &= (~0x01);
if(GPIO_Pin == GPIO_PIN_12)
ucDI |= (0x01<<1);
else
ucDI &= (~(0x01<<1));
if(GPIO_Pin == GPIO_PIN_15)
ucDI |= (0x01<<2);
else
ucDI &= (~(0x01<<2));
return ucDI;
}
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>