Page 1 of 1

[INFO] The big TIM and IRQ rework

Posted: Sun Dec 29, 2019 11:07 am
by Giovanni
Hi,

I committed a quite large change:

- Now ST, GPT, ICU and PWM all do cross-checks on used timers.
- Several platforms support IRQ sharing: G0, G4, F7, H7, L0, L4, L4+ (more will be added).
- Now timers with shared IRQs are no more a problem.
- Added ST support for TIM9..14.
- Added GPT support for TIM9..17 and TIM20..22.
- Added ICU support for TIM9..17 and TIM20..22.
- Added PWM support for TIM9..17 and TIM20..22.
- The mcuconf.h files for the mentioned platforms have been updated. Run the updater tool on your projects and you will be aligned automatically.

Note that timers with shared IRQs are only usable on updated platforms (G0, G4, F7, H7, L0, L4. L4+ so far).

The new direction is to have IRQ-related code in .inc files into the LLD directories, you can see this for EXTIv1, TIMv1, USARTv2 already, it will probably be extended. Those common mini-handlers should minimize the risk of errors.

Edit: Added more timers and more platforms to the set.

Giovanni

Re: [INFO] The big TIM and IRQ rework

Posted: Sun Jan 19, 2020 10:22 am
by Giovanni
Extended to STM32H7 too.

Giovanni

Re: [INFO] The big TIM and IRQ rework

Posted: Sat Mar 07, 2020 4:20 pm
by MGeo
Good to know. Do you expect the rework to eventually apply to all families (F3, F4, ...)?

Re: [INFO] The big TIM and IRQ rework

Posted: Sat Mar 07, 2020 4:29 pm
by Giovanni
Hi,

Eventually yes but not an high priority, after next release 20.x.

Giovanni