Ignore:
Timestamp:
Jun 18, 2017, 10:06:41 PM (5 years ago)
Author:
alain
Message:

Introduce syscalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_dma.c

    r3 r23  
    4545void dev_dma_init( chdev_t * chdev )
    4646{
    47     // get implementation index from DMA chdev descriptor
    48     uint32_t impl = chdev->impl;
     47    // get implementation & channel from DMA chdev descriptor
     48    uint32_t impl    = chdev->impl;
     49    uint32_t channel = chdev->channel;
     50
     51    // set chdev name
     52    snprintf( chdev->name , 16 , "dma_%d_%x" , channel , local_cxy );
    4953
    5054    // set field "cmd", "isr", and call the relevant driver init function
     
    5963        assert( false , __FUNCTION__ , "undefined DMA implementation" );
    6064    }
    61 
    62     // get DMA channel index
    63     uint32_t channel = chdev->channel;
    6465
    6566    // get DMA HWI IRQ index
Note: See TracChangeset for help on using the changeset viewer.