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
[INFO] The big TIM and IRQ rework
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: [INFO] The big TIM and IRQ rework
Good to know. Do you expect the rework to eventually apply to all families (F3, F4, ...)?
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: [INFO] The big TIM and IRQ rework
Hi,
Eventually yes but not an high priority, after next release 20.x.
Giovanni
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 15 guests