/*******************************************************************************
**函数名称:void delay(unsigned int ms) Name: void delay(unsigned int ms)
**功能描述:大概延时
**入口参数:unsigned int ms 输入大概延时数值
**输出:无
*******************************************************************************/
void delay(unsigned int ms)
{
unsigned int x , y;
for(x = ms; x > 0; x--)
for(y = 1000 ; y > 0 ; y--);
}
INTERRUPT_HANDLER(RTC_CSSLSE_IRQHandler,4)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
RTC_ClearITPendingBit(RTC_IT_WUT);
GPIO_ToggleBits(GPIOD,GPIO_Pin_5);
}