Update dma.h

small correction
This commit is contained in:
stevstrong 2018-07-02 10:32:21 +02:00 committed by GitHub
parent 8050dbfa58
commit 2ae184754b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -538,12 +538,11 @@ static inline void dma_clear_isr_bits(dma_dev *dev, dma_tube tube) {
dev->regs->IFCR = (1U << (4 * (tube - 1)));
}
static inline uint16 dma_get_count(dma_dev *dev, dma_tube tube) {
return dma_channel_regs(dev, tube)->CNDTR;
}
/**
/**
* @brief Deprecated
* STM32F1 mode flags for dma_setup_xfer(). Use dma_tube_cfg() instead.
* @see dma_tube_cfg()