SPI DRIVER STM32F4
Posted: Sat Aug 20, 2016 10:46 pm
Hi, im working in a project with the stm32f4 baseboard and I want to change the SPI mode, how can that be possible? I have a problem with the reading and I want to know how to change de frequency if its possible, thank you very much!
static const SPIConfig ls_spicfg = {
NULL,
GPIOB,
14,
SPI_CR1_BR_2 | SPI_CR1_BR_1 | SPI_CR1_CPHA
};
static const SPIConfig ls_spicfg = {
NULL,
GPIOB,
14,
SPI_CR1_BR_2 | SPI_CR1_BR_1 | SPI_CR1_CPHA
};