欢迎来到天天文库
浏览记录
ID:34407428
大小:724.42 KB
页数:47页
时间:2019-03-05
《LwIP TCPIP stack demonstration for STM32F2x7xx microcontrollers.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、AN3384ApplicationnoteLwIPTCP/IPstackdemonstrationforSTM32F2x7xxmicrocontrollers1IntroductionSTM32F2x7xxmicrocontrollersfeaturesahigh-quality10/100Mbit/sEthernetperipheralthatsupportsboththeMediaIndependentInterface(MII)andReducedMediaIndependentInterface(RMII)toint
2、erfacewiththePhysicalLayer(PHY).WhenworkingwithanEthernetcommunicationinterface,aTCP/IPstackisusuallyusedforcommunicatingoveralocalorawideareanetwork.ThisapplicationnotepresentsademonstrationpackagebuiltontopofthelwIP(LightweightIP)TCP/IPstackwhichisanopensourcesta
3、ckintendedforembeddeddevices.ThisdemonstrationpackagecontainsnineapplicationsrunningontopofthelwIPstack:●Applicationsrunninginstandalonemode(withoutanRTOS):–AWebserver–ATFTPserver–ATCPechoclientapplication–ATCPechoserverapplication–AUDPechoclientapplication–AUDPech
4、oserverapplication●ApplicationsrunningwiththeFreeRTOSoperatingsystem:–AWebserverbasedonnetconnAPI–AWebserverbasedonsocketAPI–ATCP/UDPechoserverapplicationbasedonnetconnAPIOctober2011DocID018698Rev21/47www.st.comContentsAN3384Contents1Introduction...................
5、.............................12LwIPstackoverview.........................................62.1Stackfeatures..............................................62.2FolderorganizationofthelwIPstack.............................72.3LwIPAPIoverview.............................
6、..............72.3.1RawAPI..................................................72.3.2NetconnAPI...............................................92.3.3SocketAPI................................................92.4lwIPbuffermanagement.....................................10
7、2.4.1Packetbufferstructure......................................102.4.2APIformanagingpbufs.....................................112.5InterfacinglwIPtoSTM32F2x7Ethernetnetworkinterface...........113STM32F2x7lowleveldriveroverview..........................133.1GlobalE
8、thernetMAC/DMAfunctions............................133.1.1EthernetMAC/DMAconfigurationparameters....................143.2DMAdescriptorhandling...
此文档下载收益归作者所有