os/nandboot-R2_0_4/lib/delay.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002 *!
00003 *! FILE NAME  : delay.h
00004 *!
00005 *! DESCRIPTION: Precise delay loops for ETRAX FS.
00006 *!
00007 *! ---------------------------------------------------------------------------
00008 *! (C) Copyright 2006-2007, Axis Communications AB, LUND, SWEDEN
00009 *!
00010 *! This program is free software; you can redistribute it and/or modify
00011 *! it under the terms of the GNU General Public License version 2 as 
00012 *! published by the Free Software Foundation.
00013 *!
00014 *! This program is distributed in the hope that it will be useful,
00015 *! but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 *! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 *! GNU General Public License for more details.
00018 *!
00019 *! You should have received a copy of the GNU General Public License
00020 *! along with this program; if not, write to the Free Software
00021 *! Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00022 *!
00023 *!***************************************************************************/
00024 
00025 #ifndef _ASM_CRIS_ARCH_DELAY_H
00026 #define _ASM_CRIS_ARCH_DELAY_H
00027 
00028 extern void cris_delay10ns(u32 n10ns);
00029 #define udelay(u) cris_delay10ns((u)*100)
00030 #define ndelay(n) cris_delay10ns(((n)+9)/10)
00031 
00032 #endif /* _ASM_CRIS_ARCH_DELAY_H */

Generated on Fri Nov 28 00:06:24 2008 for elphel by  doxygen 1.5.1