mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-08-02 22:54:00 +03:00
- declare a dummy "struct timezone" for some Win32 systems (MinGW) - fix a few printf() argument types - get rid off the prevailing "all filedescriptors are of type int" attitude The last item required a large sweep across the code, in order to replace all "int fd"s by "struct filedescriptor *fd"s, and pass pointers (as we cannot pass a union directly). In return, the code is now supposed to be fully 64-bit safe, rather than relying on a 64-bit pointer being converted to a (32-bit) int and back to a pointer as we did previously. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@694 81a1dc3b-b13d-400b-aceb-764788c761c2
55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
/*
|
|
* avrdude - A Downloader/Uploader for AVR device programmers
|
|
* Copyright (C) 2000-2004 Brian S. Dean <bsd@bsdhome.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
/* $Id$ */
|
|
|
|
#ifndef __ppi_h__
|
|
#define __ppi_h__
|
|
|
|
/*
|
|
* PPI registers
|
|
*/
|
|
enum {
|
|
PPIDATA,
|
|
PPICTRL,
|
|
PPISTATUS
|
|
};
|
|
|
|
|
|
|
|
int ppi_get (union filedescriptor *fdp, int reg, int bit);
|
|
|
|
int ppi_set (union filedescriptor *fdp, int reg, int bit);
|
|
|
|
int ppi_clr (union filedescriptor *fdp, int reg, int bit);
|
|
|
|
int ppi_getall (union filedescriptor *fdp, int reg);
|
|
|
|
int ppi_setall (union filedescriptor *fdp, int reg, int val);
|
|
|
|
int ppi_toggle (union filedescriptor *fdp, int reg, int bit);
|
|
|
|
void ppi_open (char * port, union filedescriptor *fdp);
|
|
|
|
void ppi_close (union filedescriptor *fdp);
|
|
|
|
#endif
|
|
|
|
|