Changeset 8fbe2e6 in rtems


Ignore:
Timestamp:
Sep 4, 2014, 1:59:49 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
6cd2074
Parents:
c080c343
git-author:
Joel Sherrill <joel.sherrill@…> (09/04/14 13:59:49)
git-committer:
Joel Sherrill <joel.sherrill@…> (09/16/14 21:09:12)
Message:

Use correct prototype of benchmark_timer_read()

This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.

I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.

Files:
1 deleted
110 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/edb7312/timer/timer.c

    rc080c343 r8fbe2e6  
    4747#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    4848
    49 uint32_t benchmark_timer_read( void )
     49benchmark_timer_t benchmark_timer_read( void )
    5050{
    5151  uint16_t         t;
  • c/src/lib/libbsp/arm/gba/timer/timer.c

    rc080c343 r8fbe2e6  
    9595 *  @return Timer value in microseconds
    9696 */
    97 uint32_t benchmark_timer_read( void )
     97benchmark_timer_t benchmark_timer_read( void )
    9898{
    9999  uint32_t  ticks;
  • c/src/lib/libbsp/arm/lpc176x/benchmark_timer/benchmark_timer.c

    rc080c343 r8fbe2e6  
    3333}
    3434
    35 uint32_t benchmark_timer_read( void )
     35benchmark_timer_t benchmark_timer_read( void )
    3636{
    3737  uint32_t delta = lpc176x_timer_get_timer_value( LPC176X_TIMER_1 ) -
  • c/src/lib/libbsp/arm/lpc24xx/misc/timer.c

    rc080c343 r8fbe2e6  
    2323#include <bsp.h>
    2424#include <rtems/btimer.h>
    25 #include <rtems/timerdrv.h>
    2625
    2726#include <bsp/system-clocks.h>
     
    3635}
    3736
    38 uint32_t benchmark_timer_read(void)
     37benchmark_timer_t benchmark_timer_read(void)
    3938{
    4039  uint32_t delta = lpc24xx_timer() - benchmark_timer_base;
  • c/src/lib/libbsp/arm/lpc32xx/misc/timer.c

    rc080c343 r8fbe2e6  
    2222#include <rtems.h>
    2323#include <rtems/btimer.h>
    24 #include <rtems/timerdrv.h>
    2524
    2625#include <bsp.h>
     
    3332}
    3433
    35 uint32_t benchmark_timer_read(void)
     34benchmark_timer_t benchmark_timer_read(void)
    3635{
    3736  return lpc32xx_timer() - benchmark_timer_base;
  • c/src/lib/libbsp/arm/raspberrypi/misc/timer.c

    rc080c343 r8fbe2e6  
    1818
    1919#include <rtems.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121#include <bsp/raspberrypi.h>
    2222
     
    3030}
    3131
    32 uint32_t benchmark_timer_read(void)
     32benchmark_timer_t benchmark_timer_read(void)
    3333{
    3434  uint32_t delta = BCM2835_REG(BCM2835_GPU_TIMER_CLO) - benchmark_timer_base;
  • c/src/lib/libbsp/arm/tms570/clock/benchmark_timer.c

    rc080c343 r8fbe2e6  
    2929#include <bsp/system-clocks.h>
    3030#include <rtems/btimer.h>
    31 #include <rtems/timerdrv.h>
    3231
    3332bool benchmark_timer_find_average_overhead = false;
     
    4039}
    4140
    42 uint32_t benchmark_timer_read(void)
     41benchmark_timer_t benchmark_timer_read(void)
    4342{
    4443  uint32_t delta = _CPU_Counter_read() - benchmark_timer_base;
  • c/src/lib/libbsp/i386/pc386/timer/timer.c

    rc080c343 r8fbe2e6  
    5252volatile unsigned int     fastLoop1ms, slowLoop1ms;
    5353
    54 void     (*benchmark_timer_initialize_function)(void) = 0;
    55 uint32_t (*benchmark_timer_read_function)(void) = 0;
    56 void     (*Timer_exit_function)(void) = 0;
     54void              (*benchmark_timer_initialize_function)(void) = 0;
     55benchmark_timer_t (*benchmark_timer_read_function)(void) = 0;
     56void              (*Timer_exit_function)(void) = 0;
    5757
    5858/* timer (int 08h) Interrupt Service Routine (defined in 'timerisr.s') */
  • c/src/lib/libbsp/lm32/shared/milkymist_timer/timer.c

    rc080c343 r8fbe2e6  
    4848#define LEAST_VALID       4  /* Don't trust a clicks value lower than this */
    4949
    50 uint32_t benchmark_timer_read(void)
     50benchmark_timer_t benchmark_timer_read(void)
    5151{
    5252  uint32_t ticks;
  • c/src/lib/libbsp/lm32/shared/timer/timer.c

    rc080c343 r8fbe2e6  
    7777#define LEAST_VALID       4  /* Don't trust a clicks value lower than this */
    7878
    79 uint32_t benchmark_timer_read( void )
     79benchmark_timer_t benchmark_timer_read( void )
    8080{
    8181  uint32_t ticks;
  • c/src/lib/libbsp/m32c/m32cbsp/timer/timer.c

    rc080c343 r8fbe2e6  
    4242}
    4343
    44 uint32_t benchmark_timer_read(void)
     44benchmark_timer_t benchmark_timer_read(void)
    4545{
    4646  uint32_t count;
  • c/src/lib/libbsp/m68k/gen68302/timer/timer.c

    rc080c343 r8fbe2e6  
    6565 * Return timer value in 1/2-microsecond units
    6666 */
    67 uint32_t benchmark_timer_read( void )
     67benchmark_timer_t benchmark_timer_read( void )
    6868{
    6969  uint16_t         clicks;
  • c/src/lib/libbsp/m68k/idp/timer/timer.c

    rc080c343 r8fbe2e6  
    5050#define LEAST_VALID       10 /* Don't trust a value lower than this */
    5151
    52 uint32_t benchmark_timer_read(void)
     52benchmark_timer_t benchmark_timer_read(void)
    5353{
    5454  uint8_t         data;
  • c/src/lib/libbsp/m68k/mcf52235/timer/timer.c

    rc080c343 r8fbe2e6  
    3030 * Return timer value in microsecond units
    3131 */
    32 uint32_t benchmark_timer_read(void)
     32benchmark_timer_t benchmark_timer_read(void)
    3333{
    3434  return MCF_DTIM3_DTCN;
  • c/src/lib/libbsp/m68k/mcf5225x/timer/timer.c

    rc080c343 r8fbe2e6  
    3030 * Return timer value in microsecond units
    3131 */
    32 uint32_t benchmark_timer_read(void)
     32benchmark_timer_t benchmark_timer_read(void)
    3333{
    3434  return MCF_DTIM3_DTCN;
  • c/src/lib/libbsp/m68k/mcf5329/timer/timer.c

    rc080c343 r8fbe2e6  
    3030 * Return timer value in microsecond units
    3131 */
    32 uint32_t benchmark_timer_read(void)
     32benchmark_timer_t benchmark_timer_read(void)
    3333{
    3434  return MCF_DTIM3_DTCN;
  • c/src/lib/libbsp/m68k/mrm332/timer/timer.c

    rc080c343 r8fbe2e6  
    3939 * Return timer value in 1/2-microsecond units
    4040 */
    41 uint32_t benchmark_timer_read( void )
     41benchmark_timer_t benchmark_timer_read( void )
    4242{
    4343  uint32_t         total;
  • c/src/lib/libbsp/m68k/mvme136/timer/timer.c

    rc080c343 r8fbe2e6  
    5151#define LEAST_VALID       10 /* Don't trust a value lower than this */
    5252
    53 uint32_t benchmark_timer_read(void)
     53benchmark_timer_t benchmark_timer_read(void)
    5454{
    5555/*
  • c/src/lib/libbsp/m68k/mvme147/timer/timer.c

    rc080c343 r8fbe2e6  
    4646#define LEAST_VALID       10 /* Don't trust a value lower than this */
    4747
    48 uint32_t benchmark_timer_read(void)
     48benchmark_timer_t benchmark_timer_read(void)
    4949{
    5050  uint32_t         total;
  • c/src/lib/libbsp/m68k/mvme162/timer/timer.c

    rc080c343 r8fbe2e6  
    5151#define LEAST_VALID       10U   /* Don't trust a value lower than this */
    5252
    53 uint32_t benchmark_timer_read(void)
     53benchmark_timer_t benchmark_timer_read(void)
    5454{
    5555  uint32_t            total;
  • c/src/lib/libbsp/m68k/mvme167/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  timer.c
     1/**
     2 * @file
    23 *
    3  *  This file manages the benchmark timer used by the RTEMS Timing Test Suite.
    4  *  Each measured time period is demarcated by calls to benchmark_timer_initialize() and
    5  *  benchmark_timer_read().  benchmark_timer_read() usually returns the number of microseconds
    6  *  since benchmark_timer_initialize() exitted.
     4 * This file manages the benchmark timer used by the RTEMS Timing Test Suite.
     5 * Each measured time period is demarcated by calls to
     6 * benchmark_timer_initialize() and benchmark_timer_read().
     7 * benchmark_timer_read() usually returns the number of microseconds
     8 * since benchmark_timer_initialize() exitted.
    79 *
    8  *  These functions are prototyped in rtems/c/src/lib/include/timerdrv.h and
    9  *  must be implemented as part of the BSP.
     10 * These functions are prototyped in rtems/btimer.h and
     11 * must be implemented as part of the BSP.
    1012 *
    11  *  This port does not allow the application to select which timer on the
    12  *  MVME167 to use for the timer, nor does it allow the application to
    13  *  configure the timer. The timer uses the VMEchip2 Tick Timer #1. This timer
    14  *  is distinct from the clock, which uses Tick Timer #2 in the VMEchip2.
     13 * This port does not allow the application to select which timer on the
     14 * MVME167 to use for the timer, nor does it allow the application to
     15 * configure the timer. The timer uses the VMEchip2 Tick Timer #1. This timer
     16 * is distinct from the clock, which uses Tick Timer #2 in the VMEchip2.
    1517 *
    16  *  All page references are to the MVME166/MVME167/MVME187 Single Board
    17  *  Computer Programmer's Reference Guide (MVME187PG/D2) with the April 1993
     18 * All page references are to the MVME166/MVME167/MVME187 Single Board
     19 * Computer Programmer's Reference Guide (MVME187PG/D2) with the April 1993
    1820 *  supplements/addenda (MVME187PG/D2A1).
    19  *
     21 */
     22
     23/*
    2024 *  COPYRIGHT (c) 1989-1999.
    2125 *  On-Line Applications Research Corporation (OAR).
     
    105109 *  below this are "noise" and zero is returned.
    106110 */
    107 uint32_t benchmark_timer_read(void)
     111benchmark_timer_t benchmark_timer_read(void)
    108112{
    109113  uint32_t            total;
  • c/src/lib/libbsp/m68k/mvme167/timer/timerisr.S

    rc080c343 r8fbe2e6  
    1 /*  timer_isr()
     1/**
     2 *  @file
    23 *
    34 *  This ISR is used to bump a count of interval "overflow" interrupts which
    45 *  have occurred since the timer was started. The number of overflows is taken
    56 *  into account in the benchmark_timer_read() routine.
    6  *
    7  *  Input parameters:  NONE
    8  *
    9  *  Output parameters:  NONE
    10  *
    11  *  COPYRIGHT (c) 1989-1999.
     7 */
     8
     9/*
     10 *  COPYRIGHT (c) 1989-2014.
    1211 *  On-Line Applications Research Corporation (OAR).
    1312 *
  • c/src/lib/libbsp/m68k/ods68302/timer/timer.c

    rc080c343 r8fbe2e6  
    6868 * Return timer value in 1/2-microsecond units
    6969 */
    70 uint32_t benchmark_timer_read( void )
     70benchmark_timer_t benchmark_timer_read( void )
    7171{
    7272  uint16_t         clicks;
  • c/src/lib/libbsp/mips/csb350/timer/timer.c

    rc080c343 r8fbe2e6  
    3030                             /* tx39 simulator can count instructions. :) */
    3131
    32 uint32_t benchmark_timer_read(void)
     32benchmark_timer_t benchmark_timer_read(void)
    3333{
    3434  uint32_t  total;
  • c/src/lib/libbsp/mips/genmongoosev/timer/timer.c

    rc080c343 r8fbe2e6  
    5656#include <rtems/bspIo.h>
    5757
    58 uint32_t benchmark_timer_read(void)
     58benchmark_timer_t benchmark_timer_read(void)
    5959{
    6060  uint32_t          clicks;
  • c/src/lib/libbsp/mips/jmr3904/timer/timer.c

    rc080c343 r8fbe2e6  
    4545                             /* tx39 simulator can count instructions. :) */
    4646
    47 uint32_t benchmark_timer_read(void)
     47benchmark_timer_t benchmark_timer_read(void)
    4848{
    4949  uint32_t          total;
  • c/src/lib/libbsp/nios2/nios2_iss/timer/timer.c

    rc080c343 r8fbe2e6  
    9595#define LEAST_VALID AVG_OVERHEAD /* Don't trust a value lower than this */
    9696
    97 uint32_t benchmark_timer_read( void )
     97benchmark_timer_t benchmark_timer_read( void )
    9898{
    9999  uint32_t timer_wraps;
  • c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c

    rc080c343 r8fbe2e6  
    5454#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    5555
    56 uint32_t benchmark_timer_read( void )
     56benchmark_timer_t benchmark_timer_read( void )
    5757{
    5858  uint32_t         clicks;
  • c/src/lib/libbsp/no_cpu/no_bsp/timer/timerisr.c

    rc080c343 r8fbe2e6  
    1 /*  timerisr.s
     1/**
     2 *  @file
    23 *
    34 *  If required this ISR is used to bump a count of interval "overflow"
     
    1011 *  occur during the measured time period.
    1112 *
    12  *  NOTE:  This file is USUALLY in assembly and is LEAN AND MEAN.
    13  *         Any code in this isr is pure overhead which can perturb
    14  *         the accuracy of the Timing Test Suite.
    15  *
     13 *  @note This file is USUALLY in assembly and is LEAN AND MEAN.
     14 *        Any code in this isr is pure overhead which can perturb
     15 *        the accuracy of the Timing Test Suite.
     16 */
     17
     18/*
    1619 *  COPYRIGHT (c) 1989-1999.
    1720 *  On-Line Applications Research Corporation (OAR).
     
    2326
    2427#include <rtems.h>
     28#include <rtems/btimer.h>
    2529
    2630extern uint32_t         _Timer_interrupts;
  • c/src/lib/libbsp/or1k/or1ksim/timer/timer.c

    rc080c343 r8fbe2e6  
    3333#define LEAST_VALID   1
    3434
    35 uint32_t benchmark_timer_read( void )
     35benchmark_timer_t benchmark_timer_read( void )
    3636{
    3737  uint64_t         clicks;
  • c/src/lib/libbsp/powerpc/score603e/timer/timer.c

    rc080c343 r8fbe2e6  
    4343 */
    4444
    45 uint32_t benchmark_timer_read()
     45benchmark_timer_t benchmark_timer_read()
    4646{
    4747  uint64_t          clicks;
  • c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c

    rc080c343 r8fbe2e6  
    8686 * Return timer value in microsecond units
    8787 */
    88 uint32_t benchmark_timer_read(void)
     88benchmark_timer_t benchmark_timer_read(void)
    8989{
    9090  uint32_t retval;
  • c/src/lib/libbsp/shared/timerstub.c

    rc080c343 r8fbe2e6  
    1616}
    1717
    18 uint32_t benchmark_timer_read(void)
     18benchmark_timer_t benchmark_timer_read(void)
    1919{
    2020  if (benchmark_timer_find_average_overhead)
  • c/src/lib/libbsp/sparc/erc32/timer/timer.c

    rc080c343 r8fbe2e6  
    6363#endif
    6464
    65 uint32_t benchmark_timer_read(void)
     65benchmark_timer_t benchmark_timer_read(void)
    6666{
    6767  uint32_t          total;
  • c/src/lib/libbsp/sparc/leon2/timer/timer.c

    rc080c343 r8fbe2e6  
    5959#define LEAST_VALID       2  /* Don't trust a value lower than this */
    6060
    61 uint32_t benchmark_timer_read(void)
     61benchmark_timer_t benchmark_timer_read(void)
    6262{
    6363  uint32_t total;
  • c/src/lib/libbsp/sparc/leon3/timer/timer.c

    rc080c343 r8fbe2e6  
    5858#define LEAST_VALID       2  /* Don't trust a value lower than this */
    5959
    60 uint32_t benchmark_timer_read(void)
     60benchmark_timer_t benchmark_timer_read(void)
    6161{
    6262  uint32_t total;
  • c/src/lib/libcpu/arm/at91rm9200/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*
    2  * Cogent CSB337 Timer driver
     1/**
     2 * @file
     3 * @brief Cogent CSB337 Timer driver
    34 *
    45 * This uses timer 0 for timing measurments.
    5  *
    6  * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
     6 */
     7
     8/*
     9 *  Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
    710 *
    811 *  The license and distribution terms for this file may be
    912 *  found in the file LICENSE in this distribution or at
    1013 *  http://www.rtems.org/license/LICENSE.
    11  *
    12  * Notes:
    13  *  This file manages the benchmark timer used by the RTEMS Timing Test
    14  *  Suite.  Each measured time period is demarcated by calls to
    15  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    16  *  the number of microseconds since benchmark_timer_initialize() exitted.
    17  *
    18  *  It is important that the timer start/stop overhead be determined
    19  *  when porting or modifying this code.
    2014 */
    2115
     16#include <bsp.h>
    2217#include <rtems.h>
    23 #include <bsp.h>
     18#include <rtems/btimer.h>
    2419#include <at91rm9200.h>
    2520#include <at91rm9200_pmc.h>
     
    6459#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    6560
    66 int benchmark_timer_read( void )
     61benchmark_timer_t benchmark_timer_read( void )
    6762{
    6863  uint16_t t;
  • c/src/lib/libcpu/arm/lpc22xx/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*
    2  * RTL22xx board Timer driver
     1/**
     2 * @file
     3 * @brief RTL22xx board Timer driver
    34 *
    45 * This uses Timer1 for timing measurments.
     6 */
     7
     8/*
     9 * By Ray Xu <rayx.cn@gmail.com>, modify form Mc9328mxl RTEMS DSP
    510 *
    6  *  By Ray xu<rayx.cn@gmail.com>, modify form Mc9328mxl RTEMS DSP
    7  *
    8  *  The license and distribution terms for this file may be
    9  *  found in the file LICENSE in this distribution or at
    10  *  http://www.rtems.org/license/LICENSE.
    11  *
    12  * Notes:
    13  *  This file manages the benchmark timer used by the RTEMS Timing Test
    14  *  Suite.  Each measured time period is demarcated by calls to
    15  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    16  *  the number of microseconds since benchmark_timer_initialize() exitted.
    17  *
    18  *  It is important that the timer start/stop overhead be determined
    19  *  when porting or modifying this code.
    20 */
     11 * The license and distribution terms for this file may be
     12 * found in the file LICENSE in this distribution or at
     13 * http://www.rtems.org/license/LICENSE.
     14 */
    2115
     16#include <bsp.h>
    2217#include <rtems.h>
    23 #include <bsp.h>
     18#include <rtems/btimer.h>
    2419#include <lpc22xx.h>
    2520#include "lpc_timer.h"
     21
    2622uint32_t g_start;
    2723uint32_t g_freq;
     
    5349#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    5450
    55 int benchmark_timer_read( void )
     51benchmark_timer_t benchmark_timer_read( void )
    5652{
    5753  return (T0TC/(LPC22xx_Fpclk/1000000));
  • c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*
    2  * Cogent CSB336 Timer driver
     1/**
     2 *  @file
     3 *  @brief Cogent CSB336 Timer driver
    34 *
    45 * This uses timer 2 for timing measurments.
    5  *
     6 */
     7
     8/*
    69 * Copyright (c) 2004 Cogent Computer Systems
    710 *        Written by Jay Monkman <jtm@lopingdog.com>
     
    1013 *  found in the file LICENSE in this distribution or at
    1114 *  http://www.rtems.org/license/LICENSE.
    12  *
    13  * Notes:
    14  *  This file manages the benchmark timer used by the RTEMS Timing Test
    15  *  Suite.  Each measured time period is demarcated by calls to
    16  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    17  *  the number of microseconds since benchmark_timer_initialize() exitted.
    18  *
    19  *  It is important that the timer start/stop overhead be determined
    20  *  when porting or modifying this code.
    21 */
     15 */
    2216
    2317#include <rtems.h>
    2418#include <bsp.h>
     19#include <rtems/btimer.h>
    2520#include <mc9328mxl.h>
    2621
     
    6358#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    6459
    65 int benchmark_timer_read( void )
     60benchmark_timer_t benchmark_timer_read( void )
    6661{
    6762  uint32_t t;
  • c/src/lib/libcpu/arm/pxa255/timer/timer.c

    rc080c343 r8fbe2e6  
     1/**
     2 * @file
     3 * @brief PXA255 timer
     4 */
     5
    16/*
    27 * PXA255 timer by Yang Xi <hiyangxi@gmail.com>
    38 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
    49 *
    5  * Notes:
    6  *  This file manages the benchmark timer used by the RTEMS Timing Test
    7  *  Suite.  Each measured time period is demarcated by calls to
    8  *  Timer_initialize() and Read_timer().  Read_timer() usually returns
    9  *  the number of microseconds since Timer_initialize() exitted.
    10  *
    11  *  It is important that the timer start/stop overhead be determined
    12  *  when porting or modifying this code.
    13  *
    14  *  The license and distribution terms for this file may be
    15  *  found in the file LICENSE in this distribution or at
    16  *  http://www.rtems.org/license/LICENSE.
     10 * The license and distribution terms for this file may be
     11 * found in the file LICENSE in this distribution or at
     12 * http://www.rtems.org/license/LICENSE.
    1713 */
    1814
     15#include <bsp.h>
    1916#include <rtems.h>
    20 #include <bsp.h>
     17#include <rtems/btimer.h>
    2118#include <pxa255.h>
    2219
     
    5249#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    5350
    54 int benchmark_timer_read(void)
     51benchmark_timer_t benchmark_timer_read(void)
    5552{
    5653
  • c/src/lib/libcpu/arm/s3c24xx/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*
    2  * S3C2400 Timer driver
     1/**
     2 * @file
     3 * @brief S3C2400 Timer driver
    34 *
    45 * This uses timer 1 for timing measurments.
    5  *
    6  *  The license and distribution terms for this file may be
    7  *  found in the file LICENSE in this distribution or at
    8  *  http://www.rtems.org/license/LICENSE.
    9  *
    10  * Notes:
    11  *  This file manages the benchmark timer used by the RTEMS Timing Test
    12  *  Suite.  Each measured time period is demarcated by calls to
    13  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    14  *  the number of microseconds since benchmark_timer_initialize() exitted.
    15  *
    16  *  It is important that the timer start/stop overhead be determined
    17  *  when porting or modifying this code.
    18 */
     6 */
    197
     8/*
     9 * The license and distribution terms for this file may be
     10 * found in the file LICENSE in this distribution or at
     11 * http://www.rtems.org/license/LICENSE.
     12 */
     13
     14#include <bsp.h>
    2015#include <rtems.h>
    21 #include <bsp.h>
     16#include <rtems/btimer.h>
    2217#include <s3c24xx.h>
    2318
     
    7065#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    7166
    72 int benchmark_timer_read( void )
     67benchmark_timer_t benchmark_timer_read( void )
    7368{
    7469    uint32_t t;
  • c/src/lib/libcpu/bfin/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  Timer for Blackfin
     1/**
     2 *  @file
     3 *  @brief Timer for Blackfin
    24 *
    35 *  This file manages the benchmark timer used by the RTEMS Timing Test
    46 *  Suite.  Each measured time period is demarcated by calls to
    5  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    6  *  the number of microseconds since benchmark_timer_initialize() exitted.
    7  *
     7 *  benchmark_timer_initialize() and benchmark_timer_read().
     8 *  benchmark_timer_read() usually returns the number of microseconds
     9 *  since benchmark_timer_initialize() exitted.
     10 */
     11
     12/*
    813 *  Copyright (c) 2006 by Atos Automacao Industrial Ltda.
    914 *             written by Alain Schaefer <alain.schaefer@easc.ch>
     
    1520 */
    1621
    17 
    1822#include <rtems.h>
    1923#include <bsp.h>
     24#include <rtems/btimer.h>
    2025
    21 
    22 uint32_t         Timer_interrupts;
    23 bool benchmark_timer_find_average_overhead;
     26uint32_t  Timer_interrupts;
     27bool      benchmark_timer_find_average_overhead;
    2428
    2529/*
     
    5761#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    5862
    59 int benchmark_timer_read( void )
     63benchmark_timer_t benchmark_timer_read( void )
    6064{
    6165  uint32_t          clicks;
  • c/src/lib/libcpu/m68k/mcf5206/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*
    2  *  Timer Init
     1/**
     2 *  @file
     3 *  @brief Timer Init
    34 *
    45 *  This module initializes TIMER 2 for on the MCF5206E for benchmarks.
    5  *
     6 */
     7
     8/*
    69 *  Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
    710 *  Author: Victor V. Vengerov <vvv@oktet.ru>
     
    2225#include <rtems.h>
    2326#include <bsp.h>
     27#include <rtems/btimer.h>
    2428#include "mcf5206/mcf5206e.h"
    2529
     
    100104 *     number of microseconds since timer has been started
    101105 */
    102 int
     106benchmark_timer_t
    103107benchmark_timer_read( void )
    104108{
  • c/src/lib/libcpu/m68k/mcf5206/timer/timerisr.S

    rc080c343 r8fbe2e6  
    1 /*
    2  *  Handle MCF5206 TIMER2 interrupts.
     1/**
     2 *  @file
     3 *  @brief Handle MCF5206 TIMER2 interrupts
    34 *
    45 * All code in this routine is pure overhead which can perturb the
     
    1213 *
    1314 * An external counter, Timer_interrupts, is incremented.
    14  *
     15 */
     16
     17/*
    1518 *  Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
    1619 *  Author: Victor V. Vengerov <vvv@oktet.ru>
     
    3033
    3134#include <rtems/asm.h>
    32 #include "bsp.h"
     35#include <bsp.h>
    3336#include "mcf5206/mcf5206e.h"
    3437
  • c/src/lib/libcpu/m68k/mcf5272/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*
    2  *  Timer Init
     1/**
     2 *  @file
    33 *
    44 *  This module initializes TIMER 2 for on the MCF5272 for benchmarks.
    5  *
     5 */
     6
     7/*
    68 *  Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
    79 *  Author: Victor V. Vengerov <vvv@oktet.ru>
     
    2325#include <bsp.h>
    2426#include <mcf5272/mcf5272.h>
     27#include <rtems/btimer.h>
    2528
    2629#define TRR2_VAL 65530
     
    103106 *     number of microseconds since timer has been started
    104107 */
    105 int
     108benchmark_timer_t
    106109benchmark_timer_read( void )
    107110{
  • c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S

    rc080c343 r8fbe2e6  
    1 /*
    2  *  Handle MCF5272 TIMER2 interrupts.
     1/**
     2 * @file
     3 * @brief Handle MCF5272 TIMER2 interrupts.
    34 *
    45 * All code in this routine is pure overhead which can perturb the
     
    1213 *
    1314 * An external counter, Timer_interrupts, is incremented.
    14  *
     15 */
     16
     17/*
    1518 *  Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia
    1619 *  Author: Victor V. Vengerov <vvv@oktet.ru>
     
    3134#include <rtems/asm.h>
    3235#include <bsp.h>
    33 /*
    34 #include "mcf5272/mcf5272.h"
    35 */
    3636
    3737BEGIN_CODE
  • c/src/lib/libcpu/mips/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  timer.c
     1/**
     2 *  @file
     3 *  @brief IDT 4650 Timer Driver.
    24 *
    3  *  This file contains the initialization code for the IDT 4650 timer driver.
    4  *
     5 *  This file manages the benchmark timer used by the RTEMS Timing Test
     6 *  Suite.
     7 */
     8
     9/*
    510 *  Author:     Craig Lebakken <craigl@transition.com>
    611 *
     
    2025 *  derived from src/lib/libbsp/no_cpu/no_bsp/timer/timer.c
    2126 *
    22  *  This file manages the benchmark timer used by the RTEMS Timing Test
    23  *  Suite.  Each measured time period is demarcated by calls to
    24  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    25  *  the number of microseconds since benchmark_timer_initialize() exitted.
    26  *
    27  *  NOTE: It is important that the timer start/stop overhead be
    28  *        determined when porting or modifying this code.
    29  *
    3027 *  COPYRIGHT (c) 1989-1999.
    3128 *  On-Line Applications Research Corporation (OAR).
     
    3633 */
    3734
    38 /*
    39  *  Rather than deleting this, it is commented out to (hopefully) help
    40  *  the submitter send updates.
    41  *
    42  *  static char _sccsid[] = "@(#)timer.c 08/20/96     1.5\n";
    43  */
    44 
    45 
    4635#include <rtems.h>
     36#include <rtems/btimer.h>
    4737
    4838#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ )
     
    7969#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    8070
    81 int benchmark_timer_read( void )
     71benchmark_timer_t benchmark_timer_read( void )
    8272{
    8373  uint64_t   clicks;
  • c/src/lib/libcpu/powerpc/mpc505/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  timer.c
     1/**
     2 *  @file
    23 *
    34 *  This file manages the benchmark timer used by the RTEMS Timing Test
    45 *  Suite.  Each measured time period is demarcated by calls to
    5  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    6  *  the number of microseconds since benchmark_timer_initialize() exitted.
     6 *  benchmark_timer_initialize() and benchmark_timer_read().
     7 *  benchmark_timer_read() usually returns the number of microseconds
     8 *  since benchmark_timer_initialize() exitted.
    79 *
    810 *  NOTE: It is important that the timer start/stop overhead be
    911 *        determined when porting or modifying this code.
    10  *
     12 */
     13
     14/*
    1115 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    1216 *  On-Line Applications Research Corporation (OAR).
     
    1418
    1519#include <rtems.h>
     20#include <rtems/btimer.h>
    1621
    1722bool benchmark_timer_find_average_overhead;
     
    3944#define LEAST_VALID       1  /* Don't trust a clicks value lower than this */
    4045
    41 int benchmark_timer_read( void )
     46benchmark_timer_t benchmark_timer_read( void )
    4247{
    4348  uint32_t   value;
  • c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  timer.c
     1/**
     2 *  @file
     3 *  @brief Timer Driver for the PowerPC MPC5xx.
    24 *
    35 *  This file manages the interval timer on the PowerPC MPC5xx.
    4  *  NOTE: This is not the PIT, but rather the RTEMS interval
    5  *        timer
     6 *  @noe This is not the PIT, but rather the RTEMS interval timer.
    67 *  We shall use the bottom 32 bits of the timebase register,
    7  *
    8  *  The following was in the 403 version of this file. I don't
    9  *  know what it means. JTM 5/19/98
    10  *  NOTE: It is important that the timer start/stop overhead be
    11  *        determined when porting or modifying this code.
    12  *
    13  *
     8 */
     9
     10/*
    1411 *  MPC5xx port sponsored by Defence Research and Development Canada - Suffield
    1512 *  Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca)
     
    4845
    4946#include <rtems.h>
     47#include <rtems/btimer.h>
    5048#include <mpc5xx.h>
    5149
     
    8179}
    8280
    83 int benchmark_timer_read(void)
     81benchmark_timer_t benchmark_timer_read(void)
    8482{
    8583  uint32_t clicks;
  • c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  timer.c
     1/**
     2 *  @file
     3 *  @brief
    24 *
    35 *  This file implements a benchmark timer using the PPC Timebase
    4  *
    5  *  Notes: NONE
    6  *
     6 */
     7
     8/*
    79 *  COPYRIGHT (c) 1989-2000.
    810 *  On-Line Applications Research Corporation (OAR).
     
    1315 */
    1416
     17#include <bsp.h>
     18#include <rtems.h>
    1519#include <rtems/system.h>
     20#include <rtems/btimer.h>
    1621#include <assert.h>
    17 #include <rtems.h>
    18 #include <bsp.h>
    1922#include <libcpu/powerpc-utility.h>
    2023
     
    5962 */
    6063
    61 int benchmark_timer_read(void)
     64benchmark_timer_t benchmark_timer_read(void)
    6265{
    6366  uint64_t    total64;
  • c/src/lib/libcpu/powerpc/mpc8260/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  timer.c
     1/**
     2 *  @file
     3 *  @brief Timer for the PowerPC MPC860
    24 *
    3  *  This file manages the interval timer on the PowerPC MPC860.
    4  *  NOTE: This is not the PIT, but rather the RTEMS interval
    5  *        timer
    65 *  We shall use the bottom 32 bits of the timebase register,
    76 *
    8  *  The following was in the 403 version of this file. I don't
    9  *  know what it means. JTM 5/19/98
    10  *  NOTE: It is important that the timer start/stop overhead be
    11  *        determined when porting or modifying this code.
    12  *
     7 *  @note This is not the PIT, but rather the RTEMS interval timer.
     8 */
     9
     10/*
    1311 *  Author: Andy Dachs <a.dachs@sstl.co.uk>
    1412 *  Surrey Satellite Technlogy Limited
     
    4745
    4846#include <rtems.h>
     47#include <rtems/btimer.h>
    4948#include <mpc8260.h>
    5049
     
    7978extern uint32_t bsp_timer_least_valid;
    8079extern uint32_t bsp_timer_average_overhead;
    81 int benchmark_timer_read(void)
     80benchmark_timer_t benchmark_timer_read(void)
    8281{
    8382  uint32_t   clicks;
  • c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  timer.c
     1/**
     2 *  @file
     3 *  @brief Timer Driver for the PowerPC MPC8xx.
    24 *
    35 *  This file manages the interval timer on the PowerPC MPC8xx.
    4  *  NOTE: This is not the PIT, but rather the RTEMS interval
    5  *        timer
    66 *  We shall use the bottom 32 bits of the timebase register,
    77 *
    8  *  The following was in the 403 version of this file. I don't
    9  *  know what it means. JTM 5/19/98
    10  *  NOTE: It is important that the timer start/stop overhead be
    11  *        determined when porting or modifying this code.
    12  *
     8 *  @note This is not the PIT, but rather the RTEMS interval timer
     9 */
     10
     11/*
    1312 *  Author: Jay Monkman (jmonkman@frasca.com)
    1413 *  Copywright (C) 1998 by Frasca International, Inc.
     
    4241
    4342#include <rtems.h>
     43#include <rtems/btimer.h>
    4444#include <mpc8xx.h>
    4545
     
    7070}
    7171
    72 int benchmark_timer_read(void)
     72benchmark_timer_t benchmark_timer_read(void)
    7373{
    7474  uint32_t   clicks;
  • c/src/lib/libcpu/powerpc/ppc403/timer/timer.c

    rc080c343 r8fbe2e6  
    1 /*  timer.c
     1/**
     2 *  @file
     3 *  @brief Timer Driver for the PowerPC 405.
    24 *
    35 *  This file manages the interval timer on the PowerPC 405.
    46 *  We shall use the bottom 32 bits of the timebase register,
    5  *
    6  *  NOTE: It is important that the timer start/stop overhead be
    7  *        determined when porting or modifying this code.
    8  *
    9  *  Author:     Andrew Bray <andy@i-cubed.co.uk>
     7 */
     8
     9/*
     10 *  Author: Andrew Bray <andy@i-cubed.co.uk>
    1011 *
    1112 *  COPYRIGHT (c) 1995 by i-cubed ltd.
     
    3839
    3940#include <rtems.h>
     41#include <rtems/btimer.h>
    4042#include <libcpu/powerpc-utility.h>
    4143
     
    5254}
    5355
    54 int benchmark_timer_read(void)
     56benchmark_timer_t benchmark_timer_read(void)
    5557{
    5658        uint32_t   clicks, total;
  • c/src/lib/libcpu/sh/sh7032/timer/timer.c

    rc080c343 r8fbe2e6  
     1/**
     2 * @file
     3 * @brief Timer for the Hitachi SH 703X
     4 */
     5
    16/*
    2  *  timer for the Hitachi SH 703X
    3  *
    4  *  This file manages the benchmark timer used by the RTEMS Timing Test
    5  *  Suite.  Each measured time period is demarcated by calls to
    6  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    7  *  the number of microseconds since benchmark_timer_initialize() exitted.
    8  *
    9  *  NOTE: It is important that the timer start/stop overhead be
    10  *        determined when porting or modifying this code.
    11  *
    127 *  Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
    138 *           Bernd Becker (becker@faw.uni-ulm.de)
     
    2823
    2924#include <rtems.h>
     25#include <rtems/btimer.h>
    3026
    3127#include <rtems/score/sh_io.h>
     
    148144#define LEAST_VALID       0 /* 20 */ /* Don't trust a clicks value lower than this */
    149145
    150 int benchmark_timer_read( void )
     146benchmark_timer_t benchmark_timer_read( void )
    151147{
    152148  uint32_t   cclicks;
  • c/src/lib/libcpu/sh/sh7045/timer/timer.c

    rc080c343 r8fbe2e6  
     1/**
     2 *  @file
     3 *  @brief Timer for the Hitachi SH 704X
     4 */
     5
    16/*
    2  *  timer for the Hitachi SH 704X
    3  *
    4  *  This file manages the benchmark timer used by the RTEMS Timing Test
    5  *  Suite.  Each measured time period is demarcated by calls to
    6  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    7  *  the number of microseconds since benchmark_timer_initialize() exitted.
    8  *
    9  *  NOTE: It is important that the timer start/stop overhead be
    10  *        determined when porting or modifying this code.
    11  *
    127 *  Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
    138 *           Bernd Becker (becker@faw.uni-ulm.de)
     
    2823
    2924#include <rtems.h>
     25#include <rtems/btimer.h>
    3026
    3127#include <rtems/score/sh_io.h>
     
    144140#define LEAST_VALID       0 /* 20 */ /* Don't trust a clicks value lower than this */
    145141
    146 int benchmark_timer_read( void )
     142benchmark_timer_t benchmark_timer_read( void )
    147143{
    148144  uint32_t   clicks;
  • c/src/lib/libcpu/sh/sh7750/timer/timer.c

    rc080c343 r8fbe2e6  
     1/**
     2 *  @file
     3 *  @brief Timer driver for the Hitachi SH 7750
     4 */
     5
    16/*
    2  *  timer driver for the Hitachi SH 7750
    3  *
    4  *  This file manages the benchmark timer used by the RTEMS Timing Test
    5  *  Suite.  Each measured time period is demarcated by calls to
    6  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    7  *  the number of microseconds since benchmark_timer_initialize() exitted.
    8  *
    9  *  NOTE: It is important that the timer start/stop overhead be
    10  *        determined when porting or modifying this code.
    11  *
    127 *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
    138 *  Author: Victor V. Vengerov <vvv@oktet.ru>
     
    2217
    2318#include <rtems.h>
     19#include <rtems/btimer.h>
    2420
    2521#include <rtems/score/sh_io.h>
     
    199195 *     number of microseconds since timer has been started
    200196 */
    201 int
     197benchmark_timer_t
    202198benchmark_timer_read(void)
    203199{
  • cpukit/libcsupport/Makefile.am

    rc080c343 r8fbe2e6  
    1313include_rtems_HEADERS += include/rtc.h
    1414include_rtems_HEADERS += include/spurious.h
    15 include_rtems_HEADERS += include/timerdrv.h
    1615include_rtems_HEADERS += include/vmeintr.h
    1716
  • cpukit/libcsupport/preinstall.am

    rc080c343 r8fbe2e6  
    4646        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/spurious.h
    4747PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/spurious.h
    48 
    49 $(PROJECT_INCLUDE)/rtems/timerdrv.h: include/timerdrv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
    50         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/timerdrv.h
    51 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/timerdrv.h
    5248
    5349$(PROJECT_INCLUDE)/rtems/vmeintr.h: include/vmeintr.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
  • cpukit/sapi/include/confdefs.h

    rc080c343 r8fbe2e6  
    13201320
    13211321#ifdef CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
    1322   #include <rtems/timerdrv.h>
     1322  #include <rtems/btimer.h>
    13231323#endif
    13241324
  • doc/bsp_howto/timer.t

    rc080c343 r8fbe2e6  
    4545
    4646@example
    47 int benchmark_timer_read(void)
     47benchmark_timer_t benchmark_timer_read(void)
    4848@{
    4949  stop time = read the hardware timer
  • testsuites/psxtmtests/psxtmbarrier01/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include "test_support.h"
    1717#include <pthread.h>
  • testsuites/psxtmtests/psxtmbarrier02/init.c

    rc080c343 r8fbe2e6  
    1414#include <timesys.h>
    1515#include <tmacros.h>
    16 #include <rtems/timerdrv.h>
     16#include <rtems/btimer.h>
    1717#include "test_support.h"
    1818
  • testsuites/psxtmtests/psxtmbarrier03/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMBARRIER 03";
  • testsuites/psxtmtests/psxtmbarrier04/init.c

    rc080c343 r8fbe2e6  
    1616#include <pthread.h>
    1717#include <sched.h>
    18 #include <rtems/timerdrv.h>
     18#include <rtems/btimer.h>
    1919
    2020const char rtems_test_name[] = "PSXTMBARRIER 04";
  • testsuites/psxtmtests/psxtmcond01/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMCOND 01";
  • testsuites/psxtmtests/psxtmcond02/init.c

    rc080c343 r8fbe2e6  
    1414#include <timesys.h>
    1515#include <pthread.h>
    16 #include <rtems/timerdrv.h>
     16#include <rtems/btimer.h>
    1717#include "test_support.h"
    1818
  • testsuites/psxtmtests/psxtmcond03/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMCOND 03";
  • testsuites/psxtmtests/psxtmcond04/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMCOND 04";
  • testsuites/psxtmtests/psxtmcond05/init.c

    rc080c343 r8fbe2e6  
    1414#include <timesys.h>
    1515#include <pthread.h>
    16 #include <rtems/timerdrv.h>
     16#include <rtems/btimer.h>
    1717#include "test_support.h"
    1818
  • testsuites/psxtmtests/psxtmcond06/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222#define N 5
  • testsuites/psxtmtests/psxtmcond07/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222#define N 1
  • testsuites/psxtmtests/psxtmcond08/init.c

    rc080c343 r8fbe2e6  
    3131#include <timesys.h>
    3232#include <tmacros.h>
    33 #include <rtems/timerdrv.h>
     33#include <rtems/btimer.h>
    3434#include "test_support.h"
    3535
  • testsuites/psxtmtests/psxtmkey01/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include <errno.h>
    1717#include <pthread.h>
  • testsuites/psxtmtests/psxtmkey02/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include <errno.h>
    1717#include <pthread.h>
  • testsuites/psxtmtests/psxtmmq01/init.c

    rc080c343 r8fbe2e6  
    1414#include <timesys.h>
    1515#include <errno.h>
    16 #include <rtems/timerdrv.h>
     16#include <rtems/btimer.h>
    1717#include "test_support.h"
    1818#include <tmacros.h>
  • testsuites/psxtmtests/psxtmmutex01/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include <errno.h>
    1717#include <pthread.h>
  • testsuites/psxtmtests/psxtmmutex02/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMMUTEX 02";
  • testsuites/psxtmtests/psxtmmutex03/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include <errno.h>
    1717#include <pthread.h>
  • testsuites/psxtmtests/psxtmmutex04/init.c

    rc080c343 r8fbe2e6  
    1414#include <timesys.h>
    1515#include <tmacros.h>
    16 #include <rtems/timerdrv.h>
     16#include <rtems/btimer.h>
    1717#include "test_support.h"
    1818
  • testsuites/psxtmtests/psxtmmutex05/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMMUTEX 05";
  • testsuites/psxtmtests/psxtmmutex06/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMMUTEX 06";
  • testsuites/psxtmtests/psxtmmutex07/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include <errno.h>
    1717#include <pthread.h>
  • testsuites/psxtmtests/psxtmnanosleep01/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include "test_support.h"
    1717
  • testsuites/psxtmtests/psxtmnanosleep02/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include "test_support.h"
    1717
  • testsuites/psxtmtests/psxtmrwlock01/init.c

    rc080c343 r8fbe2e6  
    1313#include <errno.h>
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include <pthread.h>
    1717#include "test_support.h"
  • testsuites/psxtmtests/psxtmrwlock02/init.c

    rc080c343 r8fbe2e6  
    1717#include <pthread.h>
    1818#include <sched.h>
    19 #include <rtems/timerdrv.h>
     19#include <rtems/btimer.h>
    2020#include "test_support.h"
    2121
  • testsuites/psxtmtests/psxtmrwlock03/init.c

    rc080c343 r8fbe2e6  
    1717#include <sched.h>
    1818#include <pthread.h>
    19 #include <rtems/timerdrv.h>
     19#include <rtems/btimer.h>
    2020#include "test_support.h"
    2121
  • testsuites/psxtmtests/psxtmrwlock04/init.c

    rc080c343 r8fbe2e6  
    1717#include <sched.h>
    1818#include <pthread.h>
    19 #include <rtems/timerdrv.h>
     19#include <rtems/btimer.h>
    2020#include "test_support.h"
    2121
  • testsuites/psxtmtests/psxtmrwlock05/init.c

    rc080c343 r8fbe2e6  
    1717#include <sched.h>
    1818#include <pthread.h>
    19 #include <rtems/timerdrv.h>
     19#include <rtems/btimer.h>
    2020#include "test_support.h"
    2121
  • testsuites/psxtmtests/psxtmrwlock06/init.c

    rc080c343 r8fbe2e6  
    1818#include <timesys.h>
    1919#include "test_support.h"
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMRWLOCK 06";
  • testsuites/psxtmtests/psxtmrwlock07/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMRWLOCK 07";
  • testsuites/psxtmtests/psxtmsem01/init.c

    rc080c343 r8fbe2e6  
    1717#include <tmacros.h>
    1818#include <timesys.h>
    19 #include <rtems/timerdrv.h>
     19#include <rtems/btimer.h>
    2020#include "test_support.h"
    2121
  • testsuites/psxtmtests/psxtmsem02/init.c

    rc080c343 r8fbe2e6  
    1717#include <tmacros.h>
    1818#include <timesys.h>
    19 #include <rtems/timerdrv.h>
     19#include <rtems/btimer.h>
    2020#include "test_support.h"
    2121
  • testsuites/psxtmtests/psxtmsem03/init.c

    rc080c343 r8fbe2e6  
    1717#include <tmacros.h>
    1818#include <timesys.h>
    19 #include <rtems/timerdrv.h>
     19#include <rtems/btimer.h>
    2020#include "test_support.h"
    2121#include <pthread.h>
  • testsuites/psxtmtests/psxtmsem04/init.c

    rc080c343 r8fbe2e6  
    2121#include <pthread.h>
    2222#include <sched.h>
    23 #include <rtems/timerdrv.h>
     23#include <rtems/btimer.h>
    2424
    2525const char rtems_test_name[] = "PSXTMSEM 04";
  • testsuites/psxtmtests/psxtmsem05/init.c

    rc080c343 r8fbe2e6  
    2121#include <pthread.h>
    2222#include <sched.h>
    23 #include <rtems/timerdrv.h>
     23#include <rtems/btimer.h>
    2424
    2525const char rtems_test_name[] = "PSXTMSEM 05";
  • testsuites/psxtmtests/psxtmsleep01/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include "test_support.h"
    1717
  • testsuites/psxtmtests/psxtmsleep02/init.c

    rc080c343 r8fbe2e6  
    1313
    1414#include <timesys.h>
    15 #include <rtems/timerdrv.h>
     15#include <rtems/btimer.h>
    1616#include "test_support.h"
    1717
  • testsuites/psxtmtests/psxtmthread02/init.c

    rc080c343 r8fbe2e6  
    1515#include <pthread.h>
    1616#include <sched.h>
    17 #include <rtems/timerdrv.h>
     17#include <rtems/btimer.h>
    1818#include "test_support.h"
    1919
  • testsuites/psxtmtests/psxtmthread03/init.c

    rc080c343 r8fbe2e6  
    1818#include <pthread.h>
    1919#include <sched.h>
    20 #include <rtems/timerdrv.h>
     20#include <rtems/btimer.h>
    2121
    2222const char rtems_test_name[] = "PSXTMTHREAD 03";
  • testsuites/psxtmtests/psxtmthread04/init.c

    rc080c343 r8fbe2e6  
    1515#include <pthread.h>
    1616#include <sched.h>
    17 #include <rtems/timerdrv.h>
     17#include <rtems/btimer.h>
    1818#include "test_support.h"
    1919
  • testsuites/psxtmtests/psxtmthread05/init.c

    rc080c343 r8fbe2e6  
    1616#include <pthread.h>
    1717#include <sched.h>
    18 #include <rtems/timerdrv.h>
     18#include <rtems/btimer.h>
    1919#include "test_support.h"
    2020
  • testsuites/psxtmtests/psxtmthread06/init.c

    rc080c343 r8fbe2e6  
    1717#include <pthread.h>
    1818#include <sched.h>
    19 #include <rtems/timerdrv.h>
     19#include <rtems/btimer.h>
    2020#include "test_support.h"
    2121
  • testsuites/rhealstone/rhdeadlockbrk/deadlockbrk.c

    rc080c343 r8fbe2e6  
    55 */
    66
    7 #include <rtems/timerdrv.h>
    87#include <timesys.h>
     8#include <rtems/btimer.h>
    99
    1010const char rtems_test_name[] = "RHDEADLOCKBRK";
  • testsuites/rhealstone/rhilatency/ilatency.c

    rc080c343 r8fbe2e6  
    1616#define CONFIGURE_INIT
    1717#include <timesys.h>
     18#include <rtems/btimer.h>
    1819#include <rtems/score/schedulerpriorityimpl.h>
    19 #include <rtems/timerdrv.h>
    2020#include <coverhd.h>
    2121
  • testsuites/rhealstone/rhmlatency/mlatency.c

    rc080c343 r8fbe2e6  
    1010
    1111#include <timesys.h>
    12 #include <rtems/timerdrv.h>
     12#include <rtems/btimer.h>
    1313
    1414const char rtems_test_name[] = "RHMLATENCY";
  • testsuites/rhealstone/rhsemshuffle/semshuffle.c

    rc080c343 r8fbe2e6  
    55 */
    66
    7 #include <rtems/timerdrv.h>
    87#include <timesys.h>
     8#include <rtems/btimer.h>
    99
    1010const char rtems_test_name[] = "RHSEMSHUFFLE";
  • testsuites/rhealstone/rhtaskpreempt/taskpreempt.c

    rc080c343 r8fbe2e6  
    66
    77#include <timesys.h>
    8 #include <rtems/timerdrv.h>
     8#include <rtems/btimer.h>
    99
    1010const char rtems_test_name[] = "RHTASKPREEMPT";
  • testsuites/rhealstone/rhtaskswitch/taskswitch.c

    rc080c343 r8fbe2e6  
    55 */
    66
    7 #include <rtems/timerdrv.h>
    87#include <timesys.h>
     8#include <rtems/btimer.h>
    99
    1010#define BENCHMARKS 50000
  • testsuites/support/src/tmtests_support.c

    rc080c343 r8fbe2e6  
    1212#endif
    1313
     14#include <bsp.h>
    1415#include <rtems/btimer.h>
    15 
    16 #include <bsp.h>
    17 #include <rtems/timerdrv.h>
    1816#include "test_support.h"
    1917#include "timesys.h"
Note: See TracChangeset for help on using the changeset viewer.