SPI Config STM32F4 Embest BB
Posted: Sun Mar 20, 2016 12:51 am
Hi!
We need to configurate SPI bus with the following ports:
PB14 ---> CS
PB10 ---> SSCK
PC2-----> MISO
PC3---->MOSI
In the spi example we have the next struct config:
static const SPIConfig hs_spicfg = {
NULL,
GPIOB,
14,
0
};
My doubt is that in the second field of the configuration struct has only one port(GPIOB) but I have to use two ports (GPIOB and GPIOC). How can I creat the struct configuration with my requeriments?
Thanks!
We need to configurate SPI bus with the following ports:
PB14 ---> CS
PB10 ---> SSCK
PC2-----> MISO
PC3---->MOSI
In the spi example we have the next struct config:
static const SPIConfig hs_spicfg = {
NULL,
GPIOB,
14,
0
};
My doubt is that in the second field of the configuration struct has only one port(GPIOB) but I have to use two ports (GPIOB and GPIOC). How can I creat the struct configuration with my requeriments?
Thanks!