~cosmos-door/ubuntu/quantal/avarice/fix-ftbfs-1058667

« back to all changes in this revision

Viewing changes to src/jtaggeneric.cc

  • Committer: Bazaar Package Importer
  • Author(s): Shaun Jackman
  • Date: 2008-01-21 12:42:25 UTC
  • mfrom: (3.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080121124225-jpgg64fki5b2clqs
Tags: 2.7-2
* Add the AVR Dragon to the udev rules. Closes: #461986.
* Update the Debian policy to version 3.7.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *      avarice - The "avarice" program.
3
3
 *      Copyright (C) 2001 Scott Finneran
4
4
 *      Copyright (C) 2002, 2003, 2004 Intel Corporation
5
 
 *      Copyright (C) 2005 Joerg Wunsch
 
5
 *      Copyright (C) 2005, 2007 Joerg Wunsch
6
6
 *
7
7
 *      This program is free software; you can redistribute it and/or modify
8
8
 *      it under the terms of the GNU General Public License Version 2
20
20
 * This file implements those parts of class "jtag" that are common
21
21
 * for both, the mkI and mkII protocol.
22
22
 *
23
 
 * $Id: jtaggeneric.cc,v 1.6 2006/09/12 20:40:10 joerg_wunsch Exp $
 
23
 * $Id: jtaggeneric.cc,v 1.9 2007/08/29 10:58:19 joerg_wunsch Exp $
24
24
 */
25
25
 
26
26
#include <stdarg.h>
69
69
  jtagBox = 0;
70
70
  device_name = 0;
71
71
  oldtioValid = is_usb = false;
 
72
  ctrlPipe = -1;
72
73
}
73
74
 
74
 
jtag::jtag(const char *jtagDeviceName, char *name)
 
75
jtag::jtag(const char *jtagDeviceName, char *name, emulator type)
75
76
{
76
77
    struct termios newtio;
77
78
 
 
79
    jtagBox = 0;
 
80
    oldtioValid = is_usb = false;
 
81
    ctrlPipe = -1;
78
82
    device_name = name;
79
 
    is_usb = false;
 
83
    emu_type = type;
80
84
#ifdef HAVE_LIBUSB
81
85
    if (strncmp(jtagDeviceName, "usb", 3) == 0)
82
86
      {