forked from Imagelibrary/rtems
2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* clock/ckinit.c: Eliminate the clicks_per_microsecond field in the MIPS CPU Table and define another mechanism for drivers to obtain this information.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* clock/ckinit.c: Eliminate the clicks_per_microsecond field in the
|
||||||
|
MIPS CPU Table and define another mechanism for drivers to obtain
|
||||||
|
this information.
|
||||||
|
|
||||||
2007-03-12 Joel Sherrill <joel@OARcorp.com>
|
2007-03-12 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* au1x00/include/au1x00.h, au1x00/vectorisrs/maxvectors.c,
|
* au1x00/include/au1x00.h, au1x00/vectorisrs/maxvectors.c,
|
||||||
|
|||||||
@@ -47,13 +47,8 @@
|
|||||||
|
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
|
|
||||||
/* formerly in the BSP */
|
extern uint32_t bsp_clicks_per_microsecond;
|
||||||
#if 0
|
|
||||||
#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ ) /* equivalent to CPU clock speed in MHz */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CLOCKS_PER_MICROSECOND \
|
|
||||||
rtems_cpu_configuration_get_clicks_per_microsecond()
|
|
||||||
/* to avoid including the bsp */
|
/* to avoid including the bsp */
|
||||||
mips_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
|
mips_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
|
||||||
|
|
||||||
@@ -165,8 +160,8 @@ void Install_clock(
|
|||||||
* Hardware specific initialize goes here
|
* Hardware specific initialize goes here
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mips_timer_rate =
|
mips_timer_rate = rtems_configuration_get_microseconds_per_tick() *
|
||||||
rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND;
|
bsp_clicks_per_microsecond;
|
||||||
mips_set_timer( mips_timer_rate );
|
mips_set_timer( mips_timer_rate );
|
||||||
mips_enable_in_interrupt_mask(CLOCK_VECTOR_MASK);
|
mips_enable_in_interrupt_mask(CLOCK_VECTOR_MASK);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user