This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new a2cafe3bd hw/drivers/i2s: Fix I2S driver for STM32F1 family
a2cafe3bd is described below
commit a2cafe3bd6baf819bc189343511c394f889bd50b
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed Oct 2 16:08:48 2024 +0200
hw/drivers/i2s: Fix I2S driver for STM32F1 family
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]>
---
hw/drivers/i2s/i2s_stm32f1/src/i2s_stm32f1.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/hw/drivers/i2s/i2s_stm32f1/src/i2s_stm32f1.c
b/hw/drivers/i2s/i2s_stm32f1/src/i2s_stm32f1.c
index 9df4b5bbc..1ff3488d4 100644
--- a/hw/drivers/i2s/i2s_stm32f1/src/i2s_stm32f1.c
+++ b/hw/drivers/i2s/i2s_stm32f1/src/i2s_stm32f1.c
@@ -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;
}