diff options
author | Aun-Ali Zaidi <admin@kodeit.net> | 2015-12-10 18:29:55 -0600 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2015-12-11 09:20:34 -0500 |
commit | 32c2cd2be1067ebe32cdabccbc8aa16126ae3a32 (patch) | |
tree | 7c4e2f70630f4849308cf2cfe22a796098188e54 /c/src/lib/libbsp/arm/nds/timer/timer.c | |
parent | score: Untangle thread actions (diff) | |
download | rtems-32c2cd2be1067ebe32cdabccbc8aa16126ae3a32.tar.bz2 |
arm/nds: Remove
updates #2450.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/arm/nds/timer/timer.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/c/src/lib/libbsp/arm/nds/timer/timer.c b/c/src/lib/libbsp/arm/nds/timer/timer.c deleted file mode 100644 index 8c0eda35e2..0000000000 --- a/c/src/lib/libbsp/arm/nds/timer/timer.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * RTEMS for Nintendo DS performance timer driver. - * - * Copyright (c) 2008 by Benjamin Ratier <agho.pwn@gmail.com> - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * - * http://www.rtems.org/license/LICENSE - */ - -#include <rtems.h> -#include <rtems/btimer.h> -#include <bsp.h> -#include <nds.h> - -bool benchmark_timer_find_average_overhead; - -void -benchmark_timer_initialize (void) -{ - TIMER_CR (1) = 0x0000; - TIMER_CR (2) = 0x0000; - TIMER_DATA (1) = TIMER_FREQ (1000000); - TIMER_DATA (2) = 0x0000; - TIMER_CR (1) = TIMER_ENABLE | TIMER_DIV_1; - TIMER_CR (2) = TIMER_ENABLE | TIMER_CASCADE; -} - -/* - * values taken out from gba bsp. - */ - -#define AVG_OVERHEAD 3 -#define LEAST_VALID 1 - -uint32_t -benchmark_timer_read (void) -{ - uint32_t ticks; - - /* stop counters */ - TIMER_CR (1) = 0x0000; - TIMER_CR (2) = 0x0000; - - /* read counter */ - ticks = (TIMER_DATA (2) << 16) | TIMER_DATA (1); - return ticks; -} - -void -benchmark_timer_disable_subtracting_average_overhead (bool find_flag) -{ - benchmark_timer_find_average_overhead = find_flag; -} |