Changeset 261 for trunk/kernel/devices
- Timestamp:
- Jul 20, 2017, 3:13:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_dma.c
r238 r261 32 32 #include <soclib_dma.h> 33 33 #include <dev_dma.h> 34 #include < soclib_dma.h>34 #include <hal_drivers.h> 35 35 36 36 ///////////////////////////////////////////////////////////////////////////////////////// … … 50 50 snprintf( dma->name , 16 , "dma_%d_%x" , channel , local_cxy ); 51 51 52 // set field "cmd", "isr", and call the relevant driver init function 53 if( impl == IMPL_DMA_SCL ) 54 { 55 dma->cmd = &soclib_dma_cmd; 56 dma->isr = &soclib_dma_isr; 57 soclib_dma_init( dma ); 58 } 59 else 60 { 61 assert( false , __FUNCTION__ , "undefined DMA implementation" ); 62 } 52 // call driver init function 53 hal_drivers_dma_init( dma, impl ); 63 54 64 55 // bind IRQ to the core defined by the DMA channel
Note: See TracChangeset
for help on using the changeset viewer.