From 81fc8b4f5da4c9c5652c7f127c7d5cc598c1fe23 Mon Sep 17 00:00:00 2001 From: Tymoteusz Bloch Date: Mon, 1 Jul 2019 14:34:43 +0200 Subject: [PATCH] Wait_ns () internal delay loop code alignment to 16 for decreasing execution time. --- platform/mbed_wait_api_no_rtos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mbed_wait_api_no_rtos.c b/platform/mbed_wait_api_no_rtos.c index 14d13a260a..f6b317df4b 100644 --- a/platform/mbed_wait_api_no_rtos.c +++ b/platform/mbed_wait_api_no_rtos.c @@ -132,7 +132,7 @@ void wait_us(int us) * the hassle of handling multiple toolchains with different assembler * syntax. */ -MBED_ALIGN(8) +MBED_ALIGN(16) static const uint16_t delay_loop_code[] = { 0x1E40, // SUBS R0,R0,#1 0xBF00, // NOP