main.c
来自「在阳初s3c2410开发板上实现的xmodem传输协议」· C语言 代码 · 共 25 行
C
25 行
#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 + =
减小字号Ctrl + -
显示快捷键?