forked from Imagelibrary/rtems
2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/system.h: New (Split out from nsecs/init.c). * nsecs/init.c: Reflect nsecs/system.h having been split out. * nsecs/empty.c: Include "system.h".
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "system.h"
|
||||||
|
|
||||||
/* put here hoping it won't get inlined */
|
/* put here hoping it won't get inlined */
|
||||||
void dummy_function_empty_body_to_force_call(void) {}
|
void dummy_function_empty_body_to_force_call(void) {}
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CONFIGURE_INIT
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -25,6 +23,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#define CONFIGURE_INIT
|
||||||
|
#include "system.h"
|
||||||
|
|
||||||
#include <rtems/score/timespec.h> /* _Timespec_Substract */
|
#include <rtems/score/timespec.h> /* _Timespec_Substract */
|
||||||
|
|
||||||
#include "tmacros.h"
|
#include "tmacros.h"
|
||||||
@@ -49,8 +51,6 @@ static void subtract_em(
|
|||||||
_Timespec_Subtract( start, stop, t );
|
_Timespec_Subtract( start, stop, t );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* body below .. hoping it isn't inlined */
|
|
||||||
extern void dummy_function_empty_body_to_force_call(void);
|
|
||||||
|
|
||||||
rtems_task Init(
|
rtems_task Init(
|
||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
@@ -143,15 +143,3 @@ rtems_task Init(
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#include <bsp.h> /* for device driver prototypes */
|
|
||||||
|
|
||||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
|
||||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
|
||||||
|
|
||||||
#define CONFIGURE_MICROSECONDS_PER_TICK 1000
|
|
||||||
#define CONFIGURE_MAXIMUM_TASKS 1
|
|
||||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
|
||||||
|
|
||||||
#include <rtems/confdefs.h>
|
|
||||||
|
|
||||||
|
|||||||
16
testsuites/samples/nsecs/system.h
Normal file
16
testsuites/samples/nsecs/system.h
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#ifndef SYSTEM_H
|
||||||
|
#define SYSTEM_H
|
||||||
|
|
||||||
|
#include <bsp.h> /* for device driver prototypes */
|
||||||
|
|
||||||
|
extern void dummy_function_empty_body_to_force_call(void);
|
||||||
|
|
||||||
|
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||||
|
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||||
|
|
||||||
|
#define CONFIGURE_MICROSECONDS_PER_TICK 1000
|
||||||
|
#define CONFIGURE_MAXIMUM_TASKS 1
|
||||||
|
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||||
|
|
||||||
|
#include <rtems/confdefs.h>
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user