]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_hierarchical_types.h
const
[frescor/frsh-include.git] / frsh_hierarchical_types.h
index 46ef2eaf6e2b0a1b293efd9c7d0c04a238380345..8eaa53bd47522c5cf1bd838509954ba0367e3348 100644 (file)
 // -----------------------------------------------------------------------
 
 //==============================================
-//  ******** *******    ******** **      **
-//  **///// /**////**  **////// /**     /**
-//  **      /**   /** /**       /**     /**
-//  ******* /*******  /*********/**********
-//  **////  /**///**  ////////**/**//////**
-//  **      /**  //**        /**/**     /**
-//  **      /**   //** ******** /**     /**
-//  //       //     // ////////  //      // 
+//  ******** *******    ********  **      **
+//  **///// /**////**  **//////  /**     /**
+//  **      /**   /** /**        /**     /**
+//  ******* /*******  /********* /**********
+//  **////  /**///**  ////////** /**//////**
+//  **      /**  //**        /** /**     /**
+//  **      /**   //** ********  /**     /**
+//  //       //     // ////////   //      // 
 //
 // FRSH(FRescor ScHeduler), pronounced "fresh"
 //==============================================
 #ifndef        FRSH_HIERARCHICAL_TYPES_H_
 #define        FRSH_HIERARCHICAL_TYPES_H_
 
+/**
+ * @file frsh_hierarchical_types.h
+ **/
+
 #include <time.h>
 
+FRSH_CPP_BEGIN_DECLS
+
 /**
  * @addtogroup hierarchical
  *
@@ -91,7 +97,7 @@ typedef enum {FRSH_FP, FRSH_EDF, FRSH_TABLE_DRIVEN, FRSH_RR, FRSH_NONE}
  * The params member is a pointer to one of the 
  * following:
  *    FP:  int (priority)
- *    EDF: struct timespec (deadline)
+ *    EDF: frsh_rel_time_t (deadline)
  *    RR:  none
  *    TABLE_DRIVEN : struct frsh_table_driven_params_t
  **/
@@ -106,17 +112,17 @@ typedef struct {
  * list of target windows 
  **/
 typedef struct {
-   struct timespec   start;
-   struct timespec   end;
-   struct timespec   comp_time;
-} frsh_target_window;
+   frsh_rel_time_t   start;
+   frsh_rel_time_t   end;
+   frsh_rel_time_t   comp_time;
+} frsh_target_window_t;
 
 /**
  * Container for a frsh_target_window array
  **/
 typedef struct {
   int size;
-  frsh_target_window  table[FRSH_MAX_N_TARGET_WINDOWS];
+  frsh_target_window_t  table[FRSH_MAX_N_TARGET_WINDOWS];
 } frsh_table_driven_params_t;
 
 
@@ -126,11 +132,13 @@ typedef struct {
  * It shall be one of the following:
  *    FP:  none
  *    EDF: none
- *    RR: struct timespec (slice duration)
- *    TABLE_DRIVEN : struct timespec (schedule duration)
+ *    RR: frsh_rel_time_t (slice duration)
+ *    TABLE_DRIVEN : frsh_rel_time_t (schedule duration)
  **/
 typedef void * frsh_sched_init_info_t;
 
 /*}*/
 
+FRSH_CPP_END_DECLS
+
 #endif             /* !FRSH_HIERARCHICAL_TYPES_H_ */