Changeset 333 for soft/giet_vm/giet_drivers/icu_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/icu_driver.c
r320 r333 15 15 //////////////////////////////////////////////////////////////////////////////// 16 16 // The virtual base address of the segment associated to the component is: 17 // SEG_ICU_BASE + cluster_xy * VSEG_CLUSTER_INCREMENT17 // SEG_ICU_BASE + cluster_xy * PERI_CLUSTER_INCREMENT 18 18 // 19 // SEG_ICU_BASE and VSEG_CLUSTER_INCREMENT must be defined in hard_config.h19 // SEG_ICU_BASE and PERI_CLUSTER_INCREMENT must be defined in hard_config.h 20 20 //////////////////////////////////////////////////////////////////////////////// 21 21 … … 53 53 #endif 54 54 55 #if !defined( VSEG_CLUSTER_INCREMENT)56 # error: You must define VSEG_CLUSTER_INCREMENT in the hard_config.h file55 #if !defined(PERI_CLUSTER_INCREMENT) 56 # error: You must define PERI_CLUSTER_INCREMENT in the hard_config.h file 57 57 #endif 58 58 … … 80 80 #else 81 81 unsigned int * icu_address = (unsigned int *) ( SEG_ICU_BASE + 82 (cluster_xy * VSEG_CLUSTER_INCREMENT) );82 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 83 83 icu_address[proc_id * ICU_SPAN + ICU_MASK_SET] = value; 84 84 return 0; … … 108 108 #else 109 109 unsigned int * icu_address = (unsigned int *) ( SEG_ICU_BASE + 110 (cluster_xy * VSEG_CLUSTER_INCREMENT) );110 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 111 111 *buffer = icu_address[proc_id * ICU_SPAN + ICU_IT_VECTOR]; 112 112 return 0;
Note: See TracChangeset
for help on using the changeset viewer.