How do you set up a semaphore (atomic test and set) for a k21 prossesor?

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

How do you set up a semaphore (atomic test and set) for a k21 prossesor?

跳至解决方案
970 次查看
brentgreenwald
Contributor III

We are trying to make a semaphore where if the critical section is in use it will send back a signal stating it is busy. We went through the bare metal machine code on the arm to try to figure it out but we still don't know how to do it. we are doing it on a MK21FN1M0VMC12 MCU on the TWR-K21F120M dev board.

标签 (2)
0 项奖励
回复
1 解答
822 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

Semaphore is an Embedded RTOS component.

Customer could find NXP MQX RTOS provide that component and NXP also provides KSDK software supports FreeRTOS and uc-OS III RTOS.


Wish it helps.

Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
823 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

Semaphore is an Embedded RTOS component.

Customer could find NXP MQX RTOS provide that component and NXP also provides KSDK software supports FreeRTOS and uc-OS III RTOS.


Wish it helps.

Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复