Allen Hill
90e54b0896
Migrate to FreeRTOS
2026-09-22 20:34:38 -07:00
Allen Hill
5b9cb1da8b
Add single byte send debug function
2026-09-20 15:08:19 -07:00
Allen Hill
fbf5811496
Refine (further) the Phy API
...
- Refactor send/read data to read entire array instead of byte-oriented
reads
- Simplify/improve consistency of asynchrony (all send functions now
optionally async)
- Fix start-bit TX (now actually validate joinable start-bits)
Assisted-by: Claude Code (Opus 5)
2026-09-20 15:08:15 -07:00
Allen Hill
7252e6bfdd
fixup PIO comment rewriting oops
2026-09-20 15:08:15 -07:00
Allen Hill
6b22f14e6d
Fix deafen semantics
2026-09-20 15:08:15 -07:00
Allen Hill
2c85305c0d
Finish Pico/PIO phy layer
...
Assisted-by: Claude Code (Opus 5)
2026-09-20 15:08:11 -07:00
Allen Hill
8a47b5b776
Refactor peripheral/bus/phy APIs (prep for pico/PIO)
...
- Refactor PHY to be higher-level with a field focus (controller/peripheral address,
control byte, etc)
- Phy layer is now device address aware (ACK's automatically) (Hardens
previously ~implicit design to only support emulating one AVCLAN
unit per mockingboard build)
- Redesign `phy_active` => `phy_frame_pending` (to allow
asynchronous/buffered frame reads on pico) and embed within
Peripheral::read
- Add `deafen` function: like mute, but also ignore incoming messages (i.e.
don't receive/process at all). Makes `Bus::is_active` always return
`false`.
- Add debug bus driving functions
Assisted-by: Claude Code (Opus 5)
2026-09-20 15:07:42 -07:00
Allen Hill
9efbb01ccf
PIO proof-of-concept
2026-09-20 15:03:31 -07:00
Allen Hill
53c5abb3e9
Fix compile errors due to non-portable code
2026-09-03 16:07:27 -07:00
Allen Hill
ac47cebe86
Add ~empty implementation of HAL for pico2
2026-09-03 16:06:57 -07:00
Allen Hill
e30dbc501d
initial build system tweaks for pico hardware
2026-09-03 12:50:00 -07:00
Allen Hill
6c460aa3a0
more infra/clangd updates
2026-08-19 11:45:06 -07:00
Allen Hill
6ce4c2cc21
Improve stdio_write_nonblock perf and indicator printing
2026-08-19 11:38:08 -07:00
Allen Hill
b9f7978d3e
react to [disk] scan button presses
2026-08-13 20:46:57 -07:00
Allen Hill
cd68ee7267
misc infra/clangd updates
2026-08-13 17:55:46 -07:00
Allen Hill
ee5b4a955c
Update Lua dissector for newly understood bit flag (NEGATIVE time)
...
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-08-13 17:50:21 -07:00
Allen Hill
5d6b5f4ce0
Handle flag for NEGATIVE time; unify time incrementing
2026-08-13 17:47:31 -07:00
Allen Hill
0bef565564
Speed up Frame printing to (finally) solve missing AVCLAN bus frames
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-13 17:34:15 -07:00
Allen Hill
66dd441610
Max the UART TX buffer size
2026-08-13 16:48:44 -07:00
Allen Hill
3ea7c2d44a
Improve correctness of phy_read_startbit invariants/assumptions
2026-08-13 16:31:03 -07:00
Allen Hill
95dae572a0
Tighten up non-reading TCB0 ISR timing
2026-08-13 16:27:22 -07:00
Allen Hill
f45a0f5e92
Shorten time to next phy_active check (early continue)
2026-08-13 16:25:50 -07:00
Allen Hill
994759dd39
Free up some ram
2026-08-13 16:24:55 -07:00
Allen Hill
eab535db98
fixup 7871e92
2026-08-03 13:30:14 -07:00
Allen Hill
f3d0d99ce4
Update Disable_Function_Req response
2026-08-01 13:15:06 -07:00
Allen Hill
76f5da0125
Restore dynamic from device in function change resp
2026-08-01 13:14:38 -07:00
Allen Hill
7871e92dbe
Fix Debug builds
2026-07-31 17:53:31 -07:00
Allen Hill
fb17b7e75b
Update gitignore and silence some tidy warnings
2026-07-25 11:22:33 -07:00
Allen Hill
ae539e27f6
Fix some overflow behavior when reading input msgs
2026-07-23 12:41:00 -07:00
Allen Hill
a99fe56aae
Fix intermittent, early boot short start bit errors
2026-07-21 13:22:19 -07:00
Allen Hill
909915730b
Not all error conditions print a message
2026-07-21 12:52:25 -07:00
Allen Hill
5bbbb6c011
Party should be ~private
2026-07-21 12:51:49 -07:00
Allen Hill
8950bd6917
Make b3 const
2026-07-21 12:51:18 -07:00
Allen Hill
56936aed10
Switch to using references where possible
2026-07-17 14:31:54 -07:00
Allen Hill
5208e083f3
Redesign (simplify) top-level avclan interface to use expected/nullable unique_ptr
...
- Peripheral::read/send now return `expected<unique_ptr<Frame>, Error>`
for a unified success/error interface.
- Peripheral::route returns `expected<unique_ptr<Frame>, Error>` to
distinguish intent: (intentional) non-response vs unable to respond
- Other functions with optional message semantics (handle,poll,react)
return a unique_ptr whose ownership-state indicates response intent
(i.e. send new message)
Bundled necessary changes:
- Switch Frame allocation from global to local (enabled via member
function new/delete)
- Add new header-library tl::expected to shim avr-libstdcpp
Unrelated: Defensive `continue` added after `route`, to reduce Bus
activity check latency
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-17 14:47:47 -07:00
Allen Hill
200a225add
Unify frame metadata setting (addrs and owning_device)
2026-07-16 13:35:25 -07:00
Allen Hill
568c2af9e6
Only check tracked files and don't print on empty lint
2026-07-16 13:35:06 -07:00
Allen Hill
681450f4ad
Update READMEs
2026-07-08 14:37:17 -07:00
Allen Hill
82884c1305
Resolve some const/static-able warnings
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 14:16:38 -07:00
Allen Hill
b194a6df2c
Improve/expand C phy docs
2026-07-08 13:51:38 -07:00
Allen Hill
2ed6066609
Fix miscellaneous bugs identified by Claude
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-08 13:15:59 -07:00
Allen Hill
cd11501074
Minor reorganization
2026-07-08 09:42:02 -07:00
Allen Hill
52b4b625fb
Move Error::Parse enum into avclan.h
2026-07-08 09:41:25 -07:00
Allen Hill
1ac9a14811
Remove unused function
2026-07-08 09:37:50 -07:00
Allen Hill
e50bde197d
Complete the switch to jnk0le uart lib
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-07 12:49:01 -07:00
Allen Hill
1d953adaf2
Merge branch 'gen2' into o/jnk0le-uart-lib
2026-07-07 12:48:18 -07:00
Allen Hill
f6a0d2d9dc
Make sure tshark is installed in container
2026-07-06 20:44:09 -07:00
Allen Hill
642c5ca59e
fixup lua tables
2026-07-06 20:43:51 -07:00
Allen Hill
103b595abb
Consistently mark frame owners
2026-07-06 20:31:22 -07:00
Allen Hill
0664c1e7bd
Fix broadcasting messages and revert Playback_Status reports to broadcast
2026-07-06 20:28:59 -07:00