Merge pull request #257 from adafruit/develop

update usb, add Adafruit_TinyUSB_core support
This commit is contained in:
hathach authored and GitHub committed 2019-04-29 10:21:28 +07:00
commit a317abe152
244 files changed
+38463 -13956

No files matched your search

@@ -22,8 +22,6 @@
#include "wiring_constants.h"
#include "wiring_digital.h"
#include "nrf.h"
#include "usb.h"
#include "flash/flash_qspi.h"
const uint32_t g_ADigitalPinMap[] =
@@ -107,13 +105,7 @@ void initVariant()
pinMode(PIN_LED2, OUTPUT);
ledOff(PIN_LED2);
#if 0 // disable QSPI flash for now
// Init External Flash
flash_qspi_init();
#endif
// USB init
usb_init();
}
+8 -1
View File
@@ -133,9 +133,16 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_QSPI_DATA3 32
// On-board QSPI Flash
// If EXTERNAL_FLASH_DEVICES is not defined, all supported devices will be used
#define EXTERNAL_FLASH_DEVICES GD25Q16C
#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