How to use multiple SPI busses with STM32 and PlatformIO?

Hello,

I have a custom board with a STM32 on it with two different SPI devices connect to the MCU.

Each SPI device is connected to their own SPI bus - SPI device 1 is connected to SPI1 and SPI device 2 is connected to SPI2. Each also have their own CS line.

How do I use the arduinoststm32 framework to setup these devices? I know how to setup a single device, but how do I set up two devices on two seperate SPI busses?