Commit graph

1074 commits

Author SHA1 Message Date
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
bunnie
90c3f095ec add support for more keyboard input configs on baosec 2026-02-26 18:29:47 +08:00
bunnie
4a542346c8 cleanup names and fixup the init delays 2026-02-24 01:34:54 +08:00
bunnie
e704477f79 api changes for ADC service 2026-02-24 01:34:32 +08:00
bunnie
302b7b65bf add std opcodes for ADC operations 2026-02-23 18:53:19 +08:00
bunnie
35168f8085 add getters/setters for adc channel specifications 2026-02-23 18:52:55 +08:00
bunnie
ac1e451aa1 add routines for setting/updating i2c clocks
in anticipation for frequency scaling support
2026-02-23 18:52:23 +08:00
bunnie
bd2a69327b add working draft of ADC driver
this is based on a reference driver in C but translated
largely by Claude and then checked & signed off by me.
2026-02-23 18:15:38 +08:00
bunnie
af6260fb43 add a check for div instructions without "softdiv.h"
This will hopefully save some troubles for developers who
accidentally invoke a divide without realizing it.

Prints an error with instructions on how to resolve the
situation.
2026-02-22 03:42:51 +08:00
bunnie
7e37aa50c8 clang2rustasm.py: improve handling of more cases in clang code
- handle .rodata, .data, .bss, .set labels better. This allows
for static globals
- handle call instructions. These are manually resolved by
changing the call pseudo-instruction into a jal with a rust
assembly-compliant label.
2026-02-22 03:34:42 +08:00
bunnie
db6aa1255a rename fixed point converters
Q20.12 and Q16.16 come as .h files in the BIO C library,
so converters in Rust to shove data to and from the BIO in
those formats are provided.
2026-02-22 03:33:23 +08:00
bunnie
75ce3f886d constrain the C compiler codegen
1. we can't resolve jump tables in Rust assembly. The label
grammar isn't rich enough to do this. As a result, this code
genreation method is suppressed.

2.there is no 'div' instruction on this PicoRV, so the +m is
converted to +zmmul, which correctly emits mulitplies, but
skips the divide.

A soft divide library is provided for programs that require
division.
2026-02-22 03:23:57 +08:00
bunnie
174b97a3a7 add the colorwheel feature 2026-02-22 03:23:41 +08:00
bunnie
02d90fe056 add a more complicated demo program
This C routine incorporates statics, arrays, globals,
switch/case, division, and a bunch of other stuff that
is designed to exercise corner cases in the assembly conversion
script.

The program itself just cycles LEDs in a rainbow vomit pattern.
2026-02-22 03:20:57 +08:00
bunnie
8ee6d86748 cleanup math test Fp refernce 2026-02-22 03:20:11 +08:00
bunnie
c80877d064 add various C libraries for BIO use.
Note that there is no LTO/trimming in the BIO flow, so
wantonly including libraries you don't use just grows
your code size for no use.
2026-02-22 03:19:04 +08:00
bunnie
8f709216d6 add autogeneration header to math_test.rs 2026-02-20 23:54:34 +08:00
bunnie
905939d8f1 featurify all BIO modules
the reason we do this is that if we don't switch off library
modules, they are compiled in and just become dead code in the
OS image. with enough modules, this will eventually become
a significant drag on binary size.
2026-02-20 23:53:09 +08:00
bunnie
85a9579626 update readme with toolflow and erratum 2026-02-20 23:52:42 +08:00
bunnie
9e34da0bf7 add autogeneration header to output artifacts 2026-02-20 23:52:16 +08:00
bunnie
6176d3379d streamline zig build flow 2026-02-20 23:51:58 +08:00
bunnie
aa06be9c82 commit an initial c test program
this is a "math test" that can compute cosines in fixed point
using the BIO.
2026-02-20 21:02:54 +08:00
bunnie
6cc9e2d5f7 fix constant table in cosine 2026-02-20 21:01:55 +08:00
bunnie
9d23703e45 fix API for new code specification method 2026-02-20 21:01:23 +08:00
bunnie
c1571479d6 remove out of place comment 2026-02-20 21:01:00 +08:00
bunnie
60d0126f37 implementation of code-length & padding for BIO code segments 2026-02-20 20:58:40 +08:00
bunnie
29437c1ae8 Add an aligned bio_code macro
This macro introduces page-level padding around the BIO code
regions, so that the rust assembler/linker computes relative
offsets correctly. This is necessary for code that is
autogenerated from C that uses `statics`

It's not recommended to be used *everywhere* because even
tiny BIO snippets of a few bytes would be blow up to 4k each.
2026-02-20 20:57:10 +08:00
bunnie
a97675592c Add erratum notes to README and a tool to check & repair erratum
erratum_check.py will automatically scan bio_code! segments
in a .rs file, flag patterns that could be a problem, and
can automatically patch these, if requested.
2026-02-20 20:55:34 +08:00
bunnie
a6a8341223 Fix BIO erratum in assembly translator.
Getting compiled code going has revealed a couple of frankly
embarassing erratum in the BIO. Kind of shameful to make such
a n00b mistake but I guess my sole defense is I had to put it
together in a hurry with little resources.

Here's the bugs:

BUG 1 ("phantom rs1"): For lui/auipc/jal, the 5-bit field at
instruction bits [19:15] is not gated off. If that field decodes
to register 16-19 (x16-x19) for just these instruction types,
a spurious pending read is made from the corresponding FIFO,
which affects correctnes and can block execution.

BUG 2 ("phantom rs2"): For non-R/S/B-type instructions, the 5-bit
field at instruction bits [24:20] should be gated off but isn't.
When that field equals 20 (0b10100), a spurious `quantum` signal
triggers, which can affect the instruction fetch pipeline

This script inspects the output of the Clang assembly, and in the
process of translating it to Rust assembly, transparently patches
almost all of the cases with work-arounds. The assumptions and
exceptions for the work-arounds are:

- The stack pointer is initialized and valid. This is always
true for Clang-derived scripts because it's in the _start()
routine

- No interrupts that can mutate stack: true because interrupts aren't
supported in this implementation.

There is one edge case that isn't covered: J-type instructions
aren't patchable at this stage because the label offsets haven't
been resolved into instructions. However, "naked" jal instructions
are rare in compiled code - it's always jalr, which is an I-type
instruction. This is noted as a warning when the script runs, and
is fixable by simply inserting a "nop" after the jal instruction
if the target is at the wrong address - this will shift the immediate
so that it no longer contains the 0x14 (decimal 20) pattern in
the immediate field.
2026-02-20 18:40:37 +08:00
bunnie
db78b28b37 checkpoint the c -> rust asm flow for the BIO
An abomination: a zig-based C toolchain, installed via python,
compiles to clang assembly, translated by python script, into
Rust assembly. Then compiled and linked into your app.

Really tempting fate with this one...will I come back to this
commit in a couple years and be filled with regret?

Already, I have some misgivings - the zig toolchain is
definitely not stable, and has been through some API changes,
and doesn't run on all platforms. But - I forge ahead.
2026-02-20 02:19:46 +08:00
bunnie
b932d7d755 fix a the mul demo
we don't have to do the weird mul coding anymore because
we added ".option arch, +m" to bio_code! macro
2026-02-20 02:11:09 +08:00
bunnie
b991a54b52 add debug call for bio 2026-02-20 02:09:09 +08:00
bunnie
da895b2c1f
extend sealed data to contain a toolchain hash field
the sealed data records are laid out with some extra space
at the end for future expansion.

The first such expansion added is a toolchain hash, which allows
us to note which toolchain is required to reproduce the current
image.

The change is backward compatible so the version field of
the record is *not* incremented.
2026-02-16 18:10:08 +08:00
bunnie
4aeabd01ae
clocks has to work in std and no_std
thus the die routine doesn't work in the bollard for
the clocks routine
2026-02-15 03:43:47 +08:00
bunnie
4d86e8a82b
use die_no_std in hardening; remove excess prints
also fix some math regarding birthday paradoxes and the
random number checking.
2026-02-15 03:27:20 +08:00
bunnie
70f219ba0a
sigcheck hardening
- xor-masking of jump target moved to immediately before the jump
- mscratch csr zeroed
- anti-rollback single-update distance limited to 512: let's hope we
never even get close to having 512 security revisions in a single
generation!
- sanity check untrusted signature/add length fields - constrains
hash-checks to within the right "range", preventing abuse of the
hash reads as an oracle to leak state about other things in memory.
- check valid_key != valid_key2 invariant before returning
2026-02-15 03:22:47 +08:00
bunnie
c71f472743
fix in-line directive on hardened bool
this prevents there being a single "hot spot" to attack for
hardened bool testing
2026-02-15 03:20:54 +08:00
bunnie
e8380aa0e7 clarify panic intent 2026-02-15 03:20:21 +08:00
bunnie
4a776852a9
add UDC pointer check macros throughout the USB driver library 2026-02-14 19:34:49 +08:00
bunnie
272b983760
add clock skipping APIs
also fix a bug where the enable bits for reporting SRAM
parity errors was not set.
2026-02-10 22:55:21 +08:00
bunnie
58d17f1423
refactor the key ordering specification
this makes it much easier to check for errors - and one was found,
the erase coupon was accidentally off by one, and equal to the
master key slot. oops! 🤦
2026-02-10 22:49:17 +08:00
bunnie
c1b7612e7e
add one-way counter offset for auto-audit
for the first few boots (3 in this case), automatically
print an audit to the console. This is used to verify that
the chip was programmed correctly in chip probe.
2026-02-10 03:28:31 +08:00
bunnie
90b1f2f345 cleanup warnings 2026-02-09 02:48:31 +08:00
bunnie
f774522e62
remove testing API that never actually worked
there was a thought to speed up CI testing by introducing a
"cheater" routine that allowed us to re-initialize the keystore.
Turns out this doesn't work because it's not possible to fully
revert a system out of developer mode - because, in my infinite
previous-self wisdom, I realized that this is something someone
might try and there is a one-way counter that logs if the
system has *ever* been in developer mode, and that has no
known bypass.

This means that even if you could repopulate the keystore, it
would be cleared on the next boot by merit of the developer
flag being set.

So - we did it the hard way, every single test we have to
re-image the system from scratch. C'est la vie.

Removing this patch eliminates a code path that could later be
abused for unforeseen ill purposes.
2026-02-08 12:55:10 +08:00
bunnie
c1ae6b2e5f add more dependencies to propagate key-testing flag 2026-02-04 15:57:59 +08:00
bunnie
f6bf8f9bf1 modify pddb size on key testing
this allows for faster reboots through CI cycles as a state
transition from secure->insecure always triggers a PDDB format
2026-02-04 15:57:09 +08:00
bunnie
0aeb9daa37 add a method to force-rewrite keys
This is useful in CI to test various stages of dev-key signed
image vs secret key erase without having to go through a complete
suicide cycle on the chip.

This command is gated behind a feature flag that would only be
invoked for beta testing. I think it's still safe to have even
as a beta-signed feature because the worst you can do with this
is replace existing keys - so it could be used to DoS/brick, but not
leak secrets.
2026-02-04 15:55:34 +08:00
bunnie
a840beb98e
loosen check on key tag
The original check on public key tag was "if the tag doesn't match
one of four approved tags erase secrets".

With third party images, third parties can pick their own tags - so
as-writ this would constrain third parties to have to use the same tags
as baochip, which is too restrictive.

Change the check to explicitly trigger erasure if and only if
the tag is "dev ". Note there are plenty of other checks around as
well so this is not the sole check, thus I think loosening this
permission is good for keeping hygiene between third party firmwwares
and baochips own firmwares.
2026-02-03 18:33:33 +08:00
bunnie
f96c01634f
streamline acram/slot manager access
Reviewing the code, I was decomposing multi-element slots
into individual slots, but erasing them as a multi-element slot.
This results in unnecessary churn.

The barrier to doing a simple check on the full slot all at
once was a missing API for unchecked reads of the full slot:
during checking, we want to be able to retrieve the contents
even if technically the ACL access is denied (note that the
ACL is enforced in *hardware*, the software based check of
the ACL is just a "belt and suspenders" check).

So, this patch adds a routine that allows for an `unsafe`
retrieval of the slot data regardless of the ACL, where the
safety condition is that the caller has to be aware that
junk data could be passed to it if the ACL isn't correct.
2026-02-03 18:12:18 +08:00
bunnie
e349703fd5 automatically adjust BIO clock dividers on sleep
this allows the BIO to continue to function even though
the CPU core is in WFI. It isn't running at full speed, but
for some applications (such as WS2812 LED driving) the lower
speed is perfectly adequate and you save a lot of power
by turning off the CPU core.
2026-02-02 23:37:48 +08:00
bunnie
7f6b045681 optimize timeout handling in spim interface
while debugging the disconnect issue, discovered that the timeout
routine in `std` was extremely wastefully blasting the name server
to connect to the ticktimer every time it was called. yowch!

this patch does the following:

- cache the ticktimer connection in an AtomicU32
- check if the transaction is done on the "Fast path" before
doing any waiting
- check again after fetching time - at this point, most transacitons
are actually likely done
- only then, do the wait loop

this greatly speeds up screen drawing, it seems.
2026-02-02 01:22:26 +08:00
bunnie
be5e817c7c expose register manipulation as public functions
the library is a bit too specific to a given application
without the generic API being exposed. i.e. the way it was
originally generated would imply that every scenario for
the driver would need to be implemented in the library-side
HAL, when in reality, I think it makes much more sense for
the customization of registers (especially when debugging)
to live near the device side.
2026-02-02 01:20:41 +08:00
bunnie
d466abd456 strip out disconnect idiom in the HAL crate 2026-02-02 01:20:14 +08:00
bunnie
8bc480994c remove disconnect idiom from HAL API
the implementation is flawed - because multiple APIs hit
a single server, the reference count can reach zeoro for
a given interface, and trigger a disconnect, while another
API is still using it.

the long-term fix for this, if we wanted auto-disconnect,
would be to wrap the connection query into a helper that
uses an Arc to ensure the count is maintained across all
possible interfaces.

However, for the HAL, it's likely that pretty much every
server is going to want this connection, and want it to
stay around so - we'll just remove the auto-disconnect
idiom for now and figure something out if we end up
hitting a connection resource limit on a service that
truly only needs the HAL connection early on in its
lifecycle and never needs it again.
2026-02-02 01:17:24 +08:00
bunnie
4a7ed1315e add maintenance notes 2026-01-30 04:26:15 +08:00
bunnie
d44caab9ec update api for publishing 2026-01-30 04:22:33 +08:00
bunnie
3f869ca389 bump utralib version for publication 2026-01-29 19:12:00 +08:00
bunnie
88ccc7e042 fully specify the bao1x target on blitstr2 for bao1x builds 2026-01-29 18:58:55 +08:00
bunnie
5267335346 in practice, we never want to kill the HAL service, so remove the option 2026-01-29 00:10:09 +08:00
bunnie
b2cf705c59 bump ticktimer version to drop susres dependency 2026-01-28 20:53:57 +08:00
bunnie
75f75ebffa add hooks for oem-baosec-lite in the clock and power management 2026-01-28 15:04:06 +08:00
bunnie
45632385d5 downgrade susres to a common api
doesn't make sense to push this to crates.io because it's not
common across all platforms, I think.
2026-01-28 00:36:05 +08:00
bunnie
ece9b9943c add module 2026-01-27 22:20:56 +08:00
bunnie
f288a18040 add a first whack at an lis2dh12 accelerometer driver
This is a ball of Claude-generated code which was guided by
the datasheets, some trait APIs and other prompt info.
The prompt used to generate the code is appended to this file.

The result is structurally pretty similar to the accelerometer
driver templates I've seen provided by the vendor, except in Rust
and with Xous idioms, so I think this is a pretty reasonable
whack at reducing boilerplate. There's way more features in these
accelerometers than I have time to write getters/setters for.

The few functions I have used look good insofar as getter/setters,
but there are some oddly specific defaults in the file that should
probably be corrected, probably due to over-prompting of the code
generator. I'll work through these over time.
2026-01-27 22:10:14 +08:00
bunnie
1db717a63f add put_pixel_unchecked() trait in API
this is for implementing checked, higher-performance loops
like blits.
2026-01-27 22:09:37 +08:00
bunnie
b34f4a4c6f remove failure case in Drop implementation
this is some technical debt - Drop doesn't coordinate across
all instances of an object and so the disconnect isn't able
to know exactly when to disconnect. This will require some
guru meditation later on to correct this in a "proper" fashion.
2026-01-27 22:08:28 +08:00
bunnie
385c356801 refactor clock computations & add routine to determine fd
this is a prelude to clock tuning the internal bus networks
for bandwidth. The "trivial" thing of just cranking the speed
up to the edge and letting the dividers didn't seem to help
performance much, though; this could be due to the clock synchronizers
beating against each other.
2026-01-27 22:07:07 +08:00
bunnie
f7c00eb985 fix some rendering artifacts and add todo's on the QR code rendering 2026-01-27 22:04:51 +08:00
bunnie
ac20b43aaa update gc2145 comments 2026-01-27 22:02:24 +08:00
bunnie
1cb23dd4a2 change power-on order of display and add unchecked variant of put pixel
- remove bounds checking for accelerating blits that are already checked
- fix the command ordering for display power-on to remove "noise"
during power-on of the display.
2026-01-27 21:51:50 +08:00
bunnie
d6a5c636bb "best" config with current lens 2026-01-27 17:33:22 +08:00
bunnie
9d5851bd98 adjust attack threshold trip for recording attack
in practice we're seeing multiple trips to the glitch detector
when power down discharge is slow.
2026-01-25 18:32:24 +08:00
bunnie
84e276f712 add BIO sketch for qspi to 8080 converter
quick feasibility study to confirm that BIO can convert
a QSPI video stream into 8080-style display stream support.
One of those quirky weird applications that I think BIO is
kind of perfect for.

I think it should work, at the speeds required, but nothing
compares to actual hardware testing.
2026-01-24 23:55:22 +08:00
bunnie
4523fea62c add support for more board options
- oem-baosec-lite board support
- more flash memory types
- transparent polarity switching on reset line

The reset line in particular is having its polarity switched
because the I/Os pull-up by default, and we'd like the reset
line for peripherals to be asserted on reset (this prevents
glitching on e.g. displays while the CPU boots).
2026-01-24 23:49:19 +08:00
bunnie
42a55cc238 add support for more flash memory types 2026-01-24 23:48:57 +08:00
bunnie
27250c65dc move anti-rollback check to after the signature has been validated
I decided i feel too uncomfortable doing any state changes based
on unvalidated data. I can't see a downside to moving the check
to only after the signature has been verified.
2026-01-22 23:15:53 +08:00
bunnie
04dd447745 add anti-rollback checking to the signature check routine
one minor issue with this implemnetation is it requires dev
images to have an anti-rollback counter that matches or exceed
the last signed image seen.

This is more of a developr ergonomics issue - this will certainly
lead to some surprise by developers who are trying to take
production devices and "downgrade" them to an old dev tree
that has an old anti-rollback firmware number in it.

However, I think this is navigable and probably the simplicity
of not having an "escape" path for dev-signed imgaes is worth it.
All a developer has to do is to set the anti-rollback version
number to be equal to or greater than what was reported in
the device.
2026-01-22 19:48:37 +08:00
bunnie
23b7bc0142 add an upper limit for counter increments
this is a sanity check number that can be used by firmware
to vet a counter value before incrementing to it. it's particularly
useful to thwart wear-out attacks agaisnt anti-rollback firmware
versions, i.e. by specifying an extremely high anti-rollback number
one might be able to cause a reset-to-0 failure and this prevents
that from happening by limiting the maximum value of the the
counter that can be requested.
2026-01-22 19:46:07 +08:00
bunnie
9d972f59d5 add specifications for anti-rollback and receipt tracking
anti-rollback is a number that is stored in a monatomic counter
inside the device that is compared against the firmware images
presented to the device. If the image version is lower than the
anti-rollback counter, the image is rejected. If the image is
higher, the anti-rollback counter is incremented until it equals
the vesrion in the image.

the receipt mechanism is a method for ensuring that cross-third
party signed images can't be used to dump keys on other third party
images. Every time a boot1 is accepted, a copy of the key block
that was used to accept the third party image is stored in the
receipt block.

If those keys rotate, then the collateral keys are rotated. this
prevents a rotation of third-party images from being used to
dump other third party images.

it does mean that third party signers have to be careful to not
rotate any of their signing keys uninitentially.
2026-01-22 19:42:51 +08:00
bunnie
97df81de44 fix permissible function code on altboot
this allows recovery from revoked keys and trying to load
a dev-boot signed image from alt-boot loader
2026-01-19 03:34:55 +08:00
bunnie
18a58c7d18 add more graceful handling of erase inconsistencies 2026-01-19 00:18:13 +08:00
bunnie
763a2c290d make boot more forgiving of inconsistent initial values 2026-01-18 22:37:08 +08:00
bunnie
6b7ff11b4e
add collateral erasure and checking of IFR copy of pubkeys
The IFR copy of pubkeys is truly actually indelible because
of the no-exceptions write inhibit byte. Add code to check
against that copy.

Note that the IFR region's downside is the presence of
the write-inhibit byte means the check is complicated
as the full key is striped across two locations, but
this code handles that.
2026-01-18 02:56:14 +08:00
bunnie
491a1c14dc add key range for collateral 2026-01-18 02:17:25 +08:00
bunnie
2b19c4bd21 add a command for setting the bootwait flag
The keystore is a sensitive server, and the one-way counters
have security-critical propoerties. So instead of revealing a
generic one-way counter API to the world, specific, limited
requests to do things are going to be created for the keystore.

In this case, the bootwait flag would be convenient to be able
to set from userspace. The motivation for this requirement is
actually continuous integration - a normal human could just
hold down a button while turning on power, but in CI, I don't
have a robotic thumb (or an alternative electrical signal) to
simulate the nerve-pinch on boot.

Previously I was "cheating" and simulating this by nuking the
loader, which effectively forces a bootwait.

However, in production, this is *not possible* because the JTAG
port is sealed off. Thus, this may be the first of a series
of small PRs to incorporate CI tooling that clears up tech
debt like nuking the loader to get into boot wait.
2026-01-16 17:32:12 +08:00
bunnie
bf721e3b5c
adjust permissions on serial number; make chip init more permissive
It is not clear if I can get the factory to burn the serial number
(wafer lot, ID, x/y location) into the location I want it to be.
So, I am allowing this to be updated by the firmware on boot,
thus necessitating the permissions to be writeable for the serial
number field.

Furthermore, if there is any error in initializing the chip's
identity in the factory, right now the chip goes into a mode
where it has crashed and can't run diagnostic code. Write errors
in this stage are thus turned into .ok() instead of .unwrap()
because we want to allow the chip to go through the whole flow
and then diagnose any issues later on.
2026-01-15 16:58:22 +08:00
bunnie
a5a6cc8e48
Fix comments in production key 2 slot 2026-01-15 16:57:27 +08:00
bunnie
3e5b62aab3
Add production public key to the first key slot 2026-01-15 16:56:43 +08:00
bunnie
29d25c13a1 refactor UDMA UART to use "poll" mode to receive data
The prior implementation tried to use the UDMA streaming mode
to get Rx data out of the UART.

The problem is that with streaming mode, it's hard to tell how much
data is actually available. This is because the thing that sets up
the stream sets "some number of bytes" as the fetch depth of the
DMA Rx, but all you can read is "number of bytes remaining" out
of the DMA interface.

So when 0 bytes are remaining, you can fetch some data, but you don't
know *how much* to fetch. And if someone else fetched partial data
before you, you don't know how much partial data was fetched. This
could be resolved with some gnarly, highly concurrent state that
gets incremented on every fetch.

Or, we could use poll mode. There's a reason i think it's in the
block, because the Rx DMA mode is more or less not usable. Poll
mode you read a config register, see if there's valid data, and if
so, when you read the data register, it's pulled out of a FIFO.
The FIFO is in hardware and it's 4-deep. As long as you don't
need more than a depth of 4, you're rock solid.

This is a lot easier than the UDMA Rx mode, so I've just gone ahead
and deprecated the Rx mode. I could only ever get the Rx mode
to work to receive a single character *anyways*, so despite its
potential to receive thousands of bytes without CPU intervention,
it was only ever used as a 1-deep buffer because of the inability
to know exactly how much was in the buffer. Thus, the poll mode
is actually an improvement over the DMA mode, in practice.

More importantly, it means the Rx link is much more stable in
GDB kernel mode, if the baud rate is cranked down to 115200 (at
1M baud, the kernel still can't respond quite fast enough to
reliably drain it).
2026-01-14 03:21:06 +08:00
bunnie
24105e7b22 add the default perclk speed as a public constant
instead of just hard-coding it in the clock setting routine
2026-01-14 03:20:27 +08:00
bunnie
fba011db3a commit version bump so that we may publish our packages 2026-01-08 03:04:19 +08:00
bunnie
079ec33134 improve formatting & timing slightly 2026-01-06 15:43:50 +08:00
bunnie
d1a3eb4b58 handle clock counter rollover case & fix bug in assembly register naming
t3 doesn't actually exist
2026-01-06 15:40:14 +08:00
bunnie
08cfe2d724 cleanup warning 2026-01-06 13:41:24 +08:00
bunnie
1087405eb9 add compatibility for APS6064L SRAM parts 2026-01-06 12:14:20 +08:00
bunnie
b49856ce7b change the pin set API to something more usable 2026-01-05 21:55:14 +08:00
bunnie
dd18ddf97c convert avalanche TRNG interface into the Xous BIO API 2026-01-05 21:53:39 +08:00