feat: add lab-rv32i-freertos-task-wrapper card
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#ifndef K07_HOST_FREERTOS_H
|
||||
#define K07_HOST_FREERTOS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef int32_t BaseType_t;
|
||||
typedef uint32_t UBaseType_t;
|
||||
typedef uint32_t configSTACK_DEPTH_TYPE;
|
||||
typedef void * TaskHandle_t;
|
||||
|
||||
#define pdPASS ( ( BaseType_t ) 1 )
|
||||
#define pdFAIL ( ( BaseType_t ) 0 )
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#ifndef K07_HOST_TASK_H
|
||||
#define K07_HOST_TASK_H
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void ( * TaskFunction_t )( void * );
|
||||
BaseType_t xTaskCreate( TaskFunction_t entry,
|
||||
const char * name,
|
||||
configSTACK_DEPTH_TYPE stack_words,
|
||||
void * context,
|
||||
UBaseType_t priority,
|
||||
TaskHandle_t * handle );
|
||||
void vTaskDelete( TaskHandle_t handle );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user