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/09/02 02:42:15 UTC

[incubator-nuttx] branch master updated: stm32h7\stm32_fdcan_sock: fix the FDCAN_LOOPBACK config macros

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 27fbca771f stm32h7\stm32_fdcan_sock: fix the FDCAN_LOOPBACK config macros
27fbca771f is described below

commit 27fbca771f64e50d12caaf893de81f772874c1e2
Author: Rajvinder Kaur <ra...@hotmail.com>
AuthorDate: Thu Sep 1 15:05:02 2022 -0400

    stm32h7\stm32_fdcan_sock: fix the FDCAN_LOOPBACK config macros
---
 arch/arm/src/stm32h7/stm32_fdcan_sock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/src/stm32h7/stm32_fdcan_sock.c b/arch/arm/src/stm32h7/stm32_fdcan_sock.c
index a86f71dff2..dfcd5e0093 100644
--- a/arch/arm/src/stm32h7/stm32_fdcan_sock.c
+++ b/arch/arm/src/stm32h7/stm32_fdcan_sock.c
@@ -2075,14 +2075,14 @@ int fdcan_initialize(struct fdcan_driver_s *priv)
 
   /* Operation Configuration */
 
-#ifdef STM32H7_FDCAN_LOOPBACK
+#ifdef CONFIG_STM32H7_FDCAN_LOOPBACK
   /* Enable External Loopback Mode (Rx pin disconnected) (RM0433 pg 2494) */
 
   modifyreg32(priv->base + STM32_FDCAN_CCCR_OFFSET, 0, FDCAN_CCCR_TEST);
   modifyreg32(priv->base + STM32_FDCAN_TEST_OFFSET, 0, FDCAN_TEST_LBCK);
 #endif
 
-#ifdef STM32H7_FDCAN_LOOPBACK_INTERNAL
+#ifdef CONFIG_STM32H7_FDCAN_LOOPBACK_INTERNAL
   /* Enable Bus Monitoring / Restricted Op Mode (RM0433 pg 2492, 2494) */
 
   modifyreg32(priv->base + STM32_FDCAN_CCCR_OFFSET, 0, FDCAN_CCCR_MON);