This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Implementing a mutex

I need a mutex and I found this information at the ARM site: infocenter.arm.com/.../index.jsp

Is there anything I should be aware of in using this technique to implement a mutex?

Parents
  • To answer the original question first: I believe that the ARM Cortex M0 does not support the instructions needed to follow that guide in detail, and I would as Carles say therefore recommend you to use the softdevice API functions.

    Remember that softdevice functions can only be called from interrupt with priority 3 and the main context, not from interrupts with priority 2. See this answer for more details.

    Edit: You can change the priority of interrupts with the sd_nvic_SetPriority() function.

Reply
  • To answer the original question first: I believe that the ARM Cortex M0 does not support the instructions needed to follow that guide in detail, and I would as Carles say therefore recommend you to use the softdevice API functions.

    Remember that softdevice functions can only be called from interrupt with priority 3 and the main context, not from interrupts with priority 2. See this answer for more details.

    Edit: You can change the priority of interrupts with the sd_nvic_SetPriority() function.

Children
No Data
Related