⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 Embest EudKit-II教学系统配Samsung S3C44B0处理器的部分测试程序。
💻 C
字号:
/*********************************************************************************************
* File:	main.c
* Author:	embest
* Desc:	c main entry
* History:	
*********************************************************************************************/


/*--- include files ---*/
#include "44b.h"
#include "44blib.h"


/*--- function declare ---*/
void main(void);


/*--- function code ---*/


/*********************************************************************************************
* name:		main
* func:		c code entry
* para:		none
* ret:		none
* modify:
* comment:		
*********************************************************************************************/
void Main(void)
{
    sys_init();        /* Initial 44B0X's Interrupt,Port and UART */

	/******************/
	/* user interface */
	/******************/
	uart_printf("\n\rEmbest S3C44B0X Evaluation Board(EduKit II)");
	uart_printf("\n\rPS2 Keyboard Test Example\n\n");

	rINTCON = 0x00000001; // Vetcor Interrupt Mode
	rINTMSK = 0x03ffffff;
	rINTMOD = 0x00000000;
	rI_ISPC = 0x03ffffff;

	delay(5000);		// wait for keyboard reset completely
	if(KbdInit())
	{
		uart_printf("Initialize ps2 keyboard, successful.\n");
		KbdTest();
	}
	else
	{
		uart_printf("Initialize ps2 keyboard, failed.\n");
	}

	KbdClose();

	while(1);
}

⌨️ 快捷键说明

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