From a03767aac18d4ec0c8e862ba10fdfe6b144dcbb0 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 3 May 2019 17:26:28 +0700 Subject: [PATCH] fix blehidb build, clean up boads.txt and platform.txt --- boards.txt | 132 ++++++++---------- .../Adafruit_TinyUSB_Core/tinyusb/src/tusb.h | 64 ++++----- .../tinyusb/src/tusb_option.h | 37 +++-- platform.txt | 17 ++- variants/feather_nrf52840_express/variant.h | 5 - variants/metro_nrf52840_express/variant.h | 5 - variants/pca10056/variant.h | 5 - 7 files changed, 121 insertions(+), 144 deletions(-) diff --git a/boards.txt b/boards.txt index 144c4c35..cd3185ec 100644 --- a/boards.txt +++ b/boards.txt @@ -19,10 +19,10 @@ menu.softdevice=Bootloader Version menu.debug=Debug Mode -#********************************************** -# Bluefruit Feather nRF52832 Board -#********************************************** -feather52832.name=Adafruit Bluefruit nRF52832 Feather +# ---------------------------------- +# Bluefruit Feather nRF52832 +# ---------------------------------- +feather52832.name=Adafruit Bluefruit Feather nRF52832 feather52832.bootloader.tool=bootburn # Upload @@ -31,6 +31,8 @@ feather52832.upload.protocol=nrfutil feather52832.upload.use_1200bps_touch=false feather52832.upload.wait_for_upload_port=false feather52832.upload.native_usb=false +feather52832.upload.maximum_size=290816 +feather52832.upload.maximum_data_size=51072 # Build feather52832.build.mcu=cortex-m4 @@ -41,55 +43,45 @@ feather52832.build.variant=feather_nrf52832 feather52832.build.extra_flags=-DNRF52832_XXAA -DNRF52 -DARDUINO_NRF52_FEATHER # SofDevice Menu -# Ram & ROM size varies depending on SoftDevice (check linker script) - feather52832.menu.softdevice.s132v6=0.2.9 (s132 6.1.1) feather52832.menu.softdevice.s132v6.build.sd_name=s132 feather52832.menu.softdevice.s132v6.build.sd_version=6.1.1 feather52832.menu.softdevice.s132v6.build.sd_fwid=0x00B7 feather52832.menu.softdevice.s132v6.build.ldscript=nrf52832_s132_v6.ld -feather52832.menu.softdevice.s132v6.upload.maximum_size=290816 -feather52832.menu.softdevice.s132v6.upload.maximum_data_size=51072 # Debug Menu feather52832.menu.debug.l0=Level 0 (Release) -feather52832.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 -Os +feather52832.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 feather52832.menu.debug.l1=Level 1 (Error Message) -feather52832.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 -Os +feather52832.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 feather52832.menu.debug.l2=Level 2 (Full Debug) -feather52832.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 -Os +feather52832.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 feather52832.menu.debug.l3=Level 3 (Segger SystemView) -feather52832.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 -Os +feather52832.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 +# ---------------------------------- +# Bluefruit Feather nRF52840 Express +# ---------------------------------- +feather52840.name=Adafruit Bluefruit Feather nRF52840 Express -#********************************************** -# Bluefruit Feather nRF52840 Express Board -#********************************************** -feather52840.name=Adafruit Bluefruit nRF52840 Feather Express - -# DFU Mode with CDC + MSC (UF2) +# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App feather52840.vid.0=0x239A -feather52840.pid.0=0x0029 - -# DFU Mode with CDC only +feather52840.pid.0=0x8029 feather52840.vid.1=0x239A -feather52840.pid.1=0x002A - -# Arduino Application +feather52840.pid.1=0x0029 feather52840.vid.2=0x239A -feather52840.pid.2=0x8029 - -# CircuitPython +feather52840.pid.2=0x002A feather52840.vid.3=0x239A feather52840.pid.3=0x802A -feather52840.bootloader.tool=bootburn - # Upload +feather52840.bootloader.tool=bootburn feather52840.upload.tool=nrfutil feather52840.upload.protocol=nrfutil feather52840.upload.use_1200bps_touch=true feather52840.upload.wait_for_upload_port=true +feather52840.upload.maximum_size=815104 +feather52840.upload.maximum_data_size=248832 # Build feather52840.build.mcu=cortex-m4 @@ -97,56 +89,50 @@ feather52840.build.f_cpu=64000000 feather52840.build.board=NRF52840_FEATHER feather52840.build.core=nRF5 feather52840.build.variant=feather_nrf52840_express -feather52840.build.extra_flags=-DARDUINO_NRF52_FEATHER {build.nrf52840_flags} +feather52840.build.extra_flags=-DNRF52840_XXAA -DARDUINO_NRF52_FEATHER {build.flags.usb} +feather52840.build.vid=0x239A +feather52840.build.pid=0x8029 # SofDevice Menu -# Ram & ROM size varies depending on SoftDevice (check linker script) - feather52840.menu.softdevice.s140v6=0.2.9 (s140 6.1.1) feather52840.menu.softdevice.s140v6.build.sd_name=s140 feather52840.menu.softdevice.s140v6.build.sd_version=6.1.1 feather52840.menu.softdevice.s140v6.build.sd_fwid=0x00B6 feather52840.menu.softdevice.s140v6.build.ldscript=nrf52840_s140_v6.ld -feather52840.menu.softdevice.s140v6.upload.maximum_size=815104 -feather52840.menu.softdevice.s140v6.upload.maximum_data_size=248832 # Debug Menu feather52840.menu.debug.l0=Level 0 (Release) -feather52840.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 -Os +feather52840.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 feather52840.menu.debug.l1=Level 1 (Error Message) -feather52840.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 -Os +feather52840.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 feather52840.menu.debug.l2=Level 2 (Full Debug) -feather52840.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 -Os +feather52840.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 feather52840.menu.debug.l3=Level 3 (Segger SystemView) -feather52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 -Os +feather52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 -#********************************************** -# Bluefruit Metro nRF52840 Express Board -#********************************************** -metro52840.name=Adafruit Bluefruit nRF52840 Metro Express -metro52840.bootloader.tool=bootburn +# ---------------------------------- +# Bluefruit Metro nRF52840 Express +# ---------------------------------- +metro52840.name=Adafruit Bluefruit Metro nRF52840 Express -# DFU Mode with CDC + MSC (UF2) +# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App metro52840.vid.0=0x239A -metro52840.pid.0=0x003F - -# DFU Mode with CDC only +metro52840.pid.0=0x803F metro52840.vid.1=0x239A -metro52840.pid.1=0x0040 - -# Arduino Application +metro52840.pid.1=0x003F metro52840.vid.2=0x239A -metro52840.pid.2=0x803F - -# CircuitPython +metro52840.pid.2=0x0040 metro52840.vid.3=0x239A metro52840.pid.3=0x8040 # Upload +metro52840.bootloader.tool=bootburn metro52840.upload.tool=nrfutil metro52840.upload.protocol=nrfutil metro52840.upload.use_1200bps_touch=true metro52840.upload.wait_for_upload_port=true +metro52840.upload.maximum_size=815104 +metro52840.upload.maximum_data_size=248832 # Build metro52840.build.mcu=cortex-m4 @@ -154,33 +140,31 @@ metro52840.build.f_cpu=64000000 metro52840.build.board=NRF52840_METRO metro52840.build.core=nRF5 metro52840.build.variant=metro_nrf52840_express -metro52840.build.extra_flags=-DARDUINO_NRF52_FEATHER {build.nrf52840_flags} +metro52840.build.extra_flags=-DNRF52840_XXAA -DARDUINO_NRF52_FEATHER {build.flags.usb} +metro52840.build.vid=0x239A +metro52840.build.pid=0x803F # SofDevice Menu -# Ram & ROM size varies depending on SoftDevice (check linker script) - metro52840.menu.softdevice.s140v6=0.2.9 (s140 6.1.1) metro52840.menu.softdevice.s140v6.build.sd_name=s140 metro52840.menu.softdevice.s140v6.build.sd_version=6.1.1 metro52840.menu.softdevice.s140v6.build.sd_fwid=0x00B6 metro52840.menu.softdevice.s140v6.build.ldscript=nrf52840_s140_v6.ld -metro52840.menu.softdevice.s140v6.upload.maximum_size=815104 -metro52840.menu.softdevice.s140v6.upload.maximum_data_size=248832 # Debug Menu metro52840.menu.debug.l0=Level 0 (Release) -metro52840.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 -Os +metro52840.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 metro52840.menu.debug.l1=Level 1 (Error Message) -metro52840.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 -Os +metro52840.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 metro52840.menu.debug.l2=Level 2 (Full Debug) -metro52840.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 -Os +metro52840.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 metro52840.menu.debug.l3=Level 3 (Segger SystemView) -metro52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 -Os +metro52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 -#********************************************** +# ---------------------------------- # Nordic nRF52840DK (PCA10056) -#********************************************** -pca10056.name=Adafruit Bluefruit on nRF52840DK PCA10056 +# ---------------------------------- +pca10056.name=Noridc nRF52840DK (PCA10056) pca10056.bootloader.tool=bootburn # Upload @@ -188,6 +172,8 @@ pca10056.upload.tool=nrfutil pca10056.upload.protocol=nrfutil pca10056.upload.use_1200bps_touch=true pca10056.upload.wait_for_upload_port=true +pca10056.upload.maximum_size=815104 +pca10056.upload.maximum_data_size=248832 # Build pca10056.build.mcu=cortex-m4 @@ -195,25 +181,23 @@ pca10056.build.f_cpu=64000000 pca10056.build.board=NRF52840_PCA10056 pca10056.build.core=nRF5 pca10056.build.variant=pca10056 -pca10056.build.extra_flags={build.nrf52840_flags} +pca10056.build.extra_flags=-DNRF52840_XXAA {build.flags.usb} +pca10056.build.vid=0x239A +pca10056.build.pid=0x8029 # SofDevice Menu -# Ram & ROM size varies depending on SoftDevice (check linker script) - pca10056.menu.softdevice.s140v6=0.2.9 (s140 6.1.1) pca10056.menu.softdevice.s140v6.build.sd_name=s140 pca10056.menu.softdevice.s140v6.build.sd_version=6.1.1 pca10056.menu.softdevice.s140v6.build.sd_fwid=0x00B6 pca10056.menu.softdevice.s140v6.build.ldscript=nrf52840_s140_v6.ld -pca10056.menu.softdevice.s140v6.upload.maximum_size=815104 -pca10056.menu.softdevice.s140v6.upload.maximum_data_size=248832 # Debug Menu pca10056.menu.debug.l0=Level 0 (Release) -pca10056.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 -Os +pca10056.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 pca10056.menu.debug.l1=Level 1 (Error Message) -pca10056.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 -Os +pca10056.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 pca10056.menu.debug.l2=Level 2 (Full Debug) -pca10056.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 -Os +pca10056.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 pca10056.menu.debug.l3=Level 3 (Segger SystemView) -pca10056.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 -Os +pca10056.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 diff --git a/cores/nRF5/Adafruit_TinyUSB_Core/tinyusb/src/tusb.h b/cores/nRF5/Adafruit_TinyUSB_Core/tinyusb/src/tusb.h index 122851b4..6c7fcff9 100644 --- a/cores/nRF5/Adafruit_TinyUSB_Core/tinyusb/src/tusb.h +++ b/cores/nRF5/Adafruit_TinyUSB_Core/tinyusb/src/tusb.h @@ -41,48 +41,48 @@ //------------- HOST -------------// #if TUSB_OPT_HOST_ENABLED #include "host/usbh.h" - - #if HOST_CLASS_HID - #include "class/hid/hid_host.h" - #endif - - #if CFG_TUH_MSC - #include "class/msc/msc_host.h" - #endif - - #if CFG_TUH_CDC - #include "class/cdc/cdc_host.h" - #endif - - #if CFG_TUSB_HOST_CUSTOM_CLASS - #include "class/custom_host.h" - #endif - #endif +#if HOST_CLASS_HID + #include "class/hid/hid_host.h" +#endif + +#if CFG_TUH_MSC + #include "class/msc/msc_host.h" +#endif + +#if CFG_TUH_CDC + #include "class/cdc/cdc_host.h" +#endif + +#if CFG_TUSB_HOST_CUSTOM_CLASS + #include "class/custom_host.h" +#endif + + //------------- DEVICE -------------// #if TUSB_OPT_DEVICE_ENABLED #include "device/usbd.h" +#endif - #if CFG_TUD_HID - #include "class/hid/hid_device.h" - #endif +#if CFG_TUD_HID + #include "class/hid/hid_device.h" +#endif - #if CFG_TUD_CDC - #include "class/cdc/cdc_device.h" - #endif +#if CFG_TUD_CDC + #include "class/cdc/cdc_device.h" +#endif - #if CFG_TUD_MSC - #include "class/msc/msc_device.h" - #endif +#if CFG_TUD_MSC + #include "class/msc/msc_device.h" +#endif - #if CFG_TUD_MIDI - #include "class/midi/midi_device.h" - #endif +#if CFG_TUD_MIDI + #include "class/midi/midi_device.h" +#endif - #if CFG_TUD_CUSTOM_CLASS - #include "class/custom/custom_device.h" - #endif +#if CFG_TUD_CUSTOM_CLASS + #include "class/custom/custom_device.h" #endif diff --git a/cores/nRF5/Adafruit_TinyUSB_Core/tinyusb/src/tusb_option.h b/cores/nRF5/Adafruit_TinyUSB_Core/tinyusb/src/tusb_option.h index cb6d573e..7780d431 100644 --- a/cores/nRF5/Adafruit_TinyUSB_Core/tinyusb/src/tusb_option.h +++ b/cores/nRF5/Adafruit_TinyUSB_Core/tinyusb/src/tusb_option.h @@ -147,25 +147,34 @@ //-------------------------------------------------------------------- // DEVICE OPTIONS //-------------------------------------------------------------------- -#if TUSB_OPT_DEVICE_ENABLED +#ifndef CFG_TUD_ENDOINT0_SIZE + #define CFG_TUD_ENDOINT0_SIZE 64 +#endif - #ifndef CFG_TUD_ENDOINT0_SIZE - #define CFG_TUD_ENDOINT0_SIZE 64 - #endif +#ifndef CFG_TUD_CTRL_BUFSIZE + #define CFG_TUD_CTRL_BUFSIZE 256 +#endif - #ifndef CFG_TUD_CTRL_BUFSIZE - #define CFG_TUD_CTRL_BUFSIZE 256 - #endif +#ifndef CFG_TUD_CDC + #define CFG_TUD_CDC 0 +#endif - #ifndef CFG_TUD_CDC - #define CFG_TUD_CDC 0 - #endif +#ifndef CFG_TUD_MSC + #define CFG_TUD_MSC 0 +#endif - #ifndef CFG_TUD_MSC - #define CFG_TUD_MSC 0 - #endif +#ifndef CFG_TUD_HID + #define CFG_TUD_HID 0 +#endif + +#ifndef CFG_TUD_MIDI + #define CFG_TUD_MIDI 0 +#endif + +#ifndef CFG_TUD_CUSTOM_CLASS + #define CFG_TUD_CUSTOM_CLASS 0 +#endif -#endif // TUSB_OPT_DEVICE_ENABLED //-------------------------------------------------------------------- // HOST OPTIONS diff --git a/platform.txt b/platform.txt index c2354e87..701573e7 100644 --- a/platform.txt +++ b/platform.txt @@ -30,7 +30,7 @@ compiler.warning_flags.all=-Wall -Wextra -Wno-unused-parameter -Wno-missing-fiel compiler.path={runtime.tools.gcc-arm-none-eabi-5_2-2015q4.path}/bin/ compiler.c.cmd=arm-none-eabi-gcc -compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g {compiler.warning_flags} {build.float_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DSOFTDEVICE_PRESENT +compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g {compiler.warning_flags} {build.float_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD compiler.c.elf.cmd=arm-none-eabi-gcc compiler.c.elf.flags=-Os -Wl,--gc-sections -save-temps compiler.S.cmd=arm-none-eabi-gcc @@ -46,12 +46,11 @@ compiler.elf2bin.cmd=arm-none-eabi-objcopy compiler.elf2hex.flags=-O ihex compiler.elf2hex.cmd=arm-none-eabi-objcopy compiler.ldflags=-mcpu={build.mcu} -mthumb {build.float_flags} -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align --specs=nano.specs --specs=nosys.specs - compiler.size.cmd=arm-none-eabi-size # this can be overriden in boards.txt build.float_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -build.debug_flags=-DCFG_DEBUG=0 -Os +build.debug_flags=-DCFG_DEBUG=0 # common compiler for nrf rtos.path={build.core.path}/freertos @@ -60,10 +59,10 @@ nordic.path={build.core.path}/nordic # ARDUINO_FEATHER52 is defined for backward compatiable with other lib only # should be replaced by ARDUINO_NRF52_ADAFRUIT in the future -compiler.nrf.flags= -DARDUINO_FEATHER52 -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES {build.debug_flags} "-I{build.core.path}/cmsis/include" "-I{nordic.path}" "-I{nordic.path}/nrfx" "-I{nordic.path}/nrfx/hal" "-I{nordic.path}/nrfx/mdk" "-I{nordic.path}/nrfx/soc" "-I{nordic.path}/nrfx/drivers/include" "-I{nordic.path}/nrfx/drivers/src" "-I{nordic.path}/softdevice/{build.sd_name}_nrf52_{build.sd_version}_API/include" "-I{rtos.path}/Source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52" "-I{build.core.path}/sysview/SEGGER" "-I{build.core.path}/sysview/Config" +build.flags.nrf= -DSOFTDEVICE_PRESENT -DARDUINO_FEATHER52 -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -Os {build.debug_flags} "-I{build.core.path}/cmsis/include" "-I{nordic.path}" "-I{nordic.path}/nrfx" "-I{nordic.path}/nrfx/hal" "-I{nordic.path}/nrfx/mdk" "-I{nordic.path}/nrfx/soc" "-I{nordic.path}/nrfx/drivers/include" "-I{nordic.path}/nrfx/drivers/src" "-I{nordic.path}/softdevice/{build.sd_name}_nrf52_{build.sd_version}_API/include" "-I{rtos.path}/Source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52" "-I{build.core.path}/sysview/SEGGER" "-I{build.core.path}/sysview/Config" "-I{build.core.path}/Adafruit_TinyUSB_Core" "-I{build.core.path}/Adafruit_TinyUSB_Core/tinyusb/src" -# nRF52840 flags -build.nrf52840_flags= -DNRF52840_XXAA -DUSBCON "-I{build.core.path}/Adafruit_TinyUSB_Core" "-I{build.core.path}/Adafruit_TinyUSB_Core/tinyusb/src" +# usb flags +build.flags.usb= -DUSBCON -DUSB_VID={build.vid} -DUSB_PID={build.pid} # These can be overridden in platform.local.txt compiler.c.extra_flags= @@ -79,13 +78,13 @@ compiler.elf2hex.extra_flags= # ---------------- ## Compile c files -recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BSP_VERSION="{version}" {compiler.c.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} "{source_file}" -o "{object_file}" +recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BSP_VERSION="{version}" {compiler.c.extra_flags} {build.extra_flags} {build.flags.nrf} {includes} "{source_file}" -o "{object_file}" ## Compile c++ files -recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BSP_VERSION="{version}" {compiler.cpp.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} "{source_file}" -o "{object_file}" +recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_BSP_VERSION="{version}" {compiler.cpp.extra_flags} {build.extra_flags} {build.flags.nrf} {includes} "{source_file}" -o "{object_file}" ## Compile S files -recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.nrf.flags} {includes} "{source_file}" -o "{object_file}" +recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {build.flags.nrf} {includes} "{source_file}" -o "{object_file}" ## Create archives recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}" diff --git a/variants/feather_nrf52840_express/variant.h b/variants/feather_nrf52840_express/variant.h index 2b88430d..c86ada9b 100644 --- a/variants/feather_nrf52840_express/variant.h +++ b/variants/feather_nrf52840_express/variant.h @@ -138,11 +138,6 @@ static const uint8_t SCK = PIN_SPI_SCK ; #define USB_MSC_BLOCK_SIZE 512 #define USB_MSC_BLOCK_COUNT ((2*1024*1024) / USB_MSC_BLOCK_SIZE) -/* Note: different class combination e.g CDC and (CDC + MSC) should have different - * PID since Host OS will "remembered" device driver after the first plug */ -#define USB_VID 0x239A -#define USB_PID 0x8029 - #ifdef __cplusplus } #endif diff --git a/variants/metro_nrf52840_express/variant.h b/variants/metro_nrf52840_express/variant.h index 6552c572..89bafdb9 100644 --- a/variants/metro_nrf52840_express/variant.h +++ b/variants/metro_nrf52840_express/variant.h @@ -136,11 +136,6 @@ static const uint8_t SCK = PIN_SPI_SCK ; // If EXTERNAL_FLASH_DEVICES is not defined, all supported devices will be used #define EXTERNAL_FLASH_DEVICES GD25Q16C -/* Note: different class combination e.g CDC and (CDC + MSC) should have different - * PID since Host OS will "remembered" device driver after the first plug */ -#define USB_VID 0x239A -#define USB_PID 0x803F - #ifdef __cplusplus } #endif diff --git a/variants/pca10056/variant.h b/variants/pca10056/variant.h index fe43b72a..035e2d4f 100644 --- a/variants/pca10056/variant.h +++ b/variants/pca10056/variant.h @@ -131,11 +131,6 @@ static const uint8_t SCK = PIN_SPI_SCK ; #define USB_MSC_BLOCK_SIZE 512 #define USB_MSC_BLOCK_COUNT ((8*1024*1024) / USB_MSC_BLOCK_SIZE) -/* Note: different class combination e.g CDC and (CDC + MSC) should have different - * PID since Host OS will "remembered" device driver after the first plug */ -#define USB_VID 0x239A -#define USB_PID 0x8029 - #ifdef __cplusplus } #endif