mirror of https://github.com/ARMmbed/mbed-os.git
Fix timing issues found in "Flash - clock and cache test" ARMCC seemed to be inlining time_cpu_cycles() but with a different number of clock cycles in the loop, GCC worked fine.
parent
5ae8011857
commit
e36c20ffda
|
@ -53,7 +53,7 @@ static void erase_range(flash_t *flash, uint32_t addr, uint32_t size)
|
|||
}
|
||||
}
|
||||
|
||||
static int time_cpu_cycles(uint32_t cycles)
|
||||
__attribute__((noinline)) static int time_cpu_cycles(uint32_t cycles)
|
||||
{
|
||||
Timer timer;
|
||||
timer.start();
|
||||
|
|
Loading…
Reference in New Issue