forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
@@ -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 | \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 | \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user