mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
arch/arm/src/stm32/stm32_foc.c: define missing FOC1_PWM_FZ_BIT for G4
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user