9d91111b1b
This started while adding USB MIDI support (and descriptor support is in this change.) When seeing that I'd have to implement the MIDI class logic twice, once for atmel-samd and once for nrf, I decided to refactor the USB stack so its shared across ports. This has led to a number of changes that remove items from the ports folder and move them into supervisor. Furthermore, we had external SPI flash support for nrf pending so I factored out the connection between the usb stack and the flash API as well. This PR also includes the QSPI support for nRF.
23 lines
566 B
Makefile
23 lines
566 B
Makefile
USB_VID = 0x239A
|
|
USB_PID = 0x802A
|
|
USB_PRODUCT = "PCA10059"
|
|
USB_MANUFACTURER = "Nordic Semiconductor"
|
|
|
|
MCU_SERIES = m4
|
|
MCU_VARIANT = nrf52
|
|
MCU_SUB_VARIANT = nrf52840
|
|
MCU_CHIP = nrf52840
|
|
SD ?= s140
|
|
SOFTDEV_VERSION ?= 6.1.0
|
|
|
|
BOOT_SETTING_ADDR = 0xFF000
|
|
BOOT_FILE = boards/$(BOARD)/bootloader/$(SOFTDEV_VERSION)/$(BOARD)_bootloader_$(SOFTDEV_VERSION)_s140
|
|
|
|
ifeq ($(SD),)
|
|
LD_FILE = boards/nrf52840_1M_256k.ld
|
|
else
|
|
LD_FILE = boards/adafruit_$(MCU_SUB_VARIANT)_$(SD_LOWER)_v$(firstword $(subst ., ,$(SOFTDEV_VERSION))).ld
|
|
endif
|
|
|
|
NRF_DEFINES += -DNRF52840_XXAA -DNRF52840
|