This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 1d0fee4 hw/mcu/dialog: Fix size of flag variables when
MCU_DMA_CHAN_MAX > 8
1d0fee4 is described below
commit 1d0fee43be929bc9910dbf258d0c05078230b6d7
Author: Ben McCrea <[email protected]>
AuthorDate: Wed Sep 2 13:57:08 2020 -0700
hw/mcu/dialog: Fix size of flag variables when MCU_DMA_CHAN_MAX > 8
---
hw/mcu/dialog/da1469x/src/da1469x_dma.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/mcu/dialog/da1469x/src/da1469x_dma.c
b/hw/mcu/dialog/da1469x/src/da1469x_dma.c
index bff64cb..b42c618 100644
--- a/hw/mcu/dialog/da1469x/src/da1469x_dma.c
+++ b/hw/mcu/dialog/da1469x/src/da1469x_dma.c
@@ -46,11 +46,11 @@ struct da1469x_dma_interrupt_cfg {
};
#if (MCU_DMA_CHAN_MAX) > 8
-static uint8_t g_da1469x_dma_acquired;
-static uint8_t g_da1469x_dma_isr_set;
-#else
static uint16_t g_da1469x_dma_acquired;
static uint16_t g_da1469x_dma_isr_set;
+#else
+static uint8_t g_da1469x_dma_acquired;
+static uint8_t g_da1469x_dma_isr_set;
#endif
static struct da1469x_dma_interrupt_cfg
g_da1469x_dma_isr_cfg[MCU_DMA_CHAN_MAX];