mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
LP-415 F411 needs check for additional STM32F411xE define
This commit is contained in:
parent
85df731afc
commit
282a187357
@ -72,7 +72,7 @@ extern void PIOS_Servo_Disable()
|
|||||||
|
|
||||||
GPIO_InitTypeDef init = chan->pin.init;
|
GPIO_InitTypeDef init = chan->pin.init;
|
||||||
|
|
||||||
#if defined(STM32F40_41xxx) || defined(STM32F446xx)
|
#if defined(STM32F40_41xxx) || defined(STM32F446xx) || defined(STM32F411xE)
|
||||||
init.GPIO_Mode = GPIO_Mode_OUT;
|
init.GPIO_Mode = GPIO_Mode_OUT;
|
||||||
#elif defined(STM32F10X_MD)
|
#elif defined(STM32F10X_MD)
|
||||||
init.GPIO_Mode = GPIO_Mode_Out_PP;
|
init.GPIO_Mode = GPIO_Mode_Out_PP;
|
||||||
@ -262,7 +262,7 @@ void PIOS_Servo_SetHz(const uint16_t *speeds, const uint32_t *clock, uint8_t ban
|
|||||||
} else {
|
} else {
|
||||||
apb_clock = PIOS_PERIPHERAL_APB1_CLOCK;
|
apb_clock = PIOS_PERIPHERAL_APB1_CLOCK;
|
||||||
}
|
}
|
||||||
#elif defined(STM32F40_41xxx) || defined(STM32F446xx)
|
#elif defined(STM32F40_41xxx) || defined(STM32F446xx) || defined(STM32F411xE)
|
||||||
if (timer == TIM1 || timer == TIM8 || timer == TIM9 || timer == TIM10 || timer == TIM11) {
|
if (timer == TIM1 || timer == TIM8 || timer == TIM9 || timer == TIM10 || timer == TIM11) {
|
||||||
apb_clock = PIOS_PERIPHERAL_APB2_CLOCK;
|
apb_clock = PIOS_PERIPHERAL_APB2_CLOCK;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user