From 01cf4141754f962c965722b778604155775dec9e Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Wed, 30 Jan 2013 12:20:28 +0100 Subject: [PATCH] new boards.txt with indexed vid and pid --- hardware/arduino/avr/boards.txt | 18 ++++++++++++++---- hardware/arduino/sam/boards.txt | 6 ++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/hardware/arduino/avr/boards.txt b/hardware/arduino/avr/boards.txt index 2150aa637..93d31bb0e 100644 --- a/hardware/arduino/avr/boards.txt +++ b/hardware/arduino/avr/boards.txt @@ -5,7 +5,8 @@ menu.cpu=Processor ############################################################## uno.name=Arduino Uno -uno.vid_pid=2341_0043 +uno.vid.0=2341 +uno.pid.0=0043 uno.upload.tool=avrdude uno.upload.protocol=arduino uno.upload.maximum_size=32256 @@ -120,7 +121,10 @@ nano.menu.cpu.atmega168.build.mcu=atmega168 ############################################################## mega2560.name=Arduino Mega 2560 or Mega ADK -mega2560.vid_pid=2341_0044,2341_003f +mega2560.vid.0=2341 +mega2560.pid.0=0044 +mega2560.vid.1=2341 +mega2560.pid.1=003f mega2560.cpu=2560 or ADK mega2560.upload.tool=avrdude @@ -169,7 +173,10 @@ mega.build.variant=mega ############################################################## leonardo.name=Arduino Leonardo -leonardo.vid_pid=2341_0036,2341_8036 +leonardo.vid.0=2341 +leonardo.pid.0=0036 +leonardo.vid.1=2341 +leonardo.pid.1=8036 leonardo.upload.tool=avrdude leonardo.upload.protocol=avr109 leonardo.upload.maximum_size=28672 @@ -228,7 +235,10 @@ micro.build.extra_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} ############################################################## esplora.name=Arduino Esplora -esplora.vid_pid=2341_003c,2341_8036 +esplora.vid.0=2341 +esplora.pid.0=003c +esplora.vid.1=2341 +esplora.pid.1=8036 esplora.upload.tool=avrdude esplora.upload.protocol=avr109 esplora.upload.maximum_size=28672 diff --git a/hardware/arduino/sam/boards.txt b/hardware/arduino/sam/boards.txt index f563828f0..13cfba62c 100644 --- a/hardware/arduino/sam/boards.txt +++ b/hardware/arduino/sam/boards.txt @@ -1,6 +1,7 @@ arduino_due_x_dbg.name=Arduino Due (Programming Port) -arduino_due_x_dbg.vid_pid=2341_003d +arduino_due_x_dbg.vid.0=2341 +arduino_due_x_dbg.pid.1=003d arduino_due_x_dbg.upload.tool=bossac arduino_due_x_dbg.upload.protocol=sam-ba arduino_due_x_dbg.upload.maximum_size=524288 @@ -19,7 +20,8 @@ arduino_due_x_dbg.build.vid=0x2341 arduino_due_x_dbg.build.pid=0x003e arduino_due_x.name=Arduino Due (Native USB Port) -arduino_due_x.vid_pid=2341_003e +arduino_due_x.vid.0=2341 +arduino_due_x.pid.0=003e arduino_due_x.upload.tool=bossac arduino_due_x.upload.protocol=sam-ba arduino_due_x.upload.maximum_size=524288