bunnie
b9f3182bb9
mods for hosted mode to work again
2021-06-02 03:45:15 +08:00
bunnie
ee2e38be05
add commands to help manage wfi/power debugging
2021-06-01 17:02:30 +08:00
bunnie
9f3647f3a3
have audio off by default on power-on to save power
2021-06-01 00:44:33 +08:00
bunnie
52c32cc4d1
auto-powerdown of sha block when not in use
2021-05-30 00:12:18 +08:00
bunnie
25a77ddb19
EC updating seems to work.
2021-05-25 05:13:20 +08:00
bunnie
c483581716
debugging some timing issues
2021-05-25 02:53:24 +08:00
bunnie
7529628053
partial progress on EC updater
2021-05-24 04:34:50 +08:00
bunnie
58edcc56f2
sha512 tests fully implemented, working through sus/res
...
note: sha512 will fail if a suspend is forced upon it!! but
it will vociferously complain if this happens.
2021-05-21 15:56:58 +08:00
bunnie
5526bc4100
add hardware support for sha512/256
2021-05-21 04:35:01 +08:00
bunnie
21a5ddb40f
sha512 hardware acceleration is working, now benchmarking
...
also need to extend hw implementation to sha512/256
2021-05-21 03:15:13 +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
3f12b0a69b
add a gyro test command to shellchat
2021-05-16 16:52:27 +08:00
bunnie
87b6d9b6d7
add backlight commands
2021-05-16 04:29:12 +08:00
bunnie
08a86749fe
fix hosted mode bugs
2021-05-09 01:13:16 +08:00
bunnie
a8a35fa434
roll back heapless crate on ime-frontend
2021-05-08 23:55:08 +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
b904a114fe
this commit crashes on boot
2021-05-08 16:40:44 +08:00
bunnie
7f7bdbff88
this will play the long sample. and it works! :)
2021-05-08 03:41:04 +08:00
bunnie
15fc4a6c36
audio working, trying out longer samples
2021-05-08 03:14:14 +08:00
bunnie
fe6b417643
checkpoint
2021-05-08 01:13:30 +08:00
bunnie
46fa8fa01e
extend shellchat to allow for multiple callback registrations
2021-05-07 16:22:06 +08:00
bunnie
b3a60faec2
audio checkpoint
2021-05-07 15:09:51 +08:00
bunnie
7dd66a4c18
playback is mostly working and stable
2021-05-07 05:42:39 +08:00
bunnie
bc82dbd157
transition i2c api on codec, finally found the damn race condition
2021-05-06 05:05:17 +08:00
bunnie
b596c40dd6
refactor I2C to have work queue, cleaner (but untested) APIs
2021-05-06 03:40:04 +08:00
bunnie
bb5bc1d212
refactor i2c to break out the i2c machine to a separate server
...
the concurrency issues on I2C are getting hairy, and it was probably a
dubious decision from the start to merge I2C into the LLIO block; but
originally this was motivated by the idea of keeping all the
"miscellaneous slow stuff" in one process to keep the memory footprint
small and make code a bit more readable.
Keeping I2C in the same process space as the LLIO but splitting it
into its own thread and server splits the difference, by giving us
more options to deal with the concurrency, without inflating the size
of the kernel binary and allocating a lot of extra static data.
2021-05-06 00:45:14 +08:00
bunnie
d17ae106f1
kernel panic on memory lend
2021-05-05 00:58:48 +08:00
bunnie
61611caddd
some general ideas to debug later
2021-05-04 02:47:03 +08:00
bunnie
f8979d6341
intermediate progress on audio. doesn't compile.
2021-05-04 02:22:35 +08:00
bunnie
0ca2f58c6e
add a note to indicate if we're in cold sleep
...
it's not terribly aesthetic right now, but we can fix that later.
2021-05-02 03:36:54 +08:00
bunnie
b17753ce8b
retrofit the rest of the servers for suspend/resume
...
we can now do suspend/resume in the xous chat!
2021-05-02 01:38:44 +08:00
bunnie
760b45be38
add some version commands
2021-04-26 09:24:43 +08:00
bunnie
061284ec5f
debugging BOOST mode glitch issue
...
Here's an arcane bug for you:
When powering down, the Spartan 7 3.3V I/O drivers will
output a roughly 800us wide glitch as 3.3V falls below around
1.7V, if the 0.95V core voltage comes down first (which it does
because we have an active discharge on 0.95V, but not on 3.3V).
In this case, it's just wide and high enough to cause the
BOOST mode line to engage, which takes the BOOST output
and ties it to VBUS, which is just enough for the system to
think you're powering it back on again. Which is not what
you want when powering down.
The ultimate fix was to put a heftier pull-down on the BOOST
line so that it can't trip the BOOST output into the VBUS.
Another option could be more active discharge FETs, but that
would require a full board spin and we are already at certification,
so we'll stick with the stronger pull-down on BOOST. It seems to
be a robust fix in the worst corner cases we can find.
The downside is that when powering an external USB device,
you are burning an extra 30mW of power overcoming the pull-down,
but typically, any external USB devices plugged into Precursor
will burn far in excess of that, so the delta should be negligible.
2021-04-23 15:33:14 +08:00
bunnie
f97b61a788
add the killbounce command
2021-04-23 01:49:03 +08:00
bunnie
52a9116edb
add various sleep/ship/kill/coldboot commands
2021-04-22 18:08:19 +08:00
bunnie
b85650f5a6
minor tweaks to SSID scan and FCC infra
...
-fix help string in FCC
-try resetting SSID scan state machine after sleep cycle & timeout
2021-04-18 13:38:42 +08:00
bunnie
53f3ca20f0
add SSID scanning
2021-04-16 23:58:30 +08:00
bunnie
b2c0608b0b
initial cut at SSID scanning
2021-04-16 23:07:31 +08:00
bunnie
bda82246cf
fix typos
2021-04-16 23:07:16 +08:00
bunnie
459026983c
minor formatting issue
2021-04-16 23:06:49 +08:00
bunnie
22d676cc59
add reporting of sleep current
2021-04-16 19:58:05 +08:00
bunnie
809f0445e1
add vibe command
2021-04-16 19:27:48 +08:00
bunnie
024a072a7c
absorb WDT fix to eliminate a race condition
2021-04-15 18:40:00 +08:00
bunnie
24ae5686c8
closing in on a final PDS set
2021-04-15 13:44:32 +08:00
bunnie
11ad8e4824
finalize FCC test files
2021-04-15 05:49:01 +08:00
bunnie
93400df67c
an initial cut at fcc test commands
2021-04-15 04:10:47 +08:00
bunnie
9f4dc8a7b1
add wifi reset opcodes
2021-04-14 22:43:23 +08:00
bunnie
75295485a7
fix RTC callbacks
2021-04-14 02:58:22 +08:00
bunnie
f1d97fe428
RTC cmdline function mostly working
...
seems there is some issue with de-registering/disconnecting
connections though, need to make simpler test cases to diagnose
2021-04-10 01:01:51 +08:00
bunnie
4957effe9c
fix up callbacks
2021-04-09 18:56:44 +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
fbcb795693
this delta makes it work
2021-04-09 00:34:43 +08:00
bunnie
e7e10a0ec9
commit again for debugging
2021-04-09 00:29:53 +08:00
bunnie
856934c2c9
some progress, but check in to recreate previous crash
2021-04-09 00:15:42 +08:00
bunnie
a9de4782c5
crashing on load when logger is in callback
2021-04-08 23:07:02 +08:00
bunnie
0fa3d3c969
begin debugging of the RTC
2021-04-08 04:38:01 +08:00
bunnie
12bb5ee972
Update README.md
2021-04-07 00:59:25 +08:00
bunnie
39db5084ab
Update README.md
2021-04-07 00:58:28 +08:00
bunnie
ca349ec1b0
clean up minor bugs and other issues
2021-04-06 22:38:11 +08:00
bunnie
b9162fda3d
gettin' there! major modules now mostly working under v0.8
2021-04-06 19:32:35 +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
470b5c6440
finalize API refactor for xous-names
2021-03-30 02:13:23 +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
006101835e
services: shellchat: use create_thread_0
...
This replaces create_thread_simple() which is deprecated.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-25 13:15:16 +08:00
Sean Cross
e894dbd7b8
Merge branch 'fix-messages'
2021-03-23 21:58:11 +08:00
bunnie
184a284da5
sleep_ms() bug exhibitition
2021-03-18 17:34:48 +08:00
bunnie
dacedc3b74
Merge pull request #52 from betrusted-io/hardware
...
Refactor system to use rkyv 0.4.1
2021-03-18 04:56:32 +08:00
bunnie
9c49940e1d
add callback test back into shellchat
2021-03-18 04:22:17 +08:00
bunnie
ea8b208a15
finalize rkyv 0.4.1 refactor
2021-03-18 03:54:48 +08:00
bunnie
8fbd900a4c
Merge branch 'hardware-no-cb' into rkyv-refactor
...
Bring the two branches up to date, while also laying the groundwork
for XousServerName to be used as a native index type in xous-names
so we aren't burdening xous::String with a hasher
2021-03-17 16:06:06 +08:00
bunnie
eda33b5de7
factor out the shellchat callback, which mysterious breaks things
2021-03-16 18:03:12 +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
bunnie
2f71f2a1f5
add/test facility for handling async callbacks from shell commands
2021-03-14 00:39:27 +08:00
bunnie
88dd44c0d6
Update README.md
2021-03-11 23:12:30 +08:00
bunnie
ded21973d4
Update README.md
2021-03-11 23:09:53 +08:00
bunnie
2957c3d99e
fix errant dot from screenshot tool
2021-03-11 23:07:05 +08:00
bunnie
beb3e0fec6
add a screenshot of shellchat
2021-03-11 23:04:04 +08:00
bunnie
4006df3c4f
add instructions on how to make commands
2021-03-11 22:54:24 +08:00
bunnie
ae418f5718
refactor shellchat API to have less repeated code
2021-03-11 22:31:38 +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
16d8438a0d
turn off some debugging
2021-03-11 04:12:14 +08:00
bunnie
0dbfa6a668
clean up warnings
2021-03-11 04:09:47 +08:00
bunnie
4baaec61d2
add sensors command to read ADC values
2021-03-11 02:57:58 +08:00
bunnie
835bee2c75
lay in foundations to support the sleep function
2021-03-11 01:45:54 +08:00
bunnie
2b66ab1db0
refactor to put commands in static storage
...
so that state can actually persist across multiple calls
2021-03-11 01:45:02 +08:00
bunnie
9566355f9a
refactor command API
...
should be a bit more convenient now to add/modify command
lists as time goes on
2021-03-10 22:59:52 +08:00
bunnie
e829c0bd06
add framework for modular commands
...
I am not happy with this. I think the framework could be better
but I also can't figure out how.
2021-03-10 04:18:57 +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
07a9cbb02d
initial structuring of the shellchat app
2021-03-09 04:31:51 +08:00
bunnie
b5411851fd
rudimentary shellchat -- commit for help on debug Move message
2021-03-09 03:52:39 +08:00