Commit Graph

126 Commits

Author SHA1 Message Date
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
Ian Gulliver
a9193d51e4 Switch commands to slog, disable net_poll pending fix 2026-04-07 07:43:16 +09:00
Ian Gulliver
46db2fd966 MACRAW IP stack with ARP/ICMP, stable device ordering, LED blink on test 2026-04-07 07:34:24 +09:00
Ian Gulliver
642e2ff318 Remove leading underscores and mixed case from w6300 internal symbols 2026-04-07 07:15:24 +09:00
Ian Gulliver
3c320cf466 Rename screaming case symbols to snake_case in w6300 public API 2026-04-07 07:09:11 +09:00
Ian Gulliver
843a286631 Remove multicast socket polling, fix USB responsiveness 2026-04-07 07:04:53 +09:00
Ian Gulliver
e60479bad8 Switch to IPv4 zeroconf, add test framework with discovery test, fix serial enumeration 2026-04-07 06:58:39 +09:00
Ian Gulliver
b8c0e6be66 Handlers return multiple responses, dispatch polls sockets for UDP commands 2026-04-06 20:22:40 +09:00
Ian Gulliver
f837937cb7 Add firmware_name to info response 2026-04-06 20:09:30 +09:00
Ian Gulliver
49bbe1b29c Split dispatch init/run, join IPv6 multicast discovery group in firmware 2026-04-06 20:01:22 +09:00
Ian Gulliver
00b960d81d Add dispatch loop, copy_to_ram, retry picotool load without sleep 2026-04-06 17:36:41 +09:00
Ian Gulliver
b197f0bfa7 Extract picoboot and info handlers into lib/handlers 2026-04-06 17:24:34 +09:00
Ian Gulliver
00ab432a72 Add IPv6 link-local address to net_init and info response, use WaitGroup.Go 2026-04-06 17:20:13 +09:00
Ian Gulliver
1fa1b2076c Poll for BOOTSEL readiness instead of fixed sleep, load with -x 2026-04-06 09:19:26 +09:00
Ian Gulliver
ee8563ab69 Remove DHCP client, preserved on dhcp-wip branch 2026-04-06 09:10:50 +09:00
Ian Gulliver
1bbe350370 Add test target, parallelize load and info across two devices 2026-04-05 21:48:47 +09:00
Ian Gulliver
30a697066c Move C++ tree into firmware/ 2026-04-05 21:33:19 +09:00
Ian Gulliver
4989cfd8cb Use pico_rand for DHCP xid, run cmake in load command 2026-04-05 21:30:21 +09:00
Ian Gulliver
28caa2e590 Add sorted_list, timer_queue, and DHCP discover with inline options 2026-04-05 21:23:14 +09:00
Ian Gulliver
421cb5840e Split into main/net/tusb_config, extract ring_buffer and usb_cdc headers 2026-04-05 21:04:56 +09:00
Ian Gulliver
9fc79408dc Non-blocking USB TX with ring buffer and immediate drain 2026-04-05 20:47:48 +09:00
Ian Gulliver
d33b711378 Sleep with __wfi() between USB interrupts instead of busy-polling 2026-04-05 20:36:34 +09:00
Ian Gulliver
401008b5a7 Switch from stdio to direct TinyUSB CDC, drop cstdio from w6300 2026-04-05 17:03:34 +09:00
Ian Gulliver
579876774e Rename internal symbols: snake_case accessors, REG_ prefix for registers, no reserved identifiers 2026-04-05 16:26:56 +09:00
Ian Gulliver
b7fd5f7668 Fix public API: const refs, return by value, ip_address for addrs, remove void* dispatch 2026-04-05 15:32:20 +09:00
Ian Gulliver
732ea4250d Rename all internal wiz/WIZCHIP symbols to clean names 2026-04-05 09:09:10 +09:00
Ian Gulliver
eee3a2a420 Remove dead void* dispatch functions and unused internal enums/constants 2026-04-05 09:01:37 +09:00
Ian Gulliver
fd9e85c970 Use std::array, std::span, split void* ctl functions into typed API 2026-04-05 08:55:51 +09:00
Ian Gulliver
7f7055cec5 Use std::expected for socket return types, enum class sock_error 2026-04-05 08:38:16 +09:00
Ian Gulliver
0b81ca6139 Replace raw uint8_t constants with enum class types, move internal constants to cpp 2026-04-05 08:18:28 +09:00
Ian Gulliver
8a48c58a0b Add socket_id and port_num strong types to W6300 socket API 2026-04-05 07:30:50 +09:00
Ian Gulliver
ef7baee973 Rename W6300 public API: drop wiz prefix, snake_case, verb-first functions, namespace w6300 2026-04-05 07:01:43 +09:00
Ian Gulliver
9f9a1885ae Rename msgpackpp->msgpack, merge device+protocol->wire, absorb picoserial into client 2026-04-04 23:16:25 +09:00