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

Macros

#define SPI_CR1_BAUDRATE_FPCLK_DIV_2   (0x00 << 3)
 
#define SPI_CR1_BAUDRATE_FPCLK_DIV_4   (0x01 << 3)
 
#define SPI_CR1_BAUDRATE_FPCLK_DIV_8   (0x02 << 3)
 
#define SPI_CR1_BAUDRATE_FPCLK_DIV_16   (0x03 << 3)
 
#define SPI_CR1_BAUDRATE_FPCLK_DIV_32   (0x04 << 3)
 
#define SPI_CR1_BAUDRATE_FPCLK_DIV_64   (0x05 << 3)
 
#define SPI_CR1_BAUDRATE_FPCLK_DIV_128   (0x06 << 3)
 
#define SPI_CR1_BAUDRATE_FPCLK_DIV_256   (0x07 << 3)
 

Detailed Description

Macro Definition Documentation

◆ SPI_CR1_BAUDRATE_FPCLK_DIV_128

#define SPI_CR1_BAUDRATE_FPCLK_DIV_128   (0x06 << 3)

Definition at line 166 of file spi_common_all.h.

◆ SPI_CR1_BAUDRATE_FPCLK_DIV_16

#define SPI_CR1_BAUDRATE_FPCLK_DIV_16   (0x03 << 3)

Definition at line 163 of file spi_common_all.h.

◆ SPI_CR1_BAUDRATE_FPCLK_DIV_2

#define SPI_CR1_BAUDRATE_FPCLK_DIV_2   (0x00 << 3)

Definition at line 160 of file spi_common_all.h.

◆ SPI_CR1_BAUDRATE_FPCLK_DIV_256

#define SPI_CR1_BAUDRATE_FPCLK_DIV_256   (0x07 << 3)

Definition at line 167 of file spi_common_all.h.

◆ SPI_CR1_BAUDRATE_FPCLK_DIV_32

#define SPI_CR1_BAUDRATE_FPCLK_DIV_32   (0x04 << 3)

Definition at line 164 of file spi_common_all.h.

◆ SPI_CR1_BAUDRATE_FPCLK_DIV_4

#define SPI_CR1_BAUDRATE_FPCLK_DIV_4   (0x01 << 3)

Definition at line 161 of file spi_common_all.h.

◆ SPI_CR1_BAUDRATE_FPCLK_DIV_64

#define SPI_CR1_BAUDRATE_FPCLK_DIV_64   (0x05 << 3)

Definition at line 165 of file spi_common_all.h.

◆ SPI_CR1_BAUDRATE_FPCLK_DIV_8

#define SPI_CR1_BAUDRATE_FPCLK_DIV_8   (0x02 << 3)

Definition at line 162 of file spi_common_all.h.