Ignore:
Timestamp:
Oct 18, 2014, 8:55:37 AM (5 years ago)
Author:
Chris Nott <chrisn@…>
Branches:
4.11, master
Children:
a7eaaae
Parents:
ea05c438
git-author:
Chris Nott <chrisn@…> (10/18/14 08:55:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/14 06:31:10)
Message:

bsp/stm32f4: Add header files

Added register definition headers for STM32F4 ADC, EXTI, PWR, SYSCFG,
TIM, OTGFS and updated FLASH and RCC. Fixed PLL_Q for USB 48MHz
operation. Added flash prefetch enable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/stm32f4/startup/bspstart.c

    rea05c438 r040ed0b4  
    175175   * best if results in the 48MHz for the USB
    176176   */
    177   pll_q = ( (long) ( src_clk * pll_n + src_clk * pll_n / 2 ) ) / pll_m / 48;
     177  pll_q = ( (long) ( src_clk * pll_n ) ) / pll_m / 48;
    178178
    179179  if ( pll_q < 2 ) {
     
    258258   * TODO implement some math to use flash on as low latancy as possible
    259259   */
    260   flash->acr = FLASH_ACR_LATENCY( 5 ) | /* latency */
    261                FLASH_ACR_ICEN |       /* instruction cache */
    262                FLASH_ACR_DCEN;        /* data cache */
     260  flash->acr = STM32F4_FLASH_ACR_LATENCY( 5 ) | /* latency */
     261               STM32F4_FLASH_ACR_ICEN |       /* instruction cache */
     262               STM32F4_FLASH_ACR_DCEN |        /* data cache */
     263               STM32F4_FLASH_ACR_PRFTEN;
    263264
    264265  /* turn on PLL */
Note: See TracChangeset for help on using the changeset viewer.