Last change
on this file since 9bf813c5 was
9bf813c5,
checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:38:43
|
bsps/shared/: Scripted embedded brains header file clean up
Updates #4625.
|
-
Property mode set to
100644
|
File size:
447 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2014 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #include <rtems/score/cpu.h> |
---|
10 | |
---|
11 | CPU_Counter_ticks _CPU_Counter_read( void ) |
---|
12 | { |
---|
13 | static CPU_Counter_ticks counter; |
---|
14 | |
---|
15 | CPU_Counter_ticks snapshot; |
---|
16 | |
---|
17 | snapshot = counter; |
---|
18 | counter = snapshot + 1; |
---|
19 | |
---|
20 | return snapshot; |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.