git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13350 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2020-02-10 12:12:05 +00:00
parent 4a12b49e4c
commit 13ca75bdbf
2 changed files with 4 additions and 4 deletions

View File

@ -582,7 +582,7 @@ const stm32_dma_stream_t *dmaStreamAllocI(uint32_t id,
}
#if STM32_DMA2_NUM_CHANNELS > 0
else if (id == STM32_DMA_STREAM_ID_ANY_DMA2) {
startid = 7U;
startid = STM32_DMA1_NUM_CHANNELS;
endid = STM32_DMA_STREAMS - 1U;
}
#endif

View File

@ -358,7 +358,7 @@ typedef struct {
* @special
*/
#define dmaStreamSetPeripheral(dmastp, addr) { \
(dmastp)->channel->CPAR = (uint32_t)(addr); \
(dmastp)->channel->CPAR = (uint32_t)(addr); \
}
/**
@ -373,7 +373,7 @@ typedef struct {
* @special
*/
#define dmaStreamSetMemory0(dmastp, addr) { \
(dmastp)->channel->CMAR = (uint32_t)(addr); \
(dmastp)->channel->CMAR = (uint32_t)(addr); \
}
/**
@ -388,7 +388,7 @@ typedef struct {
* @special
*/
#define dmaStreamSetTransactionSize(dmastp, size) { \
(dmastp)->channel->CNDTR = (uint32_t)(size); \
(dmastp)->channel->CNDTR = (uint32_t)(size); \
}
/**