title: STM32:-Why is it required to make pins AF(Alternate function)
body: <p>I want to configure SPI1 in stm32f103. Why is it required to make pins AF(Alternate function)? Cant it just be input or output? What is actually happening when the pins are AF?</p>