lwip.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * File Name : LWIP.h
  5. * Description : This file provides code for the configuration
  6. * of the LWIP.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * Copyright (c) 2024 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. *************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __mx_lwip_H
  22. #define __mx_lwip_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "lwip/opt.h"
  28. #include "lwip/mem.h"
  29. #include "lwip/memp.h"
  30. #include "netif/etharp.h"
  31. #include "lwip/dhcp.h"
  32. #include "lwip/netif.h"
  33. #include "lwip/timeouts.h"
  34. #include "ethernetif.h"
  35. /* Includes for RTOS ---------------------------------------------------------*/
  36. #if WITH_RTOS
  37. #include "lwip/tcpip.h"
  38. #endif /* WITH_RTOS */
  39. /* USER CODE BEGIN 0 */
  40. uint8_t is_link_up(void);
  41. /* USER CODE END 0 */
  42. /* Global Variables ----------------------------------------------------------*/
  43. extern ETH_HandleTypeDef heth;
  44. /* LWIP init function */
  45. void MX_LWIP_Init(void);
  46. #if !WITH_RTOS
  47. /* USER CODE BEGIN 1 */
  48. /* Function defined in lwip.c to:
  49. * - Read a received packet from the Ethernet buffers
  50. * - Send it to the lwIP stack for handling
  51. * - Handle timeouts if NO_SYS_NO_TIMERS not set
  52. */
  53. void MX_LWIP_Process(void);
  54. /* USER CODE END 1 */
  55. #endif /* WITH_RTOS */
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif /*__ mx_lwip_H */
  60. /**
  61. * @}
  62. */
  63. /**
  64. * @}
  65. */