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

Subversion Repositories csa

[/] [csa/] [trunk/] [pc/] [csa_test.c] - Rev 31

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

/*
 * =====================================================================================
 *
 *       Filename:  csa_test.c
 *
 *    Description:  the csa test file
 *
 *        Version:  1.0
 *        Created:  04/16/2009 08:06:34 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  mengxipeng@gmail.com
 *
 * =====================================================================================
 */
 
 
 
#include "misc.h"
#include "imgdev.h"
 
int main()
{
        int i;
        if(img_dev_open()<0)
        {
                DEBUG_LINE("can not open image device");
                return -1; 
        }
 
        for(i=0;i<100000;i++)
        {
                //DEBUG_LINE("i=%d",i);
                img_write_data((unsigned char*)&i,sizeof i,0x08);
        }
        img_dev_close();
        return 0;
 
 

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

powered by: WebSVN 2.1.0

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