bunnie
aba5d25e36
cleanup warnings when boardbringup is not selected
2024-11-05 19:41:12 +08:00
bunnie
0463629a0a
cleanup warnings when board-bringup target is not selected
2024-11-05 19:40:28 +08:00
bunnie
ec801ca716
add nalgebra dependency
2024-11-05 01:46:03 +08:00
bunnie
dc20c84785
refer to new modules
2024-11-05 01:45:13 +08:00
bunnie
08f7252791
integrate new qr finding code
2024-11-05 01:44:53 +08:00
bunnie
16c9b2c7e2
insert refactored qr code
...
code alignment and finding now works *great*. Near real-time
performance!
2024-11-05 01:44:12 +08:00
bunnie
f6d6db566a
add homography searching routines
2024-11-05 01:43:59 +08:00
bunnie
8ce400dde3
add more feature flags
2024-10-27 23:28:38 +08:00
bunnie
6c4cd3bc67
add qr option
2024-10-27 23:28:08 +08:00
bunnie
8625dae0db
add more swap sram support and change resolution api name
2024-10-27 23:27:26 +08:00
bunnie
4f85deaecb
change api name for resolutions to dimensions
2024-10-27 23:26:45 +08:00
bunnie
bceb08afb8
recognize 8MiB swap chip
2024-10-27 23:24:42 +08:00
bunnie
38ad0363ce
fix capacity units
2024-10-26 18:45:36 +08:00
bunnie
1a90df9d53
add descriptor chaining for large bulk transfers
2024-10-26 03:06:37 +08:00
bunnie
2a92932850
cleanup some debug
2024-10-26 03:06:10 +08:00
bunnie
f9e99a4ff3
add assembly stub for cramium boot
...
this fixes a stability issue observed at boot
2024-10-24 01:29:04 +08:00
bunnie
e7f706e9cd
revert statics clearing routine
...
this turns out to be a bad idea because it corrupts systems
that have suspend/resume.
2024-10-21 03:28:58 +08:00
bunnie
9647202366
cleanup testing code for QR code
...
now it will overlay crosshairs on finder patterns and do affine
correction when the finders are found.
2024-10-21 01:18:12 +08:00
bunnie
5d49d2dbb7
add libraries for math and make usb a feature
2024-10-21 01:17:41 +08:00
bunnie
2fd59a1f87
tweaks for platform agnostic API
2024-10-21 01:16:59 +08:00
bunnie
b3f038ca06
add affine skew correction step
2024-10-21 01:16:37 +08:00
bunnie
c0b942b801
platform-specific implementations for graphics
2024-10-21 01:14:04 +08:00
bunnie
5c6be58056
revise camera code - capture 256x240 frames
...
this improves decoding for e.g. type 5 codes, which is
a bit too tight with a 128x120 frame.
2024-10-20 17:05:45 +08:00
bunnie
f16e3721be
add some QR code debugging stuffs
2024-10-20 17:03:50 +08:00
bunnie
b6fbc4ef36
clean up some gross static mut state stuff
...
still have to resolve the static mut issue of getting the USB
controller state into the interrupt controller.
I'm not sure there *is* a good way to do it - this might actually
be "the" use case for static mut's - but the point of this
exercise was to just diff out the driver in machine mode versus
OS mode to try and figure out if there's a hardware problem
causing instability or if it's a driver issue
the conclusion so far is that the USB stack requires extremely
tight interrupt handling timing, and so, for better stability
we may have to mirgate away from the heavily user-space dependent
implementation currently in use.
2024-10-19 00:15:12 +08:00
bunnie
37ceefef21
add usb mass storage command handlers
...
disk enumerates now, and initiates r/w transactions but
the reference driver does not match the implementation in that
the USB stack can't access all of RAM, so we have to add
an intermediate stage that splits the command requests into
smaller chunks
2024-10-19 00:14:12 +08:00
bunnie
dabd87aa3a
add usb mass storage command handling
2024-10-19 00:13:52 +08:00
bunnie
ed9759f524
remove a debug statement
2024-10-18 17:18:06 +08:00
bunnie
90d7f45f0a
adjust locations of memory for USB loader
...
and document the rationale
2024-10-18 17:17:29 +08:00
bunnie
452ba4adff
cleanup area for statics used by the loader
2024-10-18 17:16:21 +08:00
bunnie
6c655e9358
re-enable interrupts immediately in the handler
...
we need to catch an interrupt that gets issued while we
are still handling the pending interrupt.
2024-10-18 17:15:24 +08:00
bunnie
a6e7459cdd
re-organize the USB subsystem into modules
2024-10-18 14:45:15 +08:00
bunnie
e4f5c32ff3
update link locations to make space in loader for USB stack
...
this is in preparation for loader-based updates
may have to increase space even more when we pull in e.g.
firmware signing and verification primitives.
2024-10-18 04:17:36 +08:00
bunnie
d8cd9ba5c5
add hook to USB testing, and also move the kernel to make space for loader USB
2024-10-18 04:16:31 +08:00
bunnie
3a4ae8f09f
add usb to cramium platform
2024-10-18 04:16:08 +08:00
bunnie
8b14494a15
fix some bugs in gpio twiddle code
2024-10-18 04:15:47 +08:00
bunnie
af6f4766ff
translated reference USB stack into Rust
...
implements mass storage; needs debugging
2024-10-18 04:13:57 +08:00
bunnie
3b61a60a2c
remove boot delay, add reset-debug feature targets
2024-10-16 03:06:41 +08:00
bunnie
4c810ec447
add various debugging assembly routines for the loader
2024-10-16 03:05:54 +08:00
bunnie
778af25414
add handler for pmic open failure; add test case for self-powerdown
2024-10-12 00:46:47 +08:00
bunnie
1f148a6136
update readme
2024-10-10 02:10:10 +08:00
bunnie
e806421141
add camera test to loader
...
this loops an image from the camera to the oled display in real time.
it will also dump the Y (luminance) data to to a serial port for
offline development & testing of the QR code algorithm.
2024-10-10 02:05:40 +08:00
bunnie
70de9c707d
cleanup bootlogo routine
2024-10-10 02:05:18 +08:00
bunnie
4e6c2706c9
employ the axp2101 driver to setup the voltages
2024-10-07 22:53:10 +08:00
bunnie
b87c9f7672
add I2C tests & code for setting the LDO initial value
2024-10-06 02:45:18 +08:00
bunnie
d7af82261e
did *not* mean to commit the font-out hack
...
this is just to make cycle times faster during debug only
2024-10-04 22:53:00 +08:00
bunnie
9867a3e488
cleanup loader path to use dynamically derived perclk
2024-10-04 22:52:25 +08:00
bunnie
9527dcfbaf
move sh1107 to platform-independent lib
2024-10-04 13:07:59 +08:00
bunnie
6fedae8e73
implement logo drawing for oled
2024-10-04 13:07:34 +08:00
bunnie
b572db3f3f
update boot logo to a 128x128 suitable black/white test image
2024-10-04 13:07:00 +08:00