You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, below evaluates to 0x18
#define SPI_REG_CR1_BR_PCLK_DIV_16 ( ( uint32_t) 3 << 3 )
and in hal, we have error check condition which checks 0x18> 7 sets default CR1 with 0.
if(pre_scalar_value > 7 )
SPIx->CR1 |= (0x00 << 3); //if pre_scalar_value > 7,then use default . that is 0
In order to fix, it is just enough to have below change
#define SPI_REG_CR1_BR_PCLK_DIV_16 3
The text was updated successfully, but these errors were encountered:
For example, below evaluates to 0x18
#define SPI_REG_CR1_BR_PCLK_DIV_16 ( ( uint32_t) 3 << 3 )
and in hal, we have error check condition which checks 0x18> 7 sets default CR1 with 0.
if(pre_scalar_value > 7 )
SPIx->CR1 |= (0x00 << 3); //if pre_scalar_value > 7,then use default . that is 0
In order to fix, it is just enough to have below change
#define SPI_REG_CR1_BR_PCLK_DIV_16 3
The text was updated successfully, but these errors were encountered: