CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
/*!<Set High speed internal clock */
Buttom_Init();
Uart_Init();
LED_Init();
__enable_interrupt();
SetLedOFF();
UART1_SendString("Key_Exti外部中断---STM8 Development Board of FengChi Electron",\
sizeof("Key_Exti外部中断---STM8 Development Board of FengChi Electron"));
Delay(0xffff);
UART1_SendByte('\n');
Delay(0xffff);
while (1)
{
}
}
void Delay(u32 nCount)
{
/* Decrement nCount value */
while (nCount != 0)
{
nCount--;
}
}