Skip to content

Commit 3734269

Browse files
committed
STM32L4 : correct ST HAL API call
- ll_utils: compilation issue - GPIO: mode was not allowed by ST HAL API
1 parent 64e92a5 commit 3734269

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

targets/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_ll_utils.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@
3939
#include "stm32l4xx_ll_rcc.h"
4040
#include "stm32l4xx_ll_system.h"
4141
#include "stm32l4xx_ll_pwr.h"
42-
#ifdef USE_FULL_ASSERT
43-
#include "stm32_assert.h"
44-
#else
45-
#define assert_param(expr) ((void)0U)
46-
#endif
4742

4843
/** @addtogroup STM32L4xx_LL_Driver
4944
* @{

targets/TARGET_STM/TARGET_STM32L4/gpio_irq_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void gpio_irq_set(gpio_irq_t *obj, gpio_irq_event event, uint32_t enable)
304304
mode = STM_MODE_IT_FALLING;
305305
obj->event = EDGE_FALL;
306306
} else { // NONE or RISE
307-
mode = STM_MODE_IT_EVT_RESET;
307+
mode = STM_MODE_INPUT;
308308
obj->event = EDGE_NONE;
309309
}
310310
}
@@ -313,7 +313,7 @@ void gpio_irq_set(gpio_irq_t *obj, gpio_irq_event event, uint32_t enable)
313313
mode = STM_MODE_IT_RISING;
314314
obj->event = EDGE_RISE;
315315
} else { // NONE or FALL
316-
mode = STM_MODE_IT_EVT_RESET;
316+
mode = STM_MODE_INPUT;
317317
obj->event = EDGE_NONE;
318318
}
319319
}

0 commit comments

Comments
 (0)