summaryrefslogtreecommitdiff
path: root/src/esp32p4/uart.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-06 18:11:36 -0300
committerGabriel Schneider <[email protected]>2026-09-07 13:59:12 -0300
commit60367d8fe23f6af98ec28e3cf6c2094dfe332df0 (patch)
tree310fc734173cf771881f4691c71909135fadde97 /src/esp32p4/uart.zig
parentfa82cac885cb4738fe36d1e49b4749b5a3e31a4a (diff)
downloadpardes-60367d8fe23f6af98ec28e3cf6c2094dfe332df0.tar.gz
pardes-60367d8fe23f6af98ec28e3cf6c2094dfe332df0.zip
Refactor panes and filesystem; replace FUSE with 9P
Consolidate pane, layout, memory and host code. Serve 9P by default over Unix sockets, with runtime mounts and optional TCP/QUIC transports. Remove FUSE and obsolete proof-of-concept examples. Fix highlighting and terminal-history performance, expand differential and stress-test infrastructure, sort navigation results while preserving the next occurrence, add syntax-colored Braille minimaps, remove SPC-k, and document 9P interaction as a repository skill.
Diffstat (limited to 'src/esp32p4/uart.zig')
-rw-r--r--src/esp32p4/uart.zig11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/esp32p4/uart.zig b/src/esp32p4/uart.zig
index 53ee29df..15599423 100644
--- a/src/esp32p4/uart.zig
+++ b/src/esp32p4/uart.zig
@@ -1,4 +1,4 @@
-//! UART0 as the editor's terminal: bytes out, bytes in, and nothing else.
+//! UART0 transport for the editor and standalone GPIO 9P firmware.
//!
//! This is the whole of the firmware's I/O. There is no framebuffer and no keyboard; the board
//! emits ANSI and consumes ANSI, and the terminal emulator on the far end of the CH340 does the
@@ -37,13 +37,8 @@
//! with nothing readable left to explain it. Everything else here touches FIFO offset 0x000 and the
//! status register, and nothing else.
//!
-//! The DIVIDER is the one exception, and it was carved out for the second image rather than for this
-//! one: `docs/registry.typ` `BOARD-1`. The editor's console is opened by a human at 115200 and the
-//! firmware inherits that divider (which is why the paragraph above used to say "not the divider");
-//! the 9P image (`nine.zig`) has a program on the far end that opens the port at whatever rate the
-//! image was built for, and eight times the baud is eight times less latency on every `Tread`. So
-//! `setBaud` exists, this file still never calls it, and `app.zig` still never calls it — the only
-//! caller is the image whose host side is opened to match.
+//! The editor inherits the bootloader's 115200 divider. `src/esp32p4_9p.zig`
+//! calls `setBaud` for its 921600 protocol connection; the host must match it.
const hal = @import("hal");
const input_rescue = @import("input_rescue.zig");