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

Addd return type of the function dmaEnable

This commit is contained in:
Jim Florrick 2021-10-25 13:16:07 +08:00 committed by GitHub
parent 1a6bbb8c81
commit dbbd3451ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ uint32_t dmaFlag_IT_TCIF(const dmaResource_t *channel)
}
#define DMA_RCC(x) ((x) == DMA1 ? RCC_AHBPeriph_DMA1 : RCC_AHBPeriph_DMA2)
dmaEnable(dmaIdentifier_e identifier)
void dmaEnable(dmaIdentifier_e identifier)
{
const int index = DMA_IDENTIFIER_TO_INDEX(identifier);