URL
https://opencores.org/ocsvn/w11/w11/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
17 |
wfjm |
/* -*- c++ -*- */
|
2 |
|
|
/* $Id: timer.h 395 2011-07-17 22:02:55Z mueller $ */
|
3 |
|
|
/*-----------------------------------------------------------------------------
|
4 |
|
|
* Timer handling for FX2
|
5 |
|
|
*-----------------------------------------------------------------------------
|
6 |
|
|
* Code taken from USRP2 firmware (GNU Radio Project), version 3.0.2,
|
7 |
|
|
* Copyright 2003 Free Software Foundation, Inc.
|
8 |
|
|
*-----------------------------------------------------------------------------
|
9 |
|
|
* This code is part of usbjtag. usbjtag is free software; you can redistribute
|
10 |
|
|
* it and/or modify it under the terms of the GNU General Public License as
|
11 |
|
|
* published by the Free Software Foundation; either version 2 of the License,
|
12 |
|
|
* or (at your option) any later version. usbjtag is distributed in the hope
|
13 |
|
|
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
14 |
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
* GNU General Public License for more details. You should have received a
|
16 |
|
|
* copy of the GNU General Public License along with this program in the file
|
17 |
|
|
* COPYING; if not, write to the Free Software Foundation, Inc., 51 Franklin
|
18 |
|
|
* St, Fifth Floor, Boston, MA 02110-1301 USA
|
19 |
|
|
*-----------------------------------------------------------------------------
|
20 |
|
|
*/
|
21 |
|
|
|
22 |
|
|
#ifndef _TIMER_H_
|
23 |
|
|
#define _TIMER_H_
|
24 |
|
|
|
25 |
|
|
/*
|
26 |
|
|
* Arrange to have isr_tick_handler called at 100 Hz
|
27 |
|
|
*/
|
28 |
|
|
void hook_timer_tick (unsigned short isr_tick_handler);
|
29 |
|
|
|
30 |
|
|
#define clear_timer_irq() \
|
31 |
|
|
TF2 = 0 /* clear overflow flag */
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
#endif /* _TIMER_H_ */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.