Bartek Szatkowski
95559ad3e1
Change LPTICKER spec to allow clock freq starting at 4kHz
2018-05-25 12:32:39 -05:00
Przemyslaw Stekiel
8979212b78
tests-mbed_hal-lp_ticker: run sleep test only if SLEEP support is enabled.
2018-05-25 12:29:54 -05:00
Przemyslaw Stekiel
ea61f9887e
tests-mbed_hal-lp_ticker: Add overflow protection.
2018-05-25 12:21:16 -05:00
jeromecoutant
69b51dffaf
tests-mbed_hal-lp_ticker : increase time before deep sleep
2018-05-25 12:21:16 -05:00
Bartek Szatkowski
6e9f04bf2f
Rename DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER
...
That's to match DEVICE_USTICKER.
2018-05-25 12:20:09 -05:00
Przemyslaw Stekiel
f55f9d36fb
lp_ticker test - provide lp ticker glitch test case
...
Test that lp ticker does not glitch backwards due to an incorrectly implemented ripple counter driver.
2018-05-25 12:18:55 -05:00
Przemyslaw Stekiel
c32ccf69b1
Add tests for ticker HAL API.
2018-05-25 12:04:32 -05:00
Martin Kojtal
b30c622522
Test: deepsleep() API replacement
...
Use sleep() as entry function + check to be certain we
are entering deepsleep when required by test (should be allowed)
2017-10-05 16:43:57 +01:00
Russ Butler
47b0f31d32
Remove direct use of us and lp ticker from tests
...
Remove the direct use of the microsecond and low power ticker from
the tests. This enforces that sleep mode is properly locked when
using timers. Furthermore, this prepares the codebase for new ticker
changes which allow differing clock frequencies and timer bit widths.
2017-09-13 20:11:39 -05:00
Russ Butler
f746fc5bac
Allow lp_ticker test to coexist with TimerEvents
...
The lp_ticker test overrides the default ticker handler for the
low power ticker. This stops all other low power TimerEvents in the
system, including the ones for tickless, from getting called. Because
of this devices with tickless enabled malfunction during this test.
This patch fixes this problem by passing all lp ticker events it did
not trigger on to the TimerEvent irq handler.
2017-09-10 17:06:46 -05:00
Russ Butler
d9aff6f0dd
Prevent deeps sleep in regular sleep test case
...
Lock deep sleep before calling sleep to prevent the device from
entering deep sleep mode.
2017-09-09 20:43:35 -05:00
Vincent Coubard
c6433b018a
lp ticker test: Fix timestamp update during deepsleep test.
2017-06-01 16:31:48 +01:00
Vincent Coubard
3e24e8fa62
lp_ticker test: Capture completion time at completion point.
2017-05-31 19:13:10 +01:00
Mahadevan Mahesh
ac9668a498
Update tests to fix build failures. Also make the code similar to other tests
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-02 11:45:14 -05:00
Brian Daniels
9a4aeec1b2
Waiting before call to deepsleep to allow buffers to flush
2016-10-13 13:51:54 -05:00
svastm
cc55173329
Use lp_timer to count time in the deepsleep tests
...
Because microseconds timer can be disable during deepsleep
2016-09-08 18:09:45 +02:00
Bartek Szatkowski
7203be9e6f
Add tests for LowPowerTimeout and lp_ticker
2016-08-25 13:25:02 +01:00