Basic GPIO_init() question
I am using for instance, ADC, UARTS, Timers, external interrupts, etc., all generated with cube. But I notice that cube doesn't always generate GPIO settings for certain pins. For instance, ADC1_IN4, when I select it using my board, an stm32f769i-disco, PIN PA4 is populated and not marked as modified in the GPIO section. When I look at the code generated by cube in the GPIO init section, there is no mention of that pin. This is also the case for TIM3_CH3 where PA6 is again preselected by cube and no GPIO entries are setup (in the generated code). lastly, usart1 follows the same pattern, where PA9 and PA10 are predetermined and no GPIO settings are generated in the resulting code. Does this this have to do with me selecting the stm32f769i-disco board and it defaulting the pins to specific functions? This is driving me crazy because certain pins can be used on more than one function (alternate functions) and with the board limitations, I am needing other pins.
Lastly, I went through the GPIO section port by port and made a map of the PINs that are called out (In GPIO init) and the Timer3, ADC and Usart pins are not coded (in GPIOO) but clearly the functions work. What am I missing here?
Thank
Jerry
