]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/include/arch/sys_arch.h
arch protect changed from interrupt to mutex
[pes-rpp/rpp-lwip.git] / src / include / arch / sys_arch.h
index 0d418d5e6308ff4b0a0d168bc52714a6415e95fb..b46a6359292db2768789371d83ce96e0af716127 100644 (file)
@@ -53,6 +53,9 @@
 
 #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
+
 typedef u8_t sys_prot_t;
 
 /* The values for an unallocated entities. */
@@ -85,10 +88,6 @@ typedef xSemaphoreHandle sys_mutex_t; /* *xQUEUE */
 #define TRYPOST_ISR_SAFE           0
 #define TRYFETCH_ISR_SAFE          0
 
-/* 1 - semaphores are used to protect critical sections; 0 - interrupt disable is used to protect critical sections */
-/* because of FIQ using for irq */
-//#define SYS_ARCH_SEMPHR_PROTECT    1
-
 #endif /* !NO_SYS */
 
 #endif /* __ARCH_SYS_ARCH_H__ */