mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Made DMA options configurable.
This commit is contained in:
parent
750e7c30cf
commit
31425f5171
7 changed files with 246 additions and 49 deletions
|
@ -24,9 +24,11 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "drivers/io_types.h"
|
||||
#include "rcc_types.h"
|
||||
#include "drivers/rcc_types.h"
|
||||
#include "drivers/timer_def.h"
|
||||
|
||||
#include "pg/timerio.h"
|
||||
|
||||
#define CC_CHANNELS_PER_TIMER 4 // TIM_Channel_1..4
|
||||
#define CC_INDEX_FROM_CHANNEL(x) ((uint8_t)((x) >> 2))
|
||||
#define CC_CHANNEL_FROM_INDEX(x) ((uint16_t)(x) << 2)
|
||||
|
@ -255,6 +257,9 @@ void configTimeBase(TIM_TypeDef *tim, uint16_t period, uint32_t hz); // TODO -
|
|||
rccPeriphTag_t timerRCC(TIM_TypeDef *tim);
|
||||
uint8_t timerInputIrq(TIM_TypeDef *tim);
|
||||
|
||||
#if defined(USE_TIMER_MGMT)
|
||||
timerIOConfig_t *timerIoConfigByTag(ioTag_t ioTag);
|
||||
#endif
|
||||
const timerHardware_t *timerGetByTag(ioTag_t ioTag);
|
||||
ioTag_t timerioTagGetByUsage(timerUsageFlag_e usageFlag, uint8_t index);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue