Consider that the GPIOs associated to the SPI bus (`SPI1` in this example) can vary according to the microcontroller you are using. For the STM32F407VG, the needed GPIOs are
Moreover we need to specify a **chip-select** pin: when set to the low logic level it indicates the beginning of the communication. If you have multiple slaves you will need one chip-select pin for each of them.
Moreover we need to specify a **chip-select**(or _slave-select_) pin: when set to the low logic level it indicates the beginning of the communication. If you have multiple slaves you will need one chip-select pin for each of them.
In this example we consider the scenario in which we have a single slave, so a single chip-select pin is required: