source: rtems/c/src/lib/libbsp/arm/lpc32xx/misc/timer.c @ df40cc9

4.11
Last change on this file since df40cc9 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 794 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_lpc32xx
5 *
6 * @brief Benchmark timer support.
7 */
8
9/*
10 * Copyright (c) 2008, 2009
11 * embedded brains GmbH
12 * Obere Lagerstr. 30
13 * D-82178 Puchheim
14 * Germany
15 * <rtems@embedded-brains.de>
16 *
17 * The license and distribution terms for this file may be
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.org/license/LICENSE.
20 */
21
22#include <rtems.h>
23#include <rtems/btimer.h>
24#include <rtems/timerdrv.h>
25
26#include <bsp.h>
27
28static uint32_t benchmark_timer_base;
29
30void benchmark_timer_initialize(void)
31{
32  benchmark_timer_base = lpc32xx_timer();
33}
34
35uint32_t benchmark_timer_read(void)
36{
37  return lpc32xx_timer() - benchmark_timer_base;
38}
39
40void benchmark_timer_disable_subtracting_average_overhead(bool find_average_overhead)
41{
42  /* VOID */
43}
Note: See TracBrowser for help on using the repository browser.