Skip to content

Commit c8484ec

Browse files
chrismas9dpgeorge
authored andcommitted
L4_HAL/gpio_ex: Add #define for GPIO_AF14_TIM2 on L4P5/L4Q5.
On STM32L4P5 and STM32L4Q5 pin PA0 has TIM2_ETR on AF14. Required definition in stm32l4xx_hal_gpio_ex.h is missing. It is included for every other L4 part in the file. PA0-TIM2_ETR is verified as available in the data sheet and STMCUBEMX. Signed-off-by: Chris Mason <[email protected]>
1 parent afa5f5c commit c8484ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_gpio_ex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@
784784
/**
785785
* @brief AF 14 selection
786786
*/
787+
#define GPIO_AF14_TIM2 ((uint8_t)0x0E) /* TIM2 Alternate Function mapping */
787788
#define GPIO_AF14_TIM15 ((uint8_t)0x0E) /* TIM15 Alternate Function mapping */
788789
#define GPIO_AF14_TIM16 ((uint8_t)0x0E) /* TIM16 Alternate Function mapping */
789790
#define GPIO_AF14_TIM17 ((uint8_t)0x0E) /* TIM17 Alternate Function mapping */

0 commit comments

Comments
 (0)