This commit is contained in:
2025-11-07 19:29:06 +06:00
parent d577c5193c
commit 1403c53d32
3 changed files with 36 additions and 27 deletions

4
main.c
View File

@@ -79,14 +79,12 @@ int main() {
netif_add(&g_netif, &ipaddr, &netmask, &gw, NULL, &ethernetif_init,
&ethernet_input);
// netif_set_link_callback(&g_netif, link_status_callback);
netif_set_default(&g_netif);
netif_set_up(&g_netif);
dhcp_start(&g_netif);
ethernetif_init(&g_netif);
uint32_t last_led_toggle = 0;
uint32_t last_send_time = 0;
int led_state = 0;