OpenCores
URL https://opencores.org/ocsvn/csa/csa/trunk

Subversion Repositories csa

[/] [csa/] [trunk/] [pc/] [csa_test.c] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 simon111
/*
2
 * =====================================================================================
3
 *
4
 *       Filename:  csa_test.c
5
 *
6
 *    Description:  the csa test file
7
 *
8
 *        Version:  1.0
9
 *        Created:  04/16/2009 08:06:34 PM
10
 *       Revision:  none
11
 *       Compiler:  gcc
12
 *
13
 *         Author:  mengxipeng@gmail.com
14
 *
15
 * =====================================================================================
16
 */
17
 
18
 
19
 
20
#include "misc.h"
21
#include "imgdev.h"
22
 
23
int main()
24
{
25
        int i;
26
        if(img_dev_open()<0)
27
        {
28
                DEBUG_LINE("can not open image device");
29
                return -1;
30
        }
31
 
32
        for(i=0;i<100000;i++)
33
        {
34
                //DEBUG_LINE("i=%d",i);
35
                img_write_data((unsigned char*)&i,sizeof i,0x08);
36
        }
37
        img_dev_close();
38
        return 0;
39
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.