MANUAL_IN Dma channel and CyU3PDmaChannelDiscardBuffer | Cypress Semiconductor
MANUAL_IN Dma channel and CyU3PDmaChannelDiscardBuffer
i'm using one manual in ep with multiple buffer to get data in , the processing of the data take some time (deferred to the thread or send to over consumer ) for test /example purpose it us just forwarded to over out end-point (dma override mode without memory copy )
to kind of emulate slow treatment and also be sure the buffer is not re-used as input before done with it I must not return /disard it straight away ( hold the host gpif producer after all buffer consumed) . But when i call CyU3PDmaChannelDiscardBuffer outside the producer dma callback it fail with error code 29? "
aparently CY_U3P_ERROR_MUTEX_FAILURE, /**< Failed to get a mutex. */
Is it any normal? And what's the appropriate way to return/discard buffer for manual_in channel ?