Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Init the interrupt sync object.
- * ==> Memory Leak in FreeRTOS abstraction, new counting Semaphore is created
- * for each function call, old semaphores don't get deleted.
- * Simple Fix: only create Semaphore if it doesn't exist yet */
- if(!dspiState->irqSync) {
- OSA_SemaCreate(&dspiState->irqSync, 0);
- } else {
- /* Make sure that the value of Semaphore is 0 before beginning the transfer */
- osa_status_t status;
- do {
- status = OSA_SemaWait(&dspiState->irqSync, 0);
- } while(status == kStatus_OSA_Success);
- }
Advertisement
Add Comment
Please, Sign In to add comment