Fx2lib  0.2
include/delay.h
Go to the documentation of this file.
00001 // Copyright (C) 2009 Ubixum, Inc. 
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License, or (at your option) any later version.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00016 
00022 #ifndef DELAY_H
00023 #define DELAY_H
00024 
00025 #include "fx2types.h"
00026 
00030 void delay(WORD millis);
00031 
00052 #define NOP __asm nop __endasm
00053 
00065 #define SYNCDELAY2 NOP; NOP
00066 
00078 #define SYNCDELAY3 NOP; NOP; NOP
00079 
00088 #define SYNCDELAY4 NOP; NOP; NOP; NOP
00089 
00095 #define SYNCDELAY5  NOP; NOP; NOP; NOP; NOP
00096 #define SYNCDELAY6  NOP; NOP; NOP; NOP; NOP; NOP
00097 #define SYNCDELAY7  NOP; NOP; NOP; NOP; NOP; NOP; NOP
00098 #define SYNCDELAY8  NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00099 #define SYNCDELAY9  NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00100 #define SYNCDELAY10 NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00101 #define SYNCDELAY11 NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00102 #define SYNCDELAY12 NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00103 #define SYNCDELAY13 NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00104 #define SYNCDELAY14 NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00105 #define SYNCDELAY15 NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00106 #define SYNCDELAY16 NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP; NOP
00107 
00108 #endif
00109