ethernetif.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. ******************************************************************************
  3. * @file ethernetif.h
  4. * @author MCD Application Team
  5. * @brief Ethernet interface header file.
  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 Ultimate Liberty license
  13. * SLA0044, the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * www.st.com/SLA0044
  16. *
  17. ******************************************************************************
  18. */
  19. #ifndef __ETHERNETIF_H__
  20. #define __ETHERNETIF_H__
  21. #include "lwip/err.h"
  22. #include "lwip/netif.h"
  23. #include "cmsis_os.h"
  24. /* Exported types ------------------------------------------------------------*/
  25. /* Structure that include link thread parameters */
  26. struct link_str {
  27. struct netif *netif;
  28. osSemaphoreId semaphore;
  29. };
  30. /* Exported functions ------------------------------------------------------- */
  31. err_t ethernetif_init(struct netif *netif);
  32. void ethernetif_set_link(void const *argument);
  33. void ethernetif_update_config(struct netif *netif);
  34. void ethernetif_notify_conn_changed(struct netif *netif);
  35. #endif