Changes between Version 91 and Version 92 of library_stdio


Ignore:
Timestamp:
Jul 15, 2015, 6:57:43 PM (9 years ago)
Author:
bellefin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v91 v92  
    338338Task exit if no CMA channel available
    339339
    340  === 2) void '''giet_fbf_cma_start'''( void* buf0, void* buf1, unsigned int length ) ===
    341 This function initializes the chained buffer DMA controller (CMA) to transfer a stream of images from two user buffers to the frame buffer. It must be used in conjunction with the giet_fbf_cma_display() function. A CMA channel should have been allocated to the calling task in the application mapping.
    342  * '''buf0''' is the first user buffer base address
    343  * '''buf1''' is the second user buffer base address,
    344  * '''length''' is the buffer size (bytes).
    345 
    346  === 3) void '''giet_fbf_cma_display'''( unsigned int buffer ) ===
     340 === 2) void '''giet_fbf_cma_init_buf'''( void* buf0_vbase, void* buf1_vbase, void* sts0_vaddr, void* sts1_vaddr ) ===
     341This function initializes the chained buffer descriptors for the two source buffers and the frame buffer. CMA channel should have been allocated to the calling task in the application mapping.
     342 * '''buf0_vbase''' is the first user buffer base address,
     343 * '''buf1_vbase''' is the second user buffer base address,
     344 * '''sts0_vaddr''' is the virtual address of the first buffer status,
     345 * '''sts1_vaddr''' is the virtual address of the second buffer status.
     346
     347 === 3) void '''giet_fbf_cma_start'''( unsigned int length ) ===
     348This function initializes the chained buffer DMA controller (CMA) to transfer a stream of images from two user buffers to the frame buffer. It must be used in conjunction with the giet_fbf_cma_display() function. The chained buffer descriptors should have been initialized by the previous function. ''length'' is the buffer size (bytes).
     349
     350 === 4) void '''giet_fbf_cma_display'''( unsigned int buffer ) ===
    347351This function enables the transfer of the buffer specified by the ''buffer'' argument (0 or 1).
    348352
    349  === 4) void '''giet_fbf_cma_stop'''( ) ===
     353 === 5) void '''giet_fbf_cma_stop'''( ) ===
    350354This function desactivates the CMA channel allocated to the calling task.
    351355
    352  === 5) void '''giet_fbf_sync_read'''( unsigned int offset, void* buffer, unsigned int length ) ===
     356 === 6) void '''giet_fbf_sync_read'''( unsigned int offset, void* buffer, unsigned int length ) ===
    353357This blocking function use a memcopy strategy to transfer data from the frame buffer to an user buffer: ''offset'' defines the offset (in bytes) in the frame buffer, ''buffer''  is the user buffer base address, ''length''  is the number of bytes to be transfered.
    354358
    355  === 6) void '''giet_fbf_sync_write'''( unsigned int offset, void* buffer, unsigned int length ) ===
     359 === 7) void '''giet_fbf_sync_write'''( unsigned int offset, void* buffer, unsigned int length ) ===
    356360This blocking function use a memcopy strategy to transfer data from an user buffer to the frame buffer: ''offset'' defines the offset (in bytes) in the frame buffer, ''buffer''  is the user buffer base address, ''length''  is the number of bytes to be transfered.
    357361