source: rtems/testsuites/sptests/spsimplesched03/init.c @ 5bbc204

4.115
Last change on this file since 5bbc204 was 5bbc204, checked in by Joel Sherrill <joel.sherrill@…>, on 03/16/11 at 16:33:04

2011-03-16 Jennifer Averett <jennifer.averett@…>

PR 1743/cpu

  • Makefile.am, configure.ac, spsize/size.c: Add Simple Priority Scheduler as complement to existing Deterministic Priority Scheduler. This scheduler serves both as an example and as a lighter weight implementation for smaller systems.
  • spsimplesched01/.cvsignore, spsimplesched01/Makefile.am, spsimplesched01/init.c, spsimplesched01/spsimplesched01.doc, spsimplesched01/spsimplesched01.scn, spsimplesched02/.cvsignore, spsimplesched02/Makefile.am, spsimplesched02/init.c, spsimplesched02/spsimplesched02.doc, spsimplesched02/spsimplesched02.scn, spsimplesched03/.cvsignore, spsimplesched03/Makefile.am, spsimplesched03/init.c, spsimplesched03/spsimplesched03.doc, spsimplesched03/spsimplesched03.scn: New files.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  COPYRIGHT (c) 2011.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <tmacros.h>
17
18rtems_task Init(
19  rtems_task_argument argument
20)
21{
22  rtems_status_code   status;
23
24  puts( "\n\n*** SIMPLE SCHEDULER 03 TEST ***" );
25
26  puts( "INIT - rtems timer initiate server");
27  status = rtems_timer_initiate_server(
28    RTEMS_TIMER_SERVER_DEFAULT_PRIORITY,
29    RTEMS_MINIMUM_STACK_SIZE,
30    RTEMS_DEFAULT_ATTRIBUTES
31  );
32  directive_failed( status, "Timer Initiate Server" );
33
34  /*  End the Test */
35  puts( "*** END OF SIMPLE SCHEDULER 03 TEST ***" );
36  rtems_test_exit(0);
37}
38
39/* configuration information */
40#define CONFIGURE_SCHEDULER_SIMPLE
41#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
42#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
43
44#define CONFIGURE_MAXIMUM_TASKS             2
45#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
46#define CONFIGURE_INIT_TASK_PRIORITY        2
47
48#define CONFIGURE_INIT
49#include <rtems/confdefs.h>
50/* end of include file */
Note: See TracBrowser for help on using the repository browser.