資源描述:
《Day Day Up筆記之uCOS-II LwIP 在 STM32F107 上移植》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、DayDayUp筆記之uCOS-II+LwIP在STM32F107上移植筆者:adamwinDayDayUp出品DayDayUp筆記之uCOS-II+LwIP在STM32F107上移植聲明XX如是說——尊重他人勞動(dòng)成果,也是一種美德……轉(zhuǎn)載請(qǐng)注明出處閑話稍說這篇筆記旨在講解LwIP在uCOS-II的上的過程,著重講述移植的整個(gè)流程,不拘泥于細(xì)節(jié)。從頭至尾一步一步的完成移植工作。本篇目標(biāo)是能夠ping通目標(biāo)板,PC機(jī)與目標(biāo)機(jī)建立一個(gè)初步的連接,至于說其他的應(yīng)用服務(wù),暫時(shí)不予講述。友情提示:要想順利完成LwIP移植,你需具備:1、有一定的C語言基礎(chǔ)和數(shù)據(jù)結(jié)構(gòu)的知識(shí);2、熟悉uCOS-II,了解信
2、號(hào)量,消息郵箱等通信方式;3、知道LwIP是何物,能用來干什么硬件平臺(tái)STM32硬件平臺(tái)某開發(fā)板或你自己設(shè)計(jì)的硬件我使用是自己的STM32F107VC+DP83848板子IDE環(huán)境EWARM-IARV5.4uCos-IIV2.86LwIPV1.3.2目錄DayDayUp筆記之uCOS-II+LwIP在STM32F107上移植...........................................1聲明..........................................................................................
3、..............................1閑話稍說................................................................................................................1目錄........................................................................................................................1直奔主題........................
4、........................................................................................31、巧婦備米.................................................................................................31.1、下載STM32F107_ETH_LwIP例程...............................................31.2、基礎(chǔ)工程的建立.....................
5、.....................................................32、文件結(jié)構(gòu).................................................................................................3DayDayUp筆記之uCOS-II+LwIP在STM32F107上移植筆者:adamwinDayDayUp出品3、添加編譯文件路徑...........................................................................
6、......64、添加網(wǎng)口底層驅(qū)動(dòng)代碼.........................................................................74.1、在BSP.c中添加:........................................................................74.2、對(duì)應(yīng)的函數(shù)原型聲明:............................................................114.3、在BSP_Init()中調(diào)用BSP_EthernetInit().......
7、..............................114.3、相關(guān)宏定義:............................................................................124.4、包含stm32_eth.h頭文件:......................................................125、編寫操作系統(tǒng)模