Skip to content

Commit

Permalink
[LL][SPI] Set bit TCRCINI instead of RCRCINI in LL_SPI_SetTxCRCInitPa…
Browse files Browse the repository at this point in the history
…ttern()
  • Loading branch information
ALABSTM committed Aug 25, 2023
1 parent 6026721 commit 91d4c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ __STATIC_INLINE uint32_t LL_SPI_IsEnabledIOLock(SPI_TypeDef *SPIx)
*/
__STATIC_INLINE void LL_SPI_SetTxCRCInitPattern(SPI_TypeDef *SPIx, uint32_t TXCRCInitAll)
{
MODIFY_REG(SPIx->CR1, SPI_CR1_RCRCINI, TXCRCInitAll);
MODIFY_REG(SPIx->CR1, SPI_CR1_TCRCINI, TXCRCInitAll);
}

/**
Expand Down

0 comments on commit 91d4c89

Please sign in to comment.