1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

REFACTOR: Adding DMA_FIRST_HANDLER (#14474)

* REFACTOR: Adding DMA_FIRST_HANDLER

 dmaIdentifier_e could be zero based in the future and align to descriptor array index directly

Also removed unused DMA_INPUT_STRING

* Removed magic number following code rabbit review
This commit is contained in:
Jay Blackman 2025-06-26 07:34:29 +10:00 committed by GitHub
parent 35dd55f6d7
commit 0d0c00f341
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 13 additions and 11 deletions

View file

@ -58,7 +58,7 @@ typedef struct dmaChannelDescriptor_s {
#endif
} dmaChannelDescriptor_t;
#define DMA_IDENTIFIER_TO_INDEX(x) ((x) - 1)
#define DMA_IDENTIFIER_TO_INDEX(x) ((x) - DMA_FIRST_HANDLER)
void dmaMuxEnable(dmaIdentifier_e identifier, uint32_t dmaMuxId);