1
0
Fork 0
forked from nuttx/nuttx-update

DIR/Complementary PWM possible on PE08 and PE10

This commit is contained in:
Roberto Bucher 2023-05-27 18:44:15 +02:00 committed by Alan Carvalho de Assis
parent bcd776b2a7
commit 547e0a051f
2 changed files with 9 additions and 3 deletions

View file

@ -151,8 +151,10 @@
/* GPIO pins used by the GPIO Subsystem */
#define BOARD_NGPIOIN 4 /* Amount of GPIO Input pins */
#ifdef CONFIG_STM32F7_TIM1_CH1NOUT
#if defined(CONFIG_STM32F7_TIM1_CH1NOUT) && defined (CONFIG_STM32F7_TIM1_CH2NOUT)
#define BOARD_NGPIOOUT 8 /* Amount of GPIO Output pins */
#elif defined(CONFIG_STM32F7_TIM1_CH1NOUT) || defined (CONFIG_STM32F7_TIM1_CH2NOUT)
#define BOARD_NGPIOOUT 9 /* Amount of GPIO Output pins */
#else
#define BOARD_NGPIOOUT 10 /* Amount of GPIO Output pins */
#endif
@ -175,9 +177,11 @@
GPIO_OUTPUT_SET | GPIO_PORTA |GPIO_PIN5)
#define GPIO_OUT5 (GPIO_OUTPUT | GPIO_SPEED_50MHz | \
GPIO_OUTPUT_SET | GPIO_PORTF | GPIO_PIN12)
#ifndef CONFIG_STM32F7_TIM1_CH1NOUT
#if !defined(CONFIG_STM32F7_TIM1_CH1NOUT)
#define GPIO_OUT6 (GPIO_OUTPUT | GPIO_SPEED_50MHz | \
GPIO_OUTPUT_SET | GPIO_PORTE | GPIO_PIN8)
#endif
#if !defined(CONFIG_STM32F7_TIM1_CH2NOUT)
#define GPIO_OUT7 (GPIO_OUTPUT | GPIO_SPEED_50MHz | \
GPIO_OUTPUT_SET | GPIO_PORTE | GPIO_PIN10)
#endif

View file

@ -123,8 +123,10 @@ static const uint32_t g_gpiooutputs[BOARD_NGPIOOUT] =
GPIO_OUT3,
GPIO_OUT4,
GPIO_OUT5,
#ifndef CONFIG_STM32F7_TIM1_CH1NOUT
#if !defined(CONFIG_STM32F7_TIM1_CH1NOUT)
GPIO_OUT6,
#endif
#if !defined(CONFIG_STM32F7_TIM1_CH2NOUT)
GPIO_OUT7,
#endif
};