mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #1462 from blckmn/led_mapping
Moving LED strip output pin to be configurable via resource command
This commit is contained in:
commit
9124c496b6
19 changed files with 286 additions and 218 deletions
|
@ -810,6 +810,7 @@ volatile timCCR_t* timerCCR(TIM_TypeDef *tim, uint8_t channel)
|
|||
return (volatile timCCR_t*)((volatile char*)&tim->CCR1 + channel);
|
||||
}
|
||||
|
||||
#ifndef USE_HAL_DRIVER
|
||||
uint16_t timerDmaSource(uint8_t channel)
|
||||
{
|
||||
switch (channel) {
|
||||
|
@ -823,4 +824,5 @@ uint16_t timerDmaSource(uint8_t channel)
|
|||
return TIM_DMA_CC4;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue