Commit graph

10340 commits

Author SHA1 Message Date
bunnie
d24a8a67b5
Update README.md 2021-03-11 18:49:30 +08:00
bunnie
b8dfa1ddcb
Update README.md 2021-03-11 18:28:38 +08:00
Sean Cross
a0c82ee25c xous: initial draft of xous target support
This is an initial cut of the library as it will be included in the
libstd.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-11 12:27:55 +08:00
Sean Cross
d89ac9cf90 Cargo: commit new lockfile
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-11 11:21:12 +08:00
Sean Cross
cf1e2435bc kernel: implement GetThreadID and GetProcessID
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-11 11:20:35 +08:00
Sean Cross
530e105fe4 xous: add GetProcessID and GetThreadID syscalls
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-11 11:19:51 +08:00
Sean Cross
1a309114c7 Merge branch 'hardware' of github.com:betrusted-io/xous-core into hardware 2021-03-11 10:48:52 +08:00
Sean Cross
f4e8e73887 xous: tag 0.1.1
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-11 10:48:25 +08:00
bunnie
2b8b703857
Merge pull request #47 from betrusted-io/hardware
Reasonable stopping point for a demo
2021-03-11 04:45:01 +08:00
bunnie
54cf95aec1 turn off more debugging for demo 2021-03-11 04:43:58 +08:00
bunnie
16d8438a0d turn off some debugging 2021-03-11 04:12:14 +08:00
bunnie
0dbfa6a668 clean up warnings 2021-03-11 04:09:47 +08:00
bunnie
7db6f857dd change boot screen to be more informative 2021-03-11 04:09:35 +08:00
bunnie
0f0ab91879 fix margin on uptime 2021-03-11 04:09:12 +08:00
bunnie
4baaec61d2 add sensors command to read ADC values 2021-03-11 02:57:58 +08:00
bunnie
835bee2c75 lay in foundations to support the sleep function 2021-03-11 01:45:54 +08:00
bunnie
2b66ab1db0 refactor to put commands in static storage
so that state can actually persist across multiple calls
2021-03-11 01:45:02 +08:00
bunnie
812d334a01 fix unnecessarily long server name
xous server names are 64 characters long, not 256.

maybe should refactor to just eliminate the xous server name
structure -- it's actually redundant, and a vestige from when
we were just figuring out how to use rkyv.
2021-03-10 23:30:02 +08:00
bunnie
9566355f9a refactor command API
should be a bit more convenient now to add/modify command
lists as time goes on
2021-03-10 22:59:52 +08:00
Sean Cross
ace4ea7be9 gitattributes: add txt as lf
This fixes the APACHE license.txt file.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-10 17:36:41 +08:00
Sean Cross
e00b958308 hosted: transmit PID to clients
Prior to this patch, all clients assumed they were PID 1.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-10 17:35:57 +08:00
Sean Cross
7271e54f2f xtask: build packages in parallel
This speeds up rebuilds where nothing has changed.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-10 09:48:20 +08:00
bunnie
4f74ad9470 add string appending feature 2021-03-10 04:19:25 +08:00
bunnie
e829c0bd06 add framework for modular commands
I am not happy with this. I think the framework could be better
but I also can't figure out how.
2021-03-10 04:18:57 +08:00
bunnie
fbcb991e06 turn of debugging 2021-03-10 02:08:37 +08:00
bunnie
3e5936e920 fix backspace edge case 2021-03-10 02:05:31 +08:00
bunnie
aa7e6ab329
Merge pull request #45 from betrusted-io/hardware
shell chat is now kind of MVP
2021-03-10 01:59:29 +08:00
bunnie
63159e50db wire up some function keys in hosted mode, add some fun glyphs for testing 2021-03-10 01:58:38 +08:00
bunnie
9a455051bf forgot to do dynamic updates of the predictor
that'll be handy once we have a real IME
2021-03-10 01:50:50 +08:00
bunnie
ab277a6cdd fix less than one line check criteria 2021-03-10 01:36:40 +08:00
bunnie
44c1b66b8b fix border width arg 2021-03-10 01:25:36 +08:00
bunnie
a9a7ac435f add support for rounded rectangle text bubbles and dynamic sizing
this makes more more natural chat-style text bubble interactions
2021-03-10 00:25:14 +08:00
bunnie
6d6d62f794 add an api for content canvas plugins
some calls are mandatory, such as supporting a redraw of the canvas
2021-03-10 00:24:29 +08:00
bunnie
07a9cbb02d initial structuring of the shellchat app 2021-03-09 04:31:51 +08:00
bunnie
b5411851fd rudimentary shellchat -- commit for help on debug Move message 2021-03-09 03:52:39 +08:00
bunnie
d54b815653 add input listeners to get input lines.
next up: shellchat
2021-03-09 03:08:34 +08:00
bunnie
3cec151ffd fix prediction order 2021-03-09 02:47:25 +08:00
bunnie
7f7f30f23d make shell predictions only on newlines, for now 2021-03-09 02:33:10 +08:00
bunnie
71e45c4bf8 refactor redraw to be on-demand
seems to make the performance much better
2021-03-09 02:32:36 +08:00
bunnie
4f295eea0f update cargo.lock 2021-03-09 02:25:08 +08:00
bunnie
7d1fb5a31b ellipsis support and fixing prediction redraw bugs 2021-03-09 02:24:45 +08:00
bunnie
a4a96c9c56 add ellpsis support to textview 2021-03-09 02:23:49 +08:00
bunnie
8b85d52587 bump to latest blitstr 2021-03-09 02:22:58 +08:00
bunnie
c9e82c427e fix a bunch of minor bugs 2021-03-08 05:12:26 +08:00
bunnie
5dc537df05 fold in the predictor 2021-03-08 04:28:17 +08:00
bunnie
d5d8e0ee86 TIL you can't return variable-length strings in an rkyv
rkyv does some optimization to not send all the data in
a string if you don't use it up.

xous assumes the same "pos" argument on the return type

thus a variable length string doesn't work as a return type
(you can send it, because you can specify a "pos" on the send
side).

fortunately, the application for the variable-length string
was getting predictions out of the predictor, and a short (31 element)
fixed-length array with a side companion of a len variable
should be more than sufficient for completion suggestions.
2021-03-08 04:25:58 +08:00
bunnie
8a8c1e6a66 foundations for predictive text display 2021-03-08 00:57:50 +08:00
bunnie
33df36f841 make input text preview area grow dynamically as text gets too long 2021-03-07 18:58:48 +08:00
bunnie
f495b40fd8 insertion/deletion of text with back/forward buttons working now 2021-03-07 03:43:46 +08:00
bunnie
49d6018e5e new feature: backspace (*gasp* iknowrite?)
harder than it looks with utf8 and variable-width characters
2021-03-06 19:37:22 +08:00