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/dma_driver.c

    r320 r333  
    2121//
    2222// The virtual base address of the segment associated to a channel is:
    23 //    SEG_DMA_BASE + cluster_xy * vseg_cluster_increment + DMA_SPAN * channel_id
     23//    SEG_DMA_BASE + cluster_xy * PERI_CLUSTER_INCREMENT + DMA_SPAN * channel_id
    2424//
    2525// The SEG_DMA_BASE virtual address mus be defined in the hard_config.h file.
     
    5757#endif
    5858
    59 #if !defined(VSEG_CLUSTER_INCREMENT)
    60 # error: You must define VSEG_CLUSTER_INCREMENT in the hard_config.h file
     59#if !defined(PERI_CLUSTER_INCREMENT)
     60# error: You must define PERI_CLUSTER_INCREMENT in the hard_config.h file
    6161#endif
    6262
     
    8383    // compute DMA base address
    8484    unsigned int* dma_address = (unsigned int*) ( SEG_DMA_BASE +
    85                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     85                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    8686
    8787    // disable interrupt for selected channel
     
    111111    // compute DMA base address
    112112    unsigned int* dma_address = (unsigned int*) ( SEG_DMA_BASE +
    113                                 (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     113                                (cluster_xy * PERI_CLUSTER_INCREMENT) );
    114114
    115115    // reset selected channel
     
    138138    // compute DMA base address
    139139    unsigned int * dma_address = (unsigned int *) ( SEG_DMA_BASE +
    140                                  (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     140                                 (cluster_xy * PERI_CLUSTER_INCREMENT) );
    141141
    142142    // get selected channel status
     
    169169    // compute DMA base address
    170170    unsigned int * dma_address = (unsigned int *) ( SEG_DMA_BASE +
    171                                  (cluster_xy * VSEG_CLUSTER_INCREMENT) );
     171                                 (cluster_xy * PERI_CLUSTER_INCREMENT) );
    172172
    173173    // selected channel configuration and lauching
     
    308308
    309309#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 );
    311312    _exit();
    312313#endif
     
    320321               unsigned int channel )
    321322{
    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() );
    323325    _exit();
    324326}
Note: See TracChangeset for help on using the changeset viewer.