You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2023/07/07 14:20:12 UTC
[nuttx] branch releases/12.2 updated: Fix gpio outputs from being configured as interrupts in stm32f0l0g0 gpio driver
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch releases/12.2
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.2 by this push:
new 51f0fc57da Fix gpio outputs from being configured as interrupts in stm32f0l0g0 gpio driver
51f0fc57da is described below
commit 51f0fc57daaf0fb4a366f2757213230ff7231aa4
Author: Jorge Rodriguez Herranz <jo...@geotab.com>
AuthorDate: Thu Jun 29 17:26:39 2023 +0200
Fix gpio outputs from being configured as interrupts in stm32f0l0g0 gpio driver
---
arch/arm/src/stm32f0l0g0/stm32_gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/src/stm32f0l0g0/stm32_gpio.c b/arch/arm/src/stm32f0l0g0/stm32_gpio.c
index 6fd0e1d123..9271cb9d0b 100644
--- a/arch/arm/src/stm32f0l0g0/stm32_gpio.c
+++ b/arch/arm/src/stm32f0l0g0/stm32_gpio.c
@@ -307,7 +307,7 @@ int stm32_configgpio(uint32_t cfgset)
* Should it configured as an EXTI interrupt?
*/
- if ((cfgset & GPIO_EXTI) != 0)
+ if ((pinmode != GPIO_MODER_OUTPUT) && ((cfgset & GPIO_EXTI) != 0))
{
uint32_t regaddr;
int shift;