Skip to content

Commit 035221b

Browse files
Wait_ns () internal delay loop code alignment to 16 for decreasing execution time.
1 parent 279925b commit 035221b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/mbed_wait_api_no_rtos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void wait_us(int us)
132132
* the hassle of handling multiple toolchains with different assembler
133133
* syntax.
134134
*/
135-
MBED_ALIGN(8)
135+
MBED_ALIGN(16)
136136
static const uint16_t delay_loop_code[] = {
137137
0x1E40, // SUBS R0,R0,#1
138138
0xBF00, // NOP

0 commit comments

Comments
 (0)