Wait_ns () internal delay loop code alignment to 16 for decreasing execution time.

pull/11023/head
Tymoteusz Bloch 2019-07-01 14:34:43 +02:00 committed by Evelyne Donnaes
parent cd1c7863b7
commit 81fc8b4f5d
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ void wait_us(int us)
* the hassle of handling multiple toolchains with different assembler * the hassle of handling multiple toolchains with different assembler
* syntax. * syntax.
*/ */
MBED_ALIGN(8) MBED_ALIGN(16)
static const uint16_t delay_loop_code[] = { static const uint16_t delay_loop_code[] = {
0x1E40, // SUBS R0,R0,#1 0x1E40, // SUBS R0,R0,#1
0xBF00, // NOP 0xBF00, // NOP