Skip to content

If a target is restricted to single threaded mode, #2006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libraries/tests/rtos/cmsis/basic/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "mbed.h"
#include "cmsis_os.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

DigitalOut led1(LED1);
DigitalOut led2(LED2);

Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/cmsis/isr/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "mbed.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

Queue<uint32_t, 5> queue;

DigitalOut myled(LED1);
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/cmsis/mail/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "mbed.h"
#include "cmsis_os.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

typedef struct {
float voltage; /* AD result of measured voltage */
float current; /* AD result of measured current */
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/cmsis/mutex/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "mbed.h"
#include "cmsis_os.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

osMutexId stdio_mutex;
osMutexDef(stdio_mutex);

Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/cmsis/queue/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "mbed.h"
#include "cmsis_os.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

typedef struct {
float voltage; /* AD result of measured voltage */
float current; /* AD result of measured current */
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/cmsis/semaphore/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "mbed.h"
#include "cmsis_os.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

osSemaphoreId two_slots;
osSemaphoreDef(two_slots);

Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/cmsis/signals/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "mbed.h"
#include "cmsis_os.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

DigitalOut led(LED1);

void led_thread(void const *argument) {
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/cmsis/timer/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "mbed.h"
#include "cmsis_os.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

DigitalOut LEDs[4] = {
DigitalOut(LED1), DigitalOut(LED2), DigitalOut(LED3), DigitalOut(LED4)
};
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/basic/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

/*
* The stack size is defined in cmsis_os.h mainly dependent on the underlying toolchain and
* the C standard library. For GCC, ARM_STD and IAR it is defined with a size of 2048 bytes
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/file/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

DigitalOut led2(LED2);

#define SIZE 100
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/isr/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

#define QUEUE_SIZE 5
#define THREAD_DELAY 250
#define QUEUE_PUT_ISR_VALUE 128
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/mail/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

typedef struct {
float voltage; /* AD result of measured voltage */
float current; /* AD result of measured current */
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/mutex/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

#define THREAD_DELAY 50
#define SIGNALS_TO_EMIT 100

Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/queue/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

typedef struct {
float voltage; /* AD result of measured voltage */
float current; /* AD result of measured current */
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/semaphore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

#define THREAD_DELAY 75
#define SEMAPHORE_SLOTS 2
#define SEM_CHANGES 100
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/signals/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

#define SIGNALS_TO_EMIT 100
#define SIGNAL_HANDLE_DELEY 25
#define SIGNAL_SET_VALUE 0x01
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/rtos/mbed/timer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "test_env.h"
#include "rtos.h"

#if defined(MBED_RTOS_SINGLE_THREAD)
#error [NOT_SUPPORTED] test not supported
#endif

DigitalOut LEDs[4] = {
DigitalOut(LED1), DigitalOut(LED2), DigitalOut(LED3), DigitalOut(LED4)
};
Expand Down