/* Desktop port: the FreeRTOS subset the firmware uses, on POSIX threads (desktop/port/src/freertos.c). */ #pragma once #include #include #include #include "portmacro.h" typedef int BaseType_t; typedef unsigned int UBaseType_t; typedef uint32_t TickType_t; #define pdTRUE ((BaseType_t)1) #define pdFALSE ((BaseType_t)0) #define pdPASS pdTRUE #define pdFAIL pdFALSE #define portMAX_DELAY ((TickType_t)0xFFFFFFFFUL) #define pdMS_TO_TICKS(ms) ((TickType_t)(ms)) /* a tick is 1 ms */ #define portTICK_PERIOD_MS ((TickType_t)1) #define configTICK_RATE_HZ 1000 #define portYIELD_FROM_ISR(x) ((void)(x))