mbed-os/TESTS/mbed_hal
Przemyslaw Stekiel 832e8b3f36 tests-mbed_hal-lp_ticker: change implementation of the delay before deep-sleep.
Serial buffer must be flushed before entering deep sleep mode. In the test this is done by the additional delay which is implemented on the busy loop which decrements given value down to 0 (`void wait_cycles(volatile unsigned int cycles)`). This solution is not appropriate since it is very target specific and the cycles value has been already increased few times. Additionally very big number of loop cycles which is suitable for fast targets may take much longer on slower boards and results in test timeout.
It has been verified that 20ms is sufficient delay for the green-tea transmission. In this test we cannot simply use `wait_ms(20)` since this potentially may put board to sleep and wake up using lp ticker. The test re-initialzies the lp ticker(disables ticker interrupt) and this operation may break the schedule and time tracing by the upper layer. But we can use us ticker which is not affected by this test. The solution is to add a delay routine based on busy loop and us ticker only. This way are able to wait exactly 20 ms.
2018-07-12 13:29:13 +02:00
..
common_tickers Merge pull request #7364 from 0xc0170/fix_storage_rtos 2018-07-05 14:29:46 -05:00
common_tickers_freq tests-mbed_hal-common_tickers_freq : correct overflowCounter value 2018-05-25 12:22:06 -05:00
crc HAL CRC test: Fix out of memory issue on NULCLEO_F070RB, NULCLEO_F072RB/IAR 2018-06-07 15:06:24 +02:00
critical_section Reorganize TARGET_MCU_NRF51822_UNIFIED directories 2018-05-08 10:10:01 -07:00
flash/functional_tests Fix flash_program_page API in LPC boards. 2018-06-12 15:09:05 +03:00
lp_ticker tests-mbed_hal-lp_ticker: change implementation of the delay before deep-sleep. 2018-07-12 13:29:13 +02:00
rtc Rename LOWPOWERTIMER to LPTICKER 2018-05-25 13:06:56 -05:00
rtc_reset tests-mbed_hal-rtc_reset: Add ack from the device after each command is executed 2018-05-25 12:52:02 -05:00
rtc_time Add tests for extended RTC. 2017-12-05 07:53:41 +01:00
rtc_time_conv RTC time conversion test - reduce number of tested years in order to reduce test execution time. 2018-01-08 10:14:54 +01:00
sleep Enlarge wait time for flushing serial buffer in Greentea test code 2018-06-21 15:55:14 +08:00
sleep_manager test: add sleep manager tests 2017-09-07 15:35:07 +01:00
sleep_manager_racecondition Skip higher level ticker tests for targets with stale ticker target specific drivers. 2018-05-25 12:17:49 -05:00
ticker Ticker test: Add ticker_irq_handler call because the time reaching the previous interrupt_timestamp would have triggered one anyway 2018-05-30 11:36:21 +02:00
us_ticker Add tests for ticker HAL API. 2018-05-25 12:04:32 -05:00