source: rtems/c/src/lib/libbsp/arm/beagle/misc/timer.c @ 7a66986

4.115
Last change on this file since 7a66986 was 7a66986, checked in by Claas Ziemke <ziemke@…>, on 08/22/12 at 12:39:02

Added BeagleBoard? BSP

Coding done in course of GSoC2012.

Commit edited to be brought up-to-date with mainline by
Ben Gras <beng@…>.

  • Property mode set to 100644
File size: 823 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup beagle
5 *
6 * @brief Benchmark timer support.
7 */
8
9/*
10 * Copyright (c) 2012 Claas Ziemke. All rights reserved.
11 *
12 *  Claas Ziemke
13 *  Kernerstrasse 11
14 *  70182 Stuttgart
15 *  Germany
16 *  <claas.ziemke@gmx.net>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23#include <rtems.h>
24#include <rtems/btimer.h>
25#include <rtems/timerdrv.h>
26
27#include <bsp.h>
28
29static uint32_t benchmark_timer_base;
30
31void benchmark_timer_initialize(void)
32{
33  benchmark_timer_base = beagleboard_timer();
34}
35
36uint32_t benchmark_timer_read(void)
37{
38  return beagleboard_timer() - benchmark_timer_base;
39}
40
41void benchmark_timer_disable_subtracting_average_overhead(
42  bool find_average_overhead
43)
44{
45  /* VOID */
46}
Note: See TracBrowser for help on using the repository browser.