We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79277d6 commit 485253fCopy full SHA for 485253f
1 file changed
hal/spi/spi_drv_stm32.c
@@ -60,7 +60,7 @@ static void spi_tpm2_pin_setup(void)
60
{
61
#ifdef WOLFTPM2_NO_WOLFCRYPT
62
uint32_t reg;
63
- RCC_GPIO_CLOCK_ER |= SPI_PIO_CS_EN;
+ RCC_GPIO_CLOCK_ER |= SPI_PIO_CS_CEN;
64
reg = SPI_PIO_CS_MODE & ~ (0x03 << (SPI_CS_TPM * 2));
65
SPI_PIO_CS_MODE = reg | (1 << (SPI_CS_TPM * 2));
66
reg = SPI_PIO_CS_PUPD & ~(0x03 << (SPI_CS_TPM * 2));
@@ -168,4 +168,3 @@ void spi_release(void)
168
SPI1_CR1 = 0;
169
spi_pins_release();
170
}
171
-
0 commit comments