You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by be...@apache.org on 2020/09/02 21:19:29 UTC

[mynewt-core] branch feature/da1469x-dma-prio updated (9576453 -> 270507d)

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

benmccrea pushed a change to branch feature/da1469x-dma-prio
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


 discard 9576453  mcu/dialog
     new 270507d  da1469x: Add syscfg to allow setting a custom DMA_IRQn priority.

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (9576453)
            \
             N -- N -- N   refs/heads/feature/da1469x-dma-prio (270507d)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 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:


[mynewt-core] 01/01: da1469x: Add syscfg to allow setting a custom DMA_IRQn priority.

Posted by be...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

benmccrea pushed a commit to branch feature/da1469x-dma-prio
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 270507dbcc19b0e3a1307b46c1143f01e57de665
Author: Ben McCrea <bm...@juul.com>
AuthorDate: Wed Sep 2 14:06:50 2020 -0700

    da1469x: Add syscfg to allow setting a custom DMA_IRQn priority.
---
 hw/mcu/dialog/da1469x/src/da1469x_dma.c | 1 +
 hw/mcu/dialog/da1469x/syscfg.yml        | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/hw/mcu/dialog/da1469x/src/da1469x_dma.c b/hw/mcu/dialog/da1469x/src/da1469x_dma.c
index bff64cb..ea970c0 100644
--- a/hw/mcu/dialog/da1469x/src/da1469x_dma.c
+++ b/hw/mcu/dialog/da1469x/src/da1469x_dma.c
@@ -110,6 +110,7 @@ da1469x_dma_init(void)
 {
     NVIC_DisableIRQ(DMA_IRQn);
     NVIC_SetVector(DMA_IRQn, (uint32_t)dma_handler);
+    NVIC_SetPriority(DMA_IRQn, MYNEWT_VAL(MCU_DMA_IRQ_PRIO));
 }
 
 struct da1469x_dma_regs *
diff --git a/hw/mcu/dialog/da1469x/syscfg.yml b/hw/mcu/dialog/da1469x/syscfg.yml
index 01c5993..0671504 100644
--- a/hw/mcu/dialog/da1469x/syscfg.yml
+++ b/hw/mcu/dialog/da1469x/syscfg.yml
@@ -92,6 +92,12 @@ syscfg.defs:
             Used internally by the newt tool.
         value: 1
 
+    MCU_DMA_IRQ_PRIO:
+        description: >
+            Specifies the NVIC interrupt priority to assign for the DMA_IRQn 
+            interrupt.
+        value: 15
+
     RAM_RESIDENT:
         description: 'Compile app to be loaded to RAM'
         value: 0