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

📄 main.c

📁 在阳初s3c2410开发板上实现的xmodem传输协议
💻 C
字号:
#include "config.h"
#include "uart.h"
#include "utils.h"

int main() 
{
	int i;
	char* dest  = (char*)SDRAM_BASE;
	
	/* initialize UART */
	init_uart();
	sio_puts("\nSuccess to initialize Serial , please send your file...\n");

	/* receive data */
	if (xmodem_recv(dest) >= 0)
		sio_puts("\nSuccess to receive file!\n");

	/* output the receive data to check */
	i = 0;
	while (dest[i] != EOF)
		sio_putchar(dest[i++]);

	return 0;
}

⌨️ 快捷键说明

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