Changeset 264 for soft/giet_vm


Ignore:
Timestamp:
Dec 19, 2013, 10:13:04 AM (11 years ago)
Author:
alain
Message:

Cosmetic

Location:
soft/giet_vm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_config.h

    r263 r264  
    2828#define GIET_DEBUG_IOC_DRIVER    0          /* trace IOC accesses */
    2929#define GIET_DEBUG_DMA_DRIVER    0          /* trace DMA accesses */
    30 #define GIET_DEBUG_FBF_DRIVER    1          /* trace FBF accesses */
     30#define GIET_DEBUG_FBF_DRIVER    0          /* trace FBF accesses */
    3131
    3232#define CONFIG_SRL_VERBOSITY TRACE
  • soft/giet_vm/router/main.c

    r191 r264  
    2727    }
    2828
    29     // main loop : display token value = departure index
     29    // main loop : display token value = source index
    3030    for(n = 0 ; n < NMAX ; n++)
    3131    {
     
    7575__attribute__ ((constructor)) void router()
    7676{
    77     unsigned int        buf[2];
     77    unsigned int        buf;
    7878    unsigned int        x;
    7979    unsigned int        tempo;
     
    108108    while(1)
    109109    {
    110         mwmr_read( mwmr_in , buf , 2 );
     110        mwmr_read( mwmr_in , &buf , 1 );
    111111        tempo = giet_rand() >> 6;
    112112        for ( x = 0 ; x < tempo ; x++ ) asm volatile ("");
    113         giet_tty_printf( "token value : %d / temporisation = %d\n", buf[0], tempo);
    114         giet_tty_printf( "token value : %d / temporisation = %d\n", buf[1], tempo);
    115         mwmr_write( mwmr_out, buf , 2 );
     113        giet_tty_printf( "token value : %d / temporisation = %d\n", buf, tempo);
     114        mwmr_write( mwmr_out, &buf , 1 );
    116115    }
    117116}
Note: See TracChangeset for help on using the changeset viewer.