Commit graph

59 commits

Author SHA1 Message Date
bunnie
72b8d6a3de add keyboard input emulation in hosted mode 2021-01-13 23:17:09 +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
f5f04a52bb update lockfile for vergen inclusion 2021-01-12 23:31:13 +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
ea78de8014 convert all services to use xous-names server 2021-01-09 02:12:01 +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
bunnie
bdbe8f8288 intermediate checkin 2021-01-05 04:40:34 +08:00
bunnie
cce89395f6 test framework for xous-names 2021-01-04 23:34:18 +08:00
bunnie
b9a31f7d99 try to layer in the fcc agent 2020-12-31 19:31:12 +08:00
bunnie
8d36974a86 add trng-tester crate (just the beginning) 2020-12-14 23:30:58 +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
e1c4b702a9 add WDT support to xous-core 2020-12-13 01:54:25 +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
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
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
471befa970 Merge branch 'master' into hardware 2020-11-24 22:46:44 +08:00
bunnie
fa12e513cd inital take at com 2020-11-24 22:45:10 +08:00
Sean Cross
59b108f0d2 Cargo: update to latest lockfiles
Signed-off-by: Sean Cross <sean@xobs.io>
2020-11-24 22:30:40 +08:00
bunnie
710abce418 fixup to latest soc.svd register documentation standard 2020-11-22 03:45:44 +08:00
Sean Cross
8ac141af1b cargo: commit latest lockfile
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 21:28:33 +08:00
Sean Cross
4df3296d99 cargo: commit lockfile
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-30 10:31:37 +08:00
Sean Cross
6225cf11b0 cargo: sync lockfile
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-29 19:48:23 +08:00
bunnie
6e6a8a4b08 debugging ticktimer 2020-10-13 22:49:12 +08:00
bunnie
98f648f30f attempt to add a ticktimer server 2020-10-12 19:08:16 +08:00
bunnie
9a50de8b4e refactor: utra -> utralib naming
this cleans up some namespace issues when including
the utra crate which also refers to utra::generated::utra,
and there are CONST at the crate-level, and also functions
at the module-level which need disambiguation. By naming
the crate utra-lib this saves a bit of syntatic wrangling
at the top of every file.
2020-10-12 03:56:10 +08:00
Sean Cross
6a872151b2 cargo: commit lockfile including anyhow
This is used by `svd2utra`.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-11 09:08:53 +08:00
Sean Cross
a3f6e6ea48 cargo: add svd2utra to lockfile
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 11:38:31 +08:00
Sean Cross
9140482a6b lock: add missing lockfiles
Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 10:52:26 +08:00
Sean Cross
d0d687a239 utra: fix build on non-hardware release
This adds svd2utra, which enables building for non-embedded harware.

It also fixes some build issues, and paves the way for generating UTRA
at compile-time.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-05 10:13:51 +08:00
bunnie
711e5ea910 slot in utra references 2020-10-02 04:52:03 +08:00
Sean Cross
2575d13acd cargo: update lock file
Signed-off-by: Sean Cross <sean@xobs.io>
2020-09-23 10:59:38 +08:00
Sean Cross
cdc9cc71d3 Cargo: add graphics-server to cargo manifest
Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-30 00:32:14 +08:00
Sean Cross
dfd11f846d hosted: fix hosted builds
We can now run `cargo xtask run` and it will do the right thing.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-18 13:52:43 +08:00
Sean Cross
8920ab57cf xtask: remove loader, kernel from workspace to fix rebuilds
These packages modify RUSTFLAGS, which causes some packages to be
rebuilt every time. Move them out of the workspace so as to ensure they
don't use the same `target` directory.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-18 10:51:29 +08:00
Sean Cross
82c9915ad6 examples: append -server to server names
This keeps server names such as "log" and "graphics" as unambiguous.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-17 19:41:50 +08:00
Sean Cross
1991a464bd core: add Workspace back in
The Workspace turns out to be useful, particularly when handled
correctly. This allows for a unification of all packages.

Additionally, since we now are focusing on applications and servers now,
the decision of which packages to build by default becomes clearer.

Finally, we'll be able to use `xbuild` to construct more complex
workflows with a full Workspace.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-17 18:39:33 +08:00
Sean Cross
21aa67b748 workspace: remove workspace
The kernel and userspace both need to use `xous`, but have different
requirements. If we use a workspace, then all instances of `xous-rs`
must have the same feature set.

This breaks them apart so the kernel can have one set of features and
programs can have another set.

As part of this change, tests are now integrated into the kernel, and a
new `create_process_as_thread()` and `wait_process_as_thread()` function
pair have been added.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-02 16:11:12 +08:00
Sean Cross
869ebcff8b kernel: get tests and running working
This fixes process creation so that it works for both tests and running
it as a program.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-07-29 22:37:03 +08:00
Sean Cross
039975323e tests: add tests package
This package serves only to build tests for the kernel, because the
kernel wants to use a different mechanism for spawning processes.

Cargo doesn't support having `#[cfg(test)]` attributes on modules in
order to allow conditional compilation depending on whether we're
running a test or not. To work around this, `main.rs` is included in
another dummy crate.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-07-29 21:18:30 +08:00
Sean Cross
e7e8a2b748 kernel: get initial hosted non-test processes working
This now has the ability to fork off processes.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-07-29 17:52:01 +08:00
Sean Cross
19222c34a9 kernel: get shutdown and multi-clients working
THis now has proper authentication for tests.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-07-28 13:28:14 +08:00