fix handling of DTGLIN

This commit is contained in:
sago35
2022-05-27 19:24:05 +09:00
parent 297d3cbcc2
commit 27a9e5d764
+1 -2
View File
@@ -1122,8 +1122,7 @@ func (d *dhw) endpointStall(endpoint uint8, stall bool) {
sam.USB_DEVICE_ENDPOINT_EPSTATUSCLR_DTGLOUT) sam.USB_DEVICE_ENDPOINT_EPSTATUSCLR_DTGLOUT)
case txEndpoint(endpoint): case txEndpoint(endpoint):
d.bus.DEVICE_ENDPOINT[endpointNumber(endpoint)].EPSTATUSCLR.Set( d.bus.DEVICE_ENDPOINT[endpointNumber(endpoint)].EPSTATUSCLR.Set(
sam.USB_DEVICE_ENDPOINT_EPSTATUSCLR_STALLRQ1 | sam.USB_DEVICE_ENDPOINT_EPSTATUSCLR_STALLRQ1)
sam.USB_DEVICE_ENDPOINT_EPSTATUSCLR_DTGLIN)
} }
} }
num, dir := unpackEndpoint(endpoint) num, dir := unpackEndpoint(endpoint)