2023-08-15 15:56:09 +00:00
|
|
|
# isort: skip_file
|
2021-05-26 10:01:47 +00:00
|
|
|
from trezor import log, loop, utils, wire, workflow
|
2021-03-22 14:47:43 +00:00
|
|
|
|
|
|
|
import apps.base
|
|
|
|
import usb
|
|
|
|
|
|
|
|
apps.base.boot()
|
|
|
|
|
|
|
|
if not utils.BITCOIN_ONLY and usb.ENABLE_IFACE_WEBAUTHN:
|
|
|
|
import apps.webauthn
|
|
|
|
|
|
|
|
apps.webauthn.boot()
|
|
|
|
|
|
|
|
if __debug__:
|
|
|
|
import apps.debug
|
|
|
|
|
|
|
|
apps.debug.boot()
|
|
|
|
|
|
|
|
# run main event loop and specify which screen is the default
|
|
|
|
apps.base.set_homescreen()
|
|
|
|
workflow.start_default()
|
|
|
|
|
|
|
|
# initialize the wire codec
|
|
|
|
wire.setup(usb.iface_wire)
|
|
|
|
if __debug__:
|
|
|
|
wire.setup(usb.iface_debug, is_debug_session=True)
|
|
|
|
|
|
|
|
loop.run()
|
2021-05-26 10:01:47 +00:00
|
|
|
|
|
|
|
if __debug__:
|
|
|
|
log.debug(__name__, "Restarting main loop")
|