Dec 06, 2012
01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 06, 2012
01:31 AM
Hi,
in my FX3-firmware I have two threads where one thread accesses one DMA-channel and another thread accesses another DMA-channel. For accessing the DMA-channels I use both the same API CyU3PDmaChannelGetBuffer(), CyU3PDmaChannelCommitBuffer() and CyU3PDmaChannelDiscardBuffer().
Do I have to protect the accesses to the DMA-engine by a mutex so that only one thread accesses the same API or are the API's thread-safe in a way that in the API-implementation the accesses are already protected by mutexes?
Regards,
Rob
1 Reply
Anonymous
Not applicable
Dec 06, 2012
03:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 06, 2012
03:01 AM
Hi Rob,
Yes. They are already protected by mutexes.
Thanks,
sai krishna.