sunnypilot v2026.002.000
version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
This commit is contained in:
commit
de77c89cf6
3995 files changed
+1260688
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import array, time, ctypes, struct, random
|
||||
from hexdump import hexdump
|
||||
from tinygrad.runtime.support.usb import ASMController, WriteOp
|
||||
from tinygrad.runtime.autogen import pci
|
||||
from tinygrad.helpers import Timing
|
||||
from tinygrad import Device
|
||||
|
||||
usb = ASMController()
|
||||
|
||||
xxx = (ctypes.c_uint8 * 4096)()
|
||||
dfg = random.randint(0, 255)
|
||||
for i in range(len(xxx)): xxx[i] = dfg
|
||||
|
||||
print(dfg, usb.read(0xf000, 0x10))
|
||||
|
||||
with Timing():
|
||||
for i in range(64): usb.scsi_write(xxx)
|
||||
|
||||
with Timing():
|
||||
for i in range(64): usb.read(0xf000, 0x1000)
|
||||
|
||||
exit(0)
|
||||
Reference in new issue
Block a user