trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

Display driver refactoring

Open cepetr opened this issue 1 year ago • 0 comments

This PR focuses on refactoring the display driver and preparing it for entering and exiting low power mode.

[!!not ready for review yet]

  1. Introduces new initialization and deinitialization routines: display_init(mode) and display_deinit(mode). These replace the previously used display_init(), display_reinit(), and display_finish_actions.
  2. Splits ensure_compatible_settings() into a new function specific to the T model and incorporates the rest inside new display_init/display_deinit logic.
  3. Enhances the robustness of the display driver API by introducing an initialized state to all display drivers.

cepetr avatar Jun 25 '24 11:06 cepetr