Skip to content

Commit 00fff87

Browse files
committed
Revert SPIx_CR2 change.
1 parent a342b78 commit 00fff87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hal/spi/spi_drv_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void spi_init(int polarity, int phase)
156156
APB2_CLOCK_ER |= SPI1_APB2_CLOCK_ER_VAL;
157157
spi1_reset();
158158
SPI1_CR1 = SPI_CR1_MASTER | (5 << 3) | (polarity << 1) | (phase << 0);
159-
SPI1_CR2 = SPI_CR2_SSOE | (0x07 << 8);
159+
SPI1_CR2 |= SPI_CR2_SSOE;
160160
SPI1_CR1 |= SPI_CR1_SPI_EN;
161161
}
162162
}

0 commit comments

Comments
 (0)