2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>

* clock/ckinit.c, include/bsp.h: Eliminate copies of the Configuration
	Table. Use the RTEMS provided accessor macros to obtain configuration
	fields.
This commit is contained in:
Joel Sherrill
2007-12-11 15:46:18 +00:00
parent 200748bfa0
commit 2d2586780c
6 changed files with 15 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/ckinit.c, include/bsp.h: Eliminate copies of the Configuration
Table. Use the RTEMS provided accessor macros to obtain configuration
fields.
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h: Move interrupt_stack_size field from CPU Table to

View File

@@ -52,7 +52,7 @@ uint32_t bsp_clock_nanoseconds_since_last_tick(void)
clicks = ERC32_MEC.Real_Time_Clock_Counter;
return (uint32_t) (BSP_Configuration.microseconds_per_tick - clicks) * 1000;
return (uint32_t) (rtems_configuration_get_microseconds_per_tick() - clicks) * 1000;
}
#define Clock_driver_nanoseconds_since_last_tick \
@@ -63,7 +63,7 @@ uint32_t bsp_clock_nanoseconds_since_last_tick(void)
/* approximately 1 us per countdown */ \
ERC32_MEC.Real_Time_Clock_Scalar = CLOCK_SPEED - 1; \
ERC32_MEC.Real_Time_Clock_Counter = \
BSP_Configuration.microseconds_per_tick; \
rtems_configuration_get_microseconds_per_tick(); \
\
ERC32_MEC_Set_Real_Time_Clock_Timer_Control( \
ERC32_MEC_TIMER_COUNTER_ENABLE_COUNTING | \

View File

@@ -107,8 +107,6 @@ void BSP_fatal_return( void );
void bsp_spurious_initialize( void );
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
#ifdef __cplusplus
}
#endif

View File

@@ -1,3 +1,9 @@
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/ckinit.c, include/bsp.h: Eliminate copies of the Configuration
Table. Use the RTEMS provided accessor macros to obtain configuration
fields.
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h: Move interrupt_stack_size field from CPU Table to

View File

@@ -44,7 +44,7 @@ extern int CLOCK_SPEED;
#define Clock_driver_support_initialize_hardware() \
do { \
LEON_REG.Timer_Reload_1 = BSP_Configuration.microseconds_per_tick - 1; \
LEON_REG.Timer_Reload_1 = rtems_configuration_get_microseconds_per_tick() - 1; \
\
LEON_REG.Timer_Control_1 = ( \
LEON_REG_TIMER_COUNTER_ENABLE_COUNTING | \

View File

@@ -104,8 +104,6 @@ void BSP_fatal_return( void );
void bsp_spurious_initialize( void );
extern rtems_configuration_table BSP_Configuration; /* owned by BSP */
#ifdef __cplusplus
}
#endif