Can wait for network to finish boot

This commit is contained in:
2024-08-17 17:40:14 +02:00
parent f60f6f6ccc
commit 59ba55793e
3 changed files with 39 additions and 3 deletions

@ -4,6 +4,8 @@
#pragma once
#include "stdbool.h"
#ifdef __cplusplus
extern "C"
{
@ -15,9 +17,14 @@ extern "C"
void ethernet_init();
/**
* De-initialize Ethernet connection
* Check if Ethernet connection is ready or not
*/
void ethernet_deinit();
bool ethernet_is_ready();
/**
* Wait for network connection to become ready
*/
void ethernet_wait_for_network();
#ifdef __cplusplus
}