2022-07-06 10:11 AM
Hi all,
I am interested on how to see which pins are configured as a timer channel output without using STM32CubeMX? I am using a STM32L476RG board. Is it possible to see from the .c/.h files? If yes, how?
Thanks.
Solved! Go to Solution.
2022-07-06 12:41 PM
If the code was generated by STM32CubeIDE: yes. The pins are setup in stm32l4xx_hal_msp.c, HAL_TIM_MspPostInit.
hth
KnarfB
2022-07-06 12:41 PM
If the code was generated by STM32CubeIDE: yes. The pins are setup in stm32l4xx_hal_msp.c, HAL_TIM_MspPostInit.
hth
KnarfB
2022-07-06 01:11 PM
Well they're enumerated in the Data Sheet
You could grep or find-in-file "GPIO_AF", some STM32 parts are more consistent than others, some look like they were assigned by a seal throwing darts..
2022-07-07 02:55 AM
Thanks for the answer. Another question if I may, what about the frequency of the clock?