libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
SPI peripheral baud rate prescale values
Collaboration diagram for SPI peripheral baud rate prescale values:

Macros

#define SPI_CR1_BR_FPCLK_DIV_2   0x0
 
#define SPI_CR1_BR_FPCLK_DIV_4   0x1
 
#define SPI_CR1_BR_FPCLK_DIV_8   0x2
 
#define SPI_CR1_BR_FPCLK_DIV_16   0x3
 
#define SPI_CR1_BR_FPCLK_DIV_32   0x4
 
#define SPI_CR1_BR_FPCLK_DIV_64   0x5
 
#define SPI_CR1_BR_FPCLK_DIV_128   0x6
 
#define SPI_CR1_BR_FPCLK_DIV_256   0x7
 

Detailed Description

Macro Definition Documentation

◆ SPI_CR1_BR_FPCLK_DIV_128

#define SPI_CR1_BR_FPCLK_DIV_128   0x6

Definition at line 180 of file spi_common_all.h.

◆ SPI_CR1_BR_FPCLK_DIV_16

#define SPI_CR1_BR_FPCLK_DIV_16   0x3

Definition at line 177 of file spi_common_all.h.

◆ SPI_CR1_BR_FPCLK_DIV_2

#define SPI_CR1_BR_FPCLK_DIV_2   0x0

Definition at line 174 of file spi_common_all.h.

◆ SPI_CR1_BR_FPCLK_DIV_256

#define SPI_CR1_BR_FPCLK_DIV_256   0x7

Definition at line 181 of file spi_common_all.h.

◆ SPI_CR1_BR_FPCLK_DIV_32

#define SPI_CR1_BR_FPCLK_DIV_32   0x4

Definition at line 178 of file spi_common_all.h.

◆ SPI_CR1_BR_FPCLK_DIV_4

#define SPI_CR1_BR_FPCLK_DIV_4   0x1

Definition at line 175 of file spi_common_all.h.

◆ SPI_CR1_BR_FPCLK_DIV_64

#define SPI_CR1_BR_FPCLK_DIV_64   0x5

Definition at line 179 of file spi_common_all.h.

◆ SPI_CR1_BR_FPCLK_DIV_8

#define SPI_CR1_BR_FPCLK_DIV_8   0x2

Definition at line 176 of file spi_common_all.h.