projects
/
fx2fw-sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 4.2.0
[fx2fw-sdcc]
/
fx2
/
timer.h
diff --git
a/fx2/timer.h
b/fx2/timer.h
index
69f3927
..
79cc436
100644
(file)
--- a/
fx2/timer.h
+++ b/
fx2/timer.h
@@
-1,65
+1,33
@@
/* -*- c++ -*- */
\r
/* -*- c++ -*- */
\r
-
\r
/*-----------------------------------------------------------------------------
\r
/*-----------------------------------------------------------------------------
\r
-
\r
* Timer handling for FX2
\r
* Timer handling for FX2
\r
-
\r
*-----------------------------------------------------------------------------
\r
*-----------------------------------------------------------------------------
\r
-
\r
* Code taken from USRP2 firmware (GNU Radio Project), version 3.0.2,
\r
* Code taken from USRP2 firmware (GNU Radio Project), version 3.0.2,
\r
-
\r
* Copyright 2003 Free Software Foundation, Inc.
\r
* Copyright 2003 Free Software Foundation, Inc.
\r
-
\r
*-----------------------------------------------------------------------------
\r
*-----------------------------------------------------------------------------
\r
-
\r
* This code is part of usbjtag. usbjtag is free software; you can redistribute
\r
* This code is part of usbjtag. usbjtag is free software; you can redistribute
\r
-
\r
* it and/or modify it under the terms of the GNU General Public License as
\r
* it and/or modify it under the terms of the GNU General Public License as
\r
-
\r
* published by the Free Software Foundation; either version 2 of the License,
\r
* published by the Free Software Foundation; either version 2 of the License,
\r
-
\r
* or (at your option) any later version. usbjtag is distributed in the hope
\r
* or (at your option) any later version. usbjtag is distributed in the hope
\r
-
\r
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
\r
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
\r
-
\r
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
-
\r
* GNU General Public License for more details. You should have received a
\r
* GNU General Public License for more details. You should have received a
\r
-
\r
* copy of the GNU General Public License along with this program in the file
\r
* copy of the GNU General Public License along with this program in the file
\r
-
\r
* COPYING; if not, write to the Free Software Foundation, Inc., 51 Franklin
\r
* COPYING; if not, write to the Free Software Foundation, Inc., 51 Franklin
\r
-
\r
* St, Fifth Floor, Boston, MA 02110-1301 USA
\r
* St, Fifth Floor, Boston, MA 02110-1301 USA
\r
-
\r
*-----------------------------------------------------------------------------
\r
*-----------------------------------------------------------------------------
\r
-
\r
*/
\r
\r
*/
\r
\r
-
\r
-
\r
#ifndef _TIMER_H_
\r
#ifndef _TIMER_H_
\r
-
\r
#define _TIMER_H_
\r
\r
#define _TIMER_H_
\r
\r
-
\r
-
\r
/*
\r
/*
\r
-
\r
* Arrange to have isr_tick_handler called at 100 Hz
\r
* Arrange to have isr_tick_handler called at 100 Hz
\r
-
\r
*/
\r
*/
\r
-
\r
void hook_timer_tick (unsigned short isr_tick_handler);
\r
\r
void hook_timer_tick (unsigned short isr_tick_handler);
\r
\r
-
\r
-
\r
#define clear_timer_irq() \
\r
TF2 = 0 /* clear overflow flag */
\r
\r
\r
#define clear_timer_irq() \
\r
TF2 = 0 /* clear overflow flag */
\r
\r
\r
-
\r
-
\r
-
\r
#endif /* _TIMER_H_ */
\r
#endif /* _TIMER_H_ */
\r
-
\r