stm8l051 学习笔记1——外部中断描述:配置PB2为外部中断,中断函数中LED翻转。1:myex
ti.cGPIO_Init(GPIOB,GPIO_Pin_2,GPIO_Mode_In_FL_IT);EXTI_SetPinSensitivity(EXTI_Pin_2, EXTI_Trigger_Rising);EXTI_ClearITPendingBit(EXTI_IT_Pin2);2:stm8l15x_it.cINTERRUPT_HANDLER(EXTI2_IRQHandler,10)