Imported Upstream version 2.9.0
[debian/cc1111] / device / include / pic16 / delay.h
1
2 /*
3  * delay.h - delay functions header file
4  *
5  * adopted for SDCC and pic16 port by Vangelis Rokas, 2005 <vrokas AT otenet.gr>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20  */
21
22 /*
23 ** $Id: delay.h 3714 2005-04-02 13:13:53Z vrokas $
24 */
25
26
27 #ifndef __DELAY_H__
28 #define __DELAY_H__
29
30 #pragma library c
31
32 /*
33  * the delayNNtcy family of functions performs a
34  * delay of NN cycles. Possible values for NN are:
35  *   10  10*n cycles delay
36  *  100  100*n cycles delay
37  *   1k  1000*n cycles delay
38  *  10k  10000*n cycles delay
39  * 100k  100000*n cycles delay
40  *   1m  1000000*n cycles delay
41  */
42  
43 void delay10tcy(unsigned char) __wparam;
44 void delay100tcy(unsigned char) __wparam;
45 void delay1ktcy(unsigned char) __wparam;
46 void delay10ktcy(unsigned char) __wparam;
47 void delay100ktcy(unsigned char) __wparam;
48 void delay1mtcy(unsigned char) __wparam;
49
50 #endif