semf
stm32criticalsection.cpp
Go to the documentation of this file.
1
13
14#if defined(STM32)
15namespace semf
16{
18{
19 SEMF_INFO("will enter now");
20 do
21 {
22 if (m_criticalCount++ == 0)
23 {
24 __disable_irq();
25 }
26 } while (0);
27}
28
30{
31 do
32 {
33 if (--m_criticalCount == 0)
34 {
35 __enable_irq();
36 }
37 } while (0);
38 SEMF_INFO("left");
39}
40} /* namespace semf */
41#endif
#define SEMF_INFO(...)
Definition: debug.h:41