Using OSA_SemaCreate()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using OSA_SemaCreate()

631 Views
marcosgalelli
Contributor I

I start to study about RTOS, and we are using FreeRTOS. One of the study tasks is control two simple tasks, just blink two leds, one in each task, using a semaphore using OSA functions. But I didn't find nothing, or code or a real explanation, using OSA_SemaCreate(), OSA_SemaWait() or OSA_SemaPost(). I'd like to understand better about those functions, can someone help me with this?

0 Kudos
2 Replies

440 Views
marcosgalelli
Contributor I

Use OS abstraction layer was a prerequisite, then I can't use other functions. But, I discover how to use, thanks.

0 Kudos

440 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Marcos:

OSA_SemaCreate(), OSA_SemaWait() or OSA_SemaPost() are in OS abstraction layer, it is designed and implemented for supported RTOS to provide a common set of service routines for drivers, integrated software solution, and upper-level applications so that a common code base can be used regardless of the target OS.

You can find the sample code in KSDK1.3, for example.

platform/drivers/src/flexio

For the new KSDK 2.x version, OSA is no longer required. So I would recommend you start directly the FreeRTOS API, for example xSemaphoreTake, xSemaphoreGive, xSemphoreCreateBinary

Regards

Daniel

0 Kudos