URL
https://opencores.org/ocsvn/csa/csa/trunk
Subversion Repositories csa
Compare Revisions
- This comparison shows the changes necessary to convert path
/csa/trunk/pc
- from Rev 38 to Rev 39
- ↔ Reverse comparison
Rev 38 → Rev 39
/csa_test.c
22,10 → 22,11
#include "misc.h" |
#include "imgdev.h" |
|
unsigned char buf[512]; |
|
int main() |
{ |
int i; |
unsigned char buf[256]; |
if(img_dev_open()<0) |
{ |
DEBUG_LINE("can not open image device"); |
34,10 → 35,10
|
for(i=0;i<100;i++) |
{ |
int n; |
DEBUG_LINE("i=%d",i); |
memset(buf,i,sizeof buf); |
//img_write_data((unsigned char*)buf,sizeof buf,0x08); |
img_write_data((unsigned char*)&i,2,0x08); |
n=256-i; |
img_read_img((unsigned char*)buf,sizeof buf); |
sleep(1); |
} |
img_dev_close(); |