]> rtime.felk.cvut.cz Git - frescor/fosa.git/blobdiff - src_marte/tests/test_cpu_clocks/test_cpu_clocks.c
Migrating FOSA trunk to d-ac2v2. Phase 1 moving FRSH-FOSA to FOSA
[frescor/fosa.git] / src_marte / tests / test_cpu_clocks / test_cpu_clocks.c
index 9dbf63cd1117d58e03fcd2e0adb8d5d7da7395ee..2dfd6c5c08a2d0cf3d7f17109666573fae738eb5 100644 (file)
@@ -31,17 +31,17 @@ int main ()
 {
     int err = -1;
 
-    frsh_thread_attr_t attr;
-    frsh_thread_id_t tid;
+    fosa_thread_attr_t attr;
+    fosa_thread_id_t tid;
 
-    frsh_signal_t signal_received;
-    frsh_signal_info_t info_programmed, info_received;
+    fosa_signal_t signal_received;
+    fosa_signal_info_t info_programmed, info_received;
     struct timespec work_interval = {3, 200000000}; // 3.2 seconds
     fosa_clock_id_t clockid;
     fosa_timer_id_t timerid;
 
     struct timespec budget = {-1, -1};
-    frsh_signal_t signal_set[1];
+    fosa_signal_t signal_set[1];
 
 
 
@@ -67,7 +67,7 @@ int main ()
 
     /* Create the thread attributes and define its priority */
     /********************************************************/
-    if (frsh_thread_attr_init (&attr) != 0) {
+    if (fosa_thread_attr_init (&attr) != 0) {
         printf("Error while initializing the attributes\n");
         exit(1);
     }
@@ -110,7 +110,7 @@ int main ()
     /* and real time differ                                  */
     /*********************************************************/
     printf("Main works for some time...\n");
-    frsh_eat(&work_interval);
+    fosa_eat(&work_interval);
 
     /* Now we do the wait in order to allow the thread to run */
     /**********************************************************/
@@ -149,7 +149,7 @@ static void * thread_body(void *thread_arg)
         printf("Start periodic work  at %d, %d\n", 
                before_work_time.tv_sec, before_work_time.tv_nsec);
 
-        frsh_eat(&work_interval);
+        fosa_eat(&work_interval);
 
         err = fosa_clock_get_time(FOSA_CLOCK_REALTIME, &after_work_time);
         assert(err == 0);