LL_DmaHelper (c++)
This commit is contained in:
parent
f0ddd19150
commit
663d68baf1
5 changed files with 81 additions and 9 deletions
|
@ -25,18 +25,18 @@ volatile uint32_t* GetIcfReg(DMA_TypeDef *dma, uint32_t stream)
|
|||
|
||||
uint32_t GetFeMask(uint32_t stream)
|
||||
{
|
||||
static const uint32_t masks[8] = {
|
||||
static const uint32_t feMasks[8] = {
|
||||
DMA_LISR_FEIF0, DMA_LISR_FEIF1, DMA_LISR_FEIF2, DMA_LISR_FEIF3, DMA_HISR_FEIF4, DMA_HISR_FEIF5, DMA_HISR_FEIF6, DMA_HISR_FEIF7
|
||||
};
|
||||
return masks[stream];
|
||||
return feMasks[stream];
|
||||
}
|
||||
|
||||
uint32_t GetDmeMask(uint32_t stream)
|
||||
{
|
||||
static const uint32_t teMasks[8] = {
|
||||
static const uint32_t dmeMasks[8] = {
|
||||
DMA_LISR_DMEIF0, DMA_LISR_DMEIF1, DMA_LISR_DMEIF2, DMA_LISR_DMEIF3, DMA_HISR_DMEIF4, DMA_HISR_DMEIF5, DMA_HISR_DMEIF6, DMA_HISR_DMEIF7
|
||||
};
|
||||
return teMasks[stream];
|
||||
return dmeMasks[stream];
|
||||
}
|
||||
|
||||
uint32_t GetTeMask(uint32_t stream)
|
||||
|
@ -49,10 +49,10 @@ uint32_t GetTeMask(uint32_t stream)
|
|||
|
||||
uint32_t GetHtMask(uint32_t stream)
|
||||
{
|
||||
static const uint32_t teMasks[8] = {
|
||||
static const uint32_t htMasks[8] = {
|
||||
DMA_LISR_HTIF0, DMA_LISR_HTIF1, DMA_LISR_HTIF2, DMA_LISR_HTIF3, DMA_HISR_HTIF4, DMA_HISR_HTIF5, DMA_HISR_HTIF6, DMA_HISR_HTIF7
|
||||
};
|
||||
return teMasks[stream];
|
||||
return htMasks[stream];
|
||||
}
|
||||
|
||||
uint32_t GetTcMask(uint32_t stream)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue