mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
60 lines
1.6 KiB
C
60 lines
1.6 KiB
C
/*
|
|
* Copyright (C) 2018 Gunar Schorcht
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*
|
|
* FreeRTOS to RIOT-OS adaption module for source code compatibility
|
|
*/
|
|
|
|
#ifndef FREERTOS_TASK_H
|
|
#define FREERTOS_TASK_H
|
|
|
|
#ifndef DOXYGEN
|
|
|
|
#include "thread.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define xTaskHandle TaskHandle_t
|
|
#define tskNO_AFFINITY INT_MAX
|
|
|
|
typedef void (*TaskFunction_t)(void *);
|
|
|
|
typedef void* TaskHandle_t;
|
|
|
|
BaseType_t xTaskCreate (TaskFunction_t pvTaskCode,
|
|
const char * const pcName,
|
|
const uint32_t usStackDepth,
|
|
void * const pvParameters,
|
|
UBaseType_t uxPriority,
|
|
TaskHandle_t * const pvCreatedTask);
|
|
|
|
BaseType_t xTaskCreatePinnedToCore (TaskFunction_t pvTaskCode,
|
|
const char * const pcName,
|
|
const uint32_t usStackDepth,
|
|
void * const pvParameters,
|
|
UBaseType_t uxPriority,
|
|
TaskHandle_t * const pvCreatedTask,
|
|
const BaseType_t xCoreID);
|
|
|
|
void vTaskDelete (TaskHandle_t xTaskToDelete);
|
|
void vTaskDelay (const TickType_t xTicksToDelay);
|
|
|
|
TaskHandle_t xTaskGetCurrentTaskHandle (void);
|
|
|
|
void vTaskEnterCritical (portMUX_TYPE *mux);
|
|
void vTaskExitCritical (portMUX_TYPE *mux);
|
|
|
|
TickType_t xTaskGetTickCount (void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* DOXYGEN */
|
|
#endif /* FREERTOS_TASK_H */
|