mirror of https://github.com/ARMmbed/mbed-os.git
Wait_ns () internal delay loop code alignment to 16 for decreasing execution time.
parent
cd1c7863b7
commit
81fc8b4f5d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue