Merge pull request #1613 from bridadan/fixing-test-not-supported

Fixing issue with NOT_SUPPORTED messages
pull/1612/merge
Martin Kojtal 2016-03-14 15:53:25 +00:00
commit 8b5dd6eb6b
20 changed files with 46 additions and 45 deletions

View File

@ -1,3 +1,5 @@
#include "test_env.h"
#if !DEVICE_ANALOGIN #if !DEVICE_ANALOGIN
#error [NOT_SUPPORTED] AnalogIn not supported #error [NOT_SUPPORTED] AnalogIn not supported
#endif #endif
@ -6,8 +8,6 @@
#error [NOT_SUPPORTED] AnalogOut not supported #error [NOT_SUPPORTED] AnalogOut not supported
#endif #endif
#include "test_env.h"
#if defined(TARGET_K64F) | defined (TARGET_K22F) #if defined(TARGET_K64F) | defined (TARGET_K22F)
AnalogIn in(A0); AnalogIn in(A0);
AnalogOut out(DAC0_OUT); AnalogOut out(DAC0_OUT);

View File

@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"
#if !DEVICE_ANALOGIN #if !DEVICE_ANALOGIN
#error [NOT_SUPPORTED] AnalogIn not supported #error [NOT_SUPPORTED] AnalogIn not supported
#endif #endif
#include "mbed.h"
#include "test_env.h"
AnalogIn pot1(A0); AnalogIn pot1(A0);
AnalogIn pot2(A1); AnalogIn pot2(A1);

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_CAN #if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported #error [NOT_SUPPORTED] CAN not supported
#endif #endif
#include "mbed.h"
Ticker ticker; Ticker ticker;
DigitalOut led1(LED1); DigitalOut led1(LED1);
DigitalOut led2(LED2); DigitalOut led2(LED2);

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_CAN #if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported #error [NOT_SUPPORTED] CAN not supported
#endif #endif
#include "mbed.h"
Ticker ticker; Ticker ticker;
DigitalOut led1(LED1); DigitalOut led1(LED1);
DigitalOut led2(LED2); DigitalOut led2(LED2);

View File

@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"
#if !DEVICE_CAN #if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported #error [NOT_SUPPORTED] CAN not supported
#endif #endif
#include "mbed.h"
#include "test_env.h"
#if defined(TARGET_LPC1549) #if defined(TARGET_LPC1549)
CAN can1(D9, D8); CAN can1(D9, D8);
#elif defined(TARGET_LPC1768) || defined(TARGET_LPC4088) #elif defined(TARGET_LPC1768) || defined(TARGET_LPC4088)

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_LOCALFILESYSTEM #if !DEVICE_LOCALFILESYSTEM
#error [NOT_SUPPORTED] LocalFileSystem not supported #error [NOT_SUPPORTED] LocalFileSystem not supported
#endif #endif
#include "mbed.h"
void led_blink(PinName led) { void led_blink(PinName led) {
DigitalOut myled(led); DigitalOut myled(led);
while (1) { while (1) {

View File

@ -1,8 +1,9 @@
#include "mbed.h"
#if !DEVICE_LOCALFILESYSTEM #if !DEVICE_LOCALFILESYSTEM
#error [NOT_SUPPORTED] LocalFileSystem not supported #error [NOT_SUPPORTED] LocalFileSystem not supported
#endif #endif
#include "mbed.h"
#include "TextLCD.h" #include "TextLCD.h"
int main() { int main() {

View File

@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"
#if !DEVICE_I2C #if !DEVICE_I2C
#error [NOT_SUPPORTED] I2C is not supported #error [NOT_SUPPORTED] I2C is not supported
#endif #endif
#include "mbed.h"
#include "test_env.h"
#define SIZE (10) #define SIZE (10)
#define ADDR (0x90) #define ADDR (0x90)

View File

@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"
#if !DEVICE_I2CSLAVE #if !DEVICE_I2CSLAVE
#error [NOT_SUPPORTED] I2C Slave is not supported #error [NOT_SUPPORTED] I2C Slave is not supported
#endif #endif
#include "mbed.h"
#include "test_env.h"
#define SIZE (10) #define SIZE (10)
#define ADDR (0x90) #define ADDR (0x90)

View File

@ -1,9 +1,9 @@
#include "test_env.h"
#if !DEVICE_INTERRUPTIN #if !DEVICE_INTERRUPTIN
#error [NOT_SUPPORTED] InterruptIn is not supported #error [NOT_SUPPORTED] InterruptIn is not supported
#endif #endif
#include "test_env.h"
DigitalOut myled(LED1); DigitalOut myled(LED1);
DigitalOut led2(LED2); DigitalOut led2(LED2);

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_INTERRUPTIN #if !DEVICE_INTERRUPTIN
#error [NOT_SUPPORTED] InterruptIn is not supported #error [NOT_SUPPORTED] InterruptIn is not supported
#endif #endif
#include "mbed.h"
#if defined(TARGET_LPC4088) #if defined(TARGET_LPC4088)
InterruptIn button(p18); InterruptIn button(p18);
InterruptIn button1(p17); InterruptIn button1(p17);

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_PORTOUT #if !DEVICE_PORTOUT
#error [NOT_SUPPORTED] PortOut is not supported #error [NOT_SUPPORTED] PortOut is not supported
#endif #endif
#include "mbed.h"
# if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC2460) # if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC2460)
# define LED_PORT Port1 # define LED_PORT Port1
# define LED1 (1 << 18) // P1.18 # define LED1 (1 << 18) // P1.18

View File

@ -1,3 +1,5 @@
#include "test_env.h"
#if !DEVICE_PORTIN #if !DEVICE_PORTIN
#error [NOT_SUPPORTED] PortIn is not supported #error [NOT_SUPPORTED] PortIn is not supported
#endif #endif
@ -6,8 +8,6 @@
#error [NOT_SUPPORTED] PortOut is not supported #error [NOT_SUPPORTED] PortOut is not supported
#endif #endif
#include "test_env.h"
#if defined(TARGET_K64F) || defined(TARGET_KL05Z) #if defined(TARGET_K64F) || defined(TARGET_KL05Z)
#define P1_1 (1 << 16) #define P1_1 (1 << 16)
#define P1_2 (1 << 17) #define P1_2 (1 << 17)

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_SEMIHOST #if !DEVICE_SEMIHOST
#error [NOT_SUPPORTED] Semihost not supported #error [NOT_SUPPORTED] Semihost not supported
#endif #endif
#include "mbed.h"
Serial pc(USBTX, USBRX); Serial pc(USBTX, USBRX);
extern "C" void mbed_reset(); extern "C" void mbed_reset();

View File

@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"
#if !DEVICE_RTC #if !DEVICE_RTC
#error [NOT_SUPPORTED] RTC is not supported #error [NOT_SUPPORTED] RTC is not supported
#endif #endif
#include "mbed.h"
#include "test_env.h"
#define CUSTOM_TIME 1256729737 #define CUSTOM_TIME 1256729737
int main() { int main() {

View File

@ -1,9 +1,9 @@
#include "test_env.h"
#if !DEVICE_SLEEP #if !DEVICE_SLEEP
#error [NOT_SUPPORTED] Sleep is not supported #error [NOT_SUPPORTED] Sleep is not supported
#endif #endif
#include "test_env.h"
#if defined(TARGET_LPC4088) #if defined(TARGET_LPC4088)
InterruptIn wkp(P2_10); InterruptIn wkp(P2_10);
#elif defined(TARGET_K22F) #elif defined(TARGET_K22F)

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_SLEEP #if !DEVICE_SLEEP
#error [NOT_SUPPORTED] Sleep is not supported #error [NOT_SUPPORTED] Sleep is not supported
#endif #endif
#include "mbed.h"
DigitalOut led1(LED1); DigitalOut led1(LED1);
DigitalOut led2(LED2); DigitalOut led2(LED2);
Timeout to1; Timeout to1;

View File

@ -1,10 +1,10 @@
#include "mbed.h"
#include "test_env.h"
#if !DEVICE_SPI #if !DEVICE_SPI
#error [NOT_SUPPORTED] SPI not supported #error [NOT_SUPPORTED] SPI not supported
#endif #endif
#include "mbed.h"
#include "test_env.h"
#if defined(TARGET_KL25Z) #if defined(TARGET_KL25Z)
SPI spi(PTD2, PTD3, PTD1); // mosi, miso, sclk SPI spi(PTD2, PTD3, PTD1); // mosi, miso, sclk
DigitalOut cs(PTA13); DigitalOut cs(PTA13);

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_SPISLAVE #if !DEVICE_SPISLAVE
#error [NOT_SUPPORTED] SPI Slave not supported #error [NOT_SUPPORTED] SPI Slave not supported
#endif #endif
#include "mbed.h"
#if defined(TARGET_KL25Z) #if defined(TARGET_KL25Z)
SPISlave device(PTD2, PTD3, PTD1, PTD0); // mosi, miso, sclk, ssel SPISlave device(PTD2, PTD3, PTD1, PTD0); // mosi, miso, sclk, ssel
#elif defined(TARGET_nRF51822) #elif defined(TARGET_nRF51822)

View File

@ -1,9 +1,9 @@
#include "mbed.h"
#if !DEVICE_LOCALFILESYSTEM #if !DEVICE_LOCALFILESYSTEM
#error [NOT_SUPPORTED] LocalFileSystem not supported #error [NOT_SUPPORTED] LocalFileSystem not supported
#endif #endif
#include "mbed.h"
#define TEST_STDIO 0 #define TEST_STDIO 0
int main() { int main() {