Ignore:
Timestamp:
Jun 19, 2014, 1:31:45 PM (10 years ago)
Author:
alain
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/xcu_driver.c

    r320 r333  
    77// This peripheral is replicated in aall clusters containing processors.
    88//
    9 // SEG_XCU_BASE and VSEG_CLUSTER_INCREMENT must be defined in hard_config.h file.
     9// SEG_XCU_BASE and PERI_CLUSTER_INCREMENT must be defined in hard_config.h file.
    1010///////////////////////////////////////////////////////////////////////////////////
    1111
     
    4545#endif
    4646
    47 #if !defined( VSEG_CLUSTER_INCREMENT )
    48 # error: You must define VSEG_CLUSTER_INCREMENT in the hard_config.h file
     47#if !defined( PERI_CLUSTER_INCREMENT )
     48# error: You must define PERI_CLUSTER_INCREMENT in the hard_config.h file
    4949#endif
    5050
     
    6969
    7070    unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE +
    71                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     71                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    7272
    7373    unsigned int func;
     
    111111
    112112    unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE +
    113                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     113                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    114114
    115115    unsigned int prio = xcu_address[XCU_REG(XCU_PRIO,channel)];
     
    163163
    164164    unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE +
    165                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     165                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    166166
    167167    xcu_address[XCU_REG(XCU_WTI_REG,wti_index)] = wdata;
     
    192192 
    193193    unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE +
    194                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     194                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    195195
    196196    *value = xcu_address[XCU_REG(XCU_WTI_REG, wti_index)];
     
    240240
    241241    unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE +
    242                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     242                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    243243
    244244    xcu_address[XCU_REG(XCU_PTI_PER, pti_index)] = period;
     
    265265
    266266    unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE +
    267                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     267                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    268268
    269269    xcu_address[XCU_REG(XCU_PTI_PER, pti_index)] = 0;
     
    292292
    293293    unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE +
    294                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     294                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    295295
    296296    // This return value is not used / avoid a compilation warning.
     
    323323
    324324    unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE +
    325                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     325                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    326326
    327327    unsigned int period = xcu_address[XCU_REG(XCU_PTI_PER, pti_index)];
Note: See TracChangeset for help on using the changeset viewer.