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

📄 main.c

📁 arm7开发板的PS2键盘接口的驱动程序
💻 C
字号:
#include <string.h>
#include "..\Target\44blib.h"
#include "..\target\44b.h"
#include <stdio.h>
#include "ps2keytest\ps2key.h"


void * function[][2]=
{
	(void *)Disp_KeyDat,		    "PS/2. KeyBoard        ",
	0,0
};

void Main(void)
{
	//char aa;
	Port_Init();
	Uart_Init(0,115200);

	Led_Display(0xf);
	Delay(0);
	Beep(0x1);
	Uart_Select(0); //Select UART0//
	Uart_Printf("\n---------------------------------------------------------------");
	Beep(0x00);
	Uart_Printf("\nOEM name   :     LaiDun Elec.Co.,Ltd.			               ");
	Uart_Printf("\nWebsite    :     http://www.jzx51.com                             ");
	Uart_Printf("\nEmail      :     aedkhz@163.com                          ");
	Uart_Printf("\nFunction   :     ARMs3c44b0's PS/2 KeyBoarder test Program               ");
	Uart_Printf("\nUART config:     115.2kbps,8Bit,NP,UART0                        ");
	Uart_Printf("\n---------------------------------------------------------------");
	Uart_Printf("\nS3C44B0X Test Program Ver 2.0 rSYSCFG=0x%x MCLK=%dHz\n",rSYSCFG,MCLK);
	Led_Display(0x0);
	//aa= Uart_Getch();
	//if((aa=='Y')||(aa=='y'))
	while(1)
	{	
		Uart_Printf("\n*-----------------------------------*");
		Uart_Printf("\n[PS/2 KeyBoard Test]\n");
		( (void (*)(void)) (function[0][0]))();
		
			}
}

⌨️ 快捷键说明

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