Using SPI with STM32L4R9 Discovery Board
Unfortunately there isn't an example provided for SPI on the STM32L4R9 Disco board. I can tell from the User Manual that I need to set the quad SPDT switch on the board to the SPI configuration. If I understand table 20 in the User Manual, I need to set GPIO6 and GPIO7 of the MFX to 0. There are dozens of functions in the STM32l4R9i-discoveryxx.c and mfxstm32l152.c files so I'm confused about how to initialize and use the MFX. Can someone point me at some example code that explains how to set up and use the MFX on the STM32L4R9 discovery board to set some GPIO lines?
Thanks