Skip to content

Fixing issue with NOT_SUPPORTED messages #1613

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
Mar 14, 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: 2 additions & 2 deletions libraries/tests/mbed/analog/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "test_env.h"

#if !DEVICE_ANALOGIN
#error [NOT_SUPPORTED] AnalogIn not supported
#endif
Expand All @@ -6,8 +8,6 @@
#error [NOT_SUPPORTED] AnalogOut not supported
#endif

#include "test_env.h"

#if defined(TARGET_K64F) | defined (TARGET_K22F)
AnalogIn in(A0);
AnalogOut out(DAC0_OUT);
Expand Down
6 changes: 3 additions & 3 deletions libraries/tests/mbed/analog_pot/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"

#if !DEVICE_ANALOGIN
#error [NOT_SUPPORTED] AnalogIn not supported
#endif

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

AnalogIn pot1(A0);
AnalogIn pot2(A1);

Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/can/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

#if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported
#endif

#include "mbed.h"

Ticker ticker;
DigitalOut led1(LED1);
DigitalOut led2(LED2);
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/can_interrupt/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

#if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported
#endif

#include "mbed.h"

Ticker ticker;
DigitalOut led1(LED1);
DigitalOut led2(LED2);
Expand Down
6 changes: 3 additions & 3 deletions libraries/tests/mbed/can_loopback/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"

#if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported
#endif

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

#if defined(TARGET_LPC1549)
CAN can1(D9, D8);
#elif defined(TARGET_LPC1768) || defined(TARGET_LPC4088)
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/dir/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

#if !DEVICE_LOCALFILESYSTEM
#error [NOT_SUPPORTED] LocalFileSystem not supported
#endif

#include "mbed.h"

void led_blink(PinName led) {
DigitalOut myled(led);
while (1) {
Expand Down
3 changes: 2 additions & 1 deletion libraries/tests/mbed/freopen/main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include "mbed.h"

#if !DEVICE_LOCALFILESYSTEM
#error [NOT_SUPPORTED] LocalFileSystem not supported
#endif

#include "mbed.h"
#include "TextLCD.h"

int main() {
Expand Down
6 changes: 3 additions & 3 deletions libraries/tests/mbed/i2c_master/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"

#if !DEVICE_I2C
#error [NOT_SUPPORTED] I2C is not supported
#endif

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

#define SIZE (10)
#define ADDR (0x90)

Expand Down
6 changes: 3 additions & 3 deletions libraries/tests/mbed/i2c_slave/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"

#if !DEVICE_I2CSLAVE
#error [NOT_SUPPORTED] I2C Slave is not supported
#endif

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

#define SIZE (10)
#define ADDR (0x90)

Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/interruptin/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "test_env.h"

#if !DEVICE_INTERRUPTIN
#error [NOT_SUPPORTED] InterruptIn is not supported
#endif

#include "test_env.h"

DigitalOut myled(LED1);
DigitalOut led2(LED2);

Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/interruptin_2/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

#if !DEVICE_INTERRUPTIN
#error [NOT_SUPPORTED] InterruptIn is not supported
#endif

#include "mbed.h"

#if defined(TARGET_LPC4088)
InterruptIn button(p18);
InterruptIn button1(p17);
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/portout/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

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

#include "mbed.h"

# if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC2460)
# define LED_PORT Port1
# define LED1 (1 << 18) // P1.18
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/portout_portin/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "test_env.h"

#if !DEVICE_PORTIN
#error [NOT_SUPPORTED] PortIn is not supported
#endif
Expand All @@ -6,8 +8,6 @@
#error [NOT_SUPPORTED] PortOut is not supported
#endif

#include "test_env.h"

#if defined(TARGET_K64F) || defined(TARGET_KL05Z)
#define P1_1 (1 << 16)
#define P1_2 (1 << 17)
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/reset/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

#if !DEVICE_SEMIHOST
#error [NOT_SUPPORTED] Semihost not supported
#endif

#include "mbed.h"

Serial pc(USBTX, USBRX);

extern "C" void mbed_reset();
Expand Down
6 changes: 3 additions & 3 deletions libraries/tests/mbed/rtc/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"

#if !DEVICE_RTC
#error [NOT_SUPPORTED] RTC is not supported
#endif

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

#define CUSTOM_TIME 1256729737

int main() {
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/sleep/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "test_env.h"

#if !DEVICE_SLEEP
#error [NOT_SUPPORTED] Sleep is not supported
#endif

#include "test_env.h"

#if defined(TARGET_LPC4088)
InterruptIn wkp(P2_10);
#elif defined(TARGET_K22F)
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/sleep_timeout/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

#if !DEVICE_SLEEP
#error [NOT_SUPPORTED] Sleep is not supported
#endif

#include "mbed.h"

DigitalOut led1(LED1);
DigitalOut led2(LED2);
Timeout to1;
Expand Down
6 changes: 3 additions & 3 deletions libraries/tests/mbed/spi_master/main.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"

#if !DEVICE_SPI
#error [NOT_SUPPORTED] SPI not supported
#endif

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

#if defined(TARGET_KL25Z)
SPI spi(PTD2, PTD3, PTD1); // mosi, miso, sclk
DigitalOut cs(PTA13);
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/spi_slave/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

#if !DEVICE_SPISLAVE
#error [NOT_SUPPORTED] SPI Slave not supported
#endif

#include "mbed.h"

#if defined(TARGET_KL25Z)
SPISlave device(PTD2, PTD3, PTD1, PTD0); // mosi, miso, sclk, ssel
#elif defined(TARGET_nRF51822)
Expand Down
4 changes: 2 additions & 2 deletions libraries/tests/mbed/stdio_benchmark/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "mbed.h"

#if !DEVICE_LOCALFILESYSTEM
#error [NOT_SUPPORTED] LocalFileSystem not supported
#endif

#include "mbed.h"

#define TEST_STDIO 0

int main() {
Expand Down