59f29e6ac4a15a009b1ab41e438dc834d22a3706
[fx2fw-sdcc] / hardware.h
1 /*-----------------------------------------------------------------------------\r
2 \r
3  * Hardware-dependent code for usb_jtag\r
4 \r
5  *-----------------------------------------------------------------------------\r
6 \r
7  * Copyright (C) 2007 Kolja Waschk, ixo.de\r
8 \r
9  *-----------------------------------------------------------------------------\r
10 \r
11  * This code is part of usbjtag. usbjtag is free software; you can redistribute\r
12 \r
13  * it and/or modify it under the terms of the GNU General Public License as\r
14 \r
15  * published by the Free Software Foundation; either version 2 of the License,\r
16 \r
17  * or (at your option) any later version. usbjtag is distributed in the hope\r
18 \r
19  * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied\r
20 \r
21  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
22 \r
23  * GNU General Public License for more details.  You should have received a\r
24 \r
25  * copy of the GNU General Public License along with this program in the file\r
26 \r
27  * COPYING; if not, write to the Free Software Foundation, Inc., 51 Franklin\r
28 \r
29  * St, Fifth Floor, Boston, MA  02110-1301  USA\r
30 \r
31  *-----------------------------------------------------------------------------\r
32 \r
33  */\r
34 \r
35 \r
36 \r
37 #ifndef _HARDWARE_H\r
38 \r
39 #define _HARDWARE_H 1\r
40 \r
41 \r
42 \r
43 extern void ProgIO_Init(void);\r
44 \r
45 extern void ProgIO_Poll(void);\r
46 \r
47 extern void ProgIO_Enable(void);\r
48 \r
49 extern void ProgIO_Disable(void);\r
50 \r
51 extern void ProgIO_Deinit(void);\r
52 \r
53 \r
54 \r
55 extern void ProgIO_Set_State(unsigned char d);\r
56 \r
57 extern unsigned char ProgIO_Set_Get_State(unsigned char d);\r
58 \r
59 extern void ProgIO_ShiftOut(unsigned char x);\r
60 \r
61 extern unsigned char ProgIO_ShiftInOut(unsigned char x);\r
62 \r
63 \r
64 \r
65 #endif /* _HARDWARE_H */\r
66 \r
67 \r
68 \r