Made stopping for the pause an option which can be configured in the

targopts.h file.
This commit is contained in:
Joel Sherrill
1997-01-29 00:31:56 +00:00
parent 551cb1c66c
commit 2a3d1fd2cb
2 changed files with 24 additions and 0 deletions

View File

@@ -69,6 +69,17 @@ extern "C" {
#define puts_nocr printf
#ifdef RTEMS_TEST_NO_PAUSE
#define rtems_test_pause() \
do { \
printf( "<pause>\n" ); fflush( stdout ); \
} while ( 0 )
#define rtems_test_pause_and_screen_number( _screen ) \
do { \
printf( "<pause - screen %d>\n", (_screen) ); fflush( stdout ); \
} while ( 0 )
#else
#define rtems_test_pause() \
do { \
char buffer[ 80 ]; \
@@ -84,6 +95,7 @@ extern "C" {
gets( buffer ); \
puts( "" ); \
} while ( 0 )
#endif
#define put_name( name, crlf ) \
{ rtems_unsigned32 c0, c1, c2, c3; \

View File

@@ -69,6 +69,17 @@ extern "C" {
#define puts_nocr printf
#ifdef RTEMS_TEST_NO_PAUSE
#define rtems_test_pause() \
do { \
printf( "<pause>\n" ); fflush( stdout ); \
} while ( 0 )
#define rtems_test_pause_and_screen_number( _screen ) \
do { \
printf( "<pause - screen %d>\n", (_screen) ); fflush( stdout ); \
} while ( 0 )
#else
#define rtems_test_pause() \
do { \
char buffer[ 80 ]; \
@@ -84,6 +95,7 @@ extern "C" {
gets( buffer ); \
puts( "" ); \
} while ( 0 )
#endif
#define put_name( name, crlf ) \
{ rtems_unsigned32 c0, c1, c2, c3; \