100 p->trans_insert_idx = 0;
101 p->trans_extract_idx = 0;
115 void spi0_slave_init(
void)
118 spi0_slave_arch_init();
126 void spi1_slave_init(
void)
129 spi1_slave_arch_init();
137 void spi2_slave_init(
void)
140 spi2_slave_arch_init();
148 void spi3_slave_init(
void)
151 spi3_slave_arch_init();
158 p->trans_insert_idx = 0;
159 p->trans_extract_idx = 0;
void spi_init(struct spi_periph *p)
Initialize a spi peripheral.
void spi_slave_init(struct spi_periph *p)
Initialize a spi peripheral in slave mode.
void spi1_arch_init(void)
Architecture dependent SPI1 initialization.
void spi0_arch_init(void)
Architecture dependent SPI0 initialization.
struct spi_periph spi2
receive transferred over DMA
void spi2_arch_init(void)
Architecture dependent SPI2 initialization.
struct spi_periph spi1
receive transferred over DMA
SPI peripheral structure.
Architecture independent SPI (Serial Peripheral Interface) API.