RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
timer.c File Reference
#include "timer/timer.h"

Go to the source code of this file.

Overview

Timer driver implementation.

Implements the functions defined in timer.h for controlling Timer input/output and interrupts on the EfxSapphireSoC platform.

Definition in file timer.c.

Functions

u32 timer_getConfig (timer_instance_t *inst)
 Get stored Timer Configuration.
u32 timer_setConfig (timer_instance_t *inst, u32 value)
 Set Timer Configuration.
u32 timer_getPrescalerValue (timer_instance_t *inst)
 Get stored Timer Prescaler Value.
u32 timer_setPrescalerValue (timer_instance_t *inst, u32 value)
 Set Timer Prescaler Value.
u32 timer_getLimit (timer_instance_t *inst)
 Get stored Timer Limit (Reload Value).
u32 timer_setLimit (timer_instance_t *inst, u32 value)
 Set Timer Limit (Reload Value).
u32 timer_getValue (timer_instance_t *inst)
 Get stored Timer Value.
void timer_clearValue (timer_instance_t *inst)
 Get stored Timer Configuration.
void timer_applyConfig (timer_instance_t *inst)
 Apply the software configuration to the hardware.