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

5
Last change on this file since c4b8b147 was c4b8b147, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 3, 2017 at 7:35:38 AM

tests: Use simple console driver

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.4 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_SIMPLE_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
30#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
31
32#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 8
33
34#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024)
35#define CONFIGURE_MAXIMUM_SEMAPHORES 20
36#define CONFIGURE_MAXIMUM_TASKS      20
37
38#define CONFIGURE_MICROSECONDS_PER_TICK 10000
39
40#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024)
41#define CONFIGURE_INIT_TASK_PRIORITY   120
42#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
43                                           RTEMS_NO_TIMESLICE | \
44                                           RTEMS_NO_ASR | \
45                                           RTEMS_INTERRUPT_LEVEL(0))
46
47#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
48
49#include <rtems/confdefs.h>
50
51#endif
Note: See TracBrowser for help on using the repository browser.