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

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

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

Jump to solution
700 Views
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.

Labels (2)
0 Kudos
1 Solution
552 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
553 Views
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 Kudos