107 | | === 6) void '''giet_coproc_completed'''( unsigned int cluster_xy ) === |
108 | | This blocking function can be used to synchronize a software task with an hardware coprocessor running in DMA mode. |
109 | | It polls the ''_coproc_done[x][y]'' kernel variable, and returns only when this variable has been set by the ISR associated to coprocessor in cluster[x][y]. |
110 | | |
| 107 | === 6) void '''giet_coproc_channel_completed'''( unsigned int cluster_xy , unsigned int channel , unsigned int* status ) === |
| 108 | This blocking function can be used to synchronize a software task with an hardware coprocessor running in DMA_NO_IRQ mode. |
| 109 | It polls the status register for a given channel, and returns only when the transfer is completed. It returns in the status variable |
| 110 | a zero value in case of success. It returns a non zero value in case of bus error. |
| 111 | * '''cluster_xy''' cluster coordinates. |
| 112 | * '''channel''' communication channel index |
| 113 | * '''status''' : return value (>0 if error) |
| 114 | :wq |