system.h 733 Bytes
Newer Older
1 2 3
#include <rtems/score/types.h>
#include <rtems/rtems/types.h>
#include <rtems/rtems/tasks.h>
4
#include <rtems/rtems/event.h>
5 6

rtems_task Init(rtems_task_argument argument);
7 8
rtems_task Task1_EntryPoint(rtems_task_argument argument);
rtems_task Task2_EntryPoint(rtems_task_argument argument);
9 10 11 12 13 14

#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS           64
#define CONFIGURE_TICKS_PER_TIMESLICE     100
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
15 16
#define CONFIGURE_SMP_APPLICATION
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS  2
17 18 19 20 21 22 23
#ifndef DEFINE_VARS
#define GLOBAL
#else
#define GLOBAL extern
#endif

GLOBAL rtems_id g_init_task_id;
24 25

#include <rtems/confdefs.h>