aboutsummaryrefslogtreecommitdiff
path: root/platform.txt
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-07-30 10:45:44 +0200
committerCristian Maglie <c.maglie@bug.st>2013-07-30 10:45:44 +0200
commitacb3df6d4398e1df2e350cd5e8f1d742bee97316 (patch)
treee5e17a3863fbc97e6d4d93254670a9924df67c86 /platform.txt
parent1895d696b1fd11488e469fb17549263c24548d0d (diff)
parent99bb4a573fa71a4e6c30cad144284d12b3f7edd0 (diff)
Merge branch 'ide-1.5.x' into dev-ide-1.5.x-discovery
Conflicts: hardware/arduino/avr/cores/arduino/USBCore.cpp
Diffstat (limited to 'platform.txt')
-rw-r--r--platform.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform.txt b/platform.txt
index eaf9469..6bf3cdb 100644
--- a/platform.txt
+++ b/platform.txt
@@ -86,3 +86,9 @@ tools.avrdude.bootloader.params.verbose=-v -v -v -v
tools.avrdude.bootloader.params.quiet=-q -q
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.ide.path}/hardware/arduino/avr/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
+
+# USB Default Flags
+# Default blank usb manufacturer will be filled it at compile time
+# - from numeric vendor ID, set to Unknown otherwise
+build.usb_manufacturer=
+build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} -DUSB_MANUFACTURER={build.usb_manufacturer} '-DUSB_PRODUCT={build.usb_product}'