micropython / stm32lib

STM32 Cube library - CMSIS and HAL for F4, F7 and L4 microcontrollers
63 stars 71 forks source link

stm32lib stm32l4xx_hal_gpio_ex.h: Add #define GPIO_AF14_TIM2 for L4P5. #20

Closed chrismas9 closed 2 years ago

chrismas9 commented 2 years ago

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 c.mason@inchipdesign.com.au

chrismas9 commented 2 years ago

I have raised an issue at ST: https://github.com/STMicroelectronics/STM32CubeL4/issues/70 I can't complete the STM32L4plus port withpout this addition.

dpgeorge commented 2 years ago

Thanks, this looks fine. Rebased and merged in 490362c8a6bf2c714bb7705ec2277ebe73774b4a