The extended interrupt and event controller of the STM32H7: each line raises an interrupt of the NVIC, given by the tree, which lines may share.
More...
The extended interrupt and event controller of the STM32H7: each line raises an interrupt of the NVIC, given by the tree, which lines may share.
Configurable lines latch their edges, direct ones, given with PBL_IRQ_TYPE_LEVEL_HIGH, pass a peripheral interrupt through and only wake the core. A line unmasked on one core is busy for the other.
A configurable line only latches an edge while unmasked, so disabling it leaves it unmasked: an edge it then takes masks it, and enabling it again raises that edge once more.
◆ pbl_intc_stm32_exti_state
| struct pbl_intc_stm32_exti_state |
◆ pbl_intc_stm32_exti
| struct pbl_intc_stm32_exti |
| Data Fields |
|
uintptr_t |
base |
Registers. |
|
struct pbl_hwspinlock |
hwlock |
Lock of the registers shared with the other core. |
|
struct pbl_intc |
intc |
Interrupt controller. |
|
const uint16_t * |
parents |
Interrupt of the NVIC each line raises. |
|
struct pbl_intc_stm32_exti_state * |
state |
State. |
◆ pbl_intc_stm32_exti_parent
| struct pbl_intc_stm32_exti_parent |
An interrupt of the NVIC and the lines raising it.
◆ PBL_INTC_STM32_EXTI_DEFINE
| #define PBL_INTC_STM32_EXTI_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_hwlock, |
|
|
|
_connect, |
|
|
|
... |
|
) |
| |
Value:
static const uint16_t sym##_parents[] = {__VA_ARGS__}; \
.intc =
PBL_INTC_INIT(sym, _name,
nullptr,
nullptr, &pbl_intc_stm32_exti_ops), \
.base = (_base), .hwlock = _hwlock, .parents = sym##_parents, .state = &sym##_exti_state, \
}
#define PBL_DEVICE_INSTANCE(sym, type, class_type, member)
Start the definition of a registered instance, followed by its initializer.
Definition device.h:243
STM32H7 EXTI.
Definition stm32_exti.h:45
State.
Definition stm32_exti.h:35
#define PBL_INTC_STM32_EXTI_WORDS
Words of the masks of the lines.
Definition stm32_exti.h:32
An interrupt controller.
Definition intc.h:94
#define PBL_INTC_INIT(sym, _name, _init, _parent, _ops)
Initializer for the struct pbl_intc of controller sym.
Definition intc.h:128
#define PBL_ARRAY_SIZE(array)
Get the number of elements of an array.
Definition size.h:40
Define the EXTI.
- Parameters
-
◆ PBL_INTC_STM32_EXTI_NO_PARENT
| #define PBL_INTC_STM32_EXTI_NO_PARENT UINT16_MAX |
Line without an interrupt of the NVIC.
◆ PBL_INTC_STM32_EXTI_PARENT
| #define PBL_INTC_STM32_EXTI_PARENT |
( |
|
sym, |
|
|
|
_irq, |
|
|
|
... |
|
) |
| |
Value:
.lines = {__VA_ARGS__}, \
}; \
PBL_IRQ_CONNECT_NUM(_irq, CONFIG_INTC_STM32_EXTI_IRQ_PRIO, pbl_intc_stm32_exti_isr, \
&sym##_parent_##_irq, 0);
const struct pbl_intc_stm32_exti * exti
Controller.
Definition stm32_exti.h:61
An interrupt of the NVIC and the lines raising it.
Definition stm32_exti.h:59
Connect an interrupt of the NVIC to the lines raising it.
- Parameters
-
| sym | Symbol of the controller. |
| _irq | Interrupt. |
| ... | Mask of the lines, as words. |
◆ PBL_INTC_STM32_EXTI_WORDS
| #define PBL_INTC_STM32_EXTI_WORDS 3U |
Words of the masks of the lines.