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:20:14 UTC
[mynewt-core] 01/01: hw/mcu/dialog: Add syscfg to allow setting a
custom DMA_IRQn priority.
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 5a2e3b6f1d97483e42ccbf9539c99933de2fea58
Author: Ben McCrea <bm...@juul.com>
AuthorDate: Wed Sep 2 14:06:50 2020 -0700
hw/mcu/dialog: 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