Commit graph

321 commits

Author SHA1 Message Date
bunnie
1255bf12d9 FLAG DAY: fix all names to harmonize around 'bao1x'
The code base had evolved through several code names, interim
names, company names and chip names that alternatively did or did
not exist.

Baochip is the definitive name of the company, and the Baochip1x
(full part number BAO1X2S4F-WA) is the definitivey part number of
the SoC. For convenience, the part number is shortened to 'bao1x'
in most feature flags and variable references.

This commit fixes all of the odd names and removes some unmaintained
early targets.
2025-09-18 21:25:51 +08:00
bunnie
1a2d6bf772 intercept and warn on more v2 calls in v1 implementation 2025-03-04 19:02:15 +08:00
bunnie
85a216ff0f add a warning if v2 api is sent into graphics-server which is v1 only 2025-03-03 02:14:05 +08:00
bunnie
286bfb8135 fix hosted mode build 2025-02-28 17:52:20 +08:00
bunnie
4710b416be cleanup trait implementation to match modifications
remove mutability from get_pixel
2025-02-28 16:36:24 +08:00
bunnie
3e11c37400 fix missing path expansion in precursor target 2025-02-26 14:59:23 +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
e0462f1603 modify graphics-server to use shared handlers 2025-02-23 18:07:16 +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
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
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
813b72c863 refactor graphics-server to use ux-api for the "lib" layer
graphics-server now becomes just one possible implementation
of the API layer
2025-02-21 17:47:02 +08:00
bunnie
13590c302a fix warning in doc comment 2025-02-17 22:54:27 +08:00
bunnie
10a1c72f35 refactor graphics-server to use new blitstr2 crate 2025-02-17 18:25:18 +08:00
bunnie
b788ed6633 move blitstr2 to its own library
this allows us to share font data between platforms without
replicating the code base
2025-02-17 18:24:39 +08:00
bunnie
e1bc6eac56 remove copy of blitstr2 from ux-api; move blitstr2 to lib location 2025-02-13 17:41:07 +08:00
bunnie
0bfb864873 add boasec to font feature selection; prepare for moving blitstr crate 2025-02-13 17:26:54 +08:00
bunnie
4f14a67504 formatting changes due to changes in nightly rust
needed to get a clean check on gh
2025-02-01 22:26:40 +08:00
Jeanie
e1ff04b1fc fix set_devboot docs 2024-12-24 00:59:09 +08:00
Jeanie
f8bce54bd0 fix circle docs typo 2024-12-24 00:59:09 +08:00
Jeanie
9e888252c1 note for stash method, a few other updates 2024-12-24 00:59:09 +08:00
Jeanie
e8f165000c a few more drawings 2024-12-24 00:59:09 +08:00
Jeanie
16782f1f25 first half of images 2024-12-24 00:59:09 +08:00
Jeanie
6257fb4640 placeholders for example images, small docs update 2024-12-24 00:59:09 +08:00
Jeanie
52869a21f2 take out some repetitive wording 2024-12-24 00:59:09 +08:00
Jeanie
61f1ffdc9d all examples are now tested/fixed 2024-12-24 00:59:09 +08:00
Jeanie
5043a7bd39 some basic documentation 2024-12-24 00:59:09 +08:00
bunnie
6b48aee498 fix gfx server to comply with updated cram-soc apis 2024-10-10 02:08:13 +08:00
bunnie
8deeac91ee update existing api to match hw api
however, the actual driver is kind of bogus
2024-10-04 13:09:05 +08:00
bunnie
728fab3b62 consolidate spi pin setup 2024-10-02 00:24:03 +08:00
bunnie
043dfd84ae update formatting to latest nightly rules 2024-09-24 01:49:45 +08:00
bunnie
921be1cf8b add bounds checking to a TextView string length
Before xous-ipc's fixed-length string guaranteed this thing
fit into a single page. Now, we can send potentially unbounded
amounts of text between servers.

I don't think it makes sense to send more than a few k of text to
render on the screen at once, given our screen sizes, so I've added
a patch that truncates the text to the previous length that things
would truncate to.

The behavior is the same as before, except that you will
over-allocate memory on the heap in the sending process
as you shove more string data into a TextView than can be rendered.
Previously, the TextView would just truncate the data and discard
the data.

The truncation happens at the point where you try to hand the
record off to another process, so, one could in theory try
to make this recoverable by adding a layer that splits the
textview into more manageable chunks or pages the data, but that
is an exercise for another day.
2024-09-23 17:35:27 +08:00
bunnie
1b0fa6e04b regex search/replace instances of xous_ipc::String to String 2024-09-22 14:24:49 +08:00
bunnie
8414f08aae autoformat the logo file 2024-06-16 02:10:27 +08:00
bunnie
fe6fad2847 change the boot logo in the graphics server 2024-06-16 01:52:28 +08:00
bunnie
782e94aa65 add mappings for additional fonts in cramium target 2024-06-13 22:06:04 +08:00
bunnie
5f05e15105 add backing storage
this is used to accelerate menu foreground/background as well
as susres
2024-06-13 22:05:20 +08:00
bunnie
73b075716b add cramium panic display support 2024-05-31 20:44:46 +08:00
bunnie
a40466b7b4 heap-allocate the framebuffer
this will make memory utilization a bit more efficient than
a heap-allocated page where a portion is wasted
2024-05-31 20:43:53 +08:00
bunnie
fba2736fff fix typo 2024-05-31 20:43:44 +08:00
bunnie
ea5e57bbc9 add cramium's version of the panic handler 2024-05-31 20:42:54 +08:00
bunnie
b175ffaddf add Precursor's panic handler 2024-05-31 20:42:33 +08:00
bunnie
4e347c3ad6 split panic handler into hardware-specific versions 2024-05-31 20:42:11 +08:00
bunnie
c7036c1309 fix cram-soc impl for graphics 2024-05-28 23:04:16 +08:00
bunnie
34cfc7db5b temporarily allow more graphics server connections
this is for early testing and debug -- there's a note to
revert this in the console log once we're done with that.
2024-05-23 14:51:11 +08:00
bunnie
52e5d21e6f work around white screen issue on Windows 11 (#538)
This is the work-around suggested at

https://github.com/emoon/rust_minifb/issues/351

until a new release is tagged.
2024-05-10 00:33:59 +08:00
bunnie
d5b9036531 allow for alternate pin mapping on graphics server
use the SPIM port that is broken for QSPI for the display...
2024-05-06 02:29:34 +08:00