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 2022/01/19 17:08:12 UTC

[incubator-nuttx] branch master updated: stm32f7 serial fix PM_CONFIG build

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 12c8a96  stm32f7 serial fix PM_CONFIG build
12c8a96 is described below

commit 12c8a9626cc11f40bdf8ed2781c4ae6388eb1f66
Author: Daniel Agar <da...@agar.ca>
AuthorDate: Tue Jan 18 14:52:31 2022 -0500

    stm32f7 serial fix PM_CONFIG build
---
 arch/arm/src/stm32f7/stm32_serial.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/src/stm32f7/stm32_serial.c b/arch/arm/src/stm32f7/stm32_serial.c
index cc9559c..ef0f342 100644
--- a/arch/arm/src/stm32f7/stm32_serial.c
+++ b/arch/arm/src/stm32f7/stm32_serial.c
@@ -1702,7 +1702,7 @@ static void up_setsuspend(struct uart_dev_s *dev, bool suspend)
         }
 
 #ifdef SERIAL_HAVE_RXDMA
-      if (priv->dev.ops == &g_uart_dma_ops && !priv->rxdmasusp)
+      if (priv->dev.ops == &g_uart_rxdma_ops && !priv->rxdmasusp)
         {
           /* Suspend Rx DMA. */
 
@@ -1714,7 +1714,7 @@ static void up_setsuspend(struct uart_dev_s *dev, bool suspend)
   else
     {
 #ifdef SERIAL_HAVE_RXDMA
-      if (priv->dev.ops == &g_uart_dma_ops && priv->rxdmasusp)
+      if (priv->dev.ops == &g_uart_rxdma_ops && priv->rxdmasusp)
         {
           /* Re-enable DMA. */