Skip to main content
Graduate II
April 18, 2021
Solved

What is the CMSIS-RTOS v2 replacement for osThreadSuspendAll()?

  • April 18, 2021
  • 2 replies
  • 2043 views

Trying to port my code to CMSIS-RTOS v2 and running into some missing functionality. I don't see an osThreadSuspendAll() replacement.

    This topic has been closed for replies.
    Best answer by Pavel A.

    It looks like osKernelLock()

    2 replies

    Pavel A.Answer
    Super User
    April 18, 2021

    It looks like osKernelLock()

    Visitor II
    April 19, 2021

    Hello @Rob.Riggs​ ,

    To migrate to CMSIS-RTOS v2, I advise you to consult the following link : Migration Guide

    moreover, you will find all the differences between the API functions in this reference : Detailed API Function Differences

    I hope this helps!

    Best Regards,

    Walid

    Rob.RiggsAuthor
    Graduate II
    April 25, 2021

    Thank you. I am finding that migration guide rather lacking. I have consulted it. Searching for osThreadSuspendAll returns no results. It is not referenced on that page. There are a number of CMSIS-OS v1 functions that have no migration information and for which I just ended up having to use the underlying FreeRTOS functions.