本帖最后由 googcheng 于 2019-10-12 20:03 编辑
void EXTI_setup(void)
{
ITC_DeInit();
ITC_SetSoftwarePriority(EXTI7_IRQn, ITC_PriorityLevel_0);
EXTI_DeInit();
EXTI_SetPinSensitivity(GPIO_Pin_7, EXTI_Trigger_Falling);
//EXTI_SetTLISensitivity(EXTI_TLISENSITIVITY_FALL_ONLY);
enableInterrupts();
}
GPIO_Init(GPIOE, GPIO_Pin_7, GPIO_Mode_In_PU_IT);
EXTI_setup();
halt()
按键是上拉的,为什么我按下按键时唤醒不了, 松口才可以唤醒系统 |