You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2020/06/12 09:38:07 UTC
[mynewt-core] 02/02: hw/mcu/dialog: Small optimization
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit b28ee7de3b5d8a4a629497caf0e77e7cb84bb769
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Fri Jun 12 10:42:37 2020 +0200
hw/mcu/dialog: Small optimization
---
hw/mcu/dialog/da1469x/src/arch/cortex_m33/da1469x_m33_sleep.S | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/hw/mcu/dialog/da1469x/src/arch/cortex_m33/da1469x_m33_sleep.S b/hw/mcu/dialog/da1469x/src/arch/cortex_m33/da1469x_m33_sleep.S
index 371b528..969bd78 100644
--- a/hw/mcu/dialog/da1469x/src/arch/cortex_m33/da1469x_m33_sleep.S
+++ b/hw/mcu/dialog/da1469x/src/arch/cortex_m33/da1469x_m33_sleep.S
@@ -128,9 +128,8 @@ da1469x_m33_sleep:
/* Set SCB->SCR[SLEEPDEEP] so we can enter deep sleep */
ldr r0, =(SCB_BASE + SCB_SCR_OFFSET)
ldr r1, [r0, #0]
- mov r2, r1
- orr r2, r1, #4 /* SLEEPDEEP */
- str r2, [r0, #0]
+ orr r1, r1, #4 /* SLEEPDEEP */
+ str r1, [r0, #0]
/* Sleep! */
dsb