cancel
Showing results for 
Search instead for 
Did you mean: 

Using Locks in STM32L4/F4 without RTOS

darla14
Senior
Posted on March 23, 2016 at 05:55

Hi, 

Is there a  way to prevent the critical section of the code using Locks in STM32 code witout using an RTOS.

Or in another way any variable which gurantees the portion of the code execution in an atomic fashion.

#!stm32f4-!stm32f401-!rtc #atomic
2 REPLIES 2
Radosław
Senior II
Posted on March 23, 2016 at 09:40

Atomic operations are simplier in nor RTOS solutions.   But your question aren't concrete.  With what you have problem?

darla14
Senior
Posted on March 25, 2016 at 11:44

Problem is I am trying to prevent the concurrent access to a code which is shared between user application and the interrupt.