feat: add lab-rv32i-freertos-kernel-facade card
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#ifndef K09_HOST_FREERTOS_H
|
||||
#define K09_HOST_FREERTOS_H
|
||||
#include <stdint.h>
|
||||
typedef int32_t BaseType_t;
|
||||
typedef uint32_t UBaseType_t;
|
||||
typedef uint32_t TickType_t;
|
||||
typedef void * TaskHandle_t;
|
||||
#define pdFALSE ( ( BaseType_t ) 0 )
|
||||
#define pdTRUE ( ( BaseType_t ) 1 )
|
||||
#endif
|
||||
@@ -0,0 +1,25 @@
|
||||
#ifndef K09_HOST_TASK_H
|
||||
#define K09_HOST_TASK_H
|
||||
#include "FreeRTOS.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void vTaskStartScheduler( void );
|
||||
BaseType_t xTaskGetSchedulerState( void );
|
||||
void vTaskSuspendAll( void );
|
||||
BaseType_t xTaskResumeAll( void );
|
||||
TaskHandle_t xTaskGetCurrentTaskHandle( void );
|
||||
TickType_t xTaskGetTickCount( void );
|
||||
void k09_mock_yield( void );
|
||||
void k09_mock_enter_critical( void );
|
||||
void k09_mock_exit_critical( void );
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#define taskSCHEDULER_SUSPENDED ( ( BaseType_t ) 0 )
|
||||
#define taskSCHEDULER_NOT_STARTED ( ( BaseType_t ) 1 )
|
||||
#define taskSCHEDULER_RUNNING ( ( BaseType_t ) 2 )
|
||||
#define taskYIELD() k09_mock_yield()
|
||||
#define taskENTER_CRITICAL() k09_mock_enter_critical()
|
||||
#define taskEXIT_CRITICAL() k09_mock_exit_critical()
|
||||
#endif
|
||||
Reference in New Issue
Block a user