From 090fcb007f19d9761c4e6304c8c6839fbcac5a2f Mon Sep 17 00:00:00 2001 From: d-kato Date: Mon, 25 Mar 2019 20:30:12 +0900 Subject: [PATCH] Changed LOOP_SCALER of "wait_ns()" --- platform/mbed_wait_api_no_rtos.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/mbed_wait_api_no_rtos.c b/platform/mbed_wait_api_no_rtos.c index dbaa056087..27513823b3 100644 --- a/platform/mbed_wait_api_no_rtos.c +++ b/platform/mbed_wait_api_no_rtos.c @@ -75,9 +75,8 @@ void wait_us(int us) #endif #elif defined __CORTEX_A #if __CORTEX_A == 9 -// Cortex-A9 is dual-issue, so let's assume same performance as Cortex-M7. -// TODO - test. -#define LOOP_SCALER 2000 +// Cortex-A9 can dual issue for 3 cycles per iteration (SUB,NOP) = 1, (NOP,BCS) = 2 +#define LOOP_SCALER 3000 #endif #endif