From a62ab4fb44c3d0556e3e5d9961b7ab3aea5ce4fa Mon Sep 17 00:00:00 2001 From: rtel Date: Fri, 13 Mar 2015 15:05:09 +0000 Subject: [PATCH] Add networking option to the Microblaze Kintex demo. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2333 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../BSP/system.mss | 9 - .../RTOSDemo/.cproject | 8 +- .../RTOSDemo/.project | 41 + .../RTOSDemo/src/Blinky_Demo/main_blinky.c | 8 +- .../RTOSDemo/src/FreeRTOSConfig.h | 36 + .../RTOSDemo/src/Full_Demo/main_full.c | 21 +- .../RTOSDemo/src/lscript.ld | 426 ++-- .../BasicSocketCommandServer.c | 203 ++ .../httpserver_raw_from_lwIP_download/fs.c | 177 ++ .../httpserver_raw_from_lwIP_download/fs.h | 100 + .../fsdata.c | 2068 ++++++++++++++++ .../fsdata.h | 50 + .../httpserver_raw_from_lwIP_download/httpd.c | 2184 +++++++++++++++++ .../httpserver_raw_from_lwIP_download/httpd.h | 236 ++ .../httpd_structs.h | 115 + .../makefsdata/MakeFSData_proj.sln | 20 + .../makefsdata/MakeFSData_proj.suo | Bin 0 -> 11264 bytes .../makefsdata/MakeFSData_proj.vcxproj | 91 + .../MakeFSData_proj.vcxproj.filters | 36 + .../makefsdata/MakeFSData_proj.vcxproj.user | 3 + .../makefsdata/fs/404.html | 21 + .../makefsdata/fs/index.shtml | 20 + .../makefsdata/fs/logo.jpg | Bin 0 -> 28602 bytes .../makefsdata/fs/runtime.shtml | 20 + .../makefsdata/fsdata.c | 2068 ++++++++++++++++ .../makefsdata/makefsdata | 97 + .../makefsdata/makefsdata.c | 610 +++++ .../makefsdata/makefsdata.exe | Bin 0 -> 46592 bytes .../makefsdata/stdafx.cpp | 8 + .../makefsdata/stdafx.h | 15 + .../makefsdata/targetver.h | 8 + .../src/lwIP_Demo/lwIP_Apps/lwIP_Apps.c | 265 ++ .../src/lwIP_Demo/lwIP_Apps/lwIP_Apps.h | 62 + .../src/lwIP_Demo/lwIP_Apps/lwipcfg_msvc.h | 46 + .../src/lwIP_Demo/lwIP_port/sys_arch.c | 603 +++++ .../RTOSDemo/src/lwIP_Demo/main_lwIP.c | 194 ++ .../RTOSDemo/src/lwipopts.h | 335 +++ .../RTOSDemo/src/main.c | 81 +- 38 files changed, 10022 insertions(+), 263 deletions(-) create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/BasicSocketCommandServer/BasicSocketCommandServer.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/fs.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/fs.h create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/fsdata.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/fsdata.h create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/httpd.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/httpd.h create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/httpd_structs.h create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/MakeFSData_proj.sln create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/MakeFSData_proj.suo create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/MakeFSData_proj.vcxproj create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/MakeFSData_proj.vcxproj.filters create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/MakeFSData_proj.vcxproj.user create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/fs/404.html create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/fs/index.shtml create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/fs/logo.jpg create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/fs/runtime.shtml create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/fsdata.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/makefsdata create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/makefsdata.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/makefsdata.exe create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/stdafx.cpp create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/stdafx.h create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/apps/httpserver_raw_from_lwIP_download/makefsdata/targetver.h create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/lwIP_Apps.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/lwIP_Apps.h create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_Apps/lwipcfg_msvc.h create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/lwIP_port/sys_arch.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwIP_Demo/main_lwIP.c create mode 100644 FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/src/lwipopts.h diff --git a/FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/BSP/system.mss b/FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/BSP/system.mss index 2873863f4..b0bccf959 100644 --- a/FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/BSP/system.mss +++ b/FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/BSP/system.mss @@ -8,8 +8,6 @@ BEGIN OS PARAMETER OS_NAME = standalone PARAMETER OS_VER = 4.2 PARAMETER PROC_INSTANCE = microblaze_0 - PARAMETER stdin = axi_uartlite_0 - PARAMETER stdout = axi_uartlite_0 END @@ -69,10 +67,3 @@ BEGIN DRIVER END -BEGIN LIBRARY - PARAMETER LIBRARY_NAME = lwip140 - PARAMETER LIBRARY_VER = 2.3 - PARAMETER PROC_INSTANCE = microblaze_0 -END - - diff --git a/FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/.cproject b/FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/.cproject index a9835d880..48c2d851e 100644 --- a/FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/.cproject +++ b/FreeRTOS/Demo/MicroBlaze_Kintex7_EthernetLite/RTOSDemo/.cproject @@ -38,6 +38,9 @@