bunnie
d5aef77bdc
clean up warnings, as much as they make sense to clean up
2021-04-07 00:48:48 +08:00
bunnie
35353f38dd
bring benchmarks to v0.8 and record benchmark results
2021-04-07 00:45:11 +08:00
bunnie
795c2a38da
remove now-defunct shell server
2021-04-06 23:09:53 +08:00
bunnie
ea43e236ee
refactor fcc-agent for v0.8
2021-04-06 23:09:33 +08:00
bunnie
ca349ec1b0
clean up minor bugs and other issues
2021-04-06 22:38:11 +08:00
bunnie
b9162fda3d
gettin' there! major modules now mostly working under v0.8
2021-04-06 19:32:35 +08:00
bunnie
24e9408ce0
fix most of the inter-server bugs
...
still some issue with the predictions showing a longer length
than expected, but this is progress.
2021-04-06 02:48:55 +08:00
bunnie
8c12dbe2af
found a bug.
2021-04-06 01:52:26 +08:00
bunnie
9ba2fb134c
refactor most major modules, but Xous now crashes
2021-04-05 23:50:00 +08:00
bunnie
4a504943dc
part-way through the GAM refactor
2021-04-05 05:47:17 +08:00
bunnie
75a6f779f8
initial refactor of ime-frontend
2021-04-05 03:39:14 +08:00
bunnie
8fed353a83
refactor of the imef interface part 1
2021-04-05 00:30:46 +08:00
bunnie
9cc94d05ec
cleanup warnings
2021-04-04 21:25:26 +08:00
bunnie
44899d073e
clean up some efforts to fix log trace level
2021-04-04 18:25:53 +08:00
bunnie
9416e9dbe0
turn off trace on keyboard
2021-04-04 18:23:49 +08:00
bunnie
6d4916972b
keyboard refactor now working
2021-04-04 18:23:26 +08:00
bunnie
659b050c0e
put the borrow in the right place :-/
2021-04-04 02:17:14 +08:00
bunnie
da7ace04d4
rebuild and prep for testing on hardware
2021-04-04 02:15:46 +08:00
bunnie
8786b6db7b
should be borrowing the name server object to make connections
2021-04-04 02:15:29 +08:00
bunnie
bd54b48f8f
initial cut of a major refactor of the keyboard server
...
- debounce is now in hardware (requires latest version of betrusted-soc)
- key events originate from an interrupt context and propagate through
to the listeners as messages
- attempt to reduce the use of heapless::Vec; there is an awkward
interposer step still between the array methodology and the Vec
methodology
I'm not sure if trying to eliminate the Vec is a good idea,
because...I'm finding that we're just re-implementing Vec, but
much worse.
However, for the purpose of movement of data across
IPC boundaries, it's more robust to use primitive types,
because serializing Vec is not possible without either
forking the heapless crate to derive the rkyv traits; or, we'd
have to do some probably quite dangerous conversion of the Vec
to a raw slice which also doesn't feel nice.
2021-04-04 01:42:30 +08:00
bunnie
aa04241aa4
restrict visibility of Opcode
2021-04-03 00:57:30 +08:00
bunnie
b9ff993845
refactor graphics server
2021-04-03 00:53:30 +08:00
bunnie
dea8cb8388
fix typos and start on the graphics server
2021-04-02 22:57:02 +08:00
bunnie
25dc27f2f7
add drop implementation to servers
2021-04-02 22:01:40 +08:00
bunnie
c972666f41
implement Drop on Com object
2021-04-02 19:01:11 +08:00
bunnie
39153f6fba
cleanup warnings
2021-04-02 18:07:39 +08:00
bunnie
2cb519b8ee
cleanup logging
2021-04-02 17:58:20 +08:00
bunnie
c6645c6626
add comment to remind myself on how callbacks should work
2021-04-02 17:58:03 +08:00
bunnie
906f8779a8
cleanup details
2021-04-02 17:57:33 +08:00
bunnie
d6fd42b593
COM refactor of callbacks
2021-04-02 16:40:17 +08:00
bunnie
da255cc1ab
use macro expansion for argument extraction of scalars
2021-04-02 15:38:38 +08:00
bunnie
e3733fa64c
refactor callback methodology to match 0.8 conventions
2021-04-02 15:38:15 +08:00
bunnie
d21c0fa3e7
refactor of COM
...
this was much harder than I liked.
2021-04-02 05:43:47 +08:00
bunnie
5a6ce66d7e
clean up log messages now that we can identify the logging source
2021-04-02 03:10:13 +08:00
bunnie
68b9addd45
redo ticktimer/trng to use the new convenience functions
2021-04-02 02:45:00 +08:00
bunnie
fe2a464dd2
cleanup warnings in trng server
2021-04-02 01:56:22 +08:00
bunnie
7210f100f4
upgrade log server to pass rich message types
2021-04-02 01:54:17 +08:00
bunnie
85fdb7453d
remove unused code
2021-04-01 17:24:13 +08:00
bunnie
a3adf797b0
refactor TRNG server to new API
2021-04-01 17:20:36 +08:00
bunnie
2407f17267
fix typos
2021-04-01 17:20:28 +08:00
bunnie
aab0bf459c
update API to more compliant names
2021-04-01 16:43:22 +08:00
bunnie
dc2519c5ef
trying out new API names
2021-04-01 03:47:10 +08:00
bunnie
470b5c6440
finalize API refactor for xous-names
2021-03-30 02:13:23 +08:00
bunnie
23ae292e3d
found the stupid bug
2021-03-29 05:20:21 +08:00
bunnie
c6371e86e7
fix other minor errors
2021-03-29 04:44:03 +08:00
bunnie
f35d478cf0
attempt to refactor xous_names
2021-03-29 04:35:11 +08:00
bunnie
88d66f4fd2
partial refactor but need to switch branches
2021-03-28 19:36:55 +08:00
bunnie
e889765caf
refactor the Ticktimer API.
2021-03-28 18:14:41 +08:00
Sean Cross
45239c61ef
rkyv-test-server: use xous-ipc buffer
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:25:02 +08:00
Sean Cross
fdce58d06e
ipc: convert project to use xous-ipc
...
This rewrites the entire project so that most runnable projects now use
`xous-ipc` instead of `xous::String` where possible.
This also removes `rkyv` from the list of dependencies in `xous-rs`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:22:33 +08:00
Sean Cross
f6c2ee4410
rkyv-test-client: use new log_message_send()
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:17:03 +08:00
Sean Cross
8760de0406
rkyv-test-server: add log_message_send to test Send messages
...
This uncovered a bug in the kernel where Send messages didn't work.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 17:16:21 +08:00
Sean Cross
f58f82a40d
rkyv-test-server: support multiple callbacks for one client
...
There doesn't seem to be a compelling reason to limit clients to just
one callback.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:42:35 +08:00
Sean Cross
c1fe20c06b
services: allow for multiple callbacks
...
This means we can have multiple clients requesting a callback.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:41:15 +08:00
Sean Cross
561a0c3e27
rkyv-test-client: make doubling string dynamic
...
This tests for emoji as well as making sure it's working as intended.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:40:47 +08:00
Sean Cross
22b50d080b
rkyv-test-client: dynamically generate log message string
...
By dynamically generating the log message string, we ensure dynamic
buffer adjustments are accepted.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:33:30 +08:00
Sean Cross
e27db818ef
rkyv-test-server: accept any string-like arguments
...
As long as we can turn an argument into a string, that's good enough for
us.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:32:42 +08:00
Sean Cross
0f455a9a02
rkyv-test-client: use new double_string call
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:16:26 +08:00
Sean Cross
ff180ca737
rkyv-test-server: add DoubleString api call
...
This demonstrates how we might use strings in syscalls.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:15:57 +08:00
Sean Cross
461f5c5f8d
rkyv-test-server: buffer: add from_memory_message_mut()
...
This enables passing data back to the caller by modifying the original
message `offset` field.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 12:15:13 +08:00
Sean Cross
fd255d8f53
services: add rkyv-test-client and rkyv-test-server
...
These servers demonstrate how we might use rkyv in the future.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 23:39:35 +08:00
Sean Cross
6efc6bdfd5
services: kernel-test: add loopback test
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 16:01:57 +08:00
Sean Cross
52c993556f
services: gam: use create_thread_4
...
This replaces create_thread_simple() which is unsound and has been
deprecated.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 13:15:42 +08:00
Sean Cross
006101835e
services: shellchat: use create_thread_0
...
This replaces create_thread_simple() which is deprecated.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 13:15:16 +08:00
Sean Cross
6cdd9b4b4c
services: use shorter timeout for thread 4
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 11:31:50 +08:00
Sean Cross
5367697b54
services: kernel-test: use create_thread_n
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 11:12:44 +08:00
Sean Cross
4cbfe5f90f
services: log-server: use create_thread_1()
...
This moves away from the deprecated `create_thread_simple()` call.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 10:54:22 +08:00
bunnie
bb3d96de27
Merge branch 'master' of https://github.com/betrusted-io/xous-core into HEAD
2021-03-25 02:37:58 +08:00
bunnie
8763cf3133
stash before merge
2021-03-24 22:48:23 +08:00
Sean Cross
ca24b74cd2
Merge remote-tracking branch 'origin/master' into fix-create-thread
2021-03-24 12:52:01 +08:00
Sean Cross
2d7dda93a9
kernel-test: add testcase for ticktimer/kernel bustage
...
The ticktimer server breaks spectacularly with this.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-24 12:51:06 +08:00
bunnie
9541523d76
move GPIO mapping earlier in LLIO so we can capture the boot prompt
2021-03-23 23:10:26 +08:00
Sean Cross
e894dbd7b8
Merge branch 'fix-messages'
2021-03-23 21:58:11 +08:00
Sean Cross
d16d0c9bd8
ticktimer-server: set quantum to 10ms
...
This is an experiment to see if this shorter time improves things.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-23 21:43:35 +08:00
Sean Cross
e624c184cd
ticktimer-server: rewrite sleep server as deadline
...
Use deadlines for sleep, rather than calculating the amount of remaining
time.
This keeps time consistent, because it means we don't have to
recalculate all sleeps whenever one expires.
It also allows us to take advantage of the hardware which will fire an
interrupt if we schedule a wakeup in the past.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-23 21:41:30 +08:00
Sean Cross
89cf0c1ab1
ticktimer-server: run rustfmt on Cargo.toml
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-23 21:37:52 +08:00
Sean Cross
91647592ca
kernel-test: implement sleep test
...
This patch implements a simple sleep test.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-23 19:53:54 +08:00
Sean Cross
751dc8ee3a
kernel-test: add test for ticktimer-server
...
This test is an attempt to fix `sleep_ms()`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-18 20:10:58 +08:00
bunnie
184a284da5
sleep_ms() bug exhibitition
2021-03-18 17:34:48 +08:00
bunnie
6677d79834
initial RTC framework
2021-03-18 16:22:08 +08:00
bunnie
db5e56fd1a
futzing with structures to try and figure out a threading issue
2021-03-18 16:21:43 +08:00
bunnie
ca07645dce
remove loop polling on GAM, seems unecessary
2021-03-18 16:21:10 +08:00
bunnie
dacedc3b74
Merge pull request #52 from betrusted-io/hardware
...
Refactor system to use rkyv 0.4.1
2021-03-18 04:56:32 +08:00
bunnie
9c49940e1d
add callback test back into shellchat
2021-03-18 04:22:17 +08:00
bunnie
2d5c1dd6db
leverage min_const_generics and cleanup
...
the spoils of a hard fought battle to refactor to rkyv 0.4.1
2021-03-18 04:00:38 +08:00
bunnie
ea8b208a15
finalize rkyv 0.4.1 refactor
2021-03-18 03:54:48 +08:00
bunnie
8fbd900a4c
Merge branch 'hardware-no-cb' into rkyv-refactor
...
Bring the two branches up to date, while also laying the groundwork
for XousServerName to be used as a native index type in xous-names
so we aren't burdening xous::String with a hasher
2021-03-17 16:06:06 +08:00
bunnie
edb099d3f2
fix hosted mode with dummy i2c emulation calls
2021-03-16 19:28:01 +08:00
bunnie
eda33b5de7
factor out the shellchat callback, which mysterious breaks things
2021-03-16 18:03:12 +08:00
bunnie
d74b3189e6
it builds, at least.
2021-03-16 16:37:38 +08:00
bunnie
8b8cad067c
add the i2c file proper
2021-03-16 15:52:30 +08:00
bunnie
eff3e7d7bf
incremental i2c changes
2021-03-16 15:52:13 +08:00
bunnie
f9439b48d6
checking in a refactor that we're going to abort
2021-03-16 12:27:29 +08:00
bunnie
d68e3e8cf4
an attempt to refactor to rkyv 0.4.1
...
unfortunately, it looks like deserialize requires an alloc??
2021-03-16 02:02:53 +08:00
bunnie
ab1b839900
checkpoint before figuring out how to deal with the String rkyv version issue...
2021-03-16 00:11:23 +08:00
bunnie
be38661a1e
half-baked i2c stuff, but about to tear a bunch of it out
2021-03-15 14:58:48 +08:00
bunnie
2f71f2a1f5
add/test facility for handling async callbacks from shell commands
2021-03-14 00:39:27 +08:00
bunnie
6d2697667b
Merge pull request #51 from betrusted-io/hardware
...
Merge xobs changes to make typing much easier
2021-03-13 18:20:39 +08:00
bunnie
0950467a37
Merge branch 'hardware' of https://github.com/betrusted-io/xous-core into hardware
2021-03-13 18:15:37 +08:00
bunnie
5c1940a019
change the name of the window
2021-03-13 18:15:30 +08:00