mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Changed calculaction for Clock_Decrementer_value to use the
BSP_configuration table.
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
#include <rtems/libio.h>
|
#include <rtems/libio.h>
|
||||||
|
|
||||||
|
extern rtems_cpu_table Cpu_table;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The Real Time Clock Counter Timer uses this trap type.
|
* The Real Time Clock Counter Timer uses this trap type.
|
||||||
*/
|
*/
|
||||||
@@ -174,8 +176,8 @@ rtems_device_driver Clock_initialize(
|
|||||||
void *pargp
|
void *pargp
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Clock_Decrementer_value = (int) &CPU_PPC_CLICKS_PER_MS *
|
Clock_Decrementer_value = Cpu_table.clicks_per_usec *
|
||||||
(BSP_Configuration.microseconds_per_tick / 1000);
|
BSP_Configuration.microseconds_per_tick;
|
||||||
|
|
||||||
Install_clock( Clock_isr );
|
Install_clock( Clock_isr );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user