📄 c038c6044538001b1552fb6b672dad14
字号:
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <io.h>#include "altera_avalon_pio_regs.h"#include "system.h" #define SIZE (640 * 480 * 4)#define BASE 0x08000000#define TIME 1000000 * 0.05#define show(bufname)\ extern unsigned char bufname[];\ memcpy(pdest, bufname, SIZE);\ usleep(TIME)int main(){ unsigned char* pdest = (unsigned char*)BASE; extern unsigned char bufb1[]; extern unsigned char bufb2[]; memcpy(pdest, bufb1, SIZE); memcpy(pdest + SIZE, bufb2, SIZE); while(1) { IOWR(0x00C010DC,0, 0); usleep(TIME); //IOWR(0x00C010DC,0, SIZE); //usleep(TIME); } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -