source: rtems/testsuites/samples/pppd/system.h @ c637946

4.11
Last change on this file since c637946 was c637946, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 17, 2011 at 3:21:40 PM

2011-02-17 Joel Sherrill <joel.sherrill@…>

  • pppd/system.h: Use confdefs.h to generate device driver table.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1
2#ifndef SYSTEM_H
3#define SYSTEM_H
4
5#include <rtems.h>
6#include <rtems/console.h>
7#include <rtems/clockdrv.h>
8
9/* functions */
10extern rtems_task Init(rtems_task_argument argument);
11
12#include <bsp.h>
13
14#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
15#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
16
17#ifndef TTY1_DRIVER_TABLE_ENTRY
18  #define TTY1_DRIVER_TABLE_ENTRY NULL_DRIVER_TABLE_ENTRY
19#endif
20#ifndef TTY2_DRIVER_TABLE_ENTRY
21  #define TTY2_DRIVER_TABLE_ENTRY NULL_DRIVER_TABLE_ENTRY
22#endif
23
24#define CONFIGURE_APPLICATION_EXTRA_DRIVERS \
25   { TTY1_DRIVER_TABLE_ENTRY, TTY2_DRIVER_TABLE_ENTRY }
26
27#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
28#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 8
29
30#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024)
31#define CONFIGURE_MAXIMUM_SEMAPHORES 20
32#define CONFIGURE_MAXIMUM_TASKS      20
33
34#define CONFIGURE_MICROSECONDS_PER_TICK 10000
35
36#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024)
37#define CONFIGURE_INIT_TASK_PRIORITY   120
38#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
39                                           RTEMS_NO_TIMESLICE | \
40                                           RTEMS_NO_ASR | \
41                                           RTEMS_INTERRUPT_LEVEL(0))
42
43#include <rtems/confdefs.h>
44
45#endif
Note: See TracBrowser for help on using the repository browser.