docs: record CH390 hardware-bound conclusion

This commit is contained in:
2026-04-01 04:30:27 +08:00
parent 1808f9916f
commit 81594c6520
6 changed files with 340 additions and 20 deletions
+7
View File
@@ -123,6 +123,13 @@ void ch390_runtime_init(struct netif *netif, const uint8_t *mac)
SEGGER_RTT_WriteString(0, "ETH init: probe\r\n");
g_ch390_ready = ch390_runtime_probe_identity();
if (g_ch390_ready == 0u) {
SEGGER_RTT_printf(0,
"CH390 bitbang VIDL=0x%02X VIDH=0x%02X PIDL=0x%02X PIDH=0x%02X CHIPR=0x%02X\r\n",
ch390_bitbang_read_reg(CH390_VIDL),
ch390_bitbang_read_reg(CH390_VIDH),
ch390_bitbang_read_reg(CH390_PIDL),
ch390_bitbang_read_reg(CH390_PIDH),
ch390_bitbang_read_reg(CH390_CHIPR));
netif->hwaddr_len = ETHARP_HWADDR_LEN;
netif->mtu = 1500;
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;