Commit graph

1070 commits

Author SHA1 Message Date
bunnie
a4316e2aa7 add dry-run api to gfx
dry-runs are useful for warming up "hot paths" in UI code
to improve latency. This is specifically a feature for tuning
interactions on systems that have swap memory.
2026-05-24 00:45:13 +08:00
bunnie
318f4b30e5
Update clocks.rs
cleanup some naming
2026-05-12 21:54:29 +08:00
hanatonikkou
ead2e9dda0 Merge branch 'dev' into dali 2026-05-11 15:26:11 +02:00
bunnie
6fba742cad debug for QE mode entry/exit 2026-05-08 22:21:14 +08:00
bunnie
50dcf7880f add a wfi specifier to the bio clock change api
this indicates if we're going into or out of wfi - this matters
because the clock rate asymmetry can be quite great, and the
calling function can have different optimizations for each mode
of operation
2026-05-08 03:13:30 +08:00
bunnie
d30ef2f197 debug/fix frequency changes into and out of WFI
I am now confident that the FCLK frequency is correct
going into WFI.
2026-05-08 03:12:47 +08:00
bunnie
a0609ebc88 add puya device support 2026-05-06 23:35:18 +08:00
bunnie
7ca009d2b0 Revert "remove api call for reset_reason"
This reverts commit 1dd514f4be.

not sure why but this breaks stability. suspect a loader bug.
2026-05-06 03:28:52 +08:00
bunnie
1dd514f4be remove api call for reset_reason
the register doesn't seem to work.
2026-05-06 02:36:56 +08:00
bunnie
8c8ad3ab94 api level changes to allow wdt to move earlier in boot
right now the inability to move the WDT object through the
hardware manager is causing it to be initialized fairly late
in boot which makes it less useful for recovering from boot
failures
2026-05-05 23:58:17 +08:00
bunnie
47821910dd lib-side changes for i2c migration 2026-05-05 23:58:02 +08:00
bunnie
e785257711 api moves for I2C into its own dedicated thread
moving I2C into its own thread mitigates lockup conditions
where I2C is blocking progress on e.g. gpio pin sets and
interrupt handlings
2026-05-05 23:56:58 +08:00
bunnie
ab9a724647 cleanup debug and add reset reason ll api call 2026-05-05 23:56:36 +08:00
bunnie
b78a5619b0 add register interpretation for reset reason 2026-05-05 23:56:05 +08:00
bunnie
4d505f188d add non-blocking version of screen brightness dimming
this is useful for dimming "animations" where it's not
critical if a dimming step is missed and you're spamming
the graphics server with dim requests
2026-05-05 23:54:06 +08:00
hanatonikkou
d69a03393b fix formatting, fix bitfield offsets 2026-04-28 20:01:34 +02:00
hanatonikkou
4bb8b55777 add dali library to bio-lib 2026-04-28 15:20:48 +02:00
hanatonikkou
d26b04f043 allow changing fclk through susres server 2026-04-28 15:16:33 +02:00
bunnie
4d1dc33ef1 add a diffusive transition option to the graphics library
makes changing between bitmaps less jarring
2026-04-23 15:14:27 +08:00
bunnie
4102cfd3a5 move locales macro to blitstr2
this keeps font features in a single crate
2026-04-23 00:33:47 +08:00
bunnie
16073c9cf8 refactor to cleanup font inclusions
allows more degrees of freedom to free up space
2026-04-23 00:32:43 +08:00
bunnie
4a236cfd68 add explicit power-off command to display 2026-04-22 01:21:47 +08:00
bunnie
d94041bfeb add wdt driver
translated from C SDK with help of Claude Sonnet 4.6
2026-04-22 01:21:08 +08:00
bunnie
8521d698d7 add hooks for pre-clock transition on bio
this hook allows the application logic to warn the BIO
app that a clock transition is coming so that glitches can be
suppressed.
2026-04-21 16:27:10 +08:00
bunnie
b10b7e6309 add serdes for VbusIrq to usize 2026-04-21 01:20:42 +08:00
hanatonikkou
19df2d3cf8 read clock muxes when calculating clock frequencies 2026-04-07 17:43:33 +02:00
bunnie
70543731d1 add keyboard remapping that also tracks screen flipping 2026-04-07 00:37:15 +08:00
bunnie
1ce29e80fa add ability to flip rendering of sh1107 screen
this allows a device to be flipped upside-down and have
the screen track orientation
2026-04-07 00:36:39 +08:00
bunnie
245040cfb9 add opcode for irq config update 2026-04-07 00:34:59 +08:00
bunnie
445ea9db44 expand iox api to allow for switching of interrupt levels
this allows us to trigger on both rising and falling edges
alternately
2026-04-07 00:34:24 +08:00
bunnie
30ca5dec71 adjust disk space usage for lite platform 2026-04-05 23:23:11 +08:00
bunnie
44a53e590a move error definition to api crate, fixes hosted ci 2026-04-04 00:08:39 +08:00
bunnie
9452422751 add some apis for owc frobbing 2026-04-03 23:43:46 +08:00
bunnie
979d00dedf attempt to debug the wfi/bio clock conundrum
the commited code works, but there's something weird going on
with the clock setting math that indicates i'm not understanding
exactly what's going on. Need to move on and solve other problems,
but this will be an outstanding issue.
2026-04-03 23:00:35 +08:00
bunnie
19b83a8650 fix offset in camera driver 2026-04-03 01:52:57 +08:00
bunnie
220124a483 fix left/right mapping swap 2026-04-02 03:49:08 +08:00
bunnie
13cdb9d64b cleanup qr code rendering 2026-04-02 03:48:49 +08:00
bunnie
db4d70e5ff add some more telemetry on errors 2026-03-31 00:55:08 +08:00
bunnie
3993a0dc88 'fix' for timeout issue on SPIM during display writes
occassionally the hardware block just goes unresponsive. the
'fix' is to reset it, and then re-initialize the interface.

I suspect this has to do with the UDMA silently dropping transactions
when there's too much contention on the bus.
2026-03-30 23:34:25 +08:00
bunnie
b7826c2ebc flesh out backup register interfaces
- adds API for retrieving & setting the ephemeral key. This is
a key that is erased by a power-on reset, but is preserved between
deep-sleep sleep/wake cycles. It is intended for securing a lock
PIN, and can be up to 192 bits long.

- adds API for checking the warm boot flags, which are also stored
in the backup registers.
2026-03-29 18:04:09 +08:00
bunnie
527f256ec1 add API call to determine if in developer mode 2026-03-26 02:12:11 +08:00
bunnie
73021cb2ed add brightness setting function 2026-03-23 18:33:43 +08:00
bunnie
0252961d6b add a Dynamic trait wrapper around the FrameBuffer type
this allows us to pass it through APIs that need dynamic traits.
also fix typo on 0,0 location
2026-03-23 17:22:28 +08:00
bunnie
4f37317427 add bitmap rendering API for baosec targets 2026-03-23 14:52:00 +08:00
bunnie
2145145595 fix event setting API 2026-03-21 01:46:08 +08:00
bunnie
c448fc2f2e add event mask macro 2026-03-21 01:25:51 +08:00
bunnie
c45609ed1b regenerate BIO libs based on updates to math lib 2026-03-20 22:35:06 +08:00
bunnie
c5e4d02a9a put note about division routine possibly being sus 2026-03-20 22:32:08 +08:00
bunnie
75e7937301 fixes to fp_16 library
- add saturating operations
- division was broken

fp_12 library might also be sus...
2026-03-20 22:31:08 +08:00
bunnie
c38214865f add a routine to initialize the ioconfig from the resource spec
in particular this makes sure the io config masks are extracted.
2026-02-28 23:20:04 +08:00