2006-01-12 23:13:50 +00:00
|
|
|
/*
|
|
|
|
* avrdude - A Downloader/Uploader for AVR device programmers
|
|
|
|
* Copyright (C) 2006 Joerg Wunsch
|
|
|
|
*
|
|
|
|
* 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
|
2012-11-20 14:03:50 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2006-01-12 23:13:50 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* defines for the USB interface
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef usbdevs_h
|
|
|
|
#define usbdevs_h
|
|
|
|
|
|
|
|
#define USB_VENDOR_ATMEL 1003
|
|
|
|
#define USB_DEVICE_JTAGICEMKII 0x2103
|
|
|
|
#define USB_DEVICE_AVRISPMKII 0x2104
|
2008-03-14 13:00:08 +00:00
|
|
|
#define USB_DEVICE_STK600 0x2106
|
2006-10-26 21:14:10 +00:00
|
|
|
#define USB_DEVICE_AVRDRAGON 0x2107
|
2012-11-28 22:39:01 +00:00
|
|
|
#define USB_DEVICE_JTAGICE3 0x2110
|
2006-10-26 21:14:10 +00:00
|
|
|
|
2012-12-18 10:45:23 +00:00
|
|
|
/* JTAGICEmkII, AVRISPmkII */
|
2012-11-26 16:24:56 +00:00
|
|
|
#define USBDEV_BULK_EP_WRITE_MKII 0x02
|
|
|
|
#define USBDEV_BULK_EP_READ_MKII 0x82
|
|
|
|
#define USBDEV_MAX_XFER_MKII 64
|
2006-01-12 23:13:50 +00:00
|
|
|
|
2012-12-18 10:45:23 +00:00
|
|
|
/* STK600 */
|
|
|
|
#define USBDEV_BULK_EP_WRITE_STK600 0x02
|
|
|
|
#define USBDEV_BULK_EP_READ_STK600 0x83
|
|
|
|
|
2012-11-28 22:39:01 +00:00
|
|
|
/* JTAGICE3 */
|
|
|
|
#define USBDEV_BULK_EP_WRITE_3 0x01
|
|
|
|
#define USBDEV_BULK_EP_READ_3 0x82
|
|
|
|
#define USBDEV_EVT_EP_READ_3 0x83
|
|
|
|
#define USBDEV_MAX_XFER_3 512
|
|
|
|
|
2012-11-29 21:43:54 +00:00
|
|
|
/*
|
|
|
|
* When operating on the JTAGICE3, usbdev_recv_frame() returns an
|
|
|
|
* indication in the upper bits of the return value whether the
|
|
|
|
* message has been received from the event endpoint rather than the
|
|
|
|
* normal conversation endpoint.
|
|
|
|
*/
|
|
|
|
#define USB_RECV_LENGTH_MASK 0x0fff /* up to 4 KiB */
|
|
|
|
#define USB_RECV_FLAG_EVENT 0x1000
|
|
|
|
|
2006-01-12 23:13:50 +00:00
|
|
|
#endif /* usbdevs_h */
|