Timestamp:
09/21/14 18:07:41 (10 years ago)
Author:
Tomasz Gregorek <tomasz.gregorek@…>
Branches:
4.11, 5, master
Children:
56ed56a6
Parents:
9a8b2984
git-author:
Tomasz Gregorek <tomasz.gregorek@…> (09/21/14 18:07:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/02/14 05:54:52)
Message:

bsp/stm32f4XXXX: System clock configuration

Added simple math to caclulate register values for the PLL
and for the prescalers. It will try to keep 48MHz for the USB OTG FS.
Also it will set latency on the Flash memory for the high speeds.

Limitations:
It is assumed that 1MHz resolution is enough.
Best fits for the clocks are achieved with multiplies of 42MHz.
Even though APB1, APB2 and AHB are calculated user is still required
to provide correct values for the bsp configuration for the:
STM32F4_PCLK1
STM32F4_PCLK2
STM32F4_HCLK (= system clock)
as those are used for the peripheral clocking calculations.

(No files)

Note: See TracChangeset for help on using the changeset viewer.