Changeset 333 for soft/giet_vm/giet_drivers/xcu_driver.c
- Timestamp:
- Jun 19, 2014, 1:31:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/xcu_driver.c
r320 r333 7 7 // This peripheral is replicated in aall clusters containing processors. 8 8 // 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. 10 10 /////////////////////////////////////////////////////////////////////////////////// 11 11 … … 45 45 #endif 46 46 47 #if !defined( VSEG_CLUSTER_INCREMENT )48 # error: You must define VSEG_CLUSTER_INCREMENT in the hard_config.h file47 #if !defined( PERI_CLUSTER_INCREMENT ) 48 # error: You must define PERI_CLUSTER_INCREMENT in the hard_config.h file 49 49 #endif 50 50 … … 69 69 70 70 unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE + 71 (cluster_xy * VSEG_CLUSTER_INCREMENT) );71 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 72 72 73 73 unsigned int func; … … 111 111 112 112 unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE + 113 (cluster_xy * VSEG_CLUSTER_INCREMENT) );113 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 114 114 115 115 unsigned int prio = xcu_address[XCU_REG(XCU_PRIO,channel)]; … … 163 163 164 164 unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE + 165 (cluster_xy * VSEG_CLUSTER_INCREMENT) );165 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 166 166 167 167 xcu_address[XCU_REG(XCU_WTI_REG,wti_index)] = wdata; … … 192 192 193 193 unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE + 194 (cluster_xy * VSEG_CLUSTER_INCREMENT) );194 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 195 195 196 196 *value = xcu_address[XCU_REG(XCU_WTI_REG, wti_index)]; … … 240 240 241 241 unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE + 242 (cluster_xy * VSEG_CLUSTER_INCREMENT) );242 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 243 243 244 244 xcu_address[XCU_REG(XCU_PTI_PER, pti_index)] = period; … … 265 265 266 266 unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE + 267 (cluster_xy * VSEG_CLUSTER_INCREMENT) );267 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 268 268 269 269 xcu_address[XCU_REG(XCU_PTI_PER, pti_index)] = 0; … … 292 292 293 293 unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE + 294 (cluster_xy * VSEG_CLUSTER_INCREMENT) );294 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 295 295 296 296 // This return value is not used / avoid a compilation warning. … … 323 323 324 324 unsigned int* xcu_address = (unsigned int *) ( SEG_XCU_BASE + 325 (cluster_xy * VSEG_CLUSTER_INCREMENT) );325 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 326 326 327 327 unsigned int period = xcu_address[XCU_REG(XCU_PTI_PER, pti_index)];
Note: See TracChangeset
for help on using the changeset viewer.