Skip to content

Support for SafeRTOS #56

@basit-s

Description

@basit-s

Hi,

I'm curious if anyone has looked into supporting SafeRTOS, which is based on FreeRTOS. Without the guide.md available, I found this list of variable references for FreeRTOS in rtos-freertos.ts:

  private uxCurrentNumberOfTasks: RTOSCommon.RTOSVarHelperMaybe;
  private uxCurrentNumberOfTasksVal = 0;
  private pxReadyTasksLists: RTOSCommon.RTOSVarHelperMaybe;
  private xDelayedTaskList1: RTOSCommon.RTOSVarHelperMaybe;
  private xDelayedTaskList2: RTOSCommon.RTOSVarHelperMaybe;
  private xPendingReadyList: RTOSCommon.RTOSVarHelperMaybe;
  private pxCurrentTCB: RTOSCommon.RTOSVarHelperMaybe;
  private pxCurrentTCBs: RTOSCommon.RTOSVarHelperMaybe;
  private xSuspendedTaskList: RTOSCommon.RTOSVarHelperMaybe;
  private xTasksWaitingTermination: RTOSCommon.RTOSVarHelperMaybe;
  private ulTotalRunTime: RTOSCommon.RTOSVarHelperMaybe;
  private ulTotalRunTimeVal = 0;

Out of this list, the only ones that differ in SafeRTOS are the following:

  • pxReadyTasksLists: This is referred to as xReadyTasksLists in SafeRTOS.
  • pxCurrentTCBs: This feature is not supported in SafeRTOS.
  • ulTotalRunTime: SafeRTOS provides optional run time statistics through ulTotalRunTimeCounter1 and ulTotalRunTimeCounter2.
  • xTasksWaitingTermination: This feature is not supported in SafeRTOS.

With that in mind, SafeRTOS might be easier to support compared to other real time operating systems due to it's similarities with FreeRTOS.

I'm curious if anyone has tested SafeRTOS, or if it's worth making the modifications necessary to support it. I may be able to help, but wanted to see if anyone has looked into this already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions