File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ class USBDevice_SAMD21G18x {
61
61
inline void noRunInStandby () { usb.CTRLA .bit .RUNSTDBY = 0 ; }
62
62
inline void wakeupHost () { usb.CTRLB .bit .UPRSM = 1 ; }
63
63
64
+ // USB QoS
65
+ inline void setDataSensitiveQoS () { usb.QOSCTRL .bit .DQOS = 2 ; }
66
+ inline void setConfigSensitiveQoS () { usb.QOSCTRL .bit .CQOS = 2 ; }
67
+
64
68
// USB speed
65
69
inline void setFullSpeed () { usb.CTRLB .bit .SPDCONF = USB_DEVICE_CTRLB_SPDCONF_FS_Val; }
66
70
inline void setLowSpeed () { usb.CTRLB .bit .SPDCONF = USB_DEVICE_CTRLB_SPDCONF_LS_Val; }
Original file line number Diff line number Diff line change @@ -370,6 +370,8 @@ void USBDeviceClass::init()
370
370
usbd.reset ();
371
371
372
372
usbd.calibrate ();
373
+ usbd.setDataSensitiveQoS ();
374
+ usbd.setConfigSensitiveQoS ();
373
375
usbd.setUSBDeviceMode ();
374
376
usbd.runInStandby ();
375
377
usbd.setFullSpeed ();
You can’t perform that action at this time.
0 commit comments