migrate posix xenomai example to Xenomai3 stable-1.5
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Mon, 10 Sep 2018 22:40:27 +0200
branchstable-1.5
changeset 2705 c6e3c6d66af0
parent 2704 a1bb4998a953
child 2706 43f8e40a183d
migrate posix xenomai example to Xenomai3
examples/xenomai_posix/main.c
--- a/examples/xenomai_posix/main.c	Mon Jul 30 11:58:02 2018 +0200
+++ b/examples/xenomai_posix/main.c	Mon Sep 10 22:40:27 2018 +0200
@@ -40,9 +40,6 @@
 #include <sys/mman.h>
 #include <time.h>
 
-#include <rtdm/rtdm.h>
-#include <rtdk.h>
-
 #include "ecrt.h"
 
 #define NSEC_PER_SEC 1000000000
@@ -124,11 +121,11 @@
 	ecrt_domain_state(domain1, &ds);
 
     if (ds.working_counter != domain1_state.working_counter) {
-        rt_printf("Domain1: WC %u.\n", ds.working_counter);
+        printf("Domain1: WC %u.\n", ds.working_counter);
     }
 
     if (ds.wc_state != domain1_state.wc_state) {
-        rt_printf("Domain1: State %u.\n", ds.wc_state);
+        printf("Domain1: State %u.\n", ds.wc_state);
     }
 
     domain1_state = ds;
@@ -143,15 +140,15 @@
 	ecrt_master_state(master, &ms);
 
     if (ms.slaves_responding != master_state.slaves_responding) {
-        rt_printf("%u slave(s).\n", ms.slaves_responding);
+        printf("%u slave(s).\n", ms.slaves_responding);
     }
 
     if (ms.al_states != master_state.al_states) {
-        rt_printf("AL states: 0x%02X.\n", ms.al_states);
+        printf("AL states: 0x%02X.\n", ms.al_states);
     }
 
     if (ms.link_up != master_state.link_up) {
-        rt_printf("Link is %s.\n", ms.link_up ? "up" : "down");
+        printf("Link is %s.\n", ms.link_up ? "up" : "down");
     }
 
     master_state = ms;