mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
PICO: DMA Removing magic numbers
This commit is contained in:
parent
4bb1edfba0
commit
c284edb89c
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ typedef enum {
|
||||||
.owner.resourceIndex = 0 \
|
.owner.resourceIndex = 0 \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DMA_IDENTIFIER_TO_CHANNEL(identifier) ((identifier) - 1)
|
#define DMA_IDENTIFIER_TO_CHANNEL(identifier) ((identifier) - DMA_FIRST_HANDLER)
|
||||||
#define DMA_CHANNEL_TO_IDENTIFIER(channel) ((dmaIdentifier_e)((channel) + 1))
|
#define DMA_CHANNEL_TO_IDENTIFIER(channel) ((dmaIdentifier_e)((channel) + DMA_FIRST_HANDLER))
|
||||||
#define DMA_CHANNEL_TO_INDEX(channel) (channel)
|
#define DMA_CHANNEL_TO_INDEX(channel) (channel)
|
||||||
|
|
||||||
dmaIdentifier_e dmaGetFreeIdentifier(void);
|
dmaIdentifier_e dmaGetFreeIdentifier(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue