diff options
author | Theodore Ateba <tf.ateba@gmail.com> | 2018-09-04 12:20:14 +0000 |
---|---|---|
committer | Theodore Ateba <tf.ateba@gmail.com> | 2018-09-04 12:20:14 +0000 |
commit | ed50615d58ad755e7288cd444d2326432ca2ab2a (patch) | |
tree | 687ef57760b7c3b1933bcacc42d0c4979bb94419 /os/hal/ports/AVR/XMEGA/LLD/DMAv1 | |
parent | 1b70b674056fe7a4a94ae37f617c12deee3ea140 (diff) | |
download | ChibiOS-ed50615d58ad755e7288cd444d2326432ca2ab2a.tar.gz ChibiOS-ed50615d58ad755e7288cd444d2326432ca2ab2a.tar.bz2 ChibiOS-ed50615d58ad755e7288cd444d2326432ca2ab2a.zip |
AVR: Cleanup code source.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12237 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/AVR/XMEGA/LLD/DMAv1')
-rw-r--r-- | os/hal/ports/AVR/XMEGA/LLD/DMAv1/xmega_dma_lld.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/os/hal/ports/AVR/XMEGA/LLD/DMAv1/xmega_dma_lld.c b/os/hal/ports/AVR/XMEGA/LLD/DMAv1/xmega_dma_lld.c index 4c49e92f4..0b194515f 100644 --- a/os/hal/ports/AVR/XMEGA/LLD/DMAv1/xmega_dma_lld.c +++ b/os/hal/ports/AVR/XMEGA/LLD/DMAv1/xmega_dma_lld.c @@ -139,9 +139,9 @@ void dmaControllerDisable(DMA_t *dmacp) { */
void damReset(void) {
- DMA.CTRL &= ~DMA_ENABLE_bm; /* Disable the DMA before a reset. */
- DMA.CTRL |= DMA_RESET_bm; /* Perform the reset of the DMA module. */
- while(DMA.CTRL & DMA_RESET_bm); /* Wait until reset is complated. */
+ DMA.CTRL &= ~DMA_ENABLE_bm; /* Disable the DMA before a reset. */
+ DMA.CTRL |= DMA_RESET_bm; /* Perform the reset of the DMA module. */
+ while(DMA.CTRL & DMA_RESET_bm); /* Wait until reset is complated. */
}
/**
@@ -176,25 +176,23 @@ void dmaChannelReset(DMA_CH_t *dmacp) { void dmaEnableSingleShot(DMA_CH_t * dmacp ) {
- dmacp->CTRLA |= DMA_CH_SINGLE_bm;
+ dmacp->CTRLA |= DMA_CH_SINGLE_bm;
}
void dmaDisableSingleShot(DMA_CH_t * dmacp ) {
- dmacp->CTRLA &= ~DMA_CH_SINGLE_bm;
+ dmacp->CTRLA &= ~DMA_CH_SINGLE_bm;
}
void dmaSetTriggerSource(DMA_CH_t * dmacp, uint8_t trigger) {
- dmacp->TRIGSRC = trigger;
+ dmacp->TRIGSRC = trigger;
}
void dmaStartTransfer(DMA_CH_t * dmacp) {
- dmacp->CTRLA |= DMA_CH_TRFREQ_bm;
+ dmacp->CTRLA |= DMA_CH_TRFREQ_bm;
}
-//#endif /* HAL_USE_DMA */
-
/** @} */
|