{"push_id":2717768096,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"1cbfa00c46cb38d1873e281c1dcee235e1623a5d","before":"1145d6bb3ce9d031070448eaebbf4cad887b0ad4","commits":[{"sha":"b1b4f6e2adba04de368e665f39139e1b3910d2e2","author":{"name":"Przemyslaw Stekiel","email":"1d381786fa074b2f2333843496828c8e4357e75f@mobica.com"},"message":"tests-mbed_drivers-lp_timer: change delay method\n\nThe test sometimes fails on NRF51_DK (test case: \"Test: LowPowerTimer - time measurement 1 ms.\") in morph tests.\n\nThe test verifies if LowPowerTimer class correctly counts elapsed time. Sometimes we got measured ~1600 us for delay 1000 us (delta 550 us).\nThe delay is performed using `wait_us()` function which for delays greater than or equal to 1 ms (our case) calls `Thread::wait((uint32_t)ms);`. This causes rescheduling and potentially can put board into sleep (deep sleep mode is disabled by `wait_us()`). For our test purposes we don't need rescheduling/sleep since this actions takes extra time and have influence on the time measurement accuracy.\nThe solution is to implement function for delay which is based on busy loop and uses us ticker. It has been verified that this solves the problem. With this fix when measurement of 1 ms is repeated 1000 times we got usually measured time equal to ~1080 us, and sometimes ~1300us (checked that this is caused by systick interrupt handling). Since this is test for drivers layer and the results are acceptable I decided to not disabling systick in the test).","distinct":true,"url":"https://api.github.com/repos/ARMmbed/mbed-os/commits/b1b4f6e2adba04de368e665f39139e1b3910d2e2"},{"sha":"1cbfa00c46cb38d1873e281c1dcee235e1623a5d","author":{"name":"Cruz Monrreal","email":"663375bc5b4c6ed13a95cc63b2dd9f1e16363f4e@arm.com"},"message":"Merge pull request #7471 from mprse/lp_timer_test_fix\n\ntests-mbed_drivers-lp_timer: change delay method","distinct":true,"url":"https://api.github.com/repos/ARMmbed/mbed-os/commits/1cbfa00c46cb38d1873e281c1dcee235e1623a5d"}]}
{"actor":{"display_login":"cmonr"}}