Page 1 of 1

SPI DRIVER STM32F4

Posted: Sat Aug 20, 2016 10:46 pm
by mathias2286
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
};

Re: SPI DRIVER STM32F4

Posted: Sun Aug 21, 2016 9:51 am
by Giovanni
Hi,

You have to initialize the CR1 register into the configuration structure according to the STM32 Reference Manual, all definitions come from there.

Giovanni