mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Support for BigQuad deck as a CRAZYFLIE2 variant
Supported features in this commit: - Mag enabled (both CRAZYFLIE2 and CRAZYFLIE2BQ) - Brushless motors - ESC passthrough for BLHeli programming - CPPM Rx input - VBat sensor - Current sensor - GPS Tx/Rx pins enabled - I2C SDA/SCL enabled as UART1 (SDA = Rx, SCL = Tx)
This commit is contained in:
parent
1c1cebc448
commit
5d646717fe
4 changed files with 58 additions and 29 deletions
|
@ -680,6 +680,9 @@ _TIM_IRQ_HANDLER(TIM1_TRG_COM_TIM11_IRQHandler, 11);
|
|||
#if USED_TIMERS & TIM_N(12)
|
||||
_TIM_IRQ_HANDLER(TIM8_BRK_TIM12_IRQHandler, 12);
|
||||
#endif
|
||||
#if USED_TIMERS & TIM_N(14)
|
||||
_TIM_IRQ_HANDLER(TIM8_TRG_COM_TIM14_IRQHandler, 14);
|
||||
#endif
|
||||
#if USED_TIMERS & TIM_N(15)
|
||||
_TIM_IRQ_HANDLER(TIM1_BRK_TIM15_IRQHandler, 15);
|
||||
#endif
|
||||
|
@ -856,4 +859,4 @@ uint16_t timerGetPrescalerByDesiredMhz(TIM_TypeDef *tim, uint16_t mhz)
|
|||
uint16_t timerGetPeriodByPrescaler(TIM_TypeDef *tim, uint16_t prescaler, uint32_t hertz)
|
||||
{
|
||||
return ((uint16_t)((timerClock(tim) / (prescaler + 1)) / hertz));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue