RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Functions
arm-generic-timer.h File Reference

Header defining architecture-specific clock functions. More...

#include <rtems/score/basedefs.h>

Go to the source code of this file.

Functions

uint64_t arm_gt_clock_get_compare_value (void)
 
void arm_gt_clock_set_compare_value (uint64_t cval)
 
uint64_t arm_gt_clock_get_count (void)
 
void arm_gt_clock_set_control (uint32_t ctl)
 
void arm_generic_timer_get_config (uint32_t *frequency, uint32_t *irq)
 

Detailed Description

Header defining architecture-specific clock functions.

Function Documentation

◆ arm_generic_timer_get_config()

void arm_generic_timer_get_config ( uint32_t *  frequency,
uint32_t *  irq 
)

This function gets the frequency and IRQ number used by the ARM General Purpose Timer.

Parameters
[out]frequencyThe frequency at which the timer will fire.
[out]irqThe number of the IRQ on which the timer will fire.

◆ arm_gt_clock_get_compare_value()

uint64_t arm_gt_clock_get_compare_value ( void  )

This function returns the current compare value for the ARM General Purpose Timer.

Returns
The current compare value.

◆ arm_gt_clock_get_count()

uint64_t arm_gt_clock_get_count ( void  )

This function returns the count for the ARM General Purpose Timer.

Returns
The current count.

◆ arm_gt_clock_set_compare_value()

void arm_gt_clock_set_compare_value ( uint64_t  cval)

This function sets the current compare value for the ARM General Purpose Timer.

Parameters
[in]cvalThe value to set as the compare value

◆ arm_gt_clock_set_control()

void arm_gt_clock_set_control ( uint32_t  ctl)

This function sets the control register for the ARM General Purpose Timer.

Parameters
[in]ctlThe value to set to the control register