Switch to IPv4 zeroconf, add test framework with discovery test, fix serial enumeration

This commit is contained in:
Ian Gulliver
2026-04-07 06:58:39 +09:00
parent b8c0e6be66
commit e60479bad8
14 changed files with 308 additions and 33 deletions

View File

@@ -19,16 +19,11 @@ bool net_init() {
info.mac[4] = uid.id[4];
info.mac[5] = uid.id[5];
info.lla[0] = 0xfe;
info.lla[1] = 0x80;
info.lla[8] = info.mac[0] ^ 0x02;
info.lla[9] = info.mac[1];
info.lla[10] = info.mac[2];
info.lla[11] = 0xff;
info.lla[12] = 0xfe;
info.lla[13] = info.mac[3];
info.lla[14] = info.mac[4];
info.lla[15] = info.mac[5];
info.ip[0] = 169;
info.ip[1] = 254;
info.ip[2] = info.mac[4];
info.ip[3] = info.mac[5];
info.sn = {255, 255, 0, 0};
w6300::init_net(info);