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