RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Functions
arm-generic-timer-aarch32.c File Reference

ARM-specific clock driver functions. More...

#include <libcpu/arm-cp15.h>
#include <dev/clock/arm-generic-timer.h>

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)
 

Detailed Description

ARM-specific clock driver functions.

Function Documentation

◆ 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