~ubuntu-branches/ubuntu/precise/avrdude/precise

« back to all changes in this revision

Viewing changes to main.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-07-14 15:09:17 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090714150917-vthf96lweuevgtds
Tags: 5.8-1
* New upstream release.
* Bump Standards-Version to 3.8.2. No further changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * avrdude - A Downloader/Uploader for AVR device programmers
3
3
 * Copyright (C) 2000-2005  Brian S. Dean <bsd@bsdhome.com>
4
 
 * Copyright 2007 Joerg Wunsch <j@uriah.heep.sax.de>
 
4
 * Copyright 2007-2009 Joerg Wunsch <j@uriah.heep.sax.de>
5
5
 *
6
6
 * This program is free software; you can redistribute it and/or modify
7
7
 * it under the terms of the GNU General Public License as published by
18
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
19
 */
20
20
 
21
 
/* $Id: main.c,v 1.135 2008/11/04 12:10:28 joerg_wunsch Exp $ */
 
21
/* $Id: main.c 829 2009-07-02 11:26:29Z joerg_wunsch $ */
22
22
 
23
23
/*
24
24
 * Code to program an Atmel AVR device through one of the supported
122
122
 "  -v                         Verbose output. -v -v for more.\n"
123
123
 "  -q                         Quell progress output. -q -q for less.\n"
124
124
 "  -?                         Display this usage.\n"
125
 
 "\navrdude project: <URL:http://savannah.nongnu.org/projects/avrdude>\n"
126
 
          ,progname);
 
125
 "\navrdude version %s, URL: <http://savannah.nongnu.org/projects/avrdude/>\n"
 
126
          ,progname, version);
127
127
}
128
128
 
129
129
 
563
563
     */
564
564
    fprintf(stderr,
565
565
            "\n%s: Version %s, compiled on %s at %s\n"
566
 
            "%sCopyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/\n\n",
567
 
            progname, version, __DATE__, __TIME__, progbuf);
 
566
            "%sCopyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/\n"
 
567
            "%sCopyright (c) 2007-2009 Joerg Wunsch\n\n",
 
568
            progname, version, __DATE__, __TIME__, progbuf, progbuf);
568
569
  }
569
570
 
570
571
  if (verbose) {
786
787
     * perform an RC oscillator calibration
787
788
     * as outlined in appnote AVR053
788
789
     */
789
 
    fprintf(stderr, "%s: performing RC oscillator calibration\n", progname);
790
 
    exitrc = pgm->perform_osccal(pgm);
 
790
    if (pgm->perform_osccal == 0) {
 
791
      fprintf(stderr,
 
792
              "%s: programmer does not support RC oscillator calibration\n",
 
793
              progname);
 
794
      exitrc = 1;
 
795
    } else {
 
796
      fprintf(stderr, "%s: performing RC oscillator calibration\n", progname);
 
797
      exitrc = pgm->perform_osccal(pgm);
 
798
    }
791
799
    if (exitrc == 0 && quell_progress < 2) {
792
800
      fprintf(stderr,
793
801
              "%s: calibration value is now stored in EEPROM at address 0\n",