1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-07 15:18:08 +00:00
trezor-firmware/core/src/session.py
tychovrahe d237e155d6 feat(core): rudimentary BLE support
[no changelog]

Co-authored-by: Martin Milata <martin@martinmilata.cz>
2024-01-25 00:21:19 +01:00

38 lines
674 B
Python

# isort: skip_file
from trezor import log, loop, utils, wire, workflow
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)
if utils.USE_BLE:
from apps.management import ble
ble.boot()
loop.run()
if __debug__:
log.debug(__name__, "Restarting main loop")