m1n1/proxyclient/m1n1/setup.py
Hector Martin d9561b7507 proxyclient: Big cleanup/move to module
All the common/importable stuff now lives in the 'm1n1' module.

General use tools are in tools/

Reverse engineering experiments are in experiments/

Signed-off-by: Hector Martin <marcan@marcan.st>
2021-06-10 19:40:48 +09:00

21 lines
394 B
Python

# SPDX-License-Identifier: MIT
import os, struct, sys, time
from .hv import HV
from .proxy import *
from .proxyutils import *
from .sysreg import *
from .tgtypes import *
from .utils import *
iface = UartInterface()
p = M1N1Proxy(iface, debug=False)
bootstrap_port(iface, p)
u = ProxyUtils(p)
mon = RegMonitor(u)
hv = HV(iface, p, u)
fb = u.ba.video.base
print(f"m1n1 base: 0x{u.base:x}")