[INFO] The big TIM and IRQ rework
Posted: Sun Dec 29, 2019 11:07 am
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
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