app_ethernet.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. /* Exported types ------------------------------------------------------------*/
  28. /* Exported constants --------------------------------------------------------*/
  29. /* DHCP process states */
  30. #define DHCP_OFF (uint8_t) 0
  31. #define DHCP_START (uint8_t) 1
  32. #define DHCP_WAIT_ADDRESS (uint8_t) 2
  33. #define DHCP_ADDRESS_ASSIGNED (uint8_t) 3
  34. #define DHCP_TIMEOUT (uint8_t) 4
  35. #define DHCP_LINK_DOWN (uint8_t) 5
  36. /* Exported macro ------------------------------------------------------------*/
  37. /* Exported functions ------------------------------------------------------- */
  38. void User_notification(struct netif *netif);
  39. #ifdef USE_DHCP
  40. void DHCP_thread(void const * argument);
  41. extern volatile uint32_t dhcp_done;
  42. #endif
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif /* __APP_ETHERNET_H */
  47. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/