forked from Imagelibrary/rtems
spqreslib - Make global data extern in system.h
Global data was declared in system.h but should have been extern in system.h and declared in init.c. There were duplicate symbol linking errors on at least powerpc/mpc8260ads.
This commit is contained in:
@@ -21,6 +21,12 @@
|
|||||||
#define CONFIGURE_INIT
|
#define CONFIGURE_INIT
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
|
rtems_id Task_id;
|
||||||
|
rtems_task_priority Priority;
|
||||||
|
time_t Period;
|
||||||
|
time_t Execution;
|
||||||
|
time_t Phase;
|
||||||
|
|
||||||
rtems_task Init(
|
rtems_task Init(
|
||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
@@ -46,10 +52,9 @@ rtems_task Init(
|
|||||||
|
|
||||||
puts( "\n\n*** TEST QRES LIBRARY ***" );
|
puts( "\n\n*** TEST QRES LIBRARY ***" );
|
||||||
|
|
||||||
Task_name = rtems_build_name( 'P', 'T', '1', ' ' );
|
|
||||||
|
|
||||||
status = rtems_task_create(
|
status = rtems_task_create(
|
||||||
Task_name,
|
rtems_build_name( 'P', 'T', '1', ' ' ),
|
||||||
Priority,
|
Priority,
|
||||||
RTEMS_MINIMUM_STACK_SIZE * 4,
|
RTEMS_MINIMUM_STACK_SIZE * 4,
|
||||||
RTEMS_DEFAULT_MODES,
|
RTEMS_DEFAULT_MODES,
|
||||||
|
|||||||
@@ -52,11 +52,10 @@ rtems_task Task_Periodic(
|
|||||||
|
|
||||||
/* global variables */
|
/* global variables */
|
||||||
|
|
||||||
rtems_id Task_id;
|
extern rtems_id Task_id;
|
||||||
rtems_name Task_name;
|
extern rtems_task_priority Priority;
|
||||||
rtems_task_priority Priority;
|
extern time_t Period;
|
||||||
time_t Period;
|
extern time_t Execution;
|
||||||
time_t Execution;
|
extern time_t Phase;
|
||||||
time_t Phase;
|
|
||||||
|
|
||||||
/* end of include file */
|
/* end of include file */
|
||||||
|
|||||||
Reference in New Issue
Block a user