diff options
author | Angus Gratton <angus@freetronics.com> | 2013-04-24 17:49:24 +1000 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-07-17 14:37:39 +0200 |
commit | 96286247b6f4e8871628f586391e508e665b3c29 (patch) | |
tree | 7e1371edd6b7020b73b33df128a30ecf47a6089c /platform.txt | |
parent | a33cba585f485b68dca651c68b8023522040f468 (diff) |
boards.txt: Refactor the default usb build flags into a generic property in platform.txt
Diffstat (limited to 'platform.txt')
-rw-r--r-- | platform.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform.txt b/platform.txt index eaf9469..a0e35c3 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} |