URL
https://opencores.org/ocsvn/potato/potato/trunk
Subversion Repositories potato
[/] [potato/] [trunk/] [benchmarks/] [sha256/] [timer.c] - Rev 26
Go to most recent revision | Compare with Previous | Blame | View Log
// The Potato Processor Benchmark Applications // (c) Kristian Klomsten Skordal 2015 <kristian.skordal@wafflemail.net> // Report bugs and issues on <http://opencores.org/project,potato,bugtracker> #include "platform.h" #include "timer.h" void timer_set(volatile uint32_t * base, uint32_t compare) { base[TIMER_COMPARE >> 2] = compare; timer_reset(base); } void timer_reset(volatile uint32_t * base) { base[TIMER_CTRL >> 2] = 1 << TIMER_CTRL_RUN | 1 << TIMER_CTRL_CLEAR; }
Go to most recent revision | Compare with Previous | Blame | View Log