Commit 8b7b3c04 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Updated to properly work with RTEMS 5.1

parent d6888afa
// Comment this to skip memory checks at startup // Comment this to skip memory checks at startup
#define MEMCHECK #define MEMCHECK
#include <rtems/score/cpuopts.h> #include <rtems.h>
#include <rtems/score/types.h>
#include <rtems/rtems/types.h>
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/event.h>
rtems_task Init(rtems_task_argument argument); rtems_task Init(rtems_task_argument argument);
rtems_task Task1_EntryPoint(rtems_task_argument argument); rtems_task Task1_EntryPoint(rtems_task_argument argument);
...@@ -20,10 +16,9 @@ void memcheck(void); ...@@ -20,10 +16,9 @@ void memcheck(void);
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #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 || \
#if __RTEMS_MAJOR__ == 4 && \ ( __RTEMS_MINOR__ == 11 && __RTEMS_REVISION__ >= 99))) \
( __RTEMS_MINOR__ > 11 || \ || __RTEMS_MAJOR__ >= 5
( __RTEMS_MINOR__ == 11 && __RTEMS_REVISION__ >= 99))
#ifdef BSP_leon2 #ifdef BSP_leon2
#define CONFIGURE_MAXIMUM_PROCESSORS 1 #define CONFIGURE_MAXIMUM_PROCESSORS 1
......
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