Embedded Firmware · Medium · C

Timer Compare Driver

Program the SoC timer compare register relative to the current counter.

Task

Define TIMER_COUNTER at base+0x0 and TIMER_COMPARE at base+0x4. Implement timer_schedule(delta) by reading counter and writing counter+delta.

Examples

Constraints

Concepts to review

C, timer, interrupt

Open HDLForge to solve this problem in the interactive editor.

Related problems