Ignore:
Timestamp:
Jul 18, 2012, 7:26:13 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
64d72e8
Parents:
b9b3f3b7
git-author:
Sebastian Huber <sebastian.huber@…> (07/18/12 07:26:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/18/12 07:46:14)
Message:

bsp/mpc55xx: Add MPC55XX_SYSTEM_CLOCK_DIVIDER

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c

    rb9b3f3b7 rdafacfa7  
    9696        ppc_cpu_id_t myCpu;
    9797        ppc_cpu_revision_t myCpuRevision;
    98 #if defined(MPC55XX_BOARD_MPC5674FEVB)
    99         unsigned system_clock_divider = 2;
    100 #else
    101         unsigned system_clock_divider = 1;
    102 #endif
    10398
    10499        null_pointer_protection();
     
    120115         * determine clock speed
    121116         */
    122         bsp_clock_speed = mpc55xx_get_system_clock() / system_clock_divider;
     117        bsp_clock_speed = mpc55xx_get_system_clock() / MPC55XX_SYSTEM_CLOCK_DIVIDER;
    123118
    124119        /* Time reference value */
Note: See TracChangeset for help on using the changeset viewer.