File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ class USBDevice_SAMD21G18x {
50
50
inline void noRunInStandby () { usb.CTRLA .bit .RUNSTDBY = 0 ; }
51
51
inline void wakeupHost () { usb.CTRLB .bit .UPRSM = 1 ; }
52
52
53
+ // USB QoS
54
+ inline void setDataSensitiveQoS () { usb.QOSCTRL .bit .DQOS = 2 ; }
55
+ inline void setConfigSensitiveQoS () { usb.QOSCTRL .bit .CQOS = 2 ; }
56
+
53
57
// USB speed
54
58
inline void setFullSpeed () { usb.CTRLB .bit .SPDCONF = USB_DEVICE_CTRLB_SPDCONF_FS_Val; }
55
59
inline void setLowSpeed () { usb.CTRLB .bit .SPDCONF = USB_DEVICE_CTRLB_SPDCONF_LS_Val; }
Original file line number Diff line number Diff line change @@ -295,6 +295,8 @@ void USBDeviceClass::init()
295
295
usbd.reset ();
296
296
297
297
usbd.calibrate ();
298
+ usbd.setDataSensitiveQoS ();
299
+ usbd.setConfigSensitiveQoS ();
298
300
usbd.setUSBDeviceMode ();
299
301
usbd.runInStandby ();
300
302
usbd.setFullSpeed ();
You can’t perform that action at this time.
0 commit comments