# # ifndef _beep_H
# define _beep_H
# include "system. H
"
/* buzzer clock port, pin definition */
# define BEEP_PORT GPIOF
# define BEEP_PIN GPIO_Pin_8
# define BEEP_PORT_RCC RCC_AHB1Periph_GPIOF
# define beep PFout (8)
Void BEEP_Init (void);
# endif
Void EXTI2_IRQHandler (void)
{
If (EXTI_GetITStatus (EXTI_Line2)==1)
{
Delay_ms (10);
If (KL==0)
{
Beep=1;
}
}
}