int main(void)
{
u8 key;
u32 a[3];
a[0]=0;
a[1]=0;
a[2]=0;
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);// ÉèÖÃÖжÏÓÅÏȼ¶·Ö×é2
delay_init(); //ÑÓʱº¯Êý³õʼ»¯
uart_init(9600); //´®¿Ú³õʼ»¯Îª9600
LCD_Init(); //³õʼ»¯Òº¾§
LED_Init(); //LED³õʼ»¯
KEY_Init(); //°´¼ü³õʼ»¯
usmart_dev.init(72); //usmart³õʼ»¯
mem_init(); //³õʼ»¯ÄÚ´æ³Ø
exfuns_init(); //ΪfatfsÏà¹Ø±äÁ¿ÉêÇëÄÚ´æ
f_mount(fs[0],"0:",1); //¹ÒÔØSD¿¨
f_mount(fs[1],"1:",1); //¹ÒÔØFLASH.
font_init();
key=KEY_Scan(0);
if(key==KEY2_PRES)
a[2]++;
POINT_COLOR=BLACK;
Show_Str(50,80,200,24,"ÊäÈë:",16,0);
LCD_ShowxNum(90,80,a[0],1,16,0);
LCD_ShowxNum(98,80,a[1],1,16,0);
LCD_ShowxNum(106,80,a[2],1,16,0);
Show_Str(50,130,200,16,"Êä³ö:",16,0);
}
|