Skip to content

Commit ff41a10

Browse files
authored
Merge pull request #6110 from geky/equeue-fix-no-rtos
equeue: Removed RTOS dependencies with RTOS not present
2 parents 0ceecb9 + 9755cca commit ff41a10

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ matrix:
112112
# Check that example compiles
113113
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' $EVENTS/README.md > main.cpp
114114
- python tools/make.py -t GCC_ARM -m K64F --source=. --build=BUILD/K64F/GCC_ARM -j0
115+
# Check that example compiles without rtos
116+
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' $EVENTS/README.md > main.cpp
117+
- rm -r rtos features/netsocket features/frameworks BUILD
118+
- python tools/make.py -t GCC_ARM -m DISCO_F401VC --source=. --build=BUILD/DISCO_F401VC/GCC_ARM -j0
115119
# Run local equeue tests
116120
- make -C $EVENTS/equeue test
117121

events/equeue/equeue_platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern "C" {
4949
// Platform includes
5050
#if defined(EQUEUE_PLATFORM_POSIX)
5151
#include <pthread.h>
52-
#elif defined(EQUEUE_PLATFORM_MBED)
52+
#elif defined(EQUEUE_PLATFORM_MBED) && defined(MBED_CONF_RTOS_PRESENT)
5353
#include "cmsis_os2.h"
5454
#include "mbed_rtos_storage.h"
5555
#endif

0 commit comments

Comments
 (0)