]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_configuration_parameters.h
trace distributed flag
[frescor/frsh-include.git] / frsh_configuration_parameters.h
index b6735da9b0f73a7f14eab87681c957e1d0ba8c1a..58d8358d49a6b66303e26f41ac2d811c8fbec80c 100644 (file)
@@ -73,6 +73,8 @@
 
 #include <unistd.h>
 
+FRSH_CPP_BEGIN_DECLS
+
 /**
  * @file frsh_configuration_parameters.h
  *
  **/
 #define FRSH_AUTOMATIC_PRIO_ASSIGN_ENABLE true
 
+#define FRSH_DISTRIBUTED_MODULE_SUPPORTED false
+
+
+/** This defines 1 resource_id value for systems that have only one
+    resource of a kind. **/
+#define FRSH_RESOURCE_ID_DEFAULT 0
+#define FRSH_CPU_ID_DEFAULT 0
+#define FRSH_NETWORK_ID_DEFAULT 0
+
 /**
  * @defgroup internal Array size for memory optimization
  * @ingroup config
  **/
 #define FRSH_MAX_N_UTILIZATION_VALUES         5
 
+/** Number of importance levels for spare capacity allocation **/
+#define FRSH_N_IMPORTANCE_LEVELS     5
 
 /**
  * Maximum number of synchronization objects
 /** Maximum number of shared objects **/
 #define FRSH_MAX_N_SHARED_OBJECTS             100
 
+/** Maximum number of send and receive endpoints in a single node **/
+#define FRSH_MAX_N_ENDPOINTS 10
+
+/** Maximum number of chars for a contract label **/
+#define FRSH_CONTRACT_LABEL_MAXLENGTH 15
+
 /*@}*/
 
 /**
  * thread, and it should be at least 1 level below the maximum of the
  *  system
  **/
-#define FRSH_SCHEDULER_PRIORITY               29   //104
+#define FRSH_SCHEDULER_PRIORITY       (fosa_get_priority_max() -  FOSA_ADS_SCHEDULER_PRIO_DIFF)
 
 /**
  * Real-time signal number reserved for the application scheduler to
 #define FRSH_SCHEDULER_SIGNAL                 FRSH_SIGNAL_MIN
 
 
+
 /**
  * The highest priority that can be assigned to an application thread,
  * it should be defined as one level less than the
  * The lowest priority that can be assigned to an application thread,
  * it should be at least 1 level above the minimum of the system
  **/
-#define FRSH_LOWEST_THREAD_PRIORITY           5
+#define FRSH_LOWEST_THREAD_PRIORITY    ( fosa_get_priority_min() + 4)
 
 /**
  * Each call to the functions that negotiate or renegotiate a contract
  * following symbol represents the maximum number of requests that can
  * be simultaneously queued.
  **/
-#define FRSH_MAX_N_SERVICE_JOBS  FRSH_MAX_N_VRES * 2
+#define FRSH_MAX_N_SERVICE_JOBS  (FRSH_MAX_N_VRES * 2)
 
 
 /**
  **/
 
 /** Initial period of the service thread (timespec) **/
-#define FRSH_SERVICE_THREAD_PERIOD  {1,0}
+#define FRSH_SERVICE_THREAD_PERIOD_USECS 5000000 /* 5 secs */
 
 /** Initial budget of the service thread (timespec) **/
-#define FRSH_SERVICE_THREAD_BUDGET  {0,1000000}
+#define FRSH_SERVICE_THREAD_BUDGET_USECS 1000 /* 1 msec */
 
 /**
  * Initial priority of the service thread, it has to be lower than the
  * The cpu time given by the round robin scheduler
  * to the threads in the background (timespec)
  **/
-#define FRSH_RR_SLICE_CPU_TIME               {0,100000000}  //3  0.1 sec
+#define FRSH_RR_SLICE_CPU_TIME_USECS 100000 // 0.1 sec
 
 /**
  * This function must be supplied by the user to map the preemption
@@ -338,5 +358,7 @@ int frsh_priority_map (unsigned long plevel);
 
 /*@}*/
 
+FRSH_CPP_END_DECLS
+
 #endif /* _FRSH_CONFIGURATION_PARAMETERS_H_ */