Commit graph

3009 commits

Author SHA1 Message Date
bunnie
d23dbd1db8 add an explicit test of the unsub path
normally you would never use this, this would cause the
connection manager to muck up.
2022-04-25 18:30:43 +08:00
bunnie
969b4ec868 refactor net firewall to use .forward() method 2022-04-25 18:30:24 +08:00
Sean Cross
617e075c08 xous: handle forwarding of BlockingScalar messages
These are not automatically returned on their own, so handle the return
manually.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:52:09 +08:00
Sean Cross
fa98b865df xtask: add --no-timestamp option
Add a --no-timestamp build option to skip rebuilding `ticktimer`.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:41:35 +08:00
Sean Cross
7d8ff07caf xous: use the alloc API for allocating memory
Don't rely on the trick where we use a `Vec<u8>`. Call the `alloc` API
directly for all packet types.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:31:27 +08:00
Sean Cross
c956cb7da5 xous: add Envelope.forward() to forward messages
Messages should be able to be forwarded from one Server to another. This
is a wrapper around the machinery that would do that.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:31:27 +08:00
Sean Cross
d8a413b7c2 xous: add take_message() and send() calls to the envelope
Add a function to enable "regifting" a message that was sent to you.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:31:27 +08:00
Sean Cross
04e91b8c44 xous: messages: add set_id() to set Message ID
Allow setting a message's ID by adding a `set_id(&mut self, ...)`
function. This can be used when regifting a message.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:31:27 +08:00
Sean Cross
ddd7c6715a xous: hosted: use Vec as a memory backing
Use a `Vec<u8>` as a backing for memory across the entire project.

Previously we used `Vec<u8>` as a backing for MemoryMessages and used
`alloc` for all other messages. This unifies that to always use
`Vec<u8>`.

I'd prefer if we used `alloc` instead, however that has not been working
and I'm not sure why. Standardize on this for now and look into why
later.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:31:27 +08:00
Sean Cross
2084a9cda4 xous: split messages into a sub-module
The `Messages` types were getting hairy, and `definitions.rs` was really
long. Trim it down by moving types into their own files.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-25 17:31:27 +08:00
bunnie
f531955c44 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-04-24 21:53:36 +08:00
bunnie
8d28f130ea fix a missing case for hardware not caught by hosted mode 2022-04-24 21:53:18 +08:00
Sean Cross
88a0be5e4b
CONTRIBUTRING: Update license link
Correct the link to the licenses directory to address #148
2022-04-24 21:48:43 +08:00
bunnie
ed8e73764a add Cargo.lock 2022-04-24 21:41:18 +08:00
bunnie
f8246b14f5 run rustfmt on the modals crate 2022-04-24 21:40:42 +08:00
bunnie
26e98ec255 add PR #150 to release notes 2022-04-24 21:37:56 +08:00
bunnie
547783d195
Merge pull request #150 from nworbnhoj/qrcode
enable notification modal text + qrcode
2022-04-24 21:36:38 +08:00
bunnie
5b32fac3cc add PR #149 to release notes 2022-04-24 21:33:27 +08:00
bunnie
62d56fb70b
Merge pull request #149 from nworbnhoj/index
modal selected index support
2022-04-24 21:27:08 +08:00
nworbnhoj
0e561802ce enable notification modal text + qrcode
change the notification modal to accept the primary message and an
Option of independent text to display as a qrcode

pub fn show_notification(&self, notification: &str, qrtext:Option<&str>) -> Result<(), xous::Error> {}
2022-04-24 21:29:15 +10:00
nworbnhoj
2070236695 minor refinements requested on PR 2022-04-24 20:09:43 +10:00
nworbnhoj
e879ff4b17 modal selected index support
Support for:
- obtaining the index of the selected radiobutton & checkbox
- adding a Vec<&str> of items
2022-04-24 08:28:02 +10:00
bunnie
ce5a81878c fix for issue #145 2022-04-24 00:16:27 +08:00
Sean Cross
ae60065040
Merge pull request #147 from degregat/fix-jtag-peripheral
Fix jtag peripheral for emulation of xous-release
2022-04-23 21:43:11 +08:00
Daniel Reusche
d94d633b47 Fix jtag peripheral for emulation of xous-release
Closes #146. Jtag.cs was misspelled in betrusted.resc

Signed-off-by: Daniel Reusche <code@degregat.net>
2022-04-23 15:34:13 +02:00
bunnie
bfc369e77e update PR number in release notes 2022-04-23 18:01:30 +08:00
bunnie
b9e17e9a9e
Merge pull request #143 from nworbnhoj/patch-1
Pass thru buffer serialize Err
2022-04-23 18:00:15 +08:00
bunnie
23aa3a43ab annotate issue #141 into release notes 2022-04-23 17:58:02 +08:00
Sean Cross
f0f1b72e0c log-server: refactor to use stack-allocated buffers
Instead of having a single, shared buffer, simply stack-allocate the log
buffers.

This paves the way in the future to allow for buffers that are
larger-sized and span multiple pages. But most importantly it alleviates
inter-thread locking and contention when passing messages.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-23 12:46:20 +08:00
Sean Cross
234c169809 log-server: allow maximum-length buffers to be printed
Previously, we would reject buffers that were the maximum allowed size.
This is reported in #141.

Allow these maximally-sized buffers to be printed, since they don't end
up causing a problem.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-23 12:45:27 +08:00
nworbnhoj
00af36d6de
Pass thru buffer serialize Err
It is more helpful to pass thru the error because "couldn't serialize" does not help the developer to resolve the issue.
2022-04-23 13:11:52 +10:00
bunnie
ac8decce88
Update RELEASE-v0.9.md 2022-04-23 00:13:52 +08:00
bunnie
1c0a9fab34
Update RELEASE-v0.9.md 2022-04-23 00:13:22 +08:00
bunnie
c539a1348e
Merge pull request #140 from gsora/feature/multi-text-modals
feature: multi-text TextEntry modals
2022-04-22 19:39:24 +08:00
Gianguido Sorà
548049d8d5 restore format on save for vscode 2022-04-22 12:21:42 +02:00
Gianguido Sorà
1fb0c2e6a2
Merge pull request #1 from betrusted-io/multi-text-modals
Multi text modals
2022-04-22 12:02:58 +02:00
bunnie
987f40f5de minor fixes to multi-modals input
- track field heights using the drawing height directly
- use an &mut reference in the text processing section so changes stick
- other minor cosmetic improvements
2022-04-22 17:44:25 +08:00
bunnie
34c2ffe1a3 fix password entry to work with the new return type
also requires a call to `reset_action_payloads` for the
number of field elements to be recorded correctly!
2022-04-22 17:43:26 +08:00
bunnie
55197e97f4 fix white space 2022-04-22 15:56:11 +08:00
bunnie
4ddd414ed6 fix modals API in the PDDB migration code 2022-04-22 15:55:15 +08:00
bunnie
dd462aebb2 remove trailing/open white spaces 2022-04-22 15:54:43 +08:00
bunnie
2c3143f790 Merge branch 'main' into multi-text-modals 2022-04-22 15:54:18 +08:00
bunnie
bac6c25bfe conversion toward standard testing method 2022-04-22 15:10:51 +08:00
bunnie
02daea2f0e add a note for STAGING area as well 2022-04-22 02:48:52 +08:00
bunnie
5bdd3a9f51 modifications to prepare for enhanced USB security
The next release will feature an access control on USB so that
root keys and the encrypted gateware cannot be read back and
transitively the writes would be guttered (but this is not a problem
because the write target address is not set by the memory location
of the write, it's actually set by the location specified in
the program command to the FLASH).

This means that the updating program has to be modified accordingly;
now, for writes, a single location is targeted (and as alluded above,
this is funneled to a write FIFO buffer, and then the actual address is
set with the page program command); and for readback, attempts to read
back the SoC area are flagged and noted as impossible due to security
precautions.
2022-04-22 02:48:43 +08:00
Sean Cross
b829783e7d emulation: wf200: implement "Disconnect" verb
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 12:00:12 +08:00
Sean Cross
a74199829a emulation: add initial TLV320AIC3100
This audio codec lives on I2C and doesn't really do much for us.
However, by adding this device we can now pass `test oqc`.

The next step will be to implement `BetrustedI2S` which is where the
actual audio emulation occurs.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 11:42:02 +08:00
Sean Cross
aded1e9800 Merge branch 'main' of github.com:betrusted-io/xous-core 2022-04-21 10:36:55 +08:00
Sean Cross
e15649ccd5 svd2repl: add susres
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:20:19 +08:00
Sean Cross
582be287f4 emulation: add susres to emulation
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:20:00 +08:00