Skip to content

Proof of concept lp ticker fix #6473

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
43 commits
Select commit Hold shift + click to select a range
92453fc
Add documentation for the HAL Ticker API
c1728p9 Sep 19, 2017
cf3a550
Add tests for ticker HAL API.
mprse Oct 2, 2017
fbb46d1
Add minor modifications of lp/us tickers tests desctiption in ticker …
mprse Oct 30, 2017
502af34
Disable boards which does not fulfil new ticker standards.
mprse Dec 19, 2017
51f6aba
Add DEVICE_RTC symbol check in RTC source files for NCS36510 target.
mprse Jan 8, 2018
83086d0
Skip higher level ticker tests for targets with stale ticker target s…
mprse Jan 9, 2018
0c01560
Modify requirement for the ticker_init function.
mprse Jan 19, 2018
d47f21f
Modify ticker_init_test() to be consistent with the new requirement.
mprse Jan 19, 2018
f386a5e
Provide fix to the implementation of ticker_overflow_test test case.
mprse Jan 19, 2018
1e110f3
Add free function to lp/us ticker HAL API
Jan 22, 2018
6817f9a
Add lp/us ticker free() function implementation for NRF5
Jan 15, 2018
4eb017c
Enable ticker support for K64F board.
mprse Feb 1, 2018
5a6ce23
Adapt K64F us ticker driver to the new standards.
mprse Feb 1, 2018
a7ffc29
Adapt K64F lp ticker driver to the new standards.
mprse Feb 2, 2018
f891d5f
lp_us_tickers test - provide counter overflow protection
mprse Feb 8, 2018
0ee0404
lp_us_tickers test - add tolerance to interrupt time.
mprse Feb 8, 2018
610e6bd
lp_us_tickers test - fix count_ticks() function to give the same resu…
mprse Feb 13, 2018
cce0890
Skip higher level ticker tests for targets with stale ticker target s…
mprse Feb 22, 2018
96637dc
lp_ticker test - provide lp ticker glitch test case
mprse Feb 26, 2018
c7c6f7c
Rename DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER
bulislaw Mar 13, 2018
e1d4220
Disable Maxim boards as LP_TICKER is used in RTC and they don't respe…
bulislaw Mar 14, 2018
074266b
Make sure LPTICKER symbols are not used for builds without it for Nordic
bulislaw Mar 20, 2018
4957484
Don't use tickless if LPTICKER is not present
bulislaw Mar 20, 2018
fd8c3fc
Disable RF52_DK as they require LPTICKER for flash and trng
bulislaw Mar 20, 2018
cd231cf
Disable platfroms that fail without LPTICKER
bulislaw Mar 22, 2018
789589e
Remove nrf51_dk from supported platform
bulislaw Mar 23, 2018
cdf32c7
Rename lp_us tests to common and hf to microsecond
bulislaw Mar 23, 2018
b703a52
Fix rebase error
bulislaw Mar 27, 2018
6daa7fc
Disable failing MTB_LAIRD_BL652 board
bulislaw Mar 27, 2018
4d7167c
lp_us_tickers test: fix `increment test` for slow boards
mprse Feb 27, 2018
6c960b2
lp_us_tickers test: fix overflow protection
mprse Feb 27, 2018
48cae05
lp_us_tickers test: call overflow_protect function in test functions …
mprse Mar 27, 2018
c9ecc9b
lp_us_tickers test: provide minor fixes after review
mprse Mar 9, 2018
abb9f6d
Re-implement RTC for Silicon Labs targets
stevew817 Mar 26, 2018
fdb4a8e
Re-implement us_ticker and lp_ticker for Silicon Labs targets
stevew817 Mar 27, 2018
2153046
Merge pull request #6471 from SiliconLabs/feature-hal-spec-ticker
cmonr Mar 29, 2018
ee596cf
Update STM32 16 bits us_tickers in line with new mbed HAL
LMESTM Mar 26, 2018
bba366d
Make us_ticker common between 16 and 32 bits counters
LMESTM Mar 26, 2018
3821b54
Activate USTICKER device feature for all STM32 targets
LMESTM Mar 26, 2018
48d8c77
Add handling for synchronized low power tickers
c1728p9 Mar 27, 2018
eecc67b
Update idle loop to reduce calls to suspend
c1728p9 Mar 27, 2018
81591b0
Fix deep sleep locking for Timeout class
c1728p9 Mar 27, 2018
436f1d1
Low power ticker wrapper fix
c1728p9 Apr 16, 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
2 changes: 1 addition & 1 deletion TESTS/mbed_drivers/timeout/timeout_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void test_sleep(void)
timeout.detach();
}

#if DEVICE_LOWPOWERTIMER
#if DEVICE_LPTICKER
/** Template for tests: timeout during deepsleep
*
* Test timeout during deepsleep
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