I would like to be able to change the usage of a timer at run-time between GPT and QEI (encoder). Both are not used at the same time.
I know that QEI is not (yet?) part of ChibiOS HAL, only ChibiOS-Contrib, but as a general question, is it possible to change the usage of a timer at run-time?
My issue for now is that if I enable both GPT and QEI on the same timer in mcuconf.h, I get the error:
Code: Select all
"GPTD4 requires TIM4 but the timer is already used"
So, do I have to comment out this check in the ChibiOS source code or is there a workaround for that issue?