clean up
This commit is contained in:
1 parent
343ff9571e
commit
1ab4bffd4c
2 files changed
+13
-2
No files matched your search
@@ -2,6 +2,12 @@
|
||||
|
||||
# 0.10.5
|
||||
|
||||
- Fixed Feather nRF52840 Express's qspi driver to work with on-board flash device
|
||||
- Rework USB driver using Adafruit_TinyUSB library
|
||||
- Added Metro nRF52840 Express
|
||||
|
||||
# 0.10.1
|
||||
|
||||
This release added multiple concurrent peripheral connections support, allow Bluefruit device to multiple central (phones/PC) simultaneously. It introduces new BLE class: BLEPeriph, BLEConnection, remove BLEGap, refactor/rename/move functions and callbacks.
|
||||
|
||||
- Fixed Servo detach issue
|
||||
|
||||
@@ -81,9 +81,8 @@ static void usb_hardware_init(void)
|
||||
if ( usb_reg & POWER_USBREGSTATUS_OUTPUTRDY_Msk ) tusb_hal_nrf_power_event(NRFX_POWER_USB_EVT_READY);
|
||||
}
|
||||
|
||||
void Adafruit_TinyUSB_Core_init(void)
|
||||
static void load_serial_number(void)
|
||||
{
|
||||
// Create Serial string descriptor
|
||||
char tmp_serial[17];
|
||||
sprintf(tmp_serial, "%08lX%08lX", NRF_FICR->DEVICEID[1], NRF_FICR->DEVICEID[0]);
|
||||
|
||||
@@ -92,6 +91,12 @@ void Adafruit_TinyUSB_Core_init(void)
|
||||
usb_desc_str_serial[1+i] = tmp_serial[i];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Adafruit_TinyUSB_Core_init(void)
|
||||
{
|
||||
// Create Serial string descriptor
|
||||
load_serial_number();
|
||||
|
||||
USBDevice.addInterface( (Adafruit_USBD_Interface&) Serial);
|
||||
USBDevice.setID(USB_VID, USB_PID);
|
||||
|
||||
Reference in new issue
Block a user