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