Commit graph

1829 commits

Author SHA1 Message Date
nworbnhoj
64f6ddeade breakout mod Dither adaptor iterator 2022-07-28 05:51:07 +10:00
nworbnhoj
d82fba71c5 remove redundant comments 2022-07-28 05:31:39 +10:00
nworbnhoj
dadaae2884 mark color_types palette as unsupported in Bitmap::from_png 2022-07-28 05:25:05 +10:00
nworbnhoj
118f0c0346 extend color_types & bit_depths in GreyScale adaptor iterator 2022-07-28 05:21:20 +10:00
nworbnhoj
956eef4d69 remove heap monitoring from shellchat net image 2022-07-27 11:41:45 +10:00
nworbnhoj
1357d39255 reconfigure shellchat net image to use decode_png 2022-07-27 11:37:31 +10:00
nworbnhoj
7cd5ee82ce Implement decode_png adaptor iterator
This incomplete PNG decoder presents as an Iterator reading u8 bytes directly from a Reader.

Aproaching a png decoder as an Iterator requires significantly less Heap than
the traditional batch aproach.

On Precursor, this enables PNG bytes to be intercepted at the network interface
and processed into the much smaller gam::Bitmap format without ever having to
store the original PNG file.
2022-07-27 09:18:19 +10:00
nworbnhoj
b769b26a57 recast Image Modal to accept gam::Bitmap directly 2022-07-22 05:27:42 +10:00
nworbnhoj
278f6e884d Merge branch 'iter' of github.com:nworbnhoj/xous-core into iter 2022-06-29 12:33:17 +10:00
nworbnhoj
bc2e4a4b2c tweak modals test clifford attractor generation 2022-06-29 12:32:58 +10:00
nworbnhoj
e7d5c11cbc
Merge branch 'main' into iter 2022-06-29 10:54:06 +10:00
nworbnhoj
247dfd2fe7 simplify gam bitmap img struct 2022-06-29 07:33:37 +10:00
bunnie
5d874ac0f3 when connecting to debug core, enable programming 2022-06-28 20:38:23 +08:00
bunnie
4fcc1ea173 bump pddb key listing limits
makes it a bit easier for debugging
2022-06-28 19:59:52 +08:00
bunnie
23a31c2cf0 fix PDDB initial stack size and increase heap limit on boot
I had thought there was an issue with heap size limit increases
and multithreading but I think actually the problem is the
PDDB runs pretty close to the stack size limit. This increases
the stack size limit for the PDDB on boot and also bumps up
the heap limit so caching can work more flawlessly.
2022-06-28 19:58:20 +08:00
nworbnhoj
35cd593f24 refine clifford attractor generation 2022-06-28 07:39:02 +10:00
nworbnhoj
6d1d514fe5 refine modal show_image alignment 2022-06-28 07:32:55 +10:00
nworbnhoj
29925a5caa implement Dither adaptor iterator 2022-06-28 07:31:18 +10:00
bunnie
2bea23687e fix hosted mode emulation stubs 2022-06-28 03:36:40 +08:00
bunnie
f571e3069a fix regressions on USB suspend/resume
the core now enumerates after a suspend/resume cycle, although
sometimes it takes two tries for the enumeration to go all the way
through. not sure why, yet.
2022-06-28 03:25:33 +08:00
bunnie
77baf89d5c have time server retry on I2C error 2022-06-28 03:25:14 +08:00
bunnie
d67c5d53fb reduce I2C chatter on resume 2022-06-28 03:24:59 +08:00
bunnie
a0217d9ffd debug logic and whitespace 2022-06-28 01:14:38 +08:00
bunnie
b1a37037dd add more debugging logic 2022-06-28 01:14:11 +08:00
bunnie
95b4df1923 fix regression on suspend/resume on time server
seems like we're putting too much demand on the I2C bus
on resume at the moment, backing off the requests a bit
helps ease the logjam.
2022-06-28 01:13:25 +08:00
bunnie
be7d8a76a5 catch potential div by 0 on status redraw 2022-06-27 18:45:02 +08:00
bunnie
89e7849bc5 improve debug output 2022-06-27 18:22:25 +08:00
Sean Cross
0dd382b66a Merge branch 'libstd-fs'
Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-27 15:28:27 +08:00
Sean Cross
4410c2a1b3 spinor: add discriminants to api calls
Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-27 15:27:15 +08:00
Sean Cross
13b6669445 Merge branch 'libstd-fs' 2022-06-27 15:25:59 +08:00
bunnie
03d13cc758 add the archive log and link for future reference 2022-06-27 15:00:24 +08:00
bunnie
8a63e57862 improve ECC failure reporting on SPINOR
finally saw a failure in the wild, so we have something
to test against.
2022-06-27 14:58:36 +08:00
Sean Cross
7aae6dcab9 pddb: change Option<Opcode> -> Opcode in main
Instead of writing `Some(Opcode::*)` repeatedly, change it to simply
match against `Opcode::*`. This is accomplished by defining a new opcode
`Invalid` that will be matched against as a default.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-27 09:24:11 +08:00
Sean Cross
748d4ce87d Merge remote-tracking branch 'origin/main' into libstd-fs 2022-06-27 09:14:04 +08:00
Sean Cross
8cd04c3415 pddb: rework PddbBuf ordering to be non-packed
The new ordering remains the same size, but is no longer
`#[repr(packed)]`. This allows it to be `#[repr(align(4096))]` which
means we can get away with using a stack page for this struct instead of
allocating a new object every time.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-27 09:13:00 +08:00
bunnie
ac3f6a06fb fix status bar (ran out of precision during the floating pt refactoring) 2022-06-27 04:25:18 +08:00
bunnie
e2b550f34d
Merge pull request #193 from nworbnhoj/main
reduce memory footprint of Dither::dither()
2022-06-27 04:06:34 +08:00
bunnie
75b370a494 fix iterations on the test modal generator
the previous setting was so large that it took a long time to run.
the current setting takes maybe 2-3 minutes to complete.
2022-06-27 04:04:54 +08:00
bunnie
79cb4cd982 image display now works, once heap increase is called
takes about 1MiB of heap to decode the test PNG.

Putting the heap increase at boot seems to not
work, it causes other processes to not spawn. The condition
is not terribly reproducible, so it's probably a concurrency
issue of some type.
2022-06-27 04:03:49 +08:00
bunnie
fd63a33078 add PDDB heap limit increase based on passing a threshold 2022-06-27 04:03:33 +08:00
bunnie
a7ce3e6204 make keyboard tick() blocks non-fatal
at the moment if for some reason the USB stack can't send a tick
there's a panic. it's not actually a life-ending event if that happens.
2022-06-27 02:18:55 +08:00
bunnie
0e5fb14894 add a compatibility gate on USB HID interface
If the SoC isn't compatible, don't try starting the U2F server.
2022-06-27 02:00:22 +08:00
Sean Cross
1388da7680 Merge remote-tracking branch 'origin/vault' into libstd-fs 2022-06-26 16:48:20 +08:00
Sean Cross
5639bb81ce gam: define opcode numbers for opcodes
Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-26 16:45:18 +08:00
Sean Cross
f131a77d4e modals: define opcode numbers for opcodes
Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-26 16:44:40 +08:00
bunnie
88ea0145da clean up some debug spew 2022-06-26 03:55:26 +08:00
bunnie
9f409fda2d fix basis search order issues
at least, it passes some simple tests. much more testing is needed.
2022-06-26 03:52:27 +08:00
bunnie
e62c9bf3d3 add basis management functions and debug some basis issues
there's some problems with the automatic basis unionization
feature. now debugging...
2022-06-26 02:11:13 +08:00
bunnie
475fadb255 make search strings persist between modes and menus 2022-06-26 02:10:50 +08:00
Sean Cross
a16252e0fb root-keys: add explicit discriminants to enums
This ensures this API is stable across builds.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-25 11:07:15 +08:00