main.c

来自「ARM2410 要更多的远吗」· C语言 代码 · 共 44 行

C
44
字号
/*********************************************************************************************
* File:	main.c
* Author:	embest
* Desc:	c main entry
* History:	
*			H.T.Zhang, Programming start, September 14, 2005
*********************************************************************************************/
#include "2410lib.h"
#include "lcd.h"
#include "demo.h"
#include "lcdlib.h"
#define LCD_D_OFF 			rGPCDAT &= ~(1 << 4); 
#define LCD_D_ON 			rGPCDAT |= (1 << 4); 
/*------------------------------------------------------------------------------------------*/
/*	 								function declare					 				    */
/*------------------------------------------------------------------------------------------*/
void Main(void);
/*********************************************************************************************
* name:		main
* func:		c code entry
* para:		none
* ret:		none
* modify:
* comment:		
*********************************************************************************************/
void Main(void)
{
	INT32T i;
	sys_init();        // Initial 44B0X's Interrupt,Port and UART
	// initialize the 8led-function first of ZLG7290 (more to see ZLG7290.pdf)
	// present the invalid sign generated while keyboard-function
	// Initialize iic
	// Enable interrupt

	keyboard_init();							//keyboard initialize
	uart_printf("\n Embest EduKit-III Evaluation Board\n");
	uart_printf(" This is a Demo for EduKit\n");
	#ifdef LCD_STN256_COLOR
	lcd_init_app();								// initial LCD controller ,  clear screen
	#endif
	LCD_D_ON;
	disp_mainmenu();	
	demo_main();    
}

⌨️ 快捷键说明

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