]> rtime.felk.cvut.cz Git - frescor/fna.git/blob - src_frescan/frescan_config.h
added frescan sources
[frescor/fna.git] / src_frescan / frescan_config.h
1 /*!
2  * @file frecan_config.h
3  *
4  * @brief constants to configure the frescan protocol
5  *
6  * @version 0.01
7  *
8  * @date 12-Mar-2008
9  *
10  * @author
11  *      Daniel Sangorrin
12  *
13  * @comments
14  *
15  * This module contains some constants and macros to configure the
16  * frescan protocol. For example, the size of the packets pool, etc...
17  *
18  * @license
19  *
20  * See MaRTE OS license
21  *
22  */
23
24 #ifndef _MARTE_FRESCAN_CONFIG_H_
25 #define _MARTE_FRESCAN_CONFIG_H_
26
27 #include <signal.h>      // SIGRTMIN
28 #include <sys/kernel.h>  // kernel_enter_critic_section
29
30 #define FRESCAN_MX_REPL_OPS       100
31 #define FRESCAN_MX_NETWORKS       2
32 #define FRESCAN_BROADCAST_ADDR    0xF
33 #define FRESCAN_MX_IDS            255
34 #define FRESCAN_MX_PRIOS          32
35 #define FRESCAN_REPL_SIGNAL_NUM   SIGRTMIN + 5 // real-time signal
36 #define FRESCAN_BACKGROUND_PRIO   0
37 #define FRESCAN_MX_REPLY_OBJECTS  40
38
39 #define FRESCAN_MLOCK_T            unsigned
40 #define FRESCAN_CREATE_LOCK(l)
41 #define FRESCAN_DESTROY_LOCK(l)
42 #define FRESCAN_ACQUIRE_LOCK(l)    kernel_enter_critic_section(l)
43 #define FRESCAN_RELEASE_LOCK(l)    kernel_leave_critic_section(*(l))
44
45 #endif // _MARTE_FRESCAN_CONFIG_H_