Using OSA_SemaCreate()

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using OSA_SemaCreate()

1,380 次查看
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 项奖励
回复
2 回复数

1,189 次查看
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 项奖励
回复

1,189 次查看
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 项奖励
回复