Changeset 647 for trunk/kernel/devices/dev_dma.c
- Timestamp:
- Oct 22, 2019, 1:48:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_dma.c
r637 r647 41 41 void dev_dma_init( chdev_t * dma ) 42 42 { 43 // get implementation & channel from DMA dma descriptor 44 uint32_t impl = dma->impl; 43 // get channel from chdev descriptor 45 44 uint32_t channel = dma->channel; 46 45 … … 49 48 50 49 // call driver init function 51 hal_drivers_dma_init( dma , impl);50 hal_drivers_dma_init( dma ); 52 51 53 52 // bind IRQ to the core defined by the DMA channel … … 104 103 xptr_t dev_xp = chdev_dir.dma[channel]; 105 104 106 assert( (dev_xp != XPTR_NULL) , "undefined DMA chdev descriptor" ); 105 // check DMA chdev definition 106 assert( (dev_xp != XPTR_NULL) , "undefined DMA chdev descriptor" ); 107 107 108 108 // register command in calling thread descriptor
Note: See TracChangeset
for help on using the changeset viewer.