[INFO] The big TIM and IRQ rework

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Post Reply
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

[INFO] The big TIM and IRQ rework

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [INFO] The big TIM and IRQ rework

Post by Giovanni »

Extended to STM32H7 too.

Giovanni
MGeo
Posts: 22
Joined: Wed Jul 26, 2017 12:05 pm
Been thanked: 4 times

Re: [INFO] The big TIM and IRQ rework

Post by MGeo »

Good to know. Do you expect the rework to eventually apply to all families (F3, F4, ...)?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [INFO] The big TIM and IRQ rework

Post by Giovanni »

Hi,

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

Giovanni
Post Reply