bunnie
72ed8cd35d
refer to pushed gitref for merge to main
2020-12-03 01:52:20 +08:00
bunnie
c0842517f6
major refactor of the graphics-server API
...
- remove redundant Rect/Rectangle implementations
- refactor Lines and Circles
- add DrawStyle to the message passing regimen
- depracate modal Styles; now every object has a DrawStyle shipped with it
- remove unused/redundant API calls
2020-12-03 01:48:10 +08:00
bunnie
cbf3ffa4a4
refer to the latest blitstr commit ref for public distribution
2020-11-28 02:08:15 +08:00
bunnie
5cd1bf7012
incorporate blitstr for string drawing
2020-11-28 02:05:55 +08:00
bunnie
c05153b5af
add dirty bit set to put_pixel()
2020-11-27 17:21:31 +08:00
bunnie
2c3aef886c
remove final vestiges of debug.rs, deprecate 4-uart support
2020-11-27 17:12:49 +08:00
bunnie
a129b48858
remove debug.rs from COM
2020-11-27 16:48:57 +08:00
Sean Cross
f04484abd9
shell: remove unused extra files
...
These files are leftover from a time when we didn't have the log server.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-27 14:13:21 +08:00
Sean Cross
684ba69a31
os_timer: move preemption from shell to ticktimer server
...
This is responsible for preemption in the system. Move it to the timer
server since it seems to make more sense to have there.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-27 14:13:21 +08:00
Sean Cross
513b99f916
ticktimer-server: remove debug module
...
This was leftover from before a time when we had the log server. It no
longer serves a need.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-27 14:00:19 +08:00
Sean Cross
fcb64a85d4
log-server: remove spurious print message
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-27 13:59:33 +08:00
Sean Cross
ff8cb19999
log-server: implement panic logging
...
This is now able to understand the panic log messages that are sent by
services that are in the procses of panicking.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-27 13:58:03 +08:00
Sean Cross
2e4b38a2f1
log-server: unconditionally enable logging
...
If users are including the `log-server` crate, then they probably want
logging regardless of what features are enabled.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-27 13:57:20 +08:00
Sean Cross
8e2faddd2f
com_rs: use git protocol in Cargo.toml
...
Don't use git submodules, which can be confusing. Instead, use a git
repo in the Cargo.toml file.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-27 09:47:32 +08:00
bunnie
7ba75b14f9
add ability to render strings on multiple lines
2020-11-27 03:33:44 +08:00
bunnie
19a7a9ce98
get threaded version of COM handler working
2020-11-27 01:32:10 +08:00
bunnie
99d8f2a525
version with threads compiles, but doesn't work yet
2020-11-27 00:35:29 +08:00
bunnie
4ee7f67f82
commit the nonworking code for review
2020-11-26 00:39:15 +08:00
bunnie
b568d86153
get non-blocking gas gauge checking working
2020-11-25 23:06:57 +08:00
bunnie
62f8ce32f0
attempt a refactor to add non-blocking battery status checking
...
stuck at trying to receive messages in the main shell in a
non-blocking manner
2020-11-25 19:58:24 +08:00
bunnie
d583e20b18
very basic battery monitoring via COM
2020-11-25 05:11:32 +08:00
bunnie
058c4473bb
helps to add the source code too
2020-11-24 22:45:44 +08:00
bunnie
fa12e513cd
inital take at com
2020-11-24 22:45:10 +08:00
bunnie
bc832b3a50
fix interrupt pending clear issue in debug module
...
during conversion to documented interrupts from Litex a case was
missed.
2020-11-24 22:44:19 +08:00
Sean Cross
e7aa2c70a0
shell: use connect() instead of try_connect()
...
We don't need to use `try_connect()` anymore since we now have
`connect()` which will automatically retry as necessary.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-23 20:05:36 +08:00
Sean Cross
958fa96fde
Merge branch 'master' of github.com:betrusted-io/xous-core
2020-11-23 19:32:31 +08:00
Sean Cross
0732075869
graphics-server: bounds-check the circle drawing
...
Otherwise we could overflow the buffer.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-23 19:31:52 +08:00
bunnie
1aa01fdf5d
confirm sleep works, some minor fixup to UTRA style usage
2020-11-23 19:02:02 +08:00
Sean Cross
d5ba92a483
shell: re-enable msleep
...
Now that things work, we should be able to sleep.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-23 17:35:09 +08:00
Sean Cross
72a466bc61
ticktimer: use interrupt from UTRA
...
Previously UTRA didn't have an interrupt, so we just made one up. Use
the correct interrupt to get things working on hardware.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-23 17:34:18 +08:00
Sean Cross
5c89487ca2
shell: fix const debug warnings on 1.48
...
This fixes a bunch of warnings that appeared with Rust 1.48.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-23 17:21:24 +08:00
Sean Cross
12532e1734
log-server: fix const warnings on rust 1.48
...
Rust 1.48 changed how warnings of const values operate.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-23 17:21:03 +08:00
Sean Cross
78a47ab4ba
services: ticktimer: fix debug warnings on hardware
...
These appeared in Rust 1.48.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-23 16:13:19 +08:00
Sean Cross
6c17531512
Merge branch 'master' of github.com:betrusted-io/xous-core
2020-11-23 16:03:57 +08:00
bunnie
d26c80582e
clean up gfx server API, allow for string size setting
2020-11-23 15:42:58 +08:00
bunnie
41d7f2a0e5
add ScreenSize message, add hanzi test to boot screen
2020-11-23 14:55:56 +08:00
Sean Cross
be1687ffdd
Merge branch 'master' of github.com:betrusted-io/xous-core
2020-11-23 14:20:27 +08:00
bunnie
48720dc6a7
right, comment out the offending line
2020-11-23 03:52:40 +08:00
bunnie
a2670a7537
minor tweaks to improve the rendering of the bouncyball
2020-11-23 03:49:09 +08:00
bunnie
2d5bd20c16
bouncing ball "招财猫"-like totem now working
2020-11-23 03:18:43 +08:00
bunnie
16e9f43015
add circle drawing to graphics
2020-11-23 00:40:40 +08:00
bunnie
710abce418
fixup to latest soc.svd register documentation standard
2020-11-22 03:45:44 +08:00
Sean Cross
796c9c5998
services: ticktimer: remove excess hosted printing
...
This was used to try and debug an issue in the ticktimer server, which
ended up being an issue in the kernel.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:23:23 +08:00
Sean Cross
d9272ba21a
ticktimer: use log server
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:09:34 +08:00
Sean Cross
aa315c534c
ticktimer: implement msleep
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:09:01 +08:00
Sean Cross
5a66f72938
ticktimer: add opcodes for msleep
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:08:48 +08:00
Sean Cross
b8f69b4a7f
ticktimer: use correct debug port
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:07:33 +08:00
Sean Cross
1a0be47d05
shell: add loop number to msleep
...
This allows us to trace the loop number through the syscall.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-11 16:06:39 +08:00
Sean Cross
7391b98f4e
log-server: remove excess printing from log string
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:30:07 +08:00
Sean Cross
719549a2cb
xous: rename ReturnToParentI -> ReturnToParent
...
This syscall isn't the only one that can be called from an interrupt
context.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-01 16:26:19 +08:00