Changes between Version 71 and Version 72 of library_stdio
- Timestamp:
- Apr 12, 2015, 1:44:55 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v71 v72 78 78 * '''coproc_info''' (return value) : nb_to_coprocs = info[7:0] / nb_from_coproc = info[15:8] / nb_config = info[23:16] / nb_status = info[31:24] 79 79 80 === 2) void '''giet_coproc_release'''( ) === 81 This function releases the coprocessor allocated to the calling task. 82 83 === 3) void '''giet_coproc_channel_init'''( unsigned int channel , giet_coproc_channel_t* desc ) === 80 === 2) void '''giet_coproc_channel_init'''( unsigned int channel , giet_coproc_channel_t* desc ) === 84 81 This function initializes a TO_COPROC/FROM_COPROC communication channel. It uses the he following structure (defined in the [source:soft/giet_vm/giet_libs/stdio.h stdio.h] file) to specify the channel parameters: 85 82 {{{ … … 96 93 * '''desc''' pointer on the giet_coproc_channel_t structure. 97 94 98 === 4) void '''giet_coproc_start'''( unsigned int index ) ===95 === 3) void '''giet_coproc_start'''( unsigned int index ) === 99 96 This function activates all communication channels and the allocated coprocessor itself. 100 * '''index''' : coprocessor register index to be written for activation. 101 102 === 5) void '''giet_coproc_stop'''( unsigned int index ) === 103 This function desactivates all communication channels and the allocated coprocessor itself. 104 * '''index''' : coprocessor register index to be written for activation. 105 106 === 6) void '''giet_coproc_completed'''( ) === 97 98 === 4) void '''giet_coproc_completed'''( ) === 107 99 This blocking function can be used to synchronize a software task with an hardware coprocessor running in DMA_NO_IRQ mode. 108 100 It polls the status register of all communication channels, and returns only when all transfers are completed. 109 101 This function exit when at least one channel status register indicates a bus error (illegal memory access). 102 103 === 5) void '''giet_coproc_stop'''( unsigned int index ) === 104 This function desactivates all communication channels and the allocated coprocessor itself. 105 * '''index''' : coprocessor register index to be written for desactivation. 106 107 === 6) void '''giet_coproc_release'''( unsigned int index ) === 108 This function releases the coprocessor allocated to the calling task, after desactivation. 109 * '''index''' : coprocessor register index to be written for desactivation. 110 110 111 111