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/05/12 06:49:40 UTC

[incubator-nuttx] branch master updated: Fix broken tiva_gpioirqclear

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 f6f826c09a Fix broken tiva_gpioirqclear
f6f826c09a is described below

commit f6f826c09ad91ff0624c92077d294b5e0cf801ae
Author: Matthew Trescott <ma...@gmail.com>
AuthorDate: Thu May 12 01:12:53 2022 -0400

    Fix broken tiva_gpioirqclear
---
 arch/arm/src/tiva/common/lmxx_tm4c_gpioirq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/tiva/common/lmxx_tm4c_gpioirq.c b/arch/arm/src/tiva/common/lmxx_tm4c_gpioirq.c
index 812055098f..2f8df29b98 100644
--- a/arch/arm/src/tiva/common/lmxx_tm4c_gpioirq.c
+++ b/arch/arm/src/tiva/common/lmxx_tm4c_gpioirq.c
@@ -741,7 +741,7 @@ void tiva_gpioirqclear(pinconfig_t pinconfig)
    * logic register. Writing a 0 has no effect."
    */
 
-  putreg32((1 << pin), base + TIVA_GPIO_ICR_OFFSET);
+  putreg32(pin, base + TIVA_GPIO_ICR_OFFSET);
 }
 
 #endif /* CONFIG_TIVA_GPIO_IRQS */