Hijack an interrupt handler
Hijack an interrupt handler
I'm using the official STM core. I’m not sure, but the attachInterrupt functionality appears to use all of the GPIO EXTI interrupt handlers. Is there a method to disable this functionality so I can use an EXTI handler?
Yes you can by defining in a file named hal_conf_extra.h at sketch level:
https://github.com/stm32duino/wiki/wiki ... definition
Go to full postCode: Select all
#define HAL_EXTI_MODULE_DISABLED
Re: Hijack an interrupt handler
Yes you can by defining in a file named hal_conf_extra.h at sketch level:
https://github.com/stm32duino/wiki/wiki ... definition
Code: Select all
#define HAL_EXTI_MODULE_DISABLED
Re: Hijack an interrupt handler
a few solutions:
1. you can chain function pointers to your own isr - the cleanest solution;
2. if you have access to t he source code, you can do anything;
3. if your compiler allows "weak" attribute, you can try that as well.
1. you can chain function pointers to your own isr - the cleanest solution;
2. if you have access to t he source code, you can do anything;
3. if your compiler allows "weak" attribute, you can try that as well.