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:
parent
58041036f5
commit
bd476769cc
@ -89,6 +89,8 @@ void PIXELDATA(uint16_t c) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void display_reset_state() {}
|
||||||
|
|
||||||
void PIXELDATA_DIRTY() { pixeldata_dirty = true; }
|
void PIXELDATA_DIRTY() { pixeldata_dirty = true; }
|
||||||
|
|
||||||
static void display_set_window(uint16_t x0, uint16_t y0, uint16_t x1,
|
static void display_set_window(uint16_t x0, uint16_t y0, uint16_t x1,
|
||||||
|
@ -91,6 +91,8 @@ static uint32_t display_identify(void) {
|
|||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void display_reset_state() {}
|
||||||
|
|
||||||
static void __attribute__((unused)) display_sleep(void) {
|
static void __attribute__((unused)) display_sleep(void) {
|
||||||
uint32_t id = display_identify();
|
uint32_t id = display_identify();
|
||||||
if ((id == DISPLAY_ID_ILI9341V) || (id == DISPLAY_ID_GC9307) ||
|
if ((id == DISPLAY_ID_ILI9341V) || (id == DISPLAY_ID_GC9307) ||
|
||||||
|
@ -98,6 +98,8 @@ void PIXELDATA(uint16_t c) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void display_reset_state() {}
|
||||||
|
|
||||||
void display_init_seq(void) {}
|
void display_init_seq(void) {}
|
||||||
|
|
||||||
void display_deinit(void) {
|
void display_deinit(void) {
|
||||||
|
@ -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) {
|
void display_clear(void) {
|
||||||
const int saved_orientation = DISPLAY_ORIENTATION;
|
const int saved_orientation = DISPLAY_ORIENTATION;
|
||||||
|
|
||||||
|
display_reset_state();
|
||||||
|
|
||||||
// set MADCTL first so that we can set the window correctly next
|
// set MADCTL first so that we can set the window correctly next
|
||||||
display_orientation(0);
|
display_orientation(0);
|
||||||
// address the complete frame memory
|
// address the complete frame memory
|
||||||
|
Loading…
Reference in New Issue
Block a user