forked from Imagelibrary/rtems
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c: Include <rtems/btimer.h>. Fix benchmark_timer_read() definition.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
#include <nds.h>
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
#include <rtems/m68k/m68360.h>
|
||||
|
||||
@@ -69,7 +70,7 @@ benchmark_timer_initialize (void)
|
||||
/*
|
||||
* Return timer value in microsecond units
|
||||
*/
|
||||
int
|
||||
uint32_t
|
||||
benchmark_timer_read (void)
|
||||
{
|
||||
unsigned short val;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
#include <mcf548x/mcf548x.h>
|
||||
|
||||
@@ -67,7 +68,7 @@ void benchmark_timer_initialize(void)
|
||||
* Return timer value in microsecond units
|
||||
* XLB clock 100 MHz / 1us is equal to 100 counts
|
||||
*/
|
||||
int
|
||||
uint32_t
|
||||
benchmark_timer_read(void)
|
||||
{
|
||||
microsecond_timer_value = (0xFFFFFFFF - MCF548X_SLT_SCNT1)/100;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
#include <rtems/motorola/mc68230.h>
|
||||
|
||||
@@ -50,7 +51,7 @@ void benchmark_timer_initialize(void)
|
||||
#define AVG_OVERHEAD 9 /* may not be right -- do this later */
|
||||
#define LEAST_VALID 10 /* Don't trust a value lower than this */
|
||||
|
||||
int benchmark_timer_read(void)
|
||||
uint32_t benchmark_timer_read(void)
|
||||
{
|
||||
uint8_t data;
|
||||
uint8_t msb, osb, lsb;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
void benchmark_timer_initialize(void)
|
||||
@@ -28,7 +29,7 @@ void benchmark_timer_initialize(void)
|
||||
/*
|
||||
* Return timer value in microsecond units
|
||||
*/
|
||||
int benchmark_timer_read(void)
|
||||
uint32_t benchmark_timer_read(void)
|
||||
{
|
||||
return MCF_DTIM3_DTCN;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
void benchmark_timer_initialize(void)
|
||||
@@ -30,7 +31,7 @@ void benchmark_timer_initialize(void)
|
||||
/*
|
||||
* Return timer value in microsecond units
|
||||
*/
|
||||
int benchmark_timer_read(void)
|
||||
uint32_t benchmark_timer_read(void)
|
||||
{
|
||||
return MCF_DTIM3_DTCN;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
void
|
||||
@@ -21,7 +22,7 @@ benchmark_timer_initialize(void)
|
||||
/*
|
||||
* Return timer value in microsecond units
|
||||
*/
|
||||
int
|
||||
uint32_t
|
||||
benchmark_timer_read(void)
|
||||
{
|
||||
return MCF5235_TIMER3_DTCN;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
void benchmark_timer_initialize(void)
|
||||
@@ -29,7 +30,7 @@ void benchmark_timer_initialize(void)
|
||||
/*
|
||||
* Return timer value in microsecond units
|
||||
*/
|
||||
int benchmark_timer_read(void)
|
||||
uint32_t benchmark_timer_read(void)
|
||||
{
|
||||
return MCF_DTIM3_DTCN;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
bool benchmark_timer_find_average_overhead;
|
||||
@@ -39,7 +40,7 @@ void benchmark_timer_initialize( void )
|
||||
/*
|
||||
* Return timer value in 1/2-microsecond units
|
||||
*/
|
||||
int benchmark_timer_read( void )
|
||||
uint32_t benchmark_timer_read( void )
|
||||
{
|
||||
uint32_t total;
|
||||
total = 0;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
#include <rtems/zilog/z8036.h>
|
||||
|
||||
@@ -51,7 +52,7 @@ void benchmark_timer_initialize(void)
|
||||
/* (6 countdowns) to start/stop the timer. */
|
||||
#define LEAST_VALID 10 /* Don't trust a value lower than this */
|
||||
|
||||
int benchmark_timer_read(void)
|
||||
uint32_t benchmark_timer_read(void)
|
||||
{
|
||||
/*
|
||||
uint8_t msb, lsb;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
#define TIMER_INT_LEVEL 6
|
||||
@@ -46,7 +47,7 @@ void benchmark_timer_initialize(void)
|
||||
synchronized whith the counter updates*/
|
||||
#define LEAST_VALID 10 /* Don't trust a value lower than this */
|
||||
|
||||
int benchmark_timer_read(void)
|
||||
uint32_t benchmark_timer_read(void)
|
||||
{
|
||||
uint32_t total;
|
||||
uint16_t counter_value;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
/* Periodic tick interval */
|
||||
@@ -51,7 +52,7 @@ void benchmark_timer_initialize(void)
|
||||
/* (3 countdowns) to start/stop the timer. */
|
||||
#define LEAST_VALID 10U /* Don't trust a value lower than this */
|
||||
|
||||
int benchmark_timer_read(void)
|
||||
uint32_t benchmark_timer_read(void)
|
||||
{
|
||||
uint32_t total;
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
/* Periodic tick interval */
|
||||
@@ -105,7 +106,7 @@ void benchmark_timer_initialize(void)
|
||||
* LEAST_VALID is the lowest number this routine should trust. Numbers
|
||||
* below this are "noise" and zero is returned.
|
||||
*/
|
||||
int benchmark_timer_read(void)
|
||||
uint32_t benchmark_timer_read(void)
|
||||
{
|
||||
uint32_t total;
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#define TIMER_WRAPS_AFTER_1MS 0
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <rtems/score/cpu.h>
|
||||
#include <bsp.h>
|
||||
|
||||
@@ -97,7 +98,7 @@ void benchmark_timer_initialize( void )
|
||||
|
||||
#define LEAST_VALID AVG_OVERHEAD /* Don't trust a value lower than this */
|
||||
|
||||
int benchmark_timer_read( void )
|
||||
uint32_t benchmark_timer_read( void )
|
||||
{
|
||||
uint32_t timer_wraps;
|
||||
uint32_t timer_snap;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* timer/timer.c: Include <rtems/btimer.h>.
|
||||
Fix benchmark_timer_read() definition.
|
||||
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <bsp.h>
|
||||
|
||||
uint32_t Timer_interrupts;
|
||||
@@ -54,7 +55,7 @@ void benchmark_timer_initialize( void )
|
||||
/* This value is in microseconds. */
|
||||
#define LEAST_VALID 1 /* Don't trust a clicks value lower than this */
|
||||
|
||||
int benchmark_timer_read( void )
|
||||
uint32_t benchmark_timer_read( void )
|
||||
{
|
||||
uint32_t clicks;
|
||||
uint32_t total;
|
||||
|
||||
Reference in New Issue
Block a user