3.1 Master Side
If no interrupts are used, then there is just the SPI module and its pins to be
configured. Important in this example is the setting of the SS
pin as output pin. This has to be done before the SPI is enabled in master mode.
Enabling the SPI while the SS pin is still configured as an
input pin would cause the SPI to switch to slave mode immediately if a low level is
applied to this pin. This pin is always configured as an input pin in slave mode. Using
polling gives the fastest communication. This is why polling is most commonly used in
master mode.