aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2016-10-11 21:21:30 +0200
committermarcoveeneman <marco-veeneman@hotmail.com>2016-10-11 21:21:30 +0200
commit88810040501e15001e2b7072398417a99846b7f3 (patch)
tree2e319bfbecbad1f9dad7acbed4244205972ad13c /os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c
parent2c2c3c567c329d748d551b29de5cbf04f0ae4beb (diff)
downloadChibiOS-Contrib-88810040501e15001e2b7072398417a99846b7f3.tar.gz
ChibiOS-Contrib-88810040501e15001e2b7072398417a99846b7f3.tar.bz2
ChibiOS-Contrib-88810040501e15001e2b7072398417a99846b7f3.zip
Updated spi and udma lld to use TivaWare.
Diffstat (limited to 'os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c')
-rw-r--r--os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c b/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c
index 9f122b2..4d212b7 100644
--- a/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c
+++ b/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c
@@ -75,8 +75,8 @@ OSAL_IRQ_HANDLER(TIVA_UDMA_ERR_HANDLER)
/* TODO Do we need to halt the system on a DMA error?*/
- if (UDMA->ERRCLR) {
- UDMA->ERRCLR = 1;
+ if (HWREG(UDMA_ERRCLR)) {
+ HWREG(UDMA_ERRCLR) = 1;
}
OSAL_IRQ_EPILOGUE();
@@ -96,18 +96,18 @@ void udmaInit(void)
udma_channel_mask = 0;
/* Enable UDMA module.*/
- SYSCTL->RCGCDMA = 1;
- while (!(SYSCTL->PRDMA & (1 << 0)))
+ HWREG(SYSCTL_RCGCDMA) = 1;
+ while (!(HWREG(SYSCTL_PRDMA) & (1 << 0)))
;
nvicEnableVector(TIVA_UDMA_ERR_NUMBER, TIVA_UDMA_ERR_IRQ_PRIORITY);
nvicEnableVector(TIVA_UDMA_SW_NUMBER, TIVA_UDMA_SW_IRQ_PRIORITY);
/* Enable UDMA controller.*/
- UDMA->CFG = 1;
+ HWREG(UDMA_CFG) = 1;
/* Set address of control table.*/
- UDMA->CTLBASE = (uint32_t)udmaControlTable.primary;
+ HWREG(UDMA_CTLBASE) = (uint32_t)udmaControlTable.primary;
}
/**