Changeset 188 for trunk/kernel/devices/dev_dma.c
- Timestamp:
- Jul 12, 2017, 8:12:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_dma.c
r23 r188 40 40 extern chdev_directory_t chdev_dir; // allocated in kernel_init.c 41 41 42 extern chdev_icu_input_t chdev_icu_input; // allocated in kernel_init.c43 44 42 //////////////////////////////////// 45 43 void dev_dma_init( chdev_t * chdev ) … … 64 62 } 65 63 66 // get DMA HWI IRQ index67 uint32_t hwi_id = chdev_icu_input.dma[channel];64 // bind IRQ to the core defined by the DMA channel 65 dev_pic_bind_irq( channel , chdev ); 68 66 69 // enable HWI IRQ in local ICU, and update interrupt vector 70 // the selected core is defined by the DMA channel index 71 dev_icu_enable_irq( channel , HWI_TYPE , hwi_id , chdev ); 67 // enable IRQ 68 dev_pic_enable_irq( channel, chdev ); 72 69 73 70 // create server thread … … 90 87 // start server thread 91 88 thread_unblock( XPTR( local_cxy , new_thread ) , THREAD_BLOCKED_GLOBAL ); 92 89 93 90 } // dev_dma_init() 94 91
Note: See TracChangeset
for help on using the changeset viewer.