mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 21:44:05 +08:00
maximum number of messages removed and include statement cleanup
This commit is contained in:
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:00:40 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
@@ -25,6 +24,6 @@
|
||||
|
||||
/* structures */
|
||||
|
||||
#include "gvar.h"
|
||||
#include <gvar.h>
|
||||
|
||||
/* end of include file */
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:01:00 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:01:22 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:01:40 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:02:00 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:02:18 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:02:38 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
#define EXTERN extern /* external definition */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:02:55 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1995/05/31 17:03:11 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -49,7 +49,8 @@ rtems_task Init(
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 1 ],
|
||||
3,
|
||||
RTEMS_GLOBAL|RTEMS_LIMIT,
|
||||
16,
|
||||
RTEMS_GLOBAL,
|
||||
&Queue_id[ 1 ]
|
||||
);
|
||||
directive_failed( status, "rtems_message_queue_create" );
|
||||
|
||||
@@ -10,6 +10,7 @@ Receiving message ...
|
||||
Received : abcdefghijklmno
|
||||
Receiving message ...
|
||||
Received : ABCDEFGHIJKLMNO
|
||||
Receiver delaying for a second
|
||||
rtems_message_queue_send: 123456789012345
|
||||
Delaying for a second
|
||||
rtems_message_queue_urgent: abcdefghijklmno
|
||||
|
||||
@@ -16,12 +16,12 @@ Receiving message ...
|
||||
Received : abcdefghijklmno
|
||||
Receiving message ...
|
||||
Received : ABCDEFGHIJKLMNO
|
||||
Receiver delaying for a second
|
||||
Flushing remote empty queue
|
||||
00 messages were flushed on the remote queue
|
||||
0 messages were flushed on the remote queue
|
||||
Send messages to be flushed from remote queue
|
||||
Flushing remote queue
|
||||
01 messages were flushed on the remote queue
|
||||
1 messages were flushed on the remote queue
|
||||
Waiting for message queue to be deleted
|
||||
|
||||
Global message queue deleted
|
||||
*** END OF TEST 9 ***
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* recvmsg.c,v 1.2 1995/05/31 17:03:14 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -24,6 +24,7 @@ void Receive_messages()
|
||||
{
|
||||
rtems_status_code status;
|
||||
rtems_unsigned32 index;
|
||||
rtems_unsigned32 size;
|
||||
char receive_buffer[16];
|
||||
|
||||
for ( index=1 ; index <=3 ; index++ ) {
|
||||
@@ -31,6 +32,7 @@ void Receive_messages()
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])receive_buffer,
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* sendmsg.c,v 1.2 1995/05/31 17:03:16 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -28,7 +28,7 @@ void Send_messages()
|
||||
puts_nocr( "rtems_message_queue_send: " );
|
||||
puts( buffer1 );
|
||||
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1 );
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1, 16 );
|
||||
directive_failed( status, "rtems_message_queue_send" );
|
||||
|
||||
puts( "Delaying for a second" );
|
||||
@@ -37,7 +37,7 @@ void Send_messages()
|
||||
|
||||
puts_nocr( "rtems_message_queue_urgent: " );
|
||||
puts( buffer2 );
|
||||
status = rtems_message_queue_urgent( Queue_id[ 1 ], (long (*)[4])buffer2 );
|
||||
status = rtems_message_queue_urgent( Queue_id[ 1 ], (long (*)[4])buffer2, 16 );
|
||||
directive_failed( status, "rtems_message_queue_urgent" );
|
||||
|
||||
puts( "Delaying for a second" );
|
||||
@@ -49,6 +49,7 @@ void Send_messages()
|
||||
status = rtems_message_queue_broadcast(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])buffer3,
|
||||
16,
|
||||
&broadcast_count
|
||||
);
|
||||
directive_failed( status, "rtems_message_queue_broadcast" );
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:03:17 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* task1.c,v 1.2 1995/05/31 17:03:19 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -32,6 +32,7 @@ rtems_task Test_task(
|
||||
{
|
||||
rtems_status_code status;
|
||||
rtems_unsigned32 count;
|
||||
rtems_unsigned32 size;
|
||||
char receive_buffer[16];
|
||||
|
||||
status = rtems_task_wake_after( TICKS_PER_SECOND );
|
||||
@@ -64,21 +65,22 @@ rtems_task Test_task(
|
||||
puts( "Flushing remote empty queue" );
|
||||
status = rtems_message_queue_flush( Queue_id[ 1 ], &count );
|
||||
directive_failed( status, "rtems_message_queue_flush" );
|
||||
printf( "%02d messages were flushed on the remote queue\n", count );
|
||||
printf( "%d messages were flushed on the remote queue\n", count );
|
||||
|
||||
puts( "Send messages to be flushed from remote queue" );
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1 );
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4])buffer1, 16 );
|
||||
directive_failed( status, "rtems_message_queue_send" );
|
||||
|
||||
puts( "Flushing remote queue" );
|
||||
status = rtems_message_queue_flush( Queue_id[ 1 ], &count );
|
||||
directive_failed( status, "rtems_message_queue_flush" );
|
||||
printf( "%02d messages were flushed on the remote queue\n", count );
|
||||
printf( "%d messages were flushed on the remote queue\n", count );
|
||||
|
||||
puts( "Waiting for message queue to be deleted" );
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])receive_buffer,
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1995/05/31 17:03:33 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -58,7 +58,8 @@ rtems_task Init(
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 1 ],
|
||||
3,
|
||||
RTEMS_GLOBAL|RTEMS_LIMIT,
|
||||
16,
|
||||
RTEMS_GLOBAL,
|
||||
&Queue_id[ 1 ]
|
||||
);
|
||||
directive_failed( status, "rtems_message_queue_create" );
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:03:35 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* task1.c,v 1.2 1995/05/31 17:03:37 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -26,6 +26,7 @@ rtems_task Test_task1(
|
||||
)
|
||||
{
|
||||
char receive_buffer[16];
|
||||
rtems_unsigned32 size;
|
||||
rtems_status_code status;
|
||||
|
||||
puts( "Getting QID of message queue" );
|
||||
@@ -42,6 +43,7 @@ rtems_task Test_task1(
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])receive_buffer,
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1995/05/31 17:03:55 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -69,7 +69,8 @@ rtems_task Init(
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 1 ],
|
||||
3,
|
||||
RTEMS_GLOBAL|RTEMS_LIMIT,
|
||||
16,
|
||||
RTEMS_GLOBAL,
|
||||
&junk_id
|
||||
);
|
||||
fatal_directive_status(
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:03:57 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:04:13 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1995/05/31 17:04:29 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -51,7 +51,8 @@ rtems_task Init(
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 1 ],
|
||||
3,
|
||||
RTEMS_GLOBAL|RTEMS_LIMIT,
|
||||
16,
|
||||
RTEMS_GLOBAL,
|
||||
&Queue_id[ 1 ]
|
||||
);
|
||||
directive_failed( status, "rtems_message_queue_create" );
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:04:31 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* task1.c,v 1.2 1995/05/31 17:04:33 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -27,6 +27,7 @@ rtems_task Test_task1(
|
||||
)
|
||||
{
|
||||
char receive_buffer[16];
|
||||
rtems_unsigned32 size;
|
||||
rtems_status_code status;
|
||||
|
||||
puts( "Getting QID of message queue" );
|
||||
@@ -44,6 +45,7 @@ rtems_task Test_task1(
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])receive_buffer,
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
@@ -58,6 +60,7 @@ rtems_task Test_task1(
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])receive_buffer,
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
2 * TICKS_PER_SECOND
|
||||
);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1995/05/31 17:04:55 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -102,6 +102,7 @@ rtems_task Init(
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 1 ],
|
||||
1,
|
||||
16,
|
||||
RTEMS_GLOBAL,
|
||||
&Queue_id[ 1 ]
|
||||
);
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* msgtask1.c,v 1.2 1995/05/31 17:04:58 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -32,6 +32,7 @@ rtems_task Message_queue_task(
|
||||
rtems_unsigned32 yield_count;
|
||||
rtems_unsigned32 *buffer_count;
|
||||
rtems_unsigned32 *overflow_count;
|
||||
rtems_unsigned32 size;
|
||||
|
||||
Msg_buffer[ index ][0] = 0;
|
||||
Msg_buffer[ index ][1] = 0;
|
||||
@@ -53,7 +54,8 @@ rtems_task Message_queue_task(
|
||||
if ( Multiprocessing_configuration.node == 1 ) {
|
||||
status = rtems_message_queue_send(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])Msg_buffer[ index ]
|
||||
(long (*)[4])Msg_buffer[ index ],
|
||||
16
|
||||
);
|
||||
directive_failed( status, "rtems_message_queue_send" );
|
||||
overflow_count = &Msg_buffer[ index ][0];
|
||||
@@ -70,6 +72,7 @@ rtems_task Message_queue_task(
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])Msg_buffer[ index ],
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
@@ -83,7 +86,8 @@ rtems_task Message_queue_task(
|
||||
|
||||
status = rtems_message_queue_send(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4])Msg_buffer[ index ]
|
||||
(long (*)[4])Msg_buffer[ index ],
|
||||
16
|
||||
);
|
||||
directive_failed( status, "rtems_message_queue_send" );
|
||||
|
||||
|
||||
@@ -11,12 +11,11 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:05:03 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include "mpci.h"
|
||||
#include <tmacros.h>
|
||||
#include <mpci.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -17,11 +17,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* apptask.c,v 1.2 1995/05/31 17:05:14 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
#include "libcsupport.h"
|
||||
|
||||
rtems_task Application_task(
|
||||
rtems_task_argument node
|
||||
|
||||
@@ -11,12 +11,13 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:05:21 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "stdio.h"
|
||||
#include "libcsupport.h"
|
||||
#include <bsp.h>
|
||||
#include <stdio.h>
|
||||
#include <libcsupport.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -16,11 +16,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* apptask.c,v 1.2 1995/05/31 17:05:28 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
#include "libcsupport.h"
|
||||
|
||||
rtems_task Application_task(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -11,11 +11,12 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:05:38 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "stdio.h"
|
||||
#include <bsp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1995/05/31 17:05:45 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -27,4 +27,3 @@
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
#include <stdio.h>
|
||||
#include "libcsupport.h"
|
||||
|
||||
@@ -11,11 +11,12 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:05:49 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "stdio.h"
|
||||
#include <bsp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1995/05/31 17:05:58 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -27,8 +27,6 @@
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
#include <stdio.h>
|
||||
#include "libcsupport.h"
|
||||
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument ignored
|
||||
|
||||
@@ -11,11 +11,13 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:06:00 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "stdio.h"
|
||||
#include <bsp.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* init.c,v 1.2 1995/05/31 17:06:07 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -26,7 +26,6 @@
|
||||
#define EXTERN
|
||||
#include "conftbl.h"
|
||||
#include "gvar.h"
|
||||
#include "libcsupport.h"
|
||||
|
||||
extern int paranoia(int, char **);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* RTEMS RCS Id: $Id$
|
||||
* RTEMS RCS Id: paranoia.c,v 1.2 1995/05/31 17:06:09 joel Exp
|
||||
*
|
||||
* A C version of Kahan's Floating Point Test "Paranoia"
|
||||
*
|
||||
@@ -161,7 +161,7 @@
|
||||
*/
|
||||
|
||||
#ifdef NEED_REENT
|
||||
#include "reent.h"
|
||||
#include <reent.h>
|
||||
struct _reent libm_reent = _REENT_INIT(libm_reent);
|
||||
struct _reent *_impure_ptr = &libm_reent;
|
||||
#endif
|
||||
|
||||
@@ -11,11 +11,12 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:06:13 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "stdio.h"
|
||||
#include <bsp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:06:23 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:06:37 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:06:54 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:07:10 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:07:24 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -16,11 +16,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* task1.c,v 1.2 1995/05/31 17:07:26 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
#include "clockdrv.h"
|
||||
|
||||
rtems_task Task_1(
|
||||
rtems_task_argument argument
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:07:40 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:07:56 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:08:12 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* constants */
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* system.h,v 1.2 1995/05/31 17:08:40 joel Exp
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include "tmacros.h"
|
||||
#include <tmacros.h>
|
||||
|
||||
/* Miscellaneous */
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* screen05.c,v 1.2 1995/05/31 17:08:59 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -49,12 +49,14 @@ void Screen5()
|
||||
directive_failed( status, "rtems_semaphore_create" );
|
||||
puts( "TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL" );
|
||||
|
||||
status = rtems_semaphore_create(
|
||||
Semaphore_name[ 3 ],
|
||||
1,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Junk_id
|
||||
);
|
||||
do {
|
||||
status = rtems_semaphore_create(
|
||||
Semaphore_name[ 3 ],
|
||||
1,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Junk_id);
|
||||
} while (status == RTEMS_SUCCESSFUL);
|
||||
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_TOO_MANY,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* to the copyright license under the clause at DFARS 252.227-7013. This
|
||||
* notice must appear in all copies of this file and its derivatives.
|
||||
*
|
||||
* $Id$
|
||||
* screen07.c,v 1.2 1995/05/31 17:09:03 joel Exp
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
@@ -22,10 +22,11 @@
|
||||
void Screen7()
|
||||
{
|
||||
long buffer[ 4 ];
|
||||
rtems_unsigned32 size;
|
||||
rtems_unsigned32 count;
|
||||
rtems_status_code status;
|
||||
|
||||
status = rtems_message_queue_broadcast( 100, (long (*)[4]) buffer, &count );
|
||||
status = rtems_message_queue_broadcast( 100, (long (*)[4]) buffer, 16, &count );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
@@ -36,6 +37,7 @@ void Screen7()
|
||||
status = rtems_message_queue_create(
|
||||
0,
|
||||
3,
|
||||
16,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Junk_id
|
||||
);
|
||||
@@ -49,6 +51,7 @@ void Screen7()
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 1 ],
|
||||
1,
|
||||
16,
|
||||
RTEMS_GLOBAL,
|
||||
&Junk_id
|
||||
);
|
||||
@@ -62,17 +65,19 @@ void Screen7()
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 1 ],
|
||||
2,
|
||||
RTEMS_LIMIT,
|
||||
16,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Queue_id[ 1 ]
|
||||
);
|
||||
directive_failed( status, "rtems_message_queue_create successful" );
|
||||
puts(
|
||||
"TA1 - rtems_message_queue_create - Q 1 - RTEMS_LIMIT - RTEMS_SUCCESSFUL"
|
||||
"TA1 - rtems_message_queue_create - Q 1 - 2 DEEP - RTEMS_SUCCESSFUL"
|
||||
);
|
||||
|
||||
status = rtems_message_queue_create(
|
||||
Queue_name[ 2 ],
|
||||
1,
|
||||
16,
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&Junk_id
|
||||
);
|
||||
@@ -118,6 +123,7 @@ void Screen7()
|
||||
status = rtems_message_queue_receive(
|
||||
100,
|
||||
(long (*)[4]) buffer,
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
0
|
||||
);
|
||||
@@ -131,6 +137,7 @@ void Screen7()
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4]) buffer,
|
||||
&size,
|
||||
RTEMS_NO_WAIT,
|
||||
RTEMS_NO_TIMEOUT
|
||||
);
|
||||
@@ -145,6 +152,7 @@ void Screen7()
|
||||
status = rtems_message_queue_receive(
|
||||
Queue_id[ 1 ],
|
||||
(long (*)[4]) buffer,
|
||||
&size,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
3 * TICKS_PER_SECOND
|
||||
);
|
||||
@@ -158,7 +166,7 @@ void Screen7()
|
||||
"TA1 - rtems_message_queue_receive - Q 1 - woke up with RTEMS_TIMEOUT"
|
||||
);
|
||||
|
||||
status = rtems_message_queue_send( 100, (long (*)[4]) buffer );
|
||||
status = rtems_message_queue_send( 100, (long (*)[4]) buffer, 16 );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ID,
|
||||
@@ -166,15 +174,15 @@ void Screen7()
|
||||
);
|
||||
puts( "TA1 - rtems_message_queue_send - RTEMS_INVALID_ID" );
|
||||
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer );
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer, 16 );
|
||||
directive_failed( status, "rtems_message_queue_send" );
|
||||
puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 1 - RTEMS_SUCCESSFUL" );
|
||||
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer );
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer, 16 );
|
||||
directive_failed( status, "rtems_message_queue_send" );
|
||||
puts( "TA1 - rtems_message_queue_send - BUFFER 2 TO Q 1 - RTEMS_SUCCESSFUL" );
|
||||
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer );
|
||||
status = rtems_message_queue_send( Queue_id[ 1 ], (long (*)[4]) buffer, 16 );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_TOO_MANY,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user