#define S2_DETECTED (sSCKeyInfo[0].Setting.b.DETECTED)
#define S6_DETECTED (sSCKeyInfo[1].Setting.b.DETECTED)
#define S3_DETECTED (sSCKeyInfo[2].Setting.b.DETECTED)
#define S1_DETECTED (sSCKeyInfo[3].Setting.b.DETECTED)
#define S4_DETECTED (sSCKeyInfo[4].Setting.b.DETECTED)
#define S5_DETECTED (sSCKeyInfo[5].Setting.b.DETECTED)
if( S1_DETECTED && S5_DETECTED
{
WWDG->CR = 0XfF;
GPIOC->ODR=0XFF;
single_key_en=0;
}
单键和长按短按键 都可以稳定 就这组合键不稳定,有时候 S1 S5 两键 直接被屏蔽掉~~~~
求大神 解答 |