[NUCLEO_F030R8] Change AF setting before GPIO setting
[NUCLEO_F103RB] Change AF setting before GPIO setting
[NUCLEO_L152RE] Change AF setting before GPIO setting