Changeset 35


Ignore:
Timestamp:
02/22/12 20:25:02 (6 years ago)
Author:
shan2
Message:

ForSyDe-SystemC/CoMPSoC: added support for writing on embedded platform to the mp3decoder example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ForSyDe-SystemC/branches/CoMPSoC/examples/sdf/mp3decoder/mergeChanules.cpp

    r32 r35  
    5858 
    5959        sprintf (fname, "%s.raw", filename); 
    60  
     60#ifdef FORSYDE 
    6161        fd = open (fname, O_WRONLY | O_CREAT, 0666); 
    62  
     62#endif 
    6363        if (fd == -1) { 
    6464            perror (fname); 
     
    8181 
    8282    } 
    83  
     83#ifdef FORSYDE 
    8484    if (write (fd, (char *) s, nsamples * 2 * nch) != nsamples * 2 * nch) { 
    8585        fprintf (stderr, "Unable to write raw data\n"); 
     
    8787        exit (-1); 
    8888    } 
    89  
     89#else 
     90    for (i=0;i<nsamples * 2 * nch;i++) 
     91        mon_debug_info(((char *) s)[i]); 
     92#endif 
    9093    return; 
    9194 
Note: See TracChangeset for help on using the changeset viewer.