main.c

来自「在ARM7上调试通过的金鹏串行12864程序」· C语言 代码 · 共 53 行

C
53
字号
/****************************************Copyright (c)**************************************************
**                               Guangzou ZLG-MCU Development Co.,LTD.
**                                      graduate school
**                                 http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name:			main.c
** Last modified Date:  2004-09-16
** Last Version:		1.0
** Descriptions:		The main() function example template
**
**------------------------------------------------------------------------------------------------------
** Created by:			Chenmingji
** Created date:		2004-09-16
** Version:				1.0
** Descriptions:		The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#include "config.h"
#include "RTC.h"
#include "LCD_J.h"
uint8  table[]={"当前时间:       "
				"                "
				"                "
				"          星期  "};
/***************************************
function: main
****************************************/
int main (void)
{
	init_LCD();

	RTCInit();
	
	LCD_disp(table);
	
	while(1)
	{
		while ((ILR & 0x01) == 0);	   /* 等待RTC增量中断              */
		ILR = 0x01;					   /* 清除中断标志                 */
		TIME_disp();
	}
}
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?