Skip to content

Commit

Permalink
hw/drivers/i2s: Fix I2S driver for STM32F1 family
Browse files Browse the repository at this point in the history
case HAL_I2S_STATE_BUSY_TX_RX is not valid for this chip
It should be only present for F4, F3 and H7.

Definition was present in mynewt copy of stm32f1xx_hal_i2s.h
and probably was part of Stm32Cube package, but it is
not present in stm32f1xx_hal_driver

Signed-off-by: Jerzy Kasenberg <[email protected]>
  • Loading branch information
kasjer committed Oct 3, 2024
1 parent f4a8906 commit a2cafe3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hw/drivers/i2s/i2s_stm32f1/src/i2s_stm32f1.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@ i2s_driver_start(struct i2s *i2s)
case HAL_I2S_STATE_BUSY:
case HAL_I2S_STATE_BUSY_RX:
case HAL_I2S_STATE_BUSY_TX:
case HAL_I2S_STATE_BUSY_TX_RX:
break;
default:
rc = I2S_ERR_INTERNAL;
}
Expand Down

0 comments on commit a2cafe3

Please sign in to comment.