app_ethernet.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. ******************************************************************************
  3. * @file LwIP/LwIP_HTTP_Server_Socket_RTOS/Inc/app_ethernet.h
  4. * @author MCD Application Team
  5. * @brief Header for app_ethernet.c module
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __APP_ETHERNET_H
  21. #define __APP_ETHERNET_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "lwip/netif.h"
  27. #include "main.h"
  28. /* Exported types ------------------------------------------------------------*/
  29. /* Exported constants --------------------------------------------------------*/
  30. /* DHCP process states */
  31. #define DHCP_OFF (uint8_t) 0
  32. #define DHCP_START (uint8_t) 1
  33. #define DHCP_WAIT_ADDRESS (uint8_t) 2
  34. #define DHCP_ADDRESS_ASSIGNED (uint8_t) 3
  35. #define DHCP_TIMEOUT (uint8_t) 4
  36. #define DHCP_LINK_DOWN (uint8_t) 5
  37. /* Exported macro ------------------------------------------------------------*/
  38. /* Exported functions ------------------------------------------------------- */
  39. void User_notification(struct netif *netif);
  40. #ifdef USE_DHCP
  41. void DHCP_thread(void const * argument);
  42. extern volatile uint32_t dhcp_done;
  43. void DHCP_open(void);
  44. void DHCP_close(void);
  45. #endif
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif /* __APP_ETHERNET_H */
  50. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/