Fix Greentea test code

Mark mbed-os-tests-mbed_hal-common_tickers/time_cpu_cycles not in-lined.
Otherwise, time_cpu_cycles may be in-lined somewhere and takes different
CPU cycles on invocation.
pull/7518/head
ccli8 2018-05-24 14:33:05 +08:00 committed by Cruz Monrreal II
parent 3034630f20
commit 65a15a3dd3
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ unsigned int ticker_overflow_delta;
/* Auxiliary function to count ticker ticks elapsed during execution of N cycles of empty while loop.
* Parameter <step> is used to disable compiler optimisation. */
MBED_NOINLINE
uint32_t count_ticks(uint32_t cycles, uint32_t step)
{
register uint32_t reg_cycles = cycles;