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:05 UTC

[mynewt-core] branch master updated (2b667ec -> b28ee7d)

This is an automated email from the ASF dual-hosted git repository.

andk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


    from 2b667ec  hw/bsp/dialog: Start flash loader with XTAL32M
     new 4cfb440  hw/mcu/dialog: Fix retaining SCB state in deep sleep
     new b28ee7d  hw/mcu/dialog: Small optimization

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 hw/mcu/dialog/da1469x/src/arch/cortex_m33/da1469x_m33_sleep.S | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)


[mynewt-core] 02/02: hw/mcu/dialog: Small optimization

Posted by an...@apache.org.
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


[mynewt-core] 01/02: hw/mcu/dialog: Fix retaining SCB state in deep sleep

Posted by an...@apache.org.
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 4cfb4401a2f90a9a00f59e2ede59d1927a019b89
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Jun 10 20:28:51 2020 +0200

    hw/mcu/dialog: Fix retaining SCB state in deep sleep
    
    SCB->CPACR value is loaded using r1 register as a base address, but
    there was no proper value set there.
---
 hw/mcu/dialog/da1469x/src/arch/cortex_m33/da1469x_m33_sleep.S | 4 ++--
 1 file changed, 2 insertions(+), 2 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 db1fea2..371b528 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
@@ -99,9 +99,9 @@ da1469x_m33_sleep:
 
 /* Save SCB state (SCR, CCR, SHPR and SHCSR) */
     ldr     r0, =(SCB_BASE + SCB_SCR_OFFSET)
-    ldmia   r0!, {r4-r9}
+    ldmia   r0, {r4-r9}
     and     r9, r9, #(SCB_SHCSR_MASK)
-    ldr     r10, [r1, #(SCB_CPACR_OFFSET - SCB_SCR_OFFSET)]
+    ldr     r10, [r0, #(SCB_CPACR_OFFSET - SCB_SCR_OFFSET)]
     and     r10, r10, #(SCB_CPACR_MASK)
     stmia   r3!, {r4-r10}