From 3fe77fa9a6c84bd18e81f7e670debca47d807c5a Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Wed, 24 Apr 2019 16:59:23 +0100 Subject: [PATCH] RS14100: Optimize flash reads CL: none PUBLISHED_FROM=49d4f4a3c83520fd6ec9714b74333f75f3a2aa1c --- src/common/platforms/arm/arm_nsleep100_m4.S | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/platforms/arm/arm_nsleep100_m4.S b/src/common/platforms/arm/arm_nsleep100_m4.S index ae5e0a5a..45cc32b3 100644 --- a/src/common/platforms/arm/arm_nsleep100_m4.S +++ b/src/common/platforms/arm/arm_nsleep100_m4.S @@ -38,17 +38,17 @@ mgos_nsleep100_impl: ldr r3, =mgos_nsleep100_loop_count ldr r3, [r3] mul r0, r3 -#ifdef STM32L4 +#if defined(STM32L4) mov r1, #3 #else mov r1, #6 #endif udiv r0, r0, r1 - cbz r0, xxx -lxx: + cbz r0, mgos_nsleep100_impl_out +mgos_nsleep100_impl_loop: subs r0, #1 - bne lxx -xxx: + bne mgos_nsleep100_impl_loop +mgos_nsleep100_impl_out: bx lr .align 4 .size mgos_nsleep100_impl, . - mgos_nsleep100_impl