Skip to content

Instantly share code, notes, and snippets.

@jacobrosenthal
Created January 20, 2020 03:00
Show Gist options
  • Save jacobrosenthal/cf4e909558c4f3ef4c03fa378d64e39e to your computer and use it in GitHub Desktop.
Save jacobrosenthal/cf4e909558c4f3ef4c03fa378d64e39e to your computer and use it in GitHub Desktop.
diff --git a/upstream b/his
index 014cd90..5d7a54c 100644
--- a/upstream
+++ b/his
@@ -23,32 +23,22 @@ alloc_ep -> EndpointAddress(128)
UsbBus::enable
-USB_OTHER
-PollResult::Suspend
-
-UsbBus::suspend
-
-USB_OTHER
-PollResult::Suspend
-
USB_OTHER
PollResult::Reset
-UsbBus::resume
-
UsbBus::reset
USB_OTHER
ep 0 GOT SETUP
-UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 5, 10, 0, 0, 0, 0, 0]
+UsbBus::read 8 bytes from ep EndpointAddress(0) -> [0, 5, 6, 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=10
+UsbBus::set_device_address addr=6
USB_OTHER
ep 0 GOT SETUP
@@ -57,19 +47,15 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 1, 0, 0, 8, 0]
UsbBus::write 8 bytes [18, 1, 0, 2, 2, 0, 0, 8] to ep EndpointAddress(128) -> Ok(8)
-USB_TRCPT0
-ep 0 WRITE DONE
+USB_OTHER
+ep 0 WRITE Fail
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
-USB_TRCPT1
-ep 0 READABLE
-
-UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
-
-UsbBus::stall=true for Out 0
+USB_TRCPT0
+ep 0 WRITE DONE
-UsbBus::stall=true for In 0
+UsbBus::stall=false for Out 0
USB_OTHER
ep 0 GOT SETUP
@@ -78,7 +64,6 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 1, 0, 0, 18, 0]
UsbBus::write 8 bytes [18, 1, 0, 2, 2, 0, 0, 8] to ep EndpointAddress(128) -> Ok(8)
-USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -86,22 +71,27 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 1, 0, 0, 18, 0]
UsbBus::write 8 bytes [18, 1, 0, 2, 2, 0, 0, 8] to ep EndpointAddress(128) -> Ok(8)
-USB_TRCPT1
+USB_TRCPT0
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [192, 22, 221, 39, 16, 0, 1, 2] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 2 bytes [3, 1] to ep EndpointAddress(128) -> Ok(2)
-USB_TRCPT1
+USB_TRCPT0
ep 0 WRITE DONE
UsbBus::stall=false for Out 0
-USB_TRCPT0
+USB_TRCPT1
ep 0 READABLE
UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
+USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -127,9 +117,13 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 2, 3, 9, 4, 24, 0]
UsbBus::write 8 bytes [24, 3, 83, 0, 101, 0, 114, 0] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT0
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [105, 0, 97, 0, 108, 0, 32, 0] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [112, 0, 111, 0, 114, 0, 116, 0] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT0
@@ -137,7 +131,12 @@ ep 0 WRITE DONE
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
-USB_TRCPT1
+USB_OTHER
+ep 0 WRITE DONE
+
+UsbBus::stall=false for Out 0
+
+USB_TRCPT0
ep 0 GOT SETUP
UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 1, 3, 9, 4, 2, 0]
@@ -145,10 +144,23 @@ 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_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 0 bytes from ep EndpointAddress(0) -> []
+
+USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -156,13 +168,19 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 1, 3, 9, 4, 26, 0]
UsbBus::write 8 bytes [26, 3, 70, 0, 97, 0, 107, 0] to ep EndpointAddress(128) -> Ok(8)
-USB_TRCPT0
+USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [101, 0, 32, 0, 99, 0, 111, 0] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [109, 0, 112, 0, 97, 0, 110, 0] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 2 bytes [121, 0] to ep EndpointAddress(128) -> Ok(2)
USB_TRCPT0
@@ -175,7 +193,6 @@ ep 0 READABLE
UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
-USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -201,19 +218,20 @@ 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_TRCPT0
+ep 0 WRITE Fail
+
UsbBus::write 2 bytes [84, 0] to ep EndpointAddress(128) -> Ok(2)
-USB_TRCPT0
+USB_TRCPT1
ep 0 WRITE DONE
UsbBus::stall=false for Out 0
-USB_TRCPT1
+USB_TRCPT0
ep 0 READABLE
UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
-USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -222,6 +240,8 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 2, 0, 0, 9, 0]
UsbBus::write 8 bytes [9, 2, 67, 0, 2, 1, 0, 128] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 1 bytes [50] to ep EndpointAddress(128) -> Ok(1)
USB_TRCPT0
@@ -235,9 +255,9 @@ ep 0 READABLE
UsbBus::read from ep EndpointAddress(0) -> BufferOverflow
ep0 status after read:
- bk1rdy=0 stallrq1=0 stall1=1 trcpt1=0 trfail1=1 byte_count1=1 multi_packet_size1=0
+ bk1rdy=0 stallrq1=0 stall1=0 trcpt1=0 trfail1=1 byte_count1=1 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=0 suspend=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
@@ -251,6 +271,8 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [128, 6, 0, 2, 0, 0, 9, 0]
UsbBus::write 8 bytes [9, 2, 67, 0, 2, 1, 0, 128] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 1 bytes [50] to ep EndpointAddress(128) -> Ok(1)
USB_TRCPT0
@@ -263,7 +285,6 @@ ep 0 READABLE
UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
-USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -271,40 +292,57 @@ 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_TRCPT0
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [50, 9, 4, 0, 0, 1, 2, 2] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [0, 0, 5, 36, 0, 16, 1, 4] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [36, 2, 0, 5, 36, 6, 0, 1] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [5, 36, 1, 0, 1, 7, 5, 129] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [3, 8, 0, 255, 9, 4, 1, 0] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [2, 10, 0, 0, 0, 7, 5, 130] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 8 bytes [2, 64, 0, 0, 7, 5, 1, 2] to ep EndpointAddress(128) -> Ok(8)
USB_TRCPT1
+ep 0 WRITE Fail
+
UsbBus::write 3 bytes [64, 0, 0] to ep EndpointAddress(128) -> Ok(3)
-USB_TRCPT1
+USB_TRCPT0
ep 0 WRITE DONE
UsbBus::stall=false for Out 0
-USB_TRCPT0
+USB_TRCPT1
ep 0 READABLE
UsbBus::read 0 bytes from ep EndpointAddress(0) -> []
+USB_TRCPT0
USB_OTHER
ep 0 GOT SETUP
@@ -323,6 +361,8 @@ 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)
USB_TRCPT1
+ep 0 WRITE DONE
+
USB_OTHER
ep 0 GOT SETUP
@@ -443,6 +483,11 @@ UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
USB_TRCPT1
ep 0 WRITE DONE
+USB_TRCPT0
+ep 1 READABLE
+
+UsbBus::read 1 bytes from ep EndpointAddress(1) -> [71]
+
USB_OTHER
ep 0 GOT SETUP
@@ -450,8 +495,5 @@ UsbBus::read 8 bytes from ep EndpointAddress(0) -> [33, 34, 0, 0, 0, 0, 0, 0]
UsbBus::write 0 bytes [] to ep EndpointAddress(128) -> Ok(0)
-UsbBus::read 1 bytes from ep EndpointAddress(1) -> [71]
-
USB_TRCPT1
ep 0 WRITE DONE
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment