Commit graph

10340 commits

Author SHA1 Message Date
bunnie
4637fc7037 fix hosted mode 2026-04-07 00:56:57 +08: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
6b0972a551 add code to implement irq trigger edge updating
also improve comments so I can remember how this actually works.
2026-04-07 00:35:34 +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
d895f3c9c7
Merge pull request #846 from betrusted-io/target-adjustments
Target adjustments
2026-04-05 23:32:31 +08:00
bunnie
bec3dd00c3 add option to fully reformat a swap partition in repl 2026-04-05 23:23:32 +08:00
bunnie
30ca5dec71 adjust disk space usage for lite platform 2026-04-05 23:23:11 +08:00
bunnie
6e528f9678 fix regression on wfi vs bio setting 2026-04-05 23:22:45 +08:00
bunnie
3230946c73
Merge pull request #844 from betrusted-io/owc-api
OWC api
2026-04-05 23:21:33 +08:00
Andy Chan
951bf4cb4f Add AI contribution policy.
Signed-off-by: Andy Chan <github@sockbot.com>
2026-04-05 01:49:22 -07:00
bunnie
44a53e590a move error definition to api crate, fixes hosted ci 2026-04-04 00:08:39 +08:00
bunnie
f2371f49eb add implementation for owc frobbing
by default the knob is not frobbable because frobbing the
knob can lead to potential griefing

more specifically the owc (one way counters) control some
security state. they are all designed to "fail on increment"
but just giving someone a button to increment random counters
gives a DoS vector. So unless you need to open the API it's
recommended to not have it activated.
2026-04-03 23:43:57 +08:00
bunnie
9452422751 add some apis for owc frobbing 2026-04-03 23:43:46 +08:00
bunnie
53dccf0df2
Merge pull request #842 from betrusted-io/ui-fixes
UI fixes
2026-04-03 23:12:04 +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
2f9a7cd723 reset the udma block for the camera on every frame
improves stability across multiple captures
2026-04-03 01:53:13 +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
4f9584ec9e cleanup qr code capture behavior
goes to blank screen after capture instead of previous ui state
also cleans up transitions between camera and run mode
2026-04-02 03:47:46 +08:00
bunnie
ee9bec19a1 fix key mappings and delay times 2026-04-02 03:47:15 +08:00
bunnie
8933899c16
Merge pull request #841 from betrusted-io/backup-regs
Backup register features & SPIM timeout fixes
2026-03-31 03:31:46 +08:00
bunnie
e46a65e21f fix precursor targets 2026-03-31 01:51:56 +08:00
bunnie
e3408f5346 fix more emulated modes 2026-03-31 01:18:53 +08:00
bunnie
db4d70e5ff add some more telemetry on errors 2026-03-31 00:55:08 +08:00
bunnie
5d0c490a55 fix other hosted mode 2026-03-31 00:54:57 +08:00
bunnie
97efc2a162 fix hosted mode 2026-03-31 00:22:36 +08:00
bunnie
65b2040cdf fix bootloader regressions 2026-03-30 23:59:31 +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
8ac6e17301
Merge pull request #840 from betrusted-io/ux
Add progress bar to loader on baosec targets
2026-03-26 03:11:23 +08:00
bunnie
df0fd57965 make fix broader 2026-03-26 02:55:59 +08:00
bunnie
6427979446 fix dabao mode 2026-03-26 02:51:23 +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
342b524209 sacrifice a page to the ui
Drawing a progress bar demands an extra page of stack in the loader.
2026-03-23 17:25:48 +08:00
bunnie
5f20953bf9 add a progress bar to loader for baosec targets
The OS image for baosec is substantially larger and requires
more operations, so a progress bar makes the screen-up experience
a little more tolerable.
2026-03-23 17:24:50 +08:00
bunnie
d4933e96a4 make baochip boot logo drawing optional in the kernel driver 2026-03-23 17:23:58 +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
54ed7a1e8d
Merge pull request #838 from betrusted-io/fix16-fix
Fix16 fix + BIO event fixes
2026-03-22 14:12:10 +08:00
bunnie
616bf65f6e try to make the readme's more friendly to beginners 2026-03-22 14:06:45 +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
5b60713c02
Merge pull request #836 from betrusted-io/loader-bug
Loader bug
2026-03-20 16:05:23 +08:00