A queue mechanism similar to that of FreeRTOS but capable of storing elements of varying sizes

by Isaac Marino Bavaresco

This implementation if for my SimpleRTOS. A FreeRTOS version is under development.

The implementation of the FlexiQueue required the addition of a new member (void *ExtraParameter) to the context_t structure (equivalent to FreeRTOS's TCB - Task Control Block).

Code: