summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_pwm.h96
-rwxr-xr-xnuttx/configs/stm3240g-eval/README.txt2
-rwxr-xr-xnuttx/configs/stm3240g-eval/include/board.h4
-rw-r--r--nuttx/configs/stm3240g-eval/src/stm3240g-internal.h2
-rw-r--r--nuttx/configs/stm3240g-eval/src/up_pwm.c2
5 files changed, 53 insertions, 53 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
diff --git a/nuttx/configs/stm3240g-eval/README.txt b/nuttx/configs/stm3240g-eval/README.txt
index 7e4046be9..4ce507244 100755
--- a/nuttx/configs/stm3240g-eval/README.txt
+++ b/nuttx/configs/stm3240g-eval/README.txt
@@ -213,7 +213,7 @@ configured to output a pulse train using TIM4 CH2. This pin is used by
FSMC is but is also connected to the Motor Control Connector (CN5) just
for this purpose:
- PD13 FSMC_A18 / MC_TIM4_CH2 pin 33 (EnB)
+ PD13 FSMC_A18 / MC_TIM4_CH2OUT pin 33 (EnB)
FSMC must be disabled in this case! PD13 is available at:
diff --git a/nuttx/configs/stm3240g-eval/include/board.h b/nuttx/configs/stm3240g-eval/include/board.h
index 80ac9a809..6ad4736d7 100755
--- a/nuttx/configs/stm3240g-eval/include/board.h
+++ b/nuttx/configs/stm3240g-eval/include/board.h
@@ -311,7 +311,7 @@
* but is also connected to the Motor Control Connector (CN5) just for this
* purpose:
*
- * PD13 FSMC_A18 / MC_TIM4_CH2 pin 33 (EnB)
+ * PD13 FSMC_A18 / MC_TIM4_CH2OUT pin 33 (EnB)
*
* FSMC must be disabled in this case! PD13 is available at:
*
@@ -320,7 +320,7 @@
* Motor Control Connector CN15, pin 33 -- not available unless you bridge SB14.
*/
-#define GPIO_TIM4_CH2 GPIO_TIM4_CH2_2
+#define GPIO_TIM4_CH2OUT GPIO_TIM4_CH2OUT_2
/* CAN
*
diff --git a/nuttx/configs/stm3240g-eval/src/stm3240g-internal.h b/nuttx/configs/stm3240g-eval/src/stm3240g-internal.h
index 679951314..2f23d252c 100644
--- a/nuttx/configs/stm3240g-eval/src/stm3240g-internal.h
+++ b/nuttx/configs/stm3240g-eval/src/stm3240g-internal.h
@@ -117,7 +117,7 @@
* but is also connected to the Motor Control Connector (CN5) just for this
* purpose:
*
- * PD13 FSMC_A18 / MC_TIM4_CH2 pin 33 (EnB)
+ * PD13 FSMC_A18 / MC_TIM4_CH2OUT pin 33 (EnB)
*
* FSMC must be disabled in this case! PD13 is available at:
*
diff --git a/nuttx/configs/stm3240g-eval/src/up_pwm.c b/nuttx/configs/stm3240g-eval/src/up_pwm.c
index d0701b2b2..f2932cc4d 100644
--- a/nuttx/configs/stm3240g-eval/src/up_pwm.c
+++ b/nuttx/configs/stm3240g-eval/src/up_pwm.c
@@ -61,7 +61,7 @@
* a pulse train using TIM4 CH2. This pin is used by FSMC is connect to CN5 just for this
* purpose:
*
- * PD13 FSMC_A18 / MC_TIM4_CH2 pin 33 (EnB)
+ * PD13 FSMC_A18 / MC_TIM4_CH2OUT pin 33 (EnB)
*
* FSMC must be disabled in this case!
*/