]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/include/arch/sys_arch.h
mutex protection fixed; some not well working tries to make !NO_SYS version working
[pes-rpp/rpp-lwip.git] / src / include / arch / sys_arch.h
index b46a6359292db2768789371d83ce96e0af716127..66741cbdfaf6c59807e0fb18847ffe4ad2ce860d 100644 (file)
@@ -53,8 +53,8 @@
 
 #define portQUEUE_OVERHEAD_BYTES 0
 
-/* 1 - semaphores are used to protect critical sections; 0 - interrupt disable is used to protect critical sections */
-#define SYS_ARCH_SEMPHR_PROTECT    1
+/* 1 - semaphore/mutexe is used to protect critical sections; 0 - interrupt disable is used to protect critical sections */
+#define SYS_ARCH_SEMPHR_PROTECT    0 & !NO_SYS
 
 typedef u8_t sys_prot_t;