Skip to content
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

Adding more [NOT_SUPPORTED] messages to tests #1584

Merged
merged 1 commit into from
Mar 3, 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
2 changes: 2 additions & 0 deletions libraries/tests/mbed/analog_in/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ DigitalOut indicator(LED1);

#else

#error [NOT_SUPPORTED] This test is not supported on this target

#endif

uint8_t successes = 0;
Expand Down
6 changes: 5 additions & 1 deletion libraries/tests/mbed/interruptin/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if !DEVICE_INTERRUPTIN
#error [NOT_SUPPORTED] InterruptIn is not supported
#endif

#include "test_env.h"

DigitalOut myled(LED1);
Expand Down Expand Up @@ -101,7 +105,7 @@ void in_handler() {
#define PIN_OUT PB02
#define PIN_IN PB03

#elif defined(TARGET_SAML21J18A)
#elif defined(TARGET_SAML21J18A)
#define PIN_OUT PA02
#define PIN_IN PA03

Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/mbed/interruptin_2/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if !DEVICE_INTERRUPTIN
#error [NOT_SUPPORTED] InterruptIn is not supported
#endif

#include "mbed.h"

#if defined(TARGET_LPC4088)
Expand Down
13 changes: 12 additions & 1 deletion libraries/tests/mbed/portout_portin/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#if !DEVICE_PORTIN
#error [NOT_SUPPORTED] PortIn is not supported
#endif

#if !DEVICE_PORTOUT
#error [NOT_SUPPORTED] PortOut is not supported
#endif

#include "test_env.h"

#if defined(TARGET_K64F) || defined(TARGET_KL05Z)
Expand Down Expand Up @@ -90,7 +98,7 @@
#define P2_1 (1 << 1) // PA_1
#define P2_2 (1 << 2) // PA_2
#define PORT_2 PortA

#elif defined(TARGET_NUCLEO_F030R8) || \
defined(TARGET_NUCLEO_F070RB) || \
defined(TARGET_NUCLEO_F072RB) || \
Expand Down Expand Up @@ -176,6 +184,9 @@
#define P2_2 (1 << 1) /*PB01*/
#define PORT_2 PortB

#else
#error [NOT_SUPPORTED] This test is not supported on this target

#endif

#define MASK_1 (P1_1 | P1_2)
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/mbed/rtc/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if !DEVICE_RTC
#error [NOT_SUPPORTED] RTC is not supported
#endif

#include "mbed.h"
#include "test_env.h"

Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/mbed/sleep/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if !DEVICE_SLEEP
#error [NOT_SUPPORTED] Sleep is not supported
#endif

#include "test_env.h"

#if defined(TARGET_LPC4088)
Expand Down
4 changes: 4 additions & 0 deletions libraries/tests/mbed/sleep_timeout/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if !DEVICE_SLEEP
#error [NOT_SUPPORTED] Sleep is not supported
#endif

#include "mbed.h"

DigitalOut led1(LED1);
Expand Down