feat: add lab-rv32i-freertos-static-task card
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef K08_HOST_FREERTOS_H
|
||||
#define K08_HOST_FREERTOS_H
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
typedef int32_t BaseType_t;
|
||||
typedef uint32_t UBaseType_t;
|
||||
typedef uint32_t configSTACK_DEPTH_TYPE;
|
||||
typedef uint32_t StackType_t;
|
||||
typedef void * TaskHandle_t;
|
||||
typedef struct { uint32_t words[ 24 ]; } StaticTask_t;
|
||||
#define pdPASS ( ( BaseType_t ) 1 )
|
||||
#define pdFAIL ( ( BaseType_t ) 0 )
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef K08_HOST_TASK_H
|
||||
#define K08_HOST_TASK_H
|
||||
#include "FreeRTOS.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
typedef void ( * TaskFunction_t )( void * );
|
||||
BaseType_t xTaskCreate( TaskFunction_t, const char *, configSTACK_DEPTH_TYPE,
|
||||
void *, UBaseType_t, TaskHandle_t * );
|
||||
TaskHandle_t xTaskCreateStatic( TaskFunction_t, const char *,
|
||||
configSTACK_DEPTH_TYPE, void *, UBaseType_t,
|
||||
StackType_t *, StaticTask_t * );
|
||||
void vTaskDelete( TaskHandle_t );
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user