Changeset 3a4ae6c in rtems for c/src/tests/samples
- Timestamp:
- 09/11/95 19:35:39 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ced11f99
- Parents:
- 5072b07
- Location:
- c/src/tests/samples
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/samples/base_mp/init.c
r5072b07 r3a4ae6c 22 22 */ 23 23 24 #define TEST_INIT 24 25 #include "system.h" 25 #undef EXTERN26 #define EXTERN27 #include "shm.h"28 #include "conftbl.h"29 #include "gvar.h"30 26 31 27 rtems_task Init( … … 42 38 status = rtems_task_create( task_name, 1, 1024, 43 39 RTEMS_INTERRUPT_LEVEL(0), RTEMS_DEFAULT_ATTRIBUTES, &tid ); 44 status = rtems_task_start( tid, Application_task, Mp_conf_addr.node ); 40 status = rtems_task_start( 41 tid, 42 Application_task, 43 Multiprocessing_configuration.node 44 ); 45 45 status = rtems_task_delete( RTEMS_SELF ); 46 46 } -
c/src/tests/samples/base_mp/system.h
r5072b07 r3a4ae6c 15 15 */ 16 16 17 #include <rtems.h> 18 #include <bsp.h> 19 #include <stdio.h> 20 #include <libcsupport.h> 17 #include <tmacros.h> 21 18 22 /* Miscellaneous */19 /* functions */ 23 20 24 #define EXTERN extern /* external definition */ 21 rtems_task Init( 22 rtems_task_argument argument 23 ); 25 24 26 /* macros */ 25 rtems_task Application_task( 26 rtems_task_argument argument 27 ); 27 28 28 /* structures */ 29 /* configuration information */ 30 31 #define CONFIGURE_MPTEST 32 33 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER 34 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER 35 36 /* 37 * Put the overrides of default configuration parameters here. 38 */ 29 39 30 #include "gvar.h"40 #include <confdefs.h> 31 41 42 /* variables */ 43 44 TEST_EXTERN rtems_id Global_variable; /* example global variable */ 45 32 46 /* end of include file */ -
c/src/tests/samples/base_sp/init.c
r5072b07 r3a4ae6c 22 22 */ 23 23 24 #define TEST_INIT 24 25 #include "system.h" 25 #undef EXTERN26 #define EXTERN27 #include "conftbl.h"28 #include "gvar.h"29 26 30 27 #define ARGUMENT 0 -
c/src/tests/samples/base_sp/system.h
r5072b07 r3a4ae6c 12 12 * notice must appear in all copies of this file and its derivatives. 13 13 * 14 * system.h,v 1.2 1995/05/31 17:05:38 joel Exp14 * $Id$ 15 15 */ 16 16 17 #include <rtems.h> 18 #include <bsp.h> 19 #include <stdio.h> 17 #include <tmacros.h> 20 18 21 /* Miscellaneous */19 /* functions */ 22 20 23 #define EXTERN extern /* external definition */ 21 rtems_task Init( 22 rtems_task_argument argument 23 ); 24 24 25 /* macros */ 25 rtems_task Application_task( 26 rtems_task_argument argument 27 ); 26 28 27 /* structures*/29 /* configuration information */ 28 30 29 #include "gvar.h" 31 #define CONFIGURE_SPTEST 32 33 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER 34 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER 35 36 #include <confdefs.h> 37 38 /* global variables */ 39 40 TEST_EXTERN rtems_id Global_variable; /* example global variable */ 30 41 31 42 /* end of include file */ -
c/src/tests/samples/cdtest/init.c
r5072b07 r3a4ae6c 22 22 */ 23 23 24 #define TEST_INIT 24 25 #include "system.h" 25 #undef EXTERN26 #define EXTERN27 #include "conftbl.h"28 #include "gvar.h"29 26 #include <stdio.h> -
c/src/tests/samples/cdtest/system.h
r5072b07 r3a4ae6c 15 15 */ 16 16 17 #include <rtems.h> 18 #include <bsp.h> 19 #include <stdio.h> 17 #include <tmacros.h> 20 18 21 /* Miscellaneous */19 /* functions */ 22 20 23 #define EXTERN extern /* external definition */ 21 rtems_task main_task( 22 rtems_task_argument argument 23 ); 24 24 25 /* macros*/25 /* configuration information */ 26 26 27 /* structures */ 27 #define CONFIGURE_SPTEST 28 28 29 #include "gvar.h" 29 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER 30 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER 30 31 32 #define CONFIGURE_INIT_TASK_ENTRY_POINT main_task 33 #define CONFIGURE_INIT_TASK_NAME rtems_build_name( 'C', 'T', 'O', 'R' ) 34 35 #include <confdefs.h> 36 37 /* global variables */ 38 39 TEST_EXTERN rtems_id Global_variable; /* example global variable */ 40 31 41 /* end of include file */ -
c/src/tests/samples/hello/init.c
r5072b07 r3a4ae6c 22 22 */ 23 23 24 #define TEST_INIT 24 25 #include "system.h" 25 #undef EXTERN26 #define EXTERN27 #include "conftbl.h"28 #include "gvar.h"29 26 #include <stdio.h> 30 27 -
c/src/tests/samples/hello/system.h
r5072b07 r3a4ae6c 15 15 */ 16 16 17 #include <rtems.h> 18 #include <bsp.h> 17 #include <tmacros.h> 19 18 20 #include <stdio.h> 19 /* functions */ 21 20 22 /* Miscellaneous */ 21 rtems_task Init( 22 rtems_task_argument argument 23 ); 23 24 24 #define EXTERN extern /* external definition */25 /* configuration information */ 25 26 26 /* macros */ 27 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER 27 28 28 /* structures */ 29 #include <confdefs.h> 29 30 30 #include "gvar.h" 31 /* global variables */ 32 33 TEST_EXTERN rtems_id Global_variable; /* example global variable */ 31 34 32 35 /* end of include file */ -
c/src/tests/samples/paranoia/init.c
r5072b07 r3a4ae6c 22 22 */ 23 23 24 #define TEST_INIT 24 25 #include "system.h" 25 #undef EXTERN26 #define EXTERN27 #include "conftbl.h"28 #include "gvar.h"29 26 30 27 extern int paranoia(int, char **); -
c/src/tests/samples/paranoia/system.h
r5072b07 r3a4ae6c 15 15 */ 16 16 17 #include <rtems.h> 18 #include <bsp.h> 19 #include <stdio.h> 17 #include <tmacros.h> 20 18 21 /* Miscellaneous */19 /* functions */ 22 20 23 #define EXTERN extern /* external definition */ 21 rtems_task Init( 22 rtems_task_argument argument 23 ); 24 24 25 /* macros*/25 /* configuration information */ 26 26 27 /* structures */ 27 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER 28 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER 28 29 29 #include "gvar.h" 30 #include <confdefs.h> 31 32 /* global variables */ 33 34 TEST_EXTERN rtems_id Global_variable; /* example global variable */ 30 35 31 36 /* end of include file */ -
c/src/tests/samples/ticker/init.c
r5072b07 r3a4ae6c 22 22 */ 23 23 24 #define TEST_INIT 24 25 #include "system.h" 25 #undef EXTERN26 #define EXTERN27 #include "conftbl.h"28 #include "gvar.h"29 26 30 27 rtems_task Init( -
c/src/tests/samples/ticker/system.h
r5072b07 r3a4ae6c 17 17 #include <tmacros.h> 18 18 19 /* Miscellaneous */19 /* functions */ 20 20 21 #define EXTERN extern /* external definition */ 21 rtems_task Init( 22 rtems_task_argument argument 23 ); 22 24 23 /* macros */ 25 rtems_task Test_task( 26 rtems_task_argument argument 27 ); 24 28 25 /* structures*/29 /* configuration information */ 26 30 27 #include "gvar.h" 31 #define CONFIGURE_SPTEST 32 33 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER 34 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER 35 36 #include <confdefs.h> 37 38 /* global variables */ 39 40 TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */ 41 TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */ 28 42 29 43 /* end of include file */
Note: See TracChangeset
for help on using the changeset viewer.