Skip to content

TESTS: common_tickers handle wrap-around case #6462

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c7faf4a
Add documentation for the HAL Ticker API
c1728p9 Sep 19, 2017
f239640
Add tests for ticker HAL API.
mprse Oct 2, 2017
4aae6b2
Add minor modifications of lp/us tickers tests desctiption in ticker …
mprse Oct 30, 2017
7fb2ef3
Disable boards which does not fulfil new ticker standards.
mprse Dec 19, 2017
4e9b6b7
Add DEVICE_RTC symbol check in RTC source files for NCS36510 target.
mprse Jan 8, 2018
5532784
Skip higher level ticker tests for targets with stale ticker target s…
mprse Jan 9, 2018
29e4695
Modify requirement for the ticker_init function.
mprse Jan 19, 2018
73f90fe
Modify ticker_init_test() to be consistent with the new requirement.
mprse Jan 19, 2018
febe626
Provide fix to the implementation of ticker_overflow_test test case.
mprse Jan 19, 2018
ab56365
Add free function to lp/us ticker HAL API
Jan 22, 2018
5412b6c
Add lp/us ticker free() function implementation for NRF5
Jan 15, 2018
3ca158d
Enable ticker support for K64F board.
mprse Feb 1, 2018
9c84aec
Adapt K64F us ticker driver to the new standards.
mprse Feb 1, 2018
e1633d2
Adapt K64F lp ticker driver to the new standards.
mprse Feb 2, 2018
2f53a3a
lp_us_tickers test - provide counter overflow protection
mprse Feb 8, 2018
e4bdfeb
lp_us_tickers test - add tolerance to interrupt time.
mprse Feb 8, 2018
42f77bf
lp_us_tickers test - fix count_ticks() function to give the same resu…
mprse Feb 13, 2018
6cfcd17
Skip higher level ticker tests for targets with stale ticker target s…
mprse Feb 22, 2018
4c8f182
lp_ticker test - provide lp ticker glitch test case
mprse Feb 26, 2018
f7032da
Rename DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER
bulislaw Mar 13, 2018
cc8c808
Disable Maxim boards as LP_TICKER is used in RTC and they don't respe…
bulislaw Mar 14, 2018
2480dc3
Make sure LPTICKER symbols are not used for builds without it for Nordic
bulislaw Mar 20, 2018
c0e1057
Don't use tickless if LPTICKER is not present
bulislaw Mar 20, 2018
9753cbe
Disable RF52_DK as they require LPTICKER for flash and trng
bulislaw Mar 20, 2018
c315737
Disable platfroms that fail without LPTICKER
bulislaw Mar 22, 2018
f4d1ed8
Remove nrf51_dk from supported platform
bulislaw Mar 23, 2018
458e726
Rename lp_us tests to common and hf to microsecond
bulislaw Mar 23, 2018
b2aa2dd
TESTS: common_tickers handle wrap-around case
LMESTM Mar 26, 2018
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: 4 additions & 0 deletions TESTS/events/queue/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#include "unity.h"
#include "utest.h"

#if !DEVICE_USTICKER
#error [NOT_SUPPORTED] test not supported
#endif

using namespace utest::v1;

// TEST_EQUEUE_SIZE was reduced below 1024B to fit this test to devices with small RAM (RAM <= 16kB)
Expand Down
3 changes: 3 additions & 0 deletions TESTS/events/timing/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

using namespace utest::v1;

#if !DEVICE_USTICKER
#error [NOT_SUPPORTED] test not supported
#endif

// Test delay
#ifndef TEST_EVENTS_TIMING_TIME
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbed_drivers/lp_ticker/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "unity/unity.h"


#if !DEVICE_LOWPOWERTIMER
#if !DEVICE_LPTICKER
#error [NOT_SUPPORTED] Low power ticker not supported for this target
#endif

Expand Down
4 changes: 2 additions & 2 deletions TESTS/mbed_drivers/lp_timeout/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

#if !DEVICE_LOWPOWERTIMER
#error [NOT_SUPPORTED] Low power timer not supported for this target
#if !DEVICE_LPTICKER
#error [NOT_SUPPORTED] Low power timer not supported for this target
#endif

#include "mbed.h"
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbed_drivers/lp_timer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "rtos.h"
#include "hal/us_ticker_api.h"

#if !DEVICE_LOWPOWERTIMER
#if !DEVICE_LPTICKER
#error [NOT_SUPPORTED] test not supported
#endif

Expand Down
4 changes: 4 additions & 0 deletions TESTS/mbed_drivers/race_test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#error [NOT_SUPPORTED] test not supported for single threaded enviroment
#endif

#if !DEVICE_USTICKER
#error [NOT_SUPPORTED] test not supported
#endif

using namespace utest::v1;

#define TEST_STACK_SIZE 512
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbed_drivers/rtc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "rtos.h"
#include "rtc_api.h"

#if !DEVICE_RTC
#if !DEVICE_RTC || !DEVICE_USTICKER
#error [NOT_SUPPORTED] test not supported
#endif

Expand Down
3 changes: 3 additions & 0 deletions TESTS/mbed_drivers/ticker/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#include "utest/utest.h"
#include "unity/unity.h"

#if !DEVICE_USTICKER
#error [NOT_SUPPORTED] test not supported
#endif

using utest::v1::Case;

Expand Down
4 changes: 4 additions & 0 deletions TESTS/mbed_drivers/timer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "rtos.h"
#include "hal/us_ticker_api.h"

#if !DEVICE_USTICKER
#error [NOT_SUPPORTED] test not supported
#endif

using namespace utest::v1;

extern uint32_t SystemCoreClock;
Expand Down
Loading