参考链接: https://www.freertos.org/FreeRTOS-simulator-for-Linux.html
原作者源码下载: Posix_GCC_Simulator_6_0_4.zip
添加文件: Posix_GCC_Simulator/FreeRTOS_Posix/Debug/FreeRTOS_Posix.pro
INCLUDEPATH += ../FreeRTOS_Kernel/include/
INCLUDEPATH += ../
INCLUDEPATH += ../FreeRTOS_Kernel/portable/GCC/Posix/
INCLUDEPATH += ../Common_Demo/include/QMAKE_LFLAGS += -lrt
LIBS += -lrtTARGET = FreeRTOS_Posix
SOURCES += ../FileIO/fileIO.c
SOURCES += ../ParTest/ParTest.c
SOURCES += ../AsyncIO/AsyncIOSerial.c
SOURCES += ../AsyncIO/AsyncIO.c
SOURCES += ../AsyncIO/AsyncIOSocket.c
SOURCES += ../AsyncIO/PosixMessageQueueIPC.c
SOURCES += ../Common_Demo/Minimal/blocktim.c
SOURCES += ../Common_Demo/Minimal/crflash.c
SOURCES += ../Common_Demo/Minimal/QPeek.c
SOURCES += ../Common_Demo/Minimal/recmutex.c
SOURCES += ../Common_Demo/Minimal/crhook.c
SOURCES += ../Common_Demo/Minimal/countsem.c
SOURCES += ../Common_Demo/Minimal/GenQTest.c
SOURCES += ../Common_Demo/Full/PollQ.c
SOURCES += ../Common_Demo/Full/BlockQ.c
SOURCES += ../Common_Demo/Full/death.c
SOURCES += ../Common_Demo/Full/semtest.c
SOURCES += ../Common_Demo/Full/dynamic.c
SOURCES += ../Common_Demo/Full/events.c
SOURCES += ../Common_Demo/Full/print.c
SOURCES += ../Common_Demo/Full/flash.c
SOURCES += ../Common_Demo/Full/flop.c
SOURCES += ../Common_Demo/Full/integer.c
SOURCES += ../main.c
SOURCES += ../FreeRTOS_Kernel/portable/GCC/Posix/port.c
SOURCES += ../FreeRTOS_Kernel/portable/MemMang/heap_3.c
SOURCES += ../FreeRTOS_Kernel/queue.c
SOURCES += ../FreeRTOS_Kernel/tasks.c
SOURCES += ../FreeRTOS_Kernel/list.c
SOURCES += ../FreeRTOS_Kernel/croutine.c
离线
2020年来考古,发现这个很可以
离线