netconf.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /**
  2. ******************************************************************************
  3. * @file netconf.h
  4. * @author MCD Application Team
  5. * @version V1.1.0
  6. * @date 31-July-2013
  7. * @brief This file contains all the functions prototypes for the netconf.c
  8. * file.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
  13. *
  14. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  15. * You may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at:
  17. *
  18. * http://www.st.com/software_license_agreement_liberty_v2
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. ******************************************************************************
  27. */
  28. /* Define to prevent recursive inclusion -------------------------------------*/
  29. #ifndef __NETCONF_H
  30. #define __NETCONF_H
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. #define lwip_printf printf
  35. //#define lwip_printf(...)
  36. /* Includes ------------------------------------------------------------------*/
  37. /* Exported types ------------------------------------------------------------*/
  38. /* Exported constants --------------------------------------------------------*/
  39. #define DHCP_START 1
  40. #define DHCP_WAIT_ADDRESS 2
  41. #define DHCP_ADDRESS_ASSIGNED 3
  42. #define DHCP_TIMEOUT 4
  43. #define DHCP_LINK_DOWN 5
  44. /* Exported macro ------------------------------------------------------------*/
  45. /* Exported functions ------------------------------------------------------- */
  46. void LwIP_Init(void);
  47. void LwIP_Pkt_Handle(void);
  48. void LwIP_Periodic_Handle(__IO uint32_t localtime);
  49. void LwIP_ChangeNetParam(void);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif /* __NETCONF_H */
  54. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/