Commit Graph

108 Commits

Author SHA1 Message Date
Ian Gulliver
6c3e0757f9 Boot reason via watchdog scratch register, reboot/picoboot CLI commands, enum msgpack support 2026-04-12 08:17:22 +09:00
Ian Gulliver
9b7362c460 Rename ping_rate/ping_rate_1k to packet_rate/byte_rate, use 1400-byte payloads 2026-04-12 07:55:30 +09:00
Ian Gulliver
761b740c10 Zero-copy ethernet TX: encode directly into prepend_buffer, add info/test skills 2026-04-12 07:50:20 +09:00
Ian Gulliver
846d6bb201 Clean up load logging, capture build output via slog, use cmake --build 2026-04-11 22:38:16 +09:00
Ian Gulliver
5f2268f5e1 Unified --usb/--udp/--iface target flags for all CLI commands 2026-04-11 22:33:55 +09:00
Ian Gulliver
e3d97f4946 In-app flash write, UF2 parser, remove picotool dependency, reboot command 2026-04-11 22:26:54 +09:00
Ian Gulliver
a635aa04e0 Level-triggered w6300 interrupt, drain until empty, rearm after drain 2026-04-11 21:51:22 +09:00
Ian Gulliver
8b69917e1d Biffer buffers, more aggressive tests 2026-04-11 21:32:50 +09:00
Ian Gulliver
59d67c740c Replace net_poll budget with snapshot-based drain: read available bytes once, stop when consumed 2026-04-11 20:51:42 +09:00
Ian Gulliver
ecc8271648 Remove unused sorted_list 2026-04-11 20:45:04 +09:00
Ian Gulliver
1c8c645878 Clean up callback_list, remove sentinel/active/tail, callbacks return bool for removal, register before send 2026-04-11 15:01:37 +09:00
Ian Gulliver
938b4b8a4c Limit net_poll to 2 frames per iteration, pipeline=2 for both rate tests 2026-04-11 14:36:40 +09:00
Ian Gulliver
fec0a0f765 Replace sorted_list/vector with callback_list doubly-linked list for timers and frame callbacks 2026-04-11 14:26:53 +09:00
Ian Gulliver
aa349e1a36 Add debug logging to overflow/error paths, fix pipeline=2 drop 2026-04-11 09:48:25 +09:00
Ian Gulliver
f7baf60249 Pipeline ping rate tests, small=1 large=2 in-flight 2026-04-11 09:29:34 +09:00
Ian Gulliver
1843660e6f Add ping rate tests, discover_peer helper, standardize prepend_buffer to 4096 2026-04-11 09:17:46 +09:00
Ian Gulliver
a6225faa2b Add IGMP, prepend_buffer/parse_buffer, split UDP header, discovery tests, test all 2026-04-11 09:04:55 +09:00
Ian Gulliver
e486f6501a Cancellable timers: sorted_list::remove, timer cancel, replace done flag with timer cancellation 2026-04-11 08:28:32 +09:00
Ian Gulliver
3a3c5873c3 Add dlogf printf formatting, ipv4::to_string helper, clean up string building 2026-04-11 08:21:59 +09:00
Ian Gulliver
c35c1de76a Split net stack into eth/arp/ipv4/icmp, deferred handler responses, ping tests 2026-04-11 08:15:41 +09:00
Ian Gulliver
34efaeefd5 Add list-tests protocol message, test subcommands, extract test handlers 2026-04-11 07:25:16 +09:00
Ian Gulliver
f6d8847bcf Fix packer: store span_writer by reference, not copy 2026-04-10 23:23:58 +09:00
Ian Gulliver
7264611f99 Zero-copy decode: span-based Envelope and DecodedMessage, defer usb_rx_buf clear 2026-04-10 23:08:51 +09:00
Ian Gulliver
76c519c17a Overflow detection, span-based signatures, flatten control flow 2026-04-10 23:02:07 +09:00
Ian Gulliver
8408603390 Zero-copy encode: pack response body in place, single shared tx_buf, drain rx loop 2026-04-10 22:48:28 +09:00
Ian Gulliver
58db392bf3 Simplify handler signatures: return response struct, typed_handler does encoding 2026-04-10 22:21:31 +09:00
Ian Gulliver
e2a5d97dae Zero-copy TX: span_writer packer, static buffers, no vector returns 2026-04-10 22:18:44 +09:00
Ian Gulliver
94895fd2fe Move picoboot reboot into handler via dispatch_schedule_ms 2026-04-10 22:04:38 +09:00
Ian Gulliver
f2d98ef4f1 Skip net_poll and timers unless their interrupt has fired 2026-04-10 22:00:34 +09:00
Ian Gulliver
8edf8c2d4f Remove unused iodata_t, PIO_OFFSET_WRITE_BITS, trim intr_kind, move sock_count to cpp 2026-04-10 21:51:58 +09:00
Ian Gulliver
c961499239 Remove socket IO mode (nonblock unnecessary with pre-checked recv buffer) 2026-04-10 21:45:43 +09:00
Ian Gulliver
0d41f63533 Strip non-MACRAW enums, unused macros, and set_socket_dest_mac 2026-04-10 21:42:20 +09:00
Ian Gulliver
394628b8da MACRAW-only: simplify send/recv API, remove non-MACRAW code paths and unused types 2026-04-10 21:37:03 +09:00
Ian Gulliver
bee0fa3aef Remove critical section code, unused constants, and unused register definitions 2026-04-10 21:27:01 +09:00
Ian Gulliver
ff9f9a5c1f Remove unused W6300 register accessors and internal functions 2026-04-10 21:18:43 +09:00
Ian Gulliver
af308b5aac Remove unused W6300 API: phy, net config, TCP, keepalive, peek, and related types 2026-04-10 21:06:52 +09:00
Ian Gulliver
712110aace Remove unused interrupt code: enable_interrupt_pin, CHECK markers, dead comments w6300-complete 2026-04-10 20:54:07 +09:00
Ian Gulliver
0c11cbb1d1 WFI with interrupt-driven wakeup for USB and W6300 2026-04-10 12:55:04 +09:00
Ian Gulliver
3d20bf4c33 Per-packet source tracking in transport, via/from in info output 2026-04-07 22:30:26 +09:00
Ian Gulliver
f96ed20aa0 Fix broadcast collection: UDP reader blocks until deadline, 500ms timeout everywhere 2026-04-07 22:22:19 +09:00
Ian Gulliver
e301c672a9 Broadcast discovery with InfoAll, interface broadcast detection, clean output 2026-04-07 22:12:20 +09:00
Ian Gulliver
7034391d4d UDP transport with broadcast support, -udp and -iface flags on info 2026-04-07 21:44:35 +09:00
Ian Gulliver
9989d8c66a Add UDP transport with picomap port 28781, info -udp flag 2026-04-07 21:36:50 +09:00
Ian Gulliver
3d749add7d Compose eth header into ipv4_header, use icmp_echo struct, protocol switch in handle_ipv4 2026-04-07 12:31:27 +09:00
Ian Gulliver
f161dda60a Rewrite net.cpp to use packed structs for frame encoding/decoding 2026-04-07 12:21:41 +09:00
Ian Gulliver
b0294fada3 Fix broadcast ping reply source IP, accept broadcast destinations 2026-04-07 12:18:07 +09:00
Ian Gulliver
31b2c16b07 Debug log with dlog_if_slow, MACRAW ping working, wfi disabled 2026-04-07 12:09:18 +09:00
Ian Gulliver
d215ddc6f2 Add debug log ring buffer with timestamps, log CLI subcommand 2026-04-07 09:18:43 +09:00
Ian Gulliver
ffcbaf0665 Merge info/load/test CLIs into unified picomap subcommand CLI 2026-04-07 08:37:34 +09:00
Ian Gulliver
a7381ca435 MACRAW net stack, slog, load -target flag, LED blink, net_poll disabled pending SPI fix 2026-04-07 08:34:29 +09:00