Changeset bfa2b8c in rtems


Ignore:
Timestamp:
Aug 27, 2014, 5:50:36 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
5826a1b
Parents:
6e60140d
Message:

virtex5/.../bsp.h: Add BSP_Convert_decrementer() macro required by MPC6xx timer driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/virtex5/include/bsp.h

    r6e60140d rbfa2b8c  
    1 /*  bsp.h
     1/*  @file
    22 *
    33 *  This include file contains all GEN405 board IO definitions.
    4  *
     4 */
     5
     6/*
    57 * derived from helas403/include/bsp.h:
    68 *  Id: bsp.h,v 1.4 2001/06/18 17:01:48 joel Exp
     
    6870extern bool bsp_timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
    6971
    70 extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
     72/*
     73 * Bus Frequency
     74 */
     75extern unsigned int BSP_bus_frequency;
     76/*
     77 * Processor Clock Frequency
     78 */
     79extern unsigned int BSP_processor_frequency;
     80/*
     81 * Time base divisior (how many tick for 1 second).
     82 */
     83extern unsigned int BSP_time_base_divisor;
     84
     85/*
     86 * Macro used by shared MPC6xx timer driver
     87 */
     88#define BSP_Convert_decrementer( _value ) \
     89  ((unsigned long long) ((((unsigned long long)BSP_time_base_divisor) * 1000000ULL) /((unsigned long long) BSP_bus_frequency)) * ((unsigned long long) (_value)))
     90
     91
    7192#endif /* ASM */
    7293
Note: See TracChangeset for help on using the changeset viewer.