is it possible to disable HAL/Arduino handling of a specific timer interrupt? #2321
-
|
I saw that in HardwareTimer.cpp timer-ISR are surrounded by preprocessor conditions like Is there a possibility to disable certain timers (or part of other peripheral) instead of completely disabling like with HAL_TIM_MODULE_ONLY or HAL_TIM_MODULE_DISABLED? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
This is the CMSIS device definition (header file). When you undef in setup it is local to the cpp file (.ino). Even if you disable it globally, I do not advise as it is probably used by LL/HAL source files and CMSIS one. Finally to answer your title question, no it is not possible. The only way is to use |
Beta Was this translation helpful? Give feedback.
-
|
thanks! |
Beta Was this translation helpful? Give feedback.
This is the CMSIS device definition (header file). When you undef in setup it is local to the cpp file (.ino). Even if you disable it globally, I do not advise as it is probably used by LL/HAL source files and CMSIS one.
Finally to answer your title question, no it is not possible. The only way is to use
HAL_TIM_MODULE_ONLYto globally disable the usage of the HAL_TIM_MODULE by the Arduino API level.