📄 main.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 + -