Changeset 108ea77 in examples-v2


Ignore:
Timestamp:
Aug 7, 2016, 5:17:41 PM (3 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
286403d7a3d0e521179e677c0d2fd7549c9ceab4
Children:
220ceb2
Parents:
aec2d18
git-author:
Joel Sherrill <joel@…> (08/07/16 17:17:41)
git-committer:
Joel Sherrill <joel@…> (08/07/16 17:18:42)
Message:

posix_api/psx_sched_report/test.c: Uses default configuration now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • posix_api/psx_sched_report/test.c

    raec2d18 r108ea77  
    11/*
    2  *  Simple test program -- simplified version of sample test hello.
     2 *  Program to print POSIX Scheduler Characteristics
    33 */
    44
     
    3131}
    3232
    33 
    34 #if defined(__rtems__)
    35   #include <bsp.h>
    36 
    37 rtems_task Init(
    38   rtems_task_argument ignored
    39 )
    40 #else
    4133int main()
    42 #endif
    4334{
    4435  print_sched_info( "SCHED_OTHER", SCHED_OTHER );
    4536  print_sched_info( "SCHED_FIFO", SCHED_FIFO );
    4637  print_sched_info( "SCHED_RR", SCHED_RR );
     38#if defined(SCHED_SPORADIC)
     39  print_sched_info( "SCHED_SPORADIC", SCHED_RR );
     40#else
     41  printf( "SCHED_SPORADIC is not supported\n" );
     42#endif
    4743
    4844  exit( 0 );
    4945}
    50 
    51 #if defined(__rtems__)
    52 /* configuration information */
    53 
    54 /* NOTICE: the clock driver is explicitly disabled */
    55 #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    56 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    57 
    58 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    59 #define CONFIGURE_MICROSECONDS_PER_TICK 1000
    60 #define CONFIGURE_TICKS_PER_TIMESLICE   1
    61 #define CONFIGURE_MAXIMUM_TASKS 1
    62 
    63 #define CONFIGURE_INIT
    64 
    65 #include <rtems/confdefs.h>
    66 #endif
    67 
    68 /* end of file */
Note: See TracChangeset for help on using the changeset viewer.