Commit c4151473 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

In RTEMS4.12, some names have changed and/or become deprecated...

parent 54a22acd
// Comment this to skip memory checks at startup
#define MEMCHECK
#include <rtems/score/cpuopts.h>
#include <rtems/score/types.h>
#include <rtems/rtems/types.h>
#include <rtems/rtems/tasks.h>
......@@ -18,12 +19,30 @@ void memcheck(void);
#define CONFIGURE_TICKS_PER_TIMESLICE 100
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
// In RTEMS master (i.e. the future 4.12) some names have changed...
#if __RTEMS_MAJOR__ == 4 && \
( __RTEMS_MINOR__ > 11 || \
( __RTEMS_MINOR__ == 11 && __RTEMS_REVISION__ >= 99))
#ifdef BSP_leon2
#define CONFIGURE_MAXIMUM_PROCESSORS 1
#else
#define CONFIGURE_MAXIMUM_PROCESSORS 4
#endif
#else // __RTEMS_MAJOR__ == 4 && __RTEMS_MINOR__ > 11
#define CONFIGURE_SMP_APPLICATION
#ifdef BSP_leon2
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 1
#else
#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 4
#endif
#endif
#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
#ifndef DEFINE_VARS
#define GLOBAL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment