Hi,
Just a note, a clock management API has been added to HAL, it allows to switch clocks among multiple configurations (including potentially also power management).
Two configurations are pre-defined:
1) Reset, post-reset MCU state.
2) Default, settings in mcuconf.h.
More configuration can be defined by user.
So far it is just the API without implementations, there are several issues left:
1) All STM32 drives assume a static clock configuration and use macros to determine frequencies in the various clock sources.
2) In several places clocks are checked using preprocessor directives, this does not work if clocks can change at runtime.
The work ahead is to rework existing drivers to use the new system (while keeping compatibility with the old static one).
Giovanni
[DEV] HAL clock management API
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Return to “Development and Feedback”
Who is online
Users browsing this forum: No registered users and 53 guests