5
Last change
on this file since 98c01a5 was
98c01a5,
checked in by Sebastian Huber <sebastian.huber@…>, on 11/08/18 at 10:32:13
|
rtems: Avoid <rtems/score/timecounter.h> in API
Use a real function for rtems_clock_get_uptime_seconds().
Update #3598.
|
-
Property mode set to
100644
|
File size:
594 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup ClassicClock |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * Copyright (c) 2018 embedded brains GmbH. All rights reserved. |
---|
9 | * |
---|
10 | * embedded brains GmbH |
---|
11 | * Dornierstr. 4 |
---|
12 | * 82178 Puchheim |
---|
13 | * Germany |
---|
14 | * <rtems@embedded-brains.de> |
---|
15 | * |
---|
16 | * The license and distribution terms for this file may be |
---|
17 | * found in the file LICENSE in this distribution or at |
---|
18 | * http://www.rtems.com/license/LICENSE. |
---|
19 | */ |
---|
20 | |
---|
21 | #ifdef HAVE_CONFIG_H |
---|
22 | #include "config.h" |
---|
23 | #endif |
---|
24 | |
---|
25 | #include <rtems/rtems/clock.h> |
---|
26 | #include <rtems/score/timecounter.h> |
---|
27 | |
---|
28 | time_t rtems_clock_get_uptime_seconds( void ) |
---|
29 | { |
---|
30 | return _Timecounter_Time_uptime - 1; |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.