Home
last modified time | relevance | path

Searched refs:prioarray (Results 1 – 2 of 2) sorted by relevance

/hal_infineon-3.4.0/XMCLib/drivers/src/
Dxmc_common.c166 void XMC_PRIOARRAY_Init(XMC_PRIOARRAY_t *prioarray) in XMC_PRIOARRAY_Init() argument
168 XMC_ASSERT("XMC_PRIOARRAY_Init: NULL pointer", prioarray != NULL); in XMC_PRIOARRAY_Init()
171 prioarray->items[prioarray->size].next = prioarray->size + 1; in XMC_PRIOARRAY_Init()
172 prioarray->items[prioarray->size].previous = -1; in XMC_PRIOARRAY_Init()
173 prioarray->items[prioarray->size].priority = INT32_MAX; in XMC_PRIOARRAY_Init()
176 prioarray->items[prioarray->size + 1].next = -1; in XMC_PRIOARRAY_Init()
177 prioarray->items[prioarray->size + 1].previous = prioarray->size; in XMC_PRIOARRAY_Init()
178 prioarray->items[prioarray->size + 1].priority = INT32_MIN; in XMC_PRIOARRAY_Init()
182 void XMC_PRIOARRAY_Add(XMC_PRIOARRAY_t *prioarray, int32_t item, int32_t priority) in XMC_PRIOARRAY_Add() argument
187 XMC_ASSERT("XMC_PRIOARRAY_Add: item out of range", (item >= 0) && (item < prioarray->size)); in XMC_PRIOARRAY_Add()
[all …]
/hal_infineon-3.4.0/XMCLib/drivers/inc/
Dxmc_common.h250 void XMC_PRIOARRAY_Init(XMC_PRIOARRAY_t *prioarray);
255 void XMC_PRIOARRAY_Add(XMC_PRIOARRAY_t *prioarray, int32_t item, int32_t priority);
260 void XMC_PRIOARRAY_Remove(XMC_PRIOARRAY_t *prioarray, int32_t item);
265 __STATIC_INLINE int32_t XMC_PRIOARRAY_GetHead(XMC_PRIOARRAY_t *prioarray) in XMC_PRIOARRAY_GetHead() argument
267 XMC_ASSERT("XMC_PRIOARRAY_Init: NULL pointer", prioarray != NULL); in XMC_PRIOARRAY_GetHead()
268 return prioarray->items[prioarray->size].next; in XMC_PRIOARRAY_GetHead()
274 __STATIC_INLINE int32_t XMC_PRIOARRAY_GetTail(XMC_PRIOARRAY_t *prioarray) in XMC_PRIOARRAY_GetTail() argument
276 XMC_ASSERT("XMC_PRIOARRAY_Init: NULL pointer", prioarray != NULL); in XMC_PRIOARRAY_GetTail()
277 return prioarray->items[prioarray->size + 1].previous; in XMC_PRIOARRAY_GetTail()
283 __STATIC_INLINE int32_t XMC_PRIOARRAY_GetItemPriority(XMC_PRIOARRAY_t *prioarray, int32_t item) in XMC_PRIOARRAY_GetItemPriority() argument
[all …]