mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-21 04:14:26 +08:00
Made stopping for the pause an option which can be configured in the
targopts.h file.
This commit is contained in:
@@ -69,6 +69,17 @@ extern "C" {
|
|||||||
|
|
||||||
#define puts_nocr printf
|
#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() \
|
#define rtems_test_pause() \
|
||||||
do { \
|
do { \
|
||||||
char buffer[ 80 ]; \
|
char buffer[ 80 ]; \
|
||||||
@@ -84,6 +95,7 @@ extern "C" {
|
|||||||
gets( buffer ); \
|
gets( buffer ); \
|
||||||
puts( "" ); \
|
puts( "" ); \
|
||||||
} while ( 0 )
|
} while ( 0 )
|
||||||
|
#endif
|
||||||
|
|
||||||
#define put_name( name, crlf ) \
|
#define put_name( name, crlf ) \
|
||||||
{ rtems_unsigned32 c0, c1, c2, c3; \
|
{ rtems_unsigned32 c0, c1, c2, c3; \
|
||||||
|
|||||||
@@ -69,6 +69,17 @@ extern "C" {
|
|||||||
|
|
||||||
#define puts_nocr printf
|
#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() \
|
#define rtems_test_pause() \
|
||||||
do { \
|
do { \
|
||||||
char buffer[ 80 ]; \
|
char buffer[ 80 ]; \
|
||||||
@@ -84,6 +95,7 @@ extern "C" {
|
|||||||
gets( buffer ); \
|
gets( buffer ); \
|
||||||
puts( "" ); \
|
puts( "" ); \
|
||||||
} while ( 0 )
|
} while ( 0 )
|
||||||
|
#endif
|
||||||
|
|
||||||
#define put_name( name, crlf ) \
|
#define put_name( name, crlf ) \
|
||||||
{ rtems_unsigned32 c0, c1, c2, c3; \
|
{ rtems_unsigned32 c0, c1, c2, c3; \
|
||||||
|
|||||||
Reference in New Issue
Block a user