Fixed beeper for NAZE32 >= rev5.
Added timer defines again to fix motor control not working.
This commit is contained in:
parent
adb38caac8
commit
4e01859a75
|
@ -354,7 +354,7 @@ void init(void)
|
|||
#ifdef NAZE
|
||||
if (hardwareRevision >= NAZE32_REV5) {
|
||||
// naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN.
|
||||
beeperConfig.isOD = true;
|
||||
beeperConfig.isOD = false;
|
||||
beeperConfig.isInverted = true;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -201,4 +201,3 @@
|
|||
|
||||
#define TIMER_APB1_PERIPHERALS (RCC_APB1Periph_TIM2 | RCC_APB1Periph_TIM3 | RCC_APB1Periph_TIM4)
|
||||
#define TIMER_APB2_PERIPHERALS (RCC_APB2Periph_TIM1 | RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB)
|
||||
|
||||
|
|
Loading…
Reference in New Issue