Changes between Version 54 and Version 55 of library_stdio
- Timestamp:
- Mar 2, 2015, 1:34:28 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v54 v55 72 72 * '''coproc_type''' : COPROC_TYPE_GCD / COPROC_TYPE_DCT 73 73 * '''coproc_info''' : nb_to_coprocs = info[7:0] / nb_from_coproc = info[15:8] / nb_config = info[23:16] / nb_status = info[31:24] 74 * '''clusterrequested coprocessor type 75 76 === 2) void '''giet_coproc_channel_init'''( unsigned int cluster_xy, unsigned int channel, giet_coproc_channel_t* desc ) === 74 * '''cluster_xy''' : cluster coordinates 75 76 === 2) void '''giet_coproc_release'''( unsigned int cluster_xy ) === 77 This function releases the coprocessor allocated to the calling task. 78 * '''cluster_xy''' cluster coordinates 79 80 === 3) void '''giet_coproc_channel_init'''( unsigned int cluster_xy, unsigned int channel, giet_coproc_channel_t* desc ) === 77 81 This function initializes a communication channel. It uses the he following structure (defined in the [source:soft/giet_vm/giet_libs/stdio.h stdio.h] file) to specicy the channel parameters: 78 82 {{{ … … 90 94 * '''desc''' pointer on the giet_coproc_channel_t structure 91 95 92 === 3) void '''giet_coproc_channel_start'''( unsigned int cluster_xy, unsigned int channel ) ===96 === 4) void '''giet_coproc_channel_start'''( unsigned int cluster_xy, unsigned int channel ) === 93 97 This function activates one communication channel for coprocessor in cluster_xy. 94 98 * '''cluster_xy''' cluster coordinates 95 99 * '''channel''' communication channel index 96 100 97 === 4) void '''giet_coproc_channel_stop'''( unsigned int cluster_xy, unsigned int channel ) ===101 === 5) void '''giet_coproc_channel_stop'''( unsigned int cluster_xy, unsigned int channel ) === 98 102 This function desactivates one communication channel for coprocessor in cluster_xy. 99 103 * '''cluster_xy''' cluster coordinates 100 104 * '''channel''' communication channel index 101 105 102 === 5) void '''giet_coproc_completed'''( unsigned int cluster_xy ) ===106 === 6) void '''giet_coproc_completed'''( unsigned int cluster_xy ) === 103 107 This blocking function can be used to synchronize a software task with an hardware coprocessor running in DMA mode. 104 108 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].