You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/09/14 14:51:08 UTC
[incubator-nuttx] branch master updated: stm32*7/stm32_serial.c:
Don't fake an interrupt when interrupts are not suppressed.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 198c30e stm32*7/stm32_serial.c: Don't fake an interrupt when interrupts are not suppressed.
198c30e is described below
commit 198c30eaa6202599ff1df506acfb36a53ea85677
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Sun Sep 12 16:34:36 2021 +0200
stm32*7/stm32_serial.c: Don't fake an interrupt when interrupts are not
suppressed.
Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
arch/arm/src/stm32f7/stm32_serial.c | 1 +
arch/arm/src/stm32h7/stm32_serial.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/src/stm32f7/stm32_serial.c b/arch/arm/src/stm32f7/stm32_serial.c
index 88fb211..cc9559c 100644
--- a/arch/arm/src/stm32f7/stm32_serial.c
+++ b/arch/arm/src/stm32f7/stm32_serial.c
@@ -3336,6 +3336,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
up_restoreusartint(priv, ie);
+#else
/* Fake a TX interrupt here by just calling uart_xmitchars() with
* interrupts disabled (note this may recurse).
*/
diff --git a/arch/arm/src/stm32h7/stm32_serial.c b/arch/arm/src/stm32h7/stm32_serial.c
index 0438108..6bc4225 100644
--- a/arch/arm/src/stm32h7/stm32_serial.c
+++ b/arch/arm/src/stm32h7/stm32_serial.c
@@ -3531,6 +3531,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
up_restoreusartint(priv, ie);
+#else
/* Fake a TX interrupt here by just calling uart_xmitchars() with
* interrupts disabled (note this may recurse).
*/