Changeset 98c01a5 in rtems


Ignore:
Timestamp:
Nov 8, 2018, 10:32:13 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ccc6695
Parents:
a11b98c
git-author:
Sebastian Huber <sebastian.huber@…> (11/08/18 10:32:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/12/18 12:25:41)
Message:

rtems: Avoid <rtems/score/timecounter.h> in API

Use a real function for rtems_clock_get_uptime_seconds().

Update #3598.

Location:
cpukit
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    ra11b98c r98c01a5  
    676676librtemscpu_a_SOURCES += rtems/src/clockgetuptime.c
    677677librtemscpu_a_SOURCES += rtems/src/clockgetuptimenanoseconds.c
     678librtemscpu_a_SOURCES += rtems/src/clockgetuptimeseconds.c
    678679librtemscpu_a_SOURCES += rtems/src/clockgetuptimetimeval.c
    679680librtemscpu_a_SOURCES += rtems/src/clockset.c
  • cpukit/include/rtems/imfs.h

    ra11b98c r98c01a5  
    2222#include <rtems/libio_.h>
    2323#include <rtems/pipe.h>
     24#include <rtems/score/timecounter.h>
    2425
    2526/**
  • cpukit/include/rtems/rtems/clock.h

    ra11b98c r98c01a5  
    3434#include <rtems/rtems/types.h>
    3535#include <rtems/config.h>
    36 #include <rtems/score/timecounterimpl.h>
    37 
    38 #include <sys/time.h> /* struct timeval */
    3936
    4037/**
     
    266263 * @retval The system uptime in seconds.
    267264 */
    268 RTEMS_INLINE_ROUTINE time_t rtems_clock_get_uptime_seconds( void )
    269 {
    270   return _Timecounter_Time_uptime - 1;
    271 }
     265time_t rtems_clock_get_uptime_seconds( void );
    272266
    273267/**
  • cpukit/include/rtems/rtems/types.h

    ra11b98c r98c01a5  
    2424
    2525#include <sys/_timespec.h>
     26#include <sys/_timeval.h>
    2627#include <stdint.h>
    2728#include <rtems/score/heap.h>
Note: See TracChangeset for help on using the changeset viewer.