Hello,I have the following structure defined in my code to implement a circular queue:
typedef struct{
PWM_BUFFER_ENTRY *head;
PWM_BUFFER_ENTRY *tail;
PWM_BUFFER_ENTRY buffer;
bool enabled;
bool empty;
}PWM_BUFFE..