feat: add lab-rv32i-freertos-scheduler-states card
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#ifndef K04_HOST_TASK_H
|
||||
#define K04_HOST_TASK_H
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum
|
||||
{
|
||||
eRunning = 0,
|
||||
eReady,
|
||||
eBlocked,
|
||||
eSuspended,
|
||||
eDeleted,
|
||||
eInvalid
|
||||
} eTaskState;
|
||||
|
||||
TickType_t xTaskGetTickCount( void );
|
||||
TaskHandle_t xTaskGetCurrentTaskHandle( void );
|
||||
eTaskState eTaskGetState( TaskHandle_t handle );
|
||||
UBaseType_t uxTaskPriorityGet( TaskHandle_t handle );
|
||||
void vTaskPrioritySet( TaskHandle_t handle, UBaseType_t priority );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user