#include "led.h"
#include "delay.h"
#include "sys.h"
#include "lcd.h"
#include "usart.h"
#include "rtc.h"
int main(void)
{
u8 t=0;
delay_init(); //延时函数初始化
NVIC_Configuration(); //设置 NVIC 中断分组 2:2
位抢占优先级,2 位响应优先级
uart_init(9600); //串口初始化为 9600
LED_Init(); //LED 端口初始化
LCD_Init();
BEEP_Init(); //初始化蜂鸣器端口
RTC_Init(); //RTC 初始化
POINT_COLOR=GREEN; //设置字体为红色
LCD_ShowString(70,50,200,16,16,"^_^ andy ^_^");
POINT_COLOR=BLUE; //设置字体为蓝色
LCD_ShowString(60,130,200,16,16," - - ");
LCD_ShowString(60,162,200,16,16," : : ");
while(1)
{
1