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

Made DMA options configurable.

This commit is contained in:
mikeller 2019-02-26 02:55:41 +13:00
parent 750e7c30cf
commit 31425f5171
7 changed files with 246 additions and 49 deletions

View file

@ -27,6 +27,19 @@
#include "pg/timerio.h"
#endif
#ifdef USE_TIMER_MGMT
timerIOConfig_t *timerIoConfigByTag(ioTag_t ioTag)
{
for (unsigned i = 0; i < MAX_TIMER_PINMAP_COUNT; i++) {
if (timerIOConfig(i)->ioTag == ioTag) {
return timerIOConfigMutable(i);
}
}
UNUSED(ioTag);
return NULL;
}
#endif
static uint8_t timerIndexByTag(ioTag_t ioTag)
{
#ifdef USE_TIMER_MGMT