Changeset 261 for trunk/hal/tsar_mips32
- Timestamp:
- Jul 20, 2017, 3:13:58 PM (7 years ago)
- Location:
- trunk/hal/tsar_mips32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_drivers.c
r259 r261 130 130 } 131 131 132 /////////////////////////////////////////////////////////////////////////////// 133 // DMA 134 /////////////////////////////////////////////////////////////////////////////// 135 136 ////////////////////////////////////////// 137 void hal_drivers_dma_init( chdev_t * dma, 138 uint32_t impl ) 139 { 140 if( impl == IMPL_DMA_SCL ) 141 { 142 soclib_dma_init( dma ); 143 } 144 else 145 { 146 assert( false , __FUNCTION__ , "undefined DMA implementation" ); 147 } 148 } 149 -
trunk/hal/tsar_mips32/drivers/soclib_dma.c
r75 r261 34 34 cxy_t dma_cxy = GET_CXY( chdev->base ); 35 35 uint32_t * dma_ptr = (uint32_t *)GET_PTR( chdev->base ); 36 37 // set driver specific fields in chdev descriptor 38 chdev->cmd = &soclib_dma_cmd; 39 chdev->isr = &soclib_dma_isr; 36 40 37 41 // enable interrupts
Note: See TracChangeset
for help on using the changeset viewer.