summaryrefslogtreecommitdiff
path: root/cesar/common/defs
diff options
context:
space:
mode:
authorlaranjeiro2009-05-14 12:49:48 +0000
committerlaranjeiro2009-05-14 12:49:48 +0000
commit0c88c406c3ba788e23fa77a71e6d221de28c959a (patch)
tree74f6f60ce73a53edc36ba308cf59042329faf219 /cesar/common/defs
parent0c66f103ec4cc0533a56dbd2797bbfc44e34e330 (diff)
* Cesar:
* Moved the thread priority and stack size definition to a common file. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4650 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/common/defs')
-rw-r--r--cesar/common/defs/priority.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/cesar/common/defs/priority.h b/cesar/common/defs/priority.h
new file mode 100644
index 0000000000..708b254ca3
--- /dev/null
+++ b/cesar/common/defs/priority.h
@@ -0,0 +1,28 @@
+#ifndef common_defs_priority_h
+#define common_defs_priority_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2009 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file common/defs/priority.h
+ * \brief Layers priority
+ * \ingroup common
+ */
+
+/** Thread priorities. */
+#define MAC_SAR_THREAD_PRIORITY 1
+#define CP_STA_CORE_THREAD_PRIORITY 9
+#define CE_RX_THREAD_PRIORITY 15
+#define INTERFACE_THREAD_PRIORITY 30
+
+/** Thread stack size. */
+#define MAC_SAR_THREAD_STACK_SIZE CYGNUM_HAL_STACK_SIZE_TYPICAL
+#define INTERFACE_THREAD_STACK_SIZE CYGNUM_HAL_STACK_SIZE_TYPICAL
+#define CP_STA_CORE_THREAD_STACK_SIZE CYGNUM_HAL_STACK_SIZE_TYPICAL
+#define CE_RX_THREAD_STACK_SIZE CYGNUM_HAL_STACK_SIZE_TYPICAL
+
+#endif /* common_defs_priority_h */