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:
parent
750e7c30cf
commit
31425f5171
7 changed files with 246 additions and 49 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue