]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_configuration_parameters.h
Uploading protected shared objects functionality
[frescor/frsh-include.git] / frsh_configuration_parameters.h
index 2ab8eaa8357214a175d16c9baaca4456c1153b79..3348397fa042211e8b3955c754bd19cce5efe885 100644 (file)
  **/
 #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 1
+#define FRSH_NETWORK_ID_DEFAULT 0
+
 /**
  * @defgroup internal Array size for memory optimization
  * @ingroup config
 /** 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
+
 /*@}*/
 
 /**
  * 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           3
+#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  {0,10000000}  //    0.01 seg
-                                // {0,100000000}  //0.1 seg
-                                // {0,10000000}   //3.1 0.01
+#define FRSH_SERVICE_THREAD_PERIOD  {5,0}
 
 /** Initial budget of the service thread (timespec) **/
-#define FRSH_SERVICE_THREAD_BUDGET  {0,1000000}   //     0.001 seg
-                                // {0,10000000}   //0.01 seg
-                                // {0,1000000}    //3.1 0.001
-
+#define FRSH_SERVICE_THREAD_BUDGET  {0,1000000}
 
 /**
  * Initial priority of the service thread, it has to be lower than the