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