Commit graph

10340 commits

Author SHA1 Message Date
bunnie
1e007035cb modify bao-video to use shared handlers 2025-02-23 18:08:50 +08:00
bunnie
e0462f1603 modify graphics-server to use shared handlers 2025-02-23 18:07:16 +08:00
bunnie
55cbe7a962 add module ref to handlers 2025-02-23 18:06:45 +08:00
bunnie
d50d228984 move baseline graphics handlers to a shared library 2025-02-23 18:06:25 +08:00
bunnie
e1a606f0bb add routines to create a clone of the display itself
this is an unsafe bit of code that is necessary because the
panic handler needs to run in its own thread with a hardware
handle to the frame buffer. this allows panics in the main
graphics thread to not cause the panic handler to fail.
2025-02-23 16:54:04 +08:00
bunnie
b7ef119a04 split pin numbers from pin setting
this allows us to probe pins/clone them without having to re-allocate
them.
2025-02-23 16:53:28 +08:00
bunnie
20f96f189a fix typo 2025-02-23 16:52:59 +08:00
bunnie
172333c078 accommodate panic handler 2025-02-23 16:52:49 +08:00
bunnie
ef6ce40117 implement panic handler - first draft, untested 2025-02-23 16:52:32 +08:00
bunnie
8bd01bd65d
Merge branch 'main' into pddb-feat-down 2025-02-23 12:15:49 +08:00
bunnie
0d5a4e8e91
Merge branch 'main' into cram-dev 2025-02-23 12:15:37 +08:00
bunnie
c3051c0332 fix dangling reference to dependency 2025-02-23 12:14:46 +08:00
bunnie
8c9abf6c5b add implemnetation for most graphics primitives
this is mostly a copy of what's in graphics-server. Perhaps
we can find a way to share the code between the two, but I
am going to leave it duplicated for now because it's unclear
if I can use this implementation as-is, or if it needs lots
of modifications.

If it turns out to basically work without mods, then, we can
wrap a bunch of the opcode dispatch into mega-function perhaps
that takes a display and opcode as parameters and wraps a lot
of the boilerplate into a re-usable routine.
2025-02-23 12:05:00 +08:00
bunnie
9f890d3dbd add camera irq opcode to main graphics handler opcode list 2025-02-23 12:04:17 +08:00
bunnie
460b1543f0 add missing drawing primitives to hosted mode abstraction 2025-02-23 12:03:55 +08:00
bunnie
ef79ececb7 modify graphics-server to ignore unimplemented opcodes
the opcode list is shared between multiple implementations, so
an invalid opcode might not necessarily be a severe bug.
2025-02-23 12:03:09 +08:00
bunnie
f37df2b1cb add hardware primitives missing for graphics layer compatibility 2025-02-23 12:02:37 +08:00
bunnie
1429944ff3 remove interim boot logo 2025-02-23 12:02:11 +08:00
bunnie
28122b764e point bootloader at the new logo 2025-02-23 12:01:22 +08:00
bunnie
e157d6e242 add placeholder panic server 2025-02-23 12:01:01 +08:00
bunnie
d7e9d82cb8 update change log 2025-02-23 12:00:46 +08:00
bunnie
35fe7ed73f add bitmaps for logos 2025-02-23 11:56:57 +08:00
bunnie
8c89189d69
Merge pull request #625 from betrusted-io/modals-refactor
fix cargo doc errors
2025-02-22 01:09:55 +08:00
bunnie
fabb3174c7 specify the doc-deps feature in ux-api so that cargo doc builds correctly 2025-02-22 01:07:31 +08:00
bunnie
7e57af5841 add documentation target for library
this helps cargo doc to run
2025-02-22 01:07:12 +08:00
bunnie
56123fea8d fix doc warnings 2025-02-22 01:07:01 +08:00
bunnie
b8b1bfed03 fix doc warnings 2025-02-22 01:06:46 +08:00
bunnie
f66970ad11
Merge pull request #624 from betrusted-io/modals-refactor
Move graphics-server platform independent libraries to ux-api
2025-02-22 00:40:46 +08:00
bunnie
9d76eda111 modify graphics-server to use the framebuffer trait 2025-02-21 23:43:26 +08:00
bunnie
10b7246bcc modify graphics-server backends to use the framebuffer traits 2025-02-21 23:43:05 +08:00
bunnie
d3278fccf4 add missing trait implementations
these aren't currently used, and probably won't be used in
the future? so just some stand-in code is used that isn't
too carefully thought-out.
2025-02-21 23:42:17 +08:00
bunnie
cc8a0a57a7 fixup apis to use traits 2025-02-21 23:42:01 +08:00
bunnie
8acb9e7521 add platform implementations of the frame buffer trait 2025-02-21 23:41:44 +08:00
bunnie
b352ecb667 remove platform-specific operation and replace with a trait 2025-02-21 23:41:19 +08:00
bunnie
d9d48262ac expand FrameBuffer trait to interop with precursor details 2025-02-21 23:09:45 +08:00
bunnie
7c4a97da97 formatting fixes 2025-02-21 18:02:20 +08:00
bunnie
629d5c632d cleanup redundant files
this code has now all been migrated to ux-api
2025-02-21 17:58:29 +08:00
bunnie
1af76ed1df reflect transition of graphics-server to ux-api in lock file 2025-02-21 17:52:56 +08:00
bunnie
69c2b84e42 bao-video: fix dependencies and minor API tweaks due to ux-api refactor 2025-02-21 17:52:41 +08:00
bunnie
2172046424 cleanup api changes related to opcode call renaming 2025-02-21 17:51:25 +08:00
bunnie
81a9355ef8 vault: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:51:04 +08:00
bunnie
09bf7f00e4 transientdisk: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:50:56 +08:00
bunnie
6a407f52ac repl: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:50:49 +08:00
bunnie
4b5e9a3b7d mtxcli: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:50:38 +08:00
bunnie
cb279ede59 mtxchat: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:50:30 +08:00
bunnie
8c29f008ab hidv2: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:50:19 +08:00
bunnie
62e489f583 hello: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:50:10 +08:00
bunnie
c6ee784da8 chat-test: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:49:59 +08:00
bunnie
159abdfc59 app-loader: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:49:51 +08:00
bunnie
21a2592398 conten-plugin-api: use platform-neutral ux-api instead of graphics-server 2025-02-21 17:49:37 +08:00