Initial Stm32f4 spi driver

what if you have a setup consisting of two boards and you want one to act as master on SPI_0 and the other as slave on SPI_1 ?