Commit graph

30 commits

Author SHA1 Message Date
bunnie
93a7567618 ticktimer prints its PID now 2021-03-01 13:46:02 +08:00
bunnie
ea78de8014 convert all services to use xous-names server 2021-01-09 02:12:01 +08:00
bunnie
bdbe8f8288 intermediate checkin 2021-01-05 04:40:34 +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
b9a31f7d99 try to layer in the fcc agent 2020-12-31 19:31:12 +08:00
bunnie
957c065f41 push mods for modnoise eval etc. 2020-12-18 04:35:39 +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
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
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
bunnie
b568d86153 get non-blocking gas gauge checking working 2020-11-25 23:06:57 +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
bunnie
1aa01fdf5d confirm sleep works, some minor fixup to UTRA style usage 2020-11-23 19:02:02 +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
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
be1687ffdd Merge branch 'master' of github.com:betrusted-io/xous-core 2020-11-23 14:20:27 +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
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
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
bunnie
ac4d79ea68 logging server bringup 2020-10-14 23:01:57 +08:00
bunnie
49f15e547f upgrade to work with multi-UART API 2020-10-14 04:35:15 +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