Commit graph

4635 commits

Author SHA1 Message Date
bunnie
aa9977cc58 bump all the things because we changed utralib again 2022-11-17 22:13:40 +08:00
bunnie
156e60d1dd fix regressions from litex 2022.08 2022-11-17 22:12:32 +08:00
bunnie
71df3a624b Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-11-17 19:44:05 +08:00
bunnie
dabbfd6c35 bump all the things to absorb the SoC change 2022-11-17 19:39:18 +08:00
bunnie
76d3d6c8ad bump default precursor soc gitrev 2022-11-17 19:38:14 +08:00
bunnie
3272a87545 add a trial version of the latest SOC 2022-11-17 19:38:01 +08:00
bunnie
280d61db34 trial commit latest soc artifacts
updating Litex, seems to have broken things. trying to see
if a rebuild with new SVD file helps.
2022-11-17 19:37:17 +08:00
bunnie
1106fcfa46
Merge pull request #277 from gsora/feat/slider-widget
feat: user interaction-enabled slider
2022-11-16 22:35:11 +08:00
Gianguido Sorà
d57088a592 feat: add tests for slider 2022-11-16 14:45:46 +01:00
Gianguido Sorà
5243e8c258 feat: user interaction-enabled slider
This commit adds `modals::Modals::slider()` with the same interface as
`modals::Modals::start_progress()`, with the striking difference that
users can move the slider, and press the center keypad button to confirm
 the selection.

 Useful for objects like audio volume controls.
2022-11-14 19:36:25 +01:00
bunnie
08de49dab1 make testing a little more ergonomic 2022-11-15 02:25:22 +08:00
bunnie
ef5c05683c add a quick and dirty test command for headphone state 2022-11-15 02:23:13 +08:00
bunnie
04f700ac29 add headphone state polling to codec 2022-11-15 02:23:01 +08:00
bunnie
474a02c2cb refactor all vault db retrieval to use new API
This refactors the remaining vault accessor routines to use
the new more efficient key pre-fetching routine. This also
fixes up an error in test case generation and hopefully resolves
an issue with concurrency errors using the older version of
the access routine.
2022-11-09 15:06:51 +08:00
bunnie
c3ba30d55d expand on errors reported 2022-11-09 14:25:26 +08:00
bunnie
e7e110ce76 cleanup and enhance test cases 2022-11-09 14:25:05 +08:00
bunnie
6d1d297500 bump ring-xous to track latest PR 2022-11-09 01:01:42 +08:00
bunnie
11a0107e97 fix UX state after button press on dynamic modal
This bug was hidden by the previous return of state before
the reliquish.

Now with the correct ordering, we end up getting a double-relinquish
which ends up trying to swap a modal into focus which doesn't exist.

This fixes that edge case
2022-11-09 00:33:13 +08:00
bunnie
4c45dfa6bf more debugging help 2022-11-09 00:33:01 +08:00
bunnie
1129f1c3c6 bump versions after xous-names bump 2022-11-07 23:05:32 +08:00
bunnie
a7162fd03c bump xous-names dependents 2022-11-07 22:19:38 +08:00
bunnie
28f42baa44
Merge pull request #274 from betrusted-io/xous-names-tryconnect
Add TryConnect call to xous-names
2022-11-07 22:09:56 +08:00
Sean Cross
3ca323f0bb xous-names: implement non-blocking TryConnect call
This call can be used by clients to try connecting to a service. If the
service is not available, this will fail to connect.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-11-07 18:46:02 +08:00
Sean Cross
3ca57bcf8b xous-api-names: add TryConnect
This is a non-blocking version of Connect that is fallible.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-11-07 18:45:25 +08:00
bunnie
1bc39cd513 bump release notes 2022-11-07 00:25:16 +08:00
bunnie
781776b1fe move the mount initiator back into status; fix waiting signal
mount initiator is now back inside of the status thread
(woo, no more app-specific dependency) and there is now a
wait on "attempted to mount" inside the status thread which is
the signal to clear the "waiting on boot" message.
2022-11-07 00:22:49 +08:00
bunnie
0646ec23ba track "attempted" mounts in PDDB
this is to allow a UX process to clear the "waiting for boot"
indicator once an attempt has completed.

right now, it responds *after* the mount process is done,
so the "please waiting" text persists even doing a format.

I think that is...appropriate?
2022-11-07 00:21:52 +08:00
bunnie
93dcfb7435 fix hosted mode 2022-11-07 00:21:27 +08:00
bunnie
335b78d865 fix polarity of init_done flag. oops. 2022-11-06 20:50:15 +08:00
bunnie
1d7641cafa force please wait message to clear before doing PDDB init
While it's a kind of neat effect to have the "please wait"
message persist right up until the point where the dialog box
pops up, the problem is that the blit of the backplane captures
that, so when the context is reverted that message is still there.

On a very fast mount (empty PDDB under Renode emulation) the
mounting call finishes so quickly that the dialog box that would
normally trigger the redraw to clear this message never renders.

This patch forces the screen to blank before trying to call
PDDB init, ensuring that we don't have that persist after the
mount, even if it is very fast.

The downside is there is a fraction of a second where the please
wait disappears, and the dialog box pops up. That is just the
time it takes for the system to setup for the cryptographic
operations.
2022-11-06 18:48:23 +08:00
bunnie
382380bd8a fix Sender cast 2022-11-06 18:48:06 +08:00
bunnie
3ee36f41ee remove UX delays on PDDB path
retain just one of them going into the erase routine, because
it consumes enough CPU that the dialog box takes a bit too long to
pop up.
2022-11-06 18:45:17 +08:00
bunnie
880675c238 remove UX delays between dialog boxes 2022-11-06 18:44:56 +08:00
bunnie
ffa8385e7c refactor: send response packet after context has been switched
This refactor (at least partially) fixes a "mystery delay"
sometimes required after a dialog box swaps out. The previous
implementation would send the response, and then swap the contexts.
This would often cause the recipient to start drawing its UX
before the calling app was foregrounded, causing elements to go
missing.

This refactor puts the response after the context swap. The main
downside is it requires every type of modal to have a GAM
handle to issue the redraw call, and is especially complicated
by the fact that GAM is not clone-friendly. However, the
trade-offs of either creating a handle dynamically or storing
one in the object is probably worth the benefit of removing
an open-loop delay.
2022-11-06 18:36:20 +08:00
bunnie
b0f443be48 fix race condition on relinquish focus v result return for dynamic and progress modals
There's a race condition between the return of a blocking scalar
and when focus is relinquished.

This causes chained graphics operations to get dropped sometimes.

Move the return result to after the focus switch; this allows us
to elimate some dead waits.
2022-11-06 16:33:31 +08:00
bunnie
5a0e3e5c19 clean up bitrot in dbg-ecupdate configuration 2022-11-06 15:59:58 +08:00
bunnie
69cf629329 fix problem in tts build 2022-11-06 04:25:26 +08:00
bunnie
767580d375 bump versions 2022-11-06 04:17:53 +08:00
bunnie
30583bdf07 bump versions with xous change 2022-11-06 03:48:12 +08:00
bunnie
e85455a077
Merge pull request #271 from betrusted-io/scalar5-support
Scalar5 support
2022-11-06 03:44:58 +08:00
bunnie
a16304b0eb bump release notes 2022-11-06 03:42:07 +08:00
bunnie
2a11f9dcaf Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-11-06 03:40:37 +08:00
bunnie
fa90e74a10
Merge pull request #270 from gsora/feat/pddb-init-notification
feat: show boot process notifications for PDDB
2022-11-06 03:40:17 +08:00
bunnie
817e758f7c remove the dead-wait before the PDDB is mounted
the "right" way to do this is to poll to see if trusted init is
done. once that is done, you can go ahead and try to mount the
PDDB.
2022-11-06 03:36:43 +08:00
bunnie
a56b8c802f add automounter to shellchat, and initial wait message
The initial wait message is drawn directly under where
the modals would appear, so the message "goes away"
when modals pop up.

There's still a bit of trickiness around the timing of
some of the calls. Attempting to mount the PDDB too early
before all the contexts have been registered leads to
a lot of needless defacing.

Also, the final redraw needs a short delay to allow
the system to foreground shellchat again after closing
the modals.
2022-11-06 03:11:23 +08:00
bunnie
e240ca6499 refactor the hardware boot screen
- remove a blanking operation. this makes the transision from
loader to runtime almost imperceptably smoother
- add the ability to summon the logo screen earlier in the process

Note that only GAM can call GFX, so, it's alright to expose that
API, since GAM should gate-keep and prevent abuse of that function.
2022-11-06 03:10:00 +08:00
bunnie
7eecf2b1ce remove the initial wait from PDDB; move the pop-up modal location
The initial wait message is now rendered by the first app
that owns the screen (currently shellchat).

The location where the pop-up modal is rendered is also now bracketed
directly around the mount call to avoid interference with other
edge cases that may pop up modals.
2022-11-06 03:07:35 +08:00
bunnie
0d02415c82 remove automounter from the status thread
it's now in shellchat. In general, the program that is assigned
as the initial app context is responsible for ensuring the
PDDB is mounted. Thus, if `vault` were to become a stand-alone app,
it should include some code to make sure the PDDB is mounted as
part of its boot sequence.

The reason is that it allows the initial app to guide the
power-on experience, instead of delegating this to the `status`
bar, which is oblivious to the state of the app.
2022-11-06 03:05:30 +08:00
bunnie
45009a01d9 add debugging hints for figuring out context switch bugs in the future 2022-11-05 23:06:47 +08:00
bunnie
7c4ca05922 adjust modal trust level down so it's not identical to chat 2022-11-05 23:06:18 +08:00