bunnie
e829b4b4fb
cleanup debug info in main
2025-02-28 16:37:28 +08:00
bunnie
bda9340045
cleanup pass-by ref change it blitstr api
2025-02-28 16:36:51 +08:00
bunnie
4710b416be
cleanup trait implementation to match modifications
...
remove mutability from get_pixel
2025-02-28 16:36:24 +08:00
bunnie
ebd9b6e823
cleanup emulation layer to match hardware exactly
2025-02-28 16:36:06 +08:00
bunnie
a21dd3572d
try to eliminate floating point debug prints
...
for some reason the loader has a lot of code devoted to formatting
debug prints of floating point numbers. In the version of the loader
that's being built for production I think we shouldn't need any
of this?
2025-02-28 16:34:51 +08:00
bunnie
c58edf9598
use the loader version of copy object call for copying the loader
...
this handles the special case of not inserting RAM-based data segments into
the ROM.
2025-02-28 16:33:58 +08:00
bunnie
67e501328d
mirror code structure from hosted mode
2025-02-28 16:33:31 +08:00
bunnie
317bc6a9fd
related to previous commit
2025-02-28 16:33:14 +08:00
bunnie
e0ef852d06
fix routine so we're passing by reference, not by copy
...
this is just an "old code" problem, written before I fully understood
these subtleties
2025-02-28 16:32:32 +08:00
bunnie
8f48572b9c
restrict font choices in baosec target
...
we have a smaller font map, so don't resolve glyphs to fonts
that we don't have.
2025-02-28 16:32:03 +08:00
bunnie
dde034c101
document the safety issue vs USB static mut in the loader
...
I think we're OK to get away with this, but, it's a pretty big
set of assumptions we're making so let's write it up in a location
that we're likely to look at if/when things break.
2025-02-28 16:31:17 +08:00
bunnie
46b0e6b842
fix loader edge case with static data
...
include a check for assumption violations, and some explanation
on how this all comes about
2025-02-28 16:23:54 +08:00
bunnie
002bc74d3f
fix text rotation
2025-02-27 21:38:03 +08:00
bunnie
420800f329
fix text location with fb rotations
2025-02-27 21:37:08 +08:00
bunnie
836ccacf64
change polarity of dark color in fill
2025-02-27 21:36:43 +08:00
bunnie
48009c710a
regenerate logo according to new framebuffer layout
2025-02-27 21:35:10 +08:00
bunnie
b29d885000
fix various driver bugs & harmonize wih precursor color "standard"
2025-02-27 21:33:31 +08:00
bunnie
3d0d727094
fix bits vs bytes
2025-02-27 21:33:10 +08:00
bunnie
729a0ca6b9
remove buffer swap calls
...
we now go between a ram-based compositing buffer and the hw
buffer which effectively gives us our double buffer
2025-02-27 03:14:45 +08:00
bunnie
216ff46e29
fix font rendering due to fb orientation adjustments
2025-02-27 03:14:21 +08:00
bunnie
1646b2913e
add feature flag to gate out sh1107 bit ordering routine
2025-02-27 03:13:58 +08:00
bunnie
89b39303f1
add a routine for characterizing bit order in frame buffer
2025-02-27 03:13:33 +08:00
bunnie
f3fccf9135
fix unnecessary mutability in trait
2025-02-27 03:12:41 +08:00
bunnie
9abc920bb2
refactor sh1107 driver so pixels in fb line up with bits in u32
2025-02-27 03:12:15 +08:00
bunnie
9309a700ef
Merge pull request #627 from betrusted-io/modals-refactor
...
Fix minor issues in native build targets
2025-02-26 15:01:04 +08:00
bunnie
3e11c37400
fix missing path expansion in precursor target
2025-02-26 14:59:23 +08:00
bunnie
3ed1b2d707
Merge branch 'main' into pddb-feat-down
2025-02-26 14:58:05 +08:00
bunnie
6e26db411a
Merge branch 'main' into cram-dev
2025-02-26 14:57:55 +08:00
bunnie
ef670a64a6
add note about message loop refactor
2025-02-26 14:50:37 +08:00
bunnie
2b2797601b
Merge pull request #626 from betrusted-io/modals-refactor
...
WIP Implement graphics layer on baosec target
2025-02-26 14:50:08 +08:00
bunnie
4f067dc090
add gfx-testing option to bao-video
2025-02-26 14:46:47 +08:00
bunnie
cd34d0179e
harmonize the apis in bao-video
2025-02-26 14:46:01 +08:00
bunnie
f3ff84cd05
fix off by one in bounds check for display size
2025-02-26 14:45:31 +08:00
bunnie
f5473868b1
fix return calls to use scalar5 instead of scalar2
2025-02-26 14:37:20 +08:00
bunnie
4096b35fef
refactor shared implementation to use reply and receive next api
2025-02-26 14:36:50 +08:00
bunnie
d0793b0aef
fix dependencies on testing routine
2025-02-26 14:36:26 +08:00
bunnie
111d8f8d3d
refactor graphics server to use reply_and_receive_next()
...
This new api allows for scalar-5 returns as well as more
efficient use of the scheduler's quantum by not simply yielding
time when a message is returned; it will fetch the next message
and process it until its time is up.
2025-02-26 14:35:33 +08:00
bunnie
79f803ef58
add video deps
2025-02-24 02:42:29 +08:00
bunnie
f2d59e1ec6
fixup emulation to read the raw bitmaps identically to hardware
2025-02-24 02:41:57 +08:00
bunnie
a66a541488
pass the cramium-soc flag to blitstr2 when compiling for hardware
2025-02-24 02:30:07 +08:00
bunnie
c2714dca12
note fontmap hard-coded location inside link file
2025-02-24 02:29:41 +08:00
bunnie
2a97d9a827
fix location of font offsets
2025-02-24 02:28:34 +08:00
bunnie
275ae9b96c
fix warnings
2025-02-24 00:59:20 +08:00
bunnie
8baaf201e6
fix back buffer swapping
2025-02-24 00:58:57 +08:00
bunnie
f922274070
fix configuration
2025-02-24 00:58:38 +08:00
bunnie
96811143fd
use the blit routine in the library for the loader logo
2025-02-24 00:58:09 +08:00
bunnie
ffceea0389
fix blit_screen routine
2025-02-24 00:57:53 +08:00
bunnie
a9c9d8d67b
commit generated logo
2025-02-24 00:57:03 +08:00
bunnie
d281332b16
fixup conversion to simplify the image blit operation
2025-02-24 00:56:33 +08:00
bunnie
0eef3cd0e4
cleanup warnings
2025-02-23 18:20:29 +08:00