Fixed beeper for NAZE32 >= rev5.

Added timer defines again to fix motor control not working.
This commit is contained in:
Michael Keller 2016-06-16 09:47:04 +12:00 committed by mikeller
parent adb38caac8
commit 4e01859a75
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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)