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.

pull/4760/head
Chris 2017-06-29 09:51:44 +01:00 committed by adbridge
parent 5ae8011857
commit e36c20ffda
1 changed files with 1 additions and 1 deletions

View File

@ -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 timer;
timer.start(); timer.start();