Created
January 20, 2020 18:33
-
-
Save jacobrosenthal/14fcbaf267ebe1e37a1595f0460f7f98 to your computer and use it in GitHub Desktop.
usbtake3 vs 50ba1f2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/his-no-fail b/interrupts-and-dadd-and-rxstp-noep0 | |
index 1bb2661..b8ad1c8 100644 | |
--- a/his-no-fail | |
+++ b/interrupts-and-dadd-and-rxstp-noep0 | |
@@ -1,4 +1,5 @@ | |
+ | |
******** UsbBus::new | |
UsbBus::alloc_ep dir=In addr=None type=Interrupt max_packet_size=8 interval=255 | |
@@ -31,14 +32,14 @@ UsbBus::reset | |
USB_OTHER | |
ep 0 GOT SETUP | |
-UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 5, 12, 0, 0, 0, 0, 0] | |
+UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 5, 24, 0, 0, 0, 0, 0] | |
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0) | |
USB_TRCPT1 | |
ep 0 WRITE DONE | |
-UsbBus::set_device_address addr=12 | |
+UsbBus::set_device_address addr=24 | |
USB_OTHER | |
ep 0 GOT SETUP | |
@@ -120,70 +121,24 @@ ep 0 WRITE DONE | |
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0) | |
-USB_OTHER | |
-ep 0 GOT SETUP | |
- | |
-UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 1, 3, 9, 4, 2, 0] | |
- | |
-UsbBus::write 2 bytes [26, 3] to ep EndpointAddress(128) -> Ok(2) | |
- | |
-USB_TRCPT0 | |
-ep 0 WRITE DONE | |
- | |
-UsbBus::stall=false for Out 0 | |
- | |
USB_TRCPT1 | |
ep 0 READABLE | |
UsbBus::read from ep EndpointAddress(0) -> BufferOverflow | |
ep0 status after read: | |
- bk1rdy=0 stallrq1=0 stall1=0 trcpt1=0 trfail1=1 byte_count1=2 multi_packet_size1=0 | |
+ bk1rdy=0 stallrq1=0 stall1=0 trcpt1=0 trfail1=1 byte_count1=0 multi_packet_size1=0 | |
bk0rdy=0 stallrq0=0 stall0=0 trcpt0=0 trfail0=0 byte_count0=8 multi_packet_size0=0 | |
curbk=1 dtglin=1 dtglout=1 rxstp=1 lpmsusp=0 lpmnyet=0 ramacer=0 uprsm=0 eorsm=0 wakeup=1 eorst=0 sof=1 suspend=1 | |
-USB_OTHER | |
-ep 0 GOT SETUP | |
+UsbBus::stall=true for Out 0 | |
-USB_TRCPT0 | |
-USB_OTHER | |
-ep 0 GOT SETUP | |
- | |
-UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 3, 3, 9, 4, 2, 0] | |
+UsbBus::stall=true for In 0 | |
-UsbBus::write 2 bytes [10, 3] to ep EndpointAddress(128) -> Ok(2) | |
- | |
-USB_TRCPT0 | |
-ep 0 WRITE DONE | |
- | |
-UsbBus::stall=false for Out 0 | |
- | |
-USB_TRCPT1 | |
-ep 0 READABLE | |
- | |
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> [] | |
- | |
-USB_TRCPT0 | |
USB_OTHER | |
ep 0 GOT SETUP | |
-UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 3, 3, 9, 4, 10, 0] | |
- | |
-UsbBus::write 8 bytes [10, 3, 84, 0, 69, 0, 83, 0] to ep EndpointAddress(128) -> Ok(8) | |
- | |
-USB_TRCPT1 | |
-UsbBus::write 2 bytes [84, 0] to ep EndpointAddress(128) -> Ok(2) | |
- | |
-USB_TRCPT1 | |
-ep 0 WRITE DONE | |
- | |
-UsbBus::stall=false for Out 0 | |
- | |
USB_TRCPT0 | |
-ep 0 READABLE | |
- | |
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> [] | |
- | |
USB_OTHER | |
ep 0 GOT SETUP | |
@@ -200,22 +155,16 @@ ep 0 WRITE DONE | |
UsbBus::stall=false for Out 0 | |
USB_TRCPT1 | |
-ep 0 READABLE | |
- | |
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> [] | |
- | |
-USB_TRCPT0 | |
-USB_OTHER | |
ep 0 GOT SETUP | |
UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 2, 0, 0, 67, 0] | |
UsbBus::write 8 bytes [9, 2, 67, 0, 2, 1, 0, 128] to ep EndpointAddress(128) -> Ok(8) | |
-USB_TRCPT1 | |
+USB_OTHER | |
UsbBus::write 8 bytes [50, 9, 4, 0, 0, 1, 2, 2] to ep EndpointAddress(128) -> Ok(8) | |
-USB_TRCPT1 | |
+USB_TRCPT0 | |
UsbBus::write 8 bytes [0, 0, 5, 36, 0, 16, 1, 4] to ep EndpointAddress(128) -> Ok(8) | |
USB_TRCPT1 | |
@@ -260,6 +209,45 @@ ep 0 WRITE DONE | |
USB_OTHER | |
ep 0 GOT SETUP | |
+UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 3, 3, 9, 4, 2, 0] | |
+ | |
+UsbBus::write 2 bytes [10, 3] to ep EndpointAddress(128) -> Ok(2) | |
+ | |
+USB_TRCPT0 | |
+ep 0 WRITE DONE | |
+ | |
+UsbBus::stall=false for Out 0 | |
+ | |
+USB_TRCPT1 | |
+ep 0 READABLE | |
+ | |
+UsbBus::read 0 bytes from ep EndpointAddress(0) -> [] | |
+ | |
+USB_TRCPT0 | |
+USB_OTHER | |
+ep 0 GOT SETUP | |
+ | |
+UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 3, 3, 9, 4, 10, 0] | |
+ | |
+UsbBus::write 8 bytes [10, 3, 84, 0, 69, 0, 83, 0] to ep EndpointAddress(128) -> Ok(8) | |
+ | |
+USB_TRCPT1 | |
+UsbBus::write 2 bytes [84, 0] to ep EndpointAddress(128) -> Ok(2) | |
+ | |
+USB_TRCPT0 | |
+ep 0 WRITE DONE | |
+ | |
+UsbBus::stall=false for Out 0 | |
+ | |
+USB_TRCPT1 | |
+ep 0 READABLE | |
+ | |
+UsbBus::read 0 bytes from ep EndpointAddress(0) -> [] | |
+ | |
+USB_TRCPT0 | |
+USB_OTHER | |
+ep 0 GOT SETUP | |
+ | |
UsbBus::read 8 bytes from ep EndpointAddress(0) -> [33, 34, 3, 0, 0, 0, 0, 0] | |
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0) | |
@@ -309,24 +297,25 @@ UsbBus::read 7 bytes from ep EndpointAddress(0) -> [128, 37, 0, 0, 0, 0, 8] | |
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0) | |
-USB_TRCPT1 | |
+USB_OTHER | |
ep 0 WRITE DONE | |
-USB_OTHER | |
+USB_TRCPT1 | |
ep 0 GOT SETUP | |
UsbBus::read 8 bytes from ep EndpointAddress(0) -> [33, 32, 0, 0, 0, 0, 7, 0] | |
-USB_TRCPT0 | |
+USB_OTHER | |
ep 0 READABLE | |
UsbBus::read 7 bytes from ep EndpointAddress(0) -> [128, 37, 0, 0, 0, 0, 8] | |
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0) | |
-USB_TRCPT1 | |
+USB_TRCPT0 | |
ep 0 WRITE DONE | |
+USB_TRCPT1 | |
USB_OTHER | |
ep 0 GOT SETUP | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment