Commit graph

3057 commits

Author SHA1 Message Date
bunnie
047b9e539d refactor of usb hardware drivers
- write only u32s to registers
- make everything volatile
2022-05-09 10:04:59 +08:00
bunnie
8310d64de9 layer in the HID keyboard drivers 2022-05-07 13:21:23 +08:00
bunnie
aede037e09 update Cargo.lock 2022-05-06 13:41:09 +08:00
bunnie
15d16ab490 add warnings to remind about moving USB disable to the usbdev server once it's possible 2022-05-06 13:40:32 +08:00
bunnie
bee8334b3b flesh out usb driver 2022-05-06 13:40:12 +08:00
bunnie
e3cd5de0ea this version of precursors actually seems to be doing something usb-like 2022-05-06 13:39:39 +08:00
bunnie
7720b61451 update renode to latest soc 2022-05-06 13:39:28 +08:00
bunnie
22c9867a9a fix Atomic version of instructions to be non-mut
better compatibility with usb libraries
2022-05-06 13:36:11 +08:00
bunnie
709c087337 refactor wait timer for net pump 2022-05-06 13:35:33 +08:00
bunnie
9354932483 fix buffer length check computation 2022-05-06 13:34:59 +08:00
bunnie
382f2ae306 fix warning 2022-05-06 04:00:55 +08:00
bunnie
2a4dd67564 hoist net thread exhaustion check to before we check the poll interval 2022-05-06 04:00:20 +08:00
bunnie
fd2aa438c0 still struggling a bit to get basic USB connectivity test to pass 2022-05-05 20:51:48 +08:00
bunnie
1c21482796 move USB signals into the usbdev block (out of GPIO) 2022-05-03 10:47:40 +08:00
bunnie
b5bbdd87dc absorb missing commit info 2022-05-03 01:51:23 +08:00
bunnie
3133d386c4 cleanup type problems incurred while fixing +Send trait on core types 2022-05-03 01:13:24 +08:00
bunnie
796b7292a6 build for hardware by default 2022-05-03 01:13:11 +08:00
bunnie
5b29fce651 add AtomicCsr type for hw blocks that have to implement Send trait 2022-05-03 01:12:48 +08:00
bunnie
2c2e15ac67 hopefully this time i got all the CSRs compiled in for the USB device 2022-05-03 00:11:16 +08:00
bunnie
322de782d7 ensure all allocs meet the 16-byte alignment criteria 2022-05-02 23:15:52 +08:00
bunnie
c12d9cbe8f working through the usb endpoint descriptor allocator 2022-05-02 22:59:33 +08:00
bunnie
66892e15d2 upgrade the netlist to include the interrupt line 2022-04-28 22:43:16 +08:00
bunnie
8ef37c0526 commit Cargo.lock's reflection of usb-test's addtional dependencie 2022-04-27 02:42:12 +08:00
bunnie
74dafa4788 augment the xtask to deal with more usb-dev scenarios 2022-04-27 02:41:38 +08:00
bunnie
467254fa81 lay down some initial data structures to talk to the UDC 2022-04-27 02:41:07 +08:00
bunnie
a7684343f2 add first commands to toggle core connectivity 2022-04-27 01:22:53 +08:00
bunnie
17cc92eadd ignore changes to Renode filesystem template 2022-04-27 01:22:28 +08:00
bunnie
49dcbb0a8a update renode to contain USB device mappings 2022-04-27 01:16:14 +08:00
bunnie
5f2eef3afd initial toy repl for usb debugging 2022-04-27 00:53:58 +08:00
bunnie
b216c20d0b Merge branch 'main' into usbdev 2022-04-25 22:45:24 +08:00
bunnie
99a7d2b6e3 add forwarding to release notes 2022-04-25 22:45:09 +08:00
bunnie
9768503087 Merge branch 'main' into usbdev 2022-04-25 18:44:37 +08:00
bunnie
f6b39158db
Merge pull request #151 from betrusted-io/regifting-fixes
Regifting fixes
2022-04-25 18:43:41 +08:00
bunnie
33a3cfa7c2 fix typo 2022-04-25 18:34:31 +08:00
bunnie
a9b2dd535a add a note to remind about the purpose of the unsub test command 2022-04-25 18:32:09 +08:00
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