IO operation functions.
More...
IO operation functions.
EXTI IO functions.
===============================================================================
##### IO operation functions #####
===============================================================================
◆ HAL_EXTI_ClearPending()
Clear interrupt pending bit of a dedicated line.
- Parameters
-
| hexti | Exti handle. |
| Edge | Specify which pending edge as to be clear. This parameter can be one of the following values:
- EXTI_TRIGGER_RISING_FALLING This parameter is kept for compatibility with other series.
|
- Return values
-
Definition at line 579 of file stm32l4xx_hal_exti.c.
581 __IO uint32_t *regaddr;
591 offset = ((hexti->
Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT);
592 maskline = (1uL << (hexti->
Line & EXTI_PIN_MASK));
595 regaddr = (&EXTI->PR1 + (EXTI_CONFIG_OFFSET * offset));
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_EXTI_GenerateSWI()
Generate a software interrupt for a dedicated line.
- Parameters
-
- Return values
-
Definition at line 607 of file stm32l4xx_hal_exti.c.
609 __IO uint32_t *regaddr;
618 offset = ((hexti->
Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT);
619 maskline = (1uL << (hexti->
Line & EXTI_PIN_MASK));
621 regaddr = (&EXTI->SWIER1 + (EXTI_CONFIG_OFFSET * offset));
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_EXTI_GetPending()
Get interrupt pending bit of a dedicated line.
- Parameters
-
| hexti | Exti handle. |
| Edge | Specify which pending edge as to be checked. This parameter can be one of the following values:
- EXTI_TRIGGER_RISING_FALLING This parameter is kept for compatibility with other series.
|
- Return values
-
| 1 | if interrupt is pending else 0. |
Definition at line 543 of file stm32l4xx_hal_exti.c.
545 __IO uint32_t *regaddr;
557 offset = ((hexti->
Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT);
558 linepos = (hexti->
Line & EXTI_PIN_MASK);
559 maskline = (1uL << linepos);
562 regaddr = (&EXTI->PR1 + (EXTI_CONFIG_OFFSET * offset));
565 regval = ((*regaddr & maskline) >> linepos);
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_EXTI_IRQHandler()
Handle EXTI interrupt request.
- Parameters
-
- Return values
-
Definition at line 505 of file stm32l4xx_hal_exti.c.
507 __IO uint32_t *regaddr;
513 offset = ((hexti->
Line & EXTI_REG_MASK) >> EXTI_REG_SHIFT);
514 maskline = (1uL << (hexti->
Line & EXTI_PIN_MASK));
517 regaddr = (&EXTI->PR1 + (EXTI_CONFIG_OFFSET * offset));
518 regval = (*regaddr & maskline);
void(* PendingCallback)(void)