External IRQ control via Cortex library or via HAL library
Hi, I'm trying to use IRQ Software calls with Nucleo-F4 boards in STMCubeMx 1.8 environment.
The UM1725 - Rev 7, pag. 346, tells me to use the HAL_Generate_SWI.
The call, included in stm32f4xx_hal_exti, requires you to define two simple structures: EXTI_HandleTypeDef and EXTI_ConfigTypeDef and the test program seems to work.
I have noticed that when I generate the configuration code with MX, the NVIC libraries are still used for interrupts , present in stm32f4xx_hal_cortex. In the Cortex Library there in no SW IRQ generation call.
The questions are these:
for external interrupts, when to use the library in stm32f4xx_hal_exti and when to use those in stm32f4xx_hal_cortex?
Anyone have an example of SWI interrupt handling for F4 models? (nothing in the web)
Many Thanks.
LV
