source: rtems/testsuites/samples/pppd/system.h @ 9391f6d

4.11
Last change on this file since 9391f6d was 9391f6d, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 10, 2014 at 3:31:43 PM

tests/samples: Use <rtems/test.h>

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