]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/include/arch/sys_arch.h
FIQ and protection control
[pes-rpp/rpp-lwip.git] / src / include / arch / sys_arch.h
index 0d418d5e6308ff4b0a0d168bc52714a6415e95fb..0b261f1583002ba2dd0a8ae6c8461d7b924b66de 100644 (file)
@@ -53,6 +53,9 @@
 
 #define portQUEUE_OVERHEAD_BYTES 0
 
+/* 1 - semaphore/mutex is used to protect critical sections; 0 - interrupt disable is used to protect critical sections */
+#define SYS_ARCH_SEMPHR_PROTECT    0
+
 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__ */