diff options
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r-- | c/src/lib/libbsp/shared/cpucounterdiff.c | 23 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/cpucounterread.c | 27 |
2 files changed, 0 insertions, 50 deletions
diff --git a/c/src/lib/libbsp/shared/cpucounterdiff.c b/c/src/lib/libbsp/shared/cpucounterdiff.c deleted file mode 100644 index d77945d5b8..0000000000 --- a/c/src/lib/libbsp/shared/cpucounterdiff.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2014 embedded brains GmbH. All rights reserved. - * - * embedded brains GmbH - * Dornierstr. 4 - * 82178 Puchheim - * Germany - * <rtems@embedded-brains.de> - * - * 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/score/cpu.h> - -CPU_Counter_ticks _CPU_Counter_difference( - CPU_Counter_ticks second, - CPU_Counter_ticks first -) -{ - return second - first; -} diff --git a/c/src/lib/libbsp/shared/cpucounterread.c b/c/src/lib/libbsp/shared/cpucounterread.c deleted file mode 100644 index b5dc02a40f..0000000000 --- a/c/src/lib/libbsp/shared/cpucounterread.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2014 embedded brains GmbH. All rights reserved. - * - * embedded brains GmbH - * Dornierstr. 4 - * 82178 Puchheim - * Germany - * <rtems@embedded-brains.de> - * - * 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/score/cpu.h> - -CPU_Counter_ticks _CPU_Counter_read( void ) -{ - static CPU_Counter_ticks counter; - - CPU_Counter_ticks snapshot; - - snapshot = counter; - counter = snapshot + 1; - - return snapshot; -} |