28 #ifndef FREERTOS_KERNEL_HPP
29 #define FREERTOS_KERNEL_HPP
41 enum class SchedulerState : BaseType_t {
42 Suspended = taskSCHEDULER_SUSPENDED,
43 NotStarted = taskSCHEDULER_NOT_STARTED,
44 Running = taskSCHEDULER_RUNNING,
52 inline constexpr BaseType_t versionMajor = tskKERNEL_VERSION_MAJOR;
53 inline constexpr BaseType_t versionMinor = tskKERNEL_VERSION_MINOR;
54 inline constexpr BaseType_t versionBuild = tskKERNEL_VERSION_BUILD;
56 #if (INCLUDE_xTaskGetSchedulerState == 1)
68 return static_cast<SchedulerState
>(xTaskGetSchedulerState());
86 #if (INCLUDE_xTaskGetIdleTaskHandle == 1 && configGENERATE_RUN_TIME_STATS == 1)
108 return xTaskGetIdleRunTimeCounter();
153 inline void yield() { taskYIELD(); }
237 taskEXIT_CRITICAL_FROM_ISR(interruptStatus);
353 inline bool resumeAll() {
return (xTaskResumeAll() == pdTRUE); }
372 inline void stepTick(
const TickType_t ticksToJump) {
373 vTaskStepTick(ticksToJump);
403 return (xTaskCatchUpTicks(ticksToCatchUp) == pdTRUE);
void stepTick(const TickType_t ticksToJump)
Function that calls vTaskStepTick( const TickType_t xTicksToJump )
Definition: Kernel.hpp:372
bool catchUpTicks(const TickType_t ticksToCatchUp)
Function that calls xTaskCatchUpTicks( TickType_t xTicksToCatchUp )
Definition: Kernel.hpp:402
constexpr char versionNumber[]
If versionNumber ends with + it represents the version in development after the numbered release.
Definition: Kernel.hpp:51
bool resumeAll()
Function that calls xTaskResumeAll()
Definition: Kernel.hpp:353
void endScheduler()
Function that calls vTaskEndScheduler()
Definition: Kernel.hpp:308
void disableInterrupts()
Function that calls taskDISABLE_INTERRUPTS()
Definition: Kernel.hpp:249
void suspendAll()
Function that calls vTaskSuspendAll()
Definition: Kernel.hpp:331
void enterCritical()
Function that calls taskENTER_CRITICAL()
Definition: Kernel.hpp:171
TickType_t getTickCount()
Function that calls xTaskGetTickCount()
Definition: Kernel.hpp:122
TickType_t getIdleRunTimeCounter()
Function that calls xTaskGetIdleRunTimeCounter()
Definition: Kernel.hpp:107
void exitCritical()
Function that calls taskEXIT_CRITICAL()
Definition: Kernel.hpp:213
UBaseType_t getNumberOfTasks()
Function that calls uxTaskGetNumberOfTasks()
Definition: Kernel.hpp:84
void yield()
Function that calls taskYIELD()
Definition: Kernel.hpp:153
uint32_t enterCriticalFromISR()
Function that calls taskENTER_CRITICAL_FROM_ISR()
Definition: Kernel.hpp:195
SchedulerState getSchedulerState()
Function that calls xTaskGetSchedulerState()
Definition: Kernel.hpp:67
void startScheduler()
Function that calls vTaskStartScheduler()
Definition: Kernel.hpp:275
void enableInterrupts()
Function that calls taskENABLE_INTERRUPTS()
Definition: Kernel.hpp:260
void exitCriticalFromISR(const uint32_t interruptStatus)
Function that calls taskEXIT_CRITICAL_FROM_ISR()
Definition: Kernel.hpp:236
TickType_t getTickCountFromISR()
Function that calls xTaskGetTickCountFromISR()
Definition: Kernel.hpp:139