main.c
来自「基于三星S3C44B0X的UDP测试程式,高质量.」· C语言 代码 · 共 43 行
C
43 行
#include <string.h>
#include <stdio.h>
#include "Target\44blib.h"
#include "target\44b.h"
extern void Datagram_test(void);
void * function[][2]=
{
//(void *)Ping_test, "Run Ping diagnose tool ",
(void *)Datagram_test, "Run UDP test tool",
0,0
};
void Main(void)
{
char aa;
Port_Init();
Uart_Init(0,115200);
Led_Display(0xf);
Uart_Select(0); //Select UART0//
Beep(0x1);
Uart_Printf("\n---------------------------------------------------------------");
Beep(0x00);
Uart_Printf("\nOEM name : LiYuTai Elec.Co.,Ltd. ");
Uart_Printf("\nWebsite : www.hzlitai.com.cn ");
Uart_Printf("\nEmail : lyt_tech@yahoo.com.cn ");
Uart_Printf("\nFunction : ARMSYS44b0's Datagram 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)
{
( (void (*)(void)) (function[0][0]) )();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?