From 1054bd317e015cd86ee70db4404083fa9121bd2e Mon Sep 17 00:00:00 2001 From: Philippe Brais Date: Mon, 1 Jan 2024 16:47:17 -0500 Subject: [PATCH 2/4] Fix @code block indentation in bullet point The next paragraph: "For Ethernet drivers, the input..." was no longer associated to the bullet point: "netif_add". --- doc/doxygen/main_page.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/doxygen/main_page.h b/doc/doxygen/main_page.h index 21f3068e..86849cf5 100644 --- a/doc/doxygen/main_page.h +++ b/doc/doxygen/main_page.h @@ -280,18 +280,18 @@ Call these functions in the order of appearance: The init function pointer must point to a initialization function for your Ethernet netif interface. The following code illustrates its use. -@code{.c} - err_t netif_if_init(struct netif *netif) - { - u8_t i; - - for (i = 0; i < ETHARP_HWADDR_LEN; i++) { - netif->hwaddr[i] = some_eth_addr[i]; + @code{.c} + err_t netif_if_init(struct netif *netif) + { + u8_t i; + + for (i = 0; i < ETHARP_HWADDR_LEN; i++) { + netif->hwaddr[i] = some_eth_addr[i]; + } + init_my_eth_device(); + return ERR_OK; } - init_my_eth_device(); - return ERR_OK; - } -@endcode + @endcode For Ethernet drivers, the input function pointer must point to the lwIP function ethernet_input() declared in "netif/etharp.h". Other drivers -- 2.43.0.windows.1