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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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(),
};
};