OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libdev/] [include/] [libdev/] [timer.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Generic timer library API
3
 *
4
 * Copyright (C) 2010 B Labs Ltd.
5
 *
6
 * Author: Bahadir Balban
7
 */
8
#ifndef __LIBDEV_TIMER_H__
9
#define __LIBDEV_TIMER_H__
10
 
11
/*
12
 * Simple API for the primary timer
13
 * for userspace
14
 */
15
void timer_start(unsigned long timer_base);
16
void timer_load(u32 val, unsigned long timer_base);
17
u32 timer_read(unsigned long timer_base);
18
void timer_stop(unsigned long timer_base);
19
void timer_init_oneshot(unsigned long timer_base);
20
void timer_init_periodic(unsigned long timer_base, u32 load_value);
21
void timer_init(unsigned long timer_base, u32 load_value);
22
 
23
#endif /* __LIBDEV_TIMER_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.