avrdude.h

00001 /*
00002  * avrdude - A Downloader/Uploader for AVR device programmers
00003  * Copyright (C) 2007 Joerg Wunsch
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 /* $Id: avrdude.h,v 1.3 2008/11/19 23:32:30 joerg_wunsch Exp $ */
00021 
00022 #ifndef avrdude_h
00023 #define avrdude_h
00024 
00025 extern char * progname;         /* name of program, for messages */
00026 extern char progbuf[];          /* spaces same length as progname */
00027 
00028 extern int do_cycles;           /* track erase-rewrite cycles (-y) */
00029 extern int ovsigck;             /* override signature check (-F) */
00030 extern int verbose;             /* verbosity level (-v, -vv, ...) */
00031 extern int quell_progress;      /* quiteness level (-q, -qq) */
00032 
00033 #if defined(WIN32NATIVE)
00034 
00035 #include "ac_cfg.h"
00036 #include <windows.h>
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 /* usleep replacements */
00043 /* sleep Windows in ms, Unix usleep in us
00044  #define usleep(us) Sleep((us)<20000?20:us/1000)
00045  #define usleep(us) Sleep(us/1000)
00046  #define ANTIWARP 3
00047  #define usleep(us) Sleep(us/1000*ANTIWARP)
00048 */
00049 int usleep(unsigned int us);
00050 
00051 #if !defined(HAVE_GETTIMEOFDAY)
00052 struct timezone;
00053 int gettimeofday(struct timeval *tv, struct timezone *tz);
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057 #endif /* HAVE_GETTIMEOFDAY */
00058 
00059 #endif /* defined(WIN32NATIVE) */
00060 
00061 #endif

Generated on Fri Apr 22 06:54:11 2011 for SFB by doxygen 1.5.9