bunnie
b6c443145c
extend modal functions; refactor status into its own server
2021-07-28 01:01:39 +08:00
bunnie
9b51edfe6c
add backspace (derp)
2021-07-27 18:00:09 +08:00
bunnie
4affdabc73
password modal box now nominally works
2021-07-27 17:30:37 +08:00
bunnie
1a65cd3389
password dialog box basic layout is kind of there
...
a little ugly, but...this has already taken too long.
2021-07-27 04:40:12 +08:00
bunnie
53f35f9928
intermediate work toward getting the password box going
...
lots of changes, maybe finally getting out of the UX rathole now
that basic localization is in place
2021-07-26 00:51:22 +08:00
bunnie
86e113b678
add locale to front-end; update menus to suppress 🔇 characters automatically
2021-07-26 00:49:33 +08:00
bunnie
2b57e1c4f8
add static localization
2021-07-25 23:46:03 +08:00
bunnie
bc5d262431
Update README.md
2021-07-23 17:19:50 +08:00
bunnie
556f0aaea5
beginnings of a password dialog system
2021-07-22 03:04:16 +08:00
bunnie
5d62af49a5
simple signature checks in the bootloader now
...
checks xous.img as a single blob before accepting it.
2021-07-12 17:16:22 +08:00
bunnie
84a2e9f768
fix status bar so that it redraws out of suspend/resume
...
the bootloader modifies the screen, so all elements must
be redrawn regardless of the pervious state change!
2021-07-11 18:47:19 +08:00
bunnie
00be94d913
devboot mode support
2021-07-03 21:08:39 +08:00
bunnie
6825e2e7e8
reset the i2c machine every new transaction
2021-06-25 03:41:42 +08:00
bunnie
75dca6bd4c
checkin for a rollback to sanity check some things
2021-06-25 02:09:42 +08:00
bunnie
7ea45b8e5b
fix bias in deface lines
2021-06-21 00:54:18 +08:00
bunnie
e9499586f1
right. status loop was a mess.
...
classic code rot resulting from adding stuff that was never designed
to be in part of what was originally just a test loop to show
uptime.
cleaned it up, idle CPU load drops from 8% -> 2-3%.
2021-06-20 01:55:57 +08:00
bunnie
f4fbe84b78
improve redraw performance on menu
...
it helps to actually redraw the menu instead of relying
upon status updates to redo the Ux.
2021-06-20 00:44:59 +08:00
bunnie
c0d4cbe81d
make the menu object more generic; demo with emoji selection
2021-06-19 04:44:21 +08:00
bunnie
b5630b74ce
update documentation
2021-06-19 01:36:35 +08:00
bunnie
2b5ba61552
add some useful messages on boot for the hosted mode users
2021-06-19 01:05:42 +08:00
bunnie
69a22adee9
menus basically working
2021-06-19 00:25:18 +08:00
bunnie
aa967a5a17
quiet up hosted mode build warnings
2021-06-18 22:37:08 +08:00
bunnie
769c90764c
menu Ux is now nominally doing something menu-like
2021-06-18 19:35:03 +08:00
bunnie
65cc8dd90c
defacement first-pass seems working
2021-06-18 17:40:00 +08:00
bunnie
0f937037e4
just getting to the point of implementing defacement
...
menu now pops up. does nothing, but we can at least
change contexts for the Ux into a different Ux theme.
2021-06-18 16:20:56 +08:00
bunnie
62c9737bbc
tenuous addition of a menu object
...
things don't crash, but...haven't really validated if they work, either!
2021-06-18 04:10:41 +08:00
bunnie
3664ff6718
clean up keyboard event handling so the GAM is the gateway server
...
this allows the GAM to handle authentication for listening requests.
2021-06-17 01:12:25 +08:00
bunnie
03bcf18348
clean up enum-based dispatch for Layouts, pulling in enum_dispatch crate.
2021-06-16 17:41:47 +08:00
bunnie
356b07dacc
works on "real hardware" but some issues with hosted mode
2021-06-16 17:03:28 +08:00
bunnie
5301f4af20
major refactor of the Ux -- can create, redirect I/O contexts
...
getting ready for Precursor to do more than just one thing.
2021-06-16 04:50:26 +08:00
bunnie
13a8cf7417
it helps to save the file before committing it
2021-06-15 17:46:10 +08:00
bunnie
8cd84d3be0
Merge branch 'bunnie-dev' into ux-refactor
...
incorporates the upstreamed xous-names connection count patch
2021-06-15 17:45:07 +08:00
bunnie
eee9f4e765
refactor xous-names to permit only a fixed number of connections
...
this prevents less trusted processes from connecting to servers
after the kernel initializations are done.
this works so long as we don't have disconnects from the kernel
servers. In order to support disconnects we will also need a
way to re-enumerate the SID to guarantee that we don't have a re-use
problem. But for now, the kernel is not designed with any practical
disconnect mechanism; there is no code that calls the Quit mechanism
on any server.
2021-06-15 17:41:14 +08:00
bunnie
4058b56aae
intermediate checkin of UX refactor
2021-06-15 12:50:29 +08:00
bunnie
7e141aba91
commit some API changes before making even more API changes
...
yo dawg i herd u liek API changes so I made API changes to ur API changes
2021-06-14 02:51:41 +08:00
bunnie
0db9ad9e6f
add status bar extension to inform of security states
...
- inverted text indicates a trusted message. policy is enforced in the GAM.
- we don't have a way to lock the USB port yet; but at least now it's communicated.
2021-06-13 04:40:50 +08:00
bunnie
fadc9c29ab
Merge remote-tracking branch 'origin/master' into bunnie-dev
2021-06-02 03:59:25 +08:00
bunnie
25e6bced00
add power-on utilization reporting
...
there is now an extra field in the status bar that gives
the %'age of time that the clocks are running.
2021-06-02 01:08:31 +08:00
bunnie
30aa794f30
add reference counting on connections between servers
...
the connection number is re-used for all objects created
within a process space, so you can't `Drop` the connection
immediately when an object goes out of scope. You have to
make sure all instance of the object go out of scope. This
patch adds reference counting to all the objects so that
the `Drop` function works as intended.
2021-05-21 16:24:30 +08:00
Sean Cross
eb7895d601
xous: add a return code to TerminateProcess
...
As part of this refactor, make `terminate_process()` a divergent call.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 11:01:00 +08:00
bunnie
5d4e716e1b
add status thread mechanism to check charger state
2021-05-16 16:30:58 +08:00
bunnie
b06e8d2a81
fix issue with datetime on hosted mode on windows
...
just monkey-patch over the call in hosted mode...
2021-05-16 02:26:24 +08:00
bunnie
08a86749fe
fix hosted mode bugs
2021-05-09 01:13:16 +08:00
bunnie
391122823d
refactor heapless version in attempt to debug issue that cropped up in xous-names
...
somehow, updating the toolchain has broken the FnvIndexMap implementation
2021-05-08 18:44:23 +08:00
bunnie
abf308e82d
try to trace down issue #61
2021-05-02 16:39:08 +08:00
bunnie
a2280639d9
forgot to uncomment a line
2021-05-02 16:13:06 +08:00
bunnie
05df98d1c1
disable suspend/resume support in hosted mode
...
hosted mode doesn't have suspend/resume support, and it's
not worth debugging subtle issues on that side of the fence
that seem to be OS-dependent.
2021-05-02 16:10:51 +08:00
bunnie
8b29fc4dd3
make the sleep note screen a little more aesthetic
2021-05-02 03:57:40 +08:00
bunnie
9997749c4c
fix soc version
2021-04-27 21:32:43 +08:00
bunnie
4ecd7c06ac
trying to fix renode stuff, but not quite there
2021-04-23 21:49:13 +08:00
bunnie
c385f4bdd5
fix hosted mode boot vs RTC alarm clear
2021-04-23 17:59:12 +08:00
bunnie
4022462144
fix RTC wakeup alarm code
2021-04-23 17:51:12 +08:00
bunnie
076ee3588e
add blank screen for ship mode
2021-04-22 18:07:41 +08:00
bunnie
fc4ae9851f
revert braille-specific debug config
2021-04-16 18:57:34 +08:00
bunnie
d807098ed1
more mods for the braille branch
2021-04-16 05:34:08 +08:00
bunnie
1841233d2c
add "slow mode" for braille debugging
2021-04-16 04:21:21 +08:00
bunnie
aed2325f68
fix some minor bugs in hosted mode
...
memory is not page-aligned so `if !cfg()`-out the alignment
checks in hosted mode
2021-04-09 17:31:36 +08:00
bunnie
8b93dd0c63
RTC server now basically working
...
There is an issue with the rtc commandline time checking
with respect to unhooking its callback, maybe related to
the new disconnect/destroy server code
2021-04-09 05:24:29 +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
d6fd42b593
COM refactor of callbacks
2021-04-02 16:40:17 +08:00
bunnie
470b5c6440
finalize API refactor for xous-names
2021-03-30 02:13:23 +08:00
bunnie
f35d478cf0
attempt to refactor xous_names
2021-03-29 04:35:11 +08:00
bunnie
e889765caf
refactor the Ticktimer API.
2021-03-28 18:14:41 +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
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
bunnie
ca07645dce
remove loop polling on GAM, seems unecessary
2021-03-18 16:21:10 +08:00
bunnie
ea8b208a15
finalize rkyv 0.4.1 refactor
2021-03-18 03:54:48 +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
Sean Cross
14c9d62046
gam: make sure opcodes are only available in-crate
...
This prevents them from accidentally being used outside of the crate.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-13 18:05:33 +08:00
bunnie
d2ef03b7e2
intermediate commit to try and lock in a bug
2021-03-11 22:32:05 +08:00
bunnie
e84845553e
Merge branch 'hardware' of github.com:betrusted-io/xous-core into hardware
2021-03-11 18:53:53 +08:00
bunnie
443e4a1444
remove draw_order from TextView
...
We can't support this anyways, because the textviews are
immediately drawn on call by the calling app
2021-03-11 18:52:10 +08:00
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
bunnie
54cf95aec1
turn off more debugging for demo
2021-03-11 04:43:58 +08:00
bunnie
0f0ab91879
fix margin on uptime
2021-03-11 04:09:12 +08:00
bunnie
835bee2c75
lay in foundations to support the sleep function
2021-03-11 01:45:54 +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
d54b815653
add input listeners to get input lines.
...
next up: shellchat
2021-03-09 03:08:34 +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
7d1fb5a31b
ellipsis support and fixing prediction redraw bugs
2021-03-09 02:24:45 +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
cb0686803e
split out the background clear/redraw from the core loop
2021-03-06 02:45:47 +08:00
bunnie
00ada3ac3c
clean up a debug message
2021-03-06 01:12:24 +08:00
bunnie
0cc1f9f5fb
it doesn't look that impressive, but there's a lot of plumbing now.
2021-03-06 01:10:18 +08:00
bunnie
5ea2a21d2d
tighten up APIs, implement a very 0th-order input loop
...
this is where the debugging begins of the beginning of
the API. it's like finally finding the start of a roll
of clear tape.
2021-03-04 19:02:56 +08:00
bunnie
aa8c0e5792
a bit more deck shuffling on the APIs
...
feels a lot cleaner now.
2021-03-04 16:02:42 +08:00
bunnie
92ca22c38c
refactor IME plugin API into a common crate
...
This will allow other APIs to just include the API crate
to define all the gazintas and gozoutas.
2021-03-04 03:14:26 +08:00
bunnie
2b768e9b86
fix warnings in initial API
2021-03-03 23:27:30 +08:00
bunnie
313f12acbb
clean up warnings
2021-03-03 22:38:20 +08:00
bunnie
8f809c2a51
start layering in the IME front end and prediction APIs
2021-03-03 14:53:33 +08:00
bunnie
9804290854
add some primers to the status loop
...
this helps the screen-up time appear faster, so we aren't
waiting for a full poll interval for new data to appear before
the system apears to be powered on
2021-03-02 21:57:52 +08:00
bunnie
9a2bce24cb
clean up timing and cosmetic issues on status updates
2021-03-02 21:47:23 +08:00
bunnie
4b0f50293f
another intermediate commit
2021-03-02 21:15:40 +08:00
bunnie
96a19baa8d
state before refactor of status to own process
2021-03-02 19:25:41 +08:00
bunnie
d1609d2a31
another commit checkpoint. somehow, i have a race condition now.
2021-03-01 15:08:08 +08:00
bunnie
70aa5b792b
check in for inspection
2021-03-01 14:40:39 +08:00
bunnie
5917ff4664
add object drawing to the GAM abstraction layer
2021-03-01 04:01:33 +08:00
bunnie
ce59bea2fa
add function to extract canvas dimensions from GAM
...
gfx_conn should be exclusive from GAM to gfx_conn, so
need to refactor out all the errant calls that are
scattered about.
2021-03-01 02:33:13 +08:00
bunnie
bee1f796ee
add rounded rectangle drawing
2021-03-01 01:49:22 +08:00
bunnie
463e2ad77d
fixup GAM APIs to latest rkyv standard, fix drawable computation
2021-02-26 03:37:48 +08:00
bunnie
6528bc77d4
refactor GAM to use rkyv
2021-02-19 04:02:29 +08:00
bunnie
c5e6391e22
remove mention of Sendable and the ipc.rs module
2021-02-18 02:01:11 +08:00
bunnie
07b3dd9afa
add PID printout to every service as it starts
2021-02-15 19:16:21 +08:00
bunnie
cc6992c3df
implement "imports" methodology
...
This commit simplifies managing git-repo hosted dependencies, so
there is a single location for changing the package path.
2021-01-20 16:22:38 +08:00
bunnie
9252455795
fix Gid passing issue to status thread
2021-01-20 14:57:40 +08:00
bunnie
53713baaa6
trying to debug why lend_mut() isn't working
2021-01-20 03:18:13 +08:00
bunnie
f247e557e8
now to the point of testing the general message flow in hosted mode
2021-01-19 18:58:57 +08:00
bunnie
086a4da862
refactor TextView into graphics-server
2021-01-19 04:54:54 +08:00
bunnie
b72d2f2bb3
refactoring of interfaces
2021-01-19 00:05:33 +08:00
bunnie
73286828c8
more GAM API fleshing out; now to the point of updating a TextView
2021-01-18 04:12:40 +08:00
bunnie
01abbd4f47
more GAM API coming together
2021-01-17 21:58:02 +08:00
bunnie
5701bf4968
add debug attributes back in
2021-01-17 17:02:40 +08:00
bunnie
cc66c3911a
starting to lay out initial framework for the graphical abstraction manager (GAM)
2021-01-17 04:02:08 +08:00