trezor-firmware
trezor-firmware copied to clipboard
Display driver refactoring
This PR focuses on refactoring the display driver and preparing it for entering and exiting low power mode.
[!!not ready for review yet]
- Introduces new initialization and deinitialization routines:
display_init(mode)anddisplay_deinit(mode). These replace the previously useddisplay_init(),display_reinit(), anddisplay_finish_actions. - Splits
ensure_compatible_settings()into a new function specific to the T model and incorporates the rest inside newdisplay_init/display_deinitlogic. - Enhances the robustness of the display driver API by introducing an
initializedstate to all display drivers.