source: rtems/cpukit/score/src/coretodgetuptimetimespec.c @ f7f1d77

4.115
Last change on this file since f7f1d77 was f7f1d77, checked in by Alex Ivanov <alexivanov97@…>, on 11/28/12 at 14:11:31

score misc: Clean up Doxygen (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.
https://google-melange.appspot.com/gci/task/view/google/gci2012/7978208

  • Property mode set to 100644
File size: 735 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Get Uptime as struct timespec
5 * @ingroup ScoreTODConstants
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2008.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/system.h>
22#include <rtems/score/isr.h>
23#include <rtems/score/timestamp.h>
24#include <rtems/score/tod.h>
25
26void _TOD_Get_uptime_as_timespec(
27  struct timespec *uptime
28)
29{
30  Timestamp_Control uptime_ts;
31
32  /* assume time checked for NULL by caller */
33  _TOD_Get_uptime( &uptime_ts );
34  _Timestamp_To_timespec( &uptime_ts, uptime );
35}
Note: See TracBrowser for help on using the repository browser.