欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: LAN8720 ETH Board STM32源碼與電路圖等資料 [打印本頁]

作者: daodao1    時間: 2018-7-30 16:21
標題: LAN8720 ETH Board STM32源碼與電路圖等資料
LAN8720的pdf資料:


電路原理圖如下:



Development environment:KEIL MDK 4.0
Downloader;ULINK
Development Board IP: 192.168.0.100
PC client IP :192.168.0.xx

單片機源程序如下:
  1. /**
  2.   ******************************************************************************
  3.   * @file    main.c
  4.   * @author  MCD Application Team
  5.   * @version V1.0.0
  6.   * @date    11/20/2009
  7.   * @brief   Main program body
  8.   ******************************************************************************
  9.   * @copy
  10.   *
  11.   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  12.   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  13.   * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  14.   * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  15.   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  16.   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  17.   *
  18.   * <h2><center>© COPYRIGHT 2009 STMicroelectronics</center></h2>
  19.   */

  20. /* Includes ------------------------------------------------------------------*/
  21. #include "stm32_eth.h"
  22. #include "netconf.h"
  23. #include "main.h"
  24. #include "helloworld.h"
  25. #include "httpd.h"
  26. #include "tftpserver.h"

  27. /* Private typedef -----------------------------------------------------------*/
  28. /* Private define ------------------------------------------------------------*/
  29. #define SYSTEMTICK_PERIOD_MS  10

  30. /* Private macro -------------------------------------------------------------*/
  31. /* Private variables ---------------------------------------------------------*/
  32. __IO uint32_t LocalTime = 0; /* this variable is used to create a time reference incremented by 10ms */
  33. uint32_t timingdelay;

  34. /* Private function prototypes -----------------------------------------------*/
  35. void System_Periodic_Handle(void);

  36. /* Private functions ---------------------------------------------------------*/

  37. /**
  38.   * @brief  Main program.
  39.   * @param  None
  40.   * @retval None
  41.   */
  42. int main(void)
  43. {
  44.   
  45.   /* Setup STM32 system (clocks, Ethernet, GPIO, NVIC) and STM3210C-EVAL resources */
  46.   System_Setup();
  47.             
  48.   /* Initilaize the LwIP satck */
  49.   LwIP_Init();
  50.   
  51.   /* Initilaize the HelloWorld module */
  52.   HelloWorld_init();

  53.   /* Initilaize the webserver module */
  54.   httpd_init();

  55.   /* Initialize the TFTP server */
  56.   tftpd_init();

  57.   /* Infinite loop */
  58.   while (1)
  59.   {   
  60.         /* Periodic tasks */
  61.         System_Periodic_Handle();
  62.   }
  63. }

  64. /**
  65.   * @brief  Inserts a delay time.
  66.   * @param  nCount: number of 10ms periods to wait for.
  67.   * @retval None
  68.   */
  69. void Delay(uint32_t nCount)
  70. {
  71.   /* Capture the current local time */
  72.   timingdelay = LocalTime + nCount;  

  73.   /* wait until the desired delay finish */  
  74.   while(timingdelay > LocalTime)
  75.   {     
  76.   }
  77. }

  78. /**
  79.   * @brief  Updates the system local time
  80.   * @param  None
  81.   * @retval None
  82.   */
  83. void Time_Update(void)
  84. {
  85.   LocalTime += SYSTEMTICK_PERIOD_MS;
  86. }

  87. /**
  88.   * @brief  Handles the periodic tasks of the system
  89.   * @param  None
  90.   * @retval None
  91.   */
  92. void System_Periodic_Handle(void)
  93. {
  94.   /* Update the LCD display and the LEDs status */
  95.   /* Manage the IP address setting */
  96.   Display_Periodic_Handle(LocalTime);
  97.   
  98.   /* LwIP periodic services are done here */
  99.   LwIP_Periodic_Handle(LocalTime);
  100. }


  101. #ifdef  USE_FULL_ASSERT

  102. /**
  103.   * @brief  Reports the name of the source file and the source line number
  104.   *   where the assert_param error has occurred.
  105.   * @param  file: pointer to the source file name
  106.   * @param  line: assert_param error line source number
  107.   * @retval None
  108.   */
  109. void assert_failed(uint8_t* file, uint32_t line)
  110. {
  111.   /* User can add his own implementation to report the file name and line number,
  112.      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */

  113.   /* Infinite loop */
  114.   while (1)
  115.   {}
  116. }
  117. #endif


  118. /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
復(fù)制代碼


所有資料51hei提供下載:
LAN8720 模塊_.rar (1.8 MB, 下載次數(shù): 95)



作者: skyover88    時間: 2019-4-1 19:42
挺好的資料,下來學(xué)習(xí)一下
作者: skyover88    時間: 2019-4-1 19:45
挺好的資料
作者: clover12345678    時間: 2019-5-7 10:09
希望可以用,謝謝
作者: Jehu707    時間: 2019-10-18 08:25
問個問題,接地符號加個十字是什么意思啊(小白勿噴)
作者: thebeacon    時間: 2020-3-20 09:31
謝謝樓主




歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1