Is it allowed to change timer PSC after gptStart?
Posted: Sat Oct 05, 2019 1:23 pm
I need to generate a wide range of frequencies dynamically and therefore adjusting both ARR and PSC on the fly is necessary, something like this:
RM says PSC can be changed on the fly but is there something in ChibiOS that makes this a bad idea?
Thanks,
Kaj
Code: Select all
gptChangeInterval(gptp, arr);
gptp->tim->PSC = psc;
RM says PSC can be changed on the fly but is there something in ChibiOS that makes this a bad idea?
Thanks,
Kaj