# Port a Linux version program to FreeRTOS

**URL:** <https://forums.freertos.org/t/port-a-linux-version-program-to-freertos/634>\
**Category:** Kernel\
**Created:** [March 28, 2009, 12:32am UTC](https://forums.freertos.org/t/port-a-linux-version-program-to-freertos/634 "2009-03-28T00:32:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yyang2000](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@yyang2000](https://forums.freertos.org/u/yyang2000)\
**Post date:** [March 28, 2009, 12:32am UTC](https://forums.freertos.org/t/port-a-linux-version-program-to-freertos/634/1 "2009-03-28T00:32:37Z")

</div>

**[yyang2000](https://sourceforge.net/u/yyang2000/)** wrote on [Saturday, March 28, 2009](https://sourceforge.net/p/freertos/discussion/382005/thread/1b62ee11/#e771):

Hi, I need to port a linux version library to FreeRTOS. The linux version library is rstplib that has downloaded from the web [sourceforge.net](http://sourceforge.net).&nbsp; I have already created a project by FreeRTOS based on Cortex\_LM3Sxxxx\_IAR\_Keil demo. The reason I need to port rstplib because it implement Rapid Spanning Tree protocol that I needed it on my project. My project is a switch board with 10 Ethernet port and a Luminary microcontroller chip (LM3S6965). So I wonder if any one can suggest me what I have to consider and do. The followings are I plan to do.  
1) create a new project for library. for instance called freertos\_rstplib  
2) copy the files in rstplib to the new project freertos\_rstplib.  
2) remove these definitions in the header files and source files that need in Linux environment.  
3) compile it to generate a freertos\_rstplib.lib.  
4) include the new freertos\_rstplib.lib to my project and compile/link.  
5) if it is success, then I start to use APIs to implment the Rapid Spanning Tree Protocol in my project.  
Any suggestion will be welcome and appreciated.

Bill Yang
