diff --git a/air/examples/gcov5/config.xml b/air/examples/gcov5/config.xml index 3fbfa738a0b262d39ef73ed476b973a39fe28f3d..85653244e8656b82c91b744b0ad829768ee70b5a 100755 --- a/air/examples/gcov5/config.xml +++ b/air/examples/gcov5/config.xml @@ -4,7 +4,7 @@ - + LIBAIR; LIBPRINTF CODE; DATA diff --git a/air/examples/periodic/config.xml b/air/examples/periodic/config.xml index e7fce56a97f3e625151b5f7170f4cbf2929ea847..c91f91f33f0058887249c5c230e0847720fd6e21 100644 --- a/air/examples/periodic/config.xml +++ b/air/examples/periodic/config.xml @@ -4,7 +4,7 @@ - + LIBAIR;IMASPEX;LIBPRINTF CODE; DATA diff --git a/air/examples/periodic/p0/p0main.c b/air/examples/periodic/p0/p0main.c index 1f4019cdedc2e4a4d3b8bbd70c2a68d4b25a7374..35517e45ef6f75d67525e5210085c5f862a5b507 100755 --- a/air/examples/periodic/p0/p0main.c +++ b/air/examples/periodic/p0/p0main.c @@ -67,7 +67,6 @@ void test2(uintptr_t self_id) { }*/ } - int producer() { RETURN_CODE_TYPE rc; @@ -93,5 +92,3 @@ int producer() { return RTEMS_SUCCESSFUL; } - - diff --git a/air/examples/ports/config.xml b/air/examples/ports/config.xml index be704b017c84697d775c1cd5859daa1c3e1ea800..17f6caaa81ff28d17afaa07cd0fb33331303e5a9 100644 --- a/air/examples/ports/config.xml +++ b/air/examples/ports/config.xml @@ -8,7 +8,7 @@ Direction="SOURCE" MaxMessageSize="1024" RefreshRateSeconds="1.5"/> - + LIBAIR; IMASPEX; LIBPRINTF CODE; DATA @@ -24,7 +24,7 @@ Criticality="LEVEL_A" EntryPoint="entry_func" SystemPartition="false"> - + LIBAIR; IMASPEX; LIBPRINTF CODE; DATA @@ -42,7 +42,7 @@ Direction="DESTINATION" MaxMessageSize="1024" RefreshRateSeconds="1.5"/> - + LIBAIR; IMASPEX; LIBPRINTF CODE; DATA diff --git a/air/examples/ports/recv/recv.c b/air/examples/ports/recv/recv.c index 2820a8664a16d1868771fc4abf6b5a48b2a1cb09..a1a00a2cedd49530f4030ec4e67defa0a7f898f7 100755 --- a/air/examples/ports/recv/recv.c +++ b/air/examples/ports/recv/recv.c @@ -16,7 +16,7 @@ #include #ifdef RTEMS48I - #include + #include #endif @@ -46,24 +46,24 @@ void test(PARTITION_ID_TYPE self_id) { while(1) { - pprintf ("Partition %d receiving message..\n", self_id); + printf ("Partition %d receiving message..\n", self_id); /*if (TIME_STAMP > REF_TIME_STAMP), receive from sampling port*/ READ_SAMPLING_MESSAGE_CONDITIONAL(RECV_PORT, REF_TIME_STAMP, (MESSAGE_ADDR_TYPE)message, &SIZE, &TIME_STAMP, &rc); if(INVALID_PARAM == rc) { - pprintf("READ_SAMPLING_MESSAGE_CONDITIONAL error %d\n", rc); + printf("READ_SAMPLING_MESSAGE_CONDITIONAL error %d\n", rc); } else if((NO_ACTION == rc) && (0 == TIME_STAMP) && (0 == SIZE)) { - pprintf("Empty Sampling Port\n"); + printf("Empty Sampling Port\n"); } else if((TIME_STAMP <= REF_TIME_STAMP) && (NO_ACTION == rc) && (0 == SIZE)) { - pprintf("Timestamp not yet reached\n"); + printf("Timestamp not yet reached\n"); } else if(TIME_STAMP > REF_TIME_STAMP) { - pprintf("Message: %s, timestamp=%ldms\n", message, (long int)(TIME_STAMP/1000000) ); + printf("Message: %s, timestamp=%ldms\n", message, (long int)(TIME_STAMP/1000000) ); } else { - pprintf("Unexpected READ_SAMPLING_MESSAGE_CONDITIONAL behavior\n"); + printf("Unexpected READ_SAMPLING_MESSAGE_CONDITIONAL behavior\n"); } @@ -90,10 +90,10 @@ int entry_func() { /*Getting my own ID*/ GET_PARTITION_ID(&self_id, &rc); if(NO_ERROR != rc) { - pprintf("GET_PARTITION_ID error %d\n", rc); + printf("GET_PARTITION_ID error %d\n", rc); } - pprintf("Initializing partition %d...\n", self_id); + printf("Initializing partition %d...\n", self_id); /*creating Destination sampling Port*/ SAMPLING_PORT_NAME_TYPE NAME = "RECV_SAMP"; @@ -103,7 +103,7 @@ int entry_func() { CREATE_SAMPLING_PORT (NAME, SIZE, DESTINATION, PERIOD, &RECV_PORT, &rc); if (NO_ERROR != rc) { - pprintf("CREATE_SAMPLING_PORT error %d\n", rc); + printf("CREATE_SAMPLING_PORT error %d\n", rc); } @@ -114,7 +114,7 @@ int entry_func() { SET_PARTITION_MODE(NORMAL, &rc); if (NO_ERROR != rc) { - pprintf("SET_PARTITION_MODE error %d\n", rc); + printf("SET_PARTITION_MODE error %d\n", rc); } return RTEMS_SUCCESSFUL; diff --git a/air/examples/ports/recv2/recv2.c b/air/examples/ports/recv2/recv2.c index f029b36a5933b78e4173677c153d5549c51ad29e..24086417aad85109fff4559e1ed7d97826126ed9 100755 --- a/air/examples/ports/recv2/recv2.c +++ b/air/examples/ports/recv2/recv2.c @@ -16,7 +16,7 @@ #include #ifdef RTEMS48I - #include + #include #endif @@ -59,12 +59,12 @@ void test(uintptr_t self_id) { while(1) { - pprintf ("Partition %d receiving message..\n", self_id); + printf ("Partition %d receiving message..\n", self_id); GET_SAMPLING_PORT_CURRENT_STATUS(RECV_PORT2, &STATUS, &rc); if(NO_ERROR != rc) { - pprintf("GET_SAMPLING_PORT_CURRENT_STATUS error %d\n", rc); + printf("GET_SAMPLING_PORT_CURRENT_STATUS error %d\n", rc); } switch (STATUS.UPDATED) { @@ -72,45 +72,45 @@ void test(uintptr_t self_id) { case NEW_MESSAGE: READ_UPDATED_SAMPLING_MESSAGE(RECV_PORT2, (MESSAGE_ADDR_TYPE)message, &SIZE, &UPDATED, &rc); if(NO_ERROR != rc) { - pprintf("READ_UPDATED_SAMPLING_MESSAGE error %d\n", rc); + printf("READ_UPDATED_SAMPLING_MESSAGE error %d\n", rc); } - pprintf("NEW_MSG: %s\n", message); + printf("NEW_MSG: %s\n", message); break; case CONSUMED_MESSAGE: READ_SAMPLING_MESSAGE(RECV_PORT2, (MESSAGE_ADDR_TYPE)message, &SIZE, &VALIDITY, &rc); if(NO_ERROR != rc) { - pprintf("READ_SAMPLING_MESSAGE error %d\n", rc); + printf("READ_SAMPLING_MESSAGE error %d\n", rc); } switch (VALIDITY) { case INVALID: - pprintf("INVALID: %s\n", message); + printf("INVALID: %s\n", message); break; case VALID: - pprintf("VALID: %s\n", message); + printf("VALID: %s\n", message); break; } break; case EMPTY_PORT: message[0]='\0'; - pprintf("Empty sampling port\n"); + printf("Empty sampling port\n"); break; default: - pprintf("Error in STATUS.UPDATED value\n"); + printf("Error in STATUS.UPDATED value\n"); break; } RECEIVE_QUEUING_MESSAGE(qpid, INFINITE_TIME_VALUE, message, &len, &rc ); if (rc == NO_ERROR) { - pprintf ("Received Partition Queue message %d: %s\n", self_id, message); + printf ("Received Partition Queue message %d: %s\n", self_id, message); } else { - pprintf("Error in Receiving Queue Message - %d\n", rc); + printf("Error in Receiving Queue Message - %d\n", rc); } rtems_task_wake_after(0.6*TPS); } @@ -131,10 +131,10 @@ int entry_func() { GET_PARTITION_ID(&self_id, &rc); if (NO_ERROR != rc) { - pprintf("GET_PARTITION_ID error %d\n", rc); + printf("GET_PARTITION_ID error %d\n", rc); } - pprintf("Initializing partition %d...\n", self_id); + printf("Initializing partition %d...\n", self_id); /*creating Destination sampling Port*/ SAMPLING_PORT_NAME_TYPE NAME = "RECV_SAMP2"; @@ -144,12 +144,12 @@ int entry_func() { CREATE_SAMPLING_PORT (NAME, SIZE, DESTINATION, PERIOD, &RECV_PORT2, &rc); if (NO_ERROR != rc) { - pprintf("CREATE_SAMPLING_PORT error %d\n", rc); + printf("CREATE_SAMPLING_PORT error %d\n", rc); } CREATE_QUEUING_PORT("QSAMPLE", 1024, 32, DESTINATION, FIFO, &qpid, &rc ); if(NO_ERROR != rc){ - pprintf("CREATE_QUEUING_PORT error %d\n", rc); + printf("CREATE_QUEUING_PORT error %d\n", rc); } if (RTEMS_SUCCESSFUL == rtems_task_create (name, 15, 4096, mode, mode_mask, &id)) { @@ -158,7 +158,7 @@ int entry_func() { SET_PARTITION_MODE(NORMAL, &rc); if (NO_ERROR != rc) { - pprintf("SET_PARTITION_MODE error %d\n", rc); + printf("SET_PARTITION_MODE error %d\n", rc); } return RTEMS_SUCCESSFUL; diff --git a/air/examples/ports/send/send.c b/air/examples/ports/send/send.c index c3ef02601f6dcad70b0257e88f72ee7f0f9ee164..5b87df7e7047e1f6d093528f0ae067a3fa38aa4a 100755 --- a/air/examples/ports/send/send.c +++ b/air/examples/ports/send/send.c @@ -16,7 +16,7 @@ #include #ifdef RTEMS48I - #include + #include #endif @@ -40,10 +40,10 @@ void test(uintptr_t self_id) { RETURN_CODE_TYPE rc; while(1) { - pprintf ("Partition %d sending: %s..\n", self_id, message); + printf ("Partition %d sending: %s..\n", self_id, message); WRITE_SAMPLING_MESSAGE (SEND_PORT, (MESSAGE_ADDR_TYPE )message, 16, &rc ); if (NO_ERROR != rc) { - pprintf("WRITE_SAMPLING_MESSAGE error %d\n", rc); + printf("WRITE_SAMPLING_MESSAGE error %d\n", rc); } /*identify the string with an integer index*/ @@ -53,10 +53,10 @@ void test(uintptr_t self_id) { } message[15] = 0x30 + i; - pprintf ("Partition %d sending queuing: %s..\n", self_id, message); + printf ("Partition %d sending queuing: %s..\n", self_id, message); SEND_QUEUING_MESSAGE(qpid, (MESSAGE_ADDR_TYPE )message, 16, INFINITE_TIME_VALUE, &rc ); if (rc != NO_ERROR) { - pprintf ("SEND_QUEUING_MESSAGE error %d\n", rc); + printf ("SEND_QUEUING_MESSAGE error %d\n", rc); } /*identify the string with an integer index*/ @@ -88,10 +88,10 @@ int entry_func() { /*Getting my own partition id*/ GET_PARTITION_ID(&self_id, &rc); if(NO_ERROR != rc) { - pprintf("GET_PARTITION_ID error %d\n", rc); + printf("GET_PARTITION_ID error %d\n", rc); } - pprintf("Initializing partition %d...\n", self_id); + printf("Initializing partition %d...\n", self_id); /*Creating Source sampling Port*/ @@ -101,13 +101,13 @@ int entry_func() { CREATE_SAMPLING_PORT (NAME, SIZE, SOURCE, PERIOD, &SEND_PORT, &rc); if (NO_ERROR != rc) { - pprintf("CREATE_SAMPLING_PORT error %d\n", rc); + printf("CREATE_SAMPLING_PORT error %d\n", rc); } /* Creating Queueing port */ CREATE_QUEUING_PORT("QSAMPLE", 1024, 32, SOURCE, FIFO, &qpid, &rc ); if(NO_ERROR != rc){ - pprintf("CREATE_QUEUING_PORT error %d\n", rc); + printf("CREATE_QUEUING_PORT error %d\n", rc); } @@ -117,7 +117,7 @@ int entry_func() { SET_PARTITION_MODE(NORMAL, &rc); if (NO_ERROR != rc) { - pprintf("SET_PARTITION_MODE error %d\n", rc); + printf("SET_PARTITION_MODE error %d\n", rc); } return RTEMS_SUCCESSFUL;