1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 01:18:28 +00:00

feat(core): add reset state on display clear on model R. Added to rest of the models as noop.

This commit is contained in:
tychovrahe 2022-04-29 10:42:40 +02:00 committed by matejcik
parent 58041036f5
commit bd476769cc
4 changed files with 9 additions and 0 deletions

View File

@ -89,6 +89,8 @@ void PIXELDATA(uint16_t c) {
}
}
static void display_reset_state() {}
void PIXELDATA_DIRTY() { pixeldata_dirty = true; }
static void display_set_window(uint16_t x0, uint16_t y0, uint16_t x1,

View File

@ -91,6 +91,8 @@ static uint32_t display_identify(void) {
return id;
}
static void display_reset_state() {}
static void __attribute__((unused)) display_sleep(void) {
uint32_t id = display_identify();
if ((id == DISPLAY_ID_ILI9341V) || (id == DISPLAY_ID_GC9307) ||

View File

@ -98,6 +98,8 @@ void PIXELDATA(uint16_t c) {
}
}
static void display_reset_state() {}
void display_init_seq(void) {}
void display_deinit(void) {

View File

@ -158,6 +158,9 @@ static inline void clamp_coords(int x, int y, int w, int h, int *x0, int *y0,
void display_clear(void) {
const int saved_orientation = DISPLAY_ORIENTATION;
display_reset_state();
// set MADCTL first so that we can set the window correctly next
display_orientation(0);
// address the complete frame memory