mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
boards.txt: Refactor the default usb build flags into a generic property in platform.txt
This commit is contained in:
parent
15e73e8daa
commit
a7ad83cb73
@ -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}
|
||||
|
||||
##############################################################
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user