drivers/spi: stm32: fix warning in SYS_LOG_ERR macro
Following log subsystem rework, a warning poped-up in SYS_LOG_ERR in spi_stm32_get_err macro. Fix it by casting SPI_STM32_ERR_MSK on (u32_t) Fixes #10380 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
31340d8cdd
commit
85742e3c9a
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ static int spi_stm32_get_err(SPI_TypeDef *spi)
|
||||||
|
|
||||||
if (sr & SPI_STM32_ERR_MSK) {
|
if (sr & SPI_STM32_ERR_MSK) {
|
||||||
SYS_LOG_ERR("%s: err=%d", __func__,
|
SYS_LOG_ERR("%s: err=%d", __func__,
|
||||||
sr & SPI_STM32_ERR_MSK);
|
sr & (u32_t)SPI_STM32_ERR_MSK);
|
||||||
|
|
||||||
/* OVR error must be explicitly cleared */
|
/* OVR error must be explicitly cleared */
|
||||||
if (LL_SPI_IsActiveFlag_OVR(spi)) {
|
if (LL_SPI_IsActiveFlag_OVR(spi)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue