Page 1 of 1

COPRTHR-2 Mutex examples

PostPosted: Wed Nov 29, 2017 9:54 am
by nickoppen
Hello,

Are there any examples of coprthr_mutex_init() and related functions? I would like to experiment using mutexes rather than dma_wait() which is very inefficient.

I've had a look on github but the mutex examples are all from COPRTHR-1.6 and use calls that don't appear in the COPRTHR-2 documentation.

I've got the DMA interrupts working. I want to do a mutex lock before starting the next dma operation and then doing an mutex unlock when the previous one is finished. In the interrupt I'll also call the host to copy back the data from shared memory (as in my last post).

Any help would be much appreciated.

nick