cy8c4247按键中断
时间:10-02
整理:3721RD
点击:
//按键中断
CY_ISR(Key_Interrupt_Event)
{
Pin_Key_ClearInterrupt();
key_flag = TRUE;
}
int main()
{
/* This function will initialize the system resources such as BLE and CapSense */
InitializeSystem();
isr_Key_StartEx(Key_Interrupt_Event);
for(;;);
}
CY_ISR(Key_Interrupt_Event)
{
Pin_Key_ClearInterrupt();
key_flag = TRUE;
}
int main()
{
/* This function will initialize the system resources such as BLE and CapSense */
InitializeSystem();
isr_Key_StartEx(Key_Interrupt_Event);
for(;;);
}
控件
配置