久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 6989|回復: 5
收起左側

LAN8720 ETH Board STM32源碼與電路圖等資料

[復制鏈接]
ID:380937 發表于 2018-7-30 16:21 | 顯示全部樓層 |閱讀模式
LAN8720的pdf資料:
0.png

電路原理圖如下:
0.png


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****/
復制代碼
0.png

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

評分

參與人數 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

回復

使用道具 舉報

ID:502695 發表于 2019-4-1 19:42 | 顯示全部樓層
挺好的資料,下來學習一下
回復

使用道具 舉報

ID:502695 發表于 2019-4-1 19:45 | 顯示全部樓層
挺好的資料
回復

使用道具 舉報

ID:513219 發表于 2019-5-7 10:09 | 顯示全部樓層
希望可以用,謝謝
回復

使用道具 舉報

ID:372213 發表于 2019-10-18 08:25 | 顯示全部樓層
問個問題,接地符號加個十字是什么意思啊(小白勿噴)
回復

使用道具 舉報

ID:706056 發表于 2020-3-20 09:31 | 顯示全部樓層
謝謝樓主
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 亚洲欧美日韩精品 | 欧美在线日韩 | 欧美8一10sex性hd | 一区二区三区视频在线 | 国产精品色哟哟网站 | 免费影视在线观看 | 国产精品一区一区 | 本道综合精品 | 久久精品国产v日韩v亚洲 | 天天久久 | 久久久久久久av麻豆果冻 | 午夜亚洲| 久久久久久高清 | avhd101在线成人播放 | 亚洲日韩中文字幕一区 | 先锋资源亚洲 | 国产在线观看免费 | 国产高清在线精品 | 欧美亚洲高清 | 91一区二区在线观看 | 日本午夜免费福利视频 | 久久精品二区亚洲w码 | 奇米av| 九九国产在线观看 | 欧美日韩在线视频一区 | 9191av| 在线亚洲精品 | 999精品在线观看 | 一级毛片视频 | 人操人免费视频 | 久久久成人免费视频 | 欧美成人在线网站 | 国产福利91精品一区二区三区 | 瑟瑟免费视频 | 懂色一区二区三区免费观看 | 一区视频在线播放 | 日韩一区二区三区视频 | 精品国产一区探花在线观看 | 人人干视频在线 | 久久久精品一区二区 | 久久精品国产一区二区电影 |