Changeset 333 for soft/giet_vm/giet_drivers/dma_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/dma_driver.c
r320 r333 21 21 // 22 22 // The virtual base address of the segment associated to a channel is: 23 // SEG_DMA_BASE + cluster_xy * vseg_cluster_increment+ DMA_SPAN * channel_id23 // SEG_DMA_BASE + cluster_xy * PERI_CLUSTER_INCREMENT + DMA_SPAN * channel_id 24 24 // 25 25 // The SEG_DMA_BASE virtual address mus be defined in the hard_config.h file. … … 57 57 #endif 58 58 59 #if !defined( VSEG_CLUSTER_INCREMENT)60 # error: You must define VSEG_CLUSTER_INCREMENT in the hard_config.h file59 #if !defined(PERI_CLUSTER_INCREMENT) 60 # error: You must define PERI_CLUSTER_INCREMENT in the hard_config.h file 61 61 #endif 62 62 … … 83 83 // compute DMA base address 84 84 unsigned int* dma_address = (unsigned int*) ( SEG_DMA_BASE + 85 (cluster_xy * VSEG_CLUSTER_INCREMENT) );85 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 86 86 87 87 // disable interrupt for selected channel … … 111 111 // compute DMA base address 112 112 unsigned int* dma_address = (unsigned int*) ( SEG_DMA_BASE + 113 (cluster_xy * VSEG_CLUSTER_INCREMENT) );113 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 114 114 115 115 // reset selected channel … … 138 138 // compute DMA base address 139 139 unsigned int * dma_address = (unsigned int *) ( SEG_DMA_BASE + 140 (cluster_xy * VSEG_CLUSTER_INCREMENT) );140 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 141 141 142 142 // get selected channel status … … 169 169 // compute DMA base address 170 170 unsigned int * dma_address = (unsigned int *) ( SEG_DMA_BASE + 171 (cluster_xy * VSEG_CLUSTER_INCREMENT) );171 (cluster_xy * PERI_CLUSTER_INCREMENT) ); 172 172 173 173 // selected channel configuration and lauching … … 308 308 309 309 #else // NB_DMA_CHANNELS == 0 310 _printf("\n[GIET ERROR] in _dma_copy() : NB_DMA_CHANNELS = 0 !\n"); 310 _printf("\n[GIET ERROR] in _dma_copy() : NB_DMA_CHANNELS == 0 / cycle %d\n", 311 _get_proctime ); 311 312 _exit(); 312 313 #endif … … 320 321 unsigned int channel ) 321 322 { 322 _printf("\n[GIET ERROR] _dma_isr() not implemented\n"); 323 _printf("\n[GIET ERROR] _dma_isr() not implemented / cycle %d\n", 324 _get_proctime() ); 323 325 _exit(); 324 326 }
Note: See TracChangeset
for help on using the changeset viewer.