#include <unistd.h>
+FRSH_CPP_BEGIN_DECLS
+
/**
* @file frsh_configuration_parameters.h
*
#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 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
+
/*@}*/
/**
#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
**/
/** Initial period of the service thread (timespec) **/
-#define FRSH_SERVICE_THREAD_PERIOD {5,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
/*@}*/
+FRSH_CPP_END_DECLS
+
#endif /* _FRSH_CONFIGURATION_PARAMETERS_H_ */