arch/arm/src/stm32/stm32_foc.c: define missing FOC1_PWM_FZ_BIT for G4

This commit is contained in:
raiden00pl
2021-10-29 13:41:47 +02:00
committed by Xiang Xiao
parent 8e9e54cad3
commit bb5e3fee44
+2 -1
View File
@@ -169,7 +169,8 @@
# define FOC1_PWM (8)
# define FOC1_PWM_NCHANNELS (PWM_TIM8_NCHANNELS)
# define FOC1_PWM_BASE (STM32_TIM8_BASE)
# if defined(CONFIG_STM32_HAVE_IP_DBGMCU_V2)
# if defined(CONFIG_STM32_HAVE_IP_DBGMCU_V2) || \
defined(CONFIG_STM32_HAVE_IP_DBGMCU_V3)
# define FOC1_PWM_FZ_BIT (DBGMCU_APB2_TIM8STOP)
# elif defined(CONFIG_STM32_HAVE_IP_DBGMCU_V1)
# define FOC1_PWM_FZ_BIT (DBGMCU_CR_TIM8STOP)