summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_pwm.h')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_pwm.h96
1 files changed, 48 insertions, 48 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_pwm.h b/nuttx/arch/arm/src/stm32/stm32_pwm.h
index b7179a7bc..c51c56950 100644
--- a/nuttx/arch/arm/src/stm32/stm32_pwm.h
+++ b/nuttx/arch/arm/src/stm32/stm32_pwm.h
@@ -131,13 +131,13 @@
# if !defined(CONFIG_STM32_TIM1_CHANNEL)
# error "CONFIG_STM32_TIM1_CHANNEL must be provided"
# elif CONFIG_STM32_TIM1_CHANNEL == 1
-# define PWM_TIM1_PINCFG GPIO_TIM1_CH1
+# define PWM_TIM1_PINCFG GPIO_TIM1_CH1OUT
# elif CONFIG_STM32_TIM1_CHANNEL == 2
-# define PWM_TIM1_PINCFG GPIO_TIM1_CH2
+# define PWM_TIM1_PINCFG GPIO_TIM1_CH2OUT
# elif CONFIG_STM32_TIM1_CHANNEL == 3
-# define PWM_TIM1_PINCFG GPIO_TIM1_CH3
+# define PWM_TIM1_PINCFG GPIO_TIM1_CH3OUT
# elif CONFIG_STM32_TIM1_CHANNEL == 4
-# define PWM_TIM1_PINCFG GPIO_TIM1_CH4
+# define PWM_TIM1_PINCFG GPIO_TIM1_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM1_CHANNEL"
# endif
@@ -147,13 +147,13 @@
# if !defined(CONFIG_STM32_TIM2_CHANNEL)
# error "CONFIG_STM32_TIM2_CHANNEL must be provided"
# elif CONFIG_STM32_TIM2_CHANNEL == 1
-# define PWM_TIM2_PINCFG GPIO_TIM2_CH1
+# define PWM_TIM2_PINCFG GPIO_TIM2_CH1OUT
# elif CONFIG_STM32_TIM2_CHANNEL == 2
-# define PWM_TIM2_PINCFG GPIO_TIM2_CH2
+# define PWM_TIM2_PINCFG GPIO_TIM2_CH2OUT
# elif CONFIG_STM32_TIM2_CHANNEL == 3
-# define PWM_TIM2_PINCFG GPIO_TIM2_CH3
+# define PWM_TIM2_PINCFG GPIO_TIM2_CH3OUT
# elif CONFIG_STM32_TIM2_CHANNEL == 4
-# define PWM_TIM2_PINCFG GPIO_TIM2_CH4
+# define PWM_TIM2_PINCFG GPIO_TIM2_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM2_CHANNEL"
# endif
@@ -163,13 +163,13 @@
# if !defined(CONFIG_STM32_TIM3_CHANNEL)
# error "CONFIG_STM32_TIM3_CHANNEL must be provided"
# elif CONFIG_STM32_TIM3_CHANNEL == 1
-# define PWM_TIM3_PINCFG GPIO_TIM3_CH1
+# define PWM_TIM3_PINCFG GPIO_TIM3_CH1OUT
# elif CONFIG_STM32_TIM3_CHANNEL == 2
-# define PWM_TIM3_PINCFG GPIO_TIM3_CH2
+# define PWM_TIM3_PINCFG GPIO_TIM3_CH2OUT
# elif CONFIG_STM32_TIM3_CHANNEL == 3
-# define PWM_TIM3_PINCFG GPIO_TIM3_CH3
+# define PWM_TIM3_PINCFG GPIO_TIM3_CH3OUT
# elif CONFIG_STM32_TIM3_CHANNEL == 4
-# define PWM_TIM3_PINCFG GPIO_TIM3_CH4
+# define PWM_TIM3_PINCFG GPIO_TIM3_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM3_CHANNEL"
# endif
@@ -179,13 +179,13 @@
# if !defined(CONFIG_STM32_TIM4_CHANNEL)
# error "CONFIG_STM32_TIM4_CHANNEL must be provided"
# elif CONFIG_STM32_TIM4_CHANNEL == 1
-# define PWM_TIM4_PINCFG GPIO_TIM4_CH1
+# define PWM_TIM4_PINCFG GPIO_TIM4_CH1OUT
# elif CONFIG_STM32_TIM4_CHANNEL == 2
-# define PWM_TIM4_PINCFG GPIO_TIM4_CH2
+# define PWM_TIM4_PINCFG GPIO_TIM4_CH2OUT
# elif CONFIG_STM32_TIM4_CHANNEL == 3
-# define PWM_TIM4_PINCFG GPIO_TIM4_CH3
+# define PWM_TIM4_PINCFG GPIO_TIM4_CH3OUT
# elif CONFIG_STM32_TIM4_CHANNEL == 4
-# define PWM_TIM4_PINCFG GPIO_TIM4_CH4
+# define PWM_TIM4_PINCFG GPIO_TIM4_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM4_CHANNEL"
# endif
@@ -195,13 +195,13 @@
# if !defined(CONFIG_STM32_TIM5_CHANNEL)
# error "CONFIG_STM32_TIM5_CHANNEL must be provided"
# elif CONFIG_STM32_TIM5_CHANNEL == 1
-# define PWM_TIM5_PINCFG GPIO_TIM5_CH1
+# define PWM_TIM5_PINCFG GPIO_TIM5_CH1OUT
# elif CONFIG_STM32_TIM5_CHANNEL == 2
-# define PWM_TIM5_PINCFG GPIO_TIM5_CH2
+# define PWM_TIM5_PINCFG GPIO_TIM5_CH2OUT
# elif CONFIG_STM32_TIM5_CHANNEL == 3
-# define PWM_TIM5_PINCFG GPIO_TIM5_CH3
+# define PWM_TIM5_PINCFG GPIO_TIM5_CH3OUT
# elif CONFIG_STM32_TIM5_CHANNEL == 4
-# define PWM_TIM5_PINCFG GPIO_TIM5_CH4
+# define PWM_TIM5_PINCFG GPIO_TIM5_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM5_CHANNEL"
# endif
@@ -211,13 +211,13 @@
# if !defined(CONFIG_STM32_TIM8_CHANNEL)
# error "CONFIG_STM32_TIM8_CHANNEL must be provided"
# elif CONFIG_STM32_TIM8_CHANNEL == 1
-# define PWM_TIM8_PINCFG GPIO_TIM8_CH1
+# define PWM_TIM8_PINCFG GPIO_TIM8_CH1OUT
# elif CONFIG_STM32_TIM8_CHANNEL == 2
-# define PWM_TIM8_PINCFG GPIO_TIM8_CH2
+# define PWM_TIM8_PINCFG GPIO_TIM8_CH2OUT
# elif CONFIG_STM32_TIM8_CHANNEL == 3
-# define PWM_TIM8_PINCFG GPIO_TIM8_CH3
+# define PWM_TIM8_PINCFG GPIO_TIM8_CH3OUT
# elif CONFIG_STM32_TIM8_CHANNEL == 4
-# define PWM_TIM8_PINCFG GPIO_TIM8_CH4
+# define PWM_TIM8_PINCFG GPIO_TIM8_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM8_CHANNEL"
# endif
@@ -227,13 +227,13 @@
# if !defined(CONFIG_STM32_TIM9_CHANNEL)
# error "CONFIG_STM32_TIM9_CHANNEL must be provided"
# elif CONFIG_STM32_TIM9_CHANNEL == 1
-# define PWM_TIM9_PINCFG GPIO_TIM9_CH1
+# define PWM_TIM9_PINCFG GPIO_TIM9_CH1OUT
# elif CONFIG_STM32_TIM9_CHANNEL == 2
-# define PWM_TIM9_PINCFG GPIO_TIM9_CH2
+# define PWM_TIM9_PINCFG GPIO_TIM9_CH2OUT
# elif CONFIG_STM32_TIM9_CHANNEL == 3
-# define PWM_TIM9_PINCFG GPIO_TIM9_CH3
+# define PWM_TIM9_PINCFG GPIO_TIM9_CH3OUT
# elif CONFIG_STM32_TIM9_CHANNEL == 4
-# define PWM_TIM9_PINCFG GPIO_TIM9_CH4
+# define PWM_TIM9_PINCFG GPIO_TIM9_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM9_CHANNEL"
# endif
@@ -243,13 +243,13 @@
# if !defined(CONFIG_STM32_TIM10_CHANNEL)
# error "CONFIG_STM32_TIM10_CHANNEL must be provided"
# elif CONFIG_STM32_TIM10_CHANNEL == 1
-# define PWM_TIM10_PINCFG GPIO_TIM10_CH1
+# define PWM_TIM10_PINCFG GPIO_TIM10_CH1OUT
# elif CONFIG_STM32_TIM10_CHANNEL == 2
-# define PWM_TIM10_PINCFG GPIO_TIM10_CH2
+# define PWM_TIM10_PINCFG GPIO_TIM10_CH2OUT
# elif CONFIG_STM32_TIM10_CHANNEL == 3
-# define PWM_TIM10_PINCFG GPIO_TIM10_CH3
+# define PWM_TIM10_PINCFG GPIO_TIM10_CH3OUT
# elif CONFIG_STM32_TIM10_CHANNEL == 4
-# define PWM_TIM10_PINCFG GPIO_TIM10_CH4
+# define PWM_TIM10_PINCFG GPIO_TIM10_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM10_CHANNEL"
# endif
@@ -259,13 +259,13 @@
# if !defined(CONFIG_STM32_TIM11_CHANNEL)
# error "CONFIG_STM32_TIM11_CHANNEL must be provided"
# elif CONFIG_STM32_TIM11_CHANNEL == 1
-# define PWM_TIM11_PINCFG GPIO_TIM11_CH1
+# define PWM_TIM11_PINCFG GPIO_TIM11_CH1OUT
# elif CONFIG_STM32_TIM11_CHANNEL == 2
-# define PWM_TIM11_PINCFG GPIO_TIM11_CH2
+# define PWM_TIM11_PINCFG GPIO_TIM11_CH2OUT
# elif CONFIG_STM32_TIM11_CHANNEL == 3
-# define PWM_TIM11_PINCFG GPIO_TIM11_CH3
+# define PWM_TIM11_PINCFG GPIO_TIM11_CH3OUT
# elif CONFIG_STM32_TIM11_CHANNEL == 4
-# define PWM_TIM11_PINCFG GPIO_TIM11_CH4
+# define PWM_TIM11_PINCFG GPIO_TIM11_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM11_CHANNEL"
# endif
@@ -275,13 +275,13 @@
# if !defined(CONFIG_STM32_TIM12_CHANNEL)
# error "CONFIG_STM32_TIM12_CHANNEL must be provided"
# elif CONFIG_STM32_TIM12_CHANNEL == 1
-# define PWM_TIM12_PINCFG GPIO_TIM12_CH1
+# define PWM_TIM12_PINCFG GPIO_TIM12_CH1OUT
# elif CONFIG_STM32_TIM12_CHANNEL == 2
-# define PWM_TIM12_PINCFG GPIO_TIM12_CH2
+# define PWM_TIM12_PINCFG GPIO_TIM12_CH2OUT
# elif CONFIG_STM32_TIM12_CHANNEL == 3
-# define PWM_TIM12_PINCFG GPIO_TIM12_CH3
+# define PWM_TIM12_PINCFG GPIO_TIM12_CH3OUT
# elif CONFIG_STM32_TIM12_CHANNEL == 4
-# define PWM_TIM12_PINCFG GPIO_TIM12_CH4
+# define PWM_TIM12_PINCFG GPIO_TIM12_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM12_CHANNEL"
# endif
@@ -291,13 +291,13 @@
# if !defined(CONFIG_STM32_TIM13_CHANNEL)
# error "CONFIG_STM32_TIM13_CHANNEL must be provided"
# elif CONFIG_STM32_TIM13_CHANNEL == 1
-# define PWM_TIM13_PINCFG GPIO_TIM13_CH1
+# define PWM_TIM13_PINCFG GPIO_TIM13_CH1OUT
# elif CONFIG_STM32_TIM13_CHANNEL == 2
-# define PWM_TIM13_PINCFG GPIO_TIM13_CH2
+# define PWM_TIM13_PINCFG GPIO_TIM13_CH2OUT
# elif CONFIG_STM32_TIM13_CHANNEL == 3
-# define PWM_TIM13_PINCFG GPIO_TIM13_CH3
+# define PWM_TIM13_PINCFG GPIO_TIM13_CH3OUT
# elif CONFIG_STM32_TIM13_CHANNEL == 4
-# define PWM_TIM13_PINCFG GPIO_TIM13_CH4
+# define PWM_TIM13_PINCFG GPIO_TIM13_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM13_CHANNEL"
# endif
@@ -307,13 +307,13 @@
# if !defined(CONFIG_STM32_TIM14_CHANNEL)
# error "CONFIG_STM32_TIM14_CHANNEL must be provided"
# elif CONFIG_STM32_TIM14_CHANNEL == 1
-# define PWM_TIM14_PINCFG GPIO_TIM14_CH1
+# define PWM_TIM14_PINCFG GPIO_TIM14_CH1OUT
# elif CONFIG_STM32_TIM14_CHANNEL == 2
-# define PWM_TIM14_PINCFG GPIO_TIM14_CH2
+# define PWM_TIM14_PINCFG GPIO_TIM14_CH2OUT
# elif CONFIG_STM32_TIM14_CHANNEL == 3
-# define PWM_TIM14_PINCFG GPIO_TIM14_CH3
+# define PWM_TIM14_PINCFG GPIO_TIM14_CH3OUT
# elif CONFIG_STM32_TIM14_CHANNEL == 4
-# define PWM_TIM14_PINCFG GPIO_TIM14_CH4
+# define PWM_TIM14_PINCFG GPIO_TIM14_CH4OUT
# else
# error "Unsupported value of CONFIG_STM32_TIM14_CHANNEL"
# endif