mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
added compile-time definition of sketch PID. PID is pulled from variants/leonardo or the new variants/micro as appropriate.
This commit is contained in:
parent
508eb9b72f
commit
e870f070db
@ -89,19 +89,8 @@
|
|||||||
#define FAT_FILE_NAME 'F','I','R','M','W','A','R','E','B','I','N' // 11 chars
|
#define FAT_FILE_NAME 'F','I','R','M','W','A','R','E','B','I','N' // 11 chars
|
||||||
#define MSC_DISK_SERIAL '0','0','0','0','0','0','0','0','1','7','0','1' // 12 chars
|
#define MSC_DISK_SERIAL '0','0','0','0','0','0','0','0','1','7','0','1' // 12 chars
|
||||||
|
|
||||||
#ifdef MICROTOUCH
|
|
||||||
|
|
||||||
#define USB_VID 0x239A // Adafruit vid
|
|
||||||
#define USB_PID 0x2001 // sorry dave sprach zarathustra
|
|
||||||
#define FAT_OEM_NAME 'r','o','s','s','u','m','u','r' // 8 chars
|
|
||||||
#define PRODUCT_NAME 'M','i','c','r','o','t','o','u','c','h'
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define USB_VID 0x2341 // arduino LLC vid
|
#define USB_VID 0x2341 // arduino LLC vid
|
||||||
#define USB_PID 0x0020 // educated guess
|
#define USB_PID ARDUINO_MODEL_USB_PID
|
||||||
#define FAT_OEM_NAME 'l','e','o','n','a','r','d','o' // 8 chars
|
#define FAT_OEM_NAME 'l','e','o','n','a','r','d','o' // 8 chars
|
||||||
#define PRODUCT_NAME 'A','r','d','u','i','n','o','l','l','c' // 10
|
#define PRODUCT_NAME 'A','r','d','u','i','n','o','l','l','c' // 10
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
|
||||||
|
#define ARDUINO_MODEL_USB_PID 0x0034
|
||||||
|
|
||||||
// Map SPI port to 'new' pins D14..D17
|
// Map SPI port to 'new' pins D14..D17
|
||||||
// D14 PB0 RXLED,SS/PCINT0
|
// D14 PB0 RXLED,SS/PCINT0
|
||||||
// D15 PB1 SCK,PCINT1
|
// D15 PB1 SCK,PCINT1
|
||||||
|
27
hardware/arduino/variants/micro/pins_arduino.h
Normal file
27
hardware/arduino/variants/micro/pins_arduino.h
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
pins_arduino.h - Pin definition functions for Arduino
|
||||||
|
Part of Arduino - http://www.arduino.cc/
|
||||||
|
|
||||||
|
Copyright (c) 2007 David A. Mellis
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library 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
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General
|
||||||
|
Public License along with this library; if not, write to the
|
||||||
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
|
Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "../leonardo/pins_arduino.h"
|
||||||
|
#undef ARDUINO_MODEL_USB_PID
|
||||||
|
#define ARDUINO_MODEL_USB_PID 0x0035
|
Loading…
x
Reference in New Issue
Block a user