Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Port a Linux version program to FreeRTOS

Posted by Bill Yang on March 28, 2009
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. 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

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner