Changeset c97d3dd in rtems


Ignore:
Timestamp:
Jul 2, 2013, 1:13:54 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
d91d50f
Parents:
cd7db89
git-author:
Sebastian Huber <sebastian.huber@…> (07/02/13 13:13:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/05/13 14:01:03)
Message:

bsp/mpc55xx: Round PLL divider up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-clock.c

    rcd7db89 rc97d3dd  
    4949    #define VCO_CLK_REF (MPC55XX_REFERENCE_CLOCK/(EPREDIV_VAL+1))
    5050    #define VCO_CLK_OUT (VCO_CLK_REF*(EMFD_VAL+16))
    51     #define ERFD_VAL    ((VCO_CLK_OUT/MPC55XX_SYSTEM_CLOCK)-1)
     51    #define ERFD_VAL \
     52      (((VCO_CLK_OUT + MPC55XX_SYSTEM_CLOCK - 1) / MPC55XX_SYSTEM_CLOCK)-1)
    5253
    5354    .esyncr2_tmp = {
Note: See TracChangeset for help on using the changeset viewer.