feat: add lab-rv32i-freertos-queue card
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef K10_HOST_FREERTOS_H
|
||||
#define K10_HOST_FREERTOS_H
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
typedef int32_t BaseType_t;
|
||||
typedef uint32_t UBaseType_t;
|
||||
typedef uint32_t TickType_t;
|
||||
struct QueueDefinition
|
||||
{
|
||||
UBaseType_t capacity;
|
||||
UBaseType_t item_size;
|
||||
uint8_t * storage;
|
||||
UBaseType_t head;
|
||||
UBaseType_t tail;
|
||||
UBaseType_t count;
|
||||
BaseType_t dynamic_control;
|
||||
};
|
||||
typedef struct QueueDefinition * QueueHandle_t;
|
||||
typedef struct QueueDefinition StaticQueue_t;
|
||||
#define pdFALSE ( ( BaseType_t ) 0 )
|
||||
#define pdTRUE ( ( BaseType_t ) 1 )
|
||||
#define pdFAIL ( ( BaseType_t ) 0 )
|
||||
#define pdPASS ( ( BaseType_t ) 1 )
|
||||
#endif
|
||||
Reference in New Issue
Block a user