Skip to content

Commit 7ee9b0e

Browse files
committed
Disable boards which does not fulfil new sleep standards.
These boards will be re-enabled when sleep driver for them is ready. Note: This operation is done by removing "SLEEP" feature from target's "device_has" list (in targets.json config file). For NRF52_DK removing of "SLEEP" feature causes some timing issues which have influence on tests. In order to successfully disable this board we need to disable also related features like "USTICKER", "LOWPOERTIMER" and slightly modify ticker tests, so they will not be executed if usticker support is not available (by default all targets support us ticker).
1 parent 71c8485 commit 7ee9b0e

File tree

3 files changed

+119
-110
lines changed

3 files changed

+119
-110
lines changed

TESTS/mbed_drivers/ticker/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
#include "utest/utest.h"
1919
#include "unity/unity.h"
2020

21+
#if !DEVICE_USTICKER
22+
#error [NOT_SUPPORTED] test not supported
23+
#endif
2124

2225
using utest::v1::Case;
2326

TESTS/mbed_drivers/timer/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "rtos.h"
2323
#include "hal/us_ticker_api.h"
2424

25+
#if !DEVICE_USTICKER
26+
#error [NOT_SUPPORTED] test not supported
27+
#endif
28+
2529
using namespace utest::v1;
2630

2731
extern uint32_t SystemCoreClock;

0 commit comments

Comments
 (0)