Adding more [NOT_SUPPORTED] messages to tests

pull/1584/head
Brian Daniels 2016-03-02 13:13:36 -06:00
parent de3b14ec92
commit c38209f6d6
7 changed files with 35 additions and 2 deletions

View File

@ -21,6 +21,8 @@ DigitalOut indicator(LED1);
#else
#error [NOT_SUPPORTED] This test is not supported on this target
#endif
uint8_t successes = 0;

View File

@ -1,3 +1,7 @@
#if !DEVICE_INTERRUPTIN
#error [NOT_SUPPORTED] InterruptIn is not supported
#endif
#include "test_env.h"
DigitalOut myled(LED1);
@ -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

View File

@ -1,3 +1,7 @@
#if !DEVICE_INTERRUPTIN
#error [NOT_SUPPORTED] InterruptIn is not supported
#endif
#include "mbed.h"
#if defined(TARGET_LPC4088)

View File

@ -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)
@ -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) || \
@ -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)

View File

@ -1,3 +1,7 @@
#if !DEVICE_RTC
#error [NOT_SUPPORTED] RTC is not supported
#endif
#include "mbed.h"
#include "test_env.h"

View File

@ -1,3 +1,7 @@
#if !DEVICE_SLEEP
#error [NOT_SUPPORTED] Sleep is not supported
#endif
#include "test_env.h"
#if defined(TARGET_LPC4088)

View File

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