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:
Mark Thompson
2023-08-29 23:26:58 -05:00
committed by GitHub
parent de81156223
commit 4774b3097f
3 changed files with 144 additions and 14 deletions

View File

@@ -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(),
};
};

View File

@@ -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__*/