aboutsummaryrefslogtreecommitdiff
path: root/boards.txt
diff options
context:
space:
mode:
authorAngus Gratton <angus@freetronics.com>2013-04-24 17:49:24 +1000
committerCristian Maglie <c.maglie@bug.st>2013-07-17 14:37:39 +0200
commit96286247b6f4e8871628f586391e508e665b3c29 (patch)
tree7e1371edd6b7020b73b33df128a30ecf47a6089c /boards.txt
parenta33cba585f485b68dca651c68b8023522040f468 (diff)
boards.txt: Refactor the default usb build flags into a generic property in platform.txt
Diffstat (limited to 'boards.txt')
-rw-r--r--boards.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/boards.txt b/boards.txt
index 1ec00c0..8ee4561 100644
--- a/boards.txt
+++ b/boards.txt
@@ -192,7 +192,7 @@ leonardo.build.usb_product="Arduino Leonardo"
leonardo.build.board=AVR_LEONARDO
leonardo.build.core=arduino
leonardo.build.variant=leonardo
-leonardo.build.extra_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} -DUSB_MANUFACTURER={build.usb_manufacturer} -DUSB_PRODUCT={build.usb_product}
+leonardo.build.extra_flags={build.usb_flags}
##############################################################
@@ -222,7 +222,7 @@ micro.build.usb_product=Arduino Micro
micro.build.board=AVR_MICRO
micro.build.core=arduino
micro.build.variant=micro
-micro.build.extra_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} -DUSB_MANUFACTURER={build.usb_manufacturer} -DUSB_PRODUCT={build.usb_product}
+micro.build.extra_flags={build.usb_flags}
##############################################################
@@ -252,7 +252,7 @@ esplora.build.usb_product=Arduino Esplora
esplora.build.board=AVR_ESPLORA
esplora.build.core=arduino
esplora.build.variant=leonardo
-esplora.build.extra_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} -DUSB_MANUFACTURER={build.usb_manufacturer} -DUSB_PRODUCT={build.usb_product}
+esplora.build.extra_flags={build.usb_flags}
##############################################################
@@ -418,7 +418,7 @@ LilyPadUSB.build.usb_product=LilyPad USB
LilyPadUSB.build.board=AVR_LILYPAD_USB
LilyPadUSB.build.core=arduino
LilyPadUSB.build.variant=leonardo
-LilyPadUSB.build.extra_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} -DUSB_MANUFACTURER={build.usb_manufacturer} -DUSB_PRODUCT={build.usb_product}
+LilyPadUSB.build.extra_flags={build.usb_flags}
##############################################################