You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.9 KiB

12 months ago
  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. /* USER CODE END 0 */
  41. /* Global Variables ----------------------------------------------------------*/
  42. extern ETH_HandleTypeDef heth;
  43. /* LWIP init function */
  44. void MX_LWIP_Init(void);
  45. #if !WITH_RTOS
  46. /* USER CODE BEGIN 1 */
  47. /* Function defined in lwip.c to:
  48. * - Read a received packet from the Ethernet buffers
  49. * - Send it to the lwIP stack for handling
  50. * - Handle timeouts if NO_SYS_NO_TIMERS not set
  51. */
  52. void MX_LWIP_Process(void);
  53. /* USER CODE END 1 */
  54. #endif /* WITH_RTOS */
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif /*__ mx_lwip_H */
  59. /**
  60. * @}
  61. */
  62. /**
  63. * @}
  64. */