[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.
User avatar
Giovanni
Site Admin
Posts: 12743
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 693 times
Been thanked: 572 times
Contact:

[INFO] The big TIM and IRQ rework

Postby Giovanni » 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

User avatar
Giovanni
Site Admin
Posts: 12743
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 693 times
Been thanked: 572 times
Contact:

Re: [INFO] The big TIM and IRQ rework

Postby Giovanni » Sun Jan 19, 2020 10:22 am

Extended to STM32H7 too.

Giovanni

MGeo
Posts: 21
Joined: Wed Jul 26, 2017 12:05 pm
Been thanked: 3 times

Re: [INFO] The big TIM and IRQ rework

Postby MGeo » Sat Mar 07, 2020 4:20 pm

Good to know. Do you expect the rework to eventually apply to all families (F3, F4, ...)?

User avatar
Giovanni
Site Admin
Posts: 12743
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 693 times
Been thanked: 572 times
Contact:

Re: [INFO] The big TIM and IRQ rework

Postby Giovanni » Sat Mar 07, 2020 4:29 pm

Hi,

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

Giovanni


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 5 guests