This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#include "SWM221.h"
int main(void)
{
SystemInit();
GPIO_Init(GPIOA, PIN5, 1, 0, 0, 0); //输出,接LED
GPIO_Init(GPIOA, PIN2, 0, 1, 0, 0); //输入,上拉使能,接KEY
EXTI_Init(GPIOA, PIN2, EXTI_FALL_EDGE); //下降沿触发中断
NVIC_EnableIRQ(GPIOA2_GPIOC2_MPU_IRQn);
EXTI_Open(GPIOA, PIN2);
while(1==1)
}
void GPIOA2_GPIOC2_MPU_Handler(void)
EXTI_Clear(GPIOA, PIN2);
GPIO_InvBit(GPIOA, PIN5);