main.c

来自「89S52上实现51单片机的串口FIFO功能。即串口的收和发均采用了FIFO作为」· C语言 代码 · 共 21 行

C
21
字号
#include <reg52.h>
#include <stdio.h>
#include <serial.h>
#include <stdlib.h>
#include <menu.h>
void main()
{
	int i=0;
	char temp;
//	char test[10]="haha\n";
	UartInit(19200);
	while(1)
	{
//		printf("%s",test);
		temp = getchar();
//		printf("temp = %c ***\n\n",temp);
		Display(temp,0);
	}
}

⌨️ 快捷键说明

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