mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 05:17:39 +00:00
Support for displaying stack on screen after a fault (for debug) (#1416)
* Support for displaying stack on screen after a fault * Update debug.cpp * Highlight possible addresses on stack & support Up key * Add small background white style * Add small background white style * Update debug.cpp * Highlight fault PC in yellow * Add bg_yellow_small style * Add bg_yellow_small style * Clang - trailing space
This commit is contained in:
@@ -44,6 +44,18 @@ const Style Styles::white_small{
|
||||
.foreground = Color::white(),
|
||||
};
|
||||
|
||||
const Style Styles::bg_white_small{
|
||||
.font = ui::font::fixed_5x8,
|
||||
.background = ui::Color::white(),
|
||||
.foreground = ui::Color::black(),
|
||||
};
|
||||
|
||||
const Style Styles::bg_yellow_small{
|
||||
.font = ui::font::fixed_5x8,
|
||||
.background = ui::Color::yellow(),
|
||||
.foreground = ui::Color::black(),
|
||||
};
|
||||
|
||||
const Style Styles::yellow{
|
||||
.font = font::fixed_8x16,
|
||||
.background = Color::black(),
|
||||
@@ -102,4 +114,4 @@ const Style Styles::orange{
|
||||
.font = font::fixed_8x16,
|
||||
.background = Color::black(),
|
||||
.foreground = Color::orange(),
|
||||
};
|
||||
};
|
||||
|
@@ -37,6 +37,12 @@ class Styles {
|
||||
/* White foreground, small font. */
|
||||
static const Style white_small;
|
||||
|
||||
/* White background, small font. */
|
||||
static const Style bg_white_small;
|
||||
|
||||
/* Red background, small font. */
|
||||
static const Style bg_yellow_small;
|
||||
|
||||
/* Yellow foreground. */
|
||||
static const Style yellow;
|
||||
|
||||
@@ -70,4 +76,4 @@ class Styles {
|
||||
|
||||
} // namespace ui
|
||||
|
||||
#endif /*__UI_STYLES_H__*/
|
||||
#endif /*__UI_STYLES_H__*/
|
||||
|
Reference in New Issue
Block a user