Skip to content

Commit bbfee59

Browse files
committed
Changed LOOP_SCALER of "wait_ns()"
1 parent 82c8684 commit bbfee59

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

platform/mbed_wait_api_no_rtos.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ void wait_us(int us)
7575
#endif
7676
#elif defined __CORTEX_A
7777
#if __CORTEX_A == 9
78-
// Cortex-A9 is dual-issue, so let's assume same performance as Cortex-M7.
79-
// TODO - test.
80-
#define LOOP_SCALER 2000
78+
// Cortex-A9 can dual issue for 3 cycles per iteration (SUB,NOP) = 1, (NOP,BCS) = 2
79+
#define LOOP_SCALER 3000
8180
#endif
8281
#endif
8382

0 commit comments

Comments
 (0)