bunnie
d235218ec3
this version of benchmark works.
2021-01-22 04:19:21 +08:00
bunnie
31e58c3337
add benchmarks. this commit exhibits a mysterious problem with Lookup API
2021-01-22 04:11:02 +08:00
bunnie
53dfda13bf
test shell with the usize->u32 changes
2021-01-22 01:36:36 +08:00
bunnie
22ed00f0d8
refactor log-server to remove usize from sendable object
2021-01-22 01:34:36 +08:00
bunnie
da35ecc09c
the great usize extinction event: xous-names
...
replace usize in repr(C) with u32 for xous-names
2021-01-22 00:41:25 +08:00
bunnie
0115f0f656
the great usize extinction event continues: keyboard
...
btw this is to eliminate "usize" primarily in `structs` that
are `repr(C)`. usize is ok in most other places.
2021-01-22 00:36:24 +08:00
bunnie
75cd321175
great usize extinction event - graphics-server
2021-01-22 00:33:49 +08:00
bunnie
87501444c5
the great usize extinction event: remove usize from blitstr
2021-01-22 00:27:45 +08:00
bunnie
2252d7b324
update README with link to project manager tool
2021-01-21 23:18:50 +08:00
bunnie
a58383209c
fix log-server's type
2021-01-21 12:46:24 +08:00
bunnie
f1b25e1f1d
add docs on servers
2021-01-21 03:57:52 +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
54d299daf8
the other half of the previous commit
2021-01-19 17:10:52 +08:00
bunnie
757812423c
refactor graphics-server api crate organization
2021-01-19 17:10:31 +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
bunnie
72b8d6a3de
add keyboard input emulation in hosted mode
2021-01-13 23:17:09 +08:00
bunnie
36cefdac3c
fixes to get it working in hosted mode
2021-01-13 15:09:53 +08:00
bunnie
8a1991876f
add basic TRNG service
2021-01-13 15:04:14 +08:00
bunnie
18fbd046f6
use git version of blitstr
2021-01-13 04:42:06 +08:00
bunnie
95cbf42cf2
refactor frame buffer to use double buffering
2021-01-13 04:39:04 +08:00
bunnie
2958858a3a
refactor to use UTRA for control registers
2021-01-13 01:17:43 +08:00
bunnie
812fbf5d4f
this patch fixes the previous commit's panic
2021-01-13 00:32:07 +08:00
bunnie
a404e4ae61
this panics with an alignment error (double string) issue #32
2021-01-13 00:27:12 +08:00
bunnie
c848d374c6
roll back the build time notice
...
Turns out the build time only seems to capture the last time
you managed to force a full rebuild (???). Even though cargo
indicates that a rebuild had happened of the main.rs, the environment
variable containing the time is not being updated, because the
build.rs file isn't being run. But! if you force a trigger of
that file, then cargo decides to rebuild *everything* which greatly
increases the build time, which is a drag for development.
So, just remove the build time notice. If it's not going to be
correct, better to not emit it than to be outright misleading...
2021-01-13 00:24:12 +08:00
bunnie
0a3c50f820
add build timestamping/versioning to the Xous log output
2021-01-12 23:30:52 +08:00
bunnie
2eafe825b8
refactor COM to use generic name registrations for event listeners
2021-01-12 18:44:02 +08:00
bunnie
cd4ea5ed17
make the run variant not break
2021-01-12 04:20:37 +08:00
bunnie
426c747f8f
keyboard server basics seem working
2021-01-12 04:13:15 +08:00
bunnie
5cad631569
now it works! changing usize -> u8 did the trick. don't know why. spooky.
2021-01-12 02:08:20 +08:00
bunnie
6a3833ebc7
commit of mysterious tuple-vec problem
2021-01-12 01:37:52 +08:00
bunnie
aeadbfb1b5
fix up keyboard API to use scalars, add demo connection
...
also fix a bunch of other idiomatic weirdnesses
2021-01-12 00:00:57 +08:00
bunnie
f166073954
first draft of keyboard server
2021-01-11 06:11:15 +08:00
bunnie
a8d31cb7e2
update README and add xous-names into renode image
2021-01-09 02:23:01 +08:00
bunnie
ea78de8014
convert all services to use xous-names server
2021-01-09 02:12:01 +08:00
bunnie
4ef581a266
riddled with race conditions, but...sort of works
2021-01-08 05:20:53 +08:00
bunnie
ab6fa7ae1c
another intermediate checkout
2021-01-07 22:30:26 +08:00
bunnie
95d4f03591
intermediate checkin
2021-01-07 21:53:08 +08:00
Sean Cross
6ccbacf65f
loader: assign sections to process ownership
...
This ensures these addresses aren't re-used and handed out again by
memory allocation.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 20:33:21 +08:00
Sean Cross
147100fa38
graphics-server: minifb: use iterators for drawing the screen
...
This removes the bounds checks that were being performed, and goes for a
pure iterator approach.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 20:30:42 +08:00
bunnie
323c11f554
commit a version that exhausts the kernel allocation
2021-01-07 16:58:13 +08:00
bunnie
73c4be0457
upgrade name length to 64 characters
2021-01-05 16:53:19 +08:00
bunnie
0d869870ae
this code works in hosted mode but fails on hardware
2021-01-05 15:48:51 +08:00
bunnie
ec675eefb4
cleanup warnings
2021-01-05 04:45:23 +08:00
bunnie
bdbe8f8288
intermediate checkin
2021-01-05 04:40:34 +08:00
bunnie
61409bb94c
update README on xous-names, and refine the API a bit
2021-01-05 02:28:27 +08:00
bunnie
1075dff559
the name server itself
2021-01-04 23:34:36 +08:00
bunnie
cce89395f6
test framework for xous-names
2021-01-04 23:34:18 +08:00
bunnie
2beddd745e
missed one merge conflict fix
2021-01-04 03:24:27 +08:00
bunnie
b7263f7ef0
Merge remote-tracking branch 'origin/master' into hardware
2021-01-04 03:19:23 +08:00
Sean Cross
7b50d00eb8
repo: run cargo fmt
...
This reformats line endings to be consistent, and reinforces the
contents of `.gitattributes`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-03 18:31:51 +08:00
bunnie
f2873e3514
some final notes for testing prep
2021-01-03 17:32:21 +08:00
bunnie
8336eb22f3
add notes on the agent
2021-01-03 17:26:17 +08:00
bunnie
1359db06f4
add repeat command for stand-alone emissions testing
2021-01-03 03:04:25 +08:00
bunnie
63234411e2
get fcc test working
2021-01-02 03:04:28 +08:00
bunnie
3ceb41208c
checkpoint: problems with pds send line (borrowed memory)
2021-01-01 03:44:42 +08:00
bunnie
17156e483c
check in a version that breaks
2021-01-01 00:50:13 +08:00
bunnie
534fb5373a
intermediate checkin for sharing
2021-01-01 00:45:07 +08:00
bunnie
9d63d39cae
add the agent itself
2020-12-31 19:31:30 +08:00
bunnie
b9a31f7d99
try to layer in the fcc agent
2020-12-31 19:31:12 +08:00
bunnie
3ab7c322d7
commit adjustment and testing tweaks
2020-12-21 02:33:22 +08:00
bunnie
957c065f41
push mods for modnoise eval etc.
2020-12-18 04:35:39 +08:00
bunnie
fdd474fa89
get the trng-tester server working
2020-12-15 22:37:06 +08:00
bunnie
8d36974a86
add trng-tester crate (just the beginning)
2020-12-14 23:30:58 +08:00
bunnie
c9a18125df
add hardware TRNG support to kernel (issue #16 )
2020-12-14 17:57:29 +08:00
bunnie
fdf3f6860a
ugh fix more CI issues on "run" variant
2020-12-13 02:22:52 +08:00
bunnie
6b39946d31
fix git refs for push to master
2020-12-13 02:10:44 +08:00
bunnie
7488018e22
get wdt mods compiling into xtask run
2020-12-13 02:03:15 +08:00
bunnie
e1c4b702a9
add WDT support to xous-core
2020-12-13 01:54:25 +08:00
bunnie
95719852b3
Merge remote-tracking branch 'betrusted/master' into hardware
2020-12-12 12:58:06 +08:00
Sean Cross
25e4d16de3
xous-os: rename CreateServer to CreateServerWithAddress
...
Servers will, by default, get randomly-assigned SIDs. Certain servers
will want to have well-known SIDs, such as the log server or the
nameserver. These will use a separate call in order to perform this
priveledged operation.
A subsequent patch will add `CreateServer`.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 20:33:33 +08:00
bunnie
bcb52f1a59
eliminate unused code
2020-12-03 23:58:26 +08:00
bunnie
fbf9d7a342
add some docs on the name server
2020-12-03 23:58:06 +08:00
bunnie
bd64323f36
revert to local repo for builds
2020-12-03 01:54:21 +08:00
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
Sean Cross
4f2be0c0e1
shell: use log-server for message logging
...
This paves the way for no longer needing our own UART for this process.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 21:27:35 +08:00
Sean Cross
1ffc440565
graphics-server: use log-server for all message printing
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 21:27:06 +08:00
Sean Cross
e18219b078
log-server: add first draft of logging server
...
This server implements `log`, and comes with a `lib` that allows for
setting up logging.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 21:26:19 +08:00
Sean Cross
f46f7c6e81
shell: use new String struct from xous
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 11:19:43 +08:00
Sean Cross
9192775e5e
graphics-server: use String for String opcode
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 11:19:17 +08:00
Sean Cross
c33794c859
shell: use new graphics subsystem
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:30:34 +08:00
Sean Cross
7fc8dafc39
shell: add StringBuffer struct
...
Add a StringBuffer struct that can be used to create string messages.
This will eventually be promoted to Xous.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:29:58 +08:00
Sean Cross
2d4a2bf871
ticktimer: use millis instead of nanos on hosted
...
The `elapsed_ms()` function should probably return milliseconds rather
than nanoseconds. Time marches on.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:29:12 +08:00
Sean Cross
c7164c461d
log-server: unify print messages for log_string
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:28:01 +08:00
Sean Cross
5823c23472
log-server: unify log messages
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:27:13 +08:00
Sean Cross
d9f858bcf0
log-server: remove pancurses dependency
...
This hasn't been required in a very long time.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:26:16 +08:00
Sean Cross
af1a7f5ba5
graphics-server: first general merge of gfxlib
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:22:03 +08:00
Sean Cross
7607b0f9ee
graphics-server: remove embedded-graphics from backends
...
Use native drawing for these platforms.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:21:06 +08:00
Sean Cross
a2fd6b0438
graphics-server: remove dependency on embedded-graphics
...
The graphics server will implement its own routines.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:20:19 +08:00
Sean Cross
0bce0eeb53
ticktimer: implement hosted version of ticktimer
...
This gets the basic ticktimer server working in a hosted environment.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-28 11:14:26 +08:00
Sean Cross
4334e7c23e
shell: fix build for hosted
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-28 11:14:09 +08:00
Sean Cross
f9af2322f7
log-server: fix compiling for hosted builds
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-28 11:13:39 +08:00
Sean Cross
dfed13bd9f
shell: initialize the logstr before using it
...
This fixes UB when accessing an uninitialized value.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-15 11:58:23 +08:00
bunnie
9ee43a7acc
some more attempts to get log strings working...
2020-10-15 00:01:02 +08:00
bunnie
c8a2f34998
add debug output to log_string
2020-10-14 23:15:33 +08:00
bunnie
ac4d79ea68
logging server bringup
2020-10-14 23:01:57 +08:00
bunnie
5cf8e9e3bc
Merge remote-tracking branch 'origin/master' into ticktimer
2020-10-14 15:30:47 +08:00
bunnie
49f15e547f
upgrade to work with multi-UART API
2020-10-14 04:35:15 +08:00
bunnie
5b51048774
add debugprint template to other servers
2020-10-14 03:41:53 +08:00
bunnie
1d23d2c1f7
unify debug.rs and move to UTRA format
2020-10-14 03:40:44 +08:00
bunnie
523d18f5ab
refactor "examples" -> "services"
2020-10-14 02:04:21 +08:00