2 * @file frecan_config.h
4 * @brief constants to configure the frescan protocol
15 * This module contains some constants and macros to configure the
16 * frescan protocol. For example, the size of the packets pool, etc...
20 * See MaRTE OS license
24 #ifndef _MARTE_FRESCAN_CONFIG_H_
25 #define _MARTE_FRESCAN_CONFIG_H_
27 #include <signal.h> // SIGRTMIN
28 #include <sys/kernel.h> // kernel_enter_critic_section
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
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))
45 #endif // _MARTE_FRESCAN_CONFIG_H_