So you're thinking that a simple solution might be to just remove one (or perhaps reorder) of the timer choices from some of the pins? That should be pretty easy to do...
The code to output the timers is in build_pininfo.py. It's a bit hacky at the moment, but I wonder if there is some heuristic we could use to re-order the timers? For instance - If TIMx_CHy is only available on this pin, use that by default.
By the way, digitalPulse uses a single timer and otherwise runs everything in software (IIRC it's either TIM4 or TIM7 - I tried to use something that didn't conflict with any of the PWM timers).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
So you're thinking that a simple solution might be to just remove one (or perhaps reorder) of the timer choices from some of the pins? That should be pretty easy to do...
The code to output the timers is in
build_pininfo.py
. It's a bit hacky at the moment, but I wonder if there is some heuristic we could use to re-order the timers? For instance -If TIMx_CHy is only available on this pin, use that by default
.By the way, digitalPulse uses a single timer and otherwise runs everything in software (IIRC it's either TIM4 or TIM7 - I tried to use something that didn't conflict with any of the PWM timers).