mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-19 09:13:11 +00:00
1759787334
* furiac start and thread create implementation" * create and kill task * rename debug, add header * remove write.c * kill itself * furi exit/switch * success switch and exit * WIP furi records * add furi record interface * rename furi app control file * record implementation in progress * wip furi implementation * add automatic tests for FURI AC * differ build tests * small changes * FURI record tests description * change furi statuses * FURI record test blank * exit after all application ends * delay: print then wait * fix FURI implementatnion building * pipe record test * concurrent access * uncomplete mute-test * update FURI documentation
30 lines
833 B
C
30 lines
833 B
C
#include "main.h"
|
|
#include <stdbool.h>
|
|
|
|
void osDelay(uint32_t ms);
|
|
|
|
// some FreeRTOS types
|
|
typedef void(*TaskFunction_t)(void*);
|
|
typedef uint32_t UBaseType_t;
|
|
typedef uint32_t StackType_t;
|
|
typedef uint32_t StaticTask_t;
|
|
typedef pthread_t* TaskHandle_t;
|
|
typedef uint32_t StaticSemaphore_t;
|
|
typedef void* SemaphoreHandle_t;
|
|
|
|
#define tskIDLE_PRIORITY 0
|
|
|
|
TaskHandle_t xTaskCreateStatic(
|
|
TaskFunction_t pxTaskCode,
|
|
const char * const pcName,
|
|
const uint32_t ulStackDepth,
|
|
void * const pvParameters,
|
|
UBaseType_t uxPriority,
|
|
StackType_t * const puxStackBuffer,
|
|
StaticTask_t * const pxTaskBuffer
|
|
);
|
|
|
|
void vTaskDelete(TaskHandle_t xTask);
|
|
TaskHandle_t xTaskGetCurrentTaskHandle(void);
|
|
SemaphoreHandle_t xSemaphoreCreateMutexStatic(StaticSemaphore_t* pxMutexBuffer);
|
|
bool task_equal(TaskHandle_t a, TaskHandle_t b);
|