main.c.svn-base
来自「usb drivers based on s3c2410」· SVN-BASE 代码 · 共 45 行
SVN-BASE
45 行
#include "config.h"extern long evt[];int main(){ int i; char *where = (char *)SDRAM_BASE; init_uart(); sio_puts("\r\n"); sio_puts(">> This bootloader was built at: "__DATE__" "__TIME__"\r\n"); sio_puts(">> Please send an uuencoded program with Xmodem protocol...\r\n"); i = xmodem(where); if(i <= 0) { sio_puts("!! Error receiving.\r\n"); return -1; } i = uudecode(where); if(i <= 0) { sio_puts("!! Error uudecoding.\r\n"); return -1; } sio_puts("\r\n"); sio_puts(">> The program was received and uudecoded successfully.\r\n"); sio_puts(">> Transferring the control to "__XSTRING(SDRAM_BASE)"..."); /*fixup ivt*/ for(i = 0; i < 8/*XXX*/; i++) evt[i] += (long)where; /*wait UART*/ delay(1000); ((void (*)(void))where)(); sio_puts(">> failed.\n\rSystem halted.\n\r"); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?